"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[106],{15:(e,n,o)=>{o.d(n,{a:()=>t});const t={accordion:"fmJEoApf",noTopBorder:"Vkp0_3He",section:"ZJCsmW3Z",toggle:"NM_YOWAF",labelAccordian:"gMfWhlvk",arrow:"iVRau9iH",content:"Yn9kwIny",contentWithGap:"QZ6IQcPi",iconCaret:"UgDfblcC"}},303:(e,n,o)=>{var t=o(0),c=o(4),r=o(1),s=o(15),a=o(72);function i({shouldRemoveTopBorder:e,apps:{product:n}}){var o;const c=n.product.value,r=n.selectedVariant.value,s=null!==(o=null==r?void 0:r.accordianFromFields)&&void 0!==o?o:null==c?void 0:c.accordianFromFields;return(0,t.jsx)(d,{sections:s,shouldRemoveTopBorder:e})}function d({sections:e,shouldRemoveTopBorder:n}){const[o,i]=(0,r.useState)({});if((0,r.useEffect)((()=>{if(!e)return;const n={};Object.keys(e).forEach((e=>{e in o||(n[e]=!1)})),Object.keys(n).length>0&&i((e=>Object.assign(Object.assign({},e),n)))}),[e]),!e)return(0,t.jsx)(c.Fragment,{});const d=n?`${s.a.accordion} ${s.a.noTopBorder}`:s.a.accordion;return(0,t.jsx)("div",{className:d,children:Object.entries(e).map((([e,n])=>{const c=o[e]||!1;return(0,t.jsxs)("div",{class:s.a.section,children:[(0,t.jsx)("input",{type:"checkbox",id:`section-toggle-${e}`,class:s.a.toggle,checked:c,onChange:()=>{return n=e,void i((e=>Object.assign(Object.assign({},e),{[n]:!e[n]})));var n}}),(0,t.jsxs)("label",{htmlFor:`section-toggle-${e}`,class:s.a.labelAccordian,children:[e,(0,t.jsx)("span",{class:s.a.arrow,children:(0,t.jsx)(a.a,{})})]}),(0,t.jsx)("ul",{class:s.a.content,children:n.map((e=>(0,t.jsx)("li",{dangerouslySetInnerHTML:{__html:e}})))})]},e)}))})}var l=o(2),u=o(13);const p=[u.a];l.BentoUI.feature({featureId:"product_hero_accordion_from_fields",variations:[l.BentoUI.variation({component:i,hydrate:!0,variationId:"default",apps:p,render(e){return n=this,o=arguments,c=function*({}){return{props:{shouldRemoveTopBorder:!0}}},new((t=void 0)||(t=Promise))((function(e,r){function s(e){try{i(c.next(e))}catch(e){r(e)}}function a(e){try{i(c.throw(e))}catch(e){r(e)}}function i(n){var o;n.done?e(n.value):(o=n.value,o instanceof t?o:new t((function(e){e(o)}))).then(s,a)}i((c=c.apply(n,o||[])).next())}));var n,o,t,c}})]}),(0,l.createEntrypoint)("product_hero_accordion_from_fields",i,p)},70:(e,n,o)=>{function t(){}function c(){return()=>{}}function r(e){const n={};for(const o of Object.keys(e.actions))n[o]=n=>({type:`${e.namespace}:${o}`,payload:n});const o=e.serverActions?new Set(Object.keys(e.serverActions)):void 0;return{namespace:e.namespace,version:e.version,selectors:e.selectors,actions:n,serverActions:o,__serverActionTypes:void 0,__stateType:void 0}}o.d(n,{a:()=>c,b:()=>r,c:()=>t})}},e=>{e.O(0,[1,11,12,21,28],(()=>e(e.s=303))),e.O()}]);