"use strict";(globalThis.webpackChunkboostify_blocks=globalThis.webpackChunkboostify_blocks||[]).push([[4621],{4621:(e,a,o)=>{o.r(a),o.d(a,{default:()=>b});var l=o(1609),r=o.n(l),c=o(7437),t=o(4505),n=o(7851),i=o(5192),s=o(2440),d=o(7788),m=o(8885),u=o(2431),g=o(7931);const b=r().memo((e=>{const{uniqueId:a,general_general:o,general_icon:r,style_answer:b,style_container:p,style_question:_,style_icon:v,advance_responsiveCondition:f,advance_zIndex:h,advance_motionEffect:k}=e,{media_desktop:y,media_tablet:$}=d.s,w=`.${a}[data-uniqueid=${a}]`,C=`${w} .wcb-faq__inner`,q=`${w} .wcb-faq-child__wrap`,x=`${w} .wcb-faq-child__question`,A=`${w} .wcb-faq-child__answer`,N=`${w} .wcb-faq-child__icon`,E=`${w} .wcb-faq-child__separator`;let{value_Desktop:T,value_Tablet:L,value_Mobile:H}=(0,i.A)(v.size);const G={Desktop:T+"px",Tablet:L+"px",Mobile:H+"px"};return a?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.mL,{styles:[(0,m.A)({className:C,value:p.colunmGap,prefix:"columnGap"}),(0,m.A)({className:C,value:p.rowGap,prefix:"rowGap"}),{[C]:{textAlign:o.textAlignment}}]}),"grid"===o.layout&&(0,l.createElement)(c.mL,{styles:[(()=>{const{value_Desktop:e,value_Tablet:a,value_Mobile:l}=(0,i.A)(o.columns);return{[`${C}`]:{gridTemplateColumns:`repeat(${l}, minmax(0, 1fr))`,[`@media (min-width: ${$})`]:{gridTemplateColumns:`repeat(${a}, minmax(0, 1fr))`},[`@media (min-width: ${y})`]:{gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`}}}})(),{[x]:{display:"block"}}]}),(0,l.createElement)(c.mL,{styles:[(0,n.A)({className:q,background:p.background}),(0,s.A)({border:p.border,className:q,isWithRadius:!0}),(0,s.A)({border:p.border,className:E,isWithRadius:!0}),{[q]:{height:"grid"!==o.layout||p.equalHeight?void 0:"fit-content"}}]}),(0,l.createElement)(c.mL,{styles:[(0,u.A)({className:x,typography:_.typography}),(0,g.A)({className:x,padding:_.padding}),(0,m.A)({className:x,value:v.colGap,prefix:"gap"}),{[x]:{color:_.color,backgroundColor:_.backgroundColor,":hover, :focus, :active":{color:_.colorHover,backgroundColor:_.backgroundColorHover}},[`${w} .wcb-faq-child__wrap.active .wcb-faq-child__question`]:{color:_.colorHover,backgroundColor:_.backgroundColorHover}}]}),(0,l.createElement)(c.mL,{styles:[(0,m.A)({className:`${N}, ${N}:before, ${N} svg`,value:G,prefix:"fontSize",prefix_2:"height",prefix_3:"width"}),{[N]:{color:v.color},[`${w} .wcb-faq-child__wrap.active`]:{".wcb-faq-child__icon":{color:v.activeColor}}}]}),(0,l.createElement)(c.mL,{styles:[(0,u.A)({className:A,typography:b.typography}),(0,g.A)({className:A,padding:b.padding}),{[A]:{color:b.color,backgroundColor:b.backgroundColor}}]}),(0,l.createElement)(c.mL,{styles:(0,t.F)({advance_motionEffect:k,advance_responsiveCondition:f,advance_zIndex:h,className:w})})):null}))},7851:(e,a,o)=>{o.d(a,{A:()=>l});const l=({className:e,background:a,backgroundHover:o})=>{const{bgType:l,color:r,gradient:c}=a,{bgType:t,color:n,gradient:i}=o||{};if("color"!==l&&"gradient"!==l)return{};let s="",d="";"color"===l&&(s="backgroundColor",d=r),"gradient"===l&&(s="backgroundImage",d=c);let m="",u="";return"color"===t&&(m="backgroundColor",u=n||""),"gradient"===t&&(m="backgroundImage",u=i||""),{[`${e}`]:{[`${s}`]:`${d}`,":hover":{[`${m}`]:`${u||null}`}}}}}}]);