PageSourceSearch

https://shop.porsche.com/_next/static/immutable/chunks/3bjkfd44s4_kf.js

js porsche.com collected 2026-09-24 08:24:29 UTC 465,785 bytes, 2,305 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,994814,e=>{"use strict";var t=e.i(653145);let a=(e,a,i)=>{if(e&&"reportValidity"in e){let r=(0,t.get)(i,a);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},i=(e,t)=>{for(let i in t.fields){let r=t.fields[i];r&&r.ref&&"reportValidity"in r.ref?a(r.ref,i,e):r&&r.refs&&r.refs.forEach(t=>a(t,i,e))}},r=(e,a)=>{a.shouldUseNativeValidation&&i(e,a);let r={};for(let i in e){let o=(0,t.get)(a.fields,i),s=Object.assign(e[i]||{},{ref:o&&o.refs?o.refs[0]:o&&o.ref});if(n(a.names||Object.keys(e),i)){let e=Object.assign({},(0,t.get)(r,i));(0,t.set)(e,"root",s),(0,t.set)(r,i,e)}else(0,t.set)(r,i,s)}return r},n=(e,t)=>{let a=o(t).replace(/[.*+?^${}()|\\]/g,"\\$&");return e.some(e=>o(e).match(`^${a}\\.\\d+`))};function o(e){return e.replace(/\[(\d+)]/g,".$1").replace(/[[\]]/g,"")}function s(){return(s=Object.assign.bind()).apply(null,arguments)}function l(e,t){try{var a=e()}catch(e){return t(e)}return a&&a.then?a.then(void 0,t):a}e.s(["zodResolver",0,function(e,a,n){if(void 0===n&&(n={}),"_zod"in e&&"object"==typeof e._zod)return function(o,d,c){try{return Promise.resolve(l(function(){function t(e){return c.shouldUseNativeValidation&&i({},c),{errors:{},values:n.raw?Object.assign({},o):e}}return"sync"===n.mode?t(e.parse(o,a)):Promise.resolve(e.parseAsync(o,a)).then(t)},function(e){var a;if(!(null==e||null==(a=e._zod)||null==(a=a.traits)||!a.has("$ZodError")))return{values:{},errors:r(function(e,a){for(var i=Object.create(null);e.length;)!function(){var r=e[0],n=r.code,o=r.message,l=r.path.join(".");if(!i[l])if("invalid_union"===r.code&&r.errors.length>0){var d,c,u=r.errors.reduce(function(e,t){return t.length<e.length?t:e})[0];i[l]={message:null!=(d=null==u?void 0:u.message)?d:o,type:null!=(c=null==u?void 0:u.code)?c:n}}else i[l]={message:o,type:n};if("invalid_union"===r.code&&r.errors.forEach(function(t){return t.forEach(function(t){return e.push(s({},t,{path:[].concat(r.path,t.path)}))})}),a){var h=i[l].types,m=h&&h[r.code];i[l]=(0,t.appendErrors)(l,a,i,n,m?[].concat(m,r.message):r.message)}e.shift()}();return i}(e.issues,!c.shouldUseNativeValidation&&"all"===c.criteriaMode),c)};throw e}))}catch(e){return Promise.reject(e)}};if("_def"in e&&"object"==typeof e._def)return function(o,s,d){try{return Promise.resolve(l(function(){return Promise.resolve(e["sync"===n.mode?"parse":"parseAsync"](o,a)).then(function(e){return d.shouldUseNativeValidation&&i({},d),{errors:{},values:n.raw?Object.assign({},o):e}})},function(e){if(Array.isArray(null==e?void 0:e.issues))return{values:{},errors:r(function(e,a){for(var i=Object.create(null);e.length;){var r=e[0],n=r.code,o=r.message,s=r.path.join(".");if(!i[s])if("unionErrors"in r){var l,d,c=r.unionErrors.reduce(function(e,t){return t.errors.length<e.errors.length?t:e}).errors[0];i[s]={message:null!=(l=null==c?void 0:c.message)?l:o,type:null!=(d=null==c?void 0:c.code)?d:n}}else i[s]={message:o,type:n};if("unionErrors"in r&&r.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),a){var u=i[s].types,h=u&&u[r.code];i[s]=(0,t.appendErrors)(s,a,i,n,h?[].concat(h,r.message):r.message)}e.shift()}return i}(e.errors,!d.shouldUseNativeValidation&&"all"===d.criteriaMode),d)};throw e}))}catch(e){return Promise.reject(e)}};throw Error("Invalid input: not a Zod schema")}],994814)},446218,e=>{"use strict";e.i(247167);var t=e.i(843476),a=e.i(271645),i=e.i(883342),r=e.i(274845);let n=(0,a.forwardRef)(({activeSlideIndex:e=0,alignControls:n="auto",alignHeader:o="start",aria:s,description:l,focusOnCe
1nterSlide:d=!1,gradient:c=!1,heading:u,headingSize:h="x-large",intl:m,onUpdate:p,pagination:g=!1,rewind:v=!1,skipLinkTarget:f,slidesPerPage:T=1,trimSpace:y=!1,width:I="basic",className:P,children:S,...x},b)=>{let k=(0,a.useRef)(void 0);(0,i.useEventCallback)(k,"update",p);let D=(0,i.usePrefix)("p-carousel"),C=[e,n,o,s,l,d,c,u,h,m,g,v,f,T,y,I];(0,i.useBrowserLayoutEffect)(()=>{let{current:e}=k;["activeSlideIndex","alignControls","alignHeader","aria","description","focusOnCenterSlide","gradient","heading","headingSize","intl","pagination","rewind","skipLinkTarget","slidesPerPage","trimSpace","width"].forEach((t,a)=>e[t]=C[a])},C);let R={...x,...{children:S,suppressHydrationWarning:!0},"data-ssr":"",class:(0,i.useMergedClass)(k,P),ref:(0,r.syncRef)(k,b)};return(0,t.jsx)(D,{...R})});e.s(["PCarousel",0,n])},565218,e=>{"use strict";e.i(247167);var t=e.i(843476),a=e.i(271645),i=e.i(883342),r=e.i(274845);let n=(0,a.forwardRef)(({disabled:e=!1,value:n,className:o,children:s,...l},d)=>{let c=(0,a.useRef)(void 0),u=(0,i.usePrefix)("p-select-option"),h=[e,n];(0,i.useBrowserLayoutEffect)(()=>{let{current:e}=c;["disabled","value"].forEach((t,a)=>e[t]=h[a])},h);let m={...l,...{children:s,suppressHydrationWarning:!0},"data-ssr":"",class:(0,i.useMergedClass)(c,o),ref:(0,r.syncRef)(c,d)};return(0,t.jsx)(u,{...m})});e.s(["PSelectOption",0,n])},189455,e=>{"use strict";e.i(247167);var t=e.i(843476),a=e.i(271645),i=e.i(883342),r=e.i(274845);let n=(0,a.forwardRef)(({compact:e=!1,description:n="",disabled:o=!1,dropdownDirection:s="auto",filter:l=!1,form:d,hideLabel:c=!1,label:u="",message:h="",name:m,onBlur:p,onChange:g,onToggle:v,required:f=!1,state:T="none",value:y,className:I,children:P,...S},x)=>{let b=(0,a.useRef)(void 0);(0,i.useEventCallback)(b,"blur",p),(0,i.useEventCallback)(b,"change",g),(0,i.useEventCallback)(b,"toggle",v);let k=(0,i.usePrefix)("p-select"),D=[e,n,o,s,l,d,c,u,h,m,f,T,y];(0,i.useBrowserLayoutEffect)(()=>{let{current:e}=b;["compact","description","disabled","dropdownDirection","filter","form","hideLabel","label","message","name","required","state","value"].forEach((t,a)=>e[t]=D[a])},D);let C={...S,...{children:P,suppressHydrationWarning:!0},"data-ssr":"",class:(0,i.useMergedClass)(b,I),ref:(0,r.syncRef)(b,x)};return(0,t.jsx)(k,{...C})});e.s(["PSelect",0,n])},356476,e=>{"use strict";e.i(247167);var t=e.i(843476),a=e.i(271645),i=e.i(883342),r=e.i(274845);let n=(0,a.forwardRef)(({aria:e,color:n="primary",size:o="sm",className:s,...l},d)=>{let c=(0,a.useRef)(void 0),u=(0,i.usePrefix)("p-spinner"),h=[e,n,o];(0,i.useBrowserLayoutEffect)(()=>{let{current:e}=c;["aria","color","size"].forEach((t,a)=>e[t]=h[a])},h);let m={...l,...{suppressHydrationWarning:!0},"data-ssr":"",class:(0,i.useMergedClass)(c,s),ref:(0,r.syncRef)(c,d)};return(0,t.jsx)(u,{...m})});e.s(["PSpinner",0,n])},300085,67869,418679,e=>{"use strict";var t=e.i(540151),a=e.i(480388),i=e.i(181788),r=e.i(793848),n=e.i(993270),o=e.i(554687),s=e.i(231763);function l(e,t,r){return e.map(function(e,n){return(0,i._)((0,a._)({},e),{__position:r*t+n+1})})}function d(e,t){return t?e.map(function(e){return(0,i._)((0,a._)({},e),{__queryID:t})}):e}e.s(["addAbsolutePosition",0,l],67869),e.s(["addQueryID",0,d],418679);var c=e.i(221024),u=(0,n.createDocumentationMessageGenerator)({name:"hits",connector:!0}),h=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.noop;return(0,o.checkRendering)(e,u()),function(o){var c,u,h=o||{},m=h.escapeHTML,p=void 0===m||m,g=h.transformItems,v=void 0===g?function(e){return e}:g;return{$$type:"ais.hits",init:function(t){e((0,i._)((0,a._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var r=this.getWidgetRenderState(t);e((0,i._)((0,a._)({},r),{instantSearchInstance:t.instantSearchInstance}),!1),r.sendEvent("view:internal",r.items)},getRenderState:function(e,t){return(0,i._)((0,a._)({},e),{hits:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t,a,i,n=e.results,h=e.helper,m=e.instantSearchInstance;if(c||(c=(0,r.createSendEventForHits)({instantSearchInstance:m,helper:h,widgetType:this.$$type})),u||(u=(0,r.createBindEventForHits)({helper:h,widgetType:this.$$type,instantSearchInstance:m})),!n)return{hits:[],items:[],results:void 0,banner:void 0,sendEvent:c,bindEvent:u,widgetParams:o};p&&n.hits.length>0&&(n.hits=(0,s.escapeHits)(n.hits));
1var g=v(d(l(n.hits,n.page,n.hitsPerPage),n.queryID),{results:n}),f=null==(i=n.renderingContent)||null==(a=i.widgets)||null==(t=a.banners)?void 0:t[0];return{hits:g,items:g,results:n,banner:f,sendEvent:c,bindEvent:u,widgetParams:o}},dispose:function(e){var r=e.state;return(n(),p)?r.setQueryParameters(Object.keys(s.TAG_PLACEHOLDER).reduce(function(e,r){return(0,i._)((0,a._)({},e),(0,t._)({},r,void 0))},{})):r},getWidgetSearchParameters:function(e,t){return p?e.setQueryParameters(s.TAG_PLACEHOLDER):e}}}},m=e.i(667291);e.s(["useHits",0,function(e,t){return(0,m.useConnector)(h,e,t)}],300085)},561426,329138,706247,e=>{"use strict";var t=e.i(843476),a=e.i(565218),i=e.i(712978);let r=({value:e,label:r,image:n,disabled:o=!1,isSoldOut:s=!1,...l})=>(0,t.jsxs)(a.PSelectOption,{className:i.optionAvailability[s?"soldOut":"selectable"],value:e,disabled:o,"data-slot":"select-field-option",...l,children:[n&&(0,t.jsx)("img",{alt:"",className:i.optionImage,src:n}),r]});r.displayName="SelectField.Option",e.s(["SelectFieldOption",0,r],561426);var n=e.i(271645),o=e.i(883342),s=e.i(274845);let l=(0,n.forwardRef)(({disabled:e=!1,label:a,className:i,children:r,...l},d)=>{let c=(0,n.useRef)(void 0),u=(0,o.usePrefix)("p-optgroup"),h=[e,a];(0,o.useBrowserLayoutEffect)(()=>{let{current:e}=c;["disabled","label"].forEach((t,a)=>e[t]=h[a])},h);let m={...l,...{children:r,suppressHydrationWarning:!0},"data-ssr":"",class:(0,o.useMergedClass)(c,i),ref:(0,s.syncRef)(c,d)};return(0,t.jsx)(u,{...m})}),d=({label:e,children:a,...i})=>(0,t.jsx)(l,{label:e,"data-slot":"select-field-option-group",...i,children:a});d.displayName="SelectField.OptionGroup",e.s(["SelectFieldOptionGroup",0,d],329138);let c=({children:e,...i})=>(0,t.jsx)(a.PSelectOption,{hidden:!0,value:"","data-slot":"select-field-placeholder",...i,children:e});c.displayName="SelectField.Placeholder",e.s(["SelectFieldPlaceholder",0,c],706247)},819061,e=>{"use strict";e.s(["RATIO_CARD_BASE",0,.66,"RATIO_CARD_SMALL",0,.6667,"RATIO_LARGE_CARD_L",0,1.2963,"RATIO_LARGE_CARD_XL",0,1.3077,"RATIO_MEDIUM_CARD_L",0,1,"RATIO_SMALL_CARD_L",0,.6296,"RATIO_SMALL_CARD_XL",0,.6308,"item",0,{small:"_1in7rara _1in7rar9",medium:"_1in7rarb _1in7rar9",large:"_1in7rarc _1in7rar9"},"root",0,{default:"_1in7rar7",dark:"_1in7rar8"}])},489298,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(622779),r={default:"_154xf5k1 _154xf5k0","rounded-borders":"_154xf5k2 _154xf5k0"},n=e.i(97116),o=e.i(938417),s=e.i(910848),l=e.i(531710),d=e.i(929774);function c(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)"__proto__"!==i&&(e[i]=a[i])}return e}var u=function e(t,a){function i(e,i,r){if("u">typeof document){"number"==typeof(r=c({},a,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var n="";for(var o in r)r[o]&&(n+="; "+o,!0!==r[o]&&(n+="="+r[o].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+n}}return Object.create({set:i,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var a=document.cookie?document.cookie.split("; "):[],i={},r=0;r<a.length;r++){var n=a[r].split("="),o=n.slice(1).join("=");try{var s=decodeURIComponent(n[0]);if(s in i||(i[s]=t.read(o,s)),e===s)break}catch(e){}}return e?i[e]:i}},remove:function(e,t){i(e,"",c({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,c({},this.attributes,t))},withConverter:function(t){return e(c({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});let h=function(e){var t=(0,a.useState)(function(){return u.get(e)||null}),i=t[0],r=t[1];return[i,(0,a.useCallback)(function(t,a){u.set(e,t,a),r(t)},[e]),(0,a.useCallback)(function(){u.remove(e),r(null)},[e])]},m=function(e,t){var i=(0,a.useState)(null),r=i[0],n=i[1];return(0,a.useEffect)(function(){if(e.current&&"function"==typeof IntersectionObserver){var a=new IntersectionObserver(function(e){n(e[0])},t);return a.observe(e.current),function(){n(null),a.disconnect()}}return function(){}},[e.current,t.threshold,t.root,t.rootMargin]),r};var p=e.i(12992),g={undefined:"_1iml5vw2",true:"_1iml5vw3",false:"_1iml5vw4"},v=e.i(618595);e.i(282616);var f=e.i(332587);let T=({children:e,initialScrollPercentage:i,disabled:r})=>{let[n,o]=h("multi-hot-spot-pointer"),[s,l]=(0,a.useState)("hidden"!==n&&void 0),d=(0,a.useRef)(null),c=(0,a.useRef)(null),{minWidthS:u}=(0,v.useMediaQueries)(),T=m(d,{root:null,rootMargin:"0px",threshold:.25}
1),y=(0,p.useDrag)(({delta:[e],dragging:t})=>{let a;d.current&&t&&("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch||(a=["("," -webkit- -moz- -o- -ms- ".split(" ").join("touch-enabled),("),"heartz",")"].join(""),window.matchMedia(a).matches)||(d.current.scrollLeft-=e),0!==e&&(l(!1),o("hidden")))},{filterTaps:!0,enabled:!u&&!r,triggerAllEvents:!0});return(0,a.useEffect)(()=>{d.current&&c.current&&(void 0!==i?d.current.scrollLeft=(d.current.scrollWidth-d.current.clientWidth)*(i/100):d.current.scrollLeft=d.current.scrollWidth/2-d.current.clientWidth/2,c.current.style.left=`${d.current.scrollLeft+d.current.clientWidth-100}px`)},[i]),(0,a.useEffect)(()=>{let e;return void 0===s&&T&&T?.intersectionRatio>.25&&(l(!0),e=setTimeout(()=>l(!1),5e3)),()=>{e&&(l(!1),clearTimeout(e))}},[T,T?.intersectionRatio,s]),(0,t.jsxs)("div",{role:"presentation",tabIndex:0,ref:d,className:"_1iml5vw0",...y(),children:[(0,t.jsx)("div",{ref:c,className:"_1iml5vw5",children:(0,t.jsx)(f.Icon,{name:"hotspotHand",size:"x-large","aria-hidden":!0,className:g[s?.toString()]})}),e]})};var y={inactive:"_1o9dyk43 _1o9dyk42",active:"_1o9dyk44 _1o9dyk42"};e.i(533423);var I=e.i(443456),P=e.i(722314),S=e.i(521044),x=e.i(139620),b=e.i(24961),k=e.i(820661),D=e.i(211680);e.i(994736);var C=e.i(560423);let R=({ref:e,spot:r,isActive:n,image:s,handleHotspotClick:l,onDismissPopup:c,viewProductLinkText:u,collisionBoundary:h})=>{let m=(0,v.useMediaQueries)().minWidthS,p=(0,a.useId)(),g=100/s.width*(r.coordinates.x??0),T=100/s.height*(r.coordinates.y??0);return(0,t.jsxs)(C.ContextualOverlay.Root,{open:n,onDismiss:c,ariaLabel:r.name,mode:"anchored",side:g>50?"left":"right",collisionBoundary:h,children:[(0,t.jsx)(C.ContextualOverlay.Trigger,{ref:e,"data-testid":"hotspot-button-wrapper",className:`_1o9dyk41 ${n?"active":""}`,style:{width:"48px",height:"48px",top:`calc(${T}% - 24px)`,left:`calc(${g}% - 24px)`,borderRadius:"24px",zIndex:0},children:(0,t.jsx)("button",{"data-testid":"hotspot-button",onClick:()=>l(r),style:{width:"48px",height:"48px",borderRadius:"24px"},name:"hotspot",type:"button",className:y[n?"active":"inactive"],"aria-label":"Hotspot Button","aria-labelledby":r.id,"aria-haspopup":"dialog","aria-expanded":n,...!m&&{"aria-controls":p},children:(0,t.jsx)(f.Icon,{name:"plus",size:"small",color:"primary","aria-hidden":!0})})}),(0,t.jsx)(C.ContextualOverlay.Overlay,{id:p,children:(0,t.jsx)(d.ThemeBoundary,{theme:"light",children:(0,t.jsxs)(I.PopoverItem,{className:"_1o9dyk47",href:m?r.href:void 0,children:[r.image&&(0,t.jsx)(k.PopoverItemMedia,{variant:"image",image:{url:r.image.url,alt:r.image.alt,sizes:"20vw"}}),(0,t.jsxs)(S.PopoverItemContent,{children:[(0,t.jsx)(C.ContextualOverlay.Title,{asChild:!0,children:(0,t.jsx)(D.PopoverItemTitle,{children:r.name})}),r.subHeadline&&(0,t.jsx)(x.PopoverItemDescription,{ellipsisAfterTwoLines:!1,children:r.subHeadline}),r.children]}),m&&(0,t.jsx)(P.PopoverItemActions,{children:(0,t.jsx)(f.Icon,{"aria-hidden":!0,color:"inherit",name:"arrow-right",size:"small"})}),!m&&(r.href||r.whishlistButton)&&(0,t.jsxs)(b.PopoverItemFooter,{align:"start",className:"_1o9dyk48",children:[r.href&&(0,t.jsx)(i.PLink,{className:"_1o9dyk49",icon:"arrow-right",onClick:c,children:(0,t.jsx)(o.default,{href:r.href,children:u})}),r.whishlistButton]})]})})})]})};e.s(["MultipleHotSpots",0,({image:e,spots:c,link:u,isInline:h,withBorderRadius:m,initialScrollPercentage:p,viewProductLinkText:g,closeButtonAriaLabel:v,variant:f="default",...y})=>{let[I,P]=(0,a.useState)(void 0),[S,x]=(0,a.useState)(void 0),[b,k]=(0,a.useState)(null),D=e=>{x(e),P(e.id!==S?.id||!I&&e.id===S?.id)},C=()=>{P(!1)},q=[...c].sort((e,t)=>e.coordinates.y-t.coordinates.y),{tags:E,...N}=e;return(0,t.jsx)(l.Grid,{...y,dataId:"hotspots",children:(0,t.jsx)(d.ThemeBoundary,{theme:"light",children:(0,t.jsxs)("div",{className:r[f],ref:k,children:[(0,t.jsx)(T,{initialScrollPercentage:p,disabled:!!I,children:(0,t.jsxs)("div",{className:"_154xf5k3",children:[(0,t.jsx)(n.Picture,{containerLayout:{base:{width:100,aspect:2/3},xs:{width:100,aspect:.8},s:{width:100,aspect:16/9}},draggable:!1,fill:!0,src:N,className:"_154xf5ka",loading:"lazy"}),E&&(0,t.jsx)(d.ThemeBoundary,{theme:"dark",children:(0,t.jsx)(s.MediaTags,{className:"_154xf5kb",tags:E})}),(0,t.jsx)(d.ThemeBoundary,{theme:"light",children:(0,t.jsx)("div",{children:q.map(e=>(0,t.jsx)(R,{spot:e,isActive:!!I&&e.id===S?.id,handleHotspotClick:D,onDismissPopup:C,viewProductLinkText:g,image:N,collisionBoundary:b},e.id))})})]})}),u?.href&&(0,t.jsx)("div",{className:"_154xf5k8","data-testid":"link-wrapper",children:(0,t.jsx)(d.ThemeBoundary,{theme:"dark",children:(0,t.jsx)(i.PLink,{icon:"price-tag",children:(0,t.jsx)(o.default,{href:u.href,children:u.text})})})})]})})})}],489298)},251306,e=>{"use strict";var t=e.i(843476),a=e.i(367982),i=e.i(929774),r=e.i(251677);e.s(["InterleavedBlockSection",0,({children:e,dataId:n,className:o="",theme:s="light",as:l="div",ref:d,...c})=>(0,t.jsx)(i.ThemeBoundary,{theme:s,children:(0,t.jsx)(r.BlockSection,{...c,children:(0,t.jsx)(a.Component,{ref:d,as:l,className:["_1haaw8b0",o].join(" "),"data-testid":n,...c,children:e})})})],251306)},845582,465218,589472,820646,415525,e=>{"use strict";var t,a,i,r=e.i(843476),n=e.i(271645),o=((t={}).DOCUMENT="document",t.PARAGRAPH="paragraph",t.HEADING_1="heading-1",t.HEADING_2="heading-2",t.HEADING_3="heading-3",t.HEADING_4="heading-4",t.HEADING_5="heading-5",t.HEADING_6="heading-6",t.OL_LIST="ordered-list",t.UL_LIST="unordered-list",t.LIST_ITEM="list-item",t.HR="hr",t.QUOTE="blockquote",t.EMBEDDED_ENTRY="embedded-entry-block",t.EMBEDDED_ASSET="embedded-asset-block",t.EMBEDDED_RESOURCE="embedded-resource-block",t.TABLE="table",t.TABLE_ROW="table-row",t.TABLE_CELL="table-cell",t.TABLE_HEADER_CELL="table-header-cell",t);e.s(["BLOCKS",0,o],465218);var s=((a={}).ASSET_HYPERLINK="asset-hyperlink",a.EMBEDDED_ENTRY="embedded-entry-inline",a.EMBEDDED_RESOURCE="embedded-resource-inline",a.ENTRY_HYPERLINK="entry-hyperlink",a.HYPERLINK="hyperlink",a.RESOURCE_HYPERLINK="resource-hyperlink",a);function l(e,t){for(let a of Object.keys(e))if(t===e[a])return!0;return!1}function d(e){if(e.nodeType!==o.PARAGRAPH||1!==e.content.length)return!1;let t=e.content[0];return"text"===t.nodeType&&""===t.value}e.s(["isBlock",0,function(e){return l(o,e.nodeType)},"isEmptyParagraph",0,d,"isInline",0,function(e){return l(s,e.nodeType)},"isText",0,function(e){return"text"===e.nodeType},"stripEmptyTrailingParagraphFromDocument",0,function(e){return!(null!=e&&"object"==typeof e&&"content"in e&&Array.isArray(e.content))||e.content.length<2?e:d(e.content[e.content.length-1])?{...e,content:e.content.slice(0,-1)}:e}],937584);var c=e.i(937584),u=((i={}).BOLD="bold",i.ITALIC="italic",i.UNDERLINE="underline",i.CODE="code",i.SUPERSCRIPT="superscript",i.SUBSCRIPT="subscript",i.STRIKETHROUGH="str
1ikethrough",i);let h=[o.PARAGRAPH,o.HEADING_1,o.HEADING_2,o.HEADING_3,o.HEADING_4,o.HEADING_5,o.HEADING_6,o.OL_LIST,o.UL_LIST,o.HR,o.QUOTE,o.EMBEDDED_ENTRY,o.EMBEDDED_ASSET,o.EMBEDDED_RESOURCE,o.TABLE],m=[o.PARAGRAPH,o.HEADING_1,o.HEADING_2,o.HEADING_3,o.HEADING_4,o.HEADING_5,o.HEADING_6,o.OL_LIST,o.UL_LIST,o.HR,o.QUOTE,o.EMBEDDED_ENTRY,o.EMBEDDED_ASSET,o.EMBEDDED_RESOURCE];o.TABLE,o.TABLE_ROW,o.TABLE_CELL,o.TABLE_HEADER_CELL,o.HR,o.EMBEDDED_ENTRY,o.EMBEDDED_ASSET,o.EMBEDDED_RESOURCE;let p={[o.OL_LIST]:[o.LIST_ITEM],[o.UL_LIST]:[o.LIST_ITEM],[o.LIST_ITEM]:m,[o.QUOTE]:[o.PARAGRAPH],[o.TABLE]:[o.TABLE_ROW],[o.TABLE_ROW]:[o.TABLE_CELL,o.TABLE_HEADER_CELL],[o.TABLE_CELL]:[o.PARAGRAPH,o.UL_LIST,o.OL_LIST],[o.TABLE_HEADER_CELL]:[o.PARAGRAPH]},g=[o.HEADING_1,o.HEADING_2,o.HEADING_3,o.HEADING_4,o.HEADING_5,o.HEADING_6];[o.PARAGRAPH,...g],o.DOCUMENT,o.PARAGRAPH,o.HEADING_1,o.HEADING_2,o.HEADING_3,o.HEADING_4,o.HEADING_5,o.HEADING_6,o.OL_LIST,o.UL_LIST,o.LIST_ITEM,o.HR,o.QUOTE,o.EMBEDDED_ENTRY,o.EMBEDDED_ASSET,s.HYPERLINK,s.ENTRY_HYPERLINK,s.ASSET_HYPERLINK,s.EMBEDDED_ENTRY,u.BOLD,u.CODE,u.ITALIC,u.UNDERLINE;let v=({path:e,property:t,typeName:a,value:i})=>({details:`The type of "${t}" is incorrect, expected type: ${a}`,name:"type",path:e.toArray(),type:a,value:i});class f{obj;path;_errors=[];constructor(e,t){this.obj=e,this.path=t}catch=(...e)=>{this._errors.push(...e)};get errors(){let e=e=>JSON.stringify({details:e.details,path:e.path});return this._errors.filter((t,a)=>this._errors.findIndex(a=>e(t)===e(a))===a)}exists=e=>e in this.obj||(this.catch((({property:e,path:t})=>({details:`The property "${e}" is required here`,name:"required",path:t.toArray()}))({property:e,path:this.path.of(e)})),!1);object=e=>{let t=e?this.obj[e]:this.obj;if(e&&!this.exists(e))return!1;if("object"==typeof t&&!Array.isArray(t)&&null!==t)return!0;let a=e?this.path.of(e):this.path,i=e??this.path.last()??"value";return this.catch(v({typeName:"Object",property:i,path:a,value:t})),!1};string=e=>{let t=this.obj[e];return(!e||!!this.exists(e))&&("string"==typeof t||(this.catch(v({typeName:"String",property:e,path:this.path.of(e),value:t})),!1))};number=(e,t)=>{let a=this.obj[e];return!!t&&!(e in this.obj)||!!this.exists(e)&&(!("number"!=typeof a||Number.isNaN(a))||(this.catch(v({typeName:"Number",property:e,path:this.path.of(e),value:a})),!1))};array=e=>{let t=this.obj[e];return(!e||!!this.exists(e))&&(!!Array.isArray(t)||(this.catch(v({typeName:"Array",property:e,path:this.path.of(e),value:t})),!1))};enum=(e,t)=>{let a=this.obj[e];return!!("string"==typeof a&&t.includes(a))||(this.catch((({expected:e,value:t,path:a})=>({details:"Value must be one of expected values",name:"in",expected:[...e].sort(),path:a.toArray(),value:t}))({expected:t,value:a,path:this.path.of(e)})),!1)};empty=e=>{if(!this.array(e))return!1;let t=this.obj[e];return 0===t.length||(this.catch((({max:e,value:t,path:a})=>({name:"size",max:e,path:a.toArray(),details:`Size must be at most ${e}`,value:t}))({max:0,value:t,path:this.path.of(e)})),!1)};minLength=(e,t)=>{if(!this.array(e))return!1;let a=this.obj[e];return a.length>=t||(this.catch((({min:e,value:t,path:a})=>({name:"size",min:e,path:a.toArray(),details:`Size must be at least ${e}`,value:t}))({min:t,value:a,path:this.path.of(e)})),!1)};noAdditionalProperties=e=>{let t=Object.keys(this.obj).sort().filter(t=>!e.includes(t));return t.forEach(e=>this.catch((({property:e,path:t})=>({details:`The property "${e}" is not expected`,name:"unexpected",path:t.toArray()}))({property:e,path:this.path.of(e)}))),0===t.length};each=(e,t)=>{if(!this.array(e))return;let a=this.obj[e],i=!1;a.forEach((a,r)=>{if(i)return;let n=t(a,this.path.of(e).of(r));n.length>0&&(i=!0),this.catch(...n)})}}let T=[];class y{contentRule;validateData;constructor(e,t){this.contentRule=e,this.validateData=t}assert(e,t){let a=new f(e,t);if(!a.object())return a.errors;a.noAdditionalProperties(["nodeType","data","content"]);let{nodeTypes:i,min:r=0}=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,t);if(0===i.length&&r>0)throw Error(`Invalid content rule. Cannot have enforce a 'min' of ${r}
1 with no nodeTypes`);if(a.minLength("content",r),0===i.length?a.empty("content"):a.each("content",(e,t)=>{let a=new f(e,t);return a.object()&&a.enum("nodeType",i),a.errors}),a.object("data")){let i=this.validateData?.(e.data,t.of("data"))??[];a.catch(...i)}return a.errors}}class I extends y{linkType;type;constructor(e,t){super(t,(e,t)=>this.assertLink(e,t)),this.linkType=e,this.type=this.linkType.startsWith("Contentful:")?"ResourceLink":"Link"}assertLink=(e,t)=>{let a=new f(e,t);if(a.object("target")){let i=new f(e.target.sys,t.of("target").of("sys"));i.object()&&(i.enum("type",[this.type]),i.enum("linkType",[this.linkType]),"Link"===this.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===this.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),a.catch(...i.errors)}return a.noAdditionalProperties(["target"]),a.errors}}let P=(e,t)=>new y(e,t),S=(e,t)=>new I(e,t);P([...Object.values(s),"text"].sort()),P([o.LIST_ITEM]),S("Entry",T),P(()=>({nodeTypes:[o.PARAGRAPH],min:1}),(e,t)=>{let a=new f(e,t);return a.noAdditionalProperties(["colspan","rowspan"]),a.number("colspan",!0),a.number("rowspan",!0),a.errors}),o.DOCUMENT,P(h),o.PARAGRAPH,o.HEADING_1,o.HEADING_2,o.HEADING_3,o.HEADING_4,o.HEADING_5,o.HEADING_6,o.QUOTE,P(p[o.QUOTE]),o.EMBEDDED_ENTRY,o.EMBEDDED_ASSET,S("Asset",T),o.EMBEDDED_RESOURCE,S("Contentful:Entry",T),o.HR,P(T),o.OL_LIST,o.UL_LIST,o.LIST_ITEM,P([...m].sort()),o.TABLE,P(()=>({nodeTypes:[o.TABLE_ROW],min:1})),o.TABLE_ROW,P(()=>({nodeTypes:[o.TABLE_CELL,o.TABLE_HEADER_CELL],min:1})),o.TABLE_CELL,o.TABLE_HEADER_CELL,s.HYPERLINK,new class extends y{constructor(){super(["text"],(e,t)=>this.assertLink(e,t))}assertLink=(e,t)=>{let a=new f(e,t);return a.string("uri"),a.noAdditionalProperties(["uri"]),a.errors}},s.EMBEDDED_ENTRY,s.EMBEDDED_RESOURCE,S("Contentful:Entry",T),s.ENTRY_HYPERLINK,S("Entry",["text"]),s.ASSET_HYPERLINK,S("Asset",["text"]),s.RESOURCE_HYPERLINK,S("Contentful:Entry",["text"]),e.s([],589472);var x=c;e.s(["helpers",0,x],820646);var x=c;let b={[o.DOCUMENT]:(e,t)=>t,[o.PARAGRAPH]:(e,t)=>n.default.createElement("p",null,t),[o.HEADING_1]:(e,t)=>n.default.createElement("h1",null,t),[o.HEADING_2]:(e,t)=>n.default.createElement("h2",null,t),[o.HEADING_3]:(e,t)=>n.default.createElement("h3",null,t),[o.HEADING_4]:(e,t)=>n.default.createElement("h4",null,t),[o.HEADING_5]:(e,t)=>n.default.createElement("h5",null,t),[o.HEADING_6]:(e,t)=>n.default.createElement("h6",null,t),[o.EMBEDDED_ENTRY]:(e,t)=>n.default.createElement("div",null,t),[o.EMBEDDED_RESOURCE]:(e,t)=>n.default.createElement("div",null,t),[o.UL_LIST]:(e,t)=>n.default.createElement("ul",null,t),[o.OL_LIST]:(e,t)=>n.default.createElement("ol",null,t),[o.LIST_ITEM]:(e,t)=>n.default.createElement("li",null,t),[o.QUOTE]:(e,t)=>n.default.createElement("blockquote",null,t),[o.HR]:()=>n.default.createElement("hr",null),[o.TABLE]:(e,t)=>n.default.createElement("table",null,n.default.createElement("tbody",null,t)),[o.TABLE_ROW]:(e,t)=>n.default.createElement("tr",null,t),[o.TABLE_HEADER_CELL]:(e,t)=>
1n.default.createElement("th",null,t),[o.TABLE_CELL]:(e,t)=>n.default.createElement("td",null,t),[s.ASSET_HYPERLINK]:e=>D(s.ASSET_HYPERLINK,e),[s.ENTRY_HYPERLINK]:e=>D(s.ENTRY_HYPERLINK,e),[s.RESOURCE_HYPERLINK]:e=>C(s.RESOURCE_HYPERLINK,e),[s.EMBEDDED_ENTRY]:e=>D(s.EMBEDDED_ENTRY,e),[s.EMBEDDED_RESOURCE]:(e,t)=>C(s.EMBEDDED_RESOURCE,e),[s.HYPERLINK]:(e,t)=>n.default.createElement("a",{href:e.data.uri},t)},k={[u.BOLD]:e=>n.default.createElement("b",null,e),[u.ITALIC]:e=>n.default.createElement("i",null,e),[u.UNDERLINE]:e=>n.default.createElement("u",null,e),[u.CODE]:e=>n.default.createElement("code",null,e),[u.SUPERSCRIPT]:e=>n.default.createElement("sup",null,e),[u.SUBSCRIPT]:e=>n.default.createElement("sub",null,e),[u.STRIKETHROUGH]:e=>n.default.createElement("s",null,e)};function D(e,t){return n.default.createElement("span",{key:t.data.target.sys.id},"type: ",t.nodeType," id: ",t.data.target.sys.id)}function C(e,t){return n.default.createElement("span",{key:t.data.target.sys.urn},"type: ",t.nodeType," urn: ",t.data.target.sys.urn)}var R=e.i(849635),q=e.i(96363),E=e.i(815160),N={"with-spacing":"fsrgtj0","without-spacing":"fsrgtj1"},A={"with-spacing":"fsrgtj2","without-spacing":"fsrgtj3"},_={"with-spacing":"fsrgtj4","without-spacing":"fsrgtj5"},H={"with-spacing":"fsrgtj6","without-spacing":"fsrgtj7"};let j=({url:e})=>e.startsWith("http://")||e.startsWith("https://"),w=new RegExp(/^https?:\/\/([a-zA-Z0-9-]+\.)?porsche\.com/),L=({url:e})=>w.test(e);e.s(["isEcosystemUrl",0,L,"isExternalLink",0,j],415525),e.i(529131);var W=e.i(342893);e.i(778498);var O=e.i(456641),$=e.i(938417);e.s(["RichText",0,({document:e,links:t,variant:a="without-spacing",className:i,style:l,...d})=>{let c=Object.entries(d).reduce((e,[t,a])=>(t.startsWith("data-")&&"string"==typeof a&&(e[t]=a),e),{}),h=[i,_[a]].join(" "),m=[i,H[a]].join(" "),p={style:l,...c},g={renderMark:{[u.BOLD]:e=>(0,r.jsx)(O.Text,{as:"strong",weight:"bold",...p,children:e}),[u.UNDERLINE]:e=>(0,r.jsx)(O.Text,{as:"span",underline:!0,...p,children:e})},renderNode:{[o.HEADING_1]:(e,t)=>(0,r.jsx)(W.Heading,{as:"h1",size:"xx-large",className:h,...p,children:t}),[o.HEADING_2]:(e,t)=>(0,r.jsx)(W.Heading,{as:"h2",size:"xx-large",className:h,...p,children:t}),[o.HEADING_3]:(e,t)=>(0,r.jsx)(W.Heading,{as:"h3",size:"x-large",className:m,...p,children:t}),[o.HEADING_4]:(e,t)=>(0,r.jsx)(W.Heading,{as:"h4",size:"large",className:m,...p,children:t}),[o.PARAGRAPH]:(e,t)=>{let n=t;return Array.isArray(n)&&Array.isArray(n=n.filter(e=>""!==e))&&n?.length===0?null:(0,r.jsx)(O.Text,{className:[i,A[a]].join(" "),as:"p",whiteSpace:!0,...p,children:n})},[s.HYPERLINK]:(e,t)=>{let a=String(e.data.uri??"/"),i=j({url:a})&&!L({url:a})?"_blank":"_self";return(0,r.jsx)($.default,{href:a,target:i,...p,children:t})},[s.ASSET_HYPERLINK]:(e,a)=>{let i=(t??[]).find(t=>t.sys.id===e?.data.target.sys.id);return i?(0,r.jsx)(R.PLinkPure,{icon:"none",underline:!0,...p,children:(0,r.jsx)($.default,{href:i?.url??"",target:"_blank",...p,children:a})}):null},[o.EMBEDDED_ASSET]:e=>{let a=(t??[]).find(t=>t.sys.id===e?.data.target.sys.id);return a?.title&&a.url?(0,r.jsx)(R.PLinkPure,{icon:"none",underline:!0,...p,children:(0,r.jsx)($.default,{href:a.url,target:"_blank",children:a.title})}):null},[o.UL_LIST]:(e,t)=>(0,r.jsx)(q.PTextList,{className:[i,N[a]].join(" "),...p,children:t}),[o.OL_LIST]:(e,t)=>(0,r.jsx)(q.PTextList,{className:[i,N[a]].join(" "),...p,children:t}),[o.LIST_ITEM]:(e,t)=>(0,r.jsx)(E.PTextListItem,{...p,children:t})}};return(0,r.jsx)(r.Fragment,{children:function(e,t={}){if(!e)return null;let a=e;return t.stripEmptyTrailingParagraph&&(a=x.stripEmptyTrailingParagraphFromDocument(e)),function e(t,a){let{renderNode:i,renderMark:r,renderText:o,preserveWhitespace:s}=a;if(x.isText(t)){let e=o?o(t.value):t.value;if(s&&!o){let t=(e=e.replace(/ {2,}/g,e=>" ".repeat(e.length))).split("\n"),a=[];t.forEach((e,i)=>{a.push(e),i!==t.length-1&&a.push(n.default.createElement("br",null))}),e=a}return t.marks.reduce((e,t)=>r[t.type]?r[t.type](e):e,e)}{var l;let r=(l=t.content,l.map((t,i)=>{var r;return r=e(t,a),(0,n.isValidElement)(r)&&null===r.key?(0,n.cloneElement)(r,{key:i}):r}));return t.nodeType&&i[t.nodeType]?i[t.nodeType](t,r):n.default.createElement(n.default.Fragment,null,r)}}(a,{renderNode:{...b,...t.renderNode},renderMark:{...k,...t.renderMark},renderText:t.renderText,preserveWhitespace:t.preserveWhitespace})}(e,g)})}],845582)},146117,e=>{"use strict";e.s(["isArrayEqual",0,(e,t)=>Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,a)=>e===t[a])])},490499,e=>{"use strict";var t=e.i(710740);e.s(["getDirectHeadingSuccessor",0,e=>(0,t.isHTag)(e)?({h1:"h2",h2:"h3",h3:"h4",h4:"h5",h5:"h6",h6:"h6"})[e]:(console.warn(`getDirectHeadingSuccessor: The provided tag "${e}" is not a valid heading tag (h1-h6). Returning the original tag.`),e)])},710740,e=>{"use strict";let t=["h1","h2","h3","h4","h5","h6"];e.s(["isHTag",0,e=>t.includes(e)])},776755,890426,e=>{"use strict";var t=e.i(843476),a=e.i(251677),i=e.i(531710),r=e.i(736797),n=e.i(865172),o=e.i(315606),s=e.i(845582);let l=({fragmentData:e})=>{let{data:a}=(0,n.useComponentPreview)(e,e.id);return(0,t.jsx)(o.Accordion,{heading:a.headline??"",id:a.id,headingTag:a.headlineTag,size:{base:"small",m:"small"},children:(0,t.jsx)(s.RichText,{document:a.body?.json,links:a.assetLinks.map(e=>({sys:{id:e.id},title:e.title,url:e.url})),variant:"with-spacing"})})};e.s(["ShopDomainComponentAccordionList",0,({fragmentData:e})=>{let{data:o,addAttributes:s}=(0,n.useComponentPreview)(e,e.id);return(0,t.jsx)(a.BlockSection,{children:(0,t.jsx)(i.Grid,{extendedWidth:!0,...s("internalName"),children:o.items.filter(r.
1isNotNullOrUndefined).map(e=>(0,t.jsx)(l,{fragmentData:e},e.id))})})}],776755),e.i(529131);var d=e.i(342893);e.s(["ShopDomainComponentBasicText",0,({fragmentData:e})=>{let{data:r,addAttributes:o}=(0,n.useComponentPreview)(e,e.id);return e.title||e.bodyBasicText?(0,t.jsx)(a.BlockSection,{children:(0,t.jsxs)(i.Grid,{extendedWidth:!0,children:[!!e.title&&(0,t.jsx)(d.Heading,{...o("title"),as:"h2",size:"x-large",className:e.bodyBasicText?"_13twf570":"",children:r.title}),!!e.bodyBasicText&&(0,t.jsx)("div",{className:"_13twf571",...o("body"),children:(0,t.jsx)(s.RichText,{document:r?.bodyBasicText?.json,links:[]})})]})}):null}],890426)},88500,360521,96319,883272,807298,e=>{"use strict";var t,a,i,r,n,o,s,l,d,c,u,h=e.i(843476),m=e.i(271645),p=e.i(446218),g=e.i(819061),v=e.i(403118),f=e.i(710740),T=e.i(367982);e.i(529131);var y=e.i(342893),I=e.i(879165),P=e.i(991918);let S=({children:e,variant:t,className:a,...i})=>(0,h.jsx)(P.Slot,{className:[a,g.item[t??"medium"]].filter(Boolean).join(" "),...i,children:e});S.displayName="CardSliderItem";let x=e=>(0,m.isValidElement)(e)&&e.type===S,b=[{base:{width:100,aspect:g.RATIO_CARD_BASE},s:{width:50,aspect:g.RATIO_CARD_SMALL},l:{width:52,aspect:g.RATIO_LARGE_CARD_L},xl:{width:48,aspect:g.RATIO_LARGE_CARD_XL}},{base:{width:100,aspect:g.RATIO_CARD_BASE},s:{width:50,aspect:g.RATIO_CARD_SMALL},l:{width:40,aspect:g.RATIO_MEDIUM_CARD_L}},{base:{width:100,aspect:g.RATIO_CARD_BASE},s:{width:50,aspect:g.RATIO_CARD_SMALL},l:{width:25,aspect:g.RATIO_SMALL_CARD_L},xl:{width:23,aspect:g.RATIO_SMALL_CARD_XL}}],k=({children:e,applyAlternatingSizes:t=!0,animateInView:a=!0,alignHeader:i="center",className:r,width:n="extended",pagination:o=!0,heading:s,id:l,...d})=>{let{text:c,size:u="xx-large",tag:P="h2"}=s??{},S=m.Children.toArray(e),{pageTheme:k}=(0,v.usePageLayout)();if(!m.Children.count(e)||!S.every(x))return console.error("CardSlider requires at least one CardSliderItem and doesn't accept any other types of children."),null;let D=t?S.map((e,t)=>{let a;switch(t%3){case 0:a="large";break;case 1:a="medium";break;default:a="small"}return(0,m.cloneElement)(e,{variant:a,containerLayout:b[t%3],style:{"--stagger-index":t}})}):S.map(e=>(0,m.cloneElement)(e,{containerLayout:b[1]})),C=!!(0,f.isHTag)(P),R=l&&C?`card-slider-${l}-heading`:void 0,q=C&&R?"section":"div",E=(0,h.jsx)(T.Component,{as:q,id:l,"aria-labelledby":R,className:r,...d,children:(0,h.jsxs)(p.PCarousel,{alignHeader:i,className:g.root["dark"===k?"dark":"default"],width:n,pagination:o,headingSize:c?u:void 0,"data-testid":"card-slider",slidesPerPage:{base:1,s:2,l:"auto"},children:[s&&(0,h.jsx)(y.Heading,{id:R,as:P,slot:"heading",children:c}),D]})});return a?(0,h.jsx)(I.RevealInView,{amountInView:"75vh",asScopeParent:!0,children:E}):E};var D=e.i(251677),C=e.i(736797),R=e.i(865172),q=e.i(732545);e.i(510193);var E=e.i(145025),N=e.i(26627),A=e.i(845582),_=e.i(69406),H=e.i(290571);let j=/\r\n|[\n\r]/g;function w(e,t){let a=0,i=1;for(let r of e.body.matchAll(j)){if("number"==typeof r.index||function(e){if(!e)throw Error("Unexpected invariant triggered.")}(!1),r.index>=t)break;a=r.index+r[0].length,i+=1}return{line:i,column:t+1-a}}function L(e,t){let a=e.locationOffset.column-1,i="".padStart(a)+e.body,r=t.line-1,n=e.locationOffset.line-1,o=t.line+n,s=1===t.line?a:0,l=t.column+s,d=`${e.name}:${o}:${l}
2`,c=i.split(/\r\n|[\n\r]/g),u=c[r];if(u.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<u.length;e+=80)t.push(u.slice(e,e+80));return d+W([[`${o} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return d+W([[`${o-1} |`,c[r-1]],[`${o} |`,u],["|","^".padStart(l)],[`${o+1} |`,c[r+1]]])}function W(e){let t=e.filter(([e,t])=>void 0!==t),a=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(a)+(t?" "+t:"")).join("\n")}class O extends Error{constructor(e,...t){var a,i,r;const{nodes:n,source:o,positions:s,path:l,originalError:d,extensions:c}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=d?d:void 0,this.nodes=$(Array.isArray(n)?n:n?[n]:void 0);const u=$(null==(a=this.nodes)?void 0:a.map(e=>e.loc).filter(e=>null!=e));this.source=null!=o?o:null==u||null==(i=u[0])?void 0:i.source,this.positions=null!=s?s:null==u?void 0:u.map(e=>e.start),this.locations=s&&o?s.map(e=>w(o,e)):null==u?void 0:u.map(e=>w(e.source,e.start));const h=!function(e){return"object"==typeof e&&null!==e}(null==d?void 0:d.extensions)||null==d?void 0:d.extensions;this.extensions=null!=(r=null!=c?c:h)?r:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,O):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let a of this.nodes){var t;a.loc&&(e+="\n\n"+L((t=a.loc).source,w(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+L(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function $(e){return void 0===e||0===e.length?void 0:e}function U(e,t,a){return new O(`Syntax Error: ${a}`,{source:e,positions:[t]})}class V{constructor(e,t,a){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=a}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class B{constructor(e,t,a,i,r,n){this.kind=e,this.start=t,this.end=a,this.line=i,this.column=r,this.value=n,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}function M(e){return e>=48&&e<=57}function G(e){return e>=97&&e<=122||e>=65&&e<=90}function F(e){return G(e)||95===e}(t=l||(l={})).QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription",(a=d||(d={})).QUERY="QUERY",a.MUTATION="MUTATION",a.SUBSCRIPTION="SUBSCRIPTION",a.FIELD="FIELD",a.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",a.FRAGMENT_SPREAD="FRAGMENT_SPREAD",a.INLINE_FRAGMENT="INLINE_FRAGMENT",a.VARIABLE_DEFINITION="VARIABLE_DEFINITION",a.SCHEMA="SCHEMA",a.SCALAR="SCALAR",a.OBJECT="OBJECT",a.FIELD_DEFINITION="FIELD_DEFINITION",a.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",a.INTERFACE="INTERFACE",a.UNION="UNION",a.ENUM="ENUM",a.ENUM_VALUE="ENUM_VALUE",a.INPUT_OBJECT="INPUT_OBJECT",a.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",a.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION",(i=c||(c={})).NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="Str
2ingValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.DIRECTIVE_EXTENSION="DirectiveExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",i.TYPE_COORDINATE="TypeCoordinate",i.MEMBER_COORDINATE="MemberCoordinate",i.ARGUMENT_COORDINATE="ArgumentCoordinate",i.DIRECTIVE_COORDINATE="DirectiveCoordinate",i.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",(r=u||(u={})).SOF="<SOF>",r.EOF="<EOF>",r.BANG="!",r.DOLLAR="$",r.AMP="&",r.PAREN_L="(",r.PAREN_R=")",r.DOT=".",r.SPREAD="...",r.COLON=":",r.EQUALS="=",r.AT="@",r.BRACKET_L="[",r.BRACKET_R="]",r.BRACE_L="{",r.PIPE="|",r.BRACE_R="}",r.NAME="Name",r.INT="Int",r.FLOAT="Float",r.STRING="String",r.BLOCK_STRING="BlockString",r.COMMENT="Comment";class z{constructor(e){const t=new B(u.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==u.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let a=e.source.body,i=a.length,r=t;for(;r<i;){let t=a.charCodeAt(r);switch(t){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:10===a.charCodeAt(r+1)?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return function(e,t){let a=e.source.body,i=a.length,r=t+1;for(;r<i;){let e=a.charCodeAt(r);if(10===e||13===e)break;if(K(e))++r;else if(Q(a,r))r+=2;else break}return Z(e,u.COMMENT,t,r,a.slice(t+1,r))}(e,r);case 33:return Z(e,u.BANG,r,r+1);case 36:return Z(e,u.DOLLAR,r,r+1);case 38:return Z(e,u.AMP,r,r+1);case 40:return Z(e,u.PAREN_L,r,r+1);case 41:return Z(e,u.PAREN_R,r,r+1);case 46:if(46===a.charCodeAt(r+1)&&46===a.charCodeAt(r+2))return Z(e,u.SPREAD,r,r+3);break;case 58:return Z(e,u.COLON,r,r+1);case 61:return Z(e,u.EQUALS,r,r+1);case 64:return Z(e,u.AT,r,r+1);case 91:return Z(e,u.BRACKET_L,r,r+1);case 93:return Z(e,u.BRACKET_R,r,r+1);case 123:return Z(e,u.BRACE_L,r,r+1);case 124:return Z(e,u.PIPE,r,r+1);case 125:return Z(e,u.BRACE_R,r,r+1);case 34:if(34===a.charCodeAt(r+1)&&34===a.charCodeAt(r+2))return function(e,t){let a=e.source.body,i=a.length,r=e.lineStart,n=t+3,o=n,s="",l=[];for(;n<i;){let i=a.charCodeAt(n);if(34===i&&34===a.charCodeAt(n+1)&&34===a.charCodeAt(n+2)){s+=a.slice(o,n),l.push(s);let i=Z(e,u.BLOCK_STRING,t,n+3,(function(e){var t,a;let i=Number.MAX_SAFE_INTEGER,r=null,n=-1;for(let t=0;t<e.length;++t){let o=e[t],s=function(e){var t;let a=0;for(;a<e.length&&(9===(t=e.charCodeAt(a))||32===t);)++a;return a}(o);s!==o.length&&(r=null!=(a=r)?a:t,n=t,0!==t&&s<i&&(i=s))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!=(t=r)?t:0,n+1)})(l).join("\n"));return e.line+=l.length-1,e.lineStart=r,i}if(92===i&&34===a.charCodeAt(n+1)&&34===a.charCodeAt(n+2)&&34===a.charCodeAt(n+3)){s+=a.slice(o,n),o=n+1,n+=4;continue}if(10===i||13===i){s+=a.slice(o,n),l.push(s),13===i&&10===a.charCodeAt(n+1)?n+=2:++n,s="",o=n,r=n;continue}if(K(i))++n;else if(Q(a,n))n+=2;else throw U(e.source,n,`Invalid character within String: ${J(e,n)}.`)}throw U(e.source,n,"Unterminated string.")}(e,r);return function(e,t){let a=e.source.body,i=a.length,r=t+1,n=r,o="";for(;r<i;
2){let i=a.charCodeAt(r);if(34===i)return o+=a.slice(n,r),Z(e,u.STRING,t,r+1,o);if(92===i){o+=a.slice(n,r);let t=117===a.charCodeAt(r+1)?123===a.charCodeAt(r+2)?function(e,t){let a=e.source.body,i=0,r=3;for(;r<12;){let e=a.charCodeAt(t+r++);if(125===e){if(r<5||!K(i))break;return{value:String.fromCodePoint(i),size:r}}if((i=i<<4|ea(e))<0)break}throw U(e.source,t,`Invalid Unicode escape sequence: "${a.slice(t,t+r)}".`)}(e,r):function(e,t){let a=e.source.body,i=et(a,t+2);if(K(i))return{value:String.fromCodePoint(i),size:6};if(Y(i)&&92===a.charCodeAt(t+6)&&117===a.charCodeAt(t+7)){let e=et(a,t+8);if(X(e))return{value:String.fromCodePoint(i,e),size:12}}throw U(e.source,t,`Invalid Unicode escape sequence: "${a.slice(t,t+6)}".`)}(e,r):function(e,t){let a=e.source.body;switch(a.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw U(e.source,t,`Invalid character escape sequence: "${a.slice(t,t+2)}".`)}(e,r);o+=t.value,r+=t.size,n=r;continue}if(10===i||13===i)break;if(K(i))++r;else if(Q(a,r))r+=2;else throw U(e.source,r,`Invalid character within String: ${J(e,r)}.`)}throw U(e.source,r,"Unterminated string.")}(e,r)}if(M(t)||45===t)return function(e,t,a){let i=e.source.body,r=t,n=a,o=!1;if(45===n&&(n=i.charCodeAt(++r)),48===n){if(M(n=i.charCodeAt(++r)))throw U(e.source,r,`Invalid number, unexpected digit after 0: ${J(e,r)}.`)}else r=ee(e,r,n),n=i.charCodeAt(r);if(46===n&&(o=!0,n=i.charCodeAt(++r),r=ee(e,r,n),n=i.charCodeAt(r)),(69===n||101===n)&&(o=!0,(43===(n=i.charCodeAt(++r))||45===n)&&(n=i.charCodeAt(++r)),r=ee(e,r,n),n=i.charCodeAt(r)),46===n||F(n))throw U(e.source,r,`Invalid number, expected digit but got: ${J(e,r)}.`);return Z(e,o?u.FLOAT:u.INT,t,r,i.slice(t,r))}(e,r,t);if(F(t))return function(e,t){let a=e.source.body,i=a.length,r=t+1;for(;r<i;){var n;if(G(n=a.charCodeAt(r))||M(n)||95===n)++r;else break}return Z(e,u.NAME,t,r,a.slice(t,r))}(e,r);throw U(e.source,r,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":K(t)||Q(a,r)?`Unexpected character: ${J(e,r)}.`:`Invalid character: ${J(e,r)}.`)}return Z(e,u.EOF,i,i)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===u.COMMENT)return e}}function K(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Q(e,t){return Y(e.charCodeAt(t))&&X(e.charCodeAt(t+1))}function Y(e){return e>=55296&&e<=56319}function X(e){return e>=56320&&e<=57343}function J(e,t){let a=e.source.body.codePointAt(t);if(void 0===a)return u.EOF;if(a>=32&&a<=126){let e=String.fromCodePoint(a);return'"'===e?"'\"'":`"${e}"`}return"U+"+a.toString(16).toUpperCase().padStart(4,"0")}function Z(e,t,a,i,r){let n=e.line,o=1+a-e.lineStart;return new B(t,a,i,n,o,r)}function ee(e,t,a){if(!M(a))throw U(e.source,t,`Invalid number, expected digit but got: ${J(e,t)}.`);let i=e.source.body,r=t+1;for(;M(i.charCodeAt(r));)++r;return r}function et(e,t){return ea(e.charCodeAt(t))<<12|ea(e.charCodeAt(t+1))<<8|ea(e.charCodeAt(t+2))<<4|ea(e.charCodeAt(t+3))}function ea(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ei(e,t){if(!e)throw Error(t)}function er(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){let a;if(null===e)return"null";if(t.includes(e))return"[Circular]";let i=[...t,e];if("function"==typeof e.toJSON){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:er(t,i)}else if(Array.isArray(e)){var r,n,o=e,s=i;if(0===o.length)return"[]";if(s.length>2)return"[Array]";let t=Math.min(10,o.length),a=o.length-t,l=[];for(let e=0;e<t;++e)l.push(er(o[e],s));return 1===a?l.push("... 1 more item"):a>1&&l.push(`... ${a} more items`),"["+l.join(", ")+"]"}return r=e,n=i,0===(a=Object.entries(r)).length?"{}":n.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(r)+"]":"{ "+a.map(([e,t])=>e+": "+er(t,n)).join(", ")+" }"}(e,t);default:return String(e)}}let en=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;
2if("object"==typeof e&&null!==e){var a;let i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(a=e.constructor)?void 0:a.name)){let t=er(e,[]);throw Error(`Cannot use ${i} "${t}" from another module or realm.
3
4Ensure that there is only one instance of "graphql" in the node_modules
5directory. If different versions of "graphql" are the dependencies of other
6relied on modules, use "resolutions" to ensure only one version is installed.
7
8https://yarnpkg.com/en/docs/selective-version-resolutions
9
10Duplicate "graphql" modules cannot be used at the same time since different
11versions may have different capabilities and behavior. The data from one
12version used in the function from another could produce confusing and
13spurious results.`)}}return!1};class eo{constructor(e,t="GraphQL request",a={line:1,column:1}){"string"==typeof e||ei(!1,`Body must be a string. Received: ${function(e){return er(e,[])}(e)}.`),this.body=e,this.name=t,this.locationOffset=a,this.locationOffset.line>0||ei(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||ei(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class es{constructor(e,t={}){const{lexer:a,...i}=t;if(a)this._lexer=a;else{const t=!function(e){return en(e,eo)}(e)?new eo(e):e;this._lexer=new z(t)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(u.NAME);return this.node(e,{kind:c.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:c.DOCUMENT,definitions:this.many(u.SOF,this.parseDefinition,u.EOF)})}parseDefinition(){if(this.peek(u.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===u.BRACE_L)throw U(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===u.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw U(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(u.BRACE_L))return this.node(t,{kind:c.OPERATION_DEFINITION,operation:l.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let a=this.parseDescription(),i=this.parseOperationType();return this.peek(u.NAME)&&(e=this.parseName()),this.node(t,{kind:c.OPERATION_DEFINITION,operation:i,description:a,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(u.NAME);switch(e.value){case"query":return l.QUERY;case"mutation":return l.MUTATION;case"subscription":return l.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(u.PAREN_L,this.parseVariableDefinition,u.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:c.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(u.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(u.DOLLAR),this.node(e,{kind:c.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:c.SELECTION_SET,selections:this.many(u.BRACE_L,this.parseSelection,u.BRACE_R)})}parseSelection(){return this.peek(u.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,a=this._lexer.token,i=this.parseName();return this.expectOptionalToken(u.COLON)?(e=i,t=this.parseName()):t=i,this.node(a,{kind:c.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(u.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.PAREN_L,t,u.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,a=this.parseName();return this.expectToken(u.COLON),this.node(t,{kind:c.ARGUMENT,name:a,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(u.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(u.NAME)?this.node(e,{kind:c.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:c.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:c.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:c.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case u.BRACKET_L:return this.parseList(e);case u.BRACE_L:return this.parseObject(e);case u.INT:return this.advanceLexer(),this.node(t,{kind:c.INT,value:t.value});case u.FLOAT:return this.advanceLexer(),this.node(t,{kind:c.FLOAT,value:t.value});case u.STRING:case u.BLOCK_STRING:return this.parseStringLiteral();case u.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:c.BOOLEAN,value:!0});case"false":return this.node(t,{kind:c.BOOLEAN,value:!1});case"null":return this.node(t,{kind:c.NULL});default:return this.node(t,{kind:c.ENUM,value:t.value})}case u.DOLLAR:if(e){if(this.expectToken(u.DOLLAR),this._lexer.token.kind===u.NAME){let e=this._lexer.token.value;throw U(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:c.STRING,value:e.value,block:e.kind===u.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:c.LIST,values:this.any(u.BRACKET_L,t,u.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:c.OBJECT,fields:this.any(u.BRACE_L,t,u.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,a=this.parseName();return this.expectToken(u.COLON),this.node(t,{kind:c.OBJECT_FIELD,name:a,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(u.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(u.AT),this.node(t,{kind:c.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(u.BRACKET_L)){let a=this.parseTypeReference();this.expectToken(u.BRACKET_R),e=this.node(t,{kind:c.LIST_TYPE,type:a})}else e=this.parseNamedType();return this.expectOptionalToken(u.BANG)?this.node(t,{kind:c.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:c.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.STRING)||this.peek(u.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let a=this.parseConstDirectives(),i=this.many(u.BRACE_L,this.parseOperationTypeDefinition,u.BRACE_R);return this.node(e,{kind:c.SCHEMA_DEFINITION,description:t,directives:a,operationTypes:i})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(u.COLON);let a=this.parseNamedType();return this.node(e,{kind:c.OPERATION_TYPE_DEFINITION,operation:t,type:a})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let a=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:c.SCALAR_TYPE_DEFINITION,description:t,name:a,directives:i})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let a=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),n=this.parseFieldsDefinition();return this.node(e,{kind:c.OBJECT_TYPE_DEFINITION,description:t,name:a,interfaces:i,directives:r,fields:n})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.BRACE_L,this.parseFieldDefinition,u.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),a=this.parseName(),i=this.parseArgumentDefs();this.expectToken(u.COLON);let r=this.parseTypeReference(),n=this.parseConstDirectives();return this.node(e,{kind:c.FIELD_DEFINITION,description:t,name:a,arguments:i,type:r,directives:n})}parseArgumentDefs(){return this.optionalMany(u.PAREN_L,this.parseInputValueDef,u.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,a=this.parseDescription(),i=this.parseName();this.expectToken(u.COLON);let r=this.parseTypeReference();this.expectOptionalToken(u.EQUALS)&&(e=this.parseConstValueLiteral());let n=this.parseConstDirectives();return this.node(t,{kind:c.INPUT_VALUE_DEFINITION,description:a,name:i,type:r,defaultValue:e,directives:n})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let a=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),n=this.parseFieldsDefinition();return this.node(e,{kind:c.INTERFACE_TYPE_DEFINITION,description:t,name:a,interfaces:i,directives:r,fields:n})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let a=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:c.UNION_TYPE_DEFINITION,description:t,name:a,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(u.EQUALS)?this.delimitedMany(u.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let a=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:c.ENUM_TYPE_DEFINITION,description:t,name:a,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(u.BRACE_L,this.parseEnumValueDefinition,u.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),a=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:c.ENUM_VALUE_DEFINITION,description:t,name:a,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw U(this._lexer.source,this._lexer.token.start,`${el(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let a=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:c.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:a,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(u.BRACE_L,this.parseInputValueDef,u.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===u.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),a=this.optionalMany(u.BRACE_L,this.parseOperationTypeDefinition,u.BRACE_R);if(0===t.length&&0===a.length)throw this.unexpected();return this.node(e,{kind:c.SCHEMA_EXTENSION,directives:t,operationTypes:a})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),a=this.parseConstDirectives();if(0===a.length)throw this.unexpected();return this.node(e,{kind:c.SCALAR_TYPE_EXTENSION,name:t,directives:a})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),a=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===a.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:c.OBJECT_TYPE_EXTENSION,name:t,interfaces:a,directives:i,fields:r})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),a=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===a.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:c.INTERFACE_TYPE_EXTENSION,name:t,interfaces:a,directives:i,fields:r})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),a=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===a.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:c.UNION_TYPE_EXTENSION,name:t,directives:a,types:i})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),a=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===a.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:c.ENUM_TYPE_EXTENSION,name:t,directives:a,values:i})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),a=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===a.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:c.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:a,fields:i})}parseDirectiveDefinitionExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(u.AT);let t=this.parseName(),a=this.parseConstDirectives();if(0===a.length)throw this.unexpected();return this.node(e,{kind:c.DIRECTIVE_EXTENSION,name:t,directives:a})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(u.AT);let a=this.parseName(),i=this.parseArgumentDefs(),r=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],n=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.n
13ode(e,{kind:c.DIRECTIVE_DEFINITION,description:t,name:a,arguments:i,directives:r,repeatable:n,locations:o})}parseDirectiveLocations(){return this.delimitedMany(u.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(d,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,a=this._lexer.token,i=this.expectOptionalToken(u.AT),r=this.parseName();return(!i&&this.expectOptionalToken(u.DOT)&&(e=this.parseName()),(i||e)&&this.expectOptionalToken(u.PAREN_L)&&(t=this.parseName(),this.expectToken(u.COLON),this.expectToken(u.PAREN_R)),i)?t?this.node(a,{kind:c.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:t}):this.node(a,{kind:c.DIRECTIVE_COORDINATE,name:r}):e?t?this.node(a,{kind:c.ARGUMENT_COORDINATE,name:r,fieldName:e,argumentName:t}):this.node(a,{kind:c.MEMBER_COORDINATE,name:r,memberName:e}):this.node(a,{kind:c.TYPE_COORDINATE,name:r})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new V(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw U(this._lexer.source,t.start,`Expected ${ed(e)}, found ${el(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===u.NAME&&t.value===e)this.advanceLexer();else throw U(this._lexer.source,t.start,`Expected "${e}", found ${el(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===u.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return U(this._lexer.source,t.start,`Unexpected ${el(t)}.`)}any(e,t,a){this.expectToken(e);let i=[];for(;!this.expectOptionalToken(a);)i.push(t.call(this));return i}optionalMany(e,t,a){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(a))return e}return[]}many(e,t,a){this.expectToken(e);let i=[];do i.push(t.call(this));while(!this.expectOptionalToken(a))return i}delimitedMany(e,t){this.expectOptionalToken(e);let a=[];do a.push(t.call(this));while(this.expectOptionalToken(e))return a}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==u.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw U(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function el(e){let t=e.value;return ed(e.kind)+(null!=t?` "${t}"`:"")}function ed(e){return e===u.BANG||e===u.DOLLAR||e===u.AMP||e===u.PAREN_L||e===u.PAREN_R||e===u.DOT||e===u.SPREAD||e===u.COLON||e===u.EQUALS||e===u.AT||e===u.BRACKET_L||e===u.BRACKET_R||e===u.BRACE_L||e===u.PIPE||e===u.BRACE_R?`"${e}"`:e}var ec=new Map,eu=new Map,eh=!0,em=!1;function ep(e){return e.replace(/[\s,]+/g," ").trim()}function eg(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach(function(t,a){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[a+1]}),function(e){var t=ep(e);if(!ec.has(t)){let l,d;var a,i,r,n,o,s=(Object.defineProperty(d=(l=new es(e,{experimentalFragmentVariables:em,allowLegacyFragmentVariables:em,experimentalFragmentArguments:em})).parseDocument(),"tokenCount",{enumerable:!1,value:l.tokenCount}),d);if(!s||"Document"!==s.kind)throw Error("Not a valid GraphQL document.");ec.set(t,((n=new Set((a=new Set,i=[],s.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,r=e.name.value,n=ep((t=e.loc).source.body.substring(t.start,t.end)),o=eu.get(r);o&&!o.has(n)?eh&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||eu.set(r,o=new Set),o.add(n),a.has(n)||(a.add(n),i.push(e))}else i.push(e)}),r=(0,H.__assign)((0,H.__assign)({},s),{definitions:i})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var a=e[t];a&&"object"==typeof a&&n.add(a)})}),(o=r.loc)&&(delete o.startToken,delete o.endToken),r))}return ec.get(t)}(i)}var ev=eg;(n=eg||(eg={})).gql=ev,n.resetCaches=function(){ec.clear(),eu.clear()},n.disableFragmentWarnings=function(){eh=!1},n.enableExperimentalFragmentVariables=function(){em=!0},n.disableExperimentalFragmentVariables=function(){em=!1},eg.default=eg;let ef=eg;var eT=((o={}).AiGenerated="AI_GENERATED",o.AiModified="AI_MODIFIED",o),ey=((s={}).AlgoliaSlider="ALGOLIA_SLIDER",s.LastViewedSlider="LAST_VIEWED_SLIDER",s.ProductSlider="PRODUCT_SLIDER",s);let eI=ef`
14    fragment ShopDomainComponentHeadline on ShopDomainComponentHeadline {
15  id
16  text
17  tag
18  size
19  icon
20}
21    `,eP=ef`
22    fragment ShopDomainComponentLink on ShopDomainComponentLink {
23  __typename
24  id
25  internalName
26  linkToMedia {
27    url
28    title
29  }
30  type
31  theme
32  icon
33  media {
34    url
35    title
36    description
37    height
38    width
39  }
40  newWindow
41  resolvedLinkV2 {
42    name
43    slug
44  }
45  contentPageId
46  text
47  subText
48}
49    `,eS=ef`
50    fragment ShopDomainComponentListLink on ShopDomainComponentListLink {
51  id
52  headlineListLink: headline {
53    ...ShopDomainComponentHeadline
54  }
55  itemsListLink: items {
56    ...ShopDomainComponentLink
57  }
58}
59    ${eI}
60${eP}`,ex=ef`
61    fragment ShopDomainComponentNavigationInline on ShopDomainComponentNavigationInline {
62  id
63  headlineNavigationInline: headline {
64    ...ShopDomainComponentHeadline
65  }
66  layout
67  itemsNavigationInline: items {
68    ...ShopDomainComponentLink
69  }
70}
71    ${eI}
72${eP}`,eb=ef`
73    fragment ShopDomainProductPrices on ShopDomainProductPrices {
74  net {
75    amount
76    fractionDigits
77    currency
78    isTaxIncluded
79  }
80  netDiscounted {
81    amount
82    fractionDigits
83    currency
84  }
85  gross {
86    amount
87    fractionDigits
88    currency
89    isTaxIncluded
90  }
91  grossDiscounted {
92    amount
93    fractionDigits
94    currency
95    isTaxIncluded
96  }
97  basePrice {
98    amount
99    fractionDigits
100    currency
101    unit
102    variantUnit
103  }
104}
105    `,ek=ef`
106    fragment ShopDomainProductLight on ShopDomainProduct {
107  key
108  name
109  slug
110  productType {
111    name
112  }
113  brand
114  facetBranch
115  isVisible
116  variants {
117    sku
118    description {
119      short
120      long
121    }
122    energy {
123      grade
124      label
125    }
126    isVisible
127    flags {
128      isMainVariant
129      isComingSoon
130      isDealerExclusive
131      isPCAExclusive
132      isSoldOut
133      isPreorder
134    }
135    availability {
136      isOnStock
137      availableQuantity
138    }
139    labels {
140      key
141      name
142    }
143    prices {
144      ...ShopDomainProductPrices
145    }
146    images {
147      tile {
148        url
149        alt
150      }
151    }
152    attributes {
153      controlContainer {
154        name
155        values {
156          label
157          value
158        }
159      }
160    }
161  }
162}
163    ${eb}`,eD=ef`
164    fragment ShopDomainComponentProductSliderEcoSystem on ShopDomainComponentProductSlider {
165  __typename
166  id
167  internalName
168  type
169  description
170  headline
171  headlineTag
172  link {
173    ...ShopDomainComponentLink
174  }
175  products {
176    ...ShopDomainProductLight
177  }
178  algoliaRecos {
179    trendingProducts {
180      ...ShopDomainProductLight
181    }
182  }
183}
184    ${eP}
185${ek}`,eC=ef`
186    fragment ShopDomainComponentTrustElement on ShopDomainComponentTrustElement {
187  __typename
188  id
189  items {
190    id
191    headline
192    subline
193    icon
194  }
195}
196    `,eR=ef`
197    fragment ContentfulMetadata on ContentfulMetadata {
198  isVisible(country: $country)
199  tags {
200    id
201  }
202}
203    `,eq=ef`
204    fragment ComponentLinkWithProductData on ComponentLink {
205  __typename
206  sys {
207    id
208  }
209  contentfulMetadata {
210    ...ContentfulMetadata
211  }
212  linkToContentPage {
213    __typename
214    sys {
215      id
216    }
217  }
218  linkToCategoryPage
219  newWindow
220  resolvedLink(locale: $locale, country: $country, currency: $currency) {
221    slug
222    name
223    masterVariant {
224      sku
225    }
226  }
227  media {
228    url
229    title
230    description
231    height
232    width
233  }
234  productDataV2(locale: $locale, country: $country, currency: $currency) {
235    ...ShopDomainProductLight
236  }
237  subText
238}
239    ${eR}
240${ek}`,eE=ef`
241    fragment ComponentLink on ComponentLink {
242  __typename
243  sys {
244    id
245  }
246  internalName
247  contentfulMetadata {
248    ...ContentfulMetadata
249  }
250  linkToContentPage {
251    __typename
252    sys {
253      id
254    }
255  }
256  linkToCategoryPage
257  linkToMedia {
258    url
259    title
260  }
261  type
262  theme
263  icon
264  media {
265    url
266    title
267    description
268    height
269    width
270  }
271  newWindow
272  resolvedLink(locale: $locale, country: $country, currency: $currency) {
273    slug
274    name
275    masterVariant {
276      sku
277    }
278  }
279}
280    ${eR}`,eN=ef`
281    fragment ComponentMultipleHotSpots on ComponentMultipleHotSpots {
282  __typename
283  sys {
284    id
285  }
286  internalName
287  image {
288    height
289    width
290    description
291    url
292  }
293  linkSpotsCollection(limit: 10) {
294    items {
295      sys {
296        id
297      }
298      axisX
299      axisY
300      link {
301        ...ComponentLinkWithProductData
302      }
303    }
304  }
305  descriptionSpotsCollection(limit: 10) {
306    items {
307      sys {
308        id
309      }
310      axisX
311      axisY
312      title
313      description
314    }
315  }
316  link {
317    ...ComponentLink
318  }
319  initialScrollPercentage
320}
321    ${eq}
322${eE}`,eA=ef`
323    fragment AlgoliaLimitations on AlgoliaLimitations {
324  internalName
325  commerceCategory
326  vendors
327  priceMin
328  priceMax
329}
330    `,e_=ef`
331    fragment ComponentProductSlider on ComponentProductSlider {
332  __typename
333  sys {
334    id
335  }
336  internalName
337  headline
338  headlineTag
339  description
340  commerceProducts
341  productDataV2(locale: $locale, country: $country, currency: $currency) {
342    ...ShopDomainProductLight
343  }
344  link {
345    ...ComponentLink
346  }
347  type
348  products(locale: $locale)
349  limitations {
350    ...AlgoliaLimitations
351  }
352}
353    ${ek}
354${eE}
355${eA}`,eH=ef`
356    fragment ComponentAnnouncementBar on ComponentAnnouncementBar {
357  __typename
358  sys {
359    id
360  }
361  text
362  headline
363  iconName
364  content {
365    json
366  }
367}
368    `,ej=ef`
369    fragment FooterSection on ComponentFooterSection {
370  sys {
371    id
372  }
373  headline
374  headlineSize
375  subHeadline
376  horizontalOrientation
377  forceColumnBreak
378  linksCollection(limit: 9) {
379    items {
380      ...ComponentLink
381    }
382  }
383  showLegalDocuments
384}
385    ${eE}`,ew=ef`
386    fragment ComponentTrustElement on ComponentTrustElement {
387  __typename
388  sys {
389    id
390  }
391  itemsCollection(limit: 4) {
392    items {
393      sys {
394        id
395      }
396      headline
397      subheadline
398      iconName
399    }
400  }
401}
402    `,eL=ef`
403    fragment Footer on ComponentFooter {
404  sys {
405    id
406  }
407  sectionsCollection(limit: 9) {
408    items {
409      ...FooterSection
410    }
411  }
412  contentBelow {
413    json
414  }
415  trustElement {
416    ...ComponentTrustElement
417  }
418}
419    ${ej}
420${ew}`,eW=ef`
421    fragment Category on Category {
422  name
423  description
424  key
425  slug
426  googleProductCategoryId
427  showOnMarketplaces
428  alternateSlugs {
429    slug
430    locale
431    marketplace
432  }
433  breadcrumbs {
434    name
435    key
436    slug
437    isLast
438  }
439  categoryPath
440  slugsToRedirect
441  lastModifiedAt
442}
443    `,eO=ef`
444    fragment ShopDomainComponentImageWithFocalPoint on ShopDomainComponentImageWithFocalPoint {
445  __typename
446  image {
447    height
448    width
449    description
450    url
451    annotations {
452      type
453    }
454  }
455  focalPoint {
456    x
457    y
458  }
459}
460    `,e$=ef`
461    fragment ShopDomainComponentLinkTileV3 on ShopDomainComponentLinkTileV3 {
462  __typename
463  id
464  link {
465    ...ShopDomainComponentLink
466  }
467  focalPointImage {
468    ...ShopDomainComponentImageWithFocalPoint
469  }
470  background
471}
472    ${eP}
473${eO}`,eU=ef`
474    fragment ShopDomainComponentNavigationNode on ShopDomainComponentNavigationNode {
475  __typename
476  id
477  subLevelLink {
478    ...ShopDomainComponentLink
479  }
480  primaryLink {
481    ...ShopDomainComponentLink
482  }
483  entry {
484    ...ShopDomainComponentLink
485  }
486  content {
487    ...ShopDomainComponentLinkTileV3
488  }
489  nodes {
490    __typename
491    id
492    subLevelLink {
493      ...ShopDomainComponentLink
494    }
495    primaryLink {
496      ...ShopDomainComponentLink
497    }
498    entry {
499      ...ShopDomainComponentLink
500    }
501    content {
502      ...ShopDomainComponentLinkTileV3
503    }
504    nodes {
505      __typename
506      id
507      subLevelLink {
508        ...ShopDomainComponentLink
509      }
510      primaryLink {
511        ...ShopDomainComponentLink
512      }
513      entry {
514        ...ShopDomainComponentLink
515      }
516      content {
517        ...ShopDomainComponentLinkTileV3
518      }
519      nodes {
520        __typename
521        id
522        subLevelLink {
523          ...ShopDomainComponentLink
524        }
525        primaryLink {
526          ...ShopDomainComponentLink
527        }
528        entry {
529          ...ShopDomainComponentLink
530        }
531        content {
532          ...ShopDomainComponentLinkTileV3
533        }
534      }
535    }
536  }
537}
538    ${eP}
539${e$}`,eV=ef`
540    fragment ShopDomainComponentLinkWithProductData on ShopDomainComponentLink {
541  __typename
542  internalName
543  queryParam
544  type
545  id
546  subText
547  resolvedLinkV2 {
548    name
549    slug
550  }
551  shopDomainProduct {
552    key
553    name
554    productType {
555      name
556    }
557    brand
558    variants {
559      sku
560      flags {
561        isMainVariant
562      }
563      images {
564        tile {
565          url
566          alt
567        }
568      }
569      prices {
570        ...ShopDomainProductPrices
571      }
572    }
573  }
574}
575    ${eb}`,eB=ef`
576    fragment ShopDomainComponentMultipleHotSpots on ShopDomainComponentMultipleHotSpots {
577  __typename
578  id
579  internalName
580  image {
581    height
582    width
583    description
584    url
585    annotations {
586      type
587    }
588  }
589  spotsLink {
590    id
591    axisX
592    axisY
593    link {
594      ...ShopDomainComponentLinkWithProductData
595    }
596  }
597  spotsDescription {
598    id
599    axisX
600    axisY
601    title
602    description
603  }
604  link {
605    ...ShopDomainComponentLink
606  }
607  initialScrollPercentage
608}
609    ${eV}
610${eP}`,eM=ef`
611    fragment ShopDomainVideoItem on ShopDomainVideoItem {
612  __typename
613  description
614  url
615  thumbnailUrl
616  thumbnailAltText
617  showMuteButton
618  mobileUrl
619  mobileThumbnailUrl
620  mobileThumbnailAltText
621  annotations {
622    type
623  }
624}
625    `,eG=ef`
626    fragment ShopDomainComponentContentTile on ShopDomainComponentContentTile {
627  __typename
628  id
629  headline
630  headlineTag
631  shimmerEffectOnHover
632  backgroundMedia {
633    ...ShopDomainComponentImageWithFocalPoint
634    ...ShopDomainVideoItem
635  }
636  tags
637  ctaLink {
638    ...ShopDomainComponentLink
639  }
640  ctaVariant
641  description
642  footerText
643}
644    ${eO}
645${eM}
646${eP}`,eF=ef`
647    fragment ShopDomainComponentSearchContentEntry on ShopDomainComponentSearchContentEntry {
648  __typename
649  id
650  alignment
651  content {
652    __typename
653    ...ShopDomainComponentMultipleHotSpots
654    ...ShopDomainComponentContentTile
655  }
656}
657    ${eB}
658${eG}`,ez=ef`
659    fragment ShopDomainComponentAccordion on ShopDomainComponentAccordion {
660  __typename
661  id
662  headline
663  headlineTag
664  textSize
665  disableAccordionView
666  body
667  assetLinks {
668    url
669    id
670    title
671  }
672}
673    `,eK=ef`
674    fragment ShopDomainComponentAccordionList on ShopDomainComponentAccordionList {
675  __typename
676  id
677  internalName
678  items {
679    ...ShopDomainComponentAccordion
680  }
681}
682    ${ez}`,eQ=ef`
683    fragment ShopDomainComponentBasicText on ShopDomainComponentBasicText {
684  __typename
685  id
686  title
687  bodyBasicText: body
688}
689    `,eY=ef`
690    fragment ShopDomainComponentCardSlider on ShopDomainComponentCardSlider {
691  __typename
692  id
693  headlineCardSlider: headline
694  headlineSizeCardSlider: headlineSize
695  headlineTagCardSlider: headlineTag
696  descriptionCardSlider: description
697  animation
698  cards {
699    ...ShopDomainComponentContentTile
700  }
701}
702    ${eG}`,eX=ef`
703    fragment ShopDomainComponentCompare on ShopDomainComponentCompare {
704  __typename
705  id
706  heading: headlineComponent {
707    ...ShopDomainComponentHeadline
708  }
709  productItems: items {
710    name
711    link
712    slug
713    thumbnail {
714      url
715      alt
716    }
717    prices {
718      ...ShopDomainProductPrices
719    }
720    attributes {
721      label
722      value
723    }
724  }
725}
726    ${eI}
727${eb}`,eJ=ef`
728    fragment ShopDomainComponentEmptyContent on ShopDomainComponentEmptyContent {
729  __typename
730  id
731  internalName
732  headlineEmptyContent: headline {
733    ...ShopDomainComponentHeadline
734  }
735  icon
736  descriptionEmptyContent: description
737  descriptionTag
738  items {
739    ...ShopDomainComponentLink
740  }
741}
742    ${eI}
743${eP}`,eZ=ef`
744    fragment ShopDomainComponentExtendedText on ShopDomainComponentExtendedText {
745  __typename
746  id
747  alignment
748  bodyExtendedText: body
749  headlineExtendedText: headline
750  internalName
751  headlineTag
752  cta {
753    ...ShopDomainComponentLink
754  }
755  invertedCta {
756    ...ShopDomainComponentLink
757  }
758  link {
759    ...ShopDomainComponentLink
760  }
761}
762    ${eP}`,e0=ef`
763    fragment ShopDomainComponentFeaturedText on ShopDomainComponentFeaturedText {
764  __typename
765  id
766  alignment
767  body
768  link {
769    ...ShopDomainComponentLink
770  }
771}
772    ${eP}`,e1=ef`
773    fragment ShopDomainComponentImageGallery on ShopDomainComponentImageGallery {
774  __typename
775  id
776  images {
777    ...ShopDomainComponentImageWithFocalPoint
778  }
779}
780    ${eO}`,e2=ef`
781    fragment ShopDomainComponentImageSlider on ShopDomainComponentImageSlider {
782  __typename
783  id
784  slidesPerView
785  items {
786    ...ShopDomainComponentImageWithFocalPoint
787  }
788}
789    ${eO}`,e4=ef`
790    fragment ShopDomainComponentParallaxTextImage on ShopDomainComponentParallaxTextImage {
791  __typename
792  id
793  alignText
794  headlineParallaxTextImage: headline
795  headlineTag
796  items {
797    ...ShopDomainComponentImageWithFocalPoint
798  }
799  bodyParallaxTextImage: body
800  cta {
801    ...ShopDomainComponentLink
802  }
803  invertedCta {
804    ...ShopDomainComponentLink
805  }
806  link {
807    ...ShopDomainComponentLink
808  }
809}
810    ${eO}
811${eP}`,e5=ef`
812    fragment ShopDomainComponentProductFocusSliderItem on ShopDomainComponentProductFocusSliderItem {
813  __typename
814  id
815  image {
816    height
817    width
818    description
819    url
820    annotations {
821      type
822    }
823  }
824  link {
825    ...ShopDomainComponentLink
826  }
827  prices {
828    ...ShopDomainProductPrices
829  }
830}
831    ${eP}
832${eb}`,e3=ef`
833    fragment ShopDomainComponentProductFocusSlider on ShopDomainComponentProductFocusSlider {
834  __typename
835  id
836  headlineFocusSlider: headline
837  headlineSize
838  headlineTag
839  items {
840    ...ShopDomainComponentProductFocusSliderItem
841  }
842}
843    ${e5}`,e6=ef`
844    fragment ShopDomainComponentProductSlider on ShopDomainComponentProductSlider {
845  __typename
846  id
847  internalName
848  type
849  description
850  headline
851  headlineTag
852  link {
853    ...ShopDomainComponentLink
854  }
855  limitations {
856    internalName
857    vendors
858    priceMax
859    priceMin
860    commerceCategory
861  }
862  products {
863    ...ShopDomainProductLight
864  }
865  pinProductsKeys
866}
867    ${eP}
868${ek}`,e7=ef`
869    fragment ShopDomainComponentSeoTextBlockSection on ShopDomainComponentSeoTextBlockSection {
870  __typename
871  id
872  headline
873  headlineTag
874  headlineSize
875  text
876}
877    `,e9=ef`
878    fragment ShopDomainComponentSeoTextBlock on ShopDomainComponentSeoTextBlock {
879  __typename
880  id
881  sections {
882    ...ShopDomainComponentSeoTextBlockSection
883  }
884}
885    ${e7}`,e8=ef`
886    fragment ShopDomainComponentSingleImage on ShopDomainComponentSingleImage {
887  __typename
888  id
889  isGrid
890  image {
891    ...ShopDomainComponentImageWithFocalPoint
892  }
893}
894    ${eO}`,te=ef`
895    fragment ShopDomainComponentSurveyQuestionLikertScale on ShopDomainComponentSurveyQuestionLikertScale {
896  __typename
897  id
898  question
899  range
900  startBoundLabel
901  endBoundLabel
902  textArea {
903    label
904    maxLength
905    placeholder
906  }
907}
908    `,tt=ef`
909    fragment ShopDomainComponentSurvey on ShopDomainComponentSurvey {
910  __typename
911  id
912  internalName
913  welcomeView {
914    headline
915    buttonLabel
916  }
917  summaryView {
918    headline
919    text
920    buttonLabel
921  }
922  questions {
923    ...ShopDomainComponentSurveyQuestionLikertScale
924  }
925}
926    ${te}`,ta=ef`
927    fragment ShopDomainComponentTeaserGrid on ShopDomainComponentTeaserGrid {
928  __typename
929  id
930  headlineComponent {
931    ...ShopDomainComponentHeadline
932  }
933  description
934  items {
935    ...ShopDomainComponentLinkTileV3
936  }
937}
938    ${eI}
939${e$}`,ti=ef`
940    fragment ShopDomainComponentTeaserTile on ShopDomainComponentTeaserTile {
941  __typename
942  id
943  internalName
944  headlineComponent {
945    ...ShopDomainComponentHeadline
946  }
947  link {
948    ...ShopDomainComponentLink
949  }
950  secondaryLink {
951    ...ShopDomainComponentLink
952  }
953  subline
954  focalPointImage {
955    ...ShopDomainComponentImageWithFocalPoint
956  }
957  focalPointImageMobile {
958    ...ShopDomainComponentImageWithFocalPoint
959  }
960  isHero
961  gradient
962  wordmarkTitle
963  contentAlignment
964  animation
965}
966    ${eI}
967${eP}
968${eO}`,tr=ef`
969    fragment ShopDomainComponentTextImage on ShopDomainComponentTextImage {
970  __typename
971  id
972  alignText
973  headline
974  headlineTag
975  image {
976    ...ShopDomainComponentImageWithFocalPoint
977  }
978  body
979  cta {
980    ...ShopDomainComponentLink
981  }
982  invertedCta {
983    ...ShopDomainComponentLink
984  }
985  link {
986    ...ShopDomainComponentLink
987  }
988  video {
989    ...ShopDomainVideoItem
990  }
991}
992    ${eO}
993${eP}
994${eM}`,tn=ef`
995    fragment ShopDomainComponentVideoHero on ShopDomainComponentVideoHero {
996  __typename
997  id
998  internalName
999  isHero
1000  gradient
1001  wordmarkTitle
1002  contentAlignment
1003  animationVideoHero: animation
1004  headlineVideoHero: headline {
1005    ...ShopDomainComponentHeadline
1006  }
1007  link {
1008    ...ShopDomainComponentLink
1009  }
1010  secondaryLink {
1011    ...ShopDomainComponentLink
1012  }
1013  video {
1014    ...ShopDomainVideoItem
1015  }
1016}
1017    ${eI}
1018${eP}
1019${eM}`,to=ef`
1020    fragment ShopDomainComponentVideoInline on ShopDomainComponentVideoInline {
1021  __typename
1022  id
1023  internalName
1024  video {
1025    ...ShopDomainVideoItem
1026  }
1027  isGrid
1028  isHero
1029}
1030    ${eM}`,ts=ef`
1031    fragment ShopDomainComponentVehicleRecommender on ShopDomainComponentVehicleRecommender {
1032  id
1033  internalName
1034  category {
1035    slug
1036    name
1037    key
1038  }
1039}
1040    `,tl=ef`
1041    fragment ShopDomainComponentSection on ShopDomainComponentSection {
1042  __typename
1043  id
1044  internalName
1045  theme
1046  userGroup
1047  content {
1048    __typename
1049    ...ShopDomainComponentAccordionList
1050    ...ShopDomainComponentBasicText
1051    ...ShopDomainComponentCardSlider
1052    ...ShopDomainComponentCompare
1053    ...ShopDomainComponentEmptyContent
1054    ...ShopDomainComponentExtendedText
1055    ...ShopDomainComponentFeaturedText
1056    ...ShopDomainComponentImageGallery
1057    ...ShopDomainComponentImageSlider
1058    ...ShopDomainComponentMultipleHotSpots
1059    ...ShopDomainComponentParallaxTextImage
1060    ...ShopDomainComponentProductFocusSlider
1061    ...ShopDomainComponentProductSlider
1062    ...ShopDomainComponentSeoTextBlock
1063    ...ShopDomainComponentSingleImage
1064    ...ShopDomainComponentSurvey
1065    ...ShopDomainComponentTeaserGrid
1066    ...ShopDomainComponentTeaserTile
1067    ...ShopDomainComponentTextImage
1068    ...ShopDomainComponentVideoHero
1069    ...ShopDomainComponentVideoInline
1070    ...ShopDomainComponentVehicleRecommender
1071  }
1072}
1073    ${eK}
1074${eQ}
1075${eY}
1076${eX}
1077${eJ}
1078${eZ}
1079${e0}
1080${e1}
1081${e2}
1082${eB}
1083${e4}
1084${e3}
1085${e6}
1086${e9}
1087${e8}
1088${tt}
1089${ta}
1090${ti}
1091${tr}
1092${tn}
1093${to}
1094${ts}`,td=ef`
1095    fragment ShopDomainContentPageContent on ShopDomainContentPageContent {
1096  __typename
1097  ...ShopDomainComponentAccordionList
1098  ...ShopDomainComponentBasicText
1099  ...ShopDomainComponentCardSlider
1100  ...ShopDomainComponentCompare
1101  ...ShopDomainComponentEmptyContent
1102  ...ShopDomainComponentExtendedText
1103  ...ShopDomainComponentFeaturedText
1104  ...ShopDomainComponentImageGallery
1105  ...ShopDomainComponentImageSlider
1106  ...ShopDomainComponentMultipleHotSpots
1107  ...ShopDomainComponentParallaxTextImage
1108  ...ShopDomainComponentProductFocusSlider
1109  ...ShopDomainComponentProductSlider
1110  ...ShopDomainComponentSection
1111  ...ShopDomainComponentSeoTextBlock
1112  ...ShopDomainComponentSingleImage
1113  ...ShopDomainComponentSurvey
1114  ...ShopDomainComponentTeaserGrid
1115  ...ShopDomainComponentTeaserTile
1116  ...ShopDomainComponentTextImage
1117  ...ShopDomainComponentVehicleRecommender
1118  ...ShopDomainComponentVideoHero
1119  ...ShopDomainComponentVideoInline
1120}
1121    ${eK}
1122${eQ}
1123${eY}
1124${eX}
1125${eJ}
1126${eZ}
1127${e0}
1128${e1}
1129${e2}
1130${eB}
1131${e4}
1132${e3}
1133${e6}
1134${tl}
1135${e9}
1136${e8}
1137${tt}
1138${ta}
1139${ti}
1140${tr}
1141${ts}
1142${tn}
1143${to}`,tc=ef`
1144    fragment ShopDomainFaqSchemaItem on ShopDomainFaqSchemaItem {
1145  type
1146  name
1147  acceptedAnswer {
1148    type
1149    text
1150  }
1151}
1152    `,tu=ef`
1153    fragment CountryGeoLocationContext on CountryGeoLocationContext {
1154  id
1155  defaultViewport {
1156    id
1157    center {
1158      id
1159      lat
1160      lng
1161    }
1162    zoom
1163  }
1164  measurementSystem
1165}
1166    `,th=ef`
1167    fragment PDPAccordionConfig on PdpAccordionConfig {
1168  sys {
1169    id
1170  }
1171  internalName
1172  headline
1173  attributesCollection(limit: 60) {
1174    items {
1175      attributeId
1176      type
1177    }
1178  }
1179}
1180    `,tm=ef`
1181    fragment ProductTypeAttributeConfig on ProductTypeAttributeConfig {
1182  sys {
1183    id
1184  }
1185  productTypeKey
1186  attributesCollection(limit: 20) {
1187    items {
1188      attributeName
1189      type
1190      sort
1191      orderedList
1192      showAlsoOneAttribute
1193    }
1194  }
1195}
1196    `,tp=ef`
1197    fragment PDPConfig on PdpConfig {
1198  accordionsCollection(limit: 40) {
1199    items {
1200      ...PDPAccordionConfig
1201    }
1202  }
1203  productTypeConfigsCollection(limit: 100) {
1204    items {
1205      ...ProductTypeAttributeConfig
1206    }
1207  }
1208  trustElement {
1209    ...ComponentTrustElement
1210  }
1211}
1212    ${th}
1213${tm}
1214${ew}`,tg=ef`
1215    fragment CookieConsentConfig on CookieConsentConfig {
1216  sys {
1217    id
1218  }
1219  consentType
1220  usercentricsSettingsId
1221  templatesCollection(limit: 10) {
1222    items {
1223      component
1224      id
1225    }
1226  }
1227}
1228    `,tv=ef`
1229    fragment ShopDomainAccordion on ShopDomainAccordion {
1230  headline
1231  id
1232  name
1233  attributes {
1234    name
1235    label
1236    type
1237    isEnum
1238    values {
1239      label
1240      value
1241    }
1242  }
1243}
1244    `,tf=ef`
1245    fragment ShopDomainProductVariant on ShopDomainProductVariant {
1246  sku
1247  description {
1248    short
1249    long
1250  }
1251  seo {
1252    description
1253    title
1254  }
1255  collectionCategoryKey
1256  energy {
1257    grade
1258    label
1259  }
1260  isVisible
1261  matchesAllModels
1262  matchesSpecificModels {
1263    label
1264    value
1265    name
1266  }
1267  labels {
1268    key
1269    name
1270  }
1271  availability {
1272    isOnStock
1273    availableQuantity
1274  }
1275  prices {
1276    ...ShopDomainProductPrices
1277  }
1278  flags {
1279    isMainVariant
1280    isComingSoon
1281    isDealerExclusive
1282    isPCAExclusive
1283    isSoldOut
1284    isPreorder
1285  }
1286  preOrder {
1287    time
1288    unit
1289  }
1290  images {
1291    og {
1292      url
1293      alt
1294    }
1295    gallery {
1296      url
1297      alt
1298    }
1299    tile {
1300      url
1301      alt
1302    }
1303  }
1304  producerInformation {
1305    name
1306    address {
1307      street
1308      city
1309      country
1310    }
1311    contactInformation {
1312      email
1313    }
1314  }
1315  safetyInstructions {
1316    hazardPictograms
1317    documents {
1318      name
1319      url
1320    }
1321  }
1322  attributes {
1323    accordions {
1324      ...ShopDomainAccordion
1325    }
1326    technicalDetails {
1327      ...ShopDomainAccordion
1328    }
1329    generalDetails {
1330      ...ShopDomainAccordion
1331    }
1332    controlContainer {
1333      name
1334      label
1335      isEnum
1336      values {
1337        label
1338        value
1339      }
1340    }
1341  }
1342  documents {
1343    dataSheet {
1344      url
1345      name
1346    }
1347  }
1348}
1349    ${eb}
1350${tv}`,tT=ef`
1351    fragment ShopDomainProduct on ShopDomainProduct {
1352  key
1353  name
1354  slug
1355  productType {
1356    name
1357    attributes {
1358      name
1359      label
1360    }
1361  }
1362  categories {
1363    key
1364    name
1365    isMainCategory
1366  }
1367  sizeChart {
1368    name
1369    url
1370  }
1371  shippingMethodDefault {
1372    description
1373  }
1374  availability
1375  breadcrumbs {
1376    name
1377    key
1378    slug
1379    isLast
1380  }
1381  brand
1382  facetBranch
1383  isVisible
1384  seo {
1385    title
1386    description
1387    keywords
1388    alternates {
1389      canonical
1390      languages {
1391        locale
1392        url
1393      }
1394    }
1395    robots {
1396      follow
1397      index
1398    }
1399  }
1400  documents {
1401    name
1402    type
1403    url
1404  }
1405  vehicleInformation {
1406    key
1407    name
1408    generations {
1409      key
1410      name
1411      derivatives {
1412        key
1413        name
1414      }
1415    }
1416  }
1417  controlContainerConfig {
1418    attributeName
1419    orderedList
1420    showAlsoOneAttribute
1421    sort
1422    type
1423  }
1424  variants {
1425    ...ShopDomainProductVariant
1426  }
1427}
1428    ${tf}`,ty=ef`
1429    fragment ShopDomainProductContent on ShopDomainProduct {
1430  seo {
1431    keywords
1432    robots {
1433      follow
1434      index
1435    }
1436  }
1437  variants {
1438    sku
1439    content {
1440      usps {
1441        id
1442        label
1443        icon
1444      }
1445    }
1446  }
1447  content {
1448    countdown {
1449      id
1450      releaseDate
1451    }
1452    modelViewerItem {
1453      id
1454      image
1455      model {
1456        url
1457      }
1458    }
1459    technicalSpecsLeadingImage {
1460      ...ShopDomainComponentImageWithFocalPoint
1461    }
1462    marketingSection {
1463      __typename
1464      ...ShopDomainComponentMultipleHotSpots
1465      ...ShopDomainComponentCompare
1466      ...ShopDomainComponentVideoInline
1467      ...ShopDomainComponentCardSlider
1468      ...ShopDomainComponentProductSlider
1469      ...ShopDomainComponentTextImage
1470      ...ShopDomainComponentImageGallery
1471      ...ShopDomainComponentBasicText
1472      ...ShopDomainComponentTeaserGrid
1473      ...ShopDomainComponentImageSlider
1474      ...ShopDomainComponentTeaserTile
1475      ...ShopDomainComponentParallaxTextImage
1476      ...ShopDomainComponentAccordionList
1477    }
1478  }
1479}
1480    ${eO}
1481${eB}
1482${eX}
1483${to}
1484${eY}
1485${e6}
1486${tr}
1487${e1}
1488${eQ}
1489${ta}
1490${e2}
1491${ti}
1492${e4}
1493${eK}`,tI=ef`
1494    fragment ShopDomainProductRouteFields on ShopDomainProduct {
1495  slug
1496  variants {
1497    sku
1498    isVisible
1499    flags {
1500      isMainVariant
1501    }
1502  }
1503}
1504    `;ef`
1505    query Categories($locale: String!) {
1506  categoriesV2(locale: $locale) {
1507    name
1508    key
1509    slug
1510    lastModifiedAt
1511  }
1512}
1513    `,ef`
1514    query CategoryByKey($key: String!, $locale: String!) {
1515  category(key: $key, locale: $locale) {
1516    ...Category
1517  }
1518}
1519    ${eW}`,ef`
1520    query CategoryBySlug($slug: String!, $locale: String!, $country: String!) {
1521  category(slug: $slug, locale: $locale, country: $country) {
1522    ...Category
1523  }
1524}
1525    ${eW}`,ef`
1526    query ShopDomainEcosystem($locale: String!, $country: String!, $currency: String!, $consumer: String!) {
1527  shopDomainEcosystem(
1528    locale: $locale
1529    country: $country
1530    currency: $currency
1531    consumer: $consumer
1532  ) {
1533    content {
1534      __typename
1535      id
1536      headline {
1537        ...ShopDomainComponentHeadline
1538      }
1539      content {
1540        ...ShopDomainComponentTeaserGrid
1541        ...ShopDomainComponentTeaserTile
1542        ...ShopDomainComponentVideoHero
1543        ...ShopDomainComponentProductSliderEcoSystem
1544      }
1545    }
1546  }
1547}
1548    ${eI}
1549${ta}
1550${ti}
1551${tn}
1552${eD}`,ef`
1553    query ShopDomainHeader($locale: String!, $country: String!, $currency: String!, $id: String, $isPreview: Boolean!) {
1554  shopDomainHeader(
1555    locale: $locale
1556    country: $country
1557    currency: $currency
1558    id: $id
1559    isPreview: $isPreview
1560  ) {
1561    __typename
1562    navigation {
1563      id
1564      items {
1565        ...ShopDomainComponentNavigationNode
1566      }
1567    }
1568  }
1569}
1570    ${eU}`,ef`
1571    query ShopDomainCartPage($slug: String!, $locale: String!, $country: String!, $currency: String!, $isPreview: Boolean!, $pageType: String) {
1572  shopDomainPage(
1573    slug: $slug
1574    locale: $locale
1575    country: $country
1576    currency: $currency
1577    isPreview: $isPreview
1578    pageType: $pageType
1579  ) {
1580    __typename
1581    id
1582    seo {
1583      title
1584      keywords
1585      description
1586      robots {
1587        index
1588        follow
1589      }
1590      alternates {
1591        canonical
1592        languages {
1593          url
1594          locale
1595        }
1596      }
1597    }
1598    ... on ShopDomainCartPage {
1599      __typename
1600      trustElement {
1601        ...ShopDomainComponentTrustElement
1602      }
1603      content {
1604        __typename
1605        ...ShopDomainComponentEmptyContent
1606      }
1607    }
1608  }
1609}
1610    ${eC}
1611${eJ}`,ef`
1612    query ShopDomainCategoryByKey($slug: String!, $categoryKey: String, $locale: String!, $country: String!, $currency: String!, $isPreview: Boolean!, $pageType: String) {
1613  shopDomainPage(
1614    slug: $slug
1615    categoryKey: $categoryKey
1616    locale: $locale
1617    country: $country
1618    currency: $currency
1619    isPreview: $isPreview
1620    pageType: $pageType
1621  ) {
1622    __typename
1623    id
1624    seo {
1625      title
1626      keywords
1627      description
1628      robots {
1629        index
1630        follow
1631      }
1632      alternates {
1633        canonical
1634        languages {
1635          url
1636          locale
1637        }
1638      }
1639    }
1640    ... on ShopDomainCategoryPage {
1641      __typename
1642      showSearch
1643      content {
1644        __typename
1645        ...ShopDomainComponentSeoTextBlock
1646        ...ShopDomainComponentSurvey
1647      }
1648      marketingContent {
1649        __typename
1650        ...ShopDomainComponentProductSlider
1651        ...ShopDomainComponentTeaserGrid
1652        ...ShopDomainComponentTeaserTile
1653      }
1654      searchContent {
1655        ...ShopDomainComponentSearchContentEntry
1656      }
1657    }
1658  }
1659}
1660    ${e9}
1661${tt}
1662${e6}
1663${ta}
1664${ti}
1665${eF}`,ef`
1666    query ShopDomainContentPageBySlug($slug: String!, $locale: String!, $country: String!, $currency: String!, $isPreview: Boolean!, $controlContainerAttributeNames: [String!]) {
1667  shopDomainPage(
1668    slug: $slug
1669    locale: $locale
1670    country: $country
1671    currency: $currency
1672    isPreview: $isPreview
1673    controlContainerAttributeNames: $controlContainerAttributeNames
1674  ) {
1675    __typename
1676    id
1677    seo {
1678      title
1679      keywords
1680      description
1681      robots {
1682        index
1683        follow
1684      }
1685      alternates {
1686        canonical
1687        languages {
1688          url
1689          locale
1690        }
1691      }
1692    }
1693    parentPage {
1694      id
1695      slug
1696      seo {
1697        title
1698      }
1699    }
1700    schema {
1701      faqList {
1702        ...ShopDomainFaqSchemaItem
1703      }
1704    }
1705    ... on ShopDomainContentPage {
1706      __typename
1707      slug
1708      type
1709      showPageHeadline
1710      layout {
1711        theme
1712        headerVariant
1713      }
1714      content {
1715        ...ShopDomainContentPageContent
1716      }
1717    }
1718  }
1719}
1720    ${tc}
1721${td}`,ef`
1722    query ShopDomainContentPageLayoutBySlug($slug: String!, $locale: String!, $country: String!, $currency: String!, $isPreview: Boolean!) {
1723  shopDomainPage(
1724    slug: $slug
1725    locale: $locale
1726    country: $country
1727    currency: $currency
1728    isPreview: $isPreview
1729  ) {
1730    ... on ShopDomainContentPage {
1731      __typename
1732      id
1733      layout {
1734        theme
1735        headerVariant
1736      }
1737    }
1738  }
1739}
1740    `,ef`
1741    query ContentRoute($slug: String!, $locale: String!, $tags: [String]) {
1742  pageCollection(
1743    where: {slug: $slug, OR: [{contentfulMetadata: {tags_exists: false}}, {contentfulMetadata: {tags: {id_contains_some: $tags}}}]}
1744    locale: $locale
1745    limit: 1
1746  ) {
1747    items {
1748      sys {
1749        id
1750      }
1751      allSlugs {
1752        locale
1753        slug
1754      }
1755    }
1756  }
1757}
1758    `,ef`
1759    query ContentPageSlugsByType($locale: String!, $limit: Int!, $skip: Int!, $preview: Boolean!, $tags: [String]) {
1760  pageCollection(
1761    where: {slug_exists: true, OR: [{contentfulMetadata: {tags_exists: false}}, {contentfulMetadata: {tags: {id_contains_some: $tags}}}]}
1762    locale: $locale
1763    limit: $limit
1764    skip: $skip
1765    preview: $preview
1766  ) {
1767    total
1768    items {
1769      sys {
1770        id
1771        publishedAt
1772      }
1773      slug
1774      parentPage {
1775        slug
1776      }
1777      contentData: content {
1778        __typename
1779        ... on PageBasicPage {
1780          type
1781        }
1782      }
1783    }
1784  }
1785}
1786    `,ef`
1787    query PageLayoutByPageSlug($slug: String!, $locale: String!, $isPreview: Boolean!) {
1788  pageCollection(
1789    where: {slug: $slug}
1790    locale: $locale
1791    preview: $isPreview
1792    limit: 1
1793  ) {
1794    items {
1795      contentData: content {
1796        __typename
1797        ... on PageBasicPage {
1798          layout {
1799            headerVariant
1800            theme
1801          }
1802        }
1803      }
1804    }
1805  }
1806}
1807    `,ef`
1808    query CountrySelectorContent($slug: String!, $locale: String!, $country: String!, $currency: String!, $isPreview: Boolean!, $pageType: String) {
1809  shopDomainPage(
1810    slug: $slug
1811    locale: $locale
1812    country: $country
1813    currency: $currency
1814    isPreview: $isPreview
1815    pageType: $pageType
1816  ) {
1817    __typename
1818    id
1819    seo {
1820      title
1821      keywords
1822      description
1823      robots {
1824        index
1825        follow
1826      }
1827    }
1828    ... on ShopDomainCountrySelectorPage {
1829      __typename
1830      content {
1831        headline
1832        regions {
1833          name
1834          countries {
1835            id
1836            name
1837            code
1838            locale
1839            externalLink
1840          }
1841        }
1842      }
1843    }
1844  }
1845}
1846    `,ef`
1847    query CountryAndRegion($country: CountryCode, $localeToFilter: String, $locale: String, $isPreview: Boolean) {
1848  countryV2(
1849    localeToFilter: $localeToFilter
1850    code: $country
1851    locale: $locale
1852    isPreview: $isPreview
1853  ) {
1854    id
1855    name
1856    regionName
1857    code
1858  }
1859}
1860    `,ef`
1861    query ShopDomainFaqPageBySlug($slug: String!, $locale: String!, $country: String!, $currency: String!, $isPreview: Boolean!, $pageType: String!) {
1862  shopDomainPage(
1863    slug: $slug
1864    locale: $locale
1865    country: $country
1866    currency: $currency
1867    isPreview: $isPreview
1868    pageType: $pageType
1869  ) {
1870    __typename
1871    id
1872    publishedAt
1873    seo {
1874      title
1875      keywords
1876      description
1877      robots {
1878        index
1879        follow
1880      }
1881      alternates {
1882        canonical
1883        languages {
1884          url
1885          locale
1886        }
1887      }
1888    }
1889    parentPage {
1890      id
1891      slug
1892      seo {
1893        title
1894      }
1895    }
1896    schema {
1897      faqList {
1898        ...ShopDomainFaqSchemaItem
1899      }
1900    }
1901    ... on ShopDomainFaqPage {
1902      __typename
1903      slug
1904      type
1905      showPageHeadline
1906      content {
1907        __typename
1908        ...ShopDomainComponentBasicText
1909        ...ShopDomainComponentExtendedText
1910        ...ShopDomainComponentSurvey
1911        ...ShopDomainComponentAccordionList
1912        ...ShopDomainComponentNavigationInline
1913        ...ShopDomainComponentListLink
1914      }
1915    }
1916  }
1917}
1918    ${tc}
1919${eQ}
1920${eZ}
1921${tt}
1922${eK}
1923${ex}
1924${eS}`,ef`
1925    query ShopDomainHomePageBySlug($slug: String!, $locale: String!, $country: String!, $currency: String!, $isPreview: Boolean!, $controlContainerAttributeNames: [String!]) {
1926  shopDomainPage(
1927    slug: $slug
1928    locale: $locale
1929    country: $country
1930    currency: $currency
1931    isPreview: $isPreview
1932    controlContainerAttributeNames: $controlContainerAttributeNames
1933  ) {
1934    __typename
1935    id
1936    publishedAt
1937    seo {
1938      title
1939      keywords
1940      description
1941      robots {
1942        index
1943        follow
1944      }
1945      alternates {
1946        canonical
1947        languages {
1948          url
1949          locale
1950        }
1951      }
1952    }
1953    ... on ShopDomainLandingPage {
1954      __typename
1955      layout {
1956        theme
1957        headerVariant
1958      }
1959      content {
1960        ...ShopDomainContentPageContent
1961      }
1962    }
1963  }
1964}
1965    ${td}`,ef`
1966    query HomePageLayout($slug: String!, $locale: String!, $country: String!, $currency: String!, $isPreview: Boolean!) {
1967  shopDomainPage(
1968    slug: $slug
1969    locale: $locale
1970    country: $country
1971    currency: $currency
1972    isPreview: $isPreview
1973  ) {
1974    ... on ShopDomainLandingPage {
1975      id
1976      __typename
1977      layout {
1978        theme
1979        headerVariant
1980      }
1981    }
1982  }
1983}
1984    `,ef`
1985    query CollectionConfigCollection($categoryKey: String!, $isPreview: Boolean, $locale: String, $country: String, $currency: String) {
1986  collectionConfigCollection(
1987    limit: 1
1988    preview: $isPreview
1989    locale: $locale
1990    where: {category: $categoryKey}
1991  ) {
1992    items {
1993      internalName
1994      slider {
1995        ...ComponentProductSlider
1996      }
1997      hotspot {
1998        ...ComponentMultipleHotSpots
1999      }
2000    }
2001  }
2002}
2003    ${e_}
2004${eN}`,ef`
2005    query ShopDomainProductByKeyOnlyContent($key: String!, $locale: String!, $country: String!, $currency: String!, $controlContainerAttributeNames: [String!]) {
2006  shopDomainProduct(
2007    key: $key
2008    locale: $locale
2009    country: $country
2010    currency: $currency
2011    controlContainerAttributeNames: $controlContainerAttributeNames
2012  ) {
2013    ...ShopDomainProductContent
2014  }
2015}
2016    ${ty}`,ef`
2017    query ShopDomainStoreLocatorPage($locale: String!, $country: String!, $currency: String!, $isPreview: Boolean!, $pageType: String, $slug: String!) {
2018  shopDomainPage(
2019    locale: $locale
2020    slug: $slug
2021    currency: $currency
2022    isPreview: $isPreview
2023    country: $country
2024    pageType: $pageType
2025  ) {
2026    __typename
2027    id
2028    publishedAt
2029    seo {
2030      title
2031      keywords
2032      description
2033      robots {
2034        index
2035        follow
2036      }
2037      alternates {
2038        canonical
2039        languages {
2040          url
2041          locale
2042        }
2043      }
2044    }
2045    parentPage {
2046      id
2047      slug
2048      seo {
2049        title
2050      }
2051    }
2052    internalName
2053  }
2054}
2055    `,ef`
2056    query Survey($productKey: String, $categoryKey: String, $slug: String, $country: String!, $locale: String!, $isPreview: Boolean!) {
2057  survey(
2058    productKey: $productKey
2059    categoryKey: $categoryKey
2060    slug: $slug
2061    country: $country
2062    locale: $locale
2063    isPreview: $isPr
2063eview
2064  ) {
2065    ...ShopDomainComponentSurvey
2066  }
2067}
2068    ${tt}`,ef`
2069    query CountryGeoLocation($code: CountryCode!) {
2070  countryGeoLocation(code: $code) {
2071    ...CountryGeoLocationContext
2072  }
2073}
2074    ${tu}`,ef`
2075    query CountryName($code: CountryCode!) {
2076  countryV2(code: $code) {
2077    id
2078    name
2079  }
2080}
2081    `,ef`
2082    query EnabledMarketplaces {
2083  enabledMarketplaces {
2084    key
2085    currency
2086    languages
2087  }
2088}
2089    `,ef`
2090    query LocalizedMarketDocuments($key: String!, $locale: String!) {
2091  marketplaceV2(key: $key, locale: $locale) {
2092    dataPrivacy {
2093      language
2094      url
2095      version
2096    }
2097    termsAndConditions {
2098      language
2099      url
2100      version
2101    }
2102  }
2103}
2104    `,ef`
2105    query Marketplace($key: String!, $locale: String!) {
2106  marketplaceV2(key: $key, locale: $locale) {
2107    key
2108    currency
2109    languages
2110  }
2111}
2112    `,ef`
2113    query MarketplaceConfiguration($marketplaceId: String!, $locale: String!, $country: String!, $currency: String!, $isPreview: Boolean!) {
2114  marketplaceConfigurationCollection(
2115    where: {marketplaceId: $marketplaceId}
2116    locale: $locale
2117    limit: 1
2118    preview: $isPreview
2119  ) {
2120    items {
2121      sys {
2122        id
2123      }
2124      marketplaceId
2125      enabled
2126      indirectSalesEnabled
2127      lowestReducedPriceEnabled
2128      announcementBar {
2129        ...ComponentAnnouncementBar
2130      }
2131      footer {
2132        ...Footer
2133      }
2134      hasSpecificRecoIndex
2135      pdpConfig {
2136        ...PDPConfig
2137      }
2138      googleSiteVerificationId
2139      cookieConsentConfig {
2140        ...CookieConsentConfig
2141      }
2142      marketplaceV2(locale: $locale) {
2143        vendor {
2144          termsAndConditions {
2145            language
2146            url
2147            version
2148          }
2149        }
2150        dataPrivacy {
2151          language
2152          url
2153          version
2154        }
2155        termsAndConditions {
2156          language
2157          url
2158          version
2159        }
2160        warranty {
2161          language
2162          url
2163          version
2164        }
2165      }
2166      alternateCurrencyConversionRate
2167      alternateCurrencyCode
2168      billingAddressCountriesCollection(limit: 5) {
2169        items {
2170          countryCodes
2171        }
2172      }
2173    }
2174  }
2175}
2176    ${eH}
2177${eL}
2178${tp}
2179${tg}`,ef`
2180    query PDPConfig($market: String!, $isPreview: Boolean!, $locale: String!) {
2181  marketplaceConfigurationCollection(
2182    where: {marketplaceId: $market}
2183    limit: 1
2184    preview: $isPreview
2185    locale: $locale
2186  ) {
2187    items {
2188      sys {
2189        id
2190      }
2191      marketplaceId
2192      pdpConfig(locale: $locale) {
2193        ...PDPConfig
2194      }
2195    }
2196  }
2197}
2198    ${tp}`,ef`
2199    query SiteVerificationId($marketplaceId: String!) {
2200  marketplaceConfigurationCollection(
2201    where: {marketplaceId: $marketplaceId}
2202    limit: 1
2203  ) {
2204    items {
2205      sys {
2206        id
2207      }
2208      marketplaceId
2209      googleSiteVerificationId
2210    }
2211  }
2212}
2213    `,ef`
2214    query HasOwnRecommendationIndex($marketplaceId: String!) {
2215  marketplaceConfigurationCollection(
2216    where: {marketplaceId: $marketplaceId}
2217    limit: 1
2218  ) {
2219    items {
2220      sys {
2221        id
2222      }
2223      marketplaceId
2224      hasSpecificRecoIndex
2225    }
2226  }
2227}
2228    `,ef`
2229    query ShopDomainProductByKey($key: String!, $locale: String!, $country: String!, $currency: String!, $controlContainerAttributeNames: [String!]) {
2230  shopDomainProduct(
2231    key: $key
2232    locale: $locale
2233    country: $country
2234    currency: $currency
2235    controlContainerAttributeNames: $controlContainerAttributeNames
2236  ) {
2237    ...ShopDomainProductLight
2238  }
2239}
2240    ${ek}`,ef`
2241    query ShopDomainProductBySku($sku: String!, $locale: String!, $country: String!, $currency: String!) {
2242  shopDomainProduct(
2243    sku: $sku
2244    locale: $locale
2245    country: $country
2246    currency: $currency
2247  ) {
2248    ...ShopDomainProduct
2249  }
2250}
2251    ${tT}`,ef`
2252    query ShopDomainProductBySlug($slug: String!, $locale: String!, $country: String!, $currency: String!) {
2253  shopDomainProduct(
2254    slug: $slug
2255    locale: $locale
2256    country: $country
2257    currency: $currency
2258  ) {
2259    ...ShopDomainProduct
2260  }
2261}
2262    ${tT}`,ef`
2263    query ActiveProducts($locale: String!, $country: String!) {
2264  activeProducts(locale: $locale, country: $country) {
2265    products {
2266      slug
2267      updatedAt
2268      sku
2269    }
2270  }
2271}
2272    `,ef`
2273    query ShopDomainProductRoute($key: String!, $locale: String!, $country: String!, $currency: String!) {
2274  shopDomainProduct(
2275    key: $key
2276    locale: $locale
2277    country: $country
2278    currency: $currency
2279  ) {
2280    ...ShopDomainProductRouteFields
2281  }
2282}
2283    ${tI}`,ef`
2284    query ShopDomainProductRoutesBySku($sku: String!, $locale: String!, $country: String!, $currency: String!) {
2285  shopDomainProduct(
2286    sku: $sku
2287    locale: $locale
2288    country: $country
2289    currency: $currency
2290  ) {
2291    ...ShopDomainProductRouteFields
2292  }
2293}
2294    ${tI}`,ef`
2295    query ShopDomainProductRoutesBySlug($slug: String!, $locale: String!, $country: String!, $currency: String!) {
2296  shopDomainProduct(
2297    slug: $slug
2298    locale: $locale
2299    country: $country
2300    currency: $currency
2301  ) {
2302    ...ShopDomainProductRouteFields
2303  }
2304}
2305    ${tI}`,e.s(["AnnotationType",()=>eT,"ShopDomainComponentProductSliderType",()=>ey],360521);let tP=(e,t)=>{let a=(e??[]).map(e=>((e,t)=>{switch(e.type){case eT.AiGenerated:return{type:"generated",locale:t};case eT.AiModified:return{type:"modified",locale:t};default:return}})(e,t)).filter(e=>void 0!==e).slice(0,2);if(0===a.length)return;let[i,r]=a;return r?[i,r]:[i]};e.s(["mapAnnotationsToMediaTags",0,tP],96319);let tS=e=>
2305e?.__typename==="ShopDomainComponentImageWithFocalPoint",tx=e=>e?.__typename==="ShopDomainVideoItem",tb=({fragmentData:e,className:t,style:a,isSearch:i,containerLayout:r})=>{let n,o,s=(0,E.useTranslations)(),{data:l,addAttributes:d}=(0,R.useComponentPreview)(e,e.id),{localeId:c}=(0,_.useMarket)(),u=i??!1,m=i?"small":"default",p=i&&tx(l.backgroundMedia)&&l.backgroundMedia?.url?{...a,aspectRatio:"16 / 9",maxHeight:"100%"}:a;if(tS(l.backgroundMedia)){o=tP(l.backgroundMedia.image?.annotations,c);let e=l.backgroundMedia?.image?.url?{url:l.backgroundMedia.image.url,alt:l.backgroundMedia.image.description??"",focalPoint:l.backgroundMedia.focalPoint,width:l.backgroundMedia.image.width??0,height:l.backgroundMedia.image.height??0}:void 0;n=e&&(0,h.jsx)(N.MediaCard.Image,{src:{base:e},...r?{containerLayout:r}:{}})}else tx(l.backgroundMedia)&&l.backgroundMedia?.url&&(o=tP(l.backgroundMedia.annotations,c),n=(0,h.jsx)(N.MediaCard.Video,{video:{url:l.backgroundMedia.url,thumbnailUrl:l.backgroundMedia.thumbnailUrl??"",mobileUrl:l.backgroundMedia.mobileUrl??"",mobileThumbnailUrl:l.backgroundMedia.mobileThumbnailUrl??"",thumbnailAltText:l.backgroundMedia.thumbnailAltText??"",mobileThumbnailAltText:l.backgroundMedia.mobileThumbnailAltText??""}}));return(0,h.jsxs)(N.MediaCard.Root,{id:e.id,shimmerOnHover:l.shimmerEffectOnHover??void 0,aiTag:o?.[0],showMuteButton:l.backgroundMedia?.showMuteButton??void 0,className:t,videoControlLabels:{muteOnLabel:s("video.button.mute.on"),muteOffLabel:s("video.button.mute.off"),playLabel:s("video.button.play.play"),pauseLabel:s("video.button.play.pause")},borderRadius:m,compact:u,style:p,...d("internalName"),children:[l.ctaLink&&(0,h.jsx)(N.MediaCard.OverlayLink,{href:l.ctaLink.resolvedLinkV2?.slug??"",target:l.ctaLink.newWindow?"_blank":"_self","aria-label":l.headline??l.ctaLink.resolvedLinkV2?.name??""}),(l.tags?.length||o)&&(0,h.jsx)(N.MediaCard.Header,{children:l.tags?.map(e=>(0,h.jsx)(q.PTag,{compact:!0,variant:"secondary",children:e},e))}),n,(0,h.jsx)(N.MediaCard.Title,{size:"large",as:l.headlineTag??void 0,children:l.headline??l.ctaLink?.resolvedLinkV2?.name}),l.description&&(0,h.jsx)(N.MediaCard.Description,{children:(0,h.jsx)(A.RichText,{document:l?.de
2305scription?.json,links:[]})}),l.footerText&&(0,h.jsx)(N.MediaCard.FooterText,{children:l.footerText}),l.ctaLink&&(0,h.jsx)(N.MediaCard.Cta,{href:l.ctaLink.resolvedLinkV2?.slug??"",target:l.ctaLink.newWindow?"_blank":"_self",variant:l.ctaVariant??void 0,children:l.ctaLink.resolvedLinkV2?.name})]})};e.s(["ShopDomainComponentContentTile",0,tb,"isImageBackground",0,tS],883272),e.s(["ShopDomainComponentCardSlider",0,({fragmentData:e})=>{let{data:t,addAttributes:a}=(0,R.useComponentPreview)(e,e.id),i=(0,m.useMemo)(()=>t.cards.filter(C.isNotNullOrUndefined)??[],[t.cards]),r=(0,m.useMemo)(()=>{let e=i.map(e=>e.id);return e?.length===new Set(e).size?e:i.map((e,t)=>`${e.id}-${t}`)},[i]);return(0,h.jsx)(D.BlockSection,{children:(0,h.jsx)(k,{...a("internalName"),id:t.id,heading:(0,C.isNotNullOrUndefined)(t.headlineCardSlider)?{text:t.headlineCardSlider,size:t.headlineSizeCardSlider??void 0,tag:t.headlineTagCardSlider??void 0}:void 0,description:t.descriptionCardSlider??void 0,applyAlternatingSizes:!0,animateInView:"Fade In View"===t.animation,children:i.map((e,t)=>(0,h.jsx)(S,{children:(0,h.jsx)(tb,{fragmentData:e})},r[t]))})})}],88500);var tk={base:"v07k5c0",surfaceSoft:"v07k5c1"},tD=e.i(657688),tC=e.i(622779),tR=(0,e.i(125791).createRuntimeFn)({defaultClassName:"_1cat4fg3",variantClassNames:{variant:{"on-base-background":"_1cat4fg4","on-surface-background":"_1cat4fg5"},state:{default:"_1cat4fg6",preselected:"_1cat4fg7"}},defaultVariants:{},compoundVariants:[]}),tq="_1cat4fga",tE=e.i(538482);e.i(778498);var tN=e.i(456641);let tA=({title:e,price:t,locale:a,isPreselected:i=!1,className:r,thumbnail:n,variant:o="on-base-background",specs:s,cta:l,priceLabelTranslations:d,...c})=>(0,h.jsxs)("div",{className:[tR({variant:o,state:i?"preselected":"default"}),r].filter(Boolean).join(" "),...c,children:[(0,h.jsx)("div",{className:"_1cat4fg9",children:n.src?(0,h.jsx)(tD.default,{className:tq,src:n.src,alt:n.alt,"aria-hidden":!0,sizes:"100vw",fill:!0}):(0,h.jsx)(tD.default,{className:tq,src:"/missingProduct.png",alt:n.alt,"aria-hidden":!0,sizes:"100vw",fill:!0})}),(0,h.jsxs)("div",{className:"_1cat4fg8",children:[(0,h.jsxs)("div",{className:"_1cat4fgd",children:[(0,h.jsx)(y.Heading,{as:"h3",size:"medium",className:"_1cat4fgc _1cat4fgb",children:e}),t&&d&&(0,h.jsx)(tE.PriceLabel,{ariaLive:"polite",grossPriceValue:t.gross.value,grossPriceDiscountedValue:t.gross.discounted?.value??null,priceWithDiscountCode:null,basePrice:t.base,locale:a,size:"x-small",autoSuffix:!0,isTaxIncluded:t.gross?.isTaxIncluded??null,className:"_1cat4fge",lowestReducedPrice:t.withLowestReducedPrice?{short:!1}:void 0,...d})]}),(0,h.jsx)("div",{className:"_1cat4fgf",children:s.map(({label:e,value:t})=>(0,h.jsxs)("div",{children:[(0,h.jsx)(tN.Text,{as:"p",size:"medium",weight:"semi-bold",className:"_1cat4fgg _1cat4fgb",children:t}),(0,h.jsx)(tN.Text,{as:"p",size:"x-small",color:"contrast-medium",className:"_1cat4fgh _1cat4fgb",children:e})]},e))})]}),l&&(0,h.jsx)(tC.PLink,{className:"_1cat4fgi",href:l.href,variant:i?"secondary":"primary",children:l.label})]});e.s(["SoftCompare",0,({background:e,comparedProducts:t,heading:a,className:i,locale:r,priceLabelTranslations:n,...o})=>(0,h.jsx)(p.PCarousel,{slidesPerPage:{base:1,s:2,l:3},alignHeader:"center",heading:a,width:"extended",className:[tk[e],i].filter(Boolean).join(" "),...o,children:t.map(t=>(0,h.jsx)(tA,{locale:r,isPreselected:t.isPreselected,variant:"base"===e?"on-base-background":"on-surface-background",priceLabelTranslations:n,...t},`${t.title}-${t.cta?.href??"#"}`))})],807298)},332830,646188,e=>{"use strict";var t=e.i(843476),a=e.i(618566);e.i(510193);var i=e.i(145025),r=e.i(807298),n=e.i(251677),o=e.i(251306),s=e.i(403118),l={default:"_5opan91 _5opan90",dark:"_5opan92 _5opan90"},d=e.i(69406),c=e.i(865172);e.s(["ShopDomainComponentCompare",0,({fragmentData:e})=>{let{localeId:u}=(0,d.useMarket)(),h=(0,i.useTranslations)(),{pageTheme:m}=(0,s.usePageLayout)(),{data:p}=(0,c.useComponentPreview)(e,e.id),{slug:g}=(0,a.useParams)(),v=!1,f=p.productItems.sort((e,t)=>e.slug===g?(v=!0,-1):t.slug===g?(v=!0,1):0),T="dark"===m?o.InterleavedBlockSection:n.BlockSection;return(0,t.jsx)(T,{theme:"dark"===m?"light":void 0,className:l["dark"===m?"dark":"default"],"data-testid":`compare-slider-${e.id}`,children:(0,t.jsx)(r.SoftCompare,{background:"base",heading:p.heading.text,locale:u,comparedProducts:f.map((e,t)=>{let a=v&&0===t;return{isPreselected:a,title:e.name??"",specs:e.attributes,thumbnail:{src:e.thumbnail?.url,alt:e.thumbnail?.alt??h("compare.component.a11y.thumbnail.missing")},cta:a?void 0:{href:e.link,label:h("compare.component.cta")},price:e.prices.gross?.amount?{gross:{isTaxIncluded:e.prices.gross.isTaxIncluded,value:{centAmount:e.prices.gross.amount,currencyCode:e.prices.gross.currency,fractionDigits:e.prices.gross.fractionDigits},discounted:e.prices.grossDiscounted?.amount?{value:{centAmount:e.prices.grossDiscounted.amount,currencyCode:e.prices.grossDiscounted.currency,fractionDigits:e.prices.grossDiscounted.fractionDigits}}:null},base:e.prices.basePrice?.amount?{centAmount:e.prices.basePrice.amount,currencyCode:e.prices.basePrice.currency,fractionDigits:e.prices.basePrice.fractionDigits,unit:e.prices.basePrice.unit,attributeValue:e.prices.basePrice.variantUnit}:void 0}:void 0}})})})}],332830),e.i(589472);var u=e.i(465218),h=e.i(820646);e.s(["documentToPlainTextString",0,function e(t,a=" ",i={}){if(!t||!t.content||!Array.isArray(t.content))return"";let r=t;return t.nodeType===u.BLOCKS.DOCUMENT&&i.stripEmptyTrailingParagraph&&(r=h.helpers.stripEmptyTrailingParagraphFromDocument(t)),r.content.reduce((t,n,o)=>{let s;if(h.helpers.isText(n))s=n.value;else if((h.helpers.isBlock(n)||h.helpers.isInline(n))&&!(s=e(n,a,i)).length)return t;let l=r.content[o+1];return t+s+(l&&h.helpers.isBlock(l)?a:"")},"")}],646188)},450358,177761,57214,468224,633173,759433,757360,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(646188),r=e.i(561777),n=e.i(69406),o=e.i(351400),s=e.i(902815),l=e.i(865172),d=e.i(152965);e.s(["ShopDomainComponentEmptyContent",0,({fragmentData:e})=>{let{marketplaceId:c,localeId:u}=(0,n.useMarket)(),{mutate:h,data:m,isSuccess:p,isPending:g,reset:v}
2305=(0,s.useLogin)({callbackUrl:`${o.env.NEXT_PUBLIC_BASE_URL}/${c}/${u}`,country:c,locale:u}),{data:f,addAttributes:T}=(0,l.useComponentPreview)(e,e.id);return(0,a.useEffect)(()=>{p&&(window.location.href=m.redirectUri)},[m,p,v]),(0,t.jsx)(r.EmptyContent,{...T("internalName"),id:e.internalName,heading:{children:f.headlineEmptyContent?.text??"",as:f.headlineEmptyContent?.tag??void 0,size:f.headlineEmptyContent?.size?d.headlineSizeMap[f.headlineEmptyContent.size]:void 0},description:(0,i.documentToPlainTextString)(f.descriptionEmptyContent?.json),descriptionTag:f.descriptionTag??void 0,icon:{name:f.icon??"country-road"},elements:(f.items??[]).map((e,t)=>"logout"===f.internalName&&0===t?{name:e?.resolvedLinkV2?.name??"",href:e?.resolvedLinkV2?.slug??"",variant:e?.type==="button_secondary"?"secondary":"primary",handleEvent:()=>h({}),disabled:g}:{name:e?.resolvedLinkV2?.name??"",href:e?.resolvedLinkV2?.slug??"",variant:e?.type==="button_secondary"?"secondary":"primary"})})}],450358);var c={left:"pxbofi1 pxbofi0",right:"pxbofi2 pxbofi0",center:"pxbofi3 pxbofi0"},u=e.i(710740),h=e.i(531710),m=e.i(883658),p=e.i(622779),g=e.i(849635);e.i(529131);var v=e.i(342893);e.i(778498);var f=e.i(456641),T=e.i(938417);let y=({alignment:e,children:a,dataId:i,...r})=>"two-column"===e?(0,t.jsx)(h.Grid,{...r,children:a}):(0,t.jsx)("div",{...r,className:`${"center"===e?"_1rpnjzw0":""}`,"data-testid":i,children:a}),I=({children:e,headline:a,cta:i,invertedCta:r,link:n,alignment:o="left",dataId:s,...l})=>(0,t.jsxs)(y,{alignment:o,dataId:s??"extended-text",...l,children:[a&&(0,t.jsx)(v.Heading,{size:"large",id:a.id,as:a.as,className:`_1rpnjzw2 ${"two-column"===o?"_1rpnjzw3 _1rpnjzw1":""}`,"data-testid":"headline",children:a.text}),(0,t.jsxs)("div",{className:"two-column"===o?"_1rpnjzw4 _1rpnjzw1":"",children:[!!e&&(0,t.jsx)(f.Text,{className:"_1rpnjzw5","data-testid":"paragraph",size:"medium",children:e}),(i||r||n)&&(0,t.jsxs)("div",{className:"_1rpnjzw6","data-testid":"cta-wrapper",children:[i?.linkName&&i?.linkUrl&&(0,t.jsx)(t.Fragment,{children:i?.handleEvent?(0,t.jsx)(m.PButton,{type:"button",variant:"primary","data-testid":"cta-handle-event",onClick:i.handleEvent,disabled:i.isDisabled??!1,children:i.linkName}):(0,t.jsx)(p.PLink,{variant:"primary","data-testid":"cta",children:(0,t.jsx)(T.default,{href:i.linkUrl,target:i.target,children:i.linkName})})}),r?.linkName&&r?.linkUrl&&(0,t.jsx)(p.PLink,{variant:"secondary","data-testid":"inverted-cta",children:(0,t.jsx)(T.default,{href:r.linkUrl,target:r.target,children:r.linkName})}),n?.linkName&&n?.linkUrl&&(0,t.jsx)(g.PLinkPure,{"data-testid":"link",children:(0,t.jsx)(T.default,{href:n.linkUrl,target:n.target,children:n.linkName})})]})]})]});e.s(["ExtendedTextStandalone",0,I],177761);let P=({id:e,children:a,headline:i,cta:r,invertedCta:n,link:o,alignment:s,dataId:l,spaceTop:d,...m})=>{let p=!!(i?.as&&(0,u.isHTag)(i.as)),g=e&&p?`extended-text-${e}-heading`:void 0,v=p&&g?"section":"div",f=i?{...i,id:g}:void 0;return"two-column"===s?(0,t.jsx)(I,{alignment:"two-column",headline:f,cta:r,invertedCta:n,link:o,...m,children:a}):(0,t.jsx)(h.Grid,{tag:v,dataId:l,spaceTop:d,"aria-labelledby":g,...m,children:(0,t.jsx)("div",{className:c[s??"left"],children:(0,t.jsx)(I,{alignment:s??"left",headline:f,cta:r,invertedCta:n,link:o,children:a})})})};var S=e.i(251677),x=e.i(845582);e.s(["ShopDomainComponentExtendedText",0,({fragmentData:e,isPriority:i})=>{let{data:r,addAttributes:d}=(0,l.useComponentPreview)(e,e.id),{marketplaceId:c,localeId:u}=(0,n.useMarket)(),{mutate:h,isPending:m,isSuccess:p,reset:g,data:v}=(0,s.useLogin)({callbackUrl:`${o.env.NEXT_PUBLIC_BASE_URL}/${c}/${u}`,country:c,locale:u});return((0,a.useEffect)(()=>{p&&(window.location.href=v.redirectUri)},[v,p,g]),r.bodyExtendedText||r.headlineExtendedText)?(0,t.jsx)(S.BlockSection,{children:(0,t.jsx)(P,{...d("internalName"),id:e.id,spaceTop:i?"l":void 0,alignment:r?.alignment?r.alignment:"left",headline:r.headlineExtendedText?{as:r.headlineTag??"h2",text:r.headlineExtendedText}:void 0,cta:r.cta?{linkName:r.cta?.resolvedLinkV2?.name??"",linkUrl:r.cta?.resolvedLinkV2?.slug??"",target:r.cta?.newWindow?"_blank":"_self",handleEvent:r.cta?.type==="button_login"?()=>h({}):void 0,isDisabled:m}:void 0,invertedCta:r.invertedCta?{linkName:r.invertedCta?.resolvedLinkV2?.name??"",linkUrl:r.invertedCta?.resolvedLinkV2?.slug??"",target:r.invertedCta?.newWindow?"_blank":"_self"}:void 0,link:r.link?{linkName:r.link?.resolvedLinkV2?.name??"",linkUrl:r.link?.resolvedLinkV2?.slug??"",target:r.link?.newWindow?"_blank":"_self"}:void 0,children:!!r?.bodyExtendedText?.json&&(0,t.jsx)(x.RichText,{document:r.bodyExtendedText.json,links:[]})})}):null}],57214);var b=e.i(618595);let k=({__typename:e="FeaturedText",children:a,link:i,alignment:r="left",dataId:n,...o})=>{let{minWidthM:s}=(0,b.useMediaQueries)(),l="_1d4t6hq2";return"center"===r?l="_1d4t6hq4":"right"===r&&(l="_1d4t6hq3"),(0,t.jsx)(h.Grid,{...o,children:(0,t.jsxs)("div",{className:l,"data-testid":n??"featured-text",children:[(0,t.jsx)(f.Text,{className:"_1d4t6hq0","data-testid":"paragraph",size:s?"large":"medium",children:a}),i?.linkName&&i?.linkUrl&&(0,t.jsx)("div",{className:"_1d4t6hq1","data-testid":"cta-wrapper",children:(0,t.jsx)(g.PLinkPure,{"data-testid":"link",children:(0,t.jsx)(T.default,{href:i.linkUrl,children:i.linkName})})})]})})};e.s(["ShopDomainComponentFeaturedText",0,({fragmentData:e})=>{let{data:a,addAttributes:i}=(0,l.useComponentPreview)(e,e.id),r="left";
2305return"center"===a.alignment?r="center":"right"===a.alignment&&(r="right"),(0,t.jsx)(S.BlockSection,{children:(0,t.jsx)(k,{...i("internalName"),alignment:r,link:{linkName:a.link?.resolvedLinkV2?.name??"",linkUrl:a.link?.resolvedLinkV2?.slug??""},children:(0,t.jsx)(x.RichText,{document:a?.body?.json,links:[]})})})}],468224);var D={2:"_1v7jsje1 _1v7jsje0",3:"_1v7jsje2 _1v7jsje0",4:"_1v7jsje3 _1v7jsje0"},C=e.i(97116),R=e.i(910848),q=e.i(929774);let E=({id:e,images:a,...i})=>{if(a.length<2||a.length>4)return console.warn(`ImageGallery supports between 2 and 4 images. Received ${a.length} images. Falling back to rendering null.`),null;let r=[],n={base:{width:100/(a.length||1),aspect:1}};return r=3===a.length?[{base:{width:100,aspect:1},s:{width:34,aspect:1}},n,n]:4===a.length?Array(a.length).fill({base:{width:50,aspect:1},s:{width:25,aspect:1}}):Array(a.length).fill(n),(0,t.jsx)(h.Grid,{dataId:"image-gallery",extendedWidth:!0,applyGridPlacementToChildren:!0,...i,children:(0,t.jsx)("div",{className:D[a.length],children:a.map(({tags:a,...i},n)=>(0,t.jsx)(q.ThemeBoundary,{theme:"dark",children:(0,t.jsxs)("div",{"data-testid":"image-gallery-item",className:"_1v7jsje4",children:[(0,t.jsx)(C.Picture,{containerLayout:r[n],fill:!0,src:i}),a&&(0,t.jsx)(R.MediaTags,{tags:a,className:"_1v7jsje5"})]})},`${e}-${n}`))})})};var N=e.i(736797),A=e.i(96319);e.s(["ShopDomainComponentImageGallery",0,({fragmentData:e,isPriority:a=!1})=>{let{data:i,addAttributes:r}=(0,l.useComponentPreview)(e,e.id),{localeId:o}=(0,n.useMarket)();return(0,t.jsx)(S.BlockSection,{children:(0,t.jsx)(E,{id:e.id,...r("internalName"),images:(i.images??[]).filter(N.isNotNullOrUndefined).map((e,t)=>e.image?.url?{url:e.image.url,alt:e.image.description??"",priority:a&&t<=1,focalPoint:e.focalPoint,width:e.image?.width??0,height:e.image?.height??0,tags:(0,A.mapAnnotationsToMediaTags)(e.image?.annotations,o)}:null).filter(N.isNotNullOrUndefined)})})}],633173);var _=e.i(446218),H={"16/9":"j9txcr1 j9txcr0","1/1":"j9txcr2 j9txcr0"};let j=({id:e,images:a,slidesPerView:i})=>{let r=(0,b.useMediaQueries)();if(a.length<3)return console.warn(`ImageGallery needs more than 2 images. Received ${a.length} images. Falling back to rendering null.`),null;let n=1===i?16/9:1,o=1===i?{base:{width:100,aspect:n}}:{base:{width:50,aspect:n},s:{width:100/i,aspect:n}};return(0,t.jsx)(_.PCarousel,{heading:"","data-testid":"image-slider",slidesPerPage:1===i?i:{base:2,s:i},width:r.minWidthL?"basic":"extended",children:a.map(({tags:a,priority:r,...n},s)=>(0,t.jsx)(q.ThemeBoundary,{theme:"dark",children:(0,t.jsxs)("div",{"data-testid":"image-slider-item",className:H[1===i?"16/9":"1/1"],children:[(0,t.jsx)(C.Picture,{src:n,fill:!0,className:"j9txcr3",loading:r?"eager":void 0,fetchPriority:r?"high":"auto",containerLayout:o}),a&&(0,t.jsx)(R.MediaTags,{tags:a,className:"j9txcr4"})]})},`${e}-${s}`))})};e.s(["ShopDomainComponentImageSlider",0,({fragmentData:e,isPriority:a=!1})=>{let{data:i,addAttributes:r}=(0,l.useComponentPreview)(e,e.id),{localeId:o}=(0,n.useMarket)();return(0,t.jsx)(S.BlockSection,{children:(0,t.jsx)("div",{...r("internalName"),children:(0,t.jsx)(j,{id:i.id,slidesPerView:i.slidesPerView??1,images:(i.items??[]).filter(N.isNotNullOrUndefined).map((e,t)=>e.image?.url?{url:e.image.url,alt:e.image.description??"",priority:a&&t<=1,width:e.image?.width??0,height:e.image?.height??0,focalPoint:e.focalPoint,tags:(0,A.mapAnnotationsToMediaTags)(e.image?.annotations,o)}:null).filter(N.isNotNullOrUndefined)})})})}],759433);let w=({items:e,headline:a,id:i,...r})=>
2305{if(0===e.length)return null;let n=!!(a?.as&&(0,u.isHTag)(a.as)),o=i&&n?`parallax-text-image-${i}-heading`:void 0,s=n&&o?"section":"div";return(0,t.jsxs)(h.Grid,{...r,id:i,tag:s,extendedWidth:!0,dataId:"list-link","aria-labelledby":o,children:[!!a&&(0,t.jsx)("div",{className:"_1ayaycb0","data-testid":"list-link-headline",children:(0,t.jsx)(v.Heading,{id:o,size:a.size,as:a.as,icon:a.icon,children:a.children})}),e.length>0&&(0,t.jsx)("ul",{children:e.map(e=>(0,t.jsx)("li",{className:"_1ayaycb1",children:(0,t.jsx)(g.PLinkPure,{children:(0,t.jsx)(T.default,{href:e.url,children:e.name})})},`list-link-item-${e.id}`))})]})};e.s(["ShopDomainComponentListLink",0,({fragmentData:e})=>{let a,{data:i,addAttributes:r}=(0,l.useComponentPreview)(e,e.id),n=i.headlineListLink?.size;return n&&(a=d.headlineSizeMap[n]),(0,t.jsx)(S.BlockSection,{children:(0,t.jsx)(w,{...r("internalName"),id:e.id,headline:{as:i.headlineListLink?.tag??void 0,children:i.headlineListLink?.text??"",icon:i.headlineListLink?.icon?{name:i.headlineListLink.icon}:void 0,size:a},items:(i.itemsListLink??[]).filter(N.isNotNullOrUndefined).map(e=>({id:e.id,name:e.resolvedLinkV2?.name??"",url:`${e.resolvedLinkV2?.slug??""}`}))})})}],757360)},265031,395409,691595,603256,e=>{"use strict";var t=e.i(843476);e.i(510193);var a=e.i(145025),i=e.i(489298),r=e.i(251677),n=e.i(69406),o=e.i(865172),s=e.i(96319),l=e.i(445469),d=e.i(363122);e.s(["ShopDomainComponentMultipleHotSpots",0,({fragmentData:e,isPreviewMode:c=!1,isSearch:u=!1})=>{let{data:h,addAttributes:m}=(0,o.useComponentPreview)(e,e.id),{localeId:p,alternateCurrency:g}=(0,n.useMarket)(),v=(0,a.useTranslations)(),f=(h.spotsLink??[]).map(e=>{let a=e?.link?.shopDomainProduct?.variants.find(e=>e.flags.isMainVariant)??null,i=a?(0,t.jsx)(l.PriceLabel,{alternateCurrency:g,isTaxIncluded:!a.prices.net,grossPriceValue:a.prices.gross?.amount?{centAmount:a.prices.gross.amount,currencyCode:a.prices.gross.currency,fractionDigits:a.prices.gross.fractionDigits}:null,grossPriceDiscountedValue:a.prices.grossDiscounted?.amount?{centAmount:a.prices.grossDiscounted.amount,currencyCode:a.prices.grossDiscounted.currency,fractionDigits:a.prices.grossDiscounted.fractionDigits}:null,priceWithDiscountCode:null,locale:p}):null,r=e.link?.shopDomainProduct,n=a?.prices;return{id:e.id,coordinates:{x:e?.axisX??0,y:e?.axisY??0},name:r?.name??e?.link?.resolvedLinkV2?.name??"",subHeadline:e?.link?.subText??"",image:a?.images.tile?.[0]?.url?{url:a.images.tile[0].url,alt:a.images.tile[0]?.alt??""}:void 0,href:e?.link?.resolvedLinkV2?.slug??"",children:i,whishlistButton:a?(0,t.jsx)(d.WishlistButton,{productData:{priceNet:n&&a.prices.net?.amount?{id:"",discounted:a.prices.netDiscounted?.amount?{value:{centAmount:a.prices.netDiscounted.amount,currencyCode:a.prices.netDiscounted.currency,fractionDigits:a.prices.netDiscounted.fractionDigits}}:null,isTaxIncluded:!a.prices.net,value:{centAmount:a.prices.net.amount,currencyCode:a.prices.net.currency,fractionDigits:a.prices.net.fractionDigits}}:null,price:n&&a.prices.gross?.amount?{id:"",discounted:a.prices.grossDiscounted?.amount?{value:{centAmount:a.prices.grossDiscounted.amount,currencyCode:a.prices.grossDiscounted.currency,fractionDigits:a.prices.grossDiscounted.fractionDigits}}:null,isTaxIncluded:!a.prices.net,value:{centAmount:a.prices.gross.amount,currencyCode:a.prices.gross.currency,fractionDigits:a.prices.gross.fractionDigits}}:null,productKey:r?.key??"",variantSku:a.sku??"",productName:r?.name??"",image:{url:a.images.tile?.[0]?.url??""},brand:r?.brand??void 0,quantity:1,productTypeName:e.link?.shopDomainProduct?.productType.name??"",facetBranch:void 0,categories:[]}}):null}}).filter(e=>!!c||!!e?.name);
2305return(0,t.jsx)(r.BlockSection,{withCoveringBackground:!0,children:(0,t.jsx)(i.MultipleHotSpots,{...m("internalName"),viewProductLinkText:v("multipleHotspot.viewProduct"),closeButtonAriaLabel:v("overlay.btn.close"),image:{url:h.image?.url??"",alt:h.image?.description??"",height:h.image?.height??0,width:h.image?.width??0,tags:(0,s.mapAnnotationsToMediaTags)(h.image?.annotations,p)},link:{href:h.link?.resolvedLinkV2?.slug??"",text:h.link?.resolvedLinkV2?.name??""},spots:f.length>0?f:(h.spotsDescription??[]).map(e=>({id:e.id,coordinates:{x:e.axisX,y:e.axisY},name:e.title,subHeadline:e?.description,whishlistButton:null})),isInline:u??!1,withBorderRadius:u??!1,initialScrollPercentage:h.initialScrollPercentage??50})})}],265031);var c=e.i(271645),u=e.i(883342),h=e.i(274845);let m=(0,c.forwardRef)(({activeTabIndex:e,aria:a,background:i="none",compact:r,onUpdate:n,size:o="small",weight:s="regular",className:l,children:d,...m},p)=>{let g=(0,c.useRef)(void 0);(0,u.useEventCallback)(g,"update",n);let v=(0,u.usePrefix)("p-tabs-bar"),f=[e,a,i,r,o,s];(0,u.useBrowserLayoutEffect)(()=>{let{current:e}=g;["activeTabIndex","aria","background","compact","size","weight"].forEach((t,a)=>e[t]=f[a])},f);let T={...m,...{children:d,suppressHydrationWarning:!0},"data-ssr":"",class:(0,u.useMergedClass)(g,l),ref:(0,h.syncRef)(g,p)};return(0,t.jsx)(v,{...T})});var p={grid:"_1uh8qke1",list:"_1uh8qke2"},g={grid:"_1uh8qke4",list:"_1uh8qke5"},v=e.i(710740);e.i(529131);var f=e.i(342893);e.i(282616);var T=e.i(332587);e.i(778498);var y=e.i(456641),I=e.i(938417),P=e.i(531710);let S=({layout:e,headline:a,items:i,id:r,...n})=>{let o="list"===e?c.Fragment:"li",s="list"===e?m:"ul",l=!!(a?.as&&(0,v.isHTag)(a.as)),d=r&&l?`navigation-inline-${r}-heading`:void 0,u=l&&d?"section":"div",[h,S]=(0,c.useState)(i.find(e=>e.active)?.position);return(0,t.jsxs)(P.Grid,{tag:u,id:r,"aria-labelledby":d,extendedWidth:!0,spaceBottom:"none",spaceTop:"list"===e?void 0:"none",...n,children:[!!a?.children&&(0,t.jsx)("div",{className:"_1uh8qke3",children:(0,t.jsx)(f.Heading,{size:a.size,as:a.as,id:d,icon:a.icon,children:a.children})}),(0,t.jsx)(s,{size:"small",className:"_1uh8qke0",...s===m?{activeTabIndex:h,onUpdate:e=>{S(e.detail.activeTabIndex)}}:{},compact:"list"===e||void 0,children:i.map(a=>(0,t.jsx)(o,{children:(0,t.jsx)(I.default,{href:a.href,className:g?.[e],"data-testid":"navigation-inline-link",target:a.newWindow?"_blank":void 0,rel:a.newWindow?"noopener noreferrer":void 0,children:(0,t.jsxs)(t.Fragment,{children:[!!a.iconName&&"grid"===e&&(0,t.jsx)(T.Icon,{name:a.iconName,color:"inherit",size:"inherit","aria-hidden":!0,"data-testid":"navigation-inline-icon"}),(0,t.jsx)(y.Text,{size:"small",className:p[e],"data-testid":"navigation-inline-text",color:"inherit",children:a.text})]})})},`navigation-item-${a.id}`))})]})};var x=e.i(736797),b=e.i(152965);e.s(["ShopDomainComponentNavigationInline",0,({fragmentData:e,currentPageId:a})=>{let i,{data:n,addAttributes:s}=(0,o.useComponentPreview)(e,e.id),l=n.headlineNavigationInline?.size;return l&&(i=b.headlineSizeMap[l]),(0,t.jsx)(r.BlockSection,{children:(0,t.jsx)(S,{...s("internalName"),id:e.id,headline:{size:i,as:n.headlineNavigationInline?.tag??void 0,icon:n.headlineNavigationInline?.icon?{name:n.headlineNavigationInline.icon}:void 0,children:n.headlineNavigationInline?.text??""},layout:n.layout,items:(n.itemsNavigationInline??[]).filter(x.isNotNullOrUndefined).map((e,t)=>({id:e.id,position:t,text:e.resolvedLinkV2?.name??"",active:e.contentPageId===a,iconName:e.icon,href:`${e.resolvedLinkV2?.slug??""}`,newWindow:e.newWindow??!1}))})})}],395409);var k=e.i(532181),D={right:"_1b5jeom7 _1b5jeom6",left:"_1b5jeom8 _1b5jeom6"},C="_1b5jeom9",R=e.i(618595),q=e.i(560140),E=e.i(930551),N=e.i(486427),A=e.i(965566),_=e.i(260830),H=e.i(287022);function j(e,t){let a,i=()=>{let{currentTime:i}=t,r=(null===i?0:i.value)/100;a!==r&&e(r),a=r};return H.frame.preUpdate(i,!0),()=>(0,H.cancelFrame)(i)}function w(e){return!("u"<typeof window)&&(e?(0,E.supportsViewTimeline)():(0,E.supportsScrollTimeline)())}var L=e.i(661327),W=e.i(783920),O=e.i(325791);let $=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),U={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function V(e,t,a,i){let r=a[t],{length:n,position:o}=U[t],s=r.current,l=a.time;r.current=Math.abs(e[`scroll${o}`]),r.scrollLength=e[`scroll${n}`]-e[`client${n}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=(0,W.progress)(0,r.scrollLength,r.current);let d=i-l;r.velocity=d>50?0:(0,O.velocityPerSecond)(r.current-s,d)}var B=e.i(344230),M=e.i(515923),G=e.i(476959),F=e.i(772846);let z={start:0,center:.5,end:1};function K(e,t,a=0){let i=0;if(e in z&&(e=z[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?i=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?i=t/100*document.documentElement.clientWidth:e.endsWith("vh")?i=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(i=t*e),a+i}let Q=[0,0],Y=[[0,0],[1,1]],X={x:0,y:0},J=new WeakMap,Z=new WeakMap,ee=new WeakMap,et=new WeakMap,ea=new WeakMap,ei=e=>e===document.scrollingElement?window:e;function er(e,{container:t=document.scrollingElement,trackContentSize:a=!1,...i}={}){if(!t)return _.noop;let r=ee.get(t);r||(r=new Set,ee.set(t,r));let n=function(e,t,a,i={}){return{measure:t=>{!function(e,t=e,a){if(a.x.targetOffset=0,a.y.targetOffset=0,t!==e){let i=t;for(;i&&i!==e;)a.x.targetOffset+=i.offsetLeft,a.y.targetOffset+=i.offsetTop,i=i.offsetParent}a.x.targetLength=t===e?t.scrollWidth:t.clientWidth,a.y.targetLength=t===e?t.scrollHeight:t.clientHeight,a.x.containerLength=e.clientWidth,a.y.containerLength=e.clientHeight}(e,i.target,a),V(e,"x",a,t),V(e,"y",a,t),a.time=t,(i.offset||i.target)&&function(e,t,a){let{offset:i=Y}=a,{target:r=e,axis:n="y"}=a,o="y"===n?"height":"width",s=r!==e?function(e,t){let a={x:0,y:0},i=e;for(;i&&i!==t;)if((0,F.isHTMLElement)(i))a.x+=i.offsetLeft,a.y+=i.offsetTop,i=i.offsetParent;else if("svg"===i.tagName){let e=i.getBoundingClientRect(),t=(i=i.parentElement).getBoundingClientRect();a.x+=e.left-t.left,a.y+=e.top-t.top}else if(i instanceof SVGGraphicsElement){let{x:e,y:t}=i.getBBox();a.x+=e,a.y+=t;let r=null,n=i.parentNode;for(;!r;)"svg"===n.tagName&&(r=n),n=i.parentNode;i=r}else break;return a}(r,e):X,l=r===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight},d={width:e.clientWidth,height:e.clientHeight};t[n].offset.length=0;let c=!t[n].interpolate,u=i.length;for(let e=0;e<u;e++){let a=function(e,t,a,i){let r=Array.isArray(e)?e:Q,n=0;
2305return"number"==typeof e?r=[e,e]:"string"==typeof e&&(r=(e=e.trim()).includes(" ")?e.split(" "):[e,z[e]?e:"0"]),(n=K(r[0],a,i))-K(r[1],t)}(i[e],d[o],l[o],s[n]);c||a===t[n].interpolatorOffsets[e]||(c=!0),t[n].offset[e]=a}c&&(t[n].interpolate=(0,B.interpolate)(t[n].offset,(0,M.defaultOffset)(i),{clamp:!1}),t[n].interpolatorOffsets=[...t[n].offset]),t[n].progress=(0,G.clamp)(0,1,t[n].interpolate(t[n].current))}(e,a,i)},notify:()=>t(a)}}(t,e,{time:0,x:$(),y:$()},i);if(r.add(n),!J.has(t)){let e=()=>{for(let e of r)e.measure(H.frameData.timestamp);H.frame.preUpdate(a)},a=()=>{for(let e of r)e.notify()},i=()=>H.frame.read(e);J.set(t,i);let n=ei(t);window.addEventListener("resize",i),t!==document.documentElement&&Z.set(t,(0,L.resize)(t,i)),n.addEventListener("scroll",i),i()}if(a&&!ea.has(t)){let e=J.get(t),a={width:t.scrollWidth,height:t.scrollHeight};et.set(t,a);let i=H.frame.read(()=>{let i=t.scrollWidth,r=t.scrollHeight;(a.width!==i||a.height!==r)&&(e(),a.width=i,a.height=r)},!0);ea.set(t,i)}let o=J.get(t);return H.frame.read(o,!1,!0),()=>{(0,H.cancelFrame)(o);let e=ee.get(t);if(!e||(e.delete(n),e.size))return;let a=J.get(t);J.delete(t),a&&(ei(t).removeEventListener("scroll",a),Z.get(t)?.(),window.removeEventListener("resize",a));let i=ea.get(t);i&&((0,H.cancelFrame)(i),ea.delete(t)),et.delete(t)}}let en=[[[[0,1],[1,1]],"entry"],[[[0,0],[1,0]],"exit"],[[[1,0],[0,1]],"cover"],[Y,"contain"]],eo={start:0,end:1};function es(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(let[t,a]of en)if(function(e,t){let a=function(e){if(2!==e.length)return;let t=[];for(let a of e)if(Array.isArray(a))t.push(a);else{if("string"!=typeof a)return;let e=function(e){let t=e.trim().split(/\s+/);if(2!==t.length)return;let a=eo[t[0]],i=eo[t[1]];if(void 0!==a&&void 0!==i)return[a,i]}(a);if(!e)return;t.push(e)}return t}(e);if(!a)return!1;for(let e=0;e<2;e++){let i=a[e],r=t[e];if(i[0]!==r[0]||i[1]!==r[1])return!1}return!0}(e,t))return{rangeStart:`${a} 0%`,rangeEnd:`${a} 100%`}}let el=new Map;function ed(e){let t={value:0},a=er(a=>{t.value=100*a[e.axis].progress},e);return{currentTime:t,cancel:a}}function ec({source:e,container:t,...a}){let{axis:i}=a;e&&(t=e);let r=el.get(t);r||(r=new Map,el.set(t,r));let n=a.target??"self",o=r.get(n);o||(o={},r.set(n,o));let s=i+(a.offset??[]).join(",");return o[s]||(a.target&&w(a.target)?es(a.offset)?o[s]=new ViewTimeline({subject:a.target,axis:i}):o[s]=ed({container:t,...a}):w()?o[s]=new ScrollTimeline({source:t,axis:i}):o[s]=ed({container:t,...a})),o[s]}function eu(e,{axis:t="y",container:a=document.scrollingElement,...i}={}){let r,n,o;if(!a)return _.noop;let s={axis:t,container:a,...i};return"function"==typeof e?function(e,t){return 2===e.length||t&&(t.target||t.offset)?er(a=>{e(a[t.axis].progress,a)},t):j(e,ec(t))}(e,s):(r=ec(s),n=s.target?es(s.offset):void 0,o=s.target?w(s.target)&&!!n:w(),e.attachTimeline({timeline:o?r:void 0,...n&&o&&{rangeStart:n.rangeStart,rangeEnd:n.rangeEnd},observe:e=>(e.pause(),j(t=>{e.time=e.iterationDuration*t},r))}))}var eh=e.i(947414),em=e.i(674008);let ep=()=>({scrollX:(0,N.motionValue)(0),scrollY:(0,N.motionValue)(0),scrollXProgress:(0,N.motionValue)(0),scrollYProgress:(0,N.motionValue)(0)}),eg=e=>!!e&&!e.current;function ev(e,t,a,i){return{factory:r=>{let n,o=()=>{eg(a)||eg(i)?q.microtask.read(o):n=eu(r,{...t,axis:e,container:a?.current||void 0,target:i?.current||void 0})};return q.microtask.read(o),()=>{(0,q.cancelMicrotask)(o),n?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}var ef=e.i(887652);function eT(e,t){let a=(0,ef.useMotionValue)(t()),i=()=>a.set(t());return i(),(0,em.useIsomorphicLayoutEffect)(()=>{let t=()=>H.frame.preRender(i,!1,!0),a=e.map(e=>e.on("change",t));return()=>{a.forEach(e=>e()),(0,H.cancelFrame)(i)}}),a}function ey(e,t,a,i){if("function"==typeof e){let t;return N.collectMotionValues.current=[],e(),t=eT(N.collectMotionValues.current,e),N.collectMotionValues.current=void 0,t}if(void 0!==a&&!Array.isArray(a)&&"function"!=typeof t){var r=e,n=t,o=a,s=i;let l=(0,eh.useConstant)(()=>Object.keys(o)),d=(0,eh.useConstant)(()=>({}));for(let e of l)d[e]=ey(r,n,o[e],s);return d}let l="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),a=t?0:-1,i=e[0+a],r=e[1+a],n=e[2+a],o=e[3+a],s=(0,B.interpolate)(r,n,o);return t?s(i):s}(t,a,i),d=Array.isArray(e)?eI(e,l):eI([e],([e])=>l(e)),c=Array.isArray(e)?void 0:e.accelerate;return c&&!c.isTransformed&&"function"!=typeof t&&Array.isArray(a)&&i?.clamp!==!1&&(d.accelerate={...c,times:t,keyframes:a,isTransformed:!0,...i?.ease?{ease:i.ease}:{}}),d}function eI(e,t){let a=(0,eh.useConstant)(()=>[]);return eT(e,()=>{a.length=0;let i=e.length;for(let t=0;t<i;t++)a[t]=e[t].get();return t(a)})}let eP=(e={})=>{let{speed:t=10,translateY:a,translateX:i}=e,r=(0,c.useRef)(null),{scrollYProgress:n}=function({container:e,target:t,...a}={}){var i;let r=(0,eh.useConstant)(ep);i=a.offset,!("u"<typeof window)&&(t?(0,E.supportsViewTimeline)()&&!!es(i):(0,E.supportsScrollTimeline)())&&(r.scrollXProgress.accelerate=ev("x",a,e,t),r.scrollYProgress.accelerate=ev("y",a,e,t));let n=(0,c.useRef)(null),o=(0,c.useRef)(!1),s=(0,c.useCallback)(()=>(n.current=eu((e,{x:t,y:a})=>{r.scrollX.set(t.current),r.scrollXProgress.set(t.progress),r.scrollY.set(a.current),r.scrollYProgress.set(a.progress)},{...a,container:e?.current||void 0,target:t?.current||void 0}),()=>{n.current?.()}),[e,t,JSON.stringify(a.offset)]);return(0,em.useIsomorphicLayoutEffect)(()=>
2305{if(o.current=!1,!(eg(e)||eg(t)))return s();o.current=!0},[s]),(0,c.useEffect)(()=>{let a;if(!o.current)return;let i=()=>{let i=eg(e),r=eg(t);(0,A.invariant)(!i,"Container ref is defined but not hydrated","use-scroll-ref"),(0,A.invariant)(!r,"Target ref is defined but not hydrated","use-scroll-ref"),i||r||(a=s())};return q.microtask.read(i),()=>{(0,q.cancelMicrotask)(i),a?.()}},[s]),r}({target:r,offset:["start end","end start"]}),o=e=>{if(!e)return;let[a,i]=e,r=e=>{let a=parseFloat(e);if(Number.isNaN(a))return e;let i=t/10*a,r=e.replace(/[0-9.-]/g,"");return r?`${i}${r}`:`${i}`};return[r(a),r(i)]},s=o(a)??["0","0"],l=o(i)??["0","0"],d=ey(n,[0,1],s),u=ey(n,[0,1],l);return{ref:r,style:{...a&&{y:d},...i&&{x:u}}}};var eS=e.i(97116),ex=e.i(177761),eb=e.i(910848),ek=e.i(929774);let eD=({focalPointImage:e,focalPointImageBelow:a,headline:i,children:r,cta:n,invertedCta:o,id:s,link:l,alignText:d="right",className:c,...u})=>{let{minWidthS:h,minWidthM:m}=(0,R.useMediaQueries)(),p=eP({speed:10,translateY:m?["0%","-70%"]:h?["0%","-20%"]:["40%","0%"]}),g=eP({speed:10,translateY:["0%","10%"]}),f=!!(i?.as&&(0,v.isHTag)(i.as)),T=s&&f?`parallax-text-image-${s}-heading`:void 0,y=f&&T?"section":"div",I=e?.tags?.length?e.tags:void 0,S=a?.tags?.length?a.tags:void 0;return(0,t.jsxs)(P.Grid,{tag:y,id:s,"aria-labelledby":T,dataId:"parallax-text-image",className:["_1b5jeom1",c].filter(Boolean).join(" "),...u,children:[(0,t.jsx)("div",{className:`_1b5jeom2 ${"left"===d?"right":""}`,children:(0,t.jsx)(ek.ThemeBoundary,{theme:"dark",children:(0,t.jsxs)(k.motion.div,{ref:p.ref,style:{...p.style},className:`_1b5jeom3 ${"left"===d?"right":""}`,"data-testid":"parallax-image",children:[(0,t.jsx)(eS.Picture,{fill:!0,src:e,containerLayout:{width:50,aspect:3/4}}),I&&(0,t.jsx)(eb.MediaTags,{className:C,tags:I})]})})}),(0,t.jsx)("div",{className:`${D[d??"right"]} `,children:(0,t.jsx)(ex.ExtendedTextStandalone,{headline:i?{...i,id:T}:void 0,cta:n,invertedCta:o,link:l,dataId:"parallax-extended-text",children:r})}),a&&(0,t.jsx)("div",{className:`_1b5jeom4 ${"left"===d?"right":""}`,children:(0,t.jsx)(ek.ThemeBoundary,{theme:"dark",children:(0,t.jsxs)(k.motion.div,{ref:g.ref,style:{...g.style},className:`_1b5jeom5 ${"left"===d?"right":""}`,"data-testid":"parallax-image-below",children:[(0,t.jsx)(eS.Picture,{fill:!0,src:a,containerLayout:{width:50,aspect:4/3}}),S&&(0,t.jsx)(eb.MediaTags,{className:C,tags:S})]})})})]})};var eC=e.i(845582);e.s(["ShopDomainComponentParallaxTextImage",0,({fragmentData:e})=>{let{data:a}=(0,o.useComponentPreview)(e,e.id),{localeId:i}=(0,n.useMarket)(),l="left";"right"===a.alignText&&(l="right");let d=a.items[0],c=a.items[1];return d?.image?.url&&c?.image?.url?(0,t.jsx)(r.BlockSection,{children:(0,t.jsx)(eD,{id:e.id,headline:a.headlineParallaxTextImage?{text:a.headlineParallaxTextImage,as:a.headlineTag??"p"}:void 0,alignText:l,cta:a.cta?{linkName:a.cta?.resolvedLinkV2?.name??"",linkUrl:a.cta?.resolvedLinkV2?.slug??"",target:a.cta?.newWindow?"_blank":"_self"}:void 0,invertedCta:a.invertedCta?{linkName:a.invertedCta?.resolvedLinkV2?.name??"",linkUrl:a.invertedCta?.resolvedLinkV2?.slug??"",target:a.invertedCta?.newWindow?"_blank":"_self"}:void 0,link:a.link?{linkName:a.link?.resolvedLinkV2?.name??"",linkUrl:a.link?.resolvedLinkV2?.slug??"",target:a.link?.newWindow?"_blank":"_self"}:void 0,focalPointImage:{url:d.image.url??"",alt:d.image.description??"",focalPoint:{x:d?.focalPoint?.x??0,y:d?.focalPoint?.y??0},width:d?.image?.width??0,height:d?.image?.height??0,tags:(0,s.mapAnnotationsToMediaTags)(d.image.annotations,i)},focalPointImageBelow:{url:c.image.url??"",alt:c.image.description??"",focalPoint:{x:c?.focalPoint?.x??0,y:c?.focalPoint?.y??0},width:c?.image?.width??0,height:c?.image?.height??0,tags:(0,s.mapAnnotationsToMediaTags)(c.image.annotations,i)},children:(0,t.jsx)(eC.RichText,{document:a?.bodyParallaxTextImage?.json,links:[]})})}):null}],691595);var eR=e.i(446218);let eq=(0,c.createContext)({activeSlideId:null});eq.displayName="ProductFocusSlider";let eE=({children:e,slideIds:a,slideTitles:i,slideTexts:r,slideImages:n})=>{let o=(({slideIds:e,slideTitles:t,slideTexts:a,slideImages:i})=>{let[r,n]=(0,c.useState)(e[0]??null);return{slideIds:e,slideTitles:t,slideTexts:a,activeSlideId:r,hasTagOnAnySlide:i.some(e=>(e.tags?.length??-1)>0),onCarouselUpdate:e=>{n(e)}}})({slideIds:a,slideTitles:i,slideTexts:r,slideImages:n});return(0,t.jsx)(eq.Provider,{value:o,children:e})},eN=()=>{let e=(0,c.use)(eq);if(void 0===e)throw Error("`useProductFocusSlider` must be within a `ProductFocusSliderContextProvider`");return e};var eA=e.i(657688),e_=e.i(959411),eH=e.i(538482);let ej=({id:e,title:a,text:i,image:r,link:n,price:o,locale:s,priceLabelTranslations:l})=>{let{activeSlideId:d,slideIds:c,hasTagOnAnySlide:u}=eN(),h=Math.min(Math.abs(c.indexOf(e)-(d?c.indexOf(d):0)),2)/2,{tags:m,...p}=r,g=null;u&&m?g=(0,t.jsx)(eb.MediaTags,{tags:m}):u&&!m&&(g=(0,t.jsx)("div",{className:"_1rd9nxyf","aria-hidden":"true"}));let v=(0,t.jsxs)(t.Fragment,{children:[g,(0,t.jsx)("div",{className:"_1rd9nxyc",children:(0,t.jsx)(eA.default,{src:p.url,alt:p.description??"",fill:!0,className:"_1rd9nxyd"})}),(0,t.jsx)(e_.VisuallyHidden,{asChild:!0,"aria-hidden":"true",children:(0,t.jsx)(f.Heading,{align:"center",size:"small",children:a})}),(0,t.jsx)(e_.VisuallyHidden,{asChild:!0,children:(0,t.jsx)(y.Text,{"data-testid":"text",as:"p",size:"small","aria-hidden":"true",children:i})}),!!o&&l&&(0,t.jsx)(eH.PriceLabel,{className:"_1rd9nxye",isTaxIncluded:o.isTaxIncluded,grossPriceValue:o.grossPriceValue??null,grossPriceDiscountedValue:o.grossPriceDiscountedValue??null,priceWithDiscountCode:null,locale:s??"en-US",...l})]}),T={"data-testid":"product-focus-tile",id:e,className:"_1rd9nxyb",style:{opacity:1-h*h*.67}};return n?(0,t.jsx)(I.default,{...T,href:n.href,target:n.target??"_self","aria-label":`${a}. ${i}`,children:v}):(0,t.jsx)("div",{...T,"aria-label":`${a}. ${i}`,children:v})},ew=e=>(0,c.isValidElement)(e)&&e.type===ej,eL=({headline:e,id:a,children:i,hasTitles:r,hasTexts:n,...o})=>{let{onCarouselUpdate:s,slideIds:l,slideTitles:d,slideTexts:u,activeSlideId:h}=eN(),{as:m="h2",text:p,size:g="x-large"}=e,T=!!(m&&(0,v.isHTag)(m)),I=a&&T?`product-focus-slider-${a}
2305-heading`:void 0,P=a&&T&&I?"section":c.Fragment,S=h?l.indexOf(h):0,x=d[S]??null,b=u[S]??null;return(0,t.jsxs)(P,{...o,"aria-labelledby":I,children:[(0,t.jsxs)("div",{className:"_1rd9nxy2",children:[(0,t.jsx)("div",{className:"_1rd9nxy4 _1rd9nxy3","aria-hidden":"true"}),(0,t.jsxs)(eR.PCarousel,{onUpdate:e=>s(l[e.detail.activeIndex]??null),alignHeader:"center",width:"extended",headingSize:g,"data-testid":"product-focus-slider",slidesPerPage:"auto",focusOnCenterSlide:!0,trimSpace:!1,children:[(0,t.jsx)(m,{slot:"heading",id:I,children:p}),i]}),(0,t.jsx)("div",{className:"_1rd9nxy5 _1rd9nxy3","aria-hidden":"true"})]}),(0,t.jsxs)("div",{className:"_1rd9nxy6",children:[r&&(0,t.jsx)(f.Heading,{align:"center",size:"medium",className:"_1rd9nxy9 _1rd9nxy8","aria-hidden":"true",children:x??""},`title-${S}`),n&&(0,t.jsx)(y.Text,{as:"p",size:"small",className:"_1rd9nxya _1rd9nxy8","aria-hidden":"true",children:b??""},`text-${S}`)]})]})},eW=({children:e,...a})=>{let i=c.Children.toArray(e);if(!c.Children.count(e)||!i.every(ew))return console.error("ProductFocusSlider requires at least one ProductFocusTile and doesn't accept any other types of children."),null;let r=i.map(e=>e.props.id),n=i.map(e=>e.props.title),o=i.map(e=>e.props.text),s=i.map(e=>e.props.image),l=n.some(Boolean),d=o.some(Boolean);return(0,t.jsx)(eE,{slideIds:r,slideTitles:n,slideTexts:o,slideImages:s,children:(0,t.jsx)(eL,{hasTitles:l,hasTexts:d,...a,children:e})})};e.s(["ShopDomainComponentProductFocusSlider",0,({fragmentData:e})=>{let{localeId:a}=(0,n.useMarket)(),{data:i,addAttributes:l}=(0,o.useComponentPreview)(e,e.id);return(0,t.jsx)(r.BlockSection,{children:(0,t.jsx)(eW,{...l("internalName"),headline:{text:i.headlineFocusSlider??"",size:i.headlineSize??void 0,as:i.headlineTag??void 0},id:i.id,children:i.items.map((e,r)=>(0,t.jsx)(ej,{id:`${i.id}-${e.id}`,title:e.link?.resolvedLinkV2?.name??e.link?.text??"",text:e.link?.subText??"",link:e.link?.resolvedLinkV2?.slug&&e.link?.resolvedLinkV2?.name?{href:e.link?.resolvedLinkV2?.slug??"",target:e.link?.newWindow?"_blank":"_self"}:void 0,image:{url:e.image.url,description:e.image.description??"",tags:(0,s.mapAnnotationsToMediaTags)(e.image.annotations,a)},locale:a,price:e.prices?{grossPriceDiscountedValue:e.prices.grossDiscounted?{centAmount:e.prices.grossDiscounted.amount,currencyCode:e.prices.grossDiscounted.currency,fractionDigits:e.prices.grossDiscounted.fractionDigits}:null,grossPriceValue:e.prices.gross?{centAmount:e.prices.gross.amount,currencyCode:e.prices.gross.currency,fractionDigits:e.prices.gross.fractionDigits}:null,isTaxIncluded:!e.prices.net}:void 0},`${i.id}-${e.id}-${r}`))})})}],603256)},366360,719376,344725,458153,501347,456672,475870,151734,618627,250067,11063,e=>{"use strict";e.s(["ShopDomainComponentSection",()=>I],719376);var t=e.i(843476),a=e.i(271645);e.i(510193);var i=e.i(145025),r=e.i(251677),n=e.i(490499),o=e.i(736797),s=e.i(605976),l=e.i(69406),d=e.i(360521),c=e.i(18101),u=e.i(660993),h=e.i(496891),m=e.i(152359),p=e.i(213371),g=e.i(764081);e.s(["ShopDomainComponentProductSlider",0,({fragmentData:e})=>{let{localeId:v,marketplaceId:f}=(0,l.useMarket)(),T=(0,i.useTranslations)(),y=`${e.internalName}-${e.id}`,I=e.headlineTag??"h2",P=e.products.map(e=>(0,u.populateProductNodeLightBff)({product:e})).filter(o.isNotNullOrUndefined),S=(P??[]).slice(0,s.PRODUCT_SLIDER_ITEMS_PER_VIEW_DESKTOP),x=(0,a.useMemo)(()=>S.map((0,c.populateProductTile)(y,f,v)),[v,f,S,y]),b=(0,a.useMemo)(()=>S.map((e,t)=>T("product.slider.a11y.item",{position:String(t+1),max:String(S.length)})),[S,T]);if(e.type===d.ShopDomainComponentProductSliderType.LastViewedSlider)return(0,t.jsx)(r.BlockSection,{children:(0,t.jsx)(h.LastViewedProductsSlider,{description:e.description??void 0})});let k=I&&(0,n.getDirectHeadingSuccessor)(I),D={heading:e.headline?{text:e.headline,tag:I}:void 0,description:e.description??void 0,name:e.internalName??"",uId:y,link:{href:e.link?.resolvedLinkV2?.slug??"",name:e.link?.resolvedLinkV2?.name??""},productData:S},C=x.map(({productData:e,...a},i)=>(0,t.jsx)(g.ProductTile,{...a,titleTag:k,productData:{ariaLabel:b[i],...e},imageSizes:p.PRODUCT_TILE_IMAGE_SIZES},e.dataId));return e.type===d.ShopDomainComponentProductSliderType.AlgoliaSlider?(0,t.jsx)(m.ProductRecommendationsSliders,{name:e.internalName??"",headline:e.headline??"",description:e.description??void 0,pinnedItems:e.pinProductsKeys,limitations:e.limitations,children:P.length>0?(0,t.jsx)(p.ProductSlider,{...D,children:C}):void 0}):(0,t.jsx)(r.BlockSection,{children:(0,t.jsx)(p.ProductSlider,{...D,children:C})})}],366360);var v=e.i(251306),f=e.i(477409),T=e.i(877457);let y=e=>!!e&&"object"==typeof e&&"string"==typeof e.id&&"string"==typeof e.__typename,I=({fragmentData:e,...a})=>{let i=(()=>{let{user:e}=(0,f.useUser)();return(e?.vehicles??[]).length>0?"vehicle_owner":e?"logged_in":"guest"})();return e.userGroup&&i.toString()!==e.userGroup?null:(0,t.jsx)(v.InterleavedBlockSection,{theme:e.theme,children:e.content.filter(y).map(i=>"ShopDomainComponentProductSlider"===i.__typename?(0,t.jsx)(T.CMSComponentRenderer,{entry:i,specificProps:{...a,theme:e.theme,productInfos:i.productInfos}},i.id):(0,t.jsx)(T.CMSComponentRenderer,{entry:i,specificProps:{...a,theme:e.theme}},i.id))})};var P=e.i(871718),S={first:"_1p6r5ae6",default:"_1p6r5ae7"},x=e.i(531710);e.i(529131);var b=e.i(342893),k=e.i(845582);let D=({heading:e,text:a,isFirst:i})=>{let{text:r,tag:n="p",size:o}=e??{};return(0,t.jsxs)("div",{className:S[i?"first":"default"],children:[(0,t.jsx)(b.Heading,{as:n,size:o,className:"_1p6r5ae5 _1p6r5ae3",children:r}),(0,t.jsx)("div",{className:"_1p6r5ae4 _1p6r5ae3",children:(0,t.jsx)(k.RichText,{document:a,links:[]})})]})},C=({sections:e,showMoreLabel:i,showLessLabel:r,...n})=>{let[o,s]=(0,a.useState)(!1);return(0,t.jsx)(x.Grid,{extendedWidth:!0,dataId:"component-seo-text-block",...n,children:(0,t.jsxs)("div",{className:"_1p6r5ae0",children:[e.map((e,a)=>(0,t.jsx)("div",{"data-testid":a>0&&!o?"seo-section-hidden":"seo-section",className:`_1p6r5ae1 ${a>0&&!o?"isHidden":""}`,children:(0,t.jsx)(D,{isFirst:0===a,heading:{text:e.heading.text,tag:e.heading.tag,size:e.heading.size},text:e.text})},e.id)),e.length>1&&(0,t.jsx)("div",{className:"_1p6r5ae2","data-testid":"seo-section-block-button",children:(0,t.jsx)(P.PButtonPure,{type:"button",onClick:()=>s(!o),"data-testid":"collapsible-toggle",icon:o?"arrow-head-up":"arrow-head-down",children:o?r:i})})]})})};var R=e.i(865172),q=e.i(152965);e.s(["ShopDomainComponentSeoTextBlock",0,({fragmentData:e})=>{let a=(0,i.useTranslations)(),{data:n,addAttributes:o}=(0,R.useComponentPreview)(e,e.id);return(0,t.jsx)(r.BlockSection,{children:(0,t.jsx)(C,{...o("internalName"),showMoreLabel:a("global.text.read.more"),showLessLabel:a("global.text.read.less"),sections:n.sections.map(e=>({heading:{text:e.headline,size:q.headlineSizeMap[e.headlineSize]??e.headlineSize,tag:e.headlineTag},id:e.id,text:e.text}))})})}],344725);var E={base:"kiggme1",grid:"kiggme2"},N=e.i(97116),A=e.i(929774),_=e.i(910848);let H=({focalPointImage:e,isPriority:a=!1,isGrid:i=!1,tags:r,...n})=>(0,t.jsx)(x.Grid,{basicWidth:i,dataId:"single-image-grid",...n,children:(0,t.jsx)(A.ThemeBoundary,{theme:"dark",children:(0,t.jsxs)("div",{className:"kiggme0","data-testid":"single-image",children:[(0,t.jsx)(N.Picture,{className:E[i?"grid":"base"],"data-testid":"single-image-img",containerLayout:{base:{width:100,aspect:1},s:{width:100,aspect:16/9}},fill:!0,src:e,preload:a,fetchPriority:a?"high":"auto"}),r&&(0,t.jsx)(_.MediaTags,{tags:r,className:"kiggme3"})]})})});var j=e.i(96319);e.s(["ShopDomainComponentSingleImage",0,({fragmentData:e,isPriority:a=!1})=>{let{data:i,addAttributes:n}=(0,R.useComponentPreview)(e,e.id),{localeId:o}=(0,l.useMarket)();
2305return(0,t.jsx)(r.BlockSection,{withCoveringBackground:!i.isGrid,children:(0,t.jsx)(H,{...n("internalName"),isPriority:a,isGrid:i.isGrid??!1,focalPointImage:{url:i.image?.image?.url??"",alt:i.image?.image?.description??"",focalPoint:i.image?.focalPoint??void 0,width:i.image?.image?.width??0,height:i.image?.image?.height??0},tags:(0,j.mapAnnotationsToMediaTags)(i.image?.image?.annotations,o)})})}],458153);var w=e.i(898228);e.s(["ShopDomainComponentSurvey",0,({fragmentData:{welcomeView:e,summaryView:a,questions:i,internalName:r}})=>(0,t.jsx)(w.ShopSurveySection,{id:r,welcomeView:e?.headline&&e?.buttonLabel?{headline:e?.headline,ctaLabel:e?.buttonLabel}:void 0,summaryView:{headline:a.headline,text:a.text,ctaLabel:a.buttonLabel},questions:i.map(({question:e,id:t,startBoundLabel:a,endBoundLabel:i,textArea:r,range:n})=>({id:t,question:e,type:"likert",range:n,startBoundLabel:a,endBoundLabel:i,textArea:r?{label:r.label,maxLength:r.maxLength??void 0,placeholder:r.placeholder??void 0}:void 0}))??[]})],501347);var L=e.i(928419),W=e.i(125791),O=(0,W.createRuntimeFn)({defaultClassName:"to39530",variantClassNames:{col:{two:"to39531",three:"to39532",four:"to39533"}},defaultVariants:{},compoundVariants:[]}),$={"3/4":"to39537 to39536","16/9":"to39538 to39536"},U=e.i(170332);e.i(778498);var V=e.i(456641),B=e.i(618566),M=e.i(883342),G=e.i(274845);let F=(0,a.forwardRef)(({align:e="bottom",aria:i,aspectRatio:r="4/3",compact:n=!1,description:o,download:s,gradient:l=!1,href:d,label:c,rel:u,size:h="medium",target:m="_self",weight:p="semi-bold",className:g,children:v,...f},T)=>{let y=(0,a.useRef)(void 0),I=(0,M.usePrefix)("p-link-tile"),P=[e,i,r,n,o,s,l,d,c,u,h,m,p];(0,M.useBrowserLayoutEffect)(()=>{let{current:e}=y;["align","aria","aspectRatio","compact","description","download","gradient","href","label","rel","size","target","weight"].forEach((t,a)=>e[t]=P[a])},P);let S={...f,...{children:v,suppressHydrationWarning:!0},"data-ssr":"",class:(0,M.useMergedClass)(y,g),ref:(0,G.syncRef)(y,T)};return(0,t.jsx)(I,{...S})}),z=({onClick:e,disableNextLink:i,href:r,...n})=>{let o=(0,B.useRouter)(),s=(0,a.useCallback)(t=>{i?e?.(t):(t.preventDefault(),e?.(t),o.push(r))},[e,o,r,i]);return(0,t.jsx)(F,{href:r,onClick:s,gradient:!0,...n})};e.s(["LinkTile",0,z],456672);let K=({headline:e,description:a,items:i,id:r,onClickItem:n,...o})=>{let s;return i?(2===i.length&&(s="two"),(3===i.length||i.length>4)&&(s="three"),i?.length===4&&(s="four"),(0,t.jsxs)(x.Grid,{...o,dataId:"teaser-grid",children:[(e||a)&&(0,t.jsxs)("div",{className:"to39534",children:[e&&(0,t.jsx)(b.Heading,{size:"large",as:e.as,icon:e.icon,id:r,children:e.children}),a&&(0,t.jsx)(V.Text,{className:"to39535",as:"p","data-testid":"description",children:a})]}),i&&i.length>0&&(0,t.jsx)("div",{className:L.pdsExtended,children:(0,t.jsx)("div",{className:[O({col:s})].join(" "),children:i.map(e=>{let a,r=e.aspectRatio??"3/4";e.aspectRatio?a={width:100,aspect:U.aspectRatioToNumber[e.aspectRatio]}:1===i.length?(a={base:{width:100,aspect:16/9},xs:{width:100,aspect:9/16}},r={base:"9/16",xs:"16/9"}):2===i.length||4===i.length?a={base:{width:100,aspect:3/4},s:{width:50,aspect:3/4}}:(3===i.length||i.length>4)&&(a={base:{width:100,aspect:3/4},s:{width:50,aspect:3/4},m:{width:33.33,aspect:3/4}});let o=(0,t.jsx)(N.Picture,{src:e.focalPointImage,containerLayout:a,className:"to39539",fill:!0});return e.link?.href?(0,t.jsxs)(z,{description:e.link.name,label:e.link.name,size:"inherit",className:"to39536",href:e.link.href,target:e.link.target??"_self",aspectRatio:r,align:"top",compact:!0,"data-testid":"link-tile",disableNextLink:e.link?.target==="_blank",onClick:n,style:{colorScheme:"light"===e.background?"light":"dark"},gradient:"light"!==e.background,children:[e.tags&&(0,t.jsx)(_.MediaTags,{tags:e.tags,slot:"header"}),o]},e.index):(0,t.jsxs)("div",{className:$[1===i.length?"16/9":"3/4"],children:[e.tags&&(0,t.jsx)(A.ThemeBoundary,{theme:"dark",children:(0,t.jsx)(_.MediaTags,{tags:e.tags,className:"to3953b"})}),o]},e.index)})})})]})):null};e.s(["ShopDomainComponentTeaserGrid",0,({fragmentData:e,...a})=>{let{data:i,addAttributes:n}=(0,R.useComponentPreview)(e,e.id),{localeId:s}=(0,l.useMarket)();return e?.items.length===0?null:(0,t.jsx)(r.BlockSection,{children:(0,t.jsx)(K,{...n("focalPointImage"),id:e.id,headline:i.headlineComponent?{children:i.headlineComponent.text,as:i.headlineComponent.tag??void 0,size:i.headlineComponent.size??void 0,icon:i.headlineComponent?.icon?{name:i.headlineComponent.icon}:void 0}:void 0,description:i.description??"",items:(({items:e,isPriority:t,locale:a})=>e.items.filter(o.isNotNullOrUndefined).map((e,i)=>({index:i,isPriority:t,link:{name:e.link?.resolvedLinkV2?.name??"",href:e.link?.resolvedLinkV2?.slug??"",target:e.link?.newWindow?"_blank":"_self"},background:e.background??"dark",focalPointImage:{url:e.focalPointImage?.image?.url??"",focalPoint:e.focalPointImage?.focalPoint,width:e.focalPointImage?.image?.width??0,height:e.focalPointImage?.image?.height??0,alt:e.focalPointImage?.image?.description??""},tags:(0,j.mapAnnotationsToMediaTags)(e.focalPointImage?.image?.annotations,a)})))({items:i,locale:s}),...a}
2305)})}],475870);var Q=e.i(622779),Y=e.i(127182),X=e.i(959411),J=(0,W.createRuntimeFn)({defaultClassName:"_35o3581",variantClassNames:{contentAlignment:{center:"_35o3582","bottom-start":"_35o3583"}},defaultVariants:{},compoundVariants:[]}),Z=(0,W.createRuntimeFn)({defaultClassName:"_35o3585",variantClassNames:{contentAlignment:{center:"_35o3586","bottom-start":"_35o3587"}},defaultVariants:{},compoundVariants:[]}),ee=(0,W.createRuntimeFn)({defaultClassName:"_35o3588",variantClassNames:{contentAlignment:{center:"_35o3589","bottom-start":"_35o358a"}},defaultVariants:{},compoundVariants:[]}),et=(0,W.createRuntimeFn)({defaultClassName:"_35o358b",variantClassNames:{spacing:{medium:"_35o358c",small:"_35o358d"},contentAlignment:{center:"_35o358e","bottom-start":"_35o358f"}},defaultVariants:{},compoundVariants:[]}),ea="_35o358g",ei=e.i(710740),er=e.i(291106),en=(0,W.createRuntimeFn)({defaultClassName:"_42jwm77",variantClassNames:{containerVariant:{hero:"_42jwm78","block-section":"_42jwm79"},contentVariant:{center:"_42jwm7a","bottom-start":"_42jwm7b"},backgroundBlendEdge:{none:"_42jwm7c",bottom:"_42jwm7d",top:"_42jwm7e","top-bottom":"_42jwm7f"},dimIntensity:{none:"_42jwm7g",soft:"_42jwm7h",hard:"_42jwm7i"}},defaultVariants:{},compoundVariants:[]}),eo=(0,W.createRuntimeFn)({defaultClassName:"_42jwm7j",variantClassNames:{position:{center:"_42jwm7k","bottom-start":"_42jwm7l _42jwm76"},rowGap:{small:"_42jwm7m",medium:"_42jwm7n",large:"_42jwm7o"}},defaultVariants:{},compoundVariants:[]}),es=e.i(996006);e.i(279634);var el=e.i(81612);let ed=(0,a.forwardRef)(({isHero:e,dimIntensity:i="none",blendFromBackgroundAt:r="none",className:n="",as:o,contentAlignment:s="bottom-start",contentSpacing:l="medium",dataId:d,children:c,style:u,backgroundMedia:h,...m},p)=>{let{type:g,...v}=h,{currentValue:f,activeMinBreakpoint:T}=(0,es.useResponsiveProp)(v),y=(0,a.useRef)(null);(0,a.useImperativeHandle)(p,()=>y.current,[]);let I=null;f&&(I="video"===h.type?(0,t.jsx)(el.Video.Player,{className:"_42jwm7p",video:f.video},`video-${T}-${f.video.url}`):(0,t.jsx)(N.Picture,{style:{zIndex:-2},src:h,containerLayout:{base:{width:100,aspect:3/4},xs:{width:100,aspect:1},s:{width:100,aspect:4/3},m:{width:100,aspect:16/9}},fill:!0,preload:e,fetchPriority:e?"high":"auto"}));let P=(0,t.jsxs)("div",{className:"_42jwm75",children:[I,(0,t.jsx)("div",{className:eo({position:s,rowGap:l}),"data-testid":`${d}-content-wrapper`,children:c})]});return(0,t.jsx)(A.ThemeBoundary,{theme:"dark",children:(0,t.jsx)(x.Grid,{spaceTop:"none",applyGridPlacementToChildren:!0,"data-hero":e,className:[n,en({containerVariant:e?"hero":"block-section",contentVariant:s,dimIntensity:i,backgroundBlendEdge:r})].join(" "),"data-testid":d,"data-dim-intensity":i,style:u,tag:o??"section",ref:y,...m,children:"video"===h.type?(0,t.jsx)(el.Video.Root,{videoRef:y,children:P}):P})})});var ec=e.i(938417),eu=e.i(879165);let eh=["wordmarkTitle","headline","subline","ctaLinks"],em=new Set(["3xl","4xl","5xl","display-medium","display-large"]),ep=e=>{let i,r,n,o,s,{isHero:l,id:d,internalName:c,blendFromBackgroundAt:u,backgroundMedia:h,headline:m,subline:p,wordmarkTitle:g,ctaLinks:v,style:f,className:T,contentAlignment:y="bottom-start",animation:I,videoControls:P,videoControlLabels:S,...x}=e,{enabled:k,getInViewAnimationAttrs:D}=(o=eh.filter(t=>void 0!==e[t]),{enabled:e.animation?.inViewAnimation.enabled,getInViewAnimationAttrs:t=>({"data-animate":e.animation?.inViewAnimation.enabled||void 0,style:{"--stagger-index":e.animation?.inViewAnimation.stagger?o.indexOf(t):void 0}})}),C=m?.as&&!!(0,ei.isHTag)(m?.as),R=d&&C?`teaser-${d}-heading`:void 0;g||m?g&&"porsche"===g?i=(0,t.jsx)(Y.PWordmark,{...D("wordmarkTitle"),size:"inherit",className:`scheme-dark ${ea}`}):g&&"porsche-design"===g?i=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(X.VisuallyHidden,{id:R,children:"Porsche Design Content"}),(0,t.jsx)(er.Icon.PorscheDesign,{...D("wordmarkTitle"),className:ea,color:"primary",alt:"Porsche Design"})]}):m&&(i=(0,t.jsx)(b.Heading,{...D("headline"),color:"primary",size:m?.size??"large",as:m?.as,icon:m?.icon,
2305className:"_35o3580",id:R,children:m?.title})):(console.warn("Teaser component needs either a headline or a wordmarkTitle"),i=null),p&&(r=(0,t.jsx)(V.Text,{...D("subline"),className:J({contentAlignment:y}),children:p}));let q=null;if("video"===h.type){let{videoControls:a,videoControlLabels:i}=e;q=(0,t.jsx)(el.Video.PlaybackControls,{id:d,ariaLabelledBy:`teaser-headline-${d}`,buttonGroupDirection:{base:"row"},muteOnLabel:i.muteOnLabel,muteOffLabel:i.muteOffLabel,playLabel:i.playLabel,pauseLabel:i.pauseLabel,...a})}let E=null;e.tags&&e.tags.length>0&&(E=(0,t.jsx)(_.MediaTags,{"data-slot":"tags",tags:e.tags}));let N=null;(q||E)&&("bottom-start"===y?N=(0,t.jsxs)("div",{className:"_35o3584",children:[E,q]}):"center"===y&&q?N=q:"center"===y&&!q&&E&&(N=E));let A=v?.map(({href:e,title:i,variant:r,target:n,onClick:o,internalName:s})=>(0,a.createElement)(Q.PLink,{...D("ctaLinks"),key:`${e}-${i}`,onClick:()=>{o&&o({ctaId:s,bannerId:c,buttonType:"link",href:e,title:i})},variant:r,className:"scheme-dark","aria-labelledby":R},(0,t.jsx)(ec.default,{href:e,target:n,children:i}))),H=null;(A?.length??0)>1?H=(0,t.jsx)("div",{className:ee({contentAlignment:y}),children:A}):A?.length===1&&A[0]?[H]=A:H=null;let j=null;"bottom-start"===y&&H?j=H:"center"===y&&q&&E&&(j=E),"center"===y&&(n=p||v?.find(e=>"secondary"===e.variant)?"hard":"soft");let w=void 0===(s=m?.size)||em.has(s)?"medium":"small",L=i&&r?(0,t.jsxs)("div",{"data-testid":"teaser-title-group",className:et({spacing:w,contentAlignment:y}),children:[i,r]}):null,W=(0,t.jsxs)(ed,{...x,isHero:l,dataId:d,dimIntensity:n,blendFromBackgroundAt:u,contentAlignment:y,contentSpacing:"medium",backgroundMedia:h,style:f,className:T,as:i?"section":"div","aria-labelledby":R,children:[L??i,L?null:r,"center"===y&&H,(j||N)&&(0,t.jsxs)("div",{className:Z({contentAlignment:y}),children:[j,N]})]});return k?(0,t.jsx)(eu.RevealInView,{asScopeParent:!0,children:W}):W};e.s(["Teaser",0,ep],151734);var eg=e.i(636137);e.s(["ShopDomainComponentTeaserTile",0,({fragmentData:e,dynamicHeadline:a,isPriority:i=!1})=>{let{trackEvent:n}=(0,eg.useAnalytics)(),{data:o,addAttributes:s}=(0,R.useComponentPreview)(e,e.id),{localeId:d}=(0,l.useMarket)(),c=e=>{n({eventName:"GeneralClick",payload:{type:"BannerCTA",componentClick:{clickElementId:e.ctaId,clickElementType:e.buttonType,clickElementName:e.title,targetUrl:e.href}}})},u={inViewAnimation:{enabled:!1}};"None"!==e.animation&&(u={inViewAnimation:{enabled:!0,stagger:!0}});let h=o.focalPointImageMobile?.image?.url?{url:o.focalPointImageMobile.image.url,alt:o.focalPointImageMobile.image.description??"",focalPoint:o.focalPointImageMobile.focalPoint,width:o.focalPointImageMobile.image.width??0,height:o.focalPointImageMobile.image.height??0}:void 0,m=o.focalPointImage?.image?.url?{url:o.focalPointImage.image.url,alt:o.focalPointImage.image.description??"",focalPoint:o.focalPointImage.focalPoint,width:o.focalPointImage.image.width??0,height:o.focalPointImage.image.height??0}:void 0,p=[];o.link?.resolvedLinkV2?.slug&&o.link?.resolvedLinkV2?.name&&p.push({href:o.link?.resolvedLinkV2?.slug??"",internalName:o.link?.internalName??"",title:o.link?.resolvedLinkV2?.name??"",variant:o.link?.type==="button_secondary"?"secondary":"primary",target:o.link?.newWindow?"_blank":"_self",onClick:c}),o.secondaryLink?.resolvedLinkV2?.slug&&o.secondaryLink?.resolvedLinkV2?.name&&p.push({href:o.secondaryLink?.resolvedLinkV2?.slug??"",internalName:o.secondaryLink?.internalName??"",title:o.secondaryLink?.resolvedLinkV2?.name??"",variant:"secondary",target:o.secondaryLink?.newWindow?"_blank":"_self",onClick:c});let g="display-large",v=o.headlineComponent?.size;v&&(g=q.headlineSizeMap[v]);let f=(0,j.mapAnnotationsToMediaTags)(o.focalPointImage?.image?.annotations??o.focalPointImageMobile?.image?.annotations,d);
2305return(0,t.jsx)(r.BlockSection,{withCoveringBackground:!0,children:(0,t.jsx)(ep,{...s("internalName"),id:e.id,internalName:e.internalName??"",backgroundMedia:m&&!h?{type:"image",base:m}:m&&h?{type:"image",base:h,s:m}:!m&&h?{type:"image",base:h}:{type:"image",base:{url:"",alt:"",width:0,height:0}},tags:f,ctaLinks:p.length>0?p:void 0,isHero:o.isHero??i,blendFromBackgroundAt:o.gradient??"bottom",headline:{as:o.headlineComponent?.tag??void 0,icon:o.headlineComponent?.icon?{name:o.headlineComponent.icon}:void 0,title:a??o.headlineComponent?.text??"",size:g},subline:o.subline??void 0,wordmarkTitle:"none"===o.wordmarkTitle?void 0:o.wordmarkTitle??void 0,contentAlignment:o.contentAlignment??void 0,animation:u})})}],618627);var ev={inlineStart:"lqf0j92 lqf0j91",inlineEnd:"lqf0j93 lqf0j91"},ef={inlineStart:"lqf0j94",inlineEnd:"lqf0j95"},eT=e.i(177761);let ey=({id:e,focalPointImage:i,headline:r,children:n,cta:o,invertedCta:s,link:l,alignText:d="right",video:c,videoControlLabels:u,...h})=>{let m=!!(r?.as&&(0,ei.isHTag)(r.as)),p=e&&m?`text-image-${e}-heading`:void 0,g=m&&p?"section":"div",v=(0,a.useRef)(null),f=r?{...r,id:p}:void 0;if(!i&&!c)return console.warn("TextImage component needs either an image or a video"),null;let T=null;if(c&&u){let{tags:e,...a}=c;T=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(el.Video.Player,{video:a,thumbnailSizes:"(min-width: 480px) 50vw, 100vw"}),(0,t.jsxs)(el.Video.OverlayContent,{layout:"fluid-indentation",children:[e&&(0,t.jsx)(_.MediaTags,{tags:e}),(0,t.jsx)(el.Video.PlaybackControls,{showMuteButton:a.showMuteButton,muteOnLabel:u.muteOnLabel,muteOffLabel:u.muteOffLabel,playLabel:u.playLabel,pauseLabel:u.pauseLabel})]})]})}else if(i){let{tags:e,...a}=i;T=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N.Picture,{fill:!0,src:a,containerLayout:{base:{aspect:1,width:100},s:{aspect:1,width:50}}}),e&&(0,t.jsx)(_.MediaTags,{className:"lqf0j96",tags:e})]})}let y=(0,t.jsx)("div",{className:ev["left"===d?"inlineEnd":"inlineStart"],"data-testid":"image",ref:v,children:T});return(0,t.jsxs)(x.Grid,{dataId:"text-image",tag:g,"aria-labelledby":p,...h,children:[c&&u?(0,t.jsx)(el.Video.Root,{videoRef:v,children:y}):(0,t.jsx)(A.ThemeBoundary,{theme:"dark",children:y}),(0,t.jsx)("div",{className:ef["left"===d?"inlineStart":"inlineEnd"],children:(0,t.jsx)(eT.ExtendedTextStandalone,{headline:f,cta:o,invertedCta:s,link:l,dataId:"extended-text",children:n})})]})};e.s(["ShopDomainComponentTextImage",0,({fragmentData:e})=>{let a=(0,i.useTranslations)(),{data:n,addAttributes:o}=(0,R.useComponentPreview)(e,e.id),{localeId:s}=(0,l.useMarket)(),d="left";return"right"===n.alignText&&(d="right"),(0,t.jsx)(r.BlockSection,{children:(0,t.jsx)(ey,{...o("internalName"),id:e.id,video:n.video?.url?{url:n.video.url,thumbnailUrl:n.video?.thumbnailUrl??"",showMuteButton:n.video?.showMuteButton??!0,mobileUrl:n.video?.mobileUrl??"",mobileThumbnailUrl:n.video?.mobileThumbnailUrl??"",tags:(0,j.mapAnnotationsToMediaTags)(n.video?.annotations,s)}:void 0,videoControlLabels:{muteOnLabel:a("video.button.mute.on"),muteOffLabel:a("video.button.mute.off"),playLabel:a("video.button.play.play"),pauseLabel:a("video.button.play.pause")},headline:n.headline?{text:n.headline,as:n.headlineTag??"h2"}:void 0,alignText:d,cta:n.cta?{linkName:n.cta?.resolvedLinkV2?.name??"",linkUrl:n.cta?.resolvedLinkV2?.slug??"",target:n.cta?.newWindow?"_blank":"_self"}:void 0,invertedCta:n.invertedCta?{linkName:n.invertedCta?.resolvedLinkV2?.name??"",linkUrl:n.invertedCta?.resolvedLinkV2?.slug??"",target:n.invertedCta?.newWindow?"_blank":"_self"}:void 0,link:n.link?{linkName:n.link?.resolvedLinkV2?.name??"",linkUrl:n.link?.resolvedLinkV2?.slug??"",target:n.link?.newWindow?"_blank":"_self"}:void 0,focalPointImage:{url:n.image?.image?.url??"",alt:n.image?.image?.description??"",focalPoint:n.image?.focalPoint,width:n.image?.image?.width??0,height:n.image?.image?.height??0,tags:(0,j.mapAnnotationsToMediaTags)(n.image?.image?.annotations,s)},children:(0,t.jsx)(k.RichText,{document:n?.body?.json,links:[]})})})}],250067),e.s(["headline",0,"_1gwxied1","recoSlider",0,"_1gwxied0","subHeadlineContainer",0,"_1gwxied2"],11063)},405123,839416,480721,924631,e=>{"use strict";var t=e.i(843476),a=e.i(797747),i=e.i(849635);e.i(510193);var r=e.i(145025);e.i(529131);var n=e.i(342893),o=e.i(938417),s=e.i(531710),l=e.i(251306),d=e.i(403118),c=e.i(710740),u=e.i(11063),h=e.i(69406),m=e.i(810664),p=e.i(327094),g=e.i(737670),v=e.i(102517),f=e.i(638232);let T=({id:e,category:T,heading:{tag:y}={tag:"p"}}
2305)=>{let I=(0,r.useTranslations)(),{localeId:P,marketplaceId:S}=(0,h.useMarket)(),{pageTheme:x}=(0,d.usePageLayout)(),{state:{selection:b}}=(0,m.useVehicleSelection)(),k=I("vehicle.recommender.title.noSelection"),D=(0,c.isHTag)(y),C=e&&D?`vehicle-recommender-${e}-heading`:void 0,R=D&&C?"section":"div";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.InterleavedBlockSection,{as:R,dataId:"vehicle-recommender","aria-labelledby":C,theme:x??"light",children:[(0,t.jsxs)(s.Grid,{extendedWidth:!0,children:[(0,t.jsx)(n.Heading,{id:C,className:u.headline,size:"xx-large",as:y,children:k}),b&&(0,t.jsxs)("div",{className:u.subHeadlineContainer,"data-testid":"vehicle-teaser-grid",children:[(0,t.jsx)(n.Heading,{size:"large",as:"p","data-testid":"vehicle-teaser-grid-headline",children:I("vehicle.recommender.title.withSelection",{name:b.derivative.name??""})}),(0,t.jsx)(i.PLinkPure,{"data-testid":"vehicle-teaser-grid-action-button",children:(0,t.jsx)(o.default,{href:`/${S}/${P}/c/${T.slug??""}`,children:I("vehicle.recommender.link.allProducts")})})]}),(0,t.jsx)(v.VehicleSearchFilterSelect,{category:T,variant:"grid",vehicleSelectionCookie:null})]}),b&&(0,t.jsx)(a.InstantSearch,{indexName:`${S}-${P}-products`,searchClient:p.algoliaSearchClient,children:(0,t.jsx)(g.VehicleRecommendationsSlider,{className:u.recoSlider,category:T})})]}),(0,t.jsx)(f.VehicleSelectionFlyout,{variant:"with-recommendations"})]})};e.s(["ShopDomainComponentVehicleRecommender",0,({fragmentData:e})=>(0,t.jsx)(T,{id:e.id,heading:{tag:"h2"},category:{slug:e.category?.slug??"",name:e.category?.name??"",key:e.category?.key??""}},e.id??"")],405123);var y=e.i(271645),I=e.i(151734),P=e.i(251677),S=e.i(636137),x=e.i(865172),b=e.i(96319),k=e.i(152965);e.s(["ShopDomainComponentVideoHero",0,({fragmentData:e})=>{let a=(0,r.useTranslations)(),{trackEvent:i}=(0,S.useAnalytics)(),{data:n,addAttributes:o}=(0,x.useComponentPreview)(e,e.id),{localeId:s}=(0,h.useMarket)(),l=e=>{i({eventName:"GeneralClick",payload:{type:"BannerCTA",componentClick:{clickElementId:e.bannerId,clickElementType:e.buttonType,clickElementName:e.title,targetUrl:e.href}}})};if((0,y.useEffect)(()=>{i({eventName:"VideoExposure",payload:{videoInternalName:e?.internalName??"",pageCategory:"Video"}})},[e?.internalName,i]),!n.video?.url)return null;let d="none";"default"!==n.gradient&&"large"!==n.gradient&&n.gradient&&(d=n.gradient);let c=[];n.link?.resolvedLinkV2?.slug&&n.link?.resolvedLinkV2?.name&&c.push({href:n.link?.resolvedLinkV2?.slug??"",internalName:n.link?.internalName??"",title:n.link?.resolvedLinkV2?.name??"",variant:n.link?.type==="button_secondary"?"secondary":"primary",onClick:l}),n.secondaryLink?.resolvedLinkV2?.slug&&n.secondaryLink?.resolvedLinkV2?.name&&c.push({href:n.secondaryLink?.resolvedLinkV2?.slug??"",internalName:n.secondaryLink?.internalName??"",title:n.secondaryLink?.resolvedLinkV2?.name??"",variant:"secondary",onClick:l});let u={inViewAnimation:{enabled:!1}};"None"!==n.animationVideoHero&&(u={inViewAnimation:{enabled:!0,stagger:!0}});let m="large",p=n.headlineVideoHero?.size;return p&&(m=k.headlineSizeMap[p]),(0,t.jsx)(P.BlockSection,{withCoveringBackgroun
2305d:!0,children:(0,t.jsx)(I.Teaser,{...o("internalName"),id:n.id,internalName:e.internalName??"",isHero:void 0===n.isHero||null===n.isHero||n.isHero,blendFromBackgroundAt:d,tags:(0,b.mapAnnotationsToMediaTags)(n.video?.annotations,s),backgroundMedia:{type:"video",base:{video:{url:n.video?.url??"",thumbnailUrl:n.video?.thumbnailUrl??"",mobileUrl:n.video?.mobileUrl??"",mobileThumbnailUrl:n.video?.mobileThumbnailUrl??n.video?.thumbnailUrl??"",thumbnailAltText:n.video?.thumbnailAltText??"",mobileThumbnailAltText:n.video?.mobileThumbnailAltText??""}}},videoControls:{showMuteButton:n.video?.showMuteButton??!0},videoControlLabels:{muteOnLabel:a("video.button.mute.on"),muteOffLabel:a("video.button.mute.off"),playLabel:a("video.button.play.play"),pauseLabel:a("video.button.play.pause")},headline:{as:n.headlineVideoHero?.tag??void 0,title:n.headlineVideoHero?.text??"",icon:n.headlineVideoHero?.icon?{name:n.headlineVideoHero?.icon}:void 0,size:m},ctaLinks:c.length>0?c:void 0,wordmarkTitle:"none"===n.wordmarkTitle?void 0:n.wordmarkTitle??void 0,contentAlignment:n.contentAlignment??void 0,animation:u})})}],839416);var D=(0,e.i(125791).createRuntimeFn)({defaultClassName:"_10hcgey0",variantClassNames:{layout:{responsive:"_10hcgey1",squared:"_10hcgey2"},radius:{none:"_10hcgey3",rounded:"_10hcgey4"}},defaultVariants:{},compoundVariants:[]}),C=e.i(367982),R=e.i(910848);e.i(279634);var q=e.i(81612);let E=({video:e,variant:a,layout:i="responsive",roundedBorders:r,videoControlLabels:n,overlayContentPosition:o,...l})=>{let d=(0,y.useRef)(null),c="card"===a,{tags:u,...h}=e,m=(0,t.jsxs)("div",{className:D({layout:i,radius:r??c?"rounded":"none"}),"data-testid":"video-section",ref:d,children:[(0,t.jsx)(q.Video.Player,{thumbnailSizes:c?"(min-width: 480px) 83vw, 86vw":"100vw",video:h}),(0,t.jsxs)(q.Video.OverlayContent,{layout:o??(c?"fluid-indentation":"grid-area-extended"),children:[u&&(0,t.jsx)(R.MediaTags,{tags:u}),(0,t.jsx)(q.Video.PlaybackControls,{showMuteButton:h.showMuteButton,muteOnLabel:n.muteOnLabel,muteOffLabel:n.muteOffLabel,playLabel:n.playLabel,pauseLabel:n.pauseLabel})]})]});return(0,t.jsx)(q.Video.Root,{videoRef:d,children:c?(0,t.jsx)(s.Grid,{extendedWidth:!0,applyGridPlacementToChildren:!0,...l,children:m}):(0,t.jsx)(C.Component,{...l,children:m})})};e.s(["ShopDomainComponentVideoInline",0,({fragmentData:e,isSearch:a})=>{let i=(0,r.useTranslations)(),{trackEvent:n}=(0,S.useAnalytics)(),{data:o,addAttributes:s}=(0,x.useComponentPreview)(e,e.id),{localeId:l}=(0,h.useMarket)();if((0,y.useEffect)(()=>{n({eventName:"VideoExposure",payload:{videoInternalName:e?.internalName??"",pageCategory:"Video"}})},[e?.internalName]),!o.video?.url)return null;let d=void 0===a&&o?.isGrid;
2305return(0,t.jsx)(P.BlockSection,{withCoveringBackground:!d,children:(0,t.jsx)(E,{...s("internalName"),video:{url:o.video.url,thumbnailUrl:o.video?.thumbnailUrl??"",showMuteButton:o.video?.showMuteButton??!0,mobileUrl:o.video?.mobileUrl??"",mobileThumbnailUrl:o.video?.mobileThumbnailUrl??"",thumbnailAltText:o.video?.thumbnailAltText??"",mobileThumbnailAltText:o.video?.mobileThumbnailAltText??"",tags:(0,b.mapAnnotationsToMediaTags)(o.video?.annotations,l)},variant:d?"card":"cover",roundedBorders:a??d??!1,videoControlLabels:{muteOnLabel:i("video.button.mute.on"),muteOffLabel:i("video.button.mute.off"),playLabel:i("video.button.play.play"),pauseLabel:i("video.button.play.pause")}})})}],480721);var N=e.i(657688),A=e.i(456672);e.s(["ShopDomainComponentLinkTileV3",0,({fragmentData:e,className:a,aspectRatio:i={base:"3/4"},context:r,numberOfColumns:n})=>{let o=0,s=0,l="navigation"===r,{trackEvent:d}=(0,S.useAnalytics)(),c=l?`(min-width: 1920px) ${Math.min(800,Math.floor(1280/(n??1)))}px, calc((66vw - 4rem) / ${n??1})`:void 0;e.focalPointImage?.focalPoint&&e.focalPointImage.image&&(o=100/(e.focalPointImage.image.width??0)*e.focalPointImage.focalPoint.x,s=100/(e.focalPointImage.image.height??0)*e.focalPointImage.focalPoint.y);let u=(0,y.useCallback)(()=>{l&&d({eventName:"GeneralClick",payload:{type:"MegaMenuTile",componentClick:{clickElementType:"link",clickElementId:"mega_menu_tile",clickElementName:e.link?.resolvedLinkV2?.name??"",targetUrl:e.link?.resolvedLinkV2?.slug??""}}})},[l,d,e.link?.resolvedLinkV2?.name,e.link?.resolvedLinkV2?.slug]);return(0,t.jsx)(A.LinkTile,{description:e.link?.resolvedLinkV2?.name??"",label:e.link?.resolvedLinkV2?.name??"",href:e.link?.resolvedLinkV2?.slug??"",target:e.link?.newWindow?"_blank":"_self",aspectRatio:i,align:"top",compact:!0,className:["_1l3u18i0",a??""].join(" "),background:e.background??"dark","data-testid":"link-tile",disableNextLink:!!e.link?.newWindow,onClick:u,children:(0,t.jsx)(N.default,{src:e.focalPointImage?.image?.url??"",alt:e.focalPointImage?.image?.description??"",style:{objectFit:"cover",objectPosition:e.focalPointImage?.focalPoint?`${o}% ${s}%`:void 0},fill:!0,sizes:c,loading:l?"lazy":void 0})},e.id)}],924631)},152965,e=>{"use strict";e.s(["headlineSizeMap",0,{"display-large":"display-large","display-medium":"display-medium","display-small":"display-small","headline-1":"xx-large","headline-2":"xx-large","headline-3":"x-large","headline-4":"large","headline-5":"medium"}])},758978,e=>{"use strict";var t=e.i(843476);e.i(510193);var a=e.i(145025),i=e.i(489298),r=e.i(251677),n=e.i(69406),o=e.i(865172),s=e.i(445469),l=e.i(363122);e.s(["ComponentMultipleHotSpots",0,({fragmentData:e,isPreviewMode:d=!1,isSearch:c=!1})=>{let{data:u,addAttributes:h}=(0,o.useComponentPreview)(e,e.sys.id),{localeId:m,alternateCurrency:p,marketplaceId:g}=(0,n.useMarket)(),v=(0,a.useTranslations)(),f=(u.linkSpotsCollection?.items??[]).map(e=>{let a=e?.link?.productDataV2?.variants.find(e=>e.flags.isMainVariant),i=a?.prices,r=i?.gross?{id:"noop",country:g,discounted:i.grossDiscounted?{value:{centAmount:i.grossDiscounted.amount??0,currencyCode:i.grossDiscounted.currency,fractionDigits:i.grossDiscounted.fractionDigits}}:null,isTaxIncluded:i.gross.isTaxIncluded??!1,value:{centAmount:i.gross.amount??void 0,fractionDigits:i.gross.fractionDigits,currencyCode:i.gross.currency}}:null,n=i?.net?{id:"noop",country:g,discounted:i.netDiscounted?{value:{centAmount:i.netDiscounted.amount??0,currencyCode:i.netDiscounted.currency,fractionDigits:i.netDiscounted.fractionDigits}}:null,isTaxIncluded:i.net.isTaxIncluded??!1,value:{centAmount:i.net.amount??void 0,fractionDigits:i.net.fractionDigits,currencyCode:i.net.currency}}:null,o=r?.value?(0,t.jsx)(s.PriceLabel,{alternateCurrency:p,isTaxIncluded:r.isTaxIncluded,grossPriceValue:r.value,grossPriceDiscountedValue:r.discounted?.value??null,priceWithDiscountCode:null,locale:m}):null;return{id:e?.sys.id??"",coordinates:{x:e?.axisX??0,y:e?.axisY??0},name:e?.link?.productDataV2?.name??e?.link?.resolvedLink?.name??"",subHeadline:e?.link?.subText??"",image:{url:a?.images.tile?.[0]?.url??"",alt:a?.images.tile?.[0]?.alt??""},href:e?.link?.resolvedLink?.slug??"",children:o,whishlistButton:e?.link?.productDataV2?(0,t.jsx)(l.WishlistButton,{productData:{priceNet:n,price:r,productKey:e.link.productDataV2.key??"",variantSku:a?.sku??"",productName:e.link.productDataV2.name??"",image:{url:a?.images.tile?.[0]?.url??""},brand:void 0,quantity:1,productTypeName:e.link.productDataV2?.productType.name??void 0,facetBranch:void 0,categories:[]}}):null}}).filter(e=>!!d||!!e?.name);
2305return(0,t.jsx)(r.BlockSection,{withCoveringBackground:!0,children:(0,t.jsx)(i.MultipleHotSpots,{...h("internalName"),viewProductLinkText:v("multipleHotspot.viewProduct"),closeButtonAriaLabel:v("overlay.btn.close"),image:{url:u.image?.url??"",alt:u.image?.description??"",height:u.image?.height??0,width:u.image?.width??0},link:{href:u.link?.resolvedLink?.slug??"",text:u.link?.resolvedLink?.name??""},spots:f.length>0?f:(u.descriptionSpotsCollection?.items??[]).map(e=>({id:e?.sys.id??"",coordinates:{x:e?.axisX??0,y:e?.axisY??0},name:e?.title??"",subHeadline:e?.description??"",whishlistButton:null})),isInline:c??!1,withBorderRadius:c??!1,initialScrollPercentage:u.initialScrollPercentage??50})})}])},36369,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(510193);var i=e.i(145025),r=e.i(251677),n=e.i(490499),o=e.i(736797),s=e.i(605976),l=e.i(69406),d=e.i(18101),c=e.i(496891),u=e.i(152359),h=e.i(213371),m=e.i(764081);e.s(["ComponentProductSlider",0,({fragmentData:e,productInfos:p})=>{let{localeId:g,marketplaceId:v}=(0,l.useMarket)(),f=(0,i.useTranslations)(),T=e.sys.id,y=e.headlineTag??"h2",I=p.slice(0,s.PRODUCT_SLIDER_ITEMS_PER_VIEW_DESKTOP),P=(0,a.useMemo)(()=>I.map((0,d.populateProductTile)(T,v,g)),[g,v,I,T]),S=(0,a.useMemo)(()=>I.map((e,t)=>f("product.slider.a11y.item",{position:String(t+1),max:String(I.length)})),[I,f]);if("LAST_VIEWED_SLIDER"===e.type)return(0,t.jsx)(c.LastViewedProductsSlider,{description:e.description??void 0});let x=y&&(0,n.getDirectHeadingSuccessor)(y),b={heading:e.headline?{text:e.headline,tag:y}:void 0,description:e.description??void 0,name:e.internalName??"",uId:T,link:{href:e.link?.resolvedLink?.slug??"",name:e.link?.resolvedLink?.name??""},productData:I},k=P.map(({productData:e,...a},i)=>(0,t.jsx)(m.ProductTile,{...a,titleTag:x,productData:{ariaLabel:S[i],...e},imageSizes:h.PRODUCT_TILE_IMAGE_SIZES},e.dataId));return"ALGOLIA_SLIDER"===e.type?(0,t.jsx)(u.ProductRecommendationsSliders,{name:e.internalName??"",headline:e.headline??"",description:e.description??void 0,pinnedItems:e.products?.filter(o.isNotNullOrUndefined)??[],limitations:e.limitations,children:p.length>0?(0,t.jsx)(h.ProductSlider,{...b,children:k}):void 0}):(0,t.jsx)(r.BlockSection,{children:(0,t.jsx)(h.ProductSlider,{...b,children:k})})}])},829047,e=>{"use strict";var t=e.i(843476),a=e.i(657688),i=e.i(622779),r=e.i(849635),n=e.i(938417),o=e.i(415525);e.s(["ComponentLink",0,({fragmentData:e,children:s})=>{let{newWindow:l}=e;if(!e.contentfulMetadata.isVisible)return null;let d=e.resolvedLink?.slug??"",c=l||(0,o.isExternalLink)({url:d})&&!(0,o.isEcosystemUrl)({url:d})?"_blank":"_self";if(s)return(0,t.jsx)(n.default,{href:d,target:c,children:s});if(!e.resolvedLink?.name||!e.resolvedLink.slug)return null;if(e.type?.includes("button")){let a="primary";return(e.type.includes("_secondary")||e.type.includes("_tertiary"))&&(a="secondary"),(0,t.jsx)(i.PLink,{variant:a,"data-testid":"button-link",icon:e.icon?e.icon.split(/\.?(?=[A-Z])/).join("-").toLowerCase():"none",children:(0,t.jsx)(n.default,{href:d,target:c,rel:"nofollow noopener",children:e.resolvedLink.name})})}return"image"===e.type&&e.media?(0,t.jsx)(n.default,{href:d,target:c,className:"tmpwa00",children:(0,t.jsx)(a.default,{"data-testid":"image-link",src:e.media.url??"",alt:e.resolvedLink.name,width:e.media.width??64,height:e.media.height??40})}):"icon"===e.type&&e.icon?(0,t.jsx)(i.PLink,{"data-testid":"icon-link",icon:`logo-${e.icon}`,hideLabel:!0,children:(0,t.jsx)(n.default,{href:d,target:c,rel:"nofollow noopener",className:"tmpwa01",children:e.resolvedLink.name})}):(0,t.jsx)(r.PLinkPure,{icon:e.icon?e.icon.split(/\.?(?=[A-Z])/).join("-").toLowerCase():"none","data-testid":"default-link",children:(0,t.jsx)(n.default,{href:d,target:c,children:e.resolvedLink.name})})}],829047)},702744,45305,e=>{"use strict";var t=e.i(843476);e.i(282616);var a=e.i(332587);e.i(778498);var i=e.i(456641);let r=({className:e="",items:r,ref:n})=>(0,t.jsx)("ul",{className:["_176yko11",e].join(" "),"data-testid":"trust-element","aria-label":"trust element",ref:n,children:r.map(e=>(0,t.jsxs)("li",{className:"_176yko13","data-testid":"usp-element",children:[!!e.iconName&&(0,t.jsx)("div",{className:"_176yko10","aria-hidden":"true",children:(0,t.jsx)(a.Icon,{className:"_176yko12",name:e.iconName,size:"inherit",color:"inherit"})}),(0,t.jsx)("div",{children:(0,t.jsxs)(i.Text,{as:"p",children:[e.headline&&(0,t.jsx)(i.Text,{weight:"bold",size:"small",className:"_176yko14",children:e.headline}),e.subheadline&&(0,t.jsx)(i.Text,{size:"small",children:e.subheadline})]})})]},e.key))});e.s(["TrustElement",0,r],45305);var n=e.i(736797);e.s(["ComponentTrustElement",0,({fragmentData:e,className:a="",ref:i})=>(0,t.jsx)(r,{ref:i,className:a,items:(e.itemsCollection?.items??[]).filter(n.isNotNullOrUndefined).map(e=>({key:e.sys.id,headline:e.headline??void 0,subheadline:e.subheadline??void 0,iconName:e.iconName??void 0}))})],702744)},496891,213371,152359,e=>{"use strict";var t=e.i(843476);e.i(510193);var a=e.i(145025),i=e.i(605976),r=e.i(69406),n=e.i(845237),o=e.i(18101),s=e.i(271645),l=e.i(618566),d=e.i(446218),c=e.i(622779),u=e.i(959411);e.i(529131);var h=e.i(342893),m=e.i(953554),p=e.i(938417),g=e.i(531710),v=e.i(251306),f=e.i(403118),T=e.i(901089),y=e.i(391010),I=e.i(710740),P={default:"_19ovolg4 _19ovolg3",dark:"_19ovolg5 _19ovolg3"},S=e.i(636137),x=e.i(764081);let b=`(min-width: ${y.breakpoints.m}px) 15vw, (min-width: ${y.breakpoints.s}px) 20vw, 38vw`,k=({heading:e,link:r,name:n,uId:o,description:y,productData:b,children:k,...D})=>{let{text:C,tag:R="h2"}=e??{}
2305,q=i.PRODUCT_SLIDER_ITEMS_PER_VIEW_DESKTOP,E=(0,T.useIsMounted)(),[N,A]=(0,s.useState)(!1),{trackEvent:_}=(0,S.useAnalytics)(),H=(0,l.usePathname)(),j=(0,a.useTranslations)(),{pageTheme:w}=(0,f.usePageLayout)(),L=(0,s.useCallback)(()=>{_({eventName:"GeneralClick",payload:{type:"Slider",componentClick:{clickElementType:"link",clickElementId:n,clickElementName:r?.name??"",targetUrl:r?.href??""}}})},[_,r,n]);if((0,s.useEffect)(()=>{!N&&E&&b.length>0&&(_({eventName:"Impression",payload:{list:n,productData:b.map(e=>{let{brand:t}=e;return{productKey:e.key,productName:e.name,variantSku:e.masterVariant.sku,priceNet:e.masterVariant.netPrice,price:e.masterVariant.grossPrice,image:{url:e.masterVariant.images?.[0]?.url??""},brand:t??void 0,productTypeName:e.productType.name,quantity:1,facetBranch:e.facetBranch??"",categories:[]}})}}),A(!0))},[N,E,b,_,n,q]),(0,s.useEffect)(()=>{window.dispatchEvent(new Event("resize"))},[]),(0,s.useEffect)(()=>{A(!1)},[H]),s.Children.forEach(k,e=>{if(!(0,s.isValidElement)(e)||e.type!==x.ProductTile)throw Error("ProductSlider only accepts ProductTile elements as children.")}),0===b.length)return null;let W="dark"===w,O=W?v.InterleavedBlockSection:s.Fragment,$=(0,I.isHTag)(R),U=`product-slider-${o}`,V=`back-to-top-${U}`,B=`${U}-carousel-start`,M=o&&$?`${U}-heading`:void 0,G=W?{...D,theme:"light"}:{};return(0,t.jsx)(O,{...G,children:(0,t.jsxs)("div",{id:U,className:P[W?"dark":"default"],"data-testid":`product-slider-${o}`,...W?{}:D,children:[(0,t.jsxs)(d.PCarousel,{className:"scheme-light _19ovolg6",id:B,width:"extended",skipLinkTarget:`#${V}`,intl:{prev:j("product.slider.btn.prev"),next:j("product.slider.btn.next")},rewind:!1,slidesPerPage:{base:2,s:3,m:4},pagination:{base:!0,s:!1},children:[(0,t.jsx)(u.VisuallyHidden,{asChild:!0,children:(0,t.jsx)(R,{slot:"heading",id:M,"data-testid":"product-slider-headline-hidden",children:C})}),(0,t.jsxs)("div",{slot:"controls","data-testid":"product-slider-controls",children:[(0,t.jsx)(h.Heading,{size:"large",as:"span","data-testid":"product-slider-headline",children:C}),y&&(0,t.jsx)("p",{className:"_19ovolg2","data-testid":"product-slider-description",children:y})]}),k]}),(0,t.jsxs)(g.Grid,{extendedWidth:!0,spaceTop:"none",spaceBottom:"none",children:[r?.href&&r.name&&(0,t.jsx)("div",{"data-testid":"product-slider-bottom-link",className:"_19ovolg0",children:(0,t.jsx)(c.PLink,{variant:"secondary",className:"_19ovolg1",children:(0,t.jsx)(p.default,{href:r.href,"aria-labelledby":M,onClick:L,children:r.name})})}),(0,t.jsx)(m.SkipLink,{id:V,toId:B,children:j("product.slider.a11y.skip.backward")})]})]})})};e.s(["PRODUCT_TILE_IMAGE_SIZES",0,b,"ProductSlider",0,k],213371);let D="last-viewed";e.s(["LastViewedProductsSlider",0,({filterSku:e,description:s,listName:l,itemsToShow:d,...c})=>{let{currency:u,localeId:h,marketplaceId:m}=(0,r.useMarket)(),p=(0,a.useTranslations)(),{lastViewed:g}=(0,n.useLastViewedProducts)({currency:u,noOfItems:i.PRODUCT_SLIDER_ITEMS_PER_VIEW_DESKTOP,skipSku:e}),v=g.map((0,o.populateProductTile)(D,m,h));return g.length>0?(0,t.jsx)(k,{...c,productData:g,heading:{text:p("last.viewed.product.component.headline"),tag:"h2"},description:s,name:"last-viewed",uId:D,children:v.map(e=>(0,t.jsx)(x.ProductTile,{titleTag:"h3",imageSizes:b,...e},e.productData.dataId))}):null}],496891);var C=e.i(356476),R=e.i(251677),q=e.i(729650),E=e.i(287781),N=e.i(266027),A=e.i(736797);let _=async({products:e,locale:t,marketplaceId:a,currency:i,spliceItems:r})=>{let n=e.splice(0,r??10).map(async e=>{try{let r=await fetch(`/api/commerce/${a}/${t}/${i}/products/${e.key}`).then(async e=>await e.json()).catch(e=>{console.error(e)}),n=r?.variants.every(({isVisible:e})=>!e)??r?.variants.length===0;if(!r||r.variants.every(({availability:e})=>!e?.isOnStock)||n)return;return r}catch{return}});return(await Promise.all(n)).filter(A.isNotNullOrUndefined)};var H=e.i(392013),j=e.i(21816),w="1.23.0",L=["de","us"];function W(e,t,a,i){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");if(a&&("string"!=typeof a||!L.includes(a)))throw Error(`\`region\` must be one of the following: ${L.join(", ")}`);let{compression:r,...n}=i||{};return function({appId:e,apiKey:t,authMode:a,algoliaAgents:i,region:r,...n}){let o=(0,H.createAuth)(e,t,a),s=(0,H.createTransporter)({hosts:[{url:r?"analytics.{region}.algolia.com".replace("{region}",r):"analytics.algolia.com",accept:"readWrite",protocol:"https"}],...n,algoliaAgent:(0,H.getAlgoliaAgent)({algoliaAgents:i,client:"AbtestingV3",version:w}),baseHeaders:{"content-type":"text/plain",...o.headers(),...n.baseHeaders},baseQueryParameters:{...o.queryParameters(),...n.baseQueryParameters}});return{transporter:s,appId:e,apiKey:t,clearCache:()=>Promise.all([s.requestsCache.clear(),s.responsesCache.clear()]).then(()=>void 0),get _ua(){return s.algoliaAgent.value},addAlgoliaAgent(e,t){s.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){a&&"WithinHeaders"!==a?s.baseQueryParameters["x-algolia-api-key"]=e:s.baseHeaders["x-algolia-api-key"]=e},addABTests:(e,t)=>((0,H.validateRequired)("addABTestsRequest","addABTests",e),(0,H.validateRequired)("addABTestsRequest.name","addABTests",e.name),(0,H.validateRequired)("addABTestsRequest.variants","addABTests",e.variants),(0,H.validateRequired)("addABTestsRequest.metrics","addABTests",e.metrics),(0,H.validateRequired)("addABTestsRequest.endAt","addABTests",e.endAt),s.request({method:"POST",path:"/3/abtests",queryParameters:{},headers:{},data:e},t)),addABTestsWithHTTPInfo:(e,t)=>((0,H.validateRequired)("addABTestsRequest","addABTestsWithHTTPInfo",e),(0,H.validateRequired)("addABTestsRequest.name","addABTestsWithHTTPInfo",e.name),(0,H.validateRequired)("addABTestsRequest.variants","addABTestsWithHTTPInfo",e.variants),(0,H.validateRequired)("addABTestsRequest.metrics","addABTestsWithHTTPInfo",e.metrics),(0,H.validateRequired)("addABTestsRequest.endAt","addABTestsWithHTTPInfo",e.endAt),s.requestWithHttpInfo({method:"POST",path:"/3/abtests",queryParameters:{},headers:{},data:e},t)),customDelete({path:e,parameters:t},a){(0,H.validateRequired)("path","customDelete",e);let i="/{path}".replace("{path}",e);return s.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customDeleteWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customDeleteWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customGet({path:e,parameters:t},a){(0,H.validateRequired)("path","customGet",e);let i="/{path}".replace("{path}",e);return s.request({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customGetWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customGetWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customPost({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPost",e);let r="/{path}".replace("{path}",e);return s.request({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPostWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPostWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPut({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPut",e);let r="/{path}".replace("{path}",e);return s.request({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPutWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPutWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},deleteABTest({id:e},t){(0,H.validateRequired)("id","deleteABTest",e);let a="/3/abtests/{id}".replace("{id}",encodeURIComponent(e));return s.request({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteABTestWithHTTPInfo({id:e},t){(0,H.validateRequired)("id","deleteABTestWithHTTPInfo",e);let a="/3/abtests/{id}".replace("{id}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},estimateABTest:(e,t)=>
2305((0,H.validateRequired)("estimateABTestRequest","estimateABTest",e),(0,H.validateRequired)("estimateABTestRequest.configuration","estimateABTest",e.configuration),(0,H.validateRequired)("estimateABTestRequest.variants","estimateABTest",e.variants),s.request({method:"POST",path:"/3/abtests/estimate",queryParameters:{},headers:{},data:e},t)),estimateABTestWithHTTPInfo:(e,t)=>((0,H.validateRequired)("estimateABTestRequest","estimateABTestWithHTTPInfo",e),(0,H.validateRequired)("estimateABTestRequest.configuration","estimateABTestWithHTTPInfo",e.configuration),(0,H.validateRequired)("estimateABTestRequest.variants","estimateABTestWithHTTPInfo",e.variants),s.requestWithHttpInfo({method:"POST",path:"/3/abtests/estimate",queryParameters:{},headers:{},data:e},t)),getABTest({id:e},t){(0,H.validateRequired)("id","getABTest",e);let a="/3/abtests/{id}".replace("{id}",encodeURIComponent(e));return s.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getABTestWithHTTPInfo({id:e},t){(0,H.validateRequired)("id","getABTestWithHTTPInfo",e);let a="/3/abtests/{id}".replace("{id}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},getTimeseries({id:e,startDate:t,endDate:a,metric:i},r){(0,H.validateRequired)("id","getTimeseries",e);let n="/3/abtests/{id}/timeseries".replace("{id}",encodeURIComponent(e)),o={};return void 0!==t&&(o.startDate=t.toString()),void 0!==a&&(o.endDate=a.toString()),void 0!==i&&(o.metric=i.toString()),s.request({method:"GET",path:n,queryParameters:o,headers:{}},r)},getTimeseriesWithHTTPInfo({id:e,startDate:t,endDate:a,metric:i},r){(0,H.validateRequired)("id","getTimeseriesWithHTTPInfo",e);let n="/3/abtests/{id}/timeseries".replace("{id}",encodeURIComponent(e)),o={};return void 0!==t&&(o.startDate=t.toString()),void 0!==a&&(o.endDate=a.toString()),void 0!==i&&(o.metric=i.toString()),s.requestWithHttpInfo({method:"GET",path:n,queryParameters:o,headers:{}},r)},listABTests({offset:e,limit:t,indexPrefix:a,indexSuffix:i,direction:r}={},n){let o={};return void 0!==e&&(o.offset=e.toString()),void 0!==t&&(o.limit=t.toString()),void 0!==a&&(o.indexPrefix=a.toString()),void 0!==i&&(o.indexSuffix=i.toString()),void 0!==r&&(o.direction=r.toString()),s.request({method:"GET",path:"/3/abtests",queryParameters:o,headers:{}},n)},listABTestsWithHTTPInfo({offset:e,limit:t,indexPrefix:a,indexSuffix:i,direction:r}={},n){let o={};return void 0!==e&&(o.offset=e.toString()),void 0!==t&&(o.limit=t.toString()),void 0!==a&&(o.indexPrefix=a.toString()),void 0!==i&&(o.indexSuffix=i.toString()),void 0!==r&&(o.direction=r.toString()),s.requestWithHttpInfo({method:"GET",path:"/3/abtests",queryParameters:o,headers:{}},n)},stopABTest({id:e},t){(0,H.validateRequired)("id","stopABTest",e);let a="/3/abtests/{id}/stop".replace("{id}",encodeURIComponent(e));return s.request({method:"POST",path:a,queryParameters:{},headers:{}},t)},stopABTestWithHTTPInfo({id:e},t){(0,H.validateRequired)("id","stopABTestWithHTTPInfo",e);let a="/3/abtests/{id}/stop".replace("{id}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"POST",path:a,queryParameters:{},headers:{}},t)}}}({appId:e,apiKey:t,region:a,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,H.createNullLogger)(),requester:(0,j.createXhrRequester)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,H.createMemoryCache)(),requestsCache:(0,H.createMemoryCache)({serializable:!1}),hostsCache:(0,H.createFallbackableCache)({caches:[(0,H.createBrowserLocalStorageCache)({key:`${w}-${e}`}),(0,H.createMemoryCache)()]}),...n})}e.s(["abtestingV3Client",0,W,"apiClientVersion",0,w],269383);var O="5.57.0",$=["de","us"];function U(e,t,a,i){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");if(a&&("string"!=typeof a||!$.includes(a)))throw Error(`\`region\` must be one of the following: ${$.join(", ")}`);let{compression:r,...n}=i||{};return function({appId:e,apiKey:t,authMode:a,algoliaAgents:i,region:r,...n}){let o=(0,H.createAuth)(e,t,a),s=(0,H.createTransporter)({hosts:[{url:r?"analytics.{region}.algolia.com".replace("{region}",r):"analytics.algolia.com",accept:"readWrite",protocol:"https"}],...n,algoliaAgent:(0,H.getAlgoliaAgent)({algoliaAgents:i,client:"Abtesting",version:O}),baseHeaders:{"content-type":"text/plain",...o.headers(),...n.baseHeaders},baseQueryParameters:{...o.queryParameters(),...n.baseQueryParameters}});return{transporter:s,appId:e,apiKey:t,clearCache:()=>Promise.all([s.requestsCache.clear(),s.responsesCache.clear()]).then(()=>void 0),get _ua(){return s.algoliaAgent.value},addAlgoliaAgent(e,t){s.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){a&&"WithinHeaders"!==a?s.baseQueryParameters["x-algolia-api-key"]=e:s.baseHeaders["x-algolia-api-key"]=e},addABTests:(e,t)=>((0,H.validateRequired)("addABTestsRequest","addABTests",e),(0,H.validateRequired)("addABTestsRequest.name","addABTests",e.name),(0,H.validateRequired)("addABTestsRequest.variants","addABTests",e.variants),(0,H.validateRequired)("addABTestsRequest.endAt","addABTests",e.endAt),s.request({method:"POST",path:"/2/abtests",queryParameters:{},headers:{},data:e},t)),addABTestsWithHTTPInfo:(e,t)=>((0,H.validateRequired)("addABTestsRequest","addABTestsWithHTTPInfo",e),(0,H.validateRequired)("addABTestsRequest.name","addABTestsWithHTTPInfo",e.name),(0,H.validateRequired)("addABTestsRequest.variants","addABTestsWithHTTPInfo",e.variants),(0,H.validateRequired)("addABTestsRequest.endAt","addABTestsWithHTTPInfo",e.endAt),s.requestWithHttpInfo({method:"POST",path:"/2/abtests",queryParameters:{},headers:{},data:e},t)),customDelete({path:e,parameters:t},a){(0,H.validateRequired)("path","customDelete",e);let i="/{path}".replace("{path}",e);return s.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customDeleteWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customDeleteWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customGet({path:e,parameters:t},a){(0,H.validateRequired)("path","customGet",e);let i="/{path}".replace("{path}",e);return s.request({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customGetWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customGetWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customPost({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPost",e);let r="/{path}".replace("{path}",e);return s.request({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPostWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPostWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPut({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPut",e);let r="/{path}".replace("{path}",e);return s.request({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPutWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPutWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},deleteABTest({id:e},t){(0,H.validateRequired)("id","deleteABTest",e);let a="/2/abtests/{id}".replace("{id}",encodeURIComponent(e));return s.request({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteABTestWithHTTPInfo({id:e},t){(0,H.validateRequired)("id","deleteABTestWithHTTPInfo",e);let a="/2/abtests/{id}".replace("{id}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},estimateABTest:(e,t)=>
2305((0,H.validateRequired)("estimateABTestRequest","estimateABTest",e),(0,H.validateRequired)("estimateABTestRequest.configuration","estimateABTest",e.configuration),(0,H.validateRequired)("estimateABTestRequest.variants","estimateABTest",e.variants),s.request({method:"POST",path:"/2/abtests/estimate",queryParameters:{},headers:{},data:e},t)),estimateABTestWithHTTPInfo:(e,t)=>((0,H.validateRequired)("estimateABTestRequest","estimateABTestWithHTTPInfo",e),(0,H.validateRequired)("estimateABTestRequest.configuration","estimateABTestWithHTTPInfo",e.configuration),(0,H.validateRequired)("estimateABTestRequest.variants","estimateABTestWithHTTPInfo",e.variants),s.requestWithHttpInfo({method:"POST",path:"/2/abtests/estimate",queryParameters:{},headers:{},data:e},t)),getABTest({id:e},t){(0,H.validateRequired)("id","getABTest",e);let a="/2/abtests/{id}".replace("{id}",encodeURIComponent(e));return s.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getABTestWithHTTPInfo({id:e},t){(0,H.validateRequired)("id","getABTestWithHTTPInfo",e);let a="/2/abtests/{id}".replace("{id}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},listABTests({offset:e,limit:t,indexPrefix:a,indexSuffix:i}={},r){let n={};return void 0!==e&&(n.offset=e.toString()),void 0!==t&&(n.limit=t.toString()),void 0!==a&&(n.indexPrefix=a.toString()),void 0!==i&&(n.indexSuffix=i.toString()),s.request({method:"GET",path:"/2/abtests",queryParameters:n,headers:{}},r)},listABTestsWithHTTPInfo({offset:e,limit:t,indexPrefix:a,indexSuffix:i}={},r){let n={};return void 0!==e&&(n.offset=e.toString()),void 0!==t&&(n.limit=t.toString()),void 0!==a&&(n.indexPrefix=a.toString()),void 0!==i&&(n.indexSuffix=i.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/abtests",queryParameters:n,headers:{}},r)},stopABTest({id:e},t){(0,H.validateRequired)("id","stopABTest",e);let a="/2/abtests/{id}/stop".replace("{id}",encodeURIComponent(e));return s.request({method:"POST",path:a,queryParameters:{},headers:{}},t)},stopABTestWithHTTPInfo({id:e},t){(0,H.validateRequired)("id","stopABTestWithHTTPInfo",e);let a="/2/abtests/{id}/stop".replace("{id}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"POST",path:a,queryParameters:{},headers:{}},t)}}}({appId:e,apiKey:t,region:a,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,H.createNullLogger)(),requester:(0,j.createXhrRequester)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,H.createMemoryCache)(),requestsCache:(0,H.createMemoryCache)({serializable:!1}),hostsCache:(0,H.createFallbackableCache)({caches:[(0,H.createBrowserLocalStorageCache)({key:`${O}-${e}`}),(0,H.createMemoryCache)()]}),...n})}e.s(["abtestingClient",0,U,"apiClientVersion",0,O],859970);var V="5.57.0",B=["de","us"];function M(e,t,a,i){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");if(a&&("string"!=typeof a||!B.includes(a)))throw Error(`\`region\` must be one of the following: ${B.join(", ")}`);let{compression:r,...n}=i||{};return function({appId:e,apiKey:t,authMode:a,algoliaAgents:i,region:r,...n}){let o=(0,H.createAuth)(e,t,a),s=(0,H.createTransporter)({hosts:[{url:r?"analytics.{region}.algolia.com".replace("{region}",r):"analytics.algolia.com",accept:"readWrite",protocol:"https"}],...n,algoliaAgent:(0,H.getAlgoliaAgent)({algoliaAgents:i,client:"Analytics",version:V}),baseHeaders:{"content-type":"text/plain",...o.headers(),...n.baseHeaders},baseQueryParameters:{...o.queryParameters(),...n.baseQueryParameters}});return{transporter:s,appId:e,apiKey:t,clearCache:()=>Promise.all([s.requestsCache.clear(),s.responsesCache.clear()]).then(()=>void 0),get _ua(){return s.algoliaAgent.value},addAlgoliaAgent(e,t){s.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){a&&"WithinHeaders"!==a?s.baseQueryParameters["x-algolia-api-key"]=e:s.baseHeaders["x-algolia-api-key"]=e},customDelete({path:e,parameters:t},a){(0,H.validateRequired)("path","customDelete",e);let i="/{path}".replace("{path}",e);return s.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customDeleteWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customDeleteWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customGet({path:e,parameters:t},a){(0,H.validateRequired)("path","customGet",e);let i="/{path}".replace("{path}",e);return s.request({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customGetWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customGetWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customPost({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPost",e);let r="/{path}".replace("{path}",e);return s.request({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPostWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPostWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPut({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPut",e);let r="/{path}".replace("{path}",e);return s.request({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPutWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPutWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},getAddToCartRate({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getAddToCartRate",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.request({method:"GET",path:"/2/conversions/addToCartRate",queryParameters:n,headers:{}},r)},getAddToCartRateWithHTTPInfo({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getAddToCartRateWithHTTPInfo",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/conversions/addToCartRate",queryParameters:n,headers:{}},r)},getAverageClickPosition({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getAverageClickPosition",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.request({method:"GET",path:"/2/clicks/averageClickPosition",queryParameters:n,headers:{}},r)},getAverageClickPositionWithHTTPInfo({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getAverageClickPositionWithHTTPInfo",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/clicks/averageClickPosition",queryParameters:n,headers:{}},r)},getClickPositions({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getClickPositions",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.request({method:"GET",path:"/2/clicks/positions",queryParameters:n,headers:{}},r)},getClickPositionsWithHTTPInfo({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getClickPositionsWithHTTPInfo",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/clicks/positions",queryParameters:n,headers:{}},r)},getClickThroughRate({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getClickThroughRate",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.request({method:"GET",path:"/2/clicks/clickThroughRate",queryParameters:n,headers:{}},r)},getClickThroughRateWithHTTPInfo({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getClickThroughRateWithHTTPInfo",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/clicks/clickThroughRate",queryParameters:n,headers:{}},r)},getConversionRate({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getConversionRate",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.request({method:"GET",path:"/2/conversions/conversionRate",queryParameters:n,headers:{}},r)},getConversionRateWithHTTPInfo({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getConversionRateWithHTTPInfo",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/conversions/conversionRate",queryParameters:n,headers:{}},r)},getNoClickRate({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getNoClickRate",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.request({method:"GET",path:"/2/searches/noClickRate",queryParameters:n,headers:{}},r)},getNoClickRateWithHTTPInfo({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getNoClickRateWithHTTPInfo",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/searches/noClickRate",queryParameters:n,headers:{}},r)},getNoResultsRate({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getNoResultsRate",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.request({method:"GET",path:"/2/searches/noResultRate",queryParameters:n,headers:{}},r)},getNoResultsRateWithHTTPInfo({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getNoResultsRateWithHTTPInfo",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/searches/noResultRate",queryParameters:n,headers:{}},r)},getPatternsFields:e=>s.request({method:"GET",path:"/3/patterns/fields",queryParameters:{},headers:{}},e),getPatternsFieldsWithHTTPInfo:e=>s.requestWithHttpInfo({method:"GET",path:"/3/patterns/fields",queryParameters:{},headers:{}},e),getPurchaseRate({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getPurchaseRate",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.request({method:"GET",path:"/2/conversions/purchaseRate",queryParameters:n,headers:{}},r)},getPurchaseRateWithHTTPInfo({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getPurchaseRateWithHTTPInfo",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/conversions/purchaseRate",queryParameters:n,headers:{}},r)},getRevenue({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getRevenue",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.request({method:"GET",path:"/2/conversions/revenue",queryParameters:n,headers:{}},r)},getRevenueWithHTTPInfo({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getRevenueWithHTTPInfo",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/conversions/revenue",queryParameters:n,headers:{}},r)},getSearchesCount({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getSearchesCount",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.request({method:"GET",path:"/2/searches/count",queryParameters:n,headers:{}},r)},getSearchesCountWithHTTPInfo({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getSearchesCountWithHTTPInfo",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/searches/count",queryParameters:n,headers:{}},r)},getSearchesNoClicks({index:e,startDate:t,endDate:a,limit:i,offset:r,tags:n},o){(0,H.validateRequired)("index","getSearchesNoClicks",e);let l={};return void 0!==e&&(l.index=e.toString()),void 0!==t&&(l.startDate=t.toString()),void 0!==a&&(l.endDate=a.toString()),void 0!==i&&(l.limit=i.toString()),void 0!==r&&(l.offset=r.toString()),void 0!==n&&(l.tags=n.toString()),s.request({method:"GET",path:"/2/searches/noClicks",queryParameters:l,headers:{}},o)},getSearchesNoClicksWithHTTPInfo({index:e,startDate:t,endDate:a,limit:i,offset:r,tags:n},o){(0,H.validateRequired)("index","getSearchesNoClicksWithHTTPInfo",e);let l={};return void 0!==e&&(l.index=e.toString()),void 0!==t&&(l.startDate=t.toString()),void 0!==a&&(l.endDate=a.toString()),void 0!==i&&(l.limit=i.toString()),void 0!==r&&(l.offset=r.toString()),void 0!==n&&(l.tags=n.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/searches/noClicks",queryParameters:l,headers:{}},o)},getSearchesNoResults({index:e,startDate:t,endDate:a,limit:i,offset:r,tags:n},o){(0,H.validateRequired)("index","getSearchesNoResults",e);let l={};return void 0!==e&&(l.index=e.toString()),void 0!==t&&(l.startDate=t.toString()),void 0!==a&&(l.endDate=a.toString()),void 0!==i&&(l.limit=i.toString()),void 0!==r&&(l.offset=r.toString()),void 0!==n&&(l.tags=n.toString()),s.request({method:"GET",path:"/2/searches/noResults",queryParameters:l,headers:{}},o)},getSearchesNoResultsWithHTTPInfo({index:e,startDate:t,endDate:a,limit:i,offset:r,tags:n},o){(0,H.validateRequired)("index","getSearchesNoResultsWithHTTPInfo",e);let l={};return void 0!==e&&(l.index=e.toString()),void 0!==t&&(l.startDate=t.toString()),void 0!==a&&(l.endDate=a.toString()),void 0!==i&&(l.limit=i.toString()),void 0!==r&&(l.offset=r.toString()),void 0!==n&&(l.tags=n.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/searches/noResults",queryParameters:l,headers:{}},o)},getStatus({index:e},t){(0,H.validateRequired)("index","getStatus",e);let a={};return void 0!==e&&(a.index=e.toString()),s.request({method:"GET",path:"/2/status",queryParameters:a,headers:{}},t)},getStatusWithHTTPInfo({index:e},t){(0,H.validateRequired)("index","getStatusWithHTTPInfo",e);let a={};return void 0!==e&&(a.index=e.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/status",queryParameters:a,headers:{}},t)},getTopCountries({index:e,startDate:t,endDate:a,limit:i,offset:r,tags:n},o){(0,H.validateRequired)("index","getTopCountries",e);let l={};return void 0!==e&&(l.index=e.toString()),void 0!==t&&(l.startDate=t.toString()),void 0!==a&&(l.endDate=a.toString()),void 0!==i&&(l.limit=i.toString()),void 0!==r&&(l.offset=r.toString()),void 0!==n&&(l.tags=n.toString()),s.request({method:"GET",path:"/2/countries",queryParameters:l,headers:{}
2305},o)},getTopCountriesWithHTTPInfo({index:e,startDate:t,endDate:a,limit:i,offset:r,tags:n},o){(0,H.validateRequired)("index","getTopCountriesWithHTTPInfo",e);let l={};return void 0!==e&&(l.index=e.toString()),void 0!==t&&(l.startDate=t.toString()),void 0!==a&&(l.endDate=a.toString()),void 0!==i&&(l.limit=i.toString()),void 0!==r&&(l.offset=r.toString()),void 0!==n&&(l.tags=n.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/countries",queryParameters:l,headers:{}},o)},getTopFilterAttributes({index:e,search:t,startDate:a,endDate:i,limit:r,offset:n,tags:o},l){(0,H.validateRequired)("index","getTopFilterAttributes",e);let d={};return void 0!==e&&(d.index=e.toString()),void 0!==t&&(d.search=t.toString()),void 0!==a&&(d.startDate=a.toString()),void 0!==i&&(d.endDate=i.toString()),void 0!==r&&(d.limit=r.toString()),void 0!==n&&(d.offset=n.toString()),void 0!==o&&(d.tags=o.toString()),s.request({method:"GET",path:"/2/filters",queryParameters:d,headers:{}},l)},getTopFilterAttributesWithHTTPInfo({index:e,search:t,startDate:a,endDate:i,limit:r,offset:n,tags:o},l){(0,H.validateRequired)("index","getTopFilterAttributesWithHTTPInfo",e);let d={};return void 0!==e&&(d.index=e.toString()),void 0!==t&&(d.search=t.toString()),void 0!==a&&(d.startDate=a.toString()),void 0!==i&&(d.endDate=i.toString()),void 0!==r&&(d.limit=r.toString()),void 0!==n&&(d.offset=n.toString()),void 0!==o&&(d.tags=o.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/filters",queryParameters:d,headers:{}},l)},getTopFilterForAttribute({attribute:e,index:t,search:a,startDate:i,endDate:r,limit:n,offset:o,tags:l},d){(0,H.validateRequired)("attribute","getTopFilterForAttribute",e),(0,H.validateRequired)("index","getTopFilterForAttribute",t);let c="/2/filters/{attribute}".replace("{attribute}",encodeURIComponent(e)),u={};return void 0!==t&&(u.index=t.toString()),void 0!==a&&(u.search=a.toString()),void 0!==i&&(u.startDate=i.toString()),void 0!==r&&(u.endDate=r.toString()),void 0!==n&&(u.limit=n.toString()),void 0!==o&&(u.offset=o.toString()),void 0!==l&&(u.tags=l.toString()),s.request({method:"GET",path:c,queryParameters:u,headers:{}},d)},getTopFilterForAttributeWithHTTPInfo({attribute:e,index:t,search:a,startDate:i,endDate:r,limit:n,offset:o,tags:l},d){(0,H.validateRequired)("attribute","getTopFilterForAttributeWithHTTPInfo",e),(0,H.validateRequired)("index","getTopFilterForAttributeWithHTTPInfo",t);let c="/2/filters/{attribute}".replace("{attribute}",encodeURIComponent(e)),u={};return void 0!==t&&(u.index=t.toString()),void 0!==a&&(u.search=a.toString()),void 0!==i&&(u.startDate=i.toString()),void 0!==r&&(u.endDate=r.toString()),void 0!==n&&(u.limit=n.toString()),void 0!==o&&(u.offset=o.toString()),void 0!==l&&(u.tags=l.toString()),s.requestWithHttpInfo({method:"GET",path:c,queryParameters:u,headers:{}},d)},getTopFiltersNoResults({index:e,search:t,startDate:a,endDate:i,limit:r,offset:n,tags:o},l){(0,H.validateRequired)("index","getTopFiltersNoResults",e);let d={};return void 0!==e&&(d.index=e.toString()),void 0!==t&&(d.search=t.toString()),void 0!==a&&(d.startDate=a.toString()),void 0!==i&&(d.endDate=i.toString()),void 0!==r&&(d.limit=r.toString()),void 0!==n&&(d.offset=n.toString()),void 0!==o&&(d.tags=o.toString()),s.request({method:"GET",path:"/2/filters/noResults",queryParameters:d,headers:{}},l)},getTopFiltersNoResultsWithHTTPInfo({index:e,search:t,startDate:a,endDate:i,limit:r,offset:n,tags:o},l){(0,H.validateRequired)("index","getTopFiltersNoResultsWithHTTPInfo",e);let d={};return void 0!==e&&(d.index=e.toString()),void 0!==t&&(d.search=t.toString()),void 0!==a&&(d.startDate=a.toString()),void 0!==i&&(d.endDate=i.toString()),void 0!==r&&(d.limit=r.toString()),void 0!==n&&(d.offset=n.toString()),void 0!==o&&(d.tags=o.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/filters/noResults",queryParameters:d,headers:{}},l)},getTopHits({index:e,search:t,clickAnalytics:a,revenueAnalytics:i,startDate:r,endDate:n,limit:o,offset:l,tags:d},c){(0,H.validateRequired)("index","getTopHits",e);let u={};return void 0!==e&&(u.index=e.toString()),void 0!==t&&(u.search=t.toString()),void 0!==a&&(u.clickAnalytics=a.toString()),void 0!==i&&(u.revenueAnalytics=i.toString()),void 0!==r&&(u.startDate=r.toString()),void 0!==n&&(u.endDate=n.toString()),void 0!==o&&(u.limit=o.toString()),void 0!==l&&(u.offset=l.toString()),void 0!==d&&(u.tags=d.toString()),s.request({method:"GET",path:"/2/hits",queryParameters:u,headers:{}},c)}
2305,getTopHitsWithHTTPInfo({index:e,search:t,clickAnalytics:a,revenueAnalytics:i,startDate:r,endDate:n,limit:o,offset:l,tags:d},c){(0,H.validateRequired)("index","getTopHitsWithHTTPInfo",e);let u={};return void 0!==e&&(u.index=e.toString()),void 0!==t&&(u.search=t.toString()),void 0!==a&&(u.clickAnalytics=a.toString()),void 0!==i&&(u.revenueAnalytics=i.toString()),void 0!==r&&(u.startDate=r.toString()),void 0!==n&&(u.endDate=n.toString()),void 0!==o&&(u.limit=o.toString()),void 0!==l&&(u.offset=l.toString()),void 0!==d&&(u.tags=d.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/hits",queryParameters:u,headers:{}},c)},getTopSearches({index:e,clickAnalytics:t,revenueAnalytics:a,startDate:i,endDate:r,orderBy:n,direction:o,limit:l,offset:d,tags:c},u){(0,H.validateRequired)("index","getTopSearches",e);let h={};return void 0!==e&&(h.index=e.toString()),void 0!==t&&(h.clickAnalytics=t.toString()),void 0!==a&&(h.revenueAnalytics=a.toString()),void 0!==i&&(h.startDate=i.toString()),void 0!==r&&(h.endDate=r.toString()),void 0!==n&&(h.orderBy=n.toString()),void 0!==o&&(h.direction=o.toString()),void 0!==l&&(h.limit=l.toString()),void 0!==d&&(h.offset=d.toString()),void 0!==c&&(h.tags=c.toString()),s.request({method:"GET",path:"/2/searches",queryParameters:h,headers:{}},u)},getTopSearchesWithHTTPInfo({index:e,clickAnalytics:t,revenueAnalytics:a,startDate:i,endDate:r,orderBy:n,direction:o,limit:l,offset:d,tags:c},u){(0,H.validateRequired)("index","getTopSearchesWithHTTPInfo",e);let h={};return void 0!==e&&(h.index=e.toString()),void 0!==t&&(h.clickAnalytics=t.toString()),void 0!==a&&(h.revenueAnalytics=a.toString()),void 0!==i&&(h.startDate=i.toString()),void 0!==r&&(h.endDate=r.toString()),void 0!==n&&(h.orderBy=n.toString()),void 0!==o&&(h.direction=o.toString()),void 0!==l&&(h.limit=l.toString()),void 0!==d&&(h.offset=d.toString()),void 0!==c&&(h.tags=c.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/searches",queryParameters:h,headers:{}},u)},getUsersCount({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getUsersCount",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.request({method:"GET",path:"/2/users/count",queryParameters:n,headers:{}},r)},getUsersCountWithHTTPInfo({index:e,startDate:t,endDate:a,tags:i},r){(0,H.validateRequired)("index","getUsersCountWithHTTPInfo",e);let n={};return void 0!==e&&(n.index=e.toString()),void 0!==t&&(n.startDate=t.toString()),void 0!==a&&(n.endDate=a.toString()),void 0!==i&&(n.tags=i.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/users/count",queryParameters:n,headers:{}},r)},queryPatternsDistribution({distributionPayload:e,index:t},a){(0,H.validateRequired)("distributionPayload","queryPatternsDistribution",e),(0,H.validateRequired)("distributionPayload.distributions","queryPatternsDistribution",e.distributions),(0,H.validateRequired)("distributionPayload.parameters","queryPatternsDistribution",e.parameters);let i={};return void 0!==t&&(i.index=t.toString()),s.request({method:"POST",path:"/3/patterns/distribution",queryParameters:i,headers:{},data:e},a)},queryPatternsDistributionWithHTTPInfo({distributionPayload:e,index:t},a){(0,H.validateRequired)("distributionPayload","queryPatternsDistributionWithHTTPInfo",e),(0,H.validateRequired)("distributionPayload.distributions","queryPatternsDistributionWithHTTPInfo",e.distributions),(0,H.validateRequired)("distributionPayload.parameters","queryPatternsDistributionWithHTTPInfo",e.parameters);let i={};return void 0!==t&&(i.index=t.toString()),s.requestWithHttpInfo({method:"POST",path:"/3/patterns/distribution",queryParameters:i,headers:{},data:e},a)},queryPatternsScalar({scalarPayload:e,index:t},a){(0,H.validateRequired)("scalarPayload","queryPatternsScalar",e),(0,H.validateRequired)("scalarPayload.metrics","queryPatternsScalar",e.metrics),(0,H.validateRequired)("scalarPayload.parameters","queryPatternsScalar",e.parameters);let i={};return void 0!==t&&(i.index=t.toString()),s.request({method:"POST",path:"/3/patterns/scalar",queryParameters:i,headers:{},data:e},a)},queryPatternsScalarWithHTTPInfo({scalarPayload:e,index:t},a){(0,H.validateRequired)("scalarPayload","queryPatternsScalarWithHTTPInfo",e),(0,H.validateRequired)("scalarPayload.metrics","queryPatternsScalarWithHTTPInfo",e.metrics),(0,H.validateRequired)("scalarPayload.parameters","queryPatternsScalarWithHTTPInfo",e.parameters);let i={};return void 0!==t&&(i.index=t.toString()),s.requestWithHttpInfo({method:"POST",path:"/3/patterns/scalar",queryParameters:i,headers:{},data:e},a)},queryPatternsTable({tablePayload:e,index:t},a){(0,H.validateRequired)("tablePayload","queryPatternsTable",e),(0,H.validateRequired)("tablePayload.metrics","queryPatternsTable",e.metrics),(0,H.validateRequired)("tablePayload.parameters","queryPatternsTable",e.parameters);let i={};return void 0!==t&&(i.index=t.toString()),s.request({method:"POST",path:"/3/patterns/table",queryParameters:i,headers:{},data:e},a)},queryPatternsTableWithHTTPInfo({tablePayload:e,index:t},a){(0,H.validateRequired)("tablePayload","queryPatternsTableWithHTTPInfo",e),(0,H.validateRequired)("tablePayload.metrics","queryPatternsTableWithHTTPInfo",e.metrics),(0,H.validateRequired)("tablePayload.parameters","queryPatternsTableWithHTTPInfo",e.parameters);let i={};return void 0!==t&&(i.index=t.toString()),s.requestWithHttpInfo({method:"POST",path:"/3/patterns/table",queryParameters:i,headers:{},data:e},a)},queryPatternsTimeseries({timeseriesPayload:e,index:t},a){(0,H.validateRequired)("timeseriesPayload","queryPatternsTimeseries",e),(0,H.validateRequired)("timeseriesPayload.metrics","queryPatternsTimeseries",e.metrics),(0,H.validateRequired)("timeseriesPayload.parameters","queryPatternsTimeseries",e.parameters);let i={};return void 0!==t&&(i.index=t.toString()),s.request({method:"POST",path:"/3/patterns/timeseries",queryParameters:i,headers:{},data:e},a)},queryPatternsTimeseriesWithHTTPInfo({timeseriesPayload:e,index:t},a){(0,H.validateRequired)("timeseriesPayload","queryPatternsTimeseriesWithHTTPInfo",e),(0,H.validateRequired)("timeseriesPayload.metrics","queryPatternsTimeseriesWithHTTPInfo",e.metrics),(0,H.validateRequired)("timeseriesPayload.parameters","queryPatternsTimeseriesWithHTTPInfo",e.parameters);let i={};return void 0!==t&&(i.index=t.toString()),s.requestWithHttpInfo({method:"POST",path:"/3/patterns/timeseries",queryParameters:i,headers:{},data:e},a)}}}({appId:e,apiKey:t,region:a,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,H.createNullLogger)(),requester:(0,j.createXhrRequester)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,H.createMemoryCache)(),requestsCache:(0,H.createMemoryCache)({serializable:!1}),hostsCache:(0,H.createFallbackableCache)({caches:[(0,H.createBrowserLocalStorageCache)({key:`${V}-${e}`}),(0,H.createMemoryCache)()]}),...n})}e.s(["analyticsClient",0,M,"apiClientVersion",0,V],510641);var G="5.57.0",F=["de","us"];
2305function z(e,t,a,i){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");if(a&&("string"!=typeof a||!F.includes(a)))throw Error(`\`region\` must be one of the following: ${F.join(", ")}`);let{compression:r,...n}=i||{};return function({appId:e,apiKey:t,authMode:a,algoliaAgents:i,region:r,...n}){let o=(0,H.createAuth)(e,t,a),s=(0,H.createTransporter)({hosts:[{url:r?"insights.{region}.algolia.io".replace("{region}",r):"insights.algolia.io",accept:"readWrite",protocol:"https"}],...n,algoliaAgent:(0,H.getAlgoliaAgent)({algoliaAgents:i,client:"Insights",version:G}),baseHeaders:{"content-type":"text/plain",...o.headers(),...n.baseHeaders},baseQueryParameters:{...o.queryParameters(),...n.baseQueryParameters}});return{transporter:s,appId:e,apiKey:t,clearCache:()=>Promise.all([s.requestsCache.clear(),s.responsesCache.clear()]).then(()=>void 0),get _ua(){return s.algoliaAgent.value},addAlgoliaAgent(e,t){s.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){a&&"WithinHeaders"!==a?s.baseQueryParameters["x-algolia-api-key"]=e:s.baseHeaders["x-algolia-api-key"]=e},customDelete({path:e,parameters:t},a){(0,H.validateRequired)("path","customDelete",e);let i="/{path}".replace("{path}",e);return s.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customDeleteWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customDeleteWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customGet({path:e,parameters:t},a){(0,H.validateRequired)("path","customGet",e);let i="/{path}".replace("{path}",e);return s.request({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customGetWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customGetWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customPost({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPost",e);let r="/{path}".replace("{path}",e);return s.request({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPostWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPostWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPut({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPut",e);let r="/{path}".replace("{path}",e);return s.request({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPutWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPutWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},deleteUserToken({userToken:e},t){(0,H.validateRequired)("userToken","deleteUserToken",e);let a="/1/usertokens/{userToken}".replace("{userToken}",encodeURIComponent(e));return s.request({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteUserTokenWithHTTPInfo({userToken:e},t){(0,H.validateRequired)("userToken","deleteUserTokenWithHTTPInfo",e);let a="/1/usertokens/{userToken}".replace("{userToken}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},pushEvents:(e,t)=>((0,H.validateRequired)("insightsEvents","pushEvents",e),(0,H.validateRequired)("insightsEvents.events","pushEvents",e.events),s.request({method:"POST",path:"/1/events",queryParameters:{},headers:{},data:e},t)),pushEventsWithHTTPInfo:(e,t)=>((0,H.validateRequired)("insightsEvents","pushEventsWithHTTPInfo",e),(0,H.validateRequired)("insightsEvents.events","pushEventsWithHTTPInfo",e.events),s.requestWithHttpInfo({method:"POST",path:"/1/events",queryParameters:{},headers:{},data:e},t))}}({appId:e,apiKey:t,region:a,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,H.createNullLogger)(),requester:(0,j.createXhrRequester)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,H.createMemoryCache)(),requestsCache:(0,H.createMemoryCache)({serializable:!1}),hostsCache:(0,H.createFallbackableCache)({caches:[(0,H.createBrowserLocalStorageCache)({key:`${G}-${e}`}),(0,H.createMemoryCache)()]}),...n})}e.s(["apiClientVersion",0,G,"insightsClient",0,z],957490);var K="5.57.0",Q=["eu","us"];
2305function Y(e,t,a,i){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");if(!a||a&&("string"!=typeof a||!Q.includes(a)))throw Error(`\`region\` is required and must be one of the following: ${Q.join(", ")}`);let{compression:r,...n}=i||{};return function({appId:e,apiKey:t,authMode:a,algoliaAgents:i,region:r,...n}){let o=(0,H.createAuth)(e,t,a),s=(0,H.createTransporter)({hosts:[{url:"personalization.{region}.algolia.com".replace("{region}",r),accept:"readWrite",protocol:"https"}],...n,algoliaAgent:(0,H.getAlgoliaAgent)({algoliaAgents:i,client:"Personalization",version:K}),baseHeaders:{"content-type":"text/plain",...o.headers(),...n.baseHeaders},baseQueryParameters:{...o.queryParameters(),...n.baseQueryParameters}});return{transporter:s,appId:e,apiKey:t,clearCache:()=>Promise.all([s.requestsCache.clear(),s.responsesCache.clear()]).then(()=>void 0),get _ua(){return s.algoliaAgent.value},addAlgoliaAgent(e,t){s.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){a&&"WithinHeaders"!==a?s.baseQueryParameters["x-algolia-api-key"]=e:s.baseHeaders["x-algolia-api-key"]=e},customDelete({path:e,parameters:t},a){(0,H.validateRequired)("path","customDelete",e);let i="/{path}".replace("{path}",e);return s.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customDeleteWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customDeleteWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customGet({path:e,parameters:t},a){(0,H.validateRequired)("path","customGet",e);let i="/{path}".replace("{path}",e);return s.request({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customGetWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customGetWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customPost({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPost",e);let r="/{path}".replace("{path}",e);return s.request({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPostWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPostWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPut({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPut",e);let r="/{path}".replace("{path}",e);return s.request({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPutWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPutWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},deleteUserProfile({userToken:e},t){(0,H.validateRequired)("userToken","deleteUserProfile",e);let a="/1/profiles/{userToken}".replace("{userToken}",encodeURIComponent(e));return s.request({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteUserProfileWithHTTPInfo({userToken:e},t){(0,H.validateRequired)("userToken","deleteUserProfileWithHTTPInfo",e);let a="/1/profiles/{userToken}".replace("{userToken}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},getPersonalizationStrategy:e=>s.request({method:"GET",path:"/1/strategies/personalization",queryParameters:{},headers:{}},e),getPersonalizationStrategyWithHTTPInfo:e=>s.requestWithHttpInfo({method:"GET",path:"/1/strategies/personalization",queryParameters:{},headers:{}},e),getUserTokenProfile({userToken:e},t){(0,H.validateRequired)("userToken","getUserTokenProfile",e);let a="/1/profiles/personalization/{userToken}".replace("{userToken}",encodeURIComponent(e));return s.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getUserTokenProfileWithHTTPInfo({userToken:e},t){(0,H.validateRequired)("userToken","getUserTokenProfileWithHTTPInfo",e);let a="/1/profiles/personalization/{userToken}".replace("{userToken}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},setPersonalizationStrategy:(e,t)=>((0,H.validateRequired)("personalizationStrategyParams","setPersonalizationStrategy",e),(0,H.validateRequired)("personalizationStrategyParams.eventsScoring","setPersonalizationStrategy",e.eventsScoring),(0,H.validateRequired)("personalizationStrategyParams.facetsScoring","setPersonalizationStrategy",e.facetsScoring),(0,H.validateRequired)("personalizationStrategyParams.personalizationImpact","setPersonalizationStrategy",e.personalizationImpact),s.request({method:"POST",path:"/1/strategies/personalization",queryParameters:{},headers:{},data:e},t)),setPersonalizationStrategyWithHTTPInfo:(e,t)=>((0,H.validateRequired)("personalizationStrategyParams","setPersonalizationStrategyWithHTTPInfo",e),(0,H.validateRequired)("personalizationStrategyParams.eventsScoring","setPersonalizationStrategyWithHTTPInfo",e.eventsScoring),(0,H.validateRequired)("personalizationStrategyParams.facetsScoring","setPersonalizationStrategyWithHTTPInfo",e.facetsScoring),(0,H.validateRequired)("personalizationStrategyParams.personalizationImpact","setPersonalizationStrategyWithHTTPInfo",e.personalizationImpact),s.requestWithHttpInfo({method:"POST",path:"/1/strategies/personalization",queryParameters:{},headers:{},data:e},t))}}({appId:e,apiKey:t,region:a,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,H.createNullLogger)(),requester:(0,j.createXhrRequester)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,H.createMemoryCache)(),requestsCache:(0,H.createMemoryCache)({serializable:!1}),hostsCache:(0,H.createFallbackableCache)({caches:[(0,H.createBrowserLocalStorageCache)({key:`${K}-${e}`}),(0,H.createMemoryCache)()]}),...n})}e.s(["apiClientVersion",0,K,"personalizationClient",0,Y],92185);var X="5.57.0",J=["eu","us"];
2305function Z(e,t,a,i){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");if(!a||a&&("string"!=typeof a||!J.includes(a)))throw Error(`\`region\` is required and must be one of the following: ${J.join(", ")}`);let{compression:r,...n}=i||{};return function({appId:e,apiKey:t,authMode:a,algoliaAgents:i,region:r,...n}){let o=(0,H.createAuth)(e,t,a),s=(0,H.createTransporter)({hosts:[{url:"query-suggestions.{region}.algolia.com".replace("{region}",r),accept:"readWrite",protocol:"https"}],...n,algoliaAgent:(0,H.getAlgoliaAgent)({algoliaAgents:i,client:"QuerySuggestions",version:X}),baseHeaders:{"content-type":"text/plain",...o.headers(),...n.baseHeaders},baseQueryParameters:{...o.queryParameters(),...n.baseQueryParameters}});return{transporter:s,appId:e,apiKey:t,clearCache:()=>Promise.all([s.requestsCache.clear(),s.responsesCache.clear()]).then(()=>void 0),get _ua(){return s.algoliaAgent.value},addAlgoliaAgent(e,t){s.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){a&&"WithinHeaders"!==a?s.baseQueryParameters["x-algolia-api-key"]=e:s.baseHeaders["x-algolia-api-key"]=e},createConfig:(e,t)=>((0,H.validateRequired)("configurationWithIndex","createConfig",e),s.request({method:"POST",path:"/1/configs",queryParameters:{},headers:{},data:e},t)),createConfigWithHTTPInfo:(e,t)=>((0,H.validateRequired)("configurationWithIndex","createConfigWithHTTPInfo",e),s.requestWithHttpInfo({method:"POST",path:"/1/configs",queryParameters:{},headers:{},data:e},t)),customDelete({path:e,parameters:t},a){(0,H.validateRequired)("path","customDelete",e);let i="/{path}".replace("{path}",e);return s.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customDeleteWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customDeleteWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customGet({path:e,parameters:t},a){(0,H.validateRequired)("path","customGet",e);let i="/{path}".replace("{path}",e);return s.request({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customGetWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customGetWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customPost({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPost",e);let r="/{path}".replace("{path}",e);return s.request({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPostWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPostWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPut({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPut",e);let r="/{path}".replace("{path}",e);return s.request({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPutWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPutWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},deleteConfig({indexName:e},t){(0,H.validateRequired)("indexName","deleteConfig",e);let a="/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e));return s.request({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteConfigWithHTTPInfo({indexName:e},t){(0,H.validateRequired)("indexName","deleteConfigWithHTTPInfo",e);let a="/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},getAllConfigs:e=>s.request({method:"GET",path:"/1/configs",queryParameters:{},headers:{}},e),getAllConfigsWithHTTPInfo:e=>s.requestWithHttpInfo({method:"GET",path:"/1/configs",queryParameters:{},headers:{}},e),getConfig({indexName:e},t){(0,H.validateRequired)("indexName","getConfig",e);let a="/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e));return s.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getConfigWithHTTPInfo({indexName:e},t){(0,H.validateRequired)("indexName","getConfigWithHTTPInfo",e);let a="/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},getConfigStatus({indexName:e},t){(0,H.validateRequired)("indexName","getConfigStatus",e);let a="/1/configs/{indexName}/status".replace("{indexName}",encodeURIComponent(e));return s.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getConfigStatusWithHTTPInfo({indexName:e},t){(0,H.validateRequired)("indexName","getConfigStatusWithHTTPInfo",e);let a="/1/configs/{indexName}/status".replace("{indexName}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},getLogFile({indexName:e},t){(0,H.validateRequired)("indexName","getLogFile",e);let a="/1/logs/{indexName}".replace("{indexName}",encodeURIComponent(e));return s.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getLogFileWithHTTPInfo({indexName:e},t){(0,H.validateRequired)("indexName","getLogFileWithHTTPInfo",e);let a="/1/logs/{indexName}".replace("{indexName}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},updateConfig({indexName:e,configuration:t},a){(0,H.validateRequired)("indexName","updateConfig",e),(0,H.validateRequired)("configuration","updateConfig",t),(0,H.validateRequired)("configuration.sourceIndices","updateConfig",t.sourceIndices);let i="/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e));return s.request({method:"PUT",path:i,queryParameters:{},headers:{},data:t},a)},updateConfigWithHTTPInfo({indexName:e,configuration:t},a){(0,H.validateRequired)("indexName","updateConfigWithHTTPInfo",e),(0,H.validateRequired)("configuration","updateConfigWithHTTPInfo",t),(0,H.validateRequired)("configuration.sourceIndices","updateConfigWithHTTPInfo",t.sourceIndices);let i="/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"PUT",path:i,queryParameters:{},headers:{},data:t},a)}}}({appId:e,apiKey:t,region:a,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,H.createNullLogger)(),requester:(0,j.createXhrRequester)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,H.createMemoryCache)(),requestsCache:(0,H.createMemoryCache)({serializable:!1}),hostsCache:(0,H.createFallbackableCache)({caches:[(0,H.createBrowserLocalStorageCache)({key:`${X}-${e}`}),(0,H.createMemoryCache)()]}),...n})}e.s(["apiClientVersion",0,X,"querySuggestionsClient",0,Z],471368);var ee="5.57.0";function et(e,t,a){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");let{compression:i,...r}=a||{};return function({appId:e,apiKey:t,authMode:a,algoliaAgents:i,...r}){let n=(0,H.createAuth)(e,t,a),o=(0,H.createTransporter)({hosts:[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat((0,H.shuffle)([{url:`${e}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-3.algolianet.com`,accept:"readWrite",protocol:"https"}])),...r,algoliaAgent:(0,H.getAlgoliaAgent)({algoliaAgents:i,client:"Search",version:ee}),baseHeaders:{"content-type":"text/plain",...n.headers(),...r.baseHeaders},baseQueryParameters:{...n.queryParameters(),...r.baseQueryParameters}});return{transporter:o,appId:e,apiKey:t,clearCache:()=>Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then(()=>void 0),get _ua(){return o.algoliaAgent.value},addAlgoliaAgent(e,t){o.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){a&&"WithinHeaders"!==a?o.baseQueryParameters["x-algolia-api-key"]=e:o.baseHeaders["x-algolia-api-key"]=e},waitForTask({indexName:e,taskID:t,maxRetries:a=100,timeout:i=e=>Math.min(200*e,5e3)},r){r=(0,H.withRequestId)(o,r);let n=0;return(0,H.createIterablePromise)({func:()=>this.getTask({indexName:e,taskID:t},r),validate:e=>"published"===e.status,aggregator:()=>n+=1,error:{validate:()=>n>=a,message:()=>`Stopped waiting for the task after ${a} retries. This does not mean the operation failed; it may still complete. If you need to keep polling, retry with a higher maxRetries.`},timeout:()=>i(n)})},waitForAppTask({taskID:e,maxRetries:t=100,timeout:a=e=>Math.min(200*e,5e3)},i){i=(0,H.withRequestId)(o,i);let r=0;return(0,H.createIterablePromise)({func:()=>this.getAppTask({taskID:e},i),validate:e=>"published"===e.status,aggregator:()=>r+=1,error:{validate:()=>r>=t,message:()=>`Stopped waiting for the task after ${t} retries. This does not mean the operation failed; it may still complete. If you need to keep polling, retry with a higher maxRetries.`},timeout:()=>a(r)})},waitForApiKey({operation:e,key:t,apiKey:a,maxRetries:i=100,timeout:r=e=>Math.min(200*e,5e3)},n){n=(0,H.withRequestId)(o,n);let s=0,l={aggregator:()=>s+=1,error:{validate:()=>s>=i,message:()=>`Stopped waiting for the API key operation after ${i} retries. This does not mean the operation failed; it may still complete. If you need to keep polling, retry with a higher maxRetries.`},timeout:()=>r(s)};if("update"===e){if(!a)throw Error("`apiKey` is required when waiting for an `update` operation.");return(0,H.createIterablePromise)({...l,func:()=>this.getApiKey({key:t},n),validate:e=>{for(let t of Object.keys(a)){let i=a[t],r=e[t];if(Array.isArray(i)&&Array.isArray(r)){if(i.length!==r.length||i.some((e,t)=>e!==r[t]))return!1}else if(i!==r)return!1}return!0}})}return(0,H.createIterablePromise)({...l,func:()=>this.getApiKey({key:t},n).catch(e=>{if(404!==e.status)throw e}),validate:t=>"add"===e?void 0!==t:void 0===t})},browseObjects({indexName:e,browseParams:t,...a},i){return i=(0,H.withRequestId)(o,i),(0,H.createIterablePromise)({func:a=>this.browse({indexName:e,browseParams:{cursor:a?a.cursor:void 0,hitsPerPage:1e3,...t}},i),validate:e=>
2305void 0===e.cursor,...a})},browseRules({indexName:e,searchRulesParams:t,...a},i){i=(0,H.withRequestId)(o,i);let r={...t,hitsPerPage:t?.hitsPerPage||1e3};return(0,H.createIterablePromise)({func:t=>this.searchRules({indexName:e,searchRulesParams:{...r,page:t?t.page+1:r.page||0}},i),validate:e=>e.hits.length<r.hitsPerPage,...a})},browseSynonyms({indexName:e,searchSynonymsParams:t,...a},i){i=(0,H.withRequestId)(o,i);let r={...t,page:t?.page||0,hitsPerPage:1e3};return(0,H.createIterablePromise)({func:t=>{let a=this.searchSynonyms({indexName:e,searchSynonymsParams:{...r,page:r.page}},i);return r.page+=1,a},validate:e=>e.hits.length<r.hitsPerPage,...a})},async chunkedBatch({indexName:e,objects:t,action:a="addObject",waitForTasks:i,batchSize:r=1e3,maxRetries:n=100},s){s=(0,H.withRequestId)(o,s);let l=[],d=[];for(let[i,n]of t.entries())l.push({action:a,body:n}),(l.length===r||i===t.length-1)&&(d.push(await this.batch({indexName:e,batchWriteParams:{requests:l}},s)),l=[]);if(i)for(let t of d)await this.waitForTask({indexName:e,taskID:t.taskID,maxRetries:n},s);return d},async saveObjects({indexName:e,objects:t,waitForTasks:a,batchSize:i,maxRetries:r},n){return await this.chunkedBatch({indexName:e,objects:t,action:"addObject",waitForTasks:a,batchSize:i,maxRetries:r},n)},async deleteObjects({indexName:e,objectIDs:t,waitForTasks:a,batchSize:i,maxRetries:r},n){return await this.chunkedBatch({indexName:e,objects:t.map(e=>({objectID:e})),action:"deleteObject",waitForTasks:a,batchSize:i,maxRetries:r},n)},async partialUpdateObjects({indexName:e,objects:t,createIfNotExists:a,waitForTasks:i,batchSize:r,maxRetries:n},o){return await this.chunkedBatch({indexName:e,objects:t,action:a?"partialUpdateObject":"partialUpdateObjectNoCreate",batchSize:r,waitForTasks:i,maxRetries:n},o)},async replaceAllObjects({indexName:e,objects:t,batchSize:a,scopes:i,maxRetries:r=H.DEFAULT_REPLACE_ALL_OBJECTS_MAX_RETRIES},n){n=(0,H.withRequestId)(o,n),0===t.length&&(0,H.logWarning)(o.logger,`replaceAllObjects was called with an empty list of objects, which will delete all records currently in the "${e}" index.`);let s=Math.floor(1e6*Math.random())+1e5,l=`${e}_tmp_${s}`;void 0===i&&(i=["settings","rules","synonyms"]);try{let o=await this.operationIndex({indexName:e,operationIndexParams:{operation:"copy",destination:l,scope:i}},n),s=await this.chunkedBatch({indexName:l,objects:t,waitForTasks:!0,batchSize:a,maxRetries:r},n);await this.waitForTask({indexName:l,taskID:o.taskID,maxRetries:r},n),o=await this.operationIndex({indexName:e,operationIndexParams:{operation:"copy",destination:l,scope:i}},n),await this.waitForTask({indexName:l,taskID:o.taskID,maxRetries:r},n);let d=await this.operationIndex({indexName:l,operationIndexParams:{operation:"move",destination:e}},n);return await this.waitForTask({indexName:l,taskID:d.taskID,maxRetries:r},n),{copyOperationResponse:o,batchResponses:s,moveOperationResponse:d}}catch(e){throw await this.deleteIndex({indexName:l},n),e}},async indexExists({indexName:e}
2305,t){try{await this.getSettings({indexName:e},t)}catch(e){if(e instanceof H.ApiError&&404===e.status)return!1;throw e}return!0},searchForHits(e,t){return this.search(e,t)},searchForFacets(e,t){return this.search(e,t)},addApiKey:(e,t)=>((0,H.validateRequired)("apiKey","addApiKey",e),(0,H.validateRequired)("apiKey.acl","addApiKey",e.acl),o.request({method:"POST",path:"/1/keys",queryParameters:{},headers:{},data:e},t)),addApiKeyWithHTTPInfo:(e,t)=>((0,H.validateRequired)("apiKey","addApiKeyWithHTTPInfo",e),(0,H.validateRequired)("apiKey.acl","addApiKeyWithHTTPInfo",e.acl),o.requestWithHttpInfo({method:"POST",path:"/1/keys",queryParameters:{},headers:{},data:e},t)),addOrUpdateObject({indexName:e,objectID:t,body:a},i){(0,H.validateRequired)("indexName","addOrUpdateObject",e),(0,H.validateRequired)("objectID","addOrUpdateObject",t),(0,H.validateRequired)("body","addOrUpdateObject",a);let r="/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t));return o.request({method:"PUT",path:r,queryParameters:{},headers:{},data:a},i)},addOrUpdateObjectWithHTTPInfo({indexName:e,objectID:t,body:a},i){(0,H.validateRequired)("indexName","addOrUpdateObjectWithHTTPInfo",e),(0,H.validateRequired)("objectID","addOrUpdateObjectWithHTTPInfo",t),(0,H.validateRequired)("body","addOrUpdateObjectWithHTTPInfo",a);let r="/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t));return o.requestWithHttpInfo({method:"PUT",path:r,queryParameters:{},headers:{},data:a},i)},appendSource:(e,t)=>((0,H.validateRequired)("source","appendSource",e),(0,H.validateRequired)("source.source","appendSource",e.source),o.request({method:"POST",path:"/1/security/sources/append",queryParameters:{},headers:{},data:e},t)),appendSourceWithHTTPInfo:(e,t)=>((0,H.validateRequired)("source","appendSourceWithHTTPInfo",e),(0,H.validateRequired)("source.source","appendSourceWithHTTPInfo",e.source),o.requestWithHttpInfo({method:"POST",path:"/1/security/sources/append",queryParameters:{},headers:{},data:e},t)),assignUserId({xAlgoliaUserID:e,assignUserIdParams:t},a){(0,H.validateRequired)("xAlgoliaUserID","assignUserId",e),(0,H.validateRequired)("assignUserIdParams","assignUserId",t),(0,H.validateRequired)("assignUserIdParams.cluster","assignUserId",t.cluster);let i={};return void 0!==e&&(i["X-Algolia-User-ID"]=e.toString()),o.request({method:"POST",path:"/1/clusters/mapping",queryParameters:{},headers:i,data:t},a)},assignUserIdWithHTTPInfo({xAlgoliaUserID:e,assignUserIdParams:t},a){(0,H.validateRequired)("xAlgoliaUserID","assignUserIdWithHTTPInfo",e),(0,H.validateRequired)("assignUserIdParams","assignUserIdWithHTTPInfo",t),(0,H.validateRequired)("assignUserIdParams.cluster","assignUserIdWithHTTPInfo",t.cluster);let i={};return void 0!==e&&(i["X-Algolia-User-ID"]=e.toString()),o.requestWithHttpInfo({method:"POST",path:"/1/clusters/mapping",queryParameters:{},headers:i,data:t},a)},batch({indexName:e,batchWriteParams:t},a){(0,H.validateRequired)("indexName","batch",e),(0,H.validateRequired)("batchWriteParams","batch",t),(0,H.validateRequired)("batchWriteParams.requests","batch",t.requests);let i="/1/indexes/{indexName}/batch".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:i,queryParameters:{},headers:{},data:t},a)},batchWithHTTPInfo({indexName:e,batchWriteParams:t},a){(0,H.validateRequired)("indexName","batchWithHTTPInfo",e),(0,H.validateRequired)("batchWriteParams","batchWithHTTPInfo",t),(0,H.validateRequired)("batchWriteParams.requests","batchWithHTTPInfo",t.requests);let i="/1/indexes/{indexName}/batch".replace("{indexName}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"POST",path:i,queryParameters:{},headers:{},data:t},a)},batchAssignUserIds({xAlgoliaUserID:e,batchAssignUserIdsParams:t},a){(0,H.validateRequired)("xAlgoliaUserID","batchAssignUserIds",e),(0,H.validateRequired)("batchAssignUserIdsParams","batchAssignUserIds",t),(0,H.validateRequired)("batchAssignUserIdsParams.cluster","batchAssignUserIds",t.cluster),(0,H.validateRequired)("batchAssignUserIdsParams.users","batchAssignUserIds",t.users);let i={};return void 0!==e&&(i["X-Algolia-User-ID"]=e.toString()),o.request({method:"POST",path:"/1/clusters/mapping/batch",queryParameters:{},headers:i,data:t},a)},batchAssignUserIdsWithHTTPInfo({xAlgoliaUserID:e,batchAssignUserIdsParams:t},a){(0,H.validateRequired)("xAlgoliaUserID","batchAssignUserIdsWithHTTPInfo",e),(0,H.validateRequired)("batchAssignUserIdsParams","batchAssignUserIdsWithHTTPInfo",t),(0,H.validateRequired)("batchAssignUserIdsParams.cluster","batchAssignUserIdsWithHTTPInfo",t.cluster),(0,H.validateRequired)("batchAssignUserIdsParams.users","batchAssignUserIdsWithHTTPInfo",t.users);let i={};return void 0!==e&&(i["X-Algolia-User-ID"]=e.toString()),o.requestWithHttpInfo({method:"POST",path:"/1/clusters/mapping/batch",queryParameters:{},headers:i,data:t},a)},batchDictionaryEntries({dictionaryName:e,batchDictionaryEntriesParams:t},a){(0,H.validateRequired)("dictionaryName","batchDictionaryEntries",e),(0,H.validateRequired)("batchDictionaryEntriesParams","batchDictionaryEntries",t),(0,H.validateRequired)("batchDictionaryEntriesParams.requests","batchDictionaryEntries",t.requests);let i="/1/dictionaries/{dictionaryName}/batch".replace("{dictionaryName}",encodeURIComponent(e));return o.request({method:"POST",path:i,queryParameters:{},headers:{},data:t},a)},batchDictionaryEntriesWithHTTPInfo({dictionaryName:e,batchDictionaryEntriesParams:t},a){(0,H.validateRequired)("dictionaryName","batchDictionaryEntriesWithHTTPInfo",e),(0,H.validateRequired)("batchDictionaryEntriesParams","batchDictionaryEntriesWithHTTPInfo",t),(0,H.validateRequired)("batchDictionaryEntriesParams.requests","batchDictionaryEntriesWithHTTPInfo",t.requests);let i="/1/dictionaries/{dictionaryName}/batch".replace("{dictionaryName}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"POST",path:i,queryParameters:{},headers:{},data:t},a)},browse({indexName:e,browseParams:t},a){(0,H.validateRequired)("indexName","browse",e);let i="/1/indexes/{indexName}/browse".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:i,queryParameters:{},headers:{},data:t||{},useReadTransporter:!0},a)},browseWithHTTPInfo({indexName:e,browseParams:t},a){(0,H.validateRequired)("indexName","browseWithHTTPInfo",e);let i="/1/indexes/{indexName}/browse".replace("{indexName}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"POST",path:i,queryParameters:{},headers:{},data:t||{},useReadTransporter:!0},a)},clearObjects({indexName:e},t){(0,H.validateRequired)("indexName","clearObjects",e);let a="/1/indexes/{indexName}/clear".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:a,queryParameters:{},headers:{}},t)},clearObjectsWithHTTPInfo({indexName:e},t){(0,H.validateRequired)("indexName","clearObjectsWithHTTPInfo",e);let a="/1/indexes/{indexName}/clear".replace("{indexName}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"POST",path:a,queryParameters:{},headers:{}},t)},clearRules({indexName:e,forwardToReplicas:t},a){(0,H.validateRequired)("indexName","clearRules",e);let i="/1/indexes/{indexName}/rules/clear".replace("{indexName}",encodeURIComponent(e)),r={};return void 0!==t&&(r.forwardToReplicas=t.toString()),o.request({method:"POST",path:i,queryParameters:r,headers:{}},a)},clearRulesWithHTTPInfo({indexName:e,forwardToReplicas:t},a){(0,H.validateRequired)("indexName","clearRulesWithHTTPInfo",e);let i="/1/indexes/{indexName}/rules/clear".replace("{indexName}",encodeURIComponent(e)),r={};return void 0!==t&&(r.forwardToReplicas=t.toString()),o.requestWithHttpInfo({method:"POST",path:i,queryParameters:r,headers:{}},a)},clearSynonyms({indexName:e,forwardToReplicas:t},a){(0,H.validateRequired)("indexName","clearSynonyms",e);let i="/1/indexes/{indexName}/synonyms/clear".replace("{indexName}",encodeURIComponent(e)),r={};return void 0!==t&&(r.forwardToReplicas=t.toString()),o.request({method:"POST",path:i,queryParameters:r,headers:{}},a)},clearSynonymsWithHTTPInfo({indexName:e,forwardToReplicas:t},a){(0,H.validateRequired)("indexName","clearSynonymsWithHTTPInfo",e);let i="/1/indexes/{indexName}/synonyms/clear".replace("{indexName}",encodeURIComponent(e)),r={};return void 0!==t&&(r.forwardToReplicas=t.toString()),o.requestWithHttpInfo({method:"POST",path:i,queryParameters:r,headers:{}},a)},customDelete({path:e,parameters:t},a){(0,H.validateRequired)("path","customDelete",e);let i="/{path}".replace("{path}",e);return o.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customDeleteWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customDeleteWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return o.requestWithHttpInfo({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customGet({path:e,parameters:t},a){(0,H.validateRequired)("path","customGet",e);let i="/{path}".replace("{path}",e);return o.request({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customGetWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customGetWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return o.requestWithHttpInfo({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customPost({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPost",e);let r="/{path}".replace("{path}",e);return o.request({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPostWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPostWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return o.requestWithHttpInfo({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPut({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPut",e);let r="/{path}".replace("{path}",e);return o.request({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPutWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPutWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return o.requestWithHttpInfo({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},deleteApiKey({key:e},t){(0,H.validateRequired)("key","deleteApiKey",e);let a="/1/keys/{key}".replace("{key}",encodeURIComponent(e));return o.request({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteApiKeyWithHTTPInfo({key:e},t){(0,H.validateRequired)("key","deleteApiKeyWithHTTPInfo",e);let a="/1/keys/{key}".replace("{key}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteBy({indexName:e,deleteByParams:t},a){(0,H.validateRequired)("indexName","deleteBy",e),(0,H.validateRequired)("deleteByParams","deleteBy",t);let i="/1/indexes/{indexName}/deleteByQuery".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:i,queryParameters:{},headers:{},data:t},a)},deleteByWithHTTPInfo({indexName:e,deleteByParams:t},a){(0,H.validateRequired)("indexName","deleteByWithHTTPInfo",e),(0,H.validateRequired)("deleteByParams","deleteByWithHTTPInfo",t);let i="/1/indexes/{indexName}/deleteByQuery".replace("{indexName}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"POST",path:i,queryParameters:{},headers:{},data:t},a)},deleteIndex({indexName:e},t){(0,H.validateRequired)("indexName","deleteIndex",e);let a="/1/indexes/{indexName}".replace("{indexName}",encodeURIComponent(e));return o.request({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteIndexWithHTTPInfo({indexName:e},t){(0,H.validateRequired)("indexName","deleteIndexWithHTTPInfo",e);let a="/1/indexes/{indexName}".replace("{indexName}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteObject({indexName:e,objectID:t},a){(0,H.validateRequired)("indexName","deleteObject",e),(0,H.validateRequired)("objectID","deleteObject",t);let i="/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t));return o.request({method:"DELETE",path:i,queryParameters:{},headers:{}},a)},deleteObjectWithHTTPInfo({indexName:e,objectID:t},a){(0,H.validateRequired)("indexName","deleteObjectWithHTTPInfo",e),(0,H.validateRequired)("objectID","deleteObjectWithHTTPInfo",t);let i="/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t));return o.requestWithHttpInfo({method:"DELETE",path:i,queryParameters:{},headers:{}},a)},deleteRule({indexName:e,objectID:t,forwardToReplicas:a},i){(0,H.validateRequired)("indexName","deleteRule",e),(0,H.validateRequired)("objectID","deleteRule",t);let r="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),n={};return void 0!==a&&(n.forwardToReplicas=a.toString()),o.request({method:"DELETE",path:r,queryParameters:n,headers:{}},i)},deleteRuleWithHTTPInfo({indexName:e,objectID:t,forwardToReplicas:a},i){(0,H.validateRequired)("indexName","deleteRuleWithHTTPInfo",e),(0,H.validateRequired)("objectID","deleteRuleWithHTTPInfo",t);let r="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),n={};return void 0!==a&&(n.forwardToReplicas=a.toString()),o.requestWithHttpInfo({method:"DELETE",path:r,queryParameters:n,headers:{}},i)},deleteSource({source:e},t){(0,H.validateRequired)("source","deleteSource",e);let a="/1/security/sources/{source}".replace("{source}",encodeURIComponent(e));return o.request({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteSourceWithHTTPInfo({source:e},t){(0,H.validateRequired)("source","deleteSourceWithHTTPInfo",e);let a="/1/security/sources/{source}".replace("{source}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteSynonym({indexName:e,objectID:t,forwardToReplicas:a},i){(0,H.validateRequired)("indexName","deleteSynonym",e),(0,H.validateRequired)("objectID","deleteSynonym",t);let r="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),n={};return void 0!==a&&(n.forwardToReplicas=a.toString()),o.request({method:"DELETE",path:r,queryParameters:n,headers:{}},i)},deleteSynonymWithHTTPInfo({indexName:e,objectID:t,forwardToReplicas:a},i){(0,H.validateRequired)("indexName","deleteSynonymWithHTTPInfo",e),(0,H.validateRequired)("objectID","deleteSynonymWithHTTPInfo",t);let r="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),n={};return void 0!==a&&(n.forwardToReplicas=a.toString()),o.requestWithHttpInfo({method:"DELETE",path:r,queryParameters:n,headers:{}},i)},getApiKey({key:e},t){(0,H.validateRequired)("key","getApiKey",e);let a="/1/keys/{key}".replace("{key}",encodeURIComponent(e));return o.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getApiKeyWithHTTPInfo({key:e},t){(0,H.validateRequired)("key","getApiKeyWithHTTPInfo",e);let a="/1/keys/{key}".replace("{key}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},getAppTask({taskID:e},t){(0,H.validateRequired)("taskID","getAppTask",e);let a="/1/task/{taskID}".replace("{taskID}",encodeURIComponent(e));return o.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getAppTaskWithHTTPInfo({taskID:e},t){(0,H.validateRequired)("taskID","getAppTaskWithHTTPInfo",e);let a="/1/task/{taskID}".replace("{taskID}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},getDictionaryLanguages:e=>o.request({method:"GET",path:"/1/dictionaries/*/languages",queryParameters:{},headers:{}}
2305,e),getDictionaryLanguagesWithHTTPInfo:e=>o.requestWithHttpInfo({method:"GET",path:"/1/dictionaries/*/languages",queryParameters:{},headers:{}},e),getDictionarySettings:e=>o.request({method:"GET",path:"/1/dictionaries/*/settings",queryParameters:{},headers:{}},e),getDictionarySettingsWithHTTPInfo:e=>o.requestWithHttpInfo({method:"GET",path:"/1/dictionaries/*/settings",queryParameters:{},headers:{}},e),getLogs({offset:e,length:t,indexName:a,type:i}={},r){let n={};return void 0!==e&&(n.offset=e.toString()),void 0!==t&&(n.length=t.toString()),void 0!==a&&(n.indexName=a.toString()),void 0!==i&&(n.type=i.toString()),o.request({method:"GET",path:"/1/logs",queryParameters:n,headers:{}},r)},getLogsWithHTTPInfo({offset:e,length:t,indexName:a,type:i}={},r){let n={};return void 0!==e&&(n.offset=e.toString()),void 0!==t&&(n.length=t.toString()),void 0!==a&&(n.indexName=a.toString()),void 0!==i&&(n.type=i.toString()),o.requestWithHttpInfo({method:"GET",path:"/1/logs",queryParameters:n,headers:{}},r)},getObject({indexName:e,objectID:t,attributesToRetrieve:a},i){(0,H.validateRequired)("indexName","getObject",e),(0,H.validateRequired)("objectID","getObject",t);let r="/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),n={};return void 0!==a&&(n.attributesToRetrieve=a.toString()),o.request({method:"GET",path:r,queryParameters:n,headers:{}},i)},getObjectWithHTTPInfo({indexName:e,objectID:t,attributesToRetrieve:a},i){(0,H.validateRequired)("indexName","getObjectWithHTTPInfo",e),(0,H.validateRequired)("objectID","getObjectWithHTTPInfo",t);let r="/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),n={};return void 0!==a&&(n.attributesToRetrieve=a.toString()),o.requestWithHttpInfo({method:"GET",path:r,queryParameters:n,headers:{}},i)},getObjects:(e,t)=>((0,H.validateRequired)("getObjectsParams","getObjects",e),(0,H.validateRequired)("getObjectsParams.requests","getObjects",e.requests),o.request({method:"POST",path:"/1/indexes/*/objects",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0},t)),getObjectsWithHTTPInfo:(e,t)=>((0,H.validateRequired)("getObjectsParams","getObjectsWithHTTPInfo",e),(0,H.validateRequired)("getObjectsParams.requests","getObjectsWithHTTPInfo",e.requests),o.requestWithHttpInfo({method:"POST",path:"/1/indexes/*/objects",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0},t)),getRule({indexName:e,objectID:t},a){(0,H.validateRequired)("indexName","getRule",e),(0,H.validateRequired)("objectID","getRule",t);let i="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t));return o.request({method:"GET",path:i,queryParameters:{},headers:{}},a)},getRuleWithHTTPInfo({indexName:e,objectID:t},a){(0,H.validateRequired)("indexName","getRuleWithHTTPInfo",e),(0,H.validateRequired)("objectID","getRuleWithHTTPInfo",t);let i="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t));return o.requestWithHttpInfo({method:"GET",path:i,queryParameters:{},headers:{}},a)},getSettings({indexName:e,getVersion:t},a){(0,H.validateRequired)("indexName","getSettings",e);let i="/1/indexes/{indexName}/settings".replace("{indexName}",encodeURIComponent(e)),r={};return void 0!==t&&(r.getVersion=t.toString()),o.request({method:"GET",path:i,queryParameters:r,headers:{}},a)},getSettingsWithHTTPInfo({indexName:e,getVersion:t},a){(0,H.validateRequired)("indexName","getSettingsWithHTTPInfo",e);let i="/1/indexes/{indexName}/settings".replace("{indexName}",encodeURIComponent(e)),r={};return void 0!==t&&(r.getVersion=t.toString()),o.requestWithHttpInfo({method:"GET",path:i,queryParameters:r,headers:{}},a)},getSources:e=>o.request({method:"GET",path:"/1/security/sources",queryParameters:{},headers:{}},e),getSourcesWithHTTPInfo:e=>o.requestWithHttpInfo({method:"GET",path:"/1/security/sources",queryParameters:{},headers:{}},e),getSynonym({indexName:e,objectID:t},a){(0,H.validateRequired)("indexName","getSynonym",e),(0,H.validateRequired)("objectID","getSynonym",t);let i="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t));return o.request({method:"GET",path:i,queryParameters:{},headers:{}},a)},getSynonymWithHTTPInfo({indexName:e,objectID:t},a){(0,H.validateRequired)("indexName","getSynonymWithHTTPInfo",e),(0,H.validateRequired)("objectID","getSynonymWithHTTPInfo",t);let i="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t));return o.requestWithHttpInfo({method:"GET",path:i,queryParameters:{},headers:{}},a)},getTask({indexName:e,taskID:t},a){(0,H.validateRequired)("indexName","getTask",e),(0,H.validateRequired)("taskID","getTask",t);let i="/1/indexes/{indexName}/task/{taskID}".replace("{indexName}",encodeURIComponent(e)).replace("{taskID}",encodeURIComponent(t));return o.request({method:"GET",path:i,queryParameters:{},headers:{}},a)},getTaskWithHTTPInfo({indexName:e,taskID:t},a){(0,H.validateRequired)("indexName","getTaskWithHTTPInfo",e),(0,H.validateRequired)("taskID","getTaskWithHTTPInfo",t);let i="/1/indexes/{indexName}/task/{taskID}".replace("{indexName}",encodeURIComponent(e)).replace("{taskID}",encodeURIComponent(t));return o.requestWithHttpInfo({method:"GET",path:i,queryParameters:{},headers:{}},a)},getTopUserIds:e=>o.request({method:"GET",path:"/1/clusters/mapping/top",queryParameters:{},headers:{}},e),getTopUserIdsWithHTTPInfo:e=>o.requestWithHttpInfo({method:"GET",path:"/1/clusters/mapping/top",queryParameters:{},headers:{}},e),getUserId({userID:e},t){(0,H.validateRequired)("userID","getUserId",e);let a="/1/clusters/mapping/{userID}".replace("{userID}",encodeURIComponent(e));return o.request({method:"GET",path:a,queryParameters:{},headers:{}},t)}
2305,getUserIdWithHTTPInfo({userID:e},t){(0,H.validateRequired)("userID","getUserIdWithHTTPInfo",e);let a="/1/clusters/mapping/{userID}".replace("{userID}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},hasPendingMappings({getClusters:e}={},t){let a={};return void 0!==e&&(a.getClusters=e.toString()),o.request({method:"GET",path:"/1/clusters/mapping/pending",queryParameters:a,headers:{}},t)},hasPendingMappingsWithHTTPInfo({getClusters:e}={},t){let a={};return void 0!==e&&(a.getClusters=e.toString()),o.requestWithHttpInfo({method:"GET",path:"/1/clusters/mapping/pending",queryParameters:a,headers:{}},t)},listApiKeys:e=>o.request({method:"GET",path:"/1/keys",queryParameters:{},headers:{}},e),listApiKeysWithHTTPInfo:e=>o.requestWithHttpInfo({method:"GET",path:"/1/keys",queryParameters:{},headers:{}},e),listClusters:e=>o.request({method:"GET",path:"/1/clusters",queryParameters:{},headers:{}},e),listClustersWithHTTPInfo:e=>o.requestWithHttpInfo({method:"GET",path:"/1/clusters",queryParameters:{},headers:{}},e),listIndices({page:e,hitsPerPage:t}={},a){let i={};return void 0!==e&&(i.page=e.toString()),void 0!==t&&(i.hitsPerPage=t.toString()),o.request({method:"GET",path:"/1/indexes",queryParameters:i,headers:{}},a)},listIndicesWithHTTPInfo({page:e,hitsPerPage:t}={},a){let i={};return void 0!==e&&(i.page=e.toString()),void 0!==t&&(i.hitsPerPage=t.toString()),o.requestWithHttpInfo({method:"GET",path:"/1/indexes",queryParameters:i,headers:{}},a)},listUserIds({page:e,hitsPerPage:t}={},a){let i={};return void 0!==e&&(i.page=e.toString()),void 0!==t&&(i.hitsPerPage=t.toString()),o.request({method:"GET",path:"/1/clusters/mapping",queryParameters:i,headers:{}},a)},listUserIdsWithHTTPInfo({page:e,hitsPerPage:t}={},a){let i={};return void 0!==e&&(i.page=e.toString()),void 0!==t&&(i.hitsPerPage=t.toString()),o.requestWithHttpInfo({method:"GET",path:"/1/clusters/mapping",queryParameters:i,headers:{}},a)},multipleBatch:(e,t)=>((0,H.validateRequired)("batchParams","multipleBatch",e),(0,H.validateRequired)("batchParams.requests","multipleBatch",e.requests),o.request({method:"POST",path:"/1/indexes/*/batch",queryParameters:{},headers:{},data:e},t)),multipleBatchWithHTTPInfo:(e,t)=>((0,H.validateRequired)("batchParams","multipleBatchWithHTTPInfo",e),(0,H.validateRequired)("batchParams.requests","multipleBatchWithHTTPInfo",e.requests),o.requestWithHttpInfo({method:"POST",path:"/1/indexes/*/batch",queryParameters:{},headers:{},data:e},t)),operationIndex({indexName:e,operationIndexParams:t},a){(0,H.validateRequired)("indexName","operationIndex",e),(0,H.validateRequired)("operationIndexParams","operationIndex",t),(0,H.validateRequired)("operationIndexParams.operation","operationIndex",t.operation),(0,H.validateRequired)("operationIndexParams.destination","operationIndex",t.destination);let i="/1/indexes/{indexName}/operation".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:i,queryParameters:{},headers:{},data:t},a)},operationIndexWithHTTPInfo({indexName:e,operationIndexParams:t},a){(0,H.validateRequired)("indexName","operationIndexWithHTTPInfo",e),(0,H.validateRequired)("operationIndexParams","operationIndexWithHTTPInfo",t),(0,H.validateRequired)("operationIndexParams.operation","operationIndexWithHTTPInfo",t.operation),(0,H.validateRequired)("operationIndexParams.destination","operationIndexWithHTTPInfo",t.destination);let i="/1/indexes/{indexName}/operation".replace("{indexName}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"POST",path:i,queryParameters:{},headers:{},data:t},a)},partialUpdateObject({indexName:e,objectID:t,attributesToUpdate:a,createIfNotExists:i},r){(0,H.validateRequired)("indexName","partialUpdateObject",e),(0,H.validateRequired)("objectID","partialUpdateObject",t),(0,H.validateRequired)("attributesToUpdate","partialUpdateObject",a);let n="/1/indexes/{indexName}/{objectID}/partial".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),s={};return void 0!==i&&(s.createIfNotExists=i.toString()),o.request({method:"POST",path:n,queryParameters:s,headers:{},data:a},r)},partialUpdateObjectWithHTTPInfo({indexName:e,objectID:t,attributesToUpdate:a,createIfNotExists:i},r){(0,H.validateRequired)("indexName","partialUpdateObjectWithHTTPInfo",e),(0,H.validateRequired)("objectID","partialUpdateObjectWithHTTPInfo",t),(0,H.validateRequired)("attributesToUpdate","partialUpdateObjectWithHTTPInfo",a);let n="/1/indexes/{indexName}/{objectID}/partial".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),s={};return void 0!==i&&(s.createIfNotExists=i.toString()),o.requestWithHttpInfo({method:"POST",path:n,queryParameters:s,headers:{},data:a},r)},removeUserId({userID:e},t){(0,H.validateRequired)("userID","removeUserId",e);let a="/1/clusters/mapping/{userID}".replace("{userID}",encodeURIComponent(e));return o.request({method:"DELETE",path:a,queryParameters:{},headers:{}},t)}
2305,removeUserIdWithHTTPInfo({userID:e},t){(0,H.validateRequired)("userID","removeUserIdWithHTTPInfo",e);let a="/1/clusters/mapping/{userID}".replace("{userID}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},replaceSources:({source:e},t)=>((0,H.validateRequired)("source","replaceSources",e),o.request({method:"PUT",path:"/1/security/sources",queryParameters:{},headers:{},data:e},t)),replaceSourcesWithHTTPInfo:({source:e},t)=>((0,H.validateRequired)("source","replaceSourcesWithHTTPInfo",e),o.requestWithHttpInfo({method:"PUT",path:"/1/security/sources",queryParameters:{},headers:{},data:e},t)),restoreApiKey({key:e},t){(0,H.validateRequired)("key","restoreApiKey",e);let a="/1/keys/{key}/restore".replace("{key}",encodeURIComponent(e));return o.request({method:"POST",path:a,queryParameters:{},headers:{}},t)},restoreApiKeyWithHTTPInfo({key:e},t){(0,H.validateRequired)("key","restoreApiKeyWithHTTPInfo",e);let a="/1/keys/{key}/restore".replace("{key}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"POST",path:a,queryParameters:{},headers:{}},t)},saveObject({indexName:e,body:t},a){(0,H.validateRequired)("indexName","saveObject",e),(0,H.validateRequired)("body","saveObject",t);let i="/1/indexes/{indexName}".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:i,queryParameters:{},headers:{},data:t},a)},saveObjectWithHTTPInfo({indexName:e,body:t},a){(0,H.validateRequired)("indexName","saveObjectWithHTTPInfo",e),(0,H.validateRequired)("body","saveObjectWithHTTPInfo",t);let i="/1/indexes/{indexName}".replace("{indexName}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"POST",path:i,queryParameters:{},headers:{},data:t},a)},saveRule({indexName:e,objectID:t,rule:a,forwardToReplicas:i},r){(0,H.validateRequired)("indexName","saveRule",e),(0,H.validateRequired)("objectID","saveRule",t),(0,H.validateRequired)("rule","saveRule",a),(0,H.validateRequired)("rule.objectID","saveRule",a.objectID),(0,H.validateRequired)("rule.consequence","saveRule",a.consequence);let n="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),s={};return void 0!==i&&(s.forwardToReplicas=i.toString()),o.request({method:"PUT",path:n,queryParameters:s,headers:{},data:a},r)},saveRuleWithHTTPInfo({indexName:e,objectID:t,rule:a,forwardToReplicas:i},r){(0,H.validateRequired)("indexName","saveRuleWithHTTPInfo",e),(0,H.validateRequired)("objectID","saveRuleWithHTTPInfo",t),(0,H.validateRequired)("rule","saveRuleWithHTTPInfo",a),(0,H.validateRequired)("rule.objectID","saveRuleWithHTTPInfo",a.objectID),(0,H.validateRequired)("rule.consequence","saveRuleWithHTTPInfo",a.consequence);let n="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),s={};return void 0!==i&&(s.forwardToReplicas=i.toString()),o.requestWithHttpInfo({method:"PUT",path:n,queryParameters:s,headers:{},data:a},r)},saveRules({indexName:e,rules:t,forwardToReplicas:a,clearExistingRules:i},r){(0,H.validateRequired)("indexName","saveRules",e),(0,H.validateRequired)("rules","saveRules",t);let n="/1/indexes/{indexName}/rules/batch".replace("{indexName}",encodeURIComponent(e)),s={};return void 0!==a&&(s.forwardToReplicas=a.toString()),void 0!==i&&(s.clearExistingRules=i.toString()),o.request({method:"POST",path:n,queryParameters:s,headers:{},data:t},r)},saveRulesWithHTTPInfo({indexName:e,rules:t,forwardToReplicas:a,clearExistingRules:i},r){(0,H.validateRequired)("indexName","saveRulesWithHTTPInfo",e),(0,H.validateRequired)("rules","saveRulesWithHTTPInfo",t);let n="/1/indexes/{indexName}/rules/batch".replace("{indexName}",encodeURIComponent(e)),s={};return void 0!==a&&(s.forwardToReplicas=a.toString()),void 0!==i&&(s.clearExistingRules=i.toString()),o.requestWithHttpInfo({method:"POST",path:n,queryParameters:s,headers:{},data:t},r)},saveSynonym({indexName:e,objectID:t,synonymHit:a,forwardToReplicas:i},r){(0,H.validateRequired)("indexName","saveSynonym",e),(0,H.validateRequired)("objectID","saveSynonym",t),(0,H.validateRequired)("synonymHit","saveSynonym",a),(0,H.validateRequired)("synonymHit.objectID","saveSynonym",a.objectID),(0,H.validateRequired)("synonymHit.type","saveSynonym",a.type);let n="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),s={};return void 0!==i&&(s.forwardToReplicas=i.toString()),o.request({method:"PUT",path:n,queryParameters:s,headers:{},data:a},r)},saveSynonymWithHTTPInfo({indexName:e,objectID:t,synonymHit:a,forwardToReplicas:i},r){(0,H.validateRequired)("indexName","saveSynonymWithHTTPInfo",e),(0,H.validateRequired)("objectID","saveSynonymWithHTTPInfo",t),(0,H.validateRequired)("synonymHit","saveSynonymWithHTTPInfo",a),(0,H.validateRequired)("synonymHit.objectID","saveSynonymWithHTTPInfo",a.objectID),(0,H.validateRequired)("synonymHit.type","saveSynonymWithHTTPInfo",a.type);let n="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),s={};return void 0!==i&&(s.forwardToReplicas=i.toString()),o.requestWithHttpInfo({method:"PUT",path:n,queryParameters:s,headers:{},data:a},r)},saveSynonyms({indexName:e,synonymHit:t,forwardToReplicas:a,replaceExistingSynonyms:i},r){(0,H.validateRequired)("indexName","saveSynonyms",e),(0,H.validateRequired)("synonymHit","saveSynonyms",t);let n="/1/indexes/{indexName}/synonyms/batch".replace("{indexName}",encodeURIComponent(e)),s={};return void 0!==a&&(s.forwardToReplicas=a.toString()),void 0!==i&&(s.replaceExistingSynonyms=i.toString()),o.request({method:"POST",path:n,queryParameters:s,headers:{},data:t},r)},saveSynonymsWithHTTPInfo({indexName:e,synonymHit:t,forwardToReplicas:a,replaceExistingSynonyms:i},r){(0,H.validateRequired)("indexName","saveSynonymsWithHTTPInfo",e),(0,H.validateRequired)("synonymHit","saveSynonymsWithHTTPInfo",t);let n="/1/indexes/{indexName}/synonyms/batch".replace("{indexName}",encodeURIComponent(e)),s={};return void 0!==a&&(s.forwardToReplicas=a.toString()),void 0!==i&&(s.replaceExistingSynonyms=i.toString()),o.requestWithHttpInfo({method:"POST",path:n,queryParameters:s,headers:{},data:t},r)},search(e,t){e&&Array.isArray(e)&&(e={requests:e.map(({params:e,...t})=>"facet"===t.type?{...t,...e,type:"facet"}:{...t,...e,facet:void 0,maxFacetHits:void 0,facetQuery:void 0})}),(0,H.validateRequired)("searchMethodParams","search",e),(0,H.validateRequired)("searchMethodParams.requests","search",e.requests);let a={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return o.request(a,t)},searchWithHTTPInfo(e,t){e&&Array.isArray(e)&&(e={requests:e.map(({params:e,...t})=>"facet"===t.type?{...t,...e,type:"facet"}:{...t,...e,facet:void 0,maxFacetHits:void 0,facetQuery:void 0})}),(0,H.validateRequired)("searchMethodParams","searchWithHTTPInfo",e),(0,H.validateRequired)("searchMethodParams.requests","searchWithHTTPInfo",e.requests);let a={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return o.requestWithHttpInfo(a,t)},searchDictionaryEntries({dictionaryName:e,searchDictionaryEntriesParams:t},a){(0,H.validateRequired)("dictionaryName","searchDictionaryEntries",e),(0,H.validateRequired)("searchDictionaryEntriesParams","searchDictionaryEntries",t),(0,H.validateRequired)("searchDictionaryEntriesParams.query","searchDictionaryEntries",t.query);let i="/1/dictionaries/{dictionaryName}/search".replace("{dictionaryName}",encodeURIComponent(e));return o.request({method:"POST",path:i,queryParameters:{},headers:{},data:t,useReadTransporter:!0,cacheable:!0},a)},searchDictionaryEntriesWithHTTPInfo({dictionaryName:e,searchDictionaryEntriesParams:t},a){(0,H.validateRequired)("dictionaryName","searchDictionaryEntriesWithHTTPInfo",e),(0,H.validateRequired)("searchDictionaryEntriesParams","searchDictionaryEntriesWithHTTPInfo",t),(0,H.validateRequired)("searchDictionaryEntriesParams.query","searchDictionaryEntriesWithHTTPInfo",t.query);let i="/1/dictionaries/{dictionaryName}/search".replace("{dictionaryName}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"POST",path:i,queryParameters:{},headers:{},data:t,useReadTransporter:!0,cacheable:!0},a)},searchForFacetValues({indexName:e,facetName:t,searchForFacetValuesRequest:a},i){(0,H.validateRequired)("indexName","searchForFacetValues",e),(0,H.validateRequired)("facetName","searchForFacetValues",t);let r="/1/indexes/{indexName}/facets/{facetName}/query".replace("{indexName}",encodeURIComponent(e)).replace("{facetName}",encodeURIComponent(t));return o.request({method:"POST",path:r,queryParameters:{},headers:{},data:a||{},useReadTransporter:!0,cacheable:!0},i)},searchForFacetValuesWithHTTPInfo({indexName:e,facetName:t,searchForFacetValuesRequest:a},i){(0,H.validateRequired)("indexName","searchForFacetValuesWithHTTPInfo",e),(0,H.validateRequired)("facetName","searchForFacetValuesWithHTTPInfo",t);let r="/1/indexes/{indexName}/facets/{facetName}/query".replace("{indexName}",encodeURIComponent(e)).replace("{facetName}",encodeURIComponent(t));return o.requestWithHttpInfo({method:"POST",path:r,queryParameters:{},headers:{},data:a||{},useReadTransporter:!0,cacheable:!0},i)},searchRules({indexName:e,searchRulesParams:t},a){(0,H.validateRequired)("indexName","searchRules",e);let i="/1/indexes/{indexName}/rules/search".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:i,queryParameters:{},headers:{},data:t||{},useReadTransporter:!0,cacheable:!0},a)},searchRulesWithHTTPInfo({indexName:e,searchRulesParams:t},a){(0,H.validateRequired)("indexName","searchRulesWithHTTPInfo",e);let i="/1/indexes/{indexName}/rules/search".replace("{indexName}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"POST",path:i,queryParameters:{},headers:{},data:t||{},useReadTransporter:!0,cacheable:!0},a)},searchSingleIndex({indexName:e,searchParams:t},a){(0,H.validateRequired)("indexName","searchSingleIndex",e);let i="/1/indexes/{indexName}/query".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:i,queryParameters:{},headers:{},data:t||{},useReadTransporter:!0,cacheable:!0},a)},searchSingleIndexWithHTTPInfo({indexName:e,searchParams:t},a){(0,H.validateRequired)("indexName","searchSingleIndexWithHTTPInfo",e);let i="/1/indexes/{indexName}/query".replace("{indexName}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"POST",path:i,queryParameters:{},headers:{},data:t||{},useReadTransporter:!0,cacheable:!0},a)},searchSynonyms({indexName:e,searchSynonymsParams:t},a){(0,H.validateRequired)("indexName","searchSynonyms",e);let i="/1/indexes/{indexName}/synonyms/search".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:i,queryParameters:{},headers:{},data:t||{},useReadTransporter:!0,cacheable:!0},a)},searchSynonymsWithHTTPInfo({indexName:e,searchSynonymsParams:t},a){(0,H.validateRequired)("indexName","searchSynonymsWithHTTPInfo",e);let i="/1/indexes/{indexName}/synonyms/search".replace("{indexName}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"POST",path:i,queryParameters:{},headers:{},data:t||{},useReadTransporter:!0,cacheable:!0},a)},searchUserIds:(e,t)=>((0,H.validateRequired)("searchUserIdsParams","searchUserIds",e),(0,H.validateRequired)("searchUserIdsParams.query","searchUserIds",e.query),o.request({method:"POST",path:"/1/clusters/mapping/search",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0},t)),searchUserIdsWithHTTPInfo:(e,t)=>((0,H.validateRequired)("searchUserIdsParams","searchUserIdsWithHTTPInfo",e),(0,H.validateRequired)("searchUserIdsParams.query","searchUserIdsWithHTTPInfo",e.query),o.requestWithHttpInfo({method:"POST",path:"/1/clusters/mapping/search",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0},t)),setDictionarySettings:(e,t)=>((0,H.validateRequired)("dictionarySettingsParams","setDictionarySettings",e),(0,H.validateRequired)("dictionarySettingsParams.disableStandardEntries","setDictionarySettings",e.disableStandardEntries),o.request({method:"PUT",path:"/1/dictionaries/*/settings",queryParameters:{},headers:{},data:e},t)),setDictionarySettingsWithHTTPInfo:(e,t)=>((0,H.validateRequired)("dictionarySettingsParams","setDictionarySettingsWithHTTPInfo",e),(0,H.validateRequired)("dictionarySettingsParams.disableStandardEntries","setDictionarySettingsWithHTTPInfo",e.disableStandardEntries),o.requestWithHttpInfo({method:"PUT",path:"/1/dictionaries/*/settings",queryParameters:{},headers:{},data:e},t)),setSettings({indexName:e,indexSettings:t,forwardToReplicas:a},i){(0,H.validateRequired)("indexName","setSettings",e),(0,H.validateRequired)("indexSettings","setSettings",t);let r="/1/indexes/{indexName}/settings".replace("{indexName}",encodeURIComponent(e)),n={};return void 0!==a&&(n.forwardToReplicas=a.toString()),o.request({method:"PUT",path:r,queryParameters:n,headers:{},data:t},i)},setSettingsWithHTTPInfo({indexName:e,indexSettings:t,forwardToReplicas:a},i){(0,H.validateRequired)("indexName","setSettingsWithHTTPInfo",e),(0,H.validateRequired)("indexSettings","setSettingsWithHTTPInfo",t);let r="/1/indexes/{indexName}/settings".replace("{indexName}",encodeURIComponent(e)),n={};return void 0!==a&&(n.forwardToReplicas=a.toString()),o.requestWithHttpInfo({method:"PUT",path:r,queryParameters:n,headers:{},data:t},i)},updateApiKey({key:e,apiKey:t},a){(0,H.validateRequired)("key","updateApiKey",e),(0,H.validateRequired)("apiKey","updateApiKey",t),(0,H.validateRequired)("apiKey.acl","updateApiKey",t.acl);let i="/1/keys/{key}".replace("{key}",encodeURIComponent(e));return o.request({method:"PUT",path:i,queryParameters:{},headers:{},data:t},a)},updateApiKeyWithHTTPInfo({key:e,apiKey:t},a){(0,H.validateRequired)("key","updateApiKeyWithHTTPInfo",e),(0,H.validateRequired)("apiKey","updateApiKeyWithHTTPInfo",t),(0,H.validateRequired)("apiKey.acl","updateApiKeyWithHTTPInfo",t.acl);let i="/1/keys/{key}".replace("{key}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"PUT",path:i,queryParameters:{},headers:{},data:t},a)}}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,H.createNullLogger)(),requester:(0,j.createXhrRequester)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",requestIdChannel:"queryParameters",responsesCache:(0,H.createMemoryCache)(),requestsCache:(0,H.createMemoryCache)({serializable:!1}),hostsCache:(0,H.createFallbackableCache)({caches:[(0,H.createBrowserLocalStorageCache)({key:`${ee}-${e}`}),(0,H.createMemoryCache)()]}),...r})}e.s(["apiClientVersion",0,ee,"searchClient",0,et],423526);var ea="1.57.0",ei=["eu","us"];
2305function er(e,t,a,i){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");if(!a||a&&("string"!=typeof a||!ei.includes(a)))throw Error(`\`region\` is required and must be one of the following: ${ei.join(", ")}`);let{compression:r,...n}=i||{};return function({appId:e,apiKey:t,authMode:a,algoliaAgents:i,region:r,...n}){let o=(0,H.createAuth)(e,t,a),s=(0,H.createTransporter)({hosts:[{url:"data.{region}.algolia.com".replace("{region}",r),accept:"readWrite",protocol:"https"}],...n,algoliaAgent:(0,H.getAlgoliaAgent)({algoliaAgents:i,client:"Ingestion",version:ea}),baseHeaders:{"content-type":"text/plain",...o.headers(),...n.baseHeaders},baseQueryParameters:{...o.queryParameters(),...n.baseQueryParameters}});return{transporter:s,appId:e,apiKey:t,clearCache:()=>Promise.all([s.requestsCache.clear(),s.responsesCache.clear()]).then(()=>void 0),get _ua(){return s.algoliaAgent.value},addAlgoliaAgent(e,t){s.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){a&&"WithinHeaders"!==a?s.baseQueryParameters["x-algolia-api-key"]=e:s.baseHeaders["x-algolia-api-key"]=e},async chunkedPush({indexName:e,objects:t,action:a="addObject",waitForTasks:i,batchSize:r=1e3,referenceIndexName:n,maxRetries:o=100},s){if(r<1)throw Error("`batchSize` must be at least 1.");let l=[],d=0,c=[],u=Math.floor(r/10)||r,h=async(e,t)=>{for(let a of c.slice(e,t)){if(!a.eventID)throw Error("received unexpected response from the push endpoint, eventID must not be undefined");let e=0;await (0,H.createIterablePromise)({func:async()=>{if(void 0===a.eventID||!a.eventID)throw Error("received unexpected response from the push endpoint, eventID must not be undefined");return this.getEvent({runID:a.runID,eventID:a.eventID}).catch(e=>{if(404!==e.status)throw e})},validate:e=>void 0!==e,aggregator:()=>e+=1,error:{validate:()=>e>=o,message:()=>`Stopped waiting for the task after ${o} retries. This does not mean the operation failed; it may still complete. If you need to keep polling, retry with a higher maxRetries.`},timeout:()=>Math.min(1500*e,5e3)})}};for(let[o,m]of t.entries())l.push(m),(l.length===r||o===t.length-1)&&(c.push(await this.push({indexName:e,pushTaskPayload:{action:a,records:l},referenceIndexName:n},s)),l=[]),i&&c.length-d>=u&&(await h(d,d+u),d+=u);return i&&await h(d,c.length),c},createAuthentication:(e,t)=>((0,H.validateRequired)("authenticationCreate","createAuthentication",e),(0,H.validateRequired)("authenticationCreate.type","createAuthentication",e.type),(0,H.validateRequired)("authenticationCreate.name","createAuthentication",e.name),(0,H.validateRequired)("authenticationCreate.input","createAuthentication",e.input),s.request({method:"POST",path:"/1/authentications",queryParameters:{},headers:{},data:e},t)),createAuthenticationWithHTTPInfo:(e,t)=>((0,H.validateRequired)("authenticationCreate","createAuthenticationWithHTTPInfo",e),(0,H.validateRequired)("authenticationCreate.type","createAuthenticationWithHTTPInfo",e.type),(0,H.validateRequired)("authenticationCreate.name","createAuthenticationWithHTTPInfo",e.name),(0,H.validateRequired)("authenticationCreate.input","createAuthenticationWithHTTPInfo",e.input),s.requestWithHttpInfo({method:"POST",path:"/1/authentications",queryParameters:{},headers:{},data:e},t)),createDestination:(e,t)=>((0,H.validateRequired)("destinationCreate","createDestination",e),(0,H.validateRequired)("destinationCreate.type","createDestination",e.type),(0,H.validateRequired)("destinationCreate.name","createDestination",e.name),(0,H.validateRequired)("destinationCreate.input","createDestination",e.input),s.request({method:"POST",path:"/1/destinations",queryParameters:{},headers:{},data:e},t)),createDestinationWithHTTPInfo:(e,t)=>((0,H.validateRequired)("destinationCreate","createDestinationWithHTTPInfo",e),(0,H.validateRequired)("destinationCreate.type","createDestinationWithHTTPInfo",e.type),(0,H.validateRequired)("destinationCreate.name","createDestinationWithHTTPInfo",e.name),(0,H.validateRequired)("destinationCreate.input","createDestinationWithHTTPInfo",e.input),s.requestWithHttpInfo({method:"POST",path:"/1/destinations",queryParameters:{},headers:{},data:e},t)),createSource:(e,t)=>((0,H.validateRequired)("sourceCreate","createSource",e),(0,H.validateRequired)("sourceCreate.type","createSource",e.type),(0,H.validateRequired)("sourceCreate.name","createSource",e.name),s.request({method:"POST",path:"/1/sources",queryParameters:{},headers:{},data:e},t)),createSourceWithHTTPInfo:(e,t)=>((0,H.validateRequired)("sourceCreate","createSourceWithHTTPInfo",e),(0,H.validateRequired)("sourceCreate.type","createSourceWithHTTPInfo",e.type),(0,H.validateRequired)("sourceCreate.name","createSourceWithHTTPInfo",e.name),s.requestWithHttpInfo({method:"POST",path:"/1/sources",queryParameters:{},headers:{},data:e},t)),createTask:(e,t)=>((0,H.validateRequired)("taskCreate","createTask",e),(0,H.validateRequired)("taskCreate.sourceID","createTask",e.sourceID),(0,H.validateRequired)("taskCreate.destinationID","createTask",e.destinationID),(0,H.validateRequired)("taskCreate.action","createTask",e.action),s.request({method:"POST",path:"/2/tasks",queryParameters:{},headers:{},data:e},t)),createTaskWithHTTPInfo:(e,t)=>((0,H.validateRequired)("taskCreate","createTaskWithHTTPInfo",e),(0,H.validateRequired)("taskCreate.sourceID","createTaskWithHTTPInfo",e.sourceID),(0,H.validateRequired)("taskCreate.destinationID","createTaskWithHTTPInfo",e.destinationID),(0,H.validateRequired)("taskCreate.action","createTaskWithHTTPInfo",e.action),s.requestWithHttpInfo({method:"POST",path:"/2/tasks",queryParameters:{},headers:{},data:e},t)),createTaskV1:(e,t)=>((0,H.validateRequired)("taskCreate","createTaskV1",e),(0,H.validateRequired)("taskCreate.sourceID","createTaskV1",e.sourceID),(0,H.validateRequired)("taskCreate.destinationID","createTaskV1",e.destinationID),(0,H.validateRequired)("taskCreate.trigger","createTaskV1",e.trigger),(0,H.validateRequired)("taskCreate.action","createTaskV1",e.action),s.request({method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:e},t)),createTaskV1WithHTTPInfo:(e,t)=>((0,H.validateRequired)("taskCreate","createTaskV1WithHTTPInfo",e),(0,H.validateRequired)("taskCreate.sourceID","createTaskV1WithHTTPInfo",e.sourceID),(0,H.validateRequired)("taskCreate.destinationID","createTaskV1WithHTTPInfo",e.destinationID),(0,H.validateRequired)("taskCreate.trigger","createTaskV1WithHTTPInfo",e.trigger),(0,H.validateRequired)("taskCreate.action","createTaskV1WithHTTPInfo",e.action),s.requestWithHttpInfo({method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:e},t)),createTransformation:(e,t)=>((0,H.validateRequired)("transformationCreate","createTransformation",e),(0,H.validateRequired)("transformationCreate.name","createTransformation",e.name),s.request({method:"POST",path:"/1/transformations",queryParameters:{},headers:{},data:e},t)),createTransformationWithHTTPInfo:(e,t)=>((0,H.validateRequired)("transformationCreate","createTransformationWithHTTPInfo",e),(0,H.validateRequired)("transformationCreate.name","createTransformationWithHTTPInfo",e.name),s.requestWithHttpInfo({method:"POST",path:"/1/transformations",queryParameters:{},headers:{},data:e},t)),customDelete({path:e,parameters:t},a){(0,H.validateRequired)("path","customDelete",e);let i="/{path}".replace("{path}",e);return s.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customDeleteWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customDeleteWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customGet({path:e,parameters:t},a){(0,H.validateRequired)("path","customGet",e);let i="/{path}".replace("{path}",e);return s.request({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customGetWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customGetWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customPost({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPost",e);let r="/{path}".replace("{path}",e);return s.request({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPostWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPostWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPut({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPut",e);let r="/{path}".replace("{path}",e);return s.request({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPutWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPutWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return s.requestWithHttpInfo({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},deleteAuthentication({authenticationID:e},t){(0,H.validateRequired)("authenticationID","deleteAuthentication",e);let a="/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e));return s.request({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteAuthenticationWithHTTPInfo({authenticationID:e},t){(0,H.validateRequired)("authenticationID","deleteAuthenticationWithHTTPInfo",e);let a="/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteDestination({destinationID:e},t){(0,H.validateRequired)("destinationID","deleteDestination",e);let a="/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e));return s.request({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteDestinationWithHTTPInfo({destinationID:e},t){(0,H.validateRequired)("destinationID","deleteDestinationWithHTTPInfo",e);let a="/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteSource({sourceID:e},t){(0,H.validateRequired)("sourceID","deleteSource",e);let a="/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e));return s.request({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteSourceWithHTTPInfo({sourceID:e},t){(0,H.validateRequired)("sourceID","deleteSourceWithHTTPInfo",e);let a="/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteTask({taskID:e},t){(0,H.validateRequired)("taskID","deleteTask",e);let a="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.request({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteTaskWithHTTPInfo({taskID:e},t){(0,H.validateRequired)("taskID","deleteTaskWithHTTPInfo",e);let a="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteTaskV1({taskID:e},t){(0,H.validateRequired)("taskID","deleteTaskV1",e);let a="/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.request({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteTaskV1WithHTTPInfo({taskID:e},t){(0,H.validateRequired)("taskID","deleteTaskV1WithHTTPInfo",e);let a="/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteTransformation({transformationID:e},t){(0,H.validateRequired)("transformationID","deleteTransformation",e);let a="/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e));return s.request({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},deleteTransformationWithHTTPInfo({transformationID:e},t){(0,H.validateRequired)("transformationID","deleteTransformationWithHTTPInfo",e);let a="/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"DELETE",path:a,queryParameters:{},headers:{}},t)},disableTask({taskID:e},t){(0,H.validateRequired)("taskID","disableTask",e);let a="/2/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e));return s.request({method:"PUT",path:a,queryParameters:{},headers:{}},t)},disableTaskWithHTTPInfo({taskID:e},t){(0,H.validateRequired)("taskID","disableTaskWithHTTPInfo",e);let a="/2/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"PUT",path:a,queryParameters:{},headers:{}},t)},disableTaskV1({taskID:e},t){(0,H.validateRequired)("taskID","disableTaskV1",e);let a="/1/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e));return s.request({method:"PUT",path:a,queryParameters:{},headers:{}},t)},disableTaskV1WithHTTPInfo({taskID:e},t){(0,H.validateRequired)("taskID","disableTaskV1WithHTTPInfo",e);let a="/1/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"PUT",path:a,queryParameters:{},headers:{}},t)},enableTask({taskID:e},t){(0,H.validateRequired)("taskID","enableTask",e);let a="/2/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e));return s.request({method:"PUT",path:a,queryParameters:{},headers:{}},t)},enableTaskWithHTTPInfo({taskID:e},t){(0,H.validateRequired)("taskID","enableTaskWithHTTPInfo",e);let a="/2/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"PUT",path:a,queryParameters:{},headers:{}},t)},enableTaskV1({taskID:e},t){(0,H.validateRequired)("taskID","enableTaskV1",e);let a="/1/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e));return s.request({method:"PUT",path:a,queryParameters:{},headers:{}},t)},enableTaskV1WithHTTPInfo({taskID:e},t){(0,H.validateRequired)("taskID","enableTaskV1WithHTTPInfo",e);let a="/1/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"PUT",path:a,queryParameters:{},headers:{}},t)},getAuthentication({authenticationID:e},t){(0,H.validateRequired)("authenticationID","getAuthentication",e);let a="/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e));return s.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getAuthenticationWithHTTPInfo({authenticationID:e},t){(0,H.validateRequired)("authenticationID","getAuthenticationWithHTTPInfo",e);let a="/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},getDestination({destinationID:e},t){(0,H.validateRequired)("destinationID","getDestination",e);let a="/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e));return s.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getDestinationWithHTTPInfo({destinationID:e},t){(0,H.validateRequired)("destinationID","getDestinationWithHTTPInfo",e);let a="/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},getEvent({runID:e,eventID:t},a){(0,H.validateRequired)("runID","getEvent",e),(0,H.validateRequired)("eventID","getEvent",t);let i="/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(e)).replace("{eventID}",encodeURIComponent(t));return s.request({method:"GET",path:i,queryParameters:{},headers:{}},a)},getEventWithHTTPInfo({runID:e,eventID:t},a){(0,H.validateRequired)("runID","getEventWithHTTPInfo",e),(0,H.validateRequired)("eventID","getEventWithHTTPInfo",t);let i="/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(e)).replace("{eventID}",encodeURIComponent(t));return s.requestWithHttpInfo({method:"GET",path:i,queryParameters:{},headers:{}},a)},getRun({runID:e},t){(0,H.validateRequired)("runID","getRun",e);let a="/1/runs/{runID}".replace("{runID}",encodeURIComponent(e));return s.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getRunWithHTTPInfo({runID:e},t){(0,H.validateRequired)("runID","getRunWithHTTPInfo",e);let a="/1/runs/{runID}".replace("{runID}",encodeURIComp
2305onent(e));return s.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},getSource({sourceID:e},t){(0,H.validateRequired)("sourceID","getSource",e);let a="/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e));return s.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getSourceWithHTTPInfo({sourceID:e},t){(0,H.validateRequired)("sourceID","getSourceWithHTTPInfo",e);let a="/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},getTask({taskID:e},t){(0,H.validateRequired)("taskID","getTask",e);let a="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getTaskWithHTTPInfo({taskID:e},t){(0,H.validateRequired)("taskID","getTaskWithHTTPInfo",e);let a="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},getTaskV1({taskID:e},t){(0,H.validateRequired)("taskID","getTaskV1",e);let a="/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getTaskV1WithHTTPInfo({taskID:e},t){(0,H.validateRequired)("taskID","getTaskV1WithHTTPInfo",e);let a="/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},getTransformation({transformationID:e},t){(0,H.validateRequired)("transformationID","getTransformation",e);let a="/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e));return s.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getTransformationWithHTTPInfo({transformationID:e},t){(0,H.validateRequired)("transformationID","getTransformationWithHTTPInfo",e);let a="/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},listAuthentications({itemsPerPage:e,page:t,type:a,platform:i,sort:r,order:n}={},o){let l={};return void 0!==e&&(l.itemsPerPage=e.toString()),void 0!==t&&(l.page=t.toString()),void 0!==a&&(l.type=a.toString()),void 0!==i&&(l.platform=i.toString()),void 0!==r&&(l.sort=r.toString()),void 0!==n&&(l.order=n.toString()),s.request({method:"GET",path:"/1/authentications",queryParameters:l,headers:{}},o)},listAuthenticationsWithHTTPInfo({itemsPerPage:e,page:t,type:a,platform:i,sort:r,order:n}={},o){let l={};return void 0!==e&&(l.itemsPerPage=e.toString()),void 0!==t&&(l.page=t.toString()),void 0!==a&&(l.type=a.toString()),void 0!==i&&(l.platform=i.toString()),void 0!==r&&(l.sort=r.toString()),void 0!==n&&(l.order=n.toString()),s.requestWithHttpInfo({method:"GET",path:"/1/authentications",queryParameters:l,headers:{}},o)},listDestinations({itemsPerPage:e,page:t,type:a,authenticationID:i,transformationID:r,sort:n,order:o}={},l){let d={};return void 0!==e&&(d.itemsPerPage=e.toString()),void 0!==t&&(d.page=t.toString()),void 0!==a&&(d.type=a.toString()),void 0!==i&&(d.authenticationID=i.toString()),void 0!==r&&(d.transformationID=r.toString()),void 0!==n&&(d.sort=n.toString()),void 0!==o&&(d.order=o.toString()),s.request({method:"GET",path:"/1/destinations",queryParameters:d,headers:{}},l)},listDestinationsWithHTTPInfo({itemsPerPage:e,page:t,type:a,authenticationID:i,transformationID:r,sort:n,order:o}={},l){let d={};return void 0!==e&&(d.itemsPerPage=e.toString()),void 0!==t&&(d.page=t.toString()),void 0!==a&&(d.type=a.toString()),void 0!==i&&(d.authenticationID=i.toString()),void 0!==r&&(d.transformationID=r.toString()),void 0!==n&&(d.sort=n.toString()),void 0!==o&&(d.order=o.toString()),s.requestWithHttpInfo({method:"GET",path:"/1/destinations",queryParameters:d,headers:{}},l)},listEvents({runID:e,itemsPerPage:t,page:a,status:i,type:r,sort:n,order:o,startDate:l,endDate:d},c){(0,H.validateRequired)("runID","listEvents",e);let u="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),h={};return void 0!==t&&(h.itemsPerPage=t.toString()),void 0!==a&&(h.page=a.toString()),void 0!==i&&(h.status=i.toString()),void 0!==r&&(h.type=r.toString()),void 0!==n&&(h.sort=n.toString()),void 0!==o&&(h.order=o.toString()),void 0!==l&&(h.startDate=l.toString()),void 0!==d&&(h.endDate=d.toString()),s.request({method:"GET",path:u,queryParameters:h,headers:{}},c)},listEventsWithHTTPInfo({runID:e,itemsPerPage:t,page:a,status:i,type:r,sort:n,order:o,startDate:l,endDate:d},c){(0,H.validateRequired)("runID","listEventsWithHTTPInfo",e);let u="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),h={};return void 0!==t&&(h.itemsPerPage=t.toString()),void 0!==a&&(h.page=a.toString()),void 0!==i&&(h.status=i.toString()),void 0!==r&&(h.type=r.toString()),void 0!==n&&(h.sort=n.toString()),void 0!==o&&(h.order=o.toString()),void 0!==l&&(h.startDate=l.toString()),void 0!==d&&(h.endDate=d.toString()),s.requestWithHttpInfo({method:"GET",path:u,queryParameters:h,headers:{}},c)}
2305,listRuns({itemsPerPage:e,page:t,status:a,type:i,taskID:r,sort:n,order:o,startDate:l,endDate:d}={},c){let u={};return void 0!==e&&(u.itemsPerPage=e.toString()),void 0!==t&&(u.page=t.toString()),void 0!==a&&(u.status=a.toString()),void 0!==i&&(u.type=i.toString()),void 0!==r&&(u.taskID=r.toString()),void 0!==n&&(u.sort=n.toString()),void 0!==o&&(u.order=o.toString()),void 0!==l&&(u.startDate=l.toString()),void 0!==d&&(u.endDate=d.toString()),s.request({method:"GET",path:"/1/runs",queryParameters:u,headers:{}},c)},listRunsWithHTTPInfo({itemsPerPage:e,page:t,status:a,type:i,taskID:r,sort:n,order:o,startDate:l,endDate:d}={},c){let u={};return void 0!==e&&(u.itemsPerPage=e.toString()),void 0!==t&&(u.page=t.toString()),void 0!==a&&(u.status=a.toString()),void 0!==i&&(u.type=i.toString()),void 0!==r&&(u.taskID=r.toString()),void 0!==n&&(u.sort=n.toString()),void 0!==o&&(u.order=o.toString()),void 0!==l&&(u.startDate=l.toString()),void 0!==d&&(u.endDate=d.toString()),s.requestWithHttpInfo({method:"GET",path:"/1/runs",queryParameters:u,headers:{}},c)},listSources({itemsPerPage:e,page:t,type:a,authenticationID:i,sort:r,order:n}={},o){let l={};return void 0!==e&&(l.itemsPerPage=e.toString()),void 0!==t&&(l.page=t.toString()),void 0!==a&&(l.type=a.toString()),void 0!==i&&(l.authenticationID=i.toString()),void 0!==r&&(l.sort=r.toString()),void 0!==n&&(l.order=n.toString()),s.request({method:"GET",path:"/1/sources",queryParameters:l,headers:{}},o)},listSourcesWithHTTPInfo({itemsPerPage:e,page:t,type:a,authenticationID:i,sort:r,order:n}={},o){let l={};return void 0!==e&&(l.itemsPerPage=e.toString()),void 0!==t&&(l.page=t.toString()),void 0!==a&&(l.type=a.toString()),void 0!==i&&(l.authenticationID=i.toString()),void 0!==r&&(l.sort=r.toString()),void 0!==n&&(l.order=n.toString()),s.requestWithHttpInfo({method:"GET",path:"/1/sources",queryParameters:l,headers:{}},o)},listTasks({itemsPerPage:e,page:t,action:a,enabled:i,sourceID:r,sourceType:n,destinationID:o,triggerType:l,withEmailNotifications:d,sort:c,order:u}={},h){let m={};return void 0!==e&&(m.itemsPerPage=e.toString()),void 0!==t&&(m.page=t.toString()),void 0!==a&&(m.action=a.toString()),void 0!==i&&(m.enabled=i.toString()),void 0!==r&&(m.sourceID=r.toString()),void 0!==n&&(m.sourceType=n.toString()),void 0!==o&&(m.destinationID=o.toString()),void 0!==l&&(m.triggerType=l.toString()),void 0!==d&&(m.withEmailNotifications=d.toString()),void 0!==c&&(m.sort=c.toString()),void 0!==u&&(m.order=u.toString()),s.request({method:"GET",path:"/2/tasks",queryParameters:m,headers:{}},h)},listTasksWithHTTPInfo({itemsPerPage:e,page:t,action:a,enabled:i,sourceID:r,sourceType:n,destinationID:o,triggerType:l,withEmailNotifications:d,sort:c,order:u}={},h){let m={};return void 0!==e&&(m.itemsPerPage=e.toString()),void 0!==t&&(m.page=t.toString()),void 0!==a&&(m.action=a.toString()),void 0!==i&&(m.enabled=i.toString()),void 0!==r&&(m.sourceID=r.toString()),void 0!==n&&(m.sourceType=n.toString()),void 0!==o&&(m.destinationID=o.toString()),void 0!==l&&(m.triggerType=l.toString()),void 0!==d&&(m.withEmailNotifications=d.toString()),void 0!==c&&(m.sort=c.toString()),void 0!==u&&(m.order=u.toString()),s.requestWithHttpInfo({method:"GET",path:"/2/tasks",queryParameters:m,headers:{}},h)},listTasksV1({itemsPerPage:e,page:t,action:a,enabled:i,sourceID:r,destinationID:n,triggerType:o,sort:l,order:d}={},c){let u={};return void 0!==e&&(u.itemsPerPage=e.toString()),void 0!==t&&(u.page=t.toString()),void 0!==a&&(u.action=a.toString()),void 0!==i&&(u.enabled=i.toString()),void 0!==r&&(u.sourceID=r.toString()),void 0!==n&&(u.destinationID=n.toString()),void 0!==o&&(u.triggerType=o.toString()),void 0!==l&&(u.sort=l.toString()),void 0!==d&&(u.order=d.toString()),s.request({method:"GET",path:"/1/tasks",queryParameters:u,headers:{}},c)},listTasksV1WithHTTPInfo({itemsPerPage:e,page:t,action:a,enabled:i,sourceID:r,destinationID:n,triggerType:o,sort:l,order:d}={},c){let u={};return void 0!==e&&(u.itemsPerPage=e.toString()),void 0!==t&&(u.page=t.toString()),void 0!==a&&(u.action=a.toString()),void 0!==i&&(u.enabled=i.toString()),void 0!==r&&(u.sourceID=r.toString()),void 0!==n&&(u.destinationID=n.toString()),void 0!==o&&(u.triggerType=o.toString()),void 0!==l&&(u.sort=l.toString()),void 0!==d&&(u.order=d.toString()),s.requestWithHttpInfo({method:"GET",path:"/1/tasks",queryParameters:u,headers:{}},c)},listTransformations({itemsPerPage:e,page:t,sort:a,order:i,type:r}={},n){let o={};return void 0!==e&&(o.itemsPerPage=e.toString()),void 0!==t&&(o.page=t.toString()),void 0!==a&&(o.sort=a.toString()),void 0!==i&&(o.order=i.toString()),void 0!==r&&(o.type=r.toString()),s.request({method:"GET",path:"/1/transformations",queryParameters:o,headers:{}},n)},listTransformationsWithHTTPInfo({itemsPerPage:e,page:t,sort:a,order:i,type:r}={},n){let o={};return void 0!==e&&(o.itemsPerPage=e.toString()),void 0!==t&&(o.page=t.toString()),void 0!==a&&(o.sort=a.toString()),void 0!==i&&(o.order=i.toString()),void 0!==r&&(o.type=r.toString()),s.requestWithHttpInfo({method:"GET",path:"/1/transformations",queryParameters:o,headers:{}},n)},push({indexName:e,pushTaskPayload:t,watch:a,referenceIndexName:i},r){(0,H.validateRequired)("indexName","push",e),(0,H.validateRequired)("pushTaskPayload","push",t),(0,H.validateRequired)("pushTaskPayload.action","push",t.action),(0,H.validateRequired)("pushTaskPayload.records","push",t.records);let n="/1/push/{indexName}".replace("{indexName}",encodeURIComponent(e)),o={};return void 0!==a&&(o.watch=a.toString()),void 0!==i&&(o.referenceIndexName=i.toString()),r={...r,timeouts:{connect:18e4,read:18e4,write:18e4,...r?.timeouts}},s.request({method:"POST",path:n,queryParameters:o,headers:{},data:t},r)},pushWithHTTPInfo({indexName:e,pushTaskPayload:t,watch:a,referenceIndexName:i},r){(0,H.validateRequired)("indexName","pushWithHTTPInfo",e),(0,H.validateRequired)("pushTaskPayload","pushWithHTTPInfo",t),(0,H.validateRequired)("pushTaskPayload.action","pushWithHTTPInfo",t.action),(0,H.validateRequired)("pushTaskPayload.records","pushWithHTTPInfo",t.records);let n="/1/push/{indexName}".replace("{indexName}",encodeURIComponent(e)),o={};return void 0!==a&&(o.watch=a.toString()),void 0!==i&&(o.referenceIndexName=i.toString()),r={...r,timeouts:{connect:18e4,read:18e4,write:18e4,...r?.timeouts}},s.requestWithHttpInfo({method:"POST",path:n,queryParameters:o,headers:{},data:t},r)},pushTask({taskID:e,pushTaskPayload:t,watch:a},i){(0,H.validateRequired)("taskID","pushTask",e),(0,H.validateRequired)("pushTaskPayload","pushTask",t),(0,H.validateRequired)("pushTaskPayload.action","pushTask",t.action),(0,H.validateRequired)("pushTaskPayload.records","pushTask",t.records);let r="/2/tasks/{taskID}/push".replace("{taskID}",encodeURIComponent(e)),n={};return void 0!==a&&(n.watch=a.toString()),i={...i,timeouts:{connect:18e4,read:18e4,write:18e4,...i?.timeouts}},s.request({method:"POST",path:r,queryParameters:n,headers:{},data:t},i)},pushTaskWithHTTPInfo({taskID:e,pushTaskPayload:t,watch:a},i){(0,H.validateRequired)("taskID","pushTaskWithHTTPInfo",e),(0,H.validateRequired)("pushTaskPayload","pushTaskWithHTTPInfo",t),(0,H.validateRequired)("pushTaskPayload.action","pushTaskWithHTTPInfo",t.action),(0,H.validateRequired)("pushTaskPayload.records","pushTaskWithHTTPInfo",t.records);let r="/2/tasks/{taskID}/push".replace("{taskID}",encodeURIComponent(e)),n={};return void 0!==a&&(n.watch=a.toString()),i={...i,timeouts:{connect:18e4,read:18e4,write:18e4,...i?.timeouts}},s.requestWithHttpInfo({method:"POST",path:r,queryParameters:n,headers:{},data:t},i)},replaceTask({taskID:e,taskReplace:t},a){(0,H.validateRequired)("taskID","replaceTask",e),(0,H.validateRequired)("taskReplace","replaceTask",t),(0,H.validateRequired)("taskReplace.destinationID","replaceTask",t.destinationID),(0,H.validateRequired)("taskReplace.action","replaceTask",t.action);let i="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.request({method:"PUT",path:i,queryParameters:{},headers:{},data:t},a)},replaceTaskWithHTTPInfo({taskID:e,taskReplace:t},a){(0,H.validateRequired)("taskID","replaceTaskWithHTTPInfo",e),(0,H.validateRequired)("taskReplace","replaceTaskWithHTTPInfo",t),(0,H.validateRequired)("taskReplace.destinationID","replaceTaskWithHTTPInfo",t.destinationID),(0,H.validateRequired)("taskReplace.action","replaceTaskWithHTTPInfo",t.action);let i="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"PUT",path:i,queryParameters:{},headers:{},data:t},a)},runSource({sourceID:e,runSourcePayload:t},a){(0,H.validateRequired)("sourceID","runSource",e);let i="/1/sources/{sourceID}/run".replace("{sourceID}",encodeURIComponent(e));return s.request({method:"POST",path:i,queryParameters:{},headers:{},data:t||{}},a)},runSourceWithHTTPInfo({sourceID:e,runSourcePayload:t},a){(0,H.validateRequired)("sourceID","runSourceWithHTTPInfo",e);let i="/1/sources/{sourceID}/run".replace("{sourceID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"POST",path:i,queryParameters:{},headers:{},data:t||{}},a)},runTask({taskID:e,runTaskPayload:t},a){(0,H.validateRequired)("taskID","runTask",e);let i="/2/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e));return s.request({method:"POST",path:i,queryParameters:{},headers:{},data:t||{}},a)},runTaskWithHTTPInfo({taskID:e,runTaskPayload:t},a){(0,H.validateRequired)("taskID","runTaskWithHTTPInfo",e);let i="/2/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"POST",path:i,queryParameters:{},headers:{},data:t||{}},a)},runTaskV1({taskID:e,runTaskPayload:t},a){(0,H.validateRequired)("taskID","runTaskV1",e);let i="/1/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e));return s.request({method:"POST",path:i,queryParameters:{},headers:{},data:t||{}},a)},runTaskV1WithHTTPInfo({taskID:e,runTaskPayload:t},a){(0,H.validateRequired)("taskID","runTaskV1WithHTTPInfo",e);let i="/1/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"POST",path:i,queryParameters:{},headers:{},data:t||{}},a)},searchAuthentications:(e,t)=>((0,H.validateRequired)("authenticationSearch","searchAuthentications",e),(0,H.validateRequired)("authenticationSearch.authenticationIDs","
2305searchAuthentications",e.authenticationIDs),s.request({method:"POST",path:"/1/authentications/search",queryParameters:{},headers:{},data:e},t)),searchAuthenticationsWithHTTPInfo:(e,t)=>((0,H.validateRequired)("authenticationSearch","searchAuthenticationsWithHTTPInfo",e),(0,H.validateRequired)("authenticationSearch.authenticationIDs","searchAuthenticationsWithHTTPInfo",e.authenticationIDs),s.requestWithHttpInfo({method:"POST",path:"/1/authentications/search",queryParameters:{},headers:{},data:e},t)),searchDestinations:(e,t)=>((0,H.validateRequired)("destinationSearch","searchDestinations",e),(0,H.validateRequired)("destinationSearch.destinationIDs","searchDestinations",e.destinationIDs),s.request({method:"POST",path:"/1/destinations/search",queryParameters:{},headers:{},data:e},t)),searchDestinationsWithHTTPInfo:(e,t)=>((0,H.validateRequired)("destinationSearch","searchDestinationsWithHTTPInfo",e),(0,H.validateRequired)("destinationSearch.destinationIDs","searchDestinationsWithHTTPInfo",e.destinationIDs),s.requestWithHttpInfo({method:"POST",path:"/1/destinations/search",queryParameters:{},headers:{},data:e},t)),searchSources:(e,t)=>((0,H.validateRequired)("sourceSearch","searchSources",e),(0,H.validateRequired)("sourceSearch.sourceIDs","searchSources",e.sourceIDs),s.request({method:"POST",path:"/1/sources/search",queryParameters:{},headers:{},data:e},t)),searchSourcesWithHTTPInfo:(e,t)=>((0,H.validateRequired)("sourceSearch","searchSourcesWithHTTPInfo",e),(0,H.validateRequired)("sourceSearch.sourceIDs","searchSourcesWithHTTPInfo",e.sourceIDs),s.requestWithHttpInfo({method:"POST",path:"/1/sources/search",queryParameters:{},headers:{},data:e},t)),searchTasks:(e,t)=>((0,H.validateRequired)("taskSearch","searchTasks",e),(0,H.validateRequired)("taskSearch.taskIDs","searchTasks",e.taskIDs),s.request({method:"POST",path:"/2/tasks/search",queryParameters:{},headers:{},data:e},t)),searchTasksWithHTTPInfo:(e,t)=>((0,H.validateRequired)("taskSearch","searchTasksWithHTTPInfo",e),(0,H.validateRequired)("taskSearch.taskIDs","searchTasksWithHTTPInfo",e.taskIDs),s.requestWithHttpInfo({method:"POST",path:"/2/tasks/search",queryParameters:{},headers:{},data:e},t)),searchTasksV1:(e,t)=>((0,H.validateRequired)("taskSearch","searchTasksV1",e),(0,H.validateRequired)("taskSearch.taskIDs","searchTasksV1",e.taskIDs),s.request({method:"POST",path:"/1/tasks/search",queryParameters:{},headers:{},data:e},t)),searchTasksV1WithHTTPInfo:(e,t)=>((0,H.validateRequired)("taskSearch","searchTasksV1WithHTTPInfo",e),(0,H.validateRequired)("taskSearch.taskIDs","searchTasksV1WithHTTPInfo",e.taskIDs),s.requestWithHttpInfo({method:"POST",path:"/1/tasks/search",queryParameters:{},headers:{},data:e},t)),searchTransformations:(e,t)=>((0,H.validateRequired)("transformationSearch","searchTransformations",e),(0,H.validateRequired)("transformationSearch.transformationIDs","searchTransformations",e.transformationIDs),s.request({method:"POST",path:"/1/transformations/search",queryParameters:{},headers:{},data:e},t)),searchTransformationsWithHTTPInfo:(e,t)=>((0,H.validateRequired)("transformationSearch","searchTransformationsWithHTTPInfo",e),(0,H.validateRequired)("transformationSearch.transformationIDs","searchTransformationsWithHTTPInfo",e.transformationIDs),s.requestWithHttpInfo({method:"POST",path:"/1/transformations/search",queryParameters:{},headers:{},data:e},t)),triggerDockerSourceDiscover({sourceID:e},t){(0,H.validateRequired)("sourceID","triggerDockerSourceDiscover",e);let a="/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e));return t={...t,timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},s.request({method:"POST",path:a,queryParameters:{},headers:{}},t)},triggerDockerSourceDiscoverWithHTTPInfo({sourceID:e},t){(0,H.validateRequired)("sourceID","triggerDockerSourceDiscoverWithHTTPInfo",e);let a="/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e));return t={...t,timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},s.requestWithHttpInfo({method:"POST",path:a,queryParameters:{},headers:{}},t)},tryTransformation:(e,t)=>((0,H.validateRequired)("transformationTry","tryTransformation",e),(0,H.validateRequired)("transformationTry.sampleRecord","tryTransformation",e.sampleRecord),s.request({method:"POST",path:"/1/transformations/try",queryParameters:{},headers:{},data:e},t)),tryTransformationWithHTTPInfo:(e,t)=>((0,H.validateRequired)("transformationTry","tryTransformationWithHTTPInfo",e),(0,H.validateRequired)("transformationTry.sampleRecord","tryTransformationWithHTTPInfo",e.sampleRecord),s.requestWithHttpInfo({method:"POST",path:"/1/transformations/try",queryParameters:{},headers:{},data:e},t)),tryTransformationBeforeUpdate({transformationID:e,transformationTry:t},a){(0,H.validateRequired)("transformationID","tryTransformationBeforeUpdate",e),(0,H.validateRequired)("transformationTry","tryTransformationBeforeUpdate",t),(0,H.validateRequired)("transformationTry.sampleRecord","tryTransformationBeforeUpdate",t.sampleRecord);let i="/1/transformations/{transformationID}/try".replace("{transformationID}",encodeURIComponent(e));return s.request({method:"POST",path:i,queryParameters:{},headers:{},data:t},a)},tryTransformationBeforeUpdateWithHTTPInfo({transformationID:e,transformationTry:t},a){(0,H.validateRequired)("transformationID","tryTransformationBeforeUpdateWithHTTPInfo",e),(0,H.validateRequired)("transformationTry","tryTransformationBeforeUpdateWithHTTPInfo",t),(0,H.validateRequired)("transformationTry.sampleRecord","tryTransformationBeforeUpdateWithHTTPInfo",t.sampleRecord);let i="/1/transformations/{transformationID}/try".replace("{transformationID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"POST",path:i,queryParameters:{},headers:{},data:t},a)},updateAuthentication({authenticationID:e,authenticationUpdate:t},a){(0,H.validateRequired)("authenticationID","updateAuthentication",e),(0,H.validateRequired)("authenticationUpdate","updateAuthentication",t);let i="/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e));return s.request({method:"PATCH",path:i,queryParameters:{},headers:{},data:t},a)},updateAuthenticationWithHTTPInfo({authenticationID:e,authenticationUpdate:t},a){(0,H.validateRequired)("authenticationID","updateAuthenticationWithHTTPInfo",e),(0,H.validateRequired)("authenticationUpdate","updateAuthenticationWithHTTPInfo",t);let i="/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"PATCH",path:i,queryParameters:{},headers:{},data:t},a)},updateDestination({destinationID:e,destinationUpdate:t},a){(0,H.validateRequired)("destinationID","updateDestination",e),(0,H.validateRequired)("destinationUpdate","updateDestination",t);let i="/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e));return s.request({method:"PATCH",path:i,queryParameters:{},headers:{},data:t},a)},updateDestinationWithHTTPInfo({destinationID:e,destinationUpdate:t},a){(0,H.validateRequired)("destinationID","updateDestinationWithHTTPInfo",e),(0,H.validateRequired)("destinationUpdate","updateDestinationWithHTTPInfo",t);let i="/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"PATCH",path:i,queryParameters:{},headers:{},data:t},a)},updateSource({sourceID:e,sourceUpdate:t},a){(0,H.validateRequired)("sourceID","updateSource",e),(0,H.validateRequired)("sourceUpdate","updateSource",t);let i="/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e));return s.request({method:"PATCH",path:i,queryParameters:{},headers:{},data:t},a)},updateSourceWithHTTPInfo({sourceID:e,sourceUpdate:t},a){(0,H.validateRequired)("sourceID","updateSourceWithHTTPInfo",e),(0,H.validateRequired)("sourceUpdate","updateSourceWithHTTPInfo",t);let i="/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"PATCH",path:i,queryParameters:{},headers:{},data:t},a)},updateTask({taskID:e,taskUpdate:t},a){(0,H.validateRequired)("taskID","updateTask",e),(0,H.validateRequired)("taskUpdate","updateTask",t);let i="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.request({method:"PATCH",path:i,queryParameters:{},headers:{},data:t},a)},updateTaskWithHTTPInfo({taskID:e,taskUpdate:t},a){(0,H.validateRequired)("taskID","updateTaskWithHTTPInfo",e),(0,H.validateRequired)("taskUpdate","updateTaskWithHTTPInfo",t);let i="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"PATCH",path:i,queryParameters:{},headers:{},data:t},a)},updateTaskV1({taskID:e,taskUpdate:t},a){(0,H.validateRequired)("taskID","updateTaskV1",e),(0,H.validateRequired)("taskUpdate","updateTaskV1",t);let i="/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.request({method:"PATCH",path:i,queryParameters:{},headers:{},data:t},a)},updateTaskV1WithHTTPInfo({taskID:e,taskUpdate:t},a){(0,H.validateRequired)("taskID","updateTaskV1WithHTTPInfo",e),(0,H.validateRequired)("taskUpdate","updateTaskV1WithHTTPInfo",t);let i="/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"PATCH",path:i,queryParameters:{},headers:{},data:t},a)},updateTransformation({transformationID:e,transformationCreate:t},a){(0,H.validateRequired)("transformationID","updateTransformation",e),(0,H.validateRequired)("transformationCreate","updateTransformation",t),(0,H.validateRequired)("transformationCreate.name","updateTransformation",t.name);let i="/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e));return s.request({method:"PUT",path:i,queryParameters:{},headers:{},data:t},a)},updateTransformationWithHTTPInfo({transformationID:e,transformationCreate:t},a){(0,H.validateRequired)("transformationID","updateTransformationWithHTTPInfo",e),(0,H.validateRequired)("transformationCreate","updateTransformationWithHTTPInfo",t),(0,H.validateRequired)("transformationCreate.name","updateTransformationWithHTTPInfo",t.name);let i="/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e));return s.requestWithHttpInfo({method:"PUT",path:i,queryParameters:{},headers:{},data:t},a)},validateSource:(e,t)=>(t={...t,timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},s.request({method:"POST",path:"/1/sources/validate",queryParameters:{},headers:{},data:e||{}},t)),validateSourceWithHTTPInfo:(e,t)=>(t={...t,timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},s.requestWithHttpInfo({method:"POST",path:"/1/sources/validate",queryParameters:{},headers:{},data:e||{}},t)),validateSourceBeforeUpdate({sourceID:e,sourceUpdate:t},a){(0,H.validateRequired)("sourceID","validateSourceBeforeUpdate",e),(0,H.validateRequired)("sourceUpdate","validateSourceBeforeUpdate",t);let i="/1/sources/{sourceID}/validate".replace("{sourceID}",encodeURIComponent(e));return a={...a,timeouts:{connect:18e4,read:18e4,write:18e4,...a?.timeouts}},s.request({method:"POST",path:i,queryParameters:{},headers:{},data:t},a)},validateSourceBeforeUpdateWithHTTPInfo({sourceID:e,sourceUpdate:t},a){(0,H.validateRequired)("sourceID","validateSourceBeforeUpdateWithHTTPInfo",e),(0,H.validateRequired)("sourceUpdate","validateSourceBeforeUpdateWithHTTPInfo",t);let i="/1/sources/{sourceID}/validate".replace("{sourceID}",encodeURIComponent(e));return a={...a,timeouts:{connect:18e4,read:18e4,write:18e4,...a?.timeouts}},s.requestWithHttpInfo({method:"POST",path:i,queryParameters:{},headers:{},data:t},a)}}}({appId:e,apiKey:t,region:a,timeouts:{connect:25e3,read:25e3,write:25e3},logger:(0,H.createNullLogger)(),requester:(0,j.createXhrRequester)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,H.createMemoryCache)(),requestsCache:(0,H.createMemoryCache)({serializable:!1}),hostsCache:(0,H.createFallbackableCache)({caches:[(0,H.createBrowserLocalStorageCache)({key:`${ea}-${e}`}),(0,H.createMemoryCache)()]}),...n})}e.s(["apiClientVersion",0,ea,"ingestionClient",0,er,"isOnDemandTrigger",0,function(e){return"onDemand"===e.type},"isScheduleTrigger",0,function(e){return"schedule"===e.type},"isSubscriptionTrigger",0,function(e){return"subscription"===e.type}],339774);var en="1.57.0";function eo(e,t,a){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");let{compression:i,...r}=a||{};return function({appId:e,apiKey:t,authMode:a,algoliaAgents:i,...r}){let n=(0,H.createAuth)(e,t,a),o=(0,H.createTransporter)({hosts:[{url:"status.algolia.com",accept:"readWrite",protocol:"https"}],...r,algoliaAgent:(0,H.getAlgoliaAgent)({algoliaAgents:i,client:"Monitoring",version:en}),baseHeaders:{"content-type":"text/plain",...n.headers(),...r.baseHeaders},baseQueryParameters:{...n.queryParameters(),...r.baseQueryParameters}});return{transporter:o,appId:e,apiKey:t,clearCache:()=>Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then(()=>void 0),get _ua(){return o.algoliaAgent.value},addAlgoliaAgent(e,t){o.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){a&&"WithinHeaders"!==a?o.baseQueryParameters["x-algolia-api-key"]=e:o.baseHeaders["x-algolia-api-key"]=e},customDelete({path:e,parameters:t},a){(0,H.validateRequired)("path","customDelete",e);let i="/{path}".replace("{path}",e);return o.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customDeleteWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customDeleteWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return o.requestWithHttpInfo({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customGet({path:e,parameters:t},a){(0,H.validateRequired)("path","customGet",e);let i="/{path}".replace("{path}",e);return o.request({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customGetWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customGetWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return o.requestWithHttpInfo({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customPost({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPost",e);let r="/{path}".replace("{path}",e);return o.request({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPostWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPostWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return o.requestWithHttpInfo({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPut({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPut",e);let r="/{path}".replace("{path}",e);return o.request({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPutWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPutWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return o.requestWithHttpInfo({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},getClusterIncidents({clusters:e}
2305,t){(0,H.validateRequired)("clusters","getClusterIncidents",e);let a="/1/incidents/{clusters}".replace("{clusters}",encodeURIComponent(e));return o.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getClusterIncidentsWithHTTPInfo({clusters:e},t){(0,H.validateRequired)("clusters","getClusterIncidentsWithHTTPInfo",e);let a="/1/incidents/{clusters}".replace("{clusters}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},getClusterStatus({clusters:e},t){(0,H.validateRequired)("clusters","getClusterStatus",e);let a="/1/status/{clusters}".replace("{clusters}",encodeURIComponent(e));return o.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getClusterStatusWithHTTPInfo({clusters:e},t){(0,H.validateRequired)("clusters","getClusterStatusWithHTTPInfo",e);let a="/1/status/{clusters}".replace("{clusters}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},getIncidents:e=>o.request({method:"GET",path:"/1/incidents",queryParameters:{},headers:{}},e),getIncidentsWithHTTPInfo:e=>o.requestWithHttpInfo({method:"GET",path:"/1/incidents",queryParameters:{},headers:{}},e),getIndexingTime({clusters:e},t){(0,H.validateRequired)("clusters","getIndexingTime",e);let a="/1/indexing/{clusters}".replace("{clusters}",encodeURIComponent(e));return o.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getIndexingTimeWithHTTPInfo({clusters:e},t){(0,H.validateRequired)("clusters","getIndexingTimeWithHTTPInfo",e);let a="/1/indexing/{clusters}".replace("{clusters}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},getLatency({clusters:e},t){(0,H.validateRequired)("clusters","getLatency",e);let a="/1/latency/{clusters}".replace("{clusters}",encodeURIComponent(e));return o.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getLatencyWithHTTPInfo({clusters:e},t){(0,H.validateRequired)("clusters","getLatencyWithHTTPInfo",e);let a="/1/latency/{clusters}".replace("{clusters}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},getMetrics({metric:e,period:t},a){(0,H.validateRequired)("metric","getMetrics",e),(0,H.validateRequired)("period","getMetrics",t);let i="/1/infrastructure/{metric}/period/{period}".replace("{metric}",encodeURIComponent(e)).replace("{period}",encodeURIComponent(t));return o.request({method:"GET",path:i,queryParameters:{},headers:{}},a)},getMetricsWithHTTPInfo({metric:e,period:t},a){(0,H.validateRequired)("metric","getMetricsWithHTTPInfo",e),(0,H.validateRequired)("period","getMetricsWithHTTPInfo",t);let i="/1/infrastructure/{metric}/period/{period}".replace("{metric}",encodeURIComponent(e)).replace("{period}",encodeURIComponent(t));return o.requestWithHttpInfo({method:"GET",path:i,queryParameters:{},headers:{}},a)},getReachability({clusters:e},t){(0,H.validateRequired)("clusters","getReachability",e);let a="/1/reachability/{clusters}/probes".replace("{clusters}",encodeURIComponent(e));return o.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getReachabilityWithHTTPInfo({clusters:e},t){(0,H.validateRequired)("clusters","getReachabilityWithHTTPInfo",e);let a="/1/reachability/{clusters}/probes".replace("{clusters}",encodeURIComponent(e));return o.requestWithHttpInfo({method:"GET",path:a,queryParameters:{},headers:{}},t)},getServers:e=>o.request({method:"GET",path:"/1/inventory/servers",queryParameters:{},headers:{}},e),getServersWithHTTPInfo:e=>o.requestWithHttpInfo({method:"GET",path:"/1/inventory/servers",queryParameters:{},headers:{}},e),getStatus:e=>o.request({method:"GET",path:"/1/status",queryParameters:{},headers:{}},e),getStatusWithHTTPInfo:e=>o.requestWithHttpInfo({method:"GET",path:"/1/status",queryParameters:{},headers:{}},e)}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,H.createNullLogger)(),requester:(0,j.createXhrRequester)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,H.createMemoryCache)(),requestsCache:(0,H.createMemoryCache)({serializable:!1}),hostsCache:(0,H.createFallbackableCache)({caches:[(0,H.createBrowserLocalStorageCache)({key:`${en}-${e}`}),(0,H.createMemoryCache)()]}),...r})}e.s(["apiClientVersion",0,en,"monitoringClient",0,eo],114688);var es="5.57.0";function el(e,t,a){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");let{compression:i,...r}=a||{};return function({appId:e,apiKey:t,authMode:a,algoliaAgents:i,...r}){let n=(0,H.createAuth)(e,t,a),o=(0,H.createTransporter)({hosts:[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat((0,H.shuffle)([{url:`${e}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-3.algolianet.com`,accept:"readWrite",protocol:"https"}])),...r,algoliaAgent:(0,H.getAlgoliaAgent)({algoliaAgents:i,client:"Recommend",ver
2305sion:es}),baseHeaders:{"content-type":"text/plain",...n.headers(),...r.baseHeaders},baseQueryParameters:{...n.queryParameters(),...r.baseQueryParameters}});return{transporter:o,appId:e,apiKey:t,clearCache:()=>Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then(()=>void 0),get _ua(){return o.algoliaAgent.value},addAlgoliaAgent(e,t){o.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){a&&"WithinHeaders"!==a?o.baseQueryParameters["x-algolia-api-key"]=e:o.baseHeaders["x-algolia-api-key"]=e},batchRecommendRules({indexName:e,model:t,recommendRule:a},i){(0,H.validateRequired)("indexName","batchRecommendRules",e),(0,H.validateRequired)("model","batchRecommendRules",t);let r="/1/indexes/{indexName}/{model}/recommend/rules/batch".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t));return o.request({method:"POST",path:r,queryParameters:{},headers:{},data:a||{}},i)},batchRecommendRulesWithHTTPInfo({indexName:e,model:t,recommendRule:a},i){(0,H.validateRequired)("indexName","batchRecommendRulesWithHTTPInfo",e),(0,H.validateRequired)("model","batchRecommendRulesWithHTTPInfo",t);let r="/1/indexes/{indexName}/{model}/recommend/rules/batch".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t));return o.requestWithHttpInfo({method:"POST",path:r,queryParameters:{},headers:{},data:a||{}},i)},customDelete({path:e,parameters:t},a){(0,H.validateRequired)("path","customDelete",e);let i="/{path}".replace("{path}",e);return o.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customDeleteWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customDeleteWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return o.requestWithHttpInfo({method:"DELETE",path:i,queryParameters:t||{},headers:{}},a)},customGet({path:e,parameters:t},a){(0,H.validateRequired)("path","customGet",e);let i="/{path}".replace("{path}",e);return o.request({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customGetWithHTTPInfo({path:e,parameters:t},a){(0,H.validateRequired)("path","customGetWithHTTPInfo",e);let i="/{path}".replace("{path}",e);return o.requestWithHttpInfo({method:"GET",path:i,queryParameters:t||{},headers:{}},a)},customPost({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPost",e);let r="/{path}".replace("{path}",e);return o.request({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPostWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPostWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return o.requestWithHttpInfo({method:"POST",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPut({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPut",e);let r="/{path}".replace("{path}",e);return o.request({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},customPutWithHTTPInfo({path:e,parameters:t,body:a},i){(0,H.validateRequired)("path","customPutWithHTTPInfo",e);let r="/{path}".replace("{path}",e);return o.requestWithHttpInfo({method:"PUT",path:r,queryParameters:t||{},headers:{},data:a||{}},i)},deleteRecommendRule({indexName:e,model:t,objectID:a},i){(0,H.validateRequired)("indexName","deleteRecommendRule",e),(0,H.validateRequired)("model","deleteRecommendRule",t),(0,H.validateRequired)("objectID","deleteRecommendRule",a);let r="/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t)).replace("{objectID}",encodeURIComponent(a));return o.request({method:"DELETE",path:r,queryParameters:{},headers:{}},i)},deleteRecommendRuleWithHTTPInfo({indexName:e,model:t,objectID:a},i){(0,H.validateRequired)("indexName","deleteRecommendRuleWithHTTPInfo",e),(0,H.validateRequired)("model","deleteRecommendRuleWithHTTPInfo",t),(0,H.validateRequired)("objectID","deleteRecommendRuleWithHTTPInfo",a);let r="/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t)).replace("{objectID}",encodeURIComponent(a));return o.requestWithHttpInfo({method:"DELETE",path:r,queryParameters:{},headers:{}},i)},getRecommendRule({indexName:e,model:t,objectID:a},i){(0,H.validateRequired)("indexName","getRecommendRule",e),(0,H.validateRequired)("model","getRecommendRule",t),(0,H.validateRequired)("objectID","getRecommendRule",a);let r="/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t)).replace("{objectID}",encodeURIComponent(a));return o.request({method:"GET",path:r,queryParameters:{},headers:{}},i)},getRecommendRuleWithHTTPInfo({indexName:e,model:t,objectID:a},i){(0,H.validateRequired)("indexName","getRecommendRuleWithHTTPInfo",e),(0,H.validateRequired)("model","getRecommendRuleWithHTTPInfo",t),(0,H.validateRequired)("objectID","getRecommendRuleWithHTTPInfo",a);let r="/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t)).replace("{objectID}",encodeURIComponent(a));return o.requestWithHttpInfo({method:"GET",path:r,queryParameters:{},headers:{}},i)},getRecommendStatus({indexName:e,model:t,taskID:a},i){(0,H.validateRequired)("indexName","getRecommendStatus",e),(0,H.validateRequired)("model","getRecommendStatus",t),(0,H.validateRequired)("taskID","getRecommendStatus",a);let r="/1/indexes/{indexName}/{model}/task/{taskID}".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t)).replace("{taskID}",encodeURIComponent(a));return o.request({method:"GET",path:r,queryParameters:{},headers:{}},i)},getRecommendStatusWithHTTPInfo({indexName:e,model:t,taskID:a},i){(0,H.validateRequired)("indexName","getRecommendStatusWithHTTPInfo",e),(0,H.validateRequired)("model","getRecommendStatusWithHTTPInfo",t),(0,H.validateRequired)("taskID","getRecommendStatusWithHTTPInfo",a);let r="/1/indexes/{indexName}/{model}/task/{taskID}".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t)).replace("{taskID}",encodeURIComponent(a));return o.requestWithHttpInfo({method:"GET",path:r,queryParameters:{},headers:{}},i)},getRecommendations(e,t){e&&Array.isArray(e)&&(e={requests:e}),(0,H.validateRequired)("getRecommendationsParams","getRecommendations",e),(0,H.validateRequired)("getRecommendationsParams.requests","getRecommendations",e.requests);let a={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return o.request(a,t)},getRecommendationsWithHTTPInfo(e,t){e&&Array.isArray(e)&&(e={requests:e}),(0,H.validateRequired)("getRecommendationsParams","getRecommendationsWithHTTPInfo",e),(0,H.validateRequired)("getRecommendationsParams.requests","getRecommendationsWithHTTPInfo",e.requests);let a={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return o.requestWithHttpInfo(a,t)},searchRecommendRules({indexName:e,model:t,searchRecommendRulesParams:a},i){(0,H.validateRequired)("indexName","searchRecommendRules",e),(0,H.validateRequired)("model","searchRecommendRules",t);let r="/1/indexes/{indexName}/{model}/recommend/rules/search".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t));return o.request({method:"POST",path:r,queryParameters:{},headers:{},data:a||{},useReadTransporter:!0,cacheable:!0},i)},searchRecommendRulesWithHTTPInfo({indexName:e,model:t,searchRecommendRulesParams:a},i){(0,H.validateRequired)("indexName","searchRecommendRulesWithHTTPInfo",e),(0,H.validateRequired)("model","searchRecommendRulesWithHTTPInfo",t);let r="/1/indexes/{indexName}/{model}/recommend/rules/search".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t));return o.requestWithHttpInfo({method:"POST",path:r,queryParameters:{},headers:{},data:a||{},useReadTransporter:!0,cacheable:!0},i)}}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,H.createNullLogger)(),requester:(0,j.createXhrRequester)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",requestIdChannel:"queryParameters",responsesCache:(0,H.createMemoryCache)(),requestsCache:(0,H.createMemoryCache)({serializable:!1}),hostsCache:(0,H.createFallbackableCache)({caches:[(0,H.createBrowserLocalStorageCache)({key:`${es}-${e}`}),(0,H.createMemoryCache)()]}),...r})}e.s(["apiClientVersion",0,es,"recommendClient",0,el],687654);var ed=e.i(269383),ec=e.i(859970),eu=e.i(510641),eh=e.i(957490),em=e.i(92185),ep=e.i(471368),eg=e.i(423526),ev=e.i(339774),ef=e.i(114688),eT=e.i(687654),ey=Object.defineProperty,eI=Object.getOwnPropertyDescriptor,eP=Object.getOwnPropertyNames,eS=Object.prototype.hasOwnProperty,ex=(e,t)=>{for(var a in t)ey(e,a,{get:t[a],enumerable:!0})},eb=(e,t,a,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of eP(t))eS.call(e,r)||r===a||ey(e,r,{get:()=>t[r],enumerable:!(i=eI(t,r))||i.enumerable});return e},ek=(e,t,a)=>(eb(e,t,"default"),a&&eb(a,t,"default")),eD={};ex(eD,{algoliasearch:()=>eR,apiClientVersion:()=>ee});var eC={};function eR(e,t,a){let i,r;if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");let n=et(e,t,a);if(a?.transformationOptions?i=a.transformationOptions:a?.transformation&&(i={region:a.transformation.region}),i){if(!i.region)throw Error("`region` is required in `transformationOptions`. See https://www.algolia.com/doc/libraries/sdk/methods/ingestion/");let{region:a,...n}=i;r=er(e,t,a,n)}return{...n,async saveObjectsWithTransformation({indexName:e,objects:t,batchSize:a,waitForTasks:i,maxRetries:n},o){if(!r)throw Error("`transformationOptions` must be set in the client config before calling this method. It defaults to the Ingestion API defaults. See https://www.algolia.com/doc/libraries/sdk/methods/ingestion/");return r.chunkedPush({indexName:e,objects:t,action:"addObject",batchSize:a,waitForTasks:i,maxRetries:n},o)},async partialUpdateObjectsWithTransformation({indexName:e,objects:t,createIfNotExists:a,batchSize:i,waitForTasks:n,maxRetries:o},s){if(!r)throw Error("`transformationOptions` must be set in the client config before calling this method. It defaults to the Ingestion API defaults. See https://www.algolia.com/doc/libraries/sdk/methods/ingestion/");return r.chunkedPush({indexName:e,objects:t,action:a?"partialUpdateObject":"partialUpdateObjectNoCreate",batchSize:i,waitForTasks:n,maxRetries:o},s)}
2305,async replaceAllObjectsWithTransformation({indexName:e,objects:t,batchSize:a,scopes:i,maxRetries:o=H.DEFAULT_REPLACE_ALL_OBJECTS_MAX_RETRIES},s){if(!r)throw Error("`transformationOptions` must be set in the client config before calling this method. It defaults to the Ingestion API defaults. See https://www.algolia.com/doc/libraries/sdk/methods/ingestion/");let l=(0,H.withRequestId)(n.transporter,s);0===t.length&&(0,H.logWarning)(n.transporter.logger,`replaceAllObjectsWithTransformation was called with an empty list of objects, which will delete all records currently in the "${e}" index.`);let d=Math.floor(1e6*Math.random())+1e5,c=`${e}_tmp_${d}`;void 0===i&&(i=["settings","rules","synonyms"]);try{let n=await this.operationIndex({indexName:e,operationIndexParams:{operation:"copy",destination:c,scope:i}},l),d=await r.chunkedPush({indexName:c,objects:t,waitForTasks:!0,batchSize:a,referenceIndexName:e,maxRetries:o},s);await this.waitForTask({indexName:c,taskID:n.taskID,maxRetries:o},l),n=await this.operationIndex({indexName:e,operationIndexParams:{operation:"copy",destination:c,scope:i}},l),await this.waitForTask({indexName:c,taskID:n.taskID,maxRetries:o},l);let u=await this.operationIndex({indexName:c,operationIndexParams:{operation:"move",destination:e}},l);return await this.waitForTask({indexName:c,taskID:u.taskID,maxRetries:o},l),{copyOperationResponse:n,watchResponses:d,moveOperationResponse:u}}catch(e){throw await this.deleteIndex({indexName:c},l),e}},get _ua(){return n.transporter.algoliaAgent.value},initAbtesting:a=>U(a.appId||e,a.apiKey||t,a.region,a.options),initAbtestingV3:a=>W(a.appId||e,a.apiKey||t,a.region,a.options),initAnalytics:a=>M(a.appId||e,a.apiKey||t,a.region,a.options),initIngestion:a=>er(a.appId||e,a.apiKey||t,a.region,a.options),initInsights:a=>z(a.appId||e,a.apiKey||t,a.region,a.options),initMonitoring:(a={})=>eo(a.appId||e,a.apiKey||t,a.options),initPersonalization:a=>Y(a.appId||e,a.apiKey||t,a.region,a.options),initQuerySuggestions:a=>Z(a.appId||e,a.apiKey||t,a.region,a.options),initRecommend:(a={})=>el(a.appId||e,a.apiKey||t,a.options)}}ex(eC,{apiClientVersion:()=>ee}),ek(eC,ed),ek(eC,ec),ek(eC,eu),ek(eC,eh),ek(eC,em),ek(eC,ep),ek(eC,eg),ek(eC,ev),ek(eC,ef),ek(eC,eT),ek(eD,eC);var eq=e.i(351400);let eE=eR(eq.env.NEXT_PUBLIC_ALGOLIA_APP_ID,eq.env.NEXT_PUBLIC_ALGOLIA_API_KEY).initRecommend();var eN=e.i(105119);e.s(["ProductRecommendationsSliders",0,({children:e,headline:n,description:s,name:l,objectID:d,baseProduct:c,pinnedItems:u,hideTrendingItems:h=!1,hideFrequentlyBoughtTogether:m=!1,limitations:p})=>{let{localeId:g,marketplaceId:v,currency:f,recommendationsIndex:T}=(0,r.useMarket)(),{consents:y,isLoading:I}=(0,q.useConsent)(),P=(0,a.useTranslations)(),S=(0,eN.useUserToken)(),D=y.algolia?S??"guest-token":"guest-token",{currentDealer:A,isLoadingDealerInfo:H}=(0,E.useDealer)(),{data:j,isLoading:w}=(({indexName:e,marketplaceId:t,locale:a,objectID:r,baseProduct:n,userToken:o,currency:s,pinnedItems:l,enabled:d,hideTrendingItems:c,hideFrequentlyBoughtTogether:u,limitations:h,dealerId:m})=>{let{consents:p}=(0,q.useConsent)(),g=p.algolia;return(0,N.useQuery)({queryKey:["algoliaRecommendations",e,r],enabled:d,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!1,queryFn:async()=>{try{let d=[],p=[],v=[];if(h&&(h.commerceCategory&&d.push(`categories.key:"${h.commerceCategory}"`),h.vendors&&d.push(`(${h.vendors.map(e=>`brand:"${e}"`).join(" OR ")})`),h.priceMin&&d.push(`grossPriceFacetValue.amount > ${h.priceMin}`),h.priceMax&&d.push(`grossPriceFacetValue.amount < ${h.priceMax}`)),m){let e=`${i.ALGOLIA_FACET_NAME_STOCK_CHANNEL_KEY}:"${m}"`;d.push(e),p.push(e),v.push(e)}let f=[],T={indexName:e,model:"trending-items",maxRecommendations:i.PRODUCT_SLIDER_ITEMS_PER_VIEW_DESKTOP,queryParameters:{clickAnalytics:g,userToken:o,filters:d.length>0?d.join(" AND "):void 0},threshold:40};if(r&&f.push({indexName:e,objectID:r,model:"related-products",maxRecommendations:i.PRODUCT_SLIDER_ITEMS_PER_VIEW_DESKTOP,queryParameters:{clickAnalytics:g,userToken:o,filters:p.length>0?p.join(" AND "):void 0},threshold:40},{indexName:e,objectID:r,model:"bought-together",maxRecommendations:i.PRODUCT_SLIDER_ITEMS_P
2305ER_VIEW_DESKTOP,queryParameters:{clickAnalytics:g,userToken:o,filters:v.length>0?v.join(" AND "):void 0},threshold:40}),c||f.push(T),0===f.length)return{trendingItems:[],relatedProducts:[],frequentlyBoughtTogether:[]};let y=await eE.getRecommendations(f),I=y.results[0]?.queryID??"",P=y.results[1]?.queryID??"",S=y.results[2*!!r]?.queryID??"",x=await Promise.all(y.results.slice(0,2).map(async({hits:e})=>_({products:e.filter(e=>e.baseProduct!==n).map(e=>({key:e.baseProduct})),currency:s,spliceItems:i.PRODUCT_SLIDER_ITEMS_PER_VIEW_DESKTOP,locale:a,marketplaceId:t}))),b=r&&0!==(x[0]??[]).length?[]:y.results[2*!!r]?.hits,k=b?.flatMap(e=>e.baseProduct),D=[...new Set([...l??[],...k??[]])],C=await _({products:(D??[]).map(e=>({key:e})),currency:s,spliceItems:i.PRODUCT_SLIDER_ITEMS_PER_VIEW_DESKTOP,locale:a,marketplaceId:t});return{trendingItems:c?[]:C.map(e=>({...e,queryId:S})),relatedProducts:r&&x[0]?x[0].map(e=>({...e,queryId:I})):[],frequentlyBoughtTogether:!u&&x[1]?x[1].map(e=>({...e,queryId:P})):[]}}catch(e){if(401===e.response.status)throw Error("401");throw Error(e)}}})})({indexName:T,currency:f,marketplaceId:v,locale:g,objectID:d,baseProduct:c,enabled:!(I??null===S)&&!H,userToken:D,pinnedItems:u,hideTrendingItems:h,hideFrequentlyBoughtTogether:m,limitations:p,dealerId:A?.id??null}),L=i.PRODUCT_SLIDER_MIN_ITEMS_TO_RENDER;return I||null===S||w||H?(0,t.jsx)("div",{className:"_1l001xi0","data-testid":"reco-spinner",children:(0,t.jsx)(C.PSpinner,{size:"2xl"})}):(0,t.jsxs)(t.Fragment,{children:[j&&(j?.relatedProducts??[]).length>=L&&(0,t.jsx)(R.BlockSection,{children:(0,t.jsx)(k,{name:`${l}-related-items`,uId:"related-products-slider",heading:{text:P("recommendations.related.headline"),tag:"h2"},description:s,productData:j.relatedProducts,children:j.relatedProducts.map((e,a)=>{let i={...(0,o.populateProductTile)("related-products-slider",v,g)(e,a)};return(0,t.jsx)(x.ProductTile,{imageSizes:b,titleTag:"h3",...i},i.productData.dataId)})})}),j&&(j.trendingItems??[]).length>=L?(0,t.jsx)(R.BlockSection,{children:(0,t.jsx)(k,{name:`${l}-trending-items`,uId:"trending-items-slider",heading:{text:n??P("recommendations.trending.headline"),tag:"h2"},description:s,productData:j.trendingItems,children:j.trendingItems.map((e,a)=>{let i={...(0,o.populateProductTile)("trending-items-slider",v,g)(e,a)};return(0,t.jsx)(x.ProductTile,{imageSizes:b,titleTag:"h3",...i},i.productData.dataId)})})}):e?(0,t.jsx)(R.BlockSection,{children:e}):void 0,j&&(j?.frequentlyBoughtTogether??[]).length>=L&&(0,t.jsx)(R.BlockSection,{children:(0,t.jsx)(k,{name:`${l}-frequently-items`,uId:"related-products-slider",heading:{text:P("recommendations.frequently.headline"),tag:"h2"},description:s,productData:j.frequentlyBoughtTogether,children:j.frequentlyBoughtTogether.map((e,a)=>{let i={...(0,o.populateProductTile)("related-products-slider",v,g)(e,a)};return(0,t.jsx)(x.ProductTile,{imageSizes:b,titleTag:"h3",...i},i.productData.dataId)})})})]})}],152359)},764081,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(657688),r=e.i(732545),n=e.i(959411);e.i(510193);var o=e.i(145025);e.i(778498);var s=e.i(456641),l=e.i(315515),d=e.i(646664),c=e.i(938417),u=e.i(257307),h=e.i(605976),m=e.i(636137),p=e.i(287781),g=e.i(69406),v=e.i(933948),f=e.i(363122),T=e.i(445469);e.s(["ProductTile",0,({queryID:e,dealerId:y,productData:I,titleTag:P,variants:S,disableVariantOverride:x=!1,imageSizes:b="100vw",wishlistButtons:k={removeIcon:"heart-filled"},index:D})=>{let{trackEvent:C}=(0,m.useAnalytics)(),{localeId:R,marketplaceId:q,showLowestReducedPriceEnabled:E,alternateCurrency:N}=(0,g.useMarket)(),A=(0,o.useTranslations)(),{useIndirectSales:_}=(0,p.useDealer)(),[H,j]=(0,a.useState)(I.sku),w=x?I:S?.find(e=>e.sku===H)??I,L=w.images[0]??"",W=x?I.href:`/${q}/${R}/p/${I.slug}/${encodeURIComponent(w.sku)}`;e&&(W+=`?queryID=${e}`);let O=w.colors?.map(e=>e.name.split("||")[0]),{grossPriceValue:$,grossPriceDiscountedValue:U,netPriceValue:V}=I,B=(0,a.useMemo)(()=>({quantity:1,price:$?{value:$,isTaxIncluded:null,discounted:U?{value:$}:null}:null,priceNet:V?{value:V,isTaxIncluded:null,discounted:null}:null,productKey:I.key,variantSku:I.sku,productName:I.name,productTypeName:I.type,image:{url:L},brand:I.brand,facetBranch:I.facetBranch,categories:[]}),[I,$,U,V,L]),M=S;I.colors&&(M=S?.filter(e=>e.sku!==I.sku),M?.unshift({colors:I.colors,netPriceValue:I.netPriceValue,grossPriceValue:I.grossPriceValue,images:I.images,labels:I.labels,sku:I.sku,grossPriceDiscountedValue:I.grossPriceDiscountedValue,basePrice:I.basePrice}));let G=I.stock.find(e=>
2305e.channelKey===y)?.quantity??0,F=w.isComingSoon??!1,z=w.isSoldOut??!1,K=w.isPCAExclusive??!1,Q=w.isDealerExclusive??!1,Y=[...w.labels??[]].filter(({key:e})=>e!==h.PRODUCT_LABEL_COMING_SOON).filter(({key:e})=>!(e===h.PRODUCT_LABEL_OUT_OF_STOCK&&I.allVariantsOutOfStock));F||Q||!I.allVariantsOutOfStock||_&&G>0||z?F&&!I.hasStock?Y.unshift({key:h.PRODUCT_LABEL_COMING_SOON,name:A("product.label.coming.soon")}):z&&!I.hasStock&&I.allVariantsOutOfStock?Y.unshift({key:h.PRODUCT_LABEL_SOLD_OUT,name:A("product.label.sold.out")}):K?Y.unshift({key:h.PRODUCT_LABEL_PCA_EXCLUSIVE,name:A("product.label.pca.exclusive")}):Q&&Y.unshift({key:h.PRODUCT_LABEL_DEALER_EXCLUSIVE,name:A("product.label.dealer.exclusive")}):Y.unshift({key:h.PRODUCT_LABEL_OUT_OF_STOCK,name:A("product.label.stock.out")});let X=I?.facetBranch===h.BRAND_PORSCHE_DESIGN,J=w.energyGrade??I.energyGrade,Z=w.energyLabel??I.energyLabel,ee=X||!!J&&!!Z||M&&M.length>1,et=`product-tile-heading-${I.dataId}-${I.uId}`;return(0,t.jsxs)("article",{className:u.styledProductTileWrap,"data-product":I.uId,"data-testid":"product-tile-wrap","aria-labelledby":et,children:[(0,t.jsxs)(c.default,{href:W,className:`${u.styledMetaWrapper} product-tile`,"data-testid":`${I.dataId}`,"data-product":I.uId,onClick:()=>{C({eventName:"ProductClick",payload:{position:D,queryID:e,productData:B,componentClick:{clickElementType:"tile",clickElementId:I.dataId,clickElementName:"product",targetUrl:window.location.origin+W}}})},children:[(0,t.jsxs)("div",{children:[X&&(0,t.jsx)(s.Text,{color:"contrast-medium",size:"x-small",className:u.styledProductTileDesignLabel,"data-testid":"product-tile-porsche-design",children:h.BRAND_PORSCHE_DESIGN}),(0,t.jsx)(s.Text,{className:u.styledProductTileHeadline,size:"x-small",as:P,id:et,"data-testid":"product-name",children:I.name}),(0,t.jsx)("div",{children:w.grossPriceValue&&(0,t.jsx)("div",{className:u.styledProductTilePriceLabel,children:(0,t.jsx)(T.PriceLabel,{alternateCurrency:N,isTaxIncluded:null,grossPriceValue:w.grossPriceValue,grossPriceDiscountedValue:w.grossPriceDiscountedValue?{...w.grossPriceDiscountedValue,preciseAmount:null}:null,priceWithDiscountCode:null,basePrice:w.basePrice,locale:R,className:u.styledProductTilePriceInner,color:"contrast-medium",size:"inherit",alternateCurrencySize:"xx-small",lowestReducedPrice:E?{short:!0}:void 0})})})]}),(0,t.jsx)(n.VisuallyHidden,{children:O})]}),(0,t.jsxs)("div",{className:u.styledAction,children:[(0,t.jsx)("div",{className:u.styledLabels,"data-testid":"product-labels",children:Y.slice(0,1).map(e=>(0,t.jsx)(r.PTag,{"data-testid":`product-label-tag-${e.key}`,variant:"cyberweek"===e.key.toLowerCase()||e.key===h.PRODUCT_LABEL_OUT_OF_STOCK||e.key===h.PRODUCT_LABEL_COMING_SOON||e.key===h.PRODUCT_LABEL_PCA_EXCLUSIVE||e.key===h.PRODUCT_LABEL_SOLD_OUT||e.key===h.PRODUCT_LABEL_DEALER_EXCLUSIVE?"primary":"secondary",children:e.name},e.key))}),I.key&&(0,t.jsx)("div",{className:u.styledWishlistButton,children:(0,t.jsx)(f.WishlistButton,{productData:B,compact:!0,variant:"pure",removeIcon:k?.removeIcon})})]}),I.ariaLabel&&(0,t.jsx)(n.VisuallyHidden,{children:I.ariaLabel}),(0,t.jsx)("div",{className:u.styledProductTileImage,"data-testid":"product-image",children:L?(0,t.jsx)(i.default,{src:L,alt:I.name,height:1.125,width:1,"aria-hidden":!0,sizes:b,style:{width:"100%",height:"auto"}}):(0,t.jsx)(i.default,{src:"/missingProduct.png",alt:I.name,height:28,width:25,"aria-hidden":!0,sizes:b,style:{width:"100%",height:"auto"}})}),ee&&(0,t.jsxs)("div",{className:u.styledProductTileFooter,children:[M&&M.length>1&&(0,t.jsxs)("div",{className:u.styledProductTilePreviewColor,children:[(0,t.jsx)(n.VisuallyHidden,{id:`attribute-selector-legend-color-tile-${I.sku}-${I.uId}`,children:A("colorselector.a11y.name")}),(0,t.jsx)(l.ColorSelector,{colors:M.map(e=>({colorId:e.colors.map(e=>e.key),colorCode:e.colors.map(e=>e.key),label:e.colors.map(e=>e.name),isDisabled:!1})),activeColorId:w.colors?.map(e=>e.key),formName:`tile-${I.sku}-${I.uId}`,testIdPrefix:"selector-color",onChangeActiveColorId:e=>{M?.map(t=>(JSON.stringify(t.colors.flatMap(e=>e.key))===JSON.stringify(e)&&j(t.sku),!1))},enableChangeOnHover:!0,variant:"productTileNew",maxRowItems:4,tabIndex:-1,a11yColorLabel:A("colorselector.a11y.name")}
2305)]}),!!J&&(0,t.jsx)("div",{className:[u.styledProductTileEnergyLabel,Z?u.styledClickableEnergyLabel:""].join(" "),tabIndex:-1,children:(0,t.jsx)(d.EnergyLabel,{grade:{value:J,labelImgSrc:Z},energyEfficiencyClassLabel:A("global.text.energyEfficiencyClass"),productDataSheetLabel:A("global.text.productDataSheet")})})]}),I.isPromoted&&(0,t.jsx)("div",{"data-testid":"product-tile-promoted",className:u.styledPromoted,children:(0,t.jsx)(v.RankingInfo,{isProductTile:!0})})]})}])},32746,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(969341);let r=e=>Array.isArray(e)?e.join("\x1f"):e,n=(e,t)=>r(e)===r(t),o=(e,t)=>{let a=e.get(t);return"string"==typeof a?a:a?.[0]},s=new Set(["model","modelGeneration","modelDerivative"]),l=e=>s.has(e),d=({supportedAttributes:e,vehicle:t})=>t?new Map([["model",t.model.key],["modelGeneration",t.generation.key],["modelDerivative",t.derivative.key]].filter(([t])=>e.has(t)).map(([e,t])=>[e,[t]])):new Map,c=({fulfillment:e,variant:t})=>"pickup"===e.deliveryType?{isOnStock:(t.pickUpAtDealerAvailability.find(({channelKey:t})=>t===e.dealerId)?.quantity??0)>0,notification:"ineligible"}:{isOnStock:!!t.availability?.isOnStock&&!t.isSoldOut,notification:t.isSoldOut||t.isDealerExclusive?"ineligible":"eligible"},u=e=>{let t=!1===e.state.isRouteSkuValid?new Set:(({catalog:e,selection:t})=>{let a=[...t.entries()].map(([t,a])=>e.candidateSkusByAttributeValue.get(t)?.get(r(a)));return a.some(e=>void 0===e)?new Set:a.filter(e=>void 0!==e).sort((e,t)=>e.size-t.size).reduce((e,t)=>e.intersection(t),e.allVisibleSkus)})({catalog:e.catalog,selection:e.state.selection});if("loading"===e.inventoryState||"loading"===e.vehicleState)return{kind:"loading",candidateSkus:t};if(e.state.externalSelectionConflict)return{kind:"selectionInvalidatedExternally",candidateSkus:t,...e.state.externalSelectionConflict};if(!1===e.state.isRouteSkuValid||0===t.size)return{kind:"noMatchingVariant",candidateSkus:t};let a=e.catalog.requiredProductAttributes.difference(new Set(e.state.selection.keys())),i=new Set([...s].filter(t=>e.catalog.identityGroup.includes(t)&&!e.state.selection.has(t))),n=a.union(i);if(n.size>0)return{kind:"incomplete",candidateSkus:t,missingRequiredAttributes:n};let o=[...t].flatMap(t=>{let a=e.catalog.variantBySku.get(t);return a?[{availability:c({fulfillment:e.fulfillment,variant:a}),variant:a}]:[]}),l=o.find(({availability:e})=>e.isOnStock)??o[0];if(!l)return{kind:"noMatchingVariant",candidateSkus:t};let{availability:d,variant:u}=l,h=u.sku,m=t.size>1?"fallback":"unique";return d.isOnStock?{kind:"resolvedPurchasable",candidateSkus:t,resolution:m,resolvedSku:h}:{kind:"resolvedOutOfStock",candidateSkus:t,notification:d.notification,resolution:m,resolvedSku:h}},h=({attributeName:e,catalog:t,input:a,resetFromAttributeName:i,selection:r,value:o})=>{let s=r??a.state.selection,d=r??(e&&o?(({attributeName:e,selection:t,value:a})=>new Map(t).set(e,a))({attributeName:e,selection:s,value:o}):s),c=(({attributeNames:e,selection:t})=>new Map([...t].filter(([t])=>!e.has(t))))({attributeNames:i?(({attributeName:e,catalog:t})=>{if(l(e))return new Set(t.regularSelectionOrder);let a=t.regularSelectionOrder.indexOf(e);return new Set(-1===a?[]:t.regularSelectionOrder.slice(a+1))})({attributeName:i,catalog:t}):new Set,selection:d});if(!(e&&o?t.optionDefinitionsByAttribute.get(e)?.some(e=>n(e.value,o)):!o))return{kind:"rejected",reason:"unknownOption"};let h=u({...a,state:{...a.state,externalSelectionConflict:void 0,selection:c}});return"noMatchingVariant"===h.kind?{kind:"rejected",reason:"impossible",status:h}:{kind:"accepted",selection:c,status:h}},m=({attributeName:e,catalog:t,input:a,value:i})=>{let r=(({attributeName:e,selection:t,value:a})=>{let i=[...s],r=i.indexOf(e),n=new Map(t).set(e,a);return i.slice(r+1).forEach(e=>n.delete(e)),n})({attributeName:e,selection:a.state.selection,value:i});return h({attributeName:e,catalog:t,input:a,resetFromAttributeName:e,selection:r,value:i})};var p=e.i(496182);let g=(e,t)=>e.attributes.find(({name:e})=>e===t),v=({catalog:e,configuration:t,input:a,controlConfigs:i=t.productControlConfigs,showSingleOptionControls:r=!1})=>i.flatMap(i=>{let o=e.optionDefinitionsByAttribute.get(i.attributeName);return o&&(1!==o.length||i.showAlsoOneAttribute||r)?[{attributeName:i.attributeName,attributeLabel:t.labels.get(i.attributeName)??i.attributeName,displayType:i.type,options:o.map(t=>{let r=l(i.attributeName)?m({attributeName:i.attributeName,catalog:e,input:a,value:t.value}):h({attributeName:i.attributeName,catalog:e,input:a,resetFromAttributeName:i.attributeName,value:t.value});return{...t,state:(({catalog:e,isSelected:t,input:a,status:i})=>{let r="incomplete"===i.kind||"resolvedOutOfStock"===i.kind||"resolvedPurchasable"===i.kind?(({catalog:e,candidateSkus:t,input:a})=>{if(0===t.size)return;let i=[...t].flatMap(t=>{let i=e.variantBySku.get(t);return i?[{availability:c({fulfillment:a.fulfillment,variant:i}),variant:i}]:[]});if(i.length===t.size){if(i.every(({availability:e})=>!e.isOnStock&&"eligible"===e.notification))return"interactiveOutOfStock";if(i.every(({availability:e,variant:t})=>!e.isOnStock&&"ineligible"===e.notification&&!t.isDealerExclusive))return"soldOut"}})({candidateSkus:i.candidateSkus,catalog:e,input:a}):void 0;if(r)return t?"interactiveOutOfStock"===r?"selectedOutOfStock":"selectedSoldOut":r;if("resolvedOutOfStock"===i.kind&&i.candidateSkus.size>1)return t?"selected":"selectable";let n="resolvedOutOfStock"===i.kind?e.variantBySku.get(i.resolvedSku):void 0,o=!!n?.isDealerExclusive;return t&&"resolvedOutOfStock"===i.kind?o?"selected":"eligible"===i.notification?"selectedOutOfStock":"selectedSoldOut":t?"selected":"noMatchingVariant"===i.kind?"disabledImpossible":o?"selectable":"resolvedOutOfStock"===i.kind&&"ineligible"===i.notification?"soldOut":"resolvedOutOfStock"===i.kind?"interactiveOutOfStock":"selectable"})({catalog:e,isSelected:n(a.state.selection.get(i.attributeName)??"",t.value),input:a,status:r.status??{kind:"noMatchingVariant",candidateSkus:new Set}})}})}]:[]}),f=(e,t)=>{switch(t.type){case"selectionReplaced":return{...e,selection:t.selection};case"externalVehicleChanged":return{appliedVehicleKey:t.vehicleKey,externalSelectionConflict:t.externalSelectionConflict,selection:t.selection,validationRequested:e.validationRequested};case"routeSkuReplaced":return{...e,isRouteSkuValid:t.isRouteSkuValid,selection:t.selection};case"validationRequested":return{...e,validationRequested:!0};default:return e}};var T=e.i(3587);let y=(0,a.createContext)(void 0);y.displayName="VariantSelection";let I=e=>{if("resolvedPurchasable"===e.kind||"resolvedOutOfStock"===e.kind)return e.resolvedSku};
2305e.s(["VariantSelectionContextProvider",0,({children:e,...c})=>{let P=(({configuration:e,currentDealer:t,deliveryType:c,onIdentityChange:y,onSelectionChange:P,onSelectionRejected:S,inventories:x,isInventoryLoading:b,isVehicleLoading:k,product:D,routeSku:C,selectedVehicle:R})=>{let q=(0,a.useMemo)(()=>(({configuration:e,product:t})=>{let a=e?.attributes??[];return{productControlConfigs:a.filter(({attributeName:e})=>!l(e)),variantControlConfigs:a,vehicleControlConfigs:a.filter(({attributeName:e})=>l(e)),labels:new Map(t.productType?.attributes?.flatMap(({label:e,name:t})=>e?[[t,e]]:[]))}})({configuration:e,product:D}),[e,D]),E=(0,a.useMemo)(()=>(({configuration:e,inventoriesData:t,product:a})=>{let i={...a,variants:[a.masterVariant,...a.variants.filter(({sku:e})=>e!==a.masterVariant.sku)]},o=(0,p.updateProductVariants)({inventoriesData:t,productData:i}).filter(({isVisible:e})=>e),d=new Map(o.map(e=>[e.sku,e])),c=!o.every(({matchesAllModels:e,matchesSpecificModels:t})=>e||!!t),u=new Map(e.variantControlConfigs.flatMap(e=>{if(!c&&l(e.attributeName))return[];let t=o.reduce((t,a)=>{let i=g(a,e.attributeName);return i?(l(e.attributeName)&&Array.isArray(i.value)?i.value.map((e,t)=>({label:Array.isArray(i.label)?i.label[t]??e:i.label,value:[e]})):[{label:i.label,value:i.value}]).reduce((e,t)=>e.some(({value:e})=>n(e,t.value))?e:[...e,t],t):t},[]);return t.length>0?[[e.attributeName,e.sort?[...t].sort((t,a)=>{let i=Array.isArray(t.value)?t.value[0]:t.value,r=Array.isArray(a.value)?a.value[0]:a.value;return e.orderedList.indexOf(i??"")-e.orderedList.indexOf(r??"")}):t]]:[]})),h=new Map([...u.keys()].map(e=>{let t=new Map;return o.forEach(a=>{let i=g(a,e)?.value;i&&(l(e)&&Array.isArray(i)?i.map(e=>[e]):[i]).forEach(e=>{let i=r(e),n=t.get(i)??new Set;n.add(a.sku),t.set(i,n)})}),[e,t]}));return{allVisibleSkus:new Set(d.keys()),candidateSkusByAttributeValue:h,identityGroup:(({configuration:e,optionDefinitionsByAttribute:t})=>{let a=[...s];if(a.every(e=>t.has(e)))return a;let i=e.variantControlConfigs.find(({attributeName:e})=>(t.get(e)?.length??0)>1)?.attributeName;return i?[i]:[]})({configuration:e,optionDefinitionsByAttribute:u}),optionDefinitionsByAttribute:u,regularSelectionOrder:e.productControlConfigs.flatMap(({attributeName:e})=>(u.get(e)?.length??0)>1?[e]:[]),requiredProductAttributes:new Set([...u.entries()].filter(([e,t])=>!l(e)&&t.length>1).map(([e])=>e)),variantBySku:d}})({configuration:q,inventoriesData:x,product:D}),[x,D,q]),N=(0,a.useMemo)(()=>R?d({supportedAttributes:new Set(E.candidateSkusByAttributeValue.keys()),vehicle:R}):new Map,[R,E.candidateSkusByAttributeValue]),A=(0,a.useMemo)(()=>new Map([...(({catalog:e,routeSku:t})=>{let a=e.variantBySku.get(t);return a?new Map([...[...e.optionDefinitionsByAttribute.entries()].flatMap(([t,i])=>{let o=i[0],s=g(a,t)?.value;return!l(t)&&1===i.length&&o&&void 0!==s&&n(s,o.value)&&e.candidateSkusByAttributeValue.get(t)?.get(r(o.value))?.size===e.allVisibleSkus.size?[[t,o.value]]:[]}),...e.identityGroup.filter(e=>!l(e)).flatMap(e=>{let t=g(a,e)?.value;return t?[[e,t]]:[]}),...e.identityGroup.some(l)?[...e.optionDefinitionsByAttribute.entries()].filter(([e,t])=>!l(e)&&t.length>1).slice(0,1).flatMap(([e])=>{let t=g(a,e)?.value;return t?[[e,t]]:[]}):[]]):new Map})({catalog:E,routeSku:C}),...N]),[C,E,N]),_=(0,a.useMemo)(()=>D.vehicleInformation?new T.VehicleDataTree(D.vehicleInformation):null,[D.vehicleInformation]),H=[...s].every(e=>E.candidateSkusByAttributeValue.has(e)),j=H&&_&&!_.isEmpty?R?.facetValue??null:null,[w,L]=(0,a.useReducer)(f,{appliedVehicleKey:j,selection:A}),W=(0,a.useMemo)(()=>({catalog:E,fulfillment:{dealerId:t?.id,deliveryType:c},inventoryState:b?"loading":"ready",state:w,vehicleState:k?"loading":"ready"}),[t?.id,E,c,b,k,w]),O=(0,i.usePreviousDistinct)(C),$=u(W),U=(0,a.useMemo)(()=>v({catalog:E,configuration:q,input:W}),[W,E,q]),V=(0,a.useMemo)(()=>(({catalog:e,configuration:t,input:a,vehicleTree:i})=>{let r=v({catalog:e,configuration:t,input:a,controlConfigs:t.vehicleControlConfigs,showSingleOptionControls:!0}),n=o(a.state.selection,"model"),l=o(a.state.selection,"modelGeneration");return[...s].flatMap(e=>{let t=r.find(t=>t.attributeName===e);if(!t)return[];let a=(({attributeName:e,selectedGeneration:t,selectedModel:a,vehicleTree:i})=>{if("model"!==e&&i){if("modelGeneration"===e)return a?new Set(i.getGenerations(a)):void 0;if(a)return new Set(t?i.getDerivatives(a,t):i.getGenerations(a).flatMap(e=>i.getDerivatives(a,e)))}})({attributeName:e,selectedGeneration:l,selectedModel:n,vehicleTree:i}),o=!1;return"modelGeneration"===e?o=!n:"modelDerivative"===e&&(o=!n||!l),[{...t,attributeName:e,isDisabled:o,options:t.options.filter(e=>{let t="string"==typeof e.value?e.value:e.value[0];return!a||a.has(t)})}]})})({catalog:E,configuration:q,input:W,vehicleTree:_}),[W,E,q,_]);(0,a.useEffect)(()=>{O&&O!==C&&L({type:"routeSkuReplaced",isRouteSkuValid:!0,selection:A})},[A,O,C]),(0,a.useEffect)(()=>{w.appliedVehicleKey===j||L({type:"externalVehicleChanged",...(({input:e,vehicle:t,vehicleKey:a,vehicleTree:i})=>{let r=d({supportedAttributes:new Set(e.catalog.candidateSkusByAttributeValue.keys()),vehicle:t}),n=(({selection:e,vehicleSelection:t})=>new Map([...[...e].filter(([e])=>!l(e)),...t]))({selection:e.state.selection,vehicleSelection:r}),o=u({...e,state:{...e.state,selection:n}});return{externalSelectionConflict:t&&i&&!i.isEmpty&&!i.isCompatible(t.model.key,t.generation.key,t.derivative.key)||"noMatchingVariant"===o.kind?{source:"vehicle"}:void 0,selection:n,vehicleKey:a}})({input:W,vehicle:R,vehicleKey:j,vehicleTree:_})})},[W,j,R,w.appliedVehicleKey,_]);let B=(0,a.useCallback)((e,t)=>{let a=t?new Map([...e].filter(([e])=>E.identityGroup.includes(e))):e,i=h({catalog:E,input:W,selection:a});if("rejected"===i.kind)return void S?.({reason:i.reason});L({type:"selectionReplaced",selection:i.selection}),P?.();let r=I(i.status);t&&r&&y?.({sku:r})},[y,P,S,W,E]),M=(0,a.useCallback)((e,t)=>{let a=h({attributeName:e,catalog:E,input:W,resetFromAttributeName:e,value:t});if("rejected"===a.kind)return void S?.({reason:a.reason});L({type:"selectionReplaced",selection:a.selection}),P?.();let i=I(a.status);E.identityGroup.includes(e)&&i&&y?.({sku:i})},[y,P,S,W,E]),G=(0,a.useCallback)(e=>B(e,!0),[B]),F=(0,a.useCallback)((e,t)=>{let a=m({attributeName:e,catalog:E,input:W,value:t});if("rejected"===a.kind)return void S?.({reason:a.reason});L({type:"selectionReplaced",selection:a.selection}),P?.();let i=I(a.status);i&&y?.({sku:i})},[y,P,S,W,E]),z=(0,a.useCallback)(()=>{"incomplete"===$.kind&&L({type:"validationRequested"})},[$.kind]),K=(0,a.useMemo)(()=>w.validationRequested&&"incomplete"===$.kind?$.missingRequiredAttributes:new Set,[w.validationRequested,$]),Q=(0,a.useMemo)(()=>{let e;return w.validationRequested&&H&&_&&!_.isEmpty?(e=w.selection,s.difference(new Set(e.keys()))):new Set},[w.selection,w.validationRequested,H,_]),Y="incomplete"===$.kind?$.candidateSkus.has(C)?C:[...$.candidateSkus][0]:"resolvedPurchasable"===$.kind||"resolvedOutOfStock"===$.kind?$.resolvedSku:void 0,X=Y?E.variantBySku.get(Y):void 0;return"selectionInvalidatedExternally"===$.kind&&(X=E.variantBySku.get(C)),{state:w,actions:{chooseOption:M,chooseIdentityGroup:G,chooseVehicleOption:F,requestValidation:z},meta:{displayVariant:X,identityGroup:E.identityGroup,representativeSku:Y,missingRequiredAttributes:K,missingVehicleAttributes:Q,status:$,selectionControls:U,vehicleSelectionControls:V,vehicleTree:_}}})(c);return(0,t.jsx)(y.Provider,{value:P,children:e})},"useVariantSelection",0,()=>{let e=(0,a.use)(y);if(!e)throw Error("Variant selection components must be used within a VariantSelectionContextProvider");return e}],32746)},933948,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(883342),r=e.i(274845);let n=(0,a.forwardRef)(({aria:e,compact:n,description:o,direction:s="bottom",onDismiss:l,open:d,className:c,children:u,...h},m)=>{let p=(0,a.useRef)(void 0);(0,i.useEventCallback)(p,"dismiss",l);let g=(0,i.usePrefix)("p-popover"),v=[e,n,o,s,d];(0,i.useBrowserLayoutEffect)(()=>{let{current:e}=p;["aria","compact","description","direction","open"].forEach((t,a)=>e[t]=v[a])},v);let f={...h,...{children:u,suppressHydrationWarning:!0},"data-ssr":"",class:(0,i.useMergedClass)(p,c),ref:(0,r.syncRef)(p,m)};return(0,t.jsx)(g,{...f})});e.i(510193);var o=e.i(892628);e.i(778498);var s=e.i(456641),l=e.i(938417),d={default:"_6y4l101 _6y4l100",productTile:"_6y4l102 _6y4l100"},c=e.i(69406);e.s(["RankingInfo",0,({isProductTile:e=!1})=>{let{localeId:a,marketplaceId:i}=(0,c.useMarket)();return(0,t.jsxs)(s.Text,{as:"span",className:d[e?"productTile":"default"],"data-testid":"search-ranking-info",children:[e&&(0,t.jsx)(s.Text,{size:"x-small",color:"contrast-medium",className:"_6y4l103",children:(0,t.jsx)(o.T,{id:"search.legal.ranking.label"})}),(0,t.jsx)(n,{onClick:e=>{e.preventDefault()},children:(0,t.jsx)(o.T,{id:"search.legal.ranking.message",values:{b:e=>(0,t.jsx)("div",{children:(0,t.jsx)("b",{children:Array.isArray(e)?e[0]:e})},"ranking-info-chunk-b"),a:e=>{let r=Array.isArray(e)?e[0]:e,[n="",o=""]=("string"==typeof r||"number"==typeof r?String(r):"").split("::");return(0,t.jsx)(l.default,{href:`/${i}/${a}/${o}`,children:n},`ranking-info-${n}`)}}})})]})}],933948)},546028,130229,900382,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(618566),r=e.i(605976),n=e.i(636137),o=e.i(69406),s=e.i(843585),l=e.i(810664),d=e.i(653145);e.i(510193);var c=e.i(145025),u=e.i(369849),h=e.i(200759),m=e.i(561426),p=e.i(329138),g=e.i(706247),v=e.i(189455),f=e.i(712978);let T=({name:e,label:a,value:i,disabled:r=!1,filter:n=!1,state:o="none",className:s,onChange:l,children:d,...c})=>{let u=s?`${f.root} ${s}`:f.root;return(0,t.jsx)("div",{className:u,"data-slot":"select-field",children:(0,t.jsx)(v.PSelect,{name:e,value:i,onChange:l,filter:n,label:a,disabled:r,state:o,...c,children:d})})};T.displayName="SelectField";let y=Object.assign(T,{Option:m.SelectFieldOption,OptionGroup:p.SelectFieldOptionGroup,Placeholder:g.SelectFieldPlaceholder,Error:h.SelectFieldError}),I=e=>(0,t.jsx)(y.Option,{value:e.value,label:e.label,image:e.image,disabled:e.isDisabled,isSoldOut:e.isSoldOut,"data-testid":`option-${e.value}`},e.value),P=({name:e,testId:a,label:i,value:r,onUpdate:n,disabled:o,hasError:s=!1,errorMessage:l,errorTestId:d,placeholder:u,options:h,testIsDisabled:m,filter:p,className:g})=>{let v=(0,c.useTranslations)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(y,{name:e,"data-testid":a,"data-test-isdisabled":m,label:i,value:r,onChange:n,disabled:o,state:s?"error":"none",filter:p,className:g,children:[(0,t.jsx)(y.Placeholder,{children:u}),h&&((e,a)=>{if(!e.some(e=>void 0!==e.group))return e.map(I);let i=[],r=new Map;
2305return e.forEach(e=>{let t=e.group??"__ungrouped__";r.has(t)||(i.push(t),r.set(t,{group:e.group??"__ungrouped__",options:[]})),r.get(t).options.push(e)}),i.flatMap(e=>{let{group:i,options:n}=r.get(e),o=a(i);return o?(0,t.jsx)(y.OptionGroup,{label:o,children:n.map(I)},e):n.map(I)})})(h,e=>{if("standard"!==e&&"__ungrouped__"!==e)return v(`search.refinement.models.group.${e}`)})]}),s&&l&&d&&(0,t.jsx)(y.Error,{"data-testid":d,children:l})]})};e.s(["VehicleDropdown",0,P],130229);let S=({onChange:e,options:a,name:i})=>{let r=(0,c.useTranslations)(),{control:n}=(0,d.useFormContext)();return(0,t.jsx)(d.Controller,{control:n,name:i,render:({field:n})=>(0,t.jsx)(P,{name:i,testId:`select-wrapper-${i}`,label:r(`search.refinement.attribute.hierarchicalVehicleData.${i}`),value:n.value,onUpdate:t=>{let a=t.detail.value;n.onChange(a),e(t)},disabled:0===a.length,placeholder:r("search.select.placeholder"),filter:!0,className:u.selectWrapper,options:a})})};e.s(["ModelBrowserFilter",0,()=>{let{localeId:e,marketplaceId:d}=(0,o.useMarket)(),{trackClickFiltersEvent:c}=(0,n.useAnalytics)(),u=(0,i.useRouter)(),{form:{handlers:{updateFormState:h,resetTouched:m},state:{anyTouched:p}},filter:{results:{models:g,generations:v,derivatives:f}}}=(0,s.useModelBrowserFilter)(),{state:{selectedModel:T,isFlyoutOpen:y},handlers:{onUpdateVehicleSelection:I,onCloseFlyout:P}}=(0,l.useVehicleSelection)(),x=(0,a.useMemo)(()=>g.selected&&v.selected&&f.selected?{model:{name:g.selected.label,key:g.selected.id},generation:{name:v.selected.label,key:v.selected.id},derivative:{name:f.selected.label,key:f.selected.id},facetValue:f.selected.value}:null,[g.selected,v.selected,f.selected]);(0,a.useEffect)(()=>{y&&x&&p&&(I(x,"manual"),m(),P())},[y,x,e,p,d,P,u,I,m]),(0,a.useEffect)(()=>{if(T?.name&&!p){let e=g.options.find(({value:e})=>e.startsWith(T.name));g.selected?.value!==e?.value&&(h("model",e?.value??""),h("generation","",{shouldTouch:!1,shouldDirty:!1}),h("derivative","",{shouldTouch:!1,shouldDirty:!1}))}},[T,y,g.options,g.selected?.value,h,p]);let b=(0,a.useCallback)(e=>{let{value:t,name:a}=e.detail;if(null==t)return;let i=t.toString();h(a,i,{shouldTouch:!0,shouldDirty:!0}),c({filters:[{name:r.ALGOLIA_FACET_MODEL,values:[{value:i,label:i}]}]})},[h,c]);return(0,t.jsx)(t.Fragment,{children:[g,v,f].map(({facetAttribute:e,options:a,fieldName:i})=>(0,t.jsx)(S,{onChange:b,options:a,name:i},e))})}],546028);var x=e.i(114727),b=e.i(221453);e.s(["ModelBrowserProduct",0,()=>{let{data:e,showError:i,vehicleCompatibility:{vehicleTree:r,compatibleVehicles:n,onChange:s,isTouched:d,resetTouched:h}}=(0,x.usePdp)(),{localeId:m}=(0,o.useMarket)(),p=(0,c.useTranslations)(),{handlers:{onUpdateVehicleSelection:g,onCloseFlyout:v},state:{selection:f}}=(0,l.useVehicleSelection)(),T=n?.models.selected??"",y=n?.generations.selected??"",I=n?.derivatives.selected??"",S=r?.getModel(T),k=r?.getGeneration(T,y),D=r?.getDerivative(T,y,I);(0,a.useEffect)(()=>{if(d&&D&&S&&k){let e={key:S.modelKey,name:S.translations[m]??S.modelKey},t={key:k.key,name:k.translations[m]??k.key},a={key:D.key,name:D.translations[m]??D.key},i=(0,b.deriveFacetValue)(e,t,a);f?.facetValue!==i&&(g({model:{name:S.translations[m]??S.modelKey,key:S.modelKey},generation:{name:k.translations[m]??k.key,key:k.key},derivative:{name:D.translations[m]??D.key,key:D.key},facetValue:i},"manual"),h(),v?.())}},[d,h,v,m,D,k,S,g,f]);let C=e=>{let{detail:{name:t,value:a}}=e;null!=a&&s(t,a.toString())};return e&&n?(0,t.jsx)("div",{"data-testid":"model-and-derivative-selector",className:u.wrapper,children:[n.models,n.generations,n.derivatives].map(e=>(0,t.jsx)(P,{name:e.fieldName,testId:`control-container-${e.attributeName}-dropdown`,label:p(`search.refinement.attribute.hierarchicalVehicleData.${e.fieldName}`),value:e.selected??void 0,onUpdate:C,disabled:e.isDisabled,hasError:i&&null===e.selected,errorMessage:p("vehicle.selection.errors.variantSelection",{attribute:e.attributeLabel}),errorTestId:`mission-control-attribute-${e.attributeName}-error`,placeholder:p("search.select.placeholder"),options:e.options.map(e=>({value:e.value,label:e.label,image:e.image,isDisabled:e.isDisabled}))},e.fieldName))}):null}],900382)},660942,300193,e=>{"use strict";var t=e.i(843476),a=e.i(657688),i=e.i(883658);e.i(510193);var r=e.i(145025);e.i(529131);var n=e.i(342893);e.i(282616);var o=e.i(332587);e.i(778498);
2305var s=e.i(456641),l=e.i(938417),d=e.i(125791),c=(0,d.createRuntimeFn)({defaultClassName:"_14f5xy93 _14f5xy91",variantClassNames:{image:{true:"_14f5xy94",false:"_14f5xy95"},background:{none:"_14f5xy96",surface:"_14f5xy97 _14f5xy92"},hasLink:{true:"_14f5xy98"}},defaultVariants:{},compoundVariants:[[{background:"none",hasLink:!0},"_14f5xy99"],[{background:"surface",hasLink:!0},"_14f5xy9a"]]}),u=(0,d.createRuntimeFn)({defaultClassName:"_14f5xy9f _14f5xy91",variantClassNames:{background:{none:"_14f5xy9g",surface:"_14f5xy9h _14f5xy92"}},defaultVariants:{},compoundVariants:[]}),h={default:"_14f5xy9o _14f5xy9n",warning:"_14f5xy9p _14f5xy9n"},m="_14f5xy9r",p="125px",g="_14f5xy9s",v={default:"_14f5xy9u _14f5xy9t",warning:"_14f5xy9v _14f5xy9t"};e.s(["VehicleCompatibilityBanner",0,({vehicleSelection:e,action:d,href:u,background:f="none",variant:T,className:y,incompatible:I,actionButtonRef:P})=>{let S,x,b=(0,r.useTranslations)(),k=e?.derivative.name,D=!0,C="edit";switch(T){case"filter-listings":k?(S=k,x=b("vehicle.selection.current.description.filter")):(S=b("vehicle.selection.current.title.compatibility"),x=b("vehicle.selection.current.noSelection.description.filter"));break;case"check-variant-selection-pdp":case"check-variant-selection":k?(S=b(I?"vehicle.selection.current.state.incompatible":"vehicle.selection.current.state.compatible"),x=k):"check-variant-selection-pdp"===T?(D=!1,C="plus",S=b("vehicle.selection.current.title.compatibility"),x=b("vehicle.selection.current.noSelection.description.productVariantCheck")):(S=b("vehicle.selection.current.title.compatibility"),x=b("vehicle.selection.current.noSelection.description.filter"));break;case"link-to-listings":if(!k)return console.error('incompatible state: VehicleCompatibilityBanner in variant "link-to-listings" can only be rendered with a vehicle passed to it'),null;S=k,x=b("vehicle.selection.current.noSelection.description.filter");break;default:return console.error(`incompatible variant ${T} provided to VehicleCompatibilityBanner`),null}let R={type:"button",onClick:e=>{e.stopPropagation(),d.onClick()},"data-testid":e?"vehicle-item-action-button-change":"vehicle-item-add-button-pick",children:b(e?"vehicle.selection.current.actions.change":"vehicle.selection.title")},q=u?l.default:"div";return(0,t.jsxs)(q,{href:u,className:[c({background:f,hasLink:!!u,image:D}),y].join(" "),"data-testid":"vehicle-compatibility-banner",children:[D&&(0,t.jsxs)("div",{className:g,children:[(0,t.jsx)(a.default,{className:v[I?"warning":"default"],src:e?.image??"/models/new/default.png",fill:!0,alt:e?.image?`${e.model.name} ${e.generation.name} ${e.derivative.name}`:k??"",loading:"lazy",sizes:p}),I&&(0,t.jsx)(o.Icon,{name:"warning-filled",size:"small",color:"error",className:"_14f5xy9w"})]}),(0,t.jsx)(n.Heading,{className:h[I?"warning":"default"],children:S}),(0,t.jsx)(s.Text,{className:m,size:"small",as:"p",color:I?"error":"contrast-medium",children:x}),!u&&d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.PButton,{...R,ref:P,variant:e?"secondary":"primary",className:"_14f5xy9j _14f5xy9i",icon:e?"edit":"car",aria:{"aria-haspopup":"dialog"}}),(0,t.jsx)(i.PButton,{...R,compact:!0,hideLabel:!0,variant:"secondary",className:"_14f5xy9k _14f5xy9i",icon:C})]}),u&&(0,t.jsx)(o.Icon,{name:"arrow-right",size:"medium",color:"contrast-high",className:"_14f5xy9m _14f5xy9i"})]})}],660942),e.s(["VehicleCompatibilityBannerSkeleton",0,({className:e,"data-testid":a="vehicle-compatibility-banner-skeleton",...i})=>(0,t.jsxs)("div",{className:[e,u({background:"none"})].filter(Boolean).join(" "),"data-testid":a,...i,children:[(0,t.jsx)("div",{className:g}),(0,t.jsx)("div",{className:"_14f5xy9q _14f5xy9n",children:" "}),(0,t.jsxs)("div",{className:m,children:[" ",(0,t.jsx)("br",{})," "]}),(0,t.jsx)("div",{className:"_14f5xy9l _14f5xy9i",children:" "})]})],300193)},737670,355207,659189,933028,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(548),r=e.i(300085),n=e.i(446218);e.i(510193);var o=e.i(145025),s=e.i(605976),l=e.i(729650),d=e.i(477409),c=e.i(810664),u=e.i(105119),h=e.i(213371),m=e.i(257307);let p=()=>(0,t.jsx)("div",{className:m.skeleton});var g=e.i(287781),v=e.i(69406),f=e.i(764081);let T=({position:e,hit:a,imageSizes:i})=>{let{localeId:r,marketplaceId:n}=(0,v.useMarket)(),{currentDealer:o}=(0,g.useDealer)(),s=`/${n}/${r}/p/${a.slug}/${encodeURIComponent(a.sku)}`;return(0,t.jsx)(f.ProductTile,{variants:a.variants??[],index:e,titleTag:"h3",queryID:a.__queryID,dealerId:o?.id??void 0,imageSizes:i,productData:{href:s,dataId:"search-tile",uId:a.objectID,netPriceValue:a.netPriceValue??a.grossPriceValue,grossPriceValue:a.grossPriceValue,grossPriceDiscountedValue:a.grossPriceDiscountedValue,basePrice:a.basePrice,energyGrade:a.energyGrade,energyLabel:a.energyLabel,name:a.name,slug:a.slug,colors:a.color,sku:a.sku,key:a.baseProduct,labels:a.labels,images:a.images,allVariantsOutOfStock:a.allVariantsOutOfStock,hasStock:a.isInStock,stock:a.stock??[],isComingSoon:a.isComingSoon,isPCAExclusive:a.isPCAExclusive,brand:a.brand??"",facetBranch:a.facetBranch??"",type:a.categories[0]?.name??"",isPromoted:(a?._rankingInfo?.promoted&&!a?._rankingInfo?.promotedByReRanking)??!1}})};e.s(["SearchHit",0,T],355207),e.s(["VehicleRecommendationsSlider",0,({category:e,className:m})=>{let{state:{selection:g,isLoading:v}}=(0,c.useVehicleSelection)(),{items:f}=(0,r.useHits)(void 0,{skipSuspense:!0}),y=(0,o.useTranslations)(),{consents:I}=(0,l.useConsent)(),P=(0,u.useUserToken)(),{history:{skus:S}}=(0,d.useUser)(),x=(0,a.useMemo)(()=>0===(S??[]).length?"":"AND ".concat((S??[]).map(e=>`NOT objectID:${e}`).join(" AND ")),[S]),b=g?.facetValue.split(" > ")[0],k=g?.facetValue.split(" > ").slice(0,2).join(" > "),D=(0,a.useMemo)(()=>`categories.key:"${e.key}" AND ${s.ALGOLIA_FACET_HIERARCHICAL_CATEGORIES}.lvl0:"${e.name}"${x} AND ${s.ALGOLIA_FACET_MODEL}: "${b}" AND ${s.ALGOLIA_FACET_DERIVATIVE}:"${g?.facetValue}" AND ${s.ALGOLIA_FACET_GENERATION}: "${k}"`,[e.name,e.key,k,b,x,g?.facetValue]);return(0,i.useConfigure)({hitsPerPage:8,filters:D,analytics:I.algolia,clickAnalytics:I.algolia,enablePersonalization:I.algolia,userToken:I.algolia?P??"guest-token":"guest-token",enableRules:!0,getRankingInfo:!0}),(0,t.jsx)(n.PCarousel,{width:"extended",intl:{prev:y("product.slider.btn.prev"),next:y("product.slider.btn.next")},rewind:!1,slidesPerPage:{base:2,s:3,m:4},className:m,children:v?Array.from({length:4}).map((e,a)=>(0,t.jsx)(p,{},`vehicle-algolia-slider-skeleton-${a}`)):f.map((e,a)=>(0,t.jsx)(T,{imageSizes:h.PRODUCT_TILE_IMAGE_SIZES,position:a,hit:e},`vehicle-algolia-slider-${e.sku}`))})}],737670);
2305var y=e.i(356476),I=(0,e.i(125791).createRuntimeFn)({defaultClassName:"_1uxkc1a1 _1uxkc1a0",variantClassNames:{size:{small:"_1uxkc1a2",medium:"_1uxkc1a3",large:"_1uxkc1a4"},loading:{true:"_1uxkc1a5"}},defaultVariants:{size:"medium"},compoundVariants:[]}),P={small:"_1uxkc1a7 _1uxkc1a6",medium:"_1uxkc1a8 _1uxkc1a6",large:"_1uxkc1a9 _1uxkc1a6"},S=e.i(657688);let x=({fallbackImage:e,...i})=>{let{src:r}=i,[n,o]=(0,a.useState)(r);return(0,a.useEffect)(()=>{o(r)},[r]),(0,t.jsx)(S.default,{...i,src:n,onLoad:t=>{0===t.target.naturalWidth&&o(e)},onError:()=>{o(e)}})};e.i(778498);var b=e.i(456641);let k=(0,a.forwardRef)(({size:e="medium",label:a,imageSrc:i,fallbackImageSrc:r="",imageAlt:n,imageWidth:o=336,imageHeight:s=159,loading:l=!1,disabled:d=!1,className:c,imageProps:u,...h},m)=>{let p=d||l;return(0,t.jsxs)("button",{ref:m,type:"button",disabled:p,className:[I({size:e,loading:l}),c].filter(Boolean).join(" "),"aria-busy":l,...h,children:[(0,t.jsx)("span",{className:P[e],children:(0,t.jsx)(x,{className:"_1uxkc1aa",alt:n,width:o,height:s,fallbackImage:r,src:i,...u})}),(0,t.jsx)(b.Text,{color:"contrast-high",children:a}),l&&(0,t.jsx)("span",{className:"_1uxkc1ab","data-testid":"loading-overlay",children:(0,t.jsx)(y.PSpinner,{"aria-label":"Loading"})})]})});k.displayName="ImageButtonTile",e.s(["ImageButtonTile",0,k],659189),e.s(["button",0,"_1tz8k8e4","buttonInner",0,"_1tz8k8e5","buttons",0,"_1tz8k8e3","header",0,"_1tz8k8e1","headline",0,"_1tz8k8e2","inner",0,"_1tz8k8e0","selectorGrid",0,"_1tz8k8e6"],933028)},102517,e=>{"use strict";var t=e.i(843476),a=e.i(883658);e.i(510193);var i=e.i(892628);e.i(529131);var r=e.i(342893),n=e.i(659189);e.i(778498);var o=e.i(456641),s=e.i(901089),l=e.i(933028),d=e.i(605976),c=e.i(729650),u=e.i(810664),h=e.i(660942),m=e.i(300193);e.s(["VehicleSearchFilterSelect",0,({variant:e,className:p,vehicleSelectionCookie:g})=>{let{isLoading:v}=(0,c.useConsent)(),f=(0,s.useIsMounted)(),{handlers:{onModelClick:T,onRegisterReturnFocusElement:y},state:{selection:I,isLoading:P}}=(0,u.useVehicleSelection)(),S=I??(g&&!f?JSON.parse(g):null);return P||v?(0,t.jsx)(m.VehicleCompatibilityBannerSkeleton,{className:p}):S||"banner"===e?(0,t.jsx)(h.VehicleCompatibilityBanner,{className:p,variant:"filter-listings","data-testid":"vehicle-teaser-grid-link-tile",background:"surface",vehicleSelection:S??void 0,actionButtonRef:y,action:{onClick:()=>T(null,S?.type??"manual")}}):"grid"===e&&(0,t.jsxs)("div",{ref:y,tabIndex:-1,className:[l.inner,p].filter(Boolean).join(" "),"data-testid":"vehicle-model-selector",children:[(0,t.jsx)("div",{className:l.header,children:(0,t.jsxs)("hgroup",{children:[(0,t.jsx)(r.Heading,{as:"p",size:"medium",className:l.headline,children:(0,t.jsx)(i.T,{id:"vehicle.search.title"})}),(0,t.jsx)(o.Text,{as:"p",color:"contrast-high",children:(0,t.jsx)(i.T,{id:"vehicle.search.description"})})]})}),(0,t.jsxs)("div",{role:"group",className:l.buttons,children:[(0,t.jsx)(a.PButton,{type:"button",variant:"secondary",onClick:()=>T(null,"vin"),className:l.button,"data-testid":"vehicle-model-selector-button-vin",aria:{"aria-haspopup":"dialog"},children:(0,t.jsx)("span",{className:l.buttonInner,children:(0,t.jsx)(i.T,{id:"vehicle.search.actions.open.vinSearch"})})}),(0,t.jsx)(a.PButton,{type:"button",variant:"secondary",onClick:()=>T(null,"user-vehicle"),className:l.button,"data-testid":"vehicle-model-selector-button-my-vehicle",aria:{"aria-haspopup":"dialog"},children:(0,t.jsx)("span",{className:l.buttonInner,children:(0,t.jsx)(i.T,{id:"vehicle.search.actions.open.userVehicles"})})})]}),(0,t.jsx)("div",{className:l.selectorGrid,children:d.SUPPORTED_SELECTABLE_MODELS_V2.map(e=>(0,t.jsx)(n.ImageButtonTile,{size:"medium",label:e.name,imageSrc:`/models/new/${e.key??"default"}.png`,fallbackImageSrc:"/models/new/default.png",imageAlt:`preview picture of a porsche ${e.name}`,"aria-label":`Open vehicle selection for ${e.name}`,onClick:()=>T(e,"manual"),"data-testid":`vehicle-model-selector-${e.name}`},e.name))})]})}])},56329,221453,843585,692959,369849,712978,200759,e=>{"use strict";var t="_1sajomj2",a="_1sajomj3";e.s(["currentSelectionHead",0,t,"currentSelectionSection",0,a,"root",0,"_1sajomj0","submit",0,"_1sajomj1"],56329);
2305var i=e.i(843476),r=e.i(271645),n=e.i(653145),o=e.i(736797),s=e.i(605976),l=e.i(69406),d=s;let c=e=>{let[t,a]=e.split("||");if(!t||!a)throw Error(`Invalid facet label: ${e}`);return{facetLabel:`${t}||${a}`,label:t,id:a}},u=e=>{if(!((e,t=d.VEHICLE_DATA_ATTRIBUTES.length-1)=>RegExp(`^(?:[^|>]+?\\|\\|[^|>]+)(?: > [^|>]+?\\|\\|[^|>]+){0,${t}}$`).test(e))(e))throw Error(`Invalid facet value: ${e}`);return e},h=e=>{u(e);let t=e.split(" > ");if(0===t.length||t.length>3)throw Error(`Unexpected facet depth: ${e}`);let[a,i,r]=t,n={};if(a){let{id:e,label:t}=c(a);n.model={id:e,label:t}}if(i){let{id:e,label:t}=c(i);n.generation={id:e,label:t}}if(r){let{id:e,label:t}=c(r);n.derivative={id:e,label:t}}return n};e.s(["deriveFacetValue",0,(e,t,a)=>`${e.name}||${e.key} > ${t.name}||${t.key} > ${a.name}||${a.key}`,"parseFacetLabel",0,c,"parseFacetValue",0,h,"validateFacetValue",0,u],221453);var m=e.i(825590),p=e.i(266027);let g=(e,t,a)=>{try{let{id:t,label:i}=c(e.label),r=u(e.value),{model:n,generation:o,derivative:s}=h(r),l=(0,m.deriveImagePathsV2)(n?.id,o?.id,s?.id).localPathImgCar,d={value:r,label:i,image:l,id:t};return a&&(d.group=a),d}catch(e){return console.error(e),null}},v=(e,t,a)=>{let i,r=t===s.ALGOLIA_FACET_MODEL,n=e.map(e=>{let a;if(r)try{let{id:t}=c(e.label);a=s.SORTED_MODEL_ORDER.includes(t)?"standard":"classic"}catch{a="classic"}return g(e,t,a)}).filter(o.isNotNullOrUndefined),l=e.find(({value:e})=>e===a);if(r&&l)try{let{id:e}=c(l.label);i=s.SORTED_MODEL_ORDER.includes(e)?"standard":"classic"}catch{i="classic"}return{selectedItem:l?g(l,t,i):null,allItems:n}};var f=e.i(810664);let T=(0,r.createContext)(void 0),y=()=>{let{setValue:e,reset:t,formState:{touchedFields:a}}=(0,n.useFormContext)(),i=(0,r.use)(T);if(void 0===i)throw Error("`useModelBrowserFilter` must be within a `ModelBrowserFilterContextProvider`");let o=(0,r.useCallback)(()=>{t(void 0,{keepValues:!0,keepDirty:!1,keepTouched:!1})},[t]);return{form:{handlers:{updateFormState:e,resetForm:(0,r.useCallback)(()=>{t({model:"",generation:"",derivative:""},{keepDefaultValues:!1,keepValues:!1})},[t]),resetTouched:o},state:{anyTouched:(a.model??!1)||(a.generation??!1)||(a.derivative??!1)}},filter:i}};e.s(["ModelBrowserFilterContextProvider",0,({children:e})=>{let{state:{selection:t}}=(0,f.useVehicleSelection)(),a=t?.facetValue?h(t?.facetValue):null,o=(0,n.useForm)({defaultValues:(()=>{let e="",t="",i="";if(a?.model&&a?.generation&&a?.derivative){let{model:r,generation:n,derivative:o}=a;e=`${r.label}||${r.id}`,t=`${e} > ${n.label}||${n.id}`,i=`${t} > ${o.label}||${o.id}`}return{model:e,generation:t,derivative:i}})(),mode:"onChange"}),d=((e,t,a)=>{let{localeId:i,marketplaceId:n}=(0,l.useMarket)(),{data:o}=(({country:e,locale:t})=>(0,p.useQuery)({queryKey:[e,t,"facets-vehicle"],queryFn:async()=>{try{let a=await fetch(`/api/algolia/${e}/${t}/facets-vehicle`);if(200===a.status)return await a.json()}catch(e){console.error("Cannot fetch algolia facets vehicle!",e)}return[]}}))({locale:i,country:n}),d=(0,r.useMemo)(()=>o?[...o].sort((e,t)=>{let a,i;try{a=c(e.label).id,i=c(t.label).id}catch{return 0}let r=s.SORTED_MODEL_ORDER.indexOf(a),n=s.SORTED_MODEL_ORDER.indexOf(i),o=-1!==r,l=-1!==n;return o&&l?r-n:o?-1:l?1:e.label.localeCompare(t.label)}):[],[o]),u=v(d,s.ALGOLIA_FACET_MODEL,e),h=d?.find(t=>t.value===e)?.data??[],m=v(h,s.ALGOLIA_FACET_GENERATION,t),g=v(h.find(e=>e.value===t)?.data??[],s.ALGOLIA_FACET_DERIVATIVE,a);return{results:{models:{facetAttribute:s.ALGOLIA_FACET_MODEL,fieldName:"model",options:u.allItems,selected:u.selectedItem},generations:{fieldName:"generation",facetAttribute:s.ALGOLIA_FACET_GENERATION,options:m.allItems,selected:m.selectedItem},derivatives:{fieldName:"derivative",facetAttribute:s.ALGOLIA_FACET_DERIVATIVE,options:g.allItems,selected:g.selectedItem}}}})(o.watch("model"),o.watch("generation"),o.watch("derivative"));return(0,i.jsx)(T,{value:d,children:(0,i.jsx)(n.FormProvider,{...o,children:e})})},"useModelBrowserFilter",0,y],843585);var I=e.i(871718);e.i(510193);var P=e.i(892628);e.i(778498);var S=e.i(456641),x=e.i(657688),b=e.i(959411),k=e.i(145025);e.i(282616);var D=e.i(332587),C={default:"_1jh6lgb5 _1jh6lgb4",warning:"_1jh6lgb6 _1jh6lgb4"};let R=e=>{let t,{variant:a,vehicleName:r,vehicleImage:n,onDismiss:o,...s}=e,l=(0,k.useTranslations)();switch(a){case"vin":t=e.vin;break;case"user-vehicle":t=l("vehicle.selection.userVehicles.heading.subheadline");break;case"manual":t=l("vehicle.selection.type.manual");break;case"compatible":t=l("vehicle.selection.current.state.compatible");break;case"incompatible":t=l("vehicle.selection.current.state.incompatible");break;default:console.warn(`VehicleSelectionTagDismissible: Unknown variant ${a}, rendering without supLine`),t=null}let d="incompatible"===a;return(0,i.jsxs)("button",{type:"button",onClick:o,className:"_1jh6lgb0",...s,children:[(0,i.jsx)(b.VisuallyHidden,{children:"Remove:"}),(0,i.jsxs)("div",{className:"_1jh6lgb3",children:[(0,i.jsx)(x.default,{className:C[d?"warning":"default"],src:n?.src??"/models/new/default.png",fill:!0,alt:n?.alt??r,loading:"lazy",sizes:"100px"}),d&&(0,i.jsx)(D.Icon,{name:"warning-filled",size:"small",color:"error",className:"_1jh6lgb7"})]}),(0,i.jsx)(S.Text,{color:d?"error":"contrast-medium",as:"div",size:"x-small",className:"_1jh6lgb2",children:t}),(0,i.jsx)(S.Text,{color:d?"error":"primary",as:"div",size:"small",weight:"semi-bold",className:"_1jh6lgb1",children:r}),(0,i.jsx)(D.Icon,{name:"close",className:"_1jh6lgb8","aria-hidden":!0})]})};e.s(["VehicleSelectionFlyoutActiveSelection",0,()=>{let{state:{selection:e},handlers:{onCloseFlyout:n,onClearVehicleSelection:o}}=(0,f.useVehicleSelection)(),{form:{handlers:{resetForm:s}}}=y(),l=(0,r.useCallback)(()=>{o(),s(),n()},[o,n,s]);return e?.derivative.name?(0,i.jsxs)("div",{className:a,children:[(0,i.jsxs)("div",{className:t,children:[(0,i.jsx)(S.Text,{size:"small",weight:"semi-bold",children:(0,i.jsx)(P.T,{id:"vehicle.selection.current.title.generic"})}),(0,i.jsx)(I.PButtonPure,{type:"button",icon:"none",underline:!0,onClick:l,size:"x-small",children:(0,i.jsx)(P.T,{id:"vehicle.selection.current.actions.clear"})})]}),"vin"===e.type&&e.vin?(0,i.jsx)(R,{variant:"vin",vin:e.vin,vehicleName:e.derivative.name,vehicleImage:e.image?{src:e.image,alt:e.derivative.name}:void 0,onDismiss:l}):(0,i.jsx)(R,{variant:"vin"===e.type?"manual":e.type,vehicleName:e.derivative.name,vehicleImage:e.image?{src:e.image,alt:e.derivative.name}:void 0,onDismiss:l})]}):null}],692959),e.s(["selectWrapper",0,"gxmusd2","wrapper",0,"gxmusd1"],369849);var q="_1eg4zx84",E="_1eg4zx85";e.s(["errorIcon",0,E,"errorMessage",0,q,"optionAvailability",0,{selectable:"_1eg4zx82",soldOut:"_1eg4zx83"},"optionImage",0,"_1eg4zx81","root",0,"_1eg4zx80"],712978);let N=({children:e,className:t,...a})=>{let r=t?`${q} ${t}`:q;return(0,i.jsxs)("div",{className:r,"aria-live":"polite","data-slot":"select-field-error",...a,children:[(0,i.jsx)(D.Icon,{name:"exclamation",color:"error",className:E}),e]})};N.displayName="SelectField.Error",e.s(["SelectFieldError",0,N],200759)},638232,e=>{"use strict";var t=e.i(843476),a=e.i(883658);e.i(510193);var i=e.i(892628),r=e.i(793829);e.i(529131);var n=e.i(342893),o=e.i(18292),s=e.i(56329),l=e.i(843585),d=e.i(810664),c=e.i(692959),u=e.i(373016),h=e.i(85119);e.i(778498);var m=e.i(456641),p=e.i(315606),g=e.i(153803),v=e.i(145025),f=e.i(267568),T=e.i(701868),y=e.i(271645),I=e.i(653145),P=e.i(994814),S=e.i(69406),x=e.i(715344),b=e.i(236551),k=e.i(492334),D=e.i(681307);let C=D.z.object({vin:D.z.string().min(1,"required").regex(/^[A-HJ-NPR-Z0-9]{17}$/i,"invalid-format")}),R=()=>{let e=(0,v.useTranslations)(),{errors:i,isLoading:r,onSubmit:n,register:o,searchResult:s,apiError:l,clearApiError:c}=(()=>{let{marketplaceId:e,localeId:t}=(0,S.useMarket)(),[a,i]=(0,y.useState)(),[r,n]=(0,y.useState)(null),{state:{selection:o}}=(0,d.useVehicleSelection)(),{register:s,handleSubmit:l,formState:{errors:c,isLoading:u}}=(0,I.useForm)({mode:"onSubmit",resolver:(0,P.zodResolver)(C)}),{mutate:h,isSuccess:m,reset:p,data:g,isPending:v,isError:f,error:T}=(0,x.useVehicleDataVin)({country:e,locale:t});return(0,y.useEffect)(()=>{f&&T&&(T instanceof k.VehicleNetworkError?n("network"):T instanceof b.VehicleApiError?n("api"):n("network"))},[f,T]),(0,y.useEffect)(()=>{m&&(p(),g?.model?.key&&g?.derivative?.key&&g?.generation?.key?i(g):n("vehicle-not-found"))},[g,m,p]),(0,y.useEffect)(()=>
2305{if(o?.type==="vin"){let{type:e,...t}=o;i(t)}},[o]),{register:s,onSubmit:l(e=>{e?.vin&&(n(null),i(null),h({vin:e.vin}))}),errors:c,isLoading:u||v,searchResult:a,apiError:r,clearApiError:()=>{n(null)}}})(),u=!!i.vin,h=!!l;return s?(0,t.jsx)(T.VehicleList,{vehicles:[s],view:"vin"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("form",{onSubmit:n,noValidate:!0,className:f.form,"data-testid":"vehicle-search-form",children:[(0,t.jsx)(m.Text,{as:"p","data-testid":"vehicle-search-headline",children:e("vehicle.selection.vinSearch.description")}),(0,t.jsx)(g.PInputSearch,{state:u||h?"error":"none",message:(()=>{if(u)return e(i.vin?.message==="required"?"vehicle.selection.vinSearch.input.error.required":"vehicle.selection.vinSearch.input.error.invalid-vin");if(h){let t=(e=>{switch(e){case"invalid-vin":return"vehicle.selection.vinSearch.input.error.invalid-vin";case"vehicle-not-found":return"vehicle.selection.vinSearch.input.error.vehicle-not-found";case"network":return"vehicle.selection.vinSearch.input.error.network";case"api":return"vehicle.selection.vinSearch.input.error.api";default:return}})(l);return t?e(t):void 0}})(),label:e("vehicle.selection.vinSearch.input.label"),"data-cs-mask":!0,"data-testid":"vehicle-search-input",placeholder:e("vehicle.selection.vinSearch.input.placeholder"),onInput:c,...o("vin")}),(0,t.jsx)(a.PButton,{icon:"car",type:"submit","data-testid":"vehicle-action-button",variant:"secondary",loading:r,className:f.button,children:e("vehicle.selection.vinSearch.submit")})]}),(0,t.jsx)(m.Text,{as:"p",color:"contrast-medium","data-testid":"vin-search-input-info",children:e("vehicle.selection.vinSearch.info")})]})},q=({isAccordionOpen:e,onToggleAccordion:a})=>(0,t.jsx)(p.Accordion,{size:"small","data-testid":"accordion-vin",heading:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.T,{id:"vehicle.selection.vinSearch.title.base"})," ",(0,t.jsx)(m.Text,{color:"contrast-medium",children:(0,t.jsx)(i.T,{id:"vehicle.selection.vinSearch.title.additional"})})]}),open:e,onUpdate:a,children:(0,t.jsx)(R,{})});e.s(["VehicleSelectionFlyout",0,({variant:e})=>{let{state:{selection:m,activeAccordion:p,isFlyoutOpen:g},handlers:{onCloseFlyout:v,onChangeActiveAccordion:f,onFlyoutMotionHiddenEnd:T}}=(0,d.useVehicleSelection)(),y=e=>{let t=e.target;if(e.target&&t.localName===`${o.PDS_PREFIX}-p-accordion`){let e=t.dataset?.testid?.replace("accordion-","")??null;f(p!==e?e:null)}};return(0,t.jsxs)(r.GlobalFlyout,{open:g,onDismiss:v,onMotionHiddenEnd:T,aria:{"aria-label":"Sticky Heading"},className:s.root,footerBehavior:"fixed","data-testid":"vehicle-selection-flyout",children:[(0,t.jsx)(n.Heading,{as:"p",size:"medium",slot:"header",children:(0,t.jsx)(i.T,{id:"vehicle.selection.title"})}),(0,t.jsxs)(l.ModelBrowserFilterContextProvider,{children:[(0,t.jsx)(c.VehicleSelectionFlyoutActiveSelection,{}),(0,t.jsx)(u.VehicleSelectionFlyoutModelBrowser,{isAccordionOpen:"manual"===p,onToggleAccordion:y,variant:e})]}),(0,t.jsx)(h.VehicleSelectionFlyoutUserVehicles,{isAccordionOpen:"user-vehicle"===p,onToggleAccordion:y}),(0,t.jsx)(q,{isAccordionOpen:"vin"===p,onToggleAccordion:y}),(0,t.jsx)("div",{slot:"footer",children:(0,t.jsx)(a.PButton,{className:s.submit,type:"button",onClick:v,"data-testid":"vehicle-model-selector-submit-button",children:m?(0,t.jsx)(i.T,{id:"vehicle.filter.actions.confirm"}):(0,t.jsx)(i.T,{id:"vehicle.filter.actions.cancel"})})})]})}],638232)},373016,701868,85119,267568,e=>{"use strict";var t=e.i(843476);e.i(510193);var a=e.i(145025),i=e.i(315606),r=e.i(546028),n=e.i(900382),o=e.i(271645),s=e.i(369849),l=e.i(69406),d=e.i(810664),c=e.i(221453),u=e.i(825590),h=e.i(32746),m=e.i(130229);let p={model:"model",modelGeneration:"generation",modelDerivative:"derivative"},g={model:"search.refinement.attribute.hierarchicalVehicleData.model",modelGeneration:"search.refinement.attribute.hierarchicalVehicleData.generation",modelDerivative:"search.refinement.attribute.hierarchicalVehicleData.derivative"},v=e=>e.attributeName in p,f=e=>"string"==typeof e?e:e?.[0],T=()=>{let{actions:{chooseVehicleOption:e},meta:{missingVehicleAttributes:i,vehicleSelectionControls:r,vehicleTree:n},state:{selection:T}}=(0,h.useVariantSelection)(),{localeId:y}=(0,l.useMarket)(),I=(0,a.useTranslations)(),[P,S]=(0,o.useState)(!1),{handlers:{onUpdateVehicleSelection:x,onCloseFlyout:b},state:{selection:k}}=(0,d.useVehicleSelection)(),D=f(T.get("model"))??"",C=f(T.get("modelGeneration"))??"",R=f(T.get("modelDerivative"))??"",q=n?.getModel(D),E=n?.getGeneration(D,C),N=n?.getDerivative(D,C,R);(0,o.useEffect)(()=>
2305{if(!P||!N||!q||!E)return;let e={key:q.modelKey,name:q.translations[y]??q.modelKey},t={key:E.key,name:E.translations[y]??E.key},a={key:N.key,name:N.translations[y]??N.key},i=(0,c.deriveFacetValue)(e,t,a);k?.facetValue!==i&&(x({derivative:a,facetValue:i,generation:t,model:e},"manual"),S(!1),b?.())},[P,y,b,x,N,E,q,S,k]);let A=t=>{let{detail:{name:a,value:i}}=t;if(null==i)return;let r=Object.entries(p).find(([,e])=>e===a)?.[0];r&&r in p&&(S(!0),e(r,i.toString()))};if(!n||n.isEmpty)return null;let _=r.filter(v);return(0,t.jsx)("div",{"data-testid":"model-and-derivative-selector",className:s.wrapper,children:_.map(e=>(0,t.jsx)("div",{"data-variant-selection-control-invalid":i.has(e.attributeName)?"true":void 0,children:(0,t.jsx)(m.VehicleDropdown,{disabled:e.isDisabled??e.options.every(({state:e})=>"disabledImpossible"===e),errorMessage:I("vehicle.selection.errors.variantSelection",{attribute:e.attributeLabel}),errorTestId:`mission-control-attribute-${e.attributeName}-error`,hasError:i.has(e.attributeName),label:I(g[e.attributeName]),name:p[e.attributeName],onUpdate:A,options:e.options.map(t=>({image:(({attributeName:e,currentGenerationKey:t,currentModelKey:a,value:i})=>"model"===e?(0,u.deriveImagePathsV2)(i).localPathImgCar:"modelGeneration"===e?(0,u.deriveImagePathsV2)(a||void 0,i).localPathImgCar:(0,u.deriveImagePathsV2)(a||void 0,t||void 0,i).localPathImgCar)({attributeName:e.attributeName,currentGenerationKey:C,currentModelKey:D,value:f(t.value)??""}),isDisabled:"disabledImpossible"===t.state,isSoldOut:"soldOut"===t.state||"selectedSoldOut"===t.state,label:Array.isArray(t.label)?t.label.join(", "):t.label,value:f(t.value)??""})),placeholder:I("search.select.placeholder"),testId:`control-container-${e.attributeName}-dropdown`,value:f(T.get(e.attributeName))})},e.attributeName))})};e.s(["VehicleSelectionFlyoutModelBrowser",0,({onToggleAccordion:e,isAccordionOpen:o,variant:s})=>{let l=(0,a.useTranslations)(),d=(0,t.jsx)(r.ModelBrowserFilter,{});return"pdp-compatibility"===s?d=(0,t.jsx)(T,{}):"pdp-compatibility-legacy"===s&&(d=(0,t.jsx)(n.ModelBrowserProduct,{})),(0,t.jsx)(i.Accordion,{id:"vehicle-selection-flyout-item-model",size:"small","data-testid":"accordion-manual",heading:l("vehicle.selection.modelBrowser.title"),open:o,onUpdate:e,children:d})}],373016);var y=e.i(892628);e.i(778498);var I=e.i(456641),P=e.i(477409),S=e.i(715344),x=(0,e.i(125791).createRuntimeFn)({defaultClassName:"_1c0pa7b1",variantClassNames:{type:{selectItem:"_1c0pa7b2",reset:"_1c0pa7b3"},alignment:{start:"_1c0pa7b4",center:"_1c0pa7b5",end:"_1c0pa7b6"},active:{true:"_1c0pa7b7",false:"_1c0pa7b8"},variant:{base:"_1c0pa7b9",surface:"_1c0pa7ba"},state:{default:"_1c0pa7bb",error:"_1c0pa7bc"}},defaultVariants:{},compoundVariants:[[{type:"selectItem",state:"default"},"_1c0pa7bd"],[{type:"selectItem",state:"error"},"_1c0pa7be"],[{variant:"base",state:"default"},"_1c0pa7bf"],[{variant:"surface",state:"default"},"_1c0pa7bg"],[{variant:"base",active:!1,state:"default"},"_1c0pa7bh"],[{variant:"base",active:!1,state:"error"},"_1c0pa7bi"],[{variant:"surface",active:!1},"_1c0pa7bj"],[{active:!0,state:"error"},"_1c0pa7bk"],[{active:!0,state:"default"},"_1c0pa7bl"],[{type:"reset",variant:"surface"},"_1c0pa7bm"],[{type:"reset",variant:"base"},"_1c0pa7bn"]]}),b="_1c0pa7bp _1c0pa7bo",k="_1c0pa7bq _1c0pa7bo",D=e.i(73078);let C=(0,o.createContext)({value:null,variant:"base",onUpdate:()=>{},onReset:()=>{}});C.displayName="SegmentedControlResettable";let R=()=>{let e=(0,o.use)(C);if(void 0===e)throw Error("`useSegmentedControlResettable` must be within a `SegmentedControlResettableContextProvider`");return e},q=({children:e,...a})=>{let i=(({value:e,onUpdate:t,variant:a,alignment:i})=>{let[r,n]=(0,D.useUncontrolled)({value:e,onChange:t}),s=(0,o.useCallback)(e=>{n(e)},[n]);return{value:r,onUpdate:s,variant:a,alignment:i,onReset:()=>s(null)}})(a);return(0,t.jsx)(C.Provider,{value:i,children:e})},E=({value:e,className:a,label:i,children:r,onClick:n,type:o="button",state:s="default",...l})=>{let{value:d,variant:c,alignment:u,onUpdate:h}=R(),m=d===e;return(0,t.jsxs)("button",{type:o,className:[x({variant:c,active:m,alignment:u,state:s,type:"selectItem"}),a].join(" "),onClick:t=>{n?.(t),h(e)},"aria-pressed":m,...l,children:[i&&(0,t.jsx)(I.Text,{color:"inherit",className:b,size:"x-small",children:i}),(0,t.jsx)(I.Text,{color:"inherit",size:"small",className:k,children:r})]})},N=({className:e,label:a,onClick:i,type:r="button",children:n,...o})=>{let{variant:s,alignment:l,onReset:d}=R();return(0,t.jsxs)("button",{type:r,className:[x({variant:s,active:!1,alignment:l,state:"default",type:"reset"}),e].join(" "),onClick:e=>{i?.(e),d()},...o,children:[a&&(0,t.jsx)(I.Text,{size:"x-small",className:b,children:a}),(0,t.jsx)(I.Text,{color:"inherit",size:"small",className:k,children:n})]})},A=e=>(0,o.isValidElement)(e)&&(e.type===E||e.type===N),_=({children:e,value:a,onUp
2305date:i,className:r,variant:n="base",alignment:s="center",...l})=>{let d=o.Children.toArray(e);return o.Children.count(e)&&d.every(A)||console.warn("SegmentedControlResettable requires at least one SegmentedControlResettable.Item and doesn't accept any other types for children other than SegmentedControlResettableItem and SegmentedControlResettable.Reset."),(0,t.jsx)(q,{value:a,onUpdate:i,variant:n,alignment:s,children:(0,t.jsx)("div",{role:"group",className:["_1c0pa7b0",r].join(" "),...l,children:e})})},H=({vehicles:e,view:i})=>{let{state:{selection:r},handlers:{onUpdateVehicleSelection:n,onCloseFlyout:s,onClearVehicleSelection:l}}=(0,d.useVehicleSelection)(),c=(0,a.useTranslations)(),u=(0,o.useCallback)(t=>{if(null===t&&(l(),s()),"string"!=typeof t)return;let a=t.split(".");if(3===a.length){let[t,r,o]=a,l=e.find(e=>e.model.key===t&&e.generation.key===r&&e.derivative.key===o);l&&(n(l,i),s())}},[l,s,n,e,i]);return(0,t.jsxs)(_,{className:"_1cngavd0",variant:"base","data-testid":"vehicle-list",onUpdate:u,value:r?`${r.model.key}.${r.generation.key}.${r.derivative.key}`:null,children:[e.map(e=>(0,t.jsx)(E,{value:`${e.model.key}.${e.generation.key}.${e.derivative.key}`,label:c("vehicle.selection.userVehicles.actions.selectOption.label"),"data-testid":"vehicle-item",children:e.derivative.name},e.derivative.key)),r?.type===i&&(0,t.jsx)(N,{"data-testid":"vehicle-selected-clear-button",label:c("vehicle.selection.userVehicles.actions.reset.label"),children:c("vehicle.selection.userVehicles.actions.reset.button")})]})};e.s(["VehicleList",0,H],701868);var j=e.i(883658),w="_1beo4po2",L=e.i(902815),W=e.i(545930),O=e.i(486339),$=e.i(849635),U=e.i(216225);e.i(529131);var V=e.i(342893),B=e.i(351400);let M=({open:e,onDismiss:a,isAndroid:i,headingTag:r})=>{let{marketplaceId:n}=(0,l.useMarket)(),o="us"===n?"com":"de",s=`https://play.google.com/store/apps/details?id=${o}.porsche.one&hl=${n}`,d="us"===n?B.env.NEXT_PUBLIC_MY_PORSCHE_APP_APPLE_ID_US:B.env.NEXT_PUBLIC_MY_PORSCHE_APP_APPLE_ID,c=`https://apps.apple.com/${n}/app/my-porsche/id${d}`;return(0,t.jsx)(U.PModal,{open:e,onDismiss:a,"data-testid":`my-porsche-app-${i?"android":"ios"}`,children:(0,t.jsxs)("div",{className:"jwvsr10",children:[(0,t.jsx)(V.Heading,{size:"large",as:r??"span",align:"center",slot:"header",children:(0,t.jsx)(y.T,{id:"vehicle.selection.userVehicles.appLink.label",values:{name:i?"Android":"IOS"}})}),(0,t.jsx)(I.Text,{align:"center",children:(0,t.jsx)(y.T,{id:"modal.content.myPorsche.description",values:{name:i?"Google Play":"Apple Store"}})}),(0,t.jsx)(O.QRCode,{"data-testid":"my-porsche-qr-code",size:300,value:i?s:c}),(0,t.jsx)($.PLinkPure,{icon:"external",target:"_blank",href:i?s:c,"data-testid":`my-porsche-app-link-${i?"android":"ios"}`,children:(0,t.jsx)(y.T,{id:"modal.content.myPorsche.link",values:{name:i?"Google Play":"Apple Store"}})})]})})},G=()=>{let{marketplaceId:e,localeId:i}=(0,l.useMarket)(),r=(0,W.useCurrentUrl)(),{mutate:n,data:s,isSuccess:d,reset:c}=(0,L.useLogin)({callbackUrl:r,country:e,locale:i}),u=(0,a.useTranslations)();(0,o.useEffect)(()=>{d&&(window.location.href=s.redirectUri)},[s,d,c]);let[h,m]=(0,o.useState)(!1),[p,g]=(0,o.useState)(!1),{user:v}=(0,P.useUser)();return(0,t.jsxs)("div",{"data-testid":"vehicle-empty",children:[v?(0,t.jsx)(I.Text,{as:"p","data-testid":"vehicle-empty-text",children:u("vehicle.selection.userVehicles.placeholders.noCars")}):(0,t.jsx)(I.Text,{as:"p","data-testid":"vehicle-empty-text",children:u("vehicle.selection.userVehicles.placeholders.loggedOut")}),v?(0,t.jsxs)("div",{role:"group",className:"_1beo4po1",children:[(0,t.jsx)(j.PButton,{className:w,variant:"secondary",onClick:()=>m(!0),"data-testid":"vehicle-action-ios",children:u("vehicle.selection.userVehicles.appLink.label",{name:"IOS"})}),(0,t.jsx)(j.PButton,{variant:"secondary",className:w,onClick:()=>g(!0),"data-testid":"vehicle-action-android",children:u("vehicle.selection.userVehicles.appLink.label",{name:"Android"})})]}):(0,t.jsxs)("div",{role:"group",className:"_1beo4po0",children:[(0,t.jsx)(j.PButton,{variant:"secondary",type:"button",onClick:()=>n({}),"data-testid":"vehicle-action-button",className:w,children:u("vehicle.selection.userVehicles.login.button")})," "]}),(0,t.jsx)(M,{open:h,onDismiss:()=>
2305m(!1),isAndroid:!1}),(0,t.jsx)(M,{open:p,onDismiss:()=>g(!1),isAndroid:!0,headingTag:"p"})]})},F=()=>(0,t.jsx)(o.Suspense,{children:(0,t.jsx)(G,{})}),z=()=>{let{marketplaceId:e,localeId:a}=(0,l.useMarket)(),{user:i}=(0,P.useUser)(),{data:r}=(0,S.useVehiclesData)({country:e,locale:a,isEnabled:!!i});return(r?.length??-1)>0?(0,t.jsx)(H,{vehicles:r,view:"user-vehicle"}):(0,t.jsx)(F,{})};e.s(["VehicleSelectionFlyoutUserVehicles",0,({onToggleAccordion:e,isAccordionOpen:a})=>(0,t.jsx)(i.Accordion,{size:"small",heading:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y.T,{id:"vehicle.selection.userVehicles.title.base"})," ",(0,t.jsx)(I.Text,{color:"contrast-medium",children:(0,t.jsx)(y.T,{id:"vehicle.selection.userVehicles.title.additional"})})]}),"data-testid":"accordion-user-vehicle",open:a,onUpdate:e,children:(0,t.jsx)(z,{})})],85119),e.s(["button",0,"ehewnv5","form",0,"ehewnv4"],267568)},363122,18101,315515,257307,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(883658),r=e.i(871718);e.i(510193);var n=e.i(892628),o=e.i(527298),s=e.i(902074),l=e.i(618566),d=e.i(636137);let c=({eventName:e,triggerEvent:t,productData:i,compact:r,changeWishlistReset:n})=>{let{trackEvent:o}=(0,d.useAnalytics)(),s=(0,l.useSearchParams)(),c=s?.get("queryID")??void 0;return(0,a.useEffect)(()=>{t&&(o({eventName:e,payload:{productData:i,componentClick:{clickElementType:"button",clickElementId:`${r?"tile":"product_details"}product_details_${i.productKey}_${e.toLocaleLowerCase()}`,clickElementName:e.toLocaleLowerCase(),targetUrl:""},queryID:c}}),n())},[e,t,n,i,o,r,c]),null},u=e=>{let i=(0,l.usePathname)(),r=i?.includes("/search")||i?.includes("/c/")?a.Fragment:a.Suspense;return(0,t.jsx)(r,{children:(0,t.jsx)(c,{...e})})};var h=e.i(216225),m=e.i(145025);e.i(529131);var p=e.i(342893);e.i(778498);var g=e.i(456641),v=e.i(69406),f=e.i(477409),T=e.i(351400),y=e.i(902815);let I=({open:e,onDismiss:r,onClosed:n})=>{let s=(0,m.useTranslations)(),[d,c]=(0,o.useCookie)("wishlist-disclaimer-modal-dismissed"),{marketplaceId:u,localeId:I}=(0,v.useMarket)(),{user:P}=(0,f.useUser)(),S=(0,l.usePathname)(),x=()=>{r(),c("true",{path:"/",maxAge:31536e3,sameSite:"lax"})},{mutate:b,isSuccess:k,data:D,reset:C,isPending:R}=(0,y.useLogin)({country:u,locale:I,callbackUrl:`${T.env.NEXT_PUBLIC_BASE_URL}${S}`});return((0,a.useEffect)(()=>{k&&(window.location.href=D.redirectUri)},[D,k,C]),"true"===d||P)?null:(0,t.jsxs)(h.PModal,{open:e,onDismiss:x,onMotionHiddenEnd:()=>{e||n()},"data-testid":"wishlist-modal-disclaimer",children:[(0,t.jsx)(p.Heading,{size:"large",as:"h2",align:"center",slot:"header",children:s("wishlist.disclaimer.modal.headline")}),(0,t.jsx)(g.Text,{as:"p",children:s("wishlist.disclaimer.inline.user")}),(0,t.jsxs)("div",{role:"group",className:"_14eonm20",children:[(0,t.jsx)(i.PButton,{type:"button",variant:"primary",onClick:b,loading:R,"data-testid":"wishlist-modal-disclaimer-btn-login",children:s("wishlist.disclaimer.modal.btn.login")}),(0,t.jsx)(i.PButton,{type:"button",variant:"secondary",onClick:x,"data-testid":"wishlist-modal-disclaimer-btn-ok",children:s("wishlist.disclaimer.modal.btn.continue")})]})]})};e.s(["WishlistButton",0,({productData:e,variant:l="rounded-background",responsiveAppearance:d=!1,compact:c,removeIcon:h="heart-filled"})=>{let[m,p]=(0,a.useState)(!1),[g,v]=(0,a.useState)(!1),[f]=(0,o.useCookie)("wishlist-disclaimer-modal-dismissed"),T="true"===f,{productKey:y}=e,{wishlist:P,changeWishlistMutation:S,changeWishlistIsSuccess:x,changeWishlistData:b,changeWishlistReset:k,isLoadingChangeWishlist:D}=(0,s.useWishlist)(),C=(P.data?.products??[]).some(e=>e.key===y),R=(0,a.useCallback)(()=>{C?S({key:y,operation:"remove"}):(S({key:y,operation:"add"}),T||(v(!0),p(!0)))},[S,T,C,y]),q=(0,a.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),R()},[R]),E="heart";C&&(E="close"===h?"close":"heart-filled");let N=C?(0,t.jsx)(n.T,{id:"wishlist.label.remove.product",values:{product:e.productName}}):(0,t.jsx)(n.T,{id:"wishlist.label.add.product",values:{product:e.productName}}),A={hideLabel:!0,icon:E,type:"button",name:"wishlist",onClick:q,"data-testid":`wishlist-btn-${C?"remove":"add"}-${y}`},_=(0,t.jsx)(u,{changeWishlistReset:k,triggerEvent:!D&&x,eventName:b?.operation==="remove"?"RemoveFromWishlist":"AddToWishlist",productData:e,compact:c}),H=g&&(0,t.jsx)(I,{open:m,onDismiss:()=>p(!1),onClosed:()=>v(!1)});return d?(0,t.jsxs)(t.Fragment,{children:[_,(0,t.jsx)("div",{className:"_1ayww530",children:(0,t.jsx)(r.PButtonPure,{...A,size:c?"small":"medium",children:N})}),(0,t.jsx)("div",{className:"_1ayww531",children:(0,t.jsx)(i.PButton,{...A,variant:"secondary",compact:c,children:N})}),H]}):"pure"===l?(0,t.jsxs)(t.Fragment,{children:[_,(0,t.jsx)(r.PButtonPure,{...A,size:c?"small":"medium",children:N}),H]}):(0,t.jsxs)(t.Fragment,{children:[_,(0,t.jsx)(i.PButton,{...A,variant:"secondary",compact:c,children:N}),H]})}],363122);var P=e.i(146117),S=e.i(736797),x=e.i(713425);e.s(["populateProductTile",0,(e,t,a)=>(i,r)=>{let n,o=i.variants.reduce((e,t)=>
2305{let a=t.attributes.find(e=>"color"===e.name);return!a?.value[0]||!a.label[0]||e.findIndex(e=>e.colors[0]?.key&&Array.isArray(e.colors[0].key)&&Array.isArray(a.value[0])?(0,P.isArrayEqual)(e.colors[0]?.key,a.value[0]):e.colors[0]?.key===a.value[0])>=0?e:[...e,{sku:t.sku,images:t.images.map(({url:e})=>e),netPriceValue:t.netPrice?.value??null,grossPriceValue:t.grossPrice?.value??null,grossPriceDiscountedValue:t.grossPrice?.discounted?.value??null,basePrice:t.basePrice,colors:[{key:a.value[0],name:a.label[0]}],labels:t.labels,isComingSoon:t.isComingSoon,isSoldOut:t.isSoldOut,isPCAExclusive:t.isPCAExclusive,isDealerExclusive:t.isDealerExclusive}]},[]).filter(S.isNotNullOrUndefined),s=i.masterVariant.attributes.find(e=>"color"===e.name);if(s?.value[0]&&s.label[0]){let e=s.value[0];n=o.some(t=>t.colors[0]?.key&&Array.isArray(t.colors[0].key)&&Array.isArray(e)?(0,P.isArrayEqual)(t.colors[0].key,e):t.colors[0]?.key===e)?void 0:[{key:e,name:s.label[0]}]}else n=void 0;let l=i.masterVariant.energy?.grade,d=i.masterVariant.energy?.label,c=i.brand??"",u=i.facetBranch??"",h=(0,x.isAllVariantsOutOfStock)(i),{labels:m,sku:p,isComingSoon:g,isSoldOut:v}=i.masterVariant,{key:f,name:T,slug:y}=i;return{variants:o,index:r,queryID:i.queryId,productData:{brand:c,facetBranch:u,type:i.productType.name,colors:n,href:`/${t}/${a}/p/${y}/${p}`,labels:m,dataId:`product-tile-${e}-${f}`,images:i.masterVariant.images.map(({url:e})=>e),uId:e,key:f,name:T,slug:y,sku:p,netPriceValue:i.masterVariant.netPrice?.value??null,grossPriceValue:i.masterVariant.grossPrice?.value??null,grossPriceDiscountedValue:i.masterVariant.grossPrice?.discounted?.value??null,basePrice:i.masterVariant.basePrice,energyGrade:l,energyLabel:d,allVariantsOutOfStock:h,hasStock:i.masterVariant.availability?.isOnStock??!1,isComingSoon:g,isSoldOut:v,isPCAExclusive:i.masterVariant.isPCAExclusive,isDealerExclusive:i.masterVariant.isDealerExclusive,stock:[]}}}],18101);var b=e.i(657688),k=e.i(651201);let D="hsl(225 100% 99%)",C="hsl(225 66.7% 1.2%)";var R=e.i(959411),q={true:"_1009b5c5 _1009b5c4",false:"_1009b5c6 _1009b5c4"},E={selectable:"_1009b5c8",disabled:"_1009b5c9",soldOut:"_1009b5ca"},N={default:"_1009b5cb _1009b5c1",pdp:"_1009b5cc _1009b5c1",productTileNew:"_1009b5cd _1009b5c1 _1009b5c2"},A={default:"_1009b5cg _1009b5cf",productTileNew:"_1009b5ch _1009b5cf"},_={default:"_1009b5cj _1009b5ci",productTileNew:"_1009b5ck _1009b5ci"},H={default:"_1009b5cm _1009b5cl",productTileNew:"_1009b5cn _1009b5cl"},j=e.i(618595);let w=e=>{let t=parseInt(e.substring(1),16);return .2126*(t>>16&255)+.7152*(t>>8&255)+.0722*(255&t)<80};e.i(282616);var L=e.i(332587);let W=({ref:e,activeColorId:a,item:i,onChangeActiveColorId:r,enableChangeOnHover:n=!1,testIdPrefix:o,formName:s,tabIndex:l,accessibleDescriptionElemendId:d,variant:c,a11yColorLabel:u})=>{let h=Array.isArray(i.colorId)?i.colorId.join("."):i.colorId,m=h.startsWith("multicolor_"),p=Array.isArray(i.label)?i.label.join("/").split("||")[0]:i.label.split("||")[0],g=Array.isArray(a)&&Array.isArray(i.colorId)?(0,P.isArrayEqual)(a,i.colorId):a===i.colorId,v=Array.isArray(i.colorCode)?i.colorCode.map(e=>e.split("_")[1]):i.colorCode.split("_")[1],f="string"==typeof v||v?.length===1?v?.toString():void 0,T=f&&w(f)?D:C,y=!i.isAvailableWithoutStock&&!!i.isDisabled,I=g&&!!i.isSelectedNotAllowed,S=!!i.isSoldOut,x=y||I,k="selectable";x?k="disabled":S&&(k="soldOut");let A=i.useSwatchContrastForBell?w(f??""):w(v?.[0]??"");return(0,t.jsxs)("label",{style:{...Array.isArray(v)&&v.length>=2?{background:`linear-gradient(45deg, ${v[0]??""} 50%, ${v[1]??""} 50%)`}:{},...f?{"--color-selector-swatch-color":f,"--color-selector-swatch-contrast":T}:{}},htmlFor:`${d}-${h}`,className:[N[c],"_1009b5ce",E[k]].join(" "),"data-availability":k,"data-testid":`label-color-selector-${h}`,onMouseEnter:()=>{n&&!x&&r(i.colorId)},ref:e,children:[(0,t.jsx)("button",{suppressHydrationWarning:!0,className:`_1009b5c0 ${g?"selected":""}`,type:"button",name:`color-${s}`,"data-testid":o?`${o}-${h}`:`color-selector-${h}`,onClick:()=>{g||y||r(i.colorId)},onKeyUp:()=>{n&&!x&&r(i.colorId)},role:"radio","aria-checked":g,id:`${d}-${h}`,"aria-disabled":i.isDisabled,disabled:y,value:i.colorId,tabIndex:l}),(0,t.jsxs)("div",{style:{...("string"==typeof v||Array.isArray(v)&&1===v.length)&&!m?{backgroundColor:v.toString(),opacity:y?.5:1}:{}},children:[(0,t.jsx)("div",{className:"_1009b5c3"}),m&&(0,t.jsx)("span",{"data-testid":"multicolor",children:(0,t.jsx)(b.default,{alt:"",src:`/custom_icons/multicolor${"pdp"===s?".png":".svg"}`,fill:!0,className:"_1009b5c7"})}),!!i.isLastSelectableAttributeWithoutStock&&(0,t.jsx)("span",{"data-testid":o?`${o}-${h}-out-of-stock`:`color-selector-${h}-out-of-stock`,style:i.useSwatchContrastForBell?{color:T}:void 0,className:q[A.toString()],children:(0,t.jsx)(L.Icon,{"aria-hidden":!0,
2305color:i.useSwatchContrastForBell?"inherit":void 0,name:"bell",size:"x-small"})}),(0,t.jsxs)(R.VisuallyHidden,{children:[u," ",p]})]})]},`colorSelector-${h}-label`)},O=({colors:e,activeColorId:i,onChangeActiveColorId:r,enableChangeOnHover:n=!1,testIdPrefix:o,formName:s,variant:l="default",tabIndex:d,a11yColorLabel:c})=>{let u=(0,a.useId)(),{minWidthS:h}=(0,j.useMediaQueries)(),m=(0,a.useRef)(null),p=(0,a.useRef)(null),[g,v]=(0,a.useState)({scrollPosition:0,isSmooth:!1});return(0,a.useEffect)(()=>{m.current&&p.current&&"default"===l&&v({scrollPosition:p.current.scrollWidth*(1+e.findIndex(({colorId:e})=>Array.isArray(i)&&Array.isArray(e)?(0,P.isArrayEqual)(i,e):i===e))-m.current.scrollWidth/2,isSmooth:!1})},[i,e,l]),"default"===l?(0,t.jsx)(k.PScroller,{scrollbar:h,scrollToPosition:g,ref:m,children:e.map(e=>(0,t.jsx)(W,{activeColorId:i,item:e,onChangeActiveColorId:r,enableChangeOnHover:n,testIdPrefix:o,formName:s,tabIndex:d,accessibleDescriptionElemendId:u,variant:l,a11yColorLabel:c,ref:p},`colorSelector-${e.colorId.toString()}`))}):(0,t.jsx)(t.Fragment,{children:e.map(e=>(0,t.jsx)(W,{activeColorId:i,item:e,onChangeActiveColorId:r,enableChangeOnHover:n,testIdPrefix:o,formName:s,tabIndex:d,accessibleDescriptionElemendId:u,variant:l,a11yColorLabel:c,ref:null},`colorSelector-${s}-${e.colorId.toString()}`))})};e.s(["ColorSelector",0,({colors:e,activeColorId:i,maxRowItems:n=e.length,onChangeActiveColorId:o,enableChangeOnHover:s,testIdPrefix:l,variant:d,formName:c,tabIndex:u,a11yColorLabel:h,formatShowMoreLabel:m})=>{let[p,v]=(0,a.useState)(n);return(0,t.jsxs)("div",{className:A?.[d],children:[(0,t.jsx)("div",{className:_?.[d],role:"radiogroup","aria-labelledby":`attribute-selector-legend-color-${c}`,children:(0,t.jsx)(O,{colors:e.slice(0,p),activeColorId:i,onChangeActiveColorId:o,enableChangeOnHover:s,testIdPrefix:l,formName:c,variant:d,a11yColorLabel:h})}),p<e.length&&(0,t.jsx)("div",{className:H?.[d],children:-1===u?(0,t.jsx)("span",{className:"_1009b5co",children:(0,t.jsxs)(g.Text,{className:"productTileNew"===d?"_1009b5cp":void 0,color:"productTileNew"===d?"primary":"contrast-high",size:"productTileNew"===d?"xx-small":"small",children:["+",e.length-n>9?"9":e.length-n]})}):(0,t.jsx)(r.PButtonPure,{onClick:()=>v(e.length),"data-testid":"link-show-more",size:"x-small",icon:"plus","aria-expanded":!1,children:"productTileNew"===d?e.length-n:m?.(e.length-n)??`+${e.length-n}`})})]})}],315515),e.s(["skeleton",0,"_7efubj4 _ 7 e f u b j 0","styledAction",0,"_7efubjd","styledClickableEnergyLabel",0,"_7efubjb","styledLabels",0,"_7efubje","styledMetaWrapper",0,"_7efubj7","styledProductTileDesignLabel",0,"_7efubjj","styledProductTileEnergyLabel",0,"_7efubja","styledProductTileFooter",0,"_7efubjc","styledProductTileHeadline",0,"_7efubj8","styledProductTileImage",0,"_7efubj6","styledProductTilePreviewColor",0,"_7efubj9","styledProductTilePriceInner",0,"_7efubjg","styledProductTilePriceLabel",0,"_7efubjf","styledProductTileWrap",0,"_7efubj1 _7efubj0","styledPromoted",0,"_7efubji","styledWishlistButton",0,"_7efubjh"],257307)},877457,573936,e=>{"use strict";e.s(["CMSComponentRenderer",()=>O],877457);var t=e.i(843476),a=e.i(736797),i=e.i(127662),r=e.i(776755),n=e.i(890426),o=e.i(88500),s=e.i(332830),l=e.i(450358),d=e.i(57214),c=e.i(468224),u=e.i(633173),h=e.i(759433),m=e.i(757360),p=e.i(265031),g=e.i(3954
230509),v=e.i(691595),f=e.i(603256),T=e.i(366360),y=e.i(719376),I=e.i(344725),P=e.i(458153),S=e.i(501347),x=e.i(475870),b=e.i(618627),k=e.i(250067),D=e.i(405123),C=e.i(839416),R=e.i(480721),q=e.i(883272),E=e.i(924631),N=e.i(758978),A=e.i(36369),_=e.i(829047),H=e.i(702744),j=e.i(374497),w=e.i(845582);let L=({fragmentData:e,...a})=>(0,t.jsx)(j.AnnouncementBar,{iconName:e.iconName??void 0,text:e.text??"",headline:e.headline??void 0,...a,children:!!e.content?.json&&(0,t.jsx)(w.RichText,{document:e.content.json,links:[]})});e.s(["ComponentAnnouncementBar",0,L],573936);let W={ShopDomainComponentAccordionList:r.ShopDomainComponentAccordionList,ComponentAnnouncementBar:L,ShopDomainComponentBasicText:n.ShopDomainComponentBasicText,ShopDomainComponentCardSlider:o.ShopDomainComponentCardSlider,ShopDomainComponentCompare:s.ShopDomainComponentCompare,ShopDomainComponentEmptyContent:l.ShopDomainComponentEmptyContent,ShopDomainComponentExtendedText:d.ShopDomainComponentExtendedText,ShopDomainComponentFeaturedText:c.ShopDomainComponentFeaturedText,ShopDomainComponentImageGallery:u.ShopDomainComponentImageGallery,ShopDomainComponentImageSlider:h.ShopDomainComponentImageSlider,ComponentLink:_.ComponentLink,ShopDomainComponentLinkTileV3:E.ShopDomainComponentLinkTileV3,ShopDomainComponentListLink:m.ShopDomainComponentListLink,ComponentMultipleHotSpots:N.ComponentMultipleHotSpots,ShopDomainComponentMultipleHotSpots:p.Shop
2305DomainComponentMultipleHotSpots,ShopDomainComponentNavigationInline:g.ShopDomainComponentNavigationInline,ShopDomainComponentParallaxTextImage:v.ShopDomainComponentParallaxTextImage,ShopDomainComponentProductFocusSlider:f.ShopDomainComponentProductFocusSlider,ComponentProductSlider:A.ComponentProductSlider,ShopDomainComponentProductSlider:T.ShopDomainComponentProductSlider,ShopDomainComponentSection:y.ShopDomainComponentSection,ShopDomainComponentSeoTextBlock:I.ShopDomainComponentSeoTextBlock,ShopDomainComponentSingleImage:P.ShopDomainComponentSingleImage,ShopDomainComponentSurvey:S.ShopDomainComponentSurvey,ShopDomainComponentTeaserGrid:x.ShopDomainComponentTeaserGrid,ShopDomainComponentTeaserTile:b.ShopDomainComponentTeaserTile,ShopDomainComponentTextImage:k.ShopDomainComponentTextImage,ComponentTrustElement:H.ComponentTrustElement,ShopDomainComponentVehicleRecommender:D.ShopDomainComponentVehicleRecommender,ShopDomainComponentVideoHero:C.ShopDomainComponentVideoHero,ShopDomainComponentVideoInline:R.ShopDomainComponentVideoInline,ShopDomainComponentContentTile:q.ShopDomainComponentContentTile},O=({entry:e,specificProps:r})=>{if(Array.isArray(e))return(0,t.jsx)(t.Fragment,{children:e.filter(a.isNotNullOrUndefined).map(e=>e.sys?.id||e.id?(0,t.jsx)(O,{entry:e,specificProps:r},`block-${e.sys?.id??e.id}`):(i.defaultLoggerClient.captureMessage(`Entry can not be handled, no sys.id present. typename: ${e.__typename}`),null))});if(!e||!e?.__typename||"ShopDomainComponentSurvey"===e.__typename)return null;let n=e.__typename,o=W?.[n]??null;return o?e.contentfulMetadata?.isVisible===!1?null:(0,t.jsx)(o,{fragmentData:e,...r},`${n}-${e.sys?.id??e?.id??""}`):(i.defaultLoggerClient.captureMessage(`CMSComponentRenderer: ${n} can not be handled`),null)}},114727,862509,3587,496182,43039,666338,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(618566),r=e.i(736797),n=e.i(351400),o=e.i(266027),s=e.i(810664),l=e.i(713425),d=e.i(825590),c=e.i(146117);let u=new Set(["model","modelGeneration","modelDerivative"]),h=e=>u.has(e),m=({attributes:e,currentVariantSKU:t,variants:a,availableAttributes:i,preselectedAttributes:n})=>{let o=a.find(({sku:e})=>t===e);return Object.fromEntries(e.map((e,t)=>{let a,r=o?.attributes.find(({name:t})=>e===t);if(!r)return;let s=h(e),l=n[e];if(l?Array.isArray(r.value)&&Array.isArray(l)?a=(0,c.isArrayEqual)(r.value,l):Array.isArray(r.value)&&!Array.isArray(l)?a=r.value.includes(l):Array.isArray(r.value)||Array.isArray(l)||(a=r.value===l):a=!1,a)return[e,n[e]];if(0===t&&!s)return[e,r.value];let d=i.find(({attributeName:t})=>t===e)?.attributeValues??[];return 1!==d.length||s?s&&1===d.length&&Array.isArray(d[0]?.value)&&d[0]?.value.length===1?[e,d[0]?.value[0]??null]:[e,null]:[e,d[0]?.value??null]}
2305).filter(r.isNotNullOrUndefined))};e.s(["buildControlState",0,m,"isVehicleSelectionAttribute",0,h],862509);class p{modelMap;generationsByModel;derivativesByPath;constructor(e=[]){this.modelMap=new Map(e.map(e=>[e.modelKey,e])),this.generationsByModel=new Map(e.map(e=>[e.modelKey,new Set(e.generations.map(e=>e.key))])),this.derivativesByPath=new Map(e.flatMap(e=>e.generations.map(t=>[`${e.modelKey}/${t.key}`,new Set(t.derivatives.map(e=>e.key))])))}get isEmpty(){return 0===this.modelMap.size}get models(){return[...this.modelMap.keys()]}getModel(e){return this.modelMap.get(e)}hasModel(e){return this.modelMap.has(e)}hasGeneration(e,t){return this.generationsByModel.get(e)?.has(t)??!1}hasDerivative(e,t,a){return this.derivativesByPath.get(`${e}/${t}`)?.has(a)??!1}isCompatible(e,t,a){return this.hasDerivative(e,t,a)}getGenerations(e){return[...this.generationsByModel.get(e)??[]]}getGeneration(e,t){return this.modelMap.get(e)?.generations.find(e=>e.key===t)}getDerivative(e,t,a){return this.getGeneration(e,t)?.derivatives.find(e=>e.key===a)}getDerivatives(e,t){return[...this.derivativesByPath.get(`${e}/${t}`)??[]]}}e.s(["VehicleDataTree",0,p],3587);let g=({attributeState:e,deriveImage:t,filterFn:a})=>{if(!e)return[];let i=(0,l.getUniqueAttributeValues)(e.attributeValues,e.isLastSelectableAttribute);return[...a?i.filter(a):i].sort((e,t)=>e.label.localeCompare(t.label,void 0,{numeric:!0,sensitivity:"base"})).map(({value:e,label:a,isSelectable:i,isAvailableWithoutStock:r})=>({value:e,label:a,image:t(e),isSelectable:i,isAvailableWithoutStock:r,isDisabled:!r&&!i}))},v=e=>e.every(e=>!e.isSelectable&&!e.isAvailableWithoutStock),f=(e,t)=>Object.fromEntries(Object.entries(e).map(([e,a])=>[e,h(e)||t.find(({attributeName:t})=>t===e)?.attributeValues.length===1?a:null])),T=(e,t)=>t?{...e,deliveryAvailability:t?.deliveryAvailability??[],pickUpAtDealerAvailability:t?.pickUpAtDealerAvailability??[],availability:{isOnStock:(t?.shipToHomeAvailableQuantity??0)>0,availableQuantity:t?.shipToHomeAvailableQuantity??0}}:e,y=({productData:e,inventoriesData:t})=>t?e?.variants.map(e=>{let a=t[e?.sku];return T(e,a)}):e?.variants??[],I=({variant:e,inventoriesData:t})=>{if(!t)return e;let a=t[e?.sku];return T(e,a)};e.s(["updateProductVariants",0,y,"updateVariantInventory",0,I],496182);let P=({variants:e,attributesToInclude:t})=>t.map(t=>{let{attributeName:a}=t,i=e.flatMap(e=>e.attributes.find(e=>
2305e.name===a)).filter(r.isNotNullOrUndefined);if(0!==i.length)return{attributeName:a,attributeValues:i.reduce((e,t)=>e.find(e=>Array.isArray(e.value)&&Array.isArray(t.value)?(0,c.isArrayEqual)(e.value,t.value):e.value===t.value)?e:[...e,{label:t.label,value:t.value}],[])}}).filter(r.isNotNullOrUndefined);e.s(["getAttributesValues",0,P],43039);let S=({variants:e,attributes:t})=>{let a=t.map(e=>e.name);return e.filter(e=>e.attributes.filter(e=>a.includes(e.name)).reduce((e,a)=>{if(!e)return!1;let i=a.name,r=t.find(e=>e.name===i);return!!r&&(Array.isArray(a.value)||Array.isArray(r.value)?Array.isArray(a.value)&&!Array.isArray(r.value)?a.value.includes(r.value):!!(Array.isArray(a.value)&&Array.isArray(r.value))&&(0,c.isArrayEqual)(a.value,r.value):r.value.toLowerCase()===a.value.toLowerCase())},!0))};e.s(["getVariantsByAttributes",0,S],666338);var x=e.i(287781),b=e.i(69406);let k=(0,a.createContext)({setControlState(){},showError:!1,setShowError(){},images:[],attributeValueStates:[],attributesToDisplay:[],attributeNamesToDisplay:[],controlState:{},vehicleCompatibility:{onChange(){},isVehicleSpecificProduct:!1,isSelectedVehicleCompatibleWithProduct:!1,vehicleTree:null,compatibleVehicles:{models:{fieldName:"model",attributeName:"model",attributeLabel:"",options:[],selected:null,isDisabled:!1},generations:{fieldName:"generation",attributeName:"modelGeneration",attributeLabel:"",options:[],selected:null,isDisabled:!1},derivatives:{fieldName:"derivative",attributeName:"modelDerivative",attributeLabel:"",options:[],selected:null,isDisabled:!1}},isTouched:!1,resetTouched(){}},isCountdownReleased:!1,countdownComponent:null,dataPrivacy:null,isLoadingInventoryData:!1,usps:[],hasMatchingVariant:!0});k.displayName="PdpDataContext",e.s(["PdpContextProvider",0,({children:e,data:l,configuration:u,countdownComponent:h,dataPrivacy:T,modelViewerItem:D,usps:C})=>{let R=(({data:e,configuration:t,countdownComponent:l,dataPrivacy:u,modelViewerItem:h,usps:T={}})=>{let[k,D]=(0,a.useState)(!1),C=decodeURIComponent((0,i.useParams)().variantSku),{marketplaceId:R,localeId:q}=(0,b.useMarket)(),{state:{selection:E}}=(0,s.useVehicleSelection)(),{updateSkuForDealerStock:N,currentDealer:A,deliveryTypeSelection:_}=(0,x.useDealer)(),{data:H,isLoading:j}=(({country:e,skus:t,key:a})=>(0,o.useQuery)({queryKey:["inventory",e,t,a],queryFn:async()=>{try{let t=await fetch(`/api/commerce/${e}/inventories/${a}`);return await t.json()}catch(t){console.log(`Cannot get inventory for ${e}|${a}`,t)}return{}}}))({skus:e?.variants.flatMap(({sku:e})=>e),country:R,key:e.key}),w=(0,a.useMemo)(()=>{let t=(e?.variants??[]).filter(({isVisible:e})=>e);return y({productData:{...e,variants:t},inventoriesData:H})},[e,H]),L=(0,a.useMemo)(()=>I({variant:e.masterVariant,inventoriesData:H}),[e.masterVariant,H]),W=(w??[]).find(e=>e.sku===C)??L,O=W?.sku,$=(0,a.useMemo)(()=>{let e=(w??[]).every(({matchesAllModels:e,matchesSpecificModels:t})=>!!e||!!t);return(t?.attributes??[]).filter(({attributeName:t})=>!(e&&("model"===t||"modelGeneration"===t||"modelDerivative"===t)))},[t?.attributes,w]),U=(0,a.useMemo)(()=>P({variants:w??[],attributesToInclude:$}),[$,w]),V=(0,a.useMemo)(()=>U.map(e=>e.attributeName).filter(r.isNotNullOrUndefined),[U]),B=m({attributes:V,currentVariantSKU:O??"",variants:w??[],availableAttributes:U,preselectedAttributes:E?.model?.key?{model:E.model.key,modelDerivative:E.derivative.key,modelGeneration:E.generation.key??""}:{}}),[M,G]=(0,a.useState)(B),{variantsWithGivenAttributeValues:F,attributeValueStates:z}=(0,a.useMemo)(()=>(({variants:e,productType:t,selectedAttributeValues:a,attributesToInclude:i,availableAttributesWithValues:n,deliveryTypeSelection:o,dealerId:s,keepAllSelectable:l=!1})=>{let d=e;"pickup"===o&&s&&(d=e.map(e=>{let t=e.pickUpAtDealerAvailability.find(({channelKey:e})=>e===s)?.quantity??0;return{...e,availability:{isOnStock:t>0,availableQuantity:t??0}}}));let u=S({variants:d,attributes:a}),h=n.map(({attributeName:e},o)=>{let s=d.flatMap(t=>t.attributes.filter(({name:t})=>e===t).map(e=>({name:e.name,value:e.value,label:e.label}))).reduce((e,t)=>e.find(({value:e})=>Array.isArray(e)&&Array.isArray(t.value)?(0,c.isArrayEqual)(e,t.value):e===t.value)?e:[...e,t],[]);if(0===s.length)return;let u=i.find(({attributeName:t})=>t===e);u?.sort&&s.sort((e,t)=>
2305{let a=(Array.isArray(e.value)?e.value[0]:e.value)??"",i=(Array.isArray(t.value)?t.value[0]:t.value)??"",r=u.orderedList??[],n=r.indexOf(a),o=r.indexOf(i);return -1===n||-1===o?a.localeCompare(i):n-o});let h=new Set(n.slice(0,o).map(({attributeName:e})=>e)),m=S({variants:d,attributes:a.filter(({name:e})=>h.has(e))}).filter(e=>e.isVisible),p=t?.attributes?.find(t=>t.name===e)?.label??e,g=a.find(({name:t})=>t===e),v=null==g||s.length<=1||m.filter(t=>t.attributes.some(t=>t.name===e&&(Array.isArray(t.value)&&Array.isArray(g?.value)?(0,c.isArrayEqual)(t.value,g.value):t.value===g?.value))).some(({availability:e})=>!!e?.isOnStock);return{attributeName:e,attributeLabel:p,isSelectedValueStale:!v,attributeValues:s.map(e=>{let t=m.filter(t=>!!t.attributes.find(t=>(Array.isArray(t.value)&&Array.isArray(e.value)?(0,c.isArrayEqual)(t.value,e.value):t.value===e.value)&&t.name===e.name));return{value:e.value,label:e.label,isSelectable:l||!!t.filter(({availability:e})=>!!e?.isOnStock).find(r.isNotNullOrUndefined),isAvailableWithoutStock:t.length>0&&t.every(({availability:e})=>!e?.isOnStock),isSoldOut:t.length>0&&t.every(({isSoldOut:e})=>e)}})}}
2305).filter(r.isNotNullOrUndefined);return{variantsWithGivenAttributeValues:u,attributeValueStates:h.map((e,t)=>{let a;return{...e,isLastSelectableAttribute:(-1!==(a=h.slice().reverse().findIndex(e=>e.attributeValues.length>1))?h.length-1-a:-1)===t}})}})({attributesToInclude:$,variants:w??[],selectedAttributeValues:Object.entries(M).map(([e,t])=>{if(t)return{name:e,value:t}}).filter(r.isNotNullOrUndefined),productType:e?.productType,availableAttributesWithValues:U,deliveryTypeSelection:_,dealerId:A?.id}),[$,M,e,U,A,_,w]),K=(0,a.useMemo)(()=>F.length>0&&!F.find(({sku:e})=>e===O)?F.find(({availability:e})=>!!e?.isOnStock)??F[0]??W:F.find(({sku:e})=>e===O)??W,[F,W,O]),Q=(0,a.useMemo)(()=>O?T?.[O]??null:null,[O,T]),Y=(0,a.useMemo)(()=>{let t=K?.images??[];return t=(t??[]).slice(0,8).map(t=>({url:t.url,alt:e.name})),h?.model.url&&(t=[{url:h.image,alt:e.name,modelViewer:{url:h.model.url,poster:h.image,alt:e.name,qrCode:{value:`${n.env.NEXT_PUBLIC_BASE_URL}/${R}/${q}/p/${e.slug}/${K?.sku}`}}},...t]),t},[e,h,K,R,q]),X=!l?.releaseDate||new Date(l?.releaseDate)<=new Date;(0,a.useEffect)(()=>{N(K?.sku??null)},[K?.sku,N]),(0,a.useEffect)(()=>{G(e=>({...e,model:E?.model?.key??null,modelGeneration:E?.generation?.key??null,modelDerivative:E?.derivative?.key??null}))},[E]);let J=(({controlState:e,setControlState:t,vehicleInformation:i,attributeValueStates:r})=>{let{state:{selection:n}}=(0,s.useVehicleSelection)(),o=r.find(e=>"model"===e.attributeName),l=r.find(e=>"modelGeneration"===e.attributeName),c=r.find(e=>"modelDerivative"===e.attributeName),u="string"==typeof e.model?e.model:null,h="string"==typeof e.modelGeneration?e.modelGeneration:null,m="string"==typeof e.modelDerivative?e.modelDerivative:null,T=(0,a.useMemo)(()=>i?new p(i):null,[i]),{modelOptions:y,generationOptions:I,derivativeOptions:P}=(0,a.useMemo)(()=>({modelOptions:g({attributeState:o,deriveImage:e=>(0,d.deriveImagePathsV2)(e).localPathImgCar}),generationOptions:g({attributeState:l,filterFn:e=>!u||!T||T.isEmpty||T?.hasGeneration(u,e.value),deriveImage:e=>(0,d.deriveImagePathsV2)(u??void 0,e).localPathImgCar}),derivativeOptions:g({attributeState:c,filterFn:e=>!u||(!T||T?.isEmpty?e.value.startsWith(u):!h||T?.hasDerivative(u,h,e.value)),deriveImage:e=>(0,d.deriveImagePathsV2)(u??void 0,h??void 0,e).localPathImgCar})}),[o,l,c,u,h,T]),S=!!T&&!T.isEmpty,x=(0,a.useMemo)(()=>!n||!T||!!T.isEmpty||T.isCompatible(n.model.key,n.generation.key,n.derivative.key),[n,T]),[b,k]=(0,a.useState)(!1),D=(0,a.useCallback)(()=>{k(!1)},[]);return{isVehicleSpecificProduct:S,isSelectedVehicleCompatibleWithProduct:x,vehicleTree:T,onChange:(e,a)=>{k(!0),"model"===e?t(e=>({...f(e,r),model:a,modelGeneration:null,modelDerivative:null})):"generation"===e?t(e=>({...f(e,r),modelGeneration:a,modelDerivative:null})):"derivative"===e&&t(e=>({...f(e,r),modelDerivative:a}))},compatibleVehicles:(0,a.useMemo)(()=>{if(!o||!l||!c)return null;let e=v(y);return{models:{fieldName:"model",attributeName:"model",attributeLabel:o.attributeLabel,options:y,selected:u,isDisabled:e},generations:{fieldName:"generation",attributeName:"modelGeneration",attributeLabel:l.attributeLabel,options:I,selected:h,isDisabled:null===u||0===I.length||v(I)},derivatives:{fieldName:"derivative",attributeName:"modelDerivative",attributeLabel:c.attributeLabel,options:P,selected:m,isDisabled:null===u||I.length>0&&null===h||0===P.length&&null!==h||v(P)}}},[o,l,c,y,I,P,u,h,m]),isTouched:b,resetTouched:D}})({controlState:M,setControlState:G,vehicleInformation:e.vehicleInformation,attributeValueStates:z});return{data:e,currentVariantSKU:K?.sku,setControlState:G,controlState:M,showError:k,setShowError:D,currentVariant:K,images:Y,attributeValueStates:z,attributeNamesToDisplay:V,attributesToDisplay:$,configuration:t,vehicleCompatibility:J,isCountdownReleased:X,countdownComponent:l,dataPrivacy:u??null,isLoadingInventoryData:j,usps:Q,uspsByVariantSku:T,hasMatchingVariant:F.length>0}})({data:l,configuration:u,countdownComponent:h,dataPrivacy:T,modelViewerItem:D,usps:C});return(0,t.jsx)(k.Provider,{value:R,children:e})},"PdpDataContext",0,k,"usePdp",0,()=>{let e=(0,a.use)(k);if(void 0===e)throw Error("`usePdp` must be within a `PdpContextProvider`");return e}],114727)},865172,e=>{"use strict";var t=e.i(537950);e.s(["useComponentPreview",0,(e,a)=>{let i=(0,t.useContentfulLiveUpdates)({...e,sys:{id:a}}),r=(0,t.useContentfulInspectorMode)({entryId:a});return{data:i,addAttributes:e=>r({fieldId:e})}}])},660993,e=>{"use strict";var t=e.i(736797);e.s(["populateProductNodeLightBff",0,({product:e})=>{let a=e?.variants.find(e=>e.flags.isMainVariant);if(a&&e?.name&&e?.slug)return{name:e.name,slug:e.slug,key:e.key,brand:e.brand??null,facetBranch:e.facetBranch??null,productType:{name:e.productType.name},description:null,masterVariant:{id:1234,ogImages:[],images:(a.images.tile??[]).map(t=>t.url?{url:t.url,alt:e.name??""}:null).filter(t.isNotNullOrUndefined),sku:a.sku,description:{short:
2305a.description?.short??null,long:a.description?.long??null},seo:{title:null,description:null},energy:a.energy?{grade:a.energy.grade,label:a.energy.label}:null,isVisible:a.isVisible,isSoldOut:a.flags.isSoldOut,preOrder:null,netPrice:a.prices.net?{value:{centAmount:a.prices.net.amount,currencyCode:a.prices.net.currency,fractionDigits:a.prices.net.fractionDigits},isTaxIncluded:a.prices.net.isTaxIncluded,discounted:a.prices.netDiscounted?{value:{centAmount:a.prices.netDiscounted.amount,currencyCode:a.prices.netDiscounted.currency,fractionDigits:a.prices.netDiscounted.fractionDigits}}:null}:null,grossPrice:a.prices.gross?{value:{centAmount:a.prices.gross.amount,currencyCode:a.prices.gross.currency,fractionDigits:a.prices.gross.fractionDigits},isTaxIncluded:a.prices.gross.isTaxIncluded,discounted:a.prices.grossDiscounted?{value:{centAmount:a.prices.grossDiscounted.amount,currencyCode:a.prices.grossDiscounted.currency,fractionDigits:a.prices.grossDiscounted.fractionDigits}}:null}:null,basePrice:a.prices.basePrice?{currencyCode:a.prices.basePrice.currency,centAmount:a.prices.basePrice.amount,fractionDigits:a.prices.basePrice.fractionDigits,unit:a.prices.basePrice.unit,attributeValue:a.prices.basePrice.variantUnit}:null,availability:{isOnStock:a.availability.isOnStock,availableQuantity:a.availability.availableQuantity},pickUpAtDealerAvailability:[],deliveryAvailability:[],matchesAllModels:!1,matchesSpecificModels:null,isComingSoon:a.flags.isComingSoon,labels:a.labels.map(e=>({key:e.key,name:e.name})),isPCAExclusive:a.flags.isPCAExclusive,isDealerExclusive:a.flags.isDealerExclusive,attributes:[...a.attributes.controlContainer.map(e=>({value:e.values.flatMap(e=>e.value),name:e.name,label:e.values.flatMap(e=>e.label)}))]},variants:e.variants.map(a=>{if(!a.sku)return;let i=a.images.tile;return{id:1234,sku:a.sku,images:(i??[]).map(t=>t.url?{url:t.url,alt:e.name??""}:null).filter(t.isNotNullOrUndefined),seo:{title:null,description:null},netPrice:a.prices.net?{value:{centAmount:a.prices.net.amount,currencyCode:a.prices.net.currency,fractionDigits:a.prices.net.fractionDigits},isTaxIncluded:a.prices.net.isTaxIncluded,discounted:a.prices.netDiscounted?{value:{centAmount:a.prices.netDiscounted.amount,currencyCode:a.prices.netDiscounted.currency,fractionDigits:a.prices.netDiscounted.fractionDigits}}:null}:null,grossPrice:a.prices.gross?{value:{centAmount:a.prices.gross.amount,currencyCode:a.prices.gross.currency,fractionDigits:a.prices.gross.fractionDigits},isTaxIncluded:a.prices.gross.isTaxIncluded,discounted:a.prices.grossDiscounted?{value:{centAmount:a.prices.grossDiscounted.amount,currencyCode:a.prices.grossDiscounted.currency,fractionDigits:a.prices.grossDiscounted.fractionDigits}}:null}:null,basePrice:a.prices.basePrice?{currencyCode:a.prices.basePrice.currency,centAmount:a.prices.basePrice.amount,fractionDigits:a.prices.basePrice.fractionDigits,unit:a.prices.basePrice.unit,attributeValue:a.prices.basePrice.variantUnit}:null,isVisible:a.isVisible,isSoldOut:a.flags.isSoldOut,isPCAExclusive:a.flags.isPCAExclusive,isDealerExclusive:a.flags.isDealerExclusive,preOrder:null,availability:{isOnStock:a.availability.isOnStock,availableQuantity:a.availability.availableQuantity},pickUpAtDealerAvailability:[],deliveryAvailability:[],matchesAllModels:!1,matchesSpecificModels:null,isComingSoon:a.flags.isComingSoon,labels:a.labels.map(e=>({key:e.key,name:e.name})),description:{short:a.description?.short??null,long:a.description?.long??null},energy:a.energy?{grade:a.energy.grade,label:a.energy.label}:null,attributes:[...a.attributes.controlContainer.map(e=>({value:e.values.flatMap(e=>e.value),name:e.name,label:e.values.flatMap(e=>e.label)}))]}}).filter(t.isNotNullOrUndefined)}}])},713425,e=>{"use strict";e.s(["getUniqueAttributeValues",0,(e,t)=>e.sort((e,t)=>e.isSelectable!==t.isSelectable?e.isSelectable?-1:1:e.isAvailableWithoutStock!==t.isAvailableWithoutStock?e.isAvailableWithoutStock?-1:1:0).reduce((e,a)=>{let i=[],r=(a,r,n,o)=>{e.find(({value:e})=>e===a)||i.find(({value:e})=>e===a)||i.push({value:a,label:r??a,isSelectable:n??!1,isAvailableWithoutStock:o,isLastSelectableAttributeWithoutStock:o&&!!t})};return Array.isArray(a.value)&&Array.isArray(a.label)?a.value.forEach((e,t)=>{r(e,a.label[t]??e,a.isSelectable??!1,!!a.isAvailableWithoutStock)}):Array.isArray(a.value)||Array.isArray(a.label)||r(a.value,a.label??a.value,a.isSelectable??!1,!!a.isAvailableWithoutStock),[...e,...i]},[]),"isAllVariantsOutOfStock",0,e=>-1===e.variants.findIndex(({availability:e})=>e?.isOnStock)])}]);

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.