"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[903],{7504:function(n,e,t){var r=t(5893),o=t(7294),i=t(6886),u=t(7357);function l(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}function f(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i=[],u=!0,l=!1;try{for(t=t.call(n);!(u=(r=t.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(a){l=!0,o=a}finally{try{u||null==t.return||t.return()}finally{if(l)throw o}}return i}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return l(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(n,e)}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}e.Z=function(n){var e=n.calculateItemBreakpoints,t=void 0===e?function(){return{xs:1}}:e,l=n.layout,a=n.wrapperBoxProps,d=s(n,["calculateItemBreakpoints","layout","wrapperBoxProps"]),p=(0,o.useMemo)((function(){return Object.entries(l).map((function(n,e){var r=f(n,2),u=r[0],l=r[1],a=u;return l?(0,o.createElement)(i.ZP,c({},t(e,a),{key:a,item:!0},l)):void 0}))}),[t,l]);return(0,r.jsx)(u.Z,c({},a,{children:(0,r.jsx)(i.ZP,c({container:!0},d,{children:p}))}))}},5521:function(n,e,t){t.d(e,{Z:function(){return H}});var r=t(5893),o=t(1113),i=t(1496),u=t(2293),l=t(7357),a=t(2992),c=t(4799),s=t(7294),f=t(7169),d=t(4433),p=t(9029),v=t(7533),y=t(8462),m=t(7212),b=t(8619),g=[{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/manage-element"},{text:"Files",image:"/pngs/files_on.png",uri:"/file-manager"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/config"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],h={width:"40em",height:"40em"},j=t(4390),O=t(582),S=t(4690),w=t(1770),x=t(7750),A=t(1081);function k(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t1&&void 0!==arguments[1]?arguments[1]:"suiapi.";return t["".concat(e).concat(n)]}),[t]),i=(0,s.useCallback)((function(){return o("user")}),[o]);return(0,s.useEffect)((function(){if(n){var e=document.cookie.split(/\s*;\s*/);r(e.reduce((function(n,e){var t,r=P(e.split("=",2),2),o=r[0],i=r[1],u=decodeURIComponent(i);if(u.startsWith("j:"))try{t=JSON.parse(u.substring(2))}catch(l){t=i}else t=i;return n[o]=t,n}),{}))}}),[n]),{cookieJar:t,getCookie:o,getSessionUser:i}};function C(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Z(n){for(var e=1;e0)},ref:e})]})}},9099:function(n,e,t){t.d(e,{Z:function(){return g}});var r=t(7294),o={boolean:function(n){return Boolean(n)},number:function(n){return parseInt(String(n),10)||0},string:function(n){return String(n)}},i=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.postSet,t=n.preSet,r=n.set,i=n.setType,u=void 0===i?"string":i,l=n.valueKey,a=void 0===l?"value":l;return function(n){var i=n.target[a],l=o[u](i);null===t||void 0===t||t.call(null,n),null===r||void 0===r||r.call(null,l),null===e||void 0===e||e.call(null,n)}},u=t(7987);function l(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}function f(n){return function(n){if(Array.isArray(n))return l(n)}(n)||function(n){if("undefined"!==typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(!n)return;if("string"===typeof n)return l(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(n,e)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(n){var e=function(n,e){if("object"!==p(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===p(e)?e:String(e)}var p=function(n){return n&&"undefined"!==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var v="input",y={boolean:!1,number:0,string:""},m={createInputOnChangeHandlerOptions:{},required:!1,valueType:"string"},b=(0,r.forwardRef)((function(n,e){var t=n.input,o=n.inputTestBatch,l=n.onBlurAppend,p=n.onFirstRender,b=n.onFocusAppend,g=n.onUnmount,h=n.required,j=void 0===h?m.required:h,O=n.valueKey,S=n.valueType,w=void 0===S?m.valueType:S,x=n.createInputOnChangeHandlerOptions,A=void 0===x?m.createInputOnChangeHandlerOptions:x,k=A.postSet,P=A.valueKey,I=void 0===P?O:P,C=s(n.createInputOnChangeHandlerOptions,["postSet","valueKey"]),Z=t.props,E=(0,r.useMemo)((function(){return null!==I&&void 0!==I?I:"checked"in Z?"checked":"value"}),[Z,I]),M=Z.onBlur,B=Z.onChange,T=Z.onFocus,F=Z[E],R=void 0===F?y[w]:F,U=s(Z,["onBlur","onChange","onFocus",E].map(d)),N=(0,r.useState)(R),_=N[0],V=N[1],H=(0,r.useState)(!1),K=H[0],D=H[1],q=(0,r.useState)(!1),W=q[0],$=q[1],L=(0,r.useCallback)((function(n){V(n)}),[]),G=(0,r.useMemo)((function(){var n;return o&&(o.isRequired=j,n=(0,u.LT)(a({},v,o))),n}),[o,j]),J=(0,r.useMemo)((function(){return null!==M&&void 0!==M?M:G&&function(){for(var n=arguments.length,e=new Array(n),t=0;tn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}function a(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i=[],u=!0,l=!1;try{for(t=t.call(n);!(u=(r=t.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(a){l=!0,o=a}finally{try{u||null==t.return||t.return()}finally{if(l)throw o}}return i}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return u(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(n,e)}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(n){var e=function(n,e){if("object"!==s(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===s(e)?e:String(e)}var s=function(n){return n&&"undefined"!==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var f={count:0,defaultMessageType:"info",onSet:void 0,usePlaceholder:!0},d=(0,o.forwardRef)((function(n,e){var t=n.count,u=void 0===t?f.count:t,s=n.defaultMessageType,d=void 0===s?f.defaultMessageType:s,p=n.onSet,v=n.usePlaceholder,y=void 0===v?f.usePlaceholder:v,m=(0,o.useState)({}),b=m[0],g=m[1],h=(0,o.useCallback)((function(n){return void 0!==b[n]}),[b]),j=(0,o.useCallback)((function(n,e){var t=0;g((function(r){r[n];var o=l(r,[n].map(c));return e&&(o[n]=e),t=Object.keys(o).length,o})),null===p||void 0===p||p.call(null,t)}),[p]),O=(0,o.useCallback)((function(n,e){var t=0,r=e?function(n,r){n[r]=e,t+=1}:void 0;g((function(e){var o={};return Object.keys(e).forEach((function(i){n.test(i)?null===r||void 0===r||r.call(null,o,i):(o[i]=e[i],t+=1)})),o})),null===p||void 0===p||p.call(null,t)}),[p]),S=(0,o.useMemo)((function(){var n=Object.entries(b),e=u>0,t=e?u:n.length,o=[];if(n.every((function(n){var e=a(n,2),u=e[0],l=e[1],c=l.children,s=l.type,f=void 0===s?d:s;return o.push((0,r.jsx)(i.Z,{type:f,children:c},"message-".concat(u))),o.lengthn.length)&&(e=n.length);for(var t=0,r=new Array(e);tn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}function l(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i=[],u=!0,l=!1;try{for(t=t.call(n);!(u=(r=t.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(a){l=!0,o=a}finally{try{u||null==t.return||t.return()}finally{if(l)throw o}}return i}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return r(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(n,e)}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(n){var e=function(n,e){if("object"!==c(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===c(e)?e:String(e)}t.d(e,{Um:function(){return d}});var c=function(n){return n&&"undefined"!==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var s=function(){for(var n=arguments.length,e=new Array(n),t=0;t2&&void 0!==arguments[2]?arguments[2]:{},r=t.guard,o=void 0===r?function(){return!0}:r,l=t.set,c=void 0===l?s:l;return function(t){t[n];var r=i({},u(t,[n].map(a)));return o(t,n,e)&&c(t,r,n,e),r}},d=function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.set,o=void 0===r?s:r;return function(t){var r={};return Object.keys(t).forEach((function(i){var u=i;n.test(i)?o(t,r,u,e):r[u]=t[u]})),r}};e.ZP=f}}]);