(()=>{vare,t,n,i,r,o={9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";vari=n(4867),r=n(6026),o=n(4372),a=n(5327),s=n(4097),c=n(4109),l=n(7985),u=n(5061);e.exports=function(e){returnnewPromise((function(t,n){vard=e.data,f=e.headers;i.isFormData(d)&&deletef["Content-Type"];varp=newXMLHttpRequest;if(e.auth){varh=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(h+":"+m)}varv=s(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){vari="getAllResponseHeaders"inp?c(p.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:i,config:e,request:p};r(t,n,o),p=null}},p.onabort=function(){p&&(n(u("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){vart="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,"ECONNABORTED",p)),p=null},i.isStandardBrowserEnv()){varg=(e.withCredentials||l(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void0;g&&(f[e.xsrfHeaderName]=g)}if("setRequestHeader"inp&&i.forEach(f,(function(e,t){void0===d&&"content-type"===t.toLowerCase()?deletef[t]:p.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throwt}"function"==typeofe.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeofe.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),d||(d=null),p.send(d)}))}},1609:(e,t,n)=>{"use strict";vari=n(4867),r=n(1849),o=n(321),a=n(7185);functions(e){vart=newo(e),n=r(o.prototype.request,t);returni.extend(n,o.prototype,t),i.extend(n,t),n}varc=s(n(5655));c.Axios=o,c.create=function(e){returns(a(c.defaults,e))},c.Cancel=n(5263),c.CancelToken=n(4972),c.isCancel=n(6502),c.all=function(e){returnPromise.all(e)},c.spread=n(8713),c.isAxiosError=n(6268),e.exports=c,e.exports.default=c},5263:e=>{"use strict";functiont(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";vari=n(5263);functionr(e){if("function"!=typeofe)thrownewTypeError("executor must be a function.");vart;this.promise=newPromise((function(e){t=e}));varn=this;e((function(e){n.reason||(n.reason=newi(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throwthis.reason},r.source=function(){vare;return{token:newr((function(t){e=t})),cancel:e}},e.exports=r},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";vari=n(4867),r=n(5327),o=n(782),a=n(3572),s=n(7185);functionc(e){this.defaults=e,this.interceptors={request:newo,response:newo}}c.prototype.request=function(e){"string"==typeofe?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";vart=[a,void0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());returnn},c.prototype.getUri=function(e){returne=s(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){returnthis.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,i){returnthis.request(s(i||{},{method:e,
`;s.E.post("",{query:(0,c.S)(i)}).then((t=>{e("loadSearchResultsCallBack",{items:t.data.data.searchresults})})).catch((e=>{console.warn("Issue with loadSearchResults",e),Promise.reject(e)}))}else t("setNoresults")})).catch((e=>{console.warn("Issue with getResults",e),Promise.reject(e)}))},loadSearchResultsCallBack({commit:e,state:t},{items:n,callBackArgs:i}){e("setResults",n),t.infiniteLoadingState&&(t.offset+t.limit>t.count?t.infiniteLoadingState.complete():t.infiniteLoadingState.loaded())},refreshItem({commit:e,state:t},{id:n}){const i=u()`{
`;s.E.post("",{query:(0,c.S)(i)}).then((t=>{e("updateItem",t.data.data.searchresult)})).catch((e=>{console.warn("Issue with refreshItem",e),Promise.reject(e)}))}}},w={namespaced:!0,state:{contenttype:null,items:[],page:0,infiniteLoadingState:null},getters:{},mutations:{setItems(e,t){e.items=e.items.concat(t)},incrementPage(e){e.page+=1},setInfiniteState(e,t){e.infiniteLoadingState=t}},actions:{getItems:({dispatch:e,commit:t,state:n})=>f.Z.get(`/blabla_rest?_format=json&page=${n.page}`,{}).then((({data:e})=>{e.length?(t("setItems",e),n.infiniteLoadingState&&n.infiniteLoadingState.loaded()):n.infiniteLoadingState&&n.infiniteLoadingState.complete()})).catch((e=>{console.warn("Issue with blabla getitems",e),Promise.reject(e)})),nextPage({dispatch:e,commit:t,state:n},i){t("incrementPage"),t("setInfiniteState",i),e("getItems")},getItemIndex:({dispatch:e,commit:t,state:n},i)=>n.items.findIndex((e=>(e.nid,e.nid===i))),getPrevNextItems:({dispatch:e,commit:t,state:n},i)=>({prev:n.items[i-1],next:n.items[i+1]})}},k={namespaced:!0,state:{items:[],showrooms_by_tid:{}},getters:{},mutations:{setItems(e,t){e.items=e.items.concat(t),t.forEach(((t,n)=>{e.showrooms_by_tid[t.tid]=t}))}},actions:{getItems({dispatch:e,commit:t,state:n}){f.Z.get("/showrooms_rest?_format=json",{}).then((({data:e})=>{t("setItems",e)})).catch((e=>{console.warn("Issue with showrooms",e),Promise.reject(e)}))}}};var S=n(5277),x=n.n(S);const T={namespaced:!0,state:{products_ids:[],products:[]},getters:{},mutations:{setProductsIds(e,t){e.products_ids=t},setProducts(e,t){e.products=t}},actions:{getProducts({dispatch:e,commit:t,state:n}){e("loadProductsIds")},loadProductsIds({dispatch:e,commit:t,state:n}){f.Z.get("/pricing_rest?_format=json",{}).then((({data:n})=>{const i=[];for(let e=0;e<n.length;e++)i.push(n[e].product_id);t("setProductsIds",i),e("loadProducts")})).catch((e=>{console.warn("Issue with pricing",e),Promise.reject(e)}))},loadProducts({dispatch:e,commit:t,state:n}){const i=u()`{
products(ids:[${n.products_ids}]){
...ProductsFields
}
}
${x()}
`;s.E.post("",{query:(0,c.S)(i)}).then((e=>{t("setProducts",e.data.data.products)})).catch((e=>{console.warn("Issue with loadProducts",e),Promise.reject(e)}))}}};r().use(o.ZP);const O=(0,a.M)(o.ZP.Store,{modules:{Common:d,User:g,Search:_,Blabla:w,Showrooms:k,Pages:T},mixins:{actions:{loadMaterialsGQL({dispatch:e},{ids:t,gqlfragment:n,callBack:i,callBackArgs:r}){const o=u()`{