@strapi/admin 4.12.0-beta.5 → 4.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/src/components/LeftMenu/index.js +1 -1
- package/admin/src/components/PluginsInitializer/index.js +23 -0
- package/admin/src/content-manager/components/CollectionTypeFormWrapper/index.js +9 -14
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/cleanData.js +1 -1
- package/admin/src/content-manager/components/InputUID/index.js +2 -3
- package/admin/src/content-manager/components/RelationInput/RelationInput.js +1 -1
- package/admin/src/content-manager/components/RelationInputDataManager/utils/getRelationLink.js +1 -3
- package/admin/src/content-manager/components/RelationInputDataManager/utils/select.js +4 -6
- package/admin/src/content-manager/components/SingleTypeFormWrapper/index.js +7 -9
- package/admin/src/content-manager/pages/App/utils/getContentTypeLinks.js +1 -3
- package/admin/src/content-manager/pages/EditSettingsView/index.js +31 -18
- package/admin/src/content-manager/pages/ListSettingsView/components/EditFieldForm.js +1 -3
- package/admin/src/content-manager/pages/ListSettingsView/components/Settings.js +1 -3
- package/admin/src/content-manager/pages/ListSettingsView/components/SortDisplayedFields.js +14 -32
- package/admin/src/content-manager/pages/ListSettingsView/index.js +50 -40
- package/admin/src/content-manager/pages/ListView/components/BulkActionButtons/ConfirmBulkActionDialog/index.js +2 -0
- package/admin/src/content-manager/pages/ListView/components/BulkActionButtons/SelectedEntriesModal/index.js +83 -36
- package/admin/src/content-manager/pages/ListView/components/CellContent/RelationMultiple/index.js +2 -2
- package/admin/src/content-manager/pages/ListView/index.js +3 -3
- package/admin/src/content-manager/sharedReducers/crudReducer/reducer.js +1 -1
- package/admin/src/content-manager/utils/checkIfAttributeIsDisplayable.js +2 -4
- package/admin/src/content-manager/utils/index.js +0 -1
- package/admin/src/pages/AuthPage/constants.js +2 -2
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/Events/index.js +1 -1
- package/admin/src/translations/ar.json +9 -3
- package/admin/src/translations/ca.json +8 -2
- package/admin/src/translations/de.json +8 -2
- package/admin/src/translations/dk.json +8 -2
- package/admin/src/translations/en.json +9 -2
- package/admin/src/translations/es.json +9 -3
- package/admin/src/translations/eu.json +8 -2
- package/admin/src/translations/fr.json +9 -2
- package/admin/src/translations/gu.json +8 -2
- package/admin/src/translations/hi.json +9 -3
- package/admin/src/translations/hu.json +9 -3
- package/admin/src/translations/ja.json +12 -6
- package/admin/src/translations/ko.json +12 -6
- package/admin/src/translations/ml.json +8 -2
- package/admin/src/translations/nl.json +8 -2
- package/admin/src/translations/pl.json +8 -2
- package/admin/src/translations/pt-BR.json +8 -2
- package/admin/src/translations/ru.json +8 -2
- package/admin/src/translations/sa.json +9 -3
- package/admin/src/translations/sk.json +8 -2
- package/admin/src/translations/sv.json +7 -2
- package/admin/src/translations/tr.json +8 -2
- package/admin/src/translations/zh-Hans.json +8 -2
- package/admin/src/translations/zh.json +8 -2
- package/admin/src/utils/index.js +0 -1
- package/build/{1049.758a01f5.chunk.js → 1049.c3d082e9.chunk.js} +1 -1
- package/build/1386.879bcd90.chunk.js +7 -0
- package/build/{2225.15d1df72.chunk.js → 2225.0e4f8c77.chunk.js} +1 -1
- package/build/2379.f1641312.chunk.js +1 -0
- package/build/2395.46f8d0c1.chunk.js +26 -0
- package/build/2801.5cef5ec8.chunk.js +1 -0
- package/build/{3483.e2ee2547.chunk.js → 3483.03c24f96.chunk.js} +1 -1
- package/build/3929.5632f24d.chunk.js +114 -0
- package/build/4546.cfafae68.chunk.js +1 -0
- package/build/6691.4985ef22.chunk.js +105 -0
- package/build/7464.3e64a1d5.chunk.js +1 -0
- package/build/8276.10a3f883.chunk.js +26 -0
- package/build/{9806.aa25371d.chunk.js → 9806.3392505e.chunk.js} +2 -2
- package/build/{Admin-authenticatedApp.6b8dfa45.chunk.js → Admin-authenticatedApp.8dfbc48d.chunk.js} +3 -3
- package/build/{Admin_profilePage.a968035f.chunk.js → Admin_profilePage.ca82c67b.chunk.js} +1 -1
- package/build/{Admin_settingsPage.8c600d1a.chunk.js → Admin_settingsPage.50c867bf.chunk.js} +1 -1
- package/build/admin-app.041dcd81.chunk.js +36 -0
- package/build/{admin-edit-users.67704088.chunk.js → admin-edit-users.79eeb125.chunk.js} +1 -1
- package/build/{admin-users.3279ffb0.chunk.js → admin-users.123aa08e.chunk.js} +1 -1
- package/build/ar-json.74e40bc7.chunk.js +1 -0
- package/build/{ca-json.a53c10b6.chunk.js → ca-json.fc6001d3.chunk.js} +1 -1
- package/build/content-manager.098eb004.chunk.js +1099 -0
- package/build/content-type-builder.64f4d6ac.chunk.js +170 -0
- package/build/{de-json.b3be02c7.chunk.js → de-json.e72545cf.chunk.js} +1 -1
- package/build/dk-json.e77140ef.chunk.js +1 -0
- package/build/{en-json.4c733bd1.chunk.js → en-json.01456e61.chunk.js} +1 -1
- package/build/es-json.b1f2284b.chunk.js +1 -0
- package/build/{eu-json.633025f0.chunk.js → eu-json.63d0a898.chunk.js} +1 -1
- package/build/{fr-json.aa8839d2.chunk.js → fr-json.33c6428b.chunk.js} +1 -1
- package/build/{gu-json.5bd62812.chunk.js → gu-json.7efe8cc2.chunk.js} +1 -1
- package/build/{hi-json.9104eb78.chunk.js → hi-json.0d633692.chunk.js} +1 -1
- package/build/{hu-json.9f4aae42.chunk.js → hu-json.c74b6a1e.chunk.js} +1 -1
- package/build/index.html +1 -1
- package/build/{ja-json.91286391.chunk.js → ja-json.e1959a1c.chunk.js} +1 -1
- package/build/{ko-json.fcf3ec4b.chunk.js → ko-json.ce5d6d94.chunk.js} +1 -1
- package/build/{main.af84ad9c.js → main.1f8cc299.js} +429 -429
- package/build/{ml-json.557aa14c.chunk.js → ml-json.940d7ace.chunk.js} +1 -1
- package/build/{nl-json.b2b16eea.chunk.js → nl-json.fe38f0fb.chunk.js} +1 -1
- package/build/{pl-json.f094a417.chunk.js → pl-json.d55e8e78.chunk.js} +1 -1
- package/build/{pt-BR-json.dec7fb01.chunk.js → pt-BR-json.ae0a0d2e.chunk.js} +1 -1
- package/build/review-workflows-settings-create-view.cb08cfa2.chunk.js +1 -0
- package/build/review-workflows-settings-edit-view.3c7cbe63.chunk.js +1 -0
- package/build/review-workflows-settings-list-view.1611dc1f.chunk.js +56 -0
- package/build/{ru-json.8193d8c4.chunk.js → ru-json.1c976644.chunk.js} +1 -1
- package/build/{runtime~main.a65ca6fb.js → runtime~main.80a43c16.js} +2 -2
- package/build/{sa-json.a56836f1.chunk.js → sa-json.2c03ef4e.chunk.js} +1 -1
- package/build/sk-json.b41847e8.chunk.js +1 -0
- package/build/sso-settings-page.81152e62.chunk.js +1 -0
- package/build/{sv-json.fd0e86c6.chunk.js → sv-json.568cb7ae.chunk.js} +1 -1
- package/build/{tr-json.56c32cf6.chunk.js → tr-json.c9f22432.chunk.js} +1 -1
- package/build/transfer-tokens-list-page.692eee77.chunk.js +16 -0
- package/build/upload-settings.7f93d4c0.chunk.js +14 -0
- package/build/upload.77d8a64c.chunk.js +58 -0
- package/build/users-advanced-settings-page.f0760eb8.chunk.js +9 -0
- package/build/users-email-settings-page.ff4b32f3.chunk.js +9 -0
- package/build/users-providers-settings-page.48de0306.chunk.js +14 -0
- package/build/users-roles-settings-page.3f9f063e.chunk.js +30 -0
- package/build/{webhook-edit-page.a91f27a1.chunk.js → webhook-edit-page.6cb479ff.chunk.js} +2 -2
- package/build/{zh-Hans-json.36d81cdc.chunk.js → zh-Hans-json.937b395b.chunk.js} +1 -1
- package/build/{zh-json.1cc86ff0.chunk.js → zh-json.bfc2e036.chunk.js} +1 -1
- package/ee/admin/hooks/useAuthProviders/index.js +1 -3
- package/ee/admin/pages/AuthResponse/index.js +1 -3
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/Stages/Stage/Stage.js +35 -32
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/pages/CreateView/CreateView.js +1 -7
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/pages/EditView/EditView.js +16 -14
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/pages/ListView/ListView.js +33 -33
- package/ee/admin/pages/SettingsPage/pages/SingleSignOn/index.js +1 -2
- package/ee/server/bootstrap.js +2 -0
- package/ee/server/config/admin-actions.js +6 -6
- package/ee/server/services/auth.js +1 -1
- package/ee/server/services/index.js +1 -0
- package/ee/server/services/review-workflows/entity-service-decorator.js +4 -3
- package/ee/server/services/review-workflows/metrics/index.js +51 -0
- package/ee/server/services/review-workflows/metrics/weekly-metrics.js +76 -0
- package/ee/server/services/review-workflows/workflows/index.js +5 -0
- package/package.json +16 -16
- package/server/middlewares/rateLimit.js +6 -2
- package/server/services/transfer/token.js +27 -4
- package/server/validation/authentication/register.js +2 -2
- package/admin/src/content-manager/components/SingleTypeFormWrapper/utils/getRequestUrl.js +0 -5
- package/admin/src/content-manager/components/SingleTypeFormWrapper/utils/index.js +0 -2
- package/admin/src/content-manager/pages/EditSettingsView/utils/api.js +0 -16
- package/admin/src/content-manager/pages/ListSettingsView/init.js +0 -9
- package/admin/src/content-manager/utils/getRequestUrl.js +0 -4
- package/admin/src/utils/getRequestUrl.js +0 -3
- package/build/1386.762d6eb8.chunk.js +0 -7
- package/build/2379.0ca87a89.chunk.js +0 -1
- package/build/2395.df7a044a.chunk.js +0 -26
- package/build/2801.b1140c9b.chunk.js +0 -1
- package/build/4546.ff9fdf30.chunk.js +0 -1
- package/build/6691.f880a0b6.chunk.js +0 -105
- package/build/7065.ec811562.chunk.js +0 -114
- package/build/7464.8a6c1e6c.chunk.js +0 -1
- package/build/8276.6c7b8e6e.chunk.js +0 -26
- package/build/admin-app.c2e4e128.chunk.js +0 -36
- package/build/ar-json.f530bc3f.chunk.js +0 -1
- package/build/content-manager.8772445b.chunk.js +0 -1103
- package/build/content-type-builder.40534de5.chunk.js +0 -170
- package/build/dk-json.842aa391.chunk.js +0 -1
- package/build/es-json.f57b5335.chunk.js +0 -1
- package/build/review-workflows-settings-create-view.05758184.chunk.js +0 -1
- package/build/review-workflows-settings-edit-view.c33f7c58.chunk.js +0 -1
- package/build/review-workflows-settings-list-view.3ee9190d.chunk.js +0 -56
- package/build/sk-json.bf2f057a.chunk.js +0 -1
- package/build/sso-settings-page.7c9b2fd9.chunk.js +0 -1
- package/build/transfer-tokens-list-page.22147d2c.chunk.js +0 -16
- package/build/upload-settings.cac210a0.chunk.js +0 -14
- package/build/upload.cbfeefa5.chunk.js +0 -58
- package/build/users-advanced-settings-page.18379a56.chunk.js +0 -9
- package/build/users-email-settings-page.a87978e5.chunk.js +0 -9
- package/build/users-providers-settings-page.8876c1ee.chunk.js +0 -14
- package/build/users-roles-settings-page.0431f48c.chunk.js +0 -30
- package/ee/server/services/review-workflows/metrics.js +0 -24
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[2801],{50337:function(C,r,t){t.d(r,{pl:function(){return v},aY:function(){return U},q5:function(){return g.q}});var s=t(32735),n=t(19565),c=t(86209),l=t(97889);const T={data:[],isLoading:!0};var A=(i,a)=>(0,l.ZP)(i,e=>{switch(a.type){case"GET_DATA_SUCCEEDED":{e.data=a.data,e.isLoading=!1;break}case"GET_DATA_ERROR":{e.isLoading=!1;break}default:return e}}),v=({ssoEnabled:i})=>{const[a,e]=(0,s.useReducer)(A,T),E=(0,n.lm)(),{get:m}=(0,n.kY)();return(0,s.useEffect)(()=>{(async()=>{try{if(!i){e({type:"GET_DATA_SUCCEEDED",data:[]});return}const{data:u}=await m((0,c.IF)("providers"));e({type:"GET_DATA_SUCCEEDED",data:u})}catch(u){console.error(u),e({type:"GET_DATA_ERROR"}),E({type:"warning",message:{id:"notification.error"}})}})()},[m,i,E]),a},d=t(36866),h=t.n(d),f=t(67879),P=t(53038),g=t(53104);const R="strapi-notification-seat-limit",y="https://cloud.strapi.io/profile/billing",M="https://strapi.io/billing/request-seats";var U=()=>{const{formatMessage:i}=(0,f.Z)();let{license:a,isError:e,isLoading:E}=(0,g.q)();const m=(0,n.lm)(),{pathname:L}=(0,P.TH)(),{enforcementUserCount:u,permittedSeats:I,licenseLimitStatus:o,isHostedOnStrapiCloud:p}=a;(0,s.useEffect)(()=>{if(e||E)return;const N=!h()(I)&&!window.sessionStorage.getItem(`${R}-${L}`)&&(o==="AT_LIMIT"||o==="OVER_LIMIT");let D;o==="OVER_LIMIT"?D="warning":o==="AT_LIMIT"&&(D="softWarning"),N&&m({type:D,message:i({id:"notification.ee.warning.over-.message",defaultMessage:"Add seats to {licenseLimitStatus, select, OVER_LIMIT {invite} other {re-enable}} Users. If you already did it but it's not reflected in Strapi yet, make sure to restart your app."},{licenseLimitStatus:o}),title:i({id:"notification.ee.warning.at-seat-limit.title",defaultMessage:"{licenseLimitStatus, select, OVER_LIMIT {Over} other {At}} seat limit ({enforcementUserCount}/{permittedSeats})"},{licenseLimitStatus:o,enforcementUserCount:u,permittedSeats:I}),link:{url:p?y:M,label:i({id:"notification.ee.warning.seat-limit.link",defaultMessage:"{isHostedOnStrapiCloud, select, true {ADD SEATS} other {CONTACT SALES}}"},{isHostedOnStrapiCloud:p})},blockTransition:!0,onClose(){window.sessionStorage.setItem(`${R}-${L}`,!0)}})},[m,a,L,i,E,I,o,u,p,e])}},53104:function(C,r,t){t.d(r,{q:function(){return l}});var s=t(32735),n=t(19565),c=t(20108);function l({enabled:T}={enabled:!0}){const{get:S}=(0,n.kY)(),{data:A,isError:O,isLoading:v}=(0,c.useQuery)(["ee","license-limit-info"],async()=>{const{data:{data:f}}=await S("/admin/license-limit-information");return f},{enabled:T}),d=A??{},h=s.useCallback(f=>(d?.features??[]).find(g=>g.name===f)?.options??{},[d?.features]);return{license:d,getFeature:h,isError:O,isLoading:v}}},12801:function(C,r,t){t.r(r),t.d(r,{UserListPageEE:function(){return l}});var s=t(32735),n=t(99528),c=t(50337);function l(){return(0,c.aY)(),s.createElement(n.W,null)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[4546],{17379:function(j,D,s){s.d(D,{r:function(){return C}});var f=s(32735),p=s(72850),O=s(60216),A=s.n(O),F=s(74506);function k(L,M,y){if(!L||!M)return{display:"none"};const{x:I,y:x}=y;return{transform:`translate(${I}px, ${x}px)`}}function C({renderItem:L}){const{itemType:M,isDragging:y,item:I,initialOffset:x,currentOffset:W,mouseOffset:Z}=(0,F.useDragLayer)(E=>({item:E.getItem(),itemType:E.getItemType(),initialOffset:E.getInitialSourceClientOffset(),currentOffset:E.getSourceClientOffset(),isDragging:E.isDragging(),mouseOffset:E.getClientOffset()}));return y?f.createElement(p.x,{height:"100%",left:0,position:"fixed",pointerEvents:"none",top:0,zIndex:100,width:"100%"},f.createElement(p.x,{style:k(x,W,Z)},L({type:M,item:I}))):null}C.propTypes={renderItem:A().func.isRequired}},75430:function(j,D,s){var f=s(32735);const p=(0,f.createContext)();var O=null},69242:function(j,D,s){s.d(D,{PL:function(){return F},Y9:function(){return k.Y},zE:function(){return se},Ky:function(){return ce},fi:function(){return z},zH:function(){return de},r5:function(){return me}});var f=s(32735),p=s(15062),O=s(53634),F=()=>{const e=(0,p.v9)(O.Z),t=(0,f.useCallback)(n=>e?.components?.[n]??{},[e]);return{...e,getComponentLayout:t}},k=s(77622),C=s(19565),L=s(84306),M=s(20716),y=s(97889);const I={error:null,isLoading:!0,layout:{},layouts:{}};var W=(e,t)=>(0,y.ZP)(e,n=>{switch(t.type){case"GET_DATA":{n.isLoading=!0,n.error=null,n.layout={};break}case"GET_DATA_SUCCEEDED":{const r=t.data.contentType.uid;n.layout=t.data,n.layouts[r]=t.data,n.isLoading=!1;break}case"GET_DATA_ERROR":{n.isLoading=!1,n.error=t.error;break}case"SET_LAYOUT_FROM_STATE":{n.error=null,n.layout=e.layouts[t.uid];break}case"UPDATE_LAYOUT":{const r=e.layout;n.layout={...r,contentType:{uid:r.contentType.uid,...t.newLayout.contentType}},n.layouts[r.contentType.uid]={...r,contentType:{uid:r.contentType.uid,...t.newLayout.contentType}};break}default:return n}}),Z=s(99381),E=s.n(Z),G=s(33795),R=s.n(G),w=s(3040),S=s.n(w),re=s(97724);const Q=(e,t)=>t.find(n=>n.uid===e),H=(e,t)=>{const n=X(e,t),r=P(n.contentType,t),i=J(n.contentType,n.components);return S()(n,["contentType","layouts","edit"],r),S()(n,["contentType","layouts","list"],i),Object.keys(n.components).forEach(u=>{const c=P(n.components[u],t);S()(n,["components",u,"layouts","edit"],c)}),n},X=(e,t)=>{const n=(0,re.w8)(E()(e),t,"contentType"),{components:r,contentType:i}=n,u=c=>Object.keys(c.metadatas).reduce((d,h)=>{const T=R()(c,["attributes",h],{});let v=c.metadatas[h];if(T.type==="relation"){const b=Q(T.targetModel,t),N=v.edit.mainField,V={name:N,schema:R()(b,["attributes",N])};v={list:{...v.list,mainField:V},edit:{...v.edit,mainField:V}}}return d[h]=v,d},{});return S()(n,["contentType","metadatas"],u(i)),Object.keys(r).forEach(c=>{const d=r[c],h=u(d);S()(n,["components",c,"metadatas"],h)}),n},P=(e,t)=>e.layouts.edit.reduce((n,r)=>{const i=r.map(u=>{const c=R()(e,["attributes",u.name],{}),d={...u,fieldSchema:c,metadatas:R()(e,["metadatas",u.name,"edit"],{})};if(c.type==="relation"){const T=Q(c.targetModel,t).pluginOptions||{};S()(d,"targetModelPluginOptions",T),S()(d,"queryInfos",{shouldDisplayRelationLink:Y(e,u.name,t)})}return d});return n.push(i),n},[]),J=(e,t)=>e.layouts.list.reduce((r,i)=>{const u=R()(e,["attributes",i],{}),c=R()(e,["metadatas",i,"list"],{}),d=u.type;if(d==="relation")return r.push({key:`__${i}_key__`,name:i,fieldSchema:u,metadatas:c}),r;if(d==="component"){const h=t[u.component],T=h.settings.mainField,v=h.attributes[T];return r.push({key:`__${i}_key__`,name:i,fieldSchema:u,metadatas:{...c,mainField:{...v,name:T}}}),r}return r.push({key:`__${i}_key__`,name:i,fieldSchema:u,metadatas:c}),r},[]),Y=(e,t,n)=>{const r=R()(e,["attributes",t,"targetModel"],"");return K(n).includes(r)},K=e=>e.filter(t=>t.isDisplayed).map(({uid:t})=>t);var $=H,se=e=>{const[{error:t,isLoading:n,layout:r,layouts:i},u]=(0,f.useReducer)(W,I),c=(0,f.useMemo)(M.Vo,[]),{schemas:d}=(0,p.v9)(N=>c(N),p.wU),h=(0,f.useRef)(!0),{get:T}=(0,C.kY)(),v=(0,f.useCallback)(async(N,V)=>{if(i[N]){u({type:"SET_LAYOUT_FROM_STATE",uid:N});return}u({type:"GET_DATA"});try{const{data:{data:ne}}=await T(`/content-manager/content-types/${N}/configuration`,{cancelToken:V.token});u({type:"GET_DATA_SUCCEEDED",data:$(ne,d)})}catch(ne){if(L.default.isCancel(ne))return;h.current&&console.error(ne),h.current&&u({type:"GET_DATA_ERROR",error:ne})}},[i,d,T]);(0,f.useEffect)(()=>()=>{h.current=!1},[]),(0,f.useEffect)(()=>{const V=L.default.CancelToken.source();return v(e,V),()=>{V.cancel("Operation canceled by the user.")}},[e,v]);const b=(0,f.useCallback)(N=>{u({type:"UPDATE_LAYOUT",newLayout:$(N,d)})},[d]);return{error:t,isLoading:n,layout:r,updateLayout:b}},oe=e=>e["content-manager_app"].collectionTypeLinks,ie=s(85973),ae=s.n(ie),B=s(33348);const ue=(e,t)=>Object.keys(e).reduce((n,r)=>{const i=e[r],u=R()(t,[r],i);return ae()(i)?{...n,[r]:ue(i,u)}:(n[r]=u,n)},{});var m=(e,t,n)=>{const r=e.find(({to:v})=>v.includes(t));if(!r)return"/";const{to:i,search:u}=r,c=(0,B.parse)(u),d=(0,B.parse)(n.substring(1)),h=ue(c,d);return`${i}?${(0,B.stringify)(h,{encode:!1})}`},ce=e=>{const[{rawQuery:t}]=(0,C.Kx)(),n=(0,p.v9)(oe);return m(n,e,t)},ge=s(15655),le=s(53038),z=()=>{const{search:e}=(0,le.TH)(),t=e?(0,B.parse)(e.substring(1)):{};return t.plugins?(0,B.stringify)({plugins:t.plugins},{encode:!1}):""};const de=e=>{const t=(0,f.useRef)();return(0,f.useEffect)(()=>{t.current=e},[e]),t.current};var U=s(85149);const g=(e,t,n)=>({type:U.m,permissions:e,__meta__:{plugins:t,containerName:n}}),ee=()=>({type:U.Q}),fe=e=>e["content-manager_rbacManager"].permissions,te=e=>e.rbacProvider.collectionTypesRelatedPermissions;var me=(e,t,n="listView")=>{const r=(0,p.v9)(te),i=(0,p.v9)(fe),u=(0,p.I0)(),c=r[t];return(0,f.useEffect)(()=>c?(u(g(c,e?e.plugins:null,n)),()=>{u(ee())}):()=>{},[c,u,e,n]),i},o=s(75430);const l=()=>useContext(WysiwygContext);var a=null},77622:function(j,D,s){s.d(D,{Y:function(){return F}});var f=s(32735),p=s(74506),O=s.n(p),A=s(15655);const F=(k,{type:C="STRAPI_DND",index:L,item:M={},onStart:y,onEnd:I,onGrabItem:x,onDropItem:W,onCancel:Z,onMoveItem:E,dropSensitivity:G="regular"})=>{const R=(0,f.useRef)(null),[{handlerId:w},S]=(0,p.useDrop)({accept:C,collect(P){return{handlerId:P.getHandlerId()}},hover(P,J){if(!R.current)return;const Y=P.index,K=L;if(Y!==K){if(G==="regular"){const $=R.current.getBoundingClientRect(),q=($.bottom-$.top)/2,_=J.getClientOffset().y-$.top;if(Y<K&&_<q||Y>K&&_>q)return}E(K,Y),P.index=K}}}),[{isDragging:re},Q,H]=(0,p.useDrag)({type:C,item(){y&&y();const{width:P}=R.current?.getBoundingClientRect()??{};return{index:L,width:P,...M}},end(){I&&I()},canDrag:k,isDragging:M.id?P=>M.id===P.getItem().id:void 0,collect:P=>({isDragging:P.isDragging()})}),X=(0,A.A)(k,L,{onGrabItem:x,onDropItem:W,onCancel:Z,onMoveItem:E});return[{handlerId:w,isDragging:re,handleKeyDown:X},R,S,Q,H]}},15655:function(j,D,s){s.d(D,{A:function(){return p}});var f=s(32735);const p=(O,A,{onCancel:F,onDropItem:k,onGrabItem:C,onMoveItem:L})=>{const[M,y]=(0,f.useState)(!1),I=E=>{M&&(E==="UP"?L(A-1,A):E==="DOWN"&&L(A+1,A))},x=()=>{M?(k&&k(A),y(!1)):(C&&C(A),y(!0))},W=()=>{M&&(y(!1),F&&F(A))};return E=>{if(O&&!(E.key==="Tab"&&!M))switch(E.preventDefault(),E.key){case" ":case"Enter":x();break;case"Escape":W();break;case"ArrowDown":case"ArrowRight":I("DOWN");break;case"ArrowUp":case"ArrowLeft":I("UP");break;default:}}}},20716:function(j,D,s){s.d(D,{Jg:function(){return L},KQ:function(){return k},Vo:function(){return C},Yg:function(){return O}});var f=s(98178),p=s(60371);const O=()=>y=>y["content-manager_app"]||p.E,A=()=>createSelector(O(),y=>y),F=()=>createSelector(O(),y=>y.models),k=()=>(0,f.P1)(O(),y=>({collectionTypeLinks:y.collectionTypeLinks,singleTypeLinks:y.singleTypeLinks})),C=()=>(0,f.P1)(O(),({components:y,models:I})=>({schemas:[...y,...I]})),L=(0,f.P1)(O(),y=>y.fieldSizes);var M=null},53634:function(j,D){const s=f=>f["content-manager_editViewLayoutManager"].currentLayout;D.Z=s},24381:function(j,D){D.Z={COMPONENT:"component",EDIT_FIELD:"editField",FIELD:"field",DYNAMIC_ZONE:"dynamicZone",RELATION:"relation"}},7921:function(j,D){const s=f=>`content-manager.${f}`;D.Z=s},97724:function(j,D,s){s.d(D,{_Q:function(){return _.Z},W3:function(){return A},ko:function(){return L},FE:function(){return y},Di:function(){return Z},Ex:function(){return me},du:function(){return w},TA:function(){return Q},Ts:function(){return J},Uo:function(){return K},IF:function(){return q},OB:function(){return se.Z},w8:function(){return ye},kc:function(){return ce}});var f=s(99381),p=s.n(f),A=(o,l,a)=>{if(Array.isArray(o)&&l>=0&&a>=0&&l<=o.length-1&&a<=o.length-1){const e=p()(o),t=e.splice(l,1);return e.splice(a,0,t[0]),e}return o},F=s(59578),k=s.n(F),L=o=>{const l=o.type;return l==="relation"?!k()(o.relationType).includes("morph"):!["json","dynamiczone","richtext","password"].includes(l)&&!!l};const M=(o,l)=>{typeof o=="function"?o(l):o!=null&&(o.current=l)},y=(...o)=>l=>o.forEach(a=>M(a,l));var I=s(33795),x=s.n(I);const W=(o,l)=>Object.keys(o).reduce((a,e)=>{const t=x()(o,[e],{}),{default:n,component:r,type:i,required:u,min:c,repeatable:d}=t;if(n!==void 0&&(a[e]=n),i==="component"){const h=l?.[r]?.attributes??{},T=W(h,l);if(u===!0&&(a[e]=d===!0?[]:T),c&&d===!0&&u){a[e]=[];for(let v=0;v<c;v+=1)a[e].push(T)}}return i==="dynamiczone"&&u===!0&&(a[e]=[]),a},{});var Z=W,E=s(9086),G=s.n(E),w=({layouts:o,metadatas:l,...a})=>{const e=o.list.map(r=>r.name?r.name:r),t=Object.keys(l).reduce((r,i)=>{const u=x()(l,[i],{});let c=u.edit;return c.mainField&&(c={...c,mainField:u.edit.mainField.name}),{...r,[i]:{edit:c,list:G()(u.list,["mainField"])}}},{}),n=o.edit.map(r=>r.map(({name:i,size:u})=>({name:i,size:u})));return{...a,layouts:{edit:n,list:e},metadatas:t}};const S=(o,l)=>o.map(a=>({...a,subject:l}));var Q=o=>{const l={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(l).reduce((a,e)=>(a[e]=S(l[e],o),a),{})},H=s(95919),X=s.n(H),J=o=>o.split(".").filter(l=>X()(parseInt(l,10))),K=o=>{if(o.length===0)return-1;const l=Math.max.apply(Math,o.map(a=>a.__temp_key__??0));return Number.isNaN(l)?-1:l},q=o=>`/content-manager/${o}`,se=s(7921),_=s(24381),oe=s(86349),ie=s.n(oe),ae=s(3040),B=s.n(ae),ye=(o,l,a)=>{const e=i=>l.find(u=>u.uid===i),t=Object.assign({},o),n=o[a].uid,r=e(n);return B()(t,[a],ie()({},r,o[a])),Object.keys(o.components).forEach(i=>{const u=e(i);B()(t,["components",i],{...o.components[i],...u})}),t},m=s(19565),ce=(o,l,a)=>{const e=(t,n)=>Object.keys(t).reduce((r,i)=>{const u=(0,m.UN)(n,i),c=x()(t,i),d=(0,m.k2)(n,[i,"component"]),h=(0,m.k2)(n,[i,"repeatable"]);return u==="dynamiczone"?(r[i]=c.map(T=>e(T,a[T.__component])),r):u==="component"?(h?r[i]=c&&c.map(T=>e(T,a[d])):r[i]=c&&e(c,a[d]),r):(u!=="password"&&(r[i]=c),r)},{});return e(o,l)},ge=s(51355),le=s.n(ge),pe=s(86834),z=s.n(pe),de=s(78746),U=s.n(de),g=s(24346),ee=s(73347);g.kM(g.nK,"defined",function(){return this.test("defined",m.I0.required,o=>o!==void 0)}),g.kM(g.IX,"notEmptyMin",function(o){return this.test("notEmptyMin",m.I0.min,l=>z()(l)?!0:l.length>=o)}),g.kM(g.Z_,"isInferior",function(o,l){return this.test("isInferior",o,function(a){return!a||Number.isNaN(U()(a))?!0:U()(l)>=U()(a)})}),g.kM(g.Z_,"isSuperior",function(o,l){return this.test("isSuperior",o,function(a){return!a||Number.isNaN(U()(a))?!0:U()(a)>=U()(l)})});const fe=o=>x()(o,["attributes"],{}),te=(o,{components:l},a={isCreatingEntry:!0,isDraft:!0,isFromComponent:!1})=>{const e=fe(o);return g.Ry().shape(Object.keys(e).reduce((t,n)=>{const r=e[n];if(r.type!=="relation"&&r.type!=="component"&&r.type!=="dynamiczone"){const i=he(r.type,r,a);t[n]=i}if(r.type==="relation"&&(t[n]=["oneWay","oneToOne","manyToOne","oneToManyMorph","oneToOneMorph"].includes(r.relationType)?g.Ry().nullable():g.IX().nullable()),r.type==="component"){const i=te(l[r.component],{components:l},{...a,isFromComponent:!0});if(r.repeatable===!0){const{min:c,max:d,required:h}=r;let T=g.Vo(v=>{let b=g.IX().of(i);return c?h?b=b.min(c,m.I0.min):h!==!0&&z()(v)?b=b.nullable():b=b.min(c,m.I0.min):h&&!a.isDraft&&(b=b.min(1,m.I0.required)),d&&(b=b.max(d,m.I0.max)),b});return t[n]=T,t}const u=g.Vo(c=>c!==void 0?r.required===!0&&!a.isDraft?i.defined():i.nullable():r.required===!0?g.Ry().defined():g.Ry().nullable());return t[n]=u,t}if(r.type==="dynamiczone"){let i=g.IX().of(g.Vo(({__component:d})=>te(l[d],{components:l},{...a,isFromComponent:!0})));const{max:u,min:c}=r;c?r.required?i=i.test("min",m.I0.min,d=>a.isCreatingEntry?d&&d.length>=c:d===void 0?!0:d!==null&&d.length>=c).test("required",m.I0.required,d=>a.isCreatingEntry?d!==null||d!==void 0:d===void 0?!0:d!==null):i=i.notEmptyMin(c):r.required&&!a.isDraft&&(i=i.test("required",m.I0.required,d=>a.isCreatingEntry?d!==null||d!==void 0:d===void 0?!0:d!==null)),u&&(i=i.max(u,m.I0.max)),t[n]=i}return t},{}))},he=(o,l,a)=>{let e=g.nK();return["string","uid","text","richtext","email","password","enumeration"].includes(o)&&(e=g.Z_()),o==="json"&&(e=g.nK(m.I0.json).test("isJSON",m.I0.json,t=>{if(!t||!t.length)return!0;try{return JSON.parse(t),!0}catch{return!1}}).nullable().test("required",m.I0.required,t=>!(l.required&&(!t||!t.length)))),o==="email"&&(e=e.email(m.I0.email)),["number","integer","float","decimal"].includes(o)&&(e=g.Rx().transform(t=>X()(t)?void 0:t).typeError()),o==="biginteger"&&(e=g.Z_().matches(/^-?\d*$/)),["date","datetime"].includes(o)&&(e=g.hT()),Object.keys(l).forEach(t=>{const n=l[t];if(n||!le()(n)&&Number.isInteger(Math.floor(n))||n===0)switch(t){case"required":{a.isDraft||(o==="password"&&a.isCreatingEntry&&(e=e.required(m.I0.required)),o!=="password"&&(a.isCreatingEntry?e=e.required(m.I0.required):e=e.test("required",m.I0.required,r=>r===void 0&&!a.isFromComponent?!0:(0,ee.Z)(o)?r===0?!0:!!r:o==="boolean"?r!=null:o==="date"||o==="datetime"?typeof r=="string"?!z()(r):!z()(r?.toString()):!z()(r))));break}case"max":{o==="biginteger"?e=e.isInferior(m.I0.max,n):e=e.max(n,m.I0.max);break}case"maxLength":e=e.max(n,m.I0.maxLength);break;case"min":{o==="biginteger"?e=e.isSuperior(m.I0.min,n):e=e.min(n,m.I0.min);break}case"minLength":{a.isDraft||(e=e.min(n,m.I0.minLength));break}case"regex":e=e.matches(new RegExp(n),{message:m.I0.regex,excludeEmptyString:!l.required});break;case"lowercase":["text","textarea","email","string"].includes(o)&&(e=e.strict().lowercase());break;case"uppercase":["text","textarea","email","string"].includes(o)&&(e=e.strict().uppercase());break;case"positive":(0,ee.Z)(o)&&(e=e.positive());break;case"negative":(0,ee.Z)(o)&&(e=e.negative());break;default:e=e.nullable()}}),e};var me=te},73347:function(j,D,s){s.d(D,{Z:function(){return f}});function f(p){return["integer","biginteger","decimal","float","number"].includes(p)}}}]);
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[6691],{93994:function(g,f,t){var n=t(33795);function l(c,d){for(var s=-1,e=d.length,i=Array(e),r=c==null;++s<e;)i[s]=r?void 0:n(c,d[s]);return i}g.exports=l},88311:function(g,f,t){var n=t(93994),l=t(83368),c=l(n);g.exports=c},65923:function(g,f,t){"use strict";const n=t(52138),l=Symbol("max"),c=Symbol("length"),d=Symbol("lengthCalculator"),s=Symbol("allowStale"),e=Symbol("maxAge"),i=Symbol("dispose"),r=Symbol("noDisposeOnSet"),h=Symbol("lruList"),a=Symbol("cache"),o=Symbol("updateAgeOnGet"),u=()=>1;class E{constructor(v){if(typeof v=="number"&&(v={max:v}),v||(v={}),v.max&&(typeof v.max!="number"||v.max<0))throw new TypeError("max must be a non-negative number");const _=this[l]=v.max||1/0,R=v.length||u;if(this[d]=typeof R!="function"?u:R,this[s]=v.stale||!1,v.maxAge&&typeof v.maxAge!="number")throw new TypeError("maxAge must be a number");this[e]=v.maxAge||0,this[i]=v.dispose,this[r]=v.noDisposeOnSet||!1,this[o]=v.updateAgeOnGet||!1,this.reset()}set max(v){if(typeof v!="number"||v<0)throw new TypeError("max must be a non-negative number");this[l]=v||1/0,m(this)}get max(){return this[l]}set allowStale(v){this[s]=!!v}get allowStale(){return this[s]}set maxAge(v){if(typeof v!="number")throw new TypeError("maxAge must be a non-negative number");this[e]=v,m(this)}get maxAge(){return this[e]}set lengthCalculator(v){typeof v!="function"&&(v=u),v!==this[d]&&(this[d]=v,this[c]=0,this[h].forEach(_=>{_.length=this[d](_.value,_.key),this[c]+=_.length})),m(this)}get lengthCalculator(){return this[d]}get length(){return this[c]}get itemCount(){return this[h].length}rforEach(v,_){_=_||this;for(let R=this[h].tail;R!==null;){const y=R.prev;C(this,v,R,_),R=y}}forEach(v,_){_=_||this;for(let R=this[h].head;R!==null;){const y=R.next;C(this,v,R,_),R=y}}keys(){return this[h].toArray().map(v=>v.key)}values(){return this[h].toArray().map(v=>v.value)}reset(){this[i]&&this[h]&&this[h].length&&this[h].forEach(v=>this[i](v.key,v.value)),this[a]=new Map,this[h]=new n,this[c]=0}dump(){return this[h].map(v=>O(this,v)?!1:{k:v.key,v:v.value,e:v.now+(v.maxAge||0)}).toArray().filter(v=>v)}dumpLru(){return this[h]}set(v,_,R){if(R=R||this[e],R&&typeof R!="number")throw new TypeError("maxAge must be a number");const y=R?Date.now():0,x=this[d](_,v);if(this[a].has(v)){if(x>this[l])return D(this,this[a].get(v)),!1;const H=this[a].get(v).value;return this[i]&&(this[r]||this[i](v,H.value)),H.now=y,H.maxAge=R,H.value=_,this[c]+=x-H.length,H.length=x,this.get(v),m(this),!0}const F=new $(v,_,x,y,R);return F.length>this[l]?(this[i]&&this[i](v,_),!1):(this[c]+=F.length,this[h].unshift(F),this[a].set(v,this[h].head),m(this),!0)}has(v){if(!this[a].has(v))return!1;const _=this[a].get(v).value;return!O(this,_)}get(v){return p(this,v,!0)}peek(v){return p(this,v,!1)}pop(){const v=this[h].tail;return v?(D(this,v),v.value):null}del(v){D(this,this[a].get(v))}load(v){this.reset();const _=Date.now();for(let R=v.length-1;R>=0;R--){const y=v[R],x=y.e||0;if(x===0)this.set(y.k,y.v);else{const F=x-_;F>0&&this.set(y.k,y.v,F)}}}prune(){this[a].forEach((v,_)=>p(this,_,!1))}}const p=(P,v,_)=>{const R=P[a].get(v);if(R){const y=R.value;if(O(P,y)){if(D(P,R),!P[s])return}else _&&(P[o]&&(R.value.now=Date.now()),P[h].unshiftNode(R));return y.value}},O=(P,v)=>{if(!v||!v.maxAge&&!P[e])return!1;const _=Date.now()-v.now;return v.maxAge?_>v.maxAge:P[e]&&_>P[e]},m=P=>{if(P[c]>P[l])for(let v=P[h].tail;P[c]>P[l]&&v!==null;){const _=v.prev;D(P,v),v=_}},D=(P,v)=>{if(v){const _=v.value;P[i]&&P[i](_.key,_.value),P[c]-=_.length,P[a].delete(_.key),P[h].removeNode(v)}};class ${constructor(v,_,R,y,x){this.key=v,this.value=_,this.length=R,this.now=y,this.maxAge=x||0}}const C=(P,v,_,R)=>{let y=_.value;O(P,y)&&(D(P,_),P[s]||(y=void 0)),y&&v.call(R,y.value,y.key,P)};g.exports=E},13272:function(g,f,t){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.isSafari=f.isFirefox=void 0;var n=t(17611);const l=n.memoize(()=>/firefox/i.test(navigator.userAgent));f.isFirefox=l;const c=n.memoize(()=>Boolean(window.safari));f.isSafari=c},24284:function(g,f,t){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var n=t(17611);class l{enter(d){const s=this.entered.length,e=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(d));return this.entered=n.union(this.entered.filter(e),[d]),s===0&&this.entered.length>0}leave(d){const s=this.entered.length;return this.entered=n.without(this.entered.filter(this.isNodeInDocument),d),s>0&&this.entered.length===0}reset(){this.entered=[]}constructor(d){this.entered=[],this.isNodeInDocument=d}}f.EnterLeaveCounter=l},32022:function(g,f,t){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var n=t(24284),l=t(5782),c=t(54935),d=i(t(9689)),s=t(44444);function e(a,o,u){return o in a?Object.defineProperty(a,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[o]=u,a}function i(a){if(a&&a.__esModule)return a;var o={};if(a!=null){for(var u in a)if(Object.prototype.hasOwnProperty.call(a,u)){var E=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,u):{};E.get||E.set?Object.defineProperty(o,u,E):o[u]=a[u]}}return o.default=a,o}function r(a){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{},E=Object.keys(u);typeof Object.getOwnPropertySymbols=="function"&&(E=E.concat(Object.getOwnPropertySymbols(u).filter(function(p){return Object.getOwnPropertyDescriptor(u,p).enumerable}))),E.forEach(function(p){e(a,p,u[p])})}return a}class h{profile(){var o,u;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((o=this.dragStartSourceIds)===null||o===void 0?void 0:o.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((u=this.dragOverTargetIds)===null||u===void 0?void 0:u.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const o=this.rootElement;if(o!==void 0){if(o.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");o.__isReactDndBackendSetUp=!0,this.addEventListeners(o)}}teardown(){const o=this.rootElement;if(o!==void 0&&(o.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var u;(u=this.window)===null||u===void 0||u.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(o,u,E){return this.sourcePreviewNodeOptions.set(o,E),this.sourcePreviewNodes.set(o,u),()=>{this.sourcePreviewNodes.delete(o),this.sourcePreviewNodeOptions.delete(o)}}connectDragSource(o,u,E){this.sourceNodes.set(o,u),this.sourceNodeOptions.set(o,E);const p=m=>this.handleDragStart(m,o),O=m=>this.handleSelectStart(m);return u.setAttribute("draggable","true"),u.addEventListener("dragstart",p),u.addEventListener("selectstart",O),()=>{this.sourceNodes.delete(o),this.sourceNodeOptions.delete(o),u.removeEventListener("dragstart",p),u.removeEventListener("selectstart",O),u.setAttribute("draggable","false")}}connectDropTarget(o,u){const E=m=>this.handleDragEnter(m,o),p=m=>this.handleDragOver(m,o),O=m=>this.handleDrop(m,o);return u.addEventListener("dragenter",E),u.addEventListener("dragover",p),u.addEventListener("drop",O),()=>{u.removeEventListener("dragenter",E),u.removeEventListener("dragover",p),u.removeEventListener("drop",O)}}addEventListeners(o){o.addEventListener&&(o.addEventListener("dragstart",this.handleTopDragStart),o.addEventListener("dragstart",this.handleTopDragStartCapture,!0),o.addEventListener("dragend",this.handleTopDragEndCapture,!0),o.addEventListener("dragenter",this.handleTopDragEnter),o.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),o.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),o.addEventListener("dragover",this.handleTopDragOver),o.addEventListener("dragover",this.handleTopDragOverCapture,!0),o.addEventListener("drop",this.handleTopDrop),o.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(o){o.removeEventListener&&(o.removeEventListener("dragstart",this.handleTopDragStart),o.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),o.removeEventListener("dragend",this.handleTopDragEndCapture,!0),o.removeEventListener("dragenter",this.handleTopDragEnter),o.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),o.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),o.removeEventListener("dragover",this.handleTopDragOver),o.removeEventListener("dragover",this.handleTopDragOverCapture,!0),o.removeEventListener("drop",this.handleTopDrop),o.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const o=this.monitor.getSourceId(),u=this.sourceNodeOptions.get(o);return r({dropEffect:this.altKeyPressed?"copy":"move"},u||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const o=this.monitor.getSourceId(),u=this.sourcePreviewNodeOptions.get(o);return r({anchorX:.5,anchorY:.5,captureDraggingState:!1},u||{})}isDraggingNativeItem(){const o=this.monitor.getItemType();return Object.keys(d).some(u=>d[u]===o)}beginDragNativeItem(o,u){this.clearCurrentDragSourceNode(),this.currentNativeSource=c.createNativeDragSource(o,u),this.currentNativeHandle=this.registry.addSource(o,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(o){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=o;const u=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var E;return(E=this.rootElement)===null||E===void 0?void 0:E.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},u)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var o;(o=this.window)===null||o===void 0||o.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(o,u){o.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(u))}handleDragEnter(o,u){this.dragEnterTargetIds.unshift(u)}handleDragOver(o,u){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(u)}handleDrop(o,u){this.dropTargetIds.unshift(u)}constructor(o,u,E){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=p=>{const O=this.sourceNodes.get(p);return O&&l.getNodeClientOffset(O)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=p=>Boolean(p&&this.document&&this.document.body&&this.document.body.contains(p)),this.endDragIfSourceWasRemovedFromDOM=()=>{const p=this.currentDragSourceNode;p==null||this.isNodeInDocument(p)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=p=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(p||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=p=>{if(p.defaultPrevented)return;const{dragStartSourceIds:O}=this;this.dragStartSourceIds=null;const m=l.getEventClientOffset(p);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(O||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:m});const{dataTransfer:D}=p,$=c.matchNativeItemType(D);if(this.monitor.isDragging()){if(D&&typeof D.setDragImage=="function"){const P=this.monitor.getSourceId(),v=this.sourceNodes.get(P),_=this.sourcePreviewNodes.get(P)||v;if(_){const{anchorX:R,anchorY:y,offsetX:x,offsetY:F}=this.getCurrentSourcePreviewNodeOptions(),K={anchorX:R,anchorY:y},H={offsetX:x,offsetY:F},b=l.getDragPreviewOffset(v,_,m,K,H);D.setDragImage(_,b.x,b.y)}}try{D?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(p.target);const{captureDraggingState:C}=this.getCurrentSourcePreviewNodeOptions();C?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if($)this.beginDragNativeItem($);else{if(D&&!D.types&&(p.target&&!p.target.hasAttribute||!p.target.hasAttribute("draggable")))return;p.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=p=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var O;(O=this.currentNativeSource)===null||O===void 0||O.loadDataTransfer(p.dataTransfer)}if(!this.enterLeaveCounter.enter(p.target)||this.monitor.isDragging())return;const{dataTransfer:D}=p,$=c.matchNativeItemType(D);$&&this.beginDragNativeItem($,D)},this.handleTopDragEnter=p=>{const{dragEnterTargetIds:O}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=p.altKey,O.length>0&&this.actions.hover(O,{clientOffset:l.getEventClientOffset(p)}),O.some(D=>this.monitor.canDropOnTarget(D))&&(p.preventDefault(),p.dataTransfer&&(p.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=p=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var O;(O=this.currentNativeSource)===null||O===void 0||O.loadDataTransfer(p.dataTransfer)}},this.handleTopDragOver=p=>{const{dragOverTargetIds:O}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){p.preventDefault(),p.dataTransfer&&(p.dataTransfer.dropEffect="none");return}this.altKeyPressed=p.altKey,this.lastClientOffset=l.getEventClientOffset(p),this.scheduleHover(O),(O||[]).some(D=>this.monitor.canDropOnTarget(D))?(p.preventDefault(),p.dataTransfer&&(p.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?p.preventDefault():(p.preventDefault(),p.dataTransfer&&(p.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=p=>{this.isDraggingNativeItem()&&p.preventDefault(),this.enterLeaveCounter.leave(p.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=p=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var O;p.preventDefault(),(O=this.currentNativeSource)===null||O===void 0||O.loadDataTransfer(p.dataTransfer)}else c.matchNativeItemType(p.dataTransfer)&&p.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=p=>{const{dropTargetIds:O}=this;this.dropTargetIds=[],this.actions.hover(O,{clientOffset:l.getEventClientOffset(p)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=p=>{const O=p.target;typeof O.dragDrop=="function"&&(O.tagName==="INPUT"||O.tagName==="SELECT"||O.tagName==="TEXTAREA"||O.isContentEditable||(p.preventDefault(),O.dragDrop()))},this.options=new s.OptionsReader(u,E),this.actions=o.getActions(),this.monitor=o.getMonitor(),this.registry=o.getRegistry(),this.enterLeaveCounter=new n.EnterLeaveCounter(this.isNodeInDocument)}}f.HTML5BackendImpl=h},80557:function(g,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0});class t{interpolate(l){const{xs:c,ys:d,c1s:s,c2s:e,c3s:i}=this;let r=c.length-1;if(l===c[r])return d[r];let h=0,a=i.length-1,o;for(;h<=a;){o=Math.floor(.5*(h+a));const p=c[o];if(p<l)h=o+1;else if(p>l)a=o-1;else return d[o]}r=Math.max(0,a);const u=l-c[r],E=u*u;return d[r]+s[r]*u+e[r]*E+i[r]*u*E}constructor(l,c){const{length:d}=l,s=[];for(let O=0;O<d;O++)s.push(O);s.sort((O,m)=>l[O]<l[m]?-1:1);const e=[],i=[],r=[];let h,a;for(let O=0;O<d-1;O++)h=l[O+1]-l[O],a=c[O+1]-c[O],i.push(h),e.push(a),r.push(a/h);const o=[r[0]];for(let O=0;O<i.length-1;O++){const m=r[O],D=r[O+1];if(m*D<=0)o.push(0);else{h=i[O];const $=i[O+1],C=h+$;o.push(3*C/((C+$)/m+(C+h)/D))}}o.push(r[r.length-1]);const u=[],E=[];let p;for(let O=0;O<o.length-1;O++){p=r[O];const m=o[O],D=1/i[O],$=m+o[O+1]-p-p;u.push((p-m-$)*D),E.push($*D*D)}this.xs=l,this.ys=c,this.c1s=o,this.c2s=u,this.c3s=E}}f.MonotonicInterpolant=t},81061:function(g,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0});class t{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(l=>{Object.defineProperty(this.item,l,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${l}" until the drop event.`),null}})})}loadDataTransfer(l){if(l){const c={};Object.keys(this.config.exposeProperties).forEach(d=>{const s=this.config.exposeProperties[d];s!=null&&(c[d]={value:s(l,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,c)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(l,c){return c===l.getSourceId()}endDrag(){}constructor(l){this.config=l,this.item={},this.initializeExposedProperties()}}f.NativeDragSource=t},17892:function(g,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getDataFromDataTransfer=t;function t(n,l,c){const d=l.reduce((s,e)=>s||n.getData(e),"");return d??c}},54935:function(g,f,t){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.createNativeDragSource=c,f.matchNativeItemType=d;var n=t(66826),l=t(81061);function c(s,e){const i=n.nativeTypesConfig[s];if(!i)throw new Error(`native type ${s} has no configuration`);const r=new l.NativeDragSource(i);return r.loadDataTransfer(e),r}function d(s){if(!s)return null;const e=Array.prototype.slice.call(s.types||[]);return Object.keys(n.nativeTypesConfig).filter(i=>{const r=n.nativeTypesConfig[i];return r?.matchesTypes?r.matchesTypes.some(h=>e.indexOf(h)>-1):!1})[0]||null}},66826:function(g,f,t){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.nativeTypesConfig=void 0;var n=c(t(9689)),l=t(17892);function c(s){if(s&&s.__esModule)return s;var e={};if(s!=null){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(s,i):{};r.get||r.set?Object.defineProperty(e,i,r):e[i]=s[i]}}return e.default=s,e}const d={[n.FILE]:{exposeProperties:{files:s=>Array.prototype.slice.call(s.files),items:s=>s.items,dataTransfer:s=>s},matchesTypes:["Files"]},[n.HTML]:{exposeProperties:{html:(s,e)=>l.getDataFromDataTransfer(s,e,""),dataTransfer:s=>s},matchesTypes:["Html","text/html"]},[n.URL]:{exposeProperties:{urls:(s,e)=>l.getDataFromDataTransfer(s,e,"").split(`
|
|
2
|
-
`),dataTransfer:s=>s},matchesTypes:["Url","text/uri-list"]},[n.TEXT]:{exposeProperties:{text:(s,e)=>l.getDataFromDataTransfer(s,e,""),dataTransfer:s=>s},matchesTypes:["Text","text/plain"]}};f.nativeTypesConfig=d},9689:function(g,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.HTML=f.TEXT=f.URL=f.FILE=void 0;const t="__NATIVE_FILE__";f.FILE=t;const n="__NATIVE_URL__";f.URL=n;const l="__NATIVE_TEXT__";f.TEXT=l;const c="__NATIVE_HTML__";f.HTML=c},5782:function(g,f,t){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getNodeClientOffset=d,f.getEventClientOffset=s,f.getDragPreviewOffset=r;var n=t(13272),l=t(80557);const c=1;function d(h){const a=h.nodeType===c?h:h.parentElement;if(!a)return null;const{top:o,left:u}=a.getBoundingClientRect();return{x:u,y:o}}function s(h){return{x:h.clientX,y:h.clientY}}function e(h){var a;return h.nodeName==="IMG"&&(n.isFirefox()||!(!((a=document.documentElement)===null||a===void 0)&&a.contains(h)))}function i(h,a,o,u){let E=h?a.width:o,p=h?a.height:u;return n.isSafari()&&h&&(p/=window.devicePixelRatio,E/=window.devicePixelRatio),{dragPreviewWidth:E,dragPreviewHeight:p}}function r(h,a,o,u,E){const p=e(a),m=d(p?h:a),D={x:o.x-m.x,y:o.y-m.y},{offsetWidth:$,offsetHeight:C}=h,{anchorX:P,anchorY:v}=u,{dragPreviewWidth:_,dragPreviewHeight:R}=i(p,a,$,C),y=()=>{let T=new l.MonotonicInterpolant([0,.5,1],[D.y,D.y/C*R,D.y+R-C]).interpolate(v);return n.isSafari()&&p&&(T+=(window.devicePixelRatio-1)*R),T},x=()=>new l.MonotonicInterpolant([0,.5,1],[D.x,D.x/$*_,D.x+_-$]).interpolate(P),{offsetX:F,offsetY:K}=E,H=F===0||F,b=K===0||K;return{x:H?F:x(),y:b?K:y()}}},44444:function(g,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0});class t{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var l;return!((l=this.globalContext)===null||l===void 0)&&l.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var l;return((l=this.optionsArgs)===null||l===void 0?void 0:l.rootElement)||this.window}constructor(l,c){this.ownerDocument=null,this.globalContext=l,this.optionsArgs=c}}f.OptionsReader=t},15970:function(g,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getEmptyImage=n;let t;function n(){return t||(t=new Image,t.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),t}},51968:function(g,f,t){"use strict";var n;n={value:!0},Object.defineProperty(f,"rX",{enumerable:!0,get:function(){return d.getEmptyImage}}),f.PD=n=void 0;var l=t(32022),c=s(t(9689)),d=t(15970);n=c;function s(i){if(i&&i.__esModule)return i;var r={};if(i!=null){for(var h in i)if(Object.prototype.hasOwnProperty.call(i,h)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(i,h):{};a.get||a.set?Object.defineProperty(r,h,a):r[h]=i[h]}}return r.default=i,r}const e=function(r,h,a){return new l.HTML5BackendImpl(r,h,a)};f.PD=e},17611:function(g,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.memoize=t,f.without=n,f.union=l;function t(c){let d=null;return()=>(d==null&&(d=c()),d)}function n(c,d){return c.filter(s=>s!==d)}function l(c,d){const s=new Set,e=r=>s.add(r);c.forEach(e),d.forEach(e);const i=[];return s.forEach(r=>i.push(r)),i}},84074:function(g,f,t){const n=Symbol("SemVer ANY");class l{static get ANY(){return n}constructor(o,u){if(u=c(u),o instanceof l){if(o.loose===!!u.loose)return o;o=o.value}o=o.trim().split(/\s+/).join(" "),i("comparator",o,u),this.options=u,this.loose=!!u.loose,this.parse(o),this.semver===n?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(o){const u=this.options.loose?d[s.COMPARATORLOOSE]:d[s.COMPARATOR],E=o.match(u);if(!E)throw new TypeError(`Invalid comparator: ${o}`);this.operator=E[1]!==void 0?E[1]:"",this.operator==="="&&(this.operator=""),E[2]?this.semver=new r(E[2],this.options.loose):this.semver=n}toString(){return this.value}test(o){if(i("Comparator.test",o,this.options.loose),this.semver===n||o===n)return!0;if(typeof o=="string")try{o=new r(o,this.options)}catch{return!1}return e(o,this.operator,this.semver,this.options)}intersects(o,u){if(!(o instanceof l))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new h(o.value,u).test(this.value):o.operator===""?o.value===""?!0:new h(this.value,u).test(o.semver):(u=c(u),u.includePrerelease&&(this.value==="<0.0.0-0"||o.value==="<0.0.0-0")||!u.includePrerelease&&(this.value.startsWith("<0.0.0")||o.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&o.operator.startsWith(">")||this.operator.startsWith("<")&&o.operator.startsWith("<")||this.semver.version===o.semver.version&&this.operator.includes("=")&&o.operator.includes("=")||e(this.semver,"<",o.semver,u)&&this.operator.startsWith(">")&&o.operator.startsWith("<")||e(this.semver,">",o.semver,u)&&this.operator.startsWith("<")&&o.operator.startsWith(">")))}}g.exports=l;const c=t(30156),{safeRe:d,t:s}=t(90887),e=t(62401),i=t(33843),r=t(39405),h=t(14355)},14355:function(g,f,t){class n{constructor(T,S){if(S=d(S),T instanceof n)return T.loose===!!S.loose&&T.includePrerelease===!!S.includePrerelease?T:new n(T.raw,S);if(T instanceof s)return this.raw=T.value,this.set=[[T]],this.format(),this;if(this.options=S,this.loose=!!S.loose,this.includePrerelease=!!S.includePrerelease,this.raw=T.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(N=>this.parseRange(N)).filter(N=>N.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const N=this.set[0];if(this.set=this.set.filter(A=>!O(A[0])),this.set.length===0)this.set=[N];else if(this.set.length>1){for(const A of this.set)if(A.length===1&&m(A[0])){this.set=[A];break}}}this.format()}format(){return this.range=this.set.map(T=>T.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(T){const N=((this.options.includePrerelease&&E)|(this.options.loose&&p))+":"+T,A=c.get(N);if(A)return A;const L=this.options.loose,M=L?r[h.HYPHENRANGELOOSE]:r[h.HYPHENRANGE];T=T.replace(M,H(this.options.includePrerelease)),e("hyphen replace",T),T=T.replace(r[h.COMPARATORTRIM],a),e("comparator trim",T),T=T.replace(r[h.TILDETRIM],o),T=T.replace(r[h.CARETTRIM],u);let j=T.split(" ").map(U=>$(U,this.options)).join(" ").split(/\s+/).map(U=>K(U,this.options));L&&(j=j.filter(U=>(e("loose invalid filter",U,this.options),!!U.match(r[h.COMPARATORLOOSE])))),e("range list",j);const w=new Map,B=j.map(U=>new s(U,this.options));for(const U of B){if(O(U))return[U];w.set(U.value,U)}w.size>1&&w.has("")&&w.delete("");const W=[...w.values()];return c.set(N,W),W}intersects(T,S){if(!(T instanceof n))throw new TypeError("a Range is required");return this.set.some(N=>D(N,S)&&T.set.some(A=>D(A,S)&&N.every(L=>A.every(M=>L.intersects(M,S)))))}test(T){if(!T)return!1;if(typeof T=="string")try{T=new i(T,this.options)}catch{return!1}for(let S=0;S<this.set.length;S++)if(b(this.set[S],T,this.options))return!0;return!1}}g.exports=n;const l=t(65923),c=new l({max:1e3}),d=t(30156),s=t(84074),e=t(33843),i=t(39405),{safeRe:r,t:h,comparatorTrimReplace:a,tildeTrimReplace:o,caretTrimReplace:u}=t(90887),{FLAG_INCLUDE_PRERELEASE:E,FLAG_LOOSE:p}=t(88202),O=I=>I.value==="<0.0.0-0",m=I=>I.value==="",D=(I,T)=>{let S=!0;const N=I.slice();let A=N.pop();for(;S&&N.length;)S=N.every(L=>A.intersects(L,T)),A=N.pop();return S},$=(I,T)=>(e("comp",I,T),I=_(I,T),e("caret",I),I=P(I,T),e("tildes",I),I=y(I,T),e("xrange",I),I=F(I,T),e("stars",I),I),C=I=>!I||I.toLowerCase()==="x"||I==="*",P=(I,T)=>I.trim().split(/\s+/).map(S=>v(S,T)).join(" "),v=(I,T)=>{const S=T.loose?r[h.TILDELOOSE]:r[h.TILDE];return I.replace(S,(N,A,L,M,j)=>{e("tilde",I,N,A,L,M,j);let w;return C(A)?w="":C(L)?w=`>=${A}.0.0 <${+A+1}.0.0-0`:C(M)?w=`>=${A}.${L}.0 <${A}.${+L+1}.0-0`:j?(e("replaceTilde pr",j),w=`>=${A}.${L}.${M}-${j} <${A}.${+L+1}.0-0`):w=`>=${A}.${L}.${M} <${A}.${+L+1}.0-0`,e("tilde return",w),w})},_=(I,T)=>I.trim().split(/\s+/).map(S=>R(S,T)).join(" "),R=(I,T)=>{e("caret",I,T);const S=T.loose?r[h.CARETLOOSE]:r[h.CARET],N=T.includePrerelease?"-0":"";return I.replace(S,(A,L,M,j,w)=>{e("caret",I,A,L,M,j,w);let B;return C(L)?B="":C(M)?B=`>=${L}.0.0${N} <${+L+1}.0.0-0`:C(j)?L==="0"?B=`>=${L}.${M}.0${N} <${L}.${+M+1}.0-0`:B=`>=${L}.${M}.0${N} <${+L+1}.0.0-0`:w?(e("replaceCaret pr",w),L==="0"?M==="0"?B=`>=${L}.${M}.${j}-${w} <${L}.${M}.${+j+1}-0`:B=`>=${L}.${M}.${j}-${w} <${L}.${+M+1}.0-0`:B=`>=${L}.${M}.${j}-${w} <${+L+1}.0.0-0`):(e("no pr"),L==="0"?M==="0"?B=`>=${L}.${M}.${j}${N} <${L}.${M}.${+j+1}-0`:B=`>=${L}.${M}.${j}${N} <${L}.${+M+1}.0-0`:B=`>=${L}.${M}.${j} <${+L+1}.0.0-0`),e("caret return",B),B})},y=(I,T)=>(e("replaceXRanges",I,T),I.split(/\s+/).map(S=>x(S,T)).join(" ")),x=(I,T)=>{I=I.trim();const S=T.loose?r[h.XRANGELOOSE]:r[h.XRANGE];return I.replace(S,(N,A,L,M,j,w)=>{e("xRange",I,N,A,L,M,j,w);const B=C(L),W=B||C(M),U=W||C(j),G=U;return A==="="&&G&&(A=""),w=T.includePrerelease?"-0":"",B?A===">"||A==="<"?N="<0.0.0-0":N="*":A&&G?(W&&(M=0),j=0,A===">"?(A=">=",W?(L=+L+1,M=0,j=0):(M=+M+1,j=0)):A==="<="&&(A="<",W?L=+L+1:M=+M+1),A==="<"&&(w="-0"),N=`${A+L}.${M}.${j}${w}`):W?N=`>=${L}.0.0${w} <${+L+1}.0.0-0`:U&&(N=`>=${L}.${M}.0${w} <${L}.${+M+1}.0-0`),e("xRange return",N),N})},F=(I,T)=>(e("replaceStars",I,T),I.trim().replace(r[h.STAR],"")),K=(I,T)=>(e("replaceGTE0",I,T),I.trim().replace(r[T.includePrerelease?h.GTE0PRE:h.GTE0],"")),H=I=>(T,S,N,A,L,M,j,w,B,W,U,G,X)=>(C(N)?S="":C(A)?S=`>=${N}.0.0${I?"-0":""}`:C(L)?S=`>=${N}.${A}.0${I?"-0":""}`:M?S=`>=${S}`:S=`>=${S}${I?"-0":""}`,C(B)?w="":C(W)?w=`<${+B+1}.0.0-0`:C(U)?w=`<${B}.${+W+1}.0-0`:G?w=`<=${B}.${W}.${U}-${G}`:I?w=`<${B}.${W}.${+U+1}-0`:w=`<=${w}`,`${S} ${w}`.trim()),b=(I,T,S)=>{for(let N=0;N<I.length;N++)if(!I[N].test(T))return!1;if(T.prerelease.length&&!S.includePrerelease){for(let N=0;N<I.length;N++)if(e(I[N].semver),I[N].semver!==s.ANY&&I[N].semver.prerelease.length>0){const A=I[N].semver;if(A.major===T.major&&A.minor===T.minor&&A.patch===T.patch)return!0}return!1}return!0}},39405:function(g,f,t){const n=t(33843),{MAX_LENGTH:l,MAX_SAFE_INTEGER:c}=t(88202),{safeRe:d,t:s}=t(90887),e=t(30156),{compareIdentifiers:i}=t(31630);class r{constructor(a,o){if(o=e(o),a instanceof r){if(a.loose===!!o.loose&&a.includePrerelease===!!o.includePrerelease)return a;a=a.version}else if(typeof a!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof a}".`);if(a.length>l)throw new TypeError(`version is longer than ${l} characters`);n("SemVer",a,o),this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease;const u=a.trim().match(o.loose?d[s.LOOSE]:d[s.FULL]);if(!u)throw new TypeError(`Invalid Version: ${a}`);if(this.raw=a,this.major=+u[1],this.minor=+u[2],this.patch=+u[3],this.major>c||this.major<0)throw new TypeError("Invalid major version");if(this.minor>c||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>c||this.patch<0)throw new TypeError("Invalid patch version");u[4]?this.prerelease=u[4].split(".").map(E=>{if(/^[0-9]+$/.test(E)){const p=+E;if(p>=0&&p<c)return p}return E}):this.prerelease=[],this.build=u[5]?u[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(a){if(n("SemVer.compare",this.version,this.options,a),!(a instanceof r)){if(typeof a=="string"&&a===this.version)return 0;a=new r(a,this.options)}return a.version===this.version?0:this.compareMain(a)||this.comparePre(a)}compareMain(a){return a instanceof r||(a=new r(a,this.options)),i(this.major,a.major)||i(this.minor,a.minor)||i(this.patch,a.patch)}comparePre(a){if(a instanceof r||(a=new r(a,this.options)),this.prerelease.length&&!a.prerelease.length)return-1;if(!this.prerelease.length&&a.prerelease.length)return 1;if(!this.prerelease.length&&!a.prerelease.length)return 0;let o=0;do{const u=this.prerelease[o],E=a.prerelease[o];if(n("prerelease compare",o,u,E),u===void 0&&E===void 0)return 0;if(E===void 0)return 1;if(u===void 0)return-1;if(u===E)continue;return i(u,E)}while(++o)}compareBuild(a){a instanceof r||(a=new r(a,this.options));let o=0;do{const u=this.build[o],E=a.build[o];if(n("prerelease compare",o,u,E),u===void 0&&E===void 0)return 0;if(E===void 0)return 1;if(u===void 0)return-1;if(u===E)continue;return i(u,E)}while(++o)}inc(a,o,u){switch(a){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",o,u);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",o,u);break;case"prepatch":this.prerelease.length=0,this.inc("patch",o,u),this.inc("pre",o,u);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",o,u),this.inc("pre",o,u);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const E=Number(u)?1:0;if(!o&&u===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[E];else{let p=this.prerelease.length;for(;--p>=0;)typeof this.prerelease[p]=="number"&&(this.prerelease[p]++,p=-2);if(p===-1){if(o===this.prerelease.join(".")&&u===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(E)}}if(o){let p=[o,E];u===!1&&(p=[o]),i(this.prerelease[0],o)===0?isNaN(this.prerelease[1])&&(this.prerelease=p):this.prerelease=p}break}default:throw new Error(`invalid increment argument: ${a}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}g.exports=r},10953:function(g,f,t){const n=t(15497),l=(c,d)=>{const s=n(c.trim().replace(/^[=v]+/,""),d);return s?s.version:null};g.exports=l},62401:function(g,f,t){const n=t(38896),l=t(38378),c=t(99261),d=t(56647),s=t(63433),e=t(64622),i=(r,h,a,o)=>{switch(h){case"===":return typeof r=="object"&&(r=r.version),typeof a=="object"&&(a=a.version),r===a;case"!==":return typeof r=="object"&&(r=r.version),typeof a=="object"&&(a=a.version),r!==a;case"":case"=":case"==":return n(r,a,o);case"!=":return l(r,a,o);case">":return c(r,a,o);case">=":return d(r,a,o);case"<":return s(r,a,o);case"<=":return e(r,a,o);default:throw new TypeError(`Invalid operator: ${h}`)}};g.exports=i},36839:function(g,f,t){const n=t(39405),l=t(15497),{safeRe:c,t:d}=t(90887),s=(e,i)=>{if(e instanceof n)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;i=i||{};let r=null;if(!i.rtl)r=e.match(c[d.COERCE]);else{let h;for(;(h=c[d.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||h.index+h[0].length!==r.index+r[0].length)&&(r=h),c[d.COERCERTL].lastIndex=h.index+h[1].length+h[2].length;c[d.COERCERTL].lastIndex=-1}return r===null?null:l(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,i)};g.exports=s},6218:function(g,f,t){const n=t(39405),l=(c,d,s)=>{const e=new n(c,s),i=new n(d,s);return e.compare(i)||e.compareBuild(i)};g.exports=l},9643:function(g,f,t){const n=t(73308),l=(c,d)=>n(c,d,!0);g.exports=l},73308:function(g,f,t){const n=t(39405),l=(c,d,s)=>new n(c,s).compare(new n(d,s));g.exports=l},93948:function(g,f,t){const n=t(15497),l=(c,d)=>{const s=n(c,null,!0),e=n(d,null,!0),i=s.compare(e);if(i===0)return null;const r=i>0,h=r?s:e,a=r?e:s,o=!!h.prerelease.length;if(!!a.prerelease.length&&!o)return!a.patch&&!a.minor?"major":h.patch?"patch":h.minor?"minor":"major";const E=o?"pre":"";return s.major!==e.major?E+"major":s.minor!==e.minor?E+"minor":s.patch!==e.patch?E+"patch":"prerelease"};g.exports=l},38896:function(g,f,t){const n=t(73308),l=(c,d,s)=>n(c,d,s)===0;g.exports=l},99261:function(g,f,t){const n=t(73308),l=(c,d,s)=>n(c,d,s)>0;g.exports=l},56647:function(g,f,t){const n=t(73308),l=(c,d,s)=>n(c,d,s)>=0;g.exports=l},35791:function(g,f,t){const n=t(39405),l=(c,d,s,e,i)=>{typeof s=="string"&&(i=e,e=s,s=void 0);try{return new n(c instanceof n?c.version:c,s).inc(d,e,i).version}catch{return null}};g.exports=l},63433:function(g,f,t){const n=t(73308),l=(c,d,s)=>n(c,d,s)<0;g.exports=l},64622:function(g,f,t){const n=t(73308),l=(c,d,s)=>n(c,d,s)<=0;g.exports=l},60629:function(g,f,t){const n=t(39405),l=(c,d)=>new n(c,d).major;g.exports=l},59986:function(g,f,t){const n=t(39405),l=(c,d)=>new n(c,d).minor;g.exports=l},38378:function(g,f,t){const n=t(73308),l=(c,d,s)=>n(c,d,s)!==0;g.exports=l},15497:function(g,f,t){const n=t(39405),l=(c,d,s=!1)=>{if(c instanceof n)return c;try{return new n(c,d)}catch(e){if(!s)return null;throw e}};g.exports=l},89800:function(g,f,t){const n=t(39405),l=(c,d)=>new n(c,d).patch;g.exports=l},44408:function(g,f,t){const n=t(15497),l=(c,d)=>{const s=n(c,d);return s&&s.prerelease.length?s.prerelease:null};g.exports=l},80762:function(g,f,t){const n=t(73308),l=(c,d,s)=>n(d,c,s);g.exports=l},72743:function(g,f,t){const n=t(6218),l=(c,d)=>c.sort((s,e)=>n(e,s,d));g.exports=l},15312:function(g,f,t){const n=t(14355),l=(c,d,s)=>{try{d=new n(d,s)}catch{return!1}return d.test(c)};g.exports=l},52354:function(g,f,t){const n=t(6218),l=(c,d)=>c.sort((s,e)=>n(s,e,d));g.exports=l},34512:function(g,f,t){const n=t(15497),l=(c,d)=>{const s=n(c,d);return s?s.version:null};g.exports=l},54770:function(g,f,t){const n=t(90887),l=t(88202),c=t(39405),d=t(31630),s=t(15497),e=t(34512),i=t(10953),r=t(35791),h=t(93948),a=t(60629),o=t(59986),u=t(89800),E=t(44408),p=t(73308),O=t(80762),m=t(9643),D=t(6218),$=t(52354),C=t(72743),P=t(99261),v=t(63433),_=t(38896),R=t(38378),y=t(56647),x=t(64622),F=t(62401),K=t(36839),H=t(84074),b=t(14355),I=t(15312),T=t(59663),S=t(94931),N=t(65891),A=t(24925),L=t(69965),M=t(93260),j=t(60715),w=t(30006),B=t(9560),W=t(77795),U=t(57732);g.exports={parse:s,valid:e,clean:i,inc:r,diff:h,major:a,minor:o,patch:u,prerelease:E,compare:p,rcompare:O,compareLoose:m,compareBuild:D,sort:$,rsort:C,gt:P,lt:v,eq:_,neq:R,gte:y,lte:x,cmp:F,coerce:K,Comparator:H,Range:b,satisfies:I,toComparators:T,maxSatisfying:S,minSatisfying:N,minVersion:A,validRange:L,outside:M,gtr:j,ltr:w,intersects:B,simplifyRange:W,subset:U,SemVer:c,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:l.SEMVER_SPEC_VERSION,RELEASE_TYPES:l.RELEASE_TYPES,compareIdentifiers:d.compareIdentifiers,rcompareIdentifiers:d.rcompareIdentifiers}},88202:function(g){const f="2.0.0",n=Number.MAX_SAFE_INTEGER||9007199254740991,l=16,c=["major","premajor","minor","preminor","patch","prepatch","prerelease"];g.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:l,MAX_SAFE_INTEGER:n,RELEASE_TYPES:c,SEMVER_SPEC_VERSION:f,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},33843:function(g){const f=typeof process=="object"&&{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"http://localhost:1337",STRAPI_TELEMETRY_DISABLED:!1}&&{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"http://localhost:1337",STRAPI_TELEMETRY_DISABLED:!1}.NODE_DEBUG&&/\bsemver\b/i.test({ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"http://localhost:1337",STRAPI_TELEMETRY_DISABLED:!1}.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};g.exports=f},31630:function(g){const f=/^[0-9]+$/,t=(l,c)=>{const d=f.test(l),s=f.test(c);return d&&s&&(l=+l,c=+c),l===c?0:d&&!s?-1:s&&!d?1:l<c?-1:1},n=(l,c)=>t(c,l);g.exports={compareIdentifiers:t,rcompareIdentifiers:n}},30156:function(g){const f=Object.freeze({loose:!0}),t=Object.freeze({}),n=l=>l?typeof l!="object"?f:l:t;g.exports=n},90887:function(g,f,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=t(88202),l=t(33843);f=g.exports={};const c=f.re=[],d=f.safeRe=[],s=f.src=[],e=f.t={};let i=0;const r=(h,a,o)=>{const u=a.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"),E=i++;l(h,E,a),e[h]=E,s[E]=a,c[E]=new RegExp(a,o?"g":void 0),d[E]=new RegExp(u,o?"g":void 0)};r("NUMERICIDENTIFIER","0|[1-9]\\d*"),r("NUMERICIDENTIFIERLOOSE","[0-9]+"),r("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),r("MAINVERSION",`(${s[e.NUMERICIDENTIFIER]})\\.(${s[e.NUMERICIDENTIFIER]})\\.(${s[e.NUMERICIDENTIFIER]})`),r("MAINVERSIONLOOSE",`(${s[e.NUMERICIDENTIFIERLOOSE]})\\.(${s[e.NUMERICIDENTIFIERLOOSE]})\\.(${s[e.NUMERICIDENTIFIERLOOSE]})`),r("PRERELEASEIDENTIFIER",`(?:${s[e.NUMERICIDENTIFIER]}|${s[e.NONNUMERICIDENTIFIER]})`),r("PRERELEASEIDENTIFIERLOOSE",`(?:${s[e.NUMERICIDENTIFIERLOOSE]}|${s[e.NONNUMERICIDENTIFIER]})`),r("PRERELEASE",`(?:-(${s[e.PRERELEASEIDENTIFIER]}(?:\\.${s[e.PRERELEASEIDENTIFIER]})*))`),r("PRERELEASELOOSE",`(?:-?(${s[e.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[e.PRERELEASEIDENTIFIERLOOSE]})*))`),r("BUILDIDENTIFIER","[0-9A-Za-z-]+"),r("BUILD",`(?:\\+(${s[e.BUILDIDENTIFIER]}(?:\\.${s[e.BUILDIDENTIFIER]})*))`),r("FULLPLAIN",`v?${s[e.MAINVERSION]}${s[e.PRERELEASE]}?${s[e.BUILD]}?`),r("FULL",`^${s[e.FULLPLAIN]}$`),r("LOOSEPLAIN",`[v=\\s]*${s[e.MAINVERSIONLOOSE]}${s[e.PRERELEASELOOSE]}?${s[e.BUILD]}?`),r("LOOSE",`^${s[e.LOOSEPLAIN]}$`),r("GTLT","((?:<|>)?=?)"),r("XRANGEIDENTIFIERLOOSE",`${s[e.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),r("XRANGEIDENTIFIER",`${s[e.NUMERICIDENTIFIER]}|x|X|\\*`),r("XRANGEPLAIN",`[v=\\s]*(${s[e.XRANGEIDENTIFIER]})(?:\\.(${s[e.XRANGEIDENTIFIER]})(?:\\.(${s[e.XRANGEIDENTIFIER]})(?:${s[e.PRERELEASE]})?${s[e.BUILD]}?)?)?`),r("XRANGEPLAINLOOSE",`[v=\\s]*(${s[e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[e.XRANGEIDENTIFIERLOOSE]})(?:${s[e.PRERELEASELOOSE]})?${s[e.BUILD]}?)?)?`),r("XRANGE",`^${s[e.GTLT]}\\s*${s[e.XRANGEPLAIN]}$`),r("XRANGELOOSE",`^${s[e.GTLT]}\\s*${s[e.XRANGEPLAINLOOSE]}$`),r("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),r("COERCERTL",s[e.COERCE],!0),r("LONETILDE","(?:~>?)"),r("TILDETRIM",`(\\s*)${s[e.LONETILDE]}\\s+`,!0),f.tildeTrimReplace="$1~",r("TILDE",`^${s[e.LONETILDE]}${s[e.XRANGEPLAIN]}$`),r("TILDELOOSE",`^${s[e.LONETILDE]}${s[e.XRANGEPLAINLOOSE]}$`),r("LONECARET","(?:\\^)"),r("CARETTRIM",`(\\s*)${s[e.LONECARET]}\\s+`,!0),f.caretTrimReplace="$1^",r("CARET",`^${s[e.LONECARET]}${s[e.XRANGEPLAIN]}$`),r("CARETLOOSE",`^${s[e.LONECARET]}${s[e.XRANGEPLAINLOOSE]}$`),r("COMPARATORLOOSE",`^${s[e.GTLT]}\\s*(${s[e.LOOSEPLAIN]})$|^$`),r("COMPARATOR",`^${s[e.GTLT]}\\s*(${s[e.FULLPLAIN]})$|^$`),r("COMPARATORTRIM",`(\\s*)${s[e.GTLT]}\\s*(${s[e.LOOSEPLAIN]}|${s[e.XRANGEPLAIN]})`,!0),f.comparatorTrimReplace="$1$2$3",r("HYPHENRANGE",`^\\s*(${s[e.XRANGEPLAIN]})\\s+-\\s+(${s[e.XRANGEPLAIN]})\\s*$`),r("HYPHENRANGELOOSE",`^\\s*(${s[e.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[e.XRANGEPLAINLOOSE]})\\s*$`),r("STAR","(<|>)?=?\\s*\\*"),r("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),r("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},60715:function(g,f,t){const n=t(93260),l=(c,d,s)=>n(c,d,">",s);g.exports=l},9560:function(g,f,t){const n=t(14355),l=(c,d,s)=>(c=new n(c,s),d=new n(d,s),c.intersects(d,s));g.exports=l},30006:function(g,f,t){const n=t(93260),l=(c,d,s)=>n(c,d,"<",s);g.exports=l},94931:function(g,f,t){const n=t(39405),l=t(14355),c=(d,s,e)=>{let i=null,r=null,h=null;try{h=new l(s,e)}catch{return null}return d.forEach(a=>{h.test(a)&&(!i||r.compare(a)===-1)&&(i=a,r=new n(i,e))}),i};g.exports=c},65891:function(g,f,t){const n=t(39405),l=t(14355),c=(d,s,e)=>{let i=null,r=null,h=null;try{h=new l(s,e)}catch{return null}return d.forEach(a=>{h.test(a)&&(!i||r.compare(a)===1)&&(i=a,r=new n(i,e))}),i};g.exports=c},24925:function(g,f,t){const n=t(39405),l=t(14355),c=t(99261),d=(s,e)=>{s=new l(s,e);let i=new n("0.0.0");if(s.test(i)||(i=new n("0.0.0-0"),s.test(i)))return i;i=null;for(let r=0;r<s.set.length;++r){const h=s.set[r];let a=null;h.forEach(o=>{const u=new n(o.semver.version);switch(o.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!a||c(u,a))&&(a=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),a&&(!i||c(i,a))&&(i=a)}return i&&s.test(i)?i:null};g.exports=d},93260:function(g,f,t){const n=t(39405),l=t(84074),{ANY:c}=l,d=t(14355),s=t(15312),e=t(99261),i=t(63433),r=t(64622),h=t(56647),a=(o,u,E,p)=>{o=new n(o,p),u=new d(u,p);let O,m,D,$,C;switch(E){case">":O=e,m=r,D=i,$=">",C=">=";break;case"<":O=i,m=h,D=e,$="<",C="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(o,u,p))return!1;for(let P=0;P<u.set.length;++P){const v=u.set[P];let _=null,R=null;if(v.forEach(y=>{y.semver===c&&(y=new l(">=0.0.0")),_=_||y,R=R||y,O(y.semver,_.semver,p)?_=y:D(y.semver,R.semver,p)&&(R=y)}),_.operator===$||_.operator===C||(!R.operator||R.operator===$)&&m(o,R.semver))return!1;if(R.operator===C&&D(o,R.semver))return!1}return!0};g.exports=a},77795:function(g,f,t){const n=t(15312),l=t(73308);g.exports=(c,d,s)=>{const e=[];let i=null,r=null;const h=c.sort((E,p)=>l(E,p,s));for(const E of h)n(E,d,s)?(r=E,i||(i=E)):(r&&e.push([i,r]),r=null,i=null);i&&e.push([i,null]);const a=[];for(const[E,p]of e)E===p?a.push(E):!p&&E===h[0]?a.push("*"):p?E===h[0]?a.push(`<=${p}`):a.push(`${E} - ${p}`):a.push(`>=${E}`);const o=a.join(" || "),u=typeof d.raw=="string"?d.raw:String(d);return o.length<u.length?o:d}},57732:function(g,f,t){const n=t(14355),l=t(84074),{ANY:c}=l,d=t(15312),s=t(73308),e=(u,E,p={})=>{if(u===E)return!0;u=new n(u,p),E=new n(E,p);let O=!1;e:for(const m of u.set){for(const D of E.set){const $=h(m,D,p);if(O=O||$!==null,$)continue e}if(O)return!1}return!0},i=[new l(">=0.0.0-0")],r=[new l(">=0.0.0")],h=(u,E,p)=>{if(u===E)return!0;if(u.length===1&&u[0].semver===c){if(E.length===1&&E[0].semver===c)return!0;p.includePrerelease?u=i:u=r}if(E.length===1&&E[0].semver===c){if(p.includePrerelease)return!0;E=r}const O=new Set;let m,D;for(const x of u)x.operator===">"||x.operator===">="?m=a(m,x,p):x.operator==="<"||x.operator==="<="?D=o(D,x,p):O.add(x.semver);if(O.size>1)return null;let $;if(m&&D){if($=s(m.semver,D.semver,p),$>0)return null;if($===0&&(m.operator!==">="||D.operator!=="<="))return null}for(const x of O){if(m&&!d(x,String(m),p)||D&&!d(x,String(D),p))return null;for(const F of E)if(!d(x,String(F),p))return!1;return!0}let C,P,v,_,R=D&&!p.includePrerelease&&D.semver.prerelease.length?D.semver:!1,y=m&&!p.includePrerelease&&m.semver.prerelease.length?m.semver:!1;R&&R.prerelease.length===1&&D.operator==="<"&&R.prerelease[0]===0&&(R=!1);for(const x of E){if(_=_||x.operator===">"||x.operator===">=",v=v||x.operator==="<"||x.operator==="<=",m){if(y&&x.semver.prerelease&&x.semver.prerelease.length&&x.semver.major===y.major&&x.semver.minor===y.minor&&x.semver.patch===y.patch&&(y=!1),x.operator===">"||x.operator===">="){if(C=a(m,x,p),C===x&&C!==m)return!1}else if(m.operator===">="&&!d(m.semver,String(x),p))return!1}if(D){if(R&&x.semver.prerelease&&x.semver.prerelease.length&&x.semver.major===R.major&&x.semver.minor===R.minor&&x.semver.patch===R.patch&&(R=!1),x.operator==="<"||x.operator==="<="){if(P=o(D,x,p),P===x&&P!==D)return!1}else if(D.operator==="<="&&!d(D.semver,String(x),p))return!1}if(!x.operator&&(D||m)&&$!==0)return!1}return!(m&&v&&!D&&$!==0||D&&_&&!m&&$!==0||y||R)},a=(u,E,p)=>{if(!u)return E;const O=s(u.semver,E.semver,p);return O>0?u:O<0||E.operator===">"&&u.operator===">="?E:u},o=(u,E,p)=>{if(!u)return E;const O=s(u.semver,E.semver,p);return O<0?u:O>0||E.operator==="<"&&u.operator==="<="?E:u};g.exports=e},59663:function(g,f,t){const n=t(14355),l=(c,d)=>new n(c,d).set.map(s=>s.map(e=>e.value).join(" ").trim().split(" "));g.exports=l},69965:function(g,f,t){const n=t(14355),l=(c,d)=>{try{return new n(c,d).range||"*"}catch{return null}};g.exports=l},19961:function(g){"use strict";g.exports=function(f){f.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},52138:function(g,f,t){"use strict";g.exports=n,n.Node=s,n.create=n;function n(e){var i=this;if(i instanceof n||(i=new n),i.tail=null,i.head=null,i.length=0,e&&typeof e.forEach=="function")e.forEach(function(a){i.push(a)});else if(arguments.length>0)for(var r=0,h=arguments.length;r<h;r++)i.push(arguments[r]);return i}n.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var i=e.next,r=e.prev;return i&&(i.prev=r),r&&(r.next=i),e===this.head&&(this.head=i),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,i},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var i=this.head;e.list=this,e.next=i,i&&(i.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var i=this.tail;e.list=this,e.prev=i,i&&(i.next=e),this.tail=e,this.head||(this.head=e),this.length++}},n.prototype.push=function(){for(var e=0,i=arguments.length;e<i;e++)c(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,i=arguments.length;e<i;e++)d(this,arguments[e]);return this.length},n.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},n.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},n.prototype.forEach=function(e,i){i=i||this;for(var r=this.head,h=0;r!==null;h++)e.call(i,r.value,h,this),r=r.next},n.prototype.forEachReverse=function(e,i){i=i||this;for(var r=this.tail,h=this.length-1;r!==null;h--)e.call(i,r.value,h,this),r=r.prev},n.prototype.get=function(e){for(var i=0,r=this.head;r!==null&&i<e;i++)r=r.next;if(i===e&&r!==null)return r.value},n.prototype.getReverse=function(e){for(var i=0,r=this.tail;r!==null&&i<e;i++)r=r.prev;if(i===e&&r!==null)return r.value},n.prototype.map=function(e,i){i=i||this;for(var r=new n,h=this.head;h!==null;)r.push(e.call(i,h.value,this)),h=h.next;return r},n.prototype.mapReverse=function(e,i){i=i||this;for(var r=new n,h=this.tail;h!==null;)r.push(e.call(i,h.value,this)),h=h.prev;return r},n.prototype.reduce=function(e,i){var r,h=this.head;if(arguments.length>1)r=i;else if(this.head)h=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;h!==null;a++)r=e(r,h.value,a),h=h.next;return r},n.prototype.reduceReverse=function(e,i){var r,h=this.tail;if(arguments.length>1)r=i;else if(this.tail)h=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;h!==null;a--)r=e(r,h.value,a),h=h.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),i=0,r=this.head;r!==null;i++)e[i]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),i=0,r=this.tail;r!==null;i++)e[i]=r.value,r=r.prev;return e},n.prototype.slice=function(e,i){i=i||this.length,i<0&&(i+=this.length),e=e||0,e<0&&(e+=this.length);var r=new n;if(i<e||i<0)return r;e<0&&(e=0),i>this.length&&(i=this.length);for(var h=0,a=this.head;a!==null&&h<e;h++)a=a.next;for(;a!==null&&h<i;h++,a=a.next)r.push(a.value);return r},n.prototype.sliceReverse=function(e,i){i=i||this.length,i<0&&(i+=this.length),e=e||0,e<0&&(e+=this.length);var r=new n;if(i<e||i<0)return r;e<0&&(e=0),i>this.length&&(i=this.length);for(var h=this.length,a=this.tail;a!==null&&h>i;h--)a=a.prev;for(;a!==null&&h>e;h--,a=a.prev)r.push(a.value);return r},n.prototype.splice=function(e,i,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var h=0,a=this.head;a!==null&&h<e;h++)a=a.next;for(var o=[],h=0;a&&h<i;h++)o.push(a.value),a=this.removeNode(a);a===null&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev);for(var h=0;h<r.length;h++)a=l(this,a,r[h]);return o},n.prototype.reverse=function(){for(var e=this.head,i=this.tail,r=e;r!==null;r=r.prev){var h=r.prev;r.prev=r.next,r.next=h}return this.head=i,this.tail=e,this};function l(e,i,r){var h=i===e.head?new s(r,null,i,e):new s(r,i,i.next,e);return h.next===null&&(e.tail=h),h.prev===null&&(e.head=h),e.length++,h}function c(e,i){e.tail=new s(i,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function d(e,i){e.head=new s(i,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,i,r,h){if(!(this instanceof s))return new s(e,i,r,h);this.list=h,this.value=e,i?(i.next=this,this.prev=i):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{t(19961)(n)}catch{}},15300:function(g,f,t){"use strict";t.d(f,{$:function(){return e}});var n=t(74512),l=t(8471),c=t(82875),d=t(87933);const s=(0,l.ZP)(d.k)`
|
|
3
|
-
width: ${({condensed:i})=>i?"max-content":`${224/16}rem`};
|
|
4
|
-
border-right: 1px solid ${({theme:i})=>i.colors.neutral150};
|
|
5
|
-
`,e=({condensed:i=!1,...r})=>(0,n.jsx)(c.f.Provider,{value:i,children:(0,n.jsx)(s,{alignItems:"normal",as:"nav",background:"neutral0",condensed:i,direction:"column",height:"100vh",position:"sticky",top:0,zIndex:2,...r})})},82875:function(g,f,t){"use strict";t.d(f,{S:function(){return c},f:function(){return l}});var n=t(32735);const l=(0,n.createContext)(!1),c=()=>(0,n.useContext)(l)},61450:function(g,f,t){"use strict";t.d(f,{D:function(){return u}});var n=t(74512),l=t(32735),c=t(8471),d=t(82875),s=t(62499),e=t(72850),i=t(3685),r=t(87933),h=t(49372);const a=c.ZP.div`
|
|
6
|
-
border-radius: ${({theme:E})=>E.borderRadius};
|
|
7
|
-
|
|
8
|
-
svg,
|
|
9
|
-
img {
|
|
10
|
-
height: ${({condensed:E})=>E?`${40/16}rem`:`${32/16}rem`};
|
|
11
|
-
width: ${({condensed:E})=>E?`${40/16}rem`:`${32/16}rem`};
|
|
12
|
-
}
|
|
13
|
-
`,o=(0,c.ZP)(s.f)`
|
|
14
|
-
text-decoration: unset;
|
|
15
|
-
color: inherit;
|
|
16
|
-
`,u=l.forwardRef(({workplace:E,title:p,icon:O,...m},D)=>{const $=(0,d.S)();return m.to=m?.to??"/",$?(0,n.jsx)(s.f,{ref:D,...m,children:(0,n.jsx)(e.x,{paddingLeft:3,paddingRight:3,paddingTop:4,paddingBottom:4,children:(0,n.jsxs)(a,{condensed:!0,children:[O,(0,n.jsxs)(i.T,{children:[(0,n.jsx)("span",{children:p}),(0,n.jsx)("span",{children:E})]})]})})}):(0,n.jsx)(o,{ref:D,...m,children:(0,n.jsx)(e.x,{paddingLeft:3,paddingRight:3,paddingTop:4,paddingBottom:4,children:(0,n.jsxs)(r.k,{children:[(0,n.jsx)(a,{"aria-hidden":!0,tabIndex:-1,children:O}),(0,n.jsxs)(e.x,{paddingLeft:2,children:[(0,n.jsxs)(h.Z,{fontWeight:"bold",textColor:"neutral800",as:"span",children:[p,(0,n.jsx)(i.T,{as:"span",children:E})]}),(0,n.jsx)(h.Z,{variant:"pi",as:"p",textColor:"neutral600","aria-hidden":!0,children:E})]})]})})})})},9371:function(g,f,t){"use strict";t.d(f,{w:function(){return a}});var n=t(74512),l=t(77277),c=t(76913),d=t(8471),s=t(82875),e=t(87933),i=t(99140),r=t(3685);const h=(0,d.ZP)(e.k).attrs(o=>({justifyContent:"center",...o}))`
|
|
17
|
-
background: ${({theme:o})=>o.colors.neutral0};
|
|
18
|
-
border: 1px solid ${({theme:o})=>o.colors.neutral150};
|
|
19
|
-
border-radius: ${({theme:o})=>o.borderRadius};
|
|
20
|
-
position: absolute;
|
|
21
|
-
bottom: ${(9+4)/16}rem; // 9 is the height of the svg and 4 is the padding below
|
|
22
|
-
right: ${({theme:o,condensed:u})=>u?0:o.spaces[5]};
|
|
23
|
-
transform: ${({condensed:o})=>o?"translateX(50%)":void 0};
|
|
24
|
-
z-index: 2;
|
|
25
|
-
width: ${18/16}rem;
|
|
26
|
-
height: ${25/16}rem;
|
|
27
|
-
|
|
28
|
-
svg {
|
|
29
|
-
width: ${6/16}rem;
|
|
30
|
-
height: ${9/16}rem;
|
|
31
|
-
}
|
|
32
|
-
`,a=({children:o,...u})=>{const E=(0,s.S)();return(0,n.jsxs)(h,{as:"button",condensed:E,...u,children:[(0,n.jsx)(i.J,{as:E?l.Z:c.Z,"aria-hidden":!0,color:"neutral600"}),(0,n.jsx)(r.T,{children:o})]})}},25390:function(g,f,t){"use strict";t.d(f,{q:function(){return c}});var n=t(74512),l=t(72850);const c=({children:d})=>(0,n.jsx)(l.x,{position:"relative",children:d})},78464:function(g,f,t){"use strict";t.d(f,{O:function(){return O}});var n=t(74512),l=t(32735),c=t(8471),d=t(82875),s=t(72850),e=t(62499),i=t(49372),r=t(87933),h=t(6518),a=t(63919);const o=(0,c.ZP)(s.x)`
|
|
33
|
-
svg {
|
|
34
|
-
width: 1rem;
|
|
35
|
-
height: 1rem;
|
|
36
|
-
}
|
|
37
|
-
`,u=(0,c.ZP)(e.f)`
|
|
38
|
-
position: relative;
|
|
39
|
-
text-decoration: none;
|
|
40
|
-
display: block;
|
|
41
|
-
border-radius: ${({theme:m})=>m.borderRadius};
|
|
42
|
-
background: ${({theme:m})=>m.colors.neutral0};
|
|
43
|
-
|
|
44
|
-
${i.Z} {
|
|
45
|
-
color: ${({theme:m})=>m.colors.neutral600};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
svg path {
|
|
49
|
-
fill: ${({theme:m})=>m.colors.neutral500};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&:hover {
|
|
53
|
-
background: ${({theme:m})=>m.colors.neutral100};
|
|
54
|
-
|
|
55
|
-
${i.Z} {
|
|
56
|
-
color: ${({theme:m})=>m.colors.neutral700};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
svg path {
|
|
60
|
-
fill: ${({theme:m})=>m.colors.neutral600};
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&.active {
|
|
65
|
-
background: ${({theme:m})=>m.colors.primary100};
|
|
66
|
-
|
|
67
|
-
svg path {
|
|
68
|
-
fill: ${({theme:m})=>m.colors.primary600};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
${i.Z} {
|
|
72
|
-
color: ${({theme:m})=>m.colors.primary600};
|
|
73
|
-
font-weight: 500;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
`,E=(0,c.ZP)(r.k)`
|
|
77
|
-
padding: ${({theme:m})=>`${m.spaces[2]} ${m.spaces[3]}`};
|
|
78
|
-
`,p=(0,c.ZP)(h.C)`
|
|
79
|
-
${({theme:m,condensed:D})=>D&&`
|
|
80
|
-
position: absolute;
|
|
81
|
-
// Values based on visual aspect
|
|
82
|
-
top: -${m.spaces[3]};
|
|
83
|
-
right: -${m.spaces[1]};
|
|
84
|
-
`}
|
|
85
|
-
|
|
86
|
-
${i.Z} {
|
|
87
|
-
//find a solution to remove !important
|
|
88
|
-
color: ${({theme:m})=>m.colors.neutral0} !important;
|
|
89
|
-
line-height: 0;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
display: flex;
|
|
93
|
-
justify-content: center;
|
|
94
|
-
align-items: center;
|
|
95
|
-
min-width: ${({theme:m})=>m.spaces[6]};
|
|
96
|
-
height: ${({theme:m})=>m.spaces[5]};
|
|
97
|
-
padding: ${({theme:m})=>`0 ${m.spaces[2]}`};
|
|
98
|
-
border-radius: ${({theme:m})=>m.spaces[10]};
|
|
99
|
-
background: ${({theme:m})=>m.colors.primary600};
|
|
100
|
-
`,O=l.forwardRef(({children:m,icon:D,badgeContent:$,badgeAriaLabel:C,...P},v)=>(0,d.S)()?(0,n.jsx)(u,{ref:v,...P,children:(0,n.jsx)(a.u,{position:"right",label:m,children:(0,n.jsxs)(E,{as:"span",justifyContent:"center",children:[(0,n.jsx)(o,{"aria-hidden":!0,paddingRight:0,as:"span",children:D}),$&&(0,n.jsx)(p,{condensed:!0,"aria-label":C,children:$})]})})}):(0,n.jsx)(u,{ref:v,...P,children:(0,n.jsxs)(E,{as:"span",justifyContent:"space-between",children:[(0,n.jsxs)(r.k,{children:[(0,n.jsx)(o,{"aria-hidden":!0,paddingRight:3,as:"span",children:D}),(0,n.jsx)(i.Z,{children:m})]}),$&&(0,n.jsx)(p,{justifyContent:"center","aria-label":C,children:$})]})}))},42889:function(g,f,t){"use strict";t.d(f,{y:function(){return h}});var n=t(74512),l=t(32735),c=t(82875),d=t(87933),s=t(72850),e=t(9026),i=t(3685),r=t(49372);const h=({label:a,children:o,horizontal:u=!1,spacing:E=2,...p})=>(0,c.S)()?(0,n.jsxs)(d.k,{direction:"column",alignItems:"stretch",gap:2,children:[(0,n.jsxs)(s.x,{paddingTop:1,paddingBottom:1,background:"neutral0",hasRadius:!0,as:"span",children:[(0,n.jsx)(e.i,{}),(0,n.jsx)(i.T,{children:(0,n.jsx)("span",{children:a})})]}),(0,n.jsx)(d.k,{as:"ul",gap:E,direction:u?"row":"column",alignItems:u?"center":"stretch",...p,children:l.Children.map(o,(O,m)=>(0,n.jsx)("li",{children:O},m))})]}):(0,n.jsxs)(d.k,{direction:"column",alignItems:"stretch",gap:2,children:[(0,n.jsx)(s.x,{paddingTop:1,paddingBottom:1,background:"neutral0",paddingRight:3,paddingLeft:3,hasRadius:!0,as:"span",children:(0,n.jsx)(r.Z,{variant:"sigma",textColor:"neutral600",children:a})}),(0,n.jsx)(d.k,{as:"ul",gap:E,direction:u?"row":"column",alignItems:u?"center":"stretch",...p,children:l.Children.map(o,(O,m)=>(0,n.jsx)("li",{children:O},m))})]})},1897:function(g,f,t){"use strict";t.d(f,{_:function(){return i}});var n=t(74512),l=t(32735),c=t(8471),d=t(72850),s=t(87933);const e=(0,c.ZP)(d.x)`
|
|
101
|
-
flex-grow: 1;
|
|
102
|
-
overflow-y: auto;
|
|
103
|
-
`,i=({children:r,spacing:h=4,horizontal:a=!1,...o})=>(0,n.jsx)(e,{paddingLeft:3,paddingRight:2,paddingTop:3,paddingBottom:8,children:(0,n.jsx)(s.k,{as:"ul",gap:h,direction:a?"row":"column",alignItems:a?"center":"stretch",...o,children:l.Children.map(r,(u,E)=>(0,n.jsx)("li",{children:u},E))})})},64838:function(g,f,t){"use strict";t.d(f,{r:function(){return o}});var n=t(74512),l=t(32735),c=t(8471),d=t(82875),s=t(72850),e=t(87933),i=t(69033),r=t(3685),h=t(49372);const a=(0,c.ZP)(s.x)`
|
|
104
|
-
border-top: 1px solid ${({theme:u})=>u.colors.neutral150};
|
|
105
|
-
`,o=l.forwardRef(({src:u,children:E,initials:p,...O},m)=>{const D=(0,d.S)();return(0,n.jsx)(a,{paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5,...O,children:(0,n.jsxs)(e.k,{as:"button",justifyContent:D?"center":void 0,ref:m,children:[u?(0,n.jsx)(i.q,{src:u,alt:"","aria-hidden":!0}):(0,n.jsx)(i.L,{children:p}),D?(0,n.jsx)(r.T,{children:(0,n.jsx)("span",{children:E})}):(0,n.jsx)(s.x,{width:`${130/16}rem`,paddingLeft:2,as:"span",children:(0,n.jsx)(h.Z,{ellipsis:!0,textColor:"neutral600",children:E})})]})})})},37272:function(g,f,t){"use strict";t.d(f,{Z:function(){return c}});var n=t(74512);const l=d=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...d,children:(0,n.jsx)("path",{fill:"#212134",d:"M13 21v2.5l-3-2-3 2V21h-.5A3.5 3.5 0 0 1 3 17.5V5a3 3 0 0 1 3-3h14a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1h-7Zm-6-2v-2h6v2h6v-3H6.5a1.5 1.5 0 1 0 0 3H7ZM7 5v2h2V5H7Zm0 3v2h2V8H7Zm0 3v2h2v-2H7Z"})}),c=l},92967:function(g,f,t){"use strict";t.d(f,{Z:function(){return c}});var n=t(74512);const l=d=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...d,children:[(0,n.jsx)("path",{fill:"#212134",d:"M11.987 23.036v-.964H1.876V1.876h10.111V0H0v24h11.987v-.964Z"}),(0,n.jsx)("path",{fill:"#212134",d:"M8 11.2c0-.11.09-.2.2-.2h11.973l-5.445-5.445a.2.2 0 0 1 0-.283l1.13-1.13a.2.2 0 0 1 .283 0l7.718 7.717a.2.2 0 0 1 0 .282L16.14 19.86a.2.2 0 0 1-.282 0l-1.13-1.13a.2.2 0 0 1 0-.284L20.172 13H8.2a.2.2 0 0 1-.2-.2v-1.6Z"})]}),c=l},45323:function(g,f,t){"use strict";t.d(f,{Z:function(){return c}});var n=t(74512);const l=d=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...d,children:(0,n.jsx)("path",{fill:"#212134",d:"M6.455 19 2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455ZM7 10v2h2v-2H7Zm4 0v2h2v-2h-2Zm4 0v2h2v-2h-2Z"})}),c=l},78429:function(g,f,t){"use strict";t.d(f,{Z:function(){return c}});var n=t(74512);const l=d=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...d,children:(0,n.jsx)("path",{fill:"#212134",d:"M1.946 9.315c-.522-.174-.527-.455.01-.634l19.087-6.362c.53-.176.832.12.684.638l-5.454 19.086c-.15.529-.455.547-.679.045L12 14l6-8-8 6-8.054-2.685Z"})}),c=l},2438:function(g,f,t){"use strict";t.d(f,{Z:function(){return c}});var n=t(74512);const l=d=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 8 8",...d,children:(0,n.jsx)("path",{fill:"#212134",d:"M2 .93c0-.4.45-.63.78-.41l4.6 3.06c.3.2.3.64 0 .84l-4.6 3.06A.5.5 0 0 1 2 7.07V.93Z"})}),c=l},29685:function(g,f,t){"use strict";t.d(f,{Z:function(){return c}});var n=t(74512);const l=d=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 15 14",...d,children:(0,n.jsx)("path",{fill:"#212134",d:"M5.08 4.1c0-1.19 1.18-2.17 2.42-2.17s2.43.98 2.43 2.17c0 1.1-.56 1.61-1.31 2.28l-.03.03c-.75.65-1.66 1.47-1.66 3.09a.57.57 0 1 0 1.15 0c0-1.08.55-1.6 1.3-2.26l.02-.02c.75-.66 1.67-1.48 1.67-3.12C11.07 2.13 9.22.78 7.5.78 5.78.78 3.93 2.13 3.93 4.1a.57.57 0 1 0 1.15 0Zm2.42 9.26a.88.88 0 1 0 0-1.75.88.88 0 0 0 0 1.75Z"})}),c=l},73165:function(g,f,t){"use strict";t.d(f,{Z:function(){return c}});var n=t(74512);const l=d=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...d,children:(0,n.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M23.707.297A1 1 0 0 0 23 .004h-2a13.907 13.907 0 0 0-5.38 1.077 1 1 0 0 0-.615.923V4.92a.035.035 0 0 1-.022.038l-2-1.47a1 1 0 0 0-1.265.052A14 14 0 0 0 7 14.004v1.585l-2.707 2.707a1 1 0 1 0 1.415 1.415l2.707-2.708H10a14.014 14.014 0 0 0 14-14v-2a1 1 0 0 0-.293-.706ZM18 23.999H3a3 3 0 0 1-3-3V6A3 3 0 0 1 3 3h3a1 1 0 1 1 0 2H3a1 1 0 0 0-1 1v15a1 1 0 0 0 1 1h15a1 1 0 0 0 1-1v-3a1 1 0 1 1 2 0v3a3 3 0 0 1-3 3Z",clipRule:"evenodd"})}),c=l}}]);
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[7065],{61234:function(w,m,e){"use strict";e.d(m,{v:function(){return a}});var t=e(32735),r=e(15062);function a(d,c){const o=(0,r.oR)();(0,t.useEffect)(()=>{o.injectReducer(d,c)},[o,d,c])}},50337:function(w,m,e){"use strict";e.d(m,{pl:function(){return s},aY:function(){return L},q5:function(){return l.q}});var t=e(32735),r=e(19565),a=e(86209),d=e(97889);const c={data:[],isLoading:!0};var y=(M,A)=>(0,d.ZP)(M,g=>{switch(A.type){case"GET_DATA_SUCCEEDED":{g.data=A.data,g.isLoading=!1;break}case"GET_DATA_ERROR":{g.isLoading=!1;break}default:return g}}),s=({ssoEnabled:M})=>{const[A,g]=(0,t.useReducer)(y,c),T=(0,r.lm)(),{get:f}=(0,r.kY)();return(0,t.useEffect)(()=>{(async()=>{try{if(!M){g({type:"GET_DATA_SUCCEEDED",data:[]});return}const{data:R}=await f((0,a.IF)("providers"));g({type:"GET_DATA_SUCCEEDED",data:R})}catch(R){console.error(R),g({type:"GET_DATA_ERROR"}),T({type:"warning",message:{id:"notification.error"}})}})()},[f,M,T]),A},n=e(36866),p=e.n(n),h=e(67879),i=e(53038),l=e(53104);const v="strapi-notification-seat-limit",x="https://cloud.strapi.io/profile/billing",O="https://strapi.io/billing/request-seats";var L=()=>{const{formatMessage:M}=(0,h.Z)();let{license:A,isError:g,isLoading:T}=(0,l.q)();const f=(0,r.lm)(),{pathname:D}=(0,i.TH)(),{enforcementUserCount:R,permittedSeats:W,licenseLimitStatus:I,isHostedOnStrapiCloud:U}=A;(0,t.useEffect)(()=>{if(g||T)return;const $=!p()(W)&&!window.sessionStorage.getItem(`${v}-${D}`)&&(I==="AT_LIMIT"||I==="OVER_LIMIT");let B;I==="OVER_LIMIT"?B="warning":I==="AT_LIMIT"&&(B="softWarning"),$&&f({type:B,message:M({id:"notification.ee.warning.over-.message",defaultMessage:"Add seats to {licenseLimitStatus, select, OVER_LIMIT {invite} other {re-enable}} Users. If you already did it but it's not reflected in Strapi yet, make sure to restart your app."},{licenseLimitStatus:I}),title:M({id:"notification.ee.warning.at-seat-limit.title",defaultMessage:"{licenseLimitStatus, select, OVER_LIMIT {Over} other {At}} seat limit ({enforcementUserCount}/{permittedSeats})"},{licenseLimitStatus:I,enforcementUserCount:R,permittedSeats:W}),link:{url:U?x:O,label:M({id:"notification.ee.warning.seat-limit.link",defaultMessage:"{isHostedOnStrapiCloud, select, true {ADD SEATS} other {CONTACT SALES}}"},{isHostedOnStrapiCloud:U})},blockTransition:!0,onClose(){window.sessionStorage.setItem(`${v}-${D}`,!0)}})},[f,A,D,M,T,W,I,R,U,g])}},53104:function(w,m,e){"use strict";e.d(m,{q:function(){return d}});var t=e(32735),r=e(19565),a=e(20108);function d({enabled:c}={enabled:!0}){const{get:o}=(0,r.kY)(),{data:y,isError:u,isLoading:s}=(0,a.useQuery)(["ee","license-limit-info"],async()=>{const{data:{data:h}}=await o("/admin/license-limit-information");return h},{enabled:c}),n=y??{},p=t.useCallback(h=>(n?.features??[]).find(l=>l.name===h)?.options??{},[n?.features]);return{license:n,getFeature:p,isError:u,isLoading:s}}},77061:function(w,m,e){"use strict";e.d(m,{CI:function(){return d},FP:function(){return o},Js:function(){return u},_V:function(){return a},fC:function(){return r},rI:function(){return y},xn:function(){return c}});var t=e(2121);function r({status:s,data:n}){return{type:t.qZ,payload:{status:s,workflow:n}}}function a(s){return{type:t.x4,payload:{stageId:s}}}function d(s={}){return{type:t.Ot,payload:s}}function c(s,n){return{type:t.Nj,payload:{stageId:s,...n}}}function o(s,n){return{type:t.$k,payload:{newIndex:n,oldIndex:s}}}function y(s){return{type:t.VS,payload:s}}function u(){return{type:t.gu}}},27187:function(w,m,e){"use strict";e.d(m,{eJ:function(){return g},lx:function(){return M},h4:function(){return T},fC:function(){return A}});var t=e(32735),r=e(96709),a=e(27649),d=e(17e3),c=e(82055),o=e(19565),y=e(29439),u=e(67879),s=e(17379),n=e(2121),p=e(87933),h=e(49372),i=e(16899),l=e(60216),v=e.n(l),x=e(8471);const O=(0,x.ZP)(p.k)`
|
|
2
|
-
svg path {
|
|
3
|
-
fill: ${({theme:f})=>f.colors.neutral600};
|
|
4
|
-
}
|
|
5
|
-
`;function P({name:f}){return t.createElement(p.k,{background:"primary100",borderStyle:"dashed",borderColor:"primary600",borderWidth:"1px",gap:3,hasRadius:!0,padding:3,shadow:"tableShadow",width:(0,o.Q1)(300)},t.createElement(O,{alignItems:"center",background:"neutral200",borderRadius:"50%",height:6,justifyContent:"center",width:6},t.createElement(i.Z,{width:`${8/16}rem`})),t.createElement(h.Z,{fontWeight:"bold"},f))}P.propTypes={name:v().string.isRequired};function L({type:f,item:D}){switch(f){case n.uL.STAGE:return t.createElement(P,{...D});default:return null}}function M(){return t.createElement(s.r,{renderItem:L})}function A({children:f}){return t.createElement(r.A,null,t.createElement(a.o,{tabIndex:-1},t.createElement(d.D,null,f)))}function g({href:f}){const{formatMessage:D}=(0,u.Z)();return t.createElement(o.rU,{startIcon:t.createElement(y.Z,null),to:f},D({id:"global.back",defaultMessage:"Back"}))}function T({title:f,subtitle:D,navigationAction:R,primaryAction:W}){return t.createElement(t.Fragment,null,t.createElement(o.SL,{name:f}),t.createElement(c.T,{navigationAction:R,primaryAction:W,title:f,subtitle:D}))}},90562:function(w,m,e){"use strict";e.d(m,{uT:function(){return L},fC:function(){return g},Dx:function(){return P}});var t=e(32735),r=e(49372),a=e(87933),d=e(85025),c=e(31600),o=e(72850),y=e(50563),u=e(95489),s=e(35331),n=e(60216),p=e.n(n),h=e(67879),i=e(8471),l=e.p+"0cd5f8915b265d5b1856.png";const v="limits-title",x="https://strapi.io/pricing-cloud",O="https://strapi.io/contact-sales";function P({children:T}){return t.createElement(r.Z,{variant:"alpha",id:v},T)}P.propTypes={children:p().node.isRequired};function L({children:T}){return t.createElement(r.Z,{variant:"omega"},T)}L.propTypes={children:p().node.isRequired};function M(){const{formatMessage:T}=(0,h.Z)();return t.createElement(a.k,{gap:2,paddingTop:4},t.createElement(u.Q,{variant:"default",isExternal:!0,href:x},T({id:"Settings.review-workflows.limit.cta.learn",defaultMessage:"Learn more"})),t.createElement(u.Q,{variant:"tertiary",isExternal:!0,href:O},T({id:"Settings.review-workflows.limit.cta.sales",defaultMessage:"Contact Sales"})))}const A=i.ZP.img`
|
|
6
|
-
// Margin top|right reverse the padding of ModalBody
|
|
7
|
-
margin-right: ${({theme:T})=>`-${T.spaces[7]}`};
|
|
8
|
-
margin-top: ${({theme:T})=>`-${T.spaces[7]}`};
|
|
9
|
-
width: 360px;
|
|
10
|
-
`;function g({children:T,isOpen:f,onClose:D}){const{formatMessage:R}=(0,h.Z)();return f?t.createElement(d.P,{labelledBy:v},t.createElement(c.f,null,t.createElement(a.k,{gap:2,paddingLeft:7,position:"relative"},t.createElement(a.k,{alignItems:"start",direction:"column",gap:2,width:"60%"},T,t.createElement(M,null)),t.createElement(a.k,{justifyContent:"end",height:"100%",width:"40%"},t.createElement(A,{src:l,"aria-hidden":!0,alt:"",loading:"lazy"}),t.createElement(o.x,{display:"flex",position:"absolute",right:0,top:0},t.createElement(y.h,{icon:t.createElement(s.Z,null),"aria-label":R({id:"global.close",defaultMessage:"Close"}),onClick:D})))))):null}g.defaultProps={isOpen:!1},g.propTypes={children:p().node.isRequired,isOpen:p().bool,onClose:p().func.isRequired}},45594:function(w,m,e){"use strict";e.d(m,{U:function(){return b}});var t=e(32735),r=e(72850),a=e(87933),d=e(19565),c=e(60216),o=e.n(c),y=e(67879),u=e(15062),s=e(8471),n=e(77061),p=e(49372),h=e(86308);const i=(0,s.ZP)(h.Z)`
|
|
11
|
-
> circle {
|
|
12
|
-
fill: ${({theme:E})=>E.colors.neutral150};
|
|
13
|
-
}
|
|
14
|
-
> path {
|
|
15
|
-
fill: ${({theme:E})=>E.colors.neutral600};
|
|
16
|
-
}
|
|
17
|
-
`,l=(0,s.ZP)(r.x)`
|
|
18
|
-
border-radius: 26px;
|
|
19
|
-
|
|
20
|
-
svg {
|
|
21
|
-
height: ${({theme:E})=>E.spaces[6]};
|
|
22
|
-
width: ${({theme:E})=>E.spaces[6]};
|
|
23
|
-
|
|
24
|
-
> path {
|
|
25
|
-
fill: ${({theme:E})=>E.colors.neutral600};
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&:hover {
|
|
30
|
-
color: ${({theme:E})=>E.colors.primary600} !important;
|
|
31
|
-
${p.Z} {
|
|
32
|
-
color: ${({theme:E})=>E.colors.primary600} !important;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
${i} {
|
|
36
|
-
> circle {
|
|
37
|
-
fill: ${({theme:E})=>E.colors.primary600};
|
|
38
|
-
}
|
|
39
|
-
> path {
|
|
40
|
-
fill: ${({theme:E})=>E.colors.neutral100};
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&:active {
|
|
46
|
-
${p.Z} {
|
|
47
|
-
color: ${({theme:E})=>E.colors.primary600};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
${i} {
|
|
51
|
-
> circle {
|
|
52
|
-
fill: ${({theme:E})=>E.colors.primary600};
|
|
53
|
-
}
|
|
54
|
-
> path {
|
|
55
|
-
fill: ${({theme:E})=>E.colors.neutral100};
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
`;function v({children:E,...Z}){return t.createElement(l,{as:"button",background:"neutral0",border:"neutral150",paddingBottom:3,paddingLeft:4,paddingRight:4,paddingTop:3,shadow:"filterShadow",...Z},t.createElement(a.k,{gap:2},t.createElement(i,{"aria-hidden":!0}),t.createElement(p.Z,{variant:"pi",fontWeight:"bold",textColor:"neutral500"},E)))}v.propTypes={children:o().node.isRequired};var x=e(3685),O=e(83828),P=e(61762),L=e(50563),M=e(89966),A=e(15335),g=e(5803),T=e(10369),f=e(77035),D=e(4038),R=e(47081),W=e(92802),I=e(51968),U=e(69242),$=e(97724),B=e(2121),K=e(68886);const V=(0,K.s)();function S(){return t.createElement(r.x,{background:"primary100",borderStyle:"dashed",borderColor:"primary600",borderWidth:"1px",display:"block",hasRadius:!0,padding:6,shadow:"tableShadow"})}function k({id:E,index:Z,canDelete:G,canReorder:ee,canUpdate:H,isOpen:te=!1,stagesCount:z}){const Y=C=>`${C+1} of ${z}`,Q=C=>{J(j({id:"dnd.grab-item",defaultMessage:"{item}, grabbed. Current position in list: {position}. Press up and down arrow to change position, Spacebar to drop, Escape to cancel."},{item:N.value,position:Y(C)}))},le=C=>{J(j({id:"dnd.drop-item",defaultMessage:"{item}, dropped. Final position in list: {position}."},{item:N.value,position:Y(C)}))},de=()=>{J(j({id:"dnd.cancel-item",defaultMessage:"{item}, dropped. Re-order cancelled."},{item:N.value}))},ce=(C,X)=>{J(j({id:"dnd.reorder",defaultMessage:"{item}, moved. New position in list: {position}."},{item:N.value,position:Y(C)})),q((0,n.FP)(X,C))},[ae,J]=t.useState(null),{formatMessage:j}=(0,y.Z)(),{trackUsage:ue}=(0,d.rS)(),q=(0,u.I0)(),[ne,me]=t.useState(te),[N,re,fe]=(0,W.U$)(`stages.${Z}.name`),[_,oe,ge]=(0,W.U$)(`stages.${Z}.color`),[{handlerId:pe,isDragging:ve,handleKeyDown:he},Ee,ye,Te,se]=(0,U.Y9)(ee,{index:Z,item:{name:N.value},onGrabItem:Q,onDropItem:le,onMoveItem:ce,onCancel:de,type:B.uL.STAGE}),Se=(0,$.FE)(Ee,ye),we=V.map(({hex:C,name:X})=>({value:C,label:j({id:"Settings.review-workflows.stage.color.name",defaultMessage:"{name}"},{name:X}),color:C}));t.useEffect(()=>{se((0,I.rX)(),{captureDraggingState:!1})},[se,Z]);const{themeColorName:Me}=(0,K.k)(_.value)??{};return t.createElement(r.x,{ref:Se},ae&&t.createElement(x.T,{"aria-live":"assertive"},ae),ve?t.createElement(S,null):t.createElement(O.U,{size:"S",variant:"primary",onToggle:()=>{me(!ne),ne||ue("willEditStage")},expanded:ne,shadow:"tableShadow",error:re.error??oe?.error??!1,hasErrorMessage:!1},t.createElement(P.B,{title:N.value,togglePosition:"left",action:t.createElement(a.k,null,G&&t.createElement(L.h,{background:"transparent",icon:t.createElement(D.Z,null),label:j({id:"Settings.review-workflows.stage.delete",defaultMessage:"Delete stage"}),noBorder:!0,onClick:()=>q((0,n._V)(E))}),t.createElement(L.h,{background:"transparent",disabled:!H,forwardedAs:"div",role:"button",noBorder:!0,tabIndex:0,"data-handler-id":pe,ref:Te,label:j({id:"Settings.review-workflows.stage.drag",defaultMessage:"Drag"}),onClick:C=>C.stopPropagation(),onKeyDown:he},t.createElement(R.Z,null)))}),t.createElement(M.v,{padding:6,background:"neutral0",hasRadius:!0},t.createElement(A.r,{gap:4},t.createElement(g.P,{col:6},t.createElement(T.o,{...N,id:N.name,disabled:!H,label:j({id:"Settings.review-workflows.stage.name.label",defaultMessage:"Stage name"}),error:re.error??!1,onChange:C=>{fe.setValue(C.target.value),q((0,n.xn)(E,{name:C.target.value}))},required:!0})),t.createElement(g.P,{col:6},t.createElement(f.q4,{disabled:!H,error:oe?.error??!1,id:_.name,required:!0,label:j({id:"content-manager.reviewWorkflows.stage.color",defaultMessage:"Color"}),onChange:C=>{ge.setValue(C),q((0,n.xn)(E,{color:C}))},value:_.value.toUpperCase(),startIcon:t.createElement(a.k,{as:"span",height:2,background:_.value,borderColor:Me==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2})},we.map(({value:C,label:X,color:ie})=>{const{themeColorName:xe}=(0,K.k)(ie);return t.createElement(f.ag,{value:C,key:C,startIcon:t.createElement(a.k,{as:"span",height:2,background:ie,borderColor:xe==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2})},X)})))))))}k.propTypes=o().shape({id:o().number.isRequired,color:o().string.isRequired,canDelete:o().bool.isRequired,canReorder:o().bool.isRequired,canUpdate:o().bool.isRequired,stagesCount:o().number.isRequired}).isRequired;const F=(0,s.ZP)(r.x)`
|
|
60
|
-
transform: translateX(-50%);
|
|
61
|
-
`;function b({canDelete:E,canUpdate:Z,stages:G}){const{formatMessage:ee}=(0,y.Z)(),H=(0,u.I0)(),{trackUsage:te}=(0,d.rS)();return t.createElement(a.k,{direction:"column",gap:6,width:"100%"},t.createElement(r.x,{position:"relative",spacing:4,width:"100%"},t.createElement(F,{background:"neutral200",height:"100%",left:"50%",position:"absolute",top:"0",width:2,zIndex:1}),t.createElement(a.k,{direction:"column",alignItems:"stretch",gap:6,zIndex:2,position:"relative",as:"ol"},G.map((z,Y)=>{const Q=z?.id??z.__temp_key__;return t.createElement(r.x,{key:`stage-${Q}`,as:"li"},t.createElement(k,{id:Q,index:Y,isOpen:!z.id,canDelete:G.length>1&&E,canReorder:G.length>1,canUpdate:Z,stagesCount:G.length}))}))),Z&&t.createElement(v,{type:"button",onClick:()=>{H((0,n.CI)({name:""})),te("willCreateStage")}},ee({id:"Settings.review-workflows.stage.add",defaultMessage:"Add new stage"})))}b.defaultProps={canDelete:!0,canUpdate:!0,stages:[]},b.propTypes={canDelete:o().bool,canUpdate:o().bool,stages:o().arrayOf(o().shape({id:o().number,__temp_key__:o().number,name:o().string.isRequired}))}},165:function(w,m,e){"use strict";e.d(m,{Y:function(){return O}});var t=e(32735),r=e(6407),a=e(49372),d=e(15335),c=e(5803),o=e(10369),y=e(19565),u=e(92802),s=e(60216),n=e.n(s),p=e(67879),h=e(15062),i=e(8471),l=e(77061);const v=(0,i.ZP)(r.ML)`
|
|
62
|
-
padding-left: ${({theme:L})=>L.spaces[7]};
|
|
63
|
-
`,x=(0,i.ZP)(a.Z)`
|
|
64
|
-
font-style: italic;
|
|
65
|
-
`;function O({canUpdate:L,contentTypes:{collectionTypes:M,singleTypes:A},currentWorkflow:g,workflows:T}){const{formatMessage:f,locale:D}=(0,p.Z)(),R=(0,h.I0)(),[W,I,U]=(0,u.U$)("name"),[$,B,K]=(0,u.U$)("contentTypes"),V=(0,y.Xe)(D,{sensitivity:"base"});return t.createElement(d.r,{background:"neutral0",hasRadius:!0,gap:4,padding:6,shadow:"tableShadow"},t.createElement(c.P,{col:6},t.createElement(o.o,{...W,id:W.name,disabled:!L,label:f({id:"Settings.review-workflows.workflow.name.label",defaultMessage:"Workflow Name"}),error:I.error??!1,onChange:S=>{R((0,l.rI)({name:S.target.value})),U.setValue(S.target.value)},required:!0})),t.createElement(c.P,{col:6},t.createElement(r.NU,{...$,customizeContent:S=>f({id:"Settings.review-workflows.workflow.contentTypes.displayValue",defaultMessage:"{count} {count, plural, one {content type} other {content types}} selected"},{count:S.length}),disabled:!L,error:B.error??!1,id:$.name,label:f({id:"Settings.review-workflows.workflow.contentTypes.label",defaultMessage:"Associated to"}),onChange:S=>{R((0,l.rI)({contentTypes:S})),K.setValue(S)},placeholder:f({id:"Settings.review-workflows.workflow.contentTypes.placeholder",defaultMessage:"Select"})},[...M.length>0?[{label:f({id:"Settings.review-workflows.workflow.contentTypes.collectionTypes.label",defaultMessage:"Collection Types"}),children:M.sort((S,k)=>V.compare(S.info.displayName,k.info.displayName)).map(S=>({label:S.info.displayName,value:S.uid}))}]:[],...A.length>0?[{label:f({id:"Settings.review-workflows.workflow.contentTypes.singleTypes.label",defaultMessage:"Single Types"}),children:A.map(S=>({label:S.info.displayName,value:S.uid}))}]:[]].map(S=>"children"in S?t.createElement(r.Ab,{key:S.label,label:S.label,values:S.children.map(k=>k.value.toString())},S.children.map(k=>{const{name:F}=T.find(b=>(g&&b.id!==g.id||!g)&&b.contentTypes.includes(k.value))??{};return t.createElement(v,{key:k.value,value:k.value},f({id:"Settings.review-workflows.workflow.contentTypes.assigned.notice",defaultMessage:"{label} {name, select, undefined {} other {<i>(assigned to <em>{name}</em> workflow)</i>}}"},{label:k.label,name:F,em:(...b)=>t.createElement(a.Z,{as:"em",fontWeight:"bold"},b),i:(...b)=>t.createElement(x,null,b)}))})):t.createElement(r.ML,{key:S.value,value:S.value},S.label)))))}const P=n().shape({uid:n().string.isRequired,info:n().shape({displayName:n().string.isRequired}).isRequired});O.defaultProps={canUpdate:!0,currentWorkflow:void 0},O.propTypes={canUpdate:n().bool,contentTypes:n().shape({collectionTypes:n().arrayOf(P).isRequired,singleTypes:n().arrayOf(P).isRequired}).isRequired,currentWorkflow:n().object,workflows:n().array.isRequired}},2121:function(w,m,e){"use strict";e.d(m,{$k:function(){return u},Ef:function(){return i},FT:function(){return p},Nj:function(){return y},Ot:function(){return o},VS:function(){return s},_X:function(){return l},gu:function(){return a},lv:function(){return n},qZ:function(){return d},sN:function(){return r},uL:function(){return h},x4:function(){return c}});var t=e(12301);const r="settings_review-workflows",a="Settings/Review_Workflows/RESET_WORKFLOW",d="Settings/Review_Workflows/SET_WORKFLOW",c="Settings/Review_Workflows/WORKFLOW_DELETE_STAGE",o="Settings/Review_Workflows/WORKFLOW_ADD_STAGE",y="Settings/Review_Workflows/WORKFLOW_UPDATE_STAGE",u="Settings/Review_Workflows/WORKFLOW_UPDATE_STAGE_POSITION",s="Settings/Review_Workflows/WORKFLOW_UPDATE",n={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"},p=t.W.colors.primary600,h={STAGE:"stage"},i="numberOfWorkflows",l="stagesPerWorkflow"},32329:function(w,m,e){"use strict";e.d(m,{n:function(){return a}});var t=e(19565),r=e(20108);function a(d={}){const{get:c}=(0,t.kY)(),{id:o="",...y}=d,u={populate:"stages"},{data:s,isLoading:n,status:p,refetch:h}=(0,r.useQuery)(["review-workflows","workflows",o],async()=>(await c(`/admin/review-workflows/workflows/${o}`,{params:{...u,...y}})).data);let i=[];return o&&s?.data?i=[s.data]:Array.isArray(s?.data)&&(i=s.data),{meta:s?.meta??{},workflows:i,isLoading:n,status:p,refetch:h}}},79989:function(w,m,e){"use strict";e.d(m,{E:function(){return c},I:function(){return o}});var t=e(97889),r=e(89793),a=e.n(r),d=e(2121);const c={status:"loading",serverState:{workflow:null},clientState:{currentWorkflow:{data:{name:"",contentTypes:[],stages:[]},isDirty:!1,hasDeletedServerStages:!1}}};function o(u=c,s){return(0,t.Uy)(u,n=>{const{payload:p}=s;switch(s.type){case d.qZ:{const{status:h,workflow:i}=p;n.status=h,i&&(n.serverState.workflow=i,n.clientState.currentWorkflow.data={...i,stages:i.stages.map(l=>({...l,color:l?.color??d.FT}))}),n.clientState.currentWorkflow.hasDeletedServerStages=!1;break}case d.gu:{n.clientState.currentWorkflow.data=c.clientState.currentWorkflow.data,n.serverState=c.serverState;break}case d.x4:{const{stageId:h}=p,{currentWorkflow:i}=u.clientState;n.clientState.currentWorkflow.data.stages=i.data.stages.filter(l=>(l?.id??l.__temp_key__)!==h),i.hasDeletedServerStages||(n.clientState.currentWorkflow.hasDeletedServerStages=!!(u.serverState.workflow?.stages??[]).find(l=>l.id===h));break}case d.Ot:{const{currentWorkflow:h}=u.clientState;h.data||(n.clientState.currentWorkflow.data={stages:[]});const i=y(n.clientState.currentWorkflow.data.stages);n.clientState.currentWorkflow.data.stages.push({...p,color:p?.color??d.FT,__temp_key__:i});break}case d.Nj:{const{currentWorkflow:h}=u.clientState,{stageId:i,...l}=p;n.clientState.currentWorkflow.data.stages=h.data.stages.map(v=>(v.id??v.__temp_key__)===i?{...v,...l}:v);break}case d.$k:{const{currentWorkflow:{data:{stages:h}}}=u.clientState,{newIndex:i,oldIndex:l}=p;if(i>=0&&i<h.length){const v=h[l];let x=[...h];x.splice(l,1),x.splice(i,0,v),n.clientState.currentWorkflow.data.stages=x}break}case d.VS:{n.clientState.currentWorkflow.data={...n.clientState.currentWorkflow.data,...p};break}default:break}u.clientState.currentWorkflow.data&&n.serverState.workflow?n.clientState.currentWorkflow.isDirty=!a()((0,t.Vk)(n.clientState.currentWorkflow).data,n.serverState.workflow):n.clientState.currentWorkflow.isDirty=!0})}const y=(u=[])=>{const s=u.map(n=>n.id??n.__temp_key__);return Math.max(...s,-1)+1}},68886:function(w,m,e){"use strict";e.d(m,{k:function(){return a},s:function(){return d}});var t=e(12301),r=e(2121);function a(c){if(!c)return null;const y=Object.entries(t.W.colors).filter(([,u])=>u.toUpperCase()===c.toUpperCase()).reduce((u,[s])=>(r.lv?.[s]&&(u=s),u),null);return y?{themeColorName:y,name:r.lv[y]}:null}function d(){return Object.entries(r.lv).map(([c,o])=>({hex:t.W.colors[c].toUpperCase(),name:o}))}},82920:function(w,m,e){"use strict";e.d(m,{V:function(){return d}});var t=e(3040),r=e.n(t),a=e(24346);async function d({values:c,formatMessage:o}){const y=a.Ry({contentTypes:a.IX().of(a.Z_()),name:a.Z_().max(255,o({id:"Settings.review-workflows.validation.name.max-length",defaultMessage:"Name can not be longer than 255 characters"})).required(),stages:a.IX().of(a.Ry().shape({name:a.Z_().required(o({id:"Settings.review-workflows.validation.stage.name",defaultMessage:"Name is required"})).max(255,o({id:"Settings.review-workflows.validation.stage.max-length",defaultMessage:"Name can not be longer than 255 characters"})).test("unique-name",o({id:"Settings.review-workflows.validation.stage.duplicate",defaultMessage:"Stage name must be unique"}),function(u){const{options:{context:s}}=this;return s.stages.filter(n=>n.name===u).length===1}),color:a.Z_().required(o({id:"Settings.review-workflows.validation.stage.color",defaultMessage:"Color is required"})).matches(/^#(?:[0-9a-fA-F]{3}){1,2}$/i)})).min(1)});try{return await y.validate(c,{abortEarly:!1,context:c}),!0}catch(u){let s={};return u instanceof a.p8&&u.inner.forEach(n=>{r()(s,n.path,n.message)}),s}}},51355:function(w,m,e){var t=e(94318),r=e(3387),a="[object Boolean]";function d(c){return c===!0||c===!1||r(c)&&t(c)==a}w.exports=d},95919:function(w,m,e){var t=e(80022);function r(a){return t(a)&&a!=+a}w.exports=r},80022:function(w,m,e){var t=e(94318),r=e(3387),a="[object Number]";function d(c){return typeof c=="number"||r(c)&&t(c)==a}w.exports=d},59578:function(w,m,e){var t=e(41119);function r(a){return t(a).toLowerCase()}w.exports=r},83828:function(w,m,e){"use strict";e.d(m,{U:function(){return h},y:function(){return n}});var t=e(74512),r=e(32735),a=e(8471),d=e(91045),c=e(74971),o=e(49372),y=e(87933),u=e(72850);const s=({theme:i,expanded:l,variant:v,disabled:x,error:O})=>O?`1px solid ${i.colors.danger600} !important`:x?`1px solid ${i.colors.neutral150}`:l?`1px solid ${i.colors.primary600}`:v==="primary"?`1px solid ${i.colors.neutral0}`:`1px solid ${i.colors.neutral100}`,n=(0,a.ZP)(o.Z)``,p=(0,a.ZP)(u.x)`
|
|
66
|
-
border: ${s};
|
|
67
|
-
|
|
68
|
-
&:hover:not([aria-disabled='true']) {
|
|
69
|
-
border: 1px solid ${({theme:i})=>i.colors.primary600};
|
|
70
|
-
|
|
71
|
-
${n} {
|
|
72
|
-
color: ${({theme:i,expanded:l})=>l?void 0:i.colors.primary700};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
${o.Z} {
|
|
76
|
-
color: ${({theme:i,expanded:l})=>l?void 0:i.colors.primary600};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
& > ${y.k} {
|
|
80
|
-
background: ${({theme:i})=>i.colors.primary100};
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
[data-strapi-dropdown='true'] {
|
|
84
|
-
background: ${({theme:i})=>i.colors.primary200};
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
`,h=({children:i,disabled:l=!1,error:v,expanded:x=!1,hasErrorMessage:O=!0,id:P,onToggle:L,toggle:M,size:A="M",variant:g="primary",shadow:T})=>{const f=(0,c.M)(P),D=r.useMemo(()=>({expanded:x,onToggle:L,toggle:M,id:f,size:A,variant:g,disabled:l}),[l,x,f,L,A,M,g]);return(0,t.jsxs)(d.S.Provider,{value:D,children:[(0,t.jsx)(p,{"data-strapi-expanded":x,disabled:l,"aria-disabled":l,expanded:x,hasRadius:!0,variant:g,error:v,shadow:T,children:i}),v&&O&&(0,t.jsx)(u.x,{paddingTop:1,children:(0,t.jsx)(o.Z,{variant:"pi",textColor:"danger600",children:v})})]})}},89966:function(w,m,e){"use strict";e.d(m,{v:function(){return d}});var t=e(74512),r=e(91045),a=e(72850);const d=({children:c,...o})=>{const{expanded:y,id:u}=(0,r.A)();if(!y)return null;const s=`accordion-content-${u}`,n=`accordion-label-${u}`,p=`accordion-desc-${u}`;return(0,t.jsx)(a.x,{role:"region",id:s,"aria-labelledby":n,"aria-describedby":p,...o,children:c})}},91045:function(w,m,e){"use strict";e.d(m,{A:function(){return a},S:function(){return r}});var t=e(32735);const r=(0,t.createContext)({disabled:!1,expanded:!1,id:"",size:"M",variant:"primary"}),a=()=>(0,t.useContext)(r)},61762:function(w,m,e){"use strict";e.d(m,{B:function(){return i}});var t=e(74512),r=e(16899),a=e(8471),d=e(83828),c=e(91045);const o=({expanded:l,disabled:v,variant:x})=>{let O="neutral100";return l?O="primary100":v?O="neutral150":x==="primary"&&(O="neutral0"),O};var y=e(7563),u=e(99140),s=e(87933),n=e(49372);const p=(0,a.ZP)(y.A)`
|
|
88
|
-
text-align: left;
|
|
89
|
-
|
|
90
|
-
// necessary to make the ellipsis prop work on the title
|
|
91
|
-
> span {
|
|
92
|
-
max-width: 100%;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
svg {
|
|
96
|
-
width: ${14/16}rem;
|
|
97
|
-
height: ${14/16}rem;
|
|
98
|
-
|
|
99
|
-
path {
|
|
100
|
-
fill: ${({theme:l,expanded:v})=>v?l.colors.primary600:l.colors.neutral500};
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
`,h=(0,a.ZP)(s.k)`
|
|
104
|
-
min-height: ${({theme:l,size:v})=>l.sizes.accordions[v]};
|
|
105
|
-
border-radius: ${({theme:l,expanded:v})=>v?`${l.borderRadius} ${l.borderRadius} 0 0`:l.borderRadius};
|
|
106
|
-
|
|
107
|
-
&:hover {
|
|
108
|
-
svg {
|
|
109
|
-
path {
|
|
110
|
-
fill: ${({theme:l})=>l.colors.primary600};
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
`,i=({title:l,description:v,as:x="span",togglePosition:O="right",action:P,...L})=>{const{onToggle:M,toggle:A,expanded:g,id:T,size:f,variant:D,disabled:R}=(0,c.A)(),W=`accordion-content-${T}`,I=`accordion-label-${T}`,U=`accordion-desc-${T}`,$=f==="M"?6:4,B=f==="M"?$:$-2,K=o({expanded:g,disabled:R,variant:D}),V={as:x,fontWeight:f==="S"?"bold":void 0,id:I,textColor:g?"primary600":"neutral700",ellipsis:!0,variant:f==="M"?"delta":void 0},S=g?"primary600":"neutral600",k=g?"primary200":"neutral200",F=f==="M"?`${32/16}rem`:`${24/16}rem`,b=()=>{R||(A&&!M?(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'),A()):M&&M())},E=(0,t.jsx)(s.k,{justifyContent:"center",borderRadius:"50%",height:F,width:F,transform:g?"rotate(180deg)":void 0,"data-strapi-dropdown":!0,"aria-hidden":!0,as:"span",background:k,cursor:R?"not-allowed":"pointer",onClick:b,shrink:0,children:(0,t.jsx)(u.J,{as:r.Z,width:f==="M"?`${11/16}rem`:`${8/16}rem`,color:g?"primary600":"neutral600"})});return(0,t.jsx)(h,{paddingBottom:B,paddingLeft:$,paddingRight:$,paddingTop:B,background:K,expanded:g,size:f,justifyContent:"space-between",cursor:R?"not-allowed":"",children:(0,t.jsxs)(s.k,{gap:3,flex:1,maxWidth:"100%",children:[O==="left"&&E,(0,t.jsx)(p,{onClick:b,"aria-disabled":R,"aria-expanded":g,"aria-controls":W,"aria-labelledby":I,"data-strapi-accordion-toggle":!0,expanded:g,type:"button",flex:1,minWidth:0,...L,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.y,{...V,children:l}),v&&(0,t.jsx)(n.Z,{as:"p",id:U,textColor:S,children:v})]})}),O==="right"&&(0,t.jsxs)(s.k,{gap:3,children:[E,P]}),O==="left"&&P]})})}},29439:function(w,m,e){"use strict";e.d(m,{Z:function(){return a}});var t=e(74512);const r=d=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...d,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"})}),a=r},47081:function(w,m,e){"use strict";e.d(m,{Z:function(){return a}});var t=e(74512);const r=d=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...d,children:[(0,t.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,t.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,t.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,t.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,t.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,t.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,t.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"})]}),a=r},86308:function(w,m,e){"use strict";e.d(m,{Z:function(){return a}});var t=e(74512);const r=d=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...d,children:[(0,t.jsx)("circle",{cx:12,cy:12,r:12,fill:"#212134"}),(0,t.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"})]}),a=r}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[7464],{50337:function(C,r,t){t.d(r,{pl:function(){return v},aY:function(){return U},q5:function(){return g.q}});var s=t(32735),n=t(19565),c=t(86209),l=t(97889);const T={data:[],isLoading:!0};var A=(i,a)=>(0,l.ZP)(i,e=>{switch(a.type){case"GET_DATA_SUCCEEDED":{e.data=a.data,e.isLoading=!1;break}case"GET_DATA_ERROR":{e.isLoading=!1;break}default:return e}}),v=({ssoEnabled:i})=>{const[a,e]=(0,s.useReducer)(A,T),m=(0,n.lm)(),{get:E}=(0,n.kY)();return(0,s.useEffect)(()=>{(async()=>{try{if(!i){e({type:"GET_DATA_SUCCEEDED",data:[]});return}const{data:u}=await E((0,c.IF)("providers"));e({type:"GET_DATA_SUCCEEDED",data:u})}catch(u){console.error(u),e({type:"GET_DATA_ERROR"}),m({type:"warning",message:{id:"notification.error"}})}})()},[E,i,m]),a},d=t(36866),h=t.n(d),f=t(67879),R=t(53038),g=t(53104);const S="strapi-notification-seat-limit",y="https://cloud.strapi.io/profile/billing",M="https://strapi.io/billing/request-seats";var U=()=>{const{formatMessage:i}=(0,f.Z)();let{license:a,isError:e,isLoading:m}=(0,g.q)();const E=(0,n.lm)(),{pathname:L}=(0,R.TH)(),{enforcementUserCount:u,permittedSeats:I,licenseLimitStatus:o,isHostedOnStrapiCloud:D}=a;(0,s.useEffect)(()=>{if(e||m)return;const N=!h()(I)&&!window.sessionStorage.getItem(`${S}-${L}`)&&(o==="AT_LIMIT"||o==="OVER_LIMIT");let p;o==="OVER_LIMIT"?p="warning":o==="AT_LIMIT"&&(p="softWarning"),N&&E({type:p,message:i({id:"notification.ee.warning.over-.message",defaultMessage:"Add seats to {licenseLimitStatus, select, OVER_LIMIT {invite} other {re-enable}} Users. If you already did it but it's not reflected in Strapi yet, make sure to restart your app."},{licenseLimitStatus:o}),title:i({id:"notification.ee.warning.at-seat-limit.title",defaultMessage:"{licenseLimitStatus, select, OVER_LIMIT {Over} other {At}} seat limit ({enforcementUserCount}/{permittedSeats})"},{licenseLimitStatus:o,enforcementUserCount:u,permittedSeats:I}),link:{url:D?y:M,label:i({id:"notification.ee.warning.seat-limit.link",defaultMessage:"{isHostedOnStrapiCloud, select, true {ADD SEATS} other {CONTACT SALES}}"},{isHostedOnStrapiCloud:D})},blockTransition:!0,onClose(){window.sessionStorage.setItem(`${S}-${L}`,!0)}})},[E,a,L,i,m,I,o,u,D,e])}},53104:function(C,r,t){t.d(r,{q:function(){return l}});var s=t(32735),n=t(19565),c=t(20108);function l({enabled:T}={enabled:!0}){const{get:O}=(0,n.kY)(),{data:A,isError:P,isLoading:v}=(0,c.useQuery)(["ee","license-limit-info"],async()=>{const{data:{data:f}}=await O("/admin/license-limit-information");return f},{enabled:T}),d=A??{},h=s.useCallback(f=>(d?.features??[]).find(g=>g.name===f)?.options??{},[d?.features]);return{license:d,getFeature:h,isError:P,isLoading:v}}},37363:function(C,r,t){t.r(r),t.d(r,{HomePageEE:function(){return l}});var s=t(32735),n=t(83555),c=t(50337);function l(){return(0,c.aY)(),s.createElement(n.HomePageCE,null)}}}]);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[8276],{50337:function(I,v,e){e.d(v,{pl:function(){return y},aY:function(){return r},q5:function(){return s.q}});var t=e(32735),f=e(19565),p=e(86209),u=e(97889);const l={data:[],isLoading:!0};var T=(d,E)=>(0,u.ZP)(d,a=>{switch(E.type){case"GET_DATA_SUCCEEDED":{a.data=E.data,a.isLoading=!1;break}case"GET_DATA_ERROR":{a.isLoading=!1;break}default:return a}}),y=({ssoEnabled:d})=>{const[E,a]=(0,t.useReducer)(T,l),o=(0,f.lm)(),{get:P}=(0,f.kY)();return(0,t.useEffect)(()=>{(async()=>{try{if(!d){a({type:"GET_DATA_SUCCEEDED",data:[]});return}const{data:O}=await P((0,p.IF)("providers"));a({type:"GET_DATA_SUCCEEDED",data:O})}catch(O){console.error(O),a({type:"GET_DATA_ERROR"}),o({type:"warning",message:{id:"notification.error"}})}})()},[P,d,o]),E},g=e(36866),h=e.n(g),m=e(67879),C=e(53038),s=e(53104);const L="strapi-notification-seat-limit",n="https://cloud.strapi.io/profile/billing",A="https://strapi.io/billing/request-seats";var r=()=>{const{formatMessage:d}=(0,m.Z)();let{license:E,isError:a,isLoading:o}=(0,s.q)();const P=(0,f.lm)(),{pathname:D}=(0,C.TH)(),{enforcementUserCount:O,permittedSeats:S,licenseLimitStatus:M,isHostedOnStrapiCloud:U}=E;(0,t.useEffect)(()=>{if(a||o)return;const Z=!h()(S)&&!window.sessionStorage.getItem(`${L}-${D}`)&&(M==="AT_LIMIT"||M==="OVER_LIMIT");let B;M==="OVER_LIMIT"?B="warning":M==="AT_LIMIT"&&(B="softWarning"),Z&&P({type:B,message:d({id:"notification.ee.warning.over-.message",defaultMessage:"Add seats to {licenseLimitStatus, select, OVER_LIMIT {invite} other {re-enable}} Users. If you already did it but it's not reflected in Strapi yet, make sure to restart your app."},{licenseLimitStatus:M}),title:d({id:"notification.ee.warning.at-seat-limit.title",defaultMessage:"{licenseLimitStatus, select, OVER_LIMIT {Over} other {At}} seat limit ({enforcementUserCount}/{permittedSeats})"},{licenseLimitStatus:M,enforcementUserCount:O,permittedSeats:S}),link:{url:U?n:A,label:d({id:"notification.ee.warning.seat-limit.link",defaultMessage:"{isHostedOnStrapiCloud, select, true {ADD SEATS} other {CONTACT SALES}}"},{isHostedOnStrapiCloud:U})},blockTransition:!0,onClose(){window.sessionStorage.setItem(`${L}-${D}`,!0)}})},[P,E,D,d,o,S,M,O,U,a])}},53104:function(I,v,e){e.d(v,{q:function(){return u}});var t=e(32735),f=e(19565),p=e(20108);function u({enabled:l}={enabled:!0}){const{get:c}=(0,f.kY)(),{data:T,isError:i,isLoading:y}=(0,p.useQuery)(["ee","license-limit-info"],async()=>{const{data:{data:m}}=await c("/admin/license-limit-information");return m},{enabled:l}),g=T??{},h=t.useCallback(m=>(g?.features??[]).find(s=>s.name===m)?.options??{},[g?.features]);return{license:g,getFeature:h,isError:i,isLoading:y}}},68726:function(I,v,e){var t=e(32735),f=e(87933),p=e(63919),u=e(49372),l=e(15335),c=e(5803),T=e(60216),i=e.n(T),y=e(67879),g=e(14911),h=e(8471);const m=h.ZP.a`
|
|
2
|
-
width: ${136/16}rem;
|
|
3
|
-
display: flex;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
align-items: center;
|
|
6
|
-
height: ${48/16}rem;
|
|
7
|
-
border: 1px solid ${({theme:n})=>n.colors.neutral150};
|
|
8
|
-
border-radius: ${({theme:n})=>n.borderRadius};
|
|
9
|
-
text-decoration: inherit;
|
|
10
|
-
&:link {
|
|
11
|
-
text-decoration: none;
|
|
12
|
-
}
|
|
13
|
-
color: ${({theme:n})=>n.colors.neutral600};
|
|
14
|
-
`,C=(0,h.ZP)(f.k)`
|
|
15
|
-
& a:not(:first-child):not(:last-child) {
|
|
16
|
-
margin: 0 ${({theme:n})=>n.spaces[2]};
|
|
17
|
-
}
|
|
18
|
-
& a:first-child {
|
|
19
|
-
margin-right: ${({theme:n})=>n.spaces[2]};
|
|
20
|
-
}
|
|
21
|
-
& a:last-child {
|
|
22
|
-
margin-left: ${({theme:n})=>n.spaces[2]};
|
|
23
|
-
}
|
|
24
|
-
`,s=({provider:n})=>t.createElement(p.u,{label:n.displayName},t.createElement(m,{href:`${window.strapi.backendURL}/admin/connect/${n.uid}`},n.icon?t.createElement("img",{src:n.icon,"aria-hidden":!0,alt:"",height:"32px"}):t.createElement(u.Z,null,n.displayName)));s.propTypes={provider:i().shape({icon:i().string,displayName:i().string.isRequired,uid:i().string.isRequired}).isRequired};const L=({providers:n,displayAllProviders:A})=>{const{formatMessage:R}=(0,y.Z)();return A?t.createElement(l.r,{gap:4},n.map(r=>t.createElement(c.P,{key:r.uid,col:4},t.createElement(s,{provider:r})))):n.length>2&&!A?t.createElement(l.r,{gap:4},n.slice(0,2).map(r=>t.createElement(c.P,{key:r.uid,col:4},t.createElement(s,{provider:r}))),t.createElement(c.P,{col:4},t.createElement(p.u,{label:R({id:"global.see-more"})},t.createElement(m,{as:g.rU,to:"/auth/providers"},t.createElement("span",{"aria-hidden":!0},"\u2022\u2022\u2022"))))):t.createElement(C,{justifyContent:"center"},n.map(r=>t.createElement(s,{key:r.uid,provider:r})))};L.defaultProps={displayAllProviders:!0},L.propTypes={providers:i().arrayOf(i().object).isRequired,displayAllProviders:i().bool},v.Z=L},18276:function(I,v,e){e.r(v),e.d(v,{FORMS:function(){return d}});var t=e(32735),f=e(9026),p=e(27649),u=e(72850),l=e(49372),c=e(87933),T=e(23866),i=e(41415),y=e(19565),g=e(67879),h=e(53038),m=e(8471),C=e(73678),s=e(11060),L=e(50337),n=e(68726);const A=(0,m.ZP)(f.i)`
|
|
25
|
-
flex: 1;
|
|
26
|
-
`;var r=()=>{const E=window.strapi.features.isEnabled(window.strapi.features.SSO),{push:a}=(0,h.k6)(),{formatMessage:o}=(0,g.Z)(),{isLoading:P,data:D}=(0,L.pl)({ssoEnabled:E}),O=()=>{a("/auth/login")};return!E||!P&&D.length===0?t.createElement(h.l_,{to:"/auth/login"}):t.createElement(s.ZP,null,t.createElement(p.o,null,t.createElement(s.bU,null,t.createElement(s.sg,null,t.createElement(C.Z,null),t.createElement(u.x,{paddingTop:6,paddingBottom:1},t.createElement(l.Z,{as:"h1",variant:"alpha"},o({id:"Auth.form.welcome.title"}))),t.createElement(u.x,{paddingBottom:7},t.createElement(l.Z,{variant:"epsilon",textColor:"neutral600"},o({id:"Auth.login.sso.subtitle"})))),t.createElement(c.k,{direction:"column",alignItems:"stretch",gap:7},P?t.createElement(c.k,{justifyContent:"center"},t.createElement(T.a,null,o({id:"Auth.login.sso.loading"}))):t.createElement(n.Z,{providers:D}),t.createElement(c.k,null,t.createElement(A,null),t.createElement(u.x,{paddingLeft:3,paddingRight:3},t.createElement(l.Z,{variant:"sigma",textColor:"neutral600"},o({id:"or"}))),t.createElement(A,null)),t.createElement(i.z,{fullWidth:!0,size:"L",onClick:O},o({id:"Auth.form.button.login.strapi"})))),t.createElement(c.k,{justifyContent:"center"},t.createElement(u.x,{paddingTop:4},t.createElement(y.rU,{to:"/auth/forgot-password"},t.createElement(l.Z,{variant:"pi"},o({id:"Auth.link.forgot-password"})))))))};const d={providers:{Component:r,endPoint:null,fieldsToDisable:[],fieldsToOmit:[],schema:null,inputsPrefix:""}}}}]);
|