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