tocco-admin 1.0.193 → 1.0.195
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 +12 -0
- package/dist/chunk-118.d011bfc9ae30a25004c1.js +11 -0
- package/dist/chunk-531.65350537fe496c276f98.js +1 -0
- package/dist/chunk-568.9aaa6c76aa73caf3c134.js +1 -0
- package/dist/{chunk-actions.5d172108971e5708d0e9.js → chunk-actions.54495c7055217b42d1b3.js} +1 -1
- package/dist/chunk-code-editor.08261e1156cdc35be9dd.js +1 -0
- package/dist/{chunk-docs-actions.0b6ae00107e9048fbb30.js → chunk-docs-actions.7ca0ae12a641fba2d6de.js} +1 -1
- package/dist/chunk-html-editor.fb482ba547cc12d85ce0.js +1 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-531.a63de251d552f1a4e3c2.js +0 -1
- package/dist/chunk-568.cf5cc52346c12d07fe3a.js +0 -1
- package/dist/chunk-947.b7886f7fc64d366e5922.js +0 -1
- package/dist/chunk-code-editor.8ea9556e602e09d40675.js +0 -6
- package/dist/chunk-vendor-icons.ee5f04dd263d993ea12e.js +0 -6
package/changelog.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
1.0.195
|
|
2
|
+
- show error message when deletion is not possible
|
|
3
|
+
|
|
4
|
+
1.0.194
|
|
5
|
+
- add error handling in evaluation-execution-participation-action
|
|
6
|
+
- add synchronous validation for pseudoSelect
|
|
7
|
+
- add error handling during loading
|
|
8
|
+
- add pseudo submitting which just blur form
|
|
9
|
+
- fix mandatory validation for pseudoSelect
|
|
10
|
+
- add back button
|
|
11
|
+
- add short link
|
|
12
|
+
|
|
1
13
|
1.0.193
|
|
2
14
|
- fix offline text in docs browser being cut off
|
|
3
15
|
- fix border radius of search boxes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
(self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[118],{41143:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},27418:e=>{"use strict";
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,c=o(e),u=1;u<arguments.length;u++){for(var l in a=Object(arguments[u]))n.call(a,l)&&(c[l]=a[l]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(c[s[d]]=a[s[d]])}}return c}},84059:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>A});var r,o=n(1024),i=n.n(o),a=Object.defineProperty,s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,l=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))c.call(t,n)&&l(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&l(e,n,t[n]);return e},f=(e,t)=>{var n={};for(var r in e)c.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&s)for(var r of s(e))t.indexOf(r)<0&&u.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 a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-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)}}i(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,a=40,c=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=a&&a<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let l,d;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=s.getTotalBits(e,l);if(o<=r){d=o;break}if(l>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&d<=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)}i(f.length==d);const h=8*t.getNumDataCodewords(l,n);i(f.length<=h),r(0,Math.min(4,h-f.length),f),r(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<h;e^=253)r(e,8,f);let p=[];for(;8*p.length<f.length;)p.push(0);return f.forEach(((e,t)=>p[t>>>3]|=e<<7-(7&t))),new t(l,n,p,c)}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);i(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;i(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,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)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,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],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=o-s%o,u=Math.floor(s/o);let l=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-a+(n<c?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),l.push(o.concat(i))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-a||n>=c)&&f.push(t[e])}));return i(f.length==s),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 i=0;i<2;i++){const a=t-i,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=o(e[n>>>3],7-(7&n)),n++)}}i(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,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*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 i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(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 i(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 i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(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 i(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 a=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 a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.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 a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.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*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.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 a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.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 s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(r||(r={})),(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={}))})(r||(r={})),(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={}))})(r||(r={}));var h=r,p={L:h.QrCode.Ecc.LOW,M:h.QrCode.Ecc.MEDIUM,Q:h.QrCode.Ecc.QUARTILE,H:h.QrCode.Ecc.HIGH},m=128,g="L",y="#FFFFFF",v="#000000",b=!1;
|
|
7
|
+
/**
|
|
8
|
+
* @license qrcode.react
|
|
9
|
+
* Copyright (c) Paul O'Shannessy
|
|
10
|
+
* SPDX-License-Identifier: ISC
|
|
11
|
+
*/function w(e,t=0){const n=[];return e.forEach((function(e,r){let o=null;e.forEach((function(i,a){if(!i&&null!==o)return n.push(`M${o+t} ${r+t}h${a-o}v1H${o+t}z`),void(o=null);if(a!==e.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?n.push(`M${a+t},${r+t} h1v1H${a+t}z`):n.push(`M${o+t},${r+t} h${a+1-o}v1H${o+t}z`)}}))})),n.join("")}function E(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function C(e,t,n,r){if(null==r)return null;const o=n?4:0,i=e.length+2*o,a=Math.floor(.1*t),s=i/t,c=(r.width||a)*s,u=(r.height||a)*s,l=null==r.x?e.length/2-c/2:r.x*s,d=null==r.y?e.length/2-u/2:r.y*s;let f=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(d);f={x:e,y:t,w:Math.ceil(c+l-e),h:Math.ceil(u+d-t)}}return{x:l,y:d,h:u,w:c,excavation:f}}var T=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function O(e){const t=e,{value:n,size:r=m,level:a=g,bgColor:s=y,fgColor:c=v,includeMargin:u=b,style:l,imageSettings:O}=t,R=f(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),A=null==O?void 0:O.src,S=(0,o.useRef)(null),x=(0,o.useRef)(null),[P,M]=(0,o.useState)(!1);(0,o.useEffect)((()=>{if(null!=S.current){const e=S.current,t=e.getContext("2d");if(!t)return;let o=h.QrCode.encodeText(n,p[a]).getModules();const i=u?4:0,l=o.length+2*i,d=C(o,r,u,O),f=x.current,m=null!=d&&null!==f&&f.complete&&0!==f.naturalHeight&&0!==f.naturalWidth;m&&null!=d.excavation&&(o=E(o,d.excavation));const g=window.devicePixelRatio||1;e.height=e.width=r*g;const y=r/l*g;t.scale(y,y),t.fillStyle=s,t.fillRect(0,0,l,l),t.fillStyle=c,T?t.fill(new Path2D(w(o,i))):o.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+i,n+i,1,1)}))})),m&&t.drawImage(f,d.x+i,d.y+i,d.w,d.h)}})),(0,o.useEffect)((()=>{M(!1)}),[A]);const _=d({height:r,width:r},l);let I=null;return null!=A&&(I=i().createElement("img",{src:A,key:A,style:{display:"none"},onLoad:()=>{M(!0)},ref:x})),i().createElement(i().Fragment,null,i().createElement("canvas",d({style:_,height:r,width:r,ref:S},R)),I)}function R(e){const t=e,{value:n,size:r=m,level:o=g,bgColor:a=y,fgColor:s=v,includeMargin:c=b,imageSettings:u}=t,l=f(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let T=h.QrCode.encodeText(n,p[o]).getModules();const O=c?4:0,R=T.length+2*O,A=C(T,r,c,u);let S=null;null!=u&&null!=A&&(null!=A.excavation&&(T=E(T,A.excavation)),S=i().createElement("image",{xlinkHref:u.src,height:A.h,width:A.w,x:A.x+O,y:A.y+O,preserveAspectRatio:"none"}));const x=w(T,O);return i().createElement("svg",d({height:r,width:r,viewBox:`0 0 ${R} ${R}`},l),i().createElement("path",{fill:a,d:`M0,0 h${R}v${R}H0z`,shapeRendering:"crispEdges"}),i().createElement("path",{fill:s,d:x,shapeRendering:"crispEdges"}),S)}var A=e=>{const t=e,{renderAs:n}=t,r=f(t,["renderAs"]);return"svg"===n?i().createElement(R,d({},r)):i().createElement(O,d({},r))}},36104:(e,t,n)=>{"use strict";var r=n(82637);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},9657:(e,t,n)=>{e.exports=n(36104)()},82637:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},77678:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(1024),o=n.n(r),i=n(99860),a=n.n(i);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(c(t)),t.handleErrored=t.handleErrored.bind(c(t)),t.handleChange=t.handleChange.bind(c(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(c(t)),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},i.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},i.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},i.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},i.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},i.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},i.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},i.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},i.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},i.componentDidMount=function(){this.explicitRender()},i.componentDidUpdate=function(){this.explicitRender()},i.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},i.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},i.handleRecaptchaRef=function(e){this.captcha=e},i.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,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,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return o().createElement("div",s({},t,{ref:this.handleRecaptchaRef}))},r}(o().Component);u.displayName="ReCAPTCHA",u.propTypes={sitekey:a().string.isRequired,onChange:a().func,grecaptcha:a().object,theme:a().oneOf(["dark","light"]),type:a().oneOf(["image","audio"]),tabindex:a().number,onExpired:a().func,onErrored:a().func,size:a().oneOf(["compact","normal","invisible"]),stoken:a().string,hl:a().string,badge:a().oneOf(["bottomright","bottomleft","inline"])},u.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var l=n(9657),d=n.n(l),f=n(8679),h=n.n(f);function p(){return p=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},p.apply(this,arguments)}var m={},g=0;var y="onloadcallback";const v=(b=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+y+"&render=explicit"},w=(w={callbackName:y,globalName:"grecaptcha"})||{},function(e){var t=e.displayName||e.name||"Component",n=function(t){var n,o;function i(e,n){var r;return(r=t.call(this,e,n)||this).state={},r.__scriptURL="",r}o=t,(n=i).prototype=Object.create(o.prototype),n.prototype.constructor=n,n.__proto__=o;var a=i.prototype;return a.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+g++),this.__scriptLoaderID},a.setupScriptURL=function(){return this.__scriptURL="function"==typeof b?b():b,this.__scriptURL},a.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},a.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=m[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[w.callbackName]},a.componentDidMount=function(){var e=this,t=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),r=w,o=r.globalName,i=r.callbackName,a=r.scriptId;if(o&&void 0!==window[o]&&(m[t]={loaded:!0,observers:{}}),m[t]){var s=m[t];return s&&(s.loaded||s.errored)?void this.asyncScriptLoaderHandleLoad(s):void(s.observers[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var c={};c[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)},m[t]={loaded:!1,observers:c};var u=document.createElement("script");for(var l in u.src=t,u.async=!0,w.attributes)u.setAttribute(l,w.attributes[l]);a&&(u.id=a);var d=function(e){if(m[t]){var n=m[t].observers;for(var r in n)e(n[r])&&delete n[r]}};i&&"undefined"!=typeof window&&(window[i]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),u.onload=function(){var e=m[t];e&&(e.loaded=!0,d((function(t){return!i&&(t(e),!0)})))},u.onerror=function(){var e=m[t];e&&(e.errored=!0,d((function(t){return t(e),!0})))},document.body.appendChild(u)},a.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===w.removeOnUnmount)for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n+=1)t[n].src.indexOf(e)>-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var r=m[e];r&&(delete r.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===w.removeOnUnmount&&delete m[e])},a.render=function(){var t=w.globalName,n=this.props,o=(n.asyncScriptOnLoad,n.forwardedRef),i=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}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(i[t]=void 0!==window[t]?window[t]:void 0),i.ref=o,(0,r.createElement)(e,i)},i}(r.Component),o=(0,r.forwardRef)((function(e,t){return(0,r.createElement)(n,p({},e,{forwardedRef:t}))}));return o.displayName="AsyncScriptLoader("+t+")",o.propTypes={asyncScriptOnLoad:d().func},h()(o,e)})(u);var b,w;const E=v},93485:(e,t,n)=>{"use strict";var r=n(34072);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},99860:(e,t,n)=>{e.exports=n(93485)()},34072:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},64593:(e,t,n)=>{"use strict";n.d(t,{q:()=>ge});var r,o,i,a,s=n(89324),c=n.n(s),u=n(83524),l=n.n(u),d=n(69590),f=n.n(d),h=n(1024),p=n.n(h),m=n(27418),g=n.n(m),y="bodyAttributes",v="htmlAttributes",b="titleAttributes",w={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},E=(Object.keys(w).map((function(e){return w[e]})),"charset"),C="cssText",T="href",O="http-equiv",R="innerHTML",A="itemprop",S="name",x="property",P="rel",M="src",_="target",I={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},N="defaultTitle",L="defer",k="encodeSpecialCharacters",j="onChangeClientState",D="titleTemplate",H=Object.keys(I).reduce((function(e,t){return e[I[t]]=t,e}),{}),F=[w.NOSCRIPT,w.SCRIPT,w.STYLE],U="data-react-helmet",z="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},B=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),W=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},$=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},q=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Q=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},V=function(e){var t=J(e,w.TITLE),n=J(e,D);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=J(e,N);return t||r||void 0},K=function(e){return J(e,j)||function(){}},G=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return W({},e,t)}),{})},X=function(e,t){return t.filter((function(e){return void 0!==e[w.BASE]})).map((function(e){return e[w.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},Z=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&oe("Helmet: "+e+' should be of type "Array". Instead found type "'+z(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||n===P&&"canonical"===e[n].toLowerCase()||c===P&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||s!==R&&s!==C&&s!==A||(n=s)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],c=g()({},r[s],o[s]);r[s]=c}return e}),[]).reverse()},J=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},ee=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout((function(){ee(e)}),0)}),te=function(e){return clearTimeout(e)},ne="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ee:n.g.requestAnimationFrame||ee,re="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||te:n.g.cancelAnimationFrame||te,oe=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},ie=null,ae=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,f=e.titleAttributes;ue(w.BODY,r),ue(w.HTML,o),ce(d,f);var h={baseTag:le(w.BASE,n),linkTags:le(w.LINK,i),metaTags:le(w.META,a),noscriptTags:le(w.NOSCRIPT,s),scriptTags:le(w.SCRIPT,u),styleTags:le(w.STYLE,l)},p={},m={};Object.keys(h).forEach((function(e){var t=h[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(m[e]=h[e].oldTags)})),t&&t(),c(e,p,m)},se=function(e){return Array.isArray(e)?e.join(""):e},ce=function(e,t){void 0!==e&&document.title!==e&&(document.title=se(e)),ue(w.TITLE,t)},ue=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(U),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var c=a[s],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute(U):n.getAttribute(U)!==a.join(",")&&n.setAttribute(U,a.join(","))}},le=function(e,t){var n=document.head||document.querySelector(w.HEAD),r=n.querySelectorAll(e+"["+"data-react-helmet]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===R)n.innerHTML=t.innerHTML;else if(r===C)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(U,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},de=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[I[n]||n]=e[n],t}),t)},he=function(e,t,n){switch(e){case w.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[U]=!0,o=fe(n,r),[p().createElement(w.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=de(n),i=se(t);return o?"<"+e+' data-react-helmet="true" '+o+">"+Q(i,r)+"</"+e+">":"<"+e+' data-react-helmet="true">'+Q(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case y:case v:return{toComponent:function(){return fe(t)},toString:function(){return de(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[U]=!0,r);return Object.keys(t).forEach((function(e){var n=I[e]||e;if(n===R||n===C){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),p().createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===R||e===C)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+Q(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===F.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},pe=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,f=e.titleAttributes;return{base:he(w.BASE,t,r),bodyAttributes:he(y,n,r),htmlAttributes:he(v,o,r),link:he(w.LINK,i,r),meta:he(w.META,a,r),noscript:he(w.NOSCRIPT,s,r),script:he(w.SCRIPT,c,r),style:he(w.STYLE,u,r),title:he(w.TITLE,{title:d,titleAttributes:f},r)}},me=l()((function(e){return{baseTag:X([T,_],e),bodyAttributes:G(y,e),defer:J(e,L),encode:J(e,k),htmlAttributes:G(v,e),linkTags:Z(w.LINK,[P,T],e),metaTags:Z(w.META,[S,E,O,x,A],e),noscriptTags:Z(w.NOSCRIPT,[R],e),onChangeClientState:K(e),scriptTags:Z(w.SCRIPT,[M,R],e),styleTags:Z(w.STYLE,[C],e),title:V(e),titleAttributes:G(b,e)}}),(function(e){ie&&re(ie),e.defer?ie=ne((function(){ae(e,(function(){ie=null}))})):(ae(e),ie=null)}),pe)((function(){return null})),ge=(o=me,a=i=function(e){function t(){return B(this,t),q(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!f()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case w.SCRIPT:case w.NOSCRIPT:return{innerHTML:t};case w.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return W({},r,((t={})[n.type]=[].concat(r[n.type]||[],[W({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case w.TITLE:return W({},o,((t={})[r.type]=a,t.titleAttributes=W({},i),t));case w.BODY:return W({},o,{bodyAttributes:W({},i)});case w.HTML:return W({},o,{htmlAttributes:W({},i)})}return W({},o,((n={})[r.type]=W({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=W({},t);return Object.keys(e).forEach((function(t){var r;n=W({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return p().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[H[n]||n]=e[n],t}),t)}($(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case w.LINK:case w.META:case w.NOSCRIPT:case w.SCRIPT:case w.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=$(e,["children"]),r=W({},n);return t&&(r=this.mapChildrenToProps(t,r)),p().createElement(o,r)},Y(t,null,[{key:"canUseDOM",set:function(e){o.canUseDOM=e}}]),t}(p().Component),i.propTypes={base:c().object,bodyAttributes:c().object,children:c().oneOfType([c().arrayOf(c().node),c().node]),defaultTitle:c().string,defer:c().bool,encodeSpecialCharacters:c().bool,htmlAttributes:c().object,link:c().arrayOf(c().object),meta:c().arrayOf(c().object),noscript:c().arrayOf(c().object),onChangeClientState:c().func,script:c().arrayOf(c().object),style:c().arrayOf(c().object),title:c().string,titleAttributes:c().object,titleTemplate:c().string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var e=o.rewind();return e||(e=pe({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);ge.renderStatic=ge.rewind},17579:(e,t,n)=>{"use strict";var r=n(80070);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},89324:(e,t,n)=>{e.exports=n(17579)()},80070:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},83524:(e,t,n)=>{"use strict";var r,o=n(1024),i=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var c,u=[];function l(){c=e(u.map((function(e){return e.props}))),d.canUseDOM?t(c):n&&(c=n(c))}var d=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return c},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,u=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){u.push(this),l()},a.componentDidUpdate=function(){l()},a.componentWillUnmount=function(){var e=u.indexOf(this);u.splice(e,1),l()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(d,"canUseDOM",s),d}}},14149:(e,t,n)=>{"use strict";function r(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}n.r(t),n.d(t,{default:()=>i});const i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],i=t&&t.split("/")||[],a=e&&r(e),s=t&&r(t),c=a||s;if(e&&r(e)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var u=void 0;if(i.length){var l=i[i.length-1];u="."===l||".."===l||""===l}else u=!1;for(var d=0,f=i.length;f>=0;f--){var h=i[f];"."===h?o(i,f):".."===h?(o(i,f),d++):d&&(o(i,f),d--)}if(!c)for(;d--;d)i.unshift("..");!c||""===i[0]||i[0]&&r(i[0])||i.unshift("");var p=i.join("/");return u&&"/"!==p.substr(-1)&&(p+="/"),p}},54545:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var 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};const o=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));var o=void 0===t?"undefined":r(t);if(o!==(void 0===n?"undefined":r(n)))return!1;if("object"===o){var i=t.valueOf(),a=n.valueOf();if(i!==t||a!==n)return e(i,a);var s=Object.keys(t),c=Object.keys(n);return s.length===c.length&&s.every((function(r){return e(t[r],n[r])}))}return!1}},30670:e=>{"use strict";e.exports=function(){}},90655:(e,t,n)=>{"use strict";function r(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));i+=e[s++]}else i+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:i}),n=s}else{for(var a="",s=n+1;s<e.length;){var c=e.charCodeAt(s);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,i=void 0===r?"./":r,a="[^".concat(o(t.delimiter||"/#?"),"]+?"),s=[],c=0,u=0,l="",d=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},f=function(e){var t=d(e);if(void 0!==t)return t;var r=n[u],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(e))},h=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t};u<n.length;){var p=d("CHAR"),m=d("NAME"),g=d("PATTERN");if(m||g){var y=p||"";-1===i.indexOf(y)&&(l+=y,y=""),l&&(s.push(l),l=""),s.push({name:m||c++,prefix:y,suffix:"",pattern:g||a,modifier:d("MODIFIER")||""})}else{var v=p||d("ESCAPED_CHAR");if(v)l+=v;else if(l&&(s.push(l),l=""),d("OPEN")){y=h();var b=d("NAME")||"",w=d("PATTERN")||"",E=h();f("CLOSE"),s.push({name:b||(w?c++:""),pattern:b&&!w?a:w,prefix:y,suffix:E,modifier:d("MODIFIER")||""})}else f("END")}}return s}function o(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(e){return e&&e.sensitive?"":"i"}function a(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,a=void 0!==r&&r,s=n.start,c=void 0===s||s,u=n.end,l=void 0===u||u,d=n.encode,f=void 0===d?function(e){return e}:d,h=n.delimiter,p=void 0===h?"/#?":h,m=n.endsWith,g="[".concat(o(void 0===m?"":m),"]|$"),y="[".concat(o(p),"]"),v=c?"^":"",b=0,w=e;b<w.length;b++){var E=w[b];if("string"==typeof E)v+=o(f(E));else{var C=o(f(E.prefix)),T=o(f(E.suffix));if(E.pattern)if(t&&t.push(E),C||T)if("+"===E.modifier||"*"===E.modifier){var O="*"===E.modifier?"?":"";v+="(?:".concat(C,"((?:").concat(E.pattern,")(?:").concat(T).concat(C,"(?:").concat(E.pattern,"))*)").concat(T,")").concat(O)}else v+="(?:".concat(C,"(").concat(E.pattern,")").concat(T,")").concat(E.modifier);else"+"===E.modifier||"*"===E.modifier?v+="((?:".concat(E.pattern,")").concat(E.modifier,")"):v+="(".concat(E.pattern,")").concat(E.modifier);else v+="(?:".concat(C).concat(T,")").concat(E.modifier)}}if(l)a||(v+="".concat(y,"?")),v+=n.endsWith?"(?=".concat(g,")"):"$";else{var R=e[e.length-1],A="string"==typeof R?y.indexOf(R[R.length-1])>-1:void 0===R;a||(v+="(?:".concat(y,"(?=").concat(g,"))?")),A||(v+="(?=".concat(y,"|").concat(g,")"))}return new RegExp(v,i(n))}(r(e,n),t,n)}function s(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return s(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),i(n))}(e,t,n):a(e,t,n)}n.d(t,{Bo:()=>s})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[531],{39233:(n,e,t)=>{t.d(e,{Z:()=>m});var r,o,i,c=t(28655),a=t.n(c),s=t(38205),l=t(7281),d=t(24875),u=t(88162),p=t(34206),f=t(85893),h=s.ZP.div.withConfig({displayName:"StyledErrorView"})(r||(r=a()(["\n width: 50dvw;\n max-width: 650px;\n padding: ",";\n text-align: center;\n margin: 20dvh auto auto;\n\n h1 {\n margin: 0 auto;\n }\n"])),l.Z.space(1)),g=s.ZP.span.withConfig({displayName:"StyledIconWrapper"})(o||(o=a()(["\n color: ",";\n font-size: ",";\n"])),d.FS.color("signal.danger"),l.Z.font(13.4));const m=function(n){var e=n.title,t=n.message;return(0,f.jsxs)(h,{children:[i||(i=(0,f.jsx)(g,{children:(0,f.jsx)(u.Z,{icon:"times"})})),(0,f.jsx)(p.ZP.H1,{children:e}),(0,f.jsx)(p.ZP.Span,{children:t})]})}},88531:(n,e,t)=>{t.r(e),t.d(e,{default:()=>Fo});var r=t(74806),o=t(50558),i=t(30604),c=t(28542),a=t(1024),s=t.n(a),l=t(64593),d=t(50258),u=t(88757),p=t(63038),f=t.n(p),h=t(31955),g=t(44012),m=t(6966),b=t(59713),y=t.n(b),x=t(45697),v=t.n(x),j=t(19743),O=t(19241),w=t(23369),P=t(65378),Z=t(16911),S=t(97324),k=t(83676),C=t(86507),E=t(62119),D=t(85893);function T(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}var N="login",M=["loginSuccess","register","resize"],B={username:E.i.USERNAME_FORM,"password-request":E.i.PASSWORD_REQUEST,login:E.i.LOGIN_FORM},I=function(n,e,t,r,o){var i=B[e.entryPage]||E.i.LOGIN_FORM,c=[k.FO(!1),k.ZX(!1),S.b6(e.username||""),S.pY(i),S.oO(i)],a=!!e.showTitle,s=(0,D.jsx)(Z.Z,{showTitle:a}),l=m.Z.createStore(C.Z,C.v,e,N);return w.Z.setInputEnvs(e),O.Z.addToStore(l,(function(n){return m.Z.getEvents(M,n.input)})),j.Z.addToStore(l,!0,["console","remote"]),m.Z.createApp(N,s,l,{input:e,actions:c,publicPath:r,textResourceModules:["login"],customTheme:o})},L=function(n){return m.Z.useApp({initApp:I,props:n,packageName:N,externalEvents:M}).component};L.propTypes=function(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?T(Object(t),!0).forEach((function(e){y()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}({showTitle:v().bool,locale:v().string,entryPage:v().oneOf(["username","login","password-request"]),username:v().string,setLocale:v().func,backendUrl:v().string,redirectUrl:v().string,appContext:P.Z.propTypes},M.reduce((function(n,e){return n[e]=v().func,n}),{}));var R=t(61809),A="login";const F=L;m.Z.createBundleableApp(A,I,L),m.Z.createBundleableApp("password-update",R.r,R.L);var W=t(44271);const U=t.p+"imgs/tocco_white.5c80050a55945844e89ffaf71395e64b.svg";var z=t(28655),_=t.n(z),G=t(38205),H=t(11347),q=t(54608),V=t(7281),X=t(69829),K=t(24875);const Y=t.p+"imgs/tocco-circle.7ab925bf473f813493f00f069ed9746e.svg";var $,J,Q,nn,en,tn,rn,on,cn,an,sn,ln,dn,un,pn,fn,hn=(0,G.vJ)($||($=_()(["\n @media (max-width: 1024px) {\n body {\n overflow: auto !important;\n }\n }\n"]))),gn=G.ZP.div.withConfig({displayName:"StyledLogin"})(J||(J=_()(["\n height: 100%;\n background-image: url(",");\n background-repeat: no-repeat;\n background-size: 61vw;\n background-position-y: -25vw;\n background-position-x: -41vw;\n overflow-y: auto;\n ","\n\n .tocco-sso-login {\n display: flex;\n justify-content: space-between;\n margin-bottom: 1.8rem;\n }\n\n @media (max-width: 1024px) {\n background-size: 2000px;\n background-position: 50% -1850px;\n }\n\n @media (max-width: 425px) {\n background-position: 50% -1890px;\n }\n"])),Y,H.C),mn=(0,G.ZP)(q.XU).withConfig({displayName:"StyledHeadingLogin"})(Q||(Q=_()(["\n && {\n font-size: ",";\n }\n"])),V.Z.font(11)),bn=(0,G.ZP)(X.Fe).withConfig({displayName:"StyledSpanLogin"})(nn||(nn=_()(["\n && {\n text-align: center;\n font-size: ",";\n display: inline-block;\n width: 100%;\n margin: 1rem 0 1.8rem;\n }\n"])),V.Z.font(1.3)),yn=G.ZP.div.withConfig({displayName:"StyledLoginWrapper"})(en||(en=_()(["\n max-width: 410px;\n margin: 6% 5% 0 28%;\n\n && {\n .tocco-login * {\n font-size: ",";\n }\n\n @media (max-width: 1024px) {\n margin: 14rem auto 0;\n padding-left: 2rem;\n padding-right: 2rem;\n }\n\n @media (max-width: 425px) {\n margin-top: 12rem;\n }\n }\n"])),V.Z.font(1.3)),xn=G.ZP.img.withConfig({displayName:"StyledSloganImg"})(tn||(tn=_()(["\n transform: rotate(270deg);\n position: relative;\n top: 12.5vw;\n left: -8%;\n width: 25vw;\n\n @media (max-width: 1024px) {\n display: none;\n }\n"]))),vn=G.ZP.img.withConfig({displayName:"StyledMobileSloganImg"})(rn||(rn=_()(["\n display: none;\n max-width: 400px;\n width: 95%;\n height: auto;\n position: relative;\n margin: auto;\n top: 45px;\n\n @media (max-width: 1024px) {\n display: block;\n }\n\n @media (max-width: 425px) {\n max-width: 280px;\n }\n"]))),jn=(0,G.ZP)(X.Fe).withConfig({displayName:"StyledSsoMsg"})(on||(on=_()(["\n && {\n display: inline-block;\n text-align: center;\n font-weight: ",";\n width: 100%;\n color: ",";\n }\n"])),K.FS.fontWeight("bold"),K.FS.color("signal.info")),On=(0,G.ZP)(jn).withConfig({displayName:"StyledSsoError"})(cn||(cn=_()(["\n && {\n color: ",";\n }\n"])),K.FS.color("signal.danger"));const wn=function(n){var e,t=n.ssoAvailable,r=n.loginSuccessful,o=n.checkSsoAvailable,i=(0,a.useState)(!1),c=f()(i,2),s=c[0],l=c[1],d=(0,a.useState)(!1),u=f()(d,2),p=u[0],m=u[1],b=h.Z.get("sso-autologin");(0,a.useEffect)((function(){o()}),[o]);var y=function(n){var e=n.successful,t=n.provider,o=n.registration;e?(h.Z.set("sso-autologin",t,{expires:365}),r(30)):!e&&o?m(!0):l(!0)},x=function(){return(0,D.jsxs)(D.Fragment,{children:[e||(e=(0,D.jsx)(W.ZP,{ssoLoginEndpoint:"/sso",loginCompleted:y,autoLogin:b})),p&&(an||(an=(0,D.jsx)(jn,{breakWords:!0,children:(0,D.jsx)(g.Z,{id:"client.sso-login.registration"})}))),s&&(sn||(sn=(0,D.jsx)(On,{breakWords:!0,children:(0,D.jsx)(g.Z,{id:"client.sso-login.error"})}))),ln||(ln=(0,D.jsx)(bn,{children:(0,D.jsx)(g.Z,{id:"client.admin.loginChoice"})}))]})};return(0,D.jsxs)(D.Fragment,{children:[dn||(dn=(0,D.jsx)(hn,{})),(0,D.jsxs)(gn,{children:[un||(un=(0,D.jsx)(vn,{src:U,alt:"Tocco Slogan",height:"42.3",width:"460"})),pn||(pn=(0,D.jsx)(xn,{src:U,alt:"Tocco Slogan",height:"42.3",width:"460"})),(0,D.jsxs)(yn,{children:[fn||(fn=(0,D.jsx)(mn,{children:(0,D.jsx)(g.Z,{id:"client.admin.welcomeTitle"})})),t&&(0,D.jsx)(x,{}),(0,D.jsx)(F,{loginSuccess:function(n){var e=n.timeout;r(e)},showTitle:!1})]})]})]})};var Pn={loginSuccessful:u.lm,checkSsoAvailable:u.Wy};const Zn=(0,o.connect)((function(n,e){return{ssoAvailable:n.session.ssoAvailable}}),Pn)((0,r.ZP)(wn));var Sn,kn,Cn,En,Dn,Tn=t(23887),Nn=t(29785),Mn=t(54675),Bn=t(36392),In=t(56746),Ln=t(88601),Rn=G.ZP.div.withConfig({displayName:"StyledBurgerButton"})(Sn||(Sn=_()(["\n width: 24px;\n height: 24px;\n position: absolute;\n transform: rotate(0deg);\n transition: 0.5s ease-in-out;\n cursor: pointer;\n\n span {\n display: block;\n position: absolute;\n height: 2px;\n width: 100%;\n background: ",";\n opacity: 1;\n left: 0;\n transform: rotate(0deg);\n transition: 0.25s ease-in-out;\n\n &:nth-child(1) {\n top: 0;\n transform-origin: left center;\n }\n\n &:nth-child(2) {\n top: 6.5px;\n transform-origin: left center;\n }\n\n &:nth-child(3) {\n top: 13.5px;\n transform-origin: left center;\n }\n }\n ","\n"])),Ln.Z.color("paper"),(function(n){return n.isOpen&&(0,G.iv)(kn||(kn=_()(["\n span:nth-child(1) {\n transform: rotate(45deg);\n top: -3px;\n left: 0;\n }\n\n span:nth-child(2) {\n width: 0;\n opacity: 0;\n }\n\n span:nth-child(3) {\n transform: rotate(-45deg);\n top: 14.3px;\n left: 0;\n }\n "])))}));const An=(0,r.ZP)((function(n){var e,t=n.isOpen,r=n.intl;return(0,D.jsxs)(Rn,{isOpen:t,"aria-label":(e="client.component.burgerButton.Label",r.formatMessage({id:e})),children:[Cn||(Cn=(0,D.jsx)("span",{})),En||(En=(0,D.jsx)("span",{})),Dn||(Dn=(0,D.jsx)("span",{}))]})}));var Fn=t(29441),Wn=t(5303),Un=t(96801);function zn(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}const _n=function(n){var e=(0,o.useStore)(),r=(0,a.useMemo)((function(){return Un.Z.loadRoute(e,{},(function(){return Promise.all([t.e(802),t.e(85)]).then(t.bind(t,57387))}),"docs")}),[e]);return(0,D.jsx)(r,function(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?zn(Object(t),!0).forEach((function(e){y()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):zn(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}({},n))};var Gn=t(57557),Hn=t.n(Gn),qn=t(14176),Vn=t.n(qn),Xn=t(70696);function Kn(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}var Yn=["location.key","location.search","location.hash"];function $n(n,e){var t=Xn.Z.difference(n,e),r=Vn()(Hn()(t,Yn),(function(n){return 0===Object.keys(n).length}));return 0===Object.entries(r).length}const Jn=(0,a.memo)((function(n){return(0,D.jsx)(o.ReactReduxContext.Consumer,{children:function(e){var r=e.store,o=Un.Z.loadRoute(r,{},(function(){return Promise.all([t.e(802),t.e(85),t.e(141)]).then(t.bind(t,84007))}));return(0,D.jsx)(o,function(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Kn(Object(t),!0).forEach((function(e){y()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Kn(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}({},n))}})}),$n);var Qn,ne=t(34206);const ee=function(n){return Qn||(Qn=(0,D.jsx)(ne.ZP.H2,{children:"Settings"}))};var te,re=t(39233),oe=t(7081),ie=t(87686),ce=t(67672),ae=t(88162),se=t(78958),le=t(36589),de=t(96559),ue=t(40917);const pe=(0,G.ZP)(de.rU).withConfig({shouldForwardProp:function(n,e){return!["labelVisibility"].includes(n)&&e(n)}}).withConfig({displayName:"StyledRouterLinkButton"})(te||(te=_()(["\n text-decoration: none;\n\n &:hover,\n &:focus {\n text-decoration: none; // nice2 reset\n }\n ","\n"])),ue.j);function fe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function he(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?fe(Object(t),!0).forEach((function(e){y()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):fe(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}const ge=s().forwardRef((function(n,e){var t=n.aria,r=n.icon,o=n.ink,i=n.label,c=n.iconOnly,a=n.children,s=(0,ce.yq)().labelVisibility;return(0,D.jsxs)(pe,he(he(he({ref:e},t),n),{},{ink:o||se.Z.ink.BASE,"data-cy":n["data-cy"],title:i,labelVisibility:s,children:[r&&(0,D.jsx)(ae.Z,{icon:r}),!c&&i?(0,D.jsx)(le.s,{children:i}):a||""]}))}));var me=t(57210),be=t(5399),ye=t(49546),xe=t(41291);const ve=t.p+"imgs/tocco_red.cb14a8eb6c3356bd83b114c13267546d.svg";var je,Oe,we,Pe,Ze,Se,ke,Ce,Ee,De,Te,Ne,Me,Be,Ie,Le,Re,Ae=G.ZP.div.withConfig({displayName:"StyledFormattedMessageWrapper"})(je||(je=_()(["\n font-size: ",";\n margin-top: ",";\n"])),V.Z.font(-1.5),V.Z.space(.5)),Fe=G.ZP.div.withConfig({displayName:"StyledBlockWrapper"})(Oe||(Oe=_()(["\n margin-top: ",";\n"])),V.Z.space(.5)),We=G.ZP.img.withConfig({displayName:"StyledLogo"})(we||(we=_()(["\n margin-top: ",";\n width: 80%;\n height: auto;\n"])),V.Z.space(1));const Ue=function(n){var e=n.niceVersion,r=n.niceRevision,o=n.buildTimestamp,i=n.intl,c=function(n){return i.formatMessage({id:n})},a=t(38655),s=(0,ye.default)(new Date(o),"dd.MM.yyyy HH:mm");return(0,D.jsxs)(ne.ZP.Span,{children:[Pe||(Pe=(0,D.jsx)(We,{src:ve,height:"53.34",width:"580",alt:"tocco-logo"})),(0,D.jsx)("div",{dangerouslySetInnerHTML:{__html:c("client.admin.tocco.address")}}),(0,D.jsxs)(ne.ZP.P,{children:[(0,D.jsx)(xe.Z,{href:c("client.admin.tocco.homepage"),neutral:!0,target:"_blank",children:Ze||(Ze=(0,D.jsx)(g.Z,{id:"client.admin.tocco.homepage"}))}),Se||(Se=(0,D.jsx)("br",{})),(0,D.jsx)(xe.Z,{href:"mailto:"+c("client.admin.tocco.email"),neutral:!0,target:"_blank",children:ke||(ke=(0,D.jsx)(g.Z,{id:"client.admin.tocco.email"}))}),Ce||(Ce=(0,D.jsx)("br",{})),(0,D.jsx)(xe.Z,{href:"tel:"+c("client.admin.tocco.phone"),neutral:!0,target:"_blank",children:Ee||(Ee=(0,D.jsx)(g.Z,{id:"client.admin.tocco.phone"}))})]}),(0,D.jsx)(Fe,{children:(0,D.jsxs)(ne.ZP.P,{children:[De||(De=(0,D.jsx)(g.Z,{id:"client.admin.about.versionLabel"})),": ",e,Te||(Te=(0,D.jsx)("br",{})),Ne||(Ne=(0,D.jsx)(g.Z,{id:"client.admin.about.revisionLabel"})),": ",r,Me||(Me=(0,D.jsx)("br",{})),Be||(Be=(0,D.jsx)(g.Z,{id:"client.admin.about.clientVersionLabel"})),": ",a.version,Ie||(Ie=(0,D.jsx)("br",{})),Le||(Le=(0,D.jsx)(g.Z,{id:"client.admin.about.buildTimeLabel"})),": ",s]})}),Re||(Re=(0,D.jsx)(Ae,{children:(0,D.jsx)(g.Z,{id:"client.admin.copyright"})}))]})};const ze=(0,o.connect)((function(n){return{niceVersion:n.preferences.serverSettings.niceVersion,niceRevision:n.preferences.serverSettings.niceRevision,buildTimestamp:n.preferences.serverSettings.buildTimestamp}}),null)((0,r.ZP)(Ue));var _e,Ge,He,qe,Ve,Xe,Ke,Ye,$e,Je,Qe=t(30314),nt=t.n(Qe),et=t(83590),tt=t(90169),rt=t(80470),ot=t(6699),it=G.ZP.div.withConfig({displayName:"StyledBackgroundCover"})(_e||(_e=_()(["\n position: absolute;\n z-index: 2; // higher than StyledTether to prevent cover on scroll\n height: 40px;\n width: 100%;\n background-color: ",";\n"])),K.FS.color("paper")),ct=G.ZP.div.withConfig({displayName:"StyledHeader"})(Ge||(Ge=_()(["\n grid-area: header;\n width: calc(100vw - 50px); // absolute width necessary for FireFox\n height: 40px;\n padding-right: 10px;\n margin-left: 40px;\n position: relative;\n z-index: 3; // higher than StyledBackgroundCover to enable button interactions\n"]))),at=G.ZP.div.withConfig({displayName:"StyledConfig"})(He||(He=_()(["\n z-index: 2;\n display: flex;\n justify-content: flex-end;\n flex-wrap: wrap;\n padding: 7px;\n"]))),st=G.ZP.div.withConfig({displayName:"StyledBackgroundLogo"})(qe||(qe=_()(["\n position: absolute;\n z-index: 3; // higher than StyledBackgroundCover to prevent coverage\n height: 40px;\n width: 100%;\n background-color: ",";\n mask-image: url(",");\n mask-repeat: no-repeat;\n mask-position: -300px -900px;\n"])),(function(n){var e=n.runEnv,t=n.theme;return"PRODUCTION"===e?t.colors.primary:t.colors.secondary}),Y),lt=G.ZP.div.withConfig({displayName:"StyledPopper"})(Ve||(Ve=_()(["\n width: 350px;\n z-index: 1001; // higher than bm-overlay\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);\n border-radius: ",";\n"])),K.FS.radii("menu")),dt=G.ZP.span.withConfig({displayName:"StyledNotificationBellWrapper"})(Xe||(Xe=_()(["\n position: relative;\n"]))),ut=(0,G.ZP)(rt.Z).withConfig({displayName:"StyledBall"})(Ke||(Ke=_()(["\n margin-left: ",";\n"])),V.Z.space(-.5)),pt=G.ZP.span.withConfig({displayName:"StyledRedDot"})(Ye||(Ye=_()(["\n width: 7px;\n height: 7px;\n position: absolute;\n top: 3px;\n left: 21.5px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"])),K.FS.color("secondaryLight")),ft=((0,G.ZP)(ot.Z).withConfig({displayName:"StyledHeaderLink"})($e||($e=_()(["\n display: inline-block;\n padding: "," ",";\n"])),V.Z.space(-2.1),V.Z.space(0)),G.ZP.span.withConfig({displayName:"StyledBallMenuWrapper"})(Je||(Je=_()(["\n display: flex;\n margin-top: 2px;\n\n "," {\n font-size: ",";\n }\n"])),ut,V.Z.font(1)));const ht=function(n){var e=n.unreadNotificationKeys,t=n.onClick,r=n.innerRef;return e.length>0&&(0,D.jsx)(pt,{onClick:t,ref:r})};const gt=(0,o.connect)((function(n){return{unreadNotificationKeys:n.notification.center.unreadNotificationKeys}}),null)((0,r.ZP)(ht));function mt(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function bt(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?mt(Object(t),!0).forEach((function(e){y()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):mt(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var yt=[{name:"offset",options:{offset:[0,3]}},{name:"preventOverflow",options:{padding:35}}];const xt=function(){var n=(0,a.useState)(!1),e=f()(n,2),t=e[0],r=e[1],o=(0,a.useRef)(null),c=(0,a.useRef)(null),s=(0,a.useRef)(null),l=function(n){c.current&&!c.current.contains(n.target)&&o.current&&!o.current.contains(n.target)&&s.current&&!s.current.contains(n.target)&&r(!1)};(0,a.useEffect)((function(){return document.addEventListener("mousedown",l),function(){document.removeEventListener("mousedown",l)}}),[o,c]);var d=(0,et.D)(o.current,c.current,{modifiers:yt}),u=d.styles,p=d.attributes;return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(dt,{title:"notifications",children:[(0,D.jsx)(ut,{onClick:function(){return r(!t)},icon:"bell",ref:o}),(0,D.jsx)("span",{ref:s,children:(0,D.jsx)(gt,{onClick:function(){return r(!t)}})})]}),nt().createPortal((0,D.jsx)(lt,bt(bt({ref:c,style:u.popper},p.popper),{},{children:t&&(0,D.jsx)(i.Z.NotificationCenter,{navigationStrategy:(0,tt.ZP)()})})),document.body)]})};var vt,jt,Ot,wt,Pt,Zt,St,kt,Ct;const Et=function(n){var e,t=n.username,r=n.currentBusinessUnit,o=n.businessUnits,i=n.loadBusinessUnits,c=n.changeBusinessUnit,a=n.doLogout,s=n.runEnv,l=n.niceVersion,d=n.openModalComponent,u=n.removeModalComponent,p=n.info,f=n.intl,h=n.setMenuOpen,m=function(){0===o.length&&i()},b=function(){var n,e=function(){u("passwordUpdateModal"),p("success","client.login.passwordUpdate.success")};d("passwordUpdateModal","client.login.passwordUpdate.title",null,(function(){return n||(n=(0,D.jsx)(R.L,{username:t,success:e}))}),!0)},y=function(){var n,e=function(){u("passwordUpdateModal")};d("passwordUpdateModal","client.actions.two-factor-connector.title",null,(function(){return n||(n=(0,D.jsx)(oe.Z,{onSuccess:e}))}),!0)},x=o.map((function(n){return(0,D.jsx)(ie.Z,{disabled:n.id===r.id,onClick:function(){return c(n.id)},children:n.label},"buMenu-".concat(n.id))})),v=function(){return h(!1)},j=function(n){return f.formatMessage({id:n})},O=l&&(0,D.jsx)(ie.Z,{onClick:function(){window.open(function(n){var e=n.split(".").map((function(n,e){return 0===e?n:n.padStart(2,"0")})).join("");return"https://".concat(e,".docs.tocco.ch/")}(l),"_blank")},children:vt||(vt=(0,D.jsx)(g.Z,{id:"client.admin.menu.doc"}))}),w=(0,D.jsx)(ie.Z,{onClick:function(){window.open("/nice2/swagger","_blank")},children:jt||(jt=(0,D.jsx)(g.Z,{id:"client.admin.menu.restDoc"}))}),P=(0,D.jsx)(ie.Z,{onClick:function(){d("about",null,null,(function(){return Ot||(Ot=(0,D.jsx)(ze,{}))}),!0)},children:wt||(wt=(0,D.jsx)(g.Z,{id:"client.admin.menu.aboutToccoTitle"}))});return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(st,{runEnv:s}),Pt||(Pt=(0,D.jsx)(it,{})),(0,D.jsx)(ct,{children:(0,D.jsx)(ce.ZP,{children:function(n){return(0,D.jsxs)(at,{ref:n,children:[(0,D.jsx)(ge,{to:"/dashboard/reload",onClick:v,icon:"house-blank",label:j("client.admin.dashboard")}),(0,D.jsx)(me.Z,{label:r.label,onOpen:m,icon:"suitcase",children:x}),e||(e=(0,D.jsxs)(me.Z,{label:t,icon:"user",children:[(0,D.jsx)(ie.Z,{disabled:!0,children:t}),(0,D.jsx)(ie.Z,{onClick:b,children:Zt||(Zt=(0,D.jsx)(g.Z,{id:"client.admin.menu.passwordUpdate"}))}),(0,D.jsx)(ie.Z,{onClick:y,children:St||(St=(0,D.jsx)(g.Z,{id:"client.admin.menu.twoFactorConnector"}))}),(0,D.jsx)(ie.Z,{onClick:a,children:kt||(kt=(0,D.jsx)(g.Z,{id:"client.admin.menu.logout"}))})]})),(0,D.jsxs)(ft,{children:[(0,D.jsxs)(be.Z,{buttonProps:{icon:"question-circle",title:j("client.admin.header.help")},children:[O,w,P]}),Ct||(Ct=(0,D.jsx)(xt,{}))]})]})}})})]})};var Dt={doLogout:u.Qk,loadBusinessUnits:u.CB,changeBusinessUnit:u.EW,openModalComponent:i.Z.modal,removeModalComponent:i.Z.removeModal,info:i.Z.toaster,setMenuOpen:Tn.gG};const Tt=(0,o.connect)((function(n,e){return{username:n.session.username,currentBusinessUnit:n.session.currentBusinessUnit,businessUnits:n.session.businessUnits,runEnv:n.preferences.serverSettings.runEnv,niceVersion:n.preferences.serverSettings.niceVersion}}),Dt)((0,r.ZP)(Et));var Nt,Mt,Bt,It,Lt,Rt,At,Ft,Wt=t(319),Ut=t.n(Wt),zt=t(61569),_t=t(20534),Gt=t(30759),Ht=G.ZP.div.withConfig({displayName:"StyledMenuEntry"})(Nt||(Nt=_()(["\n ","\n position: relative;\n\n && {\n padding-left: calc("," * ",");\n line-height: ",";\n }\n ","\n"])),(0,Gt.Z)(),(function(n){return n.level}),V.Z.space(.75),Ln.Z.lineHeight("light"),(function(n){return 0===n.childrenCount&&"margin-bottom: 0 !important"})),qt=G.ZP.div.withConfig({displayName:"StyledMenuEntryWrapper"})(Mt||(Mt=_()(["\n margin-bottom: ",";\n margin-top: ",";\n\n > div {\n margin-bottom: ",";\n }\n"])),V.Z.space(.6),V.Z.space(.6),V.Z.space(.5)),Vt=G.ZP.div.withConfig({displayName:"StyledExtendedSearchWrapper"})(Bt||(Bt=_()(["\n margin-top: -",";\n"])),V.Z.space(.6)),Xt=G.ZP.div.withConfig({displayName:"StyledTitle"})(It||(It=_()(["\n && {\n ","\n font-weight: ",";\n }\n"])),(0,Gt.Z)(),Ln.Z.fontWeight("bold")),Kt=G.ZP.div.withConfig({displayName:"StyledMenuItemsWrapper"})(Lt||(Lt=_()(["\n position: relative;\n left: calc(1 * ","); // level one of indentation\n"])),V.Z.space(.75)),Yt=G.ZP.div.withConfig({displayName:"StyledNoSearchResultsTxt"})(Rt||(Rt=_()(["\n ","\n font-style: italic;\n"])),(0,Gt.Z)()),$t=G.ZP.div.withConfig({displayName:"StyledIconTitleWrapper"})(At||(At=_()(["\n position: relative;\n margin-bottom: ",";\n margin-top: ",";\n margin-left: ",";\n"])),V.Z.space(-1.2),V.Z.space(.8),V.Z.space(.8)),Jt=G.ZP.div.withConfig({displayName:"StyledIconWrapper"})(Ft||(Ft=_()(["\n position: absolute;\n font-size: ",";\n left: -",";\n"])),V.Z.font(2),V.Z.space(1));function Qt(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function nr(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Qt(Object(t),!0).forEach((function(e){y()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Qt(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}const er=function n(e){var t,r,o=e.item,i=e.menuTreePath,c=void 0===i?"":i,a=e.typeMapping,s=a[o.menuType];if(!s)return null;var l=s.component,d=s.childrenWrapperComponent,u=null===(t=o.children)||void 0===t?void 0:t.map((function(e){return(0,D.jsx)(n,{item:e,typeMapping:a,menuTreePath:"".concat(c,".").concat(e.name)},e.name)}));return(0,D.jsxs)(Ht,nr(nr({},o),{},{childrenCount:(null===(r=o.children)||void 0===r?void 0:r.length)||0,"data-cy":"admin-menuitem-".concat(o.name),children:[(0,D.jsx)(l,nr({item:o,menuTreePath:c},s.props)),(null==u?void 0:u.length)>0&&(0,D.jsx)(d,nr(nr({item:o,menuTreePath:c},s.props),{},{children:u}))]}))};var tr,rr,or=function(n){var e=n.items,t=n.extendedSearchItems,r=n.searchFilter,o=n.typeMapping;if(n.requireSearch&&!r)return null;if(!e||0===e.length)return null;var i=(0,_t.Xd)(e,r,o),c=t?(0,_t.Xd)(t,r,o):[],a=i.map((function(n,e){return(0,D.jsx)(er,{item:n,typeMapping:o,menuTreePath:n.name},e)})),s=c.map((function(n,e){return(0,D.jsx)(er,{item:n,typeMapping:o,menuTreePath:n.name},e)})),l=r&&0===i.length,d=c.length>0,u=(0,D.jsxs)(Vt,{"data-cy":"extended-search-wrapper",children:[tr||(tr=(0,D.jsx)(Yt,{children:(0,D.jsx)(g.Z,{id:"client.admin.navigation.noResults"})})),d&&(0,D.jsxs)(D.Fragment,{children:[rr||(rr=(0,D.jsxs)($t,{children:[(0,D.jsx)(Jt,{children:(0,D.jsx)(ae.Z,{icon:"lightbulb-exclamation"})}),(0,D.jsx)(Xt,{children:(0,D.jsx)(g.Z,{id:"client.admin.navigation.moreResults"})})]})),(0,D.jsx)(Kt,{children:s})]})]});return(0,D.jsxs)(qt,{"data-cy":"menu-entry-wrapper",children:[a,l&&u]})};const ir=s().memo(or);var cr,ar,sr,lr,dr,ur,pr,fr,hr,gr,mr=t(27361),br=t.n(mr),yr=function(n,e){var t=e.canCollapse,r=e.preferencesPrefix,o=e.menuTreePath;return t?!br()(n.preferences.userPreferences,(0,_t.f6)(r,o),!0):void 0},xr=t(84647),vr=Ln.Z.color("secondaryLight"),jr=(0,G.ZP)(de.rU).withConfig({displayName:"StyledMenuLink"})(cr||(cr=_()(["\n color: ",";\n text-decoration: none;\n\n &:hover {\n color: ",";\n text-decoration: none; // nice2 reset\n }\n\n &:focus {\n outline: none;\n text-decoration: none; // nice2 reset\n font-weight: ",";\n color: ",";\n }\n\n &.active {\n text-decoration: underline;\n }\n"])),Ln.Z.color("text"),Ln.Z.color("secondaryLight"),Ln.Z.fontWeight("bold"),vr),Or=(0,G.ZP)(de.rU).withConfig({displayName:"StyledIconLink"})(ar||(ar=_()(["\n /* disable open new tab feature on touch devices */\n ","\n opacity: 0;\n color: ",";\n text-decoration: none;\n position: relative;\n margin-left: ",";\n\n &:hover,\n &:focus {\n color: ",";\n }\n\n &:focus {\n opacity: 1;\n outline: none;\n }\n"])),xr.b&&(0,G.iv)(sr||(sr=_()(["\n display: none;\n "]))),Ln.Z.color("text"),V.Z.space(-1),Ln.Z.color("secondaryLight")),wr=G.ZP.span.withConfig({displayName:"StyledMenuText"})(lr||(lr=_()(["\n button {\n color: ",";\n text-decoration: none;\n\n &:hover {\n color: ",";\n text-decoration: none; // nice2 reset\n }\n\n &:focus {\n outline: none;\n text-decoration: none; // nice2 reset\n font-weight: ",";\n color: ",";\n }\n\n &.active {\n text-decoration: underline;\n }\n }\n"])),Ln.Z.color("text"),Ln.Z.color("secondaryLight"),Ln.Z.fontWeight("bold"),vr),Pr=G.ZP.span.withConfig({displayName:"StyledMenuLinkWrapper"})(dr||(dr=_()(["\n display: inline-block;\n padding-top: ",";\n padding-bottom: ",";\n\n &:hover "," {\n opacity: 1;\n }\n"])),V.Z.space(-2),V.Z.space(-2),Or),Zr=G.ZP.button.withConfig({displayName:"StyledTogglerButton"})(ur||(ur=_()(["\n display: none;\n background: transparent;\n border: transparent;\n outline: none;\n padding: 0;\n cursor: pointer;\n\n /* always show expand/collapse icon on touch devices */\n ","\n margin-left: ",";\n\n &:hover {\n color: ",";\n }\n"])),xr.b&&(0,G.iv)(pr||(pr=_()(["\n display: block;\n "]))),V.Z.space(-1),Ln.Z.color("secondaryLight")),Sr=G.ZP.span.withConfig({displayName:"StyledMenuEntry"})(fr||(fr=_()(["\n color: ",";\n font-weight: ",";\n margin-bottom: ",";\n margin-top: ",";\n display: flex;\n\n &:hover {\n ","\n\n "," {\n display: block;\n }\n }\n"])),Ln.Z.color("text"),Ln.Z.fontWeight("bold"),V.Z.space(-1.2),V.Z.space(-1.2),(function(n){return n.onClick?"cursor: pointer;":"cursor: auto;"}),Zr),kr=G.ZP.span.withConfig({displayName:"StyledMenuIconWrapper"})(hr||(hr=_()(["\n margin-right: ",";\n"])),V.Z.space(-1.2)),Cr=G.ZP.div.withConfig({displayName:"StyledMenuChildrenWrapper"})(gr||(gr=_()(["\n display: ",";\n"])),(function(n){return n.isOpen?"block":"none"}));function Er(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Dr(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Er(Object(t),!0).forEach((function(e){y()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Er(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}const Tr=function(n){var e=n.item,t=n.isOpen,r=n.canCollapse,o=n.preferencesPrefix,i=n.menuTreePath,c=n.saveUserPreferences,a=e.icon,s=e.label,l=function(){return c(y()({},(0,_t.f6)(o,i),t))};return(0,D.jsxs)(Sr,Dr(Dr({},r?{onClick:l}:{}),{},{children:[(0,D.jsxs)("span",{children:[a&&(0,D.jsx)(kr,{children:(0,D.jsx)(ae.Z,{icon:a})}),s]}),r&&(0,D.jsx)(Zr,{onClick:l,children:(0,D.jsx)(ae.Z,{icon:t?"chevron-up":"chevron-down"})})]}))};var Nr={saveUserPreferences:Nn.RK};const Mr=(0,o.connect)((function(n,e){return{isOpen:yr(n,e)}}),Nr)((0,r.ZP)(Tr));const Br=function(n){var e=n.isOpen,t=n.canCollapse,r=n.children;return(0,D.jsx)(Cr,{isOpen:!t||e,"data-cy":"menu-children-wrapper",children:(!t||e)&&r})};const Ir=(0,o.connect)((function(n,e){return{isOpen:yr(n,e)}}))((0,r.ZP)(Br));var Lr;const Rr=function(n){var e=n.onClick,t=n.item,r=n.alwaysShowExpandedLabel||"entity"===t.matchingAttribute?(0,D.jsxs)(D.Fragment,{children:[" (",t.entity,")"]}):"";return(0,D.jsxs)(Pr,{children:[(0,D.jsxs)(jr,{"data-quick-navigation":!0,onClick:e,to:"/e/".concat(t.entity),children:[t.label,r]}),(0,D.jsx)(Or,{to:"/e/".concat(t.entity),target:"_blank",rel:"noreferrer",children:Lr||(Lr=(0,D.jsx)(ae.Z,{icon:"external-link"}))})]})};var Ar,Fr=t(44448),Wr=function(n){return n.name&&!n.path};const Ur=function(n){var e=n.onClick,t=n.item;return Wr(t)?(0,D.jsxs)(Pr,{children:[t.fullscreen&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(jr,{"data-quick-navigation":!0,onClick:e,to:"/e/action/".concat(t.name),children:t.label}),(0,D.jsx)(Or,{to:"/e/action/".concat(t.name),target:"_blank",rel:"noreferrer",children:Ar||(Ar=(0,D.jsx)(ae.Z,{icon:"external-link"}))})]}),!t.fullscreen&&(0,D.jsx)(wr,{"data-quick-navigation":!0,children:(0,D.jsx)(Fr.Z.Action,{definition:{id:t.name,label:t.label,actionType:Fr.Z.actionTypes.CUSTOM,buttonType:"TEXT",appId:t.name},selection:{}})})]}):(0,D.jsx)(D.Fragment,{})};var zr,_r,Gr,Hr,qr,Vr,Xr,Kr,Yr,$r,Jr=Ln.Z.color("secondary"),Qr=Ln.Z.color("secondaryLight"),no=G.ZP.nav.withConfig({displayName:"StyledNav"})(zr||(zr=_()(["\n height: 100%;\n display: flex;\n flex-direction: column;\n"]))),eo=(G.ZP.span.withConfig({displayName:"StyledMenuEntry"})(_r||(_r=_()(["\n display: inline-block;\n color: ",";\n font-weight: ",";\n margin-bottom: ",";\n margin-top: ",";\n"])),Ln.Z.color("text"),Ln.Z.fontWeight("bold"),V.Z.space(-1.2),V.Z.space(-1.2)),G.ZP.div.withConfig({displayName:"StyledTabsContainer"})(Gr||(Gr=_()(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 ",";\n\n &:focus {\n background-color: transparent;\n }\n"])),V.Z.space(.6))),to=G.ZP.div.withConfig({displayName:"StyledActiveTabLabel"})(Hr||(Hr=_()(["\n ","\n flex-grow: 1;\n"])),(0,Gt.Z)({fontSize:V.Z.font(2.9),fontWeight:Ln.Z.fontWeight("bold"),color:Ln.Z.color("secondary")})),ro=(0,G.ZP)(rt.Z).withConfig({displayName:"StyledNavIconButton"})(qr||(qr=_()(["\n overflow: hidden;\n flex: ",";\n justify-content: center;\n border-radius: 0;\n margin: ",";\n border-top: 5px solid ",";\n font-weight: ",";\n font-size: ",";\n padding-top: ",";\n padding-bottom: calc("," - 5px); /* subtract border-top width of 5px */\n ",";\n\n &:hover {\n border-color: ",";\n background-color: transparent;\n color: ",";\n }\n\n &:focus {\n background-color: transparent;\n }\n\n & > * {\n display: inline-block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])),(function(n){return n.narrow?.2:1}),V.Z.space(-.7),(function(n){return n.active?Jr:"transparent"}),Ln.Z.fontWeight("bold"),V.Z.font(3),V.Z.space(-1.1),V.Z.space(-1.1),(function(n){return n.active&&(0,G.iv)(Vr||(Vr=_()(["\n color: ",";\n "])),Jr)}),(function(n){return n.active?Jr:Qr}),(function(n){return n.active?Jr:Qr})),oo=G.ZP.div.withConfig({displayName:"StyledSearchBoxWrapper"})(Xr||(Xr=_()(["\n height: 50px;\n padding: 0 ",";\n"])),V.Z.space(.6)),io=G.ZP.div.withConfig({displayName:"StyledMenuWrapper"})(Kr||(Kr=_()(["\n height: 100%;\n overflow: auto;\n padding: "," "," 0 ",";\n ","\n"])),V.Z.space(.6),V.Z.space(.6),V.Z.space(.6),H.C),co=G.ZP.div.withConfig({displayName:"StyledMenuButtonsWrapper"})(Yr||(Yr=_()(["\n position: absolute;\n right: ",";\n z-index: 1;\n display: flex;\n justify-content: flex-end;\n padding: 0;\n"])),V.Z.space(.6)),ao=(0,G.ZP)(rt.Z).withConfig({displayName:"StyledMenuButton"})($r||($r=_()(["\n font-size: ",";\n justify-content: center;\n border-radius: 0;\n padding: 0;\n\n &:hover,\n &:focus {\n background-color: transparent;\n color: ",";\n }\n"])),V.Z.font(0),Qr),so=function(n){var e=n.onClick,t=n.hasFilterApplied,r=n.preferencesPrefix,o=n.alwaysShowExpandedLabel,i=!t&&void 0!==r;return{menu:{component:Mr,childrenWrapperComponent:Ir,filterAttributes:["label"],props:{preferencesPrefix:r,canCollapse:i}},"entity-explorer":{component:Rr,childrenWrapperComponent:Ir,props:{onClick:e,preferencesPrefix:r,canCollapse:i,alwaysShowExpandedLabel:void 0!==o&&o},filterAttributes:["label","entity"]},action:{component:Ur,childrenWrapperComponent:Ir,props:{onClick:e,preferencesPrefix:r,canCollapse:i},filterAttributes:["label"]}}};const lo=function(n){var e,t=n.modulesMenuTree,r=n.settingsMenuTree,o=n.systemMenuTree,i=n.completeMenuTree,c=n.menuOpen,s=n.onClick,l=n.activeMenuTab,d=n.setActiveMenuTab,u=n.intl,p=n.saveUserPreferences,h=(0,a.useRef)(null),g=(0,a.useRef)(null),m=(0,a.useState)(""),b=f()(m,2),x=b[0],v=b[1],j=Boolean(x),O=!j&&[_t.LG.MODULES,_t.LG.SETTINGS].includes(l),w=(0,a.useCallback)((function(n){return u.formatMessage({id:n})}),[u]),P=(0,a.useMemo)((function(){var n;return n={},y()(n,_t.LG.MODULES,{items:t,preferencesPrefix:"",label:w("client.admin.navigation.modules"),icon:"cube",dataCy:[_t.LG.MODULES]}),y()(n,_t.LG.COMPLETE,{items:i,label:w("client.admin.navigation.complete"),icon:"chart-network",dataCy:[_t.LG.COMPLETE]}),y()(n,_t.LG.SETTINGS,{items:r,preferencesPrefix:"settings",label:w("client.admin.navigation.settings"),icon:"cog",dataCy:[_t.LG.SETTINGS]}),y()(n,_t.LG.SYSTEM,{items:o,label:w("client.admin.navigation.system"),icon:"laptop-code",dataCy:[_t.LG.SYSTEM]}),n}),[w,t,i,r,o]),Z=(0,a.useMemo)((function(){return so({onClick:s,hasFilterApplied:j,preferencesPrefix:P[_t.LG.MODULES].preferencesPrefix})}),[s,j,P]),S=(0,a.useMemo)((function(){return so({onClick:s,hasFilterApplied:j,preferencesPrefix:P[_t.LG.SETTINGS].preferencesPrefix})}),[s,j,P]),k=(0,a.useMemo)((function(){return so({onClick:s,hasFilterApplied:j})}),[s,j]),C=(0,a.useMemo)((function(){return so({onClick:s,hasFilterApplied:j,alwaysShowExpandedLabel:!0})}),[s,j]);(0,a.useEffect)((function(){c&&(l||d(_t.LG.MODULES),h.current.select())}),[c,l,d]),(0,a.useEffect)((function(){c&&h.current&&setTimeout((function(){h.current.focus()}),10)}),[l,c]);var E=Object.keys(_t.LG).map((function(n){return _t.LG[n]})).filter((function(n){var e;return(null===(e=P[n].items)||void 0===e?void 0:e.length)>0})).map((function(n){return(0,D.jsx)(ro,{active:l===n,onMouseDown:function(e){d(n),e.preventDefault()},title:P[n].label,icon:P[n].icon,"data-cy":"menu-tab-".concat(P[n].dataCy)},n)}));return(0,D.jsxs)(no,{ref:g,onKeyDown:function(n){var e,t,r;"ArrowDown"!==n.key&&"ArrowUp"!==n.key||(n.preventDefault(),e=n.key,t=g.current.querySelectorAll('a[data-quick-navigation="true"], span[data-quick-navigation="true"] button, input'),(r=Ut()(t).findIndex((function(n){return document.activeElement.isEqualNode(n)})))>-1&&t[(r+("ArrowDown"===e?1:t.length-1))%t.length].focus())},"data-cy":"admin-nav",children:[(0,D.jsxs)(eo,{children:[(0,D.jsx)(to,{children:null===(e=P[l])||void 0===e?void 0:e.label}),(0,D.jsx)("div",{children:E})]}),(0,D.jsx)(oo,{children:(0,D.jsx)(zt.Z,{minInputLength:2,onSearch:v,ref:h,placeholder:w("client.admin.navigation.searchBoxPlaceHolder"),"aria-label":w("client.admin.navigation.searchBoxPlaceHolder")})}),(0,D.jsxs)(io,{children:[O&&(0,D.jsxs)(co,{children:[(0,D.jsx)(ao,{icon:"chevron-double-down",type:"button",onClick:function(){var n=P[l]||{},e=n.items,t=n.preferencesPrefix;if(e&&void 0!==t){var r=(0,_t.GI)(e,t,!1);p(r)}},title:w("client.admin.navigation.expandAll"),"data-cy":"expand-all-menu-entries"}),(0,D.jsx)(ao,{icon:"chevron-double-up",type:"button",onClick:function(){var n=P[l]||{},e=n.items,t=n.preferencesPrefix;if(e&&void 0!==t){var r=(0,_t.GI)(e,t,!0);p(r)}},title:w("client.admin.navigation.collapseAll"),"data-cy":"collapse-all-menu-entries"})]}),l===_t.LG.MODULES&&(0,D.jsx)(ir,{items:t,searchFilter:x,typeMapping:Z,extendedSearchItems:i}),l===_t.LG.SETTINGS&&(0,D.jsx)(ir,{items:r,searchFilter:x,typeMapping:S,extendedSearchItems:i}),l===_t.LG.SYSTEM&&(0,D.jsx)(ir,{items:o,searchFilter:x,typeMapping:k,extendedSearchItems:i}),l===_t.LG.COMPLETE&&(0,D.jsx)(ir,{items:i,searchFilter:x,typeMapping:C,requireSearch:!0})]})]})};var uo={setActiveMenuTab:Tn.il,saveUserPreferences:Nn.RK};const po=(0,o.connect)((function(n,e){return{settingsMenuTree:n.navigation.settingsMenuTree,modulesMenuTree:n.navigation.modulesMenuTree,systemMenuTree:n.navigation.systemMenuTree,completeMenuTree:n.navigation.completeMenuTree,menuOpen:n.navigation.menuOpen,activeMenuTab:n.navigation.activeMenuTab}}),uo)((0,r.ZP)(lo));var fo,ho,go,mo,bo,yo,xo,vo,jo,Oo,wo=t(66432),Po=t.n(wo),Zo=G.ZP.div.withConfig({displayName:"StyledAdminWrapper"})(fo||(fo=_()(["\n display: grid;\n grid-template:\n 'header header' auto\n 'menu content' 1fr / auto 1fr;\n background-color: ",";\n height: 100dvh;\n\n .bm-menu-wrap {\n width: 16dvw !important;\n }\n\n @media only screen and (max-width: 400px) {\n .bm-menu-wrap {\n width: 100% !important;\n }\n }\n\n .bm-burger-button button:focus {\n outline: 0;\n }\n"])),Ln.Z.color("paper")),So=G.ZP.div.withConfig({displayName:"StyledContent"})(ho||(ho=_()(["\n grid-area: content;\n background-color: ",";\n overflow: hidden;\n display: flex;\n"])),Ln.Z.color("backgroundBody")),ko=(0,G.ZP)(Po()).withConfig({displayName:"StyledMenu"})(go||(go=_()(["\n grid-area: menu;\n"]))),Co={bmBurgerButton:{position:"absolute",outline:"0",width:"24px",height:"24px",left:"17px",top:"12px",zIndex:3},bmMenuWrap:{position:"fixed",height:"100%",minWidth:"350px"},bmMenu:{background:"#fff",padding:"0 0 3rem 0",fontSize:"1.15em",overflow:"hidden"},bmItemList:{height:"100%"},bmItem:{display:"inline-block"},bmOverlay:{background:"rgba(0, 0, 0, 0.3)"}};function Eo(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Do(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Eo(Object(t),!0).forEach((function(e){y()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Eo(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}const To=(0,G.Zz)((function(n){var e=n.initializeNavigation,t=n.setMenuOpen,r=n.menuOpen,o=n.baseRoute,c=n.getRoutingUserConfirmation,s=n.loadPrincipal,l=n.loadSettingsAndPreferences,u=n.resetPathInfos,p=n.adminAllowed,h=(0,a.useState)(null),m=f()(h,2),b=m[0],y=m[1];(0,a.useEffect)((function(){Fn.Z.clearPersistedViews(),u(),x(),e(),s(),l()}),[]);var x=function(){var n=(0,Bn.lX)(Do(Do({},o&&{basename:o}),{},{getUserConfirmation:c}));y(n)},v=p&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(ko,{isOpen:r,onStateChange:function(n){n.isOpen!==r&&t(n.isOpen)},customCrossIcon:!1,customBurgerIcon:(0,D.jsx)(An,{isOpen:r}),styles:Co,children:(0,D.jsx)(j.Z.ErrorBoundary,{children:(0,D.jsx)(po,{onClick:function(){t(!1),Fn.Z.clearPersistedViews()}})})}),(0,D.jsx)(So,{children:(0,D.jsx)(j.Z.ErrorBoundary,{children:(0,D.jsxs)(In.rs,{children:[(0,D.jsx)(In.AW,{exact:!0,path:"/",render:function(n){var e=n.match;return(0,D.jsx)(In.l_,{to:"".concat(e.url.replace(/\/$/,""),"/dashboard")})}}),mo||(mo=(0,D.jsx)(In.l_,{exact:!0,from:"/dashboard/reload",to:"/dashboard"})),bo||(bo=(0,D.jsx)(In.AW,{exact:!0,path:"/dashboard",component:Wn.Z})),yo||(yo=(0,D.jsx)(In.AW,{path:"/e",component:Jn})),xo||(xo=(0,D.jsx)(In.AW,{path:"/s",component:ee})),vo||(vo=(0,D.jsx)(In.AW,{path:"/docs",component:_n})),(0,D.jsx)(In.AW,{render:function(n){var e=n.match;return(0,D.jsx)(In.l_,{to:"".concat(e.url.replace(/\/$/,""),"/dashboard")})}})]})})})]}),O=!1===p&&(jo||(jo=(0,D.jsx)(So,{children:(0,D.jsx)(re.Z,{title:(0,D.jsx)(g.Z,{id:"client.admin.error.no_roles.title"}),message:(0,D.jsx)(g.Z,{id:"client.admin.error.no_roles.message"})})})));return(0,D.jsx)(d.Z,{required:[null!==b],children:(0,D.jsxs)(In.F0,{history:b||{},children:[(0,D.jsx)(i.Z.Notifications,{navigationStrategy:(0,tt.ZP)()}),(0,D.jsxs)(Zo,{children:[Oo||(Oo=(0,D.jsx)(Tt,{})),v||O]})]})})}));var No={loadPrincipal:u.H8,getRoutingUserConfirmation:u.pr,initializeNavigation:Tn.ai,setMenuOpen:Tn.gG,loadSettingsAndPreferences:Nn.R$,resetPathInfos:Mn.P};const Mo=(0,o.connect)((function(n,e){return{baseRoute:n.input.baseRoute,menuOpen:n.navigation.menuOpen,adminAllowed:n.login.adminAllowed}}),No)((0,r.ZP)(To));var Bo,Io,Lo;const Ro=function(n){var e=n.doSessionCheck,t=n.loggedIn;return(0,a.useEffect)((function(){e()}),[e]),(0,D.jsxs)(D.Fragment,{children:[Bo||(Bo=(0,D.jsx)(l.q,{defer:!1,children:(0,D.jsx)("title",{children:"Tocco"})})),(0,D.jsx)(d.Z,{required:[void 0!==t],loadingText:"Logging in...",children:t?Lo||(Lo=(0,D.jsx)(Mo,{})):Io||(Io=(0,D.jsx)(Zn,{}))})]})};var Ao={doSessionCheck:c.Z.doSessionCheck,confirm:i.Z.confirm};const Fo=(0,o.connect)((function(n,e){return{loggedIn:n.login.loggedIn}}),Ao)((0,r.ZP)(Ro))},5303:(n,e,t)=>{t.d(e,{Z:()=>jt});var r=t(74806),o=t(50558),i=t(50600),c=t(1024),a=t.n(c),s=t(19743),l=t(59713),d=t.n(l),u=t(45697),p=t.n(u),f=t(6966),h=t(30604),g="dashboard/LOAD_DASHBOARD",m="dashboard/SET_DASHBOARD",b="dashboard/SAVE_INFOBOX_POSITIONS",y="dashboard/SAVE_INFOBOX_HEIGHT",x="dashboard/DISPLAY_INFOBOX_SETTINGS_MODAL",v="dashboard/RESET_INFOBOX_SETTINGS",j=function(n){return{type:m,payload:{infoBoxes:n}}},O=t(319),w=t.n(O),P=t(63038),Z=t.n(P),S=function(){return Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)},k=function(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)},C=t(50258),E=t(75093),D=t(21147),T=t(40087),N=t.n(T),M=t(59242),B=t.n(M);const I={Column:"Column",InfoBox:"InfoBox"};var L="InfoBox",R="DropPreview";function A(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function F(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?A(Object(t),!0).forEach((function(e){d()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):A(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var W,U,z,_=function(n){return n.sort((function(n,e){return n.col===e.col?n.row-e.row:n.col-e.col}))},G=N()((function(n){return n.reduce((function(n,e){var t=n.index,r=n.boxes,o="number"==typeof t[e.col]?t[e.col]+1:0;return{boxes:[].concat(w()(r),[F(F({},e),{},{row:o})]),index:F(F({},t),{},d()({},e.col,o))}}),{index:{},boxes:[]}).boxes})),H=N()((function(n,e,t,r){var o,i=null===(o=r.find((function(n){return n.id===e})))||void 0===o?void 0:o.col,c=r.find((function(e){return e.id===n}));return G(r.reduce((function(r,o){var a=o.id===e;return o.id===n?r:[].concat(w()(r),w()(t===E.Z.DropPosition.Top&&a?[F(F({},c),{},{col:i,row:-1})]:[]),[o],w()(t===E.Z.DropPosition.Bottom&&a?[F(F({},c),{},{col:i,row:-1})]:[]))}),[]))})),q=t(44012),V=t(5399),X=t(87686),K=t(28655),Y=t.n(K),$=t(38205),J=$.ZP.div.withConfig({displayName:"StyledMenuWrapper"})(W||(W=Y()(["\n display: flex;\n justify-content: flex-end;\n"]))),Q=t(85893);const nn=function(n){var e=n.displayInfoBoxSettings,t=n.resetInfoBoxSettings;return(0,Q.jsx)(J,{children:(0,Q.jsxs)(V.Z,{buttonProps:{icon:"ellipsis-v"},children:[(0,Q.jsx)(X.Z,{onClick:e,children:U||(U=(0,Q.jsx)(q.Z,{id:"client.dashboard.preferences.show"}))}),(0,Q.jsx)(X.Z,{onClick:t,children:z||(z=(0,Q.jsx)(q.Z,{id:"client.dashboard.preferences.reset"}))})]})})};var en={displayInfoBoxSettings:function(){return{type:x}},resetInfoBoxSettings:function(){return{type:v}}};const tn=(0,o.connect)(null,en)((0,r.ZP)(nn));var rn,on,cn=t(40953),an=t(24875),sn=t(7281),ln=t(88601),dn="50px",un=$.ZP.div.withConfig({displayName:"StyledInfoBoxWrapper"})(rn||(rn=Y()(["\n box-sizing: border-box;\n border: 1px solid ",";\n border-radius: ",";\n height: ",";\n min-height: ",";\n padding: ",";\n background: ",";\n overflow: hidden;\n display: flex;\n flex-direction: column;\n\n /**\n * Workaround:\n * so that ghost-image on drag and drop is taken correctly\n * when having an absolute position element inside the InfoBox (e.g. entity-list)\n */\n position: relative;\n z-index: 1;\n"])),cn.m.base,an.FS.radii("dashboard"),(function(n){var e=n.height;return e?"".concat(e,"px"):"auto"}),dn,sn.Z.space(-.5),ln.Z.color("paper")),pn=$.ZP.div.withConfig({displayName:"StyledDroppedPreview"})(on||(on=Y()(["\n border: 2px dashed ",";\n box-sizing: border-box;\n height: ",";\n min-height: ",";\n width: 100%;\n padding: ",";\n margin: ",";\n background: ",";\n"])),ln.Z.color("primary"),(function(n){var e=n.height;return"".concat(e,"px")}),dn,sn.Z.space(-.5),sn.Z.space(-.5),ln.Z.color("paper"));function fn(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}const hn=function(n){return(0,Q.jsx)(pn,function(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?fn(Object(t),!0).forEach((function(e){d()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):fn(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}({},n))};var gn,mn=t(6479),bn=t.n(mn),yn=t(34206),xn=t(44759),vn=t(42060),jn=t(11347),On=$.ZP.div.withConfig({displayName:"StyledInfoBoxContentWrapper"})(gn||(gn=Y()(["\n flex: 1;\n ","\n ","\n"])),(function(n){return n.scrollable&&"overflow: auto;"}),jn.C);const wn=function(n){var e=n.content.text;return(0,Q.jsx)(On,{scrollable:!0,children:(0,Q.jsx)(vn.Z,{type:"html",value:e})})};var Pn=t(12568),Zn=t(6699),Sn=t(94736);function kn(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Cn(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?kn(Object(t),!0).forEach((function(e){d()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):kn(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var En=(0,r.ZP)((function(n){var e,t=n.entityKey,r=n.entityModel,o=n.children,i=n.intl;return(0,Q.jsx)(Zn.Z,{"aria-label":(e="client.component.navigationStrategy.detailLinkRelative",i.formatMessage({id:e})),to:"/e/".concat(r,"/").concat(t),children:o})})),Dn=function(n){return n?n.split(",").map((function(n){return n.trim()})).map((function(n){return n.split(/\s+/)})).map((function(n){return{field:n[0],order:n[1]||"asc"}})):[]};const Tn=function(n){var e=n.id,t=n.content,r=n.navigationStrategy,o=n.emitAction,i=t.searchFilterUniqueId,c=t.entityName,a=t.form,s=t.limit,l=t.orderBy,d=a?Sn.Z.splitFormId(a):{},u=d.formName,p=d.scope;return(0,Q.jsx)(On,{scrollable:!0,children:(0,Q.jsx)(Pn.ZP,{id:e,limit:s,entityName:c,formName:u,searchFilters:[i],scope:p,showActions:!1,onRowClick:function(n){var e=n.id;r.openDetail(c,e,!1)},searchFormType:"fulltext",searchFormPosition:"top",selectionStyle:"none",sortable:!0,disableSelectionController:!0,emitAction:o,navigationStrategy:Cn(Cn({},r),{},{DetailLinkRelative:En}),showLink:!0,sorting:Dn(l),scrollBehaviour:"inline",tableMinHeight:"240px"})})};var Nn={emitAction:function(n){return i.Z.dispatchEmittedAction(n)}};const Mn=(0,o.connect)((function(n){return{navigationStrategy:n.input.navigationStrategy}}),Nn)((0,r.ZP)(Tn));var Bn;var In={htmlfield:wn,searchfilter:Mn},Ln=function(n){var e=n.id,t=n.content;return t?function(n,e,t){return In[n]?a().createElement(In[n],{id:e,content:t}):(xn.Z.logError("No Content mapper defined for type",n,e),Bn||(Bn=(0,Q.jsx)("div",{})))}(t.type,e,t):null};Ln.propTypes={id:p().string.isRequired,content:p().object.isRequired};const Rn=Ln;var An=["id","label","height","content"];function Fn(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Wn(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Fn(Object(t),!0).forEach((function(e){d()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Fn(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}const Un=function(n){var e=n.id,t=n.label,r=n.height,o=n.content,i=bn()(n,An);return(0,Q.jsxs)(un,Wn(Wn({},i),{},{height:r,children:[(0,Q.jsx)(yn.ZP.H3,{children:t}),(0,Q.jsx)(Rn,{id:e,content:o})]}))};var zn,_n,Gn,Hn,qn,Vn,Xn=function(n){return(0,$.iv)(zn||(zn=Y()(["\n @media only screen and (max-width: 800px) {\n ","\n }\n"])),n)},Kn=$.ZP.div.withConfig({displayName:"StyledDashboardWrapper"})(_n||(_n=Y()(["\n width: 100%;\n height: calc(100% - 75px); // ~75px the height of header and breadcrumbs\n background: ",";\n padding: "," "," "," ",";\n overflow-y: scroll;\n box-sizing: border-box;\n position: absolute;\n ","\n"])),an.FS.color("paper"),sn.Z.space(-.5),sn.Z.space(-2),sn.Z.space(-.5),sn.Z.space(-.5),jn.C),Yn=$.ZP.div.withConfig({displayName:"StyledColumnWrapper"})(Gn||(Gn=Y()(["\n display: flex;\n flex-wrap: nowrap;\n ","\n"])),Xn("\n display: block;\n flex-wrap: unset;\n ")),$n=$.ZP.div.withConfig({displayName:"StyledColumn"})(Hn||(Hn=Y()(["\n width: 50%;\n display: flex;\n flex-wrap: wrap;\n align-content: flex-start;\n position: relative;\n ","\n"])),Xn("\n width: unset;\n display: block;\n flex-wrap: unset;\n align-content: unset;\n ")),Jn=$.ZP.div.withConfig({displayName:"StyledInfoBoxWrapper"})(qn||(qn=Y()(["\n position: relative;\n width: 100%;\n margin: ",";\n ","\n"])),sn.Z.space(-.5),Xn("width: auto;")),Qn=$.ZP.div.withConfig({displayName:"StyledResizeHandle"})(Vn||(Vn=Y()(["\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n background: ",";\n opacity: ",";\n height: 3px;\n cursor: row-resize;\n"])),an.FS.color("signal.info"),(function(n){return n.isReszing?1:0}));const ne=function(n){var e=n.infoBox,t=n.isResizing,r=n.startResize,o=n.onDragStart,i=n.onDragEnter,c=n.onDragOver,a=n.onDrop,l=e.id,d=e.type,u=e.label,p=e.height,f=e.content,h=Boolean(o);return(0,Q.jsx)(s.Z.ErrorBoundary,{children:(0,Q.jsxs)(Jn,{id:"infobox-".concat(l),"data-cy":"infobox-".concat(l),children:[(0,Q.jsx)(Un,{id:l,label:u,height:p,content:f,draggable:h,onDragStart:o,onDragEnter:i,onDragOver:c,onDrop:a}),(0,Q.jsx)(Qn,{onMouseDown:r,isReszing:t})]},"".concat(d,"-").concat(l))})};function ee(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function te(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?ee(Object(t),!0).forEach((function(e){d()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ee(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}const re=function(n){var e=n.onDragEnter,t=n.onDragOver,r=n.onDrop,o=n.infoBoxes,i=n.resizeState,c=n.startResize,a=n.dndState,s=n.makeDndEvents,l=a.currentlyDragOver,d=i.isResizing,u=i.resizingElement,p=o.map((function(n){var e=n.id,t=n.height,r=n.type;return r===R&&s?(0,Q.jsx)(hn,te({height:t},s(l)),"".concat(r,"-").concat(e)):(0,Q.jsx)(ne,te(te({id:"infobox-".concat(e),infoBox:n,isResizing:d&&u===e},s?s({type:I.InfoBox,id:e}):{}),{},{startResize:c(e)}),"".concat(r,"-").concat(e))}));return(0,Q.jsx)($n,{onDragEnter:e,onDragOver:t,onDrop:r,children:p})};var oe;function ie(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function ce(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?ie(Object(t),!0).forEach((function(e){d()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}const ae=function(n){var e=n.infoBoxes,t=n.saveInfoBoxHeight,r=n.saveInfoBoxPositions,o=(null==e?void 0:e.length)>=0,i=(0,c.useState)(e||[]),a=Z()(i,2),s=a[0],l=a[1];(0,c.useEffect)((function(){l(e||[])}),[e]);var d=w()(Array(2).keys()),u=(0,c.useRef)(null),p=(0,c.useCallback)((function(n){return u.current.querySelector("#infobox-".concat(n))}),[]),f=(0,c.useCallback)((function(n){var e,r=null===(e=s.find((function(e){return e.id===n})))||void 0===e?void 0:e.height;t(n,r)}),[s,t]),h=(0,c.useCallback)((function(n,e){var t=e.height;l((function(e){return w()(e.map((function(e){return e.id===n?ce(ce({},e),{},{height:t}):e})))}))}),[]),g=D.Z.useResize(p,h,f),m=g.startResize,b=g.resizingEvents,y=g.resizeState,x=function(){var n=(0,c.useState)({width:k(),height:S()}),e=Z()(n,2),t=e[0],r=e[1];return(0,c.useEffect)((function(){var n=function(){r({width:k(),height:S()})};return window.addEventListener("resize",n),function(){return window.removeEventListener("resize",n)}}),[]),t}(),v=x.width>800,j=E.Z.useDnD((function(n,e,t){var o=n.id,i=e.type,c=e.id;if(i===I.Column){var a=function(n,e,t){var r=t.find((function(e){return e.id===n}));return G([].concat(w()(_(t).filter((function(e){return e.id!==n}))),[F(F({},r),{},{col:e,row:-1})]))}(o,c,s);l(a),r(a)}else if(o!==c){var d=function(n,e,t,r){return B()([_,H(n,e,t)])(r)}(o,c,t,s);l(d),r(d)}}),s),O=j.dndEvents,P=j.dndState,T=P.currentlyDragOver,N=P.currentlyDragging,M=P.dropPosition,A=(N||{}).id,W=d.map((function(n){var e=O({type:I.Column,id:n}),t=e.onDragEnter,r=e.onDragOver,o=e.onDrop,i=function(n,e,t,r,o){var i=e||{},c=i.type,a=i.id,s=a===n&&c===I.InfoBox,l=F(F({},o.find((function(e){return e.id===n}))),{},{type:R}),d=o.filter((function(e){var t=e.folded,o=e.col,i=e.id;return!(t||o!==r||void 0!==a&&!s&&i===n)})).map((function(n){return F(F({},n),{},{type:L})})).reduce((function(e,r){var o=r.id===a&&c===I.InfoBox&&!s;return[].concat(w()(e),w()(t===E.Z.DropPosition.Top&&o?[l]:[]),[r.id===n&&s?F(F({},r),{},{type:R}):r],w()(t===E.Z.DropPosition.Bottom&&o?[l]:[]))}),[]);return c===I.Column&&a===r&&(d=[].concat(w()(d),[l])),d}(A,T,M,n,s);return(0,Q.jsx)(re,{onDragEnter:t,onDragOver:r,onDrop:o,infoBoxes:i,resizeState:y,startResize:m,dndState:P,makeDndEvents:v?O:void 0},n)}));return(0,Q.jsx)(Kn,ce(ce({ref:u},b),{},{children:(0,Q.jsxs)(C.Z,{required:[o],children:[oe||(oe=(0,Q.jsx)(tn,{})),(0,Q.jsx)(Yn,{children:W})]})}))};var se={saveInfoBoxPositions:function(n){return{type:b,payload:{infoBoxes:n}}},saveInfoBoxHeight:function(n,e){return{type:y,payload:{id:n,height:e}}}};const le=(0,o.connect)((function(n){return{infoBoxes:n.dashboard.infoBoxes}}),se)((0,r.ZP)(ae));var de=t(81770),ue=d()({},m,de.Z.singleTransferReducer("infoBoxes")),pe={infoBoxes:void 0};const fe=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pe,e=arguments.length>1?arguments[1]:void 0,t=ue[e.type];return t?t(n,e):n};var he,ge,me,be,ye=t(87757),xe=t.n(ye),ve=t(44422),je=t(34857),Oe=t(81719),we=t(83324),Pe=t(65035),Ze=t(36589),Se=t(69829),ke=$.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(he||(he=Y()(["\n position: sticky;\n bottom: 0;\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),sn.Z.space(0),ln.Z.color("paper"),Ze.Z),Ce=$.ZP.ul.withConfig({displayName:"StyledUl"})(ge||(ge=Y()(["\n list-style-type: none;\n margin-top: ",";\n padding-left: ",";\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n\n "," {\n padding: 0;\n }\n"])),sn.Z.space(-.5),sn.Z.space(-.5),Se.ar),Ee=$.ZP.input.withConfig({displayName:"StyledCheckbox"})(me||(me=Y()(["\n vertical-align: top;\n margin-right: ",";\n\n &:hover {\n cursor: pointer;\n }\n"])),sn.Z.space(-1));function De(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Te(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?De(Object(t),!0).forEach((function(e){d()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):De(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}const Ne=function(n){var e=n.initialInfoBoxes,t=n.onOk,r=(0,c.useState)(e||[]),o=Z()(r,2),i=o[0],a=o[1],s=function(){return t(i)};(0,we.z)(s);var l=i.map((function(n){return(0,Q.jsxs)(yn.ZP.Li,{children:[(0,Q.jsx)(Ee,{type:"checkbox",checked:!n.folded,onChange:function(){return e=n.id,void a((function(n){return n.reduce((function(n,t){return[].concat(w()(n),[Te(Te({},t),{},{folded:t.id===e?!t.folded:t.folded})])}),[])}));var e},id:n.id}),(0,Q.jsx)(yn.ZP.Label,{for:n.id,children:n.label})]},n.id)}));return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Ce,{children:l}),(0,Q.jsx)(ke,{children:(0,Q.jsx)(Pe.Z,{type:"button",onClick:s,ink:"primary",look:"raised",children:be||(be=(0,Q.jsx)(q.Z,{id:"client.common.ok"}))})})]})};function Me(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Be(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Me(Object(t),!0).forEach((function(e){d()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Me(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var Ie=function(n){return null===n.position},Le=function(n){var e=n.filter(Ie),t=n.filter((function(n){return!Ie(n)}));return e.reduce((function(n,e){var t=function(n){var e=w()(Array(2).keys()).reduce((function(e,t){return Be(Be({},e),{},d()({},t,n.filter((function(n){return n.col===t})).length))}),{}),t=Object.keys(e).reduce((function(n,t){var r=parseInt(t,10);return e[r]<n.numberOfBoxes?{col:r,numberOfBoxes:e[r]}:n}),{col:-1,numberOfBoxes:Number.MAX_VALUE});return-1===t.col?{col:0,numberOfBoxes:0}:t}(n),r=t.col,o=t.numberOfBoxes;return[].concat(w()(n),[Be(Be({},e),{},{col:r,row:o})])}),t)},Re=function(n){return _(Le(n.map((function(n){return Be(Be({},n),function(n){if(!n)return{col:0,row:0};var e=n.split(":"),t=parseInt(e[0],10)-1,r=parseInt(e[1],10);return{col:Math.max(0,t),row:r}}(n.position))}))))};function Ae(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Fe(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Ae(Object(t),!0).forEach((function(e){d()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Ae(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var We=xe().mark(Ve),Ue=xe().mark(Xe),ze=xe().mark($e),_e=xe().mark(Je),Ge=xe().mark(Qe),He=xe().mark(nt),qe=function(n){return n.dashboard};function Ve(){return xe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,je.$6)([(0,je.RE)(Xe),(0,je.Fm)(g,Xe),(0,je.Fm)(b,Ke),(0,je.Fm)(y,Ye),(0,je.ib)(x,$e),(0,je.ib)(v,Qe)]);case 2:case"end":return n.stop()}}),We)}function Xe(){var n,e,t;return xe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={method:"GET"},r.next=3,(0,je.RE)(Oe.Z.requestSaga,"client/dashboard",n);case 3:return e=r.sent,t=e.body.infoboxes,r.next=7,(0,je.gz)(j(Re(t)));case 7:return r.abrupt("return",t);case 8:case"end":return r.stop()}}),Ue)}function Ke(n){var e=n.payload.infoBoxes;return xe().mark((function n(){var t,r;return xe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.map((function(n){return Fe(Fe({},n),{},{position:(e=n.col,t=n.row,"".concat(e+1,":").concat(t))});var e,t})),r=t.reduce((function(n,e){return Fe(Fe({},n),{},d()({},"".concat(e.id,":POSITION"),e.position))}),{}),n.next=4,(0,je.RE)(nt,r);case 4:return n.next=6,(0,je.gz)(j(t));case 6:return n.abrupt("return",t);case 7:case"end":return n.stop()}}),n)}))()}function Ye(n){var e=n.payload,t=e.id,r=e.height;return xe().mark((function n(){var e,o,i,c;return xe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,je.Ys)(qe);case 2:return e=n.sent,o=e.infoBoxes,i=o.map((function(n){return Fe(Fe({},n),{},{height:n.id===t?r:n.height})})),c=d()({},"".concat(t,":HEIGHT"),r),n.next=8,(0,je.RE)(nt,c);case 8:return n.next=10,(0,je.gz)(j(i));case 10:return n.abrupt("return",i);case 11:case"end":return n.stop()}}),n)}))()}function $e(){var n,e,t;return xe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,je.Ys)(qe);case 2:return n=r.sent,e=n.infoBoxes,r.next=6,(0,je.RE)(ve.CE);case 6:return t=r.sent,r.next=9,(0,je.gz)(h.Z.modal("dashboard-infobox-settings","client.dashboard.preferences.show.title",null,(function(n){var r=n.close;return(0,Q.jsx)(Ne,{initialInfoBoxes:e,onOk:function(n){r(),t.put(n)}})}),!0));case 9:return r.next=11,(0,je.RE)(Je,t);case 11:case"end":return r.stop()}}),ze)}function Je(n){var e,t;return xe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,je.qn)(n);case 2:return e=r.sent,t=e.reduce((function(n,e){return Fe(Fe({},n),{},d()({},"".concat(e.id,":STATUS"),e.folded?"folded":"open"))}),{}),r.next=6,(0,je.RE)(nt,t);case 6:return r.next=8,(0,je.gz)(j(e));case 8:return r.abrupt("return",e);case 9:case"end":return r.stop()}}),_e)}function Qe(){return xe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,je.$6)([(0,je.RE)(Oe.Z.deleteUserPreferences,"*:HEIGHT"),(0,je.RE)(Oe.Z.deleteUserPreferences,"*:POSITION"),(0,je.RE)(Oe.Z.deleteUserPreferences,"*:STATUS")]);case 2:return n.next=4,(0,je.RE)(Xe);case 4:case"end":return n.stop()}}),Ge)}function nt(n){return xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,je.RE)(Oe.Z.savePreferences,n,"/nice2/ui/settings/infoboxes");case 2:case"end":return e.stop()}}),He)}const et={dashboard:fe};var tt,rt=[Ve];function ot(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}var it="dashboard",ct=["emitAction"],at=function(n,e,t,r){var o=tt||(tt=(0,Q.jsx)(le,{})),c=f.Z.createStore(et,rt,e,it);i.Z.addToStore(c,(function(n){return n.input.emitAction}));var a=!t.emitAction;return h.Z.addToStore(c,a),s.Z.addToStore(c,a,["console","remote","notification"]),f.Z.createApp(it,o,c,{input:e,events:t,actions:[],publicPath:r,textResourceModules:["component","common","entity-list",it]})},st=function(n){return f.Z.useApp({initApp:at,props:n,packageName:it,externalEvents:ct}).component};st.propTypes=function(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(t),!0).forEach((function(e){d()(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ot(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}({navigationStrategy:p().object},ct.reduce((function(n,e){return n[e]=p().func,n}),{}));const lt=st;var dt,ut,pt,ft=t(54680),ht=t(90169),gt=$.ZP.div.withConfig({displayName:"StyledWrapper"})(dt||(dt=Y()(["\n display: grid;\n grid-template-rows: auto 1fr;\n grid-template-areas:\n 'breadcrumbs'\n 'content';\n height: 100%;\n width: 100%;\n"]))),mt=$.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(ut||(ut=Y()(["\n grid-area: breadcrumbs;\n"]))),bt=$.ZP.div.withConfig({displayName:"StyledDashboardWrapper"})(pt||(pt=Y()(["\n width: 100%;\n height: 100%;\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n align-items: flex-end;\n grid-area: content;\n\n @media (max-width: 568px) {\n justify-content: center;\n align-items: center;\n }\n"])),ln.Z.color("backgroundBody")),yt=function(n){var e,t=n.match,r=n.history,o=n.emitAction,i=n.intl;return(0,Q.jsxs)(gt,{children:[(0,Q.jsx)(mt,{children:(0,Q.jsx)(s.Z.ErrorBoundary,{children:(0,Q.jsx)(ft.Z,{currentView:{display:(e="client.admin.dashboard",i.formatMessage({id:e})),title:"Tocco",type:"home"},pathPrefix:"/dashboard"})})}),(0,Q.jsx)(bt,{children:(0,Q.jsx)(lt,{emitAction:o,navigationStrategy:(0,ht.ZP)(r,t)})})]})};const xt=a().memo(yt,(function(){return!0}));var vt={emitAction:function(n){return i.Z.dispatchEmittedAction(n)}};const jt=(0,o.connect)(null,vt)((0,r.ZP)(xt))},54675:(n,e,t)=>{t.d(e,{CM:()=>c,Fp:()=>j,Hn:()=>g,Ld:()=>O,Mu:()=>p,OJ:()=>f,P:()=>h,PF:()=>a,Ss:()=>y,Wk:()=>v,Xk:()=>o,_m:()=>w,dF:()=>d,eZ:()=>u,hc:()=>i,jw:()=>m,l3:()=>l,lM:()=>P,oO:()=>s,p3:()=>r,rt:()=>b,zB:()=>x});var r="path/RESET_PATH_INFOS",o="path/SET_CURRENT_VIEW_INFO",i="path/LOAD_CURRENT_ROUTE",c="path/SET_BREADCRUMBS_INFO",a="path/UPDATE_BREADCRUMBS_INFO",s="path/SET_RELATIONS",l="path/SET_CURRENT_VIEW_TITLE",d="path/SET_RELATIONS_INFO",u="path/PROPAGATE_REFRESH",p="path/INVALIDATE_LAST_BREADCRUMB",f="path/SELECT_RELATION",h=function(){return{type:r}},g=function(n,e){return{type:o,payload:{location:n,currentViewInfo:e}}},m=function(n){return{type:i,payload:{location:n}}},b=function(n){return{type:c,payload:{breadcrumbsInfo:n}}},y=function(n,e){return{type:a,payload:{path:n,breadcrumbsInfo:e}}},x=function(n){return{type:s,payload:{relations:n}}},v=function(n){return{type:l,payload:{currentViewTitle:n}}},j=function(n){return{type:d,payload:{relationsInfo:n}}},O=function(n){return{type:u,payload:{location:n}}},w=function(n){return{type:p,payload:{location:n}}},P=function(n){return{type:f,payload:{selectedRelation:n}}}},38655:n=>{n.exports=JSON.parse('{"name":"tocco-admin","version":"1.0.195","description":"Alpha version of new tocco admin.","main":"dist/index.js","scripts":{"compile:prod":"cd ../../../ && npm run compile:prod -- --package=admin","prepublish":"npm run compile:prod","test":"jest"},"dependencies":{"js-cookie":"^3.0.1","react-burger-menu":"^3.0.9"},"devDependencies":{"tocco-app-extensions":"*","tocco-connect-principal":"*","tocco-copy":"*","tocco-dashboard":"*","tocco-delete":"*","tocco-docs-browser":"*","tocco-entity-detail":"*","tocco-entity-list":"*","tocco-entity-report":"*","tocco-export":"*","tocco-input-edit":"*","tocco-log":"*","tocco-login":"*","tocco-merge":"*","tocco-reload-configuration":"*","tocco-resource-scheduler":"*","tocco-sso-login":"*","tocco-test-util":"*","tocco-two-factor-connector":"*","tocco-ui":"*","tocco-user-qr-action":"*","tocco-util":"*","tocco-widget-code-copy":"*","tocco-widget-config-edit":"*","tocco-widget-visibility-status-code-copy":"*"}}')}}]);
|