PageSourceSearch

https://www.electrovoice.com/_nuxt/DRQOAJEH.js

js electrovoice.com collected 2026-10-01 10:32:51 UTC 108,664 bytes, 2 lines download raw bytes

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:`5e6b11730a1cc37b0c944ac12baa12b0d8bd7ebf`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`f7e9f780-f5e9-4043-9735-3434efc15b70`,e._sentryDebugIdIdentifier=`sentry-dbid-f7e9f780-f5e9-4043-9735-3434efc15b70`)}catch{}})();import{a as e,o as t}from"./DnUMDs48.js";import{Et as n,H as r,L as i,ut as a,vt as o}from"./C9n7DQ_O.js";import{f as s,p as c,u as l}from"./P-HUrDe7.js";import{t as u}from"./DPWLhl3B.js";import{a as d,i as f,o as p,t as m}from"./CtWBWrWv.js";import{t as h}from"./DFFNpEFx.js";import{r as g,t as _}from"./CGWJKfFM.js";import{n as v}from"./DfzAs4VZ.js";import{i as y}from"./D5ci93dE.js";import{m as ee,p as b}from"./YoHM6X1D.js";var te=[{algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,applicationId:1666,countryCode:`electrovoice`,currency:`SEK`,domain:`localhost:3011`,environment:`local`,flagUrl:`/flags/4x3/us.svg`,languagePrimary:!0,locale:`sv-SE`,logoUrl:`ev_logo_white`,favicon:`/favicons/electrovoice-favicon.svg`,noRobots:!0,pageTitle:`Electro-voice`,productBasePath:`product`,sitemapUrl:`https://storefront.test/storage/sitemaps/sitemap-electrovoice.xml`,storyblokBasePath:`electrovoice`,cssStyle:`electrovoice`,url:`https://localhost:3011/electrovoice`,previewUrl:`https://preview.electrovoice.com`,subFolder:!0,displayIncVat:!1,algoliaIndexPages:`content_electrovoice`,b2b:{storyblokBasePath:``,enabled:!1,purchaseEnabled:!1},b2c:{enabled:!1,purchaseEnabled:!1},features:{fastOrder:!1,backorders:!1,cartSettings:!1,internationalization:!0},locales:[{algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,code:`en`,label:`language.english`,flag:`/flags/4x3/us.svg`,default:!0,sitemapUrl:`https://storefront.test/storage/sitemaps/sitemap-electrovoice.xml`},{algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,code:`de`,label:`language.german`,flag:`/flags/4x3/de.svg`,sitemapUrl:`https://storefront.test/storage/sitemaps/sitemap-electrovoice.xml`,productBasePath:`produkt`},{algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,code:`ja`,label:`language.japanese`,flag:`/flags/4x3/jp.svg`,sitemapUrl:`https://storefront.test/storage/sitemaps/sitemap-electrovoice.xml`},{algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,code:`zh`,label:`language.chinese`,flag:`/flags/4x3/cn.svg`,sitemapUrl:`https://storefront.test/storage/sitemaps/sitemap-electrovoice.xml`}],showNonPublicProducts:!0,productListPreset:{search:null,filters:{flagFilters:[],brandFilters:[`Electro-Voice`],categoryFilters:[]},relation:`AND`}},{countryCode:`dynacord`,currency:`SEK`,domain:`localhost:3011`,environment:`local`,flagUrl:`/flags/4x3/us.svg`,languagePrimary:!0,locale:`sv-SE`,logoUrl:`dynacord_logo_white`,favicon:`/favicons/dynacord-favicon.svg`,noRobots:!0,pageTitle:`Dynacord`,productBasePath:`product`,sitemapUrl:`https://storefront.test/storage/sitemaps/sitemap-dynacord.xml`,storyblokBasePath:`dynacord`,cssStyle:`dynacord`,url:`https://localhost:3011/dynacord`,previewUrl:`https://preview.dynacord.com`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,algoliaIndexPages:`content_dynacord`,applicationId:1666,subFolder:!0,displayIncVat:!1,b2b:{storyblokBasePath:``,enabled:!1,purchaseEnabled:!1},b2c:{enabled:!1,purchaseEnabled:!1},features:{fastOrder:!1,backorders:!1,cartSettings:!1,internationalization:!0},locales:[{code:`en`,label:`language.english`,flag:`/flags/4x3/us.svg`,default:!0,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`https://storefront.test/storage/sitemaps/sitemap-dynacord.xml`},{code:`de`,label:`language.german`,flag:`/flags/4x3/de.svg`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`https://storefront.test/storage/sitemaps/sitemap-dynacord.xml`,productBasePath:`produkt`},{code:`ja`,label:`language.japanese`,flag:`/flags/4x3/jp.svg`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`https://storefront.test/storage/sitemaps/sitemap-dynacord.xml`},{code:`zh`,label:`language.chinese`,flag:`/flags/4x3/cn.svg`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`https://storefront.test/storage/sitemaps/sitemap-dynacord.xml`}],showNonPublicProducts:!0,productListPreset:{search:null,filters:{flagFilters:[],brandFilters:[`dynacord`],categoryFilters:[]},relation:`AND`}}],ne=[{countryCode:`electrovoice`,currency:`SEK`,domain:`storyblok.electrovoice.com`,environment:`preview`,flagUrl:`/flags/4x3/us.svg`,languagePrimary:!0,locale:`sv
1-SE`,logoUrl:`ev_logo_white`,favicon:`/favicons/electrovoice-favicon.svg`,noRobots:!0,pageTitle:`Electro-voice`,productBasePath:`product`,sitemapUrl:`https://www.example.com/se-sitemap.xml`,storyblokBasePath:`electrovoice`,cssStyle:`electrovoice`,url:`https://storyblok.electrovoice.com/electrovoice`,previewUrl:`https://preview.electrovoice.com`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,algoliaIndexPages:`content_electrovoice`,applicationId:1666,subFolder:!0,displayIncVat:!1,b2b:{storyblokBasePath:``,enabled:!1,purchaseEnabled:!1},b2c:{enabled:!1,purchaseEnabled:!1},features:{fastOrder:!1,backorders:!1,cartSettings:!1,internationalization:!0},locales:[{code:`en`,label:`language.english`,flag:`/flags/4x3/us.svg`,default:!0,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`sitemap-demo-electrovoice-sv-SE.xml`},{code:`de`,label:`language.german`,flag:`/flags/4x3/de.svg`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`sitemap-demo-electrovoice-de-DE.xml`,productBasePath:`produkt`},{code:`ja`,label:`language.japanese`,flag:`/flags/4x3/jp.svg`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`sitemap-demo-electrovoice-ja-JP.xml`},{code:`zh`,label:`language.chinese`,flag:`/flags/4x3/cn.svg`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`sitemap-demo-electrovoice-zh-CN.xml`}],showNonPublicProducts:!0,productListPreset:{search:null,filters:{flagFilters:[],brandFilters:[`Electro-Voice`],categoryFilters:[]},relation:`AND`}},{countryCode:`dynacord`,currency:`SEK`,domain:`storyblok.electrovoice.com`,environment:`preview`,flagUrl:`/flags/4x3/us.svg`,languagePrimary:!0,locale:`sv-SE`,logoUrl:`dynacord_logo_white`,favicon:`/favicons/dynacord-favicon.svg`,noRobots:!0,pageTitle:`Dynacord`,productBasePath:`product`,sitemapUrl:`https://www.example.com/se-sitemap.xml`,storyblokBasePath:`dynacord`,cssStyle:`dynacord`,url:`https://storyblok.electrovoice.com/dynacord`,previewUrl:`https://preview.dynacord.com`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,algoliaIndexPages:`content_dynacord`,applicationId:1666,subFolder:!0,displayIncVat:!1,b2b:{storyblokBasePath:``,enabled:!1,purchaseEnabled:!1},b2c:{enabled:!1,purchaseEnabled:!1},features:{fastOrder:!1,backorders:!1,cartSettings:!1,internationalization:!0},locales:[{code:`en`,label:`language.english`,flag:`/flags/4x3/us.svg`,default:!0,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`sitemap-demo-dynacord-sv-SE.xml`},{code:`de`,label:`language.german`,flag:`/flags/4x3/de.svg`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`sitemap-demo-dynacord-de-DE.xml`,productBasePath:`produkt`},{code:`ja`,label:`language.japanese`,flag:`/flags/4x3/jp.svg`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`sitemap-demo-dynacord-ja-JP.xml`},{code:`zh`,label:`language.chinese`,flag:`/flags/4x3/cn.svg`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`sitemap-demo-dynacord-zh-CN.xml`}],showNonPublicProducts:!0,productListPreset:{search:null,filters:{flagFilters:[],brandFilters:[`dynacord`],categoryFilters:[]},relation:`AND`}},{countryCode:`electrovoice`,currency:`SEK`,domain:`preview.electrovoice.com`,environment:`preview`,flagUrl:`/flags/4x3/us.svg`,languagePrimary:!1,locale:`sv-SE`,logoUrl:`ev_logo_white`,favicon:`/favicons/electrovoice-favicon.svg`,noRobots:!0,pageTitle:`Electro-voice`,productBasePath:`product`,sitemapUrl:`https://storefront-api.keenfinity-group.com/storage/sitemaps/sitemap-electrovoice-en-US.xml`,storyblokBasePath:`electrovoice`,cssStyle:`electrovoice`,url:`https://preview.electrovoice.com`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,algoliaIndexPages:`content_electrovoice`,applicationId:1666,subFolder:!1,edgeCache:!0,displayIncVat:!1,b2b:{storyblokBasePath:``,enabled:!1,purchaseEnabled:!1},b2c:{enabled:!1,purchaseEnabled:!1},features:{fastOrder:!1,backorders:!1,cartSettings:!1,internationalization:!0}
1,locales:[{code:`en`,label:`language.english`,flag:`/flags/4x3/us.svg`,default:!0,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`https://storefront-api.keenfinity-group.com/storage/sitemaps/sitemap-electrovoice-en-US.xml`},{code:`de`,label:`language.german`,flag:`/flags/4x3/de.svg`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`https://storefront-api.keenfinity-group.com/storage/sitemaps/sitemap-electrovoice-de-DE.xml`,productBasePath:`produkt`},{code:`ja`,label:`language.japanese`,flag:`/flags/4x3/jp.svg`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`https://storefront-api.keenfinity-group.com/storage/sitemaps/sitemap-electrovoice-ja-JP.xml`},{code:`zh`,label:`language.chinese`,flag:`/flags/4x3/cn.svg`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`https://storefront-api.keenfinity-group.com/storage/sitemaps/sitemap-electrovoice-zh-CN.xml`}],showNonPublicProducts:!0,productListPreset:{search:null,filters:{flagFilters:[],brandFilters:[`Electro-Voice`],categoryFilters:[]},relation:`AND`}},{countryCode:`dynacord`,currency:`SEK`,domain:`preview.dynacord.com`,environment:`preview`,flagUrl:`/flags/4x3/us.svg`,languagePrimary:!1,locale:`sv-SE`,logoUrl:`dynacord_logo_white`,favicon:`/favicons/dynacord-favicon.svg`,noRobots:!0,pageTitle:`Dynacord`,productBasePath:`product`,sitemapUrl:`https://storefront-api.keenfinity-group.com/storage/sitemaps/sitemap-dynacord-en-US.xml`,storyblokBasePath:`dynacord`,cssStyle:`dynacord`,url:`https://preview.dynacord.com`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,algoliaIndexPages:`content_dynacord`,applicationId:1666,subFolder:!1,edgeCache:!0,displayIncVat:!1,b2b:{storyblokBasePath:``,enabled:!1,purchaseEnabled:!1},b2c:{enabled:!1,purchaseEnabled:!1},features:{fastOrder:!1,backorders:!1,cartSettings:!1,internationalization:!0},locales:[{code:`en`,label:`language.english`,flag:`/flags/4x3/us.svg`,default:!0,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`https://storefront-api.keenfinity-group.com/storage/sitemaps/sitemap-dynacord-en-US.xml`},{code:`de`,label:`language.german`,flag:`/flags/4x3/de.svg`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`https://storefront-api.keenfinity-group.com/storage/sitemaps/sitemap-dynacord-de-DE.xml`,productBasePath:`produkt`},{code:`ja`,label:`language.japanese`,flag:`/flags/4x3/jp.svg`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`https://storefront-api.keenfinity-group.com/storage/sitemaps/sitemap-dynacord-ja-JP.xml`},{code:`zh`,label:`language.chinese`,flag:`/flags/4x3/cn.svg`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`https://storefront-api.keenfinity-group.com/storage/sitemaps/sitemap-dynacord-zh-CN.xml`}],showNonPublicProducts:!0,productListPreset:{search:null,filters:{flagFilters:[],brandFilters:[`dynacord`],categoryFilters:[]},relation:`AND`}}],re=[{countryCode:`electrovoice`,currency:`USD`,domain:`www.electrovoice.com`,environment:`production`,flagUrl:`/flags/4x3/us.svg`,languagePrimary:!0,locale:`sv-SE`,logoUrl:`ev_logo_white`,favicon:`/favicons/electrovoice-favicon.svg`,noRobots:!1,pageTitle:`Electro-voice`,productBasePath:`product`,sitemapUrl:`https://storefront-api.keenfinity-group.com/storage/sitemaps/sitemap-electrovoice-en-US.xml`,storyblokBasePath:`electrovoice`,cssStyle:`electrovoice`,url:`https://www.electrovoice.com`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,algoliaIndexPages:`content_electrovoice`,applicationId:1666,gtmId:`GTM-TB857RV`,gtmEnabled:!0,subFolder:!1,edgeCache:!0,displayIncVat:!1,b2b:{storyblokBasePath:``,enabled:!1,purchaseEnabled:!1},b2c:{enabled:!1,purchaseEnabled:!1},features:{fastOrder:!1,backorders:!1,cartSettings:!1,internationalization:!0}
1,locales:[{code:`en`,label:`language.english`,flag:`/flags/4x3/us.svg`,default:!0,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`https://storefront-api.keenfinity-group.com/storage/sitemaps/sitemap-electrovoice-en-US.xml`},{code:`de`,label:`language.german`,flag:`/flags/4x3/de.svg`,noIndex:!0,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`https://storefront-api.keenfinity-group.com/storage/sitemaps/sitemap-electrovoice-de-DE.xml`,productBasePath:`produkt`}],showNonPublicProducts:!0,productListPreset:{search:null,filters:{flagFilters:[],brandFilters:[`Electro-Voice`],categoryFilters:[]},relation:`AND`}},{countryCode:`dynacord`,currency:`USD`,domain:`www.dynacord.com`,environment:`production`,flagUrl:`/flags/4x3/us.svg`,languagePrimary:!0,locale:`sv-SE`,logoUrl:`dynacord_logo_white`,favicon:`/favicons/dynacord-favicon.svg`,noRobots:!1,pageTitle:`Dynacord`,productBasePath:`product`,sitemapUrl:`https://storefront-api.keenfinity-group.com/storage/sitemaps/sitemap-dynacord-en-US.xml`,storyblokBasePath:`dynacord`,cssStyle:`dynacord`,url:`https://www.dynacord.com`,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,algoliaIndexPages:`content_dynacord`,applicationId:1666,gtmId:`GTM-MDSK226`,gtmEnabled:!0,subFolder:!1,edgeCache:!0,displayIncVat:!1,b2b:{storyblokBasePath:``,enabled:!1,purchaseEnabled:!1},b2c:{enabled:!1,purchaseEnabled:!1},features:{fastOrder:!1,backorders:!1,cartSettings:!1,internationalization:!0},locales:[{code:`en`,label:`language.english`,flag:`/flags/4x3/us.svg`,default:!0,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`https://storefront-api.keenfinity-group.com/storage/sitemaps/sitemap-dynacord-en-US.xml`},{code:`de`,label:`language.german`,flag:`/flags/4x3/de.svg`,noIndex:!0,algoliaIndex:`keefinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keefinity-brandsite-en-en-US-products_search`,sitemapUrl:`https://storefront-api.keenfinity-group.com/storage/sitemaps/sitemap-dynacord-de-DE.xml`,productBasePath:`produkt`}],showNonPublicProducts:!0,productListPreset:{search:null,filters:{flagFilters:[],brandFilters:[`dynacord`],categoryFilters:[]},relation:`AND`}}],ie=[{countryCode:`electrovoice`,currency:`SEK`,domain:`keenfinity-stage.iveo.store`,environment:`preview`,flagUrl:`/flags/4x3/us.svg`,languagePrimary:!0,locale:`sv-SE`,logoUrl:`ev_logo_white`,favicon:`/favicons/electrovoice-favicon.svg`,noRobots:!0,pageTitle:`Electro-voice`,productBasePath:`product`,sitemapUrl:`https://www.example.com/se-sitemap.xml`,storyblokBasePath:`electrovoice`,cssStyle:`electrovoice`,url:`https://keenfinity-stage.iveo.store/electrovoice`,previewUrl:`https://keenfinity-stage.iveo.store`,algoliaIndex:`keenfinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keenfinity-brandsite-en-en-US-products_search`,algoliaIndexPages:`content_electrovoice`,applicationId:1665,subFolder:!0,displayIncVat:!1,b2b:{storyblokBasePath:``,enabled:!1,purchaseEnabled:!1},b2c:{enabled:!1,purchaseEnabled:!1},features:{fastOrder:!1,backorders:!1,cartSettings:!1,internationalization:!0},locales:[{code:`en`,label:`language.english`,flag:`/flags/4x3/us.svg`,default:!0,algoliaIndex:`keenfinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keenfinity-brandsite-en-en-US-products_search`,sitemapUrl:`sitemap-demo-electrovoice-sv-SE.xml`},{code:`de`,label:`language.german`,flag:`/flags/4x3/de.svg`,algoliaIndex:`keenfinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keenfinity-brandsite-en-en-US-products_search`,sitemapUrl:`sitemap-demo-electrovoice-de-DE.xml`,productBasePath:`produkt`}],showNonPublicProducts:!0,productListPreset:{search:null,filters:{flagFilters:[],brandFilters:[`Electro-Voice`],categoryFilters:[]},relation:`AND`}},{countryCode:`dynacord`,currency:`SEK`,domain:`keenfinity-stage.iveo.store`,environment:`preview`,flagUrl:`/flags/4x3/us.svg`,languagePrimary:!0,locale:`sv
1-SE`,logoUrl:`dynacord_logo_white`,favicon:`/favicons/dynacord-favicon.svg`,noRobots:!0,pageTitle:`Dynacord`,productBasePath:`product`,sitemapUrl:`https://www.example.com/se-sitemap.xml`,storyblokBasePath:`dynacord`,cssStyle:`dynacord`,url:`https://keenfinity-stage.iveo.store/dynacord`,previewUrl:`https://keenfinity-stage.iveo.store`,algoliaIndex:`keenfinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keenfinity-brandsite-en-en-US-products_search`,algoliaIndexPages:`content_dynacord`,applicationId:1665,subFolder:!0,displayIncVat:!1,b2b:{storyblokBasePath:``,enabled:!1,purchaseEnabled:!1},b2c:{enabled:!1,purchaseEnabled:!1},features:{fastOrder:!1,backorders:!1,cartSettings:!1,internationalization:!0},locales:[{code:`en`,label:`language.english`,flag:`/flags/4x3/us.svg`,default:!0,algoliaIndex:`keenfinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keenfinity-brandsite-en-en-US-products_search`,sitemapUrl:`sitemap-demo-dynacord-sv-SE.xml`},{code:`de`,label:`language.german`,flag:`/flags/4x3/de.svg`,algoliaIndex:`keenfinity-brandsite-en-en-US-products`,algoliaIndexAutocomplete:`keenfinity-brandsite-en-en-US-products_search`,sitemapUrl:`sitemap-demo-dynacord-de-DE.xml`,productBasePath:`produkt`}],showNonPublicProducts:!0,productListPreset:{search:null,filters:{flagFilters:[],brandFilters:[`dynacord`],categoryFilters:[]},relation:`AND`}}],ae=[...te,...ne,...re,...ie],oe=(e,t)=>{let n=null,r=ae.filter(t=>t.domain===e);if(r.length>1){let e=t?.split(`/`).filter(e=>e.length).shift();n=r.find(t=>t.storyblokBasePath===e)??r[0]??null}else n=r[0]??ae[0]??null;return n},se=e=>ae.filter(t=>t.environment===e),ce=e=>e?.gtmId&&(e.gtmEnabled??e.environment===`production`)?e.gtmId:null,le=ae,x=e=>e?.storyblokBasePath??``,ue=e=>e?.features?.internationalization===!0,de=e=>e?.locales?.map(e=>e.code)??[],S=e=>e?.locales?.find(e=>e.default)?.code??``,fe=e=>(e??``).split(`/`).filter(e=>e.length>0),pe=e=>(e??``).replace(/^\/+|\/+$/g,``),C=(e,t)=>ue(t)&&!!e&&de(t).includes(e)&&e!==S(t),me=(e,t,n=[])=>!e||!t||e===x(t)?null:n.find(n=>n.subFolder===t.subFolder&&n.environment===t.environment&&n.storyblokBasePath===e)??null,he=[`http://`,`https://`,`tel:`,`sms:`,`mailto:`,`#`],w=(e,t,n={})=>{let r=fe(e),i=x(t),a=S(t);n.editorLeadingLocale&&C(r[0],t)&&(a=r.shift());let o=``;return t?.subFolder&&i&&r[0]===i&&(o=r.shift()),C(r[0],t)&&(a=r.shift()),{folder:o,locale:a,slug:r.join(`/`)}},T=({slug:e,locale:t},n)=>{let r=[],i=x(n);n?.subFolder&&i&&r.push(i),ue(n)&&t&&t!==S(n)&&r.push(t);let a=pe(e);return a&&r.push(a),`/${r.join(`/`)}`},ge=({slug:e},t)=>{let n=[],r=x(t);r&&n.push(r);let i=pe(e);return i&&n.push(i),n.join(`/`)},_e=(e,t,n={})=>{let{slug:r}=w(e,t,n);return ge({slug:r},t)},ve=(e,t,n={})=>w(e,t,n).locale,ye=(e,t,n={},r=[])=>{if(!e)return``;if(he.some(t=>e.startsWith(t)))return e;let i=``,a=e,o=e.indexOf(`#`);o>-1&&(i=e.substring(o),a=e.substring(0,o));let s=fe(a),c=x(t),l=S(t);C(s[0],t)&&(l=s.shift());let u=me(s[0],t,r);if(u){s.shift(),C(s[0],u)&&(l=s.shift());let e=s.join(`/`);n[e]&&(e=n[e]);let r=T({slug:e,locale:l},u);return u.domain&&u.domain!==t?.domain?`${(u.url??``).replace(/\/+$/,``)}${r}${i}`:`${r}${i}`}c&&s[0]===c&&s.shift(),C(s[0],t)&&(l=s.shift());let d=s.join(`/`);return n[d]&&(d=n[d]),`${T({slug:d,locale:l},t)}${i}`},be=`product-documents`,xe=(e,t,n)=>T({slug:`${be}/${e}`,locale:t},n);function E(){return{replaceLinksInStoryBlokResponse:e=>{let t=$(),n=t.getStoryblokBasePath,r=t.domainMap,i=r?.features?.internationalization??!1,a=JSON.stringify(e);if(i&&n){let e=(r?.locales??[]).filter(e=>!e.default).map(e=>e.code);if(t.isSubFolder)for(let t of e)a=a.replaceAll(`"${t}/${n}/`,`"${n}/${t}/`).replaceAll(`"/${t}/${n}/`,`"/${n}/${t}/`).replaceAll(`"${t}/${n}"`,`"${n}/${t}"`).replaceAll(`"/${t}/${n}"`,`"/${n}/${t}"`);else{let t=(se(r?.environment??``)??[]).filter(e=>e.subFolder===!1&&e.storyblokBasePath&&e.storyblokBasePath!==n&&e.domain!==r?.domain);for(let n of t){let t=n.storyblokBasePath,r=(n.url??``).replace(/\/+$/,``);if(!(!t||!r)){for(let n of e)a=a.replaceAll(`"${n}/${t}/`,`"${r}/${n}/`).replaceAll(`"/${n}/${t}/`,`"${r}/${n}/`).replaceAll(`"${n}/${t}"`,`"${r}/${n}"`).replaceAll(`"/${n}/${t}"`,`"${r}/${n}"`);a=a.replaceAll(`"${t}/`,`"${r}/`).replaceAll(`"/${t}/`,`"${r}/`).replaceAll(`"${t}"`,`"${r}/"`).replaceAll(`"/${t}"`,`"${r}/"`)}}for(let t of e)a=a.replaceAll(`"${t}/${n}/`,`"${t}/`).replaceAll(`"/${t}/${n}/`,`"/${t}/`).replaceAll(`"${t}/${n}"`,`"${t}"`).replaceAll(`"/${t}/${n}"`,`"/${t}"`);a=a.replaceAll(`"${n}/"`,`"/"`).replaceAll(`"/${n}/"`,`"/"`).replaceAll(`"${n}/`,`"`).replaceAll(`"/${n}/`,`"/`)}}else n&&!t.isSubFolder&&(a=a.replaceAll(`.${n}`,`<<rep>>`).replaceAll(`${n}/`,`/`).replaceAll(`<<rep>>`,`.${n}`));let o=t.storyblokTranslatedSlugMap;if(o&&Object.keys(o).length)for(let[e,t]of Object.entries(o))a=a.replaceAll(e,t);return JSON.parse(a.replaceAll(`"//`,`"/`))}
1,replaceLinksInPath:e=>{let t=$();if(t.isSubFolder)return e;let n=s(),r=n.query&&n.query._storyblok&&n.query._storyblok!==``;return!r&&e&&t.getStoryblokBasePath&&e.startsWith(`${t.getStoryblokBasePath}/`)&&(e=e.replace(`${t.getStoryblokBasePath}/`,``)),r?e:`${t.getStoryblokBasePath}/${e}`},productUrl:e=>{let t=$();return T({slug:`${t.getProductBasePath}/${e}`,locale:t.getUserLocale},t.domainMap)},productDocumentsUrl:e=>{let t=$();return xe(e,t.getUserLocale,t.domainMap)},accountUrl:e=>`${$().getPrependPathForManualLinks}/account/${e}`,salesUrl:e=>`${$().getPrependPathForManualLinks}/salestool/${e}`,manualUrl:e=>{if(!e)return``;let t=$();return e!==`/`&&e.startsWith(`${t.getStoryblokBasePath}/`)?`${e}`:`${t.getPrependPathForManualLinks}${e.startsWith(`/`)?``:`/`}${e}`},homeUrl:()=>{let e=$();return T({slug:e.getIsB2b?e.domainMap?.b2b?.storyblokBasePath??``:``,locale:e.getUserLocale},e.domainMap)}}}i();function D(e,t){let n=d(e,t),r=f(e,()=>n.value);return a(r,()=>{n.value=r.value},{deep:!0}),r}o();function O(){let{$t:r}=e(),i=D(`userToken`,{maxAge:31104e3,path:`/`}),a=t(),o=n(null),s=n(null),c=n(null),l=n(null),d=n(!1),f=async(e,t,n)=>v(e,`GET`,null,t),p=async(e,t,n,r)=>v(e,`POST`,t,n),m=async(e,t,n,r)=>v(e,`PUT`,t,n),h=async(e,t,n,r)=>v(e,`DELETE`,t,n),g=async(e,t,n)=>v(e,`POST`,t,n,`blob`),v=async(e,t,n,r,f=`json`)=>{d.value=!0,_().clearFormErrorMsg(),c.value=null,l.value=null,o.value=null,s.value=null;let p=$();try{let d=`${a.public.apiUrl}${e}`;p.getEnvironment===`local`&&({}.NODE_TLS_REJECT_UNAUTHORIZED=`0`);let m={Accept:f===`blob`?`*/*`:`application/json`,"Content-Type":`application/json`,HostName:p.hostname,BasePath:p.getApiApplicationBasePath,ApplicationId:String(p.getApplicationId),IsB2B:p.getIsB2b?`true`:`false`,Locale:p.getUserLocale};i.value&&!r?.Authorization&&(m.Authorization=`Bearer ${i.value}`),r&&Object.assign(m,r);let h=await u(d,{method:t,headers:m,body:n?JSON.stringify(n):void 0,responseType:f,async onResponse({response:e}){return e.ok?(l.value=e.status||null,e._data):(o.value=e._data,s.value=e.status||null,null)}});return c.value=h,h}catch(e){console.error(e);let t=e,n=t.data??t.response?._data??o.value;return n?o.value=n:o.value={message:t.message},s.value||=t.statusCode??null,null}finally{d.value=!1}};return{apiGet:f,apiPost:p,apiPut:m,apiDelete:h,apiPostBlob:g,lastError:o,lastErrorCode:s,lastResponse:c,lastResponseCode:l,pending:d,accountToken:i,handleApiError:(e,t,n,i)=>{let a=_(),c=o.value;s.value===403?a.setTemporaryError(r(`apiError.unauthorized`),n?5e3:0):(s.value===422||t)&&!i?typeof c==`string`?a.setFormErrorMsg(c,e):c&&typeof c==`object`?a.setFormErrorMsg({message:c.message,errors:c.errors},e):a.setFormErrorMsg(r(`apiError.unknown`),e):a.setTemporaryError(c?typeof c==`string`?c:c.message?c.message:r(`apiError.unknown`):r(`apiError.unknown`),n?5e3:0)}}}var Se=()=>({id:-1,code:``,email:``,ssn:null,firstName:``,lastName:``,phone:``,impersonatingCompany:!1,role:{id:-1,name:``,type:``},company:{id:-1,code:`-1`,name:``,orgNo:``,email:``,useInvoiceAddressAsDeliveryAddress:!0,deliveryAddresses:[],invoiceAddress:{id:-1,line1:``,line2:``,zip:``,city:``,country:``,careOf:``},phone:null,invoicePaymentMethodAvailable:!1,customerGroups:[]},favoriteProducts:[],favoriteBrands:[],pricelistIds:[]}),Ce=()=>({id:-1,line1:``,line2:``,zip:``,city:``,country:``,careOf:``}),we=Se(),Te=Ce(),Ee=function(e){return e.Standard=`wh_sweden`,e}({}),De=function(e){return e.Active=`active`,e.Coming=`coming`,e.Hidden=`hidden`,e.Expired=`expired`,e}({}),Oe=function(e){return e.Replacer=`erstatningsprodukter`,e.Related=`related-products`,e.BoughtTogether=`bought-together`,e.Comparable=`comparable-products`,e.Accesories=`accessories`,e.PairsWith=`pairs-with`,e.Model=`model`,e.Software=`software`,e}({}),k=function(e){return e.DefaultImages=`DEFAULT_IMAGES`,e.SecondaryModelImages=`SECONDARY_MODEL_IMAGES`,e.Video=`PRODUCT_VIDEOS`,e.UserManual=`user_manual`,e.Msds=`msds`,e.MainVideo=`main_video`,e.AdditionalImages=`additional_images`,e}({}),A=function(e){return e.Color=`COLOR`,e.Size=`SIZE`,e.WashingInstructions=`WASHING`,e.SizeGuide=`SIZE_GUIDE`,e.MetaTitle=`META_TITLE`,e.MetaTitleOverride=`META_TITLE_OVERRIDE`,e.MetaDescription=`META_DESCRIPTION`,e.MetaDescriptionOverride=`META_DESCRIPTION_OVERRIDE`,e.DefaultImagesText=`DEFAULT_IMAGES_TEXT`,e.SecondaryModelImagesText=`SECONDARY_MODEL_IMAGES_TEXT`,e.ProductUnavailable=`PRODUCT_UNAVAILABLE`,e.Volume=`volume`,e.SalesRepNo=`salesrep-discount-no`,e.ProductLayout=`productLayout`,e.KeyFeatures=`key_features`,e}({}),j=function(e){return e.Promotions=`PROMOTIONS`,e.DisplayFlags=`displayFlags`,e.Splashes=`splashes`,e.ProductStatus=`productStatus`,e.StepCampaigns=`stepCampaigns`,e.GiftCampaigns=`giftCampaigns`,e.PercentageCampaigns=`percentageCampaigns`,e}({}),M=function(e){return e.DiscontinuedAndVisible=`discontinuedAndVisible`,e.OnDemand=`onDemand`,e.PreOrder=`preOrder`,e.IsNew=`nyhet`,e.Hidden=`hidden`,e.HideProduct=`hideProduct`,e}({}),N=function(e){return e.BasketType=`basketType`,e.SalesRepComment=`salesRepComment`,e.SalesRepDiscount=`salesRepDiscount`,e.PossibleSalesRepGift=`possibleSalesRepGift`,e.PointShopProduct=`pointShop`,e.PointShopValue=`pointShopValue`,e.InvoiceNotice=`invoiceNotice`,e.Comment=`comment`,e.DataLayer=`datalayer`,e.CopiedFrom=`copiedFrom`,e.GlobalDiscount=`globalBasketItemDiscount`,e}({}),ke=function(e){return e.OrderProposal=`orderProposal`,e}({}),Ae=function(e){return e.Image=`image`,e.Video=`video`,e}({}),je=function(e){return e.Created=`CREATED`,e.Allocation=`ALLOCATION`,e.Confirmed=`CONFIRMED`,e.BackOrder=`BACK ORDER`,e.Reserved=`RESERVED`,e.Invoiced=`INVOICED`,e.Delivered=`DELIVERED`,e.PartlyDelivered=`PARTLY DELIVERED`,e.Cancelled=`CANCELLED`,e.Aborted=`ABORTED`,e}({}),P=function(e){return e.User=`user`,e.Admin=`admin`,e.Finance=`finance`,e.Sales=`sales`,e.CustomerSuccess=`customerSuccess`,e}({}),Me=()=>e().$algolia;function Ne(e){return Me()?.initIndex(e)}async function Pe({query:e,requestOptions:n,indexName:r,key:i}){let a=t(),o=r||a.public.algolia.globalIndex;if(!o)throw Error("`[@nuxtjs/algolia]` Cannot search in Algolia without `indexName`");let s=Ne(o);return await m(`${o}-async-search-result-${i??``}`,async()=>await s.search(e,n))}var Fe=`categoryFilters:-ev_acc`,Ie=class e{_Parametric;constructor(e){return this._Parametric=e,new Proxy(this,{get(e,t,n){return Reflect.has(e,t)?Reflect.get(e,t,n):Reflect.get(e._Parametric,t,n)}})}static create(t){return new e(t)}get pdpDisplayContent(){if(!this.showOnPdp)return[];
1switch(this._Parametric.type){case`multiple`:return this._Parametric.multipleValues?.filter(e=>e.image?.length??!1).map(e=>({image:e?.image??``,label:e?.name??``}))??[];case`list`:return[{image:this._Parametric.listValue?.image??``,label:this._Parametric.listValue?.name??``}];default:return[{image:this._Parametric?.image??``,label:this._Parametric?.name??``}]}}get showOnPdp(){switch(this._Parametric.type){case`multiple`:return this._Parametric.multipleValues?.some(e=>!!e.image?.length)??!1;case`list`:return!!this._Parametric.listValue?.image?.length;default:return!!this._Parametric.image?.length}}get data(){switch(this._Parametric.type){case`multiple`:return this._Parametric.multipleValues;case`list`:return this._Parametric.listValue?.name;default:return this._Parametric.value}}get value(){return this._Parametric.value??null}get listValue(){return this._Parametric.listValue??null}get multipleValues(){return this._Parametric.multipleValues??null}get code(){return this._Parametric.code}get name(){return this._Parametric.name}get description(){return this._Parametric.description}get type(){return this._Parametric.type}get groupCode(){return this._Parametric.groupCode}get groupName(){return this._Parametric.groupName}get image(){return this._Parametric.image}get uom(){return this._Parametric.uom}};function Le(){return{stripFlagSuffix:e=>{if(!e)return e;let t=$();return e?.replace(t?.filterSettings?.flagSuffix,``)},addFlagSuffix:e=>e&&e+($()?.filterSettings?.flagSuffix??``)}}var Re=`related_ctn`,ze=e=>e.replace(/[:/]/g,`_`);function Be(e){return typeof e==`string`?e.split(`;`).map(e=>ze(e.trim())).filter(Boolean):[]}function Ve(e){return Be(e?.find(e=>e.code===Re)?.value)}function He(e){return(e?.related_ctn??[]).flatMap(Be)}var{stripFlagSuffix:F}=Le(),Ue=class e{_ProductVariantRaw;constructor(e){return this._ProductVariantRaw=e,new Proxy(this,{get(e,t,n){return Reflect.has(e,t)?Reflect.get(e,t,n):Reflect.get(e._ProductVariantRaw,t,n)}})}static create(t){return new e(t)}get url(){return this._ProductVariantRaw.url}get status(){return this._ProductVariantRaw.status??``}get flags(){return this._ProductVariantRaw.flags??[]}get variantParametrics(){return this._ProductVariantRaw.definingParametrics}parametricByCode(e){return this._ProductVariantRaw.definingParametrics.find(t=>t.code===e)}get volume(){return this.parametricByCode(A.Volume)??null}get relatedCtns(){let e=He(this._ProductVariantRaw.parametricFilters);if(e.length)return e;let t=Ve(this._ProductVariantRaw.parametrics);return t.length?t:Ve(this._ProductVariantRaw.productParametrics)}get priceInfo(){return{price:this._ProductVariantRaw.priceInfo?.price??``,priceDisplay:this._ProductVariantRaw.priceInfo?.priceDisplay??``,priceBeforeDiscount:this._ProductVariantRaw.priceInfo?.priceBeforeDiscount??``,priceBeforeDiscountDisplay:this._ProductVariantRaw.priceInfo?.priceBeforeDiscountDisplay??``,priceBeforeVat:this._ProductVariantRaw.priceInfo?.priceBeforeVat??``,priceBeforeVatDisplay:this._ProductVariantRaw.priceInfo?.priceBeforeVatDisplay??``,priceBeforeDiscountBeforeVatDisplay:this._ProductVariantRaw.priceInfo?.priceBeforeDiscountBeforeVatDisplay??``,vatRate:this._ProductVariantRaw.priceInfo?.vatRate??0,isOnSale:this._ProductVariantRaw.priceInfo?.isOnSale??this._ProductVariantRaw.priceInfo?.price!==this._ProductVariantRaw.priceInfo?.priceBeforeDiscount}}get isActive(){return this.status===De.Active}get isComing(){return this.status===De.Coming}get isExpired(){return this.status===De.Expired}get isHidden(){return this.status===De.Hidden}getStockStatusByWarehouse(e){return this._ProductVariantRaw.stockStatuses.find(t=>t.warehouse?.code===e)??null}getStockValueByWarehouse(e){return this.getStockStatusByWarehouse(e)?.inStock??0}get stockStatus(){return this._ProductVariantRaw.stockStatuses[0]??null}get standardStockStatus(){return this._ProductVariantRaw.stockStatuses.find(e=>e.warehouse?.code===Ee.Standard)??this._ProductVariantRaw.stockStatuses[0]??null}get stockValue(){return this.standardStockStatus?.inStock??0}get isInStock(){return this.stockValue>0}get hasIncomingDate(){let e=new Date().toISOString().split(`T`)[0]??``;return this._ProductVariantRaw.stockStatuses?.some(t=>t.estimatedDelivery&&t.estimatedDelivery>e)??!1}get incomingDate(){let e=new Date().toISOString().split(`T`)[0]??``,t=this._ProductVariantRaw.stockStatuses.filter(t=>t.estimatedDelivery&&t.estimatedDelivery>e).map(e=>e.estimatedDelivery.split(`T`)[0]).sort();return t.length?t[0]??null:null}get isSoldOut(){return!this.stockValue&&!this.incomingDate}get isTempSoldOut(){return this.isActive&&this.stockValue<1&&this.hasIncomingDate}get canAddToCart(){return $().getAllowBackorders||this.isInStock||this.isPreOrderProduct||this.isOnDemandProduct}get isPreOrderProduct(){return(this.isComing||this.isActive)&&this.hasIncomingDate&&this.flags.some(e=>F(e.type)===M.PreOrder)}get isOnDemandProduct(){return this.isActive&&this.flags.some(e=>F(e.type)===M.OnDemand)}get productHasExpired(){return(this.isActive||this.isExpired||this.isHidden)&&this.flags.some(e=>F(e.type)===M.DiscontinuedAndVisible)}get percentageCampaigns(){return this._ProductVariantRaw.flags.filter(e=>F(e.groupCode)===j.PercentageCampaigns)}get stepCampaigns(){return this._ProductVariantRaw.flags.find(e=>F(e.groupCode)===j.StepCampaigns)}get giftCampaigns(){return this._ProductVariantRaw.flags.find(e=>F(e.groupCode)===j.GiftCampaigns)}get hasBuyMoreCampaign(){return!!this.stepCampaigns||this.percentageCampaigns.length>0}get hasFixedRecommendedQty(){return!!this._ProductVariantRaw.isRecommendedQtyFixed&&!!this._ProductVariantRaw.recommendedQty&&this._ProductVariantRaw.recommendedQty>0}get isOnSaleForUser(){return!1}relatedProductsByType(e){return console.log(`Using deprecated method - always return empty. Type: `+e),[]}};function We(e){return e.image??``}function Ge(e,t,n){return e.image??t[n]?.image??``}function Ke(e){let t=[];return e.image&&e.image!==``&&t.push(e.image),t.map(e=>({file:e,type:`image`}))}function qe(e){return e?.mediaSets?.find(e=>e.code===k.AdditionalImages)?.media?.filter(e=>e.type===Ae.Image).map(e=>e.url)??[]}function Je(e,t=k.DefaultImages,n,r=1e3,i=1){let a=qe(n);n?.image&&a.unshift(n.image);let o=[],s=a.map(e=>({file:e,type:`image`}));if(t===k.DefaultImages){let t=e.mediaSets?.filter(e=>e.code===k.Video||e.code===k.MainVideo);t&&t.length&&(o=t.map(t=>({file:e.image??``,linkedVideo:t.media[0]?.url??``,type:`image`})))}if(s.length>0&&o.length>0){let e=i>s.length?s.length:i;return s.splice(e,0,...o),s.slice(0,r)}let c=o.concat(s);return c.length===0&&e.image?[{file:e.image,type:`image`}]:c.slice(0,r)}function Ye(e){let t=We(e),n=t===``?[]:[t],r=e.mediaSets.find(e=>e.code===k.AdditionalImages);if(r){let e=r.media?.filter(e=>e.type===Ae.Image).map(e=>e.url)??[];return n.concat(e)}return n}function Xe(e,t){let n=[];return e.mediaSets.filter(e=>
1e.code===t(k.Msds)||e.code===t(k.UserManual)).forEach(e=>{let t=e.media.filter(e=>e.type===Ae.Image).map(e=>e.url)[0]??``;t&&n.push({url:t,label:e.title})}),n}function Ze(e,t,n){let r=[];return(Array.isArray(e.flags)?e.flags:[]).forEach(e=>{n(e.groupCode)===j.DisplayFlags&&r.push(e)}),t.length>0&&[M.PreOrder,M.DiscontinuedAndVisible,M.OnDemand].forEach(e=>{let n=t.filter(t=>t.flags?.find(t=>t.code===e));n.length===t.length&&r.push({code:e,text:n[0]?.flags?.filter(t=>t.code===e)[0]?.text??``})}),r}function Qe(e,t){return e.flags.filter(e=>t(e.groupCode)===j.Splashes)??[]}function $e(e,t){return(e.flags?.filter(e=>t(e.code)===M.IsNew)?.length??0)>0}function et(e,t){return(e.variantFlags?.filter(e=>t(e.code)===M.Hidden)?.length??0)>0}function tt(e,t){return(e.variantFlags?.filter(e=>t(e.groupCode)===j.PercentageCampaigns)?.length??0)>0}function nt(e,t){return(e.variantFlags?.filter(e=>t(e.groupCode)===j.StepCampaigns)?.length??0)>0}function rt(e,t){return(e.variantFlags?.filter(e=>t(e.groupCode)===j.GiftCampaigns)?.length??0)>0}function it(e,t){return tt(e,t)||nt(e,t)||rt(e,t)}function at(e){return!!e.find(e=>e.code===A.MetaTitleOverride)}function ot(e){let t=e.find(e=>e.code===A.MetaTitleOverride)?.data;return t&&t.length?t:e.find(e=>e.code===A.MetaTitle)?.description??null}function st(e){let t=e.shortDescription;if(t){let e=t.replace(/(<([^>]+)>)/gi,``).trim();if(e.length>0)return e}let n=e.description;if(n){let e=n.replace(/(<([^>]+)>)/gi,``).trim();if(e.length>0)return e.slice(0,100)}return``}function ct(e){let t={definingParametrics:e.variantDefiningParametrics,flags:e.variantFlags,isIncludedInStru
1ctureArticle:e.isIncludedInStructureArticle,isPrimary:e.isPrimary,isRecommendedQtyFixed:e.isRecommendedQtyFixed,isStructureArticle:e.isStructureArticle,mediaSets:e.mediaSets,name:e.variantName,parametricFilters:e.parametricFilters,parametrics:e.variantParametrics,partNo:e.partNo,priceFetchPartNo:e.priceFetchPartNo,priceInfo:e.variantPriceInfo,productParametrics:e.parametrics,recommendedQty:e.recommendedQty,sort:e.sort,status:e.variantStatus,stockStatuses:e.variantStockStatuses,structureArticlePartNumbers:e.structureArticlePartNumbers,structureArticleProducts:e.structureArticleProducts,structureArticles:null,url:e.variantUrl};return e.variantImage&&(t.image=e.variantImage),t}function lt(e){let t=[];return e.forEach(e=>{let n=t.findIndex(t=>t.groupById===e.groupById);n===-1?t.push({groupById:e.groupById,variants:[e]}):t[n]?.variants.push(e)}),t}function ut(e){let t=e.findIndex(e=>e.isPrimary);return t===-1?0:t}function dt(e){return(t,n)=>e.indexOf(t.partNo)-e.indexOf(n.partNo)}var{stripFlagSuffix:I,addFlagSuffix:ft}=Le(),pt=class t{_ProductRaw;variants;primaryVariant=0;limitedVariantLoaded=!1;constructor(e,t=!1){let n=ut(e);this._ProductRaw=e[n],this.limitedVariantLoaded=t;let r=dt(this._ProductRaw.partNumbers);this.variants=e.map(e=>Ue.create(ct(e))).sort(r);let i=this.variants.findIndex(e=>e.isPrimary);return this.primaryVariant=i===-1?0:i,new Proxy(this,{get(e,t,n){return Reflect.has(e,t)?Reflect.get(e,t,n):Reflect.get(e._ProductRaw,t,n)}})}static create(e,n=!1){return Array.isArray(e)||(e=[e]),new t(e,n)}get partNo(){return this._ProductRaw.partNo}get priceFetchPartNo(){return this.variants[0]?.priceFetchPartNo??this._ProductRaw.priceFetchPartNo}get color(){return this._ProductRaw.colorInfo?.name}get relatedProducts(){return this._ProductRaw.relatedProducts??[]}get mainImage(){return We(this._ProductRaw)}get listImage(){return Ge(this._ProductRaw,this.variants,this.primaryVariant)}get mainProductImage(){return Ke(this._ProductRaw)}imagesAndVideo(e=k.DefaultImages,t,n=1e3,r=1){return Je(this._ProductRaw,e,t,n,r)}additionalImages(e){return qe(e)}get imageList(){return Ye(this._ProductRaw)}get documentList(){return Xe(this._ProductRaw,ft)}get productCardDisplayFlags(){let e=this.displayFlags.concat(this.splashes);return this._ProductRaw.isStructureArticle&&(e=e.filter(e=>e.code!==M.PreOrder)),e}get displayFlags(){let t=[];if(this.extendedLayout)try{let{$t:n}=e();t.push({code:`colorMap`,text:n(`productList.flags.colorMap`),background:`#000000`})}catch{}let n=Ze(this._ProductRaw,this.variants,I);return t.concat(n)}get splashes(){return Qe(this._ProductRaw,I)}get isNewProduct(){return $e(this._ProductRaw,I)}get isHiddenProduct(){return et(this._ProductRaw,I)}get isPercentageCampaign(){return tt(this._ProductRaw,I)}get isStepCampaigns(){return nt(this._ProductRaw,I)}get isGiftCampaign(){return rt(this._ProductRaw,I)}get isCampaign(){return it(this._ProductRaw,I)}get hasOverrideMetaTitle(){return at(this.parametrics)}get metaTitle(){return ot(this.parametrics)}get metaDescription(){return st(this._ProductRaw)}get sizes(){return this.variants}get mainVariant(){let e=this.variants.find(e=>e.partNo===this._ProductRaw.partNo);return e?Ue.create(e):null}get primaryVariantUrl(){return this._ProductRaw.defaultUrl??this.variants.find(e=>e.isPrimary)?.url??this._ProductRaw.url}variantByUrl(e){return this.variants.find(t=>t.url===e)||this.variants[this.primaryVariant]}get allVariantDefiningParametrics(){let e=[];
1return this.variants.forEach(t=>{t.definingParametrics.forEach(t=>{let n=e.findIndex(e=>e.code===t.code),r=JSON.parse(JSON.stringify(t)),i=null;if(r.value?i=[{name:r.value.toString(),code:r.value.toString(),uom:r.uom}]:r.listValue?i=[r.listValue]:r.multipleValues&&(i=r.multipleValues),i){if(n===-1)e.push({name:r.name,code:r.code,values:i});else{let t=r.value?[{name:r.value.toString(),code:r.value.toString(),uom:r.uom}]:r.listValue?[r.listValue]:r.multipleValues;e[n]&&(e[n].values=e[n]?.values.concat(t??[]))}}})}),e.filter(e=>e.code!==null).map(e=>({...e,values:e.values.filter((e,t,n)=>n.findIndex(t=>t?.name===e?.name)===t)}))}get parametrics(){return this._ProductRaw.parametrics?.map(e=>Ie.create(e))??[]}get displayParametrics(){return this.parametrics.filter(e=>e.data)}parametricByCode(e){return this._ProductRaw.parametrics?.find(t=>t.code===e)}get productUnavailable(){return this.parametricByCode(A.ProductUnavailable)?.value??!1}get hideProduct(){return this._ProductRaw.flagFilters?.includes(M.HideProduct)??!1}get volume(){return this.parametricByCode(A.Volume)??null}get characteristics(){return this.parametricByCode(A.Characteristics)??[]}get extendedLayout(){return this.parametricByCode(A.ProductLayout)?.listValue?.code===`extended`}get keyFeatures(){let e=this.parametricByCode(A.KeyFeatures)?.value;return typeof e==`string`&&e.trim()?e:null}get relatedCtns(){let e=[...this.variants.flatMap(e=>e.relatedCtns),...Ve(this._ProductRaw.parametrics)],t=new Set;return e.filter(e=>{let n=e.toLowerCase();return!t.has(n)&&(t.add(n),!0)})}get priceInfo(){return{price:this._ProductRaw.priceInfo?.price??``,priceDisplay:this._ProductRaw.priceInfo?.priceDisplay??``,priceBeforeDiscount:this._ProductRaw.priceInfo?.priceBeforeDiscount??``,priceBeforeDiscountDisplay:this._ProductRaw.priceInfo?.priceBeforeDiscountDisplay??``,priceBeforeVat:this._ProductRaw.priceInfo?.priceBeforeVat??``,priceBeforeVatDisplay:this._ProductRaw.priceInfo?.priceBeforeVatDisplay??``,priceBeforeDiscountBeforeVatDisplay:this._ProductRaw.priceInfo?.priceBeforeDiscountBeforeVatDisplay??``,vatRate:this._ProductRaw.priceInfo?.vatRate??0,isOnSale:this._ProductRaw.priceInfo?.isOnSale??this._ProductRaw.priceInfo?.price!==this._ProductRaw.priceInfo?.priceBeforeDiscount}}relatedProductsByType(e){return this.relatedProducts?.filter(t=>t.code===e)?.map(e=>e.partNo)??[]}};function L(e,t={}){let{limitedVariantLoaded:n=!1}=t,r=Array.isArray(e)?e:[e];return pt.create(r,n)}function mt(e,t={}){let{partNosRequested:n=[],urlsRequested:r=[],limitedVariantLoaded:i=!1}=t;return lt(e).map(e=>{let t=L(e.variants,{limitedVariantLoaded:i}),a={partNoRequested:``,urlRequested:``,groupById:e.groupById,product:t};if(n.length>0){let e=t.partNumbers.find(e=>n.includes(e));e&&(a.partNoRequested=e)}else if(r.length>0){let e=t.urls.find(e=>r.includes(e));e&&(a.urlRequested=e)}return a})}o();var ht=n(null),gt=n(null),_t=n(null),R=n(!1),vt=3e5,yt=new Map,bt=new Map,xt=e=>Array.isArray(e)?`[${e.map(e=>xt(e)).join(`,`)}]`:e&&typeof e==`object`?`{${Object.keys(e).sort().map(t=>`${JSON.stringify(t)}:${xt(e[t])}`).join(`,`)}}`:JSON.stringify(e);function z(){let e=async e=>a(e),t=async(e,t=``)=>a(null,e,t),n=async e=>a(e),r=async e=>{let t={distinct:0};return t.filters=`(partNo:`+e.join(` OR partNo:`)+`)`,p(t)},i=async(e,t=``)=>a(null,e,t),a=async(e=null,t=null,n=``)=>{let r={distinct:0};if(e)r.filters=Array.isArray(e)?`(partNumbers:`+e.join(` OR partNumbers:`)+`)`:`partNumbers: `+e;else if(t)r.filters=Array.isArray(t)?`(urls:`+t.join(` OR urls:`)+`)`:`urls:`+t;else return console.warn(`getProduct called without partNo or url`),null;return p(r,n)},o=(e,t=[],n=[],r=!1)=>mt(e,{partNosRequested:t,urlsRequested:n,limitedVariantLoaded:r}),s=async e=>{let t=Array.isArray(e)?{filters:`structureArticlePartNumbers:`+e.join(` OR structureArticlePartNumbers:`)}:{filters:`isStructureArticle: true AND structureArticlePartNumbers:`+e};return p(t)},c=async(e,t)=>{let n={filters:`brandFilters:`+e+` AND categoryFilters:`+t.join(` OR categoryFilters:`)};return p(n)},l=async(e,t=24,n=``,r=!1,i=!1)=>{let a={query:e,hitsPerPage:t,facetFilters:i?[[`flagFilters:-hideProduct`],[`hasImage:true`]]:[[`flagFilters:-hideProduct`]],optionalFilters:[Fe]};return r&&(a.distinct=0),p(a,``,n)},u=async(e=24)=>p({hitsPerPage:e,facetFilters:[[`flagFilters:-hideProduct`]]}),d=(e,t,n)=>{let r=$(),i=X(),a=JSON.parse(JSON.stringify(e));t===``&&(t=r.getAlgoliaIndex+n);let o=D(`randomId`,{maxAge:31536e3});
1o.value&&(a.userToken=o.value),a.clickAnalytics=!0,a.hitsPerPage||=1e3;let s=`(variantStatus:active OR variantStatus:coming OR variantStatus:expiring) `;if(!i.loggedIn)r.domainMap?.showNonPublicProducts||(s+=`AND isPublic:true `);else if(!r.domainMap?.showNonPublicProducts){let e=(i.userProfile.pricelistIds??[]).map(e=>`availableOnPricelists:${e}`);e.length?s+=`AND (${e.join(` OR `)}) `:s+=`AND isPublic:true `}return a.filters&&a.filters.trim()!==``&&s.trim()!==``?a.filters=s+` AND `+a.filters:s.trim()!==``&&(a.filters=s),{requestOptionsResolved:a,indexName:t,globalContent:r,userStore:i}},f=async(e,t=``,n=``)=>{let{requestOptionsResolved:r,indexName:i,globalContent:a,userStore:o}=d(e,t,n);try{R.value=!0;let e=await Ne(i).search(``,r);if(e){_t.value=e;try{if(a.getB2cEnabled&&a.getIsB2c||a.getShowNotLoggedInPrices&&a.getIsB2b){let t=e?.hits?.map(e=>({partNo:e.partNo,priceInfo:e.priceInfo}));o.addUserPrices(t)}}catch(e){console.warn(`Could not access user context for price population:`,e)}return e}return null}catch(e){return console.error(`Client-side Algolia fetch error:`,e),ht.value=e,null}finally{R.value=!1}},p=async(e,t=``,n=``)=>{let r=$(),i=X(),a=JSON.parse(JSON.stringify(e));t===``&&(t=r.getAlgoliaIndex+n);try{R.value=!0;let n=D(`randomId`,{maxAge:31536e3});n.value&&(a.userToken=n.value),a.clickAnalytics=!0,a.hitsPerPage||=1e3;let o=`(variantStatus:active OR variantStatus:coming OR variantStatus:expiring) `;if(!i.loggedIn)r.domainMap?.showNonPublicProducts||(o+=`AND isPublic:true `);else if(!r.domainMap?.showNonPublicProducts){let e=(i.userProfile.pricelistIds??[]).map(e=>`availableOnPricelists:${e}`);e.length?o+=`AND (${e.join(` OR `)}) `:o+=`AND isPublic:true `}a.filters&&a.filters.trim()!==``&&o.trim()!==``?a.filters=o+` AND `+a.filters:o.trim()!==``&&(a.filters=o);let s={...a};delete s.userToken,delete s.clickAnalytics;let c=`algolia:${t}:${xt(s)}`,l=yt.get(c);if(l){if(Date.now()-l.ts<vt)return _t.value=l.data,l.data;yt.delete(c)}let u=bt.get(c);if(u)return await u;let d=(async()=>{let{data:n,error:o}=await Pe({query:``,requestOptions:a,key:`algolia-${t}-${xt(s)}`,indexName:t});if(o?.value)return ht.value=o.value,gt.value=500,null;if(n?.value){if((e.hitsPerPage??1)>1e3&&n.value.nbHits>1e3){let e=_();console.warn(`More product variants than can be loaded`),e.setTemporaryError(`Couldn\'t load all product(variant)s. ${n.value.nbHits} total of max 1000`,0)}_t.value=n.value,yt.set(c,{ts:Date.now(),data:n.value});try{if(r.getB2cEnabled&&r.getIsB2c||r.getShowNotLoggedInPrices&&r.getIsB2b){let e=n.value?.hits?.map(e=>({partNo:e.partNo,priceInfo:e.priceInfo}));i.addUserPrices(e)}}catch(e){console.warn(`Could not access user context for price population:`,e)}return n.value}return null})();bt.set(c,d);try{return await d}finally{bt.delete(c)}}catch(e){return console.error(e),null}finally{R.value=!1}},m=async(e=null,t=null,n=``)=>{let r={distinct:0};if(e)r.filters=Array.isArray(e)?`(partNumbers:`+e.join(` OR partNumbers:`)+`)`:`partNumbers: `+e;else if(t)r.filters=Array.isArray(t)?`(urls:`+t.join(` OR urls:`)+`)`:`urls:`+t;else return console.warn(`getProductsClient called without partNo or url`),null;return f(r,n)};return{getProductByPartNo:e,getProductsByPartNo:n,getProductsByPartNoClient:async e=>m(e),getProductByUrl:t,getProductsByUrl:i,convertRawToProducts:o,getBundleProducts:s,getProductByBrandAndCategory:c,pending:R,freeTextSearch:l,getPopularProducts:u,getFromAlgolia:p,getFromAlgoliaClient:f,getExactVariantByPartNo:r,lastError:ht,lastErrorCode:gt}}var St=g(`productStore`,{state:()=>({priceHistory:[],batchTrackProducts:[],backorderNotices:[]}),actions:{async loadPriceHistory(e){let{apiGet:t,lastError:n}=O();if(this.priceHistory.find(t=>t.partNo===e))return!0;let r=await t(`/products/${e}/price-history`,null,!1);return r?(this.priceHistory.push({partNo:e,prices:r.prices?.filter(e=>parseInt(e.price,10)!==0).reverse()}),!0):(console.error(n),!1)},async getRelatedProducts(e){let{getProductsByPartNo:t}=z();return await t(e).then(e=>!e||!e.hits.length?[]:mt(e.hits).map(e=>e.product))},async getRelatedProductsClient(e){let{getProductsByPartNoClient:t}=z();return await t(e).then(e=>!e||!e.hits.length?[]:mt(e.hits).map(e=>e.product))},async getProductBrandRelatedProducts(e){let{getProductByBrandAndCategory:t}=z(),n=e.categories.map(e=>e.code);return await t(e.brand.code,n).then(t=>t&&t.hits?t.hits.map(e=>L(e)).filter(t=>t.partNo!==e.partNo):[])},async sendProductImpression(e){let{apiPost:t,lastError:n}=O();return await t(`/products/${e}/product-impressions`)?!0:(console.error(n),!1)},async fetchBackorderNotice(e){let t=$(),n=X();if(t.getAllowBackorders){let{apiGet:t,lastError:r}=O();if(this.backorderNotices.find(t=>t.productNo===e&&t.customerNo.toString()===n.userProfile.company.code))return!0;let i=await t(`/products/${e}/backorder-notice`,null,!1);return i?(this.backorderNotices=this.backorderNotices.filter(t=>t.productNo!==e&&t.customerNo.toString()===n.userProfile.company.code).concat(i),!0):(console.error(r),!1)}},batchTrack(e){this.batchTrackProducts.push(e),this.batchTrackProducts.length>=5&&this.sendBatch()},sendBatch(){let e=$();this.batchTrackProducts.length>0&&(wt({event:`view_item_list`,ecommerce:{currency:e.getCurrency,items:this.batchTrackProducts}}),this.batchTrackProducts=[])}},getters:{getPriceHistoryLowest:t=>n=>{let{$toNumber:r}=e(),i=t.priceHistory.find(e=>e.partNo===n);return i&&i.prices.length?i.prices.sort((e,t)=>
1r(e.price)-r(t.price))[0]:null}}}),Ct={mounted:(e,t)=>{let n=St();t.value.product?new IntersectionObserver((e,r)=>{let i=L(t.value.product);e.forEach(e=>{let a=B(i,1,t.value.index);t.value.pageName&&(a.item_list_name=t.value.pageName,a.item_list_id=t.value.pageId+``),e.intersectionRatio>0&&window.dataLayer&&(n.batchTrack(a),r.unobserve(e.target))})},{threshold:.5}).observe(e):console.warn(`Used tracking directive without value`)}},wt=e=>{let n=D(`randomId`,{maxAge:31536e3}),r=t();if(e.algoliaUserToken=n.value||``,window.dataLayer)window.dataLayer.push(e);else{let e=oe(window.location.host,window.location.pathname);r.public?.gtm?.enabled&&ce(e)&&console.warn(`attempted useTracking pushDataLayer without datalayer`)}},Tt=(e,t,n={})=>{let r=$();wt({event:e,ecommerce:{...n,currency:r.getCurrency,items:t}})},Et=(e,t={})=>{let n=Y(),r=[];!t.value&&n.cart.summary?.price&&(t.value=n.cart.summary.price),n.cart.items.forEach((e,t)=>{r.push(B(e,e.quantity,t+1))}),Tt(e,r,t)},Dt=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>t!==null)),B=(e,t=1,n=1)=>{let r=``;e.colorInfo?.code&&(r=e.colorInfo.code);let i={};return i=e.dataLayer?{...e.dataLayer,quantity:t,index:n}:{item_name:e.name,item_id:e.partNo,item_variant:r,price:e.priceInfo.price,quantity:t,index:n,item_brand:e.brand?.code||``},e.categories?.map(e=>e.name).slice(0,4).forEach((e,t)=>{i[`item_category${t>0?t+1:``}`]=e}),Dt(i)},Ot=(e,t=`button_click`,n=null,r=null)=>{let i=X(),a={event:t,user_type:`client`};i.isSalesRepUser&&(a.user_type=`sales_rep`),i.isCustomerSuccessUser&&(a.user_type=`customer_support`),n&&(a.link_url=n),r&&(a.link_text=r);let o=e?.target;if(o){let e=o.classList.value,t=o.textContent?.trim(),i=o.getAttribute(`data-tracking-class`);i&&(e=i),!n&&o instanceof HTMLAnchorElement&&(a.link_url=o.href),e!==``&&(a.link_classes=e),!r&&t&&t!==``&&(a.link_text=t)}wt(a)},kt=`2.17.3`;function V(e){return e.reduce(function(e,t){var n=e.events,e=e.additionalParams;return`index`in t?{additionalParams:e,events:n.concat([t])}:{events:n,additionalParams:t}},{events:[],additionalParams:void 0})}var At=function(){try{return!!navigator.cookieEnabled}catch{return!1}},jt=function(){try{return!!navigator.sendBeacon}catch{return!1}},Mt=function(){try{return!!XMLHttpRequest}catch{return!1}},Nt=function(){try{return fetch!==void 0}catch{return!1}},H=function(){};function Pt(){try{var e=`__test_localStorage__`;return globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),globalThis.localStorage}catch{}}H.get=function(e){var t=(t=this.store)?.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch{return null}},H.set=function(e,t){var n;try{(n=this.store)!=null&&n.setItem(e,JSON.stringify(t))}catch{console.error(`Unable to set `+e+` in localStorage, storage may be full.`)}},H.remove=function(e){var t;(t=this.store)!=null&&t.removeItem(e)},H.store=Pt();var Ft=`AlgoliaObjectQueryCache`,It=5e3,Lt=1e3;function Rt(){return H.get(Ft)??{}}function zt(e){H.set(Ft,Bt(e))}function Bt(e){return Object.keys(e).length>It?Vt(e):e}function Vt(e){return e=Object.entries(e).sort(function(e,t){return e=e[1][1],t[1][1]-e}),e.slice(0,e.length-Lt-1).reduce(function(e,t){var n=t[0],t=t[1];return Object.assign(Object.assign({},e),((e={})[n]=t,e))},{})}function Ht(e,t){return e+`_`+t}function Ut(e,t,n){var r=Rt();r[Ht(e,t)]=[n,Date.now()],zt(r)}function Wt(e,t){return Rt()[Ht(e,t)]}function Gt(e,t){var n=Rt();t.forEach(function(t){delete n[Ht(e,t)]}),zt(n)}var U=function(e){return e===void 0},Kt=function(e){return typeof e==`number`},W=function(e){return typeof e==`function`},qt=function(e){return typeof e?.then==`function`};function Jt(e){return function(t){for(var n=[],r=arguments.length-1;0<r--;)n[r]=arguments[r+1];if(t&&W(e[t]))return e[t].apply(e,n);console.warn("The method `"+t+"` doesn't exist.")}}var Yt=[`insights-js (`+kt+`)`,`insights-js-browser-esm (`+kt+`)`];function Xt(e){this._ua.indexOf(e)===-1&&this._ua.push(e)}function Zt(e){return W(e)&&e(this.version),this.version}function Qt(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function $t(e){return e.map(function(e){var t,n;return!en(e)||(t=[],n=(n=e.objectIDs)?.map(function(n,r){var i=(i=e.objectData)?.[r];return i!=null&&i.queryID?i:((r=((r=Wt(e.index,n))??[])[0])&&t.pu
1sh(n),Object.assign(Object.assign({},i),{queryID:r}))}),t.length===0)?e:Object.assign(Object.assign({},e),{objectData:n,objectIDsWithInferredQueryID:t})})}function en(e){return!e.queryID&&e.eventType===`conversion`}function tn(e){return function(t,n){var r=this;if(this._userHasOptedOut)return Promise.resolve(!1);if(!(!U(this._apiKey)&&!U(this._appId)||(i=n?.headers)?.[`X-Algolia-Application-Id`]&&(i=n?.headers)?.[`X-Algolia-API-Key`]))throw Error(`Before calling any methods on the analytics, you first need to call the 'init' function with appId and apiKey parameters or provide custom credentials in additional parameters.`);!this._userToken&&this._anonymousUserToken&&this.setAnonymousUserToken(!0);var i=(n!=null&&n.inferQueryID?$t(t):t).map(function(e){var t=e.filters,n=Qt(e,[`filters`]),e=Object.assign(Object.assign({},n),{userToken:(n=e?.userToken)??r._userToken,authenticatedUserToken:(n=e?.authenticatedUserToken)??r._authenticatedUserToken});return U(t)||(e.filters=t.map(encodeURIComponent)),e});return i.length===0?Promise.resolve(!1):(t=rn(e,this._ua,this._endpointOrigin,i,this._appId,this._apiKey,n?.headers),qt(t)?t.then(nn(i)):t)}}function nn(e){return function(t){return t&&e.filter(function(e){var t=e.eventType,n=e.eventSubtype,e=e.objectIDs;return t===`conversion`&&n===`purchase`&&e?.length}).forEach(function(e){return Gt(e.index,e.objectIDs)}),t}}function rn(e,t,n,r,i,a,o){var s=(o=o===void 0?{}:o)[`X-Algolia-Application-Id`],c=o[`X-Algolia-API-Key`],o=Qt(o,[`X-Algolia-Application-Id`,`X-Algolia-API-Key`]),l=Object.assign({"X-Algolia-Application-Id":s??i,"X-Algolia-API-Key":c??a,"X-Algolia-Agent":encodeURIComponent(t.join(`; `))},o);return e(n+`/1/events?`+Object.keys(l).map(function(e){return e+`=`+l[e]}).join(`&`),{events:r})}function an(){return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(e){var t=16*Math.random()|0;return(e===`x`?t:3&t|8).toString(16)})}var on=`_ALGOLIA`,sn=2592e6,cn=function(e,t,n){var r=new Date,n=(r.setTime(r.getTime()+n),`expires=`+r.toUTCString());document.cookie=e+`=`+t+`;`+n+`;path=/`},ln=function(e){for(var t=e+`=`,n=document.cookie.split(`;`),r=0;r<n.length;r++){for(var i=n[r];i.charAt(0)===` `;)i=i.substring(1);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return``};function un(e){return typeof e!=`number`&&e.indexOf(`anonymous-`)===0}function dn(){var e=ln(on);!this._userToken||e&&e!==``&&e.indexOf(`anonymous-`)===0||cn(on,this._userToken,this._cookieDuration)}function fn(e){(e=e!==void 0&&e)?this.setUserToken(`anonymous-`+an()):At()&&((e=ln(on))&&e!==``&&e.indexOf(`anonymous-`)===0?this.setUserToken(e):(e=this.setUserToken(`anonymous-`+an()),cn(on,e,this._cookieDuration)))}function pn(e){return this._userToken=e,W(this._onUserTokenChangeCallback)&&this._onUserTokenChangeCallback(this._userToken),this._userToken}function mn(e,t){return W(t)&&t(null,this._userToken),this._userToken}function hn(e,t){this._onUserTokenChangeCallback=e,t&&t.immediate&&W(this._onUserTokenChangeCallback)&&this._onUserTokenChangeCallback(this._userToken)}function gn(e){return this._authenticatedUserToken=e,W(this._onAuthenticatedUserTokenChangeCallback)&&this._onAuthenticatedUserTokenChangeCallback(this._authenticatedUserToken),this._authenticatedUserToken}function _n(e,t){return W(t)&&t(null,this._authenticatedUserToken),this._authenticatedUserToken}function vn(e,t){this._onAuthenticatedUserTokenChangeCallback=e,t&&t.immediate&&W(this._onAuthenticatedUserTokenChangeCallback)&&this._onAuthenticatedUserTokenChangeCallback(this._authenticatedUserToken)}function G(e,t){return t.map(function(t){return Object.assign({eventType:e},t)})}function yn(e,t,n){return n.map(function(n){return Object.assign({eventType:e,eventSubtype:t},n)})}function bn(){for(var e=this,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=V(t),i=r.events,r=r.additionalParams;return i.forEach(function(t){var n=t.index,r=t.queryID;return t.objectIDs.forEach(function(t){return!e._userHasOptedOut&&Ut(n,t,r)})}),this.sendEvents(G(`click`,i),r)}function xn(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=V(e),r=n.events,n=n.additionalParams;return this.sendEvents(G(`click`,r),n)}function Sn(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=V(e),r=n.events,n=n.additionalParams;return this.sendEvents(G(`click`,r),n)}function Cn(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=V(e),r=n.events,n=n.additionalParams;return this.sendEvents(G(`conversion`,r),n)}function wn(){for(var e=this,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=V(t),i=r.events,r=r.additionalParams;
1return i.forEach(function(t){var n=t.index,r=t.queryID,i=t.objectIDs,a=t.objectData;return i.forEach(function(t,i){i=(i=(i=a?.[i])?.queryID)??r,!e._userHasOptedOut&&i&&Ut(n,t,i)})}),this.sendEvents(yn(`conversion`,`addToCart`,i),r)}function Tn(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=V(e),r=n.events,n=n.additionalParams;return this.sendEvents(yn(`conversion`,`purchase`,r),n)}function En(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=V(e),r=n.events,n=n.additionalParams;return this.sendEvents(G(`conversion`,r),n)}function Dn(){for(var e=this,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=V(t),i=r.events,r=r.additionalParams;return i.forEach(function(t){var n=t.index,r=t.objectIDs,i=t.objectData;return r.forEach(function(t,r){r=(r=i?.[r])?.queryID,!e._userHasOptedOut&&r&&Ut(n,t,r)})}),this.sendEvents(yn(`conversion`,`addToCart`,i),r)}function On(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=V(e),r=n.events,n=n.additionalParams;return this.sendEvents(yn(`conversion`,`purchase`,r),n)}function kn(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=V(e),r=n.events,n=n.additionalParams;return this.sendEvents(G(`conversion`,r),n)}var An=[`de`,`us`];function jn(e){var t;if(!U((e=e===void 0?{}:e).region)&&An.indexOf(e.region)===-1)throw Error(`optional region is incorrect, please provide either one of: `+An.join(`, `)+`.`);if(!(U(e.cookieDuration)||Kt(e.cookieDuration)&&isFinite(e.cookieDuration)&&Math.floor(e.cookieDuration)===e.cookieDuration))throw Error(`optional cookieDuration is incorrect, expected an integer.`);Mn(this,e,{_userHasOptedOut:!!e.userHasOptedOut,_region:e.region,_host:e.host,_anonymousUserToken:(t=e.anonymousUserToken)==null||t,_useCookie:(t=e.useCookie)!=null&&t,_cookieDuration:e.cookieDuration||6*sn}),this._endpointOrigin=this._host||(this._region?`https://insights.`+this._region+`.algolia.io`:`https://insights.algolia.io`),this._ua=[].concat(Yt),e.authenticatedUserToken&&this.setAuthenticatedUserToken(e.authenticatedUserToken),e.userToken?this.setUserToken(e.userToken):this._userToken||this._userHasOptedOut||!this._useCookie?Nn(this)&&this.saveTokenAsCookie():this.setAnonymousUserToken()}function Mn(e,t,n){var r=t.partial,i=Qt(t,[`partial`]);r||Object.assign(e,n),Object.assign(e,Object.keys(i).reduce(function(e,t){return Object.assign(Object.assign({},e),((e={})[`_`+t]=i[t],e))},{}))}function Nn(e){return e._userToken!==void 0&&un(e._userToken)&&e._useCookie&&!e._userHasOptedOut}function Pn(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=V(e),r=n.events,n=n.additionalParams;return this.sendEvents(G(`view`,r),n)}function Fn(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=V(e),r=n.events,n=n.additionalParams;return this.sendEvents(G(`view`,r),n)}var In=function(e){e=e.requestFn,this._endpointOrigin=`https://insights.algolia.io`,this._anonymousUserToken=!0,this._userHasOptedOut=!1,this._useCookie=!1,this._cookieDuration=6*sn,this._ua=[],this.version=kt,this.sendEvents=tn(e).bind(this),this.init=jn.bind(this),this.addAlgoliaAgent=Xt.bind(this),this.saveTokenAsCookie=dn.bind(this),this.setUserToken=pn.bind(this),this.setAnonymousUserToken=fn.bind(this),this.getUserToken=mn.bind(this),this.onUserTokenChange=hn.bind(this),this.setAuthenticatedUserToken=gn.bind(this),this.getAuthenticatedUserToken=_n.bind(this),this.onAuthenticatedUserTokenChange=vn.bind(this),this.clickedObjectIDsAfterSearch=bn.bind(this),this.clickedObjectIDs=xn.bind(this),this.clickedFilters=Sn.bind(this),this.convertedObjectIDsAfterSearch=Cn.bind(this),this.purchasedObjectIDsAfterSearch=Tn.bind(this),this.addedToCartObjectIDsAfterSearch=wn.bind(this),this.convertedObjectIDs=En.bind(this),this.addedToCartObjectIDs=Dn.bind(this),this.purchasedObjectIDs=On.bind(this),this.convertedFilters=kn.bind(this),this.viewedObjectIDs=Pn.bind(this),this.viewedFilters=Fn.bind(this),this.getVersion=Zt.bind(this)};function Ln(e){var t,e=Jt(new In({requestFn:e}));if(typeof window==`object`&&!window.AlgoliaAnalyticsObject){for(;t=an(),window[t]!==void 0;);window.AlgoliaAnalyticsObject=t,window[window.AlgoliaAnalyticsObject]=e}return e.version=kt,e}var Rn=function(e,t){return new Promise(function(n,r){var i=JSON.stringify(t),a=new XMLHttpRequest;a.addEventListener(`readystatechange`,function(){a.readyState===4&&a.status===200?n(!0):a.readyState===4&&n(!1)}),a.addEventListener(`error`,function(){return r()}),a.addEventListener(`timeout`,function(){return n(!1)}),a.open(`POST`,e),a.setRequestHeader(`Content-Type`,`application/json`),a.send(i)})},zn=function(e,t){var n=JSON.stringify(t),n=navigator.sendBeacon(e,n);return Promise.resolve(!!n||Rn(e,t))},Bn=function(e,t){return new Promise(function(n,r){fetch(e,{method:`POST`,body:JSON.stringify(t),headers:{"Content-Type":`application/json`}}).then(function(e){n(e.status===200)}).catch(function(e){r(e)})})};function Vn(){if(jt())return zn;if(Mt())return Rn;if(Nt())return Bn;
1throw Error(`Could not find a supported HTTP request client in this environment.`)}var K=Ln(Vn()),q={id:``,norceBasketId:``,items:[],summary:{discount:``,discountDisplay:``,points:-1,price:``,priceBeforeVat:``,priceBeforeVatDisplay:``,priceBeforeDiscount:``,priceBeforeDiscountDisplay:``,priceDisplay:``,shipping:``,shippingBeforeVat:``,shippingBeforeVatDisplay:``,shippingDisplay:``,subtotal:``,subtotalBeforeVat:``,subtotalBeforeVatDisplay:``,subtotalDisplay:``,vat:``,vatDisplay:``,usedPoints:-1,additionalFees:void 0}},J=e=>![`30000`,`30001`].includes(e.partNo),Y=g(`cartStore`,{state:()=>({cartId:``,cartItems:0,cart:q,isLoading:!1,alternativeCart:q,isAlternativeLoading:!1,currentlyBuying:null,currentlyBuyingPrimaryVariant:!0,isBuyingUpsellProduct:!1,currentlyBuyingQuantity:0,justAddedPartNo:``,lastUpdate:0,shippingAddress:{companyName:``,firstName:``,lastName:``,street:``,zip:``,city:``,country:``,phone:``,email:``},billingAddress:{companyName:``,firstName:``,lastName:``,street:``,zip:``,city:``,country:``,phone:``,email:``},payerAddress:{companyName:``,firstName:``,lastName:``,street:``,zip:``,city:``,country:``,phone:``,email:``},deliveryMethods:[],paymentMethods:[],buyerCompanyName:null,loadingCart:!0,loadingCheckout:!0,loadingPurchase:!1,hasAttemptedPurchase:!1,acceptedNewsletter:!1,pointsUsed:0,pointsAvailable:-1,addedToCartCount:0,deboucedAddToCart:[],deboucedTimer:null}),getters:{items(e){return e.cart?.items??[]},pointStoreItemsInCart(e){return e.alternativeCart.items.filter(e=>e.infoTypes.findIndex(e=>e.name===N.PointShopValue)>-1).reduce((e,t)=>e+t.quantity,0)},pointStoreItems(e){return e.alternativeCart.items.filter(e=>e.infoTypes.some(e=>e.name===N.PointShopValue))},hasDiscount(e){return e.cart?.summary?.discount&&e.cart?.summary?.discount!==`0`},appliedDiscountNames(e){return e.cart?.appliedPromotions?.map(e=>e.discountCode)?.join(`,`)??``},hasSelectedPaymentMethod(e){return e.cart?.paymentInfo?.hasSelectedMethod??!1},isNetsEasyCheckout(e){return e.paymentMethods.find(e=>e.selected)?.id===41||!1},isOrderProposalBasket(e){return e.cart?.infoTypes?.find(e=>e.name===N.BasketType)?.value===ke.OrderProposal||!1},getCopiedFromOrderId(e){return e.cart?.infoTypes?.find(e=>e.name===N.CopiedFrom)?.value??null},mayAddMoreForPartNo:e=>t=>{let n=e.cart.items.find(e=>e.partNo===t);if(n){let e=new Date().toISOString().split(`T`)[0]??``;return n.stockStatus.estimatedDelivery&&n.stockStatus.estimatedDelivery>e?!0:n.stockStatus.value>n.quantity}return!0},deliveryLeadTime:e=>(e.cart?.items.reduce((e,t)=>{let n=t.stockStatus.leadtimeDayCount;return n===void 0?e:e===null||n!==null&&n>e.stockStatus.leadtimeDayCount?t:e},null))?.stockStatus?.leadtimeDayCount||1,getQuantityFromPartNo:e=>(t,n=!1)=>{let r=e.cart.items.find(e=>n?e.partNo===t&&e.priceListLocked===n:e.partNo===t);return r?r.quantity:0},getLineNoFromPartNo:e=>t=>{let n=e.cart.items.find(e=>e.partNo===t);return n?n.lineNo:-1},getInvoiceNotice(e){return e.cart?.infoTypes?.find(e=>e.name===N.InvoiceNotice)?.value??``},shouldShowOrderProposalRequest(){return this.cart.items.length>0}},actions:{async loadAlternativeBasket(e){let{apiGet:t,handleApiError:n}=O(),r=await t(`/basket/${e}?storeBasket=0`,null,!1);if(r){if(r.allowPointsPurchase&&(this.pointsAvailable=r.summary.points,this.pointsUsed=r.summary.usedPoints,this.pointsUsed>0)){console.log(`this.pointsUsed > 0 - removes cookie`);let e=d(`pointShopReminder`);e.value=null}return this.alternativeCart=r,!0}return n(),!1},changePointsUsed(e){this.pointsUsed+=e},setCurrentlyBuying(e,t,n){this.currentlyBuying=e,this.currentlyBuyingPrimaryVariant=n??!0,this.isBuyingUpsellProduct=!!t},async setOrderProposalAsCart(e){this.loadingCart=!0,this.cartId=e.basketId;let t=d(`cartId`,{maxAge:15724800,path:`/`});t.value=this.cartId,setTimeout(async()=>{await this.getCart(!1)},500)},setCartFromId(e){if(!t().public.fetchStoredBasket)return;let n=d(`cartId`,{maxAge:15724800,path:`/`});n.value=e,this.cartId=e,setTimeout(async()=>{this.getCart(!1)},200)},setAddedToCartCount(e){this.addedToCartCount=e},async getCart(e=!0){if(!$().getPurchasesEnabled){this.isLoading=!1;return}this.loadingCart=!0;let{apiGet:t,apiPost:n}=O(),r=d(`cartId`,{maxAge:15724800,path:`/`});if(!r.value&&!e){this.loadingCart=!1;return}let i=!1;if(r.value){let e=await t(`/basket/${r.value}`);e?.id&&e?.statusId===3?(r.value=e.id,this.cartId=e.id,this.cart=e,b(`basket`,{uuid:e.id})):(r.value=null,this.cartId=``,this.cart=q,i=!0)}if(!r.value||i){let e=await n(`/basket`);e?.id&&(r.value=e.id,this.cartId=e.id,this.cart=e,b(`basket`,{uuid:e.id}))}this.cartItems=this.cart.items.filter(J).map(e=>e.quantity).reduce((e,t)=>
1e+t,0),this.lastUpdate=Date.now(),this.loadingCart=!1},async createNewCart(){let e=d(`cartId`,{maxAge:15724800,path:`/`});e.value=null,this.cartItems=0,this.cart=q,this.cartId=``,this.lastUpdate=Date.now()},async getCheckout(){let{apiGet:e}=O(),t=d(`cartId`,{maxAge:15724800,path:`/`});if(!t.value)return console.log(`no cart id`),!1;this.loadingCheckout=!0;let n=await e(`/basket/${t.value}/checkout`,{},!1);return n?(this.cart=n.basket,this.cartItems=this.cart.items.filter(J).map(e=>e.quantity).reduce((e,t)=>e+t,0),this.shippingAddress=n.shippingAddress,this.billingAddress=n.billingAddress,this.payerAddress=n.payerAddress,this.deliveryMethods=n.deliveryMethods,this.paymentMethods=n.paymentMethods,this.buyerCompanyName=n.buyerCompanyName,this.loadingCart=!1,this.loadingCheckout=!1,!0):(this.cartId=t.value,this.loadingCheckout=!1,!1)},async updateDeliveryMethod(e){let{apiPost:t,handleApiError:n}=O(),r=d(`cartId`,{maxAge:15724800,path:`/`});if(r.value!==null&&r.value!==void 0)this.cartId=r.value;else return!1;let i=await t(`/basket/${r.value}/delivery-method`,{id:e});i?this.deliveryMethods=i.deliveryMethods:n()},async updatePaymentMethod(e){let{apiPost:t,handleApiError:n}=O(),r=d(`cartId`,{maxAge:15724800,path:`/`});if(r.value!==null&&r.value!==void 0)this.cartId=r.value;else return!1;let i=await t(`/basket/${r.value}/payment-method`,{id:e});i?(this.cart=i.basket,this.paymentMethods=i.paymentMethods):n()},async updateInvoiceNotice(e){let{apiPost:t,handleApiError:n}=O(),r=d(`cartId`,{maxAge:15724800,path:`/`});if(r.value!==null&&r.value!==void 0)this.cartId=r.value;else return!1;await t(`/basket/${r.value}/invoice-notice`,{invoiceNotice:e})||n()},async updateComment(e){let{apiPost:t,handleApiError:n}=O(),r=d(`cartId`,{maxAge:15724800,path:`/`});if(r.value!==null&&r.value!==void 0)this.cartId=r.value;else return!1;await t(`/basket/${r.value}/comment`,{comment:e})||n()},async updateGlobalDiscount(e){let{apiPut:t,handleApiError:n}=O(),r=d(`cartId`,{maxAge:15724800,path:`/`+s().path?.split(`/`).filter(e=>e.length).shift()});if(r.value!==null&&r.value!==void 0)this.cartId=r.value;else return!1;await t(`/basket/quick/${r.value}/global-discount`,{discount:e})||n()},async updateShippingAddress(e){let{apiPost:t,handleApiError:n}=O(),r=d(`cartId`,{maxAge:15724800,path:`/`});this.isLoading=!0;let i=await t(`/basket/${r.value}/delivery`,{companyName:this.shippingAddress.companyName,orgNo:this.shippingAddress.orgNo,email:e.email,firstName:e.firstName,lastName:e.lastName,deliveryAddress:{line1:e.street,zip:e.zip,city:e.city,country:e.country}});return i?(this.cart=i.basket,this.shippingAddress=i.shippingAddress,this.isLoading=!1,!0):(n(),this.isLoading=!1,!1)},async updateShippingAddressFromSalon(e){let{apiPost:t,handleApiError:n}=O();if(e){let r=d(`cartId`,{maxAge:15724800,path:`/`});this.isLoading=!0;let i=await t(`/basket/${r.value}/delivery`,{email:this.shippingAddress.email,firstName:this.shippingAddress.firstName,lastName:this.shippingAddress.lastName,deliveryAddress:e});i?(s().path?.endsWith(`fastOrder`)||(this.cart=i.basket),this.shippingAddress=i.shippingAddress):n(),this.isLoading=!1}else n()},async handleDiscountCode(e,t){let{apiPost:n,apiDelete:r}=O(),i;return i=t?await r(`/basket/${this.cartId}/discount-code`,{discountCode:e}):await n(`/basket/${this.cartId}/discount-code`,{discountCode:e}),i&&(this.isLoading=!0,this.cart=i.basket,this.cartItems=this.cart.items.filter(J).map(e=>e.quantity).reduce((e,t)=>e+t,0),setTimeout(()=>{this.isLoading=!1},500)),i},async saveOrderProposal(e,t,n,r){let{apiPost:i,handleApiError:a}=O(),o=await i(`/order-proposals`,{basketId:this.cartId,status:e,validUntil:t,comment:n,customerId:r});if(o)return X().setUserProfile(o),!0;a()},async requestOrderProposal(e){!this.cartId&&this.cart.id&&(this.cartId=this.cart.id);let{apiPost:t,handleApiError:n}=O(),r=await t(`/order-proposals/request`,{basketId:this.cartId,userComment:e});if(r)return X().setUserProfile(r),!0;n()},async updateProductDiscount(e,t,n,r=!1,i=`percentage`,a=!1,o=!1){return this.updateProductDiscountBatch([{lineNo:e,discount:t,quantity:n,priceListLocked:r,discountType:i,shouldUpdateProduct:a,shouldUpdateExistingLineNo:o}])},async updateProductDiscountBatch(e,{shouldUpdateProduct:t=!1,shouldUpdateExistingLineNo:n=!1}={}){if(!e.length)return null;let{apiPost:r}=O(),i=e.map(e=>({lineNo:e.lineNo,discount:e.discount,quantity:e.quantity,priceListLocked:e.priceListLocked??!1,discountType:e.discountType??`percentage`,shouldUpdateProduct:e.shouldUpdateProduct??t,shouldUpdateExistingLineNo:e.shouldUpdateExistingLineNo??n})),a=await r(`/products/discount`,{basketId:this.cartId,items:i});if(a&&(this.cart=a,this.cartItems=this.cart.items.filter(J).map(e=>e.quantity).reduce((e,t)=>
1e+t,0),this.cartId===``)){let e=d(`cartId`,{maxAge:15724800,path:`/`});e.value=this.cart.id,this.cartId=this.cart.id}return a},async updateNewsletterConfirm(e){let{apiPut:t,handleApiError:n}=O(),r=await t(`/basket/${d(`cartId`,{maxAge:15724800,path:`/`}).value}/newsletter`,{hasNewsletterSubscription:e});r?this.cart=r.basket:n()},async deleteCart(){let e=d(`cartId`,{maxAge:15724800,path:`/`});e.value=null,this.cartItems=0,this.cart=q,this.cartId=``,X().isLoggedIn},async completePurchase(){let t=_(),{apiPost:n,handleApiError:r,lastError:i,lastErrorCode:a}=O();this.loadingPurchase=!0,this.hasAttemptedPurchase=!0;let o=[],s=[],c=[];this.cart.items.forEach(e=>{let t=localStorage.getItem(`objectID-${e.partNo}`);t?(s.push(e.partNo),c.push({queryID:t})):o.push(e.partNo)});let u=D(`randomId`,{maxAge:31536e3});s.length&&K(`purchasedObjectIDsAfterSearch`,{userToken:u.value||``,eventName:`Tracked Product Purchase`,index:`89fce283-7c9a-49f5-b3db-9f492daf4daf-nb-NO-products`,objectIDs:s,objectData:c,queryID:``}),o.length&&K(`purchasedObjectIDs`,{userToken:u.value||``,eventName:`Product Purchase`,index:`89fce283-7c9a-49f5-b3db-9f492daf4daf-nb-NO-products`,objectIDs:o});let d=await n(`/basket/${this.cartId}/purchase`),{manualUrl:f}=E();if(d!==null)d.allowPointsPurchase&&d.delayedUntil?await l(f(`/checkout/pointshop/${d.basketId}?delayedUntil=${encodeURIComponent(d.delayedUntil)}`)):await l(f(`/checkout/success/${d.basketId}`));else if(this.loadingPurchase=!1,a.value===422){let n=i.value;if(n?.message)t.setTemporaryError(n.message);else{let{$t:n}=e();t.setTemporaryError(n(`apiError.unknown`))}}else r();t.setShowValidateCheckoutModal(!1),this.loadingPurchase=!1},async updateCart(t,n=1,r=-1,i=!1,a=null,o=!1,c=``,l=!1){let u=_(),f=X(),p=s();this.isLoading=!0;let m=n,{apiPost:h,lastError:g}=O();if((f.isCustomerSuccessUser||f.isSalesRepUser)&&!f.userProfile.impersonatingCompany&&!this.cartId){let{$t:t}=e();return u.setTemporaryError(t(`user.impersonateToAddToCart`)),!0}if(r===-1){let e=[N.SalesRepDiscount,N.PossibleSalesRepGift],i=this.cart.items.find(n=>n.partNo!==t||n.priceListLocked!==l||n.parentLineNo?!1:(n.infoTypes.filter(t=>e.includes(t.name)).forEach(e=>{if(e.value!==`false`)return!1}),!0));i&&(r=i.lineNo,n===-1?n=i.quantity-1:n>0&&(n=i.quantity+n))}let v={partNo:t,quantity:n,priceListLocked:l};r>-1&&(v.lineNo=r);let y=null;r>=0&&(y=this.cart.items.find(e=>e.lineNo===r)),this.isBuyingUpsellProduct&&(v.isCrossSell=this.isBuyingUpsellProduct);let ee={items:[v]},b=await h(`/basket/items/${this.cartId}`,ee);if(b){if(b.messages&&b.messages.forEach(e=>{let t=e.split(`:`)[1];t&&u.setTemporaryError(t)}),a){let e=n;y&&(e=n-y.quantity);let t=`add_to_cart`;e<0&&(e=Math.abs(e),t=`remove_from_cart`),Tt(t,[B(a,e)])}if(c!==``){let e=D(`randomId`,{maxAge:31536e3}),t=localStorage.getItem(`queryID`)||``,n={userToken:e.value,eventName:`Product Added To Cart`,objectIDs:[c],index:`89fce283-7c9a-49f5-b3db-9f492daf4daf-nb-NO-products`};t!==``&&(n.objectData=[{queryID:t}]),localStorage.setItem(`objectId-${c}`,t),K(t===``?`addedToCartObjectIDs`:`addedToCartObjectIDsAfterSearch`,n)}if(this.cart=b,this.cartItems=this.cart.items.filter(J).map(e=>e.quantity).reduce((e,t)=>e+t,0),this.cartId===``){let e=d(`cartId`,{maxAge:15724800,path:`/`});e.value=this.cart.id,this.cartId=this.cart.id}if(this.isLoading=!1,u.currentlyEditingItem){let e=this.cart.items.find(e=>e.lineNo===u.currentlyEditingItem?.lineNo);e&&u.setCurrentlyEditingItem(e)}if(n>=1&&(this.justAddedPartNo=t),i&&n>=1){a&&!o&&(this.currentlyBuying=a,this.currentlyBuyingQuantity=m);let e=p.name!==`checkout`;u.setShowAddedToCart(e),u.setShowQuickBuy(!1)}}else{let{$t:t}=e(),n=g?.value;u.setTemporaryError(n?.message??t(`addedToCart.fail`)),await this.getCart(!1),this.isLoading=!1}return this.isBuyingUpsellProduct&&=!1,!0},async addMultipleItemsToCart(t,n,r=!1){let i=_(),a=s();this.isLoading=!0;let{apiPost:o,lastError:c}=O(),l=t.map(e=>{let t=this.cart.items.find(t=>t.partNo===e.partNo&&!t.priceListLocked&&!t.parentLineNo),n=e.quantity;return t&&!r&&(n===-1?n=t.quantity-1:n>0&&(n=t.quantity+n)),{...e,quantity:n,lineNo:t?.lineNo??-1}}),u={items:l.map(e=>({partNo:e.partNo,quantity:e.quantity,lineNo:e.lineNo}))},f=await o(`/basket/items/${this.cartId}`,u);
1if(f){if(l.forEach(e=>{if(e.product){let t=e.quantity,n=null;e.lineNo>=0&&(n=this.cart.items.find(t=>t.lineNo===e.lineNo)),n&&(t=e.quantity-n.quantity);let r=`add_to_cart`;t<0&&(t=Math.abs(t),r=`remove_from_cart`),Tt(r,[B(e.product,t)])}}),this.cart=f,this.cartItems=this.cart.items.filter(J).map(e=>e.quantity).reduce((e,t)=>e+t,0),this.cartId===``){let e=d(`cartId`,{maxAge:15724800,path:`/`});e.value=this.cart.id,this.cartId=this.cart.id}if(this.isLoading=!1,i.currentlyEditingItem){let e=this.cart.items.find(e=>e.lineNo===i.currentlyEditingItem?.lineNo);e&&i.setCurrentlyEditingItem(e)}if(n&&l.length===1){let e=t[0];e?.product&&(this.currentlyBuying=e.product,this.currentlyBuyingQuantity=e.quantity);let n=a.name!==`checkout`;i.setShowAddedToCart(n),i.setShowQuickBuy(!1)}}else{let{$t:t}=e(),n=c?.value;i.setTemporaryError(n?.message??t(`addedToCart.fail`)),await this.getCart(!1)}return this.isBuyingUpsellProduct&&=!1,!0},async updateMultipleItemsWithLineNo({items:e,shouldMerge:t}){let{apiPost:n,handleApiError:r}=O();this.isLoading=!0;let i=await n(t?`/basket/quick/${this.cartId}`:`/basket/quick`,{items:e});if(i){if(this.cart=i,this.cartItems=this.cart.items.filter(J).map(e=>e.quantity).reduce((e,t)=>e+t,0),this.cartId===``||!t){let e=d(`cartId`,{maxAge:15724800,path:`/`});e.value=this.cart.id,this.cartId=this.cart.id}if(this.isLoading=!1,i.messages)return i.messages}else r(),this.isLoading=!1;return[]},async copyItemWithLineNo(e){if(!this.cartId)return[];let{apiPost:t,handleApiError:n}=O(),r=await t(`/basket/${this.cartId}/${e}/copy`,{});if(r){if(this.cart=r,this.cartItems=this.cart.items.filter(J).map(e=>e.quantity).reduce((e,t)=>e+t,0),this.cartId===``){let e=d(`cartId`,{maxAge:15724800,path:`/`});e.value=this.cart.id,this.cartId=this.cart.id}return r.messages??[]}return n(),[]},async updateCustomerSuccessProduct(e){let{apiPost:t,handleApiError:n}=O(),r=await t(`/customer-success/basket/${this.cartId}/items`,{partNo:e.partNo,message:e.message});r?this.cart=r:n()},async updateCustomerSuccessInfoTypes(e){let{apiPut:t,handleApiError:n}=O(),r=await t(`/customer-success/basket/${this.cartId}`,{code:e.code,value:e.checked});return r?(this.cart=r,!0):(n(),!1)},async acceptOrderProposal(e,t){let{apiPost:n,handleApiError:r}=O(),i=await n(`/order-proposals/accept`,{basketId:e.basketId,mergeActiveBasket:t?this.cart.id:null});if(i){let e=d(`cartId`,{maxAge:15724800,path:`/`});return e.value=i.id,this.cartId=i.id,this.cart=i,this.cartItems=this.cart.items.filter(J).map(e=>e.quantity).reduce((e,t)=>e+t,0),!0}r()},async fetchBasketCopyByOrderId(e){let{apiPost:t,handleApiError:n}=O(),r=await t(`/orders/${e}/edit`);if(r){let e=d(`cartId`,{maxAge:15724800,path:`/`});return e.value=r.id,this.cartId=r.id,this.cart=r,this.cartItems=this.cart.items.filter(J).map(e=>e.quantity).reduce((e,t)=>e+t,0),!0}n()},async addPreviewBasketToCart(){let e=_(),t=X();if(e.currentlyPreviewing?.cart){let n=!1;if((t.isCustomerSuccessUser||t.isSalesRepUser)&&t.userProfile.company.id!==e.currentlyPreviewing.savedCart.companyId){let{handleApiError:r}=O(),i=e.currentlyPreviewing.savedCart?.companyId;i!==void 0&&(await t.impersonateCompany(i.toString())||(n=!0,r()))}if(!n){let t=d(`cartId`,{maxAge:15724800,path:`/`});return t.value=e.currentlyPreviewing.cart.id,this.cartId=e.currentlyPreviewing.cart.id,this.cart=e.currentlyPreviewing.cart,this.cartItems=this.cart.items.filter(J).map(e=>e.quantity).reduce((e,t)=>e+t,0),!0}}return!1},changeDebouncedQueue(e){let t=this.deboucedAddToCart.findIndex(t=>t.partNo===e.partNo);if(t>=0){let n=this.deboucedAddToCart[t];n&&(n.quantity=e.quantity)}else this.deboucedAddToCart.push(e);typeof this.deboucedTimer==`number`&&clearTimeout(this.deboucedTimer),this.deboucedTimer=setTimeout(()=>{this.sendDebouncedQueue()},3e3)},sendDebouncedQueue(){typeof this.deboucedTimer==`number`&&clearTimeout(this.deboucedTimer),this.deboucedAddToCart.length>0&&(this.addMultipleItemsToCart(this.deboucedAddToCart,!1,!0),this.deboucedAddToCart=[])}}}),X=g(`userStore`,{state:()=>({userProfile:{...we},loggedIn:!1,loadedLogin:!1,accountToken:``,ordersCount:-1,favoriteProductList:[],favoritesLoaded:!1,communicationPreferences:{}
1,notifications:[],userPrice:[],crossSellUserPrice:[],loadPriceQueue:[],loadPriceTimer:null,backorderNotices:[]}),actions:{addUserPrices(e){let t=$();t.getB2cEnabled&&t.getIsB2c&&(this.userPrice=this.userPrice.concat(e))},async loadUserPrices(e=!1){if(this.loadPriceQueue.length>0){this.loadPriceTimer=null;let t=JSON.parse(JSON.stringify(this.loadPriceQueue)),{apiPost:n,handleApiError:r}=O(),i=await n(`/products/prices`,{partNos:this.loadPriceQueue,crossSell:e});this.loadPriceQueue=[],i?(e?this.crossSellUserPrice=this.crossSellUserPrice.concat(i.prices):this.userPrice=this.userPrice.concat(i.prices),t.forEach(e=>{this.userPrice.findIndex(t=>t.partNo===e)===-1&&(console.warn(`No api response price for part no: ${e}`),this.userPrice.push({partNo:e,priceInfo:null}))})):r()}},async loadUserData(){let{apiGet:e,accountToken:t}=O();if(t.value){let n=await e(`/users/me`);return n?(this.setUserProfile(n),$().getAllowBackorders&&await this.loadBackorderProducts(),!0):(t.value=null,this.clearUserProfile(),!1)}return this.loadedLogin=!0,!1},setUserProfile(e){this.userProfile=e,this.loggedIn=!0,this.loadedLogin=!0,e.savedBasketId&&Y().setCartFromId(e.savedBasketId),ee({id:e.id,email:e.email})},async loadBackorderProducts(){let{apiGet:e}=O(),t=await e(`/users/me/backorder/products`);t&&(this.backorderNotices=t)},async logIn({email:e,password:t,toAccountPage:n}){let{apiPost:r,accountToken:i,handleApiError:a}=O(),o=_(),s=await r(`/users/login`,{email:e,password:t});return s&&typeof s==`string`?(i.value=s,setTimeout(async()=>{if(await this.loadUserData(),this.userProfile.currentlyEditingOrderProposal&&await Y().setOrderProposalAsCart(this.userProfile.currentlyEditingOrderProposal),(this.userProfile?.role?.type===P.Admin||this.userProfile?.role?.type===P.User)&&await this.loadNotifications(),n){let e=this.userProfile.role?.type===P.Sales?`/salestool/dashboard`:`/account/dashboard`;this.isCustomerSuccessUser&&!this.userProfile.impersonatingCompany&&(e=`/account/selectCustomer`);let{manualUrl:t}=E();await c().push(t(e))}o.closeAllModal()},200),!0):(a(`login`,!0),!1)},async logInWithGuid({email:e,guid:t}){let{apiPost:n,accountToken:r}=O(),i=await n(`/users/login-with-guid`,{email:e,guid:t});return i&&i.token&&typeof i.token==`string`?(r.value=i.token,setTimeout(async()=>{await this.loadUserData(),await this.editOrderProposal(i.orderProposal,!1)},200),!0):!1},async logOut(e=!0){let{apiPost:t,accountToken:n}=O();await t(`/users/logout`),this.loadedLogin=!1,setTimeout(async()=>{if(this.clearUserProfile(),n.value=null,ee(null),e){let{manualUrl:e}=E();window.location.href=e(`/`)}},200)},clearUserProfile(){this.userProfile={...we},this.loggedIn=!1,this.loadedLogin=!1,this.favoritesLoaded=!1,this.favoriteProductList=[],this.userPrice=[],this.backorderNotices=[],Y().deleteCart()},async saveFavoriteProduct(e,t=1){let{apiPost:n}=O();return e&&this.userProfile&&(await n(`/users/me/favorites/products`,{partNo:e,quantity:t}),await this.loadUserData(),await this.loadFavoriteProducts()),!0},async updateFavoriteProductQuantity(e,t){let{apiPut:n}=O();return e&&this.userProfile&&(await n(`/users/me/favorites/products`,{partNo:e,quantity:t}),await this.loadUserData(),await this.loadFavoriteProducts()),!0},async clearFavoriteProducts(){let{apiDelete:e}=O(),t=this.userProfile.favoriteProducts?.map(e=>e.id)??[];t.length&&(await e(`/users/me/favorites/products`,{partNo:t}),await this.loadUserData(),this.favoriteProductList=[])},async loadFavoriteProducts(){let{getExactVariantByPartNo:e}=z(),t=Object.values(this.userProfile.favoriteProducts).map(e=>e.id)??[];if(t.length>0){let n=await e(t);n&&(this.favoriteProductList=n.hits.map(e=>{let t=L(e,{limitedVariantLoaded:!0});return{product:t,quantity:this.userProfile.favoriteProducts.find(t=>t.id===e.partNo)?.quantity??1,selectedVariant:t.variants[0]}}))}else this.favoriteProductList=[];this.favoritesLoaded=!0},async loadNotifications(){if(this.isCustomerSuccessUser||this.isSalesRepUser||!this.loggedIn)return;let{apiGet:e}=O(),t=await e(`/users/me/notifications`,null,!this.userProfile.impersonatingCompany);t&&(this.notifications=t)},removeNotification(e){this.notifications=this.notifications.filter(t=>t.id!==e)},async markNotificationAsSeen(e){let{apiPost:t}=O();await t(`/order-proposals/seen`,{basketId:e}),this.loadNotifications()},markAllNotificationAsSeen(e=null){let{apiPost:t}=O();this.getUnseenNotifications(e).forEach(n=>{t(`/order-proposals/seen`,{basketId:n.id},{},!1);let r=this.notifications.findIndex(t=>e?t.id===n.id&&t.type===e:t.id===n.id);r>-1&&(this.notifications[r].seen=!0)})},async loadCommunicationPreferences(){let{apiGet:e}=O(),t=await e(`/users/me/communications`,{},!1);this.communicationPreferences={newsletter:t?.newsletter??!1,backorderStockAlerts:t?.backorderStockAlerts??!1}},async updateCommunicationPreferences(t,n){let{apiPut:r,handleApiError:i}=O(),a=_(),{$t:o}=e(),s=await r(`/users/me/communications`,{newsletter:t,backorderStockAlerts:n??this.communicationPreferences.backorderStockAlerts});s?(this.communicationPreferences=s,a.setTemporarySuccessMsg(o(`mypage.communications.updated`))):i()},async addFavoriteBrand(e){let{apiPost:t,handleApiError:n}=O();await t(`/users/me/favorites/brands`,{code:e})?this.userProfile.favoriteBrands.includes(e)||this.userProfile.favoriteBrands.push(e):n()},async removeFavoriteBrand(e){let{apiDelete:t,handleApiError:n}=O();await t(`/users/me/favorites/brands`,{code:e})?this.userProfile.favoriteBrands=this.userProfile.favoriteBrands.filter(t=>t!==e):n()},async impersonateCompany(e){let{apiPost:t,handleApiError:n}=O(),r=await t(`/users/salesrep/impersonate`,{companyId:e},null,!1);
1if(r)return Y().deleteCart(),this.userProfile=r,r.savedBasketId&&Y().setCartFromId(r.savedBasketId),await this.loadNotifications(),this.userPrice=[],this.backorderNotices=[],await this.loadBackorderProducts(),!0;n(void 0,void 0,!0)},async stopImpersonatingCompany(){let{apiDelete:e,handleApiError:t}=O(),n=await e(`/users/salesrep/impersonate`);n?(this.userProfile=n,await this.loadNotifications(),this.backorderNotices=[],Y().deleteCart()):t()},async editOrderProposal(t,n){let r=!0;if((!this.userProfile.impersonatingCompany||t.companyId!=this.userProfile.company.id)&&(r=await this.impersonateCompany(t.companyId)),r&&await this.setCurrentlyEditingOrderProposal(t)){if(await Y().setOrderProposalAsCart(t),n){let{manualUrl:e}=E();l(e(`/checkout`))}else{let{$t:n}=e();_().setTemporarySuccessMsg(n(`mypage.orderProposal.cartLoaded`,{id:this.userProfile.currentlyEditingOrderProposal?.norceBasketId,name:t.companyName}),`success`)}}},async setHasSeenOnboarding(){let{apiPut:e,handleApiError:t}=O(),n=await e(`/users/me/onboarding`);return n?(this.userProfile=n,!0):(t(),!1)},async setCurrentlyEditingOrderProposal(e){let{apiPost:t,handleApiError:n}=O(),r=`/users/me/orderProposals/`;e&&(r+=e.id);let i=await t(r);return i?(this.userProfile=i,!0):(n(),!1)},async deleteSavedCart(t){let{apiDelete:n,handleApiError:r,lastResponseCode:i}=O();if(await n(`/users/me/carts/${t.id}`),i.value==200){let n=_(),r=Y(),{$t:i}=e();return n.setTemporarySuccessMsg(i(`minicart.carts.deleteSuccessMsg`)),t.uuid===r.cartId&&await r.deleteCart(),!0}r()}},getters:{isLoggedIn(e){return e.loggedIn&&e.loadedLogin},isSalesRepUser(e){return e.loggedIn&&e.userProfile?.role?.type===P.Sales},isCustomerSuccessUser:e=>e.loggedIn&&e.userProfile?.role?.type===P.CustomerSuccess,isAdminUser(e){return e.loggedIn&&e.userProfile?.role?.type===P.Admin},isFinanceUser(e){return e.loggedIn&&e.userProfile?.role?.type===P.Finance},isEditingOrderProposal(e){return this.isSalesRepUser?e.loggedIn&&e.userProfile.currentlyEditingOrderProposal&&e.userProfile.currentlyEditingOrderProposal.basketId===Y().cartId:e.loggedIn&&e.userProfile.currentlyEditingOrderProposal&&e.userProfile.currentlyEditingOrderProposal.customerBasketId===Y().cartId},allowPointsPurchase(e){return e.loggedIn&&e.userProfile?.allowPointsPurchase},hasLoadedLogin(e){return e.loadedLogin},getPrice:e=>(t,n=!1)=>{let r=$();if((!r.getB2cEnabled||!r.getIsB2c)&&!r.getShowNotLoggedInPrices){if(!e.loggedIn&&!e.loadedLogin)return{status:`logginIn`};if(!e.loggedIn)return{status:`notLoggedIn`}}let i=n?e.crossSellUserPrice.find(e=>e.partNo===t):e.userPrice.find(e=>e.partNo===t);return i?i.priceInfo?{status:`ok`,price:i.priceInfo}:{status:`error`,price:void 0}:(e.loadPriceQueue.includes(t)||(e.loadPriceQueue.push(t),e.loadPriceTimer||=setTimeout(()=>{let t=X();e.loadPriceTimer=null,t.loadUserPrices(n)},25)),{status:`pending`})},isSalePrice:e=>t=>{let n=e.userPrice.find(e=>e.partNo===t);return!n||!n.priceInfo?!1:n.priceInfo.isOnSale||!1},getNotificationByType:e=>t=>e.notifications.filter(e=>e.type===t),getUnseenNotifications:e=>(t=null)=>{let n=e.notifications.filter(e=>!e.seen);return t?n?.filter(e=>e.type===t):n},currentCompanyId(e){return e.userProfile.company.id},canFavorizeProducts(){return this.isLoggedIn&&!this.isCustomerSuccessUser}}});function Hn(){return{isInStoryblokAdmin:()=>{let e=s();return!!(e.query&&e.query._storyblok&&e.query._storyblok!==``)},storyblokReleaseId:()=>s().query?._storyblok_release??null}}function Un(){let e=X(),t=_(),n=c();return{checkDesign:(e,t)=>typeof e==`object`&&Object.values(e).includes(t),clickMenu:(e,r,i,a)=>{r?t.openSideMenuWith({uid:i,ignoreParent:a}):n.push({path:`${e}`})},clickMenuDesktop:(e,r,i,a)=>{r?t.openDesktopMenuWith({uid:i,ignoreParent:a}):n.push({path:`${e}`})},checkPermission:t=>{if(Hn().isInStoryblokAdmin())return!0;let n=!0;return t&&(t.excludeUser&&!e.loggedIn&&!e.isCustomerSuccessUser&&!e.isSalesRepUser&&(n=!1),t.excludeUserLoggedIn&&e.loggedIn&&!e.isCustomerSuccessUser&&!e.isSalesRepUser&&(n=!1),t.excludeSupport&&e.isCustomerSuccessUser&&(n=!1),t.excludeSales&&e.isSalesRepUser&&(n=!1)),n}}}i();var{replaceLinksInStoryBlokResponse:Wn}=E(),Gn=new WeakMap,Kn=`customerType`,qn={maxAge:15724800,path:`/`},Jn=()=>D(Kn,{...qn}),Yn=()=>Jn().value,Z=()=>Yn()===`b2b`,Q=()=>Yn()===`b2c`,Xn=()=>Yn()!=null,Zn=e=>
1e?.b2b?.enabled??!1,Qn=e=>(e?.b2c?.enabled??!1)||e?.environment===`preview`,$n=e=>{let t=e?.storyblokBasePath??``,n=e?.b2b?.storyblokBasePath??``,r=e?.b2c?.storyblokBasePath??``;return e?.b2b?.enabled&&Z()&&n.length?`${t}/${n}/`:e?.b2c?.enabled&&Q()&&r.length?`${t}/${r}/`:t.length?`${t}/`:``},$=g(`globalContentStore`,{state:()=>({articleKeywords:[],config:null,countryDomains:[],currentStory:null,domainMap:null,footer:null,header:null,hostname:``,pageId:-1,pageUuid:``,siteNotice:null,stories:[],translations:{},filterSettings:{filterValues:[],filters:[],sortIndices:[],translations:{},flagSuffix:``,maximumDiscountForOrderProposals:100},filterSettingsLoaded:!1,sitemap:[],sitemapLoaded:!1,brandList:[],brandListLoaded:!1,brandListLoading:!1,pointCollectingThreshold:1e3,cv:null,consumerFeePartNo:null,consumerFeePrice:null,enableOrderProposalRequest:null,restrictOrderProposalToCsOnly:null,orderProposalRequestAreaThreshold:500,userLocale:``,storyblokTranslatedSlugMap:{}}),actions:{async loadBrands(){return!1},async loadSitemap(){if(this.sitemapLoaded)return!0;let e=Gn.get(this);if(e)return e;let{apiGet:n,handleApiError:r}=O(),i=(async()=>{let e=await n(`/applications/breadcrumbs?type=${t().public.storyblokStoriesVersion}`);return e?(this.sitemap=e,this.sitemapLoaded=!0):r(),!0})();Gn.set(this,i);try{return await i}finally{Gn.delete(this)}},async loadSiteSettings(){if(this.filterSettingsLoaded)return!0;let{apiGet:e,handleApiError:t}=O(),n=this.getTranslationLocale,r=this.domainMap?.environment||`local`,i=await e(`/applications/configuration?lang=${n}`);if(i){let e=Object.fromEntries(Object.entries(i.translations??{}).filter(([,e])=>e?.length));if(r===`local`){let t=await h(()=>import(`./h6Q7tHdk.js`),[],import.meta.url);this.translations={...t.default,...e}}else this.translations=e;i.translations={},this.filterSettings=i,this.filterSettingsLoaded=!0,i.enableOrderProposalRequest&&(this.enableOrderProposalRequest=i.enableOrderProposalRequest),i.restrictOrderProposalToCsOnly&&(this.restrictOrderProposalToCsOnly=i.restrictOrderProposalToCsOnly),this.storyblokTranslatedSlugMap=i.storyblokTranslatedSlugMap??{}}else{t();let e=await h(()=>import(`./h6Q7tHdk.js`),[],import.meta.url);this.translations=e.default}return!0},async setCorrectLangAndMarket(){let e=v([`host`])?.host??``,t=s(),n=oe(e,t.path);if(this.hostname=e,this.domainMap=n,(n?.features?.internationalization??!1)&&n?.locales?.length){let e=Array.isArray(t.query._storyblok_lang)?t.query._storyblok_lang[0]:t.query._storyblok_lang,r=!!(t.query._storyblok&&t.query._storyblok!==``),i=ve(t.path,n,{editorLeadingLocale:r}),a=e&&n.locales.some(t=>t.code===e)?e:i;if(a){let e=D(`userLocale`,{maxAge:15724800,path:`/`});e.value!==a&&(e.value=a)}}this.setInitialEndConsumerType()},setInitialEndConsumerType(){let e=Hn(),t=D(`b2b-b2c-userSelected`,{maxAge:15724800,path:`/`}),n=this.domainMap,r=s(),i=n?.b2b?.enabled??!1,a=n?.b2c?.enabled??!1,o=Qn(n),c=i&&o;if(!i||!a){let e=i;this.setIsB2b(e),t.value=`true`;return}let l=r.query?.forceConsumerType,u=Array.isArray(l)?l[0]:l;if(u?.length&&c)this.setIsB2b(u===`b2b`),t.value=`true`;else if(!Xn()||e.isInStoryblokAdmin()){let e=r.path,t=n?.b2b?.storyblokBasePath??``;i&&t.length&&(e.includes(`/${t}/`)||e.endsWith(`/${t}`))?this.setIsB2b(!0):this.setIsB2b(!1)}},async loadFromCms(){let e=y(),n=t(),r=$n(this.domainMap),i=await e.get(`cdn/stories/`,{language:this.getUserLocale,version:n.public.storyblokStoriesVersion,starts_with:`${r}sitesettings/`,resolve_links:`url`,filter_query:{component:{not_in:`SalesToolsSettings`}},cv:Date.now()});this.cv=i.data.cv;let a=Wn(i.data.stories),o=a.find(e=>e.content.component===`GlobalFooter`);o?this.footer=o.content:console.warn(`Couldn't find Footer in globalContentStore`);let s=a.find(e=>e.content.component===`HeaderData`);s?this.header=s.content:console.warn(`Couldn't find Navigation in globalContentStore`);let c=a.find(e=>e.content.component===`Config`);c?this.config=c.content:console.warn(`Couldn't find Config in globalContentStore`);let l=a.find(e=>e.content.component===`SiteNoticeSettings`);l?this.siteNotice={...l.content,hideSiteMessage:!1}:console.warn(`Couldn't find Site Notice in globalContentStore`)}
1,async getArticleKeywords(){if(this.articleKeywords.length===0){let e=y(),t=this.getUserLocale||this.getDefaultLocaleCode,{data:n}=await e.get(`cdn/datasource_entries`,{datasource:`article-keywords`,dimension:t}).catch(e=>{console.log(e)});n.datasource_entries.length&&(this.articleKeywords=n.datasource_entries.map(e=>({key:e.name,value:e.dimension_value||e.value||``,defaultValue:e.value})))}return this.articleKeywords},setPageUuid(e){this.pageUuid=e},setPageId(e){this.pageId=e},setCurrentStory(e){this.currentStory=e},setHideSiteMessage(e){this.siteNotice&&={...this.siteNotice,hideSiteMessage:e}},setIsB2b(e=!0){let t=Jn();t.value=e?`b2b`:`b2c`},async setUserLocale(e){let t=e??this.getDefaultLocaleCode,n=D(`userLocale`,{maxAge:15724800,path:`/`}),i=s(),a=this.domainMap,{slug:o}=w(i.path,a),c=this.getProductBasePath,u=o.split(`/`).filter(Boolean),d=u.indexOf(c),f=d!==-1,m=f?u.slice(d+1).join(`/`):null;n.value=t,await r();let h=o;if(f&&m){let e=this.getAlgoliaIndex,t=this.getProductBasePath,{getProductByUrl:n}=z();h=(await n(m,e))?.hits?.length?`${t}/${m}`:``}else{let e=this.currentStory?.translated_slugs?.find(e=>e.lang===t);e?.path&&(h=w(`/${e.path}`,a,{editorLeadingLocale:!0}).slug)}let g=T({slug:h,locale:t},a);g===i.path?p({force:!0,persistState:!1}):l(g,{external:!0})}},getters:{isSubFolder(e){return e.domainMap?.subFolder??!1},isBrandSite(e){return[`electrovoice`,`dynacord`].includes(e.domainMap?.cssStyle??``)},baseHref(e){return e.domainMap?.url??`/`},getProductListPreset(e){return e.domainMap?.productListPreset??null},keywordSuffix(e){return e.domainMap?.keywordSuffix??``},getPrependPathForManualLinksWithoutLeadingSlash(e){return e.domainMap?.subFolder??!1?`${e.domainMap?.storyblokBasePath}`:``},getPrependPathForManualLinksWithTrailingSlash(e){return e.domainMap?.subFolder??!1?`${e.domainMap?.storyblokBasePath}/`:``},getPrependPathForManualLinks(e){return e.domainMap?.subFolder??!1?`/${e.domainMap?.storyblokBasePath}`:``},getSitemapItemById:e=>t=>e.sitemap.find(e=>e.id===t),getSitemapItemBySlug:e=>(t,n=!1)=>(n&&t.at(-1)===`/`&&(t=t.slice(0,-1)),e.sitemap.find(e=>e.full_slug===t)),getSitemapItemByParentId:e=>t=>e.sitemap.filter(e=>e.parent_id===t),getSitemapIndexPageFromFolder:e=>t=>e.sitemap.find(e=>e.parent_id===t&&e.is_startpage),getFilterOption:e=>(t,n=null)=>{let r=e.filterSettings.filterValues.find(e=>e.code===t);if(r)return r;let i=e.filterSettings.filters.find(e=>e.code===n);return console.warn(`couldnt find filter option in translation. Key: `+t),{name:i?(t.split(`.`)?.slice(2)?.join(`.`)??t)+` `+(i?.uom??``):t,code:t,parentCode:null,description:null,image:null}},getFilterName:e=>t=>{let n=e.filterSettings.filters.find(e=>e.code===t);return n?n.name:t},getNavByUid:e=>(t,n=`main`)=>{function r(e,t){for(let n of t){if(n._uid===e)return n;if(n.children){let t=r(e,n.children);if(t)return t}}return null}return n===`main`?e.header?.mainNavigation?r(t,e.header.mainNavigation):null:n===`secondary`?e.header?.secondaryNavigation?r(t,e.header.secondaryNavigation):null:r(t,n)},getNavChildrenByUid:e=>t=>e.header?.mainNavigation.find(e=>e._uid===t)?.children||[],getNavigation:e=>t=>{if(!e.header?.[t])return[];let{checkPermission:n}=Un(),r=e=>e.filter(e=>n(e.restrictedPage)).map(e=>({...e,children:r(e.children)}));return r(e.header[t])},getFooterNav:e=>e.footer?.navigation?e.footer.navigation:[],hideSiteMessage(e){return e.siteNotice?.hideSiteMessage},footerNavigation(e){return e.footer?.navigation||[]},getFooter(e){return e.footer},brandlistPage(e){return e.config?.brandlistPage||``},getStory:e=>t=>e.stories?.find(e=>e.id===t),getCurrentUrl(e){let{fullPath:t}=s();return`https://${e.hostname}${t}`},getCountryCode(e){return e.domainMap?.countryCode||``},getCountryUrl(e){return e.domainMap?.url||``},getEnvironment(e){return e.domainMap?.environment||`local`},getFlagUrl(e){return e.domainMap?.flagUrl||``},getLocale(e){return e.domainMap?.locale||``},getDefaultLocaleCode(e){return S(e.domainMap)},getCurrency(e){return e.domainMap?.currency||``},getLogoUrl(e){return e.domainMap?.logoUrl||``},getStoryblokBasePath(e){return e.domainMap?.storyblokBasePath||``},getApiApplicationBasePath(e){let t=e.domainMap?.storyblokBasePath??``,n=e.domainMap?.b2b?.storyblokBasePath??``,r=e.domainMap?.b2c?.storyblokBasePath??``;return Z()&&n.length?`${t}/${n}`:Q()&&r.length?`${t}/${r}`:t},getProductBasePaths(e){return[e.domainMap?.b2c?.productBasePath??``,e.domainMap?.b2b?.productBasePath??``]},getProductBasePath(e){if((e.domainMap?.features?.internationalization??!1)&&e.domainMap?.locales?.length){let t=D(`userLocale`,{maxAge:15724800,path:`/`}).value??e.domainMap?.locale,n=e.domainMap.locales.find(e=>e.code===t);if(n){if(Z()&&n.b2b?.productBasePath)return n.b2b.productBasePath;if(Q()&&n.b2c?.productBasePath)return n.b2c.productBasePath;if(n.productBasePath)return n.productBasePath}}return Z()?e.domainMap?.b2b?.productBasePath??e.domainMap?.productBasePath??`produkt`:(Q(),e.domainMap?.b2c?.productBasePath??e.domainMap?.productBasePath??`produkt`)},getAlgoliaIndex(e){if((e.domainMap?.features?.internationalization??!1)&&e.domainMap?.locales?.length){let t=D(`userLocale`,{maxAge:15724800,path:`/`}).value??e.domainMap?.locale,n=e.domainMap.locales.find(e=>e.code===t);if(n){if(Z()&&n.b2b?.algoliaIndex)return n.b2b.algoliaIndex;if(Q()&&n.b2c?.algoliaIndex)return n.b2c.algoliaIndex;if(n.algoliaIndex)return n.algoliaIndex}}return Z()?e.domainMap?.b2b?.algoliaIndex??e.domainMap?.algoliaIndex??``:Q()?e.domainMap?.b2c?.algoliaIndex??e.domainMap?.algoliaIndex??``:e.domainMap?.algoliaIndex||``},getAlgoliaIndexAutocomplete(e){if((e.domainMap?.features?.internationalization??!1)&&e.domainMap?.locales?.length){let t=D(`userLocale`,{maxAge:15724800,path:`/`}).value??e.domainMap?.locale,n=e.domainMap.locales.find(e=>e.code===t);if(n){if(Z()&&n.b2b?.algoliaIndexAutocomplete)return n.b2b.algoliaIndexAutocomplete;if(Q()&&n.b2c?.algoliaIndexAutocomplete)return n.b2c.algoliaIndexAutocomplete;if(n.algoliaIndexAutocomplete)return n.algoliaIndexAutocomplete}}return Z()?e.domainMap?.b2b?.algoliaIndexAutocomplete??e.domainMap?.algoliaIndexAutocomplete??``:Q()?e.domainMap?.b2c?.algoliaIndexAutocomplete??e.domainMap?.algoliaIndexAutocomplete??``:e.domainMap?.algoliaIndexAutocomplete||``},getAlgoliaIndexPages(e){return e.domainMap?.algoliaIndexPages||``},getApplicationId(e){if((e.domainMap?.features?.internationalization??!1)&&e.domainMap?.locales?.length){let t=D(`userLocale`,{maxAge:15724800,path:`/`}).value??e.domainMap?.locale,n=e.domainMap.locales.find(e=>e.code===t);if(n){if(Z()&&n.b2b?.applicationId!=null)return n.b2b.applicationId;if(Q()&&n.b2c?.applicationId!=null)return n.b2c.applicationId;if(n.applicationId!=null)return n.applicationId}}return Z()?e.domainMap?.b2b?.applicationId??e.domainMap?.applicationId??``:Q()?e.domainMap?.b2c?.applicationId??e.domainMap?.applicationId??``:e.domainMap?.applicationId||``},getBrandName:e=>t=>e.brandList.find(e=>e.brandCode===t)?.brandName||``,getBrandLink:e=>t=>{let n=e.brandList.find(e=>e.brandCode===t);
1return n?.brandLink?n.brandLink.startsWith(`/`)?n.brandLink:`/`+n.brandLink:null},getBrandFlag:e=>t=>e.brandList.find(e=>e.brandCode===t)?.brandFlag||``,getSearchSuggestions(e){return e.header?.popularTerms.split(`,`).map(e=>e.trim())},getPopularPages(e){return e.header?.popularPages??[]},getShowPagesInSearch(e){return e.header?.showPagesInSearch??!0},getFreeShippingThreshold(e){return e.config?.freeShippingThreshold??300},getPointCollectingThreshold(e){return e.pointCollectingThreshold},getBrandPageLink(t){if(t.config?.brandlistPage){let{$sbLinkFix:n}=e();return n(t.config?.brandlistPage)}return``},getAllProductsLink(t){if(t.config?.allProductsPage){let{$sbLinkFix:n}=e();return n(t.config?.allProductsPage)}return``},getProductsDocumentsLink(t){let{$sbLinkCheck:n,$sbLinkFix:r}=e();return t.config?.productsDocumentsPage&&n(t.config.productsDocumentsPage)?r(t.config.productsDocumentsPage):``},getFindRetailerLink(t){let{$sbLinkCheck:n,$sbLinkFix:r}=e();return t.config?.findRetailerPage&&n(t.config.findRetailerPage)?r(t.config.findRetailerPage):``},getAltDeliveryTextCategories(e){return e.config?.altDeliveryTextCategories?.split(`,`)||[]},getCurrentStoryName(e){return e.currentStory?.name||``},getCurrentStoryId(e){return e.currentStory?.id||-1},getCurrentPageType(e){return e.currentStory?.content.component||``},getAllowBackorders(e){return Z()?e.domainMap?.b2b?.features?.backorders??e.domainMap?.features?.backorders??!1:Q()?e.domainMap?.b2c?.features?.backorders??e.domainMap?.features?.backorders??!1:e.domainMap?.features?.backorders??!1},getFastOrderEnabled(e){return Z()?e.domainMap?.b2b?.features?.fastOrder??e.domainMap?.features?.fastOrder??!1:Q()?e.domainMap?.b2c?.features?.fastOrder??e.domainMap?.features?.fastOrder??!1:e.domainMap?.features?.fastOrder??!1},getB2cStartpagePath(e){return`/${e.domainMap?.storyblokBasePath}/${e.domainMap?.b2c?.storyblokBasePath}`.replace(/\/?$/,`/`)},getB2bStartpagePath(e){return`/${e.domainMap?.storyblokBasePath}/${e.domainMap?.b2b?.storyblokBasePath}`.replace(/\/?$/,`/`)},getB2cEnabled(e){return(e.domainMap?.b2c?.enabled||e.domainMap?.environment===`preview`)??!1},getB2bEnabled(e){return e.domainMap?.b2b?.enabled??!1},getDisplayIncVat(e){return Z()?e.domainMap?.b2b?.displayIncVat??e.domainMap?.displayIncVat??!1:Q()?e.domainMap?.b2c?.displayIncVat??e.domainMap?.displayIncVat??!1:e.domainMap?.displayIncVat??!1},getHasDifferentEndConsumerTypes(e){return Qn(e.domainMap)&&Zn(e.domainMap)},getEndConsumerTypeSet(){return Xn()},getIsB2b(){return Z()},getIsB2c(){return Q()},getConsumerTypeSettingsPath(e){return $n(e.domainMap)},getPurchasesEnabled(e){if(Z()){let t=X();return(e.domainMap?.b2b?.purchaseEnabled??!0)&&t.isLoggedIn}return Q()?e.domainMap?.b2c?.purchaseEnabled??!0:!0},getShowNotLoggedInPrices(e){if(Z()){let t=X();return(e.domainMap?.b2b?.showPricesIfNotLoggedIn??!1)&&!t.isLoggedIn}return!!Q()},getEnableOrderProposalRequest(e){return e.enableOrderProposalRequest?!e.restrictOrderProposalToCsOnly||X().isCustomerSuccessUser:!1},getDisableInvoices(){return!1},getMaxDiscount(){return 100},getUserLocale(){return D(`userLocale`,{maxAge:15724800,path:`/`}).value??this.getLocale},getTranslationLocale(){return(this.domainMap?.features?.internationalization??!1?this.getUserLocale:this.domainMap?.locale)||``},getLocales(e){return e.domainMap?.locales??[]}}});export{P as A,le as B,M as C,je as D,k as E,be as F,ce as H,_e as I,T as L,O as M,D as N,A as O,E as P,ye as R,Ne as S,N as T,oe as V,mt as _,J as a,Fe as b,B as c,Tt as d,Ot as f,L as g,z as h,X as i,Te as j,Oe as k,Et as l,St as m,Un as n,Y as o,Ct as p,Hn as r,K as s,$ as t,wt as u,pt as v,j as w,Pe as x,Le as y,w as z};
2//# sourceMappingURL=DRQOAJEH.js.map

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.