1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`a6fafdec27`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`80221d7c-0fb8-461d-bbec-3bfdca05a50b`,e._sentryDebugIdIdentifier=`sentry-dbid-80221d7c-0fb8-461d-bbec-3bfdca05a50b`)}catch{}})();import{At as e,Ot as t,q as n}from"./WCVDKeko.js";var r=[`quotationPopup`,`calendlyPopup`],i=n(`popup`,{state:()=>({editorPopup:!1,helpPopup:!1,calendlyPopup:!1,rebuyMagicProductPopup:!1,helpPopupRetailer:!1,quotationPopup:!1,importDesignPopup:!1,onDemandPopup:!1,proofPopup:!1,retailerPopup:!1,clientQuotationEdit:!1,adminInitQuotationPopup:!1,adminMagicProductPopUp:!1,adminCreateQuotationPopUp:!1,authRegisterPopUp:!1,tranquilityPopUp:!1,upsellSupportMultiPopUp:!1,productPopUp:!1,decreasingPricesPopUp:!1,xxlTresholdsPopup:!1,redirectWebsitePopUp:!1,sidebarPopup:!1,popupOptions:{},openedHash:{},modelsManagerPopUp:!1,bulkImportPopup:!1,quotationContext:null}),actions:{captureQuotationContext(){this.quotationContext={url:window.location.href,editorOpen:!!this.editorPopup||window.location.hash===`#editor`,openedAt:new Date().toISOString()}},handleHashPopup(e){let t=this.openedPopups;if(!e||!a(e))t.forEach(e=>{this.setCloseHash(e),this.hidePopup(e)});else{let n=a(e);if(t.includes(n)){let e=t.pop();this.setCloseHash(e),this.hidePopup(e)}else this.setOpenHash(n);this.popupOptions[n]?this.showPopup([n,{...this.popupOptions[n]}]):this.showPopup(n)}},hashShowPopup(t){let n,i;typeof t==`string`?n=t:typeof t==`object`&&(Array.isArray(t)?[n,i]=t:{value:n,options:i}=t);let o=a(n);if(this.setPopupOptions({value:n,options:i}),r.includes(n)&&this.captureQuotationContext(),o){let t=e().currentRoute.value?.query;e().push({hash:o,query:t})}},async hashHidePopup(n){let r=this,i=Object.keys(r).filter(e=>e!==n).find(e=>r.openedHash[e]===!0),o=e().currentRoute.value.path,s=o.slice(-1)===`/`,c=window.scrollY,l=e().currentRoute.value?.query,u=i&&a(i)?{hash:a(i),query:l}:{path:`${o}${s?``:`/`}`,query:l};await t(u),setTimeout(()=>{window.scrollTo(0,c)},0)},showPopup(e){let t,n;typeof e==`string`?t=e:typeof e==`object`&&(Array.isArray(e)?[t,n]=e:{value:t,options:n}=e),this.togglePopup({value:t,bool:!0}),this.setPopupOptions({value:t,options:n}),r.includes(t)&&!this.quotationContext&&this.captureQuotationContext()},hidePopup(e){this.togglePopup({value:e,bool:!1}),r.includes(e)&&(this.quotationContext=null)},setOpenHash(e){this.openedHash[e]=!0},setCloseHash(e){delete this.openedHash[e]},setPopup({popup:e,value:t}){this[e]=t},togglePopup({value:e,bool:t}){this[e]=t},setPopupOptions({value:e,options:t}){this.popupOptions[e]=t}},getters:{openedPopups:e=>Object.keys(e).filter(t=>e.openedHash[t]===!0)}}),a=e=>{let t={quotationPopup:`#quotation`,editorPopup:`#editor`,calendlyPopup:`#rdv`};return e?e&&e.includes(`#`)?Object.keys(t).find(n=>t[n]===e)||null:e&&e in t?t[e]:null:null};export{i as t};
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.