{"version":3,"sources":["webpack:///./src/views/community/views/shop/shop.vue?4ded","webpack:///./src/views/community/views/shop/components/shopItem.vue?ebf8","webpack:///./src/views/community/views/shop/components/shopItem.vue?3d48","webpack:///./src/views/community/views/shop/components/shopItem.vue","webpack:///./src/views/community/views/shop/shop.vue?8c82","webpack:///./src/views/community/views/shop/shop.vue","webpack:///./src/views/community/views/shop/components/shopItem.vue?db24","webpack:///./src/assets/img/community/cartIcon.png","webpack:///./src/components/shareButton.vue?9407","webpack:///./src/views/community/views/shop/shop.vue?5fec","webpack:///./src/components/shareButton.vue?fff6","webpack:///./src/components/shareButton.vue?2562","webpack:///./src/components/shareButton.vue","webpack:///./src/assets/img/community/document.svg"],"names":["_withId","_hoisted_1","key","_hoisted_2","class","_hoisted_3","href","style","_hoisted_4","_hoisted_5","_hoisted_6","src","_hoisted_7","_hoisted_8","_hoisted_9","render","_ctx","_cache","_component_localized_text","_component_shop_item","$store","state","community","isCertified","owner","identifier","user","model","baseShopItemsVM","length","localizedKey","text","item","index","ref","type","onClick","$event","$router","push","slug","pdfUrl","openBlank","cartIdentifier","openCart","totalItemsInCart","$props","$setup","$data","$options","thumbnailUrl","title","category","$filters","currency","price","shareUrl","url","this","$route","path","default","components","ShareButton","__exports__","communityIdentifier","event","params","toString","getBySlug","proms","getCartItemsCount","isEvent","getShopItemsByEvent","getShopItemsByCommunity","Promise","all","then","xs","query","f","setTimeout","post","$refs","classList","add","scrollIntoView","remove","itemsInCommunity","getCommunitiesOfFieraBySlug","x","forEach","c","items","e","el","fullPath","indexOf","ShopItem","module","exports","loaded","cordova","toShareUrl","$slots","undefined","args","share","window","$nextTick","a2a","init","cordovaShareUrl","options","plugins","socialsharing","shareWithOptions","onSuccess","onError","result","msg"],"mappings":"mLAIA,MAAMA,EAAuB,eAAa,mBAE1C,eAAa,mBACb,MAAMC,EAAa,CAAEC,IAAK,GACpBC,EAAa,CAAEC,MAAO,yBACtBC,EAAa,CACjBH,IAAK,EACLI,KAAM,sBACNF,M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,W,iCCCrB,MAAMG,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASjD,GAAQ,CAAC,YAAY,qBAE1E,U,mECTfoF,EAAOC,QAAU,IAA0B","file":"js/chunk-5a520fb2292b996b863d.js","sourcesContent":["import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, toDisplayString as _toDisplayString, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/img/community/document.svg'\nimport _imports_1 from '@/assets/img/community/cartIcon.png'\n\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-741d3918\")\n\n_pushScopeId(\"data-v-741d3918\")\nconst _hoisted_1 = { key: 0 }\nconst _hoisted_2 = { class: \"footerButtonContainer\" }\nconst _hoisted_3 = {\n key: 0,\n href: \"mailto:info@uose.eu\",\n class: \"genericButton bgGreyBlue w-100\",\n style: {\"text-decoration\":\"none\"}\n}\nconst _hoisted_4 = {\n key: 1,\n class: \"hasAdminButtonsFooter\"\n}\nconst _hoisted_5 = { class: \"adminButtonContainer\" }\nconst _hoisted_6 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_0 }, null, -1)\nconst _hoisted_7 = {\n key: 0,\n class: \"cartCounter\"\n}\nconst _hoisted_8 = { class: \"\" }\nconst _hoisted_9 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_1 }, null, -1)\n_popScopeId()\n\nexport const render = /*#__PURE__*/_withId((_ctx: any,_cache: any) => {\n const _component_localized_text = _resolveComponent(\"localized-text\")!\n const _component_shop_item = _resolveComponent(\"shop-item\")!\n\n return (!_ctx.$store.state.community.isCertified && _ctx.$store.state.community.owner.identifier == _ctx.$store.state.user.identifier)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n (_ctx.model.baseShopItemsVM.length == 0)\n ? (_openBlock(), _createBlock(_component_localized_text, {\n key: 0,\n localizedKey: \"app_nessunelementopresente\",\n text: \"Nessun elemento presente\",\n class: \"fs_14 greyBlue d-block ln_12 mt-5 text-center\"\n }))\n : _createCommentVNode(\"\", true),\n _createVNode(\"div\", _hoisted_2, [\n (_ctx.$store.state.community.type != 'fiera')\n ? (_openBlock(), _createBlock(\"a\", _hoisted_3, [\n _createVNode(_component_localized_text, {\n class: \"fs_14 white\",\n localizedKey: \"app_richiedishop\",\n text: \"Richiedi shop\"\n })\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n : (_openBlock(), _createBlock(\"div\", _hoisted_4, [\n (_ctx.model.baseShopItemsVM.length == 0)\n ? (_openBlock(), _createBlock(_component_localized_text, {\n key: 0,\n localizedKey: \"app_nessunelementopresente\",\n text: \"Nessun elemento presente\",\n class: \"fs_14 greyBlue d-block ln_12 mt-5 text-center\"\n }))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.model.baseShopItemsVM, (item, index) => {\n return (_openBlock(), _createBlock(\"div\", {\n class: \"shop_item_container\",\n key: index,\n ref: item.identifier\n }, [\n (_ctx.$store.state.community.type == 'fiera')\n ? (_openBlock(), _createBlock(_component_shop_item, {\n key: 0,\n model: item,\n onClick: ($event: any) => (_ctx.$router.push('/communities/'+ item.slug + '/Shop'))\n }, null, 8, [\"model\", \"onClick\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.$store.state.community.type != 'fiera')\n ? (_openBlock(), _createBlock(_component_shop_item, {\n key: 1,\n model: item,\n onClick: ($event: any) => (_ctx.$router.push('Shop/' + item.slug))\n }, null, 8, [\"model\", \"onClick\"]))\n : _createCommentVNode(\"\", true)\n ], 512))\n }), 128)),\n _createVNode(\"div\", _hoisted_5, [\n (_ctx.model.baseShopItemsVM.length > 0 && _ctx.model.pdfUrl)\n ? (_openBlock(), _createBlock(\"div\", {\n key: 0,\n class: \"managementButton\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.$store.state.openBlank(_ctx.model.pdfUrl)))\n }, [\n _hoisted_6\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.model.cartIdentifier)\n ? (_openBlock(), _createBlock(\"div\", {\n key: 1,\n class: \"managementButton\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.openCart()))\n }, [\n (_ctx.totalItemsInCart)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_7, [\n _createVNode(\"span\", _hoisted_8, _toDisplayString(_ctx.totalItemsInCart), 1)\n ]))\n : _createCommentVNode(\"\", true),\n _hoisted_9\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n})","import { createVNode as _createVNode, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-aca8e37c\")\n\n_pushScopeId(\"data-v-aca8e37c\")\nconst _hoisted_1 = { class: \"shopItem\" }\nconst _hoisted_2 = { class: \"info d-flex flex-column justify-content-between w-100\" }\nconst _hoisted_3 = { class: \"pt-2\" }\nconst _hoisted_4 = { class: \"fs_13 grey d-block\" }\nconst _hoisted_5 = { class: \"text-end pb-2\" }\nconst _hoisted_6 = { class: \"fs_13 spaceCadet fw_700 ms-1\" }\n_popScopeId()\n\nexport const render = /*#__PURE__*/_withId((_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) => {\n const _component_localized_text = _resolveComponent(\"localized-text\")!\n\n return (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(\"div\", {\n class: \"imageContainer\",\n style: 'background-image: url(\\'' + _ctx.model.thumbnailUrl + '\\');'\n }, null, 4),\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"h2\", null, _toDisplayString(_ctx.model.title), 1),\n _createVNode(\"span\", _hoisted_4, _toDisplayString(_ctx.model.category), 1)\n ]),\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(_component_localized_text, {\n localizedKey: \"app_aPartireDa\",\n text: \"a partire da:\",\n class: \"fs_13 spaceCadet fw_700\"\n }),\n _createVNode(\"span\", _hoisted_6, _toDisplayString(_ctx.$filters.currency(_ctx.model.price)) + \" €\", 1)\n ])\n ])\n ]))\n})","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Prop } from 'vue-property-decorator';\r\nimport { selfUrl } from '@/config';\r\nimport ShareButton from '@/components/shareButton.vue';\r\nimport * as OM from '@/model';\r\n\r\n@Options({\r\n components: {\r\n ShareButton\r\n }\r\n})\r\nexport default class ShopItem extends Vue {\r\n\r\n @Prop({\r\n default: () => new OM.BaseShopItemVM\r\n }) model: OM.BaseShopItemVM;\r\n\r\n shareUrl: string = \"\";\r\n\r\n created() {\r\n var url = this.$route.path;\r\n this.shareUrl = selfUrl + \"#\" + url + \"?f=\" + this.model.identifier;\r\n }\r\n\r\n}\r\n\r\n","import { render } from \"./shopItem.vue?vue&type=template&id=aca8e37c&scoped=true&ts=true\"\nimport script from \"./shopItem.vue?vue&type=script&lang=ts\"\nexport * from \"./shopItem.vue?vue&type=script&lang=ts\"\n\nimport \"./shopItem.vue?vue&type=style&index=0&id=aca8e37c&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-aca8e37c\"]])\n\nexport default __exports__","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { CartClient, CommunityClient, EventClient, FieraClient, ShopClient } from '@/services/Services';\r\nimport ShopItem from './components/shopItem.vue';\r\nimport * as OM from '@/model';\r\nimport { Watch } from 'vue-property-decorator';\r\n\r\n@Options({\r\n components: {\r\n ShopItem\r\n }\r\n})\r\nexport default class Shop extends Vue {\r\n\r\n communityIdentifier: string = \"\";\r\n model: OM.ShopAppVM = new OM.ShopAppVM();\r\n event: OM.EventDetailVm = new OM.EventDetailVm();\r\n slug: string = \"\";\r\n totalItemsInCart: number = 0;\r\n\r\n @Watch(\"$route.params.slug\")\r\n async mounted() {\r\n this.slug = this.$route.params.slug.toString();\r\n var community = await CommunityClient.getBySlug(this.slug)\r\n this.communityIdentifier = community.identifier;\r\n\r\n var proms = [];\r\n\r\n proms.push(CartClient.getCartItemsCount(this.communityIdentifier));\r\n \r\n if(this.isEvent)\r\n proms.push(ShopClient.getShopItemsByEvent(this.communityIdentifier));\r\n else \r\n proms.push(ShopClient.getShopItemsByCommunity(this.communityIdentifier));\r\n \r\n Promise.all(proms)\r\n .then( xs => {\r\n this.totalItemsInCart = xs[0];\r\n this.model = xs[1];\r\n\r\n if(this.$route.query.f){\r\n setTimeout(() => {\r\n let post: any = this.$refs[this.$route.query.f];\r\n if(post){\r\n post.classList.add('evidenzia');\r\n\r\n post.scrollIntoView();\r\n setTimeout(() => {\r\n post.classList.remove('evidenzia')\r\n }, 2000)\r\n }\r\n }, 200)\r\n }\r\n })\r\n\r\n if(this.$store.state.community.type == 'fiera'){\r\n\r\n //certifica community \r\n this.$store.state.community.isCertified = true;\r\n\r\n var itemsInCommunity : OM.NameSlugIdentifier[] = [];\r\n\r\n //prendi tutte le community dallo slug della fiera interne ad essa \r\n await FieraClient.getCommunitiesOfFieraBySlug(this.$route.params.slug.toString())\r\n .then(x => {\r\n x.forEach(c => {\r\n itemsInCommunity = c.items\r\n });\r\n })\r\n\r\n //per ogni community presa tira giu tutti gli item nel suo shop se il suo shop, se esistono elementi se no non ciclare, \r\n itemsInCommunity.forEach(e =>{\r\n ShopClient.getShopItemsByCommunity(e.identifier)\r\n .then(x =>{\r\n if(x.baseShopItemsVM.length > 0)\r\n x.baseShopItemsVM.forEach(el => {\r\n this.model.baseShopItemsVM.push(el)\r\n })\r\n })\r\n })\r\n }\r\n }\r\n\r\n get isEvent(){\r\n return this.$route.fullPath.indexOf(\"/events/\") != -1;\r\n }\r\n\r\n openCart() {\r\n this.$router.push('/communities/' + this.slug + '/Cart');\r\n }\r\n}\r\n","import { render } from \"./shop.vue?vue&type=template&id=741d3918&scoped=true&ts=true\"\nimport script from \"./shop.vue?vue&type=script&lang=ts\"\nexport * from \"./shop.vue?vue&type=script&lang=ts\"\n\nimport \"./shop.vue?vue&type=style&index=0&id=741d3918&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-741d3918\"]])\n\nexport default __exports__","export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./shopItem.vue?vue&type=style&index=0&id=aca8e37c&scoped=true&lang=css\"","module.exports = __webpack_public_path__ + \"img/cartIcon.6b0ba378.png\";","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./shareButton.vue?vue&type=style&index=0&id=6e37e45c&scoped=true&lang=css\"","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./shop.vue?vue&type=style&index=0&id=741d3918&scoped=true&lang=css\"","import { renderSlot as _renderSlot, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-6e37e45c\")\n\n_pushScopeId(\"data-v-6e37e45c\")\nconst _hoisted_1 = { key: 0 }\nconst _hoisted_2 = {\n class: \"a2a_dd\",\n href: \"https://www.addtoany.com/share\"\n}\n_popScopeId()\n\nexport const render = /*#__PURE__*/_withId((_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) => {\n return (_ctx.loaded && !_ctx.cordova)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(\"div\", {\n class: \"a2a_kit a2a_kit_size_32 a2a_default_style\",\n \"data-a2a-url\": _ctx.toShareUrl\n }, [\n _createVNode(\"a\", _hoisted_2, [\n _renderSlot(_ctx.$slots, \"default\", {}, undefined, true)\n ])\n ], 8, [\"data-a2a-url\"])\n ]))\n : (_ctx.loaded)\n ? (_openBlock(), _createBlock(\"div\", {\n key: 1,\n onClick: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_ctx.share && _ctx.share(...args)))\n }, [\n _renderSlot(_ctx.$slots, \"default\", {}, undefined, true)\n ]))\n : _createCommentVNode(\"\", true)\n})","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Prop, Watch } from 'vue-property-decorator';\r\nimport { selfUrl } from '@/config';\r\n\r\n@Options({})\r\nexport default class ShareButton extends Vue {\r\n\r\n @Prop({\r\n default: \"\"\r\n }) shareUrl: string;\r\n\r\n loaded: boolean = false;\r\n cordova: boolean = false;\r\n\r\n toShareUrl: string = \"\";\r\n\r\n created(){\r\n if(window.cordova)\r\n this.cordova = true;\r\n }\r\n\r\n mounted() {\r\n if(this.shareUrl){\r\n // this.toShareUrl = selfUrl + \"?\" + this.shareUrl + \"&hashtag=\" + this.shareUrl.substr(this.shareUrl.indexOf(\"#\")) + \"?open_app_uose=true\";\r\n this.toShareUrl = this.shareUrl;\r\n\r\n this.loaded = true;\r\n this.$nextTick( () => {\r\n a2a.init('page')\r\n })\r\n }\r\n }\r\n\r\n share(){\r\n var cordovaShareUrl = this.toShareUrl;\r\n var options = {\r\n url: cordovaShareUrl\r\n } \r\n\r\n window.plugins.socialsharing.shareWithOptions(options, onSuccess, onError);\r\n var onSuccess = function(result) {\r\n };\r\n\r\n var onError = function(msg) {\r\n };\r\n }\r\n\r\n @Watch(\"shareUrl\")\r\n changeUrl(){\r\n this.toShareUrl = this.shareUrl;\r\n\r\n this.loaded = true;\r\n this.$nextTick( () => {\r\n a2a.init('page')\r\n })\r\n }\r\n\r\n}\r\n","import { render } from \"./shareButton.vue?vue&type=template&id=6e37e45c&scoped=true&ts=true\"\nimport script from \"./shareButton.vue?vue&type=script&lang=ts\"\nexport * from \"./shareButton.vue?vue&type=script&lang=ts\"\n\nimport \"./shareButton.vue?vue&type=style&index=0&id=6e37e45c&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6e37e45c\"]])\n\nexport default __exports__","module.exports = __webpack_public_path__ + \"img/document.abe4aad8.svg\";"],"sourceRoot":""}