{"version":3,"sources":["webpack:///./src/pages/static-page.vue?b4ac","webpack:///./src/pages/static-page.vue","webpack:///./src/domain/composables/use-static-page.js","webpack:///src/pages/static-page.vue","webpack:///./src/pages/static-page.vue?b198","webpack:///./src/pages/static-page.vue?1922"],"names":["render","_vm","this","_c","_self","staticClass","pageIsLoading","attrs","domProps","_s","staticPageContent","staticRenderFns","useStaticPage","async","getStaticPage","staticPageId","api","getExistingApiInstance","data","staticPage","getOne","getStartPageId","eventId","getMany","filter","type","fields","page","length","startPage","id","computed","watch","handler","immediate","methods","path","component"],"mappings":"+GAAA,W,kECAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAAGJ,EAAIK,cAA8HH,EAAG,OAAO,CAACI,MAAM,CAAC,IAAM,MAAvIJ,EAAG,MAAM,CAACE,YAAY,kCAAkCG,SAAS,CAAC,UAAYP,EAAIQ,GAAGR,EAAIS,uBAAqD,MAEzSC,EAAkB,G,YCAP,SAASC,IACtBC,eAAeC,EAAcC,GAC3B,MAAMC,EAAMC,kBACN,KAAEC,SAAeF,EAAIG,WAAWC,OAAOL,GAE7C,OAAOG,EAETL,eAAeQ,EAAeC,GAC5B,MAAMN,EAAMC,kBACN,KAAEC,SAAeF,EAAIG,WAAWI,QAAQ,CAC5CC,OAAQ,CACNF,UACAG,KAAM,WAERC,OAAQ,CACNC,KAAM,aAIV,IAAKT,EAAKU,OACR,OAAO,KAET,MAAOC,GAAaX,EAEpB,OAAOW,EAAUC,GAGnB,MAAO,CAAEhB,gBAAeO,kB,4BCXX,GACfH,OACA,OACAS,QACArB,mBAIAyB,UACArB,oBAAA,QACA,0FAIAsB,OACA,8BACAC,UACA,wBAEAC,eAIAC,SACA,wBACA,wCACA,sBACA,oBAAArB,GAAA,IACA,+BACA,wBAGAK,8CACAA,aAKA,kBAHA,qBAAAiB,iBCrDqV,I,wBCQjVC,EAAY,eACd,EACArC,EACAW,GACA,EACA,KACA,KACA,MAIa,aAAA0B,E","file":"js/static-page.de17f42f.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/style-resources-loader/lib/index.js??ref--9-oneOf-1-4!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./static-page.vue?vue&type=style&index=0&id=29bec77d&prod&lang=scss&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"static-page\"},[_c('div',{staticClass:\"s-card\"},[(!_vm.pageIsLoading)?_c('div',{staticClass:\"static-page-content arx-content\",domProps:{\"innerHTML\":_vm._s(_vm.staticPageContent)}}):_c('Spin',{attrs:{\"fix\":\"\"}})],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { getExistingApiInstance } from '@/api'\n\nexport default function useStaticPage() {\n async function getStaticPage(staticPageId) {\n const api = getExistingApiInstance()\n const { data } = await api.staticPage.getOne(staticPageId)\n\n return data\n }\n async function getStartPageId(eventId) {\n const api = getExistingApiInstance()\n const { data } = await api.staticPage.getMany({\n filter: {\n eventId,\n type: 'default',\n },\n fields: {\n page: 'id,type',\n },\n })\n\n if (!data.length) {\n return null\n }\n const [startPage] = data\n\n return startPage.id\n }\n\n return { getStaticPage, getStartPageId }\n}\n","\n \n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./static-page.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./static-page.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./static-page.vue?vue&type=template&id=29bec77d&\"\nimport script from \"./static-page.vue?vue&type=script&lang=js&\"\nexport * from \"./static-page.vue?vue&type=script&lang=js&\"\nimport style0 from \"./static-page.vue?vue&type=style&index=0&id=29bec77d&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../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"],"sourceRoot":""}