1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,375041,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){console.warn("[react-gtm]",e)}},994878,(e,t,n)=>{"use strict";var i,a=(i=e.r(375041))&&i.__esModule?i:{default:i};t.exports={tags:function(e){var t=e.id,n=e.events,i=e.dataLayer,o=e.dataLayerName,s=e.preview,r=">m_auth="+e.auth,l=">m_preview="+s;t||(0,a.default)("GTM Id is required");var d="\n (function(w,d,s,l,i){w[l]=w[l]||[];\n w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', "+JSON.stringify(n).slice(1,-1)+"});\n var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';\n j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'"+r+l+">m_cookies_win=x';\n f.parentNode.insertBefore(j,f);\n })(window,document,'script','"+o+"','"+t+"');";return{iframe:'\n <iframe src="https://www.googletagmanager.com/ns.html?id='+t+r+l+'>m_cookies_win=x"\n height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>',script:d,dataLayerVar:this.dataLayer(i,o)}},dataLayer:function(e,t){return"\n window."+t+" = window."+t+" || [];\n window."+t+".push("+JSON.stringify(e)+")"}}},884861,(e,t,n)=>{"use strict";var i,a=(i=e.r(994878))&&i.__esModule?i:{default:i};t.exports={dataScript:function(e){var t=document.createElement("script");return t.innerHTML=e,t},gtm:function(e){var t=a.default.tags(e);return{noScript:function(){var e=document.createElement("noscript");return e.innerHTML=t.iframe,e},script:function(){var e=document.createElement("script");return e.innerHTML=t.script,e},dataScript:this.dataScript(t.dataLayerVar)}},initialize:function(e){var t=e.gtmId,n=e.events,i=e.dataLayer,a=e.dataLayerName,o=e.auth,s=e.preview,r=this.gtm({id:t,events:void 0===n?{}:n,dataLayer:i||void 0,dataLayerName:void 0===a?"dataLayer":a,auth:void 0===o?"":o,preview:void 0===s?"":s});i&&document.head.appendChild(r.dataScript),document.head.insertBefore(r.script(),document.head.childNodes[0]),document.body.insertBefore(r.noScript(),document.body.childNodes[0])},dataLayer:function(e){var t=e.dataLayer,n=e.dataLayerName,i=void 0===n?"dataLayer":n;if(window[i])return window[i].push(t);var o=a.default.dataLayer(t,i),s=this.dataScript(o);document.head.insertBefore(s,document.head.childNodes[0])}}},727778,(e,t,n)=>{"use strict";var i;t.exports=((i=e.r(884861))&&i.__esModule?i:{default:i}).default},420470,e=>{"use strict";let t;var n,i,a,o,s,r,l,d,c,u,h,m,p,g,f,b,v,y,x,w,k,C,E,_,j,I,R,L,T,P,S,A,N,M,$,z,B=e.i(843476),O=e.i(500932),D=e.i(217255),H=e.i(398617),q=e.i(727778);function V(){return window.self!==window.top}let F={debug:!1,defaultDataAttributes:{languageCodename:void 0,environmentId:void 0},forceWebSpotlightMode:!1,isInsideWebSpotlight:!1,queryParam:"ksl-enabled",baseUrl:"kontent.ai"};function Q(e){return e.forceWebSpotlightMode||V()&&e.isInsideWebSpotlight}function U(e){return e.webSpotlightOrigin??`https://app.${e.baseUrl}`}function K(e){var t,n;let i;return!e||(t=e,n=w.Highlight,i=t.getAttribute(x.DisableFeatures),i?.toLowerCase().includes(n))?k.None:e.hasAttribute(y.ElementCodename)?k.Element:e.hasAttribute(y.ComponentId)?k.ContentComponent:e.hasAttribute(y.ItemId)?k.ContentItem:k.None}(n=y||(y={})).AddButtonInsertPosition="data-kontent-add-button-insert-position",n.ElementCodename="data-kontent-element-codename",n.ComponentId="data-kontent-component-id",n.ItemId="data-kontent-item-id",n.LanguageCodename="data-kontent-language-codename",n.EnvironmentId="data-kontent-environment-id",(i=x||(x={})).AddButton="data-kontent-add-button",i.AddButtonRenderPosition="data-kontent-add-button-render-position",i.DisableFeatures="data-kontent-disable-features",(w||(w={})).Highlight="highlight",(a=k||(k={})).None="",a.Element="element",a.ContentComponent="content-component",a.ContentItem="content-item";let Z=`[${x.DisableFeatures}*="${w.Highlight}"]`,W=`*[${y.ElementCodename}]:not(${Z})`,G=`*[${y.ComponentId}]:not([${y.ElementCodename}
1]):not(${Z})`,Y=`*[${y.ItemId}]:not([${y.ComponentId}]):not([${y.ElementCodename}]):not(${Z})`,J=`*[${x.AddButton}]`,X=`${W}, ${G}, ${Y}, ${J}`,ee=`${W}, ${Y}`;function et(e,t){let n=Q(t);return t.debug||n?e.querySelectorAll(X):e.querySelectorAll(ee)}function en(e,t){return ei(e,t)||ea(e,t)}function ei(e,t){switch(K(e)){case k.None:return!1;case k.Element:case k.ContentItem:return!0;case k.ContentComponent:return t.debug||Q(t)}}function ea(e,t){return((Q(t)||t.debug)&&e&&e.hasAttribute(x.AddButton))??!1}class eo extends Error{constructor(e){super(e),this.name="AssertionError",Object.setPrototypeOf(this,eo.prototype)}}class es extends Error{constructor(e){super(e),this.name="NotImplementedError",Object.setPrototypeOf(this,es.prototype)}}class er extends Error{constructor(e){super(e),this.name="InvalidEnvironmentError",Object.setPrototypeOf(this,er.prototype)}}class el extends Error{constructor(e){super(e),this.name="NotInitializedError",Object.setPrototypeOf(this,el.prototype)}}function ed(e){let t=e.baseUrl??F.baseUrl;return`https://app.${t}/goto/edit-item/project/${e.environmentId}/variant-codename/${e.languageCodename}/item/${e.itemId}`}(o=C||(C={})).After="after",o.Before="before",o.End="end",o.Start="start",(s=E||(E={})).CreateComponent="CreateComponent",s.CreateLinkedItem="CreateLinkedItem",s.InsertLinkedItem="InsertLinkedItem",(r=_||(_={})).LinkedItems="LinkedItems",r.RichText="RichText",r.Unknown="Unknown",(l=j||(j={})).CreateNew="createNew",l.Edit="edit",l.ViewParent="viewParent",(d=I||(I={})).ItemNotTranslated="ItemNotTranslated",d.Ok="Ok",d.PermissionMissing="PermissionMissing",d.RteWithForbiddenComponents="RteWithForbiddenComponents",d.Unknown="Unknown",(c=R||(R={})).ElementClicked="kontent-smart-link:element:clicked",c.ContentItemClicked="kontent-smart-link:content-item:clicked",c.ContentComponentClicked="kontent-smart-link:content-component:clicked",c.Initialized="kontent-smart-link:initialized",c.Status="kontent-smart-link:status",c.AddInitial="kontent-smart-link:add:initial",c.AddAction="kontent-smart-link:add:action",c.RefreshPreview="kontent-smart-link:preview:refresh",c.UpdatePreview="kontent-smart-link:preview:update",c.PreviewIFrameCurrentUrl="kontent-smart-link:preview:current-url",c.PreviewIFrameCurrentUrlResponse="kontent-smart-link:preview:current-url:response",(L||(L={})).AddInitialResponse="kontent-smart-link:add:initial:response",(u=T||(T={}))[u.Debug=1]="Debug",u[u.Info=2]="Info",u[u.Warn=3]="Warn",u[u.Error=4]="Error";let ec=T.Info;function eu(...e){ec<=T.Error&&console.error("[KSL][Error]: ",...e)}function eh(...e){ec<=T.Warn&&console.warn("[KSL][Warning]: ",...e)}function em(...e){ec<=T.Info&&console.info("[KSL][Info]: ",...e)}function ep(...e){ec<=T.Debug&&console.log("[KSL][Debug]: ",...e)}function eg(...e){ec<=T.Info&&console.groupCollapsed(...e)}function ef(){ec<=T.Info&&console.groupEnd()}let eb=(e,t)=>{let n=e.parsed.languageCodename??t.languageCodename,i=e.parsed.environmentId??t.environmentId;return n&&i?{success:!0,data:{languageCodename:n,projectId:i}}:{success:!1,missing:[...n?[]:["languageCodename"],...i?[]:["environmentId"]]}};function ev(e,t){let n=eb(e,t);return e.parsed.itemId&&n.success?{success:!0,data:{languageCodename:n.data.languageCodename,projectId:n.data.projectId,itemId:e.parsed.itemId}}:{success:!1,missing:[...e.parsed.itemId?[]:["itemId"],...n.success?[]:n.missing]}}function ey(e,t){let n,i=eb(e,t.defaultDataAttributes),a=(n=(e=>{switch(e){case"after":return C.After;case"before":return C.Before;case"start":return C.Start;default:return C.End}})(e.parsed.placement))!==C.After&&n!==C.Before||e.parsed.targetId?{success:!0,data:{placement:n,targetId:e.parsed.targetId??void 0}}:{success:!1,missing:["targetId"]};return e.parsed.itemId&&e.parsed.elementCodename&&a.success&&i.success?(t.debug&&ex(e.debugData,"[KSL]: Parsed add button data attributes"),{success:!0,data:{projectId:i.data.projectId,languageCodename:i.data.languageCodename,itemId:e.parsed.itemId,contentComponentId:e.parsed.contentComponentId??void 0,insertPosition:a.data,elementCodename:e.parsed.elementCodename}}):(ex(e.debugData,"[KSL]: Parsing add button data attributes failed"),{success:!1,missing:[...e.parsed.itemId?[]:["itemId"],...e.parsed.elementCodename?[]:["elementCodename"],...a.success?[]:a.missing,...i.success?[]:i.missing]})}let ex=(e,t)=>
1{eg(t),e.forEach(e=>{eg(e.element),e.parsedAttributes.length>0&&(em("Resolved attributes:"),e.parsedAttributes.forEach(e=>{em(`${e.token}: ${e.dataAttribute}: ${e.value}`)})),e.skippedAttributes.length>0&&(em("Parsed Kontent.ai attributes:"),e.skippedAttributes.forEach(e=>{em(`${e.dataAttribute}: ${e.value}`)})),ef()}),ef()};function ew(e,t){if(!e){let e=new eo(t);throw eu(e),e}}function ek(e){let t=function(e){switch(e){case C.After:case C.Before:return eL;default:return eT}}(e.getAttribute(y.AddButtonInsertPosition));return ep("Parsing add button data attributes for element: ",e),ep("Parsing values from data attributes following this pattern: ",t),eC(t,e)}let eC=(e,t)=>{if(!t||0===e.length)return{parsed:{},debugData:[]};let n=Object.values(y).map(e=>{let n=t.getAttribute(e);return n?{dataAttribute:e,value:n}:null}).filter(e=>null!==e),i=function(e,t){let n=new Set,i=[];for(let a of e){let e=t.find(e=>a.dataAttributes.includes(e.dataAttribute)&&!n.has(e.dataAttribute));if(e||!a.optional){if(!e)break;n.add(e.dataAttribute),i.push({token:a.key,value:e.value,dataAttribute:e.dataAttribute})}}return i}(e,n),a=e.findIndex(e=>e.key===i.at(-1)?.token),o=eC(e.slice(a+1),t.parentElement);return{parsed:{...Object.fromEntries(i.map(e=>[e.token,e.value])),...o.parsed},debugData:[...o.debugData,...n.length>0?[{element:t,parsedAttributes:n.filter(e=>void 0!==i.find(t=>t.dataAttribute===e.dataAttribute)).map(e=>({token:i.find(t=>t.dataAttribute===e.dataAttribute)?.token??function(e){throw Error(e)}("[Parser]: Token not found"),dataAttribute:e.dataAttribute,value:e.value})),skippedAttributes:n.filter(e=>void 0===i.find(t=>t.dataAttribute===e.dataAttribute)).map(e=>({dataAttribute:e.dataAttribute,value:e.value}))}]:[]]}},eE=[{key:"languageCodename",dataAttributes:[y.LanguageCodename]},{key:"environmentId",dataAttributes:[y.EnvironmentId]}],e_=[{key:"itemId",dataAttributes:[y.ItemId]},...eE],ej=[{key:"contentComponentId",dataAttributes:[y.ComponentId]},...e_],eI=[{key:"elementCodename",dataAttributes:[y.ElementCodename]},{key:"contentComponentId",dataAttributes:[y.ComponentId],optional:!0},...e_],eR=[{key:"elementCodename",dataAttributes:[y.ElementCodename]},{key:"contentComponentId",dataAttributes:[y.ComponentId],optional:!0},{key:"itemId",dataAttributes:[y.ItemId]},...eE],eL=[{key:"placement",dataAttributes:[y.AddButtonInsertPosition]},{key:"targetId",dataAttributes:[y.ComponentId,y.ItemId]},...eR],eT=[{key:"placement",dataAttributes:[y.AddButtonInsertPosition],optional:!0},...eR];function eP(e){let t=window.getComputedStyle(e);return{isPositioned:"static"!==t.getPropertyValue("position"),isContentClipped:t.getPropertyValue("overflow").split(" ").some(e=>["auto","scroll","clip","hidden"].includes(e))}}function eS(e){if(!e)return[0,0];let t=e.offsetParent;if(!t)return[0,0];let n=e=>{if(t.isSameNode(e)||!e)return[0,0];let[i,a]=n(e.parentElement);return[i+e.scrollTop,a+e.scrollLeft]};return n(e.parentElement)}function eA(e){let t=document.createElement("template");return t.innerHTML=e,t}"u"<typeof window&&(e.g.HTMLElement=null);class eN extends HTMLElement{static _template=null;static get is(){throw new es('KSLCustomElement: "is" getter is not implemented for this custom element.')}static get template(){return this._template??=this.initializeTemplate(),this._template}constructor(){super();const e=Object.getPrototypeOf(this).constructor;this.attachShadow({mode:"open"}).appendChild(e.template.content.cloneNode(!0))}static define(){if("u"<typeof window)throw new er("KSLCustomElement: custom elements can only be defined in a browser environment.");let e=window.customElements.get(this.is);return e?Promise.resolve(e):(customElements.define(this.is,this),customElements.whenDefined(this.is))}static initializeTemplate(){throw new es('KSLCustomElement: "initializeTemplate" method should be implemented for every component.')}updateAttribute(e,t){null!==t&&t?this.setAttribute(e,t.toString()):this.removeAttribute(e)}dispatchAsyncEvent(e,t,n=null){return new Promise((i,a)=>{let o=null!==n?window.setTimeout(a,n):0,s=new CustomEvent(e,{detail:{eventData:t,onResolve:e=>{window.clearTimeout(o),i(e)},onReject:e=>{window.clearTimeout(o),a(e)}}});this.dispatchEvent(s)})}}(h=P||(P={})).Bottom="bottom",h.BottomEnd="bottom-end",h.BottomStart="bottom-start",h.Left="left",h.LeftEnd="left-end",h.LeftStart="left-start",h.None="",h.Right="right",h.RightEnd="right-end",h.RightStart="right-start",h.Top="top",h.TopEnd="top-end",h.TopStart="top-start";class eM extends eN{get position(){return P.None}targetRef=null;connectedCallback(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1")}disconnectedCallback(){this.targetRef=null}attachTo(e){this.targetRef=e}calculateTopOffset(e,t){switch(this.position){case P.TopStart:case P.Top:case P.TopEnd:return-e.height;case P.BottomStart:case P.Bottom:case P.BottomEnd:return t.height;case P.Left:case P.Right:return(t.height-e.height)/2;case P.LeftEnd:case P.RightEnd:return t.height-e.height;case P.LeftStart:case P.RightStart:case P.None:return 0}}calculateLeftOffset(e,t){switch(this.position){case P.Top:case P.Bottom:return(t.width-e.width)/2;case P.TopEnd:case P.BottomEnd:return t.width-e.width;case P.LeftStart:case P.Left:case P.LeftEnd:return-e.width;case P.RightStart:case P.Right:case P.RightEnd:return t.width;case P.TopStart:case P.BottomStart:case P.None:return 0}}}(m=S||(S={}
1)).BackgroundDefault="rgba(255, 255, 255, 1)",m.BackgroundDefaultDisabled="rgba(223, 223, 223, 1)",m.BackgroundDefaultHover="rgba(21, 21, 21, 0.1)",m.BackgroundDefaultSelected="rgba(255, 240, 239, 1)",m.BackgroundSecondary="rgba(20, 22, 25, 1)",m.Primary="rgba(219, 60, 0, 1)",m.PrimaryHover="rgba(149, 48, 0, 1)",m.PrimaryTransparent="rgba(219, 60, 0, 0.5)",m.TextDefault="rgba(21, 21, 21, 1)",m.TextDefaultDisabled="rgba(140, 140, 140, 1)",m.TextSecondary="rgba(255, 255, 255, 1)",(p=A||(A={})).Default="0 8px 32px rgba(16, 33, 60, 0.24), 0 0 8px rgba(0, 0, 0, 0.03)",p.Primary="0 8px 10px rgba(219, 60, 0, 0.2), 0 6px 20px rgba(219, 60, 0, 0.12), 0 8px 14px rgba(219, 60, 0, 0.14)";let e$=` 2 <style> 3 :host { 4 --arrow-size: var(--ksl-pop-up-arrow-size, 12px); 5 --background-color: var(--ksl-pop-up-background-color, ${S.BackgroundDefault}); 6 --border-radius: var(--ksl-pop-up-border-radius, 4px); 7 --box-shadow: var(--ksl-pop-up-box-shadow, ${A.Default}); 8 --color: var(--ksl-pop-up-color, ${S.TextDefault}); 9 --padding: var(--ksl-pop-up-padding, 8px 8px); 10 11 display: block; 12 position: absolute; 13 opacity: 0; 14 z-index: calc(var(--ksl-z-index, 9000) + 1000); 15 transition: opacity 250ms ease-in-out; 16 } 17 18 :host([visible]) { 19 opacity: 1; 20 } 21 22 :host(:focus) { 23 outline: none; 24 } 25 26 .ksl-pop-up__content { 27 display: flex; 28 flex-direction: row; 29 justify-content: space-around; 30 align-items: center;
31 box-shadow: var(--box-shadow); 32 background-color: var(--background-color); 33 padding: var(--padding); 34 border-radius: var(--border-radius); 35 font-size: 12px; 36 line-height: 16px; 37 font-weight: normal; 38 color: var(--color); 39 } 40 41 :host([position="${P.RightStart}"]) .ksl-pop-up__content, 42 :host([position="${P.Right}"]) .ksl-pop-up__content, 43 :host([position="${P.RightEnd}"]) .ksl-pop-up__content { 44 margin-left: var(--arrow-size); 45 } 46 47 :host([position="${P.LeftStart}"]) .ksl-pop-up__content, 48 :host([position="${P.Left}"]) .ksl-pop-up__content, 49 :host([position="${P.LeftEnd}"]) .ksl-pop-up__content { 50 margin-right: var(--arrow-size); 51 } 52 53 :host([position="${P.BottomStart}"]) .ksl-pop-up__content, 54 :host([position="${P.Bottom}"]) .ksl-pop-up__content, 55 :host([position="${P.BottomEnd}"]) .ksl-pop-up__content { 56 margin-top: var(--arrow-size); 57 } 58 59 :host([position="${P.TopStart}"]) .ksl-pop-up__content, 60 :host([position="${P.Top}"]) .ksl-pop-up__content, 61 :host([position="${P.TopEnd}"]) .ksl-pop-up__content { 62 margin-bottom: var(--arrow-size); 63 } 64 65 .ksl-pop-up__arrow { 66 position: absolute; 67 width: 0; 68 height: 0; 69 margin: 0 .25rem; 70 } 71 72 :host([position="${P.RightStart}"]) .ksl-pop-up__arrow, 73 :host([position="${P.Right}"]) .ksl-pop-up__arrow, 74 :host([position="${P.RightEnd}"]) .ksl-pop-up__arrow { 75 left: -(var(--arrow-size)); 76 border-right: var(--arrow-size) solid var(--background-color); 77 border-top: var(--arrow-size) solid transparent; 78 border-bottom: var(--arrow-size) solid transparent; 79 } 80 81 :host([position="${P.LeftStart}"]) .ksl-pop-up__arrow, 82 :host([position="${P.Left}"]) .ksl-pop-up__arrow, 83 :host([position="${P.LeftEnd}"]) .ksl-pop-up__arrow { 84 right: -(var(--arrow-size)); 85 border-top: var(--arrow-size) solid transparent; 86 border-left: var(--arrow-size) solid var(--background-color); 87 border-bottom: var(--arrow-size) solid transparent; 88 } 89 90 :host([position="${P.BottomStart}"]) .ksl-pop-up__arrow, 91 :host([position="${P.Bottom}"]) .ksl-pop-up__arrow, 92 :host([position="${P.BottomEnd}"]) .ksl-pop-up__arrow { 93 top: 0; 94 border-left: var(--arrow-size) solid transparent; 95 border-right: var(--arrow-size) solid transparent; 96 border-bottom: var(--arrow-size) solid var(--background-color); 97 } 98 99 :host([position="${P.TopStart}"]) .ksl-pop-up__arrow, 100 :host([position="${P.Top}"]) .ksl-pop-up__arrow, 101 :host([position="${P.TopEnd}"]) .ksl-pop-up__arrow { 102 bottom: 0; 103 border-top: var(--arrow-size) solid var(--background-color); 104 border-left: var(--arrow-size) solid transparent; 105 border-right: var(--arrow-size) solid transparent; 106 } 107 108 :host([position="${P.Top}"]) .ksl-pop-up__arrow, 109 :host([position="${P.Bottom}"]) .ksl-pop-up__arrow { 110 left: calc(50% - var(--arrow-size) - 0.25rem); 111 } 112 113 :host([position="${P.TopEnd}"]) .ksl-pop-up__arrow, 114 :host([position="${P.BottomEnd}"]) .ksl-pop-up__arrow { 115 right: 0; 116 } 117 118 :host([position="${P.TopStart}"]) .ksl-pop-up__arrow, 119 :host([position="${P.BottomStart}"]) .ksl-pop-up__arrow { 120 left: 0; 121 } 122 123 :host([position="${P.Left}"]) .ksl-pop-up__arrow, 124 :host([position="${P.Right}"]) .ksl-pop-up__arrow { 125 top: 8px; 126 } 127 128 :host([position="${P.LeftEnd}"]) .ksl-pop-up__arrow, 129 :host([position="${P.RightEnd}"]) .ksl-pop-up__arrow { 130 bottom: 0; 131 } 132 133 :host([position="${P.LeftStart}"]) .ksl-pop-up__arrow, 134 :host([position="${P.RightStart}"]) .ksl-pop-up__arrow { 135 top: 0; 136 } 137 </style> 138 <div class="ksl-pop-up__content"> 139 <slot></slot> 140 </div> 141 <div class="ksl-pop-up__arrow"/> 142`;class ez extends eM{get position(){return this.getAttribute("position")??P.Bottom}set position(e){this.updateAttribute("position",e)}get visible(){return this.hasAttribute("visible")}set visible(e){this.updateAttribute("visible",e)}static initializeTemplate(){return eA(e$)}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","tooltip"),window.addEventListener("resize",this.adjustPosition,{capture:!0}),window.addEventListener("scroll",this.adjustPosition,{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.adjustPosition,{capture:!0}),window.removeEventListener("scroll",this.adjustPosition,{capture:!0})}attachTo=e=>{super.attachTo(e),this.adjustPosition()};adjustPosition=()=>{let e,t;if(!this.targetRef||!this.offsetParent)return;let n=this.getBoundingClientRect(),i=this.targetRef.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),o=this.offsetParent.isSameNode(document.body),s=this.offsetParent.isSameNode(this.targetRef),r=this.calculateTopOffset(n,i),l=this.calculateLeftOffset(n,i);if(s)e=r,t=l;else{let[n,a]=eS(this.parentElement);e=i.top+r+(o?window.pageYOffset:n),t=i.left+l+(o?window.pageXOffset:a)}o?(a.top+e+n.height>window.innerHeight?(this.style.bottom=`${a.height}px`,this.style.top="auto"):(this.style.bottom="auto",this.style.top=`${Math.max(-a.top,e)}px`),a.left+t+n.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.right="auto",this.style.left=`${Math.max(-a.left,t)}px`)):(this.style.right="auto",this.style.left=`${t}px`,this.style.bottom="auto",this.style.top=`${e}px`)}}let eB=` 143 <style> 144 :host { 145 --ksl-pop-up-arrow-size: 4px; 146 --ksl-pop-up-background-color: var(--ksl-color-background-secondary, ${S.Backgroun
146dSecondary}); 147 --ksl-pop-up-box-shadow: none; 148 --ksl-pop-up-color: var(--ksl-color-text-secondary, ${S.TextSecondary}); 149 --ksl-pop-up-padding: 4px 6px; 150 } 151 </style> 152`;class eO extends ez{static get is(){return"ksl-tooltip"}static initializeTemplate(){let e=ez.initializeTemplate(),t=eA(eB);return e.content.appendChild(t.content.cloneNode(!0)),e}}class eD extends eN{static get observedAttributes(){return["tooltip-disabled","tooltip-message"]}get tooltipDisabled(){return this.hasAttribute("tooltip-disabled")}set tooltipDisabled(e){this.updateAttribute("tooltip-disabled",e)}get tooltipMessage(){return this.getAttribute("tooltip-message")}set tooltipMessage(e){this.updateAttribute("tooltip-message",e)}get tooltipPosition(){return this.getAttribute("tooltip-position")??P.Bottom}set tooltipPosition(e){this.updateAttribute("tooltip-position",e)}tooltipRef=null;connectedCallback(){this.addEventListener("focus",this.showTooltip),this.addEventListener("mouseenter",this.showTooltip),this.addEventListener("blur",this.hideTooltip),this.addEventListener("mouseleave",this.hideTooltip)}disconnectedCallback(){this.hideTooltip(),this.removeEventListener("focus",this.showTooltip),this.removeEventListener("mouseenter",this.showTooltip),this.removeEventListener("blur",this.hideTooltip),this.removeEventListener("mouseleave",this.hideTooltip)}attributeChangedCallback(e,t,n){"tooltip-disabled"===e?n&&this.hideTooltip():"tooltip-message"!==e||n||this.hideTooltip()}showTooltip=()=>{if(this.tooltipRef&&this.hideTooltip(),!this.tooltipMessage||this.tooltipDisabled)return;let e=document.createElement(eO.is);e.innerText=this.tooltipMessage,this.tooltipRef=document.body.appendChild(e),this.tooltipRef.position=this.tooltipPosition,this.tooltipRef.attachTo(this),this.tooltipRef.visible=!0};hideTooltip=()=>{this.tooltipRef&&(this.tooltipRef.visible=!1,this.tooltipRef.remove(),this.tooltipRef=null)}}(g=N||(N={})).CollapseScheme="icon-collapse-scheme",g.Edit="icon-edit",g.Plus="icon-plus",g.PlusPuzzle="icon-plus-puzzle",g.Puzzle="icon-puzzle",g.Spinner="icon-spinner";let eH=` 153 <template id="${N.Edit}"> 154 <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> 155 <path fill-rule="evenodd" clip-rule="evenodd" 156 d="M1 14.993V10.0515L9.47121 1.58221C10.2522 0.801373 11.5183 0.801373 12.2993 1.58221L14.4132 3.69561C15.1945 4.47669 15.1945 5.74327 14.4132 6.52436L5.94263 14.993H1ZM5.52848 13.993L10.7581 8.7646L7.22982 5.23714L2 10.4658V13.993H5.52848ZM7.937 4.53012L11.4653 8.05757L13.7062 5.81717C14.0968 5.42663 14.0968 4.79334 13.7062 4.4028L11.5923 2.28939C11.2018 1.89898 10.5687 1.89898 10.1782 2.28939L7.937 4.53012Z" 157 /> 158 <path 159 d="M9.48975 13.9982C9.2136 13.9982 8.98975 14.2221 8.98975 14.4982C8.98975 14.7743 9.2136 14.9982 9.48975 14.9982H14.4865C14.7626 14.9982 14.9865 14.7743 14.9865 14.4982C14.9865 14.2221 14.7626 13.9982 14.4865 13.9982H9.48975Z" 160 /> 161 </svg> 162 </template> 163 <template id="${N.Plus}"> 164 <svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg"> 165 <path 166 d="M7.75366 16.5C7.75366 17.1904 8.31331 17.75 9.00366 17.75C9.69402 17.75 10.2537 17.1904 10.2537 16.5V10.2861H16.5C17.1904 10.2861 17.75 9.72642 17.75 9.03606C17.75 8.34571 17.1904 7.78606 16.5 7.78606H10.2537V1.5C10.2537 0.809643 9.69402 0.25 9.00366 0.25C8.31331 0.25 7.75366 0.809644 7.75366 1.5V7.78606H1.5C0.809644 7.78606 0.25 8.34571 0.25 9.03606C0.25 9.72642 0.809644 10.2861 1.5 10.2861H7.75366V16.5Z" 167 /> 168 </svg> 169 </template> 170 <template id="${N.Spinner}"> 171 <svg class="spin-500" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> 172 <path fill-rule="evenodd" clip-rule="evenodd" 173 d="M1.25049 10.0001C1.25049 5.16797 5.16766 1.25069 9.99979 1.25061C10.345 1.2506 10.6248 1.53042 10.6248 1.8756C10.6248 2.22078 10.345 2.5006 9.99981 2.50061C5.85803 2.50068 2.50049 5.85831 2.50049 10.0001C2.50049 14.1418 5.85811 17.4995 9.99993 17.4995C14.1418 17.4995 17.4994 14.1418 17.4994 10.0001C17.4994 8.00692 16.7227 6.19654 15.4542 4.85289C15.2172 4.60189 15.2286 4.20633 15.4796 3.96937C15.7306 3.73241 16.1261 3.74379 16.3631 3.99479C17.8419 5.5612 18.7494 7.67533 18.7494 10.0001C18.7494 14.8322 14.8321 18.7495 9.99993 18.7495C5.16775 18.7495 1.25049 14.8322 1.25049 10.0001Z" 174 /> 175 </svg> 176 </template> 177 <template id="${N.Puzzle}"> 178 <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> 179 <path fill-rule="evenodd" clip-rule="evenodd" 180 d="M5.36522 2.48835C5.12409 2.7724 5.03429 3.10232 5.
18003429 3.27273V4.50861C5.03429 4.78476 4.81043 5.00861 4.53429 5.00861H2V14H4.0343V13.2727C4.0343 12.8522 4.21698 12.2958 4.60288 11.8412C5.00497 11.3675 5.63191 11 6.49745 11C7.36086 11 7.99972 11.3654 8.41593 11.8319C8.81555 12.2798 9.02461 12.8381 9.02461 13.2727V14.0072L11.0125 14.0014V11.4936C11.0125 11.2175 11.2363 10.9936 11.5125 10.9936H12.7273C12.8923 10.9936 13.2215 10.9016 13.5081 10.6537C13.7758 10.4221 14 10.0599 14 9.50642C14 8.95199 13.7748 8.58042 13.5038 8.34043C13.2141 8.08395 12.8857 7.98937 12.7273 7.98937H11.5125C11.2363 7.98937 11.0125 7.76551 11.0125 7.48937V5.00861H8.52459C8.24845 5.00861 8.02459 4.78476 8.02459 4.50861V3.27273C8.02459 3.11648 7.92916 2.7884 7.66975 2.49765C7.42692 2.2255 7.0522 2 6.49743 2C5.94479 2 5.59016 2.22337 5.36522 2.48835ZM4.60286 1.84119C5.00495 1.36753 5.6319 1 6.49743 1C7.36085 1 7.9997 1.36541 8.41592 1.83189C8.81554 2.27978 9.0246 2.83807 9.0246 3.27273V4.00861H11.5125C11.7886 4.00861 12.0125 4.23247 12.0125 4.50861V6.98937H12.7273C13.1597 6.98937 13.7177 7.19422 14.1667 7.59172C14.6343 8.00572 15 8.64268 15 9.50642C15 10.3712 14.6333 11.0025 14.1624 11.41C13.7103 11.8011 13.1531 11.9936 12.7273 11.9936H12.0125V14.5C12.0125 14.7756 11.7895 14.9992 11.5139 15L8.52605 15.0086C8.3932 15.009 8.26565 14.9565 8.17157 14.8627C8.07749 14.7689 8.02461 14.6415 8.02461 14.5086V13.2727C8.02461 13.1165 7.92918 12.7884 7.66976 12.4977C7.42694 12.2255 7.05222 12 6.49745 12C5.9448 12 5.59017 12.2234 5.36523 12.4884C5.12411 12.7724 5.0343 13.1023 5.0343 13.2727V14.5C5.0343 14.7761 4.81044 15 4.5343 15H1.5C1.22386 15 1 14.7761 1 14.5V4.50861C1 4.23247 1.22386 4.00861 1.5 4.00861H4.03429V3.27273C4.03429 2.85223 4.21696 2.29579 4.60286 1.84119Z"/> 181 </svg> 182 </template> 183 <template id="${N.PlusPuzzle}"> 184 <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> 185 <path d="M4.5 8.97021C4.22386 8.97021 4 9.19407 4 9.47021C4 9.74636 4.22386 9.97021 4.5 9.97021H6.01123V11.5C6.01123 11.7761 6.23509 12 6.51123 12C6.78737 12 7.01123 11.7761 7.01123 11.5V9.97021H8.5C8.77614 9.97021 9 9.74636 9 9.47021C9 9.19407 8.77614 8.97021 8.5 8.97021H7.01123V7.5C7.01123 7.22386 6.78737 7 6.51123 7C6.23509 7 6.01123 7.22386 6.01123 7.5V8.97021H4.5Z" /> 186 <path fill-rule="evenodd" clip-rule="evenodd" d="M6.49743 1C5.6319 1 5.00495 1.36753 4.60286 1.84119C4.21696 2.29579 4.03429 2.85223 4.03429 3.27273V4.00861H1.5C1.22386 4.00861 1 4.23247 1 4.50861V10.9545C1 12.5357 1.67001 13.5722 2.53739 14.1967C3.37928 14.8028 4.37453 15 5.04545 15H11.5125C11.7886 15 12.0125 14.7761 12.0125 14.5V11.9936H12.7273C13.1531 11.9936 13.7103 11.8011 14.1624 11.41C14.6333 11.0025 15 10.3712 15 9.50642C15 8.64268 14.6343 8.00572 14.1667 7.59172C13.7177 7.19422 13.1597 6.98937 12.7273 6.98937H12.0125V4.50861C12.0125 4.23247 11.7886 4.00861 11.5125 4.00861H9.0246V3.27273C9.0246 2.83807 8.81554 2.27978 8.41592 1.83189C7.9997 1.36541 7.36085 1 6.49743 1ZM5.03429 3.27273C5.03429 3.10232 5.12409 2.7724 5.36522 2.48835C5.59016 2.22337 5.94479 2 6.49743 2C7.0522 2 7.42692 2.2255 7.66975 2.49765C7.92916 2.7884 8.02459 3.11648 8.02459 3.27273V4.50861C8.02459 4.78476 8.24845 5.00861 8.52459 5.00861H11.0125V7.48937C11.0125 7.76551 11.2363 7.98937 11.5125 7.98937H12.7273C12.8857 7.98937 13.2141 8.08395 13.5038 8.34043C13.7748 8.58042 14 8.95199 14 9.50642C14 10.0599 13.7758 10.4221 13.5081 10.6537C13.2215 10.9016 12.8923 10.9936 12.7273 10.9936H11.5125C11.2363 10.9936 11.0125 11.2175 11.0125 11.4936V14H5.04545C4.53456 14 3.75708 13.8426 3.1217 13.3851C2.51181 12.946 2 12.2098 2 10.9545V5.00861H4.53429C4.81043 5.00861 5.03429 4.78476 5.03429 4.50861V3.27273Z" /> 187 </svg> 188 </template> 189 <template id="${N.CollapseScheme}"> 190 <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> 191 <path fill-rule="evenodd" clip-rule="evenodd" 192 d="M14.9952 2.54249V4.99715H15.0024V6.99547H14.0027V6.00319H2.00561L2.00561 6.99547H1.00586L1.00586 6.00319H1.00244V2.54249C1.00244 1.69346 1.62932 1.00439 2.40172 1.00439H13.596C14.3684 1.00439 14.9952 1.69346 14.9952 2.54249ZM13.9955 5.00403H2.00561V4.99715H2.0022V2.54249C2.0022 2.15367 2.26888 2.00356 2.40172 2.00356H13.596C13.7288 2.00356 13.9955 2.15366 13.9955 2.54249V5.00403Z" 193 /> 194 <path 195 d="M1.00625 14.0052H3.00537L3.00498 15.0044H1.50732C1.37433 15.0044 1.24678 14.938 1.15273 14.8198C1.05869 14.7016 1.00586 14.5412 1.00586 14.3741L1.00625 14.0052Z" 196 /> 197 <path 198 d="M13.0029 13.9964H15.0021L15.0024 14.3653C15.0024 14.5325 14.9496 14.6928 14.8556 14.811C14.7615 14.9292
19814.634 14.9956 14.501 14.9956H13.0033L13.0029 13.9964Z" 199 /> 200 <path d="M1.00586 11.0039L1.00586 13.0022H2.00561L2.00561 11.0039H1.00586Z"/> 201 <path d="M14.0027 13.0022V11.0039H15.0024V13.0022H14.0027Z"/> 202 <path d="M1.00586 7.99464L1.00586 9.99296H2.00561L2.00561 7.99464H1.00586Z"/> 203 <path d="M14.0027 7.99464V9.99296H15.0024V7.99464H14.0027Z"/> 204 <path d="M6.00464 14.0052H4.00513L4.00513 15.0044H6.00464V14.0052Z"/> 205 <path d="M7.00439 14.0052H9.00391V15.0044H7.00439V14.0052Z"/> 206 <path d="M12.0032 14.0052H10.0037V15.0044H12.0032V14.0052Z"/> 207 </svg> 208 </template> 209`,eq=` 210 <style> 211 @-webkit-keyframes spin-500 { 212 0% { 213 -webkit-transform: rotate(0deg); 214 } 215 216 100% { 217 -webkit-transform: rotate(359deg); 218 } 219 } 220 221 @keyframes spin-500 { 222 0% { 223 transform: rotate(0deg); 224 } 225 226 100% { 227 transform: rotate(359deg); 228 } 229 } 230 231 232 :host { 233 display: flex; 234 flex-direction: column; 235 align-items: center; 236 justify-content: center; 237 width: var(--ksl-icon-width, 0px); 238 height: var(--ksl-icon-height, 0px); 239 } 240 241 .spin-500 { 242 animation-direction: normal; 243 animation-delay: 0s; 244 animation-duration: 1s; 245 animation-iteration-count: infinite; 246 animation-name: spin-500; 247 animation-timing-function: linear; 248 transform-origin: center; 249 } 250 </style> 251`;class eV extends eN{static _icons=null;static get is(){return"ksl-icon"}static get icons(){if(!eV._icons){let e=document.createElement("template");e.innerHTML=eH,eV._icons=e}return eV._icons}static get observedAttributes(){return["icon-name"]}get iconName(){return this.getAttribute("icon-name")}set iconName(e){this.updateAttribute("icon-name",e)}iconRef;constructor(){super(),ew(this.shadowRoot,'Shadow root must be always accessible in "open" mode.');const e=this.getAttribute("icon-name"),t=this.getTemplateByIconName(e);if(t){const e=t.content.cloneNode(!0);this.shadowRoot.appendChild(e),this.iconRef=this.shadowRoot.lastElementChild}else this.iconRef=null}static initializeTemplate(){return eA(eq)}attributeChangedCallback(e,t,n){"icon-name"===e&&this.updateIcon(n)}getTemplateByIconName=e=>{if(!e)return null;let t=eV.icons.content.querySelector(`template#${e}`);return t instanceof HTMLTemplateElement?t:null};updateIcon=e=>{if(!this.shadowRoot)return;let t=this.getTemplateByIconName(e);if(t){let e=t.content.cloneNode(!0);this.iconRef?this.shadowRoot.replaceChild(e,this.iconRef):this.shadowRoot.appendChild(e),this.iconRef=this.shadowRoot.lastElementChild}else this.iconRef&&(this.iconRef.remove(),this.iconRef=null)}}(f=M||(M={})).Primary="primary",f.Quinary="quinary";let eF=` 252 <style> 253 :host, 254 :host * { 255 box-sizing: border-box; 256 } 257 258 :host { 259 display: block; 260 } 261 262 :host([hidden]) { 263 display: none; 264 } 265 266 :host(:focus) { 267 outline: none; 268 } 269 270 .ksl-button { 271 display: flex; 272 flex-direction: column; 273 justify-content: center; 274 align-items: center; 275 border: none; 276 cursor: pointer; 277 } 278 279 .ksl-button:focus { 280 outline: none; 281 } 282 283 :host([disabled]) .ksl-button { 284 cursor: not-allowed; 285 } 286 287 .ksl-button__content, 288 :host([loading]) .ksl-button__loader { 289 display: flex; 290 flex-direction: column; 291 align-items: center; 292 justify-content: center; 293 } 294 295 .ksl-button__loader, 296 :host([loading]) .ksl-button__content { 297 display: none; 298 } 299 300 :host([type=${M.Primary}]) .ksl-button { 301 --ksl-icon-width: 18px; 302 --ksl-icon-height: 18px; 303 min-width: 40px; 304 max-width: 40px; 305 min-height: 40px; 306 max-height: 40px; 307 border-radius: 5000px; 308 box-shadow: var(--ksl-shadow-primary, ${A.Primary}); 309 background-color: var(--ksl-color-primary, ${S.Primary}); 310 color: var(--ksl-color-text-secondary, ${S.TextSecondary}); 311 fill: var(--ksl-color-text-secondary, ${S.TextSecondary}); 312 } 313 314 :host([type=${M.Primary}]:not([disabled])) .ksl-button:hover, 315 :host([type=${M.Primary}]:not([disabled])) .ksl-button:active { 316 background-color: var(--ksl-color-primary-hover, ${S.PrimaryHover}); 317 } 318 319 :host([type=${M.Primary}][disabled]) .ksl-button { 320 background-color: var(--ksl-color-background-default-disabled, ${S.Backgroun
320dDefaultDisabled}); 321 color: var(--ksl-color-text-default-disabled, ${S.TextDefaultDisabled}); 322 fill: var(--ksl-color-text-default-disabled, ${S.TextDefaultDisabled}); 323 box-shadow: none; 324 } 325 326 :host([type=${M.Primary}][loading]) .ksl-button { 327 color: var(--ksl-color-primary, ${S.Primary}); 328 fill: var(--ksl-color-primary, ${S.Primary}); 329 box-shadow: none; 330 } 331 332 :host([type=${M.Quinary}]) .ksl-button { 333 --ksl-icon-width: 16px; 334 --ksl-icon-height: 16px; 335 border-radius: 5px; 336 padding: 0; 337 min-height: 24px; 338 min-width: 24px; 339 max-height: 24px; 340 max-width: 24px; 341 color: var(--ksl-color-text-default, ${S.TextDefault}); 342 fill: var(--ksl-color-text-default, ${S.TextDefault}); 343 background-color: var(--ksl-color-background-default, ${S.BackgroundDefault}); 344 } 345 346 :host([type=${M.Quinary}][disabled]) .ksl-button { 347 color: var(--ksl-color-text-default-disabled, ${S.TextDefaultDisabled}); 348 fill: var(--ksl-color-text-default-disabled, ${S.TextDefaultDisabled}); 349 } 350 351 :host([type=${M.Quinary}]:not([disabled])) .ksl-button:hover { 352 background-color: var(--ksl-color-background-default-hover, ${S.Backgroun
352dDefaultHover}); 353 } 354 355 :host([type=${M.Quinary}]:not([disabled])) .ksl-button:active { 356 background-color: var(--ksl-color-background-default-selected, ${S.BackgroundDefaultSelected}); 357 } 358 </style> 359 <button class="ksl-button"> 360 <div class="ksl-button__content"> 361 <slot></slot> 362 </div> 363 <ksl-icon icon-name="${N.Spinner}" class="ksl-button__loader" /> 364 </button> 365`;class eQ extends eD{static get is(){return"ksl-button"}static get observedAttributes(){return[...eD.observedAttributes,"loading"]}get loading(){return this.hasAttribute("loading")}set loading(e){this.updateAttribute("loading",e)}get disabled(){return this.hasAttribute("disabled")}set disabled(e){this.updateAttribute("disabled",e)}constructor(){super(),ew(this.shadowRoot,'Shadow root must be always accessible in "open" mode.')}static initializeTemplate(){return eA(eF)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick,{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick,{capture:!0})}attributeChangedCallback(e,t,n){if(super.attributeChangedCallback(e,t,n),"loading"===e){let e=!!n;this.disabled=e,this.tooltipDisabled=e}}handleClick=e=>{this.disabled&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation())}}let eU=` 366 <style> 367 :host, 368 :host * { 369 box-sizing: border-box; 370 } 371 372 :host { 373 display: block; 374 position: absolute; 375 pointer-events: none; 376 touch-action: none; 377 min-height: 40px; 378 min-width: 40px; 379 width: 100%; 380 height: 100%; 381 border: 2px dashed; 382 border-color: var(--ksl-color-primary-transparent, ${S.PrimaryTransparent}); 383 border-radius: 5px; 384 } 385 386 :host([hidden]) { 387 display: none; 388 } 389 390 :host(:hover), 391 :host([selected]) { 392 border-color: var(--ksl-color-primary, ${S.Primary}); 393 z-index: calc(var(--ksl-z-index, 9000) + 10); 394 } 395 396 :host(:focus) { 397 outline: none; 398 } 399 400 .ksl-highlight__toolbar { 401 position: absolute; 402 top: 0; 403 right: 0; 404 display: flex; 405 flex-direction: row; 406 justify-content: center; 407 align-items: center; 408 pointer-events: all; 409 touch-action: auto; 410 min-height: 40px; 411 max-height: 40px; 412 border-radius: 8px; 413 background-color: var(--ksl-color-background-default, ${S.Backgroun
413dDefault}); 414 z-index: var(--ksl-z-index, 9000); 415 padding: 8px; 416 box-shadow: var(--ksl-shadow-default, ${A.Default}); 417 } 418 419 .ksl-highlight__toolbar:hover { 420 z-index: calc(var(--ksl-z-index, 9000) + 10); 421 } 422 423 .ksl-highlight__toolbar-button + .ksl-highlight__toolbar-button { 424 margin-left: 4px; 425 } 426 </style> 427 <div id="ksl-toolbar" class="ksl-highlight__toolbar"> 428 <ksl-button 429 id="ksl-edit" 430 class="ksl-highlight__toolbar-button" 431 type="${M.Quinary}" 432 tooltip-position="${P.BottomEnd}" 433 > 434 <ksl-icon icon-name="${N.Edit}" /> 435 </ksl-button> 436 </div> 437`;class eK extends eM{static get is(){return"ksl-highlight"}get type(){return K(this.targetRef)}get selected(){return this.hasAttribute("selected")}set selected(e){this.updateAttribute("selected",e)}editButtonRef;constructor(){super(),ew(this.shadowRoot,'Shadow root must be always accessible in "open" mode.'),this.editButtonRef=this.shadowRoot.querySelector("#ksl-edit")}static initializeTemplate(){return eA(eU)}static getEditButtonTooltip(e){switch(e){case k.Element:return"Edit element";case k.ContentComponent:return"Edit component";case k.ContentItem:return"Edit item";case k.None:return"Edit"}}connectedCallback(){super.connectedCallback(),this.editButtonRef.addEventListener("click",this.handleEditButtonClick)}disconnectedCallback(){super.connectedCallback(),this.editButtonRef.removeEventListener("click",this.handleEditButtonClick),this.unregisterTargetNodeListeners()}attachTo=e=>{this.unregisterTargetNodeListeners(),super.attachTo(e);let t=this.type;this.hidden=t===k.None,this.editButtonRef.tooltipMessage=eK.getEditButtonTooltip(t),this.targetRef&&(this.targetRef.addEventListener("mousemove",this.handleTargetNodeMouseEnter),this.targetRef.addEventListener("mouseleave",this.handleTargetNodeMouseLeave),this.targetRef.addEventListener("click",this.handleEditButtonClick))};adjustPosition=()=>{if(!this.targetRef||!this.offsetParent)return;this.offsetParent instanceof eW||eh("KSLHighlightElement: should be located inside KSLContainerElement to be positioned properly.");let e=this.offsetParent.getBoundingClientRect(),t=this.targetRef.getBoundingClientRect();this.style.top=`${t.top-e.top}px`,this.style.left=`${t.left-e.left}px`,this.style.width=`${t.width}px`,this.style.height=`${t.height}px`};unregisterTargetNodeListeners=()=>{this.targetRef&&(this.targetRef.removeEventListener("mousemove",this.handleTargetNodeMouseEnter),this.targetRef.removeEventListener("mouseleave",this.handleTargetNodeMouseLeave),this.targetRef.removeEventListener("click",this.handleEditButtonClick))};handleTargetNodeMouseEnter=()=>{this.selected=!0};handleTargetNodeMouseLeave=()=>{this.selected=!1};handleEditButtonClick=e=>{var t;let n;ew(this.targetRef,"Target node is not set for this highlight."),e.preventDefault(),e.stopPropagation();let i=(n=function(e){switch(e){case k.Element:return eI;case k.ContentComponent:return ej;case k.ContentItem:return e_;case k.None:return eE}}(K(t=this.targetRef)),ep("Parsing edit button data attributes for element: ",t),ep("Parsing values from data attributes using this pattern: ",n),eC(n,t));this.dispatchEditEvent(i)};dispatchEditEvent=e=>{ew(this.targetRef,"Target node is not set for this highlight element.");let t=new CustomEvent("ksl:highlight:edit",{detail:{data:e,targetNode:this.targetRef}});this.dispatchEvent(t)}}let eZ=` 438 <style> 439 :host { 440 display: block; 441 position: absolute; 442 box-sizing: border-box; 443 top: 0; 444 right: 0; 445 left: 0; 446 bottom: 0; 447 pointer-events: none; 448 touch-action: none; 449 z-index: var(--ksl-z-index, 9000); 450 } 451 452 :host([clipped]) { 453 overflow: hidden; 454 } 455 </style> 456 <slot></slot> 457`;class eW extends eN{static get is(){return"ksl-container"}_boundingClientRect=null;static initializeTemplate(){return eA(eZ)}getBoundingClientRect(e=!1){return(!this._boundingClientRect||e)&&(this._boundingClientRect=super.getBoundingClientRect()),this._boundingClientRect}createHighlightForElement=e=>{let t=document.createElement(eK.is);return t.attachTo(e),this.appendChild(t),t};createAddButtonForElement=e=>{let t=document.createElement(e1.is);return t.attachTo(e),this.appendChild(t),t};adjustPosition=()=>{let e=this.parentElement;if(!e)return;let t=eP(e);if(!t.isPositioned){let[n,i]=eS(e);this.style.height=`${e.clientHeight}px`,this.style.width=`${e.clientWidth}px`,this.style.top=`${e.offsetTop-n}px`,this.style.left=`${e.offsetLeft-i}px`,this.updateAttribute("clipped",!!t.isContentClipped)}this.getBoundingClientRect(!0)}}let eG=` 458 <style> 459 :host { 460 --ksl-pop-up-arrow-size: 12px; 461 --ksl-pop-up-background-color: var(--ksl-color-background-default, ${S.Backgroun
461dDefault}); 462 --ksl-pop-up-border-radius: 4px; 463 --ksl-pop-up-box-shadow: var(--ksl-shadow-default, ${A.Default});; 464 --ksl-pop-up-color: var(--ksl-color-text-default, ${S.TextDefault}); 465 --ksl-pop-up-padding: 8px; 466 } 467 </style> 468`;class eY extends ez{static get is(){return"ksl-popover"}static initializeTemplate(){let e=ez.initializeTemplate(),t=eA(eG);return e.content.appendChild(t.content.cloneNode(!0)),e}}let eJ="Content is published",eX="Insert...";(b=$||($={})).CreateComponent="create-component",b.CreateLinkedItem="create-linked-item",b.InsertLinkedItem="insert-linked-item";let e0=` 469 <style> 470 :host { 471 display: inline-block; 472 position: absolute; 473 z-index: calc(var(--ksl-z-index, 9000) + 20); 474 pointer-events: all; 475 touch-action: initial; 476 } 477 478 :host(:focus) { 479 outline: none; 480 } 481 </style> 482 <ksl-button 483 type="${M.Primary}" 484 tooltip-position="${P.Top}" 485 > 486 <ksl-icon icon-name="${N.Plus}"/> 487 </ksl-button> 488`;class e1 extends eM{static get is(){return"ksl-add-button"}get position(){return this.targetRef?.getAttribute(x.AddButtonRenderPosition)??P.Bottom}buttonRef;popoverRef=null;constructor(){super(),ew(this.shadowRoot,'Shadow root must be available in "open" mode.'),this.buttonRef=this.shadowRoot.querySelector(eQ.is)}static initializeTemplate(){return eA(e0)}connectedCallback(){super.connectedCallback(),window.addEventListener("click",this.handleClickOutside,{capture:!0}),this.buttonRef.addEventListener("click",e=>{this.handleClick(e)}),this.buttonRef.tooltipMessage=eX}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("click",this.handleClickOutside,{capture:!0}),this.buttonRef.removeEventListener("click",e=>{this.handleClick(e)}),this.dismissPopover()}adjustPosition=()=>{if(!this.targetRef||!this.offsetParent)return;this.offsetParent instanceof eW||console.warn("KSLAddButtonElement: should be located inside KSLContainerElement to be positioned properly.");let e=this.offsetParent.getBoundingClientRect(),t=this.targetRef.getBoundingClientRect(),n=this.getBoundingClientRect(),i=this.calculateTopOffset(n,t),a=this.calculateLeftOffset(n,t);this.style.top=`${t.top-e.top+i}px`,this.style.left=`${t.left-e.left+a}px`};calculateTopOffset(e,t){let n=super.calculateTopOffset(e,t);switch(this.position){case P.TopStart:case P.Top:case P.TopEnd:return n/2;case P.BottomStart:case P.Bottom:case P.BottomEnd:return n-e.height/2;case P.Left:case P.LeftEnd:case P.LeftStart:case P.None:case P.Right:case P.RightEnd:case P.RightStart:return n}}calculateLeftOffset(e,t){let n=super.calculateLeftOffset(e,t);switch(this.position){case P.LeftStart:case P.Left:case P.LeftEnd:return n/2;case P.RightStart:case P.Right:case P.RightEnd:return t.width-e.width/2;case P.Bottom:case P.BottomEnd:case P.BottomStart:case P.None:case P.Top:case P.TopEnd:case P.TopStart:return n}}handleClick=async e=>{if(this.popoverRef)return;ew(this.targetRef,"Target node is not set for this add button."),e.preventDefault(),e.stopPropagation(),this.buttonRef.loading=!0;let t=ek(this.targetRef);try{let e={data:t,targetNode:this.targetRef},n=await this.dispatchAsyncEvent("ksl:add-button:initial",e),{permissions:i}=n,a=i.get(j.ViewParent)!==I.Ok||i.get(j.Edit)!==I.Ok,o=i.get(j.CreateNew)===I.RteWithForbiddenComponents;a||o?(this.buttonRef.loading=!1,this.buttonRef.disabled=!0,this.buttonRef.tooltipMessage=a?"You are not allowed to add content here":"Components and items can't be added here"):(this.buttonRef.loading=!1,this.buttonRef.disabled=!1,this.buttonRef.tooltipMessage=eX,this.displayPopover(n))}catch(e){eu(e),this.buttonRef.loading=!1,this.buttonRef.disabled=!0,"object"==typeof e&&null!==e&&"message"in e&&"string"==typeof e.message?this.buttonRef.tooltipMessage=e.message:this.buttonRef.tooltipMessage="Something went wrong"}};handleClickOutside=e=>{!(!this.popoverRef||!(e.target instanceof Element)||this.isSameNode(e.target)||this.contains(e.target))&&this.dismissPopover()};displayPopover=e=>{ew(this.shadowRoot,'Shadow root must be available in "open" mode.'),this.popoverRef&&this.dismissPopover(),this.buttonRef.tooltipPosition=P.Bottom;let t=document.createElement(eY.is);t.innerHTML=(({elementType:e,isParentPublished:t,permissions:n})=>{let i=n.get(j.CreateNew)===I.Ok;return` 489 <style> 490 .ksl-add-button__popover-button + .ksl-add-button__popover-button { 491 margin-left: 4px; 492 } 493 </style> 494 <ksl-button 495 id="${$.InsertLinkedItem}" 496 class="ksl-add-button__popover-button" 497 type="${M.Quinary}" 498 tooltip-position="${P.Top}" 499 tooltip-message="${t?eJ:"Insert existing item"}" 500 ${t&&"disabled"} 501 > 502 <ksl-icon icon-name="${N.Puzzle}"/> 503 </ksl-button> 504 <ksl-button 505 id="${$.CreateLinkedItem}" 506 class="ksl-add-button__popover-button" 507 type="${M.Quinary}" 508 tooltip-position="${P.Top}" 509 tooltip-message="${t?eJ:i?"Create new item":"Your role cannot create items from the allowed types"}" 510 ${(t||!i)&&"disabled"} 511 ${e!==_.LinkedItems&&"hidden"} 512 > 513 <ksl-icon icon-name="${N.PlusPuzzle}"/> 514 </ksl-button> 515 <ksl-button 516 id="${$.CreateComponent}" 517 class="ksl-add-button__popover-button" 518 type="${M.Quinary}" 519 tooltip-position="${P.Top}" 520 tooltip-message="${t?eJ:"Insert new component"}" 521 ${t&&"disabled"} 522 ${e!==_.RichText&&"hidden"} 523 >
524 <ksl-icon icon-name="${N.CollapseScheme}"/> 525 </ksl-button> 526`})(e);let n=this.shadowRoot;this.popoverRef=n.appendChild(t),this.popoverRef.position=P.Top,this.popoverRef.attachTo(this),this.addPopoverEventListeners(e.elementType),this.popoverRef.visible=!0,this.popoverRef.adjustPosition()};dismissPopover=()=>{this.buttonRef.tooltipPosition=P.Top,this.popoverRef&&(this.removePopoverEventListeners(),this.popoverRef.visible=!1,this.popoverRef.remove(),this.popoverRef=null)};addPopoverEventListeners=e=>{if(!this.popoverRef)return;let t=this.popoverRef.querySelector(`#${$.CreateComponent}`),n=this.popoverRef.querySelector(`#${$.CreateLinkedItem}`),i=this.popoverRef.querySelector(`#${$.InsertLinkedItem}`);t&&e===_.RichText&&t.addEventListener("click",e=>{this.handleCreateComponentClick(e)}),n&&e===_.LinkedItems&&n.addEventListener("click",e=>{this.handleCreateLinkedItemClick(e)}),i&&i.addEventListener("click",e=>{this.handleInsertLinkedItemClick(e)})};removePopoverEventListeners=()=>{if(!this.popoverRef)return;let e=this.popoverRef.querySelector(`#${$.CreateComponent}`),t=this.popoverRef.querySelector(`#${$.CreateLinkedItem}`),n=this.popoverRef.querySelector(`#${$.InsertLinkedItem}`);e&&e.removeEventListener("click",this.handleCreateComponentClick),t&&t.removeEventListener("click",this.handleCreateLinkedItemClick),n&&n.removeEventListener("click",this.handleInsertLinkedItemClick)};handleCreateComponentClick=e=>{this.handleAddActionClick(e,E.CreateComponent)};handleCreateLinkedItemClick=e=>{this.handleAddActionClick(e,E.CreateLinkedItem)};handleInsertLinkedItemClick=e=>{this.handleAddActionClick(e,E.InsertLinkedItem)};handleAddActionClick=(e,t)=>{ew(this.targetRef,"Target node is not set for this add button."),e.preventDefault(),e.stopPropagation();let n=new CustomEvent("ksl:add-button:action",{detail:{data:{...ek(this.targetRef),action:t},targetNode:this.targetRef}});this.dismissPopover(),this.dispatchEvent(n)}}let e2=[eV,eQ,e1,eK,eW,eO,eY],e4=e2.map(e=>e.is);function e5(e){return e4.includes(e.tagName.toLowerCase())}class e3{configuration;defaultContainer;containerByRenderingRoot;highlightByElement;addButtonByElement;constructor(e){this.configuration=e,this.containerByRenderingRoot=new Map,this.highlightByElement=new Map,this.addButtonByElement=new Map,this.defaultContainer=e9()}render=(e,t)=>{if(0===t.size)return void this.clear();let{newAddButtonByElement:n,newHighlightByElement:i}=this.processVisibleElements(e,this.addButtonByElement,this.highlightByElement);for(let[e,n]of i)t.has(e)||(n.remove(),i.delete(e));for(let[e,i]of n)t.has(e)||(i.remove(),n.delete(e));for(let[e,t]of this.containerByRenderingRoot.entries())0===t.children.length&&(t.remove(),this.containerByRenderingRoot.delete(e));this.highlightByElement=i,this.addButtonByElement=n};destroy=()=>{this.clear(),this.defaultContainer.remove()};clear=()=>{for(let[,e]of this.addButtonByElement.entries())e.remove();for(let[,e]of this.highlightByElement.entries())e.remove();for(let[,e]of this.containerByRenderingRoot.entries())e.remove();this.highlightByElement=new Map,this.containerByRenderingRoot=new Map,this.addButtonByElement=new Map,this.defaultContainer.innerHTML=""};processVisibleElements=(e,t,n)=>Array.from((function(e){let t=new Map;for(let n of e){let e=function e(t){let n=t.parentElement;if(!n)return null;let i=eP(n),a=!["TD","TH","TABLE"].includes(n.tagName);return i.isPositioned||i.isContentClipped&&a?n:e(n)}(n),i=t.get(e)??new Set;t.set(e,i.add(n))}return t})(e).entries()).reduce((e,[t,n])=>{let i=this.createContainerIfNotExist(t);for(let t of(i.adjustPosition(),n)){if(0!==t.offsetHeight&&0!==t.offsetWidth&&ei(t,this.configuration)){let n=e.newHighlightByElement.get(t)??i.createHighlightForElement(t);n.adjustPosition(),e.newHighlightByElement.set(t,n)}if(ea(t,this.configuration)){let n=e.newAddButtonByElement.get(t)??i.createAddButtonForElement(t);n.adjustPosition(),e.newAddButtonByElement.set(t,n)}}return e},{newAddButtonByElement:new Map(t),newHighlightByElement:new Map(n)});createContainerIfNotExist=e=>{if(!e||e===document.body)return this.defaultContainer;let t=this.containerByRenderingRoot.get(e);if(t)return t;let n=document.createElement(eW.is);return e.appendChild(n),this.containerByRenderingRoot.set(e,n),n}}let e9=()=>{let e=document.createElement(eW.is);return window.document.body.appendChild(e),e};class e7{iframeCommunicator;configuration;mutationObserver;intersectionObserver;renderer;enabled=!1;renderingTimeoutId=0;observedElements=new Set;visibleElements=new Set;
526constructor(e,t){if(this.iframeCommunicator=e,this.configuration=t,"u"<typeof window||"u"<typeof MutationObserver||"u"<typeof IntersectionObserver)throw new er("NodeSmartLinkProvider can only be initialized in a browser environment.");this.mutationObserver=new MutationObserver(this.onDomMutation),this.intersectionObserver=new IntersectionObserver(this.onElementVisibilityChange),this.renderer=new e3(this.configuration)}toggle=e=>{e??!this.enabled?this.enable():this.disable()};enable=()=>{this.enabled||(this.startRenderingInterval(),this.listenToGlobalEvents(),this.observeDomMutations(),this.enabled=!0)};disable=()=>{this.enabled&&(this.stopRenderingInterval(),this.unlistenToGlobalEvents(),this.disconnectObservers(),this.renderer.clear(),this.enabled=!1)};destroy=()=>{this.disable(),this.renderer.destroy()};augmentVisibleElements=()=>{requestAnimationFrame(()=>{this.renderer.render(this.visibleElements,this.observedElements)})};startRenderingInterval=()=>{this.renderingTimeoutId=window.setInterval(this.augmentVisibleElements,1e3)};stopRenderingInterval=()=>{this.renderingTimeoutId&&(clearInterval(this.renderingTimeoutId),this.renderingTimeoutId=0)};listenToGlobalEvents=()=>{window.addEventListener("ksl:add-button:initial",this.onAddInitialClick,{capture:!0}),window.addEventListener("ksl:add-button:action",this.onAddActionClick,{capture:!0}),window.addEventListener("ksl:highlight:edit",this.onEditElement,{capture:!0})};unlistenToGlobalEvents=()=>{window.removeEventListener("ksl:add-button:initial",this.onAddInitialClick,{capture:!0}),window.removeEventListener("ksl:add-button:action",this.onAddActionClick,{capture:!0}),window.removeEventListener("ksl:highlight:edit",this.onEditElement,{capture:!0})};observeDomMutations=()=>{this.enabled||(this.mutationObserver.observe(window.document.body,{childList:!0,subtree:!0}),et(document,this.configuration).forEach(e=>{e instanceof HTMLElement&&this.observeElementVisibility(e)}))};disconnectObservers=()=>{this.mutationObserver.disconnect(),this.intersectionObserver.disconnect(),this.observedElements.forEach(e=>{this.unobserveElementVisibility(e)}),this.observedElements=new Set,this.visibleElements=new Set};observeElementVisibility=e=>{this.observedElements.has(e)||(this.intersectionObserver.observe(e),this.observedElements.add(e))};unobserveElementVisibility=e=>{this.observedElements.has(e)&&(this.intersectionObserver.unobserve(e),this.observedElements.delete(e),this.visibleElements.delete(e))};onDomMutation=e=>{let t=e.filter(e6);for(let e of t){for(let t of e.addedNodes)if(t instanceof HTMLElement)for(let e of(en(t,this.configuration)&&this.observeElementVisibility(t),et(t,this.configuration)))e instanceof HTMLElement&&this.observeElementVisibility(e);for(let t of e.removedNodes)if(t instanceof HTMLElement)for(let e of(en(t,this.configuration)&&this.unobserveElementVisibility(t),et(t,this.configuration)))e instanceof HTMLElement&&this.unobserveElementVisibility(e)}t.length>0&&this.augmentVisibleElements()};onElementVisibilityChange=e=>{let t=e.filter(e=>e.target instanceof HTMLElement);for(let e of t){let t=e.target;e.isIntersecting?this.visibleElements.add(t):this.visibleElements.delete(t)}t.length>0&&this.augmentVisibleElements()};onEditElement=e=>{let t=Q(this.configuration),{data:n,targetNode:i}=e.detail,a={elementRect:i.getBoundingClientRect()},o=((e,t)=>{let{type:n,validationResult:i}=(()=>{if("elementCodename"in e.parsed){let n;return{type:"element",validationResult:(n=ev(e,t.defaultDataAttributes),e.parsed.elementCodename&&n.success?{success:!0,data:{...n.data,elementCodename:e.parsed.elementCodename,contentComponentId:e.parsed.contentComponentId??void 0}}:{success:!1,missing:["elementCodename",...n.success?[]:n.missing]})}}if("contentComponentId"in e.parsed){let n;return{type:"contentComponent",validationResult:(n=ev(e,t.defaultDataAttributes),e.parsed.contentComponentId&&n.success?{success:!0,data:{...n.data,contentComponentId:e.parsed.contentComponentId}}:{success:!1,missing:["contentComponentId",...n.success?[]:n.missing]})}}return{type:"contentItem",validationResult:ev(e,t.defaultDataAttributes)}})();return i.success?(t.debug&&ex(e.debugData,"[KSL]: Parsed edit button data attributes"),"element"===n)?{type:"element",data:i.data}:"contentComponent"===n?{type:"contentComponent",data:i.data}:{type:"contentItem",data:i.data}:(ex(e.debugData,"[KSL]: Parsing edit button data attributes failed"),{type:"error",missing:i.missing})})(n,this.configuration);if("error"===o.type){eu(`Required attribute was not found: ${o.missing[0]}. Skipped parsing these attributes: ${o.missing.slice(1).join(", ")}`),eu("Debug info: ",o.debug),eu("Skipping edit button click");return}
526if("element"===o.type)if(t)this.iframeCommunicator.sendMessage(R.ElementClicked,o.data,a);else{var s,r,l;let e="contentComponentId"in(s={environmentId:o.data.projectId,languageCodename:o.data.languageCodename,itemId:o.data.itemId,elementCodename:o.data.elementCodename,baseUrl:this.configuration.baseUrl})?(r={environmentId:s.environmentId,languageCodename:s.languageCodename,itemId:s.itemId,contentComponentId:s.contentComponentId,componentElementCodename:s.componentElementCodename,baseUrl:s.baseUrl},`${ed({environmentId:r.environmentId,languageCodename:r.languageCodename,itemId:r.itemId,baseUrl:r.baseUrl})}/component/${r.contentComponentId}/element/${r.componentElementCodename}`):(l={environmentId:s.environmentId,languageCodename:s.languageCodename,itemId:s.itemId,elementCodename:s.elementCodename,baseUrl:s.baseUrl},`${ed({environmentId:l.environmentId,languageCodename:l.languageCodename,itemId:l.itemId,baseUrl:l.baseUrl})}/element/${l.elementCodename}`);window.open(e,"_blank","noopener")}else if("contentComponent"===o.type)t?this.iframeC
526ommunicator.sendMessage(R.ContentComponentClicked,o.data,a):eh("Edit buttons for content components are only functional inside Web Spotlight.");else if(t)this.iframeCommunicator.sendMessage(R.ContentItemClicked,o.data,a);else{let e=ed({environmentId:o.data.projectId,languageCodename:o.data.languageCodename,itemId:o.data.itemId,baseUrl:this.configuration.baseUrl});window.open(e,"_blank","noopener")}};onAddInitialClick=e=>{let t=Q(this.configuration),{eventData:n,onResolve:i,onReject:a}=e.detail,{data:o,targetNode:s}=n,r={elementRect:s.getBoundingClientRect()},l=ey(o,this.configuration);if(!l.success){let[e,...t]=l.missing;a({message:`Could not find required data attribute: '${e}'.${t.length>0?` All attributes higher in hierarchy were never searched for: [${t.join(", ")}]`:""}`});return}t?this.iframeCommunicator.sendMessageWithResponse(R.AddInitial,l.data,e=>e&&e.elementType!==_.Unknown?i(e):a({message:"Something went wrong"}),r):a({message:"Add buttons are only functional inside Web Spotlight"})};onAddActionClick=e=>{let t=Q(this.configuration),{data:n,targetNode:i}=e.detail,a={elementRect:i.getBoundingClientRect()},o=ey(n,this.configuration);if(o.success){if(!t)return void eh("Add buttons are only functional inside Web Spotlight.");
526this.iframeCommunicator.sendMessage(R.AddAction,{...o.data,action:n.action},a)}}}let e6=e=>{let t="childList"===e.type,n=e.target instanceof HTMLElement&&!e5(e.target);if(!t||!n)return!1;let i=Array.from(e.addedNodes).some(e=>e instanceof HTMLElement&&!e5(e)),a=Array.from(e.removedNodes).some(e=>e instanceof HTMLElement&&!e5(e));return i||a},e8=(e,t,n)=>{let i=e.get(t)?.add(n)??new Set([n]);e.set(t,i)},te=(e,t,n)=>{e.get(t)?.delete(n)},tt=(e,t,...n)=>{let i=e.get(t);i&&i.size>0&&i.forEach(e=>{e(...n)})};class tn{configuration;events=new Map;callbacks=new Map;constructor(e){this.configuration=e}initialize(){if("u"<typeof window)throw new er("IFrameCommunicator can only be initialized in a browser environment.");window.addEventListener("message",this.onMessage,!0)}destroy(){this.events=new Map,window.removeEventListener("message",this.onMessage,!0)}sendMessageWithResponse=(e,t,n,i)=>{let a=window.crypto.getRandomValues(new Uint32Array(1))[0].toString(16);n&&this.callbacks.set(a,n),this.sendMessage(e,t,i,a)};sendMessage=(e,t,n,i)=>{if(!V())throw new er("IFrameCommunicator: iframe message can only be send while inside iframe.");window.parent.postMessage({type:e,data:t,metadata:n,requestId:i},U(this.configuration))};addMessageListener=(e,t)=>{e8(this.events,e,t)};removeMessageListener=(e,t)=>{te(this.events,e,t)};onMessage=e=>{if(void 0===e.data||e.origin!==U(this.configuration)||e.source!==window.parent)return;let t=e.data;tt(this.events,t.type,t.data,t.metadata),void 0!==t.requestId&&this.executeCallback(t.requestId,t.data)};executeCallback=(e,t)=>{let n=this.callbacks.get(e);n&&(n(t),this.callbacks.delete(e))}}let ti=(e,t)=>{let n=!1,i=()=>{let i=RegExp(`[?&]${e}([=&]|$)`,"i").test(window.location.search);n!==i&&(t(i),n=i)};i();let a=window.setInterval(i,1e3);return()=>{clearInterval(a)}};function ta(){try{window.location.reload()}catch(e){eu(e)}}let to="Local storage is not available or access to local storage is denied for the current document. It may affect the proper work of the SDK.";(v=z||(z={})).Refresh="refresh",v.Update="update";let ts=class e{configuration=F;iframeCommunicator;domSmartLinkManager;events;queryPresenceIntervalCleanup=null;constructor(e){this.configuration={...this.configuration,...e}
526,this.events=new Map,this.iframeCommunicator=new tn(this.configuration),this.domSmartLinkManager=new e7(this.iframeCommunicator,this.configuration),this.initialize()}static getSettingsStorage(){var e;return e="kontent-smart-link:iframe-settings",{get(){try{let t=window.localStorage.getItem(e);return null!==t?JSON.parse(t):null}catch{return eh(to),null}},set(t){try{let n=JSON.stringify(t);window.localStorage.setItem(e,n)}catch{eh(to)}},remove(){try{window.localStorage.removeItem(e)}catch{eh(to)}}}}initialize=async()=>{await Promise.all(e2.map(async e=>await e.define())),ec=this.configuration.debug?T.Debug:T.Info,this.configuration.queryParam?this.queryPresenceIntervalCleanup=ti(this.configuration.queryParam,this.domSmartLinkManager.toggle):this.domSmartLinkManager.enable(),V()&&this.initializeIFrameCommunication()};destroy=()=>{this.events=new Map,this.queryPresenceIntervalCleanup?.(),this.iframeCommunicator.destroy(),this.domSmartLinkManager.destroy()};updateConfiguration=e=>{void 0!==e.queryParam&&(""===e.queryParam?this.domSmartLinkManager.enable():e.queryParam!==this.configuration.queryParam&&(this.queryPresenceIntervalCleanup?.(),this.queryPresenceIntervalCleanup=ti(e.queryParam,this.domSmartLinkManager.toggle))),!0===e.debug&&(ec=T.Debug),Object.assign(this.configuration,e)};on=(e,t)=>{e8(this.events,e,t)};off=(e,t)=>{te(this.events,e,t)};initializeIFrameCommunication=()=>
526{this.iframeCommunicator.initialize();let t=e.getSettingsStorage().get(),n=null===t||t.enabled,i={enabled:n,languageCodename:this.configuration.defaultDataAttributes.languageCodename??null,projectId:this.configuration.defaultDataAttributes.environmentId??null,supportedFeatures:{previewIFrameCurrentUrlHandler:!0,refreshHandler:!0,updateHandler:!0}};this.iframeCommunicator.sendMessageWithResponse(R.Initialized,i,()=>{Object.assign(this.configuration,{isInsideWebSpotlight:!0}),this.queryPresenceIntervalCleanup?.(),this.domSmartLinkManager.disable(),n&&this.domSmartLinkManager.enable(),this.iframeCommunicator.addMessageListener(R.Status,this.handleStatusMessage),this.iframeCommunicator.addMessageListener(R.RefreshPreview,this.handleRefreshMessage),this.iframeCommunicator.addMessageListener(R.UpdatePreview,this.handleUpdateMessage),this.iframeCommunicator.addMessageListener(R.PreviewIFrameCurrentUrl,this.handlePreviewIFrameCurrentUrlRequestMessage)})};handleStatusMessage=t=>{this.domSmartLinkManager.toggle(t.enabled),e.getSettingsStorage().set({enabled:t.enabled})};handleRefreshMessage=(e,t)=>{this.events.has(z.Refresh)?tt(this.events,z.Refresh,e,t,ta):ta()};handleUpdateMessage=e=>{tt(this.events,z.Update,e,void 0,void 0)};handlePreviewIFrameCurrentUrlRequestMessage=()=>{let e={previewUrl:window.location.href};
526this.iframeCommunicator.sendMessage(R.PreviewIFrameCurrentUrlResponse,e)}};class tr{static instance=null;sdk=null;static initializeOnLoad(e){if("u"<typeof window)throw new er("KontentSmartLink can only be initialized in a browser environment.");return new Promise(t=>{window.addEventListener("load",()=>{t(tr.initialize(e))})})}static initialize(e){return tr.instance??=new tr,tr.instance.sdk??=new ts(e),tr.instance}destroy=()=>{this.sdk?.destroy(),this.sdk=null};setConfiguration=e=>{if(this.sdk)this.sdk.updateConfiguration(e);else throw new el("KontentSmartLink is not initialized or has already been destroyed.")};on=(e,t)=>{if(this.sdk)this.sdk.on(e,t);else throw new el("KontentSmartLink is not initialized or has already been destroyed.")};off=(e,t)=>{if(this.sdk)this.sdk.off(e,t);else throw new el("KontentSmartLink is not initialized or has already been destroyed.")}}e.i(693186);var tl=e.i(539901);let td=e=>({optionallyAsyncFnc:e}),tc=(e,t)=>({optionallyAsyncFnc:n=>{let i=e.optionallyAsyncFnc(n);return i instanceof Promise?i.then(t):t(i)}}),tu=e=>({optionallyAsyncFnc:t=>{let n=e.map(e=>e.optionallyAsyncFnc(t)),i=n.filter(e=>!(e instanceof Promise));return i.length===n.length?i:Promise.all(n.map(e=>e instanceof Promise?e:Promise.resolve(e)))}}),th=(e,t,n=null,i=[])=>{let a=e.system.codename===t.item.codename&&e.system.language===t.variant.codename,o=!n&&a?{...e}:n,s=tu(Object.entries(e.elements).map(([e,s])=>{let r=t.elements.find(t=>t.element.codename===e);return a&&r?tc(tp(s,r),t=>[e,t]):s.type===tl.ElementType.ModularContent||s.type===tl.ElementType.RichText?tc(tu(s.linkedItems.map(e=>n?.system.codename===e.system.codename?td(()=>n):tm(i,e.system.codename,n?.system.codename??null)?td(()=>e):th(e,t,o,[...i,e.system.codename]))),t=>t.some((e,t)=>e!==s.linkedItems[t])?[e,{...s,linkedItems:t}]:[e,s]):td(()=>[e,s])}));return tc(s,t=>o?.system.codename===e.system.codename?(o.elements=Object.fromEntries(t),o):t.some(([t,n])=>e.elements[t]!==n)?{...e,elements:Object.fromEntries(t)}:e)},tm=(e,t,n)=>{let i=e.indexOf(t);return -1!==i&&(!n||i>e.indexOf(n))},tp=(e,t)=>{switch(t.type){case tl.ElementType.Text:case tl.ElementType.Number:case tl.ElementType.UrlSlug:return td(()=>tb(e,t));case tl.ElementType.ModularContent:return ty(e,t);case tl.ElementType.RichText:return tx(e,t);case tl.ElementType.MultipleChoice:return td(()=>tv(e,t,(e,t)=>e?.codename===t?.codename));case tl.ElementType.DateTime:return td(()=>tf(e,t));case tl.ElementType.Asset:return td(()=>tv(e,t,(e,t)=>e?.url===t?.url));case tl.ElementType.Taxonomy:return td(()=>tv(e,t,(e,t)=>e?.codename===t?.codename));case tl.ElementType.Custom:return td(()=>tg(e,t));default:return td(()=>e)}},tg=(e,t)=>"string"==typeof e.value&&e.value!==t.data.value?{...e,value:t.data.value}:e,tf=(e,t)=>e.value===t.data.value&&e.displayTimeZone===t.data.displayTimeZone?e:{...e,value:t.data.value,displayTimeZone:t.data.displayTimeZone},tb=(e,t)=>e.value===t.data.value?e:{...e,value:t.data.value},tv=(e,t,n)=>e.value.length===t.data.value.length&&e.value.every((e,i)=>n(e,t.data.value[i]))?e:{...e,value:t.data.value},ty=(e,t)=>tE(e.value,t.data.value)?td(()=>e):tc(tC(t.data.value,e.linkedItems),n=>({...e,value:t.data.value,linkedItems:n})),tx=(e,t)=>{let n,i,a;if(tw(e,t.data))return td(()=>e);return n=tc(tC(t.data.linkedItemCodenames,t.data.linkedItems.filter(t=>!e.linkedItems.find(e=>e.system.codename===t.system.codename)).concat(e.linkedItems)),n=>({...e,value:t.data.value,linkedItemCodenames:t.data.linkedItemCodenames,links:t.data.links,images:t.data.images,linkedItems:n})),i=e=>tc(tk(t.data.linkedItems,e.linkedItems),t=>({...e,linkedItems:t})),a=tc(n,i),{optionallyAsyncFnc:e=>{let t=a.optionallyAsyncFnc(e);return t instanceof Promise?t.then(t=>t.optionallyAsyncFnc(e)):t.optionallyAsyncFnc(e)}}},tw=(e,t)=>e.value===t.value&&e.links.length===t.links.length&&e.links.every((e,n)=>e.codename===t.links[n].codename)&&e.images.length===t.images.length&&e.images.every((e,n)=>e.url===t.images[n].url)&&e.linkedItemCodenames.length===t.linkedItemCodenames.length&&e.linkedItemCodenames.every((e,n)=>
526e===t.linkedItemCodenames[n])&&e.linkedItems.length===t.linkedItems.length&&e.linkedItems.every((e,n)=>{let i;return i=t.linkedItems[n],e.system.codename===i.system.codename&&e.system.language===i.system.language&&Object.entries(e.elements).every(([e,t])=>((e,t)=>{switch(e.type){case tl.ElementType.Text:case tl.ElementType.Number:case tl.ElementType.UrlSlug:return e.value===t.value;case tl.ElementType.MultipleChoice:return e.value.length===t.value.length&&e.value.every((e,n)=>e.codename===t.value[n]?.codename);case tl.ElementType.DateTime:return e.value===t.value&&e.displayTimeZone===t.displayTimeZone;case tl.ElementType.RichText:return tw(e,t);case tl.ElementType.Taxonomy:return e.value.length===t.value.length&&e.value.every((e,n)=>e.codename===t.value[n].codename);case tl.ElementType.Asset:return e.value.length===t.value.length&&e.value.every((e,n)=>e.url===t.value[n].url);case tl.ElementType.ModularContent:return e.value.length===t.value.length&&e.value.every((e,n)=>e===t.value[n]);case tl.ElementType.Custom:return e.value===t.value;case tl.ElementType.Unknown:throw Error()}})(t,i.elements[e]))}),tk=(e,t)=>tu(t.map(t=>{let n=e.find(e=>e.system.codename===t.system.codename);return n?th(t,tI(n)):td(()=>t)})),tC=(e,t)=>{let n=new Map(t.map(e=>[e.system.codename,e])),i=e.map(e=>n.get(e)??e),a=i.filter(tj);return tc(td(async e=>e&&a.length?await e(a):[]),e=>{let t=new Map(e.map(e=>[e.system.codename,e]));return i.map(e=>tj(e)?t.get(e)??null:e).filter(t_)})},tE=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),t_=e=>null!==e,tj=e=>"string"==typeof e,tI=e=>({variant:{codename:e.system.language},item:{codename:e.system.codename},elements:Object.entries(e.elements).map(([e,t])=>{switch(t.type){case tl.ElementType.Number:case tl.ElementType.UrlSlug:case tl.ElementType.MultipleChoice:case tl.ElementType.Custom:case tl.ElementType.Asset:case tl.ElementType.Text:case tl.ElementType.DateTime:case tl.ElementType.RichText:case tl.ElementType.Taxonomy:case tl.ElementType.ModularContent:return{element:{codename:e},type:t.type,data:t};case tl.ElementType.Unknown:throw Error(`Cannot update element of type ${t.type}.`);default:throw Error("Unknown element type")}})});var tR=e.i(271645),tL=e.i(788915),tT=e.i(903096);let tP=e=>{let t,n,i=(0,O.c)(4),{description:a}=e,[o,s]=(0,tR.useState)(!0);i[0]===Symbol.for("react.memo_cache_sentinel")?(t=function(){s(!1)},i[0]=t):t=i[0];let r=t;return i[1]!==a||i[2]!==o?(n=o&&(0,B.jsx)("div",{"data-slot":"notification",className:"bg-[#e6f2fa] py-4 max-w-(--wrapper) mx-auto",children:(0,B.jsxs)("div",{"data-slot":"notification-container",className:"max-w-container mx-auto w-full px-3.5 flex justify-between relative",children:[a&&(0,B.jsx)(tT.RichText,{className:"mr-8 **:text-x-small **:leading-(--line-height-x-small) **:text-grey-80 md:**:text-small md:**:leading-(--line-height-small)",data:a}),(0,B.jsx)("button",{"data-slot":"notification-close","aria-label":"Close notification",className:"leading-0 bg-transparent border-none absolute p-4 -top-3 right-0 focus",onClick:r,children:(0,B.jsx)(tL.Icon,{icon:"fa-solid fa-close"})})]})}),i[1]=a,i[2]=o,i[3]=n):n=i[3],n},tS=e=>{let t,n=(0,O.c)(2),{skip_to_main_content:i}=e;return n[0]!==i?(t=(0,B.jsx)("a",{"data-slot":"skipper",className:"absolute -top-250 z-10 block w-full max-w-(--wrapper) bg-(--color-grey-80) py-4 text-center text-white focus:fixed focus:top-0",href:"#main",children:i}),n[0]=i,n[1]=t):t=n[1],t};var tA=e.i(770703),tN=e.i(368356),tM=e.i(657688);let t$=e=>{let t,n,i=(0,O.c)(4),{logo:a}=e;return i[0]!==a?(t=a&&(0,B.jsx)(tN.Link,{"data-slot":"navbar-brand",href:a.url,name:a.name,className:"relative top-(--navbar-logo-offset) z-5 grid",children:(0,B.jsx)(tM.default,{src:a.src.desktop.src,width:a.src.desktop.width??void 0,height:a.src.desktop.height??void 0,alt:a.src.alt,style:{width:a.src.desktop.width?`${a.src.desktop.width}px`:void 0,height:a.src.desktop.height?`${a.src.desktop.height}px`:void 0},priority:!0})}),i[0]=a,i[1]=t):t=i[1],i[2]!==t?(n=(0,B.jsx)(B.Fragment,{children:t}),i[2]=t,i[3]=n):n=i[3],n};var tz=e.i(937934);let tB=e=>{let t,n=(0,O.c)(7),{link:i,active:a,setActive:o}=e;return n[0]!==a||n[1]!==i.id||n[2]!==i.links||n[3]!==i.style||n[4]!==i.type||n[5]!==o?(t="menu_category"===i.type&&i.links?.length!==0&&(0,B.jsx)("ul",{id:`dropdown-${i.id}`,"data-slot":"navbar-dropdown",className:(0,tz.cn)("invisible absolute top-(--navbar-desktop-height) left-0 z-4 grid w-full list-none gap-6 bg-white opacity-0 shadow-[0px_20px_24px_rgba(0,0,0,0.16)]! transition-all duration-200",{"visible translate-y-0 opacity-100":i.id===a,"top-21.25 left-auto w-58 translate-x-0 gap-0 rounded-b-(--border-radius-lg) pb-2":"menu_category"===i.type&&"basic"===i.style}),children:"menu_category"===i.type&&i.links?.map((e,t)=>"menu_category"===e.type?(0,B.jsxs)("li",{"data-slot":"navbar-dropdown-item",children:[(0,B.jsx)("h4",{"data-slot":"navbar-title",className:"mb-0 p-3.5 text-(length:--font-size-mobile-h4) leading-(--line-height-mobile-h4) font-bold text-black **:mb-0! **:p-3.5 **:text-(length:--font-size-mobile-h4) **:leading-(--line-height-mobile-h4) **:font-bold md:text-h4 md:leading-(--line-height-h4) md:**:text-h4 [&_br]:leading-0",children:e.text}),e.links?.map((e,t)=>"menu_category"===e.type?null:(0,B.jsx)("li",{"data-slot":"navbar-dropdown-item",children:(0,B.jsx)(tN.Link,{"data-slot":"navbar-dropdown-link",className:"block px-4 py-2 text-small leading-(--line-height-small) text-crimson no-underline hover:underline",href:"url"in e?e.url:"",onClick:()=>o(null),prefetch:!1,children:e.text})},t))]},t):(0,B.jsx)("li",{"data-slot":"navbar-dropdown-item",children:(0,B.jsx)(tN.Link,{"data-slot":"navbar-dropdown-link",className:"block px-4 py-2 text-small leading-(--line-height-small) text-crimson no-underline hover:underline",href:"url"in e?e.url:"",onClick:()=>o(null),headerLink:!0,prefetch:!1,children:e.text})},t))}),n[0]=a,n[1]=i.id,n[2]=i.links,n[3]=i.style,n[4]=i.type,n[5]=o,n[6]=t):t=n[6],t},tO=e=>{let t,n,i,a,o=(0,O.c)(9),{links:s,split:r,setActive:l}=e;return o[0]!==r?(t=(0,tz.cn)("list-none",{"grid grid-cols-2":r}),o[0]=r,o[1]=t):t=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(n=[1,2],o[2]=n):n=o[2],o[3]!==s||o[4]!==l?(i=n.map(e=>(0,B.jsx)("div",{children:s&&s?.map((t,n)=>{if("menu_category"===t.type||!("url"in t))return null;let{text:i,url:a,col:o}=t;return o===e&&(0,B.jsx)("li",{"data-slot":"navbar-category-item",className:"leading-[normal]",children:(0,B.jsx)(tN.Link,{"data-slot":"navbar-category-link",href:a,className:"relative block px-3.5 py-2 leading-[normal] text-crimson no-underline not-last:mb-5 hover:underline",onClick:()=>l(null),headerLink:!0,prefetch:!1,children:i})},n)})},e)),o[3]=s,o[4]=l,o[5]=i):i=o[5],o[6]!==t||o[7]!==i?(a=(0,B.jsx)("ul",{"data-slot":"navbar-category-list",className:t,children:i}),o[6]=t,o[7]=i,o[8]=a):a=o[8],a}
526,tD=e=>{let t,n,i,a,o=(0,O.c)(9),{links:s,split:r,setActive:l}=e;return o[0]!==r?(t=(0,tz.cn)("list-none",{"grid grid-cols-2":r}),o[0]=r,o[1]=t):t=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(n=[1,2],o[2]=n):n=o[2],o[3]!==s||o[4]!==l?(i=n.map(e=>(0,B.jsx)("li",{"data-slot":"navbar-category-item",className:"mb-0 leading-[normal]",children:(0,B.jsx)("ul",{"data-slot":"navbar-category-list",className:"list-none",children:s&&s?.map((t,n)=>{if("menu_category"===t.type||!("url"in t))return null;let{text:i,url:a,col:o}=t;return o===e&&(0,B.jsx)("li",{"data-slot":"navbar-category-item",className:"leading-[normal]",children:(0,B.jsx)(tN.Link,{"data-slot":"navbar-category-link",href:a,className:"relative block px-3.5 py-2 leading-[normal] text-crimson no-underline not-last:mb-5 hover:underline",onClick:()=>l(null),headerLink:!0,prefetch:!1,children:i})},n)})})},e)),o[3]=s,o[4]=l,o[5]=i):i=o[5],o[6]!==t||o[7]!==i?(a=(0,B.jsx)("ul",{"data-slot":"navbar-category-list",className:t,children:i}),o[6]=t,o[7]=i,o[8]=a):a=o[8],a},tH=e=>{let t,n,i,a,o,s,r=(0,O.c)(19),{item:l,setActive:d}=e,{text:c,description:u,split:h}=l;return r[0]!==c?(t=(0,B.jsx)("h4",{"data-slot":"navbar-title",className:"mb-0 px-3.5 text-(length:--navbar-dropdown-title-font-size) leading-(--navbar-dropdown-title-line-height) font-normal text-(--navbar-dropdown-title-color) **:mb-0! **:px-3.5 **:text-(length:--navbar-dropdown-title-font-size) **:leading-(--navbar-dropdown-title-line-height) **:text-(--navbar-dropdown-title-color) [&_br]:leading-0",children:c}),r[0]=c,r[1]=t):t=r[1],r[2]!==u?(n=u&&(0,B.jsx)("div",{"data-slot":"navbar-description",className:"px-3.5 text-small leading-(--line-height-small) text-grey-60",children:u}),r[2]=u,r[3]=n):n=r[3],r[4]!==l||r[5]!==d||r[6]!==h?(i=!h&&(0,B.jsx)(tO,{...l,setActive:d}),r[4]=l,r[5]=d,r[6]=h,r[7]=i):i=r[7],r[8]!==l||r[9]!==d||r[10]!==h?(a=h&&(0,B.jsx)(tD,{...l,setActive:d}),r[8]=l,r[9]=d,r[10]=h,r[11]=a):a=r[11],r[12]!==i||r[13]!==a?(o=(0,B.jsxs)("div",{"data-slot":"navbar-category-list-wrapper",className:"mt-6",children:[i,a]}),r[12]=i,r[13]=a,r[14]=o):o=r[14],r[15]!==t||r[16]!==n||r[17]!==o?(s=(0,B.jsxs)("div",{"data-slot":"navbar-category",className:"not-last:mb-10",children:[t,n,o]}),r[15]=t,r[16]=n,r[17]=o,r[18]=s):s=r[18],s},tq=e=>{let t,n,i,a,o,s,r,l=(0,O.c)(23),{link:d,active:c,setActive:u}=e;l[0]!==d.links||l[1]!==d.type?(t=new Set("menu_category"===d.type?d.links?.map(tV)??[]:[]),l[0]=d.links,l[1]=d.type,l[2]=t):t=l[2],l[3]!==t?(n=[...t],l[3]=t,l[4]=n):n=l[4];let h=n,m=`dropdown-${d.id}`,p=d.id===c,g="menu_category"===d.type&&"complex"===d.style;l[5]!==p||l[6]!==g?(i=(0,tz.cn)("invisible absolute top-(--navbar-desktop-height) left-0 z-4 grid w-full list-none gap-6 bg-white p-4 opacity-0 shadow-[0px_20px_24px_rgba(0,0,0,0.16)]! transition-all duration-200",{"visible translate-y-0 opacity-100":p,"pt-22 pb-10":g}),l[5]=p,l[6]=g,l[7]=i):i=l[7];let f=2===h.length,b=3===h.length;return l[8]!==f||l[9]!==b?(a=(0,tz.cn)("mx-auto grid w-full max-w-285 gap-7 p-0",{"md:grid-cols-2":f,"md:grid-cols-3":b}),l[8]=f,l[9]=b,l[10]=a):a=l[10],l[11]!==h||l[12]!==d.links||l[13]!==d.type||l[14]!==u?(o=h.map(e=>(0,B.jsx)("li",{children:"menu_category"===d.type&&d.links?.map((t,n)=>{let{col:i}=t;if("menu_category"===t.type)return i===e&&(0,B.jsx)(tH,{item:t,setActive:u},n)})},e)),l[11]=h,l[12]=d.links,l[13]=d.type,l[14]=u,l[15]=o):o=l[15],l[16]!==o||l[17]!==a?(s=(0,B.jsx)("div",{"data-slot":"navbar-dropdown-container",className:a,children:o}),l[16]=o,l[17]=a,l[18]=s):s=l[18],l[19]!==s||l[20]!==m||l[21]!==i?(r=(0,B.jsx)("ul",{id:m,"data-slot":"navbar-dropdown",className:i,children:s}),l[19]=s,l[20]=m,l[21]=i,l[22]=r):r=l[22],r};function tV(e){return e.col}var tF=e.i(893435),tQ=e.i(259087);let tU=e=>{let t,n,i,a,o,s=(0,O.c)(18),{link:r,active:l,setActive:d}=e,c=`dropdown-${r.id}`,u=r.id===l,h="menu_category"===r.type&&"simple"===r.style;s[0]!==u||s[1]!==h?(t=(0,tz.cn)("invisible absolute top-(--navbar-desktop-height) left-0 z-4 grid w-full list-none gap-6 bg-white p-4 opacity-0 shadow-[0px_20px_24px_rgba(0,0,0,0.16)] transition-all duration-200",{"visible translate-y-0 opacity-100":u,"pt-22 pb-10 text-center":h}
526),s[0]=u,s[1]=h,s[2]=t):t=s[2];let m="menu_category"===r.type&&r.links?.length===4,p="menu_category"===r.type&&r.links?.length===3,g="menu_category"===r.type&&r.links?.length===2;return s[3]!==m||s[4]!==p||s[5]!==g?(n=(0,tz.cn)("mx-auto grid w-full max-w-285 gap-7 px-3.5",{"md:grid-cols-4":m,"md:grid-cols-3":p,"md:grid-cols-2":g}),s[3]=m,s[4]=p,s[5]=g,s[6]=n):n=s[6],s[7]!==r.links||s[8]!==r.type||s[9]!==d?(i="menu_category"===r.type&&r.links?.map((e,t)=>{if("menu_category"!==e.type)return(0,B.jsx)("li",{"data-slot":"navbar-dropdown-item",children:(0,B.jsxs)(tN.Link,{"data-slot":"navbar-dropdown-link",className:"group leading-7 **:duration-200",href:"url"in e?e.url:"",onClick:()=>d(null),headerLink:!0,prefetch:!1,children:[(0,B.jsxs)("div",{"data-slot":"navbar-icon",className:"relative mb-4 inline-block h-12 w-full leading-7",children:["page"===e.type&&e.icon&&(0,B.jsx)(tM.default,{"data-slot":"navbar-icon-normal",className:(0,tz.cn)("opacity-0 mix-blend-normal group-hover:opacity-100"),fill:!0,sizes:"48px",alt:e.text,src:e.icon}),"page"===e.type&&e.icon&&(0,B.jsx)(tM.default,{"data-slot":"navbar-icon-luminosity",className:(0,tz.cn)("opacity-100 mix-blend-luminosity group-hover:opacity-0"),fill:!0,sizes:"48px",alt:e.text,src:e.icon})]}),(0,B.jsx)("div",{"data-slot":"navbar-title",className:"mb-4 text-(length:--navbar-dropdown-title-font-size) leading-(--navbar-dropdown-title-line-height) font-normal text-(--navbar-dropdown-title-color) **:mb-4 **:text-(length:--navbar-dropdown-title-font-size) **:leading-(--navbar-dropdown-title-line-height) **:text-(--navbar-dropdown-title-color) group-hover:text-black [&_br]:leading-0",children:(0,tQ.default)("page"===e.type&&e.rich_text_title?e.rich_text_title:(e=>{switch(e){case"Patient Resources":return"Patient</br>Resources";case"Clinical Research & Trials":return"Clinical Research<br>& Trials";case"Patient Support Center":return"Patient Support<br>Center";default:return e}})(e.text??""))}),"page"===e.type&&e.cta_text&&(0,B.jsx)(tF.Button,{"data-slot":"navbar-dropdown-btn",className:"text-(length:--font-size-x-small) group-hover:border-(--color-maroon) group-hover:text-(--color-maroon)",btn_style:"tertiary",element_type:"div",btn_size:"sm",block:!0,children:(0,tQ.default)(e.cta_text)})]})},t)}),s[7]=r.links,s[8]=r.type,s[9]=d,s[10]=i):i=s[10],s[11]!==n||s[12]!==i?(a=(0,B.jsx)("div",{"data-slot":"navbar-dropdown-container",className:n,children:i}),s[11]=n,s[12]=i,s[13]=a):a=s[13],s[14]!==c||s[15]!==a||s[16]!==t?(o=(0,B.jsx)("ul",{id:c,"data-slot":"navbar-dropdown",className:t,children:a}),s[14]=c,s[15]=a,s[16]=t,s[17]=o):o=s[17],o},tK=e=>{let t,n,i,a,o,s=(0,O.c)(15),{link:r,active:l,setActive:d}=e,c=`dropdown-${r.id}`,u=r.id===l;s[0]!==u?(t=(0,tz.cn)("invisible absolute top-(--navbar-dropdown-offset-top) left-1/2 z-4 grid w-full max-w-278 -translate-x-1/2 translate-y-15 translate-z-0 transform list-none gap-6 rounded-b-lg bg-white p-4 opacity-0 shadow-far transition-all duration-300 will-change-[transform,opacity]",{"visible -translate-x-1/2 translate-y-0 translate-z-0 opacity-100":u}),s[0]=u,s[1]=t):t=s[1];let h="menu_category"===r.type&&(r.links?.length??0)>0;return s[2]!==h?(n=(0,tz.cn)("mx-auto grid w-full max-w-285 gap-6",{"md:grid-cols-[repeat(auto-fit,minmax(0,1fr))]":h}),s[2]=h,s[3]=n):n=s[3],s[4]!==r.links||s[5]!==r.type||s[6]!==d?(i="menu_category"===r.type&&r.links?.map((e,t)=>{if("menu_category"!==e.type)return(0,B.jsx)("li",{children:(0,B.jsxs)(tN.Link,{"data-slot":"navbar-dropdown-link",className:"group block h-full cursor-pointer rounded-(--border-radius-lg) bg-[#f7f7f7] px-4 py-6 text-center leading-7 hover:bg-[#f3f3f3] **:duration-200",href:"url"in e?e.url:"",onClick:()=>d(null),headerLink:!0,prefetch:!1,children:[(0,B.jsxs)("div",{"data-slot":"navbar-icon",className:"relative mb-4 inline-block h-12 w-full leading-7",children:["page"===e.type&&e.icon&&(0,B.jsx)(tM.default,{"data-slot":"navbar-icon-normal",className:(0,tz.cn)("opacity-0 mix-blend-normal group-hover:opacity-100"),fill:!0,sizes:"48px",alt:e.text,src:e.icon}),"page"===e.type&&e.icon&&(0,B.jsx)(tM.default,{"data-slot":"navbar-icon-luminosity",className:(0,tz.cn)("opacity-100 mix-blend-luminosity group-hover:opacity-0"),fill:!0,sizes:"48px",alt:e.text,src:e.icon})]}),"page"===e.type&&e.rich_text_title?(0,tQ.default)(`<div data-slot="navbar-title" className="group-hover:text-black group-hover:**:text-black font-normal text-(length:--navbar-dropdown-title-font-size) leading-(--navbar-dropdown-title-line-height) text-(--navbar-dropdown-title-color) **:text-(length:--navbar-dropdown-title-font-size) **:leading-(--navbar-dropdown-title-line-height) **:text-(--navbar-dropdown-title-color) [&_br]:leading-0">${e.rich_text_title}</div>`):(0,tQ.default)(`<div data-slot="navbar-title" className="group-hover:text-black group-hover:**:text-black font-normal text-(length:--navbar-dropdown-title-font-size) leading-(--navbar-dropdown-title-line-height) text-(--navbar-dropdown-title-color) **:text-(length:--navbar-dropdown-title-font-size) **:leading-(--navbar-dropdown-title-line-height) **:text-(--navbar-dropdown-title-color) [&_br]:leading-0">${e.text}</div>`)]})},t)}),s[4]=r.links,s[5]=r.type,s[6]=d,s[7]=i):i=s[7],s[8]!==n||s[9]!==i?(a=(0,B.jsx)("div",{"data-slot":"navbar-dropdown-container",className:n,children:i}),s[8]=n,s[9]=i,s[10]=a):a=s[10],s[11]!==c||s[12]!==t||s[13]!==a?(o=(0,B.jsx)("ul",{id:c,"data-slot":"navbar-dropdown",className:t,children:a}),s[11]=c,s[12]=t,s[13]=a,s[14]=o):o=s[14],o},tZ=e=>{let t,n,i,a,o,s,r,l=(0,O.c)(37),{link:d,active:c,handleClick:u,setActive:h}=e;return l[0]!==c||l[1]!==u||l[2]!==d.id||l[3]!==d.text||l[4]!==d.title_rich||l[5]!==d.type?(t="page"!==d.type&&(0,B.jsxs)("button",{"data-slot":"navbar-link",className:(0,tz.cn)("text=(length:--navbar-link-font-size) focus relative mb-0 inline-flex h-full items-center gap-2 border-none bg-transparent px-4 text-left leading-[normal] text-(--navbar-link-color) no-underline hover:opacity-80 [&_p]:text-(length:--navbar-link-font-size) [&_p]:leading-7! [&_p]:text-(--navbar-link-color) hover:text-(--navbar-link-color-hover) group",{"bg-white text-black hover:text-black hover:opacity-100":d.id===c}),onClick:e=>u(e,d.id??""),"aria-expanded":d.id===c,"aria-controls":`dropdown-${d.id}`,children:["menu_category"===d.type&&d?.title_rich?(0,tQ.default)(d.title_rich):d.text," ",(0,B.jsx)(tL.Icon,{"data-slot":"navbar-dropdown-arrow",wrapperIconClassName:(0,tz.cn)("block rotate-0 text-(length:--navbar-dropdown-font-size) text-(--navbar-dropdown-caret-color) group-hover:text-(--navbar-link-color-hover) transition-transform duration-200",{"rotate-180 text-grey-60 group-hover:text-grey-60":d.id===c}),icon:"fa-regular fa-chevron-down"})]}),l[0]=c,l[1]=u,l[2]=d.id,l[3]=d.text,l[4]=d.title_rich,l[5]=d.type,l[6]=t):t=l[6],l[7]!==d.rich_text_title||l[8]!==d.text||l[9]!==d.type||l[10]!==d.url||l[11]!==h?(n="page"===d.type&&(0,B.jsx)(tN.Link,{"data-slot":"navbar-link",href:d.url,className:"text=(length:--navbar-link-font-size) focus relative mb-0 inline-flex h-full items-center gap-2 border-none bg-transparent px-4 text-left leading-[normal] text-(--navbar-link-color) no-underline hover:text-(--navbar-link-color-hover) hover:opacity-80 [&_p]:text-(length:--navbar-link-font-size) [&_p]:leading-7! [&_p]:text-(--navbar-link-color)",onClick:()=>h(null),headerLink:!0,prefetch:!1,children:d?.rich_text_title?(0,tQ.default)(d.rich_text_title):d.text}),l[7]=d.rich_text_title,l[8]=d.text,l[9]=d.type,l[10]=d.url,l[11]=h,l[12]=n):n=l[12],l[13]!==c||l[14]!==d||l[15]!==h?(i="menu_category"===d.type&&"simple"===d.style&&(0,B.jsx)(tU,{link:d,active:c,setActive:h}),l[13]=c,l[14]=d,l[15]=h,l[16]=i):i=l[16],l[17]!==c||l[18]!==d||l[19]!==h?(a="menu_category"===d.type&&"card"===d.style&&(0,B.jsx)(tK,{link:d,active:c,setActive:h}),l[17]=c,l[18]=d,l[19]=h,l[20]=a):a=l[20],l[21]!==c||l[22]!==d||l[23]!==h?(o="menu_category"===d.type&&"complex"===d.style&&(0,B.jsx)(tq,{link:d,active:c,setActive:h}),l[21]=c,l[22]=d,l[23]=h,l[24]=o):o=l[24],l[25]!==c||l[26]!==d||l[27]!==h?(s="menu_category"===d.type&&"basic"===d.style&&(0,B.jsx)(tB,{link:d,active:c,setActive:h}),l[25]=c,l[26]=d,l[27]=h,l[28]=s):s=l[28],l[29]!==d.id||l[30]!==t||l[31]!==n||l[32]!==i||l[33]!==a||l[34]!==o||l[35]!==s?(r=(0,B.jsxs)("li",{"data-slot":"navbar-item",className:"flex h-full items-center text-(length:--navbar-link-font-size)",children:[t,n,i,a,o,s]},d.id),l[29]=d.id,l[30]=t,l[31]=n,l[32]=i,l[33]=a,l[34]=o,l[35]=s,l[36]=r):r=l[36],r};var tW=e.i(618566);let tG=(0,tA.default)(()=>e.A(462788).then(e=>e.Search),{loadableGenerated:{modules:[59112]}}),tY=e=>{let t,n,i,a,o,s,r,l,d,c,u,h,m=(0,O.c)(32),{links:p,remove_search_functionality:g,search_placeholder:f,logo:b,search_notice:v}=e,[y,x]=(0,tR.useState)(null),w=(0,tW.usePathname)(),k=(0,tR.useRef)(null),[C,E]=(0,tR.useState)(w);w!==C&&(E(w),x(null)),m[0]!==y?(t=(e,t)=>
526{e.preventDefault(),y||x(t),y===t&&x(null),y!==t&&x(t)},m[0]=y,m[1]=t):t=m[1];let _=t;m[2]!==y?(n=()=>{let e=document.querySelector('[data-slot="hero"]'),t=(e?.clientHeight??0)-200,n=e=>{y&&!k.current?.contains(e.target)&&x(null)},i=()=>{scrollY>t&&null!==y&&x(null)};return document.addEventListener("mousedown",n),window.addEventListener("scroll",i),()=>{document.removeEventListener("mousedown",n),window.removeEventListener("scroll",i)}},i=[y,k],m[2]=y,m[3]=n,m[4]=i):(n=m[3],i=m[4]),(0,tR.useEffect)(n,i);let j=!b;m[5]!==j?(a=(0,tz.cn)("mx-auto flex h-full w-full max-w-container items-center justify-between px-3.5",{"justify-start":j}),m[5]=j,m[6]=a):a=m[6];let I=b??null;m[7]!==I?(o=(0,B.jsx)(t$,{logo:I}),m[7]=I,m[8]=o):o=m[8];let R=!b;m[9]!==R?(s=(0,tz.cn)("h-full",{"flex-1":R}),m[9]=R,m[10]=s):s=m[10];let L=!b;return m[11]!==L?(r=(0,tz.cn)("visible flex h-full list-none items-center",{"justify-between":L}),m[11]=L,m[12]=r):r=m[12],m[13]!==y||m[14]!==_||m[15]!==p?(l=p&&p?.map((e,t)=>(0,B.jsx)(tZ,{link:e,active:y,handleClick:_,setActive:x},t)),m[13]=y,m[14]=_,m[15]=p,m[16]=l):l=m[16],m[17]!==g||m[18]!==v||m[19]!==f?(d=!g&&(0,B.jsx)(tG,{search_placeholder:f,handleClick:()=>x(null),search_notice:v??!1}),m[17]=g,m[18]=v,m[19]=f,m[20]=d):d=m[20],m[21]!==r||m[22]!==l||m[23]!==d?(c=(0,B.jsxs)("ul",{"data-slot":"navbar-list",className:r,children:[l,d]}),m[21]=r,m[22]=l,m[23]=d,m[24]=c):c=m[24],m[25]!==c||m[26]!==s?(u=(0,B.jsx)("nav",{"data-slot":"navbar-nav",className:s,role:"navigation",children:c}),m[25]=c,m[26]=s,m[27]=u):u=m[27],m[28]!==u||m[29]!==a||m[30]!==o?(h=(0,B.jsx)("div",{"data-slot":"navbar",className:"relative hidden bg-(--navbar-background) min-[1200px]:block min-[1200px]:h-(--navbar-desktop-height)",ref:k,children:(0,B.jsxs)("div",{"data-slot":"navbar-container",className:a,children:[o,u]})}),m[28]=u,m[29]=a,m[30]=o,m[31]=h):h=m[31],h},tJ=e=>e.mobile.src&&e.mobile.width&&e.mobile.height?e.mobile:e.desktop,tX=e=>{let t=(0,O.c)(43),{logo:n,utility_navigation:i}=e;if(n){let e,i,a,o,s,r,l,d,c,u;if(t[0]!==n.src||t[1]!==n.url){let c=tJ(n.src);i=tN.Link,r="brand",l=n.url,d="flex",e=tM.default,a=c.src,o=Math.round(c.width??0)||1,s=Math.round(c.height??0)||1,t[0]=n.src,t[1]=n.url,t[2]=e,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=r,t[8]=l,t[9]=d}else e=t[2],i=t[3],a=t[4],o=t[5],s=t[6],r=t[7],l=t[8],d=t[9];return t[10]!==e||t[11]!==n.src.alt||t[12]!==a||t[13]!==o||t[14]!==s?(c=(0,B.jsx)(e,{src:a,width:o,height:s,alt:n.src.alt,priority:!0}),t[10]=e,t[11]=n.src.alt,t[12]=a,t[13]=o,t[14]=s,t[15]=c):c=t[15],t[16]!==i||t[17]!==r||t[18]!==l||t[19]!==d||t[20]!==c?(u=(0,B.jsx)(i,{"data-slot":r,href:l,className:d,children:c}),t[16]=i,t[17]=r,t[18]=l,t[19]=d,t[20]=c,t[21]=u):u=t[21],u}if(i?.logo){let e,n,a,o,s,r,l,d,c,u;if(t[22]!==i.logo){let c=tJ(i.logo);n=tN.Link,r="brand",l="/",d="flex",e=tM.default,a=c.src,o=Math.round(c.width??0)||1,s=Math.round(c.height??0)||1,t[22]=i.logo,t[23]=e,t[24]=n,t[25]=a,t[26]=o,t[27]=s,t[28]=r,t[29]=l,t[30]=d}else e=t[23],n=t[24],a=t[25],o=t[26],s=t[27],r=t[28],l=t[29],d=t[30];return t[31]!==e||t[32]!==a||t[33]!==o||t[34]!==s||t[35]!==i.logo.alt?(c=(0,B.jsx)(e,{src:a,width:o,height:s,alt:i.logo.alt,priority:!0}),t[31]=e,t[32]=a,t[33]=o,t[34]=s,t[35]=i.logo.alt,t[36]=c):c=t[36],t[37]!==n||t[38]!==r||t[39]!==l||t[40]!==d||t[41]!==c?(u=(0,B.jsx)(n,{"data-slot":r,href:l,className:d,children:c}),t[37]=n,t[38]=r,t[39]=l,t[40]=d,t[41]=c,t[42]=u):u=t[42],u}return null},t0=e=>{let t,n,i,a,o,s,r,l,d,c=(0,O.c)(24),{active:u,handleToggle:h}=e;c[0]!==u?(t=(0,tz.cn)("absolute top-0 right-0 h-(--navbar-mobile-height) w-10 border-none bg-transparent pt-2 pl-4 pr-10 transition-all duration-200 min-[1200px]:hidden",{"bg-white":u}),c[0]=u,c[1]=t):t=c[1],c[2]!==h?(n=()=>h(),c[2]=h,c[3]=n):n=c[3];let m=u?"Close menu":"Open Menu";return c[4]!==u?(i=(0,tz.cn)("mb-1.25 h-0.5 w-4.5 rounded-xs bg-(--navbar-mobile-trigger-color) transition-all duration-200",{"relative w-2.25 [transform:rotate(45deg)_translateY(1.75px)_translateX(4px)] rounded-tr-none rounded-br-none bg-(--btn-primary)":u}),c[4]=u,c[5]=i):i=c[5],c[6]!==i?(a=(0,B.jsx)("div",{"data-slot":"mobile-trigger-line-1",className:i}),c[6]=i,c[7]=a):a=c[7],c[8]!==u?(o=(0,tz.cn)("mb-1.25 h-0.5 w-4.5 rounded-xs bg-(--navbar-mobile-trigger-color) transition-all duration-200",{"relative z-3 w-4.5 -rotate-45 bg-(--btn-primary)":u}),c[8]=u,c[9]=o):o=c[9],c[10]!==o?(s=(0,B.jsx)("div",{"data-slot":"mobile-trigger-line-2",className:o}
526),c[10]=o,c[11]=s):s=c[11],c[12]!==u?(r=(0,tz.cn)("mb-1.25 h-0.5 w-4.5 rounded-xs bg-(--navbar-mobile-trigger-color) transition-all duration-200",{"relative w-2.25 [transform:rotate(45deg)_translateY(-8.25px)_translateX(2.5px)] rounded-tl-none rounded-bl-none bg-(--btn-primary)":u}),c[12]=u,c[13]=r):r=c[13],c[14]!==r?(l=(0,B.jsx)("div",{"data-slot":"mobile-trigger-line-3",className:r}),c[14]=r,c[15]=l):l=c[15],c[16]!==u||c[17]!==t||c[18]!==n||c[19]!==m||c[20]!==a||c[21]!==s||c[22]!==l?(d=(0,B.jsxs)("button",{"data-slot":"mobile-trigger",className:t,onClick:n,"aria-expanded":u,"aria-label":m,children:[a,s,l]}),c[16]=u,c[17]=t,c[18]=n,c[19]=m,c[20]=a,c[21]=s,c[22]=l,c[23]=d):d=c[23],d},t1=(0,tA.default)(()=>e.A(573843).then(e=>e.motion.li),{loadableGenerated:{modules:[527814]}}),t2=e=>{let t,n,i,a,o,s,r,l=(0,O.c)(16),{links:d,setLevelOne:c,setActive:u,utility_navigation:h}=e;return l[0]!==d||l[1]!==u||l[2]!==c?(t=d?.map(e=>(0,B.jsxs)(t1,{"data-slot":"mobile-item",className:"leading-7 not-last:mb-6",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:["menu_category"===e.type&&(0,B.jsxs)("button",{"data-slot":"mobile-link",className:(0,tz.cn)("flex w-full items-center justify-between border-none bg-transparent text-left text-(length:--font-size-h4) leading-[normal]! text-black no-underline [&_svg]:h-5! [&_svg]:text-(--btn-primary)",{"text-(length:--font-size-h3) font-bold":"simple"===e.style||"complex"===e.style,"text-black":"basic"===e.style&&!d?.length}),onClick:()=>{c(e.id)},children:[(0,B.jsx)("span",{children:(0,tQ.default)(e.text??"")}),(0,B.jsx)(tL.Icon,{icon:"fa-solid fa-chevron-right"})]}),"page"===e.type&&(0,B.jsx)(tN.Link,{"data-slot":"mobile-link",href:e.url,className:(0,tz.cn)("border-none bg-transparent text-(length:--font-size-h4) leading-7 text-black no-underline"),onClick:()=>{u(!1),c(null)},headerLink:!0,prefetch:!1,children:(0,tQ.default)(e.text??"")})]},e.id)),l[0]=d,l[1]=u,l[2]=c,l[3]=t):t=l[3],l[4]===Symbol.for("react.memo_cache_sentinel")?(n={opacity:0},i={opacity:1},a={opacity:0},l[4]=n,l[5]=i,l[6]=a):(n=l[4],i=l[5],a=l[6]),l[7]!==u||l[8]!==c||l[9]!==h?.links?(o=h?.links?.map(e=>(0,tR.createElement)(tF.Button,{...e,btn_size:"md",trigger:()=>{u(!1),c(null)},key:e.id},e.cta_text)),l[7]=u,l[8]=c,l[9]=h?.links,l[10]=o):o=l[10],l[11]!==o?(s=(0,B.jsx)(t1,{"data-slot":"mobile-item",className:"mt-auto flex flex-col gap-4 not-last:mb-6",initial:n,animate:i,exit:a,children:o}),l[11]=o,l[12]=s):s=l[12],l[13]!==t||l[14]!==s?(r=(0,B.jsxs)("ul",{"data-slot":"mobile-list",className:"m-0 flex h-[calc(100%-var(--navbar-mobile-height))] w-full list-none flex-col overflow-y-auto p-0",children:[t,s]}),l[13]=t,l[14]=s,l[15]=r):r=l[15],r},t4=e=>{let t,n,i,a,o,s=(0,O.c)(15),{links:r,levelTwo:l,setLevelTwo:d,setLevelOne:c,setActive:u,mobile_menu_back_label:h}=e;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=new Set,s[0]=t):t=s[0];let[m,p]=(0,tR.useState)(t);return s[1]!==l||s[2]!==r?(n=()=>{if(l){let e=setTimeout(()=>{p(e=>{let t=new Set(e);return r?.forEach(e=>{"menu_category"===e.type&&e.links?.forEach(e=>{e.id!==l&&t.delete(e.id)})}),t})},100);return()=>clearTimeout(e)}},i=[l,r],s[1]=l,s[2]=r,s[3]=n,s[4]=i):(n=s[3],i=s[4]),(0,tR.useEffect)(n,i),s[5]!==m||s[6]!==l||s[7]!==r||s[8]!==h||s[9]!==u||s[10]!==c||s[11]!==d?(a=r?.map(e=>{if("menu_category"!==e.type)return;let{links:t}=e;return t?.map(e=>{if("menu_category"!==e.type)return;let{links:t,id:n,text:i,description:a}=e,o=l===n,s=m.has(n);return o||s?(0,B.jsxs)("li",{"data-slot":"mobile-item",className:(0,tz.cn)("leading-7 not-last:mb-6",{"animate-fade-in opacity-100":o&&!s,"animate-fade-out opacity-0":s}),onAnimationEnd:()=>{s&&p(e=>{let t=new Set(e);return t.delete(n),t})},children:[(0,B.jsx)("button",{"data-slot":"mobile-back",className:"border-none bg-transparent text-(length:--font-size-mobile-body) leading-[normal] text-(--btn-primary)",onClick:()=>{p(e=>new Set(e).add(n)),setTimeout(()=>d(null),100)},children:h}),(0,B.jsx)("h3",{"data-slot":"mobile-link-lg",className:"mb-2 text-(length:--font-size-mobile-h3) leading-9 font-bold",children:i}),(0,B.jsx)("div",{"data-slot":"mobile-description",className:"mb-4 text-grey-60",children:a}),(0,B.jsx)("hr",{"data-slot":"mobile-separator",className:"mt-0 mb-6 border-grey-40"}),(0,B.jsx)("ul",{"data-slot":"mobile-sublist",className:"mb-24 list-none",children:t?.map((e,t)=>{if("menu_category"===e.type)return null;let n=e.text??"",i="url"in e?e.url:"";return(0,B.jsx)("li",{"data-slot":"mobile-item",className:"leading-7 n
526ot-last:mb-6",children:(0,B.jsx)(tN.Link,{"data-slot":"mobile-link",href:i,className:(0,tz.cn)("border-none bg-transparent text-(length:--font-size-h4) text-black no-underline"),onClick:()=>{u(!1),c(null),d(null)},headerLink:!0,prefetch:!1,children:(0,tQ.default)(n)})},t)})})]},n):null})}),s[5]=m,s[6]=l,s[7]=r,s[8]=h,s[9]=u,s[10]=c,s[11]=d,s[12]=a):a=s[12],s[13]!==a?(o=(0,B.jsx)("ul",{"data-slot":"mobile-list",className:"m-0 flex h-[calc(100%-var(--navbar-mobile-height))] w-full list-none flex-col overflow-y-auto p-0",children:a}),s[13]=a,s[14]=o):o=s[14],o},t5=e=>{let t,n,i,a,o,s=(0,O.c)(15),{links:r,levelOne:l,setLevelOne:d,setLevelTwo:c,setActive:u,mobile_menu_back_label:h}=e;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=new Set,s[0]=t):t=s[0];let[m,p]=(0,tR.useState)(t);return s[1]!==l||s[2]!==r?(n=()=>{if(l){let e=setTimeout(()=>{p(e=>{let t=new Set(e);return r?.forEach(e=>{e.id!==l&&t.delete(e.id)}),t})},100);return()=>clearTimeout(e)}},i=[l,r],s[1]=l,s[2]=r,s[3]=n,s[4]=i):(n=s[3],i=s[4]),(0,tR.useEffect)(n,i),s[5]!==m||s[6]!==l||s[7]!==r||s[8]!==h||s[9]!==u||s[10]!==d||s[11]!==c?(a=r?.map(e=>{let t=l===e.id,n=m.has(e.id);return t||n?(0,B.jsxs)("li",{"data-slot":"mobile-item",className:(0,tz.cn)("leading-7 not-last:mb-6",{"animate-fade-in opacity-100":t&&!n,"animate-fade-out opacity-0":n}),onAnimationEnd:()=>{n&&p(t=>{let n=new Set(t);return n.delete(e.id),n})},children:[(0,B.jsx)("button",{"data-slot":"mobile-back",className:"border-none bg-transparent text-(length:--font-size-mobile-body) leading-[normal] text-(--btn-primary)",onClick:()=>{p(t=>new Set(t).add(e.id)),setTimeout(()=>d(null),100)},children:h}),(0,B.jsx)("h3",{"data-slot":"mobile-link-lg",className:"mb-4 text-(length:--font-size-mobile-h3) leading-9 font-bold",children:e.text}),(0,B.jsx)("hr",{"data-slot":"mobile-separator",className:"mt-0 mb-6 border-grey-40"}),"menu_category"===e.type&&(0,B.jsx)("ul",{"data-slot":"mobile-sublist",className:"mb-24 list-none leading-7",children:e.links?.map((e,t)=>{let n=(e.text??"").replace("<br>"," ");return(0,B.jsxs)("li",{"data-slot":"mobile-item",className:"leading-7 not-last:mb-6",children:["menu_category"===e.type&&(0,B.jsxs)("button",{"data-slot":"mobile-link",className:"flex w-full items-center justify-between border-none bg-transparent text-left text-(length:--font-size-h4) leading-7 text-(--color-slate) no-underline [&_svg]:h-5! [&_svg]:text-(--btn-primary)",onClick:()=>{c(e.id)},children:[(0,B.jsx)("span",{className:"leading-[normal]",children:(0,tQ.default)(n)}),(0,B.jsx)(tL.Icon,{wrapperIconClassName:"leading-[normal]",className:"leading-[normal]",icon:"fa-solid fa-chevron-right"})]}),("page"===e.type||"link"===e.type)&&(0,B.jsx)(tN.Link,{"data-slot":"mobile-link",href:e.url,className:"border-none bg-transparent text-(length:--font-size-h4) leading-7 text-black no-underline",onClick:()=>{u(!1),d(null),c(null)},headerLink:!0,prefetch:!1,children:(0,tQ.default)(n)})]},t)})})]},e.id):null}),s[5]=m,s[6]=l,s[7]=r,s[8]=h,s[9]=u,s[10]=d,s[11]=c,s[12]=a):a=s[12],s[13]!==a?(o=(0,B.jsx)("ul",{"data-slot":"mobile-list",className:"m-0 flex h-[calc(100%-var(--navbar-mobile-height))] w-full list-none flex-col overflow-y-auto p-0 leading-7",children:a}),s[13]=a,s[14]=o):o=s[14],o},t3=e=>{let t,n,i,a,o=(0,O.c)(25),{links:s,setLevelOne:r,setLevelTwo:l,levelOne:d,levelTwo:c,setActive:u,utility_navigation:h,mobile_menu_back_label:m}=e;return o[0]!==d||o[1]!==s||o[2]!==u||o[3]!==r||o[4]!==h?(t=!d&&(0,B.jsx)(t2,{links:s,setLevelOne:r,setActive:u,utility_navigation:h??null}),o[0]=d,o[1]=s,o[2]=u,o[3]=r,o[4]=h,o[5]=t):t=o[5],o[6]!==d||o[7]!==c||o[8]!==s||o[9]!==m||o[10]!==u||o[11]!==r||o[12]!==l?(n=d&&!c&&(0,B.jsx)(t5,{links:s,levelOne:d,setLevelOne:r,setLevelTwo:l,setActive:u,mobile_menu_back_label:m}),o[6]=d,o[7]=c,o[8]=s,o[9]=m,o[10]=u,o[11]=r,o[12]=l,o[13]=n):n=o[13],o[14]!==c||o[15]!==s||o[16]!==m||o[17]!==u||o[18]!==r||o[19]!==l?(i=c&&(0,B.jsx)(t4,{links:s,levelTwo:c,setLevelOne:r,setLevelTwo:l,setActive:u,mobile_menu_back_label:m}),o[14]=c,o[15]=s,o[16]=m,o[17]=u,o[18]=r,o[19]=l,o[20]=i):i=o[20],o[21]!==t||o[22]!==n||o[23]!==i?(a=(0,B.jsxs)("nav",{"data-slot":"mobile-nav",className:"absolute w-full top-(--navbar-mobile-height) right-0 pt-5 pr-5 pb-10 pl-5 h-dvh overflow-auto bg-white",children:[t,n,i]}),o[21]=t,o[22]=n,o[23]=i,o[24]=a):a=o[24],a};var t9=e.i(386719),t7=e.i(452210);let t6=e=>{let t,n,i=(0,O.c)(7),{remove_search_functionality:a,search_placeholder:o,search_notice:s,handleToggle:r}=e;return i[0]!==r||i[1]!==a||i[2]!==s||i[3]!==o?(t=!a&&o&&(0,B.jsx)(t7.SearchAutoComplete,{search_placeholder:o,isMobileView:!0,handleToggle:r,search_notice:s}),i[0]=r,i[1]=a,i[2]=s,i[3]=o,i[4]=t):t=i[4],i[5]!==t?(n=(0,B.jsx)("div",{"data-slot":"mobile-search",className:"relative",children:t}),i[5]=t,i[6]=n):n=i[6],n},t8=e=>{let t,n,i,a,o,s,r,l=(0,O.c)(29),{links:d,remove_search_functionality:c,search_placeholder:u,utility_navigation:h,logo:m,mobile_menu_back_label:p,search_notice:g}=e,[f,b]=(0,tR.useState)(!1),[v,y]=(0,tR.useState)(null),[x,w]=(0,tR.useState)(null),k=(0,t9.useWindowDimensions)();l[0]!==f||l[1]!==k?(t=()=>{!f||(k.width??0)>1200?(document.body.style.overflow="",document.documentElement.style.overflow="",document.body.style.position="",document.body.style.width=""):f&&(k.width??0)<1200&&(document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%")},n=[k,f],l[0]=f,l[1]=k,l[2]=t,l[3]=n):(t=l[2],n=l[3]),(0,tR.useEffect)(t,n),l[4]!==f?(i=()=>{f?(document.body.style.overflowY="scroll",y(null),w(null)):document.body.style.overflowY="hidden",b(!f)},l[4]=f,l[5]=i):i=l[5];let C=i;return l[6]!==m||l[7]!==h?(a=(0,B.jsx)(tX,{logo:m,utility_navigation:h}),l[6]=m,l[7]=h,l[8]=a):a=l[8],l[9]!==C||l[10]!==c||l[11]!==g||l[12]!==u?(o=!c&&(0,B.jsx)(t6,{remove_search_functionality:c,search_placeholder:u,handleToggle:C,search_notice:g??!1}
526),l[9]=C,l[10]=c,l[11]=g,l[12]=u,l[13]=o):o=l[13],l[14]!==f||l[15]!==C||l[16]!==v||l[17]!==x||l[18]!==d||l[19]!==p||l[20]!==c||l[21]!==g||l[22]!==u||l[23]!==h?(s=d&&d.length>0&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(t0,{active:f,handleToggle:C}),f&&(0,B.jsx)(t3,{links:d,setLevelOne:y,levelOne:v,setLevelTwo:w,levelTwo:x,setActive:b,utility_navigation:h,remove_search_functionality:c,handleToggle:C,search_placeholder:u,mobile_menu_back_label:p,active:f,search_notice:g})]}),l[14]=f,l[15]=C,l[16]=v,l[17]=x,l[18]=d,l[19]=p,l[20]=c,l[21]=g,l[22]=u,l[23]=h,l[24]=s):s=l[24],l[25]!==a||l[26]!==o||l[27]!==s?(r=(0,B.jsxs)("div",{"data-slot":"mobile",className:"relative z-4 flex h-(--navbar-mobile-height) items-center justify-between bg-(--navbar-background) pl-6 min-[1200px]:hidden",children:[a,o,s]}),l[25]=a,l[26]=o,l[27]=s,l[28]=r):r=l[28],r},ne=e=>{let t,n,i,a,o,s,r,l=(0,O.c)(14);return l[0]!==e?({...t}=e,n="header",i=(0,tz.cn)({"sticky top-0 z-4":t.sticky},'group-has-[div[data-slot="standalone-navbar"]]/site:hidden'),l[0]=e,l[1]=t,l[2]=n,l[3]=i):(t=l[1],n=l[2],i=l[3]),l[4]!==t?(a=(0,B.jsx)(tS,{...t}),o=(0,B.jsx)(tY,{...t}),s=(0,B.jsx)(t8,{...t}),l[4]=t,l[5]=a,l[6]=o,l[7]=s):(a=l[5],o=l[6],s=l[7]),l[8]!==n||l[9]!==i||l[10]!==a||l[11]!==o||l[12]!==s?(r=(0,B.jsxs)("header",{"data-slot":n,className:i,children:[a,o,s]}),l[8]=n,l[9]=i,l[10]=a,l[11]=o,l[12]=s,l[13]=r):r=l[13],r},nt=e=>{let t,n,i=(0,O.c)(4),{social_links:a}=e;return i[0]!==a?(t=a?.map(nn),i[0]=a,i[1]=t):t=i[1],i[2]!==t?(n=(0,B.jsx)("div",{"data-slot":"social-links",className:"shrink-0 mt-2 items-center leading-[normal] md:mt-0 md:ml-6",children:t}),i[2]=t,i[3]=n):n=i[3],n};function nn(e,t){let{text:n,icon:i,url:a}=e;return(0,B.jsx)(tN.Link,{"data-slot":"social-link",href:a??"","aria-label":n??void 0,className:"text-grey-60 inline-flex leading-[normal] hover:opacity-80 not-last:mr-6 not-last:md:mr-3 in-data-[theme=dark]:text-white in-data-[theme=dark]:hover:opacity-80",children:(0,B.jsx)(tL.Icon,{"data-slot":"social-item",icon:i??"",className:"text-[1.5rem]"})},t)}let ni=e=>{let t,n=(0,O.c)(3),{title:i,url:a}=e;return a?(n[0]!==i||n[1]!==a?(t=(0,B.jsx)("li",{"data-slot":"footer-item",className:"mb-2",children:(0,B.jsx)(tN.Link,{"data-slot":"footer-link",href:a,className:"no-underline text-(--color-grey-20) text-(length:--font-size-mobile-body) leading-(--line-height-mobile-body) md:text-(length:--font-size-body) md:leading-(--line-height-body) in-data-[theme=light]:text-grey-60",children:i})}),n[0]=i,n[1]=a,n[2]=t):t=n[2],t):null};var na=e.i(621656);let no=e=>{let t,n,i,a,o,s,r,l=(0,O.c)(20),{countries:d,locale:c}=e;l[0]!==d||l[1]!==c?(t=d?.find(e=>e.locale.replace("_","-")===c),l[0]=d,l[1]=c,l[2]=t):t=l[2];let u=t,[h]=(0,tR.useState)(u),m=()=>{v(!b)},p=(0,tR.useRef)(null),{isOpen:g,setIsOpen:f}=(0,na.useClickOutside)(p),b=g,v=f;l[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,B.jsx)(tL.Icon,{"data-slot":"footer-country-globe",className:"text-[1rem]",icon:"fa-light fa-globe"}),l[3]=n):n=l[3];let y=h&&h.title;l[4]!==y?(i=(0,B.jsx)("div",{"data-slot":"footer-country-title",className:"mx-3",children:y}),l[4]=y,l[5]=i):i=l[5];let x=tL.Icon,w=(0,tz.cn)({"[&_svg]:rotate-x-180":b});return l[6]!==x||l[7]!==w?(a=(0,B.jsx)("div",{"data-slot":"footer-country-arrow",children:(0,B.jsx)(x,{"data-slot":"footer-country-icon",wrapperIconClassName:w,icon:"fa-solid fa-chevron-down"})}),l[6]=x,l[7]=w,l[8]=a):a=l[8],l[9]!==m||l[10]!==i||l[11]!==a||l[12]!==n?(o=(0,B.jsxs)("button",{"data-slot":"footer-country-trigger",onClick:m,className:"focus flex items-center border-none bg-transparent text-small leading-5 text-white hover:opacity-80 in-data-[theme=light]:text-grey-80",children:[n,i,a]}),l[9]=m,l[10]=i,l[11]=a,l[12]=n,l[13]=o):o=l[13],l[14]!==d||l[15]!==b?(s=b&&(0,B.jsx)("div",{"data-slot":"footer-country-dropdown",className:"absolute top-8 z-3 max-h-144 min-w-56 overflow-y-scroll bg-white md:right-0 md:max-h-[25.8rem]",children:d?.map(ns)}),l[14]=d,l[15]=b,l[16]=s):s=l[16],l[17]!==o||l[18]!==s?(r=(0,B.jsxs)("div",{"data-slot":"footer-country",className:"relative md:ml-auto",ref:p,children:[o,s]}),l[17]=o,l[18]=s,l[19]=r):r=l[19],r};function ns(e){return(0,B.jsx)(tN.Link,{"data-slot":"footer-dropdown-item",href:e.url??"",className:"block px-4 py-2 text-small leading-(--line-height-small) text-grey-80 no-underline transition-all duration-200 hover:bg-grey-5",children:e.title},e.locale)}var nr=e.i(257617);function nl(e,t){let{text:n,url:i}=e;return(0,B.jsx)(tN.Link,{"data-slot":"footer-bottom-link",href:i??"",className:"focus relative border-none bg-transparent text-left text-x-small leading-(--line-height-x-small) text-(--footer-bottom-link-color) no-underline not-last:mb-2 hover:underline md:mb-0 md:not-last:mr-6 md:not-last:mb-0 md:not-last:after:relative md:not-last:after:left-2 md:not-last:after:text-(--footer-bottom-link-color) md:not-last:after:content-['|']",children:n},t)}let nd={footer_1a:e=>{let t,n,i,a,o,s,r,l,d,c,u,h,m,p,g,f,b,v,y,x,w=(0,O.c)(56),{theme:k,copyright:C,bottom_links:E,social_text:_,social_links:j,countries:I,categories:R,cookie_preferences:L,onetrust_domain:T,personal_information:P,logo:S,column_span:A,locale:N}=e,M=k??void 0;return w[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,tz.cn)("mt-auto bg-(--footer-background) py-12 md:py-24 [&_a]:hover:underline"),w[0]=t):t=w[0],w[1]!==S?(n=S&&"top_left"===S.position&&(0,B.jsx)("div",{className:"flex items-center",children:(0,B.jsxs)(tN.Link,{href:S?.href,children:[(0,B.jsx)(tM.default,{className:"hidden md:block",src:S?.src??"",alt:"logo",width:S?.width??0,height:S?.height??0}),(0,B.jsx)(tM.default,{className:"block md:hidden",src:S?.src??"",alt:"logo",width:S?.mobile_width??0,height:S?.mobile_height??0})]})}),w[1]=S,w[2]=n):n=w[2],w[3]!==_?(i=(0,B.jsx)("div",{"data-slot":"social-text",className:"leading-[normal] in-data-[theme=dark]:text-white in-data-[theme=light]:text-grey-80",children:_}),w[3]=_,w[4]=i):i=w[4],w[5]!==j?(a=(0,B.jsx)(nt,{social_links:j}),w[5]=j,w[6]=a):a=w[6],w[7]!==i||w[8]!==a?(o=(0,B.jsxs)("div",{"data-slot":"social",className:"flex flex-col md:flex-row md:items-center",children:[i,a]}),w[7]=i,w[8]=a,w[9]=o):o=w[9],w[10]!==n||w[11]!==o?(s=(0,B.jsxs)("div",{children:[n,o]}),w[10]=n,w[11]=o,w[12]=s):s=w[12],w[13]!==I||w[14]!==N?(r=I&&I.length>0&&(0,B.jsx)(no,{countries:I,locale:N}),w[13]=I,w[14]=N,w[15]=r):r=w[15],w[16]!==s||w[17]!==r?(l=(0,B.jsxs)("div",{className:"grid grid-cols-1 items-center gap-x-7 gap-y-9 md:grid-cols-2",children:[s,r]}),w[16]=s,w[17]=r,w[18]=l):l=w[18],w[19]!==I||w[20]!==j?(d=(j||I)&&(0,B.jsx)("hr",{className:"my-7 border-white/20 in-data-[theme=light]:border-grey-20 md:my-12"}),w[19]=I,w[20]=j,w[21]=d):d=w[21],w[22]!==R||w[23]!==A?(c=R&&(0,B.jsx)("div",{className:"grid gap-x-7 gap-y-6 md:grid-cols-12",children:R.map((e,t)=>{let{title:n,links:i}=e;return(0,B.jsx)(tR.Fragment,{children:(0,B.jsxs)("div",{className:"md:col-span-6",children:[(0,B.jsx)("h3",{className:"text-(length:--font-size-mobile-h5) leading-(--line-height-mobile-h5) font-bold not-last:mb-2 in-data-[theme=dark]:text-white in-data-[theme=light]:text-black md:text-h5 md:leading-(--line-height-h5)",children:n}),(0,B.jsx)("div",{className:"grid gap-0 lg:grid-cols-12 lg:gap-7",children:[1,2].map(e=>(0,B.jsx)("div",{className:(0,tz.cn)({"md:col-span-4":"two"===A},{"md:col-span-6":"three"===A}),children:(0,B.jsx)("ul",{"data-slot":"footer-list",className:"mb-0 flex list-none flex-col p-0",children:i?.map((t,n)=>{if(!t)return null;let{title:i,url:a,col:o}=t;return o===e&&(0,B.jsx)(ni,{title:i,url:a},n)})})},e))})]})},t)})}),w[22]=R,w[23]=A,w[24]=c):c=w[24],w[25]!==E||w[26]!==R?(u=E&&R&&(0,B.jsx)("hr",{className:"my-7 border-white/20 in-data-[theme=light]:border-grey-20 md:my-12"}),w[25]=E,w[26]=R,w[27]=u):u=w[27],w[28]!==C?(h=C&&(0,B.jsxs)("div",{"data-slot":"footer-bottom-text",className:"mb-6 text-x-small leading-(--line-height-x-small) text-(--footer-bottom-link-color) lg:mr-10 lg:mb-0",children:["© ",new Date().getFullYear()," ",C]}),w[28]=C,w[29]=h):h=w[29],w[30]!==E?(m=E?.map(nl),w[30]=E,w[31]=m):m=w[31],w[32]!==L||w[33]!==T||w[34]!==P?(p=(0,B.jsx)(nr.OneTrust,{cookie_preferences:L,personal_information:P,onetrust_domain:T}),w[32]=L,w[33]=T,w[34]=P,w[35]=p):p=w[35],w[36]!==m||w[37]!==p?(g=(0,B.jsxs)("div",{"data-slot":"footer-bottom-links",className:"flex flex-col md:mb-0 md:flex md:flex-row",children:[m,p]}),w[36]=m,w[37]=p,w[38]=g):g=w[38],w[39]!==h||w[40]!==g?(f=(0,B.jsxs)("div",{"data-slot":"footer-bottom-content",className:"md:flex md:flex-col lg:flex lg:flex-row",children:[h,g]}),w[39]=h,w[40]=g,w[41]=f):f=w[41],w[42]!==S?(b=S&&"bottom_right"===S.position&&(0,B.jsx)("div",{children:(0,B.jsxs)(tN.Link,{href:S?.href,children:[(0,B.jsx)(tM.default,{className:"hidden md:block",src:S?.src??"",alt:"logo",width:S?.width??0,height:S?.height??0}),(0,B.jsx)(tM.default,{className:"block md:hidden",src:S?.src??"",alt:"logo",width:S?.mobile_width??0,height:S?.mobile_height??0})]})}),w[42]=S,w[43]=b):b=w[43],w[44]!==f||w[45]!==b?(v=(0,B.jsxs)("div",{"data-slot":"footer-bottom",className:"flex flex-col-reverse gap-6 lg:flex-row lg:items-center lg:justify-between lg:gap-0",children:[f,b]}),w[44]=f,w[45]=b,w[46]=v):v=w[46],w[47]!==d||w[48]!==c||w[49]!==u||w[50]!==v||w[51]!==l?(y=(0,B.jsxs)("div",{"data-slot":"container",className:"mx-auto w-full max-w-container px-3.5",children:[l,d,c,u,v]}),w[47]=d,w[48]=c,w[49]=u,w[50]=v,w[51]=l,w[52]=y):y=w[52],w[53]!==M||w[54]!==y?(x=(0,B.jsx)("footer",{"data-slot":"footer","data-theme":M,className:t,children:y}),w[53]=M,w[54]=y,w[55]=x):x=w[55],x}},nc=e=>
526{let t,n,i=(0,O.c)(5);if(i[0]!==e?({...t}=e,i[0]=e,i[1]=t):t=i[1],!t.variant)return null;let a=nd[t.variant];return i[2]!==a||i[3]!==t?(n=a?(0,B.jsx)(a,{...t}):null,i[2]=a,i[3]=t,i[4]=n):n=i[4],n},nu=e=>{let t,n,i,a,o=(0,O.c)(12),{links:s,logo:r}=e,l=r.desktop.width??void 0,d=r.desktop.height??void 0;return o[0]!==r.alt||o[1]!==r.desktop.src||o[2]!==l||o[3]!==d?(t=(0,B.jsx)(tN.Link,{"data-slot":"util-nav-logo",href:"/",className:"leading-[normal] flex",children:(0,B.jsx)(tM.default,{src:r.desktop.src,width:l,height:d,alt:r.alt,priority:!0})}),o[0]=r.alt,o[1]=r.desktop.src,o[2]=l,o[3]=d,o[4]=t):t=o[4],o[5]!==s?(n=s.map(nh),o[5]=s,o[6]=n):n=o[6],o[7]!==n?(i=(0,B.jsx)("div",{"data-slot":"util-nav-items",className:"flex items-center gap-4",children:(0,B.jsx)("div",{"data-slot":"util-nav-links",className:"flex justify-end flex-col min-[1200px]:flex-row",children:n})}),o[7]=n,o[8]=i):i=o[8],o[9]!==t||o[10]!==i?(a=(0,B.jsx)("nav",{"data-slot":"util-nav",className:"hidden min-[1200px]:bg-(--utility-nav-background-color) min-[1200px]:py-3 min-[1200px]:items-center min-[1200px]:flex",children:(0,B.jsxs)("div",{"data-slot":"util-nav-container",className:"max-w-container mx-auto w-full px-3.5 flex justify-between items-center",children:[t,i]})}),o[9]=t,o[10]=i,o[11]=a):a=o[11],a};function nh(e){return(0,tR.createElement)(tF.Button,{"data-slot":"util-nav-link",className:"not-last:min-[1200px]:mr-4 not-last:min-[1200px]:mb-0",...e,key:e.id,btn_size:"sm"},e.cta_text)}var nm=e.i(821982),np=e.i(981140),ng=e.i(820783),nf=e.i(30030),nb=e.i(726330),nv=e.i(303536),ny=e.i(765491),nx=e.i(610772),nw=e.i(853660),nk=e.i(774606),nC=e.i(296626),nE=e.i(248425),n_=e.i(991918),nj=e.i(369340),nI=e.i(186312),nR=e.i(985369),nL=Object.defineProperty,nT=(e,t)=>nL(e,"name",{value:t,configurable:!0}),nP="Popover",[nS,nA]=(0,nf.createContextScope)(nP,[nw.createPopperScope]),nN=(0,nw.createPopperScope)(),[nM,n$]=nS(nP),nz=nT(e=>{let{__scopePopover:t,children:n,open:i,defaultOpen:a,onOpenChange:o,modal:s=!1}=e,r=nN(t),l=tR.useRef(null),[d,c]=tR.useState(!1),[u,h]=(0,nj.useControllableState)({prop:i,defaultProp:a??!1,onChange:o,caller:nP});return(0,B.jsx)(nw.Root,{...r,children:(0,B.jsx)(nM,{scope:t,contentId:(0,nx.useId)(),triggerRef:l,open:u,onOpenChange:h,onOpenToggle:tR.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:d,onCustomAnchorAdd:tR.useCallback(()=>c(!0),[]),onCustomAnchorRemove:tR.useCallback(()=>c(!1),[]),modal:s,children:n})})},"Popover"),nB=tR.forwardRef(nT(function(e,t){let{__scopePopover:n,...i}=e,a=n$("PopoverAnchor",n),o=nN(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:r}=a;return tR.useEffect(()=>(s(),()=>r()),[s,r]),(0,B.jsx)(nw.Anchor,{...o,...i,ref:t})},"PopoverAnchor")),nO=tR.forwardRef(nT(function(e,t){let{__scopePopover:n,...i}=e,a=n$("PopoverTrigger",n),o=nN(n),s=(0,ng.useComposedRefs)(t,a.triggerRef),r=(0,B.jsx)(nE.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":nJ(a.open),...i,ref:s,onClick:(0,np.composeEventHandlers)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?r:(0,B.jsx)(nw.Anchor,{asChild:!0,...o,children:r})},"PopoverTrigger")),nD="PopoverPortal",[nH,nq]=nS(nD,{forceMount:void 0}),nV=nT(e=>{let{__scopePopover:t,forceMount:n,children:i,container:a}=e,o=n$(nD,t);return(0,B.jsx)(nH,{scope:t,forceMount:n,children:(0,B.jsx)(nC.Presence,{present:n||o.open,children:(0,B.jsx)(nk.Portal,{asChild:!0,container:a,children:i})})})},"PopoverPortal"),nF="PopoverContent",nQ=tR.forwardRef(nT(function(e,t){let n=nq(nF,e.__scopePopover),{forceMount:i=n.forceMount,...a}=e,o=n$(nF,e.__scopePopover);return(0,B.jsx)(nC.Presence,{present:i||o.open,children:o.modal?(0,B.jsx)(nK,{...a,ref:t}):(0,B.jsx)(nZ,{...a,ref:t})})},"PopoverContent")),nU=(0,n_.createSlot)("PopoverContent.RemoveScroll"),nK=tR.forwardRef(nT(function(e,t){let n=n$(nF,e.__scopePopover),i=tR.useRef(null),a=(0,ng.useComposedRefs)(t,i),o=tR.useRef(!1);return tR.useEffect(()=>{let e=i.current;if(e)return(0,nI.hideOthers)(e)},[]),(0,B.jsx)(nR.RemoveScroll,{as:nU,allowPinchZoom:!0,children:(0,B.jsx)(nW,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,np.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),o.current||n.triggerRef.current?.focus()}),onPointerDownOutside:(0,np.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;o.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,np.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),nZ=tR.forwardRef(nT(function(e,t){let n=n$(nF,e.__scopePopover),i=tR.useRef(!1),a=tR.useRef(!1);return(0,B.jsx)(nW,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||n.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let o=t.target;n.triggerRef.current?.contains(o)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})},"PopoverContentNonModal")),nW=tR.forwardRef(nT(function(e,t){let{__scopePopover:n,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:r,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:c,...u}=e,h=n$(nF,n),m=nN(n);return(0,nv.useFocusGuards)(),(0,B.jsx)(ny.FocusScope,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,B.jsx)(nb.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:r,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,B.jsx)(nw.Content,{"data-state":nJ(h.open),role:"dialog",id:h.contentId,...m,...u,ref:t,style:{...u.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl")),nG=tR.forwardRef(nT(function(e,t){let{__scopePopover:n,...i}=e,a=n$("PopoverClose",n);return(0,B.jsx)(nE.Primitive.button,{type:"button",...i,ref:t,onClick:(0,np.composeEventHandlers)(e.onClick,()=>a.onOpenChange(!1))})},"PopoverClose")),nY=tR.forwardRef(nT(function(e,t){let{__scopePopover:n,...i}=e,a=nN(n);return(0,B.jsx)(nw.Arrow,{...a,...i,ref:t})},"PopoverArrow"));function nJ(e){return e?"open":"closed"}nT(nJ,"getState"),e.s(["Anchor",0,nB,"Arrow",0,nY,"Close",0,nG,"Content",0,nQ,"Popover",0,nz,"PopoverAnchor",0,nB,"PopoverArrow",0,nY,"PopoverClose",0,nG,"PopoverContent",0,nQ,"PopoverPortal",0,nV,"PopoverTrigger",0,nO,"Portal",0,nV,"Root",0,nz,"Trigger",0,nO,"createPopoverScope",0,nA],178761);var nX=e.i(178761),nX=nX;function n0({...e}){return tR.createElement(nX.Root,{"data-slot":"popover",...e})}function n1({...e}){return tR.createElement(nX.Trigger,{"data-slot":"popover-trigger",...e})}function n2({className:e,align:t="start",sideOffset:n=8,...i}){return tR.createElement(nX.Portal,null,tR.createElement(nX.Content,{align:t,sideOffset:n,className:(0,tz.twcn)("tw:z-50 tw:w-72 tw:rounded-lg tw:bg-white tw:text-primary tw:border tw:border-primary tw:shadow-md tw:outline-hidden tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out tw:data-[state=closed]:fade-out-0 tw:data-[state=open]:fade-in-0 tw:data-[state=closed]:zoom-out-95 tw:data-[state=open]:zoom-in-95 t
526w:data-[side=bottom]:slide-in-from-top-2 tw:data-[side=left]:slide-in-from-right-2 tw:data-[side=right]:slide-in-from-left-2 tw:data-[side=top]:slide-in-from-bottom-2",e),...i}))}var n4=e.i(985412);let n5=tR.forwardRef(function({title:e,titleId:t,...n},i){return tR.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},n),e?tR.createElement("title",{id:t},e):null,tR.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.076-4.076a1.526 1.526 0 0 1 1.037-.443 48.282 48.282 0 0 0 5.68-.494c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"}))}),n3=tR.forwardRef(function({title:e,titleId:t,...n},i){return tR.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},n),e?tR.createElement("title",{id:t},e):null,tR.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}),n9=e=>{let t,n,i,a,o,s,r,l,d=(0,O.c)(20),{chatbot:c}=e,[u,h]=(0,tR.useState)(!1);if(!c)return null;let m=u?"Close chat":"Open chat",p=u?"scale-90 rotate-45 opacity-0":"scale-100 rotate-0 opacity-100";d[0]!==p?(t=(0,tz.cn)("absolute transition-all duration-200",p),d[0]=p,d[1]=t):t=d[1],d[2]!==t?(n=(0,B.jsx)(n5,{className:t}),d[2]=t,d[3]=n):n=d[3];let g=u?"scale-100 rotate-0 opacity-100":"scale-90 -rotate-45 opacity-0";return d[4]!==g?(i=(0,tz.cn)("absolute transition-all duration-200",g),d[4]=g,d[5]=i):i=d[5],d[6]!==i?(a=(0,B.jsx)(n3,{className:i}),d[6]=i,d[7]=a):a=d[7],d[8]!==n||d[9]!==a?(o=(0,B.jsxs)("span",{className:"relative flex items-center justify-center **:data-[slot=icon]:size-6",children:[n,a]}),d[8]=n,d[9]=a,d[10]=o):o=d[10],d[11]!==m||d[12]!==o?(s=(0,B.jsx)(n1,{asChild:!0,children:(0,B.jsx)(n4.ButtonIcon,{"aria-label":m,size:"lg",shape:"circle",variant:"secondary",className:"fixed right-6 bottom-20 z-10 shadow-md md:bottom-6 [html:has([data-slot=disclaimer-trigger].opacity-100)_&]:bottom-34 md:[html:has([data-slot=disclaimer-trigger].opacity-100)_&]:bottom-20",children:o})}),d[11]=m,d[12]=o,d[13]=s):s=d[13],d[14]!==c?(r=(0,B.jsx)(n2,{sideOffset:16,className:"h-150 w-100 p-4",side:"top",align:"end",children:(0,B.jsx)("iframe",{className:"h-full w-full",src:c})}),d[14]=c,d[15]=r):r=d[15],d[16]!==u||d[17]!==r||d[18]!==s?(l=(0,B.jsxs)(n0,{open:u,onOpenChange:h,children:[s,r]}),d[16]=u,d[17]=r,d[18]=s,d[19]=l):l=d[19],l};var n7=e.i(619273),n6=e.i(175555),n8=e.i(540143),ie=e.i(814448),it=e.i(915823),ii=e.i(936553),ia=e.i(88587),io=class extends ia.Removable{#e;#t;#n;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??("pending"===this.state.status?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#a({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},i=this.#i=(0,ii.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),a="pending"===this.state.status,o=!i.canStart();try{if(a)t();else{this.#a({type:"pending",variables:e,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#a({type:"pending",context:t,variables:e,isPaused:o})}let s=await i.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#a({type:"success",data:s}),s}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#a({type:"error",error:t}),t}finally{this.#i===i&&(this.#i=void 0),this.#n.runNext(this)}}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
vendor: 1,414 bytes, line 526
526case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),n8.notifyManager.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}},is=class extends it.Subscribable{#o;#s;#r;constructor(e={}){super(),this.config=e,this.#o=new Set,this.#s=new Map,this.#r=0}build(e,t,n){let i=new io({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){this.#o.add(e);let t=ir(e);if("string"==typeof t){let n=this.#s.get(t);n?n.push(e):this.#s.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#o.delete(e)){let t=ir(e);if("string"==typeof t){let n=this.#s.get(t);if(n)if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#s.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=ir(e);if("string"!=typeof t)return!0;{let n=this.#s.get(t)?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=ir(e);return"string"==typeof t?this.#s.get(t)?.find(t=>
526t!==e&&t.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){n8.notifyManager.batch(()=>{this.#o.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#o.clear(),this.#s.clear()})}getAll(){return Array.from(this.#o)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n7.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,n7.matchMutation)(e,t))}notify(e){n8.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return n8.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(n7.noop))))}};function ir(e){return e.options.scope?.id}var il=it,id=e.i(286491),ic=class extends il.Subscribable{#l;constructor(e={}){super(),this.config=e,this.#l=new Map}build(e,t,n){let i=t.queryKey,a=t.queryHash??(0,n7.hashQueryKeyByOptions)(i,t),o=this.get(a);return o||(o=new id.Query({client:e,queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){this.#l.has(e.queryHash)||(this.#l.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){this.#l.get(e.queryHash)===e&&(e.destroy(),this.#l.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){n8.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#l.get(e)}getAll(){return[...this.#l.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n7.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,n7.matchQuery)(e,t)):t}notify(e){n8.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){n8.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){n8.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},iu=class{#d;#n;#c;#u;#h;#m;#p;#g;constructor(e={}){this.#d=e.queryCache||new ic,this.#n=e.mutationCache||new is,this.#c=e.defaultOptions||{},this.#u=new Map,this.#h=new Map,this.#m=0}mount(){this.#m++,1===this.#m&&(this.#p=n6.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#d.onFocus())}),this.#g=ie.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#d.onOnline())}))}unmount(){this.#m--,0===this.#m&&(this.#p?.(),this.#p=void 0,this.#g?.(),this.#g=void 0)}isFetching(e){return this.#d.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#d.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#d.build(this,t),i=n.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,n7.resolveQueryValue)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#d.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),a=this.#d.get(i.queryHash)?.state.data,o=(0,n7.functionalUpdate)(t,a);if(void 0!==o)return this.#d.build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return n8.notifyManager.batch(()=>this.#d.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#d.get(t.queryHash)?.state}removeQueries(e){let t=this.#d;n8.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#d;return n8.notifyManager.batch(()=>{let i=n.findAll(e),a=new Set(i);return i.forEach(e=>{e.reset()}),this.refetchQueries({type:"active",predicate:e=>a.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(n8.notifyManager.batch(()=>this.#d.findAll(e).map(e=>e.cancel(n)))).then(n7.noop).catch(n7.noop)}invalidateQueries(e,t={}){return n8.notifyManager.batch(()=>(this.#d.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(n8.notifyManager.batch(()=>this.#d.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(n7.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}
526))).then(n7.noop)}async query(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#d.build(this,t),i=n.isStaleByTime((0,n7.resolveQueryValue)(t.staleTime,n))?await n.fetch(t):n.state.data,a=t.select;return a?a(i):i}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#d.build(this,t);return n.isStaleByTime((0,n7.resolveQueryValue)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(n7.noop).catch(n7.noop)}infiniteQuery(e){return e._type="infinite",this.query(e)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(n7.noop).catch(n7.noop)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return ie.onlineManager.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#d}getMutationCache(){return this.#n}getDefaultOptions(){return this.#c}setDefaultOptions(e){this.#c=e}setQueryDefaults(e,t){this.#u.set((0,n7.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#u.values()],n={};return t.forEach(t=>{(0,n7.partialMatchKey)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#h.set((0,n7.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#h.values()],n={};return t.forEach(t=>{(0,n7.partialMatchKey)(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#c.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,n7.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===n7.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#c.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#d.clear(),this.#n.clear()}},ih=e.i(912598);function im(){return new iu({defaultOptions:{queries:{staleTime:6e4}}})}function ip(e){let n,i,a=(0,O.c)(3),{children:o}=e;a[0]===Symbol.for("react.memo_cache_sentinel")?(n=n7.isServer?im():(t||(t=im()),t),a[0]=n):n=a[0];let s=n;return a[1]!==o?(i=(0,B.jsx)(ih.QueryClientProvider,{client:s,children:o}),a[1]=o,a[2]=i):i=a[2],i}e.s(["SiteLayout",0,e=>{let t,n,i,a,o,s,r,l,d,c,u,h,m,p,g,f,b,v,y,x=(0,O.c)(32),{data:w,children:k}=e;x[0]!==w.locale?(t=()=>{if(!(0,H.getPreviewMode)())return;let e=tr.initialize({defaultDataAttributes:{environmentId:"6239a81e-8f0f-0040-a1df-b4932a10f6
526ae",languageCodename:w.locale},queryParam:"edit"});return()=>{e.destroy()}},x[0]=w.locale,x[1]=t):t=x[1],x[2]===Symbol.for("react.memo_cache_sentinel")?(n=[],x[2]=n):n=x[2],(0,tR.useEffect)(t,n),x[3]!==w.head?(i=()=>{w?.head?.gtm&&q.default.initialize({gtmId:`GTM-${w.head.gtm}`})},x[3]=w.head,x[4]=i):i=x[4],x[5]===Symbol.for("react.memo_cache_sentinel")?(a=[],x[5]=a):a=x[5],(0,tR.useEffect)(i,a),b=(0,O.c)(4),v=(0,tW.useRouter)(),y=(0,tW.useSearchParams)(),b[0]!==v||b[1]!==y?(g=()=>{if(!(0,H.getPreviewMode)())return;let e=async e=>{if(e.ctrlKey&&"e"===e.key){e.preventDefault(),await fetch("/api/edit");let t=new URLSearchParams(y.toString());t.has("edit")?t.delete("edit"):t.set("edit","true");let n=t.toString(),i=n?`?${n}`:window.location.pathname;v.push(i,{scroll:!1})}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},f=[v,y],b[0]=v,b[1]=y,b[2]=g,b[3]=f):(g=b[2],f=b[3]),(0,tR.useEffect)(g,f),x[6]!==w.head?(o=w.head&&(0,B.jsx)(nm.Head,{scripts:w.head.scripts}),x[6]=w.head,x[7]=o):o=x[7],x[8]===Symbol.for("react.memo_cache_sentinel")?(s=(0,B.jsx)("div",{id:"portal"}),x[8]=s):s=x[8],x[9]!==w.notification?(r=w?.notification&&(0,B.jsx)(tP,{...w?.notification}),x[9]=w.notification,x[10]=r):r=x[10];let C=w.head?.language_codename;return x[11]!==w.utility_navigation?(l=w.utility_navigation&&(0,B.jsx)(nu,{...w.utility_navigation}),x[11]=w.utility_navigation,x[12]=l):l=x[12],x[13]!==w.chatbot?(d=w.chatbot&&(0,B.jsx)(n9,{chatbot:w.chatbot}),x[13]=w.chatbot,x[14]=d):d=x[14],x[15]!==w.navbar?(c=w.navbar&&(0,B.jsx)(ne,{...w.navbar}),x[15]=w.navbar,x[16]=c):c=x[16],x[17]!==k?(u=(0,B.jsx)("main",{id:"main",children:k}),x[17]=k,x[18]=u):u=x[18],x[19]!==w.footer?(h=w.footer&&(0,B.jsx)(nc,{...w.footer}),x[19]=w.footer,x[20]=h):h=x[20],x[21]!==d||x[22]!==c||x[23]!==u||x[24]!==h||x[25]!==C||x[26]!==l?(m=(0,B.jsxs)("div",{"data-slot":"wrapper",className:"group/site mx-auto flex min-h-dvh max-w-(--wrapper) flex-col","data-kontent-project-id":"6239a81e-8f0f-0040-a1df-b4932a10f6
526ae","data-kontent-language-codename":C,children:[l,d,c,u,h]}),x[21]=d,x[22]=c,x[23]=u,x[24]=h,x[25]=C,x[26]=l,x[27]=m):m=x[27],x[28]!==m||x[29]!==o||x[30]!==r?(p=(0,B.jsx)(D.SessionProvider,{children:(0,B.jsxs)(ip,{children:[o,s,r,m]})}),x[28]=m,x[29]=o,x[30]=r,x[31]=p):p=x[31],p}],420470)}]);
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.