{"version":3,"sources":["../../../node_modules/browser-pack/_prelude.js","../src/app/components/CrosssellingComponent.js","../src/app/components/ItemSearch.js","../src/app/components/ManufacturerSlider.js","../src/app/components/RandomItems.js","../src/app/components/SelectedItems.js","../src/app/components/Slider.js","../src/app/components/StoreSpecials.js"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","Vue","component","delimiters","props","template","type","String","default","itemsPerPage","Number","storeSpecialId","sorting","data","items","_storeSpecialId","_itemsPerPage","created","this","$options","parseInt","getItems","methods","_this","me","$","ajax","url","method","crosssellingId","done","JSON","parse","console","log","initializeCarousel","self","$refs","carouselContainer","owlCarousel","autoHeight","dots","responsive","0","576","768","992","lazyLoad","loop","margin","mouseDrag","nav","navClass","navContainerClass","navText","smartSpeed","onChanged","property","begin","item","index","end","page","size","childComponent","$children","loadFirstImage","currentSearchString","preventSearch","computed","Vuex","mapState","searchString","state","itemList","mounted","$nextTick","initAutocomplete","search","searchBaseURL","App","defaultLanguage","language","window","open","openItem","suggestion","filters","itemURL","_this2","autocomplete","serviceUrl","paramName","params","width","zIndex","maxHeight","minChars","preventBadQueries","onSelect","$store","commit","value","config","forwardToSingleItem","beforeRender","formatResult","currentValue","transformResult","response","transformSuggestionResult","resize","result","_this3","suggestions","map","documents","dataItem","itemName","images","all","urlPreview","imagedata","Object","showDots","Boolean","showNav","itemsXs","itemsMd","itemsLg","dotsXs","dotsMd","dotsLg","navXs","navMd","navLg","autoplayTimeout","autoplay","autoheight","center","rightToLeft","disableLazyLoad","enableCarousel","uid","$_enableCarousel","_uid","manufacturers","checkImageArray","entries","sort","dynamicSort","sortOrder","substr","b","owlOptions","1200","onTranslated","event","element","target","querySelector","dataset","src","removeAttribute","onInitialized","document","parentElement","onclick","preventDefault","rtl","getAltText","image","alternate","altText","itemLazyImage","loadImage","filter","entry","logo","cols","rows","gridClass","trigger","variationids","required","Array","sliderid","dotsClass","animateIn","animateOut","navIcon","centermode","dataArray","_iteratorNormalCompletion","_didIteratorError","_iteratorError","undefined","_step","_iterator","Symbol","iterator","next","breakpoint","err","return","keys","reponsiveConfig","href","special"],"mappings":"CAAA,SAAAA,EAAAC,EAAAC,EAAAC,GAAA,SAAAC,EAAAC,EAAAC,GAAA,IAAAJ,EAAAG,GAAA,CAAA,IAAAJ,EAAAI,GAAA,CAAA,IAAAE,EAAA,mBAAAC,SAAAA,QAAA,IAAAF,GAAAC,EAAA,OAAAA,EAAAF,GAAA,GAAA,GAAAI,EAAA,OAAAA,EAAAJ,GAAA,GAAA,IAAAK,EAAA,IAAAC,MAAA,uBAAAN,EAAA,KAAA,MAAAK,EAAAE,KAAA,mBAAAF,EAAA,IAAAG,EAAAX,EAAAG,GAAA,CAAAS,QAAA,IAAAb,EAAAI,GAAA,GAAAU,KAAAF,EAAAC,QAAA,SAAAd,GAAA,OAAAI,EAAAH,EAAAI,GAAA,GAAAL,IAAAA,IAAAa,EAAAA,EAAAC,QAAAd,EAAAC,EAAAC,EAAAC,GAAA,OAAAD,EAAAG,GAAAS,QAAA,IAAA,IAAAL,EAAA,mBAAAD,SAAAA,QAAAH,EAAA,EAAAA,EAAAF,EAAAa,OAAAX,IAAAD,EAAAD,EAAAE,IAAA,OAAAD,EAAA,CAAA,CAAAa,EAAA,CAAA,SAAAT,EAAAU,EAAAJ,gBCAAK,IAAIC,UAAU,4BAA6B,CACvCC,WAAY,CAAC,KAAM,KACnBC,MAAO,CACHC,SAAU,CAACC,KAAMC,OAAQC,QAAS,kCAClCC,aAAc,CAACH,KAAMI,OAAQF,QAAS,GACtCG,eAAgB,CAACL,KAAMC,QACvBK,QAAS,CACLJ,QAAS,YAEbF,KAAM,CACFE,QAAS,KAIlBK,KAdwC,WAepC,MAAO,CACHC,MAAO,GACPC,gBAAiB,GACjBC,cAAe,IAGvBC,QArBwC,WAsBnCC,KAAKC,SAASd,SAAWa,KAAKb,SAC9Ba,KAAKF,cAAgBI,SAASF,KAAKT,cACnCS,KAAKH,gBAAkBG,KAAKP,eAC5BO,K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i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i {\n if (typeof data === \"string\")\n {\n this.items = JSON.parse(data);\n console.log(this.items);\n }\n else\n {\n me.items = data;\n }\n me.initializeCarousel();\n });\n },\n\n initializeCarousel()\n {\n const self = this;\n\n $(this.$refs.carouselContainer).owlCarousel({\n autoHeight : true,\n dots : true,\n items : self.itemsPerPage,\n responsive: {\n 0: { items: 1 },\n 576: { items: self.itemsPerPage > 1 ? 2 : 1 },\n 768: { items: self.itemsPerPage > 3 ? 3 : self.itemsPerPage },\n 992: { items: self.itemsPerPage }\n },\n lazyLoad : false,\n loop : false,\n margin : 30,\n mouseDrag : true,\n nav : true,\n navClass : [\n \"owl-single-item-nav left carousel-control list-control-special\",\n \"owl-single-item-nav right carousel-control list-control-special\"\n ],\n navContainerClass: \"\",\n navText : [\n \"\",\n \"\"\n ],\n smartSpeed : 350,\n onChanged: property =>\n {\n const begin = property.item.index;\n const end = begin + property.page.size;\n\n for (let i = begin; i < end; i++)\n {\n const childComponent = self.$children[i];\n\n if (childComponent && childComponent.loadFirstImage)\n {\n childComponent.loadFirstImage();\n }\n }\n }\n });\n }\n }\n});\n","Vue.component(\"custom-item-search\", {\n\n delimiters: [\"${\", \"}\"],\n\n props: [\n \"template\"\n ],\n\n data() {\n return {\n currentSearchString: \"\",\n preventSearch: false\n };\n },\n\n computed: Vuex.mapState({\n searchString: state => state.itemList.searchString\n }),\n\n created() {\n this.$options.template = this.template;\n },\n\n mounted() {\n this.$nextTick(() => {\n this.initAutocomplete();\n });\n },\n\n methods:\n {\n search() {\n if (this.currentSearchString.length &&\n !this.preventSearch) {\n\n let searchBaseURL = \"/search?query=\";\n\n if (App.defaultLanguage != App.language) {\n searchBaseURL = \"/\" + App.language + \"/search?query=\";\n }\n\n window.open(searchBaseURL + this.currentSearchString, \"_self\", false);\n\n }\n else {\n this.preventSearch = false;\n }\n },\n\n openItem(suggestion) {\n this.preventSearch = true;\n window.open(this.$options.filters.itemURL(suggestion.data), \"_self\", false);\n },\n\n initAutocomplete() {\n $(\".search-input\").autocomplete({\n serviceUrl: \"/rest/io/item/search/autocomplete\",\n paramName: \"query\",\n params: {template: \"Ceres::ItemList.Components.ItemSearch\"},\n width: $(\".search-box-shadow-frame\").width(),\n zIndex: 1070,\n maxHeight: 310,\n minChars: 2,\n preventBadQueries: false,\n onSelect: suggestion => {\n this.$store.commit(\"setItemListSearchString\", suggestion.value);\n this.currentSearchString = suggestion.value;\n\n if (App.config.search.forwardToSingleItem) {\n this.openItem(suggestion);\n }\n else {\n this.search();\n }\n },\n beforeRender() {\n $(\".autocomplete-suggestions\").width($(\".search-box-shadow-frame\").width());\n },\n formatResult: function (suggestion, currentValue) {\n return suggestion.value;\n },\n transformResult: response => {\n return this.transformSuggestionResult(response);\n }\n });\n\n $(window).resize(() => {\n $(\".autocomplete-suggestions\").width($(\".search-box-shadow-frame\").width());\n });\n },\n\n transformSuggestionResult(result) {\n result = JSON.parse(result);\n const suggestions =\n {\n suggestions: $.map(result.data.documents, dataItem => {\n const value = this.$options.filters.itemName(dataItem.data);\n return {\n value: '
\"\"
' + value + '
',\n data: dataItem.data\n };\n // return {\n // value: value,\n // data : dataItem.data\n // };\n })\n };\n\n return suggestions;\n }\n }\n});\n","Vue.component(\"cfour-manufacturer-slider\", {\n\n delimiters: [\"${\", \"}\"],\n\n props: {\n imagedata: {type: Object},\n showDots: {type: [Number, Boolean], default:1},\n showNav: {type: [Number, Boolean], default:1},\n itemsXs: {type: Number, default:1},\n itemsMd: {type: Number, default:1},\n itemsLg: {type: Number, default:1},\n dots: {type: [Number, Boolean], default:0},\n dotsXs: {type: Number, default:0},\n dotsMd: {type: Number, default:0},\n dotsLg: {type: Number, default:0},\n nav: {type: Number, default:0},\n navXs: {type: Number, default:0},\n navMd: {type: Number, default:0},\n navLg: {type: Number, default:0},\n autoplayTimeout: {type: [Number, String], default:3000},\n autoplay: {type: Number, default:0},\n autoheight: {type: Number, default:0},\n center: {type: Number, default:0},\n loop: {type: Number, default:1},\n margin: {type: Number, default:0},\n rightToLeft: {type: Number, default:0},\n disableLazyLoad: {\n type: Boolean,\n default: false\n },\n enableCarousel: {type: String},\n template : {type: String},\n uid: {type: String}\n },\n\n data() {\n return {\n $_enableCarousel: true,\n _uid: \"\",\n manufacturers: []\n };\n },\n created() {\n this.$options.template = this.template;\n this.manufacturers = this.checkImageArray(this.imagedata.entries);\n this.manufacturers.sort(this.dynamicSort('position'));\n this.$_enableCarousel = true;\n this._uid = this.uid;\n },\n\n mounted() {\n this.$nextTick(() => {\n if (this.$_enableCarousel) {\n this.initializeCarousel();\n }\n });\n },\n\n methods:\n {\n dynamicSort(property) {\n var sortOrder = 1;\n if (property[0] === \"-\") {\n sortOrder = -1;\n property = property.substr(1);\n }\n return function (a, b) {\n var result = (a[property] < b[property]) ? -1 : (a[property] > b[property]) ? 1 : 0;\n return result * sortOrder;\n }\n },\n initializeCarousel() {\n // console.log(\"manufacturer length\",this.manufacturers.length);\n // console.log(\"manufacturers\",this.manufacturers);\n var owlOptions = {\n dots: !!+this.showDots,\n items: this.manufacturers.length,\n mouseDrag: false,\n loop: !!+this.loop,\n lazyLoad: !this.disableLazyLoad,\n margin: this.margin,\n nav: !!+this.showNav,\n autoplay: !!+this.autoplay,\n responsive: {\n '0': {\n dots: true,\n items: 1\n },\n '768': {\n items: 3\n },\n '1200': {\n items: 5\n }\n },\n navText: [\n ``,\n ``\n ],\n onTranslated(event) {\n const element = event.target.querySelector(\".owl-item.active img\");\n\n if (element && element.dataset.src && !element.src)\n {\n element.src = element.dataset.src;\n element.removeAttribute(\"data-src\");\n }\n },\n onInitialized: event => {\n if (this.showNav) {\n document.querySelector(`#owl-nav-text-left-${this._uid}`).parentElement.onclick = event => event.preventDefault();\n document.querySelector(`#owl-nav-text-right-${this._uid}`).parentElement.onclick = event => event.preventDefault();\n }\n }\n };\n\n if (this.margin !== null) {\n owlOptions.margin = this.margin;\n }\n\n if (this.autoplay !== null) {\n owlOptions.autoplay = !!+this.autoplay;\n }\n\n if (this.autoplayTimeout !== null) {\n owlOptions.autoplayTimeout = this.autoplayTimeout;\n }\n\n if (this.autoheight !== null) {\n owlOptions.autoHeight = !!+this.autoheight;\n }\n\n if (this.loop !== null) {\n owlOptions.loop = !!+this.loop;\n }\n\n if (this.center !== null) {\n owlOptions.center = !!+this.center;\n }\n\n if (this.rightToLeft !== null) {\n owlOptions.rtl = !!+this.rightToLeft;\n }\n\n if (this.dots !== null) {\n owlOptions.dots = !!+this.dots;\n }\n\n if (this.nav !== null) {\n owlOptions.nav = !!+this.nav;\n }\n\n if (this.dotsXs !== null) {\n owlOptions.responsive['0'].dots = this.dotsXs;\n }\n\n if (this.dotsMd !== null) {\n owlOptions.responsive['768'].dots = this.dotsMd;\n }\n\n if (this.dotsLg !== null) {\n owlOptions.responsive['1200'].dots = this.dotsLg;\n }\n\n if (this.navXs !== null) {\n owlOptions.responsive['0'].nav = this.navXs;\n }\n\n if (this.navMd !== null) {\n owlOptions.responsive['768'].nav = this.navMd;\n }\n\n if (this.navLg !== null) {\n owlOptions.responsive['1200'].nav = this.navLg;\n }\n\n\n if (this.itemsXs !== null) {\n owlOptions.responsive['0'].items = this.itemsXs;\n }\n\n\n if (this.itemsMd !== null) {\n owlOptions.responsive['768'].items = this.itemsMd;\n }\n\n\n if (this.itemsLg !== null) {\n owlOptions.responsive['1200'].items = this.itemsLg;\n }\n console.log('owl options',owlOptions);\n $(\"#owl-carousel-\"+this._uid).owlCarousel(owlOptions);},\n\n\n getAltText(image)\n {\n const altText = image && image.alternate ? image.alternate : this.altText;\n\n return altText;\n },\n\n loadFirstImage()\n {\n const itemLazyImage = this.$refs.itemLazyImage;\n\n if (itemLazyImage)\n {\n if (itemLazyImage.loadImage)\n {\n itemLazyImage.loadImage();\n }\n else if (itemLazyImage[0] && itemLazyImage[0].loadImage)\n {\n itemLazyImage[0].loadImage();\n }\n }\n },\n checkImageArray(data) {\n return data.filter(entry => entry.logo.length !== 0);\n }\n }\n});\n","Vue.component(\"cfour-random-items\", {\n\n delimiters: [\"${\", \"}\"],\n\n props: {\n template: {\n default: \"#vue-cfour-productwall-items\",\n type: String\n },\n cols: {\n default: 3\n },\n rows: {\n default: 4\n }\n },\n\n data()\n{\n return {\n items: [],\n gridClass: 12\n };\n },\n\n created()\n{\n this.$options.template = this.template;\n $.ajax({\n url: \"/rest/CfourProductWall/allitems\",\n method: \"post\",\n data: \"cols=\" + this.cols + \"&rows=\" + this.rows\n }).done(data =>\n{\n this.gridClass = 12 / this.cols;\n if (typeof data === \"string\")\n{\n this.items = JSON.parse(data);\n console.log(this.items);\n }\n else\n{\n this.items = data;\n }\n $(window).trigger(\"resize\");\n });\n }\n});\n","Vue.component(\"cfour-items\", {\n\n delimiters: [\"${\", \"}\"],\n\n props: {\n template: {\n default: \"#vue-cfour-productwall-items\",\n type: String\n },\n cols: {\n default: 3\n },\n rows: {\n default: 4\n },\n variationids: {\n type: String,\n required: true\n },\n sorting: {\n default: \"givenids\"\n }\n },\n\n data()\n{\n return {\n items: []\n };\n },\n\n created()\n{\n this.$options.template = this.template;\n $.ajax({\n url: \"/rest/CfourProductWall/items\",\n method: \"post\",\n data: \"ids=\" + this.variationids + \"&cols=\" + this.cols + \"&rows=\" + this.rows + \"&sorting=\" + this.sorting\n }).done(data =>\n{\n this.gridClass = 12 / this.cols;\n if (typeof data === \"string\")\n{\n this.items = JSON.parse(data);\n }\n else\n{\n this.items = data;\n }\n $(window).trigger(\"resize\");\n });\n }\n\n});\n","Vue.component(\"cfour-slider\", {\n\n delimiters: [\"${\", \"}\"],\n\n props: {\n imagedata: {type: Array},\n responsive: {type: [Array,Object]},\n // altText: {type: String},\n showDots: {type: Boolean, default: false},\n showNav: {type: Boolean, default: false},\n sliderid: {type: [Number, String]},\n autoplayTimeout: {type: [Number, String]},\n autoplay: {type: Boolean, default: false},\n autoheight: {type: Boolean, default: false},\n loop: {type: Boolean, default: false},\n rightToLeft: {type: Boolean, default: false},\n disableLazyLoad: {\n type: Boolean,\n default: false\n },\n enableCarousel: {type: Boolean, default: false},\n dotsClass: {type: String, default: \"\"},\n animateIn: {type: String, default: \"\"},\n animateOut: {type: String, default: \"\"},\n navIcon: {type: String, default: \"chevron\"},\n template: {type: String},\n uid:{type: String}\n },\n\n data() {\n return {\n $_enableCarousel: true,\n centermode: false,\n dataArray: []\n };\n },\n created() {\n this.$options.template = this.template;\n // console.log('vue slider');\n // this.$_enableCarousel = (!!this.enableCarousel && this.dataArray.length > 1);\n this.$_enableCarousel = true;\n this.dataArray = this.imagedata;\n this.checkImageArray();\n let config = {};\n for(let breakpoint of this.responsive){\n config[breakpoint.breakpoint+''] = {\n dots: !!breakpoint.dots,\n nav: !!breakpoint.dots,\n center: !!breakpoint.center,\n items: parseInt(breakpoint.items)\n };\n if(breakpoint.margin>0){\n config[breakpoint.breakpoint+''].margin = parseInt(breakpoint.margin);\n }\n if(!!breakpoint.center){\n this.centermode = true;\n }\n }\n if(typeof config['0'] === \"undefined\" && Object.keys(config).length > 0){\n console.log(config[Object.keys(config)[0]]);\n config['0'] = config[Object.keys(config)[0]];\n }\n this.reponsiveConfig = config;\n this._uid = this.uid;\n },\n\n mounted() {\n this.$nextTick(() => {\n if (this.$_enableCarousel) {\n this.initializeCarousel();\n }\n });\n },\n\n methods:\n {\n initializeCarousel() {\n var owlOptions = {\n dots: !!this.showDots,\n items: 1,\n mouseDrag: false,\n loop: this.dataArray.length > 1,\n lazyLoad: !this.disableLazyLoad,\n nav: !!this.showNav,\n responsive: this.reponsiveConfig,\n navText: [\n '',\n ''\n // '',\n // ''\n ],\n dotsClass: 'owl-dots '+this.dotsClass,\n navContainerClass: 'owl-nav container-max',\n onTranslated(event) {\n const element = event.target.querySelector(\".owl-item.active img\");\n\n if (element && element.dataset.src && !element.src)\n {\n element.src = element.dataset.src;\n element.removeAttribute(\"data-src\");\n }\n },\n onInitialized: event => {\n if (this.showNav) {\n // document.querySelector('#owl-nav-text-left-'+this.sliderid+'').parentElement.onclick = event => event.preventDefault();\n // document.querySelector('#owl-nav-text-right-'+this.sliderid+'').parentElement.onclick = event => event.preventDefault();\n // document.querySelector('#owl-nav-text-left').parentElement.onclick = event => event.preventDefault();\n // document.querySelector('#owl-nav-text-right').parentElement.onclick = event => event.preventDefault();\n }\n }\n };\n\n if (this.animateOut !== \"\") {\n owlOptions.animateOut = this.animateOut;\n }\n\n if (this.animateIn !== \"\") {\n owlOptions.animateIn = this.animateIn;\n }\n\n // if (this.margin !== null) {\n // owlOptions.margin = this.margin;\n // }\n\n if (this.autoplay !== null) {\n owlOptions.autoplay = this.autoplay;\n }\n\n if (this.autoplayTimeout !== null) {\n owlOptions.autoplayTimeout = this.autoplayTimeout;\n }\n\n if (this.autoheight !== null) {\n owlOptions.autoheight = this.autoheight;\n }\n\n if (this.loop !== null) {\n owlOptions.loop = this.loop;\n }\n\n // if (this.center !== null) {\n // owlOptions.center = this.center;\n // }\n\n if (this.rightToLeft !== null) {\n owlOptions.rtl = this.rightToLeft;\n }\n\n // if (this.dots !== null) {\n // owlOptions.dots = this.dots;\n // }\n //\n // if (this.nav !== null) {\n // owlOptions.nav = this.nav;\n // }\n //\n // if (this.dotsXs !== null) {\n // owlOptions.responsive['0'].dots = this.dotsXs;\n // }\n //\n // if (this.dotsMd !== null) {\n // owlOptions.responsive['768'].dots = this.dotsMd;\n // }\n //\n // if (this.dotsLg !== null) {\n // owlOptions.responsive['1200'].dots = this.dotsLg;\n // }\n //\n // if (this.navXs !== null) {\n // owlOptions.responsive['0'].nav = this.navXs;\n // }\n //\n // if (this.navMd !== null) {\n // owlOptions.responsive['768'].nav = this.navMd;\n // }\n //\n // if (this.navLg !== null) {\n // owlOptions.responsive['1200'].nav = this.navLg;\n // }\n //\n //\n // if (this.itemsXs !== null) {\n // owlOptions.responsive['0'].items = this.itemsXs;\n // }\n //\n //\n // if (this.itemsMd !== null) {\n // owlOptions.responsive['768'].items = this.itemsMd;\n // }\n //\n //\n // if (this.itemsLg !== null) {\n // owlOptions.responsive['1200'].items = this.itemsLg;\n // }\n console.log('owl options', owlOptions);\n $(\"#owl-carousel-\" + this._uid).owlCarousel(owlOptions);\n },\n\n\n getAltText(image) {\n const altText = image && image.alternate ? image.alternate : this.altText;\n\n return altText;\n },\n\n loadFirstImage() {\n const itemLazyImage = this.$refs.itemLazyImage;\n\n if (itemLazyImage) {\n if (itemLazyImage.loadImage) {\n itemLazyImage.loadImage();\n } else if (itemLazyImage[0] && itemLazyImage[0].loadImage) {\n itemLazyImage[0].loadImage();\n }\n }\n },\n checkImageArray() {\n this.dataArray.filter((entry) => entry.href !== null);\n }\n }\n});\n","Vue.component(\"cfour-storespecials-items\", {\n\n delimiters: [\"${\", \"}\"],\n\n props: {\n template: {\n default: \"#vue-cfour-productwall-items\",\n type: String\n },\n cols: {\n default: 3\n },\n rows: {\n default: 4\n },\n special: {\n default: 0\n },\n sorting: {\n default: \"variation.position_desc\"\n }\n\n },\n\n data()\n{\n return {\n items: [],\n gridClass: 12\n };\n },\n\n created()\n{\n this.$options.template = this.template;\n $.ajax({\n url: \"/rest/CfourProductWall/storespecial/\" + this.special,\n method: \"post\",\n data: \"cols=\" + this.cols + \"&rows=\" + this.rows + \"&sorting=\" + this.sorting\n }).done(data =>\n{\n this.gridClass = 12 / this.cols;\n if (typeof data === \"string\")\n{\n this.items = JSON.parse(data);\n }\n else\n{\n this.items = data;\n }\n $(window).trigger(\"resize\");\n });\n }\n});\n"]}