(self.webpackChunk_digicms_admin=self.webpackChunk_digicms_admin||[]).push([[3439],{56671:function(g,f,n){var t=n(35897),o=n(74741),e=o(t);g.exports=e},52920:function(g,f,n){var t=n(56671),o=n(81580);function e(r,a){var s=-1,d=o(r)?Array(r.length):[];return t(r,function(l,m,h){d[++s]=a(l,m,h)}),d}g.exports=e},50690:function(g,f,n){var t=n(26460),o=n(80166),e=n(88904),r=n(52920),a=n(36024),s=n(76535),d=n(1397),l=n(15362),m=n(77236);function h(v,c,E){c.length?c=t(c,function(i){return m(i)?function(p){return o(p,i.length===1?i[0]:i)}:i}):c=[l];var u=-1;c=t(c,s(e));var x=r(v,function(i,p,_){var y=t(c,function(M){return M(i)});return{criteria:y,index:++u,value:i}});return a(x,function(i,p){return d(i,p,E)})}g.exports=h},36024:function(g){function f(n,t){var o=n.length;for(n.sort(t);o--;)n[o]=n[o].value;return n}g.exports=f},40709:function(g,f,n){var t=n(22945);function o(e,r){if(e!==r){var a=e!==void 0,s=e===null,d=e===e,l=t(e),m=r!==void 0,h=r===null,v=r===r,c=t(r);if(!h&&!c&&!l&&e>r||l&&m&&v&&!h&&!c||s&&m&&v||!a&&v||!d)return 1;if(!s&&!l&&!c&&e<r||c&&a&&d&&!s&&!l||h&&a&&d||!m&&d||!v)return-1}return 0}g.exports=o},1397:function(g,f,n){var t=n(40709);function o(e,r,a){for(var s=-1,d=e.criteria,l=r.criteria,m=d.length,h=a.length;++s<m;){var v=t(d[s],l[s]);if(v){if(s>=h)return v;var c=a[s];return v*(c=="desc"?-1:1)}}return e.index-r.index}g.exports=o},74741:function(g,f,n){var t=n(81580);function o(e,r){return function(a,s){if(a==null)return a;if(!t(a))return e(a,s);for(var d=a.length,l=r?d:-1,m=Object(a);(r?l--:++l<d)&&s(m[l],l,m)!==!1;);return a}}g.exports=o},37213:function(g,f,n){var t=n(26460),o=n(88904),e=n(52920),r=n(77236);function a(s,d){var l=r(s)?t:e;return l(s,o(d,3))}g.exports=a},98978:function(g,f,n){var t=n(40314),o=n(50690),e=n(94569),r=n(63108),a=e(function(s,d){if(s==null)return[];var l=d.length;return l>1&&r(s,d[0],d[1])?d=[]:l>2&&r(d[0],d[1],d[2])&&(d=[d[0]]),o(s,t(d,1),[])});g.exports=a},15738:function(g,f,n){var t=n(4293);function o(e){var r=e==null?0:e.length;return r?t(e,1,r):[]}g.exports=o},83828:function(g,f,n){"use strict";n.d(f,{U:function(){return v},y:function(){return m}});var t=n(74512),o=n(83292),e=n(49372),r=n(59002),a=n(72850),s=n(87933),d=n(91045);const l=({theme:c,expanded:E,variant:u,disabled:x,error:i})=>i?`1px solid ${c.colors.danger600} !important`:x?`1px solid ${c.colors.neutral150}`:E?`1px solid ${c.colors.primary600}`:u==="primary"?`1px solid ${c.colors.neutral0}`:`1px solid ${c.colors.neutral100}`,m=(0,o.default)(e.Z)``,h=(0,o.default)(a.x)`
  border: ${l};

  &:hover:not([aria-disabled='true']) {
    border: 1px solid ${({theme:c})=>c.colors.primary600};

    ${m} {
      color: ${({theme:c,expanded:E})=>E?void 0:c.colors.primary700};
    }

    ${e.Z} {
      color: ${({theme:c,expanded:E})=>E?void 0:c.colors.primary600};
    }

    & > ${s.k} {
      background: ${({theme:c})=>c.colors.primary100};
    }

    [data-strapi-dropdown='true'] {
      background: ${({theme:c})=>c.colors.primary200};
    }
  }
`,v=({children:c,disabled:E=!1,error:u,expanded:x=!1,hasErrorMessage:i=!0,id:p,onToggle:_,toggle:y,size:M="M",variant:O="primary"})=>{const P=(0,r.M)("accordion",p);return(0,t.jsxs)(d.S.Provider,{value:{expanded:x,onToggle:_,toggle:y,id:P,size:M,variant:O,disabled:E},children:[(0,t.jsx)(h,{"data-strapi-expanded":x,disabled:E,"aria-disabled":E,expanded:x,hasRadius:!0,variant:O,error:u,children:c}),u&&i&&(0,t.jsx)(a.x,{paddingTop:1,children:(0,t.jsx)(e.Z,{variant:"pi",textColor:"danger600",children:u})})]})}},89966:function(g,f,n){"use strict";n.d(f,{v:function(){return r}});var t=n(74512),o=n(72850),e=n(91045);const r=({children:a,...s})=>{const{expanded:d,id:l}=(0,e.A)();if(!d)return null;const m=`accordion-content-${l}`,h=`accordion-label-${l}`,v=`accordion-desc-${l}`;return(0,t.jsx)(o.x,{role:"region",id:m,"aria-labelledby":h,"aria-describedby":v,...s,children:a})}},91045:function(g,f,n){"use strict";n.d(f,{A:function(){return e},S:function(){return o}});var t=n(32735);const o=(0,t.createContext)({disabled:!1,expanded:!1,id:"",size:"M",variant:"primary"}),e=()=>(0,t.useContext)(o)},61762:function(g,f,n){"use strict";n.d(f,{B:function(){return x}});var t=n(74512),o=n(57269),e=n(83292),r=n(7563),a=n(49372),s=n(87933),d=n(27677),l=n(99140),m=n(83828),h=n(91045);const v=({expanded:i,disabled:p,variant:_})=>{let y="neutral100";return i?y="primary100":p?y="neutral150":_==="primary"&&(y="neutral0"),y};var c=n(98399);const E=(0,e.default)(r.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:i,expanded:p})=>p?i.colors.primary600:i.colors.neutral500};
    }
  }
