tocco-widget-bundle 0.1.84 → 0.1.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +3 -0
- package/dist/chunk-344.5fb085e77cd785f062a2.js +1 -0
- package/dist/{chunk-docs-actions.c19d1868951fd5cda927.js → chunk-docs-actions.31a2d8dfe1361565593e.js} +1 -1
- package/dist/docs-browser.js +2 -2
- package/dist/entity-browser.js +1 -1
- package/dist/entity-dms.js +2 -2
- package/dist/mailing-list.js +1 -1
- package/dist/personal-dms.js +2 -2
- package/dist/public-dms.js +2 -2
- package/dist/stint-auction.js +1 -1
- package/dist/user-availability.js +1 -1
- package/dist/user-grades.js +1 -1
- package/dist/wage-view.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-344.5bd4c0f994e9d18a9a36.js +0 -1
package/changelog.md
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunktocco_widget_bundle=self.webpackChunktocco_widget_bundle||[]).push([[344],{13025:(e,t,n)=>{n.d(t,{Z:()=>o,l:()=>i});var r=n(45697),o={SINGLE:"single",MULTI:"multi",MULTI_EXPLICIT:"multi_explicit",NONE:"none"},i=n.n(r)().oneOf(Object.keys(o).map((function(e){return o[e]})))},10129:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(59713),o=n.n(r),i=n(6479),c=n.n(i),a=n(65035),s=n(85893),u=["icon","label","onClick"];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}const p=function(e){var t=e.icon,n=e.label,r=e.onClick,i=c()(e,u);return(0,s.jsx)(a.Z,function(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}({icon:t||"arrow-left",label:n,onClick:r,"data-cy":"back-button"},i))}},36498:(e,t,n)=>{n.d(t,{$s:()=>a,BF:()=>u,az:()=>s});var r=n(45697),o=n.n(r),i=n(8358),c=o().oneOfType([o().string,o().number]),a=o().shape({__key:c}),s=(o().arrayOf(a),o().oneOf(Object.keys(i.P).map((function(e){return i.P[e]})))),u=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"}},29441:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(59713),o=n.n(r),i=n(27361),c=n.n(i);function a(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?a(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={};const l={persistViewInfo:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;u=s(s({},u),{},o()({},e,{level:n,info:s(s({},c()(u,[e,"info"],{})),t)}))},viewInfoSelector:function(e){return c()(u,[e,"info"],{})},clearPersistedViews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;u=s({},Object.keys(u).reduce((function(t,n){var r=u[n];return s(s({},t),r.level<e&&o()({},n,r))}),{}))}}},78125:(e,t,n)=>{n.d(t,{ZP:()=>Er});var r=n(59713),o=n.n(r),i=n(52540),c=n(45697),a=n.n(c),s=n(50600),u=n(79013),l=n(87533),p=n(22731),d=n(19743),f=n(19241),y=n(27023),m=n(81749),h=n(13025),b=n(36498),v=n(44362),g=n(23369),O=n(1024),j=n.n(O),w=n(99376),P=n(1317),x=n(74806),S=n(50558),E="docs/create/OPEN_DIALOG",Z="docs/create/FILES_SELECTED",C="docs/path/LOAD_BREADCRUMBS",k="docs/path/SET_BREADCRUMBS",D="docs/path/SET_SEARCH_MODE",F=function(e){return{type:k,payload:{breadcrumbs:e}}},N=n(20247),A=n(63038),I=n.n(A),T=n(29441),R=/^\/docs\/?$/;const _=function(e){return R.test(e)};var L,B,M=n(38205),z=n(319),V=n.n(z),U=n(69038),W=n(10535),$=n(28655),q=n.n($),H=n(96559),K=n(30759),Y=n(88601),G=(0,M.iv)(L||(L=q()(["\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,K.Z)(),Y.Z.color("text"),Y.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 J=(0,M.ZP)(H.rU).withConfig({shouldForwardProp:function(e,t){return!["neutral"].includes(e)&&t(e)}})(B||(B=q()(["\n ","\n"])),G);var X=n(34206),Q=n(88162),ee=n(85893),te={error:"exclamation-circle",home:"house-blank"},ne=function(e){return te[e]||e};const re=function(e){var t=e.type;return t&&"record"!==t?(0,ee.jsx)(Q.Z,{icon:ne(t)}):null};var oe,ie,ce,ae,se,ue=n(6479),le=n.n(ue),pe=n(69829),de=["component"],fe=M.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(oe||(oe=q()(["\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||Y.Z.color("backgroundBreadcrumbs")(e)})),ye=(0,M.ZP)((function(e){var t=e.component,n=le()(e,de);return j().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(ie||(ie=q()(["\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"])),Y.Z.fontWeight("bold"),(function(e){return e.active&&Y.Z.color("primary")}),Y.Z.fontWeight("bold"),(function(e){return e.active&&Y.Z.color("primary")}),Y.Z.color("secondaryLight"),Y.Z.color("primary")),me=M.ZP.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(ce||(ce=q()(["\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"])),Y.Z.fontWeight("bold"),(function(e){return e.active&&Y.Z.color("primary")}),Y.Z.fontWeight("bold"),(function(e){return e.active&&Y.Z.color("primary")}),Y.Z.color("primary")),he=(0,M.ZP)(pe.Fe).withConfig({displayName:"StyledBreadcrumbSeparator"})(ae||(ae=q()(["\n margin-left: 0.9rem;\n margin-right: 0.9rem;\n"])));const be=function(){return se||(se=(0,ee.jsx)(he,{breakWords:!0,children:(0,ee.jsx)(Q.Z,{icon:"chevron-right"})}))};var ve;function ge(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 Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var je=function(e){return e.title||e.display},we=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(je(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(je).join(" - ");break;default:r=je(n)}return r},Pe=function(e){var t,n=e.intl,r=e.pathPrefix,o=e.breadcrumbsInfo,i=void 0===o?[]:o,c=e.currentView,a=e.backgroundColor,s=e.onClick,u=e.linkComp,l=[].concat(V()(i),V()(c?[c]:[]));if(0===l.length)return null;var p,d=l.map((function(e,n){var o,i=e.display||"",c=n===l.length-1?me:ye,a=n===l.length-1&&{active:"true"},p=void 0!==e.path?{to:"".concat(r,"/").concat(e.path)}:{},d=u?t||(t=(0,ee.jsx)(u,{})):ve||(ve=(0,ee.jsx)(J,{}));return(0,ee.jsx)(X.ZP.Span,{children:(0,ee.jsxs)(c,Oe(Oe(Oe({neutral:!0},a),p),{},{onClick:(o=e,function(){s&&s(o)}),component:d,children:[(0,ee.jsx)(re,{type:e.type}),(0,ee.jsx)("span",{dangerouslySetInnerHTML:{__html:W.Z.sanitizeHtml(i)}})]}))},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,ee.jsx)(be,{},"icon".concat(n)),t]}));return(0,ee.jsxs)(fe,{backgroundColor:a,children:[(0,ee.jsx)(U.q,{defer:!1,children:(0,ee.jsx)("title",{children:we(l,(p="client.component.breadcrumbs.createTitle",n.formatMessage({id:p})))})}),(0,ee.jsx)(ee.Fragment,{children:d})]})};Pe.defaultProps={pathPrefix:""};const xe=Pe,Se=(0,x.ZP)(xe);function Ee(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 Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ce=(0,M.Zz)((function(e){var t=e.embedded,n=e.resetSearchMode,r=e.theme,o=e.pathPrefix,i=e.breadcrumbsInfo;return(0,ee.jsx)(Se,Ze(Ze({},t?{backgroundColor:Y.Z.color("paper")({theme:r})}:{}),{},{onClick:function(e){""===e.path&&n()},pathPrefix:o,breadcrumbsInfo:i}))}));function ke(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 De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fe=function(e){return(0,ee.jsx)("span",De({},e))};const Ne=(0,M.Zz)((function(e){var t=e.embedded,n=e.navigate,r=e.resetSearchMode,o=e.theme,i=e.pathPrefix,c=e.breadcrumbsInfo;return(0,ee.jsx)(Se,De(De({},t?{backgroundColor:Y.Z.color("paper")({theme:o})}:{}),{},{onClick:function(e){""===e.path&&r(),n("/docs/".concat(e.path))},linkComp:Fe,pathPrefix:i,breadcrumbsInfo:c}))}));var Ae={},Ie=function(e){return{pathPrefix:"/docs",breadcrumbsInfo:e.docs.path.breadcrumbs,embedded:e.input.embedded}},Te=(0,S.connect)(Ie,Ae)((0,x.ZP)(Ce)),Re=(0,S.connect)(Ie,Ae)((0,x.ZP)(Ne));const _e=(0,N.U)({routerless:Re,router:Te});var Le="docs/list/CHANGE_LIST_PARENT",Be="docs/list/CHANGE_SELECTION",Me="docs/list/CHANGE_SEARCH_FORM_COLLAPSED",ze=n(50258),Ve={"dms-create-folder":(0,O.lazy)((function(){return Promise.all([n.e(81),n.e(85),n.e(614),n.e(198),n.e(141)]).then(n.bind(n,36340))})),"dms-create-domain":(0,O.lazy)((function(){return Promise.all([n.e(81),n.e(85),n.e(614),n.e(198),n.e(141)]).then(n.bind(n,67210))})),"dms-edit":(0,O.lazy)((function(){return Promise.all([n.e(81),n.e(85),n.e(614),n.e(198),n.e(141)]).then(n.bind(n,90100))})),"dms-move":(0,O.lazy)((function(){return Promise.all([n.e(81),n.e(85),n.e(614),n.e(198),n.e(141)]).then(n.bind(n,4505))})),delete:(0,O.lazy)((function(){return Promise.all([n.e(81),n.e(85),n.e(614),n.e(198),n.e(141)]).then(n.bind(n,96954))}))};const Ue=l.Z.actionFactory(Ve);var We=n(35997);function $e(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 qe=function(e){var t=e.instanceCount,n=e.directory,r=e.onChange,i=e.path,c=(0,O.useRef)(),a=We.Z.usePrevious(t);(0,O.useEffect)((function(){c.current&&t>a&&c.current.click()}));return(0,ee.jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:"file",ref:c,style:{display:"none"},onChange:function(e){var t=e.target.files;t&&t.length>0&&r&&r(i,t,n),e.target.value=null},multiple:!0},n?{webkitdirectory:"true",directory:"true"}:{}))};var He={onChange:function(e,t,n){return{type:Z,payload:{location:e,files:t,isDirectory:n}}}};const Ke=(0,N.U)((0,S.connect)((function(e){return{instanceCount:e.docs.create.dialog.instanceCount,directory:e.docs.create.dialog.directory}}),He)(qe));var Ye,Ge,Je,Xe,Qe=n(7281),et=M.ZP.div.withConfig({displayName:"StyledContentWrapper"})(Ye||(Ye=q()(["\n display: flex;\n align-items: center;\n"]))),tt=M.ZP.span.withConfig({displayName:"StyledIconWrapper"})(Ge||(Ge=q()(["\n font-size: ",";\n display: inline-block;\n margin-right: ",";\n"])),Qe.Z.font(1),Qe.Z.space(-2)),nt=j().lazy((function(){return Promise.all([n.e(81),n.e(85),n.e(614),n.e(141)]).then(n.bind(n,77840))}));const rt=function(e){var t=e.domainTypes,n=e.rootNodes,r=e.navigationStrategy,o=e.changeListParent,i=e.onSearchChange,c=e.emitAction,a=e.openFileDialog,s=e.limit,u=e.searchFormType,l=e.selectionStyle,p=e.selection,d=e.selectionFilterFn,f=e.getCustomLocation,y=e.disableViewPersistor,m=e.getListFormName,h=e.domainDetailFormName,b=e.folderDetailFormName,v=e.showActions,g=e.scrollBehaviour,j=e.sortable,w=e.searchMode,P=e.openResource,x=e.searchFormCollapsed,S=e.locale,E=e.changeSelection,Z=e.changeSearchFormCollapsed,C=e.params,k=e.navigate,D=e.path,F=(0,O.useReducer)((function(e){return e+1}),0),N=I()(F,2),A=N[0],R=N[1],L="entity-list-".concat(A),B=(0,O.useState)([]),M=I()(B,2),z=M[0],V=M[1],U=p||z,W=(0,O.useMemo)((function(){return function(e){if(e&&e.model){var t=e.model.charAt(0).toUpperCase()+e.model.slice(1),n=e.key;return{model:"Docs_list_item",key:"".concat(t,"/").concat(n)}}return null}(C)}),[C]),$=!W&&n?n.map((function(e){return"".concat(e.entityName,"/").concat(e.key)})):null,q=(0,O.useMemo)((function(){return m?m(W,$):function(e,t){return e?"Docs_list_item":t?"Root_docs_list_item_specific":"Root_docs_list_item"}(W,$)}),[W,$,m]),H=(0,O.useRef)(!1),K=(0,O.useRef)(w),Y=(0,O.useRef)(D);K.current=w,Y.current=D,(0,O.useEffect)((function(){return H.current=!0,function(){return H.current=!1}})),(0,O.useEffect)((function(){o(W),V([])}),[W,o]);var G=function(e){V(e),E(e)},J=function(){if(!T.Z.viewInfoSelector("search").store){var e=T.Z.viewInfoSelector(L).store;T.Z.persistViewInfo("search",{store:e})}R()},X=W||$?null:function(e){return Array.isArray(e)&&e.length>0?"exists(relDomain_type where IN(unique_id, ".concat(e.map((function(e){return'"'.concat(e,'"')})).join(","),"))"):null}(t),te=function(){if(!y)return _(D)?T.Z.viewInfoSelector("search").store:null}();return(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(O.Suspense,{fallback:Je||(Je=(0,ee.jsx)(ze.Z,{})),children:(0,ee.jsx)(nt,{id:"documents",entityName:"Docs_list_item",formName:q,searchListFormName:"Search_docs_list_item",limit:s||25,onRowClick:function(e){var t=e.id;w&&_(D)&&J();var n=t.split("/"),r=I()(n,2),o=r[0],i=r[1],c=f?f(o,i):function(e,t){switch(e){case"Domain":return"/docs/domain/".concat(t,"/list");case"Folder":return"/docs/folder/".concat(t,"/list");case"Resource":return"/docs/doc/".concat(t,"/detail");default:throw new Error("Unexpected model: ".concat(e))}}(o,i);c?P&&"Resource"===o?P(c):k(c):G([t])},searchFormPosition:"left",searchFormType:u||"admin",parent:W,onSearchChange:function(e){H.current&&(e.query&&e.query.hasUserChanges&&J(),i(e))},store:te,onStoreCreate:function(e){y||T.Z.persistViewInfo(L,{store:e})},cellRenderers:{"dms-label-with-icon":function(e,t,n){return(0,ee.jsxs)(et,{children:[(0,ee.jsx)(tt,{children:(0,ee.jsx)(Q.Z,{icon:e.icon})}),(0,ee.jsx)("span",{children:n(t.children[0])})]})},"dms-actions":function(e,t,n){return(0,ee.jsx)(et,{children:t.children.filter((function(t){return!t.dmsEntityModel||t.dmsEntityModel===e.type})).map((function(e){return n(e)}))})}},emitAction:c,actionAppComponent:Ue,contextParams:{detailFormNames:{Domain:h,Folder:b}},customActions:{"upload-document":function(e,t,n,r,o,i,c){a(!1,i,c)},"upload-directory":function(e,t,n,r,o,i,c){a(!0,i,c)}},navigationStrategy:r,tql:X,keys:$,selectionStyle:l||"multi_explicit",onSelectChange:G,selection:U,selectionFilterFn:d,showActions:v,sortable:j,searchFormCollapsed:x,scrollBehaviour:g,onSearchFormCollapsedChange:Z,locale:S},L)}),Xe||(Xe=(0,ee.jsx)(Ke,{}))]})};var ot={changeListParent:function(e){return{type:Le,payload:{parent:e}}},changeSelection:function(e){return{type:Be,payload:{selection:e}}},changeSearchFormCollapsed:function(e){return{type:Me,payload:{collapsed:e}}}};const it=(0,N.U)((0,S.connect)((function(e){return{domainTypes:e.input.domainTypes,rootNodes:e.input.rootNodes,limit:e.input.listLimit,searchFormType:e.input.searchFormType,selectionStyle:e.input.selectionStyle,selectionFilterFn:e.input.selectionFilterFn,getCustomLocation:e.input.getCustomLocation,disableViewPersistor:e.input.disableViewPersistor,getListFormName:e.input.getListFormName,domainDetailFormName:e.input.domainDetailFormName,folderDetailFormName:e.input.folderDetailFormName,showActions:e.input.showActions,sortable:e.input.sortable,openResource:e.input.openResource,searchFormCollapsed:e.input.searchFormCollapsed,scrollBehaviour:e.input.scrollBehaviour,selection:e.input.selection,locale:e.intl.locale}}),ot)((0,x.ZP)(rt)));var ct,at,st=M.ZP.div.withConfig({displayName:"StyledDocumentViewWrapper"})(ct||(ct=q()(["\n height: 100%;\n background-color: ",";\n padding-left: ",";\n overflow-y: hidden;\n"])),Y.Z.color("paper"),Qe.Z.space(.5)),ut=j().lazy((function(){return Promise.all([n.e(81),n.e(85),n.e(614),n.e(198),n.e(141)]).then(n.bind(n,82445))}));const lt=function(e){var t=e.breadcrumbs,n=e.formName,r=e.navigationStrategy,o=e.locale,i=e.emitAction,c=e.navigate,a=e.params;return(0,ee.jsx)(st,{children:(0,ee.jsx)(O.Suspense,{fallback:at||(at=(0,ee.jsx)(ze.Z,{})),children:(0,ee.jsx)(ut,{entityName:"Resource",entityId:a.key,formName:n||"DmsResource",mode:"update",actionAppComponent:Ue,navigationStrategy:r,emitAction:i,onEntityDeleted:function(){var e=t.slice().reverse().find((function(e){return"list"===e.type})),n="/docs/".concat(e.path);c(n)},locale:o})})})};var pt={emitAction:function(e){return s.Z.dispatchEmittedAction(e)}};const dt=(0,N.U)((0,S.connect)((function(e){return{breadcrumbs:e.docs.path.breadcrumbs,formName:e.input.documentDetailFormName,locale:e.intl.locale}}),pt)((0,x.ZP)(lt)));const ft=function(e){var t=e.params,n=e.navigationStrategy,r=e.handleSearchChange,o=e.emitAction,i=e.openFileDialog,c=e.searchMode,a=e.docsKey,s=t.model,u=t.view;return"doc"===s&&"detail"===u?(0,ee.jsx)(dt,{navigationStrategy:n}):(0,ee.jsx)(it,{navigationStrategy:n,onSearchChange:r,emitAction:o,openFileDialog:i,searchMode:c},a)};var yt=n(56746);const mt=function(e){var t,n,r=e.navigationStrategy,o=e.handleSearchChange,i=e.emitAction,c=e.openFileDialog,a=e.searchMode,s=e.docsKey;return(0,ee.jsxs)(yt.rs,{children:[(0,ee.jsx)(yt.AW,{exact:!0,path:"/docs/doc/:key/detail",render:function(){return t||(t=(0,ee.jsx)(dt,{navigationStrategy:r}))}}),(0,ee.jsx)(yt.AW,{exact:!0,path:["/docs/:model/:key/list","/docs"],render:function(){return n||(n=(0,ee.jsx)(it,{navigationStrategy:r,onSearchChange:o,emitAction:i,openFileDialog:c,searchMode:a},s))}})]})},ht=(0,N.U)({routerless:ft,router:mt});var bt,vt,gt,Ot=n(11347),jt=M.ZP.div.withConfig({displayName:"StyledWrapper"})(bt||(bt=q()(["\n display: grid;\n grid-template-rows: auto 1fr;\n grid-template-areas:\n 'breadcrumbs'\n 'content';\n ","\n width: 100%;\n"])),(function(e){return"inline"===e.scrollBehaviour&&"height: 100%;"})),wt=M.ZP.div.withConfig({displayName:"StyledContent"})(vt||(vt=q()(["\n grid-area: content;\n ","\n ","\n"])),(function(e){return"inline"===e.scrollBehaviour&&"overflow-x: hidden;"}),Ot.C),Pt=M.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(gt||(gt=q()(["\n grid-area: breadcrumbs;\n ","\n"])),(function(e){return e.noLeftPadding&&"\n > div {\n padding-left: 0;\n }\n "}));const xt=function(e){var t=e.navigate,n=e.path,r=e.searchMode,o=e.navigationStrategy,i=e.setSearchMode,c=e.loadBreadcrumbs,a=e.emitAction,s=e.openFileDialog,u=e.noLeftPadding,l=e.scrollBehaviour,p=e.listenHistory,f=(0,O.useReducer)((function(e){return e+1}),0),y=I()(f,2),m=y[0],h=y[1],b=(0,O.useRef)(r);b.current=r,(0,O.useEffect)((function(){c(n)})),(0,O.useEffect)((function(){return p((function(e,t){_(n)&&r&&"POP"===t&&v()}))}));var v=function(){b.current&&(T.Z.clearPersistedViews(),i(!1),c(n),h())},g="docs-view-".concat(m);return(0,ee.jsxs)(jt,{scrollBehaviour:l,children:[(0,ee.jsx)(d.Z.ErrorBoundary,{children:(0,ee.jsx)(Pt,{noLeftPadding:u,children:(0,ee.jsx)(_e,{resetSearchMode:v})})}),(0,ee.jsx)(wt,{scrollBehaviour:l,children:(0,ee.jsx)(ht,{navigationStrategy:o,handleSearchChange:function(e){e.query&&e.query.hasUserChanges?(i(!0),t("/docs/"),c(n)):_(n)&&v()},emitAction:a,openFileDialog:s,searchMode:r,docsKey:g})})]})};var St={loadBreadcrumbs:function(e){return{type:C,payload:{location:e}}},setSearchMode:function(e){return{type:D,payload:{searchMode:e}}},emitAction:function(e){return s.Z.dispatchEmittedAction(e)},openFileDialog:function(e,t,n){return{type:E,payload:{directory:e,onSuccess:t,onError:n}}}};const Et=(0,N.U)((0,S.connect)((function(e){return{searchMode:e.docs.path.searchMode,navigationStrategy:e.input.navigationStrategy,noLeftPadding:e.input.noLeftPadding,scrollBehaviour:e.input.scrollBehaviour}}),St)((0,x.ZP)(xt)));var Zt,Ct,kt;const Dt=(0,P.w)((function(e){var t=e.handleNotifications,n=e.rootPath,r=e.navigate,o=e.path;return(0,O.useEffect)((function(){(!o||"/"===o||"/docs"===o)&&n!==o&&r(n)}),[n,o,r]),(0,ee.jsxs)(ee.Fragment,{children:[t&&(Zt||(Zt=(0,ee.jsx)(y.Z.Notifications,{}))),Ct||(Ct=(0,ee.jsx)(w.Z,{})),kt||(kt=(0,ee.jsx)(Et,{}))]})}));var Ft,Nt,At;const It=function(e){var t=e.rootPath,n=e.handleNotifications;return(0,ee.jsxs)(ee.Fragment,{children:[n&&(Ft||(Ft=(0,ee.jsx)(y.Z.Notifications,{}))),Nt||(Nt=(0,ee.jsx)(w.Z,{})),At||(At=(0,ee.jsx)(Et,{})),(0,ee.jsx)(yt.AW,{exact:!0,path:"/",children:(0,ee.jsx)(yt.l_,{to:t})}),"/docs"!==t&&(0,ee.jsx)(yt.AW,{exact:!0,path:"/docs",children:(0,ee.jsx)(yt.l_,{to:t})})]})};var Tt,Rt,_t;const Lt=function(e){var t=e.rootPath,n=e.handleNotifications,r=e.history;return(0,ee.jsxs)(yt.F0,{history:r,children:[n&&(Tt||(Tt=(0,ee.jsx)(y.Z.Notifications,{}))),Rt||(Rt=(0,ee.jsx)(w.Z,{})),_t||(_t=(0,ee.jsx)(Et,{})),(0,ee.jsx)(yt.AW,{exact:!0,path:"/",children:(0,ee.jsx)(yt.l_,{to:t})}),"/docs"!==t&&(0,ee.jsx)(yt.AW,{exact:!0,path:"/docs",children:(0,ee.jsx)(yt.l_,{to:t})})]})};var Bt=n(15857),Mt=n(87757),zt=n.n(Mt),Vt=n(34857);function Ut(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 Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $t=o()({},E,(function(e,t){var n=t.payload,r=n.directory,o=n.onSuccess,i=n.onError;return Wt(Wt({},e),{},{dialog:{instanceCount:e.dialog.instanceCount+1,directory:r,onSuccess:o,onError:i}})})),qt={dialog:{instanceCount:0,directory:!1,onSuccess:null,onError:null}};var Ht=n(81719),Kt=n(44759),Yt=n(28721),Gt=n(80722);function Jt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Xt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){a=!0,i=e},f:function(){try{c||null==n.return||n.return()}finally{if(a)throw i}}}}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Qt=zt().mark(on),en=zt().mark(cn),tn=zt().mark(an),nn=function(e){return e.docs.create.dialog},rn=function(e,t){return e.intl.messages[t]};function on(e){var t,n,r,o,i,c,a,s,u,l,p,d;return zt().wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return t=e.payload,n=t.location,r=t.files,o=t.isDirectory,f.next=3,(0,Vt.RE)(Yt.Z);case 3:return i=f.sent,c="client.docs-browser.uploadInProgress",o?c="client.docs-browser.uploadInProgressDirectory":r.length>1&&(c="client.docs-browser.uploadInProgressMultiple"),f.next=8,(0,Vt.gz)(y.Z.blockingInfo(i,c,null));case 8:return f.next=10,(0,Vt.Ys)(nn);case 10:return a=f.sent,s=a.onSuccess,u=a.onError,f.prev=13,f.next=16,(0,Vt.RE)(cn,n,r);case 16:if(403!==(l=f.sent).status){f.next=31;break}return f.next=20,(0,Vt.gz)(y.Z.removeBlockingInfo(i));case 20:return f.t0=u,f.next=23,(0,Vt.Ys)(rn,"client.entity-detail.saveAbortedTitle");case 23:return f.t1=f.sent,f.next=26,(0,Vt.Ys)(rn,"client.docs-browser.failedNoPermission");case 26:f.t2=f.sent,f.t3={title:f.t1,message:f.t2},(0,f.t0)(f.t3),f.next=42;break;case 31:return p=[{type:"entity-create-event",payload:{entities:l.body.items.filter((function(e){return 201===e.status})).map((function(e){return{entityName:e.bean.model,key:e.bean.key}}))}}],f.next=34,(0,Vt.gz)(y.Z.removeBlockingInfo(i));case 34:return d=o?"client.docs-browser.uploadSuccessfulDirectory":"client.docs-browser.uploadSuccessful",f.t4=s,f.next=38,(0,Vt.Ys)(rn,d);case 38:f.t5=f.sent,f.t6=p,f.t7={title:f.t5,remoteEvents:f.t6},(0,f.t4)(f.t7);case 42:f.next=55;break;case 44:return f.prev=44,f.t8=f.catch(13),Kt.Z.logError("Failed to upload files",f.t8),f.next=49,(0,Vt.gz)(y.Z.removeBlockingInfo(i));case 49:return f.t9=u,f.next=52,(0,Vt.Ys)(rn,"client.docs-browser.uploadFailed");case 52:f.t10=f.sent,f.t11={title:f.t10},(0,f.t9)(f.t11);case 55:case"end":return f.stop()}}),Qt,null,[[13,44]])}function cn(e,t){var n,r,o,i,c,a,s;return zt().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(n=(0,Gt.Z)(e)){u.next=3;break}return u.abrupt("return");case 3:r=new FormData,o=Jt(t);try{for(o.s();!(i=o.n()).done;)c=i.value,r.append("files[]",c)}catch(e){o.e(e)}finally{o.f()}return a="documents/".concat(n.model,"/").concat(n.key),s={method:"POST",body:r,acceptedStatusCodes:[403]},u.next=10,(0,Vt.RE)(Ht.Z.requestSaga,a,s);case 10:return u.abrupt("return",u.sent);case 11:case"end":return u.stop()}}),en)}function an(){return zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Vt.$6)([(0,Vt.ib)(Z,on)]);case 2:case"end":return e.stop()}}),tn)}var sn=zt().mark(un);function un(){return zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Vt.$6)([(0,Vt.rM)(an)]);case 2:case"end":return e.stop()}}),sn)}const ln=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qt,t=arguments.length>1?arguments[1]:void 0,n=$t[t.type];return n?n(e,t):e};var pn=zt().mark(mn),dn=zt().mark(hn),fn=zt().mark(bn),yn=zt().mark(vn);function mn(e){var t;return zt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,Vt.gz)(f.Z.fireExternalEvent("onListParentChange",t.parent));case 3:case"end":return n.stop()}}),pn)}function hn(e){var t;return zt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,Vt.gz)(f.Z.fireExternalEvent("onSelectChange",t.selection));case 3:case"end":return n.stop()}}),dn)}function bn(e){var t;return zt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,Vt.gz)(f.Z.fireExternalEvent("onSearchFormCollapsedChange",t.collapsed));case 3:case"end":return n.stop()}}),fn)}function vn(){return zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Vt.$6)([(0,Vt.Fm)(Le,mn),(0,Vt.Fm)(Be,hn),(0,Vt.Fm)(Me,bn)]);case 2:case"end":return e.stop()}}),yn)}var gn,On=n(81770),jn=n(30081);function wn(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?wn(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xn=(gn={},o()(gn,jn.qh,(function(e,t){var n=t.payload,r=n.selection,o=n.onSuccess,i=n.onError;return Pn(Pn({},e),{},{input:{selection:r,onSuccess:o,onError:i}})})),o()(gn,jn.FV,On.Z.singleTransferReducer("isWaiting")),o()(gn,jn.F$,(function(){return Pn({},Sn)})),gn),Sn={isWaiting:!1,input:{selection:null,onSuccess:null,onError:null}};var En=n(6756),Zn=zt().mark(Nn),Cn=zt().mark(An),kn=zt().mark(In),Dn=function(e){return e.docs.move.input},Fn=function(e,t){return e.intl.messages[t]};function Nn(e){var t,n,r,o,i,c;return zt().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.payload,n="documents/move",r={method:"POST",acceptedStatusCodes:[400,403],body:{targetEntityKey:t.target,selectedEntityKeys:t.selected}},a.next=5,(0,Vt.gz)(jn.p0(!0));case 5:return a.next=7,(0,Vt.RE)(Ht.Z.requestSaga,n,r);case 7:if(204!==(o=a.sent).status){a.next=13;break}return a.next=11,(0,Vt.RE)(An);case 11:a.next=20;break;case 13:return a.next=15,(0,Vt.gz)(jn.p0(!1));case 15:return c="client.actions.dms-move.failed.message","VALIDATION_FAILED"===(null===(i=o.body)||void 0===i?void 0:i.errorCode)&&(c=En.Z.getErrorCompact(o.body.errors)),403===o.status&&(c="client.docs-browser.failedNoPermission"),a.next=20,(0,Vt.gz)(y.Z.toaster({type:"error",title:"client.actions.dms-move.failed.title",body:c}));case 20:case"end":return a.stop()}}),Zn)}function An(){var e,t,n,r;return zt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,Vt.Ys)(Dn);case 2:return e=o.sent,t=e.selection,n=e.onSuccess,r=[{type:"entity-update-event",payload:{entities:t.ids.map((function(e){return{entityName:"Docs_list_item",key:e}}))}}],o.t0=n,o.next=9,(0,Vt.Ys)(Fn,"client.docs-browser.moveSuccessful");case 9:return o.t1=o.sent,o.t2=r,o.t3={title:o.t1,remoteEvents:o.t2},(0,o.t0)(o.t3),o.next=15,(0,Vt.gz)(jn.xv());case 15:case"end":return o.stop()}}),Cn)}function In(){return zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Vt.$6)([(0,Vt.Fm)(jn.uI,Nn)]);case 2:case"end":return e.stop()}}),kn)}var Tn=zt().mark(Rn);function Rn(){return zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Vt.$6)([(0,Vt.rM)(In)]);case 2:case"end":return e.stop()}}),Tn)}const _n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sn,t=arguments.length>1?arguments[1]:void 0,n=xn[t.type];return n?n(e,t):e};var Ln,Bn=(Ln={},o()(Ln,k,On.Z.singleTransferReducer("breadcrumbs")),o()(Ln,D,On.Z.singleTransferReducer("searchMode")),Ln),Mn={breadcrumbs:[],searchMode:!1};var zn=zt().mark(Kn),Vn=zt().mark(Yn),Un=zt().mark(Gn),Wn=zt().mark(Jn),$n=function(e,t){return e.intl.messages[t]||t},qn=function(e){return e.docs.path},Hn=function(e){return e.input.rootNodes};function Kn(){return zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Vt.Ys)($n,"client.docs-browser.breadcrumbs.start");case 2:return e.t0=e.sent,e.t1={display:e.t0,path:"",type:"list"},e.next=6,(0,Vt.Ys)($n,"client.docs-browser.breadcrumbs.searchResults");case 6:return e.t2=e.sent,e.t3={display:e.t2,path:"",type:"list"},e.abrupt("return",[e.t1,e.t3]);case 9:case"end":return e.stop()}}),zn)}function Yn(e){var t,n,r,o,i,c;return zt().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.payload.location,n=(0,Gt.Z)(t),a.next=4,(0,Vt.Ys)(qn);case 4:if(!a.sent.searchMode||n){a.next=11;break}return a.next=8,(0,Vt.RE)(Kn);case 8:r=a.sent,a.next=21;break;case 11:return o=n?"documents/".concat(n.model,"/").concat(n.key,"/breadcrumbs"):"documents/breadcrumbs",a.next=14,(0,Vt.RE)(Gn);case 14:return a.t0=a.sent,a.t1={rootnodes:a.t0},i={queryParams:a.t1},a.next=19,(0,Vt.RE)(Ht.Z.requestSaga,o,i);case 19:c=a.sent,r=c.body.breadcrumbs;case 21:return a.next=23,(0,Vt.gz)(F(r));case 23:case"end":return a.stop()}}),Vn)}function Gn(){var e;return zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Vt.Ys)(Hn);case 2:return e=t.sent,t.abrupt("return",Array.isArray(e)&&e.length>0?e.map((function(e){return"".concat(e.entityName,"/").concat(e.key)})).join(","):null);case 4:case"end":return t.stop()}}),Un)}function Jn(){return zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Vt.$6)([(0,Vt.Fm)(C,Yn)]);case 2:case"end":return e.stop()}}),Wn)}var Xn=zt().mark(Qn);function Qn(){return zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Vt.$6)([(0,Vt.rM)(Jn)]);case 2:case"end":return e.stop()}}),Xn)}const er=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mn,t=arguments.length>1?arguments[1]:void 0,n=Bn[t.type];return n?n(e,t):e};var tr,nr=n(40602),rr=(tr={},o()(tr,nr.RK,On.Z.singleTransferReducer("path")),o()(tr,nr.Sb,On.Z.singleTransferReducer("params")),tr),or={path:"",params:{}};var ir=n(90655);function cr(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 ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n(24688);const sr=function(e,t){var n=[],r=(0,ir.Bo)(e,n).exec(t);return null!==r?n.reduce((function(e,t,n){return ar(ar({},e),{},o()({},t.name,r[n+1]))}),{}):null};var ur=zt().mark(pr),lr=zt().mark(dr);function pr(e){var t,n;return zt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.payload.path,n=sr("/docs/:model/:key/:view(list|detail)",t)||{},r.next=4,(0,Vt.gz)(nr.PX(n));case 4:case"end":return r.stop()}}),ur)}function dr(){return zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Vt.$6)([(0,Vt.Fm)(nr.RK,pr)]);case 2:case"end":return e.stop()}}),lr)}var fr=zt().mark(yr);function yr(){return zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Vt.$6)([(0,Vt.rM)(dr)]);case 2:case"end":return e.stop()}}),fr)}const mr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:or,t=arguments.length>1?arguments[1]:void 0,n=rr[t.type];return n?n(e,t):e},hr={docs:(0,Bt.UY)({path:er,create:ln,move:_n,routing:mr})};var br=[Qn,un,vn,Rn,yr];function vr(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 gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Or="docs-browser",jr=["onListParentChange","openResource","onSelectChange","onSearchFormCollapsedChange"],wr=function(e,t){return e.intl.messages[t]||t},Pr=function(e){var t=e.routerType,n=e.store,r=e.rootPath,o=e.handleNotifications;if("routerless"===t)return(0,ee.jsx)(Dt,{rootPath:r,handleNotifications:o});if("inherit"===t)return(0,ee.jsx)(It,{rootPath:r,handleNotifications:o});var c=function(e){return(0,i.Z)({getUserConfirmation:function(t,n){var r=e.getState(),o=wr(r,"client.common.ok"),i=wr(r,"client.common.cancel"),c=y.Z.confirm("",t,o,i,(function(){return n(!0)}),(function(){return n(!1)}));e.dispatch(c)}})}(n);return(0,ee.jsx)(Lt,{history:c,rootPath:r,handleNotifications:o})},xr=function(e,t,n,r){var o=u.Z.createStore(hr,br,gr(gr({},{scrollBehaviour:"inline"}),t),Or);g.Z.setInputEnvs(t),f.Z.addToStore(o,(function(e){return u.Z.getEvents(jr,e.input)})),s.Z.addToStore(o),l.Z.dynamicActionsAddToStore(o),d.Z.addToStore(o,!0,["console","remote","notification"]);var i=!n.emitAction;y.Z.addToStore(o,i),p.Z.addToStore(o);var c=Array.isArray(t.rootNodes)&&1===t.rootNodes.length&&"Resource"!==t.rootNodes[0].entityName?t.rootNodes[0]:null,a=c?"/docs/".concat(c.entityName.toLowerCase(),"/").concat(c.key,"/list"):"/docs",m=Pr({routerType:t.routerType,store:o,rootPath:a,handleNotifications:i});return u.Z.createApp(Or,m,o,{input:t,events:n,actions:[(0,nr.c4)(t.initialLocation)],publicPath:r,textResourceModules:["component","common","actions","entity-list","entity-detail",Or]})},Sr=function(e){return u.Z.useApp({initApp:xr,props:e,packageName:Or,externalEvents:jr}).component};Sr.propTypes=gr({routerType:a().oneOf(["standalone","inherit","routerless"]),navigationStrategy:a().object,domainTypes:a().arrayOf(a().string),rootNodes:a().arrayOf(a().shape({entityName:a().string,key:a().string})),initialLocation:a().string,listLimit:a().number,documentDetailFormName:a().string,searchFormType:m.b,selectionStyle:h.l,selectionFilterFn:a().func,selection:a().arrayOf(a().string),scrollBehaviour:b.az,getListFormName:a().func,disableViewPersistor:a().bool,getCustomLocation:a().func,businessUnit:a().string,searchFormCollapsed:a().bool,backendUrl:a().string,appContext:v.Z.propTypes},jr.reduce((function(e,t){return e[t]=a().func,e}),{}));const Er=Sr;u.Z.createBundleableApp(Or,xr,Sr)},30081:(e,t,n)=>{n.d(t,{F$:()=>c,FV:()=>i,j2:()=>a,p0:()=>u,qh:()=>r,uI:()=>o,w6:()=>s,xv:()=>l});var r="docs/move/INITIALIZE",o="docs/move/MOVE_ELEMENTS",i="docs/move/SET_WAITING",c="docs/move/CLOSE",a=function(e,t,n){return{type:r,payload:{selection:e,onSuccess:t,onError:n}}},s=function(e,t){return{type:o,payload:{target:e,selected:t}}},u=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:i,payload:{isWaiting:e}}},l=function(){return{type:c}}},40602:(e,t,n)=>{n.d(t,{PX:()=>c,RK:()=>r,Sb:()=>o,c4:()=>i});var r="docs/routing/NAVIGATE",o="docs/routing/SET_PARAMS",i=function(e){return{type:r,payload:{path:e||""}}},c=function(e){return{type:o,payload:{params:e}}}},80722:(e,t,n)=>{n.d(t,{Z:()=>i});var r=/^\/docs\/doc\/(\d+)\/detail$/,o=/^\/docs\/(domain|folder)\/(\d+)\/list$/;const i=function(e){return function(e){var t=r.exec(e);return t&&t.length>=2?{model:"Resource",key:t[1]}:null}(e)||function(e){var t=o.exec(e);return t&&t.length>=3?{model:t[1].charAt(0).toUpperCase()+t[1].slice(1),key:t[2]}:null}(e)}},1317:(e,t,n)=>{n.d(t,{C:()=>f,w:()=>d});var r=n(59713),o=n.n(r),i=n(50558),c=n(56746),a=n(40602),s=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 l(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={navigate:a.c4,listenHistory:function(){return function(){}}},d=(0,i.connect)((function(e){return{path:e.docs.routing.path,params:e.docs.routing.params}}),p),f=function(e){return function(t){var n=(0,c.TH)(),r=(0,c.k6)(),o=(0,c.UO)();return(0,s.jsx)(e,l(l({},t),{},{path:n.pathname,navigate:r.push,params:o,listenHistory:r.listen}))}}},20247:(e,t,n)=>{n.d(t,{U:()=>y});var r=n(59713),o=n.n(r),i=n(6479),c=n.n(i),a=n(50558),s=n(1317),u=n(85893),l=["compProviderRouterType"];function p(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?p(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){return{compProviderRouterType:e.input.routerType}},y=function(e){var t=e.routerless,n=e.router,r=t?(0,s.w)(t):(0,s.w)(e),o=n?(0,s.C)(n):(0,s.C)(e);return(0,a.connect)(f)((function(e){var t=e.compProviderRouterType,n=c()(e,l);return"routerless"===t?(0,u.jsx)(r,d({},n)):(0,u.jsx)(o,d({},n))}))}},27344:(e,t,n)=>{n.r(t),n.d(t,{default:()=>xe});var r=n(56746),o=n(27023),i=n(27361),c=n.n(i),a=n(74806),s=n(50558),u=n(19241),l=n(13218),p=n.n(l),d=n(66604),f=n.n(d),y=n(17563),m=function(e){if("string"!=typeof e)return!1;try{var t=JSON.parse(e);return"[object Object]"===Object.prototype.toString.call(t)}catch(e){return!1}};const h=function(e){var t=y.parse(e);return f()(t,(function(e){return m(e)?JSON.parse(e):e}))},b=function(e){var t=f()(e,(function(e){return p()(e)?JSON.stringify(e):e}));return y.stringify(t)};var v,g=n(59713),O=n.n(g),j=n(6479),w=n.n(j),P=n(1024),x=n(28655),S=n.n(x),E=n(96559),Z=n(38205),C=n(30759),k=n(24875),D=n(58664);const F=(0,Z.ZP)(E.rU)(v||(v=S()(["\n ","\n text-decoration: none;\n color: ",";\n\n * {\n color: ",";\n text-decoration: none;\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n color: ",";\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n color: ",";\n text-decoration: ",";\n }\n"])),(0,C.Z)(),k.FS.color("secondary"),k.FS.color("text"),k.FS.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){var t=e.neutral,n=e.theme;return t?(0,D.HO)(c()(n,"colors.text"),2):(0,D.HO)(c()(n,"colors.secondary"),2)}),(function(e){return e.neutral?"none":"underline"}));var N=n(85893),A=function(e){var t=e.currentKey,n=e.entityKey,r=e.children,o=e.relation;return(0,N.jsx)(F,{to:"".concat(t,"/").concat(o,"/").concat(n),children:r})};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 T(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}const R=function(e,t,n){return{DetailLinkRelative:function(e){return(0,N.jsx)(A,T(T({},e),{},{currentKey:n}))},navigateToCreateRelative:function(n){var r;if(null!==(r=t.params)&&void 0!==r&&r.entityId){var o=t.url;if(n)e.push("".concat(o,"/").concat(n,"/"));else{var i=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.replace(/\/$/,""),r=0;r<t;r++)n=n.substring(0,n.lastIndexOf("/")+1);return n}(o,1);e.push(i)}}else e.push("/detail")},navigateToActionRelative:function(t,n){var r=b({selection:n,actionProperties:t.properties});e.push({pathname:"/action/"+t.appId,state:{definition:t,selection:n,originUrl:e.location.pathname},search:r})}}};var _="list",L="detail",B="fullscreen-action",M=n(87533),z={copy:(0,P.lazy)((function(){return Promise.all([n.e(85),n.e(107)]).then(n.bind(n,20698))})),delete:(0,P.lazy)((function(){return Promise.all([n.e(85),n.e(107)]).then(n.bind(n,90187))})),export:(0,P.lazy)((function(){return Promise.all([n.e(85),n.e(107)]).then(n.bind(n,16444))})),"input-edit":(0,P.lazy)((function(){return Promise.all([n.e(85),n.e(107)]).then(n.bind(n,21420))})),"subscribe-calendar":(0,P.lazy)((function(){return Promise.all([n.e(85),n.e(107)]).then(n.bind(n,1594))})),"mailing-list-mail-action":(0,P.lazy)((function(){return Promise.all([n.e(85),n.e(107)]).then(n.bind(n,30858))}))};const V=M.Z.actionFactory(z);var U=["fireVisibilityStatusChangeEvent"];function W(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 $=function(e){var t=e.fireVisibilityStatusChangeEvent,n=w()(e,U),r=n.router,o=r.history,i=r.location,c=r.match;(0,P.useEffect)((function(){t([B])}),[t]);var a=function(){var e=i.state.originUrl||"/";o.replace(e)};return(0,N.jsx)(V,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({appId:c.params.appId,onSuccess:a,onError:a,onCancel:a,navigationStrategy:R(o,c)},n))};var q={fireVisibilityStatusChangeEvent:u.Z.fireVisibilityStatusChangeEvent};const H=(0,s.connect)((function(e,t){var n=h(t.router.location.search);return{selection:c()(t.router.location,"state.selection",n.selection),actionProperties:c()(t.router.location,"state.definition.properties",n.actionProperties),locale:e.intl.locale}}),q)((0,a.ZP)($));var K=n(50600),Y=n(6766),G=n(78125),J=n(20005),X=n(54828),Q=n(10129),ee=n(24688);const te=function(e){var t=e.when,n=e.message;return(0,P.useEffect)((function(){return t&&ee.Z.activatePreventFromLeaving(),function(){ee.Z.deactivatePreventFromLeaving()}}),[t]),(0,N.jsx)(r.NL,{when:t,message:n})};var ne=n(87757),re=n.n(ne),oe=n(34857),ie=n(47488),ce=re().mark(ae);function ae(e,t,n){var r,o,i,c,a,s,u,l,p,d,f,y;return re().wrap((function(m){for(;;)switch(m.prev=m.next){case 0:if(r=n.detailParams,o=void 0===r?{}:r,i=n.intl,!(c=n.modifyFormDefinition)){m.next=7;break}return m.next=4,(0,oe.RE)(c,e,t);case 4:m.t0=m.sent,m.next=8;break;case 7:m.t0=e;case 8:return a=m.t0,u=(s=t||{}).entityName,l=s.entityId,p=o.entityName,d=o.entityId,f=o.showBackButton,y=f&&u===p&&l===d,m.abrupt("return",y?ie.Z.addBack(a,i):a);case 13:case"end":return m.stop()}}),ce)}const se=function(e){var t=e.loadDetailParams,n=e.router,r=e.setFormTouched,o=e.clearDetailParams,i=e.detailParams,c=e.appId,a=e.intl,s=e.dispatchEmittedAction,u=e.formTouched,l=e.locale,p=e.reportIds,d=e.fireVisibilityStatusChangeEvent;(0,P.useEffect)((function(){return t(n.match.url),r(!1),function(){o()}}),[o,t,n.match.url,r]),(0,P.useEffect)((function(){d([L])}),[d]);var f,y,m,h,b,v=function(e){return a.formatMessage({id:e})},g=function(e){var t=e.id,r=e.relationName;n.history.push("".concat(n.match.url,"/").concat(r,"/").concat(t))},O=function(e){var t=e.id;r(!1);var o=n.match.url,i="/"!==o.substr(-1)?o+"/":o;n.history.push(i+t)},j=function(e){var t=e.touched;r(t)},w=function(){n.history.push(i.parentUrl)},x={back:function(){return(0,N.jsx)(Q.Z,{onClick:w,label:v("client.entity-browser.back")})}};return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(te,{when:u,message:v("client.entity-browser.detail.confirmTouchedFormLeave")}),i&&(0,N.jsx)(N.Fragment,{children:(f=i,y=f.entityName,m=f.entityId,h=f.formName,b=f.mode,(0,N.jsx)(J.ZP,{id:"".concat(c,"_detail_").concat(h,"_").concat(m),entityName:y,entityId:m,formName:h,mode:b,navigationStrategy:R(n.history,n.match,m),onSubGridRowClick:g,onEntityCreated:O,onEntityDeleted:w,onTouchedChange:j,emitAction:function(e){s(e)},theme:{},locale:l,modifyFormDefinition:function(t,n){return ae(t,n,e)},actionAppComponent:V,reportIds:p,customRenderedActions:x,listApp:X.ZP,docsApp:G.ZP}))})]})};var ue={loadDetailParams:Y.E,clearDetailParams:Y.W8,setFormTouched:Y.A9,dispatchEmittedAction:K.Z.dispatchEmittedAction,fireVisibilityStatusChangeEvent:u.Z.fireVisibilityStatusChangeEvent};const le=(0,s.connect)((function(e,t){return{appId:e.entityBrowser.appId,detailParams:e.detail.detailParams,formTouched:e.detail.formTouched,locale:e.intl.locale,actionAppComponent:V,modifyFormDefinition:e.input.modifyFormDefinition,reportIds:e.input.reportIds}}),ue)((0,a.ZP)(se));var pe=n(29441),de=["storeId","router","modifyFormDefinition","disableDetailView","fireVisibilityStatusChangeEvent"];function fe(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 ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var me=function(e){var t=e.entityKey,n=e.children;return(0,N.jsx)(F,{to:"detail/".concat(t),children:n})};const he=function(e){var t=e.storeId,n=e.router,r=e.modifyFormDefinition,o=e.disableDetailView,i=e.fireVisibilityStatusChangeEvent,c=w()(e,de);(0,P.useEffect)((function(){i([_])}),[i]);return(0,N.jsx)(X.ZP,ye(ye({},c),{},{onRowClick:function(e){o||n.history.push("/detail/".concat(e.id))},showLink:!o,navigationStrategy:ye(ye({},R(n.history,n.match)),{},{DetailLinkRelative:me}),searchFormPosition:"top",actionAppComponent:V,store:pe.Z.viewInfoSelector(t).store,onStoreCreate:function(e){pe.Z.persistViewInfo(t,{store:e},0)},modifyFormDefinition:r}))};var be={emitAction:function(e){return K.Z.dispatchEmittedAction(e)},fireVisibilityStatusChangeEvent:u.Z.fireVisibilityStatusChangeEvent};const ve=(0,s.connect)((function(e,t){var n="".concat(e.entityBrowser.appId,"_entity-browser-list");return{id:n,storeId:"".concat(n,"_").concat(t.router.history.location.pathname),locale:e.intl.locale,entityName:e.entityBrowser.entityName,formName:e.entityBrowser.formBase,scrollBehaviour:e.entityBrowser.scrollBehaviour,searchFormType:e.input.searchFormType||"simple_advanced",limit:e.input.limit,searchFilters:e.input.searchFilters,preselectedSearchFields:e.input.preselectedSearchFields,simpleSearchFields:e.input.simpleSearchFields,modifyFormDefinition:e.input.modifyFormDefinition,disableDetailView:e.input.disableDetailView,reportIds:e.input.reportIds}}),be)(he);var ge,Oe=n(88601),je=n(7281);const we=Z.ZP.div.withConfig({displayName:"StyledEntityBrowser"})(ge||(ge=S()(["\n && {\n background-color: ",";\n padding: ",";\n display: flex;\n flex-direction: column;\n flex: 1;\n }\n"])),Oe.Z.color("paper"),je.Z.space(0));var Pe;const xe=function(){return(0,N.jsxs)(we,{children:[Pe||(Pe=(0,N.jsx)(o.Z.Notifications,{})),(0,N.jsxs)(r.rs,{children:[(0,N.jsx)(r.AW,{path:"/",exact:!0,render:function(e){return(0,N.jsx)(ve,{router:e})}}),(0,N.jsx)(r.AW,{path:"/detail/:entityId*",render:function(e){return(0,N.jsx)(le,{router:e})}}),(0,N.jsx)(r.AW,{path:"/action/:appId*",render:function(e){return(0,N.jsx)(H,{router:e})}})]})]})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunktocco_widget_bundle=self.webpackChunktocco_widget_bundle||[]).push([[141],{41654:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(319),o=n.n(r),i=n(44759),a=function(e){return void 0!==e};const c={getDispatchActions:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.reduce((function(t,r){return a(e[r.name])&&"function"==typeof r.action?t.push(r.action.apply(r,o()(r.argsFactory(e)))):r.mandatory&&n&&i.Z.logError("Mandatory field '".concat(r.name,"' not set in input")),t}),[])}}},67210:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(74806),o=n(20005),i=n(54828),a=n(40433),c=n(25660),s=n(80722),u=n(20247),l=n(85893);const f=(0,u.U)((0,r.ZP)((function(e){var t=e.path,n=e.context,r=e.onSuccess,u=e.intl,f=e.locale,p=e.emitAction,d=(0,s.Z)(t),y=d?[{id:"rel".concat(d.model),value:d.key}]:[],h=(0,c.Z)(n,"Domain");return(0,l.jsx)(o.ZP,{entityName:"Domain",formName:h,mode:"create",defaultValues:y,locale:f,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Domain/".concat(t)}]}}];r({title:u.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)||p(e)},listApp:i.ZP,docsApp:a.ZP})})))},36340:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(74806),o=n(20005),i=n(54828),a=n(40433),c=n(25660),s=n(80722),u=n(20247),l=n(85893);const f=(0,u.U)((0,r.ZP)((function(e){var t=e.context,n=e.path,r=e.onSuccess,u=e.intl,f=e.locale,p=e.emitAction,d=(0,s.Z)(n),y=d?[{id:"rel".concat(d.model),value:d.key}]:[],h=(0,c.Z)(t,"Folder");return(0,l.jsx)(o.ZP,{entityName:"Folder",formName:h,mode:"create",defaultValues:y,locale:f,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Folder/".concat(t)}]}}];r({title:u.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)||p(e)},listApp:i.ZP,docsApp:a.ZP})})))},96954:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(59713),o=n.n(r),i=n(12750),a=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 u=function(e){return(0,a.jsx)(i.Z,s(s({},e),{},{customDeleteEndpoint:"documents/delete"}))}},90100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(63038),o=n.n(r),i=n(20005),a=n(54828),c=n(40433),s=n(25660),u=n(20247),l=n(85893);const f=(0,u.U)((function(e){var t=e.selection,n=e.onSuccess,r=e.onCancel,u=e.locale,f=e.context,p=e.emitAction,d=e.navigate,y=t.ids[0].split("/"),h=o()(y,2),m=h[0],v=h[1];"Resource"===m&&(d("/docs/doc/".concat(v,"/detail")),r());var g=(0,s.Z)(f,m);return(0,l.jsx)(i.ZP,{entityName:m,formName:g,entityId:v,mode:"update",locale:u,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)||p(e)},listApp:a.ZP,docsApp:c.ZP})}))},4505:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var r,o,i,a=n(74806),c=n(50558),s=n(30081),u=n(20247),l=n(63038),f=n.n(l),p=n(28655),d=n.n(p),y=n(18446),h=n.n(y),m=n(1024),v=n(44012),g=n(38205),b=n(58129),w=n(50258),O=n(65035),T=n(40433),E=n(80722),A=n(85893),C=g.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(r||(r=d()(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),b.Z),x=(0,g.ZP)(w.Z).withConfig({displayName:"StyledLoadMask"})(o||(o=d()(["\n height: auto;\n"]))),P=function(e){return null===e?"Move_root_docs_list_item":"Move_docs_list_item"},j={initialize:s.j2,moveElements:s.w6};const S=(0,u.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}}),j)((0,a.ZP)((function(e){var t=e.selection,n=e.onSuccess,r=e.onError,o=e.path,a=e.initialize,c=e.moveElements,s=e.isWaiting,u=e.domainTypes,l=e.rootNodes,p=e.businessUnit,d=e.locale,y=e.emitAction,g=(0,E.Z)(o),b={model:"Docs_list_item",key:"".concat(g.model,"/").concat(g.key)},w=(0,m.useState)(b),j=f()(w,2),S=j[0],k=j[1];(0,m.useEffect)((function(){a(t,n,r)}),[]);var N=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,A.jsxs)(x,{required:[!s],children:[(0,A.jsx)(T.ZP,{routerType:"routerless",initialLocation:function(){if(null===S)return null;var e=S.key.split("/"),t=f()(e,2),n=t[0],r=t[1];return N(n,r)}(),listLimit:10,selectionStyle:"none",searchFormType:"none",disableViewPersistor:!0,getListFormName:P,onListParentChange:k,getCustomLocation:N,navigationStrategy:{},embedded:!0,emitAction:y,noLeftPadding:!0,domainTypes:u,rootNodes:l,businessUnit:p,sortable:!1,scrollBehaviour:"none",locale:d}),(0,A.jsx)(C,{children:(0,A.jsx)(O.Z,{onClick:function(){return c(S.key,t.ids)},look:"raised",ink:"primary",disabled:null===S||h()(S,b),children:i||(i=(0,A.jsx)(v.Z,{id:"client.actions.dms-move.button"}))})})]})}))))},77840:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.ZP});var r=n(54828)},82445:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(59713),o=n.n(r),i=n(20005),a=n(54828),c=n(40433),s=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 l(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}const f=function(e){return(0,s.jsx)(i.ZP,l(l({},e),{},{listApp:a.ZP,docsApp:c.ZP}))}},25660:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){return e.detailFormNames&&e.detailFormNames[t]?e.detailFormNames[t]:"Dms".concat(t)}},44020:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp(t,"gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n),r=1;r<t.length;r++)t=(e=o(t,r).join("")).match(n);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var o=i(n[0]);o!==n[0]&&(t[n[0]]=o)}n=r.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),c=0;c<a.length;c++){var s=a[c];e=e.replace(new RegExp(s,"g"),t[s])}return e}(e)}}},92806:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var a=r[i],c=e[a];(o?-1!==t.indexOf(a):t(a,c,e))&&(n[a]=c)}return n}},17563:(e,t,n)=>{"use strict";const r=n(70610),o=n(44020),i=n(80500),a=n(92806),c=Symbol("encodeFragmentIdentifier");function s(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function l(e,t){return t.decode?o(e):e}function f(e){return Array.isArray(e)?e.sort():"object"==typeof e?f(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function p(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function d(e){const t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function y(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){s((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&l(n,e).includes(e.arrayFormatSeparator);n=i?l(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>l(t,e))):null===n?n:l(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(r[t]=n?l(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>l(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],i):r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;let[e,a]=i(t.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:l(a,t),n(l(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=y(n[e],t);else r[e]=y(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=f(n):e[t]=n,e}),Object.create(null))}t.extract=d,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";s((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),"[",o,"]"].join("")]:[...n,[u(t,e),"[",u(o,e),"]=",u(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),"[]"].join("")]:[...n,[u(t,e),"[]=",u(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),":list="].join("")]:[...n,[u(t,e),":list=",u(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[u(n,e),t,u(o,e)].join("")]:[[r,u(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,u(t,e)]:[...n,[u(t,e),"=",u(r,e)].join("")]}}(t),o={};for(const t of Object.keys(e))n(t)||(o[t]=e[t]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?u(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?u(n,t)+"[]":o.reduce(r(n),[]).join("&"):u(n,t)+"="+u(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:h(d(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:l(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[c]:!0},n);const r=p(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query);let s=t.stringify(a,n);s&&(s=`?${s}`);let l=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(l=`#${n[c]?u(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${s}${l}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[c]:!1},r);const{url:o,query:i,fragmentIdentifier:s}=t.parseUrl(e,r);return t.stringifyUrl({url:o,query:a(i,n),fragmentIdentifier:s},r)},t.exclude=(e,n,r)=>{const o=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,o,r)}},69038:(e,t,n)=>{"use strict";n.d(t,{q:()=>me});var r,o,i,a,c=n(89324),s=n.n(c),u=n(83524),l=n.n(u),f=n(69590),p=n.n(f),d=n(1024),y=n.n(d),h=n(27418),m=n.n(h),v="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"},O=(Object.keys(w).map((function(e){return w[e]})),"charset"),T="cssText",E="href",A="http-equiv",C="innerHTML",x="itemprop",P="name",j="property",S="rel",k="src",N="target",R={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},I="defaultTitle",L="defer",_="encodeSpecialCharacters",F="onChangeClientState",D="titleTemplate",U=Object.keys(R).reduce((function(e,t){return e[R[t]]=t,e}),{}),Z=[w.NOSCRIPT,w.SCRIPT,w.STYLE],M="data-react-helmet",H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},$=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Y=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},K=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},V=function(e){var t=Q(e,w.TITLE),n=Q(e,D);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Q(e,I);return t||r||void 0},z=function(e){return Q(e,F)||function(){}},X=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return B({},e,t)}),{})},G=function(e,t){return t.filter((function(e){return void 0!==e[w.BASE]})).map((function(e){return e[w.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},J=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&oe("Helmet: "+e+' should be of type "Array". Instead found type "'+H(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var c=i[a],s=c.toLowerCase();-1===t.indexOf(s)||n===S&&"canonical"===e[n].toLowerCase()||s===S&&"stylesheet"===e[s].toLowerCase()||(n=s),-1===t.indexOf(c)||c!==C&&c!==T&&c!==x||(n=c)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var c=i[a],s=m()({},r[c],o[c]);r[c]=s}return e}),[]).reverse()},Q=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},ee=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout((function(){ee(e)}),0)}),te=function(e){return clearTimeout(e)},ne="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ee:n.g.requestAnimationFrame||ee,re="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||te:n.g.cancelAnimationFrame||te,oe=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},ie=null,ae=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,c=e.noscriptTags,s=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,f=e.title,p=e.titleAttributes;ue(w.BODY,r),ue(w.HTML,o),se(f,p);var d={baseTag:le(w.BASE,n),linkTags:le(w.LINK,i),metaTags:le(w.META,a),noscriptTags:le(w.NOSCRIPT,c),scriptTags:le(w.SCRIPT,u),styleTags:le(w.STYLE,l)},y={},h={};Object.keys(d).forEach((function(e){var t=d[e],n=t.newTags,r=t.oldTags;n.length&&(y[e]=n),r.length&&(h[e]=d[e].oldTags)})),t&&t(),s(e,y,h)},ce=function(e){return Array.isArray(e)?e.join(""):e},se=function(e,t){void 0!==e&&document.title!==e&&(document.title=ce(e)),ue(w.TITLE,t)},ue=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(M),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),c=0;c<a.length;c++){var s=a[c],u=t[s]||"";n.getAttribute(s)!==u&&n.setAttribute(s,u),-1===o.indexOf(s)&&o.push(s);var l=i.indexOf(s);-1!==l&&i.splice(l,1)}for(var f=i.length-1;f>=0;f--)n.removeAttribute(i[f]);o.length===i.length?n.removeAttribute(M):n.getAttribute(M)!==a.join(",")&&n.setAttribute(M,a.join(","))}},le=function(e,t){var n=document.head||document.querySelector(w.HEAD),r=n.querySelectorAll(e+"["+"data-react-helmet]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===C)n.innerHTML=t.innerHTML;else if(r===T)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var c=void 0===t[r]?"":t[r];n.setAttribute(r,c)}n.setAttribute(M,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},fe=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[R[n]||n]=e[n],t}),t)},de=function(e,t,n){switch(e){case w.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[M]=!0,o=pe(n,r),[y().createElement(w.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=fe(n),i=ce(t);return o?"<"+e+' data-react-helmet="true" '+o+">"+K(i,r)+"</"+e+">":"<"+e+' data-react-helmet="true">'+K(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case v:case g:return{toComponent:function(){return pe(t)},toString:function(){return fe(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[M]=!0,r);return Object.keys(t).forEach((function(e){var n=R[e]||e;if(n===C||n===T){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),y().createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===C||e===T)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+K(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===Z.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},ye=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,c=e.noscriptTags,s=e.scriptTags,u=e.styleTags,l=e.title,f=void 0===l?"":l,p=e.titleAttributes;return{base:de(w.BASE,t,r),bodyAttributes:de(v,n,r),htmlAttributes:de(g,o,r),link:de(w.LINK,i,r),meta:de(w.META,a,r),noscript:de(w.NOSCRIPT,c,r),script:de(w.SCRIPT,s,r),style:de(w.STYLE,u,r),title:de(w.TITLE,{title:f,titleAttributes:p},r)}},he=l()((function(e){return{baseTag:G([E,N],e),bodyAttributes:X(v,e),defer:Q(e,L),encode:Q(e,_),htmlAttributes:X(g,e),linkTags:J(w.LINK,[S,E],e),metaTags:J(w.META,[P,O,A,j,x],e),noscriptTags:J(w.NOSCRIPT,[C],e),onChangeClientState:z(e),scriptTags:J(w.SCRIPT,[k,C],e),styleTags:J(w.STYLE,[T],e),title:V(e),titleAttributes:X(b,e)}}),(function(e){ie&&re(ie),e.defer?ie=ne((function(){ae(e,(function(){ie=null}))})):(ae(e),ie=null)}),ye)((function(){return null})),me=(o=he,a=i=function(e){function t(){return q(this,t),Y(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!p()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case w.SCRIPT:case w.NOSCRIPT:return{innerHTML:t};case w.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return B({},r,((t={})[n.type]=[].concat(r[n.type]||[],[B({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case w.TITLE:return B({},o,((t={})[r.type]=a,t.titleAttributes=B({},i),t));case w.BODY:return B({},o,{bodyAttributes:B({},i)});case w.HTML:return B({},o,{htmlAttributes:B({},i)})}return B({},o,((n={})[r.type]=B({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=B({},t);return Object.keys(e).forEach((function(t){var r;n=B({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return y().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[U[n]||n]=e[n],t}),t)}(W(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case w.LINK:case w.META:case w.NOSCRIPT:case w.SCRIPT:case w.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=W(e,["children"]),r=B({},n);return t&&(r=this.mapChildrenToProps(t,r)),y().createElement(o,r)},$(t,null,[{key:"canUseDOM",set:function(e){o.canUseDOM=e}}]),t}(y().Component),i.propTypes={base:s().object,bodyAttributes:s().object,children:s().oneOfType([s().arrayOf(s().node),s().node]),defaultTitle:s().string,defer:s().bool,encodeSpecialCharacters:s().bool,htmlAttributes:s().object,link:s().arrayOf(s().object),meta:s().arrayOf(s().object),noscript:s().arrayOf(s().object),onChangeClientState:s().func,script:s().arrayOf(s().object),style:s().arrayOf(s().object),title:s().string,titleAttributes:s().object,titleTemplate:s().string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var e=o.rewind();return e||(e=ye({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);me.renderStatic=me.rewind},17579:(e,t,n)=>{"use strict";var r=n(80070);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,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 t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},89324:(e,t,n)=>{e.exports=n(17579)()},80070:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},96559:(e,t,n)=>{"use strict";n.d(t,{rU:()=>U});var r=n(56746);function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}var a=n(1024),c=n.n(a);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function u(e){return"/"===e.charAt(0)}function l(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const f=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&u(e),a=t&&u(t),c=i||a;if(e&&u(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var s=o[o.length-1];n="."===s||".."===s||""===s}else n=!1;for(var f=0,p=o.length;p>=0;p--){var d=o[p];"."===d?l(o,p):".."===d?(l(o,p),f++):f&&(l(o,p),f--)}if(!c)for(;f--;f)o.unshift("..");!c||""===o[0]||o[0]&&u(o[0])||o.unshift("");var y=o.join("/");return n&&"/"!==y.substr(-1)&&(y+="/"),y};var p=n(2177);function d(e){return"/"===e.charAt(0)?e:"/"+e}function y(e){return"/"===e.charAt(0)?e.substr(1):e}function h(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function m(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function v(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function g(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=s({},e)).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!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=f(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var w=!("undefined"==typeof window||!window.document||!window.document.createElement);function O(e,t){t(window.confirm(e))}var T="popstate",E="hashchange";function A(){try{return window.history.state||{}}catch(e){return{}}}function C(e){void 0===e&&(e={}),w||(0,p.Z)(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,c=void 0!==a&&a,u=i.getUserConfirmation,l=void 0===u?O:u,f=i.keyLength,y=void 0===f?6:f,C=e.basename?m(d(e.basename)):"";function x(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return C&&(i=h(i,C)),g(i,r,n)}function P(){return Math.random().toString(36).substr(2,y)}var j=b();function S(e){s(H,e),H.length=n.length,j.notifyListeners(H.location,H.action)}function k(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||I(x(e.state))}function N(){I(x(A()))}var R=!1;function I(e){if(R)R=!1,S();else{j.confirmTransitionTo(e,"POP",l,(function(t){t?S({action:"POP",location:e}):function(e){var t=H.location,n=_.indexOf(t.key);-1===n&&(n=0);var r=_.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(R=!0,D(o))}(e)}))}}var L=x(A()),_=[L.key];function F(e){return C+v(e)}function D(e){n.go(e)}var U=0;function Z(e){1===(U+=e)&&1===e?(window.addEventListener(T,k),o&&window.addEventListener(E,N)):0===U&&(window.removeEventListener(T,k),o&&window.removeEventListener(E,N))}var M=!1;var H={length:n.length,action:"POP",location:L,createHref:F,push:function(e,t){var o="PUSH",i=g(e,t,P(),H.location);j.confirmTransitionTo(i,o,l,(function(e){if(e){var t=F(i),a=i.key,s=i.state;if(r)if(n.pushState({key:a,state:s},null,t),c)window.location.href=t;else{var u=_.indexOf(H.location.key),l=_.slice(0,u+1);l.push(i.key),_=l,S({action:o,location:i})}else window.location.href=t}}))},replace:function(e,t){var o="REPLACE",i=g(e,t,P(),H.location);j.confirmTransitionTo(i,o,l,(function(e){if(e){var t=F(i),a=i.key,s=i.state;if(r)if(n.replaceState({key:a,state:s},null,t),c)window.location.replace(t);else{var u=_.indexOf(H.location.key);-1!==u&&(_[u]=i.key),S({action:o,location:i})}else window.location.replace(t)}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=j.setPrompt(e);return M||(Z(1),M=!0),function(){return M&&(M=!1,Z(-1)),t()}},listen:function(e){var t=j.appendListener(e);return Z(1),function(){Z(-1),t()}}};return H}var x="hashchange",P={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+y(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:y,decodePath:d},slash:{encodePath:d,decodePath:d}};function j(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function S(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function k(e){window.location.replace(j(window.location.href)+"#"+e)}function N(e){void 0===e&&(e={}),w||(0,p.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?O:r,i=n.hashType,a=void 0===i?"slash":i,c=e.basename?m(d(e.basename)):"",u=P[a],l=u.encodePath,f=u.decodePath;function y(){var e=f(S());return c&&(e=h(e,c)),g(e)}var T=b();function E(e){s(M,e),M.length=t.length,T.notifyListeners(M.location,M.action)}var A=!1,C=null;function N(){var e,t,n=S(),r=l(n);if(n!==r)k(r);else{var i=y(),a=M.location;if(!A&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(C===v(i))return;C=null,function(e){if(A)A=!1,E();else{var t="POP";T.confirmTransitionTo(e,t,o,(function(n){n?E({action:t,location:e}):function(e){var t=M.location,n=_.lastIndexOf(v(t));-1===n&&(n=0);var r=_.lastIndexOf(v(e));-1===r&&(r=0);var o=n-r;o&&(A=!0,F(o))}(e)}))}}(i)}}var R=S(),I=l(R);R!==I&&k(I);var L=y(),_=[v(L)];function F(e){t.go(e)}var D=0;function U(e){1===(D+=e)&&1===e?window.addEventListener(x,N):0===D&&window.removeEventListener(x,N)}var Z=!1;var M={length:t.length,action:"POP",location:L,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=j(window.location.href)),n+"#"+l(c+v(e))},push:function(e,t){var n="PUSH",r=g(e,void 0,void 0,M.location);T.confirmTransitionTo(r,n,o,(function(e){if(e){var t=v(r),o=l(c+t);if(S()!==o){C=t,function(e){window.location.hash=e}(o);var i=_.lastIndexOf(v(M.location)),a=_.slice(0,i+1);a.push(t),_=a,E({action:n,location:r})}else E()}}))},replace:function(e,t){var n="REPLACE",r=g(e,void 0,void 0,M.location);T.confirmTransitionTo(r,n,o,(function(e){if(e){var t=v(r),o=l(c+t);S()!==o&&(C=t,k(o));var i=_.indexOf(v(M.location));-1!==i&&(_[i]=t),E({action:n,location:r})}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=T.setPrompt(e);return Z||(U(1),Z=!0),function(){return Z&&(Z=!1,U(-1)),t()}},listen:function(e){var t=T.appendListener(e);return U(1),function(){U(-1),t()}}};return M}n(94662);function R(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}c().Component;c().Component;var I=function(e,t){return"function"==typeof e?e(t):e},L=function(e,t){return"string"==typeof e?g(e,null,null,t):e},_=function(e){return e},F=c().forwardRef;void 0===F&&(F=_);var D=F((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=R(e,["innerRef","navigate","onClick"]),a=i.target,u=s({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=_!==F&&t||n,c().createElement("a",u)}));var U=F((function(e,t){var n=e.component,o=void 0===n?D:n,i=e.replace,a=e.to,u=e.innerRef,l=R(e,["component","replace","to","innerRef"]);return c().createElement(r.s6.Consumer,null,(function(e){e||(0,p.Z)(!1);var n=e.history,r=L(I(a,e.location),e.location),f=r?n.createHref(r):"",d=s({},l,{href:f,navigate:function(){var t=I(a,e.location),r=v(e.location)===v(L(t));(i||r?n.replace:n.push)(t)}});return _!==F?d.ref=t||u:d.innerRef=u,c().createElement(o,d)}))})),Z=function(e){return e},M=c().forwardRef;void 0===M&&(M=Z);M((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,i=e.activeClassName,a=void 0===i?"active":i,u=e.activeStyle,l=e.className,f=e.exact,d=e.isActive,y=e.location,h=e.sensitive,m=e.strict,v=e.style,g=e.to,b=e.innerRef,w=R(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return c().createElement(r.s6.Consumer,null,(function(e){e||(0,p.Z)(!1);var n=y||e.location,i=L(I(g,n),n),O=i.pathname,T=O&&O.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),E=T?(0,r.LX)(n.pathname,{path:T,exact:f,sensitive:h,strict:m}):null,A=!!(d?d(E,n):E),C="function"==typeof l?l(A):l,x="function"==typeof v?v(A):v;A&&(C=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(C,a),x=s({},x,u));var P=s({"aria-current":A&&o||null,className:C,style:x,to:i},w);return Z!==M?P.ref=t||b:P.innerRef=b,c().createElement(U,P)}))}))},126:(e,t,n)=>{"use strict";var r=n(51235);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,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 t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},94662:(e,t,n)=>{e.exports=n(126)()},51235:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},83524:(e,t,n)=>{"use strict";var r,o=n(1024),i=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)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 s,u=[];function l(){s=e(u.map((function(e){return e.props}))),f.canUseDOM?t(s):n&&(s=n(s))}var f=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return s},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 e=s;return s=void 0,u=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){u.push(this),l()},a.componentDidUpdate=function(){l()},a.componentWillUnmount=function(){var e=u.indexOf(this);u.splice(e,1),l()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(f,"canUseDOM",c),f}}},44049:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(14892);const o=(i=r.Z,a=i.getIn,function(e,t){return function(n){var r=t||function(e){return a(e,"form")};return a(r(n),e+".initial")}});var i,a},80500:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},70610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},90655:(e,t,n)=>{"use strict";function r(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[c=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(c));for(;c<e.length;)if("\\"!==e[c]){if(")"===e[c]){if(0==--o){c++;break}}else if("("===e[c]&&(o++,"?"!==e[c+1]))throw new TypeError("Capturing groups are not allowed at ".concat(c));i+=e[c++]}else i+=e[c++]+e[c++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:i}),n=c}else{for(var a="",c=n+1;c<e.length;){var s=e.charCodeAt(c);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s))break;a+=e[c++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=c}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,i=void 0===r?"./":r,a="[^".concat(o(t.delimiter||"/#?"),"]+?"),c=[],s=0,u=0,l="",f=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},p=function(e){var t=f(e);if(void 0!==t)return t;var r=n[u],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(e))},d=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t};u<n.length;){var y=f("CHAR"),h=f("NAME"),m=f("PATTERN");if(h||m){var v=y||"";-1===i.indexOf(v)&&(l+=v,v=""),l&&(c.push(l),l=""),c.push({name:h||s++,prefix:v,suffix:"",pattern:m||a,modifier:f("MODIFIER")||""})}else{var g=y||f("ESCAPED_CHAR");if(g)l+=g;else if(l&&(c.push(l),l=""),f("OPEN")){v=d();var b=f("NAME")||"",w=f("PATTERN")||"",O=d();p("CLOSE"),c.push({name:b||(w?s++:""),pattern:b&&!w?a:w,prefix:v,suffix:O,modifier:f("MODIFIER")||""})}else p("END")}}return c}function o(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(e){return e&&e.sensitive?"":"i"}function a(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,a=void 0!==r&&r,c=n.start,s=void 0===c||c,u=n.end,l=void 0===u||u,f=n.encode,p=void 0===f?function(e){return e}:f,d=n.delimiter,y=void 0===d?"/#?":d,h=n.endsWith,m="[".concat(o(void 0===h?"":h),"]|$"),v="[".concat(o(y),"]"),g=s?"^":"",b=0,w=e;b<w.length;b++){var O=w[b];if("string"==typeof O)g+=o(p(O));else{var T=o(p(O.prefix)),E=o(p(O.suffix));if(O.pattern)if(t&&t.push(O),T||E)if("+"===O.modifier||"*"===O.modifier){var A="*"===O.modifier?"?":"";g+="(?:".concat(T,"((?:").concat(O.pattern,")(?:").concat(E).concat(T,"(?:").concat(O.pattern,"))*)").concat(E,")").concat(A)}else g+="(?:".concat(T,"(").concat(O.pattern,")").concat(E,")").concat(O.modifier);else"+"===O.modifier||"*"===O.modifier?g+="((?:".concat(O.pattern,")").concat(O.modifier,")"):g+="(".concat(O.pattern,")").concat(O.modifier);else g+="(?:".concat(T).concat(E,")").concat(O.modifier)}}if(l)a||(g+="".concat(v,"?")),g+=n.endsWith?"(?=".concat(m,")"):"$";else{var C=e[e.length-1],x="string"==typeof C?v.indexOf(C[C.length-1])>-1:void 0===C;a||(g+="(?:".concat(v,"(?=").concat(m,"))?")),x||(g+="(?=".concat(v,"|").concat(m,")"))}return new RegExp(g,i(n))}(r(e,n),t,n)}function c(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return c(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),i(n))}(e,t,n):a(e,t,n)}n.d(t,{Bo:()=>c})}}]);
|
|
1
|
+
(self.webpackChunktocco_widget_bundle=self.webpackChunktocco_widget_bundle||[]).push([[141],{41654:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(319),o=n.n(r),i=n(44759),a=function(e){return void 0!==e};const c={getDispatchActions:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.reduce((function(t,r){return a(e[r.name])&&"function"==typeof r.action?t.push(r.action.apply(r,o()(r.argsFactory(e)))):r.mandatory&&n&&i.Z.logError("Mandatory field '".concat(r.name,"' not set in input")),t}),[])}}},67210:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(74806),o=n(20005),i=n(54828),a=n(78125),c=n(25660),s=n(80722),u=n(20247),l=n(85893);const f=(0,u.U)((0,r.ZP)((function(e){var t=e.path,n=e.context,r=e.onSuccess,u=e.intl,f=e.locale,p=e.emitAction,d=(0,s.Z)(t),y=d?[{id:"rel".concat(d.model),value:d.key}]:[],h=(0,c.Z)(n,"Domain");return(0,l.jsx)(o.ZP,{entityName:"Domain",formName:h,mode:"create",defaultValues:y,locale:f,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Domain/".concat(t)}]}}];r({title:u.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)||p(e)},listApp:i.ZP,docsApp:a.ZP})})))},36340:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(74806),o=n(20005),i=n(54828),a=n(78125),c=n(25660),s=n(80722),u=n(20247),l=n(85893);const f=(0,u.U)((0,r.ZP)((function(e){var t=e.context,n=e.path,r=e.onSuccess,u=e.intl,f=e.locale,p=e.emitAction,d=(0,s.Z)(n),y=d?[{id:"rel".concat(d.model),value:d.key}]:[],h=(0,c.Z)(t,"Folder");return(0,l.jsx)(o.ZP,{entityName:"Folder",formName:h,mode:"create",defaultValues:y,locale:f,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Folder/".concat(t)}]}}];r({title:u.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)||p(e)},listApp:i.ZP,docsApp:a.ZP})})))},96954:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(59713),o=n.n(r),i=n(12750),a=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 u=function(e){return(0,a.jsx)(i.Z,s(s({},e),{},{customDeleteEndpoint:"documents/delete"}))}},90100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(63038),o=n.n(r),i=n(20005),a=n(54828),c=n(78125),s=n(25660),u=n(20247),l=n(85893);const f=(0,u.U)((function(e){var t=e.selection,n=e.onSuccess,r=e.onCancel,u=e.locale,f=e.context,p=e.emitAction,d=e.navigate,y=t.ids[0].split("/"),h=o()(y,2),m=h[0],v=h[1];"Resource"===m&&(d("/docs/doc/".concat(v,"/detail")),r());var g=(0,s.Z)(f,m);return(0,l.jsx)(i.ZP,{entityName:m,formName:g,entityId:v,mode:"update",locale:u,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)||p(e)},listApp:a.ZP,docsApp:c.ZP})}))},4505:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var r,o,i,a=n(74806),c=n(50558),s=n(30081),u=n(20247),l=n(63038),f=n.n(l),p=n(28655),d=n.n(p),y=n(18446),h=n.n(y),m=n(1024),v=n(44012),g=n(38205),b=n(58129),w=n(50258),O=n(65035),T=n(78125),E=n(80722),A=n(85893),C=g.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(r||(r=d()(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),b.Z),x=(0,g.ZP)(w.Z).withConfig({displayName:"StyledLoadMask"})(o||(o=d()(["\n height: auto;\n"]))),P=function(e){return null===e?"Move_root_docs_list_item":"Move_docs_list_item"},j={initialize:s.j2,moveElements:s.w6};const S=(0,u.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}}),j)((0,a.ZP)((function(e){var t=e.selection,n=e.onSuccess,r=e.onError,o=e.path,a=e.initialize,c=e.moveElements,s=e.isWaiting,u=e.domainTypes,l=e.rootNodes,p=e.businessUnit,d=e.locale,y=e.emitAction,g=(0,E.Z)(o),b={model:"Docs_list_item",key:"".concat(g.model,"/").concat(g.key)},w=(0,m.useState)(b),j=f()(w,2),S=j[0],k=j[1];(0,m.useEffect)((function(){a(t,n,r)}),[]);var N=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,A.jsxs)(x,{required:[!s],children:[(0,A.jsx)(T.ZP,{routerType:"routerless",initialLocation:function(){if(null===S)return null;var e=S.key.split("/"),t=f()(e,2),n=t[0],r=t[1];return N(n,r)}(),listLimit:10,selectionStyle:"none",searchFormType:"none",disableViewPersistor:!0,getListFormName:P,onListParentChange:k,getCustomLocation:N,navigationStrategy:{},embedded:!0,emitAction:y,noLeftPadding:!0,domainTypes:u,rootNodes:l,businessUnit:p,sortable:!1,scrollBehaviour:"none",locale:d}),(0,A.jsx)(C,{children:(0,A.jsx)(O.Z,{onClick:function(){return c(S.key,t.ids)},look:"raised",ink:"primary",disabled:null===S||h()(S,b),children:i||(i=(0,A.jsx)(v.Z,{id:"client.actions.dms-move.button"}))})})]})}))))},77840:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.ZP});var r=n(54828)},82445:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(59713),o=n.n(r),i=n(20005),a=n(54828),c=n(78125),s=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 l(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}const f=function(e){return(0,s.jsx)(i.ZP,l(l({},e),{},{listApp:a.ZP,docsApp:c.ZP}))}},25660:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){return e.detailFormNames&&e.detailFormNames[t]?e.detailFormNames[t]:"Dms".concat(t)}},44020:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp(t,"gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n),r=1;r<t.length;r++)t=(e=o(t,r).join("")).match(n);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var o=i(n[0]);o!==n[0]&&(t[n[0]]=o)}n=r.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),c=0;c<a.length;c++){var s=a[c];e=e.replace(new RegExp(s,"g"),t[s])}return e}(e)}}},92806:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var a=r[i],c=e[a];(o?-1!==t.indexOf(a):t(a,c,e))&&(n[a]=c)}return n}},17563:(e,t,n)=>{"use strict";const r=n(70610),o=n(44020),i=n(80500),a=n(92806),c=Symbol("encodeFragmentIdentifier");function s(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function l(e,t){return t.decode?o(e):e}function f(e){return Array.isArray(e)?e.sort():"object"==typeof e?f(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function p(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function d(e){const t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function y(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){s((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&l(n,e).includes(e.arrayFormatSeparator);n=i?l(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>l(t,e))):null===n?n:l(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(r[t]=n?l(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>l(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],i):r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;let[e,a]=i(t.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:l(a,t),n(l(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=y(n[e],t);else r[e]=y(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=f(n):e[t]=n,e}),Object.create(null))}t.extract=d,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";s((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),"[",o,"]"].join("")]:[...n,[u(t,e),"[",u(o,e),"]=",u(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),"[]"].join("")]:[...n,[u(t,e),"[]=",u(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),":list="].join("")]:[...n,[u(t,e),":list=",u(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[u(n,e),t,u(o,e)].join("")]:[[r,u(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,u(t,e)]:[...n,[u(t,e),"=",u(r,e)].join("")]}}(t),o={};for(const t of Object.keys(e))n(t)||(o[t]=e[t]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?u(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?u(n,t)+"[]":o.reduce(r(n),[]).join("&"):u(n,t)+"="+u(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:h(d(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:l(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[c]:!0},n);const r=p(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query);let s=t.stringify(a,n);s&&(s=`?${s}`);let l=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(l=`#${n[c]?u(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${s}${l}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[c]:!1},r);const{url:o,query:i,fragmentIdentifier:s}=t.parseUrl(e,r);return t.stringifyUrl({url:o,query:a(i,n),fragmentIdentifier:s},r)},t.exclude=(e,n,r)=>{const o=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,o,r)}},69038:(e,t,n)=>{"use strict";n.d(t,{q:()=>me});var r,o,i,a,c=n(89324),s=n.n(c),u=n(83524),l=n.n(u),f=n(69590),p=n.n(f),d=n(1024),y=n.n(d),h=n(27418),m=n.n(h),v="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"},O=(Object.keys(w).map((function(e){return w[e]})),"charset"),T="cssText",E="href",A="http-equiv",C="innerHTML",x="itemprop",P="name",j="property",S="rel",k="src",N="target",R={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},I="defaultTitle",L="defer",_="encodeSpecialCharacters",F="onChangeClientState",D="titleTemplate",U=Object.keys(R).reduce((function(e,t){return e[R[t]]=t,e}),{}),Z=[w.NOSCRIPT,w.SCRIPT,w.STYLE],M="data-react-helmet",H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},$=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Y=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},K=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},V=function(e){var t=Q(e,w.TITLE),n=Q(e,D);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Q(e,I);return t||r||void 0},z=function(e){return Q(e,F)||function(){}},X=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return B({},e,t)}),{})},G=function(e,t){return t.filter((function(e){return void 0!==e[w.BASE]})).map((function(e){return e[w.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},J=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&oe("Helmet: "+e+' should be of type "Array". Instead found type "'+H(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var c=i[a],s=c.toLowerCase();-1===t.indexOf(s)||n===S&&"canonical"===e[n].toLowerCase()||s===S&&"stylesheet"===e[s].toLowerCase()||(n=s),-1===t.indexOf(c)||c!==C&&c!==T&&c!==x||(n=c)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var c=i[a],s=m()({},r[c],o[c]);r[c]=s}return e}),[]).reverse()},Q=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},ee=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout((function(){ee(e)}),0)}),te=function(e){return clearTimeout(e)},ne="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ee:n.g.requestAnimationFrame||ee,re="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||te:n.g.cancelAnimationFrame||te,oe=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},ie=null,ae=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,c=e.noscriptTags,s=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,f=e.title,p=e.titleAttributes;ue(w.BODY,r),ue(w.HTML,o),se(f,p);var d={baseTag:le(w.BASE,n),linkTags:le(w.LINK,i),metaTags:le(w.META,a),noscriptTags:le(w.NOSCRIPT,c),scriptTags:le(w.SCRIPT,u),styleTags:le(w.STYLE,l)},y={},h={};Object.keys(d).forEach((function(e){var t=d[e],n=t.newTags,r=t.oldTags;n.length&&(y[e]=n),r.length&&(h[e]=d[e].oldTags)})),t&&t(),s(e,y,h)},ce=function(e){return Array.isArray(e)?e.join(""):e},se=function(e,t){void 0!==e&&document.title!==e&&(document.title=ce(e)),ue(w.TITLE,t)},ue=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(M),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),c=0;c<a.length;c++){var s=a[c],u=t[s]||"";n.getAttribute(s)!==u&&n.setAttribute(s,u),-1===o.indexOf(s)&&o.push(s);var l=i.indexOf(s);-1!==l&&i.splice(l,1)}for(var f=i.length-1;f>=0;f--)n.removeAttribute(i[f]);o.length===i.length?n.removeAttribute(M):n.getAttribute(M)!==a.join(",")&&n.setAttribute(M,a.join(","))}},le=function(e,t){var n=document.head||document.querySelector(w.HEAD),r=n.querySelectorAll(e+"["+"data-react-helmet]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===C)n.innerHTML=t.innerHTML;else if(r===T)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var c=void 0===t[r]?"":t[r];n.setAttribute(r,c)}n.setAttribute(M,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},fe=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[R[n]||n]=e[n],t}),t)},de=function(e,t,n){switch(e){case w.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[M]=!0,o=pe(n,r),[y().createElement(w.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=fe(n),i=ce(t);return o?"<"+e+' data-react-helmet="true" '+o+">"+K(i,r)+"</"+e+">":"<"+e+' data-react-helmet="true">'+K(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case v:case g:return{toComponent:function(){return pe(t)},toString:function(){return fe(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[M]=!0,r);return Object.keys(t).forEach((function(e){var n=R[e]||e;if(n===C||n===T){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),y().createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===C||e===T)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+K(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===Z.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},ye=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,c=e.noscriptTags,s=e.scriptTags,u=e.styleTags,l=e.title,f=void 0===l?"":l,p=e.titleAttributes;return{base:de(w.BASE,t,r),bodyAttributes:de(v,n,r),htmlAttributes:de(g,o,r),link:de(w.LINK,i,r),meta:de(w.META,a,r),noscript:de(w.NOSCRIPT,c,r),script:de(w.SCRIPT,s,r),style:de(w.STYLE,u,r),title:de(w.TITLE,{title:f,titleAttributes:p},r)}},he=l()((function(e){return{baseTag:G([E,N],e),bodyAttributes:X(v,e),defer:Q(e,L),encode:Q(e,_),htmlAttributes:X(g,e),linkTags:J(w.LINK,[S,E],e),metaTags:J(w.META,[P,O,A,j,x],e),noscriptTags:J(w.NOSCRIPT,[C],e),onChangeClientState:z(e),scriptTags:J(w.SCRIPT,[k,C],e),styleTags:J(w.STYLE,[T],e),title:V(e),titleAttributes:X(b,e)}}),(function(e){ie&&re(ie),e.defer?ie=ne((function(){ae(e,(function(){ie=null}))})):(ae(e),ie=null)}),ye)((function(){return null})),me=(o=he,a=i=function(e){function t(){return q(this,t),Y(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!p()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case w.SCRIPT:case w.NOSCRIPT:return{innerHTML:t};case w.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return B({},r,((t={})[n.type]=[].concat(r[n.type]||[],[B({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case w.TITLE:return B({},o,((t={})[r.type]=a,t.titleAttributes=B({},i),t));case w.BODY:return B({},o,{bodyAttributes:B({},i)});case w.HTML:return B({},o,{htmlAttributes:B({},i)})}return B({},o,((n={})[r.type]=B({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=B({},t);return Object.keys(e).forEach((function(t){var r;n=B({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return y().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[U[n]||n]=e[n],t}),t)}(W(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case w.LINK:case w.META:case w.NOSCRIPT:case w.SCRIPT:case w.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=W(e,["children"]),r=B({},n);return t&&(r=this.mapChildrenToProps(t,r)),y().createElement(o,r)},$(t,null,[{key:"canUseDOM",set:function(e){o.canUseDOM=e}}]),t}(y().Component),i.propTypes={base:s().object,bodyAttributes:s().object,children:s().oneOfType([s().arrayOf(s().node),s().node]),defaultTitle:s().string,defer:s().bool,encodeSpecialCharacters:s().bool,htmlAttributes:s().object,link:s().arrayOf(s().object),meta:s().arrayOf(s().object),noscript:s().arrayOf(s().object),onChangeClientState:s().func,script:s().arrayOf(s().object),style:s().arrayOf(s().object),title:s().string,titleAttributes:s().object,titleTemplate:s().string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var e=o.rewind();return e||(e=ye({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);me.renderStatic=me.rewind},17579:(e,t,n)=>{"use strict";var r=n(80070);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,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 t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},89324:(e,t,n)=>{e.exports=n(17579)()},80070:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},96559:(e,t,n)=>{"use strict";n.d(t,{rU:()=>U});var r=n(56746);function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}var a=n(1024),c=n.n(a);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function u(e){return"/"===e.charAt(0)}function l(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const f=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&u(e),a=t&&u(t),c=i||a;if(e&&u(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var s=o[o.length-1];n="."===s||".."===s||""===s}else n=!1;for(var f=0,p=o.length;p>=0;p--){var d=o[p];"."===d?l(o,p):".."===d?(l(o,p),f++):f&&(l(o,p),f--)}if(!c)for(;f--;f)o.unshift("..");!c||""===o[0]||o[0]&&u(o[0])||o.unshift("");var y=o.join("/");return n&&"/"!==y.substr(-1)&&(y+="/"),y};var p=n(2177);function d(e){return"/"===e.charAt(0)?e:"/"+e}function y(e){return"/"===e.charAt(0)?e.substr(1):e}function h(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function m(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function v(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function g(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=s({},e)).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!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=f(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var w=!("undefined"==typeof window||!window.document||!window.document.createElement);function O(e,t){t(window.confirm(e))}var T="popstate",E="hashchange";function A(){try{return window.history.state||{}}catch(e){return{}}}function C(e){void 0===e&&(e={}),w||(0,p.Z)(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,c=void 0!==a&&a,u=i.getUserConfirmation,l=void 0===u?O:u,f=i.keyLength,y=void 0===f?6:f,C=e.basename?m(d(e.basename)):"";function x(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return C&&(i=h(i,C)),g(i,r,n)}function P(){return Math.random().toString(36).substr(2,y)}var j=b();function S(e){s(H,e),H.length=n.length,j.notifyListeners(H.location,H.action)}function k(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||I(x(e.state))}function N(){I(x(A()))}var R=!1;function I(e){if(R)R=!1,S();else{j.confirmTransitionTo(e,"POP",l,(function(t){t?S({action:"POP",location:e}):function(e){var t=H.location,n=_.indexOf(t.key);-1===n&&(n=0);var r=_.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(R=!0,D(o))}(e)}))}}var L=x(A()),_=[L.key];function F(e){return C+v(e)}function D(e){n.go(e)}var U=0;function Z(e){1===(U+=e)&&1===e?(window.addEventListener(T,k),o&&window.addEventListener(E,N)):0===U&&(window.removeEventListener(T,k),o&&window.removeEventListener(E,N))}var M=!1;var H={length:n.length,action:"POP",location:L,createHref:F,push:function(e,t){var o="PUSH",i=g(e,t,P(),H.location);j.confirmTransitionTo(i,o,l,(function(e){if(e){var t=F(i),a=i.key,s=i.state;if(r)if(n.pushState({key:a,state:s},null,t),c)window.location.href=t;else{var u=_.indexOf(H.location.key),l=_.slice(0,u+1);l.push(i.key),_=l,S({action:o,location:i})}else window.location.href=t}}))},replace:function(e,t){var o="REPLACE",i=g(e,t,P(),H.location);j.confirmTransitionTo(i,o,l,(function(e){if(e){var t=F(i),a=i.key,s=i.state;if(r)if(n.replaceState({key:a,state:s},null,t),c)window.location.replace(t);else{var u=_.indexOf(H.location.key);-1!==u&&(_[u]=i.key),S({action:o,location:i})}else window.location.replace(t)}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=j.setPrompt(e);return M||(Z(1),M=!0),function(){return M&&(M=!1,Z(-1)),t()}},listen:function(e){var t=j.appendListener(e);return Z(1),function(){Z(-1),t()}}};return H}var x="hashchange",P={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+y(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:y,decodePath:d},slash:{encodePath:d,decodePath:d}};function j(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function S(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function k(e){window.location.replace(j(window.location.href)+"#"+e)}function N(e){void 0===e&&(e={}),w||(0,p.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?O:r,i=n.hashType,a=void 0===i?"slash":i,c=e.basename?m(d(e.basename)):"",u=P[a],l=u.encodePath,f=u.decodePath;function y(){var e=f(S());return c&&(e=h(e,c)),g(e)}var T=b();function E(e){s(M,e),M.length=t.length,T.notifyListeners(M.location,M.action)}var A=!1,C=null;function N(){var e,t,n=S(),r=l(n);if(n!==r)k(r);else{var i=y(),a=M.location;if(!A&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(C===v(i))return;C=null,function(e){if(A)A=!1,E();else{var t="POP";T.confirmTransitionTo(e,t,o,(function(n){n?E({action:t,location:e}):function(e){var t=M.location,n=_.lastIndexOf(v(t));-1===n&&(n=0);var r=_.lastIndexOf(v(e));-1===r&&(r=0);var o=n-r;o&&(A=!0,F(o))}(e)}))}}(i)}}var R=S(),I=l(R);R!==I&&k(I);var L=y(),_=[v(L)];function F(e){t.go(e)}var D=0;function U(e){1===(D+=e)&&1===e?window.addEventListener(x,N):0===D&&window.removeEventListener(x,N)}var Z=!1;var M={length:t.length,action:"POP",location:L,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=j(window.location.href)),n+"#"+l(c+v(e))},push:function(e,t){var n="PUSH",r=g(e,void 0,void 0,M.location);T.confirmTransitionTo(r,n,o,(function(e){if(e){var t=v(r),o=l(c+t);if(S()!==o){C=t,function(e){window.location.hash=e}(o);var i=_.lastIndexOf(v(M.location)),a=_.slice(0,i+1);a.push(t),_=a,E({action:n,location:r})}else E()}}))},replace:function(e,t){var n="REPLACE",r=g(e,void 0,void 0,M.location);T.confirmTransitionTo(r,n,o,(function(e){if(e){var t=v(r),o=l(c+t);S()!==o&&(C=t,k(o));var i=_.indexOf(v(M.location));-1!==i&&(_[i]=t),E({action:n,location:r})}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=T.setPrompt(e);return Z||(U(1),Z=!0),function(){return Z&&(Z=!1,U(-1)),t()}},listen:function(e){var t=T.appendListener(e);return U(1),function(){U(-1),t()}}};return M}n(94662);function R(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}c().Component;c().Component;var I=function(e,t){return"function"==typeof e?e(t):e},L=function(e,t){return"string"==typeof e?g(e,null,null,t):e},_=function(e){return e},F=c().forwardRef;void 0===F&&(F=_);var D=F((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=R(e,["innerRef","navigate","onClick"]),a=i.target,u=s({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=_!==F&&t||n,c().createElement("a",u)}));var U=F((function(e,t){var n=e.component,o=void 0===n?D:n,i=e.replace,a=e.to,u=e.innerRef,l=R(e,["component","replace","to","innerRef"]);return c().createElement(r.s6.Consumer,null,(function(e){e||(0,p.Z)(!1);var n=e.history,r=L(I(a,e.location),e.location),f=r?n.createHref(r):"",d=s({},l,{href:f,navigate:function(){var t=I(a,e.location),r=v(e.location)===v(L(t));(i||r?n.replace:n.push)(t)}});return _!==F?d.ref=t||u:d.innerRef=u,c().createElement(o,d)}))})),Z=function(e){return e},M=c().forwardRef;void 0===M&&(M=Z);M((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,i=e.activeClassName,a=void 0===i?"active":i,u=e.activeStyle,l=e.className,f=e.exact,d=e.isActive,y=e.location,h=e.sensitive,m=e.strict,v=e.style,g=e.to,b=e.innerRef,w=R(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return c().createElement(r.s6.Consumer,null,(function(e){e||(0,p.Z)(!1);var n=y||e.location,i=L(I(g,n),n),O=i.pathname,T=O&&O.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),E=T?(0,r.LX)(n.pathname,{path:T,exact:f,sensitive:h,strict:m}):null,A=!!(d?d(E,n):E),C="function"==typeof l?l(A):l,x="function"==typeof v?v(A):v;A&&(C=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(C,a),x=s({},x,u));var P=s({"aria-current":A&&o||null,className:C,style:x,to:i},w);return Z!==M?P.ref=t||b:P.innerRef=b,c().createElement(U,P)}))}))},126:(e,t,n)=>{"use strict";var r=n(51235);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,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 t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},94662:(e,t,n)=>{e.exports=n(126)()},51235:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},83524:(e,t,n)=>{"use strict";var r,o=n(1024),i=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)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 s,u=[];function l(){s=e(u.map((function(e){return e.props}))),f.canUseDOM?t(s):n&&(s=n(s))}var f=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return s},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 e=s;return s=void 0,u=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){u.push(this),l()},a.componentDidUpdate=function(){l()},a.componentWillUnmount=function(){var e=u.indexOf(this);u.splice(e,1),l()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(f,"canUseDOM",c),f}}},44049:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(14892);const o=(i=r.Z,a=i.getIn,function(e,t){return function(n){var r=t||function(e){return a(e,"form")};return a(r(n),e+".initial")}});var i,a},80500:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},70610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},90655:(e,t,n)=>{"use strict";function r(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[c=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(c));for(;c<e.length;)if("\\"!==e[c]){if(")"===e[c]){if(0==--o){c++;break}}else if("("===e[c]&&(o++,"?"!==e[c+1]))throw new TypeError("Capturing groups are not allowed at ".concat(c));i+=e[c++]}else i+=e[c++]+e[c++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:i}),n=c}else{for(var a="",c=n+1;c<e.length;){var s=e.charCodeAt(c);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s))break;a+=e[c++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=c}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,i=void 0===r?"./":r,a="[^".concat(o(t.delimiter||"/#?"),"]+?"),c=[],s=0,u=0,l="",f=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},p=function(e){var t=f(e);if(void 0!==t)return t;var r=n[u],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(e))},d=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t};u<n.length;){var y=f("CHAR"),h=f("NAME"),m=f("PATTERN");if(h||m){var v=y||"";-1===i.indexOf(v)&&(l+=v,v=""),l&&(c.push(l),l=""),c.push({name:h||s++,prefix:v,suffix:"",pattern:m||a,modifier:f("MODIFIER")||""})}else{var g=y||f("ESCAPED_CHAR");if(g)l+=g;else if(l&&(c.push(l),l=""),f("OPEN")){v=d();var b=f("NAME")||"",w=f("PATTERN")||"",O=d();p("CLOSE"),c.push({name:b||(w?s++:""),pattern:b&&!w?a:w,prefix:v,suffix:O,modifier:f("MODIFIER")||""})}else p("END")}}return c}function o(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(e){return e&&e.sensitive?"":"i"}function a(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,a=void 0!==r&&r,c=n.start,s=void 0===c||c,u=n.end,l=void 0===u||u,f=n.encode,p=void 0===f?function(e){return e}:f,d=n.delimiter,y=void 0===d?"/#?":d,h=n.endsWith,m="[".concat(o(void 0===h?"":h),"]|$"),v="[".concat(o(y),"]"),g=s?"^":"",b=0,w=e;b<w.length;b++){var O=w[b];if("string"==typeof O)g+=o(p(O));else{var T=o(p(O.prefix)),E=o(p(O.suffix));if(O.pattern)if(t&&t.push(O),T||E)if("+"===O.modifier||"*"===O.modifier){var A="*"===O.modifier?"?":"";g+="(?:".concat(T,"((?:").concat(O.pattern,")(?:").concat(E).concat(T,"(?:").concat(O.pattern,"))*)").concat(E,")").concat(A)}else g+="(?:".concat(T,"(").concat(O.pattern,")").concat(E,")").concat(O.modifier);else"+"===O.modifier||"*"===O.modifier?g+="((?:".concat(O.pattern,")").concat(O.modifier,")"):g+="(".concat(O.pattern,")").concat(O.modifier);else g+="(?:".concat(T).concat(E,")").concat(O.modifier)}}if(l)a||(g+="".concat(v,"?")),g+=n.endsWith?"(?=".concat(m,")"):"$";else{var C=e[e.length-1],x="string"==typeof C?v.indexOf(C[C.length-1])>-1:void 0===C;a||(g+="(?:".concat(v,"(?=").concat(m,"))?")),x||(g+="(?=".concat(v,"|").concat(m,")"))}return new RegExp(g,i(n))}(r(e,n),t,n)}function c(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return c(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),i(n))}(e,t,n):a(e,t,n)}n.d(t,{Bo:()=>c})}}]);
|