@strapi/admin 4.10.4 → 4.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/build/{3816.2b58bc1a.chunk.js → 3816.1a828046.chunk.js} +19 -22
  2. package/build/{5542.5328b662.chunk.js → 5542.002522eb.chunk.js} +13 -13
  3. package/build/617.2c8c7183.chunk.js +155 -0
  4. package/build/{Admin-authenticatedApp.dbb99d34.chunk.js → Admin-authenticatedApp.6b74c5fd.chunk.js} +1 -1
  5. package/build/audit-logs-settings-page.7ec976e1.chunk.js +129 -0
  6. package/build/{content-manager.a837bfcd.chunk.js → content-manager.a97db8a1.chunk.js} +1 -1
  7. package/build/{email-settings-page.5bc22e5a.chunk.js → email-settings-page.dba83275.chunk.js} +4 -4
  8. package/build/i18n-settings-page.e34ec940.chunk.js +114 -0
  9. package/build/index.html +1 -1
  10. package/build/main.57970a57.js +2674 -0
  11. package/build/{runtime~main.a096f3d0.js → runtime~main.df78e1c7.js} +2 -2
  12. package/build/upload-settings.63d99bf5.chunk.js +14 -0
  13. package/build/upload.bf183c0c.chunk.js +34 -0
  14. package/build/{users-advanced-settings-page.dd2a4954.chunk.js → users-advanced-settings-page.4f49ca57.chunk.js} +3 -3
  15. package/build/users-email-settings-page.756aa7ab.chunk.js +24 -0
  16. package/build/users-providers-settings-page.ff9e4c0a.chunk.js +29 -0
  17. package/build/webhook-edit-page.550be445.chunk.js +128 -0
  18. package/ee/admin/content-manager/components/DynamicTable/CellContent/ReviewWorkflowsStage/getTableColumn.js +6 -1
  19. package/package.json +11 -11
  20. package/build/617.ce23dea8.chunk.js +0 -155
  21. package/build/audit-logs-settings-page.48b921f9.chunk.js +0 -129
  22. package/build/i18n-settings-page.1581894e.chunk.js +0 -114
  23. package/build/main.31bdf27e.js +0 -2679
  24. package/build/upload-settings.4d962053.chunk.js +0 -14
  25. package/build/upload.4dcd513f.chunk.js +0 -34
  26. package/build/users-email-settings-page.510648ab.chunk.js +0 -24
  27. package/build/users-providers-settings-page.0ee7d54f.chunk.js +0 -29
  28. package/build/webhook-edit-page.36c9f20d.chunk.js +0 -128
@@ -1,10 +1,10 @@
1
- (self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[5542],{88058:function(a,u,n){var t=n(87650);function i(e,r){var o=e==null?0:e.length;return!!o&&t(e,r,0)>-1}a.exports=i},37431:function(a){function u(n,t,i){for(var e=-1,r=n==null?0:n.length;++e<r;)if(i(t,n[e]))return!0;return!1}a.exports=u},91096:function(a,u,n){var t=n(61124),i=n(88058),e=n(37431),r=n(26460),o=n(76535),s=n(30555),c=200;function l(x,p,v,E){var M=-1,g=i,d=!0,h=x.length,f=[],y=p.length;if(!h)return f;v&&(p=r(p,o(v))),E?(g=e,d=!1):p.length>=c&&(g=s,d=!1,p=new t(p));n:for(;++M<h;){var m=x[M],P=v==null?m:v(m);if(m=E||m!==0?m:0,d&&P===P){for(var O=y;O--;)if(p[O]===P)continue n;f.push(m)}else g(p,P,E)||f.push(m)}return f}a.exports=l},56671:function(a,u,n){var t=n(35897),i=n(74741),e=i(t);a.exports=e},60528:function(a){function u(n,t,i,e){for(var r=n.length,o=i+(e?1:-1);e?o--:++o<r;)if(t(n[o],o,n))return o;return-1}a.exports=u},87650:function(a,u,n){var t=n(60528),i=n(25556),e=n(54256);function r(o,s,c){return s===s?e(o,s,c):t(o,i,c)}a.exports=r},25556:function(a){function u(n){return n!==n}a.exports=u},52920:function(a,u,n){var t=n(56671),i=n(81580);function e(r,o){var s=-1,c=i(r)?Array(r.length):[];return t(r,function(l,x,p){c[++s]=o(l,x,p)}),c}a.exports=e},50690:function(a,u,n){var t=n(26460),i=n(80166),e=n(88904),r=n(52920),o=n(36024),s=n(76535),c=n(1397),l=n(15362),x=n(77236);function p(v,E,M){E.length?E=t(E,function(h){return x(h)?function(f){return i(f,h.length===1?h[0]:h)}:h}):E=[l];var g=-1;E=t(E,s(e));var d=r(v,function(h,f,y){var m=t(E,function(P){return P(h)});return{criteria:m,index:++g,value:h}});return o(d,function(h,f){return c(h,f,M)})}a.exports=p},36024:function(a){function u(n,t){var i=n.length;for(n.sort(t);i--;)n[i]=n[i].value;return n}a.exports=u},40709:function(a,u,n){var t=n(22945);function i(e,r){if(e!==r){var o=e!==void 0,s=e===null,c=e===e,l=t(e),x=r!==void 0,p=r===null,v=r===r,E=t(r);if(!p&&!E&&!l&&e>r||l&&x&&v&&!p&&!E||s&&x&&v||!o&&v||!c)return 1;if(!s&&!l&&!E&&e<r||E&&o&&c&&!s&&!l||p&&o&&c||!x&&c||!v)return-1}return 0}a.exports=i},1397:function(a,u,n){var t=n(40709);function i(e,r,o){for(var s=-1,c=e.criteria,l=r.criteria,x=c.length,p=o.length;++s<x;){var v=t(c[s],l[s]);if(v){if(s>=p)return v;var E=o[s];return v*(E=="desc"?-1:1)}}return e.index-r.index}a.exports=i},74741:function(a,u,n){var t=n(81580);function i(e,r){return function(o,s){if(o==null)return o;if(!t(o))return e(o,s);for(var c=o.length,l=r?c:-1,x=Object(o);(r?l--:++l<c)&&s(x[l],l,x)!==!1;);return o}}a.exports=i},54256:function(a){function u(n,t,i){for(var e=i-1,r=n.length;++e<r;)if(n[e]===t)return e;return-1}a.exports=u},37213:function(a,u,n){var t=n(26460),i=n(88904),e=n(52920),r=n(77236);function o(s,c){var l=r(s)?t:e;return l(s,i(c,3))}a.exports=o},98978:function(a,u,n){var t=n(40314),i=n(50690),e=n(94569),r=n(63108),o=e(function(s,c){if(s==null)return[];var l=c.length;return l>1&&r(s,c[0],c[1])?c=[]:l>2&&r(c[0],c[1],c[2])&&(c=[c[0]]),i(s,t(c,1),[])});a.exports=o},15738:function(a,u,n){var t=n(4293);function i(e){var r=e==null?0:e.length;return r?t(e,1,r):[]}a.exports=i},88708:function(a,u,n){var t=n(4293),i=n(25225);function e(r,o,s){return r&&r.length?(o=s||o===void 0?1:i(o),t(r,0,o<0?0:o)):[]}a.exports=e},86205:function(a,u,n){var t=n(91096),i=n(94569),e=n(99747),r=i(function(o,s){return e(o)?t(o,s):[]});a.exports=r},83828:function(a,u,n){"use strict";n.d(u,{U:function(){return E},y:function(){return p}});var t=n(74512),i=n(32735),e=n(8471),r=n(91045),o=n(74971),s=n(49372),c=n(87933),l=n(72850);const x=({theme:M,expanded:g,variant:d,disabled:h,error:f})=>f?`1px solid ${M.colors.danger600} !important`:h?`1px solid ${M.colors.neutral150}`:g?`1px solid ${M.colors.primary600}`:d==="primary"?`1px solid ${M.colors.neutral0}`:`1px solid ${M.colors.neutral100}`,p=(0,e.ZP)(s.Z)``,v=(0,e.ZP)(l.x)`
2
- border: ${x};
1
+ (self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[5542],{88058:function(a,u,n){var t=n(87650);function i(e,r){var o=e==null?0:e.length;return!!o&&t(e,r,0)>-1}a.exports=i},37431:function(a){function u(n,t,i){for(var e=-1,r=n==null?0:n.length;++e<r;)if(i(t,n[e]))return!0;return!1}a.exports=u},91096:function(a,u,n){var t=n(61124),i=n(88058),e=n(37431),r=n(26460),o=n(76535),s=n(30555),c=200;function l(p,x,v,E){var M=-1,g=i,d=!0,h=p.length,f=[],y=x.length;if(!h)return f;v&&(x=r(x,o(v))),E?(g=e,d=!1):x.length>=c&&(g=s,d=!1,x=new t(x));n:for(;++M<h;){var m=p[M],P=v==null?m:v(m);if(m=E||m!==0?m:0,d&&P===P){for(var _=y;_--;)if(x[_]===P)continue n;f.push(m)}else g(x,P,E)||f.push(m)}return f}a.exports=l},56671:function(a,u,n){var t=n(35897),i=n(74741),e=i(t);a.exports=e},60528:function(a){function u(n,t,i,e){for(var r=n.length,o=i+(e?1:-1);e?o--:++o<r;)if(t(n[o],o,n))return o;return-1}a.exports=u},87650:function(a,u,n){var t=n(60528),i=n(25556),e=n(54256);function r(o,s,c){return s===s?e(o,s,c):t(o,i,c)}a.exports=r},25556:function(a){function u(n){return n!==n}a.exports=u},52920:function(a,u,n){var t=n(56671),i=n(81580);function e(r,o){var s=-1,c=i(r)?Array(r.length):[];return t(r,function(l,p,x){c[++s]=o(l,p,x)}),c}a.exports=e},50690:function(a,u,n){var t=n(26460),i=n(80166),e=n(88904),r=n(52920),o=n(36024),s=n(76535),c=n(1397),l=n(15362),p=n(77236);function x(v,E,M){E.length?E=t(E,function(h){return p(h)?function(f){return i(f,h.length===1?h[0]:h)}:h}):E=[l];var g=-1;E=t(E,s(e));var d=r(v,function(h,f,y){var m=t(E,function(P){return P(h)});return{criteria:m,index:++g,value:h}});return o(d,function(h,f){return c(h,f,M)})}a.exports=x},36024:function(a){function u(n,t){var i=n.length;for(n.sort(t);i--;)n[i]=n[i].value;return n}a.exports=u},40709:function(a,u,n){var t=n(22945);function i(e,r){if(e!==r){var o=e!==void 0,s=e===null,c=e===e,l=t(e),p=r!==void 0,x=r===null,v=r===r,E=t(r);if(!x&&!E&&!l&&e>r||l&&p&&v&&!x&&!E||s&&p&&v||!o&&v||!c)return 1;if(!s&&!l&&!E&&e<r||E&&o&&c&&!s&&!l||x&&o&&c||!p&&c||!v)return-1}return 0}a.exports=i},1397:function(a,u,n){var t=n(40709);function i(e,r,o){for(var s=-1,c=e.criteria,l=r.criteria,p=c.length,x=o.length;++s<p;){var v=t(c[s],l[s]);if(v){if(s>=x)return v;var E=o[s];return v*(E=="desc"?-1:1)}}return e.index-r.index}a.exports=i},74741:function(a,u,n){var t=n(81580);function i(e,r){return function(o,s){if(o==null)return o;if(!t(o))return e(o,s);for(var c=o.length,l=r?c:-1,p=Object(o);(r?l--:++l<c)&&s(p[l],l,p)!==!1;);return o}}a.exports=i},54256:function(a){function u(n,t,i){for(var e=i-1,r=n.length;++e<r;)if(n[e]===t)return e;return-1}a.exports=u},37213:function(a,u,n){var t=n(26460),i=n(88904),e=n(52920),r=n(77236);function o(s,c){var l=r(s)?t:e;return l(s,i(c,3))}a.exports=o},98978:function(a,u,n){var t=n(40314),i=n(50690),e=n(94569),r=n(63108),o=e(function(s,c){if(s==null)return[];var l=c.length;return l>1&&r(s,c[0],c[1])?c=[]:l>2&&r(c[0],c[1],c[2])&&(c=[c[0]]),i(s,t(c,1),[])});a.exports=o},15738:function(a,u,n){var t=n(4293);function i(e){var r=e==null?0:e.length;return r?t(e,1,r):[]}a.exports=i},88708:function(a,u,n){var t=n(4293),i=n(25225);function e(r,o,s){return r&&r.length?(o=s||o===void 0?1:i(o),t(r,0,o<0?0:o)):[]}a.exports=e},86205:function(a,u,n){var t=n(91096),i=n(94569),e=n(99747),r=i(function(o,s){return e(o)?t(o,s):[]});a.exports=r},83828:function(a,u,n){"use strict";n.d(u,{U:function(){return E},y:function(){return x}});var t=n(74512),i=n(32735),e=n(8471),r=n(91045),o=n(74971),s=n(49372),c=n(87933),l=n(72850);const p=({theme:M,expanded:g,variant:d,disabled:h,error:f})=>f?`1px solid ${M.colors.danger600} !important`:h?`1px solid ${M.colors.neutral150}`:g?`1px solid ${M.colors.primary600}`:d==="primary"?`1px solid ${M.colors.neutral0}`:`1px solid ${M.colors.neutral100}`,x=(0,e.ZP)(s.Z)``,v=(0,e.ZP)(l.x)`
2
+ border: ${p};
3
3
 
4
4
  &:hover:not([aria-disabled='true']) {
5
5
  border: 1px solid ${({theme:M})=>M.colors.primary600};
6
6
 
7
- ${p} {
7
+ ${x} {
8
8
  color: ${({theme:M,expanded:g})=>g?void 0:M.colors.primary700};
9
9
  }
10
10
 
@@ -20,7 +20,7 @@
20
20
  background: ${({theme:M})=>M.colors.primary200};
21
21
  }
22
22
  }
23
- `,E=({children:M,disabled:g=!1,error:d,expanded:h=!1,hasErrorMessage:f=!0,id:y,onToggle:m,toggle:P,size:O="M",variant:j="primary",shadow:A})=>{const _=(0,o.M)(y),C=i.useMemo(()=>({expanded:h,onToggle:m,toggle:P,id:_,size:O,variant:j,disabled:g}),[g,h,_,m,O,P,j]);return(0,t.jsxs)(r.S.Provider,{value:C,children:[(0,t.jsx)(v,{"data-strapi-expanded":h,disabled:g,"aria-disabled":g,expanded:h,hasRadius:!0,variant:j,error:d,shadow:A,children:M}),d&&f&&(0,t.jsx)(l.x,{paddingTop:1,children:(0,t.jsx)(s.Z,{variant:"pi",textColor:"danger600",children:d})})]})}},89966:function(a,u,n){"use strict";n.d(u,{v:function(){return r}});var t=n(74512),i=n(91045),e=n(72850);const r=({children:o,...s})=>{const{expanded:c,id:l}=(0,i.A)();if(!c)return null;const x=`accordion-content-${l}`,p=`accordion-label-${l}`,v=`accordion-desc-${l}`;return(0,t.jsx)(e.x,{role:"region",id:x,"aria-labelledby":p,"aria-describedby":v,...s,children:o})}},91045:function(a,u,n){"use strict";n.d(u,{A:function(){return e},S:function(){return i}});var t=n(32735);const i=(0,t.createContext)({disabled:!1,expanded:!1,id:"",size:"M",variant:"primary"}),e=()=>(0,t.useContext)(i)},61762:function(a,u,n){"use strict";n.d(u,{B:function(){return M}});var t=n(74512),i=n(16899),e=n(8471),r=n(83828),o=n(91045);const s=({expanded:g,disabled:d,variant:h})=>{let f="neutral100";return g?f="primary100":d?f="neutral150":h==="primary"&&(f="neutral0"),f};var c=n(7563),l=n(99140),x=n(87933),p=n(49372);const v=(0,e.ZP)(c.A)`
23
+ `,E=({children:M,disabled:g=!1,error:d,expanded:h=!1,hasErrorMessage:f=!0,id:y,onToggle:m,toggle:P,size:_="M",variant:j="primary",shadow:A})=>{const O=(0,o.M)(y),C=i.useMemo(()=>({expanded:h,onToggle:m,toggle:P,id:O,size:_,variant:j,disabled:g}),[g,h,O,m,_,P,j]);return(0,t.jsxs)(r.S.Provider,{value:C,children:[(0,t.jsx)(v,{"data-strapi-expanded":h,disabled:g,"aria-disabled":g,expanded:h,hasRadius:!0,variant:j,error:d,shadow:A,children:M}),d&&f&&(0,t.jsx)(l.x,{paddingTop:1,children:(0,t.jsx)(s.Z,{variant:"pi",textColor:"danger600",children:d})})]})}},89966:function(a,u,n){"use strict";n.d(u,{v:function(){return r}});var t=n(74512),i=n(91045),e=n(72850);const r=({children:o,...s})=>{const{expanded:c,id:l}=(0,i.A)();if(!c)return null;const p=`accordion-content-${l}`,x=`accordion-label-${l}`,v=`accordion-desc-${l}`;return(0,t.jsx)(e.x,{role:"region",id:p,"aria-labelledby":x,"aria-describedby":v,...s,children:o})}},91045:function(a,u,n){"use strict";n.d(u,{A:function(){return e},S:function(){return i}});var t=n(32735);const i=(0,t.createContext)({disabled:!1,expanded:!1,id:"",size:"M",variant:"primary"}),e=()=>(0,t.useContext)(i)},61762:function(a,u,n){"use strict";n.d(u,{B:function(){return M}});var t=n(74512),i=n(16899),e=n(8471),r=n(83828),o=n(91045);const s=({expanded:g,disabled:d,variant:h})=>{let f="neutral100";return g?f="primary100":d?f="neutral150":h==="primary"&&(f="neutral0"),f};var c=n(7563),l=n(99140),p=n(87933),x=n(49372);const v=(0,e.ZP)(c.A)`
24
24
  text-align: left;
25
25
 
26
26
  // necessary to make the ellipsis prop work on the title
@@ -36,7 +36,7 @@
36
36
  fill: ${({theme:g,expanded:d})=>d?g.colors.primary600:g.colors.neutral500};
37
37
  }
38
38
  }
39
- `,E=(0,e.ZP)(x.k)`
39
+ `,E=(0,e.ZP)(p.k)`
40
40
  min-height: ${({theme:g,size:d})=>g.sizes.accordions[d]};
41
41
  border-radius: ${({theme:g,expanded:d})=>d?`${g.borderRadius} ${g.borderRadius} 0 0`:g.borderRadius};
42
42
 
@@ -47,25 +47,25 @@
47
47
  }
