react-input-material 0.0.451 → 0.0.453
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/components/FileInput/index.css +1 -1
- package/dist/components/FileInput/index.js +1 -1
- package/dist/components/GenericInput/index.css +1 -1
- package/dist/components/GenericInput/index.js +1 -1
- package/dist/components/Inputs/index.css +1 -1
- package/dist/components/Inputs/index.js +1 -1
- package/dist/components/Interval/index.css +1 -1
- package/dist/components/Interval/index.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* !/usr/bin/env css
|
|
2
2
|
-*- coding: utf-8 -*- */.file-input{visibility:visible}.file-input .mdc-typography--headline6,.file-input .mdc-typography--subtitle2{margin-left:10px}.file-input__download{text-decoration:none}.file-input__iframe-wrapper,.file-input__text-representation{border-left:1px dashed #000;-webkit-box-sizing:content-box;box-sizing:content-box;opacity:.5;margin-bottom:-55px;height:200px;-webkit-transform:scale(.75);transform:scale(.75);-webkit-transform-origin:0 0;transform-origin:0 0}.file-input__iframe-wrapper{overflow:hidden;width:645px}.file-input__iframe-wrapper iframe{padding:0 10px;border:none;overflow:hidden;width:100%}.file-input__iframe-wrapper--padding{visibility:visible}.file-input__text-representation{padding:0 15px;width:620px;overflow-x:hidden;overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none}.file-input__text-representation::-webkit-scrollbar{display:none}.file-input__native{display:none}
|
|
3
3
|
/* !/usr/bin/env css
|
|
4
|
-
-*- coding: utf-8 -*- */.generic-input{display:block}.generic-input .ace_editor,.generic-input .tox-tinymce{border-radius:0;margin-top:27px;margin-left:-4px;margin-right:4px}.generic-input .tox-tinymce{border-width:1px}.generic-input--custom{padding-top:9px}.generic-input__editor__label{top:9px!important}.generic-input__suggestions{bottom:auto!important;bottom:initial!important;top:54px!important}.generic-input__suggestions{border-top-left-radius:0;border-top-right-radius:0;width:100%}.generic-input__suggestions--pending{padding:10px}.generic-input__suggestions__suggestion{visibility:visible;white-space:break-spaces}.generic-input__suggestions__suggestion__mark{color:var(--mdc-theme-secondary);display:contents}.generic-input input[type=search]::-ms-clear
|
|
4
|
+
-*- coding: utf-8 -*- */.generic-input{display:block}.generic-input .ace_editor,.generic-input .tox-tinymce{border-radius:0;margin-top:27px;margin-left:-4px;margin-right:4px}.generic-input .tox-tinymce{border-width:1px}.generic-input--custom{padding-top:9px}.generic-input__editor__label{top:9px!important}.generic-input__suggestions{bottom:auto!important;bottom:initial!important;top:54px!important}.generic-input__suggestions{border-top-left-radius:0;border-top-right-radius:0;width:100%}.generic-input__suggestions--pending{padding:10px}.generic-input__suggestions__suggestion{visibility:visible;white-space:break-spaces}.generic-input__suggestions__suggestion__mark{color:var(--mdc-theme-secondary);display:contents}.generic-input input[type=search]::-ms-clear,.generic-input input[type=search]::-ms-reveal{display:none;height:0;width:0}.generic-input input[type=search]::-webkit-search-cancel-button,.generic-input input[type=search]::-webkit-search-decoration,.generic-input input[type=search]::-webkit-search-results-button,.generic-input input[type=search]::-webkit-search-results-decoration{display:none}
|
|
5
5
|
/* !/usr/bin/env css
|
|
6
6
|
-*- coding: utf-8 -*- */.generic-animate,.generic-animate__list-wrapper,.generic-animate__wrapper{visibility:visible}.generic-animate-appear,.generic-animate-enter,.generic-animate-exit-active{opacity:0}.generic-animate-appear-active,.generic-animate-enter-active,.generic-animate-exit{opacity:1}.generic-animate-appear-active,.generic-animate-enter-active,.generic-animate-exit-active{-webkit-transition:opacity .2s ease-in;transition:opacity .2s ease-in}.generic-animate-exit-active{opacity:0}.generic-animate-exit-done{display:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/regenerator"),require("@rmwc/card"),require("@rmwc/circular-progress"),require("@rmwc/formfield"),require("@rmwc/icon"),require("@rmwc/icon-button"),require("@rmwc/menu"),require("@rmwc/select"),require("@rmwc/textfield"),require("@rmwc/theme"),require("@rmwc/tooltip"),require("@rmwc/typography"),require("@tinymce/tinymce-react"),require("ace-builds"),require("blob-util"),require("clientnode"),require("clientnode/property-types"),require("react"),require("react-ace"),require("react-transition-group"),require("react/jsx-runtime"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/asyncToGenerator","@babel/runtime/helpers/extends","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/regenerator","@rmwc/card","@rmwc/circular-progress","@rmwc/formfield","@rmwc/icon","@rmwc/icon-button","@rmwc/menu","@rmwc/select","@rmwc/textfield","@rmwc/theme","@rmwc/tooltip","@rmwc/typography","@tinymce/tinymce-react","ace-builds","blob-util","clientnode","clientnode/property-types","react","react-ace","react-transition-group","react/jsx-runtime"],t);else{var n="object"==typeof exports?t(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/regenerator"),require("@rmwc/card"),require("@rmwc/circular-progress"),require("@rmwc/formfield"),require("@rmwc/icon"),require("@rmwc/icon-button"),require("@rmwc/menu"),require("@rmwc/select"),require("@rmwc/textfield"),require("@rmwc/theme"),require("@rmwc/tooltip"),require("@rmwc/typography"),require("@tinymce/tinymce-react"),require("ace-builds"),require("blob-util"),require("clientnode"),require("clientnode/property-types"),require("react"),require("react-ace"),require("react-transition-group"),require("react/jsx-runtime")):t(e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/regenerator"],e["@rmwc/card"],e["@rmwc/circular-progress"],e["@rmwc/formfield"],e["@rmwc/icon"],e["@rmwc/icon-button"],e["@rmwc/menu"],e["@rmwc/select"],e["@rmwc/textfield"],e["@rmwc/theme"],e["@rmwc/tooltip"],e["@rmwc/typography"],e["@tinymce/tinymce-react"],e["ace-builds"],e["blob-util"],e.clientnode,e["clientnode/property-types"],e.react,e["react-ace"],e["react-transition-group"],e["react/jsx-runtime"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,(function(e,t,n,r,i,o,a,l,u,s,c,d,m,p,f,v,g,b,y,h,x,w,j,S){return function(){"use strict";var T,_,I=[function(e){e.exports=S},function(e){e.exports=t},function(e){e.exports=x},function(e){e.exports=y},function(e){e.exports=m},function(e){e.exports=h},function(e,t,n){n.d(t,{WrapTooltip:function(){return u}});var r=n(1),i=n.n(r),o=n(9),a=n(11),l=n(0),u=function(e){var t=e.children,n=e.options;return"string"==typeof n?(0,l.jsx)(a.Tooltip,{content:(0,l.jsx)(o.Typography,{use:"caption",children:n}),children:(0,l.jsx)("div",{className:"generic-tooltip",children:t})}):null!==n&&"object"==typeof n?("string"==typeof n.content&&(n=i()({},n,{content:(0,l.jsx)(o.Typography,{use:"caption",children:n.content})})),(0,l.jsx)(a.Tooltip,i()({},n,{children:(0,l.jsx)("div",{className:"generic-tooltip",children:t})}))):(0,l.jsx)(l.Fragment,{children:t})};t.default=u},function(e,t,n){n.d(t,{WrapConfigurations:function(){return l}});n(1),n(13),n(2),n(4);var r=n(12),i=n(10),o=n(6),a=n(0),l=function(e){var t=e.children,n=e.strict,l=e.themeConfiguration,u=e.tooltip,s=e.wrap;return(0,a.jsx)(r.x,{strict:Boolean(n),children:(0,a.jsx)(o.WrapTooltip,{options:u,children:(0,a.jsx)(i.WrapThemeProvider,{configuration:l,wrap:s,children:t})})})};t.default=l},function(e,t,n){n.d(t,{deriveMissingPropertiesFromState:function(){return d},determineInitialRepresentation:function(){return v},determineInitialValue:function(){return g},determineValidationState:function(){return b},formatValue:function(){return T},getConsolidatedProperties:function(){return h},getLabelAndValues:function(){return x},getValueFromSelection:function(){return w},mapPropertiesIntoModel:function(){return y},normalizeSelection:function(){return j},parseValue:function(){return S},translateKnownSymbols:function(){return f},triggerCallbackIfExists:function(){return p},useMemorizedValue:function(){return _},wrapStateSetter:function(){return m}});var r=n(1),i=n.n(r),o=n(3),a=n.n(o),l=n(5),u=n(2);function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var d=function(e,t){void 0!==e.model.value&&void 0===e.value&&(e.value=e.model.value),void 0===e.value&&(e.value=t.value),e.model.state?e.model.state=i()({},e.model.state):e.model.state={};for(var n=0,r=Object.entries(t.modelState);n<r.length;n++){var o=r[n],a=o[0],l=o[1];void 0===e.model.state[a]&&(e.model.state[a]=l)}return e},m=function(e,t){return function(n){var r="function"==typeof n?n(t):n;a().equals(null==r?void 0:r.modelState,null==t?void 0:t.modelState)||e(r)}},p=function(e,t,n){void 0===n&&(n=!0);for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];t="on"+a().stringCapitalize(t),e[t]&&(n?e[t].apply(e,i):a().timeout((function(){return e[t].apply(e,i)})))},f=function(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],o=i[0],u=i[1];u===l.UndefinedSymbol?t[o]=void 0:u===l.NullSymbol?t[o]=null:t[o]=a().copy(e[o])}return t};function v(e,t,n,r,o){if("string"==typeof e.representation)return e.representation;if(null!==n){var l,u=function(e,t){if(t)for(var n,r=s(t);!(n=r()).done;){var i=n.value;if(a().equals(null==i?void 0:i.value,e))return i.label||""+e}return null}(n,o);return"string"==typeof u?u:T(i()({},e,{type:e.type||(null==(l=e.model)?void 0:l.type)||t.model.type}),n,r)}return""}var g=function(e,t,n){var r,i;return void 0!==n?n:void 0!==e.value?e.value:void 0!==(null==(r=e.model)?void 0:r.value)?e.model.value:void 0!==e.initialValue?a().copy(e.initialValue):void 0!==e.default?a().copy(e.default):void 0!==(null==(i=e.model)?void 0:i.default)?a().copy(e.model.default):void 0!==t?t:null},b=function(e,t,n){void 0===n&&(n={});var r=!1;n=i()({invalidRequired:function(){return!1===e.model.nullable&&"boolean"!==e.model.type&&!e.model.value&&0!==e.model.value||"boolean"===e.model.type&&!("boolean"==typeof e.model.value||["false","true"].includes(e.model.value))}},n),e.model.state=e.model.state||{};for(var o=0,a=Object.entries(n);o<a.length;o++){var l=a[o],u=l[0],s=l[1],c=t[u];e.model.state[u]=s(),r=r||c!==t[u]}return r&&(e.model.state.invalid=Object.keys(n).some((function(t){return e.model.state[t]})),e.model.state.valid=!e.model.state.invalid),r},y=function(e,t){var n=a().extend(!0,{model:a().copy(t)},e);n.disabled&&(n.model.mutable=!1,delete n.disabled),n.invertedPattern&&(n.model.invertedRegularExpressionPattern=n.invertedPattern,delete n.invertedPattern),n.pattern&&(n.model.regularExpressionPattern=n.pattern,delete n.pattern),n.required&&(n.model.nullable=!1,delete n.required),"text"===n.type&&(n.type="string");for(var r,i=s(Object.keys(n.model).concat("value"));!(r=i()).done;){var o=r.value;Object.prototype.hasOwnProperty.call(n,o)&&void 0!==n[o]&&(n.model[o]=n[o])}for(var l in n.model.state)Object.prototype.hasOwnProperty.call(n,l)&&void 0!==n[l]&&(n.model.state[l]=n[l]);return void 0===n.model.value&&(n.model.value=a().copy(n.model.default)),n},h=function(e){var t=i()({},e,e.model||{},(e.model||{}).state||{});return t.disabled=!(t.mutable&&t.writable),delete t.mutable,delete t.writable,delete t.state,t.required=!t.nullable,delete t.nullable,t.invertedRegularExpressionPattern&&(t.invertedPattern=t.invertedRegularExpressionPattern),delete t.invertedRegularExpressionPattern,t.regularExpressionPattern&&(t.pattern=t.regularExpressionPattern),delete t.regularExpressionPattern,t};function x(e){if(Array.isArray(e)){for(var t,n=[],r=[],i=s(e);!(t=i()).done;){var o=t.value;"string"==typeof(null==o?void 0:o.label)&&(n.push(o.label),r.push(o.value))}return[n,r]}return[[],[]]}function w(e,t){if(Array.isArray(t))for(var n,r=s(t);!(n=r()).done;){var i=n.value;if("string"==typeof(null==i?void 0:i.label)&&i.label===e)return i.value;if(["number","string"].includes(typeof(null==i?void 0:i.value))&&""+i.value===e)return i.value}return null}function j(e,t){if(e||(e=t,t=void 0),!e)return e;var n=null!==t&&"object"==typeof t,r=function(e,r){if(n)if(Array.isArray(t)){if(t.length)if(Array.isArray(t[0]))for(var i,o=s(t);!(i=o()).done;){var a=i.value,l=a[0],u=a[1];if(l===e)return u}else if("number"==typeof r&&r<t.length)return t[r]}else{if(!0===e&&t.true)return t.true;if(!1===e&&t.false)return t.false;if("string"==typeof e&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}return null},o=!1;if(Array.isArray(e)){if(o=!0,e.length){var a=[],l=0;if(Array.isArray(e[0]))for(var u=0,c=e;u<c.length;u++){var d,m=c[u],p=m[0],f=m[1];a.push({label:null!==(d=r(p,l))&&void 0!==d?d:f,value:p}),l+=1}else if(null!==e[0]&&"object"==typeof e[0])for(var v,g=s(e);!(v=g()).done;){var b,y=v.value;a.push(i()({},y,{label:null!==(b=r(y.value,l))&&void 0!==b?b:y.label})),l+=1}else for(var h=0,x=e;h<x.length;h++){var w,j=x[h];a.push({label:null!==(w=r(j,l))&&void 0!==w?w:j,value:j}),l+=1}e=a}}else{for(var S=[],T=0,_=Object.keys(e);T<_.length;T++){var I,P=_[T];S.push({label:null!==(I=r(P))&&void 0!==I?I:e[P],value:P})}e=S}if(Array.isArray(t)&&t.length&&Array.isArray(t[0])){for(var C,O=new Map,N=0,q=s(t);!(C=q()).done;){var k=C.value[0];O.set(k,N),N+=1}e=e.sort((function(e,t){var n,r,i=e.value,o=t.value;return(null!==(n=O.get(i))&&void 0!==n?n:0)-(null!==(r=O.get(o))&&void 0!==r?r:0)}))}else o||(e=e.sort((function(e,t){var n=e.value,r=t.value;return n.localeCompare(r)})));return e}var S=function(e,t,n){var r;if(e.model.trim&&"string"==typeof t&&(t=t.trim().replace(/ +\n/g,"\\n")),e.model.emptyEqualsNull&&""===t)return null;var i=t;return![null,void 0].includes(t)&&null!=(r=n[e.model.type])&&r.parse&&(i=n[e.model.type].parse(t,e,n)),"number"==typeof i&&isNaN(i)?null:i};function T(e,t,n,r){var i;void 0===r&&(r=!0);var o=r?"final":"intermediate";if([null,void 0].includes(t)||"number"==typeof t&&isNaN(t))return"";var a=null==(i=n[e.type||e.model.type])?void 0:i.format;if(a){var l,u,s=(null==(l=a[o])?void 0:l.transform)||(null==(u=a.final)?void 0:u.transform);if(s)return s(t,e,n)}return String(t)}var _=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,u.useMemo)((function(){return e}),n)}},function(e){e.exports=f},function(e,t,n){n.d(t,{WrapThemeProvider:function(){return o}});var r=n(4),i=n(0),o=function(e){var t=e.children,n=e.configuration,o=e.wrap;return n?(0,i.jsx)(r.ThemeProvider,{options:n,wrap:!1!==o,children:t}):t}},function(e){e.exports=p},function(e,t,n){n.d(t,{x:function(){return o}});var r=n(2),i=n(0),o=function(e){var t=e.children;return e.strict?(0,i.jsx)(r.StrictMode,{children:t}):(0,i.jsx)(i.Fragment,{children:t})}},function(e){e.exports=n},function(e,t,n){n.d(t,{default:function(){return m}});var r=n(1),i=n.n(r),o=n(5),a=n(2),l=n(21),u=n(0),s={"generic-animate":"generic-animate","generic-animate__list-wrapper":"generic-animate__list-wrapper","generic-animate__wrapper":"generic-animate__wrapper","generic-animate-appear":"generic-animate-appear","generic-animate-enter":"generic-animate-enter","generic-animate-exit-active":"generic-animate-exit-active","generic-animate-appear-active":"generic-animate-appear-active","generic-animate-enter-active":"generic-animate-enter-active","generic-animate-exit":"generic-animate-exit","generic-animate-exit-done":"generic-animate-exit-done"},c=function(e,t){return(0,u.jsx)(l.CSSTransition,i()({appear:!0,classNames:s["generic-animate"],in:!0,timeout:200,unmountOnExit:!0},e,{children:"string"==typeof e.children?(0,u.jsx)("span",{className:s["generic-animate__wrapper"],ref:t,children:e.children}):Array.isArray(e.children)?(0,u.jsx)("div",{className:s["generic-animate__list-wrapper"],ref:t,children:e.children}):e.children}))},d=(0,a.memo)((0,a.forwardRef)(c));d.wrapped=c,d.webComponentAdapterWrapped="react",d.propTypes={appear:o.boolean,classNames:o.string,in:o.boolean,timeout:o.number};var m=d},function(e,t,n){n.d(t,{default:function(){return U}});var r=n(1),i=n.n(r),o=n(16),a=n.n(o),l=n(17),u=n.n(l),s=n(3),c=n.n(s),d=n(2),m=n(18),p=n(22),f=n(19),v=n(20),g=n(23),b=n(24),y=n(25),h=n(4),x=n(26),w=n(14),j=n(7),S=n(6),T=n(8),_=n(29),I=n(0);function P(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var O=!(void 0===typeof window),N=O?(0,s.optionalRequire)("react-useanimations"):null,q=O?(0,s.optionalRequire)("react-useanimations/lib/lock"):null,k=O?(0,s.optionalRequire)("react-useanimations/lib/plusToX"):null,E={"generic-input":"generic-input",ace_editor:"ace_editor","tox-tinymce":"tox-tinymce","generic-input--custom":"generic-input--custom","generic-input__editor__label":"generic-input__editor__label","generic-input__suggestions":"generic-input__suggestions","generic-input__suggestions--pending":"generic-input__suggestions--pending","generic-input__suggestions__suggestion":"generic-input__suggestions__suggestion","generic-input__suggestions__suggestion__mark":"generic-input__suggestions__suggestion__mark"},A={basePath:"/node_modules/ace-builds/src-noconflict/",useWorker:!1},R=(0,d.lazy)(a()(u().mark((function e(){var t,r,i,o,a,l,s;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(n.t.bind(n,27,23));case 2:for(t=e.sent,r=t.config,i=0,o=Object.entries(A);i<o.length;i++)a=o[i],l=a[0],s=a[1],r.set(l,s);return e.next=7,Promise.resolve().then(n.t.bind(n,28,23));case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})))),M=!1,B="/node_modules/tinymce/",D={base_url:B,skin_url:B+"skins/ui/oxide",theme_url:B+"themes/silver/theme.min.js",allow_conditional_comments:!1,allow_script_urls:!1,body_class:"mdc-text-field__input",branding:!1,cache_suffix:"?version=1664560562.23",contextmenu:[],document_base_url:"/",element_format:"xhtml",entity_encoding:"raw",fix_list_elements:!0,hidden_input:!1,icon:"material",invalid_elements:"em",invalid_styles:"color font-size line-height",keep_styles:!1,menubar:!1,plugins:["fullscreen","link","code","nonbreaking","searchreplace","visualblocks"],relative_urls:!1,remove_script_host:!1,remove_trailing_brs:!0,schema:"html5",toolbar1:"\n cut copy paste |\n undo redo removeformat |\n styleselect formatselect fontselect fontsizeselect |\n searchreplace visualblocks fullscreen code\n ".trim(),toolbar2:"\n alignleft aligncenter alignright alignjustify outdent indent |\n link nonbreaking bullist numlist bold italic underline strikethrough\n ".trim(),trim:!0};function V(e,t){return(0,T.determineValidationState)(e,t,{invalidMaximum:function(){return"number"==typeof e.model.maximum&&"number"==typeof e.model.value&&!isNaN(e.model.value)&&e.model.maximum>=0&&e.model.maximum<e.model.value},invalidMinimum:function(){return"number"==typeof e.model.minimum&&"number"==typeof e.model.value&&!isNaN(e.model.value)&&e.model.value<e.model.minimum},invalidMaximumLength:function(){return"number"==typeof e.model.maximumLength&&"string"==typeof e.model.value&&e.model.maximumLength>=0&&e.model.maximumLength<e.model.value.length},invalidMinimumLength:function(){return"number"==typeof e.model.minimumLength&&"string"==typeof e.model.value&&e.model.value.length<e.model.minimumLength},invalidInvertedPattern:function(){return"string"==typeof e.model.value&&[].concat(e.model.invertedRegularExpressionPattern).some((function(t){return"string"==typeof t&&new RegExp(t).test(e.model.value)||null!==t&&"object"==typeof t&&t.test(e.model.value)}))},invalidPattern:function(){return"string"==typeof e.model.value&&[].concat(e.model.regularExpressionPattern).some((function(t){return"string"==typeof t&&!new RegExp(t).test(e.model.value)||null!==t&&"object"==typeof t&&!t.test(e.model.value)}))}})}function L(e){c().keyCode.ENTER===e.keyCode&&e.stopPropagation()}function F(e,t){return!!t&&(e=e.toLowerCase(),t.replace(/ +/g," ").toLowerCase().split(" ").every((function(t){return e.includes(t)})))}var z=function(e,t){var n,r,o,a,l,u,s,_,C=(0,d.useId)();(0,d.useEffect)((function(){if(He||xe.selectionIsUnstable)if(Ge.editorIsActive){var e,t,n;null!=(e=ae.current)&&null!=(t=e.editor)&&t.selection?(ae.current.editor.textInput.focus(),G(ae.current),xe.selectionIsUnstable&&we(i()({},xe,{selectionIsUnstable:!1}))):null!=(n=de.current)&&n.selection&&(de.current.focus(!1),Y(de.current),xe.selectionIsUnstable&&we(i()({},xe,{selectionIsUnstable:!1})))}else se.current&&(se.current.setSelectionRange(Ge.cursor.start,Ge.cursor.end),xe.selectionIsUnstable&&we(i()({},xe,{selectionIsUnstable:!1})));if(se.current&&(Ge.valid?(se.current.removeAttribute("aria-errormessage"),se.current.removeAttribute("aria-invalid")):(se.current.setAttribute("aria-errormessage",C+"-error-message"),se.current.setAttribute("aria-invalid","true")),rt&&(se.current.setAttribute("role","searchbox"),se.current.setAttribute("aria-autocomplete",Ge.searchSelection?"inline":"list")),Ge.inputProps))for(var r=0,o=Object.entries(Ge.inputProps);r<o.length;r++){var a=o[r],l=a[0],u=a[1],s=c().stringCamelCaseToDelimited(l);"boolean"==typeof u?u?se.current.setAttribute(s,""):se.current.removeAttribute(s):se.current.setAttribute(s,String(u))}}));var O=function(e){return"clear_preset"===e?{icon:(0,I.jsx)(w.default,{in:!c().equals(Ge.value,Ge.default),children:N&&!N.isDummy&&k?(0,I.jsx)(N,{animation:k,reverse:!0}):(0,I.jsx)(v.IconButton,{icon:"clear"})}),onClick:function(e){e.preventDefault(),e.stopPropagation(),ee((0,T.parseValue)(Ge,Ge.default,W.transformer))},strategy:"component",tooltip:"Clear input"}:"password_preset"===e?(0,T.useMemorizedValue)({icon:N&&!N.isDummy&&q?(0,I.jsx)(N,{animation:q,reverse:!Ge.hidden}):(0,I.jsx)(v.IconButton,{icon:Ge.hidden?"lock_open":"lock"}),onClick:function(e){e.preventDefault(),e.stopPropagation(),Te((function(t){return void 0===t&&(t=Ge.hidden),Ge.hidden=!t,J(e),Ge.hidden}))},strategy:"component",tooltip:(Ge.hidden?"Show":"Hide")+" password"},Ge.hidden):e},A=function(e){var t,n;return"string"===e.type?e.hidden?"password":rt?"search":"text":null!==(t=null==(n=Ae[e.type])?void 0:n.type)&&void 0!==t?t:e.type},B=function(e){if("string"==typeof e){var t=c().stringEvaluate("`"+e+"`",i()({formatValue:function(e){return(0,T.formatValue)(Ge,e,Ae)}},Ge));return t.error?(console.warn("Given message template could not be proceed:",t.error),""):t.result}return""},z=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n=!0),"boolean"==typeof t?n?(0,I.jsx)(w.default,{in:t,children:e}):t?e:"":n?(0,I.jsx)(w.default,i()({},t,{children:e})):t.in?e:""},U=function(e){var t;if("object"==typeof e&&null!=(t=e)&&t.tooltip){var n=e.tooltip;delete(e=i()({},e)).tooltip;var r=i()({},e);e.strategy="component",e.icon=(0,I.jsx)(S.default,{options:n,children:(0,I.jsx)(f.Icon,{icon:r})})}return e},$=function(e,t,n){if(!Ge.value)return 0;var r="generic-input-selection-indicator",i=" "+r+'="###"';t.setAttribute(r,"###");var o=e.innerHTML.replace(/(<\/p>)/gi,"$1\n");t.removeAttribute(r);var a=o.indexOf(i)+i.length;return n+o.indexOf(">",a)+1-i.length},K=function(e,t){return"string"==typeof Ge.value||Ge.value?t>0?e+Ge.value.split("\n").slice(0,t).map((function(e){return 1+e.length})).reduce((function(e,t){return e+t})):e:0},H=function(e){var t={column:0,row:0};if("string"==typeof Ge.value)for(var n,r=P(Ge.value.split("\n"));!(n=r()).done;){var i=n.value;if(!(i.length<e)){t.column=e;break}e-=1+i.length,t.row+=1}return t},G=function(e){var t=e.editor.selection.getRange(),n=H(Ge.cursor.end);t.setEnd(n.row,n.column);var r=H(Ge.cursor.start);t.setStart(r.row,r.column),e.editor.selection.setRange(t)},Y=function(e){for(var t={end:"###generic-input-selection-indicator-end###",start:"###generic-input-selection-indicator-start###"},n={end:Ge.cursor.end+t.start.length,start:Ge.cursor.start},r=["start","end"],i=Ge.representation,o=0,a=r;o<a.length;o++){var l=a[o];i=i.substring(0,n[l])+t[l]+i.substring(n[l])}e.getBody().innerHTML=i;for(var u,s=document.createTreeWalker(e.getBody(),NodeFilter.SHOW_TEXT,null),d=e.dom.createRng(),m={};u=s.nextNode();)for(var p,f=P(r);!(p=f()).done;){var v=p.value;if(u.nodeValue){var g=u.nodeValue.indexOf(t[v]);g>-1&&(u.nodeValue=u.nodeValue.replace(t[v],""),m[v]=[u,g])}}for(var b=0,y=r;b<y.length;b++){var h=y[b];m[h]&&d["set"+c().stringCapitalize(h)].apply(d,m[h])}m.end&&m.start&&e.selection.setRng(d)},X=function(e){var t=(0,T.getConsolidatedProperties)(function(e){var t=(0,T.mapPropertiesIntoModel)(e,W.defaultProperties.model);return t.model.value=(0,T.parseValue)(t,t.model.value,Ae),V(t,t.model.state),t}(e));return t.selection||"boolean"!==t.type||(t.selection=[{label:"No",value:!1},{label:"Yes",value:!0}]),t.selectableEditor||"plain"===t.editor||(t.editorIsActive=!0),"string"!=typeof t.representation&&(t.representation=(0,T.formatValue)(t,t.value,Ae,!t.focused),t.focused&&t.representation!==t.value&&["password","text"].includes(A(t))&&(He=!0)),t},J=function(e){c().extend(!0,Ge,X(Ge)),(0,T.triggerCallbackIfExists)(Ge,"change",$e,Ge,e)},Q=function(e){e&&(e.preventDefault(),e.stopPropagation()),we((function(t){var n=t.editorIsActive;return Ge.editorIsActive=!n,J(e),(0,T.triggerCallbackIfExists)(Ge,"changeEditorIsActive",$e,Ge.editorIsActive,e,Ge),{editorIsActive:Ge.editorIsActive,selectionIsUnstable:!0}}))},Z=function(e){e&&(e.preventDefault(),e.stopPropagation()),Ne((function(t){return Ge.showDeclaration=!t,J(e),(0,T.triggerCallbackIfExists)(Ge,"changeShowDeclaration",$e,Ge.showDeclaration,e,Ge),Ge.showDeclaration}))},ee=function(e,t,n){if(void 0===n&&(n=-1),!Ge.disabled){var r;if(Pe(!0),null!==e&&"object"==typeof e){var o=e.target||e.detail;if(o)if("number"==typeof o.index){var a=o.index-(Ge.placeholder?1:0);Ge.value=a>=0&&a<Fe.length?Fe[a]:null}else Ge.value=void 0===o.value?null:o.value;else Ge.value=e}else Ge.value=e;var l=function(){return Ue((function(e){if(!Ke&&e.representation===Ge.representation&&!Ge.suggestionCreator&&-1===n)return e;var t=i()({},e,{representation:Ge.representation});if(!$e&&c().equals(e.value,Ge.value))return t;t.value=Ge.value;var o=!1;return e.modelState.pristine&&(Ge.dirty=!0,Ge.pristine=!1,o=!0),J(r),V(Ge,e.modelState)&&(o=!0),(0,T.triggerCallbackIfExists)(Ge,"changeValue",$e,Ge.value,r,Ge),o&&(t.modelState=Ge.model.state,(0,T.triggerCallbackIfExists)(Ge,"changeState",$e,Ge.model.state,r,Ge)),(ct||-1!==n)&&(0,T.triggerCallbackIfExists)(Ge,"select",$e,r,Ge),t}))};if(Ge.representation=-1!==n?tt[n]:"string"==typeof Ge.value?Ge.value:(0,T.formatValue)(Ge,Ge.value,Ae),rt)if(Ge.suggestionCreator){var u=new AbortController,s=function(e){if(!u.signal.aborted){if(Be((function(t){return t instanceof AbortController&&!t.signal.aborted&&t.abort(),e})),-1===n){var t=(0,T.getValueFromSelection)(Ge.representation,(0,T.normalizeSelection)(e));null!==t||Ge.searchSelection?Ge.value=t:Ge.value=(0,T.parseValue)(Ge,Ge.representation,Ae)}l()}},d=Ge.suggestionCreator({abortController:u,properties:Ge,query:Ge.representation});null!=d&&d.then?(Be((function(e){return e instanceof AbortController&&!e.signal.aborted&&e.abort(),u})),Ue((function(e){return i()({},e,{representation:Ge.representation})})),d.then(s,c().noop)):s(d)}else{if(-1===n){var m=(0,T.getValueFromSelection)(Ge.representation,De);null!==m||Ge.searchSelection?Ge.value=m:Ge.value=(0,T.parseValue)(Ge,Ge.representation,Ae)}l()}else Ge.value=(0,T.parseValue)(Ge,Ge.value,Ae),l()}},te=function(e){ie(e),(0,T.triggerCallbackIfExists)(Ge,"click",$e,e,Ge),oe(e)},ne=function(e){(0,T.triggerCallbackIfExists)(Ge,"focus",$e,e,Ge),oe(e)},re=function(e){e.keyCode&&(ie(e),(0,T.triggerCallbackIfExists)(Ge,"keyUp",$e,e,Ge))},ie=function(e){!function(e){var t,n,r,i,o,a,l,u=null==(t=ae.current)||null==(n=t.editor)||null==(r=n.selection)?void 0:r.getRange(),s=null==(i=de.current)||null==(o=i.selection)?void 0:o.getRng(),c=null==(a=se.current)?void 0:a.selectionEnd,d=null==(l=se.current)?void 0:l.selectionStart;if(u)ye({end:K(u.end.column,"number"==typeof u.end.row?u.end.row:"string"==typeof Ge.value?Ge.value.split("\n").length-1:0),start:K(u.start.column,"number"==typeof u.start.row?u.start.row:"string"==typeof Ge.value?Ge.value.split("\n").length-1:0)});else if(s)ye({end:$(de.current.getBody(),de.current.selection.getEnd(),s.endOffset),start:$(de.current.getBody(),de.current.selection.getStart(),s.startOffset)});else if("number"==typeof c&&"number"==typeof d){var m,p=1===(null==e||null==(m=e.key)?void 0:m.length)?1:"Backspace"===(null==e?void 0:e.key)&&Ge.representation.length>d?-1:0;ye({end:c+p,start:d+p})}}(e),(0,T.triggerCallbackIfExists)(Ge,"selectionChange",$e,e,Ge)},oe=function(e){return Ue((function(t){var n=!1;t.modelState.focused||(Ge.focused=!0,n=!0),t.modelState.untouched&&(Ge.touched=!0,Ge.untouched=!1,n=!0);var r=t;return n&&(J(e),r=i()({},t,{modelState:Ge.model.state}),(0,T.triggerCallbackIfExists)(Ge,"changeState",$e,Ge.model.state,e,Ge)),(0,T.triggerCallbackIfExists)(Ge,"touch",$e,e,Ge),r}))},ae=(0,d.useRef)(null),le=(0,d.useRef)(null),ue=(0,d.useRef)(null),se=(0,d.useRef)(null),ce=(0,d.useRef)(null),de=(0,d.useRef)(null),me=(0,d.useRef)(null),pe=(0,d.useRef)(null),fe=(0,d.useRef)(null),ve=(0,T.translateKnownSymbols)(e),ge=(0,d.useState)({end:0,start:0}),be=ge[0],ye=ge[1],he=(0,d.useState)({editorIsActive:!1,selectionIsUnstable:!1}),xe=he[0],we=he[1],je=(0,d.useState)(),Se=je[0],Te=je[1],_e=(0,d.useState)(!1),Ie=_e[0],Pe=_e[1],Ce=(0,d.useState)(!1),Oe=Ce[0],Ne=Ce[1],qe=(0,T.determineInitialValue)(ve,null==(n=W.defaultProperties.model)?void 0:n.default);qe instanceof Date&&(qe=qe.getTime()/1e3);var ke=c().extend(!0,c().copy(W.defaultProperties),ve),Ee=ke.type||(null==(r=ke.model)?void 0:r.type)||"string",Ae=ke.transformer?i()({},W.transformer,((o={})[Ee]=c().extend(!0,c().copy(W.transformer[Ee])||{},ke.transformer),o)):W.transformer,Re=(0,d.useState)(),Me=Re[0],Be=Re[1];(ke.selection||null!=(a=ke.model)&&a.selection)&&(Me=ke.selection||(null==(l=ke.model)?void 0:l.selection));var De=Me instanceof AbortController?[]:(0,T.normalizeSelection)(Me,ke.labels),Ve=Me instanceof AbortController?[[],[]]:(0,T.getLabelAndValues)(De),Le=Ve[0],Fe=Ve[1],ze=(0,d.useState)((function(){return{modelState:i()({},W.defaultModelState),representation:(0,T.determineInitialRepresentation)(ke,W.defaultProperties,qe,Ae,De),value:qe}})),We=ze[0],Ue=ze[1],$e=!ke.enforceUncontrolled&&(void 0!==(null==(u=ve.model)?void 0:u.value)||void 0!==ve.value)&&Boolean(ve.onChange||ve.onChangeValue),Ke=$e&&void 0!==ve.representation,He=!1;null!==ke.cursor&&"object"==typeof ke.cursor||(ke.cursor={}),void 0===ke.cursor.end&&(ke.cursor.end=be.end),void 0===ke.cursor.start&&(ke.cursor.start=be.start),void 0===ke.editorIsActive&&(ke.editorIsActive=xe.editorIsActive),void 0===ke.hidden&&(ke.hidden=Se),void 0===ke.representation&&(ke.representation=We.representation),void 0===ke.showDeclaration&&(ke.showDeclaration=Oe),(0,T.deriveMissingPropertiesFromState)(ke,We),void 0===ke.value?void 0===ke.representation&&void 0===ke.model.value&&(ke.representation=We.representation):Ke||ke.value===We.value||(ke.representation=void 0);var Ge=X(ke);void 0===Ge.hidden&&(Ge.hidden=null==(s=Ge.name)?void 0:s.startsWith("password")),c().equals(Ge.cursor,be)||ye(Ge.cursor),Ge.editorIsActive!==xe.editorIsActive&&we(i()({},xe,{editorIsActive:Ge.editorIsActive})),Ge.hidden!==Se&&Te(Ge.hidden),Ge.showDeclaration!==Oe&&Ne(Ge.showDeclaration);var Ye={modelState:Ge.model.state,representation:Ge.representation,value:Ge.value};($e||c().equals(Ge.value,We.value)&&Ge.representation===We.representation)&&c().equals(Ge.model.state,We.modelState)||Ue(Ye),$e&&(Ue=(0,T.wrapStateSetter)(Ue,Ye)),(0,d.useImperativeHandle)(t,(function(){for(var e,t={modelState:Ge.model.state},n=P(["cursor","editorIsActive","hidden","showDeclaration"]);!(e=n()).done;){var r=e.value;Object.prototype.hasOwnProperty.call(ve,r)||(t[r]=Ge[r])}return Ke||(t.representation=Ge.representation),$e||(t.value=Ge.value),{properties:Ge,references:{codeEditorReference:ae,codeEditorInputReference:le,foundationReference:ue,inputReference:se,richTextEditorInputReference:ce,richTextEditorInstance:de,richTextEditorReference:me,suggestionMenuAPIReference:pe,suggestionMenuFoundationReference:fe},state:t}}));var Xe={onBlur:function(e){return Ue((function(t){Pe(!1);var n=!1,r=!1;if(t.modelState.focused&&(Ge.focused=!1,n=!0,r=!0),t.modelState.visited||(Ge.visited=!0,n=!0,r=!0),!rt||Ge.suggestSelection){var i=(0,T.getValueFromSelection)(Ge.representation,De);null===i?(Ge.value=(0,T.parseValue)(Ge,Ge.value,Ae),Ge.representation=(0,T.formatValue)(Ge,Ge.value,Ae)):Ge.value=i}return c().equals(t.value,Ge.value)&&t.representation===Ge.representation||(n=!0),n&&J(e),c().equals(t.value,Ge.value)||(0,T.triggerCallbackIfExists)(Ge,"changeValue",$e,Ge.value,e,Ge),r&&(0,T.triggerCallbackIfExists)(Ge,"changeState",$e,Ge.model.state,e,Ge),(0,T.triggerCallbackIfExists)(Ge,"blur",$e,e,Ge),n?{modelState:Ge.model.state,representation:Ge.representation,value:Ge.value}:t}))},onFocus:function(e){Pe(!0),ne(e)},placeholder:Ge.placeholder},Je={disabled:Ge.disabled,helpText:{children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(w.default,{in:Ge.selectableEditor&&"string"===Ge.type&&"plain"!==Ge.editor,children:(0,I.jsx)(v.IconButton,{icon:{icon:Ge.editorIsActive?"subject":Ge.editor.startsWith("code")?"code":"text_format",onClick:Q}})}),(0,I.jsx)(w.default,{in:Boolean(Ge.declaration),children:(0,I.jsx)(v.IconButton,{icon:{icon:"more_"+(Ge.showDeclaration?"vert":"horiz"),onClick:Z}})}),(0,I.jsx)(w.default,{in:Ge.showDeclaration,children:Ge.declaration}),(0,I.jsx)(w.default,{in:!Ge.showDeclaration&&Ge.invalid&&(Ge.showInitialValidationState||Ge.visited),children:(0,I.jsx)(h.Theme,{use:"error",wrap:!0,children:(0,I.jsx)("span",{id:C+"-error-message",children:B(Ge.invalidMaximum&&Ge.maximumText||Ge.invalidMaximumLength&&Ge.maximumLengthText||Ge.invalidMinimum&&Ge.minimumText||Ge.invalidMinimumLength&&Ge.minimumLengthText||Ge.invalidInvertedPattern&&Ge.invertedPatternText||Ge.invalidPattern&&Ge.patternText||Ge.invalidRequired&&Ge.requiredText)})})})]}),persistent:Boolean(Ge.declaration)},invalid:Ge.showInitialValidationState&&Ge.invalid,label:Ge.description||Ge.name,outlined:Ge.outlined,required:Ge.required};Ge.icon&&(Je.icon=U(O(Ge.icon)));var Qe=i()({},D,{content_style:Ge.disabled?"body {opacity: .38}":"",placeholder:Ge.placeholder,readonly:Boolean(Ge.disabled),setup:function(e){de.current=e,de.current.on("init",(function(){de.current&&(M=!0,Ge.editorIsActive&&xe.selectionIsUnstable&&(de.current.focus(!1),Y(de.current),we(i()({},xe,{selectionIsUnstable:!1}))))}))}});Ge.editor.endsWith("raw)")?(Qe.toolbar1="cut copy paste | undo redo removeformat | code | fullscreen",delete Qe.toolbar2):Ge.editor.endsWith("simple)")?(Qe.toolbar1="cut copy paste | undo redo removeformat | bold italic underline strikethrough subscript superscript | fullscreen",delete Qe.toolbar2):Ge.editor.endsWith("normal)")&&(Qe.toolbar1="cut copy paste | undo redo removeformat | styleselect formatselect | searchreplace visualblocks fullscreen code");var Ze=!Ge.selection&&"string"===Ge.type&&Ge.editorIsActive&&(Ge.editor.startsWith("code")||Ge.editor.startsWith("richtext(")),et=[],tt=[],nt=[],rt=Boolean(Ge.suggestionCreator||Le.length&&(Ge.searchSelection||Ge.suggestSelection));if(rt&&Le.length){Ge.suggestSelection=!Ge.searchSelection;for(var it,ot=0,at=P(Le);!(it=at()).done;){var lt=it.value;if(c().isFunction(Ge.children)){var ut=Ge.children({index:ot,normalizedSelection:De,properties:Ge,query:Ge.representation,suggestion:lt,value:Fe[ot]});ut&&(et.push((0,I.jsx)(g.MenuItem,{className:E["generic-input__suggestions__suggestion"],children:ut},ot)),tt.push(lt),nt.push(Fe[ot]))}else if(!Ge.representation||Ge.suggestionCreator||F(lt,Ge.representation)){var st;et.push((0,I.jsx)(g.MenuItem,{className:E["generic-input__suggestions__suggestion"],children:c().stringMark(lt,(null==(st=Ge.representation)?void 0:st.split(" "))||"",(function(e){return(""+e).toLowerCase()}),(function(e){return(0,I.jsx)("span",{className:E["generic-input__suggestions__suggestion__mark"],children:e})}),null).map((function(e,t){return(0,I.jsx)("span",{children:e},t)}))},ot)),tt.push(lt),nt.push(Fe[ot])}ot+=1}}var ct=(Boolean(De)||Boolean(Ge.labels))&&!rt,dt={};return"number"===Ge.type?(dt.step=Ge.step,Ge.maximum!==1/0&&(dt.max=Ge.maximum),Ge.minimum!==-1/0&&(dt.min=Ge.minimum)):"string"===Ge.type?(Ge.maximumLength>=0&&Ge.maximumLength!==1/0&&(dt.maxLength=Ge.maximumLength),Ge.minimumLength>0&&(dt.minLength=Ge.minimumLength),"plain"!==Ge.editor&&(dt.rows=Ge.rows)):["date","datetime-local","time","time-local"].includes(Ge.type)&&(dt.step=Ge.step,Ge.maximum!==1/0&&(dt.max=(0,T.formatValue)(Ge,Ge.maximum,Ae)),Ge.minimum!==-1/0&&(dt.min=(0,T.formatValue)(Ge,Ge.minimum,Ae))),(0,I.jsx)(j.default,{strict:W.strict,themeConfiguration:Ge.themeConfiguration,tooltip:Ge.tooltip,children:(0,I.jsxs)("div",i()({className:[E["generic-input"]].concat(Ze?E["generic-input--custom"]:[],null!==(_=Ge.className)&&void 0!==_?_:[]).join(" "),style:Ge.styles},rt?{role:"search"}:{},{children:[z((0,I.jsx)(b.Select,i()({},Xe,Je,{enhanced:!0,foundationRef:ue,inputRef:se,onChange:ee,options:De,rootProps:i()({name:Ge.name,onClick:te},Ge.rootProps),value:""+Ge.value},Ge.inputProperties)),ct),z([(0,I.jsx)(p.FormField,{className:["mdc-text-field"].concat(Ge.disabled?"mdc-text-field--disabled":[],"mdc-text-field--textarea").join(" "),onKeyDown:L,children:(0,I.jsxs)("label",{children:[(0,I.jsx)("span",{className:[E["generic-input__editor__label"]].concat("mdc-floating-label","mdc-floating-label--float-above").join(" "),children:(0,I.jsx)(h.Theme,{use:Ge.invalid&&(Ge.showInitialValidationState||Ge.visited)?"error":void 0,children:(Ge.description||Ge.name)+(Ge.required?"*":"")})}),Ge.editor.startsWith("code")?(0,I.jsx)(d.Suspense,{fallback:(0,I.jsx)(m.CircularProgress,{size:"large"}),children:(0,I.jsx)(R,i()({},Xe,{className:"mdc-text-field__input",mode:Ge.editor.startsWith("code(")&&Ge.editor.endsWith(")")?Ge.editor.substring("code(".length,Ge.editor.length-1):"javascript",name:Ge.name,onChange:ee,onCursorChange:ie,onSelectionChange:ie,ref:function(e){var t,n,r;ae.current=e,null!=(t=ae.current)&&null!=(n=t.editor)&&null!=(r=n.container)&&r.querySelector("textarea")&&(le.current=ae.current.editor.container.querySelector("textarea")),ae.current&&Ge.editorIsActive&&xe.selectionIsUnstable&&(ae.current.editor.textInput.focus(),G(ae.current),we(i()({},xe,{selectionIsUnstable:!1})))},setOptions:{maxLines:Ge.rows,minLines:Ge.rows,readOnly:Ge.disabled,tabSize:4,useWorker:!1},theme:"github",value:Ge.representation},Ge.inputProperties))}):(0,I.jsx)(x.Editor,i()({},Xe,{disabled:Ge.disabled,init:Qe,onClick:te,onEditorChange:ee,onKeyUp:re,ref:function(e){me.current=e},textareaName:Ge.name,tinymceScriptSrc:D.base_url+"tinymce.min.js",value:Ge.representation},Ge.inputProperties))]})},"advanced-editor-form-field"),(0,I.jsx)("div",{className:"mdc-text-field-helper-line",children:(0,I.jsx)("p",{className:"mdc-text-field-helper-text mdc-text-field-helper-text--persistent",id:C+"-error-message",children:Je.helpText.children})},"advanced-editor-helper-line")],Ze,M||Ge.editor.startsWith("code")),z((0,I.jsxs)("div",{children:[rt?(0,I.jsx)(g.MenuSurfaceAnchor,{onKeyDown:L,children:Me instanceof AbortController?(0,I.jsx)(g.MenuSurface,{anchorCorner:"bottomLeft",className:E["generic-input__suggestions"]+" "+E["generic-input__suggestions--pending"],open:!0,children:(0,I.jsx)(m.CircularProgress,{size:"large"})}):(0,I.jsx)(g.Menu,{anchorCorner:"bottomLeft",apiRef:function(e){pe.current=e},className:E["generic-input__suggestions"],focusOnOpen:!1,foundationRef:fe,onFocus:ne,onSelect:function(e){ee(nt[e.detail.index],void 0,e.detail.index),Pe(!1)},open:Boolean(tt.length)&&Ie&&!(1===tt.length&&tt[0]===Ge.representation),children:et})}):"",(0,I.jsx)(y.TextField,i()({},Xe,Je,dt,{align:Ge.align,characterCount:"number"==typeof Ge.maximumLength&&!isNaN(Ge.maximumLength)&&Ge.maximumLength>=0,foundationRef:ue,inputRef:se,onChange:ee,ripple:Ge.ripple,rootProps:i()({name:Ge.name,onClick:te,onKeyDown:function(e){var t;rt&&c().keyCode.DOWN===e.keyCode&&(null==(t=pe.current)||t.focusItemAtIndex(0)),"string"===Ge.type&&"plain"!==Ge.editor&&L(e),(0,T.triggerCallbackIfExists)(Ge,"keyDown",$e,e,Ge)},onKeyUp:re},Ge.rootProps),textarea:"string"===Ge.type&&"plain"!==Ge.editor,trailingIcon:U(O(Ge.trailingIcon)),type:A(Ge),value:Ge.representation},Ge.inputProperties))]}),!(Ze||ct),M||Ge.editor.startsWith("code"))]}))})};z.displayName="GenericInput";var W=(0,d.memo)((0,d.forwardRef)(z));W.wrapped=z,W.webComponentAdapterWrapped="react",W.defaultModelState=_.Bg,W.defaultProperties=i()({},_.Ko,{cursor:void 0,model:i()({},_.Ko.model,{state:void 0,value:void 0}),representation:void 0,value:void 0}),W.locales=c().locales,W.propTypes=_.rV,W.renderProperties=_.au,W.strict=!1,W.transformer={boolean:{parse:function(e){var t;return"boolean"==typeof e?e:null===(t=new Map([["false",!1],["true",!0],[0,!1],[1,!0]]).get(e))||void 0===t||t},type:"text"},currency:{format:{final:{options:{currency:"USD"},transform:function(e,t,n){var r,o,a,l,u,s=null!==(r=null==(o=n.currency.format)||null==(a=o.final.options)?void 0:a.currency)&&void 0!==r?r:"USD";return e===1/0?"Infinity "+s:e===-1/0?"- Infinity "+s:isNaN(e)?"unknown":new Intl.NumberFormat(W.locales,i()({style:"currency"},null!==(l=null==(u=n.currency.format)?void 0:u.final.options)&&void 0!==l?l:{})).format(e)}}},parse:function(e,t,n){return n.float.parse?n.float.parse(e,t,n):NaN},type:"text"},date:{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n.date.parse)e=n.date.parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o.substring(0,o.indexOf("T"))}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e);return isNaN(n)?0:n}return t/1e3}},"datetime-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n["datetime-local"].parse)e=n["datetime-local"].parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o.substring(0,o.length-1)}}},parse:function(e,t,n){if(n.date.parse)return n.date.parse(e,t,n);if(e instanceof Date)return e.getTime()/1e3;var r=Date.parse(e);if(isNaN(r)){var i=parseFloat(e);return isNaN(i)?0:i}return r/1e3}},time:{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n.time.parse)e=n.time.parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o=o.substring(o.indexOf("T")+1,o.length-1),t.step&&t.step>=60&&t.step%60==0?o.substring(0,o.lastIndexOf(":")):o}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,(function(e,t,n,r,i,o){return String(parseInt(t)*Math.pow(60,2)+60*parseInt(n)+(r?parseFloat(i):0))})));return isNaN(n)?0:n}return t/1e3}},"time-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n["time-local"].parse)e=n["time-local"].parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)),a=o.getHours(),l=o.getMinutes(),u=(a<10?"0":"")+String(a)+":"+(l<10?"0":"")+String(l);if(!(t.step&&t.step>=60&&t.step%60==0)){var s=o.getSeconds();return u+":"+(s<10?"0":"")+String(s)}return u}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,(function(e,t,n,r,i,o){var a=new Date(0);return a.setHours(parseInt(t)),a.setMinutes(parseInt(n)),r&&a.setSeconds(parseInt(i)),String(a.getTime()/1e3)})));return isNaN(n)?0:n}return t/1e3},type:"time"},float:{format:{final:{transform:function(e,t,n){return n.float.format?e===1/0?"Infinity":e===-1/0?"- Infinity":new Intl.NumberFormat(W.locales,n.float.format.final.options||{}).format(e):""+e}}},parse:function(e,t){return"string"==typeof e&&(e=parseFloat("de-DE"===W.locales[0]?e.replace(/\./g,"").replace(/,/g,"."):e)),"number"==typeof e&&("number"==typeof t.minimum&&t.minimum>=0&&e<0||"number"==typeof t.maximum&&t.maximum<=0&&e>0)&&(e*=-1),e},type:"text"},integer:{format:{final:{transform:function(e,t,n){var r,o;return new Intl.NumberFormat(W.locales,i()({maximumFractionDigits:0},null!==(r=null==(o=n.integer.format)?void 0:o.final.options)&&void 0!==r?r:{})).format(e)}}},parse:function(e,t){return"string"==typeof e&&(e=parseInt("de-DE"===W.locales[0]?e.replace(/[,.]/g,""):e)),"number"==typeof e&&("number"==typeof t.minimum&&t.minimum>=0&&e<0||"number"==typeof t.maximum&&t.maximum<=0&&e>0)&&(e*=-1),e},type:"text"},number:{parse:function(e){return"number"==typeof e?e:parseInt(e)}}};var U=W},function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=o},function(e){e.exports=l},function(e){e.exports=u},function(e){e.exports=j},function(e){e.exports=a},function(e){e.exports=s},function(e){e.exports=c},function(e){e.exports=d},function(e){e.exports=v},function(e){e.exports=g},function(e){e.exports=w},function(e,t,n){n.d(t,{Bg:function(){return h},Ko:function(){return w},O:function(){return S},Uz:function(){return P},W2:function(){return I},au:function(){return y},q:function(){return T},rV:function(){return b}});var r=n(1),i=n.n(r),o=n(3),a=n.n(o),l=n(5),u={declaration:l.string,default:l.any,description:l.string,name:l.string,selection:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.number,l.string])),l.number,(0,l.objectOf)((0,l.oneOfType)([l.number,l.string])),l.string])),(0,l.objectOf)((0,l.oneOfType)([l.number,l.string]))]),type:l.string,value:l.any},s={dirty:(0,l.oneOfType)([l.boolean,l.symbol]),pristine:(0,l.oneOfType)([l.boolean,l.symbol]),touched:(0,l.oneOfType)([l.boolean,l.symbol]),untouched:(0,l.oneOfType)([l.boolean,l.symbol]),focused:(0,l.oneOfType)([l.boolean,l.symbol]),visited:(0,l.oneOfType)([l.boolean,l.symbol]),invalid:(0,l.oneOfType)([l.boolean,l.symbol]),invalidRequired:(0,l.oneOfType)([l.boolean,l.symbol]),valid:(0,l.oneOfType)([l.boolean,l.symbol])},c=i()({},u,{emptyEqualsNull:l.boolean,trim:l.boolean,invertedRegularExpressionPattern:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.object,l.string])),l.object,l.string]),regularExpressionPattern:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.object,l.string])),l.object,l.string]),maximum:(0,l.oneOfType)([l.number,l.string]),minimum:(0,l.oneOfType)([l.number,l.string]),maximumLength:l.number,minimumLength:l.number,mutable:l.boolean,writable:l.boolean,state:(0,l.shape)(s)}),d=i()({},u,s,{className:l.string,disabled:l.boolean,enforceUncontrolled:l.boolean,initialValue:l.any,inputProperties:l.object,model:(0,l.shape)(c),onChange:l.func,onChangeValue:l.func,onChangeShowDeclaration:l.func,onChangeState:l.func,onClick:l.func,onFocus:l.func,onTouch:l.func,required:l.boolean,requiredText:l.string,ripple:(0,l.oneOfType)([l.boolean,l.object]),rootProps:l.object,showDeclaration:(0,l.oneOfType)([l.boolean,l.symbol]),showInitialValidationState:l.boolean,styles:l.object,themeConfiguration:l.object,tooltip:l.any}),m={dirty:!1,focused:!1,invalid:!1,invalidRequired:!1,pristine:!0,touched:!1,untouched:!0,valid:!0,visited:!1},p={declaration:"",default:null,description:"",emptyEqualsNull:!0,invertedRegularExpressionPattern:null,maximum:1/0,maximumLength:-1,minimum:-1/0,minimumLength:0,mutable:!0,name:"NO_NAME_DEFINED",nullable:!0,regularExpressionPattern:null,state:i()({},m),trim:!0,type:"string",writable:!0},f={enforceUncontrolled:!1,model:i()({},p),showDeclaration:void 0,showInitialValidationState:!1,requiredText:"Please fill this field."},v=(i()({},d,s,{checked:l.boolean,id:l.string}),i()({},p,{default:!1,type:"boolean",value:!1})),g=(i()({},f,{default:!1,model:i()({},v),requiredText:"Please check this field."}),i()({},s,{invalidMaximum:(0,l.oneOfType)([l.boolean,l.symbol]),invalidMinimum:(0,l.oneOfType)([l.boolean,l.symbol]),invalidMaximumLength:(0,l.oneOfType)([l.boolean,l.symbol]),invalidMinimumLength:(0,l.oneOfType)([l.boolean,l.symbol]),invalidInvertedPattern:(0,l.oneOfType)([l.boolean,l.symbol]),invalidPattern:(0,l.oneOfType)([l.boolean,l.symbol])})),b=i()({},d,g,{align:l.string,children:l.func,cursor:(0,l.oneOfType)([(0,l.shape)({end:l.number.isRequired,start:l.number.isRequired}),l.symbol]),editor:l.string,editorIsActive:(0,l.oneOfType)([l.boolean,l.symbol]),hidden:(0,l.oneOfType)([l.boolean,l.symbol]),icon:(0,l.oneOfType)([l.string,l.object]),inputProps:l.object,invertedPattern:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.object,l.string])),l.object,l.string]),invertedPatternText:l.string,labels:(0,l.oneOfType)([(0,l.arrayOf)((0,l.arrayOf)(l.string)),(0,l.arrayOf)(l.string),l.object]),maximum:(0,l.oneOfType)([l.number,l.string]),maximumLengthText:l.string,maximumText:l.string,minimum:(0,l.oneOfType)([l.number,l.string]),minimumLengthText:l.string,minimumText:l.string,onBlur:l.func,onChangeEditorIsActive:l.func,onKeyDown:l.func,onKeyUp:l.func,onSelect:l.func,onSelectionChange:l.func,outlined:l.boolean,pattern:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.object,l.string])),l.object,l.string]),patternText:l.string,placeholder:l.string,representation:(0,l.oneOfType)([l.string,l.symbol]),rows:l.number,searchSelection:l.boolean,selectableEditor:l.boolean,step:l.number,suggestionCreator:l.func,suggestSelection:l.boolean,trailingIcon:l.any,transformer:l.object}),y=["children","suggestionCreator"],h=i()({},m,{invalidMaximum:!1,invalidMinimum:!1,invalidMaximumLength:!1,invalidMinimumLength:!1,invalidInvertedPattern:!1,invalidPattern:!1}),x=i()({},p,{state:h}),w=i()({},f,{cursor:{end:0,start:0},editor:"plain",invertedPatternText:'Your string should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: "${[].concat(invertedPattern).join("\\", \\"")}".',maximumLengthText:"Please type less or equal than ${maximumLength} symbols.",maximumText:"Please type less or equal than ${formatValue(maximum)}.",minimumLengthText:"Please type at least or equal ${minimumLength} symbols.",minimumText:"Please type at least or equal ${formatValue(minimum)}.",model:i()({},x),patternText:'Your string have to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: "${[].concat(pattern).join("\\", \\"")}".',rows:4,searchSelection:!1,selectableEditor:!1,step:1,suggestSelection:!1}),j=i()({},s,{invalidContentTypePattern:(0,l.oneOfType)([l.boolean,l.symbol]),invalidMaximumSize:(0,l.oneOfType)([l.boolean,l.symbol]),invalidMinimumSize:(0,l.oneOfType)([l.boolean,l.symbol]),invalidName:(0,l.oneOfType)([l.boolean,l.symbol])}),S=i()({},d,j,{children:l.func,contentTypePatternText:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.object,l.string])),l.object,l.string]),invertedContentTypePatternText:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.object,l.string])),l.object,l.string]),deleteButton:(0,l.oneOfType)([l.object,l.string]),downloadButton:(0,l.oneOfType)([l.object,l.string]),editButton:(0,l.oneOfType)([l.object,l.string]),newButton:(0,l.oneOfType)([l.object,l.string]),encoding:l.string,generateFileNameInputProperties:l.func,maximumSizeText:l.string,minimumSizeText:l.string,onBlur:l.func,outlined:l.boolean}),T=i()({},m,{invalidContentTypePattern:!1,invalidMaximumSize:!1,invalidMinimumSize:!1,invalidName:!1}),_=i()({},p,{contentTypeRegularExpressionPattern:/^.+\/.+$/,invertedContentTypeRegularExpressionPattern:null,fileName:i()({},x,{maximumLength:1024,name:"Name",regularExpressionPattern:/^[^/]+$/}),maximumSize:1/0,minimumSize:0,state:T}),I=i()({},w,{emptyEqualsNull:!1,invertedPatternText:'Your file\'s name should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: ""${[].concat(invertedPattern).join("\\", \\"")}".',patternText:'Your file\'s name has to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: ""${[].concat(pattern).join("\\", \\"")}".',required:!0});delete I.model;var P=i()({},f,{contentTypePatternText:'Your file\'s mime-type has to match the regular expression${[].concat(contentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(contentTypePattern).join("\\", \\"")}".',invertedContentTypePatternText:'Your file\'s mime-type should not match the regular expression${[].concat(invertedContentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(invertedContentTypePattern).join("\\", \\"")}".',deleteButton:"delete",downloadButton:"download",editButton:"edit",newButton:"new",encoding:"utf-8",generateFileNameInputProperties:a().identity,maximumSizeText:"Please provide a file with less or equal size than ${maximumSize} byte.",minimumSizeText:"Please provide a file with more or equal size than ${maximumSize} byte.",media:{sixteenByNine:!0},model:i()({},_),sourceToBlobOptions:{endings:"transparent",type:"text/plain"}}),C=(i()({},d,g,{children:l.func,createItem:l.func,createPrototype:l.func,maximumNumber:l.number,minimumNumber:l.number}),i()({},p,{state:i()({},p.state,{invalidMaximumNumber:!1,invalidMinimumNumber:!1}),maximumNumber:1/0,minimumNumber:0,type:"string[]"}));i()({},f,{addIcon:{icon:"add"},removeIcon:{icon:"clear"},createItem:function(e){return e.item},createPrototype:function(e){return e.item},model:i()({},C)}),i()({},b,{value:(0,l.shape)({end:(0,l.oneOfType)([l.number,(0,l.shape)(b)]),start:(0,l.oneOfType)([l.number,(0,l.shape)(b)])})}),i()({},m),i()({},x,{description:"End",name:"end"}),i()({},x,{description:"Start",name:"start"})},,,function(e){e.exports=b},function(e){e.exports=i}],P={};function C(e){var t=P[e];if(void 0!==t)return t.exports;var n=P[e]={exports:{}};return I[e](n,n.exports,C),n.exports}C.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return C.d(t,{a:t}),t},_=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},C.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);C.r(n);var r={};T=T||[null,_({}),_([]),_(_)];for(var i=2&t&&e;"object"==typeof i&&!~T.indexOf(i);i=_(i))Object.getOwnPropertyNames(i).forEach((function(t){r[t]=function(){return e[t]}}));return r.default=function(){return e},C.d(n,r),n},C.d=function(e,t){for(var n in t)C.o(t,n)&&!C.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},C.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},C.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var O={};return function(){C.r(O),C.d(O,{FileInput:function(){return q},FileInputInner:function(){return N},default:function(){return k},determineRepresentationType:function(){return _},determineValidationState:function(){return I},preserveStaticFileBaseNameInputGenerator:function(){return T},readBinaryDataIntoText:function(){return P}});var e=C(16),t=C.n(e),n=C(1),r=C.n(n),i=C(17),o=C.n(i),a=C(32),l=C(3),u=C.n(l),s=C(2),c=C(33),d=C(18),m=C(4),p=C(9),f=C(15),v=C(7),g=C(8),b=C(29),y=C(0),h={"file-input":"file-input","mdc-typography--headline6":"mdc-typography--headline6","mdc-typography--subtitle2":"mdc-typography--subtitle2","file-input__download":"file-input__download","file-input__iframe-wrapper":"file-input__iframe-wrapper","file-input__text-representation":"file-input__text-representation","file-input__iframe-wrapper--padding":"file-input__iframe-wrapper--padding","file-input__native":"file-input__native"},x=new RegExp("^image\\/(?:p?jpe?g|png|svg(?:\\+xml)?|vnd\\.microsoft\\.icon|gif|tiff|webp|vnd\\.wap\\.wbmp|x-(?:icon|jng|ms-bmp))$","i"),w=new RegExp("^(?:application\\/xml)|(?:text\\/(?:plain|x-ndpb[wy]html|(?:x-)?csv|x?html?|xml))$","i"),j=/^text\/plain$/i,S=new RegExp("^video\\/(?:(?:x-)?(?:x-)?webm|3gpp|mp2t|mp4|mpeg|quicktime|(?:x-)?flv|(?:x-)?m4v|(?:x-)mng|x-ms-as|x-ms-wmv|x-msvideo)|(?:application\\/(?:x-)?shockwave-flash)$","i"),T=function(e,t){var n=t.name,i=t.value.name;return r()({},e,{disabled:!0,value:n+(null!=i&&i.includes(".")?i.substring(i.lastIndexOf(".")):"")})},_=function(e){return e=e.replace(/; *charset=.+$/,""),w.test(e)?j.test(e)?"renderableText":"text":x.test(e)?"image":S.test(e)?"video":"binary"},I=function(e,t,n){return(0,g.determineValidationState)(e,n,{invalidMaximumSize:function(){var t,n;return"number"==typeof e.model.maximumSize&&e.model.maximumSize<((null==(t=e.model.value)||null==(n=t.blob)?void 0:n.size)||0)},invalidMinimumSize:function(){var t,n;return"number"==typeof e.model.minimumSize&&e.model.minimumSize>((null==(t=e.model.value)||null==(n=t.blob)?void 0:n.size)||0)},invalidName:function(){return t},invalidContentTypePattern:function(){var t,n;return"string"==typeof(null==(t=e.model.value)||null==(n=t.blob)?void 0:n.type)&&[].concat(e.model.contentTypeRegularExpressionPattern).some((function(t){return"string"==typeof t&&!new RegExp(t).test(e.model.value.blob.type)||null!==t&&"object"==typeof t&&!t.test(e.model.value.blob.type)}))},invalidInvertedContentTypePattern:function(){var t,n;return"string"==typeof(null==(t=e.model.value)||null==(n=t.blob)?void 0:n.type)&&[].concat(e.model.invertedContentTypeRegularExpressionPattern).some((function(t){return"string"==typeof t&&new RegExp(t).test(e.model.value.blob.type)||null!==t&&"object"==typeof t&&t.test(e.model.value.blob.type)}))}})},P=function(e,t){return void 0===t&&(t="utf-8"),new Promise((function(n,r){var i=new FileReader;i.onload=function(e){var r=e.target.result;r.length&&t.endsWith("-sig")&&65279===r.charCodeAt(0)&&(r=r.slice(1)),r=r.replace(/\r\n/g,"\n"),n(r)},i.onabort=function(){return r(new Error("abort"))},i.onerror=function(){return r(new Error)},i.readAsText(e,t.endsWith("-sig")?t.substring(0,t.length-"-sig".length):t)}))},N=function(e,n){var i,l,x,j,S,T,C,O,N,k=function(e){var t=(0,g.mapPropertiesIntoModel)(e,q.defaultProperties.model);return I(t,!1,t.model.state),(0,g.getConsolidatedProperties)(t)},E=function(e){var t;null!=(t=V.current)&&t.properties&&(G.model.fileName=V.current.properties.model);var n=k(G);delete G.model.value,delete G.value,G.styles=u().copy(G.styles),u().extend(!0,G,n),(0,g.triggerCallbackIfExists)(G,"change",H,G,e)},A=function e(t,n,i,o){if(void 0===o&&(o=!1),G.model.mutable&&G.model.writable){if(t&&D.current&&t.target===D.current){var a;if(null==(a=(n=t).target.files)||!a.length)return;var l,s=n.target.files[0];G.value={blob:s,name:s.name},G.value.name=(null==(l=G.generateFileNameInputProperties(r()({disabled:G.disabled,value:s.name},b.W2,{model:G.model.fileName,onChangeValue:e,default:G.value.name}),G))?void 0:l.value)||s.name}K((function(e){var i,a;if(null===t?G.value=t:"string"==typeof t?G.value=r()({},e.value,{name:t}):"string"!=typeof t.source&&"string"!=typeof t.url||(G.value=o?r()({},e.value,t):t),u().equals(e.value,G.value))return e;var l=!1,s=r()({},e,{value:G.value});return e.modelState.pristine&&(G.dirty=!0,G.pristine=!1,l=!0),E(n),I(G,(null==(i=V.current)||null==(a=i.properties)?void 0:a.invalid)||!1,e.modelState)&&(l=!0),(0,g.triggerCallbackIfExists)(G,"changeValue",H,G.value,n,G),l&&(s.modelState=G.model.state,(0,g.triggerCallbackIfExists)(G,"changeState",H,G.model.state,n,G)),o&&(s.attachBlobProperty=!0),s}))}},R=function(e){return K((function(t){var n=!1;t.modelState.focused||(G.focused=!0,n=!0),t.modelState.untouched&&(G.touched=!0,G.untouched=!1,n=!0);var i=t;return n&&(E(e),i=r()({},t,{modelState:G.model.state}),(0,g.triggerCallbackIfExists)(G,"changeState",H,G.model.state,e,G)),(0,g.triggerCallbackIfExists)(G,"touch",H,e,G),i}))},M=(0,s.useRef)(null),B=(0,s.useRef)(null),D=(0,s.useRef)(null),V=(0,s.useRef)(null),L=(0,s.useRef)(null),F=(0,g.translateKnownSymbols)(e),z=(0,g.determineInitialValue)(F,q.defaultProperties.model.default),W=u().extend(!0,u().copy(q.defaultProperties),F),U=(0,s.useState)({attachBlobProperty:!1,modelState:r()({},q.defaultModelState),value:z}),$=U[0],K=U[1],H=!W.enforceUncontrolled&&(void 0!==(null==(i=F.model)?void 0:i.value)||void 0!==F.value)&&Boolean(F.onChange||F.onChangeValue);(0,g.deriveMissingPropertiesFromState)(W,$);var G=k(W);$.attachBlobProperty&&$.value&&(G.value=u().extend(!0,$.value,G.value));var Y={attachBlobProperty:!1,modelState:G.model.state,value:G.value};!$.attachBlobProperty&&(H||u().equals(G.value,$.value))&&u().equals(G.model.state,$.modelState)||K(Y),H&&(K=(0,g.wrapStateSetter)(K,Y)),(0,s.useImperativeHandle)(n,(function(){return{properties:G,references:{deleteButtonReference:M,downloadLinkReference:B,fileInputReference:D,nameInputReference:V,uploadButtonReference:L},state:r()({modelState:G.model.state},H?{}:{value:G.value})}})),(0,s.useEffect)((function(){t()(o().mark((function e(){var t,n,r,i,l,u;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null,!(null!=(t=G.value)&&t.blob&&G.value.blob instanceof Blob)||G.value.source){e.next=18;break}if(!w.test(G.value.blob.type)){e.next=8;break}return e.next=5,P(G.value.blob);case 5:e.t0=e.sent,e.next=16;break;case 8:if("undefined"!=typeof Blob){e.next=12;break}e.t1=G.value.toString("base64"),e.next=15;break;case 12:return e.next=14,(0,a.blobToBase64String)(G.value.blob);case 14:e.t1=e.sent;case 15:e.t0=e.t1;case 16:e.t2=e.t0,r={source:e.t2};case 18:null!=(n=G.value)&&n.source&&(G.value.blob||(null!=(i=G.value.url)&&i.startsWith("data:")?r={blob:(0,a.dataURLToBlob)(G.value.source)}:G.sourceToBlobOptions&&(r={blob:new Blob([G.value.source],G.sourceToBlobOptions)})),!G.value.url&&null!=(l=G.value.blob)&&l.type&&(u=w.test(G.value.blob.type)?btoa(G.value.source):G.value.source,r={url:"data:"+G.value.blob.type+";base64,"+u})),r&&A(r,void 0,0,!0);case 20:case"end":return e.stop()}}),e)})))().catch(console.error)}));var X=null!=(l=G.value)&&null!=(x=l.blob)&&x.type?_(G.value.blob.type):"binary",J=G.invalid&&(G.showInitialValidationState||G.visited);return(0,y.jsx)(v.WrapConfigurations,{strict:q.strict,themeConfiguration:G.themeConfiguration,tooltip:G.tooltip,children:(0,y.jsxs)(c.Card,{className:[h["file-input"]].concat(null!==(j=G.className)&&void 0!==j?j:[]).join(" "),onBlur:function(e){return K((function(t){var n=!1;return t.modelState.focused&&(G.focused=!1,n=!0),t.modelState.visited||(G.visited=!0,n=!0),n&&(E(e),(0,g.triggerCallbackIfExists)(G,"changeState",H,G.model.state,e,G)),(0,g.triggerCallbackIfExists)(G,"blur",H,e,G),n?r()({},t,{modelState:G.model.state}):t}))},onClick:function(e){(0,g.triggerCallbackIfExists)(G,"click",H,e,G),R(e)},onFocus:function(e){(0,g.triggerCallbackIfExists)(G,"focus",H,e,G),R(e)},style:G.styles,children:[(0,y.jsxs)(c.CardPrimaryAction,{children:[null!=(S=G.value)&&S.url?"image"===X?(0,y.jsx)(c.CardMedia,r()({},G.media,{style:{backgroundImage:"url("+G.value.url+")"}})):"video"===X?(0,y.jsx)("video",{autoPlay:!0,loop:!0,muted:!0,children:(0,y.jsx)("source",{src:G.value.url,type:G.value.blob.type})}):"renderableText"===X?(0,y.jsx)("div",{className:[h["file-input__iframe-wrapper"]].concat(["text/html","text/plain"].includes(G.value.blob.type)?h["file-input__iframe-wrapper--padding"]:[]).join(" "),children:(0,y.jsx)("iframe",{frameBorder:"no",scrolling:"no",src:G.value.url})}):null!=(T=G.value)&&T.source&&"text"===X?(0,y.jsx)("pre",{className:h["file-input__text-representation"],children:G.value.source}):"":null!=(C=G.value)&&C.blob&&G.value.blob instanceof Blob?(0,y.jsx)(d.CircularProgress,{size:"large"}):"",(0,y.jsxs)("div",{children:[(0,y.jsx)(p.Typography,{tag:"h2",use:"headline6",children:J?(0,y.jsx)(m.Theme,{use:"error",children:G.description?G.description:G.name}):G.description?G.description:G.name}),G.declaration?(0,y.jsx)(p.Typography,{style:{marginTop:"-1rem"},tag:"h3",theme:"textSecondaryOnBackground",use:"subtitle2",children:J?(0,y.jsx)(m.Theme,{use:"error",children:G.declaration}):G.declaration}):"",G.value?(0,y.jsx)(f.default,r()({ref:V},G.generateFileNameInputProperties(r()({disabled:G.disabled,value:null==(O=G.value)?void 0:O.name},b.W2,{model:G.model.fileName,onChangeValue:A,default:G.value.name}),G))):"",G.children?G.children({declaration:G.declaration,invalid:J,properties:G,value:G.value}):""]}),(0,y.jsx)("input",{disabled:G.disabled,className:h["file-input__native"],id:G.id||G.name,name:G.name,onChange:A,ref:D,type:"file"})]}),!G.disabled||G.value?(0,y.jsx)(c.CardActions,{children:(0,y.jsxs)(c.CardActionButtons,{children:[G.disabled?"":(0,y.jsx)(c.CardActionButton,{onClick:function(){var e;return null==(e=D.current)?void 0:e.click()},ref:L,ripple:G.ripple,children:G.value?G.editButton:G.newButton}),G.value?(0,y.jsxs)(y.Fragment,{children:[G.disabled?"":(0,y.jsx)(c.CardActionButton,{onClick:function(){return A(null)},ref:M,ripple:G.ripple,children:G.deleteButton}),G.value.url?(0,y.jsx)(c.CardActionButton,{onClick:function(){var e;return null==(e=B.current)?void 0:e.click()},ripple:G.ripple,children:(0,y.jsx)("a",r()({className:h["file-input__download"],download:G.value.name,href:G.value.url,ref:B,target:"_blank"},null!=(N=G.value.blob)&&N.type?{type:G.value.blob.type}:{},{children:G.downloadButton}))}):""]}):""]})}):""]})})};N.displayName="FileInput";var q=(0,s.memo)((0,s.forwardRef)(N));q.wrapped=N,q.webComponentAdapterWrapped="react",q.defaultModelState=b.q,q.defaultProperties=r()({},b.Uz,{model:r()({},b.Uz.model,{state:void 0,value:void 0}),value:void 0}),q.propTypes=b.O,q.strict=!1;var k=q}(),O}()}));
|
|
1
|
+
'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/regenerator"),require("@rmwc/card"),require("@rmwc/circular-progress"),require("@rmwc/formfield"),require("@rmwc/icon"),require("@rmwc/icon-button"),require("@rmwc/menu"),require("@rmwc/select"),require("@rmwc/textfield"),require("@rmwc/theme"),require("@rmwc/tooltip"),require("@rmwc/typography"),require("@tinymce/tinymce-react"),require("ace-builds"),require("blob-util"),require("clientnode"),require("clientnode/property-types"),require("react"),require("react-ace"),require("react-transition-group"),require("react/jsx-runtime"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/asyncToGenerator","@babel/runtime/helpers/extends","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/regenerator","@rmwc/card","@rmwc/circular-progress","@rmwc/formfield","@rmwc/icon","@rmwc/icon-button","@rmwc/menu","@rmwc/select","@rmwc/textfield","@rmwc/theme","@rmwc/tooltip","@rmwc/typography","@tinymce/tinymce-react","ace-builds","blob-util","clientnode","clientnode/property-types","react","react-ace","react-transition-group","react/jsx-runtime"],t);else{var n="object"==typeof exports?t(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/regenerator"),require("@rmwc/card"),require("@rmwc/circular-progress"),require("@rmwc/formfield"),require("@rmwc/icon"),require("@rmwc/icon-button"),require("@rmwc/menu"),require("@rmwc/select"),require("@rmwc/textfield"),require("@rmwc/theme"),require("@rmwc/tooltip"),require("@rmwc/typography"),require("@tinymce/tinymce-react"),require("ace-builds"),require("blob-util"),require("clientnode"),require("clientnode/property-types"),require("react"),require("react-ace"),require("react-transition-group"),require("react/jsx-runtime")):t(e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/regenerator"],e["@rmwc/card"],e["@rmwc/circular-progress"],e["@rmwc/formfield"],e["@rmwc/icon"],e["@rmwc/icon-button"],e["@rmwc/menu"],e["@rmwc/select"],e["@rmwc/textfield"],e["@rmwc/theme"],e["@rmwc/tooltip"],e["@rmwc/typography"],e["@tinymce/tinymce-react"],e["ace-builds"],e["blob-util"],e.clientnode,e["clientnode/property-types"],e.react,e["react-ace"],e["react-transition-group"],e["react/jsx-runtime"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,(function(e,t,n,r,i,o,a,l,u,s,c,d,m,p,f,v,g,b,y,h,x,w,j,S){return function(){"use strict";var T,_,I=[function(e){e.exports=S},function(e){e.exports=t},function(e){e.exports=x},function(e){e.exports=y},function(e){e.exports=m},function(e){e.exports=h},function(e,t,n){n.d(t,{WrapTooltip:function(){return u}});var r=n(1),i=n.n(r),o=n(9),a=n(11),l=n(0),u=function(e){var t=e.children,n=e.options;return"string"==typeof n?(0,l.jsx)(a.Tooltip,{content:(0,l.jsx)(o.Typography,{use:"caption",children:n}),children:(0,l.jsx)("div",{className:"generic-tooltip",children:t})}):null!==n&&"object"==typeof n?("string"==typeof n.content&&(n=i()({},n,{content:(0,l.jsx)(o.Typography,{use:"caption",children:n.content})})),(0,l.jsx)(a.Tooltip,i()({},n,{children:(0,l.jsx)("div",{className:"generic-tooltip",children:t})}))):(0,l.jsx)(l.Fragment,{children:t})};t.default=u},function(e,t,n){n.d(t,{WrapConfigurations:function(){return l}});n(1),n(13),n(2),n(4);var r=n(12),i=n(10),o=n(6),a=n(0),l=function(e){var t=e.children,n=e.strict,l=e.themeConfiguration,u=e.tooltip,s=e.wrap;return(0,a.jsx)(r.x,{strict:Boolean(n),children:(0,a.jsx)(o.WrapTooltip,{options:u,children:(0,a.jsx)(i.WrapThemeProvider,{configuration:l,wrap:s,children:t})})})};t.default=l},function(e,t,n){n.d(t,{deriveMissingPropertiesFromState:function(){return d},determineInitialRepresentation:function(){return v},determineInitialValue:function(){return g},determineValidationState:function(){return b},formatValue:function(){return T},getConsolidatedProperties:function(){return h},getLabelAndValues:function(){return x},getValueFromSelection:function(){return w},mapPropertiesIntoModel:function(){return y},normalizeSelection:function(){return j},parseValue:function(){return S},translateKnownSymbols:function(){return f},triggerCallbackIfExists:function(){return p},useMemorizedValue:function(){return _},wrapStateSetter:function(){return m}});var r=n(1),i=n.n(r),o=n(3),a=n.n(o),l=n(5),u=n(2);function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var d=function(e,t){void 0!==e.model.value&&void 0===e.value&&(e.value=e.model.value),void 0===e.value&&(e.value=t.value),e.model.state?e.model.state=i()({},e.model.state):e.model.state={};for(var n=0,r=Object.entries(t.modelState);n<r.length;n++){var o=r[n],a=o[0],l=o[1];void 0===e.model.state[a]&&(e.model.state[a]=l)}return e},m=function(e,t){return function(n){var r="function"==typeof n?n(t):n;a().equals(null==r?void 0:r.modelState,null==t?void 0:t.modelState)||e(r)}},p=function(e,t,n){void 0===n&&(n=!0);for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];t="on"+a().stringCapitalize(t),e[t]&&(n?e[t].apply(e,i):a().timeout((function(){return e[t].apply(e,i)})))},f=function(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],o=i[0],u=i[1];u===l.UndefinedSymbol?t[o]=void 0:u===l.NullSymbol?t[o]=null:t[o]=a().copy(e[o])}return t};function v(e,t,n,r,o){if("string"==typeof e.representation)return e.representation;if(null!==n){var l,u=function(e,t){if(t)for(var n,r=s(t);!(n=r()).done;){var i=n.value;if(a().equals(null==i?void 0:i.value,e))return i.label||""+e}return null}(n,o);return"string"==typeof u?u:T(i()({},e,{type:e.type||(null==(l=e.model)?void 0:l.type)||t.model.type}),n,r)}return""}var g=function(e,t,n){var r,i;return void 0!==n?n:void 0!==e.value?e.value:void 0!==(null==(r=e.model)?void 0:r.value)?e.model.value:void 0!==e.initialValue?a().copy(e.initialValue):void 0!==e.default?a().copy(e.default):void 0!==(null==(i=e.model)?void 0:i.default)?a().copy(e.model.default):void 0!==t?t:null},b=function(e,t,n){void 0===n&&(n={});var r=!1;n=i()({invalidRequired:function(){return!1===e.model.nullable&&"boolean"!==e.model.type&&!e.model.value&&0!==e.model.value||"boolean"===e.model.type&&!("boolean"==typeof e.model.value||["false","true"].includes(e.model.value))}},n),e.model.state=e.model.state||{};for(var o=0,a=Object.entries(n);o<a.length;o++){var l=a[o],u=l[0],s=l[1],c=t[u];e.model.state[u]=s(),r=r||c!==t[u]}return r&&(e.model.state.invalid=Object.keys(n).some((function(t){return e.model.state[t]})),e.model.state.valid=!e.model.state.invalid),r},y=function(e,t){var n=a().extend(!0,{model:a().copy(t)},e);n.disabled&&(n.model.mutable=!1,delete n.disabled),n.invertedPattern&&(n.model.invertedRegularExpressionPattern=n.invertedPattern,delete n.invertedPattern),n.pattern&&(n.model.regularExpressionPattern=n.pattern,delete n.pattern),n.required&&(n.model.nullable=!1,delete n.required),"text"===n.type&&(n.type="string");for(var r,i=s(Object.keys(n.model).concat("value"));!(r=i()).done;){var o=r.value;Object.prototype.hasOwnProperty.call(n,o)&&void 0!==n[o]&&(n.model[o]=n[o])}for(var l in n.model.state)Object.prototype.hasOwnProperty.call(n,l)&&void 0!==n[l]&&(n.model.state[l]=n[l]);return void 0===n.model.value&&(n.model.value=a().copy(n.model.default)),n},h=function(e){var t=i()({},e,e.model||{},(e.model||{}).state||{});return t.disabled=!(t.mutable&&t.writable),delete t.mutable,delete t.writable,delete t.state,t.required=!t.nullable,delete t.nullable,t.invertedRegularExpressionPattern&&(t.invertedPattern=t.invertedRegularExpressionPattern),delete t.invertedRegularExpressionPattern,t.regularExpressionPattern&&(t.pattern=t.regularExpressionPattern),delete t.regularExpressionPattern,t};function x(e){if(Array.isArray(e)){for(var t,n=[],r=[],i=s(e);!(t=i()).done;){var o=t.value;"string"==typeof(null==o?void 0:o.label)&&(n.push(o.label),r.push(o.value))}return[n,r]}return[[],[]]}function w(e,t){if(Array.isArray(t))for(var n,r=s(t);!(n=r()).done;){var i=n.value;if("string"==typeof(null==i?void 0:i.label)&&i.label===e)return i.value;if(["number","string"].includes(typeof(null==i?void 0:i.value))&&""+i.value===e)return i.value}return null}function j(e,t){if(e||(e=t,t=void 0),!e)return e;var n=null!==t&&"object"==typeof t,r=function(e,r){if(n)if(Array.isArray(t)){if(t.length)if(Array.isArray(t[0]))for(var i,o=s(t);!(i=o()).done;){var a=i.value,l=a[0],u=a[1];if(l===e)return u}else if("number"==typeof r&&r<t.length)return t[r]}else{if(!0===e&&t.true)return t.true;if(!1===e&&t.false)return t.false;if("string"==typeof e&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}return null},o=!1;if(Array.isArray(e)){if(o=!0,e.length){var a=[],l=0;if(Array.isArray(e[0]))for(var u=0,c=e;u<c.length;u++){var d,m=c[u],p=m[0],f=m[1];a.push({label:null!==(d=r(p,l))&&void 0!==d?d:f,value:p}),l+=1}else if(null!==e[0]&&"object"==typeof e[0])for(var v,g=s(e);!(v=g()).done;){var b,y=v.value;a.push(i()({},y,{label:null!==(b=r(y.value,l))&&void 0!==b?b:y.label})),l+=1}else for(var h=0,x=e;h<x.length;h++){var w,j=x[h];a.push({label:null!==(w=r(j,l))&&void 0!==w?w:j,value:j}),l+=1}e=a}}else{for(var S=[],T=0,_=Object.keys(e);T<_.length;T++){var I,P=_[T];S.push({label:null!==(I=r(P))&&void 0!==I?I:e[P],value:P})}e=S}if(Array.isArray(t)&&t.length&&Array.isArray(t[0])){for(var C,O=new Map,N=0,q=s(t);!(C=q()).done;){var k=C.value[0];O.set(k,N),N+=1}e=e.sort((function(e,t){var n,r,i=e.value,o=t.value;return(null!==(n=O.get(i))&&void 0!==n?n:0)-(null!==(r=O.get(o))&&void 0!==r?r:0)}))}else o||(e=e.sort((function(e,t){var n=e.value,r=t.value;return n.localeCompare(r)})));return e}var S=function(e,t,n){var r;if(e.model.trim&&"string"==typeof t&&(t=t.trim().replace(/ +\n/g,"\\n")),e.model.emptyEqualsNull&&""===t)return null;var i=t;return![null,void 0].includes(t)&&null!=(r=n[e.model.type])&&r.parse&&(i=n[e.model.type].parse(t,e,n)),"number"==typeof i&&isNaN(i)?null:i};function T(e,t,n,r){var i;void 0===r&&(r=!0);var o=r?"final":"intermediate";if([null,void 0].includes(t)||"number"==typeof t&&isNaN(t))return"";var a=null==(i=n[e.type||e.model.type])?void 0:i.format;if(a){var l,u,s=(null==(l=a[o])?void 0:l.transform)||(null==(u=a.final)?void 0:u.transform);if(s)return s(t,e,n)}return String(t)}var _=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,u.useMemo)((function(){return e}),n)}},function(e){e.exports=f},function(e,t,n){n.d(t,{WrapThemeProvider:function(){return o}});var r=n(4),i=n(0),o=function(e){var t=e.children,n=e.configuration,o=e.wrap;return n?(0,i.jsx)(r.ThemeProvider,{options:n,wrap:!1!==o,children:t}):t}},function(e){e.exports=p},function(e,t,n){n.d(t,{x:function(){return o}});var r=n(2),i=n(0),o=function(e){var t=e.children;return e.strict?(0,i.jsx)(r.StrictMode,{children:t}):(0,i.jsx)(i.Fragment,{children:t})}},function(e){e.exports=n},function(e,t,n){n.d(t,{default:function(){return m}});var r=n(1),i=n.n(r),o=n(5),a=n(2),l=n(21),u=n(0),s={"generic-animate":"generic-animate","generic-animate__list-wrapper":"generic-animate__list-wrapper","generic-animate__wrapper":"generic-animate__wrapper","generic-animate-appear":"generic-animate-appear","generic-animate-enter":"generic-animate-enter","generic-animate-exit-active":"generic-animate-exit-active","generic-animate-appear-active":"generic-animate-appear-active","generic-animate-enter-active":"generic-animate-enter-active","generic-animate-exit":"generic-animate-exit","generic-animate-exit-done":"generic-animate-exit-done"},c=function(e,t){return(0,u.jsx)(l.CSSTransition,i()({appear:!0,classNames:s["generic-animate"],in:!0,timeout:200,unmountOnExit:!0},e,{children:"string"==typeof e.children?(0,u.jsx)("span",{className:s["generic-animate__wrapper"],ref:t,children:e.children}):Array.isArray(e.children)?(0,u.jsx)("div",{className:s["generic-animate__list-wrapper"],ref:t,children:e.children}):e.children}))},d=(0,a.memo)((0,a.forwardRef)(c));d.wrapped=c,d.webComponentAdapterWrapped="react",d.propTypes={appear:o.boolean,classNames:o.string,in:o.boolean,timeout:o.number};var m=d},function(e,t,n){n.d(t,{default:function(){return U}});var r=n(1),i=n.n(r),o=n(16),a=n.n(o),l=n(17),u=n.n(l),s=n(3),c=n.n(s),d=n(2),m=n(18),p=n(22),f=n(19),v=n(20),g=n(23),b=n(24),y=n(25),h=n(4),x=n(26),w=n(14),j=n(7),S=n(6),T=n(8),_=n(29),I=n(0);function P(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var O=!(void 0===typeof window),N=O?(0,s.optionalRequire)("react-useanimations"):null,q=O?(0,s.optionalRequire)("react-useanimations/lib/lock"):null,k=O?(0,s.optionalRequire)("react-useanimations/lib/plusToX"):null,E={"generic-input":"generic-input",ace_editor:"ace_editor","tox-tinymce":"tox-tinymce","generic-input--custom":"generic-input--custom","generic-input__editor__label":"generic-input__editor__label","generic-input__suggestions":"generic-input__suggestions","generic-input__suggestions--pending":"generic-input__suggestions--pending","generic-input__suggestions__suggestion":"generic-input__suggestions__suggestion","generic-input__suggestions__suggestion__mark":"generic-input__suggestions__suggestion__mark"},A={basePath:"/node_modules/ace-builds/src-noconflict/",useWorker:!1},R=(0,d.lazy)(a()(u().mark((function e(){var t,r,i,o,a,l,s;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(n.t.bind(n,27,23));case 2:for(t=e.sent,r=t.config,i=0,o=Object.entries(A);i<o.length;i++)a=o[i],l=a[0],s=a[1],r.set(l,s);return e.next=7,Promise.resolve().then(n.t.bind(n,28,23));case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})))),M=!1,B="/node_modules/tinymce/",D={base_url:B,skin_url:B+"skins/ui/oxide",theme_url:B+"themes/silver/theme.min.js",allow_conditional_comments:!1,allow_script_urls:!1,body_class:"mdc-text-field__input",branding:!1,cache_suffix:"?version=1664867066.695",contextmenu:[],document_base_url:"/",element_format:"xhtml",entity_encoding:"raw",fix_list_elements:!0,hidden_input:!1,icon:"material",invalid_elements:"em",invalid_styles:"color font-size line-height",keep_styles:!1,menubar:!1,plugins:["fullscreen","link","code","nonbreaking","searchreplace","visualblocks"],relative_urls:!1,remove_script_host:!1,remove_trailing_brs:!0,schema:"html5",toolbar1:"\n cut copy paste |\n undo redo removeformat |\n styleselect formatselect fontselect fontsizeselect |\n searchreplace visualblocks fullscreen code\n ".trim(),toolbar2:"\n alignleft aligncenter alignright alignjustify outdent indent |\n link nonbreaking bullist numlist bold italic underline strikethrough\n ".trim(),trim:!0};function V(e,t){return(0,T.determineValidationState)(e,t,{invalidMaximum:function(){return"number"==typeof e.model.maximum&&"number"==typeof e.model.value&&!isNaN(e.model.value)&&e.model.maximum>=0&&e.model.maximum<e.model.value},invalidMinimum:function(){return"number"==typeof e.model.minimum&&"number"==typeof e.model.value&&!isNaN(e.model.value)&&e.model.value<e.model.minimum},invalidMaximumLength:function(){return"number"==typeof e.model.maximumLength&&"string"==typeof e.model.value&&e.model.maximumLength>=0&&e.model.maximumLength<e.model.value.length},invalidMinimumLength:function(){return"number"==typeof e.model.minimumLength&&"string"==typeof e.model.value&&e.model.value.length<e.model.minimumLength},invalidInvertedPattern:function(){return"string"==typeof e.model.value&&[].concat(e.model.invertedRegularExpressionPattern).some((function(t){return"string"==typeof t&&new RegExp(t).test(e.model.value)||null!==t&&"object"==typeof t&&t.test(e.model.value)}))},invalidPattern:function(){return"string"==typeof e.model.value&&[].concat(e.model.regularExpressionPattern).some((function(t){return"string"==typeof t&&!new RegExp(t).test(e.model.value)||null!==t&&"object"==typeof t&&!t.test(e.model.value)}))}})}function L(e){c().keyCode.ENTER===e.keyCode&&e.stopPropagation()}function F(e,t){return!!t&&(e=e.toLowerCase(),t.replace(/ +/g," ").toLowerCase().split(" ").every((function(t){return e.includes(t)})))}var z=function(e,t){var n,r,o,a,l,u,s,_,C=(0,d.useId)();(0,d.useEffect)((function(){if(He||xe.selectionIsUnstable)if(Ge.editorIsActive){var e,t,n;null!=(e=ae.current)&&null!=(t=e.editor)&&t.selection?(ae.current.editor.textInput.focus(),G(ae.current),xe.selectionIsUnstable&&we(i()({},xe,{selectionIsUnstable:!1}))):null!=(n=de.current)&&n.selection&&(de.current.focus(!1),Y(de.current),xe.selectionIsUnstable&&we(i()({},xe,{selectionIsUnstable:!1})))}else se.current&&(se.current.setSelectionRange(Ge.cursor.start,Ge.cursor.end),xe.selectionIsUnstable&&we(i()({},xe,{selectionIsUnstable:!1})));if(se.current&&(Ge.valid?(se.current.removeAttribute("aria-errormessage"),se.current.removeAttribute("aria-invalid")):(se.current.setAttribute("aria-errormessage",C+"-error-message"),se.current.setAttribute("aria-invalid","true")),rt&&(se.current.setAttribute("role","searchbox"),se.current.setAttribute("aria-autocomplete",Ge.searchSelection?"inline":"list")),Ge.inputProps))for(var r=0,o=Object.entries(Ge.inputProps);r<o.length;r++){var a=o[r],l=a[0],u=a[1],s=c().stringCamelCaseToDelimited(l);"boolean"==typeof u?u?se.current.setAttribute(s,""):se.current.removeAttribute(s):se.current.setAttribute(s,String(u))}}));var O=function(e){return"clear_preset"===e?{icon:(0,I.jsx)(w.default,{in:!c().equals(Ge.value,Ge.default),children:N&&!N.isDummy&&k?(0,I.jsx)(N,{animation:k,reverse:!0}):(0,I.jsx)(v.IconButton,{icon:"clear"})}),onClick:function(e){e.preventDefault(),e.stopPropagation(),ee((0,T.parseValue)(Ge,Ge.default,W.transformer))},strategy:"component",tooltip:"Clear input"}:"password_preset"===e?(0,T.useMemorizedValue)({icon:N&&!N.isDummy&&q?(0,I.jsx)(N,{animation:q,reverse:!Ge.hidden}):(0,I.jsx)(v.IconButton,{icon:Ge.hidden?"lock_open":"lock"}),onClick:function(e){e.preventDefault(),e.stopPropagation(),Te((function(t){return void 0===t&&(t=Ge.hidden),Ge.hidden=!t,J(e),Ge.hidden}))},strategy:"component",tooltip:(Ge.hidden?"Show":"Hide")+" password"},Ge.hidden):e},A=function(e){var t,n;return"string"===e.type?e.hidden?"password":rt?"search":"text":null!==(t=null==(n=Ae[e.type])?void 0:n.type)&&void 0!==t?t:e.type},B=function(e){if("string"==typeof e){var t=c().stringEvaluate("`"+e+"`",i()({formatValue:function(e){return(0,T.formatValue)(Ge,e,Ae)}},Ge));return t.error?(console.warn("Given message template could not be proceed:",t.error),""):t.result}return""},z=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n=!0),"boolean"==typeof t?n?(0,I.jsx)(w.default,{in:t,children:e}):t?e:"":n?(0,I.jsx)(w.default,i()({},t,{children:e})):t.in?e:""},U=function(e){var t;if("object"==typeof e&&null!=(t=e)&&t.tooltip){var n=e.tooltip;delete(e=i()({},e)).tooltip;var r=i()({},e);e.strategy="component",e.icon=(0,I.jsx)(S.default,{options:n,children:(0,I.jsx)(f.Icon,{icon:r})})}return e},$=function(e,t,n){if(!Ge.value)return 0;var r="generic-input-selection-indicator",i=" "+r+'="###"';t.setAttribute(r,"###");var o=e.innerHTML.replace(/(<\/p>)/gi,"$1\n");t.removeAttribute(r);var a=o.indexOf(i)+i.length;return n+o.indexOf(">",a)+1-i.length},K=function(e,t){return"string"==typeof Ge.value||Ge.value?t>0?e+Ge.value.split("\n").slice(0,t).map((function(e){return 1+e.length})).reduce((function(e,t){return e+t})):e:0},H=function(e){var t={column:0,row:0};if("string"==typeof Ge.value)for(var n,r=P(Ge.value.split("\n"));!(n=r()).done;){var i=n.value;if(!(i.length<e)){t.column=e;break}e-=1+i.length,t.row+=1}return t},G=function(e){var t=e.editor.selection.getRange(),n=H(Ge.cursor.end);t.setEnd(n.row,n.column);var r=H(Ge.cursor.start);t.setStart(r.row,r.column),e.editor.selection.setRange(t)},Y=function(e){for(var t={end:"###generic-input-selection-indicator-end###",start:"###generic-input-selection-indicator-start###"},n={end:Ge.cursor.end+t.start.length,start:Ge.cursor.start},r=["start","end"],i=Ge.representation,o=0,a=r;o<a.length;o++){var l=a[o];i=i.substring(0,n[l])+t[l]+i.substring(n[l])}e.getBody().innerHTML=i;for(var u,s=document.createTreeWalker(e.getBody(),NodeFilter.SHOW_TEXT,null),d=e.dom.createRng(),m={};u=s.nextNode();)for(var p,f=P(r);!(p=f()).done;){var v=p.value;if(u.nodeValue){var g=u.nodeValue.indexOf(t[v]);g>-1&&(u.nodeValue=u.nodeValue.replace(t[v],""),m[v]=[u,g])}}for(var b=0,y=r;b<y.length;b++){var h=y[b];m[h]&&d["set"+c().stringCapitalize(h)].apply(d,m[h])}m.end&&m.start&&e.selection.setRng(d)},X=function(e){var t=(0,T.getConsolidatedProperties)(function(e){var t=(0,T.mapPropertiesIntoModel)(e,W.defaultProperties.model);return t.model.value=(0,T.parseValue)(t,t.model.value,Ae),V(t,t.model.state),t}(e));return t.selection||"boolean"!==t.type||(t.selection=[{label:"No",value:!1},{label:"Yes",value:!0}]),t.selectableEditor||"plain"===t.editor||(t.editorIsActive=!0),"string"!=typeof t.representation&&(t.representation=(0,T.formatValue)(t,t.value,Ae,!t.focused),t.focused&&t.representation!==t.value&&["password","text"].includes(A(t))&&(He=!0)),t},J=function(e){c().extend(!0,Ge,X(Ge)),(0,T.triggerCallbackIfExists)(Ge,"change",$e,Ge,e)},Q=function(e){e&&(e.preventDefault(),e.stopPropagation()),we((function(t){var n=t.editorIsActive;return Ge.editorIsActive=!n,J(e),(0,T.triggerCallbackIfExists)(Ge,"changeEditorIsActive",$e,Ge.editorIsActive,e,Ge),{editorIsActive:Ge.editorIsActive,selectionIsUnstable:!0}}))},Z=function(e){e&&(e.preventDefault(),e.stopPropagation()),Ne((function(t){return Ge.showDeclaration=!t,J(e),(0,T.triggerCallbackIfExists)(Ge,"changeShowDeclaration",$e,Ge.showDeclaration,e,Ge),Ge.showDeclaration}))},ee=function(e,t,n){if(void 0===n&&(n=-1),!Ge.disabled){var r;if(Pe(!0),null!==e&&"object"==typeof e){var o=e.target||e.detail;if(o)if("number"==typeof o.index){var a=o.index-(Ge.placeholder?1:0);Ge.value=a>=0&&a<Fe.length?Fe[a]:null}else Ge.value=void 0===o.value?null:o.value;else Ge.value=e}else Ge.value=e;var l=function(){return Ue((function(e){if(!Ke&&e.representation===Ge.representation&&!Ge.suggestionCreator&&-1===n)return e;var t=i()({},e,{representation:Ge.representation});if(!$e&&c().equals(e.value,Ge.value))return t;t.value=Ge.value;var o=!1;return e.modelState.pristine&&(Ge.dirty=!0,Ge.pristine=!1,o=!0),J(r),V(Ge,e.modelState)&&(o=!0),(0,T.triggerCallbackIfExists)(Ge,"changeValue",$e,Ge.value,r,Ge),o&&(t.modelState=Ge.model.state,(0,T.triggerCallbackIfExists)(Ge,"changeState",$e,Ge.model.state,r,Ge)),(ct||-1!==n)&&(0,T.triggerCallbackIfExists)(Ge,"select",$e,r,Ge),t}))};if(Ge.representation=-1!==n?tt[n]:"string"==typeof Ge.value?Ge.value:(0,T.formatValue)(Ge,Ge.value,Ae),rt)if(Ge.suggestionCreator){var u=new AbortController,s=function(e){if(!u.signal.aborted){if(Be((function(t){return t instanceof AbortController&&!t.signal.aborted&&t.abort(),e})),-1===n){var t=(0,T.getValueFromSelection)(Ge.representation,(0,T.normalizeSelection)(e));null!==t||Ge.searchSelection?Ge.value=t:Ge.value=(0,T.parseValue)(Ge,Ge.representation,Ae)}l()}},d=Ge.suggestionCreator({abortController:u,properties:Ge,query:Ge.representation});null!=d&&d.then?(Be((function(e){return e instanceof AbortController&&!e.signal.aborted&&e.abort(),u})),Ue((function(e){return i()({},e,{representation:Ge.representation})})),d.then(s,c().noop)):s(d)}else{if(-1===n){var m=(0,T.getValueFromSelection)(Ge.representation,De);null!==m||Ge.searchSelection?Ge.value=m:Ge.value=(0,T.parseValue)(Ge,Ge.representation,Ae)}l()}else Ge.value=(0,T.parseValue)(Ge,Ge.value,Ae),l()}},te=function(e){ie(e),(0,T.triggerCallbackIfExists)(Ge,"click",$e,e,Ge),oe(e)},ne=function(e){(0,T.triggerCallbackIfExists)(Ge,"focus",$e,e,Ge),oe(e)},re=function(e){e.keyCode&&(ie(e),(0,T.triggerCallbackIfExists)(Ge,"keyUp",$e,e,Ge))},ie=function(e){!function(e){var t,n,r,i,o,a,l,u=null==(t=ae.current)||null==(n=t.editor)||null==(r=n.selection)?void 0:r.getRange(),s=null==(i=de.current)||null==(o=i.selection)?void 0:o.getRng(),c=null==(a=se.current)?void 0:a.selectionEnd,d=null==(l=se.current)?void 0:l.selectionStart;if(u)ye({end:K(u.end.column,"number"==typeof u.end.row?u.end.row:"string"==typeof Ge.value?Ge.value.split("\n").length-1:0),start:K(u.start.column,"number"==typeof u.start.row?u.start.row:"string"==typeof Ge.value?Ge.value.split("\n").length-1:0)});else if(s)ye({end:$(de.current.getBody(),de.current.selection.getEnd(),s.endOffset),start:$(de.current.getBody(),de.current.selection.getStart(),s.startOffset)});else if("number"==typeof c&&"number"==typeof d){var m,p=1===(null==e||null==(m=e.key)?void 0:m.length)?1:"Backspace"===(null==e?void 0:e.key)&&Ge.representation.length>d?-1:0;ye({end:c+p,start:d+p})}}(e),(0,T.triggerCallbackIfExists)(Ge,"selectionChange",$e,e,Ge)},oe=function(e){return Ue((function(t){var n=!1;t.modelState.focused||(Ge.focused=!0,n=!0),t.modelState.untouched&&(Ge.touched=!0,Ge.untouched=!1,n=!0);var r=t;return n&&(J(e),r=i()({},t,{modelState:Ge.model.state}),(0,T.triggerCallbackIfExists)(Ge,"changeState",$e,Ge.model.state,e,Ge)),(0,T.triggerCallbackIfExists)(Ge,"touch",$e,e,Ge),r}))},ae=(0,d.useRef)(null),le=(0,d.useRef)(null),ue=(0,d.useRef)(null),se=(0,d.useRef)(null),ce=(0,d.useRef)(null),de=(0,d.useRef)(null),me=(0,d.useRef)(null),pe=(0,d.useRef)(null),fe=(0,d.useRef)(null),ve=(0,T.translateKnownSymbols)(e),ge=(0,d.useState)({end:0,start:0}),be=ge[0],ye=ge[1],he=(0,d.useState)({editorIsActive:!1,selectionIsUnstable:!1}),xe=he[0],we=he[1],je=(0,d.useState)(),Se=je[0],Te=je[1],_e=(0,d.useState)(!1),Ie=_e[0],Pe=_e[1],Ce=(0,d.useState)(!1),Oe=Ce[0],Ne=Ce[1],qe=(0,T.determineInitialValue)(ve,null==(n=W.defaultProperties.model)?void 0:n.default);qe instanceof Date&&(qe=qe.getTime()/1e3);var ke=c().extend(!0,c().copy(W.defaultProperties),ve),Ee=ke.type||(null==(r=ke.model)?void 0:r.type)||"string",Ae=ke.transformer?i()({},W.transformer,((o={})[Ee]=c().extend(!0,c().copy(W.transformer[Ee])||{},ke.transformer),o)):W.transformer,Re=(0,d.useState)(),Me=Re[0],Be=Re[1];(ke.selection||null!=(a=ke.model)&&a.selection)&&(Me=ke.selection||(null==(l=ke.model)?void 0:l.selection));var De=Me instanceof AbortController?[]:(0,T.normalizeSelection)(Me,ke.labels),Ve=Me instanceof AbortController?[[],[]]:(0,T.getLabelAndValues)(De),Le=Ve[0],Fe=Ve[1],ze=(0,d.useState)((function(){return{modelState:i()({},W.defaultModelState),representation:(0,T.determineInitialRepresentation)(ke,W.defaultProperties,qe,Ae,De),value:qe}})),We=ze[0],Ue=ze[1],$e=!ke.enforceUncontrolled&&(void 0!==(null==(u=ve.model)?void 0:u.value)||void 0!==ve.value)&&Boolean(ve.onChange||ve.onChangeValue),Ke=$e&&void 0!==ve.representation,He=!1;null!==ke.cursor&&"object"==typeof ke.cursor||(ke.cursor={}),void 0===ke.cursor.end&&(ke.cursor.end=be.end),void 0===ke.cursor.start&&(ke.cursor.start=be.start),void 0===ke.editorIsActive&&(ke.editorIsActive=xe.editorIsActive),void 0===ke.hidden&&(ke.hidden=Se),void 0===ke.representation&&(ke.representation=We.representation),void 0===ke.showDeclaration&&(ke.showDeclaration=Oe),(0,T.deriveMissingPropertiesFromState)(ke,We),void 0===ke.value?void 0===ke.representation&&void 0===ke.model.value&&(ke.representation=We.representation):Ke||ke.value===We.value||(ke.representation=void 0);var Ge=X(ke);void 0===Ge.hidden&&(Ge.hidden=null==(s=Ge.name)?void 0:s.startsWith("password")),c().equals(Ge.cursor,be)||ye(Ge.cursor),Ge.editorIsActive!==xe.editorIsActive&&we(i()({},xe,{editorIsActive:Ge.editorIsActive})),Ge.hidden!==Se&&Te(Ge.hidden),Ge.showDeclaration!==Oe&&Ne(Ge.showDeclaration);var Ye={modelState:Ge.model.state,representation:Ge.representation,value:Ge.value};($e||c().equals(Ge.value,We.value)&&Ge.representation===We.representation)&&c().equals(Ge.model.state,We.modelState)||Ue(Ye),$e&&(Ue=(0,T.wrapStateSetter)(Ue,Ye)),(0,d.useImperativeHandle)(t,(function(){for(var e,t={modelState:Ge.model.state},n=P(["cursor","editorIsActive","hidden","showDeclaration"]);!(e=n()).done;){var r=e.value;Object.prototype.hasOwnProperty.call(ve,r)||(t[r]=Ge[r])}return Ke||(t.representation=Ge.representation),$e||(t.value=Ge.value),{properties:Ge,references:{codeEditorReference:ae,codeEditorInputReference:le,foundationReference:ue,inputReference:se,richTextEditorInputReference:ce,richTextEditorInstance:de,richTextEditorReference:me,suggestionMenuAPIReference:pe,suggestionMenuFoundationReference:fe},state:t}}));var Xe={onBlur:function(e){return Ue((function(t){Pe(!1);var n=!1,r=!1;if(t.modelState.focused&&(Ge.focused=!1,n=!0,r=!0),t.modelState.visited||(Ge.visited=!0,n=!0,r=!0),!rt||Ge.suggestSelection){var i=(0,T.getValueFromSelection)(Ge.representation,De);null===i?(Ge.value=(0,T.parseValue)(Ge,Ge.value,Ae),Ge.representation=(0,T.formatValue)(Ge,Ge.value,Ae)):Ge.value=i}return c().equals(t.value,Ge.value)&&t.representation===Ge.representation||(n=!0),n&&J(e),c().equals(t.value,Ge.value)||(0,T.triggerCallbackIfExists)(Ge,"changeValue",$e,Ge.value,e,Ge),r&&(0,T.triggerCallbackIfExists)(Ge,"changeState",$e,Ge.model.state,e,Ge),(0,T.triggerCallbackIfExists)(Ge,"blur",$e,e,Ge),n?{modelState:Ge.model.state,representation:Ge.representation,value:Ge.value}:t}))},onFocus:function(e){Pe(!0),ne(e)},placeholder:Ge.placeholder},Je={disabled:Ge.disabled,helpText:{children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(w.default,{in:Ge.selectableEditor&&"string"===Ge.type&&"plain"!==Ge.editor,children:(0,I.jsx)(v.IconButton,{icon:{icon:Ge.editorIsActive?"subject":Ge.editor.startsWith("code")?"code":"text_format",onClick:Q}})}),(0,I.jsx)(w.default,{in:Boolean(Ge.declaration),children:(0,I.jsx)(v.IconButton,{icon:{icon:"more_"+(Ge.showDeclaration?"vert":"horiz"),onClick:Z}})}),(0,I.jsx)(w.default,{in:Ge.showDeclaration,children:Ge.declaration}),(0,I.jsx)(w.default,{in:!Ge.showDeclaration&&Ge.invalid&&(Ge.showInitialValidationState||Ge.visited),children:(0,I.jsx)(h.Theme,{use:"error",wrap:!0,children:(0,I.jsx)("span",{id:C+"-error-message",children:B(Ge.invalidMaximum&&Ge.maximumText||Ge.invalidMaximumLength&&Ge.maximumLengthText||Ge.invalidMinimum&&Ge.minimumText||Ge.invalidMinimumLength&&Ge.minimumLengthText||Ge.invalidInvertedPattern&&Ge.invertedPatternText||Ge.invalidPattern&&Ge.patternText||Ge.invalidRequired&&Ge.requiredText)})})})]}),persistent:Boolean(Ge.declaration)},invalid:Ge.showInitialValidationState&&Ge.invalid,label:Ge.description||Ge.name,outlined:Ge.outlined,required:Ge.required};Ge.icon&&(Je.icon=U(O(Ge.icon)));var Qe=i()({},D,{content_style:Ge.disabled?"body {opacity: .38}":"",placeholder:Ge.placeholder,readonly:Boolean(Ge.disabled),setup:function(e){de.current=e,de.current.on("init",(function(){de.current&&(M=!0,Ge.editorIsActive&&xe.selectionIsUnstable&&(de.current.focus(!1),Y(de.current),we(i()({},xe,{selectionIsUnstable:!1}))))}))}});Ge.editor.endsWith("raw)")?(Qe.toolbar1="cut copy paste | undo redo removeformat | code | fullscreen",delete Qe.toolbar2):Ge.editor.endsWith("simple)")?(Qe.toolbar1="cut copy paste | undo redo removeformat | bold italic underline strikethrough subscript superscript | fullscreen",delete Qe.toolbar2):Ge.editor.endsWith("normal)")&&(Qe.toolbar1="cut copy paste | undo redo removeformat | styleselect formatselect | searchreplace visualblocks fullscreen code");var Ze=!Ge.selection&&"string"===Ge.type&&Ge.editorIsActive&&(Ge.editor.startsWith("code")||Ge.editor.startsWith("richtext(")),et=[],tt=[],nt=[],rt=Boolean(Ge.suggestionCreator||Le.length&&(Ge.searchSelection||Ge.suggestSelection));if(rt&&Le.length){Ge.suggestSelection=!Ge.searchSelection;for(var it,ot=0,at=P(Le);!(it=at()).done;){var lt=it.value;if(c().isFunction(Ge.children)){var ut=Ge.children({index:ot,normalizedSelection:De,properties:Ge,query:Ge.representation,suggestion:lt,value:Fe[ot]});ut&&(et.push((0,I.jsx)(g.MenuItem,{className:E["generic-input__suggestions__suggestion"],children:ut},ot)),tt.push(lt),nt.push(Fe[ot]))}else if(!Ge.representation||Ge.suggestionCreator||F(lt,Ge.representation)){var st;et.push((0,I.jsx)(g.MenuItem,{className:E["generic-input__suggestions__suggestion"],children:c().stringMark(lt,(null==(st=Ge.representation)?void 0:st.split(" "))||"",(function(e){return(""+e).toLowerCase()}),(function(e){return(0,I.jsx)("span",{className:E["generic-input__suggestions__suggestion__mark"],children:e})}),null).map((function(e,t){return(0,I.jsx)("span",{children:e},t)}))},ot)),tt.push(lt),nt.push(Fe[ot])}ot+=1}}var ct=(Boolean(De)||Boolean(Ge.labels))&&!rt,dt={};return"number"===Ge.type?(dt.step=Ge.step,Ge.maximum!==1/0&&(dt.max=Ge.maximum),Ge.minimum!==-1/0&&(dt.min=Ge.minimum)):"string"===Ge.type?(Ge.maximumLength>=0&&Ge.maximumLength!==1/0&&(dt.maxLength=Ge.maximumLength),Ge.minimumLength>0&&(dt.minLength=Ge.minimumLength),"plain"!==Ge.editor&&(dt.rows=Ge.rows)):["date","datetime-local","time","time-local"].includes(Ge.type)&&(dt.step=Ge.step,Ge.maximum!==1/0&&(dt.max=(0,T.formatValue)(Ge,Ge.maximum,Ae)),Ge.minimum!==-1/0&&(dt.min=(0,T.formatValue)(Ge,Ge.minimum,Ae))),(0,I.jsx)(j.default,{strict:W.strict,themeConfiguration:Ge.themeConfiguration,tooltip:Ge.tooltip,children:(0,I.jsxs)("div",i()({className:[E["generic-input"]].concat(Ze?E["generic-input--custom"]:[],null!==(_=Ge.className)&&void 0!==_?_:[]).join(" "),style:Ge.styles},rt?{role:"search"}:{},{children:[z((0,I.jsx)(b.Select,i()({},Xe,Je,{enhanced:!0,foundationRef:ue,inputRef:se,onChange:ee,options:De,rootProps:i()({name:Ge.name,onClick:te},Ge.rootProps),value:""+Ge.value},Ge.inputProperties)),ct),z([(0,I.jsx)(p.FormField,{className:["mdc-text-field"].concat(Ge.disabled?"mdc-text-field--disabled":[],"mdc-text-field--textarea").join(" "),onKeyDown:L,children:(0,I.jsxs)("label",{children:[(0,I.jsx)("span",{className:[E["generic-input__editor__label"]].concat("mdc-floating-label","mdc-floating-label--float-above").join(" "),children:(0,I.jsx)(h.Theme,{use:Ge.invalid&&(Ge.showInitialValidationState||Ge.visited)?"error":void 0,children:(Ge.description||Ge.name)+(Ge.required?"*":"")})}),Ge.editor.startsWith("code")?(0,I.jsx)(d.Suspense,{fallback:(0,I.jsx)(m.CircularProgress,{size:"large"}),children:(0,I.jsx)(R,i()({},Xe,{className:"mdc-text-field__input",mode:Ge.editor.startsWith("code(")&&Ge.editor.endsWith(")")?Ge.editor.substring("code(".length,Ge.editor.length-1):"javascript",name:Ge.name,onChange:ee,onCursorChange:ie,onSelectionChange:ie,ref:function(e){var t,n,r;ae.current=e,null!=(t=ae.current)&&null!=(n=t.editor)&&null!=(r=n.container)&&r.querySelector("textarea")&&(le.current=ae.current.editor.container.querySelector("textarea")),ae.current&&Ge.editorIsActive&&xe.selectionIsUnstable&&(ae.current.editor.textInput.focus(),G(ae.current),we(i()({},xe,{selectionIsUnstable:!1})))},setOptions:{maxLines:Ge.rows,minLines:Ge.rows,readOnly:Ge.disabled,tabSize:4,useWorker:!1},theme:"github",value:Ge.representation},Ge.inputProperties))}):(0,I.jsx)(x.Editor,i()({},Xe,{disabled:Ge.disabled,init:Qe,onClick:te,onEditorChange:ee,onKeyUp:re,ref:function(e){me.current=e},textareaName:Ge.name,tinymceScriptSrc:D.base_url+"tinymce.min.js",value:Ge.representation},Ge.inputProperties))]})},"advanced-editor-form-field"),(0,I.jsx)("div",{className:"mdc-text-field-helper-line",children:(0,I.jsx)("p",{className:"mdc-text-field-helper-text mdc-text-field-helper-text--persistent",id:C+"-error-message",children:Je.helpText.children})},"advanced-editor-helper-line")],Ze,M||Ge.editor.startsWith("code")),z((0,I.jsxs)("div",{children:[rt?(0,I.jsx)(g.MenuSurfaceAnchor,{onKeyDown:L,children:Me instanceof AbortController?(0,I.jsx)(g.MenuSurface,{anchorCorner:"bottomLeft",className:E["generic-input__suggestions"]+" "+E["generic-input__suggestions--pending"],open:!0,children:(0,I.jsx)(m.CircularProgress,{size:"large"})}):(0,I.jsx)(g.Menu,{anchorCorner:"bottomLeft",apiRef:function(e){pe.current=e},className:E["generic-input__suggestions"],focusOnOpen:!1,foundationRef:fe,onFocus:ne,onSelect:function(e){ee(nt[e.detail.index],void 0,e.detail.index),Pe(!1)},open:Boolean(tt.length)&&Ie&&!(1===tt.length&&tt[0]===Ge.representation),children:et})}):"",(0,I.jsx)(y.TextField,i()({},Xe,Je,dt,{align:Ge.align,characterCount:"number"==typeof Ge.maximumLength&&!isNaN(Ge.maximumLength)&&Ge.maximumLength>=0,foundationRef:ue,inputRef:se,onChange:ee,ripple:Ge.ripple,rootProps:i()({name:Ge.name,onClick:te,onKeyDown:function(e){var t;rt&&c().keyCode.DOWN===e.keyCode&&(null==(t=pe.current)||t.focusItemAtIndex(0)),"string"===Ge.type&&"plain"!==Ge.editor&&L(e),(0,T.triggerCallbackIfExists)(Ge,"keyDown",$e,e,Ge)},onKeyUp:re},Ge.rootProps),textarea:"string"===Ge.type&&"plain"!==Ge.editor,trailingIcon:U(O(Ge.trailingIcon)),type:A(Ge),value:Ge.representation},Ge.inputProperties))]}),!(Ze||ct),M||Ge.editor.startsWith("code"))]}))})};z.displayName="GenericInput";var W=(0,d.memo)((0,d.forwardRef)(z));W.wrapped=z,W.webComponentAdapterWrapped="react",W.defaultModelState=_.Bg,W.defaultProperties=i()({},_.Ko,{cursor:void 0,model:i()({},_.Ko.model,{state:void 0,value:void 0}),representation:void 0,value:void 0}),W.locales=c().locales,W.propTypes=_.rV,W.renderProperties=_.au,W.strict=!1,W.transformer={boolean:{parse:function(e){var t;return"boolean"==typeof e?e:null===(t=new Map([["false",!1],["true",!0],[0,!1],[1,!0]]).get(e))||void 0===t||t},type:"text"},currency:{format:{final:{options:{currency:"USD"},transform:function(e,t,n){var r,o,a,l,u,s=null!==(r=null==(o=n.currency.format)||null==(a=o.final.options)?void 0:a.currency)&&void 0!==r?r:"USD";return e===1/0?"Infinity "+s:e===-1/0?"- Infinity "+s:isNaN(e)?"unknown":new Intl.NumberFormat(W.locales,i()({style:"currency"},null!==(l=null==(u=n.currency.format)?void 0:u.final.options)&&void 0!==l?l:{})).format(e)}}},parse:function(e,t,n){return n.float.parse?n.float.parse(e,t,n):NaN},type:"text"},date:{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n.date.parse)e=n.date.parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o.substring(0,o.indexOf("T"))}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e);return isNaN(n)?0:n}return t/1e3}},"datetime-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n["datetime-local"].parse)e=n["datetime-local"].parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o.substring(0,o.length-1)}}},parse:function(e,t,n){if(n.date.parse)return n.date.parse(e,t,n);if(e instanceof Date)return e.getTime()/1e3;var r=Date.parse(e);if(isNaN(r)){var i=parseFloat(e);return isNaN(i)?0:i}return r/1e3}},time:{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n.time.parse)e=n.time.parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o=o.substring(o.indexOf("T")+1,o.length-1),t.step&&t.step>=60&&t.step%60==0?o.substring(0,o.lastIndexOf(":")):o}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,(function(e,t,n,r,i,o){return String(parseInt(t)*Math.pow(60,2)+60*parseInt(n)+(r?parseFloat(i):0))})));return isNaN(n)?0:n}return t/1e3}},"time-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n["time-local"].parse)e=n["time-local"].parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)),a=o.getHours(),l=o.getMinutes(),u=(a<10?"0":"")+String(a)+":"+(l<10?"0":"")+String(l);if(!(t.step&&t.step>=60&&t.step%60==0)){var s=o.getSeconds();return u+":"+(s<10?"0":"")+String(s)}return u}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,(function(e,t,n,r,i,o){var a=new Date(0);return a.setHours(parseInt(t)),a.setMinutes(parseInt(n)),r&&a.setSeconds(parseInt(i)),String(a.getTime()/1e3)})));return isNaN(n)?0:n}return t/1e3},type:"time"},float:{format:{final:{transform:function(e,t,n){return n.float.format?e===1/0?"Infinity":e===-1/0?"- Infinity":new Intl.NumberFormat(W.locales,n.float.format.final.options||{}).format(e):""+e}}},parse:function(e,t){return"string"==typeof e&&(e=parseFloat("de-DE"===W.locales[0]?e.replace(/\./g,"").replace(/,/g,"."):e)),"number"==typeof e&&("number"==typeof t.minimum&&t.minimum>=0&&e<0||"number"==typeof t.maximum&&t.maximum<=0&&e>0)&&(e*=-1),e},type:"text"},integer:{format:{final:{transform:function(e,t,n){var r,o;return new Intl.NumberFormat(W.locales,i()({maximumFractionDigits:0},null!==(r=null==(o=n.integer.format)?void 0:o.final.options)&&void 0!==r?r:{})).format(e)}}},parse:function(e,t){return"string"==typeof e&&(e=parseInt("de-DE"===W.locales[0]?e.replace(/[,.]/g,""):e)),"number"==typeof e&&("number"==typeof t.minimum&&t.minimum>=0&&e<0||"number"==typeof t.maximum&&t.maximum<=0&&e>0)&&(e*=-1),e},type:"text"},number:{parse:function(e){return"number"==typeof e?e:parseInt(e)}}};var U=W},function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=o},function(e){e.exports=l},function(e){e.exports=u},function(e){e.exports=j},function(e){e.exports=a},function(e){e.exports=s},function(e){e.exports=c},function(e){e.exports=d},function(e){e.exports=v},function(e){e.exports=g},function(e){e.exports=w},function(e,t,n){n.d(t,{Bg:function(){return h},Ko:function(){return w},O:function(){return S},Uz:function(){return P},W2:function(){return I},au:function(){return y},q:function(){return T},rV:function(){return b}});var r=n(1),i=n.n(r),o=n(3),a=n.n(o),l=n(5),u={declaration:l.string,default:l.any,description:l.string,name:l.string,selection:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.number,l.string])),l.number,(0,l.objectOf)((0,l.oneOfType)([l.number,l.string])),l.string])),(0,l.objectOf)((0,l.oneOfType)([l.number,l.string]))]),type:l.string,value:l.any},s={dirty:(0,l.oneOfType)([l.boolean,l.symbol]),pristine:(0,l.oneOfType)([l.boolean,l.symbol]),touched:(0,l.oneOfType)([l.boolean,l.symbol]),untouched:(0,l.oneOfType)([l.boolean,l.symbol]),focused:(0,l.oneOfType)([l.boolean,l.symbol]),visited:(0,l.oneOfType)([l.boolean,l.symbol]),invalid:(0,l.oneOfType)([l.boolean,l.symbol]),invalidRequired:(0,l.oneOfType)([l.boolean,l.symbol]),valid:(0,l.oneOfType)([l.boolean,l.symbol])},c=i()({},u,{emptyEqualsNull:l.boolean,trim:l.boolean,invertedRegularExpressionPattern:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.object,l.string])),l.object,l.string]),regularExpressionPattern:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.object,l.string])),l.object,l.string]),maximum:(0,l.oneOfType)([l.number,l.string]),minimum:(0,l.oneOfType)([l.number,l.string]),maximumLength:l.number,minimumLength:l.number,mutable:l.boolean,writable:l.boolean,state:(0,l.shape)(s)}),d=i()({},u,s,{className:l.string,disabled:l.boolean,enforceUncontrolled:l.boolean,initialValue:l.any,inputProperties:l.object,model:(0,l.shape)(c),onChange:l.func,onChangeValue:l.func,onChangeShowDeclaration:l.func,onChangeState:l.func,onClick:l.func,onFocus:l.func,onTouch:l.func,required:l.boolean,requiredText:l.string,ripple:(0,l.oneOfType)([l.boolean,l.object]),rootProps:l.object,showDeclaration:(0,l.oneOfType)([l.boolean,l.symbol]),showInitialValidationState:l.boolean,styles:l.object,themeConfiguration:l.object,tooltip:l.any}),m={dirty:!1,focused:!1,invalid:!1,invalidRequired:!1,pristine:!0,touched:!1,untouched:!0,valid:!0,visited:!1},p={declaration:"",default:null,description:"",emptyEqualsNull:!0,invertedRegularExpressionPattern:null,maximum:1/0,maximumLength:-1,minimum:-1/0,minimumLength:0,mutable:!0,name:"NO_NAME_DEFINED",nullable:!0,regularExpressionPattern:null,state:i()({},m),trim:!0,type:"string",writable:!0},f={enforceUncontrolled:!1,model:i()({},p),showDeclaration:void 0,showInitialValidationState:!1,requiredText:"Please fill this field."},v=(i()({},d,s,{checked:l.boolean,id:l.string}),i()({},p,{default:!1,type:"boolean",value:!1})),g=(i()({},f,{default:!1,model:i()({},v),requiredText:"Please check this field."}),i()({},s,{invalidMaximum:(0,l.oneOfType)([l.boolean,l.symbol]),invalidMinimum:(0,l.oneOfType)([l.boolean,l.symbol]),invalidMaximumLength:(0,l.oneOfType)([l.boolean,l.symbol]),invalidMinimumLength:(0,l.oneOfType)([l.boolean,l.symbol]),invalidInvertedPattern:(0,l.oneOfType)([l.boolean,l.symbol]),invalidPattern:(0,l.oneOfType)([l.boolean,l.symbol])})),b=i()({},d,g,{align:l.string,children:l.func,cursor:(0,l.oneOfType)([(0,l.shape)({end:l.number.isRequired,start:l.number.isRequired}),l.symbol]),editor:l.string,editorIsActive:(0,l.oneOfType)([l.boolean,l.symbol]),hidden:(0,l.oneOfType)([l.boolean,l.symbol]),icon:(0,l.oneOfType)([l.string,l.object]),inputProps:l.object,invertedPattern:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.object,l.string])),l.object,l.string]),invertedPatternText:l.string,labels:(0,l.oneOfType)([(0,l.arrayOf)((0,l.arrayOf)(l.string)),(0,l.arrayOf)(l.string),l.object]),maximum:(0,l.oneOfType)([l.number,l.string]),maximumLengthText:l.string,maximumText:l.string,minimum:(0,l.oneOfType)([l.number,l.string]),minimumLengthText:l.string,minimumText:l.string,onBlur:l.func,onChangeEditorIsActive:l.func,onKeyDown:l.func,onKeyUp:l.func,onSelect:l.func,onSelectionChange:l.func,outlined:l.boolean,pattern:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.object,l.string])),l.object,l.string]),patternText:l.string,placeholder:l.string,representation:(0,l.oneOfType)([l.string,l.symbol]),rows:l.number,searchSelection:l.boolean,selectableEditor:l.boolean,step:l.number,suggestionCreator:l.func,suggestSelection:l.boolean,trailingIcon:l.any,transformer:l.object}),y=["children","suggestionCreator"],h=i()({},m,{invalidMaximum:!1,invalidMinimum:!1,invalidMaximumLength:!1,invalidMinimumLength:!1,invalidInvertedPattern:!1,invalidPattern:!1}),x=i()({},p,{state:h}),w=i()({},f,{cursor:{end:0,start:0},editor:"plain",invertedPatternText:'Your string should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: "${[].concat(invertedPattern).join("\\", \\"")}".',maximumLengthText:"Please type less or equal than ${maximumLength} symbols.",maximumText:"Please type less or equal than ${formatValue(maximum)}.",minimumLengthText:"Please type at least or equal ${minimumLength} symbols.",minimumText:"Please type at least or equal ${formatValue(minimum)}.",model:i()({},x),patternText:'Your string have to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: "${[].concat(pattern).join("\\", \\"")}".',rows:4,searchSelection:!1,selectableEditor:!1,step:1,suggestSelection:!1}),j=i()({},s,{invalidContentTypePattern:(0,l.oneOfType)([l.boolean,l.symbol]),invalidMaximumSize:(0,l.oneOfType)([l.boolean,l.symbol]),invalidMinimumSize:(0,l.oneOfType)([l.boolean,l.symbol]),invalidName:(0,l.oneOfType)([l.boolean,l.symbol])}),S=i()({},d,j,{children:l.func,contentTypePatternText:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.object,l.string])),l.object,l.string]),invertedContentTypePatternText:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.object,l.string])),l.object,l.string]),deleteButton:(0,l.oneOfType)([l.object,l.string]),downloadButton:(0,l.oneOfType)([l.object,l.string]),editButton:(0,l.oneOfType)([l.object,l.string]),newButton:(0,l.oneOfType)([l.object,l.string]),encoding:l.string,generateFileNameInputProperties:l.func,maximumSizeText:l.string,minimumSizeText:l.string,onBlur:l.func,outlined:l.boolean}),T=i()({},m,{invalidContentTypePattern:!1,invalidMaximumSize:!1,invalidMinimumSize:!1,invalidName:!1}),_=i()({},p,{contentTypeRegularExpressionPattern:/^.+\/.+$/,invertedContentTypeRegularExpressionPattern:null,fileName:i()({},x,{maximumLength:1024,name:"Name",regularExpressionPattern:/^[^/]+$/}),maximumSize:1/0,minimumSize:0,state:T}),I=i()({},w,{emptyEqualsNull:!1,invertedPatternText:'Your file\'s name should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: ""${[].concat(invertedPattern).join("\\", \\"")}".',patternText:'Your file\'s name has to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: ""${[].concat(pattern).join("\\", \\"")}".',required:!0});delete I.model;var P=i()({},f,{contentTypePatternText:'Your file\'s mime-type has to match the regular expression${[].concat(contentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(contentTypePattern).join("\\", \\"")}".',invertedContentTypePatternText:'Your file\'s mime-type should not match the regular expression${[].concat(invertedContentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(invertedContentTypePattern).join("\\", \\"")}".',deleteButton:"delete",downloadButton:"download",editButton:"edit",newButton:"new",encoding:"utf-8",generateFileNameInputProperties:a().identity,maximumSizeText:"Please provide a file with less or equal size than ${maximumSize} byte.",minimumSizeText:"Please provide a file with more or equal size than ${maximumSize} byte.",media:{sixteenByNine:!0},model:i()({},_),sourceToBlobOptions:{endings:"transparent",type:"text/plain"}}),C=(i()({},d,g,{children:l.func,createItem:l.func,createPrototype:l.func,maximumNumber:l.number,minimumNumber:l.number}),i()({},p,{state:i()({},p.state,{invalidMaximumNumber:!1,invalidMinimumNumber:!1}),maximumNumber:1/0,minimumNumber:0,type:"string[]"}));i()({},f,{addIcon:{icon:"add"},removeIcon:{icon:"clear"},createItem:function(e){return e.item},createPrototype:function(e){return e.item},model:i()({},C)}),i()({},b,{value:(0,l.shape)({end:(0,l.oneOfType)([l.number,(0,l.shape)(b)]),start:(0,l.oneOfType)([l.number,(0,l.shape)(b)])})}),i()({},m),i()({},x,{description:"End",name:"end"}),i()({},x,{description:"Start",name:"start"})},,,function(e){e.exports=b},function(e){e.exports=i}],P={};function C(e){var t=P[e];if(void 0!==t)return t.exports;var n=P[e]={exports:{}};return I[e](n,n.exports,C),n.exports}C.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return C.d(t,{a:t}),t},_=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},C.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);C.r(n);var r={};T=T||[null,_({}),_([]),_(_)];for(var i=2&t&&e;"object"==typeof i&&!~T.indexOf(i);i=_(i))Object.getOwnPropertyNames(i).forEach((function(t){r[t]=function(){return e[t]}}));return r.default=function(){return e},C.d(n,r),n},C.d=function(e,t){for(var n in t)C.o(t,n)&&!C.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},C.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},C.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var O={};return function(){C.r(O),C.d(O,{FileInput:function(){return q},FileInputInner:function(){return N},default:function(){return k},determineRepresentationType:function(){return _},determineValidationState:function(){return I},preserveStaticFileBaseNameInputGenerator:function(){return T},readBinaryDataIntoText:function(){return P}});var e=C(16),t=C.n(e),n=C(1),r=C.n(n),i=C(17),o=C.n(i),a=C(32),l=C(3),u=C.n(l),s=C(2),c=C(33),d=C(18),m=C(4),p=C(9),f=C(15),v=C(7),g=C(8),b=C(29),y=C(0),h={"file-input":"file-input","mdc-typography--headline6":"mdc-typography--headline6","mdc-typography--subtitle2":"mdc-typography--subtitle2","file-input__download":"file-input__download","file-input__iframe-wrapper":"file-input__iframe-wrapper","file-input__text-representation":"file-input__text-representation","file-input__iframe-wrapper--padding":"file-input__iframe-wrapper--padding","file-input__native":"file-input__native"},x=new RegExp("^image\\/(?:p?jpe?g|png|svg(?:\\+xml)?|vnd\\.microsoft\\.icon|gif|tiff|webp|vnd\\.wap\\.wbmp|x-(?:icon|jng|ms-bmp))$","i"),w=new RegExp("^(?:application\\/xml)|(?:text\\/(?:plain|x-ndpb[wy]html|(?:x-)?csv|x?html?|xml))$","i"),j=/^text\/plain$/i,S=new RegExp("^video\\/(?:(?:x-)?(?:x-)?webm|3gpp|mp2t|mp4|mpeg|quicktime|(?:x-)?flv|(?:x-)?m4v|(?:x-)mng|x-ms-as|x-ms-wmv|x-msvideo)|(?:application\\/(?:x-)?shockwave-flash)$","i"),T=function(e,t){var n=t.name,i=t.value.name;return r()({},e,{disabled:!0,value:n+(null!=i&&i.includes(".")?i.substring(i.lastIndexOf(".")):"")})},_=function(e){return e=e.replace(/; *charset=.+$/,""),w.test(e)?j.test(e)?"renderableText":"text":x.test(e)?"image":S.test(e)?"video":"binary"},I=function(e,t,n){return(0,g.determineValidationState)(e,n,{invalidMaximumSize:function(){var t,n;return"number"==typeof e.model.maximumSize&&e.model.maximumSize<((null==(t=e.model.value)||null==(n=t.blob)?void 0:n.size)||0)},invalidMinimumSize:function(){var t,n;return"number"==typeof e.model.minimumSize&&e.model.minimumSize>((null==(t=e.model.value)||null==(n=t.blob)?void 0:n.size)||0)},invalidName:function(){return t},invalidContentTypePattern:function(){var t,n;return"string"==typeof(null==(t=e.model.value)||null==(n=t.blob)?void 0:n.type)&&[].concat(e.model.contentTypeRegularExpressionPattern).some((function(t){return"string"==typeof t&&!new RegExp(t).test(e.model.value.blob.type)||null!==t&&"object"==typeof t&&!t.test(e.model.value.blob.type)}))},invalidInvertedContentTypePattern:function(){var t,n;return"string"==typeof(null==(t=e.model.value)||null==(n=t.blob)?void 0:n.type)&&[].concat(e.model.invertedContentTypeRegularExpressionPattern).some((function(t){return"string"==typeof t&&new RegExp(t).test(e.model.value.blob.type)||null!==t&&"object"==typeof t&&t.test(e.model.value.blob.type)}))}})},P=function(e,t){return void 0===t&&(t="utf-8"),new Promise((function(n,r){var i=new FileReader;i.onload=function(e){var r=e.target.result;r.length&&t.endsWith("-sig")&&65279===r.charCodeAt(0)&&(r=r.slice(1)),r=r.replace(/\r\n/g,"\n"),n(r)},i.onabort=function(){return r(new Error("abort"))},i.onerror=function(){return r(new Error)},i.readAsText(e,t.endsWith("-sig")?t.substring(0,t.length-"-sig".length):t)}))},N=function(e,n){var i,l,x,j,S,T,C,O,N,k=function(e){var t=(0,g.mapPropertiesIntoModel)(e,q.defaultProperties.model);return I(t,!1,t.model.state),(0,g.getConsolidatedProperties)(t)},E=function(e){var t;null!=(t=V.current)&&t.properties&&(G.model.fileName=V.current.properties.model);var n=k(G);delete G.model.value,delete G.value,G.styles=u().copy(G.styles),u().extend(!0,G,n),(0,g.triggerCallbackIfExists)(G,"change",H,G,e)},A=function e(t,n,i,o){if(void 0===o&&(o=!1),G.model.mutable&&G.model.writable){if(t&&D.current&&t.target===D.current){var a;if(null==(a=(n=t).target.files)||!a.length)return;var l,s=n.target.files[0];G.value={blob:s,name:s.name},G.value.name=(null==(l=G.generateFileNameInputProperties(r()({disabled:G.disabled,value:s.name},b.W2,{model:G.model.fileName,onChangeValue:e,default:G.value.name}),G))?void 0:l.value)||s.name}K((function(e){var i,a;if(null===t?G.value=t:"string"==typeof t?G.value=r()({},e.value,{name:t}):"string"!=typeof t.source&&"string"!=typeof t.url||(G.value=o?r()({},e.value,t):t),u().equals(e.value,G.value))return e;var l=!1,s=r()({},e,{value:G.value});return e.modelState.pristine&&(G.dirty=!0,G.pristine=!1,l=!0),E(n),I(G,(null==(i=V.current)||null==(a=i.properties)?void 0:a.invalid)||!1,e.modelState)&&(l=!0),(0,g.triggerCallbackIfExists)(G,"changeValue",H,G.value,n,G),l&&(s.modelState=G.model.state,(0,g.triggerCallbackIfExists)(G,"changeState",H,G.model.state,n,G)),o&&(s.attachBlobProperty=!0),s}))}},R=function(e){return K((function(t){var n=!1;t.modelState.focused||(G.focused=!0,n=!0),t.modelState.untouched&&(G.touched=!0,G.untouched=!1,n=!0);var i=t;return n&&(E(e),i=r()({},t,{modelState:G.model.state}),(0,g.triggerCallbackIfExists)(G,"changeState",H,G.model.state,e,G)),(0,g.triggerCallbackIfExists)(G,"touch",H,e,G),i}))},M=(0,s.useRef)(null),B=(0,s.useRef)(null),D=(0,s.useRef)(null),V=(0,s.useRef)(null),L=(0,s.useRef)(null),F=(0,g.translateKnownSymbols)(e),z=(0,g.determineInitialValue)(F,q.defaultProperties.model.default),W=u().extend(!0,u().copy(q.defaultProperties),F),U=(0,s.useState)({attachBlobProperty:!1,modelState:r()({},q.defaultModelState),value:z}),$=U[0],K=U[1],H=!W.enforceUncontrolled&&(void 0!==(null==(i=F.model)?void 0:i.value)||void 0!==F.value)&&Boolean(F.onChange||F.onChangeValue);(0,g.deriveMissingPropertiesFromState)(W,$);var G=k(W);$.attachBlobProperty&&$.value&&(G.value=u().extend(!0,$.value,G.value));var Y={attachBlobProperty:!1,modelState:G.model.state,value:G.value};!$.attachBlobProperty&&(H||u().equals(G.value,$.value))&&u().equals(G.model.state,$.modelState)||K(Y),H&&(K=(0,g.wrapStateSetter)(K,Y)),(0,s.useImperativeHandle)(n,(function(){return{properties:G,references:{deleteButtonReference:M,downloadLinkReference:B,fileInputReference:D,nameInputReference:V,uploadButtonReference:L},state:r()({modelState:G.model.state},H?{}:{value:G.value})}})),(0,s.useEffect)((function(){t()(o().mark((function e(){var t,n,r,i,l,u;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null,!(null!=(t=G.value)&&t.blob&&G.value.blob instanceof Blob)||G.value.source){e.next=18;break}if(!w.test(G.value.blob.type)){e.next=8;break}return e.next=5,P(G.value.blob);case 5:e.t0=e.sent,e.next=16;break;case 8:if("undefined"!=typeof Blob){e.next=12;break}e.t1=G.value.toString("base64"),e.next=15;break;case 12:return e.next=14,(0,a.blobToBase64String)(G.value.blob);case 14:e.t1=e.sent;case 15:e.t0=e.t1;case 16:e.t2=e.t0,r={source:e.t2};case 18:null!=(n=G.value)&&n.source&&(G.value.blob||(null!=(i=G.value.url)&&i.startsWith("data:")?r={blob:(0,a.dataURLToBlob)(G.value.source)}:G.sourceToBlobOptions&&(r={blob:new Blob([G.value.source],G.sourceToBlobOptions)})),!G.value.url&&null!=(l=G.value.blob)&&l.type&&(u=w.test(G.value.blob.type)?btoa(G.value.source):G.value.source,r={url:"data:"+G.value.blob.type+";base64,"+u})),r&&A(r,void 0,0,!0);case 20:case"end":return e.stop()}}),e)})))().catch(console.error)}));var X=null!=(l=G.value)&&null!=(x=l.blob)&&x.type?_(G.value.blob.type):"binary",J=G.invalid&&(G.showInitialValidationState||G.visited);return(0,y.jsx)(v.WrapConfigurations,{strict:q.strict,themeConfiguration:G.themeConfiguration,tooltip:G.tooltip,children:(0,y.jsxs)(c.Card,{className:[h["file-input"]].concat(null!==(j=G.className)&&void 0!==j?j:[]).join(" "),onBlur:function(e){return K((function(t){var n=!1;return t.modelState.focused&&(G.focused=!1,n=!0),t.modelState.visited||(G.visited=!0,n=!0),n&&(E(e),(0,g.triggerCallbackIfExists)(G,"changeState",H,G.model.state,e,G)),(0,g.triggerCallbackIfExists)(G,"blur",H,e,G),n?r()({},t,{modelState:G.model.state}):t}))},onClick:function(e){(0,g.triggerCallbackIfExists)(G,"click",H,e,G),R(e)},onFocus:function(e){(0,g.triggerCallbackIfExists)(G,"focus",H,e,G),R(e)},style:G.styles,children:[(0,y.jsxs)(c.CardPrimaryAction,{children:[null!=(S=G.value)&&S.url?"image"===X?(0,y.jsx)(c.CardMedia,r()({},G.media,{style:{backgroundImage:"url("+G.value.url+")"}})):"video"===X?(0,y.jsx)("video",{autoPlay:!0,loop:!0,muted:!0,children:(0,y.jsx)("source",{src:G.value.url,type:G.value.blob.type})}):"renderableText"===X?(0,y.jsx)("div",{className:[h["file-input__iframe-wrapper"]].concat(["text/html","text/plain"].includes(G.value.blob.type)?h["file-input__iframe-wrapper--padding"]:[]).join(" "),children:(0,y.jsx)("iframe",{frameBorder:"no",scrolling:"no",src:G.value.url})}):null!=(T=G.value)&&T.source&&"text"===X?(0,y.jsx)("pre",{className:h["file-input__text-representation"],children:G.value.source}):"":null!=(C=G.value)&&C.blob&&G.value.blob instanceof Blob?(0,y.jsx)(d.CircularProgress,{size:"large"}):"",(0,y.jsxs)("div",{children:[(0,y.jsx)(p.Typography,{tag:"h2",use:"headline6",children:J?(0,y.jsx)(m.Theme,{use:"error",children:G.description?G.description:G.name}):G.description?G.description:G.name}),G.declaration?(0,y.jsx)(p.Typography,{style:{marginTop:"-1rem"},tag:"h3",theme:"textSecondaryOnBackground",use:"subtitle2",children:J?(0,y.jsx)(m.Theme,{use:"error",children:G.declaration}):G.declaration}):"",G.value?(0,y.jsx)(f.default,r()({ref:V},G.generateFileNameInputProperties(r()({disabled:G.disabled,value:null==(O=G.value)?void 0:O.name},b.W2,{model:G.model.fileName,onChangeValue:A,default:G.value.name}),G))):"",G.children?G.children({declaration:G.declaration,invalid:J,properties:G,value:G.value}):""]}),(0,y.jsx)("input",{disabled:G.disabled,className:h["file-input__native"],id:G.id||G.name,name:G.name,onChange:A,ref:D,type:"file"})]}),!G.disabled||G.value?(0,y.jsx)(c.CardActions,{children:(0,y.jsxs)(c.CardActionButtons,{children:[G.disabled?"":(0,y.jsx)(c.CardActionButton,{onClick:function(){var e;return null==(e=D.current)?void 0:e.click()},ref:L,ripple:G.ripple,children:G.value?G.editButton:G.newButton}),G.value?(0,y.jsxs)(y.Fragment,{children:[G.disabled?"":(0,y.jsx)(c.CardActionButton,{onClick:function(){return A(null)},ref:M,ripple:G.ripple,children:G.deleteButton}),G.value.url?(0,y.jsx)(c.CardActionButton,{onClick:function(){var e;return null==(e=B.current)?void 0:e.click()},ripple:G.ripple,children:(0,y.jsx)("a",r()({className:h["file-input__download"],download:G.value.name,href:G.value.url,ref:B,target:"_blank"},null!=(N=G.value.blob)&&N.type?{type:G.value.blob.type}:{},{children:G.downloadButton}))}):""]}):""]})}):""]})})};N.displayName="FileInput";var q=(0,s.memo)((0,s.forwardRef)(N));q.wrapped=N,q.webComponentAdapterWrapped="react",q.defaultModelState=b.q,q.defaultProperties=r()({},b.Uz,{model:r()({},b.Uz.model,{state:void 0,value:void 0}),value:void 0}),q.propTypes=b.O,q.strict=!1;var k=q}(),O}()}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/* !/usr/bin/env css
|
|
2
|
-
-*- coding: utf-8 -*- */.generic-input{display:block}.generic-input .ace_editor,.generic-input .tox-tinymce{border-radius:0;margin-top:27px;margin-left:-4px;margin-right:4px}.generic-input .tox-tinymce{border-width:1px}.generic-input--custom{padding-top:9px}.generic-input__editor__label{top:9px!important}.generic-input__suggestions{bottom:auto!important;bottom:initial!important;top:54px!important}.generic-input__suggestions{border-top-left-radius:0;border-top-right-radius:0;width:100%}.generic-input__suggestions--pending{padding:10px}.generic-input__suggestions__suggestion{visibility:visible;white-space:break-spaces}.generic-input__suggestions__suggestion__mark{color:var(--mdc-theme-secondary);display:contents}.generic-input input[type=search]::-ms-clear
|
|
2
|
+
-*- coding: utf-8 -*- */.generic-input{display:block}.generic-input .ace_editor,.generic-input .tox-tinymce{border-radius:0;margin-top:27px;margin-left:-4px;margin-right:4px}.generic-input .tox-tinymce{border-width:1px}.generic-input--custom{padding-top:9px}.generic-input__editor__label{top:9px!important}.generic-input__suggestions{bottom:auto!important;bottom:initial!important;top:54px!important}.generic-input__suggestions{border-top-left-radius:0;border-top-right-radius:0;width:100%}.generic-input__suggestions--pending{padding:10px}.generic-input__suggestions__suggestion{visibility:visible;white-space:break-spaces}.generic-input__suggestions__suggestion__mark{color:var(--mdc-theme-secondary);display:contents}.generic-input input[type=search]::-ms-clear,.generic-input input[type=search]::-ms-reveal{display:none;height:0;width:0}.generic-input input[type=search]::-webkit-search-cancel-button,.generic-input input[type=search]::-webkit-search-decoration,.generic-input input[type=search]::-webkit-search-results-button,.generic-input input[type=search]::-webkit-search-results-decoration{display:none}
|
|
3
3
|
/* !/usr/bin/env css
|
|
4
4
|
-*- coding: utf-8 -*- */.generic-animate,.generic-animate__list-wrapper,.generic-animate__wrapper{visibility:visible}.generic-animate-appear,.generic-animate-enter,.generic-animate-exit-active{opacity:0}.generic-animate-appear-active,.generic-animate-enter-active,.generic-animate-exit{opacity:1}.generic-animate-appear-active,.generic-animate-enter-active,.generic-animate-exit-active{-webkit-transition:opacity .2s ease-in;transition:opacity .2s ease-in}.generic-animate-exit-active{opacity:0}.generic-animate-exit-done{display:none}
|