PageSourceSearch

https://www.zooplus.de/_next/static/chunks/5127-ec3920e9c836555c.js

js zooplus.de collected 2026-10-02 03:52:00 UTC 57,539 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5127],{121:(e,t,a)=>{"use strict";a.d(t,{k:()=>r});let r={MARKDOWN:"markdown",ARTICLE_CAROUSEL:"article_carousel",SUGGESTED_PROMPTS:"suggested_prompts",DATA_VISUALIZATION:"data_visualization"}},3069:e=>{e.exports={markdownBlock:"MarkdownBlock_markdownBlock__cI0w_",tableWrapper:"MarkdownBlock_tableWrapper__EUn5x"}},6393:e=>{e.exports={wrapper:"ChatbotFloatingCTA_wrapper__3DB1g",hiddenWrapper:"ChatbotFloatingCTA_hiddenWrapper__uaEhJ",button:"ChatbotFloatingCTA_button__UahQ9",icon:"ChatbotFloatingCTA_icon__Gs6EX",tooltip:"ChatbotFloatingCTA_tooltip__apN5H"}},9128:(e,t,a)=>{"use strict";a.d(t,{dp:()=>u,CX:()=>p,gJ:()=>h,NN:()=>C});var r=a(3148),n=a(73562),s=a(36319),l=a(70706);r.A.defaults.headers.common["X-Caller"]=s.VA;let i=(0,n.R)(()=>new l.qu(new l.Vk({basePath:s.Rt.REACT_APP_CHATBOT_API_URL}),void 0,r.A)),o=(0,n.R)(()=>new l.QK(new l.Vk({basePath:s.Rt.REACT_APP_CHATBOT_API_URL}),void 0,r.A));var c=a(74038);let d=e=>{switch(e.pageType){case l.P2.ProductDetail:if(null==e.articleId||null==e.productId)throw Error("articleId and productId are required for a PRODUCT-DETAIL chat context");return{page_type:l.P2.ProductDetail,article_id:e.articleId,product_id:e.productId};case l.P2.Homepage:return{page_type:l.P2.Homepage};case l.P2.Search:if(!e.query)throw Error("query is required for a SEARCH chat context");return{page_type:l.P2.Search,query:e.query};case l.P2.Category:if(null==e.categoryPath||null==e.categoryId||null==e.categoryName||null==e.categoryLevel)throw Error("categoryPath, categoryId, categoryName and categoryLevel are required for a CATEGORY chat context");return{page_type:l.P2.Category,path:e.categoryPath,id:e.categoryId,name:e.categoryName,level:e.categoryLevel};case l.P2.Specials:if(null==e.specialsId&&null==e.specialsName)throw Error("specialsId or specialsName is required for a SPECIALS chat context");return{page_type:l.P2.Specials,id:e.specialsId,name:e.specialsName}}},u=async e=>{try{let{data:t}=await i.getOrCreateChatV2ChatsSitesSiteIdPost(e.siteId,e.locale,e.sid,{context:d(e)});return t}catch(e){throw(0,c.vV)({error:e,action:"newChat"}),e}},h=async e=>{try{let{data:t}=await i.sendMessageV2ChatsSitesSiteIdMessagesPost(e.siteId,e.locale,e.sid,{context:d(e),user_input:e.message});return t}catch(e){throw(0,c.vV)({error:e,action:"sendChatMessage"}),e}},p=async e=>{try{let{data:t}=await i.resetChatV2ChatsSitesSiteIdResetChatPost(e.siteId,e.locale,e.sid,{context:d(e)});return t}catch(e){throw(0,c.vV)({error:e,action:"resetChat"}),e}},C=async e=>{try{await o.submitResponseFeedback(e.siteId,e.traceId,e.sid,{rating:e.rating})}catch(e){throw(0,c.vV)({error:e,action:"submitMessageFeedback"}),e}}},13021:e=>{e.exports={productCardContainer:"ProductCard_productCardContainer__LVA0u",productCard:"ProductCard_productCard__XMnzT",productInfo:"ProductCard_productInfo__g0ipK",productName:"ProductCard_productName__GTXXU",productDescription:"ProductCard_productDescription__5_4_U",productBadges:"ProductCard_productBadges__tMrO_"}},24305:e=>{e.exports={hideTitle:"ProductSlider_hideTitle__CE6ro",carousel:"ProductSlider_carousel__ERw4J"}},25875:(e,t,a)=>{"use strict";a.d(t,{ZoomyAssistant:()=>ta});var r,n,s,l,i,o,c=a(2506),d=a(96309),u=a(56272),h=a(68687),p=a(81467),C=a(47301),g=a(63616),m=a(53873),f=a(84082),v=a(6393),b=a.n(v);let _=e=>(0,c.jsxs)("svg",{fill:"none",viewBox:"62 83 388 388",xmlns:"http://www.w3.org/2000/svg",role:"img",...e,children:[(0,c.jsxs)("g",{transform:"matrix(6.876,0,0,6.876,63.47,84.099)",children:[(0,c.jsx)("g",{transform:"matrix(1,0,0,1,0,0)",children:(0,c.jsx)("path",{fill:"#333842",d:"M17.07,0.5C17.07,0.5,38.93,0.5,38.93,0.5C48.08,0.5,55.5,7.92,55.5,17.07C55.5,17.07,55.5,45.73,55.5,45.73C55.5,47.81,53.81,49.5,51.73,49.5C51.73,49.5,17.07,49.5,17.07,49.5C7.92,49.5,0.5,42.08,0.5,32.93C0.5,32.93,0.5,17.07,0.5,17.07C0.5,7.92,7.92,0.5,17.07,0.5C17.07,0.5,17.07,0.5,17.07,0.5Z"})}),(0,c.jsx)("g",{transform:"matrix(1,0,0,1,0,0)",children:(0,c.jsx)("path",{strokeWidth:"1",stroke:"#ffffff",d:"M17.07,0.5C17.07,0.5,38.93,0.5,38.93,0.5C48.08,0.5,55.5,7.92,55.5,17.07C55.5,17.07,55.5,45.73,55.5,45.73C55.5,47.81,53.81,49.5,51.73,49.5C51.73,49.5,17.07,49.5,17.07,49.5C7.92,49.5,0.5,42.08,0.5,32.93C0.5,32.93,0.5,17.07,0.5,17.07C0.5,7.92,7.92,0.5,17.07,0.5C17.07,0.5,17.07,0.5,17.07,0.5Z"})})]}),(0,c.jsx)("g",{children:(0,c.jsx)("g",{transform:"translate(256,256)",children:(0,c.jsxs)("g",{transform:"rotate(0)",children:[(0,c.jsx)("animateTransform",{repeatCount:"indef
1inite",type:"rotate",attributeName:"transform",dur:"5s",begin:"0s",calcMode:"spline",values:"0; -2; 2; 0",keyTimes:"0; 0.5; 0.916667; 1",keySplines:"0.42 0 0.58 1; 0.42 0 0.58 1; 0.42 0 0.58 1",fill:"freeze"}),(0,c.jsx)("g",{transform:"scale(7.407,7.407) translate(-16.005,-16.003)",children:(0,c.jsx)("g",{transform:"matrix(1,0,0,1,0,0)",children:(0,c.jsx)("path",{fill:"#ffffff",d:"M16,3C14.03,3,12.07,3.45,10.3,4.32C8.53,5.19,6.98,6.44,5.76,8C4.54,9.56,3.7,11.37,3.29,13.3C2.88,15.23,2.91,17.23,3.39,19.15C3.87,21.07,4.78,22.85,6.05,24.36C7.32,25.87,8.92,27.08,10.72,27.88C12.52,28.68,14.49,29.06,16.46,28.99C18.43,28.92,20.37,28.41,22.11,27.48C22.11,27.48,26.37,28.9,26.37,28.9C26.72,29.02,27.1,29.04,27.46,28.95C27.82,28.86,28.15,28.67,28.41,28.41C28.67,28.15,28.86,27.82,28.95,27.46C29.04,27.1,29.02,26.72,28.9,26.37C28.9,26.37,27.48,22.11,27.48,22.11C28.53,20.13,29.06,17.9,29,15.66C28.98,14.72,28.85,13.8,28.63,12.9C28.63,12.9,28.27,13.87,28.27,13.87C28.09,14.35,27.77,14.77,27.35,15.07C27.23,15.15,27.11,15.22,26.98,15.28C27.12,17.45,26.61,19.62,25.52,21.51C25.45,21.63,25.41,21.77,25.4,21.91C25.39,22.05,25.4,22.2,25.44,22.33C25.44,22.33,27,27,27,27C27,27,22.33,25.44,22.33,25.44C22.2,25.4,22.05,25.38,21.91,25.39C21.77,25.4,21.63,25.45,21.51,25.52C19.84,26.49,17.93,27,16,27C13.58,27,11.22,26.2,9.3,24.73C7.38,23.26,6.01,21.18,5.38,18.84C4.75,16.5,4.91,14.03,5.84,11.79C6.77,9.55,8.41,7.68,10.51,6.47C12.59,5.27,14.99,4.79,17.37,5.09C17.32,4.91,17.29,4.71,17.29,4.52C17.29,4.15,17.39,3.79,17.57,3.48C17.57,3.48,17.66,3.35,17.66,3.35C17.66,3.35,17.75,3.23,17.75,3.23C17.78,3.2,17.81,3.16,17.84,3.13C17.23,3.04,16.62,3,16,3C16,3,16,3,16,3Z"})})})]})})}),(0,c.jsx)("g",{children:(0,c.jsxs)("g",{transform:"translate(295.084,177.259)",children:[(0,c.jsx)("animateTransform",{repeatCount:"indefinite",type:"translate",attributeName:"transform",dur:"5s",begin:"0s",calcMode:"spline",values:"295.084 177.259; 292.084 174.259; 295.084 177.259",keyTimes:"0; 0.5; 1",keySplines:"0.42 0 0.58 1; 0.42 0 0.58 1",fill:"freeze"}),(0,c.jsx)("g",{transform:"rotate(-180) scale(10.341,10.341) translate(-1.24,-1.235)",children:(0,c.jsx)("g",{transform:"matrix(1,0,0,1,0,0)",children:(0,c.jsx)("path",{fill:"#ffffff",d:"M0.15,0.95C0.15,0.95,0.84,0.76,0.84,0.76C0.84,0.76,1.14,0.12,1.14,0.12C1.16,0.08,1.18,0.05,1.22,0.03C1.26,0.01,1.3,0,1.34,0C1.38,0,1.42,0.02,1.45,0.05C1.48,0.08,1.51,0.11,1.52,0.15C1.52,0.15,1.71,0.84,1.71,0.84C1.71,0.84,2.36,1.13,2.36,1.13C2.4,1.15,2.43,1.18,2.45,1.22C2.47,1.26,2.48,1.3,2.48,1.34C2.48,1.38,2.46,1.42,2.43,1.45C2.4,1.48,2.37,1.51,2.33,1.52C2.33,1.52,1.64,1.71,1.64,1.71C1.64,1.71,1.34,2.36,1.34,2.36C1.32,2.4,1.3,2.43,1.26,2.45C1.22,2.47,1.18,2.47,1.14,2.47C1.1,2.47,1.05,2.46,1.02,2.43C0.99,2.4,0.97,2.36,0.96,2.32C0.96,2.32,0.77,1.64,0.77,1.64C0.77,1.64,0.12,1.34,0.12,1.34C0.08,1.32,0.05,1.3,0.03,1.26C0.01,1.22,0,1.18,0,1.14C0,1.1,0.02,1.05,0.05,1.02C0.08,0.99,0.11,0.97,0.15,0.96C0.15,0.96,0.15,0.95,0.15,0.95C0.15,0.95,0.15,0.95,0.15,0.95Z"})})})]})}),(0,c.jsx)("g",{children:(0,c.jsxs)("g",{transform:"translate(294.883,226.675)",children:[(0,c.jsx)("animateTransform",{repeatCount:"indefinite",type:"translate",attributeName:"transform",dur:"5s",begin:"0s",calcMode:"spline",values:"294.883 226.675; 294.883 229.675; 294.883 226.675",keyTimes:"0; 0.5; 1",keySplines:"0.42 0 0.58 1; 0.42 0 0.58 1",fill:"freeze"}),(0,c.jsx)("g",{transform:"rotate(-270) scale(6.838,6.838) translate(-1.24,-1.235)",children:(0,c.jsx)("g",{transform:"matrix(1,0,0,1,0,0)",children:(0,c.jsx)("path",{fill:"#ffffff",d:"M0.15,0.95C0.15,0.95,0.84,0.76,0.84,0.76C0.84,0.76,1.14,0.12,1.14,0.12C1.16,0.08,1.18,0.05,1.22,0.03C1.26,0.01,1.3,0,1.34,0C1.38,0,1.42,0.02,1.45,0.05C1.48,0.08,1.51,0.11,1.52,0.15C1.52,0.15,1.71,0.84,1.71,0.84C1.71,0.84,2.36,1.13,2.36,1.13C2.4,1.15,2.43,1.18,2.45,1.22C2.47,1.26,2.48,1.3,2.48,1.34C2.48,1.38,2.46,1.42,2.43,1.45C2.4,1.48,2.37,1.51,2.33,1.52C2.33,1.52,1.64,1.71,1.64,1.71C1.64,1.71,1.34,2.36,1.34,2.36C1.32,2.4,1.3,2.43,1.26,2.45C1.22,2.47,1.18,2.47,1.14,2.47C1.1,2.47,1.05,2.46,1.02,2.43C0.99,2.4,0.97,2.36,0.96,2.32C0.96,2.32,0.77,1.64,0.77,1.64C0.77,1.64,0.12,1.34,0.12,1.34C0.08,1.32,0.05,1.3,0.03,1.26C0.01,1.22,0,1.18,0,1.14C0,1.1,0.02,1.05,0.05,1.02C0.08,0.99,0.11,0.97,0.15,0.96C0.15,0.96,0.15,0.95,0.15,0.95C0.15,0.95,0.15,0.95,0.15,0.95Z"})})})]})}),(0,c.jsx)("g",{children:(0,c.jsxs)("g",{transform:"translate(325.585,204.269)",children:[(0,c.jsx)("animateTransform",{repeatCount:"indef
1inite",type:"translate",attributeName:"transform",dur:"5s",begin:"0s",calcMode:"spline",values:"325.585 204.269; 327.585 201.269; 325.585 204.269",keyTimes:"0; 0.5; 1",keySplines:"0.42 0 0.58 1; 0.42 0 0.58 1",fill:"freeze"}),(0,c.jsx)("g",{transform:"rotate(-184) scale(23,23) translate(-1.24,-1.235)",children:(0,c.jsx)("g",{transform:"matrix(1,0,0,1,0,0)",children:(0,c.jsx)("path",{fill:"#ffffff",d:"M0.15,0.95C0.15,0.95,0.84,0.76,0.84,0.76C0.84,0.76,1.14,0.12,1.14,0.12C1.16,0.08,1.18,0.05,1.22,0.03C1.26,0.01,1.3,0,1.34,0C1.38,0,1.42,0.02,1.45,0.05C1.48,0.08,1.51,0.11,1.52,0.15C1.52,0.15,1.71,0.84,1.71,0.84C1.71,0.84,2.36,1.13,2.36,1.13C2.4,1.15,2.43,1.18,2.45,1.22C2.47,1.26,2.48,1.3,2.48,1.34C2.48,1.38,2.46,1.42,2.43,1.45C2.4,1.48,2.37,1.51,2.33,1.52C2.33,1.52,1.64,1.71,1.64,1.71C1.64,1.71,1.34,2.36,1.34,2.36C1.32,2.4,1.3,2.43,1.26,2.45C1.22,2.47,1.18,2.47,1.14,2.47C1.1,2.47,1.05,2.46,1.02,2.43C0.99,2.4,0.97,2.36,0.96,2.32C0.96,2.32,0.77,1.64,0.77,1.64C0.77,1.64,0.12,1.34,0.12,1.34C0.08,1.32,0.05,1.3,0.03,1.26C0.01,1.22,0,1.18,0,1.14C0,1.1,0.02,1.05,0.05,1.02C0.08,0.99,0.11,0.97,0.15,0.96C0.15,0.96,0.15,0.95,0.15,0.95C0.15,0.95,0.15,0.95,0.15,0.95Z"})})})]})})]}),x=e=>{let{onClick:t,isEnabled:a}=e,{t:r}=(0,m.useTranslation)(),{isOpen:n}=(0,p.r)();return a?(0,c.jsx)("div",{className:"".concat(b().wrapper," ").concat(n?b().hiddenWrapper:""),...n?{"aria-hidden":!0}:{},children:(0,c.jsx)(f.Tooltip,{className:"".concat(b().tooltip),position:"left-middle",tipText:r("shop.chatbot.cta.label"),children:(0,c.jsx)("button",{type:"button",className:b().button,onClick:t,"aria-label":r("shop.chatbot.cta.aria-label"),"aria-expanded":n,"aria-haspopup":"dialog","data-zta":"chatbotFloatingCTA",tabIndex:n?-1:0,children:(0,c.jsx)(_,{"aria-hidden":"true",className:b().icon})})})}):null};var y=a(91426),P=a(5862),w=a(25737),I=a(28107),A=a(78318);function j(){return(j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let E=function(e){return y.createElement("svg",j({width:36,height:36,fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),r||(r=y.createElement("g",{clipPath:"url(#titleIcon_svg__clip0_1072_355114)"},y.createElement("path",{d:"M0 18C0 8.059 8.059 0 18 0s18 8.059 18 18-8.059 18-18 18S0 27.941 0 18z",fill:"url(#titleIcon_svg__pattern0_1072_355114)"}))),n||(n=y.createElement("defs",null,y.createElement("clipPath",{id:"titleIcon_svg__clip0_1072_355114"},y.createElement("path",{d:"M0 18C0 8.059 8.059 0 18 0s18 8.059 18 18-8.059 18-18 18S0 27.941 0 18z",fill:"#fff"})),y.createElement("pattern",{id:"titleIcon_svg__pattern0_1072_355114",patternContentUnits:"objectBoundingBox",width:1,height:1},y.createElement("use",{xlinkHref:"#titleIcon_svg__image0_1072_355114",transform:"scale(.00694)"})),y.createElement("image",{id:"titleIcon_svg__image0_1072_355114",width:144,height:144,preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,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"}))))};function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let k=function(e){return y.createElement("svg",S({width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),s||(s=y.createElement("path",{d:"M16.002 3A13.001 13.001 0 003.29 13.3a13 13 0 0018.82 14.177l4.258 1.42a2 2 0 002.53-2.53l-1.419-4.257a13.002 13.002 0 001.15-9.21l-.358.968a2.525 2.525 0 01-1.293 1.41 11 11 0 01-1.453 6.23.999.999 0 00-.082.817L27 27l-4.674-1.56a1.003 1.003 0 00-.819.083 11.002 11.002 0 01-16.13-6.68A11.002 11.002 0 0117.373 5.087a2.042 2.042 0 01.2-1.602l.084-.131.095-.124c.027-.033.056-.066.085-.098A13 13 0 0016.002 3z",fill:"#278403"})),l||(l=y.createElement("g",{clipPath:"url(#zoomyBubble_svg__clip0_1569_117074)",fill:"#278403"},y.createElement("path",{d:"M21.072 6.52l2.56-.946.943-2.562a.79.79 0 011.483 0l.949 2.562 2.562.943a.79.79 0 010 1.483l-2.562.949-.943 2.562a.79.79 0 01-1.483 0l-.95-2.562-2.561-.943a.79.79 0 010-1.483l.002-.003zM18.64 2.472l.996-.367.366-.996a.307.307 0 01.577 0l.369.996.995.366a.307.307 0 010 .577l-.995.369-.367.996a.307.307 0 01-.576 0l-.37-.996-.995-.367a.308.308 0 010-.576v-.002zM19.208 10.614l.684-.191.3-.645a.206.206 0 01.384.032l.192.685.645.3a.206.206 0 01-.032.384l-.685.192-.299.645a.206.206 0 01-.385-.032l-.192-.685-.645-.3a.206.206 0 01.032-.384z"}))),i||(i=y.createElement("defs",null,y.createElement("clipPath",{id:"zoomyBubble_svg__clip0_1569_117074"},y.createElement("path",{fill:"#fff",transform:"matrix(-1 0 0 1 30.668 .627)",d:"M0 0h12.706v12.706H0z"})))))};var N=a(74038),T=a(67295);let R=T.Ik({value:T.ai().optional(),label:T.Yj().optional(),labelFull:T.Yj().optional(),labelPrefix:T.Yj().optional(),currency:T.Yj().optional()}),L=T.Ik({type:T.Yj().optional(),label:T.Yj().optional(),value:T.ai().optional()}),O=T.Ik({text:T.Yj().optional()}),B=T._H({id:T.Yj().optional(),type:T.Yj().optional(),priceType:T.Yj().optional(),price:R.optional(),referencePrice:R.optional(),unitPrice:R.optional(),discount:L.optional(),tooltip:O.optional()}),F=T.Ik({averageRating:T.ai(),reviewCount:T.ai()}),M=T._H({offers:T.YO(B).optional(),feedback:F.optional(),variant_image_url:T.Yj().optional()}),V=e=>{let t=M.safeParse(e);if(!t.success)return(0,N.vV)({error:t.error,action:"normalizeArticleShopCard"}),e;let{offers:a,feedback:r,variant_image_url:n}=t.data;return{...e,offers:a,feedback:r,variantImageUrl:n}};var z=a(9128),K=a(121);let U=e=>e.block_type===K.k.ARTICLE_CAROUSEL?{...e,content:e.content.map(V)}:e,G=e=>{var t;return{role:e.role,content:e.content.map(U),trace_id:null!=(t=e.trace_id)?t:null}},D=(0,y.createContext)({}),Q=()=>(0,y.useContext)(D),W=e=>{var t,a,r;let{children:n,isOpen:s,config:l,initialMessage:i,onInitialMessageConsumed:o}=e,[d,u]=(0,y.useState)([]),[p,C]=(0,y.useState)(!1),[m,f]=(0,y.useState)(!1),v=(0,y.useRef)(!1),b=(0,y.useCallback)(e=>e.map(G),[]),_=(0,y.useCallback)(async()=>
1{if((0,h.B)()&&s&&l){f(!1),C(!0);try{let e=await (0,z.dp)(l),t=b(e.messages);u(t)}catch(e){(0,N.vV)({error:e,action:"initializeChat"}),f(!0)}finally{C(!1)}}},[s,b,l]),x=(0,y.useCallback)(async()=>{if(l){u([]),C(!0);try{let e=await (0,z.CX)(l),t=b(e.messages);u(t)}catch(e){console.error("Error refreshing chat:",e)}finally{C(!1)}}},[b,l]),P=(0,y.useCallback)(async e=>{if(!e.trim()||p||!l)return!1;f(!1),C(!0);try{let t={role:"user",content:[{block_type:K.k.MARKDOWN,content:e.trim()}],trace_id:null};v.current=!0,u(e=>[...e,t]);let a=await (0,z.gJ)({...l,message:e.trim()});return u(e=>[...e,G(a)]),!0}catch(e){return console.error("Error sending message:",e),f(!0),!1}finally{C(!1)}},[p,l]),w=(0,y.useCallback)(async e=>{e.trim()&&!p&&await P(e)},[p,P]),I=(0,y.useCallback)(async(e,t)=>{if(!l)return!1;try{return await (0,z.NN)({siteId:l.siteId,sid:l.sid,traceId:e,rating:t}),!0}catch(e){return!1}},[l]),A=(0,y.useRef)(!1);return(0,y.useEffect)(()=>{let e=s&&!A.current;A.current=s,s&&(async()=>{e&&!d.some(e=>"user"===e.role)&&await _(),i&&(null==o||o(),await P(i.message))})()},[s,i]),(0,c.jsx)(D.Provider,{value:{messages:d,isLoading:p,initializeChat:_,sendMessage:P,selectSuggestedQuestion:w,submitMessageFeedback:I,isOpen:s,refreshChat:x,isApiError:m,suppressBottomScrollRef:v,siteId:null!=(t=null==l?void 0:l.siteId)?t:0,domain:null!=(a=null==l?void 0:l.domain)?a:"",locale:null!=(r=null==l?void 0:l.locale)?r:"",trackingPage:(0,g.j)(l)},children:n})};var Y=a(24232),H=a(89245),Z=a(76640),J=a.n(Z),q=a(47550),X=a.n(q);let $=()=>(0,c.jsxs)("div",{className:X().loadingIndicator,children:[(0,c.jsx)("span",{}),(0,c.jsx)("span",{}),(0,c.jsx)("span",{})]});var ee=a(33931),et=a.n(ee);let ea=(0,y.forwardRef)(function(e,t){let{sender:a,isLastInGroup:r=!0,component:n,isLoading:s=!1,isFullWidth:l=!1}=e;return(0,c.jsx)("div",{ref:t,className:J()(et().chatBubble,et()[a],{[et().lastInGroup]:r,[et().fullWidth]:l}),"data-zta":"chat-bubble-".concat(a),children:(0,c.jsx)("div",{className:et().bubbleWrapper,children:(0,c.jsx)("div",{className:et().bubbleContent,children:s?(0,c.jsx)($,{}):n})})})});var er=a(63364),en=a(33606),es=a(3069),el=a.n(es);let ei=e=>{let{content:t}=e;return(0,c.jsx)("div",{className:el().markdownBlock,"data-zta":"markdown-block",children:(0,c.jsx)(er.oz,{remarkPlugins:[en.A],components:{table:e=>{let{children:t}=e;return(0,c.jsx)("div",{className:el().tableWrapper,children:(0,c.jsx)("table",{children:t})})}},children:t})})};var eo=a(42225),ec=a.n(eo);let ed=e=>{let{traceId:t,onFeedback:a}=e,{t:r}=(0,m.useTranslation)(),[n,s]=(0,y.useState)(()=>(0,H.EX)(t)),[l,i]=(0,y.useState)(!1),o=async e=>{i(!0),s(e),await a(t,e)?(0,H.FZ)(t,e):s(n),i(!1)};return(0,c.jsxs)("div",{className:ec().feedback,role:"group","aria-label":r("shop.chatbot.feedback.copy"),"data-zta":"chatbot-feedback",children:[(0,c.jsx)("span",{className:ec().title,children:r("shop.chatbot.feedback.copy")}),(0,c.jsx)(I.K,{ariaLabel:r("shop.chatbot.feedback.positive.aria-label"),"aria-pressed":1===n,disabled:l,onClick:()=>1!==n&&o(1),variant:"ghost",size:"small","data-zta":"chatbot-feedback-positive",children:1===n?(0,c.jsx)(P.ThumbsUpFilled,{size:20}):(0,c.jsx)(P.ThumbsUp,{size:20})}),(0,c.jsx)(I.K,{ariaLabel:r("shop.chatbot.feedback.negative.aria-label"),"aria-pressed":0===n,disabled:l,onClick:()=>0!==n&&o(0),variant:"ghost",size:"small","data-zta":"chatbot-feedback-negative",children:0===n?(0,c.jsx)(P.ThumbsDownFilled,{size:20}):(0,c.jsx)(P.ThumbsDown,{size:20})})]})};var eu=a(7675);let eh=["#F7B9C3","#C1E3EA","#FFEDB0","#BFE49F","#EAEAEA","#D7C2E5","#D7EEC2","#F7D158"];var ep=a(37467),eC=a.n(ep);let eg=(e,t)=>"%"===t?"".concat(e).concat(t):"".concat(e," ").concat(t),em=e=>{let{title:t,items:a,productImage:r}=e,[n,s]=(0,y.useState)(!1),{t:l}=(0,m.useTranslation)(),i=[...a].sort((e,t)=>t.numerical_value-e.numerical_value),o=(e=>{var t,a;return(null==(a=e[0])||null==(t=a.unit)?void 0:t.trim())||"%"})(i),d=i.slice(0,8),u=d.reduce((e,t)=>e+t.numerical_value,0),h=d.map(e=>({...e,percentage:0===u?0:e.numerical_value/u*100})),p=d.length<=4;return(0,c.jsx)("div",{className:eC().nutritionChart,children:(0,c.jsxs)("div",{className:eC().container,children:[(0,c.jsxs)("div",{className:eC().content,children:[(0,c.jsx)(eu.P1,{className:eC().introText,children:t}),(0,c.jsx)("div",{className:eC().barsContainer,children:h.map((e,t)=>(0,c.jsx)("div",{className:eC().bar,"data-zta":"nutritionBar",style:{backgroundColor:eh[t%eh.length],width:"".concat(e.percentage,"%")}},"".concat(e.label,"-").concat(t)))}),(0,c.jsxs)("div",{className:eC().legendArea,children:[r&&(0,c.jsx)("div",{className:eC().productImage,children:(0,c.jsx)(A.it,{src:r,height:75,width:75,alt:t||""})}),(0,c.jsx)("div",{className:eC().legendContainer,children:d.map((e,t)=>(0,c.jsxs)("div",{className:J()(eC().legendItem,p&&eC().legendItemFourOrLess),children:[(0,c.jsx)("span",{className:eC().colorDot,style:{backgroundColor:eh[t%eh.length]}}),(0,c.jsxs)(eu.P1,{className:eC().legendLabel,children:[(0,c.jsx)("span",{children:eg(e.numerical_value,o)})," ",e.label]})]},"".concat(e.label,"-").concat(t)))})]})]}),n&&(0,c.jsx)("div",{className:eC().detailList,children:d.map((e,t)=>(0,c.jsxs)("div",{className:eC().detailItem,children:[(0,c.jsxs)(eu.P1,{bold:!0,children:[e.label," ",eg(e.numerical_value,o)]}),(0,c.jsx)(eu.P1,{children:e.description})]},"".concat(e.label,"-").concat(t)))}),(0,c.jsx)("button",{className:eC().detailButton,onClick:()=>s(!n),children:n?(0,c.jsxs)(c.Fragment,{children:[l("chatbot.nutritionChart.seeLess"),(0,c.jsx)(P.ArrowAngleUp,{size:12})]}):(0,c.jsxs)(c.Fragment,{children:[l("chatbot.nutritionChart.seeMoreDetail")," ",(0,c.jsx)(P.ArrowAngleDown,{size:12})]})})]})})};var ef=a(34185);let ev=e=>{if(!e)return{};
1let[t,a]=e.split(/\s*\/\s*/,2);return{price:t,unit:a}},eb={kg:"kg",g:"kg",l:"l",ml:"l"},e_=/\d+(?:[.,]\d+)?\s*(kg|g|l|ml)\b/i,ex=function(){var e,t;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,n=a.map(e=>{var t;return ev(null==(t=e.unitPrice)?void 0:t.labelFull).unit}).find(Boolean),s=null==r||null==(t=r.match(e_))||null==(e=t[1])?void 0:e.toLowerCase();return null!=n?n:s&&eb[s]},ey=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return null!=(e=t.find(e=>"1P"===e.type||"3P"===e.type))?e:t[0]},eP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.find(e=>"1P_AUS"===e.type)},ew=e=>{var t,a,r;return{value:null!=(t=null==e?void 0:e.value)?t:0,label:null==e?void 0:e.label,labelFull:null!=(a=null==e?void 0:e.labelFull)?a:"",labelPrefix:null==e?void 0:e.labelPrefix,currency:null!=(r=null==e?void 0:e.currency)?r:""}};var eI=a(13659),eA=a(29117);let ej=e=>"".concat(e.product_id),eE=(e,t)=>{let a=(0,y.useRef)(!1),r=(0,y.useRef)(null);(0,y.useEffect)(()=>{let n=e.current;if(!n)return;let s=new IntersectionObserver(e=>{for(let n of e)n.isIntersecting&&!a.current?r.current=setTimeout(()=>{a.current=!0,r.current=null,t()},1e3):r.current&&(clearTimeout(r.current),r.current=null)},{threshold:.5});return s.observe(n),()=>{s.disconnect(),r.current&&(clearTimeout(r.current),r.current=null)}},[e,t])};var eS=a(13021),ek=a.n(eS),eN=a(11409);let eT=e=>{var t;let{card:a}=e;return(0,c.jsx)("div",{className:ek().productBadges,children:null==(t=a.badges)?void 0:t.slice(0,5).map(e=>(0,c.jsx)(eN.L,{label:e,variant:"info"},e))})},eR=e=>{var t;let{card:a}=e;return(0,c.jsx)(A.it,{className:ek().productImage,width:65,height:65,format:"webp",src:null!=(t=a.variantImageUrl)?t:a.image_url,alt:a.title})};var eL=a(56171),eO=a(7247);let eB=e=>{var t,a,r,n,s,l,i,o;let{card:d}=e,{t:u}=(0,m.useTranslation)(),h=ey(d.offers);if(!(null==h||null==(t=h.price)?void 0:t.label))return null;let p=ex(d.offers,d.variant_name),C=(0,eO.Tt)(null==(a=h.referencePrice)?void 0:a.label,null==(r=h.discount)?void 0:r.label),g=C&&(null==(n=h.referencePrice)?void 0:n.labelPrefix)?{label:h.referencePrice.labelPrefix,...C}:void 0,f=(0,eO.xh)({text:null==(s=h.tooltip)?void 0:s.text,position:"top-left"}),v=f?{label:u("price.refPriceAriaLabel"),...f,width:"sm"}:void 0,b=eP(d.offers),_=(null==b||null==(l=b.price)?void 0:l.label)?{amount:b.price.label,label:u("autoshipment.icon.alt")}:void 0;return(0,c.jsx)(eL.N,{size:"large",price:h.price.label,priceType:h.priceType,pricePrefix:null==(i=h.referencePrice)?void 0:i.labelFull,priceSuffix:((e,t)=>{var a;let r=null==e||null==(a=e.unitPrice)?void 0:a.labelFull;if(!r)return;let{unit:n}=ev(r);return n||!t?r:"".concat(r," / ").concat(t)})(h,p),isReducedPrice:!!(null==(o=h.referencePrice)?void 0:o.labelFull),refPrice:g,tooltip:v,autoshipmentPrice:_})};var eF=a(23738);let eM=e=>{var t,a,r,n;let{card:s}=e,{t:l}=(0,m.useTranslation)();return(0,c.jsx)(eF.G,{size:"sm",rating:null!=(r=null==(t=s.feedback)?void 0:t.averageRating)?r:0,count:String(null!=(n=null==(a=s.feedback)?void 0:a.reviewCount)?n:0),ratingLabel:l("catalog.explore.reviews.rating.accessibility.label"),notRatedLabel:l("product.details.accessibility.notRated")})},eV=e=>{let{card:t}=e,a=!!t.article_url,r=(0,y.useRef)(null),{trackClick:n}=((e,t)=>{let{position:a,card:r}=t,{trackingPage:n}=Q(),s=(0,eA.jt)(n),l=(0,y.useCallback)(()=>({name:"chatbot_product_card",id:"position_".concat(a),value:ej(r)}),[r,a]);return eE(e,(0,y.useCallback)(()=>{let e=(0,h.Kg)();s({event:"IMPRESSION",detail:{customer:{id:e?"".concat(e):void 0},target:l()}})},[s,l])),{trackClick:(0,y.useCallback)(()=>{let e=(0,h.Kg)();s({event:"CLICK",detail:{customer:{id:e?"".concat(e):void 0},target:l()}})},[s,l])}})(r,{position:1,card:t});return(0,c.jsxs)("div",{ref:r,className:ek().productCardContainer,children:[(0,c.jsxs)(eI.M,{className:ek().productCard,href:a?t.article_url:void 0,onClick:a?n:void 0,children:[(0,c.jsx)(eR,{card:t}),(0,c.jsxs)("div",{className:ek().productInfo,children:[(0,c.jsx)(w.H3,{className:ek().productName,children:t.title}),(0,c.jsx)(eu.P2,{className:ek().productDescription,children:t.variant_name}),(0,c.jsx)(eB,{card:t}),(0,c.jsx)(eM,{card:t})]})]}),(0,c.jsx)(eT,{card:t})]})};var ez=a(24305),eK=a.n(ez);let eU=e=>{let{card:t,position:a,containerRef:r}=e,{trackingPage:n}=Q(),s=(0,eA.jt)(n),l=(0,y.useRef)(null),i=a+1;(0,y.useEffect)(()=>{var e,t;let n=null==(e=r.current)?void 0:e.querySelectorAll('[data-zta="product-slide"]');l.current=null!=(t=null==n?void 0:n[a])?t:null},[r,a]);let o=(0,y.useCallback)(()=>({name:"chatbot_product_card",id:"position_".concat(i),value:ej(t)}),[t,i]);return eE(l,(0,y.useCallback)(()=>
1{s({event:"IMPRESSION",detail:{target:o()}})},[s,o])),(0,y.useEffect)(()=>{let e=l.current;if(!e)return;let t=()=>{s({event:"CLICK",detail:{target:o()}})};return e.addEventListener("click",t),()=>e.removeEventListener("click",t)},[r,a,s,o]),null},eG=e=>{let{label:t,className:a}=e;return(0,c.jsx)(A.Dm,{className:a,text:t,isRecommendation:!0})},eD={slidesPerGroup:2},eQ={1:eD,544:eD,1100:eD,1400:eD,1600:eD},eW=e=>{let{cards:t}=e,a=(0,y.useId)(),{trackingPage:r,siteId:n,domain:s,locale:l}=Q(),i=(()=>{let{t:e}=(0,m.useTranslation)();return(0,y.useMemo)(()=>({skipCarousel:t=>e("catalog.content.skipCarousel",{0:t}),arrowLeft:e("recommendations.arrow.left"),arrowRight:e("recommendations.arrow.right"),discountBadge:t=>e("shop.photoOverlay.Discount",{0:t}),refPriceAriaLabel:e("price.refPriceAriaLabel"),addToCartAriaLabel:e("accessibility.add.to.cart"),ratingAccessibilityLabel:e("catalog.explore.reviews.rating.accessibility.label"),sponsoredProductsLabel:e("general.sponsored.products"),wasPrice:e("ab_test.zooplus.wasPrice")}),[e])})(),o=(0,y.useRef)(null),d=(0,y.useMemo)(()=>t.length>1?{caption:"",name:"chatbot-product-slider",recommendations:t.map(e=>(e=>{var t,a,r,n,s,l,i;let o=null!=(r=e.offers)?r:[],c=ex(o,e.variant_name);return{siteId:0,language:"",locale:"",article:{id:e.article_id,variantId:e.article_id,name:e.variant_name,unit:c},product:{shopIdentifier:e.product_id,name:e.title,pictureUrl:null!=(n=e.variantImageUrl)?n:e.image_url,link:null!=(s=e.article_url)?s:"",cleanLink:e.article_url||void 0,feedbackAggregate:{rating:null!=(l=null==(t=e.feedback)?void 0:t.averageRating)?l:0,reviewCount:null!=(i=null==(a=e.feedback)?void 0:a.reviewCount)?i:0},badges:{zooplusChoice:(e=>{let t=null==e?void 0:e.find(e=>/zooplus\s*choice/i.test(e));return t?{active:!0,label:t}:void 0})(e.badges),sponsored:!1}},articleOffers:o.map((e,t)=>((e,t,a)=>{var r,n,s;let l=((e,t)=>{if(!(null==e?void 0:e.labelFull)||!t)return;let{price:a}=ev(e.labelFull);return{...ew(e),labelFull:null!=a?a:""}})(e.unitPrice,a);return{id:null!=(n=e.id)?n:String(t),type:null!=(s=e.type)?s:"1P",price:ew(e.price),priceType:e.priceType,...e.referencePrice&&{referencePrice:ew(e.referencePrice)},...l&&{unitPrice:l},...e.discount&&{discount:e.discount},...(null==(r=e.tooltip)?void 0:r.text)&&{tooltip:{text:e.tooltip.text}}}})(e,t,c))}})(e))}:void 0,[t]),u=(0,y.useMemo)(()=>{let e=(0,h.Kg)();return{locale:l,domain:s,siteId:n,pageLocation:window.location.href,customerId:e?"".concat(e):void 0}},[l,s,n]);return 0===t.length?null:1===t.length?(0,c.jsx)(eV,{card:t[0]}):(0,c.jsxs)("div",{ref:o,children:[(0,c.jsx)(ef.Rx,{recoContainer:d,horizontal:!0,identifier:a,className:eK().hideTitle,customSlidesConfiguration:eQ,sliderClassName:eK().carousel,isZooplusChoiceEnabled:!0,renderZooplusChoiceBadge:eG,translations:i,trackingPage:r,trackingContext:u}),t.map((e,t)=>(0,c.jsx)(eU,{card:e,position:t,containerRef:o},"".concat(e.product_id,"-").concat(e.article_id)))]})};var eY=a(36498);function eH(){return(eH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let eZ=function(e){return y.createElement("svg",eH({width:15,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o||(o=y.createElement("g",{filter:"url(#proposalsIcon_svg__filter0_d_35_43080)",transform:"translate(-40.95 -8.45)"},y.createElement("path",{d:"M53.644 13.07a.303.303 0 01-.157-.038.254.254 0 01-.102-.133L52.85 11.6l-1.346-.61a.249.249 0 01-.13-.106.332.332 0 01-.037-.162c0-.064.013-.118.037-.162a.248.248 0 01.13-.105l1.346-.592.535-1.241a.254.254 0 01.102-.134.303.303 0 01.157-.038c.061 0 .113.013.156.038.044.026.077.07.102.134l.535 1.24 1.347.593c.061.025.104.06.13.105a.331.331 0 01.036.162.332.332 0 01-.037.162.25.25 0 01-.13.105l-1.346.611-.535 1.299a.254.254 0 01-.102.133.303.303 0 01-.156.039zm0 11.38a.318.318 0 01-.148-.038.239.239 0 01-.11-.134l-.536-1.24-1.328-.593a.248.248 0 01-.13-.105.331.331 0 01-.036-.162c0-.064.012-.118.037-.162a.249.249 0 01.129-.105l1.328-.592.535-1.318a.253.253 0 01.102-.133.302.302 0 01.157-.038c.061 0 .114.012.157.038.043.025.076.07.101.133l.535 1.318 1.328.592c.062.025.105.06.13.105a.332.332 0 01.036.162.331.331 0 01-.036.162.248.248 0 01-.13.105l-1.328.592-.535 1.241a.239.239 0 01-.11.134.3
118.318 0 01-.148.038zm-8.1-3.303a.561.561 0 01-.498-.325l-1.2-2.654-2.582-1.203a.582.582 0 01-.314-.515c0-.102.028-.2.083-.296a.557.557 0 01.23-.22l2.584-1.202 1.199-2.635a.546.546 0 01.498-.344.562.562 0 01.498.325l1.218 2.654 2.565 1.203c.11.05.193.124.249.22a.583.583 0 01.083.295c0 .102-.028.2-.083.296a.538.538 0 01-.25.22l-2.564 1.202-1.218 2.654a.492.492 0 01-.212.248.584.584 0 01-.286.077z",fill:"#323942"}))))};var eJ=a(87543),eq=a.n(eJ);let eX=e=>{let{questions:t}=e,{t:a}=(0,m.useTranslation)(),{selectSuggestedQuestion:r,trackingPage:n}=Q(),s=(0,eA.jt)(n),l=async e=>{let t=(0,h.Kg)();s({event:"CLICK",detail:{customer:{id:t?"".concat(t):void 0},target:{name:"chatbot_window",id:"send_suggested_question"}}}),await r(e)};return 0===t.length?null:(0,c.jsxs)("div",{className:eq().container,children:[(0,c.jsxs)("div",{className:eq().title,children:[(0,c.jsx)(eZ,{}),a("shop.chatbot.note.ai-suggested")]}),(0,c.jsx)("div",{className:eq().chipsContainer,children:t.map((e,t)=>(0,c.jsx)(eY.ActionChip,{className:eq().chip,label:e.display_text,onClick:()=>l(e.display_text),"data-zta":"suggested-question-".concat(t)},t))})]})};var e$=a(88587),e0=a.n(e$);let e1=()=>{let{messages:e,isLoading:t,isApiError:a,suppressBottomScrollRef:r,submitMessageFeedback:n}=Q(),{t:s}=(0,m.useTranslation)(),l=(0,y.useRef)(null),i=(0,y.useRef)(null),o=(0,y.useRef)(null),d=(0,y.useRef)(!1),{items:u,suggested:h}=(()=>{let t=[],a=[];return e.forEach((r,n)=>{let s=n===e.length-1;r.content.forEach(e=>{switch(e.block_type){case"markdown":t.push({sender:r.role,component:(0,c.jsx)(ei,{content:e.content})});break;case"article_carousel":e.content.length>0&&t.push({sender:r.role,component:(0,c.jsx)(eW,{cards:e.content}),isFullWidth:e.content.length>1});break;case"data_visualization":t.push({sender:r.role,component:(0,c.jsx)(em,{title:e.title,items:e.content,productImage:e.image_url}),isFullWidth:!0});break;case"suggested_prompts":a=s?e.content:[]}})}),{items:t,suggested:a}})(),p=e.at(-1),C=t||(null==p?void 0:p.role)!=="assistant"?null:p.trace_id,g=u.reduce((e,t,a)=>"user"===t.sender?a:e,-1);return(0,y.useEffect)(()=>{var t,n;if(r.current){((null==p?void 0:p.role)==="assistant"||a)&&(r.current=!1),null==(n=i.current)||n.scrollIntoView({behavior:"smooth",block:"start"});return}if(!d.current&&e.length>0){let e=(0,H.ii)();if(null!==e&&o.current){d.current=!0,o.current.scrollTop=e;return}}null==(t=l.current)||t.scrollIntoView({behavior:"smooth"})},[e,a,r,null==p?void 0:p.role]),(0,y.useEffect)(()=>{let e=o.current;if(!e)return;let t=()=>(0,H.lt)(e.scrollTop);return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)},[]),(0,c.jsxs)("div",{ref:o,className:e0().chatContent,children:[(0,c.jsxs)("div",{className:e0().messages,children:[u.map((e,a)=>{var r;let n=a===u.length-1?!t||"assistant"!==e.sender:(null==(r=u[a+1])?void 0:r.sender)!==e.sender;return(0,c.jsx)(ea,{ref:a===g?i:void 0,sender:e.sender,component:e.component,isLastInGroup:n,isFullWidth:e.isFullWidth},a)}),t&&(0,c.jsx)(ea,{sender:"assistant",isLoading:!0,isLastInGroup:!0})]}),!t&&h.length>0&&(0,c.jsx)(eX,{questions:h}),C&&(0,c.jsx)(ed,{traceId:C,onFeedback:n},C),a&&(0,c.jsx)(Y.Alert,{variant:"error",className:e0().errorAlert,children:s("chatbot.error.api.generic_try_again")}),(0,c.jsx)("div",{ref:l})]})};var e2=a(66001),e5=a(70337),e3=a.n(e5);let e4=()=>{let{t:e}=(0,m.useTranslation)(),[t,a]=(0,y.useState)(""),r=(0,y.useRef)(null),{sendMessage:n,isLoading:s,trackingPage:l}=Q(),i=(0,eA.jt)(l),o=async(e,l)=>{if(!t.trim()||s)return;let o=(0,h.Kg)(),c={id:o?"".concat(o):void 0},d={name:"chatbot_window",id:"send_message",value:l};e===u.TRACKING_EVENT.INTERACTION?i({event:u.TRACKING_EVENT.INTERACTION,detail:{customer:c,components:[d]}}):i({event:u.TRACKING_EVENT.CLICK,detail:{customer:c,target:d}}),a(""),r.current&&(r.current.style.height="auto"),await n(t)||a(t)};return(0,c.jsxs)("form",{className:J()(e3().formContainer,{[e3().withText]:t.length>0}),onSubmit:e=>e.preventDefault(),"data-zta":"chatbotInput",children:[(0,c.jsx)(e2.TextareaField,{labelText:"",className:e3().textarea,componentProps:{value:t,onChange:e=>{let t=e.target;r.current=t,a(t.value),t.style.height="auto",t.style.height="".concat(t.scrollHeight,"px")},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),o(u.TRACKING_EVENT.INTERACTION,"keyboard_enter"))},placeholder:e("shop.chatbot.input.placeholder"),rows:1,"aria-label":e("shop.chatbot.input.label")}}),(0,c.jsx)(I.K,{ariaLabel:"shop.chatbot.input.send",onClick:()=>o(u.TRACKING_EVENT.CLICK,"send_button"),disabled:!t.trim()||s,children:(0,c.jsx)(P.ArrowUp,{size:20})})]})};var e7=a(78573),e8=a.n(e7);
1let e6='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',e9=e=>{let{onClose:t,isEnhanced:a}=e,{t:r}=(0,m.useTranslation)(),{isOpen:n,refreshChat:s}=Q(),l=["none","xs","sm"].includes((0,A.dv)()),{dialogRef:i,restoreFocus:o}=function(e,t){let a=(0,y.useRef)(null),r=(0,y.useRef)(null),n=(0,y.useCallback)(()=>{t&&requestAnimationFrame(()=>{var e;(null==(e=r.current)?void 0:e.isConnected)&&r.current.focus()})},[t]);return(0,y.useEffect)(()=>{t&&e&&(r.current=document.activeElement,requestAnimationFrame(()=>{let e=a.current;if(!e)return;let t=e.querySelector(e6);(null!=t?t:e).focus()}))},[e,t]),(0,y.useEffect)(()=>{if(!t||!e)return;let r=e=>{if("Tab"!==e.key)return;let t=a.current;if(!t)return;let r=t.querySelectorAll(e6);if(0===r.length)return;let n=r[0],s=r[r.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),s.focus()):e.shiftKey||document.activeElement!==s||(e.preventDefault(),n.focus())};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e,t]),{dialogRef:t?a:void 0,restoreFocus:n}}(n,a),[d,u]=(0,y.useState)(null),[h,p]=(0,y.useState)(0);(0,y.useEffect)(()=>{if(!n||!l)return;let e=null,t=()=>{var e,t,a;let r=window.visualViewport,n=null!=(e=null==r?void 0:r.height)?e:window.innerHeight,s=Math.max(0,window.innerHeight-((null!=(t=null==r?void 0:r.height)?t:window.innerHeight)+(null!=(a=null==r?void 0:r.offsetTop)?a:0)));u(n),p(s)},a=()=>{t(),null!==e&&window.clearTimeout(e),e=window.setTimeout(t,180)};a();let r=window.visualViewport;return null==r||r.addEventListener("resize",a),null==r||r.addEventListener("scroll",a),()=>{null==r||r.removeEventListener("resize",a),null==r||r.removeEventListener("scroll",a),null!==e&&window.clearTimeout(e)}},[n,l]);let C=l&&null!==d?{"--chatbot-viewport-height":"".concat(d,"px"),"--chatbot-keyboard-inset":"".concat(h,"px")}:void 0;if((0,y.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"===e.key&&(null==t||t(),o())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n,t,o]),(e=>{(0,y.useEffect)(()=>{if(!e)return void(0,A.ZZ)(!1);let{body:t,documentElement:a}=document,r=window.scrollY,n={bodyOverflow:t.style.overflow,bodyPosition:t.style.position,bodyTop:t.style.top,bodyWidth:t.style.width,htmlOverflow:a.style.overflow,htmlOverscrollY:a.style.overscrollBehaviorY};(0,A.ZZ)(!0),a.style.overflow="hidden",a.style.overscrollBehaviorY="none",t.style.overflow="hidden",t.style.position="fixed",t.style.top="-".concat(r,"px"),t.style.width="100%";let s=()=>{0!==window.scrollY&&window.scrollTo(0,0)};return window.addEventListener("scroll",s,{passive:!0}),()=>{window.removeEventListener("scroll",s),(0,A.ZZ)(!1),t.style.overflow=n.bodyOverflow,t.style.position=n.bodyPosition,t.style.top=n.bodyTop,t.style.width=n.bodyWidth,a.style.overflow=n.htmlOverflow,a.style.overscrollBehaviorY=n.htmlOverscrollY,window.scrollTo(0,r)}},[e])})(n&&l),!n)return null;let g=a?k:E;return(0,c.jsx)("div",{className:"".concat(e8().scrollContainer," scroll-container"),children:(0,c.jsx)("div",{className:"".concat(e8().scroller," scroller"),children:(0,c.jsx)("div",{className:e8().scrollerInner,children:(0,c.jsx)("div",{className:e8().scrollerContent,children:(0,c.jsxs)("div",{ref:i,className:e8().popup,style:C,role:"dialog","aria-label":r("shop.chatbot.title"),"aria-modal":a||void 0,tabIndex:a?-1:void 0,"data-zta":"chatbotPopup",children:[(0,c.jsxs)("div",{className:e8().header,children:[(0,c.jsxs)("div",{className:e8().logoContainer,children:[(0,c.jsx)(g,{"aria-hidden":"true"}),!a&&(0,c.jsx)("div",{className:e8().statusInfo}),a&&(0,c.jsx)(w.H3,{className:e8().title,"data-zta":"chatbotPopupTitle",children:r("shop.chatbot.title")})]}),!a&&(0,c.jsx)(w.H3,{className:e8().title,"data-zta":"chatbotPopupTitle",children:r("shop.chatbot.title")}),(0,c.jsxs)("div",{className:e8().headerActions,children:[(0,c.jsx)(I.K,{ariaLabel:r("shop.chatbot.refresh"),variant:"ghost",className:e8().actionButton,"data-zta":"chatbotPopupRefresh",onClick:s,children:(0,c.jsx)(P.ArrowLoop,{size:16})}),(0,c.jsx)(I.K,{ariaLabel:r("general.button.close"),variant:"ghost",className:e8().actionButton,"data-zta":"chatbotPopupClose",onClick:()=>{null==t||t(),o()},children:(0,c.jsx)(P.Remove,{size:16})})]})]}),(0,c.jsx)("div",{className:e8().content,"data-zta":"chatbotPopupContent",children:(0,c.jsx)(e1,{})}),(0,c.jsx)("div",{className:e8().footer,"data-zta":"chatbotPopupFooter",children:(0,c.jsx)(e4,{})})]})})})})})},te=e=>{let{config:t,isOpen:a=!1,onClose:r,isEnhanced:n=!1,initialMessage:s,onInitialMessageConsumed:l}=e;return(0,c.jsx)(W,{isOpen:a,config:t,initialMessage:s,onInitialMessageConsumed:l,children:(0,c.jsx)(e9,{onClose:r,isEnhanced:n})})},tt=e=>{let{config:t,onOpen:a,onClose:r}=e,{isOpen:n,open:s,close:l,initialMessage:i,clearInitialMessage:o}=(0,p.r)(),{isEligible:d,isFloatingButtonEnabled:m}=(0,C.p)();if(!d)return null;let f=e=>{if(!t)return;let a=(0,h.Kg)();(0,u.trackEvent)({event:u.TRACKING_EVENT.CLICK,page:(0,g.j)(t),detail:{locale:t.locale,domain:t.domain,siteId:t.siteId,pageLocation:window.location.href,customer:{id:a?"".concat(a):void 0},target:e}})};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(x,{onClick:()=>{f({name:"chatbot_cta",id:"open_chatbot"}),s(),null==a||a()},isEnabled:m}),t&&(0,c.jsx)(te,{config:t,isOpen:n,onClose:()=>{f({name:"chatbot_window",id:"close_chatbot"}),l(),null==r||r()},isEnhanced:m,initialMessage:i,onInitialMessageConsumed:o})]})},ta=e=>{let{siteId:t,domain:a,locale:r}=e,n=(0,d.L)({siteId:t,domain:a,locale:r});return(0,c.jsx)(tt,{config:n})}},33931:e=>{e.exports={chatBubble:"ChatBubble_chatBubble__7RqCG","fade-in":"ChatBubble_fade-in__zBhIj",bubbleContent:"ChatBubble_bubbleContent___Z0y1",assistant:"ChatBubble_assistant__Ff74U",user:"ChatBubble_user__Txayd",lastInGroup:"ChatBubble_lastInGroup__eo6zL",fullWidth:"ChatBubble_fullWidth__0lP9b",bubbleWrapper:"ChatBubble_bubbleWrapper__IarjL",messageText:"ChatBubble_messageText__CyoL_"}},36537:(e,t,a)=>{"use strict";a.d(t,{JL:()=>u});var r=a(47778),n=a(1098),s=a(36319),l=a(74038);let i=/(\{[a-zA-Z0-9_.]+\}
1)/g,o=e=>e instanceof Object&&e.constructor===Object,c=/\[?%(\d+\$)?s\]?/g,d=e=>{if("string"==typeof e)return(e=>{let t=e.replace(i,"{$1}").replaceAll("{{{","{{").replaceAll("}}}","}}"),a=0;return t.replace(c,(e,t)=>{let r=t?parseInt(t)-1:a++;return"{{".concat(r,"}}")})})(e);if(o(e)){let t={};return Object.entries(e).forEach(e=>{let[a,r]=e;t[a]=d(r)}),t}return e},u=(e,t)=>{let a=(e=>(Object.entries(e.translation).forEach(t=>{let[a,r]=t;e.translation[a]=d(r)}),e))((e=>{let t={translation:{}};return Object.entries(e).forEach(e=>{let[a,r]=e;(o(r)?t:t.translation)[a]=r}),t})(t)),i={lng:e,ns:Object.keys(a),preload:[e],react:{useSuspense:!1},defaultNS:"translation",resources:{[e]:a},load:"currentOnly",parseMissingKeyHandler:()=>"",fallbackLng:!1,interpolation:{escapeValue:!1}};Object.assign(i,{backend:{loadPath:(e,t)=>!("dev"===e[0]||Object.keys(a).includes(t[0]))&&"".concat(s.Rt.CDN_URL,"/media/").concat(t[0],"/").concat(e[0],".json"),parse:e=>{let t=JSON.parse(e);return"object"!=typeof t||null===t?{}:d(t)},reloadInterval:108e5},partialBundledLanguages:!0});let c=(0,r.Q_)();return c.use(n.A),c.on("failedLoading",(e,t,a)=>{(0,l.vV)({error:Error(a),action:"Could not load ".concat(e," in ns ").concat(t,", error message: ").concat(a)})}),c.init(i),c}},37467:e=>{e.exports={nutritionChart:"NutritionChart_nutritionChart__vJ_Dp",container:"NutritionChart_container__Ks6zj",content:"NutritionChart_content__0QHVT",introText:"NutritionChart_introText__04Mp7",barsContainer:"NutritionChart_barsContainer__3YBvJ",bar:"NutritionChart_bar__LBuch",productImage:"NutritionChart_productImage__wikIa",legendArea:"NutritionChart_legendArea__RG00m",legendContainer:"NutritionChart_legendContainer__RScRq",legendItem:"NutritionChart_legendItem__r8Jg6",legendItemFourOrLess:"NutritionChart_legendItemFourOrLess___nWRN",colorDot:"NutritionChart_colorDot__SMFob",legendLabel:"NutritionChart_legendLabel__btsOq",detailButton:"NutritionChart_detailButton__cwl8_",detailList:"NutritionChart_detailList__8uk91",detailItem:"NutritionChart_detailItem__8wjj_"}},39797:(e,t,a)=>{"use strict";a.d(t,{SoftNavigationListener:()=>u});var r=a(2506),n=a(76640),s=a.n(n),l=a(78947),i=a(91426),o=a(26866),c=a(88218),d=a.n(c);let u=(0,i.memo)(function(e){let{children:t}=e,a=(0,l.useRouter)(),[n,c]=(0,i.useTransition)(),[u,h]=(0,i.useState)(!1),p=(0,l.usePathname)(),C=(0,l.useSearchParams)();return(0,i.useEffect)(()=>{let e=e=>{let t=e.target instanceof Element?e.target.closest("a"):null;if(t){let r=t.getAttribute("href"),n=t.getAttribute("target");if(!r||r.startsWith("#")||r.startsWith("mailto:")||r.startsWith("tel:"))return;if(p===r)return void e.preventDefault();let s=r.startsWith("/fr/")?r.replace("/fr",""):r;(0,o.LD)(s)&&!r.startsWith("//")&&"_blank"!==n&&(e.preventDefault(),h(!0),c(()=>{a.push(r)}))}};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[a,p]),(0,i.useEffect)(()=>{h(!1)},[p,C]),(0,i.useEffect)(()=>{u?window.dispatchEvent(new Event(o.HY)):window.dispatchEvent(new Event(o.Jc))},[u]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{"data-zta":"soft-navigation-loading-bar","aria-live":"polite",className:s()(d().bar,{[d().barActive]:n||u}),children:(0,r.jsx)("div",{className:d().pulse})}),t]})})},42225:e=>{e.exports={feedback:"MessageFeedback_feedback__hGoej",title:"MessageFeedback_title__aiXRJ"}},47301:(e,t,a)=>{"use strict";a.d(t,{p:()=>l});var r=a(27360),n=a(91426),s=a(68687);let l=()=>{let e=(()=>{let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t((0,s.B)());let e=()=>{t((0,s.B)())};return window.addEventListener("consent.cookies",e),()=>{window.removeEventListener("consent.cookies",e)}},[]),e})(),t=(0,r.A0)((0,r.A2)(r.mr));return{isEligible:t&&e,isFloatingButtonEnabled:(0,r.A0)((0,r.A2)(r.J3))&&t&&e}}},47550:e=>{e.exports={loadingIndicator:"ChatbotLoading_loadingIndicator___h53m","bounce-scale-fade":"ChatbotLoading_bounce-scale-fade__k6QEe"}},62925:(e,t,a)=>{"use strict";a.d(t,{ChatbotRootProvider:()=>l});var r=a(2506),n=a(87696),s=a(81467);let l=e=>{let{children:t}=e;return(0,r.jsx)(s.H,{children:(0,r.jsx)(n.NT,{children:t})})}},63616:(e,t,a)=>{"use strict";a.d(t,{j:()=>n});var r=a(56272);let n=e=>{if(!e)return r.TRACKING_PAGE.GLOBAL;switch(e.pageType){case"PRODUCT-DETAIL":return r.TRACKING_PAGE["PRODUCT-DETAIL"];case"HOMEPAGE":return r.TRACKING_PAGE.HOMEPAGE;case"SEARCH":return r.TRACKING_PAGE.SEARCH;case"SPECIALS":return r.TRACKING_PAGE["SPECIAL-OFFERS"];case"CATEGORY":{let t=e.categoryLevel;if(t>=4)return r.TRACKING_PAGE.CATEGORY_LEVEL4;if(3===t)return r.TRACKING_PAGE.CATEGORY_LEVEL3;return r.TRACKING_PAGE.CATEGORY_LEVEL2}default:return r.TRACKING_PAGE.GLOBAL}}},70337:e=>{e.exports={formContainer:"ChatbotInput_formContainer__XGdtg",textarea:"ChatbotInput_textarea__dSXHa"}},70706:(e,t,a)=>{"use strict";a.d(t,{qu:()=>m,Vk:()=>b,QK:()=>v,Xp:()=>p,P2:()=>C});var r=a(3148);let n="http://localhost".replace(/\/+$/,"");class s{constructor(e,t=n,a=r.A){this.basePath=t,this.axios=a,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}
1class l extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}let i="https://example.com",o=function(e,t,a){if(null==a)throw new l(t,"Required parameter ".concat(t," was null or undefined when calling ").concat(e,"."))},c=function(e){for(var t=arguments.length,a=Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];let n=new URLSearchParams(e.search);!function e(t,a){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=a&&("object"==typeof a?Array.isArray(a)?a.forEach(a=>e(t,a,r)):Object.keys(a).forEach(n=>e(t,a[n],"".concat(r).concat(""!==r?".":"").concat(n))):t.has(r)?t.append(r,a):t.set(r,a))}(n,a),e.search=n.toString()},d=function(e,t,a){let r="string"!=typeof e;return(r&&a&&a.isJsonMime?a.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(void 0!==e?e:{}):e||""},u=function(e){return e.pathname+e.search+e.hash},h=function(e,t,a,r){return function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,l={...e.options,url:((null==r?void 0:r.basePath)||n.defaults.baseURL||s)+e.url};return n.request(l)}},p={User:"user",Assistant:"assistant"},C={ProductDetail:"PRODUCT-DETAIL",Homepage:"HOMEPAGE",Search:"SEARCH",Category:"CATEGORY",Specials:"SPECIALS"},g=function(e){let t={getOrCreateChatV2ChatsSitesSiteIdPost:async function(t,a,r,n,s){let l,h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};o("getOrCreateChatV2ChatsSitesSiteIdPost","siteId",t),o("getOrCreateChatV2ChatsSitesSiteIdPost","locale",a),o("getOrCreateChatV2ChatsSitesSiteIdPost","sid",r),o("getOrCreateChatV2ChatsSitesSiteIdPost","chatContextBodyV2",n);let p=new URL("/v2/chats/sites/{site_id}".replace("{site_id}",encodeURIComponent(String(t))),i);e&&(l=e.baseOptions);let C={method:"POST",...l,...h},g={},m={};void 0!==a&&(m.locale=a),g["Content-Type"]="application/json",c(p,m);let f=l&&l.headers?l.headers:{};return C.headers={...g,...f,...h.headers},C.data=d(n,C,e),{url:u(p),options:C}},resetChatV2ChatsSitesSiteIdResetChatPost:async function(t,a,r,n,s){let l,h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};o("resetChatV2ChatsSitesSiteIdResetChatPost","siteId",t),o("resetChatV2ChatsSitesSiteIdResetChatPost","locale",a),o("resetChatV2ChatsSitesSiteIdResetChatPost","sid",r),o("resetChatV2ChatsSitesSiteIdResetChatPost","chatContextBodyV2",n);let p=new URL("/v2/chats/sites/{site_id}/reset_chat".replace("{site_id}",encodeURIComponent(String(t))),i);e&&(l=e.baseOptions);let C={method:"POST",...l,...h},g={},m={};void 0!==a&&(m.locale=a),g["Content-Type"]="application/json",c(p,m);let f=l&&l.headers?l.headers:{};return C.headers={...g,...f,...h.headers},C.data=d(n,C,e),{url:u(p),options:C}},sendMessageV2ChatsSitesSiteIdMessagesPost:async function(t,a,r,n,s){let l,h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};o("sendMessageV2ChatsSitesSiteIdMessagesPost","siteId",t),o("sendMessageV2ChatsSitesSiteIdMessagesPost","locale",a),o("sendMessageV2ChatsSitesSiteIdMessagesPost","sid",r),o("sendMessageV2ChatsSitesSiteIdMessagesPost","sendMessageBodyV2",n);let p=new URL("/v2/chats/sites/{site_id}/messages".replace("{site_id}",encodeURIComponent(String(t))),i);e&&(l=e.baseOptions);let C={method:"POST",...l,...h},g={},m={};void 0!==a&&(m.locale=a),g["Content-Type"]="application/json",c(p,m);let f=l&&l.headers?l.headers:{};return C.headers={...g,...f,...h.headers},C.data=d(n,C,e),{url:u(p),options:C}}};return{getOrCreateChatV2ChatsSitesSiteIdPost:async(a,s,l,i,o,c)=>h(await t.getOrCreateChatV2ChatsSitesSiteIdPost(a,s,l,i,o,c),r.A,n,e),resetChatV2ChatsSitesSiteIdResetChatPost:async(a,s,l,i,o,c)=>h(await t.resetChatV2ChatsSitesSiteIdResetChatPost(a,s,l,i,o,c),r.A,n,e),sendMessageV2ChatsSitesSiteIdMessagesPost:async(a,s,l,i,o,c)=>h(await t.sendMessageV2ChatsSitesSiteIdMessagesPost(a,s,l,i,o,c),r.A,n,e)}};class m extends s{getOrCreateChatV2ChatsSitesSiteIdPost(e,t,a,r,n,s){return g(this.configuration).getOrCreateChatV2ChatsSitesSiteIdPost(e,t,a,r,n,s).then(e=>e(this.axios,this.basePath))}resetChatV2ChatsSitesSiteIdResetChatPost(e,t,a,r,n,s){return g(this.configuration).resetChatV2ChatsSitesSiteIdResetChatPost(e,t,a,r,n,s).then(e=>e(this.axios,this.basePath))}sendMessageV2ChatsSitesSiteIdMessagesPost(e,t,a,r,n,s){return g(this.configuration).sendMessageV2ChatsSitesSiteIdMessagesPost(e,t,a,r,n,s).then(e=>e(this.axios,this.basePath))}}let f=function(e){let t={submitResponseFeedback:async function(t,a,r,n,s){let l,h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};o("submitResponseFeedback","siteId",t),o("submitResponseFeedback","traceId",a),o("submitResponseFeedback","sid",r),o("submitResponseFeedback","feedbackBody",n);let p=new URL("/v2/feedback/sites/{site_id}/traces/{trace_id}".replace("{site_id}",encodeURIComponent(String(t))).replace("{trace_id}",encodeURIComponent(String(a))),i);e&&(l=e.baseOptions);let C={method:"POST",...l,...h},g={};g["Content-Type"]="application/json",c(p,{});let m=l&&l.headers?l.headers:{};return C.headers={...g,...m,...h.headers},C.data=d(n,C,e),{url:u(p),options:C}}};return{submitResponseFeedback:async(a,s,l,i,o,c)=>h(await t.submitResponseFeedback(a,s,l,i,o,c),r.A,n,e)}};class v extends s{submitResponseFeedback(e,t,a,r,n,s){return f(this.configuration).submitResponseFeedback(e,t,a,r,n,s).then(e=>e(this.axios,this.basePath))}}
1class b{isJsonMime(e){let t=RegExp("^(application/json|[^;/ 	]+/[^;/ 	]+[+]json)[ 	]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}}},78573:e=>{e.exports={scrollContainer:"ChatbotPopup_scrollContainer__IdWBU",scroller:"ChatbotPopup_scroller__DIlF0",scrollerInner:"ChatbotPopup_scrollerInner__puuQa",scrollerContent:"ChatbotPopup_scrollerContent__m8in6",popup:"ChatbotPopup_popup__6j4_V","slide-up":"ChatbotPopup_slide-up__ffNPE","slide-up-left":"ChatbotPopup_slide-up-left__YRDgF",header:"ChatbotPopup_header__dJWS8",logoContainer:"ChatbotPopup_logoContainer__JsKxl",statusInfo:"ChatbotPopup_statusInfo__conGZ",title:"ChatbotPopup_title__QrSgp",headerActions:"ChatbotPopup_headerActions__5LWxy",actionButton:"ChatbotPopup_actionButton__oYGo1",content:"ChatbotPopup_content__b60vm",footer:"ChatbotPopup_footer__S_qcJ"}},81467:(e,t,a)=>{"use strict";a.d(t,{H:()=>o,r:()=>i});var r=a(2506),n=a(91426),s=a(89245);let l=(0,n.createContext)(void 0),i=()=>{let e=(0,n.useContext)(l);if(!e)throw Error("useChatbotWidget must be used inside ChatbotWidgetProvider");return e},o=e=>{let{children:t}=e,[a,i]=(0,n.useState)(!1),[o,c]=(0,n.useState)();(0,n.useEffect)(()=>{(0,s.lf)()&&i(!0)},[]);let d=(0,n.useCallback)(()=>{c(void 0),i(!0),(0,s.St)(!0)},[]),u=(0,n.useCallback)(()=>{i(!1),(0,s.St)(!1)},[]),h=(0,n.useCallback)(e=>{c({message:e}),i(!0),(0,s.St)(!0)},[]),p=(0,n.useCallback)(()=>{c(void 0)},[]);return(0,r.jsx)(l.Provider,{value:{isOpen:a,open:d,close:u,openWithMessage:h,initialMessage:o,clearInitialMessage:p},children:t})}},87543:e=>{e.exports={container:"SuggestedQuestions_container__vodR_",chipsContainer:"SuggestedQuestions_chipsContainer__ZWmRE",title:"SuggestedQuestions_title__ys5Ux",chip:"SuggestedQuestions_chip__cKxY9"}},88218:e=>{e.exports={bar:"SoftNavigationListener_bar__IUIw7",barActive:"SoftNavigationListener_barActive__q_BU_",pulse:"SoftNavigationListener_pulse__EwnxX",shimmer:"SoftNavigationListener_shimmer__YhIjA"}},88587:e=>{e.exports={chatContent:"ChatbotContent_chatContent__Yxrwc",messages:"ChatbotContent_messages__Bh4jg",errorAlert:"ChatbotContent_errorAlert__2_Hoa"}},89245:(e,t,a)=>{"use strict";a.d(t,{EX:()=>g,FZ:()=>m,St:()=>c,ii:()=>u,lf:()=>o,lt:()=>h});var r=a(68687),n=a(74038);let s=(e,t)=>{if(!(0,r.B)())return null;try{return sessionStorage.getItem(e)}catch(e){return(0,n.vV)({error:e,action:t}),null}},l=(e,t,a)=>{if((0,r.B)())try{sessionStorage.setItem(e,t)}catch(e){(0,n.vV)({error:e,action:a})}},i="zoomy-widget-open",o=()=>"true"===s(i,"readPersistedWidgetOpenState"),c=e=>l(i,String(e),"writePersistedWidgetOpenState"),d="zoomy-chat-scroll-position",u=()=>{let e=s(d,"readPersistedScrollPosition");return null===e?null:Number(e)},h=e=>l(d,String(e),"writePersistedScrollPosition"),p="zoomy-chat-feedback",C=e=>{let t=s(p,e);if(null===t)return{};try{return JSON.parse(t)}catch(t){return(0,n.vV)({error:t,action:e}),{}}},g=e=>{var t;return null!=(t=C("readPersistedFeedbackRating")[e])?t:null},m=(e,t)=>{let a=C("writePersistedFeedbackRating");a[e]=t,l(p,JSON.stringify(a),"writePersistedFeedbackRating")}},96309:(e,t,a)=>{"use strict";a.d(t,{L:()=>i});var r=a(72701),n=a(91426),s=a(70706),l=a(87696);let i=e=>{var t;let{siteId:a,domain:i,locale:o}=e,c=(0,l.NJ)(),d=null!=(t=r.A.get("sid"))?t:"";return(0,n.useMemo)(()=>{let e={siteId:a,domain:i,locale:o,sid:d};return(null==c?void 0:c.pageType)===s.P2.ProductDetail?{...e,pageType:s.P2.ProductDetail,productId:c.productId,articleId:c.articleId}:(null==c?void 0:c.pageType)===s.P2.Category?{...e,pageType:s.P2.Category,categoryPath:c.categoryPath,categoryId:c.categoryId,categoryName:c.categoryName,categoryLevel:c.categoryLevel}:(null==c?void 0:c.pageType)===s.P2.Search?{...e,pageType:s.P2.Search,query:c.query}:(null==c?void 0:c.pageType)===s.P2.Specials?{...e,pageType:s.P2.Specials,...void 0===c.specialsId?{specialsName:c.specialsName}:{specialsId:c.specialsId,specialsName:c.specialsName}}:{...e,pageType:s.P2.Homepage}},[a,i,o,c,d])}}}]);
2//# sourceMappingURL=5127-ec3920e9c836555c.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.