@strapi/admin 4.10.4 → 4.10.6
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/AuthenticatedApp/utils/api.js +5 -4
- package/admin/src/content-manager/components/CollectionTypeFormWrapper/index.js +1 -2
- package/admin/src/content-manager/components/DynamicZone/index.js +1 -1
- package/admin/src/content-manager/components/FieldComponent/index.js +1 -1
- package/admin/src/content-manager/components/Inputs/index.js +1 -1
- package/admin/src/content-manager/components/Wysiwyg/WysiwygNav.js +67 -71
- package/admin/src/content-manager/hooks/useFetchContentTypeLayout/index.js +3 -5
- package/admin/src/content-manager/pages/App/useContentManagerInitData.js +2 -3
- package/admin/src/content-manager/pages/ComponentSetttingsView/index.js +2 -5
- package/admin/src/content-manager/pages/EditView/DeleteLink/index.js +1 -1
- package/admin/src/content-manager/pages/EditView/Header/index.js +1 -1
- package/admin/src/content-manager/pages/EditViewLayoutManager/Permissions.js +1 -1
- package/admin/src/content-manager/pages/ListView/index.js +1 -2
- package/admin/src/hooks/marketplace/constants.js +1 -0
- package/admin/src/hooks/{useFetchMarketplacePlugins → marketplace/useFetchMarketplacePlugins}/index.js +21 -1
- package/admin/src/hooks/{useFetchMarketplaceProviders → marketplace/useFetchMarketplaceProviders}/index.js +21 -1
- package/admin/src/hooks/useReleaseNotification/utils/api.js +6 -5
- package/admin/src/pages/Admin/Onboarding/index.js +89 -91
- package/admin/src/pages/App/index.js +1 -5
- package/admin/src/pages/AuthPage/components/Register/index.js +3 -4
- package/admin/src/pages/AuthPage/index.js +11 -26
- package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/FiltersPopover.js +39 -41
- package/admin/src/pages/MarketplacePage/utils/useMarketplaceData.js +2 -2
- package/admin/src/pages/SettingsPage/components/Tokens/TokenDescription/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/utils/urlToFile.js +3 -2
- package/admin/src/pages/SettingsPage/pages/Roles/CreatePage/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/RoleForm/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventInput/index.js +12 -1
- package/admin/src/pages/SettingsPage/pages/Webhooks/ListView/index.js +120 -205
- package/admin/src/pages/UseCasePage/index.js +13 -15
- package/admin/src/translations/en.json +11 -9
- package/build/1387.a86ac314.chunk.js +1 -0
- package/build/{1657.85034334.chunk.js → 1657.ca8562dd.chunk.js} +46 -46
- package/build/{3816.2b58bc1a.chunk.js → 3816.60f858cf.chunk.js} +19 -22
- package/build/{5542.5328b662.chunk.js → 5542.002522eb.chunk.js} +13 -13
- package/build/{5563.44e0ef15.chunk.js → 5563.2c8334ef.chunk.js} +1 -1
- package/build/617.87b2fe96.chunk.js +155 -0
- package/build/{6970.e8422af3.chunk.js → 6970.36d3ffff.chunk.js} +1 -1
- package/build/7259.116a9960.chunk.js +1 -0
- package/build/Admin-authenticatedApp.0318dfb3.chunk.js +79 -0
- package/build/{Admin_marketplace.87f51b29.chunk.js → Admin_marketplace.f446ba2b.chunk.js} +10 -10
- package/build/Admin_settingsPage.f8c46a9a.chunk.js +79 -0
- package/build/admin-app.6d48536c.chunk.js +63 -0
- package/build/{admin-edit-roles-page.6fe9de49.chunk.js → admin-edit-roles-page.02c3b136.chunk.js} +3 -3
- package/build/{admin-users.16bb6e77.chunk.js → admin-users.69f4900a.chunk.js} +11 -11
- package/build/audit-logs-settings-page.482909d7.chunk.js +129 -0
- package/build/{content-manager.a837bfcd.chunk.js → content-manager.cd71cb6e.chunk.js} +95 -95
- package/build/content-type-builder-translation-en-json.af293c9e.chunk.js +1 -0
- package/build/content-type-builder.b10576e7.chunk.js +126 -0
- package/build/{email-settings-page.5bc22e5a.chunk.js → email-settings-page.dba83275.chunk.js} +4 -4
- package/build/en-json.d965e364.chunk.js +1 -0
- package/build/i18n-settings-page.55628f74.chunk.js +114 -0
- package/build/index.html +1 -1
- package/build/main.adab8b96.js +2630 -0
- package/build/{runtime~main.a096f3d0.js → runtime~main.0201a49b.js} +2 -2
- package/build/upload-settings.63d99bf5.chunk.js +14 -0
- package/build/upload.c50d8c7a.chunk.js +34 -0
- package/build/{users-advanced-settings-page.dd2a4954.chunk.js → users-advanced-settings-page.4f49ca57.chunk.js} +3 -3
- package/build/users-email-settings-page.d2429d0a.chunk.js +24 -0
- package/build/users-providers-settings-page.50c5ba27.chunk.js +29 -0
- package/build/{users-roles-settings-page.eeb3a339.chunk.js → users-roles-settings-page.2549794b.chunk.js} +2 -2
- package/build/webhook-edit-page.cb2cf1a5.chunk.js +128 -0
- package/build/webhook-list-page.e2fca9f8.chunk.js +71 -0
- package/ee/LICENSE +1 -21
- package/ee/admin/content-manager/components/DynamicTable/CellContent/ReviewWorkflowsStage/getTableColumn.js +6 -1
- package/ee/admin/pages/AuthPage/components/Login/index.js +1 -1
- package/ee/admin/pages/AuthPage/components/Providers/SSOProviders.js +1 -1
- package/ee/admin/pages/AuthPage/components/Providers/index.js +1 -1
- package/ee/admin/pages/SettingsPage/pages/Users/ListPage/ModalForm/utils/formDataModel.js +1 -1
- package/ee/admin/pages/SettingsPage/pages/Users/ListPage/ModalForm/utils/roleSettingsForm.js +1 -1
- package/package.json +13 -15
- package/webpack.alias.js +0 -1
- package/admin/src/hooks/useFetchMarketplacePlugins/utils/api.js +0 -18
- package/admin/src/hooks/useFetchMarketplaceProviders/utils/api.js +0 -18
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventInput/utils/formatValue.js +0 -13
- package/admin/src/pages/SettingsPage/pages/Webhooks/ListView/reducer.js +0 -72
- package/build/1387.437eb420.chunk.js +0 -1
- package/build/617.ce23dea8.chunk.js +0 -155
- package/build/7259.3ed2b60e.chunk.js +0 -1
- package/build/Admin-authenticatedApp.dbb99d34.chunk.js +0 -79
- package/build/Admin_settingsPage.20884a40.chunk.js +0 -79
- package/build/admin-app.d4fd9379.chunk.js +0 -63
- package/build/audit-logs-settings-page.48b921f9.chunk.js +0 -129
- package/build/content-type-builder-translation-en-json.5e5f8607.chunk.js +0 -1
- package/build/content-type-builder.51c64fe5.chunk.js +0 -126
- package/build/en-json.1f6af924.chunk.js +0 -1
- package/build/i18n-settings-page.1581894e.chunk.js +0 -114
- package/build/main.31bdf27e.js +0 -2679
- package/build/upload-settings.4d962053.chunk.js +0 -14
- package/build/upload.4dcd513f.chunk.js +0 -34
- package/build/users-email-settings-page.510648ab.chunk.js +0 -24
- package/build/users-providers-settings-page.0ee7d54f.chunk.js +0 -29
- package/build/webhook-edit-page.36c9f20d.chunk.js +0 -128
- package/build/webhook-list-page.0983d83f.chunk.js +0 -71
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[5162],{55734:function(G,C,t){t.d(C,{Z:function(){return ge}});var e=t(32735),o=t(24989),A=t(27649),M=t(20108),p=t(53038),k=t(67927),me=t(60216),i=t.n(me),ne=t(2438),re=t(66456),Ee=t(29439),pe=t(82055),m=t(87933),S=t(41415),fe=t(17e3),j=t(72850),J=t(15335),D=t(5803),Y=t(10369),I=t(92802),$=t(67879),se=t(28847),O=t(49372),le=t(8471),ve=t(8284),be=t(82884),Ce=t(23940),Me=t.n(Ce);const W=({disabledEvents:n,name:r,events:s,inputValue:l,handleChange:c,handleChangeAll:f})=>{const d=s.filter(h=>!n.includes(h)),u=l.length===d.length,E=l.length>0,x=({target:{name:h}})=>{f({target:{name:h,value:!u}})};return e.createElement("tr",null,e.createElement("td",null,e.createElement(ve.X,{indeterminate:E&&!u,"aria-label":"Select all entries",name:r,onChange:x,value:u},Me()(r))),s.map(h=>e.createElement("td",{key:h},e.createElement(be.C,{disabled:n.includes(h),"aria-label":h,name:h,value:l.includes(h),onValueChange:v=>c({target:{name:h,value:v}})}))))};W.defaultProps={disabledEvents:[],events:[],inputValue:[],handleChange(){},handleChangeAll(){}},W.propTypes={disabledEvents:i().array,events:i().array,inputValue:i().array,handleChange:i().func,handleChangeAll:i().func,name:i().string.isRequired};var a=W;const P=n=>n.reduce((r,s)=>{const l=s.split(".")[0];return r[l]||(r[l]=[]),r[l].push(s),r},{}),U=le.ZP.table`
|
|
2
|
+
td {
|
|
3
|
+
height: ${52/16}rem;
|
|
4
|
+
width: 10%;
|
|
5
|
+
vertical-align: middle;
|
|
6
|
+
text-align: center;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
tbody tr:nth-child(odd) {
|
|
10
|
+
background: ${({theme:n})=>n.colors.neutral100};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
tbody tr td:first-child {
|
|
14
|
+
padding-left: ${({theme:n})=>n.spaces[7]};
|
|
15
|
+
}
|
|
16
|
+
`,Z={headers:{default:[{id:"Settings.webhooks.events.create",defaultMessage:"Create"},{id:"Settings.webhooks.events.update",defaultMessage:"Update"},{id:"app.utils.delete",defaultMessage:"Delete"}],draftAndPublish:[{id:"Settings.webhooks.events.create",defaultMessage:"Create"},{id:"Settings.webhooks.events.update",defaultMessage:"Update"},{id:"app.utils.delete",defaultMessage:"Delete"},{id:"app.utils.publish",defaultMessage:"Publish"},{id:"app.utils.unpublish",defaultMessage:"Unpublish"}]},events:{default:{entry:["entry.create","entry.update","entry.delete"],media:["media.create","media.update","media.delete"]},draftAndPublish:{entry:["entry.create","entry.update","entry.delete","entry.publish","entry.unpublish"],media:["media.create","media.update","media.delete"]}}},K=({isDraftAndPublish:n})=>{const r=n?Z.headers.draftAndPublish:Z.headers.default,s=n?Z.events.draftAndPublish:Z.events.default,{formatMessage:l}=(0,$.Z)(),{values:c,handleChange:f}=(0,I.u6)(),d="events",u=c.events,E=[],x=P(u),h=({target:{name:g,value:B}})=>{let R=new Set(u);B?R.add(g):R.delete(g),f({target:{name:d,value:Array.from(R)}})},v=({target:{name:g,value:B}})=>{let R=new Set(u);B?s[g].forEach(L=>{E.includes(L)||R.add(L)}):s[g].forEach(L=>R.delete(L)),f({target:{name:d,value:Array.from(R)}})};return e.createElement(m.k,{direction:"column",alignItems:"stretch",gap:1},e.createElement(se.Q,null,l({id:"Settings.webhooks.form.events",defaultMessage:"Events"})),e.createElement(U,null,e.createElement("thead",null,e.createElement("tr",null,e.createElement("td",null),r.map(g=>g==="app.utils.publish"||g==="app.utils.unpublish"?e.createElement("td",{key:g.id,title:l({id:"Settings.webhooks.event.publish-tooltip",defaultMessage:"This event only exists for content with draft & publish enabled"})},e.createElement(O.Z,{variant:"sigma",textColor:"neutral600"},l(g))):e.createElement("td",{key:g.id},e.createElement(O.Z,{variant:"sigma",textColor:"neutral600"},l(g)))))),e.createElement("tbody",null,Object.keys(s).map(g=>e.createElement(a,{disabledEvents:E,key:g,name:g,events:s[g],inputValue:x[g],handleChange:h,handleChangeAll:v})))))};K.propTypes={isDraftAndPublish:i().bool.isRequired};var q=K,Pe=t(19406),ye=t(7563),xe=t(21428),ee=t(90333),ie=["A-IM","Accept","Accept-Charset","Accept-Encoding","Accept-Language","Accept-Datetime","Access-Control-Request-Method","Access-Control-Request-Headers","Authorization","Cache-Control","Connection","Content-Length","Content-Type","Cookie","Date","Expect","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Max-Forwards","Origin","Pragma","Proxy-Authorization","Range","Referer","TE","User-Agent","Upgrade","Via","Warning"];const te=({name:n,onChange:r,value:s,...l})=>{const[c,f]=(0,e.useState)(s?[...ie,s]:ie),d=E=>{r({target:{name:n,value:E}})},u=E=>{f(x=>[...x,E]),r({target:{name:n,value:E}})};return e.createElement(xe.XU,{...l,onChange:d,onCreateOption:u,placeholder:"",value:s},c.map(E=>e.createElement(ee.O,{value:E,key:E},E)))};te.defaultProps={value:void 0},te.propTypes={name:i().string.isRequired,onChange:i().func.isRequired,value:i().string};var Ie=te,Oe=()=>{const{formatMessage:n}=(0,$.Z)(),{values:r,errors:s}=(0,I.u6)();return e.createElement(m.k,{direction:"column",alignItems:"stretch",gap:1},e.createElement(se.Q,null,n({id:"Settings.webhooks.form.headers",defaultMessage:"Headers"})),e.createElement(j.x,{padding:8,background:"neutral100",hasRadius:!0},e.createElement(I.F2,{validateOnChange:!1,name:"headers",render:({push:l,remove:c})=>e.createElement(J.r,{gap:4},r.headers?.map((f,d)=>e.createElement(e.Fragment,{key:d},e.createElement(D.P,{col:6},e.createElement(I.gN,{as:Ie,name:`headers.${d}.key`,"aria-label":`row ${d+1} key`,label:n({id:"Settings.webhooks.key",defaultMessage:"Key"}),error:s.headers?.[d]?.key&&n({id:s.headers[d]?.key,defaultMessage:s.headers[d]?.key})})),e.createElement(D.P,{col:6},e.createElement(m.k,{alignItems:"flex-end"},e.createElement(j.x,{style:{flex:1}},e.createElement(I.gN,{as:Y.o,"aria-label":`row ${d+1} value`,label:n({id:"Settings.webhooks.value",defaultMessage:"Value"}),name:`headers.${d}.value`,error:s.headers?.[d]?.value&&n({id:s.headers[d]?.value,defaultMessage:s.headers[d]?.value})})),e.createElement(m.k,{paddingLeft:2,style:{alignSelf:"center"},paddingTop:s.headers?.[d]?.value?0:5},e.createElement(o.fG,{onClick:()=>r.headers.length!==1&&c(d),label:n({id:"Settings.webhooks.headers.remove",defaultMessage:"Remove header row {number}"},{number:d+1})})))))),e.createElement(D.P,{col:12},e.createElement(ye.A,{type:"button",onClick:()=>{l({key:"",value:""})},startIcon:e.createElement(Pe.Z,null)},n({id:"Settings.webhooks.create.header",defaultMessage:"Create new header"}))))})))},Re=t(27169),F=t(35331);const Q=le.ZP.svg(({theme:n,color:r})=>`
|
|
17
|
+
width: ${12/16}rem;
|
|
18
|
+
height: ${12/16}rem;
|
|
19
|
+
|
|
20
|
+
path {
|
|
21
|
+
fill: ${n.colors[r]};
|
|
22
|
+
}
|
|
23
|
+
`),ae=({isPending:n,statusCode:r})=>{const{formatMessage:s}=(0,$.Z)();return n?e.createElement(m.k,{gap:2,alignItems:"center"},e.createElement(Q,{as:Re.Z}),e.createElement(O.Z,null,s({id:"Settings.webhooks.trigger.pending",defaultMessage:"pending"}))):r>=200&&r<300?e.createElement(m.k,{gap:2,alignItems:"center"},e.createElement(Q,{as:re.Z,color:"success700"}),e.createElement(O.Z,null,s({id:"Settings.webhooks.trigger.success",defaultMessage:"success"}))):r>=300?e.createElement(m.k,{gap:2,alignItems:"center"},e.createElement(Q,{as:F.Z,color:"danger700"}),e.createElement(O.Z,null,s({id:"Settings.error",defaultMessage:"error"})," ",r)):null};ae.propTypes={isPending:i().bool.isRequired,statusCode:i().number},ae.defaultProps={statusCode:void 0};const H=({statusCode:n,message:r})=>{const{formatMessage:s}=(0,$.Z)();return n>=200&&n<300?e.createElement(m.k,{justifyContent:"flex-end"},e.createElement(O.Z,{textColor:"neutral600",ellipsis:!0},s({id:"Settings.webhooks.trigger.success.label",defaultMessage:"Trigger succeeded"}))):n>=300?e.createElement(m.k,{justifyContent:"flex-end"},e.createElement(m.k,{maxWidth:(0,o.Q1)(250),justifyContent:"flex-end",title:r},e.createElement(O.Z,{ellipsis:!0,textColor:"neutral600"},r))):null};H.propTypes={statusCode:i().number,message:i().string},H.defaultProps={statusCode:void 0,message:void 0};const N=({onCancel:n})=>{const{formatMessage:r}=(0,$.Z)();return e.createElement(m.k,{justifyContent:"flex-end"},e.createElement("button",{onClick:n,type:"button"},e.createElement(m.k,{gap:2,alignItems:"center"},e.createElement(O.Z,{textColor:"neutral400"},r({id:"Settings.webhooks.trigger.cancel",defaultMessage:"cancel"})),e.createElement(Q,{as:F.Z,color:"neutral400"}))))};N.propTypes={onCancel:i().func.isRequired};const z=({isPending:n,onCancel:r,response:s})=>{const{statusCode:l,message:c}=s,{formatMessage:f}=(0,$.Z)();return e.createElement(j.x,{background:"neutral0",padding:5,shadow:"filterShadow",hasRadius:!0},e.createElement(J.r,{gap:4,style:{alignItems:"center"}},e.createElement(D.P,{col:3},e.createElement(O.Z,null,f({id:"Settings.webhooks.trigger.test",defaultMessage:"Test-trigger"}))),e.createElement(D.P,{col:3},e.createElement(ae,{isPending:n,statusCode:l})),e.createElement(D.P,{col:6},n?e.createElement(N,{onCancel:r}):e.createElement(H,{statusCode:l,message:c}))))};z.defaultProps={isPending:!1,onCancel(){},response:{}},z.propTypes={isPending:i().bool,onCancel:i().func,response:i().object};var Te=z,y=t(24346);const De=/(^$)|(^[A-Za-z][_0-9A-Za-z ]*$)/,de=/(^$)|((https?:\/\/.*)(d*)\/?(.*))/;var ce=y.Ry().shape({name:y.Z_(o.I0.string).required(o.I0.required).matches(De,o.I0.regex),url:y.Z_(o.I0.string).required(o.I0.required).matches(de,o.I0.regex),headers:y.Vo(n=>{let r=y.IX();if(n.length===1){const{key:s,value:l}=n[0];if(!s&&!l)return r}return r.of(y.Ry().shape({key:y.Z_().required(o.I0.required),value:y.Z_().required(o.I0.required)}))}),events:y.IX()});const _=({handleSubmit:n,data:r,triggerWebhook:s,isCreating:l,isTriggering:c,triggerResponse:f,isDraftAndPublishEvents:d})=>{const{formatMessage:u}=(0,$.Z)(),[E,x]=(0,e.useState)(!1);return e.createElement(I.J9,{onSubmit:n,initialValues:{name:r?.name||"",url:r?.url||"",headers:Object.keys(r?.headers||[]).length?Object.entries(r.headers).map(([h,v])=>({key:h,value:v})):[{key:"",value:""}],events:r?.events||[]},validationSchema:ce,validateOnChange:!1,validateOnBlur:!1},({handleSubmit:h,errors:v})=>e.createElement(o.l0,{noValidate:!0},e.createElement(pe.T,{primaryAction:e.createElement(m.k,{gap:2},e.createElement(S.z,{onClick:()=>{s(),x(!0)},variant:"tertiary",startIcon:e.createElement(ne.Z,null),disabled:l||c,size:"L"},u({id:"Settings.webhooks.trigger",defaultMessage:"Trigger"})),e.createElement(S.z,{startIcon:e.createElement(re.Z,null),onClick:h,type:"submit",size:"L"},u({id:"global.save",defaultMessage:"Save"}))),title:l?u({id:"Settings.webhooks.create",defaultMessage:"Create a webhook"}):r?.name,navigationAction:e.createElement(o.rU,{startIcon:e.createElement(Ee.Z,null),to:"/settings/webhooks"},u({id:"global.back",defaultMessage:"Back"}))}),e.createElement(fe.D,null,e.createElement(m.k,{direction:"column",alignItems:"stretch",gap:4},E&&e.createElement("div",{className:"trigger-wrapper"},e.createElement(Te,{isPending:c,response:f,onCancel:()=>x(!1)})),e.createElement(j.x,{background:"neutral0",padding:8,shadow:"filterShadow",hasRadius:!0},e.createElement(m.k,{direction:"column",alignItems:"stretch",gap:6},e.createElement(J.r,{gap:6},e.createElement(D.P,{col:6},e.createElement(I.gN,{as:Y.o,name:"name",error:v.name&&u({id:v.name}),label:u({id:"global.name",defaultMessage:"Name"}),required:!0})),e.createElement(D.P,{col:12},e.createElement(I.gN,{as:Y.o,name:"url",error:v.url&&u({id:v.url}),label:u({id:"Settings.roles.form.input.url",defaultMessage:"Url"}),required:!0}))),e.createElement(Oe,null),e.createElement(q,{isDraftAndPublish:d})))))))};_.propTypes={data:i().object,handleSubmit:i().func.isRequired,triggerWebhook:i().func.isRequired,isCreating:i().bool.isRequired,isDraftAndPublishEvents:i().bool.isRequired,isTriggering:i().bool.isRequired,triggerResponse:i().object},_.defaultProps={data:void 0,triggerResponse:void 0};var Ae=_;const ue=n=>({...n,headers:X(n.headers)}),X=n=>n.reduce((r,s)=>{const{key:l,value:c}=s;return l!==""?{...r,[l]:c}:r},{});var he=ue,ge=()=>{const{params:{id:n}}=(0,p.$B)("/settings/webhooks/:id"),{replace:r}=(0,p.k6)(),{lockApp:s,unlockApp:l}=(0,o.o1)(),c=(0,o.lm)(),f=(0,M.useQueryClient)(),{isLoading:d,collectionTypes:u}=(0,k.bP)(),{put:E,get:x,post:h}=(0,o.kY)(),v=n==="create",{isLoading:g,data:B}=(0,M.useQuery)(["get-webhook",n],async()=>{try{const{data:{data:T}}=await x(`/admin/webhooks/${n}`);return T}catch{return c({type:"warning",message:{id:"notification.error"}}),null}},{enabled:!v}),{isLoading:R,data:L,isIdle:ke,mutate:je}=(0,M.useMutation)(()=>h(`/admin/webhooks/${n}/trigger`)),b=()=>je(null,{onError(){c({type:"warning",message:{id:"notification.error"}})}}),Se=(0,M.useMutation)(T=>h("/admin/webhooks",T)),Ze=(0,M.useMutation)(({id:T,body:V})=>E(`/admin/webhooks/${T}`,V)),Be=async T=>{v?(s(),Se.mutate(he(T),{onSuccess({data:V}){c({type:"success",message:{id:"Settings.webhooks.created"}}),r(`/settings/webhooks/${V.data.id}`),l()},onError(V){c({type:"warning",message:{id:"notification.error"}}),console.log(V),l()}})):(s(),Ze.mutate({id:n,body:he(T)},{onSuccess(){f.invalidateQueries(["get-webhook",n]),c({type:"success",message:{id:"notification.form.success.fields"}}),l()},onError(V){c({type:"warning",message:{id:"notification.error"}}),console.log(V),l()}}))},We=e.useMemo(()=>u.some(T=>T.options.draftAndPublish===!0),[u]);return g||d?e.createElement(o.dO,null):e.createElement(A.o,null,e.createElement(o.SL,{name:"Webhooks"}),e.createElement(Ae,{handleSubmit:Be,data:B,triggerWebhook:b,isCreating:v,isTriggering:R,isTriggerIdle:ke,triggerResponse:L?.data.data,isDraftAndPublishEvents:We}))}},33238:function(G,C,t){t.r(C);var e=t(32735),o=t(24989),A=t(83983),M=t(55734);const p=()=>e.createElement(o.O4,{permissions:A.Z.settings.webhooks.create},e.createElement(M.Z,null));C.default=p},59021:function(G,C,t){t.r(C);var e=t(32735),o=t(24989),A=t(83983),M=t(55734);const p=()=>e.createElement(o.O4,{permissions:A.Z.settings.webhooks.update},e.createElement(M.Z,null));C.default=p},21428:function(G,C,t){t.d(C,{Wx:function(){return Me},XU:function(){return $},hQ:function(){return I}});var e=t(74512),o=t(32735),A=t(35331),M=t(16899),p=t(42345),k=t(8471),me=t(14268),i=t(95976),ne=t(74971),re=t(36971),Ee=t(30350),pe=t(23866),m=t(72850),S=t(49372),fe=t(87107),j=t(87933),J=t(28847),D=t(67014),Y=t(47851);const I=({children:a,clearLabel:P="clear",creatable:U=!1,createMessage:Z=X=>`Create "${X}"`,defaultFilterValue:K,defaultTextValue:q,defaultOpen:Pe=!1,open:ye,onOpenChange:xe,disabled:ee=!1,error:oe,filterValue:ie,hasMoreItems:te=!1,hint:Ie,id:$e,label:Oe,labelAction:Re,loading:F=!1,loadingMessage:Q="Loading content...",noOptionsMessage:ae=()=>"No results found",onChange:H,onClear:N,onCreateOption:z,onFilterValueChange:Te,onInputChange:y,onTextValueChange:De,onLoadMore:de,placeholder:Le="Select or enter a value",required:ce=!1,startIcon:_,textValue:Ae,value:ue})=>{const[X,he]=(0,i.T)({prop:ye,defaultProp:Pe,onChange:xe}),[w,ge]=(0,i.T)({prop:Ae,defaultProp:q,onChange:De}),[n,r]=(0,i.T)({prop:ie,defaultProp:K,onChange:Te}),s=o.useRef(null),l=o.useRef(null),c=o.useRef(null),f=(0,ne.M)($e),d=b=>{N&&!ee&&(ge(""),r(""),N(b),l.current.focus())},u=b=>{he(b)},E=b=>{ge(b)},x=b=>{r(b)},h=b=>{y&&y(b)},v=b=>{H&&H(b)},g=(0,ne.M)(),B=`intersection-${(0,me.B)(g)}`,R=b=>{de&&te&&!F&&de(b)},L=()=>{z&&w&&z(w)};(0,re.s)(s,R,{selectorToWatch:`#${B}`,skipWhen:!X});const ke=`${f}-hint`,je=`${f}-error`;return(0,e.jsx)(fe.g,{hint:Ie,error:oe,id:f,required:ce,children:(0,e.jsxs)(j.k,{direction:"column",alignItems:"stretch",gap:1,children:[(0,e.jsx)(J.Q,{action:Re,children:Oe}),(0,e.jsxs)(p.hQ.Root,{autocomplete:U?"list":"both",open:X,onOpenChange:u,onTextValueChange:E,textValue:w,allowCustomValue:!0,disabled:ee,required:ce,value:ue===null?void 0:ue,onValueChange:v,filterValue:n,onFilterValueChange:x,children:[(0,e.jsxs)(O,{$hasError:!!oe,children:[(0,e.jsxs)(j.k,{flex:"1",as:"span",gap:3,children:[_?(0,e.jsx)(m.x,{as:"span","aria-hidden":!0,children:_}):null,(0,e.jsx)(le,{placeholder:Le,id:f,"aria-invalid":!!oe,"aria-labelledby":`${ke} ${je}`,onChange:h,ref:l})]}),(0,e.jsxs)(j.k,{as:"span",gap:3,children:[w&&N?(0,e.jsx)(se,{as:"button",hasRadius:!0,background:"transparent",type:"button",onClick:d,"aria-disabled":ee,"aria-label":P,title:P,ref:c,children:(0,e.jsx)(A.Z,{})}):null,(0,e.jsx)(ve,{children:(0,e.jsx)(M.Z,{})})]})]}),(0,e.jsx)(p.hQ.Portal,{children:(0,e.jsx)(be,{sideOffset:4,children:(0,e.jsxs)(Ce,{ref:s,children:[a,U?(0,e.jsx)(p.hQ.CreateItem,{onPointerUp:L,onClick:L,asChild:!0,children:(0,e.jsx)(W,{children:(0,e.jsx)(S.Z,{children:Z(w??"")})})}):null,!U&&!F?(0,e.jsx)(p.hQ.NoValueFound,{asChild:!0,children:(0,e.jsx)(W,{$hasHover:!1,children:(0,e.jsx)(S.Z,{children:ae(w??"")})})}):null,F?(0,e.jsx)(j.k,{justifyContent:"center",alignItems:"center",paddingTop:2,paddingBottom:2,children:(0,e.jsx)(pe.a,{small:!0,children:Q})}):null,(0,e.jsx)(m.x,{id:B,width:"100%",height:"1px"})]})})})]}),(0,e.jsx)(D.J,{}),(0,e.jsx)(Y.c,{})]})})},$=a=>(0,e.jsx)(I,{...a,creatable:!0}),se=(0,k.ZP)(m.x)`
|
|
24
|
+
border: none;
|
|
25
|
+
|
|
26
|
+
svg {
|
|
27
|
+
height: ${11/16}rem;
|
|
28
|
+
width: ${11/16}rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
svg path {
|
|
32
|
+
fill: ${({theme:a})=>a.colors.neutral600};
|
|
33
|
+
}
|
|
34
|
+
`,O=(0,k.ZP)(p.hQ.Trigger)`
|
|
35
|
+
position: relative;
|
|
36
|
+
border: 1px solid ${({theme:a,$hasError:P})=>P?a.colors.danger600:a.colors.neutral200};
|
|
37
|
+
padding-right: ${({theme:a})=>a.spaces[3]};
|
|
38
|
+
padding-left: ${({theme:a})=>a.spaces[3]};
|
|
39
|
+
border-radius: ${({theme:a})=>a.borderRadius};
|
|
40
|
+
background: ${({theme:a})=>a.colors.neutral0};
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: space-between;
|
|
45
|
+
gap: ${({theme:a})=>a.spaces[4]};
|
|
46
|
+
|
|
47
|
+
&[data-disabled] {
|
|
48
|
+
color: ${({theme:a})=>a.colors.neutral600};
|
|
49
|
+
background: ${({theme:a})=>a.colors.neutral150};
|
|
50
|
+
cursor: not-allowed;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Required to ensure the below inputFocusStyles are adhered too */
|
|
54
|
+
&:focus-visible {
|
|
55
|
+
outline: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
${({theme:a,$hasError:P})=>(0,Ee.k3)()({theme:a,hasError:P})};
|
|
59
|
+
`,le=(0,k.ZP)(p.hQ.TextInput)`
|
|
60
|
+
width: 100%;
|
|
61
|
+
font-size: ${14/16}rem;
|
|
62
|
+
color: ${({theme:a})=>a.colors.neutral800};
|
|
63
|
+
min-height: ${40/16}rem;
|
|
64
|
+
border: none;
|
|
65
|
+
background-color: transparent;
|
|
66
|
+
|
|
67
|
+
&:focus-visible {
|
|
68
|
+
outline: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&[aria-disabled='true'] {
|
|
72
|
+
cursor: inherit;
|
|
73
|
+
}
|
|
74
|
+
`,ve=(0,k.ZP)(p.hQ.Icon)`
|
|
75
|
+
& > svg {
|
|
76
|
+
width: ${6/16}rem;
|
|
77
|
+
|
|
78
|
+
& > path {
|
|
79
|
+
fill: ${({theme:a})=>a.colors.neutral600};
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&[aria-disabled='true'] {
|
|
84
|
+
cursor: inherit;
|
|
85
|
+
}
|
|
86
|
+
`,be=(0,k.ZP)(p.hQ.Content)`
|
|
87
|
+
background: ${({theme:a})=>a.colors.neutral0};
|
|
88
|
+
box-shadow: ${({theme:a})=>a.shadows.filterShadow};
|
|
89
|
+
border: 1px solid ${({theme:a})=>a.colors.neutral150};
|
|
90
|
+
border-radius: ${({theme:a})=>a.borderRadius};
|
|
91
|
+
width: var(--radix-combobox-trigger-width);
|
|
92
|
+
/* This is from the design-system figma file. */
|
|
93
|
+
max-height: 15rem;
|
|
94
|
+
z-index: ${({theme:a})=>a.zIndices[1]};
|
|
95
|
+
`,Ce=(0,k.ZP)(p.hQ.Viewport)`
|
|
96
|
+
padding: ${({theme:a})=>a.spaces[1]};
|
|
97
|
+
`,Me=o.forwardRef(({children:a,value:P,disabled:U,textValue:Z,...K},q)=>(0,e.jsx)(p.hQ.ComboboxItem,{asChild:!0,value:P,disabled:U,textValue:Z,children:(0,e.jsx)(W,{ref:q,...K,children:(0,e.jsx)(p.hQ.ItemText,{asChild:!0,children:(0,e.jsx)(S.Z,{children:a})})})})),W=k.ZP.div`
|
|
98
|
+
width: 100%;
|
|
99
|
+
border: none;
|
|
100
|
+
text-align: left;
|
|
101
|
+
outline-offset: -3px;
|
|
102
|
+
padding: ${({theme:a})=>a.spaces[2]} ${({theme:a})=>a.spaces[4]};
|
|
103
|
+
background-color: ${({theme:a})=>a.colors.neutral0};
|
|
104
|
+
border-radius: ${({theme:a})=>a.borderRadius};
|
|
105
|
+
user-select: none;
|
|
106
|
+
|
|
107
|
+
&[data-selected] {
|
|
108
|
+
background-color: ${({theme:a})=>a.colors.primary100};
|
|
109
|
+
|
|
110
|
+
${S.Z} {
|
|
111
|
+
color: ${({theme:a})=>a.colors.primary600};
|
|
112
|
+
font-weight: bold;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&:hover,
|
|
117
|
+
&[data-highlighted] {
|
|
118
|
+
outline: none;
|
|
119
|
+
background-color: ${({theme:a,$hasHover:P=!0})=>P?a.colors.primary100:a.colors.neutral0};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&[data-highlighted] {
|
|
123
|
+
${S.Z} {
|
|
124
|
+
color: ${({theme:a})=>a.colors.primary600};
|
|
125
|
+
font-weight: bold;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
`},90333:function(G,C,t){t.d(C,{O:function(){return o}});var e=t(21428);const o=e.Wx},29439:function(G,C,t){t.d(C,{Z:function(){return A}});var e=t(74512);const o=M=>(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...M,children:(0,e.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=o}}]);
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[4121],{32393:function(w,M,t){t.r(M),t.d(M,{default:function(){return ce}});var e=t(32735),o=t(24989),m=t(83983),h=t(53038),u=t(67879),g=t(20108),x=t(94638),y=t(96709),f=t(27649),r=t(82055),E=t(99223),l=t(49372),D=t(41415),A=t(17e3),K=t(72850),_=t(56755),ee=t(73269),te=t(33827),V=t(94547),d=t(19786),F=t(82884),ne=t(3685),ae=t(35658),S=t(87933),p=t(74512),z=t(8471);const B=z.ZP.div`
|
|
2
|
+
background: ${({theme:s})=>s.colors.danger500};
|
|
3
|
+
border: none;
|
|
4
|
+
border-radius: 16px;
|
|
5
|
+
position: relative;
|
|
6
|
+
height: ${24/16}rem;
|
|
7
|
+
width: ${40/16}rem;
|
|
8
|
+
|
|
9
|
+
& span {
|
|
10
|
+
font-size: ${({visibleLabels:s})=>s?"1rem":0};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&:before {
|
|
14
|
+
content: '';
|
|
15
|
+
background: ${({theme:s})=>s.colors.neutral0};
|
|
16
|
+
width: 1rem;
|
|
17
|
+
height: 1rem;
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
position: absolute;
|
|
20
|
+
transition: all 0.5s;
|
|
21
|
+
left: ${({theme:s})=>s.spaces[1]};
|
|
22
|
+
top: ${({theme:s})=>s.spaces[1]};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (prefers-reduced-motion: reduce) {
|
|
26
|
+
&:before {
|
|
27
|
+
transition: none;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
`,se=z.ZP.button`
|
|
31
|
+
background: transparent;
|
|
32
|
+
padding: 0;
|
|
33
|
+
border: none;
|
|
34
|
+
|
|
35
|
+
&[aria-checked='true'] ${B} {
|
|
36
|
+
background: ${({theme:s})=>s.colors.success500};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&[aria-checked='true'] ${B}:before {
|
|
40
|
+
transform: translateX(1rem);
|
|
41
|
+
}
|
|
42
|
+
`,oe=e.forwardRef(({label:s,onChange:v,onLabel:C="On",offLabel:c="Off",selected:a,visibleLabels:b=!1,...L},R)=>(0,p.jsx)(se,{ref:R,role:"switch","aria-checked":a,"aria-label":s,onClick:v,visibleLabels:b,type:"button",...L,children:(0,p.jsxs)(S.k,{children:[(0,p.jsxs)(B,{children:[(0,p.jsx)("span",{children:C}),(0,p.jsx)("span",{children:c})]}),b&&(0,p.jsx)(K.x,{as:"span","aria-hidden":!0,paddingLeft:2,color:a?"success600":"danger600",children:a?C:c})]})}));var H=t(50563),le=t(9695),$=t(19406),N=t(4038),ie=t(68625),re=t(54725),de=()=>{const[s,v]=(0,e.useState)(!1),[C,c]=(0,e.useState)([]),{formatMessage:a}=(0,u.Z)(),{formatAPIError:b}=(0,o.So)(),L=(0,o.lm)();(0,o.go)();const{push:R}=(0,h.k6)(),{pathname:Q}=(0,h.TH)(),{isLoading:me,allowedActions:{canCreate:W,canUpdate:Y,canDelete:G}}=(0,o.ss)(m.Z.settings.webhooks),{get:he,post:ue,put:ge}=(0,o.kY)(),{notifyStatus:X}=(0,x.G)(),Ee="webhooks",{isLoading:fe,data:T,error:Z,refetch:J}=(0,g.useQuery)(Ee,async()=>{const{data:{data:n}}=await he("/admin/webhooks");return n});(0,e.useEffect)(()=>{if(Z){L({type:"warning",message:b(Z)});return}T&&X(a({id:"Settings.webhooks.list.loading.success",defaultMessage:"Webhooks have been loaded"}))},[T,Z,L,a,X,b]);const q=(0,g.useMutation)(async()=>{await ue("/admin/webhooks/batch-delete",{ids:C})},{onError(n){L({type:"warning",message:b(n)}),v(!1)},onSuccess(){c([]),v(!1),J()}}),ve=(0,g.useMutation)(async({isEnabled:n,id:i})=>{const{id:j,...U}=T.find(Ce=>Ce.id===i)??{},pe={...U,isEnabled:n};await ge(`/admin/webhooks/${i}`,pe)},{onError(n){L({type:"warning",message:b(n)})},onSuccess(){J()}}),be=()=>q.mutate(),Me=n=>c(n?T.map(i=>i.id):[]),xe=(n,i)=>c(n?j=>[...j,i]:j=>j.filter(U=>U!==i)),k=n=>R(`${Q}/${n}`),I=me||fe,O=T?.length??0,P=C.length;return e.createElement(y.A,null,e.createElement(o.SL,{name:"Webhooks"}),e.createElement(f.o,{"aria-busy":I},e.createElement(r.T,{title:a({id:"Settings.webhooks.title",defaultMessage:"Webhooks"}),subtitle:a({id:"Settings.webhooks.list.description",defaultMessage:"Get POST changes notifications"}),primaryAction:W&&!I&&e.createElement(o.Qj,{startIcon:e.createElement($.Z,null),variant:"default",to:`${Q}/create`,size:"S"},a({id:"Settings.webhooks.list.button.add",defaultMessage:"Create new webhook"}))}),P>0&&G&&e.createElement(E.Z,{startActions:e.createElement(e.Fragment,null,e.createElement(l.Z,{variant:"epsilon",textColor:"neutral600"},a({id:"Settings.webhooks.to.delete",defaultMessage:"{webhooksToDeleteLength, plural, one {# webhook} other {# webhooks}} selected"},{webhooksToDeleteLength:P})),e.createElement(D.z,{onClick:()=>v(!0),startIcon:e.createElement(N.Z,null),size:"L",variant:"danger-light"},a({id:"global.delete",defaultMessage:"Delete"})))}),e.createElement(A.D,null,I?e.createElement(K.x,{background:"neutral0",padding:6,shadow:"filterShadow",hasRadius:!0},e.createElement(o.dO,null)):O>0?e.createElement(_.i,{colCount:5,rowCount:O+1,footer:e.createElement(ee.c,{onClick:()=>W?k("create"):{},icon:e.createElement($.Z,null)},a({id:"Settings.webhooks.list.button.add",defaultMessage:"Create new webhook"}))},e.createElement(te.h,null,e.createElement(V.Tr,null,e.createElement(d.Th,null,e.createElement(F.C,{"aria-label":a({id:"global.select-all-entries",defaultMessage:"Select all entries"}),indeterminate:P>0&&P<O,value:P===O,onValueChange:Me})),e.createElement(d.Th,{width:"20%"},e.createElement(l.Z,{variant:"sigma",textColor:"neutral600"},a({id:"global.name",defaultMessage:"Name"}))),e.createElement(d.Th,{width:"60%"},e.createElement(l.Z,{variant:"sigma",textColor:"neutral600"},a({id:"Settings.webhooks.form.url",defaultMessage:"URL"}))),e.createElement(d.Th,{width:"20%"},e.createElement(l.Z,{variant:"sigma",textColor:"neutral600"},a({id:"Settings.webhooks.list.th.status",defaultMessage:"Status"}))),e.createElement(d.Th,null,e.createElement(ne.T,null,a({id:"Settings.webhooks.list.th.actions",defaultMessage:"Actions"}))))),e.createElement(ae.p,null,T.map(n=>e.createElement(V.Tr,{key:n.id,...(0,o.X7)({fn:()=>k(n.id),condition:Y})},e.createElement(d.Td,{...o.UW},e.createElement(F.C,{"aria-label":`${a({id:"global.select",defaultMessage:"Select"})} ${n.name}`,value:C?.includes(n.id),onValueChange:i=>xe(i,n.id),name:"select"})),e.createElement(d.Td,null,e.createElement(l.Z,{fontWeight:"semiBold",textColor:"neutral800"},n.name)),e.createElement(d.Td,null,e.createElement(l.Z,{textColor:"neutral800"},n.url)),e.createElement(d.Td,null,e.createElement(S.k,null,e.createElement(oe,{onLabel:a({id:"global.enabled",defaultMessage:"Enabled"}),offLabel:a({id:"global.disabled",defaultMessage:"Disabled"}),label:`${n.name} ${a({id:"Settings.webhooks.list.th.status",defaultMessage:"Status"})}`,selected:n.isEnabled,onChange:i=>{i.stopPropagation(),ve.mutate({isEnabled:!n.isEnabled,id:n.id})},visibleLabels:!0}))),e.createElement(d.Td,null,e.createElement(S.k,{gap:1},Y&&e.createElement(H.h,{label:a({id:"Settings.webhooks.events.update",defaultMessage:"Update"}),icon:e.createElement(ie.Z,null),noBorder:!0}),G&&e.createElement(H.h,{onClick:i=>{i.stopPropagation(),c([n.id]),v(!0)},label:a({id:"Settings.webhooks.events.delete",defaultMessage:"Delete webhook"}),icon:e.createElement(N.Z,null),noBorder:!0}))))))):e.createElement(le.x,{icon:e.createElement(re.Z,{width:"160px"}),content:a({id:"Settings.webhooks.list.empty.description",defaultMessage:"No webhooks found"}),action:e.createElement(D.z,{variant:"secondary",startIcon:e.createElement($.Z,null),onClick:()=>W?k("create"):{}},a({id:"Settings.webhooks.list.button.add",defaultMessage:"Create new webhook"}))}))),e.createElement(o.QH,{isOpen:s,onToggleDialog:()=>v(n=>!n),onConfirm:be,isConfirmButtonLoading:q.isLoading}))},ce=()=>e.createElement(o.O4,{permissions:m.Z.settings.webhooks.main},e.createElement(de,null))},99223:function(w,M,t){t.d(M,{Z:function(){return f}});var e=t(74512),o=t(32735),m=t(60216),h=t(8471),u=t(87933),g=t(72850);const x=(0,h.ZP)(u.k)`
|
|
43
|
+
& > * + * {
|
|
44
|
+
margin-left: ${({theme:r})=>r.spaces[2]};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
margin-left: ${({pullRight:r})=>r?"auto":void 0};
|
|
48
|
+
`,y=(0,h.ZP)(x)`
|
|
49
|
+
flex-shrink: 0;
|
|
50
|
+
`,f=({startActions:r,endActions:E})=>r||E?(0,e.jsx)(g.x,{paddingLeft:10,paddingRight:10,children:(0,e.jsx)(g.x,{paddingBottom:4,children:(0,e.jsxs)(u.k,{justifyContent:"space-between",alignItems:"flex-start",children:[r&&(0,e.jsx)(x,{wrap:"wrap",children:r}),E&&(0,e.jsx)(y,{pullRight:!0,children:E})]})})}):null;f.defaultProps={endActions:void 0,startActions:void 0},f.propTypes={endActions:m.node,startActions:m.node}},73269:function(w,M,t){t.d(M,{c:function(){return E}});var e=t(74512),o=t(32735),m=t(60216),h=t(8471),u=t(72850),g=t(9026),x=t(87933),y=t(49372);const f=(0,h.ZP)(u.x)`
|
|
51
|
+
height: ${24/16}rem;
|
|
52
|
+
width: ${24/16}rem;
|
|
53
|
+
border-radius: 50%;
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
align-items: center;
|
|
57
|
+
|
|
58
|
+
svg {
|
|
59
|
+
height: ${10/16}rem;
|
|
60
|
+
width: ${10/16}rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
svg path {
|
|
64
|
+
fill: ${({theme:l})=>l.colors.primary600};
|
|
65
|
+
}
|
|
66
|
+
`,r=(0,h.ZP)(u.x)`
|
|
67
|
+
border-radius: 0 0 ${({theme:l})=>l.borderRadius} ${({theme:l})=>l.borderRadius};
|
|
68
|
+
display: block;
|
|
69
|
+
width: 100%;
|
|
70
|
+
border: none;
|
|
71
|
+
`,E=({children:l,icon:D,...A})=>(0,e.jsxs)("div",{children:[(0,e.jsx)(g.i,{}),(0,e.jsx)(r,{as:"button",background:"primary100",padding:5,...A,children:(0,e.jsxs)(x.k,{children:[(0,e.jsx)(f,{"aria-hidden":!0,background:"primary200",children:D}),(0,e.jsx)(u.x,{paddingLeft:3,children:(0,e.jsx)(y.Z,{variant:"pi",fontWeight:"bold",textColor:"primary600",children:l})})]})})]});E.propTypes={children:m.string.isRequired,icon:m.node.isRequired}}}]);
|
package/ee/LICENSE
CHANGED
|
@@ -1,21 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
In the event of a direct conflict between the terms of this EE Supplemental License and the terms of the Enterprise Agreement or the Subscription Agreement, as applicable, the terms of this EE Supplemental License will control. Except to the extent modified by this EE Supplemental License, the Enterprise Agreement or the Subscription Agreement, as applicable, remain in full force and effect in accordance with its terms.
|
|
4
|
-
|
|
5
|
-
By using the EE Software, You hereby agree to the below terms and conditions.
|
|
6
|
-
|
|
7
|
-
1. Notwithstanding any terms to the contrary in the Enterprise Agreement or Subscription Agreement, You may copy, modify and publish patches to the EE Software in a production environment (such copies, “Production Copies,” such modifications, “Production Modifications” and such patches, “Production Patches”) if and only if (a) You have agreed to, and are in full compliance with, the Enterprise Agreement or Subscription Agreement, as applicable, and (b) You have a valid license to the EE Software for the correct number of projects. You agree that Strapi and/or its licensors (as applicable) will own all right, title and interest in and to all such Production Copies, Production Modifications and Production Patches. You may display and/or distribute such Production Copies, Production Modifications and Production Patches if and only if (i) You have a valid license to the EE Software for the correct number of projects and (ii) You are in compliance with the Enterprise Agreement or Subscription Agreement, as applicable. You hereby assign to Strapi all right, title and interest in and to all Production Copies, Production Modifications and Production Patches, including all intellectual property rights embodied in or related to the foregoing.
|
|
8
|
-
|
|
9
|
-
2. Notwithstanding the foregoing, You may copy and modify the EE Software solely for development and testing purposes (such copies, “Development Copies” and such modifications, “Development Modifications”) with or without a license to the EE Software if your use is in compliance with this Section 2. You agree that Strapi and/or its licensors (as applicable) will own all right, title and interest in and to all Development Copies and Development Modifications and You hereby assign to Strapi all right, title and interest in and to all Development Copies and Development Modifications, including all intellectual property rights embodied in or related to the foregoing. If You do not have a license to the EE Software, then You further agree as follows:
|
|
10
|
-
|
|
11
|
-
Other than as expressly set forth in this Section 2, You may not (a) copy or modify the EE Software, (b) create derivative works of the EE Software, (c) remove or modify any notice of any patent, copyright, trademark, or other proprietary rights that appear on or in the EE Software, (d) reverse engineer, decompile, translate, disassemble, or discover the source code of all or any portion of the EE Software, (e) publicly display all or any part of the EE Software, (f) distribute, disclose, market, lease, publish, merge, resell, assign, loan, sublicense, rent, or transfer the EE Software to any third party, (g) use the EE Software for any dial-up, remote access, interactive, or other on-line or hosted service, or to provide a service bureau, time share, or other services to third parties, (h) merge the EE Software into another product, (i) disclose the results of any EE Software performance benchmarks or test results to any third party without Strapi’s prior written consent, (j) use any trademarks, logos, service marks, trade names of Strapi, or any portion thereof, without Strapi’s prior written consent, (k) use the EE Software, or any portion thereof, in a manner that does not comply with applicable law, regulations, or governmental orders, or (l) use or store the EE Software on equipment not owned or controlled by Customer.
|
|
12
|
-
|
|
13
|
-
THE EE SOFTWARE IS PROVIDED ON AN “AS IS” BASIS WITHOUT ANY REPRESENTATIONS, WARRANTIES, COVENANTS, OR CONDITIONS OF ANY KIND (EXPRESS OR IMPLIED, STATUTORY OR OTHERWISE), INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, TITLE, FITNESS FOR A PARTICULAR PURPOSE, OR NONINFRINGEMENT. FURTHER, STRAPI DOES NOT REPRESENT OR WARRANT THAT (A) THE ACCESS TO OR USE OF THE EE SOFTWARE WILL BE SECURE, TIMELY, UNINTERRUPTED, ERROR-FREE, OR OPERATE IN COMBINATION WITH ANY OTHER HARDWARE, SOFTWARE, SYSTEM, OR DATA, (B) THE EE SOFTWARE WILL MEET YOUR REQUIREMENTS OR EXPECTATIONS, OR OTHERWISE PRODUCE ANY PARTICULAR RESULTS, (C) ERRORS OR DEFECTS WILL BE CORRECTED, PATCHES OR WORKAROUNDS WILL BE PROVIDED, OR STRAPI WILL DETECT ANY BUG IN THE EE SOFTWARE, (D) THE SOFTWARE IS FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS, OR (E) THIRD-PARTY DISRUPTIONS OR SECURITY BREACHES OF THE EE SOFTWARE WILL BE PREVENTED.
|
|
14
|
-
|
|
15
|
-
STRAPI WILL NOT BE LIABLE FOR ANY LOSS OF PROFITS OR ANY INDIRECT, SPECIAL, INCIDENTAL, RELIANCE, OR CONSEQUENTIAL DAMAGES OF ANY KIND, REGARDLESS OF THE FORM OF ACTION, WHETHER IN CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY, OR OTHERWISE, EVEN IF INFORMED OF THE POSSIBILITY OF SUCH DAMAGES IN ADVANCE.
|
|
16
|
-
|
|
17
|
-
STRAPI’S ENTIRE LIABILITY TO YOU FOR USE OF THE EE SOFTWARE WILL NOT EXCEED $100.
|
|
18
|
-
|
|
19
|
-
3. You are not granted any other rights beyond what is expressly stated herein and in the Enterprise Agreement or Subscription Agreement, as applicable.
|
|
20
|
-
|
|
21
|
-
4. This EE Supplemental License does not apply to Strapi software that is distributed as part of the Strapi Community Edition (CE) (the “CE Software”).
|
|
1
|
+
If you or the company you represent has entered into a written agreement referencing the Enterprise Edition of the Strapi source code available at https://github.com/strapi/strapi, then such agreement applies to your use of the Enterprise Edition of the Strapi Software. If you or the company you represent is using the Enterprise Edition of the Strapi Software in connection with a subscription to our cloud offering, then the agreement you have agreed to with respect to our cloud offering and the licenses included in such agreement apply to your use of the Enterprise Edition of the Strapi Software. Otherwise, the Strapi Enterprise Software License Agreement (found here https://strapi.io/enterprise-terms) applies to your use of the Enterprise Edition of the Strapi Software. BY ACCESSING OR USING THE ENTERPRISE EDITION OF THE STRAPI SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THE RELEVANT REFERENCED AGREEMENT. IF YOU ARE NOT AUTHORIZED TO ACCEPT THESE TERMS ON BEHALF OF THE COMPANY YOU REPRESENT OR IF YOU DO NOT AGREE TO ALL OF THE RELEVANT TERMS AND CONDITIONS REFERENCED AND YOU HAVE NOT OTHERWISE EXECUTED A WRITTEN AGREEMENT WITH STRAPI, YOU ARE NOT AUTHORIZED TO ACCESS OR USE OR ALLOW ANY USER TO ACCESS OR USE ANY PART OF THE ENTERPRISE EDITION OF THE STRAPI SOFTWARE. YOUR ACCESS RIGHTS ARE CONDITIONAL ON YOUR CONSENT TO THE RELEVANT REFERENCED TERMS TO THE EXCLUSION OF ALL OTHER TERMS; IF THE RELEVANT REFERENCED TERMS ARE CONSIDERED AN OFFER BY YOU, ACCEPTANCE IS EXPRESSLY LIMITED TO THE RELEVANT REFERENCED TERMS.
|
|
@@ -34,7 +34,12 @@ export default (layout) => {
|
|
|
34
34
|
}),
|
|
35
35
|
searchable: false,
|
|
36
36
|
sortable: true,
|
|
37
|
-
mainField:
|
|
37
|
+
mainField: {
|
|
38
|
+
name: 'name',
|
|
39
|
+
schema: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
38
43
|
},
|
|
39
44
|
cellFormatter({ strapi_reviewWorkflows_stage }) {
|
|
40
45
|
// if entities are created e.g. through lifecycle methods
|
|
@@ -13,7 +13,7 @@ const DividerFull = styled(Divider)`
|
|
|
13
13
|
`;
|
|
14
14
|
|
|
15
15
|
const Login = (loginProps) => {
|
|
16
|
-
const ssoEnabled = strapi.features.isEnabled(strapi.features.SSO);
|
|
16
|
+
const ssoEnabled = window.strapi.features.isEnabled(window.strapi.features.SSO);
|
|
17
17
|
const { isLoading, data: providers } = useAuthProviders({ ssoEnabled });
|
|
18
18
|
const { formatMessage } = useIntl();
|
|
19
19
|
|
|
@@ -35,7 +35,7 @@ const SSOProvidersWrapper = styled(Flex)`
|
|
|
35
35
|
const SSOProviderButton = ({ provider }) => {
|
|
36
36
|
return (
|
|
37
37
|
<Tooltip label={provider.displayName}>
|
|
38
|
-
<SSOButton href={`${strapi.backendURL}/admin/connect/${provider.uid}`}>
|
|
38
|
+
<SSOButton href={`${window.strapi.backendURL}/admin/connect/${provider.uid}`}>
|
|
39
39
|
{provider.icon ? (
|
|
40
40
|
<img src={provider.icon} aria-hidden alt="" height="32px" />
|
|
41
41
|
) : (
|
|
@@ -17,7 +17,7 @@ const DividerFull = styled(Divider)`
|
|
|
17
17
|
`;
|
|
18
18
|
|
|
19
19
|
const Providers = () => {
|
|
20
|
-
const ssoEnabled = strapi.features.isEnabled(strapi.features.SSO);
|
|
20
|
+
const ssoEnabled = window.strapi.features.isEnabled(window.strapi.features.SSO);
|
|
21
21
|
|
|
22
22
|
const { push } = useHistory();
|
|
23
23
|
const { formatMessage } = useIntl();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import baseModel from '../../../../../../../../../admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/utils/formDataModel';
|
|
2
2
|
|
|
3
|
-
const ssoInputsModel = strapi.features.isEnabled(strapi.features.SSO)
|
|
3
|
+
const ssoInputsModel = window.strapi.features.isEnabled(window.strapi.features.SSO)
|
|
4
4
|
? {
|
|
5
5
|
useSSORegistration: true,
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/admin",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.6",
|
|
4
4
|
"description": "Strapi Admin",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -48,18 +48,18 @@
|
|
|
48
48
|
"@casl/ability": "^5.4.3",
|
|
49
49
|
"@fingerprintjs/fingerprintjs": "3.4.1",
|
|
50
50
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
|
|
51
|
-
"@strapi/babel-plugin-switch-ee-ce": "4.10.
|
|
52
|
-
"@strapi/data-transfer": "4.10.
|
|
53
|
-
"@strapi/design-system": "1.7.
|
|
54
|
-
"@strapi/helper-plugin": "4.10.
|
|
55
|
-
"@strapi/icons": "1.7.
|
|
56
|
-
"@strapi/permissions": "4.10.
|
|
57
|
-
"@strapi/provider-audit-logs-local": "4.10.
|
|
58
|
-
"@strapi/typescript-utils": "4.10.
|
|
59
|
-
"@strapi/utils": "4.10.
|
|
51
|
+
"@strapi/babel-plugin-switch-ee-ce": "4.10.6",
|
|
52
|
+
"@strapi/data-transfer": "4.10.6",
|
|
53
|
+
"@strapi/design-system": "1.7.7",
|
|
54
|
+
"@strapi/helper-plugin": "4.10.6",
|
|
55
|
+
"@strapi/icons": "1.7.7",
|
|
56
|
+
"@strapi/permissions": "4.10.6",
|
|
57
|
+
"@strapi/provider-audit-logs-local": "4.10.6",
|
|
58
|
+
"@strapi/typescript-utils": "4.10.6",
|
|
59
|
+
"@strapi/utils": "4.10.6",
|
|
60
60
|
"axios": "1.3.4",
|
|
61
61
|
"babel-loader": "^9.1.2",
|
|
62
|
-
"babel-plugin-styled-components": "2.
|
|
62
|
+
"babel-plugin-styled-components": "2.1.1",
|
|
63
63
|
"bcryptjs": "2.4.3",
|
|
64
64
|
"browserslist": "^4.17.3",
|
|
65
65
|
"browserslist-to-esbuild": "1.2.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"codemirror5": "npm:codemirror@^5.65.11",
|
|
69
69
|
"cross-env": "^7.0.3",
|
|
70
70
|
"css-loader": "^6.7.3",
|
|
71
|
-
"date-fns": "2.
|
|
71
|
+
"date-fns": "2.30.0",
|
|
72
72
|
"dotenv": "8.5.1",
|
|
73
73
|
"esbuild-loader": "^2.21.0",
|
|
74
74
|
"execa": "^1.0.0",
|
|
@@ -115,7 +115,6 @@
|
|
|
115
115
|
"react-dnd-html5-backend": "15.1.3",
|
|
116
116
|
"react-dom": "^17.0.2",
|
|
117
117
|
"react-error-boundary": "3.1.4",
|
|
118
|
-
"react-fast-compare": "^3.2.0",
|
|
119
118
|
"react-helmet": "^6.1.0",
|
|
120
119
|
"react-intl": "6.4.1",
|
|
121
120
|
"react-is": "^17.0.2",
|
|
@@ -148,7 +147,6 @@
|
|
|
148
147
|
"duplicate-dependencies-webpack-plugin": "^1.0.2",
|
|
149
148
|
"glob": "8.0.3",
|
|
150
149
|
"msw": "1.2.1",
|
|
151
|
-
"react-test-renderer": "^17.0.2",
|
|
152
150
|
"speed-measure-webpack-plugin": "1.5.0",
|
|
153
151
|
"webpack-bundle-analyzer": "^4.8.0"
|
|
154
152
|
},
|
|
@@ -168,5 +166,5 @@
|
|
|
168
166
|
}
|
|
169
167
|
}
|
|
170
168
|
},
|
|
171
|
-
"gitHead": "
|
|
169
|
+
"gitHead": "7dbae9d05d765b85927e1ccff282ac9d82d0a9eb"
|
|
172
170
|
}
|
package/webpack.alias.js
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import axios from 'axios';
|
|
2
|
-
import qs from 'qs';
|
|
3
|
-
|
|
4
|
-
const MARKETPLACE_API_URL = 'https://market-api.strapi.io';
|
|
5
|
-
|
|
6
|
-
const fetchMarketplacePlugins = async (params = {}) => {
|
|
7
|
-
const { data } = await axios.get(`${MARKETPLACE_API_URL}/plugins`, {
|
|
8
|
-
params,
|
|
9
|
-
paramsSerializer: {
|
|
10
|
-
encode: qs.parse,
|
|
11
|
-
serialize: qs.stringify,
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
return data;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { fetchMarketplacePlugins };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import axios from 'axios';
|
|
2
|
-
import qs from 'qs';
|
|
3
|
-
|
|
4
|
-
const MARKETPLACE_API_URL = 'https://market-api.strapi.io';
|
|
5
|
-
|
|
6
|
-
const fetchMarketplaceProviders = async (params = {}) => {
|
|
7
|
-
const { data } = await axios.get(`${MARKETPLACE_API_URL}/providers`, {
|
|
8
|
-
params,
|
|
9
|
-
paramsSerializer: {
|
|
10
|
-
encode: qs.parse,
|
|
11
|
-
serialize: qs.stringify,
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
return data;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { fetchMarketplaceProviders };
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import produce from 'immer';
|
|
2
|
-
import set from 'lodash/set';
|
|
3
|
-
|
|
4
|
-
const initialState = {
|
|
5
|
-
webhooks: [],
|
|
6
|
-
webhooksToDelete: [],
|
|
7
|
-
webhookToDelete: null,
|
|
8
|
-
loadingWebhooks: true,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const reducer = (state, action) =>
|
|
12
|
-
// eslint-disable-next-line consistent-return
|
|
13
|
-
produce(state, (draftState) => {
|
|
14
|
-
switch (action.type) {
|
|
15
|
-
case 'GET_DATA_SUCCEEDED': {
|
|
16
|
-
draftState.webhooks = action.data;
|
|
17
|
-
draftState.loadingWebhooks = false;
|
|
18
|
-
break;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
case 'TOGGLE_LOADING': {
|
|
22
|
-
draftState.loadingWebhooks = !state.loadingWebhooks;
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
case 'SET_WEBHOOK_ENABLED': {
|
|
27
|
-
set(draftState, ['webhooks', ...action.keys], action.value);
|
|
28
|
-
break;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
case 'SET_WEBHOOK_TO_DELETE': {
|
|
32
|
-
draftState.webhookToDelete = action.id;
|
|
33
|
-
break;
|
|
34
|
-
}
|
|
35
|
-
case 'SET_WEBHOOKS_TO_DELETE': {
|
|
36
|
-
if (action.value) {
|
|
37
|
-
draftState.webhooksToDelete.push(action.id);
|
|
38
|
-
} else {
|
|
39
|
-
draftState.webhooksToDelete = state.webhooksToDelete.filter((id) => id !== action.id);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
case 'SET_ALL_WEBHOOKS_TO_DELETE': {
|
|
45
|
-
if (state.webhooksToDelete.length === 0) {
|
|
46
|
-
draftState.webhooksToDelete = state.webhooks.map((webhook) => webhook.id);
|
|
47
|
-
} else {
|
|
48
|
-
draftState.webhooksToDelete = [];
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
case 'WEBHOOKS_DELETED': {
|
|
54
|
-
draftState.webhooks = state.webhooks.filter(
|
|
55
|
-
(webhook) => !state.webhooksToDelete.includes(webhook.id)
|
|
56
|
-
);
|
|
57
|
-
draftState.webhooksToDelete = [];
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
case 'WEBHOOK_DELETED': {
|
|
61
|
-
draftState.webhooks = state.webhooks.filter((_, index) => index !== action.index);
|
|
62
|
-
draftState.webhookToDelete = null;
|
|
63
|
-
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
default:
|
|
67
|
-
return draftState;
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
export default reducer;
|
|
72
|
-
export { initialState };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[1387],{49776:function(D,g,s){s.d(g,{j:function(){return l}});var d={};function l(){return d}function h(o){d=o}},46784:function(D,g,s){s.d(g,{Z:function(){return m}});var d=s(907),l=s(96256),h=s(10420),o=s(49776);function m(c,f){var b,T,O,w,_,y,p,W;(0,l.Z)(1,arguments);var U=(0,o.j)(),P=(0,h.Z)((b=(T=(O=(w=f?.weekStartsOn)!==null&&w!==void 0?w:f==null||(_=f.locale)===null||_===void 0||(y=_.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&O!==void 0?O:U.weekStartsOn)!==null&&T!==void 0?T:(p=U.locale)===null||p===void 0||(W=p.options)===null||W===void 0?void 0:W.weekStartsOn)!==null&&b!==void 0?b:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var L=(0,d.Z)(c),X=L.getUTCDay(),V=(X<P?7:0)+X-P;return L.setUTCDate(L.getUTCDate()-V),L.setUTCHours(0,0,0,0),L}},14723:function(D,g,s){s.d(g,{Z:function(){return De}});var d=s(96256);function l(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(e){return typeof e}:l=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(n)}function h(n){return(0,d.Z)(1,arguments),n instanceof Date||l(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}var o=s(907);function m(n){if((0,d.Z)(1,arguments),!h(n)&&typeof n!="number")return!1;var t=(0,o.Z)(n);return!isNaN(Number(t))}var c=s(10420);function f(n,t){(0,d.Z)(2,arguments);var e=(0,o.Z)(n).getTime(),a=(0,c.Z)(t);return new Date(e+a)}function b(n,t){(0,d.Z)(2,arguments);var e=(0,c.Z)(t);return f(n,-e)}var T=864e5;function O(n){(0,d.Z)(1,arguments);var t=(0,o.Z)(n),e=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var a=t.getTime(),r=e-a;return Math.floor(r/T)+1}function w(n){(0,d.Z)(1,arguments);var t=1,e=(0,o.Z)(n),a=e.getUTCDay(),r=(a<t?7:0)+a-t;return e.setUTCDate(e.getUTCDate()-r),e.setUTCHours(0,0,0,0),e}function _(n){(0,d.Z)(1,arguments);var t=(0,o.Z)(n),e=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(e+1,0,4),a.setUTCHours(0,0,0,0);var r=w(a),i=new Date(0);i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0);var u=w(i);return t.getTime()>=r.getTime()?e+1:t.getTime()>=u.getTime()?e:e-1}function y(n){(0,d.Z)(1,arguments);var t=_(n),e=new Date(0);e.setUTCFullYear(t,0,4),e.setUTCHours(0,0,0,0);var a=w(e);return a}var p=6048e5;function W(n){(0,d.Z)(1,arguments);var t=(0,o.Z)(n),e=w(t).getTime()-y(t).getTime();return Math.round(e/p)+1}var U=s(46784),P=s(49776);function L(n,t){var e,a,r,i,u,C,x,k;(0,d.Z)(1,arguments);var S=(0,o.Z)(n),E=S.getUTCFullYear(),N=(0,P.j)(),Z=(0,c.Z)((e=(a=(r=(i=t?.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(u=t.locale)===null||u===void 0||(C=u.options)===null||C===void 0?void 0:C.firstWeekContainsDate)!==null&&r!==void 0?r:N.firstWeekContainsDate)!==null&&a!==void 0?a:(x=N.locale)===null||x===void 0||(k=x.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&e!==void 0?e:1);if(!(Z>=1&&Z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=new Date(0);Y.setUTCFullYear(E+1,0,Z),Y.setUTCHours(0,0,0,0);var A=(0,U.Z)(Y,t),H=new Date(0);H.setUTCFullYear(E,0,Z),H.setUTCHours(0,0,0,0);var B=(0,U.Z)(H,t);return S.getTime()>=A.getTime()?E+1:S.getTime()>=B.getTime()?E:E-1}function X(n,t){var e,a,r,i,u,C,x,k;(0,d.Z)(1,arguments);var S=(0,P.j)(),E=(0,c.Z)((e=(a=(r=(i=t?.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(u=t.locale)===null||u===void 0||(C=u.options)===null||C===void 0?void 0:C.firstWeekContainsDate)!==null&&r!==void 0?r:S.firstWeekContainsDate)!==null&&a!==void 0?a:(x=S.locale)===null||x===void 0||(k=x.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&e!==void 0?e:1),N=L(n,t),Z=new Date(0);Z.setUTCFullYear(N,0,E),Z.setUTCHours(0,0,0,0);var Y=(0,U.Z)(Z,t);return Y}var V=6048e5;function ue(n,t){(0,d.Z)(1,arguments);var e=(0,o.Z)(n),a=(0,U.Z)(e,t).getTime()-X(e,t).getTime();return Math.round(a/V)+1}var v=s(24319),de={y:function(t,e){var a=t.getUTCFullYear(),r=a>0?a:1-a;return(0,v.Z)(e==="yy"?r%100:r,e.length)},M:function(t,e){var a=t.getUTCMonth();return e==="M"?String(a+1):(0,v.Z)(a+1,2)},d:function(t,e){return(0,v.Z)(t.getUTCDate(),e.length)},a:function(t,e){var a=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(t,e){return(0,v.Z)(t.getUTCHours()%12||12,e.length)},H:function(t,e){return(0,v.Z)(t.getUTCHours(),e.length)},m:function(t,e){return(0,v.Z)(t.getUTCMinutes(),e.length)},s:function(t,e){return(0,v.Z)(t.getUTCSeconds(),e.length)},S:function(t,e){var a=e.length,r=t.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,a-3));return(0,v.Z)(i,e.length)}},F=de,I={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},se={G:function(t,e,a){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return a.era(r,{width:"abbreviated"});case"GGGGG":return a.era(r,{width:"narrow"});case"GGGG":default:return a.era(r,{width:"wide"})}},y:function(t,e,a){if(e==="yo"){var r=t.getUTCFullYear(),i=r>0?r:1-r;return a.ordinalNumber(i,{unit:"year"})}return F.y(t,e)},Y:function(t,e,a,r){var i=L(t,r),u=i>0?i:1-i;if(e==="YY"){var C=u%100;return(0,v.Z)(C,2)}return e==="Yo"?a.ordinalNumber(u,{unit:"year"}):(0,v.Z)(u,e.length)},R:function(t,e){var a=_(t);return(0,v.Z)(a,e.length)},u:function(t,e){var a=t.getUTCFullYear();return(0,v.Z)(a,e.length)},Q:function(t,e,a){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return(0,v.Z)(r,2);case"Qo":return a.ordinalNumber(r,{unit:"quarter"});case"QQQ":return a.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,a){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return(0,v.Z)(r,2);case"qo":return a.ordinalNumber(r,{unit:"quarter"});case"qqq":return a.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,a){var r=t.getUTCMonth();switch(e){case"M":case"MM":return F.M(t,e);case"Mo":return a.ordinalNumber(r+1,{unit:"month"});case"MMM":return a.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,a){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return(0,v.Z)(r+1,2);case"Lo":return a.ordinalNumber(r+1,{unit:"month"});case"LLL":return a.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,a,r){var i=ue(t,r);return e==="wo"?a.ordinalNumber(i,{unit:"week"}):(0,v.Z)(i,e.length)},I:function(t,e,a){var r=W(t);return e==="Io"?a.ordinalNumber(r,{unit:"week"}):(0,v.Z)(r,e.length)},d:function(t,e,a){return e==="do"?a.ordinalNumber(t.getUTCDate(),{unit:"date"}):F.d(t,e)},D:function(t,e,a){var r=O(t);return e==="Do"?a.ordinalNumber(r,{unit:"dayOfYear"}):(0,v.Z)(r,e.length)},E:function(t,e,a){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return a.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(r,{width:"short",context:"formatting"});case"EEEE":default:return a.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,a,r){var i=t.getUTCDay(),u=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(u);case"ee":return(0,v.Z)(u,2);case"eo":return a.ordinalNumber(u,{unit:"day"});case"eee":return a.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,a,r){var i=t.getUTCDay(),u=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(u);case"cc":return(0,v.Z)(u,e.length);case"co":return a.ordinalNumber(u,{unit:"day"});case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,a){var r=t.getUTCDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return(0,v.Z)(i,e.length);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return a.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(r,{width:"short",context:"formatting"});case"iiii":default:return a.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,a){var r=t.getUTCHours(),i=r/12>=1?"pm":"am";switch(e){case"a":case"aa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,a){var r=t.getUTCHours(),i;switch(r===12?i=I.noon:r===0?i=I.midnight:i=r/12>=1?"pm":"am",e){case"b":case"bb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,a){var r=t.getUTCHours(),i;switch(r>=17?i=I.evening:r>=12?i=I.afternoon:r>=4?i=I.morning:i=I.night,e){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,a){if(e==="ho"){var r=t.getUTCHours()%12;return r===0&&(r=12),a.ordinalNumber(r,{unit:"hour"})}return F.h(t,e)},H:function(t,e,a){return e==="Ho"?a.ordinalNumber(t.getUTCHours(),{unit:"hour"}):F.H(t,e)},K:function(t,e,a){var r=t.getUTCHours()%12;return e==="Ko"?a.ordinalNumber(r,{unit:"hour"}):(0,v.Z)(r,e.length)},k:function(t,e,a){var r=t.getUTCHours();return r===0&&(r=24),e==="ko"?a.ordinalNumber(r,{unit:"hour"}):(0,v.Z)(r,e.length)},m:function(t,e,a){return e==="mo"?a.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):F.m(t,e)},s:function(t,e,a){return e==="so"?a.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):F.s(t,e)},S:function(t,e){return F.S(t,e)},X:function(t,e,a,r){var i=r._originalDate||t,u=i.getTimezoneOffset();if(u===0)return"Z";switch(e){case"X":return re(u);case"XXXX":case"XX":return $(u);case"XXXXX":case"XXX":default:return $(u,":")}},x:function(t,e,a,r){var i=r._originalDate||t,u=i.getTimezoneOffset();switch(e){case"x":return re(u);case"xxxx":case"xx":return $(u);case"xxxxx":case"xxx":default:return $(u,":")}},O:function(t,e,a,r){var i=r._originalDate||t,u=i.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+ae(u,":");case"OOOO":default:return"GMT"+$(u,":")}},z:function(t,e,a,r){var i=r._originalDate||t,u=i.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+ae(u,":");case"zzzz":default:return"GMT"+$(u,":")}},t:function(t,e,a,r){var i=r._originalDate||t,u=Math.floor(i.getTime()/1e3);return(0,v.Z)(u,e.length)},T:function(t,e,a,r){var i=r._originalDate||t,u=i.getTime();return(0,v.Z)(u,e.length)}};function ae(n,t){var e=n>0?"-":"+",a=Math.abs(n),r=Math.floor(a/60),i=a%60;if(i===0)return e+String(r);var u=t||"";return e+String(r)+u+(0,v.Z)(i,2)}function re(n,t){if(n%60===0){var e=n>0?"-":"+";return e+(0,v.Z)(Math.abs(n)/60,2)}return $(n,t)}function $(n,t){var e=t||"",a=n>0?"-":"+",r=Math.abs(n),i=(0,v.Z)(Math.floor(r/60),2),u=(0,v.Z)(r%60,2);return a+i+e+u}var le=se,ne=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},ie=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},ce=function(t,e){var a=t.match(/(P+)(p+)?/)||[],r=a[1],i=a[2];if(!i)return ne(t,e);var u;switch(r){case"P":u=e.dateTime({width:"short"});break;case"PP":u=e.dateTime({width:"medium"});break;case"PPP":u=e.dateTime({width:"long"});break;case"PPPP":default:u=e.dateTime({width:"full"});break}return u.replace("{{date}}",ne(r,e)).replace("{{time}}",ie(i,e))},fe={p:ie,P:ce},me=fe,ve=s(22774),he=["D","DD"],ge=["YY","YYYY"];function we(n){return he.indexOf(n)!==-1}function be(n){return ge.indexOf(n)!==-1}function oe(n,t,e){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var ye=s(54828),Te=ye.Z,Oe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pe=/^'([^]*?)'?$/,Ce=/''/g,Me=/[a-zA-Z]/;function De(n,t,e){var a,r,i,u,C,x,k,S,E,N,Z,Y,A,H,B,K,J,z;(0,d.Z)(2,arguments);var Ze=String(t),j=(0,P.j)(),Q=(a=(r=e?.locale)!==null&&r!==void 0?r:j.locale)!==null&&a!==void 0?a:Te,ee=(0,c.Z)((i=(u=(C=(x=e?.firstWeekContainsDate)!==null&&x!==void 0?x:e==null||(k=e.locale)===null||k===void 0||(S=k.options)===null||S===void 0?void 0:S.firstWeekContainsDate)!==null&&C!==void 0?C:j.firstWeekContainsDate)!==null&&u!==void 0?u:(E=j.locale)===null||E===void 0||(N=E.options)===null||N===void 0?void 0:N.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(ee>=1&&ee<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var te=(0,c.Z)((Z=(Y=(A=(H=e?.weekStartsOn)!==null&&H!==void 0?H:e==null||(B=e.locale)===null||B===void 0||(K=B.options)===null||K===void 0?void 0:K.weekStartsOn)!==null&&A!==void 0?A:j.weekStartsOn)!==null&&Y!==void 0?Y:(J=j.locale)===null||J===void 0||(z=J.options)===null||z===void 0?void 0:z.weekStartsOn)!==null&&Z!==void 0?Z:0);if(!(te>=0&&te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Q.localize)throw new RangeError("locale must contain localize property");if(!Q.formatLong)throw new RangeError("locale must contain formatLong property");var q=(0,o.Z)(n);if(!m(q))throw new RangeError("Invalid time value");var We=(0,ve.Z)(q),xe=b(q,We),ke={firstWeekContainsDate:ee,weekStartsOn:te,locale:Q,_originalDate:q},Ee=Ze.match(_e).map(function(M){var R=M[0];if(R==="p"||R==="P"){var G=me[R];return G(M,Q.formatLong)}return M}).join("").match(Oe).map(function(M){if(M==="''")return"'";var R=M[0];if(R==="'")return Pe(M);var G=le[R];if(G)return!(e!=null&&e.useAdditionalWeekYearTokens)&&be(M)&&oe(M,t,String(n)),!(e!=null&&e.useAdditionalDayOfYearTokens)&&we(M)&&oe(M,t,String(n)),G(xe,M,Q.localize,ke);if(R.match(Me))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return M}).join("");return Ee}function Pe(n){var t=n.match(pe);return t?t[1].replace(Ce,"'"):n}},39446:function(D,g,s){s.d(g,{Z:function(){return d}});function d(l){return function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=h.width?String(h.width):l.defaultWidth,m=l.formats[o]||l.formats[l.defaultWidth];return m}}},56565:function(D,g,s){s.d(g,{Z:function(){return d}});function d(l){return function(h,o){var m=o!=null&&o.context?String(o.context):"standalone",c;if(m==="formatting"&&l.formattingValues){var f=l.defaultFormattingWidth||l.defaultWidth,b=o!=null&&o.width?String(o.width):f;c=l.formattingValues[b]||l.formattingValues[f]}else{var T=l.defaultWidth,O=o!=null&&o.width?String(o.width):l.defaultWidth;c=l.values[O]||l.values[T]}var w=l.argumentCallback?l.argumentCallback(h):h;return c[w]}}},29450:function(D,g,s){s.d(g,{Z:function(){return d}});function d(o){return function(m){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=c.width,b=f&&o.matchPatterns[f]||o.matchPatterns[o.defaultMatchWidth],T=m.match(b);if(!T)return null;var O=T[0],w=f&&o.parsePatterns[f]||o.parsePatterns[o.defaultParseWidth],_=Array.isArray(w)?h(w,function(W){return W.test(O)}):l(w,function(W){return W.test(O)}),y;y=o.valueCallback?o.valueCallback(_):_,y=c.valueCallback?c.valueCallback(y):y;var p=m.slice(O.length);return{value:y,rest:p}}}function l(o,m){for(var c in o)if(o.hasOwnProperty(c)&&m(o[c]))return c}function h(o,m){for(var c=0;c<o.length;c++)if(m(o[c]))return c}},60965:function(D,g,s){s.d(g,{Z:function(){return d}});function d(l){return function(h){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=h.match(l.matchPattern);if(!m)return null;var c=m[0],f=h.match(l.parsePattern);if(!f)return null;var b=l.valueCallback?l.valueCallback(f[0]):f[0];b=o.valueCallback?o.valueCallback(b):b;var T=h.slice(c.length);return{value:b,rest:T}}}},10661:function(D,g){var s={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},d=function(h,o,m){var c,f=s[h];return typeof f=="string"?c=f:o===1?c=f.one:c=f.other.replace("{{count}}",o.toString()),m!=null&&m.addSuffix?m.comparison&&m.comparison>0?"in "+c:c+" ago":c};g.Z=d},57459:function(D,g){var s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},d=function(h,o,m,c){return s[h]};g.Z=d},52855:function(D,g,s){var d=s(56565),l={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},h={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},m={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},f={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},b=function(w,_){var y=Number(w),p=y%100;if(p>20||p<10)switch(p%10){case 1:return y+"st";case 2:return y+"nd";case 3:return y+"rd"}return y+"th"},T={ordinalNumber:b,era:(0,d.Z)({values:l,defaultWidth:"wide"}),quarter:(0,d.Z)({values:h,defaultWidth:"wide",argumentCallback:function(w){return w-1}}),month:(0,d.Z)({values:o,defaultWidth:"wide"}),day:(0,d.Z)({values:m,defaultWidth:"wide"}),dayPeriod:(0,d.Z)({values:c,defaultWidth:"wide",formattingValues:f,defaultFormattingWidth:"wide"})};g.Z=T},63614:function(D,g,s){var d=s(29450),l=s(60965),h=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,m={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},c={any:[/^b/i,/^(a|c)/i]},f={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},b={any:[/1/i,/2/i,/3/i,/4/i]},T={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},O={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},w={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},_={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},y={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},p={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},W={ordinalNumber:(0,l.Z)({matchPattern:h,parsePattern:o,valueCallback:function(P){return parseInt(P,10)}}),era:(0,d.Z)({matchPatterns:m,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any"}),quarter:(0,d.Z)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:b,defaultParseWidth:"any",valueCallback:function(P){return P+1}}),month:(0,d.Z)({matchPatterns:T,defaultMatchWidth:"wide",parsePatterns:O,defaultParseWidth:"any"}),day:(0,d.Z)({matchPatterns:w,defaultMatchWidth:"wide",parsePatterns:_,defaultParseWidth:"any"}),dayPeriod:(0,d.Z)({matchPatterns:y,defaultMatchWidth:"any",parsePatterns:p,defaultParseWidth:"any"})};g.Z=W},54828:function(D,g,s){s.d(g,{Z:function(){return _}});var d=s(10661),l=s(39446),h={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},o={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},m={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},c={date:(0,l.Z)({formats:h,defaultWidth:"full"}),time:(0,l.Z)({formats:o,defaultWidth:"full"}),dateTime:(0,l.Z)({formats:m,defaultWidth:"full"})},f=c,b=s(57459),T=s(52855),O=s(63614),w={code:"en-US",formatDistance:d.Z,formatLong:f,formatRelative:b.Z,localize:T.Z,match:O.Z,options:{weekStartsOn:0,firstWeekContainsDate:1}},_=w},29439:function(D,g,s){s.d(g,{Z:function(){return h}});var d=s(74512);const l=o=>(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...o,children:(0,d.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"})}),h=l}}]);
|