tocco-admin 1.0.78 → 1.0.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/changelog.md +12 -0
  2. package/dist/{chunk-874.5a69f46a3e119f9874e5.js → chunk-126.352fe452b70323c78f1a.js} +6 -6
  3. package/dist/chunk-499.04764602ece579858762.js +14 -0
  4. package/dist/chunk-531.3983ec9b92852f4ec744.js +1 -0
  5. package/dist/chunk-543.978b6226d6bd58af820c.js +45 -0
  6. package/dist/chunk-568.888e5be08a98676042a3.js +6 -0
  7. package/dist/chunk-569.f4bff11e156a38fa296f.js +1 -0
  8. package/dist/{chunk-587.b86661a08b0ac7c75d75.js → chunk-587.8013c5734e711a09a8a7.js} +1 -1
  9. package/dist/chunk-594.126cb5a9b225cf085569.js +1 -0
  10. package/dist/chunk-611.a41cc743af6f875068f3.js +7 -0
  11. package/dist/{chunk-701.1058ad58075f9237c3ec.js → chunk-701.b24a66b560d9bdd12d43.js} +2 -2
  12. package/dist/chunk-actions.6f400188869b2b6ad179.js +1 -0
  13. package/dist/chunk-ckeditor.8fa3787513f4ae802634.js +1806 -0
  14. package/dist/chunk-code-editor.295d8da0e057bc5794bc.js +1 -0
  15. package/dist/chunk-html-editor.f17d3e3f825c0f75aebd.js +1 -0
  16. package/dist/chunk-phone-formatter.81f1de961db9e9f59997.js +1 -0
  17. package/dist/chunk-vendor-icons.984daa8a90efe7d3b264.js +1 -0
  18. package/dist/index.js +8 -8
  19. package/package.json +1 -1
  20. package/dist/chunk-38.be0613f3d0bcadaeb971.js +0 -1
  21. package/dist/chunk-531.77fd28003c96ba54c28e.js +0 -1
  22. package/dist/chunk-551.d29f8ce5e73be2dcb324.js +0 -14
  23. package/dist/chunk-568.987cfa799c8172cb46f5.js +0 -6
  24. package/dist/chunk-611.35d853af590ca0ea7cfa.js +0 -7
  25. package/dist/chunk-661.97bf4f5f8de37ceaa0c5.js +0 -1
  26. package/dist/chunk-847.3e50d34f3b3da410955b.js +0 -1
  27. package/dist/chunk-actions.f1c2f71022dd94f6c514.js +0 -1
  28. package/dist/chunk-code-editor.601fdf987a397a9e67c8.js +0 -1
  29. package/dist/chunk-phone-formatter.853b560090cfdc789496.js +0 -1
  30. package/dist/chunk-vendor-icons.70fe46cf4f14b99849c5.js +0 -1
  31. package/dist/chunk-vendor-quill.4478c72cf0f4bf2746be.js +0 -21
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[85],{57387:(e,t,n)=>{n.r(t),n.d(t,{default:()=>x});var r=n(27361),o=n.n(r),a=n(74806),i=n(50558),c=n(29785),s=n(59713),l=n.n(s),u=(n(9230),n(17563)),p=n(12587),d=n(6699),f=n(90169),m=n(85893);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g=function(e){var t=e.entityName,n=e.entityKeys,r=e.children,o=n.map((function(e){return{entityName:t,key:e}}));return(0,m.jsx)(d.Z,{to:"/docs?rootNodes=".concat(JSON.stringify(o)),target:"_blank",children:r})};const v=function(e){var t=u.parse(e.history.location.search);return(0,m.jsx)(p.default,y(y(y({},e),{},{routerType:"inherit",navigationStrategy:{ListLink:g,DetailLink:f.z2}},t.rootNodes&&{rootNodes:JSON.parse(t.rootNodes)}),{},{searchFormCollapsed:e.searchFormCollapsed,onSearchFormCollapsedChange:function(t){var n=t.collapsed;e.saveUserPreferences({"admin.list.searchFormCollapsed":n})},scrollBehaviour:"inline"}))};var b={saveUserPreferences:c.RK};const x={container:(0,i.connect)((function(e,t){return{searchFormCollapsed:o()(e.preferences.userPreferences,"admin.list.searchFormCollapsed",null)}}),b)((0,a.ZP)(v))}},23847:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Fn});var r=n(15857),o=n(74806),a=n(50558),i="path/SET_CURRENT_VIEW_INFO",c="path/LOAD_CURRENT_ROUTE",s="path/SET_BREADCRUMBS_INFO",l="path/UPDATE_BREADCRUMBS_INFO",u="path/SET_RELATIONS",p="path/SET_CURRENT_VIEW_TITLE",d="path/SET_RELATIONS_INFO",f="path/PROPAGATE_REFRESH",m="path/INVALIDATE_LAST_BREADCRUMB",h="path/SELECT_RELATION",y=function(e,t){return{type:i,payload:{location:e,currentViewInfo:t}}},g=function(e,t){return{type:l,payload:{path:e,breadcrumbsInfo:t}}},v=function(e){return{type:u,payload:{relations:e}}},b=function(e){return{type:d,payload:{relationsInfo:e}}},x=function(e){return{type:h,payload:{selectedRelation:e}}},w=(n(9230),n(1024)),k=n.n(w),j=n(80467),Z=n(19743),P=n(98235),O=n(27361),_=n.n(O),N=n(75354),R=n(70696),C=n(87467),E=n(90169),D=n(60598),S={"widget-code-copy":(0,w.lazy)((function(){return Promise.all([n.e(126),n.e(802),n.e(107)]).then(n.bind(n,99294))})),"user-qr-action":(0,w.lazy)((function(){return Promise.all([n.e(126),n.e(802),n.e(107)]).then(n.bind(n,83754))})),"input-edit":(0,w.lazy)((function(){return Promise.all([n.e(126),n.e(802),n.e(107)]).then(n.bind(n,83712))})),resourcescheduler:(0,w.lazy)((function(){return Promise.all([n.e(126),n.e(802),n.e(107)]).then(n.bind(n,773))})),"show-output-jobs-action":(0,w.lazy)((function(){return Promise.all([n.e(126),n.e(802),n.e(107)]).then(n.bind(n,79191))})),delete:(0,w.lazy)((function(){return Promise.all([n.e(126),n.e(802),n.e(107)]).then(n.bind(n,74259))})),merge:(0,w.lazy)((function(){return Promise.all([n.e(126),n.e(802),n.e(107)]).then(n.bind(n,55393))})),copy:(0,w.lazy)((function(){return Promise.all([n.e(126),n.e(802),n.e(107)]).then(n.bind(n,20995))})),"entity-report":(0,w.lazy)((function(){return Promise.all([n.e(126),n.e(802),n.e(107)]).then(n.bind(n,85904))})),documents:(0,w.lazy)((function(){return Promise.all([n.e(126),n.e(802),n.e(107)]).then(n.bind(n,62902))})),"password-update":(0,w.lazy)((function(){return Promise.all([n.e(126),n.e(802),n.e(107)]).then(n.bind(n,58538))})),"widget-config-edit":(0,w.lazy)((function(){return Promise.all([n.e(126),n.e(802),n.e(107)]).then(n.bind(n,24818))})),"connect-principal":(0,w.lazy)((function(){return Promise.all([n.e(126),n.e(802),n.e(107)]).then(n.bind(n,95751))})),export:(0,w.lazy)((function(){return Promise.all([n.e(126),n.e(802),n.e(107)]).then(n.bind(n,17715))}))};const I=D.Z.actionFactory(S);var T=n(85893),V=function(e){var t=e.history,n=e.match,r=e.setCurrentViewTitle,o=e.currentViewInfo,a=e.intl,i=t.location;if((0,w.useEffect)((function(){return o&&r(a.formatMessage({id:"client.actions.".concat(o.actionId,".title")})),function(){r(null)}}),[o,r,a]),!o)return null;var c=N.Z.fromQueryString(i.search),s=_()(i,"state.selection",c.actionProperties),l=_()(i,"state.definition.properties",c.actionProperties),u=function(){t.replace((0,C.H)(n.url,2))};return(0,T.jsx)(I,{history:t,match:n,appId:o.actionId,selection:s,actionProperties:l,navigationStrategy:(0,E.ZP)(t,n),onSuccess:u,onError:u,onCancel:u})},L=function(e,t){return 0===Object.keys(R.Z.difference(e,t)).length};const A=k().memo(V,L);var F={setCurrentViewTitle:function(e){return{type:p,payload:{currentViewTitle:e}}}};const M=(0,a.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname]}}),F)((0,o.ZP)(A));var B,z=n(50600),$=n(91073),U=n(319),q=n.n(U),W=n(63038),H=n.n(W),K=n(28655),G=n.n(K),Y=n(58804),J=n(32540),X=n(88601),Q=n(7281),ee=Y.ZP.div.withConfig({displayName:"StyledEntityDetailAppWrapper"})(B||(B=G()(["\n margin: 0;\n background-color: ",";\n padding: 0 0 0 ",";\n overflow: hidden;\n height: 100%;\n"])),X.Z.color("paper"),Q.Z.space(0));const te=function(e){var t=e.currentViewInfo,n=e.history,r=e.match,o=e.intl,a=e.chooseDocument,i=e.dispatchEmittedAction,c=n.location,s=_()(c,"state.defaultValues",[]),l=(0,w.useState)(!1),u=H()(l,2),p=u[0],d=u[1];if(!t)return null;var f,m=t.model,h=t.reverseRelation,y=t.parentKey,g=m.name,v=_()(m,"paths.".concat(h,".multi"),!1),b=[].concat(q()(h&&y?[{id:h,value:v?[y]:y}]:[]),q()(s));return(0,T.jsxs)(ee,{children:[(0,T.jsx)(j.NL,{when:p,message:(f="client.entity-browser.detail.confirmTouchedFormLeave",o.formatMessage({id:f}))}),(0,T.jsx)(J.ZP,{entityName:g,formName:g,mode:"create",defaultValues:b,emitAction:function(e){i(e)},navigationStrategy:(0,E.ZP)(n,r),chooseDocument:a,onEntityCreated:function(e){var t=e.id;d(!1),n.push(r.url.replace(/create$/,t))},onTouchedChange:function(e){var t=e.touched;return d(t)}})]})};var ne={chooseDocument:$.Z.actions.chooseDocument,dispatchEmittedAction:z.Z.dispatchEmittedAction};const re=(0,a.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname]}}),ne)((0,o.ZP)(te));var oe=n(29785),ae=n(59713),ie=n.n(ae),ce=n(17563),se=n(79217),le=n(29441),ue=n(48926),pe=n.n(ue),de=n(87757),fe=n.n(de),me=n(63094),he=n(12587);function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){ie()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ve=function(e){var t=e.entityName,n=e.entityKey,r=e.showActions,o=e.noLeftPadding,a=e.openResource,i=e.initialLocation,c=e.sortable,s=(0,w.useState)(null),l=H()(s,2),u=l[0],p=l[1],d=(0,w.useCallback)(pe()(fe().mark((function e(){return fe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:me.Z.simpleRequest("entities/2.0/"+t+"/"+n+"/entitydocs/folder").then((function(e){p(e.body.key)}));case 1:case"end":return e.stop()}}),e)}))),[t,n]);return(0,w.useEffect)((function(){d()}),[d]),u&&(0,T.jsx)(he.default,ge(ge(ge({routerType:"routerless",initialLocation:i,noLeftPadding:o,sortable:c,searchFormType:"none",rootNodes:[{key:u,entityName:"Folder"}],embedded:!0,showActions:r},!1===r?{selectionStyle:"none"}:{}),{},{disableViewPersistor:!0},a?{openResource:a}:{}),{},{scrollBehaviour:"inline"}))};const be=function(e){var t=e.currentViewInfo,n=e.initialLocation;return(0,T.jsx)(ve,{noLeftPadding:!1,entityName:t.parentModel.name,entityKey:t.parentKey,showActions:!0,initialLocation:n})};function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){ie()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ke=function(e){var t=e.match,n=e.history,r=e.currentViewInfo,o=e.emitAction,a=e.searchFormCollapsed,i=e.saveUserPreferences;if(!r)return null;var c=ce.parse(n.location.search),s=n.location.hash?n.location.hash.substring(1):null;return"Resource"===r.model.name?(0,T.jsx)(be,{currentViewInfo:r,initialLocation:s}):(0,T.jsx)(se.ZP,we(we({emitAction:o,limit:25,id:"".concat(r.model.name,"_list"),entityName:r.model.name,formName:c.formName||r.model.name,onRowClick:function(e){var r=e.id;n.push(t.url.replace(/list$/,"")+r)}},r.reverseRelation&&{parent:{key:r.parentKey,reverseRelationName:r.reverseRelation,model:r.parentModel.name}}),{},{showLink:!0,navigationStrategy:(0,E.ZP)(n,t),searchFormPosition:"left",searchFormType:"admin",scrollBehaviour:"inline",store:le.Z.viewInfoSelector(n.location.pathname).store,onStoreCreate:function(e){le.Z.persistViewInfo(n.location.pathname,{store:e},r.level)},actionAppComponent:I,tql:c.tql,searchFormCollapsed:a,onSearchFormCollapsedChange:function(e){var t=e.collapsed;i({"admin.list.searchFormCollapsed":t})}}))};var je={emitAction:function(e){return z.Z.dispatchEmittedAction(e)},saveUserPreferences:oe.RK};const Ze=(0,a.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname],searchFormCollapsed:_()(e.preferences.userPreferences,"admin.list.searchFormCollapsed",!1)}}),je)((0,o.ZP)(ke));var Pe;function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){ie()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ne=Y.ZP.div.withConfig({displayName:"StyledEntityDetailAppWrapper"})(Pe||(Pe=G()(["\n margin: 0;\n background-color: ",";\n padding: 0 0 0 ",";\n overflow: hidden;\n height: 100%;\n"])),X.Z.color("paper"),Q.Z.space(0));const Re=function(e){var t=e.currentViewInfo,n=e.history,r=e.match,o=e.intl,a=e.chooseDocument,i=e.emitAction,c=e.propagateRefresh,s=e.invalidateLastBreadcrumb,l=(0,w.useState)(!1),u=H()(l,2),p=u[0],d=u[1];if(!t||t.pathname!==n.location.pathname)return null;var f=ce.parse(location.search).formName,m=t.model.name;return(0,T.jsxs)(Ne,{children:[(0,T.jsx)(j.NL,{when:p,message:function(e){return n.location.pathname!==e.pathname&&(t="client.entity-browser.detail.confirmTouchedFormLeave",o.formatMessage({id:t}));var t}}),(0,T.jsx)(J.ZP,{entityName:m,entityId:t.key,formName:f||m,mode:"update",emitAction:i,onTouchedChange:function(e){var t=e.touched;d(t)},navigationStrategy:_e(_e({},(0,E.ZP)(n,r)),{},{navigateToCreateRelative:function(e,t){if(e){var o=(0,C.H)(r.url,1);n.push({pathname:"".concat(o,"/").concat(e,"/create"),state:t})}else{var a=(0,C.H)(r.url,2);n.push({pathname:a+"/create",state:t})}}}),chooseDocument:a,onEntityDeleted:function(){var e=(0,C.H)(r.url,2);n.push(e)},onEntityUpdated:function(){var e=n.location;s(e)},onRefresh:function(){var e=n.location;c(e)},actionAppComponent:I,onSubGridRowClick:function(e){var t=e.id,o=e.relationName,a=(0,C.H)(r.url);n.push("".concat(a,"/").concat(o,"/").concat(t))}})]})};var Ce={chooseDocument:$.Z.actions.chooseDocument,emitAction:function(e){return z.Z.dispatchEmittedAction(e)},propagateRefresh:function(e){return{type:f,payload:{location:e}}},invalidateLastBreadcrumb:function(e){return{type:m,payload:{location:e}}}};const Ee=(0,a.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname]}}),Ce)((0,o.ZP)(Re));var De=n(34206),Se=n(88162),Ie={};const Te=function(e){var t=e.currentViewInfo,n=e.history,r=e.selectedRelation,o=e.sortable;return(0,T.jsx)(ve,{entityName:t.model.name,entityKey:t.key,showActions:!1,noLeftPadding:!0,history:n,openResource:function(e){n.push("".concat(r.relationName,"/list#").concat(e))},sortable:o})};var Ve=function(e){var t=e.selectedRelation,n=e.currentViewInfo,r=e.match,o=e.history,a=e.emitAction;return(0,T.jsx)(se.ZP,{id:"preview"+t.reverseRelationName+t.targetEntity,entityName:t.targetEntity,formName:t.targetEntity,parent:{key:n.key,reverseRelationName:t.reverseRelationName,model:n.model.name,relationName:t.relationName},showLink:!0,navigationStrategy:(0,E.ZP)(o,r),onRowClick:function(e){var n=e.id,a=r.url.replace(/detail$/,"");o.push("".concat(a).concat(t.relationName,"/").concat(n))},onNavigateToCreate:function(){var e=(0,C.H)(r.url);o.push(e+"/"+t.relationName+"/create")},searchFormType:"fulltext",selectionStyle:"none",store:le.Z.viewInfoSelector(o.location.pathname)["store-".concat(t.relationName)],onStoreCreate:function(e){le.Z.persistViewInfo(n.pathname,ie()({},"store-".concat(t.relationName),e),n.level)},showActions:!1,limit:15,emitAction:a,scrollBehaviour:"inline"},t.reverseRelationName+t.targetEntity)};const Le=k().memo(Ve);var Ae,Fe,Me,Be,ze,$e,Ue,qe,We,He,Ke,Ge,Ye=n(6699),Je=n(65035),Xe=n(11347),Qe=n(69829),et=Y.ZP.div.withConfig({displayName:"StyledRelationsViewWrapper"})(Ae||(Ae=G()(["\n display: ",";\n height: 100%;\n flex-direction: column;\n"])),(function(e){return e.isCollapsed?"none":"flex"})),tt=Y.ZP.div.withConfig({displayName:"StyledPlaceHolder"})(Fe||(Fe=G()(["\n display: ",";\n flex: 1;\n height: 100%;\n width: 25px;\n background: ",";\n padding-top: ",";\n padding-left: ",";\n align-items: flex-start;\n\n &:hover {\n cursor: pointer;\n }\n"])),(function(e){return e.isCollapsed?"flex":"none"}),X.Z.color("paper"),Q.Z.space(-1.5),Q.Z.space(-2.5)),nt=Y.ZP.div.withConfig({displayName:"StyledToggleCollapse"})(Me||(Me=G()(["\n display: flex;\n background-color: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),X.Z.color("paper"),Q.Z.space(-1.5),Q.Z.space(-1.5)),rt=(0,Y.ZP)(Je.Z).withConfig({displayName:"StyledToggleCollapseButton"})(Be||(Be=G()(["\n font-size: ",";\n padding: 0;\n margin-left: auto;\n\n &:hover,\n ",":hover & {\n background-color: transparent;\n color: ",";\n }\n"])),Q.Z.font(0),tt,X.Z.color("secondaryLight")),ot=Y.ZP.div.withConfig({displayName:"StyledPreviewBox"})(ze||(ze=G()(["\n background-color: ",";\n padding: ",";\n margin-top: 3px;\n display: flex;\n flex-direction: column;\n flex: 1;\n"])),X.Z.color("paper"),Q.Z.space(-1)),at=Y.ZP.div.withConfig({displayName:"StyledRelationBoxes"})($e||($e=G()(["\n background-color: ",";\n padding: ",";\n display: grid;\n grid-template-columns: repeat(auto-fit, 170px);\n grid-gap: ",";\n justify-content: space-between;\n overflow-y: auto;\n align-content: flex-start;\n height: fit-content;\n min-height: 150px;\n max-height: 20%;\n ","\n"])),X.Z.color("paper"),Q.Z.space(-1),Q.Z.space(-2),Xe.C),it=(0,Y.ZP)(Ye.Z).withConfig({displayName:"StyledPreviewLink"})(Ue||(Ue=G()(["\n padding-left: ",";\n\n &:nth-child(2) {\n padding-left: 0;\n }\n"])),Q.Z.space(-.5)),ct=Y.ZP.div.withConfig({displayName:"StyledRelationLinks"})(qe||(qe=G()(["\n display: none;\n margin-left: auto;\n\n * {\n color: ",";\n padding-left: ",";\n }\n"])),X.Z.color("text"),Q.Z.space(-4.5)),st=Y.ZP.div.withConfig({displayName:"StyledRelationBox"})(We||(We=G()(["\n border-radius: ",";\n padding: "," ",";\n display: flex;\n background-color: ",";\n height: fit-content;\n\n &&& {\n * {\n color: ",";\n box-sizing: initial;\n }\n }\n ",";\n\n // allow hover styles only on non-touch devices\n @media (hover: hover) and (pointer: fine) {\n &:hover "," {\n display: flex;\n }\n\n && {\n :hover {\n background-color: ",";\n\n * {\n color: ",";\n }\n cursor: pointer;\n }\n }\n\n ",":hover * {\n color: ",";\n }\n }\n"])),X.Z.radii("large"),Q.Z.space(-2.7),Q.Z.space(-1),(function(e){return e.selected&&X.Z.color("secondary")}),(function(e){return e.selected&&X.Z.color("paper")}),(function(e){return e.selected&&"\n ".concat(ct," {\n display: flex;\n }\n ")}),ct,X.Z.color("secondaryLight"),X.Z.color("paper"),Ye.Z,X.Z.color("secondary")),lt=(0,Y.ZP)(Qe.Fe).withConfig({displayName:"StyledRelationLabel"})(He||(He=G()(["\n && {\n max-width: 110px;\n }\n"])));const ut=function(e){var t,n,r=e.relation,o=e.history,a=e.match,i=e.relationsInfo,c=e.selectRelation,s=e.selectedRelation,l=e.intl,u=e.entityName,p=r.relationName,d=r.targetEntity,f=r.relationDisplay,m=function(e){return l.formatMessage({id:e})};return(0,T.jsxs)(st,{selected:(null==s?void 0:s.relationName)===p,onClick:function(){c(r),o.replace({search:"?relation=".concat(p)}),function(e,t){Ie[e]=t}(u,p)},children:[(0,T.jsx)(lt,{title:f.label,children:f.label}),(null===(n=i[p])||void 0===n?void 0:n.count)>0?(0,T.jsxs)(lt,{children:[" (",i[p].count,")"]}):null,(0,T.jsxs)(ct,{children:[(0,T.jsx)(Ye.Z,{"aria-label":m("client.admin.entities.relationsView.relationLinkView"),to:a.url.replace(/(relations|detail)$/,p),children:Ke||(Ke=(0,T.jsx)(Se.Z,{icon:"arrow-right"}))}),(null===(t=i[p])||void 0===t?void 0:t.createPermission)&&"Resource"!==d&&(0,T.jsx)(Ye.Z,{"aria-label":m("client.admin.entities.relationsView.relationLinkCreate"),to:a.url.replace(/(relations|detail)$/,p)+"/create",children:Ge||(Ge=(0,T.jsx)(Se.Z,{icon:"plus"}))})]})]})};var pt,dt,ft;function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ht=function(e){var t=e.history,n=e.match,r=e.currentViewInfo,o=e.relations,a=e.relationsInfo,i=e.emitAction,c=e.intl,s=e.isCollapsed,l=e.toggleCollapse,u=e.selectedRelation,p=e.selectRelation,d=_()(r,"model.name"),f=(0,w.useCallback)((function(){if((null==o?void 0:o.length)>0){var e=ce.parse(t.location.search).relation;if(e)p(o.find((function(t){return t.relationName===e})));else{var n=Ie[d];p(n?o.find((function(e){return e.relationName===n})):o[0])}}}),[o,d,t.location.search,p]);if((0,w.useEffect)(f,[f]),(0,w.useEffect)((function(){return u?null:f()}),[u,f]),!o||0===o.length||!r)return null;var m,h,y=function(e){return c.formatMessage({id:e})},g=u?"Resource"===u.targetEntity?Te:Le:function(){return pt||(pt=(0,T.jsx)(k().Fragment,{}))},v=o.map((function(t){return(0,T.jsx)(ut,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){ie()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({relation:t,entityName:d},e),"relation-".concat(t.relationName))}));return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(et,{isCollapsed:s,children:[(0,T.jsx)(nt,{children:(0,T.jsx)(rt,{icon:"chevron-right",onClick:l})}),(0,T.jsx)(at,{children:v}),u&&(0,T.jsxs)(ot,{children:[(0,T.jsxs)(De.ZP.H4,{children:[u.relationDisplay.label,(0,T.jsx)(it,{"aria-label":y("client.admin.entities.relationsView.relationLinkView"),to:n.url.replace(/(relations|detail)$/,u.relationName),children:dt||(dt=(0,T.jsx)(Se.Z,{icon:"arrow-right"}))}),(m=u.relationName,(null===(h=a[m])||void 0===h?void 0:h.createPermission)&&"Resource"!==u.targetEntity&&(0,T.jsx)(it,{"aria-label":y("client.admin.entities.relationsView.relationLinkCreate"),to:n.url.replace(/(relations|detail)$/,u.relationName)+"/create",children:ft||(ft=(0,T.jsx)(Se.Z,{icon:"plus"}))}))]}),(0,T.jsx)(g,{selectedRelation:u,match:n,history:t,currentViewInfo:r,emitAction:i,sortable:!0})]})]}),(0,T.jsx)(tt,{onClick:l,isCollapsed:s,children:(0,T.jsx)(rt,{icon:"chevron-left",isCollapsed:s})})]})},yt=function(e,t){return 0===Object.keys(R.Z.difference(e,t)).length};const gt=k().memo(ht,yt);var vt={emitAction:function(e){return z.Z.dispatchEmittedAction(e)},selectRelation:x};const bt=(0,a.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname],relations:e.entities.path.relations,relationsInfo:e.entities.path.relationsInfo,selectedRelation:e.entities.path.selectedRelation}}),vt)((0,o.ZP)(gt));var xt,wt,kt,jt=Y.ZP.div.withConfig({displayName:"StyledDetailViewContainer"})(xt||(xt=G()(["\n display: flex;\n flex-direction: row;\n height: 100%;\n\n .react-bs-container-body {\n height: auto !important;\n }\n"]))),Zt=Y.ZP.div.withConfig({displayName:"StyledDetailViewLeft"})(wt||(wt=G()(["\n flex: 1;\n margin-right: 1rem;\n ","\n"])),(function(e){return!e.isCollapsed&&" @media(max - width: 1024px) {\n flex: none;\n width: 40%;\n }"})),Pt=Y.ZP.div.withConfig({displayName:"StyledDetailViewRight"})(kt||(kt=G()(["\n flex: ",";\n"])),(function(e){return e.isCollapsed?"0":"1"}));const Ot=function(e){var t=e.match,n=e.history,r=(e.currentViewInfo,e.relationViewCollapsed),o=e.saveUserPreferences,a=(0,w.useState)(!1),i=H()(a,2),c=i[0],s=i[1];(0,w.useEffect)((function(){s(r)}),[r]);var l=function(e){o({"admin.detail.relationViewCollapsed":e})};return(0,T.jsxs)(jt,{children:[(0,T.jsx)(Zt,{isCollapsed:c,children:(0,T.jsx)(Z.Z.ErrorBoundary,{children:(0,T.jsx)(Ee,{match:t,history:n})})}),(0,T.jsx)(Pt,{isCollapsed:c,children:(0,T.jsx)(Z.Z.ErrorBoundary,{children:(0,T.jsx)(bt,{match:t,history:n,isCollapsed:c,toggleCollapse:function(){s(!c),l(!c)}})})})]})};var _t={saveUserPreferences:oe.RK};const Nt=(0,a.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname],relationViewCollapsed:_()(e.preferences.userPreferences,"admin.detail.relationViewCollapsed",!1)}}),_t)((0,o.ZP)(Ot));const Rt=function(e){var t,n,r=e.match,o=(t=r.path,n=":relation",t.split(n).length-1);return(0,T.jsxs)(j.rs,{children:[(0,T.jsx)(j.AW,{exact:!0,path:"".concat(r.url),render:function(e){var t=e.match;return(0,T.jsx)(j.l_,{to:"".concat(t.url.replace(/\/$/,""),"/detail")})}}),(0,T.jsx)(j.AW,{path:"".concat(r.path,"/detail"),component:Nt}),(0,T.jsx)(j.AW,{path:"".concat(r.path,"/edit"),component:Ee}),(0,T.jsx)(j.AW,{path:"".concat(r.path,"/relations"),component:bt}),(0,T.jsx)(j.AW,{path:"".concat(r.path,"/action"),component:M}),(0,T.jsx)(j.AW,{path:"".concat(r.path,"/:relation_").concat(o),component:Ct})]})};const Ct=function(e){var t=e.match;return(0,T.jsxs)(j.rs,{children:[(0,T.jsx)(j.AW,{exact:!0,path:t.url,render:function(e){var t=e.match;return(0,T.jsx)(j.l_,{to:"".concat(t.url.replace(/\/$/,""),"/list")})}}),(0,T.jsx)(j.AW,{path:"".concat(t.path,"/action/:id"),component:M}),(0,T.jsx)(j.AW,{path:"".concat(t.path,"/list"),component:Ze}),(0,T.jsx)(j.AW,{path:"".concat(t.path,"/create"),component:re}),(0,T.jsx)(j.AW,{path:"".concat(t.path,"/:key"),component:Rt})]})};var Et=n(2977);const Dt=(0,a.connect)((function(e,t){return{pathPrefix:"/e",breadcrumbsInfo:e.entities.path.breadcrumbsInfo,currentView:e.entities.path.currentViewTitle?{display:e.entities.path.currentViewTitle,title:e.entities.path.currentViewTitle}:null}}),{})((0,o.ZP)(Et.Z));var St=n(44012),It=n(39233);const Tt=function(e){var t=e.currentViewInfo,n="client.admin.entity.errorView.",r="detail"===t.type?"detailTitle":"defaultTitle",o="listDescription";return"detail"===t.type?o="detailDescription":"list"===t.type&&t.error.relationName&&(o="relationDescription"),(0,T.jsx)(It.Z,{title:(0,T.jsx)(St.Z,{id:n+r}),message:(0,T.jsx)(St.Z,{id:n+o,values:t.error})})};const Vt=(0,a.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname]}}))((0,o.ZP)(Tt));var Lt,At,Ft,Mt,Bt=Y.ZP.div.withConfig({displayName:"StyledWrapper"})(Lt||(Lt=G()(["\n display: grid;\n grid-template-rows: auto 1fr;\n grid-template-areas:\n 'breadcrumbs'\n 'content';\n height: 100%;\n width: 100%;\n"]))),zt=Y.ZP.div.withConfig({displayName:"StyledContent"})(At||(At=G()(["\n grid-area: content;\n overflow: hidden;\n"]))),$t=Y.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(Ft||(Ft=G()(["\n grid-area: breadcrumbs;\n"])));const Ut=function(e){var t=e.match,n=e.history,r=e.loadCurrentRoute,o=e.currentViewInfo,a=n.location;(0,w.useEffect)((function(){r(a)}),[a,r]);var i=null!=o&&o.error?(0,T.jsx)(Vt,{history:n}):(0,T.jsxs)(j.rs,{children:[(0,T.jsx)(j.AW,{path:"".concat(t.url,"/action/:actionId"),component:M}),(0,T.jsx)(j.AW,{path:"".concat(t.url,"/:entity"),component:Ct}),(0,T.jsx)(j.AW,{exact:!0,path:t.url,component:P.Z})]});return(0,T.jsxs)(Bt,{children:[Mt||(Mt=(0,T.jsx)(Z.Z.ErrorBoundary,{children:(0,T.jsx)($t,{children:(0,T.jsx)(Dt,{})})})),(0,T.jsx)(zt,{children:i})]})};var qt={loadCurrentRoute:function(e){return{type:c,payload:{location:e}}}};const Wt=(0,a.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname]}}),qt)((0,o.ZP)(Ut));var Ht,Kt=n(34857),Gt=n(81770);function Yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yt(Object(n),!0).forEach((function(t){ie()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xt=(Ht={},ie()(Ht,i,(function(e,t){var n=t.payload,r=n.location,o=n.currentViewInfo;return Jt(Jt({},e),{},{currentViewInfos:Jt(Jt({},e.currentViewInfos),{},ie()({},r,Jt(Jt({},e.currentViewInfos[r]),o)))})})),ie()(Ht,s,Gt.Z.singleTransferReducer("breadcrumbsInfo")),ie()(Ht,l,(function(e,t){var n=t.payload,r=n.path,o=n.breadcrumbsInfo;return Jt(Jt({},e),{},{breadcrumbsInfo:e.breadcrumbsInfo.map((function(e){return e.path===r?Jt(Jt({},e),o):e}))})})),ie()(Ht,u,Gt.Z.singleTransferReducer("relations")),ie()(Ht,d,Gt.Z.singleTransferReducer("relationsInfo")),ie()(Ht,p,Gt.Z.singleTransferReducer("currentViewTitle")),ie()(Ht,h,Gt.Z.singleTransferReducer("selectedRelation")),Ht),Qt={currentViewInfos:{},breadcrumbsInfo:[],relations:null,relationsInfo:{},selectedRelation:null};var en=n(57557),tn=n.n(en),nn=n(78718),rn=n.n(nn),on=n(35937),an=n.n(on),cn=n(44759),sn=n(96801),ln=function(e){var t=sn.Z.extractParamsFromPath("/e/:entity/:key?/:relation*/:view(list|detail|edit|create|relations|action)/:actionId?",e),n=sn.Z.extractParamsFromPath("/e/action/:actionId",e);return t||n};function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?un(Object(n),!0).forEach((function(t){ie()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dn=fe().mark(Pn),fn=fe().mark(On),mn=fe().mark(_n),hn=fe().mark(Nn),yn=fe().mark(Rn),gn=fe().mark(Dn),vn=fe().mark(Sn),bn=fe().mark(In),xn=fe().mark(Tn),wn=fe().mark(Vn),kn=fe().mark(Ln),jn=function(e){return e.entities.path},Zn=/[^/]+\/?[^/]+/g;function Pn(){return fe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Kt.$6)([(0,Kt.Fm)(c,On),(0,Kt.Fm)(f,Sn),(0,Kt.Fm)(m,In)]);case 2:case"end":return e.stop()}}),dn)}function On(e){var t,n,r,o;return fe().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.payload.location,n=t.pathname,a.next=4,(0,Kt.RE)(Rn,n);case 4:if(!((r=a.sent).length>0)){a.next=16;break}return a.next=8,(0,Kt.RE)(_n,n,r);case 8:return o=a.sent,a.next=11,(0,Kt.RE)(Nn,r);case 11:if("detail"!==o.type||o.error){a.next=14;break}return a.next=14,(0,Kt.Cs)(Dn,o.model,o.key);case 14:return a.next=16,(0,Kt.RE)(le.Z.clearPersistedViews,o.level+1);case 16:case"end":return a.stop()}}),fn)}function _n(e,t){var n;return fe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Kt.RE)(Cn,e,t);case 2:return n=r.sent,r.next=5,(0,Kt.gz)(y(e,n));case 5:return r.abrupt("return",n);case 6:case"end":return r.stop()}}),mn)}function Nn(e){var t;return fe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Kt.RE)(En,e);case 2:return t=n.sent,n.next=5,(0,Kt.gz)({type:s,payload:{breadcrumbsInfo:t}});case 5:return n.abrupt("return",t);case 6:case"end":return n.stop()}}),hn)}function Rn(e){var t,n,r,o,a,i,c,s,l,u,p,d,f,m,h,y,g;return fe().wrap((function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,(0,Kt.RE)(ln,e);case 2:if(t=v.sent,n=[],null!==t){v.next=6;break}return v.abrupt("return",n);case 6:if(!t.entity){v.next=70;break}return v.prev=7,v.next=10,(0,Kt.RE)(me.Z.fetchModel,t.entity);case 10:r=v.sent,n.push({type:"list",model:r}),v.next=18;break;case 14:return v.prev=14,v.t0=v.catch(7),n.push({type:"list",error:{entityName:t.entity}}),v.abrupt("return",n);case 18:if(!t.key){v.next=67;break}return v.next=21,(0,Kt.RE)(me.Z.entityExists,r.name,t.key);case 21:if(!v.sent){v.next=29;break}return v.next=25,(0,Kt.RE)(me.Z.fetchDisplay,r.name,t.key);case 25:o=v.sent,n.push({type:"detail",key:t.key,model:r,display:o}),v.next=31;break;case 29:return n.push({type:"detail",error:{entityName:r.label,key:t.key}}),v.abrupt("return",n);case 31:if(!t.relation){v.next=67;break}a=t.relation.split("/"),i=0;case 34:if(!(i<a.length)){v.next=67;break}if(c=a[i],s=n[n.length-1],i%2!=0){v.next=50;break}if(l=c,u=s.model.paths[l]){v.next=43;break}return n.push({type:"list",error:{relationName:l,entityName:s.model.name}}),v.abrupt("return",n);case 43:return p=u.targetEntity,v.next=46,(0,Kt.RE)(me.Z.fetchModel,p);case 46:d=v.sent,n.push({type:"list",model:d,relationName:l,parent:s}),v.next=64;break;case 50:return f=c,m=s.model,v.next=54,(0,Kt.RE)(me.Z.entityExists,m.name,f);case 54:if(!v.sent){v.next=62;break}return v.next=58,(0,Kt.RE)(me.Z.fetchDisplay,m.name,f);case 58:h=v.sent,n.push({type:"detail",model:m,key:f,display:h,relationName:s.relationName,parent:s.parent}),v.next=64;break;case 62:return n.push({type:"detail",error:{entityName:m.name,key:f}}),v.abrupt("return",n);case 64:i++,v.next=34;break;case 67:"create"===t.view?(y=n[n.length-1],g=n[n.length-2],n.push({type:"create",model:y.model,parent:g,relationName:y.relationName})):t.actionId&&n.push({type:"action",actionId:t.actionId}),v.next=71;break;case 70:t.actionId&&n.push({type:"action",actionId:t.actionId});case 71:return v.abrupt("return",n);case 72:case"end":return v.stop()}}),yn,null,[[7,14]])}var Cn=function(e,t){var n=t[t.length-1],r=n.parent;return pn(pn({},tn()(n,["parent"])),{},{pathname:e,level:t.length-1},r&&n.relationName&&{parentKey:r.key,reverseRelation:r.model.paths[n.relationName].reverseRelationName,parentModel:r.model})},En=function(e){var t="";return e.map((function(e){return e.error?{type:"error"}:"action"===e.type?null:(t=(t?t+"/":"")+(e.key?e.key:e.relationName||e.model.name),{type:e.type,display:e.display||e.model.label,path:t+"/"+e.type})})).filter((function(e){return e}))};function Dn(e,t){var n,r;return fe().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n=an()(e.paths,(function(e,t){return e.relationDisplay&&e.relationDisplay.show})),r=Object.keys(n).map((function(e){return rn()(n[e],["relationName","reverseRelationName","targetEntity","relationDisplay.label","relationDisplay.order"])})).sort((function(e,t){return e.relationDisplay.order>t.relationDisplay.order?1:-1})),o.next=4,(0,Kt.gz)(x(null));case 4:return o.next=6,(0,Kt.gz)(v(r));case 6:return o.next=8,(0,Kt.RE)(Ln,e.name,t);case 8:case"end":return o.stop()}}),gn)}function Sn(e){var t,n,r,o,a;return fe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.payload.location,n=t.pathname,i.next=4,(0,Kt.Ys)(jn);case 4:if(r=i.sent,o=r.currentViewInfos,"detail"!==(a=o[n]).type||a.error){i.next=12;break}return i.next=10,(0,Kt.Cs)(Ln,a.model.name,a.key);case 10:return i.next=12,(0,Kt.gz)(x(null));case 12:case"end":return i.stop()}}),vn)}function In(e){var t,n,r,o,a,i,c,s;return fe().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return t=e.payload.location,n=t.pathname,l.next=4,(0,Kt.RE)(ln,n);case 4:if(null==(r=l.sent)||!r.entity||null==r||!r.key){l.next=29;break}return l.prev=6,l.next=9,(0,Kt.RE)(Vn,r);case 9:if(!(o=l.sent)){l.next=24;break}return a=o.entityName,i=o.key,l.next=14,(0,Kt.RE)(me.Z.invalidateDisplay,a,i);case 14:return l.next=16,(0,Kt.RE)(me.Z.fetchDisplay,a,i);case 16:return c=l.sent,l.next=19,(0,Kt.gz)(y(n,{display:c}));case 19:return l.next=21,(0,Kt.RE)(Tn,n);case 21:return s=l.sent,l.next=24,(0,Kt.gz)(g(s,{display:c}));case 24:l.next=29;break;case 26:l.prev=26,l.t0=l.catch(6),cn.Z.logError("breadcrumbs invalidation failed",l.t0);case 29:case"end":return l.stop()}}),bn,null,[[6,26]])}function Tn(e){var t;return fe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Kt.RE)(ln,e);case 2:if(null!==(t=n.sent)&&t.entity){n.next=5;break}return n.abrupt("return","");case 5:return n.abrupt("return",[t.entity,t.key,t.relation,t.view].filter(Boolean).join("/"));case 6:case"end":return n.stop()}}),xn)}function Vn(e){var t,n,r,o,a,i,c,s,l,u;return fe().wrap((function(p){for(;;)switch(p.prev=p.next){case 0:if(e&&e.entity&&e.key&&"action"!==e.view){p.next=2;break}return p.abrupt("return",null);case 2:return p.next=4,(0,Kt.RE)(me.Z.fetchModel,e.entity);case 4:if(t=p.sent,e.relation){p.next=7;break}return p.abrupt("return",{entityName:t.name,key:e.key});case 7:if(!((n=e.relation.match(Zn)).length<1)){p.next=10;break}return p.abrupt("return",null);case 10:r=t,o=null,a=0;case 13:if(!(a<n.length)){p.next=25;break}if(i=n[a].split("/"),c=H()(i,2),s=c[0],l=c[1],(u=r.paths[s])&&l){p.next=18;break}return p.abrupt("return",null);case 18:return p.next=20,(0,Kt.RE)(me.Z.fetchModel,u.targetEntity);case 20:r=p.sent,o={entityName:r.name,key:l};case 22:a++,p.next=13;break;case 25:return p.abrupt("return",o);case 26:case"end":return p.stop()}}),wn)}function Ln(e,t){var n,r,o;return fe().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n="client/entities/".concat(e,"/").concat(t,"/relations"),a.next=3,(0,Kt.RE)(me.Z.requestSaga,n);case 3:return r=a.sent,o=r.body.relations,a.next=7,(0,Kt.gz)(b(o));case 7:case"end":return a.stop()}}),kn)}const An=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qt,t=arguments.length>1?arguments[1]:void 0,n=Xt[t.type];return n?n(e,t):e},Fn={container:Wt,reducers:{entities:(0,r.UY)({path:An})},sagas:[Pn]}},24295:(e,t,n)=>{n.r(t),n.d(t,{default:()=>xe});var r=n(68957),o=n(91411),a=n(86249),i=n.n(a),c=(n(58900),n(78634)),s=n(84100),l=n(60131),u=n(48230),p=n(64952),d=n(469),f=n(81896),m=n(46940),h=n(27361),y=n.n(h),g=n(14293),v=n.n(g),b=n(13218),x=n.n(b),w=n(47037),k=n.n(w),j=n(1024),Z=n(58804),P=(n(39335),n(28212),n(6488),n(32510),n(79657),n(20844),n(41030),n(98827),n(37363),n(53299),n(54159)),O=function(e){return P.Z.executeRequest("rest/".concat(e))},_=function(e){return 200===e.status?e.json():null},N=n(44822),R=n(11259),C=n(32208),E=n(99357),D=n(19241),S=(n(70646),n(1469)),I=n.n(S),T=n(30236),V=n.n(T),L=["==","!=","<=",">=","<",">","~="],A=["true","false","null"],F=["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],M=["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],B=["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"];function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,D.Z)(e);if(t){var o=(0,D.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,E.Z)(this,n)}}const $=function(e){return function(t){(0,C.Z)(r,t);var n=z(r);function r(){var t;(0,R.Z)(this,r),t=n.call(this);var o=[{token:"keyword.operator.conjunction",regex:/(\s*)(and|or|not)($|\s+)/,caseInsensitive:!0},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.exists",regex:/exists\s*/,push:"exists",caseInsensitive:!0},{token:"keyword.count",regex:/count\s*/,push:"count",caseInsensitive:!0},{token:["keyword.function.nice_function","paren.lparen.function_arguments","text.function_arguments","paren.rparen","text.whitespace"],regex:"((?:".concat(B.join("|"),")\\s*)(\\()(.*?)(\\))($|\\s+)"),caseInsensitive:!0},{token:"keyword.other.chaining",regex:/\./},{token:"support.function.field",regex:/([a-z_]+)($|\s+)/,push:"comparison"}],a={start:e?[{token:"keyword.where",regex:/\s*/,next:"rootwhere",caseInsensitive:!0}]:[{token:"keyword.find",regex:/find($|\s+)/,push:"model",caseInsensitive:!0},{token:"keyword.where",regex:/where($|\s+)/,next:"rootwhere",caseInsensitive:!0}],model:[{token:"support.class.model",regex:/[A-Z][a-z_0-9]*\s*/,next:"pop"}],rootwhere:[{token:"keyword.order_by",regex:/order by($|\s+)/,next:"order",caseInsensitive:!0}].concat(o),comparison:[{token:"keyword.operator.comparison",regex:"(".concat(L.join("|"),")\\s*"),next:"value"}],value:[{token:"string",regex:/".*?"\s*/,next:"pop"},{token:"constant.numeric",regex:/\d+(.\d+)?\s*/,next:"pop"},{token:"constant.language.tocco_placeholder",regex:"\\:(".concat(M.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(A.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"support.type",regex:"(".concat(F.join("|"),"):\\s*"),caseInsensitive:!0}],exists:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"existswhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"pop"}],existswhere:[].concat(o,[{token:"paren.rparen",regex:/\)\s*/,next:"pop"}]),count:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"countwhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}],countwhere:[].concat(o,[{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}]),order:[{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:["support.function.field","keyword.direction","separator"],regex:/([a-z_]+\s*)(asc|desc)?($|,|\s+)/}]};return t.$rules=V()(t.$rules,a,(function(e,t){return I()(e)?e.concat(t):void 0})),t.normalizeRules(),t}return(0,N.Z)(r)}(i().require("ace/mode/text_highlight_rules").TextHighlightRules)};function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,D.Z)(e);if(t){var o=(0,D.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,E.Z)(this,n)}}var q=function(e){(0,C.Z)(n,e);var t=U(n);function n(){var e;(0,R.Z)(this,n);return(e=t.call(this)).$rules={start:[{token:"constant.character.entity",regex:/&[^;]+;/},{token:"support.function",regex:"\\?(\\?|substring|cap_first|uncap_first|capitalize|chop_linebreak|date|time|datetime|ends_with|html|groups|index_of|j_string|js_string|json_string|last_index_of|length|lower_case|left_pad|right_pad|contains|matches|number|replace|rtf|url|split|starts_with|string|trim|upper_case|word_list|xhtml|xmlc|round|floor|ceilingiso_[a-z_]+first|last|seq_contains|seq_index_of|seq_last_index_of|reverse|size|sort|sort_by|chunkkeys|valueschildren|parent|root|ancestors|node_name|node_type|node_namespacebyte|double|float|int|long|short|number_to_date|number_to_time|number_to_datetime|eval|has_content|interpret|is_[a-z_]+|namespacenew)"},{token:"support.function.deprecated",regex:"\\?(default|exists|if_exists|web_safe)"},{token:"language.variable",regex:"\\.(?:data_model|error|globals|lang|locale|locals|main|namespace|node|current_node|now|output_encoding|template_name|url_escaping_charset|vars|version)"},{token:"constant.language",regex:"\\b(true|false)\\b"},{token:"keyword.operator",regex:"\\b(?:gt|gte|lt|lte|as|in|using)\\b"},{token:"entity.other.attribute-name",regex:"encoding|parse|locale|number_format|date_format|time_format|datetime_format|time_zone|url_escaping_charset|classic_compatible|strip_whitespace|strip_text|strict_syntax|ns_prefixes|attributes"},{token:"string",regex:/['"]/,next:"qstring"},{token:function(e){return e.match("^[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?$")?"constant.numeric":"variable"},regex:/[\w.+-]+/},{token:"keyword.operator",regex:"!|\\.|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^="},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],qstring:[{token:"constant.character.escape",regex:'\\\\[nrtvef\\\\"$]'},{token:"string",regex:/['"]/,next:"start"},{defaultToken:"string"}]},e}return(0,N.Z)(n)}(i().require("ace/mode/text_highlight_rules").TextHighlightRules),W=function(e){(0,C.Z)(n,e);var t=U(n);function n(){var e;(0,R.Z)(this,n),e=t.call(this);var r=["query","queryCount"],o=[{token:"keyword.function",regex:"\\[@(".concat(r.join("|"),").*?]"),push:"tql-start"},{token:"comment",regex:"\\[#--",next:"ftl-dcomment"},{token:"string.interpolated",regex:"\\${",push:"ftl-start"},{token:"keyword.function",regex:"\\[/?#(assign|attempt|break|case|compress|default|elseif|else|escape|fallback|function|flush|ftl|global|if|import|include|list|local|lt|macro|nested|noescape|noparse|nt|recover|recurse|return|rt|setting|stop|switch|t|visit)",push:"ftl-start"},{token:"keyword.other",regex:"\\[/?@[a-zA-Z\\.]+",push:"ftl-start"}];for(var a in e.$rules)e.$rules[a].unshift.apply(e.$rules[a],o);e.embedRules(q,"ftl-",[{token:"keyword",regex:"/?\\]",next:"pop"},{token:"string.interpolated",regex:"}",next:"pop"}],["start"]),e.addRules({"ftl-dcomment":[{token:"comment",regex:"--\\]",next:"pop"},{defaultToken:"comment"}]});var i=[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}];e.embedRules($(),"tql-",i,["start"]);var c={"tql-rootwhere":[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}],"tql-order":[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}]};return e.$rules=V()(e.$rules,c,(function(e,t){return I()(e)?e.concat(t):void 0})),e.normalizeRules(),e}return(0,N.Z)(n)}(i().require("ace/mode/html_highlight_rules").HtmlHighlightRules),H=n(52902),K=n(45915),G=i().require("ace/token_iterator").TokenIterator,Y=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},J=function(e,t){return Y(e.getCurrentToken())===t},X=function(e){if(J(e,"model")&&e.stepBackward(),(J(e,"field")||J(e,"relation"))&&e.stepBackward(),!J(e,"chaining"))return null;if(e.stepBackward(),J(e,"model")){var t=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),t?t.value.trim():null}return null},Q=function(e,t){for(;!J(e,t);)if(!e.stepBackward())return!1;return!0},ee=function(e,t){return J(e,"rparen")?1:t>0&&J(e,"lparen")?(e.stepBackward(),-1):0},te=function(e){for(var t=0;e.getCurrentToken();){if(0===t&&J(e,"where")){var n=e.stepBackward();return n?[n.value.trim()].concat((0,K.Z)(re(e))):[]}if(J(e,"order_by")){if(Q(e,"find")){var r=e.stepForward();return r?r.value.trim():[]}return[]}if(t+=ee(e,t),!e.stepBackward())return null}return null},ne=function(e,t){for(var n=[],r=t(e);r;)Array.isArray(r)?r.forEach((function(e){return n.unshift(e)})):n.unshift(r),r=t(e);return n},re=function(e){return ne(e,X)},oe=function(e){return ne(e,te)},ae=1e3,ie=function(e,t,n){var r=function(e,t){if(t){var n=oe(e());return{baseModel:t,modelScope:(0,H.Z)(n).slice(0)}}var r=oe(e()),o=(0,H.Z)(r);return{baseModel:o[0],modelScope:o.slice(1)}}(e,n),o=r.baseModel,a=r.modelScope;if(o){var i=re(e()),c=[].concat((0,K.Z)(a),(0,K.Z)(i)).map((function(e){return"rel".concat(e)}));(function(e){var t=(0,H.Z)(e),n=t[0],r=t.slice(1);return O(function(e,t){var n=t.length>0?"/resolve?path="+t.join("."):"";return"entities/".concat(e,"/model").concat(n)}(n,r)).then(_).then((function(e){if(!e)return[];var t=e.fields||[],n=e.relations||[];return[].concat((0,K.Z)(t.map((function(e){return{label:(t=e,t.label?"".concat(t.fieldName," (").concat(t.label,")"):t.fieldName),value:e.fieldName,meta:e.type};var t}))),(0,K.Z)(n.map((function(e){return{label:(t=e,t.label?"".concat(t.relationName," (").concat(t.label,")"):t.relationName),value:e.relationName,meta:e.targetEntity};var t}))))}))})([o].concat((0,K.Z)(c))).then((function(e){var n=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:ae}}));t(null,n)})).catch((function(e){return t(e)}))}},ce=function(e,t){return t?"".concat(e," (").concat(t,")"):e},se=function(e){return O("entities").then(_).then((function(e){return e?e.entities:{}})).then((function(e){return e?Object.values(e):[]})).then((function(e){return e.map((function(e){return e.metaData}))})).then((function(t){var n=t.map((function(e){var t=e.modelName,n=e.label;return{caption:ce(t,n),value:t,score:ae}}));e(null,n)})).catch((function(t){return e(t)}))},le=function(){return B.map((function(e){return e.toUpperCase()})).map((function(e){return{caption:e,value:"".concat(e,"()"),meta:"function",score:970}}))};const ue=function(e){return{getCompletions:function(t,n,r,o,a){var i=function(){return new G(n,r.row,r.column)},c=i(),s=c.getCurrentToken(),l=c.stepBackward()?c.getCurrentToken():null;switch(Y(s)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ie(i,a,e);break;case"where":case"conjunction":ie(i,a,e),a(null,le());break;case"nice_function":a(null,le());break;case"find":se(a);break;case"type":case"tocco_placeholder":case"comparison":a(null,F.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),a(null,M.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ie(i,a,e),l&&"relation"!==Y(l)&&se(a);break;case null:e&&ie(i,a,e),a(null,le())}}}};function pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,D.Z)(e);if(t){var o=(0,D.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,E.Z)(this,n)}}var de=function(e){(0,C.Z)(n,e);var t=pe(n);function n(){var e;return(0,R.Z)(this,n),(e=t.call(this)).HighlightRules=W,e.completer=ue(),e}return(0,N.Z)(n)}(i().require("ace/mode/ftl").Mode);function fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,D.Z)(e);if(t){var o=(0,D.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,E.Z)(this,n)}}var me,he=function(e){(0,C.Z)(n,e);var t=fe(n);function n(e){var r,o=e.implicitModelName;return(0,R.Z)(this,n),(r=t.call(this)).HighlightRules=$(o),r.completer=ue(o),r.snippedIdField=null,r}return(0,N.Z)(n)}(i().require("ace/mode/text").Mode),ye=n(85893),ge=Z.ZP.div.withConfig({displayName:"StyledEditor"})(me||(me=(0,o.Z)(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),ve={groovy:function(){return new s.Mode},html:function(){return new l.Mode},xml:function(){return new m.Mode},properties:function(){return new d.Mode},json:function(){return new u.Mode},htmlmixed:function(){return new de},freemarkermixed:function(){return new de},ftl:function(){return new de},tql:function(e){return new he(e)},less:function(){return new p.Mode},drools:function(){return new c.Mode},text:function(){return new f.Mode}},be=function(e,t){var n=t.mode,o=t.theme,a=t.showGutter,i=t.editorOptions,c=void 0===i?{}:i;(function(e){return k()(e)?Promise.resolve(e):x()(e)?O("entities/2.0/".concat(e.entityModel,"/").concat(e.key,"?_paths=").concat(e.field)).then(_).then((function(e){return y()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(t.implicitModel).then((function(e){return function(e,t){return y()(ve,e,e)(t)}(n,{implicitModelName:e})})).then((function(t){return e.getSession().setMode(t)})),e.setTheme("ace/theme/".concat(o)),Object.entries(c).forEach((function(t){var n=(0,r.Z)(t,2),o=n[0],a=n[1];e.setOption(o,a)})),e.renderer.setShowGutter(a),e.resize()};const xe=function(e){var t=e.mode,n=e.theme,r=void 0===n?"textmate":n,o=e.value,a=e.onChange,c=e.showGutter,s=void 0===c||c,l=e.editorOptions,u=void 0===l?{}:l,p=e.implicitModel,d=(0,j.useRef)(null),f=(0,j.useRef)(null),m=(0,j.useMemo)((function(){return{mode:t,theme:r,showGutter:s,editorOptions:u,implicitModel:p}}),[t,r,s,u,p]);return(0,j.useEffect)((function(){var e=i().edit(d.current);return e.getSession().setValue(o||""),e.on("change",(function(){return a(e.getValue())})),be(e,m),f.current=e,function(){return e.destroy()}}),[]),(0,j.useEffect)((function(){f.current&&be(f.current,m)}),[m]),(0,j.useEffect)((function(){f.current&&!v()(o)&&o!==f.current.getValue()&&f.current.getSession().setValue(o)}),[o]),(0,ye.jsx)(ge,{ref:d})}},38421:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var r,o=n(68957),a=(n(44661),n(1024)),i=n(12520),c=n.n(i),s=n(74806),l=n(58804),u=n(91411),p=l.ZP.span.withConfig({displayName:"StyledChildrenWrapper"})(r||(r=(0,u.Z)(["\n cursor: pointer;\n user-select: none;\n"]))),d=n(85893);const f=function(e){var t=e.children,n=e.onOpen;return(0,d.jsx)(p,{onClick:n,children:t})};(0,n(77281).X)();const m=(0,l.Zz)((0,s.ZP)((function(e){var t,n=e.children,r=e.value,i=e.onChange,s=e.intl,l=s.locale,u=(0,a.useRef)(null),p=(0,a.useState)(!1),m=(0,o.Z)(p,2),h=m[0],y=m[1],g=function(e){var t,n;(y(e),null!==(t=u.current)&&void 0!==t&&t.setPreSelection)&&(null===(n=u.current)||void 0===n||n.setPreSelection(r))};return(0,d.jsx)(c(),{ref:u,selected:r,preSelection:null,onChange:i,showTimeInput:!1,dateFormat:"P",showPopperArrow:!1,showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,open:h,onFocus:function(){g(!0)},onClickOutside:function(){g(!1)},locale:l,enableTabLoop:!1,customInput:(0,d.jsx)(f,{onOpen:function(){g(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",s.formatMessage({id:t}))})})))},77281:(e,t,n)=>{n.d(t,{X:()=>i,k:()=>c});n(44661);var r=n(5429),o=n(12520),a=n(82022),i=function(){(0,o.registerLocale)("en",a.Z.getDateFnsLocale("en")),(0,o.registerLocale)("en-US",a.Z.getDateFnsLocale("en")),(0,o.registerLocale)("de-CH",a.Z.getDateFnsLocale("de-CH")),(0,o.registerLocale)("de",a.Z.getDateFnsLocale("de")),(0,o.registerLocale)("fr",a.Z.getDateFnsLocale("fr")),(0,o.registerLocale)("fr-CH",a.Z.getDateFnsLocale("fr")),(0,o.registerLocale)("it",a.Z.getDateFnsLocale("it")),(0,o.registerLocale)("it-CH",a.Z.getDateFnsLocale("it")),(0,o.setDefaultLocale)("de")},c=function(e){var t=(0,r.default)(e);return isNaN(t)?null:t}},64820:(e,t,n)=>{n.r(t),n.d(t,{default:()=>R});var r,o,a,i=n(68957),c=(n(44661),n(75502)),s=n(65809),l=n(94712),u=n(1024),p=n(12520),d=n.n(p),f=n(74806),m=n(58804),h=n(82022),y=n(2091),g=n(65035),v=n(77281),b=n(91411),x=n(30759),w=n(51032),k=m.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(r||(r=(0,b.Z)(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),j=m.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(o||(o=(0,b.Z)(["\n && {\n ","\n\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),w.yP,w.k9,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),Z=m.ZP.input.withConfig({displayName:"StyledTimeInput"})(a||(a=(0,b.Z)(["\n ","\n border: none;\n outline: none;\n min-height: 2.6rem;\n"])),(0,x.Z)()),P=n(85893);(0,v.X)();var O="react-datepicker-time__input",_=function(e){var t=e.onChange,n=e.label;return(0,P.jsx)(g.Z,{onMouseDown:function(e){e.preventDefault(),t(null)},children:n})},N=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown;return(0,P.jsx)(Z,{type:"time",className:O,required:!0,value:t,onKeyDown:r,onChange:function(e){n&&n(e.target.value)},onClick:function(e){e.target.focus()}})};const R=(0,m.Zz)((0,f.ZP)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,a=e.maxDate,p=e.onChange,f=e.intl,m=e.placeholder,g=e.hasTime,b=e.dateFormat,x=f.locale,w=function(e){return f.formatMessage({id:e})},Z=(0,u.useRef)(null),R=(0,u.useRef)(null),C=(0,u.useState)(!1),E=(0,i.Z)(C,2),D=E[0],S=E[1],I=Boolean(r),T=(0,v.k)(r),V=o?(0,v.k)(o):void 0,L=a?(0,v.k)(a):void 0,A=function(e){var t,n;(S(e),null!==(t=R.current)&&void 0!==t&&t.setPreSelection)&&(null===(n=R.current)||void 0===n||n.setPreSelection(T))},F=function(e){"Tab"!==e.key||e.shiftKey||(e.target.classList.contains("react-datepicker__day")?g?function(e){var t=e.querySelector("input.".concat(O));t&&t.focus()}(Z.current):A(!1):function(e){return e.classList.contains(O)}(e.target)&&A(!1)),function(e){return e.classList.contains("react-datepicker-ignore-onclickoutside")}(e.target)&&"Tab"===e.key&&e.shiftKey&&A(!1),"Enter"===e.key&&(A(!1),e.preventDefault(),e.stopPropagation())};return(0,P.jsx)(k,{immutable:t,id:n,tabIndex:"-1",children:(0,P.jsxs)(j,{immutable:t,ref:Z,hasTime:g,children:[(0,P.jsx)(d(),{ref:R,selected:T,onChange:function(e){if(e){var t=!r&&e,n=(0,c.default)(e),o=(0,s.default)(e)!==(0,s.default)(n)||(0,l.default)(e)!==(0,l.default)(n);t&&g&&!o&&(e=h.Z.setCurrentTime(e)),p(e.toISOString())}},disabled:t,showTimeInput:g,dateFormat:b,showPopperArrow:!1,placeholderText:m,showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,open:D,onFocus:function(){A(!0)},onClickOutside:function(){A(!1)},locale:x,onKeyDown:F,customTimeInput:(0,P.jsx)(N,{onKeyDown:F}),enableTabLoop:!1,timeInputLabel:"",minDate:V,maxDate:L,todayButton:(0,P.jsx)(_,{onChange:p,label:w("client.component.datePicker.todayLabel")})}),!t&&I&&(0,P.jsx)(y.Z,{icon:"times",tabIndex:-1,"aria-label":w("client.component.datePicker.clearDateLabel"),onMouseDown:function(e){e.preventDefault(),p(null)}})]})})})))},81251:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=n(46927),o=n(70457),a=n(30963),i=n(85893);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const l=function(e){var t=e.size,n=e.style;return(0,i.jsx)(a.G,s(s({},n),{},{style:{fontSize:t},spin:!0,icon:o.IJ7}))}},67210:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=n(74806),o=n(32540),a=n(25660),i=n(80722),c=n(20247),s=n(85893);const l=(0,c.U)((0,r.ZP)((function(e){var t=e.path,n=e.context,r=e.onSuccess,c=e.intl,l=e.locale,u=e.emitAction,p=(0,i.Z)(t),d=p?[{id:"rel".concat(p.model),value:p.key}]:[],f=(0,a.Z)(n,"Domain");return(0,s.jsx)(o.ZP,{entityName:"Domain",formName:f,mode:"create",defaultValues:d,locale:l,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Domain/".concat(t)}]}}];r({title:c.formatMessage({id:"client.docs-browser.createDomainSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t,n;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(n=t.toaster)||void 0===n?void 0:n.title)})(e)||u(e)}})})))},36340:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=n(74806),o=n(32540),a=n(25660),i=n(80722),c=n(20247),s=n(85893);const l=(0,c.U)((0,r.ZP)((function(e){var t=e.context,n=e.path,r=e.onSuccess,c=e.intl,l=e.locale,u=e.emitAction,p=(0,i.Z)(n),d=p?[{id:"rel".concat(p.model),value:p.key}]:[],f=(0,a.Z)(t,"Folder");return(0,s.jsx)(o.ZP,{entityName:"Folder",formName:f,mode:"create",defaultValues:d,locale:l,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Folder/".concat(t)}]}}];r({title:c.formatMessage({id:"client.docs-browser.createFolderSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t,n;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(n=t.toaster)||void 0===n?void 0:n.title)})(e)||u(e)}})})))},96954:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=n(59713),o=n.n(r),a=n(8156),i=n(85893);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const l=function(e){return(0,i.jsx)(a.Z,s(s({},e),{},{customDeleteEndpoint:"documents/delete"}))}},90100:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=n(63038),o=n.n(r),a=n(32540),i=n(25660),c=n(20247),s=n(85893);const l=(0,c.U)((function(e){var t=e.selection,n=e.onSuccess,r=e.onCancel,c=e.locale,l=e.context,u=e.emitAction,p=e.navigate,d=t.ids[0].split("/"),f=o()(d,2),m=f[0],h=f[1];"Resource"===m&&(p("/docs/doc/".concat(h,"/detail")),r());var y=(0,i.Z)(l,m);return(0,s.jsx)(a.ZP,{entityName:m,formName:y,entityId:h,mode:"update",locale:c,onEntityUpdated:function(){var e=[{type:"entity-update-event",payload:{entities:[{entityName:"Docs_list_item",key:t.ids[0]}]}}];n({title:null,remoteEvents:e})},onEntityDeleted:function(){var e=[{type:"entity-delete-event",payload:{entities:[{entityName:"Docs_list_item",key:t.ids[0]}]}}];n({title:null,remoteEvents:e})},emitAction:function(e){(function(e){var t,n;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(n=t.toaster)||void 0===n?void 0:n.title)})(e)||u(e)}})}))},4505:(e,t,n)=>{n.r(t),n.d(t,{default:()=>R});var r,o,a,i=n(74806),c=n(50558),s=n(30081),l=n(20247),u=n(63038),p=n.n(u),d=n(28655),f=n.n(d),m=n(18446),h=n.n(m),y=n(1024),g=n(44012),v=n(58804),b=n(36589),x=n(50258),w=n(65035),k=n(12587),j=n(80722),Z=n(85893),P=v.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(r||(r=f()(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),b.Z),O=(0,v.ZP)(x.Z).withConfig({displayName:"StyledLoadMask"})(o||(o=f()(["\n height: auto;\n"]))),_=function(e){return null===e?"Move_root_docs_list_item":"Move_docs_list_item"},N={initialize:s.j2,moveElements:s.w6};const R=(0,l.U)((0,c.connect)((function(e){return{isWaiting:e.docs.move.isWaiting,domainTypes:e.input.domainTypes,rootNodes:e.input.rootNodes,businessUnit:e.input.businessUnit,locale:e.intl.locale}}),N)((0,i.ZP)((function(e){var t=e.selection,n=e.onSuccess,r=e.onError,o=e.path,i=e.initialize,c=e.moveElements,s=e.isWaiting,l=e.domainTypes,u=e.rootNodes,d=e.businessUnit,f=e.locale,m=e.emitAction,v=(0,j.Z)(o),b={model:"Docs_list_item",key:"".concat(v.model,"/").concat(v.key)},x=(0,y.useState)(b),N=p()(x,2),R=N[0],C=N[1];(0,y.useEffect)((function(){i(t,n,r)}),[]);var E=function(e,t){switch(e){case"Domain":return"/docs/domain/".concat(t,"/list");case"Folder":return"/docs/folder/".concat(t,"/list");case"Resource":return;default:throw new Error("Unexpected model: ".concat(e))}};return(0,Z.jsxs)(O,{required:[!s],children:[(0,Z.jsx)(k.default,{routerType:"routerless",initialLocation:function(){if(null===R)return null;var e=R.key.split("/"),t=p()(e,2),n=t[0],r=t[1];return E(n,r)}(),listLimit:10,selectionStyle:"none",searchFormType:"none",disableViewPersistor:!0,getListFormName:_,onListParentChange:C,getCustomLocation:E,navigationStrategy:{},embedded:!0,emitAction:m,noLeftPadding:!0,domainTypes:l,rootNodes:u,businessUnit:d,sortable:!1,scrollBehaviour:"none",locale:f}),(0,Z.jsx)(P,{children:(0,Z.jsx)(w.Z,{onClick:function(){return c(R.key,t.ids)},look:"raised",ink:"primary",disabled:null===R||h()(R,b),children:a||(a=(0,Z.jsx)(g.Z,{id:"client.actions.dms-move.button"}))})})]})}))))},77840:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r.ZP});var r=n(79217)},82445:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r.ZP});var r=n(32540)},25660:(e,t,n)=>{n.d(t,{Z:()=>r});const r=function(e,t){return e.detailFormNames&&e.detailFormNames[t]?e.detailFormNames[t]:"Dms".concat(t)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[802],{8156:(e,t,n)=>{n.d(t,{Z:()=>bt});var r,o=n(45697),a=n.n(o),i=n(50600),l=n(34871),c=n(45430),s=n(47490),u=n(73665),d=n(74806),p=n(50558),f="root/LOAD_DIALOG_INFO",y="delete/SET_DELETE_DIALOG_INFO",h="delete/DO_DELETE",b="delete/SET_DELETING_IN_PROGRESS",m="delete/ON_CANCEL",g="delete/SET_ENTITIES_TO_DELETE",v=function(e){return{type:y,payload:{dialogInfo:e}}},x=function(){return{type:h}},E=function(e){return{type:g,payload:{entitiesToDelete:e}}},Z=n(1024),j=n.n(Z),k=n(50258),O=n(44012),w=n(93235),D=n(34206),P=n(319),S=n.n(P),_=n(63038),T=n.n(_),N=n(28655),R=n.n(N),I=n(58804),C=n(76791),F=n(85893);const A=function(e){var t=e.relatedEntity,n=e.children,o=e.maxCountLink;if(t.keys.length<o&&0===t.keysOtherBu.length)return n;var a=(0,F.jsxs)(F.Fragment,{children:[t.keys.length>o&&(r||(r=(0,F.jsx)(D.ZP.P,{children:(0,F.jsx)(O.Z,{id:"client.delete.tooManyRecords"})}))),t.keysOtherBu.length>0&&(0,F.jsx)(D.ZP.P,{children:(0,F.jsx)(O.Z,{id:"client.delete.recordInOtherBU",values:{count:t.keysOtherBu.length}})})]});return(0,F.jsx)(C.Z,{content:a,placement:"top",children:n})};var L,M,V=I.ZP.span.withConfig({displayName:"NonBreakingText"})(L||(L=R()(["\n white-space: nowrap;\n"])));const U=function(e){var t=e.rootEntities,n=e.relatedEntities,r=e.maxCountLink,o=e.navigationStrategy;return(0,F.jsxs)(D.ZP.Span,{children:[(0,F.jsx)(D.ZP.B,{children:Object.entries(t).map((function(e){var t=T()(e,2),n=t[0],r=t[1];return(0,F.jsxs)("span",{children:[r.entityLabel," (",r.keys.length>0&&o.ListLink?(0,F.jsx)(o.ListLink,{entityName:n,entityKeys:r.keys,children:r.keys.length}):(0,F.jsx)(D.ZP.Span,{children:r.keys.length}),")"]},"root-entity-".concat(n))})).reduce((function(e,t){return[e,", ",t]}))}),Object.keys(n).length>0&&(0,F.jsxs)(F.Fragment,{children:[M||(M=(0,F.jsx)("span",{children:" / "})),Object.keys(n).map((function(e){var t=n[e],a=[].concat(S()(t.keys),S()(t.keysOtherBu)).length,i=t.keys.length>0&&o.ListLink?(0,F.jsx)(o.ListLink,{entityName:e,entityKeys:t.keys.slice(0,r),children:a}):(0,F.jsx)(D.ZP.Span,{children:a}),l=(0,F.jsx)(A,{relatedEntity:t,maxCountLink:r,children:i});return(0,F.jsx)(j().Fragment,{children:(0,F.jsxs)(V,{children:[t.entityLabel," (",l,")"]})},"entity-info-"+e)})).reduce((function(e,t){return[e,", ",t]}))]})]})};var z,B,q,W=n(7281),H=I.ZP.div.withConfig({displayName:"StyledIconWrapper"})(z||(z=R()(["\n margin-bottom: ",";\n"])),W.Z.space(.2));const Y=function(e){var t=e.dialogInfo,n=e.navigationStrategy;return(0,F.jsxs)(F.Fragment,{children:[B||(B=(0,F.jsx)(H,{children:(0,F.jsx)(w.Z,{size:"30px"})})),q||(q=(0,F.jsx)(D.ZP.P,{children:(0,F.jsx)(O.Z,{id:"client.delete.deleteInProgress"})})),(0,F.jsx)(U,{rootEntities:t.rootEntitiesDeletable,relatedEntities:t.relatedDeletable,maxCountLink:100,navigationStrategy:n},"infopart-deletable")]})};var G={doDelete:x};const K=(0,p.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,navigationStrategy:e.input.navigationStrategy}}),G)((0,d.ZP)(Y));var Q,$,X=n(78958),J=n(91411),ee=n(46927),te=n(27361),ne=n.n(te),re=n(54581),oe=n(88601),ae=n(58664),ie=[X.Z.condition.BASE,X.Z.condition.DANGER,X.Z.condition.SUCCESS,X.Z.condition.WARNING],le=(Q={},(0,ee.Z)(Q,X.Z.condition.DANGER,oe.Z.color("signal.danger.paper")),(0,ee.Z)(Q,X.Z.condition.SUCCESS,oe.Z.color("signal.success.paper")),(0,ee.Z)(Q,X.Z.condition.WARNING,oe.Z.color("signal.warning.paper")),(0,ee.Z)(Q,X.Z.condition.BASE,(function(e){return(0,ae.HO)(ne()(e.theme,"colors.paper"),1)})),Q),ce=I.ZP.div.withConfig({displayName:"StyledSignalBox"})($||($=(0,J.Z)(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n border-radius: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n\n "," {\n color: inherit;\n }\n }\n"])),(function(e){return function(e){return le[e.condition]||(0,ae.HO)(ne()(e.theme,"colors.paper"),1)}(e)}),W.Z.space(-1),W.Z.space(-1),oe.Z.radii("radii.regular"),re.Z);ce.propTypes={condition:X.Z.oneOfPropTypeAndCompletelyMapped(ie,le)};var se=function(e){return(0,F.jsxs)(ce,{condition:e.condition,children:[e.title&&(0,F.jsx)(D.ZP.H5,{children:e.title}),j().Children.map(e.children,(function(e){return j().cloneElement(e)})),e.meta&&(0,F.jsx)(D.ZP.Small,{children:e.meta})]})};se.defaultProps={condition:X.Z.condition.BASE};const ue=se;var de,pe,fe,ye,he,be,me,ge=n(65035),ve=n(36589),xe=I.ZP.div.withConfig({displayName:"StyledSectionWrapper"})(de||(de=R()(["\n padding-top: ",";\n"])),W.Z.space(.6)),Ee=I.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(pe||(pe=R()(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),ve.Z);const Ze=function(e){var t=e.dialogInfo,n=t.rootEntitiesDeletable,r=t.rootEntitiesNotDeletable,o=t.relatedDeletable,a=t.relatedNotDeletable,i=t.hasUnreadableEntities,l=e.doDelete,c=e.onCancel,s=e.navigationStrategy;return(0,F.jsxs)(F.Fragment,{children:[fe||(fe=(0,F.jsx)(D.ZP.P,{children:(0,F.jsx)(O.Z,{id:"client.delete.confirmText"})})),(0,F.jsx)(U,{rootEntities:n,relatedEntities:o,maxCountLink:100,navigationStrategy:s},"infopart-deletable"),Object.keys(r).length>0&&(0,F.jsxs)(xe,{children:[ye||(ye=(0,F.jsx)(D.ZP.P,{children:(0,F.jsx)(O.Z,{id:"client.delete.textNotDeletable"})})),(0,F.jsx)(U,{rootEntities:r,relatedEntities:a,maxCountLink:100,navigationStrategy:s},"infopart-notdeletable")]}),i&&(he||(he=(0,F.jsx)(xe,{children:(0,F.jsx)(ue,{condition:"warning",children:(0,F.jsx)(D.ZP.Span,{children:(0,F.jsx)(O.Z,{id:"client.delete.unreadableEntities"})})})}))),(0,F.jsx)(xe,{children:(0,F.jsxs)(Ee,{children:[(0,F.jsx)(ge.Z,{onClick:l,disabled:Object.keys(n).every((function(e){return 0===n[e].keys.length})),children:be||(be=(0,F.jsx)(O.Z,{id:"client.delete.deleteButton"}))}),(0,F.jsx)(ge.Z,{ink:"primary",onClick:c,children:me||(me=(0,F.jsx)(O.Z,{id:"client.delete.cancelButton"}))})]})})]})};var je={doDelete:x,onCancel:function(){return{type:m}}};const ke=(0,p.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,navigationStrategy:e.input.navigationStrategy}}),je)((0,d.ZP)(Ze));var Oe,we;const De=function(e){var t=e.loadDialogInfo,n=e.dialogInfo,r=e.deletingInProgress,o=e.intl;(0,Z.useEffect)((function(){t()}),[t]);var a;return r?Oe||(Oe=(0,F.jsx)(K,{})):(0,F.jsx)(k.Z,{required:[n],loadingText:(a="client.delete.loadingText",o.formatMessage({id:a})),children:n&&(we||(we=(0,F.jsx)(ke,{})))})};var Pe={loadDialogInfo:function(){return{type:f}}};const Se=(0,p.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,deletingInProgress:e.del.deletingInProgress}}),Pe)((0,d.ZP)(De));var _e,Te=n(59713),Ne=n.n(Te),Re=n(81770),Ie=(_e={},Ne()(_e,y,Re.Z.singleTransferReducer("dialogInfo")),Ne()(_e,g,Re.Z.singleTransferReducer("entitiesToDelete")),Ne()(_e,b,Re.Z.singleTransferReducer("deletingInProgress")),_e),Ce={dialogInfo:null,entitiesToDelete:null,deletingInProgress:!1};var Fe=n(87757),Ae=n.n(Fe),Le=n(34857),Me=n(63094);function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){Ne()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ze="DELETABLE",Be=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.rootEntity,o=r.entityName,a=r.entityLabel,i=r.key;if(i.includes("/")){var l=i.split("/"),c=T()(l,2),s=c[0],u=c[1];return Ue(Ue({},e),{},Ne()({},s,{entityLabel:a,keys:[].concat(S()(ne()(e,[s,"keys"],[])),S()(n?[u]:[]))}))}return Ue(Ue({},e),{},Ne()({},o,{entityLabel:a,keys:[].concat(S()(ne()(e,[o,"keys"],[])),S()(n?[i]:[]))}))},qe=function(e){return e.rootEntity.deleteStatus===ze&&!e.affectedEntities.find((function(e){return e.deleteStatus!==ze}))},We=function(e,t){var n=e.entitiesToDelete;return n.reduce((function(e,n){var r=qe(n),o=r?"relatedDeletable":"relatedNotDeletable";return Ue(Ue(Ue({},e),{},{rootEntitiesDeletable:Be(e.rootEntitiesDeletable,n,r)},!r&&{rootEntitiesNotDeletable:Be(e.rootEntitiesNotDeletable,n)}),{},Ne()({},o,function(e,t,n,r){return Ue({},t.affectedEntities.reduce((function(e,t){return Ue(Ue({},e),n||t.deleteStatus!==ze?Ne()({},t.entityName,Ue(Ue({},ne()(e,t.entityName,{keys:[],keysOtherBu:[],entityLabel:t.entityLabel})),null===t.businessUnitId||t.businessUnitId===r?{keys:Array.from(new Set([].concat(S()(ne()(e,[t.entityName,"keys"],[])),[t.key])))}:{keysOtherBu:Array.from(new Set([].concat(S()(ne()(e,[t.entityName,"keysOtherBu"],[])),[t.key])))})):{})}),Ue({},e)))}(e[o],n,r,t)))}),{rootEntitiesDeletable:{},rootEntitiesNotDeletable:{},relatedDeletable:{},relatedNotDeletable:{},hasUnreadableEntities:!!n.find((function(e){return e.unreadableEntities}))})},He=function(e){var t=e.entitiesToDelete;return{entityName:ne()(t,"[0].rootEntity.entityName"),keys:t.reduce((function(e,t){return[].concat(S()(e),S()(qe(t)?[t.rootEntity.key]:[]))}),[])}},Ye=a().shape({entityLabel:a().string,keys:a().arrayOf(a().string),keysOtherBu:a().arrayOf(a().string)}),Ge=(a().shape({rootEntitiesDeletable:a().objectOf(Ye).isRequired,rootEntitiesNotDeletable:a().objectOf(Ye).isRequired,relatedDeletable:a().objectOf(Ye).isRequired,relatedNotDeletable:a().objectOf(Ye).isRequired,hasUnreadableEntities:a().bool}),Ae().mark(rt)),Ke=Ae().mark(ot),Qe=Ae().mark(at),$e=Ae().mark(it),Xe=Ae().mark(lt),Je=Ae().mark(ct),et=function(e){return e.input},tt=function(e){return e.intl.messages},nt=function(e){return e.del.entitiesToDelete};function rt(){var e,t,n;return Ae().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Le.Ys)(et);case 2:return e=r.sent,t=e.selection,r.next=6,(0,Le.RE)(u.Z.getEntities,t,Me.Z.fetchEntities);case 6:return n=r.sent,r.abrupt("return",{entityModel:n.entityName,keys:n.keys});case 8:case"end":return r.stop()}}),Ge)}function ot(){var e,t;return Ae().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Le.Ys)(et);case 2:return e=n.sent,t=e.customDeleteEndpoint,n.abrupt("return",t||"client/delete");case 5:case"end":return n.stop()}}),Ke)}function at(){var e,t,n,r,o,a,i,l;return Ae().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,Le.RE)(rt);case 2:return e=c.sent,c.next=5,(0,Le.RE)(ot);case 5:return t=c.sent,c.next=8,(0,Le.$6)([(0,Le.RE)(Me.Z.requestSaga,"".concat(t,"/dialog"),{method:"POST",body:e}),(0,Le.RE)(Me.Z.fetchPrincipal)]);case 8:return n=c.sent,r=T()(n,2),o=r[0],a=r[1],c.next=14,(0,Le.RE)(We,o.body,a.currentBusinessUnit.id);case 14:return i=c.sent,c.next=17,(0,Le.gz)(v(i));case 17:return c.next=19,(0,Le.RE)(He,o.body);case 19:return l=c.sent,c.next=22,(0,Le.gz)(E(l));case 22:case"end":return c.stop()}}),Qe)}function it(){var e,t,n,r,o,a,i,l;return Ae().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,Le.Ys)(nt);case 2:return e=s.sent,s.next=5,(0,Le.gz)({type:b,payload:{deletingInProgress:!0}});case 5:return t={entityModel:e.entityName,keys:e.keys},s.next=8,(0,Le.RE)(ot);case 8:return n=s.sent,s.next=11,(0,Le.RE)(Me.Z.requestSaga,n,{method:"POST",body:t,acceptedStatusCodes:[409]});case 11:return r=s.sent,s.next=14,(0,Le.Ys)(tt);case 14:if(o=s.sent,!r.ok){s.next=23;break}return a=r.body,i=Object.keys(a.deletedEntities).reduce((function(e,t){return[].concat(S()(e),S()(a.deletedEntities[t].map((function(e){return{entityName:t,key:e}}))))}),[]),l=[{type:"entity-delete-event",payload:{entities:i}}],s.next=21,(0,Le.gz)(c.Z.fireExternalEvent("onSuccess",{message:o["client.delete.successfullyMessage"],remoteEvents:l}));case 21:case 26:s.next=30;break;case 23:if(409!==r.status||!r.body.information){s.next=28;break}return s.next=26,(0,Le.gz)(c.Z.fireExternalEvent("onError",{message:r.body.information}));case 28:return s.next=30,(0,Le.gz)(c.Z.fireExternalEvent("onError",{message:o["client.delete.errorMessage"]}));case 30:case"end":return s.stop()}}),$e)}function lt(){return Ae().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Le.gz)(c.Z.fireExternalEvent("onCancel"));case 2:case"end":return e.stop()}}),Xe)}function ct(){return Ae().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Le.$6)([(0,Le.Fm)(f,at),(0,Le.Fm)(h,it),(0,Le.Fm)(m,lt)]);case 2:case"end":return e.stop()}}),Je)}const st={del:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ce,t=arguments.length>1?arguments[1]:void 0,n=Ie[t.type];return n?n(e,t):e}};var ut,dt=[ct],pt="delete",ft=["onSuccess","onCancel","onError","emitAction"],yt=function(e,t,n,r){var o=ut||(ut=(0,F.jsx)(Se,{})),a=l.Z.createStore(st,dt,t,pt);i.Z.addToStore(a,n.emitAction);var u=!n.emitAction;return s.Z.addToStore(a,u),c.Z.addToStore(a,n),l.Z.createApp(pt,o,a,{input:t,events:n,actions:[],publicPath:r,textResourceModules:["component","common",pt]})};l.Z.registerAppInRegistry(pt,yt);var ht=function(e){return l.Z.useApp({initApp:yt,props:e,packageName:pt,externalEvents:ft}).component};ht.propTypes={selection:u.Z.propType.isRequired,customDeleteEndpoint:a().string};const bt=ht;l.Z.createBundleableApp(pt,yt,ht)},1084:(e,t,n)=>{n.d(t,{Z:()=>x});var r=n(59713),o=n.n(r),a=n(87757),i=n.n(a),l=n(34857),c=n(92745),s=n(63094);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=i().mark(b),f=i().mark(m),y=i().mark(g),h=i().mark(v);function b(e,t,n,r){var o,a;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=n.filter((function(e){return"display"===e.componentType})).map((function(e){return e.id})),i.next=3,(0,l.RE)(m,t,r,o,[e]);case 3:(a=i.sent)&&Object.keys(a[e.__key]).forEach((function(t){e[t]=a[e.__key][t]}));case 5:case"end":return i.stop()}}),p)}function m(e,t,n,r){var o,a;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!(n&&n.length>0)){i.next=6;break}return o=r.map((function(e){return e.__key})),a=r[0].__model,i.next=5,(0,l.RE)(s.Z.fetchDisplayExpressions,e,t,o,n,a);case 5:return i.abrupt("return",i.sent);case 6:case"end":return i.stop()}}),f)}function g(e,t){var n,r;return i().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n=t.filter((function(e){return c.Z.relationFieldTypes.includes(e.dataType)})).map((function(e){return e.path})),o.next=3,(0,l.RE)(v,n,[e]);case 3:r=o.sent,n.forEach((function(t){var n=e[t];n&&(e[t]=Array.isArray(n)?n.filter((function(e){return null!==e})).map((function(e){return d(d({},e),{},{display:r[e.model][e.key]})})):d(d({},n),{},{display:r[n.model][n.key]}))}));case 5:case"end":return o.stop()}}),y)}function v(e,t){var n;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e&&e.length>0)){r.next=7;break}return r.next=3,(0,l.RE)(c.Z.getPathDisplayRequest,t,e,{});case 3:return n=r.sent,r.next=6,(0,l.RE)(s.Z.fetchDisplays,n);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),h)}const x={enhanceEntityWithDisplayExpressions:b,enhanceEntityWithDisplays:g}},73665:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(45697),o=n.n(r);const a={ID:"ID",QUERY:"QUERY"},i=o().shape({entityName:o().string.isRequired,ids:function(e,t,n){if(e.selection&&e.selection.type===a.ID&&!e.selection[t])return new Error("Selection.ids prop not defined. Component: ".concat(n,"'."))},query:function(e,t,n){if(e.selection&&e.selection.type===a.QUERY&&!e.selection[t])return new Error("Selection.query prop not defined. Component: ".concat(n,"'."))},type:o().oneOf(Object.keys(a)).isRequired,count:o().number});var l=n(59713),c=n.n(l),s=n(87757),u=n.n(s),d=n(34857),p=n(44759),f=u().mark(m);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=1e5;function m(e,t){var n,r;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n=e.entityName,e.type!==a.QUERY){o.next=9;break}return o.next=4,(0,d.RE)(t,e.entityName,h(h({},e.query),{},{limit:b}));case 4:if(!((r=o.sent).length>b)){o.next=8;break}return o.next=8,(0,d.RE)(p.Z.logError,"Selected records exceed limit of ".concat(b));case 8:return o.abrupt("return",{entityName:n,keys:r.map((function(e){return e.key}))});case 9:return o.abrupt("return",{entityName:n,keys:e.ids});case 10:case"end":return o.stop()}}),f)}const g={getEntities:m,getSingleKey:function(e,t){if(e.entityName!==t)throw new Error("Only selection of ".concat(t," supported"));if("ID"!==e.type)throw new Error("Only ID selection type supported");if(!e.ids||1!==e.ids.length)throw new Error("Exactly one ".concat(t," must be selected"));return e.ids[0]},propType:i,selectionTypes:a}},32540:(e,t,n)=>{n.d(t,{ZP:()=>Ar});var r=n(59713),o=n.n(r),a=n(41609),i=n.n(a),l=n(18446),c=n.n(l),s=n(35937),u=n.n(s),d=n(45697),p=n.n(d),f=n(50600),y=n(60598),h=n(34871),b=n(19743),m=n(45430),g=n(39246),v=n(75139),x=n(47490),E=n(82709),Z=n(39744),j=n(79217),k=n(2588),O=n(10683),w=n(35997),D=n(74806),P=n(50558);var S=n(14892);const _=(T=S.Z,N=T.getIn,function(e,t){return function(n){var r=t||function(e){return N(e,"form")};return N(r(n),e+".initial")}});var T,N,R=n(1024),I=n(50258),C=n(85208),F=n(86386),A=n(23369);const L="create",M="update";const V={NONE:"none",REDUCED:"reduced",FULL:"full"};var U,z,B,q,W,H,Y=function(e,t){var n=t.useNiceFields;return e===L?V.NONE:n?V.FULL:V.REDUCED},G=["create_timestamp","update_timestamp","create_user","update_user","version"],K=function(e,t){var n=Y(e,t),r=t.keyField;switch(n){case V.FULL:return[r].concat(G);case V.REDUCED:return[r];default:return[]}},Q=n(44012),$=n(28655),X=n.n($),J=n(58804),ee=n(7281),te=n(40953),ne=n(69829),re=n(88601),oe=n(19704),ae=J.ZP.div.withConfig({displayName:"StyledFooterWrapper"})(U||(U=X()(["\n max-width: 650px;\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: ",";\n margin-right: ",";\n\n && {\n * {\n color: ",";\n font-size: ",";\n }\n }\n"])),ee.Z.font(0),ee.Z.font(0),te.v.shade2,ee.Z.font(-.8)),ie=J.ZP.div.withConfig({displayName:"StyledFooterItemWrapper"})(z||(z=X()(["\n display: flex;\n"]))),le=(0,J.ZP)(ne.Fe).withConfig({displayName:"StyledFooterItemLabel"})(B||(B=X()(["\n && {\n margin-right: ",";\n font-weight: ",";\n ","\n }\n"])),ee.Z.space(-1.37),re.Z.fontWeight("bold"),oe.l),ce=J.ZP.span.withConfig({displayName:"StyledFooterItemValue"})(q||(q=X()(["\n flex: 1;\n overflow: hidden;\n"]))),se=J.ZP.span.withConfig({displayName:"StyledTimestampValueWrapper"})(W||(W=X()(["\n display: flex;\n"]))),ue=(0,J.ZP)(ne.Fe).withConfig({displayName:"StyledTimestampRelativeValue"})(H||(H=X()(["\n && {\n margin-left: ",";\n }\n"])),ee.Z.space(-1.37)),de=n(85893);const pe=function(e){var t=e.labelId,n=e.valueComponent;return(0,de.jsxs)(ie,{children:[(0,de.jsxs)(le,{children:[(0,de.jsx)(Q.Z,{id:t}),":"]}),(0,de.jsx)(ce,{children:(0,de.jsx)(n,{})})]})};var fe=n(34206);const ye=function(e){var t=e.value;return(0,de.jsx)(fe.ZP.Span,{children:t})};var he=n(34115),be=n(48272),me=n(42060);const ge=function(e){var t=e.value,n=(0,he.W)(new Date(t)),r=n.value,o=n.unit;return(0,de.jsxs)(se,{children:[(0,de.jsx)(me.Z,{value:t,type:"datetime"}),(0,de.jsxs)(ue,{children:["(",(0,de.jsx)(be.Z,{value:r,unit:o}),")"]})]})};const ve=function(e){var t=e.entity,n=e.keyField;return(0,de.jsxs)(ae,{children:[(0,de.jsxs)("div",{children:[(0,de.jsx)(pe,{labelId:"client.entity-detail.footer.created",valueComponent:function(){return(0,de.jsx)(ge,{value:t.paths.create_timestamp.value})}}),(0,de.jsx)(pe,{labelId:"client.entity-detail.footer.by",valueComponent:function(){return(0,de.jsx)(ye,{value:t.paths.create_user.value})}})]}),(0,de.jsxs)("div",{children:[(0,de.jsx)(pe,{labelId:"client.entity-detail.footer.updated",valueComponent:function(){return(0,de.jsx)(ge,{value:t.paths.update_timestamp.value})}}),(0,de.jsx)(pe,{labelId:"client.entity-detail.footer.by",valueComponent:function(){return(0,de.jsx)(ye,{value:t.paths.update_user.value})}})]}),(0,de.jsxs)("div",{children:[(0,de.jsx)(pe,{labelId:"client.entity-detail.footer.version",valueComponent:function(){return(0,de.jsx)(ye,{value:t.paths.version.value})}}),(0,de.jsx)(pe,{labelId:"client.entity-detail.footer.key",valueComponent:function(){return(0,de.jsx)(ye,{value:t.paths[n].value})}})]})]})};const xe=function(e){var t=e.entity,n=e.keyField;return(0,de.jsx)(ae,{children:(0,de.jsx)("div",{children:(0,de.jsx)(pe,{labelId:"client.entity-detail.footer.key",valueComponent:function(){return(0,de.jsx)(ye,{value:t.paths[n].value})}})})})};const Ee=function(e){var t=e.mode,n=e.entity,r=e.entityModel;switch(Y(t,r)){case V.FULL:return(0,de.jsx)(ve,{entity:n,keyField:r.keyField});case V.REDUCED:return(0,de.jsx)(xe,{entity:n,keyField:r.keyField});default:return null}};const Ze=(0,P.connect)((function(e){return{mode:e.entityDetail.mode,entity:e.entityDetail.entity,entityModel:e.entityDetail.entityModel}}))((0,D.ZP)(Ee));var je,ke=n(29441),Oe=J.ZP.div.withConfig({displayName:"StyledListApp"})(je||(je=X()(["\n width: 100%;\n"]))),we=function(e){var t="".concat(e.detailFormName,"_").concat(e.formField.path),n="".concat(e.appId,"-subgrid-").concat(e.entityName,"-").concat(e.entityKey,"-").concat(e.formField.targetEntity,"-").concat(e.formField.reverseRelation);return(0,de.jsx)(Oe,{children:(0,de.jsx)(j.ZP,{id:n,entityName:e.formField.targetEntity,formName:t,limit:e.limit,searchFormType:e.showSearchForm?"simple_advanced":"none",navigationStrategy:e.navigationStrategy,showLink:!0,onRowClick:function(t){e.onRowClick&&e.onRowClick({id:t.id,gridName:e.formField.path,relationName:e.formField.path})},onNavigateToCreate:function(){e.navigateToCreate(e.formField.path)},parent:{key:e.entityKey,reverseRelationName:e.formField.reverseRelation,model:e.entityName,relationName:e.formField.path},emitAction:e.emitAction,store:ke.Z.viewInfoSelector(n).store,onStoreCreate:function(e){ke.Z.persistViewInfo(n,{store:e})},scrollBehaviour:"inline",tableMinHeight:"300px",locale:e.locale,modifyFormDefinition:e.modifyFormDefinition,actionAppComponent:e.actionAppComponent,reportIds:e.reportIds})})};we.defaultProps={limit:5};const De=we;var Pe="entityDetail/SET_FORM_DEFINITION",Se="entityDetail/LOAD_DETAIL_VIEW",_e="entityDetail/SET_ENTITY",Te="entityDetail/SUBMIT_FORM",Ne="entityDetail/SET_LAST_SAVE",Re="entityDetail/SET_ENTITY_MODEL",Ie="entityDetail/UNLOAD_DETAIL_VIEW",Ce="entityDetail/FIRE_TOUCHED",Fe="entityDetail/SET_TOUCHED",Ae="entityDetail/SET_ENTITY_NAME",Le="entityDetail/SET_ENTITY_ID",Me="entityDetail/SET_MODE",Ve="entityDetail/SET_FORM_NAME",Ue="entityDetail/SET_APP_ID",ze="entityDetail/TOCH_ALL_FIELDS",Be="entityDetail/SET_DEFAULT_VALUES",qe="entityDetail/NAVIGATE_TO_CREATE",We="entityDetail/SET_FIELD_DEFINITIONS",He="entityDetail/NAVIGATE_TO_ACTION",Ye="entityDetail/UPDATE_MARKED",Ge="entityDetail/SET_MARKED",Ke="entityDetail/FORM_SUBMISSION_FAILED",Qe="entityDetail/FORM_SUBMITTED",$e=function(e){return{type:Pe,payload:{formDefinition:e}}},Xe=function(e,t){return{type:Se,payload:{modelPaths:e,entityId:t}}},Je=function(e){return{type:_e,payload:{entity:e}}},et=function(){return{type:Te}},tt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();return{type:Ne,payload:{lastSave:e}}},nt=function(e){return{type:Re,payload:{entityModel:e}}},rt=function(){return{type:Ie}},ot=function(e){return{type:qe,payload:{relationName:e}}},at=function(e){return{type:We,payload:{fieldDefinitions:e}}},it=function(e,t){return{type:He,payload:{definition:e,selection:t}}},lt=function(e){return{type:Ge,payload:{marked:e}}},ct=function(){return{type:Ke}},st={onRowClick:function(e){return m.Z.fireExternalEvent("onSubGridRowClick",{id:e.id,gridName:e.gridName,relationName:e.relationName})},navigateToCreate:ot,emitAction:function(e){return f.Z.dispatchEmittedAction(e)}};const ut=(0,P.connect)((function(e,t){return{appId:e.entityDetail.appId,entityKey:e.entityDetail.entity.key,entityName:e.entityDetail.entity.model,detailFormName:e.entityDetail.formDefinition.id,navigationStrategy:e.input.navigationStrategy,locale:e.intl.locale,modifyFormDefinition:e.input.modifyFormDefinition,actionAppComponent:e.input.actionAppComponent,reportIds:e.input.reportIds}}),st)(De),dt=function(e,t){return(0,de.jsx)(ut,{formField:e,showSearchForm:e.showSearchForm,limit:e.limit||void 0},t)};var pt,ft,yt,ht,bt,mt=n(76791),gt=J.ZP.div.withConfig({displayName:"StyledErrorItemWrapper"})(pt||(pt=X()(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n"])),ee.Z.space(.4));const vt=function(e){var t=e.formErrors,n=null,r=[],o=E.Z.formErrorsUtil.hasFieldErrors(t),a=E.Z.formErrorsUtil.hasValidatorErrors(t),i=E.Z.formErrorsUtil.hasRelatedEntityErrors(t),l=E.Z.formErrorsUtil.getValidatorErrors(t),c=E.Z.formErrorsUtil.getRelatedEntityErrorsCompact(t);if(E.Z.formErrorsUtil.hasOutdatedError(t)){var s=E.Z.formErrorsUtil.getOutdatedError(t),u=(0,he.W)(new Date(s.updateTimestamp)),d=u.value,p=u.unit,f="client.entity-detail.".concat(s.sameEntity?"outdated":"relatedOutdated","ErrorTitle");r.push((0,de.jsxs)(gt,{children:[(0,de.jsx)(fe.ZP.H5,{children:(0,de.jsx)(Q.Z,{id:f,values:{model:s.model,key:s.key}})}),(0,de.jsx)(Q.Z,{id:"client.entity-detail.outdatedErrorDescription",values:{ago:(0,de.jsx)(be.Z,{value:d,unit:p}),user:s.updateUser}})]},"outDatedError"))}return o&&r.push(a||i?yt||(yt=(0,de.jsx)(gt,{children:(0,de.jsx)(fe.ZP.H5,{children:(0,de.jsx)(Q.Z,{id:"client.entity-detail.invalidFieldsError"})})},"hasFieldErrors")):ft||(ft=(0,de.jsx)(gt,{children:(0,de.jsx)(Q.Z,{id:"client.entity-detail.invalidFieldsError"})},"hasFieldErrors"))),a&&r.push((0,de.jsxs)(gt,{children:[ht||(ht=(0,de.jsx)(fe.ZP.H5,{children:(0,de.jsx)(Q.Z,{id:"client.entity-detail.validatorErrors"})})),l.map((function(e,t){return(0,de.jsx)(E.Z.ErrorItem,{message:e},t)}))]},"hasValidatorErrors")),i&&r.push((0,de.jsxs)(gt,{children:[bt||(bt=(0,de.jsx)(fe.ZP.H5,{children:(0,de.jsx)(Q.Z,{id:"client.entity-detail.invalidRelationErrors"})})),c.map((function(e,t){return(0,de.jsx)(E.Z.ErrorItem,{message:e},t)}))]},"hasRelatedEntityErrors")),r.length>0&&(n=(0,de.jsx)(de.Fragment,{children:r.map((function(e){return e}))})),n},xt=vt;var Et,Zt,jt=n(65035),kt=(0,J.ZP)(jt.Z).withConfig({displayName:"StyledSaveButton"})(Et||(Et=X()(["\n ","\n display: block;\n"])),(function(e){return e.hasErrors&&"\n background-color: ".concat(re.Z.color("paper"),";\n ")})),Ot=J.ZP.span.withConfig({displayName:"StyledActionSpan"})(Zt||(Zt=X()(["\n cursor: pointer;\n display: flex;\n height: 100%;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n\n &:hover {\n color: ",";\n }\n ","\n"])),re.Z.color("secondaryLight"),(function(e){var t=e.marked,n=e.theme;return t&&"color: ".concat(n.colors.secondary,";")}));const wt=function(e){var t,n=e.submitting,r=e.mode,o=e.intl,a=e.hasErrors,i=e.formErrors,l=e.icon;return(0,de.jsx)(mt.Z,{content:a?(0,de.jsx)(xt,{formErrors:i}):null,placement:"bottom",children:(0,de.jsx)(kt,{"data-cy":"detail-form_submit-button",id:"detail-save_button",disabled:n,ink:"primary",label:(t="client.entity-detail.".concat(r===L?"create":"save"),o.formatMessage({id:t})),look:a?"flat":"raised",pending:n,type:"submit",hasErrors:a,icon:a?"exclamation":l})})};var Dt=n(63038),Pt=n.n(Dt),St=n(88162),_t={updateMarked:function(e,t,n){return{type:Ye,payload:{entityName:e,entityId:t,marked:n}}}};const Tt=(0,P.connect)((function(e){return{entityName:e.entityDetail.entityName,entityId:e.entityDetail.entityId,marked:e.entityDetail.marked}}),_t)((function(e){var t=e.entityName,n=e.entityId,r=e.marked,o=e.updateMarked,a=(0,R.useState)(!1),i=Pt()(a,2),l=i[0],c=i[1];(0,R.useEffect)((function(){r||c(!1)}),[r]);return(0,de.jsx)(fe.ZP.Span,{children:(0,de.jsx)(Ot,{marked:r,onClick:function(e){e.stopPropagation(),o(t,n,!r)},onMouseEnter:function(){return c(!0)},onMouseLeave:function(){return c(!1)},children:(0,de.jsx)(St.Z,{icon:r||l?"star-full":"star"})})})}));var Nt,Rt,It,Ct,Ft,At=n(11347),Lt=J.ZP.form.withConfig({displayName:"StyledForm"})(Nt||(Nt=X()(["\n display: flex;\n flex-direction: column;\n padding-bottom: ",";\n height: 100%;\n overflow-y: auto;\n ","\n"])),ee.Z.space(-.5),At.C),Mt=(0,J.ZP)(jt.Z).withConfig({displayName:"StyledSaveButton"})(Rt||(Rt=X()(["\n ","\n display: block;\n"])),(function(e){return e.hasErrors&&"\n background-color: ".concat(re.Z.color("paper"),";\n ")}));J.ZP.div.withConfig({displayName:"StyledActionWrapper"})(It||(It=X()(["\n "," {\n width: 100%;\n max-width: fit-content;\n justify-content: center;\n box-sizing: border-box;\n\n > * {\n overflow: hidden;\n }\n }\n"])),Mt),J.ZP.span.withConfig({displayName:"StyledActionSpan"})(Ct||(Ct=X()(["\n cursor: pointer;\n display: flex;\n height: 100%;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n\n &:hover {\n color: ",";\n }\n ","\n"])),re.Z.color("secondaryLight"),(function(e){var t=e.marked,n=e.theme;return t&&"color: ".concat(n.colors.secondary,";")}));function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const zt=(0,F.Z)({form:"detailForm",destroyOnUnmount:!1})((function(e){var t=e.fireTouched,n=e.dirty,r=e.intl,a=e.submitting,i=e.mode,l=e.formErrors,c=e.valid,s=e.submitForm,u=e.entity,d=e.formDefinition,p=e.formValues,f=e.anyTouched,y=e.form,h=(0,R.useRef)(null);w.Z.useAutofocus(h);var b=E.Z.hooks.useFormEvents({submitForm:s});(0,R.useEffect)((function(){t(n&&f)}),[n,f,t]);var m=(0,R.useMemo)((function(){return{save:function(e){return(0,de.jsx)(wt,Ut({intl:r,submitting:a,mode:i,hasErrors:!c&&f,formErrors:l},e))},mark:function(e){return(0,de.jsx)(Tt,Ut({},e))}}}),[a,i,c,f,l,r]),g=A.Z.getEmbedType();return(0,de.jsxs)(Lt,Ut(Ut({},b),{},{ref:h,children:[(0,de.jsx)(E.Z.FormBuilder,{entity:u,formName:y,formDefinition:d,formValues:p,fieldMappingType:d.readOnly?"readonly":"editable",mode:i,componentMapping:o()({},E.Z.componentTypes.SUB_TABLE,dt),customRenderedActions:m}),"admin"===g&&(Ft||(Ft=(0,de.jsx)(Ze,{})))]}))}));var Bt={unloadDetailView:rt,submitForm:et,fireTouched:function(e){return{type:Ce,payload:{touched:e}}},logError:b.Z.logError};const qt=(0,P.connect)((function(e){return{formDefinition:e.entityDetail.formDefinition,entity:e.entityDetail.entity,formValues:(0,C.Z)("detailForm")(e),formErrors:E.Z.selectors.getFormErrors("detailForm")(e),formInitialValues:_("detailForm")(e),lastSave:e.entityDetail.lastSave}}),Bt)((0,D.ZP)(zt));const Wt=function(e){var t=e.unloadDetailView,n=e.mode,r=e.formInitialValues,o=e.fieldDefinitions,a=e.formDefinition,i=e.intl;(0,R.useEffect)((function(){return function(){t()}}),[t]);var l,c=E.Z.hooks.useAsyncValidation({formInitialValues:r,fieldDefinitions:o,mode:n}),s=E.Z.hooks.useSyncValidation({fieldDefinitions:o,formDefinition:a}),u=o.map((function(e){return e.path}));return(0,de.jsx)(I.Z,{required:[r],loadingText:(l="client.entity-detail.loadingText",i.formatMessage({id:l})),children:(0,de.jsx)(qt,{mode:n,validate:s,asyncValidate:c,asyncBlurFields:u})})};var Ht={loadDetailView:Xe,unloadDetailView:rt,logError:b.Z.logError};const Yt=(0,P.connect)((function(e,t){return{entityName:e.entityDetail.entityName,entityId:e.entityDetail.entityId,entityModel:e.entityDetail.entityModel,formDefinition:e.entityDetail.formDefinition,fieldDefinitions:e.entityDetail.fieldDefinitions,mode:e.entityDetail.mode,formInitialValues:_("detailForm")(e)}}),Ht)((0,D.ZP)(Wt));var Gt=n(87757),Kt=n.n(Gt),Qt=n(34857);const $t={new:Kt().mark((function e(){return Kt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qt.gz)(ot());case 2:case"end":return e.stop()}}),e)})),fullscreen:Kt().mark((function e(t,n){return Kt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qt.gz)(it(t,n));case 2:case"end":return e.stop()}}),e)}))};var Xt,Jt,en,tn=n(41654),nn=function(e){var t=tn.Z.getDispatchActions(e,rn);return t.length>0&&t.push(Xe()),t},rn=[{name:"entityName",action:function(e){return{type:Ae,payload:{entityName:e}}},argsFactory:function(e){return[e.entityName]}},{name:"entityId",action:function(e){return{type:Le,payload:{entityId:e}}},argsFactory:function(e){return[e.entityId||null]}},{name:"mode",action:function(e){return{type:Me,payload:{mode:e}}},argsFactory:function(e){return[e.mode]}},{name:"formName",action:function(e){return{type:Ve,payload:{formName:e}}},argsFactory:function(e){return[e.formName]}},{name:"id",action:function(e){return{type:Ue,payload:{appId:e}}},argsFactory:function(e){return[e.id]}},{name:"defaultValues",action:function(e){return{type:Be,payload:{defaultValues:e}}},argsFactory:function(e){return[e.defaultValues]}}],on=n(58268),an=n(44422),ln=n(36589),cn=J.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(Xt||(Xt=X()(["\n position: sticky;\n bottom: 0;\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),ee.Z.space(0),re.Z.color("paper"),ln.Z);const sn=function(e){var t=e.onYes,n=e.onNo;return(0,R.useEffect)((function(){var e=function(e){"Enter"===e.key&&t()};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[t]),(0,de.jsxs)(cn,{children:[(0,de.jsx)(jt.Z,{ink:"primary",type:"button",onClick:t,children:Jt||(Jt=(0,de.jsx)(Q.Z,{id:"client.common.yes"}))}),(0,de.jsx)(jt.Z,{type:"button",onClick:n,children:en||(en=(0,de.jsx)(Q.Z,{id:"client.common.no"}))})]})},un=sn;var dn=n(319),pn=n.n(dn),fn=n(64738),yn=n(92708),hn=n(6722),bn=n(63094),mn=n(1084),gn=n(92745),vn=n(91755),xn=Kt().mark(Zn),En=Kt().mark(jn);function Zn(e,t){var n,r,o,a,i=arguments;return Kt().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return n=i.length>2&&void 0!==i[2]?i[2]:[],r={method:"PATCH",queryParams:{_paths:n.join(",")},body:e,acceptedErrorCodes:["VALIDATION_FAILED"],acceptedStatusCodes:[404,409]},o="entities/2.0/".concat(e.model,"/").concat(e.key),l.next=5,(0,Qt.RE)(bn.Z.requestSaga,o,r);case 5:if("VALIDATION_FAILED"!==(a=l.sent).body.errorCode){l.next=8;break}throw new vn.t(E.Z.validationErrorToFormError(e,t,a.body.errors));case 8:if(409!==a.status||!a.body.information){l.next=10;break}throw new bn.Z.InformationError(a.body.information);case 10:return l.abrupt("return",a.body);case 11:case"end":return l.stop()}}),xn)}function jn(e,t){var n,r,o,a,i,l,c=arguments;return Kt().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return n=c.length>2&&void 0!==c[2]?c[2]:[],r={method:"POST",queryParams:{_paths:n.join(",")},body:e,acceptedErrorCodes:["VALIDATION_FAILED"],acceptedStatusCodes:[403,409]},o="entities/2.0/".concat(e.model),s.next=5,(0,Qt.RE)(bn.Z.requestSaga,o,r);case 5:if(201!==(a=s.sent).status){s.next=12;break}return i=a.headers.get("Location"),l=i.split("/").pop(),s.abrupt("return",l);case 12:if(!a.body||"VALIDATION_FAILED"!==a.body.errorCode){s.next=14;break}throw new vn.t(E.Z.validationErrorToFormError(e,t,a.body.errors));case 14:if(403!==a.status){s.next=16;break}throw new bn.Z.ForbiddenException;case 16:if(409!==a.status||!a.body.information){s.next=18;break}throw new bn.Z.InformationError(a.body.information);case 18:throw new Error("unexpected error during save",a);case 19:case"end":return s.stop()}}),En)}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wn=Kt().mark(Qn),Dn=Kt().mark($n),Pn=Kt().mark(Xn),Sn=Kt().mark(Jn),_n=Kt().mark(er),Tn=Kt().mark(tr),Nn=Kt().mark(nr),Rn=Kt().mark(rr),In=Kt().mark(or),Cn=Kt().mark(ar),Fn=Kt().mark(ir),An=Kt().mark(lr),Ln=Kt().mark(cr),Mn=Kt().mark(sr),Vn=Kt().mark(ur),Un=Kt().mark(dr),zn=Kt().mark(pr),Bn=Kt().mark(fr),qn=Kt().mark(yr),Wn=Kt().mark(br),Hn=function(e){return e.entityDetail},Yn=function(e){return e.input},Gn="detailForm",Kn={formId:Gn,stateSelector:Hn};function Qn(){return Kt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qt.$6)([(0,Qt.Fm)(Se,nr),(0,Qt.Fm)(Ie,er),(0,Qt.Fm)(ze,E.Z.sagasUtils.touchAllFields,Kn),(0,Qt.ib)(Te,ir),(0,Qt.ib)(Ce,lr),(0,Qt.ib)(qe,fr),(0,Qt.ib)(hn.Z.REMOTE_EVENT,br),(0,Qt.Fm)(He,yr),(0,Qt.Fm)(Ye,dr),(0,Qt.Fm)(y.Z.actions.ACTION_INVOKED,pr)]);case 2:case"end":return e.stop()}}),wn)}function $n(e,t,n,r){var o,a,i,l,c,s,u;return Kt().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,Qt.Ys)(Yn);case 2:return o=d.sent,a=o.modifyFormDefinition,i=o.reportIds,d.next=7,(0,Qt.RE)(bn.Z.fetchForm,e,t);case 7:if(l=d.sent,!a){d.next=14;break}return d.next=11,(0,Qt.RE)(a,l,{entityName:n,entityId:r});case 11:d.t0=d.sent,d.next=15;break;case 14:d.t0=l;case 15:return c=d.t0,d.next=18,(0,Qt.RE)(Xn,i,n,c);case 18:return s=d.sent,d.next=21,(0,Qt.gz)($e(s));case 21:return d.next=23,(0,Qt.RE)(E.Z.getFieldDefinitions,s);case 23:return u=d.sent,d.next=26,(0,Qt.gz)(at(u));case 26:return d.abrupt("return",{formDefinition:s,fieldDefinitions:u});case 27:case"end":return d.stop()}}),Dn)}function Xn(e,t,n){var r,o;return Kt().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!((null==e?void 0:e.length)>0)){a.next=12;break}return a.next=3,(0,Qt.gz)(Z.Z.loadReports(e,t,"detail"));case 3:return a.next=5,(0,Qt.qn)(Z.Z.SET_REPORTS);case 5:return r=a.sent,o=r.payload,a.next=9,(0,Qt.RE)(E.Z.addReports,n,o.reports);case 9:return a.abrupt("return",a.sent);case 12:return a.abrupt("return",n);case 13:case"end":return a.stop()}}),Pn)}function Jn(e,t,n){var r,o,a,i,l,c,s;return Kt().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,Qt.RE)(E.Z.getUsedPaths,n);case 2:return r=u.sent,u.next=5,(0,Qt.Ys)(Hn);case 5:return o=u.sent,a=o.mode,i=o.entityModel,u.next=10,(0,Qt.RE)(K,a,i);case 10:return l=u.sent,c=[].concat(pn()(r),pn()(l)),u.next=14,(0,Qt.RE)(bn.Z.fetchEntity,e,t,{paths:c});case 14:return s=u.sent,u.next=17,(0,Qt.gz)(Je(s));case 17:return u.abrupt("return",s);case 18:case"end":return u.stop()}}),Sn)}function er(){return Kt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qt.gz)(Je(null));case 2:return e.next=4,(0,Qt.gz)(fn.Z.destroy(Gn));case 4:case"end":return e.stop()}}),_n)}function tr(e){var t;return Kt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Qt.RE)(bn.Z.fetchModel,e);case 2:return t=n.sent,n.next=5,(0,Qt.gz)(nt(t));case 5:return n.abrupt("return",t);case 6:case"end":return n.stop()}}),Tn)}function nr(){var e,t,n,r,o,a,i,l,c,s,u,d,p,f;return Kt().wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,(0,Qt.Ys)(Hn);case 2:return e=y.sent,t=e.entityName,n=e.entityId,r=e.formName,o=e.mode,a=e.defaultValues,y.next=10,(0,Qt.RE)(tr,t);case 10:return i=y.sent,y.next=13,(0,Qt.RE)($n,r,o,t,n);case 13:if(l=y.sent,c=l.fieldDefinitions,o!==L){y.next=40;break}return y.next=18,(0,Qt.gz)(Je({paths:{},model:t}));case 18:return y.next=20,(0,Qt.RE)(E.Z.getDefaultValues,c);case 20:if(s=y.sent,!a){y.next=27;break}return y.next=24,(0,Qt.RE)(E.Z.transformInputValues,a,i);case 24:y.t0=y.sent,y.next=28;break;case 27:y.t0={};case 28:return u=y.t0,d=On(On({},s),u),y.next=32,(0,Qt.RE)(gn.Z.getFlattenEntity,{model:t});case 32:return p=y.sent,y.next=35,(0,Qt.RE)(E.Z.entityToFormValues,On(On({},p),d),c);case 35:return f=y.sent,y.next=38,(0,Qt.gz)(fn.Z.initialize(Gn,f));case 38:y.next=42;break;case 40:return y.next=42,(0,Qt.RE)(sr);case 42:case"end":return y.stop()}}),Nn)}function rr(e,t){return Kt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Qt.RE)(Zn,e,t);case 2:if(404!==n.sent.status){n.next=8;break}return n.next=6,(0,Qt.gz)(m.Z.fireExternalEvent("onEntityDeleted"));case 6:n.next=18;break;case 8:return n.next=10,(0,Qt.RE)(sr);case 10:return n.next=12,(0,Qt.gz)(m.Z.fireExternalEvent("onEntityUpdated"));case 12:return n.next=14,(0,Qt.RE)(cr,"success","saveSuccessfulTitle","saveSuccessfulMessage");case 14:return n.next=16,(0,Qt.gz)(tt());case 16:return n.next=18,(0,Qt.gz)(fn.Z.stopSubmit(Gn));case 18:case"end":return n.stop()}}),Rn)}function or(e,t){var n;return Kt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Qt.RE)(jn,e,t);case 2:return n=r.sent,r.next=5,(0,Qt.gz)(m.Z.fireExternalEvent("onEntityCreated",{id:n}));case 5:return r.next=7,(0,Qt.RE)(cr,"success","createSuccessfulTitle","createSuccessfulMessage");case 7:case"end":return r.stop()}}),In)}function ar(){var e,t,n,r,o;return Kt().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,Qt.RE)(E.Z.sagasUtils.getCurrentEntityState,Kn);case 2:return e=a.sent,t=e.formValues,n=e.initialValues,r=e.mode,o=e.fieldDefinitions,a.next=9,(0,Qt.RE)(E.Z.submitValidation,t,n,o,r);case 9:case"end":return a.stop()}}),Cn)}function ir(){var e,t,n,r;return Kt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,(0,Qt.Ys)((0,yn.Z)(Gn));case 3:if(o.sent){o.next=11;break}return o.next=7,(0,Qt.RE)(E.Z.sagasUtils.handleInvalidForm,Kn);case 7:return o.next=9,(0,Qt.gz)(ct());case 9:o.next=33;break;case 11:return o.next=13,(0,Qt.gz)(fn.Z.startSubmit(Gn));case 13:return o.next=15,(0,Qt.Ys)(Hn);case 15:return e=o.sent,t=e.mode,n=e.fieldDefinitions,o.next=20,(0,Qt.RE)(ar);case 20:return o.next=22,(0,Qt.RE)(E.Z.sagasUtils.getEntityForSubmit,Kn);case 22:if(r=o.sent,t!==M){o.next=28;break}return o.next=26,(0,Qt.RE)(rr,r,n);case 26:o.next=31;break;case 28:if(t!==L){o.next=31;break}return o.next=31,(0,Qt.RE)(or,r,n);case 31:return o.next=33,(0,Qt.gz)({type:Qe});case 33:o.next=41;break;case 35:return o.prev=35,o.t0=o.catch(0),o.next=39,(0,Qt.RE)(E.Z.sagasUtils.handleSubmitError,Kn,o.t0);case 39:return o.next=41,(0,Qt.gz)(ct());case 41:case"end":return o.stop()}}),Fn,null,[[0,35]])}function lr(e){var t,n,r,o;return Kt().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.payload,n=t.touched,a.next=4,(0,Qt.Ys)(Hn);case 4:if(r=a.sent,o=r.touched,n===o){a.next=11;break}return a.next=9,(0,Qt.gz)(m.Z.fireExternalEvent("onTouchedChange",{touched:n}));case 9:return a.next=11,(0,Qt.gz)({type:Fe,payload:{touched:n}});case 11:case"end":return a.stop()}}),An)}function cr(e,t,n){return Kt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Qt.gz)(x.Z.toaster({type:e,title:"client.entity-detail.".concat(t),body:"client.entity-detail.".concat(n)}));case 2:case"end":return r.stop()}}),Ln)}function sr(){var e,t,n,r,o,a,i,l,c,s,u,d,p,f=arguments;return Kt().wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return e=!(f.length>0&&void 0!==f[0])||f[0],y.next=3,(0,Qt.Ys)(Hn);case 3:if(t=y.sent,n=t.entityName,r=t.entityId,o=t.fieldDefinitions,a=t.formDefinition,i=t.formName,l=t.entityModel,c=t.mode,!l.markable||!a.markable){y.next=14;break}return y.next=14,(0,Qt.rM)(ur,n,r);case 14:return y.next=16,(0,Qt.RE)(Jn,n,r,o);case 16:return s=y.sent,y.next=19,(0,Qt.RE)(gn.Z.getFlattenEntity,s);case 19:return u=y.sent,y.next=22,(0,Qt.RE)(mn.Z.enhanceEntityWithDisplayExpressions,u,i,o,c);case 22:return y.next=24,(0,Qt.RE)(mn.Z.enhanceEntityWithDisplays,u,o);case 24:return y.next=26,(0,Qt.RE)(E.Z.entityToFormValues,u,o);case 26:return d=y.sent,p=e?{}:{keepDirty:!0,keepValues:!1},y.next=30,(0,Qt.gz)(fn.Z.initialize(Gn,d,p));case 30:case"end":return y.stop()}}),Mn)}function ur(e,t){var n;return Kt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Qt.RE)(bn.Z.fetchMarked,e,t);case 2:return n=r.sent,r.next=5,(0,Qt.gz)(lt(n));case 5:case"end":return r.stop()}}),Vn)}function dr(e){var t,n,r,o;return Kt().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.payload,n=t.entityName,r=t.entityId,o=t.marked,a.next=3,(0,Qt.gz)(lt(o));case 3:return a.next=5,(0,Qt.RE)(bn.Z.setMarked,n,r,o);case 5:case"end":return a.stop()}}),Un)}function pr(e){var t;return Kt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t=e.payload,"delete"===t.definition.id){n.next=7;break}return n.next=5,(0,Qt.RE)(sr,!0);case 5:return n.next=7,(0,Qt.gz)(m.Z.fireExternalEvent("onRefresh"));case 7:case"end":return n.stop()}}),zn)}function fr(e){var t,n,r;return Kt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.payload,o.next=3,(0,Qt.Ys)(Yn);case 3:return n=o.sent,r=n.navigationStrategy,o.next=7,(0,Qt.RE)(r.navigateToCreateRelative,t.relationName);case 7:case"end":return o.stop()}}),Bn)}function yr(e){var t,n,r,o,a;return Kt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.payload,n=t.definition,r=t.selection,i.next=4,(0,Qt.Ys)(Yn);case 4:return o=i.sent,a=o.navigationStrategy,i.next=8,(0,Qt.RE)(a.navigateToActionRelative,n,r);case 8:case"end":return i.stop()}}),qn)}var hr=function(e,t,n){return!!e.payload.entities.find((function(e){return e.entityName===t&&e.key===n}))||e.payload.parent&&e.payload.parent.model===t&&e.payload.parent.key===n};function br(e){var t,n,r,o,a;return Kt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.payload.event,i.next=3,(0,Qt.Ys)(Hn);case 3:if(n=i.sent,r=n.entityName,o=n.entityId,"action-trigger-event"!==t.type){i.next=11;break}return i.next=9,(0,Qt.gz)((a=t.payload).func.apply(a,pn()(t.payload.args)));case 9:i.next=21;break;case 11:if(!hr(t,r,o)){i.next=21;break}i.t0=t.type,i.next="entity-delete-event"===i.t0?15:"entity-update-event"===i.t0?18:21;break;case 15:return i.next=17,(0,Qt.gz)(m.Z.fireExternalEvent("onEntityDeleted"));case 17:case 20:return i.abrupt("break",21);case 18:return i.next=20,(0,Qt.RE)(sr,!1);case 21:case"end":return i.stop()}}),Wn)}var mr=Kt().mark(vr),gr=Kt().mark(xr);function vr(e){var t,n,r,o,a;return Kt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.definition,i.next=3,(0,Qt.RE)(on.Z,Gn);case 3:return n=i.sent,i.next=6,(0,Qt.Ys)(n);case 6:if(!i.sent){i.next=23;break}return i.next=10,(0,Qt.RE)(xr,t.id);case 10:if("continue"!==(r=i.sent)){i.next=13;break}return i.abrupt("return",{abort:!1});case 13:if("abort"!==r){i.next=15;break}return i.abrupt("return",{abort:!0});case 15:if("save"!==r){i.next=23;break}return i.next=18,(0,Qt.gz)(et());case 18:return i.next=20,(0,Qt.S3)({submitted:(0,Qt.qn)(Qe),failed:(0,Qt.qn)(Ke)});case 20:return o=i.sent,a=!o.submitted,i.abrupt("return",{abort:a});case 23:return i.abrupt("return",{abort:!1});case 24:case"end":return i.stop()}}),mr)}function xr(e){var t;return Kt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Qt.RE)(an.CE);case 2:return t=n.sent,n.next=5,(0,Qt.gz)(x.Z.modal("action-pending-changes-".concat(e),null,"client.entity-detail.confirmDirtyBeforeAction",(function(e){var n=e.close;return(0,de.jsx)(un,{onYes:function(){n(),t.put("save")},onNo:function(){n(),t.put("continue")}})}),!0,(function(){return t.put("abort")})));case 5:return n.next=7,(0,Qt.qn)(t);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),gr)}var Er,Zr=n(30496),jr=n(81770),kr=(Er={},o()(Er,Ae,jr.Z.singleTransferReducer("entityName")),o()(Er,Ve,jr.Z.singleTransferReducer("formName")),o()(Er,Le,jr.Z.singleTransferReducer("entityId")),o()(Er,Me,jr.Z.singleTransferReducer("mode")),o()(Er,Pe,jr.Z.singleTransferReducer("formDefinition")),o()(Er,_e,jr.Z.singleTransferReducer("entity")),o()(Er,Ne,jr.Z.singleTransferReducer("lastSave")),o()(Er,Re,jr.Z.singleTransferReducer("entityModel")),o()(Er,Fe,jr.Z.singleTransferReducer("touched")),o()(Er,Ue,jr.Z.singleTransferReducer("appId")),o()(Er,Be,jr.Z.singleTransferReducer("defaultValues")),o()(Er,We,jr.Z.singleTransferReducer("fieldDefinitions")),o()(Er,Ge,jr.Z.singleTransferReducer("marked")),Er),Or={appId:"",entityName:"",entityId:"",formName:"",mode:"",formDefinition:{},entity:{},entityModel:{},touched:!1,defaultValues:[],fieldDefinitions:[],marked:!1};const wr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Or,t=arguments.length>1?arguments[1]:void 0,n=kr[t.type];return n?n(e,t):e},Dr={entityDetail:wr,form:Zr.Z};var Pr=[Qn];const Sr=[{ctrl:!0,alt:!0,code:"KeyS",actions:[et()]}];var _r;function Tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rr="entity-detail",Ir=["onSubGridRowClick","onEntityCreated","onEntityUpdated","onEntityDeleted","onTouchedChange","onRefresh","emitAction"],Cr=function(e,t,n,r){var o=_r||(_r=(0,de.jsx)(Yt,{})),a=h.Z.createStore(Dr,Pr,t,Rr);return m.Z.addToStore(a,n),f.Z.addToStore(a,n.emitAction),b.Z.addToStore(a,!1),x.Z.addToStore(a,!1),E.Z.addToStore(a,Kn),Z.Z.addToStore(a),y.Z.addToStore(a,{formApp:k.Z,listApp:j.ZP,customActions:$t,appComponent:t.actionAppComponent,navigationStrategy:t.navigationStrategy,context:{viewName:"detail",formName:t.formName},customPreparationHandlers:[vr]}),g.Z.addToStore(a,{listApp:j.ZP,detailApp:Fr,navigationStrategy:t.navigationStrategy,chooseDocument:t.chooseDocument}),v.Z.addToStore(a,Sr),h.Z.createApp(Rr,o,a,{input:t,events:n,actions:nn(t),publicPath:r,textResourceModules:["actiongroup","component","common","entity-list","entity-detail"]})};h.Z.registerAppInRegistry(Rr,Cr);var Fr=function(e){var t=h.Z.useApp({initApp:Cr,props:e,packageName:e.id,externalEvents:Ir}),n=t.component,r=t.store,o=w.Z.usePrevious(e);return w.Z.useDidUpdate((function(){var t=u()(e,(function(e,t){return!c()(e,o[t])}));i()(t)||nn(t).forEach((function(e){r.dispatch(e)}))}),[e]),n};Fr.propTypes=Nr(Nr({entityName:p().string.isRequired,entityId:p().string,formName:p().string.isRequired,mode:p().oneOf(["update","create"]),defaultValues:p().array},Ir.reduce((function(e,t){return e[t]=p().func,e}),{})),{},{navigationStrategy:O.Z.propTypes,chooseDocument:p().func,actionAppComponent:p().elementType,modifyFormDefinition:p().func,reportIds:p().arrayOf(p().string)});const Ar=Fr},81749:(e,t,n)=>{n.d(t,{Z:()=>i,b:()=>a});var r=n(45697),o={NONE:"none",FULLTEXT:"fulltext",SIMPLE:"simple",SIMPLE_ADVANCED:"simple_advanced",ADVANCED:"advanced",ADMIN:"admin"},a=n.n(r)().oneOf(Object.values(o));const i=o},13025:(e,t,n)=>{n.d(t,{Z:()=>o,l:()=>a});var r=n(45697),o={SINGLE:"single",MULTI:"multi",MULTI_EXPLICIT:"multi_explicit",NONE:"none"},a=n.n(r)().oneOf(Object.keys(o).map((function(e){return o[e]})))},6699:(e,t,n)=>{n.d(t,{Z:()=>d});var r,o,a=n(91411),i=n(96559),l=n(58804),c=n(30759),s=n(88601),u=(0,l.iv)(r||(r=(0,a.Z)(["\n ","\n color: ",";\n\n * {\n color: ",";\n text-decoration: ",";\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n text-decoration: ",";\n }\n"])),(0,c.Z)(),s.Z.color("text"),s.Z.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));const d=(0,l.ZP)(i.rU).withConfig({shouldForwardProp:function(e,t){return!["neutral"].includes(e)&&t(e)}})(o||(o=(0,a.Z)(["\n ","\n"])),u)},2977:(e,t,n)=>{n.d(t,{Z:()=>M});var r,o,a,i,l,c=n(74806),s=n(46927),u=n(45915),d=n(64593),p=n(10535),f=n(6699),y=n(88162),h=n(34206),b=n(56315),m=n(91411),g=n(1024),v=n.n(g),x=n(58804),E=n(69829),Z=n(88601),j=["component"],k=x.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(r||(r=(0,m.Z)(["\n background-color: ",";\n width: 100%;\n padding: 0.8rem 1.7rem;\n position: relative;\n z-index: 2; // higher than StyledTether to prevent cover on scroll\n"])),(function(e){return e.backgroundColor||Z.Z.color("backgroundBreadcrumbs")(e)})),O=(0,x.ZP)((function(e){var t=e.component,n=(0,b.Z)(e,j);return v().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(o||(o=(0,m.Z)(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n cursor: pointer;\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n margin-right: 0.5rem;\n }\n\n &:hover,\n &:hover * {\n color: ",";\n }\n\n &:focus,\n &:active,\n &:focus *,\n &:active * {\n color: ",";\n }\n"])),Z.Z.fontWeight("bold"),(function(e){return e.active&&Z.Z.color("primary")}),Z.Z.fontWeight("bold"),(function(e){return e.active&&Z.Z.color("primary")}),Z.Z.color("secondaryLight"),Z.Z.color("primary")),w=x.ZP.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(a||(a=(0,m.Z)(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n margin-right: 0.5rem;\n }\n\n &:active * {\n color: ",";\n }\n"])),Z.Z.fontWeight("bold"),(function(e){return e.active&&Z.Z.color("primary")}),Z.Z.fontWeight("bold"),(function(e){return e.active&&Z.Z.color("primary")}),Z.Z.color("primary")),D=(0,x.ZP)(E.Fe).withConfig({displayName:"StyledBreadcrumbSeparator"})(i||(i=(0,m.Z)(["\n margin-left: 0.9rem;\n margin-right: 0.9rem;\n"]))),P=n(85893);const S=function(){return l||(l=(0,P.jsx)(D,{breakWords:!0,children:(0,P.jsx)(y.Z,{icon:"chevron-right"})}))};var _,T,N;function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C=function(e,t){if(!e||0===e.length)return"Tocco";var n=e[e.length-1];return"create"===n.type?"".concat(F(n)," - ").concat(t):"detail"===n.type?e.slice(e.length-2).map(F).join(" - "):F(n)},F=function(e){return e.title||e.display},A=function(e){var t,n=e.intl,r=e.pathPrefix,o=e.breadcrumbsInfo,a=e.currentView,i=e.backgroundColor,l=e.onClick,c=e.linkComp,s=[].concat((0,u.Z)(o||[]),(0,u.Z)(a?[a]:[]));if(0===s.length)return null;var b,m=s.map((function(e,n){var o,a=e.display||"",i=n===s.length-1?w:O,u=n===s.length-1&&{active:"true"},d=void 0!==e.path?{to:"".concat(r,"/").concat(e.path)}:{},b=c?t||(t=(0,P.jsx)(c,{})):_||(_=(0,P.jsx)(f.Z,{})),m="list"===e.type&&(T||(T=(0,P.jsx)(y.Z,{icon:"list"}))),g="error"===e.type&&(N||(N=(0,P.jsx)(y.Z,{icon:"exclamation-circle"})));return(0,P.jsx)(h.ZP.Span,{children:(0,P.jsxs)(i,I(I(I({neutral:!0},u),d),{},{onClick:(o=e,function(){l&&l(o)}),component:b,children:[m,g,(0,P.jsx)("span",{dangerouslySetInnerHTML:{__html:p.Z.sanitizeHtml(a)}})]}))},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,P.jsx)(S,{},"icon"+n),t]}));return(0,P.jsxs)(k,{backgroundColor:i,children:[(0,P.jsx)(d.q,{defer:!1,children:(0,P.jsx)("title",{children:C(s,(b="client.component.breadcrumbs.createTitle",n.formatMessage({id:b})))})}),(0,P.jsx)(P.Fragment,{children:m})]})};A.defaultProps={pathPrefix:""};const L=A,M=(0,c.ZP)(L)},79311:(e,t,n)=>{n.d(t,{Z:()=>b});var r,o,a=n(91411),i=n(76538),l=n(58804),c=n(88601),s=n(30759),u=n(7281),d=c.Z.color("secondaryLight"),p=c.Z.color("paper"),f=c.Z.color("secondary"),y=(0,l.vJ)(r||(r=(0,a.Z)(["\n .react-datepicker-popper {\n && {\n z-index: 5;\n margin: 0;\n }\n }\n\n .react-datepicker {\n && {\n border-radius: 0;\n border: 1px solid ",";\n ","\n\n .react-datepicker__header {\n ","\n border-radius: 0;\n background-color: ",";\n padding-bottom: 0;\n }\n\n .react-datepicker__navigation--previous,\n .react-datepicker__navigation--next {\n margin-top: ",";\n }\n ","\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow,\n .react-datepicker__navigation-icon:before {\n border-color: "," !important;\n border-width: 1.5px 1.5px 0 0;\n }\n\n .react-datepicker__current-month {\n ","\n }\n\n .react-datepicker__day-name {\n color: ",";\n font-size: ",";\n }\n\n .react-datepicker__day,\n .react-datepicker__day-name {\n padding: ",";\n }\n\n .react-datepicker__day--selected,\n .react-datepicker__day--keyboard-selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n }\n\n .react-datepicker__day--today,\n .react-datepicker__month-text--today,\n .react-datepicker__quarter-text--today,\n .react-datepicker__year-text--today {\n border-radius: 50%;\n border: 1px solid ",";\n }\n\n .react-datepicker__today-button {\n ","\n background-color: ",";\n border-top: 0;\n padding-bottom: ",";\n\n &:hover > button {\n background-color: ",";\n }\n }\n\n .react-datepicker__input-time-container {\n display: flex;\n justify-content: center;\n margin: 5px 0;\n\n .react-datepicker-time__input {\n margin: 0;\n }\n }\n\n .react-datepicker__header__dropdown.react-datepicker__header__dropdown--scroll {\n width: 190px;\n margin: 8px auto 0;\n display: grid;\n grid-template-columns: 100px 85px;\n }\n\n .react-datepicker__month-read-view,\n .react-datepicker__year-read-view {\n color: ",";\n visibility: visible !important;\n }\n\n .react-datepicker__year-option:first-of-type,\n .react-datepicker__month-option:first-of-type,\n .react-datepicker__month-year-option:first-of-type,\n .react-datepicker__year-option:last-of-type,\n .react-datepicker__month-option:last-of-type,\n .react-datepicker__month-year-option:last-of-type {\n border-radius: 0;\n }\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow {\n top: 4px;\n right: -2px;\n width: 5px;\n height: 5px;\n }\n\n .react-datepicker__day:hover,\n .react-datepicker__month-text:hover,\n .react-datepicker__quarter-text:hover,\n .react-datepicker__year-text:hover {\n background-color: ",";\n border-radius: 50%;\n color: ",";\n }\n\n .react-datepicker__year-dropdown,\n .react-datepicker__month-dropdown,\n .react-datepicker__month-year-dropdown {\n background-color: ",";\n border-radius: 0;\n border-color: ",";\n box-shadow: 0 0 5px rgb(0 0 0 / 30%);\n }\n\n .react-datepicker__year-option:hover,\n .react-datepicker__month-option:hover,\n .react-datepicker__month-year-option:hover {\n background-color: ",";\n color: ",";\n }\n }\n }\n"])),d,(0,s.Z)(),(0,s.Z)(),d,u.Z.space(-.6),"\n .react-datepicker__current-month.react-datepicker__current-month--hasYearDropdown.react-datepicker__current-month--hasMonthDropdown {\n // Avoid showing the month and year a second time when it has month and year dropdowns.\n display: none;\n }\n",p,(0,s.Z)({fontWeight:c.Z.fontWeight("bold")}),p,u.Z.font(-2),u.Z.space(-.6),f,f,f,(0,s.Z)(),p,u.Z.space(-.5),(function(e){var t=e.theme;return(0,i._j)(.1,t.colors.paper)}),p,d,p,p,d,d,p),h=n(85893);const b=function(){return(0,h.jsx)(h.Fragment,{children:o||(o=(0,h.jsx)(y,{}))})}},23710:(e,t,n)=>{n.r(t),n.d(t,{default:()=>W});var r=n(46927),o=n(72757),a=n(86896),i=n(44822),l=n(11259),c=n(32208),s=n(99357),u=n(19241),d=n(11820),p=n(39269),f=n(48772),y=n(75528),h=n(52079),b=n(84184),m=n(40569),g=n(75460),v=n(65761),x=n(53626),E=n(73043),Z=n(16797),j=n(33592),k=n(37060),O=n(4175),w=n(14351),D=n(20211),P=n(51778),S=n(87388),_=n(89906),T=n(41831);function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.Z)(e);if(t){var o=(0,u.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.Z)(this,n)}}var R=function(e){(0,c.Z)(n,e);var t=N(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(d.Z);R.builtinPlugins=[p.Z,f.Z,m.Z,g.Z,v.Z,x.Z,E.Z,Z.Z,y.Z,j.Z,k.Z,O.Z,w.Z,D.Z,P.Z,h.Z,S.Z,_.Z,T.Z,b.Z],R.defaultConfig={toolbar:{items:["bold","italic","underline","strikethrough","removeFormat","|","heading","fontFamily","fontSize","fontColor","|","numberedList","bulletedList","|","link","|","insertTable","|","undo","redo","|","sourceEditing"]},language:{ui:"de",content:"de"},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"},{model:"heading5",view:"h5",title:"Heading 5",class:"ck-heading_heading5"},{model:"heading6",view:"h6",title:"Heading 6",class:"ck-heading_heading6"},{model:"normal",view:"div",title:"Normal (DIV)",class:"ck-heading_normal"}]},fontFamily:{options:["default","Arial,Helvetica,sans-serif","Comic Sans MS,cursive","Courier New,Courier,monospace","Georgia,serif","Lucida Sans Unicode,Lucida Grande,sans-serif","Tahoma,Geneva,sans-serif","Times New Roman,Times,serif","Trebuchet MS,Helvetica,sans-serif","Verdana,Geneva,sans-serif"],supportAllValues:!0},fontSize:{options:[8,10,11,12,"default",15,16,17,19,22,24,26,29,32,36,37,48,64],supportAllValues:!0},fontColor:{columns:10,colors:[{color:"hsl(6, 54%, 95%)",label:" "},{color:"hsl(6, 54%, 89%)",label:" "},{color:"hsl(6, 54%, 78%)",label:" "},{color:"hsl(6, 54%, 68%)",label:" "},{color:"hsl(6, 54%, 57%)",label:" "},{color:"hsl(6, 63%, 46%)",label:" "},{color:"hsl(6, 63%, 41%)",label:" "},{color:"hsl(6, 63%, 35%)",label:" "},{color:"hsl(6, 63%, 29%)",label:" "},{color:"hsl(6, 63%, 24%)",label:" "},{color:"hsl(6, 78%, 96%)",label:" "},{color:"hsl(6, 78%, 91%)",label:" "},{color:"hsl(6, 78%, 83%)",label:" "},{color:"hsl(6, 78%, 74%)",label:" "},{color:"hsl(6, 78%, 66%)",label:" "},{color:"hsl(6, 78%, 57%)",label:" "},{color:"hsl(6, 59%, 50%)",label:" "},{color:"hsl(6, 59%, 43%)",label:" "},{color:"hsl(6, 59%, 37%)",label:" "},{color:"hsl(6, 59%, 30%)",label:" "},{color:"hsl(283, 39%, 95%)",label:" "},{color:"hsl(283, 39%, 91%)",label:" "},{color:"hsl(283, 39%, 81%)",label:" "},{color:"hsl(283, 39%, 72%)",label:" "},{color:"hsl(283, 39%, 63%)",label:" "},{color:"hsl(283, 39%, 53%)",label:" "},{color:"hsl(283, 34%, 47%)",label:" "},{color:"hsl(283, 34%, 40%)",label:" "},{color:"hsl(283, 34%, 34%)",label:" "},{color:"hsl(283, 34%, 28%)",label:" "},{color:"hsl(282, 39%, 95%)",label:" "},{color:"hsl(282, 39%, 89%)",label:" "},{color:"hsl(282, 39%, 79%)",label:" "},{color:"hsl(282, 39%, 68%)",label:" "},{color:"hsl(282, 39%, 58%)",label:" "},{color:"hsl(282, 44%, 47%)",label:" "},{color:"hsl(282, 44%, 42%)",label:" "},{color:"hsl(282, 44%, 36%)",label:" "},{color:"hsl(282, 44%, 30%)",label:" "},{color:"hsl(282, 44%, 25%)",label:" "},{color:"hsl(204, 51%, 94%)",label:" "},{color:"hsl(204, 51%, 89%)",label:" "},{color:"hsl(204, 51%, 78%)",label:" "},{color:"hsl(204, 51%, 67%)",label:" "},{color:"hsl(204, 51%, 55%)",label:" "},{color:"hsl(204, 64%, 44%)",label:" "},{color:"hsl(204, 64%, 39%)",label:" "},{color:"hsl(204, 64%, 34%)",label:" "},{color:"hsl(204, 64%, 28%)",label:" "},{color:"hsl(204, 64%, 23%)",label:" "},{color:"hsl(204, 70%, 95%)",label:" "},{color:"hsl(204, 70%, 91%)",label:" "},{color:"hsl(204, 70%, 81%)",label:" "},{color:"hsl(204, 70%, 72%)",label:" "},{color:"hsl(204, 70%, 63%)",label:" "},{color:"hsl(204, 70%, 53%)",label:" "},{color:"hsl(204, 62%, 47%)",label:" "},{color:"hsl(204, 62%, 40%)",label:" "},{color:"hsl(204, 62%, 34%)",label:" "},{color:"hsl(204, 62%, 28%)",label:" "},{color:"hsl(168, 55%, 94%)",label:" "},{color:"hsl(168, 55%, 88%)",label:" "},{color:"hsl(168, 55%, 77%)",label:" "},{color:"hsl(168, 55%, 65%)",label:" "},{color:"hsl(168, 55%, 54%)",label:" "},{color:"hsl(168, 76%, 42%)",label:" "},{color:"hsl(168, 76%, 37%)",label:" "},{color:"hsl(168, 76%, 32%)",label:" "},{color:"hsl(168, 76%, 27%)",label:" "},{color:"hsl(168, 76%, 22%)",label:" "},{color:"hsl(168, 42%, 94%)",label:" "},{color:"hsl(168, 42%, 87%)",label:" "},{color:"hsl(168, 42%, 74%)",label:" "},{color:"hsl(168, 42%, 61%)",label:" "},{color:"hsl(168, 45%, 49%)",label:" "},{color:"hsl(168, 76%, 36%)",label:" "},{color:"hsl(168, 76%, 31%)",label:" "},{color:"hsl(168, 76%, 27%)",label:" "},{color:"hsl(168, 76%, 23%)",label:" "},{color:"hsl(168, 76%, 19%)",label:" "},{color:"hsl(145, 45%, 94%)",label:" "},{color:"hsl(145, 45%, 88%)",label:" "},{color:"hsl(145, 45%, 77%)",label:" "},{color:"hsl(145, 45%, 65%)",label:" "},{color:"hsl(145, 45%, 53%)",label:" "},{color:"hsl(145, 63%, 42%)",label:" "},{color:"hsl(145, 63%, 37%)",label:" "},{color:"hsl(145, 63%, 32%)",label:" "},{color:"hsl(145, 63%, 27%)",label:" "},{color:"hsl(145, 63%, 22%)",label:" "},{color:"hsl(145, 61%, 95%)",label:" "},{color:"hsl(145, 61%, 90%)",label:" "},{color:"hsl(145, 61%, 80%)",label:" "},{color:"hsl(145, 61%, 69%)",label:" "},{color:"hsl(145, 61%, 59%)",label:" "},{color:"hsl(145, 63%, 49%)",label:" "},{color:"hsl(145, 63%, 43%)",label:" "},{color:"hsl(145, 63%, 37%)",label:" "},{color:"hsl(145, 63%, 31%)",label:" "},{color:"hsl(145, 63%, 25%)",label:" "},{color:"hsl(48, 89%, 95%)",label:" "},{color:"hsl(48, 89%, 90%)",label:" "},{color:"hsl(48, 89%, 80%)",label:" "},{color:"hsl(48, 89%, 70%)",label:" "},{color:"hsl(48, 89%, 60%)",label:" "},{color:"hsl(48, 89%, 50%)",label:" "},{color:"hsl(48, 88%, 44%)",label:" "},{color:"hsl(48, 88%, 38%)",label:" "},{color:"hsl(48, 88%, 32%)",label:" "},{color:"hsl(48, 88%, 26%)",label:" "},{color:"hsl(37, 90%, 95%)",label:" "},{color:"hsl(37, 90%, 90%)",label:" "},{color:"hsl(37, 90%, 80%)",label:" "},{color:"hsl(37, 90%, 71%)",label:" "},{color:"hsl(37, 90%, 61%)",label:" "},{color:"hsl(37, 90%, 51%)",label:" "},{color:"hsl(37, 86%, 45%)",label:" "},{color:"hsl(37, 86%, 39%)",label:" "},{color:"hsl(37, 86%, 33%)",label:" "},{color:"hsl(37, 86%, 27%)",label:" "},{color:"hsl(28, 80%, 95%)",label:" "},{color:"hsl(28, 80%, 90%)",label:" "},{color:"hsl(28, 80%, 81%)",label:" "},{color:"hsl(28, 80%, 71%)",label:" "},{color:"hsl(28, 80%, 61%)",label:" "},{color:"hsl(28, 80%, 52%)",label:" "},{color:"hsl(28, 74%, 46%)",label:" "},{color:"hsl(28, 74%, 39%)",label:" "},{color:"hsl(28, 74%, 33%)",label:" "},{color:"hsl(28, 74%, 27%)",label:" "},{color:"hsl(24, 71%, 94%)",label:" "},{color:"hsl(24, 71%, 88%)",label:" "},{color:"hsl(24, 71%, 77%)",label:" "},{color:"hsl(24, 71%, 65%)",label:" "},{color:"hsl(24, 71%, 53%)",label:" "},{color:"hsl(24, 100%, 41%)",label:" "},{color:"hsl(24, 100%, 36%)",label:" "},{color:"hsl(24, 100%, 31%)",label:" "},{color:"hsl(24, 100%, 26%)",label:" "},{color:"hsl(24, 100%, 22%)",label:" "},{color:"hsl(192, 15%, 99%)",label:" "},{color:"hsl(192, 15%, 99%)",label:" "},{color:"hsl(192, 15%, 97%)",label:" "},{color:"hsl(192, 15%, 96%)",label:" "},{color:"hsl(192, 15%, 95%)",label:" "},{color:"hsl(192, 15%, 94%)",label:" "},{color:"hsl(192, 5%, 82%)",label:" "},{color:"hsl(192, 3%, 71%)",label:" "},{color:"hsl(192, 2%, 60%)",label:" "},{color:"hsl(192, 1%, 49%)",label:" "},{color:"hsl(204, 8%, 98%)",label:" "},{color:"hsl(204, 8%, 95%)",label:" "},{color:"hsl(204, 8%, 90%)",label:" "},{color:"hsl(204, 8%, 86%)",label:" "},{color:"hsl(204, 8%, 81%)",label:" "},{color:"hsl(204, 8%, 76%)",label:" "},{color:"hsl(204, 5%, 67%)",label:" "},{color:"hsl(204, 4%, 58%)",label:" "},{color:"hsl(204, 3%, 49%)",label:" "},{color:"hsl(204, 3%, 40%)",label:" "},{color:"hsl(184, 9%, 96%)",label:" "},{color:"hsl(184, 9%, 92%)",label:" "},{color:"hsl(184, 9%, 85%)",label:" "},{color:"hsl(184, 9%, 77%)",label:" "},{color:"hsl(184, 9%, 69%)",label:" "},{color:"hsl(184, 9%, 62%)",label:" "},{color:"hsl(184, 6%, 54%)",label:" "},{color:"hsl(184, 5%, 47%)",label:" "},{color:"hsl(184, 5%, 40%)",label:" "},{color:"hsl(184, 5%, 32%)",label:" "},{color:"hsl(184, 6%, 95%)",label:" "},{color:"hsl(184, 6%, 91%)",label:" "},{color:"hsl(184, 6%, 81%)",label:" "},{color:"hsl(184, 6%, 72%)",label:" "},{color:"hsl(184, 6%, 62%)",label:" "},{color:"hsl(184, 6%, 53%)",label:" "},{color:"hsl(184, 5%, 46%)",label:" "},{color:"hsl(184, 5%, 40%)",label:" "},{color:"hsl(184, 5%, 34%)",label:" "},{color:"hsl(184, 5%, 27%)",label:" "},{color:"hsl(210, 12%, 93%)",label:" "},{color:"hsl(210, 12%, 86%)",label:" "},{color:"hsl(210, 12%, 71%)",label:" "},{color:"hsl(210, 12%, 57%)",label:" "},{color:"hsl(210, 15%, 43%)",label:" "},{color:"hsl(210, 29%, 29%)",label:" "},{color:"hsl(210, 29%, 25%)",label:" "},{color:"hsl(210, 29%, 22%)",label:" "},{color:"hsl(210, 29%, 18%)",label:" "},{color:"hsl(210, 29%, 15%)",label:" "},{color:"hsl(210, 9%, 92%)",label:" "},{color:"hsl(210, 9%, 85%)",label:" "},{color:"hsl(210, 9%, 70%)",label:" "},{color:"hsl(210, 9%, 55%)",label:" "},{color:"hsl(210, 14%, 39%)",label:" "},{color:"hsl(210, 29%, 24%)",label:" "},{color:"hsl(210, 29%, 21%)",label:" "},{color:"hsl(210, 29%, 18%)",label:" "},{color:"hsl(210, 29%, 16%)",label:" "},{color:"hsl(210, 29%, 13%)",label:" "}]}};const I=R;var C,F=n(91411),A=n(58804),L=n(56822),M=A.ZP.div.withConfig({displayName:"StyledHtmlEditor"})(C||(C=(0,F.Z)(["\n && {\n .ck-editor {\n --ck-border-radius: 0.27rem;\n ","\n\n .ck.ck-list__item .ck-button.ck-fontsize-option .ck-button__label {\n line-height: 1;\n }\n\n .ck-editor__editable {\n min-height: 100px;\n }\n }\n }\n"])),(function(e){return(0,L.L)(e,"ckeditor")})),V=n(85893);function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var B=function(e){switch(e){case"fr-CH":return"fr";case"it-CH":return"it";case"en-US":return"en";case"fr":case"en":case"it":case"de":return e;default:return"de"}},q=function(e){var t=e.value,n=e.onChange,r=e.contentLang,i=e.ckEditorConfig,l=(0,a.Z)().locale;return(0,V.jsx)(M,{children:(0,V.jsx)(o.CKEditor,{editor:I,config:z({language:{ui:B(l),content:r}},i),data:t,onChange:function(e,t){var r=t.getData();n(r)}})})};q.defaultProps={value:"",contentLang:"de"};const W=q},36498:(e,t,n)=>{n.d(t,{$s:()=>l,BF:()=>s,az:()=>c});var r=n(46444),o=n.n(r),a=n(8358),i=o().oneOfType([o().string,o().number]),l=o().shape({__key:i}),c=(o().arrayOf(l),o().oneOf(Object.keys(a.P).map((function(e){return a.P[e]})))),s=o().shape({id:o().string.isRequired,label:o().string,sorting:o().shape({sortable:o().bool,sortRank:o().number,order:o().oneOf(["asc","desc"])}),resizable:o().bool,width:o().number,HeaderRenderer:o().elementType,CellRenderer:o().elementType,rightAligned:o().bool})},8358:(e,t,n)=>{n.d(t,{P:()=>r});var r={INLINE:"inline",NONE:"none"}},41654:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(319),o=n.n(r),a=n(44759),i=function(e){return void 0!==e};const l={getDispatchActions:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.reduce((function(t,r){return i(e[r.name])?t.push(r.action.apply(r,o()(r.argsFactory(e)))):r.mandatory&&n&&a.Z.logError("Mandatory field '".concat(r.name,"' not set in input")),t}),[])}}},65378:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(45697),o=n.n(r),a=n(98773);const i={propTypes:o().shape({embedType:o().oneOf(a.Nc),widgetConfigKey:function(e,t,n){if("widget"===e.embedType&&!e[t])return new Error("Prop `"+t+"` is missing for `"+n+"`. Validation failed.")}})}},96801:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(59713),o=n.n(r),a=n(90655);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=n(81770),s=n(24688),u=n(63038),d=n.n(u),p=n(1024),f=n.n(p),y=n(85893);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){return function(t){var n=(0,p.useState)(null),r=d()(n,2),a=r[0],i=r[1],l=(0,p.useRef)(!0);return(0,p.useEffect)((function(){return e().then((function(e){return l.current?i((function(){return e})):null})),function(){l.current=!1}}),[]),null!==a?(0,y.jsx)(a,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t)):null}}var m=n(44759);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x={},E=n(80467),Z=function(e){return function(t){if(e.component)return(0,y.jsx)(e.component,{router:t,routes:e.routes});if(e.render){var n={router:t,routes:e.routes};return e.render(n)}}};const j=function(e){return(0,y.jsx)(E.AW,{path:e.path,exact:e.exact,render:Z(e)})};function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const O=function(e){var t=e.history,n=e.routes;return(0,y.jsx)(E.F0,{history:t,children:(0,y.jsx)(f().Fragment,{children:n.map((function(e,t){return(0,y.jsx)(j,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e),t)}))})})},w={loadRoute:function(e,t,n,r){return function(o){if(r&&x[r]){var a=x[r];return(0,y.jsx)(a,v({},o))}var i=b((function(){return new Promise((function(r){n().then((function(n){var o=n.default;o.reducers&&c.Z.injectReducers(e,o.reducers),o.sagas&&o.sagas.forEach((function(t){s.Z.injectSaga(e,t)})),o.inputDispatches&&o.inputDispatches.forEach((function(n){!function(e,t,n){var r=n.key,o=n.actionCreator,a=n.mandatory,i=void 0!==a&&a,l=n.defaultValue,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:m.Z.logError;if(Object.prototype.hasOwnProperty.call(t,r)||l){var s=o(t[r]||l);e.dispatch(s)}else!0===i&&c("EntityBrowser: Mandatory field '".concat(r,"' not set in input"))}(e,t,n)})),r(o.container)}))}))}));return r&&(x[r]=i),(0,y.jsx)(i,v({},o))}},Router:O,RouteWithSubRoutes:j,extractParamsFromPath:function(e,t){var n=[],r=(0,a.Bo)(e,n).exec(t);return null!==r?n.reduce((function(e,t,n){return l(l({},e),{},o()({},t.name,r[n+1]))}),{}):null}}},29441:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(59713),o=n.n(r),a=n(27361),i=n.n(a);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={};const u={persistViewInfo:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;s=c(c({},s),{},o()({},e,{level:n,info:c(c({},i()(s,[e,"info"],{})),t)}))},viewInfoSelector:function(e){return i()(s,[e,"info"],{})},clearPersistedViews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;s=c({},Object.keys(s).reduce((function(t,n){var r=s[n];return c(c({},t),r.level<e&&o()({},n,r))}),{}))}}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[698],{48078:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(52817),o=n(41609),i=n.n(o),a=n(41291),c=n(85893);const u=function(t){var e=t.value,n=t.breakWords,o=(0,r._)(e),u=i()(o)?e:o.formatInternational();return(0,c.jsx)(a.Z,{href:"tel:".concat(e),target:"_blank",onClick:function(t){return t.stopPropagation()},label:u,breakWords:n})}},41143:t=>{"use strict";t.exports=function(t,e,n,r,o,i,a,c){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,c],f=0;(u=new Error(e.replace(/%s/g,(function(){return s[f++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},41609:(t,e,n)=>{var r=n(280),o=n(64160),i=n(35694),a=n(1469),c=n(98612),u=n(44144),s=n(25726),f=n(36719),l=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(c(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||f(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(s(t))return!r(t).length;for(var n in t)if(l.call(t,n))return!1;return!0}},35937:(t,e,n)=>{var r=n(29932),o=n(67206),i=n(63012),a=n(46904);t.exports=function(t,e){if(null==t)return{};var n=r(a(t),(function(t){return[t]}));return e=o(e),i(t,n,(function(t,n){return e(t,n[0])}))}},69590:t=>{var e="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var c,u,s,f;if(Array.isArray(t)){if((c=t.length)!=a.length)return!1;for(u=c;0!=u--;)if(!i(t[u],a[u]))return!1;return!0}if(n&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(f=t.entries();!(u=f.next()).done;)if(!a.has(u.value[0]))return!1;for(f=t.entries();!(u=f.next()).done;)if(!i(u.value[1],a.get(u.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(f=t.entries();!(u=f.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((c=t.length)!=a.length)return!1;for(u=c;0!=u--;)if(t[u]!==a[u])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((c=(s=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(u=c;0!=u--;)if(!Object.prototype.hasOwnProperty.call(a,s[u]))return!1;if(e&&t instanceof Element)return!1;for(u=c;0!=u--;)if(("_owner"!==s[u]&&"__v"!==s[u]&&"__o"!==s[u]||!t.$$typeof)&&!i(t[s[u]],a[s[u]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},64593:(t,e,n)=>{"use strict";n.d(e,{q:()=>yt});var r,o,i,a,c=n(89324),u=n.n(c),s=n(83524),f=n.n(s),l=n(69590),p=n.n(l),h=n(1024),d=n.n(h),v=n(27418),y=n.n(v),m="bodyAttributes",g="htmlAttributes",b="titleAttributes",w={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},T=(Object.keys(w).map((function(t){return w[t]})),"charset"),O="cssText",E="href",x="http-equiv",A="innerHTML",C="itemprop",P="name",S="property",k="rel",j="src",R="target",_={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},L="defaultTitle",I="defer",M="encodeSpecialCharacters",U="onChangeClientState",N="titleTemplate",D=Object.keys(_).reduce((function(t,e){return t[_[e]]=e,t}),{}),H=[w.NOSCRIPT,w.SCRIPT,w.STYLE],B="data-react-helmet",W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},q=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Z=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},$=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},Y=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},V=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===e?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},K=function(t){var e=Q(t,w.TITLE),n=Q(t,N);if(n&&e)return n.replace(/%s/g,(function(){return Array.isArray(e)?e.join(""):e}));var r=Q(t,L);return e||r||void 0},z=function(t){return Q(t,U)||function(){}},J=function(t,e){return e.filter((function(e){return void 0!==e[t]})).map((function(e){return e[t]})).reduce((function(t,e){return Z({},t,e)}),{})},X=function(t,e){return e.filter((function(t){return void 0!==t[w.BASE]})).map((function(t){return t[w.BASE]})).reverse().reduce((function(e,n){if(!e.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==t.indexOf(i)&&n[i])return e.concat(n)}return e}),[])},G=function(t,e,n){var r={};return n.filter((function(e){return!!Array.isArray(e[t])||(void 0!==e[t]&&ot("Helmet: "+t+' should be of type "Array". Instead found type "'+W(e[t])+'"'),!1)})).map((function(e){return e[t]})).reverse().reduce((function(t,n){var o={};n.filter((function(t){for(var n=void 0,i=Object.keys(t),a=0;a<i.length;a++){var c=i[a],u=c.toLowerCase();-1===e.indexOf(u)||n===k&&"canonical"===t[n].toLowerCase()||u===k&&"stylesheet"===t[u].toLowerCase()||(n=u),-1===e.indexOf(c)||c!==A&&c!==O&&c!==C||(n=c)}if(!n||!t[n])return!1;var s=t[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][s]&&(o[n][s]=!0,!0)})).reverse().forEach((function(e){return t.push(e)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var c=i[a],u=y()({},r[c],o[c]);r[c]=u}return t}),[]).reverse()},Q=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.hasOwnProperty(e))return r[e]}return null},tt=(r=Date.now(),function(t){var e=Date.now();e-r>16?(r=e,t(e)):setTimeout((function(){tt(t)}),0)}),et=function(t){return clearTimeout(t)},nt="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||tt:n.g.requestAnimationFrame||tt,rt="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||et:n.g.cancelAnimationFrame||et,ot=function(t){return console&&"function"==typeof console.warn&&console.warn(t)},it=null,at=function(t,e){var n=t.baseTag,r=t.bodyAttributes,o=t.htmlAttributes,i=t.linkTags,a=t.metaTags,c=t.noscriptTags,u=t.onChangeClientState,s=t.scriptTags,f=t.styleTags,l=t.title,p=t.titleAttributes;st(w.BODY,r),st(w.HTML,o),ut(l,p);var h={baseTag:ft(w.BASE,n),linkTags:ft(w.LINK,i),metaTags:ft(w.META,a),noscriptTags:ft(w.NOSCRIPT,c),scriptTags:ft(w.SCRIPT,s),styleTags:ft(w.STYLE,f)},d={},v={};Object.keys(h).forEach((function(t){var e=h[t],n=e.newTags,r=e.oldTags;n.length&&(d[t]=n),r.length&&(v[t]=h[t].oldTags)})),e&&e(),u(t,d,v)},ct=function(t){return Array.isArray(t)?t.join(""):t},ut=function(t,e){void 0!==t&&document.title!==t&&(document.title=ct(t)),st(w.TITLE,e)},st=function(t,e){var n=document.getElementsByTagName(t)[0];if(n){for(var r=n.getAttribute(B),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(e),c=0;c<a.length;c++){var u=a[c],s=e[u]||"";n.getAttribute(u)!==s&&n.setAttribute(u,s),-1===o.indexOf(u)&&o.push(u);var f=i.indexOf(u);-1!==f&&i.splice(f,1)}for(var l=i.length-1;l>=0;l--)n.removeAttribute(i[l]);o.length===i.length?n.removeAttribute(B):n.getAttribute(B)!==a.join(",")&&n.setAttribute(B,a.join(","))}},ft=function(t,e){var n=document.head||document.querySelector(w.HEAD),r=n.querySelectorAll(t+"["+"data-react-helmet]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return e&&e.length&&e.forEach((function(e){var n=document.createElement(t);for(var r in e)if(e.hasOwnProperty(r))if(r===A)n.innerHTML=e.innerHTML;else if(r===O)n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText));else{var c=void 0===e[r]?"":e[r];n.setAttribute(r,c)}n.setAttribute(B,"true"),o.some((function(t,e){return a=e,n.isEqualNode(t)}))?o.splice(a,1):i.push(n)})),o.forEach((function(t){return t.parentNode.removeChild(t)})),i.forEach((function(t){return n.appendChild(t)})),{oldTags:o,newTags:i}},lt=function(t){return Object.keys(t).reduce((function(e,n){var r=void 0!==t[n]?n+'="'+t[n]+'"':""+n;return e?e+" "+r:r}),"")},pt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[_[n]||n]=t[n],e}),e)},ht=function(t,e,n){switch(t){case w.TITLE:return{toComponent:function(){return t=e.title,n=e.titleAttributes,(r={key:t})[B]=!0,o=pt(n,r),[d().createElement(w.TITLE,o,t)];var t,n,r,o},toString:function(){return function(t,e,n,r){var o=lt(n),i=ct(e);return o?"<"+t+' data-react-helmet="true" '+o+">"+V(i,r)+"</"+t+">":"<"+t+' data-react-helmet="true">'+V(i,r)+"</"+t+">"}(t,e.title,e.titleAttributes,n)}};case m:case g:return{toComponent:function(){return pt(e)},toString:function(){return lt(e)}};default:return{toComponent:function(){return function(t,e){return e.map((function(e,n){var r,o=((r={key:n})[B]=!0,r);return Object.keys(e).forEach((function(t){var n=_[t]||t;if(n===A||n===O){var r=e.innerHTML||e.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=e[t]})),d().createElement(t,o)}))}(t,e)},toString:function(){return function(t,e,n){return e.reduce((function(e,r){var o=Object.keys(r).filter((function(t){return!(t===A||t===O)})).reduce((function(t,e){var o=void 0===r[e]?e:e+'="'+V(r[e],n)+'"';return t?t+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===H.indexOf(t);return e+"<"+t+' data-react-helmet="true" '+o+(a?"/>":">"+i+"</"+t+">")}),"")}(t,e,n)}}}},dt=function(t){var e=t.baseTag,n=t.bodyAttributes,r=t.encode,o=t.htmlAttributes,i=t.linkTags,a=t.metaTags,c=t.noscriptTags,u=t.scriptTags,s=t.styleTags,f=t.title,l=void 0===f?"":f,p=t.titleAttributes;return{base:ht(w.BASE,e,r),bodyAttributes:ht(m,n,r),htmlAttributes:ht(g,o,r),link:ht(w.LINK,i,r),meta:ht(w.META,a,r),noscript:ht(w.NOSCRIPT,c,r),script:ht(w.SCRIPT,u,r),style:ht(w.STYLE,s,r),title:ht(w.TITLE,{title:l,titleAttributes:p},r)}},vt=f()((function(t){return{baseTag:X([E,R],t),bodyAttributes:J(m,t),defer:Q(t,I),encode:Q(t,M),htmlAttributes:J(g,t),linkTags:G(w.LINK,[k,E],t),metaTags:G(w.META,[P,T,x,S,C],t),noscriptTags:G(w.NOSCRIPT,[A],t),onChangeClientState:z(t),scriptTags:G(w.SCRIPT,[j,A],t),styleTags:G(w.STYLE,[O],t),title:K(t),titleAttributes:J(b,t)}}),(function(t){it&&rt(it),t.defer?it=nt((function(){at(t,(function(){it=null}))})):(at(t),it=null)}),dt)((function(){return null})),yt=(o=vt,a=i=function(t){function e(){return F(this,e),Y(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.shouldComponentUpdate=function(t){return!p()(this.props,t)},e.prototype.mapNestedChildrenToProps=function(t,e){if(!e)return null;switch(t.type){case w.SCRIPT:case w.NOSCRIPT:return{innerHTML:e};case w.STYLE:return{cssText:e}}throw new Error("<"+t.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},e.prototype.flattenArrayTypeChildren=function(t){var e,n=t.child,r=t.arrayTypeChildren,o=t.newChildProps,i=t.nestedChildren;return Z({},r,((e={})[n.type]=[].concat(r[n.type]||[],[Z({},o,this.mapNestedChildrenToProps(n,i))]),e))},e.prototype.mapObjectTypeChildren=function(t){var e,n,r=t.child,o=t.newProps,i=t.newChildProps,a=t.nestedChildren;switch(r.type){case w.TITLE:return Z({},o,((e={})[r.type]=a,e.titleAttributes=Z({},i),e));case w.BODY:return Z({},o,{bodyAttributes:Z({},i)});case w.HTML:return Z({},o,{htmlAttributes:Z({},i)})}return Z({},o,((n={})[r.type]=Z({},i),n))},e.prototype.mapArrayTypeChildrenToProps=function(t,e){var n=Z({},e);return Object.keys(t).forEach((function(e){var r;n=Z({},n,((r={})[e]=t[e],r))})),n},e.prototype.warnOnInvalidChildren=function(t,e){return!0},e.prototype.mapChildrenToProps=function(t,e){var n=this,r={};return d().Children.forEach(t,(function(t){if(t&&t.props){var o=t.props,i=o.children,a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[D[n]||n]=t[n],e}),e)}($(o,["children"]));switch(n.warnOnInvalidChildren(t,i),t.type){case w.LINK:case w.META:case w.NOSCRIPT:case w.SCRIPT:case w.STYLE:r=n.flattenArrayTypeChildren({child:t,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:e=n.mapObjectTypeChildren({child:t,newProps:e,newChildProps:a,nestedChildren:i})}}})),e=this.mapArrayTypeChildrenToProps(r,e)},e.prototype.render=function(){var t=this.props,e=t.children,n=$(t,["children"]),r=Z({},n);return e&&(r=this.mapChildrenToProps(e,r)),d().createElement(o,r)},q(e,null,[{key:"canUseDOM",set:function(t){o.canUseDOM=t}}]),e}(d().Component),i.propTypes={base:u().object,bodyAttributes:u().object,children:u().oneOfType([u().arrayOf(u().node),u().node]),defaultTitle:u().string,defer:u().bool,encodeSpecialCharacters:u().bool,htmlAttributes:u().object,link:u().arrayOf(u().object),meta:u().arrayOf(u().object),noscript:u().arrayOf(u().object),onChangeClientState:u().func,script:u().arrayOf(u().object),style:u().arrayOf(u().object),title:u().string,titleAttributes:u().object,titleTemplate:u().string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var t=o.rewind();return t||(t=dt({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},a);yt.renderStatic=yt.rewind},17579:(t,e,n)=>{"use strict";var r=n(80070);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},89324:(t,e,n)=>{t.exports=n(17579)()},80070:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},96559:(t,e,n)=>{"use strict";n.d(e,{rU:()=>D});var r=n(80467);function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e)}var a=n(1024),c=n.n(a);function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function s(t){return"/"===t.charAt(0)}function f(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}const l=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],o=e&&e.split("/")||[],i=t&&s(t),a=e&&s(e),c=i||a;if(t&&s(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var u=o[o.length-1];n="."===u||".."===u||""===u}else n=!1;for(var l=0,p=o.length;p>=0;p--){var h=o[p];"."===h?f(o,p):".."===h?(f(o,p),l++):l&&(f(o,p),l--)}if(!c)for(;l--;l)o.unshift("..");!c||""===o[0]||o[0]&&s(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};var p=n(2177);function h(t){return"/"===t.charAt(0)?t:"/"+t}function d(t){return"/"===t.charAt(0)?t.substr(1):t}function v(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function y(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function m(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function g(t,e,n,r){var o;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t),o.state=e):(void 0===(o=u({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function b(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}var w=!("undefined"==typeof window||!window.document||!window.document.createElement);function T(t,e){e(window.confirm(t))}var O="popstate",E="hashchange";function x(){try{return window.history.state||{}}catch(t){return{}}}function A(t){void 0===t&&(t={}),w||(0,p.Z)(!1);var e,n=window.history,r=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=t,a=i.forceRefresh,c=void 0!==a&&a,s=i.getUserConfirmation,f=void 0===s?T:s,l=i.keyLength,d=void 0===l?6:l,A=t.basename?y(h(t.basename)):"";function C(t){var e=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname+o.search+o.hash;return A&&(i=v(i,A)),g(i,r,n)}function P(){return Math.random().toString(36).substr(2,d)}var S=b();function k(t){u(W,t),W.length=n.length,S.notifyListeners(W.location,W.action)}function j(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||L(C(t.state))}function R(){L(C(x()))}var _=!1;function L(t){if(_)_=!1,k();else{S.confirmTransitionTo(t,"POP",f,(function(e){e?k({action:"POP",location:t}):function(t){var e=W.location,n=M.indexOf(e.key);-1===n&&(n=0);var r=M.indexOf(t.key);-1===r&&(r=0);var o=n-r;o&&(_=!0,N(o))}(t)}))}}var I=C(x()),M=[I.key];function U(t){return A+m(t)}function N(t){n.go(t)}var D=0;function H(t){1===(D+=t)&&1===t?(window.addEventListener(O,j),o&&window.addEventListener(E,R)):0===D&&(window.removeEventListener(O,j),o&&window.removeEventListener(E,R))}var B=!1;var W={length:n.length,action:"POP",location:I,createHref:U,push:function(t,e){var o="PUSH",i=g(t,e,P(),W.location);S.confirmTransitionTo(i,o,f,(function(t){if(t){var e=U(i),a=i.key,u=i.state;if(r)if(n.pushState({key:a,state:u},null,e),c)window.location.href=e;else{var s=M.indexOf(W.location.key),f=M.slice(0,s+1);f.push(i.key),M=f,k({action:o,location:i})}else window.location.href=e}}))},replace:function(t,e){var o="REPLACE",i=g(t,e,P(),W.location);S.confirmTransitionTo(i,o,f,(function(t){if(t){var e=U(i),a=i.key,u=i.state;if(r)if(n.replaceState({key:a,state:u},null,e),c)window.location.replace(e);else{var s=M.indexOf(W.location.key);-1!==s&&(M[s]=i.key),k({action:o,location:i})}else window.location.replace(e)}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(t){void 0===t&&(t=!1);var e=S.setPrompt(t);return B||(H(1),B=!0),function(){return B&&(B=!1,H(-1)),e()}},listen:function(t){var e=S.appendListener(t);return H(1),function(){H(-1),e()}}};return W}var C="hashchange",P={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+d(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:d,decodePath:h},slash:{encodePath:h,decodePath:h}};function S(t){var e=t.indexOf("#");return-1===e?t:t.slice(0,e)}function k(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function j(t){window.location.replace(S(window.location.href)+"#"+t)}function R(t){void 0===t&&(t={}),w||(0,p.Z)(!1);var e=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),t),r=n.getUserConfirmation,o=void 0===r?T:r,i=n.hashType,a=void 0===i?"slash":i,c=t.basename?y(h(t.basename)):"",s=P[a],f=s.encodePath,l=s.decodePath;function d(){var t=l(k());return c&&(t=v(t,c)),g(t)}var O=b();function E(t){u(B,t),B.length=e.length,O.notifyListeners(B.location,B.action)}var x=!1,A=null;function R(){var t,e,n=k(),r=f(n);if(n!==r)j(r);else{var i=d(),a=B.location;if(!x&&(e=i,(t=a).pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;if(A===m(i))return;A=null,function(t){if(x)x=!1,E();else{var e="POP";O.confirmTransitionTo(t,e,o,(function(n){n?E({action:e,location:t}):function(t){var e=B.location,n=M.lastIndexOf(m(e));-1===n&&(n=0);var r=M.lastIndexOf(m(t));-1===r&&(r=0);var o=n-r;o&&(x=!0,U(o))}(t)}))}}(i)}}var _=k(),L=f(_);_!==L&&j(L);var I=d(),M=[m(I)];function U(t){e.go(t)}var N=0;function D(t){1===(N+=t)&&1===t?window.addEventListener(C,R):0===N&&window.removeEventListener(C,R)}var H=!1;var B={length:e.length,action:"POP",location:I,createHref:function(t){var e=document.querySelector("base"),n="";return e&&e.getAttribute("href")&&(n=S(window.location.href)),n+"#"+f(c+m(t))},push:function(t,e){var n="PUSH",r=g(t,void 0,void 0,B.location);O.confirmTransitionTo(r,n,o,(function(t){if(t){var e=m(r),o=f(c+e);if(k()!==o){A=e,function(t){window.location.hash=t}(o);var i=M.lastIndexOf(m(B.location)),a=M.slice(0,i+1);a.push(e),M=a,E({action:n,location:r})}else E()}}))},replace:function(t,e){var n="REPLACE",r=g(t,void 0,void 0,B.location);O.confirmTransitionTo(r,n,o,(function(t){if(t){var e=m(r),o=f(c+e);k()!==o&&(A=e,j(o));var i=M.indexOf(m(B.location));-1!==i&&(M[i]=e),E({action:n,location:r})}}))},go:U,goBack:function(){U(-1)},goForward:function(){U(1)},block:function(t){void 0===t&&(t=!1);var e=O.setPrompt(t);return H||(D(1),H=!0),function(){return H&&(H=!1,D(-1)),e()}},listen:function(t){var e=O.appendListener(t);return D(1),function(){D(-1),e()}}};return B}n(94662);function _(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}c().Component;c().Component;var L=function(t,e){return"function"==typeof t?t(e):t},I=function(t,e){return"string"==typeof t?g(t,null,null,e):t},M=function(t){return t},U=c().forwardRef;void 0===U&&(U=M);var N=U((function(t,e){var n=t.innerRef,r=t.navigate,o=t.onClick,i=_(t,["innerRef","navigate","onClick"]),a=i.target,s=u({},i,{onClick:function(t){try{o&&o(t)}catch(e){throw t.preventDefault(),e}t.defaultPrevented||0!==t.button||a&&"_self"!==a||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),r())}});return s.ref=M!==U&&e||n,c().createElement("a",s)}));var D=U((function(t,e){var n=t.component,o=void 0===n?N:n,i=t.replace,a=t.to,s=t.innerRef,f=_(t,["component","replace","to","innerRef"]);return c().createElement(r.s6.Consumer,null,(function(t){t||(0,p.Z)(!1);var n=t.history,r=I(L(a,t.location),t.location),l=r?n.createHref(r):"",h=u({},f,{href:l,navigate:function(){var e=L(a,t.location),r=m(t.location)===m(I(e));(i||r?n.replace:n.push)(e)}});return M!==U?h.ref=e||s:h.innerRef=s,c().createElement(o,h)}))})),H=function(t){return t},B=c().forwardRef;void 0===B&&(B=H);B((function(t,e){var n=t["aria-current"],o=void 0===n?"page":n,i=t.activeClassName,a=void 0===i?"active":i,s=t.activeStyle,f=t.className,l=t.exact,h=t.isActive,d=t.location,v=t.sensitive,y=t.strict,m=t.style,g=t.to,b=t.innerRef,w=_(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return c().createElement(r.s6.Consumer,null,(function(t){t||(0,p.Z)(!1);var n=d||t.location,i=I(L(g,n),n),T=i.pathname,O=T&&T.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),E=O?(0,r.LX)(n.pathname,{path:O,exact:l,sensitive:v,strict:y}):null,x=!!(h?h(E,n):E),A="function"==typeof f?f(x):f,C="function"==typeof m?m(x):m;x&&(A=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((function(t){return t})).join(" ")}(A,a),C=u({},C,s));var P=u({"aria-current":x&&o||null,className:A,style:C,to:i},w);return H!==B?P.ref=e||b:P.innerRef=b,c().createElement(D,P)}))}))},126:(t,e,n)=>{"use strict";var r=n(51235);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},94662:(t,e,n)=>{t.exports=n(126)()},51235:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},80467:(t,e,n)=>{"use strict";function r(t,e){return r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(t,e)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}n.d(e,{NL:()=>L,l_:()=>N,AW:()=>W,F0:()=>R,rs:()=>V,s6:()=>j,LX:()=>B,k6:()=>z,TH:()=>J,UO:()=>X});var i=n(1024),a=n.n(i),c=n(88462),u=n.n(c);function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}function f(t){return"/"===t.charAt(0)}function l(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}const p=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],o=e&&e.split("/")||[],i=t&&f(t),a=e&&f(e),c=i||a;if(t&&f(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var u=o[o.length-1];n="."===u||".."===u||""===u}else n=!1;for(var s=0,p=o.length;p>=0;p--){var h=o[p];"."===h?l(o,p):".."===h?(l(o,p),s++):s&&(l(o,p),s--)}if(!c)for(;s--;s)o.unshift("..");!c||""===o[0]||o[0]&&f(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function h(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}const d=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"==typeof e||"object"==typeof n){var r=h(e),o=h(n);return r!==e||o!==n?t(r,o):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1};function v(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function y(t,e,n,r){var o;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t),o.state=e):(void 0===(o=s({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=p(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function m(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}"undefined"==typeof window||!window.document||window.document.createElement;function g(t,e,n){return Math.min(Math.max(t,e),n)}function b(t){void 0===t&&(t={});var e=t,n=e.getUserConfirmation,r=e.initialEntries,o=void 0===r?["/"]:r,i=e.initialIndex,a=void 0===i?0:i,c=e.keyLength,u=void 0===c?6:c,f=m();function l(t){s(T,t),T.length=T.entries.length,f.notifyListeners(T.location,T.action)}function p(){return Math.random().toString(36).substr(2,u)}var h=g(a,0,o.length-1),d=o.map((function(t){return y(t,void 0,"string"==typeof t?p():t.key||p())})),b=v;function w(t){var e=g(T.index+t,0,T.entries.length-1),r=T.entries[e];f.confirmTransitionTo(r,"POP",n,(function(t){t?l({action:"POP",location:r,index:e}):l()}))}var T={length:d.length,action:"POP",location:d[h],index:h,entries:d,createHref:b,push:function(t,e){var r="PUSH",o=y(t,e,p(),T.location);f.confirmTransitionTo(o,r,n,(function(t){if(t){var e=T.index+1,n=T.entries.slice(0);n.length>e?n.splice(e,n.length-e,o):n.push(o),l({action:r,location:o,index:e,entries:n})}}))},replace:function(t,e){var r="REPLACE",o=y(t,e,p(),T.location);f.confirmTransitionTo(o,r,n,(function(t){t&&(T.entries[T.index]=o,l({action:r,location:o}))}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},canGo:function(t){var e=T.index+t;return e>=0&&e<T.entries.length},block:function(t){return void 0===t&&(t=!1),f.setPrompt(t)},listen:function(t){return f.appendListener(t)}};return T}var w=1073741823,T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};function O(t){var e=[];return{on:function(t){e.push(t)},off:function(t){e=e.filter((function(e){return e!==t}))},get:function(){return t},set:function(n,r){t=n,e.forEach((function(e){return e(t,r)}))}}}var E=a().createContext||function(t,e){var n,r,a="__create-react-context-"+function(){var t="__global_unique_id__";return T[t]=(T[t]||0)+1}()+"__",c=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).emitter=O(e.props.value),e}o(n,t);var r=n.prototype;return r.getChildContext=function(){var t;return(t={})[a]=this.emitter,t},r.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,r=this.props.value,o=t.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?n=0:(n="function"==typeof e?e(r,o):w,0!==(n|=0)&&this.emitter.set(t.value,n))}var i,a},r.render=function(){return this.props.children},n}(i.Component);c.childContextTypes=((n={})[a]=u().object.isRequired,n);var s=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!=((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}o(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?w:e},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?w:t},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(i.Component);return s.contextTypes=((r={})[a]=u().object,r),{Provider:c,Consumer:s}};const x=E;var A=n(2177),C=n(39658),P=n.n(C);n(59864);n(8679);var S=function(t){var e=x();return e.displayName=t,e},k=S("Router-History"),j=S("Router"),R=function(t){function e(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(t){n._pendingLocation=t}))),n}o(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=e.prototype;return n.componentDidMount=function(){var t=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(e){t._isMounted&&t.setState({location:e})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return a().createElement(j.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a().createElement(k.Provider,{children:this.props.children||null,value:this.props.history}))},e}(a().Component);a().Component;var _=function(t){function e(){return t.apply(this,arguments)||this}o(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},e}(a().Component);function L(t){var e=t.message,n=t.when,r=void 0===n||n;return a().createElement(j.Consumer,null,(function(t){if(t||(0,A.Z)(!1),!r||t.staticContext)return null;var n=t.history.block;return a().createElement(_,{onMount:function(t){t.release=n(e)},onUpdate:function(t,r){r.message!==e&&(t.release(),t.release=n(e))},onUnmount:function(t){t.release()},message:e})}))}var I={},M=0;function U(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(I[t])return I[t];var e=P().compile(t);return M<1e4&&(I[t]=e,M++),e}(t)(e,{pretty:!0})}function N(t){var e=t.computedMatch,n=t.to,r=t.push,o=void 0!==r&&r;return a().createElement(j.Consumer,null,(function(t){t||(0,A.Z)(!1);var r=t.history,i=t.staticContext,c=o?r.push:r.replace,u=y(e?"string"==typeof n?U(n,e.params):s({},n,{pathname:U(n.pathname,e.params)}):n);return i?(c(u),null):a().createElement(_,{onMount:function(){c(u)},onUpdate:function(t,e){var n,r,o=y(e.to);n=o,r=s({},u,{key:o.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&d(n.state,r.state)||c(u)},to:n})}))}var D={},H=0;function B(t,e){void 0===e&&(e={}),("string"==typeof e||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,c=void 0!==a&&a,u=n.sensitive,s=void 0!==u&&u;return[].concat(r).reduce((function(e,n){if(!n&&""!==n)return null;if(e)return e;var r=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=D[n]||(D[n]={});if(r[t])return r[t];var o=[],i={regexp:P()(t,o,e),keys:o};return H<1e4&&(r[t]=i,H++),i}(n,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(t);if(!u)return null;var f=u[0],l=u.slice(1),p=t===f;return i&&!p?null:{path:n,url:"/"===n&&""===f?"/":f,isExact:p,params:a.reduce((function(t,e,n){return t[e.name]=l[n],t}),{})}}),null)}var W=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){var t=this;return a().createElement(j.Consumer,null,(function(e){e||(0,A.Z)(!1);var n=t.props.location||e.location,r=s({},e,{location:n,match:t.props.computedMatch?t.props.computedMatch:t.props.path?B(n.pathname,t.props):e.match}),o=t.props,i=o.children,c=o.component,u=o.render;return Array.isArray(i)&&function(t){return 0===a().Children.count(t)}(i)&&(i=null),a().createElement(j.Provider,{value:r},r.match?i?"function"==typeof i?i(r):i:c?a().createElement(c,r):u?u(r):null:"function"==typeof i?i(r):null)}))},e}(a().Component);function F(t){return"/"===t.charAt(0)?t:"/"+t}function q(t,e){if(!t)return e;var n=F(t);return 0!==e.pathname.indexOf(n)?e:s({},e,{pathname:e.pathname.substr(n.length)})}function Z(t){return"string"==typeof t?t:v(t)}function $(t){return function(){(0,A.Z)(!1)}}function Y(){}a().Component;var V=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){var t=this;return a().createElement(j.Consumer,null,(function(e){e||(0,A.Z)(!1);var n,r,o=t.props.location||e.location;return a().Children.forEach(t.props.children,(function(t){if(null==r&&a().isValidElement(t)){n=t;var i=t.props.path||t.props.from;r=i?B(o.pathname,s({},t.props,{path:i})):e.match}})),r?a().cloneElement(n,{location:o,computedMatch:r}):null}))},e}(a().Component);var K=a().useContext;function z(){return K(k)}function J(){return K(j).location}function X(){var t=K(j).match;return t?t.params:{}}},76585:t=>{t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},39658:(t,e,n)=>{var r=n(76585);t.exports=h,t.exports.parse=i,t.exports.compile=function(t,e){return c(i(t,e),e)},t.exports.tokensToFunction=c,t.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,e){for(var n,r=[],i=0,a=0,c="",f=e&&e.delimiter||"/";null!=(n=o.exec(t));){var l=n[0],p=n[1],h=n.index;if(c+=t.slice(a,h),a=h+l.length,p)c+=p[1];else{var d=t[a],v=n[2],y=n[3],m=n[4],g=n[5],b=n[6],w=n[7];c&&(r.push(c),c="");var T=null!=v&&null!=d&&d!==v,O="+"===b||"*"===b,E="?"===b||"*"===b,x=n[2]||f,A=m||g;r.push({name:y||i++,prefix:v||"",delimiter:x,optional:E,repeat:O,partial:T,asterisk:!!w,pattern:A?s(A):w?".*":"[^"+u(x)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&r.push(c),r}function a(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function c(t,e){for(var n=new Array(t.length),o=0;o<t.length;o++)"object"==typeof t[o]&&(n[o]=new RegExp("^(?:"+t[o].pattern+")$",l(e)));return function(e,o){for(var i="",c=e||{},u=(o||{}).pretty?a:encodeURIComponent,s=0;s<t.length;s++){var f=t[s];if("string"!=typeof f){var l,p=c[f.name];if(null==p){if(f.optional){f.partial&&(i+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(r(p)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(l=u(p[h]),!n[s].test(l))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?f.prefix:f.delimiter)+l}}else{if(l=f.asterisk?encodeURI(p).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):u(p),!n[s].test(l))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+l+'"');i+=f.prefix+l}}else i+=f}return i}}function u(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function f(t,e){return t.keys=e,t}function l(t){return t&&t.sensitive?"":"i"}function p(t,e,n){r(e)||(n=e||n,e=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",c=0;c<t.length;c++){var s=t[c];if("string"==typeof s)a+=u(s);else{var p=u(s.prefix),h="(?:"+s.pattern+")";e.push(s),s.repeat&&(h+="(?:"+p+h+")*"),a+=h=s.optional?s.partial?p+"("+h+")?":"(?:"+p+"("+h+"))?":p+"("+h+")"}}var d=u(n.delimiter||"/"),v=a.slice(-d.length)===d;return o||(a=(v?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=i?"$":o&&v?"":"(?="+d+"|$)",f(new RegExp("^"+a,l(n)),e)}function h(t,e,n){return r(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(t,e)}(t,e):r(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(h(t[o],e,n).source);return f(new RegExp("(?:"+r.join("|")+")",l(n)),e)}(t,e,n):function(t,e,n){return p(i(t,n),e,n)}(t,e,n)}},45872:(t,e,n)=>{"use strict";var r=n(4795);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},88462:(t,e,n)=>{t.exports=n(45872)()},4795:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},83524:(t,e,n)=>{"use strict";var r,o=n(1024),i=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=function(t,e,n){if("function"!=typeof t)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof e)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u,s=[];function f(){u=t(s.map((function(t){return t.props}))),l.canUseDOM?e(u):n&&(u=n(u))}var l=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,o.peek=function(){return u},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var t=u;return u=void 0,s=[],t};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){s.push(this),f()},a.componentDidUpdate=function(){f()},a.componentWillUnmount=function(){var t=s.indexOf(this);s.splice(t,1),f()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(l,"displayName","SideEffect("+function(t){return t.displayName||t.name||"Component"}(r)+")"),a(l,"canUseDOM",c),l}}},14149:(t,e,n)=>{"use strict";function r(t){return"/"===t.charAt(0)}function o(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}n.r(e),n.d(e,{default:()=>i});const i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],i=e&&e.split("/")||[],a=t&&r(t),c=e&&r(e),u=a||c;if(t&&r(t)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var s=void 0;if(i.length){var f=i[i.length-1];s="."===f||".."===f||""===f}else s=!1;for(var l=0,p=i.length;p>=0;p--){var h=i[p];"."===h?o(i,p):".."===h?(o(i,p),l++):l&&(o(i,p),l--)}if(!u)for(;l--;l)i.unshift("..");!u||""===i[0]||i[0]&&r(i[0])||i.unshift("");var d=i.join("/");return s&&"/"!==d.substr(-1)&&(d+="/"),d}},2177:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r="Invariant failed";function o(t,e){if(!t)throw new Error(r)}},54545:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};const o=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));var o=void 0===e?"undefined":r(e);if(o!==(void 0===n?"undefined":r(n)))return!1;if("object"===o){var i=e.valueOf(),a=n.valueOf();if(i!==e||a!==n)return t(i,a);var c=Object.keys(e),u=Object.keys(n);return c.length===u.length&&c.every((function(r){return t(e[r],n[r])}))}return!1}},30670:t=>{"use strict";t.exports=function(){}},90655:(t,e,n)=>{"use strict";function r(t,e){void 0===e&&(e={});for(var n=function(t){for(var e=[],n=0;n<t.length;){var r=t[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)e.push({type:"CHAR",index:n,value:t[n++]});else{var o=1,i="";if("?"===t[c=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(c));for(;c<t.length;)if("\\"!==t[c]){if(")"===t[c]){if(0==--o){c++;break}}else if("("===t[c]&&(o++,"?"!==t[c+1]))throw new TypeError("Capturing groups are not allowed at ".concat(c));i+=t[c++]}else i+=t[c++]+t[c++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));e.push({type:"PATTERN",index:n,value:i}),n=c}else{for(var a="",c=n+1;c<t.length;){var u=t.charCodeAt(c);if(!(u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||95===u))break;a+=t[c++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));e.push({type:"NAME",index:n,value:a}),n=c}else e.push({type:"CLOSE",index:n,value:t[n++]});else e.push({type:"OPEN",index:n,value:t[n++]});else e.push({type:"ESCAPED_CHAR",index:n++,value:t[n++]});else e.push({type:"MODIFIER",index:n,value:t[n++]})}return e.push({type:"END",index:n,value:""}),e}(t),r=e.prefixes,i=void 0===r?"./":r,a="[^".concat(o(e.delimiter||"/#?"),"]+?"),c=[],u=0,s=0,f="",l=function(t){if(s<n.length&&n[s].type===t)return n[s++].value},p=function(t){var e=l(t);if(void 0!==e)return e;var r=n[s],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(t))},h=function(){for(var t,e="";t=l("CHAR")||l("ESCAPED_CHAR");)e+=t;return e};s<n.length;){var d=l("CHAR"),v=l("NAME"),y=l("PATTERN");if(v||y){var m=d||"";-1===i.indexOf(m)&&(f+=m,m=""),f&&(c.push(f),f=""),c.push({name:v||u++,prefix:m,suffix:"",pattern:y||a,modifier:l("MODIFIER")||""})}else{var g=d||l("ESCAPED_CHAR");if(g)f+=g;else if(f&&(c.push(f),f=""),l("OPEN")){m=h();var b=l("NAME")||"",w=l("PATTERN")||"",T=h();p("CLOSE"),c.push({name:b||(w?u++:""),pattern:b&&!w?a:w,prefix:m,suffix:T,modifier:l("MODIFIER")||""})}else p("END")}}return c}function o(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(t){return t&&t.sensitive?"":"i"}function a(t,e,n){return function(t,e,n){void 0===n&&(n={});for(var r=n.strict,a=void 0!==r&&r,c=n.start,u=void 0===c||c,s=n.end,f=void 0===s||s,l=n.encode,p=void 0===l?function(t){return t}:l,h=n.delimiter,d=void 0===h?"/#?":h,v=n.endsWith,y="[".concat(o(void 0===v?"":v),"]|$"),m="[".concat(o(d),"]"),g=u?"^":"",b=0,w=t;b<w.length;b++){var T=w[b];if("string"==typeof T)g+=o(p(T));else{var O=o(p(T.prefix)),E=o(p(T.suffix));if(T.pattern)if(e&&e.push(T),O||E)if("+"===T.modifier||"*"===T.modifier){var x="*"===T.modifier?"?":"";g+="(?:".concat(O,"((?:").concat(T.pattern,")(?:").concat(E).concat(O,"(?:").concat(T.pattern,"))*)").concat(E,")").concat(x)}else g+="(?:".concat(O,"(").concat(T.pattern,")").concat(E,")").concat(T.modifier);else"+"===T.modifier||"*"===T.modifier?g+="((?:".concat(T.pattern,")").concat(T.modifier,")"):g+="(".concat(T.pattern,")").concat(T.modifier);else g+="(?:".concat(O).concat(E,")").concat(T.modifier)}}if(f)a||(g+="".concat(m,"?")),g+=n.endsWith?"(?=".concat(y,")"):"$";else{var A=t[t.length-1],C="string"==typeof A?m.indexOf(A[A.length-1])>-1:void 0===A;a||(g+="(?:".concat(m,"(?=").concat(y,"))?")),C||(g+="(?=".concat(m,"|").concat(y,")"))}return new RegExp(g,i(n))}(r(t,n),e,n)}function c(t,e,n){return t instanceof RegExp?function(t,e){if(!e)return t;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(t.source);o;)e.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(t.source);return t}(t,e):Array.isArray(t)?function(t,e,n){var r=t.map((function(t){return c(t,e,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),i(n))}(t,e,n):a(t,e,n)}n.d(e,{Bo:()=>c})},72753:(t,e,n)=>{"use strict";function r(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}n.d(e,{Z:()=>r})},45915:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(88911);var o=n(72753),i=n(61917);function a(t){return function(t){if(Array.isArray(t))return(0,r.Z)(t)}(t)||(0,o.Z)(t)||(0,i.Z)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}}}]);