tocco-legacy-bundle 0.1.48 → 0.1.49
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 +4 -0
- package/dist/chunk-vendor-icons.afd9b24fddf7e67e9179.js +1 -0
- package/dist/docs-browser.js +2 -2
- package/dist/entity-browser.js +1 -1
- package/dist/input-edit.js +1 -1
- package/dist/installation-delta-action.js +1 -1
- package/dist/login.js +1 -1
- package/dist/merge.js +1 -1
- package/dist/password-update.js +1 -1
- package/dist/resource-scheduler.js +1 -1
- package/dist/sso-login.js +1 -1
- package/dist/two-factor-connector.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-vendor-icons.f2e43db7d76db7b15883.js +0 -1
package/dist/sso-login.js
CHANGED
|
@@ -48,4 +48,4 @@ object-assign
|
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the MIT license found in the
|
|
50
50
|
* LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/var r=n(1024),o=n(61688);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=u((function(){function e(e){if(!s){if(s=!0,a=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return c=t}return c=e}if(t=c,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,c=n)}var a,c,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var p=a(e,f[0],f[1]);return s((function(){d.hasValue=!0,d.value=p}),[p]),l(p),p}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const i=new Uint8Array(16);function a(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function s(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return s(o)}},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=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},r.apply(this,arguments)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(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}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():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},r.apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(28549);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons"}[e]||e)+"."+{85:"2f610cd0accfa8ef7628",198:"ebf0d3eaf5f744f1cfa0",608:"3f5c2d9d74c51e74c5b0",614:"f2e43db7d76db7b15883",817:"b848709373c74585818e"}[e]+".js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){c=f;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,a.nc&&c.setAttribute("nonce",a.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var d=(t,r)=>{c.onerror=c.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=d.bind(null,c.onerror),c.onload=d.bind(null,c.onload),s&&document.head.appendChild(c)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=820,a.p="/",(()=>{var e={820:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),c=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",c.name="ChunkLoadError",c.type=o,c.request=i,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,c,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in c)a.o(c,r)&&(a.m[r]=c[r]);if(s)s(a)}for(t&&t(n);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0;var c={};return(()=>{"use strict";a.r(c),a.d(c,{app:()=>Pe});var e=a(68803),t=a(45697),n=a.n(t),r=a(22731),o=a(19241),i=a(65378),s=a(23369),u=a(50558),l=a(1024),f=a(88162),d=a(319),p=a.n(d),h=a(54061),m=a.n(h),v=function(e,t,n){var r="widget"===s.Z.getEmbedType(),o=s.Z.getBackendUrl(),i=encodeURIComponent("".concat(o,"/nice2/sso-callback")),a=encodeURIComponent(window.location.href),c="provider=".concat(n.unique_id),u="&sourceUri=".concat(a),l=r?"&redirectUri=".concat(i):"",f="".concat(o).concat(e,"?").concat(c).concat(u).concat(l),d=window.open(f,n.label,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n={height:e,width:t,left:window.screen.width/2-t/2,top:window.screen.height/2-e/2,resizable:1,scrollbars:1,status:1};return m()(n,(function(e,t,n){return[].concat(p()(e),["".concat(n,"=").concat(t)])}),[]).join(",")}(650,500));window.ssoPopUpCallback=function(e){d.close(),t(e)}},g=a(28655),y=a.n(g),b=a(38205),w=a(58129),O=a(7281),x=a(88601),E=16,S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return t;e=k(e);var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],E),g:parseInt(n[2],E),b:parseInt(n[3],E)}:t},k=function(e){return e.startsWith("#")||(e="#"+e),e.padEnd(7,"0")},j=function(e){var t=e/255;return t<=.03928?t/=12.92:t=Math.pow((t+.055)/1.055,2.4),t},P=function(e){return.2126*j(e.r)+.7152*j(e.g)+.0722*j(e.b)};const T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#FFFFFF",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#000000",r=S(e);return r&&P(r)>.25?n:t};var _;const C=(0,b.ZP)(w.Z)(_||(_=y()(["\n && {\n margin-right: 0;\n flex: 1;\n font-size: ",";\n justify-content: center;\n border-radius: ",";\n background-color: ",";\n color: ",";\n\n span {\n margin-left: ",";\n padding: "," 0;\n }\n }\n"])),O.Z.font(1.3),x.Z.radii("buttonLarge"),(function(e){return e.primaryColor}),(function(e){var t=e.secondaryColor;return T(t)}),O.Z.space(-.8),O.Z.space(-.55));var A=a(85893);const N=function(e){var t=e.provider,n=e.loginCompleted,r=e.loginEndpoint;return(0,A.jsxs)(C,{primaryColor:t.button_primary_color,secondaryColor:t.button_secondary_color,onClick:function(){v(r,n,t)},children:[t.button_icon&&(0,A.jsx)(f.Z,{position:"prepend",icon:t.button_icon}),(0,A.jsx)("span",{children:t.button_label})]})};var R,Z=b.ZP.div.withConfig({displayName:"StyledButtonContainer"})(R||(R=y()(["\n width: 100%;\n margin-top: 3rem;\n display: grid;\n grid-gap: 1rem;\n grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));\n\n @media (max-width: 1024px) {\n margin-top: 1.5rem;\n }\n"]))),M=a(35997);const D=function(e){var t=e.autoLogin,n=e.providers,r=e.loginEndpoint,o=e.loginCompleted,i=M.Z.usePrevious(n);(0,l.useEffect)((function(){if(t&&(!i||0===i.length)&&n.length>0){var e=n.find((function(e){return e.unique_id===t}));e&&v(r,o,e)}}),[i,n,t,r,o])};const I=function(e){var t=e.loadProviders,n=e.autoLogin,r=e.providers,o=void 0===r?[]:r,i=e.loginEndpoint,a=e.loginCompleted;(0,l.useEffect)((function(){t()}),[t]),D({autoLogin:n,providers:o,loginEndpoint:i,loginCompleted:a});var c=o.map((function(e,t){return(0,A.jsx)(N,{provider:e,loginEndpoint:i,loginCompleted:a},t)}));return(0,A.jsx)(Z,{children:c})},L=I;var F="root/LOAD_PROVIDERS",H="root/SET_PROVIDERS",W="root/LOGIN_COMPLETED",B={loadProviders:function(){return{type:F}},loginCompleted:function(e){return{type:W,payload:{result:e}}}};const U=(0,u.connect)((function(e){return{providers:e.ssoLogin.providers,loginEndpoint:e.input.ssoLoginEndpoint,autoLogin:e.input.autoLogin}}),B)(L);var z=a(59713),G=a.n(z),q=a(81770),V=G()({},H,q.Z.singleTransferReducer("providers")),Y={providers:[]};var $=a(87757),X=a.n($),K=a(34857),J=a(81719),Q=a(21913),ee=a(54159),te=a(75354);function ne(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 re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){G()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oe=function(e){return e.data.map((function(e){return m()(e.paths,(function(e,t,n){return re(re({},e),{},G()({},n,t.value))}),{})}))},ie="login_failed",ae="registration_started",ce=X().mark(he),se=X().mark(me),ue=X().mark(ve),le=X().mark(ge),fe=X().mark(be),de=function(e){return e.intl},pe=function(e){return e.input};function he(){var e,t,n;return X().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,K.Ys)(de);case 2:return e=r.sent,t={paths:["unique_id","label","button_primary_color","button_secondary_color","button_icon","button_label"],conditions:{locale:e.locale,active:!0}},r.next=6,(0,K.RE)(J.Z.fetchEntities,"Openid_provider",t,{method:"GET"},oe);case 6:return n=r.sent,r.next=9,(0,K.gz)({type:H,payload:{providers:n}});case 9:case"end":return r.stop()}}),ce)}function me(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,K.RE)(ee.Z.executeRequest,"login",{method:"GET",headers:new Headers({"X-Business-Unit":s.Z.getBusinessUnit()})});case 2:case"end":return e.stop()}}),se)}function ve(){var e,t,n,r;return X().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,K.RE)(te.Z.fromQueryString,window.location.search);case 2:return e=o.sent,t=e._redirect_url,o.next=6,(0,K.Ys)(pe);case 6:return n=o.sent,r=n.redirectUrl,o.abrupt("return",t||r);case 9:case"end":return o.stop()}}),ue)}function ge(){var e;return X().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,K.RE)(ve);case 2:(e=t.sent)&&(window.location.href=e);case 4:case"end":return t.stop()}}),le)}function ye(e){var t=e.payload.result;return X().mark((function e(){var n,i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,K.Ys)(pe);case 2:return n=e.sent,i=n.appContext,e.next=6,(0,K.RE)(r.Z.hasInvalidCache);case 6:if(!e.sent){e.next=12;break}return e.next=10,(0,K.RE)(Q.Z.clearAll);case 10:e.next=14;break;case 12:return e.next=14,(0,K.RE)(Q.Z.clearShortTerm);case 14:if("widget"!==(null==i?void 0:i.embedType)){e.next=29;break}if(null==t||!t.successful){e.next=22;break}return e.next=18,(0,K.RE)(me);case 18:return e.next=20,(0,K.RE)(ge);case 20:case 25:e.next=29;break;case 22:if(null==t||!t.registration){e.next=27;break}return e.next=25,(0,K.gz)(o.Z.fireVisibilityStatusChangeEvent([ae]));case 27:return e.next=29,(0,K.gz)(o.Z.fireVisibilityStatusChangeEvent([ie]));case 29:return e.next=31,(0,K.gz)(o.Z.fireExternalEvent("loginCompleted",t));case 31:case"end":return e.stop()}}),e)}))()}function be(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,K.$6)([(0,K.Fm)(F,he),(0,K.Fm)(W,ye)]);case 2:case"end":return e.stop()}}),fe)}const we={ssoLogin:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y,t=arguments.length>1?arguments[1]:void 0,n=V[t.type];return n?n(e,t):e}};var Oe,xe=[be],Ee="sso-login",Se=["loginCompleted","onVisibilityStatusChange"],ke=function(t,n,i,a){s.Z.setInputEnvs(n);var c=Oe||(Oe=(0,A.jsx)(U,{})),u=e.Z.createStore(we,xe,n,Ee);return o.Z.addToStore(u,(function(t){return e.Z.getEvents(Se,t.input)})),r.Z.addToStore(u),e.Z.createApp(Ee,c,u,{input:n,events:i,actions:[],publicPath:a,textResourceModules:["component","common",Ee]})},je=function(t){return e.Z.useApp({initApp:ke,props:t,packageName:Ee,externalEvents:Se}).component};je.propTypes={ssoLoginEndpoint:n().string.isRequired,locale:n().string,autoLogin:n().bool,appContext:i.Z.propTypes,businessUnit:n().string,redirectUrl:n().string};var Pe=e.Z.createBundleableApp(Ee,ke,je);e.Z.registerAppInRegistry(Pe.name,Pe.init)})(),c})()));
|
|
51
|
+
*/var r=n(1024),o=n(61688);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=u((function(){function e(e){if(!s){if(s=!0,a=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return c=t}return c=e}if(t=c,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,c=n)}var a,c,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var p=a(e,f[0],f[1]);return s((function(){d.hasValue=!0,d.value=p}),[p]),l(p),p}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const i=new Uint8Array(16);function a(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function s(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return s(o)}},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=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},r.apply(this,arguments)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(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}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():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},r.apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(28549);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons"}[e]||e)+"."+{85:"2f610cd0accfa8ef7628",198:"ebf0d3eaf5f744f1cfa0",608:"3f5c2d9d74c51e74c5b0",614:"afd9b24fddf7e67e9179",817:"b848709373c74585818e"}[e]+".js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){c=f;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,a.nc&&c.setAttribute("nonce",a.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var d=(t,r)=>{c.onerror=c.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=d.bind(null,c.onerror),c.onload=d.bind(null,c.onload),s&&document.head.appendChild(c)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=820,a.p="/",(()=>{var e={820:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),c=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",c.name="ChunkLoadError",c.type=o,c.request=i,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,c,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in c)a.o(c,r)&&(a.m[r]=c[r]);if(s)s(a)}for(t&&t(n);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0;var c={};return(()=>{"use strict";a.r(c),a.d(c,{app:()=>Pe});var e=a(68803),t=a(45697),n=a.n(t),r=a(22731),o=a(19241),i=a(65378),s=a(23369),u=a(50558),l=a(1024),f=a(88162),d=a(319),p=a.n(d),h=a(54061),m=a.n(h),v=function(e,t,n){var r="widget"===s.Z.getEmbedType(),o=s.Z.getBackendUrl(),i=encodeURIComponent("".concat(o,"/nice2/sso-callback")),a=encodeURIComponent(window.location.href),c="provider=".concat(n.unique_id),u="&sourceUri=".concat(a),l=r?"&redirectUri=".concat(i):"",f="".concat(o).concat(e,"?").concat(c).concat(u).concat(l),d=window.open(f,n.label,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n={height:e,width:t,left:window.screen.width/2-t/2,top:window.screen.height/2-e/2,resizable:1,scrollbars:1,status:1};return m()(n,(function(e,t,n){return[].concat(p()(e),["".concat(n,"=").concat(t)])}),[]).join(",")}(650,500));window.ssoPopUpCallback=function(e){d.close(),t(e)}},g=a(28655),y=a.n(g),b=a(38205),w=a(58129),O=a(7281),x=a(88601),E=16,S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return t;e=k(e);var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],E),g:parseInt(n[2],E),b:parseInt(n[3],E)}:t},k=function(e){return e.startsWith("#")||(e="#"+e),e.padEnd(7,"0")},j=function(e){var t=e/255;return t<=.03928?t/=12.92:t=Math.pow((t+.055)/1.055,2.4),t},P=function(e){return.2126*j(e.r)+.7152*j(e.g)+.0722*j(e.b)};const T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#FFFFFF",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#000000",r=S(e);return r&&P(r)>.25?n:t};var _;const C=(0,b.ZP)(w.Z)(_||(_=y()(["\n && {\n margin-right: 0;\n flex: 1;\n font-size: ",";\n justify-content: center;\n border-radius: ",";\n background-color: ",";\n color: ",";\n\n span {\n margin-left: ",";\n padding: "," 0;\n }\n }\n"])),O.Z.font(1.3),x.Z.radii("buttonLarge"),(function(e){return e.primaryColor}),(function(e){var t=e.secondaryColor;return T(t)}),O.Z.space(-.8),O.Z.space(-.55));var A=a(85893);const N=function(e){var t=e.provider,n=e.loginCompleted,r=e.loginEndpoint;return(0,A.jsxs)(C,{primaryColor:t.button_primary_color,secondaryColor:t.button_secondary_color,onClick:function(){v(r,n,t)},children:[t.button_icon&&(0,A.jsx)(f.Z,{position:"prepend",icon:t.button_icon}),(0,A.jsx)("span",{children:t.button_label})]})};var R,Z=b.ZP.div.withConfig({displayName:"StyledButtonContainer"})(R||(R=y()(["\n width: 100%;\n margin-top: 3rem;\n display: grid;\n grid-gap: 1rem;\n grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));\n\n @media (max-width: 1024px) {\n margin-top: 1.5rem;\n }\n"]))),M=a(35997);const D=function(e){var t=e.autoLogin,n=e.providers,r=e.loginEndpoint,o=e.loginCompleted,i=M.Z.usePrevious(n);(0,l.useEffect)((function(){if(t&&(!i||0===i.length)&&n.length>0){var e=n.find((function(e){return e.unique_id===t}));e&&v(r,o,e)}}),[i,n,t,r,o])};const I=function(e){var t=e.loadProviders,n=e.autoLogin,r=e.providers,o=void 0===r?[]:r,i=e.loginEndpoint,a=e.loginCompleted;(0,l.useEffect)((function(){t()}),[t]),D({autoLogin:n,providers:o,loginEndpoint:i,loginCompleted:a});var c=o.map((function(e,t){return(0,A.jsx)(N,{provider:e,loginEndpoint:i,loginCompleted:a},t)}));return(0,A.jsx)(Z,{children:c})},L=I;var F="root/LOAD_PROVIDERS",H="root/SET_PROVIDERS",W="root/LOGIN_COMPLETED",B={loadProviders:function(){return{type:F}},loginCompleted:function(e){return{type:W,payload:{result:e}}}};const U=(0,u.connect)((function(e){return{providers:e.ssoLogin.providers,loginEndpoint:e.input.ssoLoginEndpoint,autoLogin:e.input.autoLogin}}),B)(L);var z=a(59713),G=a.n(z),q=a(81770),V=G()({},H,q.Z.singleTransferReducer("providers")),Y={providers:[]};var $=a(87757),X=a.n($),K=a(34857),J=a(81719),Q=a(21913),ee=a(54159),te=a(75354);function ne(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 re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){G()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oe=function(e){return e.data.map((function(e){return m()(e.paths,(function(e,t,n){return re(re({},e),{},G()({},n,t.value))}),{})}))},ie="login_failed",ae="registration_started",ce=X().mark(he),se=X().mark(me),ue=X().mark(ve),le=X().mark(ge),fe=X().mark(be),de=function(e){return e.intl},pe=function(e){return e.input};function he(){var e,t,n;return X().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,K.Ys)(de);case 2:return e=r.sent,t={paths:["unique_id","label","button_primary_color","button_secondary_color","button_icon","button_label"],conditions:{locale:e.locale,active:!0}},r.next=6,(0,K.RE)(J.Z.fetchEntities,"Openid_provider",t,{method:"GET"},oe);case 6:return n=r.sent,r.next=9,(0,K.gz)({type:H,payload:{providers:n}});case 9:case"end":return r.stop()}}),ce)}function me(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,K.RE)(ee.Z.executeRequest,"login",{method:"GET",headers:new Headers({"X-Business-Unit":s.Z.getBusinessUnit()})});case 2:case"end":return e.stop()}}),se)}function ve(){var e,t,n,r;return X().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,K.RE)(te.Z.fromQueryString,window.location.search);case 2:return e=o.sent,t=e._redirect_url,o.next=6,(0,K.Ys)(pe);case 6:return n=o.sent,r=n.redirectUrl,o.abrupt("return",t||r);case 9:case"end":return o.stop()}}),ue)}function ge(){var e;return X().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,K.RE)(ve);case 2:(e=t.sent)&&(window.location.href=e);case 4:case"end":return t.stop()}}),le)}function ye(e){var t=e.payload.result;return X().mark((function e(){var n,i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,K.Ys)(pe);case 2:return n=e.sent,i=n.appContext,e.next=6,(0,K.RE)(r.Z.hasInvalidCache);case 6:if(!e.sent){e.next=12;break}return e.next=10,(0,K.RE)(Q.Z.clearAll);case 10:e.next=14;break;case 12:return e.next=14,(0,K.RE)(Q.Z.clearShortTerm);case 14:if("widget"!==(null==i?void 0:i.embedType)){e.next=29;break}if(null==t||!t.successful){e.next=22;break}return e.next=18,(0,K.RE)(me);case 18:return e.next=20,(0,K.RE)(ge);case 20:case 25:e.next=29;break;case 22:if(null==t||!t.registration){e.next=27;break}return e.next=25,(0,K.gz)(o.Z.fireVisibilityStatusChangeEvent([ae]));case 27:return e.next=29,(0,K.gz)(o.Z.fireVisibilityStatusChangeEvent([ie]));case 29:return e.next=31,(0,K.gz)(o.Z.fireExternalEvent("loginCompleted",t));case 31:case"end":return e.stop()}}),e)}))()}function be(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,K.$6)([(0,K.Fm)(F,he),(0,K.Fm)(W,ye)]);case 2:case"end":return e.stop()}}),fe)}const we={ssoLogin:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y,t=arguments.length>1?arguments[1]:void 0,n=V[t.type];return n?n(e,t):e}};var Oe,xe=[be],Ee="sso-login",Se=["loginCompleted","onVisibilityStatusChange"],ke=function(t,n,i,a){s.Z.setInputEnvs(n);var c=Oe||(Oe=(0,A.jsx)(U,{})),u=e.Z.createStore(we,xe,n,Ee);return o.Z.addToStore(u,(function(t){return e.Z.getEvents(Se,t.input)})),r.Z.addToStore(u),e.Z.createApp(Ee,c,u,{input:n,events:i,actions:[],publicPath:a,textResourceModules:["component","common",Ee]})},je=function(t){return e.Z.useApp({initApp:ke,props:t,packageName:Ee,externalEvents:Se}).component};je.propTypes={ssoLoginEndpoint:n().string.isRequired,locale:n().string,autoLogin:n().bool,appContext:i.Z.propTypes,businessUnit:n().string,redirectUrl:n().string};var Pe=e.Z.createBundleableApp(Ee,ke,je);e.Z.registerAppInRegistry(Pe.name,Pe.init)})(),c})()));
|
|
@@ -53,7 +53,7 @@ object-assign
|
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the MIT license found in the
|
|
55
55
|
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var p=c(null);if(null===p.current){var f={hasValue:!1,value:null};p.current=f}else f=p.current;p=u((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var d=i(e,p[0],p[1]);return s((function(){f.hasValue=!0,f.value=d}),[d]),l(d),d}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const a=new Uint8Array(16);function i(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function s(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return s(o)}},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=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},r.apply(this,arguments)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(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}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():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},r.apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(28549);function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},62360:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>885===e?"chunk-ckeditor.0daf8b199dba27bea4fd.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"2f610cd0accfa8ef7628",198:"ebf0d3eaf5f744f1cfa0",560:"87a276b3cb43e136f4e1",608:"3f5c2d9d74c51e74c5b0",614:"f2e43db7d76db7b15883",759:"3e178a7310a92d3020c3",817:"b848709373c74585818e",877:"ee24f52222afe086ba7e"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var p=u[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var f=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=f.bind(null,c.onerror),c.onload=f.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=280,i.p="/",(()=>{var e={280:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c),i.d(c,{app:()=>fp});var e,t,n,r,o,a,s=i(68803),u=i(59713),l=i.n(u),p=i(45697),f=i.n(p),d=i(22731),h=i(19743),m=i(19241),g=i(30604),v=i(74806),y=i(50558),b="two-factor-connector/INITIALIZE",w="two-factor-connector/SET_TWO_STEP_ACTIVE",O="two-factor-connector/SET_SECRET",k="two-factor-connector/SET_USER_NAME",_="two-factor-connector/REQUEST_SECRET",x="two-factor-connector/GO_TO_SECRET_VERIFICATION",S="two-factor-connector/GO_TO_START",A="two-factor-connector/GO_TO_SECRET",E="two-factor-connector/VERIFY_CODE",C="root/SUCCESS",P="root/SET_SETUP_SUCCESSFUL",j="root/GO_TO_RESULT",D=function(){return{type:b}},T=function(e){return{type:w,payload:{twoFactorActive:e}}},R=function(e){return{type:O,payload:{secret:e}}},M=function(e){return{type:k,payload:{username:e}}},I=function(){return{type:S}},N=function(e){return{type:P,payload:{setupSuccessful:e}}},B=i(1024),Z=i.n(B),L=i(50258),F=i(44012),H=i(83324),U=i(88162),W=i(34206),z=i(65035),Y=i(28655),V=i.n(Y),q=i(38205),G=i(7281),K=i(58129),X=q.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(e||(e=V()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),G.Z.space(.5),K.Z),$=i(24875),Q=q.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(t||(t=V()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),G.Z.space(-.5)),J=q.ZP.span.withConfig({displayName:"StyledIconWrapper"})(n||(n=V()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n\n > * {\n max-width: 100%;\n }\n"])),(function(e){return e.isSuccessful?$.FS.color("signal.success"):$.FS.color("signal.danger")}),G.Z.font(10)),ee=q.ZP.div.withConfig({displayName:"StyledTextWrapper"})(r||(r=V()(["\n display: flex;\n align-items: center;\n"]))),te=i(85893);const ne=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,i=e.intl;(0,H.z)(t);var c=function(e){return i.formatMessage({id:e})};return r?(0,te.jsxs)(te.Fragment,{children:[o||(o=(0,te.jsxs)(Q,{children:[(0,te.jsx)(J,{isSuccessful:!0,children:(0,te.jsx)(U.Z,{icon:"check"})}),(0,te.jsx)(ee,{children:(0,te.jsx)(W.ZP.P,{children:(0,te.jsx)(F.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,te.jsx)(X,{children:(0,te.jsx)(z.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,te.jsxs)(te.Fragment,{children:[a||(a=(0,te.jsxs)(Q,{children:[(0,te.jsx)(J,{isSuccessful:!1,children:(0,te.jsx)(U.Z,{icon:"times"})}),(0,te.jsx)(ee,{children:(0,te.jsx)(W.ZP.P,{children:(0,te.jsx)(F.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,te.jsx)(X,{children:(0,te.jsx)(z.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var re={success:function(){return{type:C}},goToStart:I};const oe=(0,y.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),re)((0,v.ZP)(ne));var ae,ie=Object.defineProperty,ce=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,le=(e,t,n)=>t in e?ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pe=(e,t)=>{for(var n in t||(t={}))se.call(t,n)&&le(e,n,t[n]);if(ce)for(var n of ce(t))ue.call(t,n)&&le(e,n,t[n]);return e},fe=(e,t)=>{var n={};for(var r in e)se.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ce)for(var r of ce(e))t.indexOf(r)<0&&ue.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,i=40,s=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let l,p;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){p=o;break}if(l>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&p<=8*t.getNumDataCodewords(l,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}a(f.length==p);const d=8*t.getNumDataCodewords(l,n);a(f.length<=d),r(0,Math.min(4,d-f.length),f),r(0,(8-f.length%8)%8,f),a(f.length%8==0);for(let e=236;f.length<d;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),s=o-c%o,u=Math.floor(c/o);let l=[];const p=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-i+(n<s?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,p);n<s&&o.push(0),l.push(o.concat(a))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=s)&&f.push(t[e])}));return a(f.length==c),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){const i=t-a,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][i]&&n<8*e.length&&(this.modules[c][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let c=i;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})(ae||(ae={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(ae||(ae={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(ae||(ae={}));var de=ae,he={L:de.QrCode.Ecc.LOW,M:de.QrCode.Ecc.MEDIUM,Q:de.QrCode.Ecc.QUARTILE,H:de.QrCode.Ecc.HIGH},me=128,ge="L",ve="#FFFFFF",ye="#000000",be=!1;
|
|
56
|
+
*/var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var p=c(null);if(null===p.current){var f={hasValue:!1,value:null};p.current=f}else f=p.current;p=u((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var d=i(e,p[0],p[1]);return s((function(){f.hasValue=!0,f.value=d}),[d]),l(d),d}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const a=new Uint8Array(16);function i(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function s(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return s(o)}},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=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},r.apply(this,arguments)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(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}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():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},r.apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(28549);function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},62360:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>885===e?"chunk-ckeditor.0daf8b199dba27bea4fd.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"2f610cd0accfa8ef7628",198:"ebf0d3eaf5f744f1cfa0",560:"87a276b3cb43e136f4e1",608:"3f5c2d9d74c51e74c5b0",614:"afd9b24fddf7e67e9179",759:"3e178a7310a92d3020c3",817:"b848709373c74585818e",877:"ee24f52222afe086ba7e"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var p=u[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var f=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=f.bind(null,c.onerror),c.onload=f.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=280,i.p="/",(()=>{var e={280:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c),i.d(c,{app:()=>fp});var e,t,n,r,o,a,s=i(68803),u=i(59713),l=i.n(u),p=i(45697),f=i.n(p),d=i(22731),h=i(19743),m=i(19241),g=i(30604),v=i(74806),y=i(50558),b="two-factor-connector/INITIALIZE",w="two-factor-connector/SET_TWO_STEP_ACTIVE",O="two-factor-connector/SET_SECRET",k="two-factor-connector/SET_USER_NAME",_="two-factor-connector/REQUEST_SECRET",x="two-factor-connector/GO_TO_SECRET_VERIFICATION",S="two-factor-connector/GO_TO_START",A="two-factor-connector/GO_TO_SECRET",E="two-factor-connector/VERIFY_CODE",C="root/SUCCESS",P="root/SET_SETUP_SUCCESSFUL",j="root/GO_TO_RESULT",D=function(){return{type:b}},T=function(e){return{type:w,payload:{twoFactorActive:e}}},R=function(e){return{type:O,payload:{secret:e}}},M=function(e){return{type:k,payload:{username:e}}},I=function(){return{type:S}},N=function(e){return{type:P,payload:{setupSuccessful:e}}},B=i(1024),Z=i.n(B),L=i(50258),F=i(44012),H=i(83324),U=i(88162),W=i(34206),z=i(65035),Y=i(28655),V=i.n(Y),q=i(38205),G=i(7281),K=i(58129),X=q.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(e||(e=V()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),G.Z.space(.5),K.Z),$=i(24875),Q=q.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(t||(t=V()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),G.Z.space(-.5)),J=q.ZP.span.withConfig({displayName:"StyledIconWrapper"})(n||(n=V()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n\n > * {\n max-width: 100%;\n }\n"])),(function(e){return e.isSuccessful?$.FS.color("signal.success"):$.FS.color("signal.danger")}),G.Z.font(10)),ee=q.ZP.div.withConfig({displayName:"StyledTextWrapper"})(r||(r=V()(["\n display: flex;\n align-items: center;\n"]))),te=i(85893);const ne=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,i=e.intl;(0,H.z)(t);var c=function(e){return i.formatMessage({id:e})};return r?(0,te.jsxs)(te.Fragment,{children:[o||(o=(0,te.jsxs)(Q,{children:[(0,te.jsx)(J,{isSuccessful:!0,children:(0,te.jsx)(U.Z,{icon:"check"})}),(0,te.jsx)(ee,{children:(0,te.jsx)(W.ZP.P,{children:(0,te.jsx)(F.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,te.jsx)(X,{children:(0,te.jsx)(z.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,te.jsxs)(te.Fragment,{children:[a||(a=(0,te.jsxs)(Q,{children:[(0,te.jsx)(J,{isSuccessful:!1,children:(0,te.jsx)(U.Z,{icon:"times"})}),(0,te.jsx)(ee,{children:(0,te.jsx)(W.ZP.P,{children:(0,te.jsx)(F.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,te.jsx)(X,{children:(0,te.jsx)(z.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var re={success:function(){return{type:C}},goToStart:I};const oe=(0,y.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),re)((0,v.ZP)(ne));var ae,ie=Object.defineProperty,ce=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,le=(e,t,n)=>t in e?ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pe=(e,t)=>{for(var n in t||(t={}))se.call(t,n)&&le(e,n,t[n]);if(ce)for(var n of ce(t))ue.call(t,n)&&le(e,n,t[n]);return e},fe=(e,t)=>{var n={};for(var r in e)se.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ce)for(var r of ce(e))t.indexOf(r)<0&&ue.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,i=40,s=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let l,p;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){p=o;break}if(l>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&p<=8*t.getNumDataCodewords(l,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}a(f.length==p);const d=8*t.getNumDataCodewords(l,n);a(f.length<=d),r(0,Math.min(4,d-f.length),f),r(0,(8-f.length%8)%8,f),a(f.length%8==0);for(let e=236;f.length<d;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),s=o-c%o,u=Math.floor(c/o);let l=[];const p=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-i+(n<s?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,p);n<s&&o.push(0),l.push(o.concat(a))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=s)&&f.push(t[e])}));return a(f.length==c),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){const i=t-a,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][i]&&n<8*e.length&&(this.modules[c][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let c=i;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})(ae||(ae={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(ae||(ae={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(ae||(ae={}));var de=ae,he={L:de.QrCode.Ecc.LOW,M:de.QrCode.Ecc.MEDIUM,Q:de.QrCode.Ecc.QUARTILE,H:de.QrCode.Ecc.HIGH},me=128,ge="L",ve="#FFFFFF",ye="#000000",be=!1;
|
|
57
57
|
/**
|
|
58
58
|
* @license qrcode.react
|
|
59
59
|
* Copyright (c) Paul O'Shannessy
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunktocco_=self.webpackChunktocco_||[]).push([[614],{13025:(e,t,r)=>{r.d(t,{Z:()=>o,l:()=>i});var n=r(45697),o={SINGLE:"single",MULTI:"multi",MULTI_EXPLICIT:"multi_explicit",NONE:"none"},i=r.n(n)().oneOf(Object.keys(o).map((function(e){return o[e]})))},25842:(e,t,r)=>{r.d(t,{WV:()=>x,fu:()=>w,nC:()=>j,q1:()=>O,sG:()=>P});var n,o,i,a,c,s=r(6479),l=r.n(s),u=r(28655),f=r.n(u),d=r(1024),p=r.n(d),b=r(38205),h=r(40493),y=r(69829),m=r(88601),v=r(7281),g=["component"],j=b.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(n||(n=f()(["\n background-color: ",";\n padding: "," ",";\n position: relative;\n z-index: 2; // higher than StyledTether to prevent cover on scroll\n"])),(function(e){return e.backgroundColor||m.Z.color("backgroundBreadcrumbs")(e)}),v.Z.space(-.7),v.Z.space(.39)),O=(0,b.ZP)((function(e){var t=e.component,r=l()(e,g);return p().cloneElement(t,r)})).withConfig({displayName:"StyledBreadcrumbsLink"})(o||(o=f()(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n cursor: pointer;\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:hover,\n &:hover * {\n color: ",";\n }\n\n &:focus,\n &:active,\n &:focus *,\n &:active * {\n color: ",";\n }\n"])),m.Z.fontWeight("bold"),(function(e){return e.active&&m.Z.color("primary")}),m.Z.fontWeight("bold"),(function(e){return e.active&&m.Z.color("primary")}),m.Z.color("secondaryLight"),m.Z.color("primary")),w=b.ZP.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(i||(i=f()(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:active * {\n color: ",";\n }\n"])),m.Z.fontWeight("bold"),(function(e){return e.active&&m.Z.color("primary")}),m.Z.fontWeight("bold"),(function(e){return e.active&&m.Z.color("primary")}),m.Z.color("primary")),P=(0,b.ZP)(y.Fe).withConfig({displayName:"StyledBreadcrumbSeparator"})(a||(a=f()(["\n margin-left: ",";\n margin-right: ",";\n"])),v.Z.space(-2),v.Z.space(-2)),x=b.ZP.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(c||(c=f()(["\n "," {\n margin-right: ",";\n }\n"])),h.q,v.Z.space(-1))},10129:(e,t,r)=>{r.d(t,{Z:()=>f});var n=r(59713),o=r.n(n),i=r(6479),a=r.n(i);if(/^9(47|9)$/.test(r.j))var c=r(65035);var s=r(85893),l=/^9(47|9)$/.test(r.j)?["icon","label","onClick"]:null;function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const f=/^9(47|9)$/.test(r.j)?function(e){var t=e.icon,r=e.label,n=e.onClick,i=a()(e,l);return(0,s.jsx)(c.Z,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({icon:t||"arrow-left",label:r,onClick:n,"data-cy":"back-button"},i))}:null},99579:(e,t,r)=>{r.r(t),r.d(t,{Icon:()=>I,default:()=>T});var n=r(59713),o=r.n(n),i=r(45697),a=r.n(i),c=r(6479),s=r.n(c),l=r(23636),u=r(93024),f=r(65735),d=r(73582),p=r(67814),b=r(27361),h=r.n(b),y=r(40493),m=r(85893),v=["icon","style","hasFixedWidth"];function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}l.library.add(d.IJ7,f.IJ7,f.C65,f.kJo,f._tD,f.A35,f.mTx,f.ptq,f.g4A,f.r8p,f.Pk,f.g9M,f.Tab,d.Tab,f.NBC,f.eFW,f.acZ,f.u2A,f.gMD,f.cwv,f.w49,f.fUD,f.icc,f.ca9,f.Vmj,f.gSj,f.WFE,f.hQn,f.LEp,f.WV2,f.FU$,f.diR,d.diR,f.f8k,d.f8k,u.xYR,u.neY,u.AYu,u.kBj,u.hVS,u.dc_,u.Av$,f.xiG,f.gJF,f.j1w,f.WKO,f.wn1,f.b7W,f.YHc,f.ZC5,f.UO1,d.Fyj,f.Qj4,f.FL8,f.foy,f.u9C,f.Fuz,f.iV1,f.Kl4,f.nYk,f.sqG,f.RLE,f.XAH,f.Zrf,f.jMV,f.pL1,f.g6h,f.SJY,f.qmU,f.nek,f.Qy6,f.lH_,d.pL1,f.hVM,f.yOf,f.Xgz,f.Mzg,f.r6l,f.IwR,f.aJJ,d.Alc,f.dLO,f.ntl,f.Hw7,f.FYs,f.$36,f.fT7,f.ioP,f.Cw9,f.Ry6,f.C3l,f.a1i,f.jGC,f.IeV,f.A8,f.hG5,f.FVb,f.AxY,f.mAj,f.hGM,f.UkD,f.BDt,f.QzV,f.py1,f.cf$,f.byT,f.dT$,f.G_j,f.A4,f.ar8,f.nNP,f.yGT,f.ILF,f.rux,f.qbi);var O=function(e){var t=e.icon,r=e.style,n=e.hasFixedWidth,o=s()(e,v),i=t.includes(",")?t.replace(/\s+/,"").split(","):t,a=j({},h()(r,"color")&&{color:r.color}),c=Array.isArray(i)?i[1]:i;return(0,m.jsx)(y.q,{children:(0,m.jsx)(p.G,j(j(j({icon:i,style:r},a),{},{fixedWidth:n},o),{},{"data-testid":"icon-".concat(c)}))})};O.defaultProps={hasFixedWidth:!0};const w=O,P=JSON.parse('{"abacus":{"id":"fal, abacus","lib":"fa"},"address-card":{"id":"fal, address-card","lib":"fa"},"apple":{"id":"fab, apple","lib":"fa","tags":["sso"]},"arrow-left":{"id":"fal, arrow-left","lib":"fa","tags":["navigate"]},"arrow-right":{"id":"fal, arrow-right","lib":"fa","tags":["navigate"]},"arrow-to-bottom":{"id":"fal, arrow-to-bottom","lib":"fa","tags":["download"]},"arrow-to-top":{"id":"fal, arrow-to-top","lib":"fa","tags":["upload"]},"arrow-up-long":{"id":"fal, arrow-up-long","lib":"fa","tags":["arrow-up-long"]},"ballot-check":{"id":"fal, ballot-check","lib":"fa"},"barcode-alt":{"id":"fal, barcode-alt","lib":"fa"},"bars":{"id":"fal, bars","lib":"fa","tags":["burger"]},"bell":{"id":"fal, bell","lib":"fa","tags":["notification"]},"bolt":{"id":"fal, bolt-lightning","lib":"fa"},"bolt-lightning":{"id":"fal, bolt-lightning","lib":"fa"},"book":{"id":"fal, book","lib":"fa"},"box":{"id":"fal, box","lib":"fa"},"box-open":{"id":"fal, box-open","lib":"fa"},"calendar":{"id":"fal, calendar","lib":"fa"},"calendar-arrow-down":{"id":"fal, calendar-arrow-down","lib":"fa"},"calendar-circle-user":{"id":"fal, calendar-circle-user","lib":"fa"},"calendar-check":{"id":"fal, calendar-check","lib":"fa"},"calendar-minus":{"id":"fal, calendar-minus","lib":"fa"},"calendar-plus":{"id":"fal, calendar-plus","lib":"fa"},"chalkboard-teacher":{"id":"fal, chalkboard-teacher","lib":"fa"},"chart-network":{"id":"fal, chart-network","lib":"fa"},"check":{"id":"fal, check","lib":"fa","tags":["ok"]},"check-circle":{"id":"fal, check-circle","lib":"fa","tags":["check"]},"check-circle-full":{"id":"fas, check-circle","lib":"fa"},"chevron-double-down":{"id":"fal, chevron-double-down","lib":"fa"},"chevron-double-left":{"id":"fal, chevron-double-left","lib":"fa"},"chevron-double-right":{"id":"fal, chevron-double-right","lib":"fa"},"chevron-double-up":{"id":"fal, chevron-double-up","lib":"fa"},"chevron-down":{"id":"fal, chevron-down","lib":"fa"},"chevron-left":{"id":"fal, chevron-left","lib":"fa"},"chevron-right":{"id":"fal, chevron-right","lib":"fa"},"chevron-up":{"id":"fal, chevron-up","lib":"fa"},"circle":{"id":"fal, circle","lib":"fa","tags":["selection"]},"circle-full":{"id":"fas, circle","lib":"fa"},"circle-notch":{"id":"fa, circle-notch","lib":"fa"},"circle-notch-light":{"id":"fal, circle-notch","lib":"fa"},"code":{"id":"fal, code","lib":"fa"},"cog":{"id":"fal, cog","lib":"fa"},"compress":{"id":"fal, compress","lib":"fa"},"comment":{"id":"fal, comment","lib":"fa"},"cube":{"id":"fal, cube","lib":"fa"},"dropbox":{"id":"fab, dropbox","lib":"fa","tags":["sso"]},"ellipsis-v":{"id":"fal, ellipsis-v","lib":"fa","tags":["dots","pünktli"]},"envelope":{"id":"fal, envelope","lib":"fa"},"exclamation":{"id":"fal, exclamation","lib":"fa","tags":["warning"]},"exclamation-circle":{"id":"fal, exclamation-circle","lib":"fa","tags":["warning"]},"external-link":{"id":"fal, external-link","lib":"fa","tags":["external-link"]},"facebook":{"id":"fab, facebook","lib":"fa","tags":["sso"]},"facebook-f":{"id":"fab, facebook-f","lib":"fa","tags":["sso"]},"file":{"id":"fal, file","lib":"fa"},"file-alt":{"id":"fal, file-alt","lib":"fa"},"file-code":{"id":"fal, file-code","lib":"fa"},"file-csv":{"id":"fal, file-csv","lib":"fa"},"file-excel":{"id":"fal, file-excel","lib":"fa"},"file-export":{"id":"fal, file-export","lib":"fa"},"file-import":{"id":"fal, file-import","lib":"fa"},"file-pdf":{"id":"fal, file-pdf","lib":"fa"},"file-spreadsheet":{"id":"fal, file-spreadsheet","lib":"fa"},"filter":{"id":"fal, filter","lib":"fa"},"folder":{"id":"fal, folder","lib":"fa"},"folders":{"id":"fal, folders","lib":"fa","tags":["copy"]},"globe":{"id":"fal, globe","lib":"fa"},"google":{"id":"fab, google","lib":"fa","tags":["sso"]},"horizontal-rule":{"id":"fal, horizontal-rule","lib":"fa"},"id-badge":{"id":"fal, id-badge","lib":"fa"},"info":{"id":"fal, info","lib":"fa"},"laptop-code":{"id":"fal, laptop-code","lib":"fa"},"link":{"id":"fal, link","lib":"fa"},"list":{"id":"fal, list","lib":"fa"},"list-check":{"id":"fal, list-check","lib":"fa"},"lock":{"id":"fal, lock","lib":"fa"},"info-circle":{"id":"fal, info-circle","lib":"fa","tags":["info"]},"mail-bulk":{"id":"fal, mail-bulk","lib":"fa"},"map-marked":{"id":"fal, map-marked","lib":"fa"},"merge":{"id":"fal, merge","lib":"fa"},"microsoft":{"id":"fab, microsoft","lib":"fa","tags":["sso"]},"minus":{"id":"fal, minus","lib":"fa"},"newspaper":{"id":"fal, newspaper","lib":"fa"},"office":{"id":"office","lib":"toc"},"paper-clip":{"id":"fa, paper-clip","lib":"fa"},"pen":{"id":"fal, pen","lib":"fa"},"pen-field":{"id":"fal, pen-field","lib":"fa"},"percent":{"id":"fal, percent","lib":"fa"},"phone":{"id":"fal, phone","lib":"fa"},"phone-laptop":{"id":"fal, phone-laptop","lib":"fa"},"plus":{"id":"fal, plus","lib":"fa","tags":["new"]},"question-circle":{"id":"fal, question-circle","lib":"fa","tags":["help"]},"save":{"id":"fal, save","lib":"fa"},"search":{"id":"fal, search","lib":"fa"},"sitemap":{"id":"fal, sitemap","lib":"fa"},"sort-down":{"id":"fal, sort-down","lib":"fa"},"sort-up":{"id":"fal, sort-up","lib":"fa"},"square":{"id":"fal, square","lib":"fa"},"square-full":{"id":"fas, square-full","lib":"fa"},"square-minus":{"id":"fal, square-minus","lib":"fa"},"square-plus":{"id":"fal, square-plus","lib":"fa"},"star":{"id":"fal, star","lib":"fa","tags":["favorite"]},"star-full":{"id":"fas, star","lib":"fa","tags":["favorite"]},"sync":{"id":"fal, sync","lib":"fa","tags":["refresh"]},"tasks":{"id":"fal, tasks","lib":"fa"},"times":{"id":"fal, times","lib":"fa","tags":["delete","close"]},"times-circle":{"id":"fal, times-circle","lib":"fa","tags":["error"]},"tocco":{"id":"logo","lib":"toc"},"trash":{"id":"fal, trash","lib":"fa","tags":["trash"]},"upload":{"id":"fal, upload","lib":"fa"},"users":{"id":"fal, users","lib":"fa"},"lightbulb-exclamation":{"id":"fal, lightbulb-exclamation","lib":"fa"},"house-blank":{"id":"fal, house-blank","lib":"fa"},"floppy-disk-circle-xmark":{"id":"fal, floppy-disk-circle-xmark","lib":"fa"},"user":{"id":"fal, user","lib":"fa"},"suitcase":{"id":"fal, suitcase","lib":"fa"}}');var x,S;function Z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var E={logo:function(e){return(0,m.jsx)("svg",k(k({height:h()(e,"fontSize",20)},e),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:x||(x=(0,m.jsx)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 \n 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"}))}))},office:function(e){return(0,m.jsx)("svg",k(k({height:h()(e,"fontSize",20)},e),{},{"aria-hidden":"true",role:"img",enableBackground:"new 0 0 2075 2499.8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2075 2499.8",children:S||(S=(0,m.jsx)("path",{fill:"currentColor",d:"m0 2016.6v-1519.8l1344.4-496.8 730.6 233.7v2045.9l-730.6 220.3-1344.4-483.3 1344.4 \n 161.8v-1769.2l-876.8 204.6v1198.3z"}))}))}},D=function(e){var t=e.icon,r=e.style;return E[t](r)};D.propTypes={icon:a().string.isRequired,style:a().object};const C=D;function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var N={fa:function(e,t){return(0,m.jsx)(w,A(A({},t),{},{icon:e.id}))},toc:function(e,t){return(0,m.jsx)(C,A(A({},t),{},{icon:e.id}))}},I=function(e){var t=P[e.icon];if(!t)return null;var r=N[t.lib];return r?r(t,e):null};I.propTypes={icon:a().string.isRequired,style:a().objectOf(a().string)};const T=I},40493:(e,t,r)=>{r.d(t,{q:()=>a});var n,o=r(28655),i=r.n(o),a=r(38205).ZP.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(n||(n=i()([""])))},60558:(e,t,r)=>{r.d(t,{Z:()=>u});var n,o=r(28655),i=r.n(o),a=r(58934),c=r(38205),s=r(30759),l=r(24875);const u=(0,c.ZP)(a.rU)(n||(n=i()(["\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,s.Z)(),l.FS.color("secondary"),l.FS.color("text"),l.FS.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?l.FS.color("text"):l.FS.color("secondaryLight")}),(function(e){return e.neutral?"none":"underline"}))},99694:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(1024);if(947==r.j)var o=r(56746);if(947==r.j)var i=r(24688);var a=r(85893);const c=947==r.j?function(e){var t=e.when,r=e.message;return(0,n.useEffect)((function(){return t&&i.Z.activatePreventFromLeaving(),function(){i.Z.deactivatePreventFromLeaving()}}),[t]),(0,a.jsx)(o.NL,{when:t,message:r})}:null},42756:(e,t,r)=>{if(r.d(t,{Z:()=>o}),947==r.j)var n=r(99694);const o=947==r.j?n.Z:null},46200:(e,t,r)=>{r.d(t,{a:()=>a});var n=r(45697),o=r.n(n),i=r(71392),a=o().oneOf(Object.keys(i.P).map((function(e){return i.P[e]})))},71392:(e,t,r)=>{r.d(t,{P:()=>n});var n={INLINE:"inline",NONE:"none"}},75354:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(13218),o=r.n(n),i=r(66604),a=r.n(i),c=r(17563),s=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 l={fromQueryString:function(e){var t=c.parse(e);return a()(t,(function(e){return s(e)?JSON.parse(e):e}))},toQueryString:function(e){var t=a()(e,(function(e){return o()(e)?JSON.stringify(e):e}));return c.stringify(t)}}},25460:(e,t,r)=>{if(r.d(t,{Z:()=>a}),/^(763|947)$/.test(r.j))var n=r(56746);var o=r(85893),i=function(e){return function(t){if(e.component)return(0,o.jsx)(e.component,{router:t,routes:e.routes});if(e.render){var r={router:t,routes:e.routes};return e.render(r)}}};const a=/^(763|947)$/.test(r.j)?function(e){return(0,o.jsx)(n.AW,{path:e.path,exact:e.exact,render:i(e)})}:null},16274:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(59713),o=r.n(n),i=r(63038),a=r.n(i),c=r(1024),s=r(85893);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){return function(t){var r=(0,c.useState)(null),n=a()(r,2),i=n[0],u=n[1],f=(0,c.useRef)(!0);return(0,c.useEffect)((function(){return e().then((function(e){return f.current?u((function(){return e})):null})),function(){f.current=!1}}),[]),null!==i?(0,s.jsx)(i,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t)):null}}},74397:(e,t,r)=>{if(r.d(t,{U:()=>o}),/^(763|947)$/.test(r.j))var n=r(44759);var o=function(e,t,r){var o=r.key,i=r.actionCreator,a=r.mandatory,c=void 0!==a&&a,s=r.defaultValue,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.Z.logError;if(Object.prototype.hasOwnProperty.call(t,o)||s){var u=i(t[o]||s);e.dispatch(u)}else!0===c&&l("EntityBrowser: Mandatory field '".concat(o,"' not set in input"))}},29441:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(59713),o=r.n(n),i=r(27361),a=r.n(i);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var l={};const u={persistViewInfo:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;l=s(s({},l),{},o()({},e,{level:r,info:s(s({},a()(l,[e,"info"],{})),t)}))},viewInfoSelector:function(e){return a()(l,[e,"info"],{})},clearPersistedViews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;l=s({},Object.keys(l).reduce((function(t,r){var n=l[r];return s(s({},t),n.level<e&&o()({},r,n))}),{}))}}},10683:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(1024),o=r(87533),i={"dms-create-folder":(0,n.lazy)((function(){return Promise.all([r.e(85),r.e(226),r.e(828),r.e(826),r.e(198),r.e(141)]).then(r.bind(r,36340))})),"dms-create-domain":(0,n.lazy)((function(){return Promise.all([r.e(85),r.e(226),r.e(828),r.e(826),r.e(198),r.e(141)]).then(r.bind(r,67210))})),"dms-edit":(0,n.lazy)((function(){return Promise.all([r.e(85),r.e(226),r.e(828),r.e(826),r.e(198),r.e(141)]).then(r.bind(r,90100))})),"dms-move":(0,n.lazy)((function(){return Promise.all([r.e(85),r.e(226),r.e(828),r.e(826),r.e(198),r.e(141)]).then(r.bind(r,4505))})),delete:(0,n.lazy)((function(){return Promise.all([r.e(85),r.e(226),r.e(828),r.e(826),r.e(198),r.e(141)]).then(r.bind(r,96954))}))},a=o.Z.actionFactory(i);const c=/^(763|947)$/.test(r.j)?a:null},57828:(e,t,r)=>{r.d(t,{Z:()=>K});var n,o,i=r(74806),a=r(50558),c=r(20247),s=r(59713),l=r.n(s),u=r(38205),f=r(319),d=r.n(f),p=r(64593),b=r(10535),h=r(28655),y=r.n(h),m=r(58934),v=r(30759),g=r(88601),j=(0,u.iv)(n||(n=y()(["\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,v.Z)(),g.Z.color("text"),g.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 O=(0,u.ZP)(m.rU).withConfig({shouldForwardProp:function(e,t){return!["neutral"].includes(e)&&t(e)}})(o||(o=y()(["\n ","\n"])),j);var w=r(34206),P=r(88162),x=r(85893),S={error:"exclamation-circle",home:"house-blank"},Z=function(e){return S[e]||e};const k=function(e){var t=e.type;return t&&"record"!==t?(0,x.jsx)(P.Z,{icon:Z(t)}):null};var E,D=r(25842);const C=function(){return E||(E=(0,x.jsx)(D.sG,{breakWords:!0,children:(0,x.jsx)(P.Z,{icon:"chevron-right"})}))};var F;function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){l()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var I=function(e){return e.title||e.display},T=function(e,t){if(!e||0===e.length)return"Tocco";var r=e.at(-1),n="";switch(r.type){case"create":n="".concat(I(r)," - ").concat(t);break;case"detail":n=e.slice(e.length-2).map(I).join(" - ");break;default:n=I(r)}return n},R=function(e){var t,r=e.intl,n=e.pathPrefix,o=e.breadcrumbsInfo,i=void 0===o?[]:o,a=e.currentView,c=e.backgroundColor,s=e.onClick,l=e.linkComp,u=[].concat(d()(i),d()(a?[a]:[]));if(0===u.length)return null;var f,h=u.map((function(e,r){var o,i=e.display||"",a=r===u.length-1?D.fu:D.q1,c=r===u.length-1&&{active:"true"},f=void 0!==e.path?{to:"".concat(n,"/").concat(e.path)}:{},d=l?t||(t=(0,x.jsx)(l,{})):F||(F=(0,x.jsx)(O,{}));return(0,x.jsx)(w.ZP.Span,{children:(0,x.jsx)(D.WV,{children:(0,x.jsxs)(a,N(N(N({neutral:!0},c),f),{},{onClick:(o=e,function(){s&&s(o)}),component:d,children:[(0,x.jsx)(k,{type:e.type}),(0,x.jsx)("span",{dangerouslySetInnerHTML:{__html:b.Z.sanitizeHtml(i)}})]}))})},"breadcrumbItem-".concat(r))})).reduce((function(e,t,r){return[e,(0,x.jsx)(C,{},"icon".concat(r)),t]}));return(0,x.jsxs)(D.nC,{backgroundColor:c,children:[(0,x.jsx)(p.q,{defer:!1,children:(0,x.jsx)("title",{children:T(u,(f="client.component.breadcrumbs.createTitle",r.formatMessage({id:f})))})}),(0,x.jsx)(x.Fragment,{children:h})]})};R.defaultProps={pathPrefix:""};const L=R,B=(0,i.ZP)(L);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){l()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const z=(0,u.Zz)((function(e){var t=e.embedded,r=e.resetSearchMode,n=e.theme,o=e.pathPrefix,i=e.breadcrumbsInfo;return(0,x.jsx)(B,M(M({},t?{backgroundColor:g.Z.color("paper")({theme:n})}:{}),{},{onClick:function(e){""===e.path&&r()},pathPrefix:o,breadcrumbsInfo:i}))}));function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach((function(t){l()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var q=function(e){return(0,x.jsx)("span",W({},e))};const H=(0,u.Zz)((function(e){var t=e.embedded,r=e.navigate,n=e.resetSearchMode,o=e.theme,i=e.pathPrefix,a=e.breadcrumbsInfo;return(0,x.jsx)(B,W(W({},t?{backgroundColor:g.Z.color("paper")({theme:o})}:{}),{},{onClick:function(e){""===e.path&&n(),r("/docs/".concat(e.path))},linkComp:q,pathPrefix:i,breadcrumbsInfo:a}))}));var U={},$=function(e){return{pathPrefix:"/docs",breadcrumbsInfo:e.docs.path.breadcrumbs,embedded:e.input.embedded}},Y=(0,a.connect)($,U)((0,i.ZP)(z)),G=(0,a.connect)($,U)((0,i.ZP)(H));const K=(0,c.U)({routerless:G,router:Y})},59794:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(20247),o=r(27920),i=r(51811),a=r(85893);const c=function(e){var t=e.params,r=e.navigationStrategy,n=e.handleSearchChange,c=e.emitAction,s=e.openFileDialog,l=e.searchMode,u=e.docsKey,f=t.model,d=t.view;return"doc"===f&&"detail"===d?(0,a.jsx)(i.Z,{navigationStrategy:r}):(0,a.jsx)(o.Z,{navigationStrategy:r,onSearchChange:n,emitAction:c,openFileDialog:s,searchMode:l},u)};var s=r(56746);const l=function(e){var t,r,n=e.navigationStrategy,c=e.handleSearchChange,l=e.emitAction,u=e.openFileDialog,f=e.searchMode,d=e.docsKey;return(0,a.jsxs)(s.rs,{children:[(0,a.jsx)(s.AW,{exact:!0,path:"/docs/doc/:key/detail",render:function(){return t||(t=(0,a.jsx)(i.Z,{navigationStrategy:n}))}}),(0,a.jsx)(s.AW,{exact:!0,path:["/docs/:model/:key/list","/docs"],render:function(){return r||(r=(0,a.jsx)(o.Z,{navigationStrategy:n,onSearchChange:c,emitAction:l,openFileDialog:u,searchMode:f},d))}})]})},u=(0,n.U)({routerless:c,router:l})},63344:(e,t,r)=>{r.d(t,{Z:()=>O});var n=r(74806),o=r(50558),i=r(50600),a=r(32388),c=r(97876),s=r(20247),l=r(63038),u=r.n(l),f=r(1024),d=r(19743),p=r(29441),b=r(93205),h=r(57828),y=r(59794),m=r(55365),v=r(85893);const g=function(e){var t=e.navigate,r=e.path,n=e.searchMode,o=e.navigationStrategy,i=e.setSearchMode,a=e.loadBreadcrumbs,c=e.emitAction,s=e.openFileDialog,l=e.noLeftPadding,g=e.scrollBehaviour,j=e.listenHistory,O=(0,f.useReducer)((function(e){return e+1}),0),w=u()(O,2),P=w[0],x=w[1],S=(0,f.useRef)(n);S.current=n,(0,f.useEffect)((function(){a(r)})),(0,f.useEffect)((function(){return j((function(e,t){(0,b.Z)(r)&&n&&"POP"===t&&Z()}))}));var Z=function(){S.current&&(p.Z.clearPersistedViews(),i(!1),a(r),x())},k="docs-view-".concat(P);return(0,v.jsxs)(m.SD,{scrollBehaviour:g,children:[(0,v.jsx)(d.Z.ErrorBoundary,{children:(0,v.jsx)(m.nC,{noLeftPadding:l,children:(0,v.jsx)(h.Z,{resetSearchMode:Z})})}),(0,v.jsx)(m.Hz,{scrollBehaviour:g,children:(0,v.jsx)(y.Z,{navigationStrategy:o,handleSearchChange:function(e){e.query&&e.query.hasUserChanges?(i(!0),t("/docs/"),a(r)):(0,b.Z)(r)&&Z()},emitAction:c,openFileDialog:s,searchMode:n,docsKey:k})})]})};var j={loadBreadcrumbs:c.ri,setSearchMode:c.Vb,emitAction:function(e){return i.Z.dispatchEmittedAction(e)},openFileDialog:a.G3};const O=(0,s.U)((0,o.connect)((function(e){return{searchMode:e.docs.path.searchMode,navigationStrategy:e.input.navigationStrategy,noLeftPadding:e.input.noLeftPadding,scrollBehaviour:e.input.scrollBehaviour}}),j)((0,n.ZP)(g)))},55365:(e,t,r)=>{r.d(t,{Hz:()=>f,SD:()=>u,nC:()=>d});var n,o,i,a=r(28655),c=r.n(a),s=r(38205),l=r(11347),u=s.ZP.div.withConfig({displayName:"StyledWrapper"})(n||(n=c()(["\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%;"})),f=s.ZP.div.withConfig({displayName:"StyledContent"})(o||(o=c()(["\n grid-area: content;\n ","\n ","\n"])),(function(e){return"inline"===e.scrollBehaviour&&"overflow-x: hidden;"}),l.C),d=s.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(i||(i=c()(["\n grid-area: breadcrumbs;\n ","\n"])),(function(e){return e.noLeftPadding&&"\n > div {\n padding-left: 0;\n }\n "}))},27920:(e,t,r)=>{r.d(t,{Z:()=>x});var n,o,i=r(74806),a=r(50558),c=r(87578),s=r(20247),l=r(63038),u=r.n(l),f=r(1024),d=r.n(f),p=r(50258),b=r(88162),h=r(29441),y=r(93205),m=r(10683),v=r(46002),g=r(75130),j=r(85893),O=d().lazy((function(){return Promise.all([r.e(85),r.e(226),r.e(828),r.e(826),r.e(141)]).then(r.bind(r,77840))}));const w=function(e){var t=e.domainTypes,r=e.rootNodes,i=e.navigationStrategy,a=e.changeListParent,c=e.onSearchChange,s=e.emitAction,l=e.openFileDialog,d=e.limit,w=e.searchFormType,P=e.selectionStyle,x=e.selection,S=e.selectionFilterFn,Z=e.getCustomLocation,k=e.disableViewPersistor,E=e.getListFormName,D=e.domainDetailFormName,C=e.folderDetailFormName,F=e.showActions,A=e.scrollBehaviour,N=e.sortable,I=e.searchMode,T=e.openResource,R=e.searchFormCollapsed,L=e.locale,B=e.changeSelection,_=e.changeSearchFormCollapsed,M=e.params,z=e.navigate,V=e.path,W=(0,f.useReducer)((function(e){return e+1}),0),q=u()(W,2),H=q[0],U=q[1],$="entity-list-".concat(H),Y=(0,f.useState)([]),G=u()(Y,2),K=G[0],J=G[1],Q=x||K,X=(0,f.useMemo)((function(){return function(e){if(e&&e.model){var t=e.model.charAt(0).toUpperCase()+e.model.slice(1),r=e.key;return{model:"Docs_list_item",key:"".concat(t,"/").concat(r)}}return null}(M)}),[M]),ee=!X&&r?r.map((function(e){return"".concat(e.entityName,"/").concat(e.key)})):null,te=(0,f.useMemo)((function(){return E?E(X,ee):function(e,t){return e?"Docs_list_item":t?"Root_docs_list_item_specific":"Root_docs_list_item"}(X,ee)}),[X,ee,E]),re=(0,f.useRef)(!1),ne=(0,f.useRef)(I),oe=(0,f.useRef)(V);ne.current=I,oe.current=V,(0,f.useEffect)((function(){return re.current=!0,function(){return re.current=!1}})),(0,f.useEffect)((function(){a(X),J([])}),[X,a]);var ie=function(e){J(e),B(e)},ae=function(){if(!h.Z.viewInfoSelector("search").store){var e=h.Z.viewInfoSelector($).store;h.Z.persistViewInfo("search",{store:e})}U()},ce=X||ee?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),se=function(){if(!k)return(0,y.Z)(V)?h.Z.viewInfoSelector("search").store:null}();return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(f.Suspense,{fallback:n||(n=(0,j.jsx)(p.Z,{})),children:(0,j.jsx)(O,{id:"documents",entityName:"Docs_list_item",formName:te,searchListFormName:"Search_docs_list_item",limit:d||25,onRowClick:function(e){var t=e.id;I&&(0,y.Z)(V)&&ae();var r=t.split("/"),n=u()(r,2),o=n[0],i=n[1],a=Z?Z(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);a?T&&"Resource"===o?T(a):z(a):ie([t])},searchFormPosition:"left",searchFormType:w||"admin",parent:X,onSearchChange:function(e){re.current&&(e.query&&e.query.hasUserChanges&&ae(),c(e))},store:se,onStoreCreate:function(e){k||h.Z.persistViewInfo($,{store:e})},cellRenderers:{"dms-label-with-icon":function(e,t,r){return(0,j.jsxs)(g.H,{children:[(0,j.jsx)(g.M,{children:(0,j.jsx)(b.Z,{icon:e.icon})}),(0,j.jsx)("span",{children:r(t.children[0])})]})},"dms-actions":function(e,t,r){return(0,j.jsx)(g.H,{children:t.children.filter((function(t){return!t.dmsEntityModel||t.dmsEntityModel===e.type})).map((function(e){return r(e)}))})}},emitAction:s,actionAppComponent:m.Z,contextParams:{detailFormNames:{Domain:D,Folder:C}},customActions:{"upload-document":function(e,t,r,n,o,i,a){l(!1,i,a)},"upload-directory":function(e,t,r,n,o,i,a){l(!0,i,a)}},navigationStrategy:i,tql:ce,keys:ee,selectionStyle:P||"multi_explicit",onSelectChange:ie,selection:Q,selectionFilterFn:S,showActions:F,sortable:N,searchFormCollapsed:R,scrollBehaviour:A,onSearchFormCollapsedChange:_,locale:L},$)}),o||(o=(0,j.jsx)(v.Z,{}))]})};var P={changeListParent:c.C,changeSelection:c.Wp,changeSearchFormCollapsed:c.S7};const x=(0,s.U)((0,a.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}}),P)((0,i.ZP)(w)))},75130:(e,t,r)=>{r.d(t,{H:()=>l,M:()=>u});var n,o,i=r(28655),a=r.n(i),c=r(38205),s=r(7281),l=c.ZP.div.withConfig({displayName:"StyledContentWrapper"})(n||(n=a()(["\n display: flex;\n align-items: center;\n"]))),u=c.ZP.span.withConfig({displayName:"StyledIconWrapper"})(o||(o=a()(["\n font-size: ",";\n display: inline-block;\n margin-right: ",";\n"])),s.Z.font(1),s.Z.space(-2))},51811:(e,t,r)=>{r.d(t,{Z:()=>m});var n,o=r(74806),i=r(50558),a=r(50600),c=r(20247),s=r(1024),l=r.n(s),u=r(50258),f=r(10683),d=r(63401),p=r(85893),b=l().lazy((function(){return Promise.all([r.e(85),r.e(226),r.e(828),r.e(826),r.e(198),r.e(141)]).then(r.bind(r,82445))}));const h=function(e){var t=e.breadcrumbs,r=e.formName,o=e.navigationStrategy,i=e.locale,a=e.emitAction,c=e.navigate,l=e.params;return(0,p.jsx)(d.B,{children:(0,p.jsx)(s.Suspense,{fallback:n||(n=(0,p.jsx)(u.Z,{})),children:(0,p.jsx)(b,{entityName:"Resource",entityId:l.key,formName:r||"DmsResource",mode:"update",actionAppComponent:f.Z,navigationStrategy:o,emitAction:a,onEntityDeleted:function(){var e=t.slice().reverse().find((function(e){return"list"===e.type})),r="/docs/".concat(e.path);c(r)},locale:i})})})};var y={emitAction:function(e){return a.Z.dispatchEmittedAction(e)}};const m=(0,c.U)((0,i.connect)((function(e){return{breadcrumbs:e.docs.path.breadcrumbs,formName:e.input.documentDetailFormName,locale:e.intl.locale}}),y)((0,o.ZP)(h)))},63401:(e,t,r)=>{r.d(t,{B:()=>l});var n,o=r(28655),i=r.n(o),a=r(38205),c=r(88601),s=r(7281),l=a.ZP.div.withConfig({displayName:"StyledDocumentViewWrapper"})(n||(n=i()(["\n height: 100%;\n background-color: ",";\n padding-left: ",";\n overflow-y: hidden;\n"])),c.Z.color("paper"),s.Z.space(.5))},46002:(e,t,r)=>{r.d(t,{Z:()=>b});var n=r(50558),o=r(32388),i=r(20247),a=r(59713),c=r.n(a),s=r(1024),l=r(35997),u=r(85893);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const d=function(e){var t=e.instanceCount,r=e.directory,n=e.onChange,o=e.path,i=(0,s.useRef)(),a=l.Z.usePrevious(t);(0,s.useEffect)((function(){i.current&&t>a&&i.current.click()}));return(0,u.jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({type:"file",ref:i,style:{display:"none"},onChange:function(e){var t=e.target.files;t&&t.length>0&&n&&n(o,t,r),e.target.value=null},multiple:!0},r?{webkitdirectory:"true",directory:"true"}:{}))};var p={onChange:o.kJ};const b=(0,i.U)((0,n.connect)((function(e){return{instanceCount:e.docs.create.dialog.instanceCount,directory:e.docs.create.dialog.directory}}),p)(d))},46169:(e,t,r)=>{r.d(t,{l2:()=>it,ZP:()=>ot});var n,o,i=r(59713),a=r.n(i),c=r(52540),s=r(45697),l=r.n(s),u=r(50600),f=r(68803),d=r(87533),p=r(22731),b=r(19743),h=r(19241),y=r(30604),m=r(81749),v=r(13025),g=r(46200),j=r(65378),O=r(23369),w=r(1024),P=r(1317),x=r(63344),S=r(85893);const Z=(0,P.w)((function(e){var t=e.handleNotifications,r=e.rootPath,i=e.navigate,a=e.path;return(0,w.useEffect)((function(){(!a||"/"===a||"/docs"===a)&&r!==a&&i(r)}),[r,a,i]),(0,S.jsxs)(S.Fragment,{children:[t&&(n||(n=(0,S.jsx)(y.Z.Notifications,{}))),o||(o=(0,S.jsx)(x.Z,{}))]})}));var k,E,D=r(56746);const C=function(e){var t=e.rootPath,r=e.handleNotifications;return(0,S.jsxs)(S.Fragment,{children:[r&&(k||(k=(0,S.jsx)(y.Z.Notifications,{}))),E||(E=(0,S.jsx)(x.Z,{})),(0,S.jsx)(D.AW,{exact:!0,path:"/",children:(0,S.jsx)(D.l_,{to:t})}),"/docs"!==t&&(0,S.jsx)(D.AW,{exact:!0,path:"/docs",children:(0,S.jsx)(D.l_,{to:t})})]})};var F,A;const N=function(e){var t=e.rootPath,r=e.handleNotifications,n=e.history;return(0,S.jsxs)(D.F0,{history:n,children:[r&&(F||(F=(0,S.jsx)(y.Z.Notifications,{}))),A||(A=(0,S.jsx)(x.Z,{})),(0,S.jsx)(D.AW,{exact:!0,path:"/",children:(0,S.jsx)(D.l_,{to:t})}),"/docs"!==t&&(0,S.jsx)(D.AW,{exact:!0,path:"/docs",children:(0,S.jsx)(D.l_,{to:t})})]})};var I=r(15857),T=r(87757),R=r.n(T),L=r(34857),B=r(32401),_=r(81719),M=r(44759),z=r(28721),V=r(80722),W=r(32388),q=R().mark(J),H=R().mark(Q);function U(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return $(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Y=function(e){return e.docs.create.dialog},G=function(e,t){return e.intl.messages[t]};function K(e){var t=e.payload,r=t.location,n=t.files,o=t.isDirectory;return R().mark((function e(){var t,i,a,c,s,l,u,f;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.RE)(z.Z);case 2:return t=e.sent,i="client.docs-browser.uploadInProgress",o?i="client.docs-browser.uploadInProgressDirectory":n.length>1&&(i="client.docs-browser.uploadInProgressMultiple"),e.next=7,(0,L.gz)(y.Z.blockingInfo(t,i,null));case 7:return e.next=9,(0,L.Ys)(Y);case 9:return a=e.sent,c=a.onSuccess,s=a.onError,e.prev=12,e.next=15,(0,L.RE)(J,r,n);case 15:if(403!==(l=e.sent).status){e.next=30;break}return e.next=19,(0,L.gz)(y.Z.removeBlockingInfo(t));case 19:return e.t0=s,e.next=22,(0,L.Ys)(G,"client.entity-detail.saveAbortedTitle");case 22:return e.t1=e.sent,e.next=25,(0,L.Ys)(G,"client.docs-browser.failedNoPermission");case 25:e.t2=e.sent,e.t3={title:e.t1,message:e.t2},(0,e.t0)(e.t3),e.next=55;break;case 30:if(413!==l.status){e.next=44;break}return e.next=33,(0,L.gz)(y.Z.removeBlockingInfo(t));case 33:return e.t4=s,e.next=36,(0,L.Ys)(G,"client.entity-detail.saveAbortedTitle");case 36:return e.t5=e.sent,e.next=39,(0,L.Ys)(G,"client.docs-browser.failedTooLarge");case 39:e.t6=e.sent,e.t7={title:e.t5,message:e.t6},(0,e.t4)(e.t7),e.next=55;break;case 44:return u=[{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}}))}}],e.next=47,(0,L.gz)(y.Z.removeBlockingInfo(t));case 47:return f=o?"client.docs-browser.uploadSuccessfulDirectory":"client.docs-browser.uploadSuccessful",e.t8=c,e.next=51,(0,L.Ys)(G,f);case 51:e.t9=e.sent,e.t10=u,e.t11={title:e.t9,remoteEvents:e.t10},(0,e.t8)(e.t11);case 55:e.next=68;break;case 57:return e.prev=57,e.t12=e.catch(12),M.Z.logError("Failed to upload files",e.t12),e.next=62,(0,L.gz)(y.Z.removeBlockingInfo(t));case 62:return e.t13=s,e.next=65,(0,L.Ys)(G,"client.docs-browser.uploadFailed");case 65:e.t14=e.sent,e.t15={title:e.t14},(0,e.t13)(e.t15);case 68:case"end":return e.stop()}}),e,null,[[12,57]])}))()}function J(e,t){var r,n,o,i,a,c,s;return R().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(r=(0,V.Z)(e)){l.next=3;break}return l.abrupt("return");case 3:n=new FormData,o=U(t);try{for(o.s();!(i=o.n()).done;)a=i.value,n.append("files[]",a)}catch(e){o.e(e)}finally{o.f()}return c="documents/".concat(r.model,"/").concat(r.key),s={method:"POST",body:n,acceptedStatusCodes:[403,413]},l.next=10,(0,L.RE)(_.Z.requestSaga,c,s);case 10:return l.abrupt("return",l.sent);case 11:case"end":return l.stop()}}),q)}function Q(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.$6)([(0,L.ib)(W.H$,K)]);case 2:case"end":return e.stop()}}),H)}var X=R().mark(ee);function ee(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.$6)([(0,L.rM)(Q)]);case 2:case"end":return e.stop()}}),X)}const te=B.Z;var re=r(87578),ne=R().mark(ce);function oe(e){var t=e.payload;return R().mark((function e(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.gz)(h.Z.fireExternalEvent("onListParentChange",t.parent));case 2:case"end":return e.stop()}}),e)}))()}function ie(e){var t=e.payload;return R().mark((function e(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.gz)(h.Z.fireExternalEvent("onSelectChange",t.selection));case 2:case"end":return e.stop()}}),e)}))()}function ae(e){var t=e.payload;return R().mark((function e(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.gz)(h.Z.fireExternalEvent("onSearchFormCollapsedChange",t.collapsed));case 2:case"end":return e.stop()}}),e)}))()}function ce(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.$6)([(0,L.Fm)(re.sI,oe),(0,L.Fm)(re.Ap,ie),(0,L.Fm)(re.Sv,ae)]);case 2:case"end":return e.stop()}}),ne)}var se=r(97223),le=r(6756),ue=r(30081),fe=R().mark(ye),de=R().mark(me),pe=function(e){return e.docs.move.input},be=function(e,t){return e.intl.messages[t]};function he(e){var t=e.payload;return R().mark((function e(){var r,n,o,i,a;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="documents/move",n={method:"POST",acceptedStatusCodes:[400,403],body:{targetEntityKey:t.target,selectedEntityKeys:t.selected}},e.next=4,(0,L.gz)(ue.p0(!0));case 4:return e.next=6,(0,L.RE)(_.Z.requestSaga,r,n);case 6:if(204!==(o=e.sent).status){e.next=12;break}return e.next=10,(0,L.RE)(ye);case 10:e.next=19;break;case 12:return e.next=14,(0,L.gz)(ue.p0(!1));case 14:return a="client.actions.dms-move.failed.message","VALIDATION_FAILED"===(null===(i=o.body)||void 0===i?void 0:i.errorCode)&&(a=le.Z.getErrorCompact(o.body.errors)),403===o.status&&(a="client.docs-browser.failedNoPermission"),e.next=19,(0,L.gz)(y.Z.toaster({type:"error",title:"client.actions.dms-move.failed.title",body:a}));case 19:case"end":return e.stop()}}),e)}))()}function ye(){var e,t,r,n;return R().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,L.Ys)(pe);case 2:return e=o.sent,t=e.selection,r=e.onSuccess,n=[{type:"entity-update-event",payload:{entities:t.ids.map((function(e){return{entityName:"Docs_list_item",key:e}}))}}],o.t0=r,o.next=9,(0,L.Ys)(be,"client.docs-browser.moveSuccessful");case 9:return o.t1=o.sent,o.t2=n,o.t3={title:o.t1,remoteEvents:o.t2},(0,o.t0)(o.t3),o.next=15,(0,L.gz)(ue.xv());case 15:case"end":return o.stop()}}),fe)}function me(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.$6)([(0,L.Fm)(ue.uI,he)]);case 2:case"end":return e.stop()}}),de)}var ve=R().mark(ge);function ge(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.$6)([(0,L.rM)(me)]);case 2:case"end":return e.stop()}}),ve)}const je=se.Z;var Oe=r(60955),we=r(97876),Pe=R().mark(De),xe=R().mark(Fe),Se=R().mark(Ae),Ze=function(e,t){return e.intl.messages[t]||t},ke=function(e){return e.docs.path},Ee=function(e){return e.input.rootNodes};function De(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.Ys)(Ze,"client.docs-browser.breadcrumbs.start");case 2:return e.t0=e.sent,e.t1={display:e.t0,path:"",type:"list"},e.next=6,(0,L.Ys)(Ze,"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()}}),Pe)}function Ce(e){var t=e.payload.location;return R().mark((function e(){var r,n,o,i,a;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,V.Z)(t),e.next=3,(0,L.Ys)(ke);case 3:if(!e.sent.searchMode||r){e.next=10;break}return e.next=7,(0,L.RE)(De);case 7:n=e.sent,e.next=20;break;case 10:return o=r?"documents/".concat(r.model,"/").concat(r.key,"/breadcrumbs"):"documents/breadcrumbs",e.next=13,(0,L.RE)(Fe);case 13:return e.t0=e.sent,e.t1={rootnodes:e.t0},i={queryParams:e.t1},e.next=18,(0,L.RE)(_.Z.requestSaga,o,i);case 18:a=e.sent,n=a.body.breadcrumbs;case 20:return e.next=22,(0,L.gz)(we.pz(n));case 22:case"end":return e.stop()}}),e)}))()}function Fe(){var e;return R().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,L.Ys)(Ee);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()}}),xe)}function Ae(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.$6)([(0,L.Fm)(we.jK,Ce)]);case 2:case"end":return e.stop()}}),Se)}var Ne=R().mark(Ie);function Ie(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.$6)([(0,L.rM)(Ae)]);case 2:case"end":return e.stop()}}),Ne)}const Te=Oe.Z;var Re=r(77917),Le=r(90655);function Be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Be(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r(81770),r(24688),r(16274),r(74397);var Me=r(25460);Me.Z;const ze=function(e,t){var r=[],n=(0,Le.Bo)(e,r).exec(t);return null!==n?r.reduce((function(e,t,r){return _e(_e({},e),{},a()({},t.name,n[r+1]))}),{}):null};var Ve=r(40602),We=R().mark(He);function qe(e){var t=e.payload.path;return R().mark((function e(){var r;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=ze("/docs/:model/:key/:view(list|detail)",t)||{},e.next=3,(0,L.gz)(Ve.PX(r));case 3:case"end":return e.stop()}}),e)}))()}function He(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.$6)([(0,L.Fm)(Ve.RK,qe)]);case 2:case"end":return e.stop()}}),We)}var Ue=R().mark($e);function $e(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.$6)([(0,L.rM)(He)]);case 2:case"end":return e.stop()}}),Ue)}const Ye=Re.Z,Ge={docs:(0,I.UY)({path:Te,create:te,move:je,routing:Ye})};var Ke=[Ie,ee,ce,ge,$e];function Je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Je(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Xe="docs-browser",et=["onListParentChange","openResource","onSelectChange","onSearchFormCollapsedChange"],tt=function(e){var t=e.routerType,r=e.store,n=e.rootPath,o=e.handleNotifications;if("routerless"===t)return(0,S.jsx)(Z,{rootPath:n,handleNotifications:o});if("inherit"===t)return(0,S.jsx)(C,{rootPath:n,handleNotifications:o});var i=function(e){return(0,c.Z)({getUserConfirmation:function(t,r){var n,o,i=(n=e.getState(),o="client.common.ok",n.intl.messages[o]||o),a=y.Z.confirm("",t,i,(function(){return r(!0)}),(function(){return r(!1)}));e.dispatch(a)}})}(r);return(0,S.jsx)(N,{history:i,rootPath:n,handleNotifications:o})},rt=function(e,t,r,n){var o=f.Z.createStore(Ge,Ke,Qe(Qe({},{scrollBehaviour:"inline"}),t),Xe);O.Z.setInputEnvs(t),h.Z.addToStore(o,(function(e){return f.Z.getEvents(et,e.input)})),u.Z.addToStore(o),d.Z.dynamicActionsAddToStore(o),b.Z.addToStore(o,!0,["console","remote","notification"]);var i=!r.emitAction;y.Z.addToStore(o,i),p.Z.addToStore(o);var a=Array.isArray(t.rootNodes)&&1===t.rootNodes.length&&"Resource"!==t.rootNodes[0].entityName?t.rootNodes[0]:null,c=a?"/docs/".concat(a.entityName.toLowerCase(),"/").concat(a.key,"/list"):"/docs",s=tt({routerType:t.routerType,store:o,rootPath:c,handleNotifications:i});return f.Z.createApp(Xe,s,o,{input:t,events:r,actions:[(0,Ve.c4)(t.initialLocation)],publicPath:n,textResourceModules:["component","common","actions","entity-list","entity-detail",Xe]})},nt=function(e){return f.Z.useApp({initApp:rt,props:e,packageName:Xe,externalEvents:et}).component};nt.propTypes=Qe({routerType:l().oneOf(["standalone","inherit","routerless"]),navigationStrategy:l().object,domainTypes:l().arrayOf(l().string),rootNodes:l().arrayOf(l().shape({entityName:l().string,key:l().string})),initialLocation:l().string,listLimit:l().number,documentDetailFormName:l().string,searchFormType:m.b,selectionStyle:v.l,selectionFilterFn:l().func,selection:l().arrayOf(l().string),scrollBehaviour:g.a,getListFormName:l().func,disableViewPersistor:l().bool,getCustomLocation:l().func,businessUnit:l().string,searchFormCollapsed:l().bool,backendUrl:l().string,appContext:j.Z.propTypes},et.reduce((function(e,t){return e[t]=l().func,e}),{}));const ot=nt;var it=f.Z.createBundleableApp(Xe,rt,nt)},32388:(e,t,r)=>{r.d(t,{G3:()=>i,H$:()=>o,kJ:()=>a,nb:()=>n});var n="docs/create/OPEN_DIALOG",o="docs/create/FILES_SELECTED",i=function(e,t,r){return{type:n,payload:{directory:e,onSuccess:t,onError:r}}},a=function(e,t,r){return{type:o,payload:{location:e,files:t,isDirectory:r}}}},32401:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(59713),o=r.n(n),i=r(32388);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s=o()({},i.nb,(function(e,t){var r=t.payload,n=r.directory,o=r.onSuccess,i=r.onError;return c(c({},e),{},{dialog:{instanceCount:e.dialog.instanceCount+1,directory:n,onSuccess:o,onError:i}})})),l={dialog:{instanceCount:0,directory:!1,onSuccess:null,onError:null}};function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0,r=s[t.type];return r?r(e,t):e}},87578:(e,t,r)=>{r.d(t,{Ap:()=>o,C:()=>a,S7:()=>s,Sv:()=>i,Wp:()=>c,sI:()=>n});var n="docs/list/CHANGE_LIST_PARENT",o="docs/list/CHANGE_SELECTION",i="docs/list/CHANGE_SEARCH_FORM_COLLAPSED",a=function(e){return{type:n,payload:{parent:e}}},c=function(e){return{type:o,payload:{selection:e}}},s=function(e){return{type:i,payload:{collapsed:e}}}},30081:(e,t,r)=>{r.d(t,{F$:()=>a,FV:()=>i,j2:()=>c,p0:()=>l,qh:()=>n,uI:()=>o,w6:()=>s,xv:()=>u});var n="docs/move/INITIALIZE",o="docs/move/MOVE_ELEMENTS",i="docs/move/SET_WAITING",a="docs/move/CLOSE",c=function(e,t,r){return{type:n,payload:{selection:e,onSuccess:t,onError:r}}},s=function(e,t){return{type:o,payload:{target:e,selected:t}}},l=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:i,payload:{isWaiting:e}}},u=function(){return{type:a}}},97223:(e,t,r)=>{r.d(t,{Z:()=>d});var n,o=r(59713),i=r.n(o),a=r(81770),c=r(30081);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u=(n={},i()(n,c.qh,(function(e,t){var r=t.payload,n=r.selection,o=r.onSuccess,i=r.onError;return l(l({},e),{},{input:{selection:n,onSuccess:o,onError:i}})})),i()(n,c.FV,a.Z.singleTransferReducer("isWaiting")),i()(n,c.F$,(function(){return l({},f)})),n),f={isWaiting:!1,input:{selection:null,onSuccess:null,onError:null}};function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1?arguments[1]:void 0,r=u[t.type];return r?r(e,t):e}},97876:(e,t,r)=>{r.d(t,{VD:()=>i,Vb:()=>s,Xc:()=>o,jK:()=>n,pz:()=>c,ri:()=>a});var n="docs/path/LOAD_BREADCRUMBS",o="docs/path/SET_BREADCRUMBS",i="docs/path/SET_SEARCH_MODE",a=function(e){return{type:n,payload:{location:e}}},c=function(e){return{type:o,payload:{breadcrumbs:e}}},s=function(e){return{type:i,payload:{searchMode:e}}}},60955:(e,t,r)=>{r.d(t,{Z:()=>u});var n,o=r(59713),i=r.n(o),a=r(81770),c=r(97876),s=(n={},i()(n,c.Xc,a.Z.singleTransferReducer("breadcrumbs")),i()(n,c.VD,a.Z.singleTransferReducer("searchMode")),n),l={breadcrumbs:[],searchMode:!1};function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0,r=s[t.type];return r?r(e,t):e}},40602:(e,t,r)=>{r.d(t,{PX:()=>a,RK:()=>n,Sb:()=>o,c4:()=>i});var n="docs/routing/NAVIGATE",o="docs/routing/SET_PARAMS",i=function(e){return{type:n,payload:{path:e||""}}},a=function(e){return{type:o,payload:{params:e}}}},77917:(e,t,r)=>{r.d(t,{Z:()=>u});var n,o=r(59713),i=r.n(o),a=r(81770),c=r(40602),s=(n={},i()(n,c.RK,a.Z.singleTransferReducer("path")),i()(n,c.Sb,a.Z.singleTransferReducer("params")),n),l={path:"",params:{}};function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0,r=s[t.type];return r?r(e,t):e}},80722:(e,t,r)=>{r.d(t,{Z:()=>i});var n=/^\/docs\/doc\/(\d+)\/detail$/,o=/^\/docs\/(domain|folder)\/(\d+)\/list$/;const i=function(e){return function(e){var t=n.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)}},93205:(e,t,r)=>{r.d(t,{Z:()=>o});var n=/^\/docs\/?$/;const o=function(e){return n.test(e)}},1317:(e,t,r)=>{r.d(t,{C:()=>b,w:()=>p});var n=r(59713),o=r.n(n),i=r(50558);if(/^(763|947)$/.test(r.j))var a=r(56746);var c=r(40602),s=r(85893);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var f=function(){return function(){}},d={navigate:c.c4},p=(0,i.connect)((function(e){return{path:e.docs.routing.path,params:e.docs.routing.params,listenHistory:f}}),d),b=function(e){return function(t){var r=(0,a.TH)(),n=(0,a.k6)(),o=(0,a.UO)();return(0,s.jsx)(e,u(u({},t),{},{path:r.pathname,navigate:n.push,params:o,listenHistory:n.listen}))}}},20247:(e,t,r)=>{r.d(t,{U:()=>b});var n=r(59713),o=r.n(n),i=r(6479),a=r.n(i),c=r(50558);if(/^(763|947)$/.test(r.j))var s=r(1317);var l=r(85893),u=/^(763|947)$/.test(r.j)?["compProviderRouterType"]:null;function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p=function(e){return{compProviderRouterType:e.input.routerType}},b=function(e){var t=e.routerless,r=e.router,n=t?(0,s.w)(t):(0,s.w)(e),o=r?(0,s.C)(r):(0,s.C)(e);return(0,c.connect)(p)((function(e){var t=e.compProviderRouterType,r=a()(e,u);return"routerless"===t?(0,l.jsx)(n,d({},r)):(0,l.jsx)(o,d({},r))}))}},76330:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(1024);if(947==r.j)var o=r(87533);var i={copy:(0,n.lazy)((function(){return Promise.all([r.e(85),r.e(141),r.e(828),r.e(198),r.e(107)]).then(r.bind(r,12751))})),delete:(0,n.lazy)((function(){return Promise.all([r.e(85),r.e(141),r.e(828),r.e(198),r.e(107)]).then(r.bind(r,32454))})),export:(0,n.lazy)((function(){return Promise.all([r.e(85),r.e(141),r.e(828),r.e(198),r.e(107)]).then(r.bind(r,23458))})),"input-edit":(0,n.lazy)((function(){return Promise.all([r.e(85),r.e(141),r.e(828),r.e(198),r.e(107)]).then(r.bind(r,93137))})),"subscribe-calendar":(0,n.lazy)((function(){return Promise.all([r.e(85),r.e(141),r.e(828),r.e(198),r.e(107)]).then(r.bind(r,80634))})),"mailing-list-mail-action":(0,n.lazy)((function(){return Promise.all([r.e(85),r.e(141),r.e(828),r.e(198),r.e(107)]).then(r.bind(r,67565))})),"event-registration-action":(0,n.lazy)((function(){return Promise.all([r.e(85),r.e(141),r.e(828),r.e(198),r.e(107)]).then(r.bind(r,96699))}))};const a=947==r.j?function(e){return o.Z.actionFactory(i,e)}:null},2621:(e,t,r)=>{r.d(t,{Z:()=>x});var n=r(59713),o=r.n(n),i=r(27361),a=r.n(i),c=r(74806),s=r(50558),l=r(19241),u=r(75354),f=r(6479),d=r.n(f),p=r(1024),b=r(79981),h=r(86926),y=r(76330),m=r(85893),v=["fireVisibilityStatusChangeEvent"];function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const j=function(e){var t=e.fireVisibilityStatusChangeEvent,r=d()(e,v),n=r.router,i=n.history,a=n.location,c=n.match,s=r.customActionEventHandlers;(0,p.useEffect)((function(){t([h.K.fullscreenAction])}),[t]);var l=function(){var e=a.state.originUrl||"/";i.replace(e)},u=(0,y.Z)(s);return(0,m.jsx)(u,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({appId:c.params.appId,onSuccess:l,onError:l,onCancel:l,navigationStrategy:(0,b.Z)(i,c)},r))};function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var P={fireVisibilityStatusChangeEvent:l.Z.fireVisibilityStatusChangeEvent};const x=(0,s.connect)((function(e,t){var r=u.Z.fromQueryString(t.router.location.search),n=a()(t.router.location,"state.selection",r.selection),o=a()(t.router.location,"state.definition.properties",r.actionProperties);return w(w({},r),{},{selection:n,actionProperties:o,locale:e.intl.locale,customActionEventHandlers:e.input.customActionEventHandlers})}),P)((0,c.ZP)(j))},53524:(e,t,r)=>{if(r.d(t,{Z:()=>f}),947==r.j)var n=r(56746);if(947==r.j)var o=r(30604);if(947==r.j)var i=r(2621);if(947==r.j)var a=r(29036);if(947==r.j)var c=r(97065);if(947==r.j)var s=r(92259);var l,u=r(85893);const f=947==r.j?function(){return(0,u.jsxs)(s.Z,{children:[l||(l=(0,u.jsx)(o.Z.Notifications,{})),(0,u.jsxs)(n.rs,{children:[(0,u.jsx)(n.AW,{path:"/",exact:!0,render:function(e){return(0,u.jsx)(c.Z,{router:e})}}),(0,u.jsx)(n.AW,{path:"/detail/:entityId*",render:function(e){return(0,u.jsx)(a.Z,{router:e})}}),(0,u.jsx)(n.AW,{path:"/action/:appId*",render:function(e){return(0,u.jsx)(i.Z,{router:e})}})]})]})}:null},92259:(e,t,r)=>{r.d(t,{Z:()=>u});var n,o=r(28655),i=r.n(o),a=r(38205),c=r(88601),s=r(7281),l=a.ZP.div.withConfig({displayName:"StyledEntityBrowser"})(n||(n=i()(["\n && {\n background-color: ",";\n padding: ",";\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n }\n"])),c.Z.color("paper"),s.Z.space(0));const u=947==r.j?l:null},83432:(e,t,r)=>{if(r.r(t),r.d(t,{default:()=>o}),947==r.j)var n=r(53524);const o=947==r.j?n.Z:null},8157:(e,t,r)=>{if(r.d(t,{m:()=>i}),947==r.j)var n=r(60558);var o=r(85893),i=function(e){var t=e.currentKey,r=e.entityKey,i=e.children,a=e.relation;return(0,o.jsx)(n.Z,{to:"".concat(t,"/").concat(a,"/").concat(r),children:i})}},12813:(e,t,r)=>{r.d(t,{Z:()=>O});var n=r(74806),o=r(50558),i=r(50600),a=r(19241),c=r(6766),s=r(1024),l=r(46169),u=r(47971),f=r(54828),d=r(10129),p=r(42756),b=r(79981),h=r(86926),y=r(76330),m=r(75285),v=r(85893);const g=function(e){var t=e.loadDetailParams,r=e.router,n=e.setFormTouched,o=e.clearDetailParams,i=e.detailParams,a=e.appId,c=e.intl,g=e.dispatchEmittedAction,j=e.formTouched,O=e.locale,w=e.reportIds,P=e.fireVisibilityStatusChangeEvent,x=e.scrollBehaviour,S=e.customActionEventHandlers;(0,s.useEffect)((function(){return t(r.match.url),n(!1),function(){o()}}),[o,t,r.match.url,n]),(0,s.useEffect)((function(){P([h.K.detail])}),[P]);var Z,k,E,D,C,F=function(e){return c.formatMessage({id:e})},A=function(e){var t=e.id,n=e.relationName;r.history.push("".concat(r.match.url,"/").concat(n,"/").concat(t))},N=function(e){var t=e.id;n(!1);var o=r.match.url,i="/"!==o.substr(-1)?o+"/":o;r.history.push(i+t)},I=function(e){var t=e.touched;n(t)},T=function(){r.history.push(i.parentUrl)},R={back:function(){return(0,v.jsx)(d.Z,{onClick:T,label:F("client.entity-browser.back")})}};return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(p.Z,{when:j,message:F("client.entity-browser.detail.confirmTouchedFormLeave")}),i&&(0,v.jsx)(v.Fragment,{children:(Z=i,k=Z.entityName,E=Z.entityId,D=Z.formName,C=Z.mode,(0,v.jsx)(u.ZP,{id:"".concat(a,"_detail_").concat(D,"_").concat(E),entityName:k,entityId:E,formName:D,mode:C,navigationStrategy:(0,b.Z)(r.history,r.match,E),onSubGridRowClick:A,onEntityCreated:N,onEntityDeleted:T,onTouchedChange:I,emitAction:function(e){g(e)},theme:{},locale:O,modifyFormDefinition:function(t,r){return(0,m.C)(t,r,e)},actionAppComponent:(0,y.Z)(S),reportIds:w,customRenderedActions:R,listApp:f.ZP,docsApp:l.ZP,scrollBehaviour:x}))})]})};var j={loadDetailParams:c.E,clearDetailParams:c.W8,setFormTouched:c.A9,dispatchEmittedAction:i.Z.dispatchEmittedAction,fireVisibilityStatusChangeEvent:a.Z.fireVisibilityStatusChangeEvent};const O=(0,o.connect)((function(e,t){return{appId:e.entityBrowser.appId,detailParams:e.detail.detailParams,formTouched:e.detail.formTouched,scrollBehaviour:e.entityBrowser.scrollBehaviour,locale:e.intl.locale,modifyFormDefinition:e.input.modifyFormDefinition,reportIds:e.input.reportIds,customActionEventHandlers:e.input.customActionEventHandlers}}),j)((0,n.ZP)(g))},75285:(e,t,r)=>{r.d(t,{C:()=>s});var n=r(87757),o=r.n(n),i=r(34857),a=r(96316),c=o().mark(s);function s(e,t,r){var n,s,l,u,f,d,p,b,h,y,m,v;return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n=r.detailParams,s=void 0===n?{}:n,l=r.intl,!(u=r.modifyFormDefinition)){o.next=7;break}return o.next=4,(0,i.RE)(u,e,t);case 4:o.t0=o.sent,o.next=8;break;case 7:o.t0=e;case 8:return f=o.t0,p=(d=t||{}).entityName,b=d.entityId,h=s.entityName,y=s.entityId,m=s.showBackButton,v=m&&p===h&&b===y,o.abrupt("return",v?a.Z.addBack(f,l):f);case 13:case"end":return o.stop()}}),c)}},29036:(e,t,r)=>{if(r.d(t,{Z:()=>o}),947==r.j)var n=r(12813);const o=947==r.j?n.Z:null},89646:(e,t,r)=>{r.d(t,{Z:()=>x});var n=r(50558),o=r(50600),i=r(19241),a=r(59713),c=r.n(a),s=r(6479),l=r.n(s),u=r(1024),f=r(54828),d=r(60558),p=r(29441),b=r(79981),h=r(86926),y=r(76330),m=r(85893),v=["storeId","router","modifyFormDefinition","disableDetailView","fireVisibilityStatusChangeEvent","customActionEventHandlers"];function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var O=function(e){var t=e.entityKey,r=e.children;return(0,m.jsx)(d.Z,{to:"detail/".concat(t),children:r})};const w=function(e){var t=e.storeId,r=e.router,n=e.modifyFormDefinition,o=e.disableDetailView,i=e.fireVisibilityStatusChangeEvent,a=e.customActionEventHandlers,c=l()(e,v);(0,u.useEffect)((function(){i([h.K.list])}),[i]);return(0,m.jsx)(f.ZP,j(j({},c),{},{onRowClick:function(e){o||r.history.push("/detail/".concat(e.id))},showLink:!o,navigationStrategy:j(j({},(0,b.Z)(r.history,r.match)),{},{DetailLinkRelative:O}),searchFormPosition:"top",actionAppComponent:(0,y.Z)(a),store:p.Z.viewInfoSelector(t).store,onStoreCreate:function(e){p.Z.persistViewInfo(t,{store:e},0)},modifyFormDefinition:n}))};var P={emitAction:function(e){return o.Z.dispatchEmittedAction(e)},fireVisibilityStatusChangeEvent:i.Z.fireVisibilityStatusChangeEvent};const x=(0,n.connect)((function(e,t){var r="".concat(e.entityBrowser.appId,"_entity-browser-list");return{id:r,storeId:"".concat(r,"_").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,customActionEventHandlers:e.input.customActionEventHandlers}}),P)(w)},97065:(e,t,r)=>{if(r.d(t,{Z:()=>o}),947==r.j)var n=r(89646);const o=947==r.j?n.Z:null},79981:(e,t,r)=>{r.d(t,{Z:()=>f});var n=r(59713),o=r.n(n);if(947==r.j)var i=r(75354);if(947==r.j)var a=r(8157);if(947==r.j)var c=r(14910);var s=r(85893);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const f=function(e,t,r){return{DetailLinkRelative:function(e){return(0,s.jsx)(a.m,u(u({},e),{},{currentKey:r}))},navigateToCreateRelative:function(r){var n;if(null!==(n=t.params)&&void 0!==n&&n.entityId){var o=t.url;if(r)e.push("".concat(o,"/").concat(r,"/"));else{var i=(0,c.H)(o,1);e.push(i)}}else e.push("/detail")},navigateToActionRelative:function(t,r){var n=i.Z.toQueryString({selection:r,actionProperties:t.properties});e.push({pathname:"/action/"+t.appId,state:{definition:t,selection:r,originUrl:e.location.pathname},search:n})}}}},14910:(e,t,r)=>{r.d(t,{H:()=>n});var n=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=e.replace(/\/$/,""),n=0;n<t;n++)r=r.substring(0,r.lastIndexOf("/")+1);return r}},86926:(e,t,r)=>{r.d(t,{K:()=>n});var n={list:"list",detail:"detail",fullscreenAction:"fullscreen-action"}}}]);
|