`,u=(0,e.default)(s.k)`
  min-height: ${({theme:i,size:p})=>i.sizes.accordions[p]};
  border-radius: ${({theme:i,expanded:p})=>p?`${i.borderRadius} ${i.borderRadius} 0 0`:i.borderRadius};

  &:hover {
    svg {
      path {
        fill: ${({theme:i})=>i.colors.primary600};
      }
    }
  }
`,x=({title:i,description:p,as:_="span",togglePosition:y="right",action:M,...O})=>{const{onToggle:P,toggle:D,expanded:A,id:R,size:B,variant:W,disabled:C}=(0,h.A)(),K=`accordion-content-${R}`,L=`accordion-label-${R}`,I=`accordion-desc-${R}`,T=B==="M"?6:4,b=B==="M"?T:T-2,w=v({expanded:A,disabled:C,variant:W}),z={as:_,fontWeight:B==="S"?"bold":void 0,id:L,textColor:A?"primary600":"neutral700",ellipsis:!0,variant:B==="M"?"delta":void 0},F=A?"primary600":"neutral600",Z=A?"primary200":"neutral200",j=B==="M"?`${32/16}rem`:`${24/16}rem`,$=()=>{C||(D&&!P?(c.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'),D()):P&&P())},U=(0,t.jsx)(s.k,{justifyContent:"center",borderRadius:"50%",height:j,width:j,transform:A?"rotate(180deg)":void 0,"data-strapi-dropdown":!0,"aria-hidden":!0,as:"span",background:Z,cursor:C?"not-allowed":"pointer",onClick:$,shrink:0,children:(0,t.jsx)(l.J,{as:o.CarretDown,width:B==="M"?`${11/16}rem`:`${8/16}rem`,color:A?"primary600":"neutral600"})});return(0,t.jsx)(u,{paddingBottom:b,paddingLeft:T,paddingRight:T,paddingTop:b,background:w,expanded:A,size:B,justifyContent:"space-between",cursor:C?"not-allowed":"",children:(0,t.jsxs)(d.K,{horizontal:!0,spacing:3,flex:1,maxWidth:"100%",children:[y==="left"&&U,(0,t.jsx)(E,{onClick:$,"aria-disabled":C,"aria-expanded":A,"aria-controls":K,"aria-labelledby":L,"data-strapi-accordion-toggle":!0,expanded:A,type:"button",flex:1,minWidth:0,...O,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.y,{...z,children:i}),p&&(0,t.jsx)(a.Z,{as:"p",id:I,textColor:F,children:p})]})}),y==="right"&&(0,t.jsxs)(d.K,{horizontal:!0,spacing:3,children:[U,M]}),y==="left"&&M]})})}},99223:function(g,f,n){"use strict";n.d(f,{Z:function(){return l}});var t=n(32735),o=n(60216),e=n(83292),r=n(72850),a=n(87933);const s=(0,e.default)(a.k)`
  & > * + * {
    margin-left: ${({theme:m})=>m.spaces[2]};
  }

  margin-left: ${({pullRight:m})=>m?"auto":void 0};
