{"version":3,"sources":["webpack://Ergo/./resources/js/src/app/store/ErgoModule.js","webpack://Ergo/./resources/js/src/app/mixins/loadErgoModule.js","webpack://Ergo/./resources/js/src/app/components/ErgoCore.vue?bd61","webpack://Ergo/resources/js/src/app/components/ErgoCore.vue","webpack://Ergo/./resources/js/src/app/components/ErgoCore.vue?25d6","webpack://Ergo/./resources/js/src/app/components/ErgoCore.vue","webpack://Ergo/./node_modules/vue-loader/lib/runtime/componentNormalizer.js"],"names":["state","basketInsurances","itemInsurances","selectedInsurances","blacklist","ergoItemId","ergoOrderProp","blacklistCheck","coreInitialized","mutations","setErgoBasketInsurances","updateErgoBasketInsurance","basketInsurance","quantity","find","ergoBasketInsurance","id","setItemInsurances","variationId","Vue","set","insurances","setSelectedInsurance","ergoSetItemId","setItemOrderProp","prop","setBlacklist","setBlacklistCheck","value","setCoreInitialized","actions","loadItemInsurances","commit","getters","$","get","getTrailingSlash","property","loadBasketInsuranceData","JSON","parse","addErgoBasketInsurance","Promise","resolve","reject","post","done","fail","error","removeErgoBasketInsurance","ajax","url","method","data","App","urlTrailingSlash","created","this","$store","hasModule","isSSR","registerModule","ErgoModule","preserveState","ergo","render","_h","$createElement","_self","_c","_withStripped","component","options","__file","normalizeComponent","scriptExports","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","call","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","exports"],"mappings":"2JA2HA,GACIA,MA5HU,iBAAO,CACjBC,iBAAqB,GACrBC,eAAqB,GACrBC,mBAAqB,GACrBC,UAAqB,GACrBC,WAAqB,KACrBC,cAAqB,KACrBC,eAAqB,GACrBC,iBAAqB,IAqHrBC,UAjHJ,CACIC,wBADJ,SAC4BV,EAAOC,GAE3BD,EAAMC,iBAAmBA,GAE7BU,0BALJ,SAK8BX,EAL9B,GAMI,IADkC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GAGtBA,GAAWA,EAAQM,uBACrBN,EAAQM,sBAAsBC,IAAIb,IAKtCR,EAAQsB,aAAeZ,GACdJ,IACTI,EAAOD,EACH,WACAH,EAAaa,KACXlC,MACCe,EAAQY,WAAa3B,KAAKgC,OAAShC,MAAMsC,MAAMC,SAASC,aAG3DnB,GAGFI,EACF,GAAIV,EAAQY,WAAY,CAGtBZ,EAAQ0B,cAAgBhB,EAExB,IAAIiB,EAAiB3B,EAAQP,OAC7BO,EAAQP,OAAS,SAAmCmC,EAAGd,GAErD,OADAJ,EAAKS,KAAKL,GACHa,EAAeC,EAAGd,QAEtB,CAEL,IAAIe,EAAW7B,EAAQ8B,aACvB9B,EAAQ8B,aAAeD,EACnB,GAAGE,OAAOF,EAAUnB,GACpB,CAACA,GAIT,MAAO,CACLsB,QAAS7B,EACTH,QAASA,G","file":"chunks/ergo-widget-4.min.js","sourcesContent":["const state = () => ({\n basketInsurances : [],\n itemInsurances : {},\n selectedInsurances : [],\n blacklist : [],\n ergoItemId : null,\n ergoOrderProp : null,\n blacklistCheck : {},\n coreInitialized : false\n})\n\nconst mutations =\n{\n setErgoBasketInsurances(state, basketInsurances)\n {\n state.basketInsurances = basketInsurances;\n },\n updateErgoBasketInsurance(state, {basketInsurance, quantity})\n {\n const ergoBasketInsurance = state.basketInsurances.find(ergoBasketInsurance => ergoBasketInsurance.id === basketInsurance.id);\n\n ergoBasketInsurance.quantity = quantity;\n },\n setItemInsurances(state, {variationId, itemInsurances})\n {\n Vue.set(state.itemInsurances, variationId, itemInsurances.insurances);\n },\n\n setSelectedInsurance(state, selectedInsurances)\n {\n state.selectedInsurances = selectedInsurances;\n },\n ergoSetItemId(state, id)\n {\n if(id !== state.ergoItemId && id !== null) {\n state.ergoItemId = id;\n }\n },\n setItemOrderProp(state, prop)\n {\n state.ergoOrderProp = prop.id;\n },\n setBlacklist(state, blacklist)\n {\n state.blacklist = blacklist;\n },\n setBlacklistCheck(state, value)\n {\n state.blacklistCheck[value.id] = value.value;\n },\n setCoreInitialized(state, value)\n {\n state.coreInitialized = value;\n }\n}\n\nconst actions =\n{\n loadItemInsurances({commit, state, getters}, variationId)\n {\n $.get('/ergo/ergo-insurances' + getters.getTrailingSlash + '?variationId='+variationId, function(itemInsurances) {\n commit(\"setItemInsurances\", {variationId, itemInsurances});\n commit(\"setBlacklist\", itemInsurances.blacklist);\n commit(\"setItemOrderProp\", itemInsurances.property);\n });\n },\n loadBasketInsuranceData({commit, getters})\n {\n $.get('/ergo/ergo-basket' + getters.getTrailingSlash, function( basketInsurances ) {\n commit(\"setErgoBasketInsurances\", JSON.parse(basketInsurances));\n });\n },\n setSelectedInsurance({commit, state, getters}, selectedInsurances)\n {\n commit(\"setSelectedInsurance\", selectedInsurances);\n },\n\n addErgoBasketInsurance({commit, getters}, basketInsurance)\n {\n return new Promise((resolve, reject) =>\n {\n $.post('/ergo/ergo-basket' + getters.getTrailingSlash, basketInsurance).done(function (basketInsurances) {\n commit('setErgoBasketInsurances', JSON.parse(basketInsurances));\n resolve(JSON.parse(basketInsurances));\n }).fail(function(error) {\n reject(error);\n });\n });\n },\n removeErgoBasketInsurance({commit, getters}, basketInsurance)\n {\n return new Promise((resolve, reject) =>\n {\n $.ajax({\n url: \"/ergo/ergo-basket\" + getters.getTrailingSlash,\n method: \"DELETE\",\n data: basketInsurance\n }).done(function (basketInsurances) {\n commit(\"setErgoBasketInsurances\", JSON.parse(basketInsurances));\n resolve(JSON.parse(basketInsurances));\n }).fail(function(error) {\n reject(error);\n });\n });\n },\n}\n\nconst getters =\n{\n getTrailingSlash()\n {\n if(\n typeof App !== 'undefined' &&\n typeof App.urlTrailingSlash !== 'undefined' &&\n App.urlTrailingSlash === true\n ) {\n return '/';\n }\n\n return '';\n }\n}\n\nexport default {\n state,\n mutations,\n actions,\n getters\n}\n","import ErgoModule from '~/app/store/ErgoModule';\n\nexport default {\n created () {\n if (!this.$store.hasModule('ergo') && !App.isSSR) {\n this.$store.registerModule('ergo', ErgoModule, { preserveState: !!this.$store.state.ergo })\n }\n }\n}\n","var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\")\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n \n\n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ErgoCore.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ErgoCore.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ErgoCore.vue?vue&type=template&id=3b24fd34&\"\nimport script from \"./ErgoCore.vue?vue&type=script&lang=js&\"\nexport * from \"./ErgoCore.vue?vue&type=script&lang=js&\"\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\n/* hot reload */\nif (module.hot) {\n var api = require(\"/Users/sid/workspace/plenty/pp-ergoDirekt/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('3b24fd34')) {\n api.createRecord('3b24fd34', component.options)\n } else {\n api.reload('3b24fd34', component.options)\n }\n module.hot.accept(\"./ErgoCore.vue?vue&type=template&id=3b24fd34&\", function () {\n api.rerender('3b24fd34', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"resources/js/src/app/components/ErgoCore.vue\"\nexport default component.exports","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n"],"sourceRoot":""}