import{t as e}from"./useControlled-CztbT67m.js";import{$ as t,A as n,B as r,C as i,F as a,G as o,I as s,L as c,O as l,P as u,R as d,T as f,U as p,X as m,Z as h,at as g,b as _,d as v,et as y,it as b,m as x,mt as S,ot as C,p as w,r as T,rt as E,tt as D,ut as O}from"./index-CM0zIqrs.js";function k(e){return b(`MuiCollapse`,e)}E(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var A=S(O()),j=C(),M=e=>{let{orientation:t,classes:n}=e;return D({root:[`root`,`${t}`],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,`${t}`],wrapperInner:[`wrapperInner`,`${t}`]},k,n)},N=h(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(o(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),P=h(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),F=h(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),I=A.forwardRef(function(e,n){let i=m({props:e,name:`MuiCollapse`}),{addEndListener:a,children:o,className:l,collapsedSize:u=`0px`,component:f,easing:h,in:_,onEnter:v,onEntered:b,onEntering:x,onExit:S,onExited:C,onExiting:w,orientation:T=`vertical`,slots:E={},slotProps:D={},style:O,timeout:k=y.standard,TransitionComponent:I=r,...L}=i,R={...i,orientation:T,collapsedSize:u},z=M(R),B=t(),V=d(),H=A.useRef(null),U=A.useRef(),W=typeof u==`number`?`${u}px`:u,G=T===`horizontal`,K=G?`width`:`height`,q=A.useRef(null),J=p(n,q),Y=e=>t=>{if(e){let n=q.current;t===void 0?e(n):e(n,t)}},X=()=>H.current?H.current[G?`clientWidth`:`clientHeight`]:0,Z=Y((e,t)=>{H.current&&G&&(H.current.style.position=`absolute`),e.style[K]=W,v&&v(e,t)}),Q=Y((e,t)=>{let n=X();H.current&&G&&(H.current.style.position=``);let{duration:r,easing:i}=c({style:O,timeout:k,easing:h},{mode:`enter`});if(k===`auto`){let t=B.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,U.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[K]=`${n}px`,e.style.transitionTimingFunction=i,x&&x(e,t)}),ee=Y((e,t)=>{e.style[K]=`auto`,b&&b(e,t)}),te=Y(e=>{e.style[K]=`${X()}px`,S&&S(e)}),ne=Y(C),re=Y(e=>{let t=X(),{duration:n,easing:r}=c({style:O,timeout:k,easing:h},{mode:`exit`});if(k===`auto`){let n=B.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,U.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[K]=W,e.style.transitionTimingFunction=r,w&&w(e)}),ie=e=>{k===`auto`&&V.start(U.current||0,e),a&&a(q.current,e)},$={slots:E,slotProps:D,component:f},[ae,oe]=s(`root`,{ref:J,className:g(z.root,l),elementType:N,externalForwardedProps:$,ownerState:R,additionalProps:{style:{[G?`minWidth`:`minHeight`]:W,...O}}}),[se,ce]=s(`wrapper`,{ref:H,className:z.wrapper,elementType:P,externalForwardedProps:$,ownerState:R}),[le,ue]=s(`wrapperInner`,{className:z.wrapperInner,elementType:F,externalForwardedProps:$,ownerState:R});return(0,j.jsx)(I,{in:_,onEnter:Z,onEntered:ee,onEntering:Q,onExit:te,onExited:ne,onExiting:re,addEndListener:ie,nodeRef:q,timeout:k===`auto`?null:k,...L,children:(e,{ownerState:t,...n})=>{let r={...R,state:e};return(0,j.jsx)(ae,{...oe,className:g(oe.className,{entered:z.entered,exited:!_&&W===`0px`&&z.hidden}[e]),ownerState:r,...n,children:(0,j.jsx)(se,{...ce,ownerState:r,children:(0,j.jsx)(le,{...ue,ownerState:r,children:o})})})}})});I&&(I.muiSupportAuto=!0);var L=I,R=A.createContext({});function z(e){return b(`MuiAccordion`,e)}var B=E(`MuiAccordion`,[`root`,`heading`,`rounded`,`expanded`,`disabled`,`gutters`,`region`]),V=e=>{let{classes:t,square:n,expanded:r,disabled:i,disableGutters:a}=e;return D({root:[`root`,!n&&`rounded`,r&&`expanded`,i&&`disabled`,!a&&`gutters`],heading:[`heading`],region:[`region`]},z,t)},H=h(a,{name:`MuiAccordion`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${B.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(o(({theme:e})=>{let t={duration:e.transitions.duration.shortest};return{position:`relative`,transition:e.transitions.create([`margin`],t),overflowAnchor:`none`,"&::before":{position:`absolute`,left:0,top:-1,right:0,height:1,content:`""`,opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create([`opacity`,`background-color`],t)},"&:first-of-type":{"&::before":{display:`none`}},[`&.${B.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:`none`}}},[`&.${B.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),o(({theme:e})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${B.expanded}`]:{margin:`16px 0`}}}]}))),U=h(`h3`,{name:`MuiAccordion`,slot:`Heading`})({all:`unset`}),W=h(`div`,{name:`MuiAccordion`,slot:`Region`})({}),G=A.forwardRef(function(t,n){let r=m({props:t,name:`MuiAccordion`}),{children:i,className:a,defaultExpanded:o=!1,disabled:c=!1,disableGutters:l=!1,expanded:u,onChange:d,square:f=!1,slots:p={},slotProps:h={},TransitionComponent:_,TransitionProps:v,...y}=r,[b,x]=e({controlled:u,default:o,name:`Accordion`,state:`expanded`}),S=A.useCallback(e=>{x(!b),d&&d(e,!b)},[b,d,x]),[C,...w]=A.Children.toArray(i),T=A.useMemo(()=>({expanded:b,disabled:c,disableGutters:l,toggle:S}),[b,c,l,S]),E={...r,square:f,disabled:c,disableGutters:l,expanded:b},D=V(E),O={slots:{transition:_,...p},slotProps:{transition:v,...h}},[k,M]=s(`root`,{elementType:H,externalForwardedProps:{...O,...y},className:g(D.root,a),shouldForwardComponentProp:!0,ownerState:E,ref:n,additionalProps:{square:f}}),[N,P]=s(`heading`,{elementType:U,externalForwardedProps:O,className:D.heading,ownerState:E}),[F,I]=s(`transition`,{elementType:L,externalForwardedProps:O,ownerState:E}),[z,B]=s(`region`,{elementType:W,externalForwardedProps:O,ownerState:E,className:D.region,additionalProps:{"aria-labelledby":C.props.id,id:C.props[`aria-controls`],role:`region`}});return(0,j.jsxs)(k,{...M,children:[(0,j.jsx)(N,{...P,children:(0,j.jsx)(R.Provider,{value:T,children:C})}),(0,j.jsx)(F,{in:b,timeout:`auto`,...I,children:(0,j.jsx)(z,{...B,children:w})})]})});function K(e){return b(`MuiAccordionDetails`,e)}E(`MuiAccordionDetails`,[`root`]);var q=e=>{let{classes:t}=e;return D({root:[`root`]},K,t)},J=h(`div`,{name:`MuiAccordionDetails`,slot:`Root`})(o(({theme:e})=>({padding:e.spacing(1,2,2)}))),Y=A.forwardRef(function(e,t){let n=m({props:e,name:`MuiAccordionDetails`}),{className:r,...i}=n,a=n;return(0,j.jsx)(J,{className:g(q(a).root,r),ref:t,ownerState:a,...i})});function X(e){return b(`MuiAccordionSummary`,e)}var Z=E(`MuiAccordionSummary`,[`root`,`expanded`,`focusVisible`,`disabled`,`gutters`,`contentGutters`,`content`,`expandIconWrapper`]),Q=e=>{let{classes:t,expanded:n,disabled:r,disableGutters:i}=e;return D({root:[`root`,n&&`expanded`,r&&`disabled`,!i&&`gutters`],focusVisible:[`focusVisible`],content:[`content`,n&&`expanded`,!i&&`contentGutters`],expandIconWrapper:[`expandIconWrapper`,n&&`expanded`]},X,t)},ee=h(u,{name:`MuiAccordionSummary`,slot:`Root`})(o(({theme:e})=>{let t={duration:e.transitions.duration.shortest};return{display:`flex`,width:`100%`,minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create([`min-height`,`background-color`],t),[`&.${Z.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Z.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Z.disabled})`]:{cursor:`pointer`},variants:[{props:e=>!e.disableGutters,style:{[`&.${Z.expanded}`]:{minHeight:64}}}]}})),te=h(`span`,{name:`MuiAccordionSummary`,slot:`Content`})(o(({theme:e})=>({display:`flex`,textAlign:`start`,flexGrow:1,margin:`12px 0`,variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create([`margin`],{duration:e.transitions.duration.shortest}),[`&.${Z.expanded}`]:{margin:`20px 0`}}}]}))),ne=h(`span`,{name:`MuiAccordionSummary`,slot:`ExpandIconWrapper`})(o(({theme:e})=>({display:`flex`,color:(e.vars||e).palette.action.active,transform:`rotate(0deg)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shortest}),[`&.${Z.expanded}`]:{transform:`rotate(180deg)`}}))),re=A.forwardRef(function(e,t){let n=m({props:e,name:`MuiAccordionSummary`}),{children:r,className:i,expandIcon:a,focusVisibleClassName:o,onClick:c,slots:l,slotProps:u,...d}=n,{disabled:f=!1,disableGutters:p,expanded:h,toggle:_}=A.useContext(R),v=e=>{_&&_(e),c&&c(e)},y={...n,expanded:h,disabled:f,disableGutters:p},b=Q(y),x={slots:l,slotProps:u},[S,C]=s(`root`,{ref:t,shouldForwardComponentProp:!0,className:g(b.root,i),elementType:ee,externalForwardedProps:{...x,...d},ownerState:y,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:f,"aria-expanded":h,focusVisibleClassName:g(b.focusVisible,o)},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),v(t)}})}),[w,T]=s(`content`,{className:b.content,elementType:te,externalForwardedProps:x,ownerState:y}),[E,D]=s(`expandIconWrapper`,{className:b.expandIconWrapper,elementType:ne,externalForwardedProps:x,ownerState:y});return(0,j.jsxs)(S,{...C,children:[(0,j.jsx)(w,{...T,children:r}),a&&(0,j.jsx)(E,{...D,children:a})]})});function ie({element:e,className:t,nested:r,devInfoTags:a,uid:o,spaceBefore:s,spaceAfter:c}){let u=v(e),d=x(e),p=_(w(e)),m=e.data?.faq_items??[],h=!!e.data?.first_item_open,g=!!e.data?.allow_multiple_open,y=h&&m.length>0?`item-0`:!1,[b,S]=(0,A.useState)(y),[C,E]=(0,A.useState)(()=>new Set(y?[y]:[])),D=e=>g?C.has(e):b===e,O=e=>(t,n)=>{g?E(t=>{let r=new Set(t);return n?r.add(e):r.delete(e),r}):S(n?e:!1)};return(0,j.jsx)(T,{className:[`vitec_faq`,t].filter(Boolean).join(` `),devInfoTags:a,nested:r,uid:o,spaceBefore:s,spaceAfter:c,children:(0,j.jsxs)(`div`,{className:`vitec_faq__inner`,children:[(u||d)&&(0,j.jsxs)(f,{spacing:.5,sx:{mb:2.5,textAlign:p,alignItems:p===`center`?`center`:p===`right`?`flex-end`:`flex-start`},children:[u&&(0,j.jsx)(n,{variant:`h4`,children:u}),d&&(0,j.jsx)(n,{variant:`subtitle1`,color:`text.secondary`,children:d})]}),(0,j.jsxs)(`div`,{className:`vitec_faq__items`,children:[m.map((e,t)=>{let r=`item-${t}`;return(0,j.jsxs)(G,{expanded:D(r),onChange:O(r),disableGutters:!0,elevation:0,className:`vitec_faq__item`,sx:{backgroundColor:`transparent`},children:[(0,j.jsx)(re,{expandIcon:(0,j.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,"aria-hidden":`true`,children:(0,j.jsx)(`path`,{d:`M5 7.5l5 5 5-5`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`})}),className:`vitec_faq__question`,children:(0,j.jsx)(n,{variant:`subtitle1`,className:`vitec_faq__question-text`,fontWeight:600,children:e.question})}),(0,j.jsx)(Y,{className:`vitec_faq__answer`,children:(0,j.jsx)(l,{sx:i,dangerouslySetInnerHTML:{__html:e.answer}})})]},r)}),m.length===0&&(0,j.jsx)(n,{variant:`body2`,color:`text.secondary`,children:`No FAQ items configured.`})]})]})})}export{ie as VitecFaq};