@strapi/admin 4.11.0-exp.push-transfer-push-stuck → 4.11.0
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 +5 -3
- package/admin/src/content-manager/components/ComponentIcon/ComponentIcon.js +16 -26
- package/admin/src/content-manager/components/ComponentIcon/constants.js +133 -0
- package/admin/src/content-manager/components/DynamicTable/BulkActionsBar/index.js +307 -0
- package/admin/src/content-manager/components/DynamicTable/index.js +20 -4
- package/admin/src/content-manager/components/DynamicZone/components/AddComponentButton.js +32 -95
- package/admin/src/content-manager/components/DynamicZone/components/ComponentCard.js +10 -2
- package/admin/src/content-manager/components/DynamicZone/components/ComponentCategory.js +63 -15
- package/admin/src/content-manager/components/DynamicZone/components/ComponentPicker.js +50 -63
- package/admin/src/content-manager/components/DynamicZone/components/DynamicComponent.js +132 -58
- package/admin/src/content-manager/components/DynamicZone/components/DynamicZoneLabel.js +29 -37
- package/admin/src/content-manager/components/DynamicZone/index.js +131 -83
- package/admin/src/content-manager/components/EditViewDataManagerProvider/index.js +31 -8
- package/admin/src/content-manager/components/EditViewDataManagerProvider/reducer.js +18 -6
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/index.js +0 -1
- package/admin/src/content-manager/components/Inputs/index.js +18 -11
- package/admin/src/content-manager/components/Inputs/utils/index.js +0 -1
- package/admin/src/content-manager/pages/EditSettingsView/components/DynamicZoneList.js +7 -1
- package/admin/src/content-manager/pages/EditView/index.js +1 -1
- package/admin/src/content-manager/pages/ListView/index.js +118 -2
- package/admin/src/content-manager/utils/index.js +2 -0
- package/admin/src/content-manager/{components/EditViewDataManagerProvider/utils → utils}/schema.js +1 -1
- package/admin/src/hooks/useContentTypes/useContentTypes.js +0 -2
- package/admin/src/index.js +4 -3
- package/admin/src/injectionZones.js +6 -1
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventTable/EventTableCE.js +13 -0
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventTable/index.js +3 -0
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/Events/index.js +331 -0
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/Combobox.js +54 -4
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/index.js +12 -23
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/WebhookForm/index.js +129 -116
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/WebhookForm/utils/makeWebhookValidationSchema.js +62 -0
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/index.js +59 -64
- package/admin/src/translations/ar.json +684 -1
- package/admin/src/translations/en.json +12 -1
- package/build/3562.e0b1a0b3.chunk.js +50 -0
- package/build/371.6e4e2c1f.chunk.js +71 -0
- package/build/5297.31c9ffdc.chunk.js +39 -0
- package/build/5542.64b623c9.chunk.js +63 -0
- package/build/{5563.79950369.chunk.js → 5563.badbffde.chunk.js} +2 -2
- package/build/6691.f7a3b5ac.chunk.js +105 -0
- package/build/6970.d456705f.chunk.js +1 -0
- package/build/{7259.5cc67413.chunk.js → 7259.5d0de931.chunk.js} +1 -1
- package/build/8976.0022f5a3.chunk.js +50 -0
- package/build/{1657.ca8562dd.chunk.js → 9932.5ef475c5.chunk.js} +54 -62
- package/build/Admin-authenticatedApp.ab2b5910.chunk.js +79 -0
- package/build/{Admin_InternalErrorPage.96ceaae1.chunk.js → Admin_InternalErrorPage.f25f04f3.chunk.js} +1 -1
- package/build/Admin_homePage.05063e43.chunk.js +73 -0
- package/build/Admin_marketplace.005d2d5b.chunk.js +55 -0
- package/build/Admin_pluginsPage.5d9d4060.chunk.js +6 -0
- package/build/{Admin_profilePage.a8fa3a56.chunk.js → Admin_profilePage.ab7b94d7.chunk.js} +2 -2
- package/build/Admin_settingsPage.07a6a5f0.chunk.js +79 -0
- package/build/{Upload_ConfigureTheView.aa64ed9a.chunk.js → Upload_ConfigureTheView.121deffb.chunk.js} +1 -1
- package/build/admin-app.7cc667be.chunk.js +63 -0
- package/build/{admin-edit-roles-page.0d12b741.chunk.js → admin-edit-roles-page.bfe3304d.chunk.js} +3 -3
- package/build/{admin-edit-users.f9ce7844.chunk.js → admin-edit-users.6efe0382.chunk.js} +2 -2
- package/build/admin-roles-list.b2577370.chunk.js +23 -0
- package/build/admin-users.4af49ccf.chunk.js +26 -0
- package/build/{api-tokens-create-page.973d2816.chunk.js → api-tokens-create-page.65411a36.chunk.js} +1 -1
- package/build/{api-tokens-edit-page.29725c5e.chunk.js → api-tokens-edit-page.60312cb6.chunk.js} +1 -1
- package/build/{api-tokens-list-page.66c4fbdd.chunk.js → api-tokens-list-page.01a4d5cd.chunk.js} +2 -2
- package/build/ar-json.f530bc3f.chunk.js +1 -0
- package/build/audit-logs-settings-page.b165679b.chunk.js +16 -0
- package/build/content-manager.8cc6c3f9.chunk.js +1094 -0
- package/build/content-type-builder-list-view.58f9ed20.chunk.js +211 -0
- package/build/{content-type-builder-translation-en-json.af293c9e.chunk.js → content-type-builder-translation-en-json.f592325b.chunk.js} +1 -1
- package/build/content-type-builder.baeb0413.chunk.js +132 -0
- package/build/email-settings-page.8caad83f.chunk.js +11 -0
- package/build/en-json.a8f34002.chunk.js +1 -0
- package/build/i18n-settings-page.579d5eab.chunk.js +9 -0
- package/build/i18n-translation-en-json.1ec7becf.chunk.js +1 -0
- package/build/index.html +1 -1
- package/build/main.1d678f7b.js +2926 -0
- package/build/{review-workflows-settings.56cab253.chunk.js → review-workflows-settings.3a7bae25.chunk.js} +2 -2
- package/build/{runtime~main.adbe36a4.js → runtime~main.9dbd4553.js} +2 -2
- package/build/{sso-settings-page.265e3d72.chunk.js → sso-settings-page.4bb073e0.chunk.js} +1 -1
- package/build/{transfer-tokens-create-page.170acee6.chunk.js → transfer-tokens-create-page.9ec277d7.chunk.js} +1 -1
- package/build/{transfer-tokens-edit-page.6cf23295.chunk.js → transfer-tokens-edit-page.fa5ade14.chunk.js} +1 -1
- package/build/{transfer-tokens-list-page.c3fec4c1.chunk.js → transfer-tokens-list-page.5d68d590.chunk.js} +2 -2
- package/build/upload-settings.2c1565d6.chunk.js +14 -0
- package/build/upload.257b2aef.chunk.js +26 -0
- package/build/users-advanced-settings-page.ddd29040.chunk.js +9 -0
- package/build/users-email-settings-page.717e2a51.chunk.js +24 -0
- package/build/users-providers-settings-page.c7eae829.chunk.js +29 -0
- package/build/{users-roles-settings-page.2549794b.chunk.js → users-roles-settings-page.63cf2838.chunk.js} +1 -1
- package/build/webhook-edit-page.8576742e.chunk.js +31 -0
- package/build/webhook-list-page.abf5747c.chunk.js +63 -0
- package/ee/admin/pages/SettingsPage/pages/Webhooks/EditView/components/EventTable/EventTableEE.js +23 -0
- package/ee/admin/pages/SettingsPage/pages/Webhooks/EditView/components/EventTable/index.js +3 -0
- package/ee/server/services/review-workflows/review-workflows.js +4 -0
- package/package.json +22 -24
- package/server/controllers/webhooks.js +6 -6
- package/admin/src/content-manager/components/DynamicTable/ConfirmDialogDeleteAll/index.js +0 -73
- package/admin/src/content-manager/components/DynamicZone/utils/connect.js +0 -12
- package/admin/src/content-manager/components/DynamicZone/utils/select.js +0 -53
- package/admin/src/content-manager/components/Inputs/utils/getStep.js +0 -13
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventInput/EventRow.js +0 -70
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventInput/index.js +0 -174
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/keys.js +0 -39
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/utils/fieldsRegex.js +0 -4
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/utils/schema.js +0 -35
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/reducer.js +0 -100
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/utils/formatData.js +0 -20
- package/build/3081.c2cdfac8.chunk.js +0 -108
- package/build/3816.60f858cf.chunk.js +0 -211
- 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/6858.85d76858.chunk.js +0 -50
- package/build/6970.6a329e15.chunk.js +0 -1
- package/build/Admin-authenticatedApp.d425b485.chunk.js +0 -79
- package/build/Admin_homePage.107a9fe0.chunk.js +0 -73
- package/build/Admin_marketplace.717bd7ca.chunk.js +0 -55
- package/build/Admin_pluginsPage.7df6b5a9.chunk.js +0 -6
- package/build/Admin_settingsPage.1394aaf2.chunk.js +0 -79
- package/build/admin-app.ac5b1f59.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/ar-json.39e54aba.chunk.js +0 -1
- package/build/audit-logs-settings-page.3c6cea81.chunk.js +0 -129
- package/build/content-manager.70548048.chunk.js +0 -1123
- package/build/content-type-builder-list-view.1e821eb9.chunk.js +0 -215
- package/build/content-type-builder.b10576e7.chunk.js +0 -126
- package/build/email-settings-page.dba83275.chunk.js +0 -11
- package/build/en-json.d965e364.chunk.js +0 -1
- package/build/i18n-settings-page.55628f74.chunk.js +0 -114
- package/build/i18n-translation-en-json.60af6722.chunk.js +0 -1
- package/build/main.d9d9ed10.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.4f49ca57.chunk.js +0 -9
- package/build/users-email-settings-page.d2429d0a.chunk.js +0 -24
- package/build/users-providers-settings-page.50c5ba27.chunk.js +0 -29
- package/build/webhook-edit-page.ddd5963d.chunk.js +0 -128
- package/build/webhook-list-page.e2fca9f8.chunk.js +0 -71
|
@@ -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,50 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[6858],{95919:function(y,m,n){var r=n(80022);function f(c){return r(c)&&c!=+c}y.exports=f},80022:function(y,m,n){var r=n(94318),f=n(3387),c="[object Number]";function _(E){return typeof E=="number"||f(E)&&r(E)==c}y.exports=_},59578:function(y,m,n){var r=n(41119);function f(c){return r(c).toLowerCase()}y.exports=f},98178:function(y,m,n){"use strict";n.d(m,{P1:function(){return M}});var r="NOT_FOUND";function f(u){var a;return{get:function(t){return a&&u(a.key,t)?a.value:r},put:function(t,o){a={key:t,value:o}},getEntries:function(){return a?[a]:[]},clear:function(){a=void 0}}}function c(u,a){var e=[];function t(l){var p=e.findIndex(function(v){return a(l,v.key)});if(p>-1){var h=e[p];return p>0&&(e.splice(p,1),e.unshift(h)),h.value}return r}function o(l,p){t(l)===r&&(e.unshift({key:l,value:p}),e.length>u&&e.pop())}function i(){return e}function s(){e=[]}return{get:t,put:o,getEntries:i,clear:s}}var _=function(a,e){return a===e};function E(u){return function(e,t){if(e===null||t===null||e.length!==t.length)return!1;for(var o=e.length,i=0;i<o;i++)if(!u(e[i],t[i]))return!1;return!0}}function b(u,a){var e=typeof a=="object"?a:{equalityCheck:a},t=e.equalityCheck,o=t===void 0?_:t,i=e.maxSize,s=i===void 0?1:i,l=e.resultEqualityCheck,p=E(o),h=s===1?f(p):c(s,p);function v(){var d=h.get(arguments);if(d===r){if(d=u.apply(null,arguments),l){var g=h.getEntries(),x=g.find(function(O){return l(O.value,d)});x&&(d=x.value)}h.put(arguments,d)}return d}return v.clearCache=function(){return h.clear()},v}function P(u){var a=Array.isArray(u[0])?u[0]:u;if(!a.every(function(t){return typeof t=="function"})){var e=a.map(function(t){return typeof t=="function"?"function "+(t.name||"unnamed")+"()":typeof t}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+e+"]")}return a}function j(u){for(var a=arguments.length,e=new Array(a>1?a-1:0),t=1;t<a;t++)e[t-1]=arguments[t];var o=function(){for(var s=arguments.length,l=new Array(s),p=0;p<s;p++)l[p]=arguments[p];var h=0,v,d={memoizeOptions:void 0},g=l.pop();if(typeof g=="object"&&(d=g,g=l.pop()),typeof g!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof g+"]");var x=d,O=x.memoizeOptions,C=O===void 0?e:O,Z=Array.isArray(C)?C:[C],D=P(l),R=u.apply(void 0,[function(){return h++,g.apply(null,arguments)}].concat(Z)),A=u(function(){for(var B=[],S=D.length,T=0;T<S;T++)B.push(D[T].apply(null,arguments));return v=R.apply(null,B),v});return Object.assign(A,{resultFunc:g,memoizedResultFunc:R,dependencies:D,lastResult:function(){return v},recomputations:function(){return h},resetRecomputations:function(){return h=0}}),A};return o}var M=j(b),w=function(a,e){if(e===void 0&&(e=M),typeof a!="object")throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof a));var t=Object.keys(a),o=e(t.map(function(i){return a[i]}),function(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return s.reduce(function(p,h,v){return p[t[v]]=h,p},{})});return o}},83828:function(y,m,n){"use strict";n.d(m,{U:function(){return a},y:function(){return w}});var r=n(74512),f=n(32735),c=n(8471),_=n(91045),E=n(74971),b=n(49372),P=n(87933),j=n(72850);const M=({theme:e,expanded:t,variant:o,disabled:i,error:s})=>s?`1px solid ${e.colors.danger600} !important`:i?`1px solid ${e.colors.neutral150}`:t?`1px solid ${e.colors.primary600}`:o==="primary"?`1px solid ${e.colors.neutral0}`:`1px solid ${e.colors.neutral100}`,w=(0,c.ZP)(b.Z)``,u=(0,c.ZP)(j.x)`
|
|
2
|
-
border: ${M};
|
|
3
|
-
|
|
4
|
-
&:hover:not([aria-disabled='true']) {
|
|
5
|
-
border: 1px solid ${({theme:e})=>e.colors.primary600};
|
|
6
|
-
|
|
7
|
-
${w} {
|
|
8
|
-
color: ${({theme:e,expanded:t})=>t?void 0:e.colors.primary700};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
${b.Z} {
|
|
12
|
-
color: ${({theme:e,expanded:t})=>t?void 0:e.colors.primary600};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
& > ${P.k} {
|
|
16
|
-
background: ${({theme:e})=>e.colors.primary100};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
[data-strapi-dropdown='true'] {
|
|
20
|
-
background: ${({theme:e})=>e.colors.primary200};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
`,a=({children:e,disabled:t=!1,error:o,expanded:i=!1,hasErrorMessage:s=!0,id:l,onToggle:p,toggle:h,size:v="M",variant:d="primary",shadow:g})=>{const x=(0,E.M)(l),O=f.useMemo(()=>({expanded:i,onToggle:p,toggle:h,id:x,size:v,variant:d,disabled:t}),[t,i,x,p,v,h,d]);return(0,r.jsxs)(_.S.Provider,{value:O,children:[(0,r.jsx)(u,{"data-strapi-expanded":i,disabled:t,"aria-disabled":t,expanded:i,hasRadius:!0,variant:d,error:o,shadow:g,children:e}),o&&s&&(0,r.jsx)(j.x,{paddingTop:1,children:(0,r.jsx)(b.Z,{variant:"pi",textColor:"danger600",children:o})})]})}},89966:function(y,m,n){"use strict";n.d(m,{v:function(){return _}});var r=n(74512),f=n(91045),c=n(72850);const _=({children:E,...b})=>{const{expanded:P,id:j}=(0,f.A)();if(!P)return null;const M=`accordion-content-${j}`,w=`accordion-label-${j}`,u=`accordion-desc-${j}`;return(0,r.jsx)(c.x,{role:"region",id:M,"aria-labelledby":w,"aria-describedby":u,...b,children:E})}},91045:function(y,m,n){"use strict";n.d(m,{A:function(){return c},S:function(){return f}});var r=n(32735);const f=(0,r.createContext)({disabled:!1,expanded:!1,id:"",size:"M",variant:"primary"}),c=()=>(0,r.useContext)(f)},61762:function(y,m,n){"use strict";n.d(m,{B:function(){return e}});var r=n(74512),f=n(16899),c=n(8471),_=n(83828),E=n(91045);const b=({expanded:t,disabled:o,variant:i})=>{let s="neutral100";return t?s="primary100":o?s="neutral150":i==="primary"&&(s="neutral0"),s};var P=n(7563),j=n(99140),M=n(87933),w=n(49372);const u=(0,c.ZP)(P.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:t,expanded:o})=>o?t.colors.primary600:t.colors.neutral500};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
`,a=(0,c.ZP)(M.k)`
|
|
40
|
-
min-height: ${({theme:t,size:o})=>t.sizes.accordions[o]};
|
|
41
|
-
border-radius: ${({theme:t,expanded:o})=>o?`${t.borderRadius} ${t.borderRadius} 0 0`:t.borderRadius};
|
|
42
|
-
|
|
43
|
-
&:hover {
|
|
44
|
-
svg {
|
|
45
|
-
path {
|
|
46
|
-
fill: ${({theme:t})=>t.colors.primary600};
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
`,e=({title:t,description:o,as:i="span",togglePosition:s="right",action:l,...p})=>{const{onToggle:h,toggle:v,expanded:d,id:g,size:x,variant:O,disabled:C}=(0,E.A)(),Z=`accordion-content-${g}`,D=`accordion-label-${g}`,R=`accordion-desc-${g}`,A=x==="M"?6:4,$=x==="M"?A:A-2,B=b({expanded:d,disabled:C,variant:O}),S={as:i,fontWeight:x==="S"?"bold":void 0,id:D,textColor:d?"primary600":"neutral700",ellipsis:!0,variant:x==="M"?"delta":void 0},T=d?"primary600":"neutral600",W=d?"primary200":"neutral200",L=x==="M"?`${32/16}rem`:`${24/16}rem`,I=()=>{C||(v&&!h?(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'),v()):h&&h())},U=(0,r.jsx)(M.k,{justifyContent:"center",borderRadius:"50%",height:L,width:L,transform:d?"rotate(180deg)":void 0,"data-strapi-dropdown":!0,"aria-hidden":!0,as:"span",background:W,cursor:C?"not-allowed":"pointer",onClick:I,shrink:0,children:(0,r.jsx)(j.J,{as:f.Z,width:x==="M"?`${11/16}rem`:`${8/16}rem`,color:d?"primary600":"neutral600"})});return(0,r.jsx)(a,{paddingBottom:$,paddingLeft:A,paddingRight:A,paddingTop:$,background:B,expanded:d,size:x,justifyContent:"space-between",cursor:C?"not-allowed":"",children:(0,r.jsxs)(M.k,{gap:3,flex:1,maxWidth:"100%",children:[s==="left"&&U,(0,r.jsx)(u,{onClick:I,"aria-disabled":C,"aria-expanded":d,"aria-controls":Z,"aria-labelledby":D,"data-strapi-accordion-toggle":!0,expanded:d,type:"button",flex:1,minWidth:0,...p,children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_.y,{...S,children:t}),o&&(0,r.jsx)(w.Z,{as:"p",id:R,textColor:T,children:o})]})}),s==="right"&&(0,r.jsxs)(M.k,{gap:3,children:[U,l]}),s==="left"&&l]})})}},47081:function(y,m,n){"use strict";n.d(m,{Z:function(){return c}});var r=n(74512);const f=_=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",..._,children:[(0,r.jsx)("path",{fill:"#212134",d:"M16.563 5.587a2.503 2.503 0 1 0 0-5.007 2.503 2.503 0 0 0 0 5.007Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M18.487 3.083c-.012.788-.487 1.513-1.229 1.797a1.954 1.954 0 0 1-2.184-.574A1.943 1.943 0 0 1 14.9 2.11c.4-.684 1.2-1.066 1.981-.927a1.954 1.954 0 0 1 1.606 1.9c.011.748 1.17.748 1.158 0A3.138 3.138 0 0 0 17.565.17c-1.176-.423-2.567-.03-3.36.933-.83 1.002-.968 2.45-.284 3.575.678 1.124 1.993 1.674 3.273 1.431 1.432-.272 2.428-1.593 2.451-3.019.012-.753-1.147-.753-1.158-.006ZM16.563 14.372a2.503 2.503 0 1 0 0-5.007 2.503 2.503 0 0 0 0 5.007Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M18.487 11.867c-.012.789-.487 1.513-1.229 1.797a1.954 1.954 0 0 1-2.184-.574 1.943 1.943 0 0 1-.174-2.196c.4-.684 1.2-1.066 1.981-.927.928.156 1.588.968 1.606 1.9.011.748 1.17.748 1.158 0a3.138 3.138 0 0 0-2.08-2.914c-1.176-.423-2.567-.029-3.36.933-.83 1.002-.968 2.45-.284 3.575.678 1.124 1.993 1.675 3.273 1.431 1.432-.272 2.428-1.593 2.451-3.019.012-.753-1.147-.753-1.158-.005ZM16.563 23.392a2.503 2.503 0 1 0 0-5.006 2.503 2.503 0 0 0 0 5.006Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M18.487 20.89c-.012.787-.487 1.512-1.229 1.796a1.954 1.954 0 0 1-2.184-.574 1.943 1.943 0 0 1-.174-2.196c.4-.684 1.2-1.066 1.981-.927.928.156 1.588.967 1.606 1.9.011.748 1.17.748 1.158 0a3.138 3.138 0 0 0-2.08-2.914c-1.176-.423-2.567-.03-3.36.933-.83 1.002-.968 2.45-.284 3.575.678 1.124 1.993 1.674 3.273 1.431 1.432-.272 2.428-1.593 2.451-3.019.012-.753-1.147-.753-1.158-.006ZM7.378 5.622a2.503 2.503 0 1 0 0-5.007 2.503 2.503 0 0 0 0 5.007Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M9.302 3.119c-.011.788-.486 1.512-1.228 1.796a1.954 1.954 0 0 1-2.185-.574 1.943 1.943 0 0 1-.173-2.196c.4-.684 1.199-1.066 1.981-.927a1.943 1.943 0 0 1 1.605 1.9c.012.748 1.17.748 1.16 0A3.138 3.138 0 0 0 8.38.205c-1.176-.423-2.567-.029-3.36.933-.83 1.002-.968 2.45-.285 3.575.678 1.124 1.994 1.675 3.274 1.431 1.431-.272 2.428-1.593 2.451-3.019.012-.753-1.147-.753-1.159-.005ZM7.378 14.406a2.503 2.503 0 1 0 0-5.006 2.503 2.503 0 0 0 0 5.006Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M9.302 11.902c-.011.788-.486 1.513-1.228 1.797a1.954 1.954 0 0 1-2.185-.574 1.943 1.943 0 0 1-.173-2.196c.4-.684 1.199-1.066 1.981-.927a1.943 1.943 0 0 1 1.605 1.9c.012.748 1.17.748 1.16 0A3.138 3.138 0 0 0 8.38 8.988c-1.176-.423-2.567-.03-3.36.933-.83 1.002-.968 2.45-.285 3.575.678 1.124 1.994 1.674 3.274 1.431 1.431-.272 2.428-1.593 2.451-3.019.012-.753-1.147-.753-1.159-.006ZM7.378 23.427a2.503 2.503 0 1 0 0-5.007 2.503 2.503 0 0 0 0 5.007Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M9.302 20.924c-.011.788-.486 1.513-1.228 1.797a1.954 1.954 0 0 1-2.185-.574 1.943 1.943 0 0 1-.173-2.196c.4-.684 1.199-1.066 1.981-.927.933.156 1.594.967 1.605 1.9.012.748 1.17.748 1.16 0A3.139 3.139 0 0 0 8.38 18.01c-1.176-.423-2.567-.03-3.36.933-.83 1.002-.968 2.45-.285 3.569.678 1.124 1.994 1.675 3.274 1.431 1.431-.272 2.428-1.593 2.451-3.019.012-.747-1.147-.747-1.159 0Z"})]}),c=f},86308:function(y,m,n){"use strict";n.d(m,{Z:function(){return c}});var r=n(74512);const f=_=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",..._,children:[(0,r.jsx)("circle",{cx:12,cy:12,r:12,fill:"#212134"}),(0,r.jsx)("path",{fill:"#F6F6F9",d:"M17 12.569c0 .124-.1.224-.225.224h-3.981v3.982c0 .124-.101.225-.226.225h-1.136a.225.225 0 0 1-.226-.225v-3.981H7.226A.225.225 0 0 1 7 12.567v-1.136c0-.125.1-.226.225-.226h3.982V7.226c0-.124.1-.225.224-.225h1.138c.124 0 .224.1.224.225v3.982h3.982c.124 0 .225.1.225.224v1.138Z"})]}),c=f}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[6970],{55433:function(U,p,e){e.d(p,{r:function(){return g}});var o=e(32735),l=e(60216),m=e.n(l),h=e(74506),v=e(72850);function E(c,T,a){if(!c||!T)return{display:"none"};const{x:d,y:C}=a;return{transform:`translate(${d}px, ${C}px)`}}function g({renderItem:c}){const{itemType:T,isDragging:a,item:d,initialOffset:C,currentOffset:k,mouseOffset:B}=(0,h.useDragLayer)(P=>({item:P.getItem(),itemType:P.getItemType(),initialOffset:P.getInitialSourceClientOffset(),currentOffset:P.getSourceClientOffset(),isDragging:P.isDragging(),mouseOffset:P.getClientOffset()}));return a?o.createElement(v.x,{height:"100%",left:0,position:"fixed",pointerEvents:"none",top:0,zIndex:100,width:"100%"},o.createElement(v.x,{style:E(C,k,B)},c({type:T,item:d}))):null}g.propTypes={renderItem:m().func.isRequired}},73386:function(U,p,e){var o=e(32735);const l=(0,o.createContext)();var m=null},56327:function(U,p,e){e.d(p,{PL:function(){return v},Y9:function(){return Te.Y},zE:function(){return J},Ky:function(){return r},fi:function(){return D},zH:function(){return ge},r5:function(){return V}});var o=e(32735),l=e(15062),m=e(70031),v=()=>{const t=(0,l.v9)(m.Z),s=(0,o.useCallback)(n=>t?.components?.[n]??{},[t]);return{...t,getComponentLayout:s}},E=e(84306),g=e(24989),c=e(99381),T=e.n(c),a=e(33795),d=e.n(a),C=e(3040),k=e.n(C),B=e(95952);const P=(t,s)=>s.find(n=>n.uid===t),G=(t,s)=>{const n=w(t,s),i=H(n.contentType,s),O=q(n.contentType,n.components);return k()(n,["contentType","layouts","edit"],i),k()(n,["contentType","layouts","list"],O),Object.keys(n.components).forEach(f=>{const A=H(n.components[f],s);k()(n,["components",f,"layouts","edit"],A)}),n},w=(t,s)=>{const n=(0,B.w8)(T()(t),s,"contentType"),{components:i,contentType:O}=n,f=A=>Object.keys(A.metadatas).reduce((W,I)=>{const b=d()(A,["attributes",I],{});let x=A.metadatas[I];if(b.type==="relation"){const fe=P(b.targetModel,s),j=x.edit.mainField,z={name:j,schema:d()(fe,["attributes",j])};x={list:{...x.list,mainField:z},edit:{...x.edit,mainField:z}}}return W[I]=x,W},{});return k()(n,["contentType","metadatas"],f(O)),Object.keys(i).forEach(A=>{const W=i[A],I=f(W);k()(n,["components",A,"metadatas"],I)}),n},H=(t,s)=>t.layouts.edit.reduce((n,i)=>{const O=i.map(f=>{const A=d()(t,["attributes",f.name],{}),W={...f,fieldSchema:A,metadatas:d()(t,["metadatas",f.name,"edit"],{})};if(A.type==="relation"){const b=P(A.targetModel,s).pluginOptions||{};k()(W,"targetModelPluginOptions",b),k()(W,"queryInfos",{shouldDisplayRelationLink:re(t,f.name,s)})}return W});return n.push(O),n},[]),q=(t,s)=>t.layouts.list.reduce((i,O)=>{const f=d()(t,["attributes",O],{}),A=d()(t,["metadatas",O,"list"],{}),W=f.type;if(W==="relation")return i.push({key:`__${O}_key__`,name:O,fieldSchema:f,metadatas:A}),i;if(W==="component"){const I=s[f.component],b=I.settings.mainField,x=I.attributes[b];return i.push({key:`__${O}_key__`,name:O,fieldSchema:f,metadatas:{...A,mainField:{...x,name:b}}}),i}return i.push({key:`__${O}_key__`,name:O,fieldSchema:f,metadatas:A}),i},[]),re=(t,s,n)=>{const i=d()(t,["attributes",s,"targetModel"],"");return ee(n).includes(i)},ee=t=>t.filter(s=>s.isDisplayed).map(({uid:s})=>s);var X=G,te=e(97889);const K={error:null,isLoading:!0,layout:{},layouts:{}};var Q=(t,s)=>(0,te.ZP)(t,n=>{switch(s.type){case"GET_DATA":{n.isLoading=!0,n.error=null,n.layout={};break}case"GET_DATA_SUCCEEDED":{const i=s.data.contentType.uid;n.layout=s.data,n.layouts[i]=s.data,n.isLoading=!1;break}case"GET_DATA_ERROR":{n.isLoading=!1,n.error=s.error;break}case"SET_LAYOUT_FROM_STATE":{n.error=null,n.layout=t.layouts[s.uid];break}case"UPDATE_LAYOUT":{const i=t.layout;n.layout={...i,contentType:{uid:i.contentType.uid,...s.newLayout.contentType}},n.layouts[i.contentType.uid]={...i,contentType:{uid:i.contentType.uid,...s.newLayout.contentType}};break}default:return n}}),Y=e(42882),J=t=>{const[{error:s,isLoading:n,layout:i,layouts:O},f]=(0,o.useReducer)(Q,K),A=(0,o.useMemo)(Y.Vo,[]),{schemas:W}=(0,l.v9)(j=>A(j),l.wU),I=(0,o.useRef)(!0),{get:b}=(0,g.kY)(),x=(0,o.useCallback)(async(j,z)=>{if(O[j]){f({type:"SET_LAYOUT_FROM_STATE",uid:j});return}f({type:"GET_DATA"});try{const{data:{data:oe}}=await b(`/content-manager/content-types/${j}/configuration`,{cancelToken:z.token});f({type:"GET_DATA_SUCCEEDED",data:X(oe,W)})}catch(oe){if(E.default.isCancel(oe))return;I.current&&console.error(oe),I.current&&f({type:"GET_DATA_ERROR",error:oe})}},[O,W,b]);(0,o.useEffect)(()=>()=>{I.current=!1},[]),(0,o.useEffect)(()=>{const z=E.default.CancelToken.source();return x(t,z),()=>{z.cancel("Operation canceled by the user.")}},[t,x]);const fe=(0,o.useCallback)(j=>{f({type:"UPDATE_LAYOUT",newLayout:X(j,W)})},[W]);return{error:s,isLoading:n,layout:i,updateLayout:fe}},_=t=>t["content-manager_app"].collectionTypeLinks,Z=e(33348),ie=e(85973),me=e.n(ie);const ue=(t,s)=>Object.keys(t).reduce((n,i)=>{const O=t[i],f=d()(s,[i],O);return me()(O)?{...n,[i]:ue(O,f)}:(n[i]=f,n)},{});var ye=(t,s,n)=>{const i=t.find(({to:x})=>x.includes(s));if(!i)return"/";const{to:O,search:f}=i,A=(0,Z.parse)(f),W=(0,Z.parse)(n.substring(1)),I=ue(A,W);return`${O}?${(0,Z.stringify)(I,{encode:!1})}`},r=t=>{const[{rawQuery:s}]=(0,g.Kx)(),n=(0,l.v9)(_);return ye(n,t,s)},u=e(53038),D=()=>{const{search:t}=(0,u.TH)(),s=t?(0,Z.parse)(t.substring(1)):{};return s.plugins?(0,Z.stringify)({plugins:s.plugins},{encode:!1}):""},F=e(89334);const N=(t,s,n)=>({type:F.m,permissions:t,__meta__:{plugins:s,containerName:n}}),R=()=>({type:F.Q}),L=t=>t["content-manager_rbacManager"].permissions,M=t=>t.rbacProvider.collectionTypesRelatedPermissions;var V=(t,s,n="listView")=>{const i=(0,l.v9)(M),O=(0,l.v9)(L),f=(0,l.I0)(),A=i[s];return(0,o.useEffect)(()=>A?(f(N(A,t?t.plugins:null,n)),()=>{f(R())}):()=>{},[A,f,t,n]),O},ce=e(73386);const $=()=>useContext(WysiwygContext);var se=null;const ge=t=>{const s=(0,o.useRef)();return(0,o.useEffect)(()=>{s.current=t},[t]),s.current};var Te=e(90553),ve=e(18777)},90553:function(U,p,e){e.d(p,{Y:function(){return v}});var o=e(32735),l=e(74506),m=e.n(l),h=e(18777);const v=(E,{type:g="STRAPI_DND",index:c,item:T={},onStart:a,onEnd:d,onGrabItem:C,onDropItem:k,onCancel:B,onMoveItem:P,dropSensitivity:G="regular"})=>{const w=(0,o.useRef)(null),[{handlerId:H},q]=(0,l.useDrop)({accept:g,collect(K){return{handlerId:K.getHandlerId()}},hover(K,ae){if(!w.current)return;const Q=K.index,Y=c;if(Q!==Y){if(G==="regular"){const ne=w.current.getBoundingClientRect(),J=(ne.bottom-ne.top)/2,_=ae.getClientOffset().y-ne.top;if(Q<Y&&_<J||Q>Y&&_>J)return}P(Y,Q),K.index=Y}}}),[{isDragging:re},ee,X]=(0,l.useDrag)({type:g,item(){a&&a();const{width:K}=w.current?.getBoundingClientRect()??{};return{index:c,width:K,...T}},end(){d&&d()},canDrag:E,isDragging:T.id?K=>T.id===K.getItem().id:void 0,collect:K=>({isDragging:K.isDragging()})}),te=(0,h.A)(E,c,{onGrabItem:C,onDropItem:k,onCancel:B,onMoveItem:P});return[{handlerId:H,isDragging:re,handleKeyDown:te},w,q,ee,X]}},18777:function(U,p,e){e.d(p,{A:function(){return l}});var o=e(32735);const l=(m,h,{onCancel:v,onDropItem:E,onGrabItem:g,onMoveItem:c})=>{const[T,a]=(0,o.useState)(!1),d=P=>{T&&(P==="UP"?c(h-1,h):P==="DOWN"&&c(h+1,h))},C=()=>{T?(E&&E(h),a(!1)):(g&&g(h),a(!0))},k=()=>{T&&(a(!1),v&&v(h))};return P=>{if(m&&!(P.key==="Tab"&&!T))switch(P.preventDefault(),P.key){case" ":case"Enter":C();break;case"Escape":k();break;case"ArrowDown":case"ArrowRight":d("DOWN");break;case"ArrowUp":case"ArrowLeft":d("UP");break;default:}}}},42882:function(U,p,e){e.d(p,{Jg:function(){return c},KQ:function(){return E},Vo:function(){return g},Yg:function(){return m}});var o=e(98178),l=e(34947);const m=()=>a=>a["content-manager_app"]||l.E,h=()=>createSelector(m(),a=>a),v=()=>createSelector(m(),a=>a.models),E=()=>(0,o.P1)(m(),a=>({collectionTypeLinks:a.collectionTypeLinks,singleTypeLinks:a.singleTypeLinks})),g=()=>(0,o.P1)(m(),({components:a,models:d})=>({schemas:[...a,...d]})),c=(0,o.P1)(m(),a=>a.fieldSizes);var T=null},70031:function(U,p){const e=o=>o["content-manager_editViewLayoutManager"].currentLayout;p.Z=e},25708:function(U,p){p.Z={COMPONENT:"component",EDIT_FIELD:"editField",FIELD:"field",DYNAMIC_ZONE:"dynamicZone",RELATION:"relation"}},47510:function(U,p){const e=o=>`content-manager.${o}`;p.Z=e},95952:function(U,p,e){e.d(p,{_Q:function(){return _.Z},W3:function(){return h},ko:function(){return c},FE:function(){return a},Di:function(){return B},du:function(){return H},TA:function(){return ee},Ts:function(){return ae},Uo:function(){return Y},IF:function(){return J},OB:function(){return de.Z},w8:function(){return ue},kc:function(){return pe}});var o=e(99381),l=e.n(o),h=(r,u,y)=>{if(Array.isArray(r)&&u>=0&&y>=0&&u<=r.length-1&&y<=r.length-1){const D=l()(r),F=D.splice(u,1);return D.splice(y,0,F[0]),D}return r},v=e(59578),E=e.n(v),c=r=>{const u=r.type;return u==="relation"?!E()(r.relationType).includes("morph"):!["json","dynamiczone","richtext","password"].includes(u)&&!!u};const T=(r,u)=>{typeof r=="function"?r(u):r!=null&&(r.current=u)},a=(...r)=>u=>r.forEach(y=>T(y,u));var d=e(33795),C=e.n(d);const k=(r,u)=>Object.keys(r).reduce((y,D)=>{const F=C()(r,[D],{}),{default:N,component:R,type:L,required:M,min:S,repeatable:V}=F;if(N!==void 0&&(y[D]=N),L==="component"){const ce=u?.[R]?.attributes??{},$=k(ce,u);if(M===!0&&(y[D]=V===!0?[]:$),S&&V===!0&&M){y[D]=[];for(let se=0;se<S;se+=1)y[D].push($)}}return L==="dynamiczone"&&M===!0&&(y[D]=[]),y},{});var B=k,P=e(9086),G=e.n(P),H=({layouts:r,metadatas:u,...y})=>{const D=r.list.map(R=>R.name?R.name:R),F=Object.keys(u).reduce((R,L)=>{const M=C()(u,[L],{});let S=M.edit;return S.mainField&&(S={...S,mainField:M.edit.mainField.name}),{...R,[L]:{edit:S,list:G()(M.list,["mainField"])}}},{}),N=r.edit.map(R=>R.map(({name:L,size:M})=>({name:L,size:M})));return{...y,layouts:{edit:N,list:D},metadatas:F}};const q=(r,u)=>r.map(y=>({...y,subject:u}));var ee=r=>{const u={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(u).reduce((y,D)=>(y[D]=q(u[D],r),y),{})},X=e(95919),te=e.n(X),ae=r=>r.split(".").filter(u=>te()(parseInt(u,10))),Y=r=>{if(r.length===0)return-1;const u=Math.max.apply(Math,r.map(y=>y.__temp_key__??0));return Number.isNaN(u)?-1:u},J=r=>`/content-manager/${r}`,de=e(47510),_=e(25708),Z=e(3040),ie=e.n(Z),ue=(r,u,y)=>{const D=L=>u.find(M=>M.uid===L),F=Object.assign({},r),N=r[y].uid,R=D(N);return ie()(F,[y],{...r[y],...R}),Object.keys(r.components).forEach(L=>{const M=D(L);ie()(F,["components",L],{...r.components[L],...M})}),F},le=e(24989),pe=(r,u,y)=>{const D=(F,N)=>Object.keys(F).reduce((R,L)=>{const M=(0,le.UN)(N,L),S=C()(F,L),V=(0,le.k2)(N,[L,"component"]),ce=(0,le.k2)(N,[L,"repeatable"]);return M==="dynamiczone"?(R[L]=S.map($=>D($,y[$.__component])),R):M==="component"?(ce?R[L]=S&&S.map($=>D($,y[V])):R[L]=S&&D(S,y[V]),R):(M!=="password"&&(R[L]=S),R)},{});return D(r,u)}},28315:function(U,p,e){e.d(p,{K:function(){return c}});var o=e(32735),l=e(60216),m=e.n(l),h=e(67582),v=e(87933),E=e(49372),g=e(54504);function c({children:T,...a}){const{color:d}=a.data,{themeColorName:C}=(0,g.k)(d);return o.createElement(h.c.Option,{...a},o.createElement(v.k,{alignItems:"center",gap:2},o.createElement(v.k,{height:2,background:d,borderColor:C==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2}),o.createElement(E.Z,{textColor:"neutral800",ellipsis:!0},T)))}c.propTypes={children:m().node.isRequired,data:m().shape({color:m().string}).isRequired}},8445:function(U,p,e){e.d(p,{R:function(){return c}});var o=e(32735),l=e(60216),m=e.n(l),h=e(67582),v=e(87933),E=e(49372),g=e(54504);function c({children:T,...a}){const{color:d}=a.data,{themeColorName:C}=d?(0,g.k)(d):{};return o.createElement(h.c.SingleValue,{...a},o.createElement(v.k,{alignItems:"center",gap:2},o.createElement(v.k,{height:2,background:d,borderColor:C==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2}),o.createElement(E.Z,{textColor:"neutral800",ellipsis:!0},T)))}c.defaultProps={children:null},c.propTypes={children:m().node,data:m().shape({color:m().string}).isRequired}},61937:function(U,p,e){e.d(p,{$k:function(){return g},FT:function(){return T},Nj:function(){return E},Ot:function(){return v},QM:function(){return m},lv:function(){return c},sN:function(){return l},uL:function(){return a},x4:function(){return h}});var o=e(12301);const l="settings_review-workflows",m="Settings/Review_Workflows/SET_WORKFLOWS",h="Settings/Review_Workflows/WORKFLOW_DELETE_STAGE",v="Settings/Review_Workflows/WORKFLOW_ADD_STAGE",E="Settings/Review_Workflows/WORKFLOW_UPDATE_STAGE",g="Settings/Review_Workflows/WORKFLOW_UPDATE_STAGE_POSITION",c={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"},T=o.W.colors.primary600,a={STAGE:"stage"}},67350:function(U,p,e){e.d(p,{n:function(){return v}});var o=e(20108),l=e(24989),m=e(33348),h=e.n(m);function v(E={}){const{id:g="",...c}=E,T={populate:"stages"},{get:a}=(0,l.kY)(),d=(0,m.stringify)({...T,...c},{encode:!1}),{data:C,isLoading:k,status:B,refetch:P}=(0,o.useQuery)(["review-workflows","workflows",g],async()=>{try{const{data:{data:w}}=await a(`/admin/review-workflows/workflows/${g}${d?`?${d}`:""}`);return w}catch{return null}});let G=[];return g&&C?G=[C]:Array.isArray(C)&&(G=C),{workflows:G,isLoading:k,status:B,refetch:P}}},54504:function(U,p,e){e.d(p,{k:function(){return m},s:function(){return h}});var o=e(12301),l=e(61937);function m(v){if(!v)return null;const g=Object.entries(o.W.colors).filter(([,c])=>c.toUpperCase()===v.toUpperCase()).reduce((c,[T])=>(l.lv?.[T]&&(c=T),c),null);return g?{themeColorName:g,name:l.lv[g]}:null}function h(){return Object.entries(l.lv).map(([v,E])=>({hex:o.W.colors[v].toUpperCase(),name:E}))}}}]);
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[801],{29761:function(Q,S,n){n.r(S),n.d(S,{default:function(){return $t}});var e=n(32735),s=n(24989),L=n(20108),v=n(33795),O=n.n(v),P=JSON.parse('{"i8":"4.11.0-exp.push-transfer-push-stuck"}'),C=n(32308),f=n(53038),y=n(15062),G=n(74506),z=n(51968),K=n(88311),ne=n.n(K),Le=n(58107),T=n(8471),Oe=n(60216),r=n.n(Oe),Z=n(67879),m=n(87933),ae=n(71933),oe=n(67563),xe=n(50563),M=n(72850),V=n(41415),se=n(35331);const be=(0,T.ZP)(m.k)`
|
|
2
|
-
position: fixed;
|
|
3
|
-
z-index: 4;
|
|
4
|
-
inset: 0;
|
|
5
|
-
/* this is theme.colors.neutral800 with opacity */
|
|
6
|
-
background: ${({theme:t})=>`${t.colors.neutral800}1F`};
|
|
7
|
-
`,re=({onClose:t,onSkip:a,children:o,hideSkip:i})=>{const{formatMessage:d}=(0,Z.Z)();return e.createElement(ae.h,null,e.createElement(be,{onClick:t,padding:8,justifyContent:"center"},e.createElement(oe.i,{onEscape:t},e.createElement(m.k,{direction:"column",alignItems:"stretch",background:"neutral0",width:(0,s.Q1)(660),shadow:"popupShadow",hasRadius:!0,padding:4,gap:8,role:"dialog","aria-modal":!0,onClick:u=>u.stopPropagation()},e.createElement(m.k,{justifyContent:"flex-end"},e.createElement(xe.h,{onClick:t,"aria-label":d({id:"app.utils.close-label",defaultMessage:"Close"}),icon:e.createElement(se.Z,null)})),e.createElement(M.x,{paddingLeft:7,paddingRight:7,paddingBottom:i?8:0},o),!i&&e.createElement(m.k,{justifyContent:"flex-end"},e.createElement(V.z,{variant:"tertiary",onClick:a},d({id:"app.components.GuidedTour.skip",defaultMessage:"Skip the tour"})))))))};re.propTypes={children:r().node.isRequired,onClose:r().func.isRequired,onSkip:r().func.isRequired,hideSkip:r().bool.isRequired};var De=re,ie=n(97889);const le={stepContent:null,sectionIndex:null,stepIndex:null,hasSectionAfter:!1,hasStepAfter:!1};var ke=(t=le,a)=>(0,ie.ZP)(t,o=>{switch(a.type){case"UPDATE_MODAL":{o.stepContent=a.content,o.sectionIndex=a.newSectionIndex,o.stepIndex=a.newStepIndex,o.hasSectionAfter=a.newHasSectionAfter,o.hasStepAfter=a.newHasStepAfter;break}default:return o}}),E=n(49372),ce=n(8482);const Ze=T.ZP.li`
|
|
8
|
-
list-style: disc;
|
|
9
|
-
&::marker {
|
|
10
|
-
color: ${({theme:t})=>t.colors.neutral800};
|
|
11
|
-
}
|
|
12
|
-
`,de=({id:t,defaultMessage:a})=>{const{formatMessage:o}=(0,Z.Z)();return e.createElement(m.k,{direction:"column",alignItems:"stretch",gap:4,paddingBottom:6},o({id:t,defaultMessage:a},{documentationLink:Be,b:We,p:Ge,light:Ne,ul:Ue,li:Fe}))},Be=t=>e.createElement(E.Z,{as:"a",textColor:"primary600",target:"_blank",rel:"noopener noreferrer",href:"https://docs.strapi.io/developer-docs/latest/developer-resources/database-apis-reference/rest-api.html#api-parameters"},t),We=t=>e.createElement(E.Z,{fontWeight:"semiBold"},t),Ge=t=>e.createElement(E.Z,null,t),Ne=t=>e.createElement(E.Z,{textColor:"neutral600"},t),Ue=t=>e.createElement(M.x,{paddingLeft:6},e.createElement("ul",null,t)),Fe=t=>e.createElement(Ze,null,t);de.propTypes={id:r().string.isRequired,defaultMessage:r().string.isRequired};var je=de,Y=n(78024),$e=n(14317);const w=({number:t,last:a,type:o})=>e.createElement(M.x,{paddingTop:3,paddingBottom:a?0:3},e.createElement($e.Z,{number:t,type:o}));w.defaultProps={number:void 0,last:!1,type:""},w.propTypes={number:r().number,last:r().bool,type:r().string};var ue=w,B=n(23678);const J=({title:t,content:a,cta:o,onCtaClick:i,sectionIndex:d,stepIndex:u,hasSectionAfter:h})=>{const{formatMessage:p}=(0,Z.Z)(),g=d>0,l=u>0,I=d+1;return e.createElement(e.Fragment,null,e.createElement(m.k,{alignItems:"stretch"},e.createElement(m.k,{marginRight:8,justifyContent:"center",minWidth:(0,s.Q1)(30)},g&&e.createElement(Y.Z,{type:B.hx,minHeight:(0,s.Q1)(24)})),e.createElement(E.Z,{variant:"sigma",textColor:"primary600"},p({id:"app.components.GuidedTour.title",defaultMessage:"3 steps to get started"}))),e.createElement(m.k,null,e.createElement(m.k,{marginRight:8,minWidth:(0,s.Q1)(30)},e.createElement(ue,{number:d+1,type:l?B.hx:B.lW})),e.createElement(E.Z,{variant:"alpha",fontWeight:"bold",textColor:"neutral800",as:"h3",id:"title"},p(t))),e.createElement(m.k,{alignItems:"stretch"},e.createElement(m.k,{marginRight:8,direction:"column",justifyContent:"center",minWidth:(0,s.Q1)(30)},h&&e.createElement(e.Fragment,null,e.createElement(Y.Z,{type:B.hx}),l&&e.createElement(ue,{number:I+1,type:B.lW,last:!0}))),e.createElement(M.x,null,e.createElement(je,{...a}),o&&(o.target?e.createElement(s.Qj,{endIcon:e.createElement(ce.Z,null),onClick:i,to:o.target},p(o.title)):e.createElement(V.z,{endIcon:e.createElement(ce.Z,null),onClick:i},p(o.title))))),l&&h&&e.createElement(M.x,{paddingTop:3},e.createElement(m.k,{marginRight:8,justifyContent:"center",width:(0,s.Q1)(30)},e.createElement(Y.Z,{type:B.hx,minHeight:(0,s.Q1)(24)}))))};J.defaultProps={currentStep:null,cta:void 0},J.propTypes={sectionIndex:r().number.isRequired,stepIndex:r().number.isRequired,hasSectionAfter:r().bool.isRequired,content:r().shape({id:r().string.isRequired,defaultMessage:r().string.isRequired}).isRequired,cta:r().shape({target:r().string,title:r().shape({id:r().string.isRequired,defaultMessage:r().string.isRequired})}),currentStep:r().string,onCtaClick:r().func.isRequired,title:r().shape({id:r().string.isRequired,defaultMessage:r().string.isRequired}).isRequired};var Qe=J,ze=()=>{const{currentStep:t,guidedTourState:a,setCurrentStep:o,setStepState:i,isGuidedTourVisible:d,setSkipped:u}=(0,s.c1)(),[h,p]=(0,e.useState)(t),[{stepContent:g,sectionIndex:l,stepIndex:I,hasSectionAfter:x,hasStepAfter:U},F]=(0,e.useReducer)(ke,le),{trackUsage:W}=(0,s.rS)();(0,e.useEffect)(()=>{if(!t){p(!1);return}const[b]=ne()(a,t);p(!b&&d)},[t,a,d]),(0,e.useEffect)(()=>{if(t){const[b]=ne()(Le.Z,t),R=Object.keys(a),[D,c]=t.split("."),k=R.indexOf(D),H=Object.keys(a[D]).indexOf(c),$=k<R.length-1,Qt=H<Object.keys(a[D]).length-1;F({type:"UPDATE_MODAL",content:b,newSectionIndex:k,newStepIndex:H,newHasSectionAfter:$,newHasStepAfter:Qt})}},[t,a]);const A=()=>{i(t,!0),W(g.trackingEvent),o(null)},j=()=>{u(!0),o(null),W("didSkipGuidedtour")};return h&&g?e.createElement(De,{hideSkip:!U&&!x,onSkip:j,onClose:A},e.createElement(Qe,{...g,onCtaClick:A,currentStep:t,sectionIndex:l,stepIndex:I,hasSectionAfter:x})):null},N=n(14911),pe=n(9026),Ke=n(15300),He=n(61450),Ve=n(1897),X=n(78464),me=n(42889),Ye=n(25390),we=n(64838),Je=n(9371),Xe=n(73165),qe=n(92967);const _e=(0,T.ZP)(M.x)`
|
|
13
|
-
width: ${150/16}rem;
|
|
14
|
-
position: absolute;
|
|
15
|
-
bottom: ${({theme:t})=>t.spaces[9]};
|
|
16
|
-
left: ${({theme:t})=>t.spaces[5]};
|
|
17
|
-
`,ge=(0,T.ZP)(N.OL)`
|
|
18
|
-
display: flex;
|
|
19
|
-
justify-content: space-between;
|
|
20
|
-
align-items: center;
|
|
21
|
-
text-decoration: none;
|
|
22
|
-
padding: ${({theme:t})=>`${t.spaces[2]} ${t.spaces[4]}`};
|
|
23
|
-
border-radius: ${({theme:t})=>t.spaces[1]};
|
|
24
|
-
|
|
25
|
-
&:hover {
|
|
26
|
-
background: ${({theme:t,logout:a})=>a?t.colors.danger100:t.colors.primary100};
|
|
27
|
-
text-decoration: none;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
svg {
|
|
31
|
-
path {
|
|
32
|
-
fill: ${({theme:t})=>t.colors.danger600};
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
`,he=({generalSectionLinks:t,pluginsSectionLinks:a})=>{const o=(0,e.useRef)(),[i,d]=(0,e.useState)(!1),{logos:{menu:u}}=(0,C.um)(),[h,p]=(0,s.Yw)("navbar-condensed",!1),{userDisplayName:g}=(0,s.L7)(),{formatMessage:l}=(0,Z.Z)(),{trackUsage:I}=(0,s.rS)(),{pathname:x}=(0,f.TH)(),U=(0,f.k6)(),{post:F}=(0,s.tg)(),W=g.split(" ").map(c=>c.substring(0,1)).join("").substring(0,2),A=()=>d(c=>!c),j=async()=>{await F("/admin/logout"),s.I8.clearAppStorage(),A(),U.push("/auth/login")},b=c=>{!c.currentTarget.contains(c.relatedTarget)&&c.relatedTarget?.parentElement?.id!=="main-nav-user-button"&&d(!1)},R=(c=null)=>{I("willNavigate",{from:x,to:c})},D=l({id:"app.components.LeftMenu.navbrand.title",defaultMessage:"Strapi Dashboard"});return e.createElement(Ke.$,{condensed:h},e.createElement(He.D,{as:N.OL,workplace:l({id:"app.components.LeftMenu.navbrand.workplace",defaultMessage:"Workplace"}),title:D,icon:e.createElement("img",{src:u.custom||u.default,alt:l({id:"app.components.LeftMenu.logo.alt",defaultMessage:"Application logo"})})}),e.createElement(pe.i,null),e.createElement(Ve._,null,e.createElement(X.O,{as:N.OL,to:"/content-manager",icon:e.createElement(Xe.Z,null),onClick:()=>R("/content-manager")},l({id:"global.content-manager",defaultMessage:"Content manager"})),a.length>0?e.createElement(me.y,{label:l({id:"app.components.LeftMenu.plugins",defaultMessage:"Plugins"})},a.map(c=>{const k=c.icon;return e.createElement(X.O,{as:N.OL,to:c.to,key:c.to,icon:e.createElement(k,null),onClick:()=>R(c.to)},l(c.intlLabel))})):null,t.length>0?e.createElement(me.y,{label:l({id:"app.components.LeftMenu.general",defaultMessage:"General"})},t.map(c=>{const k=c.icon;return e.createElement(X.O,{as:N.OL,badgeContent:c.notificationsCount>0&&c.notificationsCount.toString()||void 0,to:c.to,key:c.to,icon:e.createElement(k,null),onClick:()=>R(c.to)},l(c.intlLabel))})):null),e.createElement(Ye.q,null,e.createElement(we.r,{id:"main-nav-user-button",ref:o,onClick:A,initials:W},g),i&&e.createElement(_e,{onBlur:b,padding:1,shadow:"tableShadow",background:"neutral0",hasRadius:!0},e.createElement(oe.i,{onEscape:A},e.createElement(m.k,{direction:"column",alignItems:"stretch",gap:0},e.createElement(ge,{tabIndex:0,onClick:A,to:"/me"},e.createElement(E.Z,null,l({id:"global.profile",defaultMessage:"Profile"}))),e.createElement(ge,{tabIndex:0,onClick:j,logout:"logout",to:"/auth/login"},e.createElement(E.Z,{textColor:"danger600"},l({id:"app.components.LeftMenu.logout",defaultMessage:"Logout"})),e.createElement(qe.Z,null))))),e.createElement(Je.w,{onClick:()=>p(c=>!c)},l(h?{id:"app.components.LeftMenu.expand",defaultMessage:"Expand the navbar"}:{id:"app.components.LeftMenu.collapse",defaultMessage:"Collapse the navbar"}))))};he.propTypes={generalSectionLinks:r().array.isRequired,pluginsSectionLinks:r().array.isRequired};var et=he,tt=n(10728);const nt=(0,T.ZP)(M.x)`
|
|
36
|
-
flex: 1;
|
|
37
|
-
`,fe=({children:t,sideNav:a})=>{const{formatMessage:o}=(0,Z.Z)();return e.createElement(M.x,{background:"neutral100"},e.createElement(tt.z,null,o({id:"skipToContent",defaultMessage:"Skip to content"})),e.createElement(m.k,{alignItems:"flex-start"},a,e.createElement(nt,null,t)))};fe.propTypes={children:r().node.isRequired,sideNav:r().node.isRequired};var at=fe,q=n(8997),ot=n(26648),_=n(99140),st=n(28351),rt=n(3685),it=n(45323),lt=n(29685),ct=n(2438),dt=n.p+"19eb2dfcf2603eb55733.png",ut=n(37272),pt=n(78429);const mt=[{label:{id:"app.components.Onboarding.link.build-content",defaultMessage:"Build a content architecture"},href:"https://www.youtube.com/watch?v=G9GjN0RxhkE",duration:"5:48"},{label:{id:"app.components.Onboarding.link.manage-content",defaultMessage:"Add & manage content"},href:"https://www.youtube.com/watch?v=DEZw4KbybAI",duration:"3:18"},{label:{id:"app.components.Onboarding.link.manage-media",defaultMessage:"Manage media"},href:"https://www.youtube.com/watch?v=-61MuiMQb38",duration:"3:41"}],Ee={href:"https://www.youtube.com/playlist?list=PL7Q0DQYATmvidz6lEmwE5nIcOAYagxWqq",label:{id:"app.components.Onboarding.link.more-videos",defaultMessage:"Watch more videos"}},gt=[{label:{id:"global.documentation",defaultMessage:"documentation"},href:"https://docs.strapi.io",icon:ut.Z},{label:{id:"app.static.links.cheatsheet",defaultMessage:"cheatsheet"},href:"https://strapi-showcase.s3-us-west-2.amazonaws.com/CheatSheet.pdf",icon:pt.Z}],ht=(0,T.ZP)(V.z)`
|
|
38
|
-
border-radius: 50%;
|
|
39
|
-
padding: ${({theme:t})=>t.spaces[3]};
|
|
40
|
-
/* Resetting 2rem height defined by Button component */
|
|
41
|
-
height: 100%;
|
|
42
|
-
`,ft=(0,T.ZP)(m.k)`
|
|
43
|
-
transform: translate(-50%, -50%);
|
|
44
|
-
`,Et=(0,T.ZP)(m.k)`
|
|
45
|
-
text-decoration: none;
|
|
46
|
-
|
|
47
|
-
:focus-visible {
|
|
48
|
-
outline-offset: ${({theme:t})=>`-${t.spaces[1]}`};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
:hover {
|
|
52
|
-
background: ${({theme:t})=>t.colors.primary100};
|
|
53
|
-
|
|
54
|
-
/* Hover style for the number displayed */
|
|
55
|
-
${E.Z}:first-child {
|
|
56
|
-
color: ${({theme:t})=>t.colors.primary500};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/* Hover style for the label */
|
|
60
|
-
${E.Z}:nth-child(1) {
|
|
61
|
-
color: ${({theme:t})=>t.colors.primary600};
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
`,yt=T.ZP.img`
|
|
65
|
-
width: ${({theme:t})=>t.spaces[10]};
|
|
66
|
-
height: ${({theme:t})=>t.spaces[8]};
|
|
67
|
-
/* Same overlay used in ModalLayout */
|
|
68
|
-
background: ${({theme:t})=>`${t.colors.neutral800}1F`};
|
|
69
|
-
border-radius: ${({theme:t})=>t.borderRadius};
|
|
70
|
-
`,ye=(0,T.ZP)(E.Z)`
|
|
71
|
-
/* line height of label and watch more to 1 so they can be better aligned visually */
|
|
72
|
-
line-height: 1;
|
|
73
|
-
`,ve=(0,T.ZP)(ye)`
|
|
74
|
-
text-decoration: none;
|
|
75
|
-
|
|
76
|
-
:hover {
|
|
77
|
-
text-decoration: underline;
|
|
78
|
-
}
|
|
79
|
-
`;var vt=()=>{const t=(0,e.useRef)(),[a,o]=(0,e.useState)(!1),{formatMessage:i}=(0,Z.Z)(),{communityEdition:d}=(0,s.L7)(),u=()=>{o(p=>!p)},h=[...gt,{label:{id:"Settings.application.get-help",defaultMessage:"Get help"},icon:it.Z,href:d?"https://discord.strapi.io":"https://support.strapi.io/support/home"}];return e.createElement(M.x,{as:"aside",position:"fixed",bottom:2,right:2},e.createElement(ht,{"aria-label":i(a?{id:"app.components.Onboarding.help.button-close",defaultMessage:"Close help menu"}:{id:"app.components.Onboarding.help.button",defaultMessage:"Open help menu"}),onClick:u,ref:t},e.createElement(_.J,{as:a?se.Z:lt.Z,color:"buttonNeutral0"})),a&&e.createElement(ae.h,null,e.createElement(st.M.Content,{padding:0,onDimiss:u,source:t,placement:"top-end",spacing:12},e.createElement(m.k,{justifyContent:"space-between",paddingBottom:5,paddingRight:6,paddingLeft:6,paddingTop:6},e.createElement(ye,{fontWeight:"bold"},i({id:"app.components.Onboarding.title",defaultMessage:"Get started videos"})),e.createElement(ve,{as:"a",href:Ee.href,target:"_blank",rel:"noreferrer noopener",variant:"pi",textColor:"primary600"},i(Ee.label))),e.createElement(pe.i,null),mt.map(({href:p,duration:g,label:l},I)=>e.createElement(Et,{as:"a",href:p,target:"_blank",rel:"noreferrer noopener",key:p,hasRadius:!0,paddingTop:4,paddingBottom:4,paddingLeft:6,paddingRight:11},e.createElement(M.x,{paddingRight:5},e.createElement(E.Z,{textColor:"neutral200",variant:"alpha"},I+1)),e.createElement(M.x,{position:"relative"},e.createElement(yt,{src:dt,alt:""}),e.createElement(ft,{position:"absolute",top:"50%",left:"50%",background:"primary600",borderRadius:"50%",justifyContent:"center",width:6,height:6},e.createElement(_.J,{as:ct.Z,color:"buttonNeutral0",width:3,height:3}))),e.createElement(m.k,{direction:"column",alignItems:"start",paddingLeft:4},e.createElement(E.Z,{fontWeight:"bold"},i(l)),e.createElement(rt.T,null,":"),e.createElement(E.Z,{textColor:"neutral600",variant:"pi"},g)))),e.createElement(m.k,{direction:"column",alignItems:"stretch",gap:2,paddingLeft:5,paddingTop:2,paddingBottom:5},h.map(({label:p,href:g,icon:l})=>e.createElement(m.k,{gap:3,key:g},e.createElement(_.J,{as:l,color:"primary600"}),e.createElement(ve,{as:"a",href:g,target:"_blank",rel:"noreferrer noopener",variant:"sigma",textColor:"primary700"},i(p))))))))};const Ct=(0,e.lazy)(()=>Promise.all([n.e(462),n.e(1657),n.e(6970),n.e(994)]).then(n.bind(n,82865))),Tt=(0,e.lazy)(()=>n.e(3981).then(n.bind(n,55129))),Mt=(0,e.lazy)(()=>n.e(3677).then(n.bind(n,15415))),St=(0,e.lazy)(()=>n.e(5516).then(n.bind(n,77571))),Ce=(0,e.lazy)(()=>Promise.resolve().then(n.bind(n,53951))),Pt=(0,e.lazy)(()=>n.e(9501).then(n.bind(n,92336))),It=(0,e.lazy)(()=>n.e(9497).then(n.bind(n,9972))),Te=(0,e.lazy)(()=>n.e(5895).then(n.bind(n,74750))),Rt=()=>{const{trackUsage:t}=(0,s.rS)(),a=(0,y.I0)(),o=(0,y.v9)(i=>i.admin_app.status);(0,e.useEffect)(()=>{o==="init"&&(t("didAccessAuthenticatedAdministration"),a({type:ot.e}))},[o])};var At=()=>{Rt();const{isLoading:t,generalSectionLinks:a,pluginsSectionLinks:o}=(0,C.H9)(),{menu:i}=(0,s.j1)(),{showTutorials:d}=(0,C.um)(),u=(0,e.useMemo)(()=>i.filter(h=>h.Component).map(({to:h,Component:p,exact:g})=>(0,q.ot)(p,h,g)),[i]);return t?e.createElement(s.dO,null):e.createElement(G.DndProvider,{backend:z.PD},e.createElement(at,{sideNav:e.createElement(et,{generalSectionLinks:a,pluginsSectionLinks:o})},e.createElement(e.Suspense,{fallback:e.createElement(s.dO,null)},e.createElement(f.rs,null,e.createElement(f.AW,{path:"/",component:Tt,exact:!0}),e.createElement(f.AW,{path:"/me",component:It,exact:!0}),e.createElement(f.AW,{path:"/content-manager",component:Ct}),u,e.createElement(f.AW,{path:"/settings/:settingId",component:Te}),e.createElement(f.AW,{path:"/settings",component:Te,exact:!0}),e.createElement(f.AW,{path:"/marketplace"},e.createElement(St,null)),e.createElement(f.AW,{path:"/list-plugins",exact:!0},e.createElement(Mt,null)),e.createElement(f.AW,{path:"/404",component:Ce}),e.createElement(f.AW,{path:"/500",component:Pt}),e.createElement(f.AW,{path:"",component:Ce}))),e.createElement(ze,null),d&&e.createElement(vt,null)))},Lt=t=>({plugins:Object.keys(t).reduce((a,o)=>(a[o]={...t[o]},a),{})}),Ot=n(3040),xt=n.n(Ot);const Me={plugins:null};var bt=(t=Me,a)=>(0,ie.ZP)(t,o=>{switch(a.type){case"SET_PLUGIN_READY":{xt()(o,["plugins",a.pluginId,"isReady"],!0);break}default:return o}}),Dt=()=>{const{plugins:t}=(0,s.j1)(),[{plugins:a},o]=(0,e.useReducer)(bt,Me,()=>Lt(t)),i=(0,e.useRef)(u=>{o({type:"SET_PLUGIN_READY",pluginId:u})});if(Object.keys(a).some(u=>a[u].isReady===!1)){const u=Object.keys(a).reduce((h,p)=>{const g=a[p].initializer;if(g){const l=a[p].pluginId;h.push(e.createElement(g,{key:l,setPlugin:i.current}))}return h},[]);return e.createElement(e.Fragment,null,u,e.createElement(s.dO,null))}return e.createElement(At,null)},Se=n(17367);const kt=()=>({type:Se.l}),Zt=t=>({type:Se.m,permissions:t}),Pe=({children:t,permissions:a,refetchPermissions:o})=>{const{allPermissions:i}=(0,y.v9)(u=>u.rbacProvider),d=(0,y.I0)();return(0,e.useEffect)(()=>(d(Zt(a)),()=>{d(kt())}),[a,d]),i?e.createElement(s.oL.Provider,{value:{allPermissions:i,refetchPermissions:o}},t):e.createElement(s.dO,null)};Pe.propTypes={children:r().element.isRequired,permissions:r().array.isRequired,refetchPermissions:r().func.isRequired};var Bt=Pe,Wt=n(54770),ee=n.n(Wt),Ie=(t,a)=>!ee().valid(t)||!ee().valid(a)?!1:ee().lt(t,a);const Re=P.i8,Gt=!JSON.parse(localStorage.getItem("STRAPI_UPDATE_NOTIF")),{get:te}=(0,s.tg)(),Nt=async t=>{try{const a=await fetch("https://api.github.com/repos/strapi/strapi/releases/latest");if(!a.ok)throw new Error("Failed to fetch latest Strapi version.");const{tag_name:o}=await a.json();return Ie(Re,o)&&Gt&&t({type:"info",message:{id:"notification.version.update.message"},link:{url:`https://github.com/strapi/strapi/releases/tag/${o}`,label:{id:"global.see-more"}},blockTransition:!0,onClose:()=>localStorage.setItem("STRAPI_UPDATE_NOTIF",!0)}),o}catch{return Re}},Ut=async()=>{try{const{data:t,headers:a}=await te("/admin/information");if(!a["content-type"].includes("application/json"))throw new Error("Not found");return t.data}catch(t){throw new Error(t)}},Ft=async()=>{try{const{data:t,headers:a}=await te("/admin/users/me/permissions");if(!a["content-type"].includes("application/json"))throw new Error("Not found");return t.data}catch(t){throw new Error(t)}},jt=async()=>{try{const{data:{data:{roles:t}}}=await te("/admin/users/me");return t}catch(t){throw new Error(t)}},Ae=P.i8;var $t=()=>{const{setGuidedTourVisibility:t}=(0,s.c1)(),a=(0,s.lm)(),o=s.I8.getUserInfo(),i=O()(o,"username")||(0,q.Pp)(o.firstname,o.lastname),[d,u]=(0,e.useState)(i),[h,p]=(0,e.useState)(null),{showReleaseNotification:g}=(0,C.um)(),[{data:l,status:I},{data:x,isLoading:U},{data:F,status:W,refetch:A,isFetched:j,isFetching:b},{data:R}]=(0,L.useQueries)([{queryKey:"app-infos",queryFn:Ut},{queryKey:"strapi-release",queryFn:()=>Nt(a),enabled:g,initialData:Ae},{queryKey:"admin-users-permission",queryFn:Ft,initialData:[]},{queryKey:"user-roles",queryFn:jt}]),D=Ie(Ae,x);return(0,e.useEffect)(()=>{R&&R.find(({code:$})=>$==="strapi-super-admin")&&l?.autoReload&&t(!0)},[R,l,t]),(0,e.useEffect)(()=>{(async()=>{const $=await(0,q.Qy)(o);p($)})()},[o]),U||(b&&j||I==="loading"||W==="loading")?e.createElement(s.dO,null):I==="error"?e.createElement("div",null,"error..."):e.createElement(s.iq,{...l,userId:h,latestStrapiReleaseTag:x,setUserDisplayName:u,shouldUpdateStrapi:D,userDisplayName:d},e.createElement(Bt,{permissions:F,refetchPermissions:A},e.createElement(Dt,null)))}},78024:function(Q,S,n){var e=n(32735),s=n(60216),L=n.n(s),v=n(24989),O=n(72850),P=n(23678);const C=({type:f,...y})=>e.createElement(O.x,{width:(0,v.Q1)(2),height:"100%",background:f===P.VM?"neutral300":"primary500",hasRadius:!0,...y});C.defaultProps={type:P.VM},C.propTypes={type:L().oneOf([P.lW,P.hx,P.VM])},S.Z=C},14317:function(Q,S,n){var e=n(32735),s=n(60216),L=n.n(s),v=n(24989),O=n(87933),P=n(99140),C=n(49372),f=n(66456),y=n(23678);const G=({type:z,number:K})=>z===y.hx?e.createElement(O.k,{background:"primary600",padding:2,borderRadius:"50%",width:(0,v.Q1)(30),height:(0,v.Q1)(30),justifyContent:"center"},e.createElement(P.J,{as:f.Z,"aria-hidden":!0,width:(0,v.Q1)(16),color:"neutral0"})):z===y.lW?e.createElement(O.k,{background:"primary600",padding:2,borderRadius:"50%",width:(0,v.Q1)(30),height:(0,v.Q1)(30),justifyContent:"center"},e.createElement(C.Z,{fontWeight:"semiBold",textColor:"neutral0"},K)):e.createElement(O.k,{borderColor:"neutral500",borderWidth:"1px",borderStyle:"solid",padding:2,borderRadius:"50%",width:(0,v.Q1)(30),height:(0,v.Q1)(30),justifyContent:"center"},e.createElement(C.Z,{fontWeight:"semiBold",textColor:"neutral600"},K));G.defaultProps={number:void 0,type:y.VM},G.propTypes={number:L().number,type:L().oneOf([y.lW,y.hx,y.VM])},S.Z=G},23678:function(Q,S,n){n.d(S,{VM:function(){return L},hx:function(){return s},lW:function(){return e}});const e="isActive",s="isDone",L="isNotDone"},58107:function(Q,S){const n={contentTypeBuilder:{home:{title:{id:"app.components.GuidedTour.home.CTB.title",defaultMessage:"\u{1F9E0} Build the content structure"},cta:{title:{id:"app.components.GuidedTour.home.CTB.cta.title",defaultMessage:"Go to the Content type Builder"},type:"REDIRECT",target:"/plugins/content-type-builder"},trackingEvent:"didClickGuidedTourHomepageContentTypeBuilder"},create:{title:{id:"app.components.GuidedTour.CTB.create.title",defaultMessage:"\u{1F9E0} Create a first Collection type"},content:{id:"app.components.GuidedTour.CTB.create.content",defaultMessage:"<p>Collection types help you manage several entries, Single types are suitable to manage only one entry.</p> <p>Ex: For a Blog website, Articles would be a Collection type whereas a Homepage would be a Single type.</p>"},cta:{title:{id:"app.components.GuidedTour.CTB.create.cta.title",defaultMessage:"Build a Collection type"},type:"CLOSE"},trackingEvent:"didClickGuidedTourStep1CollectionType"},success:{title:{id:"app.components.GuidedTour.CTB.success.title",defaultMessage:"Step 1: Completed \u2705"},content:{id:"app.components.GuidedTour.CTB.success.content",defaultMessage:"<p>Good going!</p><b>\u26A1\uFE0F What would you like to share with the world?</b>"},cta:{title:{id:"app.components.GuidedTour.create-content",defaultMessage:"Create content"},type:"REDIRECT",target:"/content-manager"},trackingEvent:"didCreateGuidedTourCollectionType"}},contentManager:{home:{title:{id:"app.components.GuidedTour.home.CM.title",defaultMessage:"\u26A1\uFE0F What would you like to share with the world?"},cta:{title:{id:"app.components.GuidedTour.create-content",defaultMessage:"Create content"},type:"REDIRECT",target:"/content-manager"},trackingEvent:"didClickGuidedTourHomepageContentManager"},create:{title:{id:"app.components.GuidedTour.CM.create.title",defaultMessage:"\u26A1\uFE0F Create content"},content:{id:"app.components.GuidedTour.CM.create.content",defaultMessage:"<p>Create and manage all the content here in the Content Manager.</p><p>Ex: Taking the Blog website example further, one can write an Article, save and publish it as they like.</p><p>\u{1F4A1} Quick tip - Don't forget to hit publish on the content you create.</p>"},cta:{title:{id:"app.components.GuidedTour.create-content",defaultMessage:"Create content"},type:"CLOSE"},trackingEvent:"didClickGuidedTourStep2ContentManager"},success:{title:{id:"app.components.GuidedTour.CM.success.title",defaultMessage:"Step 2: Completed \u2705"},content:{id:"app.components.GuidedTour.CM.success.content",defaultMessage:"<p>Awesome, one last step to go!</p><b>\u{1F680} See content in action</b>"},cta:{title:{id:"app.components.GuidedTour.CM.success.cta.title",defaultMessage:"Test the API"},type:"REDIRECT",target:"/settings/api-tokens"},trackingEvent:"didCreateGuidedTourEntry"}},apiTokens:{home:{title:{id:"app.components.GuidedTour.apiTokens.create.title",defaultMessage:"\u{1F680} See content in action"},cta:{title:{id:"app.components.GuidedTour.home.apiTokens.cta.title",defaultMessage:"Test the API"},type:"REDIRECT",target:"/settings/api-tokens"},trackingEvent:"didClickGuidedTourHomepageApiTokens"},create:{title:{id:"app.components.GuidedTour.apiTokens.create.title",defaultMessage:"\u{1F680} See content in action"},content:{id:"app.components.GuidedTour.apiTokens.create.content",defaultMessage:"<p>Generate an authentication token here and retrieve the content you just created.</p>"},cta:{title:{id:"app.components.GuidedTour.apiTokens.create.cta.title",defaultMessage:"Generate an API Token"},type:"CLOSE"},trackingEvent:"didClickGuidedTourStep3ApiTokens"},success:{title:{id:"app.components.GuidedTour.apiTokens.success.title",defaultMessage:"Step 3: Completed \u2705"},content:{id:"app.components.GuidedTour.apiTokens.success.content",defaultMessage:"<p>See content in action by making an HTTP request:</p><ul><li><p>To this URL: <light>https://'<'YOUR_DOMAIN'>'/api/'<'YOUR_CT'>'</light></p></li><li><p>With the header: <light>Authorization: bearer '<'YOUR_API_TOKEN'>'</light></p></li></ul><p>For more ways to interact with content, see the <documentationLink>documentation</documentationLink>.</p>"},trackingEvent:"didGenerateGuidedTourApiTokens"}}};S.Z=n}}]);
|