ywana-core8 0.0.5 → 0.0.6

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/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("material-design-icons-iconfont/dist/material-design-icons.css");var n=/*#__PURE__*/e(require("deep-equal")),t=function(e,n,t,r){void 0===t&&(t=null);try{console.log("FETCH",e,n);var o={method:e,mode:"cors",headers:{Accept:"application/json","Content-Type":"application/json","x-access-token":r},body:t};return Promise.resolve(function(e,t){try{var r=Promise.resolve(fetch(n,o)).then(function(e){var n;function t(t){if(n)return t;throw e}var r=function(){if(e.ok)return Promise.resolve(e.json()).then(function(e){return n=1,e})}();return r&&r.then?r.then(t):t(r)})}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}(0,function(e){if(e instanceof Error)throw{error:e};return Promise.resolve(e.json()).then(function(e){throw{success:!1,message:e.message}})}))}catch(e){return Promise.reject(e)}},r=function(e,n){return{GET:function(r){var o=n?n.token():null;return t("GET",e+r,void 0,o)},POST:function(r,o){var i=n?n.token():null;return t("POST",e+r,o,i)},PUT:function(r,o){var i=n?n.token():null;return t("PUT",e+r,o,i)},PATCH:function(r,o){var i=n?n.token():null;return t("PATCH",e+r,o,i)},DELETE:function(r){var o=n?n.token():null;return t("DELETE",e+r,void 0,o)}}},o=process.env.REACT_APP_SESSION||window&&window.SESSION?window.SESSION:"YWANA-CORE6-SESSION",i={token:function(){return(sessionStorage.getItem(o)?JSON.parse(sessionStorage.getItem(o)):{}).token},me:function(){return(sessionStorage.getItem(o)?JSON.parse(sessionStorage.getItem(o)):{}).me},init:function(e,n){sessionStorage.setItem(o,JSON.stringify({token:e,me:n}))},refresh:function(e){var n=this.me();sessionStorage.setItem(o,JSON.stringify({token:e,me:n}))},isLoggedIn:function(){return!!sessionStorage.DSSession},logout:function(){sessionStorage.removeItem(o)}};function a(e){var n={exports:{}};return e(n,n.exports),n.exports}var u=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var f=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 n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(e){return n[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,n){for(var t,r,o=s(e),i=1;i<arguments.length;i++){for(var a in t=Object(arguments[i]))l.call(t,a)&&(o[a]=t[a]);if(u){r=u(t);for(var f=0;f<r.length;f++)c.call(t,r[f])&&(o[r[f]]=t[r[f]])}}return o},d=a(function(e,n){var t=60103,r=60106;n.Fragment=60107,n.StrictMode=60108,n.Profiler=60114;var o=60109,i=60110,a=60112;n.Suspense=60113;var u=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var c=Symbol.for;t=c("react.element"),r=c("react.portal"),n.Fragment=c("react.fragment"),n.StrictMode=c("react.strict_mode"),n.Profiler=c("react.profiler"),o=c("react.provider"),i=c("react.context"),a=c("react.forward_ref"),n.Suspense=c("react.suspense"),u=c("react.memo"),l=c("react.lazy")}var s="function"==typeof Symbol&&Symbol.iterator;function d(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function v(e,n,t){this.props=e,this.context=n,this.refs=h,this.updater=t||p}function m(){}function y(e,n,t){this.props=e,this.context=n,this.refs=h,this.updater=t||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,n){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,n,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=v.prototype;var g=y.prototype=new m;g.constructor=y,f(g,v.prototype),g.isPureReactComponent=!0;var b={current:null},C=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,n,r){var o,i={},a=null,u=null;if(null!=n)for(o in void 0!==n.ref&&(u=n.ref),void 0!==n.key&&(a=""+n.key),n)C.call(n,o)&&!k.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),s=0;s<l;s++)c[s]=arguments[s+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:t,type:e,key:a,ref:u,props:i,_owner:b.current}}function w(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var _=/\/+/g;function x(e,n){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return n[e]})}(""+e.key):n.toString(36)}function N(e,n,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var l=!1;if(null===e)l=!0;else switch(u){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case t:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+x(l,0):i,Array.isArray(a)?(o="",null!=e&&(o=e.replace(_,"$&/")+"/"),N(a,n,o,"",function(e){return e})):null!=a&&(w(a)&&(a=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+e)),n.push(a)),1;if(l=0,i=""===i?".":i+":",Array.isArray(e))for(var c=0;c<e.length;c++){var f=i+x(u=e[c],c);l+=N(u,n,o,f,a)}else if(f=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=s&&e[s]||e["@@iterator"])?e:null}(e),"function"==typeof f)for(e=f.call(e),c=0;!(u=e.next()).done;)l+=N(u=u.value,n,o,f=i+x(u,c++),a);else if("object"===u)throw n=""+e,Error(d(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n));return l}function O(e,n,t){if(null==e)return e;var r=[],o=0;return N(e,r,"","",function(e){return n.call(t,e,o++)}),r}function P(e){if(-1===e._status){var n=e._result;n=n(),e._status=0,e._result=n,n.then(function(n){0===e._status&&(n=n.default,e._status=1,e._result=n)},function(n){0===e._status&&(e._status=2,e._result=n)})}if(1===e._status)return e._result;throw e._result}var E={current:null};function j(){var e=E.current;if(null===e)throw Error(d(321));return e}var R={ReactCurrentDispatcher:E,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:f};n.Children={map:O,forEach:function(e,n,t){O(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return O(e,function(){n++}),n},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!w(e))throw Error(d(143));return e}},n.Component=v,n.PureComponent=y,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,n.cloneElement=function(e,n,r){if(null==e)throw Error(d(267,e));var o=f({},e.props),i=e.key,a=e.ref,u=e._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,u=b.current),void 0!==n.key&&(i=""+n.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in n)C.call(n,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===n[c]&&void 0!==l?l[c]:n[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var s=0;s<c;s++)l[s]=arguments[s+2];o.children=l}return{$$typeof:t,type:e.type,key:i,ref:a,props:o,_owner:u}},n.createContext=function(e,n){return void 0===n&&(n=null),(e={$$typeof:i,_calculateChangedBits:n,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},n.createElement=S,n.createFactory=function(e){var n=S.bind(null,e);return n.type=e,n},n.createRef=function(){return{current:null}},n.forwardRef=function(e){return{$$typeof:a,render:e}},n.isValidElement=w,n.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:P}},n.memo=function(e,n){return{$$typeof:u,type:e,compare:void 0===n?null:n}},n.useCallback=function(e,n){return j().useCallback(e,n)},n.useContext=function(e,n){return j().useContext(e,n)},n.useDebugValue=function(){},n.useEffect=function(e,n){return j().useEffect(e,n)},n.useImperativeHandle=function(e,n,t){return j().useImperativeHandle(e,n,t)},n.useLayoutEffect=function(e,n){return j().useLayoutEffect(e,n)},n.useMemo=function(e,n){return j().useMemo(e,n)},n.useReducer=function(e,n,t){return j().useReducer(e,n,t)},n.useRef=function(e){return j().useRef(e)},n.useState=function(e){return j().useState(e)},n.version="17.0.2"}),p=a(function(e,n){"production"!==process.env.NODE_ENV&&function(){var e=f,t=60103,r=60106;n.Fragment=60107,n.StrictMode=60108,n.Profiler=60114;var o=60109,i=60110,a=60112;n.Suspense=60113;var u=60120,l=60115,c=60116,s=60121,d=60122,p=60117,h=60129,v=60131;if("function"==typeof Symbol&&Symbol.for){var m=Symbol.for;t=m("react.element"),r=m("react.portal"),n.Fragment=m("react.fragment"),n.StrictMode=m("react.strict_mode"),n.Profiler=m("react.profiler"),o=m("react.provider"),i=m("react.context"),a=m("react.forward_ref"),n.Suspense=m("react.suspense"),u=m("react.suspense_list"),l=m("react.memo"),c=m("react.lazy"),s=m("react.block"),d=m("react.server.block"),p=m("react.fundamental"),m("react.scope"),m("react.opaque.id"),h=m("react.debug_trace_mode"),m("react.offscreen"),v=m("react.legacy_hidden")}var y="function"==typeof Symbol&&Symbol.iterator;function g(e){if(null===e||"object"!=typeof e)return null;var n=y&&e[y]||e["@@iterator"];return"function"==typeof n?n:null}var b={current:null},C={current:null},k={},S=null;function w(e){S=e}k.setExtraStackFrame=function(e){S=e},k.getCurrentStack=null,k.getStackAddendum=function(){var e="";S&&(e+=S);var n=k.getCurrentStack;return n&&(e+=n()||""),e};var _={ReactCurrentDispatcher:b,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:C,IsSomeRendererActing:{current:!1},assign:e};function x(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];O("warn",e,t)}function N(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];O("error",e,t)}function O(e,n,t){var r=_.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(n+="%s",t=t.concat([r]));var o=t.map(function(e){return""+e});o.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,o)}_.ReactDebugCurrentFrame=k;var P={};function E(e,n){var t=e.constructor,r=t&&(t.displayName||t.name)||"ReactClass",o=r+"."+n;P[o]||(N("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",n,r),P[o]=!0)}var j={isMounted:function(e){return!1},enqueueForceUpdate:function(e,n,t){E(e,"forceUpdate")},enqueueReplaceState:function(e,n,t,r){E(e,"replaceState")},enqueueSetState:function(e,n,t,r){E(e,"setState")}},R={};function T(e,n,t){this.props=e,this.context=n,this.refs=R,this.updater=t||j}Object.freeze(R),T.prototype.isReactComponent={},T.prototype.setState=function(e,n){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")},T.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var A={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},D=function(e,n){Object.defineProperty(T.prototype,e,{get:function(){x("%s(...) is deprecated in plain JavaScript React classes. %s",n[0],n[1])}})};for(var I in A)A.hasOwnProperty(I)&&D(I,A[I]);function F(){}function $(e,n,t){this.props=e,this.context=n,this.refs=R,this.updater=t||j}F.prototype=T.prototype;var L=$.prototype=new F;function B(e){return e.displayName||"Context"}function M(e){if(null==e)return null;if("number"==typeof e.tag&&N("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case n.Fragment:return"Fragment";case r:return"Portal";case n.Profiler:return"Profiler";case n.StrictMode:return"StrictMode";case n.Suspense:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case i:return B(e)+".Consumer";case o:return B(e._context)+".Provider";case a:return p=(d=e.render).displayName||d.name||"",e.displayName||(""!==p?"ForwardRef("+p+")":"ForwardRef");case l:return M(e.type);case s:return M(e._render);case c:var t=e._payload,f=e._init;try{return M(f(t))}catch(e){return null}}var d,p;return null}L.constructor=$,e(L,T.prototype),L.isPureReactComponent=!0;var U,z,q,Y=Object.prototype.hasOwnProperty,V={key:!0,ref:!0,__self:!0,__source:!0};function K(e){if(Y.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return void 0!==e.ref}function H(e){if(Y.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}function W(e,n){var t=function(){U||(U=!0,N("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function J(e,n){var t=function(){z||(z=!0,N("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}function G(e){if("string"==typeof e.ref&&C.current&&e.__self&&C.current.stateNode!==e.__self){var n=M(C.current.type);q[n]||(N('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',n,e.ref),q[n]=!0)}}q={};var X=function(e,n,r,o,i,a,u){var l={$$typeof:t,type:e,key:n,ref:r,props:u,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function Q(e,n,t){var r,o={},i=null,a=null,u=null,l=null;if(null!=n)for(r in K(n)&&(a=n.ref,G(n)),H(n)&&(i=""+n.key),u=void 0===n.__self?null:n.__self,l=void 0===n.__source?null:n.__source,n)Y.call(n,r)&&!V.hasOwnProperty(r)&&(o[r]=n[r]);var c=arguments.length-2;if(1===c)o.children=t;else if(c>1){for(var s=Array(c),f=0;f<c;f++)s[f]=arguments[f+2];Object.freeze&&Object.freeze(s),o.children=s}if(e&&e.defaultProps){var d=e.defaultProps;for(r in d)void 0===o[r]&&(o[r]=d[r])}if(i||a){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&W(o,p),a&&J(o,p)}return X(e,i,a,u,l,C.current,o)}function Z(n,t,r){if(null==n)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+n+".");var o,i,a=e({},n.props),u=n.key,l=n.ref,c=n._self,s=n._source,f=n._owner;if(null!=t)for(o in K(t)&&(l=t.ref,f=C.current),H(t)&&(u=""+t.key),n.type&&n.type.defaultProps&&(i=n.type.defaultProps),t)Y.call(t,o)&&!V.hasOwnProperty(o)&&(a[o]=void 0===t[o]&&void 0!==i?i[o]:t[o]);var d=arguments.length-2;if(1===d)a.children=r;else if(d>1){for(var p=Array(d),h=0;h<d;h++)p[h]=arguments[h+2];a.children=p}return X(n.type,u,l,c,s,f,a)}function ee(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var ne=!1,te=/\/+/g;function re(e){return e.replace(te,"$&/")}function oe(e,n){return"object"==typeof e&&null!==e&&null!=e.key?(t={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,function(e){return t[e]})):n.toString(36);var t}function ie(e,n,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var l,c,s,f=!1;if(null===e)f=!0;else switch(u){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case t:case r:f=!0}}if(f){var d=e,p=a(d),h=""===i?"."+oe(d,0):i;if(Array.isArray(p)){var v="";null!=h&&(v=re(h)+"/"),ie(p,n,v,"",function(e){return e})}else null!=p&&(ee(p)&&(l=p,c=o+(!p.key||d&&d.key===p.key?"":re(""+p.key)+"/")+h,p=X(l.type,c,l.ref,l._self,l._source,l._owner,l.props)),n.push(p));return 1}var m=0,y=""===i?".":i+":";if(Array.isArray(e))for(var b=0;b<e.length;b++)m+=ie(s=e[b],n,o,y+oe(s,b),a);else{var C=g(e);if("function"==typeof C){var k=e;C===k.entries&&(ne||x("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ne=!0);for(var S,w=C.call(k),_=0;!(S=w.next()).done;)m+=ie(s=S.value,n,o,y+oe(s,_++),a)}else if("object"===u){var N=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===N?"object with keys {"+Object.keys(e).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}}return m}function ae(e,n,t){if(null==e)return e;var r=[],o=0;return ie(e,r,"","",function(e){return n.call(t,e,o++)}),r}function ue(e){if(-1===e._status){var n=(0,e._result)(),t=e;t._status=0,t._result=n,n.then(function(n){if(0===e._status){var t=n.default;void 0===t&&N("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",n);var r=e;r._status=1,r._result=t}},function(n){if(0===e._status){var t=e;t._status=2,t._result=n}})}if(1===e._status)return e._result;throw e._result}function le(e){return"string"==typeof e||"function"==typeof e||e===n.Fragment||e===n.Profiler||e===h||e===n.StrictMode||e===n.Suspense||e===u||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===c||e.$$typeof===l||e.$$typeof===o||e.$$typeof===i||e.$$typeof===a||e.$$typeof===p||e.$$typeof===s||e[0]===d)}function ce(){var e=b.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");return e}var se,fe,de,pe,he,ve,me,ye=0;function ge(){}ge.__reactDisabledLog=!0;var be,Ce=_.ReactCurrentDispatcher;function ke(e,n,t){if(void 0===be)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);be=r&&r[1]||""}return"\n"+be+e}var Se,we=!1,_e="function"==typeof WeakMap?WeakMap:Map;function xe(n,t){if(!n||we)return"";var r,o=Se.get(n);if(void 0!==o)return o;we=!0;var i,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=Ce.current,Ce.current=null,function(){if(0===ye){se=console.log,fe=console.info,de=console.warn,pe=console.error,he=console.group,ve=console.groupCollapsed,me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ge,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ye++}();try{if(t){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(u,[])}catch(e){r=e}Reflect.construct(n,[],u)}else{try{u.call()}catch(e){r=e}n.call(u.prototype)}}else{try{throw Error()}catch(e){r=e}n()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var l=e.stack.split("\n"),c=r.stack.split("\n"),s=l.length-1,f=c.length-1;s>=1&&f>=0&&l[s]!==c[f];)f--;for(;s>=1&&f>=0;s--,f--)if(l[s]!==c[f]){if(1!==s||1!==f)do{if(s--,--f<0||l[s]!==c[f]){var d="\n"+l[s].replace(" at new "," at ");return"function"==typeof n&&Se.set(n,d),d}}while(s>=1&&f>=0);break}}}finally{we=!1,Ce.current=i,function(){if(0==--ye){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:e({},n,{value:se}),info:e({},n,{value:fe}),warn:e({},n,{value:de}),error:e({},n,{value:pe}),group:e({},n,{value:he}),groupCollapsed:e({},n,{value:ve}),groupEnd:e({},n,{value:me})})}ye<0&&N("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var p=n?n.displayName||n.name:"",h=p?ke(p):"";return"function"==typeof n&&Se.set(n,h),h}function Ne(e,n,t){return xe(e,!1)}function Oe(e,t,r){if(null==e)return"";if("function"==typeof e)return xe(e,function(e){var n=e.prototype;return!(!n||!n.isReactComponent)}(e));if("string"==typeof e)return ke(e);switch(e){case n.Suspense:return ke("Suspense");case u:return ke("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case a:return Ne(e.render);case l:return Oe(e.type,t,r);case s:return Ne(e._render);case c:var o=e._payload,i=e._init;try{return Oe(i(o),t,r)}catch(e){}}return""}Se=new _e;var Pe,Ee={},je=_.ReactDebugCurrentFrame;function Re(e){if(e){var n=e._owner,t=Oe(e.type,e._source,n?n.type:null);je.setExtraStackFrame(t)}else je.setExtraStackFrame(null)}function Te(e){if(e){var n=e._owner;w(Oe(e.type,e._source,n?n.type:null))}else w(null)}function Ae(){if(C.current){var e=M(C.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function De(e){return null!=e&&void 0!==(n=e.__source)?"\n\nCheck your code at "+n.fileName.replace(/^.*[\\\/]/,"")+":"+n.lineNumber+".":"";var n}Pe=!1;var Ie={};function Fe(e,n){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var n=Ae();if(!n){var t="string"==typeof e?e:e.displayName||e.name;t&&(n="\n\nCheck the top-level render call using <"+t+">.")}return n}(n);if(!Ie[t]){Ie[t]=!0;var r="";e&&e._owner&&e._owner!==C.current&&(r=" It was passed a child from "+M(e._owner.type)+"."),Te(e),N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,r),Te(null)}}}function $e(e,n){if("object"==typeof e)if(Array.isArray(e))for(var t=0;t<e.length;t++){var r=e[t];ee(r)&&Fe(r,n)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=g(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)ee(i.value)&&Fe(i.value,n)}}function Le(e){var n,t=e.type;if(null!=t&&"string"!=typeof t){if("function"==typeof t)n=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==a&&t.$$typeof!==l)return;n=t.propTypes}if(n){var r=M(t);!function(e,n,t,r,o){var i=Function.call.bind(Object.prototype.hasOwnProperty);for(var a in e)if(i(e,a)){var u=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": prop type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}u=e[a](n,a,r,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(Re(o),N("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",t,a,typeof u),Re(null)),u instanceof Error&&!(u.message in Ee)&&(Ee[u.message]=!0,Re(o),N("Failed %s type: %s",t,u.message),Re(null))}}(n,e.props,"prop",r,e)}else void 0===t.PropTypes||Pe||(Pe=!0,N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",M(t)||"Unknown"));"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Be(e){for(var n=Object.keys(e.props),t=0;t<n.length;t++){var r=n[t];if("children"!==r&&"key"!==r){Te(e),N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Te(null);break}}null!==e.ref&&(Te(e),N("Invalid attribute `ref` supplied to `React.Fragment`."),Te(null))}function Me(e,r,o){var i=le(e);if(!i){var a="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var u,l=De(r);a+=l||Ae(),null===e?u="null":Array.isArray(e)?u="array":void 0!==e&&e.$$typeof===t?(u="<"+(M(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):u=typeof e,N("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,a)}var c=Q.apply(this,arguments);if(null==c)return c;if(i)for(var s=2;s<arguments.length;s++)$e(arguments[s],e);return e===n.Fragment?Be(c):Le(c),c}var Ue=!1;try{var ze=Object.freeze({});new Map([[ze,null]]),new Set([ze])}catch(e){}var qe=Me,Ye={map:ae,forEach:function(e,n,t){ae(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return ae(e,function(){n++}),n},toArray:function(e){return ae(e,function(e){return e})||[]},only:function(e){if(!ee(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};n.Children=Ye,n.Component=T,n.PureComponent=$,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_,n.cloneElement=function(e,n,t){for(var r=Z.apply(this,arguments),o=2;o<arguments.length;o++)$e(arguments[o],r.type);return Le(r),r},n.createContext=function(e,n){void 0===n?n=null:null!==n&&"function"!=typeof n&&N("createContext: Expected the optional second argument to be a function. Instead received: %s",n);var t={$$typeof:i,_calculateChangedBits:n,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};t.Provider={$$typeof:o,_context:t};var r=!1,a=!1,u=!1,l={$$typeof:i,_context:t,_calculateChangedBits:t._calculateChangedBits};return Object.defineProperties(l,{Provider:{get:function(){return a||(a=!0,N("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return r||(r=!0,N("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){u||(x("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),u=!0)}}}),t.Consumer=l,t._currentRenderer=null,t._currentRenderer2=null,t},n.createElement=qe,n.createFactory=function(e){var n=Me.bind(null,e);return n.type=e,Ue||(Ue=!0,x("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(n,"type",{enumerable:!1,get:function(){return x("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),n},n.createRef=function(){var e={current:null};return Object.seal(e),e},n.forwardRef=function(e){null!=e&&e.$$typeof===l?N("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?N("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&N("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||N("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var n,t={$$typeof:a,render:e};return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,null==e.displayName&&(e.displayName=t)}}),t},n.isValidElement=ee,n.lazy=function(e){var n,t,r={$$typeof:c,_payload:{_status:-1,_result:e},_init:ue};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return n},set:function(e){N("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return t},set:function(e){N("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},n.memo=function(e,n){le(e)||N("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var t,r={$$typeof:l,type:e,compare:void 0===n?null:n};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,null==e.displayName&&(e.displayName=n)}}),r},n.useCallback=function(e,n){return ce().useCallback(e,n)},n.useContext=function(e,n){var t=ce();if(void 0!==n&&N("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",n,"number"==typeof n&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":""),void 0!==e._context){var r=e._context;r.Consumer===e?N("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&N("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e,n)},n.useDebugValue=function(e,n){return ce().useDebugValue(e,n)},n.useEffect=function(e,n){return ce().useEffect(e,n)},n.useImperativeHandle=function(e,n,t){return ce().useImperativeHandle(e,n,t)},n.useLayoutEffect=function(e,n){return ce().useLayoutEffect(e,n)},n.useMemo=function(e,n){return ce().useMemo(e,n)},n.useReducer=function(e,n,t){return ce().useReducer(e,n,t)},n.useRef=function(e){return ce().useRef(e)},n.useState=function(e){return ce().useState(e)},n.version="17.0.2"}()}),v=a(function(e){e.exports="production"===process.env.NODE_ENV?d:p}),m=function(e){var n=e.size,t=e.clickable,r=e.action;return h("i",{className:"icon "+(void 0===n?"normal":n)+" "+(void 0!==t&&t?"clickable":"")+" material-icons",onClick:function(e){e.stopPropagation(),e.preventDefault(),r&&r()}},e.icon)},y=function(e){var n=e.label,t=e.icon,r=e.action,o=e.disabled,i=void 0!==o&&o,a=e.raised?"raised":e.outlined?"outlined":"normal";return i&&(a+=" disabled"),h("button",{className:"btn "+a,onClick:function(e){i||(e.stopPropagation(),e.preventDefault(),r&&r())}},t?h(m,{icon:t,size:"small"}):null,h("span",null,n))},g=React.createContext({}),b=function(e){var n=e.children,t=v.useContext(g);if(t){var r=t.dictionary,o=(void 0===r?{}:r)[n],i=o?o[t.lang]:n;return i?h("span",null,i):""}return n?h("span",null,n):""},C=function(e){var n=e.id,t=e.label,r=e.placeholder,o=e.value,i=e.onChange;function a(e){i&&i(n,e.target.checked)}var u=h(b,null,t);return console.log(t,o),!0===o?h("div",{className:"checkbox",key:n+"1"},h("input",{id:n,type:"checkbox",placeholder:r,checked:!0,value:o,onChange:a}),h("span",{class:"checkmark"}),h("label",{htmlFor:n},u)):h("div",{className:"checkbox",key:n+"0"},h("input",{id:n,type:"checkbox",placeholder:r,value:o,onChange:a}),h("span",{class:"checkmark"}),h("label",{htmlFor:n},u))},k=function(e){var n=e.title,t=e.columns,r=void 0===t?1:t,o=e.children,i=e.outlined,a=e.onChange,u=v.useState([]),l=u[0],c=u[1],s=function(e){return null==e||""===e};v.useEffect(function(){var e=v.Children.toArray(o).filter(function(e){return null!==e&&""!==e}).map(function(e){var n=e.props,t=n.id,r=n.value,o=n.required,i=void 0!==o&&o,a=n.validation,u=!i||(a?a(r):!s(r));return{id:t,value:r,required:i,validation:a,valid:u}}).filter(function(e){return void 0!==e.id});c(e)},[]),v.useEffect(function(){if(a){var e=l.every(function(e){return!0===e.valid}),n=l.reduce(function(e,n){var t=n.value;return(t||!1===t)&&(e[n.id]=t),e},{});a(n,e)}},[l]);var f=function(e,n){var t=l.find(function(n){return n.id===e});if(t){var r=!t.required||(t.validation?t.validation(n):!s(n));Object.assign(t,{value:n,valid:r}),c(l.slice())}},d=v.Children.toArray(o).filter(function(e){return null!==e&&""!==e}).map(function(e){var n=e.props.span,t=void 0===n?1:n,r=v.cloneElement(e,{onChange:f,outlined:!!i});return h(S,{style:{gridColumn:"span "+t}},r)}),p={gridTemplateColumns:"repeat("+r+", 1fr)"};return h(v.Fragment,null,n?h("header",{className:"form-header"},h(b,{use:"headline6"},n)):"",h("form",{className:"form-grid",style:p},d))},S=function(e){return h("div",{className:"field-wrapper",style:e.style},e.children)},w=function(e){var n=e.caption?"caption":"",t=e.prominent?"prominent":"",r=e.dense?"dense":"",o=e.primary?"primary":"";o=e.secondary?"secondary":o;var i=e.icon?h(m,{icon:e.icon,clickable:e.clickable,action:e.action}):"";i=e.iconSrc?h("img",{className:"header-icon",src:e.iconSrc}):i;var a=e.img?{backgroundImage:"url("+e.img+")"}:{},u=h(b,null,e.title);return h("header",{className:"header "+n+" "+t+" "+r+" "+o+" "+e.className,style:a},i,e.title?h("label",null,u):null,h("span",{className:"actions"},e.children))};function _(){return _=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},_.apply(this,arguments)}var x=function(e){var n=e.items,t=void 0===n?[]:n,r=e.children,o=e.onSelect;function i(e){o&&o(e)}return e.groupBy?h(N,_({},e,{onSelect:i})):h("div",{className:"list"},h("ul",null,t.map(function(e){return h(O,{key:e.id,item:e,onSelect:i})})),r)},N=function(e){var n=e.items,t=e.children,r=e.onSelect,o=e.groupBy,i=(void 0===n?[]:n).reduce(function(e,n){var t=e.find(function(e){return e.name===n.content[o]});return t||e.push(t={name:n.content[o],items:[]}),t.items.push(n),e},[]);return h("div",{className:"list"},i.map(function(e){return h(v.Fragment,{key:e.name},h("header",{key:e.name+"-header"},h(b,null,e.name)),h("ul",{key:e.name+"-ul"},e.items.map(function(e){return h(O,{key:e.id,item:e,onSelect:r})})))}),t)},O=function(e){var n=e.item,t=e.onSelect,r=n.id,o=n.icon,i=n.line1,a=n.line2,u=n.meta;return h("li",{id:r,onClick:function(){t&&t(r)}},o?h(m,{icon:o,size:"small"}):null,h("main",null,h("div",{className:"primary-line"},h(b,null,i)),a?h("div",{className:"secondary-line"},h(b,null,a)):null),u?h("div",{className:"meta"},u):null)},P=v.createContext({}),E=function(e){return h("ul",null,e.children)},j=function(e){var n=e.icon,t=void 0===n?"more_vert":n,r=e.children,o=e.align,i=v.useState(!1),a=i[0],u=i[1];function l(){u(!a)}return h(P.Provider,{value:[a,u]},h("div",{className:"menu-icon"},h(m,{icon:t,clickable:!0,action:l}),a?h("menu",{className:""+o},r):null,a?h("div",{className:"overlay",onClick:l}):null))},R=function(e){var n=e.icon,t=e.label,r=e.meta,o=e.onSelect,i=v.useContext(P)[1];return h("li",{className:"menu-item",onClick:function(){o&&o(),i(!1)}},n?h(m,{icon:n}):null,h("label",null,t),r?h("div",{className:"meta"},r):null)},T=function(e){var n=e.selected,t=e.onChange,r=v.Children.map(e.children,function(e,r){return v.cloneElement(e,{selected:r===n,onSelect:function(){t&&t(r)}})});return h("div",{class:"tabs"},r,h("div",{class:"tab-filler"}))},A=function(e){var n=e.onSelect;return h("div",{className:"tab "+(e.selected?"selected":""),onClick:function(){n&&n()}},e.label,e.actions||null)},D=function(e){var n=e.selected,t=void 0===n?0:n,r=v.Children.toArray(e.children).filter(function(e,n){return n===t})[0];return h(v.Fragment,null,r)},I=function(e){var n=v.useContext(g),t=e.id,r=e.type,o=void 0===r?"text":r,i=e.label,a=e.placeholder,u=e.value,l=e.readOnly,c=void 0!==l&&l,s=e.onChange,f=e.onEnter,d=e.onClick,p=(i?"":"no-label")+" "+(e.outlined?"textfield-outlined":"textfield"),m=h(b,null,i);return h("div",{className:""+p,onClick:d},h("input",{id:t,type:o,placeholder:a,value:u,required:!0,onChange:function(e){e.stopPropagation(),e.preventDefault(),s&&s(t,e.target.value)},onKeyDown:function(e){13==(e.charCode?e.charCode:e.keyCode?e.keyCode:0)&&f()},onFocus:function(){n&&n.changeFocus({lose:function(){}})},readOnly:c}),h("span",{className:"bar"}),i?h("label",null,m):null)},F=function(e){var n=v.useContext(g),t=e.id,r=e.options,o=void 0===r?[]:r,i=e.value,a=e.onChange,u=v.useState(!1),l=u[0],c=u[1],s=v.useState(),f=s[0],d=s[1];function p(){n&&n.changeFocus({lose:function(){c(!1)}}),c(!l)}return v.useEffect(function(){if(Array.isArray(o)){var e=o.find(function(e){return e.value===i});e&&d(e.label)}},[i]),h("div",{className:"dropdown"},h(I,_({},e,{onClick:p,value:f})),h(m,{icon:"expand_more",clickable:!0,size:"small",action:p}),1==l?h("menu",null,h("ul",{onClick:function(e){var n=e.target.getAttribute("value"),r=o.find(function(e){return e.value===n});a&&a(t,n),d(r.label),c(!1)}},Array.isArray(o)?o.map(function(e){return h("li",{key:e.value,value:e.value},e.label)}):null)):null)},$=function(e){var n=e.columns,t=void 0===n?[]:n,r=e.rows,o=void 0===r?[]:r,i=e.onRowSelection,a=e.onSort,u=e.editable,l=e.outlined,c=v.useState({})[0];function s(e,n){i&&i(e,n)}function f(e,n){a&&a(e,n)}return h("div",{className:"datatable8 "+(l?"outlined":"")},h("table",null,h("thead",null,h("tr",null,t.map(function(e){var n=e.sortable;return h("th",null,h(b,null,e.label),n?h(m,{icon:"arrow_up",size:"small",clickable:!0}):null)}))),h("tbody",null,function(e,n){void 0===n&&(n={});var t=Object.keys(n);if(!t.length)return e;var r=function(e,n,t){return t=null!==t?t:1,e===n?0:e>n?t:-1*t};return e.sort(function(e,o){for(var i=0,a=0;0===i&&a<t.length;){var u=t[a];u&&(i=r(e[u],o[u],n[u]),a++)}return i})}(o,c).map(function(e){return h(L,{key:e.id,row:e,columns:t,onSelect:s,onDrop:f,editable:u})}))))},L=function(e){var n,t=e.row,r=e.columns,o=void 0===r?[]:r,i=e.onSelect,a=e.editable,u=v.useState(!1),l=u[0],c=u[1],s=l?"expand_more":"expand_less";return h(v.Fragment,null,h("tr",{onClick:function(e){return i(t,e)}},o.map(function(e){return h(B,{row:t,column:e,cell:t[e.id],editable:a})}),t.info?h(m,{icon:s,clickable:!0,action:function(){return c(!l)}}):null),t.info&&l?h("tr",{className:"table-row-info"},(n=t.info)&&("[object Function]"===Object.prototype.toString.call(n)||"function"==typeof n||n instanceof Function)?t.info():t.info):null)},B=function(e){var n=e.row,t=e.column,r=e.cell,o=e.editable;return h("td",{className:t.id},function(e){var i=t.id,a=t.disabled,u=void 0!==a&&a,l=t.min,c=t.max,s=t.onChange,f=t.options;if(o&&s)switch(e){case"ICON":return h(m,{icon:r});case"BOOLEAN":case"Boolean":return h(C,{id:i,value:r,onChange:function(e,t){return s(n.id,e,t)},disabled:u});case"SELECTION":return h(F,{id:i,value:r,placeholder:"--Select--",options:f,onChange:function(e,t){return s(n.id,e,t)}});case"CHECK":return h(C,{id:i,value:r,onChange:function(e,t){return s(n.id,e,t)},disabled:n.disabled});case"CHECKABLE":return r&&r.value?h(C,{id:i,value:r.checked||!1,label:r.value,onChange:function(e,t){return s(n.id,e,r.value,t,r)}}):"";case"TEXTFIELD":return h(I,{id:i,value:r,onChange:function(e,t){return s(n.id,e,t)}});case"String":return h(z,{id:i,value:r,options:f,onChange:function(e,t){return s(n.id,e,t)}});case"Number":return h(I,{id:i,type:"number",value:r,min:l,max:c,onChange:function(e,t){return s(n.id,e,t)}});default:return r}else switch(e){case"ICON":return h(m,{icon:r});case"Boolean":return h(M,{id:i,value:r});case"String":return h(U,{id:i,value:r,options:f});default:return r}}(t.type))},M=function(e){var n=e.value;return h(m,{icon:!0===(void 0!==n&&n)?"check_box":"check_box_outline_blank"})},U=function(e){var n=e.value,t=e.options,r=t?t.find(function(e){return e.value===n}):null;return h("div",{className:"field-editor string-editor"},r?r.label:n)},z=function(e){var n=e.id,t=e.value,r=void 0===t?"":t,o=e.options,i=e.onChange;function a(e,n){i&&i(e,n)}return h("div",{className:"field-editor string-editor"},o?h(F,{outlined:!0,id:n,value:r,onChange:a,options:o}):h(I,{outlined:!0,id:n,value:r,onChange:a}))},q=function(e){var n=e.id,t=e.label,r=e.init,o=e.onChange,i=v.useRef(!1),a=v.useState(),u=a[0],l=a[1],c=v.useState(r),s=c[0],f=c[1];return v.useEffect(function(){i.current?o&&s&&o(n,s):i.current=!0},[s]),h("div",{className:"tokenField"},h("label",null,t),s.map(function(e,n){return h(Y,{text:e,onDelete:function(){return function(e){var n=s.slice();n.splice(e,1),f(n)}(n)}})}),h("input",{type:"text",value:u,onChange:function(e){l(e.target.value)},onKeyDown:function(e){if("Enter"===e.key){e.preventDefault(),e.stopPropagation();var n=s.concat(e.target.value);f(n),l("")}if(""===u&&s.length>0&&"Backspace"===e.key){var t=s.slice(0,-1);f(t)}}}))},Y=function(e){var n=e.onDelete;return h("div",{className:"token"},h(b,{use:"caption",tag:"div"},e.text),h(m,{icon:"close",clickable:!0,action:n,size:"small"}))},V=function(e){var n=e.nodes;return h("div",{className:"tree"},void 0===n?[]:n,e.children)},K=function(e){var n=e.icon,t=void 0===n?"folder":n,r=e.label,o=e.open,i=e.children,a=e.actions;return h("details",{className:"tree-node",open:void 0!==o&&o},h("summary",{className:"tree-item"},t?h(m,{icon:t,size:"small",small:!0}):null,h("div",{className:"label"},r),h("div",{className:"actions"},a)),i)},H=function(e){var n=e.id,t=e.icon,r=e.label,o=e.actions,i=e.onSelect;return h("div",{className:"tree-item final",onClick:function(){i&&i(n)}},h(m,{icon:void 0===t?"description":t,size:"small",small:!0}),h("div",{className:"label"},r),h("div",{className:"actions"},o))},W=v.createContext({}),J=function(e){var n=e.context,t=e.children,r=v.useState(void 0===n?{}:n);return h(W.Provider,{value:[r[0],r[1]]},t)},G=function(e){var n=e.layout,t=e.context;return h(J,{context:void 0===t?{}:t},h("article",{className:"page6 "+(void 0===n?"simple":n)},e.children))},X=function(e){var n=e.children,t=e.siteDictionary,r=v.useState(e.siteLang),o=r[0],i=r[1],a=v.useState(t),u=a[0],l=a[1],c=v.useState("max"),s=c[0],f=c[1],d=v.useState(!1),p=d[0],m=d[1],y=v.useState(null),b=y[0],C=y[1],k=v.useState(!1),S=k[0],w=k[1],_=v.useState(),x=_[0],N=_[1],O=v.useState(),P=O[0],E=O[1],j=v.useState(),R=j[0],T=j[1],A=v.useState(),D=A[0],I=A[1],F=v.useState(),$=F[0],L=F[1],B={lang:o,setLang:i,dictionary:u,setDictionary:l,focused:$,changeFocus:function(e){$&&$.lose(),L(e)},sideNav:s,setSideNav:f,showNav:p,setShowNav:m,info:b,openInfo:function(e){C(e)},closeInfo:function(){C(null)},console:S,toggleConsole:function(){w(!S)},breadcrumb:D,setBreadcrumb:I,page:x,goto:function(e){N(e)},dialog:P,openDialog:function(e){E(e)},closeDialog:function(){E(null)},preview:R,openPreview:function(e){T(e)},closePreview:function(){T(null)}};return h(g.Provider,{value:B},n)},Q=function(e){var n=e.icon;return h(w,{icon:void 0===n?"equalizer":n,title:e.title})},Z=function(e){var n=e.children;return v.useContext(g),h("nav",null,n)},ee=function(){var e=v.useContext(g);return e.info?h("aside",null,e.info):""},ne=function(e){var n=e.children,t=e.min,r=v.useContext(g),o=r.showNav;v.useEffect(function(){t&&r.setSideNav("min")},[]);var i=n?v.Children.toArray(n).reduce(function(e,n){var t=n.props?n.props.section:"...";e[t]||(e[t]=[]);var r=n.props,o=r.title;return o&&e[t].push({id:r.id,icon:r.icon,title:o}),e},{}):{};return h("menu",{className:"min "+(o?"show":"")},h("main",null,Object.keys(i).map(function(e){return h(v.Fragment,{key:e},i[e].map(function(e){var n=e.id,t=e.icon;return h(m,{key:n,icon:void 0===t?"info":t,clickable:!0,checked:n===r.page,action:function(){return function(e){r.setShowNav(!1),r.goto(e)}(n)}})}),h("div",{className:"section-divider"}))})))},te=function(e){var n=e.children,t=e.init,r=v.useContext(g),o=r.page;return v.useEffect(function(){r.goto(t||"EMPTY")},[]),h("main",null,v.Children.toArray(n).filter(function(e){return!!e.props&&e.props.id===o}))},re=function(){var e=v.useContext(g);return e.dialog?e.dialog:""},oe=function(){var e=v.useContext(g);return e.preview?h("div",{className:"site-preview"},e.preview):""},ie=function(){return v.useContext(g).console?h("footer",{className:"site-console"},h(w,null,h(T,null,h(A,{label:"Console"}))),h("main",null)):""},ae=function(e){var n=v.useContext(g),t=e.icon,r=e.title,o=void 0===r?"Dialog":r,i=e.children,a=e.actions;return h(v.Fragment,null,h("div",{className:"overlay"}),h("div",{className:"dialog",onClick:function(){n.closeDialog()}},h("div",{className:"dialog-panel",onClick:function(e){e.preventDefault(),e.stopPropagation()}},h("header",null,t?h(j,{icon:t}):null,h(b,null,o)),h("main",null,i),h("footer",null,a))))},ue={STRING:"String",NUMBER:"Number",DATE:"Date",BOOLEAN:"Boolean",ARRAY:"Array",ENTITY:"Object",FUNCTION:"Function",EMAIL:"String"},le=Object.values(ue).reduce(function(e,n){return e["is"+n]=function(e){return toString.call(e)=="[object "+n+"]"},e},{}),ce=/*#__PURE__*/function(){function e(e){this._schema=e}var n=e.prototype;return n.checkType=function(n,t){var r=n.type,o=n.item,i=!0,a=!0;if(o){var u=new e(o);switch(r){case ue.ARRAY:i=le["is"+r](t),a=t.every(function(e){return u.validate(e)});break;case ue.ENTITY:i=le["is"+r](t),a=u.validate(t);break;case ue.NUMBER:i=le["is"+r](t.value),a=!0;break;default:i=!0,a=!0}}return i&&a},n.validate=function(e){var n=this;return Object.entries(this._schema).filter(function(e){return!0===e[1].required}).every(function(t){var r=t[0];return void 0!==e[r]&&n.checkType(t[1],e[r])})},n.form=function(e){return Object.entries(this._schema).reduce(function(n,t){var r=t[0];return n[r]=Object.assign({},t[1],{value:e[r]}),n},{})},n.sections=function(e){var n=this.form(e),t=Object.values(n).reduce(function(e,n){var t=n.section||"";return e.hasOwnProperty(t)||(e[t]={title:t,fields:[]}),e[t].fields.push(n),e},{});return Object.values(t)},n.value=function(n){return Object.entries(this._schema).reduce(function(t,r){var o=r[0],i=r[1],a=i.item,u=n?n[o]:null;switch(i.type){case ue.STRING:case ue.NUMBER:case ue.BOOLEAN:t[o]=u||i.default;break;case ue.ENTITY:var l=new e(a);t[o]=l.value(u);break;case ue.ARRAY:if(a===ue.STRING)t[o]=u||[];else{var c=new e(a);t[o]=u?u.map(function(e){return c.value(e)}):[]}break;default:t[o]=i}return t},{})},e}(),se=/*#__PURE__*/function(){function e(e,n){this.type=e,this._type=new ce(e),this._value=n}var n=e.prototype;return n.isValid=function(){return this._type.validate(this._value)},n.value=function(){return this._type.value(this._value)},n.form=function(){return this._type.form(this._value)},n.sections=function(){return this._type.sections(this._value)},n.update=function(e){this._value=e},e}(),fe=function(e){var n=e.columns,t=void 0===n?1:n,r=e.filter,o=e.onChange,i=e.content.form();console.log(i);var a=Object.keys(i).map(function(e){return i[e]}).filter(function(e){return!r||r(e)});return console.log(a),h(k,{className:"content-form",columns:t,outlined:!0,onChange:o},a.map(function(e){return h(de,_({key:e.id},e))}))},de=function(e){switch(e.type){case ue.BOOLEAN:return h(C,_({key:e.id},e));case ue.NUMBER:return h(he,_({key:e.id},e));default:return h(pe,_({key:e.id},e))}},pe=function(e){var n,t=e.id,r=e.type,o=e.label,i=e.options,a=e.textarea,u=e.required,l=void 0!==u&&u,c=e.value,s=e.onChange,f=e.outlined,d=((n={})[ue.NUMBER]="number",n[ue.DATE]="date",n)[r]||"text";return i?h(F,{key:t,id:t,label:o,value:c,onChange:s,options:"function"==typeof i?i():i,outlined:f}):h(I,{key:t,id:t,type:d,label:o,value:c,onChange:s,required:l,outlined:f,textarea:a})},he=function(e){var n=e.id,t=e.label,r=e.options,o=e.required,i=void 0!==o&&o,a=e.value,u=e.onChange,l=e.outlined;function c(e,n){u&&u(e,+n?+n:n)}return r?h(F,{key:n,id:n,label:t,value:a,onChange:c,options:r,outlined:l}):h(I,{key:n,id:n,type:"number",label:t,value:a,onChange:c,required:i,outlined:l})},ve=function(e){var n=e.content,t=e.filter,r=e.onChange;function o(e,t){var o,i=Object.assign({},n.value(),((o={})[e]=t,o));r&&r(i)}var i=n.sections();return h("div",{className:"content-editor"},i.map(function(e){var r=e.title,i=e.fields;return h("section",{key:r},h("header",null,r),h("main",null,i.filter(function(e){return"id"!==e.id}).filter(function(e){return!t||t(e,n)}).map(function(e){return h(ge,{key:e.id,field:e,onChange:o})})))}))},me=function(e){var n=e.content,t=e.filter,r=e.grouped,o=void 0!==r&&r,i=e.onChange,a=v.useState(0),u=a[0],l=a[1];function c(e,t){var r,o=Object.assign({},n.value(),((r={})[e]=t,r));i&&i(o)}var s=n.sections();return h("div",{className:"content-editor tabbed"},h(T,{selected:u,onChange:function(e){l(e)}},s.map(function(e){return h(A,{label:e.title})})),h(D,{selected:u},s.map(function(e){var r=e.fields;return h("section",{key:e.title},h("nav",null," "),h("main",null,o?function(e){var n=e.fields,t=(void 0===n?[]:n).reduce(function(e,n){var t=n.group||"",r=e[t]||{name:t,fields:[]};return r.fields.push(n),e[t]=r,e},{});return Object.values(t)}(e).map(function(e){return h(v.Fragment,null,e.name.length>0?h("div",{className:"group-caption"},e.name):null,e.fields.filter(function(e){return"id"!==e.id}).filter(function(e){return!t||t(e)}).map(function(e){return h(ge,{key:e.id,field:e,onChange:c,content:n})}))}):r.filter(function(e){return"id"!==e.id}).filter(function(e){return!t||t(e)}).map(function(e){return h(ge,{key:e.id,field:e,onChange:c,content:n})})))})))},ye=function(e){var n=e.content,t=e.onChange,r=n.value(),o=Object.values(n.type).filter(function(e){return e.type===ue.ARRAY}),i=v.useState(),a=i[0],u=i[1];function l(){}return h("div",{className:"content-editor treeded-editor"},h("menu",null,h("header",null,h(b,{use:"caption"},"Tree Editor")),h(V,null,o.map(function(e,n){return h(K,{icon:"folder",label:e.label,actions:[h(m,{small:!0,icon:"add",clickable:!0,action:l})]},r[e.id]?r[e.id].map(function(n,t){return h(H,{icon:n.icon||"description",label:n.name||n.label,onSelect:function(){return function(e,n,t){var o=new se(t.item,n);u({index:e,item:o,node:t,value:r[t.id]})}(t,n,e)}})}):null)}))),h("div",null,a?h(me,{content:a.item,onChange:function(e){var n,o=a.value.slice();o[a.index]=e;var i=Object.assign({},r,((n={})[a.node.id]=o,n));t&&t(i)}}):"select"))},ge=function(e){var n=e.field,t=e.onChange,r=e.content,o=e.outlined,i=void 0!==o&&o,a=n.id,u=n.type,l=n.item,c=n.label,s=n.editable,f=n.options;function d(e,n){t&&t(e,n)}return function(){var e=n.value?n.value:n.default;switch(u){case ue.ENTITY:return h(be,{field:n,value:e,onChange:d});case ue.STRING:return h(Ce,{outlined:i,field:n,value:e,onChange:d,content:r});case ue.BOOLEAN:return h(C,{outlined:!0,id:a,label:c,value:e,onChange:d});case ue.DATE:return h(I,{outlined:i,id:a,type:"date",label:c,value:e,onChange:d,disabled:s});case ue.NUMBER:return h(ke,{outlined:i,field:n,value:e,onChange:d});case ue.ARRAY:return l===ue.STRING?f?h(we,{content:r,field:n,value:e,onChange:d}):h(Se,{field:n,value:e,onChange:d}):h(_e,{field:n,value:e,onChange:d});default:return h("div",null,c)}}()},be=function(e){var n=e.field,t=e.value,r=e.onChange,o=n.id,i=n.label,a=new se(n.item,void 0===t?{}:t);function u(e,n){var t,i=Object.assign({},a.value(),((t={})[e]=n,t));r&&r(o,i)}var l=a.form(),c=Object.keys(l).map(function(e){return l[e]});return h("div",{className:"entity-editor"},h("header",null,h(b,{use:"caption"},i)),h("main",null,c.map(function(e){return h(ge,{key:e.id,field:e,onChange:u})})))},Ce=function(e){var n=e.field,t=e.value,r=void 0===t?"":t,o=e.onChange,i=e.outlined,a=n.id,u=n.label,l=n.options,c=n.editable;function s(e,n){o&&o(e,n)}return h("div",{className:"field-editor string-editor"},void 0===c||c?l?h(F,{outlined:i,id:a,label:u,value:r,onChange:s,options:"function"==typeof l?l(n,e.content):l}):h(I,{outlined:i,id:a,label:u,value:r,onChange:s}):h(I,{outlined:i,id:a,label:u,value:r,onChange:s,readOnly:!0}))},ke=function(e){var n=e.field,t=e.onChange,r=n.editable;return h("div",{className:"field-editor number-editor"},h(I,{outlined:!0,id:n.id,label:n.label,type:"NUMBER",value:e.value||n.default,max:n.max,min:n.min,onChange:function(e,n){t&&t(e,n)},disabled:!(void 0===r||r)}))},Se=function(e){var n=e.field,t=e.value,r=e.onChange;return h("div",{className:"list-editor"},h(q,{id:n.id,label:n.label,init:void 0===t?[]:t,onChange:function(e,n){r&&r(e,n)}}))},we=function(e){var n=e.field,t=e.value,r=void 0===t?[]:t,o=e.content,i=e.onChange,a=n.id,u=n.options;return h("div",{className:"multiselection-editor"},h("label",null,n.label),("function"==typeof u?u(n,o):u).map(function(e){var n=r.includes(e.value);return h(C,{value:n,label:e.label,onChange:function(){return(t=r.indexOf(n=e.value))>=0?r.splice(t,1):r.push(n),void(i&&i(a,r));var n,t}})}))},_e=function(e){var n=e.field,t=e.value,r=void 0===t?[]:t,o=e.onChange,i=n.id,a=n.item,u=n.label,l=n.Feeder,c=n.Renderer,s=n.Adder,f=void 0===s||s,d=n.editable,p=void 0===d||d;function v(e){if(o){var n=r.concat(e);o(i,n)}}function y(e){if(o){var n=r.filter(function(n,t){return t!==e});o(i,n)}}function g(e,n,t){if(o){var a=r.slice();a[e][n]=t,o(i,a)}}var C=Object.values(a).map(function(e){return _({},e,{onChange:g})});C.push({id:"actions",label:"Actions"});var k=r.map(function(e,n){return _({},e,{id:n,actions:[h(m,{icon:"delete",clickable:!0,action:function(){return y(n)},small:!0})]})}),S={columns:C,rows:k};return h("div",{className:"collection-editor"},h("header",null,h(b,{use:"caption"},u),h("div",{className:"actions"},l?h(l,{onAdd:v}):null)),c?h(c,{field:n,value:r,onRemove:y,onChange:o}):h($,_({},S,{editable:p})),h("footer",null,f?h(xe,{item:a,onAdd:v}):null))},xe=function(e){var n=e.item,t=e.onAdd,r=v.useState(!1),o=r[0],i=r[1],a=v.useState({}),u=a[0],l=a[1];function c(){i(!o)}function s(e,n,r){if(t){var o,i=Object.assign({},u,((o={})[n]=r,o));l(i)}}var f=Object.values(n).map(function(e){return _({},e,{type:"String",onChange:s})});f.push({id:"actions",label:""});var d=[{actions:[h(m,{icon:"done",clickable:!0,action:function(){t&&t([u]),c()}}),h(m,{icon:"close",clickable:!0,action:c})]}];return d[0]=Object.assign({},u,d[0]),h("div",{className:"collection-adder"},o?h($,_({},{columns:f,rows:d},{editable:!0})):h(y,{icon:"add",label:"Add",action:c}))},Ne=function(e){var n=e.label,t=e.type,r=e.value,o=void 0===r?{}:r,i=e.filter,a=e.validator,u=e.onOK,l=v.useContext(g),c=v.useState(o),s=c[0],f=c[1],d=v.useState(!1),p=d[0],m=d[1],C=v.useState([]),k=C[0],S=C[1];function w(e){"OK"===e&&u&&u(Object.assign({},o,s)),l.closeDialog()}var _=h(v.Fragment,null,h(y,{label:"CLOSE",action:function(){return w("CLOSE")}}),h("div",{className:"expand"}),h(y,{label:"OK",action:function(){return w("OK")},disabled:!p,raised:!0})),x=h(b,{use:"headline6"},n),N=new se(t,s);return h(ae,{title:x,open:!0,onAction:w,actions:_},h(ve,{content:N,onChange:function(e){if(f(e),a){var n=a(e),t=n.errors,r=void 0===t?[]:t;m(n.validation),S(r)}else m(!0)},filter:i}),k.map(function(e){return h(b,{use:"overline",tag:"div",className:"error"},e)}))};function Oe(e,n){try{var t=e()}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}var Pe=r(window.API||process.env.REACT_APP_API,i),Ee=function(e){var n=e.groupBy,t=v.useContext(W),r=t[0],o=t[1],i=r.all,a=void 0===i?[]:i,u=a?a.map(function(e){return{id:e.id,line1:e.name,line2:e.description,content:e}}):[];return h(x,{items:u,onSelect:function(e){try{return r.clear(),o(Object.assign({},r)),Promise.resolve(r.select(e)).then(function(){o(Object.assign({},r))})}catch(e){return Promise.reject(e)}},groupBy:n})},je=function(e){var n=function(e){try{return o.clear(),i(Object.assign({},o)),Promise.resolve(o.select(e)).then(function(){i(Object.assign({},o))})}catch(e){return Promise.reject(e)}},t=e.levels,r=v.useContext(W),o=r[0],i=r[1],a=o.all,u=function e(n,t){var r=function(e,n){return e.reduce(function(e,t){var r=e.find(function(e){return e.name===t[n]});return r||e.push(r={name:t[n],items:[],field:n}),r.items.push(t),e},[])}(t,n[0]);return n.length>1&&r.forEach(function(t){return t.nodes=e(n.slice(1),t.items)}),r}(t,void 0===a?[]:a);return h("main",null,h(V,null,function e(t){return t.map(function(t){return h(K,{key:t.name,icon:null,label:"boolean"==typeof t.name?t.field+" = "+t.name:t.name,open:!0},t.nodes?e(t.nodes):t.items.map(function(e){return h(H,{key:e.id,id:e.id,label:e.name,onSelect:n},"item")}))})}(u)))},Re=function(e){var t=function(){try{return console.log("saving....."),Promise.resolve(o.update(k)).then(function(){i(Object.assign({},o))})}catch(e){return Promise.reject(e)}},r=v.useContext(W),o=r[0],i=r[1],a=o.selected,u=e.icon,l=e.schema,c=e.layout,s=e.autosave,f=void 0!==s&&s,d=e.delay,p=void 0===d?1e3:d,g=v.useRef(null),C=v.useState(a),k=C[0],S=C[1];function x(e){S(e)}function N(){return!n.default(k,a)}return v.useEffect(function(){S(a)},[a]),v.useEffect(function(){f&&(clearTimeout(g.current),g.current=setTimeout(function(){N()&&t()},p))},[k]),a&&k?h(v.Fragment,null,h(w,{icon:u,title:h(b,null,a.name)},h(m,{icon:"close",clickable:!0,action:function(){o.clear(),i(Object.assign({},o))}}),h(j,{align:"alignRight"},h(E,null,h(R,{label:"Eliminar",onSelect:function(){try{return Promise.resolve(o.remove(a.id)).then(function(){o.clear(),i(Object.assign({},o))})}catch(e){return Promise.reject(e)}}}))),!0===f?null:h(y,{icon:"save",label:"Guardar Cambios",raised:!0,disabled:!N(),action:t})),function(){var n=new se(l,k);switch(c){case"TABBED":return h(me,_({},e,{content:n,onChange:x}));case"TREEDED":return h(ye,_({},e,{content:n,onChange:x}));default:return h(ve,_({},e,{content:n,onChange:x}))}}()):null},Te=function(e,n){var t=Ae(e);return{all:[],selected:null,load:function(){try{var e=this,r=Oe(function(){return Promise.resolve(t.all()).then(function(t){e.all=n?t[n]:t})},function(e){console.log(e)});return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},select:function(e){var n=this.all.find(function(n){return n.id===e});this.selected=n},clear:function(){this.selected=null},create:function(e){try{var n=this,r=Oe(function(){return Promise.resolve(t.create(e)).then(function(){return Promise.resolve(n.load()).then(function(){})})},function(e){console.log("CREATE ERROR",e)});return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},update:function(e){try{var n=this,r=Oe(function(){return Promise.resolve(t.update(e)).then(function(){return Promise.resolve(n.load()).then(function(){})})},function(e){console.log(e)});return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},patch:function(e,n){try{var r=this,o=Oe(function(){return Promise.resolve(t.patch(e,n)).then(function(){return Promise.resolve(r.load()).then(function(){})})},function(e){console.log(e)});return Promise.resolve(o&&o.then?o.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},updateProperty:function(e,n,r){try{var o=this,i=Oe(function(){return Promise.resolve(t.updateProperty(e,n,r)).then(function(){return Promise.resolve(o.load()).then(function(){})})},function(e){console.log(e)});return Promise.resolve(i&&i.then?i.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},remove:function(e){try{var n=this,r=Oe(function(){return Promise.resolve(t.remove(e)).then(function(){return Promise.resolve(n.load()).then(function(){})})},function(e){console.log(e)});return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}}},Ae=function(e){return{all:function(){return Pe.GET(e)},find:function(n){return Pe.GET(e+"/"+n)},create:function(n){var t=JSON.stringify(n);return Pe.POST(e,t)},update:function(n){var t=JSON.stringify(n);return Pe.PUT(e+"/"+n.id,t)},patch:function(n,t){var r=JSON.stringify(t);return Pe.PATCH(e+"/"+n,r)},updateProperty:function(n,t,r){var o=JSON.stringify(r);return Pe.PUT(e+"/"+n+"/"+t,o)},remove:function(n){return Pe.DELETE(e+"/"+n)}}};exports.Button=y,exports.CheckBox=C,exports.Chip=function(e){var n=e.id,t=e.icon,r=e.label,o=e.action,i=e.onSelect,a=e.outlined?"outlined":"normal";return e.selected&&(a+=" selected"),h("div",{className:"chip "+a,onClick:function(e){e.stopPropagation(),e.preventDefault(),i&&i(n)}},t?h(m,{icon:t,size:"small"}):null,h("main",null,h(b,null,r)),o?h("span",{className:"meta"},o):null)},exports.Chips=function(e){return h("div",{className:"chips"},e.children)},exports.CircularProgress=function(e){return h("div",{className:"circular-progress"},h(m,{icon:"refresh",size:"small"}))},exports.CollectionContext=Te,exports.CollectionEditor=_e,exports.CollectionPage=function(e){var n=v.useContext(g),t=e.id,r=void 0===t?"collection":t,o=e.icon,i=e.title,a=e.name,u=void 0===a?"Collection 1":a,l=e.schema,c=e.url,s=e.groupBy,f=e.editor,d=e.field,p=e.autosave,m=void 0!==p&&p,C=e.delay,k=void 0===C?1e3:C,S=e.actions,_=e.levels,x=v.useContext(W),N=x[0],O=x[1],P=Te(c,d);return v.useEffect(function(){try{return Promise.resolve(P.load()).then(function(){O(P)})}catch(e){return Promise.reject(e)}},[]),h(v.Fragment,null,h(w,{className:"collection-page",title:h(b,null,i)},h(y,{icon:"add",label:"Add",action:function(){n.openDialog(h(Ne,{label:"Crear "+u,type:l,onOK:function(e){try{return Promise.resolve(N.create(e)).then(function(){O(Object.assign({},N))})}catch(e){return Promise.reject(e)}}}))}}),h(y,{icon:"refresh",label:"Reload",action:function(){try{return Promise.resolve(N.load()).then(function(){O(Object.assign({},N))})}catch(e){return Promise.reject(e)}}}),S),h("menu",{className:"collection-page"},h(w,{title:h(b,null,"Lista de ",u)}),_?h(je,{levels:_}):h(Ee,{groupBy:s})),h("main",{key:r,className:"collection-page"},h(Re,{icon:o,schema:l,layout:f,autosave:m,delay:k})))},exports.Content=se,exports.ContentEditor=ve,exports.ContentForm=fe,exports.CreateContentDialog=function(e){var n=e.label,t=e.type,r=e.validator,o=e.onOK,i=e.onActionClose,a=void 0===i||i,u=v.useContext(g),l=v.useState({}),c=l[0],s=l[1],f=v.useState(!1),d=f[0],p=f[1],m=v.useState([]),C=m[0],k=m[1];function S(e){"OK"===e&&o&&o(c),"CLOSE"!==e&&!0!==a||u.closeDialog()}var w=h(v.Fragment,null,h(y,{label:"CLOSE",action:function(){return S("CLOSE")}}),h(y,{label:"OK",action:function(){return S("OK")},disabled:!d,raised:!0})),_=h(b,{use:"headline6"},n),x=new se(t,c);return h(ae,{title:_,open:!0,onAction:S,actions:w},h(fe,{content:x,filter:function(e){return function(e){var n=e.required;return void 0!==n&&n}(e)||function(e){var n=e.creation;return void 0!==n&&n}(e)},onChange:function(e,n){if(s(e),r){var t=r(e),o=t.errors,i=void 0===o?[]:o;p(n&&t.validation),k(i)}else p(n)}}),C.map(function(e){return h(b,{use:"overline",tag:"div",className:"error"},e)}))},exports.DataTable=$,exports.Dialog=ae,exports.DropDown=F,exports.EditContentDialog=Ne,exports.FieldEditor=ge,exports.Form=k,exports.HTTPClient=r,exports.Header=w,exports.Icon=m,exports.Kanban=function(e){return h("div",{className:"kanban"},e.children)},exports.KanbanCard=function(e){return h("div",{className:"kanban-card "+e.color},e.children)},exports.KanbanColumn=function(e){var n=e.id,t=e.icon,r=e.title,o=e.subtitle,i=e.badge,a=e.children,u=e.minified,l=e.disabled,c=void 0!==l&&l,s=v.useState(void 0!==u&&u),f=s[0],d=s[1];function p(){d(!f)}return f?h("div",{className:"kanban-column "+n+" min"},h("main",null,r),h("footer",null,h(m,{icon:"toggle_off",onIcon:"toggle_on",clickable:!0,action:p}))):h("div",{className:"kanban-column "+n+" "+(c?"disabled":"")},h("header",null,h(m,{icon:t}),h("div",{className:"title"},h(b,{use:"headline6"},r),h(b,{className:"secondary-text",use:"body2"},o)),h("div",{className:"badge"},i)),h("main",null,a),h("footer",null,h(m,{icon:"toggle_off",onIcon:"toggle_on",clickable:!0,action:p})))},exports.LinearProgress=function(e){var n=e.progress,t=e.max;return h("div",{className:"linear-progress"},h("progress",{value:void 0===n?0:n,max:void 0===t?100:t}))},exports.List=x,exports.ListEditor=Se,exports.LoginBox=function(e){var n=e.logo,t=e.title,r=e.userLabel,o=void 0===r?"User":r,i=e.passwordLabel,a=void 0===i?"Password":i,u=e.loginLabel,l=void 0===u?"Log In":u,c=e.onOK,s=e.forgotLabel,f=void 0===s?"Forgot Password ?":s,d=e.onForgot,p=e.message,g=e.loading,C=v.useState(""),k=C[0],S=C[1],w=v.useState(""),_=w[0],x=w[1];function N(){return k&&k.length>0&&_&&_.length>0}function O(e){c&&N()&&c(k,e||_)}function P(e){return h(b,null,e)}return h("div",{className:"login-box"},h("header",null,n?h("img",{src:n}):"",h("div",{className:"title"},h(b,null,t))),h("main",null,h(I,{label:P(o),value:k,onChange:function(e,n){S(n)},onEnter:O,outlined:!0}),h(I,{label:P(a),value:_,onChange:function(e,n){x(n)},onEnter:O,type:"password",outlined:!0})),h("footer",null,d?h(y,{label:P(f),action:function(){d&&d(k)},disabled:!(k&&k.length>0)}):null,g?h("div",{className:"load-box"},h(m,{icon:"refresh"})):h(y,{label:P(l),action:O,disabled:!N(),raised:!0}),p?h("div",{className:"message"},h(b,null,p)):null))},exports.Menu=E,exports.MenuIcon=j,exports.MenuItem=R,exports.MenuSeparator=function(e){return h("li",null,"menuSeparator")},exports.Page=G,exports.PageContext=W,exports.PageProvider=J,exports.Property=function(e){var n=e.value;return h("div",{className:"property"},h("div",{className:"property-name"},e.name),h("div",{className:"property-value"},n))},exports.RadioButton=function(e){var n=e.id,t=e.name,r=e.placeholder,o=e.value,i=e.onChange,a=h(b,null,e.label);return h("div",{className:"radio"},h("input",{id:n,name:t,type:"radio",placeholder:r,value:o,onClick:function(e){i&&i(n,e.target.value)}}),h("span",{class:"checkmark"}),h("label",{htmlFor:n},a))},exports.ResetPasswordBox=function(e){var n=e.logo,t=e.title,r=e.children,o=e.onOK,i=e.onClose,a=v.useState({}),u=a[0],l=a[1],c=v.useState(),s=c[0],f=c[1];function d(){return u.password1&&u.password2}function p(e,n){var t,r=Object.assign({},u,((t={})[e]=n,t));l(r)}function m(){o&&d()&&(u.password1===u.password2?(f(null),o(u)):f("New Password and Confirm New Password do not match"))}return h("div",{className:"reset-password-box"},h("header",null,n?h("img",{src:n}):null,t?h("div",{className:"title"},h(b,null,t)):null,r),h("main",null,h(b,{use:"headline6"},"Change Password"),h(I,{id:"password1",outlined:!0,icon:"lock",type:"password",label:"New Password",lapse:100,onChange:p,onEnter:m}),h(I,{id:"password2",outlined:!0,icon:"lock",type:"password",label:"Confirm New Password",lapse:100,onChange:p,onEnter:m}),s?h("div",{className:"error"},s):null),h("footer",null,h(y,{label:"Close",action:function(){i&&i()}}),h(y,{label:"OK",raised:!0,disabled:!d(),action:m})))},exports.Section=function(e){var n=e.icon,t=e.title,r=void 0===t?"":t,o=e.canCollapse,i=void 0===o||o,a=e.open,u=void 0!==a&&a,l=e.actions,c=e.children,s=e.className,f=v.useState(u),d=f[0],p=f[1];return v.useEffect(function(){p(u)},[u]),h("section",{className:"section2 "+s},h(w,{icon:{icon:n},title:r},l,i?h(m,{icon:"expand_more",onIcon:"expand_less",clickable:!0,action:function(){p(!u)}}):""),d?h("main",null,c):"")},exports.Session=i,exports.Site=function(e){var n=e.logo,t=e.title,r=e.toolbar,o=e.children,i=e.init,a=e.min;return h(X,{siteLang:e.lang,siteDictionary:e.dictionary},h("div",{className:"site6"},h(Q,{icon:e.icon}),h(Z,null,r),h(ne,{logo:n,title:t,min:a},o),h(te,{init:i},o,h(G,{id:"EMPTY"},"EMPTY")),h(ee,null),h(ie,null),h(re,null),h(oe,null)))},exports.SiteContext=g,exports.SiteProvider=X,exports.Stack=D,exports.TYPES=ue,exports.Tab=A,exports.TabbedContentEditor=me,exports.Tabs=T,exports.Text=b,exports.TextField=I,exports.TokenField=q,exports.Tree=V,exports.TreeItem=H,exports.TreeNode=K,exports.TreededContentEditor=ye,exports.Viewer=function(e){var n=e.title,t=e.src,r=e.info,o=e.actions,i=void 0===o?[]:o,a=e.tools,u=void 0!==a&&a,l=e.onClose,c=v.useState(!1),s=c[0],f=c[1];function d(){f(!s)}var p=h(b,{use:"headline6"},n);return h("div",{className:"viewer"},h(w,{icon:{icon:"close",clickable:!0,action:l},title:p},s?"":h(m,{icon:"info",clickable:!0,action:d}),i),h("main",null,h("div",{className:"resizer"},h("picture",null,h("img",{src:t})))),h("aside",{className:s?"open":""},h(w,{title:"Detalles"},h(m,{icon:"close",clickable:!0,action:d})),h("main",null,r)),u?h("footer",null,h(m,{clickable:!0,icon:"zoom_out"}),h(m,{clickable:!0,icon:"zoom_out_map"}),h(m,{clickable:!0,icon:"zoom_in"})):null)},exports.isFunction=function(e){return e&&("[object Function]"===Object.prototype.toString.call(e)||"function"==typeof e||e instanceof Function)};
1
+ require("material-design-icons-iconfont/dist/material-design-icons.css");var e=require("deep-equal"),n=require("resumablejs");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=/*#__PURE__*/t(e),o=/*#__PURE__*/t(n),a=function(e,n,t,r){void 0===t&&(t=null);try{console.log("FETCH",e,n);var o={method:e,mode:"cors",headers:{Accept:"application/json","Content-Type":"application/json","x-access-token":r},body:t};return Promise.resolve(function(e,t){try{var r=Promise.resolve(fetch(n,o)).then(function(e){var n;function t(t){if(n)return t;throw e}var r=function(){if(e.ok)return Promise.resolve(e.json()).then(function(e){return n=1,e})}();return r&&r.then?r.then(t):t(r)})}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}(0,function(e){if(e instanceof Error)throw{error:e};return Promise.resolve(e.json()).then(function(e){throw{success:!1,message:e.message}})}))}catch(e){return Promise.reject(e)}},i=function(e,n){return{GET:function(t){var r=n?n.token():null;return a("GET",e+t,void 0,r)},POST:function(t,r){var o=n?n.token():null;return a("POST",e+t,r,o)},PUT:function(t,r){var o=n?n.token():null;return a("PUT",e+t,r,o)},PATCH:function(t,r){var o=n?n.token():null;return a("PATCH",e+t,r,o)},DELETE:function(t){var r=n?n.token():null;return a("DELETE",e+t,void 0,r)}}},u=process.env.REACT_APP_SESSION||window&&window.SESSION?window.SESSION:"YWANA-CORE6-SESSION",l={token:function(){return(sessionStorage.getItem(u)?JSON.parse(sessionStorage.getItem(u)):{}).token},me:function(){return(sessionStorage.getItem(u)?JSON.parse(sessionStorage.getItem(u)):{}).me},init:function(e,n){sessionStorage.setItem(u,JSON.stringify({token:e,me:n}))},refresh:function(e){var n=this.me();sessionStorage.setItem(u,JSON.stringify({token:e,me:n}))},isLoggedIn:function(){return!!sessionStorage.DSSession},logout:function(){sessionStorage.removeItem(u)}};function c(e){var n={exports:{}};return e(n,n.exports),n.exports}var s=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;function p(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var v=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 n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(e){return n[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,n){for(var t,r,o=p(e),a=1;a<arguments.length;a++){for(var i in t=Object(arguments[a]))f.call(t,i)&&(o[i]=t[i]);if(s){r=s(t);for(var u=0;u<r.length;u++)d.call(t,r[u])&&(o[r[u]]=t[r[u]])}}return o},m=c(function(e,n){var t=60103,r=60106;n.Fragment=60107,n.StrictMode=60108,n.Profiler=60114;var o=60109,a=60110,i=60112;n.Suspense=60113;var u=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var c=Symbol.for;t=c("react.element"),r=c("react.portal"),n.Fragment=c("react.fragment"),n.StrictMode=c("react.strict_mode"),n.Profiler=c("react.profiler"),o=c("react.provider"),a=c("react.context"),i=c("react.forward_ref"),n.Suspense=c("react.suspense"),u=c("react.memo"),l=c("react.lazy")}var s="function"==typeof Symbol&&Symbol.iterator;function f(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p={};function h(e,n,t){this.props=e,this.context=n,this.refs=p,this.updater=t||d}function m(){}function y(e,n,t){this.props=e,this.context=n,this.refs=p,this.updater=t||d}h.prototype.isReactComponent={},h.prototype.setState=function(e,n){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,n,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=h.prototype;var g=y.prototype=new m;g.constructor=y,v(g,h.prototype),g.isPureReactComponent=!0;var b={current:null},C=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,n,r){var o,a={},i=null,u=null;if(null!=n)for(o in void 0!==n.ref&&(u=n.ref),void 0!==n.key&&(i=""+n.key),n)C.call(n,o)&&!k.hasOwnProperty(o)&&(a[o]=n[o]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var c=Array(l),s=0;s<l;s++)c[s]=arguments[s+2];a.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===a[o]&&(a[o]=l[o]);return{$$typeof:t,type:e,key:i,ref:u,props:a,_owner:b.current}}function w(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var _=/\/+/g;function N(e,n){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return n[e]})}(""+e.key):n.toString(36)}function x(e,n,o,a,i){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var l=!1;if(null===e)l=!0;else switch(u){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case t:case r:l=!0}}if(l)return i=i(l=e),e=""===a?"."+N(l,0):a,Array.isArray(i)?(o="",null!=e&&(o=e.replace(_,"$&/")+"/"),x(i,n,o,"",function(e){return e})):null!=i&&(w(i)&&(i=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(_,"$&/")+"/")+e)),n.push(i)),1;if(l=0,a=""===a?".":a+":",Array.isArray(e))for(var c=0;c<e.length;c++){var d=a+N(u=e[c],c);l+=x(u,n,o,d,i)}else if(d=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=s&&e[s]||e["@@iterator"])?e:null}(e),"function"==typeof d)for(e=d.call(e),c=0;!(u=e.next()).done;)l+=x(u=u.value,n,o,d=a+N(u,c++),i);else if("object"===u)throw n=""+e,Error(f(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n));return l}function O(e,n,t){if(null==e)return e;var r=[],o=0;return x(e,r,"","",function(e){return n.call(t,e,o++)}),r}function P(e){if(-1===e._status){var n=e._result;n=n(),e._status=0,e._result=n,n.then(function(n){0===e._status&&(n=n.default,e._status=1,e._result=n)},function(n){0===e._status&&(e._status=2,e._result=n)})}if(1===e._status)return e._result;throw e._result}var E={current:null};function j(){var e=E.current;if(null===e)throw Error(f(321));return e}var R={ReactCurrentDispatcher:E,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:v};n.Children={map:O,forEach:function(e,n,t){O(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return O(e,function(){n++}),n},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!w(e))throw Error(f(143));return e}},n.Component=h,n.PureComponent=y,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,n.cloneElement=function(e,n,r){if(null==e)throw Error(f(267,e));var o=v({},e.props),a=e.key,i=e.ref,u=e._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,u=b.current),void 0!==n.key&&(a=""+n.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in n)C.call(n,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===n[c]&&void 0!==l?l[c]:n[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var s=0;s<c;s++)l[s]=arguments[s+2];o.children=l}return{$$typeof:t,type:e.type,key:a,ref:i,props:o,_owner:u}},n.createContext=function(e,n){return void 0===n&&(n=null),(e={$$typeof:a,_calculateChangedBits:n,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},n.createElement=S,n.createFactory=function(e){var n=S.bind(null,e);return n.type=e,n},n.createRef=function(){return{current:null}},n.forwardRef=function(e){return{$$typeof:i,render:e}},n.isValidElement=w,n.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:P}},n.memo=function(e,n){return{$$typeof:u,type:e,compare:void 0===n?null:n}},n.useCallback=function(e,n){return j().useCallback(e,n)},n.useContext=function(e,n){return j().useContext(e,n)},n.useDebugValue=function(){},n.useEffect=function(e,n){return j().useEffect(e,n)},n.useImperativeHandle=function(e,n,t){return j().useImperativeHandle(e,n,t)},n.useLayoutEffect=function(e,n){return j().useLayoutEffect(e,n)},n.useMemo=function(e,n){return j().useMemo(e,n)},n.useReducer=function(e,n,t){return j().useReducer(e,n,t)},n.useRef=function(e){return j().useRef(e)},n.useState=function(e){return j().useState(e)},n.version="17.0.2"}),y=c(function(e,n){"production"!==process.env.NODE_ENV&&function(){var e=v,t=60103,r=60106;n.Fragment=60107,n.StrictMode=60108,n.Profiler=60114;var o=60109,a=60110,i=60112;n.Suspense=60113;var u=60120,l=60115,c=60116,s=60121,f=60122,d=60117,p=60129,h=60131;if("function"==typeof Symbol&&Symbol.for){var m=Symbol.for;t=m("react.element"),r=m("react.portal"),n.Fragment=m("react.fragment"),n.StrictMode=m("react.strict_mode"),n.Profiler=m("react.profiler"),o=m("react.provider"),a=m("react.context"),i=m("react.forward_ref"),n.Suspense=m("react.suspense"),u=m("react.suspense_list"),l=m("react.memo"),c=m("react.lazy"),s=m("react.block"),f=m("react.server.block"),d=m("react.fundamental"),m("react.scope"),m("react.opaque.id"),p=m("react.debug_trace_mode"),m("react.offscreen"),h=m("react.legacy_hidden")}var y="function"==typeof Symbol&&Symbol.iterator;function g(e){if(null===e||"object"!=typeof e)return null;var n=y&&e[y]||e["@@iterator"];return"function"==typeof n?n:null}var b={current:null},C={current:null},k={},S=null;function w(e){S=e}k.setExtraStackFrame=function(e){S=e},k.getCurrentStack=null,k.getStackAddendum=function(){var e="";S&&(e+=S);var n=k.getCurrentStack;return n&&(e+=n()||""),e};var _={ReactCurrentDispatcher:b,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:C,IsSomeRendererActing:{current:!1},assign:e};function N(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];O("warn",e,t)}function x(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];O("error",e,t)}function O(e,n,t){var r=_.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(n+="%s",t=t.concat([r]));var o=t.map(function(e){return""+e});o.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,o)}_.ReactDebugCurrentFrame=k;var P={};function E(e,n){var t=e.constructor,r=t&&(t.displayName||t.name)||"ReactClass",o=r+"."+n;P[o]||(x("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",n,r),P[o]=!0)}var j={isMounted:function(e){return!1},enqueueForceUpdate:function(e,n,t){E(e,"forceUpdate")},enqueueReplaceState:function(e,n,t,r){E(e,"replaceState")},enqueueSetState:function(e,n,t,r){E(e,"setState")}},R={};function T(e,n,t){this.props=e,this.context=n,this.refs=R,this.updater=t||j}Object.freeze(R),T.prototype.isReactComponent={},T.prototype.setState=function(e,n){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")},T.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var A={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},D=function(e,n){Object.defineProperty(T.prototype,e,{get:function(){N("%s(...) is deprecated in plain JavaScript React classes. %s",n[0],n[1])}})};for(var F in A)A.hasOwnProperty(F)&&D(F,A[F]);function I(){}function $(e,n,t){this.props=e,this.context=n,this.refs=R,this.updater=t||j}I.prototype=T.prototype;var L=$.prototype=new I;function B(e){return e.displayName||"Context"}function M(e){if(null==e)return null;if("number"==typeof e.tag&&x("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case n.Fragment:return"Fragment";case r:return"Portal";case n.Profiler:return"Profiler";case n.StrictMode:return"StrictMode";case n.Suspense:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case a:return B(e)+".Consumer";case o:return B(e._context)+".Provider";case i:return p=(d=e.render).displayName||d.name||"",e.displayName||(""!==p?"ForwardRef("+p+")":"ForwardRef");case l:return M(e.type);case s:return M(e._render);case c:var t=e._payload,f=e._init;try{return M(f(t))}catch(e){return null}}var d,p;return null}L.constructor=$,e(L,T.prototype),L.isPureReactComponent=!0;var U,z,q,Y=Object.prototype.hasOwnProperty,V={key:!0,ref:!0,__self:!0,__source:!0};function K(e){if(Y.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return void 0!==e.ref}function H(e){if(Y.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}function W(e,n){var t=function(){U||(U=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function J(e,n){var t=function(){z||(z=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}function G(e){if("string"==typeof e.ref&&C.current&&e.__self&&C.current.stateNode!==e.__self){var n=M(C.current.type);q[n]||(x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',n,e.ref),q[n]=!0)}}q={};var X=function(e,n,r,o,a,i,u){var l={$$typeof:t,type:e,key:n,ref:r,props:u,_owner:i,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function Q(e,n,t){var r,o={},a=null,i=null,u=null,l=null;if(null!=n)for(r in K(n)&&(i=n.ref,G(n)),H(n)&&(a=""+n.key),u=void 0===n.__self?null:n.__self,l=void 0===n.__source?null:n.__source,n)Y.call(n,r)&&!V.hasOwnProperty(r)&&(o[r]=n[r]);var c=arguments.length-2;if(1===c)o.children=t;else if(c>1){for(var s=Array(c),f=0;f<c;f++)s[f]=arguments[f+2];Object.freeze&&Object.freeze(s),o.children=s}if(e&&e.defaultProps){var d=e.defaultProps;for(r in d)void 0===o[r]&&(o[r]=d[r])}if(a||i){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&W(o,p),i&&J(o,p)}return X(e,a,i,u,l,C.current,o)}function Z(n,t,r){if(null==n)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+n+".");var o,a,i=e({},n.props),u=n.key,l=n.ref,c=n._self,s=n._source,f=n._owner;if(null!=t)for(o in K(t)&&(l=t.ref,f=C.current),H(t)&&(u=""+t.key),n.type&&n.type.defaultProps&&(a=n.type.defaultProps),t)Y.call(t,o)&&!V.hasOwnProperty(o)&&(i[o]=void 0===t[o]&&void 0!==a?a[o]:t[o]);var d=arguments.length-2;if(1===d)i.children=r;else if(d>1){for(var p=Array(d),h=0;h<d;h++)p[h]=arguments[h+2];i.children=p}return X(n.type,u,l,c,s,f,i)}function ee(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var ne=!1,te=/\/+/g;function re(e){return e.replace(te,"$&/")}function oe(e,n){return"object"==typeof e&&null!==e&&null!=e.key?(t={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,function(e){return t[e]})):n.toString(36);var t}function ae(e,n,o,a,i){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var l,c,s,f=!1;if(null===e)f=!0;else switch(u){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case t:case r:f=!0}}if(f){var d=e,p=i(d),h=""===a?"."+oe(d,0):a;if(Array.isArray(p)){var v="";null!=h&&(v=re(h)+"/"),ae(p,n,v,"",function(e){return e})}else null!=p&&(ee(p)&&(l=p,c=o+(!p.key||d&&d.key===p.key?"":re(""+p.key)+"/")+h,p=X(l.type,c,l.ref,l._self,l._source,l._owner,l.props)),n.push(p));return 1}var m=0,y=""===a?".":a+":";if(Array.isArray(e))for(var b=0;b<e.length;b++)m+=ae(s=e[b],n,o,y+oe(s,b),i);else{var C=g(e);if("function"==typeof C){var k=e;C===k.entries&&(ne||N("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ne=!0);for(var S,w=C.call(k),_=0;!(S=w.next()).done;)m+=ae(s=S.value,n,o,y+oe(s,_++),i)}else if("object"===u){var x=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===x?"object with keys {"+Object.keys(e).join(", ")+"}":x)+"). If you meant to render a collection of children, use an array instead.")}}return m}function ie(e,n,t){if(null==e)return e;var r=[],o=0;return ae(e,r,"","",function(e){return n.call(t,e,o++)}),r}function ue(e){if(-1===e._status){var n=(0,e._result)(),t=e;t._status=0,t._result=n,n.then(function(n){if(0===e._status){var t=n.default;void 0===t&&x("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",n);var r=e;r._status=1,r._result=t}},function(n){if(0===e._status){var t=e;t._status=2,t._result=n}})}if(1===e._status)return e._result;throw e._result}function le(e){return"string"==typeof e||"function"==typeof e||e===n.Fragment||e===n.Profiler||e===p||e===n.StrictMode||e===n.Suspense||e===u||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===c||e.$$typeof===l||e.$$typeof===o||e.$$typeof===a||e.$$typeof===i||e.$$typeof===d||e.$$typeof===s||e[0]===f)}function ce(){var e=b.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");return e}var se,fe,de,pe,he,ve,me,ye=0;function ge(){}ge.__reactDisabledLog=!0;var be,Ce=_.ReactCurrentDispatcher;function ke(e,n,t){if(void 0===be)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);be=r&&r[1]||""}return"\n"+be+e}var Se,we=!1,_e="function"==typeof WeakMap?WeakMap:Map;function Ne(n,t){if(!n||we)return"";var r,o=Se.get(n);if(void 0!==o)return o;we=!0;var a,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=Ce.current,Ce.current=null,function(){if(0===ye){se=console.log,fe=console.info,de=console.warn,pe=console.error,he=console.group,ve=console.groupCollapsed,me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ge,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ye++}();try{if(t){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(u,[])}catch(e){r=e}Reflect.construct(n,[],u)}else{try{u.call()}catch(e){r=e}n.call(u.prototype)}}else{try{throw Error()}catch(e){r=e}n()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var l=e.stack.split("\n"),c=r.stack.split("\n"),s=l.length-1,f=c.length-1;s>=1&&f>=0&&l[s]!==c[f];)f--;for(;s>=1&&f>=0;s--,f--)if(l[s]!==c[f]){if(1!==s||1!==f)do{if(s--,--f<0||l[s]!==c[f]){var d="\n"+l[s].replace(" at new "," at ");return"function"==typeof n&&Se.set(n,d),d}}while(s>=1&&f>=0);break}}}finally{we=!1,Ce.current=a,function(){if(0==--ye){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:e({},n,{value:se}),info:e({},n,{value:fe}),warn:e({},n,{value:de}),error:e({},n,{value:pe}),group:e({},n,{value:he}),groupCollapsed:e({},n,{value:ve}),groupEnd:e({},n,{value:me})})}ye<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=n?n.displayName||n.name:"",h=p?ke(p):"";return"function"==typeof n&&Se.set(n,h),h}function xe(e,n,t){return Ne(e,!1)}function Oe(e,t,r){if(null==e)return"";if("function"==typeof e)return Ne(e,function(e){var n=e.prototype;return!(!n||!n.isReactComponent)}(e));if("string"==typeof e)return ke(e);switch(e){case n.Suspense:return ke("Suspense");case u:return ke("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case i:return xe(e.render);case l:return Oe(e.type,t,r);case s:return xe(e._render);case c:var o=e._payload,a=e._init;try{return Oe(a(o),t,r)}catch(e){}}return""}Se=new _e;var Pe,Ee={},je=_.ReactDebugCurrentFrame;function Re(e){if(e){var n=e._owner,t=Oe(e.type,e._source,n?n.type:null);je.setExtraStackFrame(t)}else je.setExtraStackFrame(null)}function Te(e){if(e){var n=e._owner;w(Oe(e.type,e._source,n?n.type:null))}else w(null)}function Ae(){if(C.current){var e=M(C.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function De(e){return null!=e&&void 0!==(n=e.__source)?"\n\nCheck your code at "+n.fileName.replace(/^.*[\\\/]/,"")+":"+n.lineNumber+".":"";var n}Pe=!1;var Fe={};function Ie(e,n){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var n=Ae();if(!n){var t="string"==typeof e?e:e.displayName||e.name;t&&(n="\n\nCheck the top-level render call using <"+t+">.")}return n}(n);if(!Fe[t]){Fe[t]=!0;var r="";e&&e._owner&&e._owner!==C.current&&(r=" It was passed a child from "+M(e._owner.type)+"."),Te(e),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,r),Te(null)}}}function $e(e,n){if("object"==typeof e)if(Array.isArray(e))for(var t=0;t<e.length;t++){var r=e[t];ee(r)&&Ie(r,n)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=g(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ee(a.value)&&Ie(a.value,n)}}function Le(e){var n,t=e.type;if(null!=t&&"string"!=typeof t){if("function"==typeof t)n=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==i&&t.$$typeof!==l)return;n=t.propTypes}if(n){var r=M(t);!function(e,n,t,r,o){var a=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(a(e,i)){var u=void 0;try{if("function"!=typeof e[i]){var l=Error((r||"React class")+": prop type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}u=e[i](n,i,r,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(Re(o),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",t,i,typeof u),Re(null)),u instanceof Error&&!(u.message in Ee)&&(Ee[u.message]=!0,Re(o),x("Failed %s type: %s",t,u.message),Re(null))}}(n,e.props,"prop",r,e)}else void 0===t.PropTypes||Pe||(Pe=!0,x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",M(t)||"Unknown"));"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Be(e){for(var n=Object.keys(e.props),t=0;t<n.length;t++){var r=n[t];if("children"!==r&&"key"!==r){Te(e),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Te(null);break}}null!==e.ref&&(Te(e),x("Invalid attribute `ref` supplied to `React.Fragment`."),Te(null))}function Me(e,r,o){var a=le(e);if(!a){var i="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var u,l=De(r);i+=l||Ae(),null===e?u="null":Array.isArray(e)?u="array":void 0!==e&&e.$$typeof===t?(u="<"+(M(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):u=typeof e,x("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,i)}var c=Q.apply(this,arguments);if(null==c)return c;if(a)for(var s=2;s<arguments.length;s++)$e(arguments[s],e);return e===n.Fragment?Be(c):Le(c),c}var Ue=!1;try{var ze=Object.freeze({});new Map([[ze,null]]),new Set([ze])}catch(e){}var qe=Me,Ye={map:ie,forEach:function(e,n,t){ie(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return ie(e,function(){n++}),n},toArray:function(e){return ie(e,function(e){return e})||[]},only:function(e){if(!ee(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};n.Children=Ye,n.Component=T,n.PureComponent=$,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_,n.cloneElement=function(e,n,t){for(var r=Z.apply(this,arguments),o=2;o<arguments.length;o++)$e(arguments[o],r.type);return Le(r),r},n.createContext=function(e,n){void 0===n?n=null:null!==n&&"function"!=typeof n&&x("createContext: Expected the optional second argument to be a function. Instead received: %s",n);var t={$$typeof:a,_calculateChangedBits:n,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};t.Provider={$$typeof:o,_context:t};var r=!1,i=!1,u=!1,l={$$typeof:a,_context:t,_calculateChangedBits:t._calculateChangedBits};return Object.defineProperties(l,{Provider:{get:function(){return i||(i=!0,x("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return r||(r=!0,x("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){u||(N("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),u=!0)}}}),t.Consumer=l,t._currentRenderer=null,t._currentRenderer2=null,t},n.createElement=qe,n.createFactory=function(e){var n=Me.bind(null,e);return n.type=e,Ue||(Ue=!0,N("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(n,"type",{enumerable:!1,get:function(){return N("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),n},n.createRef=function(){var e={current:null};return Object.seal(e),e},n.forwardRef=function(e){null!=e&&e.$$typeof===l?x("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?x("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&x("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||x("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var n,t={$$typeof:i,render:e};return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,null==e.displayName&&(e.displayName=t)}}),t},n.isValidElement=ee,n.lazy=function(e){var n,t,r={$$typeof:c,_payload:{_status:-1,_result:e},_init:ue};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return n},set:function(e){x("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return t},set:function(e){x("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},n.memo=function(e,n){le(e)||x("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var t,r={$$typeof:l,type:e,compare:void 0===n?null:n};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,null==e.displayName&&(e.displayName=n)}}),r},n.useCallback=function(e,n){return ce().useCallback(e,n)},n.useContext=function(e,n){var t=ce();if(void 0!==n&&x("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",n,"number"==typeof n&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":""),void 0!==e._context){var r=e._context;r.Consumer===e?x("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&x("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e,n)},n.useDebugValue=function(e,n){return ce().useDebugValue(e,n)},n.useEffect=function(e,n){return ce().useEffect(e,n)},n.useImperativeHandle=function(e,n,t){return ce().useImperativeHandle(e,n,t)},n.useLayoutEffect=function(e,n){return ce().useLayoutEffect(e,n)},n.useMemo=function(e,n){return ce().useMemo(e,n)},n.useReducer=function(e,n,t){return ce().useReducer(e,n,t)},n.useRef=function(e){return ce().useRef(e)},n.useState=function(e){return ce().useState(e)},n.version="17.0.2"}()}),g=c(function(e){e.exports="production"===process.env.NODE_ENV?m:y}),b=function(e){var n=e.size,t=e.clickable,r=e.action;return h("i",{className:"icon "+(void 0===n?"normal":n)+" "+(void 0!==t&&t?"clickable":"")+" material-icons",onClick:function(e){e.stopPropagation(),e.preventDefault(),r&&r()}},e.icon)},C=function(e){var n=e.label,t=e.icon,r=e.action,o=e.disabled,a=void 0!==o&&o,i=e.raised?"raised":e.outlined?"outlined":"normal";return a&&(i+=" disabled"),h("button",{className:"btn "+i,onClick:function(e){a||(e.stopPropagation(),e.preventDefault(),r&&r())}},t?h(b,{icon:t,size:"small"}):null,h("span",null,n))},k=React.createContext({}),S=function(e){var n=e.children,t=g.useContext(k);if(t){var r=t.dictionary,o=(void 0===r?{}:r)[n],a=o?o[t.lang]:n;return a?h("span",null,a):""}return n?h("span",null,n):""},w=function(e){var n=e.id,t=e.label,r=e.placeholder,o=e.value,a=e.onChange;function i(e){a&&a(n,e.target.checked)}var u=h(S,null,t);return console.log(t,o),!0===o?h("div",{className:"checkbox",key:n+"1"},h("input",{id:n,type:"checkbox",placeholder:r,checked:!0,value:o,onChange:i}),h("span",{class:"checkmark"}),h("label",{htmlFor:n},u)):h("div",{className:"checkbox",key:n+"0"},h("input",{id:n,type:"checkbox",placeholder:r,value:o,onChange:i}),h("span",{class:"checkmark"}),h("label",{htmlFor:n},u))},_=function(e){var n=e.title,t=e.columns,r=void 0===t?1:t,o=e.children,a=e.outlined,i=e.onChange,u=g.useState([]),l=u[0],c=u[1],s=function(e){return null==e||""===e};g.useEffect(function(){var e=g.Children.toArray(o).filter(function(e){return null!==e&&""!==e}).map(function(e){var n=e.props,t=n.id,r=n.value,o=n.required,a=void 0!==o&&o,i=n.validation,u=!a||(i?i(r):!s(r));return{id:t,value:r,required:a,validation:i,valid:u}}).filter(function(e){return void 0!==e.id});c(e)},[]),g.useEffect(function(){if(i){var e=l.every(function(e){return!0===e.valid}),n=l.reduce(function(e,n){var t=n.value;return(t||!1===t)&&(e[n.id]=t),e},{});i(n,e)}},[l]);var f=function(e,n){var t=l.find(function(n){return n.id===e});if(t){var r=!t.required||(t.validation?t.validation(n):!s(n));Object.assign(t,{value:n,valid:r}),c(l.slice())}},d=g.Children.toArray(o).filter(function(e){return null!==e&&""!==e}).map(function(e){var n=e.props.span,t=void 0===n?1:n,r=g.cloneElement(e,{onChange:f,outlined:!!a});return h(N,{style:{gridColumn:"span "+t}},r)}),p={gridTemplateColumns:"repeat("+r+", 1fr)"};return h(g.Fragment,null,n?h("header",{className:"form-header"},h(S,{use:"headline6"},n)):"",h("form",{className:"form-grid",style:p},d))},N=function(e){return h("div",{className:"field-wrapper",style:e.style},e.children)},x=function(e){var n=e.caption?"caption":"",t=e.prominent?"prominent":"",r=e.dense?"dense":"",o=e.primary?"primary":"";o=e.secondary?"secondary":o;var a=e.icon?h(b,{icon:e.icon,clickable:e.clickable,action:e.action}):"";a=e.iconSrc?h("img",{className:"header-icon",src:e.iconSrc}):a;var i=e.img?{backgroundImage:"url("+e.img+")"}:{},u=h(S,null,e.title);return h("header",{className:"header "+n+" "+t+" "+r+" "+o+" "+e.className,style:i},a,e.title?h("label",null,u):null,h("span",{className:"actions"},e.children))};function O(){return O=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},O.apply(this,arguments)}var P=function(e){var n=e.items,t=void 0===n?[]:n,r=e.children,o=e.onSelect;function a(e){o&&o(e)}return e.groupBy?h(E,O({},e,{onSelect:a})):h("div",{className:"list"},h("ul",null,t.map(function(e){return h(j,{key:e.id,item:e,onSelect:a})})),r)},E=function(e){var n=e.items,t=e.children,r=e.onSelect,o=e.groupBy,a=(void 0===n?[]:n).reduce(function(e,n){var t=e.find(function(e){return e.name===n.content[o]});return t||e.push(t={name:n.content[o],items:[]}),t.items.push(n),e},[]);return h("div",{className:"list"},a.map(function(e){return h(g.Fragment,{key:e.name},h("header",{key:e.name+"-header"},h(S,null,e.name)),h("ul",{key:e.name+"-ul"},e.items.map(function(e){return h(j,{key:e.id,item:e,onSelect:r})})))}),t)},j=function(e){var n=e.item,t=e.onSelect,r=n.id,o=n.icon,a=n.line1,i=n.line2,u=n.meta;return h("li",{id:r,onClick:function(){t&&t(r)}},o?h(b,{icon:o,size:"small"}):null,h("main",null,h("div",{className:"primary-line"},h(S,null,a)),i?h("div",{className:"secondary-line"},h(S,null,i)):null),u?h("div",{className:"meta"},u):null)},R=g.createContext({}),T=function(e){return h("ul",null,e.children)},A=function(e){var n=e.icon,t=void 0===n?"more_vert":n,r=e.children,o=e.align,a=g.useState(!1),i=a[0],u=a[1];function l(){u(!i)}return h(R.Provider,{value:[i,u]},h("div",{className:"menu-icon"},h(b,{icon:t,clickable:!0,action:l}),i?h("menu",{className:""+o},r):null,i?h("div",{className:"overlay",onClick:l}):null))},D=function(e){var n=e.icon,t=e.label,r=e.meta,o=e.onSelect,a=g.useContext(R)[1];return h("li",{className:"menu-item",onClick:function(){o&&o(),a(!1)}},n?h(b,{icon:n}):null,h("label",null,t),r?h("div",{className:"meta"},r):null)},F=function(e){return h("div",{className:"circular-progress"},h(b,{icon:"refresh",size:"small"}))},I=function(e){var n=e.progress,t=e.max;return h("div",{className:"linear-progress"},h("progress",{value:void 0===n?0:n,max:void 0===t?100:t}))},$=function(e){var n=e.selected,t=e.onChange,r=g.Children.map(e.children,function(e,r){return g.cloneElement(e,{selected:r===n,onSelect:function(){t&&t(r)}})});return h("div",{class:"tabs"},r,h("div",{class:"tab-filler"}))},L=function(e){var n=e.onSelect;return h("div",{className:"tab "+(e.selected?"selected":""),onClick:function(){n&&n()}},e.label,e.actions||null)},B=function(e){var n=e.selected,t=void 0===n?0:n,r=g.Children.toArray(e.children).filter(function(e,n){return n===t})[0];return h(g.Fragment,null,r)},M=function(e){var n=g.useContext(k),t=e.id,r=e.type,o=void 0===r?"text":r,a=e.label,i=e.placeholder,u=e.value,l=e.readOnly,c=void 0!==l&&l,s=e.onChange,f=e.onEnter,d=e.onClick,p=(a?"":"no-label")+" "+(e.outlined?"textfield-outlined":"textfield"),v=h(S,null,a);return h("div",{className:""+p,onClick:d},h("input",{id:t,type:o,placeholder:i,value:u,required:!0,onChange:function(e){e.stopPropagation(),e.preventDefault(),s&&s(t,e.target.value)},onKeyDown:function(e){13==(e.charCode?e.charCode:e.keyCode?e.keyCode:0)&&f()},onFocus:function(){n&&n.changeFocus({lose:function(){}})},readOnly:c}),h("span",{className:"bar"}),a?h("label",null,v):null)},U=function(e){var n=g.useContext(k),t=e.id,r=e.options,o=void 0===r?[]:r,a=e.value,i=e.onChange,u=g.useState(!1),l=u[0],c=u[1],s=g.useState(),f=s[0],d=s[1];function p(){n&&n.changeFocus({lose:function(){c(!1)}}),c(!l)}return g.useEffect(function(){if(Array.isArray(o)){var e=o.find(function(e){return e.value===a});e&&d(e.label)}},[a]),h("div",{className:"dropdown"},h(M,O({},e,{onClick:p,value:f})),h(b,{icon:"expand_more",clickable:!0,size:"small",action:p}),1==l?h("menu",null,h("ul",{onClick:function(e){var n=e.target.getAttribute("value"),r=o.find(function(e){return e.value===n});i&&i(t,n),d(r.label),c(!1)}},Array.isArray(o)?o.map(function(e){return h("li",{key:e.value,value:e.value},e.label)}):null)):null)},z=function(e){var n=e.columns,t=void 0===n?[]:n,r=e.rows,o=void 0===r?[]:r,a=e.onRowSelection,i=e.onSort,u=e.editable,l=e.outlined,c=g.useState({})[0];function s(e,n){a&&a(e,n)}function f(e,n){i&&i(e,n)}return h("div",{className:"datatable8 "+(l?"outlined":"")},h("table",null,h("thead",null,h("tr",null,t.map(function(e){var n=e.sortable;return h("th",null,h(S,null,e.label),n?h(b,{icon:"arrow_up",size:"small",clickable:!0}):null)}))),h("tbody",null,function(e,n){void 0===n&&(n={});var t=Object.keys(n);if(!t.length)return e;var r=function(e,n,t){return t=null!==t?t:1,e===n?0:e>n?t:-1*t};return e.sort(function(e,o){for(var a=0,i=0;0===a&&i<t.length;){var u=t[i];u&&(a=r(e[u],o[u],n[u]),i++)}return a})}(o,c).map(function(e){return h(q,{key:e.id,row:e,columns:t,onSelect:s,onDrop:f,editable:u})}))))},q=function(e){var n,t=e.row,r=e.columns,o=void 0===r?[]:r,a=e.onSelect,i=e.editable,u=g.useState(!1),l=u[0],c=u[1],s=l?"expand_more":"expand_less";return h(g.Fragment,null,h("tr",{onClick:function(e){return a(t,e)}},o.map(function(e){return h(Y,{row:t,column:e,cell:t[e.id],editable:i})}),t.info?h(b,{icon:s,clickable:!0,action:function(){return c(!l)}}):null),t.info&&l?h("tr",{className:"table-row-info"},(n=t.info)&&("[object Function]"===Object.prototype.toString.call(n)||"function"==typeof n||n instanceof Function)?t.info():t.info):null)},Y=function(e){var n=e.row,t=e.column,r=e.cell,o=e.editable;return h("td",{className:t.id},function(e){var a=t.id,i=t.disabled,u=void 0!==i&&i,l=t.min,c=t.max,s=t.onChange,f=t.options;if(o&&s)switch(e){case"ICON":return h(b,{icon:r});case"BOOLEAN":case"Boolean":return h(w,{id:a,value:r,onChange:function(e,t){return s(n.id,e,t)},disabled:u});case"SELECTION":return h(U,{id:a,value:r,placeholder:"--Select--",options:f,onChange:function(e,t){return s(n.id,e,t)}});case"CHECK":return h(w,{id:a,value:r,onChange:function(e,t){return s(n.id,e,t)},disabled:n.disabled});case"CHECKABLE":return r&&r.value?h(w,{id:a,value:r.checked||!1,label:r.value,onChange:function(e,t){return s(n.id,e,r.value,t,r)}}):"";case"TEXTFIELD":return h(M,{id:a,value:r,onChange:function(e,t){return s(n.id,e,t)}});case"String":return h(H,{id:a,value:r,options:f,onChange:function(e,t){return s(n.id,e,t)}});case"Number":return h(M,{id:a,type:"number",value:r,min:l,max:c,onChange:function(e,t){return s(n.id,e,t)}});default:return r}else switch(e){case"ICON":return h(b,{icon:r});case"Boolean":return h(V,{id:a,value:r});case"String":return h(K,{id:a,value:r,options:f});default:return r}}(t.type))},V=function(e){var n=e.value;return h(b,{icon:!0===(void 0!==n&&n)?"check_box":"check_box_outline_blank"})},K=function(e){var n=e.value,t=e.options,r=t?t.find(function(e){return e.value===n}):null;return h("div",{className:"field-editor string-editor"},r?r.label:n)},H=function(e){var n=e.id,t=e.value,r=void 0===t?"":t,o=e.options,a=e.onChange;function i(e,n){a&&a(e,n)}return h("div",{className:"field-editor string-editor"},o?h(U,{outlined:!0,id:n,value:r,onChange:i,options:o}):h(M,{outlined:!0,id:n,value:r,onChange:i}))},W=function(e){var n=e.id,t=e.label,r=e.init,o=e.onChange,a=g.useRef(!1),i=g.useState(),u=i[0],l=i[1],c=g.useState(r),s=c[0],f=c[1];return g.useEffect(function(){a.current?o&&s&&o(n,s):a.current=!0},[s]),h("div",{className:"tokenField"},h("label",null,t),s.map(function(e,n){return h(J,{text:e,onDelete:function(){return function(e){var n=s.slice();n.splice(e,1),f(n)}(n)}})}),h("input",{type:"text",value:u,onChange:function(e){l(e.target.value)},onKeyDown:function(e){if("Enter"===e.key){e.preventDefault(),e.stopPropagation();var n=s.concat(e.target.value);f(n),l("")}if(""===u&&s.length>0&&"Backspace"===e.key){var t=s.slice(0,-1);f(t)}}}))},J=function(e){var n=e.onDelete;return h("div",{className:"token"},h(S,{use:"caption",tag:"div"},e.text),h(b,{icon:"close",clickable:!0,action:n,size:"small"}))},G=function(e){var n=e.nodes;return h("div",{className:"tree"},void 0===n?[]:n,e.children)},X=function(e){var n=e.icon,t=void 0===n?"folder":n,r=e.label,o=e.open,a=e.children,i=e.actions;return h("details",{className:"tree-node",open:void 0!==o&&o},h("summary",{className:"tree-item"},t?h(b,{icon:t,size:"small",small:!0}):null,h("div",{className:"label"},r),h("div",{className:"actions"},i)),a)},Q=function(e){var n=e.id,t=e.icon,r=e.label,o=e.actions,a=e.onSelect;return h("div",{className:"tree-item final",onClick:function(){a&&a(n)}},h(b,{icon:void 0===t?"description":t,size:"small",small:!0}),h("div",{className:"label"},r),h("div",{className:"actions"},o))},Z=g.createContext({}),ee=function(e){var n=e.context,t=e.children,r=g.useState(void 0===n?{}:n);return h(Z.Provider,{value:[r[0],r[1]]},t)},ne=function(e){var n=e.layout,t=e.context;return h(ee,{context:void 0===t?{}:t},h("article",{className:"page6 "+(void 0===n?"simple":n)},e.children))},te=function(e){var n=e.children,t=e.siteDictionary,r=g.useState(e.siteLang),o=r[0],a=r[1],i=g.useState(t),u=i[0],l=i[1],c=g.useState("max"),s=c[0],f=c[1],d=g.useState(!1),p=d[0],v=d[1],m=g.useState(null),y=m[0],b=m[1],C=g.useState(!1),S=C[0],w=C[1],_=g.useState(),N=_[0],x=_[1],O=g.useState(),P=O[0],E=O[1],j=g.useState(),R=j[0],T=j[1],A=g.useState(),D=A[0],F=A[1],I=g.useState(),$=I[0],L=I[1],B={lang:o,setLang:a,dictionary:u,setDictionary:l,focused:$,changeFocus:function(e){$&&$.lose(),L(e)},sideNav:s,setSideNav:f,showNav:p,setShowNav:v,info:y,openInfo:function(e){b(e)},closeInfo:function(){b(null)},console:S,toggleConsole:function(){w(!S)},breadcrumb:D,setBreadcrumb:F,page:N,goto:function(e){x(e)},dialog:P,openDialog:function(e){E(e)},closeDialog:function(){E(null)},preview:R,openPreview:function(e){T(e)},closePreview:function(){T(null)}};return h(k.Provider,{value:B},n)},re=function(e){var n=e.icon;return h(x,{icon:void 0===n?"equalizer":n,title:e.title})},oe=function(e){var n=e.children;return g.useContext(k),h("nav",null,n)},ae=function(){var e=g.useContext(k);return e.info?h("aside",null,e.info):""},ie=function(e){var n=e.children,t=e.min,r=g.useContext(k),o=r.showNav;g.useEffect(function(){t&&r.setSideNav("min")},[]);var a=n?g.Children.toArray(n).reduce(function(e,n){var t=n.props?n.props.section:"...";e[t]||(e[t]=[]);var r=n.props,o=r.title;return o&&e[t].push({id:r.id,icon:r.icon,title:o}),e},{}):{};return h("menu",{className:"min "+(o?"show":"")},h("main",null,Object.keys(a).map(function(e){return h(g.Fragment,{key:e},a[e].map(function(e){var n=e.id,t=e.icon;return h(b,{key:n,icon:void 0===t?"info":t,clickable:!0,checked:n===r.page,action:function(){return function(e){r.setShowNav(!1),r.goto(e)}(n)}})}),h("div",{className:"section-divider"}))})))},ue=function(e){var n=e.children,t=e.init,r=g.useContext(k),o=r.page;return g.useEffect(function(){r.goto(t||"EMPTY")},[]),h("main",null,g.Children.toArray(n).filter(function(e){return!!e.props&&e.props.id===o}))},le=function(){var e=g.useContext(k);return e.dialog?e.dialog:""},ce=function(){var e=g.useContext(k);return e.preview?h("div",{className:"site-preview"},e.preview):""},se=function(){return g.useContext(k).console?h("footer",{className:"site-console"},h(x,null,h($,null,h(L,{label:"Console"}))),h("main",null)):""},fe=function(e){var n=g.useContext(k),t=e.icon,r=e.title,o=void 0===r?"Dialog":r,a=e.children,i=e.actions;return h(g.Fragment,null,h("div",{className:"overlay"}),h("div",{className:"dialog",onClick:function(){n.closeDialog()}},h("div",{className:"dialog-panel",onClick:function(e){e.preventDefault(),e.stopPropagation()}},h("header",null,t?h(A,{icon:t}):null,h(S,null,o)),h("main",null,a),h("footer",null,i))))},de={STRING:"String",NUMBER:"Number",DATE:"Date",BOOLEAN:"Boolean",ARRAY:"Array",ENTITY:"Object",FUNCTION:"Function",EMAIL:"String"},pe=Object.values(de).reduce(function(e,n){return e["is"+n]=function(e){return toString.call(e)=="[object "+n+"]"},e},{}),he=/*#__PURE__*/function(){function e(e){this._schema=e}var n=e.prototype;return n.checkType=function(n,t){var r=n.type,o=n.item,a=!0,i=!0;if(o){var u=new e(o);switch(r){case de.ARRAY:a=pe["is"+r](t),i=t.every(function(e){return u.validate(e)});break;case de.ENTITY:a=pe["is"+r](t),i=u.validate(t);break;case de.NUMBER:a=pe["is"+r](t.value),i=!0;break;default:a=!0,i=!0}}return a&&i},n.validate=function(e){var n=this;return Object.entries(this._schema).filter(function(e){return!0===e[1].required}).every(function(t){var r=t[0];return void 0!==e[r]&&n.checkType(t[1],e[r])})},n.form=function(e){return Object.entries(this._schema).reduce(function(n,t){var r=t[0];return n[r]=Object.assign({},t[1],{value:e[r]}),n},{})},n.sections=function(e){var n=this.form(e),t=Object.values(n).reduce(function(e,n){var t=n.section||"";return e.hasOwnProperty(t)||(e[t]={title:t,fields:[]}),e[t].fields.push(n),e},{});return Object.values(t)},n.value=function(n){return Object.entries(this._schema).reduce(function(t,r){var o=r[0],a=r[1],i=a.item,u=n?n[o]:null;switch(a.type){case de.STRING:case de.NUMBER:case de.BOOLEAN:t[o]=u||a.default;break;case de.ENTITY:var l=new e(i);t[o]=l.value(u);break;case de.ARRAY:if(i===de.STRING)t[o]=u||[];else{var c=new e(i);t[o]=u?u.map(function(e){return c.value(e)}):[]}break;default:t[o]=a}return t},{})},e}(),ve=/*#__PURE__*/function(){function e(e,n){this.type=e,this._type=new he(e),this._value=n}var n=e.prototype;return n.isValid=function(){return this._type.validate(this._value)},n.value=function(){return this._type.value(this._value)},n.form=function(){return this._type.form(this._value)},n.sections=function(){return this._type.sections(this._value)},n.update=function(e){this._value=e},e}(),me=function(e){var n=e.columns,t=void 0===n?1:n,r=e.filter,o=e.onChange,a=e.content.form();console.log(a);var i=Object.keys(a).map(function(e){return a[e]}).filter(function(e){return!r||r(e)});return console.log(i),h(_,{className:"content-form",columns:t,outlined:!0,onChange:o},i.map(function(e){return h(ye,O({key:e.id},e))}))},ye=function(e){switch(e.type){case de.BOOLEAN:return h(w,O({key:e.id},e));case de.NUMBER:return h(be,O({key:e.id},e));default:return h(ge,O({key:e.id},e))}},ge=function(e){var n,t=e.id,r=e.type,o=e.label,a=e.options,i=e.textarea,u=e.required,l=void 0!==u&&u,c=e.value,s=e.onChange,f=e.outlined,d=((n={})[de.NUMBER]="number",n[de.DATE]="date",n)[r]||"text";return a?h(U,{key:t,id:t,label:o,value:c,onChange:s,options:"function"==typeof a?a():a,outlined:f}):h(M,{key:t,id:t,type:d,label:o,value:c,onChange:s,required:l,outlined:f,textarea:i})},be=function(e){var n=e.id,t=e.label,r=e.options,o=e.required,a=void 0!==o&&o,i=e.value,u=e.onChange,l=e.outlined;function c(e,n){u&&u(e,+n?+n:n)}return r?h(U,{key:n,id:n,label:t,value:i,onChange:c,options:r,outlined:l}):h(M,{key:n,id:n,type:"number",label:t,value:i,onChange:c,required:a,outlined:l})},Ce=function(e){var n=e.content,t=e.filter,r=e.onChange;function o(e,t){var o,a=Object.assign({},n.value(),((o={})[e]=t,o));r&&r(a)}var a=n.sections();return h("div",{className:"content-editor"},a.map(function(e){var r=e.title,a=e.fields;return h("section",{key:r},h("header",null,r),h("main",null,a.filter(function(e){return"id"!==e.id}).filter(function(e){return!t||t(e,n)}).map(function(e){return h(we,{key:e.id,field:e,onChange:o})})))}))},ke=function(e){var n=e.content,t=e.filter,r=e.grouped,o=void 0!==r&&r,a=e.onChange,i=g.useState(0),u=i[0],l=i[1];function c(e,t){var r,o=Object.assign({},n.value(),((r={})[e]=t,r));a&&a(o)}var s=n.sections();return h("div",{className:"content-editor tabbed"},h($,{selected:u,onChange:function(e){l(e)}},s.map(function(e){return h(L,{label:e.title})})),h(B,{selected:u},s.map(function(e){var r=e.fields;return h("section",{key:e.title},h("nav",null," "),h("main",null,o?function(e){var n=e.fields,t=(void 0===n?[]:n).reduce(function(e,n){var t=n.group||"",r=e[t]||{name:t,fields:[]};return r.fields.push(n),e[t]=r,e},{});return Object.values(t)}(e).map(function(e){return h(g.Fragment,null,e.name.length>0?h("div",{className:"group-caption"},e.name):null,e.fields.filter(function(e){return"id"!==e.id}).filter(function(e){return!t||t(e)}).map(function(e){return h(we,{key:e.id,field:e,onChange:c,content:n})}))}):r.filter(function(e){return"id"!==e.id}).filter(function(e){return!t||t(e)}).map(function(e){return h(we,{key:e.id,field:e,onChange:c,content:n})})))})))},Se=function(e){var n=e.content,t=e.onChange,r=n.value(),o=Object.values(n.type).filter(function(e){return e.type===de.ARRAY}),a=g.useState(),i=a[0],u=a[1];function l(){}return h("div",{className:"content-editor treeded-editor"},h("menu",null,h("header",null,h(S,{use:"caption"},"Tree Editor")),h(G,null,o.map(function(e,n){return h(X,{icon:"folder",label:e.label,actions:[h(b,{small:!0,icon:"add",clickable:!0,action:l})]},r[e.id]?r[e.id].map(function(n,t){return h(Q,{icon:n.icon||"description",label:n.name||n.label,onSelect:function(){return function(e,n,t){var o=new ve(t.item,n);u({index:e,item:o,node:t,value:r[t.id]})}(t,n,e)}})}):null)}))),h("div",null,i?h(ke,{content:i.item,onChange:function(e){var n,o=i.value.slice();o[i.index]=e;var a=Object.assign({},r,((n={})[i.node.id]=o,n));t&&t(a)}}):"select"))},we=function(e){var n=e.field,t=e.onChange,r=e.content,o=e.outlined,a=void 0!==o&&o,i=n.id,u=n.type,l=n.item,c=n.label,s=n.editable,f=n.options;function d(e,n){t&&t(e,n)}return function(){var e=n.value?n.value:n.default;switch(u){case de.ENTITY:return h(_e,{field:n,value:e,onChange:d});case de.STRING:return h(Ne,{outlined:a,field:n,value:e,onChange:d,content:r});case de.BOOLEAN:return h(w,{outlined:!0,id:i,label:c,value:e,onChange:d});case de.DATE:return h(M,{outlined:a,id:i,type:"date",label:c,value:e,onChange:d,disabled:s});case de.NUMBER:return h(xe,{outlined:a,field:n,value:e,onChange:d});case de.ARRAY:return l===de.STRING?f?h(Pe,{content:r,field:n,value:e,onChange:d}):h(Oe,{field:n,value:e,onChange:d}):h(Ee,{field:n,value:e,onChange:d});default:return h("div",null,c)}}()},_e=function(e){var n=e.field,t=e.value,r=e.onChange,o=n.id,a=n.label,i=new ve(n.item,void 0===t?{}:t);function u(e,n){var t,a=Object.assign({},i.value(),((t={})[e]=n,t));r&&r(o,a)}var l=i.form(),c=Object.keys(l).map(function(e){return l[e]});return h("div",{className:"entity-editor"},h("header",null,h(S,{use:"caption"},a)),h("main",null,c.map(function(e){return h(we,{key:e.id,field:e,onChange:u})})))},Ne=function(e){var n=e.field,t=e.value,r=void 0===t?"":t,o=e.onChange,a=e.outlined,i=n.id,u=n.label,l=n.options,c=n.editable;function s(e,n){o&&o(e,n)}return h("div",{className:"field-editor string-editor"},void 0===c||c?l?h(U,{outlined:a,id:i,label:u,value:r,onChange:s,options:"function"==typeof l?l(n,e.content):l}):h(M,{outlined:a,id:i,label:u,value:r,onChange:s}):h(M,{outlined:a,id:i,label:u,value:r,onChange:s,readOnly:!0}))},xe=function(e){var n=e.field,t=e.onChange,r=n.editable;return h("div",{className:"field-editor number-editor"},h(M,{outlined:!0,id:n.id,label:n.label,type:"NUMBER",value:e.value||n.default,max:n.max,min:n.min,onChange:function(e,n){t&&t(e,n)},disabled:!(void 0===r||r)}))},Oe=function(e){var n=e.field,t=e.value,r=e.onChange;return h("div",{className:"list-editor"},h(W,{id:n.id,label:n.label,init:void 0===t?[]:t,onChange:function(e,n){r&&r(e,n)}}))},Pe=function(e){var n=e.field,t=e.value,r=void 0===t?[]:t,o=e.content,a=e.onChange,i=n.id,u=n.options;return h("div",{className:"multiselection-editor"},h("label",null,n.label),("function"==typeof u?u(n,o):u).map(function(e){var n=r.includes(e.value);return h(w,{value:n,label:e.label,onChange:function(){return(t=r.indexOf(n=e.value))>=0?r.splice(t,1):r.push(n),void(a&&a(i,r));var n,t}})}))},Ee=function(e){var n=e.field,t=e.value,r=void 0===t?[]:t,o=e.onChange,a=n.id,i=n.item,u=n.label,l=n.Feeder,c=n.Renderer,s=n.Adder,f=void 0===s||s,d=n.editable,p=void 0===d||d;function v(e){if(o){var n=r.concat(e);o(a,n)}}function m(e){if(o){var n=r.filter(function(n,t){return t!==e});o(a,n)}}function y(e,n,t){if(o){var i=r.slice();i[e][n]=t,o(a,i)}}var g=Object.values(i).map(function(e){return O({},e,{onChange:y})});g.push({id:"actions",label:"Actions"});var C=r.map(function(e,n){return O({},e,{id:n,actions:[h(b,{icon:"delete",clickable:!0,action:function(){return m(n)},small:!0})]})}),k={columns:g,rows:C};return h("div",{className:"collection-editor"},h("header",null,h(S,{use:"caption"},u),h("div",{className:"actions"},l?h(l,{onAdd:v}):null)),c?h(c,{field:n,value:r,onRemove:m,onChange:o}):h(z,O({},k,{editable:p})),h("footer",null,f?h(je,{item:i,onAdd:v}):null))},je=function(e){var n=e.item,t=e.onAdd,r=g.useState(!1),o=r[0],a=r[1],i=g.useState({}),u=i[0],l=i[1];function c(){a(!o)}function s(e,n,r){if(t){var o,a=Object.assign({},u,((o={})[n]=r,o));l(a)}}var f=Object.values(n).map(function(e){return O({},e,{type:"String",onChange:s})});f.push({id:"actions",label:""});var d=[{actions:[h(b,{icon:"done",clickable:!0,action:function(){t&&t([u]),c()}}),h(b,{icon:"close",clickable:!0,action:c})]}];return d[0]=Object.assign({},u,d[0]),h("div",{className:"collection-adder"},o?h(z,O({},{columns:f,rows:d},{editable:!0})):h(C,{icon:"add",label:"Add",action:c}))},Re=function(e){var n=e.label,t=e.type,r=e.value,o=void 0===r?{}:r,a=e.filter,i=e.validator,u=e.onOK,l=g.useContext(k),c=g.useState(o),s=c[0],f=c[1],d=g.useState(!1),p=d[0],v=d[1],m=g.useState([]),y=m[0],b=m[1];function w(e){"OK"===e&&u&&u(Object.assign({},o,s)),l.closeDialog()}var _=h(g.Fragment,null,h(C,{label:"CLOSE",action:function(){return w("CLOSE")}}),h("div",{className:"expand"}),h(C,{label:"OK",action:function(){return w("OK")},disabled:!p,raised:!0})),N=h(S,{use:"headline6"},n),x=new ve(t,s);return h(fe,{title:N,open:!0,onAction:w,actions:_},h(Ce,{content:x,onChange:function(e){if(f(e),i){var n=i(e),t=n.errors,r=void 0===t?[]:t;v(n.validation),b(r)}else v(!0)},filter:a}),y.map(function(e){return h(S,{use:"overline",tag:"div",className:"error"},e)}))};function Te(e,n){try{var t=e()}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}var Ae=i(window.API||process.env.REACT_APP_API,l),De=function(e){var n=e.groupBy,t=g.useContext(Z),r=t[0],o=t[1],a=r.all,i=void 0===a?[]:a,u=i?i.map(function(e){return{id:e.id,line1:e.name,line2:e.description,content:e}}):[];return h(P,{items:u,onSelect:function(e){try{return r.clear(),o(Object.assign({},r)),Promise.resolve(r.select(e)).then(function(){o(Object.assign({},r))})}catch(e){return Promise.reject(e)}},groupBy:n})},Fe=function(e){var n=function(e){try{return o.clear(),a(Object.assign({},o)),Promise.resolve(o.select(e)).then(function(){a(Object.assign({},o))})}catch(e){return Promise.reject(e)}},t=e.levels,r=g.useContext(Z),o=r[0],a=r[1],i=o.all,u=function e(n,t){var r=function(e,n){return e.reduce(function(e,t){var r=e.find(function(e){return e.name===t[n]});return r||e.push(r={name:t[n],items:[],field:n}),r.items.push(t),e},[])}(t,n[0]);return n.length>1&&r.forEach(function(t){return t.nodes=e(n.slice(1),t.items)}),r}(t,void 0===i?[]:i);return h("main",null,h(G,null,function e(t){return t.map(function(t){return h(X,{key:t.name,icon:null,label:"boolean"==typeof t.name?t.field+" = "+t.name:t.name,open:!0},t.nodes?e(t.nodes):t.items.map(function(e){return h(Q,{key:e.id,id:e.id,label:e.name,onSelect:n},"item")}))})}(u)))},Ie=function(e){var n=function(){try{return console.log("saving....."),Promise.resolve(o.update(y)).then(function(){a(Object.assign({},o))})}catch(e){return Promise.reject(e)}},t=g.useContext(Z),o=t[0],a=t[1],i=o.selected,u=e.icon,l=e.schema,c=e.layout,s=e.autosave,f=void 0!==s&&s,d=e.delay,p=void 0===d?1e3:d,v=g.useRef(null),m=g.useState(i),y=m[0],k=m[1];function w(e){k(e)}function _(){return!r.default(y,i)}return g.useEffect(function(){k(i)},[i]),g.useEffect(function(){f&&(clearTimeout(v.current),v.current=setTimeout(function(){_()&&n()},p))},[y]),i&&y?h(g.Fragment,null,h(x,{icon:u,title:h(S,null,i.name)},h(b,{icon:"close",clickable:!0,action:function(){o.clear(),a(Object.assign({},o))}}),h(A,{align:"alignRight"},h(T,null,h(D,{label:"Eliminar",onSelect:function(){try{return Promise.resolve(o.remove(i.id)).then(function(){o.clear(),a(Object.assign({},o))})}catch(e){return Promise.reject(e)}}}))),!0===f?null:h(C,{icon:"save",label:"Guardar Cambios",raised:!0,disabled:!_(),action:n})),function(){var n=new ve(l,y);switch(c){case"TABBED":return h(ke,O({},e,{content:n,onChange:w}));case"TREEDED":return h(Se,O({},e,{content:n,onChange:w}));default:return h(Ce,O({},e,{content:n,onChange:w}))}}()):null},$e=function(e,n){var t=Le(e);return{all:[],selected:null,load:function(){try{var e=this,r=Te(function(){return Promise.resolve(t.all()).then(function(t){e.all=n?t[n]:t})},function(e){console.log(e)});return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},select:function(e){var n=this.all.find(function(n){return n.id===e});this.selected=n},clear:function(){this.selected=null},create:function(e){try{var n=this,r=Te(function(){return Promise.resolve(t.create(e)).then(function(){return Promise.resolve(n.load()).then(function(){})})},function(e){console.log("CREATE ERROR",e)});return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},update:function(e){try{var n=this,r=Te(function(){return Promise.resolve(t.update(e)).then(function(){return Promise.resolve(n.load()).then(function(){})})},function(e){console.log(e)});return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},patch:function(e,n){try{var r=this,o=Te(function(){return Promise.resolve(t.patch(e,n)).then(function(){return Promise.resolve(r.load()).then(function(){})})},function(e){console.log(e)});return Promise.resolve(o&&o.then?o.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},updateProperty:function(e,n,r){try{var o=this,a=Te(function(){return Promise.resolve(t.updateProperty(e,n,r)).then(function(){return Promise.resolve(o.load()).then(function(){})})},function(e){console.log(e)});return Promise.resolve(a&&a.then?a.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},remove:function(e){try{var n=this,r=Te(function(){return Promise.resolve(t.remove(e)).then(function(){return Promise.resolve(n.load()).then(function(){})})},function(e){console.log(e)});return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}}},Le=function(e){return{all:function(){return Ae.GET(e)},find:function(n){return Ae.GET(e+"/"+n)},create:function(n){var t=JSON.stringify(n);return Ae.POST(e,t)},update:function(n){var t=JSON.stringify(n);return Ae.PUT(e+"/"+n.id,t)},patch:function(n,t){var r=JSON.stringify(t);return Ae.PATCH(e+"/"+n,r)},updateProperty:function(n,t,r){var o=JSON.stringify(r);return Ae.PUT(e+"/"+n+"/"+t,o)},remove:function(n){return Ae.DELETE(e+"/"+n)}}},Be=function(e){var n=g.useRef(),t=g.useState(!1),r=t[0],o=t[1];g.useEffect(function(){var t=e.resumable;t&&n&&t.assignDrop(n.current)},[]);var a=e.state,i=void 0===a?0:a,u=e.label,l=void 0===u?"Add file or drop file here...":u,c=e.error;return h("div",{className:"upload-area6 "+(!0===r?"drag-over":""),onDragOver:function(){o(!0)},onDragLeave:function(){o(!1)},ref:n},0===i?h(Me,{resumable:e.resumable}):"",0===i?h("label",null,l):"",1===i?h(F,{size:"xlarge"}):"",2===i?h(b,{icon:"done_all"}):"",3===i?h(S,{use:"body1"},c):"",e.children)},Me=function(e){var n=e.resumable,t=g.useRef();return g.useEffect(function(){n&&t&&n.assignBrowse(t.current)},[]),h("div",{className:"upload-icon",ref:t},h(b,{icon:"folder_open",clickable:!0}))},Ue=function(e){var n=e.label,t=e.target,r=e.accept,a=e.className,i=e.onSuccess,u=e.onError,l=e.onComplete,c=g.useMemo(function(){var e=new o.default({target:t,chunkSize:1048576,simultaneousUploads:1,testChunks:!1,throttleProgressCallbacks:1,fileType:r});return e.on("fileAdded",S),e.on("fileProgress",w),e.on("fileSuccess",_),e.on("fileError",N),e.on("complete",x),e},[]),s=g.useState(0)[1],f=g.useState(0),d=f[0],p=f[1],v=g.useState(),m=v[0],y=v[1],b=g.useState([]),C=b[0],k=b[1];function S(e){C.push(e),k(C),c.upload()}function w(e){var n=e.progress();s(n)}function _(e,n){p(2),i&&i(e,n)}function N(e,n){y(n),p(3),u&&u(e,n)}function x(){p(0),l&&l(C)}return h("div",{className:"uploader "+a},h(Be,{resumable:c,state:d,label:n,error:m}))},ze=function(e){var n=e.file,t=e.state,r=e.progress,o=e.error,a=o?h(b,{icon:"image",className:"error"}):h(b,{icon:"image"});return 0!==t?h(g.Fragment,null,h("div",{className:"upload-file"},a,h(S,{use:"body1",tag:"label"},n.fileName),1===t?h(I,{progress:r}):"",1===t?h(b,{icon:"close",clickable:!0}):"",2===t?h(b,{icon:"done"}):"",3===t?h(b,{icon:"error"}):""),o?h("div",{className:"error"},h(S,{use:"overline"},o)):""):""};exports.Button=C,exports.CheckBox=w,exports.Chip=function(e){var n=e.id,t=e.icon,r=e.label,o=e.action,a=e.onSelect,i=e.outlined?"outlined":"normal";return e.selected&&(i+=" selected"),h("div",{className:"chip "+i,onClick:function(e){e.stopPropagation(),e.preventDefault(),a&&a(n)}},t?h(b,{icon:t,size:"small"}):null,h("main",null,h(S,null,r)),o?h("span",{className:"meta"},o):null)},exports.Chips=function(e){return h("div",{className:"chips"},e.children)},exports.CircularProgress=F,exports.CollectionContext=$e,exports.CollectionEditor=Ee,exports.CollectionPage=function(e){var n=g.useContext(k),t=e.id,r=void 0===t?"collection":t,o=e.icon,a=e.title,i=e.name,u=void 0===i?"Collection 1":i,l=e.schema,c=e.url,s=e.groupBy,f=e.editor,d=e.field,p=e.autosave,v=void 0!==p&&p,m=e.delay,y=void 0===m?1e3:m,b=e.actions,w=e.levels,_=g.useContext(Z),N=_[0],O=_[1],P=$e(c,d);return g.useEffect(function(){try{return Promise.resolve(P.load()).then(function(){O(P)})}catch(e){return Promise.reject(e)}},[]),h(g.Fragment,null,h(x,{className:"collection-page",title:h(S,null,a)},h(C,{icon:"add",label:"Add",action:function(){n.openDialog(h(Re,{label:"Crear "+u,type:l,onOK:function(e){try{return Promise.resolve(N.create(e)).then(function(){O(Object.assign({},N))})}catch(e){return Promise.reject(e)}}}))}}),h(C,{icon:"refresh",label:"Reload",action:function(){try{return Promise.resolve(N.load()).then(function(){O(Object.assign({},N))})}catch(e){return Promise.reject(e)}}}),b),h("menu",{className:"collection-page"},h(x,{title:h(S,null,"Lista de ",u)}),w?h(Fe,{levels:w}):h(De,{groupBy:s})),h("main",{key:r,className:"collection-page"},h(Ie,{icon:o,schema:l,layout:f,autosave:v,delay:y})))},exports.Content=ve,exports.ContentEditor=Ce,exports.ContentForm=me,exports.CreateContentDialog=function(e){var n=e.label,t=e.type,r=e.validator,o=e.onOK,a=e.onActionClose,i=void 0===a||a,u=g.useContext(k),l=g.useState({}),c=l[0],s=l[1],f=g.useState(!1),d=f[0],p=f[1],v=g.useState([]),m=v[0],y=v[1];function b(e){"OK"===e&&o&&o(c),"CLOSE"!==e&&!0!==i||u.closeDialog()}var w=h(g.Fragment,null,h(C,{label:"CLOSE",action:function(){return b("CLOSE")}}),h(C,{label:"OK",action:function(){return b("OK")},disabled:!d,raised:!0})),_=h(S,{use:"headline6"},n),N=new ve(t,c);return h(fe,{title:_,open:!0,onAction:b,actions:w},h(me,{content:N,filter:function(e){return function(e){var n=e.required;return void 0!==n&&n}(e)||function(e){var n=e.creation;return void 0!==n&&n}(e)},onChange:function(e,n){if(s(e),r){var t=r(e),o=t.errors,a=void 0===o?[]:o;p(n&&t.validation),y(a)}else p(n)}}),m.map(function(e){return h(S,{use:"overline",tag:"div",className:"error"},e)}))},exports.DataTable=z,exports.Dialog=fe,exports.DropDown=U,exports.EditContentDialog=Re,exports.FieldEditor=we,exports.Form=_,exports.HTTPClient=i,exports.Header=x,exports.Icon=b,exports.Kanban=function(e){return h("div",{className:"kanban"},e.children)},exports.KanbanCard=function(e){return h("div",{className:"kanban-card "+e.color},e.children)},exports.KanbanColumn=function(e){var n=e.id,t=e.icon,r=e.title,o=e.subtitle,a=e.badge,i=e.children,u=e.minified,l=e.disabled,c=void 0!==l&&l,s=g.useState(void 0!==u&&u),f=s[0],d=s[1];function p(){d(!f)}return f?h("div",{className:"kanban-column "+n+" min"},h("main",null,r),h("footer",null,h(b,{icon:"toggle_off",onIcon:"toggle_on",clickable:!0,action:p}))):h("div",{className:"kanban-column "+n+" "+(c?"disabled":"")},h("header",null,h(b,{icon:t}),h("div",{className:"title"},h(S,{use:"headline6"},r),h(S,{className:"secondary-text",use:"body2"},o)),h("div",{className:"badge"},a)),h("main",null,i),h("footer",null,h(b,{icon:"toggle_off",onIcon:"toggle_on",clickable:!0,action:p})))},exports.LinearProgress=I,exports.List=P,exports.ListEditor=Oe,exports.LoginBox=function(e){var n=e.logo,t=e.title,r=e.userLabel,o=void 0===r?"User":r,a=e.passwordLabel,i=void 0===a?"Password":a,u=e.loginLabel,l=void 0===u?"Log In":u,c=e.onOK,s=e.forgotLabel,f=void 0===s?"Forgot Password ?":s,d=e.onForgot,p=e.message,v=e.loading,m=g.useState(""),y=m[0],k=m[1],w=g.useState(""),_=w[0],N=w[1];function x(){return y&&y.length>0&&_&&_.length>0}function O(e){c&&x()&&c(y,e||_)}function P(e){return h(S,null,e)}return h("div",{className:"login-box"},h("header",null,n?h("img",{src:n}):"",h("div",{className:"title"},h(S,null,t))),h("main",null,h(M,{label:P(o),value:y,onChange:function(e,n){k(n)},onEnter:O,outlined:!0}),h(M,{label:P(i),value:_,onChange:function(e,n){N(n)},onEnter:O,type:"password",outlined:!0})),h("footer",null,d?h(C,{label:P(f),action:function(){d&&d(y)},disabled:!(y&&y.length>0)}):null,v?h("div",{className:"load-box"},h(b,{icon:"refresh"})):h(C,{label:P(l),action:O,disabled:!x(),raised:!0}),p?h("div",{className:"message"},h(S,null,p)):null))},exports.Menu=T,exports.MenuIcon=A,exports.MenuItem=D,exports.MenuSeparator=function(e){return h("li",null,"menuSeparator")},exports.Page=ne,exports.PageContext=Z,exports.PageProvider=ee,exports.Property=function(e){var n=e.value;return h("div",{className:"property"},h("div",{className:"property-name"},e.name),h("div",{className:"property-value"},n))},exports.RadioButton=function(e){var n=e.id,t=e.name,r=e.placeholder,o=e.value,a=e.onChange,i=h(S,null,e.label);return h("div",{className:"radio"},h("input",{id:n,name:t,type:"radio",placeholder:r,value:o,onClick:function(e){a&&a(n,e.target.value)}}),h("span",{class:"checkmark"}),h("label",{htmlFor:n},i))},exports.ResetPasswordBox=function(e){var n=e.logo,t=e.title,r=e.children,o=e.onOK,a=e.onClose,i=g.useState({}),u=i[0],l=i[1],c=g.useState(),s=c[0],f=c[1];function d(){return u.password1&&u.password2}function p(e,n){var t,r=Object.assign({},u,((t={})[e]=n,t));l(r)}function v(){o&&d()&&(u.password1===u.password2?(f(null),o(u)):f("New Password and Confirm New Password do not match"))}return h("div",{className:"reset-password-box"},h("header",null,n?h("img",{src:n}):null,t?h("div",{className:"title"},h(S,null,t)):null,r),h("main",null,h(S,{use:"headline6"},"Change Password"),h(M,{id:"password1",outlined:!0,icon:"lock",type:"password",label:"New Password",lapse:100,onChange:p,onEnter:v}),h(M,{id:"password2",outlined:!0,icon:"lock",type:"password",label:"Confirm New Password",lapse:100,onChange:p,onEnter:v}),s?h("div",{className:"error"},s):null),h("footer",null,h(C,{label:"Close",action:function(){a&&a()}}),h(C,{label:"OK",raised:!0,disabled:!d(),action:v})))},exports.Section=function(e){var n=e.icon,t=e.title,r=void 0===t?"":t,o=e.canCollapse,a=void 0===o||o,i=e.open,u=void 0!==i&&i,l=e.actions,c=e.children,s=e.className,f=g.useState(u),d=f[0],p=f[1];return g.useEffect(function(){p(u)},[u]),h("section",{className:"section2 "+s},h(x,{icon:{icon:n},title:r},l,a?h(b,{icon:"expand_more",onIcon:"expand_less",clickable:!0,action:function(){p(!u)}}):""),d?h("main",null,c):"")},exports.Session=l,exports.Site=function(e){var n=e.logo,t=e.title,r=e.toolbar,o=e.children,a=e.init,i=e.min;return h(te,{siteLang:e.lang,siteDictionary:e.dictionary},h("div",{className:"site6"},h(re,{icon:e.icon}),h(oe,null,r),h(ie,{logo:n,title:t,min:i},o),h(ue,{init:a},o,h(ne,{id:"EMPTY"},"EMPTY")),h(ae,null),h(se,null),h(le,null),h(ce,null)))},exports.SiteContext=k,exports.SiteProvider=te,exports.Stack=B,exports.TYPES=de,exports.Tab=L,exports.TabbedContentEditor=ke,exports.Tabs=$,exports.Text=S,exports.TextField=M,exports.TokenField=W,exports.Tree=G,exports.TreeItem=Q,exports.TreeNode=X,exports.TreededContentEditor=Se,exports.UploadArea=Be,exports.UploadDialog=function(e){var n=e.label,t=e.target,r=e.accept,o=e.onSuccess,a=e.onClose,i=e.onActionClose,u=void 0===i||i,l=g.useContext(k),c=g.useState(),s=c[0],f=c[1],d=g.useState([])[0];function p(e){"CLOSE"!==e&&!0!==u||(l.closeDialog(),a())}var v=h(g.Fragment,null,h(C,{label:"CLOSE",action:function(){return p("CLOSE")}})),m=h(S,{use:"headline6"},n);return h(fe,{title:m,open:!0,onAction:p,actions:v},s?h(ze,{file:s}):h(Ue,{label:n,accept:r,target:t,onComplete:function(e){f(e[0]),o&&o(e[0])}}),d.map(function(e){return h(S,{use:"overline",tag:"div",className:"error"},e)}))},exports.UploadFile=ze,exports.Uploader=Ue,exports.Viewer=function(e){var n=e.title,t=e.src,r=e.info,o=e.actions,a=void 0===o?[]:o,i=e.tools,u=void 0!==i&&i,l=e.onClose,c=g.useState(!1),s=c[0],f=c[1];function d(){f(!s)}var p=h(S,{use:"headline6"},n);return h("div",{className:"viewer"},h(x,{icon:{icon:"close",clickable:!0,action:l},title:p},s?"":h(b,{icon:"info",clickable:!0,action:d}),a),h("main",null,h("div",{className:"resizer"},h("picture",null,h("img",{src:t})))),h("aside",{className:s?"open":""},h(x,{title:"Detalles"},h(b,{icon:"close",clickable:!0,action:d})),h("main",null,r)),u?h("footer",null,h(b,{clickable:!0,icon:"zoom_out"}),h(b,{clickable:!0,icon:"zoom_out_map"}),h(b,{clickable:!0,icon:"zoom_in"})):null)},exports.isFunction=function(e){return e&&("[object Function]"===Object.prototype.toString.call(e)||"function"==typeof e||e instanceof Function)};
2
2
  //# sourceMappingURL=index.cjs.map