tocco-legacy-bundle 0.1.31 → 0.1.32
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-344.4bb03e4aa34f60582d45.js +1 -0
- package/dist/chunk-vendor-icons.c6f83191c278b66ba089.js +1 -0
- package/dist/docs-browser.js +2 -2
- package/dist/entity-browser.js +2 -2
- package/dist/input-edit.js +2 -2
- 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 +2 -2
- package/dist/sso-login.js +1 -1
- package/dist/two-factor-connector.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-344.6b09f3930061aebce84f.js +0 -1
- package/dist/chunk-vendor-icons.4865ae101cb88360e6f5.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,s=r.useRef,c=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=s(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(!c){if(c=!0,a=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,s=n)}var a,s,c=!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 c((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 s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function c(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[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 c(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,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)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:"6dd65057efc938d668f2",198:"428fb8a2ead9aced75bc",608:"314ac6c82a4a739203d1",614:"4865ae101cb88360e6f5",817:"b738ad650e5f9a00d364"}[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 s,c;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){s=f;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var d=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),c&&document.head.appendChild(s)}},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),s=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;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,c]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(c)c(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 s={};return(()=>{"use strict";a.r(s),a.d(s,{app:()=>Te});var e=a(79013),t=a(45697),n=a.n(t),r=a(22731),o=a(19241),i=a(98773);const c={propTypes:n().shape({embedType:n().oneOf(i.Nc),widgetConfigKey:function(e,t,n){if("widget"===e.embedType&&!e[t])return new Error("Prop `"+t+"` is missing for `"+n+"`. Validation failed.")}})};var u,l=a(23369),f=a(50558),d=a(1024),p=a(88162),h=a(319),m=a.n(h),g=a(54061),v=a.n(g),y=function(e,t,n){var r="widget"===l.Z.getEmbedType(),o=l.Z.getBackendUrl(),i=encodeURIComponent("".concat(o,"/nice2/sso-callback")),a=encodeURIComponent(window.location.href),s="provider=".concat(n.unique_id),c="&sourceUri=".concat(a),u=r?"&redirectUri=".concat(i):"",f="".concat(o).concat(e,"?").concat(s).concat(c).concat(u),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 v()(n,(function(e,t,n){return[].concat(m()(e),["".concat(n,"=").concat(t)])}),[]).join(",")}(650,500));window.ssoPopUpCallback=function(e){d.close(),t(e)}},b=a(28655),w=a.n(b),x=a(27361),O=a.n(x),E=a(38205),S=a(58129),k=a(7281),P=a(88601),j=a(58664);const T=(0,E.ZP)(S.Z)(u||(u=w()(["\n && {\n margin-right: 0;\n flex: 1;\n font-size: ",";\n justify-content: center;\n border-radius: ",";\n ","\n span {\n margin-left: 0.5em;\n padding: 0.9rem 0;\n }\n }\n"])),k.Z.font(1.3),P.Z.radii("large"),(function(e){return(0,j.al)((0,j.du)(e,{bg:e.primaryColor,fg:e.secondaryColor||"".concat(O()(e.theme,"colors.paper"),", ").concat(O()(e.theme,"colors.text"))}))}));var C=a(85893);const _=function(e){var t=e.provider,n=e.loginCompleted,r=e.loginEndpoint;return(0,C.jsxs)(T,{primaryColor:t.button_primary_color,secondaryColor:t.button_secondary_color,onClick:function(){y(r,n,t)},children:[t.button_icon&&(0,C.jsx)(p.Z,{position:"prepend",icon:t.button_icon}),(0,C.jsx)("span",{children:t.button_label})]})};var A,N=E.ZP.div.withConfig({displayName:"StyledButtonContainer"})(A||(A=w()(["\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"]))),Z=a(35997);const R=function(e){var t=e.autoLogin,n=e.providers,r=e.loginEndpoint,o=e.loginCompleted,i=Z.Z.usePrevious(n);(0,d.useEffect)((function(){if(t&&(!i||0===i.length)&&n.length>0){var e=n.find((function(e){return e.unique_id===t}));e&&y(r,o,e)}}),[i,n,t,r,o])};const M=function(e){var t=e.loadProviders,n=e.autoLogin,r=e.providers,o=void 0===r?[]:r,i=e.loginEndpoint,a=e.loginCompleted;(0,d.useEffect)((function(){t()}),[t]),R({autoLogin:n,providers:o,loginEndpoint:i,loginCompleted:a});var s=o.map((function(e,t){return(0,C.jsx)(_,{provider:e,loginEndpoint:i,loginCompleted:a},t)}));return(0,C.jsx)(N,{children:s})},D=M;var I="root/LOAD_PROVIDERS",L="root/SET_PROVIDERS",F="root/LOGIN_COMPLETED",H={loadProviders:function(){return{type:I}},loginCompleted:function(e){return{type:F,payload:{result:e}}}};const W=(0,f.connect)((function(e){return{providers:e.ssoLogin.providers,loginEndpoint:e.input.ssoLoginEndpoint,autoLogin:e.input.autoLogin}}),H)(D);var B=a(59713),U=a.n(B),z=a(81770),G=U()({},L,z.Z.singleTransferReducer("providers")),q={providers:[]};var V=a(87757),Y=a.n(V),$=a(34857),X=a(81719),K=a(21913),J=a(54159),Q=(a(13218),a(66604)),ee=a.n(Q),te=a(17563),ne=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 re=function(e){var t=te.parse(e);return ee()(t,(function(e){return ne(e)?JSON.parse(e):e}))};function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){U()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ae=function(e){return e.data.map((function(e){return v()(e.paths,(function(e,t,n){return ie(ie({},e),{},U()({},n,t.value))}),{})}))},se=Y().mark(me),ce=Y().mark(ge),ue=Y().mark(ve),le=Y().mark(ye),fe=Y().mark(be),de=Y().mark(we),pe=function(e){return e.intl},he=function(e){return e.input};function me(){var e,t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,$.Ys)(pe);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,$.RE)(X.Z.fetchEntities,"Openid_provider",t,{method:"GET"},ae);case 6:return n=r.sent,r.next=9,(0,$.gz)({type:L,payload:{providers:n}});case 9:case"end":return r.stop()}}),se)}function ge(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,$.RE)(J.Z.executeRequest,"login",{method:"GET",headers:new Headers({"X-Business-Unit":l.Z.getBusinessUnit()})});case 2:case"end":return e.stop()}}),ce)}function ve(){var e,t,n,r;return Y().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,$.RE)(re,window.location.search);case 2:return e=o.sent,t=e._redirect_url,o.next=6,(0,$.Ys)(he);case 6:return n=o.sent,r=n.redirectUrl,o.abrupt("return",t||r);case 9:case"end":return o.stop()}}),ue)}function ye(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,$.RE)(ve);case 2:(e=t.sent)&&(window.location.href=e);case 4:case"end":return t.stop()}}),le)}function be(e){var t,n,i;return Y().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.payload.result,a.next=3,(0,$.Ys)(he);case 3:return n=a.sent,i=n.appContext,a.next=7,(0,$.RE)(r.Z.hasInvalidCache);case 7:if(!a.sent){a.next=13;break}return a.next=11,(0,$.RE)(K.Z.clearAll);case 11:a.next=15;break;case 13:return a.next=15,(0,$.RE)(K.Z.clearShortTerm);case 15:if("widget"!==(null==i?void 0:i.embedType)){a.next=24;break}if(null==t||!t.successful){a.next=23;break}return a.next=19,(0,$.RE)(ge);case 19:return a.next=21,(0,$.RE)(ye);case 21:a.next=24;break;case 23:null!=t&&t.registration;case 24:return a.next=26,(0,$.gz)(o.Z.fireExternalEvent("loginCompleted",t));case 26:case"end":return a.stop()}}),fe)}function we(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,$.$6)([(0,$.Fm)(I,me),(0,$.Fm)(F,be)]);case 2:case"end":return e.stop()}}),de)}const xe={ssoLogin:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q,t=arguments.length>1?arguments[1]:void 0,n=G[t.type];return n?n(e,t):e}};var Oe,Ee=[we],Se="sso-login",ke=["loginCompleted"],Pe=function(t,n,i,a){l.Z.setInputEnvs(n);var s=Oe||(Oe=(0,C.jsx)(W,{})),c=e.Z.createStore(xe,Ee,n,Se);return o.Z.addToStore(c,(function(t){return e.Z.getEvents(ke,t.input)})),r.Z.addToStore(c),e.Z.createApp(Se,s,c,{input:n,events:i,actions:[],publicPath:a,textResourceModules:["component","common",Se]})},je=function(t){return e.Z.useApp({initApp:Pe,props:t,packageName:Se,externalEvents:ke}).component};je.propTypes={ssoLoginEndpoint:n().string.isRequired,locale:n().string,autoLogin:n().bool,appContext:c.propTypes,businessUnit:n().string,redirectUrl:n().string};var Te=e.Z.createBundleableApp(Se,Pe,je);e.Z.registerAppInRegistry(Te.name,Te.init)})(),s})()));
|
|
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,s=r.useRef,c=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=s(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(!c){if(c=!0,a=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,s=n)}var a,s,c=!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 c((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 s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function c(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[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 c(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,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)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:"6dd65057efc938d668f2",198:"428fb8a2ead9aced75bc",608:"314ac6c82a4a739203d1",614:"c6f83191c278b66ba089",817:"b738ad650e5f9a00d364"}[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 s,c;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){s=f;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var d=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),c&&document.head.appendChild(s)}},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),s=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;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,c]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(c)c(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 s={};return(()=>{"use strict";a.r(s),a.d(s,{app:()=>Te});var e=a(79013),t=a(45697),n=a.n(t),r=a(22731),o=a(19241),i=a(98773);const c={propTypes:n().shape({embedType:n().oneOf(i.Nc),widgetConfigKey:function(e,t,n){if("widget"===e.embedType&&!e[t])return new Error("Prop `"+t+"` is missing for `"+n+"`. Validation failed.")}})};var u,l=a(23369),f=a(50558),d=a(1024),p=a(88162),h=a(319),m=a.n(h),g=a(54061),v=a.n(g),y=function(e,t,n){var r="widget"===l.Z.getEmbedType(),o=l.Z.getBackendUrl(),i=encodeURIComponent("".concat(o,"/nice2/sso-callback")),a=encodeURIComponent(window.location.href),s="provider=".concat(n.unique_id),c="&sourceUri=".concat(a),u=r?"&redirectUri=".concat(i):"",f="".concat(o).concat(e,"?").concat(s).concat(c).concat(u),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 v()(n,(function(e,t,n){return[].concat(m()(e),["".concat(n,"=").concat(t)])}),[]).join(",")}(650,500));window.ssoPopUpCallback=function(e){d.close(),t(e)}},b=a(28655),w=a.n(b),x=a(27361),O=a.n(x),E=a(38205),S=a(58129),k=a(7281),P=a(88601),j=a(58664);const T=(0,E.ZP)(S.Z)(u||(u=w()(["\n && {\n margin-right: 0;\n flex: 1;\n font-size: ",";\n justify-content: center;\n border-radius: ",";\n ","\n span {\n margin-left: 0.5em;\n padding: 0.9rem 0;\n }\n }\n"])),k.Z.font(1.3),P.Z.radii("large"),(function(e){return(0,j.al)((0,j.du)(e,{bg:e.primaryColor,fg:e.secondaryColor||"".concat(O()(e.theme,"colors.paper"),", ").concat(O()(e.theme,"colors.text"))}))}));var C=a(85893);const _=function(e){var t=e.provider,n=e.loginCompleted,r=e.loginEndpoint;return(0,C.jsxs)(T,{primaryColor:t.button_primary_color,secondaryColor:t.button_secondary_color,onClick:function(){y(r,n,t)},children:[t.button_icon&&(0,C.jsx)(p.Z,{position:"prepend",icon:t.button_icon}),(0,C.jsx)("span",{children:t.button_label})]})};var A,N=E.ZP.div.withConfig({displayName:"StyledButtonContainer"})(A||(A=w()(["\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"]))),Z=a(35997);const R=function(e){var t=e.autoLogin,n=e.providers,r=e.loginEndpoint,o=e.loginCompleted,i=Z.Z.usePrevious(n);(0,d.useEffect)((function(){if(t&&(!i||0===i.length)&&n.length>0){var e=n.find((function(e){return e.unique_id===t}));e&&y(r,o,e)}}),[i,n,t,r,o])};const M=function(e){var t=e.loadProviders,n=e.autoLogin,r=e.providers,o=void 0===r?[]:r,i=e.loginEndpoint,a=e.loginCompleted;(0,d.useEffect)((function(){t()}),[t]),R({autoLogin:n,providers:o,loginEndpoint:i,loginCompleted:a});var s=o.map((function(e,t){return(0,C.jsx)(_,{provider:e,loginEndpoint:i,loginCompleted:a},t)}));return(0,C.jsx)(N,{children:s})},D=M;var I="root/LOAD_PROVIDERS",L="root/SET_PROVIDERS",F="root/LOGIN_COMPLETED",H={loadProviders:function(){return{type:I}},loginCompleted:function(e){return{type:F,payload:{result:e}}}};const W=(0,f.connect)((function(e){return{providers:e.ssoLogin.providers,loginEndpoint:e.input.ssoLoginEndpoint,autoLogin:e.input.autoLogin}}),H)(D);var B=a(59713),U=a.n(B),z=a(81770),G=U()({},L,z.Z.singleTransferReducer("providers")),q={providers:[]};var V=a(87757),Y=a.n(V),$=a(34857),X=a(81719),K=a(21913),J=a(54159),Q=(a(13218),a(66604)),ee=a.n(Q),te=a(17563),ne=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 re=function(e){var t=te.parse(e);return ee()(t,(function(e){return ne(e)?JSON.parse(e):e}))};function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){U()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ae=function(e){return e.data.map((function(e){return v()(e.paths,(function(e,t,n){return ie(ie({},e),{},U()({},n,t.value))}),{})}))},se=Y().mark(me),ce=Y().mark(ge),ue=Y().mark(ve),le=Y().mark(ye),fe=Y().mark(be),de=Y().mark(we),pe=function(e){return e.intl},he=function(e){return e.input};function me(){var e,t,n;return Y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,$.Ys)(pe);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,$.RE)(X.Z.fetchEntities,"Openid_provider",t,{method:"GET"},ae);case 6:return n=r.sent,r.next=9,(0,$.gz)({type:L,payload:{providers:n}});case 9:case"end":return r.stop()}}),se)}function ge(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,$.RE)(J.Z.executeRequest,"login",{method:"GET",headers:new Headers({"X-Business-Unit":l.Z.getBusinessUnit()})});case 2:case"end":return e.stop()}}),ce)}function ve(){var e,t,n,r;return Y().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,$.RE)(re,window.location.search);case 2:return e=o.sent,t=e._redirect_url,o.next=6,(0,$.Ys)(he);case 6:return n=o.sent,r=n.redirectUrl,o.abrupt("return",t||r);case 9:case"end":return o.stop()}}),ue)}function ye(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,$.RE)(ve);case 2:(e=t.sent)&&(window.location.href=e);case 4:case"end":return t.stop()}}),le)}function be(e){var t,n,i;return Y().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.payload.result,a.next=3,(0,$.Ys)(he);case 3:return n=a.sent,i=n.appContext,a.next=7,(0,$.RE)(r.Z.hasInvalidCache);case 7:if(!a.sent){a.next=13;break}return a.next=11,(0,$.RE)(K.Z.clearAll);case 11:a.next=15;break;case 13:return a.next=15,(0,$.RE)(K.Z.clearShortTerm);case 15:if("widget"!==(null==i?void 0:i.embedType)){a.next=24;break}if(null==t||!t.successful){a.next=23;break}return a.next=19,(0,$.RE)(ge);case 19:return a.next=21,(0,$.RE)(ye);case 21:a.next=24;break;case 23:null!=t&&t.registration;case 24:return a.next=26,(0,$.gz)(o.Z.fireExternalEvent("loginCompleted",t));case 26:case"end":return a.stop()}}),fe)}function we(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,$.$6)([(0,$.Fm)(I,me),(0,$.Fm)(F,be)]);case 2:case"end":return e.stop()}}),de)}const xe={ssoLogin:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q,t=arguments.length>1?arguments[1]:void 0,n=G[t.type];return n?n(e,t):e}};var Oe,Ee=[we],Se="sso-login",ke=["loginCompleted"],Pe=function(t,n,i,a){l.Z.setInputEnvs(n);var s=Oe||(Oe=(0,C.jsx)(W,{})),c=e.Z.createStore(xe,Ee,n,Se);return o.Z.addToStore(c,(function(t){return e.Z.getEvents(ke,t.input)})),r.Z.addToStore(c),e.Z.createApp(Se,s,c,{input:n,events:i,actions:[],publicPath:a,textResourceModules:["component","common",Se]})},je=function(t){return e.Z.useApp({initApp:Pe,props:t,packageName:Se,externalEvents:ke}).component};je.propTypes={ssoLoginEndpoint:n().string.isRequired,locale:n().string,autoLogin:n().bool,appContext:c.propTypes,businessUnit:n().string,redirectUrl:n().string};var Te=e.Z.createBundleableApp(Se,Pe,je);e.Z.registerAppInRegistry(Te.name,Te.init)})(),s})()));
|
|
@@ -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})},1165:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}},57693:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},84311:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},51144:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:()=>o})},39068:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(40477),o=n(56158),a=n(82884);function i(e){var t=(0,o.Z)();return function(){var n,o=(0,r.Z)(e);if(t){var i=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return(0,a.Z)(this,n)}}},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})},40477:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},49027:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(73757);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},56158:(e,t,n)=>{"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:()=>r})},96092:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},24328:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}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})},82884:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(62360),o=n(57693);function a(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},73757:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}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.")}()}},86578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(1165),o=n(96092),a=n(78001),i=n(24328);function c(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,a.Z)(e)||(0,i.Z)()}},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=>288===e?"chunk-ckeditor.cb368f0df3415a402d98.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"6dd65057efc938d668f2",198:"428fb8a2ead9aced75bc",560:"6936eba95c2abb47e857",608:"314ac6c82a4a739203d1",614:"4865ae101cb88360e6f5",759:"e98d9ca417f9458cdb73",817:"b738ad650e5f9a00d364",877:"4533d665bea87f7b6efe"}[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:()=>cn});var e,t,n,r,o,a,s=i(79013),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(27023),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",x="two-factor-connector/REQUEST_SECRET",_="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}}},M=function(e){return{type:O,payload:{secret:e}}},R=function(e){return{type:k,payload:{username:e}}},I=function(){return{type:S}},N=function(e){return{type:P,payload:{setupSuccessful:e}}},Z=i(1024),B=i.n(Z),L=i(50258),F=i(44012),H=i(88162),U=i(34206),W=i(65035),z=i(28655),V=i.n(z),Y=i(38205),q=i(7281),G=i(58129),K=Y.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"])),q.Z.space(.5),G.Z),X=i(88601),$=Y.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(t||(t=V()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),q.Z.space(-.5)),Q=Y.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?X.Z.color("signal.success.text"):X.Z.color("signal.danger.text")}),q.Z.font(10)),J=Y.ZP.div.withConfig({displayName:"StyledTextWrapper"})(r||(r=V()(["\n display: flex;\n align-items: center;\n"]))),ee=i(85893);const te=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,i=e.intl,c=function(e){return i.formatMessage({id:e})};return r?(0,ee.jsxs)(ee.Fragment,{children:[o||(o=(0,ee.jsxs)($,{children:[(0,ee.jsx)(Q,{isSuccessful:!0,children:(0,ee.jsx)(H.Z,{icon:"check"})}),(0,ee.jsx)(J,{children:(0,ee.jsx)(U.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,ee.jsxs)(ee.Fragment,{children:[a||(a=(0,ee.jsxs)($,{children:[(0,ee.jsx)(Q,{isSuccessful:!1,children:(0,ee.jsx)(H.Z,{icon:"times"})}),(0,ee.jsx)(J,{children:(0,ee.jsx)(U.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var ne={success:function(){return{type:C}},goToStart:I};const re=(0,y.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),ne)((0,v.ZP)(te));var oe,ae=Object.defineProperty,ie=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ue=(e,t,n)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,le=(e,t)=>{for(var n in t||(t={}))ce.call(t,n)&&ue(e,n,t[n]);if(ie)for(var n of ie(t))se.call(t,n)&&ue(e,n,t[n]);return e},pe=(e,t)=>{var n={};for(var r in e)ce.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ie)for(var r of ie(e))t.indexOf(r)<0&&se.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})(oe||(oe={})),(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={}))})(oe||(oe={})),(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={}))})(oe||(oe={}));var fe=oe,de={L:fe.QrCode.Ecc.LOW,M:fe.QrCode.Ecc.MEDIUM,Q:fe.QrCode.Ecc.QUARTILE,H:fe.QrCode.Ecc.HIGH},he=128,me="L",ge="#FFFFFF",ve="#000000",ye=!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})},1165:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}},57693:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},84311:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},51144:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:()=>o})},39068:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(40477),o=n(56158),a=n(82884);function i(e){var t=(0,o.Z)();return function(){var n,o=(0,r.Z)(e);if(t){var i=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return(0,a.Z)(this,n)}}},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})},40477:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},49027:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(73757);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},56158:(e,t,n)=>{"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:()=>r})},96092:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},24328:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}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})},82884:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(62360),o=n(57693);function a(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},73757:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}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.")}()}},86578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(1165),o=n(96092),a=n(78001),i=n(24328);function c(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,a.Z)(e)||(0,i.Z)()}},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=>288===e?"chunk-ckeditor.cb368f0df3415a402d98.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"6dd65057efc938d668f2",198:"428fb8a2ead9aced75bc",560:"6936eba95c2abb47e857",608:"314ac6c82a4a739203d1",614:"c6f83191c278b66ba089",759:"e98d9ca417f9458cdb73",817:"b738ad650e5f9a00d364",877:"4533d665bea87f7b6efe"}[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:()=>cn});var e,t,n,r,o,a,s=i(79013),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(27023),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",x="two-factor-connector/REQUEST_SECRET",_="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}}},M=function(e){return{type:O,payload:{secret:e}}},R=function(e){return{type:k,payload:{username:e}}},I=function(){return{type:S}},N=function(e){return{type:P,payload:{setupSuccessful:e}}},Z=i(1024),B=i.n(Z),L=i(50258),F=i(44012),H=i(88162),U=i(34206),W=i(65035),z=i(28655),V=i.n(z),Y=i(38205),q=i(7281),G=i(58129),K=Y.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"])),q.Z.space(.5),G.Z),X=i(88601),$=Y.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(t||(t=V()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),q.Z.space(-.5)),Q=Y.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?X.Z.color("signal.success.text"):X.Z.color("signal.danger.text")}),q.Z.font(10)),J=Y.ZP.div.withConfig({displayName:"StyledTextWrapper"})(r||(r=V()(["\n display: flex;\n align-items: center;\n"]))),ee=i(85893);const te=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,i=e.intl,c=function(e){return i.formatMessage({id:e})};return r?(0,ee.jsxs)(ee.Fragment,{children:[o||(o=(0,ee.jsxs)($,{children:[(0,ee.jsx)(Q,{isSuccessful:!0,children:(0,ee.jsx)(H.Z,{icon:"check"})}),(0,ee.jsx)(J,{children:(0,ee.jsx)(U.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,ee.jsxs)(ee.Fragment,{children:[a||(a=(0,ee.jsxs)($,{children:[(0,ee.jsx)(Q,{isSuccessful:!1,children:(0,ee.jsx)(H.Z,{icon:"times"})}),(0,ee.jsx)(J,{children:(0,ee.jsx)(U.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var ne={success:function(){return{type:C}},goToStart:I};const re=(0,y.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),ne)((0,v.ZP)(te));var oe,ae=Object.defineProperty,ie=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ue=(e,t,n)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,le=(e,t)=>{for(var n in t||(t={}))ce.call(t,n)&&ue(e,n,t[n]);if(ie)for(var n of ie(t))se.call(t,n)&&ue(e,n,t[n]);return e},pe=(e,t)=>{var n={};for(var r in e)ce.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ie)for(var r of ie(e))t.indexOf(r)<0&&se.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})(oe||(oe={})),(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={}))})(oe||(oe={})),(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={}))})(oe||(oe={}));var fe=oe,de={L:fe.QrCode.Ecc.LOW,M:fe.QrCode.Ecc.MEDIUM,Q:fe.QrCode.Ecc.QUARTILE,H:fe.QrCode.Ecc.HIGH},he=128,me="L",ge="#FFFFFF",ve="#000000",ye=!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([[344],{13025:(e,t,n)=>{n.d(t,{Z:()=>o,l:()=>i});var r=n(45697),o={SINGLE:"single",MULTI:"multi",MULTI_EXPLICIT:"multi_explicit",NONE:"none"},i=n.n(r)().oneOf(Object.keys(o).map((function(e){return o[e]})))},10129:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(59713),o=n.n(r),i=n(6479),c=n.n(i),a=n(65035),s=n(85893),u=["icon","label","onClick"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const p=function(e){var t=e.icon,n=e.label,r=e.onClick,i=c()(e,u);return(0,s.jsx)(a.Z,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({icon:t||"arrow-left",label:n,onClick:r,"data-cy":"back-button"},i))}},46200:(e,t,n)=>{n.d(t,{a:()=>c});var r=n(45697),o=n.n(r),i=n(71392),c=o().oneOf(Object.keys(i.P).map((function(e){return i.P[e]})))},71392:(e,t,n)=>{n.d(t,{P:()=>r});var r={INLINE:"inline",NONE:"none"}},29441:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(59713),o=n.n(r),i=n(27361),c=n.n(i);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={};const l={persistViewInfo:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;u=s(s({},u),{},o()({},e,{level:n,info:s(s({},c()(u,[e,"info"],{})),t)}))},viewInfoSelector:function(e){return c()(u,[e,"info"],{})},clearPersistedViews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;u=s({},Object.keys(u).reduce((function(t,n){var r=u[n];return s(s({},t),r.level<e&&o()({},n,r))}),{}))}}},78125:(e,t,n)=>{n.d(t,{ZP:()=>Er});var r=n(59713),o=n.n(r),i=n(52540),c=n(45697),a=n.n(c),s=n(50600),u=n(79013),l=n(9538),p=n(22731),d=n(19743),f=n(19241),y=n(27023),m=n(81749),h=n(13025),b=n(46200),v=n(44362),g=n(23369),O=n(1024),j=n.n(O),w=n(99376),P=n(1317),x=n(74806),S=n(50558),E="docs/create/OPEN_DIALOG",Z="docs/create/FILES_SELECTED",C="docs/path/LOAD_BREADCRUMBS",D="docs/path/SET_BREADCRUMBS",k="docs/path/SET_SEARCH_MODE",F=function(e){return{type:D,payload:{breadcrumbs:e}}},N=n(20247),A=n(63038),I=n.n(A),T=n(29441),R=/^\/docs\/?$/;const _=function(e){return R.test(e)};var L,B,M=n(38205),V=n(319),z=n.n(V),U=n(64593),W=n(10535),$=n(28655),q=n.n($),H=n(96559),K=n(30759),Y=n(88601),G=(0,M.iv)(L||(L=q()(["\n ","\n color: ",";\n\n * {\n color: ",";\n text-decoration: ",";\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n text-decoration: ",";\n }\n"])),(0,K.Z)(),Y.Z.color("text"),Y.Z.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));const J=(0,M.ZP)(H.rU).withConfig({shouldForwardProp:function(e,t){return!["neutral"].includes(e)&&t(e)}})(B||(B=q()(["\n ","\n"])),G);var X=n(34206),Q=n(88162),ee=n(85893),te={error:"exclamation-circle",home:"house-blank"},ne=function(e){return te[e]||e};const re=function(e){var t=e.type;return t&&"record"!==t?(0,ee.jsx)(Q.Z,{icon:ne(t)}):null};var oe,ie,ce,ae,se,ue=n(6479),le=n.n(ue),pe=n(69829),de=["component"],fe=M.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(oe||(oe=q()(["\n background-color: ",";\n width: 100%;\n padding: 0.8rem 1.7rem;\n position: relative;\n z-index: 2; // higher than StyledTether to prevent cover on scroll\n"])),(function(e){return e.backgroundColor||Y.Z.color("backgroundBreadcrumbs")(e)})),ye=(0,M.ZP)((function(e){var t=e.component,n=le()(e,de);return j().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(ie||(ie=q()(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n cursor: pointer;\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n margin-right: 0.5rem;\n }\n\n &:hover,\n &:hover * {\n color: ",";\n }\n\n &:focus,\n &:active,\n &:focus *,\n &:active * {\n color: ",";\n }\n"])),Y.Z.fontWeight("bold"),(function(e){return e.active&&Y.Z.color("primary")}),Y.Z.fontWeight("bold"),(function(e){return e.active&&Y.Z.color("primary")}),Y.Z.color("secondaryLight"),Y.Z.color("primary")),me=M.ZP.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(ce||(ce=q()(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n margin-right: 0.5rem;\n }\n\n &:active * {\n color: ",";\n }\n"])),Y.Z.fontWeight("bold"),(function(e){return e.active&&Y.Z.color("primary")}),Y.Z.fontWeight("bold"),(function(e){return e.active&&Y.Z.color("primary")}),Y.Z.color("primary")),he=(0,M.ZP)(pe.Fe).withConfig({displayName:"StyledBreadcrumbSeparator"})(ae||(ae=q()(["\n margin-left: 0.9rem;\n margin-right: 0.9rem;\n"])));const be=function(){return se||(se=(0,ee.jsx)(he,{breakWords:!0,children:(0,ee.jsx)(Q.Z,{icon:"chevron-right"})}))};var ve;function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var je=function(e){return e.title||e.display},we=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(je(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(je).join(" - ");break;default:r=je(n)}return r},Pe=function(e){var t,n=e.intl,r=e.pathPrefix,o=e.breadcrumbsInfo,i=void 0===o?[]:o,c=e.currentView,a=e.backgroundColor,s=e.onClick,u=e.linkComp,l=[].concat(z()(i),z()(c?[c]:[]));if(0===l.length)return null;var p,d=l.map((function(e,n){var o,i=e.display||"",c=n===l.length-1?me:ye,a=n===l.length-1&&{active:"true"},p=void 0!==e.path?{to:"".concat(r,"/").concat(e.path)}:{},d=u?t||(t=(0,ee.jsx)(u,{})):ve||(ve=(0,ee.jsx)(J,{}));return(0,ee.jsx)(X.ZP.Span,{children:(0,ee.jsxs)(c,Oe(Oe(Oe({neutral:!0},a),p),{},{onClick:(o=e,function(){s&&s(o)}),component:d,children:[(0,ee.jsx)(re,{type:e.type}),(0,ee.jsx)("span",{dangerouslySetInnerHTML:{__html:W.Z.sanitizeHtml(i)}})]}))},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,ee.jsx)(be,{},"icon".concat(n)),t]}));return(0,ee.jsxs)(fe,{backgroundColor:a,children:[(0,ee.jsx)(U.q,{defer:!1,children:(0,ee.jsx)("title",{children:we(l,(p="client.component.breadcrumbs.createTitle",n.formatMessage({id:p})))})}),(0,ee.jsx)(ee.Fragment,{children:d})]})};Pe.defaultProps={pathPrefix:""};const xe=Pe,Se=(0,x.ZP)(xe);function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ce=(0,M.Zz)((function(e){var t=e.embedded,n=e.resetSearchMode,r=e.theme,o=e.pathPrefix,i=e.breadcrumbsInfo;return(0,ee.jsx)(Se,Ze(Ze({},t?{backgroundColor:Y.Z.color("paper")({theme:r})}:{}),{},{onClick:function(e){""===e.path&&n()},pathPrefix:o,breadcrumbsInfo:i}))}));function De(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 ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fe=function(e){return(0,ee.jsx)("span",ke({},e))};const Ne=(0,M.Zz)((function(e){var t=e.embedded,n=e.navigate,r=e.resetSearchMode,o=e.theme,i=e.pathPrefix,c=e.breadcrumbsInfo;return(0,ee.jsx)(Se,ke(ke({},t?{backgroundColor:Y.Z.color("paper")({theme:o})}:{}),{},{onClick:function(e){""===e.path&&r(),n("/docs/".concat(e.path))},linkComp:Fe,pathPrefix:i,breadcrumbsInfo:c}))}));var Ae={},Ie=function(e){return{pathPrefix:"/docs",breadcrumbsInfo:e.docs.path.breadcrumbs,embedded:e.input.embedded}},Te=(0,S.connect)(Ie,Ae)((0,x.ZP)(Ce)),Re=(0,S.connect)(Ie,Ae)((0,x.ZP)(Ne));const _e=(0,N.U)({routerless:Re,router:Te});var Le="docs/list/CHANGE_LIST_PARENT",Be="docs/list/CHANGE_SELECTION",Me="docs/list/CHANGE_SEARCH_FORM_COLLAPSED",Ve=n(50258),ze={"dms-create-folder":(0,O.lazy)((function(){return Promise.all([n.e(889),n.e(85),n.e(614),n.e(107),n.e(141)]).then(n.bind(n,36340))})),"dms-create-domain":(0,O.lazy)((function(){return Promise.all([n.e(889),n.e(85),n.e(614),n.e(107),n.e(141)]).then(n.bind(n,67210))})),"dms-edit":(0,O.lazy)((function(){return Promise.all([n.e(889),n.e(85),n.e(614),n.e(107),n.e(141)]).then(n.bind(n,90100))})),"dms-move":(0,O.lazy)((function(){return Promise.all([n.e(889),n.e(85),n.e(614),n.e(107),n.e(141)]).then(n.bind(n,4505))})),delete:(0,O.lazy)((function(){return Promise.all([n.e(889),n.e(85),n.e(614),n.e(107),n.e(141)]).then(n.bind(n,96954))}))};const Ue=l.Z.actionFactory(ze);var We=n(35997);function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const qe=function(e){var t=e.instanceCount,n=e.directory,r=e.onChange,i=e.path,c=(0,O.useRef)(),a=We.Z.usePrevious(t);(0,O.useEffect)((function(){c.current&&t>a&&c.current.click()}));return(0,ee.jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:"file",ref:c,style:{display:"none"},onChange:function(e){var t=e.target.files;t&&t.length>0&&r&&r(i,t,n),e.target.value=null},multiple:!0},n?{webkitdirectory:"true",directory:"true"}:{}))};var He={onChange:function(e,t,n){return{type:Z,payload:{location:e,files:t,isDirectory:n}}}};const Ke=(0,N.U)((0,S.connect)((function(e){return{instanceCount:e.docs.create.dialog.instanceCount,directory:e.docs.create.dialog.directory}}),He)(qe));var Ye,Ge,Je,Xe,Qe=n(7281),et=M.ZP.div.withConfig({displayName:"StyledContentWrapper"})(Ye||(Ye=q()(["\n display: flex;\n align-items: center;\n"]))),tt=M.ZP.span.withConfig({displayName:"StyledIconWrapper"})(Ge||(Ge=q()(["\n font-size: ",";\n display: inline-block;\n margin-right: ",";\n"])),Qe.Z.font(1),Qe.Z.space(-2)),nt=j().lazy((function(){return Promise.all([n.e(889),n.e(85),n.e(614),n.e(141)]).then(n.bind(n,77840))}));const rt=function(e){var t=e.domainTypes,n=e.rootNodes,r=e.navigationStrategy,o=e.changeListParent,i=e.onSearchChange,c=e.emitAction,a=e.openFileDialog,s=e.limit,u=e.searchFormType,l=e.selectionStyle,p=e.selection,d=e.selectionFilterFn,f=e.getCustomLocation,y=e.disableViewPersistor,m=e.getListFormName,h=e.domainDetailFormName,b=e.folderDetailFormName,v=e.showActions,g=e.scrollBehaviour,j=e.sortable,w=e.searchMode,P=e.openResource,x=e.searchFormCollapsed,S=e.locale,E=e.changeSelection,Z=e.changeSearchFormCollapsed,C=e.params,D=e.navigate,k=e.path,F=(0,O.useReducer)((function(e){return e+1}),0),N=I()(F,2),A=N[0],R=N[1],L="entity-list-".concat(A),B=(0,O.useState)([]),M=I()(B,2),V=M[0],z=M[1],U=p||V,W=(0,O.useMemo)((function(){return function(e){if(e&&e.model){var t=e.model.charAt(0).toUpperCase()+e.model.slice(1),n=e.key;return{model:"Docs_list_item",key:"".concat(t,"/").concat(n)}}return null}(C)}),[C]),$=!W&&n?n.map((function(e){return"".concat(e.entityName,"/").concat(e.key)})):null,q=(0,O.useMemo)((function(){return m?m(W,$):function(e,t){return e?"Docs_list_item":t?"Root_docs_list_item_specific":"Root_docs_list_item"}(W,$)}),[W,$,m]),H=(0,O.useRef)(!1),K=(0,O.useRef)(w),Y=(0,O.useRef)(k);K.current=w,Y.current=k,(0,O.useEffect)((function(){return H.current=!0,function(){return H.current=!1}})),(0,O.useEffect)((function(){o(W),z([])}),[W,o]);var G=function(e){z(e),E(e)},J=function(){if(!T.Z.viewInfoSelector("search").store){var e=T.Z.viewInfoSelector(L).store;T.Z.persistViewInfo("search",{store:e})}R()},X=W||$?null:function(e){return Array.isArray(e)&&e.length>0?"exists(relDomain_type where IN(unique_id, ".concat(e.map((function(e){return'"'.concat(e,'"')})).join(","),"))"):null}(t),te=function(){if(!y)return _(k)?T.Z.viewInfoSelector("search").store:null}();return(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(O.Suspense,{fallback:Je||(Je=(0,ee.jsx)(Ve.Z,{})),children:(0,ee.jsx)(nt,{id:"documents",entityName:"Docs_list_item",formName:q,searchListFormName:"Search_docs_list_item",limit:s||25,onRowClick:function(e){var t=e.id;w&&_(k)&&J();var n=t.split("/"),r=I()(n,2),o=r[0],i=r[1],c=f?f(o,i):function(e,t){switch(e){case"Domain":return"/docs/domain/".concat(t,"/list");case"Folder":return"/docs/folder/".concat(t,"/list");case"Resource":return"/docs/doc/".concat(t,"/detail");default:throw new Error("Unexpected model: ".concat(e))}}(o,i);c?P&&"Resource"===o?P(c):D(c):G([t])},searchFormPosition:"left",searchFormType:u||"admin",parent:W,onSearchChange:function(e){H.current&&(e.query&&e.query.hasUserChanges&&J(),i(e))},store:te,onStoreCreate:function(e){y||T.Z.persistViewInfo(L,{store:e})},cellRenderers:{"dms-label-with-icon":function(e,t,n){return(0,ee.jsxs)(et,{children:[(0,ee.jsx)(tt,{children:(0,ee.jsx)(Q.Z,{icon:e.icon})}),(0,ee.jsx)("span",{children:n(t.children[0])})]})},"dms-actions":function(e,t,n){return(0,ee.jsx)(et,{children:t.children.filter((function(t){return!t.dmsEntityModel||t.dmsEntityModel===e.type})).map((function(e){return n(e)}))})}},emitAction:c,actionAppComponent:Ue,contextParams:{detailFormNames:{Domain:h,Folder:b}},customActions:{"upload-document":function(e,t,n,r,o,i,c){a(!1,i,c)},"upload-directory":function(e,t,n,r,o,i,c){a(!0,i,c)}},navigationStrategy:r,tql:X,keys:$,selectionStyle:l||"multi_explicit",onSelectChange:G,selection:U,selectionFilterFn:d,showActions:v,sortable:j,searchFormCollapsed:x,scrollBehaviour:g,onSearchFormCollapsedChange:Z,locale:S},L)}),Xe||(Xe=(0,ee.jsx)(Ke,{}))]})};var ot={changeListParent:function(e){return{type:Le,payload:{parent:e}}},changeSelection:function(e){return{type:Be,payload:{selection:e}}},changeSearchFormCollapsed:function(e){return{type:Me,payload:{collapsed:e}}}};const it=(0,N.U)((0,S.connect)((function(e){return{domainTypes:e.input.domainTypes,rootNodes:e.input.rootNodes,limit:e.input.listLimit,searchFormType:e.input.searchFormType,selectionStyle:e.input.selectionStyle,selectionFilterFn:e.input.selectionFilterFn,getCustomLocation:e.input.getCustomLocation,disableViewPersistor:e.input.disableViewPersistor,getListFormName:e.input.getListFormName,domainDetailFormName:e.input.domainDetailFormName,folderDetailFormName:e.input.folderDetailFormName,showActions:e.input.showActions,sortable:e.input.sortable,openResource:e.input.openResource,searchFormCollapsed:e.input.searchFormCollapsed,scrollBehaviour:e.input.scrollBehaviour,selection:e.input.selection,locale:e.intl.locale}}),ot)((0,x.ZP)(rt)));var ct,at,st=M.ZP.div.withConfig({displayName:"StyledDocumentViewWrapper"})(ct||(ct=q()(["\n height: 100%;\n background-color: ",";\n padding-left: ",";\n overflow-y: hidden;\n"])),Y.Z.color("paper"),Qe.Z.space(.5)),ut=j().lazy((function(){return Promise.all([n.e(889),n.e(85),n.e(614),n.e(107),n.e(141)]).then(n.bind(n,82445))}));const lt=function(e){var t=e.breadcrumbs,n=e.formName,r=e.navigationStrategy,o=e.locale,i=e.emitAction,c=e.navigate,a=e.params;return(0,ee.jsx)(st,{children:(0,ee.jsx)(O.Suspense,{fallback:at||(at=(0,ee.jsx)(Ve.Z,{})),children:(0,ee.jsx)(ut,{entityName:"Resource",entityId:a.key,formName:n||"DmsResource",mode:"update",actionAppComponent:Ue,navigationStrategy:r,emitAction:i,onEntityDeleted:function(){var e=t.slice().reverse().find((function(e){return"list"===e.type})),n="/docs/".concat(e.path);c(n)},locale:o})})})};var pt={emitAction:function(e){return s.Z.dispatchEmittedAction(e)}};const dt=(0,N.U)((0,S.connect)((function(e){return{breadcrumbs:e.docs.path.breadcrumbs,formName:e.input.documentDetailFormName,locale:e.intl.locale}}),pt)((0,x.ZP)(lt)));const ft=function(e){var t=e.params,n=e.navigationStrategy,r=e.handleSearchChange,o=e.emitAction,i=e.openFileDialog,c=e.searchMode,a=e.docsKey,s=t.model,u=t.view;return"doc"===s&&"detail"===u?(0,ee.jsx)(dt,{navigationStrategy:n}):(0,ee.jsx)(it,{navigationStrategy:n,onSearchChange:r,emitAction:o,openFileDialog:i,searchMode:c},a)};var yt=n(56746);const mt=function(e){var t,n,r=e.navigationStrategy,o=e.handleSearchChange,i=e.emitAction,c=e.openFileDialog,a=e.searchMode,s=e.docsKey;return(0,ee.jsxs)(yt.rs,{children:[(0,ee.jsx)(yt.AW,{exact:!0,path:"/docs/doc/:key/detail",render:function(){return t||(t=(0,ee.jsx)(dt,{navigationStrategy:r}))}}),(0,ee.jsx)(yt.AW,{exact:!0,path:["/docs/:model/:key/list","/docs"],render:function(){return n||(n=(0,ee.jsx)(it,{navigationStrategy:r,onSearchChange:o,emitAction:i,openFileDialog:c,searchMode:a},s))}})]})},ht=(0,N.U)({routerless:ft,router:mt});var bt,vt,gt,Ot=n(11347),jt=M.ZP.div.withConfig({displayName:"StyledWrapper"})(bt||(bt=q()(["\n display: grid;\n grid-template-rows: auto 1fr;\n grid-template-areas:\n 'breadcrumbs'\n 'content';\n ","\n width: 100%;\n"])),(function(e){return"inline"===e.scrollBehaviour&&"height: 100%;"})),wt=M.ZP.div.withConfig({displayName:"StyledContent"})(vt||(vt=q()(["\n grid-area: content;\n ","\n ","\n"])),(function(e){return"inline"===e.scrollBehaviour&&"overflow-x: hidden;"}),Ot.C),Pt=M.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(gt||(gt=q()(["\n grid-area: breadcrumbs;\n ","\n"])),(function(e){return e.noLeftPadding&&"\n > div {\n padding-left: 0;\n }\n "}));const xt=function(e){var t=e.navigate,n=e.path,r=e.searchMode,o=e.navigationStrategy,i=e.setSearchMode,c=e.loadBreadcrumbs,a=e.emitAction,s=e.openFileDialog,u=e.noLeftPadding,l=e.scrollBehaviour,p=e.listenHistory,f=(0,O.useReducer)((function(e){return e+1}),0),y=I()(f,2),m=y[0],h=y[1],b=(0,O.useRef)(r);b.current=r,(0,O.useEffect)((function(){c(n)})),(0,O.useEffect)((function(){return p((function(e,t){_(n)&&r&&"POP"===t&&v()}))}));var v=function(){b.current&&(T.Z.clearPersistedViews(),i(!1),c(n),h())},g="docs-view-".concat(m);return(0,ee.jsxs)(jt,{scrollBehaviour:l,children:[(0,ee.jsx)(d.Z.ErrorBoundary,{children:(0,ee.jsx)(Pt,{noLeftPadding:u,children:(0,ee.jsx)(_e,{resetSearchMode:v})})}),(0,ee.jsx)(wt,{scrollBehaviour:l,children:(0,ee.jsx)(ht,{navigationStrategy:o,handleSearchChange:function(e){e.query&&e.query.hasUserChanges?(i(!0),t("/docs/"),c(n)):_(n)&&v()},emitAction:a,openFileDialog:s,searchMode:r,docsKey:g})})]})};var St={loadBreadcrumbs:function(e){return{type:C,payload:{location:e}}},setSearchMode:function(e){return{type:k,payload:{searchMode:e}}},emitAction:function(e){return s.Z.dispatchEmittedAction(e)},openFileDialog:function(e,t,n){return{type:E,payload:{directory:e,onSuccess:t,onError:n}}}};const Et=(0,N.U)((0,S.connect)((function(e){return{searchMode:e.docs.path.searchMode,navigationStrategy:e.input.navigationStrategy,noLeftPadding:e.input.noLeftPadding,scrollBehaviour:e.input.scrollBehaviour}}),St)((0,x.ZP)(xt)));var Zt,Ct,Dt;const kt=(0,P.w)((function(e){var t=e.handleNotifications,n=e.rootPath,r=e.navigate,o=e.path;return(0,O.useEffect)((function(){(!o||"/"===o||"/docs"===o)&&n!==o&&r(n)}),[n,o,r]),(0,ee.jsxs)(ee.Fragment,{children:[t&&(Zt||(Zt=(0,ee.jsx)(y.Z.Notifications,{}))),Ct||(Ct=(0,ee.jsx)(w.Z,{})),Dt||(Dt=(0,ee.jsx)(Et,{}))]})}));var Ft,Nt,At;const It=function(e){var t=e.rootPath,n=e.handleNotifications;return(0,ee.jsxs)(ee.Fragment,{children:[n&&(Ft||(Ft=(0,ee.jsx)(y.Z.Notifications,{}))),Nt||(Nt=(0,ee.jsx)(w.Z,{})),At||(At=(0,ee.jsx)(Et,{})),(0,ee.jsx)(yt.AW,{exact:!0,path:"/",children:(0,ee.jsx)(yt.l_,{to:t})}),"/docs"!==t&&(0,ee.jsx)(yt.AW,{exact:!0,path:"/docs",children:(0,ee.jsx)(yt.l_,{to:t})})]})};var Tt,Rt,_t;const Lt=function(e){var t=e.rootPath,n=e.handleNotifications,r=e.history;return(0,ee.jsxs)(yt.F0,{history:r,children:[n&&(Tt||(Tt=(0,ee.jsx)(y.Z.Notifications,{}))),Rt||(Rt=(0,ee.jsx)(w.Z,{})),_t||(_t=(0,ee.jsx)(Et,{})),(0,ee.jsx)(yt.AW,{exact:!0,path:"/",children:(0,ee.jsx)(yt.l_,{to:t})}),"/docs"!==t&&(0,ee.jsx)(yt.AW,{exact:!0,path:"/docs",children:(0,ee.jsx)(yt.l_,{to:t})})]})};var Bt=n(15857),Mt=n(87757),Vt=n.n(Mt),zt=n(34857);function Ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $t=o()({},E,(function(e,t){var n=t.payload,r=n.directory,o=n.onSuccess,i=n.onError;return Wt(Wt({},e),{},{dialog:{instanceCount:e.dialog.instanceCount+1,directory:r,onSuccess:o,onError:i}})})),qt={dialog:{instanceCount:0,directory:!1,onSuccess:null,onError:null}};var Ht=n(81719),Kt=n(44759),Yt=n(28721),Gt=n(80722);function Jt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Xt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){a=!0,i=e},f:function(){try{c||null==n.return||n.return()}finally{if(a)throw i}}}}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Qt=Vt().mark(on),en=Vt().mark(cn),tn=Vt().mark(an),nn=function(e){return e.docs.create.dialog},rn=function(e,t){return e.intl.messages[t]};function on(e){var t,n,r,o,i,c,a,s,u,l,p,d;return Vt().wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return t=e.payload,n=t.location,r=t.files,o=t.isDirectory,f.next=3,(0,zt.RE)(Yt.Z);case 3:return i=f.sent,c="client.docs-browser.uploadInProgress",o?c="client.docs-browser.uploadInProgressDirectory":r.length>1&&(c="client.docs-browser.uploadInProgressMultiple"),f.next=8,(0,zt.gz)(y.Z.blockingInfo(i,c,null));case 8:return f.next=10,(0,zt.Ys)(nn);case 10:return a=f.sent,s=a.onSuccess,u=a.onError,f.prev=13,f.next=16,(0,zt.RE)(cn,n,r);case 16:if(403!==(l=f.sent).status){f.next=31;break}return f.next=20,(0,zt.gz)(y.Z.removeBlockingInfo(i));case 20:return f.t0=u,f.next=23,(0,zt.Ys)(rn,"client.entity-detail.saveAbortedTitle");case 23:return f.t1=f.sent,f.next=26,(0,zt.Ys)(rn,"client.docs-browser.failedNoPermission");case 26:f.t2=f.sent,f.t3={title:f.t1,message:f.t2},(0,f.t0)(f.t3),f.next=42;break;case 31:return p=[{type:"entity-create-event",payload:{entities:l.body.items.filter((function(e){return 201===e.status})).map((function(e){return{entityName:e.bean.model,key:e.bean.key}}))}}],f.next=34,(0,zt.gz)(y.Z.removeBlockingInfo(i));case 34:return d=o?"client.docs-browser.uploadSuccessfulDirectory":"client.docs-browser.uploadSuccessful",f.t4=s,f.next=38,(0,zt.Ys)(rn,d);case 38:f.t5=f.sent,f.t6=p,f.t7={title:f.t5,remoteEvents:f.t6},(0,f.t4)(f.t7);case 42:f.next=55;break;case 44:return f.prev=44,f.t8=f.catch(13),Kt.Z.logError("Failed to upload files",f.t8),f.next=49,(0,zt.gz)(y.Z.removeBlockingInfo(i));case 49:return f.t9=u,f.next=52,(0,zt.Ys)(rn,"client.docs-browser.uploadFailed");case 52:f.t10=f.sent,f.t11={title:f.t10},(0,f.t9)(f.t11);case 55:case"end":return f.stop()}}),Qt,null,[[13,44]])}function cn(e,t){var n,r,o,i,c,a,s;return Vt().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(n=(0,Gt.Z)(e)){u.next=3;break}return u.abrupt("return");case 3:r=new FormData,o=Jt(t);try{for(o.s();!(i=o.n()).done;)c=i.value,r.append("files[]",c)}catch(e){o.e(e)}finally{o.f()}return a="documents/".concat(n.model,"/").concat(n.key),s={method:"POST",body:r,acceptedStatusCodes:[403]},u.next=10,(0,zt.RE)(Ht.Z.requestSaga,a,s);case 10:return u.abrupt("return",u.sent);case 11:case"end":return u.stop()}}),en)}function an(){return Vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,zt.$6)([(0,zt.ib)(Z,on)]);case 2:case"end":return e.stop()}}),tn)}var sn=Vt().mark(un);function un(){return Vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,zt.$6)([(0,zt.rM)(an)]);case 2:case"end":return e.stop()}}),sn)}const ln=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qt,t=arguments.length>1?arguments[1]:void 0,n=$t[t.type];return n?n(e,t):e};var pn=Vt().mark(mn),dn=Vt().mark(hn),fn=Vt().mark(bn),yn=Vt().mark(vn);function mn(e){var t;return Vt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,zt.gz)(f.Z.fireExternalEvent("onListParentChange",t.parent));case 3:case"end":return n.stop()}}),pn)}function hn(e){var t;return Vt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,zt.gz)(f.Z.fireExternalEvent("onSelectChange",t.selection));case 3:case"end":return n.stop()}}),dn)}function bn(e){var t;return Vt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,zt.gz)(f.Z.fireExternalEvent("onSearchFormCollapsedChange",t.collapsed));case 3:case"end":return n.stop()}}),fn)}function vn(){return Vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,zt.$6)([(0,zt.Fm)(Le,mn),(0,zt.Fm)(Be,hn),(0,zt.Fm)(Me,bn)]);case 2:case"end":return e.stop()}}),yn)}var gn,On=n(81770),jn=n(30081);function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xn=(gn={},o()(gn,jn.qh,(function(e,t){var n=t.payload,r=n.selection,o=n.onSuccess,i=n.onError;return Pn(Pn({},e),{},{input:{selection:r,onSuccess:o,onError:i}})})),o()(gn,jn.FV,On.Z.singleTransferReducer("isWaiting")),o()(gn,jn.F$,(function(){return Pn({},Sn)})),gn),Sn={isWaiting:!1,input:{selection:null,onSuccess:null,onError:null}};var En=n(71120),Zn=Vt().mark(Nn),Cn=Vt().mark(An),Dn=Vt().mark(In),kn=function(e){return e.docs.move.input},Fn=function(e,t){return e.intl.messages[t]};function Nn(e){var t,n,r,o,i,c;return Vt().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.payload,n="documents/move",r={method:"POST",acceptedStatusCodes:[400,403],body:{targetEntityKey:t.target,selectedEntityKeys:t.selected}},a.next=5,(0,zt.gz)(jn.p0(!0));case 5:return a.next=7,(0,zt.RE)(Ht.Z.requestSaga,n,r);case 7:if(204!==(o=a.sent).status){a.next=13;break}return a.next=11,(0,zt.RE)(An);case 11:a.next=20;break;case 13:return a.next=15,(0,zt.gz)(jn.p0(!1));case 15:return c="client.actions.dms-move.failed.message","VALIDATION_FAILED"===(null===(i=o.body)||void 0===i?void 0:i.errorCode)&&(c=En.Z.getErrorCompact(o.body.errors)),403===o.status&&(c="client.docs-browser.failedNoPermission"),a.next=20,(0,zt.gz)(y.Z.toaster({type:"error",title:"client.actions.dms-move.failed.title",body:c}));case 20:case"end":return a.stop()}}),Zn)}function An(){var e,t,n,r;return Vt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,zt.Ys)(kn);case 2:return e=o.sent,t=e.selection,n=e.onSuccess,r=[{type:"entity-update-event",payload:{entities:t.ids.map((function(e){return{entityName:"Docs_list_item",key:e}}))}}],o.t0=n,o.next=9,(0,zt.Ys)(Fn,"client.docs-browser.moveSuccessful");case 9:return o.t1=o.sent,o.t2=r,o.t3={title:o.t1,remoteEvents:o.t2},(0,o.t0)(o.t3),o.next=15,(0,zt.gz)(jn.xv());case 15:case"end":return o.stop()}}),Cn)}function In(){return Vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,zt.$6)([(0,zt.Fm)(jn.uI,Nn)]);case 2:case"end":return e.stop()}}),Dn)}var Tn=Vt().mark(Rn);function Rn(){return Vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,zt.$6)([(0,zt.rM)(In)]);case 2:case"end":return e.stop()}}),Tn)}const _n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sn,t=arguments.length>1?arguments[1]:void 0,n=xn[t.type];return n?n(e,t):e};var Ln,Bn=(Ln={},o()(Ln,D,On.Z.singleTransferReducer("breadcrumbs")),o()(Ln,k,On.Z.singleTransferReducer("searchMode")),Ln),Mn={breadcrumbs:[],searchMode:!1};var Vn=Vt().mark(Kn),zn=Vt().mark(Yn),Un=Vt().mark(Gn),Wn=Vt().mark(Jn),$n=function(e,t){return e.intl.messages[t]||t},qn=function(e){return e.docs.path},Hn=function(e){return e.input.rootNodes};function Kn(){return Vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,zt.Ys)($n,"client.docs-browser.breadcrumbs.start");case 2:return e.t0=e.sent,e.t1={display:e.t0,path:"",type:"list"},e.next=6,(0,zt.Ys)($n,"client.docs-browser.breadcrumbs.searchResults");case 6:return e.t2=e.sent,e.t3={display:e.t2,path:"",type:"list"},e.abrupt("return",[e.t1,e.t3]);case 9:case"end":return e.stop()}}),Vn)}function Yn(e){var t,n,r,o,i,c;return Vt().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.payload.location,n=(0,Gt.Z)(t),a.next=4,(0,zt.Ys)(qn);case 4:if(!a.sent.searchMode||n){a.next=11;break}return a.next=8,(0,zt.RE)(Kn);case 8:r=a.sent,a.next=21;break;case 11:return o=n?"documents/".concat(n.model,"/").concat(n.key,"/breadcrumbs"):"documents/breadcrumbs",a.next=14,(0,zt.RE)(Gn);case 14:return a.t0=a.sent,a.t1={rootnodes:a.t0},i={queryParams:a.t1},a.next=19,(0,zt.RE)(Ht.Z.requestSaga,o,i);case 19:c=a.sent,r=c.body.breadcrumbs;case 21:return a.next=23,(0,zt.gz)(F(r));case 23:case"end":return a.stop()}}),zn)}function Gn(){var e;return Vt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,zt.Ys)(Hn);case 2:return e=t.sent,t.abrupt("return",Array.isArray(e)&&e.length>0?e.map((function(e){return"".concat(e.entityName,"/").concat(e.key)})).join(","):null);case 4:case"end":return t.stop()}}),Un)}function Jn(){return Vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,zt.$6)([(0,zt.Fm)(C,Yn)]);case 2:case"end":return e.stop()}}),Wn)}var Xn=Vt().mark(Qn);function Qn(){return Vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,zt.$6)([(0,zt.rM)(Jn)]);case 2:case"end":return e.stop()}}),Xn)}const er=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mn,t=arguments.length>1?arguments[1]:void 0,n=Bn[t.type];return n?n(e,t):e};var tr,nr=n(40602),rr=(tr={},o()(tr,nr.RK,On.Z.singleTransferReducer("path")),o()(tr,nr.Sb,On.Z.singleTransferReducer("params")),tr),or={path:"",params:{}};var ir=n(90655);function cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n(24688);const sr=function(e,t){var n=[],r=(0,ir.Bo)(e,n).exec(t);return null!==r?n.reduce((function(e,t,n){return ar(ar({},e),{},o()({},t.name,r[n+1]))}),{}):null};var ur=Vt().mark(pr),lr=Vt().mark(dr);function pr(e){var t,n;return Vt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.payload.path,n=sr("/docs/:model/:key/:view(list|detail)",t)||{},r.next=4,(0,zt.gz)(nr.PX(n));case 4:case"end":return r.stop()}}),ur)}function dr(){return Vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,zt.$6)([(0,zt.Fm)(nr.RK,pr)]);case 2:case"end":return e.stop()}}),lr)}var fr=Vt().mark(yr);function yr(){return Vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,zt.$6)([(0,zt.rM)(dr)]);case 2:case"end":return e.stop()}}),fr)}const mr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:or,t=arguments.length>1?arguments[1]:void 0,n=rr[t.type];return n?n(e,t):e},hr={docs:(0,Bt.UY)({path:er,create:ln,move:_n,routing:mr})};var br=[Qn,un,vn,Rn,yr];function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Or="docs-browser",jr=["onListParentChange","openResource","onSelectChange","onSearchFormCollapsedChange"],wr=function(e,t){return e.intl.messages[t]||t},Pr=function(e){var t=e.routerType,n=e.store,r=e.rootPath,o=e.handleNotifications;if("routerless"===t)return(0,ee.jsx)(kt,{rootPath:r,handleNotifications:o});if("inherit"===t)return(0,ee.jsx)(It,{rootPath:r,handleNotifications:o});var c=function(e){return(0,i.Z)({getUserConfirmation:function(t,n){var r=e.getState(),o=wr(r,"client.common.ok"),i=wr(r,"client.common.cancel"),c=y.Z.confirm("",t,o,i,(function(){return n(!0)}),(function(){return n(!1)}));e.dispatch(c)}})}(n);return(0,ee.jsx)(Lt,{history:c,rootPath:r,handleNotifications:o})},xr=function(e,t,n,r){var o=u.Z.createStore(hr,br,gr(gr({},{scrollBehaviour:"inline"}),t),Or);g.Z.setInputEnvs(t),f.Z.addToStore(o,(function(e){return u.Z.getEvents(jr,e.input)})),s.Z.addToStore(o),l.Z.dynamicActionsAddToStore(o),d.Z.addToStore(o,!0,["console","remote","notification"]);var i=!n.emitAction;y.Z.addToStore(o,i),p.Z.addToStore(o);var c=Array.isArray(t.rootNodes)&&1===t.rootNodes.length&&"Resource"!==t.rootNodes[0].entityName?t.rootNodes[0]:null,a=c?"/docs/".concat(c.entityName.toLowerCase(),"/").concat(c.key,"/list"):"/docs",m=Pr({routerType:t.routerType,store:o,rootPath:a,handleNotifications:i});return u.Z.createApp(Or,m,o,{input:t,events:n,actions:[(0,nr.c4)(t.initialLocation)],publicPath:r,textResourceModules:["component","common","actions","entity-list","entity-detail",Or]})},Sr=function(e){return u.Z.useApp({initApp:xr,props:e,packageName:Or,externalEvents:jr}).component};Sr.propTypes=gr({routerType:a().oneOf(["standalone","inherit","routerless"]),navigationStrategy:a().object,domainTypes:a().arrayOf(a().string),rootNodes:a().arrayOf(a().shape({entityName:a().string,key:a().string})),initialLocation:a().string,listLimit:a().number,documentDetailFormName:a().string,searchFormType:m.b,selectionStyle:h.l,selectionFilterFn:a().func,selection:a().arrayOf(a().string),scrollBehaviour:b.a,getListFormName:a().func,disableViewPersistor:a().bool,getCustomLocation:a().func,businessUnit:a().string,searchFormCollapsed:a().bool,backendUrl:a().string,appContext:v.Z.propTypes},jr.reduce((function(e,t){return e[t]=a().func,e}),{}));const Er=Sr;u.Z.createBundleableApp(Or,xr,Sr)},30081:(e,t,n)=>{n.d(t,{F$:()=>c,FV:()=>i,j2:()=>a,p0:()=>u,qh:()=>r,uI:()=>o,w6:()=>s,xv:()=>l});var r="docs/move/INITIALIZE",o="docs/move/MOVE_ELEMENTS",i="docs/move/SET_WAITING",c="docs/move/CLOSE",a=function(e,t,n){return{type:r,payload:{selection:e,onSuccess:t,onError:n}}},s=function(e,t){return{type:o,payload:{target:e,selected:t}}},u=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:i,payload:{isWaiting:e}}},l=function(){return{type:c}}},40602:(e,t,n)=>{n.d(t,{PX:()=>c,RK:()=>r,Sb:()=>o,c4:()=>i});var r="docs/routing/NAVIGATE",o="docs/routing/SET_PARAMS",i=function(e){return{type:r,payload:{path:e||""}}},c=function(e){return{type:o,payload:{params:e}}}},80722:(e,t,n)=>{n.d(t,{Z:()=>i});var r=/^\/docs\/doc\/(\d+)\/detail$/,o=/^\/docs\/(domain|folder)\/(\d+)\/list$/;const i=function(e){return function(e){var t=r.exec(e);return t&&t.length>=2?{model:"Resource",key:t[1]}:null}(e)||function(e){var t=o.exec(e);return t&&t.length>=3?{model:t[1].charAt(0).toUpperCase()+t[1].slice(1),key:t[2]}:null}(e)}},1317:(e,t,n)=>{n.d(t,{C:()=>f,w:()=>d});var r=n(59713),o=n.n(r),i=n(50558),c=n(56746),a=n(40602),s=n(85893);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p={navigate:a.c4,listenHistory:function(){return function(){}}},d=(0,i.connect)((function(e){return{path:e.docs.routing.path,params:e.docs.routing.params}}),p),f=function(e){return function(t){var n=(0,c.TH)(),r=(0,c.k6)(),o=(0,c.UO)();return(0,s.jsx)(e,l(l({},t),{},{path:n.pathname,navigate:r.push,params:o,listenHistory:r.listen}))}}},20247:(e,t,n)=>{n.d(t,{U:()=>y});var r=n(59713),o=n.n(r),i=n(6479),c=n.n(i),a=n(50558),s=n(1317),u=n(85893),l=["compProviderRouterType"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){return{compProviderRouterType:e.input.routerType}},y=function(e){var t=e.routerless,n=e.router,r=t?(0,s.w)(t):(0,s.w)(e),o=n?(0,s.C)(n):(0,s.C)(e);return(0,a.connect)(f)((function(e){var t=e.compProviderRouterType,n=c()(e,l);return"routerless"===t?(0,u.jsx)(r,d({},n)):(0,u.jsx)(o,d({},n))}))}},27344:(e,t,n)=>{n.r(t),n.d(t,{default:()=>xe});var r=n(56746),o=n(27023),i=n(27361),c=n.n(i),a=n(74806),s=n(50558),u=n(19241),l=n(13218),p=n.n(l),d=n(66604),f=n.n(d),y=n(17563),m=function(e){if("string"!=typeof e)return!1;try{var t=JSON.parse(e);return"[object Object]"===Object.prototype.toString.call(t)}catch(e){return!1}};const h=function(e){var t=y.parse(e);return f()(t,(function(e){return m(e)?JSON.parse(e):e}))},b=function(e){var t=f()(e,(function(e){return p()(e)?JSON.stringify(e):e}));return y.stringify(t)};var v,g=n(59713),O=n.n(g),j=n(6479),w=n.n(j),P=n(1024),x=n(28655),S=n.n(x),E=n(96559),Z=n(38205),C=n(30759),D=n(24875),k=n(58664);const F=(0,Z.ZP)(E.rU)(v||(v=S()(["\n ","\n text-decoration: none;\n color: ",";\n\n * {\n color: ",";\n text-decoration: none;\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n color: ",";\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n color: ",";\n text-decoration: ",";\n }\n"])),(0,C.Z)(),D.FS.color("secondary"),D.FS.color("text"),D.FS.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){var t=e.neutral,n=e.theme;return t?(0,k.HO)(c()(n,"colors.text"),2):(0,k.HO)(c()(n,"colors.secondary"),2)}),(function(e){return e.neutral?"none":"underline"}));var N=n(85893),A=function(e){var t=e.currentKey,n=e.entityKey,r=e.children,o=e.relation;return(0,N.jsx)(F,{to:"".concat(t,"/").concat(o,"/").concat(n),children:r})};function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const R=function(e,t,n){return{DetailLinkRelative:function(e){return(0,N.jsx)(A,T(T({},e),{},{currentKey:n}))},navigateToCreateRelative:function(n){var r;if(null!==(r=t.params)&&void 0!==r&&r.entityId){var o=t.url;if(n)e.push("".concat(o,"/").concat(n,"/"));else{var i=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.replace(/\/$/,""),r=0;r<t;r++)n=n.substring(0,n.lastIndexOf("/")+1);return n}(o,1);e.push(i)}}else e.push("/detail")},navigateToActionRelative:function(t,n){var r=b({selection:n,actionProperties:t.properties});e.push({pathname:"/action/"+t.appId,state:{definition:t,selection:n,originUrl:e.location.pathname},search:r})}}};var _="list",L="detail",B="fullscreen-action",M=n(9538),V={copy:(0,P.lazy)((function(){return Promise.all([n.e(85),n.e(107)]).then(n.bind(n,45798))})),delete:(0,P.lazy)((function(){return Promise.all([n.e(85),n.e(107)]).then(n.bind(n,90187))})),export:(0,P.lazy)((function(){return Promise.all([n.e(85),n.e(107)]).then(n.bind(n,19781))})),"input-edit":(0,P.lazy)((function(){return Promise.all([n.e(85),n.e(107)]).then(n.bind(n,12787))})),"subscribe-calendar":(0,P.lazy)((function(){return Promise.all([n.e(85),n.e(107)]).then(n.bind(n,2497))})),"mailing-list-mail-action":(0,P.lazy)((function(){return Promise.all([n.e(85),n.e(107)]).then(n.bind(n,83506))}))};const z=M.Z.actionFactory(V);var U=["fireVisibilityStatusChangeEvent"];function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const $=function(e){var t=e.fireVisibilityStatusChangeEvent,n=w()(e,U),r=n.router,o=r.history,i=r.location,c=r.match;(0,P.useEffect)((function(){t([B])}),[t]);var a=function(){var e=i.state.originUrl||"/";o.replace(e)};return(0,N.jsx)(z,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({appId:c.params.appId,onSuccess:a,onError:a,onCancel:a,navigationStrategy:R(o,c)},n))};var q={fireVisibilityStatusChangeEvent:u.Z.fireVisibilityStatusChangeEvent};const H=(0,s.connect)((function(e,t){var n=h(t.router.location.search);return{selection:c()(t.router.location,"state.selection",n.selection),actionProperties:c()(t.router.location,"state.definition.properties",n.actionProperties),locale:e.intl.locale}}),q)((0,a.ZP)($));var K=n(50600),Y=n(6766),G=n(78125),J=n(51272),X=n(34240),Q=n(10129),ee=n(24688);const te=function(e){var t=e.when,n=e.message;return(0,P.useEffect)((function(){return t&&ee.Z.activatePreventFromLeaving(),function(){ee.Z.deactivatePreventFromLeaving()}}),[t]),(0,N.jsx)(r.NL,{when:t,message:n})};var ne=n(87757),re=n.n(ne),oe=n(34857),ie=n(48901),ce=re().mark(ae);function ae(e,t,n){var r,o,i,c,a,s,u,l,p,d,f,y;return re().wrap((function(m){for(;;)switch(m.prev=m.next){case 0:if(r=n.detailParams,o=void 0===r?{}:r,i=n.intl,!(c=n.modifyFormDefinition)){m.next=7;break}return m.next=4,(0,oe.RE)(c,e,t);case 4:m.t0=m.sent,m.next=8;break;case 7:m.t0=e;case 8:return a=m.t0,u=(s=t||{}).entityName,l=s.entityId,p=o.entityName,d=o.entityId,f=o.showBackButton,y=f&&u===p&&l===d,m.abrupt("return",y?ie.Z.addBack(a,i):a);case 13:case"end":return m.stop()}}),ce)}const se=function(e){var t=e.loadDetailParams,n=e.router,r=e.setFormTouched,o=e.clearDetailParams,i=e.detailParams,c=e.appId,a=e.intl,s=e.dispatchEmittedAction,u=e.formTouched,l=e.locale,p=e.reportIds,d=e.fireVisibilityStatusChangeEvent,f=e.scrollBehaviour;(0,P.useEffect)((function(){return t(n.match.url),r(!1),function(){o()}}),[o,t,n.match.url,r]),(0,P.useEffect)((function(){d([L])}),[d]);var y,m,h,b,v,g=function(e){return a.formatMessage({id:e})},O=function(e){var t=e.id,r=e.relationName;n.history.push("".concat(n.match.url,"/").concat(r,"/").concat(t))},j=function(e){var t=e.id;r(!1);var o=n.match.url,i="/"!==o.substr(-1)?o+"/":o;n.history.push(i+t)},w=function(e){var t=e.touched;r(t)},x=function(){n.history.push(i.parentUrl)},S={back:function(){return(0,N.jsx)(Q.Z,{onClick:x,label:g("client.entity-browser.back")})}};return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(te,{when:u,message:g("client.entity-browser.detail.confirmTouchedFormLeave")}),i&&(0,N.jsx)(N.Fragment,{children:(y=i,m=y.entityName,h=y.entityId,b=y.formName,v=y.mode,(0,N.jsx)(J.ZP,{id:"".concat(c,"_detail_").concat(b,"_").concat(h),entityName:m,entityId:h,formName:b,mode:v,navigationStrategy:R(n.history,n.match,h),onSubGridRowClick:O,onEntityCreated:j,onEntityDeleted:x,onTouchedChange:w,emitAction:function(e){s(e)},theme:{},locale:l,modifyFormDefinition:function(t,n){return ae(t,n,e)},actionAppComponent:z,reportIds:p,customRenderedActions:S,listApp:X.ZP,docsApp:G.ZP,scrollBehaviour:f}))})]})};var ue={loadDetailParams:Y.E,clearDetailParams:Y.W8,setFormTouched:Y.A9,dispatchEmittedAction:K.Z.dispatchEmittedAction,fireVisibilityStatusChangeEvent:u.Z.fireVisibilityStatusChangeEvent};const le=(0,s.connect)((function(e,t){return{appId:e.entityBrowser.appId,detailParams:e.detail.detailParams,formTouched:e.detail.formTouched,scrollBehaviour:e.entityBrowser.scrollBehaviour,locale:e.intl.locale,actionAppComponent:z,modifyFormDefinition:e.input.modifyFormDefinition,reportIds:e.input.reportIds}}),ue)((0,a.ZP)(se));var pe=n(29441),de=["storeId","router","modifyFormDefinition","disableDetailView","fireVisibilityStatusChangeEvent"];function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var me=function(e){var t=e.entityKey,n=e.children;return(0,N.jsx)(F,{to:"detail/".concat(t),children:n})};const he=function(e){var t=e.storeId,n=e.router,r=e.modifyFormDefinition,o=e.disableDetailView,i=e.fireVisibilityStatusChangeEvent,c=w()(e,de);(0,P.useEffect)((function(){i([_])}),[i]);return(0,N.jsx)(X.ZP,ye(ye({},c),{},{onRowClick:function(e){o||n.history.push("/detail/".concat(e.id))},showLink:!o,navigationStrategy:ye(ye({},R(n.history,n.match)),{},{DetailLinkRelative:me}),searchFormPosition:"top",actionAppComponent:z,store:pe.Z.viewInfoSelector(t).store,onStoreCreate:function(e){pe.Z.persistViewInfo(t,{store:e},0)},modifyFormDefinition:r}))};var be={emitAction:function(e){return K.Z.dispatchEmittedAction(e)},fireVisibilityStatusChangeEvent:u.Z.fireVisibilityStatusChangeEvent};const ve=(0,s.connect)((function(e,t){var n="".concat(e.entityBrowser.appId,"_entity-browser-list");return{id:n,storeId:"".concat(n,"_").concat(t.router.history.location.pathname),locale:e.intl.locale,entityName:e.entityBrowser.entityName,formName:e.entityBrowser.formBase,scrollBehaviour:e.entityBrowser.scrollBehaviour,searchFormType:e.input.searchFormType||"simple_advanced",limit:e.input.limit,searchFilters:e.input.searchFilters,preselectedSearchFields:e.input.preselectedSearchFields,simpleSearchFields:e.input.simpleSearchFields,modifyFormDefinition:e.input.modifyFormDefinition,disableDetailView:e.input.disableDetailView,reportIds:e.input.reportIds}}),be)(he);var ge,Oe=n(88601),je=n(7281);const we=Z.ZP.div.withConfig({displayName:"StyledEntityBrowser"})(ge||(ge=S()(["\n && {\n background-color: ",";\n padding: ",";\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n }\n"])),Oe.Z.color("paper"),je.Z.space(0));var Pe;const xe=function(){return(0,N.jsxs)(we,{children:[Pe||(Pe=(0,N.jsx)(o.Z.Notifications,{})),(0,N.jsxs)(r.rs,{children:[(0,N.jsx)(r.AW,{path:"/",exact:!0,render:function(e){return(0,N.jsx)(ve,{router:e})}}),(0,N.jsx)(r.AW,{path:"/detail/:entityId*",render:function(e){return(0,N.jsx)(le,{router:e})}}),(0,N.jsx)(r.AW,{path:"/action/:appId*",render:function(e){return(0,N.jsx)(H,{router:e})}})]})]})}}}]);
|