{"version":3,"sources":["webpack:///./pages/gundem/videolar/_slug/index.vue?d23f","webpack:///./pages/gundem/videolar/_slug/index.vue?166a","webpack:///./pages/gundem/videolar/_slug/index.vue","webpack:///./pages/gundem/videolar/_slug/index.vue?d0cf","webpack:///./pages/gundem/videolar/_slug/index.vue?44f1","webpack:///./services/api.js","webpack:///./query/slug.js"],"names":["module","exports","layout","name","mixins","lang","dateMixin","device","SEO","data","page","seo","asyncData","_ref","_asyncToGenerator","regeneratorRuntime","mark","_callee","params","error","app","route","routePath","_yield$Promise$all","_yield$Promise$all2","response","pageData","_pageData$0$attribute","wrap","_context","prev","next","$utils","helper","getLangFromPath","path","context","i18n","setLocale","Promise","all","fetchPageData","slug","iceriklerQuery","sent","_slicedToArray","length","abrupt","attributes","statusCode","message","t0","console","stop","head","_this$page","_this$page$seo$metaTi","_this$page2","pageTitle","this","title","metaTitle","component","_vm","_c","_self","attrs","_e","installComponents","PagesDetail","default","api","axios","create","baseURL","process","_x","_x2","_x3","_x4","_fetchPageData","apply","arguments","collection","query","locale","_yield$api$get","get","concat","headers","Authorization","Error","qs","stringify","populate","featuredMedia","fields","video","galleryMedia","icerik_turu","birimler","etiketler","encodeValuesOnly","kisilerQuery","publication","cardPerson","raporlarQuery","files"],"mappings":"gFACAA,EAAOC,QAAU,CAAC,C,oCCDlB,O,2CCAA,I,6FCAyS,EDY1R,CACbC,OAAQ,UACRC,KAAM,eACNC,OAAQ,CAACC,IAAMC,IAAWC,IAAQC,KAClCC,KAAI,WACF,MAAO,CACLC,KAAM,CAAC,EACPC,IAAK,CAAC,EAEV,EACMC,UAAS,SAAAC,GAAiC,OAADC,YAAAC,mBAAAC,MAAA,SAAAC,IAAA,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAA,OAAAZ,mBAAAa,MAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,OAEP,OAFtBb,EAAML,EAANK,OAAQC,E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TF,SAAU,CAAC,QAAS,SAEtBM,SAAU,CACRJ,OAAQ,CAAC,KACTF,SAAU,CAAC,QAAS,OAAQ,SAE9BO,UAAW,CACTL,OAAQ,CAAC,KACTF,SAAU,CAAC,QAAS,WAI1B,CACEQ,kBAAkB,IA0BTC,GAtBgBX,IAAGC,UAC9B,CACEC,SAAU,CACRC,cAAe,CACbC,OAAQ,CAAC,KACTF,SAAU,CAAC,MAAO,kBAAmB,SAEvCU,YAAa,CACXR,OAAQ,CAAC,KACTF,SAAU,CAAC,QAAS,gBAAiB,SAEvCnF,IAAK,CACHqF,OAAQ,CAAC,KACTF,SAAU,eAIhB,CACEQ,kBAAkB,IAIMV,IAAGC,UAC7B,CACEC,SAAU,CACRW,WAAY,CACVT,OAAQ,CAAC,KACTF,SAAU,CAAC,OAAQ,QAAS,WAIlC,CACEQ,kBAAkB,KAITI,EAAgBd,IAAGC,UAC9B,CACEC,SAAU,CACRa,MAAO,CACLX,OAAQ,CAAC,KACTF,SAAU,CAAC,WAIjB,CACEQ,kBAAkB,G","file":"2385c05.js","sourcesContent":["// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","export * from \"-!../../../../node_modules/extract-css-chunks-webpack-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/@nuxt/postcss8/node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/@nuxt/webpack/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!../../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../../node_modules/@nuxt/webpack/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=21fc379a&prod&lang=scss&\"","\n// Fetch function\nimport { fetchPageData } from \"@/services/api\";\n// Queries\nimport { iceriklerQuery } from \"@/query/slug\";\n\n// Mixins\nimport SEO from \"@/mixins/seo\";\nimport lang from \"@/mixins/lang\";\nimport device from \"@/mixins/device\";\nimport { dateMixin } from \"@/mixins/date.js\";\n\nexport default {\n layout: \"dynamic\",\n name: \"PagesContent\",\n mixins: [lang, dateMixin, device, SEO],\n data() {\n return {\n page: {},\n seo: {},\n };\n },\n async asyncData({ params, error, app, route }) {\n const routePath = app.$utils.helper.getLangFromPath(route.path);\n app.context.i18n.setLocale(routePath);\n try {\n const [response] = await Promise.all([\n fetchPageData(\"icerikler\", params.slug, iceriklerQuery, routePath),\n ]);\n\n const pageData = response.data;\n\n if (pageData && pageData.length > 0) {\n return {\n page: pageData[0].attributes,\n seo: pageData[0].attributes.seo ?? null,\n };\n } else {\n error({ statusCode: 404, message: \"Page not found\" });\n }\n } catch (err) {\n error({ statusCode: 404, message: \"Page not found\" });\n console.error(\"API Error:\", err);\n }\n },\n head() {\n const pageTitle = this.page?.title;\n return {\n title: this.page?.seo?.metaTitle ?? pageTitle,\n };\n },\n};\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../../node_modules/@nuxt/webpack/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../../node_modules/@nuxt/webpack/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=21fc379a&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=21fc379a&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@nuxt/webpack/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* nuxt-component-imports */\ninstallComponents(component, {PagesDetail: require('/usr/app/components/pages/Detail.vue').default})\n","import axios from 'axios';\n\nconst api = axios.create({\n baseURL: process.env.NUXT_ENV_API_URL, // Replace with your API URL\n});\n\nexport async function fetchPageData(collection, slug, query, locale) {\n try {\n const { data } = await api.get(`${collection}/?filters[slug]=${slug}&${query}&locale=${locale}`, {\n headers: {\n Authorization: `Bearer ${process.env.NUXT_ENV_AUTH_TOKEN}`,\n },\n });\n return data;\n } catch (err) {\n throw new Error(err);\n }\n}\n","import qs from \"qs\";\n\nexport const iceriklerQuery = qs.stringify(\n {\n populate: {\n featuredMedia: {\n fields: [\"*\"],\n populate: [\"url\", \"alternativeText\", \"hash\"],\n },\n video: {\n fields: [\"*\"],\n },\n galleryMedia: {\n fields: [\"*\"],\n populate: [\"url\", \"alternativeText\", \"hash\"],\n },\n seo: {\n fields: [\"*\"],\n populate: \"metaImage\",\n },\n icerik_turu: {\n fields: [\"*\"],\n populate: [\"title\", \"slug\"],\n },\n birimler: {\n fields: [\"*\"],\n populate: [\"title\", \"slug\", \"link\"],\n },\n etiketler: {\n fields: [\"*\"],\n populate: [\"title\", \"slug\"],\n },\n },\n },\n {\n encodeValuesOnly: true,\n }\n);\n\nexport const yayinlarQuery = qs.stringify(\n {\n populate: {\n featuredMedia: {\n fields: [\"*\"],\n populate: [\"url\", \"alternativeText\", \"hash\"],\n },\n publication: {\n fields: [\"*\"],\n populate: [\"title\", \"featuredMedia\", \"file\"],\n },\n seo: {\n fields: [\"*\"],\n populate: \"metaImage\",\n },\n },\n },\n {\n encodeValuesOnly: true,\n }\n);\n\nexport const kisilerQuery = qs.stringify(\n {\n populate: {\n cardPerson: {\n fields: [\"*\"],\n populate: [\"foto\", \"parti\", \"ilce\"],\n },\n },\n },\n {\n encodeValuesOnly: true,\n }\n);\n\nexport const raporlarQuery = qs.stringify(\n {\n populate: {\n files: {\n fields: [\"*\"],\n populate: [\"file\"],\n },\n },\n },\n {\n encodeValuesOnly: true,\n }\n);\n"],"sourceRoot":""}