react-input-material 0.0.409 → 0.0.412

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.
@@ -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},determineInitialValue:function(){return f},determineValidationState:function(){return b},getConsolidatedProperties:function(){return y},mapPropertiesIntoModel:function(){return h},translateKnownSymbols:function(){return p},triggerCallbackIfExists:function(){return s},wrapStateSetter:function(){return m}});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){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={};for(var n=0,r=Object.entries(t.modelState);n<r.length;n++){var i=r[n],a=i[0],c=i[1];void 0===e.model.state[a]&&(e.model.state[a]=c)}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,n){void 0===n&&(n=!0);for(var 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.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.default)?a().copy(e.model.default):void 0!==t?t:null},b=function(e,t,n){void 0===n&&(n={});var r=!1;n=o()({invalidRequired:function(){return!1===e.model.nullable&&"boolean"!==e.model.type&&!e.model.value&&0!==e.model.value||"boolean"===e.model.type&&!("boolean"==typeof e.model.value||["false","true"].includes(e.model.value))}},n),e.model.state=e.model.state||{};for(var 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,{by:function(){return b},cN:function(){return s},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)([(0,c.arrayOf)((0,c.oneOfType)([c.number,c.string])),c.number,(0,c.objectOf)((0,c.oneOfType)([c.number,c.string])),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]),pristine:(0,c.oneOfType)([c.boolean,c.symbol]),touched:(0,c.oneOfType)([c.boolean,c.symbol]),untouched:(0,c.oneOfType)([c.boolean,c.symbol]),focused:(0,c.oneOfType)([c.boolean,c.symbol]),visited:(0,c.oneOfType)([c.boolean,c.symbol]),invalid:(0,c.oneOfType)([c.boolean,c.symbol]),invalidRequired:(0,c.oneOfType)([c.boolean,c.symbol]),valid:(0,c.oneOfType)([c.boolean,c.symbol])},u=o()({},l,{emptyEqualsNull:c.boolean,trim:c.boolean,invertedRegularExpressionPattern:(0,c.oneOfType)([(0,c.arrayOf)((0,c.oneOfType)([c.object,c.string])),c.object,c.string]),regularExpressionPattern:(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]),minimum:(0,c.oneOfType)([c.number,c.string]),maximumLength:c.number,minimumLength:c.number,mutable:c.boolean,writable:c.boolean,state:(0,c.shape)(d)}),m=o()({},l,d,{className:c.string,disabled:c.boolean,enforceUncontrolled:c.boolean,initialValue:c.any,inputProperties:c.object,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]),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}),O=o()({},d,{invalidContentTypePattern:(0,c.oneOfType)([c.boolean,c.symbol]),invalidMaximumSize:(0,c.oneOfType)([c.boolean,c.symbol]),invalidMinimumSize:(0,c.oneOfType)([c.boolean,c.symbol]),invalidName:(0,c.oneOfType)([c.boolean,c.symbol])}),P=(o()({},m,O,{children:c.func,contentTypePatternText:(0,c.oneOfType)([(0,c.arrayOf)((0,c.oneOfType)([c.object,c.string])),c.object,c.string]),invertedContentTypePatternText:(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]),newButton:(0,c.oneOfType)([c.object,c.string]),encoding:c.string,generateFileNameInputProperties:c.func,maximumSizeText:c.string,minimumSizeText:c.string,onBlur:c.func,outlined:c.boolean}),o()({},s,{invalidContentTypePattern:!1,invalidMaximumSize:!1,invalidMinimumSize:!1,invalidName:!1})),j=o()({},p,{contentTypeRegularExpressionPattern:/^.+\/.+$/,invertedContentTypeRegularExpressionPattern:null,fileName:o()({},k,{maximumLength:1024,name:"Name",regularExpressionPattern:/^[^/]+$/}),maximumSize:1/0,minimumSize:0,state:P});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("\\", \\"")}".',invertedContentTypePatternText:'Your file\'s mime-type should not match the regular expression${[].concat(invertedContentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(invertedContentTypePattern).join("\\", \\"")}".',deleteButton:"delete",downloadButton:"download",editButton:"edit",newButton:"new",encoding:"utf-8",generateFileNameInputProperties:a().identity,maximumSizeText:"Please provide a file with less or equal size than ${maximumSize} byte.",minimumSizeText:"Please provide a file with more or equal size than ${maximumSize} byte.",media:{sixteenByNine:!0},model:o()({},j),sourceToBlobOptions:{endings:"transparent",type:"text/plain"}}),o()({},m,v,{children:c.func,createPrototype:c.func,maximumNumber:c.number,minimumNumber:c.number});var S=o()({},p,{state:o()({},p.state,{invalidMaximumNumber:!1,invalidMinimumNumber:!1}),maximumNumber:1/0,minimumNumber:0,type:"string[]"});o()({},f,{addIcon:{icon:"add"},removeIcon:{icon:"clear"},createPrototype:function(e){return e.prototype},model:o()({},S)}),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=s(7),l=s(8),d=s(29),u=s(0),m={"mdc-checkbox":"mdc-checkbox","mdc-checkbox__ripple":"mdc-checkbox__ripple","mdc-ripple-upgraded--background-focused":"mdc-ripple-upgraded--background-focused","mdc-ripple-upgraded":"mdc-ripple-upgraded","mdc-checkbox__native-control":"mdc-checkbox__native-control","mdc-checkbox__background":"mdc-checkbox__background","mdc-checkbox--selected":"mdc-checkbox--selected","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-8A000000FF01878600000000FF018786":"mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786","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-8A000000FF01878600000000FF018786":"mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786","mdc-checkbox__checkmark":"mdc-checkbox__checkmark","mdc-checkbox__mixedmark":"mdc-checkbox__mixedmark","mdc-touch-target-wrapper":"mdc-touch-target-wrapper","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--nowrap":"mdc-form-field--nowrap","mdc-form-field--align-end":"mdc-form-field--align-end","mdc-form-field--space-between":"mdc-form-field--space-between","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"};function f(e,t){return(0,l.determineValidationState)(e,t,{invalidRequired:function(){return!1===e.model.nullable&&!e.model.value}})}var b=function(e,n){var d,s,p=function(e){var t=(0,l.mapPropertiesIntoModel)(e,h.defaultProperties.model);return f(t,t.model.state),(t=(0,l.getConsolidatedProperties)(t)).checked=Boolean(t.value),t},b=function(e){r().extend(!0,w,p(w)),(0,l.triggerCallbackIfExists)(w,"change",S,w,e)},y=function(e){return j((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,l.triggerCallbackIfExists)(w,"changeState",S,w.model.state,e,w)),(0,l.triggerCallbackIfExists)(w,"touch",S,e,w),o}))},v=(0,o.useRef)(null),g=(0,o.useRef)(null),x=(0,l.translateKnownSymbols)(e),k=(0,l.determineInitialValue)(x,h.defaultProperties.model.default,x.checked),T=r().extend(!0,r().copy(h.defaultProperties),x),O=(0,o.useState)({modelState:t()({},h.defaultModelState),value:k}),P=O[0],j=O[1],S=!T.enforceUncontrolled&&(void 0!==(null==(d=x.model)?void 0:d.value)||void 0!==x.value)&&Boolean(x.onChange||x.onChangeValue);(0,l.deriveMissingPropertiesFromState)(T,P);var w=p(T),q={modelState:w.model.state,value:w.value};return(S||w.value===P.value)&&r().equals(w.model.state,P.modelState)||j(q),S&&(j=(0,l.wrapStateSetter)(j,q)),(0,o.useImperativeHandle)(n,(function(){return{properties:w,references:{foundationRef:g,inputReference:v},state:t()({modelState:w.model.state},S?{}:{value:w.value})}})),(0,u.jsx)(c.WrapConfigurations,{strict:h.strict,themeConfiguration:w.themeConfiguration,tooltip:w.tooltip,children:(0,u.jsx)("div",{className:[m["requireable-checkbox"]].concat(null!==(s=w.className)&&void 0!==s?s:[]).join(" "),style:w.styles,children:(0,u.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,u.jsx)(a.Theme,{use:"error",children:w.description||w.name}):w.description||w.name,name:w.name,onBlur:function(e){return j((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,l.triggerCallbackIfExists)(w,"changeState",S,w.model.state,e,w)),(0,l.triggerCallbackIfExists)(w,"blur",S,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),j((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,l.triggerCallbackIfExists)(w,"changeValue",S,w.value,e,w),r&&(o.modelState=w.model.state,(0,l.triggerCallbackIfExists)(w,"changeState",S,w.model.state,e,w)),o})))},onClick:function(e){(0,l.triggerCallbackIfExists)(w,"click",S,e,w),y(e)},onFocus:function(e){(0,l.triggerCallbackIfExists)(w,"focus",S,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=d.cN,h.defaultProperties=t()({},d.uG,{model:t()({},d.uG.model,{state:void 0,value:void 0}),value:void 0}),h.propTypes=d.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},determineInitialValue:function(){return f},determineValidationState:function(){return b},getConsolidatedProperties:function(){return y},mapPropertiesIntoModel:function(){return h},translateKnownSymbols:function(){return p},triggerCallbackIfExists:function(){return s},wrapStateSetter:function(){return m}});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){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={};for(var n=0,r=Object.entries(t.modelState);n<r.length;n++){var i=r[n],a=i[0],c=i[1];void 0===e.model.state[a]&&(e.model.state[a]=c)}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,n){void 0===n&&(n=!0);for(var 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.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.default)?a().copy(e.model.default):void 0!==t?t:null},b=function(e,t,n){void 0===n&&(n={});var r=!1;n=o()({invalidRequired:function(){return!1===e.model.nullable&&"boolean"!==e.model.type&&!e.model.value&&0!==e.model.value||"boolean"===e.model.type&&!("boolean"==typeof e.model.value||["false","true"].includes(e.model.value))}},n),e.model.state=e.model.state||{};for(var 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,{by:function(){return b},cN:function(){return s},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)([(0,c.arrayOf)((0,c.oneOfType)([c.number,c.string])),c.number,(0,c.objectOf)((0,c.oneOfType)([c.number,c.string])),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]),pristine:(0,c.oneOfType)([c.boolean,c.symbol]),touched:(0,c.oneOfType)([c.boolean,c.symbol]),untouched:(0,c.oneOfType)([c.boolean,c.symbol]),focused:(0,c.oneOfType)([c.boolean,c.symbol]),visited:(0,c.oneOfType)([c.boolean,c.symbol]),invalid:(0,c.oneOfType)([c.boolean,c.symbol]),invalidRequired:(0,c.oneOfType)([c.boolean,c.symbol]),valid:(0,c.oneOfType)([c.boolean,c.symbol])},u=o()({},l,{emptyEqualsNull:c.boolean,trim:c.boolean,invertedRegularExpressionPattern:(0,c.oneOfType)([(0,c.arrayOf)((0,c.oneOfType)([c.object,c.string])),c.object,c.string]),regularExpressionPattern:(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]),minimum:(0,c.oneOfType)([c.number,c.string]),maximumLength:c.number,minimumLength:c.number,mutable:c.boolean,writable:c.boolean,state:(0,c.shape)(d)}),m=o()({},l,d,{className:c.string,disabled:c.boolean,enforceUncontrolled:c.boolean,initialValue:c.any,inputProperties:c.object,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]),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}),O=o()({},d,{invalidContentTypePattern:(0,c.oneOfType)([c.boolean,c.symbol]),invalidMaximumSize:(0,c.oneOfType)([c.boolean,c.symbol]),invalidMinimumSize:(0,c.oneOfType)([c.boolean,c.symbol]),invalidName:(0,c.oneOfType)([c.boolean,c.symbol])}),P=(o()({},m,O,{children:c.func,contentTypePatternText:(0,c.oneOfType)([(0,c.arrayOf)((0,c.oneOfType)([c.object,c.string])),c.object,c.string]),invertedContentTypePatternText:(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]),newButton:(0,c.oneOfType)([c.object,c.string]),encoding:c.string,generateFileNameInputProperties:c.func,maximumSizeText:c.string,minimumSizeText:c.string,onBlur:c.func,outlined:c.boolean}),o()({},s,{invalidContentTypePattern:!1,invalidMaximumSize:!1,invalidMinimumSize:!1,invalidName:!1})),j=o()({},p,{contentTypeRegularExpressionPattern:/^.+\/.+$/,invertedContentTypeRegularExpressionPattern:null,fileName:o()({},k,{maximumLength:1024,name:"Name",regularExpressionPattern:/^[^/]+$/}),maximumSize:1/0,minimumSize:0,state:P});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("\\", \\"")}".',invertedContentTypePatternText:'Your file\'s mime-type should not match the regular expression${[].concat(invertedContentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(invertedContentTypePattern).join("\\", \\"")}".',deleteButton:"delete",downloadButton:"download",editButton:"edit",newButton:"new",encoding:"utf-8",generateFileNameInputProperties:a().identity,maximumSizeText:"Please provide a file with less or equal size than ${maximumSize} byte.",minimumSizeText:"Please provide a file with more or equal size than ${maximumSize} byte.",media:{sixteenByNine:!0},model:o()({},j),sourceToBlobOptions:{endings:"transparent",type:"text/plain"}}),o()({},m,v,{children:c.func,createItem:c.func,createPrototype:c.func,maximumNumber:c.number,minimumNumber:c.number});var S=o()({},p,{state:o()({},p.state,{invalidMaximumNumber:!1,invalidMinimumNumber:!1}),maximumNumber:1/0,minimumNumber:0,type:"string[]"});o()({},f,{addIcon:{icon:"add"},removeIcon:{icon:"clear"},createItem:function(e){return e.item},createPrototype:function(e){return e.item},model:o()({},S)}),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=s(7),l=s(8),d=s(29),u=s(0),m={"mdc-checkbox":"mdc-checkbox","mdc-checkbox__ripple":"mdc-checkbox__ripple","mdc-ripple-upgraded--background-focused":"mdc-ripple-upgraded--background-focused","mdc-ripple-upgraded":"mdc-ripple-upgraded","mdc-checkbox__native-control":"mdc-checkbox__native-control","mdc-checkbox__background":"mdc-checkbox__background","mdc-checkbox--selected":"mdc-checkbox--selected","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-8A000000FF01878600000000FF018786":"mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786","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-8A000000FF01878600000000FF018786":"mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786","mdc-checkbox__checkmark":"mdc-checkbox__checkmark","mdc-checkbox__mixedmark":"mdc-checkbox__mixedmark","mdc-touch-target-wrapper":"mdc-touch-target-wrapper","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--nowrap":"mdc-form-field--nowrap","mdc-form-field--align-end":"mdc-form-field--align-end","mdc-form-field--space-between":"mdc-form-field--space-between","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"};function f(e,t){return(0,l.determineValidationState)(e,t,{invalidRequired:function(){return!1===e.model.nullable&&!e.model.value}})}var b=function(e,n){var d,s,p=function(e){var t=(0,l.mapPropertiesIntoModel)(e,h.defaultProperties.model);return f(t,t.model.state),(t=(0,l.getConsolidatedProperties)(t)).checked=Boolean(t.value),t},b=function(e){r().extend(!0,w,p(w)),(0,l.triggerCallbackIfExists)(w,"change",S,w,e)},y=function(e){return j((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,l.triggerCallbackIfExists)(w,"changeState",S,w.model.state,e,w)),(0,l.triggerCallbackIfExists)(w,"touch",S,e,w),o}))},v=(0,o.useRef)(null),g=(0,o.useRef)(null),x=(0,l.translateKnownSymbols)(e),k=(0,l.determineInitialValue)(x,h.defaultProperties.model.default,x.checked),T=r().extend(!0,r().copy(h.defaultProperties),x),O=(0,o.useState)({modelState:t()({},h.defaultModelState),value:k}),P=O[0],j=O[1],S=!T.enforceUncontrolled&&(void 0!==(null==(d=x.model)?void 0:d.value)||void 0!==x.value)&&Boolean(x.onChange||x.onChangeValue);(0,l.deriveMissingPropertiesFromState)(T,P);var w=p(T),q={modelState:w.model.state,value:w.value};return(S||w.value===P.value)&&r().equals(w.model.state,P.modelState)||j(q),S&&(j=(0,l.wrapStateSetter)(j,q)),(0,o.useImperativeHandle)(n,(function(){return{properties:w,references:{foundationRef:g,inputReference:v},state:t()({modelState:w.model.state},S?{}:{value:w.value})}})),(0,u.jsx)(c.WrapConfigurations,{strict:h.strict,themeConfiguration:w.themeConfiguration,tooltip:w.tooltip,children:(0,u.jsx)("div",{className:[m["requireable-checkbox"]].concat(null!==(s=w.className)&&void 0!==s?s:[]).join(" "),style:w.styles,children:(0,u.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,u.jsx)(a.Theme,{use:"error",children:w.description||w.name}):w.description||w.name,name:w.name,onBlur:function(e){return j((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,l.triggerCallbackIfExists)(w,"changeState",S,w.model.state,e,w)),(0,l.triggerCallbackIfExists)(w,"blur",S,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),j((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,l.triggerCallbackIfExists)(w,"changeValue",S,w.value,e,w),r&&(o.modelState=w.model.state,(0,l.triggerCallbackIfExists)(w,"changeState",S,w.model.state,e,w)),o})))},onClick:function(e){(0,l.triggerCallbackIfExists)(w,"click",S,e,w),y(e)},onFocus:function(e){(0,l.triggerCallbackIfExists)(w,"focus",S,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=d.cN,h.defaultProperties=t()({},d.uG,{model:t()({},d.uG.model,{state:void 0,value:void 0}),value:void 0}),h.propTypes=d.by,h.strict=!1;var y=h}(),p}()}));