48
48
  }
49
49
  }
50
- `,M=({title:g,description:d,as:h="span",togglePosition:f="right",action:y,...m})=>{const{onToggle:P,toggle:O,expanded:j,id:A,size:_,variant:C,disabled:B}=(0,o.A)(),U=`accordion-content-${A}`,L=`accordion-label-${A}`,$=`accordion-desc-${A}`,D=_==="M"?6:4,b=_==="M"?D:D-2,I=s({expanded:j,disabled:B,variant:C}),K={as:h,fontWeight:_==="S"?"bold":void 0,id:L,textColor:j?"primary600":"neutral700",ellipsis:!0,variant:_==="M"?"delta":void 0},Z=j?"primary600":"neutral600",w=j?"primary200":"neutral200",R=_==="M"?`${32/16}rem`:`${24/16}rem`,T=()=>{B||(O&&!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'),O()):P&&P())},W=(0,t.jsx)(x.k,{justifyContent:"center",borderRadius:"50%",height:R,width:R,transform:j?"rotate(180deg)":void 0,"data-strapi-dropdown":!0,"aria-hidden":!0,as:"span",background:w,cursor:B?"not-allowed":"pointer",onClick:T,shrink:0,children:(0,t.jsx)(l.J,{as:i.Z,width:_==="M"?`${11/16}rem`:`${8/16}rem`,color:j?"primary600":"neutral600"})});return(0,t.jsx)(E,{paddingBottom:b,paddingLeft:D,paddingRight:D,paddingTop:b,background:I,expanded:j,size:_,justifyContent:"space-between",cursor:B?"not-allowed":"",children:(0,t.jsxs)(x.k,{gap:3,flex:1,maxWidth:"100%",children:[f==="left"&&W,(0,t.jsx)(v,{onClick:T,"aria-disabled":B,"aria-expanded":j,"aria-controls":U,"aria-labelledby":L,"data-strapi-accordion-toggle":!0,expanded:j,type:"button",flex:1,minWidth:0,...m,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.y,{...K,children:g}),d&&(0,t.jsx)(p.Z,{as:"p",id:$,textColor:Z,children:d})]})}),f==="right"&&(0,t.jsxs)(x.k,{gap:3,children:[W,y]}),f==="left"&&y]})})}},99223:function(a,u,n){"use strict";n.d(u,{Z:function(){return x}});var t=n(74512),i=n(32735),e=n(60216),r=n(8471),o=n(87933),s=n(72850);const c=(0,r.ZP)(o.k)`
50
+ `,M=({title:g,description:d,as:h="span",togglePosition:f="right",action:y,...m})=>{const{onToggle:P,toggle:_,expanded:j,id:A,size:O,variant:C,disabled:B}=(0,o.A)(),$=`accordion-content-${A}`,L=`accordion-label-${A}`,U=`accordion-desc-${A}`,D=O==="M"?6:4,b=O==="M"?D:D-2,I=s({expanded:j,disabled:B,variant:C}),K={as:h,fontWeight:O==="S"?"bold":void 0,id:L,textColor:j?"primary600":"neutral700",ellipsis:!0,variant:O==="M"?"delta":void 0},Z=j?"primary600":"neutral600",w=j?"primary200":"neutral200",R=O==="M"?`${32/16}rem`:`${24/16}rem`,T=()=>{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())},W=(0,t.jsx)(p.k,{justifyContent:"center",borderRadius:"50%",height:R,width:R,transform:j?"rotate(180deg)":void 0,"data-strapi-dropdown":!0,"aria-hidden":!0,as:"span",background:w,cursor:B?"not-allowed":"pointer",onClick:T,shrink:0,children:(0,t.jsx)(l.J,{as:i.Z,width:O==="M"?`${11/16}rem`:`${8/16}rem`,color:j?"primary600":"neutral600"})});return(0,t.jsx)(E,{paddingBottom:b,paddingLeft:D,paddingRight:D,paddingTop:b,background:I,expanded:j,size:O,justifyContent:"space-between",cursor:B?"not-allowed":"",children:(0,t.jsxs)(p.k,{gap:3,flex:1,maxWidth:"100%",children:[f==="left"&&W,(0,t.jsx)(v,{onClick:T,"aria-disabled":B,"aria-expanded":j,"aria-controls":$,"aria-labelledby":L,"data-strapi-accordion-toggle":!0,expanded:j,type:"button",flex:1,minWidth:0,...m,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.y,{...K,children:g}),d&&(0,t.jsx)(x.Z,{as:"p",id:U,textColor:Z,children:d})]})}),f==="right"&&(0,t.jsxs)(p.k,{gap:3,children:[W,y]}),f==="left"&&y]})})}},99223:function(a,u,n){"use strict";n.d(u,{Z:function(){return p}});var t=n(74512),i=n(32735),e=n(60216),r=n(8471),o=n(87933),s=n(72850);const c=(0,r.ZP)(o.k)`
51
51
  & > * + * {
52
- margin-left: ${({theme:p})=>p.spaces[2]};
52
+ margin-left: ${({theme:x})=>x.spaces[2]};
53
53
  }
54
54
 
55
- margin-left: ${({pullRight:p})=>p?"auto":void 0};
55
+ margin-left: ${({pullRight:x})=>x?"auto":void 0};
56
56
  `,l=(0,r.ZP)(c)`
57
57
  flex-shrink: 0;
58
- `,x=({startActions:p,endActions:v})=>p||v?(0,t.jsx)(s.x,{paddingLeft:10,paddingRight:10,children:(0,t.jsx)(s.x,{paddingBottom:4,children:(0,t.jsxs)(o.k,{justifyContent:"space-between",alignItems:"flex-start",children:[p&&(0,t.jsx)(c,{wrap:"wrap",children:p}),v&&(0,t.jsx)(l,{pullRight:!0,children:v})]})})}):null;x.defaultProps={endActions:void 0,startActions:void 0},x.propTypes={endActions:e.node,startActions:e.node}},17e3:function(a,u,n){"use strict";n.d(u,{D:function(){return o}});var t=n(74512),i=n(32735),e=n(60216),r=n(72850);const o=({children:s})=>(0,t.jsx)(r.x,{paddingLeft:10,paddingRight:10,children:s});o.propTypes={children:e.node.isRequired}},82055:function(a,u,n){"use strict";n.d(u,{T:function(){return E}});var t=n(74512),i=n(32735),e=n(60216),r=n(8471);const o=d=>{const h=(0,i.useRef)(null),[f,y]=(0,i.useState)(!0),m=([P])=>{y(P.isIntersecting)};return(0,i.useEffect)(()=>{const P=h.current,O=new IntersectionObserver(m,d);return P&&O.observe(h.current),()=>{P&&O.disconnect()}},[h,d]),[h,f]};var s=n(63060);const c=(d,h)=>{const f=(0,s.W)(h);(0,i.useLayoutEffect)(()=>{const y=new ResizeObserver(f);return Array.isArray(d)?d.forEach(m=>{m.current&&y.observe(m.current)}):d.current&&y.observe(d.current),()=>{y.disconnect()}},[d,f])};var l=n(72850),x=n(87933),p=n(49372);const v=()=>{const d=(0,i.useRef)(null),[h,f]=(0,i.useState)(null),[y,m]=o({root:null,rootMargin:"0px",threshold:0});return c(y,()=>{y.current&&f(y.current.getBoundingClientRect())}),(0,i.useEffect)(()=>{d.current&&f(d.current.getBoundingClientRect())},[d]),{containerRef:y,isVisible:m,baseHeaderLayoutRef:d,headerSize:h}},E=d=>{const{containerRef:h,isVisible:f,baseHeaderLayoutRef:y,headerSize:m}=v();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:{height:m?.height},ref:h,children:f&&(0,t.jsx)(g,{ref:y,...d})}),!f&&(0,t.jsx)(g,{...d,sticky:!0,width:m?.width})]})};E.displayName="HeaderLayout";const M=(0,r.ZP)(l.x)`
58
+ `,p=({startActions:x,endActions:v})=>x||v?(0,t.jsx)(s.x,{paddingLeft:10,paddingRight:10,children:(0,t.jsx)(s.x,{paddingBottom:4,children:(0,t.jsxs)(o.k,{justifyContent:"space-between",alignItems:"flex-start",children:[x&&(0,t.jsx)(c,{wrap:"wrap",children:x}),v&&(0,t.jsx)(l,{pullRight:!0,children:v})]})})}):null;p.defaultProps={endActions:void 0,startActions:void 0},p.propTypes={endActions:e.node,startActions:e.node}},17e3:function(a,u,n){"use strict";n.d(u,{D:function(){return o}});var t=n(74512),i=n(32735),e=n(60216),r=n(72850);const o=({children:s})=>(0,t.jsx)(r.x,{paddingLeft:10,paddingRight:10,children:s});o.propTypes={children:e.node.isRequired}},82055:function(a,u,n){"use strict";n.d(u,{T:function(){return E}});var t=n(74512),i=n(32735),e=n(60216),r=n(8471);const o=d=>{const h=(0,i.useRef)(null),[f,y]=(0,i.useState)(!0),m=([P])=>{y(P.isIntersecting)};return(0,i.useEffect)(()=>{const P=h.current,_=new IntersectionObserver(m,d);return P&&_.observe(h.current),()=>{P&&_.disconnect()}},[h,d]),[h,f]};var s=n(63060);const c=(d,h)=>{const f=(0,s.W)(h);(0,i.useLayoutEffect)(()=>{const y=new ResizeObserver(f);return Array.isArray(d)?d.forEach(m=>{m.current&&y.observe(m.current)}):d.current&&y.observe(d.current),()=>{y.disconnect()}},[d,f])};var l=n(72850),p=n(87933),x=n(49372);const v=()=>{const d=(0,i.useRef)(null),[h,f]=(0,i.useState)(null),[y,m]=o({root:null,rootMargin:"0px",threshold:0});return c(y,()=>{y.current&&f(y.current.getBoundingClientRect())}),(0,i.useEffect)(()=>{d.current&&f(d.current.getBoundingClientRect())},[d]),{containerRef:y,isVisible:m,baseHeaderLayoutRef:d,headerSize:h}},E=d=>{const{containerRef:h,isVisible:f,baseHeaderLayoutRef:y,headerSize:m}=v();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:{height:m?.height},ref:h,children:f&&(0,t.jsx)(g,{ref:y,...d})}),!f&&(0,t.jsx)(g,{...d,sticky:!0,width:m?.width})]})};E.displayName="HeaderLayout";const M=(0,r.ZP)(l.x)`
59
59
  width: ${d=>d.width}px;
60
60
  z-index: ${({theme:d})=>d.zIndices[1]};
