1(this.webpackJsonp=this.webpackJsonp||[]).push([[30],{1394:function(t,e,n){t.exports={}},1395:function(t,e,n){t.exports={}},1422:function(t,e,n){"use strict";n(98),n(9);var r,o=n(2),c=n(3),l=n(5),d=n(0),f=n(4),h=(n(51),n(1));function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}var y=Object(h.Component)({props:{image:{type:String,required:!0},title:String,caption:{type:String,default:""},description:String,badge:String,link:[String,Object]},path:"components.configurator_link"})(r=function(t){function e(){return Object(o.a)(this,e),t=this,n=e,r=arguments,n=Object(d.a)(n),Object(l.a)(t,v()?Reflect.construct(n,r||[],Object(d.a)(t).constructor):n.apply(t,r));var t,n,r}return Object(f.a)(e,t),Object(c.a)(e,[{key:"styles",get:function(){return{"background-image":'url("'.concat(this.image,'")'),"background-size":"cover","background-repeat":"no-repeat","background-position":"center"}}},{key:"formattedTitle",get:function(){var t;return(null===(t=this.title)||void 0===t?void 0:t.replace(/(­|Â|­)/gi,""))||""}}])}(h.Vue))||r,k=y,m=(n(1429),n(6)),component=Object(m.a)(k,(function(){var t=this,e=t._self._c;return e(t.link?"NuxtLink":"div",{tag:"component",staticClass:"configurator-link",style:{"--image":"url('".concat(t.image,"')")},attrs:{"data-a-id":"configurator-link-open-configurator",route:t.link}},[e("div",{staticClass:"configurator-link__box"},[e("div",{staticClass:"configurator-link__caption"},[t._v("\n "+t._s(t.caption)+"\n ")]),t._v(" "),e("div",{staticClass:"configurator-link__title"},[t._v(t._s(t.formattedTitle))]),t._v(" "),e("div",{staticClass:"configurator-link__description"},[t._v("\n "+t._s(t.description)+"\n ")])]),t._v(" "),t.badge?e("div",{staticClass:"configurator-link__badge"},[t._v("\n "+t._s(t.badge)+"\n ")]):t._e()])}),[],!1,null,null,null);e.a=component.exports},1429:function(t,e,n){"use strict";n(1394)},1430:function(t,e,n){"use strict";n(1395)},1456:function(t,e,n){"use strict";n(9),n(40),n(27),n(20),n(52),n(39),n(34);var r,o,c,l,d,f=n(7),h=n(2),v=n(3),y=n(5),k=n(0),m=n(4),_=n(11),O=(n(12),n(13),n(14),n(1)),C=n(26),x=n(1422),j=n(35);function $(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,a){if(t){if("string"==typeof t)return I(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?I(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw c}}}}function I(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,n=Array(a);e<a;e++)n[e]=t[e];return n}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}var A=(r=Object(O.Component)({components:{ConfiguratorLink:x.a},props:{image:{type:String,required:!0},title:String,caption:{type:String,default:"Tools"},description:String,sku:{type:String},staticIFrameUrl:{type:String,default:null},staticPageUrl:{type:String,default:null},externalLink:{type:Boolean,default:!1},visibleOnlyForAgents:{type:Boolean,default:!1},loginRequired:{type:Boolean,default:!0},badge:String},path:"components.sill_configurator_intro"}),o=Object(O.Watch)("sku"),c=Object(O.Watch)("loggedIn"),r((d=function(t){function e(){var t,n,r,o;Object(h.a)(this,e);for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];return n=this,r=e,o=[].concat(l),r=Object(k.a)(r),(t=Object(y.a)(n,w()?Reflect.construct(r,o||[],Object(k.a)(n).constructor):r.apply(n,o))).product=null,t.loading=!1,t.configuratorProduct=null,t}return Object(m.a)(e,t),Object(v.a)(e,[{key:"loggedIn",get:function(){return this.$store.getters["auth/customerLoggedIn"]}},{key:"iFrameUrl",get:function(){var t,e;return this.staticIFrameUrl?this.staticIFrameUrl:null===(t=this.configuratorProduct)||void 0===t||null===(e=t.attributes)||void 0===e?void 0:e.configuratorUrl}},{key:"visibleConfigurator",get:function(){return!this.visibleOnlyForAgents||this.$store.getters["auth/agentLoggedIn"]}},{key:"onSkuChanged",value:function(){this.fetchConfiguratorProduct()}},{key:"onLoggedInChanged",value:function(){this.fetchConfiguratorProduct()}},{key:"mounted",value:function(){this.fetchConfiguratorProduct()}},{key:"fetchConfiguratorProduct",value:(o=Object(f.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.staticIFrameUrl){t.next=2;break}return t.abrupt("return");case 2:if(this.sku){t.next=4;break}return t.abrupt("return");case 4:if(this.loggedIn){t.next=6;break}return t.abrupt("return");case 6:return this.loading=!0,t.prev=7,t.next=10,this.$api.productC
1onfigurators.getConfigurator(this.sku);case 10:this.configuratorProduct=t.sent,t.next=16;break;case 13:t.prev=13,t.t0=t.catch(7),this.$log.error('Error while fetching configurable product "'.concat(this.sku,'"'),t.t0);case 16:this.loading=!1;case 17:case"end":return t.stop()}}),t,this,[[7,13]])}))),function(){return o.apply(this,arguments)})},{key:"onMessage",value:(r=Object(f.a)(regeneratorRuntime.mark((function t(e){var n,r,o,c,l,d,f,h,v,y,k,m,_,O,C,x,I,w,data,A,P,R,U,S,L;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("ADD_TO_CART"!==e.operation){t.next=44;break}n=Array.isArray(e.data)?e.data:[e.data],r=0,o=n.length,c=$(n),t.prev=5,c.s();case 7:if((l=c.n()).done){t.next=34;break}if(d=l.value,f=null==d?void 0:d.data,h=f?{data:(null==d?void 0:d.data)||null,name:(null==d?void 0:d.name)||"",description:(null==d?void 0:d.description)||"",unitNetPrice:(null==d?void 0:d.unitNetPrice)||null,unitGrossPrice:(null==d?void 0:d.unitGrossPrice)||null,warehouseId:(null==d?void 0:d.warehouseId)||""}:null,t.prev=11,m=null!==(v=null==d?void 0:d.quantity)&&void 0!==v?v:1,_=null!==(y=null==d?void 0:d.sku)&&void 0!==y?y:this.sku,h){t.next=23;break}return t.next=17,this.$api.product.getConcreteProduct(_);case 17:w=t.sent,data=w.data,A=null==data||null===(O=data._rel)||void 0===O?void 0:O.concreteProductMeasurementUnit,P=null==A||null===(C=A.attributes)||void 0===C||null===(x=C.salesUnits)||void 0===x?void 0:x[0],R=null!==(I=null==P?void 0:P.conversion)&&void 0!==I?I:1,m*=R;case 23:return t.next=25,this.$store.dispatch("cart/addToCart",{cartId:null===(k=this.$store.getters["cart/mutableCart"])||void 0===k?void 0:k.id,id:_,quantity:m,cartNote:(null==d?void 0:d.cartNote)||"",configuration:h,tracking:{url:this.$route.fullPath,origin:"configurator",context:null!=d&&d.name?d.name:"Holzschubkasten"}});case 25:t.next=32;break;case 27:t.prev=27,t.t0=t.catch(11),this.$log.error("could not add item to cart",t.t0),t.t0.isAnonymousPriceError&&this.$toast.error("added-to-cart-toast",{component:!0,text:"anonymous_price_error"}),++r;case 32:t.next=7;break;case 34:t.next=39;break;case 36:t.prev=36,t.t1=t.catch(5),c.e(t.t1);case 39:return t.prev=39,c.f(),t.finish(39);case 42:0===r?this.$toast.success(this.$text("add_to_cart.success"),{place:"modal"}):this.$toast.error(this.$text("add_to_cart.error",{total:o,errors:r}),{place:"modal"});try{this.$gtm.pushEvent({event:"EEaddToCart",ecommerce:{currencyCode:"EUR",add:{actionField:{list:this.$route.path},products:[{id:this.sku,name:null===(U=e.data)||void 0===U?void 0:U.name,price:j.a.call(this,null===(S=e.data)||void 0===S?void 0:S.unitNetPrice),brand:"Konfigurator",category:"Konfigurator",quantity:(null===(L=e.data)||void 0===L?void 0:L.quantity)||1,variant:this.sku}]}}})}catch(t){this.$log.error("Could not track add to cart action!",t)}case 44:case"end":return t.stop()}}),t,this,[[5,36,39,42],[11,27]])}))),function(t){return r.apply(this,arguments)})},{key:"fetchAndOpen",value:(n=Object(f.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.fetchConfiguratorProduct();case 2:this.open();case 3:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"open",value:function(){this.loggedIn||!this.loginRequired?this.openWithoutAuthentification():this.$modal.show(C.a.LOGIN,{title:this.$text("login_modal_title"),loginButtonText:this.$text("login_modal_button_text"),postAction:this.fetchAndOpen})}},{key:"openWithoutAuthentification",value:function(){var t=this;this.externalLink?window.open(this.staticPageUrl,"_self"):this.staticPageUrl?this.$router.push(this.localePath(this.staticPageUrl)):this.staticIFrameUrl?this.$modal.show(C.a.CHECK_CUSTOMER_DATA_FOR_CONFIGURATOR,{loadingMessage:this.$t("components.customer_data_checks.loading"),successMessage:this.$t("components.customer_data_checks.success"),errorMessage:this.$t("components.customer_data_checks.error"),actions:[{onClick:function(e){window.open(t.staticIFrameUrl,"_blank")},label:this.$t("components.customer_data_checks.open_configurator"),awaitChecks:!0}]}):this.iFrameUrl?this.$modal.show(C.a.IFRAME,{title:this.formattedTitle,log:!1,src:this.iFrameUrl,onMessage:this.onMessage}):this.$log.warn("No configurator iFrameUrl set for configurator "+this.title,{sku:this.sku})}}]);var n,r,o}(O.Vue),Object(_.a)(d.prototype,"onSkuChanged",[o],Object.getOwnPropertyDescriptor(d.prototype,"onSkuChanged"),d.prototype),Object(_.a)(d.prototype,"onLoggedInChanged",[c],Object.getOwnPropertyDescriptor(d.prototype,"onLoggedInChanged"),d.prototype),l=d))||l),P=A,R=n(6),component=Object(R.a)(P,(function(){var t=this,e=t._self._c;return t.visibleConfigurator?e("ConfiguratorLink",{attrs:{image:t.image,title:t.title,caption:t.caption,description:t.description,badge:t.badge,tabindex:"0"},nativeOn:{click:function(e){return t.open.apply(null,arguments)},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.open.apply(null,arguments)}}}):t._e()}),[],!1,null,null,null);e.a=component.exports},1457:function(t,e,n){"use strict";n(9);var r,o=n(2),c=n(3),l=n(5),d=n(0),f=n(4),h=(n(32),n(27),n(86),n(87),n(1)),v=n(1422),y=n(26),k=n(74);function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}var _=Object(h.Component)({components:{ConfiguratorLink:v.a},path:"components.nothegger_opener",props:{conf:{type:Object,required:!0}}})(r=function(t){function e(){return Object(o.a)(this,e),t=this,n=e,r=arguments,n=Object(d.a)(n),Object(l.a)(t,m()?Reflect.construct(n,r||[],Object(d.a)(t).constructor):n.apply(t,r));var t,n,r}return Object(f.a)(e,t),Object(c.a)(e,[{key:"url",get:function(){var t,e,n,r;if(null!==(t=this.conf)&&void 0!==t&&t.url){var o=new URL(this.conf.url);o.searchParams.set("tenant",this.conf.tenant),this.conf.redirectUrl&&o.searchParams.set("redirectUrl",this.conf.redirectUrl);var c=null===(e=this.$store.getters["cart/mutableCart"])||void 0===e||null===(n=e._items)||void 0===n||null===(r=n.find((function(i){return i._lineItemType===k.a.CONFIGURATOR_LINE_ITEM})))||void 0===r?void 0:r._notheggerItemMetaData;return null!=c&&c.orderId&&o.searchParams.set("orderId",c.orderId),o.toString()}this.$log.warn("Nothegger integration URL is not configured")}},{key:"checkLoggedInAndOpen",value:function(){this.$store.getters["auth/customerLoggedIn"]?this.open():this.$modal.show(y.a.LOGIN,{title:this.$text("login_modal_title"),loginButtonText:this.$text("login_modal_button_text"),postAction:this.open})}},{key:"open",value:function(){this.url&&window.open(this.url,"_self")}}])}(h.Vue))||r,O=_,C=n(6),component=Object(C.a)(O,(function(){var t=this;return(0,t._self._c)("ConfiguratorLink",{staticClass:"nothegger-opener",attrs:{image:t.conf.image,title:t.conf.title,caption:t.conf.caption,description:t.conf.description,sku:t.conf.sku,tabindex:"0"},nativeOn:{click:function(e){return t.checkLoggedInAndOpen.apply(null,arguments)},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.checkLoggedInAndOpen.apply(null,arguments)}}})}),[],!1,null,null,null);e.a=component.exports},1468:function(t,e,n){"use strict";n(1430);var r=n(6),component=Object(r.a)({},(function(){return(0,this._self._c)("div",{staticClass:"configurator-tiles"},[this._t("default")],2)}),[],!1,null,null,null);e.a=component.exports},1859:function(t,e,n){"use strict";n.r(e);n(9);var r,o=n(2),c=n(3),l=n(5),d=n(0),f=n(4),h=n(1),v=n(62),y=n(1456),k=n(1468),m=n(1457),_=n(150),O=n(247);function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(C=function(){return!!t})()}var x=Object(h.Component)({components:{NotheggerOpener:m.a,Headline:v.a,ConfiguratorIntro:y.a,ConfiguratorTiles:k.a},path:"pages.configurators"})(r=function(t){function e(){return Object(o.a)(this,e),t=this,n=e,r=arguments,n=Object(d.a)(n),Object(l.a)(t,C()?Reflect.construct(n,r||[],Object(d.a)(t).constructor):n.apply(t,r));var t,n,r}return Object(f.a)(e,t),Object(c.a)(e,[{key:"head",value:function(){return{title:this.$text("title"),description:this.$text("meta_description",{tenant:this.$config.tenant.displayName}),link:Object(_.a)(this)}}},{key:"isNotheggerIntegrationEnabled",get:function(){var t,e;return Array.isArray(this.$config.nothegger)?Boolean(null===(e=this.$config.nothegger[0])||void 0===e?void 0:e.url):Boolean(null===(t=this.$config.nothegger)||void 0===t?void 0:t.url)}},{key:"tiles",get:function(){return Object(O.a)(this.$config)}}])}(h.Vue))||r,j=x,$=n(6),component=Object($.a)(j,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"page configurators-page"},[e("div",{staticClass:"page-block page-block--limited-width"},[e("Headline",{scopedSlots:t._u([{key:"middle",fn:function(){return[e("h1",[t._v(t._s(t.$text("title")))])]},proxy:!0}])})],1),t._v(" "),e("div",{staticClass:"page-block page-block--limited-width configurators-page__tiles"},[e("ConfiguratorTiles",t._l(t.tiles,(function(n){return e(n.component,t._b({key:n.key,tag:"component"},"component",n.props,!1))})),1)],1)])}),[],!1,null,null,null);e.default=component.exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.