"use strict";exports.id=7228,exports.ids=[7228],exports.modules={71516:(e,t,n)=>{n.d(t,{A:()=>useAccordion,Z:()=>c});var o=n(16689),r=n.n(o);let a=(0,o.createContext)(void 0),d=(0,o.forwardRef)(function({testId:e="fs-accordion",indices:t,onChange:n,children:d,...c},i){let l=r().Children.map(d,(e,t)=>(0,o.cloneElement)(e,{index:e.props.index??t})),s={indices:new Set(t),onChange:n,numberOfItems:l.length};return r().createElement(a.Provider,{value:s},r().createElement("div",{ref:i,"data-fs-accordion":!0,role:"region","data-testid":e,...c},l))});function useAccordion(){let e=(0,o.useContext)(a);if(void 0===e)throw Error("Do not use Accordion components outside the Accordion context.");return e}let c=d},67734:(e,t,n)=>{n.d(t,{Z:()=>s});var o=n(16689),r=n.n(o),a=n(71516),d=n(40783),c=n(2614),i=n(83339);let l=(0,o.forwardRef)(function({testId:e="fs-accordion-button",expandedIcon:t=r().createElement(c.Z,{name:"MinusCircle","data-icon":"expanded"}),collapsedIcon:n=r().createElement(c.Z,{name:"PlusCircle","data-icon":"collapsed"}),children:o,...l},s){let{indices:u,onChange:f,numberOfItems:m}=(0,a.A)(),{index:p,panel:v,button:w,prefixId:A}=(0,d.D)();return r().createElement(i.Z,{ref:s,id:w,variant:"tertiary","data-fs-accordion-button":u.has(p)?"expanded":"collapsed","aria-expanded":u.has(p),icon:u.has(p)?t:n,iconPosition:"right","aria-controls":v,onKeyDown:e=>{if(["ArrowDown","ArrowUp"].includes(e.key))switch(e.key){case"ArrowDown":e.preventDefault(),(()=>{let e=Number(p)+1===m?0:Number(p)+1;return document.getElementById(`${A&&`${A}-`}button--${e}`)})()?.focus();break;case"ArrowUp":e.preventDefault(),(()=>{let e=Number(p)-1<0?m-1:Number(p)-1;return document.getElementById(`${A&&`${A}-`}button--${e}`)})()?.focus()}},onClick:()=>{f(p)},"data-testid":e,...l},o)}),s=l},40783:(e,t,n)=>{n.d(t,{D:()=>useAccordionItem,Z:()=>c});var o=n(16689),r=n.n(o);let a=(0,o.createContext)(void 0),d=(0,o.forwardRef)(function({prefixId:e="",index:t=0,as:n,children:o,testId:d="fs-accordion-item",...c},i){let l=n??"div",s={index:t,prefixId:e,panel:`${e&&`${e}-`}panel--${t}`,button:`${e&&`${e}-`}button--${t}`};return r().createElement(a.Provider,{value:s},r().createElement(l,{ref:i,"data-fs-accordion-item":!0,"data-testid":d,...c},o))});function useAccordionItem(){let e=(0,o.useContext)(a);if(void 0===e)throw Error("Do not use AccordionItem components outside the AccordionItem context.");return e}let c=d},27583:(e,t,n)=>{n.d(t,{Z:()=>i});var o=n(16689),r=n.n(o),a=n(71516),d=n(40783);let c=(0,o.forwardRef)(function({testId:e="fs-accordion-panel",children:t,...n},o){let{indices:c}=(0,a.A)(),{index:i,button:l,panel:s}=(0,d.D)();return r().createElement("div",{ref:o,id:s,"data-fs-accordion-panel":!0,"aria-labelledby":l,role:"region",hidden:!c.has(i),"data-testid":e,...n},t)}),i=c}};