{"version":3,"sources":["webpack:///./src/components/selectCityModal.vue?8789","webpack:///./src/components/googleAutocompleteGetResults.vue?40d2","webpack:///./src/components/googleAutocompleteGetResults.vue?6698","webpack:///./src/components/googleAutocompleteGetResults.vue","webpack:///./src/components/selectCityModal.vue?f29b","webpack:///./src/components/selectCityModal.vue","webpack:///./src/assets/img/close.svg","webpack:///./src/assets/img/management/search.svg","webpack:///./src/assets/img/chevronLeft.svg","webpack:///./src/components/selectCityModal.vue?3b8b","webpack:///./src/assets/img/management/edit.svg","webpack:///./src/components/cartItem.vue?2b17","webpack:///./src/components/cartItem.vue?79a3","webpack:///./src/components/cartItem.vue","webpack:///./src/views/community/views/shop/cartResume.vue?0964","webpack:///./src/components/cartItem.vue?1e95","webpack:///./src/assets/img/infoIcon.png","webpack:///./src/views/community/views/shop/cartResume.vue?73c8","webpack:///./src/views/community/views/shop/modals/shipmentDetailModal.vue?6435","webpack:///./src/views/community/views/shop/modals/shipmentDetailModal.vue?a0c9","webpack:///./src/views/community/views/shop/modals/shipmentDetailModal.vue","webpack:///./node_modules/vue-plugin-load-script/index.js","webpack:///./src/views/community/views/shop/cartResume.vue?2edc","webpack:///./src/views/community/views/shop/cartResume.vue"],"names":["_withId","_hoisted_1","class","_hoisted_2","_hoisted_3","src","_hoisted_4","_hoisted_5","_hoisted_6","key","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","render","_ctx","_cache","$props","$setup","$data","$options","_component_localized_text","_component_google_autocomplete_get_results","onClick","$event","$emit","addressTitle","localSearchText","addressQuestion","provinceList","city","index","searchCityLocation","description","localizedKey","text","inputClass","onChangeAddress","changeAddress","placeholderText","value","onInput","emitText","placeholder","type","localInput","target","id","this","length","request","input","componentRestrictions","country","restrictToCountries","clearTimeout","timeoutHandler","setTimeout","autocomplete","getPlacePredictions","emitResults","google","maps","places","AutocompleteService","data","default","__exports__","selectedCity","LocalizationServices","getLocalizedValue","geocoder","Geocoder","searchText","$opModal","closeLast","name","placeId","place_id","geocode","setLatitudeLognitude","fields","div","document","createElement","service","PlacesService","getDetails","result","place","status","PlacesServiceStatus","OK","address","typedAddress","formatted_address","latitude","geometry","location","lat","longitude","lng","streetNumber","returnValue","address_components","route","countryCode","locality","postalCode","province","region","callback","array","shortName","object","find","x","types","y","short_name","long_name","Function","components","googleAutocompleteGetResults","module","exports","style","model","thumbnailUrl","title","variation","variations","dic","amount","$filters","currency","price","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_component_cart_item","$router","back","cartItems","openSettings","cartItem","shipmentDetail","shipmentDescription","shipmentAmount","totalPrice","hasShippableItem","searchCity","shippingAddress","notes","xPayApiKey","errors","loaded","pagaBtn","disabled","paymentLoading","isDisabled","createOrderWireTranfer","shipmentInfo","loadScript","Promise","resolve","reject","shouldAppend","el","querySelector","hasAttribute","async","addEventListener","setAttribute","head","appendChild","communityIdentifier","buttonDisabled","nexiClientModel","paymentRequest","card","buttons","slug","$route","params","toString","getBySlug","then","identifier","init","getCartDetail","console","log","paymentRequestVM","orderIdentifier","cartIdentifier","getPaymentModel","xPayEnvironment","XPay","Environments","PROD","config","baseConfig","apiKey","enviroment","paymentParams","transactionId","transactionCode","timeStamp","mac","url","urlBack","customParams","language","LANGUAGE","ITA","setConfig","setInformazioniSicurezza","common","color","fontFamily","fontSize","fontStyle","fontVariant","letterSpacing","textDecoration","textShadow","correct","error","window","paycardErrorCallback","nonceCallback","readyCallback","paymentStartedCallback","acceptedCards","CardBrand","MASTERCARD","VISA","create","OPERATION_TYPES","CARD","mount","PAYMENT_BUTTON","push","event","detail","errorMessage","response","esito","xpayNonce","xpayIdOperazione","idOperazione","xpayTimeStamp","xpayEsito","xpayMac","importo","codiceTransazione","divisa","pay","errore","codice","messaggio","show","message","orderSuccess","buttonText","buttonUrl","payWithWireTransfer","removeEventListener","createNonce","isShippable","modalTitle","question","vm","setShippingAddress","catch","err","toastr","CartItem"],"mappings":"uJAGA,MAAMA,EAAuB,eAAa,mBAE1C,eAAa,mBACb,MAAMC,EAAa,CAAEC,MAAO,8CACtBC,EAAa,CAAED,MAAO,4EACtBE,EAA0B,eAAa,MAAO,CAAEC,IAAK,KAAc,MAAO,GAC1EC,EAAa,CAAEJ,MAAO,kBACtBK,EAA0B,eAAa,MAAO,CAAEL,MAAO,iBAAmB,MAAO,GACjFM,EAAa,CACjBC,IAAK,EACLP,MAAO,qBAEHQ,EAAa,CAAER,MAAO,wBACtBS,EAAa,CAAET,MAAO,oBACtBU,EAAa,CAAEV,MAAO,6BACtBW,EAAc,CAAEX,MAAO,eACvBY,EAAc,CAAEL,IAAK,GACrBM,EAAc,CAAEb,MAAO,wBACvBc,EAAc,CAAEd,MAAO,oBACvBe,EAAc,CAAEf,MAAO,YACvBgB,EAAc,CAAEhB,MAAO,kBACvBiB,EAAc,CAAEjB,MAAO,yBAC7B,iBAEO,MAAMkB,EAAsBpB,EAAQ,CAACqB,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,KACnG,MAAMC,EAA4B,eAAkB,kBAC9CC,EAA6C,eAAkB,mCAErE,OAAQ,iBAAc,eAAa,MAAO3B,EAAY,CACpD,eAAa,MAAOE,EAAY,CAC9B,eAAa,MAAO,CAClBD,MAAO,gBACP2B,QAASP,EAAO,KAAOA,EAAO,GAAMQ,GAAiBT,EAAKU,MAAM,WAC/D,CACD3B,IAEF,eAAa,OAAQE,EAAY,eAAiBe,EAAKW,cAAe,GACtEzB,IAEAc,EAAKY,iBAiBF,iBAAc,eAAa,MAAOnB,EAAa,CAC9C,eAAa,MAAOC,EAAa,CAC/B,eAAa,MAAOC,EAAa,CAC/B,eAAa,KAAMC,EAAa,CAC9B,eAAa,OAAQ,KAAM,eAAiBI,EAAKa,iBAAkB,SAIzE,eAAa,MAAOhB,EAAa,EAC9B,gBAAW,GA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,gBAAkBlH,KAAK+E,MAAMmC,gBAAgBpE,aAAe,GACnFiB,SAAWjF,IACP,IAAI6P,EAAK,IAAI,QACbA,EAAGrF,WAAatJ,KAAK+E,MAAM8E,eAC3B8E,EAAGzH,gBAAkBpI,EAErB,OAAW8P,mBAAmBD,GAC7BtF,KAAMjF,IACHpE,KAAK+E,MAAMmC,gBAAkBpI,EAC7BkB,KAAK0B,SAASC,cACfkN,MAAOC,IACN/C,OAAOgD,OAAOjD,MAAM,2EArQnB,GAAU,gBAL9B,eAAQ,CACLpH,WAAY,CACRsK,SAAA,WAGa,c,UCXrB,MAAM,GAA2B,KAAgB,GAAQ,CAAC,CAAC,SAASlR,GAAQ,CAAC,YAAY,qBAE1E,iB","file":"js/chunk-7337bd12cc3766fc3b98.js","sourcesContent":["import { createVNode as _createVNode, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/img/chevronLeft.svg'\n\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-34a0412c\")\n\n_pushScopeId(\"data-v-34a0412c\")\nconst _hoisted_1 = { class: \"genericPadding hasHeader hasFooter bgWhite\" }\nconst _hoisted_2 = { class: \"header withShadow d-flex aling-items-center justify-content-between py-4\" }\nconst _hoisted_3 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_0 }, null, -1)\nconst _hoisted_4 = { class: \"fs_12 greyBlue\" }\nconst _hoisted_5 = /*#__PURE__*/_createVNode(\"div\", { class: \"sideContainer\" }, null, -1)\nconst _hoisted_6 = {\n key: 0,\n class: \"no_content_search\"\n}\nconst _hoisted_7 = { class: \"descriptionContainer\" }\nconst _hoisted_8 = { class: \"info text-center\" }\nconst _hoisted_9 = { class: \"text-center mb-3 greyBlue\" }\nconst _hoisted_10 = { class: \"text-center\" }\nconst _hoisted_11 = { key: 1 }\nconst _hoisted_12 = { class: \"descriptionContainer\" }\nconst _hoisted_13 = { class: \"info text-center\" }\nconst _hoisted_14 = { class: \"greyBlue\" }\nconst _hoisted_15 = { class: \"scrollable_div\" }\nconst _hoisted_16 = { class: \"footerButtonContainer\" }\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 const _component_google_autocomplete_get_results = _resolveComponent(\"google-autocomplete-get-results\")!\n\n return (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", {\n class: \"sideContainer\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.$emit('close')))\n }, [\n _hoisted_3\n ]),\n _createVNode(\"span\", _hoisted_4, _toDisplayString(_ctx.addressTitle), 1),\n _hoisted_5\n ]),\n (!_ctx.localSearchText)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_6, [\n _createVNode(\"div\", _hoisted_7, [\n _createVNode(\"div\", _hoisted_8, [\n _createVNode(\"h5\", _hoisted_9, [\n _createVNode(\"span\", null, _toDisplayString(_ctx.addressQuestion), 1)\n ]),\n _createVNode(\"span\", _hoisted_10, [\n _createVNode(_component_localized_text, {\n class: \"fs_13 grey\",\n localizedKey: \"app_iniziaascrivereilnomedellaregione\",\n text: \"Inizia a scrivere il nome della Regione, Provincia o Comune e scegli tra i suggerimenti\"\n })\n ])\n ])\n ])\n ]))\n : (_openBlock(), _createBlock(\"div\", _hoisted_11, [\n _createVNode(\"div\", _hoisted_12, [\n _createVNode(\"div\", _hoisted_13, [\n _createVNode(\"h5\", _hoisted_14, [\n _createVNode(\"span\", null, _toDisplayString(_ctx.addressQuestion), 1)\n ])\n ])\n ]),\n _createVNode(\"div\", _hoisted_15, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.provinceList, (city, index) => {\n return (_openBlock(), _createBlock(\"div\", {\n class: \"city_tab\",\n key: index,\n onClick: ($event: any) => (_ctx.searchCityLocation(city))\n }, [\n _createVNode(\"span\", null, _toDisplayString(city.description), 1)\n ], 8, [\"onClick\"]))\n }), 128))\n ])\n ])),\n _createVNode(\"div\", _hoisted_16, [\n _createVNode(_component_google_autocomplete_get_results, {\n inputClass: 'genericInput',\n onChangeAddress: _ctx.changeAddress,\n placeholderText: _ctx.placeholderText,\n value: _ctx.localSearchText,\n onInput: _ctx.emitText\n }, null, 8, [\"onChangeAddress\", \"placeholderText\", \"value\", \"onInput\"])\n ])\n ]))\n})","import { openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createBlock(\"input\", {\n placeholder: _ctx.placeholderText,\n type: \"text\",\n class: _ctx.inputClass ? _ctx.inputClass : '',\n value: _ctx.localInput,\n onInput: _cache[1] || (_cache[1] = ($event: any) => (_ctx.localInput = $event.target.value)),\n id: \"google_autocomplete_province\"\n }, null, 42, [\"placeholder\", \"value\"]))\n}","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Prop, Watch } from 'vue-property-decorator';\r\n\r\n@Options({})\r\nexport default class GoogleAutocompleteGetResults extends Vue {\r\n \r\n @Prop({\r\n default: \"\"\r\n }) inputClass: string;\r\n\r\n @Prop({\r\n default: \"\"\r\n }) value: string;\r\n\r\n @Prop({\r\n default: \"\"\r\n }) placeholderText: string;\r\n\r\n @Prop({\r\n default: function () { return ['it'] }\r\n }) restrictToCountries: string[];\r\n\r\n localInput: string = \"\";\r\n autocomplete: any;\r\n\r\n timeoutHandler;\r\n @Watch('localInput')\r\n changedText(){\r\n if(this.localInput.length < 3)\r\n return;\r\n\r\n var request = {\r\n input: this.localInput,\r\n componentRestrictions: {\r\n country: []\r\n },\r\n }\r\n if(this.restrictToCountries){\r\n request.componentRestrictions.country = this.restrictToCountries;\r\n }\r\n this.$emit(\"input\", this.localInput);\r\n\r\n clearTimeout(this.timeoutHandler);\r\n this.timeoutHandler = setTimeout(() => {\r\n this.autocomplete.getPlacePredictions(request, this.emitResults);\r\n }, 1000);\r\n }\r\n\r\n created(){\r\n this.localInput = this.value;\r\n }\r\n\r\n mounted(){\r\n this.autocomplete = new google.maps.places.AutocompleteService();\r\n }\r\n\r\n emitResults(data, text){\r\n this.$emit('changeAddress', data)\r\n }\r\n}\r\n","import { render } from \"./googleAutocompleteGetResults.vue?vue&type=template&id=333552c6&ts=true\"\nimport script from \"./googleAutocompleteGetResults.vue?vue&type=script&lang=ts\"\nexport * from \"./googleAutocompleteGetResults.vue?vue&type=script&lang=ts\"\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]])\n\nexport default __exports__","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Prop } from 'vue-property-decorator';\r\nimport googleAutocompleteGetResults from '@/components/googleAutocompleteGetResults.vue';\r\nimport * as OM from '@/model';\r\nimport { LocalizationServices } from '@/services/LocalizationServices';\r\n\r\n@Options({\r\n components: {\r\n googleAutocompleteGetResults\r\n }\r\n})\r\nexport default class SelectCityModalView extends Vue {\r\n\r\n @Prop({\r\n default: \"\"\r\n }) addressTitle: string;\r\n\r\n @Prop({\r\n default: \"\"\r\n }) addressQuestion: string;\r\n\r\n provinceList: any[] = [];\r\n placeholderText: string = \"\";\r\n\r\n @Prop({\r\n default: \"\"\r\n }) searchText: string;\r\n\r\n @Prop({\r\n type: [Function]\r\n }) callback: any;\r\n\r\n localSearchText: string = \"\";\r\n selectedCity = new OM.Address();\r\n geocoder: any;\r\n\r\n created() {\r\n this.placeholderText = LocalizationServices.getLocalizedValue(\"app_cercaregioneprovinciaocomune\", \"Cerca regione, provincia o comune\");\r\n this.geocoder = new google.maps.Geocoder();\r\n this.localSearchText = this.searchText;\r\n }\r\n\r\n closeModal(){\r\n this.$opModal.closeLast();\r\n }\r\n\r\n searchCityLocation(city: any){\r\n this.selectedCity.name = city.description;\r\n\r\n var request = {\r\n placeId: city.place_id\r\n }\r\n this.geocoder.geocode(request, this.setLatitudeLognitude);\r\n }\r\n\r\n setLatitudeLognitude(data, text){\r\n var request = {\r\n placeId: data[0].place_id,\r\n fields: [\"address_components\", \"geometry\", \"formatted_address\", \"name\"]\r\n };\r\n\r\n var div = document.createElement(\"div\");\r\n\r\n var service = new google.maps.places.PlacesService(div);\r\n service.getDetails(request, this.result);\r\n\r\n // this.selectedCity.latitude = data[0].geometry.location.lat();\r\n // this.selectedCity.longitude = data[0].geometry.location.lng();\r\n\r\n // this.callback(this.selectedCity);\r\n }\r\n\r\n result(place, status){\r\n if (status == google.maps.places.PlacesServiceStatus.OK) {\r\n var address: any = {};\r\n address.typedAddress = place.formatted_address;\r\n address.latitude = place.geometry.location.lat();\r\n address.longitude = place.geometry.location.lng();\r\n address.name = place.name;\r\n address.streetNumber = this.returnValue(place.address_components, \"street_number\");\r\n address.route = this.returnValue(place.address_components, \"route\");\r\n address.country = this.returnValue(place.address_components, \"country\");\r\n address.countryCode = this.returnValue(place.address_components, \"country_code\");\r\n address.locality = this.returnValue(place.address_components, \"administrative_area_level_3\");\r\n address.postalCode = this.returnValue(place.address_components, \"postal_code\");\r\n address.province = this.returnValue(place.address_components, \"administrative_area_level_2\", true);\r\n address.region = this.returnValue(place.address_components, \"administrative_area_level_1\");\r\n \r\n this.callback(address)\r\n }\r\n }\r\n\r\n returnValue(array: any[], key: string, shortName: boolean = false){\r\n var object = array.find( x => {\r\n return x.types.find( y => {\r\n return y == key\r\n })\r\n });\r\n \r\n if(object){\r\n if(!shortName)\r\n return object.long_name;\r\n return object.short_name;\r\n }\r\n return \"\";\r\n }\r\n\r\n changeAddress(data){\r\n this.provinceList = data;\r\n }\r\n\r\n emitText(text: string){\r\n this.localSearchText = text;\r\n }\r\n\r\n}\r\n","import { render } from \"./selectCityModal.vue?vue&type=template&id=34a0412c&scoped=true&ts=true\"\nimport script from \"./selectCityModal.vue?vue&type=script&lang=ts\"\nexport * from \"./selectCityModal.vue?vue&type=script&lang=ts\"\n\nimport \"./selectCityModal.vue?vue&type=style&index=0&id=34a0412c&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-34a0412c\"]])\n\nexport default __exports__","module.exports = __webpack_public_path__ + \"img/close.32f94dc6.svg\";","module.exports = __webpack_public_path__ + \"img/search.cd0cad2c.svg\";","module.exports = __webpack_public_path__ + \"img/chevronLeft.86209808.svg\";","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!./selectCityModal.vue?vue&type=style&index=0&id=34a0412c&scoped=true&lang=css\"","module.exports = __webpack_public_path__ + \"img/edit.2b43f03b.svg\";","import { createVNode as _createVNode, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, resolveComponent as _resolveComponent, createTextVNode as _createTextVNode, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-6a0f7648\")\n\n_pushScopeId(\"data-v-6a0f7648\")\nconst _hoisted_1 = { class: \"shopItem\" }\nconst _hoisted_2 = { class: \"info\" }\nconst _hoisted_3 = { class: \"fs_13 grey text-capitalize\" }\nconst _hoisted_4 = { class: \"d-flex align-items-center justify-content-between\" }\nconst _hoisted_5 = { class: \"fs_14 greyBlue\" }\nconst _hoisted_6 = { class: \"fs_14 spaceCadet\" }\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\", null, [\n _createVNode(\"h2\", null, _toDisplayString(_ctx.model.title), 1),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.model.variation.variations, (dic, key) => {\n return (_openBlock(), _createBlock(\"div\", {\n key: key,\n class: \"ln_12\"\n }, [\n _createVNode(\"span\", _hoisted_3, _toDisplayString(key) + \": \" + _toDisplayString(dic), 1)\n ]))\n }), 128))\n ]),\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(\"span\", _hoisted_5, [\n _createVNode(_component_localized_text, {\n localizedKey: 'app_qt',\n text: 'Qt.'\n }, null, 8, [\"text\"]),\n _createTextVNode(\" \" + _toDisplayString(_ctx.model.amount), 1)\n ]),\n _createVNode(\"span\", _hoisted_6, \"€ \" + _toDisplayString(_ctx.$filters.currency(_ctx.model.variation.price)), 1)\n ])\n ])\n ]))\n})","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Prop } from 'vue-property-decorator';\r\nimport * as OM from '@/model';\r\n\r\n@Options({})\r\nexport default class CartItem extends Vue {\r\n\r\n @Prop({\r\n default: () => new OM.CartItemVM\r\n }) model: OM.CartItemVM;\r\n\r\n created() {\r\n }\r\n\r\n}\r\n\r\n","import { render } from \"./cartItem.vue?vue&type=template&id=6a0f7648&scoped=true&ts=true\"\nimport script from \"./cartItem.vue?vue&type=script&lang=ts\"\nexport * from \"./cartItem.vue?vue&type=script&lang=ts\"\n\nimport \"./cartItem.vue?vue&type=style&index=0&id=6a0f7648&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-6a0f7648\"]])\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!./cartResume.vue?vue&type=style&index=0&id=918d7120&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!./cartItem.vue?vue&type=style&index=0&id=6a0f7648&scoped=true&lang=css\"","module.exports = __webpack_public_path__ + \"img/infoIcon.a44b1a05.png\";","import { createVNode as _createVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, 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/chevronLeft.svg'\nimport _imports_1 from '@/assets/img/management/edit.svg'\nimport _imports_2 from '@/assets/img/infoIcon.png'\nimport _imports_3 from '@/assets/img/management/search.svg'\n\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-918d7120\")\n\n_pushScopeId(\"data-v-918d7120\")\nconst _hoisted_1 = { class: \"fixedViewOverLayout hasHeader genericPadding\" }\nconst _hoisted_2 = { class: \"header withShadow d-flex aling-items-center justify-content-between py-4\" }\nconst _hoisted_3 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_0 }, null, -1)\nconst _hoisted_4 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_1 }, null, -1)\nconst _hoisted_5 = {\n key: 1,\n class: \"sideContainer\"\n}\nconst _hoisted_6 = { key: 1 }\nconst _hoisted_7 = { class: \"greyBlue d-flex align-items-center\" }\nconst _hoisted_8 = {\n key: 0,\n src: _imports_2,\n class: \"ms-2\",\n style: {\"width\":\"16px\"}\n}\nconst _hoisted_9 = { key: 0 }\nconst _hoisted_10 = { key: 1 }\nconst _hoisted_11 = { class: \"shipment mt-0\" }\nconst _hoisted_12 = { class: \"greyBlue\" }\nconst _hoisted_13 = {\n key: 0,\n class: \"mb-4\"\n}\nconst _hoisted_14 = {\n key: 0,\n src: _imports_3,\n class: \"me-2\"\n}\nconst _hoisted_15 = {\n key: 2,\n src: _imports_1,\n class: \"me-2\"\n}\nconst _hoisted_16 = {\n key: 3,\n class: \"fs_14 d-block ln_12\"\n}\nconst _hoisted_17 = { class: \"mb-3 d-flex align-items-start\" }\nconst _hoisted_18 = /*#__PURE__*/_createVNode(\"img\", {\n src: _imports_1,\n class: \"me-2\"\n}, null, -1)\nconst _hoisted_19 = {\n key: 0,\n class: \"fs_14 d-block ln_12\"\n}\nconst _hoisted_20 = { key: 0 }\nconst _hoisted_21 = { class: \"mt-5 text-center\" }\nconst _hoisted_22 = { class: \"mb-4\" }\nconst _hoisted_23 = {\n key: 0,\n class: \"greyBlue pagamento\"\n}\nconst _hoisted_24 = {\n key: 1,\n class: \"xPayForm mt-5\"\n}\nconst _hoisted_25 = /*#__PURE__*/_createVNode(\"div\", { class: \"input-form\" }, [\n /*#__PURE__*/_createVNode(\"div\", { id: \"xpay-card\" })\n], -1)\nconst _hoisted_26 = { class: \"text-center text-danger\" }\nconst _hoisted_27 = /*#__PURE__*/_createVNode(\"div\", {\n id: \"xpay-btn\",\n class: \"d-none\"\n}, null, -1)\nconst _hoisted_28 = { key: 0 }\nconst _hoisted_29 = {\n key: 1,\n style: {\"margin\":\"15px 0\",\"font-weight\":\"700\"}\n}\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 const _component_cart_item = _resolveComponent(\"cart-item\")!\n\n return (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", {\n class: \"sideContainer\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.$router.back()))\n }, [\n _hoisted_3\n ]),\n _createVNode(_component_localized_text, {\n class: \"fs_13 greyBlue\",\n localizedKey: \"app_carrello\",\n text: \"Carrello\"\n }),\n (_ctx.model.cartItems.length > 0)\n ? (_openBlock(), _createBlock(\"div\", {\n key: 0,\n class: \"sideContainer\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.openSettings()))\n }, [\n _hoisted_4\n ]))\n : (_openBlock(), _createBlock(\"div\", _hoisted_5))\n ]),\n (_ctx.model.cartItems.length == 0)\n ? (_openBlock(), _createBlock(_component_localized_text, {\n key: 0,\n localizedKey: \"app_iltuocarrelloevuoto\",\n text: \"Il tuo carrello è vuoto\",\n class: \"fs_14 greyBlue d-block ln_12 mt-5 text-center\"\n }))\n : (_openBlock(), _createBlock(\"div\", _hoisted_6, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.model.cartItems, (cartItem, index) => {\n return (_openBlock(), _createBlock(\"div\", {\n class: \"mb-3\",\n key: index\n }, [\n _createVNode(_component_cart_item, {\n model: cartItem,\n onClick: _cache[3] || (_cache[3] = ($event: any) => (_ctx.openSettings()))\n }, null, 8, [\"model\"])\n ]))\n }), 128)),\n _createVNode(\"div\", {\n class: \"shipment mb-0\",\n onClick: _cache[4] || (_cache[4] = ($event: any) => (_ctx.shipmentDetail()))\n }, [\n _createVNode(\"h4\", _hoisted_7, [\n _createVNode(_component_localized_text, {\n localizedKey: 'app_spedizione',\n text: 'Spedizione'\n }),\n (_ctx.model.shipmentDescription)\n ? (_openBlock(), _createBlock(\"img\", _hoisted_8))\n : _createCommentVNode(\"\", true)\n ]),\n (_ctx.model.shipmentAmount > 0)\n ? (_openBlock(), _createBlock(\"h4\", _hoisted_9, [\n _createVNode(\"span\", null, \"€ \" + _toDisplayString(_ctx.$filters.currency(_ctx.model.shipmentAmount)), 1)\n ]))\n : (_openBlock(), _createBlock(\"h4\", _hoisted_10, [\n _createVNode(_component_localized_text, {\n localizedKey: 'app_gratuita',\n text: 'Gratuita'\n })\n ]))\n ]),\n _createVNode(\"div\", _hoisted_11, [\n _createVNode(\"h4\", _hoisted_12, [\n _createVNode(_component_localized_text, {\n localizedKey: 'app_totale',\n text: 'Totale'\n })\n ]),\n _createVNode(\"h4\", null, [\n _createVNode(\"span\", null, \"€ \" + _toDisplayString(_ctx.$filters.currency(_ctx.model.totalPrice)), 1)\n ])\n ]),\n (_ctx.hasShippableItem)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_13, [\n _createVNode(_component_localized_text, {\n class: \"fs_12 greyBlue d-block mt-2 mb-2\",\n localizedKey: \"app_indirizzodiconsegna\",\n text: \"Indirizzo di consegna\"\n }),\n _createVNode(\"div\", {\n class: \"mb-3 d-flex align-items-center\",\n onClick: _cache[5] || (_cache[5] = ($event: any) => (_ctx.searchCity()))\n }, [\n (!_ctx.model.shippingAddress)\n ? (_openBlock(), _createBlock(\"img\", _hoisted_14))\n : _createCommentVNode(\"\", true),\n (!_ctx.model.shippingAddress)\n ? (_openBlock(), _createBlock(_component_localized_text, {\n key: 1,\n localizedKey: \"app_selezionaunindirizzo\",\n text: \"Seleziona un'indirizzo\",\n class: \"fs_14\"\n }))\n : _createCommentVNode(\"\", true),\n (_ctx.model.shippingAddress)\n ? (_openBlock(), _createBlock(\"img\", _hoisted_15))\n : _createCommentVNode(\"\", true),\n (_ctx.model.shippingAddress && _ctx.model.shippingAddress.typedAddress)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_16, _toDisplayString(_ctx.model.shippingAddress.typedAddress), 1))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(\"div\", {\n class: \"mb-4\",\n onClick: _cache[6] || (_cache[6] = ($event: any) => (_ctx.openSettings()))\n }, [\n _createVNode(_component_localized_text, {\n class: \"fs_12 greyBlue d-block mt-2 mb-2\",\n localizedKey: \"app_note\",\n text: \"Note:\"\n }),\n _createVNode(\"div\", _hoisted_17, [\n _hoisted_18,\n (_ctx.model.notes)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_19, _toDisplayString(_ctx.model.notes), 1))\n : (_openBlock(), _createBlock(_component_localized_text, {\n key: 1,\n localizedKey: \"app_inseriscidellenoterelativeallordine\",\n text: \"Inserisci delle note relative all'ordine\",\n class: \"fs_14\"\n }))\n ])\n ]),\n _createVNode(\"div\", null, [\n (_ctx.hasShippableItem && !_ctx.model.shippingAddress)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_20, [\n _createVNode(_component_localized_text, {\n localizedKey: \"app_inserisciunindirizzodiconsegnaprimadiproseguire\",\n text: \"inserisci un indirizzo di consegna prima di proseguire\",\n class: \"fs_14 orange text-center d-block ln_12 mt-5\"\n })\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(\"div\", _hoisted_21, [\n _createVNode(\"div\", _hoisted_22, [\n (_ctx.model.xPayApiKey != null || '')\n ? (_openBlock(), _createBlock(\"h4\", _hoisted_23, [\n _createVNode(_component_localized_text, {\n localizedKey: 'app_inserisciCarta:',\n text: 'Inserisci i dati della carta:'\n })\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.model.xPayApiKey)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_24, [\n _hoisted_25,\n _createVNode(\"div\", _hoisted_26, _toDisplayString(_ctx.errors), 1),\n _hoisted_27\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n (_ctx.loaded)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_28, [\n (_ctx.model.xPayApiKey)\n ? (_openBlock(), _createBlock(\"button\", {\n key: 0,\n id: \"pagaBtn\",\n class: \" genericButton squareGenericButton mr-1 w-100\",\n onClick: _cache[7] || (_cache[7] = ($event: any) => (_ctx.pagaBtn())),\n disabled: !_ctx.paymentLoading || _ctx.isDisabled\n }, [\n _createVNode(_component_localized_text, {\n class: \"fs_13 text-uppercase white\",\n localizedKey: \"app_pagaora\",\n text: \"Paga ora\"\n })\n ], 8, [\"disabled\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.model.xPayApiKey)\n ? (_openBlock(), _createBlock(\"p\", _hoisted_29, [\n _createVNode(_component_localized_text, {\n localizedKey: 'app_oppure',\n text: 'Oppure'\n })\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(\"button\", {\n class: \"genericButton squareGenericButton w-100\",\n onClick: _cache[8] || (_cache[8] = ($event: any) => (_ctx.createOrderWireTranfer())),\n disabled: _ctx.isDisabled\n }, [\n _createVNode(_component_localized_text, {\n class: \"fs_13 text-uppercase white\",\n localizedKey: \"app_pagaconbonifico\",\n text: \"Paga con bonifico\"\n })\n ], 8, [\"disabled\"])\n ])\n ])\n ]))\n ]))\n})","import { resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, withModifiers as _withModifiers, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\nimport _imports_0 from '@/assets/img/close.svg'\n\n\nconst _hoisted_1 = { class: \"d-flex align-items-center justify-content-between\" }\nconst _hoisted_2 = { class: \"mt-5 mb-3\" }\nconst _hoisted_3 = { class: \"fs_14 d-block ln_12\" }\n\nexport function render(_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\", {\n class: \"bottomModalContainer\",\n onClick: _cache[3] || (_cache[3] = ($event: any) => (_ctx.$emit('close')))\n }, [\n _createVNode(\"div\", {\n class: \"bottomModal\",\n onClick: _cache[2] || (_cache[2] = _withModifiers(() => {}, [\"prevent\",\"stop\"]))\n }, [\n _createVNode(\"div\", _hoisted_1, [\n _createVNode(_component_localized_text, {\n localizedKey: \"app_dettaglioSpedizione\",\n text: \"Dettaglio spedizione\",\n class: \"greyBlue\"\n }),\n _createVNode(\"img\", {\n src: _imports_0,\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.$emit('close')))\n })\n ]),\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"span\", _hoisted_3, _toDisplayString(_ctx.shipmentInfo), 1)\n ])\n ])\n ]))\n}","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Prop } from 'vue-property-decorator';\r\n\r\n@Options({})\r\nexport default class ShipmentDetailModal extends Vue {\r\n\r\n @Prop({\r\n default: \"\"\r\n }) shipmentInfo: string;\r\n\r\n created() {}\r\n\r\n}\r\n\r\n","import { render } from \"./shipmentDetailModal.vue?vue&type=template&id=ea6accfa&ts=true\"\nimport script from \"./shipmentDetailModal.vue?vue&type=script&lang=ts\"\nexport * from \"./shipmentDetailModal.vue?vue&type=script&lang=ts\"\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]])\n\nexport default __exports__","function loadScript(src) {\n // eslint-disable-line no-param-reassign\n return new Promise(function (resolve, reject) {\n let shouldAppend = false;\n let el = document.querySelector('script[src=\"' + src + '\"]');\n if (!el) {\n el = document.createElement(\"script\");\n el.type = \"text/javascript\";\n el.async = true;\n el.src = src;\n shouldAppend = true;\n } else if (el.hasAttribute(\"data-loaded\")) {\n resolve(el);\n return;\n }\n\n el.addEventListener(\"error\", reject);\n el.addEventListener(\"abort\", reject);\n el.addEventListener(\"load\", function loadScriptHandler() {\n el.setAttribute(\"data-loaded\", true);\n resolve(el);\n });\n\n if (shouldAppend) document.head.appendChild(el);\n });\n}\n\nfunction unloadScript(src) {\n // eslint-disable-line no-param-reassign\n return new Promise(function (resolve, reject) {\n const el = document.querySelector('script[src=\"' + src + '\"]');\n\n if (!el) {\n reject();\n return;\n }\n\n document.head.removeChild(el);\n\n resolve();\n });\n}\n\nexport { unloadScript, loadScript };\n\nconst plugin = {\n install: function (app) {\n app.config.globalProperties.$loadScript = loadScript;\n app.config.globalProperties.$unloadScript = unloadScript;\n },\n};\n\nexport default plugin;\n","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { CartClient, OrderClient, NexiClient, CommunityClient } from '@/services/Services';\r\nimport { baseUrl } from '@/config';\r\nimport SelectCityModal from '@/components/selectCityModal.vue';\r\nimport ModalSuccessError from '@/components/modalSuccessError.vue';\r\nimport CartItem from '@/components/cartItem.vue';\r\nimport ShipmentDetailModal from './modals/shipmentDetailModal.vue';\r\nimport * as OM from '@/model';\r\nimport { loadScript } from \"vue-plugin-load-script\";\r\nimport { LocalizationServices } from '@/services/LocalizationServices';\r\n\r\n\r\n@Options({\r\n components: {\r\n CartItem,\r\n }\r\n})\r\nexport default class CartResume extends Vue {\r\n\r\n loaded: boolean = false;\r\n communityIdentifier: string = \"\";\r\n buttonDisabled: boolean = true;\r\n model: OM.CartVM = new OM.CartVM();\r\n\r\n nexiClientModel: OM.NexiClientModel = new OM.NexiClientModel();\r\n paymentRequest: OM.NexiPaymentRequest = new OM.NexiPaymentRequest();\r\n\r\n card: any = null;\r\n buttons: any = null;\r\n errors: any = \"\";\r\n \r\n paymentLoading: boolean = true;\r\n slug: string = \"\";\r\n\r\n created() {\r\n }\r\n\r\n get isDisabled(){\r\n if(!this.hasShippableItem)\r\n return false;\r\n\r\n return this.model.shippingAddress == null || !this.model.shippingAddress.typedAddress;\r\n }\r\n\r\n async mounted() {\r\n this.slug = this.$route.params.slug.toString();\r\n await CommunityClient.getBySlug(this.slug)\r\n .then(x => {\r\n this.communityIdentifier = x.identifier;\r\n })\r\n this.init(); \r\n }\r\n\r\n init() {\r\n CartClient.getCartDetail(this.communityIdentifier)\r\n .then(x => {\r\n this.model = x;\r\n\r\n console.log(x)\r\n\r\n if(this.model.xPayApiKey){\r\n\r\n loadScript(\"https://\" + process.env.VUE_APP_XPAY + \".nexi.it/ecomm/XPayBuild/js?alias=\" + this.model.xPayApiKey)\r\n .then(() => {\r\n\r\n var paymentRequestVM = new OM.PaymentRequestVm();\r\n paymentRequestVM.orderIdentifier = this.model.cartIdentifier;\r\n paymentRequestVM.amount = this.model.totalPrice;\r\n\r\n NexiClient.getPaymentModel(paymentRequestVM)\r\n .then(y => {\r\n this.nexiClientModel = y;\r\n // Inizializzazione SDK e configurazione del pagamento\r\n XPay.init();\r\n\r\n var xPayEnvironment;\r\n if(process.env.VUE_APP_ENVIRONMENT == \"TEST\")\r\n xPayEnvironment = XPay.Environments.INTEG;\r\n else\r\n xPayEnvironment = XPay.Environments.PROD;\r\n\r\n var config = {\r\n baseConfig: {\r\n apiKey: this.model.xPayApiKey,\r\n enviroment: xPayEnvironment\r\n },\r\n paymentParams: {\r\n amount: y.amount,\r\n transactionId: y.transactionCode,\r\n currency: y.currency,\r\n timeStamp: y.timeStamp,\r\n mac: y.mac,\r\n url: baseUrl + 'api/Nexi/Pay',\r\n urlBack: y.urlBack,\r\n },\r\n customParams: {},\r\n language: XPay.LANGUAGE.ITA,\r\n // serviceType: \"paga_oc3d\",\r\n // requestType: \"PP\"\r\n };\r\n\r\n // Configurazione SDK\r\n XPay.setConfig(config);\r\n // 3D Secure 2.0\r\n XPay.setInformazioniSicurezza({});\r\n\r\n // Configurazione dello stile per il form dei dati carta\r\n var style = {\r\n common: {\r\n color: \"#252631\",\r\n fontFamily: \"Arial\",\r\n fontSize: \"18px\",\r\n fontStyle: \"normal\",\r\n fontVariant: \"normal\",\r\n letterSpacing: \"normal\",\r\n textDecoration: \"none currentcolor solid\",\r\n textShadow: \"none\",\r\n },\r\n correct: {\r\n color: \"#12AA12\",\r\n fontFamily: \"Arial\",\r\n fontSize: \"18px\",\r\n fontStyle: \"normal\",\r\n fontVariant: \"normal\",\r\n letterSpacing: \"normal\",\r\n textDecoration: \"none currentcolor solid\",\r\n textShadow: \"none\",\r\n },\r\n error: {\r\n color: \"#f50808\",\r\n fontFamily: \"Arial\",\r\n fontSize: \"18px\",\r\n fontStyle: \"normal\",\r\n fontVariant: \"normal\",\r\n letterSpacing: \"normal\",\r\n textDecoration: \"none currentcolor solid\",\r\n textShadow: \"none\",\r\n },\r\n };\r\n \r\n // Handler per la gestione degli errori di validazione carta\r\n window.addEventListener(\"XPay_Card_Error\", this.paycardErrorCallback);\r\n // Handler per ricevere nonce pagamento\r\n window.addEventListener(\"XPay_Nonce\", this.nonceCallback);\r\n window.addEventListener(\"XPay_Ready\", this.readyCallback);\r\n window.addEventListener(\"XPay_Payment_Started\", this.paymentStartedCallback);\r\n\r\n // Creazione dell'elemento carta\r\n var acceptedCards = [XPay.CardBrand.MASTERCARD, XPay.CardBrand.VISA];\r\n\r\n this.card = XPay.create(XPay.OPERATION_TYPES.CARD, style, acceptedCards);\r\n this.card.mount(\"xpay-card\");\r\n\r\n // Creazione dei bottoni per i metodi di pagamento disponibili per il proprio profilo\r\n this.buttons = XPay.create(XPay.OPERATION_TYPES.PAYMENT_BUTTON);\r\n this.buttons.mount(\"xpay-btn\");\r\n\r\n this.loaded = true;\r\n })\r\n })\r\n\r\n\r\n } \r\n })\r\n }\r\n\r\n openSettings() {\r\n this.$router.push(\"/communities/\" + this.slug + \"/Cart/settings\");\r\n }\r\n\r\n paycardErrorCallback(event: any) {\r\n if (event.detail.errorMessage) {\r\n this.buttonDisabled = false;\r\n this.errors = event.detail.errorMessage;\r\n } else {\r\n this.errors = '';\r\n } \r\n }\r\n nonceCallback(event: any) {\r\n var response = event.detail;\r\n\r\n if (response.esito && response.esito === \"OK\") {\r\n this.paymentRequest.xpayNonce = response.xpayNonce;\r\n this.paymentRequest.xpayIdOperazione = response.idOperazione;\r\n this.paymentRequest.xpayTimeStamp = response.timeStamp;\r\n this.paymentRequest.xpayEsito = response.esito;\r\n this.paymentRequest.xpayMac = response.mac;\r\n this.paymentRequest.importo = this.nexiClientModel.amount;\r\n this.paymentRequest.codiceTransazione = this.nexiClientModel.transactionCode;\r\n this.paymentRequest.divisa = this.nexiClientModel.currency;\r\n this.paymentRequest.orderIdentifier = this.model.cartIdentifier;\r\n \r\n this.pay();\r\n } else {\r\n this.errors = \"[\" + response.errore.codice + \"] \" + response.errore.messaggio;\r\n this.buttonDisabled = false;\r\n }\r\n }\r\n readyCallback(event: any) {\r\n // this.disabled = false;\r\n console.log('Build ' + event.detail + ' è caricato');\r\n }\r\n paymentStartedCallback(event: any) {\r\n console.log('Metodo selezionato dall\\'utente: ' + event.detail);\r\n }\r\n\r\n shipmentDetail() {\r\n if(this.model.shipmentDescription) {\r\n this.$opModal.show(ShipmentDetailModal, {\r\n shipmentInfo: this.model.shipmentDescription\r\n })\r\n }\r\n }\r\n\r\n pay() {\r\n NexiClient.pay(this.paymentRequest)\r\n .then(x => {\r\n var message = LocalizationServices.getLocalizedValue(\"app_riceveraiabreveunaemaildiriepilogoedettagli\", \"Riceverai a breve una email di riepilogo, con i dettagli del pagamento appena effettuato\");\r\n this.orderSuccess(message)\r\n })\r\n }\r\n\r\n orderSuccess(text: string){\r\n var title = LocalizationServices.getLocalizedValue(\"app_ordinecreatocorrettamentecart\", \"Ordine creato correttamente! \");\r\n var buttonText = LocalizationServices.getLocalizedValue(\"app_imieiordini\", \"I miei ordini\");\r\n var message = title + text;\r\n this.$opModal.show(ModalSuccessError, {\r\n message: message,\r\n buttonText: buttonText,\r\n buttonUrl: \"/order-list/\"\r\n })\r\n }\r\n\r\n createOrderWireTranfer(){\r\n OrderClient.payWithWireTransfer(this.model.cartIdentifier)\r\n .then(x =>{\r\n var message = LocalizationServices.getLocalizedValue(\"app_riceveraiabreveunaemaildiriepilogo\", \"Riceverai a breve una email di riepilogo\");\r\n this.orderSuccess(message)\r\n \r\n })\r\n }\r\n\r\n beforeDestroy() {\r\n window.removeEventListener(\"XPay_Card_Error\", this.paycardErrorCallback);\r\n window.removeEventListener(\"XPay_Nonce\", this.nonceCallback);\r\n window.removeEventListener(\"XPay_Ready\", this.readyCallback);\r\n window.removeEventListener(\"XPay_Payment_Started\", this.paymentStartedCallback);\r\n }\r\n\r\n pagaBtn() {\r\n // Handler per gestire click sul bottone paga (fa la chiamata per generare il nonce)\r\n this.paymentLoading = true;\r\n // Creazione del nonce\r\n XPay.createNonce(\"payment-form\", this.card);\r\n }\r\n\r\n get hasShippableItem(){\r\n return this.model.cartItems.find( x => x.isShippable) != null\r\n }\r\n\r\n searchCity() {\r\n var modalTitle = LocalizationServices.getLocalizedValue(\"app_indirizzoSpedizione\", \"Indirizzo di spedizione\");\r\n var question = LocalizationServices.getLocalizedValue(\"app_doveConsegnaMerce\", \"Dove vuoi che ti venga consegnata la merce?\");\r\n\r\n this.$opModal.show(SelectCityModal, {\r\n addressTitle: modalTitle,\r\n addressQuestion: question,\r\n searchText: this.model.shippingAddress ? this.model.shippingAddress.typedAddress : \"\",\r\n callback: (city: OM.Address) => {\r\n var vm = new OM.SetAddressVM();\r\n vm.identifier = this.model.cartIdentifier;\r\n vm.shippingAddress = city;\r\n\r\n CartClient.setShippingAddress(vm)\r\n .then( x => {\r\n this.model.shippingAddress = city;\r\n this.$opModal.closeLast();\r\n }).catch( err => {\r\n window.toastr.error(\"C'è stato un errore nel salvataggio dell'indirizzo di spedizione\")\r\n })\r\n }\r\n })\r\n }\r\n}\r\n\r\n","import { render } from \"./cartResume.vue?vue&type=template&id=918d7120&scoped=true&ts=true\"\nimport script from \"./cartResume.vue?vue&type=script&lang=ts\"\nexport * from \"./cartResume.vue?vue&type=script&lang=ts\"\n\nimport \"./cartResume.vue?vue&type=style&index=0&id=918d7120&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-918d7120\"]])\n\nexport default __exports__"],"sourceRoot":""}