@strapi/admin 4.11.0-beta.1 → 4.11.0-exp.9xg4-3qfm-9w8f.1
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.
- package/admin/src/components/Providers/index.js +32 -32
- package/admin/src/components/Theme/index.js +3 -5
- package/admin/src/content-manager/components/DynamicTable/ConfirmDialogDeleteAll/index.js +73 -0
- package/admin/src/content-manager/components/DynamicTable/index.js +4 -20
- package/admin/src/content-manager/components/EditViewDataManagerProvider/index.js +21 -7
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/index.js +1 -0
- package/admin/src/content-manager/{utils → components/EditViewDataManagerProvider/utils}/schema.js +1 -1
- package/admin/src/content-manager/components/Inputs/index.js +11 -18
- package/admin/src/content-manager/components/Inputs/utils/getStep.js +13 -0
- package/admin/src/content-manager/components/Inputs/utils/index.js +1 -0
- package/admin/src/content-manager/pages/ListView/index.js +2 -118
- package/admin/src/content-manager/utils/index.js +0 -2
- package/admin/src/hooks/useContentTypes/useContentTypes.js +0 -2
- package/admin/src/index.js +4 -3
- package/admin/src/injectionZones.js +1 -6
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/index.js +1 -1
- package/admin/src/translations/en.json +1 -5
- package/build/{1657.ca8562dd.chunk.js → 1657.3f2b2c11.chunk.js} +1 -9
- package/build/3081.7e9329cb.chunk.js +105 -0
- package/build/462.6f8cbd19.chunk.js +71 -0
- package/build/5542.64b623c9.chunk.js +63 -0
- package/build/617.0518c0ba.chunk.js +155 -0
- package/build/6858.85d76858.chunk.js +50 -0
- package/build/6970.6a329e15.chunk.js +1 -0
- package/build/9036.f7ce35cc.chunk.js +211 -0
- package/build/{Admin-authenticatedApp.990df65d.chunk.js → Admin-authenticatedApp.e7ca2959.chunk.js} +2 -2
- package/build/{Admin_homePage.107a9fe0.chunk.js → Admin_homePage.94dc81b1.chunk.js} +16 -16
- package/build/Admin_marketplace.1b0c3d3b.chunk.js +55 -0
- package/build/Admin_pluginsPage.a28b96d5.chunk.js +6 -0
- package/build/{Admin_profilePage.75bc083a.chunk.js → Admin_profilePage.a8fa3a56.chunk.js} +1 -1
- package/build/Admin_settingsPage.ee76d19e.chunk.js +79 -0
- package/build/admin-app.bd209f08.chunk.js +63 -0
- package/build/admin-roles-list.af53b372.chunk.js +23 -0
- package/build/admin-users.0fc77b35.chunk.js +26 -0
- package/build/audit-logs-settings-page.6bc76e7d.chunk.js +121 -0
- package/build/content-manager.8bfce7f0.chunk.js +1123 -0
- package/build/content-type-builder-list-view.26aab6f3.chunk.js +215 -0
- package/build/email-settings-page.63f269ff.chunk.js +11 -0
- package/build/{en-json.0f5cc115.chunk.js → en-json.ba3290b8.chunk.js} +1 -1
- package/build/i18n-settings-page.2ac4ca58.chunk.js +114 -0
- package/build/i18n-translation-en-json.60af6722.chunk.js +1 -0
- package/build/index.html +1 -1
- package/build/main.aca47de6.js +2633 -0
- package/build/{review-workflows-settings.4b39b837.chunk.js → review-workflows-settings.56cab253.chunk.js} +1 -1
- package/build/{runtime~main.55d43bd7.js → runtime~main.0dfc909e.js} +1 -1
- package/build/upload-settings.1d187578.chunk.js +14 -0
- package/build/upload.bc340679.chunk.js +26 -0
- package/build/users-advanced-settings-page.7b4bf63a.chunk.js +9 -0
- package/build/users-email-settings-page.035a026c.chunk.js +24 -0
- package/build/users-providers-settings-page.6873dce9.chunk.js +29 -0
- package/build/{users-roles-settings-page.c773086b.chunk.js → users-roles-settings-page.2549794b.chunk.js} +1 -1
- package/build/{webhook-edit-page.ddd5963d.chunk.js → webhook-edit-page.0bc97587.chunk.js} +1 -1
- package/build/webhook-list-page.0861d3e9.chunk.js +63 -0
- package/ee/server/services/review-workflows/review-workflows.js +4 -0
- package/package.json +17 -19
- package/server/controllers/webhooks.js +6 -6
- package/admin/src/content-manager/components/DynamicTable/BulkActionsBar/index.js +0 -307
- package/build/3081.c2cdfac8.chunk.js +0 -108
- package/build/3562.e0b1a0b3.chunk.js +0 -50
- package/build/456.9b85d4c6.chunk.js +0 -39
- package/build/462.a073ff1f.chunk.js +0 -71
- package/build/5542.002522eb.chunk.js +0 -71
- package/build/617.87b2fe96.chunk.js +0 -155
- package/build/6970.7ea35fbd.chunk.js +0 -1
- package/build/Admin_marketplace.1436fc2b.chunk.js +0 -55
- package/build/Admin_pluginsPage.e1afd5ed.chunk.js +0 -6
- package/build/Admin_settingsPage.bd715ed3.chunk.js +0 -79
- package/build/admin-app.8b102fe2.chunk.js +0 -63
- package/build/admin-roles-list.e8bf9685.chunk.js +0 -31
- package/build/admin-users.751b28b2.chunk.js +0 -34
- package/build/audit-logs-settings-page.3c6cea81.chunk.js +0 -129
- package/build/content-manager.89099707.chunk.js +0 -1123
- package/build/content-type-builder-list-view.1e821eb9.chunk.js +0 -215
- package/build/email-settings-page.4368689f.chunk.js +0 -11
- package/build/i18n-settings-page.7988d872.chunk.js +0 -114
- package/build/i18n-translation-en-json.1ec7becf.chunk.js +0 -1
- package/build/main.5a232c3d.js +0 -2630
- package/build/upload-settings.63d99bf5.chunk.js +0 -14
- package/build/upload.c50d8c7a.chunk.js +0 -34
- package/build/users-advanced-settings-page.2cfb5d24.chunk.js +0 -9
- package/build/users-email-settings-page.bd6c774a.chunk.js +0 -24
- package/build/users-providers-settings-page.528f0036.chunk.js +0 -29
- package/build/webhook-list-page.b0f5a02c.chunk.js +0 -71
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[462],{84802:function(i){function o(t,e,s,n){for(var r=-1,l=t==null?0:t.length;++r<l;){var u=t[r];e(n,u,s(u),t)}return n}i.exports=o},88058:function(i,o,t){var e=t(87650);function s(n,r){var l=n==null?0:n.length;return!!l&&e(n,r,0)>-1}i.exports=s},37431:function(i){function o(t,e,s){for(var n=-1,r=t==null?0:t.length;++n<r;)if(s(e,t[n]))return!0;return!1}i.exports=o},23089:function(i,o,t){var e=t(61712),s=e("length");i.exports=s},62435:function(i,o,t){var e=t(56671);function s(n,r,l,u){return e(n,function(p,m,d){r(u,p,l(p),d)}),u}i.exports=s},60528:function(i){function o(t,e,s,n){for(var r=t.length,l=s+(n?1:-1);n?l--:++l<r;)if(e(t[l],l,t))return l;return-1}i.exports=o},87650:function(i,o,t){var e=t(60528),s=t(25556),n=t(54256);function r(l,u,p){return u===u?n(l,u,p):e(l,s,p)}i.exports=r},25556:function(i){function o(t){return t!==t}i.exports=o},84351:function(i,o,t){var e=t(61124),s=t(88058),n=t(37431),r=t(30555),l=t(58491),u=t(66350),p=200;function m(d,j,x){var h=-1,c=s,a=d.length,C=!0,f=[],E=f;if(x)C=!1,c=n;else if(a>=p){var g=j?null:l(d);if(g)return u(g);C=!1,c=r,E=new e}else E=j?[]:f;t:for(;++h<a;){var v=d[h],_=j?j(v):v;if(v=x||v!==0?v:0,C&&_===_){for(var w=E.length;w--;)if(E[w]===_)continue t;j&&E.push(_),f.push(v)}else c(E,_,x)||(E!==f&&E.push(_),f.push(v))}return f}i.exports=m},85580:function(i,o,t){var e=t(84802),s=t(62435),n=t(88904),r=t(77236);function l(u,p){return function(m,d){var j=r(m)?e:s,x=p?p():{};return j(m,u,n(d,2),x)}}i.exports=l},58491:function(i,o,t){var e=t(69902),s=t(13581),n=t(66350),r=1/0,l=e&&1/n(new e([,-0]))[1]==r?function(u){return new e(u)}:s;i.exports=l},54256:function(i){function o(t,e,s){for(var n=s-1,r=t.length;++n<r;)if(t[n]===e)return n;return-1}i.exports=o},38788:function(i,o,t){var e=t(23089),s=t(34327),n=t(71286);function r(l){return s(l)?n(l):e(l)}i.exports=r},71286:function(i){var o="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",n=t+e+s,r="\\ufe0e\\ufe0f",l="["+o+"]",u="["+n+"]",p="\\ud83c[\\udffb-\\udfff]",m="(?:"+u+"|"+p+")",d="[^"+o+"]",j="(?:\\ud83c[\\udde6-\\uddff]){2}",x="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",c=m+"?",a="["+r+"]?",C="(?:"+h+"(?:"+[d,j,x].join("|")+")"+a+c+")*",f=a+c+C,E="(?:"+[d+u+"?",u,j,x,l].join("|")+")",g=RegExp(p+"(?="+p+")|"+E+f,"g");function v(_){for(var w=g.lastIndex=0;g.test(_);)++w;return w}i.exports=v},81346:function(i,o,t){var e=t(40999),s=t(85580),n=Object.prototype,r=n.hasOwnProperty,l=s(function(u,p,m){r.call(u,m)?u[m].push(p):e(u,m,[p])});i.exports=l},34461:function(i,o,t){var e=t(94318),s=t(77236),n=t(3387),r="[object String]";function l(u){return typeof u=="string"||!s(u)&&n(u)&&e(u)==r}i.exports=l},13581:function(i){function o(){}i.exports=o},61868:function(i,o,t){var e=t(78803),s=t(26686),n=t(81580),r=t(34461),l=t(38788),u="[object Map]",p="[object Set]";function m(d){if(d==null)return 0;if(n(d))return r(d)?l(d):d.length;var j=s(d);return j==u||j==p?d.size:e(d).length}i.exports=m},59578:function(i,o,t){var e=t(41119);function s(n){return e(n).toLowerCase()}i.exports=s},91815:function(i,o,t){var e=t(84351);function s(n){return n&&n.length?e(n):[]}i.exports=s},98178:function(i,o,t){"use strict";t.d(o,{P1:function(){return d}});var e="NOT_FOUND";function s(x){var h;return{get:function(a){return h&&x(h.key,a)?h.value:e},put:function(a,C){h={key:a,value:C}},getEntries:function(){return h?[h]:[]},clear:function(){h=void 0}}}function n(x,h){var c=[];function a(g){var v=c.findIndex(function(w){return h(g,w.key)});if(v>-1){var _=c[v];return v>0&&(c.splice(v,1),c.unshift(_)),_.value}return e}function C(g,v){a(g)===e&&(c.unshift({key:g,value:v}),c.length>x&&c.pop())}function f(){return c}function E(){c=[]}return{get:a,put:C,getEntries:f,clear:E}}var r=function(h,c){return h===c};function l(x){return function(c,a){if(c===null||a===null||c.length!==a.length)return!1;for(var C=c.length,f=0;f<C;f++)if(!x(c[f],a[f]))return!1;return!0}}function u(x,h){var c=typeof h=="object"?h:{equalityCheck:h},a=c.equalityCheck,C=a===void 0?r:a,f=c.maxSize,E=f===void 0?1:f,g=c.resultEqualityCheck,v=l(C),_=E===1?s(v):n(E,v);function w(){var P=_.get(arguments);if(P===e){if(P=x.apply(null,arguments),g){var M=_.getEntries(),Z=M.find(function(D){return g(D.value,P)});Z&&(P=Z.value)}_.put(arguments,P)}return P}return w.clearCache=function(){return _.clear()},w}function p(x){var h=Array.isArray(x[0])?x[0]:x;if(!h.every(function(a){return typeof a=="function"})){var c=h.map(function(a){return typeof a=="function"?"function "+(a.name||"unnamed")+"()":typeof a}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+c+"]")}return h}function m(x){for(var h=arguments.length,c=new Array(h>1?h-1:0),a=1;a<h;a++)c[a-1]=arguments[a];var C=function(){for(var E=arguments.length,g=new Array(E),v=0;v<E;v++)g[v]=arguments[v];var _=0,w,P={memoizeOptions:void 0},M=g.pop();if(typeof M=="object"&&(P=M,M=g.pop()),typeof M!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof M+"]");var Z=P,D=Z.memoizeOptions,b=D===void 0?c:D,y=Array.isArray(b)?b:[b],A=p(g),T=x.apply(void 0,[function(){return _++,M.apply(null,arguments)}].concat(y)),F=x(function(){for(var B=[],I=A.length,L=0;L<I;L++)B.push(A[L].apply(null,arguments));return w=T.apply(null,B),w});return Object.assign(F,{resultFunc:M,memoizedResultFunc:T,dependencies:A,lastResult:function(){return w},recomputations:function(){return _},resetRecomputations:function(){return _=0}}),F};return C}var d=m(u),j=function(h,c){if(c===void 0&&(c=d),typeof h!="object")throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof h));var a=Object.keys(h),C=c(a.map(function(f){return h[f]}),function(){for(var f=arguments.length,E=new Array(f),g=0;g<f;g++)E[g]=arguments[g];return E.reduce(function(v,_,w){return v[a[w]]=_,v},{})});return C}},96709:function(i,o,t){"use strict";t.d(o,{A:function(){return m}});var e=t(74512),s=t(32735),n=t(60216),r=t(8471),l=t(72850);const u=(0,r.ZP)(l.x)`
|
|
2
|
-
display: grid;
|
|
3
|
-
grid-template-columns: ${({hasSideNav:d})=>d?"auto 1fr":"1fr"};
|
|
4
|
-
`,p=(0,r.ZP)(l.x)`
|
|
5
|
-
overflow-x: hidden;
|
|
6
|
-
`,m=({sideNav:d,children:j})=>(0,e.jsxs)(u,{hasSideNav:!!d,children:[d,(0,e.jsx)(p,{paddingBottom:10,children:j})]});m.defaultProps={sideNav:void 0},m.propTypes={children:n.node.isRequired,sideNav:n.node}},90700:function(i,o,t){"use strict";t.d(o,{m:function(){return m}});var e=t(74512),s=t(32735),n=t(60216),r=t(8471),l=t(15335);const u=`${232/16}rem`,p=(0,r.ZP)(l.r)`
|
|
7
|
-
width: ${u};
|
|
8
|
-
background: ${({theme:d})=>d.colors.neutral100};
|
|
9
|
-
position: sticky;
|
|
10
|
-
top: 0;
|
|
11
|
-
height: 100vh;
|
|
12
|
-
overflow-y: auto;
|
|
13
|
-
border-right: 1px solid ${({theme:d})=>d.colors.neutral200};
|
|
14
|
-
z-index: 1;
|
|
15
|
-
`,m=({ariaLabel:d,...j})=>(0,e.jsx)(p,{"aria-label":d,as:"nav",...j});m.propTypes={ariaLabel:n.string.isRequired}},78090:function(i,o,t){"use strict";t.d(o,{p:function(){return E}});var e=t(74512),s=t(32735),n=t(6792),r=t(60216),l=t(8471),u=t(94486),p=t(74971);const m=g=>{const v=(0,s.useRef)();return(0,s.useEffect)(()=>{v.current=g}),v.current};var d=t(9026),j=t(72850),x=t(89252),h=t(61774),c=t(87933),a=t(49372),C=t(50563);const f=(0,l.ZP)(d.i)`
|
|
16
|
-
width: ${24/16}rem;
|
|
17
|
-
background-color: ${({theme:g})=>g.colors.neutral200};
|
|
18
|
-
`,E=({as:g,label:v,searchLabel:_,searchable:w,onChange:P,value:M,onClear:Z,onSubmit:D,id:b})=>{const[y,A]=(0,s.useState)(!1),T=m(y),F=(0,p.M)(b),O=(0,s.useRef)(),B=(0,s.useRef)();(0,s.useEffect)(()=>{y&&O.current&&O.current.focus(),T&&!y&&B.current&&B.current.focus()},[y,T]);const I=()=>{A(R=>!R)},L=R=>{Z(R),O.current.focus()},S=R=>{R.relatedTarget?.id!==F&&A(!1)},U=R=>{R.key===u.y.ESCAPE&&A(!1)};return y?(0,e.jsxs)(j.x,{paddingLeft:4,paddingTop:5,paddingBottom:2,paddingRight:4,children:[(0,e.jsx)(x.U,{children:(0,e.jsx)(h.w,{name:"searchbar",value:M,onChange:P,placeholder:"e.g: strapi-plugin-abcd",onKeyDown:U,ref:O,onBlur:S,onClear:L,onSubmit:D,clearLabel:"Clear",size:"S",children:_})}),(0,e.jsx)(j.x,{paddingLeft:2,paddingTop:4,children:(0,e.jsx)(f,{})})]}):(0,e.jsxs)(j.x,{paddingLeft:6,paddingTop:6,paddingBottom:2,paddingRight:4,children:[(0,e.jsxs)(c.k,{justifyContent:"space-between",alignItems:"flex-start",children:[(0,e.jsx)(a.Z,{variant:"beta",as:g,children:v}),w&&(0,e.jsx)(C.h,{ref:B,onClick:I,label:_,icon:(0,e.jsx)(n.Z,{})})]}),(0,e.jsx)(j.x,{paddingTop:4,children:(0,e.jsx)(f,{})})]})};E.defaultProps={as:"h2",searchable:!1,onChange(){},onClear(){},onSubmit(){},value:"",searchLabel:"",id:void 0},E.propTypes={as:r.string,id:r.string,label:r.string.isRequired,onChange:r.func,onClear:r.func,onSubmit:r.func,searchLabel:r.string,searchable:r.bool,value:r.string}},66618:function(i,o,t){"use strict";t.d(o,{E:function(){return c}});var e=t(74512),s=t(32735),n=t(56243),r=t(60216),l=t(8471),u=t(72850),p=t(49372),m=t(87933),d=t(62499);const j=(0,l.ZP)(u.x)`
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
justify-content: space-between;
|
|
22
|
-
text-decoration: none;
|
|
23
|
-
color: ${({theme:a})=>a.colors.neutral800};
|
|
24
|
-
svg > * {
|
|
25
|
-
fill: ${({theme:a})=>a.colors.neutral600};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&.active {
|
|
29
|
-
${({theme:a})=>`
|
|
30
|
-
background-color: ${a.colors.primary100};
|
|
31
|
-
border-right: 2px solid ${a.colors.primary600};
|
|
32
|
-
svg > * {
|
|
33
|
-
fill: ${a.colors.primary700};
|
|
34
|
-
}
|
|
35
|
-
${p.Z} {
|
|
36
|
-
color: ${a.colors.primary700};
|
|
37
|
-
font-weight: 500;
|
|
38
|
-
}
|
|
39
|
-
`}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&:focus-visible {
|
|
43
|
-
outline-offset: -2px;
|
|
44
|
-
}
|
|
45
|
-
`,x=(0,l.ZP)(n.Z)`
|
|
46
|
-
width: ${12/16}rem;
|
|
47
|
-
height: ${4/16}rem;
|
|
48
|
-
* {
|
|
49
|
-
fill: ${({theme:a,$active:C})=>C?a.colors.primary600:a.colors.neutral600};
|
|
50
|
-
}
|
|
51
|
-
`,h=l.ZP.div`
|
|
52
|
-
svg {
|
|
53
|
-
height: ${12/16}rem;
|
|
54
|
-
width: ${12/16}rem;
|
|
55
|
-
}
|
|
56
|
-
`,c=s.forwardRef(({children:a,icon:C,withBullet:f,as:E,isSubSectionChild:g,...v},_)=>(0,e.jsxs)(j,{as:E,icon:C,background:"neutral100",paddingLeft:g?9:7,paddingBottom:2,paddingTop:2,ref:_,...v,children:[(0,e.jsxs)(m.k,{children:[C?(0,e.jsx)(h,{children:C}):(0,e.jsx)(x,{}),(0,e.jsx)(u.x,{paddingLeft:2,children:(0,e.jsx)(p.Z,{as:"span",children:a})})]}),f&&(0,e.jsx)(u.x,{as:m.k,paddingRight:4,children:(0,e.jsx)(x,{$active:!0})})]}));c.displayName="SubNavLink",c.defaultProps={as:d.f,icon:null,isSubSectionChild:!1,withBullet:!1},c.propTypes={as:r.elementType,children:r.node.isRequired,icon:r.element,isSubSectionChild:r.bool,withBullet:r.bool}},79318:function(i,o,t){"use strict";t.d(o,{D:function(){return C}});var e=t(74512),s=t(32735),n=t(60216),r=t(8471),l=t(16899),u=t(87933),p=t(72850),m=t(49372);const d=(0,r.ZP)(u.k)`
|
|
57
|
-
border: none;
|
|
58
|
-
padding: 0;
|
|
59
|
-
background: transparent;
|
|
60
|
-
`,j=r.ZP.div`
|
|
61
|
-
display: flex;
|
|
62
|
-
align-items: center;
|
|
63
|
-
transform: rotateX(${({rotated:f})=>f?"0deg":"180deg"});
|
|
64
|
-
`,x=({collapsable:f,label:E,onClick:g,ariaExpanded:v,ariaControls:_})=>f?(0,e.jsxs)(d,{as:"button",onClick:g,"aria-expanded":v,"aria-controls":_,textAlign:"left",children:[(0,e.jsx)(p.x,{paddingRight:1,children:(0,e.jsx)(m.Z,{variant:"sigma",textColor:"neutral600",children:E})}),f&&(0,e.jsx)(j,{rotated:v,children:(0,e.jsx)(l.Z,{"aria-hidden":!0})})]}):(0,e.jsx)(d,{children:(0,e.jsx)(p.x,{paddingRight:1,children:(0,e.jsx)(m.Z,{variant:"sigma",textColor:"neutral600",children:E})})});x.defaultProps={ariaControls:null,ariaExpanded:null,collapsable:!1,onClick(){}},x.propTypes={ariaControls:n.string,ariaExpanded:n.bool,collapsable:n.bool,label:n.string.isRequired,onClick:n.func};var h=t(74971),c=t(6518);const a=(0,r.ZP)(p.x)`
|
|
65
|
-
svg {
|
|
66
|
-
height: ${4/16}rem;
|
|
67
|
-
path {
|
|
68
|
-
fill: ${({theme:f})=>f.colors.neutral500};
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
`,C=({collapsable:f,label:E,badgeLabel:g,children:v,id:_})=>{const[w,P]=(0,s.useState)(!0),M=(0,h.M)(_);return(0,e.jsxs)(u.k,{direction:"column",alignItems:"stretch",gap:1,children:[(0,e.jsx)(a,{paddingLeft:6,paddingTop:2,paddingBottom:2,paddingRight:4,children:(0,e.jsxs)(p.x,{position:"relative",paddingRight:g?6:0,children:[(0,e.jsx)(x,{onClick:()=>{P(Z=>!Z)},ariaExpanded:w,ariaControls:M,collapsable:f,label:E}),g&&(0,e.jsx)(c.C,{backgroundColor:"neutral150",textColor:"neutral600",position:"absolute",right:0,top:"50%",transform:"translateY(-50%)",children:g})]})}),(!f||w)&&(0,e.jsx)("ol",{id:M,children:s.Children.map(v,(Z,D)=>(0,e.jsx)("li",{children:Z},D))})]})};C.defaultProps={badgeLabel:null,collapsable:!1,id:void 0},C.propTypes={badgeLabel:n.string,children:n.node.isRequired,collapsable:n.bool,id:n.string,label:n.string.isRequired}},77013:function(i,o,t){"use strict";t.d(o,{Z:function(){return u}});var e=t(74512),s=t(32735),n=t(60216),r=t(72850),l=t(87933);const u=({children:p,spacing:m=2,horizontal:d=!1,...j})=>(0,e.jsx)(r.x,{paddingTop:2,paddingBottom:4,children:(0,e.jsx)(l.k,{as:"ol",gap:m,direction:d?"row":"column",alignItems:d?"center":"stretch",...j,children:s.Children.map(p,(x,h)=>(0,e.jsx)("li",{children:x},h))})});u.propTypes={children:n.node.isRequired}},73779:function(i,o,t){"use strict";t.d(o,{Z:function(){return n}});var e=t(74512);const s=r=>(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...r,children:[(0,e.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#EAFBE7",stroke:"#C6F0C2",rx:2.5}),(0,e.jsx)("path",{fill:"#328048",d:"M19.5 7h-7A4.505 4.505 0 0 0 8 11.5c0 2.481 2.019 4.5 4.5 4.5h7c2.481 0 4.5-2.019 4.5-4.5S21.981 7 19.5 7Zm0 8a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7Z"})]}),n=s},1176:function(i,o,t){"use strict";t.d(o,{Z:function(){return n}});var e=t(74512);const s=r=>(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...r,children:[(0,e.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#F6F6F9",stroke:"#DCDCE4",rx:2.5}),(0,e.jsx)("path",{fill:"#666687",fillRule:"evenodd",d:"M13.535 8.768c0 .116-.011.229-.032.339l3.013 1.776 2.985-1.76a1.768 1.768 0 1 1 .519.93l-2.982 1.757v2.477a1.768 1.768 0 1 1-1.048-.044v-2.435l-2.997-1.767a1.768 1.768 0 1 1 .542-1.274Z",clipRule:"evenodd"}),(0,e.jsx)("path",{fill:"#666687",d:"m13.503 9.107-.05-.01-.006.035.03.018.026-.043Zm3.013 1.776-.025.043.025.014.025-.014-.025-.043Zm2.985-1.76.025.044.031-.018-.007-.035-.05.01Zm.518.93.035-.036-.027-.026-.033.02.026.042Zm-2.98 1.757-.026-.043-.025.014v.029h.05Zm0 2.477h-.05v.035l.032.012.017-.047Zm-1.049-.044.013.048.037-.01v-.038h-.05Zm0-2.435h.05v-.029l-.024-.014-.026.043Zm-2.997-1.767.025-.043-.033-.019-.027.027.035.035Zm.559-.925c.022-.113.033-.23.033-.348h-.1c0 .112-.01.223-.031.33l.098.018Zm2.99 1.723-3.014-1.775-.05.086 3.013 1.775.05-.086Zm2.933-1.758-2.984 1.758.05.086 2.985-1.758-.05-.086Zm-.06-.313c0 .125.013.247.037.366l.098-.02a1.723 1.723 0 0 1-.035-.346h-.1Zm1.818-1.818a1.818 1.818 0 0 0-1.818 1.818h.1c0-.949.769-1.718 1.718-1.718v-.1Zm1.817 1.818a1.818 1.818 0 0 0-1.817-1.818v.1c.948 0 1.717.769 1.717 1.718h.1Zm-1.817 1.817a1.818 1.818 0 0 0 1.817-1.817h-.1c0 .948-.769 1.717-1.717 1.717v.1Zm-1.248-.495c.326.307.765.495 1.248.495v-.1c-.457 0-.872-.178-1.18-.468l-.068.073Zm-2.921 1.763 2.98-1.757-.05-.086-2.981 1.757.05.086Zm.024 2.434V11.81h-.1v2.477h.1Zm-.067.047a1.718 1.718 0 0 1 1.14 1.618h.1c0-.79-.503-1.46-1.206-1.712l-.034.094Zm1.14 1.618c0 .948-.77 1.717-1.718 1.717v.1a1.817 1.817 0 0 0 1.817-1.817h-.1Zm-1.718 1.717a1.718 1.718 0 0 1-1.718-1.717h-.1c0 1.004.814 1.817 1.818 1.817v-.1Zm-1.718-1.717c0-.797.543-1.467 1.278-1.66l-.026-.098a1.818 1.818 0 0 0-1.352 1.758h.1Zm1.215-4.144v2.435h.1v-2.435h-.1Zm-2.973-1.723 2.998 1.766.05-.086-2.997-1.767-.05.087Zm-1.2.5c.49 0 .934-.193 1.26-.507l-.069-.072c-.309.296-.728.48-1.19.48v.1ZM9.95 8.768c0 1.003.814 1.817 1.818 1.817v-.1a1.718 1.718 0 0 1-1.718-1.717h-.1Zm1.818-1.818A1.818 1.818 0 0 0 9.95 8.768h.1c0-.949.769-1.718 1.717-1.718v-.1Zm1.817 1.818a1.818 1.818 0 0 0-1.818-1.818v.1c.95 0 1.718.769 1.718 1.718h.1Z"})]}),n=s},88675:function(i,o,t){"use strict";t.d(o,{Z:function(){return n}});var e=t(74512);const s=r=>(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...r,children:[(0,e.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,e.jsx)("path",{fill:"#D9822F",fillRule:"evenodd",d:"M11.934 7.495V6h1.45v1.495h5.232V6h1.45v1.495h.314c1.385 0 1.602.249 1.62 1.463V16.5c0 1.062-.096 1.5-1.4 1.5h-9.19c-1.306 0-1.41-.318-1.41-1.607V9.105c.018-1.025.117-1.61 1.5-1.61h.434Zm-.774 8.687c0 .406.123.433.388.433h8.953c.265 0 .34-.007.34-.413v-6.087c-.008-.314-.11-.369-.316-.369h-9.072c-.206 0-.296.045-.293.287v6.15Z",clipRule:"evenodd"})]}),n=s},56243:function(i,o,t){"use strict";t.d(o,{Z:function(){return n}});var e=t(74512);const s=r=>(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 4 4",...r,children:(0,e.jsx)("rect",{width:4,height:4,fill:"#A5A5BA",rx:2})}),n=s},15431:function(i,o,t){"use strict";t.d(o,{Z:function(){return n}});var e=t(74512);const s=r=>(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...r,children:[(0,e.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#F6F6F9",stroke:"#DCDCE4",rx:2.5}),(0,e.jsx)("path",{fill:"#666687",d:"M20.573 8c-1.484 0-2.666.745-3.397 1.37l-.026.023-.416.452.919 1.51.68-.682c.711-.6 1.506-.93 2.24-.93 1.48 0 2.685 1.171 2.685 2.612 0 1.44-1.205 2.613-2.685 2.613-2.25 0-3.78-2.974-3.795-3.004C16.69 11.784 14.75 8 11.428 8 8.985 8 7 9.954 7 12.355c0 2.401 1.986 4.355 4.427 4.355 1.196 0 2.373-.476 3.404-1.376l.022-.02.413-.45-.919-1.51-.683.686c-.712.616-1.465.928-2.237.928-1.48 0-2.685-1.172-2.685-2.613 0-1.44 1.205-2.613 2.685-2.613 2.25 0 3.78 2.974 3.795 3.004.088.18 2.028 3.964 5.35 3.964 2.442 0 4.428-1.954 4.428-4.355C25 9.954 23.014 8 20.573 8Z"})]}),n=s},22348:function(i,o,t){"use strict";t.d(o,{Z:function(){return n}});var e=t(74512);const s=r=>(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...r,children:[(0,e.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#FCECEA",stroke:"#F5C0B8",rx:2.5}),(0,e.jsx)("path",{fill:"#D02B20",d:"M16.767 17.49c.724 0 1.428-.089 1.962-.253v-1.093c-.383.143-1.128.239-1.86.239-2.905 0-4.744-1.764-4.744-4.546v-.014c0-2.734 1.839-4.641 4.484-4.641 2.598 0 4.307 1.62 4.307 4.088v.013c0 1.402-.444 2.304-1.135 2.304-.417 0-.656-.287-.656-.772V9.157h-1.38v.82h-.124c-.273-.608-.868-.97-1.6-.97-1.367 0-2.296 1.135-2.296 2.789v.014c0 1.73.943 2.884 2.365 2.884.793 0 1.353-.362 1.64-1.052h.123l.007.04c.158.636.78 1.033 1.62 1.033 1.655 0 2.687-1.367 2.687-3.534v-.014c0-3.008-2.242-5.072-5.517-5.072-3.418 0-5.776 2.324-5.776 5.694v.014c0 3.431 2.331 5.687 5.893 5.687Zm-.342-4.053c-.718 0-1.149-.602-1.149-1.586v-.014c0-.991.431-1.586 1.156-1.586.724 0 1.182.608 1.182 1.586v.014c0 .977-.458 1.585-1.19 1.585Z"})]}),n=s},7184:function(i,o,t){"use strict";t.d(o,{Z:function(){return n}});var e=t(74512);const s=r=>(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...r,children:[(0,e.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#F6ECFC",stroke:"#E0C1F4",rx:2.5}),(0,e.jsx)("path",{fill:"#9736E8",fillRule:"evenodd",d:"M10.167 7a1.167 1.167 0 1 0 0 2.333 1.167 1.167 0 0 0 0-2.333Zm0 4.03a1.167 1.167 0 1 0 0 2.334 1.167 1.167 0 0 0 0-2.334ZM9 16.23a1.167 1.167 0 1 1 2.333 0 1.167 1.167 0 0 1-2.333 0Zm4.005-9.02a.4.4 0 0 0-.4.4v1.11c0 .22.18.4.4.4H22.6a.4.4 0 0 0 .4-.4V7.61a.4.4 0 0 0-.4-.4h-9.594Zm-.399 4.432a.4.4 0 0 1 .4-.4H22.6c.22 0 .4.18.4.4v1.11a.4.4 0 0 1-.4.4h-9.594a.4.4 0 0 1-.4-.4v-1.11Zm.4 3.63a.4.4 0 0 0-.4.4v1.11c0 .22.18.4.4.4H22.6a.4.4 0 0 0 .4-.4v-1.11a.4.4 0 0 0-.4-.4h-9.594Z",clipRule:"evenodd"})]}),n=s},872:function(i,o,t){"use strict";t.d(o,{Z:function(){return n}});var e=t(74512);const s=r=>(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...r,children:[(0,e.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#EAF5FF",stroke:"#B8E1FF",rx:2.5}),(0,e.jsx)("path",{fill:"#0C75AF",fillRule:"evenodd",d:"M8.243 11.907v.157c.835.093 1.287.516 1.287 1.223V14.5c0 .693.236.959.855.959h.216V16.5h-.364c-1.459 0-2.078-.56-2.078-1.857v-.973c0-.722-.314-.992-1.159-1.002v-1.366c.84-.005 1.16-.275 1.16-1.002v-.968c0-1.282.618-1.832 2.077-1.832h.364v1.041h-.216c-.624 0-.855.266-.855.958v1.184c0 .713-.452 1.135-1.287 1.224Zm15.804.181v-.157c-.835-.088-1.287-.51-1.287-1.223V9.495c0-.693-.236-.954-.855-.954h-.216V7.5h.363c1.454 0 2.073.56 2.073 1.852v.973c0 .722.32.997 1.165 1.002v1.366c-.845.005-1.165.28-1.165 1.002v.973c0 1.282-.613 1.832-2.073 1.832h-.363v-1.046h.216c.619 0 .855-.26.855-.954v-1.188c0-.708.452-1.13 1.287-1.224ZM13.15 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm4-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm2 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"})]}),n=s},43475:function(i,o,t){"use strict";t.d(o,{Z:function(){return n}});var e=t(74512);const s=r=>(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...r,children:[(0,e.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#F6ECFC",stroke:"#E0C1F4",rx:2.5}),(0,e.jsx)("path",{fill:"#9736E8",fillRule:"evenodd",d:"M22 8.759a2 2 0 0 0-2-2h-8c-1.105 0-2 .902-2 2.006v6.068a2 2 0 0 0 .985 1.724l3.66-3.74 3.31 3.381 1.471-1.502 1.731 1.769c.51-.363.843-.958.843-1.632V8.76ZM18.5 9c-.84 0-1.5.66-1.5 1.5s.66 1.5 1.5 1.5 1.5-.66 1.5-1.5S19.34 9 18.5 9Z",clipRule:"evenodd"})]}),n=s},32031:function(i,o,t){"use strict";t.d(o,{Z:function(){return n}});var e=t(74512);const s=r=>(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...r,children:[(0,e.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#FCECEA",stroke:"#F5C0B8",rx:2.5}),(0,e.jsx)("path",{fill:"#D02B20",d:"M9.815 16h1.475V8.954H9.82L8 10.22v1.328l1.729-1.201h.087V16Zm3.394 0h5.083v-1.187h-3.106v-.112l1.304-1.216c1.284-1.186 1.7-1.85 1.7-2.651v-.015c0-1.215-1.016-2.046-2.466-2.046-1.543 0-2.598.928-2.598 2.28l.005.02h1.362v-.024c0-.67.474-1.128 1.162-1.128.674 0 1.084.42 1.084 1.02v.015c0 .493-.268.85-1.26 1.812l-2.27 2.24V16Zm9.067.156c1.646 0 2.744-.864 2.744-2.143v-.01c0-.957-.683-1.563-1.733-1.66v-.03c.825-.17 1.47-.742 1.47-1.62v-.01c0-1.123-.977-1.885-2.49-1.885-1.48 0-2.471.82-2.574 2.08l-.005.059h1.358l.005-.044c.058-.586.522-.962 1.216-.962.693 0 1.098.361 1.098.947v.01c0 .571-.478.962-1.22.962h-.787v1.05h.806c.855 0 1.357.37 1.357 1.044v.01c0 .596-.493 1.016-1.245 1.016-.761 0-1.264-.39-1.328-.938l-.005-.053h-1.41l.004.063c.098 1.26 1.148 2.114 2.74 2.114Z"})]}),n=s},82512:function(i,o,t){"use strict";t.d(o,{Z:function(){return n}});var e=t(74512);const s=r=>(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...r,children:[(0,e.jsx)("path",{fill:"#F0F0FF",stroke:"#D9D8FF",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,e.jsx)("path",{fill:"#4945FF",fillRule:"evenodd",d:"M21.375 16.316c.417-.407.625-.904.625-1.492 0-.589-.206-1.089-.618-1.5l-1.53-1.53a2.042 2.042 0 0 0-1.5-.617 2.06 2.06 0 0 0-1.529.646l-.646-.646c.43-.422.646-.934.646-1.537a2.03 2.03 0 0 0-.61-1.493l-1.515-1.522a2.014 2.014 0 0 0-1.5-.625 2.03 2.03 0 0 0-1.492.61l-1.081 1.074A2.006 2.006 0 0 0 10 9.176c0 .589.206 1.089.618 1.5l1.53 1.53c.41.412.91.617 1.5.617a2.06 2.06 0 0 0 1.529-.646l.646.646a2.069 2.069 0 0 0-.646 1.537c0 .588.203 1.086.61 1.493l1.514 1.522c.407.417.907.625 1.5.625a2.03 2.03 0 0 0 1.493-.61l1.081-1.074Zm-5.956-6.678a.68.68 0 0 0-.205-.5l-1.515-1.522a.68.68 0 0 0-.5-.206.71.71 0 0 0-.5.199l-1.081 1.073a.672.672 0 0 0-.206.493.68.68 0 0 0 .206.5l1.53 1.53a.678.678 0 0 0 .5.198.71.71 0 0 0 .529-.228l-.14-.136a4.46 4.46 0 0 1-.158-.158 1.756 1.756 0 0 1-.11-.14.593.593 0 0 1-.122-.39.68.68 0 0 1 .206-.5.68.68 0 0 1 .5-.206.59.59 0 0 1 .39.121c.064.047.11.084.14.111.03.027.082.08.158.158l.136.14a.713.713 0 0 0 .242-.537Zm5.168 5.187a.68.68 0 0 0-.206-.5l-1.529-1.53a.68.68 0 0 0-.5-.205.7.7 0 0 0-.53.235l.14.136c.079.076.132.129.159.158.027.03.063.076.11.14a.591.591 0 0 1 .121.39.681.681 0 0 1-.206.5.681.681 0 0 1-.5.206.591.591 0 0 1-.39-.121 1.746 1.746 0 0 1-.14-.111 4.395 4.395 0 0 1-.157-.158 20.642 20.642 0 0 0-.136-.14.714.714 0 0 0-.037 1.037l1.515 1.522a.678.678 0 0 0 .5.198.708.708 0 0 0 .5-.19l1.08-1.074a.672.672 0 0 0 .206-.493Z",clipRule:"evenodd"})]}),n=s},83218:function(i,o,t){"use strict";t.d(o,{Z:function(){return n}});var e=t(74512);const s=r=>(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...r,children:[(0,e.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#EAFBE7",stroke:"#C6F0C2",rx:2.5}),(0,e.jsx)("path",{fill:"#328048",d:"M8.62 16h1.857l.627-2.05h2.982l.627 2.05h1.863l-2.941-8.455h-2.08L8.619 16Zm3.925-6.768h.105l1.032 3.393h-2.174l1.037-3.393ZM21.65 16.1c1.612 0 2.62-1.26 2.62-3.323v-.011c0-2.075-.985-3.323-2.62-3.323-.884 0-1.605.434-1.933 1.137h-.106V7.082h-1.71V16h1.71v-1.002h.106c.334.697 1.02 1.102 1.933 1.102Zm-.585-1.418c-.903 0-1.471-.715-1.471-1.899v-.011c0-1.184.574-1.91 1.47-1.91.903 0 1.465.726 1.465 1.904v.011c0 1.19-.556 1.905-1.465 1.905Z"})]}),n=s},17757:function(i,o,t){"use strict";t.d(o,{Z:function(){return n}});var e=t(74512);const s=r=>(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...r,children:[(0,e.jsx)("path",{fill:"#F0F0FF",stroke:"#D9D8FF",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,e.jsx)("path",{fill:"#4945FF",d:"M14.907 9.438c0 .375 0 .738.118 1.078-1.243 1.46-4.526 5.317-4.832 5.611a.582.582 0 0 0-.193.433c0 .245.15.481.277.614.19.2 1.004.952 1.154.808.444-.433.533-.548.715-.727.274-.268-.029-.816.066-1.039.096-.222.197-.265.361-.3.165-.034.456.084.684.087.24.003.369-.098.548-.265.144-.133.248-.257.25-.45.007-.26-.368-.603-.089-.877.28-.274.684.178.981.144.297-.035.658-.447.695-.623.038-.176-.337-.629-.28-.886.02-.086.197-.288.33-.317.132-.029.72.199.853.17.162-.034.35-.205.502-.3.447.193.854.271 1.376.271C20.4 12.87 22 11.33 22 9.432 22 7.534 20.399 6 18.423 6s-3.516 1.54-3.516 3.438Zm5.247-.669a.923.923 0 1 1-1.847 0 .923.923 0 0 1 1.847 0Z"})]}),n=s}}]);
|
|
@@ -1,71 +0,0 @@
|
|
|
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
|
-
|
|
4
|
-
&:hover:not([aria-disabled='true']) {
|
|
5
|
-
border: 1px solid ${({theme:M})=>M.colors.primary600};
|
|
6
|
-
|
|
7
|
-
${x} {
|
|
8
|
-
color: ${({theme:M,expanded:g})=>g?void 0:M.colors.primary700};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
${s.Z} {
|
|
12
|
-
color: ${({theme:M,expanded:g})=>g?void 0:M.colors.primary600};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
& > ${c.k} {
|
|
16
|
-
background: ${({theme:M})=>M.colors.primary100};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
[data-strapi-dropdown='true'] {
|
|
20
|
-
background: ${({theme:M})=>M.colors.primary200};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
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
|
-
text-align: left;
|
|
25
|
-
|
|
26
|
-
// necessary to make the ellipsis prop work on the title
|
|
27
|
-
> span {
|
|
28
|
-
max-width: 100%;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
svg {
|
|
32
|
-
width: ${14/16}rem;
|
|
33
|
-
height: ${14/16}rem;
|
|
34
|
-
|
|
35
|
-
path {
|
|
36
|
-
fill: ${({theme:g,expanded:d})=>d?g.colors.primary600:g.colors.neutral500};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
`,E=(0,e.ZP)(p.k)`
|
|
40
|
-
min-height: ${({theme:g,size:d})=>g.sizes.accordions[d]};
|
|
41
|
-
border-radius: ${({theme:g,expanded:d})=>d?`${g.borderRadius} ${g.borderRadius} 0 0`:g.borderRadius};
|
|
42
|
-
|
|
43
|
-
&:hover {
|
|
44
|
-
svg {
|
|
45
|
-
path {
|
|
46
|
-
fill: ${({theme:g})=>g.colors.primary600};
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
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
|
-
& > * + * {
|
|
52
|
-
margin-left: ${({theme:x})=>x.spaces[2]};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
margin-left: ${({pullRight:x})=>x?"auto":void 0};
|
|
56
|
-
`,l=(0,r.ZP)(c)`
|
|
57
|
-
flex-shrink: 0;
|
|
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
|
-
width: ${d=>d.width}px;
|
|
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:_,...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
|
-
display: grid;
|
|
63
|
-
grid-template-columns: ${({hasSideNav:p})=>p?"auto 1fr":"1fr"};
|
|
64
|
-
`,c=(0,r.ZP)(o.x)`
|
|
65
|
-
overflow-x: hidden;
|
|
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
|
-
// To prevent global outline on focus visible to force an outline when Main is focused
|
|
68
|
-
&:focus-visible {
|
|
69
|
-
outline: none;
|
|
70
|
-
}
|
|
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}}]);
|
|
@@ -1,155 +0,0 @@
|
|
|
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(42345),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 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[6970],{55433:function(F,T,e){e.d(T,{r:function(){return v}});var d=e(32735),y=e(60216),h=e.n(y),M=e(74506),A=e(72850);function R(g,D,f){if(!g||!D)return{display:"none"};const{x:p,y:P}=f;return{transform:`translate(${p}px, ${P}px)`}}function v({renderItem:g}){const{itemType:D,isDragging:f,item:p,initialOffset:P,currentOffset:b,mouseOffset:U}=(0,M.useDragLayer)(I=>({item:I.getItem(),itemType:I.getItemType(),initialOffset:I.getInitialSourceClientOffset(),currentOffset:I.getSourceClientOffset(),isDragging:I.isDragging(),mouseOffset:I.getClientOffset()}));return f?d.createElement(A.x,{height:"100%",left:0,position:"fixed",pointerEvents:"none",top:0,zIndex:100,width:"100%"},d.createElement(A.x,{style:R(P,b,U)},g({type:D,item:p}))):null}v.propTypes={renderItem:h().func.isRequired}},73386:function(F,T,e){var d=e(32735);const y=(0,d.createContext)();var h=null},56327:function(F,T,e){e.d(T,{PL:function(){return A},Y9:function(){return o.Y},zE:function(){return X},Ky:function(){return le},fi:function(){return Y},zH:function(){return u},r5:function(){return fe}});var d=e(32735),y=e(15062),h=e(70031),A=()=>{const r=(0,y.v9)(h.Z),t=(0,d.useCallback)(n=>r?.components?.[n]??{},[r]);return{...r,getComponentLayout:t}},R=e(84306),v=e(24989),g=e(99381),D=e.n(g),f=e(33795),p=e.n(f),P=e(3040),b=e.n(P),U=e(51375);const I=(r,t)=>t.find(n=>n.uid===r),j=(r,t)=>{const n=K(r,t),a=V(n.contentType,t),l=J(n.contentType,n.components);return b()(n,["contentType","layouts","edit"],a),b()(n,["contentType","layouts","list"],l),Object.keys(n.components).forEach(i=>{const E=V(n.components[i],t);b()(n,["components",i,"layouts","edit"],E)}),n},K=(r,t)=>{const n=(0,U.w8)(D()(r),t,"contentType"),{components:a,contentType:l}=n,i=E=>Object.keys(E.metadatas).reduce((L,k)=>{const S=p()(E,["attributes",k],{});let W=E.metadatas[k];if(S.type==="relation"){const me=I(S.targetModel,t),N=W.edit.mainField,$={name:N,schema:p()(me,["attributes",N])};W={list:{...W.list,mainField:$},edit:{...W.edit,mainField:$}}}return L[k]=W,L},{});return b()(n,["contentType","metadatas"],i(l)),Object.keys(a).forEach(E=>{const L=a[E],k=i(L);b()(n,["components",E,"metadatas"],k)}),n},V=(r,t)=>r.layouts.edit.reduce((n,a)=>{const l=a.map(i=>{const E=p()(r,["attributes",i.name],{}),L={...i,fieldSchema:E,metadatas:p()(r,["metadatas",i.name,"edit"],{})};if(E.type==="relation"){const S=I(E.targetModel,t).pluginOptions||{};b()(L,"targetModelPluginOptions",S),b()(L,"queryInfos",{shouldDisplayRelationLink:ne(r,i.name,t)})}return L});return n.push(l),n},[]),J=(r,t)=>r.layouts.list.reduce((a,l)=>{const i=p()(r,["attributes",l],{}),E=p()(r,["metadatas",l,"list"],{}),L=i.type;if(L==="relation")return a.push({key:`__${l}_key__`,name:l,fieldSchema:i,metadatas:E}),a;if(L==="component"){const k=t[i.component],S=k.settings.mainField,W=k.attributes[S];return a.push({key:`__${l}_key__`,name:l,fieldSchema:i,metadatas:{...E,mainField:{...W,name:S}}}),a}return a.push({key:`__${l}_key__`,name:l,fieldSchema:i,metadatas:E}),a},[]),ne=(r,t,n)=>{const a=p()(r,["attributes",t,"targetModel"],"");return _(n).includes(a)},_=r=>r.filter(t=>t.isDisplayed).map(({uid:t})=>t);var Q=j,z=e(97889);const x={error:null,isLoading:!0,layout:{},layouts:{}};var G=(r,t)=>(0,z.ZP)(r,n=>{switch(t.type){case"GET_DATA":{n.isLoading=!0,n.error=null,n.layout={};break}case"GET_DATA_SUCCEEDED":{const a=t.data.contentType.uid;n.layout=t.data,n.layouts[a]=t.data,n.isLoading=!1;break}case"GET_DATA_ERROR":{n.isLoading=!1,n.error=t.error;break}case"SET_LAYOUT_FROM_STATE":{n.error=null,n.layout=r.layouts[t.uid];break}case"UPDATE_LAYOUT":{const a=r.layout;n.layout={...a,contentType:{uid:a.contentType.uid,...t.newLayout.contentType}},n.layouts[a.contentType.uid]={...a,contentType:{uid:a.contentType.uid,...t.newLayout.contentType}};break}default:return n}}),B=e(42882),X=r=>{const[{error:t,isLoading:n,layout:a,layouts:l},i]=(0,d.useReducer)(G,x),E=(0,d.useMemo)(B.Vo,[]),{schemas:L}=(0,y.v9)(N=>E(N),y.wU),k=(0,d.useRef)(!0),{get:S}=(0,v.kY)(),W=(0,d.useCallback)(async(N,$)=>{if(l[N]){i({type:"SET_LAYOUT_FROM_STATE",uid:N});return}i({type:"GET_DATA"});try{const{data:{data:te}}=await S(`/content-manager/content-types/${N}/configuration`,{cancelToken:$.token});i({type:"GET_DATA_SUCCEEDED",data:Q(te,L)})}catch(te){if(R.default.isCancel(te))return;k.current&&console.error(te),k.current&&i({type:"GET_DATA_ERROR",error:te})}},[l,L,S]);(0,d.useEffect)(()=>()=>{k.current=!1},[]),(0,d.useEffect)(()=>{const $=R.default.CancelToken.source();return W(r,$),()=>{$.cancel("Operation canceled by the user.")}},[r,W]);const me=(0,d.useCallback)(N=>{i({type:"UPDATE_LAYOUT",newLayout:Q(N,L)})},[L]);return{error:t,isLoading:n,layout:a,updateLayout:me}},H=r=>r["content-manager_app"].collectionTypeLinks,Z=e(33348),se=e(85973),ye=e.n(se);const oe=(r,t)=>Object.keys(r).reduce((n,a)=>{const l=r[a],i=p()(t,[a],l);return ye()(l)?{...n,[a]:oe(l,i)}:(n[a]=i,n)},{});var ge=(r,t,n)=>{const a=r.find(({to:W})=>W.includes(t));if(!a)return"/";const{to:l,search:i}=a,E=(0,Z.parse)(i),L=(0,Z.parse)(n.substring(1)),k=oe(E,L);return`${l}?${(0,Z.stringify)(k,{encode:!1})}`},le=r=>{const[{rawQuery:t}]=(0,v.Kx)(),n=(0,y.v9)(H);return ge(n,r,t)},ce=e(53038),Y=()=>{const{search:r}=(0,ce.TH)(),t=r?(0,Z.parse)(r.substring(1)):{};return t.plugins?(0,Z.stringify)({plugins:t.plugins},{encode:!1}):""},ae=e(89334);const w=(r,t,n)=>({type:ae.m,permissions:r,__meta__:{plugins:t,containerName:n}}),C=()=>({type:ae.Q}),ee=r=>r["content-manager_rbacManager"].permissions,de=r=>r.rbacProvider.collectionTypesRelatedPermissions;var fe=(r,t,n="listView")=>{const a=(0,y.v9)(de),l=(0,y.v9)(ee),i=(0,y.I0)(),E=a[t];return(0,d.useEffect)(()=>E?(i(w(E,r?r.plugins:null,n)),()=>{i(C())}):()=>{},[E,i,r,n]),l},Te=e(73386);const s=()=>useContext(WysiwygContext);var c=null;const u=r=>{const t=(0,d.useRef)();return(0,d.useEffect)(()=>{t.current=r},[r]),t.current};var o=e(90553),m=e(18777)},90553:function(F,T,e){e.d(T,{Y:function(){return A}});var d=e(32735),y=e(74506),h=e.n(y),M=e(18777);const A=(R,{type:v="STRAPI_DND",index:g,item:D={},onStart:f,onEnd:p,onGrabItem:P,onDropItem:b,onCancel:U,onMoveItem:I,dropSensitivity:j="regular"})=>{const K=(0,d.useRef)(null),[{handlerId:V},J]=(0,y.useDrop)({accept:v,collect(x){return{handlerId:x.getHandlerId()}},hover(x,re){if(!K.current)return;const G=x.index,B=g;if(G!==B){if(j==="regular"){const q=K.current.getBoundingClientRect(),X=(q.bottom-q.top)/2,H=re.getClientOffset().y-q.top;if(G<B&&H<X||G>B&&H>X)return}I(B,G),x.index=B}}}),[{isDragging:ne},_,Q]=(0,y.useDrag)({type:v,item(){f&&f();const{width:x}=K.current?.getBoundingClientRect()??{};return{index:g,width:x,...D}},end(){p&&p()},canDrag:R,isDragging:D.id?x=>D.id===x.getItem().id:void 0,collect:x=>({isDragging:x.isDragging()})}),z=(0,M.A)(R,g,{onGrabItem:P,onDropItem:b,onCancel:U,onMoveItem:I});return[{handlerId:V,isDragging:ne,handleKeyDown:z},K,J,_,Q]}},18777:function(F,T,e){e.d(T,{A:function(){return y}});var d=e(32735);const y=(h,M,{onCancel:A,onDropItem:R,onGrabItem:v,onMoveItem:g})=>{const[D,f]=(0,d.useState)(!1),p=I=>{D&&(I==="UP"?g(M-1,M):I==="DOWN"&&g(M+1,M))},P=()=>{D?(R&&R(M),f(!1)):(v&&v(M),f(!0))},b=()=>{D&&(f(!1),A&&A(M))};return I=>{if(h&&!(I.key==="Tab"&&!D))switch(I.preventDefault(),I.key){case" ":case"Enter":P();break;case"Escape":b();break;case"ArrowDown":case"ArrowRight":p("DOWN");break;case"ArrowUp":case"ArrowLeft":p("UP");break;default:}}}},42882:function(F,T,e){e.d(T,{Jg:function(){return g},KQ:function(){return R},Vo:function(){return v},Yg:function(){return h}});var d=e(98178),y=e(34947);const h=()=>f=>f["content-manager_app"]||y.E,M=()=>createSelector(h(),f=>f),A=()=>createSelector(h(),f=>f.models),R=()=>(0,d.P1)(h(),f=>({collectionTypeLinks:f.collectionTypeLinks,singleTypeLinks:f.singleTypeLinks})),v=()=>(0,d.P1)(h(),({components:f,models:p})=>({schemas:[...f,...p]})),g=(0,d.P1)(h(),f=>f.fieldSizes);var D=null},70031:function(F,T){const e=d=>d["content-manager_editViewLayoutManager"].currentLayout;T.Z=e},25708:function(F,T){T.Z={COMPONENT:"component",EDIT_FIELD:"editField",FIELD:"field",DYNAMIC_ZONE:"dynamicZone",RELATION:"relation"}},47510:function(F,T){const e=d=>`content-manager.${d}`;T.Z=e},51375:function(F,T,e){e.d(T,{_Q:function(){return H.Z},W3:function(){return M},ko:function(){return g},FE:function(){return f},Di:function(){return U},Ex:function(){return Te},du:function(){return V},TA:function(){return _},Ts:function(){return re},Uo:function(){return B},IF:function(){return X},OB:function(){return ue.Z},w8:function(){return oe},kc:function(){return pe}});var d=e(99381),y=e.n(d),M=(s,c,u)=>{if(Array.isArray(s)&&c>=0&&u>=0&&c<=s.length-1&&u<=s.length-1){const o=y()(s),m=o.splice(c,1);return o.splice(u,0,m[0]),o}return s},A=e(59578),R=e.n(A),g=s=>{const c=s.type;return c==="relation"?!R()(s.relationType).includes("morph"):!["json","dynamiczone","richtext","password"].includes(c)&&!!c};const D=(s,c)=>{typeof s=="function"?s(c):s!=null&&(s.current=c)},f=(...s)=>c=>s.forEach(u=>D(u,c));var p=e(33795),P=e.n(p);const b=(s,c)=>Object.keys(s).reduce((u,o)=>{const m=P()(s,[o],{}),{default:r,component:t,type:n,required:a,min:l,repeatable:i}=m;if(r!==void 0&&(u[o]=r),n==="component"){const E=c?.[t]?.attributes??{},L=b(E,c);if(a===!0&&(u[o]=i===!0?[]:L),l&&i===!0&&a){u[o]=[];for(let k=0;k<l;k+=1)u[o].push(L)}}return n==="dynamiczone"&&a===!0&&(u[o]=[]),u},{});var U=b,I=e(9086),j=e.n(I),V=({layouts:s,metadatas:c,...u})=>{const o=s.list.map(t=>t.name?t.name:t),m=Object.keys(c).reduce((t,n)=>{const a=P()(c,[n],{});let l=a.edit;return l.mainField&&(l={...l,mainField:a.edit.mainField.name}),{...t,[n]:{edit:l,list:j()(a.list,["mainField"])}}},{}),r=s.edit.map(t=>t.map(({name:n,size:a})=>({name:n,size:a})));return{...u,layouts:{edit:r,list:o},metadatas:m}};const J=(s,c)=>s.map(u=>({...u,subject:c}));var _=s=>{const c={create:[{action:"plugin::content-manager.explorer.create",subject:null}],delete:[{action:"plugin::content-manager.explorer.delete",subject:null}],publish:[{action:"plugin::content-manager.explorer.publish",subject:null}],read:[{action:"plugin::content-manager.explorer.read",subject:null}],update:[{action:"plugin::content-manager.explorer.update",subject:null}]};return Object.keys(c).reduce((u,o)=>(u[o]=J(c[o],s),u),{})},Q=e(95919),z=e.n(Q),re=s=>s.split(".").filter(c=>z()(parseInt(c,10))),B=s=>{if(s.length===0)return-1;const c=Math.max.apply(Math,s.map(u=>u.__temp_key__??0));return Number.isNaN(c)?-1:c},X=s=>`/content-manager/${s}`,ue=e(47510),H=e(25708),Z=e(3040),se=e.n(Z),oe=(s,c,u)=>{const o=n=>c.find(a=>a.uid===n),m=Object.assign({},s),r=s[u].uid,t=o(r);return se()(m,[u],{...s[u],...t}),Object.keys(s.components).forEach(n=>{const a=o(n);se()(m,["components",n],{...s.components[n],...a})}),m},O=e(24989),pe=(s,c,u)=>{const o=(m,r)=>Object.keys(m).reduce((t,n)=>{const a=(0,O.UN)(r,n),l=P()(m,n),i=(0,O.k2)(r,[n,"component"]),E=(0,O.k2)(r,[n,"repeatable"]);return a==="dynamiczone"?(t[n]=l.map(L=>o(L,u[L.__component])),t):a==="component"?(E?t[n]=l&&l.map(L=>o(L,u[i])):t[n]=l&&o(l,u[i]),t):(a!=="password"&&(t[n]=l),t)},{});return o(s,c)},le=e(51355),ce=e.n(le),Ee=e(86834),Y=e.n(Ee),ae=e(78746),w=e.n(ae),C=e(24346),ee=e(82293);C.kM(C.nK,"defined",function(){return this.test("defined",O.I0.required,s=>s!==void 0)}),C.kM(C.IX,"notEmptyMin",function(s){return this.test("notEmptyMin",O.I0.min,c=>Y()(c)?!0:c.length>=s)}),C.kM(C.Z_,"isInferior",function(s,c){return this.test("isInferior",s,function(u){return!u||Number.isNaN(w()(u))?!0:w()(c)>=w()(u)})}),C.kM(C.Z_,"isSuperior",function(s,c){return this.test("isSuperior",s,function(u){return!u||Number.isNaN(w()(u))?!0:w()(u)>=w()(c)})});const de=s=>P()(s,["attributes"],{}),ie=(s,{components:c},u={isCreatingEntry:!0,isDraft:!0,isFromComponent:!1})=>{const o=de(s);return C.Ry().shape(Object.keys(o).reduce((m,r)=>{const t=o[r];if(t.type!=="relation"&&t.type!=="component"&&t.type!=="dynamiczone"){const n=fe(t.type,t,u);m[r]=n}if(t.type==="relation"&&(m[r]=["oneWay","oneToOne","manyToOne","oneToManyMorph","oneToOneMorph"].includes(t.relationType)?C.Ry().nullable():C.IX().nullable()),t.type==="component"){const n=ie(c[t.component],{components:c},{...u,isFromComponent:!0});if(t.repeatable===!0){const{min:l,max:i,required:E}=t;let L=C.Vo(k=>{let S=C.IX().of(n);return l?E?S=S.min(l,O.I0.min):E!==!0&&Y()(k)?S=S.nullable():S=S.min(l,O.I0.min):E&&!u.isDraft&&(S=S.min(1,O.I0.required)),i&&(S=S.max(i,O.I0.max)),S});return m[r]=L,m}const a=C.Vo(l=>l!==void 0?t.required===!0&&!u.isDraft?n.defined():n.nullable():t.required===!0?C.Ry().defined():C.Ry().nullable());return m[r]=a,m}if(t.type==="dynamiczone"){let n=C.IX().of(C.Vo(({__component:i})=>ie(c[i],{components:c},{...u,isFromComponent:!0})));const{max:a,min:l}=t;l?t.required?n=n.test("min",O.I0.min,i=>u.isCreatingEntry?i&&i.length>=l:i===void 0?!0:i!==null&&i.length>=l).test("required",O.I0.required,i=>u.isCreatingEntry?i!==null||i!==void 0:i===void 0?!0:i!==null):n=n.notEmptyMin(l):t.required&&!u.isDraft&&(n=n.test("required",O.I0.required,i=>u.isCreatingEntry?i!==null||i!==void 0:i===void 0?!0:i!==null)),a&&(n=n.max(a,O.I0.max)),m[r]=n}return m},{}))},fe=(s,c,u)=>{let o=C.nK();return["string","uid","text","richtext","email","password","enumeration"].includes(s)&&(o=C.Z_()),s==="json"&&(o=C.nK(O.I0.json).test("isJSON",O.I0.json,m=>{if(!m||!m.length)return!0;try{return JSON.parse(m),!0}catch{return!1}}).nullable().test("required",O.I0.required,m=>!(c.required&&(!m||!m.length)))),s==="email"&&(o=o.email(O.I0.email)),["number","integer","float","decimal"].includes(s)&&(o=C.Rx().transform(m=>z()(m)?void 0:m).typeError()),s==="biginteger"&&(o=C.Z_().matches(/^-?\d*$/)),["date","datetime"].includes(s)&&(o=C.hT()),Object.keys(c).forEach(m=>{const r=c[m];if(r||!ce()(r)&&Number.isInteger(Math.floor(r))||r===0)switch(m){case"required":{u.isDraft||(s==="password"&&u.isCreatingEntry&&(o=o.required(O.I0.required)),s!=="password"&&(u.isCreatingEntry?o=o.required(O.I0.required):o=o.test("required",O.I0.required,t=>t===void 0&&!u.isFromComponent?!0:(0,ee.Z)(s)?t===0?!0:!!t:s==="boolean"?t!=null:s==="date"||s==="datetime"?typeof t=="string"?!Y()(t):!Y()(t?.toString()):!Y()(t))));break}case"max":{s==="biginteger"?o=o.isInferior(O.I0.max,r):o=o.max(r,O.I0.max);break}case"maxLength":o=o.max(r,O.I0.maxLength);break;case"min":{s==="biginteger"?o=o.isSuperior(O.I0.min,r):o=o.min(r,O.I0.min);break}case"minLength":{u.isDraft||(o=o.min(r,O.I0.minLength));break}case"regex":o=o.matches(new RegExp(r),{message:O.I0.regex,excludeEmptyString:!c.required});break;case"lowercase":["text","textarea","email","string"].includes(s)&&(o=o.strict().lowercase());break;case"uppercase":["text","textarea","email","string"].includes(s)&&(o=o.strict().uppercase());break;case"positive":(0,ee.Z)(s)&&(o=o.positive());break;case"negative":(0,ee.Z)(s)&&(o=o.negative());break;default:o=o.nullable()}}),o};var Te=ie},82293:function(F,T,e){e.d(T,{Z:function(){return d}});function d(y){return["integer","biginteger","decimal","float","number"].includes(y)}},28315:function(F,T,e){e.d(T,{K:function(){return g}});var d=e(32735),y=e(60216),h=e.n(y),M=e(67582),A=e(87933),R=e(49372),v=e(54504);function g({children:D,...f}){const{color:p}=f.data,{themeColorName:P}=(0,v.k)(p);return d.createElement(M.c.Option,{...f},d.createElement(A.k,{alignItems:"center",gap:2},d.createElement(A.k,{height:2,background:p,borderColor:P==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2}),d.createElement(R.Z,{textColor:"neutral800",ellipsis:!0},D)))}g.propTypes={children:h().node.isRequired,data:h().shape({color:h().string}).isRequired}},8445:function(F,T,e){e.d(T,{R:function(){return g}});var d=e(32735),y=e(60216),h=e.n(y),M=e(67582),A=e(87933),R=e(49372),v=e(54504);function g({children:D,...f}){const{color:p}=f.data,{themeColorName:P}=p?(0,v.k)(p):{};return d.createElement(M.c.SingleValue,{...f},d.createElement(A.k,{alignItems:"center",gap:2},d.createElement(A.k,{height:2,background:p,borderColor:P==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2}),d.createElement(R.Z,{textColor:"neutral800",ellipsis:!0},D)))}g.defaultProps={children:null},g.propTypes={children:h().node,data:h().shape({color:h().string}).isRequired}},61937:function(F,T,e){e.d(T,{$k:function(){return v},FT:function(){return D},Nj:function(){return R},Ot:function(){return A},QM:function(){return h},lv:function(){return g},sN:function(){return y},uL:function(){return f},x4:function(){return M}});var d=e(12301);const y="settings_review-workflows",h="Settings/Review_Workflows/SET_WORKFLOWS",M="Settings/Review_Workflows/WORKFLOW_DELETE_STAGE",A="Settings/Review_Workflows/WORKFLOW_ADD_STAGE",R="Settings/Review_Workflows/WORKFLOW_UPDATE_STAGE",v="Settings/Review_Workflows/WORKFLOW_UPDATE_STAGE_POSITION",g={primary600:"Blue",primary200:"Lilac",alternative600:"Violet",alternative200:"Lavender",success600:"Green",success200:"Pale Green",danger500:"Cherry",danger200:"Pink",warning600:"Orange",warning200:"Yellow",secondary600:"Teal",secondary200:"Baby Blue",neutral400:"Gray",neutral0:"White"},D=d.W.colors.primary600,f={STAGE:"stage"}},67350:function(F,T,e){e.d(T,{n:function(){return A}});var d=e(20108),y=e(24989),h=e(33348),M=e.n(h);function A(R={}){const{id:v="",...g}=R,D={populate:"stages"},{get:f}=(0,y.kY)(),p=(0,h.stringify)({...D,...g},{encode:!1}),{data:P,isLoading:b,status:U,refetch:I}=(0,d.useQuery)(["review-workflows","workflows",v],async()=>{try{const{data:{data:K}}=await f(`/admin/review-workflows/workflows/${v}${p?`?${p}`:""}`);return K}catch{return null}});let j=[];return v&&P?j=[P]:Array.isArray(P)&&(j=P),{workflows:j,isLoading:b,status:U,refetch:I}}},54504:function(F,T,e){e.d(T,{k:function(){return h},s:function(){return M}});var d=e(12301),y=e(61937);function h(A){if(!A)return null;const v=Object.entries(d.W.colors).filter(([,g])=>g.toUpperCase()===A.toUpperCase()).reduce((g,[D])=>(y.lv?.[D]&&(g=D),g),null);return v?{themeColorName:v,name:y.lv[v]}:null}function M(){return Object.entries(y.lv).map(([A,R])=>({hex:d.W.colors[A].toUpperCase(),name:R}))}}}]);
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[5516],{75536:function(V,b,n){var e=n(32735);const P=(y,o)=>{const[S,D]=(0,e.useState)(y);return(0,e.useEffect)(()=>{const O=setTimeout(()=>{D(y)},o);return()=>{clearTimeout(O)}},[y,o]),S};b.Z=P},77571:function(V,b,n){n.r(b),n.d(b,{MarketPlacePage:function(){return Pe},default:function(){return bt}});var e=n(32735),P=n(67879),y=n(74758),o=n(24989),S=n(96709),D=n(27649),O=n(17e3),L=n(91215),f=n(87933),B=n(90980),v=n(72850),ke=n(61774),z=n(3653),_=n(60216),t=n.n(_),be=n(82055),ee=n(95489),T=n(74512);const Re=a=>(0,T.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 25",...a,children:(0,T.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M13.571 18.272H10.43v-8.47H2.487a.2.2 0 0 1-.14-.343L11.858.058a.2.2 0 0 1 .282 0l9.513 9.4a.2.2 0 0 1-.14.343H13.57v8.47ZM2.2 21.095a.2.2 0 0 0-.2.2v2.424c0 .11.09.2.2.2h19.6a.2.2 0 0 0 .2-.2v-2.424a.2.2 0 0 0-.2-.2H2.2Z",clipRule:"evenodd"})}),Ce=Re,U=({isOnline:a,npmPackageType:s})=>{const{formatMessage:r}=(0,P.Z)(),{trackUsage:l}=(0,o.rS)(),i=s==="provider"?"didSubmitProvider":"didSubmitPlugin";return e.createElement(be.T,{title:r({id:"global.marketplace",defaultMessage:"Marketplace"}),subtitle:r({id:"admin.pages.MarketPlacePage.subtitle",defaultMessage:"Get more out of Strapi"}),primaryAction:a&&e.createElement(ee.Q,{startIcon:e.createElement(Ce,null),variant:"tertiary",href:`https://market.strapi.io/submit-${s}`,onClick:()=>l(i),isExternal:!0},r({id:`admin.pages.MarketPlacePage.submit.${s}.link`,defaultMessage:`Submit ${s}`}))})};var te=U;U.defaultProps={npmPackageType:"plugin"},U.propTypes={isOnline:t().bool.isRequired,npmPackageType:t().string};var xe=n(83983),Se=()=>{const a=typeof navigator<"u"&&typeof navigator.onLine=="boolean"?navigator.onLine:!0,[s,r]=(0,e.useState)(a),l=()=>r(!0),i=()=>r(!1);return(0,e.useEffect)(()=>(window.addEventListener("online",l),window.addEventListener("offline",i),()=>{window.removeEventListener("online",l),window.removeEventListener("offline",i)}),[]),s};const Te=a=>(0,T.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 32",...a,children:[(0,T.jsx)("path",{fill:"#AC73E6",d:"M0 4a4 4 0 0 1 4-4h24a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4Z"}),(0,T.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M15.027 13.839c-3.19-.836-6.305-1.064-10.18-.608-1.215.152-1.063 1.975.076 2.203.304.836.456 2.355.912 3.267.987 2.279 5.622 1.975 7.369.835 1.14-.683 1.443-2.279 1.9-3.494.227-.684 1.595-.684 1.822 0 .38 1.215.76 2.81 1.9 3.494 1.747 1.14 6.381 1.444 7.369-.835.456-.912.607-2.431.911-3.267 1.14-.228 1.216-2.051.076-2.203-3.874-.456-6.989-.228-10.18.608-.455.075-1.519.075-1.975 0Z",clipRule:"evenodd"})]}),Ze=Te;var ae=n(47361),Z=n(99140),we=()=>{const{formatMessage:a}=(0,P.Z)(),{trackUsage:s}=(0,o.rS)();return e.createElement("a",{href:"https://strapi.canny.io/plugin-requests",target:"_blank",rel:"noopener noreferrer nofollow",style:{textDecoration:"none"},onClick:()=>s("didMissMarketplacePlugin")},e.createElement(o.Y_,{title:a({id:"admin.pages.MarketPlacePage.missingPlugin.title",defaultMessage:"Documentation"}),subtitle:a({id:"admin.pages.MarketPlacePage.missingPlugin.description",defaultMessage:"Tell us what plugin you are looking for and we'll let our community plugin developers know in case they are in search for inspiration!"}),icon:e.createElement(Ze,null),iconBackground:"alternative100",endAction:e.createElement(Z.J,{as:ae.Z,color:"neutral600",width:3,height:3,marginLeft:2})}))},De=n(23866),Ne=n(15335),Oe=n(5803),w=n(8471),Le=n(24443),Be=n.n(Le),R=n(49372),H=n(63919),Ie=n(38705),je=n(47750),$e=n(66456),Ae=n(54770),ne=n.n(Ae),Q=n(41415),se=n(47765);const I=({description:a,installMessage:s,disabled:r,handleCopy:l,pluginName:i})=>e.createElement(H.u,{"data-testid":`tooltip-${i}`,description:a},e.createElement(v.x,null,e.createElement(Q.z,{size:"S",startIcon:e.createElement(se.Z,null),variant:"secondary",disabled:r,onClick:l},s))),G=({strapiPeerDepVersion:a,strapiAppVersion:s,handleCopy:r,pluginName:l})=>{const{formatMessage:i}=(0,P.Z)(),g=ne().validRange(a),c=ne().satisfies(s,g),d=i({id:"admin.pages.MarketPlacePage.plugin.copy",defaultMessage:"Copy install command"});if(s){if(!g)return e.createElement(I,{installMessage:d,pluginName:l,description:i({id:"admin.pages.MarketPlacePage.plugin.version.null",defaultMessage:'Unable to verify compatibility with your Strapi version: "{strapiAppVersion}"'},{strapiAppVersion:s}),handleCopy:r});if(!c)return e.createElement(I,{installMessage:d,pluginName:l,description:i({id:"admin.pages.MarketPlacePage.plugin.version",defaultMessage:'Update your Strapi version: "{strapiAppVersion}" to: "{versionRange}"'},{strapiAppVersion:s,versionRange:g}),disabled:!0})}return e.createElement(Q.z,{size:"S",startIcon:e.createElement(se.Z,null),variant:"secondary",onClick:r},d)};I.defaultProps={disabled:!1,handleCopy:null},I.propTypes={description:t().string.isRequired,installMessage:t().string.isRequired,disabled:t().bool,handleCopy:t().func,pluginName:t().string.isRequired},G.defaultProps={strapiAppVersion:null,strapiPeerDepVersion:null},G.propTypes={strapiAppVersion:t().string,strapiPeerDepVersion:t().string,handleCopy:t().func.isRequired,pluginName:t().string.isRequired};var Fe=G;const W=({isInstalled:a,isInDevelopmentMode:s,commandToCopy:r,strapiAppVersion:l,strapiPeerDepVersion:i,pluginName:g})=>{const c=(0,o.lm)(),{formatMessage:d}=(0,P.Z)(),{trackUsage:u}=(0,o.rS)(),{copy:m}=(0,o.VP)(),h=async()=>{await m(r)&&(u("willInstallPlugin"),c({type:"success",message:{id:"admin.pages.MarketPlacePage.plugin.copy.success"}}))};return a?e.createElement(v.x,{paddingLeft:4},e.createElement(Z.J,{as:$e.Z,marginRight:2,width:12,height:12,color:"success600"}),e.createElement(R.Z,{variant:"omega",textColor:"success600",fontWeight:"bold"},d({id:"admin.pages.MarketPlacePage.plugin.installed",defaultMessage:"Installed"}))):s?e.createElement(Fe,{strapiAppVersion:l,strapiPeerDepVersion:i,handleCopy:h,pluginName:g}):null};W.defaultProps={strapiAppVersion:null,strapiPeerDepVersion:null},W.propTypes={isInstalled:t().bool.isRequired,isInDevelopmentMode:t().bool.isRequired,commandToCopy:t().string.isRequired,strapiAppVersion:t().string,strapiPeerDepVersion:t().string,pluginName:t().string.isRequired};var Ve=W,ze=n(9026),Ue=n(33904);const He=a=>(0,T.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,T.jsx)("path",{fill:"#212134",d:"m12 18.26-7.053 3.948 1.575-7.928L.587 8.792l8.027-.952L12 .5l3.386 7.34 8.027.952-5.935 5.488 1.575 7.928L12 18.26Z"})}),Qe=He;var Ge=n(33844);const We=(0,w.ZP)(ze.i)`
|
|
2
|
-
width: ${(0,o.Q1)(12)};
|
|
3
|
-
transform: rotate(90deg);
|
|
4
|
-
`,K=({githubStars:a,npmDownloads:s,npmPackageType:r})=>{const{formatMessage:l}=(0,P.Z)();return e.createElement(f.k,{gap:1},!!a&&e.createElement(e.Fragment,null,e.createElement(Z.J,{as:Ue.Z,height:(0,o.Q1)(12),width:(0,o.Q1)(12),"aria-hidden":!0}),e.createElement(Z.J,{as:Qe,height:(0,o.Q1)(12),width:(0,o.Q1)(12),color:"warning500","aria-hidden":!0}),e.createElement("p",{"aria-label":l({id:`admin.pages.MarketPlacePage.${r}.githubStars`,defaultMessage:"This {package} was starred {starsCount} on GitHub"},{starsCount:a,package:r})},e.createElement(R.Z,{variant:"pi",textColor:"neutral800",lineHeight:16},a)),e.createElement(We,{unsetMargin:!1,background:"neutral200"})),e.createElement(Z.J,{as:Ge.Z,height:(0,o.Q1)(12),width:(0,o.Q1)(12),"aria-hidden":!0}),e.createElement("p",{"aria-label":l({id:`admin.pages.MarketPlacePage.${r}.downloads`,defaultMessage:"This {package} has {downloadsCount} weekly downloads"},{downloadsCount:s,package:r})},e.createElement(R.Z,{variant:"pi",textColor:"neutral800",lineHeight:16},s)))};K.defaultProps={githubStars:0,npmDownloads:0},K.propTypes={githubStars:t().number,npmDownloads:t().number,npmPackageType:t().string.isRequired};var Ke=K;const Je=(0,w.ZP)(R.Z)`
|
|
5
|
-
/* stylelint-disable value-no-vendor-prefix, property-no-vendor-prefix */
|
|
6
|
-
display: -webkit-box;
|
|
7
|
-
-webkit-box-orient: vertical;
|
|
8
|
-
-webkit-line-clamp: 2;
|
|
9
|
-
/* stylelint-enable value-no-vendor-prefix, property-no-vendor-prefix */
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
`,J=({npmPackage:a,isInstalled:s,useYarn:r,isInDevelopmentMode:l,npmPackageType:i,strapiAppVersion:g})=>{const{attributes:c}=a,{formatMessage:d}=(0,P.Z)(),{trackUsage:u}=(0,o.rS)(),m=r?`yarn add ${c.npmPackageName}`:`npm install ${c.npmPackageName}`,h=d({id:"admin.pages.MarketPlacePage.plugin.tooltip.madeByStrapi",defaultMessage:"Made by Strapi"}),E=`https://market.strapi.io/${Be().plural(i)}/${c.slug}`;return e.createElement(f.k,{direction:"column",justifyContent:"space-between",paddingTop:4,paddingRight:4,paddingBottom:4,paddingLeft:4,hasRadius:!0,background:"neutral0",shadow:"tableShadow",height:"100%",alignItems:"normal","data-testid":"npm-package-card"},e.createElement(v.x,null,e.createElement(f.k,{direction:"row",justifyContent:"space-between",alignItems:"flex-start"},e.createElement(v.x,{as:"img",src:c.logo.url,alt:`${c.name} logo`,hasRadius:!0,width:11,height:11}),e.createElement(Ke,{githubStars:c.githubStars,npmDownloads:c.npmDownloads,npmPackageType:i})),e.createElement(v.x,{paddingTop:4},e.createElement(R.Z,{as:"h3",variant:"delta"},e.createElement(f.k,{alignItems:"center"},c.name,c.validated&&!c.madeByStrapi&&e.createElement(H.u,{description:d({id:"admin.pages.MarketPlacePage.plugin.tooltip.verified",defaultMessage:"Plugin verified by Strapi"})},e.createElement(f.k,null,e.createElement(Z.J,{as:Ie.Z,marginLeft:2,color:"success600"}))),c.madeByStrapi&&e.createElement(H.u,{description:h},e.createElement(f.k,null,e.createElement(v.x,{as:"img",src:je,alt:h,marginLeft:1,width:6,height:"auto"})))))),e.createElement(v.x,{paddingTop:2},e.createElement(Je,{as:"p",variant:"omega",textColor:"neutral600"},c.description))),e.createElement(f.k,{gap:2,style:{alignSelf:"flex-end"},paddingTop:6},e.createElement(ee.Q,{size:"S",href:E,isExternal:!0,endIcon:e.createElement(ae.Z,null),"aria-label":d({id:"admin.pages.MarketPlacePage.plugin.info.label",defaultMessage:"Learn more about {pluginName}"},{pluginName:c.name}),variant:"tertiary",onClick:()=>u("didPluginLearnMore")},d({id:"admin.pages.MarketPlacePage.plugin.info.text",defaultMessage:"More"})),e.createElement(Ve,{isInstalled:s,isInDevelopmentMode:l,commandToCopy:m,strapiAppVersion:g,strapiPeerDepVersion:c.strapiVersion,pluginName:c.name})))};J.defaultProps={isInDevelopmentMode:!1,strapiAppVersion:null},J.propTypes={npmPackage:t().shape({id:t().string.isRequired,attributes:t().shape({name:t().string.isRequired,description:t().string.isRequired,slug:t().string.isRequired,npmPackageName:t().string.isRequired,npmPackageUrl:t().string.isRequired,repositoryUrl:t().string.isRequired,logo:t().object.isRequired,developerName:t().string.isRequired,validated:t().bool.isRequired,madeByStrapi:t().bool.isRequired,strapiCompatibility:t().oneOf(["v3","v4"]),strapiVersion:t().string,githubStars:t().number,npmDownloads:t().number}).isRequired}).isRequired,isInstalled:t().bool.isRequired,useYarn:t().bool.isRequired,isInDevelopmentMode:t().bool,npmPackageType:t().string.isRequired,strapiAppVersion:t().string};var qe=J,Ye=n(54725);const re=w.ZP.div`
|
|
12
|
-
display: grid;
|
|
13
|
-
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
14
|
-
grid-gap: ${({theme:a})=>a.spaces[4]};
|
|
15
|
-
`;re.propTypes={children:_.node.isRequired};const Xe=(0,w.ZP)(v.x)`
|
|
16
|
-
background: ${({theme:a})=>`linear-gradient(180deg, rgba(234, 234, 239, 0) 0%, ${a.colors.neutral150} 100%)`};
|
|
17
|
-
opacity: 0.33;
|
|
18
|
-
`,_e=()=>e.createElement(re,null,Array(12).fill(null).map((a,s)=>e.createElement(Xe,{key:`empty-plugin-card-${s}`,height:"234px",hasRadius:!0}))),ie=({content:a})=>e.createElement(v.x,{position:"relative","data-testid":"marketplace-results"},e.createElement(_e,null),e.createElement(v.x,{position:"absolute",top:11,width:"100%"},e.createElement(f.k,{alignItems:"center",justifyContent:"center",direction:"column"},e.createElement(Z.J,{as:Ye.Z,color:"",width:"160px",height:"88px"}),e.createElement(v.x,{paddingTop:6},e.createElement(R.Z,{variant:"delta",as:"p",textColor:"neutral600"},a)))));ie.propTypes={content:t().string.isRequired};var et=ie;const q=({status:a,npmPackages:s,installedPackageNames:r,useYarn:l,isInDevelopmentMode:i,npmPackageType:g,strapiAppVersion:c,debouncedSearch:d})=>{const{formatMessage:u}=(0,P.Z)();if(a==="error")return e.createElement(f.k,{paddingTop:8},e.createElement(o.Hn,null));if(a==="loading")return e.createElement(f.k,{justifyContent:"center",paddingTop:8},e.createElement(De.a,null,"Loading content..."));const m=u({id:"admin.pages.MarketPlacePage.search.empty",defaultMessage:'No result for "{target}"'},{target:d});return s.length===0?e.createElement(et,{content:m}):e.createElement(Ne.r,{gap:4,"data-testid":"marketplace-results"},s.map(h=>e.createElement(Oe.P,{col:4,s:6,xs:12,style:{height:"100%"},key:h.id},e.createElement(qe,{npmPackage:h,isInstalled:r.includes(h.attributes.npmPackageName),useYarn:l,isInDevelopmentMode:i,npmPackageType:g,strapiAppVersion:c}))))};q.defaultProps={npmPackages:[],installedPackageNames:[],strapiAppVersion:null,debouncedSearch:""},q.propTypes={status:t().string.isRequired,npmPackages:t().array,installedPackageNames:t().arrayOf(t().string),useYarn:t().bool.isRequired,isInDevelopmentMode:t().bool.isRequired,npmPackageType:t().string.isRequired,strapiAppVersion:t().string,debouncedSearch:t().string};var le=q,oe=n(68465),ce=n(84967);const tt=(0,w.ZP)(v.x)`
|
|
19
|
-
font-weight: ${({theme:a})=>a.fontWeights.semiBold};
|
|
20
|
-
|
|
21
|
-
span {
|
|
22
|
-
font-size: ${({theme:a})=>a.fontSizes[1]};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/* Hide the label, every input needs a label. */
|
|
26
|
-
label {
|
|
27
|
-
border: 0;
|
|
28
|
-
clip: rect(0 0 0 0);
|
|
29
|
-
height: 1px;
|
|
30
|
-
margin: -1px;
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
padding: 0;
|
|
33
|
-
position: absolute;
|
|
34
|
-
width: 1px;
|
|
35
|
-
}
|
|
36
|
-
`,de=({sortQuery:a,handleSelectChange:s})=>{const{formatMessage:r}=(0,P.Z)(),l={"name:asc":{selected:{id:"admin.pages.MarketPlacePage.sort.alphabetical.selected",defaultMessage:"Sort by alphabetical order"},option:{id:"admin.pages.MarketPlacePage.sort.alphabetical",defaultMessage:"Alphabetical order"}},"submissionDate:desc":{selected:{id:"admin.pages.MarketPlacePage.sort.newest.selected",defaultMessage:"Sort by newest"},option:{id:"admin.pages.MarketPlacePage.sort.newest",defaultMessage:"Newest"}},"githubStars:desc":{selected:{id:"admin.pages.MarketPlacePage.sort.githubStars.selected",defaultMessage:"Sort by GitHub stars"},option:{id:"admin.pages.MarketPlacePage.sort.githubStars",defaultMessage:"Number of GitHub stars"}},"npmDownloads:desc":{selected:{id:"admin.pages.MarketPlacePage.sort.npmDownloads.selected",defaultMessage:"Sort by npm downloads"},option:{id:"admin.pages.MarketPlacePage.sort.npmDownloads",defaultMessage:"Number of downloads"}}};return e.createElement(tt,null,e.createElement(oe.P,{size:"S",id:"sort-by-select",value:a,customizeContent:()=>r(l[a].selected),onChange:i=>{s({sort:i})},label:r({id:"admin.pages.MarketPlacePage.sort.label",defaultMessage:"Sort by"})},Object.entries(l).map(([i,g])=>e.createElement(ce.W,{key:i,value:i},r(g.option)))))};de.propTypes={sortQuery:t().string.isRequired,handleSelectChange:t().func.isRequired};var at=de,nt=n(66995),st=n(35331),rt=n(5644),it=n(54015);const ge=({message:a,value:s,onChange:r,possibleFilters:l,onClear:i,customizeContent:g})=>{const c=(d,u)=>`${d} (${u})`;return e.createElement(oe.P,{"data-testid":`${a}-button`,label:a,placeholder:a,size:"M",onChange:r,onClear:i,value:s,customizeContent:g,multi:!0},Object.entries(l).map(([d,u])=>e.createElement(ce.W,{"data-testid":`${d}-${u}`,key:d,value:d},c(d,u))))};ge.propTypes={message:t().string.isRequired,value:t().array.isRequired,onChange:t().func.isRequired,possibleFilters:t().object.isRequired,onClear:t().func.isRequired,customizeContent:t().func.isRequired};var pe=ge;const ue=({source:a,onToggle:s,query:r,npmPackageType:l,possibleCategories:i,possibleCollections:g,handleSelectChange:c,handleSelectClear:d})=>{const{formatMessage:u}=(0,P.Z)();return e.createElement(it.J2,{source:a,onDismiss:s,padding:3,spacing:4},e.createElement(ot,{direction:"column",alignItems:"stretch",gap:1},e.createElement(pe,{message:u({id:"admin.pages.MarketPlacePage.filters.collections",defaultMessage:"Collections"}),value:r?.collections||[],onChange:m=>{c({collections:m})},onClear:()=>d("collections"),possibleFilters:g,customizeContent:m=>u({id:"admin.pages.MarketPlacePage.filters.collectionsSelected",defaultMessage:"{count, plural, =0 {No collections} one {# collection} other {# collections}} selected"},{count:m.length})}),l==="plugin"&&e.createElement(pe,{message:u({id:"admin.pages.MarketPlacePage.filters.categories",defaultMessage:"Categories"}),value:r?.categories||[],onChange:m=>{c({categories:m})},onClear:()=>d("categories"),possibleFilters:i,customizeContent:m=>u({id:"admin.pages.MarketPlacePage.filters.categoriesSelected",defaultMessage:"{count, plural, =0 {No categories} one {# category} other {# categories}} selected"},{count:m.length}),name:"categories"})))};ue.propTypes={onToggle:t().func.isRequired,source:t().shape({current:t().instanceOf(Element)}).isRequired,query:t().object.isRequired,npmPackageType:t().oneOf(["plugin","provider"]).isRequired,possibleCollections:t().object.isRequired,possibleCategories:t().object.isRequired,handleSelectChange:t().func.isRequired,handleSelectClear:t().func.isRequired};var lt=ue;const ot=(0,w.ZP)(f.k)`
|
|
37
|
-
/* Hide the label, every input needs a label. */
|
|
38
|
-
label {
|
|
39
|
-
border: 0;
|
|
40
|
-
clip: rect(0 0 0 0);
|
|
41
|
-
height: 1px;
|
|
42
|
-
margin: -1px;
|
|
43
|
-
overflow: hidden;
|
|
44
|
-
padding: 0;
|
|
45
|
-
position: absolute;
|
|
46
|
-
width: 1px;
|
|
47
|
-
}
|
|
48
|
-
`,Y=({name:a,handleRemove:s})=>e.createElement(v.x,{padding:1},e.createElement(nt.V,{icon:e.createElement(st.Z,null),onClick:s},a)),ct=(0,w.ZP)(Q.z)`
|
|
49
|
-
height: ${({theme:a})=>a.sizes.input.S};
|
|
50
|
-
`,me=({possibleCollections:a,possibleCategories:s,npmPackageType:r,query:l,handleSelectClear:i,handleSelectChange:g})=>{const[c,d]=(0,e.useState)(!1),u=(0,e.useRef)(),{formatMessage:m}=(0,P.Z)(),h=()=>d(p=>!p),E=(p,M)=>{const C={[M]:l[M].filter(N=>N!==p)};g(C)};return e.createElement(e.Fragment,null,e.createElement(v.x,{paddingTop:1,paddingBottom:1},e.createElement(ct,{variant:"tertiary",ref:u,"data-testid":"filters-button",startIcon:e.createElement(rt.Z,null),onClick:h,size:"S"},m({id:"app.utils.filters",defaultMessage:"Filters"})),c&&e.createElement(lt,{onToggle:h,source:u,query:l,handleSelectClear:i,handleSelectChange:g,possibleCollections:a,possibleCategories:s,npmPackageType:r})),l.collections?.map(p=>e.createElement(Y,{name:p,key:p,handleRemove:()=>E(p,"collections")})),r==="plugin"&&l.categories?.map(p=>e.createElement(Y,{name:p,key:p,handleRemove:()=>E(p,"categories")})))};Y.propTypes={name:t().string.isRequired,handleRemove:t().func.isRequired},me.propTypes={npmPackageType:t().oneOf(["plugin","provider"]).isRequired,possibleCollections:t().object.isRequired,possibleCategories:t().object.isRequired,query:t().object.isRequired,handleSelectChange:t().func.isRequired,handleSelectClear:t().func.isRequired};var dt=me;const fe=({pagination:a})=>e.createElement(v.x,{paddingTop:4},e.createElement(f.k,{alignItems:"flex-end",justifyContent:"space-between"},e.createElement(o.v4,{options:["12","24","50","100"],defaultValue:"24"}),e.createElement(o.tU,{pagination:a})));fe.propTypes={pagination:t().shape({page:t().number.isRequired,pageCount:t().number.isRequired,pageSize:t().number.isRequired,total:t().number.isRequired}).isRequired};var gt=fe,pt=n(75536),ut=n.p+"9d5d788027e86620c234.svg",mt=()=>{const{formatMessage:a}=(0,P.Z)();return e.createElement(S.A,null,e.createElement(D.o,null,e.createElement(te,{isOnline:!1}),e.createElement(f.k,{width:"100%",direction:"column",alignItems:"center",justifyContent:"center",paddingTop:(0,o.Q1)(120)},e.createElement(v.x,{paddingBottom:2},e.createElement(R.Z,{textColor:"neutral700",variant:"alpha"},a({id:"admin.pages.MarketPlacePage.offline.title",defaultMessage:"You are offline"}))),e.createElement(v.x,{paddingBottom:6},e.createElement(R.Z,{textColor:"neutral700",variant:"epsilon"},a({id:"admin.pages.MarketPlacePage.offline.subtitle",defaultMessage:"You need to be connected to the Internet to access Strapi Market."}))),e.createElement("img",{src:ut,alt:"offline",style:{width:"88px",height:"88px"}}))))},ft=n(7395),he=n(20108),ht=n(33348),j=n.n(ht);const ve="https://market-api.strapi.io",vt=async(a={})=>{try{const s=j().stringify(j().parse(a)),r=await fetch(`${ve}/plugins?${s}`);if(!r.ok)throw new Error("Failed to fetch marketplace plugins.");return await r.json()}catch(s){console.error(s)}return null};var Pt=(a,s)=>{const r=(0,o.lm)();return(0,he.useQuery)(["list-marketplace-plugins",s],()=>vt(s),{onSuccess(){a&&a()},onError(){r({type:"warning",message:{id:"notification.error",defaultMessage:"An error occured"}})}})};const Et=async(a={})=>{try{const s=j().stringify(j().parse(a)),r=await fetch(`${ve}/providers?${s}`);if(!r.ok)throw new Error("Failed to fetch marketplace providers.");return await r.json()}catch(s){console.error(s)}return null};var Mt=(a,s)=>{const r=(0,o.lm)();return(0,he.useQuery)(["list-marketplace-providers",s],()=>Et(s),{onSuccess(){a&&a()},onError(){r({type:"warning",message:{id:"notification.error",defaultMessage:"An error occured"}})}})};function yt({npmPackageType:a,debouncedSearch:s,query:r,tabQuery:l}){const{notifyStatus:i}=(0,ft.G)(),{formatMessage:g}=(0,P.Z)(),c=g({id:"global.marketplace",defaultMessage:"Marketplace"}),d=()=>{i(g({id:"app.utils.notify.data-loaded",defaultMessage:"The {target} has loaded"},{target:c}))},u={page:r?.page||1,pageSize:r?.pageSize||24},{data:m,status:h}=Pt(d,{...l.plugin,pagination:u,search:s}),{data:E,status:p}=Mt(d,{...l.provider,pagination:u,search:s}),M=a==="plugin"?m:E,C=a==="plugin"?h:p,[N,$]=(0,e.useState)({}),[A,F]=(0,e.useState)({});(0,e.useEffect)(()=>{C==="success"&&$(M.meta.collections),h==="success"&&F(m.meta.categories)},[m?.meta.categories,h,M?.meta.collections,C]);const{pagination:X}=C==="success"?M.meta:{};return{pluginsResponse:m,providersResponse:E,pluginsStatus:h,providersStatus:p,possibleCollections:N,possibleCategories:A,pagination:X}}var kt=yt;const Pe=()=>{const{formatMessage:a}=(0,P.Z)(),{trackUsage:s}=(0,o.rS)(),r=(0,e.useRef)(s),l=(0,o.lm)(),[{query:i},g]=(0,o.Kx)(),c=(0,pt.Z)(i?.search,500)||"",{autoReload:d,dependencies:u,useYarn:m,strapiVersion:h}=(0,o.L7)(),E=Se(),p=i?.npmPackageType||"plugin",[M,C]=(0,e.useState)({plugin:p==="plugin"?{...i}:{},provider:p==="provider"?{...i}:{}});(0,o.go)(),(0,e.useEffect)(()=>{r.current("didGoToMarketplace")},[]),(0,e.useEffect)(()=>{d||l({type:"info",message:{id:"admin.pages.MarketPlacePage.production",defaultMessage:"Manage plugins from the development environment"},blockTransition:!0})},[l,d]);const{pluginsResponse:N,providersResponse:$,pluginsStatus:A,providersStatus:F,possibleCollections:X,possibleCategories:Rt,pagination:Ee}=kt({npmPackageType:p,debouncedSearch:c,query:i,tabQuery:M});if(!E)return e.createElement(mt,null);const Ct=x=>{const k=x===0?"plugin":"provider",St=M[k]&&Object.keys(M[k]).length;g(St?{...M[k],search:i?.search||"",npmPackageType:k,page:1}:{npmPackageType:k,collections:[],categories:[],sort:"name:asc",page:1,search:i?.search||""})},Me=x=>{g({...x,page:1}),C(k=>({...k,[p]:{...k[p],...x}}))},xt=x=>{g({[x]:[],page:null},"remove"),C(k=>({...k,[p]:{}}))},ye=Object.keys(u);return e.createElement(S.A,null,e.createElement(D.o,null,e.createElement(y.q,{title:a({id:"admin.pages.MarketPlacePage.helmet",defaultMessage:"Marketplace - Plugins"})}),e.createElement(te,{isOnline:E,npmPackageType:p}),e.createElement(O.D,null,e.createElement(L.v,{label:a({id:"admin.pages.MarketPlacePage.tab-group.label",defaultMessage:"Plugins and Providers for Strapi"}),id:"tabs",variant:"simple",initialSelectedTabIndex:["plugin","provider"].indexOf(p),onTabChange:Ct},e.createElement(f.k,{justifyContent:"space-between",paddingBottom:4},e.createElement(B.m,null,e.createElement(B.O,null,a({id:"admin.pages.MarketPlacePage.plugins",defaultMessage:"Plugins"})," ",A==="success"?`(${N.meta.pagination.total})`:"..."),e.createElement(B.O,null,a({id:"admin.pages.MarketPlacePage.providers",defaultMessage:"Providers"})," ",F==="success"?`(${$.meta.pagination.total})`:"...")),e.createElement(v.x,{width:"25%"},e.createElement(ke.w,{name:"searchbar",onClear:()=>g({search:"",page:1}),value:i?.search,onChange:x=>g({search:x.target.value,page:1}),clearLabel:a({id:"admin.pages.MarketPlacePage.search.clear",defaultMessage:"Clear the search"}),placeholder:a({id:"admin.pages.MarketPlacePage.search.placeholder",defaultMessage:"Search"})},a({id:"admin.pages.MarketPlacePage.search.placeholder",defaultMessage:"Search"})))),e.createElement(f.k,{paddingBottom:4,gap:2},e.createElement(at,{sortQuery:i?.sort||"name:asc",handleSelectChange:Me}),e.createElement(dt,{npmPackageType:p,possibleCollections:X,possibleCategories:Rt,query:i||{},handleSelectChange:Me,handleSelectClear:xt})),e.createElement(z.n,null,e.createElement(z.x,null,e.createElement(le,{npmPackages:N?.data,status:A,installedPackageNames:ye,useYarn:m,isInDevelopmentMode:d,npmPackageType:"plugin",strapiAppVersion:h,debouncedSearch:c})),e.createElement(z.x,null,e.createElement(le,{npmPackages:$?.data,status:F,installedPackageNames:ye,useYarn:m,isInDevelopmentMode:d,npmPackageType:"provider",debouncedSearch:c})))),Ee&&e.createElement(gt,{pagination:Ee}),e.createElement(v.x,{paddingTop:8},e.createElement(we,null)))))};var bt=()=>e.createElement(o.O4,{permissions:xe.Z.marketplace.main},e.createElement(Pe,null))},96709:function(V,b,n){n.d(b,{A:function(){return L}});var e=n(74512),P=n(32735),y=n(60216),o=n(8471),S=n(72850);const D=(0,o.ZP)(S.x)`
|
|
51
|
-
display: grid;
|
|
52
|
-
grid-template-columns: ${({hasSideNav:f})=>f?"auto 1fr":"1fr"};
|
|
53
|
-
`,O=(0,o.ZP)(S.x)`
|
|
54
|
-
overflow-x: hidden;
|
|
55
|
-
`,L=({sideNav:f,children:B})=>(0,e.jsxs)(D,{hasSideNav:!!f,children:[f,(0,e.jsx)(O,{paddingBottom:10,children:B})]});L.defaultProps={sideNav:void 0},L.propTypes={children:y.node.isRequired,sideNav:y.node}},33904:function(V,b,n){n.d(b,{Z:function(){return y}});var e=n(74512);const P=o=>(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...o,children:(0,e.jsx)("path",{fill:"#161614",d:"M12 0C5.373 0 0 5.501 0 12.288c0 5.43 3.438 10.035 8.206 11.66.6.114.82-.266.82-.59 0-.294-.01-1.262-.016-2.289-3.338.744-4.043-1.45-4.043-1.45-.546-1.42-1.332-1.797-1.332-1.797-1.089-.763.082-.747.082-.747 1.205.086 1.84 1.266 1.84 1.266 1.07 1.878 2.807 1.335 3.491 1.021.108-.794.42-1.336.762-1.643-2.665-.31-5.467-1.364-5.467-6.073 0-1.341.469-2.437 1.236-3.298-.124-.31-.535-1.56.117-3.252 0 0 1.007-.33 3.3 1.26A11.25 11.25 0 0 1 12 5.942c1.02.005 2.047.141 3.006.414 2.29-1.59 3.297-1.26 3.297-1.26.653 1.693.242 2.943.118 3.252.77.86 1.235 1.957 1.235 3.298 0 4.72-2.808 5.76-5.48 6.063.43.382.814 1.13.814 2.276 0 1.644-.014 2.967-.014 3.372 0 .327.216.71.825.59C20.566 22.32 24 17.715 24 12.288 24 5.501 18.627 0 12 0Z"})}),y=P}}]);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[3677],{15415:function(T,r,e){e.r(r),e.d(r,{default:function(){return I}});var t=e(32735),a=e(24989),d=e(74758),i=e(67879),u=e(83983),E=e(7395),g=e(96709),s=e(27649),o=e(82055),v=e(17e3),y=e(56755),C=e(33827),f=e(94547),c=e(19786),m=e(49372),L=e(35658),O=e(20108);const x=async()=>{const{get:n}=(0,a.tg)(),{data:l}=await n("/admin/plugins");return l};var D=n=>{const l=(0,a.lm)();return(0,O.useQuery)("list-enabled-plugins",()=>x(),{onSuccess(){n&&n()},onError(){l({type:"warning",message:{id:"notification.error",defaultMessage:"An error occured"}})}})},A=()=>{const{formatMessage:n}=(0,i.Z)(),{notifyStatus:l}=(0,E.G)();(0,a.go)();const h=n({id:"global.plugins",defaultMessage:"Plugins"}),Z=()=>{l(n({id:"app.utils.notify.data-loaded",defaultMessage:"The {target} has loaded"},{target:h}))},{status:p,data:M}=D(Z);return p!=="success"&&p!=="error"?t.createElement(g.A,null,t.createElement(s.o,{"aria-busy":!0},t.createElement(a.dO,null))):t.createElement(g.A,null,t.createElement(s.o,null,t.createElement(o.T,{title:h,subtitle:n({id:"app.components.ListPluginsPage.description",defaultMessage:"List of the installed plugins in the project."})}),t.createElement(v.D,null,t.createElement(y.i,{colCount:2,rowCount:M?.plugins?.length??0+1},t.createElement(C.h,null,t.createElement(f.Tr,null,t.createElement(c.Th,null,t.createElement(m.Z,{variant:"sigma",textColor:"neutral600"},n({id:"global.name",defaultMessage:"Name"}))),t.createElement(c.Th,null,t.createElement(m.Z,{variant:"sigma",textColor:"neutral600"},n({id:"global.description",defaultMessage:"description"}))))),t.createElement(L.p,null,M.plugins.map(({name:P,displayName:B,description:N})=>t.createElement(f.Tr,{key:P},t.createElement(c.Td,null,t.createElement(m.Z,{textColor:"neutral800",variant:"omega",fontWeight:"bold"},n({id:`global.plugins.${P}`,defaultMessage:B}))),t.createElement(c.Td,null,t.createElement(m.Z,{textColor:"neutral800"},n({id:`global.plugins.${P}.description`,defaultMessage:N}))))))))))},I=()=>{const{formatMessage:n}=(0,i.Z)(),l=n({id:"global.plugins",defaultMessage:"Plugins"});return t.createElement(a.O4,{permissions:u.Z.marketplace.main},t.createElement(d.q,{title:l}),t.createElement(A,null))}},96709:function(T,r,e){e.d(r,{A:function(){return s}});var t=e(74512),a=e(32735),d=e(60216),i=e(8471),u=e(72850);const E=(0,i.ZP)(u.x)`
|
|
2
|
-
display: grid;
|
|
3
|
-
grid-template-columns: ${({hasSideNav:o})=>o?"auto 1fr":"1fr"};
|
|
4
|
-
`,g=(0,i.ZP)(u.x)`
|
|
5
|
-
overflow-x: hidden;
|
|
6
|
-
`,s=({sideNav:o,children:v})=>(0,t.jsxs)(E,{hasSideNav:!!o,children:[o,(0,t.jsx)(g,{paddingBottom:10,children:v})]});s.defaultProps={sideNav:void 0},s.propTypes={children:d.node.isRequired,sideNav:d.node}}}]);
|