61
- `,g=i.forwardRef(({navigationAction:d,primaryAction:h,secondaryAction:f,subtitle:y,title:m,sticky:P,width:O,...j},A)=>{const _=typeof y=="string";return P?(0,t.jsx)(M,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,position:"fixed",top:0,right:0,background:"neutral0",shadow:"tableShadow",width:O,"data-strapi-header-sticky":!0,children:(0,t.jsxs)(x.k,{justifyContent:"space-between",children:[(0,t.jsxs)(x.k,{children:[d&&(0,t.jsx)(l.x,{paddingRight:3,children:d}),(0,t.jsxs)(l.x,{children:[(0,t.jsx)(p.Z,{variant:"beta",as:"h1",...j,children:m}),_?(0,t.jsx)(p.Z,{variant:"pi",textColor:"neutral600",children:y}):y]}),f?(0,t.jsx)(l.x,{paddingLeft:4,children:f}):null]}),(0,t.jsx)(x.k,{children:h?(0,t.jsx)(l.x,{paddingLeft:2,children:h}):void 0})]})}):(0,t.jsxs)(l.x,{ref:A,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:d?6:8,background:"neutral100","data-strapi-header":!0,children:[d?(0,t.jsx)(l.x,{paddingBottom:2,children:d}):null,(0,t.jsxs)(x.k,{justifyContent:"space-between",children:[(0,t.jsxs)(x.k,{minWidth:0,children:[(0,t.jsx)(p.Z,{as:"h1",variant:"alpha",...j,children:m}),f?(0,t.jsx)(l.x,{paddingLeft:4,children:f}):null]}),h]}),_?(0,t.jsx)(p.Z,{variant:"epsilon",textColor:"neutral600",as:"p",children:y}):y]})});g.displayName="BaseHeaderLayout",g.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0,sticky:!1,width:void 0},g.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},E.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0},E.propTypes={navigationAction:e.node,primaryAction:e.node,secondaryAction:e.node,subtitle:e.oneOfType([e.string,e.node]),title:e.string.isRequired}},96709:function(a,u,n){"use strict";n.d(u,{A:function(){return l}});var t=n(74512),i=n(32735),e=n(60216),r=n(8471),o=n(72850);const s=(0,r.ZP)(o.x)`
61
+ `,g=i.forwardRef(({navigationAction:d,primaryAction:h,secondaryAction:f,subtitle:y,title:m,sticky:P,width:_,...j},A)=>{const O=typeof y=="string";return P?(0,t.jsx)(M,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,position:"fixed",top:0,right:0,background:"neutral0",shadow:"tableShadow",width:_,"data-strapi-header-sticky":!0,children:(0,t.jsxs)(p.k,{justifyContent:"space-between",children:[(0,t.jsxs)(p.k,{children:[d&&(0,t.jsx)(l.x,{paddingRight:3,children:d}),(0,t.jsxs)(l.x,{children:[(0,t.jsx)(x.Z,{variant:"beta",as:"h1",...j,children:m}),O?(0,t.jsx)(x.Z,{variant:"pi",textColor:"neutral600",children:y}):y]}),f?(0,t.jsx)(l.x,{paddingLeft:4,children:f}):null]}),(0,t.jsx)(p.k,{children:h?(0,t.jsx)(l.x,{paddingLeft:2,children:h}):void 0})]})}):(0,t.jsxs)(l.x,{ref:A,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:d?6:8,background:"neutral100","data-strapi-header":!0,children:[d?(0,t.jsx)(l.x,{paddingBottom:2,children:d}):null,(0,t.jsxs)(p.k,{justifyContent:"space-between",children:[(0,t.jsxs)(p.k,{minWidth:0,children:[(0,t.jsx)(x.Z,{as:"h1",variant:"alpha",...j,children:m}),f?(0,t.jsx)(l.x,{paddingLeft:4,children:f}):null]}),h]}),O?(0,t.jsx)(x.Z,{variant:"epsilon",textColor:"neutral600",as:"p",children:y}):y]})});g.displayName="BaseHeaderLayout",g.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0,sticky:!1,width:void 0},g.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},E.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0},E.propTypes={navigationAction:e.node,primaryAction:e.node,secondaryAction:e.node,subtitle:e.oneOfType([e.string,e.node]),title:e.string.isRequired}},96709:function(a,u,n){"use strict";n.d(u,{A:function(){return l}});var t=n(74512),i=n(32735),e=n(60216),r=n(8471),o=n(72850);const s=(0,r.ZP)(o.x)`
62
62
  display: grid;
63
- grid-template-columns: ${({hasSideNav:x})=>x?"auto 1fr":"1fr"};
63
+ grid-template-columns: ${({hasSideNav:p})=>p?"auto 1fr":"1fr"};
64
64
  `,c=(0,r.ZP)(o.x)`
65
65
  overflow-x: hidden;
66
- `,l=({sideNav:x,children:p})=>(0,t.jsxs)(s,{hasSideNav:!!x,children:[x,(0,t.jsx)(c,{paddingBottom:10,children:p})]});l.defaultProps={sideNav:void 0},l.propTypes={children:e.node.isRequired,sideNav:e.node}},27649:function(a,u,n){"use strict";n.d(u,{o:function(){return s}});var t=n(74512),i=n(32735),e=n(60216),r=n(8471);const o=r.ZP.main`
66
+ `,l=({sideNav:p,children:x})=>(0,t.jsxs)(s,{hasSideNav:!!p,children:[p,(0,t.jsx)(c,{paddingBottom:10,children:x})]});l.defaultProps={sideNav:void 0},l.propTypes={children:e.node.isRequired,sideNav:e.node}},27649:function(a,u,n){"use strict";n.d(u,{o:function(){return o}});var t=n(74512),i=n(8471),e=n(72850);const r=(0,i.ZP)(e.x)`
67
67
  // To prevent global outline on focus visible to force an outline when Main is focused
68
68
  &:focus-visible {
69
69
  outline: none;
70
70
  }