`,d=(0,e.default)(s)`
  flex-shrink: 0;
`,l=({startActions:m,endActions:h})=>m||h?t.createElement(r.x,{paddingLeft:10,paddingRight:10},t.createElement(r.x,{paddingBottom:4},t.createElement(a.k,{justifyContent:"space-between",alignItems:"flex-start"},m&&t.createElement(s,{wrap:"wrap"},m),h&&t.createElement(d,{pullRight:!0},h)))):null;l.defaultProps={endActions:void 0,startActions:void 0},l.propTypes={endActions:o.node,startActions:o.node}},17e3:function(g,f,n){"use strict";n.d(f,{D:function(){return r}});var t=n(32735),o=n(60216),e=n(72850);const r=({children:a})=>t.createElement(e.x,{paddingLeft:10,paddingRight:10},a);r.propTypes={children:o.node.isRequired}},28356:function(g,f,n){"use strict";n.d(f,{T:function(){return v}});var t=n(32735),o=n(83292),e=n(60216),r=n(49372),a=n(72850),s=n(87933);const d=u=>{const x=(0,t.useRef)(null),[i,p]=(0,t.useState)(!0),_=([y])=>{p(y.isIntersecting)};return(0,t.useEffect)(()=>{const y=x.current,M=new IntersectionObserver(_,u);return y&&M.observe(x.current),()=>{y&&M.disconnect()}},[x,u]),[x,i]};var l=n(81002);const m=(u,x)=>{const i=(0,l.useCallbackRef)(x);(0,t.useLayoutEffect)(()=>{const p=new ResizeObserver(i);return Array.isArray(u)?u.forEach(_=>{_.current&&p.observe(_.current)}):u.current&&p.observe(u.current),()=>{p.disconnect()}},[u,i])},h=()=>{const u=(0,t.useRef)(null),[x,i]=(0,t.useState)(null),[p,_]=d({root:null,rootMargin:"0px",threshold:0});return m(p,()=>{p.current&&i(p.current.getBoundingClientRect())}),(0,t.useEffect)(()=>{u.current&&i(u.current.getBoundingClientRect())},[u]),{containerRef:p,isVisible:_,baseHeaderLayoutRef:u,headerSize:x}},v=u=>{const{containerRef:x,isVisible:i,baseHeaderLayoutRef:p,headerSize:_}=h();return t.createElement(t.Fragment,null,t.createElement("div",{style:{height:_?.height},ref:x},i&&t.createElement(E,{ref:p,...u})),!i&&t.createElement(E,{...u,sticky:!0,width:_?.width}))};v.displayName="HeaderLayout";const c=(0,o.default)(a.x)`
  position: fixed;
  top: 0;
  right: 0;
  width: ${u=>u.width}px;
  z-index: 4;
  box-shadow: ${({theme:u})=>u.shadows.tableShadow};
`,E=t.forwardRef(({navigationAction:u,primaryAction:x,secondaryAction:i,subtitle:p,title:_,sticky:y,width:M,...O},P)=>{const D=typeof p=="string";return y?t.createElement(c,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,background:"neutral0",width:M,"data-strapi-header-sticky":!0},t.createElement(s.k,{justifyContent:"space-between"},t.createElement(s.k,null,u&&t.createElement(a.x,{paddingRight:3},u),t.createElement(a.x,null,t.createElement(r.Z,{variant:"beta",as:"h1",...O},_),D?t.createElement(r.Z,{variant:"pi",textColor:"neutral600"},p):p),i?t.createElement(a.x,{paddingLeft:4},i):null),t.createElement(s.k,null,x?t.createElement(a.x,{paddingLeft:2},x):void 0))):t.createElement(a.x,{ref:P,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:u?6:8,background:"neutral100","data-strapi-header":!0},u?t.createElement(a.x,{paddingBottom:2},u):null,t.createElement(s.k,{justifyContent:"space-between"},t.createElement(s.k,null,t.createElement(r.Z,{as:"h1",variant:"alpha",...O},_),i?t.createElement(a.x,{paddingLeft:4},i):null),x),D?t.createElement(r.Z,{variant:"epsilon",textColor:"neutral600",as:"p"},p):p)});E.displayName="BaseHeaderLayout",E.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0,sticky:!1,width:void 0},E.propTypes={navigationAction:e.node,primaryAction:e.node,secondaryAction:e.node,sticky:e.bool,subtitle:e.oneOfType([e.string,e.node]),title:e.string.isRequired,width:e.number},v.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0},v.propTypes={navigationAction:e.node,primaryAction:e.node,secondaryAction:e.node,subtitle:e.oneOfType([e.string,e.node]),title:e.string.isRequired}},96709:function(g,f,n){"use strict";n.d(f,{A:function(){return d}});var t=n(32735),o=n(60216),e=n(83292),r=n(72850);const a=(0,e.default)(r.x)`
  display: grid;
  grid-template-columns: ${({hasSideNav:l})=>l?"auto 1fr":"1fr"};
