>l?void 0:c.colors.primary600}; } & > ${a.k} { background: ${({theme:c})=>c.colors.primary100}; } [data-strapi-dropdown='true'] { background: ${({theme:c})=>c.colors.primary200}; } } `,m=({children:c,disabled:l=!1,error:p,expanded:h=!1,hasErrorMessage:f=!0,id:M,onToggle:j,toggle:P,size:_="M",variant:O="primary",shadow:y})=>{const b=(0,i.M)(M),A=r.useMemo(()=>({expanded:h,onToggle:j,toggle:P,id:b,size:_,variant:O,disabled:l}),[l,h,b,j,_,P,O]);return(0,t.jsxs)(s.S.Provider,{value:A,children:[(0,t.jsx)(E,{"data-strapi-expanded":h,disabled:l,"aria-disabled":l,expanded:h,hasRadius:!0,variant:O,error:p,shadow:y,children:c}),p&&f&&(0,t.jsx)(x.x,{paddingTop:1,children:(0,t.jsx)(d.Z,{variant:"pi",textColor:"danger600",children:p})})]})}},89966:function(o,u,n){"use strict";n.d(u,{v:function(){return s}});var t=n(74512),r=n(91045),e=n(72850);const s=({children:i,...d})=>{const{expanded:a,id:x}=(0,r.A)();if(!a)return null;const g=`accordion-content-${x}`,v=`accordion-label-${x}`,E=`accordion-desc-${x}`;return(0,t.jsx)(e.x,{role:"region",id:g,"aria-labelledby":v,"aria-describedby":E,...d,children:i})}},91045:function(o,u,n){"use strict";n.d(u,{A:function(){return e},S:function(){return r}});var t=n(32735);const r=(0,t.createContext)({disabled:!1,expanded:!1,id:"",size:"M",variant:"primary"}),e=()=>(0,t.useContext)(r)},61762:function(o,u,n){"use strict";n.d(u,{B:function(){return c}});var t=n(74512),r=n(16899),e=n(8471),s=n(83828),i=n(91045);const d=({expanded:l,disabled:p,variant:h})=>{let f="neutral100";return l?f="primary100":p?f="neutral150":h==="primary"&&(f="neutral0"),f};var a=n(7563),x=n(99140),g=n(87933),v=n(49372);const E=(0,e.ZP)(a.A)` text-align: left; // necessary to make the ellipsis prop work on the title > span { max-width: 100%; } svg { width: ${14/16}rem; height: ${14/16}rem; path { fill: ${({theme:l,expanded:p})=>p?l.colors.primary600:l.colors.neutral500}; } } `,m=(0,e.ZP)(g.k)` min-height: ${({theme:l,size:p})=>l.sizes.accordions[p]}; border-radius: ${({theme:l,expanded:p})=>p?`${l.borderRadius} ${l.borderRadius} 0 0`:l.borderRadius}; &:hover { svg { path { fill: ${({theme:l})=>l.colors.primary600}; } } } `,c=({title:l,description:p,as:h="span",togglePosition:f="right",action:M,...j})=>{const{onToggle:P,toggle:_,expanded:O,id:y,size:b,variant:A,disabled:B}=(0,i.A)(),w=`accordion-content-${y}`,D=`accordion-label-${y}`,W=`accordion-desc-${y}`,C=b==="M"?6:4,L=b==="M"?C:C-2,U=d({expanded:O,disabled:B,variant:A}),I={as:h,fontWeight:b==="S"?"bold":void 0,id:D,textColor:O?"primary600":"neutral700",ellipsis:!0,variant:b==="M"?"delta":void 0},K=O?"primary600":"neutral600",Z=O?"primary200":"neutral200",T=b==="M"?`${32/16}rem`:`${24/16}rem`,R=()=>{B||(_&&!P?(console.warn('Deprecation warning: Usage of "toggle" prop in Accordion component is deprecated. This is discouraged and will be removed in the next major release. Please use "onToggle" instead'),_()):P&&P())},$=(0,t.jsx)(g.k,{justifyContent:"center",borderRadius:"50%",height:T,width:T,transform:O?"rotate(180deg)":void 0,"data-strapi-dropdown":!0,"aria-hidden":!0,as:"span",background:Z,cursor:B?"not-allowed":"pointer",onClick:R,shrink:0,children:(0,t.jsx)(x.J,{as:r.Z,width:b==="M"?`${11/16}rem`:`${8/16}rem`,color:O?"primary600":"neutral600"})});return(0,t.jsx)(m,{paddingBottom:L,paddingLeft:C,paddingRight:C,paddingTop:L,background:U,expanded:O,size:b,justifyContent:"space-between",cursor:B?"not-allowed":"",children:(0,t.jsxs)(g.k,{gap:3,flex:1,maxWidth:"100%",children:[f==="left"&&$,(0,t.jsx)(E,{onClick:R,"aria-disabled":B,"aria-expanded":O,"aria-controls":w,"aria-labelledby":D,"data-strapi-accordion-toggle":!0,expanded:O,type:"button",flex:1,minWidth:0,...j,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.y,{...I,children:l}),p&&(0,t.jsx)(v.Z,{as:"p",id:W,textColor:K,children:p})]})}),f==="right"&&(0,t.jsxs)(g.k,{gap:3,children:[$,M]}),f==="left"&&M]})})}},99223:function(o,u,n){"use strict";n.d(u,{Z:function(){return e}});var t=n(74512),r=n(87933);const e=({startActions:s,endActions:i})=>!s&&!i?null:(0,t.jsxs)(r.k,{justifyContent:"space-between",alignItems:"flex-start",paddingBottom:4,paddingLeft:10,paddingRight:10,children:[(0,t.jsx)(r.k,{gap:2,wrap:"wrap",children:s}),(0,t.jsx)(r.k,{gap:2,shrink:0,wrap:"wrap",children:i})]})},17e3:function(o,u,n){"use strict";n.d(u,{D:function(){return e}});var t=n(74512),r=n(72850);const e=({children:s})=>(0,t.jsx)(r.x,{paddingLeft:10,paddingRight:10,children:s})},82055:function(o,u,n){"use strict";n.d(u,{T:function(){return v}});var t=n(74512),r=n(32735),e=n(8471);const s=c=>{const l=(0,r.useRef)(null),[p,h]=(0,r.useState)(!0),f=([M])=>{h(M.isIntersecting)};return(0,r.useEffect)(()=>{const M=l.current,j=new IntersectionObserver(f,c);return M&&j.observe(l.current),()=>{M&&j.disconnect()}},[l,c]),[l,p]};var i=n(81957);const d=(c,l)=>{const p=(0,i.W)(l);(0,r.useLayoutEffect)(()=>{const h=new ResizeObserver(p);return Array.isArray(c)?c.forEach(f=>{f.current&&h.observe(f.current)}):c.current&&h.observe(c.current),()=>{h.disconnect()}},[c,p])};var a=n(72850),x=n(87933),g=n(49372);const v=c=>{const l=(0,r.useRef)(null),[p,h]=(0,r.useState)(null),[f,M]=s({root:null,rootMargin:"0px",threshold:0});return d(f,()=>{f.current&&h(f.current.getBoundingClientRect())}),(0,r.useEffect)(()=>{l.current&&h(l.current.getBoundingClientRect())},[l]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:{height:p?.height},ref:f,children:M&&(0,t.jsx)(m,{ref:l,...c})}),!M&&(0,t.jsx)(m,{...c,sticky:!0,width:p?.width})]})};v.displayName="HeaderLayout";const E=(0,e.ZP)(a.x)` width: ${({width:c})=>c?`${c/16}rem`:void 0}; z-index: ${({theme:c})=>c.zIndices[1]}; `,m=r.forwardRef(({navigationAction:c,primaryAction:l,secondaryAction:p,subtitle:h,title:f,sticky:M,width:j,...P},_)=>{const O=typeof h=="string";return M?(0,t.jsx)(E,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,position:"fixed",top:0,right:0,background:"neutral0",shadow:"tableShadow",width:j,"data-strapi-header-sticky":!0,children:(0,t.jsxs)(x.k,{justifyContent:"space-between",children:[(0,t.jsxs)(x.k,{children:[c&&(0,t.jsx)(a.x,{paddingRight:3,children:c}),(0,t.jsxs)(a.x,{children:[(0,t.jsx)(g.Z,{variant:"beta",as:"h1",...P,children:f}),O?(0,t.jsx)(g.Z,{variant:"pi",textColor:"neutral600",children:h}):h]}),p?(0,t.jsx)(a.x,{paddingLeft:4,children:p}):null]}),(0,t.jsx)(x.k,{children:l?(0,t.jsx)(a.x,{paddingLeft:2,children:l}):void 0})]})}):(0,t.jsxs)(a.x,{ref:_,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:c?6:8,background:"neutral100","data-strapi-header":!0,children:[c?(0,t.jsx)(a.x,{paddingBottom:2,children:c}):null,(0,t.jsxs)(x.k,{justifyContent:"space-between",children:[(0,t.jsxs)(x.k,{minWidth:0,children:[(0,t.jsx)(g.Z,{as:"h1",variant:"alpha",...P,children:f}),p?(0,t.jsx)(a.x,{paddingLeft:4,children:p}):null]}),l]}),O?(0,t.jsx)(g.Z,{variant:"epsilon",textColor:"neutral600",as:"p",children:h}):h]})})},96709:function(o,u,n){"use strict";n.d(u,{A:function(){return d}});var t=n(74512),r=n(8471),e=n(72850);const s=(0,r.ZP)(e.x)` display: grid; grid-template-columns: ${({hasSideNav:a})=>a?"auto 1fr":"1fr"}; `,i=(0,r.ZP)(e.x)` overflow-x: hidden; `,d=({sideNav:a,children:x})=>(0,t.jsxs)(s,{hasSideNav:!!a,children:[a,(0,t.jsx)(i,{paddingBottom:10,children:x})]})},27649:function(o,u,n){"use strict";n.d(u,{o:function(){return i}});var t=n(74512),r=n(8471),e=n(72850);const s=(0,r.ZP)(e.x)` // To prevent global outline on focus visible to force an outline when Main is focused &:focus-visible { outline: none; } `,i=({labelledBy:d="main-content-title",...a})=>(0,t.jsx)(s,{"aria-labelledby":d,as:"main",id:"main-content",tabIndex:-1,...a})},29439:function(o,u,n){"use strict";n.d(u,{Z:function(){return e}});var t=n(74512);const r=s=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...s,children:(0,t.jsx)("path",{fill:"#212134",d:"M24 13.3a.2.2 0 0 1-.2.2H5.74l8.239 8.239a.2.2 0 0 1 0 .282L12.14 23.86a.2.2 0 0 1-.282 0L.14 12.14a.2.2 0 0 1 0-.282L11.86.14a.2.2 0 0 1 .282 0L13.98 1.98a.2.2 0 0 1 0 .282L5.74 10.5H23.8c.11 0 .2.09.2.2v2.6Z"})}),e=r},45112:function(o,u,n){"use strict";n.d(u,{Z:function(){return e}});var t=n(74512);const r=s=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...s,children:(0,t.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M2.68 9.192c-.6.276-2.114 1.18-2.306 1.303a.792.792 0 0 0-.374.68v1.65a.797.797 0 0 0 .384.687c.254.16 1.73 1.042 2.306 1.303l.744 1.8c-.24.634-.67 2.333-.72 2.554a.797.797 0 0 0 .216.744l1.167 1.166a.801.801 0 0 0 .744.216l.03-.008c.36-.092 1.946-.498 2.523-.712l1.8.744c.276.6 1.181 2.115 1.304 2.307a.805.805 0 0 0 .679.374h1.649a.797.797 0 0 0 .686-.384c.16-.254 1.042-1.73 1.303-2.306l1.8-.744c.634.24 2.333.67 2.554.72a.797.797 0 0 0 .744-.216l1.166-1.167a.803.803 0 0 0 .216-.744l-.008-.03c-.092-.36-.498-1.946-.712-2.523l.744-1.8c.6-.276 2.115-1.181 2.307-1.304a.804.804 0 0 0 .374-.679v-1.649a.796.796 0 0 0-.382-.679c-.254-.16-1.73-1.041-2.306-1.303l-.744-1.8c.24-.634.67-2.333.72-2.554a.796.796 0 0 0-.216-.744l-1.166-1.173a.802.802 0 0 0-.744-.216l-.03.008c-.361.092-1.947.498-2.524.712l-1.8-.744c-.276-.6-1.18-2.115-1.303-2.307a.803.803 0 0 0-.68-.374h-1.65a.797.797 0 0 0-.68.382c-.16.254-1.041 1.73-1.303 2.306l-1.8.744c-.634-.24-2.333-.67-2.554-.72a.797.797 0 0 0-.744.216L2.921 4.094a.802.802 0 0 0-.216.744l.008.03c.092.361.498 1.947.712 2.524l-.744 1.8ZM12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z",clipRule:"evenodd"})}),e=r}}]);