"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[45],{181:(e,a,r)=>{var s=r(0),i=(r(1),r(2)),t=r(185),p=r(4);const{wrapper:n}={wrapper:"SB65IpZS"},c=({description:e})=>(0,s.jsx)("div",Object.assign({className:n},{children:e})),{wrapper:l,wrapperHeading:d,wrapperHeadingIcon:h,wrapperHeadingTitle:g,wrapperHeadingTitleOpened:u,wrapperHeadingSubtitle:j,wrapperItems:w,wrapperItemsExpand:o,horizontalLine:x}={wrapper:"DZEtGud4",wrapperHeading:"gxY5riUs",wrapperHeadingTitle:"gI8tuwZf",wrapperHeadingTitleOpened:"nFIPdEFU",wrapperHeadingSubtitle:"W2Fpm09z",wrapperHeadingIcon:"H7Q7Ul3E",wrapperItems:"NgiZEdX1",wrapperItemsExpand:"NekBsh5l",horizontalLine:"lUb1i31J"},m=({title:e,subtitle:a,description:r,activeParagraph:n,handleExpandParagraph:m})=>{const{ref:b}=((e,a)=>{const r=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(!r.current)return;const{scrollHeight:s,clientHeight:i}=r.current;e!==a&&0!==i?r.current.style.maxHeight="0px":e===a&&(r.current.style.maxHeight=`${s}px`)}),[e]),{ref:r}})(n,e),O=n===e;return(0,s.jsxs)("div",Object.assign({className:l},{children:[(0,s.jsxs)("div",Object.assign({onClick:()=>m(e),className:(0,t.a)(d,O&&u)},{children:[(0,s.jsx)("h2",Object.assign({className:g},{children:e})),(0,s.jsx)("span",Object.assign({className:h},{children:O?(0,s.jsx)(p.p,{}):(0,s.jsx)(p.t,{})}))]})),(0,s.jsxs)("div",Object.assign({ref:b,className:(0,t.a)(w,O&&o)},{children:[a&&(0,s.jsx)("h4",Object.assign({className:j},{children:a})),r.length>0&&r.map(((e,a)=>(0,s.jsx)(c,{description:e})))]})),(0,s.jsx)("span",{className:x})]}))},{wrapper:b,wrapperTitle:O,wrapperSubtitle:H,wrapperSubtitleContainer:N,horizontal:f}={wrapper:"mzvy03rD",wrapperTitle:"QcQpYJ0t",wrapperSubtitleContainer:"i1i9cBPY",wrapperSubtitle:"uRW2BTfi",horizontal:"e3bFYYzY"};(0,r(3).createEntrypoint)("shipping-policy-information",(({mockData:e})=>{const{title:a,subtitles:r,paragraphs:t}=e,{handleExpandParagraph:p,activeParagraph:n}=(()=>{const[e,a]=(0,i.useState)("");return{activeParagraph:e,handleExpandParagraph:(0,i.useCallback)((e=>{a((a=>a===e?"":e))}),[e])}})();return(0,s.jsxs)("div",Object.assign({className:b},{children:[(0,s.jsx)("h2",Object.assign({className:O},{children:a})),(0,s.jsx)("div",Object.assign({className:N},{children:r.map(((e,a)=>(0,s.jsx)("p",Object.assign({className:H},{children:e}),`${e}-${a}`)))})),t.map(((e,a)=>(0,s.jsx)(m,Object.assign({},e,{activeParagraph:n,handleExpandParagraph:p}),`${e.title}-${a}`))),(0,s.jsx)("span",{className:f})]}))}))()}},e=>{e.O(0,[1,2,3,4],(()=>(181,e(e.s=181)))),e.O()}]);