`,s=(0,e.default)(r.x)`
  overflow-x: hidden;
`,d=({sideNav:l,children:m})=>t.createElement(a,{hasSideNav:Boolean(l)},l,t.createElement(s,{paddingBottom:10},m));d.defaultProps={sideNav:void 0},d.propTypes={children:o.node.isRequired,sideNav:o.node}},27649:function(g,f,n){"use strict";n.d(f,{o:function(){return a}});var t=n(32735),o=n(60216),e=n(83292);const r=e.default.main`
  // To prevent global outline on focus visible to force an outline when Main is focused
  &:focus-visible {
    outline: none;
  }
`,a=({labelledBy:s,...d})=>{const l=s||"main-content-title";return t.createElement(r,{"aria-labelledby":l,id:"main-content",tabIndex:-1,...d})};a.defaultProps={labelledBy:void 0},a.propTypes={labelledBy:o.string}},7563:function(g,f,n){"use strict";n.d(f,{A:function(){return c}});var t=n(74512),o=n(32735),e=n(83292),r=n(57269),a=n(72850),s=n(49372),d=n(87933),l=n(30350);const m=e.keyframes`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
`,h=e.default.div`
  animation: ${m} 2s infinite linear;
  will-change: transform;
`,v=(0,e.default)(d.k)`
  background: transparent;
  border: none;

  &[aria-disabled='true'] {
    pointer-events: none;
    svg path {
      fill: ${({theme:E})=>E.colors.neutral600};
    }
  }

  svg {
    display: flex;
    font-size: ${10/16}rem;
  }

  svg path {
    fill: ${({theme:E})=>E.colors.primary600};
  }

  ${l.BF}
`,c=o.forwardRef(({children:E,startIcon:u,endIcon:x,onClick:i,disabled:p=!1,loading:_=!1,...y},M)=>{const O=i&&!p?i:void 0,P=p||_;return(0,t.jsxs)(v,{ref:M,"aria-disabled":P,onClick:O,as:"button",type:"button",...y,children:[(u||_)&&(0,t.jsx)(a.x,{as:"span",paddingRight:2,"aria-hidden":!0,children:_?(0,t.jsx)(h,{children:(0,t.jsx)(r.Loader,{})}):u}),(0,t.jsx)(s.Z,{variant:"pi",textColor:P?"neutral600":"primary600",children:E}),x&&(0,t.jsx)(a.x,{as:"span",paddingLeft:2,"aria-hidden":!0,children:x})]})});c.displayName="TextButton"},29439:function(g,f,n){"use strict";n.d(f,{Z:function(){return o}});var t=n(74512);function o(e){return(0,t.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,t.jsx)("path",{d:"M24 13.3a.2.2 0 01-.2.2H5.74l8.239 8.239a.2.2 0 010 .282L12.14 23.86a.2.2 0 01-.282 0L.14 12.14a.2.2 0 010-.282L11.86.14a.2.2 0 01.282 0L13.98 1.98a.2.2 0 010 .282L5.74 10.5H23.8c.11 0 .2.09.2.2v2.6z",fill:"#212134"})})}},45112:function(g,f,n){"use strict";n.d(f,{Z:function(){return o}});var t=n(74512);function o(e){return(0,t.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.68 9.192c-.6.276-2.114 1.18-2.306 1.303a.792.792 0 00-.374.68v1.65a.797.797 0 00.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 00.216.744l1.167 1.166a.801.801 0 00.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 00.679.374h1.649a.797.797 0 00.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 00.744-.216l1.166-1.167a.803.803 0 00.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 00.374-.679v-1.649a.796.796 0 00-.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 00-.216-.744l-1.166-1.173a.802.802 0 00-.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 00-.68-.374h-1.65a.797.797 0 00-.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 00-.744.216L2.921 4.094a.802.802 0 00-.216.744l.008.03c.092.361.498 1.947.712 2.524l-.744 1.8zM12 17a5 5 0 100-10 5 5 0 000 10z",fill:"#212134"})})}}}]);