71
- `,s=({labelledBy:c,...l})=>(0,t.jsx)(o,{"aria-labelledby":c||"main-content-title",id:"main-content",tabIndex:-1,...l});s.defaultProps={labelledBy:void 0},s.propTypes={labelledBy:e.string}},29439:function(a,u,n){"use strict";n.d(u,{Z:function(){return e}});var t=n(74512);const i=r=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...r,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=i},45112:function(a,u,n){"use strict";n.d(u,{Z:function(){return e}});var t=n(74512);const i=r=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...r,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=i}}]);
71
+ `,o=({labelledBy:s="main-content-title",...c})=>(0,t.jsx)(r,{"aria-labelledby":s,as:"main",id:"main-content",tabIndex:-1,...c})},29439:function(a,u,n){"use strict";n.d(u,{Z:function(){return e}});var t=n(74512);const i=r=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...r,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=i},45112:function(a,u,n){"use strict";n.d(u,{Z:function(){return e}});var t=n(74512);const i=r=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...r,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=i}}]);
@@ -0,0 +1,155 @@
1
+ (self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[617],{56671:function(_,i,e){var n=e(35897),l=e(74741),s=l(n);_.exports=s},91131:function(_,i,e){var n=e(94318),l=e(3387),s="[object RegExp]";function t(a){return l(a)&&n(a)==s}_.exports=t},52920:function(_,i,e){var n=e(56671),l=e(81580);function s(t,a){var d=-1,o=l(t)?Array(t.length):[];return n(t,function(h,c,g){o[++d]=a(h,c,g)}),o}_.exports=s},50690:function(_,i,e){var n=e(26460),l=e(80166),s=e(88904),t=e(52920),a=e(36024),d=e(76535),o=e(1397),h=e(15362),c=e(77236);function g(x,E,m){E.length?E=n(E,function(f){return c(f)?function(v){return l(v,f.length===1?f[0]:f)}:f}):E=[h];var u=-1;E=n(E,d(s));var p=t(x,function(f,v,M){var C=n(E,function(j){return j(f)});return{criteria:C,index:++u,value:f}});return a(p,function(f,v){return o(f,v,m)})}_.exports=g},36024:function(_){function i(e,n){var l=e.length;for(e.sort(n);l--;)e[l]=e[l].value;return e}_.exports=i},40709:function(_,i,e){var n=e(22945);function l(s,t){if(s!==t){var a=s!==void 0,d=s===null,o=s===s,h=n(s),c=t!==void 0,g=t===null,x=t===t,E=n(t);if(!g&&!E&&!h&&s>t||h&&c&&x&&!g&&!E||d&&c&&x||!a&&x||!o)return 1;if(!d&&!h&&!E&&s<t||E&&a&&o&&!d&&!h||g&&a&&o||!c&&o||!x)return-1}return 0}_.exports=l},1397:function(_,i,e){var n=e(40709);function l(s,t,a){for(var d=-1,o=s.criteria,h=t.criteria,c=o.length,g=a.length;++d<c;){var x=n(o[d],h[d]);if(x){if(d>=g)return x;var E=a[d];return x*(E=="desc"?-1:1)}}return s.index-t.index}_.exports=l},74741:function(_,i,e){var n=e(81580);function l(s,t){return function(a,d){if(a==null)return a;if(!n(a))return s(a,d);for(var o=a.length,h=t?o:-1,c=Object(a);(t?h--:++h<o)&&d(c[h],h,c)!==!1;);return a}}_.exports=l},52654:function(_,i,e){var n=e(91131),l=e(76535),s=e(91782),t=s&&s.isRegExp,a=t?l(t):n;_.exports=a},98978:function(_,i,e){var n=e(40314),l=e(50690),s=e(94569),t=e(63108),a=s(function(d,o){if(d==null)return[];var h=o.length;return h>1&&t(d,o[0],o[1])?o=[]:h>2&&t(o[0],o[1],o[2])&&(o=[o[0]]),l(d,n(o,1),[])});_.exports=a},51382:function(_,i,e){var n=e(90454),l=e(24793),s=e(34327),t=e(85973),a=e(52654),d=e(38788),o=e(51119),h=e(25225),c=e(41119),g=30,x="...",E=/\w*$/;function m(u,p){var f=g,v=x;if(t(p)){var M="separator"in p?p.separator:M;f="length"in p?h(p.length):f,v="omission"in p?n(p.omission):v}u=c(u);var C=u.length;if(s(u)){var j=o(u);C=j.length}if(f>=C)return u;var P=f-d(v);if(P<1)return v;var O=j?l(j,0,P).join(""):u.slice(0,P);if(M===void 0)return O+v;if(j&&(P+=O.length-P),a(M)){if(u.slice(P).search(M)){var R,B=O;for(M.global||(M=RegExp(M.source,c(E.exec(M))+"g")),M.lastIndex=0;R=M.exec(B);)var A=R.index;O=O.slice(0,A===void 0?P:A)}}else if(u.indexOf(n(M),P)!=P){var U=O.lastIndexOf(M);U>-1&&(O=O.slice(0,U))}return O+v}_.exports=m},11299:function(_,i,e){"use strict";e.d(i,{$:function(){return c},O:function(){return g}});var n=e(74512),l=e(77277),s=e(8471),t=e(3685),a=e(87933),d=e(72850),o=e(49372);const h=(0,s.ZP)(a.k)`
2
+ svg {
3
+ height: ${10/16}rem;
4
+ width: ${10/16}rem;
5
+ path {
6
+ fill: ${({theme:x})=>x.colors.neutral500};
7
+ }
8
+ }
9
+ :last-of-type ${d.x} {
10
+ display: none;
11
+ }
12
+ :last-of-type ${o.Z} {
13
+ color: ${({theme:x})=>x.colors.neutral800};
14
+ font-weight: ${({theme:x})=>x.fontWeights.bold};
15
+ }
16
+ `,c=({children:x})=>(0,n.jsxs)(h,{inline:!0,as:"li",children:[(0,n.jsx)(o.Z,{variant:"pi",textColor:"neutral600",children:x}),(0,n.jsx)(d.x,{"aria-hidden":!0,paddingLeft:3,paddingRight:3,children:(0,n.jsx)(l.Z,{})})]});c.displayName="Crumb";const g=({children:x,label:E,...m})=>(0,n.jsxs)(a.k,{...m,children:[(0,n.jsx)(t.T,{children:E}),(0,n.jsx)("ol",{"aria-hidden":!0,children:x})]});g.displayName="Breadcrumbs"},21428:function(_,i,e){"use strict";e.d(i,{Wx:function(){return l0},XU:function(){return P},hQ:function(){return j}});var n=e(74512),l=e(32735),s=e(35331),t=e(16899),a=e(79405),d=e(8471),o=e(14268),h=e(95976),c=e(74971),g=e(36971),x=e(30350),E=e(23866),m=e(72850),u=e(49372),p=e(87107),f=e(87933),v=e(28847),M=e(67014),C=e(47851);const j=({children:r,clearLabel:Z="clear",creatable:L=!1,createMessage:b=W=>`Create "${W}"`,defaultFilterValue:K,defaultTextValue:w,defaultOpen:r0=!1,open:a0,onOpenChange:i0,disabled:y=!1,error:F,filterValue:o0,hasMoreItems:d0=!1,hint:h0,id:_0,label:c0,labelAction:u0,loading:H=!1,loadingMessage:x0="Loading content...",noOptionsMessage:f0=()=>"No results found",onChange:Q,onClear:V,onCreateOption:S,onFilterValueChange:E0,onInputChange:z,onTextValueChange:v0,onLoadMore:N,placeholder:g0="Select or enter a value",required:G=!1,startIcon:k,textValue:M0,value:J})=>{const[W,m0]=(0,h.T)({prop:a0,defaultProp:r0,onChange:i0}),[T,X]=(0,h.T)({prop:M0,defaultProp:w,onChange:v0}),[p0,Y]=(0,h.T)({prop:o0,defaultProp:K,onChange:E0}),q=l.useRef(null),e0=l.useRef(null),j0=l.useRef(null),I=(0,c.M)(_0),P0=D=>{V&&!y&&(X(""),Y(""),V(D),e0.current.focus())},O0=D=>{m0(D)},D0=D=>{X(D)},C0=D=>{Y(D)},Z0=D=>{z&&z(D)},R0=D=>{Q&&Q(D)},B0=(0,c.M)(),n0=`intersection-${(0,o.B)(B0)}`,T0=D=>{N&&d0&&!H&&N(D)},t0=()=>{S&&T&&S(T)};(0,g.s)(q,T0,{selectorToWatch:`#${n0}`,skipWhen:!W});const L0=`${I}-hint`,A0=`${I}-error`;return(0,n.jsx)(p.g,{hint:h0,error:F,id:I,required:G,children:(0,n.jsxs)(f.k,{direction:"column",alignItems:"stretch",gap:1,children:[(0,n.jsx)(v.Q,{action:u0,children:c0}),(0,n.jsxs)(a.hQ.Root,{autocomplete:L?"list":"both",open:W,onOpenChange:O0,onTextValueChange:D0,textValue:T,allowCustomValue:!0,disabled:y,required:G,value:J===null?void 0:J,onValueChange:R0,filterValue:p0,onFilterValueChange:C0,children:[(0,n.jsxs)(R,{$hasError:!!F,children:[(0,n.jsxs)(f.k,{flex:"1",as:"span",gap:3,children:[k?(0,n.jsx)(m.x,{as:"span","aria-hidden":!0,children:k}):null,(0,n.jsx)(B,{placeholder:g0,id:I,"aria-invalid":!!F,"aria-labelledby":`${L0} ${A0}`,onChange:Z0,ref:e0})]}),(0,n.jsxs)(f.k,{as:"span",gap:3,children:[T&&V?(0,n.jsx)(O,{as:"button",hasRadius:!0,background:"transparent",type:"button",onClick:P0,"aria-disabled":y,"aria-label":Z,title:Z,ref:j0,children:(0,n.jsx)(s.Z,{})}):null,(0,n.jsx)(A,{children:(0,n.jsx)(t.Z,{})})]})]}),(0,n.jsx)(a.hQ.Portal,{children:(0,n.jsx)(U,{sideOffset:4,children:(0,n.jsxs)(s0,{ref:q,children:[r,L?(0,n.jsx)(a.hQ.CreateItem,{onPointerUp:t0,onClick:t0,asChild:!0,children:(0,n.jsx)($,{children:(0,n.jsx)(u.Z,{children:b(T??"")})})}):null,!L&&!H?(0,n.jsx)(a.hQ.NoValueFound,{asChild:!0,children:(0,n.jsx)($,{$hasHover:!1,children:(0,n.jsx)(u.Z,{children:f0(T??"")})})}):null,H?(0,n.jsx)(f.k,{justifyContent:"center",alignItems:"center",paddingTop:2,paddingBottom:2,children:(0,n.jsx)(E.a,{small:!0,children:x0})}):null,(0,n.jsx)(m.x,{id:n0,width:"100%",height:"1px"})]})})})]}),(0,n.jsx)(M.J,{}),(0,n.jsx)(C.c,{})]})})},P=r=>(0,n.jsx)(j,{...r,creatable:!0}),O=(0,d.ZP)(m.x)`
17
+ border: none;
18
+
19
+ svg {
20
+ height: ${11/16}rem;
21
+ width: ${11/16}rem;
22
+ }
23
+
24
+ svg path {
25
+ fill: ${({theme:r})=>r.colors.neutral600};
26
+ }
27
+ `,R=(0,d.ZP)(a.hQ.Trigger)`
28
+ position: relative;
29
+ border: 1px solid ${({theme:r,$hasError:Z})=>Z?r.colors.danger600:r.colors.neutral200};
30
+ padding-right: ${({theme:r})=>r.spaces[3]};
31
+ padding-left: ${({theme:r})=>r.spaces[3]};
32
+ border-radius: ${({theme:r})=>r.borderRadius};
33
+ background: ${({theme:r})=>r.colors.neutral0};
34
+ overflow: hidden;
35
+ display: flex;
36
+ align-items: center;
37
+ justify-content: space-between;
38
+ gap: ${({theme:r})=>r.spaces[4]};
39
+
40
+ &[data-disabled] {
41
+ color: ${({theme:r})=>r.colors.neutral600};
42
+ background: ${({theme:r})=>r.colors.neutral150};
43
+ cursor: not-allowed;
44
+ }
45
+
46
+ /* Required to ensure the below inputFocusStyles are adhered too */
47
+ &:focus-visible {
48
+ outline: none;
49
+ }
50
+
51
+ ${({theme:r,$hasError:Z})=>(0,x.k3)()({theme:r,hasError:Z})};
52
+ `,B=(0,d.ZP)(a.hQ.TextInput)`
53
+ width: 100%;
54
+ font-size: ${14/16}rem;
55
+ color: ${({theme:r})=>r.colors.neutral800};
56
+ min-height: ${40/16}rem;
57
+ border: none;
58
+ background-color: transparent;
59
+
60
+ &:focus-visible {
61
+ outline: none;
62
+ }
63
+
64
+ &[aria-disabled='true'] {
65
+ cursor: inherit;
66
+ }
67
+ `,A=(0,d.ZP)(a.hQ.Icon)`
68
+ & > svg {
69
+ width: ${6/16}rem;
70
+
71
+ & > path {
72
+ fill: ${({theme:r})=>r.colors.neutral600};
73
+ }
74
+ }
75
+
76
+ &[aria-disabled='true'] {
77
+ cursor: inherit;
78
+ }
79
+ `,U=(0,d.ZP)(a.hQ.Content)`
80
+ background: ${({theme:r})=>r.colors.neutral0};
81
+ box-shadow: ${({theme:r})=>r.shadows.filterShadow};
82
+ border: 1px solid ${({theme:r})=>r.colors.neutral150};
83
+ border-radius: ${({theme:r})=>r.borderRadius};
84
+ width: var(--radix-combobox-trigger-width);
85
+ /* This is from the design-system figma file. */
86
+ max-height: 15rem;
87
+ z-index: ${({theme:r})=>r.zIndices[1]};
88
+ `,s0=(0,d.ZP)(a.hQ.Viewport)`
89
+ padding: ${({theme:r})=>r.spaces[1]};
90
+ `,l0=l.forwardRef(({children:r,value:Z,disabled:L,textValue:b,...K},w)=>(0,n.jsx)(a.hQ.ComboboxItem,{asChild:!0,value:Z,disabled:L,textValue:b,children:(0,n.jsx)($,{ref:w,...K,children:(0,n.jsx)(a.hQ.ItemText,{asChild:!0,children:(0,n.jsx)(u.Z,{children:r})})})})),$=d.ZP.div`
91
+ width: 100%;
92
+ border: none;
93
+ text-align: left;
94
+ outline-offset: -3px;
95
+ padding: ${({theme:r})=>r.spaces[2]} ${({theme:r})=>r.spaces[4]};
96
+ background-color: ${({theme:r})=>r.colors.neutral0};
97
+ border-radius: ${({theme:r})=>r.borderRadius};
98
+ user-select: none;
99
+
100
+ &[data-selected] {
101
+ background-color: ${({theme:r})=>r.colors.primary100};
102
+
103
+ ${u.Z} {
104
+ color: ${({theme:r})=>r.colors.primary600};
105
+ font-weight: bold;
106
+ }
107
+ }
108
+
109
+ &:hover,
110
+ &[data-highlighted] {
111
+ outline: none;
112
+ background-color: ${({theme:r,$hasHover:Z=!0})=>Z?r.colors.primary100:r.colors.neutral0};
113
+ }
114
+
115
+ &[data-highlighted] {
116
+ ${u.Z} {
117
+ color: ${({theme:r})=>r.colors.primary600};
118
+ font-weight: bold;
119
+ }
120
+ }
121
+ `},90333:function(_,i,e){"use strict";e.d(i,{O:function(){return l}});var n=e(21428);const l=n.Wx},25148:function(_,i,e){"use strict";e.d(i,{Q:function(){return g}});var n=e(74512),l=e(32735),s=e(14911),t=e(8471),a=e(73342),d=e(69783),o=e(87933),h=e(49372);const c=(0,t.ZP)(d.G)`
122
+ &[aria-disabled='true'] {
123
+ ${a.sg}
124
+ &:active {
125
+ ${a.sg}
126
+ }
127
+ }
128
+ &:hover {
129
+ ${a.yP}
130
+ }
131
+ &:active {
132
+ ${a.tB}
133
+ }
134
+ ${a.PD}
135
+ `,g=l.forwardRef(({variant:x="default",startIcon:E,endIcon:m,disabled:u=!1,children:p,size:f="S",href:v,to:M,...C},j)=>{const P=v?"_blank":void 0,O=v?"noreferrer noopener":void 0,R=f==="S"?2:"10px",B=4;return(0,n.jsxs)(c,{ref:j,"aria-disabled":u,size:f,variant:x,target:P,rel:O,to:u?void 0:M,href:u?"#":v,background:"buttonPrimary600",borderColor:"buttonPrimary600",hasRadius:!0,gap:2,inline:!0,paddingBottom:R,paddingLeft:B,paddingRight:B,paddingTop:R,pointerEvents:u?"none":void 0,...C,as:M&&!u?s.OL:"a",children:[E&&(0,n.jsx)(o.k,{"aria-hidden":!0,children:E}),(0,n.jsx)(h.Z,{variant:f==="S"?"pi":void 0,fontWeight:"bold",textColor:"buttonNeutral0",children:p}),m&&(0,n.jsx)(o.k,{"aria-hidden":!0,children:m})]})})},27799:function(_,i,e){"use strict";e.d(i,{Q:function(){return t}});var n=e(74512),l=e(8471),s=e(6407);const t=({options:d,...o})=>(0,n.jsx)(s.NU,{...o,children:d.map(h=>"children"in h?(0,n.jsx)(s.Ab,{label:h.label,values:h.children.map(c=>c.value.toString()),children:h.children.map(c=>(0,n.jsx)(a,{value:c.value,children:c.label},c.value))},h.label):(0,n.jsx)(s.ML,{value:h.value,children:h.label},h.value))}),a=(0,l.ZP)(s.ML)`
136
+ padding-left: ${({theme:d})=>d.spaces[7]};
137
+ `},28832:function(_,i,e){"use strict";e.d(i,{z:function(){return m}});var n=e(74512),l=e(32735),s=e(16899),t=e(60216),a=e(8471),d=e(74971),o=e(72850),h=e(87933),c=e(49372);const g=(0,a.ZP)(o.x)`
138
+ svg {
139
+ height: ${4/16}rem;
140
+ path {
141
+ fill: ${({theme:u})=>u.colors.neutral700};
142
+ }
143
+ }
144
+ `,x=a.ZP.button`
145
+ border: none;
146
+ padding: 0;
147
+ background: transparent;
148
+ display: flex;
149
+ align-items: center;
150
+ `,E=a.ZP.div`
151
+ display: flex;
152
+ align-items: center;
153
+ width: ${12/16}rem;
154
+ transform: rotateX(${({rotated:u})=>u?"0deg":"180deg"});
155
+ `,m=({label:u,children:p,id:f})=>{const[v,M]=(0,l.useState)(!0),C=(0,d.M)(f);return(0,n.jsxs)(o.x,{children:[(0,n.jsx)(g,{paddingLeft:7,paddingTop:2,paddingBottom:2,paddingRight:4,children:(0,n.jsx)(h.k,{justifyContent:"space-between",children:(0,n.jsxs)(x,{onClick:()=>{M(j=>!j)},"aria-expanded":v,"aria-controls":C,children:[(0,n.jsx)(E,{rotated:v,children:(0,n.jsx)(s.Z,{"aria-hidden":!0})}),(0,n.jsx)(o.x,{paddingLeft:2,children:(0,n.jsx)(c.Z,{as:"span",fontWeight:"semiBold",textColor:"neutral800",children:u})})]})})}),v&&(0,n.jsx)("ul",{id:C,children:l.Children.map(p,(j,P)=>(0,n.jsx)("li",{children:j},P))})]})};m.defaultProps={id:void 0},m.propTypes={children:t.node.isRequired,id:t.string,label:t.string.isRequired}},35071:function(_,i,e){"use strict";e.d(i,{Z:function(){return s}});var n=e(74512);const l=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...t,children:[(0,n.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#4945FF",stroke:"#4945FF",rx:2.5}),(0,n.jsx)("path",{fill:"#fff",d:"M15.328 10.54h1.723c.012-.089.012-.165.012-.253 0-1.676-1.471-2.959-3.41-2.959-2.696 0-4.647 2.22-4.647 5.344 0 2.15 1.383 3.545 3.504 3.545 2.045 0 3.597-1.154 3.967-2.936h-1.752c-.276.826-1.102 1.371-2.063 1.371-1.137 0-1.846-.802-1.846-2.103 0-2.08 1.19-3.65 2.725-3.65 1.037 0 1.746.62 1.787 1.558v.082ZM21.053 16l1.488-6.943h2.531l.31-1.512H18.54l-.31 1.512h2.53L19.272 16h1.782Z"})]}),s=l},26253:function(_,i,e){"use strict";e.d(i,{Z:function(){return s}});var n=e(74512);const l=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...t,children:[(0,n.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M20.4 14.4a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM3.6 14.4a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM20.4 22.8a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM20.4 6a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2Z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#212134",d:"M6.24 11.28H18v1.44H6.24v-1.44Z"}),(0,n.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M3.6 22.8a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2ZM3.6 6a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2Z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#212134",d:"M18.328 13.863 6.49 19.765l-.652-1.307 11.838-5.902.652 1.307ZM18.358 10.078 6.398 4.115l-.646 1.294 11.961 5.963.645-1.294Z"}),(0,n.jsx)("path",{fill:"#212134",d:"M18.323 18.83 6.252 12.813l-.643 1.29 12.071 6.019.643-1.29ZM18.136 5.228 6.207 11.176l-.653-1.311 11.928-5.948.654 1.311Z"})]}),s=l},79634:function(_,i,e){"use strict";e.d(i,{Z:function(){return s}});var n=e(74512);const l=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 25",...t,children:[(0,n.jsx)("path",{fill:"#212134",d:"M17.76 11.28H6v1.44h11.76v-1.44Z"}),(0,n.jsx)("path",{fill:"#212134",d:"M18.129 10.699 9.782 4.523l-.86 1.162 8.347 6.177.86-1.163ZM18.101 13.354 9.755 19.53l-.864-1.167 8.347-6.176.863 1.167Z"}),(0,n.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M20.4 14.399a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2ZM3.6 14.399a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2ZM7.2 22.8a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2ZM7.2 6a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2Z",clipRule:"evenodd"})]}),s=l},32548:function(_,i,e){"use strict";e.d(i,{Z:function(){return s}});var n=e(74512);const l=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...t,children:[(0,n.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M3.6 14.132a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2Z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#212134",d:"M6.24 11.011h13.44v1.44H6.24v-1.44Z"}),(0,n.jsx)("path",{fill:"#212134",d:"m5.872 10.43 8.347-6.176.86 1.163-8.347 6.176-.86-1.162ZM5.9 13.087l8.346 6.177.864-1.168-8.347-6.176-.864 1.167ZM18.72 8.613l5.28 3.12-5.28 3.12v-6.24Z"}),(0,n.jsx)("path",{fill:"#212134",d:"M12.72 2.633 18.82 2 16.43 7.649 12.72 2.633ZM12.72 21.307l6.1.633-2.389-5.649-3.711 5.016Z"})]}),s=l},7733:function(_,i,e){"use strict";e.d(i,{Z:function(){return s}});var n=e(74512);const l=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 25",...t,children:[(0,n.jsx)("path",{fill:"#212134",d:"M6.24 11.28H18v1.44H6.24v-1.44Z"}),(0,n.jsx)("path",{fill:"#212134",d:"m5.871 10.699 8.347-6.176.86 1.162-8.347 6.177-.86-1.163ZM5.899 13.354l8.346 6.176.864-1.167-8.347-6.176-.863 1.167Z"}),(0,n.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M3.6 14.399a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM20.4 14.399a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM16.8 22.8a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM16.8 6a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2Z",clipRule:"evenodd"})]}),s=l},10168:function(_,i,e){"use strict";e.d(i,{Z:function(){return s}});var n=e(74512);const l=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...t,children:[(0,n.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M3.6 14a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM20.4 14a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2Z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#212134",d:"M6.24 10.881H18v1.44H6.24v-1.44Z"})]}),s=l},25449:function(_,i,e){"use strict";e.d(i,{Z:function(){return s}});var n=e(74512);const l=t=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...t,children:(0,n.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M7.128 12.321a3.601 3.601 0 1 1 0-1.44H18.72v-2.4L24 11.6l-5.28 3.12v-2.4H7.128ZM6 11.6a2.4 2.4 0 1 1-4.8 0 2.4 2.4 0 0 1 4.8 0Z",clipRule:"evenodd"})}),s=l},89135:function(_,i,e){"use strict";e.d(i,{Z:function(){return s}});var n=e(74512);const l=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...t,children:[(0,n.jsx)("path",{fill:"#FDF4DC",stroke:"#FAE7B9",d:"M.5 3A2.5 2.5 0 0 1 3 .5h26A2.5 2.5 0 0 1 31.5 3v18a2.5 2.5 0 0 1-2.5 2.5H3A2.5 2.5 0 0 1 .5 21V3Z"}),(0,n.jsx)("path",{fill:"#D9822F",d:"M20.158 11.995c0-.591-.463-1.073-1.045-1.11H13.53V9.245a2.05 2.05 0 0 1 2.046-2.049c1.13 0 2.048.784 2.049 1.913 0 .24.194.433.433.433h.33a.433.433 0 0 0 .433-.433C18.82 7.32 17.365 5.999 15.577 6a3.246 3.246 0 0 0-3.241 3.244v1.642h-.223c-.615 0-1.113.499-1.113 1.114v4.887c.001.615.5 1.113 1.115 1.113l6.93-.003c.616 0 1.114-.5 1.114-1.115l-.001-4.887Z"})]}),s=l},61642:function(_,i,e){"use strict";e.d(i,{Z:function(){return s}});var n=e(74512);const l=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...t,children:[(0,n.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#EAF5FF",stroke:"#B8E1FF",rx:2.5}),(0,n.jsx)("path",{fill:"#0C75AF",fillRule:"evenodd",d:"M19.286 9.286v-.857a.397.397 0 0 0-.138-.302A.465.465 0 0 0 18.82 8h-8.357a.465.465 0 0 0-.326.127.397.397 0 0 0-.138.302v.857c0 .116.046.216.138.301.092.085.2.127.326.127h8.357a.465.465 0 0 0 .327-.127.397.397 0 0 0 .138-.301Zm2.785 2.713v.857a.397.397 0 0 1-.137.301.465.465 0 0 1-.327.128H10.464a.465.465 0 0 1-.326-.128.397.397 0 0 1-.138-.301v-.857c0-.116.046-.217.138-.302a.465.465 0 0 1 .326-.127h11.143c.126 0 .235.043.327.127a.397.397 0 0 1 .137.302Zm-1.857 3.574v.857a.397.397 0 0 1-.137.302.465.465 0 0 1-.327.127h-9.286a.465.465 0 0 1-.326-.127.397.397 0 0 1-.138-.302v-.857c0-.116.046-.216.138-.301a.465.465 0 0 1 .326-.127h9.286c.126 0 .235.042.326.127a.397.397 0 0 1 .138.301Z",clipRule:"evenodd"})]}),s=l},58656:function(_,i,e){"use strict";e.d(i,{Z:function(){return s}});var n=e(74512);const l=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...t,children:[(0,n.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#0C75AF",stroke:"#0C75AF",rx:2.5}),(0,n.jsx)("path",{fill:"#fff",d:"M8.523 13.586c.106 1.64 1.418 2.63 3.34 2.63 2.098 0 3.516-1.113 3.516-2.788 0-1.143-.65-1.846-2.086-2.297l-.867-.27c-.797-.252-1.137-.597-1.137-1.066 0-.598.633-1.031 1.459-1.031.873 0 1.512.474 1.617 1.183h1.67c-.053-1.54-1.36-2.619-3.217-2.619-1.91 0-3.328 1.131-3.328 2.678 0 1.09.715 1.922 1.963 2.309l.879.275c.914.287 1.266.592 1.266 1.084 0 .662-.657 1.107-1.606 1.107-.914 0-1.635-.469-1.758-1.195h-1.71ZM20.107 16l1.489-6.943h2.531l.31-1.512h-6.843l-.31 1.512h2.53L18.326 16h1.781Z"})]}),s=l}}]);
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[801],{29761:function(Q,S,n){n.r(S),n.d(S,{default:function(){return Qt}});var e=n(32735),s=n(24989),L=n(20108),v=n(33795),O=n.n(v),P={i8:"4.10.4"},C=n(67927),E=n(53038),y=n(15062),G=n(74506),z=n(51968),K=n(88311),ae=n.n(K),Le=n(58107),T=n(8471),Oe=n(60216),r=n.n(Oe),Z=n(67879),m=n(87933),oe=n(71933),V=n(67563),xe=n(50563),M=n(72850),Y=n(41415),se=n(35331);const be=(0,T.ZP)(m.k)`
1
+ "use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[801],{29761:function(Q,S,n){n.r(S),n.d(S,{default:function(){return Qt}});var e=n(32735),s=n(24989),L=n(20108),v=n(33795),O=n.n(v),P={i8:"4.10.5"},C=n(67927),E=n(53038),y=n(15062),G=n(74506),z=n(51968),K=n(88311),ae=n.n(K),Le=n(58107),T=n(8471),Oe=n(60216),r=n.n(Oe),Z=n(67879),m=n(87933),oe=n(71933),V=n(67563),xe=n(50563),M=n(72850),Y=n(41415),se=n(35331);const be=(0,T.ZP)(m.k)`
2
2
  position: fixed;
3
3
  z-index: 4;
4
4
  inset: 0;
@@ -0,0 +1,129 @@
1
+ "use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[2812],{83196:function(Z,x,t){var e=t(32735),i=t(60216),h=t.n(i),v=t(67879),c=t(72850),E=t(41415),L=t(5644),O=t(24989);const y=({displayedFilters:f})=>{const[g,n]=(0,e.useState)(!1),{formatMessage:j}=(0,v.Z)(),R=(0,e.useRef)(),$=()=>{n(T=>!T)};return e.createElement(e.Fragment,null,e.createElement(c.x,{paddingTop:1,paddingBottom:1},e.createElement(E.z,{variant:"tertiary",ref:R,startIcon:e.createElement(L.Z,null),onClick:$,size:"S"},j({id:"app.utils.filters",defaultMessage:"Filters"})),g&&e.createElement(O.J5,{displayedFilters:f,isVisible:g,onToggle:$,source:R})),e.createElement(O.W$,{filtersSchema:f}))};y.propTypes={displayedFilters:h().arrayOf(h().shape({name:h().string.isRequired,metadatas:h().shape({label:h().string}),fieldSchema:h().shape({type:h().string})})).isRequired},x.Z=y},71765:function(Z,x,t){t.r(x),t.d(x,{default:function(){return ye}});var e=t(32735),i=t(24989),h=t(83983),v=t(67879),c=t(96709),E=t(17e3),L=t(72850),O=t(27649),y=t(82055),f=t(99223),g=t(60216),n=t.n(g),j=t(35658),R=t(94547),$=t(19786),T=t(49372),S=t(87933),oe=t(50563),re=t(54894),G=t(96315),w=()=>{const{formatDate:s}=(0,v.Z)();return p=>{const o=(0,G.Z)(p),m=s(o,{dateStyle:"long"}),d=s(o,{timeStyle:"medium",hourCycle:"h24"});return`${m}, ${d}`}};const k={"entry.create":"Create entry{model, select, undefined {} other { ({model})}}","entry.update":"Update entry{model, select, undefined {} other { ({model})}}","entry.delete":"Delete entry{model, select, undefined {} other { ({model})}}","entry.publish":"Publish entry{model, select, undefined {} other { ({model})}}","entry.unpublish":"Unpublish entry{model, select, undefined {} other { ({model})}}","media.create":"Create media","media.update":"Update media","media.delete":"Delete media","media-folder.create":"Create media folder","media-folder.update":"Update media folder","media-folder.delete":"Delete media folder","user.create":"Create user","user.update":"Update user","user.delete":"Delete user","admin.auth.success":"Admin login","admin.logout":"Admin logout","content-type.create":"Create content type","content-type.update":"Update content type","content-type.delete":"Delete content type","component.create":"Create component","component.update":"Update component","component.delete":"Delete component","role.create":"Create role","role.update":"Update role","role.delete":"Delete role","permission.create":"Create permission","permission.update":"Update permission","permission.delete":"Delete permission"},V=s=>k[s]||s,Q=({headers:s,rows:u,onOpenModal:p})=>{const{formatMessage:o}=(0,v.Z)(),m=w(),d=({type:l,value:r,model:M})=>l==="date"?m(r):l==="action"?o({id:`Settings.permissions.auditLogs.${r}`,defaultMessage:V(r)},{model:M}):r||"-";return e.createElement(j.p,null,u.map(l=>e.createElement(R.Tr,{key:l.id,...(0,i.X7)({fn:()=>p(l.id)})},s.map(({key:r,name:M,cellFormatter:_})=>e.createElement($.Td,{key:r},e.createElement(T.Z,{textColor:"neutral800"},d({type:r,value:_?_(l[M]):l[M],model:l.payload?.model})))),e.createElement($.Td,{...i.UW},e.createElement(S.k,{justifyContent:"end"},e.createElement(oe.h,{onClick:()=>p(l.id),"aria-label":o({id:"app.component.table.view",defaultMessage:"{target} details"},{target:`${l.action} action`}),noBorder:!0,icon:e.createElement(re.Z,null)}))))))};Q.defaultProps={rows:[]},Q.propTypes={headers:n().array.isRequired,rows:n().array,onOpenModal:n().func.isRequired};var ie=Q,le=[{name:"action",key:"action",metadatas:{label:{id:"Settings.permissions.auditLogs.action",defaultMessage:"Action"},sortable:!0}},{name:"date",key:"date",metadatas:{label:{id:"Settings.permissions.auditLogs.date",defaultMessage:"Date"},sortable:!0}},{key:"user",name:"user",metadatas:{label:{id:"Settings.permissions.auditLogs.user",defaultMessage:"User"},sortable:!1},cellFormatter:s=>s?s.displayName:""}];const B=({pagination:s})=>e.createElement(L.x,{paddingTop:4},e.createElement(S.k,{alignItems:"flex-end",justifyContent:"space-between"},e.createElement(i.v4,null),e.createElement(i.tU,{pagination:s})));B.defaultProps={pagination:{pageCount:0,pageSize:50,total:0}},B.propTypes={pagination:n().shape({page:n().number,pageCount:n().number,pageSize:n().number,total:n().number})};var a=B,P=t(20108),U=t(85025),N=t(55225),W=t(11299),H=t(31600),de=t(23866),ue=t(15335),ce=t(88807);const K=({actionLabel:s,actionName:u})=>e.createElement(S.k,{direction:"column",alignItems:"baseline",gap:1},e.createElement(T.Z,{textColor:"neutral600",variant:"sigma"},s),e.createElement(T.Z,{textColor:"neutral600"},u));K.propTypes={actionLabel:n().string.isRequired,actionName:n().string.isRequired};var I=K;const z=({status:s,data:u,formattedDate:p})=>{const{formatMessage:o}=(0,v.Z)();if(s==="loading")return e.createElement(S.k,{padding:7,justifyContent:"center",alignItems:"center"},e.createElement(de.a,null,"Loading content..."));const{action:m,user:d,payload:l}=u;return e.createElement(e.Fragment,null,e.createElement(L.x,{marginBottom:3},e.createElement(T.Z,{variant:"delta",id:"title"},o({id:"Settings.permissions.auditLogs.details",defaultMessage:"Log Details"}))),e.createElement(ue.r,{gap:4,gridCols:2,paddingTop:4,paddingBottom:4,paddingLeft:6,paddingRight:6,marginBottom:4,background:"neutral100",hasRadius:!0},e.createElement(I,{actionLabel:o({id:"Settings.permissions.auditLogs.action",defaultMessage:"Action"}),actionName:o({id:`Settings.permissions.auditLogs.${m}`,defaultMessage:V(m)},{model:l?.model})}),e.createElement(I,{actionLabel:o({id:"Settings.permissions.auditLogs.date",defaultMessage:"Date"}),actionName:p}),e.createElement(I,{actionLabel:o({id:"Settings.permissions.auditLogs.user",defaultMessage:"User"}),actionName:d?.displayName||"-"}),e.createElement(I,{actionLabel:o({id:"Settings.permissions.auditLogs.userId",defaultMessage:"User ID"}),actionName:d?.id.toString()||"-"})),e.createElement(ce.V,{value:JSON.stringify(l,null,2),disabled:!0,label:o({id:"Settings.permissions.auditLogs.payload",defaultMessage:"Payload"})}))};z.defaultProps={data:{}},z.propTypes={status:n().oneOf(["idle","loading","error","success"]).isRequired,data:n().shape({action:n().string,date:n().string,payload:n().object,user:n().object}),formattedDate:n().string.isRequired};var me=z;const q=({handleClose:s,logId:u})=>{const{get:p}=(0,i.kY)(),o=(0,i.lm)(),m=async _=>{const{data:C}=await p(`/admin/audit-logs/${_}`);if(!C)throw new Error("Audit log not found");return C},{data:d,status:l}=(0,P.useQuery)(["audit-log",u],()=>m(u),{onError(){o({type:"warning",message:{id:"notification.error",defaultMessage:"An error occured"}}),s()}}),r=w(),M=d?r(d.date):"";return e.createElement(U.P,{onClose:s,labelledBy:"title"},e.createElement(N.x,null,e.createElement(W.O,{label:M,id:"title"},e.createElement(W.$,null,M))),e.createElement(H.f,null,e.createElement(me,{status:l,data:d,formattedDate:M})))};q.propTypes={handleClose:n().func.isRequired,logId:n().string.isRequired};var ge=q,pe=t(83196),he=t(21428),J=t(90333);const Y=({value:s,options:u,onChange:p})=>{const{formatMessage:o}=(0,v.Z)(),m=o({id:"Settings.permissions.auditLogs.filter.aria-label",defaultMessage:"Search and select an option to filter"});return e.createElement(he.hQ,{"aria-label":m,value:s,onChange:p},u.map(({label:d,customValue:l})=>e.createElement(J.O,{key:l,value:l},d)))};Y.defaultProps={value:null},Y.propTypes={value:n().string,options:n().arrayOf(n().shape({label:n().string.isRequired,customValue:n().string.isRequired}).isRequired).isRequired,onChange:n().func.isRequired};var ee=Y;const X=[{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$eq",defaultMessage:"is"},value:"$eq"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$ne",defaultMessage:"is not"},value:"$ne"}];var ae=({formatMessage:s,users:u,canReadUsers:p})=>{const o=Object.keys(k).map(d=>({label:s({id:`Settings.permissions.auditLogs.${d}`,defaultMessage:V(d)},{model:void 0}),customValue:d})),m=[{name:"action",metadatas:{customOperators:X,label:s({id:"Settings.permissions.auditLogs.action",defaultMessage:"Action"}),options:o,customInput:ee},fieldSchema:{type:"enumeration"}},{name:"date",metadatas:{label:s({id:"Settings.permissions.auditLogs.date",defaultMessage:"Date"})},fieldSchema:{type:"datetime"}}];if(p&&u){const d=r=>r.username?r.username:r.firstname&&r.lastname?s({id:"Settings.permissions.auditLogs.user.fullname",defaultMessage:"{firstname} {lastname}"},{firstname:r.firstname,lastname:r.lastname}):r.email,l=u.results.map(r=>({label:d(r),customValue:r.id.toString()}));return[...m,{name:"user",metadatas:{customOperators:X,label:s({id:"Settings.permissions.auditLogs.user",defaultMessage:"User"}),options:l,customInput:ee},fieldSchema:{type:"relation",mainField:{name:"id"}}}]}return m},Ee=t(53038),Me=({canReadAuditLogs:s,canReadUsers:u})=>{const{get:p}=(0,i.kY)(),{search:o}=(0,Ee.TH)(),m=(0,i.lm)(),d=async({queryKey:b})=>{const Le=b[1],{data:De}=await p(`/admin/audit-logs${Le}`);return De},l=async()=>{const{data:b}=await p("/admin/users");return b},r={keepPreviousData:!0,retry:!1,staleTime:1e3*20,onError:b=>m({type:"warning",message:b.message})},{data:M,isLoading:_,isError:C}=(0,P.useQuery)(["auditLogs",o],d,{...r,enabled:s}),{data:F,isError:A}=(0,P.useQuery)(["auditLogsUsers"],l,{...r,enabled:u,staleTime:2*(1e3*60)}),Pe=C||A;return{auditLogs:M,users:F?.data,isLoading:_,hasError:Pe}};const se={...h.Z.settings.auditLogs,readUsers:h.Z.settings.users.read};var ne=()=>{const{formatMessage:s}=(0,v.Z)(),{allowedActions:{canRead:u,canReadUsers:p}}=(0,i.ss)(se),[{query:o},m]=(0,i.Kx)(),{auditLogs:d,users:l,isLoading:r,hasError:M}=Me({canReadAuditLogs:u,canReadUsers:p});(0,i.go)();const _=ae({formatMessage:s,users:l,canReadUsers:p}),C=s({id:"global.auditLogs",defaultMessage:"Audit Logs"}),F=le.map(A=>({...A,metadatas:{...A.metadatas,label:s(A.metadatas.label)}}));return M?e.createElement(c.A,null,e.createElement(E.D,null,e.createElement(L.x,{paddingTop:8},e.createElement(i.Hn,null)))):e.createElement(O.o,{"aria-busy":r},e.createElement(i.SL,{name:C}),e.createElement(y.T,{title:C,subtitle:s({id:"Settings.permissions.auditLogs.listview.header.subtitle",defaultMessage:"Logs of all the activities that happened in your environment"})}),e.createElement(f.Z,{startActions:e.createElement(pe.Z,{displayedFilters:_})}),e.createElement(E.D,{canRead:u},e.createElement(i.tM,{contentType:"Audit logs",headers:F,rows:d?.results||[],withBulkActions:!0,isLoading:r},e.createElement(ie,{headers:F,rows:d?.results||[],onOpenModal:A=>m({id:A})})),e.createElement(a,{pagination:d?.pagination})),o?.id&&e.createElement(ge,{handleClose:()=>m({id:null},"remove"),logId:o.id}))},ye=()=>e.createElement(i.O4,{permissions:h.Z.settings.auditLogs.main},e.createElement(ne,null))},11299:function(Z,x,t){t.d(x,{$:function(){return y},O:function(){return f}});var e=t(74512),i=t(77277),h=t(8471),v=t(3685),c=t(87933),E=t(72850),L=t(49372);const O=(0,h.ZP)(c.k)`
2
+ svg {
3
+ height: ${10/16}rem;
4
+ width: ${10/16}rem;
5
+ path {
6
+ fill: ${({theme:g})=>g.colors.neutral500};
7
+ }
8
+ }
9
+ :last-of-type ${E.x} {
10
+ display: none;
11
+ }
12
+ :last-of-type ${L.Z} {
13
+ color: ${({theme:g})=>g.colors.neutral800};
14
+ font-weight: ${({theme:g})=>g.fontWeights.bold};
15
+ }
16
+ `,y=({children:g})=>(0,e.jsxs)(O,{inline:!0,as:"li",children:[(0,e.jsx)(L.Z,{variant:"pi",textColor:"neutral600",children:g}),(0,e.jsx)(E.x,{"aria-hidden":!0,paddingLeft:3,paddingRight:3,children:(0,e.jsx)(i.Z,{})})]});y.displayName="Crumb";const f=({children:g,label:n,...j})=>(0,e.jsxs)(c.k,{...j,children:[(0,e.jsx)(v.T,{children:n}),(0,e.jsx)("ol",{"aria-hidden":!0,children:g})]});f.displayName="Breadcrumbs"},21428:function(Z,x,t){t.d(x,{Wx:function(){return le},XU:function(){return xe},hQ:function(){return G}});var e=t(74512),i=t(32735),h=t(35331),v=t(16899),c=t(79405),E=t(8471),L=t(14268),O=t(95976),y=t(74971),f=t(36971),g=t(30350),n=t(23866),j=t(72850),R=t(49372),$=t(87107),T=t(87933),S=t(28847),oe=t(67014),re=t(47851);const G=({children:a,clearLabel:P="clear",creatable:U=!1,createMessage:N=u=>`Create "${u}"`,defaultFilterValue:W,defaultTextValue:H,defaultOpen:de=!1,open:ue,onOpenChange:ce,disabled:K=!1,error:I,filterValue:z,hasMoreItems:me=!1,hint:q,id:ge,label:pe,labelAction:he,loading:J=!1,loadingMessage:Y="Loading content...",noOptionsMessage:ee=()=>"No results found",onChange:X,onClear:te,onCreateOption:ae,onFilterValueChange:Ee,onInputChange:fe,onTextValueChange:Me,onLoadMore:se,placeholder:Ce="Select or enter a value",required:ne=!1,startIcon:ve,textValue:ye,value:s})=>{const[u,p]=(0,O.T)({prop:ue,defaultProp:de,onChange:ce}),[o,m]=(0,O.T)({prop:ye,defaultProp:H,onChange:Me}),[d,l]=(0,O.T)({prop:z,defaultProp:W,onChange:Ee}),r=i.useRef(null),M=i.useRef(null),_=i.useRef(null),C=(0,y.M)(ge),F=D=>{te&&!K&&(m(""),l(""),te(D),M.current.focus())},A=D=>{p(D)},Pe=D=>{m(D)},b=D=>{l(D)},Le=D=>{fe&&fe(D)},De=D=>{X&&X(D)},_e=(0,y.M)(),Te=`intersection-${(0,L.B)(_e)}`,je=D=>{se&&me&&!J&&se(D)},Re=()=>{ae&&o&&ae(o)};(0,f.s)(r,je,{selectorToWatch:`#${Te}`,skipWhen:!u});const Ae=`${C}-hint`,Ie=`${C}-error`;return(0,e.jsx)($.g,{hint:q,error:I,id:C,required:ne,children:(0,e.jsxs)(T.k,{direction:"column",alignItems:"stretch",gap:1,children:[(0,e.jsx)(S.Q,{action:he,children:pe}),(0,e.jsxs)(c.hQ.Root,{autocomplete:U?"list":"both",open:u,onOpenChange:A,onTextValueChange:Pe,textValue:o,allowCustomValue:!0,disabled:K,required:ne,value:s===null?void 0:s,onValueChange:De,filterValue:d,onFilterValueChange:b,children:[(0,e.jsxs)(k,{$hasError:!!I,children:[(0,e.jsxs)(T.k,{flex:"1",as:"span",gap:3,children:[ve?(0,e.jsx)(j.x,{as:"span","aria-hidden":!0,children:ve}):null,(0,e.jsx)(V,{placeholder:Ce,id:C,"aria-invalid":!!I,"aria-labelledby":`${Ae} ${Ie}`,onChange:Le,ref:M})]}),(0,e.jsxs)(T.k,{as:"span",gap:3,children:[o&&te?(0,e.jsx)(w,{as:"button",hasRadius:!0,background:"transparent",type:"button",onClick:F,"aria-disabled":K,"aria-label":P,title:P,ref:_,children:(0,e.jsx)(h.Z,{})}):null,(0,e.jsx)(Q,{children:(0,e.jsx)(v.Z,{})})]})]}),(0,e.jsx)(c.hQ.Portal,{children:(0,e.jsx)(ie,{sideOffset:4,children:(0,e.jsxs)(Oe,{ref:r,children:[a,U?(0,e.jsx)(c.hQ.CreateItem,{onPointerUp:Re,onClick:Re,asChild:!0,children:(0,e.jsx)(B,{children:(0,e.jsx)(R.Z,{children:N(o??"")})})}):null,!U&&!J?(0,e.jsx)(c.hQ.NoValueFound,{asChild:!0,children:(0,e.jsx)(B,{$hasHover:!1,children:(0,e.jsx)(R.Z,{children:ee(o??"")})})}):null,J?(0,e.jsx)(T.k,{justifyContent:"center",alignItems:"center",paddingTop:2,paddingBottom:2,children:(0,e.jsx)(n.a,{small:!0,children:Y})}):null,(0,e.jsx)(j.x,{id:Te,width:"100%",height:"1px"})]})})})]}),(0,e.jsx)(oe.J,{}),(0,e.jsx)(re.c,{})]})})},xe=a=>(0,e.jsx)(G,{...a,creatable:!0}),w=(0,E.ZP)(j.x)`
17
+ border: none;
18
+
19
+ svg {
20
+ height: ${11/16}rem;
21
+ width: ${11/16}rem;
22
+ }
23
+
24
+ svg path {
25
+ fill: ${({theme:a})=>a.colors.neutral600};
26
+ }
27
+ `,k=(0,E.ZP)(c.hQ.Trigger)`
28
+ position: relative;
29
+ border: 1px solid ${({theme:a,$hasError:P})=>P?a.colors.danger600:a.colors.neutral200};
30
+ padding-right: ${({theme:a})=>a.spaces[3]};
31
+ padding-left: ${({theme:a})=>a.spaces[3]};
32
+ border-radius: ${({theme:a})=>a.borderRadius};
33
+ background: ${({theme:a})=>a.colors.neutral0};
34
+ overflow: hidden;
35
+ display: flex;
36
+ align-items: center;
37
+ justify-content: space-between;
38
+ gap: ${({theme:a})=>a.spaces[4]};
39
+
40
+ &[data-disabled] {
41
+ color: ${({theme:a})=>a.colors.neutral600};
42
+ background: ${({theme:a})=>a.colors.neutral150};
43
+ cursor: not-allowed;
44
+ }
45
+
46
+ /* Required to ensure the below inputFocusStyles are adhered too */
47
+ &:focus-visible {
48
+ outline: none;
49
+ }
50
+
51
+ ${({theme:a,$hasError:P})=>(0,g.k3)()({theme:a,hasError:P})};
52
+ `,V=(0,E.ZP)(c.hQ.TextInput)`
53
+ width: 100%;
54
+ font-size: ${14/16}rem;
55
+ color: ${({theme:a})=>a.colors.neutral800};
56
+ min-height: ${40/16}rem;
57
+ border: none;
58
+ background-color: transparent;
59
+
60
+ &:focus-visible {
61
+ outline: none;
62
+ }
63
+
64
+ &[aria-disabled='true'] {
65
+ cursor: inherit;
66
+ }
67
+ `,Q=(0,E.ZP)(c.hQ.Icon)`
68
+ & > svg {
69
+ width: ${6/16}rem;
70
+
71
+ & > path {
72
+ fill: ${({theme:a})=>a.colors.neutral600};
73
+ }
74
+ }
75
+
76
+ &[aria-disabled='true'] {
77
+ cursor: inherit;
78
+ }
79
+ `,ie=(0,E.ZP)(c.hQ.Content)`
80
+ background: ${({theme:a})=>a.colors.neutral0};
81
+ box-shadow: ${({theme:a})=>a.shadows.filterShadow};
82
+ border: 1px solid ${({theme:a})=>a.colors.neutral150};
83
+ border-radius: ${({theme:a})=>a.borderRadius};
84
+ width: var(--radix-combobox-trigger-width);
85
+ /* This is from the design-system figma file. */
86
+ max-height: 15rem;
87
+ z-index: ${({theme:a})=>a.zIndices[1]};
88
+ `,Oe=(0,E.ZP)(c.hQ.Viewport)`
89
+ padding: ${({theme:a})=>a.spaces[1]};
90
+ `,le=i.forwardRef(({children:a,value:P,disabled:U,textValue:N,...W},H)=>(0,e.jsx)(c.hQ.ComboboxItem,{asChild:!0,value:P,disabled:U,textValue:N,children:(0,e.jsx)(B,{ref:H,...W,children:(0,e.jsx)(c.hQ.ItemText,{asChild:!0,children:(0,e.jsx)(R.Z,{children:a})})})})),B=E.ZP.div`
91
+ width: 100%;
92
+ border: none;
93
+ text-align: left;
94
+ outline-offset: -3px;
95
+ padding: ${({theme:a})=>a.spaces[2]} ${({theme:a})=>a.spaces[4]};
96
+ background-color: ${({theme:a})=>a.colors.neutral0};
97
+ border-radius: ${({theme:a})=>a.borderRadius};
98
+ user-select: none;
99
+
100
+ &[data-selected] {
101
+ background-color: ${({theme:a})=>a.colors.primary100};
102
+
103
+ ${R.Z} {
104
+ color: ${({theme:a})=>a.colors.primary600};
105
+ font-weight: bold;
106
+ }
107
+ }
108
+
109
+ &:hover,
110
+ &[data-highlighted] {
111
+ outline: none;
112
+ background-color: ${({theme:a,$hasHover:P=!0})=>P?a.colors.primary100:a.colors.neutral0};
113
+ }
114
+
115
+ &[data-highlighted] {
116
+ ${R.Z} {
117
+ color: ${({theme:a})=>a.colors.primary600};
118
+ font-weight: bold;
119
+ }
120
+ }
121
+ `},90333:function(Z,x,t){t.d(x,{O:function(){return i}});var e=t(21428);const i=e.Wx},99223:function(Z,x,t){t.d(x,{Z:function(){return y}});var e=t(74512),i=t(32735),h=t(60216),v=t(8471),c=t(87933),E=t(72850);const L=(0,v.ZP)(c.k)`
122
+ & > * + * {
123
+ margin-left: ${({theme:f})=>f.spaces[2]};
124
+ }
125
+
126
+ margin-left: ${({pullRight:f})=>f?"auto":void 0};
127
+ `,O=(0,v.ZP)(L)`
128
+ flex-shrink: 0;
129
+ `,y=({startActions:f,endActions:g})=>f||g?(0,e.jsx)(E.x,{paddingLeft:10,paddingRight:10,children:(0,e.jsx)(E.x,{paddingBottom:4,children:(0,e.jsxs)(c.k,{justifyContent:"space-between",alignItems:"flex-start",children:[f&&(0,e.jsx)(L,{wrap:"wrap",children:f}),g&&(0,e.jsx)(O,{pullRight:!0,children:g})]})})}):null;y.defaultProps={endActions:void 0,startActions:void 0},y.propTypes={endActions:h.node,startActions:h.node}}}]);
@@ -1120,4 +1120,4 @@ ${t}
1120
1120
  width: 100%;
1121
1121
  text-align: unset;
1122
1122
  padding: 0;
1123
- `;function Ns({displayedValue:t}){return e.createElement(F.k,{background:"neutral0",borderColor:"neutral200",justifyContent:"space-between",gap:3,padding:3,width:(0,h.Q1)(300)},e.createElement(fm,{type:"button"},e.createElement(F.k,{gap:6},e.createElement(gm,{alignItems:"center",justifyContent:"center",background:"neutral200",height:(0,h.Q1)(32),width:(0,h.Q1)(32)},e.createElement(pm.Z,null)),e.createElement(F.k,{maxWidth:(0,h.Q1)(150)},e.createElement(Q.Z,{textColor:"neutral700",ellipsis:!0},t)))),e.createElement(F.k,{gap:2},e.createElement(ye.h,{noBorder:!0},e.createElement(He.Z,null)),e.createElement(ye.h,{noBorder:!0},e.createElement(Je.Z,null))))}Ns.propTypes={displayedValue:n().string.isRequired};const js=({status:t,displayedValue:r,width:o})=>{const{formatMessage:s}=(0,H.Z)(),a={[at.DRAFT]:s({id:(0,y.OB)("relation.publicationState.draft"),defaultMessage:"Draft"}),[at.PUBLISHED]:s({id:(0,y.OB)("relation.publicationState.published"),defaultMessage:"Published"})},l=t===at.DRAFT?"secondary":"success";return e.createElement(S.x,{style:{width:o}},e.createElement(F.k,{paddingTop:2,paddingBottom:2,paddingLeft:2,paddingRight:4,hasRadius:!0,borderSize:1,background:"neutral0",borderColor:"neutral200",justifyContent:"space-between"},e.createElement(po,{gap:1},e.createElement(ye.h,{noBorder:!0},e.createElement(Je.Z,null)),e.createElement(go,{maxWidth:"100%",justifyContent:"space-between"},e.createElement(S.x,{minWidth:0,paddingTop:1,paddingBottom:1,paddingRight:4},e.createElement(ho,null,e.createElement(Q.Z,{textColor:"primary600",ellipsis:!0},r))),t&&e.createElement(Pn.q,{variant:l,showBullet:!1,size:"S"},e.createElement(Q.Z,{fontWeight:"bold",textColor:`${l}700`},a[t])))),e.createElement(S.x,{paddingLeft:4},e.createElement(yo,{type:"button"},e.createElement(uo.J,{width:"12px",as:Kt.Z})))))};js.propTypes={status:n().string.isRequired,displayedValue:n().string.isRequired,width:n().number.isRequired};const hm=Ie.Z.contentManager;function ym({type:t,item:r}){if([qt.Z.EDIT_FIELD,qt.Z.FIELD].includes(t))return e.createElement(Bt,{labelField:r.labelField});const[o]=t.split("_");switch(o){case qt.Z.COMPONENT:case qt.Z.DYNAMIC_ZONE:return e.createElement(Ns,{displayedValue:r.displayedValue});case qt.Z.RELATION:return e.createElement(js,{displayedValue:r.displayedValue,status:r.status,width:r.width});default:return null}}const Ws=()=>{const t=(0,te.$B)("/content-manager/:kind/:uid"),{status:r,collectionTypeLinks:o,singleTypeLinks:s,models:a,refetchData:l}=mm(),i=Oe()([...o,...s],g=>g.title.toLowerCase()),{pathname:c}=(0,te.TH)(),{formatMessage:p}=(0,H.Z)(),{startSection:u}=(0,h.c1)(),m=(0,e.useRef)(u);if((0,e.useEffect)(()=>{m.current&&m.current("contentManager")},[]),r==="loading")return e.createElement(Ce.o,{"aria-busy":"true"},e.createElement(fe.T,{title:p({id:(0,Ee.Z)("header.name"),defaultMessage:"Content"})}),e.createElement(h.dO,null));const f=a.filter(({isDisplayed:g})=>g);return i.length===0&&f.length>0&&c!=="/content-manager/403"?e.createElement(te.l_,{to:"/content-manager/403"}):f.length===0&&c!=="/content-manager/no-content-types"?e.createElement(te.l_,{to:"/content-manager/no-content-types"}):!t&&i.length>0?e.createElement(te.l_,{to:`${i[0].to}${i[0].search?`?${i[0].search}`:""}`}):e.createElement(we.A,{sideNav:e.createElement(am,null)},e.createElement(Fe.r,{renderItem:ym}),e.createElement(Le.Provider,{value:{refetchData:l}},e.createElement(te.rs,null,e.createElement(te.AW,{path:"/content-manager/components/:uid/configurations/edit"},e.createElement(h.O4,{permissions:hm.componentsConfigurations},e.createElement(Gu,null))),e.createElement(te.AW,{path:"/content-manager/collectionType/:slug",component:Uu}),e.createElement(te.AW,{path:"/content-manager/singleType/:slug",component:em}),e.createElement(te.AW,{path:"/content-manager/403"},e.createElement(Ju,null)),e.createElement(te.AW,{path:"/content-manager/no-content-types"},e.createElement(Xu,null)),e.createElement(te.AW,{path:"",component:h.Hn}))))};function bm(){const{formatMessage:t}=(0,H.Z)();return e.createElement(e.Fragment,null,e.createElement(ve.q,{title:t({id:(0,Ee.Z)("plugin.name"),defaultMessage:"Content Manager"})}),e.createElement(Ws,null))}},92914:function(dt,De,d){"use strict";d.d(De,{Z:function(){return y}});var e=d(32735),ve=d(60216),te=d.n(ve),h=d(67879),Ce=d(24989),fe=d(87933),we=d(49372),H=d(72850),rt=d(9026),Oe=d(95952);const Ie=60*1e3,Ee=Ie*60,Fe=Ee*24,ke=Fe*30,Le=Fe*365;var he=_=>_<Ie?{unit:"second",value:-Math.round(_/1e3)}:_<Ee?{unit:"minute",value:-Math.round(_/Ie)}:_<Fe?{unit:"hour",value:-Math.round(_/Ee)}:_<ke?{unit:"day",value:-Math.round(_/Fe)}:_<Le?{unit:"month",value:-Math.round(_/ke)}:{unit:"year",value:-Math.round(_/Le)},n=d(8997);const ut=()=>{const{formatMessage:_}=(0,h.Z)();return e.createElement(fe.k,{direction:"column",alignItems:"stretch",gap:2},e.createElement(we.Z,{variant:"sigma",textColor:"neutral600",id:"additional-information"},_({id:(0,Oe.OB)("containers.Edit.information"),defaultMessage:"Information"})),e.createElement(H.x,null,e.createElement(rt.i,null)))},Se=({label:_,value:$e})=>e.createElement(fe.k,{justifyContent:"space-between"},e.createElement(we.Z,{as:"dt",fontWeight:"bold",textColor:"neutral800",variant:"pi"},_),e.createElement(we.Z,{as:"dd",variant:"pi",textColor:"neutral600"},$e));Se.propTypes={label:te().string.isRequired,value:te().string.isRequired};const Vt=()=>{const{formatMessage:_,formatRelativeTime:$e}=(0,h.Z)(),{initialData:Ye,isCreatingEntry:Mt}=(0,Ce.Wq)(),Tt=(0,e.useRef)(Date.now()),mt=(Ze,Te)=>{const{firstname:ue,lastname:F,username:S}=Ye[Te]??{},je=ue??"",Ue=F??"",Xe=S??(0,n.Pp)(je,Ue),It=(Ye[Ze]?new Date(Ye[Ze]).getTime():Date.now())-Tt.current,{unit:kt,value:Ut}=he(-It);return{at:$e(Ut,kt,{numeric:"auto"}),by:Mt?"-":Xe}},ot=mt("updatedAt","updatedBy"),xe=mt("createdAt","createdBy");return e.createElement(fe.k,{direction:"column",alignItems:"stretch",gap:4},e.createElement(fe.k,{direction:"column",alignItems:"stretch",gap:2,as:"dl"},e.createElement(Se,{label:_({id:(0,Oe.OB)("containers.Edit.information.created"),defaultMessage:"Created"}),value:xe.at}),e.createElement(Se,{label:_({id:(0,Oe.OB)("containers.Edit.information.by"),defaultMessage:"By"}),value:xe.by})),e.createElement(fe.k,{direction:"column",alignItems:"stretch",gap:2,as:"dl"},e.createElement(Se,{label:_({id:(0,Oe.OB)("containers.Edit.information.lastUpdate"),defaultMessage:"Last update"}),value:ot.at}),e.createElement(Se,{label:_({id:(0,Oe.OB)("containers.Edit.information.by"),defaultMessage:"By"}),value:ot.by})))},de=({children:_})=>e.createElement(fe.k,{direction:"column",alignItems:"stretch",gap:4},_);de.propTypes={children:te().oneOfType([te().arrayOf(te().node),te().node]).isRequired};var y={Root:de,Title:ut,Body:Vt}},73710:function(dt,De,d){"use strict";d.d(De,{Z:function(){return h}});var e=d(32735),ve=d(92914);function te(){return e.createElement(ve.Z.Root,null,e.createElement(ve.Z.Title,null),e.createElement(ve.Z.Body,null))}var h=te},75536:function(dt,De,d){"use strict";var e=d(32735);const ve=(te,h)=>{const[Ce,fe]=(0,e.useState)(te);return(0,e.useEffect)(()=>{const we=setTimeout(()=>{fe(te)},h);return()=>{clearTimeout(we)}},[te,h]),Ce};De.Z=ve},57047:function(dt,De,d){"use strict";d.d(De,{Z:function(){return ke}});var e=d(32735),ve=d(67879),te=d(49372),h=d(60216),Ce=d.n(h),fe=d(87933),we=d(72850),H=d(24989),rt=d(54504);function Oe({color:Le,name:Ke}){const{themeColorName:he}=(0,rt.k)(Le);return e.createElement(fe.k,{alignItems:"center",gap:2,maxWidth:(0,H.Q1)(300)},e.createElement(we.x,{height:2,background:Le,borderColor:he==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2}),e.createElement(te.Z,{fontWeight:"regular",textColor:"neutral700",ellipsis:!0},Ke))}Oe.propTypes={color:Ce().string.isRequired,name:Ce().string.isRequired};var Ie=Oe,Ee=d(47510),Fe=d(61937),ke=Le=>{const{formatMessage:Ke}=(0,ve.Z)();return(window.strapi.features.isEnabled(window.strapi.features.REVIEW_WORKFLOWS)&&Le.contentType.options?.reviewWorkflows)??!1?{key:"__strapi_reviewWorkflows_stage_temp_key__",name:"strapi_reviewWorkflows_stage",fieldSchema:{type:"relation"},metadatas:{label:Ke({id:(0,Ee.Z)("containers.ListPage.table-headers.reviewWorkflows.stage"),defaultMessage:"Review stage"}),searchable:!1,sortable:!0,mainField:"name"},cellFormatter({strapi_reviewWorkflows_stage:n}){if(!n)return e.createElement(te.Z,{textColor:"neutral800"},"-");const{color:ut,name:Se}=n;return e.createElement(Ie,{color:ut??Fe.FT,name:Se})}}:null}},28243:function(dt,De,d){"use strict";d.d(De,{Z:function(){return Ke}});var e=d(32735),ve=d(24989),te=d(87107),h=d(87933),Ce=d(28847),fe=d(23866),we=d(47851),H=d(67879),rt=d(20108),Oe=d(67350),Ie=d(28315),Ee=d(8445),Fe=d(92914);const ke="strapi_reviewWorkflows_stage";function Le(){const{initialData:he,isCreatingEntry:n,layout:{uid:ut},isSingleType:Se,onChange:Vt}=(0,ve.Wq)(),{put:de}=(0,ve.kY)(),y=he?.[ke]??null,_=Object.prototype.hasOwnProperty.call(he,ke),{formatMessage:$e}=(0,H.Z)(),{formatAPIError:Ye}=(0,ve.So)(),Mt=(0,ve.lm)(),{workflows:{data:Tt,isLoading:mt}={}}=(0,Oe.n)(),ot=Tt?.[0]??null,{error:xe,isLoading:Ze,mutateAsync:Te}=(0,rt.useMutation)(async({entityId:Ue,stageId:Xe,uid:Dt})=>{const It=Se?"single-types":"collection-types",{data:{data:kt}}=await de(`/admin/content-manager/${It}/${Dt}/${Ue}/stage`,{data:{id:Xe}});return Vt({target:{name:ke,value:kt[ke]}},!0),kt},{onSuccess(){Mt({type:"success",message:{id:"content-manager.reviewWorkflows.stage.notification.saved",defaultMessage:"Success: Review stage updated"}})}}),ue=y===null&&!mt&&!n&&$e({id:"content-manager.reviewWorkflows.stage.select.placeholder",defaultMessage:"Select a stage"}),S=xe&&Ye(xe)||ue||null,je=async({value:Ue})=>{try{await Te({entityId:he.id,stageId:Ue,uid:ut})}catch{}};return e.createElement(Fe.Z.Root,null,e.createElement(Fe.Z.Title,null),_&&!n&&e.createElement(te.g,{error:S,name:ke,id:ke},e.createElement(h.k,{direction:"column",gap:2,alignItems:"stretch"},e.createElement(Ce.Q,null,$e({id:"content-manager.reviewWorkflows.stage.label",defaultMessage:"Review stage"})),e.createElement(ve.JV,{components:{LoadingIndicator:()=>e.createElement(fe.a,{small:!0}),Option:Ie.K,SingleValue:Ee.R},error:S,inputId:ke,isLoading:Ze,isSearchable:!1,isClearable:!1,name:ke,onChange:je,options:ot?ot.stages.map(({id:Ue,color:Xe,name:Dt})=>({value:Ue,label:Dt,color:Xe})):[],value:{value:y?.id,label:y?.name,color:y?.color}}),e.createElement(we.c,null))),e.createElement(Fe.Z.Body,null))}var Ke=Le},57544:function(){},59599:function(){},42310:function(){},33842:function(){},85695:function(){}}]);
1123
+ `;function Ns({displayedValue:t}){return e.createElement(F.k,{background:"neutral0",borderColor:"neutral200",justifyContent:"space-between",gap:3,padding:3,width:(0,h.Q1)(300)},e.createElement(fm,{type:"button"},e.createElement(F.k,{gap:6},e.createElement(gm,{alignItems:"center",justifyContent:"center",background:"neutral200",height:(0,h.Q1)(32),width:(0,h.Q1)(32)},e.createElement(pm.Z,null)),e.createElement(F.k,{maxWidth:(0,h.Q1)(150)},e.createElement(Q.Z,{textColor:"neutral700",ellipsis:!0},t)))),e.createElement(F.k,{gap:2},e.createElement(ye.h,{noBorder:!0},e.createElement(He.Z,null)),e.createElement(ye.h,{noBorder:!0},e.createElement(Je.Z,null))))}Ns.propTypes={displayedValue:n().string.isRequired};const js=({status:t,displayedValue:r,width:o})=>{const{formatMessage:s}=(0,H.Z)(),a={[at.DRAFT]:s({id:(0,y.OB)("relation.publicationState.draft"),defaultMessage:"Draft"}),[at.PUBLISHED]:s({id:(0,y.OB)("relation.publicationState.published"),defaultMessage:"Published"})},l=t===at.DRAFT?"secondary":"success";return e.createElement(S.x,{style:{width:o}},e.createElement(F.k,{paddingTop:2,paddingBottom:2,paddingLeft:2,paddingRight:4,hasRadius:!0,borderSize:1,background:"neutral0",borderColor:"neutral200",justifyContent:"space-between"},e.createElement(po,{gap:1},e.createElement(ye.h,{noBorder:!0},e.createElement(Je.Z,null)),e.createElement(go,{maxWidth:"100%",justifyContent:"space-between"},e.createElement(S.x,{minWidth:0,paddingTop:1,paddingBottom:1,paddingRight:4},e.createElement(ho,null,e.createElement(Q.Z,{textColor:"primary600",ellipsis:!0},r))),t&&e.createElement(Pn.q,{variant:l,showBullet:!1,size:"S"},e.createElement(Q.Z,{fontWeight:"bold",textColor:`${l}700`},a[t])))),e.createElement(S.x,{paddingLeft:4},e.createElement(yo,{type:"button"},e.createElement(uo.J,{width:"12px",as:Kt.Z})))))};js.propTypes={status:n().string.isRequired,displayedValue:n().string.isRequired,width:n().number.isRequired};const hm=Ie.Z.contentManager;function ym({type:t,item:r}){if([qt.Z.EDIT_FIELD,qt.Z.FIELD].includes(t))return e.createElement(Bt,{labelField:r.labelField});const[o]=t.split("_");switch(o){case qt.Z.COMPONENT:case qt.Z.DYNAMIC_ZONE:return e.createElement(Ns,{displayedValue:r.displayedValue});case qt.Z.RELATION:return e.createElement(js,{displayedValue:r.displayedValue,status:r.status,width:r.width});default:return null}}const Ws=()=>{const t=(0,te.$B)("/content-manager/:kind/:uid"),{status:r,collectionTypeLinks:o,singleTypeLinks:s,models:a,refetchData:l}=mm(),i=Oe()([...o,...s],g=>g.title.toLowerCase()),{pathname:c}=(0,te.TH)(),{formatMessage:p}=(0,H.Z)(),{startSection:u}=(0,h.c1)(),m=(0,e.useRef)(u);if((0,e.useEffect)(()=>{m.current&&m.current("contentManager")},[]),r==="loading")return e.createElement(Ce.o,{"aria-busy":"true"},e.createElement(fe.T,{title:p({id:(0,Ee.Z)("header.name"),defaultMessage:"Content"})}),e.createElement(h.dO,null));const f=a.filter(({isDisplayed:g})=>g);return i.length===0&&f.length>0&&c!=="/content-manager/403"?e.createElement(te.l_,{to:"/content-manager/403"}):f.length===0&&c!=="/content-manager/no-content-types"?e.createElement(te.l_,{to:"/content-manager/no-content-types"}):!t&&i.length>0?e.createElement(te.l_,{to:`${i[0].to}${i[0].search?`?${i[0].search}`:""}`}):e.createElement(we.A,{sideNav:e.createElement(am,null)},e.createElement(Fe.r,{renderItem:ym}),e.createElement(Le.Provider,{value:{refetchData:l}},e.createElement(te.rs,null,e.createElement(te.AW,{path:"/content-manager/components/:uid/configurations/edit"},e.createElement(h.O4,{permissions:hm.componentsConfigurations},e.createElement(Gu,null))),e.createElement(te.AW,{path:"/content-manager/collectionType/:slug",component:Uu}),e.createElement(te.AW,{path:"/content-manager/singleType/:slug",component:em}),e.createElement(te.AW,{path:"/content-manager/403"},e.createElement(Ju,null)),e.createElement(te.AW,{path:"/content-manager/no-content-types"},e.createElement(Xu,null)),e.createElement(te.AW,{path:"",component:h.Hn}))))};function bm(){const{formatMessage:t}=(0,H.Z)();return e.createElement(e.Fragment,null,e.createElement(ve.q,{title:t({id:(0,Ee.Z)("plugin.name"),defaultMessage:"Content Manager"})}),e.createElement(Ws,null))}},92914:function(dt,De,d){"use strict";d.d(De,{Z:function(){return y}});var e=d(32735),ve=d(60216),te=d.n(ve),h=d(67879),Ce=d(24989),fe=d(87933),we=d(49372),H=d(72850),rt=d(9026),Oe=d(95952);const Ie=60*1e3,Ee=Ie*60,Fe=Ee*24,ke=Fe*30,Le=Fe*365;var he=_=>_<Ie?{unit:"second",value:-Math.round(_/1e3)}:_<Ee?{unit:"minute",value:-Math.round(_/Ie)}:_<Fe?{unit:"hour",value:-Math.round(_/Ee)}:_<ke?{unit:"day",value:-Math.round(_/Fe)}:_<Le?{unit:"month",value:-Math.round(_/ke)}:{unit:"year",value:-Math.round(_/Le)},n=d(8997);const ut=()=>{const{formatMessage:_}=(0,h.Z)();return e.createElement(fe.k,{direction:"column",alignItems:"stretch",gap:2},e.createElement(we.Z,{variant:"sigma",textColor:"neutral600",id:"additional-information"},_({id:(0,Oe.OB)("containers.Edit.information"),defaultMessage:"Information"})),e.createElement(H.x,null,e.createElement(rt.i,null)))},Se=({label:_,value:$e})=>e.createElement(fe.k,{justifyContent:"space-between"},e.createElement(we.Z,{as:"dt",fontWeight:"bold",textColor:"neutral800",variant:"pi"},_),e.createElement(we.Z,{as:"dd",variant:"pi",textColor:"neutral600"},$e));Se.propTypes={label:te().string.isRequired,value:te().string.isRequired};const Vt=()=>{const{formatMessage:_,formatRelativeTime:$e}=(0,h.Z)(),{initialData:Ye,isCreatingEntry:Mt}=(0,Ce.Wq)(),Tt=(0,e.useRef)(Date.now()),mt=(Ze,Te)=>{const{firstname:ue,lastname:F,username:S}=Ye[Te]??{},je=ue??"",Ue=F??"",Xe=S??(0,n.Pp)(je,Ue),It=(Ye[Ze]?new Date(Ye[Ze]).getTime():Date.now())-Tt.current,{unit:kt,value:Ut}=he(-It);return{at:$e(Ut,kt,{numeric:"auto"}),by:Mt?"-":Xe}},ot=mt("updatedAt","updatedBy"),xe=mt("createdAt","createdBy");return e.createElement(fe.k,{direction:"column",alignItems:"stretch",gap:4},e.createElement(fe.k,{direction:"column",alignItems:"stretch",gap:2,as:"dl"},e.createElement(Se,{label:_({id:(0,Oe.OB)("containers.Edit.information.created"),defaultMessage:"Created"}),value:xe.at}),e.createElement(Se,{label:_({id:(0,Oe.OB)("containers.Edit.information.by"),defaultMessage:"By"}),value:xe.by})),e.createElement(fe.k,{direction:"column",alignItems:"stretch",gap:2,as:"dl"},e.createElement(Se,{label:_({id:(0,Oe.OB)("containers.Edit.information.lastUpdate"),defaultMessage:"Last update"}),value:ot.at}),e.createElement(Se,{label:_({id:(0,Oe.OB)("containers.Edit.information.by"),defaultMessage:"By"}),value:ot.by})))},de=({children:_})=>e.createElement(fe.k,{direction:"column",alignItems:"stretch",gap:4},_);de.propTypes={children:te().oneOfType([te().arrayOf(te().node),te().node]).isRequired};var y={Root:de,Title:ut,Body:Vt}},73710:function(dt,De,d){"use strict";d.d(De,{Z:function(){return h}});var e=d(32735),ve=d(92914);function te(){return e.createElement(ve.Z.Root,null,e.createElement(ve.Z.Title,null),e.createElement(ve.Z.Body,null))}var h=te},75536:function(dt,De,d){"use strict";var e=d(32735);const ve=(te,h)=>{const[Ce,fe]=(0,e.useState)(te);return(0,e.useEffect)(()=>{const we=setTimeout(()=>{fe(te)},h);return()=>{clearTimeout(we)}},[te,h]),Ce};De.Z=ve},57047:function(dt,De,d){"use strict";d.d(De,{Z:function(){return ke}});var e=d(32735),ve=d(67879),te=d(49372),h=d(60216),Ce=d.n(h),fe=d(87933),we=d(72850),H=d(24989),rt=d(54504);function Oe({color:Le,name:Ke}){const{themeColorName:he}=(0,rt.k)(Le);return e.createElement(fe.k,{alignItems:"center",gap:2,maxWidth:(0,H.Q1)(300)},e.createElement(we.x,{height:2,background:Le,borderColor:he==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2}),e.createElement(te.Z,{fontWeight:"regular",textColor:"neutral700",ellipsis:!0},Ke))}Oe.propTypes={color:Ce().string.isRequired,name:Ce().string.isRequired};var Ie=Oe,Ee=d(47510),Fe=d(61937),ke=Le=>{const{formatMessage:Ke}=(0,ve.Z)();return(window.strapi.features.isEnabled(window.strapi.features.REVIEW_WORKFLOWS)&&Le.contentType.options?.reviewWorkflows)??!1?{key:"__strapi_reviewWorkflows_stage_temp_key__",name:"strapi_reviewWorkflows_stage",fieldSchema:{type:"relation"},metadatas:{label:Ke({id:(0,Ee.Z)("containers.ListPage.table-headers.reviewWorkflows.stage"),defaultMessage:"Review stage"}),searchable:!1,sortable:!0,mainField:{name:"name",schema:{type:"string"}}},cellFormatter({strapi_reviewWorkflows_stage:n}){if(!n)return e.createElement(te.Z,{textColor:"neutral800"},"-");const{color:ut,name:Se}=n;return e.createElement(Ie,{color:ut??Fe.FT,name:Se})}}:null}},28243:function(dt,De,d){"use strict";d.d(De,{Z:function(){return Ke}});var e=d(32735),ve=d(24989),te=d(87107),h=d(87933),Ce=d(28847),fe=d(23866),we=d(47851),H=d(67879),rt=d(20108),Oe=d(67350),Ie=d(28315),Ee=d(8445),Fe=d(92914);const ke="strapi_reviewWorkflows_stage";function Le(){const{initialData:he,isCreatingEntry:n,layout:{uid:ut},isSingleType:Se,onChange:Vt}=(0,ve.Wq)(),{put:de}=(0,ve.kY)(),y=he?.[ke]??null,_=Object.prototype.hasOwnProperty.call(he,ke),{formatMessage:$e}=(0,H.Z)(),{formatAPIError:Ye}=(0,ve.So)(),Mt=(0,ve.lm)(),{workflows:{data:Tt,isLoading:mt}={}}=(0,Oe.n)(),ot=Tt?.[0]??null,{error:xe,isLoading:Ze,mutateAsync:Te}=(0,rt.useMutation)(async({entityId:Ue,stageId:Xe,uid:Dt})=>{const It=Se?"single-types":"collection-types",{data:{data:kt}}=await de(`/admin/content-manager/${It}/${Dt}/${Ue}/stage`,{data:{id:Xe}});return Vt({target:{name:ke,value:kt[ke]}},!0),kt},{onSuccess(){Mt({type:"success",message:{id:"content-manager.reviewWorkflows.stage.notification.saved",defaultMessage:"Success: Review stage updated"}})}}),ue=y===null&&!mt&&!n&&$e({id:"content-manager.reviewWorkflows.stage.select.placeholder",defaultMessage:"Select a stage"}),S=xe&&Ye(xe)||ue||null,je=async({value:Ue})=>{try{await Te({entityId:he.id,stageId:Ue,uid:ut})}catch{}};return e.createElement(Fe.Z.Root,null,e.createElement(Fe.Z.Title,null),_&&!n&&e.createElement(te.g,{error:S,name:ke,id:ke},e.createElement(h.k,{direction:"column",gap:2,alignItems:"stretch"},e.createElement(Ce.Q,null,$e({id:"content-manager.reviewWorkflows.stage.label",defaultMessage:"Review stage"})),e.createElement(ve.JV,{components:{LoadingIndicator:()=>e.createElement(fe.a,{small:!0}),Option:Ie.K,SingleValue:Ee.R},error:S,inputId:ke,isLoading:Ze,isSearchable:!1,isClearable:!1,name:ke,onChange:je,options:ot?ot.stages.map(({id:Ue,color:Xe,name:Dt})=>({value:Ue,label:Dt,color:Xe})):[],value:{value:y?.id,label:y?.name,color:y?.color}}),e.createElement(we.c,null))),e.createElement(Fe.Z.Body,null))}var Ke=Le},57544:function(){},59599:function(){},42310:function(){},33842:function(){},85695:function(){}}]);