PageSourceSearch

https://www.dometic.com/_next/static/chunks/08ut-2vhvqxjq.js

js dometic.com collected 2026-10-01 10:29:33 UTC 51,025 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,613680,361951,e=>{"use strict";let t,i,n;var r,l,o,a,s,c,u=Object.defineProperty,d=(e,t,i)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?u(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},h={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},f={0:8203,1:8204,2:8205,3:65279},p=[,,,,].fill(String.fromCodePoint(f[0])).join(""),m=Object.fromEntries(Object.entries(f).map(e=>e.reverse())),g=Object.fromEntries(Object.entries(h).map(e=>e.reverse())),v=`${Object.values(h).map(e=>`\\u{${e.toString(16)}}`).join("")}`,b=RegExp(`[${v}]{4,}`,"gu");(function(){if(s)return;s=1;var e=function(){if(o)return l;o=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;return l=function(i,n,r){if("[object Function]"!==t.call(n))throw TypeError("iterator must be a function");var l=i.length;if(l===+l)for(var o=0;o<l;o++)n.call(r,i[o],o,i);else for(var a in i)e.call(i,a)&&n.call(r,i[a],a,i)}}();function t(e,i,n){if(3==arguments.length)return t.set(e,i,n);if(2==arguments.length)return t.get(e,i);var r=t.bind(t,e);for(var l in t)t.hasOwnProperty(l)&&(r[l]=t[l].bind(r,e));return r}a=t,t.get=function(e,i){for(var n=Array.isArray(i)?i:t.parse(i),r=0;r<n.length;++r){var l=n[r];if(!("object"==typeof e&&l in e))throw Error("Invalid reference token: "+l);e=e[l]}return e},t.set=function(e,i,n){var r=Array.isArray(i)?i:t.parse(i),l=r[0];if(0===r.length)throw Error("Can not set the root object");for(var o=0;o<r.length-1;++o){var a=r[o];"string"!=typeof a&&"number"!=typeof a&&(a=String(a)),"__proto__"!==a&&"constructor"!==a&&"prototype"!==a&&("-"===a&&Array.isArray(e)&&(a=e.length),l=r[o+1],a in e||(l.match(/^(\d+|-)$/)?e[a]=[]:e[a]={}),e=e[a])}return"-"===l&&Array.isArray(e)&&(l=e.length),e[l]=n,this},t.remove=function(e,i){var n=Array.isArray(i)?i:t.parse(i),r=n[n.length-1];if(void 0===r)throw Error('Invalid JSON pointer for remove: "'+i+'"');var l=t.get(e,n.slice(0,-1));if(Array.isArray(l)){var o=+r;if(""===r&&isNaN(o))throw Error('Invalid array index: "'+r+'"');Array.prototype.splice.call(l,o,1)}else delete l[r]},t.dict=function(e,i){var n={};return t.walk(e,function(e,t){n[t]=e},i),n},t.walk=function(i,n,r){var l=[];r=r||function(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t||"[object Array]"===t},function i(o){e(o,function(e,o){l.push(String(o)),r(e)?i(e):n(e,t.compile(l)),l.pop()})}(i)},t.has=function(e,i){try{t.get(e,i)}catch{return!1}return!0},t.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")},t.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},t.parse=function(e){if(""===e)return[];if("/"!==e.charAt(0))throw Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(t.unescape)},t.compile=function(e){return 0===e.length?"":"/"+e.map(t.escape).join("/")}})();let _=!1,y=e=>(...t)=>{_&&console[e](...t)},E={error:y("error"),warn:y("warn"),log:y("log")};function w(e,t,i){let n={...t,method:e,source:"live-preview-sdk",location:window.location.href,version:"4.6.15"};E.log("Send message",n),i.forEach(e=>{var t;null==(t=window.top)||t.postMessage(n,e)})}var k="u">typeof globalThis?globalThis:"u">typeof window?window:e.g,x={exports:{}};x.exports;let j=(c||(c=1,function(e,t){var i,n,r,l="__lodash_hash_undefined__",o="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",h="[object Map]",f="[object Number]",p="[object Object]",m="[object Promise]",g="[object RegExp]",v="[object Set]",b="[object String]",_="[object WeakMap]",y="[object ArrayBuffer]",E="[object DataView]",w=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,j={};j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j[o]=j[a]=j[y]=j[s]=j[E]=j[c]=j[u]=j[d]=j[h]=j[f]=j[p]=j[g]=j[v]=j[b]=j[_]=!1;var C="object"==typeof k&&k&&k.Object===Object&&k,I="object"==typeof self&&self&&self.Object===Object&&self,N=C||I||Function("return this")(),T=t&&!t.nodeType&&t,A=T&&e&&!e.nodeType&&e,S=A&&A.exports===T,O=S&&C.process,L=function(){try{return O&&O.binding&&O.binding("util")}catch{}}(),D=L&&L.isTypedArray;function M(e){var t=-1,i=Array(e.size);return e.forEach(function(e,n){i[++t]=[n,e]}),i}function P(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}var R=Array.prototype,U=Function.prototype,z=Object.prototype,B=N["__core-js_shared__"],$=U.toString,F=z.hasOwnProperty,V=(i=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(sr
1c)_1."+i:"",G=z.toString,H=RegExp("^"+$.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=S?N.Buffer:void 0,q=N.Symbol,K=N.Uint8Array,Z=z.propertyIsEnumerable,J=R.splice,W=q?q.toStringTag:void 0,X=Object.getOwnPropertySymbols,Q=Y?Y.isBuffer:void 0,ee=(n=Object.keys,r=Object,function(e){return n(r(e))}),et=ej(N,"DataView"),ei=ej(N,"Map"),en=ej(N,"Promise"),er=ej(N,"Set"),el=ej(N,"WeakMap"),eo=ej(Object,"create"),ea=eN(et),es=eN(ei),ec=eN(en),eu=eN(er),ed=eN(el),eh=q?q.prototype:void 0,ef=eh?eh.valueOf:void 0;function ep(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function em(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function eg(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function ev(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new eg;++t<i;)this.add(e[t])}function eb(e){var t=this.__data__=new em(e);this.size=t.size}function e_(e,t){for(var i=e.length;i--;)if(eT(e[i][0],t))return i;return -1}function ey(e){var t;return null==e?void 0===e?"[object Undefined]":"[object Null]":W&&W in Object(e)?function(e){var t=F.call(e,W),i=e[W];try{e[W]=void 0;var n=!0}catch{}var r=G.call(e);return n&&(t?e[W]=i:delete e[W]),r}(e):(t=e,G.call(t))}function eE(e){return eP(e)&&ey(e)==o}function ew(e,t,i,n,r,l){var o=1&i,a=e.length,s=t.length;if(a!=s&&!(o&&s>a))return!1;var c=l.get(e);if(c&&l.get(t))return c==t;var u=-1,d=!0,h=2&i?new ev:void 0;for(l.set(e,t),l.set(t,e);++u<a;){var f=e[u],p=t[u];if(n)var m=o?n(p,f,u,t,e,l):n(f,p,u,e,t,l);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}(t,function(e,t){if(!h.has(t)&&(f===e||r(f,e,i,n,l)))return h.push(t)})){d=!1;break}}else if(!(f===p||r(f,p,i,n,l))){d=!1;break}}return l.delete(e),l.delete(t),d}function ek(e){var t;return t=eU(e),eS(e)?t:function(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e}(t,eC(e))}function ex(e,t){var i,n,r=e.__data__;return("string"==(n=typeof(i=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?r["string"==typeof t?"string":"hash"]:r.map}function ej(e,t){var i,n=null==e?void 0:e[t];return!(!eM(n)||(i=n,V&&V in i))&&(eL(n)?H:w).test(eN(n))?n:void 0}ep.prototype.clear=function(){this.__data__=eo?eo(null):{},this.size=0},ep.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},ep.prototype.get=function(e){var t=this.__data__;if(eo){var i=t[e];return i===l?void 0:i}return F.call(t,e)?t[e]:void 0},ep.prototype.has=function(e){var t=this.__data__;return eo?void 0!==t[e]:F.call(t,e)},ep.prototype.set=function(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=eo&&void 0===t?l:t,this},em.prototype.clear=function(){this.__data__=[],this.size=0},em.prototype.delete=function(e){var t=this.__data__,i=e_(t,e);return!(i<0)&&(i==t.length-1?t.pop():J.call(t,i,1),--this.size,!0)},em.prototype.get=function(e){var t=this.__data__,i=e_(t,e);return i<0?void 0:t[i][1]},em.prototype.has=function(e){return e_(this.__data__,e)>-1},em.prototype.set=function(e,t){var i=this.__data__,n=e_(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this},eg.prototype.clear=function(){this.size=0,this.__data__={hash:new ep,map:new(ei||em),string:new ep}},eg.prototype.delete=function(e){var t=ex(this,e).delete(e);return this.size-=!!t,t},eg.prototype.get=function(e){return ex(this,e).get(e)},eg.prototype.has=function(e){return ex(this,e).has(e)},eg.prototype.set=function(e,t){var i=ex(this,e),n=i.size;return i.set(e,t),this.size+=+(i.size!=n),this},ev.prototype.add=ev.prototype.push=function(e){return this.__data__.set(e,l),this},ev.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.clear=function(){this.__data__=new em,this.size=0},eb.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},eb.prototype.get=function(e){return this.__data__.get(e)},eb.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.set=function(e,t){var i=this.__data__;if(i instanceof em){var n=i.__data__;if(!ei||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new eg(n)}return i.set(e,t),this.size=i.size,this};var eC=X?function(e){return null==e?[]:function(e,t){for(var i=-1,n=null==e?0:e.length,r=0,l=[];++i<n;){var o=e[i];t(o,i,e)&&(l[r++]=o)}return l}(X(e=Object(e)),function(t){return Z.call(e,t)})}:function(){return[]},eI=ey;function eN(e){if(null!=e){try{return $.call(e)}catch{}try{return e+""}catch{}}return""}function eT(e,t){return e===t||e!=e&&t!=t}(et&&eI(new et(new ArrayBuffer(1)))!=E||ei&&eI(new ei)!=h||en&&eI(en.resolve())!=m||er&&eI(new er)!=v||el&&eI(new el)!=_)&&(eI=function(e){var t=ey(e),i=t==p?e.constructor:void 0,n=i?eN(i):"";if(n)switch(n){case ea:return E;case es:return h;case ec:return m;case eu:return v;case ed:return _}return t});var eA=eE(function(){return arguments}())?eE:function(e){return eP(e)&&F.call(e,"callee")&&!Z.call(e,"callee")},eS=Array.isArray,eO=Q||function(){return!1};function eL(e){if(!eM(e))return!1;var t=ey(e);return t==d||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eD(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eM(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eP(e){return null!=e&&"object"==typeof e}var eR=D?function(e){return D(e)}:function(e){return eP(e)&&eD(e.length)&&!!j[ey(e)]};function eU(e){return null!=e&&eD(e.length)&&!eL(e)?function(e){var t,i,n=eS(e),r=!n&&eA(e),l=!n&&!r&&eO(e),o=!n&&!r&&!l&&eR(e),a=n||r||l||o,s=a?function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}(e.length,String):[],c=s.length;for(var u in e){F.call(e,u)&&!(a&&("length"==u||l&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||(t=u,(i=(i=c)??0x1fffffffffffff)&&("number"==typeof t||x.test(t))&&t>-1&&t%1==0&&t<i)))&&s.push(u)}return s}(e):function(e){if(i=(t=e)&&t.constructor,t!==("function"==typeof i&&i.prototype||z))return ee(e);var t,i,n=[];for(var r in Object(e))F.call(e,r)&&"constructor"!=r&&n.push(r);return n}(e)}e.exports=function(e,t){return function e(t,i,n,r,l){return t===i||(null!=t&&null!=i&&(eP(t)||eP(i))?function(e,t,i,n,r,l){var d=eS(e),m=eS(t),_=d?a:eI(e),w=m?a:eI(t);_=_==o?p:_,w=w==o?p:w;var k=_==p,x=w==p,j=_==w;if(j&&eO(e)){if(!eO(t))return!1;d=!0,k=!1}if(j&&!k)return l||(l=new eb),d||eR(e)?ew(e,t,i,n,r,l):function(e,t,i,n,r,l,o){switch(i){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!l(new K(e),new K(t)));case s:case c:case f:return eT(+e,+t);case u:return e.name==t.name&&e.message==t.message;case g:case b:return e==t+"";case h:var a=M;case v:var d=1&n;if(a||(a=P),e.size!=t.size&&!d)break;var p=o.get(e);if(p)return p==t;n|=2,o.set(e,t);var m=ew(a(e),a(t),n,r,l,o);return o.delete(e),m;case"[object Symbol]":if(ef)return ef.call(e)==ef.call(t)}return!1}(e,t,_,i,n,r,l);if(!(1&i)){var C=k&&F.call(e,"__wrapped__"),I=x&&F.call(t,"__wrapped__");
1if(C||I){var N=C?e.value():e,T=I?t.value():t;return l||(l=new eb),r(N,T,i,n,l)}}return!!j&&(l||(l=new eb),function(e,t,i,n,r,l){var o=1&i,a=ek(e),s=a.length;if(s!=ek(t).length&&!o)return!1;for(var c=s;c--;){var u=a[c];if(!(o?u in t:F.call(t,u)))return!1}var d=l.get(e);if(d&&l.get(t))return d==t;var h=!0;l.set(e,t),l.set(t,e);for(var f=o;++c<s;){var p=e[u=a[c]],m=t[u];if(n)var g=o?n(m,p,u,t,e,l):n(p,m,u,e,t,l);if(!(void 0===g?p===m||r(p,m,i,n,l):g)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){var v=e.constructor,b=t.constructor;v!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b)&&(h=!1)}return l.delete(e),l.delete(t),h}(e,t,i,n,r,l))}(t,i,n,r,e,l):t!=t&&i!=i)}(e,t)}}(x,x.exports)),(r=x.exports)&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default"))?r.default:r;var C=((t=C||{}).FIELD_ID="data-contentful-field-id",t.ENTRY_ID="data-contentful-entry-id",t.ASSET_ID="data-contentful-asset-id",t.LOCALE="data-contentful-locale",t.SPACE="data-contentful-space",t.ENVIRONMENT="data-contentful-environment",t),I=((i=I||{}).MOUSE_MOVE="MOUSE_MOVE",i.SCROLL_START="SCROLL_START",i.SCROLL_END="SCROLL_END",i.RESIZE_START="RESIZE_START",i.RESIZE_END="RESIZE_END",i.TAGGED_ELEMENTS="TAGGED_ELEMENTS",i.INSPECTOR_MODE_CHANGED="INSPECTOR_MODE_CHANGED",i),N={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},T={0:8203,1:8204,2:8205,3:65279};[,,,,].fill(String.fromCodePoint(T[0])).join(""),Object.fromEntries(Object.entries(T).map(e=>e.reverse())),Object.fromEntries(Object.entries(N).map(e=>e.reverse()));var A=`${Object.values(N).map(e=>`\\u{${e.toString(16)}}`).join("")}`,S=RegExp(`[${A}]{4,}`,"gu");function O(e,t){return e.href===t.href}function L({root:e=window.document,options:t}){var i,n;let r,l=[...t.ignoreManuallyTaggedElements?[]:e.querySelectorAll(`[${C.ASSET_ID}][${C.FIELD_ID}], [${C.ENTRY_ID}][${C.FIELD_ID}]`)].map(e=>({element:e,attributes:function(e,t){if(!(e&&e.nodeType===Node.ELEMENT_NODE&&!(!e.hasAttribute(C.FIELD_ID)||!e.hasAttribute(C.ENTRY_ID)&&!e.hasAttribute(C.ASSET_ID))))return null;let i={fieldId:e.getAttribute(C.FIELD_ID),locale:e.getAttribute(C.LOCALE)??t.locale,environment:e.getAttribute(C.ENVIRONMENT)??t.environment,space:e.getAttribute(C.SPACE)??t.space,manuallyTagged:!0};if(!i.fieldId)return E.warn("Element is missing field ID attribute and cannot be tagged",{id:e.getAttribute(C.ENTRY_ID)??e.getAttribute(C.ASSET_ID),sharedProps:i}),null;let n=e.getAttribute(C.ENTRY_ID);if(n)return{...i,entryId:n};let r=e.getAttribute(C.ASSET_ID);return r?{...i,assetId:r}:null}(e,t)})).filter(({attributes:e})=>null!==e),o=[];for(let{node:t,text:n}of(i="body"in e?e.body:e,r=[],"function"==typeof i.matches&&i.matches("*")&&(r=[i]),[...r,...Array.from(i.querySelectorAll("*:not(script,style,meta,title)"))].map(e=>{var t;return{node:e,text:(t=e).matches("input[type=submit], input[type=button], input[type=reset]")?t.value:t.matches("img, video")?t.alt:Array.from(t.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE&&!!e.textContent).map(e=>e.textContent).join("")}}).filter(({text:e})=>!!(e&&e.match(S))))){let e=function(e){let t=e.match(b);return t?function(e,t=!1){let i=Array.from(e);if(i.length%2==0){if(i.length%4||!e.startsWith(p))return function(e,t){var i;let n=[];for(let t=.5*e.length;t--;){let i=`${g[e[2*t].codePointAt(0)]}${g[e[2*t+1].codePointAt(0)]}`;n.unshift(String.fromCharCode(parseInt(i,16)))}let r=[],l=[n.join("")],o=10;for(;l.length;){let e=l.shift();try{if(r.push(JSON.parse(e)),t)break}catch(n){if(!o--)throw n;let t=+(null==(i=n.message.match(/\sposition\s(\d+)$/))?void 0:i[1]);if(!t)throw n;l.unshift(e.substring(0,t),e.substring(t))}}return r}(i,t)}else throw Error("Encoded data has invalid length");let n=[];for(let e=.25*i.length;e--;){let t=i.slice(4*e,4*e+4).map(e=>m[e.codePointAt(0)]).join("");n.unshift(String.fromCharCode(parseInt(t,4)))}if(t){n.shift();let e=n.indexOf("\0");return -1===e&&(e=n.length),[JSON.parse(n.slice(0,e).join(""))]}
1return n.join("").split("\0").filter(Boolean).map(e=>JSON.parse(e))}(t[0],!0)[0]:void 0}(n);if(!e||!e.origin.includes("contentful.com")){E.warn("Element has missing or invalid ContentSourceMap, please check if you have correctly enabled ContentSourceMaps and that the element's data originates from Contentful",{node:t,sourceMap:e});continue}if(!(function(e,t){for(let i of t)if(i.element===e||i.element.contains(e))return!0;return!1}(t,l)||o.some(i=>i.element.contains(t)&&O(i.sourceMap,e)))){if(t.matches("img")){let i=t.closest("figure")||t.closest("picture")||t;o.push({element:i,sourceMap:e});continue}o.push({element:t,sourceMap:e})}}let a=o.filter((e,t)=>o.findIndex(t=>!(!O(e.sourceMap,t.sourceMap)||e.element!==t.element))===t);for(let{element:e,sourceMap:t}of a){let i=null;if(t.href){let n=function(e){try{let t,i,n=new URL(e),r=n.searchParams.get("focusedField"),l=n.searchParams.get("focusedLocale"),o=n.pathname.split("/").filter(Boolean),a=o.indexOf("spaces"),s=o.indexOf("environments"),c=-1!==a?o[a+1]:void 0,u=-1!==s?o[s+1]:void 0,d=o.indexOf("entries"),h=o.indexOf("assets");return -1!==d?(t="Entry",i=o[d+1]):-1!==h&&(t="Asset",i=o[h+1]),t&&i?r?l?c&&u?{entityId:i,entityType:t,fieldId:r,locale:l,space:c,environment:u}:(console.warn("Missing space or environment in href path",{href:e}),null):(console.warn("Missing focusedLocale query parameter in href",{href:e}),null):(console.warn("Missing focusedField query parameter in href",{href:e}),null):(console.warn("Unable to determine entityType or entityId from href",{href:e}),null)}catch(t){return console.warn("Invalid href URL",{href:e,error:t}),null}}(t.href);if(!n)continue;if("Asset"===n.entityType)i={fieldId:n.fieldId,locale:n.locale,space:n.space,environment:n.environment,assetId:n.entityId};else if("Entry"===n.entityType)i={fieldId:n.fieldId,locale:n.locale,space:n.space,environment:n.environment,entryId:n.entityId};else{E.warn("Unknown entityType",{element:e,sourceMap:t});continue}}else{if(t.contentful&&(n=t.contentful)&&"string"==typeof n.entity&&"string"==typeof n.field&&"string"==typeof n.locale&&"string"==typeof n.space&&"string"==typeof n.environment&&("Asset"===n.entityType||"Entry"===n.entityType)){let n=t.contentful;if(!n.entity||!n.field||!n.locale||!n.space||!n.environment){E.warn("Element has missing information in their ContentSourceMap, please check if you have restricted the platform for the encoding. (Missing parameters in `contentful`)",{element:e,sourceMap:t});continue}let r={fieldId:n.field,locale:n.locale,space:n.space,environment:n.environment};if("Asset"===n.entityType)r.assetId=n.entity,i=r;else if("Entry"===n.entityType)r.entryId=n.entity,i=r;else{E.warn("Unknown entityType in contentful data",{element:e,sourceMap:t});continue}}else{E.warn("Element has neither href nor contentful data in their ContentSourceMap, unable to extract attributes.",{element:e,sourceMap:t});continue}}l.push({element:e,attributes:i})}let s=l.filter(({attributes:e})=>(null==e?void 0:e.manuallyTagged)===!1||!(null!=e&&e.manuallyTagged)).length;return{taggedElements:l,manuallyTaggedCount:l.length-s,automaticallyTaggedCount:s,autoTaggedElements:a}}function D({options:e}){return[...new Set(L({options:e}).taggedElements.map(e=>e.attributes&&"entryId"in e.attributes?e.attributes.entryId:null).filter(Boolean))]}class M{constructor(e){d(this,"delay",300),d(this,"isScrolling",!1),d(this,"scrollTimeout"),d(this,"isResizing",!1),d(this,"resizeTimeout"),d(this,"hoveredElement"),d(this,"taggedElements",[]),d(this,"manuallyTaggedCount",0),d(this,"automaticallyTaggedCount",0),d(this,"intersectionObserver"),d(this,"observersCB",[]),d(this,"cleanupCB",[]),d(this,"init",()=>{this.cleanupCB=[this.addScrollListener(),this.addMutationListener(document.body),this.addResizeListener(),this.addHoverListener()],this.updateElements()}),d(this,"cleanup",()=>{this.observersCB.forEach(e=>
1e()),this.cleanupCB.forEach(e=>e())}),d(this,"receiveMessage",e=>{if(e.method===I.INSPECTOR_MODE_CHANGED){let{isInspectorActive:t}=e;t?this.init():this.cleanup()}}),d(this,"observe",e=>{this.intersectionObserver.observe(e);let t=this.addMutationListener(e);this.observersCB.push(t,()=>this.intersectionObserver.unobserve(e))}),d(this,"addScrollListener",()=>{let{targetOrigin:e}=this.options,t=()=>{this.isScrolling||(this.isScrolling=!0,w(I.SCROLL_START,{},e)),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.isScrolling=!1,w(I.SCROLL_END,{},e),this.updateElements()},this.delay)},i={capture:!0,passive:!0};return window.addEventListener("scroll",t,i),()=>window.removeEventListener("scroll",t,i)}),d(this,"addMutationListener",e=>{let t=new MutationObserver(()=>{this.updateElements()});return t.observe(e,{characterData:!0,attributes:!0,attributeFilter:[C.ENTRY_ID,C.FIELD_ID,C.LOCALE,C.SPACE,C.ENVIRONMENT,"class","style"],childList:!0,subtree:!0}),()=>t.disconnect()}),d(this,"addResizeListener",()=>{let{targetOrigin:e}=this.options,t=new ResizeObserver(()=>{this.isResizing||(this.isResizing=!0,w(I.RESIZE_START,{},e)),this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.isResizing=!1,w(I.RESIZE_END,{},e),this.updateElements()},this.delay)});return t.observe(document.body),()=>t.disconnect()}),d(this,"addHoverListener",()=>{let e=function(e,t=100){let i;return(...n)=>{clearTimeout(i),i=setTimeout(()=>{e.apply(this,n)},t)}}(e=>{let t;for(let i of e){let e=i;if("BODY"===e.nodeName)break;let n=this.taggedElements.find(t=>t.element===e);if(n){t=n;break}}this.hoveredElement=null==t?void 0:t.element,this.updateElements()},this.delay),t=t=>{e(t.composedPath())};return window.addEventListener("mouseover",t,{passive:!0}),()=>window.removeEventListener("mouseover",t)}),d(this,"sendTaggedElements",()=>{w(I.TAGGED_ELEMENTS,{elements:this.taggedElements.map(e=>({coordinates:e.coordinates,isVisible:!!e.isVisible,attributes:e.attributes,isHovered:this.hoveredElement===e.element,isCoveredByOtherElement:!!e.isCoveredByOtherElement})),automaticallyTaggedCount:this.automaticallyTaggedCount,manuallyTaggedCount:this.manuallyTaggedCount},this.options.targetOrigin)}),d(this,"updateElements",()=>{let{taggedElements:e,manuallyTaggedCount:t,automaticallyTaggedCount:i}=L({options:this.options}),n=((e,t=window.document)=>((e,t=window.document)=>e.map(e=>({...e,isVisible:e.element.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}),isCoveredByOtherElement:((e,t,i=window.document)=>{let{top:n,right:r,bottom:l,left:o}=t,a=i.elementFromPoint(o+1,n+1),s=i.elementFromPoint(r-1,n+1),c=i.elementFromPoint(o+1,l-1),u=i.elementFromPoint(r-1,l-1);return a!==e||s!==e||c!==e||u!==e})(e.element,e.coordinates,t)})))(e.map(({element:e,attributes:t})=>({element:e,coordinates:e.getBoundingClientRect(),attributes:t})),t))(e);j(n,this.taggedElements)||(this.observersCB.forEach(e=>e()),this.observersCB=[],this.taggedElements=n,e.forEach(({element:e})=>this.observe(e)),this.manuallyTaggedCount=t,this.automaticallyTaggedCount=i)}),this.options=e,this.intersectionObserver=new IntersectionObserver(e=>{let t=this.taggedElements;for(let i of e)if(i.isIntersecting)for(let e of t)e.element===i.target&&(e.coordinates=i.intersectionRect,e.isVisible=i.target.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}));this.taggedElements=t,this.sendTaggedElements()},{threshold:.15})}}let{stringify:P}=JSON,R=String,U=(e,t)=>t,z=(e,t,i)=>{let n=R(t.push(i)-1);return e.set(i,n),n};var B=((n=B||{}).CONNECTED="CONNECTED",n.DISCONNECTED="DISCONNECTED",n.ERROR="ERROR",n.TAGGED_FIELD_CLICKED="TAGGED_FIELD_CLICKED",n.URL_CHANGED="URL_CHANGED",n.SUBSCRIBED="SUBSCRIBED",n.UNSUBSCRIBED="UNSUBSCRIBED",n.ENTRY_UPDATED="ENTRY_UPDATED",n.ENTRY_SAVED="ENTRY_SAVED",n.DEBUG_MODE_ENABLED="DEBUG_MODE_ENABLED",n);class ${constructor({locale:e,targetOrigin:t}){d(this,"subscriptions",new Map),d(this,"defaultLocale"),d(this,"sendMessage"),this.defaultLocale=e,this.sendMessage=(e,i)=>w(e,i,t)}async receiveMessage(e){if(e.method===B.ENTRY_UPDATED){let{data:t,subscriptionId:i}=e,n=this.subscriptions.get(i);n?(n.callback(t),n.data=t,this.subscriptions.set(i,n)):E.error("Received an update for an unknown subscription",{subscriptionId:i,data:t,subscriptions:this.subscriptions})}}subscribe(e){let t=`${performance.now()}-${Math.random().toString(36).slice(2)}`,i=e.locale??this.defaultLocale;this.subscriptions.set(t,{...e});let n={locale:i,event:"edit",id:t,config:(e=>{let t=new Map,i=[],n=[],r=+z(t,i,U.call({"":e},"",e)),l=!r;for(;r<i.length;)l=!0,n[r]=P(i[r++],o,void 0);return"["+n.join(",")+"]";function o(e,n){if(l)return l=!l,n;let r=U.call(this,e,n);switch(typeof r){case"object":if(null===r)break;case"string":return t.get(r)||z(t,i,r)}return r}})(e)};return this.sendMessage(B.SUBSCRIBED,n),()=>{this.sendMessage(B.UNSUBSCRIBED,n),this.subscriptions.delete(t)}}}class F{constructor({locale:e,options:t,inspectorModeEnabled:i}){d(this,"locale"),d(this,"options"),d(this,"inspectorModeEnabled"),d(this,"subscription"),this.locale=e,this.options=t,this.inspectorModeEnabled=i}subscribe(e){return this.subscription&&E.log("There is already a subscription for the save event, the existing one will be replaced."),this.subscription=e,()=>{this.subscription=void 0}}receiveMessage(e){if(e.method===B.ENTRY_SAVED&&this.subscription){let{entity:t}=e;this.inspectorModeEnabled?D({options:this.options}).includes(t.sys.id)&&this.subscription(t):this.subscription(t)}}}let V=["https://app.contentful.com","https://app.eu.contentful.com","http://localhost:3001"],G=class e{static init(t){var i;if("object"!=typeof t||!(null!=t&&t.locale))throw Error("Init function has to be called with a locale configuration (for example: `ContentfulLivePreview.init({ locale: 'en-US'})`)");let{debugMode:n,enableInspectorMode:r,enableLiveUpdates:l,locale:o,environment:a,space:s,targetOrigin:c}=t;if("u">typeof window){if(!function(){var e;try{return(null==(e=window.top)?void 0:e.location.href)!==window.location.href}catch{return!0}}())return this.liveUpdatesEnabled=!1,Promise.resolve(null);if(n&&(_=n),"boolean"==typeof r&&(this.inspectorModeEnabled=r),"boolean"==typeof l&&(this.liveUpdatesEnabled=l),this.locale=o,this.space=s,this.environment=a,this.initTargetOrigin(c),this.initialized)return E.log("You have already initialized the Live Preview SDK."),Promise.resolve(e.inspectorMode);this.inspectorModeEnabled&&(this.inspectorMode=new M({locale:o,space:s,environment:a,targetOrigin:this.targetOrigin,ignoreManuallyTaggedElements:null==(i=t.experimental)?void 0:i.ignoreManuallyTaggedElements})),this.liveUpdatesEnabled&&(this.liveUpdates=new $({locale:o,targetOrigin:this.targetOrigin}
1),this.saveEvent=new F({locale:o,options:{locale:this.locale,space:this.space,environment:this.environment,targetOrigin:this.targetOrigin},inspectorModeEnabled:this.inspectorModeEnabled})),window.addEventListener("message",e=>{var t,i,n;if("object"==typeof e.data&&e.data&&"source"in e.data&&"live-preview-editor"===e.data.source){if(E.log("Received message",e.data),e.data.method===B.DEBUG_MODE_ENABLED)return void(_=!0);this.inspectorModeEnabled&&(null==(t=this.inspectorMode)||t.receiveMessage(e.data)),this.liveUpdatesEnabled&&(null==(i=this.liveUpdates)||i.receiveMessage(e.data),null==(n=this.saveEvent)||n.receiveMessage(e.data))}}),function(e,t=500){let i=window.location.href,n=setInterval(()=>{let t=window.location.href;t!==i&&(i=t,e(t))},t)}(()=>{w(B.URL_CHANGED,{action:B.URL_CHANGED,taggedElementCount:document.querySelectorAll(`[${C.ENTRY_ID}]`).length},this.targetOrigin)});let{taggedElements:u,manuallyTaggedCount:d,automaticallyTaggedCount:h}=this.inspectorModeEnabled?L({options:{locale:this.locale,space:this.space,environment:this.environment}}):{taggedElements:[],manuallyTaggedCount:0,automaticallyTaggedCount:0},f=u.length;return w(B.CONNECTED,{action:B.CONNECTED,connected:!0,tags:f,taggedElementCount:f,locale:this.locale,isInspectorEnabled:this.inspectorModeEnabled,isLiveUpdatesEnabled:this.liveUpdatesEnabled,manuallyTaggedElementCount:d,automaticallyTaggedElementCount:h},this.targetOrigin),this.initialized=!0,Promise.resolve(e.inspectorMode)}}static initTargetOrigin(e){if(e)this.targetOrigin=Array.isArray(e)?e:[e];else{let e=window.location.ancestorOrigins,t=e?V.find(t=>e.contains(t)):V.find(e=>document.referrer.includes(e));if(!t)throw Error("The current origin is not supported. Please provide a targetOrigin in the live preview configuration.");this.targetOrigin=[t]}}static subscribe(e,t){if(!this.liveUpdatesEnabled)return()=>{};let i="string"==typeof e?e:"edit",n="object"==typeof e?e:t;if("save"===i){if(!this.saveEvent)throw Error("Save event is not initialized, please call `ContentfulLivePreview.init()` first.");return this.saveEvent.subscribe(n.callback)}if(!this.liveUpdates)throw Error("Live updates are not initialized, please call `ContentfulLivePreview.init()` first.");return this.liveUpdates.subscribe(n)}static getProps(e){let{fieldId:t,locale:i,environment:n,space:r}=e;if(!this.inspectorModeEnabled)return null;if(t){let l={...i?{[C.LOCALE]:i}:{},...n?{[C.ENVIRONMENT]:n}:{},...r?{[C.SPACE]:r}:{},[C.FIELD_ID]:t};if(i&&(l[C.LOCALE]=i),void 0!==e.assetId)return{...l,[C.ASSET_ID]:e.assetId};if(void 0!==e.entryId)return{...l,[C.ENTRY_ID]:e.entryId}}return E.warn("Missing property for inspector mode",{...e}),null}static toggleInspectorMode(){return this.inspectorModeEnabled=!this.inspectorModeEnabled,this.inspectorModeEnabled}static toggleLiveUpdatesMode(){return this.liveUpdatesEnabled=!this.liveUpdatesEnabled,this.liveUpdatesEnabled}static openEntryInEditor(e){let t={locale:this.locale,environment:this.environment,space:this.space};if(void 0!==e.assetId&&e.fieldId||void 0!==e.entryId&&e.fieldId){var i,n;return void(i={...t,...e},n=this.targetOrigin,w("TAGGED_FIELD_CLICKED",{action:"TAGGED_FIELD_CLICKED",...i},n))}E.error("Please provide field id and entry/asset id to openEntryInEditor.",{...e})}static getEntryList(){return D({options:{locale:this.locale,space:this.space,environment:this.environment}})}};d(G,"initialized",!1),d(G,"inspectorMode",null),d(G,"liveUpdates",null),d(G,"saveEvent",null),d(G,"inspectorModeEnabled",!0),d(G,"liveUpdatesEnabled",!0),d(G,"locale"),d(G,"space"),d(G,"environment"),d(G,"sendMessage"),d(G,"targetOrigin"),e.s([],613680),e.s(["ContentfulLivePreview",0,G],361951)},300235,e=>{"use strict";var t=e.i(336211);e.i(613680);var i=e.i(361951),n=e.i(453033),r=e.i(310822);e.i(659619);var l=e.i(290729),o=e.i(142069),a=e.i(975157),s=e.i(26806),c=e.i(425246),u=e.i(680659);function d({media:e,className:i,priority:r=!1,fillFrame:l=!1,...s}){let c=e?.image,u=e?.imageMobile,h=(0,o.transformDometicUrl)(c?.template_frontend_contentful_full_width)||(0,o.transformDometicUrl)(c?.template_frontend_contentful_ratio_4_5_large)||(0,o.transformDometicUrl)(c?.template_frontend_contentful_big)||(0,a.getNullable)(e?.nativeImage?.url),f=(0,o.transformDometicUrl)(u?.template_frontend_contentful_full_width)||(0,o.transformDometicUrl)(u?.template_frontend_contentful_ratio_4_5_large)||(0,o.transformDometicUrl)(u?.template_frontend_contentful_big)||(0,a.getNullable)(e?.nativeImageMobile?.url),p=s.sizes??"100vw",m=h??f;return l?m?(0,t.jsx)(n.default,{...s,fill:!0,alt:(0,a.getNullable)(e.altText)||"",className:(0,a.cn)(i,"object-cover object-center"),sizes:p,src:m,priority:r,fetchPriority:r?"high":void 0}):null:(0,t.jsxs)(t.Fragment,{children:[h&&(0,t.jsx)(n.default,{...s,alt:(0,a.getNullable)(e.altText)||"",className:(0,a.cn)(i,"block h-auto w-full",{"hidden lg:block":f}
1),height:e?.nativeImage?.height||1620,width:e?.nativeImage?.width||2880,sizes:p,src:h,priority:r,fetchPriority:r?"high":void 0}),f&&(0,t.jsx)(n.default,{...s,alt:(0,a.getNullable)(e.altText)||"",className:(0,a.cn)(i,"block h-auto w-full",{"lg:hidden":h}),height:e?.nativeImageMobile?.height||856,width:e?.nativeImageMobile?.width||1284,src:f,priority:r,fetchPriority:r?"high":void 0})]})}function h({sys:e,title:n,subtext:r,locale:l}){let a="string"==typeof n&&n.trim().length>0;return(0,t.jsx)("div",{className:"bg-chalk flex max-w-100 items-center rounded-sm",children:(0,t.jsxs)("div",{className:"flex h-full w-full flex-col justify-center gap-4 p-4",children:[a&&(0,t.jsx)("h3",{...i.ContentfulLivePreview.getProps({entryId:e.id,fieldId:"title",locale:(0,o.normalizeLocale)(l)}),className:"heading-4 max-w-80 font-bold",children:n}),r&&(0,t.jsx)("span",{...i.ContentfulLivePreview.getProps({entryId:e.id,fieldId:"subtext",locale:(0,o.normalizeLocale)(l)}),className:"label pt-6",children:r})]})})}e.s(["default",0,function({sys:e,internalName:i,image:n,title:o,subtext:f,link:p,externalUrl:m,locale:g,resourceClassName:v,contentClassName:b,frameClassName:_,count:y,sizes:E,fillFrame:w=!1,variant:k,smartLink:x,priority:j=!1}){let C=(0,r.usePathname)(),I="string"==typeof o&&o.trim()||"string"==typeof f&&f.trim()||"Highlight image",N=E??(1===y?"100vw":"(max-width: 1024px) 100vw, 50vw"),T=n?(0,t.jsx)(d,{media:n,className:(0,a.cn)(v),sizes:N,fillFrame:w,priority:j}):null,A=(0,t.jsx)(h,{sys:e,title:o,subtext:f,locale:g}),S=()=>{(0,l.trackContentBlockInteraction)({content_block_name:o||"Highlight",content_block_internal_name:i??void 0,content_block_placement:C??void 0,content_block_url:x&&"href"in x?String(x.href):m??p??void 0,content_block_type:"highlight_image",item_list_name:"HighlightImage",item_list_id:e.id})};return"Legacy"===k?(0,t.jsxs)("div",{className:(0,a.cn)("bg-fog relative w-full overflow-hidden",_),children:[n&&(w?(0,t.jsx)(d,{media:n,className:(0,a.cn)(v),sizes:N,fillFrame:w,priority:j}):(0,t.jsx)(d,{media:n,className:(0,a.cn)(v),sizes:N,priority:j})),(0,t.jsx)("div",{className:(0,a.cn)("absolute bottom-0 left-0 max-w-100 p-4",b),children:x?(0,t.jsx)(s.default,{link:x,locale:g,className:(0,a.cn)("hover:opacity-100"),onClick:()=>{(0,l.trackContentBlockInteraction)({content_block_name:o||"Highlight",content_block_internal_name:i??void 0,content_block_placement:C??void 0,content_block_url:x&&"href"in x?String(x.href):void 0,content_block_type:"highlight_image",item_list_name:"HighlightImage",item_list_id:e.id})},children:A}):m?(0,t.jsx)("a",{href:m,className:(0,a.cn)("hover:opacity-100"),onClick:()=>{(0,l.trackContentBlockInteraction)({content_block_name:o||"Highlight",content_block_internal_name:i??void 0,content_block_placement:C??void 0,content_block_url:m,content_block_type:"highlight_image",item_list_name:"HighlightImage",item_list_id:e.id})},children:A}):(0,t.jsx)(c.Link,{href:(0,u.parseCmsUrl)(p),className:(0,a.cn)("hover:opacity-100"),onClick:()=>{(0,l.trackContentBlockInteraction)({content_block_name:o||"Highlight",content_block_internal_name:i??void 0,content_block_placement:C??void 0,content_block_url:p??void 0,content_block_type:"highlight_image",item_list_name:"HighlightImage",item_list_id:e.id})},children:A})})]}):(0,t.jsxs)("div",{className:(0,a.cn)("bg-fog relative w-full overflow-hidden",_),children:[x?(0,t.jsx)(s.default,{link:x,locale:g,className:(0,a.cn)("block"),"aria-label":I,onClick:S,children:T}):m?(0,t.jsx)("a",{href:m,className:(0,a.cn)("block"),"aria-label":I,onClick:S,children:T}):(0,t.jsx)(c.Link,{href:(0,u.parseCmsUrl)(p),className:(0,a.cn)("block"),"aria-label":I,onClick:S,children:T}),(0,t.jsx)("div",{className:(0,a.cn)("absolute bottom-0 left-0 max-w-100 p-4",b),children:x?(0,t.jsx)(s.default,{link:x,locale:g,className:(0,a.cn)("hover:opacity-100"),onClick:S,children:A}):m?(0,t.jsx)("a",{href:m,className:(0,a.cn)("hover:opacity-100"),onClick:S,children:A}):(0,t.jsx)(c.Link,{href:(0,u.parseCmsUrl)(p),className:(0,a.cn)("hover:opacity-100"),onClick:S,children:A})})]})}])},720042,e=>{"use strict";var t=e.i(336211),i=e.i(453033),n=e.i(310822);e.i(659619);var r=e.i(290729),l=e.i(142069),o=e.i(929537),a=e.i(425246);e.i(613680);var s=e.i(361951);function c({article:e,className:i="",locale:n}){let r,o=(0,l.normalizeLocale)(n),a=e&&"issue"in e?e.issue:void 0,u=e?.originallyPublishedAt,d=e?.timeToRead;return(a||u||d)&&(0,t.jsxs)("div",{className:`text-label-mono-2 ${i}`,children:[a&&(0,t.jsx)("span",{...s.ContentfulLivePreview.getProps({entryId:e?.sys.id||"",fieldId:"issue",locale:o}),children:a}),a&&u&&(0,t.jsx)("span",{"aria-hidden":"true",className:"mx-1",children:"•"}),u&&(0,t.jsx)("span",{...s.ContentfulLivePreview.getProps({entryId:e?.sys.id||"",fieldId:"originallyPublishedAt",locale:o}),children:Number.isNaN((r=new Date(u)).getTime())?"":new Intl.DateTimeFormat(o,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC"}).format(r)}),u&&d&&(0,t.jsx)("span",{"aria-hidden":"true",className:"mx-1",children:"•"}),d&&(0,t.jsxs)("span",{...s.ContentfulLivePreview.getProps({entryId:e?.sys.id||"",fieldId:"timeToRead",locale:o}),children:["[",d," min]"]})]})}e.s(["default",0,function(e){let{article:s,concept:u,locale:d,imageWidth:h,imageHeight:f}=e,p=(0,n.usePathname)(),m=(0,o.getArticleRoute)(s)||{pathname:"/article/[slug]",params:{slug:s.slug||"#"},query:{from:u}};return(0,t.jsx)(a.Link,{href:m,className:"article-link relative block",onClick:()=>{(0,r.trackContentBlockInteraction)({content_block_name:s.title||"ArticleTile",content_block_internal_name:s.internalName??void 0,content_block_placement:p??void 0,content_block_url:`article/${s.slug}`,content_block_type:"article_tile",item_list_name:"ArticleTile",item_list_id:s.sys.id})},children:(0,t.jsxs)("div",{className:"flex h-full flex-col border-b",children:[(0,t.jsx)("div",{className:"bg-productCardImage aspect-[4/5]",children:(0,l.extractImageUrl)(s.listingImage)&&(0,t.jsx)(i.default,{src:(0,l.extractImageUrl)(s.listingImage),alt:(0,l.extractImageAltText)(s.listingImage,s.title?`${s.title} listing image`:"Article listing image"),className:"h-full w-full object-cover",width:h||640,height:f||800,sizes:"(max-width: 768px) 50vw, 640px"})}),(0,t.jsxs)("div",{className:"flex min-h-[112px] flex-1 flex-col justify-between border-r p-4",children:[(0,t.jsx)("h5",{className:"heading-5",children:s.title}),(0,t.jsx)(c,{article:s,className:"text-gray-500",locale:d})]})]})})}],720042)},980279,e=>{"use strict";var t=e.i(336211),i=e.i(621664),n=e.i(842175),r=e.i(470024),l=e.i(790571),o=e.i(129923),a=e.i(975157),s=e.i(64659),c=e.i(345546),u=e.i(453033);function d(e){let i=e.alt||e.title,n=e.level??"h3";return(0,t.jsxs)("div",{className:(0,a.cn)(e.className,"bg-chalk flex h-[96px] w-full items-center overflow-hidden rounded-sm md:w-[350px] lmd:w-[400px]"),children:[e.url&&(0,t.jsx)("div",{className:"bg-sand flex h-[96px] min-w-[96px] items-center justify-center rounded-l-sm",children:(0,t.jsx)(u.default,{src:e.url,alt:i,width:76,height:76,sizes:"76px",className:"aspect-square size-[76px] object-contain mix-blend-multiply"})}),(0,t.jsxs)("div",{className:"flex h-full min-w-0 flex-1 flex-col justify-center gap-2 overflow-hidden px-7",children:[(0,t.jsx)(n,{className:"heading-5 truncate",children:e.title}),e.description&&(0,t.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-2",children:["string"==typeof e.description?(0,t.jsx)("span",{className:"label-mono-1",children:e.description}):e.description,e.descriptionTrailing]})]})]})}var h=e.i(425246),f=e.i(352455),p=e.i(344454);
1e.s(["default",0,function({product:e,className:u,keySuffix:m,onClick:g,defaultVariantSku:v}){let b=(0,i.useLocale)(),_=(0,n.useTranslations)(),{isB2B:y}=(0,l.useAuth)(),E=!0;try{let e=(0,o.useStore)();e&&"boolean"==typeof e.isCheckoutEnabled&&(E=e.isCheckoutEnabled)}catch{E=!0}let w=e?.price_tiers,k=e?.price_range,x=k?.minimum_price?.final_price?.currency,j=(0,r.useMemo)(()=>e?function(e){let t=e?.small_image?.url??void 0,i=e?.small_image?.label??void 0;if(e?.__typename!=="ConfigurableProduct")return{imageUrl:t,imageLabel:i,swatches:[]};let n=("variants"in e&&Array.isArray(e.variants)?e.variants:[])??[],r=(0,c.getProductAttr)(e,"con_skudefaultvariant"),l=new Set,o=[];for(let e of n){if(!e?.product)continue;let t=e.attributes?.find(e=>e?.code==="dom_skucolor"),i=t?.label?.trim();!i||l.has(i)||(l.add(i),o.push({sku:e.product.sku??"",url_key:e.product.url_key??"",color:i,hex:(0,s.getColorHex)(i),image_url:e.product.small_image?.url??""}))}if(r){let e=o.findIndex(e=>e.sku===r);if(e>0){let[t]=o.splice(e,1);t&&o.unshift(t)}}let a=r?n.find(e=>e?.product?.sku===r):null,u=n.find(e=>e?.product?.stock_status==="IN_STOCK"),d=a??u??n[0];return{imageUrl:d?.product?.small_image?.url||t,imageLabel:d?.product?.small_image?.label||i,swatches:o.length>=2?o:[]}}(e):{imageUrl:void 0,imageLabel:void 0,swatches:[]},[e]),[C,I]=(0,r.useState)(()=>v&&j.swatches.some(e=>e.sku===v)?v:null),N=j.swatches.find(e=>e.sku===C),T=N?.image_url||j.imageUrl,A=(()=>{let e=k?.minimum_price?.final_price?.value;if(null!=e&&e>0)return e;if(w&&w.length>0){let e=w[0]?.final_price?.value;if(null!=e)return e}return 0})(),S=k?.minimum_price?.regular_price?.value||0,O=(0,p.getDisplayPrice)(A,b,y),L=(0,p.getDisplayPrice)(S,b,y),D=!y&&E&&S>0&&S<99999&&A>0&&A<99999&&A<S,M=(0,r.useMemo)(()=>{if(!D)return null;let e=k?.minimum_price?.discount?.percent_off;return"number"==typeof e&&e>0?Math.round(e):S>0&&A<S?Math.round((S-A)/S*100):null},[D,k,S,A]),P=("en"!==b||y)&&A>0&&A<99999&&O>0?(0,f.formatCurrency)(O,b,{currency:x??void 0}):void 0,R=D&&L>0?(0,f.formatCurrency)(L,b,{currency:x??void 0}):void 0,U=(0,r.useMemo)(()=>{if(P)return D&&R?(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[M&&M>=1&&(0,t.jsxs)("span",{className:"save-badge bg-sale inline-flex h-4 items-center rounded-[2px] px-1.5 text-[11px] font-medium text-white",children:["-",M,"%"]}),(0,t.jsxs)("span",{className:"text-sale font-teka label-mono-1",children:[(0,t.jsxs)("span",{className:"sr-only",children:[_("product.priceInfo.salePriceLabel")," "]}),P]}),(0,t.jsxs)("s",{className:"text-oldPrice font-teka text-[13px] leading-[16px] line-through",children:[(0,t.jsxs)("span",{className:"sr-only",children:[_("product.priceInfo.originalPriceLabel")," "]}),R]})]}):P},[P,D,R,M,_]),z=e?.name||"Product",B=e?.sku??"",$=P?`${z} ${P}`:z,F=B?`${$} (${B})`:$,V=N?{v:N.sku}:void 0;return(0,t.jsxs)("div",{className:(0,a.cn)("relative isolate hover:opacity-100",u),children:[(0,t.jsx)(h.Link,{href:{pathname:"/product/[url_key]",params:{url_key:e?.url_key||""},...V?{query:V}:{}},"aria-label":F,className:"focus-visible:ring-primary absolute inset-0 z-10 rounded-sm focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",onClick:g},`${e?.sku}-${m}-link`),(0,t.jsx)(d,{title:String(e?.name),description:U,url:T||void 0,alt:j.imageLabel,descriptionTrailing:j.swatches.length>0?(0,t.jsxs)("ul",{className:"relative z-20 flex shrink-0 items-center gap-0.5","aria-label":"Available colors",children:[j.swatches.slice(0,5).map(e=>{let i=N?.sku===e.sku||!N&&e===j.swatches[0];return(0,t.jsx)("li",{children:(0,t.jsx)("button",{type:"button","aria-label":e.color,"aria-pressed":i,title:e.color,className:"focus-visible:ring-primary flex size-5 cursor-pointer items-center justify-center rounded-sm focus-visible:ring-2 focus-visible:outline-none",onClick:t=>{t.preventDefault(),t.stopPropagation(),I(e.sku)},children:(0,t.jsx)("span",{"aria-hidden":"true",className:(0,a.cn)("border-border block size-3 rounded-sm border",i&&"ring-primary ring-1 ring-offset-1"),style:{backgroundColor:e.hex}})})},e.sku)}),j.swatches.length>5&&(0,t.jsx)("li",{children:(0,t.jsxs)(h.Link,{href:{pathname:"/product/[url_key]",params:{url_key:e?.url_key||""},...N?{query:{v:N.sku}}:{}},"aria-label":`+${j.swatches.length-5} more colors`,title:`+${j.swatches.length-5} more colors`,className:"focus-visible:ring-primary text-muted-foreground hover:text-foreground flex size-5 cursor-pointer items-center justify-center rounded-sm text-xs font-medium leading-none focus-visible:ring-2 focus-visible:outline-none",onClick:e=>{e.stopPropagation()},children:["+",j.swatches.length-5]})},"more-swatches")]}):void 0},`${e?.sku}-${m}-tile`)]})}],980279)},726189,e=>{"use strict";var t=e.i(336211);e.i(613680);var i=e.i(361951),n=e.i(453033),r=e.i(290729),l=e.i(97447),o=e.i(993460),a=e.i(142069),s=e.i(975157),c=e.i(26806),u=e.i(519455),d=e.i(425246),h=e.i(105976);let f=new Set(["explore","read now","read more","learn more","shop now","discover","view","browse","see more","find out more","downloads","download","click here","more","details","see all","view all","shop"]);function p(e,t){if(!e||"string"!=typeof e)return null;let i=(e.split(/[?#]/)[0]??e).replace(/\.[a-z0-9]+$/i,"").split("/").filter(
1Boolean);if(0===i.length)return null;let n=t?.trim().toLowerCase().replace(/\s+/g," ");for(let e=i.length-1;e>=0;e-=1){let t=i[e];if(!t||/^\d+$/.test(t)||/^\[.+\]$/.test(t))continue;let r=t.replace(/[-_]+/g," ").toLowerCase();if(!n||r!==n)return t.replace(/[-_]+/g," ").replace(/\b\w/g,e=>e.toUpperCase())}return null}e.s(["default",0,function({label:e,url:m,externalLink:g,className:v,variant:b,locale:_,sys:y,internalName:E,specialLinks:w,smartLink:k,ariaLabelContext:x}){let j=(0,o.useGlobalVariables)(),C=window.location.pathname;if(!e||!k&&!m)return null;let I=e.trim().toLowerCase(),N="apple app store"===I||"apple app-store"===I,T="google play store"===I||"google play-store"===I,A=N||T,S="find service provider"===I||"find a service provider"===I,O="find dealer"===I||"find a dealer"===I,L=N?(0,t.jsx)(n.default,{src:"/images/app-store.svg",alt:"Download on the App Store",width:200,height:68,unoptimized:!0,loading:"eager",className:"object-contain"}):T?(0,t.jsx)(n.default,{src:"/images/google-play.svg",alt:"Get it on Google Play",width:200,height:68,loading:"eager",className:"object-contain"}):null,D={className:(0,s.cn)(v,A?"flex cursor-pointer transition-opacity hover:opacity-80 h-10 w-full":(0,u.buttonVariants)({variant:"Secondary Button"===b?"secondary":"default"}))},M=function(e,{externalLink:t,context:i,url:n,smartLink:r}){let l=i?.trim()?i.trim():f.has(e.trim().toLowerCase())?function(e,t,i){if(t&&"object"==typeof t){if(t.title&&t.title.trim())return t.title.trim();if(t.internalEntry?.slug){let e=p(t.internalEntry.slug,i);if(e)return e}if(t.externalUrl){let e=p(new URL(t.externalUrl,"http://x").pathname,i);if(e)return e}}if("string"==typeof e)return p(e,i);if(e&&"object"==typeof e){let{pathname:t,params:n}=e;if(t)return p(Object.entries(n??{}).reduce((e,[t,i])=>{let n=Array.isArray(i)?i.join("/"):i;return e.replace(`[...${t}]`,n).replace(`[${t}]`,n)},t),i)}return null}(n,r,e):null,o=l?`${e}: ${l}`:e;return t?`${o} (opens in new tab)`:o}(e,{externalLink:g,context:x,url:m,smartLink:k});return"Vehicle Fitment Action"===w?(0,t.jsx)(h.default,{...i.ContentfulLivePreview.getProps({entryId:y.id,fieldId:"label",locale:(0,a.normalizeLocale)(_)}),...D,onClick:()=>{(0,r.trackContentBlockInteraction)({content_block_name:"Outfit Your Vehicle",content_block_internal_name:E??"Vehicle Fitment Action",content_block_placement:C??void 0,content_block_url:"open modal",content_block_type:"hero_action_button"},j)},children:(0,t.jsx)("span",{children:e})}):k?(0,t.jsx)(c.default,{link:k,locale:_,...D,ariaLabel:M,onClick:()=>{(0,r.trackContentBlockInteraction)({content_block_name:e||"LinkAction",content_block_placement:C??void 0,content_block_internal_name:E??void 0,content_block_url:k&&"object"==typeof k&&"href"in k?String(k.href):void 0,content_block_type:"link_action_smartlink",item_list_name:"LinkAction",item_list_id:y?.id},j),S&&(0,l.trackFindAServiceProvider)({find_serviceprovider_type:"link_action",items:[]},j),O&&(0,l.trackFindADealer)({find_dealer_type:"dealer_locator",items:[]},j)},children:(0,t.jsx)("span",{...i.ContentfulLivePreview.getProps({entryId:y.id,fieldId:"label",locale:(0,a.normalizeLocale)(_)}),children:A?L:e})}):g?(0,t.jsx)("a",{...i.ContentfulLivePreview.getProps({entryId:y.id,fieldId:"label",locale:(0,a.normalizeLocale)(_)}),...D,href:m,target:"_blank",rel:"noopener noreferrer","aria-label":M,onClick:()=>{(0,r.trackContentBlockInteraction)({content_block_name:e||"LinkAction",content_block_placement:C??void 0,content_block_internal_name:E??void 0,content_block_url:m,content_block_type:"link_action_external",item_list_name:"LinkAction",item_list_id:y?.id},j),S&&(0,l.trackFindAServiceProvider)({find_serviceprovider_type:"link_action",items:[]},j),O&&(0,l.trackFindADealer)({find_dealer_type:"dealer_locator",items:[]},j)},children:A?L:e}):(0,t.jsx)(d.Link,{...i.ContentfulLivePreview.getProps({entryId:y.id,fieldId:"label",locale:(0,a.normalizeLocale)(_)}),...D,href:m,"aria-label":M,onClick:()=>{let t;"string"==typeof m?t=m:m&&"object"==typeof m&&"pathname"in m&&(t=m.pathname),(0,r.trackContentBlockInteraction)({content_block_name:e||"LinkAction",content_block_internal_name:E??void 0,content_block_placement:C??void 0,content_block_url:t,content_block_type:"link_action_internal",item_list_name:"LinkAction",item_list_id:y?.id},j),S&&(0,l.trackFindAServiceProvider)({find_serviceprovider_type:"link_action",items:[]},j),O&&(0,l.trackFindADealer)({find_dealer_type:"dealer_locator",items:[]},j)},children:A?L:e})}])},105976,e=>{"use strict";var t=e.i(336211),i=e.i(842175),n=e.i(470024),r=e.i(879664),l=e.i(993460),o=e.i(509037),a=e.i(975157),s=e.i(229441),c=e.i(561993),u=e.i(794331);e.s(["default",0,function({className:e,label:d,children:h,asChild:f,source:p="icon_click",submitButtonText:m="Shop Now",onVehicleSelected:g,...v}){let b=(0,i.useTranslations)("vehicle"),_=(0,l.useGlobalVariables)(),{currentVehicle:y,isLoaded:E,clearVehicle:w,getVehicleDisplayName:k}=(0,o.useVehicle)(),x=(0,n.useRef)(!1),j=(0,n.useRef)(null),[C,I]=(0,n.use
1State)(!1),N=(0,n.useCallback)(e=>{if(e)x.current=!1,j.current=y,(0,r.trackVehicleSelectorOpen)({vehicle_selector_source:p},_);else if(!x.current&&j.current){let e=j.current;(0,r.trackVehicleSelectorAbandon)({vehicle_year:e.year.label,vehicle_make:e.make.name,vehicle_model:e.model.name,vehicle_option:e.option?.name,vehicle_last_field:"option",vehicle_selector_source:p},_)}},[_,y,p]),T=(0,n.useCallback)(e=>{x.current=!0,g?.(e),I(!1)},[g]);return(0,t.jsxs)(c.Drawer,{direction:"right",open:C,onOpenChange:e=>{I(e),N(e)},children:[(0,t.jsx)(c.DrawerTrigger,{asChild:f,className:(0,a.cn)("cursor-pointer",e),...v,children:h||d||(E&&y?k(y):b("outfitYourVehicle"))}),(0,t.jsxs)(c.DrawerContent,{"aria-describedby":"vehicle-selector-description",children:[(0,t.jsxs)(c.DrawerHeader,{children:[(0,t.jsx)(c.DrawerTitle,{children:y?`Change Vehicle (${k(y)})`:"Outfit Your Vehicle"}),(0,t.jsx)(c.DrawerClose,{children:(0,t.jsx)(s.CloseIcon,{className:"h-4 w-4"})})]}),(0,t.jsxs)("div",{className:"px-4 py-4",children:[y&&(0,t.jsxs)("div",{className:"mb-4 rounded-lg bg-gray-100 p-3",children:[(0,t.jsx)("p",{className:"mb-2 text-sm text-gray-600",children:"Current Vehicle:"}),(0,t.jsx)("p",{className:"font-medium",children:k(y)}),(0,t.jsx)("button",{onClick:w,className:"mt-2 text-sm text-blue-600 underline hover:no-underline",children:"Clear Selection"})]}),(0,t.jsx)(u.default,{showLabels:!0,autoRedirect:!1,showSubmitButton:!0,submitButtonText:m,onVehicleSelected:T,layout:"vertical",columns:1})]}),(0,t.jsx)(c.DrawerFooter,{children:(0,t.jsx)(c.DrawerClose,{children:"Cancel"})})]})]})}])}]);

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.