react-artasys-ui 0.1.28 → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","mappings":";2HAMIA,EAA0B,IAA4B,KAC1DA,EAAwBC,EAAE,KAC1BD,EAAwBC,EAAE,KAC1BD,EAAwBC,EAAE,KAE1BD,EAAwBE,KAAK,CAACC,EAAOC,GAAI,GAAI,GAAG,CAAC,QAAU,EAAE,QAAU,GAAG,MAAQ,GAAG,SAAW,GAAG,WAAa,MAEhH,wECVIJ,QAA0B,GAA4B,KAE1DA,EAAwBE,KAAK,CAACC,EAAOC,GAAI,mnBAsBrC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,uCAAuC,MAAQ,GAAG,SAAW,yPAAyP,eAAiB,CAAC,gqBAAgqB,WAAa,MAEphC,yEC1BIJ,QAA0B,GAA4B,KAE1DA,EAAwBE,KAAK,CAACC,EAAOC,GAAI,sjBAoBrC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,uCAAuC,MAAQ,GAAG,SAAW,+NAA+N,eAAiB,CAAC,+lBAA+lB,WAAa,MAEz7B,yECxBIJ,QAA0B,GAA4B,KAE1DA,EAAwBE,KAAK,CAACC,EAAOC,GAAI,kiBAoBrC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,uCAAuC,MAAQ,GAAG,SAAW,+NAA+N,eAAiB,CAAC,2kBAA2kB,WAAa,MAEr6B,yECxBIJ,QAA0B,GAA4B,KAE1DA,EAAwBE,KAAK,CAACC,EAAOC,GAAI,+uOAAgvO,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,4CAA4C,MAAQ,GAAG,SAAW,s0CAAs0C,eAAiB,CAAC,gvMAAgvM,WAAa,MAE38dJ,EAAwBK,OAAS,CAChC,UAAa,kCACb,iBAAkB,uCAClB,OAAU,+BACV,IAAO,4BACP,YAAa,kCACb,aAAc,mCAC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rJ,KAAK,GAAa,MACtBsqB,GACAjhB,EAAQrJ,KAAK,GAAe,OAAG,UAC/BsJ,GACAD,EAAQrJ,KAAKsJ,IACT,SAAK,KAAM,IAAKxF,EAAO4hB,QAdVliB,IACM,mBAAZkiB,GACPA,EAAQliB,GAER6mB,GACAvQ,EAAQgO,OACZ,EAQiDxe,UAAWD,EAAQtI,KAAK,KAAMshB,SAA8B,mBAAbA,EAA0BA,EAASvI,GAAWuI,GAAY,ECXlK,GALiB,KACV,IAAAgB,aAAW,KAAMpD,GAAQld,KAAQ,SAAK,GAAY,IAAKkd,MAC1DsK,KAAI,kBCIJ,GAAU,CAAC,EAEf,GAAQ/iB,kBAAoB,IAC5B,GAAQN,cAAgB,IAElB,GAAQf,OAAS,SAAc,KAAM,QAE3C,GAAQX,OAAS,IACjB,GAAQ+B,mBAAqB,IAEhB,IAAI,KAAS,IAKJ,MAAW,KAAQpH,QAAS,KAAQA,OAAnD,MCTP,GAFW,CAAC","sources":["webpack://react-artasys-ui/./src/brands/brands.css","webpack://react-artasys-ui/./src/brands/ac/brand.css","webpack://react-artasys-ui/./src/brands/as/brand.css","webpack://react-artasys-ui/./src/brands/at/brand.css","webpack://react-artasys-ui/./src/Button/style.module.scss","webpack://react-artasys-ui/./src/Checkbox/style.module.scss","webpack://react-artasys-ui/./src/Components/Arrow/style.module.css","webpack://react-artasys-ui/./src/Dropdown/style.module.scss","webpack://react-artasys-ui/./src/FileInput/style.module.scss","webpack://react-artasys-ui/./src/Form/Element/style.module.scss","webpack://react-artasys-ui/./src/Form/style.module.css","webpack://react-artasys-ui/./src/Loading/style.module.scss","webpack://react-artasys-ui/./src/Progress/style.module.css","webpack://react-artasys-ui/./src/Select/style.module.css","webpack://react-artasys-ui/./src/Spinner/style.module.scss","webpack://react-artasys-ui/./src/UploadImages/style.module.css","webpack://react-artasys-ui/./node_modules/css-loader/dist/runtime/api.js","webpack://react-artasys-ui/./node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://react-artasys-ui/./node_modules/react/cjs/react-jsx-runtime.production.min.js","webpack://react-artasys-ui/./node_modules/react/jsx-runtime.js","webpack://react-artasys-ui/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://react-artasys-ui/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://react-artasys-ui/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://react-artasys-ui/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://react-artasys-ui/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://react-artasys-ui/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://react-artasys-ui/external commonjs2 {\"root\":\"React\",\"commonjs\":\"react\",\"commonjs2\":\"react\",\"amd\":\"react\"}","webpack://react-artasys-ui/webpack/bootstrap","webpack://react-artasys-ui/webpack/runtime/compat get default export","webpack://react-artasys-ui/webpack/runtime/define property getters","webpack://react-artasys-ui/webpack/runtime/hasOwnProperty shorthand","webpack://react-artasys-ui/webpack/runtime/make namespace object","webpack://react-artasys-ui/webpack/runtime/nonce","webpack://react-artasys-ui/./src/Form/style.module.css?5c74","webpack://react-artasys-ui/./src/Spinner/style.module.scss?03bd","webpack://react-artasys-ui/./src/Spinner/index.tsx","webpack://react-artasys-ui/./src/Spinner/Spinner.tsx","webpack://react-artasys-ui/./src/Progress/style.module.css?22d9","webpack://react-artasys-ui/./src/Progress/index.tsx","webpack://react-artasys-ui/./src/Progress/Progress.tsx","webpack://react-artasys-ui/./node_modules/react-hook-form/dist/index.esm.mjs","webpack://react-artasys-ui/./src/Form/useForm.tsx","webpack://react-artasys-ui/./src/Form/Element/style.module.scss?0dfe","webpack://react-artasys-ui/./src/Loading/style.module.scss?6f0e","webpack://react-artasys-ui/./src/Loading/index.tsx","webpack://react-artasys-ui/./src/Loading/Loading.tsx","webpack://react-artasys-ui/./src/Form/Element/index.tsx","webpack://react-artasys-ui/./src/Form/Element/Element.tsx","webpack://react-artasys-ui/./src/Form/index.tsx","webpack://react-artasys-ui/./src/Form/Form.tsx","webpack://react-artasys-ui/./src/Input/index.tsx","webpack://react-artasys-ui/./src/Input/Input.tsx","webpack://react-artasys-ui/./src/TextArea/index.tsx","webpack://react-artasys-ui/./src/TextArea/TextArea.tsx","webpack://react-artasys-ui/./src/FileInput/style.module.scss?9b84","webpack://react-artasys-ui/./src/FileInput/index.tsx","webpack://react-artasys-ui/./src/FileInput/FileInput.tsx","webpack://react-artasys-ui/./src/File/index.tsx","webpack://react-artasys-ui/./src/File/File.tsx","webpack://react-artasys-ui/./src/Button/style.module.scss?9109","webpack://react-artasys-ui/./src/Button/index.tsx","webpack://react-artasys-ui/./src/Button/Button.tsx","webpack://react-artasys-ui/./src/UploadImages/style.module.css?dda9","webpack://react-artasys-ui/./src/UploadImages/Image.tsx","webpack://react-artasys-ui/./src/UploadImages/index.tsx","webpack://react-artasys-ui/./src/UploadImages/UploadImages.tsx","webpack://react-artasys-ui/./src/Checkbox/style.module.scss?b119","webpack://react-artasys-ui/./src/Checkbox/index.tsx","webpack://react-artasys-ui/./src/Checkbox/Checkbox.tsx","webpack://react-artasys-ui/./src/Components/Arrow/style.module.css?f81d","webpack://react-artasys-ui/./src/Components/Arrow/index.tsx","webpack://react-artasys-ui/./src/Components/Arrow/Arrow.tsx","webpack://react-artasys-ui/./src/Select/style.module.css?3c77","webpack://react-artasys-ui/./src/Select/Select.tsx","webpack://react-artasys-ui/./src/Select/Option.tsx","webpack://react-artasys-ui/./src/Select/Optgroup.tsx","webpack://react-artasys-ui/./src/Select/index.tsx","webpack://react-artasys-ui/./src/Dropdown/style.module.scss?5dfa","webpack://react-artasys-ui/./src/Dropdown/Items.tsx","webpack://react-artasys-ui/./src/Dropdown/Dropdown.tsx","webpack://react-artasys-ui/./src/Dropdown/Item.tsx","webpack://react-artasys-ui/./src/Dropdown/index.tsx","webpack://react-artasys-ui/./src/brands/brands.css?a8f5","webpack://react-artasys-ui/./src/index.ts"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_AT_RULE_IMPORT_0___ from \"-!../../node_modules/css-loader/dist/cjs.js!./ac/brand.css\";\nimport ___CSS_LOADER_AT_RULE_IMPORT_1___ from \"-!../../node_modules/css-loader/dist/cjs.js!./as/brand.css\";\nimport ___CSS_LOADER_AT_RULE_IMPORT_2___ from \"-!../../node_modules/css-loader/dist/cjs.js!./at/brand.css\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n___CSS_LOADER_EXPORT___.i(___CSS_LOADER_AT_RULE_IMPORT_0___);\n___CSS_LOADER_EXPORT___.i(___CSS_LOADER_AT_RULE_IMPORT_1___);\n___CSS_LOADER_EXPORT___.i(___CSS_LOADER_AT_RULE_IMPORT_2___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, ``, \"\",{\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `body.brand-ac {\r\n --brand-accent-primary: #F9AC38;\r\n --brand-accent-primary-rgb: 249, 172, 56;\r\n --brand-300-primary: #FAC15D;\r\n --brand-primary: #131211;\r\n --brand-accent-secondary: #005CA9;\r\n --brand-800t-secondary: #001E49;\r\n\r\n --neutral-white: #FFFFFF;\r\n --neutral-100: #F6F6F6;\r\n --neutral-150: #FBF3E6;\r\n --neutral-200: #EEECEA;\r\n --neutral-300: #CECBC6;\r\n --neutral-400: #909498;\r\n --neutral-500: #56595D;\r\n --neutral-900-text: #1E1E1E;\r\n\r\n --error-primary: #FF4231;\r\n --error-secondary: #FFEEED;\r\n\r\n --success-primary: #2BC3A0;\r\n --success-secondary: #F0FFF1;\r\n}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/brands/ac/brand.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,+BAA+B;IAC/B,wCAAwC;IACxC,4BAA4B;IAC5B,wBAAwB;IACxB,iCAAiC;IACjC,+BAA+B;;IAE/B,wBAAwB;IACxB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,2BAA2B;;IAE3B,wBAAwB;IACxB,0BAA0B;;IAE1B,0BAA0B;IAC1B,4BAA4B;AAChC\",\"sourcesContent\":[\"body.brand-ac {\\r\\n --brand-accent-primary: #F9AC38;\\r\\n --brand-accent-primary-rgb: 249, 172, 56;\\r\\n --brand-300-primary: #FAC15D;\\r\\n --brand-primary: #131211;\\r\\n --brand-accent-secondary: #005CA9;\\r\\n --brand-800t-secondary: #001E49;\\r\\n\\r\\n --neutral-white: #FFFFFF;\\r\\n --neutral-100: #F6F6F6;\\r\\n --neutral-150: #FBF3E6;\\r\\n --neutral-200: #EEECEA;\\r\\n --neutral-300: #CECBC6;\\r\\n --neutral-400: #909498;\\r\\n --neutral-500: #56595D;\\r\\n --neutral-900-text: #1E1E1E;\\r\\n\\r\\n --error-primary: #FF4231;\\r\\n --error-secondary: #FFEEED;\\r\\n\\r\\n --success-primary: #2BC3A0;\\r\\n --success-secondary: #F0FFF1;\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `body, body.brand-as {\r\n --brand-accent-primary: #5EBED6;\r\n --brand-accent-primary-rgb: 94, 190, 214;\r\n --brand-300-primary: #ADCED8;\r\n --brand-background-primary: #131211;\r\n\r\n --neutral-white: #FFFFFF;\r\n --neutral-100: #F6F6F6;\r\n --neutral-150: #BED4DB;\r\n --neutral-200: #EEECEA;\r\n --neutral-300: #CECBC6;\r\n --neutral-400: #909498;\r\n --neutral-500: #56595D;\r\n --neutral-900-text: #1D1D1B;\r\n\r\n --error-primary: #FF4231;\r\n --error-secondary: #FFEEED;\r\n\r\n --success-primary: #2BC3A0;\r\n --success-secondary: #F0FFF1;\r\n}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/brands/as/brand.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,+BAA+B;IAC/B,wCAAwC;IACxC,4BAA4B;IAC5B,mCAAmC;;IAEnC,wBAAwB;IACxB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,2BAA2B;;IAE3B,wBAAwB;IACxB,0BAA0B;;IAE1B,0BAA0B;IAC1B,4BAA4B;AAChC\",\"sourcesContent\":[\"body, body.brand-as {\\r\\n --brand-accent-primary: #5EBED6;\\r\\n --brand-accent-primary-rgb: 94, 190, 214;\\r\\n --brand-300-primary: #ADCED8;\\r\\n --brand-background-primary: #131211;\\r\\n\\r\\n --neutral-white: #FFFFFF;\\r\\n --neutral-100: #F6F6F6;\\r\\n --neutral-150: #BED4DB;\\r\\n --neutral-200: #EEECEA;\\r\\n --neutral-300: #CECBC6;\\r\\n --neutral-400: #909498;\\r\\n --neutral-500: #56595D;\\r\\n --neutral-900-text: #1D1D1B;\\r\\n\\r\\n --error-primary: #FF4231;\\r\\n --error-secondary: #FFEEED;\\r\\n\\r\\n --success-primary: #2BC3A0;\\r\\n --success-secondary: #F0FFF1;\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `body.brand-at {\r\n --brand-primary: #02505E;\r\n --brand-accent-primary-rgb: 2, 80, 94;\r\n --brand-300-primary: #11889D;\r\n --brand-accent-primary: #04141F;\r\n\r\n --neutral-white: #FFFFFF;\r\n --neutral-100: #F6F6F6;\r\n --neutral-150: #F8FBFC;\r\n --neutral-200: #EEECEA;\r\n --neutral-300: #CECBC6;\r\n --neutral-400: #909498;\r\n --neutral-500: #56595D;\r\n --neutral-900-text: #1E1E1E;\r\n\r\n --error-primary: #FF4231;\r\n --error-secondary: #FFEEED;\r\n\r\n --success-primary: #2BC3A0;\r\n --success-secondary: #F0FFF1;\r\n}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/brands/at/brand.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,wBAAwB;IACxB,qCAAqC;IACrC,4BAA4B;IAC5B,+BAA+B;;IAE/B,wBAAwB;IACxB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,2BAA2B;;IAE3B,wBAAwB;IACxB,0BAA0B;;IAE1B,0BAA0B;IAC1B,4BAA4B;AAChC\",\"sourcesContent\":[\"body.brand-at {\\r\\n --brand-primary: #02505E;\\r\\n --brand-accent-primary-rgb: 2, 80, 94;\\r\\n --brand-300-primary: #11889D;\\r\\n --brand-accent-primary: #04141F;\\r\\n\\r\\n --neutral-white: #FFFFFF;\\r\\n --neutral-100: #F6F6F6;\\r\\n --neutral-150: #F8FBFC;\\r\\n --neutral-200: #EEECEA;\\r\\n --neutral-300: #CECBC6;\\r\\n --neutral-400: #909498;\\r\\n --neutral-500: #56595D;\\r\\n --neutral-900-text: #1E1E1E;\\r\\n\\r\\n --error-primary: #FF4231;\\r\\n --error-secondary: #FFEEED;\\r\\n\\r\\n --success-primary: #2BC3A0;\\r\\n --success-secondary: #F0FFF1;\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.style-module__container___xiW4D{position:relative;width:-moz-max-content;width:max-content}.style-module__container___xiW4D .style-module__wait-indicator___DXrE8{position:absolute;display:flex;top:0;left:0;height:100%;width:100%;justify-content:center;align-items:center;background-color:inherit;z-index:-1;opacity:0}.style-module__container___xiW4D .style-module__active___rLGnX{opacity:1;z-index:1}.style-module__btn___J72MV{display:flex;justify-content:center;align-items:center;font-family:Helvetica;font-size:16px;color:var(--neutral-200);background-color:var(--brand-primary);border-radius:8px;border:none;cursor:pointer;transition:background-color .2s,transform .2s,color .2s;position:relative}.style-module__btn___J72MV:hover{background-color:var(--brand-accent-primary)}.style-module__btn___J72MV:active{box-shadow:inset 0 0 0 3px var(--brand-300-primary);background-color:var(--brand-accent-primary);transition:background-color .2s,box-shadow .1s;-webkit-clip-path:border-box;clip-path:border-box}.style-module__btn___J72MV.style-module__icon-left___ewMhi::before,.style-module__btn___J72MV.style-module__icon-right___HZEeb::after,.style-module__btn___J72MV.style-module__icon-only___ku4SM::before{content:\"\";display:inline-block;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;background-color:var(--neutral-white);transition:.3s}.style-module__btn-light___VuPa2{background-color:var(--neutral-150);color:var(--brand-primary)}.style-module__btn-light___VuPa2.style-module__icon-left___ewMhi::before,.style-module__btn-light___VuPa2.style-module__icon-right___HZEeb::after,.style-module__btn-light___VuPa2.style-module__icon-only___ku4SM::before{background-color:var(--brand-primary)}.style-module__btn-light___VuPa2:hover{background-color:var(--brand-300-primary);color:var(--neutral-white)}.style-module__btn-light___VuPa2:hover.style-module__icon-left___ewMhi::before,.style-module__btn-light___VuPa2:hover.style-module__icon-right___HZEeb::after,.style-module__btn-light___VuPa2:hover.style-module__icon-only___ku4SM::before{background-color:var(--neutral-white)}.style-module__btn-light___VuPa2:active{color:var(--neutral-white);background-color:var(--brand-300-primary);box-shadow:inset 0 0 0 3px var(--neutral-white)}.style-module__btn-light___VuPa2:active.style-module__icon-left___ewMhi::before,.style-module__btn-light___VuPa2:active.style-module__icon-right___HZEeb::after,.style-module__btn-light___VuPa2:active.style-module__icon-only___ku4SM::before{background-color:var(--neutral-white)}.style-module__btn-secondary___QGEwb{background-color:rgba(0,0,0,0);color:var(--brand-primary);box-shadow:inset 0 0 0 2px var(--brand-primary)}.style-module__btn-secondary___QGEwb.style-module__icon-left___ewMhi::before,.style-module__btn-secondary___QGEwb.style-module__icon-right___HZEeb::after,.style-module__btn-secondary___QGEwb.style-module__icon-only___ku4SM::before{background-color:var(--brand-primary)}.style-module__btn-secondary___QGEwb:hover{background-color:rgba(0,0,0,0);color:var(--brand-accent-primary);box-shadow:inset 0 0 0 2px var(--brand-accent-primary)}.style-module__btn-secondary___QGEwb:hover.style-module__icon-left___ewMhi::before,.style-module__btn-secondary___QGEwb:hover.style-module__icon-right___HZEeb::after,.style-module__btn-secondary___QGEwb:hover.style-module__icon-only___ku4SM::before{background-color:var(--brand-accent-primary)}.style-module__btn-secondary___QGEwb:active{background-color:rgba(0,0,0,0);color:var(--brand-accent-primary);box-shadow:inset 0 0 0 3px var(--brand-300-primary)}.style-module__btn-secondary___QGEwb:active.style-module__icon-left___ewMhi::before,.style-module__btn-secondary___QGEwb:active.style-module__icon-right___HZEeb::after,.style-module__btn-secondary___QGEwb:active.style-module__icon-only___ku4SM::before{background-color:var(--brand-accent-primary)}.style-module__btn-secondary-light___zMIzX{background-color:rgba(0,0,0,0);color:var(--neutral-150);box-shadow:inset 0 0 0 2px var(--neutral-150)}.style-module__btn-secondary-light___zMIzX.style-module__icon-left___ewMhi::before,.style-module__btn-secondary-light___zMIzX.style-module__icon-right___HZEeb::after,.style-module__btn-secondary-light___zMIzX.style-module__icon-only___ku4SM::before{background-color:var(--neutral-white)}.style-module__btn-secondary-light___zMIzX:hover,.style-module__btn-secondary-light___zMIzX:active{background-color:rgba(0,0,0,0);color:var(--brand-300-primary);box-shadow:inset 0 0 0 2px var(--brand-300-primary)}.style-module__btn-secondary-light___zMIzX:hover.style-module__icon-left___ewMhi::before,.style-module__btn-secondary-light___zMIzX:hover.style-module__icon-right___HZEeb::after,.style-module__btn-secondary-light___zMIzX:hover.style-module__icon-only___ku4SM::before,.style-module__btn-secondary-light___zMIzX:active.style-module__icon-left___ewMhi::before,.style-module__btn-secondary-light___zMIzX:active.style-module__icon-right___HZEeb::after,.style-module__btn-secondary-light___zMIzX:active.style-module__icon-only___ku4SM::before{background-color:var(--brand-300-primary)}.style-module__btn-secondary-light___zMIzX:active{box-shadow:inset 0 0 0 3px var(--brand-300-primary)}.style-module__btn-tertiary___fanHi{background-color:rgba(0,0,0,0);color:var(--brand-accent-primary)}.style-module__btn-tertiary___fanHi.style-module__icon-left___ewMhi::before,.style-module__btn-tertiary___fanHi.style-module__icon-right___HZEeb::after,.style-module__btn-tertiary___fanHi.style-module__icon-only___ku4SM::before{background-color:var(--brand-accent-primary)}.style-module__btn-tertiary___fanHi:hover{background-color:rgba(0,0,0,0);color:var(--brand-primary)}.style-module__btn-tertiary___fanHi:hover.style-module__icon-left___ewMhi::before,.style-module__btn-tertiary___fanHi:hover.style-module__icon-right___HZEeb::after,.style-module__btn-tertiary___fanHi:hover.style-module__icon-only___ku4SM::before{background-color:var(--brand-primary)}.style-module__btn-tertiary___fanHi:active{background-color:rgba(0,0,0,0);box-shadow:unset;color:var(--brand-300-primary)}.style-module__btn-tertiary___fanHi:active.style-module__icon-left___ewMhi::before,.style-module__btn-tertiary___fanHi:active.style-module__icon-right___HZEeb::after,.style-module__btn-tertiary___fanHi:active.style-module__icon-only___ku4SM::before{background-color:var(--brand-300-primary)}.style-module__normal-btn___oO_oX{min-width:145px;height:35px;padding:12px 28px}.style-module__normal-btn___oO_oX.style-module__icon-left___ewMhi,.style-module__normal-btn___oO_oX.style-module__icon-right___HZEeb{min-width:171px;height:40px}.style-module__normal-btn___oO_oX.style-module__icon-only___ku4SM{min-width:80px;height:40px}.style-module__small-btn___fl6Ff{min-width:90px;height:31px;padding:10px 18px}.style-module__small-btn___fl6Ff.style-module__icon-left___ewMhi,.style-module__small-btn___fl6Ff.style-module__icon-right___HZEeb{min-width:115px;height:36px}.style-module__small-btn___fl6Ff.style-module__icon-only___ku4SM{min-width:64px}.style-module__large-btn___gCRYc{min-width:153px;height:43px;padding:16px 34px}.style-module__large-btn___gCRYc.style-module__icon-left___ewMhi,.style-module__large-btn___gCRYc.style-module__icon-right___HZEeb{min-width:182px;height:51px}.style-module__large-btn___gCRYc.style-module__icon-only___ku4SM{min-width:91px}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/Button/style.module.scss\"],\"names\":[],\"mappings\":\"AACA,iCACC,iBAAA,CACC,sBAAA,CACA,iBAAA,CACE,uEACE,iBAAA,CACA,YAAA,CACA,KAAA,CACA,MAAA,CACA,WAAA,CACA,UAAA,CACA,sBAAA,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A,iBAAA,CACE,mIAEE,eAAA,CACA,WAAA,CAEF,iEACE,cAAA,CAIN,iCACC,eAAA,CACC,WAAA,CACA,iBAAA,CACE,mIAEC,eAAA,CACC,WAAA,CAEF,iEACC,cAAA\",\"sourcesContent\":[\"/* Button */\\r\\n.container {\\r\\n\\tposition: relative;\\r\\n width: -moz-max-content;\\r\\n width: max-content;\\r\\n .wait-indicator {\\r\\n position: absolute;\\r\\n display: flex;\\r\\n top: 0;\\r\\n left: 0;\\r\\n height: 100%;\\r\\n width: 100%;\\r\\n justify-content: center;\\r\\n align-items: center;\\r\\n background-color: inherit;\\r\\n z-index: -1;\\r\\n opacity: 0;\\r\\n }\\r\\n .active {\\r\\n opacity: 1;\\r\\n z-index: 1;\\r\\n }\\r\\n}\\r\\n\\r\\n/* Основные стили для кнопок */\\r\\n.btn {\\r\\n display: flex ;\\r\\n justify-content: center ;\\r\\n align-items: center ;\\r\\n font-family: Helvetica ;\\r\\n font-size: 16px;\\r\\n color: var(--neutral-200) ;\\r\\n background-color: var(--brand-primary) ;\\r\\n border-radius: 8px ;\\r\\n\\t border: none;\\r\\n cursor: pointer ;\\r\\n transition: background-color .2s, transform .2s, color .2s;\\r\\n position: relative ;\\r\\n &:hover {\\r\\n background-color: var(--brand-accent-primary) ;\\r\\n }\\r\\n &:active {\\r\\n box-shadow: inset 0 0 0 3px var(--brand-300-primary) ;\\r\\n background-color: var(--brand-accent-primary) ;\\r\\n transition: background-color .2s, box-shadow .1s ;\\r\\n -webkit-clip-path: border-box;\\r\\n clip-path: border-box;\\r\\n }\\r\\n &.icon-left::before,\\r\\n &.icon-right::after,\\r\\n &.icon-only::before {\\r\\n content: '';\\r\\n display: inline-block;\\r\\n -webkit-mask-repeat: no-repeat;\\r\\n mask-repeat: no-repeat;\\r\\n -webkit-mask-size: contain;\\r\\n mask-size: contain;\\r\\n -webkit-mask-position: center;\\r\\n mask-position: center;\\r\\n background-color: var(--neutral-white) ;\\r\\n transition: .3s;\\r\\n }\\r\\n }\\r\\n \\r\\n /* Button-light */\\r\\n .btn-light {\\r\\n background-color: var(--neutral-150) ;\\r\\n color: var(--brand-primary) ;\\r\\n &.icon-left::before,\\r\\n &.icon-right::after,\\r\\n &.icon-only::before {\\r\\n background-color: var(--brand-primary) ;\\r\\n }\\r\\n &:hover {\\r\\n background-color: var(--brand-300-primary) ;\\r\\n color: var(--neutral-white) ;\\r\\n &.icon-left::before,\\r\\n &.icon-right::after,\\r\\n &.icon-only::before {\\r\\n background-color: var(--neutral-white) ;\\r\\n }\\r\\n }\\r\\n \\r\\n &:active {\\r\\n color: var(--neutral-white) ;\\r\\n background-color: var(--brand-300-primary) ;\\r\\n box-shadow: inset 0 0 0 3px var(--neutral-white);\\r\\n &.icon-left::before,\\r\\n &.icon-right::after,\\r\\n &.icon-only::before {\\r\\n background-color: var(--neutral-white) ;\\r\\n }\\r\\n }\\r\\n \\r\\n }\\r\\n \\r\\n /* Button-secondary */\\r\\n\\r\\n .btn-secondary {\\r\\n background-color: transparent ;\\r\\n color: var(--brand-primary) ;\\r\\n box-shadow: inset 0 0 0 2px var(--brand-primary) ;\\r\\n &.icon-left::before,\\r\\n &.icon-right::after,\\r\\n &.icon-only::before {\\r\\n background-color: var(--brand-primary) ;\\r\\n }\\r\\n &:hover {\\r\\n background-color: transparent ;\\r\\n color: var(--brand-accent-primary) ;\\r\\n box-shadow: inset 0 0 0 2px var(--brand-accent-primary) ;\\r\\n &.icon-left::before,\\r\\n &.icon-right::after,\\r\\n &.icon-only::before {\\r\\n background-color: var(--brand-accent-primary) ;\\r\\n }\\r\\n }\\r\\n &:active {\\r\\n background-color: transparent;\\r\\n color: var(--brand-accent-primary) ;\\r\\n box-shadow: inset 0 0 0 3px var(--brand-300-primary) ;\\r\\n &.icon-left::before,\\r\\n &.icon-right::after,\\r\\n &.icon-only::before {\\r\\n background-color: var(--brand-accent-primary) ;\\r\\n }\\r\\n }\\r\\n }\\r\\n \\r\\n /* Button-secondary-light */\\r\\n\\r\\n .btn-secondary-light {\\r\\n background-color: transparent ;\\r\\n color: var(--neutral-150) ;\\r\\n box-shadow: inset 0 0 0 2px var(--neutral-150) ;\\r\\n &.icon-left::before,\\r\\n &.icon-right::after,\\r\\n &.icon-only::before {\\r\\n background-color: var(--neutral-white) ;\\r\\n }\\r\\n &:hover,\\r\\n &:active {\\r\\n background-color: transparent;\\r\\n color: var(--brand-300-primary) ;\\r\\n box-shadow: inset 0 0 0 2px var(--brand-300-primary) ;\\r\\n &.icon-left::before,\\r\\n &.icon-right::after,\\r\\n &.icon-only::before {\\r\\n background-color: var(--brand-300-primary) ;\\r\\n }\\r\\n }\\r\\n &:active {\\r\\n box-shadow: inset 0 0 0 3px var(--brand-300-primary) ;\\r\\n }\\r\\n}\\r\\n\\r\\n/* Button-tertiary */\\r\\n\\r\\n.btn-tertiary {\\r\\n background-color: transparent ;\\r\\n color: var(--brand-accent-primary) ;\\r\\n &.icon-left::before,\\r\\n &.icon-right::after,\\r\\n &.icon-only::before {\\r\\n background-color: var(--brand-accent-primary) ;\\r\\n }\\r\\n &:hover {\\r\\n background-color: transparent ;\\r\\n color: var(--brand-primary) ;\\r\\n &.icon-left::before,\\r\\n &.icon-right::after,\\r\\n &.icon-only::before {\\r\\n background-color: var(--brand-primary) ;\\r\\n }\\r\\n }\\r\\n &:active {\\r\\n background-color: transparent ;\\r\\n box-shadow: unset ;\\r\\n color: var(--brand-300-primary) ;\\r\\n &.icon-left::before,\\r\\n &.icon-right::after,\\r\\n &.icon-only::before {\\r\\n background-color: var(--brand-300-primary) ;\\r\\n }\\r\\n }\\r\\n}\\r\\n \\r\\n/* Button size */\\r\\n .normal-btn {\\r\\n min-width: 145px ;\\r\\n height: 35px ;\\r\\n padding: 12px 28px ;\\r\\n &.icon-left,\\r\\n &.icon-right {\\r\\n min-width: 171px ;\\r\\n height: 40px ;\\r\\n }\\r\\n &.icon-only {\\r\\n min-width: 80px ;\\r\\n height: 40px ;\\r\\n }\\r\\n }\\r\\n \\r\\n .small-btn {\\r\\n min-width: 90px ;\\r\\n height: 31px ;\\r\\n padding: 10px 18px ;\\r\\n &.icon-left,\\r\\n &.icon-right {\\r\\n min-width: 115px ;\\r\\n height: 36px ;\\r\\n }\\r\\n &.icon-only {\\r\\n min-width: 64px ;\\r\\n }\\r\\n }\\r\\n \\r\\n .large-btn {\\r\\n min-width: 153px ;\\r\\n height: 43px ;\\r\\n padding: 16px 34px ;\\r\\n &.icon-left,\\r\\n &.icon-right {\\r\\n min-width: 182px ;\\r\\n height: 51px ;\\r\\n }\\r\\n &.icon-only {\\r\\n min-width: 91px ;\\r\\n }\\r\\n }\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"container\": `style-module__container___xiW4D`,\n\t\"wait-indicator\": `style-module__wait-indicator___DXrE8`,\n\t\"active\": `style-module__active___rLGnX`,\n\t\"btn\": `style-module__btn___J72MV`,\n\t\"icon-left\": `style-module__icon-left___ewMhi`,\n\t\"icon-right\": `style-module__icon-right___HZEeb`,\n\t\"icon-only\": `style-module__icon-only___ku4SM`,\n\t\"btn-light\": `style-module__btn-light___VuPa2`,\n\t\"btn-secondary\": `style-module__btn-secondary___QGEwb`,\n\t\"btn-secondary-light\": `style-module__btn-secondary-light___zMIzX`,\n\t\"btn-tertiary\": `style-module__btn-tertiary___fanHi`,\n\t\"normal-btn\": `style-module__normal-btn___oO_oX`,\n\t\"small-btn\": `style-module__small-btn___fl6Ff`,\n\t\"large-btn\": `style-module__large-btn___gCRYc`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.style-module__container___I6rSI{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;height:100%;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;gap:10px}.style-module__container___I6rSI input{display:none}.style-module__text___MXgdI{color:var(--neutral-500);font-size:14px}.style-module__indicator___pmILi{display:flex;position:relative;justify-content:center;align-items:center;outline:1px solid var(--brand-primary);outline-offset:-1px;border-radius:2px;width:20px;height:20px;aspect-ratio:1/1;transition:.1s}.style-module__indicator___pmILi:hover{box-shadow:inset 0 0 0 2px var(--brand-primary)}.style-module__indicator___pmILi::before{content:\"\";position:absolute;top:0;width:35%;height:70%;border:solid var(--neutral-white);border-width:0 2px 2px 0;transform:rotate(45deg);scale:0;opacity:0;transition:scale .1s,opacity .1s}.style-module__container___I6rSI>input[type=radio]~.style-module__indicator___pmILi{border-radius:50%}.style-module__container___I6rSI>input[type=radio]~.style-module__indicator___pmILi::before{border-width:0;border-radius:inherit;top:unset;transform:unset;width:70%;height:70%}.style-module__container___I6rSI>input[type=radio]:checked~.style-module__indicator___pmILi{box-shadow:inset 0 0 0 5px var(--brand-primary)}.style-module__container___I6rSI>input[type=checkbox]:checked~.style-module__indicator___pmILi{background-color:var(--brand-primary)}.style-module__container___I6rSI>input:checked~.style-module__indicator___pmILi::before{scale:1;opacity:1}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/Checkbox/style.module.scss\"],\"names\":[],\"mappings\":\"AAEA,iCACC,YAAA,CACA,kBAAA,CACA,0BAAA,CACA,kBAAA,CACA,WAAA,CACA,cAAA,CACA,wBAAA,CACG,qBAAA,CACK,gBAAA,CACR,QAAA,CACC,uCACC,YAAA,CAIH,4BACC,wBAAA,CACA,cAAA,CAGD,iCACC,YAAA,CACA,iBAAA,CACA,sBAAA,CACA,kBAAA,CACA,sCAAA,CACA,mBAAA,CACA,iBAAA,CACA,UAAA,CACA,WAAA,CACA,gBAAA,CACA,cAAA,CACC,uCACC,+CAAA,CAED,yCACC,UAAA,CACA,iBAAA,CACA,KAAA,CACA,SAAA,CACA,UAAA,CACA,iCAAA,CACA,wBAAA,CACA,uBAAA,CACA,OAAA,CACA,SAAA,CACA,gCAAA,CAIH,oFACC,iBAAA,CAGD,4FACC,cAAA,CACA,qBAAA,CACA,SAAA,CACA,eAAA,CACA,SAAA,CACA,UAAA,CAGD,4FACC,+CAAA,CAGD,+FACC,qCAAA,CAGD,wFACC,OAAA,CACA,SAAA\",\"sourcesContent\":[\"/* Checkbox */\\r\\n\\r\\n.container {\\r\\n\\tdisplay: flex;\\r\\n\\tflex-direction: row;\\r\\n\\tjustify-content: flex-start;\\r\\n\\talign-items: center;\\r\\n\\theight: 100%;\\r\\n\\tcursor: pointer;\\r\\n\\t-webkit-user-select: none;\\r\\n\\t -moz-user-select: none;\\r\\n\\t user-select: none;\\r\\n\\tgap: 10px;\\r\\n\\t\\tinput {\\r\\n\\t\\t\\tdisplay: none;\\r\\n\\t\\t}\\r\\n}\\r\\n\\r\\n.text {\\r\\n\\tcolor: var(--neutral-500);\\r\\n\\tfont-size: 14px;\\r\\n}\\r\\n\\r\\n.indicator {\\r\\n\\tdisplay: flex;\\r\\n\\tposition: relative;\\r\\n\\tjustify-content: center;\\r\\n\\talign-items: center;\\r\\n\\toutline: 1px solid var(--brand-primary);\\r\\n\\toutline-offset: -1px;\\r\\n\\tborder-radius: 2px;\\r\\n\\twidth: 20px;\\r\\n\\theight: 20px;\\r\\n\\taspect-ratio: 1/1;\\r\\n\\ttransition: .1s;\\r\\n\\t\\t&:hover {\\r\\n\\t\\t\\tbox-shadow: inset 0 0 0 2px var(--brand-primary);\\r\\n\\t\\t}\\r\\n\\t\\t&::before {\\r\\n\\t\\t\\tcontent: \\\"\\\";\\r\\n\\t\\t\\tposition: absolute;\\r\\n\\t\\t\\ttop: 0;\\r\\n\\t\\t\\twidth: 35%;\\r\\n\\t\\t\\theight: 70%;\\r\\n\\t\\t\\tborder: solid var(--neutral-white);\\r\\n\\t\\t\\tborder-width: 0 2px 2px 0;\\r\\n\\t\\t\\ttransform: rotate( 45deg);\\r\\n\\t\\t\\tscale: 0;\\r\\n\\t\\t\\topacity: 0;\\r\\n\\t\\t\\ttransition: scale 0.1s, opacity 0.1s;\\r\\n\\t\\t}\\r\\n}\\r\\n\\r\\n.container > input[type=\\\"radio\\\"] ~ .indicator {\\r\\n\\tborder-radius: 50%;\\r\\n}\\r\\n\\r\\n.container > input[type=\\\"radio\\\"] ~ .indicator::before {\\r\\n\\tborder-width: 0;\\r\\n\\tborder-radius: inherit;\\r\\n\\ttop: unset;\\r\\n\\ttransform: unset;\\r\\n\\twidth: 70%;\\r\\n\\theight: 70%;\\r\\n}\\r\\n\\r\\n.container > input[type=\\\"radio\\\"]:checked ~ .indicator {\\r\\n\\tbox-shadow: inset 0 0 0 5px var(--brand-primary);\\r\\n}\\r\\n\\r\\n.container > input[type=\\\"checkbox\\\"]:checked ~ .indicator {\\r\\n\\tbackground-color: var(--brand-primary);\\r\\n}\\r\\n\\r\\n.container > input:checked ~ .indicator::before {\\r\\n\\tscale: 1;\\r\\n\\topacity: 1;\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"container\": `style-module__container___I6rSI`,\n\t\"text\": `style-module__text___MXgdI`,\n\t\"indicator\": `style-module__indicator___pmILi`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.style-module__container___cUgT_{--ui-arrow-size: 10px;--ui-arrow-color: var(--brand-primary);--ui-arrow-max: var(--ui-arrow-size) solid var(--ui-arrow-color);--ui-arrow-min: calc(var(--ui-arrow-size) / 2) solid transparent}.style-module__container___cUgT_::after{content:\"\";display:block;width:0;height:0;transition:rotate .1s}.style-module__container___cUgT_.style-module__down___zGazf::after{border-left:var(--ui-arrow-min);border-right:var(--ui-arrow-min);border-top:var(--ui-arrow-max)}.style-module__container___cUgT_.style-module__up___I2O45::after{border-left:var(--ui-arrow-min);border-right:var(--ui-arrow-min);border-bottom:var(--ui-arrow-max)}.style-module__container___cUgT_.style-module__left___BhSAZ::after{border-top:var(--ui-arrow-min);border-right:var(--ui-arrow-max);border-bottom:var(--ui-arrow-min)}.style-module__container___cUgT_.style-module__right___k7oS7::after{border-top:var(--ui-arrow-min);border-left:var(--ui-arrow-max);border-bottom:var(--ui-arrow-min)}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/Components/Arrow/style.module.css\"],\"names\":[],\"mappings\":\"AAEA,iCACC,qBAAA,CACA,sCAAA,CACA,gEAAA,CACA,gEAAA,CAGD,wCACC,UAAA,CACA,aAAA,CACA,OAAA,CACA,QAAA,CACA,qBAAA,CAGD,mEACC,+BAAA,CACA,gCAAA,CACA,8BAAA,CAGD,iEACC,+BAAA,CACA,gCAAA,CACA,iCAAA,CAGD,mEACC,8BAAA,CACA,gCAAA,CACA,iCAAA,CAGD,oEACC,8BAAA,CACA,+BAAA,CACA,iCAAA\",\"sourcesContent\":[\"/* Arrow Component */\\r\\n\\r\\n.container {\\r\\n\\t--ui-arrow-size: 10px;\\r\\n\\t--ui-arrow-color: var(--brand-primary);\\r\\n\\t--ui-arrow-max: var(--ui-arrow-size) solid var(--ui-arrow-color);\\r\\n\\t--ui-arrow-min: calc(var(--ui-arrow-size) / 2) solid transparent;\\r\\n}\\r\\n\\r\\n.container::after {\\r\\n\\tcontent: \\\"\\\";\\r\\n\\tdisplay: block;\\r\\n\\twidth: 0;\\r\\n\\theight: 0;\\r\\n\\ttransition: rotate 0.1s;\\r\\n}\\r\\n\\r\\n.container.down::after {\\r\\n\\tborder-left: var(--ui-arrow-min);\\r\\n\\tborder-right: var(--ui-arrow-min);\\r\\n\\tborder-top: var(--ui-arrow-max);\\r\\n}\\r\\n\\r\\n.container.up::after {\\r\\n\\tborder-left: var(--ui-arrow-min);\\r\\n\\tborder-right: var(--ui-arrow-min);\\r\\n\\tborder-bottom: var(--ui-arrow-max);\\r\\n}\\r\\n\\r\\n.container.left::after {\\r\\n\\tborder-top: var(--ui-arrow-min);\\r\\n\\tborder-right: var(--ui-arrow-max);\\r\\n\\tborder-bottom: var(--ui-arrow-min);\\r\\n}\\r\\n\\r\\n.container.right::after {\\r\\n\\tborder-top: var(--ui-arrow-min);\\r\\n\\tborder-left: var(--ui-arrow-max);\\r\\n\\tborder-bottom: var(--ui-arrow-min);\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"container\": `style-module__container___cUgT_`,\n\t\"down\": `style-module__down___zGazf`,\n\t\"up\": `style-module__up___I2O45`,\n\t\"left\": `style-module__left___BhSAZ`,\n\t\"right\": `style-module__right___k7oS7`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.style-module__container___EyoJC{position:relative;display:inline-flex;flex-direction:row;align-items:center;outline:none;cursor:pointer}.style-module__container___EyoJC.ui-dropdown-block{position:relative}.style-module__container___EyoJC.ui-dropdown-block::after{content:\"\";position:absolute;left:0;top:0;width:100%;height:100%}.style-module__container___EyoJC.ui-dropdown-block.style-module__hide___zIkzn::after{display:none}.style-module__container___EyoJC.style-module__down___LfI15>.style-module__dropdown-list___WixEd{top:100%}.style-module__container___EyoJC.style-module__up___NgQd7>.style-module__dropdown-list___WixEd{bottom:100%}.style-module__container___EyoJC.style-module__left___IsOS2>.style-module__dropdown-list___WixEd{left:0}.style-module__container___EyoJC.style-module__right___Am00v>.style-module__dropdown-list___WixEd{right:0}.style-module__container___EyoJC.style-module__opened___NnXhB .style-module__dropdown-list___WixEd{opacity:1;visibility:visible;transform:translateY(0)}.style-module__container___EyoJC.style-module__opened___NnXhB .style-module__arrow___BXOUC::after{rotate:180deg}.style-module__dropdown-list___WixEd{display:flex;position:absolute;padding:0;margin:0;flex-direction:column;background-color:var(--neutral-white);border-radius:2px;list-style-type:none;box-shadow:0px 0px 9px 2px rgba(0,0,0,.1);opacity:0;transform:translateY(-10%);visibility:hidden;z-index:1;transition:opacity .3s,visibility .3s,transform .3s ease}.style-module__dropdown-list___WixEd li.style-module__item___n0I4m{padding:7px;font-size:18px;font-weight:normal;color:var(--neutral-900-text);white-space:nowrap;width:100%;box-sizing:border-box}.style-module__dropdown-list___WixEd li.style-module__item___n0I4m:hover,.style-module__dropdown-list___WixEd li.style-module__item___n0I4m:has(a.active){background-color:var(--brand-300-primary);border-radius:inherit}.style-module__arrow___BXOUC{padding:5px}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/Dropdown/style.module.scss\"],\"names\":[],\"mappings\":\"AAEA,iCACC,iBAAA,CACA,mBAAA,CACA,kBAAA,CACA,kBAAA,CACA,YAAA,CACA,cAAA,CACC,mDACC,iBAAA,CACA,0DACC,UAAA,CACA,iBAAA,CACA,MAAA,CACA,KAAA,CACA,UAAA,CACA,WAAA,CAED,qFACC,YAAA,CAGF,iGACC,QAAA,CAGD,+FACC,WAAA,CAGD,iGACC,MAAA,CAGD,kGACC,OAAA,CAGA,mGACC,SAAA,CACA,kBAAA,CACA,uBAAA,CAED,kGACC,aAAA,CAMJ,qCACC,YAAA,CACA,iBAAA,CACA,SAAA,CACA,QAAA,CACA,qBAAA,CACA,qCAAA,CACA,iBAAA,CACA,oBAAA,CACA,yCAAA,CACA,SAAA,CACA,0BAAA,CACA,iBAAA,CACA,SAAA,CACA,wDAAA,CACC,mEACC,WAAA,CACA,cAAA,CACA,kBAAA,CACA,6BAAA,CACA,kBAAA,CACA,UAAA,CACA,qBAAA,CACC,0JAEC,yCAAA,CACA,qBAAA,CAKL,6BACC,WAAA\",\"sourcesContent\":[\"/* Dropdown */\\r\\n\\r\\n.container {\\r\\n\\tposition: relative;\\r\\n\\tdisplay: inline-flex;\\r\\n\\tflex-direction: row;\\r\\n\\talign-items: center;\\r\\n\\toutline: none;\\r\\n\\tcursor: pointer;\\r\\n\\t\\t&:global(.ui-dropdown-block) {\\r\\n\\t\\t\\tposition: relative;\\r\\n\\t\\t\\t&::after {\\r\\n\\t\\t\\t\\tcontent: \\\"\\\";\\r\\n\\t\\t\\t\\tposition: absolute;\\r\\n\\t\\t\\t\\tleft: 0;\\r\\n\\t\\t\\t\\ttop: 0;\\r\\n\\t\\t\\t\\twidth: 100%;\\r\\n\\t\\t\\t\\theight: 100%;\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t&.hide::after {\\r\\n\\t\\t\\t\\tdisplay: none;\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\t&.down > .dropdown-list {\\r\\n\\t\\t\\ttop: 100%;\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\t&.up > .dropdown-list {\\r\\n\\t\\t\\tbottom: 100%;\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\t&.left > .dropdown-list {\\r\\n\\t\\t\\tleft: 0;\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\t&.right > .dropdown-list {\\r\\n\\t\\t\\tright: 0;\\r\\n\\t\\t}\\r\\n\\t\\t&.opened {\\r\\n\\t\\t\\t.dropdown-list {\\r\\n\\t\\t\\t\\topacity: 1;\\r\\n\\t\\t\\t\\tvisibility: visible;\\r\\n\\t\\t\\t\\ttransform: translateY(0);\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t.arrow::after {\\r\\n\\t\\t\\t\\trotate: 180deg;\\r\\n\\t\\t\\t}\\r\\n\\t\\t} \\r\\n\\t\\t\\r\\n}\\r\\n\\r\\n.dropdown-list {\\r\\n\\tdisplay: flex;\\r\\n\\tposition: absolute;\\r\\n\\tpadding: 0;\\r\\n\\tmargin: 0;\\r\\n\\tflex-direction: column;\\r\\n\\tbackground-color: var(--neutral-white);\\r\\n\\tborder-radius: 2px;\\r\\n\\tlist-style-type: none;\\r\\n\\tbox-shadow: 0px 0px 9px 2px rgb(0 0 0 / 10%);\\r\\n\\topacity: 0;\\r\\n\\ttransform: translateY(-10%);\\r\\n\\tvisibility: hidden;\\r\\n\\tz-index: 1;\\r\\n\\ttransition: opacity 0.3s, visibility 0.3s, transform 0.3s ease;\\r\\n\\t\\t& li.item {\\r\\n\\t\\t\\tpadding: 7px;\\r\\n\\t\\t\\tfont-size: 18px;\\r\\n\\t\\t\\tfont-weight: normal;\\r\\n\\t\\t\\tcolor: var(--neutral-900-text);\\r\\n\\t\\t\\twhite-space: nowrap;\\r\\n\\t\\t\\twidth: 100%;\\r\\n\\t\\t\\tbox-sizing: border-box;\\r\\n\\t\\t\\t\\t&:hover,\\r\\n\\t\\t\\t\\t&:has(:global(a.active)) {\\r\\n\\t\\t\\t\\t\\tbackground-color: var(--brand-300-primary);\\r\\n\\t\\t\\t\\t\\tborder-radius: inherit;\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t}\\r\\n}\\r\\n\\r\\n.arrow {\\r\\n\\tpadding: 5px;\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"container\": `style-module__container___EyoJC`,\n\t\"hide\": `style-module__hide___zIkzn`,\n\t\"down\": `style-module__down___LfI15`,\n\t\"dropdown-list\": `style-module__dropdown-list___WixEd`,\n\t\"up\": `style-module__up___NgQd7`,\n\t\"left\": `style-module__left___IsOS2`,\n\t\"right\": `style-module__right___Am00v`,\n\t\"opened\": `style-module__opened___NnXhB`,\n\t\"arrow\": `style-module__arrow___BXOUC`,\n\t\"item\": `style-module__item___n0I4m`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.style-module__file-btn___q1o5j{display:flex;align-items:center;box-shadow:inset 0 0 0 2px var(--brand-primary);color:var(--brand-primary);font-size:1rem;border-radius:8px;min-width:80px;width:-moz-max-content;width:max-content;min-height:20px;margin:0 auto;padding:16px 36px;max-height:50px;cursor:pointer;transition:box-shadow .2s}.style-module__file-btn___q1o5j:hover{box-shadow:inset 0 0 0 3px var(--brand-primary)}.style-module__icon___DmZ45::after{content:\"\";display:inline-block;width:20px;height:20px;margin-left:10px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;background-color:var(--brand-primary)}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/FileInput/style.module.scss\"],\"names\":[],\"mappings\":\"AAAA,gCACI,YAAA,CACA,kBAAA,CACA,+CAAA,CACA,0BAAA,CACA,cAAA,CACA,iBAAA,CACA,cAAA,CACA,sBAAA,CACA,iBAAA,CACA,eAAA,CACA,aAAA,CACA,iBAAA,CACA,eAAA,CACA,cAAA,CACA,yBAAA,CACI,sCACI,+CAAA,CAIZ,mCACI,UAAA,CACA,oBAAA,CACA,UAAA,CACA,WAAA,CACA,gBAAA,CACA,6BAAA,CACQ,qBAAA,CACR,4BAAA,CACQ,oBAAA,CACR,qCAAA\",\"sourcesContent\":[\".file-btn {\\r\\n display: flex;\\r\\n align-items: center;\\r\\n box-shadow: inset 0 0 0 2px var(--brand-primary);\\r\\n color: var(--brand-primary);\\r\\n font-size: 1rem;\\r\\n border-radius: 8px;\\r\\n min-width: 80px;\\r\\n width: -moz-max-content;\\r\\n width: max-content;\\r\\n min-height: 20px;\\r\\n margin: 0 auto;\\r\\n padding: 16px 36px;\\r\\n max-height: 50px;\\r\\n cursor: pointer;\\r\\n transition: box-shadow .2s;\\r\\n &:hover {\\r\\n box-shadow: inset 0 0 0 3px var(--brand-primary);\\r\\n }\\r\\n}\\r\\n\\r\\n.icon::after {\\r\\n content: '';\\r\\n display: inline-block;\\r\\n width: 20px;\\r\\n height: 20px;\\r\\n margin-left: 10px;\\r\\n -webkit-mask-repeat: no-repeat;\\r\\n mask-repeat: no-repeat;\\r\\n -webkit-mask-position: center;\\r\\n mask-position: center;\\r\\n background-color: var(--brand-primary);\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"file-btn\": `style-module__file-btn___q1o5j`,\n\t\"icon\": `style-module__icon___DmZ45`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.style-module__container___wOnhU{display:flex;align-items:center;width:100%;position:relative;border-radius:6px;font-family:Helvetica;z-index:0}.style-module__loading-container___NyZ20{position:absolute;left:16px}.style-module__container___wOnhU.style-module__hidden___kIK86{border:0}.style-module__element___hbwx_{align-self:stretch;width:100%}.style-module__element___hbwx_>input,.style-module__element___hbwx_>textarea{width:100%;height:100%;min-height:45px;max-height:500px;margin:0;padding:10px;font-size:20px;box-sizing:border-box;background-color:rgba(0,0,0,0);border:1px solid var(--brand-300-primary);border-radius:6px;outline:none;resize:none;transition:.2s}.style-module__element___hbwx_>input:disabled,.style-module__element___hbwx_>textarea:disabled,.style-module__element___hbwx_>input:disabled:hover,.style-module__element___hbwx_>textarea:disabled:hover{background-color:light-dark(rgba(239, 239, 239, 0.3), rgba(59, 59, 59, 0.3));color:light-dark(rgb(84, 84, 84), rgb(170, 170, 170));border-color:rgba(118,118,118,.3);box-shadow:inset 0 0 0 1px rgba(118,118,118,.3)}.style-module__container___wOnhU.style-module__disabled___TbeBm{background-color:var(--neutral-200)}.style-module__element___hbwx_>input:-webkit-autofill,.style-module__element___hbwx_>input:-webkit-autofill:hover,.style-module__element___hbwx_>input:-webkit-autofill:focus,.style-module__element___hbwx_>input:-webkit-autofill:active{-webkit-background-clip:text}.style-module__element___hbwx_>input:focus,.style-module__element___hbwx_>input:hover{outline:none;box-shadow:inset 0 0 0 1px var(--brand-300-primary)}.style-module__element___hbwx_>.style-module__placeholder___bNqrp{position:absolute;display:flex;justify-content:center;align-items:center;top:0;margin-left:16px;height:100%;color:var(--neutral-400);font-size:16px;z-index:-1;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:transform .3s}.style-module__element___hbwx_>textarea~.style-module__placeholder___bNqrp{max-height:2em}.style-module__element___hbwx_>.style-module__placeholder___bNqrp::before{content:\"\";position:absolute;display:block;width:100%;height:5px;background-color:var(--neutral-white);z-index:-1}.style-module__element___hbwx_>input:required~.style-module__placeholder___bNqrp::after{content:\"*\"}.style-module__element___hbwx_>input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer;border-radius:4px;margin-right:2px;opacity:.7;filter:invert(0.8)}.style-module__element___hbwx_>input[type=date]::-webkit-calendar-picker-indicator:hover{opacity:1}.style-module__element___hbwx_>input[type=date]~.style-module__placeholder___bNqrp,.style-module__element___hbwx_>input:focus~.style-module__placeholder___bNqrp,.style-module__element___hbwx_>textarea:focus~.style-module__placeholder___bNqrp,.style-module__element___hbwx_>input:not([value=\"\"])~.style-module__placeholder___bNqrp,.style-module__element___hbwx_>textarea:not(:empty)~.style-module__placeholder___bNqrp,.style-module__element___hbwx_>input:not(:empty)~.style-module__placeholder___bNqrp{transform:translate(-10%, -50%) scale(0.8);z-index:0}.style-module__container___wOnhU.style-module__error___a8h4v{border-color:var(--error-primary)}.style-module__container___wOnhU.style-module__error___a8h4v .style-module__placeholder___bNqrp{color:var(--error-primary)}.style-module__error___a8h4v{color:var(--error-primary)}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/Form/Element/style.module.scss\"],\"names\":[],\"mappings\":\"AAEA,iCACC,YAAA,CACG,kBAAA,CACH,UAAA,CACA,iBAAA,CACG,iBAAA,CACH,qBAAA,CACA,SAAA,CAGD,yCACC,iBAAA,CACA,SAAA,CAGD,8DACC,QAAA,CAGD,+BACC,kBAAA,CACA,UAAA,CAGD,6EACC,UAAA,CACA,WAAA,CACA,eAAA,CACA,gBAAA,CACA,QAAA,CACA,YAAA,CACG,cAAA,CACH,qBAAA,CACA,8BAAA,CACA,yCAAA,CACA,iBAAA,CACA,YAAA,CACA,WAAA,CACA,cAAA,CAGD,0MAIC,4EAAA,CACG,qDAAA,CACH,iCAAA,CACA,+CAAA,CAGD,gEACC,mCAAA,CAGD,2OAIC,4BAAA,CAGD,sFACC,YAAA,CACA,mDAAA,CAGD,kEACC,iBAAA,CACA,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,KAAA,CACA,gBAAA,CACA,WAAA,CACA,wBAAA,CACA,cAAA,CACA,UAAA,CACA,wBAAA,CACG,qBAAA,CACK,gBAAA,CACR,wBAAA,CAGD,2EACC,cAAA,CAGD,0EACC,UAAA,CACA,iBAAA,CACA,aAAA,CACA,UAAA,CACA,UAAA,CACA,qCAAA,CACA,UAAA,CAGD,wFACC,WAAA,CAID,mFACC,cAAA,CACA,iBAAA,CACA,gBAAA,CACA,UAAA,CACA,kBAAA,CAGD,yFACC,SAAA,CAGD,qfAMC,0CAAA,CACA,SAAA,CAGD,6DACC,iCAAA,CAGD,gGACC,0BAAA,CAGD,6BACC,0BAAA\",\"sourcesContent\":[\"/* Input */\\r\\n\\r\\n.container {\\r\\n\\tdisplay: flex;\\r\\n align-items: center;\\r\\n\\twidth: 100%;\\r\\n\\tposition: relative;\\r\\n border-radius: 6px;\\r\\n\\tfont-family: Helvetica;\\r\\n\\tz-index: 0;\\r\\n}\\r\\n\\r\\n.loading-container {\\r\\n\\tposition: absolute;\\r\\n\\tleft: 16px;\\r\\n}\\r\\n\\r\\n.container.hidden {\\r\\n\\tborder: 0;\\r\\n}\\r\\n\\r\\n.element {\\r\\n\\talign-self: stretch;\\r\\n\\twidth: 100%;\\r\\n}\\r\\n\\r\\n.element > input, .element > textarea {\\r\\n\\twidth: 100%;\\r\\n\\theight: 100%;\\r\\n\\tmin-height: 45px;\\r\\n\\tmax-height: 500px;\\r\\n\\tmargin: 0;\\r\\n\\tpadding: 10px;\\r\\n font-size: 20px;\\r\\n\\tbox-sizing: border-box;\\r\\n\\tbackground-color: transparent;\\r\\n\\tborder: 1px solid var(--brand-300-primary);\\r\\n\\tborder-radius: 6px;\\r\\n\\toutline: none;\\r\\n\\tresize: none;\\r\\n\\ttransition: .2s;\\r\\n}\\r\\n\\r\\n.element > input:disabled,\\r\\n.element > textarea:disabled,\\r\\n.element > input:disabled:hover,\\r\\n.element > textarea:disabled:hover {\\r\\n\\tbackground-color: light-dark(rgba(239, 239, 239, 0.3), rgba(59, 59, 59, 0.3));\\r\\n color: light-dark(rgb(84, 84, 84), rgb(170, 170, 170));\\r\\n\\tborder-color: rgba(118, 118, 118, 0.3);\\r\\n\\tbox-shadow:inset 0 0 0 1px rgba(118, 118, 118, 0.3);\\r\\n}\\r\\n\\r\\n.container.disabled {\\r\\n\\tbackground-color: var(--neutral-200);\\r\\n}\\r\\n\\r\\n.element > input:-webkit-autofill,\\r\\n.element > input:-webkit-autofill:hover, \\r\\n.element > input:-webkit-autofill:focus, \\r\\n.element > input:-webkit-autofill:active{\\r\\n\\t-webkit-background-clip: text;\\r\\n}\\r\\n\\r\\n.element > input:focus, .element > input:hover {\\r\\n\\toutline: none;\\r\\n\\tbox-shadow: inset 0 0 0 1px var(--brand-300-primary);\\r\\n}\\r\\n\\r\\n.element > .placeholder {\\r\\n\\tposition: absolute;\\r\\n\\tdisplay: flex;\\r\\n\\tjustify-content: center;\\r\\n\\talign-items: center;\\r\\n\\ttop: 0;\\r\\n\\tmargin-left: 16px;\\r\\n\\theight: 100%;\\r\\n\\tcolor: var(--neutral-400);\\r\\n\\tfont-size: 16px;\\r\\n\\tz-index: -1;\\r\\n\\t-webkit-user-select: none;\\r\\n\\t -moz-user-select: none;\\r\\n\\t user-select: none;\\r\\n\\ttransition: transform 0.3s;\\r\\n}\\r\\n\\r\\n.element > textarea ~ .placeholder {\\r\\n\\tmax-height: 2em;\\r\\n}\\r\\n\\r\\n.element > .placeholder::before {\\r\\n\\tcontent: \\\"\\\";\\r\\n\\tposition: absolute;\\r\\n\\tdisplay: block;\\r\\n\\twidth: 100%;\\r\\n\\theight: 5px;\\r\\n\\tbackground-color: var(--neutral-white);\\r\\n\\tz-index: -1;\\r\\n}\\r\\n\\r\\n.element > input:required ~ .placeholder::after {\\r\\n\\tcontent: \\\"*\\\";\\r\\n}\\r\\n\\r\\n/* Date */\\r\\n.element > input[type=\\\"date\\\"]::-webkit-calendar-picker-indicator {\\r\\n\\tcursor: pointer;\\r\\n\\tborder-radius: 4px;\\r\\n\\tmargin-right: 2px;\\r\\n\\topacity: 0.7;\\r\\n\\tfilter: invert(0.8);\\r\\n}\\r\\n\\r\\n.element > input[type=\\\"date\\\"]::-webkit-calendar-picker-indicator:hover {\\r\\n\\topacity: 1\\r\\n}\\r\\n\\r\\n.element > input[type=\\\"date\\\"] ~ .placeholder,\\r\\n.element > input:focus ~ .placeholder,\\r\\n.element > textarea:focus ~ .placeholder,\\r\\n.element > input:not([value=\\\"\\\"]) ~ .placeholder,\\r\\n.element > textarea:not(:empty) ~ .placeholder,\\r\\n.element > input:not(:empty) ~ .placeholder {\\r\\n\\ttransform: translate(-10%, -50%) scale(0.8);\\r\\n\\tz-index: 0;\\r\\n}\\r\\n\\r\\n.container.error {\\r\\n\\tborder-color: var(--error-primary);\\r\\n}\\r\\n\\r\\n.container.error .placeholder {\\r\\n\\tcolor: var(--error-primary);\\r\\n}\\r\\n\\r\\n.error {\\r\\n\\tcolor: var(--error-primary);\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"container\": `style-module__container___wOnhU`,\n\t\"loading-container\": `style-module__loading-container___NyZ20`,\n\t\"hidden\": `style-module__hidden___kIK86`,\n\t\"element\": `style-module__element___hbwx_`,\n\t\"disabled\": `style-module__disabled___TbeBm`,\n\t\"placeholder\": `style-module__placeholder___bNqrp`,\n\t\"error\": `style-module__error___a8h4v`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.style-module__container___xfbzH{flex:1;display:flex;flex-direction:column;align-items:center;background-color:var(--neutral-white)}.style-module__container___xfbzH>.style-module__wait-indicator___G02CN{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;width:100%;height:100%;background-color:hsla(0,0%,100%,.6235294118);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:-1;opacity:0;transition:opacity .3s}.style-module__container___xfbzH.style-module__wait___W2hPp>.style-module__wait-indicator___G02CN{z-index:1;opacity:1}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/Form/style.module.css\"],\"names\":[],\"mappings\":\"AAEA,iCACC,MAAA,CACA,YAAA,CACA,qBAAA,CACA,kBAAA,CACA,qCAAA,CAGD,uEACC,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,iBAAA,CACA,KAAA,CACA,MAAA,CACA,UAAA,CACA,WAAA,CACA,4CAAA,CACA,iCAAA,CACQ,yBAAA,CACR,UAAA,CACA,SAAA,CACA,sBAAA,CAGD,kGACC,SAAA,CACA,SAAA\",\"sourcesContent\":[\"/* Form */\\r\\n\\r\\n.container {\\r\\n\\tflex: 1;\\r\\n\\tdisplay: flex;\\r\\n\\tflex-direction: column;\\r\\n\\talign-items: center;\\r\\n\\tbackground-color: var(--neutral-white);\\r\\n}\\r\\n\\r\\n.container > .wait-indicator {\\r\\n\\tdisplay: flex;\\r\\n\\tjustify-content: center;\\r\\n\\talign-items: center;\\r\\n\\tposition: absolute;\\r\\n\\ttop: 0;\\r\\n\\tleft: 0;\\r\\n\\twidth: 100%;\\r\\n\\theight: 100%;\\r\\n\\tbackground-color: #FFFFFF9F;\\r\\n\\t-webkit-backdrop-filter: blur(2px);\\r\\n\\t backdrop-filter: blur(2px);\\r\\n\\tz-index: -1;\\r\\n\\topacity: 0;\\r\\n\\ttransition: opacity 0.3s;\\r\\n}\\r\\n\\r\\n.container.wait > .wait-indicator {\\r\\n\\tz-index: 1;\\r\\n\\topacity: 1;\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"container\": `style-module__container___xfbzH`,\n\t\"wait-indicator\": `style-module__wait-indicator___G02CN`,\n\t\"wait\": `style-module__wait___W2hPp`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.style-module__loading___b_SUA{display:flex;justify-content:center;align-items:center;position:absolute;top:0;gap:1em;width:100%;height:100%}.style-module__dot___D9MUw{width:3px;height:3px;background-color:var(--neutral-white);border-radius:50%;animation:style-module__bounce___rAPTh 1.6s infinite linear}.style-module__light___rrj2v .style-module__dot___D9MUw{background-color:var(--brand-accent-primary)}.style-module__secondary___AX6H5 .style-module__dot___D9MUw{background-color:var(--brand-300-primary)}.style-module__secondary-light___bvMdO .style-module__dot___D9MUw{background-color:var(--neutral-150)}label .style-module__loading___b_SUA .style-module__dot___D9MUw{background-color:var(--brand-accent-primary)}.style-module__dot___D9MUw:nth-child(1){animation-delay:-0.9s}.style-module__dot___D9MUw:nth-child(2){animation-delay:-0.6s}.style-module__dot___D9MUw:nth-child(3){animation-delay:-0.3s}.style-module__dot___D9MUw:nth-child(4){animation-delay:0s}@keyframes style-module__bounce___rAPTh{0%{transform:scale(1)}10%{transform:scale(1.2)}20%{transform:scale(1.33)}30%{transform:scale(1.5)}40%{transform:scale(1.66)}50%{transform:scale(1.83)}60%{transform:scale(2)}70%{transform:scale(2.16)}80%{transform:scale(2.33)}90%{transform:scale(2.16)}95%{transform:scale(1.5)}100%{transform:scale(1)}}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/Loading/style.module.scss\"],\"names\":[],\"mappings\":\"AAAA,+BACI,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,iBAAA,CACA,KAAA,CACA,OAAA,CACA,UAAA,CACA,WAAA,CAGJ,2BACI,SAAA,CACA,UAAA,CACA,qCAAA,CACA,iBAAA,CACA,2DAAA,CAIA,wDACI,4CAAA,CAIJ,4DACI,yCAAA,CAIJ,kEACI,mCAAA,CAMA,gEACI,4CAAA,CAKZ,wCACI,qBAAA,CAEJ,wCACI,qBAAA,CAEJ,wCACI,qBAAA,CAEJ,wCACI,kBAAA,CAGJ,wCACI,GACI,kBAAA,CAEJ,IACI,oBAAA,CAEJ,IACI,qBAAA,CAEJ,IACI,oBAAA,CAEJ,IACI,qBAAA,CAEJ,IACI,qBAAA,CAEJ,IACI,kBAAA,CAEJ,IACI,qBAAA,CAEJ,IACI,qBAAA,CAEJ,IACI,qBAAA,CAEJ,IACI,oBAAA,CAEJ,KACI,kBAAA,CAAA\",\"sourcesContent\":[\".loading {\\r\\n display: flex;\\r\\n justify-content: center;\\r\\n align-items: center;\\r\\n position: absolute;\\r\\n top: 0;\\r\\n gap: 1em;\\r\\n width: 100%;\\r\\n height: 100%;\\r\\n}\\r\\n\\r\\n.dot {\\r\\n width: 3px;\\r\\n height: 3px;\\r\\n background-color: var(--neutral-white);\\r\\n border-radius: 50%;\\r\\n animation: bounce 1.6s infinite linear;\\r\\n}\\r\\n\\r\\n.light {\\r\\n .dot {\\r\\n background-color: var(--brand-accent-primary);\\r\\n }\\r\\n}\\r\\n.secondary {\\r\\n .dot {\\r\\n background-color: var(--brand-300-primary);\\r\\n }\\r\\n}\\r\\n.secondary-light {\\r\\n .dot {\\r\\n background-color: var(--neutral-150);\\r\\n }\\r\\n}\\r\\n\\r\\nlabel {\\r\\n .loading {\\r\\n .dot {\\r\\n background-color: var(--brand-accent-primary);\\r\\n }\\r\\n }\\r\\n}\\r\\n\\r\\n.dot:nth-child(1) {\\r\\n animation-delay: -0.9s;\\r\\n}\\r\\n.dot:nth-child(2) {\\r\\n animation-delay: -0.6s;\\r\\n}\\r\\n.dot:nth-child(3) {\\r\\n animation-delay: -0.3s;\\r\\n}\\r\\n.dot:nth-child(4) {\\r\\n animation-delay: 0s;\\r\\n}\\r\\n\\r\\n@keyframes bounce {\\r\\n 0% {\\r\\n transform: scale(1);\\r\\n }\\r\\n 10% {\\r\\n transform: scale(1.2);\\r\\n }\\r\\n 20% {\\r\\n transform: scale(1.33);\\r\\n }\\r\\n 30% {\\r\\n transform: scale(1.5);\\r\\n }\\r\\n 40% {\\r\\n transform: scale(1.66);\\r\\n }\\r\\n 50% {\\r\\n transform: scale(1.83);\\r\\n }\\r\\n 60% {\\r\\n transform: scale(2.0);\\r\\n }\\r\\n 70% {\\r\\n transform: scale(2.16);\\r\\n }\\r\\n 80% {\\r\\n transform: scale(2.33);\\r\\n }\\r\\n 90% {\\r\\n transform: scale(2.16);\\r\\n }\\r\\n 95% {\\r\\n transform: scale(1.5);\\r\\n }\\r\\n 100% {\\r\\n transform: scale(1);\\r\\n }\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"loading\": `style-module__loading___b_SUA`,\n\t\"dot\": `style-module__dot___D9MUw`,\n\t\"bounce\": `style-module__bounce___rAPTh`,\n\t\"light\": `style-module__light___rrj2v`,\n\t\"secondary\": `style-module__secondary___AX6H5`,\n\t\"secondary-light\": `style-module__secondary-light___bvMdO`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.style-module__container___Rcvsm{--size: 150px;--color-rgb: 94, 190, 214;position:relative;display:flex;justify-content:center;align-items:center;width:100%;min-width:var(--size);max-width:var(--size);box-sizing:content-box !important;aspect-ratio:10/1;border-radius:2px;padding:5px 0;overflow:hidden}.style-module__container___Rcvsm::before{content:\"\";position:absolute;display:block;width:100%;height:100%;max-width:100%;max-height:100%;background:linear-gradient(to right, var(--brand-accent-primary) var(--progress), var(--neutral-150) 0)}.style-module__container___Rcvsm.style-module__radius___BGUfK{aspect-ratio:1/1;border-radius:50%;padding:unset}.style-module__container___Rcvsm.style-module__radius___BGUfK::before{--border-width: clamp(0.2em, 10%, 0.5em);border-radius:50%;aspect-ratio:1/1;-webkit-mask:radial-gradient(farthest-side, transparent calc(100% - var(--border-width) - 0.5px), #000 calc(100% - var(--border-width) + 0.5px));mask:radial-gradient(farthest-side, transparent calc(100% - var(--border-width) - 0.5px), #000 calc(100% - var(--border-width) + 0.5px));background:conic-gradient(var(--brand-accent-primary) var(--progress), var(--neutral-150) 0deg)}.style-module__container___Rcvsm::after{content:attr(data-progress) \"%\";font-size:1.5em;color:var(--neutral-900-text);mix-blend-mode:darken;z-index:1}.style-module__container___Rcvsm.style-module__radius___BGUfK::after{mix-blend-mode:unset;color:var(--neutral-900-text)}.style-module__container___Rcvsm.style-module__small___aw7mI{--size: 30px;font-size:.6em}.style-module__container___Rcvsm.style-module__middle___kHjkw{--size: 60px;font-size:.7em}.style-module__container___Rcvsm.style-module__large___oS6zL{--size: 120px}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/Progress/style.module.css\"],\"names\":[],\"mappings\":\"AAEA,iCACC,aAAA,CACA,yBAAA,CACA,iBAAA,CACA,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,UAAA,CACA,qBAAA,CACA,qBAAA,CACA,iCAAA,CACA,iBAAA,CACA,iBAAA,CACA,aAAA,CACA,eAAA,CAGD,yCACC,UAAA,CACA,iBAAA,CACA,aAAA,CACA,UAAA,CACA,WAAA,CACA,cAAA,CACG,eAAA,CACH,uGAAA,CAGD,8DACC,gBAAA,CACA,iBAAA,CACA,aAAA,CAGD,sEACC,wCAAA,CACA,iBAAA,CACA,gBAAA,CACA,gJAAA,CAKQ,wIAAA,CAKR,+FAAA,CAGD,wCACC,+BAAA,CACA,eAAA,CACA,6BAAA,CACA,qBAAA,CACA,SAAA,CAGD,qEACC,oBAAA,CACA,6BAAA,CAGD,6DACC,YAAA,CACA,cAAA,CAGD,8DACC,YAAA,CACA,cAAA,CAGD,6DACC,aAAA\",\"sourcesContent\":[\"/* Progress */\\r\\n\\r\\n.container {\\r\\n\\t--size: 150px;\\r\\n\\t--color-rgb: 94, 190, 214;\\r\\n\\tposition: relative;\\r\\n\\tdisplay: flex;\\r\\n\\tjustify-content: center;\\r\\n\\talign-items: center;\\r\\n\\twidth: 100%;\\r\\n\\tmin-width: var(--size);\\r\\n\\tmax-width: var(--size);\\r\\n\\tbox-sizing: content-box !important;\\r\\n\\taspect-ratio: 10/1;\\r\\n\\tborder-radius: 2px;\\r\\n\\tpadding: 5px 0;\\r\\n\\toverflow: hidden;\\r\\n}\\r\\n\\r\\n.container::before {\\r\\n\\tcontent: \\\"\\\";\\r\\n\\tposition: absolute;\\r\\n\\tdisplay: block;\\r\\n\\twidth: 100%;\\r\\n\\theight: 100%;\\r\\n\\tmax-width: 100%;\\r\\n max-height: 100%;\\r\\n\\tbackground: linear-gradient(to right, var(--brand-accent-primary) var(--progress), var(--neutral-150) 0);\\r\\n}\\r\\n\\r\\n.container.radius {\\r\\n\\taspect-ratio: 1/1;\\r\\n\\tborder-radius: 50%;\\r\\n\\tpadding: unset;\\r\\n}\\r\\n\\r\\n.container.radius::before {\\r\\n\\t--border-width: clamp(0.2em, 10%, 0.5em);\\r\\n\\tborder-radius: 50%;\\r\\n\\taspect-ratio: 1/1;\\r\\n\\t-webkit-mask: radial-gradient(\\r\\n\\t\\tfarthest-side,\\r\\n\\t\\ttransparent calc(100% - var(--border-width) - 0.5px),\\r\\n\\t\\t#000 calc(100% - var(--border-width) + 0.5px)\\r\\n\\t);\\r\\n\\t mask: radial-gradient(\\r\\n\\t\\tfarthest-side,\\r\\n\\t\\ttransparent calc(100% - var(--border-width) - 0.5px),\\r\\n\\t\\t#000 calc(100% - var(--border-width) + 0.5px)\\r\\n\\t);\\r\\n\\tbackground: conic-gradient( var(--brand-accent-primary) var(--progress), var(--neutral-150) 0deg);\\r\\n}\\r\\n\\r\\n.container::after {\\r\\n\\tcontent: attr(data-progress) '%';\\r\\n\\tfont-size: 1.5em;\\r\\n\\tcolor: var(--neutral-900-text);\\r\\n\\tmix-blend-mode: darken;\\r\\n\\tz-index: 1;\\r\\n}\\r\\n\\r\\n.container.radius::after {\\r\\n\\tmix-blend-mode: unset;\\r\\n\\tcolor: var(--neutral-900-text);\\r\\n}\\r\\n\\r\\n.container.small {\\r\\n\\t--size: 30px;\\r\\n\\tfont-size: .6em;\\r\\n}\\r\\n\\r\\n.container.middle {\\r\\n\\t--size: 60px;\\r\\n\\tfont-size: 0.7em\\r\\n}\\r\\n\\r\\n.container.large {\\r\\n\\t--size: 120px;\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"container\": `style-module__container___Rcvsm`,\n\t\"radius\": `style-module__radius___BGUfK`,\n\t\"small\": `style-module__small___aw7mI`,\n\t\"middle\": `style-module__middle___kHjkw`,\n\t\"large\": `style-module__large___oS6zL`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.style-module__container-element___kJu6w{z-index:1}.style-module__container___LSHO0{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:25px;outline:none;cursor:pointer}.style-module__select___chAL1{display:flex;flex-direction:row;align-items:center;min-height:45px;box-sizing:border-box;padding:10px}.style-module__container-element___kJu6w:has(input[type=hidden]:disabled) .style-module__arrow___dmLwx::after{border-top-color:var(--neutral-200)}.style-module__container___LSHO0.style-module__opened___nU6lR>.style-module__select___chAL1>.style-module__arrow___dmLwx::after{rotate:180deg}.style-module__select-list___OOtGa{position:absolute;display:flex;flex-direction:column;min-width:100%;max-height:40vh;max-height:40dvh;top:calc(100% - 1px);right:-1px;margin:0;padding:0;list-style-type:none;background-color:var(--neutral-white);box-shadow:0px 4px 5px 0px rgb(0 0 0/10%);border:1px solid var(--neutral-200);overflow:auto;opacity:0;visibility:hidden;transform:translateY(-10%);transition:transform .3s ease-in-out,opacity .3s,visibility .3s}.style-module__container___LSHO0.style-module__left___Zxebc>.style-module__select-list___OOtGa{left:-1px}.style-module__container___LSHO0.style-module__right___S19a9>.style-module__select-list___OOtGa{right:-1px}.style-module__container___LSHO0.style-module__hidden___jR8qZ>.style-module__select-list___OOtGa{display:none}.style-module__container___LSHO0.style-module__opened___nU6lR>.style-module__select-list___OOtGa{opacity:1;transform:translateY(0);visibility:visible}.style-module__optgpoup___aHuEQ{padding:0;margin:0;list-style-type:none}.style-module__optgpoup___aHuEQ>li.style-module__label___UK2Xg{padding:10px;font-weight:bold;cursor:default}.style-module__optgpoup___aHuEQ>li.style-module__option___isRro{padding-left:5% !important}.style-module__title___nDbQX,.style-module__select-list___OOtGa li{font-size:20px;color:var(--neutral-900-text);-webkit-user-select:none;-moz-user-select:none;user-select:none}.style-module__title___nDbQX{flex:1}.style-module__select-list___OOtGa li.style-module__option___isRro{display:flex;justify-content:flex-start;align-items:center;min-height:25px;padding:5px;cursor:pointer;transition:background-color .3s}.style-module__select-list___OOtGa li.style-module__option___isRro:hover,.style-module__select-list___OOtGa li.style-module__option___isRro.style-module__active___KsePh{background-color:var(--brand-300-primary);transition:background-color .3s}.style-module__select-list___OOtGa li.style-module__option___isRro.style-module__disabled___zGNMv{background-color:var(--neutral-100);color:var(--neutral-200);cursor:default}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/Select/style.module.css\"],\"names\":[],\"mappings\":\"AAEA,yCACC,SAAA,CAGD,iCACC,iBAAA,CACA,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,eAAA,CACA,YAAA,CACA,cAAA,CAGD,8BACC,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,eAAA,CACA,qBAAA,CACA,YAAA,CAGD,8GACC,mCAAA,CAGD,gIACC,aAAA,CAGD,mCACC,iBAAA,CACA,YAAA,CACA,qBAAA,CACA,cAAA,CACA,eAAA,CACA,gBAAA,CACA,oBAAA,CACA,UAAA,CACA,QAAA,CACA,SAAA,CACA,oBAAA,CACA,qCAAA,CACA,yCAAA,CACA,mCAAA,CACA,aAAA,CACA,SAAA,CACA,iBAAA,CACA,0BAAA,CACA,+DAAA,CAGD,+FACC,SAAA,CAGD,gGACC,UAAA,CAGD,iGACC,YAAA,CAGD,iGACC,SAAA,CACA,uBAAA,CACA,kBAAA,CAGD,gCACC,SAAA,CACA,QAAA,CACA,oBAAA,CAGD,+DACC,YAAA,CACA,gBAAA,CACA,cAAA,CAGD,gEACC,0BAAA,CAGD,mEACC,cAAA,CACA,6BAAA,CACA,wBAAA,CACG,qBAAA,CACK,gBAAA,CAGT,6BACC,MAAA,CAGD,mEACC,YAAA,CACA,0BAAA,CACA,kBAAA,CACA,eAAA,CACA,WAAA,CACA,cAAA,CACA,+BAAA,CAGD,yKACC,yCAAA,CACA,+BAAA,CAGD,kGACC,mCAAA,CACA,wBAAA,CACA,cAAA\",\"sourcesContent\":[\"/* Select */\\r\\n\\r\\n.container-element {\\r\\n\\tz-index: 1;\\r\\n}\\r\\n\\r\\n.container {\\r\\n\\tposition: relative;\\r\\n\\tdisplay: flex;\\r\\n\\tflex-direction: column;\\r\\n\\tjustify-content: center;\\r\\n\\tmin-height: 25px;\\r\\n\\toutline: none;\\r\\n\\tcursor: pointer;\\r\\n}\\r\\n\\r\\n.select {\\r\\n\\tdisplay: flex;\\r\\n\\tflex-direction: row;\\r\\n\\talign-items: center;\\r\\n\\tmin-height: 45px;\\r\\n\\tbox-sizing: border-box;\\r\\n\\tpadding: 10px;\\r\\n}\\r\\n\\r\\n.container-element:has(input[type=\\\"hidden\\\"]:disabled) .arrow::after {\\r\\n\\tborder-top-color: var(--neutral-200);\\r\\n}\\r\\n\\r\\n.container.opened > .select > .arrow::after {\\r\\n\\trotate: 180deg;\\r\\n}\\r\\n\\r\\n.select-list {\\r\\n\\tposition: absolute;\\r\\n\\tdisplay: flex;\\r\\n\\tflex-direction: column;\\r\\n\\tmin-width: 100%;\\r\\n\\tmax-height: 40vh;\\r\\n\\tmax-height: 40dvh;\\r\\n\\ttop: calc(100% - 1px);\\r\\n\\tright: -1px;\\r\\n\\tmargin: 0;\\r\\n\\tpadding: 0;\\r\\n\\tlist-style-type: none;\\r\\n\\tbackground-color: var(--neutral-white);\\r\\n\\tbox-shadow: 0px 4px 5px 0px rgb(0 0 0 / 10%);\\r\\n\\tborder: 1px solid var(--neutral-200);\\r\\n\\toverflow: auto;\\r\\n\\topacity: 0;\\r\\n\\tvisibility: hidden;\\r\\n\\ttransform: translateY(-10%);\\r\\n\\ttransition: transform 0.3s ease-in-out, opacity 0.3s, visibility 0.3s;\\r\\n}\\r\\n\\r\\n.container.left > .select-list {\\r\\n\\tleft: -1px;\\r\\n}\\r\\n\\r\\n.container.right > .select-list {\\r\\n\\tright: -1px;\\r\\n}\\r\\n\\r\\n.container.hidden > .select-list {\\r\\n\\tdisplay: none;\\r\\n}\\r\\n\\r\\n.container.opened > .select-list {\\r\\n\\topacity: 1;\\r\\n\\ttransform: translateY(0);\\r\\n\\tvisibility: visible;\\r\\n}\\r\\n\\r\\n.optgpoup {\\r\\n\\tpadding: 0;\\r\\n\\tmargin: 0;\\r\\n\\tlist-style-type: none;\\r\\n}\\r\\n\\r\\n.optgpoup > li.label {\\r\\n\\tpadding: 10px;\\r\\n\\tfont-weight: bold;\\r\\n\\tcursor: default;\\r\\n}\\r\\n\\r\\n.optgpoup > li.option {\\r\\n\\tpadding-left: 5% !important;\\r\\n}\\r\\n\\r\\n.title, .select-list li {\\r\\n\\tfont-size: 20px;\\r\\n\\tcolor: var(--neutral-900-text);\\r\\n\\t-webkit-user-select: none;\\r\\n\\t -moz-user-select: none;\\r\\n\\t user-select: none;\\r\\n}\\r\\n\\r\\n.title {\\r\\n\\tflex: 1;\\r\\n}\\r\\n\\r\\n.select-list li.option {\\r\\n\\tdisplay: flex;\\r\\n\\tjustify-content: flex-start;\\r\\n\\talign-items: center;\\r\\n\\tmin-height: 25px;\\r\\n\\tpadding: 5px;\\r\\n\\tcursor: pointer;\\r\\n\\ttransition: background-color .3s;\\r\\n}\\r\\n\\r\\n.select-list li.option:hover, .select-list li.option.active {\\r\\n\\tbackground-color: var(--brand-300-primary);\\r\\n\\ttransition: background-color .3s;\\r\\n}\\r\\n\\r\\n.select-list li.option.disabled {\\r\\n\\tbackground-color: var(--neutral-100);\\r\\n\\tcolor: var(--neutral-200);\\r\\n\\tcursor: default;\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"container-element\": `style-module__container-element___kJu6w`,\n\t\"container\": `style-module__container___LSHO0`,\n\t\"select\": `style-module__select___chAL1`,\n\t\"arrow\": `style-module__arrow___dmLwx`,\n\t\"opened\": `style-module__opened___nU6lR`,\n\t\"select-list\": `style-module__select-list___OOtGa`,\n\t\"left\": `style-module__left___Zxebc`,\n\t\"right\": `style-module__right___S19a9`,\n\t\"hidden\": `style-module__hidden___jR8qZ`,\n\t\"optgpoup\": `style-module__optgpoup___aHuEQ`,\n\t\"label\": `style-module__label___UK2Xg`,\n\t\"option\": `style-module__option___isRro`,\n\t\"title\": `style-module__title___nDbQX`,\n\t\"active\": `style-module__active___KsePh`,\n\t\"disabled\": `style-module__disabled___zGNMv`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.style-module__spinner___rCh2u{--color-rgb: var(--brand-accent-primary-rgb);display:flex;justify-content:center;align-items:center;width:100%;height:100%;max-width:100px;max-height:100px;aspect-ratio:1/1;padding-left:-0.25rem;padding-right:-0.25rem;overflow:hidden}.style-module__spinner___rCh2u::before{content:\"\";display:inline-block;width:100%;max-width:90%;max-height:90%;--border-width: clamp(0.2em, 10%, 0.5em);border-radius:50%;aspect-ratio:1/1;--mask: radial-gradient( farthest-side, transparent calc(100% - var(--border-width) - 0.5px), #000 calc(100% - var(--border-width) + 0.5px) );-webkit-mask:var(--mask);mask:var(--mask);background:linear-gradient(to top, rgba(var(--color-rgb), 1), rgba(var(--color-rgb), 0.5)) 100% 0/50% 100% no-repeat,linear-gradient(rgba(var(--color-rgb), 0.5) 50%, transparent 95%) 0 0/50% 100% no-repeat;animation:style-module__button-spinner-border___PgVuB .85s linear infinite}.style-module__spinner___rCh2u.style-module__ui-spinner-contrast___DmoHd{--color-rgb: 255, 255, 255}.style-module__spinner___rCh2u.style-module__small___NzDCq{width:1rem;height:1rem}.style-module__spinner___rCh2u.style-module__middle___irbH9{width:4rem;height:4rem}.style-module__spinner___rCh2u.style-module__large___g2a7L{width:8rem;height:8rem}@keyframes style-module__button-spinner-border___PgVuB{to{transform:rotate(360deg)}}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/Spinner/style.module.scss\"],\"names\":[],\"mappings\":\"AAEA,+BACC,4CAAA,CACA,YAAA,CACG,sBAAA,CACA,kBAAA,CACH,UAAA,CACG,WAAA,CACA,eAAA,CACA,gBAAA,CACA,gBAAA,CACH,qBAAA,CACA,sBAAA,CACA,eAAA,CACC,uCACC,UAAA,CACA,oBAAA,CACA,UAAA,CACA,aAAA,CACA,cAAA,CACA,wCAAA,CACA,iBAAA,CACA,gBAAA,CACA,6IAAA,CAKA,wBAAA,CACQ,gBAAA,CACR,6MAAA,CAEA,0EAAA,CAED,yEACC,0BAAA,CAGD,2DACC,UAAA,CACA,WAAA,CAGD,4DACC,UAAA,CACA,WAAA,CAGD,2DACC,UAAA,CACA,WAAA,CAMH,uDACC,GACC,wBAAA,CAAA\",\"sourcesContent\":[\"/* Spinner */\\r\\n\\r\\n.spinner {\\r\\n\\t--color-rgb: var(--brand-accent-primary-rgb);\\r\\n\\tdisplay: flex;\\r\\n justify-content: center;\\r\\n align-items: center;\\r\\n\\twidth: 100%;\\r\\n height: 100%;\\r\\n max-width: 100px;\\r\\n max-height: 100px;\\r\\n aspect-ratio: 1/1;\\r\\n\\tpadding-left: calc(-0.5rem / 2);\\r\\n\\tpadding-right: calc(-0.5rem / 2);\\r\\n\\toverflow: hidden;\\r\\n\\t\\t&::before {\\r\\n\\t\\t\\tcontent: \\\"\\\";\\r\\n\\t\\t\\tdisplay: inline-block;\\r\\n\\t\\t\\twidth: 100%;\\r\\n\\t\\t\\tmax-width: 90%;\\r\\n\\t\\t\\tmax-height: 90%;\\r\\n\\t\\t\\t--border-width: clamp(0.2em, 10%, 0.5em);\\r\\n\\t\\t\\tborder-radius: 50%;\\r\\n\\t\\t\\taspect-ratio: 1/1;\\r\\n\\t\\t\\t--mask: radial-gradient(\\r\\n\\t\\t\\t\\tfarthest-side,\\r\\n\\t\\t\\t\\ttransparent calc(100% - var(--border-width) - 0.5px),\\r\\n\\t\\t\\t\\t#000 calc(100% - var(--border-width) + 0.5px)\\r\\n\\t\\t\\t);\\r\\n\\t\\t\\t-webkit-mask: var(--mask);\\r\\n\\t\\t\\t mask: var(--mask);\\r\\n\\t\\t\\tbackground: linear-gradient(to top, rgba(var(--color-rgb), 1), rgba(var(--color-rgb), 0.5)) 100% 0/50% 100% no-repeat,\\r\\n\\t\\t\\t\\t\\tlinear-gradient(rgba(var(--color-rgb), 0.5) 50%, transparent 95%) 0 0/50% 100% no-repeat;\\r\\n\\t\\t\\tanimation: button-spinner-border .85s linear infinite;\\r\\n\\t\\t}\\r\\n\\t\\t&.ui-spinner-contrast {\\r\\n\\t\\t\\t--color-rgb: 255, 255, 255;\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\t&.small {\\r\\n\\t\\t\\twidth: 1rem;\\r\\n\\t\\t\\theight: 1rem;\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\t&.middle {\\r\\n\\t\\t\\twidth: 4rem;\\r\\n\\t\\t\\theight: 4rem;\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\t&.large {\\r\\n\\t\\t\\twidth: 8rem;\\r\\n\\t\\t\\theight: 8rem;\\r\\n\\t\\t}\\r\\n}\\r\\n\\r\\n\\r\\n\\r\\n@keyframes button-spinner-border {\\r\\n\\tto{\\r\\n\\t\\ttransform:rotate(360deg)\\r\\n\\t}\\r\\n}\\r\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"spinner\": `style-module__spinner___rCh2u`,\n\t\"button-spinner-border\": `style-module__button-spinner-border___PgVuB`,\n\t\"ui-spinner-contrast\": `style-module__ui-spinner-contrast___DmoHd`,\n\t\"small\": `style-module__small___NzDCq`,\n\t\"middle\": `style-module__middle___irbH9`,\n\t\"large\": `style-module__large___g2a7L`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.style-module__container___gZKjJ{display:flex;flex-direction:row;justify-content:flex-start;flex-wrap:wrap;width:100%;gap:10px}.style-module__image___pE1xz,.style-module__new___vOprg{position:relative;display:flex;justify-content:center;align-items:center;width:80px;height:80px;border:1px solid var(--neutral-300);background-color:var(--neutral-150);border-radius:3px;cursor:pointer;transition:scale .3s,box-shadow .3s}.style-module__image___pE1xz:hover,.style-module__new___vOprg:hover{scale:1.03;box-shadow:0px 0px 6px 2px rgb(0 0 0/10%)}.style-module__image___pE1xz:active,.style-module__new___vOprg:active{scale:.99;box-shadow:unset}.style-module__image___pE1xz>img{width:100%;-o-object-fit:cover;object-fit:cover}.style-module__image___pE1xz .style-module__close___aMqtU{display:flex;position:absolute;top:0;right:0;justify-content:center;align-items:center;width:20px;height:20px;cursor:pointer;opacity:.7;transition:transform .3s,opacity .3s}.style-module__image___pE1xz .style-module__close___aMqtU::before,.style-module__image___pE1xz .style-module__close___aMqtU::after{content:\"\";display:block;position:absolute;width:100%;height:3px;background-color:var(--neutral-900-text)}.style-module__image___pE1xz .style-module__close___aMqtU::before{transform:rotate(45deg)}.style-module__image___pE1xz .style-module__close___aMqtU::after{transform:rotate(-45deg)}.style-module__image___pE1xz .style-module__close___aMqtU:focus{background-color:var(--error-primary);width:100%;height:100%;transition:width .1s,height .3s}.style-module__image___pE1xz .style-module__close___aMqtU:focus::before,.style-module__image___pE1xz .style-module__close___aMqtU:focus::after{background-color:var(--neutral-white)}.style-module__new___vOprg{display:flex;justify-content:center;align-items:center}.style-module__new___vOprg::after{content:\"+\";font-size:1.9em;color:var(--neutral-500)}.style-module__wait___OzAwQ{display:flex;position:absolute;justify-content:center;align-items:center;width:100%;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background-color:rgba(190,212,219,.6235294118);z-index:1}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/UploadImages/style.module.css\"],\"names\":[],\"mappings\":\"AAEA,iCACC,YAAA,CACA,kBAAA,CACA,0BAAA,CACA,cAAA,CACA,UAAA,CACA,QAAA,CAGD,wDACC,iBAAA,CACA,YAAA,CACG,sBAAA,CACA,kBAAA,CACH,UAAA,CACA,WAAA,CACA,mCAAA,CACA,mCAAA,CACA,iBAAA,CACA,cAAA,CACA,mCAAA,CAGD,oEACC,UAAA,CACA,yCAAA,CAGD,sEACC,SAAA,CACA,gBAAA,CAGD,iCACC,UAAA,CACA,mBAAA,CACG,gBAAA,CAIJ,0DACC,YAAA,CACA,iBAAA,CACA,KAAA,CACA,OAAA,CACA,sBAAA,CACA,kBAAA,CACA,UAAA,CACA,WAAA,CACA,cAAA,CACA,UAAA,CACA,oCAAA,CAGD,mIACC,UAAA,CACG,aAAA,CACA,iBAAA,CACA,UAAA,CACA,UAAA,CACA,wCAAA,CAGJ,kEACC,uBAAA,CAGD,iEACC,wBAAA,CAGD,gEACC,qCAAA,CACA,UAAA,CACA,WAAA,CACA,+BAAA,CAGD,+IACC,qCAAA,CAGD,2BACC,YAAA,CACA,sBAAA,CACA,kBAAA,CAGD,kCACC,WAAA,CACA,eAAA,CACA,wBAAA,CAGD,4BACC,YAAA,CACA,iBAAA,CACA,sBAAA,CACA,kBAAA,CACA,UAAA,CACA,WAAA,CACA,KAAA,CACA,MAAA,CACA,iCAAA,CACQ,yBAAA,CACR,8CAAA,CACA,SAAA\",\"sourcesContent\":[\"/* UploadImages */\\r\\n\\r\\n.container {\\r\\n\\tdisplay: flex;\\r\\n\\tflex-direction: row;\\r\\n\\tjustify-content: flex-start;\\r\\n\\tflex-wrap: wrap;\\r\\n\\twidth: 100%;\\r\\n\\tgap: 10px;\\r\\n}\\r\\n\\r\\n.image, .new {\\r\\n\\tposition: relative;\\r\\n\\tdisplay: flex;\\r\\n justify-content: center;\\r\\n align-items: center;\\r\\n\\twidth: 80px;\\r\\n\\theight: 80px;\\r\\n\\tborder: 1px solid var(--neutral-300);\\r\\n\\tbackground-color: var(--neutral-150);\\r\\n\\tborder-radius: 3px;\\r\\n\\tcursor: pointer;\\r\\n\\ttransition: scale 0.3s, box-shadow 0.3s;\\r\\n}\\r\\n\\r\\n.image:hover, .new:hover {\\r\\n\\tscale: 1.03;\\r\\n\\tbox-shadow: 0px 0px 6px 2px rgb(0 0 0 / 10%);\\r\\n}\\r\\n\\r\\n.image:active, .new:active {\\r\\n\\tscale: 0.99;\\r\\n\\tbox-shadow: unset\\r\\n}\\r\\n\\r\\n.image > img {\\r\\n\\twidth: 100%;\\r\\n\\t-o-object-fit: cover;\\r\\n\\t object-fit: cover;\\r\\n}\\r\\n\\r\\n/* Close */\\r\\n.image .close {\\r\\n\\tdisplay: flex;\\r\\n\\tposition: absolute;\\r\\n\\ttop: 0;\\r\\n\\tright: 0;\\r\\n\\tjustify-content: center;\\r\\n\\talign-items: center;\\r\\n\\twidth: 20px;\\r\\n\\theight: 20px;\\r\\n\\tcursor: pointer;\\r\\n\\topacity: 0.7;\\r\\n\\ttransition: transform 0.3s, opacity 0.3s;\\r\\n}\\r\\n\\r\\n.image .close::before, .image .close::after {\\r\\n\\tcontent: \\\"\\\";\\r\\n display: block;\\r\\n position: absolute;\\r\\n width: 100%;\\r\\n height: 3px;\\r\\n background-color: var(--neutral-900-text);\\r\\n}\\r\\n\\r\\n.image .close::before {\\r\\n\\ttransform: rotate(45deg);\\r\\n}\\r\\n\\r\\n.image .close::after {\\r\\n\\ttransform: rotate(-45deg);\\r\\n}\\r\\n\\r\\n.image .close:focus {\\r\\n\\tbackground-color: var(--error-primary);\\r\\n\\twidth: 100%;\\r\\n\\theight: 100%;\\r\\n\\ttransition: width 0.1s, height 0.3s;\\r\\n}\\r\\n\\r\\n.image .close:focus::before, .image .close:focus::after {\\r\\n\\tbackground-color: var(--neutral-white);\\r\\n}\\r\\n\\r\\n.new {\\r\\n\\tdisplay: flex;\\r\\n\\tjustify-content: center;\\r\\n\\talign-items: center;\\r\\n}\\r\\n\\r\\n.new::after {\\r\\n\\tcontent: \\\"+\\\";\\r\\n\\tfont-size: 1.9em;\\r\\n\\tcolor: var(--neutral-500);\\r\\n}\\r\\n\\r\\n.wait {\\r\\n\\tdisplay: flex;\\r\\n\\tposition: absolute;\\r\\n\\tjustify-content: center;\\r\\n\\talign-items: center;\\r\\n\\twidth: 100%;\\r\\n\\theight: 100%;\\r\\n\\ttop: 0;\\r\\n\\tleft: 0;\\r\\n\\t-webkit-backdrop-filter: blur(2px);\\r\\n\\t backdrop-filter: blur(2px);\\r\\n\\tbackground-color: #BED4DB9F;\\r\\n\\tz-index: 1;\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"container\": `style-module__container___gZKjJ`,\n\t\"image\": `style-module__image___pE1xz`,\n\t\"new\": `style-module__new___vOprg`,\n\t\"close\": `style-module__close___aMqtU`,\n\t\"wait\": `style-module__wait___OzAwQ`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\n }\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n return [content].concat([sourceMapping]).join(\"\\n\");\n }\n return [content].join(\"\\n\");\n};","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nc = undefined;","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import Spinner from \"./Spinner\";\nexport default Spinner;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport styles from \"./style.module.scss\";\n;\nconst Spinner = ({ size, contrast, ...props }) => {\n const classes = ['ui-spinner'];\n classes.push(styles['spinner']);\n if (size)\n classes.push(styles[size], 'ui-spinner-' + size);\n if (contrast)\n classes.push(styles['ui-spinner-contrast']);\n if (props.className)\n classes.push(props.className);\n return (_jsx(\"div\", { ...props, className: classes.join(' ') }));\n};\nexport default Spinner;\n","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","import Progress from \"./Progress\";\nexport default Progress;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport styles from \"./style.module.css\";\n;\nconst Progress = ({ value = 0, size, radius = false }) => {\n value = Math.ceil(Number(value) * 10) / 10;\n if (value > 100) {\n value = 100;\n }\n if (value < 0) {\n value = 0;\n }\n const progress = radius ? (360 / 100 * value) + 'deg' : value + '%';\n const classes = ['ui-progress'];\n classes.push(styles['container']);\n if (size)\n classes.push(styles[size]);\n if (radius)\n classes.push(styles['radius']);\n return (_jsx(\"div\", { className: classes.join(' '), \"data-progress\": value, style: { '--progress': progress } }));\n};\nexport default Progress;\n","import React from 'react';\n\nvar isCheckBoxInput = (element) => element.type === 'checkbox';\n\nvar isDateObject = (value) => value instanceof Date;\n\nvar isNullOrUndefined = (value) => value == null;\n\nconst isObjectType = (value) => typeof value === 'object';\nvar isObject = (value) => !isNullOrUndefined(value) &&\n !Array.isArray(value) &&\n isObjectType(value) &&\n !isDateObject(value);\n\nvar getEventValue = (event) => isObject(event) && event.target\n ? isCheckBoxInput(event.target)\n ? event.target.checked\n : event.target.value\n : event;\n\nvar getNodeParentName = (name) => name.substring(0, name.search(/\\.\\d+(\\.|$)/)) || name;\n\nvar isNameInFieldArray = (names, name) => names.has(getNodeParentName(name));\n\nvar isPlainObject = (tempObject) => {\n const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;\n return (isObject(prototypeCopy) && prototypeCopy.hasOwnProperty('isPrototypeOf'));\n};\n\nvar isWeb = typeof window !== 'undefined' &&\n typeof window.HTMLElement !== 'undefined' &&\n typeof document !== 'undefined';\n\nfunction cloneObject(data) {\n let copy;\n const isArray = Array.isArray(data);\n if (data instanceof Date) {\n copy = new Date(data);\n }\n else if (data instanceof Set) {\n copy = new Set(data);\n }\n else if (!(isWeb && (data instanceof Blob || data instanceof FileList)) &&\n (isArray || isObject(data))) {\n copy = isArray ? [] : {};\n if (!isArray && !isPlainObject(data)) {\n copy = data;\n }\n else {\n for (const key in data) {\n if (data.hasOwnProperty(key)) {\n copy[key] = cloneObject(data[key]);\n }\n }\n }\n }\n else {\n return data;\n }\n return copy;\n}\n\nvar compact = (value) => Array.isArray(value) ? value.filter(Boolean) : [];\n\nvar isUndefined = (val) => val === undefined;\n\nvar get = (obj, path, defaultValue) => {\n if (!path || !isObject(obj)) {\n return defaultValue;\n }\n const result = compact(path.split(/[,[\\].]+?/)).reduce((result, key) => isNullOrUndefined(result) ? result : result[key], obj);\n return isUndefined(result) || result === obj\n ? isUndefined(obj[path])\n ? defaultValue\n : obj[path]\n : result;\n};\n\nvar isBoolean = (value) => typeof value === 'boolean';\n\nconst EVENTS = {\n BLUR: 'blur',\n FOCUS_OUT: 'focusout',\n CHANGE: 'change',\n};\nconst VALIDATION_MODE = {\n onBlur: 'onBlur',\n onChange: 'onChange',\n onSubmit: 'onSubmit',\n onTouched: 'onTouched',\n all: 'all',\n};\nconst INPUT_VALIDATION_RULES = {\n max: 'max',\n min: 'min',\n maxLength: 'maxLength',\n minLength: 'minLength',\n pattern: 'pattern',\n required: 'required',\n validate: 'validate',\n};\n\nconst HookFormContext = React.createContext(null);\n/**\n * This custom hook allows you to access the form context. useFormContext is intended to be used in deeply nested structures, where it would become inconvenient to pass the context as a prop. To be used with {@link FormProvider}.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)\n *\n * @returns return all useForm methods\n *\n * @example\n * ```tsx\n * function App() {\n * const methods = useForm();\n * const onSubmit = data => console.log(data);\n *\n * return (\n * <FormProvider {...methods} >\n * <form onSubmit={methods.handleSubmit(onSubmit)}>\n * <NestedInput />\n * <input type=\"submit\" />\n * </form>\n * </FormProvider>\n * );\n * }\n *\n * function NestedInput() {\n * const { register } = useFormContext(); // retrieve all hook methods\n * return <input {...register(\"test\")} />;\n * }\n * ```\n */\nconst useFormContext = () => React.useContext(HookFormContext);\n/**\n * A provider component that propagates the `useForm` methods to all children components via [React Context](https://reactjs.org/docs/context.html) API. To be used with {@link useFormContext}.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)\n *\n * @param props - all useFrom methods\n *\n * @example\n * ```tsx\n * function App() {\n * const methods = useForm();\n * const onSubmit = data => console.log(data);\n *\n * return (\n * <FormProvider {...methods} >\n * <form onSubmit={methods.handleSubmit(onSubmit)}>\n * <NestedInput />\n * <input type=\"submit\" />\n * </form>\n * </FormProvider>\n * );\n * }\n *\n * function NestedInput() {\n * const { register } = useFormContext(); // retrieve all hook methods\n * return <input {...register(\"test\")} />;\n * }\n * ```\n */\nconst FormProvider = (props) => {\n const { children, ...data } = props;\n return (React.createElement(HookFormContext.Provider, { value: data }, children));\n};\n\nvar getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {\n const result = {\n defaultValues: control._defaultValues,\n };\n for (const key in formState) {\n Object.defineProperty(result, key, {\n get: () => {\n const _key = key;\n if (control._proxyFormState[_key] !== VALIDATION_MODE.all) {\n control._proxyFormState[_key] = !isRoot || VALIDATION_MODE.all;\n }\n localProxyFormState && (localProxyFormState[_key] = true);\n return formState[_key];\n },\n });\n }\n return result;\n};\n\nvar isEmptyObject = (value) => isObject(value) && !Object.keys(value).length;\n\nvar shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, isRoot) => {\n updateFormState(formStateData);\n const { name, ...formState } = formStateData;\n return (isEmptyObject(formState) ||\n Object.keys(formState).length >= Object.keys(_proxyFormState).length ||\n Object.keys(formState).find((key) => _proxyFormState[key] ===\n (!isRoot || VALIDATION_MODE.all)));\n};\n\nvar convertToArrayPayload = (value) => (Array.isArray(value) ? value : [value]);\n\nvar shouldSubscribeByName = (name, signalName, exact) => !name ||\n !signalName ||\n name === signalName ||\n convertToArrayPayload(name).some((currentName) => currentName &&\n (exact\n ? currentName === signalName\n : currentName.startsWith(signalName) ||\n signalName.startsWith(currentName)));\n\nfunction useSubscribe(props) {\n const _props = React.useRef(props);\n _props.current = props;\n React.useEffect(() => {\n const subscription = !props.disabled &&\n _props.current.subject &&\n _props.current.subject.subscribe({\n next: _props.current.next,\n });\n return () => {\n subscription && subscription.unsubscribe();\n };\n }, [props.disabled]);\n}\n\n/**\n * This custom hook allows you to subscribe to each form state, and isolate the re-render at the custom hook level. It has its scope in terms of form state subscription, so it would not affect other useFormState and useForm. Using this hook can reduce the re-render impact on large and complex form application.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformstate) • [Demo](https://codesandbox.io/s/useformstate-75xly)\n *\n * @param props - include options on specify fields to subscribe. {@link UseFormStateReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, handleSubmit, control } = useForm({\n * defaultValues: {\n * firstName: \"firstName\"\n * }});\n * const { dirtyFields } = useFormState({\n * control\n * });\n * const onSubmit = (data) => console.log(data);\n *\n * return (\n * <form onSubmit={handleSubmit(onSubmit)}>\n * <input {...register(\"firstName\")} placeholder=\"First Name\" />\n * {dirtyFields.firstName && <p>Field is dirty.</p>}\n * <input type=\"submit\" />\n * </form>\n * );\n * }\n * ```\n */\nfunction useFormState(props) {\n const methods = useFormContext();\n const { control = methods.control, disabled, name, exact } = props || {};\n const [formState, updateFormState] = React.useState(control._formState);\n const _mounted = React.useRef(true);\n const _localProxyFormState = React.useRef({\n isDirty: false,\n isLoading: false,\n dirtyFields: false,\n touchedFields: false,\n isValidating: false,\n isValid: false,\n errors: false,\n });\n const _name = React.useRef(name);\n _name.current = name;\n useSubscribe({\n disabled,\n next: (value) => _mounted.current &&\n shouldSubscribeByName(_name.current, value.name, exact) &&\n shouldRenderFormState(value, _localProxyFormState.current, control._updateFormState) &&\n updateFormState({\n ...control._formState,\n ...value,\n }),\n subject: control._subjects.state,\n });\n React.useEffect(() => {\n _mounted.current = true;\n _localProxyFormState.current.isValid && control._updateValid(true);\n return () => {\n _mounted.current = false;\n };\n }, [control]);\n return getProxyFormState(formState, control, _localProxyFormState.current, false);\n}\n\nvar isString = (value) => typeof value === 'string';\n\nvar generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) => {\n if (isString(names)) {\n isGlobal && _names.watch.add(names);\n return get(formValues, names, defaultValue);\n }\n if (Array.isArray(names)) {\n return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get(formValues, fieldName)));\n }\n isGlobal && (_names.watchAll = true);\n return formValues;\n};\n\n/**\n * Custom hook to subscribe to field change and isolate re-rendering at the component level.\n *\n * @remarks\n *\n * [API](https://react-hook-form.com/docs/usewatch) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-usewatch-h9i5e)\n *\n * @example\n * ```tsx\n * const { watch } = useForm();\n * const values = useWatch({\n * name: \"fieldName\"\n * control,\n * })\n * ```\n */\nfunction useWatch(props) {\n const methods = useFormContext();\n const { control = methods.control, name, defaultValue, disabled, exact, } = props || {};\n const _name = React.useRef(name);\n _name.current = name;\n useSubscribe({\n disabled,\n subject: control._subjects.values,\n next: (formState) => {\n if (shouldSubscribeByName(_name.current, formState.name, exact)) {\n updateValue(cloneObject(generateWatchOutput(_name.current, control._names, formState.values || control._formValues, false, defaultValue)));\n }\n },\n });\n const [value, updateValue] = React.useState(control._getWatch(name, defaultValue));\n React.useEffect(() => control._removeUnmounted());\n return value;\n}\n\nvar isKey = (value) => /^\\w*$/.test(value);\n\nvar stringToPath = (input) => compact(input.replace(/[\"|']|\\]/g, '').split(/\\.|\\[/));\n\nfunction set(object, path, value) {\n let index = -1;\n const tempPath = isKey(path) ? [path] : stringToPath(path);\n const length = tempPath.length;\n const lastIndex = length - 1;\n while (++index < length) {\n const key = tempPath[index];\n let newValue = value;\n if (index !== lastIndex) {\n const objValue = object[key];\n newValue =\n isObject(objValue) || Array.isArray(objValue)\n ? objValue\n : !isNaN(+tempPath[index + 1])\n ? []\n : {};\n }\n object[key] = newValue;\n object = object[key];\n }\n return object;\n}\n\n/**\n * Custom hook to work with controlled component, this function provide you with both form and field level state. Re-render is isolated at the hook level.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usecontroller) • [Demo](https://codesandbox.io/s/usecontroller-0o8px)\n *\n * @param props - the path name to the form field value, and validation rules.\n *\n * @returns field properties, field and form state. {@link UseControllerReturn}\n *\n * @example\n * ```tsx\n * function Input(props) {\n * const { field, fieldState, formState } = useController(props);\n * return (\n * <div>\n * <input {...field} placeholder={props.name} />\n * <p>{fieldState.isTouched && \"Touched\"}</p>\n * <p>{formState.isSubmitted ? \"submitted\" : \"\"}</p>\n * </div>\n * );\n * }\n * ```\n */\nfunction useController(props) {\n const methods = useFormContext();\n const { name, disabled, control = methods.control, shouldUnregister } = props;\n const isArrayField = isNameInFieldArray(control._names.array, name);\n const value = useWatch({\n control,\n name,\n defaultValue: get(control._formValues, name, get(control._defaultValues, name, props.defaultValue)),\n exact: true,\n });\n const formState = useFormState({\n control,\n name,\n });\n const _registerProps = React.useRef(control.register(name, {\n ...props.rules,\n value,\n }));\n _registerProps.current = control.register(name, props.rules);\n React.useEffect(() => {\n const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;\n const updateMounted = (name, value) => {\n const field = get(control._fields, name);\n if (field) {\n field._f.mount = value;\n }\n };\n updateMounted(name, true);\n if (_shouldUnregisterField) {\n const value = cloneObject(get(control._options.defaultValues, name));\n set(control._defaultValues, name, value);\n if (isUndefined(get(control._formValues, name))) {\n set(control._formValues, name, value);\n }\n }\n return () => {\n (isArrayField\n ? _shouldUnregisterField && !control._state.action\n : _shouldUnregisterField)\n ? control.unregister(name)\n : updateMounted(name, false);\n };\n }, [name, control, isArrayField, shouldUnregister]);\n React.useEffect(() => {\n if (get(control._fields, name)) {\n control._updateDisabledField({\n disabled,\n fields: control._fields,\n name,\n });\n }\n }, [disabled, name, control]);\n return {\n field: {\n name,\n value,\n ...(isBoolean(disabled) ? { disabled } : {}),\n onChange: React.useCallback((event) => _registerProps.current.onChange({\n target: {\n value: getEventValue(event),\n name: name,\n },\n type: EVENTS.CHANGE,\n }), [name]),\n onBlur: React.useCallback(() => _registerProps.current.onBlur({\n target: {\n value: get(control._formValues, name),\n name: name,\n },\n type: EVENTS.BLUR,\n }), [name, control]),\n ref: (elm) => {\n const field = get(control._fields, name);\n if (field && elm) {\n field._f.ref = {\n focus: () => elm.focus(),\n select: () => elm.select(),\n setCustomValidity: (message) => elm.setCustomValidity(message),\n reportValidity: () => elm.reportValidity(),\n };\n }\n },\n },\n formState,\n fieldState: Object.defineProperties({}, {\n invalid: {\n enumerable: true,\n get: () => !!get(formState.errors, name),\n },\n isDirty: {\n enumerable: true,\n get: () => !!get(formState.dirtyFields, name),\n },\n isTouched: {\n enumerable: true,\n get: () => !!get(formState.touchedFields, name),\n },\n error: {\n enumerable: true,\n get: () => get(formState.errors, name),\n },\n }),\n };\n}\n\n/**\n * Component based on `useController` hook to work with controlled component.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usecontroller/controller) • [Demo](https://codesandbox.io/s/react-hook-form-v6-controller-ts-jwyzw) • [Video](https://www.youtube.com/watch?v=N2UNk_UCVyA)\n *\n * @param props - the path name to the form field value, and validation rules.\n *\n * @returns provide field handler functions, field and form state.\n *\n * @example\n * ```tsx\n * function App() {\n * const { control } = useForm<FormValues>({\n * defaultValues: {\n * test: \"\"\n * }\n * });\n *\n * return (\n * <form>\n * <Controller\n * control={control}\n * name=\"test\"\n * render={({ field: { onChange, onBlur, value, ref }, formState, fieldState }) => (\n * <>\n * <input\n * onChange={onChange} // send value to hook form\n * onBlur={onBlur} // notify when input is touched\n * value={value} // return updated value\n * ref={ref} // set ref for focus management\n * />\n * <p>{formState.isSubmitted ? \"submitted\" : \"\"}</p>\n * <p>{fieldState.isTouched ? \"touched\" : \"\"}</p>\n * </>\n * )}\n * />\n * </form>\n * );\n * }\n * ```\n */\nconst Controller = (props) => props.render(useController(props));\n\nconst POST_REQUEST = 'post';\n/**\n * Form component to manage submission.\n *\n * @param props - to setup submission detail. {@link FormProps}\n *\n * @returns form component or headless render prop.\n *\n * @example\n * ```tsx\n * function App() {\n * const { control, formState: { errors } } = useForm();\n *\n * return (\n * <Form action=\"/api\" control={control}>\n * <input {...register(\"name\")} />\n * <p>{errors?.root?.server && 'Server error'}</p>\n * <button>Submit</button>\n * </Form>\n * );\n * }\n * ```\n */\nfunction Form(props) {\n const methods = useFormContext();\n const [mounted, setMounted] = React.useState(false);\n const { control = methods.control, onSubmit, children, action, method = POST_REQUEST, headers, encType, onError, render, onSuccess, validateStatus, ...rest } = props;\n const submit = async (event) => {\n let hasError = false;\n let type = '';\n await control.handleSubmit(async (data) => {\n const formData = new FormData();\n let formDataJson = '';\n try {\n formDataJson = JSON.stringify(data);\n }\n catch (_a) { }\n for (const name of control._names.mount) {\n formData.append(name, get(data, name));\n }\n if (onSubmit) {\n await onSubmit({\n data,\n event,\n method,\n formData,\n formDataJson,\n });\n }\n if (action) {\n try {\n const shouldStringifySubmissionData = [\n headers && headers['Content-Type'],\n encType,\n ].some((value) => value && value.includes('json'));\n const response = await fetch(action, {\n method,\n headers: {\n ...headers,\n ...(encType ? { 'Content-Type': encType } : {}),\n },\n body: shouldStringifySubmissionData ? formDataJson : formData,\n });\n if (response &&\n (validateStatus\n ? !validateStatus(response.status)\n : response.status < 200 || response.status >= 300)) {\n hasError = true;\n onError && onError({ response });\n type = String(response.status);\n }\n else {\n onSuccess && onSuccess({ response });\n }\n }\n catch (error) {\n hasError = true;\n onError && onError({ error });\n }\n }\n })(event);\n if (hasError && props.control) {\n props.control._subjects.state.next({\n isSubmitSuccessful: false,\n });\n props.control.setError('root.server', {\n type,\n });\n }\n };\n React.useEffect(() => {\n setMounted(true);\n }, []);\n return render ? (React.createElement(React.Fragment, null, render({\n submit,\n }))) : (React.createElement(\"form\", { noValidate: mounted, action: action, method: method, encType: encType, onSubmit: submit, ...rest }, children));\n}\n\nvar appendErrors = (name, validateAllFieldCriteria, errors, type, message) => validateAllFieldCriteria\n ? {\n ...errors[name],\n types: {\n ...(errors[name] && errors[name].types ? errors[name].types : {}),\n [type]: message || true,\n },\n }\n : {};\n\nconst focusFieldBy = (fields, callback, fieldsNames) => {\n for (const key of fieldsNames || Object.keys(fields)) {\n const field = get(fields, key);\n if (field) {\n const { _f, ...currentField } = field;\n if (_f && callback(_f.name)) {\n if (_f.ref.focus) {\n _f.ref.focus();\n break;\n }\n else if (_f.refs && _f.refs[0].focus) {\n _f.refs[0].focus();\n break;\n }\n }\n else if (isObject(currentField)) {\n focusFieldBy(currentField, callback);\n }\n }\n }\n};\n\nvar generateId = () => {\n const d = typeof performance === 'undefined' ? Date.now() : performance.now() * 1000;\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\n const r = (Math.random() * 16 + d) % 16 | 0;\n return (c == 'x' ? r : (r & 0x3) | 0x8).toString(16);\n });\n};\n\nvar getFocusFieldName = (name, index, options = {}) => options.shouldFocus || isUndefined(options.shouldFocus)\n ? options.focusName ||\n `${name}.${isUndefined(options.focusIndex) ? index : options.focusIndex}.`\n : '';\n\nvar getValidationModes = (mode) => ({\n isOnSubmit: !mode || mode === VALIDATION_MODE.onSubmit,\n isOnBlur: mode === VALIDATION_MODE.onBlur,\n isOnChange: mode === VALIDATION_MODE.onChange,\n isOnAll: mode === VALIDATION_MODE.all,\n isOnTouch: mode === VALIDATION_MODE.onTouched,\n});\n\nvar isWatched = (name, _names, isBlurEvent) => !isBlurEvent &&\n (_names.watchAll ||\n _names.watch.has(name) ||\n [..._names.watch].some((watchName) => name.startsWith(watchName) &&\n /^\\.\\w+/.test(name.slice(watchName.length))));\n\nvar updateFieldArrayRootError = (errors, error, name) => {\n const fieldArrayErrors = compact(get(errors, name));\n set(fieldArrayErrors, 'root', error[name]);\n set(errors, name, fieldArrayErrors);\n return errors;\n};\n\nvar isFileInput = (element) => element.type === 'file';\n\nvar isFunction = (value) => typeof value === 'function';\n\nvar isHTMLElement = (value) => {\n if (!isWeb) {\n return false;\n }\n const owner = value ? value.ownerDocument : 0;\n return (value instanceof\n (owner && owner.defaultView ? owner.defaultView.HTMLElement : HTMLElement));\n};\n\nvar isMessage = (value) => isString(value);\n\nvar isRadioInput = (element) => element.type === 'radio';\n\nvar isRegex = (value) => value instanceof RegExp;\n\nconst defaultResult = {\n value: false,\n isValid: false,\n};\nconst validResult = { value: true, isValid: true };\nvar getCheckboxValue = (options) => {\n if (Array.isArray(options)) {\n if (options.length > 1) {\n const values = options\n .filter((option) => option && option.checked && !option.disabled)\n .map((option) => option.value);\n return { value: values, isValid: !!values.length };\n }\n return options[0].checked && !options[0].disabled\n ? // @ts-expect-error expected to work in the browser\n options[0].attributes && !isUndefined(options[0].attributes.value)\n ? isUndefined(options[0].value) || options[0].value === ''\n ? validResult\n : { value: options[0].value, isValid: true }\n : validResult\n : defaultResult;\n }\n return defaultResult;\n};\n\nconst defaultReturn = {\n isValid: false,\n value: null,\n};\nvar getRadioValue = (options) => Array.isArray(options)\n ? options.reduce((previous, option) => option && option.checked && !option.disabled\n ? {\n isValid: true,\n value: option.value,\n }\n : previous, defaultReturn)\n : defaultReturn;\n\nfunction getValidateError(result, ref, type = 'validate') {\n if (isMessage(result) ||\n (Array.isArray(result) && result.every(isMessage)) ||\n (isBoolean(result) && !result)) {\n return {\n type,\n message: isMessage(result) ? result : '',\n ref,\n };\n }\n}\n\nvar getValueAndMessage = (validationData) => isObject(validationData) && !isRegex(validationData)\n ? validationData\n : {\n value: validationData,\n message: '',\n };\n\nvar validateField = async (field, formValues, validateAllFieldCriteria, shouldUseNativeValidation, isFieldArray) => {\n const { ref, refs, required, maxLength, minLength, min, max, pattern, validate, name, valueAsNumber, mount, disabled, } = field._f;\n const inputValue = get(formValues, name);\n if (!mount || disabled) {\n return {};\n }\n const inputRef = refs ? refs[0] : ref;\n const setCustomValidity = (message) => {\n if (shouldUseNativeValidation && inputRef.reportValidity) {\n inputRef.setCustomValidity(isBoolean(message) ? '' : message || '');\n inputRef.reportValidity();\n }\n };\n const error = {};\n const isRadio = isRadioInput(ref);\n const isCheckBox = isCheckBoxInput(ref);\n const isRadioOrCheckbox = isRadio || isCheckBox;\n const isEmpty = ((valueAsNumber || isFileInput(ref)) &&\n isUndefined(ref.value) &&\n isUndefined(inputValue)) ||\n (isHTMLElement(ref) && ref.value === '') ||\n inputValue === '' ||\n (Array.isArray(inputValue) && !inputValue.length);\n const appendErrorsCurry = appendErrors.bind(null, name, validateAllFieldCriteria, error);\n const getMinMaxMessage = (exceedMax, maxLengthMessage, minLengthMessage, maxType = INPUT_VALIDATION_RULES.maxLength, minType = INPUT_VALIDATION_RULES.minLength) => {\n const message = exceedMax ? maxLengthMessage : minLengthMessage;\n error[name] = {\n type: exceedMax ? maxType : minType,\n message,\n ref,\n ...appendErrorsCurry(exceedMax ? maxType : minType, message),\n };\n };\n if (isFieldArray\n ? !Array.isArray(inputValue) || !inputValue.length\n : required &&\n ((!isRadioOrCheckbox && (isEmpty || isNullOrUndefined(inputValue))) ||\n (isBoolean(inputValue) && !inputValue) ||\n (isCheckBox && !getCheckboxValue(refs).isValid) ||\n (isRadio && !getRadioValue(refs).isValid))) {\n const { value, message } = isMessage(required)\n ? { value: !!required, message: required }\n : getValueAndMessage(required);\n if (value) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.required,\n message,\n ref: inputRef,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.required, message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n if (!isEmpty && (!isNullOrUndefined(min) || !isNullOrUndefined(max))) {\n let exceedMax;\n let exceedMin;\n const maxOutput = getValueAndMessage(max);\n const minOutput = getValueAndMessage(min);\n if (!isNullOrUndefined(inputValue) && !isNaN(inputValue)) {\n const valueNumber = ref.valueAsNumber ||\n (inputValue ? +inputValue : inputValue);\n if (!isNullOrUndefined(maxOutput.value)) {\n exceedMax = valueNumber > maxOutput.value;\n }\n if (!isNullOrUndefined(minOutput.value)) {\n exceedMin = valueNumber < minOutput.value;\n }\n }\n else {\n const valueDate = ref.valueAsDate || new Date(inputValue);\n const convertTimeToDate = (time) => new Date(new Date().toDateString() + ' ' + time);\n const isTime = ref.type == 'time';\n const isWeek = ref.type == 'week';\n if (isString(maxOutput.value) && inputValue) {\n exceedMax = isTime\n ? convertTimeToDate(inputValue) > convertTimeToDate(maxOutput.value)\n : isWeek\n ? inputValue > maxOutput.value\n : valueDate > new Date(maxOutput.value);\n }\n if (isString(minOutput.value) && inputValue) {\n exceedMin = isTime\n ? convertTimeToDate(inputValue) < convertTimeToDate(minOutput.value)\n : isWeek\n ? inputValue < minOutput.value\n : valueDate < new Date(minOutput.value);\n }\n }\n if (exceedMax || exceedMin) {\n getMinMaxMessage(!!exceedMax, maxOutput.message, minOutput.message, INPUT_VALIDATION_RULES.max, INPUT_VALIDATION_RULES.min);\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n if ((maxLength || minLength) &&\n !isEmpty &&\n (isString(inputValue) || (isFieldArray && Array.isArray(inputValue)))) {\n const maxLengthOutput = getValueAndMessage(maxLength);\n const minLengthOutput = getValueAndMessage(minLength);\n const exceedMax = !isNullOrUndefined(maxLengthOutput.value) &&\n inputValue.length > +maxLengthOutput.value;\n const exceedMin = !isNullOrUndefined(minLengthOutput.value) &&\n inputValue.length < +minLengthOutput.value;\n if (exceedMax || exceedMin) {\n getMinMaxMessage(exceedMax, maxLengthOutput.message, minLengthOutput.message);\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n if (pattern && !isEmpty && isString(inputValue)) {\n const { value: patternValue, message } = getValueAndMessage(pattern);\n if (isRegex(patternValue) && !inputValue.match(patternValue)) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.pattern,\n message,\n ref,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.pattern, message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n if (validate) {\n if (isFunction(validate)) {\n const result = await validate(inputValue, formValues);\n const validateError = getValidateError(result, inputRef);\n if (validateError) {\n error[name] = {\n ...validateError,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.validate, validateError.message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(validateError.message);\n return error;\n }\n }\n }\n else if (isObject(validate)) {\n let validationResult = {};\n for (const key in validate) {\n if (!isEmptyObject(validationResult) && !validateAllFieldCriteria) {\n break;\n }\n const validateError = getValidateError(await validate[key](inputValue, formValues), inputRef, key);\n if (validateError) {\n validationResult = {\n ...validateError,\n ...appendErrorsCurry(key, validateError.message),\n };\n setCustomValidity(validateError.message);\n if (validateAllFieldCriteria) {\n error[name] = validationResult;\n }\n }\n }\n if (!isEmptyObject(validationResult)) {\n error[name] = {\n ref: inputRef,\n ...validationResult,\n };\n if (!validateAllFieldCriteria) {\n return error;\n }\n }\n }\n }\n setCustomValidity(true);\n return error;\n};\n\nfunction append(data, value) {\n return [...data, ...convertToArrayPayload(value)];\n}\n\nvar fillEmptyArray = (value) => Array.isArray(value) ? value.map(() => undefined) : undefined;\n\nfunction insert(data, index, value) {\n return [\n ...data.slice(0, index),\n ...convertToArrayPayload(value),\n ...data.slice(index),\n ];\n}\n\nvar moveArrayAt = (data, from, to) => {\n if (!Array.isArray(data)) {\n return [];\n }\n if (isUndefined(data[to])) {\n data[to] = undefined;\n }\n data.splice(to, 0, data.splice(from, 1)[0]);\n return data;\n};\n\nfunction prepend(data, value) {\n return [...convertToArrayPayload(value), ...convertToArrayPayload(data)];\n}\n\nfunction removeAtIndexes(data, indexes) {\n let i = 0;\n const temp = [...data];\n for (const index of indexes) {\n temp.splice(index - i, 1);\n i++;\n }\n return compact(temp).length ? temp : [];\n}\nvar removeArrayAt = (data, index) => isUndefined(index)\n ? []\n : removeAtIndexes(data, convertToArrayPayload(index).sort((a, b) => a - b));\n\nvar swapArrayAt = (data, indexA, indexB) => {\n data[indexA] = [data[indexB], (data[indexB] = data[indexA])][0];\n};\n\nfunction baseGet(object, updatePath) {\n const length = updatePath.slice(0, -1).length;\n let index = 0;\n while (index < length) {\n object = isUndefined(object) ? index++ : object[updatePath[index++]];\n }\n return object;\n}\nfunction isEmptyArray(obj) {\n for (const key in obj) {\n if (obj.hasOwnProperty(key) && !isUndefined(obj[key])) {\n return false;\n }\n }\n return true;\n}\nfunction unset(object, path) {\n const paths = Array.isArray(path)\n ? path\n : isKey(path)\n ? [path]\n : stringToPath(path);\n const childObject = paths.length === 1 ? object : baseGet(object, paths);\n const index = paths.length - 1;\n const key = paths[index];\n if (childObject) {\n delete childObject[key];\n }\n if (index !== 0 &&\n ((isObject(childObject) && isEmptyObject(childObject)) ||\n (Array.isArray(childObject) && isEmptyArray(childObject)))) {\n unset(object, paths.slice(0, -1));\n }\n return object;\n}\n\nvar updateAt = (fieldValues, index, value) => {\n fieldValues[index] = value;\n return fieldValues;\n};\n\n/**\n * A custom hook that exposes convenient methods to perform operations with a list of dynamic inputs that need to be appended, updated, removed etc. • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn) • [Video](https://youtu.be/4MrbfGSFY2A)\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usefieldarray) • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn)\n *\n * @param props - useFieldArray props\n *\n * @returns methods - functions to manipulate with the Field Arrays (dynamic inputs) {@link UseFieldArrayReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, control, handleSubmit, reset, trigger, setError } = useForm({\n * defaultValues: {\n * test: []\n * }\n * });\n * const { fields, append } = useFieldArray({\n * control,\n * name: \"test\"\n * });\n *\n * return (\n * <form onSubmit={handleSubmit(data => console.log(data))}>\n * {fields.map((item, index) => (\n * <input key={item.id} {...register(`test.${index}.firstName`)} />\n * ))}\n * <button type=\"button\" onClick={() => append({ firstName: \"bill\" })}>\n * append\n * </button>\n * <input type=\"submit\" />\n * </form>\n * );\n * }\n * ```\n */\nfunction useFieldArray(props) {\n const methods = useFormContext();\n const { control = methods.control, name, keyName = 'id', shouldUnregister, } = props;\n const [fields, setFields] = React.useState(control._getFieldArray(name));\n const ids = React.useRef(control._getFieldArray(name).map(generateId));\n const _fieldIds = React.useRef(fields);\n const _name = React.useRef(name);\n const _actioned = React.useRef(false);\n _name.current = name;\n _fieldIds.current = fields;\n control._names.array.add(name);\n props.rules &&\n control.register(name, props.rules);\n useSubscribe({\n next: ({ values, name: fieldArrayName, }) => {\n if (fieldArrayName === _name.current || !fieldArrayName) {\n const fieldValues = get(values, _name.current);\n if (Array.isArray(fieldValues)) {\n setFields(fieldValues);\n ids.current = fieldValues.map(generateId);\n }\n }\n },\n subject: control._subjects.array,\n });\n const updateValues = React.useCallback((updatedFieldArrayValues) => {\n _actioned.current = true;\n control._updateFieldArray(name, updatedFieldArrayValues);\n }, [control, name]);\n const append$1 = (value, options) => {\n const appendValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = append(control._getFieldArray(name), appendValue);\n control._names.focus = getFocusFieldName(name, updatedFieldArrayValues.length - 1, options);\n ids.current = append(ids.current, appendValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, append, {\n argA: fillEmptyArray(value),\n });\n };\n const prepend$1 = (value, options) => {\n const prependValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = prepend(control._getFieldArray(name), prependValue);\n control._names.focus = getFocusFieldName(name, 0, options);\n ids.current = prepend(ids.current, prependValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, prepend, {\n argA: fillEmptyArray(value),\n });\n };\n const remove = (index) => {\n const updatedFieldArrayValues = removeArrayAt(control._getFieldArray(name), index);\n ids.current = removeArrayAt(ids.current, index);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, removeArrayAt, {\n argA: index,\n });\n };\n const insert$1 = (index, value, options) => {\n const insertValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = insert(control._getFieldArray(name), index, insertValue);\n control._names.focus = getFocusFieldName(name, index, options);\n ids.current = insert(ids.current, index, insertValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, insert, {\n argA: index,\n argB: fillEmptyArray(value),\n });\n };\n const swap = (indexA, indexB) => {\n const updatedFieldArrayValues = control._getFieldArray(name);\n swapArrayAt(updatedFieldArrayValues, indexA, indexB);\n swapArrayAt(ids.current, indexA, indexB);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, swapArrayAt, {\n argA: indexA,\n argB: indexB,\n }, false);\n };\n const move = (from, to) => {\n const updatedFieldArrayValues = control._getFieldArray(name);\n moveArrayAt(updatedFieldArrayValues, from, to);\n moveArrayAt(ids.current, from, to);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, moveArrayAt, {\n argA: from,\n argB: to,\n }, false);\n };\n const update = (index, value) => {\n const updateValue = cloneObject(value);\n const updatedFieldArrayValues = updateAt(control._getFieldArray(name), index, updateValue);\n ids.current = [...updatedFieldArrayValues].map((item, i) => !item || i === index ? generateId() : ids.current[i]);\n updateValues(updatedFieldArrayValues);\n setFields([...updatedFieldArrayValues]);\n control._updateFieldArray(name, updatedFieldArrayValues, updateAt, {\n argA: index,\n argB: updateValue,\n }, true, false);\n };\n const replace = (value) => {\n const updatedFieldArrayValues = convertToArrayPayload(cloneObject(value));\n ids.current = updatedFieldArrayValues.map(generateId);\n updateValues([...updatedFieldArrayValues]);\n setFields([...updatedFieldArrayValues]);\n control._updateFieldArray(name, [...updatedFieldArrayValues], (data) => data, {}, true, false);\n };\n React.useEffect(() => {\n control._state.action = false;\n isWatched(name, control._names) &&\n control._subjects.state.next({\n ...control._formState,\n });\n if (_actioned.current &&\n (!getValidationModes(control._options.mode).isOnSubmit ||\n control._formState.isSubmitted)) {\n if (control._options.resolver) {\n control._executeSchema([name]).then((result) => {\n const error = get(result.errors, name);\n const existingError = get(control._formState.errors, name);\n if (existingError\n ? (!error && existingError.type) ||\n (error &&\n (existingError.type !== error.type ||\n existingError.message !== error.message))\n : error && error.type) {\n error\n ? set(control._formState.errors, name, error)\n : unset(control._formState.errors, name);\n control._subjects.state.next({\n errors: control._formState.errors,\n });\n }\n });\n }\n else {\n const field = get(control._fields, name);\n if (field && field._f) {\n validateField(field, control._formValues, control._options.criteriaMode === VALIDATION_MODE.all, control._options.shouldUseNativeValidation, true).then((error) => !isEmptyObject(error) &&\n control._subjects.state.next({\n errors: updateFieldArrayRootError(control._formState.errors, error, name),\n }));\n }\n }\n }\n control._subjects.values.next({\n name,\n values: { ...control._formValues },\n });\n control._names.focus &&\n focusFieldBy(control._fields, (key) => !!key && key.startsWith(control._names.focus || ''));\n control._names.focus = '';\n control._updateValid();\n _actioned.current = false;\n }, [fields, name, control]);\n React.useEffect(() => {\n !get(control._formValues, name) && control._updateFieldArray(name);\n return () => {\n (control._options.shouldUnregister || shouldUnregister) &&\n control.unregister(name);\n };\n }, [name, control, keyName, shouldUnregister]);\n return {\n swap: React.useCallback(swap, [updateValues, name, control]),\n move: React.useCallback(move, [updateValues, name, control]),\n prepend: React.useCallback(prepend$1, [updateValues, name, control]),\n append: React.useCallback(append$1, [updateValues, name, control]),\n remove: React.useCallback(remove, [updateValues, name, control]),\n insert: React.useCallback(insert$1, [updateValues, name, control]),\n update: React.useCallback(update, [updateValues, name, control]),\n replace: React.useCallback(replace, [updateValues, name, control]),\n fields: React.useMemo(() => fields.map((field, index) => ({\n ...field,\n [keyName]: ids.current[index] || generateId(),\n })), [fields, keyName]),\n };\n}\n\nfunction createSubject() {\n let _observers = [];\n const next = (value) => {\n for (const observer of _observers) {\n observer.next && observer.next(value);\n }\n };\n const subscribe = (observer) => {\n _observers.push(observer);\n return {\n unsubscribe: () => {\n _observers = _observers.filter((o) => o !== observer);\n },\n };\n };\n const unsubscribe = () => {\n _observers = [];\n };\n return {\n get observers() {\n return _observers;\n },\n next,\n subscribe,\n unsubscribe,\n };\n}\n\nvar isPrimitive = (value) => isNullOrUndefined(value) || !isObjectType(value);\n\nfunction deepEqual(object1, object2) {\n if (isPrimitive(object1) || isPrimitive(object2)) {\n return object1 === object2;\n }\n if (isDateObject(object1) && isDateObject(object2)) {\n return object1.getTime() === object2.getTime();\n }\n const keys1 = Object.keys(object1);\n const keys2 = Object.keys(object2);\n if (keys1.length !== keys2.length) {\n return false;\n }\n for (const key of keys1) {\n const val1 = object1[key];\n if (!keys2.includes(key)) {\n return false;\n }\n if (key !== 'ref') {\n const val2 = object2[key];\n if ((isDateObject(val1) && isDateObject(val2)) ||\n (isObject(val1) && isObject(val2)) ||\n (Array.isArray(val1) && Array.isArray(val2))\n ? !deepEqual(val1, val2)\n : val1 !== val2) {\n return false;\n }\n }\n }\n return true;\n}\n\nvar isMultipleSelect = (element) => element.type === `select-multiple`;\n\nvar isRadioOrCheckbox = (ref) => isRadioInput(ref) || isCheckBoxInput(ref);\n\nvar live = (ref) => isHTMLElement(ref) && ref.isConnected;\n\nvar objectHasFunction = (data) => {\n for (const key in data) {\n if (isFunction(data[key])) {\n return true;\n }\n }\n return false;\n};\n\nfunction markFieldsDirty(data, fields = {}) {\n const isParentNodeArray = Array.isArray(data);\n if (isObject(data) || isParentNodeArray) {\n for (const key in data) {\n if (Array.isArray(data[key]) ||\n (isObject(data[key]) && !objectHasFunction(data[key]))) {\n fields[key] = Array.isArray(data[key]) ? [] : {};\n markFieldsDirty(data[key], fields[key]);\n }\n else if (!isNullOrUndefined(data[key])) {\n fields[key] = true;\n }\n }\n }\n return fields;\n}\nfunction getDirtyFieldsFromDefaultValues(data, formValues, dirtyFieldsFromValues) {\n const isParentNodeArray = Array.isArray(data);\n if (isObject(data) || isParentNodeArray) {\n for (const key in data) {\n if (Array.isArray(data[key]) ||\n (isObject(data[key]) && !objectHasFunction(data[key]))) {\n if (isUndefined(formValues) ||\n isPrimitive(dirtyFieldsFromValues[key])) {\n dirtyFieldsFromValues[key] = Array.isArray(data[key])\n ? markFieldsDirty(data[key], [])\n : { ...markFieldsDirty(data[key]) };\n }\n else {\n getDirtyFieldsFromDefaultValues(data[key], isNullOrUndefined(formValues) ? {} : formValues[key], dirtyFieldsFromValues[key]);\n }\n }\n else {\n dirtyFieldsFromValues[key] = !deepEqual(data[key], formValues[key]);\n }\n }\n }\n return dirtyFieldsFromValues;\n}\nvar getDirtyFields = (defaultValues, formValues) => getDirtyFieldsFromDefaultValues(defaultValues, formValues, markFieldsDirty(formValues));\n\nvar getFieldValueAs = (value, { valueAsNumber, valueAsDate, setValueAs }) => isUndefined(value)\n ? value\n : valueAsNumber\n ? value === ''\n ? NaN\n : value\n ? +value\n : value\n : valueAsDate && isString(value)\n ? new Date(value)\n : setValueAs\n ? setValueAs(value)\n : value;\n\nfunction getFieldValue(_f) {\n const ref = _f.ref;\n if (_f.refs ? _f.refs.every((ref) => ref.disabled) : ref.disabled) {\n return;\n }\n if (isFileInput(ref)) {\n return ref.files;\n }\n if (isRadioInput(ref)) {\n return getRadioValue(_f.refs).value;\n }\n if (isMultipleSelect(ref)) {\n return [...ref.selectedOptions].map(({ value }) => value);\n }\n if (isCheckBoxInput(ref)) {\n return getCheckboxValue(_f.refs).value;\n }\n return getFieldValueAs(isUndefined(ref.value) ? _f.ref.value : ref.value, _f);\n}\n\nvar getResolverOptions = (fieldsNames, _fields, criteriaMode, shouldUseNativeValidation) => {\n const fields = {};\n for (const name of fieldsNames) {\n const field = get(_fields, name);\n field && set(fields, name, field._f);\n }\n return {\n criteriaMode,\n names: [...fieldsNames],\n fields,\n shouldUseNativeValidation,\n };\n};\n\nvar getRuleValue = (rule) => isUndefined(rule)\n ? rule\n : isRegex(rule)\n ? rule.source\n : isObject(rule)\n ? isRegex(rule.value)\n ? rule.value.source\n : rule.value\n : rule;\n\nvar hasValidation = (options) => options.mount &&\n (options.required ||\n options.min ||\n options.max ||\n options.maxLength ||\n options.minLength ||\n options.pattern ||\n options.validate);\n\nfunction schemaErrorLookup(errors, _fields, name) {\n const error = get(errors, name);\n if (error || isKey(name)) {\n return {\n error,\n name,\n };\n }\n const names = name.split('.');\n while (names.length) {\n const fieldName = names.join('.');\n const field = get(_fields, fieldName);\n const foundError = get(errors, fieldName);\n if (field && !Array.isArray(field) && name !== fieldName) {\n return { name };\n }\n if (foundError && foundError.type) {\n return {\n name: fieldName,\n error: foundError,\n };\n }\n names.pop();\n }\n return {\n name,\n };\n}\n\nvar skipValidation = (isBlurEvent, isTouched, isSubmitted, reValidateMode, mode) => {\n if (mode.isOnAll) {\n return false;\n }\n else if (!isSubmitted && mode.isOnTouch) {\n return !(isTouched || isBlurEvent);\n }\n else if (isSubmitted ? reValidateMode.isOnBlur : mode.isOnBlur) {\n return !isBlurEvent;\n }\n else if (isSubmitted ? reValidateMode.isOnChange : mode.isOnChange) {\n return isBlurEvent;\n }\n return true;\n};\n\nvar unsetEmptyArray = (ref, name) => !compact(get(ref, name)).length && unset(ref, name);\n\nconst defaultOptions = {\n mode: VALIDATION_MODE.onSubmit,\n reValidateMode: VALIDATION_MODE.onChange,\n shouldFocusError: true,\n};\nfunction createFormControl(props = {}, flushRootRender) {\n let _options = {\n ...defaultOptions,\n ...props,\n };\n let _formState = {\n submitCount: 0,\n isDirty: false,\n isLoading: isFunction(_options.defaultValues),\n isValidating: false,\n isSubmitted: false,\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n touchedFields: {},\n dirtyFields: {},\n errors: {},\n };\n let _fields = {};\n let _defaultValues = isObject(_options.defaultValues) || isObject(_options.values)\n ? cloneObject(_options.defaultValues || _options.values) || {}\n : {};\n let _formValues = _options.shouldUnregister\n ? {}\n : cloneObject(_defaultValues);\n let _state = {\n action: false,\n mount: false,\n watch: false,\n };\n let _names = {\n mount: new Set(),\n unMount: new Set(),\n array: new Set(),\n watch: new Set(),\n };\n let delayErrorCallback;\n let timer = 0;\n const _proxyFormState = {\n isDirty: false,\n dirtyFields: false,\n touchedFields: false,\n isValidating: false,\n isValid: false,\n errors: false,\n };\n const _subjects = {\n values: createSubject(),\n array: createSubject(),\n state: createSubject(),\n };\n const shouldCaptureDirtyFields = props.resetOptions && props.resetOptions.keepDirtyValues;\n const validationModeBeforeSubmit = getValidationModes(_options.mode);\n const validationModeAfterSubmit = getValidationModes(_options.reValidateMode);\n const shouldDisplayAllAssociatedErrors = _options.criteriaMode === VALIDATION_MODE.all;\n const debounce = (callback) => (wait) => {\n clearTimeout(timer);\n timer = setTimeout(callback, wait);\n };\n const _updateValid = async (shouldUpdateValid) => {\n if (_proxyFormState.isValid || shouldUpdateValid) {\n const isValid = _options.resolver\n ? isEmptyObject((await _executeSchema()).errors)\n : await executeBuiltInValidation(_fields, true);\n if (isValid !== _formState.isValid) {\n _subjects.state.next({\n isValid,\n });\n }\n }\n };\n const _updateIsValidating = (value) => _proxyFormState.isValidating &&\n _subjects.state.next({\n isValidating: value,\n });\n const _updateFieldArray = (name, values = [], method, args, shouldSetValues = true, shouldUpdateFieldsAndState = true) => {\n if (args && method) {\n _state.action = true;\n if (shouldUpdateFieldsAndState && Array.isArray(get(_fields, name))) {\n const fieldValues = method(get(_fields, name), args.argA, args.argB);\n shouldSetValues && set(_fields, name, fieldValues);\n }\n if (shouldUpdateFieldsAndState &&\n Array.isArray(get(_formState.errors, name))) {\n const errors = method(get(_formState.errors, name), args.argA, args.argB);\n shouldSetValues && set(_formState.errors, name, errors);\n unsetEmptyArray(_formState.errors, name);\n }\n if (_proxyFormState.touchedFields &&\n shouldUpdateFieldsAndState &&\n Array.isArray(get(_formState.touchedFields, name))) {\n const touchedFields = method(get(_formState.touchedFields, name), args.argA, args.argB);\n shouldSetValues && set(_formState.touchedFields, name, touchedFields);\n }\n if (_proxyFormState.dirtyFields) {\n _formState.dirtyFields = getDirtyFields(_defaultValues, _formValues);\n }\n _subjects.state.next({\n name,\n isDirty: _getDirty(name, values),\n dirtyFields: _formState.dirtyFields,\n errors: _formState.errors,\n isValid: _formState.isValid,\n });\n }\n else {\n set(_formValues, name, values);\n }\n };\n const updateErrors = (name, error) => {\n set(_formState.errors, name, error);\n _subjects.state.next({\n errors: _formState.errors,\n });\n };\n const updateValidAndValue = (name, shouldSkipSetValueAs, value, ref) => {\n const field = get(_fields, name);\n if (field) {\n const defaultValue = get(_formValues, name, isUndefined(value) ? get(_defaultValues, name) : value);\n isUndefined(defaultValue) ||\n (ref && ref.defaultChecked) ||\n shouldSkipSetValueAs\n ? set(_formValues, name, shouldSkipSetValueAs ? defaultValue : getFieldValue(field._f))\n : setFieldValue(name, defaultValue);\n _state.mount && _updateValid();\n }\n };\n const updateTouchAndDirty = (name, fieldValue, isBlurEvent, shouldDirty, shouldRender) => {\n let shouldUpdateField = false;\n let isPreviousDirty = false;\n const output = {\n name,\n };\n if (!isBlurEvent || shouldDirty) {\n if (_proxyFormState.isDirty) {\n isPreviousDirty = _formState.isDirty;\n _formState.isDirty = output.isDirty = _getDirty();\n shouldUpdateField = isPreviousDirty !== output.isDirty;\n }\n const isCurrentFieldPristine = deepEqual(get(_defaultValues, name), fieldValue);\n isPreviousDirty = get(_formState.dirtyFields, name);\n isCurrentFieldPristine\n ? unset(_formState.dirtyFields, name)\n : set(_formState.dirtyFields, name, true);\n output.dirtyFields = _formState.dirtyFields;\n shouldUpdateField =\n shouldUpdateField ||\n (_proxyFormState.dirtyFields &&\n isPreviousDirty !== !isCurrentFieldPristine);\n }\n if (isBlurEvent) {\n const isPreviousFieldTouched = get(_formState.touchedFields, name);\n if (!isPreviousFieldTouched) {\n set(_formState.touchedFields, name, isBlurEvent);\n output.touchedFields = _formState.touchedFields;\n shouldUpdateField =\n shouldUpdateField ||\n (_proxyFormState.touchedFields &&\n isPreviousFieldTouched !== isBlurEvent);\n }\n }\n shouldUpdateField && shouldRender && _subjects.state.next(output);\n return shouldUpdateField ? output : {};\n };\n const shouldRenderByError = (name, isValid, error, fieldState) => {\n const previousFieldError = get(_formState.errors, name);\n const shouldUpdateValid = _proxyFormState.isValid &&\n isBoolean(isValid) &&\n _formState.isValid !== isValid;\n if (props.delayError && error) {\n delayErrorCallback = debounce(() => updateErrors(name, error));\n delayErrorCallback(props.delayError);\n }\n else {\n clearTimeout(timer);\n delayErrorCallback = null;\n error\n ? set(_formState.errors, name, error)\n : unset(_formState.errors, name);\n }\n if ((error ? !deepEqual(previousFieldError, error) : previousFieldError) ||\n !isEmptyObject(fieldState) ||\n shouldUpdateValid) {\n const updatedFormState = {\n ...fieldState,\n ...(shouldUpdateValid && isBoolean(isValid) ? { isValid } : {}),\n errors: _formState.errors,\n name,\n };\n _formState = {\n ..._formState,\n ...updatedFormState,\n };\n _subjects.state.next(updatedFormState);\n }\n _updateIsValidating(false);\n };\n const _executeSchema = async (name) => _options.resolver(_formValues, _options.context, getResolverOptions(name || _names.mount, _fields, _options.criteriaMode, _options.shouldUseNativeValidation));\n const executeSchemaAndUpdateState = async (names) => {\n const { errors } = await _executeSchema(names);\n if (names) {\n for (const name of names) {\n const error = get(errors, name);\n error\n ? set(_formState.errors, name, error)\n : unset(_formState.errors, name);\n }\n }\n else {\n _formState.errors = errors;\n }\n return errors;\n };\n const executeBuiltInValidation = async (fields, shouldOnlyCheckValid, context = {\n valid: true,\n }) => {\n for (const name in fields) {\n const field = fields[name];\n if (field) {\n const { _f, ...fieldValue } = field;\n if (_f) {\n const isFieldArrayRoot = _names.array.has(_f.name);\n const fieldError = await validateField(field, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation && !shouldOnlyCheckValid, isFieldArrayRoot);\n if (fieldError[_f.name]) {\n context.valid = false;\n if (shouldOnlyCheckValid) {\n break;\n }\n }\n !shouldOnlyCheckValid &&\n (get(fieldError, _f.name)\n ? isFieldArrayRoot\n ? updateFieldArrayRootError(_formState.errors, fieldError, _f.name)\n : set(_formState.errors, _f.name, fieldError[_f.name])\n : unset(_formState.errors, _f.name));\n }\n fieldValue &&\n (await executeBuiltInValidation(fieldValue, shouldOnlyCheckValid, context));\n }\n }\n return context.valid;\n };\n const _removeUnmounted = () => {\n for (const name of _names.unMount) {\n const field = get(_fields, name);\n field &&\n (field._f.refs\n ? field._f.refs.every((ref) => !live(ref))\n : !live(field._f.ref)) &&\n unregister(name);\n }\n _names.unMount = new Set();\n };\n const _getDirty = (name, data) => (name && data && set(_formValues, name, data),\n !deepEqual(getValues(), _defaultValues));\n const _getWatch = (names, defaultValue, isGlobal) => generateWatchOutput(names, _names, {\n ...(_state.mount\n ? _formValues\n : isUndefined(defaultValue)\n ? _defaultValues\n : isString(names)\n ? { [names]: defaultValue }\n : defaultValue),\n }, isGlobal, defaultValue);\n const _getFieldArray = (name) => compact(get(_state.mount ? _formValues : _defaultValues, name, props.shouldUnregister ? get(_defaultValues, name, []) : []));\n const setFieldValue = (name, value, options = {}) => {\n const field = get(_fields, name);\n let fieldValue = value;\n if (field) {\n const fieldReference = field._f;\n if (fieldReference) {\n !fieldReference.disabled &&\n set(_formValues, name, getFieldValueAs(value, fieldReference));\n fieldValue =\n isHTMLElement(fieldReference.ref) && isNullOrUndefined(value)\n ? ''\n : value;\n if (isMultipleSelect(fieldReference.ref)) {\n [...fieldReference.ref.options].forEach((optionRef) => (optionRef.selected = fieldValue.includes(optionRef.value)));\n }\n else if (fieldReference.refs) {\n if (isCheckBoxInput(fieldReference.ref)) {\n fieldReference.refs.length > 1\n ? fieldReference.refs.forEach((checkboxRef) => (!checkboxRef.defaultChecked || !checkboxRef.disabled) &&\n (checkboxRef.checked = Array.isArray(fieldValue)\n ? !!fieldValue.find((data) => data === checkboxRef.value)\n : fieldValue === checkboxRef.value))\n : fieldReference.refs[0] &&\n (fieldReference.refs[0].checked = !!fieldValue);\n }\n else {\n fieldReference.refs.forEach((radioRef) => (radioRef.checked = radioRef.value === fieldValue));\n }\n }\n else if (isFileInput(fieldReference.ref)) {\n fieldReference.ref.value = '';\n }\n else {\n fieldReference.ref.value = fieldValue;\n if (!fieldReference.ref.type) {\n _subjects.values.next({\n name,\n values: { ..._formValues },\n });\n }\n }\n }\n }\n (options.shouldDirty || options.shouldTouch) &&\n updateTouchAndDirty(name, fieldValue, options.shouldTouch, options.shouldDirty, true);\n options.shouldValidate && trigger(name);\n };\n const setValues = (name, value, options) => {\n for (const fieldKey in value) {\n const fieldValue = value[fieldKey];\n const fieldName = `${name}.${fieldKey}`;\n const field = get(_fields, fieldName);\n (_names.array.has(name) ||\n !isPrimitive(fieldValue) ||\n (field && !field._f)) &&\n !isDateObject(fieldValue)\n ? setValues(fieldName, fieldValue, options)\n : setFieldValue(fieldName, fieldValue, options);\n }\n };\n const setValue = (name, value, options = {}) => {\n const field = get(_fields, name);\n const isFieldArray = _names.array.has(name);\n const cloneValue = cloneObject(value);\n set(_formValues, name, cloneValue);\n if (isFieldArray) {\n _subjects.array.next({\n name,\n values: { ..._formValues },\n });\n if ((_proxyFormState.isDirty || _proxyFormState.dirtyFields) &&\n options.shouldDirty) {\n _subjects.state.next({\n name,\n dirtyFields: getDirtyFields(_defaultValues, _formValues),\n isDirty: _getDirty(name, cloneValue),\n });\n }\n }\n else {\n field && !field._f && !isNullOrUndefined(cloneValue)\n ? setValues(name, cloneValue, options)\n : setFieldValue(name, cloneValue, options);\n }\n isWatched(name, _names) && _subjects.state.next({ ..._formState });\n _subjects.values.next({\n name,\n values: { ..._formValues },\n });\n !_state.mount && flushRootRender();\n };\n const onChange = async (event) => {\n const target = event.target;\n let name = target.name;\n let isFieldValueUpdated = true;\n const field = get(_fields, name);\n const getCurrentFieldValue = () => target.type ? getFieldValue(field._f) : getEventValue(event);\n if (field) {\n let error;\n let isValid;\n const fieldValue = getCurrentFieldValue();\n const isBlurEvent = event.type === EVENTS.BLUR || event.type === EVENTS.FOCUS_OUT;\n const shouldSkipValidation = (!hasValidation(field._f) &&\n !_options.resolver &&\n !get(_formState.errors, name) &&\n !field._f.deps) ||\n skipValidation(isBlurEvent, get(_formState.touchedFields, name), _formState.isSubmitted, validationModeAfterSubmit, validationModeBeforeSubmit);\n const watched = isWatched(name, _names, isBlurEvent);\n set(_formValues, name, fieldValue);\n if (isBlurEvent) {\n field._f.onBlur && field._f.onBlur(event);\n delayErrorCallback && delayErrorCallback(0);\n }\n else if (field._f.onChange) {\n field._f.onChange(event);\n }\n const fieldState = updateTouchAndDirty(name, fieldValue, isBlurEvent, false);\n const shouldRender = !isEmptyObject(fieldState) || watched;\n !isBlurEvent &&\n _subjects.values.next({\n name,\n type: event.type,\n values: { ..._formValues },\n });\n if (shouldSkipValidation) {\n _proxyFormState.isValid && _updateValid();\n return (shouldRender &&\n _subjects.state.next({ name, ...(watched ? {} : fieldState) }));\n }\n !isBlurEvent && watched && _subjects.state.next({ ..._formState });\n _updateIsValidating(true);\n if (_options.resolver) {\n const { errors } = await _executeSchema([name]);\n const previousErrorLookupResult = schemaErrorLookup(_formState.errors, _fields, name);\n const errorLookupResult = schemaErrorLookup(errors, _fields, previousErrorLookupResult.name || name);\n error = errorLookupResult.error;\n name = errorLookupResult.name;\n isValid = isEmptyObject(errors);\n }\n else {\n error = (await validateField(field, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation))[name];\n isFieldValueUpdated =\n Number.isNaN(fieldValue) ||\n fieldValue === get(_formValues, name, fieldValue);\n if (isFieldValueUpdated) {\n if (error) {\n isValid = false;\n }\n else if (_proxyFormState.isValid) {\n isValid = await executeBuiltInValidation(_fields, true);\n }\n }\n }\n if (isFieldValueUpdated) {\n field._f.deps &&\n trigger(field._f.deps);\n shouldRenderByError(name, isValid, error, fieldState);\n }\n }\n };\n const trigger = async (name, options = {}) => {\n let isValid;\n let validationResult;\n const fieldNames = convertToArrayPayload(name);\n _updateIsValidating(true);\n if (_options.resolver) {\n const errors = await executeSchemaAndUpdateState(isUndefined(name) ? name : fieldNames);\n isValid = isEmptyObject(errors);\n validationResult = name\n ? !fieldNames.some((name) => get(errors, name))\n : isValid;\n }\n else if (name) {\n validationResult = (await Promise.all(fieldNames.map(async (fieldName) => {\n const field = get(_fields, fieldName);\n return await executeBuiltInValidation(field && field._f ? { [fieldName]: field } : field);\n }))).every(Boolean);\n !(!validationResult && !_formState.isValid) && _updateValid();\n }\n else {\n validationResult = isValid = await executeBuiltInValidation(_fields);\n }\n _subjects.state.next({\n ...(!isString(name) ||\n (_proxyFormState.isValid && isValid !== _formState.isValid)\n ? {}\n : { name }),\n ...(_options.resolver || !name ? { isValid } : {}),\n errors: _formState.errors,\n isValidating: false,\n });\n options.shouldFocus &&\n !validationResult &&\n focusFieldBy(_fields, (key) => key && get(_formState.errors, key), name ? fieldNames : _names.mount);\n return validationResult;\n };\n const getValues = (fieldNames) => {\n const values = {\n ..._defaultValues,\n ...(_state.mount ? _formValues : {}),\n };\n return isUndefined(fieldNames)\n ? values\n : isString(fieldNames)\n ? get(values, fieldNames)\n : fieldNames.map((name) => get(values, name));\n };\n const getFieldState = (name, formState) => ({\n invalid: !!get((formState || _formState).errors, name),\n isDirty: !!get((formState || _formState).dirtyFields, name),\n isTouched: !!get((formState || _formState).touchedFields, name),\n error: get((formState || _formState).errors, name),\n });\n const clearErrors = (name) => {\n name &&\n convertToArrayPayload(name).forEach((inputName) => unset(_formState.errors, inputName));\n _subjects.state.next({\n errors: name ? _formState.errors : {},\n });\n };\n const setError = (name, error, options) => {\n const ref = (get(_fields, name, { _f: {} })._f || {}).ref;\n set(_formState.errors, name, {\n ...error,\n ref,\n });\n _subjects.state.next({\n name,\n errors: _formState.errors,\n isValid: false,\n });\n options && options.shouldFocus && ref && ref.focus && ref.focus();\n };\n const watch = (name, defaultValue) => isFunction(name)\n ? _subjects.values.subscribe({\n next: (payload) => name(_getWatch(undefined, defaultValue), payload),\n })\n : _getWatch(name, defaultValue, true);\n const unregister = (name, options = {}) => {\n for (const fieldName of name ? convertToArrayPayload(name) : _names.mount) {\n _names.mount.delete(fieldName);\n _names.array.delete(fieldName);\n if (!options.keepValue) {\n unset(_fields, fieldName);\n unset(_formValues, fieldName);\n }\n !options.keepError && unset(_formState.errors, fieldName);\n !options.keepDirty && unset(_formState.dirtyFields, fieldName);\n !options.keepTouched && unset(_formState.touchedFields, fieldName);\n !_options.shouldUnregister &&\n !options.keepDefaultValue &&\n unset(_defaultValues, fieldName);\n }\n _subjects.values.next({\n values: { ..._formValues },\n });\n _subjects.state.next({\n ..._formState,\n ...(!options.keepDirty ? {} : { isDirty: _getDirty() }),\n });\n !options.keepIsValid && _updateValid();\n };\n const _updateDisabledField = ({ disabled, name, field, fields, }) => {\n if (isBoolean(disabled)) {\n const value = disabled\n ? undefined\n : get(_formValues, name, getFieldValue(field ? field._f : get(fields, name)._f));\n set(_formValues, name, value);\n updateTouchAndDirty(name, value, false, false, true);\n }\n };\n const register = (name, options = {}) => {\n let field = get(_fields, name);\n const disabledIsDefined = isBoolean(options.disabled);\n set(_fields, name, {\n ...(field || {}),\n _f: {\n ...(field && field._f ? field._f : { ref: { name } }),\n name,\n mount: true,\n ...options,\n },\n });\n _names.mount.add(name);\n if (field) {\n _updateDisabledField({\n field,\n disabled: options.disabled,\n name,\n });\n }\n else {\n updateValidAndValue(name, true, options.value);\n }\n return {\n ...(disabledIsDefined ? { disabled: options.disabled } : {}),\n ...(_options.progressive\n ? {\n required: !!options.required,\n min: getRuleValue(options.min),\n max: getRuleValue(options.max),\n minLength: getRuleValue(options.minLength),\n maxLength: getRuleValue(options.maxLength),\n pattern: getRuleValue(options.pattern),\n }\n : {}),\n name,\n onChange,\n onBlur: onChange,\n ref: (ref) => {\n if (ref) {\n register(name, options);\n field = get(_fields, name);\n const fieldRef = isUndefined(ref.value)\n ? ref.querySelectorAll\n ? ref.querySelectorAll('input,select,textarea')[0] || ref\n : ref\n : ref;\n const radioOrCheckbox = isRadioOrCheckbox(fieldRef);\n const refs = field._f.refs || [];\n if (radioOrCheckbox\n ? refs.find((option) => option === fieldRef)\n : fieldRef === field._f.ref) {\n return;\n }\n set(_fields, name, {\n _f: {\n ...field._f,\n ...(radioOrCheckbox\n ? {\n refs: [\n ...refs.filter(live),\n fieldRef,\n ...(Array.isArray(get(_defaultValues, name)) ? [{}] : []),\n ],\n ref: { type: fieldRef.type, name },\n }\n : { ref: fieldRef }),\n },\n });\n updateValidAndValue(name, false, undefined, fieldRef);\n }\n else {\n field = get(_fields, name, {});\n if (field._f) {\n field._f.mount = false;\n }\n (_options.shouldUnregister || options.shouldUnregister) &&\n !(isNameInFieldArray(_names.array, name) && _state.action) &&\n _names.unMount.add(name);\n }\n },\n };\n };\n const _focusError = () => _options.shouldFocusError &&\n focusFieldBy(_fields, (key) => key && get(_formState.errors, key), _names.mount);\n const handleSubmit = (onValid, onInvalid) => async (e) => {\n if (e) {\n e.preventDefault && e.preventDefault();\n e.persist && e.persist();\n }\n let fieldValues = cloneObject(_formValues);\n _subjects.state.next({\n isSubmitting: true,\n });\n if (_options.resolver) {\n const { errors, values } = await _executeSchema();\n _formState.errors = errors;\n fieldValues = values;\n }\n else {\n await executeBuiltInValidation(_fields);\n }\n unset(_formState.errors, 'root');\n if (isEmptyObject(_formState.errors)) {\n _subjects.state.next({\n errors: {},\n });\n await onValid(fieldValues, e);\n }\n else {\n if (onInvalid) {\n await onInvalid({ ..._formState.errors }, e);\n }\n _focusError();\n setTimeout(_focusError);\n }\n _subjects.state.next({\n isSubmitted: true,\n isSubmitting: false,\n isSubmitSuccessful: isEmptyObject(_formState.errors),\n submitCount: _formState.submitCount + 1,\n errors: _formState.errors,\n });\n };\n const resetField = (name, options = {}) => {\n if (get(_fields, name)) {\n if (isUndefined(options.defaultValue)) {\n setValue(name, get(_defaultValues, name));\n }\n else {\n setValue(name, options.defaultValue);\n set(_defaultValues, name, options.defaultValue);\n }\n if (!options.keepTouched) {\n unset(_formState.touchedFields, name);\n }\n if (!options.keepDirty) {\n unset(_formState.dirtyFields, name);\n _formState.isDirty = options.defaultValue\n ? _getDirty(name, get(_defaultValues, name))\n : _getDirty();\n }\n if (!options.keepError) {\n unset(_formState.errors, name);\n _proxyFormState.isValid && _updateValid();\n }\n _subjects.state.next({ ..._formState });\n }\n };\n const _reset = (formValues, keepStateOptions = {}) => {\n const updatedValues = formValues ? cloneObject(formValues) : _defaultValues;\n const cloneUpdatedValues = cloneObject(updatedValues);\n const values = formValues && !isEmptyObject(formValues)\n ? cloneUpdatedValues\n : _defaultValues;\n if (!keepStateOptions.keepDefaultValues) {\n _defaultValues = updatedValues;\n }\n if (!keepStateOptions.keepValues) {\n if (keepStateOptions.keepDirtyValues || shouldCaptureDirtyFields) {\n for (const fieldName of _names.mount) {\n get(_formState.dirtyFields, fieldName)\n ? set(values, fieldName, get(_formValues, fieldName))\n : setValue(fieldName, get(values, fieldName));\n }\n }\n else {\n if (isWeb && isUndefined(formValues)) {\n for (const name of _names.mount) {\n const field = get(_fields, name);\n if (field && field._f) {\n const fieldReference = Array.isArray(field._f.refs)\n ? field._f.refs[0]\n : field._f.ref;\n if (isHTMLElement(fieldReference)) {\n const form = fieldReference.closest('form');\n if (form) {\n form.reset();\n break;\n }\n }\n }\n }\n }\n _fields = {};\n }\n _formValues = props.shouldUnregister\n ? keepStateOptions.keepDefaultValues\n ? cloneObject(_defaultValues)\n : {}\n : cloneObject(values);\n _subjects.array.next({\n values: { ...values },\n });\n _subjects.values.next({\n values: { ...values },\n });\n }\n _names = {\n mount: new Set(),\n unMount: new Set(),\n array: new Set(),\n watch: new Set(),\n watchAll: false,\n focus: '',\n };\n !_state.mount && flushRootRender();\n _state.mount = !_proxyFormState.isValid || !!keepStateOptions.keepIsValid;\n _state.watch = !!props.shouldUnregister;\n _subjects.state.next({\n submitCount: keepStateOptions.keepSubmitCount\n ? _formState.submitCount\n : 0,\n isDirty: keepStateOptions.keepDirty\n ? _formState.isDirty\n : !!(keepStateOptions.keepDefaultValues &&\n !deepEqual(formValues, _defaultValues)),\n isSubmitted: keepStateOptions.keepIsSubmitted\n ? _formState.isSubmitted\n : false,\n dirtyFields: keepStateOptions.keepDirtyValues\n ? _formState.dirtyFields\n : keepStateOptions.keepDefaultValues && formValues\n ? getDirtyFields(_defaultValues, formValues)\n : {},\n touchedFields: keepStateOptions.keepTouched\n ? _formState.touchedFields\n : {},\n errors: keepStateOptions.keepErrors ? _formState.errors : {},\n isSubmitSuccessful: keepStateOptions.keepIsSubmitSuccessful\n ? _formState.isSubmitSuccessful\n : false,\n isSubmitting: false,\n });\n };\n const reset = (formValues, keepStateOptions) => _reset(isFunction(formValues)\n ? formValues(_formValues)\n : formValues, keepStateOptions);\n const setFocus = (name, options = {}) => {\n const field = get(_fields, name);\n const fieldReference = field && field._f;\n if (fieldReference) {\n const fieldRef = fieldReference.refs\n ? fieldReference.refs[0]\n : fieldReference.ref;\n if (fieldRef.focus) {\n fieldRef.focus();\n options.shouldSelect && fieldRef.select();\n }\n }\n };\n const _updateFormState = (updatedFormState) => {\n _formState = {\n ..._formState,\n ...updatedFormState,\n };\n };\n const _resetDefaultValues = () => isFunction(_options.defaultValues) &&\n _options.defaultValues().then((values) => {\n reset(values, _options.resetOptions);\n _subjects.state.next({\n isLoading: false,\n });\n });\n return {\n control: {\n register,\n unregister,\n getFieldState,\n handleSubmit,\n setError,\n _executeSchema,\n _getWatch,\n _getDirty,\n _updateValid,\n _removeUnmounted,\n _updateFieldArray,\n _updateDisabledField,\n _getFieldArray,\n _reset,\n _resetDefaultValues,\n _updateFormState,\n _subjects,\n _proxyFormState,\n get _fields() {\n return _fields;\n },\n get _formValues() {\n return _formValues;\n },\n get _state() {\n return _state;\n },\n set _state(value) {\n _state = value;\n },\n get _defaultValues() {\n return _defaultValues;\n },\n get _names() {\n return _names;\n },\n set _names(value) {\n _names = value;\n },\n get _formState() {\n return _formState;\n },\n set _formState(value) {\n _formState = value;\n },\n get _options() {\n return _options;\n },\n set _options(value) {\n _options = {\n ..._options,\n ...value,\n };\n },\n },\n trigger,\n register,\n handleSubmit,\n watch,\n setValue,\n getValues,\n reset,\n resetField,\n clearErrors,\n unregister,\n setError,\n setFocus,\n getFieldState,\n };\n}\n\n/**\n * Custom hook to manage the entire form.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useform) • [Demo](https://codesandbox.io/s/react-hook-form-get-started-ts-5ksmm) • [Video](https://www.youtube.com/watch?v=RkXv4AXXC_4)\n *\n * @param props - form configuration and validation parameters.\n *\n * @returns methods - individual functions to manage the form state. {@link UseFormReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, handleSubmit, watch, formState: { errors } } = useForm();\n * const onSubmit = data => console.log(data);\n *\n * console.log(watch(\"example\"));\n *\n * return (\n * <form onSubmit={handleSubmit(onSubmit)}>\n * <input defaultValue=\"test\" {...register(\"example\")} />\n * <input {...register(\"exampleRequired\", { required: true })} />\n * {errors.exampleRequired && <span>This field is required</span>}\n * <button>Submit</button>\n * </form>\n * );\n * }\n * ```\n */\nfunction useForm(props = {}) {\n const _formControl = React.useRef();\n const _values = React.useRef();\n const [formState, updateFormState] = React.useState({\n isDirty: false,\n isValidating: false,\n isLoading: isFunction(props.defaultValues),\n isSubmitted: false,\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n submitCount: 0,\n dirtyFields: {},\n touchedFields: {},\n errors: {},\n defaultValues: isFunction(props.defaultValues)\n ? undefined\n : props.defaultValues,\n });\n if (!_formControl.current) {\n _formControl.current = {\n ...createFormControl(props, () => updateFormState((formState) => ({ ...formState }))),\n formState,\n };\n }\n const control = _formControl.current.control;\n control._options = props;\n useSubscribe({\n subject: control._subjects.state,\n next: (value) => {\n if (shouldRenderFormState(value, control._proxyFormState, control._updateFormState, true)) {\n updateFormState({ ...control._formState });\n }\n },\n });\n React.useEffect(() => {\n if (props.values && !deepEqual(props.values, _values.current)) {\n control._reset(props.values, control._options.resetOptions);\n _values.current = props.values;\n }\n else {\n control._resetDefaultValues();\n }\n }, [props.values, control]);\n React.useEffect(() => {\n if (!control._state.mount) {\n control._updateValid();\n control._state.mount = true;\n }\n if (control._state.watch) {\n control._state.watch = false;\n control._subjects.state.next({ ...control._formState });\n }\n control._removeUnmounted();\n });\n _formControl.current.formState = getProxyFormState(formState, control);\n return _formControl.current;\n}\n\nexport { Controller, Form, FormProvider, appendErrors, get, set, useController, useFieldArray, useForm, useFormContext, useFormState, useWatch };\n//# sourceMappingURL=index.esm.mjs.map\n","import { jsx as _jsx, Fragment as _Fragment } from \"react/jsx-runtime\";\n// useForm.tsx\nimport { useState } from \"react\";\nimport styles from \"./style.module.css\";\nimport { useForm as useHookForm, } from \"react-hook-form\";\nconst useForm = () => {\n const [globalError, setGlobalError] = useState();\n const form = useHookForm({\n reValidateMode: \"onChange\",\n });\n const register = (name, options) => {\n const inputRegister = form.register(name, options);\n const onChange = (e) => {\n setGlobalError(null);\n form.clearErrors(name);\n return inputRegister.onChange(e);\n };\n const errors = form?.formState.errors;\n const formvalue = form.watch(name);\n return {\n ...inputRegister,\n onChange,\n formvalue,\n error: errors?.[name]?.message?.toString(),\n };\n };\n const setErrors = (e) => {\n if (e.errors) {\n Object.keys(e.errors).forEach((field) => form.setError(field, { message: e.errors?.[field]?.[0] }));\n }\n else {\n setGlobalError(e);\n }\n };\n const GlobalError = () => (_jsx(_Fragment, { children: globalError && !globalError.errors && _jsx(\"div\", { className: styles[\"global-error\"], children: globalError.message }) }));\n return {\n ...form,\n register,\n GlobalError,\n setErrors,\n };\n};\nexport const validate = {\n email: {\n pattern: {\n value: /\\S+@\\S+\\.\\S+/,\n message: \"Неверный адрес электронной почты\",\n },\n },\n};\nexport default useForm;\n","\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../../node_modules/sass-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../../node_modules/sass-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.scss\";\n export default content && content.locals ? content.locals : undefined;\n","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import Loading from \"./Loading\";\nexport default Loading;\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport styles from './style.module.scss';\n;\nconst Loading = ({ color = \"primary\", ...props }) => {\n const classes = ['ui-loading'];\n classes.push(styles['loading']);\n if (color)\n classes.push(styles[color], 'ui-loading-' + color);\n return (_jsxs(\"div\", { ...props, className: classes.join(' '), children: [_jsx(\"div\", { className: styles.dot }), _jsx(\"div\", { className: styles.dot }), _jsx(\"div\", { className: styles.dot }), _jsx(\"div\", { className: styles.dot })] }));\n};\nexport default Loading;\n","import Element from \"./Element\";\nexport default Element;\n","import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { useState, useEffect, cloneElement } from \"react\";\nimport styles from \"./style.module.scss\";\nimport Loading from \"../../Loading\";\nconst Element = ({ children, beforeElement, afterElement, error, placeholder, styleContainer, classNameContainer, hiddenContainer, formvalue, wait, ...props }) => {\n const [currentError, setCurrentError] = useState('');\n useEffect(() => {\n setCurrentError(error ?? '');\n }, [error]);\n const classes = ['ui-form-element-container'];\n classes.push(styles['container']);\n if (currentError)\n classes.push(styles['error']);\n if (props.disabled)\n classes.push(styles['disabled']);\n if (hiddenContainer)\n classes.push(styles['hidden']);\n if (classNameContainer)\n classes.push(classNameContainer);\n return (_jsxs(_Fragment, { children: [_jsxs(\"label\", { className: classes.join(' '), style: styleContainer, children: [beforeElement ? cloneElement(beforeElement, { key: 'ui-before-element' }) : null, _jsxs(\"div\", { className: 'ui-form-element ' + styles['element'], children: [typeof children === 'function' ? children(props) : null, placeholder && wait ? '' : _jsx(\"span\", { className: 'ui-form-element-placeholder ' + styles['placeholder'], children: placeholder }), wait && (_jsx(Loading, {}))] }), afterElement ? cloneElement(afterElement, { key: 'ui-after-element' }) : null] }), currentError && _jsx(\"div\", { className: 'ui-form-error ' + styles['error'], children: currentError })] }));\n};\nexport default Element;\n","import Form from \"./Form\";\nimport useForm from \"./useForm\";\nimport Element from \"./Element\";\nexport { useForm, Element as FormElement };\nexport default Form;\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport styles from './style.module.css';\nimport Spinner from '../Spinner';\nimport Progress from '../Progress';\nconst Form = ({ children, wait, progress, progressRadius = true, className, onSubmit, ...props }) => {\n const submit = (e) => {\n e.preventDefault();\n if (typeof onSubmit === 'function') {\n onSubmit(e);\n }\n };\n const classes = [];\n classes.push(styles['container']);\n if (wait)\n classes.push(styles['wait']);\n if (className)\n classes.push(className);\n return (_jsxs(\"form\", { ...props, onSubmit: submit, className: classes.join(' '), children: [children, _jsx(\"div\", { className: styles['wait-indicator'], children: typeof progress === 'number' ? _jsx(Progress, { radius: progressRadius, value: progress }) : _jsx(Spinner, {}) })] }));\n};\nexport default Form;\n","import Input from \"./Input\";\nexport default Input;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef, useState, useEffect } from \"react\";\nimport Element from \"../Form/Element\";\nconst Input = forwardRef(({ onChange, onInput, onChangeText, wait, disabled, formvalue, children, ...props }, ref) => {\n const [currentValue, setCurrentValue] = useState('');\n const handleChange = (e) => {\n if (typeof onChange === 'function') {\n onChange(e);\n }\n if (typeof onChangeText === 'function') {\n onChangeText(e.target.value);\n }\n };\n const handleInput = (e) => {\n if (disabled || wait)\n return;\n if (typeof onInput === 'function') {\n onInput(e);\n }\n setCurrentValue(e.target.value);\n };\n useEffect(() => {\n const value = props.value ?? formvalue;\n setCurrentValue(value ? String(value) : '');\n }, [props.value, formvalue]);\n return (_jsx(Element, { ...props, wait: wait, children: (props) => _jsx(\"input\", { ...props, placeholder: \"\", onChange: handleChange, disabled: disabled || wait, value: wait ? '' : currentValue, onInput: handleInput, ref: ref }) }));\n});\nexport default Input;\n","import TextArea from \"./TextArea\";\nexport default TextArea;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef, useRef, useEffect, useState, useImperativeHandle, } from \"react\";\nimport Element from \"../Form/Element\";\nconst TextArea = forwardRef(({ onChange, onInput, onChangeText, formvalue, wait, ...props }, ref) => {\n const textareaRef = useRef(null);\n const [currentValue, setCurrentValue] = useState(props.value ?? formvalue ?? \"\");\n const handleChange = (e) => {\n if (typeof onChange === \"function\") {\n onChange(e);\n }\n if (typeof onChangeText === \"function\") {\n onChangeText(e.target.value);\n }\n };\n const handleInput = (e) => {\n if (typeof onInput === \"function\") {\n onInput(e);\n }\n setCurrentValue(e.target.value);\n };\n useEffect(() => {\n const textarea = textareaRef.current;\n if (!textarea)\n return;\n const currentHeight = textarea.offsetHeight;\n textarea.style.height = \"auto\";\n const scrollHeight = textarea.scrollHeight;\n const newHeight = Math.max(scrollHeight, 50);\n textarea.style.height = `${Math.max(newHeight, currentHeight)}px`;\n }, [currentValue]);\n useEffect(() => {\n setCurrentValue(props.value ?? formvalue ?? \"\");\n }, [props.value, formvalue]);\n useImperativeHandle(ref, () => textareaRef.current);\n const value = wait ? \"\" : currentValue;\n return (_jsx(Element, { ...props, wait: wait, children: (props) => (_jsx(\"textarea\", { ...props, disabled: wait, placeholder: props.placeholder ?? \"\", value: value, onChange: handleChange, onInput: handleInput, ref: textareaRef })) }));\n});\nexport default TextArea;\n","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import FileInput from \"./FileInput\";\nexport default FileInput;\n","import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useCallback, useRef } from 'react';\nimport Element from '../Form/Element';\nimport styles from './style.module.scss';\nconst FileInput = ({ onChange, onChangeFiles, accept, multiple, wait, children, className, icon, ...props }) => {\n const fileInputRef = useRef(null);\n const fileInputClasses = `\r\n ${styles['file-btn']}\r\n ${icon && !wait ? styles.icon : ''}\r\n `.trim();\n const handleChange = useCallback((e) => {\n const files = e.target.files;\n if (typeof onChange === \"function\") {\n onChange(e);\n }\n if (typeof onChangeFiles === \"function\") {\n onChangeFiles(files);\n }\n }, [onChange, onChangeFiles]);\n return (_jsx(Element, { ...props, wait: wait, children: (props) => _jsxs(_Fragment, { children: [_jsx(\"input\", { type: 'file', ref: fileInputRef, onChange: handleChange, accept: accept, multiple: multiple, style: { display: \"none\" }, ...props }), _jsx(\"div\", { className: `ui-file-uploader ${fileInputClasses} ${className || \"\"}`, children: !wait && (children || \"Выбрать файл\") })] }) }));\n};\nexport default FileInput;\n","import File from \"./File\";\nexport default File;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useEffect, useRef } from \"react\";\n;\nconst File = ({ onChange, children, multiple, accept, ...props }) => {\n const selector = useRef(null);\n const handleChange = (e) => {\n const target = e.target;\n if (target.files) {\n for (const file of target.files) {\n const reader = new FileReader();\n reader.onload = (evt) => {\n const data = evt.target?.result?.toString().split(';base64,');\n const mime = (data?.[0].replace('data:', '') ?? '');\n const contentData = data?.[1] ?? '';\n if (typeof onChange === 'function') {\n selector.current.value = '';\n onChange({\n name: file.name,\n type: file.type,\n size: file.size,\n mime: mime,\n data: contentData,\n base64: evt.target?.result\n });\n }\n };\n reader.readAsDataURL(file);\n }\n }\n };\n const handleDialog = (e) => {\n if (props.disabled)\n return;\n selector.current.click();\n e.preventDefault();\n };\n const mount = () => {\n const fileSelector = document.createElement('input');\n fileSelector.setAttribute('type', 'file');\n fileSelector.onchange = handleChange;\n if (accept && accept.length > 0) {\n fileSelector.setAttribute('accept', accept.join(','));\n }\n if (multiple) {\n fileSelector.setAttribute('multiple', 'multiple');\n }\n return fileSelector;\n };\n useEffect(() => {\n selector.current = mount();\n return () => {\n selector.current?.remove();\n };\n }, []);\n return (_jsx(\"div\", { ...props, onClick: handleDialog, children: children }));\n};\nexport default File;\n","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import Button from \"./Button\";\nexport default Button;\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport styles from \"./style.module.scss\";\nimport Loading from \"../Loading\";\nconst Button = ({ children, className, classNameContainer, styleContainer, wait = false, variant, size = 'normal', icon, ...props }) => {\n const buttonClasses = `\r\n\t\t${styles.btn}\r\n\t\t${variant && styles[`btn-${variant}`]}\r\n\t\t${size && styles[`${size}-btn`]}\r\n\t\t${icon && !wait ? styles[`icon-${icon}`] : ''}\r\n\t\t${className || ''}\r\n\t`\n .replace(/\\s+/g, ' ')\n .trim();\n const containerClasses = ['ui-button-container'];\n containerClasses.push(styles['container']);\n if (classNameContainer)\n containerClasses.push(classNameContainer);\n return (_jsxs(\"div\", { className: containerClasses.join(' '), style: styleContainer, children: [_jsx(\"button\", { ...props, className: buttonClasses, children: !wait && children }), wait && (_jsx(\"div\", { className: 'ui-button-spinner ' + styles['wait-indicator'] + (wait ? ' ' + styles['active'] : ''), children: _jsx(Loading, { color: variant }) }))] }));\n};\nexport default Button;\n","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useEffect, useRef, useState } from \"react\";\nimport Spinner from \"../Spinner\";\nimport styles from \"./style.module.css\";\n;\nconst Image = ({ onChange, onClick, onId, onRemove, ...props }) => {\n const { base64, src } = props;\n const [wait, setWait] = useState(true);\n const confirmRemove = useRef(false);\n const currentId = useRef();\n const setId = (id) => {\n currentId.current = id;\n if (typeof onId !== 'function')\n return;\n onId(id);\n };\n const handleClick = () => {\n if (typeof onClick === 'function') {\n onClick({\n ...props,\n setWait,\n setId,\n id: currentId.current\n });\n }\n };\n const handleLoad = () => {\n setWait(false);\n };\n const handleRemove = (e) => {\n if (!e.target)\n return;\n const element = e.target;\n const remove = () => {\n if (!confirmRemove.current)\n return;\n confirmRemove.current = false;\n element.blur();\n if (typeof onRemove === 'function') {\n onRemove();\n }\n };\n remove();\n confirmRemove.current = true;\n };\n const handleCancelRemove = () => {\n confirmRemove.current = false;\n };\n useEffect(() => {\n if (typeof onChange !== 'function' || src)\n return;\n onChange({\n ...props,\n setWait,\n setId,\n id: currentId.current\n });\n }, []);\n return (_jsxs(\"span\", { className: styles['image'], onClick: handleClick, children: [_jsx(\"span\", { className: styles['close'], onClick: handleRemove, onBlur: handleCancelRemove, tabIndex: 1 }), _jsx(\"img\", { src: src ?? base64?.toString(), onLoad: handleLoad }), wait && _jsx(\"span\", { className: styles['wait'], children: _jsx(Spinner, {}) })] }));\n};\nexport default Image;\n","import UploadImages from \"./UploadImages\";\nexport default UploadImages;\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useEffect, useState } from \"react\";\nimport File from \"../File\";\nimport styles from \"./style.module.css\";\nimport Image from \"./Image\";\n;\nconst UploadImages = ({ imagesArray, onChange, onChangeArray, onClick }) => {\n const [images, setImages] = useState([]);\n const handleChange = (image) => {\n setImages((images) => [...images, { ...image }]);\n };\n const handleChangeId = (image) => {\n return (id) => {\n setImages((images) => images.map((currentImage) => {\n if (image === currentImage) {\n currentImage.id = id;\n }\n return currentImage;\n }));\n };\n };\n const handleRemove = (image) => {\n return () => setImages((images) => images.filter((currentImage) => currentImage !== image));\n };\n useEffect(() => {\n if (typeof onChangeArray !== 'function')\n return;\n onChangeArray(images);\n }, [images]);\n useEffect(() => {\n if (!imagesArray)\n return;\n setImages(imagesArray);\n }, [imagesArray]);\n return (_jsxs(\"div\", { className: styles['container'], children: [images.map((image, index) => _jsx(Image, { ...image, onChange: onChange, onClick: onClick, onRemove: handleRemove(image), onId: handleChangeId(image) }, (image.name + index))), _jsx(File, { onChange: handleChange, accept: ['image/png'], className: styles['new'], multiple: true })] }));\n};\nexport default UploadImages;\n","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import Checkbox from \"./Checkbox\";\nexport default Checkbox;\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nimport Element from \"../Form/Element\";\nimport styles from \"./style.module.scss\";\nconst Checkbox = forwardRef(({ type = 'checkbox', hiddenContainer = true, placeholder, ...props }, ref) => {\n return (_jsx(Element, { ...props, hiddenContainer: hiddenContainer, children: (props) => (_jsxs(\"div\", { className: 'ui-checkbox-container ' + styles['container'], children: [_jsx(\"input\", { ...props, className: 'ui-checkbox' + (props.className ? ' ' + props.className : ''), type: type, ref: ref }), _jsx(\"span\", { className: 'ui-checkbox-indicator ' + styles['indicator'] }), _jsx(\"span\", { className: 'ui-checkbox-text ' + styles['text'], children: placeholder })] })) }));\n});\nexport default Checkbox;\n","\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../../node_modules/sass-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../../node_modules/sass-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","import Arrow from \"./Arrow\";\nexport default Arrow;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport styles from \"./style.module.css\";\n;\nconst Arrow = ({ className, direction = 'down', ...props }) => {\n const classes = ['ui-component-arrow'];\n classes.push(styles['container']);\n if (direction)\n classes.push(styles[direction]);\n if (className)\n classes.push(className);\n return (_jsx(\"div\", { ...props, className: classes.join(' ') }));\n};\nexport default Arrow;\n","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { forwardRef, createContext, useState, useEffect, useRef, useImperativeHandle } from \"react\";\nimport Element from \"../Form/Element\";\nimport Arrow from \"../Components/Arrow\";\nimport styles from \"./style.module.css\";\nexport const Context = createContext({\n selected: '',\n emptyValue: { current: {} },\n setSelect: (value) => { },\n setSelected: (value) => { },\n setTitle: (title) => { },\n});\n;\nconst Select = forwardRef(({ children, onChangeSelect, value, formvalue, ...props }, ref) => {\n const containerRef = useRef(null);\n const inputRef = useRef(null);\n const emptyValue = useRef(false);\n const [isOpen, setOpen] = useState(false);\n const [selected, setSelected] = useState('');\n const [title, setTitle] = useState();\n const open = () => {\n if (props.disabled)\n return;\n setOpen(true);\n };\n const close = () => {\n setOpen(false);\n };\n const handleClick = () => {\n isOpen ? close() : open();\n };\n const triggerNativeEvent = (value) => {\n const nativeInputValueSetter = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, \"value\")?.set;\n nativeInputValueSetter?.call(inputRef.current, value);\n const event = new Event('input', { bubbles: true });\n inputRef.current.dispatchEvent(event);\n };\n const setSelect = (val) => {\n if (typeof onChangeSelect === 'function') {\n onChangeSelect(val);\n }\n if (typeof value === 'undefined') {\n setSelected(val);\n }\n close();\n };\n const handleInput = (e) => {\n if (props.disabled)\n return;\n if (typeof props.onInput === 'function') {\n props.onInput(e);\n }\n if (typeof props.onChange === 'function') {\n props.onChange(e);\n }\n setSelected(e.target.value);\n };\n useEffect(() => {\n if (!selected)\n return;\n triggerNativeEvent(selected);\n }, [selected]);\n useEffect(() => {\n setSelected(String(value ?? formvalue));\n }, [value, formvalue]);\n useEffect(() => {\n const element = containerRef.current;\n const classList = element.classList;\n if (isOpen) {\n classList.remove(styles['hidden']);\n requestAnimationFrame(() => {\n classList.add(styles['opened']);\n element?.focus();\n });\n }\n else {\n if (classList.contains(styles['opened'])) {\n element.ontransitionend = () => {\n classList.add(styles['hidden']);\n element.ontransitionend = null;\n };\n }\n classList.remove(styles['opened']);\n }\n }, [isOpen]);\n useImperativeHandle(ref, () => inputRef.current, []);\n const classes = [''];\n classes.push(styles['container'], styles['hidden']);\n return (_jsx(Element, { ...props, classNameContainer: styles['container-element'], children: (props) => _jsxs(Context.Provider, { value: {\n selected,\n emptyValue: emptyValue,\n setSelect,\n setSelected,\n setTitle\n }, children: [_jsx(\"input\", { ...props, type: \"hidden\", value: selected, onInput: handleInput, ref: inputRef }), _jsxs(\"div\", { className: classes.join(' '), ref: containerRef, tabIndex: 1, onBlur: close, children: [_jsxs(\"div\", { className: styles['select'], onClick: handleClick, children: [_jsx(\"span\", { className: styles['title'], children: title }), _jsx(Arrow, { className: styles['arrow'] })] }), _jsx(\"ul\", { className: styles['select-list'], children: children })] })] }) }));\n});\nexport default Select;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useContext, useEffect } from \"react\";\nimport { Context } from \"./Select\";\nimport styles from \"./style.module.css\";\n;\nconst Option = ({ children, value, disabled, hidden, onClick, ...props }) => {\n const context = useContext(Context);\n const handleClick = (e) => {\n if (typeof value === 'undefined' || disabled)\n return;\n context.setSelect(value);\n if (typeof onClick === 'function') {\n onClick(e);\n }\n };\n useEffect(() => {\n if (children && (value === context.selected || !context.emptyValue.current)) {\n context.setTitle(children);\n if (!context.emptyValue.current && value) {\n context.setSelected(value);\n }\n context.emptyValue.current = true;\n }\n }, [context.selected]);\n if (hidden)\n return (null);\n const classes = ['ui-select-option'];\n classes.push(styles['option']);\n if (context.selected === value)\n classes.push(styles['active'], 'active');\n if (disabled)\n classes.push(styles['disabled'], 'disabled');\n return (_jsx(\"li\", { ...props, onClick: handleClick, className: classes.join(' '), children: children }));\n};\nexport default Option;\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport styles from \"./style.module.css\";\n;\nconst Optgroup = ({ children, label }) => {\n return (_jsx(\"li\", { children: _jsxs(\"ul\", { className: styles['optgpoup'], children: [label && _jsx(\"li\", { className: styles['label'], children: label }), children] }) }));\n};\nexport default Optgroup;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nimport { default as SelectUI } from \"./Select\";\nimport Option from \"./Option\";\nimport Optgroup from \"./Optgroup\";\n;\nconst Select = {\n ...forwardRef(({ ...args }, ref) => _jsx(SelectUI, { ...args, ref: ref })),\n Option,\n Optgroup\n};\nexport { Option as SelectOption, Optgroup as SelectOptgroup };\nexport default Select;\n","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./style.module.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport styles from \"./style.module.scss\";\nimport { useEffect, useMemo, useRef } from \"react\";\n;\nconst Items = ({ items, isOpen, enableRerenderItems, disabled }) => {\n const listRef = useRef(null);\n const renderItems = useMemo(() => {\n if (enableRerenderItems) {\n return isOpen ? items : null;\n }\n return items;\n }, [enableRerenderItems, items, isOpen]);\n useEffect(() => {\n if (!listRef.current)\n return;\n const screenWidth = window.innerWidth;\n const element = listRef.current.getBoundingClientRect();\n // console.log(element.left)\n if (element.left <= 0) {\n // listRef.current.style.transform = 'translateX(' + Math.abs(element.left) + 'px)';\n }\n }, [isOpen]);\n if (disabled)\n return null;\n return (_jsx(\"ul\", { className: `${styles['dropdown-list']} ui-dropdown-list`, children: renderItems, ref: listRef }));\n};\nexport default Items;\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useRef, useState, useEffect, createContext } from \"react\";\nimport styles from \"./style.module.scss\";\nimport Arrow from \"../Components/Arrow\";\nimport Items from \"./Items\";\nexport const Context = createContext({\n close: () => { }\n});\n;\nconst Dropdown = ({ children, className, items, arrow = true, direction = 'down', position = 'right', split = false, disabled, hover = false, enableRerenderItems = true, onShow, onHide, ...props }) => {\n const containerRef = useRef(null);\n const hoverTimeout = useRef(null);\n const [isOpen, setOpen] = useState(false);\n const close = () => {\n setOpen(false);\n };\n const toggle = () => {\n setOpen((isOpen) => {\n if (disabled)\n return false;\n return !isOpen;\n });\n };\n const handleClickArrow = () => {\n toggle();\n };\n const handleClick = () => {\n if (hoverTimeout.current)\n return;\n if (!split || hover)\n toggle();\n };\n const handleBlur = (e) => {\n if (e.currentTarget.contains(e.relatedTarget))\n return;\n close();\n };\n const handleMouseEnter = () => {\n if (!hover || isOpen)\n return;\n hoverTimeout.current = setTimeout(toggle, 50);\n };\n const handleMouseOut = () => {\n if (hoverTimeout.current) {\n clearTimeout(hoverTimeout.current);\n }\n };\n useEffect(() => {\n const element = containerRef.current;\n const classList = element?.classList;\n if (isOpen) {\n classList?.add(styles['opened']);\n element?.focus();\n if (typeof onShow === 'function') {\n onShow();\n }\n }\n else {\n classList?.remove(styles['opened']);\n if (typeof onHide === 'function') {\n onHide();\n }\n }\n }, [isOpen]);\n const classes = ['ui-dropdown'];\n classes.push(styles['container']);\n if (className)\n classes.push(className);\n if (direction)\n classes.push(styles[direction]);\n if (position)\n classes.push(styles[position]);\n return (_jsx(Context.Provider, { value: {\n close\n }, children: _jsxs(\"div\", { ...props, className: classes.join(' '), ref: containerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseOut, tabIndex: 1, onBlur: handleBlur, children: [(position === 'left' && !disabled) && _jsx(Arrow, { className: styles['arrow'], onClick: handleClickArrow }), _jsx(\"div\", { onClick: handleClick, className: 'ui-dropdown-block' + (isOpen ? ' ' + styles['hide'] : ''), children: children }), (position === 'right' && !disabled && arrow) && _jsx(Arrow, { className: styles['arrow'], onClick: handleClickArrow }), _jsx(Items, { isOpen: isOpen, disabled: disabled, enableRerenderItems: enableRerenderItems, items: items })] }) }));\n};\nexport default Dropdown;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useContext } from \"react\";\nimport styles from \"./style.module.scss\";\nimport { Context } from \"./Dropdown\";\n;\nconst Item = ({ children, onClick, autoClose = true, active, className, ...props }) => {\n const context = useContext(Context);\n const handleClick = (e) => {\n if (typeof onClick === 'function') {\n onClick(e);\n }\n if (autoClose) {\n context.close();\n }\n };\n const classes = ['ui-dropdown-item'];\n classes.push(styles['item']);\n if (active)\n classes.push(styles['active'], 'active');\n if (className)\n classes.push(className);\n return (_jsx(\"li\", { ...props, onClick: handleClick, className: classes.join(' '), children: typeof children === 'function' ? children(context) : children }));\n};\nexport default Item;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef, } from \"react\";\nimport { default as DropdownUI } from \"./Dropdown\";\nimport Item from \"./Item\";\n;\nconst Dropdown = {\n ...forwardRef(({ ...args }, ref) => _jsx(DropdownUI, { ...args })),\n Item\n};\nexport { Item as DropdownItem };\nexport default Dropdown;\n","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[1].use[3]!./brands.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[1].use[3]!./brands.css\";\n export default content && content.locals ? content.locals : undefined;\n","import Form, { useForm, FormElement } from \"./Form\";\nimport Element from \"./Form/Element\";\nimport Input from \"./Input\";\nimport TextArea from \"./TextArea\";\nimport Spinner from \"./Spinner\";\nimport Loading from \"./Loading\";\nimport FileInput from \"./FileInput\";\nimport File from \"./File\";\nimport Button from \"./Button\";\nimport UploadImages from \"./UploadImages\";\nimport Checkbox from \"./Checkbox\";\nimport Progress from \"./Progress\";\nimport Select, { SelectOption, SelectOptgroup } from \"./Select\";\nimport Dropdown, { DropdownItem } from \"./Dropdown\";\nimport './brands/brands.css';\nconst UI = {};\nexport { Form, FormElement, Element, useForm, Input, TextArea, Spinner, Loading, File, Button, UploadImages, Checkbox, Progress, Select, SelectOption, SelectOptgroup, Dropdown, DropdownItem, FileInput, };\nexport default UI;\n"],"names":["___CSS_LOADER_EXPORT___","i","push","module","id","locals","exports","cssWithMappingToString","list","toString","this","map","item","content","needLayer","concat","length","join","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","data","sourceMapping","f","Symbol","for","l","m","Object","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","defaultProps","$$typeof","type","props","_owner","current","Fragment","jsx","jsxs","stylesInDOM","getIndexByIdentifier","identifier","result","modulesToDom","options","idCountMap","identifiers","base","count","indexByIdentifier","obj","css","sourceMap","references","updater","addElementStyle","byIndex","splice","api","domAPI","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_i","_index","memo","insert","style","target","styleTarget","document","querySelector","window","HTMLIFrameElement","contentDocument","head","getTarget","Error","appendChild","element","createElement","setAttributes","attributes","styleElement","nonce","setAttribute","insertStyleElement","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","getter","__esModule","definition","o","defineProperty","enumerable","get","prop","r","toStringTag","value","nc","size","contrast","classes","className","radius","Math","ceil","Number","progress","isCheckBoxInput","isDateObject","Date","isNullOrUndefined","isObjectType","isObject","Array","isArray","isPlainObject","tempObject","prototypeCopy","constructor","isWeb","HTMLElement","cloneObject","copy","Set","Blob","FileList","compact","filter","Boolean","isUndefined","val","path","defaultValue","split","reduce","isBoolean","EVENTS","VALIDATION_MODE","INPUT_VALIDATION_RULES","isEmptyObject","keys","convertToArrayPayload","isString","isKey","test","stringToPath","input","replace","set","object","tempPath","lastIndex","newValue","objValue","isNaN","appendErrors","name","validateAllFieldCriteria","errors","message","types","focusFieldBy","fields","callback","fieldsNames","field","_f","currentField","focus","refs","getValidationModes","mode","isOnSubmit","isOnBlur","isOnChange","isOnAll","isOnTouch","isWatched","_names","isBlurEvent","watchAll","watch","has","some","watchName","startsWith","slice","updateFieldArrayRootError","error","fieldArrayErrors","isFileInput","isFunction","isHTMLElement","owner","ownerDocument","defaultView","isMessage","isRadioInput","isRegex","RegExp","defaultResult","isValid","validResult","getCheckboxValue","values","option","checked","disabled","defaultReturn","getRadioValue","previous","getValidateError","every","getValueAndMessage","validationData","validateField","async","formValues","shouldUseNativeValidation","isFieldArray","required","maxLength","minLength","min","max","pattern","validate","valueAsNumber","mount","inputValue","inputRef","setCustomValidity","reportValidity","isRadio","isCheckBox","isRadioOrCheckbox","isEmpty","appendErrorsCurry","bind","getMinMaxMessage","exceedMax","maxLengthMessage","minLengthMessage","maxType","minType","exceedMin","maxOutput","minOutput","valueDate","valueAsDate","convertTimeToDate","time","toDateString","isTime","isWeek","valueNumber","maxLengthOutput","minLengthOutput","patternValue","match","validateError","validationResult","unset","paths","childObject","updatePath","baseGet","isEmptyArray","createSubject","_observers","observers","next","observer","subscribe","unsubscribe","isPrimitive","deepEqual","object1","object2","getTime","keys1","keys2","val1","includes","val2","isMultipleSelect","live","isConnected","objectHasFunction","markFieldsDirty","isParentNodeArray","getDirtyFieldsFromDefaultValues","dirtyFieldsFromValues","getDirtyFields","defaultValues","getFieldValueAs","setValueAs","NaN","getFieldValue","files","selectedOptions","getRuleValue","rule","source","schemaErrorLookup","_fields","names","fieldName","foundError","pop","defaultOptions","reValidateMode","shouldFocusError","createFormControl","flushRootRender","delayErrorCallback","_options","_formState","submitCount","isDirty","isLoading","isValidating","isSubmitted","isSubmitting","isSubmitSuccessful","touchedFields","dirtyFields","_defaultValues","_formValues","shouldUnregister","_state","action","unMount","array","timer","_proxyFormState","_subjects","state","shouldCaptureDirtyFields","resetOptions","keepDirtyValues","validationModeBeforeSubmit","validationModeAfterSubmit","shouldDisplayAllAssociatedErrors","criteriaMode","_updateValid","shouldUpdateValid","resolver","_executeSchema","executeBuiltInValidation","_updateIsValidating","updateValidAndValue","shouldSkipSetValueAs","defaultChecked","setFieldValue","updateTouchAndDirty","fieldValue","shouldDirty","shouldRender","shouldUpdateField","isPreviousDirty","output","_getDirty","isCurrentFieldPristine","isPreviousFieldTouched","context","getResolverOptions","shouldOnlyCheckValid","valid","isFieldArrayRoot","fieldError","getValues","_getWatch","isGlobal","add","generateWatchOutput","fieldReference","forEach","optionRef","selected","checkboxRef","find","radioRef","shouldTouch","shouldValidate","trigger","setValues","fieldKey","setValue","cloneValue","onChange","event","isFieldValueUpdated","getEventValue","shouldSkipValidation","hasValidation","deps","isTouched","skipValidation","watched","onBlur","fieldState","previousErrorLookupResult","errorLookupResult","previousFieldError","delayError","updateErrors","wait","clearTimeout","setTimeout","updatedFormState","shouldRenderByError","fieldNames","executeSchemaAndUpdateState","Promise","all","shouldFocus","getFieldState","formState","invalid","setError","unregister","delete","keepValue","keepError","keepDirty","keepTouched","keepDefaultValue","keepIsValid","_updateDisabledField","register","disabledIsDefined","progressive","fieldRef","querySelectorAll","radioOrCheckbox","substring","search","getNodeParentName","isNameInFieldArray","_focusError","handleSubmit","onValid","onInvalid","preventDefault","persist","fieldValues","_reset","keepStateOptions","updatedValues","cloneUpdatedValues","keepDefaultValues","keepValues","form","closest","reset","keepSubmitCount","keepIsSubmitted","keepErrors","keepIsSubmitSuccessful","control","_removeUnmounted","_updateFieldArray","method","args","shouldSetValues","shouldUpdateFieldsAndState","argA","argB","unsetEmptyArray","_getFieldArray","_resetDefaultValues","then","_updateFormState","payload","resetField","clearErrors","inputName","setFocus","shouldSelect","select","globalError","setGlobalError","useState","_formControl","_values","updateFormState","_props","subscription","subject","useSubscribe","formStateData","isRoot","shouldRenderFormState","localProxyFormState","_key","getProxyFormState","inputRegister","formvalue","GlobalError","children","setErrors","color","dot","beforeElement","afterElement","placeholder","styleContainer","classNameContainer","hiddenContainer","currentError","setCurrentError","useEffect","cloneElement","progressRadius","onSubmit","forwardRef","onInput","onChangeText","currentValue","setCurrentValue","handleChange","handleInput","String","textareaRef","useRef","textarea","currentHeight","offsetHeight","height","scrollHeight","newHeight","useImperativeHandle","onChangeFiles","accept","multiple","icon","fileInputRef","fileInputClasses","trim","useCallback","display","selector","file","reader","FileReader","onload","evt","mime","contentData","readAsDataURL","fileSelector","onchange","onClick","click","variant","buttonClasses","btn","containerClasses","onId","onRemove","src","setWait","confirmRemove","currentId","setId","blur","tabIndex","onLoad","imagesArray","onChangeArray","images","setImages","handleChangeId","image","currentImage","handleRemove","direction","Context","createContext","emptyValue","setSelect","setSelected","setTitle","title","onChangeSelect","containerRef","isOpen","setOpen","close","handleClick","nativeInputValueSetter","getOwnPropertyDescriptor","HTMLInputElement","Event","bubbles","dispatchEvent","triggerNativeEvent","classList","requestAnimationFrame","contains","ontransitionend","Provider","hidden","useContext","label","Option","Optgroup","items","enableRerenderItems","listRef","renderItems","useMemo","innerWidth","getBoundingClientRect","left","arrow","position","hover","onShow","onHide","hoverTimeout","toggle","handleClickArrow","onMouseEnter","onMouseLeave","currentTarget","relatedTarget","autoClose","active","Item"],"sourceRoot":""}
1
+ {"version":3,"file":"index.js","mappings":";4CASa,IAAIA,EAAE,EAAQ,KAASC,EAAEC,OAAOC,IAAI,iBAAiBC,EAAEF,OAAOC,IAAI,kBAAkBE,EAAEC,OAAOC,UAAUC,eAAeC,EAAET,EAAEU,mDAAmDC,kBAAkBC,EAAE,CAACC,KAAI,EAAGC,KAAI,EAAGC,QAAO,EAAGC,UAAS,GAChP,SAASC,EAAEC,EAAEC,EAAEC,GAAG,IAAIC,EAAEC,EAAE,CAAC,EAAEC,EAAE,KAAKC,EAAE,KAAiF,IAAIH,UAAhF,IAASD,IAAIG,EAAE,GAAGH,QAAG,IAASD,EAAEN,MAAMU,EAAE,GAAGJ,EAAEN,UAAK,IAASM,EAAEL,MAAMU,EAAEL,EAAEL,KAAcK,EAAEd,EAAEoB,KAAKN,EAAEE,KAAKT,EAAEJ,eAAea,KAAKC,EAAED,GAAGF,EAAEE,IAAI,GAAGH,GAAGA,EAAEQ,aAAa,IAAIL,KAAKF,EAAED,EAAEQ,kBAAe,IAASJ,EAAED,KAAKC,EAAED,GAAGF,EAAEE,IAAI,MAAM,CAACM,SAAS1B,EAAE2B,KAAKV,EAAEL,IAAIU,EAAET,IAAIU,EAAEK,MAAMP,EAAEQ,OAAOrB,EAAEsB,QAAQ,CAACC,EAAQC,SAAS7B,EAAE4B,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KAAM6a,SAA8B,mBAAbA,EAA0BA,EAASxJ,GAAWwJ,GAAY,ECXlK,GALiB,KACV,IAAAe,aAAW,KAAMvD,GAAQ/a,KAAQ,SAAK,GAAY,IAAK+a,MAC1D8K,KAAI,ICNKC,IAAkB,IAAApD,eAAc,CAAC,GCA9C,GCEiB,EAAGnF,eACR,SAAKuI,GAAgB7B,SAAU,CAAEthB,MAAO,CAAC,EAAG4a,SAAUA,ICclE,GAFW,CAAC","sources":["webpack://react-artasys-ui/./node_modules/react/cjs/react-jsx-runtime.production.min.js","webpack://react-artasys-ui/./node_modules/react/jsx-runtime.js","webpack://react-artasys-ui/external module \"react\"","webpack://react-artasys-ui/webpack/bootstrap","webpack://react-artasys-ui/webpack/runtime/define property getters","webpack://react-artasys-ui/webpack/runtime/hasOwnProperty shorthand","webpack://react-artasys-ui/./src/Form/style.module.css?be44","webpack://react-artasys-ui/./src/Spinner/style.module.scss?ba32","webpack://react-artasys-ui/./src/Spinner/index.tsx","webpack://react-artasys-ui/./src/Spinner/Spinner.tsx","webpack://react-artasys-ui/./src/Progress/style.module.css?366a","webpack://react-artasys-ui/./src/Progress/index.tsx","webpack://react-artasys-ui/./src/Progress/Progress.tsx","webpack://react-artasys-ui/./node_modules/react-hook-form/dist/index.esm.mjs","webpack://react-artasys-ui/./src/Form/useForm.tsx","webpack://react-artasys-ui/./src/Form/Element/style.module.scss?1f36","webpack://react-artasys-ui/./src/Loading/style.module.scss?fe73","webpack://react-artasys-ui/./src/Loading/index.tsx","webpack://react-artasys-ui/./src/Loading/Loading.tsx","webpack://react-artasys-ui/./src/Form/Element/index.tsx","webpack://react-artasys-ui/./src/Form/Element/Element.tsx","webpack://react-artasys-ui/./src/Form/index.tsx","webpack://react-artasys-ui/./src/Form/Form.tsx","webpack://react-artasys-ui/./src/Input/index.tsx","webpack://react-artasys-ui/./src/Input/Input.tsx","webpack://react-artasys-ui/./src/TextArea/index.tsx","webpack://react-artasys-ui/./src/TextArea/TextArea.tsx","webpack://react-artasys-ui/./src/FileInput/index.tsx","webpack://react-artasys-ui/./src/FileInput/FileInput.tsx","webpack://react-artasys-ui/./src/FileInput/style.module.scss?83e3","webpack://react-artasys-ui/./src/File/index.tsx","webpack://react-artasys-ui/./src/File/File.tsx","webpack://react-artasys-ui/./src/Button/style.module.scss?ee96","webpack://react-artasys-ui/./src/Button/index.tsx","webpack://react-artasys-ui/./src/Button/Button.tsx","webpack://react-artasys-ui/./src/UploadImages/Image.tsx","webpack://react-artasys-ui/./src/UploadImages/style.module.css?ef89","webpack://react-artasys-ui/./src/UploadImages/index.tsx","webpack://react-artasys-ui/./src/UploadImages/UploadImages.tsx","webpack://react-artasys-ui/./src/Checkbox/index.tsx","webpack://react-artasys-ui/./src/Checkbox/Checkbox.tsx","webpack://react-artasys-ui/./src/Components/Arrow/style.module.css?983c","webpack://react-artasys-ui/./src/Components/Arrow/index.tsx","webpack://react-artasys-ui/./src/Components/Arrow/Arrow.tsx","webpack://react-artasys-ui/./src/Select/style.module.css?14e6","webpack://react-artasys-ui/./src/Select/Select.tsx","webpack://react-artasys-ui/./src/Select/Option.tsx","webpack://react-artasys-ui/./src/Select/Optgroup.tsx","webpack://react-artasys-ui/./src/Select/index.tsx","webpack://react-artasys-ui/./src/Dropdown/style.module.scss?64ef","webpack://react-artasys-ui/./src/Dropdown/Items.tsx","webpack://react-artasys-ui/./src/Dropdown/Dropdown.tsx","webpack://react-artasys-ui/./src/Dropdown/Item.tsx","webpack://react-artasys-ui/./src/Dropdown/index.tsx","webpack://react-artasys-ui/./src/Provider/ProviderContext.ts","webpack://react-artasys-ui/./src/Provider/index.tsx","webpack://react-artasys-ui/./src/Provider/Provider.tsx","webpack://react-artasys-ui/./src/index.ts"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE_react__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"style-module__container___xfbzH\",\"wait-indicator\":\"style-module__wait-indicator___G02CN\",\"wait\":\"style-module__wait___W2hPp\"};","// extracted by mini-css-extract-plugin\nexport default {\"spinner\":\"style-module__spinner___rCh2u\",\"button-spinner-border\":\"style-module__button-spinner-border___PgVuB\",\"ui-spinner-contrast\":\"style-module__ui-spinner-contrast___DmoHd\",\"small\":\"style-module__small___NzDCq\",\"middle\":\"style-module__middle___irbH9\",\"large\":\"style-module__large___g2a7L\"};","import Spinner from \"./Spinner\";\nexport default Spinner;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport styles from \"./style.module.scss\";\n;\nconst Spinner = ({ size, contrast, ...props }) => {\n const classes = ['ui-spinner'];\n classes.push(styles['spinner']);\n if (size)\n classes.push(styles[size], 'ui-spinner-' + size);\n if (contrast)\n classes.push(styles['ui-spinner-contrast']);\n if (props.className)\n classes.push(props.className);\n return (_jsx(\"div\", { ...props, className: classes.join(' ') }));\n};\nexport default Spinner;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"style-module__container___Rcvsm\",\"radius\":\"style-module__radius___BGUfK\",\"small\":\"style-module__small___aw7mI\",\"middle\":\"style-module__middle___kHjkw\",\"large\":\"style-module__large___oS6zL\"};","import Progress from \"./Progress\";\nexport default Progress;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport styles from \"./style.module.css\";\n;\nconst Progress = ({ value = 0, size, radius = false }) => {\n value = Math.ceil(Number(value) * 10) / 10;\n if (value > 100) {\n value = 100;\n }\n if (value < 0) {\n value = 0;\n }\n const progress = radius ? (360 / 100 * value) + 'deg' : value + '%';\n const classes = ['ui-progress'];\n classes.push(styles['container']);\n if (size)\n classes.push(styles[size]);\n if (radius)\n classes.push(styles['radius']);\n return (_jsx(\"div\", { className: classes.join(' '), \"data-progress\": value, style: { '--progress': progress } }));\n};\nexport default Progress;\n","import React from 'react';\n\nvar isCheckBoxInput = (element) => element.type === 'checkbox';\n\nvar isDateObject = (value) => value instanceof Date;\n\nvar isNullOrUndefined = (value) => value == null;\n\nconst isObjectType = (value) => typeof value === 'object';\nvar isObject = (value) => !isNullOrUndefined(value) &&\n !Array.isArray(value) &&\n isObjectType(value) &&\n !isDateObject(value);\n\nvar getEventValue = (event) => isObject(event) && event.target\n ? isCheckBoxInput(event.target)\n ? event.target.checked\n : event.target.value\n : event;\n\nvar getNodeParentName = (name) => name.substring(0, name.search(/\\.\\d+(\\.|$)/)) || name;\n\nvar isNameInFieldArray = (names, name) => names.has(getNodeParentName(name));\n\nvar isPlainObject = (tempObject) => {\n const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;\n return (isObject(prototypeCopy) && prototypeCopy.hasOwnProperty('isPrototypeOf'));\n};\n\nvar isWeb = typeof window !== 'undefined' &&\n typeof window.HTMLElement !== 'undefined' &&\n typeof document !== 'undefined';\n\nfunction cloneObject(data) {\n let copy;\n const isArray = Array.isArray(data);\n const isFileListInstance = typeof FileList !== 'undefined' ? data instanceof FileList : false;\n if (data instanceof Date) {\n copy = new Date(data);\n }\n else if (data instanceof Set) {\n copy = new Set(data);\n }\n else if (!(isWeb && (data instanceof Blob || isFileListInstance)) &&\n (isArray || isObject(data))) {\n copy = isArray ? [] : {};\n if (!isArray && !isPlainObject(data)) {\n copy = data;\n }\n else {\n for (const key in data) {\n if (data.hasOwnProperty(key)) {\n copy[key] = cloneObject(data[key]);\n }\n }\n }\n }\n else {\n return data;\n }\n return copy;\n}\n\nvar compact = (value) => Array.isArray(value) ? value.filter(Boolean) : [];\n\nvar isUndefined = (val) => val === undefined;\n\nvar get = (object, path, defaultValue) => {\n if (!path || !isObject(object)) {\n return defaultValue;\n }\n const result = compact(path.split(/[,[\\].]+?/)).reduce((result, key) => isNullOrUndefined(result) ? result : result[key], object);\n return isUndefined(result) || result === object\n ? isUndefined(object[path])\n ? defaultValue\n : object[path]\n : result;\n};\n\nvar isBoolean = (value) => typeof value === 'boolean';\n\nvar isKey = (value) => /^\\w*$/.test(value);\n\nvar stringToPath = (input) => compact(input.replace(/[\"|']|\\]/g, '').split(/\\.|\\[/));\n\nvar set = (object, path, value) => {\n let index = -1;\n const tempPath = isKey(path) ? [path] : stringToPath(path);\n const length = tempPath.length;\n const lastIndex = length - 1;\n while (++index < length) {\n const key = tempPath[index];\n let newValue = value;\n if (index !== lastIndex) {\n const objValue = object[key];\n newValue =\n isObject(objValue) || Array.isArray(objValue)\n ? objValue\n : !isNaN(+tempPath[index + 1])\n ? []\n : {};\n }\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return;\n }\n object[key] = newValue;\n object = object[key];\n }\n return object;\n};\n\nconst EVENTS = {\n BLUR: 'blur',\n FOCUS_OUT: 'focusout',\n CHANGE: 'change',\n};\nconst VALIDATION_MODE = {\n onBlur: 'onBlur',\n onChange: 'onChange',\n onSubmit: 'onSubmit',\n onTouched: 'onTouched',\n all: 'all',\n};\nconst INPUT_VALIDATION_RULES = {\n max: 'max',\n min: 'min',\n maxLength: 'maxLength',\n minLength: 'minLength',\n pattern: 'pattern',\n required: 'required',\n validate: 'validate',\n};\n\nconst HookFormContext = React.createContext(null);\n/**\n * This custom hook allows you to access the form context. useFormContext is intended to be used in deeply nested structures, where it would become inconvenient to pass the context as a prop. To be used with {@link FormProvider}.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)\n *\n * @returns return all useForm methods\n *\n * @example\n * ```tsx\n * function App() {\n * const methods = useForm();\n * const onSubmit = data => console.log(data);\n *\n * return (\n * <FormProvider {...methods} >\n * <form onSubmit={methods.handleSubmit(onSubmit)}>\n * <NestedInput />\n * <input type=\"submit\" />\n * </form>\n * </FormProvider>\n * );\n * }\n *\n * function NestedInput() {\n * const { register } = useFormContext(); // retrieve all hook methods\n * return <input {...register(\"test\")} />;\n * }\n * ```\n */\nconst useFormContext = () => React.useContext(HookFormContext);\n/**\n * A provider component that propagates the `useForm` methods to all children components via [React Context](https://reactjs.org/docs/context.html) API. To be used with {@link useFormContext}.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)\n *\n * @param props - all useForm methods\n *\n * @example\n * ```tsx\n * function App() {\n * const methods = useForm();\n * const onSubmit = data => console.log(data);\n *\n * return (\n * <FormProvider {...methods} >\n * <form onSubmit={methods.handleSubmit(onSubmit)}>\n * <NestedInput />\n * <input type=\"submit\" />\n * </form>\n * </FormProvider>\n * );\n * }\n *\n * function NestedInput() {\n * const { register } = useFormContext(); // retrieve all hook methods\n * return <input {...register(\"test\")} />;\n * }\n * ```\n */\nconst FormProvider = (props) => {\n const { children, ...data } = props;\n return (React.createElement(HookFormContext.Provider, { value: data }, children));\n};\n\nvar getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {\n const result = {\n defaultValues: control._defaultValues,\n };\n for (const key in formState) {\n Object.defineProperty(result, key, {\n get: () => {\n const _key = key;\n if (control._proxyFormState[_key] !== VALIDATION_MODE.all) {\n control._proxyFormState[_key] = !isRoot || VALIDATION_MODE.all;\n }\n localProxyFormState && (localProxyFormState[_key] = true);\n return formState[_key];\n },\n });\n }\n return result;\n};\n\nvar isEmptyObject = (value) => isObject(value) && !Object.keys(value).length;\n\nvar shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, isRoot) => {\n updateFormState(formStateData);\n const { name, ...formState } = formStateData;\n return (isEmptyObject(formState) ||\n Object.keys(formState).length >= Object.keys(_proxyFormState).length ||\n Object.keys(formState).find((key) => _proxyFormState[key] ===\n (!isRoot || VALIDATION_MODE.all)));\n};\n\nvar convertToArrayPayload = (value) => (Array.isArray(value) ? value : [value]);\n\nvar shouldSubscribeByName = (name, signalName, exact) => !name ||\n !signalName ||\n name === signalName ||\n convertToArrayPayload(name).some((currentName) => currentName &&\n (exact\n ? currentName === signalName\n : currentName.startsWith(signalName) ||\n signalName.startsWith(currentName)));\n\nfunction useSubscribe(props) {\n const _props = React.useRef(props);\n _props.current = props;\n React.useEffect(() => {\n const subscription = !props.disabled &&\n _props.current.subject &&\n _props.current.subject.subscribe({\n next: _props.current.next,\n });\n return () => {\n subscription && subscription.unsubscribe();\n };\n }, [props.disabled]);\n}\n\n/**\n * This custom hook allows you to subscribe to each form state, and isolate the re-render at the custom hook level. It has its scope in terms of form state subscription, so it would not affect other useFormState and useForm. Using this hook can reduce the re-render impact on large and complex form application.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformstate) • [Demo](https://codesandbox.io/s/useformstate-75xly)\n *\n * @param props - include options on specify fields to subscribe. {@link UseFormStateReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, handleSubmit, control } = useForm({\n * defaultValues: {\n * firstName: \"firstName\"\n * }});\n * const { dirtyFields } = useFormState({\n * control\n * });\n * const onSubmit = (data) => console.log(data);\n *\n * return (\n * <form onSubmit={handleSubmit(onSubmit)}>\n * <input {...register(\"firstName\")} placeholder=\"First Name\" />\n * {dirtyFields.firstName && <p>Field is dirty.</p>}\n * <input type=\"submit\" />\n * </form>\n * );\n * }\n * ```\n */\nfunction useFormState(props) {\n const methods = useFormContext();\n const { control = methods.control, disabled, name, exact } = props || {};\n const [formState, updateFormState] = React.useState(control._formState);\n const _mounted = React.useRef(true);\n const _localProxyFormState = React.useRef({\n isDirty: false,\n isLoading: false,\n dirtyFields: false,\n touchedFields: false,\n validatingFields: false,\n isValidating: false,\n isValid: false,\n errors: false,\n });\n const _name = React.useRef(name);\n _name.current = name;\n useSubscribe({\n disabled,\n next: (value) => _mounted.current &&\n shouldSubscribeByName(_name.current, value.name, exact) &&\n shouldRenderFormState(value, _localProxyFormState.current, control._updateFormState) &&\n updateFormState({\n ...control._formState,\n ...value,\n }),\n subject: control._subjects.state,\n });\n React.useEffect(() => {\n _mounted.current = true;\n _localProxyFormState.current.isValid && control._updateValid(true);\n return () => {\n _mounted.current = false;\n };\n }, [control]);\n return React.useMemo(() => getProxyFormState(formState, control, _localProxyFormState.current, false), [formState, control]);\n}\n\nvar isString = (value) => typeof value === 'string';\n\nvar generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) => {\n if (isString(names)) {\n isGlobal && _names.watch.add(names);\n return get(formValues, names, defaultValue);\n }\n if (Array.isArray(names)) {\n return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get(formValues, fieldName)));\n }\n isGlobal && (_names.watchAll = true);\n return formValues;\n};\n\n/**\n * Custom hook to subscribe to field change and isolate re-rendering at the component level.\n *\n * @remarks\n *\n * [API](https://react-hook-form.com/docs/usewatch) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-usewatch-h9i5e)\n *\n * @example\n * ```tsx\n * const { control } = useForm();\n * const values = useWatch({\n * name: \"fieldName\"\n * control,\n * })\n * ```\n */\nfunction useWatch(props) {\n const methods = useFormContext();\n const { control = methods.control, name, defaultValue, disabled, exact, } = props || {};\n const _name = React.useRef(name);\n _name.current = name;\n useSubscribe({\n disabled,\n subject: control._subjects.values,\n next: (formState) => {\n if (shouldSubscribeByName(_name.current, formState.name, exact)) {\n updateValue(cloneObject(generateWatchOutput(_name.current, control._names, formState.values || control._formValues, false, defaultValue)));\n }\n },\n });\n const [value, updateValue] = React.useState(control._getWatch(name, defaultValue));\n React.useEffect(() => control._removeUnmounted());\n return value;\n}\n\n/**\n * Custom hook to work with controlled component, this function provide you with both form and field level state. Re-render is isolated at the hook level.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usecontroller) • [Demo](https://codesandbox.io/s/usecontroller-0o8px)\n *\n * @param props - the path name to the form field value, and validation rules.\n *\n * @returns field properties, field and form state. {@link UseControllerReturn}\n *\n * @example\n * ```tsx\n * function Input(props) {\n * const { field, fieldState, formState } = useController(props);\n * return (\n * <div>\n * <input {...field} placeholder={props.name} />\n * <p>{fieldState.isTouched && \"Touched\"}</p>\n * <p>{formState.isSubmitted ? \"submitted\" : \"\"}</p>\n * </div>\n * );\n * }\n * ```\n */\nfunction useController(props) {\n const methods = useFormContext();\n const { name, disabled, control = methods.control, shouldUnregister } = props;\n const isArrayField = isNameInFieldArray(control._names.array, name);\n const value = useWatch({\n control,\n name,\n defaultValue: get(control._formValues, name, get(control._defaultValues, name, props.defaultValue)),\n exact: true,\n });\n const formState = useFormState({\n control,\n name,\n exact: true,\n });\n const _registerProps = React.useRef(control.register(name, {\n ...props.rules,\n value,\n ...(isBoolean(props.disabled) ? { disabled: props.disabled } : {}),\n }));\n const fieldState = React.useMemo(() => Object.defineProperties({}, {\n invalid: {\n enumerable: true,\n get: () => !!get(formState.errors, name),\n },\n isDirty: {\n enumerable: true,\n get: () => !!get(formState.dirtyFields, name),\n },\n isTouched: {\n enumerable: true,\n get: () => !!get(formState.touchedFields, name),\n },\n isValidating: {\n enumerable: true,\n get: () => !!get(formState.validatingFields, name),\n },\n error: {\n enumerable: true,\n get: () => get(formState.errors, name),\n },\n }), [formState, name]);\n const field = React.useMemo(() => ({\n name,\n value,\n ...(isBoolean(disabled) || formState.disabled\n ? { disabled: formState.disabled || disabled }\n : {}),\n onChange: (event) => _registerProps.current.onChange({\n target: {\n value: getEventValue(event),\n name: name,\n },\n type: EVENTS.CHANGE,\n }),\n onBlur: () => _registerProps.current.onBlur({\n target: {\n value: get(control._formValues, name),\n name: name,\n },\n type: EVENTS.BLUR,\n }),\n ref: (elm) => {\n const field = get(control._fields, name);\n if (field && elm) {\n field._f.ref = {\n focus: () => elm.focus(),\n select: () => elm.select(),\n setCustomValidity: (message) => elm.setCustomValidity(message),\n reportValidity: () => elm.reportValidity(),\n };\n }\n },\n }), [\n name,\n control._formValues,\n disabled,\n formState.disabled,\n value,\n control._fields,\n ]);\n React.useEffect(() => {\n const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;\n const updateMounted = (name, value) => {\n const field = get(control._fields, name);\n if (field && field._f) {\n field._f.mount = value;\n }\n };\n updateMounted(name, true);\n if (_shouldUnregisterField) {\n const value = cloneObject(get(control._options.defaultValues, name));\n set(control._defaultValues, name, value);\n if (isUndefined(get(control._formValues, name))) {\n set(control._formValues, name, value);\n }\n }\n !isArrayField && control.register(name);\n return () => {\n (isArrayField\n ? _shouldUnregisterField && !control._state.action\n : _shouldUnregisterField)\n ? control.unregister(name)\n : updateMounted(name, false);\n };\n }, [name, control, isArrayField, shouldUnregister]);\n React.useEffect(() => {\n control._updateDisabledField({\n disabled,\n fields: control._fields,\n name,\n });\n }, [disabled, name, control]);\n return React.useMemo(() => ({\n field,\n formState,\n fieldState,\n }), [field, formState, fieldState]);\n}\n\n/**\n * Component based on `useController` hook to work with controlled component.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usecontroller/controller) • [Demo](https://codesandbox.io/s/react-hook-form-v6-controller-ts-jwyzw) • [Video](https://www.youtube.com/watch?v=N2UNk_UCVyA)\n *\n * @param props - the path name to the form field value, and validation rules.\n *\n * @returns provide field handler functions, field and form state.\n *\n * @example\n * ```tsx\n * function App() {\n * const { control } = useForm<FormValues>({\n * defaultValues: {\n * test: \"\"\n * }\n * });\n *\n * return (\n * <form>\n * <Controller\n * control={control}\n * name=\"test\"\n * render={({ field: { onChange, onBlur, value, ref }, formState, fieldState }) => (\n * <>\n * <input\n * onChange={onChange} // send value to hook form\n * onBlur={onBlur} // notify when input is touched\n * value={value} // return updated value\n * ref={ref} // set ref for focus management\n * />\n * <p>{formState.isSubmitted ? \"submitted\" : \"\"}</p>\n * <p>{fieldState.isTouched ? \"touched\" : \"\"}</p>\n * </>\n * )}\n * />\n * </form>\n * );\n * }\n * ```\n */\nconst Controller = (props) => props.render(useController(props));\n\nconst flatten = (obj) => {\n const output = {};\n for (const key of Object.keys(obj)) {\n if (isObjectType(obj[key]) && obj[key] !== null) {\n const nested = flatten(obj[key]);\n for (const nestedKey of Object.keys(nested)) {\n output[`${key}.${nestedKey}`] = nested[nestedKey];\n }\n }\n else {\n output[key] = obj[key];\n }\n }\n return output;\n};\n\nconst POST_REQUEST = 'post';\n/**\n * Form component to manage submission.\n *\n * @param props - to setup submission detail. {@link FormProps}\n *\n * @returns form component or headless render prop.\n *\n * @example\n * ```tsx\n * function App() {\n * const { control, formState: { errors } } = useForm();\n *\n * return (\n * <Form action=\"/api\" control={control}>\n * <input {...register(\"name\")} />\n * <p>{errors?.root?.server && 'Server error'}</p>\n * <button>Submit</button>\n * </Form>\n * );\n * }\n * ```\n */\nfunction Form(props) {\n const methods = useFormContext();\n const [mounted, setMounted] = React.useState(false);\n const { control = methods.control, onSubmit, children, action, method = POST_REQUEST, headers, encType, onError, render, onSuccess, validateStatus, ...rest } = props;\n const submit = async (event) => {\n let hasError = false;\n let type = '';\n await control.handleSubmit(async (data) => {\n const formData = new FormData();\n let formDataJson = '';\n try {\n formDataJson = JSON.stringify(data);\n }\n catch (_a) { }\n const flattenFormValues = flatten(control._formValues);\n for (const key in flattenFormValues) {\n formData.append(key, flattenFormValues[key]);\n }\n if (onSubmit) {\n await onSubmit({\n data,\n event,\n method,\n formData,\n formDataJson,\n });\n }\n if (action) {\n try {\n const shouldStringifySubmissionData = [\n headers && headers['Content-Type'],\n encType,\n ].some((value) => value && value.includes('json'));\n const response = await fetch(String(action), {\n method,\n headers: {\n ...headers,\n ...(encType ? { 'Content-Type': encType } : {}),\n },\n body: shouldStringifySubmissionData ? formDataJson : formData,\n });\n if (response &&\n (validateStatus\n ? !validateStatus(response.status)\n : response.status < 200 || response.status >= 300)) {\n hasError = true;\n onError && onError({ response });\n type = String(response.status);\n }\n else {\n onSuccess && onSuccess({ response });\n }\n }\n catch (error) {\n hasError = true;\n onError && onError({ error });\n }\n }\n })(event);\n if (hasError && props.control) {\n props.control._subjects.state.next({\n isSubmitSuccessful: false,\n });\n props.control.setError('root.server', {\n type,\n });\n }\n };\n React.useEffect(() => {\n setMounted(true);\n }, []);\n return render ? (React.createElement(React.Fragment, null, render({\n submit,\n }))) : (React.createElement(\"form\", { noValidate: mounted, action: action, method: method, encType: encType, onSubmit: submit, ...rest }, children));\n}\n\nvar appendErrors = (name, validateAllFieldCriteria, errors, type, message) => validateAllFieldCriteria\n ? {\n ...errors[name],\n types: {\n ...(errors[name] && errors[name].types ? errors[name].types : {}),\n [type]: message || true,\n },\n }\n : {};\n\nvar generateId = () => {\n const d = typeof performance === 'undefined' ? Date.now() : performance.now() * 1000;\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\n const r = (Math.random() * 16 + d) % 16 | 0;\n return (c == 'x' ? r : (r & 0x3) | 0x8).toString(16);\n });\n};\n\nvar getFocusFieldName = (name, index, options = {}) => options.shouldFocus || isUndefined(options.shouldFocus)\n ? options.focusName ||\n `${name}.${isUndefined(options.focusIndex) ? index : options.focusIndex}.`\n : '';\n\nvar getValidationModes = (mode) => ({\n isOnSubmit: !mode || mode === VALIDATION_MODE.onSubmit,\n isOnBlur: mode === VALIDATION_MODE.onBlur,\n isOnChange: mode === VALIDATION_MODE.onChange,\n isOnAll: mode === VALIDATION_MODE.all,\n isOnTouch: mode === VALIDATION_MODE.onTouched,\n});\n\nvar isWatched = (name, _names, isBlurEvent) => !isBlurEvent &&\n (_names.watchAll ||\n _names.watch.has(name) ||\n [..._names.watch].some((watchName) => name.startsWith(watchName) &&\n /^\\.\\w+/.test(name.slice(watchName.length))));\n\nconst iterateFieldsByAction = (fields, action, fieldsNames, abortEarly) => {\n for (const key of fieldsNames || Object.keys(fields)) {\n const field = get(fields, key);\n if (field) {\n const { _f, ...currentField } = field;\n if (_f) {\n if (_f.refs && _f.refs[0] && action(_f.refs[0], key) && !abortEarly) {\n return true;\n }\n else if (_f.ref && action(_f.ref, _f.name) && !abortEarly) {\n return true;\n }\n else {\n if (iterateFieldsByAction(currentField, action)) {\n break;\n }\n }\n }\n else if (isObject(currentField)) {\n if (iterateFieldsByAction(currentField, action)) {\n break;\n }\n }\n }\n }\n return;\n};\n\nvar updateFieldArrayRootError = (errors, error, name) => {\n const fieldArrayErrors = convertToArrayPayload(get(errors, name));\n set(fieldArrayErrors, 'root', error[name]);\n set(errors, name, fieldArrayErrors);\n return errors;\n};\n\nvar isFileInput = (element) => element.type === 'file';\n\nvar isFunction = (value) => typeof value === 'function';\n\nvar isHTMLElement = (value) => {\n if (!isWeb) {\n return false;\n }\n const owner = value ? value.ownerDocument : 0;\n return (value instanceof\n (owner && owner.defaultView ? owner.defaultView.HTMLElement : HTMLElement));\n};\n\nvar isMessage = (value) => isString(value);\n\nvar isRadioInput = (element) => element.type === 'radio';\n\nvar isRegex = (value) => value instanceof RegExp;\n\nconst defaultResult = {\n value: false,\n isValid: false,\n};\nconst validResult = { value: true, isValid: true };\nvar getCheckboxValue = (options) => {\n if (Array.isArray(options)) {\n if (options.length > 1) {\n const values = options\n .filter((option) => option && option.checked && !option.disabled)\n .map((option) => option.value);\n return { value: values, isValid: !!values.length };\n }\n return options[0].checked && !options[0].disabled\n ? // @ts-expect-error expected to work in the browser\n options[0].attributes && !isUndefined(options[0].attributes.value)\n ? isUndefined(options[0].value) || options[0].value === ''\n ? validResult\n : { value: options[0].value, isValid: true }\n : validResult\n : defaultResult;\n }\n return defaultResult;\n};\n\nconst defaultReturn = {\n isValid: false,\n value: null,\n};\nvar getRadioValue = (options) => Array.isArray(options)\n ? options.reduce((previous, option) => option && option.checked && !option.disabled\n ? {\n isValid: true,\n value: option.value,\n }\n : previous, defaultReturn)\n : defaultReturn;\n\nfunction getValidateError(result, ref, type = 'validate') {\n if (isMessage(result) ||\n (Array.isArray(result) && result.every(isMessage)) ||\n (isBoolean(result) && !result)) {\n return {\n type,\n message: isMessage(result) ? result : '',\n ref,\n };\n }\n}\n\nvar getValueAndMessage = (validationData) => isObject(validationData) && !isRegex(validationData)\n ? validationData\n : {\n value: validationData,\n message: '',\n };\n\nvar validateField = async (field, disabledFieldNames, formValues, validateAllFieldCriteria, shouldUseNativeValidation, isFieldArray) => {\n const { ref, refs, required, maxLength, minLength, min, max, pattern, validate, name, valueAsNumber, mount, } = field._f;\n const inputValue = get(formValues, name);\n if (!mount || disabledFieldNames.has(name)) {\n return {};\n }\n const inputRef = refs ? refs[0] : ref;\n const setCustomValidity = (message) => {\n if (shouldUseNativeValidation && inputRef.reportValidity) {\n inputRef.setCustomValidity(isBoolean(message) ? '' : message || '');\n inputRef.reportValidity();\n }\n };\n const error = {};\n const isRadio = isRadioInput(ref);\n const isCheckBox = isCheckBoxInput(ref);\n const isRadioOrCheckbox = isRadio || isCheckBox;\n const isEmpty = ((valueAsNumber || isFileInput(ref)) &&\n isUndefined(ref.value) &&\n isUndefined(inputValue)) ||\n (isHTMLElement(ref) && ref.value === '') ||\n inputValue === '' ||\n (Array.isArray(inputValue) && !inputValue.length);\n const appendErrorsCurry = appendErrors.bind(null, name, validateAllFieldCriteria, error);\n const getMinMaxMessage = (exceedMax, maxLengthMessage, minLengthMessage, maxType = INPUT_VALIDATION_RULES.maxLength, minType = INPUT_VALIDATION_RULES.minLength) => {\n const message = exceedMax ? maxLengthMessage : minLengthMessage;\n error[name] = {\n type: exceedMax ? maxType : minType,\n message,\n ref,\n ...appendErrorsCurry(exceedMax ? maxType : minType, message),\n };\n };\n if (isFieldArray\n ? !Array.isArray(inputValue) || !inputValue.length\n : required &&\n ((!isRadioOrCheckbox && (isEmpty || isNullOrUndefined(inputValue))) ||\n (isBoolean(inputValue) && !inputValue) ||\n (isCheckBox && !getCheckboxValue(refs).isValid) ||\n (isRadio && !getRadioValue(refs).isValid))) {\n const { value, message } = isMessage(required)\n ? { value: !!required, message: required }\n : getValueAndMessage(required);\n if (value) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.required,\n message,\n ref: inputRef,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.required, message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n if (!isEmpty && (!isNullOrUndefined(min) || !isNullOrUndefined(max))) {\n let exceedMax;\n let exceedMin;\n const maxOutput = getValueAndMessage(max);\n const minOutput = getValueAndMessage(min);\n if (!isNullOrUndefined(inputValue) && !isNaN(inputValue)) {\n const valueNumber = ref.valueAsNumber ||\n (inputValue ? +inputValue : inputValue);\n if (!isNullOrUndefined(maxOutput.value)) {\n exceedMax = valueNumber > maxOutput.value;\n }\n if (!isNullOrUndefined(minOutput.value)) {\n exceedMin = valueNumber < minOutput.value;\n }\n }\n else {\n const valueDate = ref.valueAsDate || new Date(inputValue);\n const convertTimeToDate = (time) => new Date(new Date().toDateString() + ' ' + time);\n const isTime = ref.type == 'time';\n const isWeek = ref.type == 'week';\n if (isString(maxOutput.value) && inputValue) {\n exceedMax = isTime\n ? convertTimeToDate(inputValue) > convertTimeToDate(maxOutput.value)\n : isWeek\n ? inputValue > maxOutput.value\n : valueDate > new Date(maxOutput.value);\n }\n if (isString(minOutput.value) && inputValue) {\n exceedMin = isTime\n ? convertTimeToDate(inputValue) < convertTimeToDate(minOutput.value)\n : isWeek\n ? inputValue < minOutput.value\n : valueDate < new Date(minOutput.value);\n }\n }\n if (exceedMax || exceedMin) {\n getMinMaxMessage(!!exceedMax, maxOutput.message, minOutput.message, INPUT_VALIDATION_RULES.max, INPUT_VALIDATION_RULES.min);\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n if ((maxLength || minLength) &&\n !isEmpty &&\n (isString(inputValue) || (isFieldArray && Array.isArray(inputValue)))) {\n const maxLengthOutput = getValueAndMessage(maxLength);\n const minLengthOutput = getValueAndMessage(minLength);\n const exceedMax = !isNullOrUndefined(maxLengthOutput.value) &&\n inputValue.length > +maxLengthOutput.value;\n const exceedMin = !isNullOrUndefined(minLengthOutput.value) &&\n inputValue.length < +minLengthOutput.value;\n if (exceedMax || exceedMin) {\n getMinMaxMessage(exceedMax, maxLengthOutput.message, minLengthOutput.message);\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n if (pattern && !isEmpty && isString(inputValue)) {\n const { value: patternValue, message } = getValueAndMessage(pattern);\n if (isRegex(patternValue) && !inputValue.match(patternValue)) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.pattern,\n message,\n ref,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.pattern, message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n if (validate) {\n if (isFunction(validate)) {\n const result = await validate(inputValue, formValues);\n const validateError = getValidateError(result, inputRef);\n if (validateError) {\n error[name] = {\n ...validateError,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.validate, validateError.message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(validateError.message);\n return error;\n }\n }\n }\n else if (isObject(validate)) {\n let validationResult = {};\n for (const key in validate) {\n if (!isEmptyObject(validationResult) && !validateAllFieldCriteria) {\n break;\n }\n const validateError = getValidateError(await validate[key](inputValue, formValues), inputRef, key);\n if (validateError) {\n validationResult = {\n ...validateError,\n ...appendErrorsCurry(key, validateError.message),\n };\n setCustomValidity(validateError.message);\n if (validateAllFieldCriteria) {\n error[name] = validationResult;\n }\n }\n }\n if (!isEmptyObject(validationResult)) {\n error[name] = {\n ref: inputRef,\n ...validationResult,\n };\n if (!validateAllFieldCriteria) {\n return error;\n }\n }\n }\n }\n setCustomValidity(true);\n return error;\n};\n\nvar appendAt = (data, value) => [\n ...data,\n ...convertToArrayPayload(value),\n];\n\nvar fillEmptyArray = (value) => Array.isArray(value) ? value.map(() => undefined) : undefined;\n\nfunction insert(data, index, value) {\n return [\n ...data.slice(0, index),\n ...convertToArrayPayload(value),\n ...data.slice(index),\n ];\n}\n\nvar moveArrayAt = (data, from, to) => {\n if (!Array.isArray(data)) {\n return [];\n }\n if (isUndefined(data[to])) {\n data[to] = undefined;\n }\n data.splice(to, 0, data.splice(from, 1)[0]);\n return data;\n};\n\nvar prependAt = (data, value) => [\n ...convertToArrayPayload(value),\n ...convertToArrayPayload(data),\n];\n\nfunction removeAtIndexes(data, indexes) {\n let i = 0;\n const temp = [...data];\n for (const index of indexes) {\n temp.splice(index - i, 1);\n i++;\n }\n return compact(temp).length ? temp : [];\n}\nvar removeArrayAt = (data, index) => isUndefined(index)\n ? []\n : removeAtIndexes(data, convertToArrayPayload(index).sort((a, b) => a - b));\n\nvar swapArrayAt = (data, indexA, indexB) => {\n [data[indexA], data[indexB]] = [data[indexB], data[indexA]];\n};\n\nfunction baseGet(object, updatePath) {\n const length = updatePath.slice(0, -1).length;\n let index = 0;\n while (index < length) {\n object = isUndefined(object) ? index++ : object[updatePath[index++]];\n }\n return object;\n}\nfunction isEmptyArray(obj) {\n for (const key in obj) {\n if (obj.hasOwnProperty(key) && !isUndefined(obj[key])) {\n return false;\n }\n }\n return true;\n}\nfunction unset(object, path) {\n const paths = Array.isArray(path)\n ? path\n : isKey(path)\n ? [path]\n : stringToPath(path);\n const childObject = paths.length === 1 ? object : baseGet(object, paths);\n const index = paths.length - 1;\n const key = paths[index];\n if (childObject) {\n delete childObject[key];\n }\n if (index !== 0 &&\n ((isObject(childObject) && isEmptyObject(childObject)) ||\n (Array.isArray(childObject) && isEmptyArray(childObject)))) {\n unset(object, paths.slice(0, -1));\n }\n return object;\n}\n\nvar updateAt = (fieldValues, index, value) => {\n fieldValues[index] = value;\n return fieldValues;\n};\n\n/**\n * A custom hook that exposes convenient methods to perform operations with a list of dynamic inputs that need to be appended, updated, removed etc. • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn) • [Video](https://youtu.be/4MrbfGSFY2A)\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usefieldarray) • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn)\n *\n * @param props - useFieldArray props\n *\n * @returns methods - functions to manipulate with the Field Arrays (dynamic inputs) {@link UseFieldArrayReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, control, handleSubmit, reset, trigger, setError } = useForm({\n * defaultValues: {\n * test: []\n * }\n * });\n * const { fields, append } = useFieldArray({\n * control,\n * name: \"test\"\n * });\n *\n * return (\n * <form onSubmit={handleSubmit(data => console.log(data))}>\n * {fields.map((item, index) => (\n * <input key={item.id} {...register(`test.${index}.firstName`)} />\n * ))}\n * <button type=\"button\" onClick={() => append({ firstName: \"bill\" })}>\n * append\n * </button>\n * <input type=\"submit\" />\n * </form>\n * );\n * }\n * ```\n */\nfunction useFieldArray(props) {\n const methods = useFormContext();\n const { control = methods.control, name, keyName = 'id', shouldUnregister, rules, } = props;\n const [fields, setFields] = React.useState(control._getFieldArray(name));\n const ids = React.useRef(control._getFieldArray(name).map(generateId));\n const _fieldIds = React.useRef(fields);\n const _name = React.useRef(name);\n const _actioned = React.useRef(false);\n _name.current = name;\n _fieldIds.current = fields;\n control._names.array.add(name);\n rules &&\n control.register(name, rules);\n useSubscribe({\n next: ({ values, name: fieldArrayName, }) => {\n if (fieldArrayName === _name.current || !fieldArrayName) {\n const fieldValues = get(values, _name.current);\n if (Array.isArray(fieldValues)) {\n setFields(fieldValues);\n ids.current = fieldValues.map(generateId);\n }\n }\n },\n subject: control._subjects.array,\n });\n const updateValues = React.useCallback((updatedFieldArrayValues) => {\n _actioned.current = true;\n control._updateFieldArray(name, updatedFieldArrayValues);\n }, [control, name]);\n const append = (value, options) => {\n const appendValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = appendAt(control._getFieldArray(name), appendValue);\n control._names.focus = getFocusFieldName(name, updatedFieldArrayValues.length - 1, options);\n ids.current = appendAt(ids.current, appendValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, appendAt, {\n argA: fillEmptyArray(value),\n });\n };\n const prepend = (value, options) => {\n const prependValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = prependAt(control._getFieldArray(name), prependValue);\n control._names.focus = getFocusFieldName(name, 0, options);\n ids.current = prependAt(ids.current, prependValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, prependAt, {\n argA: fillEmptyArray(value),\n });\n };\n const remove = (index) => {\n const updatedFieldArrayValues = removeArrayAt(control._getFieldArray(name), index);\n ids.current = removeArrayAt(ids.current, index);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n !Array.isArray(get(control._fields, name)) &&\n set(control._fields, name, undefined);\n control._updateFieldArray(name, updatedFieldArrayValues, removeArrayAt, {\n argA: index,\n });\n };\n const insert$1 = (index, value, options) => {\n const insertValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = insert(control._getFieldArray(name), index, insertValue);\n control._names.focus = getFocusFieldName(name, index, options);\n ids.current = insert(ids.current, index, insertValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, insert, {\n argA: index,\n argB: fillEmptyArray(value),\n });\n };\n const swap = (indexA, indexB) => {\n const updatedFieldArrayValues = control._getFieldArray(name);\n swapArrayAt(updatedFieldArrayValues, indexA, indexB);\n swapArrayAt(ids.current, indexA, indexB);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, swapArrayAt, {\n argA: indexA,\n argB: indexB,\n }, false);\n };\n const move = (from, to) => {\n const updatedFieldArrayValues = control._getFieldArray(name);\n moveArrayAt(updatedFieldArrayValues, from, to);\n moveArrayAt(ids.current, from, to);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, moveArrayAt, {\n argA: from,\n argB: to,\n }, false);\n };\n const update = (index, value) => {\n const updateValue = cloneObject(value);\n const updatedFieldArrayValues = updateAt(control._getFieldArray(name), index, updateValue);\n ids.current = [...updatedFieldArrayValues].map((item, i) => !item || i === index ? generateId() : ids.current[i]);\n updateValues(updatedFieldArrayValues);\n setFields([...updatedFieldArrayValues]);\n control._updateFieldArray(name, updatedFieldArrayValues, updateAt, {\n argA: index,\n argB: updateValue,\n }, true, false);\n };\n const replace = (value) => {\n const updatedFieldArrayValues = convertToArrayPayload(cloneObject(value));\n ids.current = updatedFieldArrayValues.map(generateId);\n updateValues([...updatedFieldArrayValues]);\n setFields([...updatedFieldArrayValues]);\n control._updateFieldArray(name, [...updatedFieldArrayValues], (data) => data, {}, true, false);\n };\n React.useEffect(() => {\n control._state.action = false;\n isWatched(name, control._names) &&\n control._subjects.state.next({\n ...control._formState,\n });\n if (_actioned.current &&\n (!getValidationModes(control._options.mode).isOnSubmit ||\n control._formState.isSubmitted)) {\n if (control._options.resolver) {\n control._executeSchema([name]).then((result) => {\n const error = get(result.errors, name);\n const existingError = get(control._formState.errors, name);\n if (existingError\n ? (!error && existingError.type) ||\n (error &&\n (existingError.type !== error.type ||\n existingError.message !== error.message))\n : error && error.type) {\n error\n ? set(control._formState.errors, name, error)\n : unset(control._formState.errors, name);\n control._subjects.state.next({\n errors: control._formState.errors,\n });\n }\n });\n }\n else {\n const field = get(control._fields, name);\n if (field &&\n field._f &&\n !(getValidationModes(control._options.reValidateMode).isOnSubmit &&\n getValidationModes(control._options.mode).isOnSubmit)) {\n validateField(field, control._names.disabled, control._formValues, control._options.criteriaMode === VALIDATION_MODE.all, control._options.shouldUseNativeValidation, true).then((error) => !isEmptyObject(error) &&\n control._subjects.state.next({\n errors: updateFieldArrayRootError(control._formState.errors, error, name),\n }));\n }\n }\n }\n control._subjects.values.next({\n name,\n values: { ...control._formValues },\n });\n control._names.focus &&\n iterateFieldsByAction(control._fields, (ref, key) => {\n if (control._names.focus &&\n key.startsWith(control._names.focus) &&\n ref.focus) {\n ref.focus();\n return 1;\n }\n return;\n });\n control._names.focus = '';\n control._updateValid();\n _actioned.current = false;\n }, [fields, name, control]);\n React.useEffect(() => {\n !get(control._formValues, name) && control._updateFieldArray(name);\n return () => {\n (control._options.shouldUnregister || shouldUnregister) &&\n control.unregister(name);\n };\n }, [name, control, keyName, shouldUnregister]);\n return {\n swap: React.useCallback(swap, [updateValues, name, control]),\n move: React.useCallback(move, [updateValues, name, control]),\n prepend: React.useCallback(prepend, [updateValues, name, control]),\n append: React.useCallback(append, [updateValues, name, control]),\n remove: React.useCallback(remove, [updateValues, name, control]),\n insert: React.useCallback(insert$1, [updateValues, name, control]),\n update: React.useCallback(update, [updateValues, name, control]),\n replace: React.useCallback(replace, [updateValues, name, control]),\n fields: React.useMemo(() => fields.map((field, index) => ({\n ...field,\n [keyName]: ids.current[index] || generateId(),\n })), [fields, keyName]),\n };\n}\n\nvar createSubject = () => {\n let _observers = [];\n const next = (value) => {\n for (const observer of _observers) {\n observer.next && observer.next(value);\n }\n };\n const subscribe = (observer) => {\n _observers.push(observer);\n return {\n unsubscribe: () => {\n _observers = _observers.filter((o) => o !== observer);\n },\n };\n };\n const unsubscribe = () => {\n _observers = [];\n };\n return {\n get observers() {\n return _observers;\n },\n next,\n subscribe,\n unsubscribe,\n };\n};\n\nvar isPrimitive = (value) => isNullOrUndefined(value) || !isObjectType(value);\n\nfunction deepEqual(object1, object2) {\n if (isPrimitive(object1) || isPrimitive(object2)) {\n return object1 === object2;\n }\n if (isDateObject(object1) && isDateObject(object2)) {\n return object1.getTime() === object2.getTime();\n }\n const keys1 = Object.keys(object1);\n const keys2 = Object.keys(object2);\n if (keys1.length !== keys2.length) {\n return false;\n }\n for (const key of keys1) {\n const val1 = object1[key];\n if (!keys2.includes(key)) {\n return false;\n }\n if (key !== 'ref') {\n const val2 = object2[key];\n if ((isDateObject(val1) && isDateObject(val2)) ||\n (isObject(val1) && isObject(val2)) ||\n (Array.isArray(val1) && Array.isArray(val2))\n ? !deepEqual(val1, val2)\n : val1 !== val2) {\n return false;\n }\n }\n }\n return true;\n}\n\nvar isMultipleSelect = (element) => element.type === `select-multiple`;\n\nvar isRadioOrCheckbox = (ref) => isRadioInput(ref) || isCheckBoxInput(ref);\n\nvar live = (ref) => isHTMLElement(ref) && ref.isConnected;\n\nvar objectHasFunction = (data) => {\n for (const key in data) {\n if (isFunction(data[key])) {\n return true;\n }\n }\n return false;\n};\n\nfunction markFieldsDirty(data, fields = {}) {\n const isParentNodeArray = Array.isArray(data);\n if (isObject(data) || isParentNodeArray) {\n for (const key in data) {\n if (Array.isArray(data[key]) ||\n (isObject(data[key]) && !objectHasFunction(data[key]))) {\n fields[key] = Array.isArray(data[key]) ? [] : {};\n markFieldsDirty(data[key], fields[key]);\n }\n else if (!isNullOrUndefined(data[key])) {\n fields[key] = true;\n }\n }\n }\n return fields;\n}\nfunction getDirtyFieldsFromDefaultValues(data, formValues, dirtyFieldsFromValues) {\n const isParentNodeArray = Array.isArray(data);\n if (isObject(data) || isParentNodeArray) {\n for (const key in data) {\n if (Array.isArray(data[key]) ||\n (isObject(data[key]) && !objectHasFunction(data[key]))) {\n if (isUndefined(formValues) ||\n isPrimitive(dirtyFieldsFromValues[key])) {\n dirtyFieldsFromValues[key] = Array.isArray(data[key])\n ? markFieldsDirty(data[key], [])\n : { ...markFieldsDirty(data[key]) };\n }\n else {\n getDirtyFieldsFromDefaultValues(data[key], isNullOrUndefined(formValues) ? {} : formValues[key], dirtyFieldsFromValues[key]);\n }\n }\n else {\n dirtyFieldsFromValues[key] = !deepEqual(data[key], formValues[key]);\n }\n }\n }\n return dirtyFieldsFromValues;\n}\nvar getDirtyFields = (defaultValues, formValues) => getDirtyFieldsFromDefaultValues(defaultValues, formValues, markFieldsDirty(formValues));\n\nvar getFieldValueAs = (value, { valueAsNumber, valueAsDate, setValueAs }) => isUndefined(value)\n ? value\n : valueAsNumber\n ? value === ''\n ? NaN\n : value\n ? +value\n : value\n : valueAsDate && isString(value)\n ? new Date(value)\n : setValueAs\n ? setValueAs(value)\n : value;\n\nfunction getFieldValue(_f) {\n const ref = _f.ref;\n if (isFileInput(ref)) {\n return ref.files;\n }\n if (isRadioInput(ref)) {\n return getRadioValue(_f.refs).value;\n }\n if (isMultipleSelect(ref)) {\n return [...ref.selectedOptions].map(({ value }) => value);\n }\n if (isCheckBoxInput(ref)) {\n return getCheckboxValue(_f.refs).value;\n }\n return getFieldValueAs(isUndefined(ref.value) ? _f.ref.value : ref.value, _f);\n}\n\nvar getResolverOptions = (fieldsNames, _fields, criteriaMode, shouldUseNativeValidation) => {\n const fields = {};\n for (const name of fieldsNames) {\n const field = get(_fields, name);\n field && set(fields, name, field._f);\n }\n return {\n criteriaMode,\n names: [...fieldsNames],\n fields,\n shouldUseNativeValidation,\n };\n};\n\nvar getRuleValue = (rule) => isUndefined(rule)\n ? rule\n : isRegex(rule)\n ? rule.source\n : isObject(rule)\n ? isRegex(rule.value)\n ? rule.value.source\n : rule.value\n : rule;\n\nconst ASYNC_FUNCTION = 'AsyncFunction';\nvar hasPromiseValidation = (fieldReference) => !!fieldReference &&\n !!fieldReference.validate &&\n !!((isFunction(fieldReference.validate) &&\n fieldReference.validate.constructor.name === ASYNC_FUNCTION) ||\n (isObject(fieldReference.validate) &&\n Object.values(fieldReference.validate).find((validateFunction) => validateFunction.constructor.name === ASYNC_FUNCTION)));\n\nvar hasValidation = (options) => options.mount &&\n (options.required ||\n options.min ||\n options.max ||\n options.maxLength ||\n options.minLength ||\n options.pattern ||\n options.validate);\n\nfunction schemaErrorLookup(errors, _fields, name) {\n const error = get(errors, name);\n if (error || isKey(name)) {\n return {\n error,\n name,\n };\n }\n const names = name.split('.');\n while (names.length) {\n const fieldName = names.join('.');\n const field = get(_fields, fieldName);\n const foundError = get(errors, fieldName);\n if (field && !Array.isArray(field) && name !== fieldName) {\n return { name };\n }\n if (foundError && foundError.type) {\n return {\n name: fieldName,\n error: foundError,\n };\n }\n names.pop();\n }\n return {\n name,\n };\n}\n\nvar skipValidation = (isBlurEvent, isTouched, isSubmitted, reValidateMode, mode) => {\n if (mode.isOnAll) {\n return false;\n }\n else if (!isSubmitted && mode.isOnTouch) {\n return !(isTouched || isBlurEvent);\n }\n else if (isSubmitted ? reValidateMode.isOnBlur : mode.isOnBlur) {\n return !isBlurEvent;\n }\n else if (isSubmitted ? reValidateMode.isOnChange : mode.isOnChange) {\n return isBlurEvent;\n }\n return true;\n};\n\nvar unsetEmptyArray = (ref, name) => !compact(get(ref, name)).length && unset(ref, name);\n\nconst defaultOptions = {\n mode: VALIDATION_MODE.onSubmit,\n reValidateMode: VALIDATION_MODE.onChange,\n shouldFocusError: true,\n};\nfunction createFormControl(props = {}) {\n let _options = {\n ...defaultOptions,\n ...props,\n };\n let _formState = {\n submitCount: 0,\n isDirty: false,\n isLoading: isFunction(_options.defaultValues),\n isValidating: false,\n isSubmitted: false,\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n touchedFields: {},\n dirtyFields: {},\n validatingFields: {},\n errors: _options.errors || {},\n disabled: _options.disabled || false,\n };\n let _fields = {};\n let _defaultValues = isObject(_options.defaultValues) || isObject(_options.values)\n ? cloneObject(_options.defaultValues || _options.values) || {}\n : {};\n let _formValues = _options.shouldUnregister\n ? {}\n : cloneObject(_defaultValues);\n let _state = {\n action: false,\n mount: false,\n watch: false,\n };\n let _names = {\n mount: new Set(),\n disabled: new Set(),\n unMount: new Set(),\n array: new Set(),\n watch: new Set(),\n };\n let delayErrorCallback;\n let timer = 0;\n const _proxyFormState = {\n isDirty: false,\n dirtyFields: false,\n validatingFields: false,\n touchedFields: false,\n isValidating: false,\n isValid: false,\n errors: false,\n };\n const _subjects = {\n values: createSubject(),\n array: createSubject(),\n state: createSubject(),\n };\n const validationModeBeforeSubmit = getValidationModes(_options.mode);\n const validationModeAfterSubmit = getValidationModes(_options.reValidateMode);\n const shouldDisplayAllAssociatedErrors = _options.criteriaMode === VALIDATION_MODE.all;\n const debounce = (callback) => (wait) => {\n clearTimeout(timer);\n timer = setTimeout(callback, wait);\n };\n const _updateValid = async (shouldUpdateValid) => {\n if (!_options.disabled && (_proxyFormState.isValid || shouldUpdateValid)) {\n const isValid = _options.resolver\n ? isEmptyObject((await _executeSchema()).errors)\n : await executeBuiltInValidation(_fields, true);\n if (isValid !== _formState.isValid) {\n _subjects.state.next({\n isValid,\n });\n }\n }\n };\n const _updateIsValidating = (names, isValidating) => {\n if (!_options.disabled &&\n (_proxyFormState.isValidating || _proxyFormState.validatingFields)) {\n (names || Array.from(_names.mount)).forEach((name) => {\n if (name) {\n isValidating\n ? set(_formState.validatingFields, name, isValidating)\n : unset(_formState.validatingFields, name);\n }\n });\n _subjects.state.next({\n validatingFields: _formState.validatingFields,\n isValidating: !isEmptyObject(_formState.validatingFields),\n });\n }\n };\n const _updateFieldArray = (name, values = [], method, args, shouldSetValues = true, shouldUpdateFieldsAndState = true) => {\n if (args && method && !_options.disabled) {\n _state.action = true;\n if (shouldUpdateFieldsAndState && Array.isArray(get(_fields, name))) {\n const fieldValues = method(get(_fields, name), args.argA, args.argB);\n shouldSetValues && set(_fields, name, fieldValues);\n }\n if (shouldUpdateFieldsAndState &&\n Array.isArray(get(_formState.errors, name))) {\n const errors = method(get(_formState.errors, name), args.argA, args.argB);\n shouldSetValues && set(_formState.errors, name, errors);\n unsetEmptyArray(_formState.errors, name);\n }\n if (_proxyFormState.touchedFields &&\n shouldUpdateFieldsAndState &&\n Array.isArray(get(_formState.touchedFields, name))) {\n const touchedFields = method(get(_formState.touchedFields, name), args.argA, args.argB);\n shouldSetValues && set(_formState.touchedFields, name, touchedFields);\n }\n if (_proxyFormState.dirtyFields) {\n _formState.dirtyFields = getDirtyFields(_defaultValues, _formValues);\n }\n _subjects.state.next({\n name,\n isDirty: _getDirty(name, values),\n dirtyFields: _formState.dirtyFields,\n errors: _formState.errors,\n isValid: _formState.isValid,\n });\n }\n else {\n set(_formValues, name, values);\n }\n };\n const updateErrors = (name, error) => {\n set(_formState.errors, name, error);\n _subjects.state.next({\n errors: _formState.errors,\n });\n };\n const _setErrors = (errors) => {\n _formState.errors = errors;\n _subjects.state.next({\n errors: _formState.errors,\n isValid: false,\n });\n };\n const updateValidAndValue = (name, shouldSkipSetValueAs, value, ref) => {\n const field = get(_fields, name);\n if (field) {\n const defaultValue = get(_formValues, name, isUndefined(value) ? get(_defaultValues, name) : value);\n isUndefined(defaultValue) ||\n (ref && ref.defaultChecked) ||\n shouldSkipSetValueAs\n ? set(_formValues, name, shouldSkipSetValueAs ? defaultValue : getFieldValue(field._f))\n : setFieldValue(name, defaultValue);\n _state.mount && _updateValid();\n }\n };\n const updateTouchAndDirty = (name, fieldValue, isBlurEvent, shouldDirty, shouldRender) => {\n let shouldUpdateField = false;\n let isPreviousDirty = false;\n const output = {\n name,\n };\n if (!_options.disabled) {\n const disabledField = !!(get(_fields, name) &&\n get(_fields, name)._f &&\n get(_fields, name)._f.disabled);\n if (!isBlurEvent || shouldDirty) {\n if (_proxyFormState.isDirty) {\n isPreviousDirty = _formState.isDirty;\n _formState.isDirty = output.isDirty = _getDirty();\n shouldUpdateField = isPreviousDirty !== output.isDirty;\n }\n const isCurrentFieldPristine = disabledField || deepEqual(get(_defaultValues, name), fieldValue);\n isPreviousDirty = !!(!disabledField && get(_formState.dirtyFields, name));\n isCurrentFieldPristine || disabledField\n ? unset(_formState.dirtyFields, name)\n : set(_formState.dirtyFields, name, true);\n output.dirtyFields = _formState.dirtyFields;\n shouldUpdateField =\n shouldUpdateField ||\n (_proxyFormState.dirtyFields &&\n isPreviousDirty !== !isCurrentFieldPristine);\n }\n if (isBlurEvent) {\n const isPreviousFieldTouched = get(_formState.touchedFields, name);\n if (!isPreviousFieldTouched) {\n set(_formState.touchedFields, name, isBlurEvent);\n output.touchedFields = _formState.touchedFields;\n shouldUpdateField =\n shouldUpdateField ||\n (_proxyFormState.touchedFields &&\n isPreviousFieldTouched !== isBlurEvent);\n }\n }\n shouldUpdateField && shouldRender && _subjects.state.next(output);\n }\n return shouldUpdateField ? output : {};\n };\n const shouldRenderByError = (name, isValid, error, fieldState) => {\n const previousFieldError = get(_formState.errors, name);\n const shouldUpdateValid = _proxyFormState.isValid &&\n isBoolean(isValid) &&\n _formState.isValid !== isValid;\n if (_options.delayError && error) {\n delayErrorCallback = debounce(() => updateErrors(name, error));\n delayErrorCallback(_options.delayError);\n }\n else {\n clearTimeout(timer);\n delayErrorCallback = null;\n error\n ? set(_formState.errors, name, error)\n : unset(_formState.errors, name);\n }\n if ((error ? !deepEqual(previousFieldError, error) : previousFieldError) ||\n !isEmptyObject(fieldState) ||\n shouldUpdateValid) {\n const updatedFormState = {\n ...fieldState,\n ...(shouldUpdateValid && isBoolean(isValid) ? { isValid } : {}),\n errors: _formState.errors,\n name,\n };\n _formState = {\n ..._formState,\n ...updatedFormState,\n };\n _subjects.state.next(updatedFormState);\n }\n };\n const _executeSchema = async (name) => {\n _updateIsValidating(name, true);\n const result = await _options.resolver(_formValues, _options.context, getResolverOptions(name || _names.mount, _fields, _options.criteriaMode, _options.shouldUseNativeValidation));\n _updateIsValidating(name);\n return result;\n };\n const executeSchemaAndUpdateState = async (names) => {\n const { errors } = await _executeSchema(names);\n if (names) {\n for (const name of names) {\n const error = get(errors, name);\n error\n ? set(_formState.errors, name, error)\n : unset(_formState.errors, name);\n }\n }\n else {\n _formState.errors = errors;\n }\n return errors;\n };\n const executeBuiltInValidation = async (fields, shouldOnlyCheckValid, context = {\n valid: true,\n }) => {\n for (const name in fields) {\n const field = fields[name];\n if (field) {\n const { _f, ...fieldValue } = field;\n if (_f) {\n const isFieldArrayRoot = _names.array.has(_f.name);\n const isPromiseFunction = field._f && hasPromiseValidation(field._f);\n if (isPromiseFunction && _proxyFormState.validatingFields) {\n _updateIsValidating([name], true);\n }\n const fieldError = await validateField(field, _names.disabled, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation && !shouldOnlyCheckValid, isFieldArrayRoot);\n if (isPromiseFunction && _proxyFormState.validatingFields) {\n _updateIsValidating([name]);\n }\n if (fieldError[_f.name]) {\n context.valid = false;\n if (shouldOnlyCheckValid) {\n break;\n }\n }\n !shouldOnlyCheckValid &&\n (get(fieldError, _f.name)\n ? isFieldArrayRoot\n ? updateFieldArrayRootError(_formState.errors, fieldError, _f.name)\n : set(_formState.errors, _f.name, fieldError[_f.name])\n : unset(_formState.errors, _f.name));\n }\n !isEmptyObject(fieldValue) &&\n (await executeBuiltInValidation(fieldValue, shouldOnlyCheckValid, context));\n }\n }\n return context.valid;\n };\n const _removeUnmounted = () => {\n for (const name of _names.unMount) {\n const field = get(_fields, name);\n field &&\n (field._f.refs\n ? field._f.refs.every((ref) => !live(ref))\n : !live(field._f.ref)) &&\n unregister(name);\n }\n _names.unMount = new Set();\n };\n const _getDirty = (name, data) => !_options.disabled &&\n (name && data && set(_formValues, name, data),\n !deepEqual(getValues(), _defaultValues));\n const _getWatch = (names, defaultValue, isGlobal) => generateWatchOutput(names, _names, {\n ...(_state.mount\n ? _formValues\n : isUndefined(defaultValue)\n ? _defaultValues\n : isString(names)\n ? { [names]: defaultValue }\n : defaultValue),\n }, isGlobal, defaultValue);\n const _getFieldArray = (name) => compact(get(_state.mount ? _formValues : _defaultValues, name, _options.shouldUnregister ? get(_defaultValues, name, []) : []));\n const setFieldValue = (name, value, options = {}) => {\n const field = get(_fields, name);\n let fieldValue = value;\n if (field) {\n const fieldReference = field._f;\n if (fieldReference) {\n !fieldReference.disabled &&\n set(_formValues, name, getFieldValueAs(value, fieldReference));\n fieldValue =\n isHTMLElement(fieldReference.ref) && isNullOrUndefined(value)\n ? ''\n : value;\n if (isMultipleSelect(fieldReference.ref)) {\n [...fieldReference.ref.options].forEach((optionRef) => (optionRef.selected = fieldValue.includes(optionRef.value)));\n }\n else if (fieldReference.refs) {\n if (isCheckBoxInput(fieldReference.ref)) {\n fieldReference.refs.length > 1\n ? fieldReference.refs.forEach((checkboxRef) => (!checkboxRef.defaultChecked || !checkboxRef.disabled) &&\n (checkboxRef.checked = Array.isArray(fieldValue)\n ? !!fieldValue.find((data) => data === checkboxRef.value)\n : fieldValue === checkboxRef.value))\n : fieldReference.refs[0] &&\n (fieldReference.refs[0].checked = !!fieldValue);\n }\n else {\n fieldReference.refs.forEach((radioRef) => (radioRef.checked = radioRef.value === fieldValue));\n }\n }\n else if (isFileInput(fieldReference.ref)) {\n fieldReference.ref.value = '';\n }\n else {\n fieldReference.ref.value = fieldValue;\n if (!fieldReference.ref.type) {\n _subjects.values.next({\n name,\n values: { ..._formValues },\n });\n }\n }\n }\n }\n (options.shouldDirty || options.shouldTouch) &&\n updateTouchAndDirty(name, fieldValue, options.shouldTouch, options.shouldDirty, true);\n options.shouldValidate && trigger(name);\n };\n const setValues = (name, value, options) => {\n for (const fieldKey in value) {\n const fieldValue = value[fieldKey];\n const fieldName = `${name}.${fieldKey}`;\n const field = get(_fields, fieldName);\n (_names.array.has(name) ||\n isObject(fieldValue) ||\n (field && !field._f)) &&\n !isDateObject(fieldValue)\n ? setValues(fieldName, fieldValue, options)\n : setFieldValue(fieldName, fieldValue, options);\n }\n };\n const setValue = (name, value, options = {}) => {\n const field = get(_fields, name);\n const isFieldArray = _names.array.has(name);\n const cloneValue = cloneObject(value);\n set(_formValues, name, cloneValue);\n if (isFieldArray) {\n _subjects.array.next({\n name,\n values: { ..._formValues },\n });\n if ((_proxyFormState.isDirty || _proxyFormState.dirtyFields) &&\n options.shouldDirty) {\n _subjects.state.next({\n name,\n dirtyFields: getDirtyFields(_defaultValues, _formValues),\n isDirty: _getDirty(name, cloneValue),\n });\n }\n }\n else {\n field && !field._f && !isNullOrUndefined(cloneValue)\n ? setValues(name, cloneValue, options)\n : setFieldValue(name, cloneValue, options);\n }\n isWatched(name, _names) && _subjects.state.next({ ..._formState });\n _subjects.values.next({\n name: _state.mount ? name : undefined,\n values: { ..._formValues },\n });\n };\n const onChange = async (event) => {\n _state.mount = true;\n const target = event.target;\n let name = target.name;\n let isFieldValueUpdated = true;\n const field = get(_fields, name);\n const getCurrentFieldValue = () => target.type ? getFieldValue(field._f) : getEventValue(event);\n const _updateIsFieldValueUpdated = (fieldValue) => {\n isFieldValueUpdated =\n Number.isNaN(fieldValue) ||\n (isDateObject(fieldValue) && isNaN(fieldValue.getTime())) ||\n deepEqual(fieldValue, get(_formValues, name, fieldValue));\n };\n if (field) {\n let error;\n let isValid;\n const fieldValue = getCurrentFieldValue();\n const isBlurEvent = event.type === EVENTS.BLUR || event.type === EVENTS.FOCUS_OUT;\n const shouldSkipValidation = (!hasValidation(field._f) &&\n !_options.resolver &&\n !get(_formState.errors, name) &&\n !field._f.deps) ||\n skipValidation(isBlurEvent, get(_formState.touchedFields, name), _formState.isSubmitted, validationModeAfterSubmit, validationModeBeforeSubmit);\n const watched = isWatched(name, _names, isBlurEvent);\n set(_formValues, name, fieldValue);\n if (isBlurEvent) {\n field._f.onBlur && field._f.onBlur(event);\n delayErrorCallback && delayErrorCallback(0);\n }\n else if (field._f.onChange) {\n field._f.onChange(event);\n }\n const fieldState = updateTouchAndDirty(name, fieldValue, isBlurEvent, false);\n const shouldRender = !isEmptyObject(fieldState) || watched;\n !isBlurEvent &&\n _subjects.values.next({\n name,\n type: event.type,\n values: { ..._formValues },\n });\n if (shouldSkipValidation) {\n if (_proxyFormState.isValid) {\n if (_options.mode === 'onBlur' && isBlurEvent) {\n _updateValid();\n }\n else if (!isBlurEvent) {\n _updateValid();\n }\n }\n return (shouldRender &&\n _subjects.state.next({ name, ...(watched ? {} : fieldState) }));\n }\n !isBlurEvent && watched && _subjects.state.next({ ..._formState });\n if (_options.resolver) {\n const { errors } = await _executeSchema([name]);\n _updateIsFieldValueUpdated(fieldValue);\n if (isFieldValueUpdated) {\n const previousErrorLookupResult = schemaErrorLookup(_formState.errors, _fields, name);\n const errorLookupResult = schemaErrorLookup(errors, _fields, previousErrorLookupResult.name || name);\n error = errorLookupResult.error;\n name = errorLookupResult.name;\n isValid = isEmptyObject(errors);\n }\n }\n else {\n _updateIsValidating([name], true);\n error = (await validateField(field, _names.disabled, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation))[name];\n _updateIsValidating([name]);\n _updateIsFieldValueUpdated(fieldValue);\n if (isFieldValueUpdated) {\n if (error) {\n isValid = false;\n }\n else if (_proxyFormState.isValid) {\n isValid = await executeBuiltInValidation(_fields, true);\n }\n }\n }\n if (isFieldValueUpdated) {\n field._f.deps &&\n trigger(field._f.deps);\n shouldRenderByError(name, isValid, error, fieldState);\n }\n }\n };\n const _focusInput = (ref, key) => {\n if (get(_formState.errors, key) && ref.focus) {\n ref.focus();\n return 1;\n }\n return;\n };\n const trigger = async (name, options = {}) => {\n let isValid;\n let validationResult;\n const fieldNames = convertToArrayPayload(name);\n if (_options.resolver) {\n const errors = await executeSchemaAndUpdateState(isUndefined(name) ? name : fieldNames);\n isValid = isEmptyObject(errors);\n validationResult = name\n ? !fieldNames.some((name) => get(errors, name))\n : isValid;\n }\n else if (name) {\n validationResult = (await Promise.all(fieldNames.map(async (fieldName) => {\n const field = get(_fields, fieldName);\n return await executeBuiltInValidation(field && field._f ? { [fieldName]: field } : field);\n }))).every(Boolean);\n !(!validationResult && !_formState.isValid) && _updateValid();\n }\n else {\n validationResult = isValid = await executeBuiltInValidation(_fields);\n }\n _subjects.state.next({\n ...(!isString(name) ||\n (_proxyFormState.isValid && isValid !== _formState.isValid)\n ? {}\n : { name }),\n ...(_options.resolver || !name ? { isValid } : {}),\n errors: _formState.errors,\n });\n options.shouldFocus &&\n !validationResult &&\n iterateFieldsByAction(_fields, _focusInput, name ? fieldNames : _names.mount);\n return validationResult;\n };\n const getValues = (fieldNames) => {\n const values = {\n ...(_state.mount ? _formValues : _defaultValues),\n };\n return isUndefined(fieldNames)\n ? values\n : isString(fieldNames)\n ? get(values, fieldNames)\n : fieldNames.map((name) => get(values, name));\n };\n const getFieldState = (name, formState) => ({\n invalid: !!get((formState || _formState).errors, name),\n isDirty: !!get((formState || _formState).dirtyFields, name),\n error: get((formState || _formState).errors, name),\n isValidating: !!get(_formState.validatingFields, name),\n isTouched: !!get((formState || _formState).touchedFields, name),\n });\n const clearErrors = (name) => {\n name &&\n convertToArrayPayload(name).forEach((inputName) => unset(_formState.errors, inputName));\n _subjects.state.next({\n errors: name ? _formState.errors : {},\n });\n };\n const setError = (name, error, options) => {\n const ref = (get(_fields, name, { _f: {} })._f || {}).ref;\n const currentError = get(_formState.errors, name) || {};\n // Don't override existing error messages elsewhere in the object tree.\n const { ref: currentRef, message, type, ...restOfErrorTree } = currentError;\n set(_formState.errors, name, {\n ...restOfErrorTree,\n ...error,\n ref,\n });\n _subjects.state.next({\n name,\n errors: _formState.errors,\n isValid: false,\n });\n options && options.shouldFocus && ref && ref.focus && ref.focus();\n };\n const watch = (name, defaultValue) => isFunction(name)\n ? _subjects.values.subscribe({\n next: (payload) => name(_getWatch(undefined, defaultValue), payload),\n })\n : _getWatch(name, defaultValue, true);\n const unregister = (name, options = {}) => {\n for (const fieldName of name ? convertToArrayPayload(name) : _names.mount) {\n _names.mount.delete(fieldName);\n _names.array.delete(fieldName);\n if (!options.keepValue) {\n unset(_fields, fieldName);\n unset(_formValues, fieldName);\n }\n !options.keepError && unset(_formState.errors, fieldName);\n !options.keepDirty && unset(_formState.dirtyFields, fieldName);\n !options.keepTouched && unset(_formState.touchedFields, fieldName);\n !options.keepIsValidating &&\n unset(_formState.validatingFields, fieldName);\n !_options.shouldUnregister &&\n !options.keepDefaultValue &&\n unset(_defaultValues, fieldName);\n }\n _subjects.values.next({\n values: { ..._formValues },\n });\n _subjects.state.next({\n ..._formState,\n ...(!options.keepDirty ? {} : { isDirty: _getDirty() }),\n });\n !options.keepIsValid && _updateValid();\n };\n const _updateDisabledField = ({ disabled, name, field, fields, }) => {\n if ((isBoolean(disabled) && _state.mount) ||\n !!disabled ||\n _names.disabled.has(name)) {\n disabled ? _names.disabled.add(name) : _names.disabled.delete(name);\n updateTouchAndDirty(name, getFieldValue(field ? field._f : get(fields, name)._f), false, false, true);\n }\n };\n const register = (name, options = {}) => {\n let field = get(_fields, name);\n const disabledIsDefined = isBoolean(options.disabled) || isBoolean(_options.disabled);\n set(_fields, name, {\n ...(field || {}),\n _f: {\n ...(field && field._f ? field._f : { ref: { name } }),\n name,\n mount: true,\n ...options,\n },\n });\n _names.mount.add(name);\n if (field) {\n _updateDisabledField({\n field,\n disabled: isBoolean(options.disabled)\n ? options.disabled\n : _options.disabled,\n name,\n });\n }\n else {\n updateValidAndValue(name, true, options.value);\n }\n return {\n ...(disabledIsDefined\n ? { disabled: options.disabled || _options.disabled }\n : {}),\n ...(_options.progressive\n ? {\n required: !!options.required,\n min: getRuleValue(options.min),\n max: getRuleValue(options.max),\n minLength: getRuleValue(options.minLength),\n maxLength: getRuleValue(options.maxLength),\n pattern: getRuleValue(options.pattern),\n }\n : {}),\n name,\n onChange,\n onBlur: onChange,\n ref: (ref) => {\n if (ref) {\n register(name, options);\n field = get(_fields, name);\n const fieldRef = isUndefined(ref.value)\n ? ref.querySelectorAll\n ? ref.querySelectorAll('input,select,textarea')[0] || ref\n : ref\n : ref;\n const radioOrCheckbox = isRadioOrCheckbox(fieldRef);\n const refs = field._f.refs || [];\n if (radioOrCheckbox\n ? refs.find((option) => option === fieldRef)\n : fieldRef === field._f.ref) {\n return;\n }\n set(_fields, name, {\n _f: {\n ...field._f,\n ...(radioOrCheckbox\n ? {\n refs: [\n ...refs.filter(live),\n fieldRef,\n ...(Array.isArray(get(_defaultValues, name)) ? [{}] : []),\n ],\n ref: { type: fieldRef.type, name },\n }\n : { ref: fieldRef }),\n },\n });\n updateValidAndValue(name, false, undefined, fieldRef);\n }\n else {\n field = get(_fields, name, {});\n if (field._f) {\n field._f.mount = false;\n }\n (_options.shouldUnregister || options.shouldUnregister) &&\n !(isNameInFieldArray(_names.array, name) && _state.action) &&\n _names.unMount.add(name);\n }\n },\n };\n };\n const _focusError = () => _options.shouldFocusError &&\n iterateFieldsByAction(_fields, _focusInput, _names.mount);\n const _disableForm = (disabled) => {\n if (isBoolean(disabled)) {\n _subjects.state.next({ disabled });\n iterateFieldsByAction(_fields, (ref, name) => {\n const currentField = get(_fields, name);\n if (currentField) {\n ref.disabled = currentField._f.disabled || disabled;\n if (Array.isArray(currentField._f.refs)) {\n currentField._f.refs.forEach((inputRef) => {\n inputRef.disabled = currentField._f.disabled || disabled;\n });\n }\n }\n }, 0, false);\n }\n };\n const handleSubmit = (onValid, onInvalid) => async (e) => {\n let onValidError = undefined;\n if (e) {\n e.preventDefault && e.preventDefault();\n e.persist && e.persist();\n }\n let fieldValues = cloneObject(_formValues);\n if (_names.disabled.size) {\n for (const name of _names.disabled) {\n set(fieldValues, name, undefined);\n }\n }\n _subjects.state.next({\n isSubmitting: true,\n });\n if (_options.resolver) {\n const { errors, values } = await _executeSchema();\n _formState.errors = errors;\n fieldValues = values;\n }\n else {\n await executeBuiltInValidation(_fields);\n }\n unset(_formState.errors, 'root');\n if (isEmptyObject(_formState.errors)) {\n _subjects.state.next({\n errors: {},\n });\n try {\n await onValid(fieldValues, e);\n }\n catch (error) {\n onValidError = error;\n }\n }\n else {\n if (onInvalid) {\n await onInvalid({ ..._formState.errors }, e);\n }\n _focusError();\n setTimeout(_focusError);\n }\n _subjects.state.next({\n isSubmitted: true,\n isSubmitting: false,\n isSubmitSuccessful: isEmptyObject(_formState.errors) && !onValidError,\n submitCount: _formState.submitCount + 1,\n errors: _formState.errors,\n });\n if (onValidError) {\n throw onValidError;\n }\n };\n const resetField = (name, options = {}) => {\n if (get(_fields, name)) {\n if (isUndefined(options.defaultValue)) {\n setValue(name, cloneObject(get(_defaultValues, name)));\n }\n else {\n setValue(name, options.defaultValue);\n set(_defaultValues, name, cloneObject(options.defaultValue));\n }\n if (!options.keepTouched) {\n unset(_formState.touchedFields, name);\n }\n if (!options.keepDirty) {\n unset(_formState.dirtyFields, name);\n _formState.isDirty = options.defaultValue\n ? _getDirty(name, cloneObject(get(_defaultValues, name)))\n : _getDirty();\n }\n if (!options.keepError) {\n unset(_formState.errors, name);\n _proxyFormState.isValid && _updateValid();\n }\n _subjects.state.next({ ..._formState });\n }\n };\n const _reset = (formValues, keepStateOptions = {}) => {\n const updatedValues = formValues ? cloneObject(formValues) : _defaultValues;\n const cloneUpdatedValues = cloneObject(updatedValues);\n const isEmptyResetValues = isEmptyObject(formValues);\n const values = isEmptyResetValues ? _defaultValues : cloneUpdatedValues;\n if (!keepStateOptions.keepDefaultValues) {\n _defaultValues = updatedValues;\n }\n if (!keepStateOptions.keepValues) {\n if (keepStateOptions.keepDirtyValues) {\n const fieldsToCheck = new Set([\n ..._names.mount,\n ...Object.keys(getDirtyFields(_defaultValues, _formValues)),\n ]);\n for (const fieldName of Array.from(fieldsToCheck)) {\n get(_formState.dirtyFields, fieldName)\n ? set(values, fieldName, get(_formValues, fieldName))\n : setValue(fieldName, get(values, fieldName));\n }\n }\n else {\n if (isWeb && isUndefined(formValues)) {\n for (const name of _names.mount) {\n const field = get(_fields, name);\n if (field && field._f) {\n const fieldReference = Array.isArray(field._f.refs)\n ? field._f.refs[0]\n : field._f.ref;\n if (isHTMLElement(fieldReference)) {\n const form = fieldReference.closest('form');\n if (form) {\n form.reset();\n break;\n }\n }\n }\n }\n }\n _fields = {};\n }\n _formValues = _options.shouldUnregister\n ? keepStateOptions.keepDefaultValues\n ? cloneObject(_defaultValues)\n : {}\n : cloneObject(values);\n _subjects.array.next({\n values: { ...values },\n });\n _subjects.values.next({\n values: { ...values },\n });\n }\n _names = {\n mount: keepStateOptions.keepDirtyValues ? _names.mount : new Set(),\n unMount: new Set(),\n array: new Set(),\n disabled: new Set(),\n watch: new Set(),\n watchAll: false,\n focus: '',\n };\n _state.mount =\n !_proxyFormState.isValid ||\n !!keepStateOptions.keepIsValid ||\n !!keepStateOptions.keepDirtyValues;\n _state.watch = !!_options.shouldUnregister;\n _subjects.state.next({\n submitCount: keepStateOptions.keepSubmitCount\n ? _formState.submitCount\n : 0,\n isDirty: isEmptyResetValues\n ? false\n : keepStateOptions.keepDirty\n ? _formState.isDirty\n : !!(keepStateOptions.keepDefaultValues &&\n !deepEqual(formValues, _defaultValues)),\n isSubmitted: keepStateOptions.keepIsSubmitted\n ? _formState.isSubmitted\n : false,\n dirtyFields: isEmptyResetValues\n ? {}\n : keepStateOptions.keepDirtyValues\n ? keepStateOptions.keepDefaultValues && _formValues\n ? getDirtyFields(_defaultValues, _formValues)\n : _formState.dirtyFields\n : keepStateOptions.keepDefaultValues && formValues\n ? getDirtyFields(_defaultValues, formValues)\n : keepStateOptions.keepDirty\n ? _formState.dirtyFields\n : {},\n touchedFields: keepStateOptions.keepTouched\n ? _formState.touchedFields\n : {},\n errors: keepStateOptions.keepErrors ? _formState.errors : {},\n isSubmitSuccessful: keepStateOptions.keepIsSubmitSuccessful\n ? _formState.isSubmitSuccessful\n : false,\n isSubmitting: false,\n });\n };\n const reset = (formValues, keepStateOptions) => _reset(isFunction(formValues)\n ? formValues(_formValues)\n : formValues, keepStateOptions);\n const setFocus = (name, options = {}) => {\n const field = get(_fields, name);\n const fieldReference = field && field._f;\n if (fieldReference) {\n const fieldRef = fieldReference.refs\n ? fieldReference.refs[0]\n : fieldReference.ref;\n if (fieldRef.focus) {\n fieldRef.focus();\n options.shouldSelect &&\n isFunction(fieldRef.select) &&\n fieldRef.select();\n }\n }\n };\n const _updateFormState = (updatedFormState) => {\n _formState = {\n ..._formState,\n ...updatedFormState,\n };\n };\n const _resetDefaultValues = () => isFunction(_options.defaultValues) &&\n _options.defaultValues().then((values) => {\n reset(values, _options.resetOptions);\n _subjects.state.next({\n isLoading: false,\n });\n });\n return {\n control: {\n register,\n unregister,\n getFieldState,\n handleSubmit,\n setError,\n _executeSchema,\n _getWatch,\n _getDirty,\n _updateValid,\n _removeUnmounted,\n _updateFieldArray,\n _updateDisabledField,\n _getFieldArray,\n _reset,\n _resetDefaultValues,\n _updateFormState,\n _disableForm,\n _subjects,\n _proxyFormState,\n _setErrors,\n get _fields() {\n return _fields;\n },\n get _formValues() {\n return _formValues;\n },\n get _state() {\n return _state;\n },\n set _state(value) {\n _state = value;\n },\n get _defaultValues() {\n return _defaultValues;\n },\n get _names() {\n return _names;\n },\n set _names(value) {\n _names = value;\n },\n get _formState() {\n return _formState;\n },\n set _formState(value) {\n _formState = value;\n },\n get _options() {\n return _options;\n },\n set _options(value) {\n _options = {\n ..._options,\n ...value,\n };\n },\n },\n trigger,\n register,\n handleSubmit,\n watch,\n setValue,\n getValues,\n reset,\n resetField,\n clearErrors,\n unregister,\n setError,\n setFocus,\n getFieldState,\n };\n}\n\n/**\n * Custom hook to manage the entire form.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useform) • [Demo](https://codesandbox.io/s/react-hook-form-get-started-ts-5ksmm) • [Video](https://www.youtube.com/watch?v=RkXv4AXXC_4)\n *\n * @param props - form configuration and validation parameters.\n *\n * @returns methods - individual functions to manage the form state. {@link UseFormReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, handleSubmit, watch, formState: { errors } } = useForm();\n * const onSubmit = data => console.log(data);\n *\n * console.log(watch(\"example\"));\n *\n * return (\n * <form onSubmit={handleSubmit(onSubmit)}>\n * <input defaultValue=\"test\" {...register(\"example\")} />\n * <input {...register(\"exampleRequired\", { required: true })} />\n * {errors.exampleRequired && <span>This field is required</span>}\n * <button>Submit</button>\n * </form>\n * );\n * }\n * ```\n */\nfunction useForm(props = {}) {\n const _formControl = React.useRef(undefined);\n const _values = React.useRef(undefined);\n const [formState, updateFormState] = React.useState({\n isDirty: false,\n isValidating: false,\n isLoading: isFunction(props.defaultValues),\n isSubmitted: false,\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n submitCount: 0,\n dirtyFields: {},\n touchedFields: {},\n validatingFields: {},\n errors: props.errors || {},\n disabled: props.disabled || false,\n defaultValues: isFunction(props.defaultValues)\n ? undefined\n : props.defaultValues,\n });\n if (!_formControl.current) {\n _formControl.current = {\n ...createFormControl(props),\n formState,\n };\n }\n const control = _formControl.current.control;\n control._options = props;\n useSubscribe({\n subject: control._subjects.state,\n next: (value) => {\n if (shouldRenderFormState(value, control._proxyFormState, control._updateFormState, true)) {\n updateFormState({ ...control._formState });\n }\n },\n });\n React.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);\n React.useEffect(() => {\n if (control._proxyFormState.isDirty) {\n const isDirty = control._getDirty();\n if (isDirty !== formState.isDirty) {\n control._subjects.state.next({\n isDirty,\n });\n }\n }\n }, [control, formState.isDirty]);\n React.useEffect(() => {\n if (props.values && !deepEqual(props.values, _values.current)) {\n control._reset(props.values, control._options.resetOptions);\n _values.current = props.values;\n updateFormState((state) => ({ ...state }));\n }\n else {\n control._resetDefaultValues();\n }\n }, [props.values, control]);\n React.useEffect(() => {\n if (props.errors) {\n control._setErrors(props.errors);\n }\n }, [props.errors, control]);\n React.useEffect(() => {\n if (!control._state.mount) {\n control._updateValid();\n control._state.mount = true;\n }\n if (control._state.watch) {\n control._state.watch = false;\n control._subjects.state.next({ ...control._formState });\n }\n control._removeUnmounted();\n });\n React.useEffect(() => {\n props.shouldUnregister &&\n control._subjects.values.next({\n values: control._getWatch(),\n });\n }, [props.shouldUnregister, control]);\n _formControl.current.formState = getProxyFormState(formState, control);\n return _formControl.current;\n}\n\nexport { Controller, Form, FormProvider, appendErrors, get, set, useController, useFieldArray, useForm, useFormContext, useFormState, useWatch };\n//# sourceMappingURL=index.esm.mjs.map\n","import { jsx as _jsx, Fragment as _Fragment } from \"react/jsx-runtime\";\n// useForm.tsx\nimport { useState } from \"react\";\nimport styles from \"./style.module.css\";\nimport { useForm as useHookForm, } from \"react-hook-form\";\nconst useForm = () => {\n const [globalError, setGlobalError] = useState();\n const form = useHookForm({\n reValidateMode: \"onChange\",\n });\n const register = (name, options) => {\n const inputRegister = form.register(name, options);\n const onChange = (e) => {\n setGlobalError(null);\n form.clearErrors(name);\n return inputRegister.onChange(e);\n };\n const errors = form?.formState.errors;\n const formvalue = form.watch(name);\n return {\n ...inputRegister,\n onChange,\n formvalue,\n error: errors?.[name]?.message?.toString(),\n };\n };\n const setErrors = (e) => {\n if (e.errors) {\n Object.keys(e.errors).forEach((field) => form.setError(field, { message: e.errors?.[field]?.[0] }));\n }\n else {\n setGlobalError(e);\n }\n };\n const GlobalError = () => (_jsx(_Fragment, { children: globalError && !globalError.errors && _jsx(\"div\", { className: styles[\"global-error\"], children: globalError.message }) }));\n return {\n ...form,\n register,\n GlobalError,\n setErrors,\n };\n};\nexport const validate = {\n email: {\n pattern: {\n value: /\\S+@\\S+\\.\\S+/,\n message: \"Неверный адрес электронной почты\",\n },\n },\n};\nexport default useForm;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"style-module__container___wOnhU\",\"loading-container\":\"style-module__loading-container___NyZ20\",\"hidden\":\"style-module__hidden___kIK86\",\"element\":\"style-module__element___hbwx_\",\"disabled\":\"style-module__disabled___TbeBm\",\"placeholder\":\"style-module__placeholder___bNqrp\",\"error\":\"style-module__error___a8h4v\"};","// extracted by mini-css-extract-plugin\nexport default {\"loading\":\"style-module__loading___b_SUA\",\"dot\":\"style-module__dot___D9MUw\",\"bounce\":\"style-module__bounce___rAPTh\",\"light\":\"style-module__light___rrj2v\",\"secondary\":\"style-module__secondary___AX6H5\",\"secondary-light\":\"style-module__secondary-light___bvMdO\"};","import Loading from \"./Loading\";\nexport default Loading;\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport styles from './style.module.scss';\n;\nconst Loading = ({ color = \"primary\", ...props }) => {\n const classes = ['ui-loading'];\n classes.push(styles['loading']);\n if (color)\n classes.push(styles[color], 'ui-loading-' + color);\n return (_jsxs(\"div\", { ...props, className: classes.join(' '), children: [_jsx(\"div\", { className: styles.dot }), _jsx(\"div\", { className: styles.dot }), _jsx(\"div\", { className: styles.dot }), _jsx(\"div\", { className: styles.dot })] }));\n};\nexport default Loading;\n","import Element from \"./Element\";\nexport default Element;\n","import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { useState, useEffect, cloneElement } from \"react\";\nimport styles from \"./style.module.scss\";\nimport Loading from \"../../Loading\";\nconst Element = ({ children, beforeElement, afterElement, error, placeholder, styleContainer, classNameContainer, hiddenContainer, formvalue, wait, ...props }) => {\n const [currentError, setCurrentError] = useState('');\n useEffect(() => {\n setCurrentError(error ?? '');\n }, [error]);\n const classes = ['ui-form-element-container'];\n classes.push(styles['container']);\n if (currentError)\n classes.push(styles['error']);\n if (props.disabled)\n classes.push(styles['disabled']);\n if (hiddenContainer)\n classes.push(styles['hidden']);\n if (classNameContainer)\n classes.push(classNameContainer);\n return (_jsxs(_Fragment, { children: [_jsxs(\"label\", { className: classes.join(' '), style: styleContainer, children: [beforeElement ? cloneElement(beforeElement, { key: 'ui-before-element' }) : null, _jsxs(\"div\", { className: 'ui-form-element ' + styles['element'], children: [typeof children === 'function' ? children(props) : null, placeholder && wait ? '' : _jsx(\"span\", { className: 'ui-form-element-placeholder ' + styles['placeholder'], children: placeholder }), wait && (_jsx(Loading, {}))] }), afterElement ? cloneElement(afterElement, { key: 'ui-after-element' }) : null] }), currentError && _jsx(\"div\", { className: 'ui-form-error ' + styles['error'], children: currentError })] }));\n};\nexport default Element;\n","import Form from \"./Form\";\nimport useForm from \"./useForm\";\nimport Element from \"./Element\";\nexport { useForm, Element as FormElement };\nexport default Form;\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport styles from './style.module.css';\nimport Spinner from '../Spinner';\nimport Progress from '../Progress';\nconst Form = ({ children, wait, progress, progressRadius = true, className, onSubmit, ...props }) => {\n const submit = (e) => {\n e.preventDefault();\n if (typeof onSubmit === 'function') {\n onSubmit(e);\n }\n };\n const classes = [];\n classes.push(styles['container']);\n if (wait)\n classes.push(styles['wait']);\n if (className)\n classes.push(className);\n return (_jsxs(\"form\", { ...props, onSubmit: submit, className: classes.join(' '), children: [children, _jsx(\"div\", { className: styles['wait-indicator'], children: typeof progress === 'number' ? _jsx(Progress, { radius: progressRadius, value: progress }) : _jsx(Spinner, {}) })] }));\n};\nexport default Form;\n","import Input from \"./Input\";\nexport default Input;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef, useState, useEffect } from \"react\";\nimport Element from \"../Form/Element\";\nconst Input = forwardRef(({ onChange, onInput, onChangeText, wait, disabled, formvalue, children, ...props }, ref) => {\n const [currentValue, setCurrentValue] = useState('');\n const handleChange = (e) => {\n if (typeof onChange === 'function') {\n onChange(e);\n }\n if (typeof onChangeText === 'function') {\n onChangeText(e.target.value);\n }\n };\n const handleInput = (e) => {\n if (disabled || wait)\n return;\n if (typeof onInput === 'function') {\n onInput(e);\n }\n setCurrentValue(e.target.value);\n };\n useEffect(() => {\n const value = props.value ?? formvalue;\n setCurrentValue(value ? String(value) : '');\n }, [props.value, formvalue]);\n return (_jsx(Element, { ...props, wait: wait, children: (props) => _jsx(\"input\", { ...props, placeholder: \"\", onChange: handleChange, disabled: disabled || wait, value: wait ? '' : currentValue, onInput: handleInput, ref: ref }) }));\n});\nexport default Input;\n","import TextArea from \"./TextArea\";\nexport default TextArea;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef, useRef, useEffect, useState, useImperativeHandle, } from \"react\";\nimport Element from \"../Form/Element\";\nconst TextArea = forwardRef(({ onChange, onInput, onChangeText, formvalue, wait, ...props }, ref) => {\n const textareaRef = useRef(null);\n const [currentValue, setCurrentValue] = useState(props.value ?? formvalue ?? \"\");\n const handleChange = (e) => {\n if (typeof onChange === \"function\") {\n onChange(e);\n }\n if (typeof onChangeText === \"function\") {\n onChangeText(e.target.value);\n }\n };\n const handleInput = (e) => {\n if (typeof onInput === \"function\") {\n onInput(e);\n }\n setCurrentValue(e.target.value);\n };\n useEffect(() => {\n const textarea = textareaRef.current;\n if (!textarea)\n return;\n const currentHeight = textarea.offsetHeight;\n textarea.style.height = \"auto\";\n const scrollHeight = textarea.scrollHeight;\n const newHeight = Math.max(scrollHeight, 50);\n textarea.style.height = `${Math.max(newHeight, currentHeight)}px`;\n }, [currentValue]);\n useEffect(() => {\n setCurrentValue(props.value ?? formvalue ?? \"\");\n }, [props.value, formvalue]);\n useImperativeHandle(ref, () => textareaRef.current);\n const value = wait ? \"\" : currentValue;\n return (_jsx(Element, { ...props, wait: wait, children: (props) => (_jsx(\"textarea\", { ...props, disabled: wait, placeholder: props.placeholder ?? \"\", value: value, onChange: handleChange, onInput: handleInput, ref: textareaRef })) }));\n});\nexport default TextArea;\n","import FileInput from \"./FileInput\";\nexport default FileInput;\n","import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useCallback, useRef } from 'react';\nimport Element from '../Form/Element';\nimport styles from './style.module.scss';\nconst FileInput = ({ onChange, onChangeFiles, accept, multiple, wait, children, className, icon, ...props }) => {\n const fileInputRef = useRef(null);\n const fileInputClasses = `\r\n ${styles['file-btn']}\r\n ${icon && !wait ? styles.icon : ''}\r\n `.trim();\n const handleChange = useCallback((e) => {\n const files = e.target.files;\n if (typeof onChange === \"function\") {\n onChange(e);\n }\n if (typeof onChangeFiles === \"function\") {\n onChangeFiles(files);\n }\n }, [onChange, onChangeFiles]);\n return (_jsx(Element, { ...props, wait: wait, children: (props) => _jsxs(_Fragment, { children: [_jsx(\"input\", { type: 'file', ref: fileInputRef, onChange: handleChange, accept: accept, multiple: multiple, style: { display: \"none\" }, ...props }), _jsx(\"div\", { className: `ui-file-uploader ${fileInputClasses} ${className || \"\"}`, children: !wait && (children || \"Выбрать файл\") })] }) }));\n};\nexport default FileInput;\n","// extracted by mini-css-extract-plugin\nexport default {\"file-btn\":\"style-module__file-btn___q1o5j\",\"icon\":\"style-module__icon___DmZ45\"};","import File from \"./File\";\nexport default File;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useEffect, useRef } from \"react\";\n;\nconst File = ({ onChange, children, multiple, accept, ...props }) => {\n const selector = useRef(null);\n const handleChange = (e) => {\n const target = e.target;\n if (target.files) {\n for (const file of target.files) {\n const reader = new FileReader();\n reader.onload = (evt) => {\n const data = evt.target?.result?.toString().split(';base64,');\n const mime = (data?.[0].replace('data:', '') ?? '');\n const contentData = data?.[1] ?? '';\n if (typeof onChange === 'function') {\n selector.current.value = '';\n onChange({\n name: file.name,\n type: file.type,\n size: file.size,\n mime: mime,\n data: contentData,\n base64: evt.target?.result\n });\n }\n };\n reader.readAsDataURL(file);\n }\n }\n };\n const handleDialog = (e) => {\n if (props.disabled)\n return;\n selector.current.click();\n e.preventDefault();\n };\n const mount = () => {\n const fileSelector = document.createElement('input');\n fileSelector.setAttribute('type', 'file');\n fileSelector.onchange = handleChange;\n if (accept && accept.length > 0) {\n fileSelector.setAttribute('accept', accept.join(','));\n }\n if (multiple) {\n fileSelector.setAttribute('multiple', 'multiple');\n }\n return fileSelector;\n };\n useEffect(() => {\n selector.current = mount();\n return () => {\n selector.current?.remove();\n };\n }, []);\n return (_jsx(\"div\", { ...props, onClick: handleDialog, children: children }));\n};\nexport default File;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"style-module__container___xiW4D\",\"wait-indicator\":\"style-module__wait-indicator___DXrE8\",\"active\":\"style-module__active___rLGnX\",\"btn\":\"style-module__btn___J72MV\",\"icon-left\":\"style-module__icon-left___ewMhi\",\"icon-right\":\"style-module__icon-right___HZEeb\",\"icon-only\":\"style-module__icon-only___ku4SM\",\"btn-light\":\"style-module__btn-light___VuPa2\",\"btn-secondary\":\"style-module__btn-secondary___QGEwb\",\"btn-secondary-light\":\"style-module__btn-secondary-light___zMIzX\",\"btn-tertiary\":\"style-module__btn-tertiary___fanHi\",\"normal-btn\":\"style-module__normal-btn___oO_oX\",\"small-btn\":\"style-module__small-btn___fl6Ff\",\"large-btn\":\"style-module__large-btn___gCRYc\"};","import Button from \"./Button\";\nexport default Button;\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport styles from \"./style.module.scss\";\nimport Loading from \"../Loading\";\nconst Button = ({ children, className, classNameContainer, styleContainer, wait = false, variant, size = 'normal', icon, ...props }) => {\n const buttonClasses = `\r\n\t\t${styles.btn}\r\n\t\t${variant && styles[`btn-${variant}`]}\r\n\t\t${size && styles[`${size}-btn`]}\r\n\t\t${icon && !wait ? styles[`icon-${icon}`] : ''}\r\n\t\t${className || ''}\r\n\t`\n .replace(/\\s+/g, ' ')\n .trim();\n const containerClasses = ['ui-button-container'];\n containerClasses.push(styles['container']);\n if (classNameContainer)\n containerClasses.push(classNameContainer);\n return (_jsxs(\"div\", { className: containerClasses.join(' '), style: styleContainer, children: [_jsx(\"button\", { ...props, className: buttonClasses, children: !wait && children }), wait && (_jsx(\"div\", { className: 'ui-button-spinner ' + styles['wait-indicator'] + (wait ? ' ' + styles['active'] : ''), children: _jsx(Loading, { color: variant }) }))] }));\n};\nexport default Button;\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useEffect, useRef, useState } from \"react\";\nimport Spinner from \"../Spinner\";\nimport styles from \"./style.module.css\";\n;\nconst Image = ({ onChange, onClick, onId, onRemove, ...props }) => {\n const { base64, src } = props;\n const [wait, setWait] = useState(true);\n const confirmRemove = useRef(false);\n const currentId = useRef();\n const setId = (id) => {\n currentId.current = id;\n if (typeof onId !== 'function')\n return;\n onId(id);\n };\n const handleClick = () => {\n if (typeof onClick === 'function') {\n onClick({\n ...props,\n setWait,\n setId,\n id: currentId.current\n });\n }\n };\n const handleLoad = () => {\n setWait(false);\n };\n const handleRemove = (e) => {\n if (!e.target)\n return;\n const element = e.target;\n const remove = () => {\n if (!confirmRemove.current)\n return;\n confirmRemove.current = false;\n element.blur();\n if (typeof onRemove === 'function') {\n onRemove();\n }\n };\n remove();\n confirmRemove.current = true;\n };\n const handleCancelRemove = () => {\n confirmRemove.current = false;\n };\n useEffect(() => {\n if (typeof onChange !== 'function' || src)\n return;\n onChange({\n ...props,\n setWait,\n setId,\n id: currentId.current\n });\n }, []);\n return (_jsxs(\"span\", { className: styles['image'], onClick: handleClick, children: [_jsx(\"span\", { className: styles['close'], onClick: handleRemove, onBlur: handleCancelRemove, tabIndex: 1 }), _jsx(\"img\", { src: src ?? base64?.toString(), onLoad: handleLoad }), wait && _jsx(\"span\", { className: styles['wait'], children: _jsx(Spinner, {}) })] }));\n};\nexport default Image;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"style-module__container___gZKjJ\",\"image\":\"style-module__image___pE1xz\",\"new\":\"style-module__new___vOprg\",\"close\":\"style-module__close___aMqtU\",\"wait\":\"style-module__wait___OzAwQ\"};","import UploadImages from \"./UploadImages\";\nexport default UploadImages;\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useEffect, useState } from \"react\";\nimport File from \"../File\";\nimport styles from \"./style.module.css\";\nimport Image from \"./Image\";\n;\nconst UploadImages = ({ imagesArray, onChange, onChangeArray, onClick }) => {\n const [images, setImages] = useState([]);\n const handleChange = (image) => {\n setImages((images) => [...images, { ...image }]);\n };\n const handleChangeId = (image) => {\n return (id) => {\n setImages((images) => images.map((currentImage) => {\n if (image === currentImage) {\n currentImage.id = id;\n }\n return currentImage;\n }));\n };\n };\n const handleRemove = (image) => {\n return () => setImages((images) => images.filter((currentImage) => currentImage !== image));\n };\n useEffect(() => {\n if (typeof onChangeArray !== 'function')\n return;\n onChangeArray(images);\n }, [images]);\n useEffect(() => {\n if (!imagesArray)\n return;\n setImages(imagesArray);\n }, [imagesArray]);\n return (_jsxs(\"div\", { className: styles['container'], children: [images.map((image, index) => _jsx(Image, { ...image, onChange: onChange, onClick: onClick, onRemove: handleRemove(image), onId: handleChangeId(image) }, (image.name + index))), _jsx(File, { onChange: handleChange, accept: ['image/png'], className: styles['new'], multiple: true })] }));\n};\nexport default UploadImages;\n","import Checkbox from \"./Checkbox\";\nexport default Checkbox;\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nimport Element from \"../Form/Element\";\nimport styles from \"./style.module.scss\";\nconst Checkbox = forwardRef(({ type = 'checkbox', hiddenContainer = true, placeholder, ...props }, ref) => {\n return (_jsx(Element, { ...props, hiddenContainer: hiddenContainer, children: (props) => (_jsxs(\"div\", { className: 'ui-checkbox-container ' + styles['container'], children: [_jsx(\"input\", { ...props, className: 'ui-checkbox' + (props.className ? ' ' + props.className : ''), type: type, ref: ref }), _jsx(\"span\", { className: 'ui-checkbox-indicator ' + styles['indicator'] }), _jsx(\"span\", { className: 'ui-checkbox-text ' + styles['text'], children: placeholder })] })) }));\n});\nexport default Checkbox;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"style-module__container___cUgT_\",\"down\":\"style-module__down___zGazf\",\"up\":\"style-module__up___I2O45\",\"left\":\"style-module__left___BhSAZ\",\"right\":\"style-module__right___k7oS7\"};","import Arrow from \"./Arrow\";\nexport default Arrow;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport styles from \"./style.module.css\";\n;\nconst Arrow = ({ className, direction = 'down', ...props }) => {\n const classes = ['ui-component-arrow'];\n classes.push(styles['container']);\n if (direction)\n classes.push(styles[direction]);\n if (className)\n classes.push(className);\n return (_jsx(\"div\", { ...props, className: classes.join(' ') }));\n};\nexport default Arrow;\n","// extracted by mini-css-extract-plugin\nexport default {\"container-element\":\"style-module__container-element___kJu6w\",\"container\":\"style-module__container___LSHO0\",\"select\":\"style-module__select___chAL1\",\"arrow\":\"style-module__arrow___dmLwx\",\"opened\":\"style-module__opened___nU6lR\",\"select-list\":\"style-module__select-list___OOtGa\",\"left\":\"style-module__left___Zxebc\",\"right\":\"style-module__right___S19a9\",\"hidden\":\"style-module__hidden___jR8qZ\",\"optgpoup\":\"style-module__optgpoup___aHuEQ\",\"label\":\"style-module__label___UK2Xg\",\"option\":\"style-module__option___isRro\",\"title\":\"style-module__title___nDbQX\",\"active\":\"style-module__active___KsePh\",\"disabled\":\"style-module__disabled___zGNMv\"};","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { forwardRef, createContext, useState, useEffect, useRef, useImperativeHandle } from \"react\";\nimport Element from \"../Form/Element\";\nimport Arrow from \"../Components/Arrow\";\nimport styles from \"./style.module.css\";\nexport const Context = createContext({\n selected: '',\n emptyValue: { current: {} },\n setSelect: (value) => { },\n setSelected: (value) => { },\n setTitle: (title) => { },\n});\n;\nconst Select = forwardRef(({ children, onChangeSelect, value, formvalue, ...props }, ref) => {\n const containerRef = useRef(null);\n const inputRef = useRef(null);\n const emptyValue = useRef(false);\n const [isOpen, setOpen] = useState(false);\n const [selected, setSelected] = useState('');\n const [title, setTitle] = useState();\n const open = () => {\n if (props.disabled)\n return;\n setOpen(true);\n };\n const close = () => {\n setOpen(false);\n };\n const handleClick = () => {\n isOpen ? close() : open();\n };\n const triggerNativeEvent = (value) => {\n const nativeInputValueSetter = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, \"value\")?.set;\n nativeInputValueSetter?.call(inputRef.current, value);\n const event = new Event('input', { bubbles: true });\n inputRef.current.dispatchEvent(event);\n };\n const setSelect = (val) => {\n if (typeof onChangeSelect === 'function') {\n onChangeSelect(val);\n }\n if (typeof value === 'undefined') {\n setSelected(val);\n }\n close();\n };\n const handleInput = (e) => {\n if (props.disabled)\n return;\n if (typeof props.onInput === 'function') {\n props.onInput(e);\n }\n if (typeof props.onChange === 'function') {\n props.onChange(e);\n }\n setSelected(e.target.value);\n };\n useEffect(() => {\n if (!selected)\n return;\n triggerNativeEvent(selected);\n }, [selected]);\n useEffect(() => {\n setSelected(String(value ?? formvalue));\n }, [value, formvalue]);\n useEffect(() => {\n const element = containerRef.current;\n const classList = element.classList;\n if (isOpen) {\n classList.remove(styles['hidden']);\n requestAnimationFrame(() => {\n classList.add(styles['opened']);\n element?.focus();\n });\n }\n else {\n if (classList.contains(styles['opened'])) {\n element.ontransitionend = () => {\n classList.add(styles['hidden']);\n element.ontransitionend = null;\n };\n }\n classList.remove(styles['opened']);\n }\n }, [isOpen]);\n useImperativeHandle(ref, () => inputRef.current, []);\n const classes = [''];\n classes.push(styles['container'], styles['hidden']);\n return (_jsx(Element, { ...props, classNameContainer: styles['container-element'], children: (props) => _jsxs(Context.Provider, { value: {\n selected,\n emptyValue: emptyValue,\n setSelect,\n setSelected,\n setTitle\n }, children: [_jsx(\"input\", { ...props, type: \"hidden\", value: selected, onInput: handleInput, ref: inputRef }), _jsxs(\"div\", { className: classes.join(' '), ref: containerRef, tabIndex: 1, onBlur: close, children: [_jsxs(\"div\", { className: styles['select'], onClick: handleClick, children: [_jsx(\"span\", { className: styles['title'], children: title }), _jsx(Arrow, { className: styles['arrow'] })] }), _jsx(\"ul\", { className: styles['select-list'], children: children })] })] }) }));\n});\nexport default Select;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useContext, useEffect } from \"react\";\nimport { Context } from \"./Select\";\nimport styles from \"./style.module.css\";\n;\nconst Option = ({ children, value, disabled, hidden, onClick, ...props }) => {\n const context = useContext(Context);\n const handleClick = (e) => {\n if (typeof value === 'undefined' || disabled)\n return;\n context.setSelect(value);\n if (typeof onClick === 'function') {\n onClick(e);\n }\n };\n useEffect(() => {\n if (children && (value === context.selected || !context.emptyValue.current)) {\n context.setTitle(children);\n if (!context.emptyValue.current && value) {\n context.setSelected(value);\n }\n context.emptyValue.current = true;\n }\n }, [context.selected]);\n if (hidden)\n return (null);\n const classes = ['ui-select-option'];\n classes.push(styles['option']);\n if (context.selected === value)\n classes.push(styles['active'], 'active');\n if (disabled)\n classes.push(styles['disabled'], 'disabled');\n return (_jsx(\"li\", { ...props, onClick: handleClick, className: classes.join(' '), children: children }));\n};\nexport default Option;\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport styles from \"./style.module.css\";\n;\nconst Optgroup = ({ children, label }) => {\n return (_jsx(\"li\", { children: _jsxs(\"ul\", { className: styles['optgpoup'], children: [label && _jsx(\"li\", { className: styles['label'], children: label }), children] }) }));\n};\nexport default Optgroup;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nimport { default as SelectUI } from \"./Select\";\nimport Option from \"./Option\";\nimport Optgroup from \"./Optgroup\";\n;\nconst Select = {\n ...forwardRef(({ ...args }, ref) => _jsx(SelectUI, { ...args, ref: ref })),\n Option,\n Optgroup\n};\nexport { Option as SelectOption, Optgroup as SelectOptgroup };\nexport default Select;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"style-module__container___EyoJC\",\"hide\":\"style-module__hide___zIkzn\",\"down\":\"style-module__down___LfI15\",\"dropdown-list\":\"style-module__dropdown-list___WixEd\",\"up\":\"style-module__up___NgQd7\",\"left\":\"style-module__left___IsOS2\",\"right\":\"style-module__right___Am00v\",\"opened\":\"style-module__opened___NnXhB\",\"arrow\":\"style-module__arrow___BXOUC\",\"item\":\"style-module__item___n0I4m\"};","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport styles from \"./style.module.scss\";\nimport { useEffect, useMemo, useRef } from \"react\";\n;\nconst Items = ({ items, isOpen, enableRerenderItems, disabled }) => {\n const listRef = useRef(null);\n const renderItems = useMemo(() => {\n if (enableRerenderItems) {\n return isOpen ? items : null;\n }\n return items;\n }, [enableRerenderItems, items, isOpen]);\n useEffect(() => {\n if (!listRef.current)\n return;\n const screenWidth = window.innerWidth;\n const element = listRef.current.getBoundingClientRect();\n // console.log(element.left)\n if (element.left <= 0) {\n // listRef.current.style.transform = 'translateX(' + Math.abs(element.left) + 'px)';\n }\n }, [isOpen]);\n if (disabled)\n return null;\n return (_jsx(\"ul\", { className: `${styles['dropdown-list']} ui-dropdown-list`, children: renderItems, ref: listRef }));\n};\nexport default Items;\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useRef, useState, useEffect, createContext } from \"react\";\nimport styles from \"./style.module.scss\";\nimport Arrow from \"../Components/Arrow\";\nimport Items from \"./Items\";\nexport const Context = createContext({\n close: () => { }\n});\n;\nconst Dropdown = ({ children, className, items, arrow = true, direction = 'down', position = 'right', split = false, disabled, hover = false, enableRerenderItems = true, onShow, onHide, ...props }) => {\n const containerRef = useRef(null);\n const hoverTimeout = useRef(null);\n const [isOpen, setOpen] = useState(false);\n const close = () => {\n setOpen(false);\n };\n const toggle = () => {\n setOpen((isOpen) => {\n if (disabled)\n return false;\n return !isOpen;\n });\n };\n const handleClickArrow = () => {\n toggle();\n };\n const handleClick = () => {\n if (hoverTimeout.current)\n return;\n if (!split || hover)\n toggle();\n };\n const handleBlur = (e) => {\n if (e.currentTarget.contains(e.relatedTarget))\n return;\n close();\n };\n const handleMouseEnter = () => {\n if (!hover || isOpen)\n return;\n hoverTimeout.current = setTimeout(toggle, 50);\n };\n const handleMouseOut = () => {\n if (hoverTimeout.current) {\n clearTimeout(hoverTimeout.current);\n }\n };\n useEffect(() => {\n const element = containerRef.current;\n const classList = element?.classList;\n if (isOpen) {\n classList?.add(styles['opened']);\n element?.focus();\n if (typeof onShow === 'function') {\n onShow();\n }\n }\n else {\n classList?.remove(styles['opened']);\n if (typeof onHide === 'function') {\n onHide();\n }\n }\n }, [isOpen]);\n const classes = ['ui-dropdown'];\n classes.push(styles['container']);\n if (className)\n classes.push(className);\n if (direction)\n classes.push(styles[direction]);\n if (position)\n classes.push(styles[position]);\n return (_jsx(Context.Provider, { value: {\n close\n }, children: _jsxs(\"div\", { ...props, className: classes.join(' '), ref: containerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseOut, tabIndex: 1, onBlur: handleBlur, children: [(position === 'left' && !disabled) && _jsx(Arrow, { className: styles['arrow'], onClick: handleClickArrow }), _jsx(\"div\", { onClick: handleClick, className: 'ui-dropdown-block' + (isOpen ? ' ' + styles['hide'] : ''), children: children }), (position === 'right' && !disabled && arrow) && _jsx(Arrow, { className: styles['arrow'], onClick: handleClickArrow }), _jsx(Items, { isOpen: isOpen, disabled: disabled, enableRerenderItems: enableRerenderItems, items: items })] }) }));\n};\nexport default Dropdown;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useContext } from \"react\";\nimport styles from \"./style.module.scss\";\nimport { Context } from \"./Dropdown\";\n;\nconst Item = ({ children, onClick, autoClose = true, active, className, ...props }) => {\n const context = useContext(Context);\n const handleClick = (e) => {\n if (typeof onClick === 'function') {\n onClick(e);\n }\n if (autoClose) {\n context.close();\n }\n };\n const classes = ['ui-dropdown-item'];\n classes.push(styles['item']);\n if (active)\n classes.push(styles['active'], 'active');\n if (className)\n classes.push(className);\n return (_jsx(\"li\", { ...props, onClick: handleClick, className: classes.join(' '), children: typeof children === 'function' ? children(context) : children }));\n};\nexport default Item;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef, } from \"react\";\nimport { default as DropdownUI } from \"./Dropdown\";\nimport Item from \"./Item\";\n;\nconst Dropdown = {\n ...forwardRef(({ ...args }, ref) => _jsx(DropdownUI, { ...args })),\n Item\n};\nexport { Item as DropdownItem };\nexport default Dropdown;\n","import { createContext } from \"react\";\nexport const ProviderContext = createContext({});\n","import Provider from \"./Provider\";\nexport default Provider;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { ProviderContext } from \"./ProviderContext\";\n;\nconst Provider = ({ children }) => {\n return (_jsx(ProviderContext.Provider, { value: {}, children: children }));\n};\nexport default Provider;\n","import Form, { useForm, FormElement } from \"./Form\";\nimport Element from \"./Form/Element\";\nimport Input from \"./Input\";\nimport TextArea from \"./TextArea\";\nimport Spinner from \"./Spinner\";\nimport Loading from \"./Loading\";\nimport FileInput from \"./FileInput\";\nimport File from \"./File\";\nimport Button from \"./Button\";\nimport UploadImages from \"./UploadImages\";\nimport Checkbox from \"./Checkbox\";\nimport Progress from \"./Progress\";\nimport Select, { SelectOption, SelectOptgroup } from \"./Select\";\nimport Dropdown, { DropdownItem } from \"./Dropdown\";\nimport Provider from \"./Provider\";\nimport './brands/brands.css';\nconst UI = {};\nexport { Provider, Form, FormElement, Element, useForm, Input, TextArea, Spinner, Loading, File, Button, UploadImages, Checkbox, Progress, Select, SelectOption, SelectOptgroup, Dropdown, DropdownItem, FileInput, };\nexport default UI;\n"],"names":["f","k","Symbol","for","l","m","Object","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","defaultProps","$$typeof","type","props","_owner","current","exports","Fragment","jsx","jsxs","module","__WEBPACK_EXTERNAL_MODULE_react__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","definition","o","defineProperty","enumerable","get","obj","prop","size","contrast","classes","push","className","join","value","radius","Math","ceil","Number","progress","style","isCheckBoxInput","element","isDateObject","Date","isNullOrUndefined","isObjectType","isObject","Array","isArray","isWeb","window","HTMLElement","document","cloneObject","data","copy","isFileListInstance","FileList","Set","Blob","tempObject","prototypeCopy","constructor","isPlainObject","compact","filter","Boolean","isUndefined","val","object","path","defaultValue","result","split","reduce","isBoolean","isKey","test","stringToPath","input","replace","set","index","tempPath","length","lastIndex","newValue","objValue","isNaN","VALIDATION_MODE","INPUT_VALIDATION_RULES","isEmptyObject","keys","convertToArrayPayload","isString","appendErrors","name","validateAllFieldCriteria","errors","message","types","getValidationModes","mode","isOnSubmit","isOnBlur","isOnChange","isOnAll","isOnTouch","isWatched","_names","isBlurEvent","watchAll","watch","has","some","watchName","startsWith","slice","iterateFieldsByAction","fields","action","fieldsNames","abortEarly","field","_f","currentField","refs","updateFieldArrayRootError","error","fieldArrayErrors","isFileInput","isFunction","isHTMLElement","owner","ownerDocument","defaultView","isMessage","isRadioInput","isRegex","RegExp","defaultResult","isValid","validResult","getCheckboxValue","options","values","option","checked","disabled","map","attributes","defaultReturn","getRadioValue","previous","getValidateError","every","getValueAndMessage","validationData","validateField","async","disabledFieldNames","formValues","shouldUseNativeValidation","isFieldArray","required","maxLength","minLength","min","max","pattern","validate","valueAsNumber","mount","inputValue","inputRef","setCustomValidity","reportValidity","isRadio","isCheckBox","isRadioOrCheckbox","isEmpty","appendErrorsCurry","bind","getMinMaxMessage","exceedMax","maxLengthMessage","minLengthMessage","maxType","minType","exceedMin","maxOutput","minOutput","valueDate","valueAsDate","convertTimeToDate","time","toDateString","isTime","isWeek","valueNumber","maxLengthOutput","minLengthOutput","patternValue","match","validateError","validationResult","unset","paths","childObject","updatePath","baseGet","isEmptyArray","createSubject","_observers","observers","next","observer","subscribe","unsubscribe","isPrimitive","deepEqual","object1","object2","getTime","keys1","keys2","val1","includes","val2","isMultipleSelect","live","isConnected","objectHasFunction","markFieldsDirty","isParentNodeArray","getDirtyFieldsFromDefaultValues","dirtyFieldsFromValues","getDirtyFields","defaultValues","getFieldValueAs","setValueAs","NaN","getFieldValue","files","selectedOptions","getRuleValue","rule","source","ASYNC_FUNCTION","schemaErrorLookup","_fields","names","fieldName","foundError","pop","defaultOptions","reValidateMode","shouldFocusError","createFormControl","delayErrorCallback","_options","_formState","submitCount","isDirty","isLoading","isValidating","isSubmitted","isSubmitting","isSubmitSuccessful","touchedFields","dirtyFields","validatingFields","_defaultValues","_formValues","shouldUnregister","_state","unMount","array","timer","_proxyFormState","_subjects","state","validationModeBeforeSubmit","validationModeAfterSubmit","shouldDisplayAllAssociatedErrors","criteriaMode","_updateValid","shouldUpdateValid","resolver","_executeSchema","executeBuiltInValidation","_updateIsValidating","from","forEach","updateValidAndValue","shouldSkipSetValueAs","defaultChecked","setFieldValue","updateTouchAndDirty","fieldValue","shouldDirty","shouldRender","shouldUpdateField","isPreviousDirty","output","disabledField","_getDirty","isCurrentFieldPristine","isPreviousFieldTouched","context","getResolverOptions","shouldOnlyCheckValid","valid","isFieldArrayRoot","isPromiseFunction","fieldReference","find","validateFunction","fieldError","getValues","_getWatch","isGlobal","add","generateWatchOutput","optionRef","selected","checkboxRef","radioRef","shouldTouch","shouldValidate","trigger","setValues","fieldKey","setValue","cloneValue","onChange","event","target","isFieldValueUpdated","_updateIsFieldValueUpdated","getEventValue","shouldSkipValidation","deps","isTouched","skipValidation","watched","onBlur","fieldState","previousErrorLookupResult","errorLookupResult","previousFieldError","callback","delayError","updateErrors","wait","clearTimeout","setTimeout","updatedFormState","shouldRenderByError","_focusInput","focus","fieldNames","executeSchemaAndUpdateState","Promise","all","shouldFocus","getFieldState","formState","invalid","setError","currentError","currentRef","restOfErrorTree","unregister","delete","keepValue","keepError","keepDirty","keepTouched","keepIsValidating","keepDefaultValue","keepIsValid","_updateDisabledField","register","disabledIsDefined","progressive","fieldRef","querySelectorAll","radioOrCheckbox","substring","search","getNodeParentName","isNameInFieldArray","_focusError","handleSubmit","onValid","onInvalid","onValidError","preventDefault","persist","fieldValues","_reset","keepStateOptions","updatedValues","cloneUpdatedValues","isEmptyResetValues","keepDefaultValues","keepValues","keepDirtyValues","fieldsToCheck","form","closest","reset","keepSubmitCount","keepIsSubmitted","keepErrors","keepIsSubmitSuccessful","control","_removeUnmounted","_updateFieldArray","method","args","shouldSetValues","shouldUpdateFieldsAndState","argA","argB","unsetEmptyArray","_getFieldArray","_resetDefaultValues","then","resetOptions","_updateFormState","_disableForm","_setErrors","payload","resetField","clearErrors","inputName","setFocus","shouldSelect","select","globalError","setGlobalError","useState","_formControl","_values","updateFormState","_props","subscription","subject","useSubscribe","formStateData","isRoot","shouldRenderFormState","localProxyFormState","_key","getProxyFormState","inputRegister","formvalue","toString","GlobalError","children","setErrors","color","dot","beforeElement","afterElement","placeholder","styleContainer","classNameContainer","hiddenContainer","setCurrentError","useEffect","cloneElement","progressRadius","onSubmit","forwardRef","onInput","onChangeText","currentValue","setCurrentValue","handleChange","handleInput","String","textareaRef","useRef","textarea","currentHeight","offsetHeight","height","scrollHeight","newHeight","useImperativeHandle","onChangeFiles","accept","multiple","icon","fileInputRef","fileInputClasses","trim","useCallback","display","selector","file","reader","FileReader","onload","evt","mime","contentData","base64","readAsDataURL","fileSelector","createElement","setAttribute","onchange","remove","onClick","click","variant","buttonClasses","btn","containerClasses","onId","onRemove","src","setWait","confirmRemove","currentId","setId","id","blur","tabIndex","onLoad","imagesArray","onChangeArray","images","setImages","handleChangeId","image","currentImage","handleRemove","direction","Context","createContext","emptyValue","setSelect","setSelected","setTitle","title","onChangeSelect","containerRef","isOpen","setOpen","close","handleClick","nativeInputValueSetter","getOwnPropertyDescriptor","HTMLInputElement","Event","bubbles","dispatchEvent","triggerNativeEvent","classList","requestAnimationFrame","contains","ontransitionend","Provider","hidden","useContext","label","Option","Optgroup","items","enableRerenderItems","listRef","renderItems","useMemo","innerWidth","getBoundingClientRect","left","arrow","position","hover","onShow","onHide","hoverTimeout","toggle","handleClickArrow","onMouseEnter","onMouseLeave","currentTarget","relatedTarget","autoClose","active","Item","ProviderContext"],"sourceRoot":""}