react-input-material 0.0.337 → 0.0.341
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/components/Interval.js
CHANGED
|
@@ -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/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("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/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","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/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("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/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.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,o,i,a,l,c,d,m,u,s,p,f,v,g,h,b,y,x,w){return function(){"use strict";var _,T,k=[function(e){e.exports=w},function(e){e.exports=t},function(e){e.exports=b},function(e){e.exports=g},function(e){e.exports=u},function(e){e.exports=h},function(e,t,n){n.d(t,{WrapTooltip:function(){return c}});var r=n(1),o=n.n(r),i=n(9),a=n(11),l=n(0),c=function(e){var t=e.children,n=e.options;return"string"==typeof n?(0,l.jsx)(a.Tooltip,{content:(0,l.jsx)(i.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=o()({},n,{content:(0,l.jsx)(i.Typography,{use:"caption",children:n.content})})),(0,l.jsx)(a.Tooltip,o()({},n,{children:(0,l.jsx)("div",{className:"generic-tooltip",children:t})}))):(0,l.jsx)(l.Fragment,{children:t})};t.default=c},function(e,t,n){n(1),n(13),n(2),n(4);var r=n(12),o=n(10),i=n(6),a=n(0),l=function(e){var t=e.children,n=e.strict,l=e.themeConfiguration,c=e.tooltip,d=e.wrap;return(0,a.jsx)(r.x,{strict:Boolean(n),children:(0,a.jsx)(i.WrapTooltip,{options:c,children:(0,a.jsx)(o.WrapThemeProvider,{configuration:l,wrap:d,children:t})})})};t.default=l},function(e,t,n){n.d(t,{createDummyStateSetter:function(){return u},deriveMissingPropertiesFromState:function(){return s},wrapStateSetter:function(){return p},triggerCallbackIfExists:function(){return f},translateKnownSymbols:function(){return v},determineInitialValue:function(){return g},determineValidationState:function(){return h},mapPropertiesIntoModel:function(){return b},getConsolidatedProperties:function(){return y},getLabelAndValues:function(){return x},getValueFromSelection:function(){return w},normalizeSelection:function(){return _},parseValue:function(){return T},formatValue:function(){return k},determineInitialRepresentation:function(){return j},useMemorizedValue:function(){return S}});var r=n(1),o=n.n(r),i=n(3),a=n.n(i),l=n(5),c=n(2);function d(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 m(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 m(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 m(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 u=function(e){return function(t){"function"==typeof t&&t(e)}},s=function(e,t){for(var n in 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=o()({},e.model.state):e.model.state={},t.modelState)Object.prototype.hasOwnProperty.call(t.modelState,n)&&void 0===e.model.state[n]&&(e.model.state[n]=t.modelState[n]);return e},p=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)}},f=function(e,t){for(var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];t="on"+a().stringCapitalize(t),e[t]&&(n?e[t].apply(e,o):a().timeout((function(){return e[t].apply(e,o)})))},v=function(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],i=o[0],c=o[1];c===l.UndefinedSymbol?t[i]=void 0:c===l.NullSymbol?t[i]=null:t[i]=a().copy(e[i])}return t},g=function(e,t,n){var r,o;return void 0!==n?n:void 0!==e.value?e.value:void 0!==(null===(r=e.model)||void 0===r?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===(o=e.model)||void 0===o?void 0:o.default)?a().copy(e.model.default):void 0!==t?t:null},h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!1;n=o()({invalidRequired:function(){return!1===e.model.nullable&&"boolean"!==e.model.type&&!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 i=0,a=Object.entries(n);i<a.length;i++){var l=a[i],c=l[0],d=l[1],m=t[c];e.model.state[c]=d(),r=r||m!==t[c]}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},b=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,o=d(Object.keys(n.model).concat("value"));!(r=o()).done;){var i=r.value;Object.prototype.hasOwnProperty.call(n,i)&&void 0!==n[i]&&(n.model[i]=n[i])}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},y=function(e){var t=o()({},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=[],o=d(e);!(t=o()).done;){var i=t.value;["number","string"].includes(typeof i)?(n.push(""+i),r.push(i)):"string"==typeof(null==i?void 0:i.label)?(n.push(i.label),r.push(i.value)):["number","string"].includes(typeof(null==i?void 0:i.value))&&(n.push(""+i.value),r.push(i.value))}return[n,r]}if(null!==e&&"object"==typeof e){var a=Object.keys(e).sort((function(t,n){return e[t].localeCompare(e[n])}));return[a.map((function(t){return e[t]})),a]}return[[],[]]}function w(e,t){if(Array.isArray(t))for(var n,r=d(t);!(n=r()).done;){var o=n.value;if(["number","string"].includes(typeof o)&&""+o===e)return o;if("string"==typeof(null==o?void 0:o.label)&&o.label===e)return o.value;if(["number","string"].includes(typeof(null==o?void 0:o.value))&&""+o.value===e)return o.value}if(null!==t&&"object"==typeof t)for(var i=0,a=Object.entries(t);i<a.length;i++){var l=a[i],c=l[0];if(l[1]===e)return c}return null}function _(e,t){if(e||(e=t,t=void 0),Array.isArray(e)&&e.length){var n=[],r=0;if(Array.isArray(e[0]))for(var i,a=d(e);!(i=a()).done;){var l=i.value,c=l[0],m=l[1];n.push({label:Array.isArray(t)&&r<t.length?t[r]:m,value:c}),r+=1}else if(null!==e[0]&&"object"==typeof e[0])for(var u,s=d(e);!(u=s()).done;){var p=u.value;n.push(o()({},p,{label:Array.isArray(t)&&r<t.length?t[r]:p.label})),r+=1}else for(var f,v=d(e);!(f=v()).done;){var g=f.value;n.push({label:Array.isArray(t)&&r<t.length?t[r]:g,value:g}),r+=1}e=n}if(null!==t&&"object"==typeof t){if(Array.isArray(e)){for(var h,b=[],y=d(e);!(h=y()).done;){var x=h.value;b.push(o()({},x,{label:t.hasOwnProperty(x.value||x.label)?t[x.value||x.label]:!0===x.value&&t.true?t.true:!1===x.value&&t.false?t.false:x.label}))}return b}for(var w=0,_=Object.entries(e);w<_.length;w++){var T=_[w],k=T[0],j=T[1];e[k]=t.hasOwnProperty(k)?t[k]:j}}return e}var T=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 o=t;return![null,void 0].includes(t)&&null!==(r=n[e.model.type])&&void 0!==r&&r.parse&&(o=n[e.model.type].parse(t,e,n)),"number"==typeof o&&isNaN(o)?null:o};function k(e,t,n){var r,o,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=i?"final":"intermediate";return[null,void 0].includes(t)||"number"==typeof t&&isNaN(t)?"":null!==(r=n[e.type||e.model.type])&&void 0!==r&&r.format&&null!==(o=n[e.type||e.model.type].format[a])&&void 0!==o&&o.transform?n[e.type||e.model.type].format[a].transform(t,e,n):String(t)}function j(e,t,n,r,i){if("string"==typeof e.representation)return e.representation;if(null!==n){var l,c=function(e,t){if(t){if(Array.isArray(t))for(var n,r=d(t);!(n=r()).done;){var o=n.value;if(a().equals(o,e))return""+e;if(a().equals(null==o?void 0:o.value,e))return o.label||""+e}if(null!==t&&"object"==typeof t&&"string"==typeof e&&t.hasOwnProperty(e))return t[e]}return null}(n,i);return"string"==typeof c?c:k(o()({},e,{type:e.type||(null===(l=e.model)||void 0===l?void 0:l.type)||t.model.type}),n,r)}return""}var S=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,c.useMemo)((function(){return e}),n)}},function(e){e.exports=p},function(e,t,n){n.d(t,{WrapThemeProvider:function(){return i}});var r=n(4),o=n(0),i=function(e){var t=e.children,n=e.configuration,i=e.wrap;return n?(0,o.jsx)(r.ThemeProvider,{options:n,wrap:!1!==i,children:t}):t}},function(e){e.exports=s},function(e,t,n){n.d(t,{x:function(){return i}});var r=n(2),o=n(0),i=function(e){var t=e.children;return e.strict?(0,o.jsx)(r.StrictMode,{children:t}):(0,o.jsx)(o.Fragment,{children:t})}},function(e){e.exports=n},function(e,t,n){n.d(t,{default:function(){return s}});var r=n(1),o=n.n(r),i=n(5),a=n(21),l="generic-animate",c="generic-animate__list-wrapper",d="generic-animate__wrapper",m=n(0),u=function(e){return(0,m.jsx)(a.CSSTransition,o()({appear:!0,classNames:l,in:!0,timeout:200,unmountOnExit:!0},e,{children:"string"==typeof e.children?(0,m.jsx)("span",{className:d,children:e.children}):Array.isArray(e.children)?(0,m.jsx)("div",{className:c,children:e.children}):e.children}))};u.propTypes={appear:i.boolean,classNames:i.string,in:i.boolean,timeout:i.number};var s=u},function(e,t,n){n.d(t,{default:function(){return $}});var r=n(1),o=n.n(r),i=n(16),a=n.n(i),l=n(17),c=n.n(l),d=n(3),m=n.n(d),u=n(2),s=n(18),p=n(22),f=n(19),v=n(20),g=n(23),h=n(24),b=n(25),y=n(4),x=n(26),w=n(14),_={"rmwc-circular-progress":"rmwc-circular-progress","rmwc-circular-progress--size-xsmall":"rmwc-circular-progress--size-xsmall","rmwc-circular-progress--size-small":"rmwc-circular-progress--size-small","rmwc-circular-progress--size-medium":"rmwc-circular-progress--size-medium","rmwc-circular-progress--size-large":"rmwc-circular-progress--size-large","rmwc-circular-progress--size-xlarge":"rmwc-circular-progress--size-xlarge","rmwc-circular-progress--indeterminate":"rmwc-circular-progress--indeterminate","rmwc-circular-progress__circle":"rmwc-circular-progress__circle","rmwc-circular-progress-indeterminate-bar-rotate":"rmwc-circular-progress-indeterminate-bar-rotate","rmwc-circular-progress__path":"rmwc-circular-progress__path","rmwc-circular-progress-indeterminate-bar-dash":"rmwc-circular-progress-indeterminate-bar-dash","rmwc-circular-progress--thickerstroke":"rmwc-circular-progress--thickerstroke","rmwc-icon":"rmwc-icon","mdc-form-field":"mdc-form-field","mdc-form-field--align-end":"mdc-form-field--align-end","mdc-icon-button":"mdc-icon-button","mdc-icon-button__icon":"mdc-icon-button__icon","mdc-icon-button--on":"mdc-icon-button--on","mdc-icon-button__icon--on":"mdc-icon-button__icon--on","mdc-ripple-upgraded":"mdc-ripple-upgraded","mdc-ripple-upgraded--unbounded":"mdc-ripple-upgraded--unbounded","mdc-ripple-upgraded--foreground-activation":"mdc-ripple-upgraded--foreground-activation","mdc-ripple-fg-radius-in":"mdc-ripple-fg-radius-in","mdc-ripple-fg-opacity-in":"mdc-ripple-fg-opacity-in","mdc-ripple-upgraded--foreground-deactivation":"mdc-ripple-upgraded--foreground-deactivation","mdc-ripple-fg-opacity-out":"mdc-ripple-fg-opacity-out","mdc-ripple-upgraded--background-focused":"mdc-ripple-upgraded--background-focused","mdc-ripple-surface":"mdc-ripple-surface","mdc-ripple-surface--primary":"mdc-ripple-surface--primary","mdc-ripple-surface--accent":"mdc-ripple-surface--accent","rmwc-icon--component":"rmwc-icon--component","rmwc-icon--url":"rmwc-icon--url","rmwc-icon--size-xsmall":"rmwc-icon--size-xsmall","rmwc-icon--size-small":"rmwc-icon--size-small","rmwc-icon--size-medium":"rmwc-icon--size-medium","rmwc-icon--size-large":"rmwc-icon--size-large","rmwc-icon--size-xlarge":"rmwc-icon--size-xlarge","mdc-list":"mdc-list","mdc-list-item":"mdc-list-item","mdc-list-item__secondary-text":"mdc-list-item__secondary-text","mdc-list-item__graphic":"mdc-list-item__graphic","mdc-list-item__meta":"mdc-list-item__meta","mdc-list-group__subheader":"mdc-list-group__subheader","mdc-list-item--disabled":"mdc-list-item--disabled","mdc-list-item__text":"mdc-list-item__text","mdc-list-item__primary-text":"mdc-list-item__primary-text","mdc-list--dense":"mdc-list--dense","mdc-list-item--activated":"mdc-list-item--activated","mdc-list-item--selected":"mdc-list-item--selected","material-icons":"material-icons","mdc-list--avatar-list":"mdc-list--avatar-list","mdc-list--two-line":"mdc-list--two-line","mdc-list--non-interactive":"mdc-list--non-interactive","mdc-list-divider":"mdc-list-divider","mdc-list-divider--padded":"mdc-list-divider--padded","mdc-list-divider--inset":"mdc-list-divider--inset","mdc-list-group":"mdc-list-group","mdc-elevation-overlay":"mdc-elevation-overlay","mdc-menu":"mdc-menu","mdc-menu__selection-group":"mdc-menu__selection-group","mdc-menu__selection-group-icon":"mdc-menu__selection-group-icon","mdc-menu-item--selected":"mdc-menu-item--selected","mdc-menu-surface":"mdc-menu-surface","mdc-menu-surface--open":"mdc-menu-surface--open","mdc-menu-surface--animating-open":"mdc-menu-surface--animating-open","mdc-menu-surface--animating-closed":"mdc-menu-surface--animating-closed","mdc-menu-surface--anchor":"mdc-menu-surface--anchor","mdc-menu-surface--fixed":"mdc-menu-surface--fixed","mdc-select--with-leading-icon":"mdc-select--with-leading-icon","mdc-select--disabled":"mdc-select--disabled","mdc-select__icon":"mdc-select__icon","mdc-select-helper-text":"mdc-select-helper-text","mdc-select-helper-text--persistent":"mdc-select-helper-text--persistent","mdc-select":"mdc-select","mdc-select__anchor":"mdc-select__anchor","mdc-select__selected-text":"mdc-select__selected-text","mdc-floating-label":"mdc-floating-label","mdc-line-ripple":"mdc-line-ripple","mdc-select--focused":"mdc-select--focused","mdc-select--outlined":"mdc-select--outlined","mdc-floating-label--float-above":"mdc-floating-label--float-above","mdc-select__dropdown-icon":"mdc-select__dropdown-icon","mdc-select--activated":"mdc-select--activated","mdc-select-helper-text--validation-msg":"mdc-select-helper-text--validation-msg","mdc-notched-outline__leading":"mdc-notched-outline__leading","mdc-notched-outline__notch":"mdc-notched-outline__notch","mdc-notched-outline__trailing":"mdc-notched-outline__trailing","mdc-notched-outline":"mdc-notched-outline","mdc-floating-label--shake":"mdc-floating-label--shake","mdc-floating-label-shake-float-above-text-field-outlined":"mdc-floating-label-shake-float-above-text-field-outlined","mdc-notched-outline--upgraded":"mdc-notched-outline--upgraded","mdc-select--invalid":"mdc-select--invalid","mdc-select--required":"mdc-select--required","mdc-select--no-label":"mdc-select--no-label","mdc-floating-label-shake-float-above-select-outlined-leading-icon":"mdc-floating-label-shake-float-above-select-outlined-leading-icon","mdc-floating-label-shake-float-above-select-outlined-leading-icon-rtl":"mdc-floating-label-shake-float-above-select-outlined-leading-icon-rtl","mdc-select__menu":"mdc-select__menu","rmwc-select__native-control":"rmwc-select__native-control","mdc-floating-label-shake-float-above-standard":"mdc-floating-label-shake-float-above-standard","mdc-line-ripple--active":"mdc-line-ripple--active","mdc-line-ripple--deactivating":"mdc-line-ripple--deactivating","mdc-notched-outline--notched":"mdc-notched-outline--notched","mdc-notched-outline--no-label":"mdc-notched-outline--no-label","mdc-text-field-helper-text":"mdc-text-field-helper-text","mdc-text-field-helper-text--persistent":"mdc-text-field-helper-text--persistent","mdc-text-field-character-counter":"mdc-text-field-character-counter","mdc-text-field__icon":"mdc-text-field__icon","mdc-text-field":"mdc-text-field","mdc-text-field__ripple":"mdc-text-field__ripple","mdc-text-field--disabled":"mdc-text-field--disabled","mdc-text-field__input":"mdc-text-field__input","mdc-text-field-helper-line":"mdc-text-field-helper-line","mdc-text-field__icon--leading":"mdc-text-field__icon--leading","mdc-text-field__icon--trailing":"mdc-text-field__icon--trailing","mdc-text-field--textarea":"mdc-text-field--textarea","mdc-text-field--outlined":"mdc-text-field--outlined","mdc-text-field--outlined--with-leading-icon":"mdc-text-field--outlined--with-leading-icon","mdc-text-field--focused":"mdc-text-field--focused","mdc-text-field--fullwidth":"mdc-text-field--fullwidth","mdc-text-field--no-label":"mdc-text-field--no-label","mdc-text-field--dense":"mdc-text-field--dense","mdc-floating-label-shake-float-above-text-field-outlined-dense":"mdc-floating-label-shake-float-above-text-field-outlined-dense","mdc-text-field--with-leading-icon":"mdc-text-field--with-leading-icon","mdc-floating-label-shake-float-above-text-field-outlined-leading-icon":"mdc-floating-label-shake-float-above-text-field-outlined-leading-icon","mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl":"mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl","mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-dense":"mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-dense","mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-dense-rtl":"mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-dense-rtl","mdc-text-field--with-trailing-icon":"mdc-text-field--with-trailing-icon","mdc-floating-label-shake-float-above-text-field-dense":"mdc-floating-label-shake-float-above-text-field-dense","mdc-floating-label-shake-float-above-textarea":"mdc-floating-label-shake-float-above-textarea","mdc-text-field--invalid":"mdc-text-field--invalid","mdc-text-field-helper-text--validation-msg":"mdc-text-field-helper-text--validation-msg","mdc-text-field--end-aligned":"mdc-text-field--end-aligned","mdc-theme--primary":"mdc-theme--primary","mdc-theme--secondary":"mdc-theme--secondary","mdc-theme--background":"mdc-theme--background","mdc-theme--surface":"mdc-theme--surface","mdc-theme--error":"mdc-theme--error","mdc-theme--on-primary":"mdc-theme--on-primary","mdc-theme--on-secondary":"mdc-theme--on-secondary","mdc-theme--on-surface":"mdc-theme--on-surface","mdc-theme--on-error":"mdc-theme--on-error","mdc-theme--text-primary-on-background":"mdc-theme--text-primary-on-background","mdc-theme--text-secondary-on-background":"mdc-theme--text-secondary-on-background","mdc-theme--text-hint-on-background":"mdc-theme--text-hint-on-background","mdc-theme--text-disabled-on-background":"mdc-theme--text-disabled-on-background","mdc-theme--text-icon-on-background":"mdc-theme--text-icon-on-background","mdc-theme--text-primary-on-light":"mdc-theme--text-primary-on-light","mdc-theme--text-secondary-on-light":"mdc-theme--text-secondary-on-light","mdc-theme--text-hint-on-light":"mdc-theme--text-hint-on-light","mdc-theme--text-disabled-on-light":"mdc-theme--text-disabled-on-light","mdc-theme--text-icon-on-light":"mdc-theme--text-icon-on-light","mdc-theme--text-primary-on-dark":"mdc-theme--text-primary-on-dark","mdc-theme--text-secondary-on-dark":"mdc-theme--text-secondary-on-dark","mdc-theme--text-hint-on-dark":"mdc-theme--text-hint-on-dark","mdc-theme--text-disabled-on-dark":"mdc-theme--text-disabled-on-dark","mdc-theme--text-icon-on-dark":"mdc-theme--text-icon-on-dark","mdc-theme--primary-bg":"mdc-theme--primary-bg","mdc-theme--secondary-bg":"mdc-theme--secondary-bg","mdc-button":"mdc-button","mdc-button__ripple":"mdc-button__ripple","mdc-fab":"mdc-fab","mdc-fab__ripple":"mdc-fab__ripple","mdc-top-app-bar":"mdc-top-app-bar","mdc-tab-bar":"mdc-tab-bar","mdc-tab":"mdc-tab","mdc-tab--active":"mdc-tab--active","mdc-tab__text-label":"mdc-tab__text-label","mdc-drawer":"mdc-drawer","mdc-chip__text__primary-action":"mdc-chip__text__primary-action","mdc-linear-progress":"mdc-linear-progress","rmwc-tooltip":"rmwc-tooltip","rmwc-tooltip-hidden":"rmwc-tooltip-hidden","rmwc-tooltip-zoom-enter":"rmwc-tooltip-zoom-enter","rmwc-tooltip-zoom-leave":"rmwc-tooltip-zoom-leave","rmwc-tooltip-zoom-appear":"rmwc-tooltip-zoom-appear","rmwc-tooltip-zoom-appear-active":"rmwc-tooltip-zoom-appear-active","rmwc-tooltip-zoom-enter-active":"rmwc-tooltip-zoom-enter-active",rmwcToolTipIn:"rmwcToolTipIn","rmwc-tooltip-zoom-leave-active":"rmwc-tooltip-zoom-leave-active",rmwcToolTipOut:"rmwcToolTipOut","rmwc-tooltip-inner":"rmwc-tooltip-inner","rmwc-tooltip--show-arrow":"rmwc-tooltip--show-arrow","rmwc-tooltip-arrow":"rmwc-tooltip-arrow","rmwc-tooltip-arrow-inner":"rmwc-tooltip-arrow-inner","rmwc-tooltip-placement-top":"rmwc-tooltip-placement-top","rmwc-tooltip-placement-topLeft":"rmwc-tooltip-placement-topLeft","rmwc-tooltip-placement-topRight":"rmwc-tooltip-placement-topRight","rmwc-tooltip-placement-right":"rmwc-tooltip-placement-right","rmwc-tooltip-placement-rightBottom":"rmwc-tooltip-placement-rightBottom","rmwc-tooltip-placement-rightTop":"rmwc-tooltip-placement-rightTop","rmwc-tooltip-placement-left":"rmwc-tooltip-placement-left","rmwc-tooltip-placement-leftBottom":"rmwc-tooltip-placement-leftBottom","rmwc-tooltip-placement-leftTop":"rmwc-tooltip-placement-leftTop","rmwc-tooltip-placement-bottom":"rmwc-tooltip-placement-bottom","rmwc-tooltip-placement-bottomLeft":"rmwc-tooltip-placement-bottomLeft","rmwc-tooltip-placement-bottomRight":"rmwc-tooltip-placement-bottomRight","mdc-typography":"mdc-typography","mdc-typography--headline1":"mdc-typography--headline1","mdc-typography--headline2":"mdc-typography--headline2","mdc-typography--headline3":"mdc-typography--headline3","mdc-typography--headline4":"mdc-typography--headline4","mdc-typography--headline5":"mdc-typography--headline5","mdc-typography--headline6":"mdc-typography--headline6","mdc-typography--subtitle1":"mdc-typography--subtitle1","mdc-typography--subtitle2":"mdc-typography--subtitle2","mdc-typography--body1":"mdc-typography--body1","mdc-typography--body2":"mdc-typography--body2","mdc-typography--caption":"mdc-typography--caption","mdc-typography--button":"mdc-typography--button","mdc-typography--overline":"mdc-typography--overline","generic-input":"generic-input","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","mdc-select-float-native-control":"mdc-select-float-native-control"},T=n(7),k=n(6),j=n(8),S=n(29),I=n(0);function O(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 P(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 P(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 P(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 C=!(void 0===typeof window),q=C?(0,d.optionalRequire)("react-useanimations"):null,z=C?(0,d.optionalRequire)("react-useanimations/lib/lock"):null,E=C?(0,d.optionalRequire)("react-useanimations/lib/plusToX"):null,N={basePath:"/node_modules/ace-builds/src-noconflict/",useWorker:!1},A=(0,u.lazy)(a()(c().mark((function e(){var t,r,o,i,a,l,d;return c().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,o=0,i=Object.entries(N);o<i.length;o++)a=i[o],l=a[0],d=a[1],r.set(l,d);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)}))));if(void 0===R)var R=1;var M=!1,L="/node_modules/tinymce/",V={base_url:L,skin_url:L+"skins/ui/oxide",theme_url:L+"themes/silver/theme.min.js",allow_conditional_comments:!1,allow_script_urls:!1,body_class:"mdc-text-field__input",branding:!1,cache_suffix:"?version="+R,contextmenu:!1,convert_fonts_to_spans:!0,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 hr nonbreaking searchreplace visualblocks",relative_urls:!1,remove_script_host:!1,remove_trailing_brs:!0,schema:"html5",toolbar1:"cut copy paste | undo redo removeformat | styleselect formatselect fontselect fontsizeselect | searchreplace visualblocks fullscreen code",toolbar2:"alignleft aligncenter alignright alignjustify outdent indent | link hr nonbreaking bullist numlist bold italic underline strikethrough",trim:!0};function B(e,t){return(0,j.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 D(e){m().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 W=function(e,t){var n,r,i,a,l,c,d,S;(0,u.useEffect)((function(){if($e||be.selectionIsUnstable)if(Ke.editorIsActive){var e,t,n;null!==(e=oe.current)&&void 0!==e&&null!==(t=e.editor)&&void 0!==t&&t.selection?(oe.current.editor.textInput.focus(),H(oe.current),be.selectionIsUnstable&&ye(o()({},be,{selectionIsUnstable:!1}))):null!==(n=de.current)&&void 0!==n&&n.selection&&(de.current.focus(!1),Y(de.current),be.selectionIsUnstable&&ye(o()({},be,{selectionIsUnstable:!1})))}else le.current&&(le.current.setSelectionRange(Ke.cursor.start,Ke.cursor.end),be.selectionIsUnstable&&ye(o()({},be,{selectionIsUnstable:!1})))}));var P=function(e){return"clear_preset"===e?{icon:(0,I.jsx)(w.default,{in:!m().equals(Ke.value,Ke.default),children:null===q||q.isDummy?(0,I.jsx)(v.IconButton,{icon:"clear"}):(0,I.jsx)(q,{animation:E,reverse:!0})}),onClick:function(e){e.preventDefault(),e.stopPropagation(),Z((0,j.parseValue)(Ke,Ke.default,U.transformer))},strategy:"component",tooltip:"Clear input"}:"password_preset"===e?(0,j.useMemorizedValue)({icon:null===q||q.isDummy?(0,I.jsx)(v.IconButton,{icon:Ke.hidden?"lock_open":"lock"}):(0,I.jsx)(q,{animation:z,reverse:!Ke.hidden}),onClick:function(e){e.preventDefault(),e.stopPropagation(),_e((function(t){return void 0===t&&(t=Ke.hidden),Ke.hidden=!t,X(e),Ke.hidden}))},strategy:"component",tooltip:(Ke.hidden?"Show":"Hide")+" password"},Ke.hidden):e},C=function(e){var t,n;return"string"===e.type?e.hidden?"password":"text":null!==(t=null===(n=ze[e.type])||void 0===n?void 0:n.type)&&void 0!==t?t:e.type},N=function(e){if("string"==typeof e){var t=m().stringEvaluate("`"+e+"`",o()({formatValue:function(e){return(0,j.formatValue)(Ke,e,ze)}},Ke));return t.error?(console.warn("Given message template could not be proceed: "+t.error),""):t.result}return""},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return"boolean"==typeof t?n?(0,I.jsx)(w.default,{in:t,children:e}):t?e:"":n?(0,I.jsx)(w.default,o()({},t,{children:e})):t.in?e:""},L=function(e){var t;if("object"==typeof e&&null!==(t=e)&&void 0!==t&&t.tooltip){var n=e.tooltip;delete(e=o()({},e)).tooltip;var r=o()({},e);e.strategy="component",e.icon=(0,I.jsx)(k.default,{options:n,children:(0,I.jsx)(f.Icon,{icon:r})})}return e},W=function(e,t,n){if(!Ke.value)return 0;var r="generic-input-selection-indicator",o=" "+r+'="###"';t.setAttribute(r,"###");var i=e.innerHTML.replace(/(<\/p>)/gi,"$1\n");t.removeAttribute(r);var a=i.indexOf(o)+o.length;return n+i.indexOf(">",a)+1-o.length},$=function(e,t){return"string"==typeof Ke.value||Ke.value?t>0?e+Ke.value.split("\n").slice(0,t).map((function(e){return 1+e.length})).reduce((function(e,t){return e+t})):e:0},K=function(e){var t={column:0,row:0};if("string"==typeof Ke.value)for(var n,r=O(Ke.value.split("\n"));!(n=r()).done;){var o=n.value;if(!(o.length<e)){t.column=e;break}e-=1+o.length,t.row+=1}return t},H=function(e){var t=e.editor.selection.getRange(),n=K(Ke.cursor.end);t.setEnd(n.row,n.column);var r=K(Ke.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:Ke.cursor.end+t.start.length,start:Ke.cursor.start},r=["start","end"],o=Ke.representation,i=0,a=r;i<a.length;i++){var l=a[i];o=o.substring(0,n[l])+t[l]+o.substring(n[l])}e.getBody().innerHTML=o;for(var c,d=document.createTreeWalker(e.getBody(),NodeFilter.SHOW_TEXT,null),u=e.dom.createRng(),s={};c=d.nextNode();)for(var p,f=O(r);!(p=f()).done;){var v=p.value;if(c.nodeValue){var g=c.nodeValue.indexOf(t[v]);g>-1&&(c.nodeValue=c.nodeValue.replace(t[v],""),s[v]=[c,g])}}for(var h=0,b=r;h<b.length;h++){var y=b[h];s[y]&&u["set"+m().stringCapitalize(y)].apply(u,s[y])}s.end&&s.start&&e.selection.setRng(u)},G=function(e){var t=(0,j.getConsolidatedProperties)(function(e){var t=(0,j.mapPropertiesIntoModel)(e,U.defaultProperties.model);return t.model.value=(0,j.parseValue)(t,t.model.value,ze),B(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,j.formatValue)(t,t.value,ze,!t.focused),t.focused&&t.representation!==t.value&&["password","text"].includes(C(t))&&($e=!0)),t},X=function(e){m().extend(!0,Ke,G(Ke)),(0,j.triggerCallbackIfExists)(Ke,"change",We,Ke,e)},J=function(e){e&&(e.preventDefault(),e.stopPropagation()),ye((function(t){var n=t.editorIsActive;return Ke.editorIsActive=!n,X(e),(0,j.triggerCallbackIfExists)(Ke,"changeEditorIsActive",We,Ke.editorIsActive,e,Ke),{editorIsActive:Ke.editorIsActive,selectionIsUnstable:!0}}))},Q=function(e){e&&(e.preventDefault(),e.stopPropagation()),Oe((function(t){return Ke.showDeclaration=!t,X(e),(0,j.triggerCallbackIfExists)(Ke,"changeShowDeclaration",We,Ke.showDeclaration,e,Ke),Ke.showDeclaration}))},Z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(!Ke.disabled){var r;if(null!==e&&"object"==typeof e){var i=e.target||e.detail;Ke.value=i?void 0===i.value?null:i.value:e}else Ke.value=e;var a=function(){return Fe((function(e){if(!Ue&&e.representation===Ke.representation&&!Ke.suggestionCreator&&-1===n)return e;var t=o()({},e,{representation:Ke.representation});if(!We&&m().equals(e.value,Ke.value))return t;t.value=Ke.value;var i=!1;return e.modelState.pristine&&(Ke.dirty=!0,Ke.pristine=!1,i=!0),X(r),B(Ke,e.modelState)&&(i=!0),(0,j.triggerCallbackIfExists)(Ke,"changeValue",We,Ke.value,r,Ke),i&&(t.modelState=Ke.model.state,(0,j.triggerCallbackIfExists)(Ke,"changeState",We,Ke.model.state,r,Ke)),(ct||-1!==n)&&(0,j.triggerCallbackIfExists)(Ke,"select",We,r,Ke),t}))};if(Ke.representation=-1!==n?Ze[n]:"string"==typeof Ke.value?Ke.value:(0,j.formatValue)(Ke,Ke.value,ze),tt)if(Ke.suggestionCreator){var l=new AbortController,c=function(e){if(!l.signal.aborted){if(Ae((function(t){return t instanceof AbortController&&!t.signal.aborted&&t.abort(),e})),-1===n){var t=(0,j.getValueFromSelection)(Ke.representation,(0,j.normalizeSelection)(e));null!==t||Ke.searchSelection?Ke.value=t:Ke.value=(0,j.parseValue)(Ke,Ke.representation,ze)}a()}},d=Ke.suggestionCreator({abortController:l,properties:Ke,query:Ke.representation});null!=d&&d.then?(Ae((function(e){return e instanceof AbortController&&!e.signal.aborted&&e.abort(),l})),Fe((function(e){return o()({},e,{representation:Ke.representation})})),d.then(c,m().noop)):c(d)}else{if(-1===n){var u=(0,j.getValueFromSelection)(Ke.representation,Re);null!==u||Ke.searchSelection?Ke.value=u:Ke.value=(0,j.parseValue)(Ke,Ke.representation,ze)}a()}else Ke.value=(0,j.parseValue)(Ke,Ke.value,ze),a()}},ee=function(e){ne(e),(0,j.triggerCallbackIfExists)(Ke,"click",We,e,Ke),re(e)},te=function(e){e.keyCode&&(ne(e),(0,j.triggerCallbackIfExists)(Ke,"keyUp",We,e,Ke))},ne=function(e){!function(e){var t,n,r,o,i,a,l,c=null===(t=oe.current)||void 0===t||null===(n=t.editor)||void 0===n||null===(r=n.selection)||void 0===r?void 0:r.getRange(),d=null===(o=de.current)||void 0===o||null===(i=o.selection)||void 0===i?void 0:i.getRng(),m=null===(a=le.current)||void 0===a?void 0:a.selectionEnd,u=null===(l=le.current)||void 0===l?void 0:l.selectionStart;if(c)ge({end:$(c.end.column,"number"==typeof c.end.row?c.end.row:"string"==typeof Ke.value?Ke.value.split("\n").length-1:0),start:$(c.start.column,"number"==typeof c.start.row?c.start.row:"string"==typeof Ke.value?Ke.value.split("\n").length-1:0)});else if(d)ge({end:W(de.current.getBody(),de.current.selection.getEnd(),d.endOffset),start:W(de.current.getBody(),de.current.selection.getStart(),d.startOffset)});else if("number"==typeof m&&"number"==typeof u){var s,p=1===(null==e||null===(s=e.key)||void 0===s?void 0:s.length)?1:"Backspace"===(null==e?void 0:e.key)&&Ke.representation.length>u?-1:0;ge({end:m+p,start:u+p})}}(e),(0,j.triggerCallbackIfExists)(Ke,"selectionChange",We,e,Ke)},re=function(e){return Fe((function(t){var n=!1;t.modelState.focused||(Ke.focused=!0,n=!0),t.modelState.untouched&&(Ke.touched=!0,Ke.untouched=!1,n=!0);var r=t;return n&&(X(e),r=o()({},t,{modelState:Ke.model.state}),(0,j.triggerCallbackIfExists)(Ke,"changeState",We,Ke.model.state,e,Ke)),(0,j.triggerCallbackIfExists)(Ke,"touch",We,e,Ke),r}))},oe=(0,u.useRef)(null),ie=(0,u.useRef)(null),ae=(0,u.useRef)(null),le=(0,u.useRef)(null),ce=(0,u.useRef)(null),de=(0,u.useRef)(null),me=(0,u.useRef)(null),ue=(0,u.useRef)(null),se=(0,u.useRef)(null),pe=(0,j.translateKnownSymbols)(e),fe=(0,u.useState)({end:0,start:0}),ve=fe[0],ge=fe[1],he=(0,u.useState)({editorIsActive:!1,selectionIsUnstable:!1}),be=he[0],ye=he[1],xe=(0,u.useState)(),we=xe[0],_e=xe[1],Te=(0,u.useState)(!1),ke=Te[0],je=Te[1],Se=(0,u.useState)(!1),Ie=Se[0],Oe=Se[1],Pe=(0,j.determineInitialValue)(pe,null===(n=U.defaultProperties.model)||void 0===n?void 0:n.default),Ce=m().extend(!0,m().copy(U.defaultProperties),pe),qe=Ce.type||(null===(r=Ce.model)||void 0===r?void 0:r.type)||"string",ze=Ce.transformer?o()({},U.transformer,((i={})[qe]=m().extend(!0,m().copy(U.transformer[qe])||{},Ce.transformer),i)):U.transformer,Ee=(0,u.useState)(),Ne=Ee[0],Ae=Ee[1];(Ce.selection||null!==(a=Ce.model)&&void 0!==a&&a.selection)&&(Ne=Ce.selection||(null===(l=Ce.model)||void 0===l?void 0:l.selection));var Re=Ne instanceof AbortController?[]:(0,j.normalizeSelection)(Ne,Ce.labels),Me=Ne instanceof AbortController?[[],[]]:(0,j.getLabelAndValues)(Re),Le=Me[0],Ve=Me[1],Be=(0,u.useState)((function(){return{modelState:o()({},U.defaultModelState),representation:(0,j.determineInitialRepresentation)(Ce,U.defaultProperties,Pe,ze,Re),value:Pe}})),De=Be[0],Fe=Be[1],We=!Ce.enforceUncontrolled&&(void 0!==(null===(c=pe.model)||void 0===c?void 0:c.value)||void 0!==pe.value)&&Boolean(pe.onChange||pe.onChangeValue),Ue=We&&void 0!==pe.representation,$e=!1;null!==Ce.cursor&&"object"==typeof Ce.cursor||(Ce.cursor={}),void 0===Ce.cursor.end&&(Ce.cursor.end=ve.end),void 0===Ce.cursor.start&&(Ce.cursor.start=ve.start),void 0===Ce.editorIsActive&&(Ce.editorIsActive=be.editorIsActive),void 0===Ce.hidden&&(Ce.hidden=we),void 0===Ce.representation&&(Ce.representation=De.representation),void 0===Ce.showDeclaration&&(Ce.showDeclaration=Ie),(0,j.deriveMissingPropertiesFromState)(Ce,De),void 0===Ce.value?void 0===Ce.representation&&void 0===Ce.model.value&&(Ce.representation=De.representation):Ue||Ce.value===De.value||(Ce.representation=void 0);var Ke=G(Ce);void 0===Ke.hidden&&(Ke.hidden=null===(d=Ke.name)||void 0===d?void 0:d.startsWith("password")),m().equals(Ke.cursor,ve)||ge(Ke.cursor),Ke.editorIsActive!==be.editorIsActive&&ye(o()({},be,{editorIsActive:Ke.editorIsActive})),Ke.hidden!==we&&_e(Ke.hidden),Ke.showDeclaration!==Ie&&Oe(Ke.showDeclaration);var He={modelState:Ke.model.state,representation:Ke.representation,value:Ke.value};(We||m().equals(Ke.value,De.value)&&Ke.representation===De.representation)&&m().equals(Ke.model.state,De.modelState)||Fe(He),We&&(Fe=(0,j.wrapStateSetter)(Fe,He)),(0,u.useImperativeHandle)(t,(function(){for(var e,t={modelState:Ke.model.state},n=O(["cursor","editorIsActive","hidden","showDeclaration"]);!(e=n()).done;){var r=e.value;pe.hasOwnProperty(r)||(t[r]=Ke[r])}return Ue||(t.representation=Ke.representation),We||(t.value=Ke.value),{properties:Ke,references:{codeEditorReference:oe,codeEditorInputReference:ie,foundationReference:ae,inputReference:le,richTextEditorInputReference:ce,richTextEditorInstance:de,richTextEditorReference:me,suggestionMenuAPIReference:ue,suggestionMenuFoundationReference:se},state:t}}));var Ye={onBlur:function(e){return Fe((function(t){je(!1);var n=!1,r=!1;if(t.modelState.focused&&(Ke.focused=!1,n=!0,r=!0),t.modelState.visited||(Ke.visited=!0,n=!0,r=!0),!tt||Ke.suggestSelection){var o=(0,j.getValueFromSelection)(Ke.representation,Re);null===o?(Ke.value=(0,j.parseValue)(Ke,Ke.value,ze),Ke.representation=(0,j.formatValue)(Ke,Ke.value,ze)):Ke.value=o}return m().equals(t.value,Ke.value)&&t.representation===Ke.representation||(n=!0),n&&X(e),m().equals(t.value,Ke.value)||(0,j.triggerCallbackIfExists)(Ke,"changeValue",We,Ke.value,e,Ke),r&&(0,j.triggerCallbackIfExists)(Ke,"changeState",We,Ke.model.state,e,Ke),(0,j.triggerCallbackIfExists)(Ke,"blur",We,e,Ke),n?{modelState:Ke.model.state,representation:Ke.representation,value:Ke.value}:t}))},onFocus:function(e){je(!0),(0,j.triggerCallbackIfExists)(Ke,"focus",We,e,Ke),re(e)},placeholder:Ke.placeholder},Ge={disabled:Ke.disabled,helpText:{children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(w.default,{in:Ke.selectableEditor&&"string"===Ke.type&&"plain"!==Ke.editor,children:(0,I.jsx)(v.IconButton,{icon:{icon:Ke.editorIsActive?"subject":Ke.editor.startsWith("code")?"code":"text_format",onClick:J}})}),(0,I.jsx)(w.default,{in:Boolean(Ke.declaration),children:(0,I.jsx)(v.IconButton,{icon:{icon:"more_"+(Ke.showDeclaration?"vert":"horiz"),onClick:Q}})}),(0,I.jsx)(w.default,{in:Ke.showDeclaration,children:Ke.declaration}),(0,I.jsx)(w.default,{in:!Ke.showDeclaration&&Ke.invalid&&(Ke.showInitialValidationState||Ke.visited),children:(0,I.jsx)(y.Theme,{use:"error",children:N(Ke.invalidMaximum&&Ke.maximumText||Ke.invalidMaximumLength&&Ke.maximumLengthText||Ke.invalidMinimum&&Ke.minimumText||Ke.invalidMinimumLength&&Ke.minimumLengthText||Ke.invalidInvertedPattern&&Ke.invertedPatternText||Ke.invalidPattern&&Ke.patternText||Ke.invalidRequired&&Ke.requiredText)})})]}),persistent:Boolean(Ke.declaration)},invalid:Ke.showInitialValidationState&&Ke.invalid,label:Ke.description||Ke.name,outlined:Ke.outlined,required:Ke.required};Ke.icon&&(Ge.icon=L(P(Ke.icon)));var Xe=o()({},V,{content_style:Ke.disabled?"body {opacity: .38}":"",placeholder:Ke.placeholder,readonly:Boolean(Ke.disabled),setup:function(e){de.current=e,de.current.on("init",(function(){de.current&&(M=!0,Ke.editorIsActive&&be.selectionIsUnstable&&(de.current.focus(!1),Y(de.current),ye(o()({},be,{selectionIsUnstable:!1}))))}))}});Ke.editor.endsWith("raw)")?(Xe.toolbar1="cut copy paste | undo redo removeformat | code | fullscreen",delete Xe.toolbar2):Ke.editor.endsWith("simple)")?(Xe.toolbar1="cut copy paste | undo redo removeformat | bold italic underline strikethrough subscript superscript | fullscreen",delete Xe.toolbar2):Ke.editor.endsWith("normal)")&&(Xe.toolbar1="cut copy paste | undo redo removeformat | styleselect formatselect | searchreplace visualblocks fullscreen code");var Je=!Ke.selection&&"string"===Ke.type&&Ke.editorIsActive&&(Ke.editor.startsWith("code")||Ke.editor.startsWith("richtext(")),Qe=[],Ze=[],et=[],tt=Boolean(Ke.suggestionCreator||Le.length&&(Ke.searchSelection||Ke.suggestSelection));if(tt&&Le.length){Ke.suggestSelection=!Ke.searchSelection;for(var nt,rt=0,ot=O(Le);!(nt=ot()).done;){var it=nt.value;if(m().isFunction(Ke.children)){var at=Ke.children({index:rt,normalizedSelection:Re,properties:Ke,query:Ke.representation,suggestion:it,value:Ve[rt]});at&&(Qe.push((0,I.jsx)(g.MenuItem,{className:_["generic-input__suggestions__suggestion"],children:at},rt)),Ze.push(it),et.push(Ve[rt]))}else if(!Ke.representation||Ke.suggestionCreator||F(it,Ke.representation)){var lt;Qe.push((0,I.jsx)(g.MenuItem,{className:_["generic-input__suggestions__suggestion"],dangerouslySetInnerHTML:{__html:m().stringMark(it,(null===(lt=Ke.representation)||void 0===lt?void 0:lt.split(" "))||"",(function(e){return(""+e).toLowerCase()}),'<span class="'+_["generic-input__suggestions__suggestion__mark"]+'">{1}</span>')}},rt)),Ze.push(it),et.push(Ve[rt])}rt+=1}}var ct=(Boolean(Re)||Boolean(Ke.labels))&&!tt;return(0,I.jsx)(T.default,{strict:U.strict,themeConfiguration:Ke.themeConfiguration,tooltip:Ke.tooltip,children:(0,I.jsxs)("div",{className:[_["generic-input"]].concat(Je?_["generic-input--custom"]:[],null!==(S=Ke.className)&&void 0!==S?S:[]).join(" "),style:Ke.styles,children:[R((0,I.jsx)(h.Select,o()({},Ye,Ge,{enhanced:!0,foundationRef:ae,inputRef:le,onChange:Z,options:Re,rootProps:o()({name:Ke.name,onClick:ee},Ke.rootProps),value:""+Ke.value})),ct),R([(0,I.jsx)(p.FormField,{className:["mdc-text-field"].concat(Ke.disabled?"mdc-text-field--disabled":[],"mdc-text-field--textarea").join(" "),children:(0,I.jsxs)("label",{children:[(0,I.jsx)("span",{className:[_["generic-input__editor__label"]].concat("mdc-floating-label","mdc-floating-label--float-above").join(" "),children:(0,I.jsxs)(y.Theme,{use:Ke.invalid&&(Ke.showInitialValidationState||Ke.visited)?"error":void 0,children:[Ke.description||Ke.name,Ke.required?"*":""]})}),Ke.editor.startsWith("code")?(0,I.jsx)(u.Suspense,{fallback:(0,I.jsx)(s.CircularProgress,{size:"large"}),children:(0,I.jsx)(A,o()({},Ye,{className:"mdc-text-field__input",mode:Ke.editor.startsWith("code(")&&Ke.editor.endsWith(")")?Ke.editor.substring("code(".length,Ke.editor.length-1):"javascript",name:Ke.name,onChange:Z,onCursorChange:ne,onSelectionChange:ne,ref:function(e){var t,n,r;oe.current=e,null!==(t=oe.current)&&void 0!==t&&null!==(n=t.editor)&&void 0!==n&&null!==(r=n.container)&&void 0!==r&&r.querySelector("textarea")&&(ie.current=oe.current.editor.container.querySelector("textarea")),oe.current&&Ke.editorIsActive&&be.selectionIsUnstable&&(oe.current.editor.textInput.focus(),H(oe.current),ye(o()({},be,{selectionIsUnstable:!1})))},setOptions:{maxLines:Ke.rows,minLines:Ke.rows,readOnly:Ke.disabled,tabSize:4,useWorker:!1},theme:"github",value:Ke.representation}))}):(0,I.jsx)(x.Editor,o()({},Ye,{disabled:Ke.disabled,init:Xe,onClick:ee,onEditorChange:Z,onKeyUp:te,ref:function(e){me.current=e},textareaName:Ke.name,tinymceScriptSrc:V.base_url+"tinymce.min.js",value:Ke.representation}))]})},"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",children:Ge.helpText.children})},"advanced-editor-helper-line")],Je,M||Ke.editor.startsWith("code")),R((0,I.jsxs)("div",{children:[tt?(0,I.jsx)(g.MenuSurfaceAnchor,{onKeyDown:D,children:Ne instanceof AbortController?(0,I.jsx)(g.MenuSurface,{anchorCorner:"bottomLeft",className:_["generic-input__suggestions"]+" "+_["generic-input__suggestions--pending"],open:!0,children:(0,I.jsx)(s.CircularProgress,{size:"large"})}):(0,I.jsx)(g.Menu,{anchorCorner:"bottomLeft",apiRef:function(e){ue.current=e},className:_["generic-input__suggestions"],focusOnOpen:!1,foundationRef:se,onSelect:function(e){Z(et[e.detail.index],void 0,e.detail.index),je(!1)},open:Boolean(Ze.length)&&ke&&!(1===Ze.length&&Ze[0]===Ke.representation),children:Qe})}):"",(0,I.jsx)(b.TextField,o()({},Ye,Ge,"number"===Ke.type?{max:Ke.maximum,min:Ke.minimum,step:Ke.step}:"string"===Ke.type?o()({maxLength:Ke.maximumLength>=0?Ke.maximumLength:1/0,minLength:Ke.minimumLength>=0?Ke.minimumLength:0},"plain"===Ke.editor?{}:{rows:Ke.rows}):["date","datetime-local","time"].includes(Ke.type)?{max:(0,j.formatValue)(Ke,Ke.maximum,ze),min:(0,j.formatValue)(Ke,Ke.minimum,ze),step:Ke.step}:{},{align:Ke.align,characterCount:!0,foundationRef:ae,fullwidth:Ke.fullWidth,inputRef:le,onChange:Z,ripple:Ke.ripple,rootProps:o()({name:Ke.name,onClick:ee,onKeyDown:function(e){var t;tt&&m().keyCode.DOWN===e.keyCode&&(null===(t=ue.current)||void 0===t||t.focusItemAtIndex(0)),"string"===Ke.type&&"plain"!==Ke.editor&&D(e),(0,j.triggerCallbackIfExists)(Ke,"keyDown",We,e,Ke)},onKeyUp:te},Ke.rootProps),textarea:"string"===Ke.type&&"plain"!==Ke.editor,trailingIcon:L(P(Ke.trailingIcon)),type:C(Ke),value:Ke.representation}))]}),!(Je||ct),M||Ke.editor.startsWith("code"))]})})};W.displayName="GenericInput";var U=(0,u.memo)((0,u.forwardRef)(W));U.wrapped=W,U.webComponentAdapterWrapped="react",U.defaultModelState=S.Bg,U.defaultProperties=o()({},S.Ko,{cursor:void 0,model:o()({},S.Ko.model,{state:void 0,value:void 0}),representation:void 0,value:void 0}),U.locales=m().locales,U.propTypes=S.rV,U.renderProperties=S.au,U.strict=!1,U.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,i,a,l,c,d=null!==(r=null===(i=n.currency.format)||void 0===i||null===(a=i.final.options)||void 0===a?void 0:a.currency)&&void 0!==r?r:"USD";return e===1/0?"Infinity "+d:e===-1/0?"- Infinity "+d:isNaN(e)?"unknown":new Intl.NumberFormat(U.locales,o()({style:"currency"},null!==(l=null===(c=n.currency.format)||void 0===c?void 0:c.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){if((e="number"==typeof e?e:parseFloat(e))===1/0)return"infinitely far in the future";if(e===-1/0)return"infinitely early in the past";if(!isFinite(e))return"";var t=new Date(Math.round(1e3*e)).toISOString();return t.substring(0,t.indexOf("T"))}},intermediate:{transform:function(e,t,n){var r;return null!==(r=n.date.format)&&void 0!==r&&r.final.transform?n.date.format.final.transform(e,t,n):""+e}}},parse:function(e){return"number"==typeof e?e:""+parseFloat(e)===e?parseFloat(e):Date.parse(e)/1e3}},"datetime-local":{format:{final:{transform:function(e){if((e="number"==typeof e?e:parseFloat(e))===1/0)return"infinitely far in the future";if(e===-1/0)return"infinitely early in the past";if(!isFinite(e))return"";var t=new Date(Math.round(1e3*e)).toISOString();return t.substring(0,t.length-1)}},intermediate:{transform:function(e,t,n){var r;return null!==(r=n["datetime-local"].format)&&void 0!==r&&r.final.transform?n["datetime-local"].format.final.transform(e,t,n):""+e}}},parse:function(e,t,n){return n.date.parse?n.date.parse(e,t,n):Date.parse(e)/1e3}},time:{format:{final:{transform:function(e){if((e="number"==typeof e?e:parseFloat(e))===1/0)return"infinitely far in the future";if(e===-1/0)return"infinitely early in the past";if(!isFinite(e))return"";var t=new Date(Math.round(1e3*e)).toISOString();return t.substring(t.indexOf("T")+1,t.length-1)}},intermediate:{transform:function(e,t,n){var r;return null!==(r=n.time.format)&&void 0!==r&&r.final.transform?n.time.format.final.transform(e,t,n):""+e}}},parse:function(e){return"number"==typeof e?e:parseInt(e.replace(/^([0-9]{2}):([0-9]{2})$/,(function(e,t,n){return String(parseInt(t)*Math.pow(60,2)+60*parseInt(n))})))}},float:{format:{final:{transform:function(e,t,n){return n.float.format?e===1/0?"Infinity":e===-1/0?"- Infinity":new Intl.NumberFormat(U.locales,n.float.format.final.options||{}).format(e):""+e}}},parse:function(e,t){return"string"==typeof e&&(e=parseFloat("de-DE"===U.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,i;return new Intl.NumberFormat(U.locales,o()({maximumFractionDigits:0},null!==(r=null===(i=n.integer.format)||void 0===i?void 0:i.final.options)&&void 0!==r?r:{})).format(e)}}},parse:function(e,t){return"string"==typeof e&&(e=parseInt("de-DE"===U.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},function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=o},function(e){e.exports=a},function(e){e.exports=l},function(e){e.exports=x},function(e){e.exports=i},function(e){e.exports=c},function(e){e.exports=d},function(e){e.exports=m},function(e){e.exports=f},function(e){e.exports=v},function(e){e.exports=y},function(e,t,n){n.d(t,{rV:function(){return h},au:function(){return b},Bg:function(){return y},Ko:function(){return w},ci:function(){return S},dO:function(){return I}});var r=n(1),o=n.n(r),i=n(3),a=n.n(i),l=n(5),c={declaration:l.string,default:l.any,description:l.string,name:l.string,selection:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.number,l.string])),(0,l.objectOf)((0,l.oneOfType)([l.number,l.string]))]),type:l.string,value:l.any},d={dirty:(0,l.oneOfType)([l.boolean,l.symbol]),focused:(0,l.oneOfType)([l.boolean,l.symbol]),invalid:(0,l.oneOfType)([l.boolean,l.symbol]),invalidRequired:(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]),valid:(0,l.oneOfType)([l.boolean,l.symbol]),visited:(0,l.oneOfType)([l.boolean,l.symbol])},m=o()({},c,{emptyEqualsNull:l.boolean,invertedRegularExpressionPattern:(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]),maximumLength:l.number,minimum:(0,l.oneOfType)([l.number,l.string]),minimumLength:l.number,mutable:l.boolean,pattern:(0,l.oneOfType)([l.object,l.string]),state:(0,l.shape)(d),writable:l.boolean,regularExpressionPattern:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.object,l.string])),l.object,l.string]),trim:l.boolean}),u=o()({},c,d,{className:l.string,disabled:l.boolean,enforceUncontrolled:l.boolean,initialValue:l.any,model:(0,l.shape)(m),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]),showDeclaration:(0,l.oneOfType)([l.boolean,l.symbol]),showInitialValidationState:l.boolean,styles:l.object,themeConfiguration:l.object,tooltip:l.any}),s={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:o()({},s),trim:!0,type:"string",writable:!0},f={enforceUncontrolled:!1,model:o()({},p),showDeclaration:void 0,showInitialValidationState:!1,requiredText:"Please fill this field."},v=(o()({},u,d,{checked:l.boolean,id:l.string}),o()({},p,{default:!1,type:"boolean",value:!1})),g=(o()({},f,{default:!1,model:o()({},v),requiredText:"Please check this field."}),o()({},d,{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])})),h=o()({},u,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]),fullWidth:l.boolean,hidden:(0,l.oneOfType)([l.boolean,l.symbol]),icon:(0,l.oneOfType)([l.string,l.object]),invertedPatternText:l.string,labels:(0,l.oneOfType)([(0,l.arrayOf)(l.string),l.object]),maximumLengthText:l.string,maximumText: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,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}),b=["children","suggestionCreator"],y=o()({},s,{invalidMaximum:!1,invalidMinimum:!1,invalidMaximumLength:!1,invalidMinimumLength:!1,invalidInvertedPattern:!1,invalidPattern:!1}),x=o()({},p,{state:y}),w=o()({},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:o()({},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}),_=o()({},d,{invalidMaximumSize:(0,l.oneOfType)([l.boolean,l.symbol]),invalidMinimumSize:(0,l.oneOfType)([l.boolean,l.symbol]),invalidContentTypePattern:(0,l.oneOfType)([l.boolean,l.symbol]),invalidName:(0,l.oneOfType)([l.boolean,l.symbol])}),T=(o()({},u,_,{children:l.func,contentTypePatternText:(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]),encoding:l.string,generateFileNameInputProperties:l.func,invertedContentTypePatternText:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.object,l.string])),l.object,l.string]),maximumSizeText:l.string,minimumSizeText:l.string,newButton:(0,l.oneOfType)([l.object,l.string]),onBlur:l.func,outlined:l.boolean}),o()({},s,{invalidMaximumSize:!1,invalidMinimumSize:!1,invalidContentTypePattern:!1,invalidName:!1})),k=o()({},p,{contentTypeRegularExpressionPattern:/^.+\/.+$/,fileName:o()({},x,{maximumLength:1024,name:"Name",regularExpressionPattern:/^[^\/]+$/}),invertedContentTypeRegularExpressionPattern:null,maximumSize:1/0,minimumSize:0,state:T});delete o()({},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}).model;o()({},f,{contentTypePatternText:'Your file\'s mime-type has to match the regular expression${[].concat(contentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(contentTypePattern).join("\\", \\"")}".',deleteButton:"delete",downloadButton:"download",editButton:"edit",encoding:"utf-8",generateFileNameInputProperties:a().identity,invertedContentTypePatternText:'Your file\'s mime-type should not match the regular expression${[].concat(invertedContentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(invertedContentTypePattern).join("\\", \\"")}".',maximumSizeText:"Please provide a file with less or equal size than ${maximumSize} byte.",media:{sixteenByNine:!0},minimumSizeText:"Please provide a file with more or equal size than ${maximumSize} byte.",model:o()({},k),newButton:"new",sourceToBlobOptions:{endings:"transparent",type:"text/plain"}}),o()({},u,g,{children:l.func,createPrototype:l.func,maximumNumber:l.number,minimumNumber:l.number});var j=o()({},p,{state:o()({},p.state,{invalidMaximumNumber:!1,invalidMinimumNumber:!1}),maximumNumber:1/0,minimumNumber:0,type:"string[]"}),S=(o()({},f,{addIcon:{icon:"add"},createPrototype:function(e){return e.prototype},model:o()({},j),removeIcon:{icon:"clear"}}),o()({},h,{value:(0,l.shape)({end:(0,l.oneOfType)([l.number,(0,l.shape)(h)]),start:(0,l.oneOfType)([l.number,(0,l.shape)(h)])})})),I={icon:{icon:"timelapse"},maximumText:"Please provide somthing earlier than ${formatValue(maximum)}.",minimumText:"Please provide somthing later than ${formatValue(minimum)}.",model:{name:"NO_NAME_DEFINED",state:o()({},s),value:{end:o()({},x,{description:"End",name:"end"}),start:o()({},x,{description:"Start",name:"start"})}},requiredText:"Please provide a range.",type:"time"}}],j={};function S(e){var t=j[e];if(void 0!==t)return t.exports;var n=j[e]={exports:{}};return k[e](n,n.exports,S),n.exports}S.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return S.d(t,{a:t}),t},T=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},S.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);S.r(n);var r={};_=_||[null,T({}),T([]),T(T)];for(var o=2&t&&e;"object"==typeof o&&!~_.indexOf(o);o=T(o))Object.getOwnPropertyNames(o).forEach((function(t){r[t]=function(){return e[t]}}));return r.default=function(){return e},S.d(n,r),n},S.d=function(e,t){for(var n in t)S.o(t,n)&&!S.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},S.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},S.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var I={};return function(){S.r(I),S.d(I,{Interval:function(){return f},IntervalInner:function(){return p},default:function(){return v}});var e=S(1),t=S.n(e),n=S(3),r=S.n(n),o=S(19),i=S(2),a=S(15),l={"rmwc-icon--component":"rmwc-icon--component","rmwc-icon--url":"rmwc-icon--url","rmwc-icon--size-xsmall":"rmwc-icon--size-xsmall","rmwc-icon--size-small":"rmwc-icon--size-small","rmwc-icon--size-medium":"rmwc-icon--size-medium","rmwc-icon--size-large":"rmwc-icon--size-large","rmwc-icon--size-xlarge":"rmwc-icon--size-xlarge","mdc-theme--primary":"mdc-theme--primary","mdc-theme--secondary":"mdc-theme--secondary","mdc-theme--background":"mdc-theme--background","mdc-theme--surface":"mdc-theme--surface","mdc-theme--error":"mdc-theme--error","mdc-theme--on-primary":"mdc-theme--on-primary","mdc-theme--on-secondary":"mdc-theme--on-secondary","mdc-theme--on-surface":"mdc-theme--on-surface","mdc-theme--on-error":"mdc-theme--on-error","mdc-theme--text-primary-on-background":"mdc-theme--text-primary-on-background","mdc-theme--text-secondary-on-background":"mdc-theme--text-secondary-on-background","mdc-theme--text-hint-on-background":"mdc-theme--text-hint-on-background","mdc-theme--text-disabled-on-background":"mdc-theme--text-disabled-on-background","mdc-theme--text-icon-on-background":"mdc-theme--text-icon-on-background","mdc-theme--text-primary-on-light":"mdc-theme--text-primary-on-light","mdc-theme--text-secondary-on-light":"mdc-theme--text-secondary-on-light","mdc-theme--text-hint-on-light":"mdc-theme--text-hint-on-light","mdc-theme--text-disabled-on-light":"mdc-theme--text-disabled-on-light","mdc-theme--text-icon-on-light":"mdc-theme--text-icon-on-light","mdc-theme--text-primary-on-dark":"mdc-theme--text-primary-on-dark","mdc-theme--text-secondary-on-dark":"mdc-theme--text-secondary-on-dark","mdc-theme--text-hint-on-dark":"mdc-theme--text-hint-on-dark","mdc-theme--text-disabled-on-dark":"mdc-theme--text-disabled-on-dark","mdc-theme--text-icon-on-dark":"mdc-theme--text-icon-on-dark","mdc-theme--primary-bg":"mdc-theme--primary-bg","mdc-theme--secondary-bg":"mdc-theme--secondary-bg","mdc-button":"mdc-button","mdc-button__ripple":"mdc-button__ripple","mdc-fab":"mdc-fab","mdc-fab__ripple":"mdc-fab__ripple","mdc-top-app-bar":"mdc-top-app-bar","mdc-tab-bar":"mdc-tab-bar","mdc-tab":"mdc-tab","mdc-tab--active":"mdc-tab--active","mdc-tab__text-label":"mdc-tab__text-label","mdc-drawer":"mdc-drawer","mdc-list-item--activated":"mdc-list-item--activated","mdc-list-item":"mdc-list-item","mdc-list-item__graphic":"mdc-list-item__graphic","mdc-list-divider":"mdc-list-divider","mdc-select":"mdc-select","mdc-select--disabled":"mdc-select--disabled","mdc-select--invalid":"mdc-select--invalid","mdc-select--focused":"mdc-select--focused","mdc-floating-label":"mdc-floating-label","mdc-text-field":"mdc-text-field","mdc-text-field--disabled":"mdc-text-field--disabled","mdc-text-field--invalid":"mdc-text-field--invalid","mdc-text-field--focused":"mdc-text-field--focused","mdc-chip__text__primary-action":"mdc-chip__text__primary-action","mdc-linear-progress":"mdc-linear-progress","rmwc-tooltip":"rmwc-tooltip","rmwc-tooltip-hidden":"rmwc-tooltip-hidden","rmwc-tooltip-zoom-enter":"rmwc-tooltip-zoom-enter","rmwc-tooltip-zoom-leave":"rmwc-tooltip-zoom-leave","rmwc-tooltip-zoom-appear":"rmwc-tooltip-zoom-appear","rmwc-tooltip-zoom-appear-active":"rmwc-tooltip-zoom-appear-active","rmwc-tooltip-zoom-enter-active":"rmwc-tooltip-zoom-enter-active",rmwcToolTipIn:"rmwcToolTipIn","rmwc-tooltip-zoom-leave-active":"rmwc-tooltip-zoom-leave-active",rmwcToolTipOut:"rmwcToolTipOut","rmwc-tooltip-inner":"rmwc-tooltip-inner","rmwc-tooltip--show-arrow":"rmwc-tooltip--show-arrow","rmwc-tooltip-arrow":"rmwc-tooltip-arrow","rmwc-tooltip-arrow-inner":"rmwc-tooltip-arrow-inner","rmwc-tooltip-placement-top":"rmwc-tooltip-placement-top","rmwc-tooltip-placement-topLeft":"rmwc-tooltip-placement-topLeft","rmwc-tooltip-placement-topRight":"rmwc-tooltip-placement-topRight","rmwc-tooltip-placement-right":"rmwc-tooltip-placement-right","rmwc-tooltip-placement-rightBottom":"rmwc-tooltip-placement-rightBottom","rmwc-tooltip-placement-rightTop":"rmwc-tooltip-placement-rightTop","rmwc-tooltip-placement-left":"rmwc-tooltip-placement-left","rmwc-tooltip-placement-leftBottom":"rmwc-tooltip-placement-leftBottom","rmwc-tooltip-placement-leftTop":"rmwc-tooltip-placement-leftTop","rmwc-tooltip-placement-bottom":"rmwc-tooltip-placement-bottom","rmwc-tooltip-placement-bottomLeft":"rmwc-tooltip-placement-bottomLeft","rmwc-tooltip-placement-bottomRight":"rmwc-tooltip-placement-bottomRight",interval:"interval","interval--disabled":"interval--disabled",interval__icon:"interval__icon",interval__end:"interval__end",interval__start:"interval__start"},c=S(7),d=S(8),m=S(29),u=S(0),s=function(e,n,r,o){var i=function(e,t){return{dirty:e.dirty||t.dirty,focused:e.focused||t.focused,invalid:e.invalid||t.invalid,invalidRequired:e.invalidRequired||t.invalidRequired,pristine:e.pristine&&t.pristine,touched:e.touched||t.touched,untouched:e.untouched&&t.untouched,valid:e.valid&&t.valid,visited:e.visited||t.visited}}(r,o);o.value,r.value;return t()({},e,i,{icon:n,model:{name:e.name,state:i,value:{end:o.model,start:r.model}},value:{end:o,start:r}})},p=function(e,n){var m,p,v,g,h,b,y,x,w,_,T,k,j,S,I,O,P,C,q,z,E,N,A,R,M,L,V,B,D,F,W,U,$,K=(0,d.translateKnownSymbols)(e);K.value||(K.value={end:{value:K.value},start:{value:K.value}}),"number"==typeof K.value.end&&(K.value.end={value:K.value.end}),"number"==typeof K.value.start&&(K.value.start={value:K.value.start});var H=r().extend(!0,r().copy(f.defaultProperties),K),Y=(null===(m=H.value)||void 0===m?void 0:m.end)||{},G="string"==typeof H.icon?{icon:H.icon}:H.icon,X=(null===(p=H.value)||void 0===p?void 0:p.start)||{},J=!H.enforceUncontrolled&&(void 0!==(null===(v=K.model)||void 0===v||null===(g=v.value)||void 0===g||null===(h=g.end)||void 0===h?void 0:h.value)||void 0!==(null===(b=K.model)||void 0===b||null===(y=b.value)||void 0===y||null===(x=y.start)||void 0===x?void 0:x.value)||void 0!==K.value)&&Boolean(H.onChange||H.onChangeValue),Q=(0,i.useState)({end:null!==(w=null!==(_=null!==(T=null!==(k=Y.value)&&void 0!==k?k:null===(j=H.model)||void 0===j||null===(S=j.value)||void 0===S||null===(I=S.end)||void 0===I?void 0:I.value)&&void 0!==T?T:Y.default)&&void 0!==_?_:null===(O=H.model)||void 0===O||null===(P=O.value)||void 0===P||null===(C=P.end)||void 0===C?void 0:C.default)&&void 0!==w?w:null,start:null!==(q=null!==(z=null!==(E=null!==(N=X.value)&&void 0!==N?N:null===(A=H.model)||void 0===A||null===(R=A.value)||void 0===R||null===(M=R.end)||void 0===M?void 0:M.value)&&void 0!==E?E:X.default)&&void 0!==z?z:null===(L=H.model)||void 0===L||null===(V=L.value)||void 0===V||null===(B=V.start)||void 0===B?void 0:B.default)&&void 0!==q?q:null}),Z=Q[0],ee=Q[1];H.value||(H.value={end:{value:Z.end},start:{value:Z.start}});var te=r().mask(H,{exclude:{className:!0,enforceUncontrolled:!0,end:!0,icon:!0,start:!0,model:!0,name:!0,onChange:!0,onChangeValue:!0,style:!0,value:!0}});Y=r().extend(!0,r().copy(te),null!==(D=H.model)&&void 0!==D&&null!==(F=D.value)&&void 0!==F&&F.end?{model:H.model.value.end}:{},Y),X=r().extend(!0,r().copy(te),null!==(W=H.model)&&void 0!==W&&null!==(U=W.value)&&void 0!==U&&U.start?{model:H.model.value.start}:{},X),Y.className||(Y.className=l.interval+"__end"),G.className||(G.className=l.interval+"__icon"),X.className||(X.className=l.interval+"__start");var ne=t()({},Y.model,Y),re=t()({},X.model,X);X.maximum=Math.min("number"==typeof re.maximum?re.maximum:1/0,H.value.end.value||1/0,"number"==typeof ne.maximum?ne.maximum:1/0),X.minimum=re.minimum||-1/0,X.value=H.value.start.value,Y.maximum="number"==typeof ne.maximum?ne.maximum:1/0,Y.minimum=Math.max("number"==typeof ne.minimum?ne.minimum:-1/0,H.value.start.value||-1/0,"number"==typeof re.minimum?re.minimum:-1/0),Y.value=H.value.end.value;var oe=(0,i.useRef)(null),ie=(0,i.useRef)(null),ae={end:H.value.end.value,start:H.value.start.value};return J&&(ee=(0,d.createDummyStateSetter)(ae)),(0,i.useImperativeHandle)(n,(function(){var e,t;return{properties:s(H,G,(null===(e=ie.current)||void 0===e?void 0:e.properties)||H.value.start,(null===(t=oe.current)||void 0===t?void 0:t.properties)||H.value.end),references:{end:oe,start:ie},state:J?{}:{value:ae}}})),H.onChange&&(Y.onChange=function(e,t){var n,r,o,i,a,l=(null===(n=ie.current)||void 0===n?void 0:n.properties)||X;l.value=Math.min(null!==(r=null===(o=ie.current)||void 0===o||null===(i=o.properties)||void 0===i?void 0:i.value)&&void 0!==r?r:1/0,null!==(a=e.value)&&void 0!==a?a:1/0),(0,d.triggerCallbackIfExists)(H,"change",J,s(H,G,l,e),t,H)},X.onChange=function(e,t){var n,r,o,i,a,l=(null===(n=oe.current)||void 0===n?void 0:n.properties)||Y;l.value=Math.max(null!==(r=null===(o=oe.current)||void 0===o||null===(i=o.properties)||void 0===i?void 0:i.value)&&void 0!==r?r:-1/0,null!==(a=e.value)&&void 0!==a?a:-1/0),(0,d.triggerCallbackIfExists)(H,"change",J,s(H,G,e,l),t,H)}),Y.onChangeValue=function(e,t){var n,r,o,i=Math.min(null!==(n=null===(r=ie.current)||void 0===r||null===(o=r.properties)||void 0===o?void 0:o.value)&&void 0!==n?n:1/0,null!=e?e:1/0),a={end:e,start:isFinite(i)?i:e};(0,d.triggerCallbackIfExists)(H,"changeValue",J,a,t,H),ee(a)},X.onChangeValue=function(e,t){var n,r,o,i=Math.max(null!==(n=null===(r=oe.current)||void 0===r||null===(o=r.properties)||void 0===o?void 0:o.value)&&void 0!==n?n:-1/0,null!=e?e:-1/0),a={end:isFinite(i)?i:e,start:e};(0,d.triggerCallbackIfExists)(H,"changeValue",J,a,t,H),ee(a)},(0,u.jsx)(c.default,{strict:f.strict,themeConfiguration:H.themeConfiguration,children:(0,u.jsxs)("div",{className:[l.interval].concat(null!==($=H.className)&&void 0!==$?$:[],H.disabled?l["interval--disabled"]:[]).join(" "),"data-name":H.name,style:H.styles,children:[(0,u.jsx)(a.default,t()({},X,{ref:ie})),(0,u.jsx)(o.Icon,{icon:G}),(0,u.jsx)(a.default,t()({},Y,{ref:oe}))]})})};p.displayName="Interval";var f=(0,i.memo)((0,i.forwardRef)(p));f.wrapped=p,f.webComponentAdapterWrapped="react",f.defaultProperties=m.dO,f.propTypes=m.ci,f.strict=!1;var v=f}(),I}()}));
|
|
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/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("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/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","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/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("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/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.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,o,i,a,l,c,d,m,u,s,p,f,v,g,h,b,y,x,w){return function(){"use strict";var _,T,k=[function(e){e.exports=w},function(e){e.exports=t},function(e){e.exports=b},function(e){e.exports=g},function(e){e.exports=u},function(e){e.exports=h},function(e,t,n){n.d(t,{WrapTooltip:function(){return c}});var r=n(1),o=n.n(r),i=n(9),a=n(11),l=n(0),c=function(e){var t=e.children,n=e.options;return"string"==typeof n?(0,l.jsx)(a.Tooltip,{content:(0,l.jsx)(i.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=o()({},n,{content:(0,l.jsx)(i.Typography,{use:"caption",children:n.content})})),(0,l.jsx)(a.Tooltip,o()({},n,{children:(0,l.jsx)("div",{className:"generic-tooltip",children:t})}))):(0,l.jsx)(l.Fragment,{children:t})};t.default=c},function(e,t,n){n(1),n(13),n(2),n(4);var r=n(12),o=n(10),i=n(6),a=n(0),l=function(e){var t=e.children,n=e.strict,l=e.themeConfiguration,c=e.tooltip,d=e.wrap;return(0,a.jsx)(r.x,{strict:Boolean(n),children:(0,a.jsx)(i.WrapTooltip,{options:c,children:(0,a.jsx)(o.WrapThemeProvider,{configuration:l,wrap:d,children:t})})})};t.default=l},function(e,t,n){n.d(t,{createDummyStateSetter:function(){return u},deriveMissingPropertiesFromState:function(){return s},wrapStateSetter:function(){return p},triggerCallbackIfExists:function(){return f},translateKnownSymbols:function(){return v},determineInitialValue:function(){return g},determineValidationState:function(){return h},mapPropertiesIntoModel:function(){return b},getConsolidatedProperties:function(){return y},getLabelAndValues:function(){return x},getValueFromSelection:function(){return w},normalizeSelection:function(){return _},parseValue:function(){return T},formatValue:function(){return k},determineInitialRepresentation:function(){return j},useMemorizedValue:function(){return S}});var r=n(1),o=n.n(r),i=n(3),a=n.n(i),l=n(5),c=n(2);function d(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 m(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 m(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 m(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 u=function(e){return function(t){"function"==typeof t&&t(e)}},s=function(e,t){for(var n in 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=o()({},e.model.state):e.model.state={},t.modelState)Object.prototype.hasOwnProperty.call(t.modelState,n)&&void 0===e.model.state[n]&&(e.model.state[n]=t.modelState[n]);return e},p=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)}},f=function(e,t){for(var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];t="on"+a().stringCapitalize(t),e[t]&&(n?e[t].apply(e,o):a().timeout((function(){return e[t].apply(e,o)})))},v=function(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],i=o[0],c=o[1];c===l.UndefinedSymbol?t[i]=void 0:c===l.NullSymbol?t[i]=null:t[i]=a().copy(e[i])}return t},g=function(e,t,n){var r,o;return void 0!==n?n:void 0!==e.value?e.value:void 0!==(null===(r=e.model)||void 0===r?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===(o=e.model)||void 0===o?void 0:o.default)?a().copy(e.model.default):void 0!==t?t:null},h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!1;n=o()({invalidRequired:function(){return!1===e.model.nullable&&"boolean"!==e.model.type&&!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 i=0,a=Object.entries(n);i<a.length;i++){var l=a[i],c=l[0],d=l[1],m=t[c];e.model.state[c]=d(),r=r||m!==t[c]}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},b=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,o=d(Object.keys(n.model).concat("value"));!(r=o()).done;){var i=r.value;Object.prototype.hasOwnProperty.call(n,i)&&void 0!==n[i]&&(n.model[i]=n[i])}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},y=function(e){var t=o()({},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=[],o=d(e);!(t=o()).done;){var i=t.value;["number","string"].includes(typeof i)?(n.push(""+i),r.push(i)):"string"==typeof(null==i?void 0:i.label)?(n.push(i.label),r.push(i.value)):["number","string"].includes(typeof(null==i?void 0:i.value))&&(n.push(""+i.value),r.push(i.value))}return[n,r]}if(null!==e&&"object"==typeof e){var a=Object.keys(e).sort((function(t,n){return e[t].localeCompare(e[n])}));return[a.map((function(t){return e[t]})),a]}return[[],[]]}function w(e,t){if(Array.isArray(t))for(var n,r=d(t);!(n=r()).done;){var o=n.value;if(["number","string"].includes(typeof o)&&""+o===e)return o;if("string"==typeof(null==o?void 0:o.label)&&o.label===e)return o.value;if(["number","string"].includes(typeof(null==o?void 0:o.value))&&""+o.value===e)return o.value}if(null!==t&&"object"==typeof t)for(var i=0,a=Object.entries(t);i<a.length;i++){var l=a[i],c=l[0];if(l[1]===e)return c}return null}function _(e,t){if(e||(e=t,t=void 0),Array.isArray(e)&&e.length){var n=[],r=0;if(Array.isArray(e[0]))for(var i,a=d(e);!(i=a()).done;){var l=i.value,c=l[0],m=l[1];n.push({label:Array.isArray(t)&&r<t.length?t[r]:m,value:c}),r+=1}else if(null!==e[0]&&"object"==typeof e[0])for(var u,s=d(e);!(u=s()).done;){var p=u.value;n.push(o()({},p,{label:Array.isArray(t)&&r<t.length?t[r]:p.label})),r+=1}else for(var f,v=d(e);!(f=v()).done;){var g=f.value;n.push({label:Array.isArray(t)&&r<t.length?t[r]:g,value:g}),r+=1}e=n}if(null!==t&&"object"==typeof t){if(Array.isArray(e)){for(var h,b=[],y=d(e);!(h=y()).done;){var x=h.value;b.push(o()({},x,{label:t.hasOwnProperty(x.value||x.label)?t[x.value||x.label]:!0===x.value&&t.true?t.true:!1===x.value&&t.false?t.false:x.label}))}return b}for(var w=0,_=Object.entries(e);w<_.length;w++){var T=_[w],k=T[0],j=T[1];e[k]=t.hasOwnProperty(k)?t[k]:j}}return e}var T=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 o=t;return![null,void 0].includes(t)&&null!==(r=n[e.model.type])&&void 0!==r&&r.parse&&(o=n[e.model.type].parse(t,e,n)),"number"==typeof o&&isNaN(o)?null:o};function k(e,t,n){var r,o,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=i?"final":"intermediate";return[null,void 0].includes(t)||"number"==typeof t&&isNaN(t)?"":null!==(r=n[e.type||e.model.type])&&void 0!==r&&r.format&&null!==(o=n[e.type||e.model.type].format[a])&&void 0!==o&&o.transform?n[e.type||e.model.type].format[a].transform(t,e,n):String(t)}function j(e,t,n,r,i){if("string"==typeof e.representation)return e.representation;if(null!==n){var l,c=function(e,t){if(t){if(Array.isArray(t))for(var n,r=d(t);!(n=r()).done;){var o=n.value;if(a().equals(o,e))return""+e;if(a().equals(null==o?void 0:o.value,e))return o.label||""+e}if(null!==t&&"object"==typeof t&&"string"==typeof e&&t.hasOwnProperty(e))return t[e]}return null}(n,i);return"string"==typeof c?c:k(o()({},e,{type:e.type||(null===(l=e.model)||void 0===l?void 0:l.type)||t.model.type}),n,r)}return""}var S=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,c.useMemo)((function(){return e}),n)}},function(e){e.exports=p},function(e,t,n){n.d(t,{WrapThemeProvider:function(){return i}});var r=n(4),o=n(0),i=function(e){var t=e.children,n=e.configuration,i=e.wrap;return n?(0,o.jsx)(r.ThemeProvider,{options:n,wrap:!1!==i,children:t}):t}},function(e){e.exports=s},function(e,t,n){n.d(t,{x:function(){return i}});var r=n(2),o=n(0),i=function(e){var t=e.children;return e.strict?(0,o.jsx)(r.StrictMode,{children:t}):(0,o.jsx)(o.Fragment,{children:t})}},function(e){e.exports=n},function(e,t,n){n.d(t,{default:function(){return s}});var r=n(1),o=n.n(r),i=n(5),a=n(21),l="generic-animate",c="generic-animate__list-wrapper",d="generic-animate__wrapper",m=n(0),u=function(e){return(0,m.jsx)(a.CSSTransition,o()({appear:!0,classNames:l,in:!0,timeout:200,unmountOnExit:!0},e,{children:"string"==typeof e.children?(0,m.jsx)("span",{className:d,children:e.children}):Array.isArray(e.children)?(0,m.jsx)("div",{className:c,children:e.children}):e.children}))};u.propTypes={appear:i.boolean,classNames:i.string,in:i.boolean,timeout:i.number};var s=u},function(e,t,n){n.d(t,{default:function(){return $}});var r=n(1),o=n.n(r),i=n(16),a=n.n(i),l=n(17),c=n.n(l),d=n(3),m=n.n(d),u=n(2),s=n(18),p=n(22),f=n(19),v=n(20),g=n(23),h=n(24),b=n(25),y=n(4),x=n(26),w=n(14),_={"rmwc-circular-progress":"rmwc-circular-progress","rmwc-circular-progress--size-xsmall":"rmwc-circular-progress--size-xsmall","rmwc-circular-progress--size-small":"rmwc-circular-progress--size-small","rmwc-circular-progress--size-medium":"rmwc-circular-progress--size-medium","rmwc-circular-progress--size-large":"rmwc-circular-progress--size-large","rmwc-circular-progress--size-xlarge":"rmwc-circular-progress--size-xlarge","rmwc-circular-progress--indeterminate":"rmwc-circular-progress--indeterminate","rmwc-circular-progress__circle":"rmwc-circular-progress__circle","rmwc-circular-progress-indeterminate-bar-rotate":"rmwc-circular-progress-indeterminate-bar-rotate","rmwc-circular-progress__path":"rmwc-circular-progress__path","rmwc-circular-progress-indeterminate-bar-dash":"rmwc-circular-progress-indeterminate-bar-dash","rmwc-circular-progress--thickerstroke":"rmwc-circular-progress--thickerstroke","rmwc-icon":"rmwc-icon","mdc-form-field":"mdc-form-field","mdc-form-field--align-end":"mdc-form-field--align-end","mdc-icon-button":"mdc-icon-button","mdc-icon-button__icon":"mdc-icon-button__icon","mdc-icon-button--on":"mdc-icon-button--on","mdc-icon-button__icon--on":"mdc-icon-button__icon--on","mdc-ripple-upgraded":"mdc-ripple-upgraded","mdc-ripple-upgraded--unbounded":"mdc-ripple-upgraded--unbounded","mdc-ripple-upgraded--foreground-activation":"mdc-ripple-upgraded--foreground-activation","mdc-ripple-fg-radius-in":"mdc-ripple-fg-radius-in","mdc-ripple-fg-opacity-in":"mdc-ripple-fg-opacity-in","mdc-ripple-upgraded--foreground-deactivation":"mdc-ripple-upgraded--foreground-deactivation","mdc-ripple-fg-opacity-out":"mdc-ripple-fg-opacity-out","mdc-ripple-upgraded--background-focused":"mdc-ripple-upgraded--background-focused","mdc-ripple-surface":"mdc-ripple-surface","mdc-ripple-surface--primary":"mdc-ripple-surface--primary","mdc-ripple-surface--accent":"mdc-ripple-surface--accent","rmwc-icon--component":"rmwc-icon--component","rmwc-icon--url":"rmwc-icon--url","rmwc-icon--size-xsmall":"rmwc-icon--size-xsmall","rmwc-icon--size-small":"rmwc-icon--size-small","rmwc-icon--size-medium":"rmwc-icon--size-medium","rmwc-icon--size-large":"rmwc-icon--size-large","rmwc-icon--size-xlarge":"rmwc-icon--size-xlarge","mdc-list":"mdc-list","mdc-list-item":"mdc-list-item","mdc-list-item__secondary-text":"mdc-list-item__secondary-text","mdc-list-item__graphic":"mdc-list-item__graphic","mdc-list-item__meta":"mdc-list-item__meta","mdc-list-group__subheader":"mdc-list-group__subheader","mdc-list-item--disabled":"mdc-list-item--disabled","mdc-list-item__text":"mdc-list-item__text","mdc-list-item__primary-text":"mdc-list-item__primary-text","mdc-list--dense":"mdc-list--dense","mdc-list-item--activated":"mdc-list-item--activated","mdc-list-item--selected":"mdc-list-item--selected","material-icons":"material-icons","mdc-list--avatar-list":"mdc-list--avatar-list","mdc-list--two-line":"mdc-list--two-line","mdc-list--non-interactive":"mdc-list--non-interactive","mdc-list-divider":"mdc-list-divider","mdc-list-divider--padded":"mdc-list-divider--padded","mdc-list-divider--inset":"mdc-list-divider--inset","mdc-list-group":"mdc-list-group","mdc-elevation-overlay":"mdc-elevation-overlay","mdc-menu":"mdc-menu","mdc-menu__selection-group":"mdc-menu__selection-group","mdc-menu__selection-group-icon":"mdc-menu__selection-group-icon","mdc-menu-item--selected":"mdc-menu-item--selected","mdc-menu-surface":"mdc-menu-surface","mdc-menu-surface--open":"mdc-menu-surface--open","mdc-menu-surface--animating-open":"mdc-menu-surface--animating-open","mdc-menu-surface--animating-closed":"mdc-menu-surface--animating-closed","mdc-menu-surface--anchor":"mdc-menu-surface--anchor","mdc-menu-surface--fixed":"mdc-menu-surface--fixed","mdc-select--with-leading-icon":"mdc-select--with-leading-icon","mdc-select--disabled":"mdc-select--disabled","mdc-select__icon":"mdc-select__icon","mdc-select-helper-text":"mdc-select-helper-text","mdc-select-helper-text--persistent":"mdc-select-helper-text--persistent","mdc-select":"mdc-select","mdc-select__anchor":"mdc-select__anchor","mdc-select__selected-text":"mdc-select__selected-text","mdc-floating-label":"mdc-floating-label","mdc-line-ripple":"mdc-line-ripple","mdc-select--focused":"mdc-select--focused","mdc-select--outlined":"mdc-select--outlined","mdc-floating-label--float-above":"mdc-floating-label--float-above","mdc-select__dropdown-icon":"mdc-select__dropdown-icon","mdc-select--activated":"mdc-select--activated","mdc-select-helper-text--validation-msg":"mdc-select-helper-text--validation-msg","mdc-notched-outline__leading":"mdc-notched-outline__leading","mdc-notched-outline__notch":"mdc-notched-outline__notch","mdc-notched-outline__trailing":"mdc-notched-outline__trailing","mdc-notched-outline":"mdc-notched-outline","mdc-floating-label--shake":"mdc-floating-label--shake","mdc-floating-label-shake-float-above-text-field-outlined":"mdc-floating-label-shake-float-above-text-field-outlined","mdc-notched-outline--upgraded":"mdc-notched-outline--upgraded","mdc-select--invalid":"mdc-select--invalid","mdc-select--required":"mdc-select--required","mdc-select--no-label":"mdc-select--no-label","mdc-floating-label-shake-float-above-select-outlined-leading-icon":"mdc-floating-label-shake-float-above-select-outlined-leading-icon","mdc-floating-label-shake-float-above-select-outlined-leading-icon-rtl":"mdc-floating-label-shake-float-above-select-outlined-leading-icon-rtl","mdc-select__menu":"mdc-select__menu","rmwc-select__native-control":"rmwc-select__native-control","mdc-floating-label-shake-float-above-standard":"mdc-floating-label-shake-float-above-standard","mdc-line-ripple--active":"mdc-line-ripple--active","mdc-line-ripple--deactivating":"mdc-line-ripple--deactivating","mdc-notched-outline--notched":"mdc-notched-outline--notched","mdc-notched-outline--no-label":"mdc-notched-outline--no-label","mdc-text-field-helper-text":"mdc-text-field-helper-text","mdc-text-field-helper-text--persistent":"mdc-text-field-helper-text--persistent","mdc-text-field-character-counter":"mdc-text-field-character-counter","mdc-text-field__icon":"mdc-text-field__icon","mdc-text-field":"mdc-text-field","mdc-text-field__ripple":"mdc-text-field__ripple","mdc-text-field--disabled":"mdc-text-field--disabled","mdc-text-field__input":"mdc-text-field__input","mdc-text-field-helper-line":"mdc-text-field-helper-line","mdc-text-field__icon--leading":"mdc-text-field__icon--leading","mdc-text-field__icon--trailing":"mdc-text-field__icon--trailing","mdc-text-field--textarea":"mdc-text-field--textarea","mdc-text-field--outlined":"mdc-text-field--outlined","mdc-text-field--outlined--with-leading-icon":"mdc-text-field--outlined--with-leading-icon","mdc-text-field--focused":"mdc-text-field--focused","mdc-text-field--fullwidth":"mdc-text-field--fullwidth","mdc-text-field--no-label":"mdc-text-field--no-label","mdc-text-field--dense":"mdc-text-field--dense","mdc-floating-label-shake-float-above-text-field-outlined-dense":"mdc-floating-label-shake-float-above-text-field-outlined-dense","mdc-text-field--with-leading-icon":"mdc-text-field--with-leading-icon","mdc-floating-label-shake-float-above-text-field-outlined-leading-icon":"mdc-floating-label-shake-float-above-text-field-outlined-leading-icon","mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl":"mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl","mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-dense":"mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-dense","mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-dense-rtl":"mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-dense-rtl","mdc-text-field--with-trailing-icon":"mdc-text-field--with-trailing-icon","mdc-floating-label-shake-float-above-text-field-dense":"mdc-floating-label-shake-float-above-text-field-dense","mdc-floating-label-shake-float-above-textarea":"mdc-floating-label-shake-float-above-textarea","mdc-text-field--invalid":"mdc-text-field--invalid","mdc-text-field-helper-text--validation-msg":"mdc-text-field-helper-text--validation-msg","mdc-text-field--end-aligned":"mdc-text-field--end-aligned","mdc-theme--primary":"mdc-theme--primary","mdc-theme--secondary":"mdc-theme--secondary","mdc-theme--background":"mdc-theme--background","mdc-theme--surface":"mdc-theme--surface","mdc-theme--error":"mdc-theme--error","mdc-theme--on-primary":"mdc-theme--on-primary","mdc-theme--on-secondary":"mdc-theme--on-secondary","mdc-theme--on-surface":"mdc-theme--on-surface","mdc-theme--on-error":"mdc-theme--on-error","mdc-theme--text-primary-on-background":"mdc-theme--text-primary-on-background","mdc-theme--text-secondary-on-background":"mdc-theme--text-secondary-on-background","mdc-theme--text-hint-on-background":"mdc-theme--text-hint-on-background","mdc-theme--text-disabled-on-background":"mdc-theme--text-disabled-on-background","mdc-theme--text-icon-on-background":"mdc-theme--text-icon-on-background","mdc-theme--text-primary-on-light":"mdc-theme--text-primary-on-light","mdc-theme--text-secondary-on-light":"mdc-theme--text-secondary-on-light","mdc-theme--text-hint-on-light":"mdc-theme--text-hint-on-light","mdc-theme--text-disabled-on-light":"mdc-theme--text-disabled-on-light","mdc-theme--text-icon-on-light":"mdc-theme--text-icon-on-light","mdc-theme--text-primary-on-dark":"mdc-theme--text-primary-on-dark","mdc-theme--text-secondary-on-dark":"mdc-theme--text-secondary-on-dark","mdc-theme--text-hint-on-dark":"mdc-theme--text-hint-on-dark","mdc-theme--text-disabled-on-dark":"mdc-theme--text-disabled-on-dark","mdc-theme--text-icon-on-dark":"mdc-theme--text-icon-on-dark","mdc-theme--primary-bg":"mdc-theme--primary-bg","mdc-theme--secondary-bg":"mdc-theme--secondary-bg","mdc-button":"mdc-button","mdc-button__ripple":"mdc-button__ripple","mdc-fab":"mdc-fab","mdc-fab__ripple":"mdc-fab__ripple","mdc-top-app-bar":"mdc-top-app-bar","mdc-tab-bar":"mdc-tab-bar","mdc-tab":"mdc-tab","mdc-tab--active":"mdc-tab--active","mdc-tab__text-label":"mdc-tab__text-label","mdc-drawer":"mdc-drawer","mdc-chip__text__primary-action":"mdc-chip__text__primary-action","mdc-linear-progress":"mdc-linear-progress","rmwc-tooltip":"rmwc-tooltip","rmwc-tooltip-hidden":"rmwc-tooltip-hidden","rmwc-tooltip-zoom-enter":"rmwc-tooltip-zoom-enter","rmwc-tooltip-zoom-leave":"rmwc-tooltip-zoom-leave","rmwc-tooltip-zoom-appear":"rmwc-tooltip-zoom-appear","rmwc-tooltip-zoom-appear-active":"rmwc-tooltip-zoom-appear-active","rmwc-tooltip-zoom-enter-active":"rmwc-tooltip-zoom-enter-active",rmwcToolTipIn:"rmwcToolTipIn","rmwc-tooltip-zoom-leave-active":"rmwc-tooltip-zoom-leave-active",rmwcToolTipOut:"rmwcToolTipOut","rmwc-tooltip-inner":"rmwc-tooltip-inner","rmwc-tooltip--show-arrow":"rmwc-tooltip--show-arrow","rmwc-tooltip-arrow":"rmwc-tooltip-arrow","rmwc-tooltip-arrow-inner":"rmwc-tooltip-arrow-inner","rmwc-tooltip-placement-top":"rmwc-tooltip-placement-top","rmwc-tooltip-placement-topLeft":"rmwc-tooltip-placement-topLeft","rmwc-tooltip-placement-topRight":"rmwc-tooltip-placement-topRight","rmwc-tooltip-placement-right":"rmwc-tooltip-placement-right","rmwc-tooltip-placement-rightBottom":"rmwc-tooltip-placement-rightBottom","rmwc-tooltip-placement-rightTop":"rmwc-tooltip-placement-rightTop","rmwc-tooltip-placement-left":"rmwc-tooltip-placement-left","rmwc-tooltip-placement-leftBottom":"rmwc-tooltip-placement-leftBottom","rmwc-tooltip-placement-leftTop":"rmwc-tooltip-placement-leftTop","rmwc-tooltip-placement-bottom":"rmwc-tooltip-placement-bottom","rmwc-tooltip-placement-bottomLeft":"rmwc-tooltip-placement-bottomLeft","rmwc-tooltip-placement-bottomRight":"rmwc-tooltip-placement-bottomRight","mdc-typography":"mdc-typography","mdc-typography--headline1":"mdc-typography--headline1","mdc-typography--headline2":"mdc-typography--headline2","mdc-typography--headline3":"mdc-typography--headline3","mdc-typography--headline4":"mdc-typography--headline4","mdc-typography--headline5":"mdc-typography--headline5","mdc-typography--headline6":"mdc-typography--headline6","mdc-typography--subtitle1":"mdc-typography--subtitle1","mdc-typography--subtitle2":"mdc-typography--subtitle2","mdc-typography--body1":"mdc-typography--body1","mdc-typography--body2":"mdc-typography--body2","mdc-typography--caption":"mdc-typography--caption","mdc-typography--button":"mdc-typography--button","mdc-typography--overline":"mdc-typography--overline","generic-input":"generic-input","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","mdc-select-float-native-control":"mdc-select-float-native-control"},T=n(7),k=n(6),j=n(8),S=n(29),I=n(0);function O(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 P(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 P(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 P(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 C=!(void 0===typeof window),q=C?(0,d.optionalRequire)("react-useanimations"):null,z=C?(0,d.optionalRequire)("react-useanimations/lib/lock"):null,E=C?(0,d.optionalRequire)("react-useanimations/lib/plusToX"):null,N={basePath:"/node_modules/ace-builds/src-noconflict/",useWorker:!1},A=(0,u.lazy)(a()(c().mark((function e(){var t,r,o,i,a,l,d;return c().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,o=0,i=Object.entries(N);o<i.length;o++)a=i[o],l=a[0],d=a[1],r.set(l,d);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)}))));if(void 0===R)var R=1;var M=!1,L="/node_modules/tinymce/",V={base_url:L,skin_url:L+"skins/ui/oxide",theme_url:L+"themes/silver/theme.min.js",allow_conditional_comments:!1,allow_script_urls:!1,body_class:"mdc-text-field__input",branding:!1,cache_suffix:"?version="+R,contextmenu:!1,convert_fonts_to_spans:!0,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 hr nonbreaking searchreplace visualblocks",relative_urls:!1,remove_script_host:!1,remove_trailing_brs:!0,schema:"html5",toolbar1:"cut copy paste | undo redo removeformat | styleselect formatselect fontselect fontsizeselect | searchreplace visualblocks fullscreen code",toolbar2:"alignleft aligncenter alignright alignjustify outdent indent | link hr nonbreaking bullist numlist bold italic underline strikethrough",trim:!0};function B(e,t){return(0,j.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 D(e){m().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 W=function(e,t){var n,r,i,a,l,c,d,S;(0,u.useEffect)((function(){if(Ke||ye.selectionIsUnstable)if(He.editorIsActive){var e,t,n;null!==(e=ie.current)&&void 0!==e&&null!==(t=e.editor)&&void 0!==t&&t.selection?(ie.current.editor.textInput.focus(),H(ie.current),ye.selectionIsUnstable&&xe(o()({},ye,{selectionIsUnstable:!1}))):null!==(n=me.current)&&void 0!==n&&n.selection&&(me.current.focus(!1),Y(me.current),ye.selectionIsUnstable&&xe(o()({},ye,{selectionIsUnstable:!1})))}else ce.current&&(ce.current.setSelectionRange(He.cursor.start,He.cursor.end),ye.selectionIsUnstable&&xe(o()({},ye,{selectionIsUnstable:!1})))}));var P=function(e){return"clear_preset"===e?{icon:(0,I.jsx)(w.default,{in:!m().equals(He.value,He.default),children:null===q||q.isDummy?(0,I.jsx)(v.IconButton,{icon:"clear"}):(0,I.jsx)(q,{animation:E,reverse:!0})}),onClick:function(e){e.preventDefault(),e.stopPropagation(),Z((0,j.parseValue)(He,He.default,U.transformer))},strategy:"component",tooltip:"Clear input"}:"password_preset"===e?(0,j.useMemorizedValue)({icon:null===q||q.isDummy?(0,I.jsx)(v.IconButton,{icon:He.hidden?"lock_open":"lock"}):(0,I.jsx)(q,{animation:z,reverse:!He.hidden}),onClick:function(e){e.preventDefault(),e.stopPropagation(),Te((function(t){return void 0===t&&(t=He.hidden),He.hidden=!t,X(e),He.hidden}))},strategy:"component",tooltip:(He.hidden?"Show":"Hide")+" password"},He.hidden):e},C=function(e){var t,n;return"string"===e.type?e.hidden?"password":"text":null!==(t=null===(n=Ee[e.type])||void 0===n?void 0:n.type)&&void 0!==t?t:e.type},N=function(e){if("string"==typeof e){var t=m().stringEvaluate("`"+e+"`",o()({formatValue:function(e){return(0,j.formatValue)(He,e,Ee)}},He));return t.error?(console.warn("Given message template could not be proceed: "+t.error),""):t.result}return""},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return"boolean"==typeof t?n?(0,I.jsx)(w.default,{in:t,children:e}):t?e:"":n?(0,I.jsx)(w.default,o()({},t,{children:e})):t.in?e:""},L=function(e){var t;if("object"==typeof e&&null!==(t=e)&&void 0!==t&&t.tooltip){var n=e.tooltip;delete(e=o()({},e)).tooltip;var r=o()({},e);e.strategy="component",e.icon=(0,I.jsx)(k.default,{options:n,children:(0,I.jsx)(f.Icon,{icon:r})})}return e},W=function(e,t,n){if(!He.value)return 0;var r="generic-input-selection-indicator",o=" "+r+'="###"';t.setAttribute(r,"###");var i=e.innerHTML.replace(/(<\/p>)/gi,"$1\n");t.removeAttribute(r);var a=i.indexOf(o)+o.length;return n+i.indexOf(">",a)+1-o.length},$=function(e,t){return"string"==typeof He.value||He.value?t>0?e+He.value.split("\n").slice(0,t).map((function(e){return 1+e.length})).reduce((function(e,t){return e+t})):e:0},K=function(e){var t={column:0,row:0};if("string"==typeof He.value)for(var n,r=O(He.value.split("\n"));!(n=r()).done;){var o=n.value;if(!(o.length<e)){t.column=e;break}e-=1+o.length,t.row+=1}return t},H=function(e){var t=e.editor.selection.getRange(),n=K(He.cursor.end);t.setEnd(n.row,n.column);var r=K(He.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:He.cursor.end+t.start.length,start:He.cursor.start},r=["start","end"],o=He.representation,i=0,a=r;i<a.length;i++){var l=a[i];o=o.substring(0,n[l])+t[l]+o.substring(n[l])}e.getBody().innerHTML=o;for(var c,d=document.createTreeWalker(e.getBody(),NodeFilter.SHOW_TEXT,null),u=e.dom.createRng(),s={};c=d.nextNode();)for(var p,f=O(r);!(p=f()).done;){var v=p.value;if(c.nodeValue){var g=c.nodeValue.indexOf(t[v]);g>-1&&(c.nodeValue=c.nodeValue.replace(t[v],""),s[v]=[c,g])}}for(var h=0,b=r;h<b.length;h++){var y=b[h];s[y]&&u["set"+m().stringCapitalize(y)].apply(u,s[y])}s.end&&s.start&&e.selection.setRng(u)},G=function(e){var t=(0,j.getConsolidatedProperties)(function(e){var t=(0,j.mapPropertiesIntoModel)(e,U.defaultProperties.model);return t.model.value=(0,j.parseValue)(t,t.model.value,Ee),B(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,j.formatValue)(t,t.value,Ee,!t.focused),t.focused&&t.representation!==t.value&&["password","text"].includes(C(t))&&(Ke=!0)),t},X=function(e){m().extend(!0,He,G(He)),(0,j.triggerCallbackIfExists)(He,"change",Ue,He,e)},J=function(e){e&&(e.preventDefault(),e.stopPropagation()),xe((function(t){var n=t.editorIsActive;return He.editorIsActive=!n,X(e),(0,j.triggerCallbackIfExists)(He,"changeEditorIsActive",Ue,He.editorIsActive,e,He),{editorIsActive:He.editorIsActive,selectionIsUnstable:!0}}))},Q=function(e){e&&(e.preventDefault(),e.stopPropagation()),Pe((function(t){return He.showDeclaration=!t,X(e),(0,j.triggerCallbackIfExists)(He,"changeShowDeclaration",Ue,He.showDeclaration,e,He),He.showDeclaration}))},Z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(!He.disabled){var r;if(Se(!0),null!==e&&"object"==typeof e){var i=e.target||e.detail;He.value=i?void 0===i.value?null:i.value:e}else He.value=e;var a=function(){return We((function(e){if(!$e&&e.representation===He.representation&&!He.suggestionCreator&&-1===n)return e;var t=o()({},e,{representation:He.representation});if(!Ue&&m().equals(e.value,He.value))return t;t.value=He.value;var i=!1;return e.modelState.pristine&&(He.dirty=!0,He.pristine=!1,i=!0),X(r),B(He,e.modelState)&&(i=!0),(0,j.triggerCallbackIfExists)(He,"changeValue",Ue,He.value,r,He),i&&(t.modelState=He.model.state,(0,j.triggerCallbackIfExists)(He,"changeState",Ue,He.model.state,r,He)),(dt||-1!==n)&&(0,j.triggerCallbackIfExists)(He,"select",Ue,r,He),t}))};if(He.representation=-1!==n?et[n]:"string"==typeof He.value?He.value:(0,j.formatValue)(He,He.value,Ee),nt)if(He.suggestionCreator){var l=new AbortController,c=function(e){if(!l.signal.aborted){if(Re((function(t){return t instanceof AbortController&&!t.signal.aborted&&t.abort(),e})),-1===n){var t=(0,j.getValueFromSelection)(He.representation,(0,j.normalizeSelection)(e));null!==t||He.searchSelection?He.value=t:He.value=(0,j.parseValue)(He,He.representation,Ee)}a()}},d=He.suggestionCreator({abortController:l,properties:He,query:He.representation});null!=d&&d.then?(Re((function(e){return e instanceof AbortController&&!e.signal.aborted&&e.abort(),l})),We((function(e){return o()({},e,{representation:He.representation})})),d.then(c,m().noop)):c(d)}else{if(-1===n){var u=(0,j.getValueFromSelection)(He.representation,Me);null!==u||He.searchSelection?He.value=u:He.value=(0,j.parseValue)(He,He.representation,Ee)}a()}else He.value=(0,j.parseValue)(He,He.value,Ee),a()}},ee=function(e){re(e),(0,j.triggerCallbackIfExists)(He,"click",Ue,e,He),oe(e)},te=function(e){(0,j.triggerCallbackIfExists)(He,"focus",Ue,e,He),oe(e)},ne=function(e){e.keyCode&&(re(e),(0,j.triggerCallbackIfExists)(He,"keyUp",Ue,e,He))},re=function(e){!function(e){var t,n,r,o,i,a,l,c=null===(t=ie.current)||void 0===t||null===(n=t.editor)||void 0===n||null===(r=n.selection)||void 0===r?void 0:r.getRange(),d=null===(o=me.current)||void 0===o||null===(i=o.selection)||void 0===i?void 0:i.getRng(),m=null===(a=ce.current)||void 0===a?void 0:a.selectionEnd,u=null===(l=ce.current)||void 0===l?void 0:l.selectionStart;if(c)he({end:$(c.end.column,"number"==typeof c.end.row?c.end.row:"string"==typeof He.value?He.value.split("\n").length-1:0),start:$(c.start.column,"number"==typeof c.start.row?c.start.row:"string"==typeof He.value?He.value.split("\n").length-1:0)});else if(d)he({end:W(me.current.getBody(),me.current.selection.getEnd(),d.endOffset),start:W(me.current.getBody(),me.current.selection.getStart(),d.startOffset)});else if("number"==typeof m&&"number"==typeof u){var s,p=1===(null==e||null===(s=e.key)||void 0===s?void 0:s.length)?1:"Backspace"===(null==e?void 0:e.key)&&He.representation.length>u?-1:0;he({end:m+p,start:u+p})}}(e),(0,j.triggerCallbackIfExists)(He,"selectionChange",Ue,e,He)},oe=function(e){return We((function(t){var n=!1;t.modelState.focused||(He.focused=!0,n=!0),t.modelState.untouched&&(He.touched=!0,He.untouched=!1,n=!0);var r=t;return n&&(X(e),r=o()({},t,{modelState:He.model.state}),(0,j.triggerCallbackIfExists)(He,"changeState",Ue,He.model.state,e,He)),(0,j.triggerCallbackIfExists)(He,"touch",Ue,e,He),r}))},ie=(0,u.useRef)(null),ae=(0,u.useRef)(null),le=(0,u.useRef)(null),ce=(0,u.useRef)(null),de=(0,u.useRef)(null),me=(0,u.useRef)(null),ue=(0,u.useRef)(null),se=(0,u.useRef)(null),pe=(0,u.useRef)(null),fe=(0,j.translateKnownSymbols)(e),ve=(0,u.useState)({end:0,start:0}),ge=ve[0],he=ve[1],be=(0,u.useState)({editorIsActive:!1,selectionIsUnstable:!1}),ye=be[0],xe=be[1],we=(0,u.useState)(),_e=we[0],Te=we[1],ke=(0,u.useState)(!1),je=ke[0],Se=ke[1],Ie=(0,u.useState)(!1),Oe=Ie[0],Pe=Ie[1],Ce=(0,j.determineInitialValue)(fe,null===(n=U.defaultProperties.model)||void 0===n?void 0:n.default),qe=m().extend(!0,m().copy(U.defaultProperties),fe),ze=qe.type||(null===(r=qe.model)||void 0===r?void 0:r.type)||"string",Ee=qe.transformer?o()({},U.transformer,((i={})[ze]=m().extend(!0,m().copy(U.transformer[ze])||{},qe.transformer),i)):U.transformer,Ne=(0,u.useState)(),Ae=Ne[0],Re=Ne[1];(qe.selection||null!==(a=qe.model)&&void 0!==a&&a.selection)&&(Ae=qe.selection||(null===(l=qe.model)||void 0===l?void 0:l.selection));var Me=Ae instanceof AbortController?[]:(0,j.normalizeSelection)(Ae,qe.labels),Le=Ae instanceof AbortController?[[],[]]:(0,j.getLabelAndValues)(Me),Ve=Le[0],Be=Le[1],De=(0,u.useState)((function(){return{modelState:o()({},U.defaultModelState),representation:(0,j.determineInitialRepresentation)(qe,U.defaultProperties,Ce,Ee,Me),value:Ce}})),Fe=De[0],We=De[1],Ue=!qe.enforceUncontrolled&&(void 0!==(null===(c=fe.model)||void 0===c?void 0:c.value)||void 0!==fe.value)&&Boolean(fe.onChange||fe.onChangeValue),$e=Ue&&void 0!==fe.representation,Ke=!1;null!==qe.cursor&&"object"==typeof qe.cursor||(qe.cursor={}),void 0===qe.cursor.end&&(qe.cursor.end=ge.end),void 0===qe.cursor.start&&(qe.cursor.start=ge.start),void 0===qe.editorIsActive&&(qe.editorIsActive=ye.editorIsActive),void 0===qe.hidden&&(qe.hidden=_e),void 0===qe.representation&&(qe.representation=Fe.representation),void 0===qe.showDeclaration&&(qe.showDeclaration=Oe),(0,j.deriveMissingPropertiesFromState)(qe,Fe),void 0===qe.value?void 0===qe.representation&&void 0===qe.model.value&&(qe.representation=Fe.representation):$e||qe.value===Fe.value||(qe.representation=void 0);var He=G(qe);void 0===He.hidden&&(He.hidden=null===(d=He.name)||void 0===d?void 0:d.startsWith("password")),m().equals(He.cursor,ge)||he(He.cursor),He.editorIsActive!==ye.editorIsActive&&xe(o()({},ye,{editorIsActive:He.editorIsActive})),He.hidden!==_e&&Te(He.hidden),He.showDeclaration!==Oe&&Pe(He.showDeclaration);var Ye={modelState:He.model.state,representation:He.representation,value:He.value};(Ue||m().equals(He.value,Fe.value)&&He.representation===Fe.representation)&&m().equals(He.model.state,Fe.modelState)||We(Ye),Ue&&(We=(0,j.wrapStateSetter)(We,Ye)),(0,u.useImperativeHandle)(t,(function(){for(var e,t={modelState:He.model.state},n=O(["cursor","editorIsActive","hidden","showDeclaration"]);!(e=n()).done;){var r=e.value;fe.hasOwnProperty(r)||(t[r]=He[r])}return $e||(t.representation=He.representation),Ue||(t.value=He.value),{properties:He,references:{codeEditorReference:ie,codeEditorInputReference:ae,foundationReference:le,inputReference:ce,richTextEditorInputReference:de,richTextEditorInstance:me,richTextEditorReference:ue,suggestionMenuAPIReference:se,suggestionMenuFoundationReference:pe},state:t}}));var Ge={onBlur:function(e){return We((function(t){Se(!1);var n=!1,r=!1;if(t.modelState.focused&&(He.focused=!1,n=!0,r=!0),t.modelState.visited||(He.visited=!0,n=!0,r=!0),!nt||He.suggestSelection){var o=(0,j.getValueFromSelection)(He.representation,Me);null===o?(He.value=(0,j.parseValue)(He,He.value,Ee),He.representation=(0,j.formatValue)(He,He.value,Ee)):He.value=o}return m().equals(t.value,He.value)&&t.representation===He.representation||(n=!0),n&&X(e),m().equals(t.value,He.value)||(0,j.triggerCallbackIfExists)(He,"changeValue",Ue,He.value,e,He),r&&(0,j.triggerCallbackIfExists)(He,"changeState",Ue,He.model.state,e,He),(0,j.triggerCallbackIfExists)(He,"blur",Ue,e,He),n?{modelState:He.model.state,representation:He.representation,value:He.value}:t}))},onFocus:function(e){Se(!0),te(e)},placeholder:He.placeholder},Xe={disabled:He.disabled,helpText:{children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(w.default,{in:He.selectableEditor&&"string"===He.type&&"plain"!==He.editor,children:(0,I.jsx)(v.IconButton,{icon:{icon:He.editorIsActive?"subject":He.editor.startsWith("code")?"code":"text_format",onClick:J}})}),(0,I.jsx)(w.default,{in:Boolean(He.declaration),children:(0,I.jsx)(v.IconButton,{icon:{icon:"more_"+(He.showDeclaration?"vert":"horiz"),onClick:Q}})}),(0,I.jsx)(w.default,{in:He.showDeclaration,children:He.declaration}),(0,I.jsx)(w.default,{in:!He.showDeclaration&&He.invalid&&(He.showInitialValidationState||He.visited),children:(0,I.jsx)(y.Theme,{use:"error",children:N(He.invalidMaximum&&He.maximumText||He.invalidMaximumLength&&He.maximumLengthText||He.invalidMinimum&&He.minimumText||He.invalidMinimumLength&&He.minimumLengthText||He.invalidInvertedPattern&&He.invertedPatternText||He.invalidPattern&&He.patternText||He.invalidRequired&&He.requiredText)})})]}),persistent:Boolean(He.declaration)},invalid:He.showInitialValidationState&&He.invalid,label:He.description||He.name,outlined:He.outlined,required:He.required};He.icon&&(Xe.icon=L(P(He.icon)));var Je=o()({},V,{content_style:He.disabled?"body {opacity: .38}":"",placeholder:He.placeholder,readonly:Boolean(He.disabled),setup:function(e){me.current=e,me.current.on("init",(function(){me.current&&(M=!0,He.editorIsActive&&ye.selectionIsUnstable&&(me.current.focus(!1),Y(me.current),xe(o()({},ye,{selectionIsUnstable:!1}))))}))}});He.editor.endsWith("raw)")?(Je.toolbar1="cut copy paste | undo redo removeformat | code | fullscreen",delete Je.toolbar2):He.editor.endsWith("simple)")?(Je.toolbar1="cut copy paste | undo redo removeformat | bold italic underline strikethrough subscript superscript | fullscreen",delete Je.toolbar2):He.editor.endsWith("normal)")&&(Je.toolbar1="cut copy paste | undo redo removeformat | styleselect formatselect | searchreplace visualblocks fullscreen code");var Qe=!He.selection&&"string"===He.type&&He.editorIsActive&&(He.editor.startsWith("code")||He.editor.startsWith("richtext(")),Ze=[],et=[],tt=[],nt=Boolean(He.suggestionCreator||Ve.length&&(He.searchSelection||He.suggestSelection));if(nt&&Ve.length){He.suggestSelection=!He.searchSelection;for(var rt,ot=0,it=O(Ve);!(rt=it()).done;){var at=rt.value;if(m().isFunction(He.children)){var lt=He.children({index:ot,normalizedSelection:Me,properties:He,query:He.representation,suggestion:at,value:Be[ot]});lt&&(Ze.push((0,I.jsx)(g.MenuItem,{className:_["generic-input__suggestions__suggestion"],children:lt},ot)),et.push(at),tt.push(Be[ot]))}else if(!He.representation||He.suggestionCreator||F(at,He.representation)){var ct;Ze.push((0,I.jsx)(g.MenuItem,{className:_["generic-input__suggestions__suggestion"],dangerouslySetInnerHTML:{__html:m().stringMark(at,(null===(ct=He.representation)||void 0===ct?void 0:ct.split(" "))||"",(function(e){return(""+e).toLowerCase()}),'<span class="'+_["generic-input__suggestions__suggestion__mark"]+'">{1}</span>')}},ot)),et.push(at),tt.push(Be[ot])}ot+=1}}var dt=(Boolean(Me)||Boolean(He.labels))&&!nt;return(0,I.jsx)(T.default,{strict:U.strict,themeConfiguration:He.themeConfiguration,tooltip:He.tooltip,children:(0,I.jsxs)("div",{className:[_["generic-input"]].concat(Qe?_["generic-input--custom"]:[],null!==(S=He.className)&&void 0!==S?S:[]).join(" "),style:He.styles,children:[R((0,I.jsx)(h.Select,o()({},Ge,Xe,{enhanced:!0,foundationRef:le,inputRef:ce,onChange:Z,options:Me,rootProps:o()({name:He.name,onClick:ee},He.rootProps),value:""+He.value})),dt),R([(0,I.jsx)(p.FormField,{className:["mdc-text-field"].concat(He.disabled?"mdc-text-field--disabled":[],"mdc-text-field--textarea").join(" "),children:(0,I.jsxs)("label",{children:[(0,I.jsx)("span",{className:[_["generic-input__editor__label"]].concat("mdc-floating-label","mdc-floating-label--float-above").join(" "),children:(0,I.jsxs)(y.Theme,{use:He.invalid&&(He.showInitialValidationState||He.visited)?"error":void 0,children:[He.description||He.name,He.required?"*":""]})}),He.editor.startsWith("code")?(0,I.jsx)(u.Suspense,{fallback:(0,I.jsx)(s.CircularProgress,{size:"large"}),children:(0,I.jsx)(A,o()({},Ge,{className:"mdc-text-field__input",mode:He.editor.startsWith("code(")&&He.editor.endsWith(")")?He.editor.substring("code(".length,He.editor.length-1):"javascript",name:He.name,onChange:Z,onCursorChange:re,onSelectionChange:re,ref:function(e){var t,n,r;ie.current=e,null!==(t=ie.current)&&void 0!==t&&null!==(n=t.editor)&&void 0!==n&&null!==(r=n.container)&&void 0!==r&&r.querySelector("textarea")&&(ae.current=ie.current.editor.container.querySelector("textarea")),ie.current&&He.editorIsActive&&ye.selectionIsUnstable&&(ie.current.editor.textInput.focus(),H(ie.current),xe(o()({},ye,{selectionIsUnstable:!1})))},setOptions:{maxLines:He.rows,minLines:He.rows,readOnly:He.disabled,tabSize:4,useWorker:!1},theme:"github",value:He.representation}))}):(0,I.jsx)(x.Editor,o()({},Ge,{disabled:He.disabled,init:Je,onClick:ee,onEditorChange:Z,onKeyUp:ne,ref:function(e){ue.current=e},textareaName:He.name,tinymceScriptSrc:V.base_url+"tinymce.min.js",value:He.representation}))]})},"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",children:Xe.helpText.children})},"advanced-editor-helper-line")],Qe,M||He.editor.startsWith("code")),R((0,I.jsxs)("div",{children:[nt?(0,I.jsx)(g.MenuSurfaceAnchor,{onKeyDown:D,children:Ae instanceof AbortController?(0,I.jsx)(g.MenuSurface,{anchorCorner:"bottomLeft",className:_["generic-input__suggestions"]+" "+_["generic-input__suggestions--pending"],open:!0,children:(0,I.jsx)(s.CircularProgress,{size:"large"})}):(0,I.jsx)(g.Menu,{anchorCorner:"bottomLeft",apiRef:function(e){se.current=e},className:_["generic-input__suggestions"],focusOnOpen:!1,foundationRef:pe,onFocus:te,onSelect:function(e){Z(tt[e.detail.index],void 0,e.detail.index),Se(!1)},open:Boolean(et.length)&&je&&!(1===et.length&&et[0]===He.representation),children:Ze})}):"",(0,I.jsx)(b.TextField,o()({},Ge,Xe,"number"===He.type?{max:He.maximum,min:He.minimum,step:He.step}:"string"===He.type?o()({maxLength:He.maximumLength>=0?He.maximumLength:1/0,minLength:He.minimumLength>=0?He.minimumLength:0},"plain"===He.editor?{}:{rows:He.rows}):["date","datetime-local","time"].includes(He.type)?{max:(0,j.formatValue)(He,He.maximum,Ee),min:(0,j.formatValue)(He,He.minimum,Ee),step:He.step}:{},{align:He.align,characterCount:!0,foundationRef:le,fullwidth:He.fullWidth,inputRef:ce,onChange:Z,ripple:He.ripple,rootProps:o()({name:He.name,onClick:ee,onKeyDown:function(e){var t;nt&&m().keyCode.DOWN===e.keyCode&&(null===(t=se.current)||void 0===t||t.focusItemAtIndex(0)),"string"===He.type&&"plain"!==He.editor&&D(e),(0,j.triggerCallbackIfExists)(He,"keyDown",Ue,e,He)},onKeyUp:ne},He.rootProps),textarea:"string"===He.type&&"plain"!==He.editor,trailingIcon:L(P(He.trailingIcon)),type:C(He),value:He.representation}))]}),!(Qe||dt),M||He.editor.startsWith("code"))]})})};W.displayName="GenericInput";var U=(0,u.memo)((0,u.forwardRef)(W));U.wrapped=W,U.webComponentAdapterWrapped="react",U.defaultModelState=S.Bg,U.defaultProperties=o()({},S.Ko,{cursor:void 0,model:o()({},S.Ko.model,{state:void 0,value:void 0}),representation:void 0,value:void 0}),U.locales=m().locales,U.propTypes=S.rV,U.renderProperties=S.au,U.strict=!1,U.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,i,a,l,c,d=null!==(r=null===(i=n.currency.format)||void 0===i||null===(a=i.final.options)||void 0===a?void 0:a.currency)&&void 0!==r?r:"USD";return e===1/0?"Infinity "+d:e===-1/0?"- Infinity "+d:isNaN(e)?"unknown":new Intl.NumberFormat(U.locales,o()({style:"currency"},null!==(l=null===(c=n.currency.format)||void 0===c?void 0:c.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){if((e="number"==typeof e?e:parseFloat(e))===1/0)return"infinitely far in the future";if(e===-1/0)return"infinitely early in the past";if(!isFinite(e))return"";var t=new Date(Math.round(1e3*e)).toISOString();return t.substring(0,t.indexOf("T"))}},intermediate:{transform:function(e,t,n){var r;return null!==(r=n.date.format)&&void 0!==r&&r.final.transform?n.date.format.final.transform(e,t,n):""+e}}},parse:function(e){return"number"==typeof e?e:""+parseFloat(e)===e?parseFloat(e):Date.parse(e)/1e3}},"datetime-local":{format:{final:{transform:function(e){if((e="number"==typeof e?e:parseFloat(e))===1/0)return"infinitely far in the future";if(e===-1/0)return"infinitely early in the past";if(!isFinite(e))return"";var t=new Date(Math.round(1e3*e)).toISOString();return t.substring(0,t.length-1)}},intermediate:{transform:function(e,t,n){var r;return null!==(r=n["datetime-local"].format)&&void 0!==r&&r.final.transform?n["datetime-local"].format.final.transform(e,t,n):""+e}}},parse:function(e,t,n){return n.date.parse?n.date.parse(e,t,n):Date.parse(e)/1e3}},time:{format:{final:{transform:function(e){if((e="number"==typeof e?e:parseFloat(e))===1/0)return"infinitely far in the future";if(e===-1/0)return"infinitely early in the past";if(!isFinite(e))return"";var t=new Date(Math.round(1e3*e)).toISOString();return t.substring(t.indexOf("T")+1,t.length-1)}},intermediate:{transform:function(e,t,n){var r;return null!==(r=n.time.format)&&void 0!==r&&r.final.transform?n.time.format.final.transform(e,t,n):""+e}}},parse:function(e){return"number"==typeof e?e:parseInt(e.replace(/^([0-9]{2}):([0-9]{2})$/,(function(e,t,n){return String(parseInt(t)*Math.pow(60,2)+60*parseInt(n))})))}},float:{format:{final:{transform:function(e,t,n){return n.float.format?e===1/0?"Infinity":e===-1/0?"- Infinity":new Intl.NumberFormat(U.locales,n.float.format.final.options||{}).format(e):""+e}}},parse:function(e,t){return"string"==typeof e&&(e=parseFloat("de-DE"===U.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,i;return new Intl.NumberFormat(U.locales,o()({maximumFractionDigits:0},null!==(r=null===(i=n.integer.format)||void 0===i?void 0:i.final.options)&&void 0!==r?r:{})).format(e)}}},parse:function(e,t){return"string"==typeof e&&(e=parseInt("de-DE"===U.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},function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=o},function(e){e.exports=a},function(e){e.exports=l},function(e){e.exports=x},function(e){e.exports=i},function(e){e.exports=c},function(e){e.exports=d},function(e){e.exports=m},function(e){e.exports=f},function(e){e.exports=v},function(e){e.exports=y},function(e,t,n){n.d(t,{rV:function(){return h},au:function(){return b},Bg:function(){return y},Ko:function(){return w},ci:function(){return S},dO:function(){return I}});var r=n(1),o=n.n(r),i=n(3),a=n.n(i),l=n(5),c={declaration:l.string,default:l.any,description:l.string,name:l.string,selection:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.number,l.string])),(0,l.objectOf)((0,l.oneOfType)([l.number,l.string]))]),type:l.string,value:l.any},d={dirty:(0,l.oneOfType)([l.boolean,l.symbol]),focused:(0,l.oneOfType)([l.boolean,l.symbol]),invalid:(0,l.oneOfType)([l.boolean,l.symbol]),invalidRequired:(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]),valid:(0,l.oneOfType)([l.boolean,l.symbol]),visited:(0,l.oneOfType)([l.boolean,l.symbol])},m=o()({},c,{emptyEqualsNull:l.boolean,invertedRegularExpressionPattern:(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]),maximumLength:l.number,minimum:(0,l.oneOfType)([l.number,l.string]),minimumLength:l.number,mutable:l.boolean,pattern:(0,l.oneOfType)([l.object,l.string]),state:(0,l.shape)(d),writable:l.boolean,regularExpressionPattern:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.object,l.string])),l.object,l.string]),trim:l.boolean}),u=o()({},c,d,{className:l.string,disabled:l.boolean,enforceUncontrolled:l.boolean,initialValue:l.any,model:(0,l.shape)(m),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]),showDeclaration:(0,l.oneOfType)([l.boolean,l.symbol]),showInitialValidationState:l.boolean,styles:l.object,themeConfiguration:l.object,tooltip:l.any}),s={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:o()({},s),trim:!0,type:"string",writable:!0},f={enforceUncontrolled:!1,model:o()({},p),showDeclaration:void 0,showInitialValidationState:!1,requiredText:"Please fill this field."},v=(o()({},u,d,{checked:l.boolean,id:l.string}),o()({},p,{default:!1,type:"boolean",value:!1})),g=(o()({},f,{default:!1,model:o()({},v),requiredText:"Please check this field."}),o()({},d,{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])})),h=o()({},u,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]),fullWidth:l.boolean,hidden:(0,l.oneOfType)([l.boolean,l.symbol]),icon:(0,l.oneOfType)([l.string,l.object]),invertedPatternText:l.string,labels:(0,l.oneOfType)([(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,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}),b=["children","suggestionCreator"],y=o()({},s,{invalidMaximum:!1,invalidMinimum:!1,invalidMaximumLength:!1,invalidMinimumLength:!1,invalidInvertedPattern:!1,invalidPattern:!1}),x=o()({},p,{state:y}),w=o()({},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:o()({},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}),_=o()({},d,{invalidMaximumSize:(0,l.oneOfType)([l.boolean,l.symbol]),invalidMinimumSize:(0,l.oneOfType)([l.boolean,l.symbol]),invalidContentTypePattern:(0,l.oneOfType)([l.boolean,l.symbol]),invalidName:(0,l.oneOfType)([l.boolean,l.symbol])}),T=(o()({},u,_,{children:l.func,contentTypePatternText:(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]),encoding:l.string,generateFileNameInputProperties:l.func,invertedContentTypePatternText:(0,l.oneOfType)([(0,l.arrayOf)((0,l.oneOfType)([l.object,l.string])),l.object,l.string]),maximumSizeText:l.string,minimumSizeText:l.string,newButton:(0,l.oneOfType)([l.object,l.string]),onBlur:l.func,outlined:l.boolean}),o()({},s,{invalidMaximumSize:!1,invalidMinimumSize:!1,invalidContentTypePattern:!1,invalidName:!1})),k=o()({},p,{contentTypeRegularExpressionPattern:/^.+\/.+$/,fileName:o()({},x,{maximumLength:1024,name:"Name",regularExpressionPattern:/^[^\/]+$/}),invertedContentTypeRegularExpressionPattern:null,maximumSize:1/0,minimumSize:0,state:T});delete o()({},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}).model;o()({},f,{contentTypePatternText:'Your file\'s mime-type has to match the regular expression${[].concat(contentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(contentTypePattern).join("\\", \\"")}".',deleteButton:"delete",downloadButton:"download",editButton:"edit",encoding:"utf-8",generateFileNameInputProperties:a().identity,invertedContentTypePatternText:'Your file\'s mime-type should not match the regular expression${[].concat(invertedContentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(invertedContentTypePattern).join("\\", \\"")}".',maximumSizeText:"Please provide a file with less or equal size than ${maximumSize} byte.",media:{sixteenByNine:!0},minimumSizeText:"Please provide a file with more or equal size than ${maximumSize} byte.",model:o()({},k),newButton:"new",sourceToBlobOptions:{endings:"transparent",type:"text/plain"}}),o()({},u,g,{children:l.func,createPrototype:l.func,maximumNumber:l.number,minimumNumber:l.number});var j=o()({},p,{state:o()({},p.state,{invalidMaximumNumber:!1,invalidMinimumNumber:!1}),maximumNumber:1/0,minimumNumber:0,type:"string[]"}),S=(o()({},f,{addIcon:{icon:"add"},createPrototype:function(e){return e.prototype},model:o()({},j),removeIcon:{icon:"clear"}}),o()({},h,{value:(0,l.shape)({end:(0,l.oneOfType)([l.number,(0,l.shape)(h)]),start:(0,l.oneOfType)([l.number,(0,l.shape)(h)])})})),I={icon:{icon:"timelapse"},maximumText:"Please provide somthing earlier than ${formatValue(maximum)}.",minimumText:"Please provide somthing later than ${formatValue(minimum)}.",model:{name:"NO_NAME_DEFINED",state:o()({},s),value:{end:o()({},x,{description:"End",name:"end"}),start:o()({},x,{description:"Start",name:"start"})}},requiredText:"Please provide a range.",type:"time"}}],j={};function S(e){var t=j[e];if(void 0!==t)return t.exports;var n=j[e]={exports:{}};return k[e](n,n.exports,S),n.exports}S.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return S.d(t,{a:t}),t},T=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},S.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);S.r(n);var r={};_=_||[null,T({}),T([]),T(T)];for(var o=2&t&&e;"object"==typeof o&&!~_.indexOf(o);o=T(o))Object.getOwnPropertyNames(o).forEach((function(t){r[t]=function(){return e[t]}}));return r.default=function(){return e},S.d(n,r),n},S.d=function(e,t){for(var n in t)S.o(t,n)&&!S.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},S.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},S.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var I={};return function(){S.r(I),S.d(I,{Interval:function(){return f},IntervalInner:function(){return p},default:function(){return v}});var e=S(1),t=S.n(e),n=S(3),r=S.n(n),o=S(19),i=S(2),a=S(15),l={"rmwc-icon--component":"rmwc-icon--component","rmwc-icon--url":"rmwc-icon--url","rmwc-icon--size-xsmall":"rmwc-icon--size-xsmall","rmwc-icon--size-small":"rmwc-icon--size-small","rmwc-icon--size-medium":"rmwc-icon--size-medium","rmwc-icon--size-large":"rmwc-icon--size-large","rmwc-icon--size-xlarge":"rmwc-icon--size-xlarge","mdc-theme--primary":"mdc-theme--primary","mdc-theme--secondary":"mdc-theme--secondary","mdc-theme--background":"mdc-theme--background","mdc-theme--surface":"mdc-theme--surface","mdc-theme--error":"mdc-theme--error","mdc-theme--on-primary":"mdc-theme--on-primary","mdc-theme--on-secondary":"mdc-theme--on-secondary","mdc-theme--on-surface":"mdc-theme--on-surface","mdc-theme--on-error":"mdc-theme--on-error","mdc-theme--text-primary-on-background":"mdc-theme--text-primary-on-background","mdc-theme--text-secondary-on-background":"mdc-theme--text-secondary-on-background","mdc-theme--text-hint-on-background":"mdc-theme--text-hint-on-background","mdc-theme--text-disabled-on-background":"mdc-theme--text-disabled-on-background","mdc-theme--text-icon-on-background":"mdc-theme--text-icon-on-background","mdc-theme--text-primary-on-light":"mdc-theme--text-primary-on-light","mdc-theme--text-secondary-on-light":"mdc-theme--text-secondary-on-light","mdc-theme--text-hint-on-light":"mdc-theme--text-hint-on-light","mdc-theme--text-disabled-on-light":"mdc-theme--text-disabled-on-light","mdc-theme--text-icon-on-light":"mdc-theme--text-icon-on-light","mdc-theme--text-primary-on-dark":"mdc-theme--text-primary-on-dark","mdc-theme--text-secondary-on-dark":"mdc-theme--text-secondary-on-dark","mdc-theme--text-hint-on-dark":"mdc-theme--text-hint-on-dark","mdc-theme--text-disabled-on-dark":"mdc-theme--text-disabled-on-dark","mdc-theme--text-icon-on-dark":"mdc-theme--text-icon-on-dark","mdc-theme--primary-bg":"mdc-theme--primary-bg","mdc-theme--secondary-bg":"mdc-theme--secondary-bg","mdc-button":"mdc-button","mdc-button__ripple":"mdc-button__ripple","mdc-fab":"mdc-fab","mdc-fab__ripple":"mdc-fab__ripple","mdc-top-app-bar":"mdc-top-app-bar","mdc-tab-bar":"mdc-tab-bar","mdc-tab":"mdc-tab","mdc-tab--active":"mdc-tab--active","mdc-tab__text-label":"mdc-tab__text-label","mdc-drawer":"mdc-drawer","mdc-list-item--activated":"mdc-list-item--activated","mdc-list-item":"mdc-list-item","mdc-list-item__graphic":"mdc-list-item__graphic","mdc-list-divider":"mdc-list-divider","mdc-select":"mdc-select","mdc-select--disabled":"mdc-select--disabled","mdc-select--invalid":"mdc-select--invalid","mdc-select--focused":"mdc-select--focused","mdc-floating-label":"mdc-floating-label","mdc-text-field":"mdc-text-field","mdc-text-field--disabled":"mdc-text-field--disabled","mdc-text-field--invalid":"mdc-text-field--invalid","mdc-text-field--focused":"mdc-text-field--focused","mdc-chip__text__primary-action":"mdc-chip__text__primary-action","mdc-linear-progress":"mdc-linear-progress","rmwc-tooltip":"rmwc-tooltip","rmwc-tooltip-hidden":"rmwc-tooltip-hidden","rmwc-tooltip-zoom-enter":"rmwc-tooltip-zoom-enter","rmwc-tooltip-zoom-leave":"rmwc-tooltip-zoom-leave","rmwc-tooltip-zoom-appear":"rmwc-tooltip-zoom-appear","rmwc-tooltip-zoom-appear-active":"rmwc-tooltip-zoom-appear-active","rmwc-tooltip-zoom-enter-active":"rmwc-tooltip-zoom-enter-active",rmwcToolTipIn:"rmwcToolTipIn","rmwc-tooltip-zoom-leave-active":"rmwc-tooltip-zoom-leave-active",rmwcToolTipOut:"rmwcToolTipOut","rmwc-tooltip-inner":"rmwc-tooltip-inner","rmwc-tooltip--show-arrow":"rmwc-tooltip--show-arrow","rmwc-tooltip-arrow":"rmwc-tooltip-arrow","rmwc-tooltip-arrow-inner":"rmwc-tooltip-arrow-inner","rmwc-tooltip-placement-top":"rmwc-tooltip-placement-top","rmwc-tooltip-placement-topLeft":"rmwc-tooltip-placement-topLeft","rmwc-tooltip-placement-topRight":"rmwc-tooltip-placement-topRight","rmwc-tooltip-placement-right":"rmwc-tooltip-placement-right","rmwc-tooltip-placement-rightBottom":"rmwc-tooltip-placement-rightBottom","rmwc-tooltip-placement-rightTop":"rmwc-tooltip-placement-rightTop","rmwc-tooltip-placement-left":"rmwc-tooltip-placement-left","rmwc-tooltip-placement-leftBottom":"rmwc-tooltip-placement-leftBottom","rmwc-tooltip-placement-leftTop":"rmwc-tooltip-placement-leftTop","rmwc-tooltip-placement-bottom":"rmwc-tooltip-placement-bottom","rmwc-tooltip-placement-bottomLeft":"rmwc-tooltip-placement-bottomLeft","rmwc-tooltip-placement-bottomRight":"rmwc-tooltip-placement-bottomRight",interval:"interval","interval--disabled":"interval--disabled",interval__icon:"interval__icon",interval__end:"interval__end",interval__start:"interval__start"},c=S(7),d=S(8),m=S(29),u=S(0),s=function(e,n,r,o){var i=function(e,t){return{dirty:e.dirty||t.dirty,focused:e.focused||t.focused,invalid:e.invalid||t.invalid,invalidRequired:e.invalidRequired||t.invalidRequired,pristine:e.pristine&&t.pristine,touched:e.touched||t.touched,untouched:e.untouched&&t.untouched,valid:e.valid&&t.valid,visited:e.visited||t.visited}}(r,o);o.value,r.value;return t()({},e,i,{icon:n,model:{name:e.name,state:i,value:{end:o.model,start:r.model}},value:{end:o,start:r}})},p=function(e,n){var m,p,v,g,h,b,y,x,w,_,T,k,j,S,I,O,P,C,q,z,E,N,A,R,M,L,V,B,D,F,W,U,$,K=(0,d.translateKnownSymbols)(e);K.value||(K.value={end:{value:K.value},start:{value:K.value}}),"number"==typeof K.value.end&&(K.value.end={value:K.value.end}),"number"==typeof K.value.start&&(K.value.start={value:K.value.start});var H=r().extend(!0,r().copy(f.defaultProperties),K),Y=(null===(m=H.value)||void 0===m?void 0:m.end)||{},G="string"==typeof H.icon?{icon:H.icon}:H.icon,X=(null===(p=H.value)||void 0===p?void 0:p.start)||{},J=!H.enforceUncontrolled&&(void 0!==(null===(v=K.model)||void 0===v||null===(g=v.value)||void 0===g||null===(h=g.end)||void 0===h?void 0:h.value)||void 0!==(null===(b=K.model)||void 0===b||null===(y=b.value)||void 0===y||null===(x=y.start)||void 0===x?void 0:x.value)||void 0!==K.value)&&Boolean(H.onChange||H.onChangeValue),Q=(0,i.useState)({end:null!==(w=null!==(_=null!==(T=null!==(k=Y.value)&&void 0!==k?k:null===(j=H.model)||void 0===j||null===(S=j.value)||void 0===S||null===(I=S.end)||void 0===I?void 0:I.value)&&void 0!==T?T:Y.default)&&void 0!==_?_:null===(O=H.model)||void 0===O||null===(P=O.value)||void 0===P||null===(C=P.end)||void 0===C?void 0:C.default)&&void 0!==w?w:null,start:null!==(q=null!==(z=null!==(E=null!==(N=X.value)&&void 0!==N?N:null===(A=H.model)||void 0===A||null===(R=A.value)||void 0===R||null===(M=R.end)||void 0===M?void 0:M.value)&&void 0!==E?E:X.default)&&void 0!==z?z:null===(L=H.model)||void 0===L||null===(V=L.value)||void 0===V||null===(B=V.start)||void 0===B?void 0:B.default)&&void 0!==q?q:null}),Z=Q[0],ee=Q[1];H.value||(H.value={end:{value:Z.end},start:{value:Z.start}});var te=r().mask(H,{exclude:{className:!0,enforceUncontrolled:!0,end:!0,icon:!0,start:!0,model:!0,name:!0,onChange:!0,onChangeValue:!0,style:!0,value:!0}});Y=r().extend(!0,r().copy(te),null!==(D=H.model)&&void 0!==D&&null!==(F=D.value)&&void 0!==F&&F.end?{model:H.model.value.end}:{},Y),X=r().extend(!0,r().copy(te),null!==(W=H.model)&&void 0!==W&&null!==(U=W.value)&&void 0!==U&&U.start?{model:H.model.value.start}:{},X),Y.className||(Y.className=l.interval+"__end"),G.className||(G.className=l.interval+"__icon"),X.className||(X.className=l.interval+"__start");var ne=t()({},Y.model,Y),re=t()({},X.model,X);X.maximum=Math.min("number"==typeof re.maximum?re.maximum:1/0,H.value.end.value||1/0,"number"==typeof ne.maximum?ne.maximum:1/0),X.minimum=re.minimum||-1/0,X.value=H.value.start.value,Y.maximum="number"==typeof ne.maximum?ne.maximum:1/0,Y.minimum=Math.max("number"==typeof ne.minimum?ne.minimum:-1/0,H.value.start.value||-1/0,"number"==typeof re.minimum?re.minimum:-1/0),Y.value=H.value.end.value;var oe=(0,i.useRef)(null),ie=(0,i.useRef)(null),ae={end:H.value.end.value,start:H.value.start.value};return J&&(ee=(0,d.createDummyStateSetter)(ae)),(0,i.useImperativeHandle)(n,(function(){var e,t;return{properties:s(H,G,(null===(e=ie.current)||void 0===e?void 0:e.properties)||H.value.start,(null===(t=oe.current)||void 0===t?void 0:t.properties)||H.value.end),references:{end:oe,start:ie},state:J?{}:{value:ae}}})),H.onChange&&(Y.onChange=function(e,t){var n,r,o,i,a,l=(null===(n=ie.current)||void 0===n?void 0:n.properties)||X;l.value=Math.min(null!==(r=null===(o=ie.current)||void 0===o||null===(i=o.properties)||void 0===i?void 0:i.value)&&void 0!==r?r:1/0,null!==(a=e.value)&&void 0!==a?a:1/0),(0,d.triggerCallbackIfExists)(H,"change",J,s(H,G,l,e),t,H)},X.onChange=function(e,t){var n,r,o,i,a,l=(null===(n=oe.current)||void 0===n?void 0:n.properties)||Y;l.value=Math.max(null!==(r=null===(o=oe.current)||void 0===o||null===(i=o.properties)||void 0===i?void 0:i.value)&&void 0!==r?r:-1/0,null!==(a=e.value)&&void 0!==a?a:-1/0),(0,d.triggerCallbackIfExists)(H,"change",J,s(H,G,e,l),t,H)}),Y.onChangeValue=function(e,t){var n,r,o,i=Math.min(null!==(n=null===(r=ie.current)||void 0===r||null===(o=r.properties)||void 0===o?void 0:o.value)&&void 0!==n?n:1/0,null!=e?e:1/0),a={end:e,start:isFinite(i)?i:e};(0,d.triggerCallbackIfExists)(H,"changeValue",J,a,t,H),ee(a)},X.onChangeValue=function(e,t){var n,r,o,i=Math.max(null!==(n=null===(r=oe.current)||void 0===r||null===(o=r.properties)||void 0===o?void 0:o.value)&&void 0!==n?n:-1/0,null!=e?e:-1/0),a={end:isFinite(i)?i:e,start:e};(0,d.triggerCallbackIfExists)(H,"changeValue",J,a,t,H),ee(a)},(0,u.jsx)(c.default,{strict:f.strict,themeConfiguration:H.themeConfiguration,children:(0,u.jsxs)("div",{className:[l.interval].concat(null!==($=H.className)&&void 0!==$?$:[],H.disabled?l["interval--disabled"]:[]).join(" "),"data-name":H.name,style:H.styles,children:[(0,u.jsx)(a.default,t()({},X,{ref:ie})),(0,u.jsx)(o.Icon,{icon:G}),(0,u.jsx)(a.default,t()({},Y,{ref:oe}))]})})};p.displayName="Interval";var f=(0,i.memo)((0,i.forwardRef)(p));f.wrapped=p,f.webComponentAdapterWrapped="react",f.defaultProperties=m.dO,f.propTypes=m.ci,f.strict=!1;var v=f}(),I}()}));
|
|
@@ -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/extends"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@rmwc/checkbox"),require("@rmwc/theme"),require("@rmwc/tooltip"),require("@rmwc/typography"),require("clientnode"),require("clientnode/property-types"),require("react"),require("react/jsx-runtime"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends","@babel/runtime/helpers/objectWithoutPropertiesLoose","@rmwc/checkbox","@rmwc/theme","@rmwc/tooltip","@rmwc/typography","clientnode","clientnode/property-types","react","react/jsx-runtime"],t);else{var n="object"==typeof exports?t(require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@rmwc/checkbox"),require("@rmwc/theme"),require("@rmwc/tooltip"),require("@rmwc/typography"),require("clientnode"),require("clientnode/property-types"),require("react"),require("react/jsx-runtime")):t(e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@rmwc/checkbox"],e["@rmwc/theme"],e["@rmwc/tooltip"],e["@rmwc/typography"],e.clientnode,e["clientnode/property-types"],e.react,e["react/jsx-runtime"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,(function(e,t,n,r,o,i,a,c,l,d){return function(){"use strict";var u=[function(e){e.exports=d},function(t){t.exports=e},function(e){e.exports=l},function(e){e.exports=a},function(e){e.exports=r},function(e){e.exports=c},function(e,t,n){n.d(t,{WrapTooltip:function(){return l}});var r=n(1),o=n.n(r),i=n(9),a=n(11),c=n(0),l=function(e){var t=e.children,n=e.options;return"string"==typeof n?(0,c.jsx)(a.Tooltip,{content:(0,c.jsx)(i.Typography,{use:"caption",children:n}),children:(0,c.jsx)("div",{className:"generic-tooltip",children:t})}):null!==n&&"object"==typeof n?("string"==typeof n.content&&(n=o()({},n,{content:(0,c.jsx)(i.Typography,{use:"caption",children:n.content})})),(0,c.jsx)(a.Tooltip,o()({},n,{children:(0,c.jsx)("div",{className:"generic-tooltip",children:t})}))):(0,c.jsx)(c.Fragment,{children:t})}},function(e,t,n){n.d(t,{WrapConfigurations:function(){return c}});n(1),n(13),n(2),n(4);var r=n(12),o=n(10),i=n(6),a=n(0),c=function(e){var t=e.children,n=e.strict,c=e.themeConfiguration,l=e.tooltip,d=e.wrap;return(0,a.jsx)(r.x,{strict:Boolean(n),children:(0,a.jsx)(i.WrapTooltip,{options:l,children:(0,a.jsx)(o.WrapThemeProvider,{configuration:c,wrap:d,children:t})})})}},function(e,t,n){n.d(t,{deriveMissingPropertiesFromState:function(){return u},wrapStateSetter:function(){return m},triggerCallbackIfExists:function(){return s},translateKnownSymbols:function(){return p},determineInitialValue:function(){return f},determineValidationState:function(){return b},mapPropertiesIntoModel:function(){return h},getConsolidatedProperties:function(){return y}});var r=n(1),o=n.n(r),i=n(3),a=n.n(i),c=n(5);n(2);function l(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 d(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 d(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 d(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 u=function(e,t){for(var n in 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=o()({},e.model.state):e.model.state={},t.modelState)Object.prototype.hasOwnProperty.call(t.modelState,n)&&void 0===e.model.state[n]&&(e.model.state[n]=t.modelState[n]);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)}},s=function(e,t){for(var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];t="on"+a().stringCapitalize(t),e[t]&&(n?e[t].apply(e,o):a().timeout((function(){return e[t].apply(e,o)})))},p=function(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],i=o[0],l=o[1];l===c.UndefinedSymbol?t[i]=void 0:l===c.NullSymbol?t[i]=null:t[i]=a().copy(e[i])}return t},f=function(e,t,n){var r,o;return void 0!==n?n:void 0!==e.value?e.value:void 0!==(null===(r=e.model)||void 0===r?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===(o=e.model)||void 0===o?void 0:o.default)?a().copy(e.model.default):void 0!==t?t:null},b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!1;n=o()({invalidRequired:function(){return!1===e.model.nullable&&"boolean"!==e.model.type&&!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 i=0,a=Object.entries(n);i<a.length;i++){var c=a[i],l=c[0],d=c[1],u=t[l];e.model.state[l]=d(),r=r||u!==t[l]}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},h=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,o=l(Object.keys(n.model).concat("value"));!(r=o()).done;){var i=r.value;Object.prototype.hasOwnProperty.call(n,i)&&void 0!==n[i]&&(n.model[i]=n[i])}for(var c in n.model.state)Object.prototype.hasOwnProperty.call(n,c)&&void 0!==n[c]&&(n.model.state[c]=n[c]);return void 0===n.model.value&&(n.model.value=a().copy(n.model.default)),n},y=function(e){var t=o()({},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(e){e.exports=i},function(e,t,n){n.d(t,{WrapThemeProvider:function(){return i}});var r=n(4),o=n(0),i=function(e){var t=e.children,n=e.configuration,i=e.wrap;return n?(0,o.jsx)(r.ThemeProvider,{options:n,wrap:!1!==i,children:t}):t}},function(e){e.exports=o},function(e,t,n){n.d(t,{x:function(){return i}});var r=n(2),o=n(0),i=function(e){var t=e.children;return e.strict?(0,o.jsx)(r.StrictMode,{children:t}):(0,o.jsx)(o.Fragment,{children:t})}},function(e){e.exports=t},,,,,,,,,,,,,,,,function(e,t,n){n.d(t,{cN:function(){return s},by:function(){return b},uG:function(){return y}});var r=n(1),o=n.n(r),i=n(3),a=n.n(i),c=n(5),l={declaration:c.string,default:c.any,description:c.string,name:c.string,selection:(0,c.oneOfType)([(0,c.arrayOf)((0,c.oneOfType)([c.number,c.string])),(0,c.objectOf)((0,c.oneOfType)([c.number,c.string]))]),type:c.string,value:c.any},d={dirty:(0,c.oneOfType)([c.boolean,c.symbol]),focused:(0,c.oneOfType)([c.boolean,c.symbol]),invalid:(0,c.oneOfType)([c.boolean,c.symbol]),invalidRequired:(0,c.oneOfType)([c.boolean,c.symbol]),pristine:(0,c.oneOfType)([c.boolean,c.symbol]),touched:(0,c.oneOfType)([c.boolean,c.symbol]),untouched:(0,c.oneOfType)([c.boolean,c.symbol]),valid:(0,c.oneOfType)([c.boolean,c.symbol]),visited:(0,c.oneOfType)([c.boolean,c.symbol])},u=o()({},l,{emptyEqualsNull:c.boolean,invertedRegularExpressionPattern:(0,c.oneOfType)([(0,c.arrayOf)((0,c.oneOfType)([c.object,c.string])),c.object,c.string]),maximum:(0,c.oneOfType)([c.number,c.string]),maximumLength:c.number,minimum:(0,c.oneOfType)([c.number,c.string]),minimumLength:c.number,mutable:c.boolean,pattern:(0,c.oneOfType)([c.object,c.string]),state:(0,c.shape)(d),writable:c.boolean,regularExpressionPattern:(0,c.oneOfType)([(0,c.arrayOf)((0,c.oneOfType)([c.object,c.string])),c.object,c.string]),trim:c.boolean}),m=o()({},l,d,{className:c.string,disabled:c.boolean,enforceUncontrolled:c.boolean,initialValue:c.any,model:(0,c.shape)(u),onChange:c.func,onChangeValue:c.func,onChangeShowDeclaration:c.func,onChangeState:c.func,onClick:c.func,onFocus:c.func,onTouch:c.func,required:c.boolean,requiredText:c.string,ripple:(0,c.oneOfType)([c.boolean,c.object]),showDeclaration:(0,c.oneOfType)([c.boolean,c.symbol]),showInitialValidationState:c.boolean,styles:c.object,themeConfiguration:c.object,tooltip:c.any}),s={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:o()({},s),trim:!0,type:"string",writable:!0},f={enforceUncontrolled:!1,model:o()({},p),showDeclaration:void 0,showInitialValidationState:!1,requiredText:"Please fill this field."},b=o()({},m,d,{checked:c.boolean,id:c.string}),h=o()({},p,{default:!1,type:"boolean",value:!1}),y=o()({},f,{default:!1,model:o()({},h),requiredText:"Please check this field."}),v=o()({},d,{invalidMaximum:(0,c.oneOfType)([c.boolean,c.symbol]),invalidMinimum:(0,c.oneOfType)([c.boolean,c.symbol]),invalidMaximumLength:(0,c.oneOfType)([c.boolean,c.symbol]),invalidMinimumLength:(0,c.oneOfType)([c.boolean,c.symbol]),invalidInvertedPattern:(0,c.oneOfType)([c.boolean,c.symbol]),invalidPattern:(0,c.oneOfType)([c.boolean,c.symbol])}),g=o()({},m,v,{align:c.string,children:c.func,cursor:(0,c.oneOfType)([(0,c.shape)({end:c.number.isRequired,start:c.number.isRequired}),c.symbol]),editor:c.string,editorIsActive:(0,c.oneOfType)([c.boolean,c.symbol]),fullWidth:c.boolean,hidden:(0,c.oneOfType)([c.boolean,c.symbol]),icon:(0,c.oneOfType)([c.string,c.object]),invertedPatternText:c.string,labels:(0,c.oneOfType)([(0,c.arrayOf)(c.string),c.object]),maximumLengthText:c.string,maximumText:c.string,minimumLengthText:c.string,minimumText:c.string,onBlur:c.func,onChangeEditorIsActive:c.func,onKeyDown:c.func,onKeyUp:c.func,onSelect:c.func,onSelectionChange:c.func,outlined:c.boolean,patternText:c.string,placeholder:c.string,representation:(0,c.oneOfType)([c.string,c.symbol]),rows:c.number,searchSelection:c.boolean,selectableEditor:c.boolean,step:c.number,suggestionCreator:c.func,suggestSelection:c.boolean,trailingIcon:c.any,transformer:c.object}),x=o()({},s,{invalidMaximum:!1,invalidMinimum:!1,invalidMaximumLength:!1,invalidMinimumLength:!1,invalidInvertedPattern:!1,invalidPattern:!1}),k=o()({},p,{state:x}),T=o()({},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:o()({},k),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}),P=o()({},d,{invalidMaximumSize:(0,c.oneOfType)([c.boolean,c.symbol]),invalidMinimumSize:(0,c.oneOfType)([c.boolean,c.symbol]),invalidContentTypePattern:(0,c.oneOfType)([c.boolean,c.symbol]),invalidName:(0,c.oneOfType)([c.boolean,c.symbol])}),O=(o()({},m,P,{children:c.func,contentTypePatternText:(0,c.oneOfType)([(0,c.arrayOf)((0,c.oneOfType)([c.object,c.string])),c.object,c.string]),deleteButton:(0,c.oneOfType)([c.object,c.string]),downloadButton:(0,c.oneOfType)([c.object,c.string]),editButton:(0,c.oneOfType)([c.object,c.string]),encoding:c.string,generateFileNameInputProperties:c.func,invertedContentTypePatternText:(0,c.oneOfType)([(0,c.arrayOf)((0,c.oneOfType)([c.object,c.string])),c.object,c.string]),maximumSizeText:c.string,minimumSizeText:c.string,newButton:(0,c.oneOfType)([c.object,c.string]),onBlur:c.func,outlined:c.boolean}),o()({},s,{invalidMaximumSize:!1,invalidMinimumSize:!1,invalidContentTypePattern:!1,invalidName:!1})),S=o()({},p,{contentTypeRegularExpressionPattern:/^.+\/.+$/,fileName:o()({},k,{maximumLength:1024,name:"Name",regularExpressionPattern:/^[^\/]+$/}),invertedContentTypeRegularExpressionPattern:null,maximumSize:1/0,minimumSize:0,state:O});delete o()({},T,{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}).model;o()({},f,{contentTypePatternText:'Your file\'s mime-type has to match the regular expression${[].concat(contentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(contentTypePattern).join("\\", \\"")}".',deleteButton:"delete",downloadButton:"download",editButton:"edit",encoding:"utf-8",generateFileNameInputProperties:a().identity,invertedContentTypePatternText:'Your file\'s mime-type should not match the regular expression${[].concat(invertedContentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(invertedContentTypePattern).join("\\", \\"")}".',maximumSizeText:"Please provide a file with less or equal size than ${maximumSize} byte.",media:{sixteenByNine:!0},minimumSizeText:"Please provide a file with more or equal size than ${maximumSize} byte.",model:o()({},S),newButton:"new",sourceToBlobOptions:{endings:"transparent",type:"text/plain"}}),o()({},m,v,{children:c.func,createPrototype:c.func,maximumNumber:c.number,minimumNumber:c.number});var j=o()({},p,{state:o()({},p.state,{invalidMaximumNumber:!1,invalidMinimumNumber:!1}),maximumNumber:1/0,minimumNumber:0,type:"string[]"});o()({},f,{addIcon:{icon:"add"},createPrototype:function(e){return e.prototype},model:o()({},j),removeIcon:{icon:"clear"}}),o()({},g,{value:(0,c.shape)({end:(0,c.oneOfType)([c.number,(0,c.shape)(g)]),start:(0,c.oneOfType)([c.number,(0,c.shape)(g)])})}),o()({},s),o()({},k,{description:"End",name:"end"}),o()({},k,{description:"Start",name:"start"})},,,,,,,,function(e){e.exports=n}],m={};function s(e){var t=m[e];if(void 0!==t)return t.exports;var n=m[e]={exports:{}};return u[e](n,n.exports,s),n.exports}s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var p={};return function(){s.r(p),s.d(p,{RequireableCheckbox:function(){return h},RequireableCheckboxInner:function(){return b},default:function(){return y},determineValidationState:function(){return f}});var e=s(1),t=s.n(e),n=s(3),r=s.n(n),o=s(2),i=s(37),a=s(4),c={"mdc-touch-target-wrapper":"mdc-touch-target-wrapper","mdc-checkbox":"mdc-checkbox","mdc-checkbox__native-control":"mdc-checkbox__native-control","mdc-checkbox__background":"mdc-checkbox__background","mdc-checkbox--selected":"mdc-checkbox--selected","mdc-checkbox__ripple":"mdc-checkbox__ripple","mdc-ripple-upgraded--background-focused":"mdc-ripple-upgraded--background-focused","mdc-ripple-upgraded":"mdc-ripple-upgraded","mdc-checkbox--anim-unchecked-checked":"mdc-checkbox--anim-unchecked-checked","mdc-checkbox--anim-unchecked-indeterminate":"mdc-checkbox--anim-unchecked-indeterminate","mdc-checkbox-fade-in-background-8A000000secondary00000000secondary":"mdc-checkbox-fade-in-background-8A000000secondary00000000secondary","mdc-checkbox--anim-checked-unchecked":"mdc-checkbox--anim-checked-unchecked","mdc-checkbox--anim-indeterminate-unchecked":"mdc-checkbox--anim-indeterminate-unchecked","mdc-checkbox-fade-out-background-8A000000secondary00000000secondary":"mdc-checkbox-fade-out-background-8A000000secondary00000000secondary","mdc-checkbox__checkmark":"mdc-checkbox__checkmark","mdc-checkbox__mixedmark":"mdc-checkbox__mixedmark","mdc-checkbox--disabled":"mdc-checkbox--disabled","mdc-checkbox--upgraded":"mdc-checkbox--upgraded","mdc-checkbox__checkmark-path":"mdc-checkbox__checkmark-path","mdc-checkbox-unchecked-checked-checkmark-path":"mdc-checkbox-unchecked-checked-checkmark-path","mdc-checkbox-unchecked-indeterminate-mixedmark":"mdc-checkbox-unchecked-indeterminate-mixedmark","mdc-checkbox-checked-unchecked-checkmark-path":"mdc-checkbox-checked-unchecked-checkmark-path","mdc-checkbox--anim-checked-indeterminate":"mdc-checkbox--anim-checked-indeterminate","mdc-checkbox-checked-indeterminate-checkmark":"mdc-checkbox-checked-indeterminate-checkmark","mdc-checkbox-checked-indeterminate-mixedmark":"mdc-checkbox-checked-indeterminate-mixedmark","mdc-checkbox--anim-indeterminate-checked":"mdc-checkbox--anim-indeterminate-checked","mdc-checkbox-indeterminate-checked-checkmark":"mdc-checkbox-indeterminate-checked-checkmark","mdc-checkbox-indeterminate-checked-mixedmark":"mdc-checkbox-indeterminate-checked-mixedmark","mdc-checkbox-indeterminate-unchecked-mixedmark":"mdc-checkbox-indeterminate-unchecked-mixedmark","mdc-checkbox--touch":"mdc-checkbox--touch","mdc-ripple-upgraded--unbounded":"mdc-ripple-upgraded--unbounded","mdc-ripple-upgraded--foreground-activation":"mdc-ripple-upgraded--foreground-activation","mdc-ripple-fg-radius-in":"mdc-ripple-fg-radius-in","mdc-ripple-fg-opacity-in":"mdc-ripple-fg-opacity-in","mdc-ripple-upgraded--foreground-deactivation":"mdc-ripple-upgraded--foreground-deactivation","mdc-ripple-fg-opacity-out":"mdc-ripple-fg-opacity-out","mdc-form-field":"mdc-form-field","mdc-form-field--align-end":"mdc-form-field--align-end","mdc-ripple-surface":"mdc-ripple-surface","mdc-ripple-surface--primary":"mdc-ripple-surface--primary","mdc-ripple-surface--accent":"mdc-ripple-surface--accent","requireable-checkbox":"requireable-checkbox"},l=s(7),d=s(8),u=s(29),m=s(0);function f(e,t){return(0,d.determineValidationState)(e,t,{invalidRequired:function(){return!1===e.model.nullable&&!e.model.value}})}var b=function(e,n){var u,s,p=function(e){var t=(0,d.mapPropertiesIntoModel)(e,h.defaultProperties.model);return f(t,t.model.state),(t=(0,d.getConsolidatedProperties)(t)).checked=Boolean(t.value),t},b=function(e){r().extend(!0,w,p(w)),(0,d.triggerCallbackIfExists)(w,"change",j,w,e)},y=function(e){return S((function(n){var r=!1;n.modelState.focused||(w.focused=!0,r=!0),n.modelState.untouched&&(w.touched=!0,w.untouched=!1,r=!0);var o=n;return r&&(b(e),o=t()({},n,{modelState:w.model.state}),(0,d.triggerCallbackIfExists)(w,"changeState",j,w.model.state,e,w)),(0,d.triggerCallbackIfExists)(w,"touch",j,e,w),o}))},v=(0,o.useRef)(null),g=(0,o.useRef)(null),x=(0,d.translateKnownSymbols)(e),k=(0,d.determineInitialValue)(x,h.defaultProperties.model.default,x.checked),T=r().extend(!0,r().copy(h.defaultProperties),x),P=(0,o.useState)({modelState:t()({},h.defaultModelState),value:k}),O=P[0],S=P[1],j=!T.enforceUncontrolled&&(void 0!==(null===(u=x.model)||void 0===u?void 0:u.value)||void 0!==x.value)&&Boolean(x.onChange||x.onChangeValue);(0,d.deriveMissingPropertiesFromState)(T,O);var w=p(T),q={modelState:w.model.state,value:w.value};return(j||w.value===O.value)&&r().equals(w.model.state,O.modelState)||S(q),j&&(S=(0,d.wrapStateSetter)(S,q)),(0,o.useImperativeHandle)(n,(function(){return{properties:w,references:{foundationRef:g,inputReference:v},state:t()({modelState:w.model.state},j?{}:{value:w.value})}})),(0,m.jsx)(l.WrapConfigurations,{strict:h.strict,themeConfiguration:w.themeConfiguration,tooltip:w.tooltip,children:(0,m.jsx)("div",{className:[c["requireable-checkbox"]].concat(null!==(s=w.className)&&void 0!==s?s:[]).join(" "),style:w.styles,children:(0,m.jsx)(i.Checkbox,{checked:Boolean(w.value),disabled:w.disabled,foundationRef:g,id:w.id||w.name,indeterminate:null===w.value,inputRef:v,label:w.invalid&&(w.showInitialValidationState||w.visited)?(0,m.jsx)(a.Theme,{use:"error",children:w.description||w.name}):w.description||w.name,name:w.name,onBlur:function(e){return S((function(n){var r=!1;return n.modelState.focused&&(w.focused=!1,r=!0),n.modelState.visited||(w.visited=!0,r=!0),r&&(b(e),(0,d.triggerCallbackIfExists)(w,"changeState",j,w.model.state,e,w)),(0,d.triggerCallbackIfExists)(w,"blur",j,e,w),r?t()({},n,{modelState:w.model.state}):n}))},onChange:function(e){w.model.mutable&&w.model.writable&&(w.value=Boolean(e.target.checked),S((function(n){if(n.value===w.value)return n;var r=!1,o=t()({},n,{value:w.value});return n.modelState.pristine&&(w.dirty=!0,w.pristine=!1,r=!0),b(e),f(w,n.modelState)&&(r=!0),(0,d.triggerCallbackIfExists)(w,"changeValue",j,w.value,e,w),r&&(o.modelState=w.model.state,(0,d.triggerCallbackIfExists)(w,"changeState",j,w.model.state,e,w)),o})))},onClick:function(e){(0,d.triggerCallbackIfExists)(w,"click",j,e,w),y(e)},onFocus:function(e){(0,d.triggerCallbackIfExists)(w,"focus",j,e,w),y(e)},ripple:w.ripple,value:""+w.value})})})};b.displayName="RequireableCheckbox";var h=(0,o.memo)((0,o.forwardRef)(b));h.wrapped=b,h.webComponentAdapterWrapped="react",h.defaultModelState=u.cN,h.defaultProperties=t()({},u.uG,{model:t()({},u.uG.model,{state:void 0,value:void 0}),value:void 0}),h.propTypes=u.by,h.strict=!1;var y=h}(),p}()}));
|
|
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/extends"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@rmwc/checkbox"),require("@rmwc/theme"),require("@rmwc/tooltip"),require("@rmwc/typography"),require("clientnode"),require("clientnode/property-types"),require("react"),require("react/jsx-runtime"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends","@babel/runtime/helpers/objectWithoutPropertiesLoose","@rmwc/checkbox","@rmwc/theme","@rmwc/tooltip","@rmwc/typography","clientnode","clientnode/property-types","react","react/jsx-runtime"],t);else{var n="object"==typeof exports?t(require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@rmwc/checkbox"),require("@rmwc/theme"),require("@rmwc/tooltip"),require("@rmwc/typography"),require("clientnode"),require("clientnode/property-types"),require("react"),require("react/jsx-runtime")):t(e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@rmwc/checkbox"],e["@rmwc/theme"],e["@rmwc/tooltip"],e["@rmwc/typography"],e.clientnode,e["clientnode/property-types"],e.react,e["react/jsx-runtime"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,(function(e,t,n,r,o,i,a,c,l,d){return function(){"use strict";var u=[function(e){e.exports=d},function(t){t.exports=e},function(e){e.exports=l},function(e){e.exports=a},function(e){e.exports=r},function(e){e.exports=c},function(e,t,n){n.d(t,{WrapTooltip:function(){return l}});var r=n(1),o=n.n(r),i=n(9),a=n(11),c=n(0),l=function(e){var t=e.children,n=e.options;return"string"==typeof n?(0,c.jsx)(a.Tooltip,{content:(0,c.jsx)(i.Typography,{use:"caption",children:n}),children:(0,c.jsx)("div",{className:"generic-tooltip",children:t})}):null!==n&&"object"==typeof n?("string"==typeof n.content&&(n=o()({},n,{content:(0,c.jsx)(i.Typography,{use:"caption",children:n.content})})),(0,c.jsx)(a.Tooltip,o()({},n,{children:(0,c.jsx)("div",{className:"generic-tooltip",children:t})}))):(0,c.jsx)(c.Fragment,{children:t})}},function(e,t,n){n.d(t,{WrapConfigurations:function(){return c}});n(1),n(13),n(2),n(4);var r=n(12),o=n(10),i=n(6),a=n(0),c=function(e){var t=e.children,n=e.strict,c=e.themeConfiguration,l=e.tooltip,d=e.wrap;return(0,a.jsx)(r.x,{strict:Boolean(n),children:(0,a.jsx)(i.WrapTooltip,{options:l,children:(0,a.jsx)(o.WrapThemeProvider,{configuration:c,wrap:d,children:t})})})}},function(e,t,n){n.d(t,{deriveMissingPropertiesFromState:function(){return u},wrapStateSetter:function(){return m},triggerCallbackIfExists:function(){return s},translateKnownSymbols:function(){return p},determineInitialValue:function(){return f},determineValidationState:function(){return b},mapPropertiesIntoModel:function(){return h},getConsolidatedProperties:function(){return y}});var r=n(1),o=n.n(r),i=n(3),a=n.n(i),c=n(5);n(2);function l(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 d(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 d(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 d(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 u=function(e,t){for(var n in 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=o()({},e.model.state):e.model.state={},t.modelState)Object.prototype.hasOwnProperty.call(t.modelState,n)&&void 0===e.model.state[n]&&(e.model.state[n]=t.modelState[n]);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)}},s=function(e,t){for(var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];t="on"+a().stringCapitalize(t),e[t]&&(n?e[t].apply(e,o):a().timeout((function(){return e[t].apply(e,o)})))},p=function(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],i=o[0],l=o[1];l===c.UndefinedSymbol?t[i]=void 0:l===c.NullSymbol?t[i]=null:t[i]=a().copy(e[i])}return t},f=function(e,t,n){var r,o;return void 0!==n?n:void 0!==e.value?e.value:void 0!==(null===(r=e.model)||void 0===r?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===(o=e.model)||void 0===o?void 0:o.default)?a().copy(e.model.default):void 0!==t?t:null},b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!1;n=o()({invalidRequired:function(){return!1===e.model.nullable&&"boolean"!==e.model.type&&!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 i=0,a=Object.entries(n);i<a.length;i++){var c=a[i],l=c[0],d=c[1],u=t[l];e.model.state[l]=d(),r=r||u!==t[l]}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},h=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,o=l(Object.keys(n.model).concat("value"));!(r=o()).done;){var i=r.value;Object.prototype.hasOwnProperty.call(n,i)&&void 0!==n[i]&&(n.model[i]=n[i])}for(var c in n.model.state)Object.prototype.hasOwnProperty.call(n,c)&&void 0!==n[c]&&(n.model.state[c]=n[c]);return void 0===n.model.value&&(n.model.value=a().copy(n.model.default)),n},y=function(e){var t=o()({},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(e){e.exports=i},function(e,t,n){n.d(t,{WrapThemeProvider:function(){return i}});var r=n(4),o=n(0),i=function(e){var t=e.children,n=e.configuration,i=e.wrap;return n?(0,o.jsx)(r.ThemeProvider,{options:n,wrap:!1!==i,children:t}):t}},function(e){e.exports=o},function(e,t,n){n.d(t,{x:function(){return i}});var r=n(2),o=n(0),i=function(e){var t=e.children;return e.strict?(0,o.jsx)(r.StrictMode,{children:t}):(0,o.jsx)(o.Fragment,{children:t})}},function(e){e.exports=t},,,,,,,,,,,,,,,,function(e,t,n){n.d(t,{cN:function(){return s},by:function(){return b},uG:function(){return y}});var r=n(1),o=n.n(r),i=n(3),a=n.n(i),c=n(5),l={declaration:c.string,default:c.any,description:c.string,name:c.string,selection:(0,c.oneOfType)([(0,c.arrayOf)((0,c.oneOfType)([c.number,c.string])),(0,c.objectOf)((0,c.oneOfType)([c.number,c.string]))]),type:c.string,value:c.any},d={dirty:(0,c.oneOfType)([c.boolean,c.symbol]),focused:(0,c.oneOfType)([c.boolean,c.symbol]),invalid:(0,c.oneOfType)([c.boolean,c.symbol]),invalidRequired:(0,c.oneOfType)([c.boolean,c.symbol]),pristine:(0,c.oneOfType)([c.boolean,c.symbol]),touched:(0,c.oneOfType)([c.boolean,c.symbol]),untouched:(0,c.oneOfType)([c.boolean,c.symbol]),valid:(0,c.oneOfType)([c.boolean,c.symbol]),visited:(0,c.oneOfType)([c.boolean,c.symbol])},u=o()({},l,{emptyEqualsNull:c.boolean,invertedRegularExpressionPattern:(0,c.oneOfType)([(0,c.arrayOf)((0,c.oneOfType)([c.object,c.string])),c.object,c.string]),maximum:(0,c.oneOfType)([c.number,c.string]),maximumLength:c.number,minimum:(0,c.oneOfType)([c.number,c.string]),minimumLength:c.number,mutable:c.boolean,pattern:(0,c.oneOfType)([c.object,c.string]),state:(0,c.shape)(d),writable:c.boolean,regularExpressionPattern:(0,c.oneOfType)([(0,c.arrayOf)((0,c.oneOfType)([c.object,c.string])),c.object,c.string]),trim:c.boolean}),m=o()({},l,d,{className:c.string,disabled:c.boolean,enforceUncontrolled:c.boolean,initialValue:c.any,model:(0,c.shape)(u),onChange:c.func,onChangeValue:c.func,onChangeShowDeclaration:c.func,onChangeState:c.func,onClick:c.func,onFocus:c.func,onTouch:c.func,required:c.boolean,requiredText:c.string,ripple:(0,c.oneOfType)([c.boolean,c.object]),showDeclaration:(0,c.oneOfType)([c.boolean,c.symbol]),showInitialValidationState:c.boolean,styles:c.object,themeConfiguration:c.object,tooltip:c.any}),s={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:o()({},s),trim:!0,type:"string",writable:!0},f={enforceUncontrolled:!1,model:o()({},p),showDeclaration:void 0,showInitialValidationState:!1,requiredText:"Please fill this field."},b=o()({},m,d,{checked:c.boolean,id:c.string}),h=o()({},p,{default:!1,type:"boolean",value:!1}),y=o()({},f,{default:!1,model:o()({},h),requiredText:"Please check this field."}),v=o()({},d,{invalidMaximum:(0,c.oneOfType)([c.boolean,c.symbol]),invalidMinimum:(0,c.oneOfType)([c.boolean,c.symbol]),invalidMaximumLength:(0,c.oneOfType)([c.boolean,c.symbol]),invalidMinimumLength:(0,c.oneOfType)([c.boolean,c.symbol]),invalidInvertedPattern:(0,c.oneOfType)([c.boolean,c.symbol]),invalidPattern:(0,c.oneOfType)([c.boolean,c.symbol])}),g=o()({},m,v,{align:c.string,children:c.func,cursor:(0,c.oneOfType)([(0,c.shape)({end:c.number.isRequired,start:c.number.isRequired}),c.symbol]),editor:c.string,editorIsActive:(0,c.oneOfType)([c.boolean,c.symbol]),fullWidth:c.boolean,hidden:(0,c.oneOfType)([c.boolean,c.symbol]),icon:(0,c.oneOfType)([c.string,c.object]),invertedPatternText:c.string,labels:(0,c.oneOfType)([(0,c.arrayOf)(c.string),c.object]),maximum:(0,c.oneOfType)([c.number,c.string]),maximumLengthText:c.string,maximumText:c.string,minimum:(0,c.oneOfType)([c.number,c.string]),minimumLengthText:c.string,minimumText:c.string,onBlur:c.func,onChangeEditorIsActive:c.func,onKeyDown:c.func,onKeyUp:c.func,onSelect:c.func,onSelectionChange:c.func,outlined:c.boolean,patternText:c.string,placeholder:c.string,representation:(0,c.oneOfType)([c.string,c.symbol]),rows:c.number,searchSelection:c.boolean,selectableEditor:c.boolean,step:c.number,suggestionCreator:c.func,suggestSelection:c.boolean,trailingIcon:c.any,transformer:c.object}),x=o()({},s,{invalidMaximum:!1,invalidMinimum:!1,invalidMaximumLength:!1,invalidMinimumLength:!1,invalidInvertedPattern:!1,invalidPattern:!1}),k=o()({},p,{state:x}),T=o()({},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:o()({},k),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}),P=o()({},d,{invalidMaximumSize:(0,c.oneOfType)([c.boolean,c.symbol]),invalidMinimumSize:(0,c.oneOfType)([c.boolean,c.symbol]),invalidContentTypePattern:(0,c.oneOfType)([c.boolean,c.symbol]),invalidName:(0,c.oneOfType)([c.boolean,c.symbol])}),O=(o()({},m,P,{children:c.func,contentTypePatternText:(0,c.oneOfType)([(0,c.arrayOf)((0,c.oneOfType)([c.object,c.string])),c.object,c.string]),deleteButton:(0,c.oneOfType)([c.object,c.string]),downloadButton:(0,c.oneOfType)([c.object,c.string]),editButton:(0,c.oneOfType)([c.object,c.string]),encoding:c.string,generateFileNameInputProperties:c.func,invertedContentTypePatternText:(0,c.oneOfType)([(0,c.arrayOf)((0,c.oneOfType)([c.object,c.string])),c.object,c.string]),maximumSizeText:c.string,minimumSizeText:c.string,newButton:(0,c.oneOfType)([c.object,c.string]),onBlur:c.func,outlined:c.boolean}),o()({},s,{invalidMaximumSize:!1,invalidMinimumSize:!1,invalidContentTypePattern:!1,invalidName:!1})),S=o()({},p,{contentTypeRegularExpressionPattern:/^.+\/.+$/,fileName:o()({},k,{maximumLength:1024,name:"Name",regularExpressionPattern:/^[^\/]+$/}),invertedContentTypeRegularExpressionPattern:null,maximumSize:1/0,minimumSize:0,state:O});delete o()({},T,{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}).model;o()({},f,{contentTypePatternText:'Your file\'s mime-type has to match the regular expression${[].concat(contentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(contentTypePattern).join("\\", \\"")}".',deleteButton:"delete",downloadButton:"download",editButton:"edit",encoding:"utf-8",generateFileNameInputProperties:a().identity,invertedContentTypePatternText:'Your file\'s mime-type should not match the regular expression${[].concat(invertedContentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(invertedContentTypePattern).join("\\", \\"")}".',maximumSizeText:"Please provide a file with less or equal size than ${maximumSize} byte.",media:{sixteenByNine:!0},minimumSizeText:"Please provide a file with more or equal size than ${maximumSize} byte.",model:o()({},S),newButton:"new",sourceToBlobOptions:{endings:"transparent",type:"text/plain"}}),o()({},m,v,{children:c.func,createPrototype:c.func,maximumNumber:c.number,minimumNumber:c.number});var j=o()({},p,{state:o()({},p.state,{invalidMaximumNumber:!1,invalidMinimumNumber:!1}),maximumNumber:1/0,minimumNumber:0,type:"string[]"});o()({},f,{addIcon:{icon:"add"},createPrototype:function(e){return e.prototype},model:o()({},j),removeIcon:{icon:"clear"}}),o()({},g,{value:(0,c.shape)({end:(0,c.oneOfType)([c.number,(0,c.shape)(g)]),start:(0,c.oneOfType)([c.number,(0,c.shape)(g)])})}),o()({},s),o()({},k,{description:"End",name:"end"}),o()({},k,{description:"Start",name:"start"})},,,,,,,,function(e){e.exports=n}],m={};function s(e){var t=m[e];if(void 0!==t)return t.exports;var n=m[e]={exports:{}};return u[e](n,n.exports,s),n.exports}s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var p={};return function(){s.r(p),s.d(p,{RequireableCheckbox:function(){return h},RequireableCheckboxInner:function(){return b},default:function(){return y},determineValidationState:function(){return f}});var e=s(1),t=s.n(e),n=s(3),r=s.n(n),o=s(2),i=s(37),a=s(4),c={"mdc-touch-target-wrapper":"mdc-touch-target-wrapper","mdc-checkbox":"mdc-checkbox","mdc-checkbox__native-control":"mdc-checkbox__native-control","mdc-checkbox__background":"mdc-checkbox__background","mdc-checkbox--selected":"mdc-checkbox--selected","mdc-checkbox__ripple":"mdc-checkbox__ripple","mdc-ripple-upgraded--background-focused":"mdc-ripple-upgraded--background-focused","mdc-ripple-upgraded":"mdc-ripple-upgraded","mdc-checkbox--anim-unchecked-checked":"mdc-checkbox--anim-unchecked-checked","mdc-checkbox--anim-unchecked-indeterminate":"mdc-checkbox--anim-unchecked-indeterminate","mdc-checkbox-fade-in-background-8A000000secondary00000000secondary":"mdc-checkbox-fade-in-background-8A000000secondary00000000secondary","mdc-checkbox--anim-checked-unchecked":"mdc-checkbox--anim-checked-unchecked","mdc-checkbox--anim-indeterminate-unchecked":"mdc-checkbox--anim-indeterminate-unchecked","mdc-checkbox-fade-out-background-8A000000secondary00000000secondary":"mdc-checkbox-fade-out-background-8A000000secondary00000000secondary","mdc-checkbox__checkmark":"mdc-checkbox__checkmark","mdc-checkbox__mixedmark":"mdc-checkbox__mixedmark","mdc-checkbox--disabled":"mdc-checkbox--disabled","mdc-checkbox--upgraded":"mdc-checkbox--upgraded","mdc-checkbox__checkmark-path":"mdc-checkbox__checkmark-path","mdc-checkbox-unchecked-checked-checkmark-path":"mdc-checkbox-unchecked-checked-checkmark-path","mdc-checkbox-unchecked-indeterminate-mixedmark":"mdc-checkbox-unchecked-indeterminate-mixedmark","mdc-checkbox-checked-unchecked-checkmark-path":"mdc-checkbox-checked-unchecked-checkmark-path","mdc-checkbox--anim-checked-indeterminate":"mdc-checkbox--anim-checked-indeterminate","mdc-checkbox-checked-indeterminate-checkmark":"mdc-checkbox-checked-indeterminate-checkmark","mdc-checkbox-checked-indeterminate-mixedmark":"mdc-checkbox-checked-indeterminate-mixedmark","mdc-checkbox--anim-indeterminate-checked":"mdc-checkbox--anim-indeterminate-checked","mdc-checkbox-indeterminate-checked-checkmark":"mdc-checkbox-indeterminate-checked-checkmark","mdc-checkbox-indeterminate-checked-mixedmark":"mdc-checkbox-indeterminate-checked-mixedmark","mdc-checkbox-indeterminate-unchecked-mixedmark":"mdc-checkbox-indeterminate-unchecked-mixedmark","mdc-checkbox--touch":"mdc-checkbox--touch","mdc-ripple-upgraded--unbounded":"mdc-ripple-upgraded--unbounded","mdc-ripple-upgraded--foreground-activation":"mdc-ripple-upgraded--foreground-activation","mdc-ripple-fg-radius-in":"mdc-ripple-fg-radius-in","mdc-ripple-fg-opacity-in":"mdc-ripple-fg-opacity-in","mdc-ripple-upgraded--foreground-deactivation":"mdc-ripple-upgraded--foreground-deactivation","mdc-ripple-fg-opacity-out":"mdc-ripple-fg-opacity-out","mdc-form-field":"mdc-form-field","mdc-form-field--align-end":"mdc-form-field--align-end","mdc-ripple-surface":"mdc-ripple-surface","mdc-ripple-surface--primary":"mdc-ripple-surface--primary","mdc-ripple-surface--accent":"mdc-ripple-surface--accent","requireable-checkbox":"requireable-checkbox"},l=s(7),d=s(8),u=s(29),m=s(0);function f(e,t){return(0,d.determineValidationState)(e,t,{invalidRequired:function(){return!1===e.model.nullable&&!e.model.value}})}var b=function(e,n){var u,s,p=function(e){var t=(0,d.mapPropertiesIntoModel)(e,h.defaultProperties.model);return f(t,t.model.state),(t=(0,d.getConsolidatedProperties)(t)).checked=Boolean(t.value),t},b=function(e){r().extend(!0,w,p(w)),(0,d.triggerCallbackIfExists)(w,"change",j,w,e)},y=function(e){return S((function(n){var r=!1;n.modelState.focused||(w.focused=!0,r=!0),n.modelState.untouched&&(w.touched=!0,w.untouched=!1,r=!0);var o=n;return r&&(b(e),o=t()({},n,{modelState:w.model.state}),(0,d.triggerCallbackIfExists)(w,"changeState",j,w.model.state,e,w)),(0,d.triggerCallbackIfExists)(w,"touch",j,e,w),o}))},v=(0,o.useRef)(null),g=(0,o.useRef)(null),x=(0,d.translateKnownSymbols)(e),k=(0,d.determineInitialValue)(x,h.defaultProperties.model.default,x.checked),T=r().extend(!0,r().copy(h.defaultProperties),x),P=(0,o.useState)({modelState:t()({},h.defaultModelState),value:k}),O=P[0],S=P[1],j=!T.enforceUncontrolled&&(void 0!==(null===(u=x.model)||void 0===u?void 0:u.value)||void 0!==x.value)&&Boolean(x.onChange||x.onChangeValue);(0,d.deriveMissingPropertiesFromState)(T,O);var w=p(T),q={modelState:w.model.state,value:w.value};return(j||w.value===O.value)&&r().equals(w.model.state,O.modelState)||S(q),j&&(S=(0,d.wrapStateSetter)(S,q)),(0,o.useImperativeHandle)(n,(function(){return{properties:w,references:{foundationRef:g,inputReference:v},state:t()({modelState:w.model.state},j?{}:{value:w.value})}})),(0,m.jsx)(l.WrapConfigurations,{strict:h.strict,themeConfiguration:w.themeConfiguration,tooltip:w.tooltip,children:(0,m.jsx)("div",{className:[c["requireable-checkbox"]].concat(null!==(s=w.className)&&void 0!==s?s:[]).join(" "),style:w.styles,children:(0,m.jsx)(i.Checkbox,{checked:Boolean(w.value),disabled:w.disabled,foundationRef:g,id:w.id||w.name,indeterminate:null===w.value,inputRef:v,label:w.invalid&&(w.showInitialValidationState||w.visited)?(0,m.jsx)(a.Theme,{use:"error",children:w.description||w.name}):w.description||w.name,name:w.name,onBlur:function(e){return S((function(n){var r=!1;return n.modelState.focused&&(w.focused=!1,r=!0),n.modelState.visited||(w.visited=!0,r=!0),r&&(b(e),(0,d.triggerCallbackIfExists)(w,"changeState",j,w.model.state,e,w)),(0,d.triggerCallbackIfExists)(w,"blur",j,e,w),r?t()({},n,{modelState:w.model.state}):n}))},onChange:function(e){w.model.mutable&&w.model.writable&&(w.value=Boolean(e.target.checked),S((function(n){if(n.value===w.value)return n;var r=!1,o=t()({},n,{value:w.value});return n.modelState.pristine&&(w.dirty=!0,w.pristine=!1,r=!0),b(e),f(w,n.modelState)&&(r=!0),(0,d.triggerCallbackIfExists)(w,"changeValue",j,w.value,e,w),r&&(o.modelState=w.model.state,(0,d.triggerCallbackIfExists)(w,"changeState",j,w.model.state,e,w)),o})))},onClick:function(e){(0,d.triggerCallbackIfExists)(w,"click",j,e,w),y(e)},onFocus:function(e){(0,d.triggerCallbackIfExists)(w,"focus",j,e,w),y(e)},ripple:w.ripple,value:""+w.value})})})};b.displayName="RequireableCheckbox";var h=(0,o.memo)((0,o.forwardRef)(b));h.wrapped=b,h.webComponentAdapterWrapped="react",h.defaultModelState=u.cN,h.defaultProperties=t()({},u.uG,{model:t()({},u.uG.model,{state:void 0,value:void 0}),value:void 0}),h.propTypes=u.by,h.strict=!1;var y=h}(),p}()}));
|