From 16a329780a0f198e17e7ad37b4fbe188297268b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavs=20G=C5=ABtmanis?= Date: Tue, 19 Nov 2024 21:57:51 +0200 Subject: [PATCH] [SFT-1409]: Reducing the file-size of freeform.js (#1641) * feat(SFT-1409): optimizing front-end js size * feat(SFT-1409): optimizing all freeform scripts * removing `axios` dependency * removing `lodash` dependency * removing `core-js` polyfills * chore(SFT-1409): updated changelog --------- Co-authored-by: kjmartens --- CHANGELOG.md | 10 ++ package-lock.json | 83 ++++------- .../tabs/form-settings/settings.usage.tsx | 2 +- .../CalculationFieldBundle.php | 49 ++++++ .../plugin/src/Resources/js/client/client.js | 2 +- .../plugin/src/Resources/js/client/vendor.js | 2 +- .../scripts/front-end/fields/calculation.js | 1 + .../front-end/payments/stripe/elements.js | 2 +- .../js/scripts/front-end/plugin/freeform.js | 2 +- .../front-end/plugin/freeform.js.LICENSE.txt | 9 -- packages/scripts/package.json | 5 - .../front-end/fields/calculation.ts | 139 ++++++++++++++++++ .../payments/stripe/elements.queries.ts | 12 +- .../components/front-end/plugin/freeform.ts | 35 ++--- .../fields/drag-and-drop/file-upload.ts | 20 ++- .../src/lib/plugin/handlers/form/rules.ts | 2 +- .../scripts/src/lib/plugin/helpers/ajax.ts | 137 +++++++++++++++++ .../src/lib/plugin/helpers/comparisons.ts | 51 +++++++ packages/scripts/src/types/events.ts | 5 +- 19 files changed, 449 insertions(+), 119 deletions(-) create mode 100644 packages/plugin/src/Bundles/Fields/Implementations/CalculationField/CalculationFieldBundle.php create mode 100644 packages/plugin/src/Resources/js/scripts/front-end/fields/calculation.js create mode 100644 packages/scripts/src/components/front-end/fields/calculation.ts create mode 100644 packages/scripts/src/lib/plugin/helpers/ajax.ts create mode 100644 packages/scripts/src/lib/plugin/helpers/comparisons.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index d88b1e1ee..021c189a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Solspace Freeform Changelog +## 5.8.0 - Unreleased + +### Changed +- Optimized all front end Freeform scripts. + - Removed the `axios` dependency. + - Removed the `lodash` dependency. + - Removed the `core-js` polyfills. + - Scripts for Calculation fields now load seperately as `calculation.js` only if the field exists in the form being displayed. + - When using `freeform.loadScripts()` (for manually loading scripts) and Calculation fields, be sure to include the `field.calculation` option. + ## 5.7.3 - Unreleased ### Added diff --git a/package-lock.json b/package-lock.json index cf8d8a9e8..6c98e4768 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8108,16 +8108,6 @@ "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==", "dev": true }, - "node_modules/@types/axios": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/@types/axios/-/axios-0.14.0.tgz", - "integrity": "sha512-KqQnQbdYE54D7oa/UmYVMZKq7CO4l8DEENzOKc4aBRwxCXSlJXGz83flFx5L7AWrOQnmuN3kVsRdt+GZPPjiVQ==", - "deprecated": "This is a stub types definition for axios (https://github.com/mzabriskie/axios). axios provides its own type definitions, so you don't need @types/axios installed!", - "dev": true, - "dependencies": { - "axios": "*" - } - }, "node_modules/@types/babel__core": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", @@ -11329,16 +11319,6 @@ "url": "https://github.com/sponsors/mesqueeb" } }, - "node_modules/core-js": { - "version": "3.34.0", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.34.0.tgz", - "integrity": "sha512-aDdvlDder8QmY91H88GzNi9EtQi2TjvQhpCX6B1v/dAZHU1AuLgHvRh54RiOerpEhEW46Tkf+vgAViB/CWC0ag==", - "hasInstallScript": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, "node_modules/core-js-compat": { "version": "3.38.1", "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.38.1.tgz", @@ -11489,9 +11469,9 @@ "devOptional": true }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -12409,9 +12389,9 @@ "integrity": "sha512-VufdJl+rzaKZoYVUijN13QcXVF5dWPZANeFTLNy+OSpHdDL5ynXTF35+60RSBbaQYB1ae723lQXHCrf4pyLsMw==" }, "node_modules/elliptic": { - "version": "6.5.4", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", - "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz", + "integrity": "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==", "dev": true, "dependencies": { "bn.js": "^4.11.9", @@ -24073,9 +24053,9 @@ } }, "node_modules/picocolors": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz", - "integrity": "sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" }, "node_modules/picomatch": { "version": "2.3.1", @@ -24225,9 +24205,9 @@ } }, "node_modules/postcss": { - "version": "8.4.32", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.32.tgz", - "integrity": "sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==", + "version": "8.4.49", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.49.tgz", + "integrity": "sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==", "dev": true, "funding": [ { @@ -24245,8 +24225,8 @@ ], "dependencies": { "nanoid": "^3.3.7", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" }, "engines": { "node": "^10 || ^12 || >=14" @@ -24312,9 +24292,9 @@ } }, "node_modules/postcss-selector-parser": { - "version": "6.0.14", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.14.tgz", - "integrity": "sha512-65xXYsT40i9GyWzlHQ5ShZoK7JZdySeOozi/tz2EezDo6c04q6+ckYMeoY7idaie1qp2dT5KoYQ2yky6JuoHnA==", + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", + "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==", "dev": true, "dependencies": { "cssesc": "^3.0.0", @@ -26451,9 +26431,9 @@ } }, "node_modules/serialize-javascript": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", - "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", + "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", "dev": true, "dependencies": { "randombytes": "^2.1.0" @@ -26738,9 +26718,9 @@ } }, "node_modules/source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", "engines": { "node": ">=0.10.0" } @@ -27291,17 +27271,17 @@ "dev": true }, "node_modules/svgo": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-3.1.0.tgz", - "integrity": "sha512-R5SnNA89w1dYgNv570591F66v34b3eQShpIBcQtZtM5trJwm1VvxbIoMpRYY3ybTAutcKTLEmTsdnaknOHbiQA==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-3.3.2.tgz", + "integrity": "sha512-OoohrmuUlBs8B8o6MB2Aevn+pRIH9zDALSR+6hhqVfa6fRwG/Qw9VUMSMW9VNg2CFc/MTIfabtdOVl9ODIJjpw==", "dev": true, "dependencies": { "@trysound/sax": "0.2.0", "commander": "^7.2.0", "css-select": "^5.1.0", - "css-tree": "^2.2.1", + "css-tree": "^2.3.1", "css-what": "^6.1.0", - "csso": "5.0.5", + "csso": "^5.0.5", "picocolors": "^1.0.0" }, "bin": { @@ -29652,23 +29632,18 @@ "license": "MIT", "dependencies": { "@stripe/stripe-js": "^2.1.9", - "axios": "^1.5.0", "clsx": "^2.0.0", - "core-js": "^3.33.2", "expression-language": "^1.1.4", "filesize": "^10.0.12", - "locutus": "^2.0.16", - "lodash.isequal": "^4.5.0" + "locutus": "^2.0.16" }, "devDependencies": { "@babel/core": "^7.22.11", "@babel/plugin-proposal-class-properties": "^7.18.6", "@babel/preset-env": "^7.22.10", "@babel/preset-typescript": "^7.22.11", - "@types/axios": "^0.14.0", "@types/grecaptcha": "^3.0.4", "@types/jquery": "^3.5.16", - "@types/lodash.isequal": "^4.5.8", "babel-loader": "^9.1.3", "browserslist": "^4.21.10", "css-loader": "^6.8.1", diff --git a/packages/client/src/app/pages/forms/edit/builder/tabs/form-settings/settings.usage.tsx b/packages/client/src/app/pages/forms/edit/builder/tabs/form-settings/settings.usage.tsx index c7c5a6093..58b5a9c3b 100644 --- a/packages/client/src/app/pages/forms/edit/builder/tabs/form-settings/settings.usage.tsx +++ b/packages/client/src/app/pages/forms/edit/builder/tabs/form-settings/settings.usage.tsx @@ -31,7 +31,7 @@ export const FormUsage: React.FC = () => { {!isFetching && data?.length === 0 && ( addScript('field.calculation', self::SCRIPT_PATH); + } + + public function attachScripts(RenderTagEvent $event): void + { + if (!$event->isGenerateTag()) { + return; + } + + $form = $event->getForm(); + if (!$form->getLayout()->hasFields(CalculationField::class)) { + return; + } + + $event->addScript(self::SCRIPT_PATH); + } +} diff --git a/packages/plugin/src/Resources/js/client/client.js b/packages/plugin/src/Resources/js/client/client.js index ebbad931f..852eda235 100644 --- a/packages/plugin/src/Resources/js/client/client.js +++ b/packages/plugin/src/Resources/js/client/client.js @@ -1 +1 @@ -!function(){"use strict";var e,t,n,r={90729:function(e,t,n){n.r(t);var r,a=n(2784);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t=n},isAtMost:function(e){var t=i.editions.tiers,n=t.indexOf(e);if(-1===n)throw new Error("Unknown edition: ".concat(e));return t.indexOf(i.editions.edition)<=n}}),limitations:r(r({},o.limitations),{can:function(e){var t,n=null===(t=i.limitations)||void 0===t?void 0:t.items;if(!n)return!0;for(var r=e.split("."),a=0;a10?"":"& > li {\n > label {\n padding-left: ".concat(10*e+20,"px;\n\n &.has-children {\n padding-left: ").concat(12*(e+1),"px;\n }\n }\n\n > ul {\n ").concat(m(e+1),"\n }\n }")};t.List=p.default.ul(o||(o=r(["\n margin: 0;\n padding: 0;\n\n ul {\n ","\n }\n"],["\n margin: 0;\n padding: 0;\n\n ul {\n ","\n }\n"])),m()),t.CheckMark=p.default.div(i||(i=r(["\n position: absolute;\n left: 8px;\n top: 7px;\n\n width: 16px;\n font-size: 18px;\n font-weight: bold;\n\n fill: ",";\n"],["\n position: absolute;\n left: 8px;\n top: 7px;\n\n width: 16px;\n font-size: 18px;\n font-weight: bold;\n\n fill: ",";\n"])),f.colors.gray500),t.LabelIcon=p.default.div(l||(l=r([""],[""]))),t.LabelContainer=p.default.div(u||(u=r(["\n display: inline-flex;\n justify-content: start;\n align-items: center;\n gap: ",";\n\n > svg {\n width: 16px;\n height: 16px;\n }\n"],["\n display: inline-flex;\n justify-content: start;\n align-items: center;\n gap: ",";\n\n > svg {\n width: 16px;\n height: 16px;\n }\n"])),f.spacings.sm),t.LabelValueDisplay=p.default.div(d||(d=r(["\n color: ",";\n font-size: 11px;\n font-style: italic;\n line-height: 11px;\n height: 11px;\n"],["\n color: ",";\n font-size: 11px;\n font-style: italic;\n line-height: 11px;\n height: 11px;\n"])),f.colors.gray300),t.Label=p.default.label(c||(c=r(["\n display: block;\n padding: 5px 14px 5px 30px;\n\n user-select: none;\n\n &:hover {\n cursor: pointer;\n background-color: ",";\n color: ",";\n\n "," {\n fill: ",";\n }\n }\n\n &.has-children {\n position: relative;\n\n padding-left: 12px;\n\n text-transform: uppercase;\n font-weight: bold;\n\n font-size: 12px;\n\n color: #7d8c9d;\n fill: currentColor;\n\n > "," {\n position: relative;\n\n padding: 0 10px;\n background-color: ",";\n\n z-index: 1;\n }\n\n &:hover {\n cursor: default;\n background-color: transparent;\n }\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 13px;\n\n height: 1px;\n background-color: ",";\n }\n }\n"],["\n display: block;\n padding: 5px 14px 5px 30px;\n\n user-select: none;\n\n &:hover {\n cursor: pointer;\n background-color: ",";\n color: ",";\n\n "," {\n fill: ",";\n }\n }\n\n &.has-children {\n position: relative;\n\n padding-left: 12px;\n\n text-transform: uppercase;\n font-weight: bold;\n\n font-size: 12px;\n\n color: #7d8c9d;\n fill: currentColor;\n\n > "," {\n position: relative;\n\n padding: 0 10px;\n background-color: ",";\n\n z-index: 1;\n }\n\n &:hover {\n cursor: default;\n background-color: transparent;\n }\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 13px;\n\n height: 1px;\n background-color: ",";\n }\n }\n"])),f.colors.gray500,f.colors.white,t.CheckMark,f.colors.white,t.LabelContainer,f.colors.gray050,f.colors.gray200),t.Item=p.default.li(s||(s=r(["\n position: relative;\n\n &.focused {\n > "," {\n background-color: #cfd8e3;\n color: ",";\n\n > "," {\n fill: ",";\n }\n }\n }\n\n &.has-children {\n > "," {\n }\n }\n\n &.empty {\n > "," {\n color: ",";\n font-style: italic;\n\n &:hover {\n color: ",";\n }\n }\n\n &.focused {\n > "," {\n background-color: transparent;\n\n &:hover {\n background-color: ",";\n color: ",";\n }\n\n > "," {\n fill: transparent;\n }\n }\n }\n }\n"],["\n position: relative;\n\n &.focused {\n > "," {\n background-color: #cfd8e3;\n color: ",";\n\n > "," {\n fill: ",";\n }\n }\n }\n\n &.has-children {\n > "," {\n }\n }\n\n &.empty {\n > "," {\n color: ",";\n font-style: italic;\n\n &:hover {\n color: ",";\n }\n }\n\n &.focused {\n > "," {\n background-color: transparent;\n\n &:hover {\n background-color: ",";\n color: ",";\n }\n\n > "," {\n fill: transparent;\n }\n }\n }\n }\n"])),t.Label,f.colors.gray700,t.CheckMark,f.colors.gray700,t.Label,t.Label,f.colors.gray300,f.colors.white,t.Label,f.colors.gray500,f.colors.white,t.CheckMark)},29466:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Options=void 0;var l=o(n(2784)),u=i(n(26457)),d=i(n(90729)),c=n(41187);t.Options=function(e){var n=e.value,r=e.options,a=e.query,o=e.focusIndex,i=e.showValues,s=e.onChange,f=(0,l.useRef)([]);return(0,l.useEffect)((function(){f.current[o]&&f.current[o].scrollIntoView({behavior:"smooth",block:"nearest"})}),[o]),l.default.createElement(c.List,null,r&&r.map((function(e,r){var p,m,v;return"value"in e&&(p=e.value,m=e.shadowIndex),"children"in e&&(v=e.children),l.default.createElement(c.Item,{ref:function(e){void 0!==m&&(f.current[m]=e)},onClick:function(e){e.stopPropagation(),void 0!==p&&s&&s(p)},key:r,className:(0,u.default)(void 0!==v&&"has-children",p===n&&"selected",""===p&&"empty",m===o&&"focused")},l.default.createElement(c.Label,{className:(0,u.default)(void 0!==v&&"has-children")},!v&&n===p&&l.default.createElement(c.CheckMark,null,l.default.createElement(d.default,null)),l.default.createElement(c.LabelContainer,null,e.icon&&e.icon,e.label),i&&p&&p!==e.label&&l.default.createElement(c.LabelValueDisplay,null,p)),v&&l.default.createElement(t.Options,{options:v,value:n,query:a,focusIndex:o,onChange:s}))})))}},47022:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownWrapper=t.CloseButton=t.DropdownRollout=t.SpinnerWrapper=t.CurrentValue=t.ListWrapper=t.Search=void 0;var o,i,l,u,d,c,s,f=n(79066),p=n(80159),m=n(51362),v=a(n(40265));t.Search=v.default.input(o||(o=r(["\n width: 100%;\n padding: 7px 30px 7px 10px;\n\n border-bottom: 1px solid ",";\n\n &:focus,\n &:active,\n &:hover {\n box-shadow: none;\n outline: none;\n }\n"],["\n width: 100%;\n padding: 7px 30px 7px 10px;\n\n border-bottom: 1px solid ",";\n\n &:focus,\n &:active,\n &:hover {\n box-shadow: none;\n outline: none;\n }\n"])),m.colors.hairline),t.ListWrapper=v.default.div(i||(i=r(["\n max-height: 300px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ",";\n"],["\n max-height: 300px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ",";\n"])),p.scrollBar),t.CurrentValue=v.default.div(l||(l=r(["\n cursor: pointer;\n position: relative;\n\n display: flex;\n justify-content: start;\n gap: ",";\n\n background-color: #dfe5ec;\n border-radius: ",";\n\n padding: 7px 22px 7px 10px;\n\n &.empty > span {\n color: ",";\n font-style: italic;\n }\n\n > span {\n min-height: 20px;\n }\n\n &:hover {\n box-shadow: var(--focus-ring);\n outline-color: transparent;\n }\n\n &:after {\n content: '';\n position: absolute;\n top: calc(50% - 5px);\n right: 9px;\n\n display: block;\n width: 7px;\n height: 7px;\n\n opacity: 0.8;\n border: solid;\n border-width: 0 2px 2px 0;\n\n font-size: 0;\n\n transform: rotate(45deg);\n\n user-select: none;\n pointer-events: none;\n }\n"],["\n cursor: pointer;\n position: relative;\n\n display: flex;\n justify-content: start;\n gap: ",";\n\n background-color: #dfe5ec;\n border-radius: ",";\n\n padding: 7px 22px 7px 10px;\n\n &.empty > span {\n color: ",";\n font-style: italic;\n }\n\n > span {\n min-height: 20px;\n }\n\n &:hover {\n box-shadow: var(--focus-ring);\n outline-color: transparent;\n }\n\n &:after {\n content: '';\n position: absolute;\n top: calc(50% - 5px);\n right: 9px;\n\n display: block;\n width: 7px;\n height: 7px;\n\n opacity: 0.8;\n border: solid;\n border-width: 0 2px 2px 0;\n\n font-size: 0;\n\n transform: rotate(45deg);\n\n user-select: none;\n pointer-events: none;\n }\n"])),m.spacings.sm,m.borderRadius.lg,m.colors.gray300),t.SpinnerWrapper=v.default.div(u||(u=r(["\n > svg {\n fill: currentColor;\n width: 20px;\n height: 20px;\n }\n"],["\n > svg {\n fill: currentColor;\n width: 20px;\n height: 20px;\n }\n"]))),t.DropdownRollout=(0,v.default)(f.animated.div)(d||(d=r(["\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n\n overflow: hidden;\n z-index: 1000;\n"],["\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n\n overflow: hidden;\n z-index: 1000;\n"])),m.colors.gray050,m.borderRadius.lg,m.shadows.container),t.CloseButton=v.default.button(c||(c=r(["\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 30px;\n height: 34px;\n\n cursor: pointer;\n\n &:hover {\n background-color: ",";\n }\n"],["\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 30px;\n height: 34px;\n\n cursor: pointer;\n\n &:hover {\n background-color: ",";\n }\n"])),m.colors.gray050),t.DropdownWrapper=v.default.div(s||(s=r(["\n position: relative;\n\n &.open {\n "," {\n display: block;\n }\n\n "," {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n\n &:hover {\n box-shadow: none;\n outline-color: transparent;\n }\n }\n }\n"],["\n position: relative;\n\n &.open {\n "," {\n display: block;\n }\n\n "," {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n\n &:hover {\n box-shadow: none;\n outline-color: transparent;\n }\n }\n }\n"])),t.DropdownRollout,t.CurrentValue)},4500:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Dropdown=void 0;var l=o(n(2784)),u=n(11863),d=i(n(37024)),c=n(31070),s=n(9726),f=n(22920),p=i(n(26457)),m=i(n(2072)),v=n(13596),h=i(n(75456)),g=n(71408),b=n(29466),y=n(47022);t.Dropdown=function(e){var t=e.emptyOption,n=e.value,r=e.options,a=e.showValues,o=e.onChange,i=e.loading,_=void 0!==i&&i,x=(0,l.useState)(!1),w=x[0],E=x[1],O=(0,l.useState)(""),P=O[0],j=O[1],k=(0,l.useState)(0),M=k[0],C=k[1],S=(0,l.useRef)(null),F=(0,l.useRef)(null),T=(0,s.useClickOutside)({callback:function(){return E(!1)},isEnabled:w,excludeClassNames:["dropdown-rollout"]}),D=(0,u.useEditorAnimations)({wrapper:T.current,editor:F.current,isEditing:w}).editorAnimation,L=(0,l.useCallback)((function(){_||E(!w)}),[_,w]);t&&(t=(0,m.default)(t));var R=(0,g.useFilteredOptions)(r,P,t),B=R[0],A=R[1],I=(0,l.useMemo)((function(){return(0,g.findLabelByValue)(r,n)||t}),[r,n,_]),W=(0,l.useMemo)((function(){return(0,g.findShadowIndexByValue)(B,n)}),[r,n,_]);(0,c.useEscapeStack)((function(){return E(!1)}),w),(0,f.useOnKeypress)({meetsCondition:w,type:"keydown",callback:function(e){"ArrowDown"===e.key&&M0&&C((function(e){return e-1}))}},[M,A]),(0,f.useOnKeypress)({meetsCondition:w,type:"keyup",callback:function(e){if("Enter"===e.key){var t=(0,g.findValueByShadowIndex)(B,M);o&&o(t),E(!1)}}},[B,M]),(0,l.useEffect)((function(){_&&w&&E(!1)}),[_]),(0,l.useEffect)((function(){var e;w?(null===(e=S.current)||void 0===e||e.focus(),C(W||0)):j("")}),[w,P]);var N=(0,l.useCallback)((function(e){o&&o(e),E(!1)}),[o]);return l.default.createElement(y.DropdownWrapper,{ref:T,className:(0,p.default)(w&&"open"),onClick:L},l.default.createElement(y.CurrentValue,{className:(0,p.default)(_&&"disabled",""===n&&"empty")},l.default.createElement("span",null,I),_&&l.default.createElement(y.SpinnerWrapper,null,l.default.createElement(d.default,null))),l.default.createElement(v.PopUpPortal,null,w&&l.default.createElement(y.DropdownRollout,{className:"dropdown-rollout",ref:F,style:D},l.default.createElement(y.CloseButton,null,l.default.createElement(h.default,null)),l.default.createElement(y.Search,{placeholder:(0,m.default)("Search..."),ref:S,value:P,onClick:function(e){return e.stopPropagation()},onKeyDown:function(e){["ArrowUp","ArrowDown"].includes(e.key)&&e.preventDefault()},onChange:function(e){return j(e.target.value)}}),l.default.createElement(y.ListWrapper,null,l.default.createElement(b.Options,{options:B,value:n,focusIndex:M,showValues:a,onChange:N})))))}},39384:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HelpText=void 0;var o,i=a(n(2784)),l=n(51362),u=a(n(40265)).default.div(o||(o=r(["\n font-style: italic;\n font-size: 12px;\n line-height: 18px;\n padding-top: 6px;\n color: ",";\n"],["\n font-style: italic;\n font-size: 12px;\n line-height: 18px;\n padding-top: 6px;\n color: ",";\n"])),l.colors.gray300);t.HelpText=function(e){var t=e.children;return i.default.createElement(u,null,t)}},13596:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PopUpPortal=void 0;var r=n(28316),a=n(53084);t.PopUpPortal=function(e){var t=e.children,n=(0,a.usePortal)().element;return n?(0,r.createPortal)(t,n):null}},65631:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useRemoveAnimation=void 0;var r=n(79066),a=n(51362);t.useRemoveAnimation=function(e){var t=e.active,n=e.hovering;return(0,r.useSpring)({opacity:t?1:0,background:n?a.colors.error:"transparent",fill:n?"#fff":a.colors.gray300,scale:n?1.2:1,rotate:t?0:30,config:function(e){switch(e){case"background":case"color":return{tension:330,friction:20};default:return{tension:330,friction:15}}}})}},6403:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveButtonWrapper=void 0;var o,i=n(79066),l=a(n(40265));t.RemoveButtonWrapper=(0,l.default)(i.animated.button)(o||(o=r(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 20px;\n height: 20px;\n\n font-size: 16px;\n\n border-radius: 50%;\n padding: 3px;\n\n svg {\n color: currentColor;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 20px;\n height: 20px;\n\n font-size: 16px;\n\n border-radius: 50%;\n padding: 3px;\n\n svg {\n color: currentColor;\n }\n"])))},54509:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveButton=void 0;var l=o(n(2784)),u=n(23934),d=i(n(83247)),c=n(65631),s=n(6403);t.RemoveButton=function(e){var t=e.active,n=e.onClick,r=(0,l.useRef)(null),a=(0,u.useHover)(r),o=(0,c.useRemoveAnimation)({active:t,hovering:a});return l.default.createElement(s.RemoveButtonWrapper,{ref:r,style:o,onClick:function(e){e.stopPropagation(),n&&n()}},l.default.createElement(d.default,null))}},84150:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TokenInputWrapper=void 0;var o,i=n(51362),l=a(n(40265));t.TokenInputWrapper=l.default.div(o||(o=r(["\n .tagify {\n --tag-bg: ",";\n --tag-pad: 4px 7px;\n\n width: 100%;\n min-height: 2.125rem;\n padding: 5px 5px;\n\n box-sizing: border-box;\n background-color: ",";\n\n border: 1px solid rgba(96, 125, 159, 0.25);\n border-radius: ",";\n\n gap: 5px;\n\n &__tag {\n margin-inline: 0;\n margin-block: 0;\n }\n\n &__input {\n margin: 0;\n min-width: 1px !important;\n }\n }\n"],["\n .tagify {\n --tag-bg: ",";\n --tag-pad: 4px 7px;\n\n width: 100%;\n min-height: 2.125rem;\n padding: 5px 5px;\n\n box-sizing: border-box;\n background-color: ",";\n\n border: 1px solid rgba(96, 125, 159, 0.25);\n border-radius: ",";\n\n gap: 5px;\n\n &__tag {\n margin-inline: 0;\n margin-block: 0;\n }\n\n &__input {\n margin: 0;\n min-width: 1px !important;\n }\n }\n"])),i.colors.gray100,i.colors.white,i.borderRadius.md)},19009:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TokenInput=void 0;var l=o(n(2784)),u=i(n(93265)),d=n(84150);n(3562);t.TokenInput=function(e){var t=e.value,n=e.options,r=void 0===n?[]:n,a=e.onChange,o=e.allowCustom,i=e.placeholder,c=(0,l.useRef)(null);return l.default.createElement(d.TokenInputWrapper,null,l.default.createElement(u.default,{tagifyRef:c,placeholder:i,settings:{tagTextProp:"name",enforceWhitelist:!o,whitelist:r,dropdown:{mapValueTo:"name",enabled:0}},value:t,onChange:function(e){return a(e.detail.tagify.getCleanValue().map((function(e){return e.value})))}}))}},63005:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyBlockWrapper=t.Subtitle=t.LiteTitle=t.Title=t.Icon=void 0;var o,i,l,u,d,c=n(51362),s=a(n(40265));t.Icon=s.default.div(o||(o=r(["\n font-size: 10rem;\n margin: 0 0 1.5rem;\n\n svg {\n min-width: 160px;\n min-height: 160px;\n }\n\n &.fade {\n svg {\n fill: #a1a5aa;\n opacity: 0.5;\n }\n }\n"],["\n font-size: 10rem;\n margin: 0 0 1.5rem;\n\n svg {\n min-width: 160px;\n min-height: 160px;\n }\n\n &.fade {\n svg {\n fill: #a1a5aa;\n opacity: 0.5;\n }\n }\n"]))),t.Title=s.default.h2(i||(i=r(["\n margin: 0;\n padding: 0;\n\n font-size: 1.5rem;\n color: ",";\n"],["\n margin: 0;\n padding: 0;\n\n font-size: 1.5rem;\n color: ",";\n"])),c.colors.gray500),t.LiteTitle=s.default.h2(l||(l=r(["\n margin: 0;\n padding: 0;\n\n font-size: 1.2rem;\n font-weight: normal;\n color: ",";\n"],["\n margin: 0;\n padding: 0;\n\n font-size: 1.2rem;\n font-weight: normal;\n color: ",";\n"])),c.colors.gray500),t.Subtitle=s.default.p(u||(u=r(["\n margin: 0;\n padding: 0;\n\n font-size: 1rem;\n color: ",";\n\n &:not(:last-child) {\n padding-bottom: 1.5rem;\n }\n"],["\n margin: 0;\n padding: 0;\n\n font-size: 1rem;\n color: ",";\n\n &:not(:last-child) {\n padding-bottom: 1.5rem;\n }\n"])),c.colors.gray300),t.EmptyBlockWrapper=s.default.div(d||(d=r(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 5px;\n\n height: 100%;\n\n &.padded {\n padding: 3rem 1rem;\n }\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 5px;\n\n height: 100%;\n\n &.padded {\n padding: 3rem 1rem;\n }\n"])))},19002:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyBlock=void 0;var a=r(n(2784)),o=r(n(26457)),i=n(63005);t.EmptyBlock=function(e){var t=e.title,n=e.subtitle,r=e.icon,l=e.iconFade,u=e.lite,d=e.children;return u?a.default.createElement(i.EmptyBlockWrapper,{className:"padded"},a.default.createElement(i.LiteTitle,null,t)):a.default.createElement(i.EmptyBlockWrapper,null,r&&a.default.createElement(i.Icon,{className:(0,o.default)(l&&"fade")},r),t&&a.default.createElement(i.Title,null,t),n&&a.default.createElement(i.Subtitle,null,n),d)}},12830:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiErrorsBlock=void 0;var a=r(n(2784));t.ApiErrorsBlock=function(e){var t,n,r=e.category,o=e.handle,i=null===(n=null===(t=e.error.errors)||void 0===t?void 0:t[r])||void 0===n?void 0:n[o];return i?a.default.createElement("ul",{className:"errors"},i.map((function(e,t){return a.default.createElement("li",{key:t},a.default.createElement("span",{className:"visually-hidden"},"Error:"),e)}))):null}},90163:function(e,t,n){var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBoundary=void 0;var i=o(n(2784)),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={hasError:!1},n}return a(t,e),t.getDerivedStateFromError=function(){return{hasError:!0}},t.prototype.componentDidCatch=function(e,t){console.error(e,t)},t.prototype.render=function(){return this.state.hasError?i.default.createElement("div",null,this.props.message):this.props.children},t}(i.default.Component);t.ErrorBoundary=l},79857:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useRenderContext=t.RenderContextProvider=void 0;var i=n(2784),l=o(n(2784)),u=(0,l.createContext)({size:"normal"});t.RenderContextProvider=function(e){var t=e.size,n=e.children;return l.default.createElement(u.Provider,{value:{size:null!=t?t:"normal"}},n)};t.useRenderContext=function(){return(0,i.useContext)(u)}},96071:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useZIndex=t.ZIndexContextProvider=void 0;var i=n(2784),l=o(n(2784)),u=(0,l.createContext)({register:function(){return 1e3},unregister:function(){}});t.ZIndexContextProvider=function(e){var t=e.children,n=(0,i.useRef)(1e3);return l.default.createElement(u.Provider,{value:{register:function(){return n.current-=1,n.current},unregister:function(){n.current+=1}}},t)};t.useZIndex=function(){var e=(0,i.useContext)(u),t=e.register,n=e.unregister,r=(0,i.useState)(1e3),a=r[0],o=r[1];return(0,i.useEffect)((function(){var e=t();return o(e),function(){n()}}),[t,n]),a}},39730:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(2784)),o=n(86993),i=n(4500),l=n(46425),u=n(82506),d=n(4562);t.default=function(e){var t=e.value,n=e.property,r=e.errors,c=e.updateValue,s=n.source,f=n.optionValue,p=n.optionLabel,m=n.filters,v=n.emptyOption,h=(0,o.useStore)().getState(),g=(0,d.extractParameter)(h,s),b=[];return g.forEach((function(e,t){(0,u.filterTest)(m,e)&&b.push({label:p?(0,d.extractParameter)(e,p):e,value:f?(0,d.extractParameter)(e,f):t})})),a.default.createElement(l.Control,{property:n,errors:r},a.default.createElement(i.Dropdown,{value:t,onChange:c,emptyOption:v,options:b}))}},42954:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeContainer=t.AttributeTabContent=t.AttributeTypeTabs=t.AttributeEditorWrapper=void 0;var o,i,l,u,d=n(64316),c=n(51362),s=a(n(40265)),f=n(10042);t.AttributeEditorWrapper=(0,s.default)(f.PreviewEditor)(o||(o=r(["\n gap: 0;\n padding: 0;\n"],["\n gap: 0;\n padding: 0;\n"]))),t.AttributeTypeTabs=(0,s.default)(d.TabsWrapper)(i||(i=r(["\n width: 100%;\n overflow: hidden;\n align-self: flex-start;\n\n padding: "," "," 0;\n box-shadow: ",";\n"],["\n width: 100%;\n overflow: hidden;\n align-self: flex-start;\n\n padding: "," "," 0;\n box-shadow: ",";\n"])),c.spacings.md,c.spacings.md,c.shadows.bottom),t.AttributeTabContent=s.default.div(l||(l=r(["\n padding: ",";\n\n background: ",";\n"],["\n padding: ",";\n\n background: ",";\n"])),c.spacings.md,c.colors.white),t.AttributeContainer=(0,s.default)(f.PreviewEditorContainer)(u||(u=r([""],[""])))},64276:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributesEditor=void 0;var l=o(n(2784)),u=n(39384),d=i(n(52179)),c=i(n(26457)),s=i(n(2072)),f=n(57143),p=n(69412),m=n(42954),v=n(54243),h=n(35934);t.AttributesEditor=function(e){var t=e.property,n=e.attributes,r=e.updateValue,a=t.tabs||[],o=(0,l.useState)(a.at(0)),i=o[0],g=o[1],b=Object.entries(n).find((function(e){return e[0]===i.handle}))||[i.handle,[]],y=b[0],_=b[1],x=(0,f.useCellNavigation)(_.length,2),w=x.activeCell,E=x.setActiveCell,O=x.setCellRef,P=x.keyPressHandler;if((0,l.useEffect)((function(){E(0,0)}),[y]),!y||!_)return null;var j=function(e,t,a){E(void 0!==a?a+1:e,t),r((0,h.addAttribute)(y,n,void 0!==a?a:_.length-1))};return l.default.createElement(m.AttributeEditorWrapper,null,l.default.createElement(m.AttributeTypeTabs,null,t.tabs&&t.tabs.map((function(e){return l.default.createElement("a",{key:e.handle,className:(0,c.default)(e===i&&"active"),onClick:function(){return g(e)}},(0,s.default)(e.label))}))),l.default.createElement(m.AttributeTabContent,null,l.default.createElement(v.InputPreview,{tab:i,attributes:_}),l.default.createElement(m.AttributeContainer,null,l.default.createElement(p.TabularOptions,null,l.default.createElement("tbody",null,!_.length&&l.default.createElement(p.Row,null,l.default.createElement(p.Cell,null,l.default.createElement(p.Input,{type:"text",placeholder:(0,s.default)("Attribute"),onFocus:function(){j(0,0)}})),l.default.createElement(p.Cell,null,l.default.createElement(p.Input,{type:"text",placeholder:(0,s.default)("Value"),onFocus:function(){j(0,1)}}))),_.map((function(e,t){var a=e[0],o=e[1];return l.default.createElement(p.Row,{key:t},l.default.createElement(p.Cell,null,l.default.createElement(p.Input,{type:"text",value:String(a),placeholder:(0,s.default)("Attribute"),autoFocus:w==="".concat(t,":0"),ref:function(e){return O(e,t,0)},onFocus:function(){return E(t,0)},onKeyDown:P({onEnter:function(e){j(e.shiftKey?t:_.length,0,e.shiftKey?t:void 0)}}),onChange:function(e){r((0,h.updateAttribute)(t,y,[e.target.value,o],n))}})),l.default.createElement(p.Cell,null,l.default.createElement(p.Input,{type:"text",value:String(o),placeholder:(0,s.default)("Value"),autoFocus:w==="".concat(t,":1"),ref:function(e){return O(e,t,1)},onFocus:function(){return E(t,1)},onKeyDown:P({onEnter:function(e){j(e.shiftKey?t:_.length,1,e.shiftKey?t:void 0)}}),onChange:function(e){r((0,h.updateAttribute)(t,y,[a,e.target.value],n))}})),l.default.createElement(p.Cell,{$tiny:!0},l.default.createElement(p.Button,{tabIndex:-1,onClick:function(){r((0,h.deleteAttribute)(t,y,n)),E(Math.max(t-1,0),0)}},l.default.createElement(d.default,null))))}))))),l.default.createElement("br",null),l.default.createElement(u.HelpText,null,l.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,s.default)("Press enter while editing a cell to add a new row.")}}))))}},37562:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Value=t.Quote=t.Operator=t.Name=t.CodeBlock=void 0;var o,i,l,u,d,c=n(51362),s=a(n(40265));t.CodeBlock=s.default.div(o||(o=r(["\n position: relative;\n\n padding: "," ",";\n\n font-family: monospace;\n\n background: ",";\n border: 1px solid ",";\n border-bottom: none;\n border-radius: "," "," 0 0;\n"],["\n position: relative;\n\n padding: "," ",";\n\n font-family: monospace;\n\n background: ",";\n border: 1px solid ",";\n border-bottom: none;\n border-radius: "," "," 0 0;\n"])),c.spacings.sm,c.spacings.md,c.colors.gray050,c.colors.hairline,c.borderRadius.lg,c.borderRadius.lg),t.Name=s.default.span(i||(i=r(["\n color: ",";\n"],["\n color: ",";\n"])),c.colors.teal700),t.Operator=s.default.span(l||(l=r(["\n color: ",";\n"],["\n color: ",";\n"])),c.colors.gray300),t.Quote=s.default.span(u||(u=r(["\n &:before {\n content: '\"';\n color: ",";\n }\n"],["\n &:before {\n content: '\"';\n color: ",";\n }\n"])),c.colors.gray300),t.Value=s.default.span(d||(d=r(["\n color: ",";\n"],["\n color: ",";\n"])),c.colors.red300)},54243:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputPreview=void 0;var a=r(n(2784)),o=n(37562),i=n(35934);t.InputPreview=function(e){var t=e.tab,n=e.attributes;return a.default.createElement(o.CodeBlock,null,"<",t.previewTag,(0,i.attributesToArray)(n).map((function(e,t){var n=e[0],r=e[1];return a.default.createElement("span",{key:t},a.default.createElement(o.Name,null," ",n),!!r&&a.default.createElement(a.default.Fragment,null,a.default.createElement(o.Operator,null,"="),a.default.createElement(o.Quote,null),a.default.createElement(o.Value,null,r),a.default.createElement(o.Quote,null)))}))," />")}},35934:function(e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n\n \n
\n

\n field:').concat(e.value,"

\n
\n ")}},whitelist:v},onChange:g,value:o})),l.default.createElement(p.CalculationBoxHelp,null))}},8333:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Operator=t.OperatorReferenceItem=t.OperatorReference=t.OperatorReferenceTitle=void 0;var o,i,l,u,d=n(51362),c=a(n(40265));t.OperatorReferenceTitle=c.default.div(o||(o=r(["\n font-style: italic;\n font-weight: 500;\n font-size: 14px;\n color: ",";\n break-inside: avoid;\n"],["\n font-style: italic;\n font-weight: 500;\n font-size: 14px;\n color: ",";\n break-inside: avoid;\n"])),d.colors.gray400),t.OperatorReference=c.default.div(i||(i=r(["\n column-count: 4;\n"],["\n column-count: 4;\n"]))),t.OperatorReferenceItem=c.default.div(l||(l=r(["\n font-size: 12px;\n break-inside: avoid;\n color: ",";\n margin: 0 0 0.8rem;\n display: flex;\n flex-direction: column;\n gap: ",";\n\n > span {\n font-size: 14px;\n font-weight: 500;\n }\n"],["\n font-size: 12px;\n break-inside: avoid;\n color: ",";\n margin: 0 0 0.8rem;\n display: flex;\n flex-direction: column;\n gap: ",";\n\n > span {\n font-size: 14px;\n font-weight: 500;\n }\n"])),d.colors.gray300,d.spacings.xs),t.Operator=c.default.div(u||(u=r(["\n display: flex;\n\n > mark {\n font-size: 12px;\n font-family: 'Courier New', Courier, monospace;\n padding: 0 ",";\n border-radius: ",";\n background: ",";\n color: ",";\n margin-right: ",";\n max-height: 20px;\n }\n"],["\n display: flex;\n\n > mark {\n font-size: 12px;\n font-family: 'Courier New', Courier, monospace;\n padding: 0 ",";\n border-radius: ",";\n background: ",";\n color: ",";\n margin-right: ",";\n max-height: 20px;\n }\n"])),d.spacings.xs,d.borderRadius.md,d.colors.gray100,d.colors.gray500,d.spacings.md)},59633:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CalculationBoxHelp=void 0;var a=r(n(2784)),o=r(n(2072)),i=r(n(71967)),l=n(8333);t.CalculationBoxHelp=function(){var e=i.default;return a.default.createElement(a.default.Fragment,null,a.default.createElement(l.OperatorReferenceTitle,null,(0,o.default)(e.title)),a.default.createElement(l.OperatorReference,null,e.operators.map((function(e){return a.default.createElement(l.OperatorReferenceItem,{key:e.title},a.default.createElement("span",null,(0,o.default)(e.title)),e.items.map((function(e){return a.default.createElement(l.Operator,{key:e.operator},a.default.createElement("mark",null,e.operator),e.name&&a.default.createElement("span",null,(0,o.default)(e.name)))})))}))))}},79856:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useCalculationFieldHandles=t.generateValue=void 0;var r=n(86993),a=n(4165);t.generateValue=function(e,t){return e.replace(/field:([a-zA-Z0-9_]+)/g,(function(e,n){return"..."===t?"".concat(n,""):"[[".concat(n,"]]")}))};t.useCalculationFieldHandles=function(e){return(0,r.useSelector)(a.fieldSelectors.all).filter((function(t){return e.availableFieldTypes.includes(t.typeClass)})).map((function(e){return e.properties.handle}))}},14251:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewContainer=void 0;var o,i=n(51362),l=a(n(40265)),u=n(97369);t.PreviewContainer=(0,l.default)(u.PreviewTable)(o||(o=r(["\n padding: ",";\n\n mark {\n padding: "," ",";\n border-radius: ",";\n background: ",";\n }\n"],["\n padding: ",";\n\n mark {\n padding: "," ",";\n border-radius: ",";\n background: ",";\n }\n"])),i.spacings.sm,i.spacings.xs,i.spacings.sm,i.borderRadius.lg,i.colors.gray100)},15422:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CalculationBoxPreview=void 0;var a=r(n(2784)),o=r(n(2072)),i=n(97369),l=n(79856),u=n(14251);t.CalculationBoxPreview=function(e){var t=e.value;return a.default.createElement(i.PreviewWrapper,{"data-edit":(0,o.default)("Click to edit data")},a.default.createElement(u.PreviewContainer,null,!t&&a.default.createElement(i.NoContent,null,(0,o.default)("Not configured yet")),a.default.createElement("div",{style:{lineHeight:"2.0"},dangerouslySetInnerHTML:{__html:(0,l.generateValue)(t,"...")}})))}},46640:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(2784)),o=n(33819),i=n(46425),l=n(61815),u=n(15422);n(3562);t.default=function(e){var t=e.value,n=e.property,r=e.errors,d=e.updateValue;return a.default.createElement(i.Control,{property:n,errors:r},a.default.createElement(o.PreviewableComponent,{preview:a.default.createElement(u.CalculationBoxPreview,{value:t})},a.default.createElement(l.CalculationBoxEditor,{value:t,property:n,updateValue:d})))}},65645:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxesWrapper=t.SelectAllWrapper=void 0;var o,i,l=n(51362),u=a(n(40265));t.SelectAllWrapper=u.default.div(o||(o=r(["\n position: relative;\n\n padding-bottom: 5px;\n margin-bottom: 5px;\n font-style: italic;\n\n &:after {\n content: '';\n position: absolute;\n left: -5px;\n right: -5px;\n bottom: 0;\n\n display: block;\n height: 1px;\n\n box-shadow: ",";\n }\n"],["\n position: relative;\n\n padding-bottom: 5px;\n margin-bottom: 5px;\n font-style: italic;\n\n &:after {\n content: '';\n position: absolute;\n left: -5px;\n right: -5px;\n bottom: 0;\n\n display: block;\n height: 1px;\n\n box-shadow: ",";\n }\n"])),l.shadows.bottom),t.CheckboxesWrapper=u.default.div(i||(i=r(["\n columns: ",";\n\n label {\n display: block;\n max-width: 100%;\n padding: 0 10px;\n\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"],["\n columns: ",";\n\n label {\n display: block;\n max-width: 100%;\n padding: 0 10px;\n\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"])),(function(e){return e.$columns||1}))},42145:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a svg {\n width: 100%;\n height: 100%;\n\n color: ",";\n }\n"],["\n position: absolute;\n top: 0;\n right: -25px;\n\n opacity: 0;\n\n width: 20px;\n height: 20px;\n\n > svg {\n width: 100%;\n height: 100%;\n\n color: ",";\n }\n"])),c.colors.gray400),t.RemoveButton=(0,s.default)(d.animated.button)(l||(l=r(["\n position: absolute;\n top: 0;\n right: -50px;\n\n opacity: 0;\n\n width: 20px;\n height: 20px;\n\n > svg {\n width: 100%;\n height: 100%;\n\n color: ",";\n }\n"],["\n position: absolute;\n top: 0;\n right: -50px;\n\n opacity: 0;\n\n width: 20px;\n height: 20px;\n\n > svg {\n width: 100%;\n height: 100%;\n\n color: ",";\n }\n"])),c.colors.gray400),t.LabelElement=(0,s.default)(d.animated.h1)(u||(u=r(["\n cursor: pointer;\n\n min-height: 10px;\n\n margin: 0 0 0 -8px;\n padding: "," 40px "," ",";\n\n border: 0;\n border-radius: ",";\n\n > span {\n position: relative;\n display: inline-block;\n\n > span:empty:after {\n content: 'No Title';\n\n color: ",";\n font-style: italic;\n }\n }\n"],["\n cursor: pointer;\n\n min-height: 10px;\n\n margin: 0 0 0 -8px;\n padding: "," 40px "," ",";\n\n border: 0;\n border-radius: ",";\n\n > span {\n position: relative;\n display: inline-block;\n\n > span:empty:after {\n content: 'No Title';\n\n color: ",";\n font-style: italic;\n }\n }\n"])),c.spacings.sm,c.spacings.sm,c.spacings.sm,c.borderRadius.lg,c.colors.gray300)},9061:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(n(2784)),u=n(11767),d=i(n(26457)),c=i(n(71059)),s=n(88123),f=n(31175);t.default=function(e){var t=e.value,n=e.property,r=e.errors,a=e.updateValue,o=(0,l.useState)(!1),i=o[0],p=o[1],m=(0,l.useState)(!1),v=m[0],h=m[1],g=n.handle,b=(0,l.useRef)(null),y=(0,s.useLabelAnimation)(i),_=(0,s.useEditButtonAnimations)(i);return l.default.createElement(f.EditableLabelWrapper,{className:(0,d.default)((null==r?void 0:r.length)>0&&"errors")},v&&l.default.createElement("input",{id:g,ref:b,type:"text",className:"text fullwidth",value:t||"",onChange:function(e){return a(e.target.value)},onBlur:function(){return h(!1)},onKeyDown:function(e){"Enter"===e.key&&h(!1)}}),!v&&l.default.createElement(f.LabelElement,{style:y,onClick:function(){h(!0),p(!1),setTimeout((function(){var e;null===(e=b.current)||void 0===e||e.focus()}),3)},onMouseEnter:function(){return p(!0)},onMouseLeave:function(){return p(!1)}},l.default.createElement("span",null,l.default.createElement("span",null,t),l.default.createElement(f.EditButton,{style:_},l.default.createElement(c.default,null)))),l.default.createElement(u.FormErrorList,{errors:r}))}},78027:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MaxInput=t.MinInput=t.Wrapper=void 0;var o=a(n(40265));t.Wrapper=o.default.div(i||(i=r(["\n display: flex;\n"],["\n display: flex;\n"])));var i,l,u,d,c=o.default.input(l||(l=r(["\n width: 100%;\n --focus-ring: 0;\n"],["\n width: 100%;\n --focus-ring: 0;\n"])));t.MinInput=(0,o.default)(c)(u||(u=r(["\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n"],["\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n"]))),t.MaxInput=(0,o.default)(c)(d||(d=r(["\n border-left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n"],["\n border-left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n"])))},79174:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(2784)),o=n(46425),i=n(78027);t.default=function(e){var t,n=e.value,r=e.property,l=e.errors,u=e.updateValue,d=e.context,c=n||[null,null],s=c[0],f=c[1],p=(null===(t=d.properties)||void 0===t?void 0:t.allowNegative)?null:0;return a.default.createElement(o.Control,{property:r,errors:l},a.default.createElement(i.Wrapper,null,a.default.createElement("div",null,a.default.createElement(i.MinInput,{id:"min",value:null===s?"":s,type:"number",min:p,className:"text",placeholder:"Min",onChange:function(e){var t=e.target,n=""!==t.value?Number(t.value):null;u([n,f])}})),a.default.createElement("div",null,a.default.createElement(i.MaxInput,{id:"max",value:null===f?"":f,type:"number",min:p,className:"text",placeholder:"Max",onChange:function(e){var t=e.target,n=""!==t.value?Number(t.value):null;u([s,n])}}))))}},86082:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldSelect=void 0;var a=r(n(2784)),o=n(4500),i=n(68991),l=r(n(2072));t.FieldSelect=function(e){var t=e.value,n=e.onChange,r=(0,i.useFieldOptionCollection)();return a.default.createElement(o.Dropdown,{options:r,emptyOption:(0,l.default)("Do not map this field"),value:t,onChange:n})}},47815:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o.default.createElement(v.TypeButton,{title:(0,c.default)("Pre-defined options"),className:(0,d.default)(a.type===u.TargetFieldType.Preset&&"active"),onClick:function(){return h(e.id,u.TargetFieldType.Preset)}},o.default.createElement(f.default,null)),o.default.createElement(v.TypeButton,{title:(0,c.default)("Twig code"),className:(0,d.default)(a.type===u.TargetFieldType.Custom&&"active"),onClick:function(){return h(e.id,u.TargetFieldType.Custom)}},o.default.createElement(s.default,null)),o.default.createElement(v.TypeButton,{title:(0,c.default)("Freeform field"),className:(0,d.default)(a.type===u.TargetFieldType.Relation&&"active"),onClick:function(){return h(e.id,u.TargetFieldType.Relation)}},o.default.createElement(p.default,null))),o.default.createElement("div",null,a.type===u.TargetFieldType.Preset&&o.default.createElement(i.Dropdown,{value:null==a?void 0:a.value,showValues:!0,emptyOption:(0,c.default)("Select an option"),onChange:function(t){h(e.id,u.TargetFieldType.Preset,t)},options:e.options.map((function(e){return{value:e.key,label:e.label}}))}),a.type===u.TargetFieldType.Relation&&o.default.createElement(m.FieldSelect,{value:null==a?void 0:a.value,onChange:function(t){h(e.id,u.TargetFieldType.Relation,t)}}),a.type===u.TargetFieldType.Custom&&o.default.createElement(v.TwigInput,{type:"text",className:"text fullwidth code",placeholder:"e.g. {{ yourField }} {{ otherField }}",value:a.value,onChange:function(t){h(e.id,u.TargetFieldType.Custom,t.target.value)}})))})))}},37774:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TwigInput=t.TypeButton=t.TypeButtonGroup=t.SourceField=t.MappingContainer=t.MappingWrapper=t.RefreshButton=void 0;var o=n(41829),i=n(80159),l=n(51362),u=a(n(40265));t.RefreshButton=u.default.button(d||(d=r(["\n position: absolute;\n top: 0;\n right: 0;\n\n font-size: 16px;\n\n &[disabled] > svg {\n fill: ",";\n\n animation: "," 2s infinite;\n transform-origin: 50% 50%;\n }\n"],["\n position: absolute;\n top: 0;\n right: 0;\n\n font-size: 16px;\n\n &[disabled] > svg {\n fill: ",";\n\n animation: "," 2s infinite;\n transform-origin: 50% 50%;\n }\n"])),l.colors.gray300,o.animations.spinner),t.MappingWrapper=u.default.div(c||(c=r(["\n display: grid;\n align-items: center;\n gap: ",";\n\n grid-template-columns: auto min-content 400px;\n\n padding: 2px 0;\n\n > div:first-child {\n flex-grow: 1;\n }\n\n > div:last-child {\n flex-basis: 300px;\n }\n"],["\n display: grid;\n align-items: center;\n gap: ",";\n\n grid-template-columns: auto min-content 400px;\n\n padding: 2px 0;\n\n > div:first-child {\n flex-grow: 1;\n }\n\n > div:last-child {\n flex-basis: 300px;\n }\n"])),l.spacings.sm),t.MappingContainer=u.default.div(s||(s=r(["\n max-width: 1000px;\n max-height: 454px;\n\n overflow-y: auto;\n overflow-x: hidden;\n\n border: 1px solid rgb(205 216 228 / 50%);\n border-radius: 5px;\n\n padding: "," ",";\n\n ",";\n"],["\n max-width: 1000px;\n max-height: 454px;\n\n overflow-y: auto;\n overflow-x: hidden;\n\n border: 1px solid rgb(205 216 228 / 50%);\n border-radius: 5px;\n\n padding: "," ",";\n\n ",";\n"])),l.spacings.sm,l.spacings.lg,i.scrollBar),t.SourceField=u.default.div(f||(f=r(["\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 50%;\n\n display: block;\n\n width: 100%;\n height: 1px;\n\n background-color: ",";\n }\n\n > span {\n position: relative;\n z-index: 2;\n\n display: block;\n padding: 0 10px 0 0;\n width: fit-content;\n\n background-color: white;\n }\n\n &.required > span {\n &:after {\n content: '*';\n position: relative;\n right: -2px;\n\n color: ",";\n }\n }\n"],["\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 50%;\n\n display: block;\n\n width: 100%;\n height: 1px;\n\n background-color: ",";\n }\n\n > span {\n position: relative;\n z-index: 2;\n\n display: block;\n padding: 0 10px 0 0;\n width: fit-content;\n\n background-color: white;\n }\n\n &.required > span {\n &:after {\n content: '*';\n position: relative;\n right: -2px;\n\n color: ",";\n }\n }\n"])),l.colors.gray100,l.colors.error),t.TypeButtonGroup=u.default.div(p||(p=r(["\n display: flex;\n"],["\n display: flex;\n"])));var d,c,s,f,p,m,v,h="8px";t.TypeButton=u.default.button(m||(m=r(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 34px;\n height: 28px;\n\n fill: ",";\n background-color: ",";\n\n &.active {\n fill: ",";\n background-color: ",";\n }\n\n &:first-child {\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n }\n\n &:last-child {\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n }\n\n svg {\n width: 16px;\n height: 16px;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 34px;\n height: 28px;\n\n fill: ",";\n background-color: ",";\n\n &.active {\n fill: ",";\n background-color: ",";\n }\n\n &:first-child {\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n }\n\n &:last-child {\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n }\n\n svg {\n width: 16px;\n height: 16px;\n }\n"])),l.colors.gray550,l.colors.elements.dropdown,l.colors.gray050,l.colors.gray550,h,h,h,h),t.TwigInput=u.default.input(v||(v=r(["\n &::placeholder {\n color: ",";\n }\n"],["\n &::placeholder {\n color: ",";\n }\n"])),l.colors.gray250)},49719:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{u(r.next(e))}catch(e){o(e)}}function l(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}u((r=r.apply(e,t||[])).next())}))},l=this&&this.__generator||function(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&l[0]?r.return:l[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;switch(r=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1] svg {\n position: absolute;\n left: 0;\n top: 2px;\n\n width: 18px;\n height: 18px;\n }\n"],["\n position: relative;\n\n padding: 0 0 0 24px;\n\n font-size: 12px;\n color: ",";\n\n max-lines: 1;\n max-height: 60px;\n overflow: hidden;\n\n > svg {\n position: absolute;\n left: 0;\n top: 2px;\n\n width: 18px;\n height: 18px;\n }\n"])),c.colors.gray300),t.Id=s.default.div(u||(u=r(["\n padding: 2px 0 1px;\n font-size: 10px !important;\n color: ",";\n"],["\n padding: 2px 0 1px;\n font-size: 10px !important;\n color: ",";\n"])),c.colors.gray300)},74292:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useSelectionAnimations=t.useEditorAnimations=void 0;var r=n(79066);t.useEditorAnimations=function(e,t){var n=210;return t>6?n=360:t>3&&(n=280),(0,r.useSpring)({height:e?n:36,config:{tension:500,friction:e?26:40}})};t.useSelectionAnimations=function(e){return(0,r.useSpring)({opacity:e?1:0,overflowY:e?"auto":"hidden",config:{tension:500}})}},26163:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useNotificationTemplates=void 0;var r=n(74740);t.useNotificationTemplates=function(e){var t,n,a,o=(0,r.useQueryNotificationTemplates)(),i=o.data,l=o.isFetching,u=(null==i?void 0:i.templates)||{database:[],files:[]},d="string"==typeof e;return"number"==typeof e?a=null===(t=null==u?void 0:u.database)||void 0===t?void 0:t.find((function(t){return t.id===e})):d&&(a=null===(n=null==u?void 0:u.files)||void 0===n?void 0:n.find((function(t){return t.id===e}))),{templates:u,isFetching:l,selectedTemplate:a}}},4002:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonRow=t.CategorySelectionWrapper=t.SelectedNotification=t.NotificationTemplateSelector=void 0;var o,i,l,u,d,c=n(79066),s=n(80159),f=n(51362),p=a(n(40265));t.NotificationTemplateSelector=(0,p.default)(c.animated.div)(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: 0;\n\n padding: 0;\n\n border: 1px solid ",";\n border-radius: ",";\n\n overflow: hidden;\n"],["\n display: flex;\n flex-direction: column;\n gap: 0;\n\n padding: 0;\n\n border: 1px solid ",";\n border-radius: ",";\n\n overflow: hidden;\n"])),f.colors.inputBorder,f.borderRadius.lg),t.SelectedNotification=p.default.div(i||(i=r(["\n position: relative;\n cursor: pointer;\n\n height: 36px;\n\n flex: 1 0 36px;\n padding: 7px 12px;\n\n overflow: hidden;\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n\n ","\n\n > span {\n &:empty {\n &:after {\n content: 'Please select...';\n color: ",";\n }\n }\n }\n\n > svg {\n position: absolute;\n right: 6px;\n top: calc(50% - 7px);\n\n display: block;\n width: 14px;\n height: 14px;\n stroke-width: 3px;\n fill: #e5e7eb;\n transition: transform 0.2s ease-in-out;\n }\n\n &.open {\n > svg {\n transform: rotate(-90deg);\n }\n }\n"],["\n position: relative;\n cursor: pointer;\n\n height: 36px;\n\n flex: 1 0 36px;\n padding: 7px 12px;\n\n overflow: hidden;\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n\n ","\n\n > span {\n &:empty {\n &:after {\n content: 'Please select...';\n color: ",";\n }\n }\n }\n\n > svg {\n position: absolute;\n right: 6px;\n top: calc(50% - 7px);\n\n display: block;\n width: 14px;\n height: 14px;\n stroke-width: 3px;\n fill: #e5e7eb;\n transition: transform 0.2s ease-in-out;\n }\n\n &.open {\n > svg {\n transform: rotate(-90deg);\n }\n }\n"])),(function(e){return e.empty&&"\n color: ".concat(f.colors.gray300,";\n font-style: italic;\n ")}),f.colors.gray600),t.CategorySelectionWrapper=(0,p.default)(c.animated.div)(l||(l=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n height: 100%;\n padding: "," "," "," ",";\n\n border-top: 1px solid ",";\n overflow-y: auto;\n overflow-x: hidden;\n\n ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n height: 100%;\n padding: "," "," "," ",";\n\n border-top: 1px solid ",";\n overflow-y: auto;\n overflow-x: hidden;\n\n ",";\n"])),f.spacings.lg,f.spacings.sm,f.spacings.lg,f.spacings.sm,f.spacings.sm,f.colors.inputBorder,s.scrollBar),t.ButtonRow=(0,p.default)(c.animated.div)(u||(u=r(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: start;\n gap: ",";\n\n border-top: 1px solid ",";\n\n padding: ",";\n background-color: ",";\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: start;\n gap: ",";\n\n border-top: 1px solid ",";\n\n padding: ",";\n background-color: ",";\n"])),f.spacings.sm,f.colors.inputBorder,f.spacings.sm,f.colors.gray100),t.Button=p.default.button(d||(d=r(["\n padding-top: 2px;\n padding-bottom: 3px;\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n\n &.submit {\n margin-left: auto;\n }\n"],["\n padding-top: 2px;\n padding-bottom: 3px;\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n\n &.submit {\n margin-left: auto;\n }\n"])))},50352:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(2784)),o=n(46425),i=n(11767),l=n(57092),u=n(96788),d=n(51362),c=n(88863),s=r(n(26457)),f=r(n(2072)),p=n(70006),m=r(n(54224)),v=n(74292),h=n(26163),g=n(4002);t.default=function(e){var t,n,r=e.value,b=e.property,y=e.errors,_=e.updateValue,x=a.default.useState(!1),w=x[0],E=x[1],O=(0,h.useNotificationTemplates)(r),P=O.templates,j=O.isFetching,k=O.selectedTemplate,M=(0,v.useEditorAnimations)(w,(null===(t=null==P?void 0:P.database)||void 0===t?void 0:t.length)+(null===(n=null==P?void 0:P.files)||void 0===n?void 0:n.length)),C=(0,v.useSelectionAnimations)(w),S=(0,u.useNewNotificationMutation)();if(j&&!P)return a.default.createElement(o.Control,{property:b,errors:y},a.default.createElement(g.NotificationTemplateSelector,{style:{height:36}},a.default.createElement(g.SelectedNotification,{empty:!0},a.default.createElement("span",null,a.default.createElement(l.LoadingText,{spinner:!0,loading:!0,instant:!0},(0,f.default)("Loading Templates"))),a.default.createElement(m.default,null))));var F=function(e){S.reset(),_(e.id),E(!1)};return a.default.createElement(o.Control,{property:b,errors:y},a.default.createElement(g.NotificationTemplateSelector,{style:M},a.default.createElement(g.SelectedNotification,{onClick:function(){return E(!w)},className:(0,s.default)(w&&"open")},a.default.createElement("span",null,null==k?void 0:k.name),a.default.createElement(m.default,null)),a.default.createElement(g.CategorySelectionWrapper,{style:C},a.default.createElement(p.Category,{value:r,category:c.TemplateType.Database,templates:P.database,onClick:F}),a.default.createElement(p.Category,{value:r,category:c.TemplateType.File,templates:P.files,onClick:F})),a.default.createElement(g.ButtonRow,{style:{opacity:C.opacity}},a.default.createElement(g.Button,{className:(0,s.default)("btn",S.isLoading&&"disabled"),disabled:S.isLoading,onClick:function(){S.reset(),E(!1)}},(0,f.default)("Close")),a.default.createElement(g.Button,{className:(0,s.default)("btn",S.isLoading&&"disabled"),disabled:S.isLoading,onClick:function(){S.reset(),_(void 0),E(!1)}},(0,f.default)("Clear choice")),a.default.createElement(g.Button,{className:(0,s.default)("btn","submit",!S.isLoading&&"add",!S.isLoading&&"icon",S.isLoading&&"disabled"),disabled:S.isLoading,onClick:function(){return S.mutate({name:"New Template"},{onSuccess:function(e){var t=e.data;F(t)}})}},S.isLoading&&a.default.createElement(l.LoadingText,null,(0,f.default)("Creating a template")),!S.isLoading&&(0,f.default)("New template"))),S.isError&&a.default.createElement(i.FormErrorList,{style:{margin:"0 ".concat(d.spacings.sm," ").concat(d.spacings.sm)},errors:S.error.errors})))}},79335:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockWrapper=void 0;var o,i=n(51362),l=a(n(40265));t.BlockWrapper=l.default.div(o||(o=r(["\n display: grid;\n align-items: center;\n gap: ",";\n\n grid-template-columns: 1.5fr 1fr 1.5fr;\n"],["\n display: grid;\n align-items: center;\n gap: ",";\n\n grid-template-columns: 1.5fr 1fr 1.5fr;\n"])),i.spacings.md)},11400:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nenter while focusing an input to add a new set of inputs.")}})))}},36856:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutBlock=t.Button=t.ButtonGroup=t.ButtonLayoutWrapper=void 0;var o,i,l,u,d=n(51362),c=a(n(40265));t.ButtonLayoutWrapper=c.default.ul(o||(o=r(["\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: ",";\n\n margin-top: ",";\n"],["\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: ",";\n\n margin-top: ",";\n"])),d.spacings.sm,d.spacings.sm),t.ButtonGroup=c.default.div(i||(i=r(["\n display: flex;\n gap: 2px;\n"],["\n display: flex;\n gap: 2px;\n"]))),t.Button=c.default.button(l||(l=r(["\n display: block;\n padding: 3px 5px;\n\n border-radius: ",";\n font-size: 16px;\n\n &:not(.enabled) {\n opacity: 0.2;\n }\n\n &.submit {\n background-color: "," !important;\n fill: "," !important;\n }\n"],["\n display: block;\n padding: 3px 5px;\n\n border-radius: ",";\n font-size: 16px;\n\n &:not(.enabled) {\n opacity: 0.2;\n }\n\n &.submit {\n background-color: "," !important;\n fill: "," !important;\n }\n"])),d.borderRadius.md,d.colors.gray600,d.colors.white),t.LayoutBlock=c.default.li(u||(u=r(["\n cursor: pointer;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n padding: 3px;\n\n border: 1px solid ",";\n border-radius: ",";\n background-color: ",";\n\n transition: background-color 0.2s ease-in-out;\n\n "," {\n fill: ",";\n background: ",";\n }\n\n &.active {\n border-color: ",";\n background-color: ",";\n\n "," {\n background: ",";\n fill: ",";\n\n &.submit {\n background-color: "," !important;\n fill: "," !important;\n }\n }\n }\n\n &:not(.active):hover {\n background-color: ",";\n }\n"],["\n cursor: pointer;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n padding: 3px;\n\n border: 1px solid ",";\n border-radius: ",";\n background-color: ",";\n\n transition: background-color 0.2s ease-in-out;\n\n "," {\n fill: ",";\n background: ",";\n }\n\n &.active {\n border-color: ",";\n background-color: ",";\n\n "," {\n background: ",";\n fill: ",";\n\n &.submit {\n background-color: "," !important;\n fill: "," !important;\n }\n }\n }\n\n &:not(.active):hover {\n background-color: ",";\n }\n"])),d.colors.gray100,d.borderRadius.md,d.colors.gray100,t.Button,d.colors.white,d.colors.gray300,d.colors.gray500,d.colors.gray500,t.Button,d.colors.white,d.colors.gray500,d.colors.gray200,d.colors.gray600,d.colors.gray200)},15715:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(2784)),o=n(46425),i=r(n(26457)),l=r(n(70460)),u=r(n(56346)),d=r(n(88622)),c=n(36856),s={save:a.default.createElement(u.default,null),back:a.default.createElement(l.default,null),submit:a.default.createElement(d.default,null)};t.default=function(e){var t,n,r=e.value,l=e.property,u=e.errors,d=e.updateValue,f=e.context,p=l.layouts,m={save:null===(t=null==f?void 0:f.buttons)||void 0===t?void 0:t.save,back:null===(n=null==f?void 0:f.buttons)||void 0===n?void 0:n.back,submit:!0};return a.default.createElement(o.Control,{property:l,errors:u},a.default.createElement(c.ButtonLayoutWrapper,null,p.map((function(e,t){return a.default.createElement(c.LayoutBlock,{key:t,onClick:function(){return d(e)},className:(0,i.default)(r===e&&"active")},e.split(" ").map((function(e,t){return a.default.createElement(c.ButtonGroup,{key:t},e.split("|").filter(Boolean).map((function(e,t){return a.default.createElement(c.Button,{className:(0,i.default)(e,(null==m?void 0:m[e])&&"enabled"),key:t},s[e])})))})))}))))}},96923:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PageButtonWrapper=void 0;var o,i=n(80286),l=a(n(40265));t.PageButtonWrapper=l.default.label(o||(o=r(["\n display: flex;\n justify-content: start;\n\n "," {\n margin-bottom: 2px;\n }\n"],["\n display: flex;\n justify-content: start;\n\n "," {\n margin-bottom: 2px;\n }\n"])),i.CheckboxWrapper)},42753:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n",label:"Arrow"},{value:" ",label:"Space"}]}}),l.default.createElement(u.default,{updateValue:function(e){return g(e)},value:h,property:{label:(0,p.default)("Append Values"),handle:"append",type:f.PropertyType.Boolean}}),l.default.createElement(c.default,{value:y,updateValue:function(e){return _(e)},focus:t,ref:x,property:{label:(0,p.default)("Bulk Editor"),instructions:(0,p.default)("Enter bulk values separated by new lines. If using custom values for option labels, you can provide a label and a value separated by a separator. For example, if you used `{separator}` you would write: `Label{separator}value`.",{separator:o}),handle:"bulkEditor",type:f.PropertyType.Textarea,rows:10}}),l.default.createElement("button",{className:"btn submit",onClick:w},(0,p.default)(h?"Append Options with Bulk Import":"Replace Options with Bulk Import")))}},47846:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BulkButton=t.BulkWrapper=t.ChoiceWrapper=void 0;var o,i,l,u=n(51362),d=a(n(40265));t.ChoiceWrapper=d.default.div(o||(o=r(["\n display: flex;\n justify-content: space-between;\n"],["\n display: flex;\n justify-content: space-between;\n"]))),t.BulkWrapper=d.default.div(i||(i=r(["\n flex: 0 1 auto;\n"],["\n flex: 0 1 auto;\n"]))),t.BulkButton=d.default.button(l||(l=r(["\n display: flex;\n align-items: center;\n gap: ",";\n\n &:focus {\n outline: none;\n box-shadow: none;\n }\n\n span {\n white-space: nowrap;\n }\n\n &:hover {\n span {\n text-decoration: underline;\n }\n }\n"],["\n display: flex;\n align-items: center;\n gap: ",";\n\n &:focus {\n outline: none;\n box-shadow: none;\n }\n\n span {\n white-space: nowrap;\n }\n\n &:hover {\n span {\n text-decoration: underline;\n }\n }\n"])),u.spacings.sm)},5355:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&d.default.createElement(d.default.Fragment,null,d.default.createElement(f.Cell,{$tiny:!0},d.default.createElement(s.default,{property:{label:"",handle:"".concat(t,"-check"),type:_.PropertyType.Boolean},value:i?a.includes(e.value):e.value===a,updateValue:function(){if(i){var t=a;o(t.includes(e.value)?t.filter((function(t){return t!==e.value})):l(l([],t,!0),[e.value],!1))}else o(e.value===a?"":e.value)}})),d.default.createElement(f.Cell,{$tiny:!0},d.default.createElement(f.Button,{ref:T.current[t],className:"handle"},d.default.createElement(h.default,null))),d.default.createElement(f.Cell,{$tiny:!0},d.default.createElement(f.Button,{onClick:function(){j((0,O.deleteOption)(t,P)),R(Math.max(t-1,0),0)}},d.default.createElement(v.default,null)))))}))))),d.default.createElement(c.HelpText,null,d.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,x.default)("Press enter while editing a cell to add a new row.")}})))}},53585:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n div {\n &:first-child {\n flex-grow: 1;\n }\n\n &:nth-child(2) {\n flex-shrink: 0;\n flex-basis: 100px;\n }\n }\n"],["\n display: flex;\n\n > div {\n &:first-child {\n flex-grow: 1;\n }\n\n &:nth-child(2) {\n flex-shrink: 0;\n flex-basis: 100px;\n }\n }\n"])))},89726:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPreview=void 0;var a=r(n(2784)),o=n(97369),i=r(n(2072)),l=n(57482);t.CustomPreview=function(e){var t=e.value,n=t.options,r=void 0===n?[]:n,u=t.useCustomValues;return a.default.createElement(o.PreviewWrapper,{"data-edit":(0,i.default)("Click to edit data")},a.default.createElement(o.PreviewTable,null,!r.length&&a.default.createElement(o.NoContent,null,(0,i.default)("Not configured yet")),r.map((function(e,t){return a.default.createElement(l.PreviewRow,{key:t},a.default.createElement(o.PreviewData,{"data-empty":(0,i.default)("empty")},e.label),u&&a.default.createElement(o.PreviewData,{"data-empty":(0,i.default)("empty")},e.value))}))))}},1691:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(2784)),o=n(23925),i=n(33819),l=r(n(2072)),u=n(5355),d=n(53585),c=n(89726);t.default=function(e){var t=e.value,n=e.updateValue,r=e.property,s=e.defaultValue,f=e.updateDefaultValue,p=e.isMultiple;return a.default.createElement(a.default.Fragment,null,a.default.createElement(o.Label,null,(0,l.default)("Options")),a.default.createElement(i.PreviewableComponent,{preview:a.default.createElement(c.CustomPreview,{value:t,defaultValue:s,isMultiple:p}),excludeClassNames:["bulk-editor"],onAfterEdit:function(){return n((0,d.cleanOptions)(t))}},a.default.createElement(u.CustomEditor,{value:t,updateValue:n,property:r,defaultValue:s,updateDefaultValue:f,isMultiple:p})))}},13866:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.generateDefaultValue=void 0;var r=n(69229);t.generateDefaultValue=function(e){switch(e){case r.Source.Elements:return{source:r.Source.Elements,typeClass:"",properties:{}};case r.Source.Predefined:return{source:r.Source.Predefined,typeClass:"",properties:{}};case r.Source.Custom:default:return{source:r.Source.Custom,useCustomValues:!1,options:[]}}}},78155:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.custom=t.predefined=t.elements=void 0;var a=n(39149);Object.defineProperty(t,"elements",{enumerable:!0,get:function(){return r(a).default}});var o=n(76238);Object.defineProperty(t,"predefined",{enumerable:!0,get:function(){return r(o).default}});var i=n(1691);Object.defineProperty(t,"custom",{enumerable:!0,get:function(){return r(i).default}})},23773:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SourceComponent=void 0;var i=o(n(2784)),l=n(90163),u=n(69229),d=o(n(78155));t.SourceComponent=function(e){var t=e.value,n=e.updateValue,r=e.property,a=e.defaultValue,o=e.updateDefaultValue,c=e.convertToCustomValues,s=e.isMultiple,f=t.source,p=void 0===f?u.Source.Custom:f,m=d[p];return void 0===m?i.default.createElement("div",null,p," not implemented..."):(m.displayName="Source <".concat(p,">"),i.default.createElement(l.ErrorBoundary,{message:"...".concat(p," not implemented")},i.default.createElement(i.Suspense,null,i.default.createElement(m,{value:t,updateValue:n,property:r,defaultValue:a,updateDefaultValue:o,convertToCustomValues:c,isMultiple:s}))))}},97191:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OriginalValuePreview=t.ValueInputWrapper=void 0;var o,i,l=a(n(40265));t.ValueInputWrapper=l.default.div(o||(o=r(["\n display: flex;\n align-items: center;\n gap: 0px;\n\n margin-left: 5px;\n\n svg {\n width: 20px;\n height: 20px;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 0px;\n\n margin-left: 5px;\n\n svg {\n width: 20px;\n height: 20px;\n }\n"]))),t.OriginalValuePreview=l.default.span(i||(i=r(["\n width: 200px;\n display: block;\n padding: 0 5px;\n\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n"],["\n width: 200px;\n display: block;\n padding: 0 5px;\n\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n"])))},48639:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n svg {\n fill: currentColor;\n }\n"],["\n padding: 1px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n\n &.handle {\n cursor: move;\n }\n\n &:disabled {\n cursor: not-allowed;\n color: lightgray;\n }\n\n > svg {\n fill: currentColor;\n }\n"])))},42026:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&u.default.createElement(u.default.Fragment,null,u.default.createElement(c.Cell,{$tiny:!0},u.default.createElement(c.Button,{ref:o.current[i],className:"handle"},u.default.createElement(v.default,null))),u.default.createElement(c.Cell,{$tiny:!0},u.default.createElement(c.Button,{onClick:function(){a((0,s.deleteColumn)(i,n)),g(Math.max(i-1,0),0)}},u.default.createElement(m.default,null)))))}))))),u.default.createElement(d.HelpText,null,u.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,h.default)("Press enter while editing a cell to add a new row.")}})))}},48807:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a div {\n white-space: nowrap;\n overflow: hidden;\n\n padding: 7px "," 7px 0;\n\n &:last-child {\n padding-right: 0;\n }\n }\n"],["\n position: relative;\n\n display: grid;\n grid-template-columns: auto 100px;\n gap: 10px;\n\n justify-items: stretch;\n align-items: center;\n\n border-bottom: 1px solid ",";\n\n &:after {\n content: attr(data-title);\n\n position: absolute;\n left: calc(100% - 105px);\n bottom: -7px;\n\n padding: 0 5px;\n background: ",";\n\n ",";\n font-size: 8px;\n }\n\n > div {\n white-space: nowrap;\n overflow: hidden;\n\n padding: 7px "," 7px 0;\n\n &:last-child {\n padding-right: 0;\n }\n }\n"])),f.colors.gray100,f.colors.white,s.labelText,f.spacings.xs),t.PreviewData=p.default.div(c||(c=r(["\n &:empty {\n &:after {\n content: attr(data-empty);\n color: ",";\n font-size: 12px;\n font-style: italic;\n }\n }\n"],["\n &:empty {\n &:after {\n content: attr(data-empty);\n color: ",";\n font-size: 12px;\n font-style: italic;\n }\n }\n"])),f.colors.gray200)},98652:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TablePreview=void 0;var a=r(n(2784)),o=r(n(2072)),i=n(97369),l=function(e,t){var n;return(null===(n=e.find((function(e){return e.value===t})))||void 0===n?void 0:n.label)||t};t.TablePreview=function(e){var t=e.columnTypes,n=e.columns;return a.default.createElement(i.PreviewWrapper,{"data-edit":(0,o.default)("Click to edit data")},a.default.createElement(i.PreviewTable,null,!n.length&&a.default.createElement(i.NoContent,null,(0,o.default)("Not configured yet")),n.map((function(e,n){return a.default.createElement(i.PreviewRow,{key:n,"data-title":l(t,e.type)},a.default.createElement(i.PreviewData,{"data-empty":(0,o.default)("empty")},e.label),a.default.createElement(i.PreviewData,{"data-empty":(0,o.default)("empty")},e.value))}))))}},32346:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(2784)),o=n(46425),i=n(33819),l=n(42026),u=n(48807),d=n(98652);t.default=function(e){var t=e.value,n=e.property,r=e.errors,c=e.updateValue,s=n.options;return a.default.createElement(o.Control,{property:n,errors:r},a.default.createElement(i.PreviewableComponent,{preview:a.default.createElement(d.TablePreview,{columnTypes:s,columns:t}),onAfterEdit:function(){return c((0,u.cleanColumns)(t))},onEdit:function(){t.length||c((0,u.addColumn)(t,0))}},a.default.createElement(l.TableEditor,{columnTypes:s,columns:t,updateValue:c})))}},79250:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a1&&u.default.createElement(u.default.Fragment,null,u.default.createElement(c.Cell,{$tiny:!0},u.default.createElement(c.Button,{ref:a.current[o],className:"handle"},u.default.createElement(m.default,null))),u.default.createElement(c.Cell,{$tiny:!0},u.default.createElement(c.Button,{onClick:function(){r((0,h.deleteRow)(o,n)),g(Math.max(o-1,0),0)}},u.default.createElement(p.default,null)))))}))))),u.default.createElement(d.HelpText,null,u.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,v.default)("Press enter while editing a cell to add a new row.")}})))}},43219:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a div {\n white-space: nowrap;\n overflow: hidden;\n\n padding: 7px "," 7px 0;\n\n &:last-child {\n padding-right: 0;\n }\n }\n"],["\n position: relative;\n\n display: grid;\n grid-template-columns: auto 100px;\n gap: 10px;\n\n justify-items: stretch;\n align-items: center;\n\n border-bottom: 1px solid ",";\n\n &:after {\n content: attr(data-title);\n\n position: absolute;\n left: calc(100% - 105px);\n bottom: -7px;\n\n padding: 0 5px;\n background: ",";\n\n ",";\n font-size: 8px;\n }\n\n > div {\n white-space: nowrap;\n overflow: hidden;\n\n padding: 7px "," 7px 0;\n\n &:last-child {\n padding-right: 0;\n }\n }\n"])),f.colors.gray100,f.colors.white,s.labelText,f.spacings.xs),t.PreviewData=p.default.div(c||(c=r(["\n &:empty {\n &:after {\n content: attr(data-empty);\n color: ",";\n font-size: 12px;\n font-style: italic;\n }\n }\n"],["\n &:empty {\n &:after {\n content: attr(data-empty);\n color: ",";\n font-size: 12px;\n font-style: italic;\n }\n }\n"])),f.colors.gray200)},48190:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TabularDataPreview=void 0;var a=r(n(2784)),o=r(n(2072)),i=n(49982);t.TabularDataPreview=function(e){var t=e.configuration,n=e.values;return a.default.createElement(i.PreviewWrapper,{"data-edit":(0,o.default)("Click to edit data")},a.default.createElement(i.PreviewTable,null,!n.length&&a.default.createElement(i.NoContent,null,(0,o.default)("Not configured yet")),n.map((function(e,n){return a.default.createElement(i.PreviewRow,{key:n},t.map((function(t,n){return a.default.createElement(i.PreviewData,{key:n,"data-empty":(0,o.default)("empty"),"data-title":t.label},e[n])})))}))))}},66135:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(2784)),o=n(46425),i=n(33819),l=n(79250),u=n(43219),d=n(48190);t.default=function(e){var t=e.value,n=e.property,r=e.errors,c=e.updateValue,s=n.configuration;return a.default.createElement(o.Control,{property:n,errors:r},a.default.createElement(i.PreviewableComponent,{preview:a.default.createElement(d.TabularDataPreview,{configuration:s,values:t}),onAfterEdit:function(){return c((0,u.cleanRows)(t))},onEdit:function(){t.length||c((0,u.addRow)(t,s,0))}},a.default.createElement(l.TabularDataEditor,{configuration:s,values:t,updateValue:c})))}},40336:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextArea=void 0;var o,i=a(n(40265));t.TextArea=i.default.textarea(o||(o=r(["\n &.read-only {\n border: 1px solid rgba(0, 0, 0, 0.05);\n color: rgba(0, 0, 0, 0.5);\n\n user-select: none;\n }\n"],["\n &.read-only {\n border: 1px solid rgba(0, 0, 0, 0.05);\n color: rgba(0, 0, 0, 0.5);\n\n user-select: none;\n }\n"])))},27542:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(n(2784)),u=n(46425),d=i(n(26457)),c=n(40336),s=l.default.forwardRef((function(e,t){var n,r,a,o=e.value,i=e.property,s=e.errors,f=e.updateValue,p=e.autoFocus,m=e.focus,v=e.context,h=i.handle,g=i.rows,b=(0,l.useRef)(null);return(0,l.useImperativeHandle)(t,(function(){return b.current})),(0,l.useEffect)((function(){var e;m&&(null===(e=b.current)||void 0===e||e.focus())}),[m]),l.default.createElement(u.Control,{property:i,errors:s,context:v},l.default.createElement(c.TextArea,{id:h,ref:b,className:(0,d.default)("text","fullwidth",(null===(n=i.flags)||void 0===n?void 0:n.includes("as-readonly-in-instance"))&&"read-only",(null===(r=i.flags)||void 0===r?void 0:r.includes("code"))&&"code"),readOnly:null===(a=i.flags)||void 0===a?void 0:a.includes("as-readonly-in-instance"),rows:g,value:null!=o?o:"",placeholder:i.placeholder,autoFocus:p,onChange:function(e){return f(e.target.value)}}))}));s.displayName="Textarea",t.default=s},73966:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QuillEditorWrapper=void 0;var o,i=a(n(40265));t.QuillEditorWrapper=i.default.div(o||(o=r(["\n .ql-editor {\n min-height: 300px;\n }\n"],["\n .ql-editor {\n min-height: 300px;\n }\n"])))},6003:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WysiwygEditor=void 0;var a=r(n(2784)),o=r(n(8617)),i=n(10042),l=n(73966);n(61632);t.WysiwygEditor=function(e){var t=e.value,n=e.updateValue;return a.default.createElement(i.PreviewEditor,null,a.default.createElement(i.PreviewContainer,null,a.default.createElement(l.QuillEditorWrapper,null,a.default.createElement(o.default,{theme:"snow",value:t,onChange:n,style:{background:"white"}}))))}},85254:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewContainer=t.Pre=void 0;var o,i,l=n(51362),u=a(n(40265)),d=n(97369);t.Pre=u.default.pre(o||(o=r(["\n font-size: 10px;\n"],["\n font-size: 10px;\n"]))),t.PreviewContainer=(0,u.default)(d.PreviewTable)(i||(i=r(["\n padding: ",";\n"],["\n padding: ",";\n"])),l.spacings.sm)},87186:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WysiwygPreview=void 0;var a=r(n(2784)),o=r(n(2072)),i=n(97369),l=n(85254);t.WysiwygPreview=function(e){var t=e.value;return a.default.createElement(i.PreviewWrapper,{"data-edit":(0,o.default)("Click to edit data")},a.default.createElement(l.PreviewContainer,null,!t&&a.default.createElement(i.NoContent,null,(0,o.default)("Not configured yet")),a.default.createElement("div",{dangerouslySetInnerHTML:{__html:t}})))}},47939:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(2784)),o=n(46425),i=n(33819),l=n(6003),u=n(87186);t.default=function(e){var t=e.value,n=e.property,r=e.errors,d=e.updateValue,c=e.context;return a.default.createElement(o.Control,{property:n,errors:r,context:c},a.default.createElement(i.PreviewableComponent,{preview:a.default.createElement(u.WysiwygPreview,{value:t})},a.default.createElement(l.WysiwygEditor,{value:t,updateValue:d})))}},15738:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ControlWrapper=t.FormField=t.Instructions=void 0;var o,i,l,u=n(51362),d=a(n(40265)),c=n(23925);t.Instructions=d.default.span(o||(o=r(["\n display: block;\n\n color: ",";\n padding-top: 0;\n line-height: 16px;\n font-size: 12px;\n font-style: italic;\n\n &:not(:last-child) {\n padding-bottom: 6px;\n }\n\n code {\n padding: 1px 4px;\n border-radius: 3px;\n background-color: #dfe5ec;\n\n font-family: monospace;\n font-style: normal;\n color: ",";\n }\n"],["\n display: block;\n\n color: ",";\n padding-top: 0;\n line-height: 16px;\n font-size: 12px;\n font-style: italic;\n\n &:not(:last-child) {\n padding-bottom: 6px;\n }\n\n code {\n padding: 1px 4px;\n border-radius: 3px;\n background-color: #dfe5ec;\n\n font-family: monospace;\n font-style: normal;\n color: ",";\n }\n"])),u.colors.gray300,u.colors.gray600),t.FormField=d.default.div(i||(i=r(["\n margin: 0;\n padding: 0;\n width: 100%;\n display: block;\n\n &.disabled {\n user-select: none;\n pointer-events: none;\n opacity: 0.5;\n }\n"],["\n margin: 0;\n padding: 0;\n width: 100%;\n display: block;\n\n &.disabled {\n user-select: none;\n pointer-events: none;\n opacity: 0.5;\n }\n"]))),t.ControlWrapper=d.default.div(l||(l=r(["\n display: flex;\n position: relative;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n\n width: ",";\n\n &.disabled {\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n }\n\n &.errors {\n "," {\n color: ",";\n }\n\n "," {\n input,\n textarea,\n select {\n border: 1px solid ",";\n }\n\n select {\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n }\n }\n }\n\n &.spacing-small {\n padding-top: 6px;\n }\n\n .btn {\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n }\n"],["\n display: flex;\n position: relative;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n\n width: ",";\n\n &.disabled {\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n }\n\n &.errors {\n "," {\n color: ",";\n }\n\n "," {\n input,\n textarea,\n select {\n border: 1px solid ",";\n }\n\n select {\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n }\n }\n }\n\n &.spacing-small {\n padding-top: 6px;\n }\n\n .btn {\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n }\n"])),(function(e){var t=e.$width;return t?"".concat(t,"%"):"100%"}),c.Label,u.colors.error,t.FormField,u.colors.error)},46425:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Control=void 0;var a=r(n(2784)),o=n(15738),i=r(n(37033)),l=r(n(22299)),u=n(97721),d=r(n(26457)),c=n(11767),s=n(93247);t.Control=function(e){var t=e.children,n=e.property,r=e.errors,f=e.context,p=(0,u.useTranslations)(f),m=p.hasTranslation,v=p.removeTranslation,h=p.isTranslationsEnabled,g=n.label,b=n.handle,y=n.required,_=n.instructions,x=n.width,w=n.disabled,E=n.translatable;return a.default.createElement(o.ControlWrapper,{className:(0,d.default)(!!r&&"errors",w&&"disabled"),$width:x},a.default.createElement(l.default,{label:g,handle:b,required:y,translatable:h&&E,hasTranslation:m(b),removeTranslation:function(){return v(b)}}),a.default.createElement(i.default,{instructions:_}),a.default.createElement(o.FormField,null,t),a.default.createElement(c.FormErrorList,{errors:r}),a.default.createElement(s.FormMessageList,{messages:n.messages}))}},61576:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DelimiterElement=void 0;var o,i=a(n(2784)),l=n(80159),u=n(51362),d=a(n(40265)).default.div(o||(o=r(["\n position: relative;\n min-height: 10px;\n\n &:before {\n content: '';\n position: absolute;\n top: 9px;\n left: 0;\n right: 0;\n z-index: 1;\n\n height: 1px;\n margin: 0 var(--margins);\n\n box-shadow: ",";\n }\n\n div {\n position: absolute;\n left: -5px;\n top: 0;\n z-index: 2;\n\n background: var(--background-color);\n padding: 0 5px;\n\n ",";\n font-size: 11px;\n\n &:empty {\n display: none;\n }\n }\n"],["\n position: relative;\n min-height: 10px;\n\n &:before {\n content: '';\n position: absolute;\n top: 9px;\n left: 0;\n right: 0;\n z-index: 1;\n\n height: 1px;\n margin: 0 var(--margins);\n\n box-shadow: ",";\n }\n\n div {\n position: absolute;\n left: -5px;\n top: 0;\n z-index: 2;\n\n background: var(--background-color);\n padding: 0 5px;\n\n ",";\n font-size: 11px;\n\n &:empty {\n display: none;\n }\n }\n"])),u.shadows.bottom,l.labelText);t.DelimiterElement=function(e){var t=e.delimiter;return t?i.default.createElement(d,null,i.default.createElement("div",null,t.name)):null}},9256:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DraggableRow=void 0;var l=o(n(2784)),u=n(69412),d=n(25141),c=n(76930),s=i(n(26457));t.DraggableRow=function(e){var t=e.index,n=e.dragRef,r=e.onDrop,a=e.children,o=(0,l.useRef)(null),i=(0,c.useRowDrop)(t,o,r),f=i.handlerId,p=i.drop,m=(0,d.useRowDrag)(t),v=m.isDragging,h=m.drag,g=m.preview;return h(n),p(g(o)),l.default.createElement(u.Row,{ref:o,className:(0,s.default)(v&&"dragging"),"data-handler-id":f},a)}},11767:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&m--,"ArrowDown"===a.key&&o0&&g.start&&(p=!0,v--),"ArrowRight"===a.key&&ui&&c>d||(n(l,i),r.index=i)}}}}}),[t,n]);return{handlerId:o[0].handlerId,drop:o[1]}}},86837:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useVisibility=void 0;var a=n(2784),o=r(n(65884)),i=n(82506);t.useVisibility=function(e,t){return(0,a.useMemo)((function(){if(0===e.length)return!0;var n={config:o.default};try{return(0,i.filterTest)(e,t,n)}catch(t){return console.error("Failed to evaluate visibility expression: ".concat(e.join(" && "))),!1}}),[e,t])}},94774:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FormComponent=void 0;var i=o(n(2784)),l=o(n(14048)),u=n(90163),d=n(86837),c=n(61576),s=l;t.FormComponent=function(e){var t=e.value,n=e.updateValue,r=e.property,a=e.errors,o=e.context,l=e.autoFocus,f=void 0!==l&&l,p=r.handle,m=r.type,v=r.visibilityFilters,h=s[m],g=(0,d.useVisibility)(v||[],o);return void 0===h?i.default.createElement("div",null,"[".concat(p,"]: <").concat(m,">")):(h.displayName="FormComponent: <".concat(m,">"),g?i.default.createElement(u.ErrorBoundary,{message:"...".concat(p," <").concat(m,">")},i.default.createElement(i.Suspense,null,i.default.createElement(c.DelimiterElement,{delimiter:r.delimiter}),i.default.createElement(h,{value:t,property:r,updateValue:n,errors:a,context:o,autoFocus:f}))):null)}},37033:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(n(2784)),u=i(n(2072)),d=n(15738),c=(0,l.memo)((function(e){var t=e.instructions;if(!t)return null;var n=(0,l.useMemo)((function(){return(0,u.default)(t)}),[t]),r=(0,l.useMemo)((function(){return n.split(/`([^`]+)`/g).map((function(e,t){return t%2!=0?l.default.createElement("code",{key:t},e):e}))}),[n]);return l.default.createElement(d.Instructions,null,r)}));c.displayName="FormInstructions",t.default=c},23925:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TranslateIconWrapper=t.RequiredStar=t.LabelText=t.Label=void 0;var o=n(51362),i=a(n(40265));t.Label=i.default.label(l||(l=r(["\n display: flex;\n justify-content: start;\n align-items: center;\n gap: 6px;\n\n color: ",";\n font-weight: "," !important;\n"],["\n display: flex;\n justify-content: start;\n align-items: center;\n gap: 6px;\n\n color: ",";\n font-weight: "," !important;\n"])),o.colors.gray550,(function(e){return e.$regular?"normal":"bold"})),t.LabelText=i.default.span(u||(u=r([""],[""]))),t.RequiredStar=i.default.span(d||(d=r(["\n &:after {\n content: 'asterisk';\n\n color: ",";\n font-family: Craft;\n font-size: 10px;\n }\n"],["\n &:after {\n content: 'asterisk';\n\n color: ",";\n font-family: Craft;\n font-size: 10px;\n }\n"])),o.colors.red500);var l,u,d,c;t.TranslateIconWrapper=i.default.span(c||(c=r(["\n fill: ",";\n\n &.active {\n cursor: pointer;\n fill: ",";\n }\n\n svg {\n width: ","px;\n height: ","px;\n }\n"],["\n fill: ",";\n\n &.active {\n cursor: pointer;\n fill: ",";\n }\n\n svg {\n width: ","px;\n height: ","px;\n }\n"])),o.colors.gray500,o.colors.blue500,18,18)},22299:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(2784)),o=r(n(26457)),i=r(n(2072)),l=r(n(67836)),u=n(23925);t.default=function(e){var t=e.label,n=e.handle,r=e.required,d=e.translatable,c=e.hasTranslation,s=e.removeTranslation;return t?a.default.createElement(u.Label,{className:(0,o.default)(r&&"is-required"),htmlFor:n},a.default.createElement(u.LabelText,null,(0,i.default)(t)),r&&a.default.createElement(u.RequiredStar,null),d&&a.default.createElement(u.TranslateIconWrapper,{className:(0,o.default)(c&&"active"),title:c?(0,i.default)("Remove translation"):void 0,onClick:function(){c&&confirm((0,i.default)("Are you sure you want to remove the translation?"))&&s&&s()}},a.default.createElement(l.default,null))):null}},93247:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n li {\n &.message-type-warning {\n color: ",";\n }\n\n &.message-type-notice {\n color: ",";\n }\n }\n"],["\n list-style: none;\n\n margin-top: 5px;\n\n display: flex;\n flex-direction: column;\n gap: 2px;\n\n > li {\n &.message-type-warning {\n color: ",";\n }\n\n &.message-type-notice {\n color: ",";\n }\n }\n"])),d.colors.warning,d.colors.notice);t.FormMessageList=function(e){var t=e.messages,n=o(e,["messages"]);return t&&t.length?u.default.createElement(f,a({},n),t.map((function(e,t){var n=e.message,r=e.type;return u.default.createElement("li",{key:t,className:(0,c.default)("message-type-".concat(r),r,"has-icon")},u.default.createElement("span",{className:"icon"}),(0,s.default)(n))}))):null}},11863:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useEditorAnimations=void 0;var r=n(2784),a=n(79066),o=n(57305);t.useEditorAnimations=function(e){var t=e.wrapper,n=e.editor,i=e.isEditing,l=(0,o.usePosition)(t,n,i),u=l.top,d=l.left,c=null==t?void 0:t.offsetWidth,s=(0,r.useState)(!1),f=s[0],p=s[1];return{editorAnimation:(0,a.useSpring)({immediate:function(e){return["top","left","width","pointerEvents","transformOrigin"].includes(e)},to:{top:u,left:d,width:c,opacity:i?1:0,transformOrigin:"top left",transform:i?"scaleY(1)":"scaleY(0.5)",pointerEvents:i?"initial":"none"},config:{tension:700,friction:40}}),isVisible:f,setVisible:p}}},57305:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.usePosition=void 0;var r=n(2784),a=n(53084),o=n(71485),i=n(92853);t.usePosition=function(e,t,n){var l=(0,a.usePortal)().dimensions,u=(0,r.useState)(0),d=u[0],c=u[1],s=(0,r.useState)(0),f=s[0],p=s[1],m=function(){var n;c((0,i.calculateTopOffset)(e,t));var r=null===(n=null==e?void 0:e.getBoundingClientRect())||void 0===n?void 0:n.left;r&&p(r-l.left)};return(0,r.useEffect)((function(){m()}),[n]),(0,r.useEffect)((function(){var e=function(){m()};if(t){var n=document.querySelector(o.SectionWrapper.toString()),r=new ResizeObserver(e);return r.observe(t),window.addEventListener("resize",e),window.addEventListener("scroll",e),null==n||n.addEventListener("scroll",e),function(){r.disconnect(),window.removeEventListener("resize",e),window.removeEventListener("scroll",e),null==n||n.addEventListener("scroll",e)}}}),[t]),{top:d,left:f}}},92853:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.calculateTopOffset=void 0;t.calculateTopOffset=function(e,t){var n=null==e?void 0:e.getBoundingClientRect().top,r=window.innerHeight,a=null==t?void 0:t.offsetHeight;return void 0===a?n:n&&a&&r?n+a>r-20?n-(n+a-r+20):n:0}},10042:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewEditorContainer=t.PreviewEditor=t.PreviewContainer=t.EditableContentWrapper=t.PreviewWrapper=void 0;var o,i,l,u,d,c=n(79066),s=n(80159),f=n(51362),p=a(n(40265));t.PreviewWrapper=p.default.div(o||(o=r(["\n position: relative;\n width: 100%;\n"],["\n position: relative;\n width: 100%;\n"]))),t.EditableContentWrapper=(0,p.default)(c.animated.div)(i||(i=r(["\n position: absolute;\n left: 0;\n top: 0;\n z-index: 3;\n\n box-shadow: ",";\n\n pointer-events: none;\n\n &.active {\n pointer-events: all;\n }\n"],["\n position: absolute;\n left: 0;\n top: 0;\n z-index: 3;\n\n box-shadow: ",";\n\n pointer-events: none;\n\n &.active {\n pointer-events: all;\n }\n"])),f.shadows.panel),t.PreviewContainer=p.default.div(l||(l=r(["\n cursor: pointer;\n\n input,\n select,\n textarea {\n pointer-events: none;\n }\n"],["\n cursor: pointer;\n\n input,\n select,\n textarea {\n pointer-events: none;\n }\n"]))),t.PreviewEditor=p.default.div(u||(u=r(["\n width: 100%;\n min-width: 800px;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: ",";\n\n box-shadow: ",";\n border-radius: ",";\n background: ",";\n"],["\n width: 100%;\n min-width: 800px;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: ",";\n\n box-shadow: ",";\n border-radius: ",";\n background: ",";\n"])),f.spacings.lg,f.spacings.lg,f.shadows.box,f.borderRadius.lg,f.colors.gray050),t.PreviewEditorContainer=p.default.div(d||(d=r(["\n max-height: 600px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ",";\n"],["\n max-height: 600px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ",";\n"])),s.scrollBar)},33819:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?document.body.style.overflow="hidden":document.body.style.overflow="auto"}),[l]);var b=(0,p.useAnimateOverlay)(l.length>0),y=(0,p.useAnimateModals)(l);return u.default.createElement(v.Provider,{value:{openModal:function(e,t){a(i(i([],r,!0),[t],!1)),h(i(i([],l,!0),[e],!1))},closeModal:g}},t,(0,d.createPortal)(u.default.createElement(m.ModalHub,null,u.default.createElement(m.ModalOverlay,{style:b,className:(0,c.default)(!l.length&&"inactive")},y((function(e,t,n,a){return u.default.createElement(f.Modal,{key:a,closeModal:g,style:e},u.default.createElement(t,{closeModal:g,data:(0,s.default)(r[a])}))})))),document.body))}},4679:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalFooter=t.ModalHeader=t.ModalContainer=t.ModalWrapper=t.ModalOverlay=t.ModalHub=void 0;var o,i,l,u,d,c,s=n(79066),f=n(51362),p=a(n(40265));t.ModalHub=p.default.div(o||(o=r([""],[""]))),t.ModalOverlay=(0,p.default)(s.animated.div)(i||(i=r(["\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 1000;\n\n background-color: rgba(123, 135, 147, 0);\n\n &.inactive {\n pointer-events: none;\n }\n"],["\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 1000;\n\n background-color: rgba(123, 135, 147, 0);\n\n &.inactive {\n pointer-events: none;\n }\n"]))),t.ModalWrapper=(0,p.default)(s.animated.div)(l||(l=r(["\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 1001;\n\n display: flex;\n justify-content: center;\n align-items: center;\n"],["\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 1001;\n\n display: flex;\n justify-content: center;\n align-items: center;\n"]))),t.ModalContainer=p.default.div(u||(u=r(["\n width: 100%;\n max-width: 500px;\n\n background-color: #fff;\n border-radius: ",";\n box-shadow: 0 25px 100px rgba(31, 41, 51, 0.5);\n"],["\n width: 100%;\n max-width: 500px;\n\n background-color: #fff;\n border-radius: ",";\n box-shadow: 0 25px 100px rgba(31, 41, 51, 0.5);\n"])),f.borderRadius.lg),t.ModalHeader=p.default.header(d||(d=r(["\n padding: "," ",";\n\n background-color: ",";\n box-shadow: inset 0 -1px 0 ",";\n\n border-radius: "," "," 0 0;\n"],["\n padding: "," ",";\n\n background-color: ",";\n box-shadow: inset 0 -1px 0 ",";\n\n border-radius: "," "," 0 0;\n"])),f.spacings.lg,f.spacings.xl,f.colors.gray100,f.colors.hairline,f.borderRadius.lg,f.borderRadius.lg),t.ModalFooter=p.default.footer(c||(c=r(["\n display: flex;\n justify-content: end;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n\n background-color: ",";\n box-shadow: inset 0 1px 0 ",";\n\n border-radius: 0 0 "," ",";\n"],["\n display: flex;\n justify-content: end;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n\n background-color: ",";\n box-shadow: inset 0 1px 0 ",";\n\n border-radius: 0 0 "," ",";\n"])),f.spacings.sm,f.spacings.sm,f.spacings.xl,f.colors.gray100,f.colors.hairline,f.borderRadius.lg,f.borderRadius.lg)},33134:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Modal=void 0;var a=r(n(2784)),o=n(31070),i=n(4679);t.Modal=function(e){var t=e.children,n=e.closeModal,r=e.style;return(0,o.useEscapeStack)(n),a.default.createElement(i.ModalWrapper,{style:r},t)}},50822:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=void 0;var o,i=a(n(40265));t.Wrapper=i.default.div(o||(o=r(["\n color: white;\n background: red;\n border: 1px solid darkred;\n"],["\n color: white;\n background: red;\n border: 1px solid darkred;\n"])))},27562:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBlock=void 0;var a=r(n(2784)),o=n(50822);t.ErrorBlock=function(e){var t=e.children;return a.default.createElement(o.Wrapper,null,t)}},12415:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{u(r.next(e))}catch(e){o(e)}}function l(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}u((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&l[0]?r.return:l[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;switch(r=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]0&&a.default.createElement(a.default.Fragment,null,a.default.createElement(p.SectionHeader,null,(0,s.default)("Usage in Elements")),a.default.createElement("table",{className:"data fullwidth collapsible"},a.default.createElement("thead",null,a.default.createElement("tr",null,a.default.createElement("th",null,(0,s.default)("Element")),a.default.createElement("th",null,(0,s.default)("Type")),a.default.createElement("th",null,(0,s.default)("Status")))),a.default.createElement("tbody",null,t.map((function(e){return a.default.createElement("tr",{key:e.id,className:"element-row"},a.default.createElement("th",null,a.default.createElement("div",{className:"chip small element","data-id":e.id},a.default.createElement("div",{className:"chip-content"},a.default.createElement("span",{className:(0,c.default)("status",e.status.toLowerCase()),role:"img"}),a.default.createElement("a",{href:e.url,className:"label-link"},a.default.createElement("span",null,e.title))))),a.default.createElement("td",null,e.type),a.default.createElement("td",null,e.status))})))))):null}},72718:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationsWrapper=void 0;var o,i=a(n(40265));t.IntegrationsWrapper=i.default.div(o||(o=r(["\n display: flex;\n height: 100%;\n"],["\n display: flex;\n height: 100%;\n"])))},55165:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Integrations=void 0;var a=r(n(2784)),o=n(76034),i=n(11455),l=r(n(2072)),u=n(50058),d=n(72718);t.Integrations=function(){var e=(0,o.useResolvedPath)("");return a.default.createElement(d.IntegrationsWrapper,null,a.default.createElement(i.Breadcrumb,{id:"integrations",label:(0,l.default)("Integrations"),url:e.pathname}),a.default.createElement(u.List,null),a.default.createElement(o.Outlet,null))}},40026:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldComponent=void 0;var a=r(n(2784)),o=n(94774),i=n(36450),l=n(27487),u=n(9363),d=n(83287);t.FieldComponent=function(e){var t=e.integration,n=e.property,r=(0,i.useAppDispatch)(),c=(0,l.useValueUpdateGenerator)(t.properties,t.values,(function(e,n){r(u.integrationActions.modify({id:t.id,key:e,value:n}))})),s=t.values[n.handle];return n.type===d.PropertyType.Hidden?null:a.default.createElement(o.FormComponent,{value:s,property:n,updateValue:c(n),context:t})}},21488:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyEditor=void 0;var a=r(n(2784)),o=n(19002),i=r(n(26457)),l=r(n(2072)),u=n(23656),d=r(n(28558)),c=n(21009);t.EmptyEditor=function(){return a.default.createElement(c.PropertyEditorWrapper,null,a.default.createElement(o.EmptyBlock,{title:(0,l.default)("No integrations found"),subtitle:(0,l.default)("To add an integration, click the button below"),icon:a.default.createElement(d.default,null)},a.default.createElement("a",{className:(0,i.default)("btn add icon"),href:(0,u.generateUrl)("settings/integrations/crm")},(0,l.default)("Add integration"))))}},75256:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadingEditor=void 0;var a=r(n(2784)),o=r(n(76257)),i=n(91176),l=n(21009);t.LoadingEditor=function(){return a.default.createElement(l.PropertyEditorWrapper,null,a.default.createElement(i.ThemedSkeleton,null,a.default.createElement(o.default,{width:120,height:20}),a.default.createElement("br",null),a.default.createElement(o.default,{width:100,height:10}),a.default.createElement(o.default,{width:50,height:20}),a.default.createElement("br",null),a.default.createElement(o.default,{width:200,height:10}),a.default.createElement(o.default,{width:500,height:10}),a.default.createElement(o.default,{height:30}),a.default.createElement("br",null),a.default.createElement(o.default,{width:150,height:10}),a.default.createElement(o.default,{width:300,height:10}),a.default.createElement(o.default,{height:30})))}},21009:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsWrapper=t.PropertyEditorWrapper=void 0;var o,i,l=n(80159),u=n(51362),d=a(n(40265));t.PropertyEditorWrapper=d.default.div(o||(o=r(["\n flex: 1;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: ",";\n\n background: ",";\n overflow-y: auto;\n\n ",";\n\n --background-color: ",";\n --margins: -24px;\n\n h1 {\n padding: 0;\n margin-top: -11px;\n margin-bottom: -5px;\n }\n"],["\n flex: 1;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: ",";\n\n background: ",";\n overflow-y: auto;\n\n ",";\n\n --background-color: ",";\n --margins: -24px;\n\n h1 {\n padding: 0;\n margin-top: -11px;\n margin-bottom: -5px;\n }\n"])),u.spacings.xl,u.spacings.xl,u.colors.white,l.scrollBar,u.colors.white),t.SettingsWrapper=d.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),u.spacings.md)},28045:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyEditor=void 0;var a=r(n(2784)),o=n(86993),i=n(76034),l=n(11455),u=r(n(36961)),d=n(36450),c=n(9363),s=n(66583),f=n(91423),p=n(83287),m=n(40026),v=n(21488),h=n(75256),g=n(21009);t.PropertyEditor=function(){var e=(0,i.useParams)().id,t=(0,i.useResolvedPath)(""),n=(0,d.useAppDispatch)(),r=(0,i.useParams)().formId,b=(0,f.useQueryFormIntegrations)(r&&Number(r)),y=b.data,_=b.isFetching,x=(0,o.useSelector)(s.integrationSelectors.one(Number(e)));if(!y&&_)return a.default.createElement(h.LoadingEditor,null);if(!x)return a.default.createElement(v.EmptyEditor,null);var w=x.id,E=x.handle,O=x.enabled,P=x.name,j=x.description,k=x.properties;return a.default.createElement(g.PropertyEditorWrapper,null,a.default.createElement(l.Breadcrumb,{id:"integration-editor",label:P,url:t.pathname}),a.default.createElement("h1",{title:E},P),!!j&&a.default.createElement("p",null,j),a.default.createElement(g.SettingsWrapper,null,a.default.createElement(u.default,{property:{label:"Enabled",handle:"enabled",type:p.PropertyType.Boolean},value:O,updateValue:function(){return n(c.integrationActions.toggle(w))}}),k.map((function(e){return a.default.createElement(m.FieldComponent,{key:e.handle,integration:x,property:e})}))))}},59590:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CategorySkeleton=void 0;var a=r(n(2784)),o=r(n(76257)),i=n(91176),l=n(47299);t.CategorySkeleton=function(){return a.default.createElement(i.ThemedSkeleton,null,a.default.createElement(l.Wrapper,null,a.default.createElement(l.Label,null,a.default.createElement(o.default,{width:50})),a.default.createElement(l.ChildrenWrapper,{style:{padding:14}},[0,1,2].map((function(e){return a.default.createElement("div",{key:e,style:{display:"flex",gap:10,alignItems:"center"}},a.default.createElement(o.default,{width:20,height:20,circle:!0}),a.default.createElement("div",{style:{flexGrow:2}},a.default.createElement(o.default,{width:100,style:{top:2}})),a.default.createElement(o.default,{width:10,height:10,circle:!0,style:{top:6}}))})))))}},47299:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationItemWrapper=t.ChildrenWrapper=t.Label=t.LabelWrapper=t.Wrapper=void 0;var o,i,l,u,d=n(51362),c=a(n(40265));t.Wrapper=c.default.div(o||(o=r([""],[""]))),t.LabelWrapper=c.default.div(i||(i=r(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 5px;\n line-height: 22px;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 5px;\n line-height: 22px;\n"]))),t.Label=c.default.span(l||(l=r(["\n padding-left: ",";\n\n font-weight: 700;\n font-size: 11px;\n color: ",";\n\n text-transform: uppercase;\n"],["\n padding-left: ",";\n\n font-weight: 700;\n font-size: 11px;\n color: ",";\n\n text-transform: uppercase;\n"])),d.spacings.md,d.colors.gray550),t.ChildrenWrapper=c.default.div(u||(u=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: "," 0;\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: "," 0;\n"])),d.spacings.xs,d.spacings.xs),t.IntegrationItemWrapper=t.ChildrenWrapper},42040:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n a {\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border-radius: ",";\n\n color: ",";\n font-size: 12px;\n line-height: 12px;\n\n transition: background-color 0.2s ease-out;\n text-decoration: none;\n\n &.active {\n color: ",";\n background-color: ",";\n }\n\n &.active.inactive {\n .status-dot {\n border-color: ",";\n }\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n }\n"],["\n > a {\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border-radius: ",";\n\n color: ",";\n font-size: 12px;\n line-height: 12px;\n\n transition: background-color 0.2s ease-out;\n text-decoration: none;\n\n &.active {\n color: ",";\n background-color: ",";\n }\n\n &.active.inactive {\n .status-dot {\n border-color: ",";\n }\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n }\n"])),d.spacings.sm,d.spacings.sm,d.spacings.md,d.borderRadius.lg,d.colors.gray700,d.colors.white,d.colors.gray500,d.colors.white,d.colors.gray200),t.Icon=c.default.div(i||(i=r(["\n display: block;\n width: 20px;\n height: 20px;\n"],["\n display: block;\n width: 20px;\n height: 20px;\n"]))),t.Name=c.default.div(l||(l=r(["\n flex-grow: 1;\n max-width: 90%;\n\n padding: 1px 0;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n flex-grow: 1;\n max-width: 90%;\n\n padding: 1px 0;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]))),t.Status=c.default.div(u||(u=r(["\n content: '';\n\n flex-shrink: 0;\n justify-self: flex-end;\n\n width: 10px;\n height: 10px;\n\n border: 1px solid\n ",";\n border-radius: 100%;\n\n background-color: ",";\n\n transition: all 0.3s ease-out;\n"],["\n content: '';\n\n flex-shrink: 0;\n justify-self: flex-end;\n\n width: 10px;\n height: 10px;\n\n border: 1px solid\n ",";\n border-radius: 100%;\n\n background-color: ",";\n\n transition: all 0.3s ease-out;\n"])),(function(e){return e.$enabled?"transparent":d.colors.gray550}),(function(e){return e.$enabled?d.colors.teal550:"transparent"}))},70177:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Integration=void 0;var a=r(n(2784)),o=n(86993),i=n(76034),l=n(15230),u=n(66583),d=r(n(26457)),c=r(n(83190)),s=n(87570);t.Integration=function(e){var t=e.id,n=e.name,r=e.handle,f=e.icon,p=(0,l.useLastTab)("integrations").setLastTab,m=(0,o.useSelector)(u.integrationSelectors.one(t));return m?a.default.createElement(s.Wrapper,null,a.default.createElement(i.NavLink,{onClick:function(){return p("".concat(t,"/").concat(r))},to:"".concat(t,"/").concat(r),className:(0,d.default)(!m.enabled&&"inactive")},a.default.createElement(s.Icon,null,!!f&&a.default.createElement("img",{src:f}),!f&&a.default.createElement(c.default,null)),a.default.createElement(s.Name,null,n),a.default.createElement(s.Status,{$enabled:m.enabled,className:(0,d.default)("status-dot")}))):null}},40098:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=void 0;var o,i=n(51362),l=a(n(40265));t.Wrapper=l.default.ul(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n list-style: none;\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n list-style: none;\n"])),i.spacings.sm)},50058:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;na?an){if(c>=t&&t>n)return-r}else if(c<=t&&t span {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 10px;\n\n > span {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"]))),t.PageTab=(0,v.default)(f.animated.div)(u||(u=r(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n max-width: 160px;\n height: 100%;\n padding: 7px 10px;\n margin: 0 5px;\n\n color: ",";\n border-bottom: 2px solid ",";\n\n overflow: hidden;\n\n &.active {\n color: ",";\n border-bottom-color: ",";\n }\n\n &.errors {\n color: ",";\n\n ",";\n }\n\n &.can-drop {\n box-shadow: 0 2px 12px ",";\n transform: scale(1.1);\n z-index: 2;\n }\n\n &.is-dragging {\n z-index: 1;\n }\n\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n\n max-width: 160px;\n height: 100%;\n padding: 7px 10px;\n margin: 0 5px;\n\n color: ",";\n border-bottom: 2px solid ",";\n\n overflow: hidden;\n\n &.active {\n color: ",";\n border-bottom-color: ",";\n }\n\n &.errors {\n color: ",";\n\n ",";\n }\n\n &.can-drop {\n box-shadow: 0 2px 12px ",";\n transform: scale(1.1);\n z-index: 2;\n }\n\n &.is-dragging {\n z-index: 1;\n }\n\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n"])),m.colors.gray400,m.colors.gray100,m.colors.gray800,m.colors.blue600,m.colors.error,p.errorAlert,m.colors.gray500,t.RemoveTabButton),t.TabDrop=v.default.div(d||(d=r(["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n\n width: 100%;\n"],["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n\n width: 100%;\n"]))),t.Input=v.default.input(c||(c=r(["\n appearance: none;\n\n display: block;\n width: 100%;\n min-width: 100px;\n\n border: 0;\n padding: 0 !important;\n line-height: 1rem;\n font-size: 0.75rem;\n box-shadow: none !important;\n\n &:hover,\n &:active {\n box-shadow: none !important;\n }\n\n &::-webkit-contacts-auto-fill-button {\n visibility: hidden;\n display: none !important;\n pointer-events: none;\n position: absolute;\n right: 0;\n }\n"],["\n appearance: none;\n\n display: block;\n width: 100%;\n min-width: 100px;\n\n border: 0;\n padding: 0 !important;\n line-height: 1rem;\n font-size: 0.75rem;\n box-shadow: none !important;\n\n &:hover,\n &:active {\n box-shadow: none !important;\n }\n\n &::-webkit-contacts-auto-fill-button {\n visibility: hidden;\n display: none !important;\n pointer-events: none;\n position: absolute;\n right: 0;\n }\n"]))),t.RemoveButtonWrapper=v.default.div(s||(s=r(["\n position: absolute;\n top: 0px;\n right: -7px;\n\n transform: scale(0.8);\n"],["\n position: absolute;\n top: 0px;\n right: -7px;\n\n transform: scale(0.8);\n"])))},33336:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Tab=void 0;var l=o(n(2784)),u=n(86993),d=n(54509),c=n(23925),s=n(36450),f=n(8697),p=n(72671),m=n(97240),v=n(60719),h=n(97721),g=n(77209),b=n(9726),y=n(23934),_=i(n(26457)),x=i(n(2072)),w=i(n(67836)),E=n(37430),O=n(36253),P=n(73680),j=n(13534),k=n(21573);t.Tab=function(e){var t=e.page,n=e.index,r=(0,u.useSelector)(p.contextSelectors.currentPage),a=(0,u.useSelector)(v.pageSelecors.count),o=(0,s.useAppDispatch)(),i=(0,E.useDragContext)().dragType,M=(0,h.useTranslations)(t),C=M.willTranslate,S=M.updateTranslation,F=M.getTranslation,T=M.hasTranslation,D=M.removeTranslation,L=(0,u.useSelector)(p.contextSelectors.hasErrors(t.uid)),R=(0,l.useRef)(null),B=(0,l.useRef)(null),A=(0,l.useState)(!1),I=A[0],W=A[1],N=(0,y.useHover)(R),z=(0,j.useTabDrop)(null==r?void 0:r.uid,t),Q=z.canDrop,V=z.ref,G=(0,O.useTabDrag)(n,t),U=G.isDragging,H=G.ref,K=(0,j.useTabPageDrop)(R,t,n),$=K.ref,q=K.dragItemIndex;(0,l.useEffect)((function(){var e,t;I&&(null===(e=B.current)||void 0===e||e.focus(),null===(t=B.current)||void 0===t||t.select())}),[I]);var Y=V(H(R)),Z=(0,P.useTabDragAnimation)(R,n,q,U),J=function(){var e=B.current.value||t.label;S("label",e)||o(m.pageActions.updateLabel({uid:t.uid,label:e}))},X=(0,b.useClickOutside)({callback:function(){J(),W(!1)},isEnabled:I});return l.default.createElement(k.TabWrapper,{ref:Y,className:"page-tab"},(!!i||U)&&l.default.createElement(k.TabDrop,{ref:$}),l.default.createElement(k.PageTab,{ref:X,className:(0,_.default)((null==r?void 0:r.uid)===t.uid&&"active",L&&"errors",Q&&"can-drop",I&&"is-editing",U&&"is-dragging"),style:Z,onClick:function(){o(f.contextActions.setPage(t.uid))},onDoubleClick:function(){return W(!0)}},I?l.default.createElement(k.Input,{type:"text",ref:B,className:"text small",placeholder:t.label,defaultValue:F("label",t.label),onKeyUp:function(e){"Enter"===e.key&&(J(),W(!1)),"Escape"===e.key&&W(!1)}}):l.default.createElement(k.TabText,null,l.default.createElement("span",null,F("label",t.label)),C("label")&&l.default.createElement(c.TranslateIconWrapper,{className:(0,_.default)(T("label")&&"active"),onClick:function(){T("label")&&confirm("Are you sure you want to remove the translation?")&&D("label")}},l.default.createElement(w.default,null))),a>1&&l.default.createElement(k.RemoveButtonWrapper,null,l.default.createElement(d.RemoveButton,{active:N&&!I,onClick:function(){confirm((0,x.default)("Are you sure?"))&&o((0,g.deletePage)(t))}}))))}},21976:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderPageButtons=void 0;var a=r(n(2784)),o=r(n(76257)),i=n(49023);t.LoaderPageButtons=function(){return a.default.createElement(i.ButtonGroupWrapper,null,a.default.createElement(i.ButtonGroup,null),a.default.createElement(i.ButtonGroup,null,a.default.createElement("button",{className:"btn submit"},a.default.createElement(o.default,{width:50,baseColor:"#e12d39"}))))}},27985:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getButtonGroups=void 0;t.getButtonGroups=function(e){var t,n=((null===(t=e.buttons)||void 0===t?void 0:t.layout)||"save back|submit").split(" "),r=[];return n.forEach((function(t){var n=t.split("|"),a=[];n.forEach((function(t){if("back"!==t||0!==e.order)switch(t){case"submit":a.push({handle:"submit",label:e.buttons.submitLabel,enabled:!0});break;case"back":e.buttons.back&&a.push({handle:"back",label:e.buttons.backLabel,enabled:e.buttons.back});break;case"save":e.buttons.save&&a.push({handle:"save",label:e.buttons.saveLabel,enabled:e.buttons.save});break;default:return}})),r.push(a)})),r}},49023:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonGroup=t.ButtonGroupWrapper=void 0;var o,i,l,u=n(51362),d=a(n(40265));t.ButtonGroupWrapper=d.default.div(o||(o=r(["\n display: flex;\n justify-content: space-between;\n\n padding: "," ",";\n\n border: 1px solid transparent;\n border-radius: ",";\n\n cursor: pointer;\n\n transition:\n border-color 0.2s ease-out,\n background-color 0.2s ease-out;\n\n &.active {\n border: 1px dashed #5782ef;\n }\n\n &:hover {\n background: #f3f7fd;\n\n &:not(.active) {\n border: 1px solid #cdd8e4;\n }\n }\n"],["\n display: flex;\n justify-content: space-between;\n\n padding: "," ",";\n\n border: 1px solid transparent;\n border-radius: ",";\n\n cursor: pointer;\n\n transition:\n border-color 0.2s ease-out,\n background-color 0.2s ease-out;\n\n &.active {\n border: 1px dashed #5782ef;\n }\n\n &:hover {\n background: #f3f7fd;\n\n &:not(.active) {\n border: 1px solid #cdd8e4;\n }\n }\n"])),u.spacings.sm,u.spacings.md,u.borderRadius.md),t.ButtonGroup=d.default.div(i||(i=r(["\n display: flex;\n gap: ",";\n"],["\n display: flex;\n gap: ",";\n"])),u.spacings.md),t.Button=d.default.button(l||(l=r(["\n &.btn-submit {\n background-color: ",";\n color: white;\n\n &:hover {\n background-color: ",";\n }\n }\n"],["\n &.btn-submit {\n background-color: ",";\n color: white;\n\n &:hover {\n background-color: ",";\n }\n }\n"])),u.colors.gray600,u.colors.gray700)},65462:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PageButtons=void 0;var l=o(n(2784)),u=n(86993),d=n(36450),c=n(8697),s=n(72671),f=n(97721),p=i(n(26457)),m=n(91897),v=n(27985),h=n(49023),g={back:"btn",save:"btn",submit:"btn btn-submit"};t.PageButtons=function(e){var t=e.page,n=(0,d.useAppDispatch)(),r=(0,f.useTranslations)(t).getTranslation,a=(0,u.useSelector)(s.contextSelectors.focus),o=a.active,i=a.type,b=a.uid,y=(0,l.useMemo)((function(){return o&&i===c.FocusType.Page&&b===t.uid}),[o,i,b,t.uid]),_=(0,v.getButtonGroups)(t);return l.default.createElement(m.PageFieldLayoutWrapper,null,l.default.createElement(h.ButtonGroupWrapper,{className:(0,p.default)(y&&"active"),onClick:function(){n(c.contextActions.setFocusedItem({type:c.FocusType.Page,uid:t.uid}))}},_.map((function(e,t){return l.default.createElement(h.ButtonGroup,{key:t,className:"page-buttons"},e.map((function(e,t){return l.default.createElement(h.Button,{className:g[null==e?void 0:e.handle],key:t,type:"button"},r("".concat(null==e?void 0:e.handle,"Label"),null==e?void 0:e.label))})))}))))}},10642:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderPage=void 0;var a=r(n(2784)),o=n(42332),i=n(21976),l=n(34038);t.LoaderPage=function(){return a.default.createElement(l.PageWrapper,null,a.default.createElement(o.LoaderLayout,null),a.default.createElement(i.LoaderPageButtons,null))}},51921:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var a=r(n(2784)),o=n(36450),i=n(44271),l=n(72554),u=n(65462),d=n(34038);t.Page=function(e){var t=e.page,n=(0,o.useAppSelector)((function(e){return i.layoutSelectors.pageLayout(e,null==t?void 0:t.layoutUid)}));return a.default.createElement(d.PageWrapper,null,n&&a.default.createElement(l.Layout,{layout:n}),a.default.createElement(u.PageButtons,{page:t}))}},34038:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PageWrapper=void 0;var o,i=n(80159),l=n(51362),u=a(n(40265));t.PageWrapper=u.default.div(o||(o=r(["\n display: flex;\n flex: 1 0;\n flex-direction: column;\n gap: ",";\n\n padding: "," "," ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n ",";\n"],["\n display: flex;\n flex: 1 0;\n flex-direction: column;\n gap: ",";\n\n padding: "," "," ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n ",";\n"])),l.spacings.md,l.spacings.sm,l.spacings.xl,l.spacings.xl,i.scrollBar)},5157:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useRowAnimation=t.usePlaceholderAnimation=t.useOnMountAnimation=void 0;var r=n(79066);t.useOnMountAnimation=function(){return(0,r.useSpring)({from:{opacity:0,minHeight:1,transform:"scaleY(0)"},to:{opacity:1,minHeight:72,transform:"scaleY(1)"},config:{friction:11,tension:100,mass:.5}})};t.usePlaceholderAnimation=function(e){return(0,r.useSpring)({to:{height:e?30:20,opacity:e?1:0,transform:e?"scaleY(1)":"scaleY(0)"},delay:e?200:0,config:{tension:500}})};t.useRowAnimation=function(e){return(0,r.useSpring)({to:{y:e?20:0},delay:e?200:0,config:{tension:300}})}},58412:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useRowDrop=void 0;var r=n(8134),a=n(35653),o=n(36450),i=n(59305);t.useRowDrop=function(e){var t=(0,o.useAppDispatch)(),n=(0,r.useDrop)((function(){return{accept:[a.Drag.FieldType,a.Drag.Field],collect:function(e){return{isOver:e.isOver({shallow:!0}),canDrop:e.canDrop()}},canDrop:function(e,t){return t.isOver({shallow:!0})},drop:function(n){n.type===a.Drag.Field&&t(i.fieldThunks.move.existingField.newRow({layoutUid:e.layoutUid,field:n.data,order:e.order})),n.type===a.Drag.FieldType&&t(i.fieldThunks.move.newField.newRow({fieldType:n.data,row:e}))}}}),[e]),l=n[0],u=l.isOver,d=l.canDrop;return{ref:n[1],isOver:u,canDrop:d}}},84276:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useRowFieldDrop=void 0;var r=n(2784),a=n(8134),o=n(35653),i=n(36450),l=n(59305);t.useRowFieldDrop=function(e,t,n,u,d){var c=(0,i.useAppDispatch)(),s=(0,r.useState)(),f=s[0],p=s[1],m=(0,r.useState)(),v=m[0],h=m[1],g=(0,a.useDrop)({accept:[o.Drag.Field,o.Drag.FieldType],collect:function(e){var n=e.getItem(),r=(null==n?void 0:n.type)===o.Drag.Field,a=(null==n?void 0:n.type)===o.Drag.Field&&n.data.rowUid===t.uid;return{isOver:e.isOver({shallow:!0}),canDrop:e.canDrop(),dragFieldIndex:(null==n?void 0:n.type)===o.Drag.Field?n.index:void 0,isCurrentRow:a,isDraggingField:r}},canDrop:function(e,t){return t.isOver({shallow:!0})},hover:function(e,r){if(void 0!==u&&void 0!==d){var a=e.type===o.Drag.Field&&e.data.rowUid===t.uid,i=n+(a?0:1);if(!(i<=1)){var l=r.getClientOffset().x-d,c=Math.floor(l/(u/i));v!==c&&h(c)}}},drop:function(e){e.type===o.Drag.Field?c(l.fieldThunks.move.existingField.existingRow(e.data,t,v)):e.type===o.Drag.FieldType&&c(l.fieldThunks.move.newField.existingRow({fieldType:e.data,row:t,order:v})),h(void 0)}},[e,t,n,v,u]),b=g[0],y=b.isOver,_=b.isCurrentRow,x=b.dragFieldIndex,w=b.isDraggingField,E=b.canDrop,O=g[1];return(0,r.useEffect)((function(){var e=n;y&&!_&&(e+=1),p(u/Math.max(1,e))}),[y,n,u,_]),{ref:O,isOver:y,isCurrentRow:_,isDraggingField:w,canDrop:E,hoverPosition:v,fieldWidth:f,dragFieldIndex:x}}},34113:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderRow=void 0;var a=r(n(2784)),o=n(60572),i=n(10322);t.LoaderRow=function(){return a.default.createElement(i.RowWrapper,null,a.default.createElement(i.RowFieldsContainer,null,a.default.createElement(o.LoaderField,null)))}},10322:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldPlaceholder=t.DropZoneAnimation=t.DropZone=t.RowFieldsContainer=t.RowWrapper=void 0;var o,i,l,u,d,c=n(79066),s=n(51362),f=a(n(40265));t.RowWrapper=(0,f.default)(c.animated.div)(o||(o=r(["\n position: relative;\n\n min-height: 1px;\n margin: 0 -",";\n\n background-color: #f3f7fc00;\n border: 1px solid transparent;\n\n transition: all 0.2s ease-out;\n transform-origin: 50% 0%;\n"],["\n position: relative;\n\n min-height: 1px;\n margin: 0 -",";\n\n background-color: #f3f7fc00;\n border: 1px solid transparent;\n\n transition: all 0.2s ease-out;\n transform-origin: 50% 0%;\n"])),s.spacings.lg),t.RowFieldsContainer=(0,f.default)(c.animated.div)(i||(i=r(["\n position: relative;\n z-index: 2;\n\n display: flex;\n flex-direction: row;\n align-items: stretch;\n"],["\n position: relative;\n z-index: 2;\n\n display: flex;\n flex-direction: row;\n align-items: stretch;\n"]))),t.DropZone=f.default.div(l||(l=r(["\n position: absolute;\n left: ",";\n right: ",";\n top: -10px;\n\n z-index: 4;\n\n height: 20px;\n"],["\n position: absolute;\n left: ",";\n right: ",";\n top: -10px;\n\n z-index: 4;\n\n height: 20px;\n"])),s.spacings.sm,s.spacings.sm),t.DropZoneAnimation=(0,f.default)(c.animated.div)(u||(u=r(["\n position: relative;\n top: 3px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n overflow: hidden;\n height: 100%;\n\n background-color: #e9effd;\n border: 1px dashed #c3c3c3;\n border-radius: ",";\n\n font-size: 12px;\n line-height: 12px;\n\n text-align: center;\n font-family: monospace;\n"],["\n position: relative;\n top: 3px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n overflow: hidden;\n height: 100%;\n\n background-color: #e9effd;\n border: 1px dashed #c3c3c3;\n border-radius: ",";\n\n font-size: 12px;\n line-height: 12px;\n\n text-align: center;\n font-family: monospace;\n"])),s.borderRadius.md),t.FieldPlaceholder=(0,f.default)(c.animated.div)(d||(d=r(["\n border: 2px dashed grey;\n\n min-height: ",";\n flex-grow: 1;\n flex-shrink: 0;\n"],["\n border: 2px dashed grey;\n\n min-height: ",";\n flex-grow: 1;\n flex-shrink: 0;\n"])),"72px")},30019:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Row=void 0;var i=o(n(2784)),l=n(86993),u=n(4165),d=n(19136),c=n(66959),s=n(70122),f=n(5157),p=n(58412),m=n(84276),v=n(10322),h=(0,i.memo)((function(e){var t=e.row,n=(0,l.useSelector)(u.fieldSelectors.inRow(t)),r=(0,d.useDimensionsObserver)(),a=r.ref,o=r.dimensions,h=o.width,g=o.x,b=(0,p.useRowDrop)(t),y=b.ref,_=b.isOver,x=(0,f.usePlaceholderAnimation)(_),w=(0,f.useRowAnimation)(_),E=(0,m.useRowFieldDrop)(a,t,n.length,h,g),O=E.ref,P=E.isOver,j=E.isCurrentRow,k=E.isDraggingField,M=E.dragFieldIndex,C=E.hoverPosition,S=E.fieldWidth,F=O(a);return i.default.createElement(v.RowWrapper,{ref:F},i.default.createElement(v.DropZone,{ref:y},i.default.createElement(v.DropZoneAnimation,{style:x})),i.default.createElement(v.RowFieldsContainer,{style:w},i.default.createElement(s.FieldDragPlaceholder,{isActive:P,hoverPosition:C,fieldWidth:S}),n.map((function(e,t){return i.default.createElement(c.Field,{field:e,isOver:P,hoverPosition:C,isCurrentRow:j,isDraggingField:k,dragFieldIndex:M,index:t,key:e.uid,width:S||h})}))))}));t.Row=h,h.displayName="Row"},50417:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderFieldGroup=void 0;var a=r(n(2784)),o=r(n(76257)),i=n(8454),l=n(45160),u=n(21218);t.LoaderFieldGroup=function(e){var t=e.words,n=e.items;return a.default.createElement(u.FieldGroupWrapper,null,a.default.createElement(u.GroupTitle,null,t.map((function(e,t){return a.default.createElement(o.default,{key:t,width:e,height:16,inline:!0,style:{marginRight:8}})}))),a.default.createElement(u.List,null,(0,i.range)(n).map((function(e){return a.default.createElement(l.LoaderFieldItem,{key:e})}))))}},21218:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.List=t.GroupTitle=t.FieldGroupWrapper=void 0;var o,i,l,u=n(51362),d=a(n(40265));t.FieldGroupWrapper=d.default.div(o||(o=r(["\n margin-bottom: ",";\n\n &.disabled {\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n }\n"],["\n margin-bottom: ",";\n\n &.disabled {\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n }\n"])),u.spacings.xl),t.GroupTitle=d.default.h2(i||(i=r(["\n position: relative;\n\n margin: 0;\n padding: 0 0 5px;\n\n button {\n position: absolute;\n top: 1px;\n right: 0;\n\n transition: all 0.2s ease;\n\n &:hover {\n transform: scale(1.1);\n }\n }\n"],["\n position: relative;\n\n margin: 0;\n padding: 0 0 5px;\n\n button {\n position: absolute;\n top: 1px;\n right: 0;\n\n transition: all 0.2s ease;\n\n &:hover {\n transform: scale(1.1);\n }\n }\n"]))),t.List=d.default.div(l||(l=r(["\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 5px;\n\n margin: 0;\n padding: 0;\n"],["\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 5px;\n\n margin: 0;\n padding: 0;\n"])))},51044:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldGroup=void 0;var a=r(n(2784)),o=r(n(26457)),i=n(21218);t.FieldGroup=function(e){var t=e.title,n=e.disabled,r=e.editionIsPro,l=e.button,u=e.children;return a.default.createElement(i.FieldGroupWrapper,{className:(0,o.default)(n&&"disabled")},a.default.createElement(i.GroupTitle,null,t,l&&(void 0===r||r)&&a.default.createElement("button",{type:"button",title:l.title,onClick:l.onClick},l.icon)),u)}},45160:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderFieldItem=void 0;var l=i(n(2784)),u=o(n(76257)),d=n(4424);t.LoaderFieldItem=function(){return l.default.createElement(d.Wrapper,null,l.default.createElement(u.SkeletonTheme,null,l.default.createElement(u.default,{width:18,height:18,borderRadius:"50%",style:{position:"relative",top:-2}}),l.default.createElement(u.default,{width:50,style:{position:"relative",top:-1}})))}},4424:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=t.Name=t.Wrapper=void 0;var o,i,l,u=n(51362),d=a(n(40265));t.Wrapper=d.default.div(o||(o=r(["\n cursor: pointer;\n\n display: flex;\n gap: 6px;\n align-items: center;\n\n height: 28px;\n\n padding: 0 4px;\n overflow: hidden;\n\n background: ",";\n border: 1px solid ",";\n border-radius: 3px;\n\n font-size: 12px;\n\n transition: all 0.2s ease-in-out;\n\n &:hover {\n transform: scale(1.05);\n border-color: ",";\n background-color: ",";\n }\n"],["\n cursor: pointer;\n\n display: flex;\n gap: 6px;\n align-items: center;\n\n height: 28px;\n\n padding: 0 4px;\n overflow: hidden;\n\n background: ",";\n border: 1px solid ",";\n border-radius: 3px;\n\n font-size: 12px;\n\n transition: all 0.2s ease-in-out;\n\n &:hover {\n transform: scale(1.05);\n border-color: ",";\n background-color: ",";\n }\n"])),u.colors.white,u.colors.gray100,u.colors.gray200,u.colors.gray050),t.Name=d.default.span(i||(i=r(["\n flex: 1;\n line-height: 14px;\n\n overflow-x: hidden;\n overflow-y: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"],["\n flex: 1;\n line-height: 14px;\n\n overflow-x: hidden;\n overflow-y: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"]))),t.Icon=d.default.div(l||(l=r(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n flex-shrink: 0;\n flex-basis: 18px;\n\n svg {\n max-width: 18px;\n max-height: 18px;\n }\n\n color: ",";\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n\n flex-shrink: 0;\n flex-basis: 18px;\n\n svg {\n max-width: 18px;\n max-height: 18px;\n }\n\n color: ",";\n"])),u.colors.gray500)},20890:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Field=void 0;var a=r(n(2784)),o=n(4424);t.Field=function(e){var t=e.icon,n=e.label,r=e.dragRef,i=e.onClick;return a.default.createElement(o.Wrapper,{ref:r,onClick:i,title:n},a.default.createElement(o.Icon,{dangerouslySetInnerHTML:{__html:t}}),a.default.createElement(o.Name,null,n))}},33810:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderFieldList=void 0;var a=r(n(2784)),o=n(32165),i=n(50417),l=n(82866);t.LoaderFieldList=function(){return a.default.createElement(o.Sidebar,null,a.default.createElement(l.LoaderSearch,null),a.default.createElement(i.LoaderFieldGroup,{words:[50,70],items:16}))}},98607:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldListWrapper=void 0;var o,i=n(79066),l=n(80159),u=n(51362),d=a(n(40265)),c=n(4424);t.FieldListWrapper=(0,d.default)(i.animated.div)(o||(o=r(["\n position: relative;\n padding: ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n\n height: 100%;\n ",";\n\n &.fields-disabled {\n "," {\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n }\n }\n"],["\n position: relative;\n padding: ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n\n height: 100%;\n ",";\n\n &.fields-disabled {\n "," {\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n }\n }\n"])),u.spacings.lg,l.scrollBar,c.Wrapper)},88041:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldList=void 0;var l=i(n(2784)),u=n(86993),d=o(n(65884)),c=n(4165),s=n(15443),f=i(n(26457)),p=n(94657),m=n(12379),v=n(97708),h=n(7002),g=n(98607);t.FieldList=function(){(0,s.useFetchFieldPropertySections)();var e=(0,u.useSelector)(c.fieldSelectors.count),t=d.default.editions.is(d.Edition.Express)&&e>=d.default.limits.fields;return l.default.createElement(g.FieldListWrapper,{className:(0,f.default)(t&&"fields-disabled")},l.default.createElement(h.Search,null),l.default.createElement(m.FavoriteFields,null),l.default.createElement(p.BaseFields,null),l.default.createElement(v.FormsFields,null))}},36985:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0}));return{types:a||[],groups:r(r({},t.groups),{grouped:o||[]})}}),[e])};t.useSelectSearchedFields=function(){var e=(0,o.useSelector)(l.searchSelectors.query(i.Search.Fields));return(0,a.useCallback)((function(t){return e?t.filter((function(t){return t.name.toLowerCase().includes(e.toLowerCase())})):t}),[e])};t.useSelectSearchedFavorites=function(){var e=(0,o.useSelector)(l.searchSelectors.query(i.Search.Fields));return(0,a.useCallback)((function(t){return e?t.filter((function(t){return t.label.toLowerCase().includes(e.toLowerCase())})):t}),[e])};t.useSelectSearchedForms=function(){var e=(0,o.useSelector)(l.searchSelectors.query(i.Search.Fields));return(0,a.useCallback)((function(t){return e?t.map((function(t){return r(r({},t),{fields:t.fields.filter((function(t){return t.label.toLowerCase().includes(e.toLowerCase())}))})})).filter((function(e){return e.fields.length>0})):t}),[e])}},20373:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GroupName=t.GroupWrapper=void 0;var o,i,l=n(51362),u=a(n(40265));t.GroupWrapper=u.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n margin-bottom: ",";\n\n svg {\n fill: ",";\n }\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n margin-bottom: ",";\n\n svg {\n fill: ",";\n }\n"])),l.spacings.xs,l.spacings.md,(function(e){return e.color||l.colors.black})),t.GroupName=u.default.div(i||(i=r(["\n text-transform: uppercase;\n font-size: 10px;\n"],["\n text-transform: uppercase;\n font-size: 10px;\n"])))},94657:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseFields=void 0;var l=i(n(2784)),u=n(27562),d=o(n(65884)),c=n(15443),s=n(40828),f=i(n(2072)),p=i(n(77306)),m=n(51044),v=n(50417),h=n(21218),g=n(36985),b=n(24648),y=n(20373),_=n(55383),x=(0,f.default)("Field Types"),w=function(e){var t=e.group,n=(0,c.useFieldTypeSearch)(),r=t.types.map((function(e){var t=n(e);return(null==t?void 0:t.visible)?t&&l.default.createElement(_.FieldItem,{key:e,fieldType:t}):null})).filter(Boolean);return r.length?l.default.createElement(y.GroupWrapper,{key:t.uid,color:t.color},t.label&&l.default.createElement(y.GroupName,null,t.label),l.default.createElement(h.List,null,r)):null};t.BaseFields=function(){var e,t=(0,g.useSelectSearchedGroups)(),n=(0,s.useFetchGroups)({select:t}),r=n.data,a=n.isFetching,o=n.isError,i=n.error,c=(0,b.useCreateModal)();return!r&&a?l.default.createElement(v.LoaderFieldGroup,{words:[50,70],items:16}):o?l.default.createElement(u.ErrorBlock,null,i.message):l.default.createElement(m.FieldGroup,{button:{icon:l.default.createElement(p.default,null),title:(0,f.default)("Edit Manager"),onClick:c},editionIsPro:d.default.editions.is(d.Edition.Pro),title:(0,f.default)(x)},null===(e=r.groups.grouped)||void 0===e?void 0:e.map((function(e){return l.default.createElement(w,{key:e.uid,group:e})})),(null==r?void 0:r.types)&&l.default.createElement(w,{group:{uid:"external",types:r.types}}))}},58363:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useBaseFieldDrag=void 0;var r=n(2784),a=n(8134),o=n(35653),i=n(37430);t.useBaseFieldDrag=function(e){var t=(0,i.useDragContext)(),n=t.dragOn,l=t.dragOff,u=(0,a.useDrag)((function(){return{type:o.Drag.FieldType,collect:function(e){return{isDragging:e.isDragging()}},item:{type:o.Drag.FieldType,data:e}}})),d=u[0].isDragging,c=u[1];return(0,r.useEffect)((function(){d?n(o.Drag.FieldType):l()}),[d]),{ref:c}}},55383:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldItem=void 0;var a=r(n(2784)),o=n(36450),i=n(59305),l=r(n(2072)),u=n(20890),d=n(58363);t.FieldItem=function(e){var t=e.fieldType,n=t.icon,r=t.name,c=(0,o.useAppDispatch)(),s=(0,d.useBaseFieldDrag)(t).ref;return a.default.createElement(u.Field,{icon:n,label:(0,l.default)(r),onClick:function(){c(i.fieldThunks.move.newField.newRow({fieldType:t}))},dragRef:s})}},75038:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Remove=t.Icon=t.Name=t.Wrapper=void 0;var o,i,l,u,d=n(51362),c=a(n(40265));t.Wrapper=c.default.div(o||(o=r(["\n cursor: pointer;\n\n display: flex;\n gap: 6px;\n align-items: center;\n\n height: 28px;\n\n padding: 0 4px;\n overflow: hidden;\n\n background: ",";\n border: 1px solid ",";\n border-radius: 3px;\n\n font-size: 12px;\n\n transition: all 0.2s ease-in-out;\n\n &:hover {\n transform: scale(1.05);\n border-color: ",";\n background-color: ",";\n }\n"],["\n cursor: pointer;\n\n display: flex;\n gap: 6px;\n align-items: center;\n\n height: 28px;\n\n padding: 0 4px;\n overflow: hidden;\n\n background: ",";\n border: 1px solid ",";\n border-radius: 3px;\n\n font-size: 12px;\n\n transition: all 0.2s ease-in-out;\n\n &:hover {\n transform: scale(1.05);\n border-color: ",";\n background-color: ",";\n }\n"])),d.colors.white,d.colors.gray100,d.colors.gray200,d.colors.gray050),t.Name=c.default.span(i||(i=r(["\n flex: 1;\n line-height: 14px;\n\n overflow-x: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"],["\n flex: 1;\n line-height: 14px;\n\n overflow-x: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"]))),t.Icon=c.default.div(l||(l=r(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n flex-shrink: 0;\n flex-basis: 18px;\n\n svg {\n max-width: 18px;\n max-height: 18px;\n }\n\n color: ",";\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n\n flex-shrink: 0;\n flex-basis: 18px;\n\n svg {\n max-width: 18px;\n max-height: 18px;\n }\n\n color: ",";\n"])),d.colors.gray500),t.Remove=c.default.div(u||(u=r(["\n color: ",";\n margin-right: ",";\n"],["\n color: ",";\n margin-right: ",";\n"])),d.colors.gray500,d.spacings.xs)},9514:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldItem=void 0;var l=o(n(2784)),u=n(23934),d=n(15443),c=i(n(40362)),s=n(75038);t.FieldItem=function(e){var t=e.typeClass,n=(0,d.useFieldType)(t),r=(0,l.useRef)(null),a=(0,u.useHover)(r);if(!n)return null;var o=n.name,i=n.icon;return l.default.createElement(s.Wrapper,{"data-id":t,ref:r,title:o},l.default.createElement(s.Icon,{dangerouslySetInnerHTML:{__html:i}}),l.default.createElement(s.Name,null,o),a&&l.default.createElement(s.Remove,{className:"remove field-item-remove"},l.default.createElement(c.default,null)))}},91561:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n .unassigned {\n .remove {\n display: none;\n }\n }\n"],["\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: ",";\n\n padding-top: ",";\n\n > .unassigned {\n .remove {\n display: none;\n }\n }\n"])),_.spacings.xl,_.spacings.lg),t.UHField=x.default.div(v||(v=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," "," "," ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," "," "," ",";\n"])),_.spacings.md,_.spacings.xs,_.spacings.xs,_.spacings.xs,_.spacings.md),t.ColorCircle=x.default.div(h||(h=r(["\n width: 20px;\n height: 20px;\n border-radius: 50%;\n border: 1px solid ",";\n cursor: pointer;\n background-color: ",";\n position: relative;\n"],["\n width: 20px;\n height: 20px;\n border-radius: 50%;\n border: 1px solid ",";\n cursor: pointer;\n background-color: ",";\n position: relative;\n"])),_.colors.gray100,(function(e){return e.color||_.colors.black})),t.ColorPicker=x.default.div(g||(g=r(["\n > .sketch-picker {\n padding: 5px 1px 0px !important;\n box-shadow: inherit !important;\n }\n"],["\n > .sketch-picker {\n padding: 5px 1px 0px !important;\n box-shadow: inherit !important;\n }\n"]))),t.ErrorBlock=x.default.div(b||(b=r(["\n color: ",";\n"],["\n color: ",";\n"])),_.colors.warning)},45825:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateModal=void 0;var l=o(n(2784)),u=n(20977),d=n(86063),c=n(94774),s=n(57092),f=n(4679),p=n(97474),m=n(40828),v=n(83287),h=i(n(2072)),g=i(n(40362)),b=i(n(87641)),y=n(9514),_=n(91561),x=n(24610),w=n(75662);t.CreateModal=function(e){var t,n,r,a,o,i=e.closeModal,E=(0,l.useState)({}),O=E[0],P=E[1],j=(0,l.useState)(),k=j[0],M=j[1],C=(0,l.useState)(),S=C[0],F=C[1],T=(0,l.useState)(!1),D=T[0],L=T[1],R=(0,l.useRef)({}),B=(0,_.useGroupOperations)(O,P,R),A=B.addGroup,I=B.updateGroupInfo,W=B.syncFromRefs,N=(0,m.useFetchGroups)().data;(0,l.useEffect)((function(){N&&!D&&(P(N),L(!0))}),[N,D]),(0,l.useEffect)((function(){(0,w.initializeSortable)(R)}),[]);var z=(0,p.useGroupMutation)({onSuccess:function(){i()},onError:function(e){F(e.errors)}}),Q=z.isLoading;return l.default.createElement(f.ModalContainer,{style:{maxWidth:"70%"}},l.default.createElement(f.ModalHeader,null,l.default.createElement("h1",null,(0,h.default)("Field Type Manager"))),l.default.createElement(x.ManagerWrapper,null,l.default.createElement(x.GroupWrapper,{ref:function(e){return R.current.groupWrapper=e},$empty:(0,h.default)("Click the 'Add Group' button on the right to begin.")},(null==S?void 0:S.length)&&l.default.createElement(x.ErrorBlock,null,(0,h.default)("Something went wrong!")),null===(n=null===(t=O.groups)||void 0===t?void 0:t.grouped)||void 0===n?void 0:n.map((function(e){var t;return l.default.createElement(x.GroupLayout,{key:e.uid,"data-id":e.uid},l.default.createElement(x.GroupType,null,l.default.createElement(x.GroupHeader,null,l.default.createElement(d.Tooltip,{trigger:"click",position:"right",interactive:!0,interactiveBorder:0,size:"small",theme:"light",arrow:!0,html:l.default.createElement(x.ColorPicker,null,l.default.createElement(u.SketchPicker,{color:(null==k?void 0:k.color)||e.color,onChange:function(t){return M({groupUid:e.uid,color:t.hex})},onChangeComplete:function(t){I("color",t.hex,e.uid)}}))},l.default.createElement(x.ColorCircle,{color:e.color,onClick:function(){return M({groupUid:e.uid,color:e.color})}})),l.default.createElement(c.FormComponent,{value:e.label,property:{type:v.PropertyType.Label,handle:e.uid},updateValue:function(t){return I("label",t,e.uid)}})),l.default.createElement(x.GroupItemWrapper,{$empty:(0,h.default)("Drag and drop any field here"),ref:function(t){(0,w.initializeGroupedSortable)(t,e.uid,R)},color:e.color},null===(t=e.types)||void 0===t?void 0:t.map((function(e){return l.default.createElement(y.FieldItem,{key:e,typeClass:e})})))),l.default.createElement(x.CloseAndMoveWrapper,null,l.default.createElement("button",{className:"group-remove"},l.default.createElement(g.default,null)),l.default.createElement("button",{className:"handle"},l.default.createElement(b.default,null))))}))),l.default.createElement(x.FieldListWrapper,null,l.default.createElement("button",{onClick:A,type:"button",className:"btn add icon dashed"},(0,h.default)("Add Group")),l.default.createElement(x.UHFieldWrapper,null,l.default.createElement(x.UHField,{className:"unassigned"},l.default.createElement("h3",null,(0,h.default)("Unassigned")),l.default.createElement(x.FieldTypes,{$empty:(0,h.default)("Drag and drop any fields here. Unassigned fields will display at the bottom of the list of field types."),ref:function(e){return R.current.unassigned=e}},null===(r=O.types)||void 0===r?void 0:r.map((function(e){return l.default.createElement(y.FieldItem,{key:e,typeClass:e})})))),l.default.createElement(x.UHField,null,l.default.createElement("h3",null,(0,h.default)("Hidden")),l.default.createElement(x.FieldTypes,{$empty:(0,h.default)("Drag and drop any fields here to hide them."),ref:function(e){return R.current.hidden=e}},null===(o=null===(a=O.groups)||void 0===a?void 0:a.hidden)||void 0===o?void 0:o.map((function(e){return l.default.createElement(y.FieldItem,{key:e,typeClass:e})}))))))),l.default.createElement(f.ModalFooter,null,l.default.createElement("button",{type:"button",className:"btn",onClick:i,disabled:Q},(0,h.default)("Cancel")),l.default.createElement("button",{type:"button",className:"btn submit"},l.default.createElement(s.LoadingText,{loadingText:(0,h.default)("Saving"),loading:Q,onClick:function(){return z.mutate(W())},spinner:!0},(0,h.default)("Save")))))}},75662:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.initializeGroupedSortable=t.initializeSortable=void 0;var a=r(n(10324)),o=function(e,t){return".handle"!==t.options.handle};t.initializeSortable=function(e){var t;t={unassigned:{group:{name:"shared",put:o},animation:150,sort:!1},hidden:{group:{name:"shared",put:o},animation:150,sort:!0,filter:".field-item-remove",onFilter:function(t){return e.current.unassigned.appendChild(t.item)}},groupWrapper:{handle:".handle",filter:".group-remove",sort:!0,animation:150,onFilter:function(t){var n,r=Array.from(e.current[t.item.dataset.id].children);(n=e.current.unassigned).append.apply(n,r),t.item.remove()}}},Object.entries(t).forEach((function(t){return function(t,n){var r=e.current[t];r&&a.default.create(r,n)}(t[0],t[1])}))};t.initializeGroupedSortable=function(e,t,n){e&&(a.default.create(e,{animation:150,group:{name:"group-".concat(t),put:function(e,t){return".handle"!==t.options.handle}},sort:!0,filter:".field-item-remove",onFilter:function(e){return n.current.unassigned.appendChild(e.item)}}),n.current[t]=e)}},24648:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useCreateModal=void 0;var r=n(85797),a=n(45825);t.useCreateModal=function(){var e=(0,r.useModal)().openModal;return function(){e(a.CreateModal)}}},12379:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteFields=void 0;var a=r(n(2784)),o=n(27562),i=n(87087),l=n(15443),u=r(n(2072)),d=r(n(77306)),c=n(51044),s=n(50417),f=n(21218),p=n(36985),m=n(17454),v=n(19073),h=(0,u.default)("Favorites");t.FavoriteFields=function(){var e=(0,p.useSelectSearchedFavorites)(),t=(0,i.useFetchFavorites)({select:e}),n=t.data,r=t.isFetching,g=t.isError,b=t.error,y=(0,m.useCreateModal)(),_=(0,l.useFieldTypeSearch)();return!n&&r?a.default.createElement(s.LoaderFieldGroup,{words:[60],items:2}):g?a.default.createElement(o.ErrorBlock,null,b.message):n.length?a.default.createElement(c.FieldGroup,{title:(0,u.default)(h),button:{icon:a.default.createElement(d.default,null),title:(0,u.default)("Edit Favorites"),onClick:y}},a.default.createElement(f.List,null,n.map((function(e){var t=_(e.typeClass);return t&&(null==t?void 0:t.visible)?a.default.createElement(v.FieldItem,{key:e.id,favorite:e}):null})))):null}},37699:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneFieldTypeFromFavorite=void 0;var a=r(n(9907));t.cloneFieldTypeFromFavorite=function(e,t){var n=(0,a.default)(t);return Object.entries(e.properties).map((function(e){var t,r=e[0],a=e[1],o=null===(t=null==n?void 0:n.properties)||void 0===t?void 0:t.find((function(e){return e.handle===r}));o&&(o.value=a)})),n}},19073:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldItem=void 0;var a=r(n(2784)),o=n(36450),i=n(59305),l=n(15443),u=n(20890),d=n(58363),c=n(37699);t.FieldItem=function(e){var t=e.favorite,n=t.typeClass,r=t.label,s=(0,l.useFieldType)(n),f=(0,c.cloneFieldTypeFromFavorite)(t,s),p=(0,o.useAppDispatch)(),m=(0,d.useBaseFieldDrag)(f).ref;if(!s||!f)return null;var v=s.icon;return a.default.createElement(u.Field,{icon:v,label:r,onClick:function(){p(i.fieldThunks.move.newField.newRow({fieldType:f}))},dragRef:m})}},59348:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteFieldComponent=void 0;var a=r(n(2784)),o=n(94774),i=n(27487);t.FavoriteFieldComponent=function(e){var t=e.property,n=e.siblingProperties,r=e.state,l=e.errors,u=e.updateValueCallback,d=(0,i.useValueUpdateGenerator)(n,r,u);return a.default.createElement(o.FormComponent,{value:(null==r?void 0:r[t.handle])||"",property:t,updateValue:d(t),errors:l,context:{properties:r}})}},91768:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoritesEditor=void 0;var a=r(n(2784)),o=n(79857),i=n(59285),l=n(85227),u=n(77274),d=n(15443),c=n(59348);t.FavoritesEditor=function(e){var t=e.field,n=e.errors,r=e.values,s=e.updateValueCallback,f=(0,d.useFetchFieldPropertySections)().data,p=(0,d.useFieldType)(null==t?void 0:t.typeClass);if(!t||!p||!f)return null;var m=[];return f.sort((function(e,t){return e.order-t.order})).forEach((function(e){var t=e.handle,o=e.label,i=e.icon,l=p.properties.filter(function(e){return function(t){return t.section===e}}(t));l.length&&m.push(a.default.createElement(u.SectionBlock,{label:o,icon:i,key:t},l.map((function(e){return a.default.createElement(c.FavoriteFieldComponent,{key:e.handle,errors:null==n?void 0:n[e.handle],state:r,siblingProperties:p.properties,property:e,updateValueCallback:s})}))))})),a.default.createElement(a.default.Fragment,null,a.default.createElement(l.Title,null,a.default.createElement(l.Icon,{dangerouslySetInnerHTML:{__html:p.icon}}),a.default.createElement("span",null,(null==r?void 0:r.label)||p.name)),a.default.createElement(o.RenderContextProvider,{size:"small"},a.default.createElement(i.SectionWrapper,null,m)))}},41407:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteListItem=void 0;var l=o(n(2784)),u=n(54509),d=n(23934),c=n(15443),s=i(n(26457)),f=n(52271);t.FavoriteListItem=function(e){var t=e.favorite,n=e.label,r=e.errors,a=e.isActive,o=e.onClick,i=e.onDelete,p=(0,l.useRef)(null),m=(0,d.useHover)(p),v=(0,c.useFieldType)(t.typeClass);if(!v)return null;var h=void 0!==r&&r.length;return l.default.createElement(f.FieldListItem,{key:t.id,ref:p,onClick:o,className:(0,s.default)(a&&"active",h&&"errors")},l.default.createElement(f.Icon,{dangerouslySetInnerHTML:{__html:v.icon}}),l.default.createElement("span",null,n),l.default.createElement(u.RemoveButton,{active:m,onClick:i}))}},52271:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteButton=t.Icon=t.FieldListItem=t.FieldList=t.FavoritesEditorWrapper=t.FavoritesWrapper=void 0;var o=n(85227),i=n(71485),l=n(80159),u=n(51362),d=a(n(40265));t.FavoritesWrapper=d.default.div(c||(c=r(["\n display: flex;\n justify-content: space-between;\n\n height: 600px;\n"],["\n display: flex;\n justify-content: space-between;\n\n height: 600px;\n"])));var c,s,f,p,m,v;t.FavoritesEditorWrapper=d.default.div(s||(s=r(["\n flex: 1;\n\n height: 100%;\n padding: 0 ",";\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n\n "," {\n padding-left: 0;\n font-size: 18px;\n\n "," {\n width: ","px;\n height: ","px;\n\n svg {\n max-width: ","px;\n max-height: ","px;\n }\n }\n }\n\n "," {\n &:after {\n background-color: white;\n }\n }\n"],["\n flex: 1;\n\n height: 100%;\n padding: 0 ",";\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n\n "," {\n padding-left: 0;\n font-size: 18px;\n\n "," {\n width: ","px;\n height: ","px;\n\n svg {\n max-width: ","px;\n max-height: ","px;\n }\n }\n }\n\n "," {\n &:after {\n background-color: white;\n }\n }\n"])),u.spacings.lg,l.scrollBar,o.Title,o.Icon,22,22,22,22,i.SectionBlockContainer),t.FieldList=d.default.ul(f||(f=r(["\n display: flex;\n flex-direction: column;\n gap: 2px;\n\n padding: ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n\n background: ",";\n box-shadow: ",";\n\n ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: 2px;\n\n padding: ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n\n background: ",";\n box-shadow: ",";\n\n ",";\n"])),u.spacings.sm,u.colors.gray050,u.shadows.right,l.scrollBar),t.FieldListItem=d.default.li(p||(p=r(["\n cursor: pointer;\n position: relative;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n\n width: 250px;\n padding: "," "," "," ",";\n\n border: 1px solid transparent;\n border-radius: ",";\n font-size: 13px;\n\n user-select: none;\n transition: all 0.2s ease-in-out;\n\n > span {\n flex: 1;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &.active {\n background: ",";\n color: ",";\n fill: currentColor;\n }\n\n &.errors {\n color: ",";\n fill: currentColor;\n\n ",";\n }\n"],["\n cursor: pointer;\n position: relative;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n\n width: 250px;\n padding: "," "," "," ",";\n\n border: 1px solid transparent;\n border-radius: ",";\n font-size: 13px;\n\n user-select: none;\n transition: all 0.2s ease-in-out;\n\n > span {\n flex: 1;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &.active {\n background: ",";\n color: ",";\n fill: currentColor;\n }\n\n &.errors {\n color: ",";\n fill: currentColor;\n\n ",";\n }\n"])),u.spacings.xs,u.spacings.xs,u.spacings.xs,u.spacings.md,u.borderRadius.lg,u.colors.gray200,u.colors.gray500,u.colors.white,u.colors.error,l.errorAlert),t.Icon=d.default.div(m||(m=r(["\n font-size: 10px;\n\n &,\n svg {\n height: 20px;\n width: 20px;\n }\n"],["\n font-size: 10px;\n\n &,\n svg {\n height: 20px;\n width: 20px;\n }\n"]))),t.DeleteButton=d.default.button(v||(v=r(["\n position: absolute;\n top: 0;\n right: 0;\n"],["\n position: absolute;\n top: 0;\n right: 0;\n"])))},53318:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0,y=(0,h.useFormBlockAnimations)(b);return t.fields.length?l.default.createElement(g.FormBlockWrapper,{className:(0,f.default)(b&&"open")},l.default.createElement(g.FormTitle,{onClick:function(){return a(!r)}},t.name,l.default.createElement(g.ExpandedState,null,l.default.createElement(m.default,null))),l.default.createElement(g.FieldListContainer,{style:y},l.default.createElement(p.List,null,t.fields.map((function(e){var t=i(e.typeClass);return t&&(null==t?void 0:t.visible)?l.default.createElement(v.FieldItem,{key:e.id,field:e}):null}))))):null}},1801:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormFieldsWrapper=void 0;var o,i=n(51362),l=a(n(40265));t.FormFieldsWrapper=l.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),i.spacings.sm)},97708:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormsFields=void 0;var a=r(n(2784)),o=n(86993),i=n(27562),l=n(35382),u=n(64725),d=r(n(2072)),c=n(21218),s=n(36985),f=n(82183),p=n(1801);t.FormsFields=function(){var e=(0,o.useSelector)(l.formSelectors.current).uid,t=(0,s.useSelectSearchedForms)(),n=(0,u.useFetchForms)({select:t}),r=n.data,m=n.isFetching,v=n.isError,h=n.error;if(!r&&m)return null;if(v)return a.default.createElement(i.ErrorBlock,null,h.message);if(!r||!r.length)return null;var g=r.filter((function(t){return t.uid!==e})),b=g.some((function(e){return e.fields.length>0}));return g.length&&b?a.default.createElement(p.FormFieldsWrapper,null,a.default.createElement(c.GroupTitle,null,(0,d.default)("Fields from other Forms")),g.map((function(e){return a.default.createElement(f.FormBlock,{key:e.uid,form:e})}))):null}},88786:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useFieldSearch=void 0;var r=n(2784),a=n(86993),o=n(96636),i=n(88901);t.useFieldSearch=function(){var e=(0,a.useDispatch)(),t=(0,r.useState)(""),n=t[0],l=t[1],u=(0,i.useDebounce)(n,1e3);return(0,r.useEffect)((function(){e(o.searchActions.update({type:o.Search.Fields,query:u}))}),[u]),[n,l]}},82866:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderSearch=void 0;var a=r(n(2784)),o=r(n(2072)),i=n(64e3),l=r(n(17218));t.LoaderSearch=function(){return a.default.createElement(i.Wrapper,null,a.default.createElement(i.SearchBlock,null,a.default.createElement(i.SearchIcon,null,a.default.createElement(l.default,null)),a.default.createElement(i.SearchBar,{disabled:!0,className:"fullwidth text",placeholder:(0,o.default)("Search")})))}},64e3:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SearchIcon=t.IconStyle=t.SearchBar=t.SearchBlock=t.Wrapper=void 0;var l=n(51362),u=i(n(40265));t.Wrapper=u.default.div(d||(d=r(["\n position: relative;\n z-index: 1;\n\n margin-bottom: ",";\n"],["\n position: relative;\n z-index: 1;\n\n margin-bottom: ",";\n"])),l.spacings.lg),t.SearchBlock=u.default.div(c||(c=r(["\n display: flex;\n"],["\n display: flex;\n"]))),t.SearchBar=u.default.input(s||(s=r(["\n padding: 6px 38px 6px 30px !important;\n\n border-radius: 5px;\n\n &::placeholder {\n font-style: italic;\n color: ",";\n }\n"],["\n padding: 6px 38px 6px 30px !important;\n\n border-radius: 5px;\n\n &::placeholder {\n font-style: italic;\n color: ",";\n }\n"])),l.colors.gray200);var d,c,s,f,p,m="14px";t.IconStyle=(0,u.css)(f||(f=r(["\n position: absolute;\n top: 1px;\n bottom: 1px;\n z-index: 2;\n\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n padding: 0 8px;\n\n box-sizing: border-box;\n user-select: none;\n\n > svg {\n width: ",";\n height: ",";\n }\n"],["\n position: absolute;\n top: 1px;\n bottom: 1px;\n z-index: 2;\n\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n padding: 0 8px;\n\n box-sizing: border-box;\n user-select: none;\n\n > svg {\n width: ",";\n height: ",";\n }\n"])),m,m),t.SearchIcon=u.default.div(p||(p=r(["\n left: 1px;\n\n ","\n\n color: ",";\n"],["\n left: 1px;\n\n ","\n\n color: ",";\n"])),t.IconStyle,l.colors.gray400)},7002:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Search=void 0;var a=r(n(2784)),o=r(n(2072)),i=n(88786),l=n(64e3),u=r(n(17218));t.Search=function(){var e=(0,i.useFieldSearch)(),t=e[0],n=e[1];return a.default.createElement(l.Wrapper,null,a.default.createElement(l.SearchBlock,null,a.default.createElement(l.SearchIcon,null,a.default.createElement(u.default,null)),a.default.createElement(l.SearchBar,{type:"text",placeholder:(0,o.default)("Search"),className:"fullwidth text",value:t,onChange:function(e){n(e.target.value)}})))}},50202:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderFormLayout=void 0;var a=r(n(2784)),o=n(95802),i=n(33810);t.LoaderFormLayout=function(){return a.default.createElement(a.default.Fragment,null,a.default.createElement(i.LoaderFieldList,null),a.default.createElement(o.LoaderFieldLayout,null))}},28733:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Grid=void 0;var o,i=a(n(40265));t.Grid=i.default.div(o||(o=r(["\n position: relative;\n display: flex;\n gap: 0;\n\n height: 100%;\n overflow: hidden;\n\n background: #fff;\n"],["\n position: relative;\n display: flex;\n gap: 0;\n\n height: 100%;\n overflow: hidden;\n\n background: #fff;\n"])))},89888:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutEditor=void 0;var a=r(n(2784)),o=n(76034),i=n(11455),l=n(32165),u=r(n(2072)),d=n(62873),c=n(88041),s=n(84054),f=n(37430),p=n(28733);t.LayoutEditor=function(){var e=(0,o.useResolvedPath)("");return a.default.createElement(f.DragContextProvider,null,a.default.createElement(i.Breadcrumb,{id:"layout",label:(0,u.default)("Layout"),url:e.pathname}),a.default.createElement(p.Grid,null,a.default.createElement(l.Sidebar,{$noPadding:!0},a.default.createElement(s.PropertyEditor,null),a.default.createElement(c.FieldList,null)),a.default.createElement(d.FieldLayout,null)))}},76305:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteButton=void 0;var l=o(n(2784)),u=n(79066),d=n(31070),c=n(9726),s=n(15443),f=i(n(26457)),p=i(n(33424)),m=i(n(19772)),v=n(93748),h=n(91123),g=n(27312);t.FavoriteButton=function(e){var t=e.field,n=(0,s.useFieldType)(null==t?void 0:t.typeClass),r=(0,h.useFavoritesMutation)(),a=(0,l.useState)(!1),o=a[0],i=a[1],b=(0,l.useState)(!1),y=b[0],_=b[1];(0,l.useEffect)((function(){i(!1),_(!1),r.reset()}),[null==t?void 0:t.uid]);var x=(0,u.useSpring)({to:{opacity:o?1:0,scale:o?1:1.1,rotate:o?0:-10},config:{tension:700}}),w=(0,u.useSpring)({to:{scale:y?1.2:1},config:{tension:600,mass:3}}),E=(0,c.useClickOutside)({callback:function(){i(!1),_(!1)},isEnabled:o});return(0,d.useEscapeStack)((function(){i(!1),_(!1)}),o),(null==t?void 0:t.uid)?l.default.createElement(g.FavoriteButtonWrapper,{className:(0,f.default)(o&&"active"),ref:E},l.default.createElement(g.Button,{style:w,onClick:function(){return i(!o)},onMouseOver:function(){return _(!0)},onMouseOut:function(){return _(!1)}},r.isSuccess&&l.default.createElement(p.default,null),!r.isSuccess&&l.default.createElement(m.default,null)),l.default.createElement(g.PopUpWrapper,{style:x},l.default.createElement(g.IconBox,null),l.default.createElement(g.InfoBlock,null,l.default.createElement(v.FavoriteForm,{field:t,type:n,mutation:r})))):null}},69588:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonContainer=t.FavoriteFormWrapper=void 0;var o,i,l=n(51362),u=a(n(40265));t.FavoriteFormWrapper=u.default.div(o||(o=r(["\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n gap: ",";\n"])),l.spacings.lg),t.ButtonContainer=u.default.div(i||(i=r(["\n display: flex;\n justify-content: center;\n"],["\n display: flex;\n justify-content: center;\n"])))},93748:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteForm=void 0;var l=o(n(2784)),u=n(12830),d=n(15738),c=i(n(60556)),s=n(57092),f=n(83287),p=i(n(26457)),m=i(n(2072)),v=n(69588);t.FavoriteForm=function(e){var t,n,r=e.field,a=e.type,o=e.mutation,i=(0,l.useState)(""),h=i[0],g=i[1];return(0,l.useEffect)((function(){g(r.properties.label||(null==a?void 0:a.name)),o.reset()}),[r.uid]),l.default.createElement(v.FavoriteFormWrapper,null,l.default.createElement(d.ControlWrapper,null,l.default.createElement(c.default,{property:{label:(0,m.default)("Create a favorite"),handle:null===(t=r.properties)||void 0===t?void 0:t.handle,flags:[],placeholder:null===(n=r.properties)||void 0===n?void 0:n.label,type:f.PropertyType.String},value:h,updateValue:function(e){return g(e)}})),l.default.createElement(v.ButtonContainer,null,l.default.createElement("button",{onClick:function(){o.mutate({label:h,field:r,type:a})},disabled:o.isLoading,className:(0,p.default)("btn fullwidth",!o.isSuccess&&"submit",o.isLoading&&"disabled")},l.default.createElement(s.LoadingText,{spinner:!0,loading:o.isLoading,loadingText:"Saving..."},(0,m.default)(o.isSuccess?"Saved!":"Favorite")))),o.isError&&l.default.createElement(u.ApiErrorsBlock,{category:"favorites",handle:"name",error:o.error}))}},91123:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFavoritesDeleteMutation=t.useFavoritesUpdateMutation=t.useFavoritesMutation=void 0;var a=n(87087),o=n(79634),i=n(79634),l=r(n(60014)),u=function(e){var t=e.label,n=e.field,r=e.type,a={label:t,properties:n.properties,typeClass:r.typeClass};return l.default.post("/api/fields/favorites",a)};t.useFavoritesMutation=function(){var e=(0,o.useQueryClient)();return(0,i.useMutation)(u,{onSuccess:function(){e.invalidateQueries({queryKey:a.QKFavorites.all})}})};t.useFavoritesUpdateMutation=function(e){void 0===e&&(e={});var t=(0,o.useQueryClient)(),n=null==e?void 0:e.onSuccess;return e.onSuccess=function(e,r,o){n&&n(e,r,o),t.invalidateQueries(a.QKFavorites.all)},(0,i.useMutation)((function(e){return l.default.post("/api/fields/favorites/update",e)}),e)};t.useFavoritesDeleteMutation=function(e){void 0===e&&(e={});var t=(0,o.useQueryClient)(),n=null==e?void 0:e.onSuccess;return e.onSuccess=function(e,r,o){n&&n(e,r,o);var i=r;t.setQueryData(a.QKFavorites.all,(function(e){return e.filter((function(e){return e.id!==i}))}))},(0,i.useMutation)((function(e){return l.default.delete("/api/fields/favorites/".concat(e))}),e)}},27312:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteButtonWrapper=t.Button=t.InfoBlock=t.IconBox=t.PopUpWrapper=void 0;var o,i,l,u,d,c=n(79066),s=n(51362),f=a(n(40265));t.PopUpWrapper=(0,f.default)(c.animated.div)(o||(o=r(["\n position: absolute;\n top: 24px;\n right: -16px;\n\n transform-origin: 90% -20%;\n"],["\n position: absolute;\n top: 24px;\n right: -16px;\n\n transform-origin: 90% -20%;\n"]))),t.IconBox=f.default.div(i||(i=r(["\n position: absolute;\n top: -30px;\n right: 10px;\n z-index: 2;\n\n display: flex;\n justify-content: center;\n align-content: center;\n\n width: 32px;\n height: 32px;\n\n padding: 5px;\n\n background: ",";\n\n border-style: solid;\n border-width: 1px;\n border-color: ",";\n border-bottom-color: transparent;\n border-radius: "," "," 0 0;\n\n transform-origin: center bottom;\n"],["\n position: absolute;\n top: -30px;\n right: 10px;\n z-index: 2;\n\n display: flex;\n justify-content: center;\n align-content: center;\n\n width: 32px;\n height: 32px;\n\n padding: 5px;\n\n background: ",";\n\n border-style: solid;\n border-width: 1px;\n border-color: ",";\n border-bottom-color: transparent;\n border-radius: "," "," 0 0;\n\n transform-origin: center bottom;\n"])),s.colors.gray050,s.colors.barelyVisible,s.borderRadius.md,s.borderRadius.md),t.InfoBlock=f.default.div(l||(l=r(["\n position: relative;\n z-index: 1;\n\n width: 240px;\n padding: ",";\n\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n box-shadow: 4px 12px 8px rgb(205 216 228 / 80%);\n"],["\n position: relative;\n z-index: 1;\n\n width: 240px;\n padding: ",";\n\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n box-shadow: 4px 12px 8px rgb(205 216 228 / 80%);\n"])),s.spacings.lg,s.colors.gray050,s.colors.barelyVisible,s.borderRadius.md),t.Button=(0,f.default)(c.animated.button)(u||(u=r(["\n position: relative;\n z-index: 5;\n\n width: 20px;\n height: 20px;\n\n svg {\n fill: ",";\n }\n"],["\n position: relative;\n z-index: 5;\n\n width: 20px;\n height: 20px;\n\n svg {\n fill: ",";\n }\n"])),s.colors.barelyVisible),t.FavoriteButtonWrapper=f.default.div(d||(d=r(["\n position: absolute;\n top: 17px;\n right: 40px;\n z-index: 3;\n\n background: none;\n border: none;\n\n display: flex;\n justify-content: center;\n align-content: center;\n\n &:not(.active) {\n "," {\n pointer-events: none;\n }\n }\n"],["\n position: absolute;\n top: 17px;\n right: 40px;\n z-index: 3;\n\n background: none;\n border: none;\n\n display: flex;\n justify-content: center;\n align-content: center;\n\n &:not(.active) {\n "," {\n pointer-events: none;\n }\n }\n"])),t.PopUpWrapper)},60440:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n span {\n display: block;\n }\n"],["\n position: relative;\n\n display: flex;\n justify-content: flex-start;\n align-items: end;\n gap: ",";\n\n margin: 0;\n padding: ",";\n\n font-size: 16px;\n box-shadow: ",";\n\n > span {\n display: block;\n }\n"])),s.spacings.sm,s.spacings.lg,s.shadows.bottom),t.Icon=f.default.div(d||(d=r(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 20px;\n height: 20px;\n\n svg {\n max-width: 20px;\n max-height: 20px;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 20px;\n height: 20px;\n\n svg {\n max-width: 20px;\n max-height: 20px;\n }\n"])))},84054:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyEditor=void 0;var a=r(n(2784)),o=n(86993),i=n(79066),l=n(90163),u=n(79857),d=n(36450),c=n(8697),s=n(72671),f=n(31070),p=n(9726),m=n(77309),v=n(94362),h=n(85227);t.PropertyEditor=function(){var e=(0,d.useAppDispatch)(),t=(0,o.useSelector)(s.contextSelectors.focus),n=t.active,r=t.type;(0,f.useEscapeStack)((function(){return e(c.contextActions.unfocus())}),n);var g=(0,p.useClickOutside)({callback:function(){e(c.contextActions.unfocus())},isEnabled:n,excludeClassNames:["field-layout","page-buttons","page-tab","save-button","main-tabs","editable-content","dropdown-rollout","breadcrumbs","tagify__dropdown"]}),b=(0,i.useTransition)(n?[t]:null,{from:{transform:"translate3d(100%, 0, 0)",opacity:1},enter:{transform:"translate3d(0%, 0, 0)",opacity:1,zIndex:2},leave:{transform:"translate3d(-100%, 0, 0)"},config:{tension:500,friction:50}});return a.default.createElement(u.RenderContextProvider,{size:"small"},a.default.createElement(h.PropertyEditorWrapper,{$active:n,ref:g},a.default.createElement(l.ErrorBoundary,{message:'Could not load property editor for "'.concat(r,'" type')},b((function(e,t){return a.default.createElement(h.AnimatedBlock,{style:e},!!t&&"field"===t.type&&a.default.createElement(m.FieldProperties,{uid:t.uid}),!!t&&"page"===t.type&&a.default.createElement(v.PageProperties,{uid:t.uid}))})))))}},71485:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SectionBlockWrapper=t.SectionBlockContainer=t.SectionBlockIcon=t.SectionWrapper=void 0;var o,i,l,u,d=n(80159),c=n(51362),s=a(n(40265)),f=n(85227);t.SectionWrapper=s.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n\n padding: 0 "," ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n ",";\n"],["\n display: flex;\n flex-direction: column;\n\n padding: 0 "," ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n ",";\n"])),c.spacings.lg,c.spacings.lg,d.scrollBar),t.SectionBlockIcon=(0,s.default)(f.Icon)(i||(i=r(["\n position: absolute;\n left: 2px;\n top: 12px;\n z-index: 1;\n\n width: 14px;\n height: 14px;\n\n fill: rgb(154 165 177 / 75%);\n"],["\n position: absolute;\n left: 2px;\n top: 12px;\n z-index: 1;\n\n width: 14px;\n height: 14px;\n\n fill: rgb(154 165 177 / 75%);\n"]))),t.SectionBlockContainer=s.default.section(l||(l=r(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n margin-top: ",";\n padding-top: ",";\n padding-bottom: ",";\n\n &:empty {\n display: none;\n\n & + "," {\n display: none;\n }\n }\n\n &:before {\n content: '';\n\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n\n display: block;\n height: 1px;\n\n margin: 0 -18px;\n\n box-shadow: ",";\n }\n\n &:after {\n content: attr(data-label);\n\n position: absolute;\n left: -5px;\n top: -7px;\n\n display: block;\n padding: 0 5px 0 26px;\n\n background-color: ",";\n\n ",";\n font-size: 11px;\n }\n"],["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n margin-top: ",";\n padding-top: ",";\n padding-bottom: ",";\n\n &:empty {\n display: none;\n\n & + "," {\n display: none;\n }\n }\n\n &:before {\n content: '';\n\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n\n display: block;\n height: 1px;\n\n margin: 0 -18px;\n\n box-shadow: ",";\n }\n\n &:after {\n content: attr(data-label);\n\n position: absolute;\n left: -5px;\n top: -7px;\n\n display: block;\n padding: 0 5px 0 26px;\n\n background-color: ",";\n\n ",";\n font-size: 11px;\n }\n"])),c.spacings.md,c.spacings.lg,c.spacings.lg,c.spacings.lg,t.SectionBlockIcon,c.shadows.bottom,c.colors.gray050,d.labelText),t.SectionBlockWrapper=s.default.div(u||(u=r(["\n position: relative;\n\n &:first-child {\n "," {\n margin-top: 0;\n\n &:before,\n &:after {\n display: none;\n }\n }\n\n "," {\n display: none;\n }\n }\n"],["\n position: relative;\n\n &:first-child {\n "," {\n margin-top: 0;\n\n &:before,\n &:after {\n display: none;\n }\n }\n\n "," {\n display: none;\n }\n }\n"])),t.SectionBlockContainer,t.SectionBlockIcon)},77274:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SectionBlock=void 0;var a=r(n(2784)),o=n(71485);t.SectionBlock=function(e){var t=e.label,n=e.icon,r=e.children;return a.default.createElement(o.SectionBlockWrapper,null,a.default.createElement(o.SectionBlockContainer,{"data-label":t},r),function(e){return e?"string"==typeof e?a.default.createElement(o.SectionBlockIcon,{dangerouslySetInnerHTML:{__html:e}}):a.default.createElement(o.SectionBlockIcon,null,e):null}(n))}},39977:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationsWrapper=void 0;var o,i=a(n(40265));t.NotificationsWrapper=i.default.div(o||(o=r(["\n display: flex;\n height: 100%;\n"],["\n display: flex;\n height: 100%;\n"])))},84085:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Notifications=void 0;var a=r(n(2784)),o=n(76034),i=n(11455),l=r(n(2072)),u=n(78177),d=n(39977);t.Notifications=function(){var e=(0,o.useResolvedPath)("");return a.default.createElement(d.NotificationsWrapper,null,a.default.createElement(i.Breadcrumb,{id:"notifications",label:(0,l.default)("Notifications"),url:e.pathname}),a.default.createElement(u.List,null),a.default.createElement(o.Outlet,null))}},33255:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldComponent=void 0;var a=r(n(2784)),o=n(94774),i=n(36450),l=n(12163);t.FieldComponent=function(e){var t,n=e.notification,r=e.property,u=(0,i.useAppDispatch)(),d=n.uid,c=r.handle,s=null==n?void 0:n[r.handle];return a.default.createElement(o.FormComponent,{value:s,property:r,updateValue:function(e){u(l.notificationActions.modify({uid:d,key:c,value:e}))},errors:null===(t=n.errors)||void 0===t?void 0:t[r.handle],context:n})}},80407:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyEditor=t.Inline=void 0;var o=a(n(2784)),i=n(19002),l=n(51362),u=a(n(2072)),d=a(n(40265)),c=a(n(90622)),s=n(91326);t.Inline=d.default.div(f||(f=r(["\n display: flex;\n gap: ",";\n"],["\n display: flex;\n gap: ",";\n"])),l.spacings.md);var f;t.EmptyEditor=function(){return o.default.createElement(s.PropertyEditorWrapper,null,o.default.createElement(i.EmptyBlock,{title:(0,u.default)("No notifications found"),subtitle:(0,u.default)("To add a notification, use the sidebar on the left"),icon:o.default.createElement(c.default,null)}))}},13919:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadingEditor=t.Inline=void 0;var o=a(n(2784)),i=a(n(76257)),l=n(91176),u=n(51362),d=a(n(40265)),c=n(91326);t.Inline=d.default.div(s||(s=r(["\n display: flex;\n gap: ",";\n"],["\n display: flex;\n gap: ",";\n"])),u.spacings.md);var s;t.LoadingEditor=function(){return o.default.createElement(c.PropertyEditorWrapper,null,o.default.createElement(l.ThemedSkeleton,null,o.default.createElement(i.default,{width:120,height:20}),o.default.createElement("br",null),o.default.createElement(i.default,{width:100,height:10}),o.default.createElement(i.default,{width:50,height:20}),o.default.createElement("br",null),o.default.createElement(i.default,{width:200,height:10}),o.default.createElement(i.default,{width:500,height:10}),o.default.createElement(i.default,{height:30}),o.default.createElement("br",null),o.default.createElement(i.default,{width:150,height:10}),o.default.createElement(i.default,{width:300,height:10}),o.default.createElement(i.default,{height:30})))}},91326:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsWrapper=t.PropertyEditorWrapper=void 0;var o,i,l=n(80159),u=n(51362),d=a(n(40265));t.PropertyEditorWrapper=d.default.div(o||(o=r(["\n position: relative;\n flex: 1;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n background: ",";\n padding: ",";\n\n overflow-y: auto;\n\n ",";\n"],["\n position: relative;\n flex: 1;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n background: ",";\n padding: ",";\n\n overflow-y: auto;\n\n ",";\n"])),u.spacings.xl,u.colors.white,u.spacings.xl,l.scrollBar),t.SettingsWrapper=d.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),u.spacings.md)},42820:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyEditor=void 0;var a=r(n(2784)),o=n(86993),i=n(76034),l=n(11455),u=n(90022),d=n(74740),c=n(69397),s=n(33255),f=n(80407),p=n(13919),m=n(91326);t.PropertyEditor=function(){var e,t=(0,i.useParams)(),n=t.formId,r=t.uid,v=(0,i.useResolvedPath)(""),h=(0,d.useQueryNotificationTypes)().data,g=(0,d.useQueryFormNotifications)(n?Number(n):void 0),b=g.data,y=g.isFetching,_=(0,o.useSelector)(u.notificationSelectors.one(r));if(!b&&y)return a.default.createElement(p.LoadingEditor,null);if(!_)return a.default.createElement(f.EmptyEditor,null);var x=(null===(e=null==h?void 0:h.find((function(e){return e.className===_.className})))||void 0===e?void 0:e.properties)||[];return a.default.createElement(m.PropertyEditorWrapper,null,a.default.createElement(l.Breadcrumb,{id:"notification",label:_.name,url:v.pathname}),a.default.createElement(c.Remove,{notification:_}),a.default.createElement(m.SettingsWrapper,null,x.map((function(e){return a.default.createElement(s.FieldComponent,{key:e.handle,notification:_,property:e})}))))}},79811:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useRemoveAnimation=void 0;var r=n(79066),a=n(51362);t.useRemoveAnimation=function(e){var t=e.hovering;return(0,r.useSpring)({opacity:1,background:t?a.colors.error:"transparent",color:t?"#fff":a.colors.gray300,scale:t?1.2:1,config:function(e){switch(e){case"background":case"color":return{tension:330,friction:20};default:return{tension:330,friction:15}}}})}},6325:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveButtonWrapper=void 0;var o,i=n(79066),l=a(n(40265));t.RemoveButtonWrapper=(0,l.default)(i.animated.button)(o||(o=r(["\n position: absolute;\n top: 15px;\n right: 20px;\n z-index: 2;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n border-radius: 50%;\n padding: 3px;\n\n svg {\n width: 20px;\n height: 20px;\n\n color: currentColor;\n }\n"],["\n position: absolute;\n top: 15px;\n right: 20px;\n z-index: 2;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n border-radius: 50%;\n padding: 3px;\n\n svg {\n width: 20px;\n height: 20px;\n\n color: currentColor;\n }\n"])))},69397:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Remove=void 0;var l=o(n(2784)),u=n(76034),d=n(36450),c=n(19007),s=i(n(11411)),f=n(79811),p=n(6325);t.Remove=function(e){var t=e.notification,n=(0,u.useNavigate)(),r=(0,d.useAppDispatch)(),a=(0,l.useState)(!1),o=a[0],i=a[1],m=(0,f.useRemoveAnimation)({hovering:o});return l.default.createElement(p.RemoveButtonWrapper,{style:m,onMouseEnter:function(){return i(!0)},onMouseLeave:function(){return i(!1)},onClick:function(e){e.stopPropagation(),r((0,c.removeNotification)(t)),n("..")}},l.default.createElement(s.default,null))}},19056:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Status=t.Name=t.Icon=t.Link=void 0;var o=n(76034),i=n(51362),l=a(n(40265));t.Link=(0,l.default)(o.NavLink)(u||(u=r(["\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border-radius: ",";\n\n color: ",";\n font-size: 12px;\n line-height: 12px;\n\n transition: background-color 0.2s ease-out;\n text-decoration: none;\n\n &.active {\n color: ",";\n background-color: ",";\n }\n\n &.active.inactive {\n .status-dot {\n border-color: ",";\n }\n }\n\n &:hover {\n text-decoration: none;\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n\n &.errors {\n color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border-radius: ",";\n\n color: ",";\n font-size: 12px;\n line-height: 12px;\n\n transition: background-color 0.2s ease-out;\n text-decoration: none;\n\n &.active {\n color: ",";\n background-color: ",";\n }\n\n &.active.inactive {\n .status-dot {\n border-color: ",";\n }\n }\n\n &:hover {\n text-decoration: none;\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n\n &.errors {\n color: ",";\n }\n"])),i.spacings.sm,i.spacings.sm,i.spacings.md,i.borderRadius.lg,i.colors.gray700,i.colors.white,i.colors.gray500,i.colors.white,i.colors.gray200,i.colors.error);var u,d,c,s;t.Icon=l.default.div(d||(d=r(["\n display: block;\n width: ","px;\n height: ","px;\n fill: ",";\n"],["\n display: block;\n width: ","px;\n height: ","px;\n fill: ",";\n"])),20,20,i.colors.gray550),t.Name=l.default.div(c||(c=r(["\n flex-grow: 1;\n max-width: 90%;\n overflow: hidden;\n\n &:empty:after {\n content: 'No Title';\n color: ",";\n font-style: italic;\n }\n"],["\n flex-grow: 1;\n max-width: 90%;\n overflow: hidden;\n\n &:empty:after {\n content: 'No Title';\n color: ",";\n font-style: italic;\n }\n"])),i.colors.gray400),t.Status=l.default.div(s||(s=r(["\n content: '';\n\n flex-shrink: 0;\n justify-self: flex-end;\n\n width: 10px;\n height: 10px;\n\n border: 1px solid\n ",";\n border-radius: 100%;\n\n background-color: ",";\n\n transition: all 0.3s ease-out;\n"],["\n content: '';\n\n flex-shrink: 0;\n justify-self: flex-end;\n\n width: 10px;\n height: 10px;\n\n border: 1px solid\n ",";\n border-radius: 100%;\n\n background-color: ",";\n\n transition: all 0.3s ease-out;\n"])),(function(e){return e.$enabled?"transparent":i.colors.gray550}),(function(e){return e.$enabled?i.colors.teal550:"transparent"}))},67584:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationItem=void 0;var a=r(n(2784)),o=n(86993),i=n(15230),l=n(90022),u=r(n(26457)),d=n(75482),c=n(19056);t.NotificationItem=function(e){var t=e.icon,n=e.notification.uid,r=(0,i.useLastTab)("notifications").setLastTab,s=(0,o.useSelector)(l.notificationSelectors.one(n)),f=s.name,p=s.enabled,m=s.errors;return a.default.createElement(c.Link,{onClick:function(){return r(n)},to:"".concat(n),className:(0,u.default)((0,d.hasErrors)(m)&&"errors",!p&&"inactive")},t&&a.default.createElement(c.Icon,{dangerouslySetInnerHTML:{__html:t}}),a.default.createElement(c.Name,null,f),a.default.createElement(c.Status,{$enabled:p,className:(0,u.default)("status-dot")}))}},53846:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CategorySkeleton=void 0;var a=r(n(2784)),o=r(n(76257)),i=n(91176),l=n(91560);t.CategorySkeleton=function(){return a.default.createElement(i.ThemedSkeleton,null,a.default.createElement(l.Wrapper,null,a.default.createElement(l.LabelWrapper,null,a.default.createElement(o.default,{width:50})),a.default.createElement(l.NotificationItemWrapper,{style:{padding:14}},[0,1,2].map((function(e){return a.default.createElement("div",{key:e,style:{display:"flex",gap:10,alignItems:"center"}},a.default.createElement(o.default,{width:20,height:20,circle:!0}),a.default.createElement("div",{style:{flexGrow:2}},a.default.createElement(o.default,{width:100,style:{top:2}})),a.default.createElement(o.default,{width:10,height:10,circle:!0,style:{top:6}}))})))))}},91560:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationItemWrapper=t.Button=t.Label=t.LabelWrapper=t.Wrapper=void 0;var o,i,l,u,d,c=n(51362),s=a(n(40265));t.Wrapper=s.default.div(o||(o=r([""],[""]))),t.LabelWrapper=s.default.div(i||(i=r(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 5px;\n line-height: 22px;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 5px;\n line-height: 22px;\n"]))),t.Label=s.default.span(l||(l=r(["\n padding-left: ",";\n font-weight: 700;\n font-size: 11px;\n color: ",";\n text-transform: uppercase;\n"],["\n padding-left: ",";\n font-weight: 700;\n font-size: 11px;\n color: ",";\n text-transform: uppercase;\n"])),c.spacings.md,c.colors.gray550),t.Button=s.default.button(u||(u=r(["\n align-self: end;\n\n &:hover {\n background-color: ",";\n }\n"],["\n align-self: end;\n\n &:hover {\n background-color: ",";\n }\n"])),c.colors.gray200),t.NotificationItemWrapper=s.default.div(d||(d=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," 0;\n\n &:empty {\n &:after {\n content: 'None configured';\n\n padding: 2px};\n margin-left: 12px;\n\n font-style: italic;\n font-size: 12px;\n\n color: ",";\n }\n }\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," 0;\n\n &:empty {\n &:after {\n content: 'None configured';\n\n padding: 2px};\n margin-left: 12px;\n\n font-style: italic;\n font-size: 12px;\n\n color: ",";\n }\n }\n"])),c.spacings.xs,c.spacings.xs,c.colors.gray300)},41200:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationTypeItem=void 0;var a=r(n(2784)),o=n(76034),i=n(36450),l=n(19007),u=r(n(26457)),d=r(n(2072)),c=n(60130),s=n(91560);t.NotificationTypeItem=function(e){var t=e.type,n=e.children,r=(0,o.useNavigate)(),f=(0,i.useAppDispatch)(),p=t.name;return a.default.createElement(s.Wrapper,null,a.default.createElement(s.LabelWrapper,null,a.default.createElement(s.Label,null,(0,d.default)(p)),a.default.createElement(s.Button,{className:(0,u.default)("btn","add","icon","small","dashed"),onClick:function(){var e=(0,c.v4)();f((0,l.addNewNotification)(t,e)),r(e)}},(0,d.default)("New"))),a.default.createElement(s.NotificationItemWrapper,null,n))}},17458:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollableList=void 0;var o,i=n(80159),l=n(51362),u=a(n(40265));t.ScrollableList=u.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n height: 100%;\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n height: 100%;\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n"])),l.spacings.sm,i.scrollBar)},78177:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.List=void 0;var l=o(n(2784)),u=n(86993),d=n(76034),c=n(32165),s=i(n(65884)),f=n(41200),p=n(53846),m=n(90022),v=n(74740),h=n(15230),g=n(67584),b=n(17458);t.List=function(){var e=s.default.limitations,t=(0,d.useParams)(),n=t.formId,r=t.uid,a=(0,d.useNavigate)(),o=(0,h.useLastTab)("notifications"),i=o.lastTab,y=o.setLastTab,_=(0,v.useQueryNotificationTypes)(),x=_.data,w=_.isFetching;(0,v.useQueryFormNotifications)(n?Number(n):void 0);var E=(0,u.useSelector)(m.notificationSelectors.all);return(0,l.useEffect)((function(){i&&a(i)}),[]),(0,l.useEffect)((function(){if(!r&&!i&&x&&E){var e=E.find(Boolean);e&&(y(e.uid),a(e.uid))}}),[r,x,E,i]),!x&&w?l.default.createElement(c.Sidebar,null,l.default.createElement(p.CategorySkeleton,null)):x||w?l.default.createElement(c.Sidebar,{$lean:!0},l.default.createElement(b.ScrollableList,null,x.filter((function(t){return e.can("notifications.tab.".concat(t.className))})).map((function(e){return l.default.createElement(f.NotificationTypeItem,{key:e.className,type:e},E&&(null==E?void 0:E.filter((function(t){return t.className===e.className})).map((function(t){return l.default.createElement(g.NotificationItem,{key:t.uid,icon:e.icon,notification:t})}))))})))):l.default.createElement(l.default.Fragment,null,"Empty")}},83837:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CombinatorSelect=void 0;var a=r(n(2784)),o=n(75094),i=r(n(2072));t.CombinatorSelect=function(e){var t=e.value,n=e.onChange;return a.default.createElement("div",{className:"select"},a.default.createElement("select",{value:t,onChange:function(e){return n&&n(e.target.value)}},a.default.createElement("option",{value:o.Combinator.Or},(0,i.default)("any")),a.default.createElement("option",{value:o.Combinator.And},(0,i.default)("all"))))}},86804:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DisplaySelect=void 0;var a=r(n(2784)),o=n(75094),i=r(n(2072));t.DisplaySelect=function(e){var t=e.value,n=e.onChange;return a.default.createElement("div",{className:"select"},a.default.createElement("select",{value:t,onChange:function(e){return n&&n(e.target.value)}},a.default.createElement("option",{value:o.Display.Show},(0,i.default)("show")),a.default.createElement("option",{value:o.Display.Hide},(0,i.default)("hide"))))}},18273:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DisplaySend=void 0;var a,o=r(n(2784)),i=r(n(2072));!function(e){e.Send="send",e.NotSend="not-send"}(a||(a={}));t.DisplaySend=function(e){var t=e.value,n=e.onChange;return o.default.createElement("div",{className:"select"},o.default.createElement("select",{value:t?a.Send:a.NotSend,onChange:function(e){return n&&n(e.target.value===a.Send)}},o.default.createElement("option",{value:a.Send},(0,i.default)("Send")),o.default.createElement("option",{value:a.NotSend},(0,i.default)("Don't send"))))}},36394:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Action=t.Table=void 0;var o,i,l=n(51362),u=a(n(40265));t.Table=u.default.table(o||(o=r(["\n width: 100%;\n\n margin: 0;\n border-spacing: 0;\n border-collapse: separate;\n\n td {\n &:nth-child(1) {\n width: 25%;\n }\n\n &:nth-child(2) {\n width: 20%;\n }\n\n &:last-child {\n width: 20px;\n }\n }\n\n tbody {\n tr {\n td {\n padding: 0 !important;\n padding-top: 7px !important;\n padding-right: 7px !important;\n padding-bottom: 7px !important;\n border-bottom: 1px solid ",";\n background-color: ",";\n }\n\n td:first-child {\n padding-left: 7px !important;\n border-left: 1px solid ",";\n }\n\n td:last-child {\n border-right: 1px solid ",";\n }\n }\n\n tr:first-child {\n td {\n border-top: 1px solid ",";\n }\n\n td:first-child {\n border-top-left-radius: ",";\n border-top: 1px solid ",";\n }\n\n td:last-child {\n border-top: 1px solid ",";\n border-top-right-radius: ",";\n }\n }\n\n tr:last-child {\n td {\n padding: 0 !important;\n background-color: ",";\n\n .btn {\n border: 0 !important;\n border-radius: 0 !important;\n background-color: transparent !important;\n }\n }\n\n td:last-child {\n border-left: 1px dashed ",";\n border-right: 1px dashed ",";\n border-bottom: 1px dashed ",";\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n }\n }\n\n tr:first-child:last-child {\n td {\n border-top: 1px dashed ",";\n }\n }\n }\n"],["\n width: 100%;\n\n margin: 0;\n border-spacing: 0;\n border-collapse: separate;\n\n td {\n &:nth-child(1) {\n width: 25%;\n }\n\n &:nth-child(2) {\n width: 20%;\n }\n\n &:last-child {\n width: 20px;\n }\n }\n\n tbody {\n tr {\n td {\n padding: 0 !important;\n padding-top: 7px !important;\n padding-right: 7px !important;\n padding-bottom: 7px !important;\n border-bottom: 1px solid ",";\n background-color: ",";\n }\n\n td:first-child {\n padding-left: 7px !important;\n border-left: 1px solid ",";\n }\n\n td:last-child {\n border-right: 1px solid ",";\n }\n }\n\n tr:first-child {\n td {\n border-top: 1px solid ",";\n }\n\n td:first-child {\n border-top-left-radius: ",";\n border-top: 1px solid ",";\n }\n\n td:last-child {\n border-top: 1px solid ",";\n border-top-right-radius: ",";\n }\n }\n\n tr:last-child {\n td {\n padding: 0 !important;\n background-color: ",";\n\n .btn {\n border: 0 !important;\n border-radius: 0 !important;\n background-color: transparent !important;\n }\n }\n\n td:last-child {\n border-left: 1px dashed ",";\n border-right: 1px dashed ",";\n border-bottom: 1px dashed ",";\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n }\n }\n\n tr:first-child:last-child {\n td {\n border-top: 1px dashed ",";\n }\n }\n }\n"])),l.colors.inputBorder,l.colors.gray050,l.colors.inputBorder,l.colors.inputBorder,l.colors.inputBorder,l.borderRadius.lg,l.colors.inputBorder,l.colors.inputBorder,l.borderRadius.lg,l.colors.white,l.colors.inputBorder,l.colors.inputBorder,l.colors.inputBorder,l.borderRadius.lg,l.borderRadius.lg,l.colors.inputBorder),t.Action=u.default.button(i||(i=r(["\n margin: 0;\n padding: 0;\n border: none;\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n width: 16px;\n height: 16px;\n stroke-width: 3px;\n fill: #e5e7eb;\n }\n"],["\n margin: 0;\n padding: 0;\n border: none;\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n width: 16px;\n height: 16px;\n stroke-width: 3px;\n fill: #e5e7eb;\n }\n"])))},12804:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n "," "," {\n display: none;\n }\n\n "," {\n color: ",";\n }\n }\n\n &:hover {\n background-color: ",";\n border-color: ",";\n }\n\n &.active {\n background-color: #5b6573;\n border-color: #5b6573;\n color: white;\n }\n\n &.is-in-condition {\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n z-index: 2;\n\n width: 0;\n border-left: 10px solid transparent;\n border-bottom: 10px solid transparent;\n border-left: 10px solid ",";\n }\n\n &-active:after {\n border-left-color: ",";\n }\n }\n\n &.read-only {\n &,\n * {\n cursor: default;\n }\n\n &:hover {\n background-color: ",";\n border-color: ",";\n }\n }\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: ",";\n\n flex: 1;\n\n overflow: hidden;\n padding: 5px 7px;\n\n width: 100%;\n height: 100%;\n\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n transition: all 0.2s ease-out;\n\n &,\n * {\n cursor: pointer;\n }\n\n &.has-rule:not(.active) {\n border-color: ",";\n background-color: ",";\n }\n\n &.group {\n background-color: ",";\n border-color: ",";\n\n > "," "," {\n display: none;\n }\n\n "," {\n color: ",";\n }\n }\n\n &:hover {\n background-color: ",";\n border-color: ",";\n }\n\n &.active {\n background-color: #5b6573;\n border-color: #5b6573;\n color: white;\n }\n\n &.is-in-condition {\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n z-index: 2;\n\n width: 0;\n border-left: 10px solid transparent;\n border-bottom: 10px solid transparent;\n border-left: 10px solid ",";\n }\n\n &-active:after {\n border-left-color: ",";\n }\n }\n\n &.read-only {\n &,\n * {\n cursor: default;\n }\n\n &:hover {\n background-color: ",";\n border-color: ",";\n }\n }\n"])),s.spacings.sm,s.colors.gray100,s.colors.gray100,s.borderRadius.md,s.colors.teal550,s.colors.teal050,s.colors.white,s.colors.gray100,t.FieldInfo,t.Icon,t.GroupWrapper,s.colors.gray800,s.colors.gray200,s.colors.gray200,s.colors.gray200,s.colors.teal550,s.colors.gray100,s.colors.gray100)},95800:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Field=void 0;var a=r(n(2784)),o=n(86993),i=n(76034),l=r(n(65884)),u=n(15230),d=n(58798),c=n(18884),s=n(40790),f=n(35722),p=n(15443),m=n(75094),v=r(n(26457)),h=n(72757),g=n(7178);t.Field=function(e){var t=e.field,n=l.default.limitations.can("rules.tab.fields"),r=(0,i.useParams)(),b=r.uid,y=r.button,_=(0,i.useNavigate)(),x=(0,i.useLocation)(),w=(0,u.useLastTab)("rules").setLastTab,E=(0,p.useFieldType)(null==t?void 0:t.typeClass),O=b===t.uid,P=(0,o.useSelector)(c.fieldRuleSelectors.one(b)),j=(0,o.useSelector)(s.pageRuleSelectors.one(b)),k=(0,o.useSelector)(f.submitFormRuleSelectors.one),M=(0,o.useSelector)(d.buttonRuleSelectors.one(b,y)),C=(0,o.useSelector)(c.fieldRuleSelectors.hasRule(t.uid)),S=x.pathname.endsWith("/rules/submit"),F=(0,o.useSelector)(c.fieldRuleSelectors.isInCondition(t.uid)),T=(null==P?void 0:P.conditions.find((function(e){return e.field===t.uid})))||(null==j?void 0:j.conditions.find((function(e){return e.field===t.uid})))||S&&(null==k?void 0:k.conditions.find((function(e){return e.field===t.uid})))||y&&(null==M?void 0:M.conditions.find((function(e){return e.field===t.uid})));return void 0===(null==t?void 0:t.properties)?null:a.default.createElement(g.FieldWrapper,{onClick:function(e){if(e.stopPropagation(),n){var r=b===t.uid?"":"field/".concat(t.uid);w(r),_(r)}},className:(0,v.default)("group"===(null==E?void 0:E.type)&&"group",O&&"active",C&&"has-rule",F&&"is-in-condition",T&&"is-in-condition-active",!n&&"read-only",m.operatorTypes.negative.includes(null==T?void 0:T.operator)&&"not-equals")},a.default.createElement(g.FieldInfo,null,a.default.createElement(g.Icon,{dangerouslySetInnerHTML:{__html:null==E?void 0:E.icon}}),a.default.createElement(g.Label,null,t.properties.label||(null==E?void 0:E.name))),"group"===(null==E?void 0:E.type)&&a.default.createElement(g.GroupWrapper,null,a.default.createElement(h.Layout,{layoutUid:t.properties.layout})))}},49862:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldLayoutWrapper=void 0;var o,i=n(51362),l=a(n(40265));t.FieldLayoutWrapper=l.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),i.spacings.xs)},72757:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Layout=void 0;var a=r(n(2784)),o=n(36450),i=n(44271),l=n(41294),u=n(74899),d=n(49862);t.Layout=function(e){var t=e.layoutUid,n=(0,o.useAppSelector)((function(e){return i.layoutSelectors.one(e,t)})),r=(0,o.useAppSelector)((function(e){return l.rowSelectors.inLayout(e,null==n?void 0:n.uid)}));return n&&r.length?a.default.createElement(d.FieldLayoutWrapper,null,r.map((function(e){return a.default.createElement(u.Row,{row:e,key:e.uid})}))):null}},88889:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderMiniMap=void 0;var a=r(n(2784)),o=r(n(76257)),i=n(86993),l=n(91176),u=n(44271),d=n(24496);t.LoaderMiniMap=function(){var e=(0,i.useSelector)(u.layoutSelectors.cartographed.fullLayoutList);return a.default.createElement(l.ThemedSkeleton,null,e.map((function(e,t){return a.default.createElement("div",{key:t},a.default.createElement("div",{style:{marginBottom:14}},a.default.createElement(o.default,{width:"100%",height:30})),e.map((function(e,t){return a.default.createElement(d.LoadingRow,{key:t,style:{display:"flex"}},e.map((function(e,t){return a.default.createElement(o.default,{key:t,width:"100%",height:28})})))})))})))}},24496:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadingRow=t.MiniMapWrapper=void 0;var o,i,l=n(51362),u=a(n(40265)),d=n(79681);t.MiniMapWrapper=u.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),l.spacings.xl),t.LoadingRow=(0,u.default)(d.RowWrapper)(i||(i=r(["\n > span {\n width: 100%;\n }\n"],["\n > span {\n width: 100%;\n }\n"])))},19438:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MiniMap=void 0;var i=o(n(2784)),l=n(86993),u=n(76034),d=n(32165),c=n(60719),s=n(34837),f=n(15230),p=n(58328),m=n(63221),v=n(88889),h=n(24496);t.MiniMap=function(){var e=(0,u.useParams)().formId,t=(0,s.useQueryFormRules)(Number(e||0)).isFetching,n=(0,l.useSelector)(c.pageSelecors.all),r=(0,f.useLastTab)("rules").lastTab,a=(0,u.useNavigate)();return(0,i.useEffect)((function(){void 0!==r&&a(r)}),[]),i.default.createElement(d.Sidebar,null,i.default.createElement(h.MiniMapWrapper,null,t&&i.default.createElement(v.LoaderMiniMap,null),!t&&n.map((function(e){return i.default.createElement(p.Page,{key:e.uid,page:e})})),i.default.createElement(m.SubmitForm,null)))}},16123:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonGroup=t.ButtonsWrapper=void 0;var o,i,l,u=n(51362),d=a(n(40265));t.ButtonsWrapper=d.default.div(o||(o=r(["\n display: flex;\n justify-content: space-between;\n\n margin-top: ",";\n"],["\n display: flex;\n justify-content: space-between;\n\n margin-top: ",";\n"])),u.spacings.md),t.ButtonGroup=d.default.div(i||(i=r(["\n display: flex;\n gap: ",";\n"],["\n display: flex;\n gap: ",";\n"])),u.spacings.xs),t.Button=d.default.button(l||(l=r(["\n flex: 1 1;\n\n height: 22px;\n max-width: 60px;\n padding: 0 ",";\n\n border: 2px solid transparent;\n border-radius: ",";\n background-color: rgba(96, 125, 159, 0.25);\n\n font-size: 12px;\n line-height: 12px;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n transition: background-color 0.2s ease-out;\n\n &.active {\n background-color: ",";\n color: white;\n }\n\n &:hover:not(.active) {\n background-color: rgba(96, 125, 159, 0.3);\n }\n\n &.submit {\n background-color: ",";\n color: ",";\n\n &.active {\n background-color: ",";\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n }\n\n &.has-rule {\n border-color: ",";\n }\n"],["\n flex: 1 1;\n\n height: 22px;\n max-width: 60px;\n padding: 0 ",";\n\n border: 2px solid transparent;\n border-radius: ",";\n background-color: rgba(96, 125, 159, 0.25);\n\n font-size: 12px;\n line-height: 12px;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n transition: background-color 0.2s ease-out;\n\n &.active {\n background-color: ",";\n color: white;\n }\n\n &:hover:not(.active) {\n background-color: rgba(96, 125, 159, 0.3);\n }\n\n &.submit {\n background-color: ",";\n color: ",";\n\n &.active {\n background-color: ",";\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n }\n\n &.has-rule {\n border-color: ",";\n }\n"])),u.spacings.sm,u.borderRadius.lg,u.colors.gray600,u.colors.gray600,u.colors.white,u.colors.gray900,u.colors.gray900,u.colors.teal550)},26869:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Buttons=void 0;var a=r(n(2784)),o=n(86993),i=n(76034),l=r(n(65884)),u=n(27985),d=n(15230),c=n(58798),s=r(n(26457)),f=r(n(2072)),p=n(16123),m=function(e){var t=e.page,n=e.button,r=n.handle,u=n.label,m=l.default.limitations.can("rules.tab.buttons"),v=(0,i.useParams)(),h=v.uid,g=v.button,b=(0,i.useNavigate)(),y=(0,d.useLastTab)("rules").setLastTab,_=h===t.uid&&r===g,x=(0,o.useSelector)(c.buttonRuleSelectors.hasRule(t.uid,r));return m?a.default.createElement(p.Button,{type:"button",className:(0,s.default)(r,_&&"active",x&&"has-rule"),onClick:function(){var e=_?"":"page/".concat(t.uid,"/buttons/").concat(r);y(e),b(e)}},(0,f.default)(u)):null};t.Buttons=function(e){var t=e.page,n=(0,u.getButtonGroups)(t);return a.default.createElement(p.ButtonsWrapper,null,n.map((function(e,n){return a.default.createElement(p.ButtonGroup,{key:n,className:"page-buttons"},e.map((function(e,n){return a.default.createElement(m,{key:n,button:e,page:t})})))})))}},58328:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var a=r(n(2784)),o=n(86993),i=n(76034),l=r(n(65884)),u=n(15230),d=n(40790),c=r(n(26457)),s=n(72757),f=n(26869),p=r(n(94399)),m=n(93713);t.Page=function(e){var t=e.page,n=l.default.limitations.can("rules.tab.pages"),r=(0,i.useParams)(),v=r.uid,h=r.button,g=(0,i.useNavigate)(),b=(0,u.useLastTab)("rules").setLastTab,y=(0,o.useSelector)(d.pageRuleSelectors.hasRule(t.uid)),_=t.label,x=t.uid,w=v===x&&!h;return a.default.createElement(m.PageWrapper,null,a.default.createElement(m.PageButton,{onClick:function(){if(n){var e=w?"":"page/".concat(x);b(e),g(e)}},className:(0,c.default)(w&&"active",y&&"has-rule",!n&&"read-only")},a.default.createElement(m.PageIcon,null,a.default.createElement(p.default,null)),a.default.createElement(m.PageLabel,null,_)),a.default.createElement(m.PageBody,{className:(0,c.default)(w&&"active",y&&"has-rule")},a.default.createElement(s.Layout,{layoutUid:t.layoutUid}),a.default.createElement(f.Buttons,{page:t})))}},93713:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PageLabel=t.PageIcon=t.PageBody=t.PageButton=t.PageWrapper=void 0;var o,i,l,u,d,c=n(51362),s=a(n(40265)),f=n(16123);t.PageWrapper=s.default.div(o||(o=r(["\n display: flex;\n flex: 1;\n flex-direction: column;\n"],["\n display: flex;\n flex: 1;\n flex-direction: column;\n"]))),t.PageButton=s.default.button(i||(i=r(["\n position: relative;\n bottom: -1px;\n\n display: inline-flex;\n justify-content: start;\n align-items: center;\n flex-wrap: nowrap;\n gap: ",";\n\n max-width: 150px;\n padding: "," ",";\n\n background-color: ",";\n\n border: 1px solid #cdd8e4;\n border-bottom: none;\n border-radius: "," "," 0 0;\n\n text-align: left;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n\n &.active {\n border-right-color: ",";\n }\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n color: ",";\n }\n\n &,\n &:active,\n &:focus {\n outline: none;\n }\n\n &.read-only {\n cursor: default !important;\n }\n\n svg {\n width: 18px;\n height: 18px;\n fill: currentColor;\n }\n"],["\n position: relative;\n bottom: -1px;\n\n display: inline-flex;\n justify-content: start;\n align-items: center;\n flex-wrap: nowrap;\n gap: ",";\n\n max-width: 150px;\n padding: "," ",";\n\n background-color: ",";\n\n border: 1px solid #cdd8e4;\n border-bottom: none;\n border-radius: "," "," 0 0;\n\n text-align: left;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n\n &.active {\n border-right-color: ",";\n }\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n color: ",";\n }\n\n &,\n &:active,\n &:focus {\n outline: none;\n }\n\n &.read-only {\n cursor: default !important;\n }\n\n svg {\n width: 18px;\n height: 18px;\n fill: currentColor;\n }\n"])),c.spacings.sm,c.spacings.xs,c.spacings.sm,c.colors.white,c.borderRadius.md,c.borderRadius.md,c.colors.teal550,c.colors.teal050,c.colors.teal700,c.colors.gray500,c.colors.gray700,c.colors.white),t.PageBody=s.default.div(l||(l=r(["\n padding: ",";\n border: 1px solid #cdd8e4;\n background-color: ",";\n\n border-radius: 0 "," "," ",";\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n\n "," {\n background-color: ",";\n\n &.submit {\n background-color: ",";\n }\n }\n }\n"],["\n padding: ",";\n border: 1px solid #cdd8e4;\n background-color: ",";\n\n border-radius: 0 "," "," ",";\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n\n "," {\n background-color: ",";\n\n &.submit {\n background-color: ",";\n }\n }\n }\n"])),c.spacings.sm,c.colors.white,c.borderRadius.md,c.borderRadius.md,c.borderRadius.md,c.colors.teal550,c.colors.teal050,c.colors.gray500,c.colors.gray700,f.Button,c.colors.gray100,c.colors.red600),t.PageIcon=s.default.div(u||(u=r([""],[""]))),t.PageLabel=s.default.label(d||(d=r(["\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])))},79681:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RowWrapper=void 0;var o,i=n(51362),l=a(n(40265));t.RowWrapper=l.default.div(o||(o=r(["\n display: flex;\n flex-direction: row;\n justify-content: stretch;\n align-items: stretch;\n gap: ",";\n"],["\n display: flex;\n flex-direction: row;\n justify-content: stretch;\n align-items: stretch;\n gap: ",";\n"])),i.spacings.xs)},74899:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Row=void 0;var a=r(n(2784)),o=n(86993),i=n(4165),l=n(95800),u=n(79681);t.Row=function(e){var t=e.row,n=(0,o.useSelector)(i.fieldSelectors.inRow(t));return a.default.createElement(u.RowWrapper,null,n.map((function(e){return a.default.createElement(l.Field,{key:e.uid,field:e})})))}},26756:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Label=t.SubmitFormWrapper=void 0;var o,i,l=n(51362),u=a(n(40265));t.SubmitFormWrapper=u.default.div(o||(o=r(["\n cursor: pointer;\n\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border: 1px solid #cdd8e4;\n background-color: ",";\n\n border-radius: ",";\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n\n color: white;\n fill: currentColor;\n }\n\n svg {\n width: 16px;\n height: 16px;\n }\n"],["\n cursor: pointer;\n\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border: 1px solid #cdd8e4;\n background-color: ",";\n\n border-radius: ",";\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n\n color: white;\n fill: currentColor;\n }\n\n svg {\n width: 16px;\n height: 16px;\n }\n"])),l.spacings.xs,l.spacings.xs,l.spacings.sm,l.colors.white,l.borderRadius.md,l.colors.teal550,l.colors.teal050,l.colors.gray500,l.colors.gray700),t.Label=u.default.label(i||(i=r(["\n cursor: pointer;\n\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n cursor: pointer;\n\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])))},63221:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SubmitForm=void 0;var a=r(n(2784)),o=n(86993),i=n(76034),l=r(n(65884)),u=n(15230),d=n(35722),c=r(n(26457)),s=r(n(2072)),f=r(n(9569)),p=n(26756);t.SubmitForm=function(){var e=l.default.limitations.can("rules.tab.submit"),t=(0,i.useNavigate)(),n=(0,i.useLocation)(),r=(0,u.useLastTab)("rules").setLastTab,m=(0,o.useSelector)(d.submitFormRuleSelectors.hasRule),v=n.pathname.endsWith("/rules/submit");return e?a.default.createElement(p.SubmitFormWrapper,{onClick:function(){r("submit"),t("submit")},className:(0,c.default)(v&&"active",m&&"has-rule")},a.default.createElement("div",null,a.default.createElement(f.default,null)),a.default.createElement(p.Label,null,(0,s.default)("Submit Form"))):null}},15230:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n span[data-icon] {\n position: relative;\n left: 5px;\n }\n }\n"],["\n display: flex;\n align-self: flex-end;\n\n background-color: ",";\n border-radius: "," "," 0 0;\n box-shadow:\n inset 0 -1px 0 0 rgba(154, 165, 177, 0.25),\n 0 0 0 1px rgba(154, 165, 177, 0.25);\n\n a {\n display: flex;\n align-items: center;\n\n height: 49px;\n padding: 0 ",";\n\n white-space: nowrap;\n\n color: var(--light-text-color);\n border-radius: "," "," 0 0;\n\n &:hover {\n text-decoration: none;\n background-color: rgba(154, 165, 177, 0.15);\n\n &:not(.active) {\n &:not(:first-child) {\n border-top-left-radius: 0;\n }\n\n &:not(:last-child) {\n border-top-right-radius: 0;\n }\n }\n }\n\n &.active {\n background: ",";\n color: ",";\n box-shadow:\n inset 0 2px 0 ",",\n 0 0 0 1px rgba(51, 64, 77, 0.1),\n 0 2px 12px rgba(205, 216, 228, 0.5) !important;\n }\n\n &.errors {\n position: relative;\n color: ",";\n\n ",";\n }\n\n > span[data-icon] {\n position: relative;\n left: 5px;\n }\n }\n"])),f.colors.gray050,f.borderRadius.lg,f.borderRadius.lg,f.spacings.xl,f.borderRadius.md,f.borderRadius.md,f.colors.white,f.colors.gray700,f.colors.gray500,f.colors.error,s.errorAlert),t.SaveButtonWrapper=p.default.div(d||(d=r(["\n display: flex;\n justify-content: end;\n"],["\n display: flex;\n justify-content: end;\n"]))),t.SaveButton=p.default.button(c||(c=r([""],[""])))},45470:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)){for(var n=0,r=t.payload;n0&&(f+=" ".concat(s)),c.label=f,c.handle=(0,i.default)(f)}e.push({uid:a,rowUid:o,typeClass:l.typeClass,properties:c,order:void 0!==u?u:d+1}),void 0!==u&&e.filter((function(e){return e.rowUid===o})).filter((function(e){return e.uid!==a})).forEach((function(e){e.order>=u&&(e.order+=1)}))},remove:function(e,t){var n=t.payload;e.splice(e.findIndex((function(e){return e.uid===n})),1)},removeBatch:function(e,t){t.payload.forEach((function(t){e.splice(e.findIndex((function(e){return e.uid===t})),1)}))},edit:function(e,t){var n=t.payload,r=n.uid,a=n.handle,o=n.value;e.find((function(e){return e.uid===r})).properties[a]=o},batchEdit:function(e,t){var n=t.payload,r=n.uid,a=n.typeClass,o=n.properties,i=e.find((function(e){return e.uid===r}));i.typeClass=a,i.properties=o},clearErrors:function(e){for(var t=0,n=e;t=u;e.order-=t?1:0})),e.filter((function(e){return e.rowUid===a})).filter((function(e){return e.uid!==i.uid})).forEach((function(e){var t=e.order>=i.order;e.order+=t?1:0}))),d&&e.filter((function(e){return e.rowUid===a})).filter((function(e){return e.uid!==i.uid})).forEach((function(e){e.order>u&&e.order<=o&&(e.order-=1),e.order=o&&(e.order+=1)})))}}});var l=t.fieldsSlice.actions;t.fieldActions=l,t.default=t.fieldsSlice.reducer},56169:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(74081),o=r(n(9202)),i=r(n(41533)),l=r(n(97240)),u=r(n(76064)),d=(0,a.combineReducers)({fields:o.default,pages:l.default,rows:u.default,layouts:i.default});t.default=d},41533:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;al&&(e.order-=1),a(null===(o=e[t])||void 0===o?void 0:o.order)?r:t}),-1),n=-1===n?e.length:n),e.splice(n,0,{uid:o,order:n,layoutUid:a}),e.filter((function(e){return e.layoutUid===a})).forEach((function(e,t){e.order=t}))},remove:function(e,t){var n=e.findIndex((function(e){return e.uid===t.payload})),r=e.find((function(e){return e.uid===t.payload})).layoutUid;e.splice(n,1),e.filter((function(e){return e.layoutUid===r})).forEach((function(e,t){e.order=t}))},swap:function(e,t){var n=e.find((function(e){return e.uid===t.payload.currentUid})),r=e.find((function(e){return e.uid===t.payload.targetUid})),a=n.order;n.order=r.order,r.order=a}}});var o=t.rowsSlice.actions;t.rowActions=o,t.default=t.rowsSlice.reducer},41294:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a=i.default.limits.fields)){var a=e.fieldType,o=e.row,s=e.layoutUid;if(!s){var f=n();s=o?o.layoutUid:null===(r=u.layoutSelectors.currentPageLayout(f))||void 0===r?void 0:r.uid}var p=(0,c.v4)(),m=(0,c.v4)();t(d.rowActions.add({layoutUid:s,uid:m,order:null==o?void 0:o.order})),t(l.fieldActions.add({fieldType:a,uid:p,rowUid:m}))}}},existingRow:function(e){return function(t){var n=e.fieldType,r=e.row,a=e.order,o=(0,c.v4)();t(l.fieldActions.add({fieldType:n,uid:o,rowUid:r.uid,order:a}))}}}},38143:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.removeField=void 0;var r=n(9202),a=n(41533),o=n(76064),i=n(27121),l=n(33523);t.default=function(e){return function(n,r){(0,t.removeField)(r(),n,e),(0,l.removeEmptyRows)(r(),n)}};t.removeField=function(e,n,l){if(l.typeClass===i.Fields.Group){var u=e.layout.layouts.find((function(e){return e.uid===l.properties.layout}));if(!u)return;e.layout.rows.filter((function(e){return e.layoutUid===u.uid})).forEach((function(r){var a=e.layout.fields.filter((function(e){return e.rowUid===r.uid}));a.forEach((function(r){(0,t.removeField)(e,n,r)})),n(o.rowActions.remove(r.uid))})),n(a.layoutActions.remove(u.uid))}n(r.fieldActions.remove(l.uid))}},19007:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]DELETE in the box below:")}}),d.default.createElement("input",{type:"text",autoFocus:!0,value:x,autoComplete:"off",onChange:function(e){w(e.target.value)},className:"text fullwidth"})),d.default.createElement(s.ModalFooter,null,d.default.createElement("button",{className:"btn cancel",onClick:n},(0,g.default)("Cancel")),d.default.createElement("button",{className:(0,h.default)("btn submit",!a&&"disabled"),onClick:M},d.default.createElement(c.LoadingText,{loadingText:(0,g.default)("Deleting"),loading:O,spinner:!0},(0,g.default)("Delete")))))}},28441:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormModalLoading=void 0;var a=r(n(2784)),o=r(n(76257));t.FormModalLoading=function(){return a.default.createElement(a.default.Fragment,null,a.default.createElement("div",null,a.default.createElement(o.default,{height:10,width:50}),a.default.createElement(o.default,{height:24})),a.default.createElement("div",null,a.default.createElement(o.default,{height:10,width:150}),a.default.createElement(o.default,{height:24})),a.default.createElement("div",{style:{display:"flex",alignItems:"center",gap:10}},a.default.createElement(o.default,{height:24,width:38,borderRadius:12}),a.default.createElement("div",{style:{flex:1}},a.default.createElement(o.default,{height:10,width:80}),a.default.createElement(o.default,{height:8,width:"60%"}))))}},47282:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFetchFormModalType=void 0;var a=n(79634),o=r(n(60014)),i=["form","modal"];t.useFetchFormModalType=function(){return(0,a.useQuery)(i,(function(){return o.default.get("/api/forms/modal").then((function(e){return e.data}))}),{staleTime:1/0})}},29093:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormWrapper=void 0;var o,i=n(51362),l=a(n(40265));t.FormWrapper=l.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: "," ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: "," ",";\n"])),i.spacings.lg,i.spacings.md,i.spacings.xl)},15563:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EditGroupModal=void 0;var l=o(n(2784)),u=n(94774),d=n(57092),c=n(4679),s=n(15213),f=n(83287),p=i(n(2072)),m=i(n(40362)),v=i(n(87641)),h=n(42353),g=n(58649),b=n(55693),y=n(24112),_=n(52431);t.EditGroupModal=function(e){var t,n,r=e.closeModal,a=(0,l.useState)({}),o=a[0],i=a[1],x=(0,l.useState)(!1),w=x[0],E=x[1],O=(0,l.useState)(),P=O[0],j=O[1],k=(0,s.useFetchFormGroups)().data,M=(0,l.useRef)({}),C=(0,b.useFormGroupsOperations)(o,i,M),S=C.addGroup,F=C.updateGroupInfo,T=C.syncFormGroupsRefs;(0,l.useEffect)((function(){k&&!w&&(i(k),E(!0))}),[k,w]),(0,l.useEffect)((function(){(0,_.initializeSortable)(M)}),[]);var D=(0,y.useFormGroupsMutation)({onSuccess:function(){r()},onError:function(e){j(e.errors)}}),L=D.isLoading;return l.default.createElement(c.ModalContainer,{style:{maxWidth:"60%"}},l.default.createElement(c.ModalHeader,null,l.default.createElement("h1",null,(0,p.default)("Form Group Manager"))),l.default.createElement(h.ManagerWrapper,null,l.default.createElement(h.GroupWrapper,{ref:function(e){return M.current.groupWrapper=e},$empty:(0,p.default)("Click the 'Add Group' button on the right to begin.")},(null==P?void 0:P.length)&&l.default.createElement(h.ErrorBlock,null,(0,p.default)("Something went wrong!")),null===(n=null===(t=o.formGroups)||void 0===t?void 0:t.groups)||void 0===n?void 0:n.map((function(e){var t;return l.default.createElement(h.GroupLayout,{key:e.uid,"data-id":e.uid},l.default.createElement(h.GroupHeader,null,l.default.createElement(u.FormComponent,{value:e.label,property:{type:f.PropertyType.Label,handle:e.uid},updateValue:function(t){return F("label",t,e.uid)}})),l.default.createElement(h.GroupItemWrapper,{$empty:(0,p.default)("Drag and drop any field here"),ref:function(t){(0,_.initializeGroupedSortable)(t,e.uid,M)}},null===(t=e.forms)||void 0===t?void 0:t.map((function(e){return l.default.createElement(g.FormItem,{key:e.id,form:e})}))),l.default.createElement(h.CloseAndMoveWrapper,null,l.default.createElement("button",{className:"group-remove"},l.default.createElement(m.default,null)),l.default.createElement("button",{className:"handle"},l.default.createElement(v.default,null))))}))),l.default.createElement(h.GroupListWrapper,null,l.default.createElement("button",{onClick:S,type:"button",className:"btn add icon dashed"},(0,p.default)("Add Group")),l.default.createElement(h.UnassignedGroupWrapper,null,l.default.createElement(h.UnassignedGroup,{className:"unassigned"},l.default.createElement("h3",null,(0,p.default)("Unassigned")),l.default.createElement(h.Groups,{$empty:(0,p.default)("Drag and drop any form here. Unassigned form will display at the bottom of the list of Groups."),ref:function(e){return M.current.unassigned=e}},(null==o?void 0:o.forms)&&o.forms.filter((function(e){return null===e.dateArchived})).map((function(e){return l.default.createElement(g.FormItem,{key:e.id,form:e})}))))))),l.default.createElement(c.ModalFooter,null,l.default.createElement("button",{className:"btn cancel",onClick:r},(0,p.default)("Close")),l.default.createElement("button",{className:"btn submit"},l.default.createElement(d.LoadingText,{loadingText:(0,p.default)("Saving"),loading:L,onClick:function(){return D.mutate(T())},spinner:!0},(0,p.default)("Save")))))}},42353:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBlock=t.UnassignedGroup=t.UnassignedGroupWrapper=t.Groups=t.GroupListWrapper=t.CloseAndMoveWrapper=t.GroupItemWrapper=t.GroupHeader=t.GroupWrapper=t.GroupLayout=t.ManagerWrapper=void 0;var o,i,l,u,d,c,s,f,p,m,v,h=n(80159),g=n(51362),b=a(n(40265));t.ManagerWrapper=b.default.div(o||(o=r(["\n display: grid;\n grid-template-columns: 2fr 1fr;\n background: var(--gray-050);\n height: 600px;\n"],["\n display: grid;\n grid-template-columns: 2fr 1fr;\n background: var(--gray-050);\n height: 600px;\n"]))),t.GroupLayout=b.default.div(i||(i=r(["\n position: relative;\n background-color: ",";\n padding: ",";\n border-radius: ",";\n border: 1px solid ",";\n gap: ",";\n"],["\n position: relative;\n background-color: ",";\n padding: ",";\n border-radius: ",";\n border: 1px solid ",";\n gap: ",";\n"])),g.colors.white,g.spacings.md,g.borderRadius.md,g.colors.hairline,g.spacings.md),t.GroupWrapper=b.default.div(l||(l=r(["\n padding: 25px ",";\n display: flex;\n flex-direction: column;\n gap: ",";\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n\n &:empty::before {\n content: ",";\n display: block;\n }\n"],["\n padding: 25px ",";\n display: flex;\n flex-direction: column;\n gap: ",";\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n\n &:empty::before {\n content: ",";\n display: block;\n }\n"])),g.spacings.lg,g.spacings.md,h.scrollBar,(function(e){var t=e.$empty;return'"'.concat(t,'"')})),t.GroupWrapper.defaultProps={$empty:"Click the 'Add Group' button on the right to begin."},t.GroupHeader=b.default.div(u||(u=r(["\n display: flex;\n padding-bottom: ",";\n gap: ",";\n"],["\n display: flex;\n padding-bottom: ",";\n gap: ",";\n"])),g.spacings.lg,g.spacings.lg),t.GroupItemWrapper=b.default.div(d||(d=r(["\n display: grid;\n gap: 6px;\n grid-template-columns: 1fr 1fr;\n border-radius: ",";\n\n &:empty::before {\n content: ",";\n display: block;\n }\n\n svg {\n fill: ",";\n }\n\n .remove {\n svg {\n fill: "," !important;\n }\n }\n"],["\n display: grid;\n gap: 6px;\n grid-template-columns: 1fr 1fr;\n border-radius: ",";\n\n &:empty::before {\n content: ",";\n display: block;\n }\n\n svg {\n fill: ",";\n }\n\n .remove {\n svg {\n fill: "," !important;\n }\n }\n"])),g.borderRadius.md,(function(e){var t=e.$empty;return'"'.concat(t,'"')}),(function(e){return e.color||g.colors.black}),g.colors.black),t.GroupItemWrapper.defaultProps={$empty:"Drag and drop any field here",color:g.colors.black},t.CloseAndMoveWrapper=b.default.div(c||(c=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n position: absolute;\n top: 10px;\n right: 10px;\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n position: absolute;\n top: 10px;\n right: 10px;\n"])),g.spacings.xs),t.GroupListWrapper=b.default.div(s||(s=r(["\n padding: 25px ",";\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n"],["\n padding: 25px ",";\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n"])),g.spacings.lg,h.scrollBar),t.Groups=b.default.div(f||(f=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n &:empty::before {\n content: ",";\n display: block;\n }\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n &:empty::before {\n content: ",";\n display: block;\n }\n"])),g.spacings.xs,(function(e){var t=e.$empty;return'"'.concat(t,'"')})),t.Groups.defaultProps={$empty:"Drag and drop any field here"},t.UnassignedGroupWrapper=b.default.div(p||(p=r(["\n padding-top: ",";\n\n > .unassigned {\n .remove {\n display: none;\n }\n }\n"],["\n padding-top: ",";\n\n > .unassigned {\n .remove {\n display: none;\n }\n }\n"])),g.spacings.lg),t.UnassignedGroup=b.default.div(m||(m=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," "," "," ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," "," "," ",";\n"])),g.spacings.md,g.spacings.xs,g.spacings.xs,g.spacings.xs,g.spacings.md),t.ErrorBlock=b.default.div(v||(v=r(["\n color: ",";\n"],["\n color: ",";\n"])),g.colors.warning)},55693:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]0?[4,c.default.post("/api/forms/sort",{orderedFormIds:t})]:[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}}))}))}),e)}},11594:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PaddedFooter=t.Remove=t.Name=t.FormDetails=t.Wrapper=void 0;var o,i,l,u,d,c=n(51362),s=a(n(40265));t.Wrapper=s.default.div(o||(o=r(["\n cursor: pointer;\n gap: 30px;\n width: 100%;\n overflow: hidden;\n background: ",";\n border: 1px solid ",";\n border-radius: 3px;\n font-size: 12px;\n transition: all 0.2s ease-in-out;\n\n &:hover {\n transform: scale(1.02);\n border: 1px solid ",";\n background-color: ",";\n }\n"],["\n cursor: pointer;\n gap: 30px;\n width: 100%;\n overflow: hidden;\n background: ",";\n border: 1px solid ",";\n border-radius: 3px;\n font-size: 12px;\n transition: all 0.2s ease-in-out;\n\n &:hover {\n transform: scale(1.02);\n border: 1px solid ",";\n background-color: ",";\n }\n"])),c.colors.white,c.colors.gray100,c.colors.gray200,c.colors.gray050),t.FormDetails=s.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n padding: 10px;\n"],["\n display: flex;\n flex-direction: column;\n padding: 10px;\n"]))),t.Name=s.default.h2(l||(l=r(["\n flex: 1;\n overflow-x: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n margin-bottom: 0;\n"],["\n flex: 1;\n overflow-x: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n margin-bottom: 0;\n"]))),t.Remove=s.default.div(u||(u=r(["\n color: ",";\n margin-right: ",";\n position: absolute;\n right: 8px;\n top: 7px;\n"],["\n color: ",";\n margin-right: ",";\n position: absolute;\n right: 8px;\n top: 7px;\n"])),c.colors.gray500,c.spacings.xs),t.PaddedFooter=s.default.div(d||(d=r(["\n margin-top: 0;\n background-color: ",";\n opacity: 1;\n height: 2px;\n font-size: 1px;\n line-height: 1px;\n overflow: hidden;\n"],["\n margin-top: 0;\n background-color: ",";\n opacity: 1;\n height: 2px;\n font-size: 1px;\n line-height: 1px;\n overflow: hidden;\n"])),(function(e){return e.$color}))},58649:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormItem=void 0;var l=o(n(2784)),u=n(23934),d=i(n(40362)),c=n(11594);t.FormItem=function(e){var t=e.form,n=(0,l.useRef)(null),r=(0,u.useHover)(n),a=t.id,o=t.name,i=t.settings.general.color;return l.default.createElement(c.Wrapper,{"data-id":a,ref:n},l.default.createElement(c.FormDetails,null,l.default.createElement(c.Name,null,o)),r&&l.default.createElement(c.Remove,{className:"remove form-item-remove"},l.default.createElement(d.default,null)),l.default.createElement(c.PaddedFooter,{$color:i}))}},52431:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.initializeGroupedSortable=t.initializeSortable=void 0;var a=r(n(10324)),o=function(e,t){return".handle"!==t.options.handle};t.initializeSortable=function(e){var t;t={unassigned:{group:{name:"shared",put:o},animation:150,sort:!0},groupWrapper:{handle:".handle",filter:".group-remove",sort:!0,animation:150,onFilter:function(t){var n,r=Array.from(e.current[t.item.dataset.id].children);(n=e.current.unassigned).append.apply(n,r),t.item.remove()}}},Object.entries(t).forEach((function(t){return function(t,n){var r=e.current[t];r&&a.default.create(r,n)}(t[0],t[1])}))};t.initializeGroupedSortable=function(e,t,n){e&&(a.default.create(e,{animation:150,group:{name:"group-".concat(t),put:function(e,t){return".handle"!==t.options.handle}},sort:!0,filter:".form-item-remove",onFilter:function(e){return n.current.unassigned.appendChild(e.item)}}),n.current[t]=e)}},18624:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{errors} logged errors in the Freeform error log.',{link:(0,l.generateUrl)("settings/error-log"),errors:t.errors})}}))):null:null}},75251:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ItemMeta=t.ItemDate=t.ItemTitleLink=t.ItemTitle=t.Item=void 0;var o,i,l,u,d,c=n(51362),s=a(n(40265));t.Item=s.default.li(o||(o=r(["\n line-height: 1.4;\n list-style-type: disc;\n\n &.disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n\n &.restored {\n opacity: 0;\n }\n"],["\n line-height: 1.4;\n list-style-type: disc;\n\n &.disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n\n &.restored {\n opacity: 0;\n }\n"]))),t.ItemTitle=s.default.span(i||(i=r(["\n color: ",";\n font-weight: bold;\n"],["\n color: ",";\n font-weight: bold;\n"])),c.colors.blue600),t.ItemTitleLink=(0,s.default)(t.ItemTitle)(l||(l=r(["\n cursor: pointer;\n\n &:hover {\n text-decoration: underline;\n }\n"],["\n cursor: pointer;\n\n &:hover {\n text-decoration: underline;\n }\n"]))),t.ItemDate=s.default.span(u||(u=r(["\n color: #868f96;\n margin-left: 5px;\n"],["\n color: #868f96;\n margin-left: 5px;\n"]))),t.ItemMeta=s.default.span(d||(d=r(["\n margin-left: 5px;\n color: ",";\n\n &::before {\n content: '|';\n padding-right: 5px;\n }\n\n a,\n button {\n cursor: pointer;\n color: var(--link-color);\n\n &:hover {\n text-decoration: underline;\n }\n }\n"],["\n margin-left: 5px;\n color: ",";\n\n &::before {\n content: '|';\n padding-right: 5px;\n }\n\n a,\n button {\n cursor: pointer;\n color: var(--link-color);\n\n &:hover {\n text-decoration: underline;\n }\n }\n"])),c.colors.gray200)},98733:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArchivedItem=void 0;var a=r(n(2784)),o=n(76034),i=n(40319),l=r(n(26457)),u=r(n(2072)),d=n(79634),c=n(89893),s=n(92314),f=n(75251);t.ArchivedItem=function(e){var t,n=e.form,r=(0,o.useNavigate)(),p=(0,d.useQueryClient)(),m=n.id,v=n.name,h=n.links,g=n.dateArchived,b=(0,s.useArchiveFormMutation)(),y=b.isLoading&&b.context===m,_=b.isSuccess&&b.context===m,x=h.filter((function(e){return"title"===e.type})).length,w=n.links.filter((function(e){return"linkList"===e.type}));return a.default.createElement(f.Item,{className:(0,l.default)(y&&"disabled",_&&"restored")},x?a.default.createElement(f.ItemTitleLink,{onClick:function(){p.invalidateQueries(i.QKForms.single(Number(m))),r("".concat(m))}},v):a.default.createElement(f.ItemTitle,null,v),g&&a.default.createElement(f.ItemDate,null,"(",(0,u.default)("archived")," ",(t=g,(0,c.format)((0,c.parseISO)(t),"yyyy-MM-dd")),")"),w.length>0&&w.filter((function(e){return e.count})).map((function(e,t){return e.internal?a.default.createElement(f.ItemMeta,{key:t},a.default.createElement(o.NavLink,{to:e.url},e.label)):a.default.createElement(f.ItemMeta,{key:t},a.default.createElement("a",{href:e.url},e.label))})),a.default.createElement(f.ItemMeta,null,a.default.createElement("button",{onClick:function(){b.mutate(m)}},(0,u.default)("Restore this Form"))))}},2937:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArchivedItems=t.Button=t.Wrapper=void 0;var o,i,l,u=n(51362),d=a(n(40265));t.Wrapper=d.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),u.spacings.md),t.Button=d.default.button(i||(i=r(["\n grid-area: button;\n\n outline: none;\n box-shadow: none;\n\n color: var(--link-color);\n\n font-size: 14px;\n text-align: left;\n\n transition: all 0.2s ease-out;\n\n &:focus {\n outline: none;\n box-shadow: none;\n }\n"],["\n grid-area: button;\n\n outline: none;\n box-shadow: none;\n\n color: var(--link-color);\n\n font-size: 14px;\n text-align: left;\n\n transition: all 0.2s ease-out;\n\n &:focus {\n outline: none;\n box-shadow: none;\n }\n"]))),t.ArchivedItems=d.default.ul(l||(l=r(["\n margin-left: 25px;\n"],["\n margin-left: 25px;\n"])))},13456:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Archived=void 0;var l=o(n(2784)),u=i(n(2072)),d=n(98733),c=n(2937);t.Archived=function(e){var t=e.data,n=(0,l.useState)(!1),r=n[0],a=n[1];return(null==t?void 0:t.length)?l.default.createElement(c.Wrapper,null,l.default.createElement(c.Button,{onClick:function(){return a(!r)}},(0,u.default)(r?"Hide archived forms":"Show archived forms")),r&&l.default.createElement(c.ArchivedItems,null,t.map((function(e){return l.default.createElement(d.ArchivedItem,{key:e.id,form:e})})))):null}},48465:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CardLoading=void 0;var a=r(n(2784)),o=r(n(76257)),i=n(76051),l=n(62227);t.CardLoading=function(){var e="#dfdfdf",t=Array.from({length:10},(function(){return{value:(e=0,t=Math.random()>.9?8:4,Math.floor(Math.random()*(t-e+1))+e)};var e,t}));return a.default.createElement(l.CardWrapper,null,a.default.createElement(l.CardBody,null,a.default.createElement(o.default,{height:20,width:"50%"}),a.default.createElement(o.default,{height:10,width:"80%"}),a.default.createElement(l.LinkList,null,a.default.createElement("li",null,a.default.createElement(o.default,{height:8,width:90})),a.default.createElement("li",null,a.default.createElement(o.default,{height:8,width:50})))),a.default.createElement(i.ResponsiveContainer,{width:"100%",height:40},a.default.createElement(i.AreaChart,{data:t,margin:{top:10,bottom:3,left:0,right:0}},a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"colorGradient",x1:0,y1:0,x2:0,y2:1},a.default.createElement("stop",{offset:"5%",stopColor:e,stopOpacity:.4}),a.default.createElement("stop",{offset:"95%",stopColor:e,stopOpacity:.3}))),a.default.createElement(i.Area,{type:"monotone",dataKey:"value",stroke:e,strokeWidth:1,strokeOpacity:1,fillOpacity:1,fill:"url(#colorGradient)",isAnimationActive:!1}))),a.default.createElement(l.PaddedChartFooter,{$color:e}))}},62227:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PaddedChartFooter=t.CardWrapper=t.LinkList=t.ControlButton=t.Controls=t.Subtitle=t.TitleLink=t.Title=t.CardBody=void 0;var o,i,l,u,d,c,s,f,p,m=n(51362),v=a(n(40265));t.CardBody=v.default.div(o||(o=r(["\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: start;\n\n padding: "," "," 0;\n"],["\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: start;\n\n padding: "," "," 0;\n"])),m.spacings.xl,m.spacings.xl),t.Title=v.default.h2(i||(i=r(["\n cursor: default;\n\n margin: 0;\n\n color: #3d464e;\n\n font-size: 20px;\n font-weight: 700;\n text-align: left;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n transition: all 0.2s ease-out;\n"],["\n cursor: default;\n\n margin: 0;\n\n color: #3d464e;\n\n font-size: 20px;\n font-weight: 700;\n text-align: left;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n transition: all 0.2s ease-out;\n"]))),t.TitleLink=(0,v.default)(t.Title)(l||(l=r(["\n cursor: pointer;\n"],["\n cursor: pointer;\n"]))),t.Subtitle=v.default.span(u||(u=r(["\n display: inline-block;\n\n color: #868f96;\n font-size: 14px;\n\n max-width: 100%;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"],["\n display: inline-block;\n\n color: #868f96;\n font-size: 14px;\n\n max-width: 100%;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"]))),t.Controls=v.default.div(d||(d=r(["\n position: absolute;\n right: ",";\n top: ",";\n z-index: 2;\n\n display: flex;\n justify-content: end;\n align-items: stretch;\n gap: ",";\n\n opacity: 0;\n transform: translateY(-20px);\n transition: all 0.2s ease-out;\n"],["\n position: absolute;\n right: ",";\n top: ",";\n z-index: 2;\n\n display: flex;\n justify-content: end;\n align-items: stretch;\n gap: ",";\n\n opacity: 0;\n transform: translateY(-20px);\n transition: all 0.2s ease-out;\n"])),m.spacings.sm,m.spacings.sm,m.spacings.sm),t.ControlButton=v.default.button(c||(c=r(["\n font-size: 14px;\n color: #868f96;\n\n > svg {\n fill: currentColor;\n }\n"],["\n font-size: 14px;\n color: #868f96;\n\n > svg {\n fill: currentColor;\n }\n"]))),t.LinkList=v.default.ul(s||(s=r(["\n margin: "," 0 0;\n padding: 0;\n"],["\n margin: "," 0 0;\n padding: 0;\n"])),m.spacings.sm),t.CardWrapper=v.default.li(f||(f=r(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n overflow: hidden;\n\n background-color: #fcfdff;\n border: 1px solid #e7eef7;\n border-radius: var(--large-border-radius);\n\n opacity: 1;\n pointer-events: auto;\n\n transition:\n background-color 0.2s ease-out,\n border-color 0.2s ease-out;\n\n &.disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n\n &.archived {\n opacity: 0;\n }\n\n &:not(.dragging):hover {\n background-color: #f3f7fd;\n border-color: #9eb0c5;\n\n "," {\n color: var(--link-color);\n }\n\n "," {\n opacity: 1;\n transform: translateY(0);\n }\n }\n"],["\n position: relative;\n\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n overflow: hidden;\n\n background-color: #fcfdff;\n border: 1px solid #e7eef7;\n border-radius: var(--large-border-radius);\n\n opacity: 1;\n pointer-events: auto;\n\n transition:\n background-color 0.2s ease-out,\n border-color 0.2s ease-out;\n\n &.disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n\n &.archived {\n opacity: 0;\n }\n\n &:not(.dragging):hover {\n background-color: #f3f7fd;\n border-color: #9eb0c5;\n\n "," {\n color: var(--link-color);\n }\n\n "," {\n opacity: 1;\n transform: translateY(0);\n }\n }\n"])),t.TitleLink,t.Controls),t.PaddedChartFooter=v.default.div(p||(p=r(["\n margin-top: -3px;\n\n background-color: ",";\n opacity: 0.3;\n\n height: 5px;\n\n font-size: 1px;\n line-height: 1px;\n\n overflow: hidden;\n"],["\n margin-top: -3px;\n\n background-color: ",";\n opacity: 0.3;\n\n height: 5px;\n\n font-size: 1px;\n line-height: 1px;\n\n overflow: hidden;\n"])),(function(e){return e.$color}))},33371:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n.9?50:20,Math.floor(Math.random()*(t-e+1))+e)};var e,t})),A=t.id,I=t.name,W=t.description,N=t.dateArchived,z=t.settings.general.color,Q=i.isLoading&&i.context===A,V=i.isSuccess&&i.context===A,G=l.isLoading&&l.context===A||Q,U=(0,f.useDeleteFormModal)({form:t}),H=function(e){e.metaKey||e.ctrlKey||1===e.button?window.open((0,g.generateUrl)("forms/".concat(A)),"_blank"):(M.invalidateQueries(m.QKForms.single(Number(A))),k("".concat(A)))},K=t.links.filter((function(e){return"title"===e.type})).length,$=t.links.filter((function(e){return"linkList"===e.type}));return u.default.createElement(P.CardWrapper,{"data-id":t.id,className:(0,v.default)(G&&"disabled",V&&"archived",n&&"dragging")},u.default.createElement(P.Controls,null,!a&&!o&&u.default.createElement(c.Tooltip,r({title:(0,h.default)("Move this Form Card")},j),u.default.createElement(P.ControlButton,{className:"handle"},u.default.createElement(x.default,null))),!a&&u.default.createElement(c.Tooltip,r({title:(0,h.default)("Duplicate this Form")},j),u.default.createElement(P.ControlButton,{onClick:function(){l.mutate(A)}},u.default.createElement(y.default,null))),!a&&!N&&u.default.createElement(c.Tooltip,r({title:(0,h.default)("Archive this Form")},j),u.default.createElement(P.ControlButton,{onClick:function(){i.mutate(A)}},u.default.createElement(b.default,null))),C&&u.default.createElement(c.Tooltip,r({title:(0,h.default)("Delete this Form")},j),u.default.createElement(P.ControlButton,{onClick:U},u.default.createElement(_.default,null)))),u.default.createElement(P.CardBody,null,T?u.default.createElement(c.Tooltip,r({title:I},j),K?u.default.createElement(P.TitleLink,{ref:F,onClick:H,onAuxClick:H},I):u.default.createElement(P.Title,{ref:F},I)):K?u.default.createElement(P.TitleLink,{ref:F,onClick:H,onAuxClick:H},I):u.default.createElement(P.Title,{ref:F},I),!!W&&(R?u.default.createElement(c.Tooltip,r({title:W},j),u.default.createElement(P.Subtitle,{ref:L},W)):u.default.createElement(P.Subtitle,{ref:L,title:W},W)),$.length>0&&u.default.createElement(P.LinkList,null,$.map((function(e,t){return e.internal?u.default.createElement(d.NavLink,{key:t,to:e.url},e.label):u.default.createElement("li",{key:t},u.default.createElement("a",{href:e.url},e.label))})))),u.default.createElement(E.ResponsiveContainer,{width:"100%",height:40},u.default.createElement(E.AreaChart,{data:t.chartData||B,margin:{top:10,bottom:3,left:0,right:0}},u.default.createElement("defs",null,u.default.createElement("linearGradient",{id:"color".concat(t.id),x1:0,y1:0,x2:0,y2:1},u.default.createElement("stop",{offset:"5%",stopColor:z,stopOpacity:.4}),u.default.createElement("stop",{offset:"95%",stopColor:z,stopOpacity:.3}))),u.default.createElement(E.Area,{type:"monotone",dataKey:"uv",stroke:z,strokeWidth:1,strokeOpacity:1,fillOpacity:1,fill:"url(#color".concat(t.id,")"),isAnimationActive:!1}))),u.default.createElement(P.PaddedChartFooter,{$color:z}))}},45183:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.chartDataset=void 0,t.chartDataset=[[{uv:0},{uv:2},{uv:0},{uv:6},{uv:0},{uv:0},{uv:1},{uv:0},{uv:0},{uv:4},{uv:0},{uv:3}],[{uv:9},{uv:6},{uv:3},{uv:4},{uv:0},{uv:6},{uv:1}],[{uv:0},{uv:25},{uv:0},{uv:32},{uv:0},{uv:0}]]},91970:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MutedWrapper=void 0;var o,i=n(51362),l=a(n(40265)),u=n(62227),d=n(37683);t.MutedWrapper=(0,l.default)(d.Cards)(o||(o=r(["\n position: relative;\n margin-top: ",";\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n\n z-index: 2;\n\n background: linear-gradient(\n to right,\n transparent 0%,\n transparent 40%,\n white 65%,\n white 100%\n );\n }\n\n &,\n * {\n pointer-events: none;\n user-select: none;\n }\n\n "," {\n border-color: #fbfcfd;\n background: #fefeff;\n }\n\n ",", "," a {\n color: #cfd1d2;\n }\n\n "," {\n color: #e2e4e5;\n }\n"],["\n position: relative;\n margin-top: ",";\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n\n z-index: 2;\n\n background: linear-gradient(\n to right,\n transparent 0%,\n transparent 40%,\n white 65%,\n white 100%\n );\n }\n\n &,\n * {\n pointer-events: none;\n user-select: none;\n }\n\n "," {\n border-color: #fbfcfd;\n background: #fefeff;\n }\n\n ",", "," a {\n color: #cfd1d2;\n }\n\n "," {\n color: #e2e4e5;\n }\n"])),i.spacings.xl,u.CardWrapper,u.Title,u.LinkList,u.Subtitle)},3499:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GridEmpty=void 0;var a=r(n(2784)),o=r(n(65884)),i=r(n(2072)),l=n(97035),u=n(33371),d=n(45183),c=n(91970),s=function(e,t,n,r,a){return{uid:"",type:"",name:e,handle:"",isNew:!0,chartData:n,links:[],counters:{submissions:r,spam:a},settings:{general:{namespaceType:"settings",namespace:"general",description:t,color:"#e0e0e0"}},dateArchived:null}};t.GridEmpty=function(){var e=(0,l.useCreateFormModal)(),t=o.default.metadata.freeform.canCreate;return a.default.createElement("div",null,t&&a.default.createElement(a.default.Fragment,null,a.default.createElement("p",null,(0,i.default)("You don't have any forms yet. Create your first form now...")),a.default.createElement("button",{className:"btn submit add icon",onClick:e},(0,i.default)("New Form"))),!t&&a.default.createElement("p",null,(0,i.default)("You don't have any forms.")),a.default.createElement(c.MutedWrapper,null,a.default.createElement(u.Card,{form:s("Contact Form","Main contact form.",d.chartDataset[0],14,5)}),a.default.createElement(u.Card,{form:s("Customer Survey","Customer satisfaction survey.",d.chartDataset[1],72,18)}),a.default.createElement(u.Card,{form:s("Newsletter","Newsletter signup form.",d.chartDataset[2],138,7)})))}},92314:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useCloneFormMutation=t.useArchiveFormMutation=void 0;var a=n(22852),o=n(15213),i=n(40319),l=n(79634),u=n(79634),d=r(n(60014));t.useArchiveFormMutation=function(){var e=(0,l.useQueryClient)(),t=(0,a.useSiteContext)().getCurrentHandleWithFallback;return(0,u.useMutation)((function(e){return d.default.post("/api/forms/".concat(e,"/archive"),{site:t()})}),{onMutate:function(e){return e},onSuccess:function(){e.invalidateQueries(o.QKGroups.all(t())),e.invalidateQueries(i.QKForms.all(t()))}})};t.useCloneFormMutation=function(){var e=(0,l.useQueryClient)(),t=(0,a.useSiteContext)().getCurrentHandleWithFallback;return(0,u.useMutation)((function(e){return d.default.post("/api/forms/".concat(e,"/clone"))}),{onMutate:function(e){return e},onSuccess:function(){e.invalidateQueries(o.QKGroups.all(t())),e.invalidateQueries(i.QKForms.all(t()))}})}},37594:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PopupMenu=t.DropdownWrapper=t.Button=t.ButtonWrapper=void 0;var o,i,l,u,d=n(51362),c=a(n(40265));t.ButtonWrapper=c.default.div(o||(o=r(["\n position: relative;\n display: inline-block;\n"],["\n position: relative;\n display: inline-block;\n"]))),t.Button=c.default.button(i||(i=r([""],[""]))),t.DropdownWrapper=c.default.div(l||(l=r(["\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 10;\n\n display: block;\n"],["\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 10;\n\n display: block;\n"]))),t.PopupMenu=c.default.div(u||(u=r(["\n position: absolute;\n left: 0;\n top: 100%;\n z-index: 100;\n\n padding: 0 14px;\n\n background: white;\n box-shadow:\n 0 0 0 1px rgba(31, 41, 51, 0.1),\n 0 5px 20px rgba(31, 41, 51, 0.25);\n\n border-radius: ",";\n\n overflow: auto;\n user-select: none;\n\n ul {\n li {\n a {\n position: relative;\n cursor: pointer;\n\n display: block;\n margin: 0 -14px;\n padding: 10px 14px 10px 24px;\n\n color: ",";\n font-size: 14px;\n text-decoration: none;\n white-space: nowrap;\n\n &:hover {\n --text-color: var(--white);\n --light-text-color: var(--gray-100);\n --ui-control-color: var(--gray-050);\n --ui-control-hover-color: var(--gray-100);\n --ui-control-active-color: var(--gray-100);\n background-color: #606d7b;\n color: #fff;\n }\n\n &.sel {\n &:before {\n content: 'check';\n position: absolute;\n left: 7px;\n top: 11px;\n\n float: left;\n\n font-family: Craft;\n color: ",";\n }\n }\n }\n }\n }\n"],["\n position: absolute;\n left: 0;\n top: 100%;\n z-index: 100;\n\n padding: 0 14px;\n\n background: white;\n box-shadow:\n 0 0 0 1px rgba(31, 41, 51, 0.1),\n 0 5px 20px rgba(31, 41, 51, 0.25);\n\n border-radius: ",";\n\n overflow: auto;\n user-select: none;\n\n ul {\n li {\n a {\n position: relative;\n cursor: pointer;\n\n display: block;\n margin: 0 -14px;\n padding: 10px 14px 10px 24px;\n\n color: ",";\n font-size: 14px;\n text-decoration: none;\n white-space: nowrap;\n\n &:hover {\n --text-color: var(--white);\n --light-text-color: var(--gray-100);\n --ui-control-color: var(--gray-050);\n --ui-control-hover-color: var(--gray-100);\n --ui-control-active-color: var(--gray-100);\n background-color: #606d7b;\n color: #fff;\n }\n\n &.sel {\n &:before {\n content: 'check';\n position: absolute;\n left: 7px;\n top: 11px;\n\n float: left;\n\n font-family: Craft;\n color: ",";\n }\n }\n }\n }\n }\n"])),d.borderRadius.lg,d.colors.gray700,d.colors.gray400)},25518:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GridSites=void 0;var l=o(n(2784)),u=i(n(65884)),d=n(22852),c=i(n(26457)),s=n(54541),f=n(37594);t.GridSites=function(){var e=(0,l.useState)(!1),t=e[0],n=e[1],r=(0,d.useSiteContext)(),a=r.current,o=r.list,i=r.change,p=u.default.metadata.craft;return u.default.sites.enabled?p.is5||o.length<=1?null:l.default.createElement("div",{style:{gridArea:"sites"}},l.default.createElement(f.ButtonWrapper,null,l.default.createElement(s.Button,{className:"btn menubtn","data-icon":"world",onClick:function(){return n(!t)}},a.name),l.default.createElement(f.PopupMenu,{style:{top:"100%",display:t?"block":"none"}},l.default.createElement("ul",{className:"padded"},o.map((function(e){return l.default.createElement("li",{key:e.id},l.default.createElement("a",{className:(0,c.default)("menu-item",a.handle===e.handle&&"sel"),onClick:function(t){i(e.handle),n(!1),t.preventDefault(),t.stopPropagation()}},l.default.createElement("span",{className:"menu-item-label"},e.name)))})))))):null}},37683:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadingWrapper=t.ContentContainer=t.GroupsButton=t.ArchivedAndGroupWrapper=t.GroupTitle=t.GroupWrap=t.Cards=t.CardWrapper=t.Wrapper=void 0;var o,i,l,u,d,c,s,f,p,m=n(51362),v=a(n(40265));t.Wrapper=v.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),m.spacings.lg),t.CardWrapper=v.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),m.spacings.lg),t.Cards=v.default.ul(l||(l=r(["\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: ",";\n"],["\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: ",";\n"])),m.spacings.lg),t.GroupWrap=v.default.div(u||(u=r(["\n hr {\n margin: 10px -25px;\n }\n"],["\n hr {\n margin: 10px -25px;\n }\n"]))),t.GroupTitle=v.default.h2(d||(d=r(["\n margin-bottom: 10px;\n"],["\n margin-bottom: 10px;\n"]))),t.ArchivedAndGroupWrapper=v.default.div(c||(c=r(["\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n\n .edit-groups {\n justify-content: flex-end;\n margin-left: auto;\n }\n"],["\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n\n .edit-groups {\n justify-content: flex-end;\n margin-left: auto;\n }\n"]))),t.GroupsButton=v.default.button(s||(s=r(["\n display: flex;\n align-items: center;\n gap: ",";\n\n &:hover {\n color: var(--link-color);\n\n svg {\n path:last-of-type {\n stroke: var(--link-color);\n }\n }\n }\n"],["\n display: flex;\n align-items: center;\n gap: ",";\n\n &:hover {\n color: var(--link-color);\n\n svg {\n path:last-of-type {\n stroke: var(--link-color);\n }\n }\n }\n"])),m.spacings.xs),t.ContentContainer=v.default.div(f||(f=r(["\n width: 100%;\n max-width: 100%;\n"],["\n width: 100%;\n max-width: 100%;\n"]))),t.LoadingWrapper=v.default.div(p||(p=r(["\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: ",";\n"],["\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: ",";\n"])),m.spacings.lg)},65278:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormGrid=void 0;var l=o(n(2784)),u=o(n(65884)),d=n(15213),c=i(n(26457)),s=i(n(2072)),f=i(n(77306)),p=i(n(60014)),m=i(n(10324)),v=n(5616),h=n(58778),g=n(13456),b=n(33371),y=n(48465),_=n(3499),x=n(37683);t.FormGrid=function(){var e,t=(0,d.useFetchFormGroups)(),n=t.data,r=t.isFetching,a=(0,v.useEditGroupModal)(),o=(null==n?void 0:n.forms.length)>0,i=null===(e=null==n?void 0:n.formGroups)||void 0===e?void 0:e.groups.some((function(e){return e.forms.length>0})),w=!r&&!o&&!i,E=u.default.editions.is(u.Edition.Express),O=u.default.editions.isAtLeast(u.Edition.Pro),P=(0,l.useRef)(null),j=(0,l.useRef)(null),k=(0,l.useState)(!1),M=k[0],C=k[1],S=function(){var e=j.current.toArray();p.default.post("/api/forms/sort",{orderedFormIds:e}),C(!1)};return(0,l.useEffect)((function(){document.title=(0,s.default)("Forms")}),[]),(0,l.useEffect)((function(){P.current&&(j.current=new m.default(P.current,{animation:150,onEnd:S,handle:".handle",onStart:function(){C(!0)}}))}),[n]),l.default.createElement(x.ContentContainer,null,l.default.createElement("div",{id:"content",className:"content-pane"},l.default.createElement(h.Notices,null),l.default.createElement(x.Wrapper,null,w&&l.default.createElement(_.GridEmpty,null),!w&&l.default.createElement(x.CardWrapper,null,O&&(null==n?void 0:n.formGroups)&&n.formGroups.groups.map((function(e,t){return e.forms.length?l.default.createElement(x.GroupWrap,{key:e.uid},0!==t&&l.default.createElement("hr",null),l.default.createElement(x.GroupTitle,null,e.label),l.default.createElement(x.Cards,null,e.forms.map((function(e){return l.default.createElement(b.Card,{isExpressEdition:E,key:e.id,form:e})})))):null})),!w&&o&&l.default.createElement(x.GroupWrap,null,i&&l.default.createElement("hr",null),i&&l.default.createElement(x.GroupTitle,null,(0,s.default)("Other")),l.default.createElement(x.Cards,{ref:P,className:(0,c.default)(M&&"dragging")},(null==n?void 0:n.forms)&&n.forms.map((function(e){return l.default.createElement(b.Card,{isDraggingInProgress:M,isExpressEdition:E,key:e.id,form:e})})))),!(null==n?void 0:n.forms)&&r&&l.default.createElement(x.Cards,null,l.default.createElement(y.CardLoading,null),l.default.createElement(y.CardLoading,null),l.default.createElement(y.CardLoading,null))),l.default.createElement(x.ArchivedAndGroupWrapper,null,!E&&(null==n?void 0:n.archivedForms)&&l.default.createElement(g.Archived,{data:n.archivedForms}),!w&&O&&l.default.createElement(x.GroupsButton,{className:"edit-groups",onClick:a},l.default.createElement(f.default,null),(0,s.default)("Manage Form Groups"))))))}},52836:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Title=t.Header=t.Wrapper=void 0;var o,i,l,u=n(51362),d=a(n(40265));t.Wrapper=d.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),u.spacings.lg),t.Header=d.default.header(i||(i=r(["\n display: grid;\n grid-template-areas: 'title sites button';\n grid-template-columns: min-content 1fr auto;\n justify-content: space-between;\n align-items: center;\n gap: ",";\n"],["\n display: grid;\n grid-template-areas: 'title sites button';\n grid-template-columns: min-content 1fr auto;\n justify-content: space-between;\n align-items: center;\n gap: ",";\n"])),u.spacings.md),t.Title=d.default.h1(l||(l=r(["\n grid-area: title;\n\n padding: "," 0;\n margin: 0;\n\n font-size: 18px;\n font-weight: 700;\n line-height: 34px;\n"],["\n grid-area: title;\n\n padding: "," 0;\n margin: 0;\n\n font-size: 18px;\n font-weight: 700;\n line-height: 34px;\n"])),u.spacings.sm)},56213:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ListTableRowLoading=void 0;var a=r(n(2784)),o=r(n(76257)),i=n(76051);t.ListTableRowLoading=function(){var e="#dfdfdf",t=Array.from({length:10},(function(){return{value:(e=0,t=Math.random()>.9?8:4,Math.floor(Math.random()*(t-e+1))+e)};var e,t}));return a.default.createElement("tr",null,a.default.createElement("td",null,a.default.createElement(o.default,{height:20,width:150})),a.default.createElement("td",null,a.default.createElement(o.default,{height:20,width:80})),a.default.createElement("td",null,a.default.createElement(o.default,{height:20,width:300})),a.default.createElement("td",null,a.default.createElement(i.ResponsiveContainer,{width:200,height:20},a.default.createElement(i.AreaChart,{data:t,margin:{top:0,bottom:0,left:0,right:0}},a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"colorGradient",x1:0,y1:0,x2:0,y2:1},a.default.createElement("stop",{offset:"5%",stopColor:e,stopOpacity:.4}),a.default.createElement("stop",{offset:"95%",stopColor:e,stopOpacity:.3}))),a.default.createElement(i.Area,{type:"monotone",dataKey:"value",stroke:e,strokeWidth:1,strokeOpacity:1,fillOpacity:.7,fill:"url(#colorGradient)",isAnimationActive:!1})))),a.default.createElement("td",null,a.default.createElement(o.default,{height:20,width:40,highlightColor:"#5372b64f"})),a.default.createElement("td",null,a.default.createElement(o.default,{height:20,width:20,highlightColor:"#5372b64f"})),a.default.createElement("td",null,a.default.createElement(o.default,{height:20,width:61})))}},96039:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&o.default.createElement("small",null,"(",(0,u.default)("{count} pages",{count:e.pages.length}),")"))))})))):null}},62014:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a0&&a.default.createElement("ul",{className:"errors"},p.map((function(e,t){return a.default.createElement("li",{key:t},e)}))),!(null==p?void 0:p.length)&&a.default.createElement(l.DoneWrapper,{style:v},a.default.createElement(l.Done,null,a.default.createElement("i",{className:"fa-sharp fa-solid fa-check"}),a.default.createElement("span",null,n))))}},47943:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Sidebar=void 0;var a=r(n(2784)),o=n(76034),i=n(6712),l=r(n(26457)),u=r(n(2072)),d=n(23656),c=n(79634),s=r(n(60014)),f=["forms","express-forms"];t.Sidebar=function(){var e=(0,o.useLocation)().pathname,t=(0,c.useQuery)(["import-export","navigation"],{queryFn:function(){return s.default.get("/api/import-export/navigation").then((function(e){return e.data}))}}),n=t.data;return t.isFetching&&!n?a.default.createElement(i.SidebarContainer,null,a.default.createElement("nav",null)):a.default.createElement(i.SidebarContainer,null,a.default.createElement("nav",null,a.default.createElement("ul",null,n.map((function(t,n){if(null==t?void 0:t.heading)return a.default.createElement("li",{className:"heading",key:n},a.default.createElement("span",null,(0,u.default)(t.heading)));var r=t.url.replace(/^freeform/,""),i=f.some((function(e){return r.includes(e)})),c=(0,u.default)(t.title);return a.default.createElement("li",{key:n},i&&a.default.createElement(o.NavLink,{to:r,className:(0,l.default)(r===e&&"sel")},c),!i&&a.default.createElement("a",{href:(0,d.generateUrl)(r)},c))})))))}},48305:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]0&&l.default.createElement("table",{className:"data fullwidth"},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,(0,v.default)("Name")),l.default.createElement("th",null,(0,v.default)("Description")),l.default.createElement("th",null))),l.default.createElement("tbody",null,t.map((function(e){return l.default.createElement("tr",{key:e.id},l.default.createElement("th",null,l.default.createElement(u.Link,{to:"".concat(e.id)},e.name)),l.default.createElement("td",null,e.description),l.default.createElement("td",{className:"thin"},l.default.createElement("a",{className:"delete icon",title:(0,v.default)("Delete"),onClick:function(){confirm((0,v.default)("Are you sure you want to delete this?"))&&r.mutate(e.id)}})))})))),0===t.length&&l.default.createElement("div",{style:{padding:"100px 0 100px"}},l.default.createElement(c.EmptyBlock,{title:(0,v.default)("No groups exist yet"),subtitle:(0,v.default)('Click on the "New Group" button to set up your first Limited User permission group.')}))),!a&&l.default.createElement(c.EmptyBlock,{lite:!0,title:(0,v.default)("Upgrade to the Freeform Pro edition to get access to the Limited Users feature")})))))}},67662:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ChartLoadingSkeleton=void 0;var a=r(n(2784)),o=n(57092),i=n(8454),l=r(n(2072)),u=n(76051),d=n(33836),c=(0,i.range)(0,60).map((function(e){return{name:"",y:e>30?(t=0,n=Math.random()>.5?4:1,Math.floor(Math.random()*(n-t+1))+t):0};var t,n}));t.ChartLoadingSkeleton=function(){var e="#cccccc";return a.default.createElement(d.ChartWrapper,{$color:e},a.default.createElement(d.Title,null,a.default.createElement(o.LoadingText,{loading:!0,instant:!0,xl:!0},(0,l.default)("Loading"))),a.default.createElement(u.ResponsiveContainer,{width:"100%",height:80},a.default.createElement(u.AreaChart,{data:c,margin:{top:30,left:0,right:0,bottom:3}},a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"color",x1:0,y1:0,x2:0,y2:1},a.default.createElement("stop",{offset:"5%",stopColor:e,stopOpacity:.4}),a.default.createElement("stop",{offset:"95%",stopColor:e,stopOpacity:.1}))),a.default.createElement(u.Area,{type:"monotone",dataKey:"y",stroke:e,strokeWidth:1,strokeOpacity:1,fillOpacity:1,isAnimationActive:!1,fill:"url(#color)"}))),a.default.createElement(d.ExtraColor,{$color:e}))}},33836:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TooltipWrapper=t.ExtraColor=t.Title=t.ChartWrapper=void 0;var o,i,l,u,d=n(51362),c=a(n(40265));t.ChartWrapper=c.default.div(o||(o=r(["\n position: relative;\n"],["\n position: relative;\n"]))),t.Title=c.default.h1(i||(i=r(["\n position: absolute;\n top: ",";\n left: ",";\n\n font-size: 40px;\n user-select: none;\n pointer-events: none;\n"],["\n position: absolute;\n top: ",";\n left: ",";\n\n font-size: 40px;\n user-select: none;\n pointer-events: none;\n"])),d.spacings.md,d.spacings.xl),t.ExtraColor=c.default.div(l||(l=r(["\n margin-top: -3px;\n height: 20px;\n background: linear-gradient(\n to bottom,\n ","\n );\n"],["\n margin-top: -3px;\n height: 20px;\n background: linear-gradient(\n to bottom,\n ","\n );\n"])),(function(e){var t=e.$color;return"".concat(t,"1A 30%, transparent 100%")})),t.TooltipWrapper=c.default.div(u||(u=r(["\n padding: "," ",";\n background-color: white;\n border: 2px solid ",";\n"],["\n padding: "," ",";\n background-color: white;\n border: 2px solid ",";\n"])),d.spacings.sm,d.spacings.md,(function(e){return e.$color}))},46790:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Chart=void 0;var a=r(n(2784)),o=n(76051),i=n(3797),l=n(33836);t.Chart=function(){var e=(0,i.useQuerySurveyResults)(),t=e.data,n=e.isFetching,r=(0,i.useQuerySurveyChart)(),u=r.data;if(r.isFetching||n)return null;var d=t.form,c=d.id,s=d.name,f=d.color,p=2*Math.max.apply(Math,u.map((function(e){return e.y})));return a.default.createElement(l.ChartWrapper,{$color:f},a.default.createElement(l.Title,null,s),a.default.createElement(o.ResponsiveContainer,{width:"100%",height:80},a.default.createElement(o.AreaChart,{data:u,margin:{top:0,left:0,right:0,bottom:3}},a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"color".concat(c),x1:0,y1:0,x2:0,y2:1},a.default.createElement("stop",{offset:"5%",stopColor:f,stopOpacity:.4}),a.default.createElement("stop",{offset:"95%",stopColor:f,stopOpacity:.1}))),a.default.createElement(o.Area,{type:"monotone",dataKey:"y",stroke:f,strokeWidth:1,strokeOpacity:1,fillOpacity:1,isAnimationActive:!1,fill:"url(#color".concat(c,")")}),p>0&&a.default.createElement(o.YAxis,{domain:[0,p],hide:!0}),a.default.createElement(o.Tooltip,{content:a.default.createElement((function(e){var t=e.active,n=e.payload;if(t&&n&&n.length){var r=n[0].payload,o=r.name,i=r.y;return a.default.createElement(l.TooltipWrapper,{$color:f},o,": ",a.default.createElement("b",null,i)," submissions")}}),null)}))),a.default.createElement(l.ExtraColor,{$color:f}))}},15351:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useSettingsMutation=void 0;var a=n(79634),o=r(n(60014)),i=function(e){var t={fieldId:e.fieldId,chartType:e.chartType};return o.default.post("/api/surveys/preferences",t)};t.useSettingsMutation=function(){return(0,a.useMutation)(i)}},70817:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownItem=t.DropdownWrapper=t.SettingsButton=t.Settings=void 0;var o,i,l,u,d=a(n(40265));t.Settings=d.default.div(o||(o=r(["\n grid-area: settings;\n\n position: relative;\n"],["\n grid-area: settings;\n\n position: relative;\n"]))),t.SettingsButton=d.default.button(i||(i=r(["\n display: block;\n\n width: 100%;\n padding: 5px 12px;\n\n border-radius: 4px;\n color: #ced6df;\n\n transition: all 0.2s ease-out;\n\n &:hover,\n &.open {\n background-color: #c8cfd5;\n color: #ffffff;\n }\n\n &.open {\n border-radius: 4px 4px 0 0;\n }\n\n @keyframes rotator {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n\n &.loading svg {\n animation-name: rotator;\n animation-duration: 3s;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n }\n"],["\n display: block;\n\n width: 100%;\n padding: 5px 12px;\n\n border-radius: 4px;\n color: #ced6df;\n\n transition: all 0.2s ease-out;\n\n &:hover,\n &.open {\n background-color: #c8cfd5;\n color: #ffffff;\n }\n\n &.open {\n border-radius: 4px 4px 0 0;\n }\n\n @keyframes rotator {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n\n &.loading svg {\n animation-name: rotator;\n animation-duration: 3s;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n }\n"]))),t.DropdownWrapper=d.default.div(l||(l=r(["\n position: absolute;\n left: 0;\n top: 26px;\n z-index: 2;\n\n width: 150px;\n overflow: hidden;\n\n border-radius: 0 5px 5px 5px;\n border: 1px solid #e0e2e6;\n background: #ffffff;\n\n box-shadow: rgba(17, 17, 26, 0.1) 5px 5px 8px;\n"],["\n position: absolute;\n left: 0;\n top: 26px;\n z-index: 2;\n\n width: 150px;\n overflow: hidden;\n\n border-radius: 0 5px 5px 5px;\n border: 1px solid #e0e2e6;\n background: #ffffff;\n\n box-shadow: rgba(17, 17, 26, 0.1) 5px 5px 8px;\n"]))),t.DropdownItem=d.default.a(u||(u=r(["\n display: block;\n padding: 3px 10px;\n\n background-color: #ffffff;\n color: #000000 !important;\n font-size: 12px;\n\n transition: background-color 0.2s ease-out;\n\n &.selected {\n background-color: #f3f7fd;\n }\n\n &:hover {\n background-color: #d8dce1;\n text-decoration: none;\n }\n"],["\n display: block;\n padding: 3px 10px;\n\n background-color: #ffffff;\n color: #000000 !important;\n font-size: 12px;\n\n transition: background-color 0.2s ease-out;\n\n &.selected {\n background-color: #f3f7fd;\n }\n\n &:hover {\n background-color: #d8dce1;\n text-decoration: none;\n }\n"])))},61212:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsBlock=void 0;var a=r(n(2784)),o=r(n(26457)),i=r(n(85834)),l=n(72284),u=n(15351),d=n(70817),c=Object.keys(l.Chart);t.SettingsBlock=function(e){var t=e.fieldId,n=e.selectedChartType,r=e.isShown,l=e.toggle,s=e.changeType,f=(0,u.useSettingsMutation)(),p=f.mutate,m=f.isLoading;return a.default.createElement(d.SettingsButton,{className:(0,o.default)(m&&"loading",r&&"open"),onClick:l},a.default.createElement(i.default,null),r&&a.default.createElement(d.DropdownWrapper,null,c.map((function(e){return a.default.createElement(d.DropdownItem,{key:e,className:n===e&&"selected",onClick:function(){s(e),p({fieldId:t,chartType:e})}},e)}))))}},31546:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HiddenBlock=t.Numbers=t.Extras=t.SubHeading=t.Heading=t.Label=t.Bulletin=t.Wrapper=t.Icon=void 0;var o,i,l,u,d,c,s,f,p,m=a(n(40265)),v=n(70817);!function(e){e[e.CheckboxGroup=0]="CheckboxGroup",e[e.RadioGroup=1]="RadioGroup",e[e.Select=2]="Select",e[e.MultiSelect=3]="MultiSelect",e[e.Text=4]="Text",e[e.Rating=5]="Rating"}(o||(t.Icon=o={})),t.Wrapper=m.default.li(i||(i=r(["\n display: grid;\n grid-template-columns: 42px auto;\n grid-template-rows: auto auto;\n grid-template-areas:\n 'bulletin label'\n 'settings numbers';\n gap: 10px;\n\n &:not(:last-child) {\n margin-bottom: 42px;\n }\n"],["\n display: grid;\n grid-template-columns: 42px auto;\n grid-template-rows: auto auto;\n grid-template-areas:\n 'bulletin label'\n 'settings numbers';\n gap: 10px;\n\n &:not(:last-child) {\n margin-bottom: 42px;\n }\n"]))),t.Bulletin=m.default.div(l||(l=r(["\n grid-area: bulletin;\n\n padding-top: 5px;\n\n background-color: #f3f7fd;\n border-radius: 4px;\n\n color: #df2733;\n text-align: center;\n font-size: 24px;\n font-weight: bold;\n\n &:hover {\n transition: background-color 0.2s ease-out;\n background-color: #e0e4e9;\n }\n\n span {\n white-space: nowrap;\n }\n\n svg {\n display: block;\n\n margin: 3px auto;\n\n width: 28px;\n }\n"],["\n grid-area: bulletin;\n\n padding-top: 5px;\n\n background-color: #f3f7fd;\n border-radius: 4px;\n\n color: #df2733;\n text-align: center;\n font-size: 24px;\n font-weight: bold;\n\n &:hover {\n transition: background-color 0.2s ease-out;\n background-color: #e0e4e9;\n }\n\n span {\n white-space: nowrap;\n }\n\n svg {\n display: block;\n\n margin: 3px auto;\n\n width: 28px;\n }\n"]))),t.Label=m.default.div(u||(u=r(["\n grid-area: label;\n"],["\n grid-area: label;\n"]))),t.Heading=m.default.div(d||(d=r(["\n display: flex;\n align-items: center;\n gap: 10px;\n\n font-size: 24px;\n font-weight: bold;\n\n margin: 5px 0 8px;\n\n svg {\n width: 30px;\n height: 30px;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 10px;\n\n font-size: 24px;\n font-weight: bold;\n\n margin: 5px 0 8px;\n\n svg {\n width: 30px;\n height: 30px;\n }\n"]))),t.SubHeading=m.default.div(c||(c=r(["\n position: relative;\n\n font-size: 12px;\n color: #ccc;\n"],["\n position: relative;\n\n font-size: 12px;\n color: #ccc;\n"]))),t.Extras=m.default.div(s||(s=r(["\n position: absolute;\n right: 0;\n top: 0;\n"],["\n position: absolute;\n right: 0;\n top: 0;\n"]))),t.Numbers=m.default.div(f||(f=r(["\n grid-area: numbers;\n"],["\n grid-area: numbers;\n"]))),t.HiddenBlock=m.default.li(p||(p=r(["\n position: relative;\n\n padding: 3px 0;\n margin-bottom: 42px;\n\n background: #f3f7fd;\n text-align: center;\n font-size: 12px;\n\n "," {\n position: absolute;\n left: 0;\n top: 0;\n\n width: 40px;\n }\n"],["\n position: relative;\n\n padding: 3px 0;\n margin-bottom: 42px;\n\n background: #f3f7fd;\n text-align: center;\n font-size: 12px;\n\n "," {\n position: absolute;\n left: 0;\n top: 0;\n\n width: 40px;\n }\n"])),v.SettingsButton)},34638:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Block=void 0;var l=o(n(2784)),u=n(15443),d=i(n(2072)),c=n(3797),s=n(72284),f=n(44263),p=n(61212),m=n(70817),v=n(31546),h=o(n(60525)),g=[s.Chart.Hidden,s.Chart.Text];t.Block=function(e){var t=e.field,n=e.responses,r=e.breakdown,a=e.skipped,o=e.bulletin,i=e.average,b=e.max,y=(0,u.useFieldType)(t.class),_=(0,l.useState)(s.Chart.Horizontal),x=_[0],w=_[1],E=(0,l.useState)(!1),O=E[0],P=E[1],j=(0,c.useQuerySurveyPreferences)().data,k=(0,l.useRef)();if((0,l.useEffect)((function(){var e,n;if(j){var r=null===(e=j.fieldSettings.find((function(e){return e.id===t.id})))||void 0===e?void 0:e.chartType;void 0===r&&(r=(null===(n=j.chartDefaults)||void 0===n?void 0:n[t.class])||s.Chart.Horizontal),w(r)}else w(s.Chart.Horizontal)}),[j]),(0,l.useEffect)((function(){g.includes(x)}),[k,x]),!j)return null;var M=j.permissions,C=h[x];return x===s.Chart.Hidden?l.default.createElement(v.HiddenBlock,null,M.reports&&l.default.createElement(p.SettingsBlock,{fieldId:t.id,selectedChartType:x,isShown:O,toggle:function(){return P(!O)},changeType:function(e){return w(e)}}),"--"," ",l.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,d.default)("Question {index} Hidden",{index:o})}})," ","--"):l.default.createElement(v.Wrapper,{ref:k},l.default.createElement(v.Bulletin,null,l.default.createElement("span",null,o)),l.default.createElement(v.Label,null,l.default.createElement(v.Heading,null,y&&l.default.createElement("span",{dangerouslySetInnerHTML:{__html:y.icon}}),t.label),l.default.createElement(v.SubHeading,null,(0,d.default)("{answered} answered, {skipped} skipped",{answered:n-a,skipped:a}),t.multiChoice&&l.default.createElement(v.Extras,null,(0,d.default)("multiple choice"))),l.default.createElement(f.Average,{average:i,max:b})),l.default.createElement(m.Settings,null,M.reports&&l.default.createElement(p.SettingsBlock,{fieldId:t.id,selectedChartType:x,isShown:O,toggle:function(){return P(!O)},changeType:function(e){return w(e)}})),l.default.createElement(v.Numbers,null,l.default.createElement(C,{breakdown:r})))}},1959:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Donut=void 0;var a=r(n(2784)),o=n(37147),i=n(4892),l=n(76051),u=Math.PI/180;t.Donut=function(e){var t=e.breakdown,n=e.pie,r=t.filter((function(e){return e.votes>0})),d=t.map((function(e){var n=e.ranking;return(0,o.generateColor)(n/t.length,i.interpolateTurbo)}));return a.default.createElement("div",{style:{width:800}},a.default.createElement(l.ResponsiveContainer,{width:"100%",height:400},a.default.createElement(l.PieChart,null,a.default.createElement(l.Pie,{data:r,dataKey:"votes",nameKey:"label",cx:"50%",cy:"50%",outerRadius:180,innerRadius:n?0:100,fill:"#82ca9d",labelLine:!0,label:function(e){var t=e.cx,n=e.cy,o=e.midAngle,i=e.outerRadius,l=e.percent,d=e.index,c=i+30,s=t+c*Math.cos(-o*u),f=n+c*Math.sin(-o*u);return a.default.createElement("text",{key:d,x:s,y:f,fill:"black",textAnchor:s>t?"start":"end",dominantBaseline:"central"},a.default.createElement("tspan",{style:{fontWeight:"bold"}},r[d].label),a.default.createElement("tspan",{style:{fontSize:"12px",fill:"#999"}}," ","(","".concat((100*l).toFixed(0),"%"),")"))}},r.map((function(e,t){return a.default.createElement(l.Cell,{key:"cell-".concat(t),fill:d[t]})}))))))}},71487:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Hidden=void 0;var a=r(n(2784));t.Hidden=function(){return a.default.createElement("div",null,"hidden")}},70631:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Bar=t.Votes=t.Percentage=t.Label=t.Answer=void 0;var o,i,l,u,d,c=a(n(40265));t.Answer=c.default.div(o||(o=r(["\n display: grid;\n gap: 2px;\n grid-template-columns: auto 100px 50px;\n grid-template-rows: auto auto;\n grid-template-areas:\n 'label votes percentage'\n 'graph graph graph';\n\n &:not(:last-child) {\n margin-bottom: 10px;\n }\n"],["\n display: grid;\n gap: 2px;\n grid-template-columns: auto 100px 50px;\n grid-template-rows: auto auto;\n grid-template-areas:\n 'label votes percentage'\n 'graph graph graph';\n\n &:not(:last-child) {\n margin-bottom: 10px;\n }\n"]))),t.Label=c.default.div(i||(i=r(["\n grid-area: label;\n\n font-weight: bold;\n"],["\n grid-area: label;\n\n font-weight: bold;\n"]))),t.Percentage=c.default.div(l||(l=r(["\n grid-area: percentage;\n\n font-size: 14px;\n font-weight: bold;\n text-align: right;\n"],["\n grid-area: percentage;\n\n font-size: 14px;\n font-weight: bold;\n text-align: right;\n"]))),t.Votes=c.default.div(u||(u=r(["\n grid-area: votes;\n\n color: #c2c5c7;\n font-size: 12px;\n text-align: right;\n"],["\n grid-area: votes;\n\n color: #c2c5c7;\n font-size: 12px;\n text-align: right;\n"]))),t.Bar=c.default.div(d||(d=r(["\n grid-area: graph;\n\n position: relative;\n overflow: hidden;\n\n height: 20px;\n\n border-radius: 3px;\n background: #f3f7fd;\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n\n display: block;\n\n width: ","%;\n height: 100%;\n\n background: ",";\n }\n"],["\n grid-area: graph;\n\n position: relative;\n overflow: hidden;\n\n height: 20px;\n\n border-radius: 3px;\n background: #f3f7fd;\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n\n display: block;\n\n width: ","%;\n height: 100%;\n\n background: ",";\n }\n"])),(function(e){return e.percentage}),(function(e){return 1===e.ranking?"var(--highlight)":"#33414d"}))},90732:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Horizontal=void 0;var a=r(n(2784)),o=r(n(2072)),i=n(70631);t.Horizontal=function(e){var t=e.breakdown;return a.default.createElement(a.default.Fragment,null,t.map((function(e){var t=e.label,n=e.value,r=e.votes,l=e.percentage,u=e.ranking;return a.default.createElement(i.Answer,{key:n.toString()},a.default.createElement(i.Label,null,t),a.default.createElement(i.Votes,null,r," ",(0,o.default)("resp.")),a.default.createElement(i.Percentage,null,Math.round(l),"%"),a.default.createElement(i.Bar,{percentage:l,ranking:u}))})))}},60525:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Vertical=t.Text=t.Pie=t.Horizontal=t.Hidden=t.Donut=void 0;var r=n(1959);Object.defineProperty(t,"Donut",{enumerable:!0,get:function(){return r.Donut}});var a=n(71487);Object.defineProperty(t,"Hidden",{enumerable:!0,get:function(){return a.Hidden}});var o=n(90732);Object.defineProperty(t,"Horizontal",{enumerable:!0,get:function(){return o.Horizontal}});var i=n(32301);Object.defineProperty(t,"Pie",{enumerable:!0,get:function(){return i.Pie}});var l=n(93838);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return l.Text}});var u=n(39814);Object.defineProperty(t,"Vertical",{enumerable:!0,get:function(){return u.Vertical}})},32301:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Pie=void 0;var a=r(n(2784)),o=n(1959);t.Pie=function(e){var t=e.breakdown;return a.default.createElement(o.Donut,{breakdown:t,pie:!0})}},22032:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Item=t.Wrapper=void 0;var o,i,l=a(n(40265));t.Wrapper=l.default.div(o||(o=r([""],[""]))),t.Item=l.default.div(i||(i=r(["\n padding: 10px 15px;\n\n &:not(:last-child) {\n border-bottom: 1px solid #eff3f6;\n }\n"],["\n padding: 10px 15px;\n\n &:not(:last-child) {\n border-bottom: 1px solid #eff3f6;\n }\n"])))},93838:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Text=void 0;var a=r(n(2784)),o=n(22032);t.Text=function(e){var t=e.breakdown;return a.default.createElement(o.Wrapper,null,t.map((function(e){return a.default.createElement(o.Item,{key:e.value.toString()},e.label,e.votes>1&&" (".concat(e.votes,")"))})))}},67238:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Bar=t.Votes=t.Percentage=t.Label=t.Answer=t.Wrapper=t.Container=void 0;var o,i,l,u,d,c,s,f=n(80159),p=a(n(40265));t.Container=p.default.div(o||(o=r(["\n width: 900px;\n overflow-x: auto;\n\n ",";\n"],["\n width: 900px;\n overflow-x: auto;\n\n ",";\n"])),f.scrollBar),t.Wrapper=p.default.div(i||(i=r(["\n display: grid;\n gap: 10px;\n grid-auto-columns: minmax(80px, 1fr);\n grid-auto-flow: column;\n"],["\n display: grid;\n gap: 10px;\n grid-auto-columns: minmax(80px, 1fr);\n grid-auto-flow: column;\n"]))),t.Answer=p.default.div(l||(l=r(["\n display: flex;\n flex-direction: column;\n\n text-align: center;\n"],["\n display: flex;\n flex-direction: column;\n\n text-align: center;\n"]))),t.Label=p.default.div(u||(u=r(["\n padding: 10px;\n\n font-size: 16px;\n font-weight: bold;\n"],["\n padding: 10px;\n\n font-size: 16px;\n font-weight: bold;\n"]))),t.Percentage=p.default.div(d||(d=r(["\n flex-basis: 40px;\n padding: 10px;\n\n font-weight: bold;\n font-size: 16px;\n\n box-sizing: border-box;\n"],["\n flex-basis: 40px;\n padding: 10px;\n\n font-weight: bold;\n font-size: 16px;\n\n box-sizing: border-box;\n"]))),t.Votes=p.default.div(c||(c=r(["\n flex-basis: 30px;\n\n color: #c2c5c7;\n\n font-size: 12px;\n line-height: 12px;\n\n span {\n display: block;\n }\n"],["\n flex-basis: 30px;\n\n color: #c2c5c7;\n\n font-size: 12px;\n line-height: 12px;\n\n span {\n display: block;\n }\n"]))),t.Bar=p.default.div(s||(s=r(["\n position: relative;\n overflow: hidden;\n\n flex-basis: 250px;\n\n border-radius: 3px;\n background: #f3f7fd;\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n\n display: block;\n\n width: 100%;\n height: ","%;\n\n background: ",";\n }\n"],["\n position: relative;\n overflow: hidden;\n\n flex-basis: 250px;\n\n border-radius: 3px;\n background: #f3f7fd;\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n\n display: block;\n\n width: 100%;\n height: ","%;\n\n background: ",";\n }\n"])),(function(e){return e.percentage}),(function(e){return 1===e.ranking?"var(--highlight)":"#33414d"}))},39814:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Vertical=void 0;var a=r(n(2784)),o=r(n(2072)),i=n(67238);t.Vertical=function(e){var t=e.breakdown;return a.default.createElement(i.Container,null,a.default.createElement(i.Wrapper,{count:t.length},t.map((function(e){var t=e.label,n=e.value,r=e.votes,l=e.percentage,u=e.ranking;return a.default.createElement(i.Answer,{key:n.toString()},a.default.createElement(i.Percentage,null,Math.round(l),"%"),a.default.createElement(i.Votes,null,r," ",(0,o.default)("resp.")),a.default.createElement(i.Bar,{percentage:l,ranking:u}),a.default.createElement(i.Label,null,t))}))))}},54799:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Max=t.Avg=t.Wrapper=void 0;var o,i,l,u=a(n(40265));t.Wrapper=u.default.div(o||(o=r(["\n margin-top: 10px;\n\n color: #cf4041;\n font-size: 16px;\n"],["\n margin-top: 10px;\n\n color: #cf4041;\n font-size: 16px;\n"]))),t.Avg=u.default.span(i||(i=r(["\n font-weight: bold;\n"],["\n font-weight: bold;\n"]))),t.Max=u.default.span(l||(l=r(["\n color: #a4a6aa;\n"],["\n color: #a4a6aa;\n"])))},44263:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Average=void 0;var a=r(n(2784)),o=r(n(2072)),i=n(54799);t.Average=function(e){var t=e.average,n=e.max;return null===t||null===n?null:a.default.createElement(i.Wrapper,null,(0,o.default)("Average"),": ",a.default.createElement(i.Avg,null,t)," ",a.default.createElement(i.Max,null,"/ ",n))}},41447:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Heading=t.Wrapper=void 0;var o,i,l=n(51362),u=a(n(40265));t.Wrapper=u.default.ul(o||(o=r(["\n display: block;\n\n padding: ",";\n"],["\n display: block;\n\n padding: ",";\n"])),l.spacings.xl),t.Heading=u.default.div(i||(i=r(["\n position: relative;\n\n display: block;\n padding: 0 0 30px;\n\n color: #3f4d5a;\n font-size: 1.5rem;\n font-weight: normal;\n\n small {\n color: #bbbdbe;\n padding-left: ",";\n }\n"],["\n position: relative;\n\n display: block;\n padding: 0 0 30px;\n\n color: #3f4d5a;\n font-size: 1.5rem;\n font-weight: normal;\n\n small {\n color: #bbbdbe;\n padding-left: ",";\n }\n"])),l.spacings.md)},78259:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.clientWidth)};return window.addEventListener("resize",t),t(),function(){return window.removeEventListener("resize",t)}}),[e]),[e,n]}},9726:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useClickOutside=void 0;var r=n(2784),a=n(26457);t.useClickOutside=function(e){var t=e.callback,n=e.isEnabled,o=e.refObject,i=e.excludeClassNames,l=(0,r.useRef)(),u=o||l;return(0,r.useEffect)((function(){var e=function(e){n&&(document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement||n&&u.current&&!u.current.contains(e.target)&&!(0,a.elementTreeHasClass)(e.target,i)&&"function"==typeof t&&t())};return document.addEventListener("click",e,!0),function(){document.removeEventListener("click",e,!0)}}),[u,n]),u}},88901:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useDebounce=void 0;var r=n(2784);t.useDebounce=function(e,t){void 0===t&&(t=500);var n=(0,r.useState)(e),a=n[0],o=n[1];return(0,r.useEffect)((function(){var n=setTimeout((function(){return o(e)}),t);return function(){return clearTimeout(n)}}),[e,t]),a}},55097:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useForceUpdate=void 0;var r=n(2784);t.useForceUpdate=function(){var e=(0,r.useReducer)((function(e){return e+1}),0)[1];(0,r.useEffect)((function(){setTimeout((function(){e()}),0)}),[])}},21285:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useFreeformNavigation=void 0;var r=n(2784),a=n(76034),o=n(40319),i=n(91423),l=n(74740),u=n(79634);t.useFreeformNavigation=function(){var e=(0,a.useParams)().formId,t=(0,a.useNavigate)(),n=(0,u.useQueryClient)();(0,r.useEffect)((function(){var r=document.querySelector('ul.nav-item__subnav li a[href*="/freeform/forms"]');r||(r=document.querySelector('ul.subnav li a[href*="/freeform/forms"]'));var a=function(r){return r.preventDefault(),e&&(n.invalidateQueries(o.QKForms.single(Number(e))),n.invalidateQueries(l.QKNotifications.single(Number(e))),n.invalidateQueries(i.QKIntegrations.single(Number(e)))),t("/forms"),!1};return r&&r.addEventListener("click",a),function(){r&&r.removeEventListener("click",a)}}))}},19136:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useDimensionsObserver=void 0;var r=n(2784);t.useDimensionsObserver=function(){var e=(0,r.useRef)(null),t=(0,r.useState)({height:0,width:0,x:0,y:0}),n=t[0],a=t[1],o=(0,r.useState)((function(){return new ResizeObserver((function(e){var t=e[0].target.getBoundingClientRect(),n=t.width,r=t.height,o=t.x,i=t.y;a({width:n,height:r,x:o,y:i})}))}))[0];return(0,r.useEffect)((function(){return e.current&&o.observe(e.current),function(){return o.disconnect()}}),[o]),{ref:e,dimensions:n}}},23934:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useHover=void 0;var r=n(2784);t.useHover=function(e){var t=(0,r.useState)(!1),n=t[0],a=t[1],o=function(){return a(!0)},i=function(){return a(!1)};return(0,r.useEffect)((function(){var t=e.current;if(t)return t.addEventListener("mouseenter",o),t.addEventListener("mouseleave",i),function(){t.removeEventListener("mouseenter",o),t.removeEventListener("mouseleave",i)}}),[e]),n}},22920:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a ul > li");(0,r.useEffect)((function(){return t.forEach((function(t,n){a(t,n===e)})),function(){t.forEach((function(e){a(e,!1)})),a(t[0],!0)}}),[e])}},34582:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(2784)),o=n(8134),i=n(59333),l=r(n(17029)),u=n(86993),d=n(76034),c=n(11455),s=n(20811),f=n(95408),p=n(96071),m=n(85797),v=n(59071),h=n(53084),g=n(36450),b=n(79634),y=n(78600);n(84307);var _=n(76937),x=n(42006),w=n(56615),E=n(1278),O=n(91444),P=n(32842),j=n(37181),k=n(76822),M=n(44278),C=n(31070),S=n(22852),F=r(n(15376)),T=n(75920),D=n(23656),L=r(n(85754));n(50265);var R=document.getElementById("freeform-client"),B=l.default.createRoot(R);T.debug.log("%c\n ███████╗██████╗ ███████╗███████╗███████╗ ██████╗ ██████╗ ███╗ ███╗\n ██╔════╝██╔══██╗██╔════╝██╔════╝██╔════╝██╔═══██╗██╔══██╗████╗ ████║\n █████╗ ██████╔╝█████╗ █████╗ █████╗ ██║ ██║██████╔╝██╔████╔██║\n ██╔══╝ ██╔══██╗██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║██╔══██╗██║╚██╔╝██║\n ██║ ██║ ██║███████╗███████╗██║ ╚██████╔╝██║ ██║██║ ╚═╝ ██║\n ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝\n",T.debug.colors.blue),B.render(a.default.createElement(o.DndProvider,{backend:i.HTML5Backend},a.default.createElement(d.BrowserRouter,{basename:(0,D.generateUrl)("/",!1)},a.default.createElement(b.QueryClientProvider,{client:v.queryClient},a.default.createElement(S.SiteProvider,null,a.default.createElement(p.ZIndexContextProvider,null,a.default.createElement(C.EscapeStackProvider,null,a.default.createElement(s.BreadcrumbProvider,null,a.default.createElement(u.Provider,{store:g.store},a.default.createElement(h.PortalProvider,null,a.default.createElement(m.ModalProvider,null,a.default.createElement(c.Breadcrumb,{id:"root",label:"Freeform",url:"/forms"}),a.default.createElement(F.default,null),a.default.createElement(y.ReactQueryDevtools,null),a.default.createElement(f.CpNavigation,null),a.default.createElement(d.Routes,null,a.default.createElement(d.Route,{path:"/",element:a.default.createElement(L.default,null)},a.default.createElement(d.Route,{path:"forms"},a.default.createElement(d.Route,{path:":formId/*",element:a.default.createElement(_.Form,null)}),a.default.createElement(d.Route,{index:!0,element:a.default.createElement(_.Forms,null)})),a.default.createElement(d.Route,{path:"/surveys/:handle",element:a.default.createElement(k.SurveyResults,null)}),a.default.createElement(d.Route,{path:"welcome",element:a.default.createElement(M.Welcome,null)}),a.default.createElement(d.Route,{path:"import",element:a.default.createElement(x.ImportExport,null)},a.default.createElement(d.Route,{path:"forms",element:a.default.createElement(O.ImportFreeformData,null)}),a.default.createElement(d.Route,{path:"express-forms",element:a.default.createElement(E.ImportExpressForms,null)})),a.default.createElement(d.Route,{path:"export",element:a.default.createElement(x.ImportExport,null)},a.default.createElement(d.Route,{path:"forms",element:a.default.createElement(w.ExportFreeform,null)})),a.default.createElement(d.Route,{path:"settings/limited-users"},a.default.createElement(d.Route,{path:":id",element:a.default.createElement(j.LimitedUsersDetail,null)}),a.default.createElement(d.Route,{index:!0,element:a.default.createElement(P.LimitedUsers,null)})))))))))))))))},87087:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFetchFavorites=t.QKFavorites=void 0;var a=n(79634),o=r(n(60014));t.QKFavorites={all:["field-favorites"]};t.useFetchFavorites=function(e){var n=(void 0===e?{}:e).select;return(0,a.useQuery)(t.QKFavorites.all,(function(){return o.default.get("/api/fields/favorites").then((function(e){return e.data}))}),{staleTime:1/0,select:n})}},64725:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFetchForms=t.QKForms=void 0;var a=n(79634),o=r(n(60014));t.QKForms={all:["field-forms"]};t.useFetchForms=function(e){var n=e.select;return(0,a.useQuery)(t.QKForms.all,(function(){return o.default.get("/api/fields/forms").then((function(e){return e.data}))}),{staleTime:1/0,select:n})}},15443:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a * {\n > label {\n display: block;\n padding: 6px 12px;\n margin: 0 0 5px;\n\n border: 1px solid ",";\n border-left: none;\n\n white-space: nowrap;\n text-align: center;\n color: black !important;\n cursor: pointer;\n }\n\n input {\n position: absolute;\n left: -9999px;\n top: -9999px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n visibility: hidden;\n\n &:checked ~ label {\n background: #e6e6e6;\n }\n }\n\n &:first-child {\n > label {\n border-left: 1px solid ",";\n\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n }\n }\n\n &:last-child {\n > label {\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n }\n }\n }\n }\n\n ul.opinion-scale-legends {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));\n grid-gap: 0;\n\n li {\n text-align: center;\n }\n\n li:first-child {\n text-align: left;\n }\n\n li:last-child {\n text-align: right;\n }\n }\n }\n"],["\n .opinion-scale {\n ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n .opinion-scale-scales {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));\n grid-gap: 0;\n\n > * {\n > label {\n display: block;\n padding: 6px 12px;\n margin: 0 0 5px;\n\n border: 1px solid ",";\n border-left: none;\n\n white-space: nowrap;\n text-align: center;\n color: black !important;\n cursor: pointer;\n }\n\n input {\n position: absolute;\n left: -9999px;\n top: -9999px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n visibility: hidden;\n\n &:checked ~ label {\n background: #e6e6e6;\n }\n }\n\n &:first-child {\n > label {\n border-left: 1px solid ",";\n\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n }\n }\n\n &:last-child {\n > label {\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n }\n }\n }\n }\n\n ul.opinion-scale-legends {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));\n grid-gap: 0;\n\n li {\n text-align: center;\n }\n\n li:first-child {\n text-align: left;\n }\n\n li:last-child {\n text-align: right;\n }\n }\n }\n"])),o,o,i,i,i,i);t.default=l},80159:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0}),t.errorAlert=t.labelText=t.scrollBar=void 0;var a,o,i,l=n(40265),u=n(51362),d=u.colors.gray100,c=u.colors.gray300;t.scrollBar=(0,l.css)(a||(a=r(["\n scrollbar-width: thin;\n scrollbar-color: "," ",";\n -webkit-overflow-scrolling: touch;\n\n &::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ",";\n }\n"],["\n scrollbar-width: thin;\n scrollbar-color: "," ",";\n -webkit-overflow-scrolling: touch;\n\n &::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ",";\n }\n"])),c,d,c),t.labelText=(0,l.css)(o||(o=r(["\n font-family:\n system-ui,\n BlinkMacSystemFont,\n -apple-system,\n Segoe UI,\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n Fira Sans,\n Droid Sans,\n Helvetica Neue,\n sans-serif;\n font-weight: bold;\n text-transform: uppercase;\n color: rgb(154 165 177 / 75%);\n"],["\n font-family:\n system-ui,\n BlinkMacSystemFont,\n -apple-system,\n Segoe UI,\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n Fira Sans,\n Droid Sans,\n Helvetica Neue,\n sans-serif;\n font-weight: bold;\n text-transform: uppercase;\n color: rgb(154 165 177 / 75%);\n"]))),t.errorAlert=(0,l.css)(i||(i=r(["\n span:after {\n content: 'alert';\n\n position: relative;\n top: 1px;\n\n padding-left: 5px;\n\n -webkit-font-smoothing: antialiased;\n font-feature-settings: 'liga', 'dlig';\n font-family: Craft;\n }\n"],["\n span:after {\n content: 'alert';\n\n position: relative;\n top: 1px;\n\n padding-left: 5px;\n\n -webkit-font-smoothing: antialiased;\n font-feature-settings: 'liga', 'dlig';\n font-family: Craft;\n }\n"])))},51362:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.colors=t.beziers=t.shadows=t.borderRadius=t.spacings=t.BoxShadow=void 0;var o,i=a(n(40265));t.BoxShadow=i.default.div(o||(o=r(["\n box-shadow:\n 0 0 0 1px #cdd8e4,\n 0 2px 12px rgb(205 216 228 / 50%);\n"],["\n box-shadow:\n 0 0 0 1px #cdd8e4,\n 0 2px 12px rgb(205 216 228 / 50%);\n"]))),t.spacings={xs:"var(--xs)",sm:"var(--s)",md:"var(--m)",lg:"var(--l)",xl:"var(--xl)"},t.borderRadius={sm:"var(--small-border-radius)",md:"var(--medium-border-radius)",lg:"var(--large-border-radius)"},t.shadows={panel:"0 0 20px 10px rgb(205 216 228 / 50%)",box:"0 0 0 1px #cdd8e4, 0 2px 12px rgb(205 216 228 / 50%)",bottom:"inset 0 -1px 0 0 rgb(154 165 177 / 25%)",top:"inset 0 1px 0 0 rgb(154 165 177 / 25%)",left:"inset 1px 0 0 0 rgb(154 165 177 / 25%)",right:"inset -1px 0 0 0 rgb(154 165 177 / 25%)",container:"0 0 0 1px rgba(31, 41, 51, 0.1), 0 5px 20px rgba(31, 41, 51, 0.25)"},t.beziers={easeOut:"cubic-bezier(0.25, 0.1, 0.25, 1)",easeIn:"cubic-bezier(0.42, 0, 1, 1)",easeInOut:"cubic-bezier(0.42, 0, 0.58, 1)",bounce:{easeOut:"cubic-bezier(0.175, 0.885, 0.32, 1.275)"}},t.colors={hairline:"rgba(51,64,77,.1)",inputBorder:"rgba(96,125,159,0.25)",barelyVisible:"rgb(154 165 177 / 75%)",link:"#1f5fea",elements:{dropdown:"#dfe5ec"},error:"#cf1124",warning:"var(--warning-color)",success:"var(--success-color)",notice:"var(--notice-color)",enabled:"var(--enabled-color)",pending:"var(--pending-color)",disabled:"var(--disabled-color)",white:"var(--white)",black:"var(--black)",gray050:"var(--gray-050)",gray100:"var(--gray-100)",gray200:"var(--gray-200)",gray250:"#b4c3d3",gray300:"var(--gray-300)",gray350:"var(--gray-350)",gray400:"var(--gray-400)",gray500:"var(--gray-500)",gray550:"var(--gray-550)",gray600:"var(--gray-600)",gray700:"var(--gray-700)",gray800:"var(--gray-800)",gray900:"var(--gray-900)",gray1000:"var(--gray-1000)",blue050:"var(--blue-050)",blue100:"var(--blue-100)",blue200:"var(--blue-200)",blue300:"var(--blue-300)",blue400:"var(--blue-400)",blue500:"var(--blue-500)",blue600:"var(--blue-600)",blue700:"var(--blue-700)",blue800:"var(--blue-800)",blue900:"var(--blue-900)",cyan050:"var(--cyan-050)",cyan100:"var(--cyan-100)",cyan200:"var(--cyan-200)",cyan300:"var(--cyan-300)",cyan400:"var(--cyan-400)",cyan500:"var(--cyan-500)",cyan600:"var(--cyan-600)",cyan700:"var(--cyan-700)",cyan800:"var(--cyan-800)",cyan900:"var(--cyan-900)",pink050:"var(--pink-050)",pink100:"var(--pink-100)",pink200:"var(--pink-200)",pink300:"var(--pink-300)",pink400:"var(--pink-400)",pink500:"var(--pink-500)",pink600:"var(--pink-600)",pink700:"var(--pink-700)",pink800:"var(--pink-800)",pink900:"var(--pink-900)",red050:"var(--red-050)",red100:"var(--red-100)",red200:"var(--red-200)",red300:"var(--red-300)",red400:"var(--red-400)",red500:"var(--red-500)",red600:"var(--red-600)",red700:"var(--red-700)",red800:"var(--red-800)",red900:"var(--red-900)",yellow050:"var(--yellow-050)",yellow100:"var(--yellow-100)",yellow200:"var(--yellow-200)",yellow300:"var(--yellow-300)",yellow400:"var(--yellow-400)",yellow500:"var(--yellow-500)",yellow600:"var(--yellow-600)",yellow700:"var(--yellow-700)",yellow800:"var(--yellow-800)",yellow900:"var(--yellow-900)",teal050:"var(--teal-050)",teal100:"var(--teal-100)",teal200:"var(--teal-200)",teal300:"var(--teal-300)",teal400:"var(--teal-400)",teal500:"var(--teal-500)",teal550:"var(--teal-550)",teal600:"var(--teal-600)",teal700:"var(--teal-700)",teal800:"var(--teal-800)",teal900:"var(--teal-900)"}},36260:function(e,t){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.APIError=t.API_ERROR=void 0,t.API_ERROR="api_error";var a=function(e){function n(n){var r=e.call(this,n.message)||this;return r.errors={},r.name=t.API_ERROR,r.status=n.response.status,r.errors=n.response.data.errors,r}return r(n,e),n}(Error);t.APIError=a},27121:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Fields=void 0,function(e){e.Checkboxes="Solspace\\Freeform\\Fields\\Implementations\\CheckboxesField",e.Checkbox="Solspace\\Freeform\\Fields\\Implementations\\CheckboxField",e.Dropdown="Solspace\\Freeform\\Fields\\Implementations\\DropdownField",e.Email="Solspace\\Freeform\\Fields\\Implementations\\EmailField",e.FileUpload="Solspace\\Freeform\\Fields\\Implementations\\FileUploadField",e.Hidden="Solspace\\Freeform\\Fields\\Implementations\\HiddenField",e.Html="Solspace\\Freeform\\Fields\\Implementations\\HtmlField",e.MultipleSelect="Solspace\\Freeform\\Fields\\Implementations\\MultipleSelectField",e.Number="Solspace\\Freeform\\Fields\\Implementations\\NumberField",e.Radios="Solspace\\Freeform\\Fields\\Implementations\\RadiosField",e.Textarea="Solspace\\Freeform\\Fields\\Implementations\\TextareaField",e.Text="Solspace\\Freeform\\Fields\\Implementations\\TextField",e.Calculation="Solspace\\Freeform\\Fields\\Implementations\\Pro\\CalculationField",e.Confirmation="Solspace\\Freeform\\Fields\\Implementations\\Pro\\ConfirmationField",e.Datetime="Solspace\\Freeform\\Fields\\Implementations\\DatetimeField",e.FileDragAndDrop="Solspace\\Freeform\\Fields\\Implementations\\Pro\\FileDragAndDropField",e.Group="Solspace\\Freeform\\Fields\\Implementations\\Pro\\GroupField",e.Invisible="Solspace\\Freeform\\Fields\\Implementations\\Pro\\InvisibleField",e.OpinionScale="Solspace\\Freeform\\Fields\\Implementations\\Pro\\OpinionScaleField",e.Password="Solspace\\Freeform\\Fields\\Implementations\\Pro\\PasswordField",e.Phone="Solspace\\Freeform\\Fields\\Implementations\\Pro\\PhoneField",e.Rating="Solspace\\Freeform\\Fields\\Implementations\\Pro\\RatingField",e.Regex="Solspace\\Freeform\\Fields\\Implementations\\Pro\\RegexField",e.RichText="Solspace\\Freeform\\Fields\\Implementations\\Pro\\RichTextField",e.Signature="Solspace\\Freeform\\Fields\\Implementations\\Pro\\SignatureField",e.Table="Solspace\\Freeform\\Fields\\Implementations\\Pro\\TableField",e.Website="Solspace\\Freeform\\Fields\\Implementations\\Pro\\WebsiteField"}(n||(t.Fields=n={}))},94234:function(e,t){var n,r,a;Object.defineProperty(t,"__esModule",{value:!0}),t.Type=t.Implementation=void 0,function(e){e.Options="options",e.GeneratedOptions="generatedOptions"}(n||(t.Implementation=n={})),function(e){e.Group="group",e.Rating="rating",e.OpinionScale="opinion-scale"}(r||(t.Type=r={})),function(e){e[e.NewField=0]="NewField",e[e.ExistingField=1]="ExistingField"}(a||(a={}))},39319:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TargetFieldType=void 0,function(e){e.Relation="relation",e.Custom="custom",e.Preset="preset"}(n||(t.TargetFieldType=n={}))},88863:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateType=void 0,function(e){e.Database="database",e.File="file"}(n||(t.TemplateType=n={}))},83287:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyType=void 0,function(e){e.Attributes="attributes",e.Boolean="bool",e.Checkboxes="checkboxes",e.Color="color",e.Calculation="calculation",e.ConditionalRules="conditionalRules",e.DateTime="dateTime",e.Field="field",e.FieldMapping="fieldMapping",e.FieldType="fieldType",e.Hidden="hidden",e.Integer="int",e.Label="label",e.MinMax="minMax",e.NotificationTemplate="notificationTemplate",e.Options="options",e.OptionPicker="optionPicker",e.PageButton="pageButton",e.SaveButton="saveButton",e.PageButtonsLayout="pageButtonsLayout",e.RecipientMapping="recipientMapping",e.Recipients="recipients",e.Select="select",e.DynamicSelect="dynamicSelect",e.AppStateSelect="appStateSelect",e.String="string",e.Table="table",e.TabularData="tabularData",e.Textarea="textarea",e.WYSIWYG="wysiwyg",e.CodeEditor="codeEditor"}(n||(t.PropertyType=n={})),function(e){e[e.NewField=0]="NewField",e[e.ExistingField=1]="ExistingField"}(r||(r={}))},75094:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.Combinator=t.Display=t.operatorTypes=void 0,t.operatorTypes={boolean:["equals","notEquals"],noValue:["isEmpty","isNotEmpty"],multiple:["isOneOf","isNotOneOf"],numeric:["equals","notEquals","greaterThan","greaterThanOrEquals","lessThan","lessThanOrEquals","isEmpty","isNotEmpty","isOneOf","isNotOneOf"],string:["equals","notEquals","contains","notContains","startsWith","endsWith","isEmpty","isNotEmpty","isOneOf","isNotOneOf"],negative:["notEquals","notContains"]},function(e){e.Show="show",e.Hide="hide"}(n||(t.Display=n={})),function(e){e.And="and",e.Or="or"}(r||(t.Combinator=r={}))},8454:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0;t.range=function(e,t){void 0===t&&(e>1?(t=e,e=1):(t=e,e=0));for(var n=[],r=e;r<=t;r++)n.push(r);return n}},26457:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.classes=t.elementTreeHasClass=void 0;t.elementTreeHasClass=function(e,t){if(void 0===t)return!1;if("string"==typeof t&&(t=t.split(" ")),!e||!e.classList)return!1;for(;e;){for(var n=0,r=t;na?a:e};t.inRange=function(e,t,n,r){void 0===r&&(r=!0);var a=Math.min(t,n),o=Math.max(t,n);return r?e>=a&&e<=o:e>a&&e"},{"name":"Less than or equal to","operator":"<="},{"name":"Greater than or equal to","operator":">="}]}]}')}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}o.m=r,e=[],o.O=function(t,n,r,a){if(!n){var i=1/0;for(c=0;c=a)&&Object.keys(o.O).every((function(e){return o.O[e](n[u])}))?n.splice(u--,1):(l=!1,a0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[n,r,a]},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var a=Object.create(null);o.r(a);var i={};t=t||[null,n({}),n([]),n(n)];for(var l=2&r&&e;"object"==typeof l&&!~t.indexOf(l);l=n(l))Object.getOwnPropertyNames(l).forEach((function(t){i[t]=function(){return e[t]}}));return i.default=function(){return e},o.d(a,i),a},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={47:0};o.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,a,i=n[0],l=n[1],u=n[2],d=0;if(i.some((function(t){return 0!==e[t]}))){for(r in l)o.o(l,r)&&(o.m[r]=l[r]);if(u)var c=u(o)}for(t&&t(n);d=n},isAtMost:function(e){var t=i.editions.tiers,n=t.indexOf(e);if(-1===n)throw new Error("Unknown edition: ".concat(e));return t.indexOf(i.editions.edition)<=n}}),limitations:r(r({},o.limitations),{can:function(e){var t,n=null===(t=i.limitations)||void 0===t?void 0:t.items;if(!n)return!0;for(var r=e.split("."),a=0;a10?"":"& > li {\n > label {\n padding-left: ".concat(10*e+20,"px;\n\n &.has-children {\n padding-left: ").concat(12*(e+1),"px;\n }\n }\n\n > ul {\n ").concat(m(e+1),"\n }\n }")};t.List=p.default.ul(o||(o=r(["\n margin: 0;\n padding: 0;\n\n ul {\n ","\n }\n"],["\n margin: 0;\n padding: 0;\n\n ul {\n ","\n }\n"])),m()),t.CheckMark=p.default.div(i||(i=r(["\n position: absolute;\n left: 8px;\n top: 7px;\n\n width: 16px;\n font-size: 18px;\n font-weight: bold;\n\n fill: ",";\n"],["\n position: absolute;\n left: 8px;\n top: 7px;\n\n width: 16px;\n font-size: 18px;\n font-weight: bold;\n\n fill: ",";\n"])),f.colors.gray500),t.LabelIcon=p.default.div(l||(l=r([""],[""]))),t.LabelContainer=p.default.div(u||(u=r(["\n display: inline-flex;\n justify-content: start;\n align-items: center;\n gap: ",";\n\n > svg {\n width: 16px;\n height: 16px;\n }\n"],["\n display: inline-flex;\n justify-content: start;\n align-items: center;\n gap: ",";\n\n > svg {\n width: 16px;\n height: 16px;\n }\n"])),f.spacings.sm),t.LabelValueDisplay=p.default.div(d||(d=r(["\n color: ",";\n font-size: 11px;\n font-style: italic;\n line-height: 11px;\n height: 11px;\n"],["\n color: ",";\n font-size: 11px;\n font-style: italic;\n line-height: 11px;\n height: 11px;\n"])),f.colors.gray300),t.Label=p.default.label(c||(c=r(["\n display: block;\n padding: 5px 14px 5px 30px;\n\n user-select: none;\n\n &:hover {\n cursor: pointer;\n background-color: ",";\n color: ",";\n\n "," {\n fill: ",";\n }\n }\n\n &.has-children {\n position: relative;\n\n padding-left: 12px;\n\n text-transform: uppercase;\n font-weight: bold;\n\n font-size: 12px;\n\n color: #7d8c9d;\n fill: currentColor;\n\n > "," {\n position: relative;\n\n padding: 0 10px;\n background-color: ",";\n\n z-index: 1;\n }\n\n &:hover {\n cursor: default;\n background-color: transparent;\n }\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 13px;\n\n height: 1px;\n background-color: ",";\n }\n }\n"],["\n display: block;\n padding: 5px 14px 5px 30px;\n\n user-select: none;\n\n &:hover {\n cursor: pointer;\n background-color: ",";\n color: ",";\n\n "," {\n fill: ",";\n }\n }\n\n &.has-children {\n position: relative;\n\n padding-left: 12px;\n\n text-transform: uppercase;\n font-weight: bold;\n\n font-size: 12px;\n\n color: #7d8c9d;\n fill: currentColor;\n\n > "," {\n position: relative;\n\n padding: 0 10px;\n background-color: ",";\n\n z-index: 1;\n }\n\n &:hover {\n cursor: default;\n background-color: transparent;\n }\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 13px;\n\n height: 1px;\n background-color: ",";\n }\n }\n"])),f.colors.gray500,f.colors.white,t.CheckMark,f.colors.white,t.LabelContainer,f.colors.gray050,f.colors.gray200),t.Item=p.default.li(s||(s=r(["\n position: relative;\n\n &.focused {\n > "," {\n background-color: #cfd8e3;\n color: ",";\n\n > "," {\n fill: ",";\n }\n }\n }\n\n &.has-children {\n > "," {\n }\n }\n\n &.empty {\n > "," {\n color: ",";\n font-style: italic;\n\n &:hover {\n color: ",";\n }\n }\n\n &.focused {\n > "," {\n background-color: transparent;\n\n &:hover {\n background-color: ",";\n color: ",";\n }\n\n > "," {\n fill: transparent;\n }\n }\n }\n }\n"],["\n position: relative;\n\n &.focused {\n > "," {\n background-color: #cfd8e3;\n color: ",";\n\n > "," {\n fill: ",";\n }\n }\n }\n\n &.has-children {\n > "," {\n }\n }\n\n &.empty {\n > "," {\n color: ",";\n font-style: italic;\n\n &:hover {\n color: ",";\n }\n }\n\n &.focused {\n > "," {\n background-color: transparent;\n\n &:hover {\n background-color: ",";\n color: ",";\n }\n\n > "," {\n fill: transparent;\n }\n }\n }\n }\n"])),t.Label,f.colors.gray700,t.CheckMark,f.colors.gray700,t.Label,t.Label,f.colors.gray300,f.colors.white,t.Label,f.colors.gray500,f.colors.white,t.CheckMark)},94789:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Options=void 0;var l=o(n(14041)),u=i(n(91797)),d=i(n(89661)),c=n(371);t.Options=function(e){var n=e.value,r=e.options,a=e.query,o=e.focusIndex,i=e.showValues,s=e.onChange,f=(0,l.useRef)([]);return(0,l.useEffect)((function(){f.current[o]&&f.current[o].scrollIntoView({behavior:"smooth",block:"nearest"})}),[o]),l.default.createElement(c.List,null,r&&r.map((function(e,r){var p,m,v;return"value"in e&&(p=e.value,m=e.shadowIndex),"children"in e&&(v=e.children),l.default.createElement(c.Item,{ref:function(e){void 0!==m&&(f.current[m]=e)},onClick:function(e){e.stopPropagation(),void 0!==p&&s&&s(p)},key:r,className:(0,u.default)(void 0!==v&&"has-children",p===n&&"selected",""===p&&"empty",m===o&&"focused")},l.default.createElement(c.Label,{className:(0,u.default)(void 0!==v&&"has-children")},!v&&n===p&&l.default.createElement(c.CheckMark,null,l.default.createElement(d.default,null)),l.default.createElement(c.LabelContainer,null,e.icon&&e.icon,e.label),i&&p&&p!==e.label&&l.default.createElement(c.LabelValueDisplay,null,p)),v&&l.default.createElement(t.Options,{options:v,value:n,query:a,focusIndex:o,onChange:s}))})))}},35699:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownWrapper=t.CloseButton=t.DropdownRollout=t.SpinnerWrapper=t.CurrentValue=t.ListWrapper=t.Search=void 0;var o,i,l,u,d,c,s,f=n(37043),p=n(49974),m=n(82919),v=a(n(10530));t.Search=v.default.input(o||(o=r(["\n width: 100%;\n padding: 7px 30px 7px 10px;\n\n border-bottom: 1px solid ",";\n\n &:focus,\n &:active,\n &:hover {\n box-shadow: none;\n outline: none;\n }\n"],["\n width: 100%;\n padding: 7px 30px 7px 10px;\n\n border-bottom: 1px solid ",";\n\n &:focus,\n &:active,\n &:hover {\n box-shadow: none;\n outline: none;\n }\n"])),m.colors.hairline),t.ListWrapper=v.default.div(i||(i=r(["\n max-height: 300px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ",";\n"],["\n max-height: 300px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ",";\n"])),p.scrollBar),t.CurrentValue=v.default.div(l||(l=r(["\n cursor: pointer;\n position: relative;\n\n display: flex;\n justify-content: start;\n gap: ",";\n\n background-color: #dfe5ec;\n border-radius: ",";\n\n padding: 7px 22px 7px 10px;\n\n &.empty > span {\n color: ",";\n font-style: italic;\n }\n\n > span {\n min-height: 20px;\n }\n\n &:hover {\n box-shadow: var(--focus-ring);\n outline-color: transparent;\n }\n\n &:after {\n content: '';\n position: absolute;\n top: calc(50% - 5px);\n right: 9px;\n\n display: block;\n width: 7px;\n height: 7px;\n\n opacity: 0.8;\n border: solid;\n border-width: 0 2px 2px 0;\n\n font-size: 0;\n\n transform: rotate(45deg);\n\n user-select: none;\n pointer-events: none;\n }\n"],["\n cursor: pointer;\n position: relative;\n\n display: flex;\n justify-content: start;\n gap: ",";\n\n background-color: #dfe5ec;\n border-radius: ",";\n\n padding: 7px 22px 7px 10px;\n\n &.empty > span {\n color: ",";\n font-style: italic;\n }\n\n > span {\n min-height: 20px;\n }\n\n &:hover {\n box-shadow: var(--focus-ring);\n outline-color: transparent;\n }\n\n &:after {\n content: '';\n position: absolute;\n top: calc(50% - 5px);\n right: 9px;\n\n display: block;\n width: 7px;\n height: 7px;\n\n opacity: 0.8;\n border: solid;\n border-width: 0 2px 2px 0;\n\n font-size: 0;\n\n transform: rotate(45deg);\n\n user-select: none;\n pointer-events: none;\n }\n"])),m.spacings.sm,m.borderRadius.lg,m.colors.gray300),t.SpinnerWrapper=v.default.div(u||(u=r(["\n > svg {\n fill: currentColor;\n width: 20px;\n height: 20px;\n }\n"],["\n > svg {\n fill: currentColor;\n width: 20px;\n height: 20px;\n }\n"]))),t.DropdownRollout=(0,v.default)(f.animated.div)(d||(d=r(["\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n\n overflow: hidden;\n z-index: 1000;\n"],["\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n\n overflow: hidden;\n z-index: 1000;\n"])),m.colors.gray050,m.borderRadius.lg,m.shadows.container),t.CloseButton=v.default.button(c||(c=r(["\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 30px;\n height: 34px;\n\n cursor: pointer;\n\n &:hover {\n background-color: ",";\n }\n"],["\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 30px;\n height: 34px;\n\n cursor: pointer;\n\n &:hover {\n background-color: ",";\n }\n"])),m.colors.gray050),t.DropdownWrapper=v.default.div(s||(s=r(["\n position: relative;\n\n &.open {\n "," {\n display: block;\n }\n\n "," {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n\n &:hover {\n box-shadow: none;\n outline-color: transparent;\n }\n }\n }\n"],["\n position: relative;\n\n &.open {\n "," {\n display: block;\n }\n\n "," {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n\n &:hover {\n box-shadow: none;\n outline-color: transparent;\n }\n }\n }\n"])),t.DropdownRollout,t.CurrentValue)},83749:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Dropdown=void 0;var l=o(n(14041)),u=n(32068),d=i(n(34899)),c=n(67902),s=n(2468),f=n(36712),p=i(n(91797)),m=i(n(40921)),v=n(76540),h=i(n(16905)),g=n(76111),b=n(94789),y=n(35699);t.Dropdown=function(e){var t=e.emptyOption,n=e.value,r=e.options,a=e.showValues,o=e.onChange,i=e.loading,_=void 0!==i&&i,x=(0,l.useState)(!1),w=x[0],E=x[1],O=(0,l.useState)(""),P=O[0],j=O[1],k=(0,l.useState)(0),M=k[0],C=k[1],S=(0,l.useRef)(null),F=(0,l.useRef)(null),T=(0,s.useClickOutside)({callback:function(){return E(!1)},isEnabled:w,excludeClassNames:["dropdown-rollout"]}),D=(0,u.useEditorAnimations)({wrapper:T.current,editor:F.current,isEditing:w}).editorAnimation,L=(0,l.useCallback)((function(){_||E(!w)}),[_,w]);t&&(t=(0,m.default)(t));var R=(0,g.useFilteredOptions)(r,P,t),B=R[0],A=R[1],I=(0,l.useMemo)((function(){return(0,g.findLabelByValue)(r,n)||t}),[r,n,_]),W=(0,l.useMemo)((function(){return(0,g.findShadowIndexByValue)(B,n)}),[r,n,_]);(0,c.useEscapeStack)((function(){return E(!1)}),w),(0,f.useOnKeypress)({meetsCondition:w,type:"keydown",callback:function(e){"ArrowDown"===e.key&&M0&&C((function(e){return e-1}))}},[M,A]),(0,f.useOnKeypress)({meetsCondition:w,type:"keyup",callback:function(e){if("Enter"===e.key){var t=(0,g.findValueByShadowIndex)(B,M);o&&o(t),E(!1)}}},[B,M]),(0,l.useEffect)((function(){_&&w&&E(!1)}),[_]),(0,l.useEffect)((function(){var e;w?(null===(e=S.current)||void 0===e||e.focus(),C(W||0)):j("")}),[w,P]);var N=(0,l.useCallback)((function(e){o&&o(e),E(!1)}),[o]);return l.default.createElement(y.DropdownWrapper,{ref:T,className:(0,p.default)(w&&"open"),onClick:L},l.default.createElement(y.CurrentValue,{className:(0,p.default)(_&&"disabled",""===n&&"empty")},l.default.createElement("span",null,I),_&&l.default.createElement(y.SpinnerWrapper,null,l.default.createElement(d.default,null))),l.default.createElement(v.PopUpPortal,null,w&&l.default.createElement(y.DropdownRollout,{className:"dropdown-rollout",ref:F,style:D},l.default.createElement(y.CloseButton,null,l.default.createElement(h.default,null)),l.default.createElement(y.Search,{placeholder:(0,m.default)("Search..."),ref:S,value:P,onClick:function(e){return e.stopPropagation()},onKeyDown:function(e){["ArrowUp","ArrowDown"].includes(e.key)&&e.preventDefault()},onChange:function(e){return j(e.target.value)}}),l.default.createElement(y.ListWrapper,null,l.default.createElement(b.Options,{options:B,value:n,focusIndex:M,showValues:a,onChange:N})))))}},51607:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HelpText=void 0;var o,i=a(n(14041)),l=n(82919),u=a(n(10530)).default.div(o||(o=r(["\n font-style: italic;\n font-size: 12px;\n line-height: 18px;\n padding-top: 6px;\n color: ",";\n"],["\n font-style: italic;\n font-size: 12px;\n line-height: 18px;\n padding-top: 6px;\n color: ",";\n"])),l.colors.gray300);t.HelpText=function(e){var t=e.children;return i.default.createElement(u,null,t)}},76540:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PopUpPortal=void 0;var r=n(43144),a=n(2397);t.PopUpPortal=function(e){var t=e.children,n=(0,a.usePortal)().element;return n?(0,r.createPortal)(t,n):null}},11245:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useRemoveAnimation=void 0;var r=n(37043),a=n(82919);t.useRemoveAnimation=function(e){var t=e.active,n=e.hovering;return(0,r.useSpring)({opacity:t?1:0,background:n?a.colors.error:"transparent",fill:n?"#fff":a.colors.gray300,scale:n?1.2:1,rotate:t?0:30,config:function(e){switch(e){case"background":case"color":return{tension:330,friction:20};default:return{tension:330,friction:15}}}})}},20720:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveButtonWrapper=void 0;var o,i=n(37043),l=a(n(10530));t.RemoveButtonWrapper=(0,l.default)(i.animated.button)(o||(o=r(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 20px;\n height: 20px;\n\n font-size: 16px;\n\n border-radius: 50%;\n padding: 3px;\n\n svg {\n color: currentColor;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 20px;\n height: 20px;\n\n font-size: 16px;\n\n border-radius: 50%;\n padding: 3px;\n\n svg {\n color: currentColor;\n }\n"])))},90574:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveButton=void 0;var l=o(n(14041)),u=n(12888),d=i(n(73654)),c=n(11245),s=n(20720);t.RemoveButton=function(e){var t=e.active,n=e.onClick,r=(0,l.useRef)(null),a=(0,u.useHover)(r),o=(0,c.useRemoveAnimation)({active:t,hovering:a});return l.default.createElement(s.RemoveButtonWrapper,{ref:r,style:o,onClick:function(e){e.stopPropagation(),n&&n()}},l.default.createElement(d.default,null))}},51879:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TokenInputWrapper=void 0;var o,i=n(82919),l=a(n(10530));t.TokenInputWrapper=l.default.div(o||(o=r(["\n .tagify {\n --tag-bg: ",";\n --tag-pad: 4px 7px;\n\n width: 100%;\n min-height: 2.125rem;\n padding: 5px 5px;\n\n box-sizing: border-box;\n background-color: ",";\n\n border: 1px solid rgba(96, 125, 159, 0.25);\n border-radius: ",";\n\n gap: 5px;\n\n &__tag {\n margin-inline: 0;\n margin-block: 0;\n }\n\n &__input {\n margin: 0;\n min-width: 1px !important;\n }\n }\n"],["\n .tagify {\n --tag-bg: ",";\n --tag-pad: 4px 7px;\n\n width: 100%;\n min-height: 2.125rem;\n padding: 5px 5px;\n\n box-sizing: border-box;\n background-color: ",";\n\n border: 1px solid rgba(96, 125, 159, 0.25);\n border-radius: ",";\n\n gap: 5px;\n\n &__tag {\n margin-inline: 0;\n margin-block: 0;\n }\n\n &__input {\n margin: 0;\n min-width: 1px !important;\n }\n }\n"])),i.colors.gray100,i.colors.white,i.borderRadius.md)},50249:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TokenInput=void 0;var l=o(n(14041)),u=i(n(40626)),d=n(51879);n(61991);t.TokenInput=function(e){var t=e.value,n=e.options,r=void 0===n?[]:n,a=e.onChange,o=e.allowCustom,i=e.placeholder,c=(0,l.useRef)(null);return l.default.createElement(d.TokenInputWrapper,null,l.default.createElement(u.default,{tagifyRef:c,placeholder:i,settings:{tagTextProp:"name",enforceWhitelist:!o,whitelist:r,dropdown:{mapValueTo:"name",enabled:0}},value:t,onChange:function(e){return a(e.detail.tagify.getCleanValue().map((function(e){return e.value})))}}))}},41091:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyBlockWrapper=t.Subtitle=t.LiteTitle=t.Title=t.Icon=void 0;var o,i,l,u,d,c=n(82919),s=a(n(10530));t.Icon=s.default.div(o||(o=r(["\n font-size: 10rem;\n margin: 0 0 1.5rem;\n\n svg {\n min-width: 160px;\n min-height: 160px;\n }\n\n &.fade {\n svg {\n fill: #a1a5aa;\n opacity: 0.5;\n }\n }\n"],["\n font-size: 10rem;\n margin: 0 0 1.5rem;\n\n svg {\n min-width: 160px;\n min-height: 160px;\n }\n\n &.fade {\n svg {\n fill: #a1a5aa;\n opacity: 0.5;\n }\n }\n"]))),t.Title=s.default.h2(i||(i=r(["\n margin: 0;\n padding: 0;\n\n font-size: 1.5rem;\n color: ",";\n"],["\n margin: 0;\n padding: 0;\n\n font-size: 1.5rem;\n color: ",";\n"])),c.colors.gray500),t.LiteTitle=s.default.h2(l||(l=r(["\n margin: 0;\n padding: 0;\n\n font-size: 1.2rem;\n font-weight: normal;\n color: ",";\n"],["\n margin: 0;\n padding: 0;\n\n font-size: 1.2rem;\n font-weight: normal;\n color: ",";\n"])),c.colors.gray500),t.Subtitle=s.default.p(u||(u=r(["\n margin: 0;\n padding: 0;\n\n font-size: 1rem;\n color: ",";\n\n &:not(:last-child) {\n padding-bottom: 1.5rem;\n }\n"],["\n margin: 0;\n padding: 0;\n\n font-size: 1rem;\n color: ",";\n\n &:not(:last-child) {\n padding-bottom: 1.5rem;\n }\n"])),c.colors.gray300),t.EmptyBlockWrapper=s.default.div(d||(d=r(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 5px;\n\n height: 100%;\n\n &.padded {\n padding: 3rem 1rem;\n }\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 5px;\n\n height: 100%;\n\n &.padded {\n padding: 3rem 1rem;\n }\n"])))},29557:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyBlock=void 0;var a=r(n(14041)),o=r(n(91797)),i=n(41091);t.EmptyBlock=function(e){var t=e.title,n=e.subtitle,r=e.icon,l=e.iconFade,u=e.lite,d=e.children;return u?a.default.createElement(i.EmptyBlockWrapper,{className:"padded"},a.default.createElement(i.LiteTitle,null,t)):a.default.createElement(i.EmptyBlockWrapper,null,r&&a.default.createElement(i.Icon,{className:(0,o.default)(l&&"fade")},r),t&&a.default.createElement(i.Title,null,t),n&&a.default.createElement(i.Subtitle,null,n),d)}},35048:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiErrorsBlock=void 0;var a=r(n(14041));t.ApiErrorsBlock=function(e){var t,n,r=e.category,o=e.handle,i=null===(n=null===(t=e.error.errors)||void 0===t?void 0:t[r])||void 0===n?void 0:n[o];return i?a.default.createElement("ul",{className:"errors"},i.map((function(e,t){return a.default.createElement("li",{key:t},a.default.createElement("span",{className:"visually-hidden"},"Error:"),e)}))):null}},77913:function(e,t,n){var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBoundary=void 0;var i=o(n(14041)),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={hasError:!1},n}return a(t,e),t.getDerivedStateFromError=function(){return{hasError:!0}},t.prototype.componentDidCatch=function(e,t){console.error(e,t)},t.prototype.render=function(){return this.state.hasError?i.default.createElement("div",null,this.props.message):this.props.children},t}(i.default.Component);t.ErrorBoundary=l},4645:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useRenderContext=t.RenderContextProvider=void 0;var i=n(14041),l=o(n(14041)),u=(0,l.createContext)({size:"normal"});t.RenderContextProvider=function(e){var t=e.size,n=e.children;return l.default.createElement(u.Provider,{value:{size:null!=t?t:"normal"}},n)};t.useRenderContext=function(){return(0,i.useContext)(u)}},23746:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useZIndex=t.ZIndexContextProvider=void 0;var i=n(14041),l=o(n(14041)),u=(0,l.createContext)({register:function(){return 1e3},unregister:function(){}});t.ZIndexContextProvider=function(e){var t=e.children,n=(0,i.useRef)(1e3);return l.default.createElement(u.Provider,{value:{register:function(){return n.current-=1,n.current},unregister:function(){n.current+=1}}},t)};t.useZIndex=function(){var e=(0,i.useContext)(u),t=e.register,n=e.unregister,r=(0,i.useState)(1e3),a=r[0],o=r[1];return(0,i.useEffect)((function(){var e=t();return o(e),function(){n()}}),[t,n]),a}},62641:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(14041)),o=n(68479),i=n(83749),l=n(85151),u=n(60914),d=n(53630);t.default=function(e){var t=e.value,n=e.property,r=e.errors,c=e.updateValue,s=n.source,f=n.optionValue,p=n.optionLabel,m=n.filters,v=n.emptyOption,h=(0,o.useStore)().getState(),g=(0,d.extractParameter)(h,s),b=[];return g.forEach((function(e,t){(0,u.filterTest)(m,e)&&b.push({label:p?(0,d.extractParameter)(e,p):e,value:f?(0,d.extractParameter)(e,f):t})})),a.default.createElement(l.Control,{property:n,errors:r},a.default.createElement(i.Dropdown,{value:t,onChange:c,emptyOption:v,options:b}))}},54344:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeContainer=t.AttributeTabContent=t.AttributeTypeTabs=t.AttributeEditorWrapper=void 0;var o,i,l,u,d=n(98974),c=n(82919),s=a(n(10530)),f=n(70225);t.AttributeEditorWrapper=(0,s.default)(f.PreviewEditor)(o||(o=r(["\n gap: 0;\n padding: 0;\n"],["\n gap: 0;\n padding: 0;\n"]))),t.AttributeTypeTabs=(0,s.default)(d.TabsWrapper)(i||(i=r(["\n width: 100%;\n overflow: hidden;\n align-self: flex-start;\n\n padding: "," "," 0;\n box-shadow: ",";\n"],["\n width: 100%;\n overflow: hidden;\n align-self: flex-start;\n\n padding: "," "," 0;\n box-shadow: ",";\n"])),c.spacings.md,c.spacings.md,c.shadows.bottom),t.AttributeTabContent=s.default.div(l||(l=r(["\n padding: ",";\n\n background: ",";\n"],["\n padding: ",";\n\n background: ",";\n"])),c.spacings.md,c.colors.white),t.AttributeContainer=(0,s.default)(f.PreviewEditorContainer)(u||(u=r([""],[""])))},28742:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributesEditor=void 0;var l=o(n(14041)),u=n(51607),d=i(n(27174)),c=i(n(91797)),s=i(n(40921)),f=n(10448),p=n(15100),m=n(54344),v=n(85934),h=n(23293);t.AttributesEditor=function(e){var t=e.property,n=e.attributes,r=e.updateValue,a=t.tabs||[],o=(0,l.useState)(a.at(0)),i=o[0],g=o[1],b=Object.entries(n).find((function(e){return e[0]===i.handle}))||[i.handle,[]],y=b[0],_=b[1],x=(0,f.useCellNavigation)(_.length,2),w=x.activeCell,E=x.setActiveCell,O=x.setCellRef,P=x.keyPressHandler;if((0,l.useEffect)((function(){E(0,0)}),[y]),!y||!_)return null;var j=function(e,t,a){E(void 0!==a?a+1:e,t),r((0,h.addAttribute)(y,n,void 0!==a?a:_.length-1))};return l.default.createElement(m.AttributeEditorWrapper,null,l.default.createElement(m.AttributeTypeTabs,null,t.tabs&&t.tabs.map((function(e){return l.default.createElement("a",{key:e.handle,className:(0,c.default)(e===i&&"active"),onClick:function(){return g(e)}},(0,s.default)(e.label))}))),l.default.createElement(m.AttributeTabContent,null,l.default.createElement(v.InputPreview,{tab:i,attributes:_}),l.default.createElement(m.AttributeContainer,null,l.default.createElement(p.TabularOptions,null,l.default.createElement("tbody",null,!_.length&&l.default.createElement(p.Row,null,l.default.createElement(p.Cell,null,l.default.createElement(p.Input,{type:"text",placeholder:(0,s.default)("Attribute"),onFocus:function(){j(0,0)}})),l.default.createElement(p.Cell,null,l.default.createElement(p.Input,{type:"text",placeholder:(0,s.default)("Value"),onFocus:function(){j(0,1)}}))),_.map((function(e,t){var a=e[0],o=e[1];return l.default.createElement(p.Row,{key:t},l.default.createElement(p.Cell,null,l.default.createElement(p.Input,{type:"text",value:String(a),placeholder:(0,s.default)("Attribute"),autoFocus:w==="".concat(t,":0"),ref:function(e){return O(e,t,0)},onFocus:function(){return E(t,0)},onKeyDown:P({onEnter:function(e){j(e.shiftKey?t:_.length,0,e.shiftKey?t:void 0)}}),onChange:function(e){r((0,h.updateAttribute)(t,y,[e.target.value,o],n))}})),l.default.createElement(p.Cell,null,l.default.createElement(p.Input,{type:"text",value:String(o),placeholder:(0,s.default)("Value"),autoFocus:w==="".concat(t,":1"),ref:function(e){return O(e,t,1)},onFocus:function(){return E(t,1)},onKeyDown:P({onEnter:function(e){j(e.shiftKey?t:_.length,1,e.shiftKey?t:void 0)}}),onChange:function(e){r((0,h.updateAttribute)(t,y,[a,e.target.value],n))}})),l.default.createElement(p.Cell,{$tiny:!0},l.default.createElement(p.Button,{tabIndex:-1,onClick:function(){r((0,h.deleteAttribute)(t,y,n)),E(Math.max(t-1,0),0)}},l.default.createElement(d.default,null))))}))))),l.default.createElement("br",null),l.default.createElement(u.HelpText,null,l.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,s.default)("Press enter while editing a cell to add a new row.")}}))))}},48464:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Value=t.Quote=t.Operator=t.Name=t.CodeBlock=void 0;var o,i,l,u,d,c=n(82919),s=a(n(10530));t.CodeBlock=s.default.div(o||(o=r(["\n position: relative;\n\n padding: "," ",";\n\n font-family: monospace;\n\n background: ",";\n border: 1px solid ",";\n border-bottom: none;\n border-radius: "," "," 0 0;\n"],["\n position: relative;\n\n padding: "," ",";\n\n font-family: monospace;\n\n background: ",";\n border: 1px solid ",";\n border-bottom: none;\n border-radius: "," "," 0 0;\n"])),c.spacings.sm,c.spacings.md,c.colors.gray050,c.colors.hairline,c.borderRadius.lg,c.borderRadius.lg),t.Name=s.default.span(i||(i=r(["\n color: ",";\n"],["\n color: ",";\n"])),c.colors.teal700),t.Operator=s.default.span(l||(l=r(["\n color: ",";\n"],["\n color: ",";\n"])),c.colors.gray300),t.Quote=s.default.span(u||(u=r(["\n &:before {\n content: '\"';\n color: ",";\n }\n"],["\n &:before {\n content: '\"';\n color: ",";\n }\n"])),c.colors.gray300),t.Value=s.default.span(d||(d=r(["\n color: ",";\n"],["\n color: ",";\n"])),c.colors.red300)},85934:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputPreview=void 0;var a=r(n(14041)),o=n(48464),i=n(23293);t.InputPreview=function(e){var t=e.tab,n=e.attributes;return a.default.createElement(o.CodeBlock,null,"<",t.previewTag,(0,i.attributesToArray)(n).map((function(e,t){var n=e[0],r=e[1];return a.default.createElement("span",{key:t},a.default.createElement(o.Name,null," ",n),!!r&&a.default.createElement(a.default.Fragment,null,a.default.createElement(o.Operator,null,"="),a.default.createElement(o.Quote,null),a.default.createElement(o.Value,null,r),a.default.createElement(o.Quote,null)))}))," />")}},23293:function(e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n\n \n
\n

\n field:').concat(e.value,"

\n
\n ")}},whitelist:v},onChange:g,value:o})),l.default.createElement(p.CalculationBoxHelp,null))}},42354:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Operator=t.OperatorReferenceItem=t.OperatorReference=t.OperatorReferenceTitle=void 0;var o,i,l,u,d=n(82919),c=a(n(10530));t.OperatorReferenceTitle=c.default.div(o||(o=r(["\n font-style: italic;\n font-weight: 500;\n font-size: 14px;\n color: ",";\n break-inside: avoid;\n"],["\n font-style: italic;\n font-weight: 500;\n font-size: 14px;\n color: ",";\n break-inside: avoid;\n"])),d.colors.gray400),t.OperatorReference=c.default.div(i||(i=r(["\n column-count: 4;\n"],["\n column-count: 4;\n"]))),t.OperatorReferenceItem=c.default.div(l||(l=r(["\n font-size: 12px;\n break-inside: avoid;\n color: ",";\n margin: 0 0 0.8rem;\n display: flex;\n flex-direction: column;\n gap: ",";\n\n > span {\n font-size: 14px;\n font-weight: 500;\n }\n"],["\n font-size: 12px;\n break-inside: avoid;\n color: ",";\n margin: 0 0 0.8rem;\n display: flex;\n flex-direction: column;\n gap: ",";\n\n > span {\n font-size: 14px;\n font-weight: 500;\n }\n"])),d.colors.gray300,d.spacings.xs),t.Operator=c.default.div(u||(u=r(["\n display: flex;\n\n > mark {\n font-size: 12px;\n font-family: 'Courier New', Courier, monospace;\n padding: 0 ",";\n border-radius: ",";\n background: ",";\n color: ",";\n margin-right: ",";\n max-height: 20px;\n }\n"],["\n display: flex;\n\n > mark {\n font-size: 12px;\n font-family: 'Courier New', Courier, monospace;\n padding: 0 ",";\n border-radius: ",";\n background: ",";\n color: ",";\n margin-right: ",";\n max-height: 20px;\n }\n"])),d.spacings.xs,d.borderRadius.md,d.colors.gray100,d.colors.gray500,d.spacings.md)},10244:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CalculationBoxHelp=void 0;var a=r(n(14041)),o=r(n(40921)),i=r(n(97476)),l=n(42354);t.CalculationBoxHelp=function(){var e=i.default;return a.default.createElement(a.default.Fragment,null,a.default.createElement(l.OperatorReferenceTitle,null,(0,o.default)(e.title)),a.default.createElement(l.OperatorReference,null,e.operators.map((function(e){return a.default.createElement(l.OperatorReferenceItem,{key:e.title},a.default.createElement("span",null,(0,o.default)(e.title)),e.items.map((function(e){return a.default.createElement(l.Operator,{key:e.operator},a.default.createElement("mark",null,e.operator),e.name&&a.default.createElement("span",null,(0,o.default)(e.name)))})))}))))}},51755:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useCalculationFieldHandles=t.generateValue=void 0;var r=n(68479),a=n(85905);t.generateValue=function(e,t){return e.replace(/field:([a-zA-Z0-9_]+)/g,(function(e,n){return"..."===t?"".concat(n,""):"[[".concat(n,"]]")}))};t.useCalculationFieldHandles=function(e){return(0,r.useSelector)(a.fieldSelectors.all).filter((function(t){return e.availableFieldTypes.includes(t.typeClass)})).map((function(e){return e.properties.handle}))}},97651:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewContainer=void 0;var o,i=n(82919),l=a(n(10530)),u=n(75111);t.PreviewContainer=(0,l.default)(u.PreviewTable)(o||(o=r(["\n padding: ",";\n\n mark {\n padding: "," ",";\n border-radius: ",";\n background: ",";\n }\n"],["\n padding: ",";\n\n mark {\n padding: "," ",";\n border-radius: ",";\n background: ",";\n }\n"])),i.spacings.sm,i.spacings.xs,i.spacings.sm,i.borderRadius.lg,i.colors.gray100)},14309:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CalculationBoxPreview=void 0;var a=r(n(14041)),o=r(n(40921)),i=n(75111),l=n(51755),u=n(97651);t.CalculationBoxPreview=function(e){var t=e.value;return a.default.createElement(i.PreviewWrapper,{"data-edit":(0,o.default)("Click to edit data")},a.default.createElement(u.PreviewContainer,null,!t&&a.default.createElement(i.NoContent,null,(0,o.default)("Not configured yet")),a.default.createElement("div",{style:{lineHeight:"2.0"},dangerouslySetInnerHTML:{__html:(0,l.generateValue)(t,"...")}})))}},10267:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(14041)),o=n(81223),i=n(85151),l=n(94158),u=n(14309);n(61991);t.default=function(e){var t=e.value,n=e.property,r=e.errors,d=e.updateValue;return a.default.createElement(i.Control,{property:n,errors:r},a.default.createElement(o.PreviewableComponent,{preview:a.default.createElement(u.CalculationBoxPreview,{value:t})},a.default.createElement(l.CalculationBoxEditor,{value:t,property:n,updateValue:d})))}},81229:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxesWrapper=t.SelectAllWrapper=void 0;var o,i,l=n(82919),u=a(n(10530));t.SelectAllWrapper=u.default.div(o||(o=r(["\n position: relative;\n\n padding-bottom: 5px;\n margin-bottom: 5px;\n font-style: italic;\n\n &:after {\n content: '';\n position: absolute;\n left: -5px;\n right: -5px;\n bottom: 0;\n\n display: block;\n height: 1px;\n\n box-shadow: ",";\n }\n"],["\n position: relative;\n\n padding-bottom: 5px;\n margin-bottom: 5px;\n font-style: italic;\n\n &:after {\n content: '';\n position: absolute;\n left: -5px;\n right: -5px;\n bottom: 0;\n\n display: block;\n height: 1px;\n\n box-shadow: ",";\n }\n"])),l.shadows.bottom),t.CheckboxesWrapper=u.default.div(i||(i=r(["\n columns: ",";\n\n label {\n display: block;\n max-width: 100%;\n padding: 0 10px;\n\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"],["\n columns: ",";\n\n label {\n display: block;\n max-width: 100%;\n padding: 0 10px;\n\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"])),(function(e){return e.$columns||1}))},85443:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a svg {\n width: 100%;\n height: 100%;\n\n color: ",";\n }\n"],["\n position: absolute;\n top: 0;\n right: -25px;\n\n opacity: 0;\n\n width: 20px;\n height: 20px;\n\n > svg {\n width: 100%;\n height: 100%;\n\n color: ",";\n }\n"])),c.colors.gray400),t.RemoveButton=(0,s.default)(d.animated.button)(l||(l=r(["\n position: absolute;\n top: 0;\n right: -50px;\n\n opacity: 0;\n\n width: 20px;\n height: 20px;\n\n > svg {\n width: 100%;\n height: 100%;\n\n color: ",";\n }\n"],["\n position: absolute;\n top: 0;\n right: -50px;\n\n opacity: 0;\n\n width: 20px;\n height: 20px;\n\n > svg {\n width: 100%;\n height: 100%;\n\n color: ",";\n }\n"])),c.colors.gray400),t.LabelElement=(0,s.default)(d.animated.h1)(u||(u=r(["\n cursor: pointer;\n\n min-height: 10px;\n\n margin: 0 0 0 -8px;\n padding: "," 40px "," ",";\n\n border: 0;\n border-radius: ",";\n\n > span {\n position: relative;\n display: inline-block;\n\n > span:empty:after {\n content: 'No Title';\n\n color: ",";\n font-style: italic;\n }\n }\n"],["\n cursor: pointer;\n\n min-height: 10px;\n\n margin: 0 0 0 -8px;\n padding: "," 40px "," ",";\n\n border: 0;\n border-radius: ",";\n\n > span {\n position: relative;\n display: inline-block;\n\n > span:empty:after {\n content: 'No Title';\n\n color: ",";\n font-style: italic;\n }\n }\n"])),c.spacings.sm,c.spacings.sm,c.spacings.sm,c.borderRadius.lg,c.colors.gray300)},71247:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(n(14041)),u=n(64437),d=i(n(91797)),c=i(n(47562)),s=n(29900),f=n(51673);t.default=function(e){var t=e.value,n=e.property,r=e.errors,a=e.updateValue,o=(0,l.useState)(!1),i=o[0],p=o[1],m=(0,l.useState)(!1),v=m[0],h=m[1],g=n.handle,b=(0,l.useRef)(null),y=(0,s.useLabelAnimation)(i),_=(0,s.useEditButtonAnimations)(i);return l.default.createElement(f.EditableLabelWrapper,{className:(0,d.default)((null==r?void 0:r.length)>0&&"errors")},v&&l.default.createElement("input",{id:g,ref:b,type:"text",className:"text fullwidth",value:t||"",onChange:function(e){return a(e.target.value)},onBlur:function(){return h(!1)},onKeyDown:function(e){"Enter"===e.key&&h(!1)}}),!v&&l.default.createElement(f.LabelElement,{style:y,onClick:function(){h(!0),p(!1),setTimeout((function(){var e;null===(e=b.current)||void 0===e||e.focus()}),3)},onMouseEnter:function(){return p(!0)},onMouseLeave:function(){return p(!1)}},l.default.createElement("span",null,l.default.createElement("span",null,t),l.default.createElement(f.EditButton,{style:_},l.default.createElement(c.default,null)))),l.default.createElement(u.FormErrorList,{errors:r}))}},83053:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MaxInput=t.MinInput=t.Wrapper=void 0;var o=a(n(10530));t.Wrapper=o.default.div(i||(i=r(["\n display: flex;\n"],["\n display: flex;\n"])));var i,l,u,d,c=o.default.input(l||(l=r(["\n width: 100%;\n --focus-ring: 0;\n"],["\n width: 100%;\n --focus-ring: 0;\n"])));t.MinInput=(0,o.default)(c)(u||(u=r(["\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n"],["\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n"]))),t.MaxInput=(0,o.default)(c)(d||(d=r(["\n border-left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n"],["\n border-left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n"])))},45251:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(14041)),o=n(85151),i=n(83053);t.default=function(e){var t,n=e.value,r=e.property,l=e.errors,u=e.updateValue,d=e.context,c=n||[null,null],s=c[0],f=c[1],p=(null===(t=d.properties)||void 0===t?void 0:t.allowNegative)?null:0;return a.default.createElement(o.Control,{property:r,errors:l},a.default.createElement(i.Wrapper,null,a.default.createElement("div",null,a.default.createElement(i.MinInput,{id:"min",value:null===s?"":s,type:"number",min:p,className:"text",placeholder:"Min",onChange:function(e){var t=e.target,n=""!==t.value?Number(t.value):null;u([n,f])}})),a.default.createElement("div",null,a.default.createElement(i.MaxInput,{id:"max",value:null===f?"":f,type:"number",min:p,className:"text",placeholder:"Max",onChange:function(e){var t=e.target,n=""!==t.value?Number(t.value):null;u([s,n])}}))))}},11097:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldSelect=void 0;var a=r(n(14041)),o=n(83749),i=n(13301),l=r(n(40921));t.FieldSelect=function(e){var t=e.value,n=e.onChange,r=(0,i.useFieldOptionCollection)();return a.default.createElement(o.Dropdown,{options:r,emptyOption:(0,l.default)("Do not map this field"),value:t,onChange:n})}},21808:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o.default.createElement(v.TypeButton,{title:(0,c.default)("Pre-defined options"),className:(0,d.default)(a.type===u.TargetFieldType.Preset&&"active"),onClick:function(){return h(e.id,u.TargetFieldType.Preset)}},o.default.createElement(f.default,null)),o.default.createElement(v.TypeButton,{title:(0,c.default)("Twig code"),className:(0,d.default)(a.type===u.TargetFieldType.Custom&&"active"),onClick:function(){return h(e.id,u.TargetFieldType.Custom)}},o.default.createElement(s.default,null)),o.default.createElement(v.TypeButton,{title:(0,c.default)("Freeform field"),className:(0,d.default)(a.type===u.TargetFieldType.Relation&&"active"),onClick:function(){return h(e.id,u.TargetFieldType.Relation)}},o.default.createElement(p.default,null))),o.default.createElement("div",null,a.type===u.TargetFieldType.Preset&&o.default.createElement(i.Dropdown,{value:null==a?void 0:a.value,showValues:!0,emptyOption:(0,c.default)("Select an option"),onChange:function(t){h(e.id,u.TargetFieldType.Preset,t)},options:e.options.map((function(e){return{value:e.key,label:e.label}}))}),a.type===u.TargetFieldType.Relation&&o.default.createElement(m.FieldSelect,{value:null==a?void 0:a.value,onChange:function(t){h(e.id,u.TargetFieldType.Relation,t)}}),a.type===u.TargetFieldType.Custom&&o.default.createElement(v.TwigInput,{type:"text",className:"text fullwidth code",placeholder:"e.g. {{ yourField }} {{ otherField }}",value:a.value,onChange:function(t){h(e.id,u.TargetFieldType.Custom,t.target.value)}})))})))}},66678:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TwigInput=t.TypeButton=t.TypeButtonGroup=t.SourceField=t.MappingContainer=t.MappingWrapper=t.RefreshButton=void 0;var o=n(90343),i=n(49974),l=n(82919),u=a(n(10530));t.RefreshButton=u.default.button(d||(d=r(["\n position: absolute;\n top: 0;\n right: 0;\n\n font-size: 16px;\n\n &[disabled] > svg {\n fill: ",";\n\n animation: "," 2s infinite;\n transform-origin: 50% 50%;\n }\n"],["\n position: absolute;\n top: 0;\n right: 0;\n\n font-size: 16px;\n\n &[disabled] > svg {\n fill: ",";\n\n animation: "," 2s infinite;\n transform-origin: 50% 50%;\n }\n"])),l.colors.gray300,o.animations.spinner),t.MappingWrapper=u.default.div(c||(c=r(["\n display: grid;\n align-items: center;\n gap: ",";\n\n grid-template-columns: auto min-content 400px;\n\n padding: 2px 0;\n\n > div:first-child {\n flex-grow: 1;\n }\n\n > div:last-child {\n flex-basis: 300px;\n }\n"],["\n display: grid;\n align-items: center;\n gap: ",";\n\n grid-template-columns: auto min-content 400px;\n\n padding: 2px 0;\n\n > div:first-child {\n flex-grow: 1;\n }\n\n > div:last-child {\n flex-basis: 300px;\n }\n"])),l.spacings.sm),t.MappingContainer=u.default.div(s||(s=r(["\n max-width: 1000px;\n max-height: 454px;\n\n overflow-y: auto;\n overflow-x: hidden;\n\n border: 1px solid rgb(205 216 228 / 50%);\n border-radius: 5px;\n\n padding: "," ",";\n\n ",";\n"],["\n max-width: 1000px;\n max-height: 454px;\n\n overflow-y: auto;\n overflow-x: hidden;\n\n border: 1px solid rgb(205 216 228 / 50%);\n border-radius: 5px;\n\n padding: "," ",";\n\n ",";\n"])),l.spacings.sm,l.spacings.lg,i.scrollBar),t.SourceField=u.default.div(f||(f=r(["\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 50%;\n\n display: block;\n\n width: 100%;\n height: 1px;\n\n background-color: ",";\n }\n\n > span {\n position: relative;\n z-index: 2;\n\n display: block;\n padding: 0 10px 0 0;\n width: fit-content;\n\n background-color: white;\n }\n\n &.required > span {\n &:after {\n content: '*';\n position: relative;\n right: -2px;\n\n color: ",";\n }\n }\n"],["\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 50%;\n\n display: block;\n\n width: 100%;\n height: 1px;\n\n background-color: ",";\n }\n\n > span {\n position: relative;\n z-index: 2;\n\n display: block;\n padding: 0 10px 0 0;\n width: fit-content;\n\n background-color: white;\n }\n\n &.required > span {\n &:after {\n content: '*';\n position: relative;\n right: -2px;\n\n color: ",";\n }\n }\n"])),l.colors.gray100,l.colors.error),t.TypeButtonGroup=u.default.div(p||(p=r(["\n display: flex;\n"],["\n display: flex;\n"])));var d,c,s,f,p,m,v,h="8px";t.TypeButton=u.default.button(m||(m=r(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 34px;\n height: 28px;\n\n fill: ",";\n background-color: ",";\n\n &.active {\n fill: ",";\n background-color: ",";\n }\n\n &:first-child {\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n }\n\n &:last-child {\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n }\n\n svg {\n width: 16px;\n height: 16px;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 34px;\n height: 28px;\n\n fill: ",";\n background-color: ",";\n\n &.active {\n fill: ",";\n background-color: ",";\n }\n\n &:first-child {\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n }\n\n &:last-child {\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n }\n\n svg {\n width: 16px;\n height: 16px;\n }\n"])),l.colors.gray550,l.colors.elements.dropdown,l.colors.gray050,l.colors.gray550,h,h,h,h),t.TwigInput=u.default.input(v||(v=r(["\n &::placeholder {\n color: ",";\n }\n"],["\n &::placeholder {\n color: ",";\n }\n"])),l.colors.gray250)},35880:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{u(r.next(e))}catch(e){o(e)}}function l(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}u((r=r.apply(e,t||[])).next())}))},l=this&&this.__generator||function(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&l[0]?r.return:l[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;switch(r=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1] svg {\n position: absolute;\n left: 0;\n top: 2px;\n\n width: 18px;\n height: 18px;\n }\n"],["\n position: relative;\n\n padding: 0 0 0 24px;\n\n font-size: 12px;\n color: ",";\n\n max-lines: 1;\n max-height: 60px;\n overflow: hidden;\n\n > svg {\n position: absolute;\n left: 0;\n top: 2px;\n\n width: 18px;\n height: 18px;\n }\n"])),c.colors.gray300),t.Id=s.default.div(u||(u=r(["\n padding: 2px 0 1px;\n font-size: 10px !important;\n color: ",";\n"],["\n padding: 2px 0 1px;\n font-size: 10px !important;\n color: ",";\n"])),c.colors.gray300)},6893:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useSelectionAnimations=t.useEditorAnimations=void 0;var r=n(37043);t.useEditorAnimations=function(e,t){var n=210;return t>6?n=360:t>3&&(n=280),(0,r.useSpring)({height:e?n:36,config:{tension:500,friction:e?26:40}})};t.useSelectionAnimations=function(e){return(0,r.useSpring)({opacity:e?1:0,overflowY:e?"auto":"hidden",config:{tension:500}})}},2520:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useNotificationTemplates=void 0;var r=n(48452);t.useNotificationTemplates=function(e){var t,n,a,o=(0,r.useQueryNotificationTemplates)(),i=o.data,l=o.isFetching,u=(null==i?void 0:i.templates)||{database:[],files:[]},d="string"==typeof e;return"number"==typeof e?a=null===(t=null==u?void 0:u.database)||void 0===t?void 0:t.find((function(t){return t.id===e})):d&&(a=null===(n=null==u?void 0:u.files)||void 0===n?void 0:n.find((function(t){return t.id===e}))),{templates:u,isFetching:l,selectedTemplate:a}}},80944:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonRow=t.CategorySelectionWrapper=t.SelectedNotification=t.NotificationTemplateSelector=void 0;var o,i,l,u,d,c=n(37043),s=n(49974),f=n(82919),p=a(n(10530));t.NotificationTemplateSelector=(0,p.default)(c.animated.div)(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: 0;\n\n padding: 0;\n\n border: 1px solid ",";\n border-radius: ",";\n\n overflow: hidden;\n"],["\n display: flex;\n flex-direction: column;\n gap: 0;\n\n padding: 0;\n\n border: 1px solid ",";\n border-radius: ",";\n\n overflow: hidden;\n"])),f.colors.inputBorder,f.borderRadius.lg),t.SelectedNotification=p.default.div(i||(i=r(["\n position: relative;\n cursor: pointer;\n\n height: 36px;\n\n flex: 1 0 36px;\n padding: 7px 12px;\n\n overflow: hidden;\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n\n ","\n\n > span {\n &:empty {\n &:after {\n content: 'Please select...';\n color: ",";\n }\n }\n }\n\n > svg {\n position: absolute;\n right: 6px;\n top: calc(50% - 7px);\n\n display: block;\n width: 14px;\n height: 14px;\n stroke-width: 3px;\n fill: #e5e7eb;\n transition: transform 0.2s ease-in-out;\n }\n\n &.open {\n > svg {\n transform: rotate(-90deg);\n }\n }\n"],["\n position: relative;\n cursor: pointer;\n\n height: 36px;\n\n flex: 1 0 36px;\n padding: 7px 12px;\n\n overflow: hidden;\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n\n ","\n\n > span {\n &:empty {\n &:after {\n content: 'Please select...';\n color: ",";\n }\n }\n }\n\n > svg {\n position: absolute;\n right: 6px;\n top: calc(50% - 7px);\n\n display: block;\n width: 14px;\n height: 14px;\n stroke-width: 3px;\n fill: #e5e7eb;\n transition: transform 0.2s ease-in-out;\n }\n\n &.open {\n > svg {\n transform: rotate(-90deg);\n }\n }\n"])),(function(e){return e.empty&&"\n color: ".concat(f.colors.gray300,";\n font-style: italic;\n ")}),f.colors.gray600),t.CategorySelectionWrapper=(0,p.default)(c.animated.div)(l||(l=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n height: 100%;\n padding: "," "," "," ",";\n\n border-top: 1px solid ",";\n overflow-y: auto;\n overflow-x: hidden;\n\n ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n height: 100%;\n padding: "," "," "," ",";\n\n border-top: 1px solid ",";\n overflow-y: auto;\n overflow-x: hidden;\n\n ",";\n"])),f.spacings.lg,f.spacings.sm,f.spacings.lg,f.spacings.sm,f.spacings.sm,f.colors.inputBorder,s.scrollBar),t.ButtonRow=(0,p.default)(c.animated.div)(u||(u=r(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: start;\n gap: ",";\n\n border-top: 1px solid ",";\n\n padding: ",";\n background-color: ",";\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: start;\n gap: ",";\n\n border-top: 1px solid ",";\n\n padding: ",";\n background-color: ",";\n"])),f.spacings.sm,f.colors.inputBorder,f.spacings.sm,f.colors.gray100),t.Button=p.default.button(d||(d=r(["\n padding-top: 2px;\n padding-bottom: 3px;\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n\n &.submit {\n margin-left: auto;\n }\n"],["\n padding-top: 2px;\n padding-bottom: 3px;\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n\n &.submit {\n margin-left: auto;\n }\n"])))},27886:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(14041)),o=n(85151),i=n(64437),l=n(83750),u=n(25279),d=n(82919),c=n(77873),s=r(n(91797)),f=r(n(40921)),p=n(45037),m=r(n(38377)),v=n(6893),h=n(2520),g=n(80944);t.default=function(e){var t,n,r=e.value,b=e.property,y=e.errors,_=e.updateValue,x=a.default.useState(!1),w=x[0],E=x[1],O=(0,h.useNotificationTemplates)(r),P=O.templates,j=O.isFetching,k=O.selectedTemplate,M=(0,v.useEditorAnimations)(w,(null===(t=null==P?void 0:P.database)||void 0===t?void 0:t.length)+(null===(n=null==P?void 0:P.files)||void 0===n?void 0:n.length)),C=(0,v.useSelectionAnimations)(w),S=(0,u.useNewNotificationMutation)();if(j&&!P)return a.default.createElement(o.Control,{property:b,errors:y},a.default.createElement(g.NotificationTemplateSelector,{style:{height:36}},a.default.createElement(g.SelectedNotification,{empty:!0},a.default.createElement("span",null,a.default.createElement(l.LoadingText,{spinner:!0,loading:!0,instant:!0},(0,f.default)("Loading Templates"))),a.default.createElement(m.default,null))));var F=function(e){S.reset(),_(e.id),E(!1)};return a.default.createElement(o.Control,{property:b,errors:y},a.default.createElement(g.NotificationTemplateSelector,{style:M},a.default.createElement(g.SelectedNotification,{onClick:function(){return E(!w)},className:(0,s.default)(w&&"open")},a.default.createElement("span",null,null==k?void 0:k.name),a.default.createElement(m.default,null)),a.default.createElement(g.CategorySelectionWrapper,{style:C},a.default.createElement(p.Category,{value:r,category:c.TemplateType.Database,templates:P.database,onClick:F}),a.default.createElement(p.Category,{value:r,category:c.TemplateType.File,templates:P.files,onClick:F})),a.default.createElement(g.ButtonRow,{style:{opacity:C.opacity}},a.default.createElement(g.Button,{className:(0,s.default)("btn",S.isLoading&&"disabled"),disabled:S.isLoading,onClick:function(){S.reset(),E(!1)}},(0,f.default)("Close")),a.default.createElement(g.Button,{className:(0,s.default)("btn",S.isLoading&&"disabled"),disabled:S.isLoading,onClick:function(){S.reset(),_(void 0),E(!1)}},(0,f.default)("Clear choice")),a.default.createElement(g.Button,{className:(0,s.default)("btn","submit",!S.isLoading&&"add",!S.isLoading&&"icon",S.isLoading&&"disabled"),disabled:S.isLoading,onClick:function(){return S.mutate({name:"New Template"},{onSuccess:function(e){var t=e.data;F(t)}})}},S.isLoading&&a.default.createElement(l.LoadingText,null,(0,f.default)("Creating a template")),!S.isLoading&&(0,f.default)("New template"))),S.isError&&a.default.createElement(i.FormErrorList,{style:{margin:"0 ".concat(d.spacings.sm," ").concat(d.spacings.sm)},errors:S.error.errors})))}},66161:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockWrapper=void 0;var o,i=n(82919),l=a(n(10530));t.BlockWrapper=l.default.div(o||(o=r(["\n display: grid;\n align-items: center;\n gap: ",";\n\n grid-template-columns: 1.5fr 1fr 1.5fr;\n"],["\n display: grid;\n align-items: center;\n gap: ",";\n\n grid-template-columns: 1.5fr 1fr 1.5fr;\n"])),i.spacings.md)},32039:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nenter while focusing an input to add a new set of inputs.")}})))}},60096:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutBlock=t.Button=t.ButtonGroup=t.ButtonLayoutWrapper=void 0;var o,i,l,u,d=n(82919),c=a(n(10530));t.ButtonLayoutWrapper=c.default.ul(o||(o=r(["\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: ",";\n\n margin-top: ",";\n"],["\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: ",";\n\n margin-top: ",";\n"])),d.spacings.sm,d.spacings.sm),t.ButtonGroup=c.default.div(i||(i=r(["\n display: flex;\n gap: 2px;\n"],["\n display: flex;\n gap: 2px;\n"]))),t.Button=c.default.button(l||(l=r(["\n display: block;\n padding: 3px 5px;\n\n border-radius: ",";\n font-size: 16px;\n\n &:not(.enabled) {\n opacity: 0.2;\n }\n\n &.submit {\n background-color: "," !important;\n fill: "," !important;\n }\n"],["\n display: block;\n padding: 3px 5px;\n\n border-radius: ",";\n font-size: 16px;\n\n &:not(.enabled) {\n opacity: 0.2;\n }\n\n &.submit {\n background-color: "," !important;\n fill: "," !important;\n }\n"])),d.borderRadius.md,d.colors.gray600,d.colors.white),t.LayoutBlock=c.default.li(u||(u=r(["\n cursor: pointer;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n padding: 3px;\n\n border: 1px solid ",";\n border-radius: ",";\n background-color: ",";\n\n transition: background-color 0.2s ease-in-out;\n\n "," {\n fill: ",";\n background: ",";\n }\n\n &.active {\n border-color: ",";\n background-color: ",";\n\n "," {\n background: ",";\n fill: ",";\n\n &.submit {\n background-color: "," !important;\n fill: "," !important;\n }\n }\n }\n\n &:not(.active):hover {\n background-color: ",";\n }\n"],["\n cursor: pointer;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n padding: 3px;\n\n border: 1px solid ",";\n border-radius: ",";\n background-color: ",";\n\n transition: background-color 0.2s ease-in-out;\n\n "," {\n fill: ",";\n background: ",";\n }\n\n &.active {\n border-color: ",";\n background-color: ",";\n\n "," {\n background: ",";\n fill: ",";\n\n &.submit {\n background-color: "," !important;\n fill: "," !important;\n }\n }\n }\n\n &:not(.active):hover {\n background-color: ",";\n }\n"])),d.colors.gray100,d.borderRadius.md,d.colors.gray100,t.Button,d.colors.white,d.colors.gray300,d.colors.gray500,d.colors.gray500,t.Button,d.colors.white,d.colors.gray500,d.colors.gray200,d.colors.gray600,d.colors.gray200)},82334:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(14041)),o=n(85151),i=r(n(91797)),l=r(n(39517)),u=r(n(49211)),d=r(n(47412)),c=n(60096),s={save:a.default.createElement(u.default,null),back:a.default.createElement(l.default,null),submit:a.default.createElement(d.default,null)};t.default=function(e){var t,n,r=e.value,l=e.property,u=e.errors,d=e.updateValue,f=e.context,p=l.layouts,m={save:null===(t=null==f?void 0:f.buttons)||void 0===t?void 0:t.save,back:null===(n=null==f?void 0:f.buttons)||void 0===n?void 0:n.back,submit:!0};return a.default.createElement(o.Control,{property:l,errors:u},a.default.createElement(c.ButtonLayoutWrapper,null,p.map((function(e,t){return a.default.createElement(c.LayoutBlock,{key:t,onClick:function(){return d(e)},className:(0,i.default)(r===e&&"active")},e.split(" ").map((function(e,t){return a.default.createElement(c.ButtonGroup,{key:t},e.split("|").filter(Boolean).map((function(e,t){return a.default.createElement(c.Button,{className:(0,i.default)(e,(null==m?void 0:m[e])&&"enabled"),key:t},s[e])})))})))}))))}},64883:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PageButtonWrapper=void 0;var o,i=n(6543),l=a(n(10530));t.PageButtonWrapper=l.default.label(o||(o=r(["\n display: flex;\n justify-content: start;\n\n "," {\n margin-bottom: 2px;\n }\n"],["\n display: flex;\n justify-content: start;\n\n "," {\n margin-bottom: 2px;\n }\n"])),i.CheckboxWrapper)},18597:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n",label:"Arrow"},{value:" ",label:"Space"}]}}),l.default.createElement(u.default,{updateValue:function(e){return g(e)},value:h,property:{label:(0,p.default)("Append Values"),handle:"append",type:f.PropertyType.Boolean}}),l.default.createElement(c.default,{value:y,updateValue:function(e){return _(e)},focus:t,ref:x,property:{label:(0,p.default)("Bulk Editor"),instructions:(0,p.default)("Enter bulk values separated by new lines. If using custom values for option labels, you can provide a label and a value separated by a separator. For example, if you used `{separator}` you would write: `Label{separator}value`.",{separator:o}),handle:"bulkEditor",type:f.PropertyType.Textarea,rows:10}}),l.default.createElement("button",{className:"btn submit",onClick:w},(0,p.default)(h?"Append Options with Bulk Import":"Replace Options with Bulk Import")))}},62920:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BulkButton=t.BulkWrapper=t.ChoiceWrapper=void 0;var o,i,l,u=n(82919),d=a(n(10530));t.ChoiceWrapper=d.default.div(o||(o=r(["\n display: flex;\n justify-content: space-between;\n"],["\n display: flex;\n justify-content: space-between;\n"]))),t.BulkWrapper=d.default.div(i||(i=r(["\n flex: 0 1 auto;\n"],["\n flex: 0 1 auto;\n"]))),t.BulkButton=d.default.button(l||(l=r(["\n display: flex;\n align-items: center;\n gap: ",";\n\n &:focus {\n outline: none;\n box-shadow: none;\n }\n\n span {\n white-space: nowrap;\n }\n\n &:hover {\n span {\n text-decoration: underline;\n }\n }\n"],["\n display: flex;\n align-items: center;\n gap: ",";\n\n &:focus {\n outline: none;\n box-shadow: none;\n }\n\n span {\n white-space: nowrap;\n }\n\n &:hover {\n span {\n text-decoration: underline;\n }\n }\n"])),u.spacings.sm)},24838:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&d.default.createElement(d.default.Fragment,null,d.default.createElement(f.Cell,{$tiny:!0},d.default.createElement(s.default,{property:{label:"",handle:"".concat(t,"-check"),type:_.PropertyType.Boolean},value:i?a.includes(e.value):e.value===a,updateValue:function(){if(i){var t=a;o(t.includes(e.value)?t.filter((function(t){return t!==e.value})):l(l([],t,!0),[e.value],!1))}else o(e.value===a?"":e.value)}})),d.default.createElement(f.Cell,{$tiny:!0},d.default.createElement(f.Button,{ref:T.current[t],className:"handle"},d.default.createElement(h.default,null))),d.default.createElement(f.Cell,{$tiny:!0},d.default.createElement(f.Button,{onClick:function(){j((0,O.deleteOption)(t,P)),R(Math.max(t-1,0),0)}},d.default.createElement(v.default,null)))))}))))),d.default.createElement(c.HelpText,null,d.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,x.default)("Press enter while editing a cell to add a new row.")}})))}},93277:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n div {\n &:first-child {\n flex-grow: 1;\n }\n\n &:nth-child(2) {\n flex-shrink: 0;\n flex-basis: 100px;\n }\n }\n"],["\n display: flex;\n\n > div {\n &:first-child {\n flex-grow: 1;\n }\n\n &:nth-child(2) {\n flex-shrink: 0;\n flex-basis: 100px;\n }\n }\n"])))},71741:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPreview=void 0;var a=r(n(14041)),o=n(75111),i=r(n(40921)),l=n(17611);t.CustomPreview=function(e){var t=e.value,n=t.options,r=void 0===n?[]:n,u=t.useCustomValues;return a.default.createElement(o.PreviewWrapper,{"data-edit":(0,i.default)("Click to edit data")},a.default.createElement(o.PreviewTable,null,!r.length&&a.default.createElement(o.NoContent,null,(0,i.default)("Not configured yet")),r.map((function(e,t){return a.default.createElement(l.PreviewRow,{key:t},a.default.createElement(o.PreviewData,{"data-empty":(0,i.default)("empty")},e.label),u&&a.default.createElement(o.PreviewData,{"data-empty":(0,i.default)("empty")},e.value))}))))}},25683:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(14041)),o=n(69088),i=n(81223),l=r(n(40921)),u=n(24838),d=n(93277),c=n(71741);t.default=function(e){var t=e.value,n=e.updateValue,r=e.property,s=e.defaultValue,f=e.updateDefaultValue,p=e.isMultiple;return a.default.createElement(a.default.Fragment,null,a.default.createElement(o.Label,null,(0,l.default)("Options")),a.default.createElement(i.PreviewableComponent,{preview:a.default.createElement(c.CustomPreview,{value:t,defaultValue:s,isMultiple:p}),excludeClassNames:["bulk-editor"],onAfterEdit:function(){return n((0,d.cleanOptions)(t))}},a.default.createElement(u.CustomEditor,{value:t,updateValue:n,property:r,defaultValue:s,updateDefaultValue:f,isMultiple:p})))}},91254:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.generateDefaultValue=void 0;var r=n(44658);t.generateDefaultValue=function(e){switch(e){case r.Source.Elements:return{source:r.Source.Elements,typeClass:"",properties:{}};case r.Source.Predefined:return{source:r.Source.Predefined,typeClass:"",properties:{}};case r.Source.Custom:default:return{source:r.Source.Custom,useCustomValues:!1,options:[]}}}},40474:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.custom=t.predefined=t.elements=void 0;var a=n(52687);Object.defineProperty(t,"elements",{enumerable:!0,get:function(){return r(a).default}});var o=n(46401);Object.defineProperty(t,"predefined",{enumerable:!0,get:function(){return r(o).default}});var i=n(25683);Object.defineProperty(t,"custom",{enumerable:!0,get:function(){return r(i).default}})},13160:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SourceComponent=void 0;var i=o(n(14041)),l=n(77913),u=n(44658),d=o(n(40474));t.SourceComponent=function(e){var t=e.value,n=e.updateValue,r=e.property,a=e.defaultValue,o=e.updateDefaultValue,c=e.convertToCustomValues,s=e.isMultiple,f=t.source,p=void 0===f?u.Source.Custom:f,m=d[p];return void 0===m?i.default.createElement("div",null,p," not implemented..."):(m.displayName="Source <".concat(p,">"),i.default.createElement(l.ErrorBoundary,{message:"...".concat(p," not implemented")},i.default.createElement(i.Suspense,null,i.default.createElement(m,{value:t,updateValue:n,property:r,defaultValue:a,updateDefaultValue:o,convertToCustomValues:c,isMultiple:s}))))}},43598:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OriginalValuePreview=t.ValueInputWrapper=void 0;var o,i,l=a(n(10530));t.ValueInputWrapper=l.default.div(o||(o=r(["\n display: flex;\n align-items: center;\n gap: 0px;\n\n margin-left: 5px;\n\n svg {\n width: 20px;\n height: 20px;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 0px;\n\n margin-left: 5px;\n\n svg {\n width: 20px;\n height: 20px;\n }\n"]))),t.OriginalValuePreview=l.default.span(i||(i=r(["\n width: 200px;\n display: block;\n padding: 0 5px;\n\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n"],["\n width: 200px;\n display: block;\n padding: 0 5px;\n\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n"])))},60160:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n svg {\n fill: currentColor;\n }\n"],["\n padding: 1px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n\n &.handle {\n cursor: move;\n }\n\n &:disabled {\n cursor: not-allowed;\n color: lightgray;\n }\n\n > svg {\n fill: currentColor;\n }\n"])))},71786:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&u.default.createElement(u.default.Fragment,null,u.default.createElement(c.Cell,{$tiny:!0},u.default.createElement(c.Button,{ref:o.current[i],className:"handle"},u.default.createElement(v.default,null))),u.default.createElement(c.Cell,{$tiny:!0},u.default.createElement(c.Button,{onClick:function(){a((0,s.deleteColumn)(i,n)),g(Math.max(i-1,0),0)}},u.default.createElement(m.default,null)))))}))))),u.default.createElement(d.HelpText,null,u.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,h.default)("Press enter while editing a cell to add a new row.")}})))}},73665:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a div {\n white-space: nowrap;\n overflow: hidden;\n\n padding: 7px "," 7px 0;\n\n &:last-child {\n padding-right: 0;\n }\n }\n"],["\n position: relative;\n\n display: grid;\n grid-template-columns: auto 100px;\n gap: 10px;\n\n justify-items: stretch;\n align-items: center;\n\n border-bottom: 1px solid ",";\n\n &:after {\n content: attr(data-title);\n\n position: absolute;\n left: calc(100% - 105px);\n bottom: -7px;\n\n padding: 0 5px;\n background: ",";\n\n ",";\n font-size: 8px;\n }\n\n > div {\n white-space: nowrap;\n overflow: hidden;\n\n padding: 7px "," 7px 0;\n\n &:last-child {\n padding-right: 0;\n }\n }\n"])),f.colors.gray100,f.colors.white,s.labelText,f.spacings.xs),t.PreviewData=p.default.div(c||(c=r(["\n &:empty {\n &:after {\n content: attr(data-empty);\n color: ",";\n font-size: 12px;\n font-style: italic;\n }\n }\n"],["\n &:empty {\n &:after {\n content: attr(data-empty);\n color: ",";\n font-size: 12px;\n font-style: italic;\n }\n }\n"])),f.colors.gray200)},47689:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TablePreview=void 0;var a=r(n(14041)),o=r(n(40921)),i=n(75111),l=function(e,t){var n;return(null===(n=e.find((function(e){return e.value===t})))||void 0===n?void 0:n.label)||t};t.TablePreview=function(e){var t=e.columnTypes,n=e.columns;return a.default.createElement(i.PreviewWrapper,{"data-edit":(0,o.default)("Click to edit data")},a.default.createElement(i.PreviewTable,null,!n.length&&a.default.createElement(i.NoContent,null,(0,o.default)("Not configured yet")),n.map((function(e,n){return a.default.createElement(i.PreviewRow,{key:n,"data-title":l(t,e.type)},a.default.createElement(i.PreviewData,{"data-empty":(0,o.default)("empty")},e.label),a.default.createElement(i.PreviewData,{"data-empty":(0,o.default)("empty")},e.value))}))))}},53207:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(14041)),o=n(85151),i=n(81223),l=n(71786),u=n(73665),d=n(47689);t.default=function(e){var t=e.value,n=e.property,r=e.errors,c=e.updateValue,s=n.options;return a.default.createElement(o.Control,{property:n,errors:r},a.default.createElement(i.PreviewableComponent,{preview:a.default.createElement(d.TablePreview,{columnTypes:s,columns:t}),onAfterEdit:function(){return c((0,u.cleanColumns)(t))},onEdit:function(){t.length||c((0,u.addColumn)(t,0))}},a.default.createElement(l.TableEditor,{columnTypes:s,columns:t,updateValue:c})))}},60832:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a1&&u.default.createElement(u.default.Fragment,null,u.default.createElement(c.Cell,{$tiny:!0},u.default.createElement(c.Button,{ref:a.current[o],className:"handle"},u.default.createElement(m.default,null))),u.default.createElement(c.Cell,{$tiny:!0},u.default.createElement(c.Button,{onClick:function(){r((0,h.deleteRow)(o,n)),g(Math.max(o-1,0),0)}},u.default.createElement(p.default,null)))))}))))),u.default.createElement(d.HelpText,null,u.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,v.default)("Press enter while editing a cell to add a new row.")}})))}},64543:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a div {\n white-space: nowrap;\n overflow: hidden;\n\n padding: 7px "," 7px 0;\n\n &:last-child {\n padding-right: 0;\n }\n }\n"],["\n position: relative;\n\n display: grid;\n grid-template-columns: auto 100px;\n gap: 10px;\n\n justify-items: stretch;\n align-items: center;\n\n border-bottom: 1px solid ",";\n\n &:after {\n content: attr(data-title);\n\n position: absolute;\n left: calc(100% - 105px);\n bottom: -7px;\n\n padding: 0 5px;\n background: ",";\n\n ",";\n font-size: 8px;\n }\n\n > div {\n white-space: nowrap;\n overflow: hidden;\n\n padding: 7px "," 7px 0;\n\n &:last-child {\n padding-right: 0;\n }\n }\n"])),f.colors.gray100,f.colors.white,s.labelText,f.spacings.xs),t.PreviewData=p.default.div(c||(c=r(["\n &:empty {\n &:after {\n content: attr(data-empty);\n color: ",";\n font-size: 12px;\n font-style: italic;\n }\n }\n"],["\n &:empty {\n &:after {\n content: attr(data-empty);\n color: ",";\n font-size: 12px;\n font-style: italic;\n }\n }\n"])),f.colors.gray200)},48175:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TabularDataPreview=void 0;var a=r(n(14041)),o=r(n(40921)),i=n(49689);t.TabularDataPreview=function(e){var t=e.configuration,n=e.values;return a.default.createElement(i.PreviewWrapper,{"data-edit":(0,o.default)("Click to edit data")},a.default.createElement(i.PreviewTable,null,!n.length&&a.default.createElement(i.NoContent,null,(0,o.default)("Not configured yet")),n.map((function(e,n){return a.default.createElement(i.PreviewRow,{key:n},t.map((function(t,n){return a.default.createElement(i.PreviewData,{key:n,"data-empty":(0,o.default)("empty"),"data-title":t.label},e[n])})))}))))}},3381:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(14041)),o=n(85151),i=n(81223),l=n(60832),u=n(64543),d=n(48175);t.default=function(e){var t=e.value,n=e.property,r=e.errors,c=e.updateValue,s=n.configuration;return a.default.createElement(o.Control,{property:n,errors:r},a.default.createElement(i.PreviewableComponent,{preview:a.default.createElement(d.TabularDataPreview,{configuration:s,values:t}),onAfterEdit:function(){return c((0,u.cleanRows)(t))},onEdit:function(){t.length||c((0,u.addRow)(t,s,0))}},a.default.createElement(l.TabularDataEditor,{configuration:s,values:t,updateValue:c})))}},28003:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextArea=void 0;var o,i=a(n(10530));t.TextArea=i.default.textarea(o||(o=r(["\n &.read-only {\n border: 1px solid rgba(0, 0, 0, 0.05);\n color: rgba(0, 0, 0, 0.5);\n\n user-select: none;\n }\n"],["\n &.read-only {\n border: 1px solid rgba(0, 0, 0, 0.05);\n color: rgba(0, 0, 0, 0.5);\n\n user-select: none;\n }\n"])))},53429:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(n(14041)),u=n(85151),d=i(n(91797)),c=n(28003),s=l.default.forwardRef((function(e,t){var n,r,a,o=e.value,i=e.property,s=e.errors,f=e.updateValue,p=e.autoFocus,m=e.focus,v=e.context,h=i.handle,g=i.rows,b=(0,l.useRef)(null);return(0,l.useImperativeHandle)(t,(function(){return b.current})),(0,l.useEffect)((function(){var e;m&&(null===(e=b.current)||void 0===e||e.focus())}),[m]),l.default.createElement(u.Control,{property:i,errors:s,context:v},l.default.createElement(c.TextArea,{id:h,ref:b,className:(0,d.default)("text","fullwidth",(null===(n=i.flags)||void 0===n?void 0:n.includes("as-readonly-in-instance"))&&"read-only",(null===(r=i.flags)||void 0===r?void 0:r.includes("code"))&&"code"),readOnly:null===(a=i.flags)||void 0===a?void 0:a.includes("as-readonly-in-instance"),rows:g,value:null!=o?o:"",placeholder:i.placeholder,autoFocus:p,onChange:function(e){return f(e.target.value)}}))}));s.displayName="Textarea",t.default=s},89392:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QuillEditorWrapper=void 0;var o,i=a(n(10530));t.QuillEditorWrapper=i.default.div(o||(o=r(["\n .ql-editor {\n min-height: 300px;\n }\n"],["\n .ql-editor {\n min-height: 300px;\n }\n"])))},58926:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WysiwygEditor=void 0;var a=r(n(14041)),o=r(n(71869)),i=n(70225),l=n(89392);n(40546);t.WysiwygEditor=function(e){var t=e.value,n=e.updateValue;return a.default.createElement(i.PreviewEditor,null,a.default.createElement(i.PreviewContainer,null,a.default.createElement(l.QuillEditorWrapper,null,a.default.createElement(o.default,{theme:"snow",value:t,onChange:n,style:{background:"white"}}))))}},80083:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewContainer=t.Pre=void 0;var o,i,l=n(82919),u=a(n(10530)),d=n(75111);t.Pre=u.default.pre(o||(o=r(["\n font-size: 10px;\n"],["\n font-size: 10px;\n"]))),t.PreviewContainer=(0,u.default)(d.PreviewTable)(i||(i=r(["\n padding: ",";\n"],["\n padding: ",";\n"])),l.spacings.sm)},3205:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WysiwygPreview=void 0;var a=r(n(14041)),o=r(n(40921)),i=n(75111),l=n(80083);t.WysiwygPreview=function(e){var t=e.value;return a.default.createElement(i.PreviewWrapper,{"data-edit":(0,o.default)("Click to edit data")},a.default.createElement(l.PreviewContainer,null,!t&&a.default.createElement(i.NoContent,null,(0,o.default)("Not configured yet")),a.default.createElement("div",{dangerouslySetInnerHTML:{__html:t}})))}},9947:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(14041)),o=n(85151),i=n(81223),l=n(58926),u=n(3205);t.default=function(e){var t=e.value,n=e.property,r=e.errors,d=e.updateValue,c=e.context;return a.default.createElement(o.Control,{property:n,errors:r,context:c},a.default.createElement(i.PreviewableComponent,{preview:a.default.createElement(u.WysiwygPreview,{value:t})},a.default.createElement(l.WysiwygEditor,{value:t,updateValue:d})))}},62153:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ControlWrapper=t.FormField=t.Instructions=void 0;var o,i,l,u=n(82919),d=a(n(10530)),c=n(69088);t.Instructions=d.default.span(o||(o=r(["\n display: block;\n\n color: ",";\n padding-top: 0;\n line-height: 16px;\n font-size: 12px;\n font-style: italic;\n\n &:not(:last-child) {\n padding-bottom: 6px;\n }\n\n code {\n padding: 1px 4px;\n border-radius: 3px;\n background-color: #dfe5ec;\n\n font-family: monospace;\n font-style: normal;\n color: ",";\n }\n"],["\n display: block;\n\n color: ",";\n padding-top: 0;\n line-height: 16px;\n font-size: 12px;\n font-style: italic;\n\n &:not(:last-child) {\n padding-bottom: 6px;\n }\n\n code {\n padding: 1px 4px;\n border-radius: 3px;\n background-color: #dfe5ec;\n\n font-family: monospace;\n font-style: normal;\n color: ",";\n }\n"])),u.colors.gray300,u.colors.gray600),t.FormField=d.default.div(i||(i=r(["\n margin: 0;\n padding: 0;\n width: 100%;\n display: block;\n\n &.disabled {\n user-select: none;\n pointer-events: none;\n opacity: 0.5;\n }\n"],["\n margin: 0;\n padding: 0;\n width: 100%;\n display: block;\n\n &.disabled {\n user-select: none;\n pointer-events: none;\n opacity: 0.5;\n }\n"]))),t.ControlWrapper=d.default.div(l||(l=r(["\n display: flex;\n position: relative;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n\n width: ",";\n\n &.disabled {\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n }\n\n &.errors {\n "," {\n color: ",";\n }\n\n "," {\n input,\n textarea,\n select {\n border: 1px solid ",";\n }\n\n select {\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n }\n }\n }\n\n &.spacing-small {\n padding-top: 6px;\n }\n\n .btn {\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n }\n"],["\n display: flex;\n position: relative;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n\n width: ",";\n\n &.disabled {\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n }\n\n &.errors {\n "," {\n color: ",";\n }\n\n "," {\n input,\n textarea,\n select {\n border: 1px solid ",";\n }\n\n select {\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n }\n }\n }\n\n &.spacing-small {\n padding-top: 6px;\n }\n\n .btn {\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n }\n"])),(function(e){var t=e.$width;return t?"".concat(t,"%"):"100%"}),c.Label,u.colors.error,t.FormField,u.colors.error)},85151:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Control=void 0;var a=r(n(14041)),o=n(62153),i=r(n(97509)),l=r(n(36678)),u=n(12444),d=r(n(91797)),c=n(64437),s=n(6392);t.Control=function(e){var t=e.children,n=e.property,r=e.errors,f=e.context,p=(0,u.useTranslations)(f),m=p.hasTranslation,v=p.removeTranslation,h=p.isTranslationsEnabled,g=n.label,b=n.handle,y=n.required,_=n.instructions,x=n.width,w=n.disabled,E=n.translatable;return a.default.createElement(o.ControlWrapper,{className:(0,d.default)(!!r&&"errors",w&&"disabled"),$width:x},a.default.createElement(l.default,{label:g,handle:b,required:y,translatable:h&&E,hasTranslation:m(b),removeTranslation:function(){return v(b)}}),a.default.createElement(i.default,{instructions:_}),a.default.createElement(o.FormField,null,t),a.default.createElement(c.FormErrorList,{errors:r}),a.default.createElement(s.FormMessageList,{messages:n.messages}))}},49443:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DelimiterElement=void 0;var o,i=a(n(14041)),l=n(49974),u=n(82919),d=a(n(10530)).default.div(o||(o=r(["\n position: relative;\n min-height: 10px;\n\n &:before {\n content: '';\n position: absolute;\n top: 9px;\n left: 0;\n right: 0;\n z-index: 1;\n\n height: 1px;\n margin: 0 var(--margins);\n\n box-shadow: ",";\n }\n\n div {\n position: absolute;\n left: -5px;\n top: 0;\n z-index: 2;\n\n background: var(--background-color);\n padding: 0 5px;\n\n ",";\n font-size: 11px;\n\n &:empty {\n display: none;\n }\n }\n"],["\n position: relative;\n min-height: 10px;\n\n &:before {\n content: '';\n position: absolute;\n top: 9px;\n left: 0;\n right: 0;\n z-index: 1;\n\n height: 1px;\n margin: 0 var(--margins);\n\n box-shadow: ",";\n }\n\n div {\n position: absolute;\n left: -5px;\n top: 0;\n z-index: 2;\n\n background: var(--background-color);\n padding: 0 5px;\n\n ",";\n font-size: 11px;\n\n &:empty {\n display: none;\n }\n }\n"])),u.shadows.bottom,l.labelText);t.DelimiterElement=function(e){var t=e.delimiter;return t?i.default.createElement(d,null,i.default.createElement("div",null,t.name)):null}},39186:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DraggableRow=void 0;var l=o(n(14041)),u=n(15100),d=n(74436),c=n(49775),s=i(n(91797));t.DraggableRow=function(e){var t=e.index,n=e.dragRef,r=e.onDrop,a=e.children,o=(0,l.useRef)(null),i=(0,c.useRowDrop)(t,o,r),f=i.handlerId,p=i.drop,m=(0,d.useRowDrag)(t),v=m.isDragging,h=m.drag,g=m.preview;return h(n),p(g(o)),l.default.createElement(u.Row,{ref:o,className:(0,s.default)(v&&"dragging"),"data-handler-id":f},a)}},64437:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&m--,"ArrowDown"===a.key&&o0&&g.start&&(p=!0,v--),"ArrowRight"===a.key&&ui&&c>d||(n(l,i),r.index=i)}}}}}),[t,n]);return{handlerId:o[0].handlerId,drop:o[1]}}},59633:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useVisibility=void 0;var a=n(14041),o=r(n(84350)),i=n(60914);t.useVisibility=function(e,t){return(0,a.useMemo)((function(){if(0===e.length)return!0;var n={config:o.default};try{return(0,i.filterTest)(e,t,n)}catch(t){return console.error("Failed to evaluate visibility expression: ".concat(e.join(" && "))),!1}}),[e,t])}},9408:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FormComponent=void 0;var i=o(n(14041)),l=o(n(35154)),u=n(77913),d=n(59633),c=n(49443),s=l;t.FormComponent=function(e){var t=e.value,n=e.updateValue,r=e.property,a=e.errors,o=e.context,l=e.autoFocus,f=void 0!==l&&l,p=r.handle,m=r.type,v=r.visibilityFilters,h=s[m],g=(0,d.useVisibility)(v||[],o);return void 0===h?i.default.createElement("div",null,"[".concat(p,"]: <").concat(m,">")):(h.displayName="FormComponent: <".concat(m,">"),g?i.default.createElement(u.ErrorBoundary,{message:"...".concat(p," <").concat(m,">")},i.default.createElement(i.Suspense,null,i.default.createElement(c.DelimiterElement,{delimiter:r.delimiter}),i.default.createElement(h,{value:t,property:r,updateValue:n,errors:a,context:o,autoFocus:f}))):null)}},97509:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(n(14041)),u=i(n(40921)),d=n(62153),c=(0,l.memo)((function(e){var t=e.instructions;if(!t)return null;var n=(0,l.useMemo)((function(){return(0,u.default)(t)}),[t]),r=(0,l.useMemo)((function(){return n.split(/`([^`]+)`/g).map((function(e,t){return t%2!=0?l.default.createElement("code",{key:t},e):e}))}),[n]);return l.default.createElement(d.Instructions,null,r)}));c.displayName="FormInstructions",t.default=c},69088:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TranslateIconWrapper=t.RequiredStar=t.LabelText=t.Label=void 0;var o=n(82919),i=a(n(10530));t.Label=i.default.label(l||(l=r(["\n display: flex;\n justify-content: start;\n align-items: center;\n gap: 6px;\n\n color: ",";\n font-weight: "," !important;\n"],["\n display: flex;\n justify-content: start;\n align-items: center;\n gap: 6px;\n\n color: ",";\n font-weight: "," !important;\n"])),o.colors.gray550,(function(e){return e.$regular?"normal":"bold"})),t.LabelText=i.default.span(u||(u=r([""],[""]))),t.RequiredStar=i.default.span(d||(d=r(["\n &:after {\n content: 'asterisk';\n\n color: ",";\n font-family: Craft;\n font-size: 10px;\n }\n"],["\n &:after {\n content: 'asterisk';\n\n color: ",";\n font-family: Craft;\n font-size: 10px;\n }\n"])),o.colors.red500);var l,u,d,c;t.TranslateIconWrapper=i.default.span(c||(c=r(["\n fill: ",";\n\n &.active {\n cursor: pointer;\n fill: ",";\n }\n\n svg {\n width: ","px;\n height: ","px;\n }\n"],["\n fill: ",";\n\n &.active {\n cursor: pointer;\n fill: ",";\n }\n\n svg {\n width: ","px;\n height: ","px;\n }\n"])),o.colors.gray500,o.colors.blue500,18,18)},36678:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(14041)),o=r(n(91797)),i=r(n(40921)),l=r(n(14760)),u=n(69088);t.default=function(e){var t=e.label,n=e.handle,r=e.required,d=e.translatable,c=e.hasTranslation,s=e.removeTranslation;return t?a.default.createElement(u.Label,{className:(0,o.default)(r&&"is-required"),htmlFor:n},a.default.createElement(u.LabelText,null,(0,i.default)(t)),r&&a.default.createElement(u.RequiredStar,null),d&&a.default.createElement(u.TranslateIconWrapper,{className:(0,o.default)(c&&"active"),title:c?(0,i.default)("Remove translation"):void 0,onClick:function(){c&&confirm((0,i.default)("Are you sure you want to remove the translation?"))&&s&&s()}},a.default.createElement(l.default,null))):null}},6392:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n li {\n &.message-type-warning {\n color: ",";\n }\n\n &.message-type-notice {\n color: ",";\n }\n }\n"],["\n list-style: none;\n\n margin-top: 5px;\n\n display: flex;\n flex-direction: column;\n gap: 2px;\n\n > li {\n &.message-type-warning {\n color: ",";\n }\n\n &.message-type-notice {\n color: ",";\n }\n }\n"])),d.colors.warning,d.colors.notice);t.FormMessageList=function(e){var t=e.messages,n=o(e,["messages"]);return t&&t.length?u.default.createElement(f,a({},n),t.map((function(e,t){var n=e.message,r=e.type;return u.default.createElement("li",{key:t,className:(0,c.default)("message-type-".concat(r),r,"has-icon")},u.default.createElement("span",{className:"icon"}),(0,s.default)(n))}))):null}},32068:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useEditorAnimations=void 0;var r=n(14041),a=n(37043),o=n(14999);t.useEditorAnimations=function(e){var t=e.wrapper,n=e.editor,i=e.isEditing,l=(0,o.usePosition)(t,n,i),u=l.top,d=l.left,c=null==t?void 0:t.offsetWidth,s=(0,r.useState)(!1),f=s[0],p=s[1];return{editorAnimation:(0,a.useSpring)({immediate:function(e){return["top","left","width","pointerEvents","transformOrigin"].includes(e)},to:{top:u,left:d,width:c,opacity:i?1:0,transformOrigin:"top left",transform:i?"scaleY(1)":"scaleY(0.5)",pointerEvents:i?"initial":"none"},config:{tension:700,friction:40}}),isVisible:f,setVisible:p}}},14999:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.usePosition=void 0;var r=n(14041),a=n(2397),o=n(83534),i=n(98097);t.usePosition=function(e,t,n){var l=(0,a.usePortal)().dimensions,u=(0,r.useState)(0),d=u[0],c=u[1],s=(0,r.useState)(0),f=s[0],p=s[1],m=function(){var n;c((0,i.calculateTopOffset)(e,t));var r=null===(n=null==e?void 0:e.getBoundingClientRect())||void 0===n?void 0:n.left;r&&p(r-l.left)};return(0,r.useEffect)((function(){m()}),[n]),(0,r.useEffect)((function(){var e=function(){m()};if(t){var n=document.querySelector(o.SectionWrapper.toString()),r=new ResizeObserver(e);return r.observe(t),window.addEventListener("resize",e),window.addEventListener("scroll",e),null==n||n.addEventListener("scroll",e),function(){r.disconnect(),window.removeEventListener("resize",e),window.removeEventListener("scroll",e),null==n||n.addEventListener("scroll",e)}}}),[t]),{top:d,left:f}}},98097:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.calculateTopOffset=void 0;t.calculateTopOffset=function(e,t){var n=null==e?void 0:e.getBoundingClientRect().top,r=window.innerHeight,a=null==t?void 0:t.offsetHeight;return void 0===a?n:n&&a&&r?n+a>r-20?n-(n+a-r+20):n:0}},70225:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewEditorContainer=t.PreviewEditor=t.PreviewContainer=t.EditableContentWrapper=t.PreviewWrapper=void 0;var o,i,l,u,d,c=n(37043),s=n(49974),f=n(82919),p=a(n(10530));t.PreviewWrapper=p.default.div(o||(o=r(["\n position: relative;\n width: 100%;\n"],["\n position: relative;\n width: 100%;\n"]))),t.EditableContentWrapper=(0,p.default)(c.animated.div)(i||(i=r(["\n position: absolute;\n left: 0;\n top: 0;\n z-index: 3;\n\n box-shadow: ",";\n\n pointer-events: none;\n\n &.active {\n pointer-events: all;\n }\n"],["\n position: absolute;\n left: 0;\n top: 0;\n z-index: 3;\n\n box-shadow: ",";\n\n pointer-events: none;\n\n &.active {\n pointer-events: all;\n }\n"])),f.shadows.panel),t.PreviewContainer=p.default.div(l||(l=r(["\n cursor: pointer;\n\n input,\n select,\n textarea {\n pointer-events: none;\n }\n"],["\n cursor: pointer;\n\n input,\n select,\n textarea {\n pointer-events: none;\n }\n"]))),t.PreviewEditor=p.default.div(u||(u=r(["\n width: 100%;\n min-width: 800px;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: ",";\n\n box-shadow: ",";\n border-radius: ",";\n background: ",";\n"],["\n width: 100%;\n min-width: 800px;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: ",";\n\n box-shadow: ",";\n border-radius: ",";\n background: ",";\n"])),f.spacings.lg,f.spacings.lg,f.shadows.box,f.borderRadius.lg,f.colors.gray050),t.PreviewEditorContainer=p.default.div(d||(d=r(["\n max-height: 600px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ",";\n"],["\n max-height: 600px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ",";\n"])),s.scrollBar)},81223:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?document.body.style.overflow="hidden":document.body.style.overflow="auto"}),[l]);var b=(0,p.useAnimateOverlay)(l.length>0),y=(0,p.useAnimateModals)(l);return u.default.createElement(v.Provider,{value:{openModal:function(e,t){a(i(i([],r,!0),[t],!1)),h(i(i([],l,!0),[e],!1))},closeModal:g}},t,(0,d.createPortal)(u.default.createElement(m.ModalHub,null,u.default.createElement(m.ModalOverlay,{style:b,className:(0,c.default)(!l.length&&"inactive")},y((function(e,t,n,a){return u.default.createElement(f.Modal,{key:a,closeModal:g,style:e},u.default.createElement(t,{closeModal:g,data:(0,s.default)(r[a])}))})))),document.body))}},29620:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalFooter=t.ModalHeader=t.ModalContainer=t.ModalWrapper=t.ModalOverlay=t.ModalHub=void 0;var o,i,l,u,d,c,s=n(37043),f=n(82919),p=a(n(10530));t.ModalHub=p.default.div(o||(o=r([""],[""]))),t.ModalOverlay=(0,p.default)(s.animated.div)(i||(i=r(["\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 1000;\n\n background-color: rgba(123, 135, 147, 0);\n\n &.inactive {\n pointer-events: none;\n }\n"],["\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 1000;\n\n background-color: rgba(123, 135, 147, 0);\n\n &.inactive {\n pointer-events: none;\n }\n"]))),t.ModalWrapper=(0,p.default)(s.animated.div)(l||(l=r(["\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 1001;\n\n display: flex;\n justify-content: center;\n align-items: center;\n"],["\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 1001;\n\n display: flex;\n justify-content: center;\n align-items: center;\n"]))),t.ModalContainer=p.default.div(u||(u=r(["\n width: 100%;\n max-width: 500px;\n\n background-color: #fff;\n border-radius: ",";\n box-shadow: 0 25px 100px rgba(31, 41, 51, 0.5);\n"],["\n width: 100%;\n max-width: 500px;\n\n background-color: #fff;\n border-radius: ",";\n box-shadow: 0 25px 100px rgba(31, 41, 51, 0.5);\n"])),f.borderRadius.lg),t.ModalHeader=p.default.header(d||(d=r(["\n padding: "," ",";\n\n background-color: ",";\n box-shadow: inset 0 -1px 0 ",";\n\n border-radius: "," "," 0 0;\n"],["\n padding: "," ",";\n\n background-color: ",";\n box-shadow: inset 0 -1px 0 ",";\n\n border-radius: "," "," 0 0;\n"])),f.spacings.lg,f.spacings.xl,f.colors.gray100,f.colors.hairline,f.borderRadius.lg,f.borderRadius.lg),t.ModalFooter=p.default.footer(c||(c=r(["\n display: flex;\n justify-content: end;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n\n background-color: ",";\n box-shadow: inset 0 1px 0 ",";\n\n border-radius: 0 0 "," ",";\n"],["\n display: flex;\n justify-content: end;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n\n background-color: ",";\n box-shadow: inset 0 1px 0 ",";\n\n border-radius: 0 0 "," ",";\n"])),f.spacings.sm,f.spacings.sm,f.spacings.xl,f.colors.gray100,f.colors.hairline,f.borderRadius.lg,f.borderRadius.lg)},26082:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Modal=void 0;var a=r(n(14041)),o=n(67902),i=n(29620);t.Modal=function(e){var t=e.children,n=e.closeModal,r=e.style;return(0,o.useEscapeStack)(n),a.default.createElement(i.ModalWrapper,{style:r},t)}},68674:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=void 0;var o,i=a(n(10530));t.Wrapper=i.default.div(o||(o=r(["\n color: white;\n background: red;\n border: 1px solid darkred;\n"],["\n color: white;\n background: red;\n border: 1px solid darkred;\n"])))},61460:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBlock=void 0;var a=r(n(14041)),o=n(68674);t.ErrorBlock=function(e){var t=e.children;return a.default.createElement(o.Wrapper,null,t)}},5128:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{u(r.next(e))}catch(e){o(e)}}function l(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}u((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&l[0]?r.return:l[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;switch(r=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]0&&a.default.createElement(a.default.Fragment,null,a.default.createElement(p.SectionHeader,null,(0,s.default)("Usage in Elements")),a.default.createElement("table",{className:"data fullwidth collapsible"},a.default.createElement("thead",null,a.default.createElement("tr",null,a.default.createElement("th",null,(0,s.default)("Element")),a.default.createElement("th",null,(0,s.default)("Type")),a.default.createElement("th",null,(0,s.default)("Status")))),a.default.createElement("tbody",null,t.map((function(e){return a.default.createElement("tr",{key:e.id,className:"element-row"},a.default.createElement("th",null,a.default.createElement("div",{className:"chip small element","data-id":e.id},a.default.createElement("div",{className:"chip-content"},a.default.createElement("span",{className:(0,c.default)("status",e.status.toLowerCase()),role:"img"}),a.default.createElement("a",{href:e.url,className:"label-link"},a.default.createElement("span",null,e.title))))),a.default.createElement("td",null,e.type),a.default.createElement("td",null,e.status))})))))):null}},27829:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationsWrapper=void 0;var o,i=a(n(10530));t.IntegrationsWrapper=i.default.div(o||(o=r(["\n display: flex;\n height: 100%;\n"],["\n display: flex;\n height: 100%;\n"])))},48715:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Integrations=void 0;var a=r(n(14041)),o=n(38955),i=n(78573),l=r(n(40921)),u=n(62633),d=n(27829);t.Integrations=function(){var e=(0,o.useResolvedPath)("");return a.default.createElement(d.IntegrationsWrapper,null,a.default.createElement(i.Breadcrumb,{id:"integrations",label:(0,l.default)("Integrations"),url:e.pathname}),a.default.createElement(u.List,null),a.default.createElement(o.Outlet,null))}},26468:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldComponent=void 0;var a=r(n(14041)),o=n(9408),i=n(29039),l=n(68667),u=n(32643),d=n(80296);t.FieldComponent=function(e){var t=e.integration,n=e.property,r=(0,i.useAppDispatch)(),c=(0,l.useValueUpdateGenerator)(t.properties,t.values,(function(e,n){r(u.integrationActions.modify({id:t.id,key:e,value:n}))})),s=t.values[n.handle];return n.type===d.PropertyType.Hidden?null:a.default.createElement(o.FormComponent,{value:s,property:n,updateValue:c(n),context:t})}},46748:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyEditor=void 0;var a=r(n(14041)),o=n(29557),i=r(n(91797)),l=r(n(40921)),u=n(35607),d=r(n(10997)),c=n(60487);t.EmptyEditor=function(){return a.default.createElement(c.PropertyEditorWrapper,null,a.default.createElement(o.EmptyBlock,{title:(0,l.default)("No integrations found"),subtitle:(0,l.default)("To add an integration, click the button below"),icon:a.default.createElement(d.default,null)},a.default.createElement("a",{className:(0,i.default)("btn add icon"),href:(0,u.generateUrl)("settings/integrations/crm")},(0,l.default)("Add integration"))))}},78315:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadingEditor=void 0;var a=r(n(14041)),o=r(n(47165)),i=n(71395),l=n(60487);t.LoadingEditor=function(){return a.default.createElement(l.PropertyEditorWrapper,null,a.default.createElement(i.ThemedSkeleton,null,a.default.createElement(o.default,{width:120,height:20}),a.default.createElement("br",null),a.default.createElement(o.default,{width:100,height:10}),a.default.createElement(o.default,{width:50,height:20}),a.default.createElement("br",null),a.default.createElement(o.default,{width:200,height:10}),a.default.createElement(o.default,{width:500,height:10}),a.default.createElement(o.default,{height:30}),a.default.createElement("br",null),a.default.createElement(o.default,{width:150,height:10}),a.default.createElement(o.default,{width:300,height:10}),a.default.createElement(o.default,{height:30})))}},60487:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsWrapper=t.PropertyEditorWrapper=void 0;var o,i,l=n(49974),u=n(82919),d=a(n(10530));t.PropertyEditorWrapper=d.default.div(o||(o=r(["\n flex: 1;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: ",";\n\n background: ",";\n overflow-y: auto;\n\n ",";\n\n --background-color: ",";\n --margins: -24px;\n\n h1 {\n padding: 0;\n margin-top: -11px;\n margin-bottom: -5px;\n }\n"],["\n flex: 1;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: ",";\n\n background: ",";\n overflow-y: auto;\n\n ",";\n\n --background-color: ",";\n --margins: -24px;\n\n h1 {\n padding: 0;\n margin-top: -11px;\n margin-bottom: -5px;\n }\n"])),u.spacings.xl,u.spacings.xl,u.colors.white,l.scrollBar,u.colors.white),t.SettingsWrapper=d.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),u.spacings.md)},18569:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyEditor=void 0;var a=r(n(14041)),o=n(68479),i=n(38955),l=n(78573),u=r(n(91985)),d=n(29039),c=n(32643),s=n(86172),f=n(50465),p=n(80296),m=n(26468),v=n(46748),h=n(78315),g=n(60487);t.PropertyEditor=function(){var e=(0,i.useParams)().id,t=(0,i.useResolvedPath)(""),n=(0,d.useAppDispatch)(),r=(0,i.useParams)().formId,b=(0,f.useQueryFormIntegrations)(r&&Number(r)),y=b.data,_=b.isFetching,x=(0,o.useSelector)(s.integrationSelectors.one(Number(e)));if(!y&&_)return a.default.createElement(h.LoadingEditor,null);if(!x)return a.default.createElement(v.EmptyEditor,null);var w=x.id,E=x.handle,O=x.enabled,P=x.name,j=x.description,k=x.properties;return a.default.createElement(g.PropertyEditorWrapper,null,a.default.createElement(l.Breadcrumb,{id:"integration-editor",label:P,url:t.pathname}),a.default.createElement("h1",{title:E},P),!!j&&a.default.createElement("p",null,j),a.default.createElement(g.SettingsWrapper,null,a.default.createElement(u.default,{property:{label:"Enabled",handle:"enabled",type:p.PropertyType.Boolean},value:O,updateValue:function(){return n(c.integrationActions.toggle(w))}}),k.map((function(e){return a.default.createElement(m.FieldComponent,{key:e.handle,integration:x,property:e})}))))}},63031:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CategorySkeleton=void 0;var a=r(n(14041)),o=r(n(47165)),i=n(71395),l=n(41204);t.CategorySkeleton=function(){return a.default.createElement(i.ThemedSkeleton,null,a.default.createElement(l.Wrapper,null,a.default.createElement(l.Label,null,a.default.createElement(o.default,{width:50})),a.default.createElement(l.ChildrenWrapper,{style:{padding:14}},[0,1,2].map((function(e){return a.default.createElement("div",{key:e,style:{display:"flex",gap:10,alignItems:"center"}},a.default.createElement(o.default,{width:20,height:20,circle:!0}),a.default.createElement("div",{style:{flexGrow:2}},a.default.createElement(o.default,{width:100,style:{top:2}})),a.default.createElement(o.default,{width:10,height:10,circle:!0,style:{top:6}}))})))))}},41204:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationItemWrapper=t.ChildrenWrapper=t.Label=t.LabelWrapper=t.Wrapper=void 0;var o,i,l,u,d=n(82919),c=a(n(10530));t.Wrapper=c.default.div(o||(o=r([""],[""]))),t.LabelWrapper=c.default.div(i||(i=r(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 5px;\n line-height: 22px;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 5px;\n line-height: 22px;\n"]))),t.Label=c.default.span(l||(l=r(["\n padding-left: ",";\n\n font-weight: 700;\n font-size: 11px;\n color: ",";\n\n text-transform: uppercase;\n"],["\n padding-left: ",";\n\n font-weight: 700;\n font-size: 11px;\n color: ",";\n\n text-transform: uppercase;\n"])),d.spacings.md,d.colors.gray550),t.ChildrenWrapper=c.default.div(u||(u=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: "," 0;\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: "," 0;\n"])),d.spacings.xs,d.spacings.xs),t.IntegrationItemWrapper=t.ChildrenWrapper},32802:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n a {\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border-radius: ",";\n\n color: ",";\n font-size: 12px;\n line-height: 12px;\n\n transition: background-color 0.2s ease-out;\n text-decoration: none;\n\n &.active {\n color: ",";\n background-color: ",";\n }\n\n &.active.inactive {\n .status-dot {\n border-color: ",";\n }\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n }\n"],["\n > a {\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border-radius: ",";\n\n color: ",";\n font-size: 12px;\n line-height: 12px;\n\n transition: background-color 0.2s ease-out;\n text-decoration: none;\n\n &.active {\n color: ",";\n background-color: ",";\n }\n\n &.active.inactive {\n .status-dot {\n border-color: ",";\n }\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n }\n"])),d.spacings.sm,d.spacings.sm,d.spacings.md,d.borderRadius.lg,d.colors.gray700,d.colors.white,d.colors.gray500,d.colors.white,d.colors.gray200),t.Icon=c.default.div(i||(i=r(["\n display: block;\n width: 20px;\n height: 20px;\n"],["\n display: block;\n width: 20px;\n height: 20px;\n"]))),t.Name=c.default.div(l||(l=r(["\n flex-grow: 1;\n max-width: 90%;\n\n padding: 1px 0;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n flex-grow: 1;\n max-width: 90%;\n\n padding: 1px 0;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]))),t.Status=c.default.div(u||(u=r(["\n content: '';\n\n flex-shrink: 0;\n justify-self: flex-end;\n\n width: 10px;\n height: 10px;\n\n border: 1px solid\n ",";\n border-radius: 100%;\n\n background-color: ",";\n\n transition: all 0.3s ease-out;\n"],["\n content: '';\n\n flex-shrink: 0;\n justify-self: flex-end;\n\n width: 10px;\n height: 10px;\n\n border: 1px solid\n ",";\n border-radius: 100%;\n\n background-color: ",";\n\n transition: all 0.3s ease-out;\n"])),(function(e){return e.$enabled?"transparent":d.colors.gray550}),(function(e){return e.$enabled?d.colors.teal550:"transparent"}))},20213:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Integration=void 0;var a=r(n(14041)),o=n(68479),i=n(38955),l=n(62362),u=n(86172),d=r(n(91797)),c=r(n(16175)),s=n(54403);t.Integration=function(e){var t=e.id,n=e.name,r=e.handle,f=e.icon,p=(0,l.useLastTab)("integrations").setLastTab,m=(0,o.useSelector)(u.integrationSelectors.one(t));return m?a.default.createElement(s.Wrapper,null,a.default.createElement(i.NavLink,{onClick:function(){return p("".concat(t,"/").concat(r))},to:"".concat(t,"/").concat(r),className:(0,d.default)(!m.enabled&&"inactive")},a.default.createElement(s.Icon,null,!!f&&a.default.createElement("img",{src:f}),!f&&a.default.createElement(c.default,null)),a.default.createElement(s.Name,null,n),a.default.createElement(s.Status,{$enabled:m.enabled,className:(0,d.default)("status-dot")}))):null}},47975:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=void 0;var o,i=n(82919),l=a(n(10530));t.Wrapper=l.default.ul(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n list-style: none;\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n list-style: none;\n"])),i.spacings.sm)},62633:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;na?an){if(c>=t&&t>n)return-r}else if(c<=t&&t span {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 10px;\n\n > span {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"]))),t.PageTab=(0,v.default)(f.animated.div)(u||(u=r(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n max-width: 160px;\n height: 100%;\n padding: 7px 10px;\n margin: 0 5px;\n\n color: ",";\n border-bottom: 2px solid ",";\n\n overflow: hidden;\n\n &.active {\n color: ",";\n border-bottom-color: ",";\n }\n\n &.errors {\n color: ",";\n\n ",";\n }\n\n &.can-drop {\n box-shadow: 0 2px 12px ",";\n transform: scale(1.1);\n z-index: 2;\n }\n\n &.is-dragging {\n z-index: 1;\n }\n\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n\n max-width: 160px;\n height: 100%;\n padding: 7px 10px;\n margin: 0 5px;\n\n color: ",";\n border-bottom: 2px solid ",";\n\n overflow: hidden;\n\n &.active {\n color: ",";\n border-bottom-color: ",";\n }\n\n &.errors {\n color: ",";\n\n ",";\n }\n\n &.can-drop {\n box-shadow: 0 2px 12px ",";\n transform: scale(1.1);\n z-index: 2;\n }\n\n &.is-dragging {\n z-index: 1;\n }\n\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n"])),m.colors.gray400,m.colors.gray100,m.colors.gray800,m.colors.blue600,m.colors.error,p.errorAlert,m.colors.gray500,t.RemoveTabButton),t.TabDrop=v.default.div(d||(d=r(["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n\n width: 100%;\n"],["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n\n width: 100%;\n"]))),t.Input=v.default.input(c||(c=r(["\n appearance: none;\n\n display: block;\n width: 100%;\n min-width: 100px;\n\n border: 0;\n padding: 0 !important;\n line-height: 1rem;\n font-size: 0.75rem;\n box-shadow: none !important;\n\n &:hover,\n &:active {\n box-shadow: none !important;\n }\n\n &::-webkit-contacts-auto-fill-button {\n visibility: hidden;\n display: none !important;\n pointer-events: none;\n position: absolute;\n right: 0;\n }\n"],["\n appearance: none;\n\n display: block;\n width: 100%;\n min-width: 100px;\n\n border: 0;\n padding: 0 !important;\n line-height: 1rem;\n font-size: 0.75rem;\n box-shadow: none !important;\n\n &:hover,\n &:active {\n box-shadow: none !important;\n }\n\n &::-webkit-contacts-auto-fill-button {\n visibility: hidden;\n display: none !important;\n pointer-events: none;\n position: absolute;\n right: 0;\n }\n"]))),t.RemoveButtonWrapper=v.default.div(s||(s=r(["\n position: absolute;\n top: 0px;\n right: -7px;\n\n transform: scale(0.8);\n"],["\n position: absolute;\n top: 0px;\n right: -7px;\n\n transform: scale(0.8);\n"])))},81167:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Tab=void 0;var l=o(n(14041)),u=n(68479),d=n(90574),c=n(69088),s=n(29039),f=n(16779),p=n(1924),m=n(71761),v=n(79833),h=n(12444),g=n(42869),b=n(2468),y=n(12888),_=i(n(91797)),x=i(n(40921)),w=i(n(14760)),E=n(49110),O=n(31585),P=n(5350),j=n(95570),k=n(39833);t.Tab=function(e){var t=e.page,n=e.index,r=(0,u.useSelector)(p.contextSelectors.currentPage),a=(0,u.useSelector)(v.pageSelecors.count),o=(0,s.useAppDispatch)(),i=(0,E.useDragContext)().dragType,M=(0,h.useTranslations)(t),C=M.willTranslate,S=M.updateTranslation,F=M.getTranslation,T=M.hasTranslation,D=M.removeTranslation,L=(0,u.useSelector)(p.contextSelectors.hasErrors(t.uid)),R=(0,l.useRef)(null),B=(0,l.useRef)(null),A=(0,l.useState)(!1),I=A[0],W=A[1],N=(0,y.useHover)(R),z=(0,j.useTabDrop)(null==r?void 0:r.uid,t),Q=z.canDrop,V=z.ref,G=(0,O.useTabDrag)(n,t),U=G.isDragging,H=G.ref,K=(0,j.useTabPageDrop)(R,t,n),$=K.ref,q=K.dragItemIndex;(0,l.useEffect)((function(){var e,t;I&&(null===(e=B.current)||void 0===e||e.focus(),null===(t=B.current)||void 0===t||t.select())}),[I]);var Y=V(H(R)),Z=(0,P.useTabDragAnimation)(R,n,q,U),J=function(){var e=B.current.value||t.label;S("label",e)||o(m.pageActions.updateLabel({uid:t.uid,label:e}))},X=(0,b.useClickOutside)({callback:function(){J(),W(!1)},isEnabled:I});return l.default.createElement(k.TabWrapper,{ref:Y,className:"page-tab"},(!!i||U)&&l.default.createElement(k.TabDrop,{ref:$}),l.default.createElement(k.PageTab,{ref:X,className:(0,_.default)((null==r?void 0:r.uid)===t.uid&&"active",L&&"errors",Q&&"can-drop",I&&"is-editing",U&&"is-dragging"),style:Z,onClick:function(){o(f.contextActions.setPage(t.uid))},onDoubleClick:function(){return W(!0)}},I?l.default.createElement(k.Input,{type:"text",ref:B,className:"text small",placeholder:t.label,defaultValue:F("label",t.label),onKeyUp:function(e){"Enter"===e.key&&(J(),W(!1)),"Escape"===e.key&&W(!1)}}):l.default.createElement(k.TabText,null,l.default.createElement("span",null,F("label",t.label)),C("label")&&l.default.createElement(c.TranslateIconWrapper,{className:(0,_.default)(T("label")&&"active"),onClick:function(){T("label")&&confirm("Are you sure you want to remove the translation?")&&D("label")}},l.default.createElement(w.default,null))),a>1&&l.default.createElement(k.RemoveButtonWrapper,null,l.default.createElement(d.RemoveButton,{active:N&&!I,onClick:function(){confirm((0,x.default)("Are you sure?"))&&o((0,g.deletePage)(t))}}))))}},46661:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderPageButtons=void 0;var a=r(n(14041)),o=r(n(47165)),i=n(38802);t.LoaderPageButtons=function(){return a.default.createElement(i.ButtonGroupWrapper,null,a.default.createElement(i.ButtonGroup,null),a.default.createElement(i.ButtonGroup,null,a.default.createElement("button",{className:"btn submit"},a.default.createElement(o.default,{width:50,baseColor:"#e12d39"}))))}},93874:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getButtonGroups=void 0;t.getButtonGroups=function(e){var t,n=((null===(t=e.buttons)||void 0===t?void 0:t.layout)||"save back|submit").split(" "),r=[];return n.forEach((function(t){var n=t.split("|"),a=[];n.forEach((function(t){if("back"!==t||0!==e.order)switch(t){case"submit":a.push({handle:"submit",label:e.buttons.submitLabel,enabled:!0});break;case"back":e.buttons.back&&a.push({handle:"back",label:e.buttons.backLabel,enabled:e.buttons.back});break;case"save":e.buttons.save&&a.push({handle:"save",label:e.buttons.saveLabel,enabled:e.buttons.save});break;default:return}})),r.push(a)})),r}},38802:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonGroup=t.ButtonGroupWrapper=void 0;var o,i,l,u=n(82919),d=a(n(10530));t.ButtonGroupWrapper=d.default.div(o||(o=r(["\n display: flex;\n justify-content: space-between;\n\n padding: "," ",";\n\n border: 1px solid transparent;\n border-radius: ",";\n\n cursor: pointer;\n\n transition:\n border-color 0.2s ease-out,\n background-color 0.2s ease-out;\n\n &.active {\n border: 1px dashed #5782ef;\n }\n\n &:hover {\n background: #f3f7fd;\n\n &:not(.active) {\n border: 1px solid #cdd8e4;\n }\n }\n"],["\n display: flex;\n justify-content: space-between;\n\n padding: "," ",";\n\n border: 1px solid transparent;\n border-radius: ",";\n\n cursor: pointer;\n\n transition:\n border-color 0.2s ease-out,\n background-color 0.2s ease-out;\n\n &.active {\n border: 1px dashed #5782ef;\n }\n\n &:hover {\n background: #f3f7fd;\n\n &:not(.active) {\n border: 1px solid #cdd8e4;\n }\n }\n"])),u.spacings.sm,u.spacings.md,u.borderRadius.md),t.ButtonGroup=d.default.div(i||(i=r(["\n display: flex;\n gap: ",";\n"],["\n display: flex;\n gap: ",";\n"])),u.spacings.md),t.Button=d.default.button(l||(l=r(["\n &.btn-submit {\n background-color: ",";\n color: white;\n\n &:hover {\n background-color: ",";\n }\n }\n"],["\n &.btn-submit {\n background-color: ",";\n color: white;\n\n &:hover {\n background-color: ",";\n }\n }\n"])),u.colors.gray600,u.colors.gray700)},32740:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PageButtons=void 0;var l=o(n(14041)),u=n(68479),d=n(29039),c=n(16779),s=n(1924),f=n(12444),p=i(n(91797)),m=n(50996),v=n(93874),h=n(38802),g={back:"btn",save:"btn",submit:"btn btn-submit"};t.PageButtons=function(e){var t=e.page,n=(0,d.useAppDispatch)(),r=(0,f.useTranslations)(t).getTranslation,a=(0,u.useSelector)(s.contextSelectors.focus),o=a.active,i=a.type,b=a.uid,y=(0,l.useMemo)((function(){return o&&i===c.FocusType.Page&&b===t.uid}),[o,i,b,t.uid]),_=(0,v.getButtonGroups)(t);return l.default.createElement(m.PageFieldLayoutWrapper,null,l.default.createElement(h.ButtonGroupWrapper,{className:(0,p.default)(y&&"active"),onClick:function(){n(c.contextActions.setFocusedItem({type:c.FocusType.Page,uid:t.uid}))}},_.map((function(e,t){return l.default.createElement(h.ButtonGroup,{key:t,className:"page-buttons"},e.map((function(e,t){return l.default.createElement(h.Button,{className:g[null==e?void 0:e.handle],key:t,type:"button"},r("".concat(null==e?void 0:e.handle,"Label"),null==e?void 0:e.label))})))}))))}},50149:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderPage=void 0;var a=r(n(14041)),o=n(4723),i=n(46661),l=n(57509);t.LoaderPage=function(){return a.default.createElement(l.PageWrapper,null,a.default.createElement(o.LoaderLayout,null),a.default.createElement(i.LoaderPageButtons,null))}},99652:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var a=r(n(14041)),o=n(29039),i=n(20713),l=n(4450),u=n(32740),d=n(57509);t.Page=function(e){var t=e.page,n=(0,o.useAppSelector)((function(e){return i.layoutSelectors.pageLayout(e,null==t?void 0:t.layoutUid)}));return a.default.createElement(d.PageWrapper,null,n&&a.default.createElement(l.Layout,{layout:n}),a.default.createElement(u.PageButtons,{page:t}))}},57509:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PageWrapper=void 0;var o,i=n(49974),l=n(82919),u=a(n(10530));t.PageWrapper=u.default.div(o||(o=r(["\n display: flex;\n flex: 1 0;\n flex-direction: column;\n gap: ",";\n\n padding: "," "," ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n ",";\n"],["\n display: flex;\n flex: 1 0;\n flex-direction: column;\n gap: ",";\n\n padding: "," "," ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n ",";\n"])),l.spacings.md,l.spacings.sm,l.spacings.xl,l.spacings.xl,i.scrollBar)},52559:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useRowAnimation=t.usePlaceholderAnimation=t.useOnMountAnimation=void 0;var r=n(37043);t.useOnMountAnimation=function(){return(0,r.useSpring)({from:{opacity:0,minHeight:1,transform:"scaleY(0)"},to:{opacity:1,minHeight:72,transform:"scaleY(1)"},config:{friction:11,tension:100,mass:.5}})};t.usePlaceholderAnimation=function(e){return(0,r.useSpring)({to:{height:e?30:20,opacity:e?1:0,transform:e?"scaleY(1)":"scaleY(0)"},delay:e?200:0,config:{tension:500}})};t.useRowAnimation=function(e){return(0,r.useSpring)({to:{y:e?20:0},delay:e?200:0,config:{tension:300}})}},21793:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useRowDrop=void 0;var r=n(74507),a=n(17717),o=n(29039),i=n(77512);t.useRowDrop=function(e){var t=(0,o.useAppDispatch)(),n=(0,r.useDrop)((function(){return{accept:[a.Drag.FieldType,a.Drag.Field],collect:function(e){return{isOver:e.isOver({shallow:!0}),canDrop:e.canDrop()}},canDrop:function(e,t){return t.isOver({shallow:!0})},drop:function(n){n.type===a.Drag.Field&&t(i.fieldThunks.move.existingField.newRow({layoutUid:e.layoutUid,field:n.data,order:e.order})),n.type===a.Drag.FieldType&&t(i.fieldThunks.move.newField.newRow({fieldType:n.data,row:e}))}}}),[e]),l=n[0],u=l.isOver,d=l.canDrop;return{ref:n[1],isOver:u,canDrop:d}}},1654:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useRowFieldDrop=void 0;var r=n(14041),a=n(74507),o=n(17717),i=n(29039),l=n(77512);t.useRowFieldDrop=function(e,t,n,u,d){var c=(0,i.useAppDispatch)(),s=(0,r.useState)(),f=s[0],p=s[1],m=(0,r.useState)(),v=m[0],h=m[1],g=(0,a.useDrop)({accept:[o.Drag.Field,o.Drag.FieldType],collect:function(e){var n=e.getItem(),r=(null==n?void 0:n.type)===o.Drag.Field,a=(null==n?void 0:n.type)===o.Drag.Field&&n.data.rowUid===t.uid;return{isOver:e.isOver({shallow:!0}),canDrop:e.canDrop(),dragFieldIndex:(null==n?void 0:n.type)===o.Drag.Field?n.index:void 0,isCurrentRow:a,isDraggingField:r}},canDrop:function(e,t){return t.isOver({shallow:!0})},hover:function(e,r){if(void 0!==u&&void 0!==d){var a=e.type===o.Drag.Field&&e.data.rowUid===t.uid,i=n+(a?0:1);if(!(i<=1)){var l=r.getClientOffset().x-d,c=Math.floor(l/(u/i));v!==c&&h(c)}}},drop:function(e){e.type===o.Drag.Field?c(l.fieldThunks.move.existingField.existingRow(e.data,t,v)):e.type===o.Drag.FieldType&&c(l.fieldThunks.move.newField.existingRow({fieldType:e.data,row:t,order:v})),h(void 0)}},[e,t,n,v,u]),b=g[0],y=b.isOver,_=b.isCurrentRow,x=b.dragFieldIndex,w=b.isDraggingField,E=b.canDrop,O=g[1];return(0,r.useEffect)((function(){var e=n;y&&!_&&(e+=1),p(u/Math.max(1,e))}),[y,n,u,_]),{ref:O,isOver:y,isCurrentRow:_,isDraggingField:w,canDrop:E,hoverPosition:v,fieldWidth:f,dragFieldIndex:x}}},32917:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderRow=void 0;var a=r(n(14041)),o=n(55993),i=n(48322);t.LoaderRow=function(){return a.default.createElement(i.RowWrapper,null,a.default.createElement(i.RowFieldsContainer,null,a.default.createElement(o.LoaderField,null)))}},48322:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldPlaceholder=t.DropZoneAnimation=t.DropZone=t.RowFieldsContainer=t.RowWrapper=void 0;var o,i,l,u,d,c=n(37043),s=n(82919),f=a(n(10530));t.RowWrapper=(0,f.default)(c.animated.div)(o||(o=r(["\n position: relative;\n\n min-height: 1px;\n margin: 0 -",";\n\n background-color: #f3f7fc00;\n border: 1px solid transparent;\n\n transition: all 0.2s ease-out;\n transform-origin: 50% 0%;\n"],["\n position: relative;\n\n min-height: 1px;\n margin: 0 -",";\n\n background-color: #f3f7fc00;\n border: 1px solid transparent;\n\n transition: all 0.2s ease-out;\n transform-origin: 50% 0%;\n"])),s.spacings.lg),t.RowFieldsContainer=(0,f.default)(c.animated.div)(i||(i=r(["\n position: relative;\n z-index: 2;\n\n display: flex;\n flex-direction: row;\n align-items: stretch;\n"],["\n position: relative;\n z-index: 2;\n\n display: flex;\n flex-direction: row;\n align-items: stretch;\n"]))),t.DropZone=f.default.div(l||(l=r(["\n position: absolute;\n left: ",";\n right: ",";\n top: -10px;\n\n z-index: 4;\n\n height: 20px;\n"],["\n position: absolute;\n left: ",";\n right: ",";\n top: -10px;\n\n z-index: 4;\n\n height: 20px;\n"])),s.spacings.sm,s.spacings.sm),t.DropZoneAnimation=(0,f.default)(c.animated.div)(u||(u=r(["\n position: relative;\n top: 3px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n overflow: hidden;\n height: 100%;\n\n background-color: #e9effd;\n border: 1px dashed #c3c3c3;\n border-radius: ",";\n\n font-size: 12px;\n line-height: 12px;\n\n text-align: center;\n font-family: monospace;\n"],["\n position: relative;\n top: 3px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n overflow: hidden;\n height: 100%;\n\n background-color: #e9effd;\n border: 1px dashed #c3c3c3;\n border-radius: ",";\n\n font-size: 12px;\n line-height: 12px;\n\n text-align: center;\n font-family: monospace;\n"])),s.borderRadius.md),t.FieldPlaceholder=(0,f.default)(c.animated.div)(d||(d=r(["\n border: 2px dashed grey;\n\n min-height: ",";\n flex-grow: 1;\n flex-shrink: 0;\n"],["\n border: 2px dashed grey;\n\n min-height: ",";\n flex-grow: 1;\n flex-shrink: 0;\n"])),"72px")},45428:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Row=void 0;var i=o(n(14041)),l=n(68479),u=n(85905),d=n(19848),c=n(89208),s=n(60193),f=n(52559),p=n(21793),m=n(1654),v=n(48322),h=(0,i.memo)((function(e){var t=e.row,n=(0,l.useSelector)(u.fieldSelectors.inRow(t)),r=(0,d.useDimensionsObserver)(),a=r.ref,o=r.dimensions,h=o.width,g=o.x,b=(0,p.useRowDrop)(t),y=b.ref,_=b.isOver,x=(0,f.usePlaceholderAnimation)(_),w=(0,f.useRowAnimation)(_),E=(0,m.useRowFieldDrop)(a,t,n.length,h,g),O=E.ref,P=E.isOver,j=E.isCurrentRow,k=E.isDraggingField,M=E.dragFieldIndex,C=E.hoverPosition,S=E.fieldWidth,F=O(a);return i.default.createElement(v.RowWrapper,{ref:F},i.default.createElement(v.DropZone,{ref:y},i.default.createElement(v.DropZoneAnimation,{style:x})),i.default.createElement(v.RowFieldsContainer,{style:w},i.default.createElement(s.FieldDragPlaceholder,{isActive:P,hoverPosition:C,fieldWidth:S}),n.map((function(e,t){return i.default.createElement(c.Field,{field:e,isOver:P,hoverPosition:C,isCurrentRow:j,isDraggingField:k,dragFieldIndex:M,index:t,key:e.uid,width:S||h})}))))}));t.Row=h,h.displayName="Row"},64275:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderFieldGroup=void 0;var a=r(n(14041)),o=r(n(47165)),i=n(73979),l=n(79966),u=n(88756);t.LoaderFieldGroup=function(e){var t=e.words,n=e.items;return a.default.createElement(u.FieldGroupWrapper,null,a.default.createElement(u.GroupTitle,null,t.map((function(e,t){return a.default.createElement(o.default,{key:t,width:e,height:16,inline:!0,style:{marginRight:8}})}))),a.default.createElement(u.List,null,(0,i.range)(n).map((function(e){return a.default.createElement(l.LoaderFieldItem,{key:e})}))))}},88756:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.List=t.GroupTitle=t.FieldGroupWrapper=void 0;var o,i,l,u=n(82919),d=a(n(10530));t.FieldGroupWrapper=d.default.div(o||(o=r(["\n margin-bottom: ",";\n\n &.disabled {\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n }\n"],["\n margin-bottom: ",";\n\n &.disabled {\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n }\n"])),u.spacings.xl),t.GroupTitle=d.default.h2(i||(i=r(["\n position: relative;\n\n margin: 0;\n padding: 0 0 5px;\n\n button {\n position: absolute;\n top: 1px;\n right: 0;\n\n transition: all 0.2s ease;\n\n &:hover {\n transform: scale(1.1);\n }\n }\n"],["\n position: relative;\n\n margin: 0;\n padding: 0 0 5px;\n\n button {\n position: absolute;\n top: 1px;\n right: 0;\n\n transition: all 0.2s ease;\n\n &:hover {\n transform: scale(1.1);\n }\n }\n"]))),t.List=d.default.div(l||(l=r(["\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 5px;\n\n margin: 0;\n padding: 0;\n"],["\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 5px;\n\n margin: 0;\n padding: 0;\n"])))},11714:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldGroup=void 0;var a=r(n(14041)),o=r(n(91797)),i=n(88756);t.FieldGroup=function(e){var t=e.title,n=e.disabled,r=e.editionIsPro,l=e.button,u=e.children;return a.default.createElement(i.FieldGroupWrapper,{className:(0,o.default)(n&&"disabled")},a.default.createElement(i.GroupTitle,null,t,l&&(void 0===r||r)&&a.default.createElement("button",{type:"button",title:l.title,onClick:l.onClick},l.icon)),u)}},79966:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderFieldItem=void 0;var l=i(n(14041)),u=o(n(47165)),d=n(85785);t.LoaderFieldItem=function(){return l.default.createElement(d.Wrapper,null,l.default.createElement(u.SkeletonTheme,null,l.default.createElement(u.default,{width:18,height:18,borderRadius:"50%",style:{position:"relative",top:-2}}),l.default.createElement(u.default,{width:50,style:{position:"relative",top:-1}})))}},85785:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=t.Name=t.Wrapper=void 0;var o,i,l,u=n(82919),d=a(n(10530));t.Wrapper=d.default.div(o||(o=r(["\n cursor: pointer;\n\n display: flex;\n gap: 6px;\n align-items: center;\n\n height: 28px;\n\n padding: 0 4px;\n overflow: hidden;\n\n background: ",";\n border: 1px solid ",";\n border-radius: 3px;\n\n font-size: 12px;\n\n transition: all 0.2s ease-in-out;\n\n &:hover {\n transform: scale(1.05);\n border-color: ",";\n background-color: ",";\n }\n"],["\n cursor: pointer;\n\n display: flex;\n gap: 6px;\n align-items: center;\n\n height: 28px;\n\n padding: 0 4px;\n overflow: hidden;\n\n background: ",";\n border: 1px solid ",";\n border-radius: 3px;\n\n font-size: 12px;\n\n transition: all 0.2s ease-in-out;\n\n &:hover {\n transform: scale(1.05);\n border-color: ",";\n background-color: ",";\n }\n"])),u.colors.white,u.colors.gray100,u.colors.gray200,u.colors.gray050),t.Name=d.default.span(i||(i=r(["\n flex: 1;\n line-height: 14px;\n\n overflow-x: hidden;\n overflow-y: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"],["\n flex: 1;\n line-height: 14px;\n\n overflow-x: hidden;\n overflow-y: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"]))),t.Icon=d.default.div(l||(l=r(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n flex-shrink: 0;\n flex-basis: 18px;\n\n svg {\n max-width: 18px;\n max-height: 18px;\n }\n\n color: ",";\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n\n flex-shrink: 0;\n flex-basis: 18px;\n\n svg {\n max-width: 18px;\n max-height: 18px;\n }\n\n color: ",";\n"])),u.colors.gray500)},67965:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Field=void 0;var a=r(n(14041)),o=n(85785);t.Field=function(e){var t=e.icon,n=e.label,r=e.dragRef,i=e.onClick;return a.default.createElement(o.Wrapper,{ref:r,onClick:i,title:n},a.default.createElement(o.Icon,{dangerouslySetInnerHTML:{__html:t}}),a.default.createElement(o.Name,null,n))}},73103:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderFieldList=void 0;var a=r(n(14041)),o=n(91100),i=n(64275),l=n(31885);t.LoaderFieldList=function(){return a.default.createElement(o.Sidebar,null,a.default.createElement(l.LoaderSearch,null),a.default.createElement(i.LoaderFieldGroup,{words:[50,70],items:16}))}},5856:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldListWrapper=void 0;var o,i=n(37043),l=n(49974),u=n(82919),d=a(n(10530)),c=n(85785);t.FieldListWrapper=(0,d.default)(i.animated.div)(o||(o=r(["\n position: relative;\n padding: ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n\n height: 100%;\n ",";\n\n &.fields-disabled {\n "," {\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n }\n }\n"],["\n position: relative;\n padding: ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n\n height: 100%;\n ",";\n\n &.fields-disabled {\n "," {\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n }\n }\n"])),u.spacings.lg,l.scrollBar,c.Wrapper)},93406:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldList=void 0;var l=i(n(14041)),u=n(68479),d=o(n(84350)),c=n(85905),s=n(91992),f=i(n(91797)),p=n(22350),m=n(80642),v=n(2958),h=n(6988),g=n(5856);t.FieldList=function(){(0,s.useFetchFieldPropertySections)();var e=(0,u.useSelector)(c.fieldSelectors.count),t=d.default.editions.is(d.Edition.Express)&&e>=d.default.limits.fields;return l.default.createElement(g.FieldListWrapper,{className:(0,f.default)(t&&"fields-disabled")},l.default.createElement(h.Search,null),l.default.createElement(m.FavoriteFields,null),l.default.createElement(p.BaseFields,null),l.default.createElement(v.FormsFields,null))}},16165:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0}));return{types:a||[],groups:r(r({},t.groups),{grouped:o||[]})}}),[e])};t.useSelectSearchedFields=function(){var e=(0,o.useSelector)(l.searchSelectors.query(i.Search.Fields));return(0,a.useCallback)((function(t){return e?t.filter((function(t){return t.name.toLowerCase().includes(e.toLowerCase())})):t}),[e])};t.useSelectSearchedFavorites=function(){var e=(0,o.useSelector)(l.searchSelectors.query(i.Search.Fields));return(0,a.useCallback)((function(t){return e?t.filter((function(t){return t.label.toLowerCase().includes(e.toLowerCase())})):t}),[e])};t.useSelectSearchedForms=function(){var e=(0,o.useSelector)(l.searchSelectors.query(i.Search.Fields));return(0,a.useCallback)((function(t){return e?t.map((function(t){return r(r({},t),{fields:t.fields.filter((function(t){return t.label.toLowerCase().includes(e.toLowerCase())}))})})).filter((function(e){return e.fields.length>0})):t}),[e])}},92080:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GroupName=t.GroupWrapper=void 0;var o,i,l=n(82919),u=a(n(10530));t.GroupWrapper=u.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n margin-bottom: ",";\n\n svg {\n fill: ",";\n }\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n margin-bottom: ",";\n\n svg {\n fill: ",";\n }\n"])),l.spacings.xs,l.spacings.md,(function(e){return e.color||l.colors.black})),t.GroupName=u.default.div(i||(i=r(["\n text-transform: uppercase;\n font-size: 10px;\n"],["\n text-transform: uppercase;\n font-size: 10px;\n"])))},22350:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseFields=void 0;var l=i(n(14041)),u=n(61460),d=o(n(84350)),c=n(91992),s=n(86338),f=i(n(40921)),p=i(n(94915)),m=n(11714),v=n(64275),h=n(88756),g=n(16165),b=n(36437),y=n(92080),_=n(86393),x=(0,f.default)("Field Types"),w=function(e){var t=e.group,n=(0,c.useFieldTypeSearch)(),r=t.types.map((function(e){var t=n(e);return(null==t?void 0:t.visible)?t&&l.default.createElement(_.FieldItem,{key:e,fieldType:t}):null})).filter(Boolean);return r.length?l.default.createElement(y.GroupWrapper,{key:t.uid,color:t.color},t.label&&l.default.createElement(y.GroupName,null,t.label),l.default.createElement(h.List,null,r)):null};t.BaseFields=function(){var e,t=(0,g.useSelectSearchedGroups)(),n=(0,s.useFetchGroups)({select:t}),r=n.data,a=n.isFetching,o=n.isError,i=n.error,c=(0,b.useCreateModal)();return!r&&a?l.default.createElement(v.LoaderFieldGroup,{words:[50,70],items:16}):o?l.default.createElement(u.ErrorBlock,null,i.message):l.default.createElement(m.FieldGroup,{button:{icon:l.default.createElement(p.default,null),title:(0,f.default)("Edit Manager"),onClick:c},editionIsPro:d.default.editions.is(d.Edition.Pro),title:(0,f.default)(x)},null===(e=r.groups.grouped)||void 0===e?void 0:e.map((function(e){return l.default.createElement(w,{key:e.uid,group:e})})),(null==r?void 0:r.types)&&l.default.createElement(w,{group:{uid:"external",types:r.types}}))}},86351:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useBaseFieldDrag=void 0;var r=n(14041),a=n(74507),o=n(17717),i=n(49110);t.useBaseFieldDrag=function(e){var t=(0,i.useDragContext)(),n=t.dragOn,l=t.dragOff,u=(0,a.useDrag)((function(){return{type:o.Drag.FieldType,collect:function(e){return{isDragging:e.isDragging()}},item:{type:o.Drag.FieldType,data:e}}})),d=u[0].isDragging,c=u[1];return(0,r.useEffect)((function(){d?n(o.Drag.FieldType):l()}),[d]),{ref:c}}},86393:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldItem=void 0;var a=r(n(14041)),o=n(29039),i=n(77512),l=r(n(40921)),u=n(67965),d=n(86351);t.FieldItem=function(e){var t=e.fieldType,n=t.icon,r=t.name,c=(0,o.useAppDispatch)(),s=(0,d.useBaseFieldDrag)(t).ref;return a.default.createElement(u.Field,{icon:n,label:(0,l.default)(r),onClick:function(){c(i.fieldThunks.move.newField.newRow({fieldType:t}))},dragRef:s})}},94540:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Remove=t.Icon=t.Name=t.Wrapper=void 0;var o,i,l,u,d=n(82919),c=a(n(10530));t.Wrapper=c.default.div(o||(o=r(["\n cursor: pointer;\n\n display: flex;\n gap: 6px;\n align-items: center;\n\n height: 28px;\n\n padding: 0 4px;\n overflow: hidden;\n\n background: ",";\n border: 1px solid ",";\n border-radius: 3px;\n\n font-size: 12px;\n\n transition: all 0.2s ease-in-out;\n\n &:hover {\n transform: scale(1.05);\n border-color: ",";\n background-color: ",";\n }\n"],["\n cursor: pointer;\n\n display: flex;\n gap: 6px;\n align-items: center;\n\n height: 28px;\n\n padding: 0 4px;\n overflow: hidden;\n\n background: ",";\n border: 1px solid ",";\n border-radius: 3px;\n\n font-size: 12px;\n\n transition: all 0.2s ease-in-out;\n\n &:hover {\n transform: scale(1.05);\n border-color: ",";\n background-color: ",";\n }\n"])),d.colors.white,d.colors.gray100,d.colors.gray200,d.colors.gray050),t.Name=c.default.span(i||(i=r(["\n flex: 1;\n line-height: 14px;\n\n overflow-x: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"],["\n flex: 1;\n line-height: 14px;\n\n overflow-x: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"]))),t.Icon=c.default.div(l||(l=r(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n flex-shrink: 0;\n flex-basis: 18px;\n\n svg {\n max-width: 18px;\n max-height: 18px;\n }\n\n color: ",";\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n\n flex-shrink: 0;\n flex-basis: 18px;\n\n svg {\n max-width: 18px;\n max-height: 18px;\n }\n\n color: ",";\n"])),d.colors.gray500),t.Remove=c.default.div(u||(u=r(["\n color: ",";\n margin-right: ",";\n"],["\n color: ",";\n margin-right: ",";\n"])),d.colors.gray500,d.spacings.xs)},33050:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldItem=void 0;var l=o(n(14041)),u=n(12888),d=n(91992),c=i(n(35934)),s=n(94540);t.FieldItem=function(e){var t=e.typeClass,n=(0,d.useFieldType)(t),r=(0,l.useRef)(null),a=(0,u.useHover)(r);if(!n)return null;var o=n.name,i=n.icon;return l.default.createElement(s.Wrapper,{"data-id":t,ref:r,title:o},l.default.createElement(s.Icon,{dangerouslySetInnerHTML:{__html:i}}),l.default.createElement(s.Name,null,o),a&&l.default.createElement(s.Remove,{className:"remove field-item-remove"},l.default.createElement(c.default,null)))}},8650:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n .unassigned {\n .remove {\n display: none;\n }\n }\n"],["\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: ",";\n\n padding-top: ",";\n\n > .unassigned {\n .remove {\n display: none;\n }\n }\n"])),_.spacings.xl,_.spacings.lg),t.UHField=x.default.div(v||(v=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," "," "," ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," "," "," ",";\n"])),_.spacings.md,_.spacings.xs,_.spacings.xs,_.spacings.xs,_.spacings.md),t.ColorCircle=x.default.div(h||(h=r(["\n width: 20px;\n height: 20px;\n border-radius: 50%;\n border: 1px solid ",";\n cursor: pointer;\n background-color: ",";\n position: relative;\n"],["\n width: 20px;\n height: 20px;\n border-radius: 50%;\n border: 1px solid ",";\n cursor: pointer;\n background-color: ",";\n position: relative;\n"])),_.colors.gray100,(function(e){return e.color||_.colors.black})),t.ColorPicker=x.default.div(g||(g=r(["\n > .sketch-picker {\n padding: 5px 1px 0px !important;\n box-shadow: inherit !important;\n }\n"],["\n > .sketch-picker {\n padding: 5px 1px 0px !important;\n box-shadow: inherit !important;\n }\n"]))),t.ErrorBlock=x.default.div(b||(b=r(["\n color: ",";\n"],["\n color: ",";\n"])),_.colors.warning)},18428:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateModal=void 0;var l=o(n(14041)),u=n(35256),d=n(57751),c=n(9408),s=n(83750),f=n(29620),p=n(11453),m=n(86338),v=n(80296),h=i(n(40921)),g=i(n(35934)),b=i(n(87804)),y=n(33050),_=n(8650),x=n(65002),w=n(86839);t.CreateModal=function(e){var t,n,r,a,o,i=e.closeModal,E=(0,l.useState)({}),O=E[0],P=E[1],j=(0,l.useState)(),k=j[0],M=j[1],C=(0,l.useState)(),S=C[0],F=C[1],T=(0,l.useState)(!1),D=T[0],L=T[1],R=(0,l.useRef)({}),B=(0,_.useGroupOperations)(O,P,R),A=B.addGroup,I=B.updateGroupInfo,W=B.syncFromRefs,N=(0,m.useFetchGroups)().data;(0,l.useEffect)((function(){N&&!D&&(P(N),L(!0))}),[N,D]),(0,l.useEffect)((function(){(0,w.initializeSortable)(R)}),[]);var z=(0,p.useGroupMutation)({onSuccess:function(){i()},onError:function(e){F(e.errors)}}),Q=z.isLoading;return l.default.createElement(f.ModalContainer,{style:{maxWidth:"70%"}},l.default.createElement(f.ModalHeader,null,l.default.createElement("h1",null,(0,h.default)("Field Type Manager"))),l.default.createElement(x.ManagerWrapper,null,l.default.createElement(x.GroupWrapper,{ref:function(e){return R.current.groupWrapper=e},$empty:(0,h.default)("Click the 'Add Group' button on the right to begin.")},(null==S?void 0:S.length)&&l.default.createElement(x.ErrorBlock,null,(0,h.default)("Something went wrong!")),null===(n=null===(t=O.groups)||void 0===t?void 0:t.grouped)||void 0===n?void 0:n.map((function(e){var t;return l.default.createElement(x.GroupLayout,{key:e.uid,"data-id":e.uid},l.default.createElement(x.GroupType,null,l.default.createElement(x.GroupHeader,null,l.default.createElement(d.Tooltip,{trigger:"click",position:"right",interactive:!0,interactiveBorder:0,size:"small",theme:"light",arrow:!0,html:l.default.createElement(x.ColorPicker,null,l.default.createElement(u.SketchPicker,{color:(null==k?void 0:k.color)||e.color,onChange:function(t){return M({groupUid:e.uid,color:t.hex})},onChangeComplete:function(t){I("color",t.hex,e.uid)}}))},l.default.createElement(x.ColorCircle,{color:e.color,onClick:function(){return M({groupUid:e.uid,color:e.color})}})),l.default.createElement(c.FormComponent,{value:e.label,property:{type:v.PropertyType.Label,handle:e.uid},updateValue:function(t){return I("label",t,e.uid)}})),l.default.createElement(x.GroupItemWrapper,{$empty:(0,h.default)("Drag and drop any field here"),ref:function(t){(0,w.initializeGroupedSortable)(t,e.uid,R)},color:e.color},null===(t=e.types)||void 0===t?void 0:t.map((function(e){return l.default.createElement(y.FieldItem,{key:e,typeClass:e})})))),l.default.createElement(x.CloseAndMoveWrapper,null,l.default.createElement("button",{className:"group-remove"},l.default.createElement(g.default,null)),l.default.createElement("button",{className:"handle"},l.default.createElement(b.default,null))))}))),l.default.createElement(x.FieldListWrapper,null,l.default.createElement("button",{onClick:A,type:"button",className:"btn add icon dashed"},(0,h.default)("Add Group")),l.default.createElement(x.UHFieldWrapper,null,l.default.createElement(x.UHField,{className:"unassigned"},l.default.createElement("h3",null,(0,h.default)("Unassigned")),l.default.createElement(x.FieldTypes,{$empty:(0,h.default)("Drag and drop any fields here. Unassigned fields will display at the bottom of the list of field types."),ref:function(e){return R.current.unassigned=e}},null===(r=O.types)||void 0===r?void 0:r.map((function(e){return l.default.createElement(y.FieldItem,{key:e,typeClass:e})})))),l.default.createElement(x.UHField,null,l.default.createElement("h3",null,(0,h.default)("Hidden")),l.default.createElement(x.FieldTypes,{$empty:(0,h.default)("Drag and drop any fields here to hide them."),ref:function(e){return R.current.hidden=e}},null===(o=null===(a=O.groups)||void 0===a?void 0:a.hidden)||void 0===o?void 0:o.map((function(e){return l.default.createElement(y.FieldItem,{key:e,typeClass:e})}))))))),l.default.createElement(f.ModalFooter,null,l.default.createElement("button",{type:"button",className:"btn",onClick:i,disabled:Q},(0,h.default)("Cancel")),l.default.createElement("button",{type:"button",className:"btn submit"},l.default.createElement(s.LoadingText,{loadingText:(0,h.default)("Saving"),loading:Q,onClick:function(){return z.mutate(W())},spinner:!0},(0,h.default)("Save")))))}},86839:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.initializeGroupedSortable=t.initializeSortable=void 0;var a=r(n(23571)),o=function(e,t){return".handle"!==t.options.handle};t.initializeSortable=function(e){var t;t={unassigned:{group:{name:"shared",put:o},animation:150,sort:!1},hidden:{group:{name:"shared",put:o},animation:150,sort:!0,filter:".field-item-remove",onFilter:function(t){return e.current.unassigned.appendChild(t.item)}},groupWrapper:{handle:".handle",filter:".group-remove",sort:!0,animation:150,onFilter:function(t){var n,r=Array.from(e.current[t.item.dataset.id].children);(n=e.current.unassigned).append.apply(n,r),t.item.remove()}}},Object.entries(t).forEach((function(t){return function(t,n){var r=e.current[t];r&&a.default.create(r,n)}(t[0],t[1])}))};t.initializeGroupedSortable=function(e,t,n){e&&(a.default.create(e,{animation:150,group:{name:"group-".concat(t),put:function(e,t){return".handle"!==t.options.handle}},sort:!0,filter:".field-item-remove",onFilter:function(e){return n.current.unassigned.appendChild(e.item)}}),n.current[t]=e)}},36437:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useCreateModal=void 0;var r=n(48681),a=n(18428);t.useCreateModal=function(){var e=(0,r.useModal)().openModal;return function(){e(a.CreateModal)}}},80642:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteFields=void 0;var a=r(n(14041)),o=n(61460),i=n(20708),l=n(91992),u=r(n(40921)),d=r(n(94915)),c=n(11714),s=n(64275),f=n(88756),p=n(16165),m=n(20530),v=n(55890),h=(0,u.default)("Favorites");t.FavoriteFields=function(){var e=(0,p.useSelectSearchedFavorites)(),t=(0,i.useFetchFavorites)({select:e}),n=t.data,r=t.isFetching,g=t.isError,b=t.error,y=(0,m.useCreateModal)(),_=(0,l.useFieldTypeSearch)();return!n&&r?a.default.createElement(s.LoaderFieldGroup,{words:[60],items:2}):g?a.default.createElement(o.ErrorBlock,null,b.message):n.length?a.default.createElement(c.FieldGroup,{title:(0,u.default)(h),button:{icon:a.default.createElement(d.default,null),title:(0,u.default)("Edit Favorites"),onClick:y}},a.default.createElement(f.List,null,n.map((function(e){var t=_(e.typeClass);return t&&(null==t?void 0:t.visible)?a.default.createElement(v.FieldItem,{key:e.id,favorite:e}):null})))):null}},75016:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneFieldTypeFromFavorite=void 0;var a=r(n(68290));t.cloneFieldTypeFromFavorite=function(e,t){var n=(0,a.default)(t);return Object.entries(e.properties).map((function(e){var t,r=e[0],a=e[1],o=null===(t=null==n?void 0:n.properties)||void 0===t?void 0:t.find((function(e){return e.handle===r}));o&&(o.value=a)})),n}},55890:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldItem=void 0;var a=r(n(14041)),o=n(29039),i=n(77512),l=n(91992),u=n(67965),d=n(86351),c=n(75016);t.FieldItem=function(e){var t=e.favorite,n=t.typeClass,r=t.label,s=(0,l.useFieldType)(n),f=(0,c.cloneFieldTypeFromFavorite)(t,s),p=(0,o.useAppDispatch)(),m=(0,d.useBaseFieldDrag)(f).ref;if(!s||!f)return null;var v=s.icon;return a.default.createElement(u.Field,{icon:v,label:r,onClick:function(){p(i.fieldThunks.move.newField.newRow({fieldType:f}))},dragRef:m})}},77742:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteFieldComponent=void 0;var a=r(n(14041)),o=n(9408),i=n(68667);t.FavoriteFieldComponent=function(e){var t=e.property,n=e.siblingProperties,r=e.state,l=e.errors,u=e.updateValueCallback,d=(0,i.useValueUpdateGenerator)(n,r,u);return a.default.createElement(o.FormComponent,{value:(null==r?void 0:r[t.handle])||"",property:t,updateValue:d(t),errors:l,context:{properties:r}})}},1452:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoritesEditor=void 0;var a=r(n(14041)),o=n(4645),i=n(91776),l=n(50380),u=n(97216),d=n(91992),c=n(77742);t.FavoritesEditor=function(e){var t=e.field,n=e.errors,r=e.values,s=e.updateValueCallback,f=(0,d.useFetchFieldPropertySections)().data,p=(0,d.useFieldType)(null==t?void 0:t.typeClass);if(!t||!p||!f)return null;var m=[];return f.sort((function(e,t){return e.order-t.order})).forEach((function(e){var t=e.handle,o=e.label,i=e.icon,l=p.properties.filter(function(e){return function(t){return t.section===e}}(t));l.length&&m.push(a.default.createElement(u.SectionBlock,{label:o,icon:i,key:t},l.map((function(e){return a.default.createElement(c.FavoriteFieldComponent,{key:e.handle,errors:null==n?void 0:n[e.handle],state:r,siblingProperties:p.properties,property:e,updateValueCallback:s})}))))})),a.default.createElement(a.default.Fragment,null,a.default.createElement(l.Title,null,a.default.createElement(l.Icon,{dangerouslySetInnerHTML:{__html:p.icon}}),a.default.createElement("span",null,(null==r?void 0:r.label)||p.name)),a.default.createElement(o.RenderContextProvider,{size:"small"},a.default.createElement(i.SectionWrapper,null,m)))}},85535:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteListItem=void 0;var l=o(n(14041)),u=n(90574),d=n(12888),c=n(91992),s=i(n(91797)),f=n(57551);t.FavoriteListItem=function(e){var t=e.favorite,n=e.label,r=e.errors,a=e.isActive,o=e.onClick,i=e.onDelete,p=(0,l.useRef)(null),m=(0,d.useHover)(p),v=(0,c.useFieldType)(t.typeClass);if(!v)return null;var h=void 0!==r&&r.length;return l.default.createElement(f.FieldListItem,{key:t.id,ref:p,onClick:o,className:(0,s.default)(a&&"active",h&&"errors")},l.default.createElement(f.Icon,{dangerouslySetInnerHTML:{__html:v.icon}}),l.default.createElement("span",null,n),l.default.createElement(u.RemoveButton,{active:m,onClick:i}))}},57551:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteButton=t.Icon=t.FieldListItem=t.FieldList=t.FavoritesEditorWrapper=t.FavoritesWrapper=void 0;var o=n(50380),i=n(83534),l=n(49974),u=n(82919),d=a(n(10530));t.FavoritesWrapper=d.default.div(c||(c=r(["\n display: flex;\n justify-content: space-between;\n\n height: 600px;\n"],["\n display: flex;\n justify-content: space-between;\n\n height: 600px;\n"])));var c,s,f,p,m,v;t.FavoritesEditorWrapper=d.default.div(s||(s=r(["\n flex: 1;\n\n height: 100%;\n padding: 0 ",";\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n\n "," {\n padding-left: 0;\n font-size: 18px;\n\n "," {\n width: ","px;\n height: ","px;\n\n svg {\n max-width: ","px;\n max-height: ","px;\n }\n }\n }\n\n "," {\n &:after {\n background-color: white;\n }\n }\n"],["\n flex: 1;\n\n height: 100%;\n padding: 0 ",";\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n\n "," {\n padding-left: 0;\n font-size: 18px;\n\n "," {\n width: ","px;\n height: ","px;\n\n svg {\n max-width: ","px;\n max-height: ","px;\n }\n }\n }\n\n "," {\n &:after {\n background-color: white;\n }\n }\n"])),u.spacings.lg,l.scrollBar,o.Title,o.Icon,22,22,22,22,i.SectionBlockContainer),t.FieldList=d.default.ul(f||(f=r(["\n display: flex;\n flex-direction: column;\n gap: 2px;\n\n padding: ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n\n background: ",";\n box-shadow: ",";\n\n ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: 2px;\n\n padding: ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n\n background: ",";\n box-shadow: ",";\n\n ",";\n"])),u.spacings.sm,u.colors.gray050,u.shadows.right,l.scrollBar),t.FieldListItem=d.default.li(p||(p=r(["\n cursor: pointer;\n position: relative;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n\n width: 250px;\n padding: "," "," "," ",";\n\n border: 1px solid transparent;\n border-radius: ",";\n font-size: 13px;\n\n user-select: none;\n transition: all 0.2s ease-in-out;\n\n > span {\n flex: 1;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &.active {\n background: ",";\n color: ",";\n fill: currentColor;\n }\n\n &.errors {\n color: ",";\n fill: currentColor;\n\n ",";\n }\n"],["\n cursor: pointer;\n position: relative;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n\n width: 250px;\n padding: "," "," "," ",";\n\n border: 1px solid transparent;\n border-radius: ",";\n font-size: 13px;\n\n user-select: none;\n transition: all 0.2s ease-in-out;\n\n > span {\n flex: 1;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &.active {\n background: ",";\n color: ",";\n fill: currentColor;\n }\n\n &.errors {\n color: ",";\n fill: currentColor;\n\n ",";\n }\n"])),u.spacings.xs,u.spacings.xs,u.spacings.xs,u.spacings.md,u.borderRadius.lg,u.colors.gray200,u.colors.gray500,u.colors.white,u.colors.error,l.errorAlert),t.Icon=d.default.div(m||(m=r(["\n font-size: 10px;\n\n &,\n svg {\n height: 20px;\n width: 20px;\n }\n"],["\n font-size: 10px;\n\n &,\n svg {\n height: 20px;\n width: 20px;\n }\n"]))),t.DeleteButton=d.default.button(v||(v=r(["\n position: absolute;\n top: 0;\n right: 0;\n"],["\n position: absolute;\n top: 0;\n right: 0;\n"])))},1969:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0,y=(0,h.useFormBlockAnimations)(b);return t.fields.length?l.default.createElement(g.FormBlockWrapper,{className:(0,f.default)(b&&"open")},l.default.createElement(g.FormTitle,{onClick:function(){return a(!r)}},t.name,l.default.createElement(g.ExpandedState,null,l.default.createElement(m.default,null))),l.default.createElement(g.FieldListContainer,{style:y},l.default.createElement(p.List,null,t.fields.map((function(e){var t=i(e.typeClass);return t&&(null==t?void 0:t.visible)?l.default.createElement(v.FieldItem,{key:e.id,field:e}):null}))))):null}},77424:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormFieldsWrapper=void 0;var o,i=n(82919),l=a(n(10530));t.FormFieldsWrapper=l.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),i.spacings.sm)},2958:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormsFields=void 0;var a=r(n(14041)),o=n(68479),i=n(61460),l=n(9982),u=n(9958),d=r(n(40921)),c=n(88756),s=n(16165),f=n(34589),p=n(77424);t.FormsFields=function(){var e=(0,o.useSelector)(l.formSelectors.current).uid,t=(0,s.useSelectSearchedForms)(),n=(0,u.useFetchForms)({select:t}),r=n.data,m=n.isFetching,v=n.isError,h=n.error;if(!r&&m)return null;if(v)return a.default.createElement(i.ErrorBlock,null,h.message);if(!r||!r.length)return null;var g=r.filter((function(t){return t.uid!==e})),b=g.some((function(e){return e.fields.length>0}));return g.length&&b?a.default.createElement(p.FormFieldsWrapper,null,a.default.createElement(c.GroupTitle,null,(0,d.default)("Fields from other Forms")),g.map((function(e){return a.default.createElement(f.FormBlock,{key:e.uid,form:e})}))):null}},74404:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useFieldSearch=void 0;var r=n(14041),a=n(68479),o=n(81908),i=n(60175);t.useFieldSearch=function(){var e=(0,a.useDispatch)(),t=(0,r.useState)(""),n=t[0],l=t[1],u=(0,i.useDebounce)(n,1e3);return(0,r.useEffect)((function(){e(o.searchActions.update({type:o.Search.Fields,query:u}))}),[u]),[n,l]}},31885:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderSearch=void 0;var a=r(n(14041)),o=r(n(40921)),i=n(14825),l=r(n(829));t.LoaderSearch=function(){return a.default.createElement(i.Wrapper,null,a.default.createElement(i.SearchBlock,null,a.default.createElement(i.SearchIcon,null,a.default.createElement(l.default,null)),a.default.createElement(i.SearchBar,{disabled:!0,className:"fullwidth text",placeholder:(0,o.default)("Search")})))}},14825:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SearchIcon=t.IconStyle=t.SearchBar=t.SearchBlock=t.Wrapper=void 0;var l=n(82919),u=i(n(10530));t.Wrapper=u.default.div(d||(d=r(["\n position: relative;\n z-index: 1;\n\n margin-bottom: ",";\n"],["\n position: relative;\n z-index: 1;\n\n margin-bottom: ",";\n"])),l.spacings.lg),t.SearchBlock=u.default.div(c||(c=r(["\n display: flex;\n"],["\n display: flex;\n"]))),t.SearchBar=u.default.input(s||(s=r(["\n padding: 6px 38px 6px 30px !important;\n\n border-radius: 5px;\n\n &::placeholder {\n font-style: italic;\n color: ",";\n }\n"],["\n padding: 6px 38px 6px 30px !important;\n\n border-radius: 5px;\n\n &::placeholder {\n font-style: italic;\n color: ",";\n }\n"])),l.colors.gray200);var d,c,s,f,p,m="14px";t.IconStyle=(0,u.css)(f||(f=r(["\n position: absolute;\n top: 1px;\n bottom: 1px;\n z-index: 2;\n\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n padding: 0 8px;\n\n box-sizing: border-box;\n user-select: none;\n\n > svg {\n width: ",";\n height: ",";\n }\n"],["\n position: absolute;\n top: 1px;\n bottom: 1px;\n z-index: 2;\n\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n padding: 0 8px;\n\n box-sizing: border-box;\n user-select: none;\n\n > svg {\n width: ",";\n height: ",";\n }\n"])),m,m),t.SearchIcon=u.default.div(p||(p=r(["\n left: 1px;\n\n ","\n\n color: ",";\n"],["\n left: 1px;\n\n ","\n\n color: ",";\n"])),t.IconStyle,l.colors.gray400)},6988:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Search=void 0;var a=r(n(14041)),o=r(n(40921)),i=n(74404),l=n(14825),u=r(n(829));t.Search=function(){var e=(0,i.useFieldSearch)(),t=e[0],n=e[1];return a.default.createElement(l.Wrapper,null,a.default.createElement(l.SearchBlock,null,a.default.createElement(l.SearchIcon,null,a.default.createElement(u.default,null)),a.default.createElement(l.SearchBar,{type:"text",placeholder:(0,o.default)("Search"),className:"fullwidth text",value:t,onChange:function(e){n(e.target.value)}})))}},96890:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderFormLayout=void 0;var a=r(n(14041)),o=n(28499),i=n(73103);t.LoaderFormLayout=function(){return a.default.createElement(a.default.Fragment,null,a.default.createElement(i.LoaderFieldList,null),a.default.createElement(o.LoaderFieldLayout,null))}},98599:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Grid=void 0;var o,i=a(n(10530));t.Grid=i.default.div(o||(o=r(["\n position: relative;\n display: flex;\n gap: 0;\n\n height: 100%;\n overflow: hidden;\n\n background: #fff;\n"],["\n position: relative;\n display: flex;\n gap: 0;\n\n height: 100%;\n overflow: hidden;\n\n background: #fff;\n"])))},54569:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutEditor=void 0;var a=r(n(14041)),o=n(38955),i=n(78573),l=n(91100),u=r(n(40921)),d=n(74594),c=n(93406),s=n(346),f=n(49110),p=n(98599);t.LayoutEditor=function(){var e=(0,o.useResolvedPath)("");return a.default.createElement(f.DragContextProvider,null,a.default.createElement(i.Breadcrumb,{id:"layout",label:(0,u.default)("Layout"),url:e.pathname}),a.default.createElement(p.Grid,null,a.default.createElement(l.Sidebar,{$noPadding:!0},a.default.createElement(s.PropertyEditor,null),a.default.createElement(c.FieldList,null)),a.default.createElement(d.FieldLayout,null)))}},45983:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteButton=void 0;var l=o(n(14041)),u=n(37043),d=n(67902),c=n(2468),s=n(91992),f=i(n(91797)),p=i(n(23370)),m=i(n(35665)),v=n(43421),h=n(23689),g=n(31075);t.FavoriteButton=function(e){var t=e.field,n=(0,s.useFieldType)(null==t?void 0:t.typeClass),r=(0,h.useFavoritesMutation)(),a=(0,l.useState)(!1),o=a[0],i=a[1],b=(0,l.useState)(!1),y=b[0],_=b[1];(0,l.useEffect)((function(){i(!1),_(!1),r.reset()}),[null==t?void 0:t.uid]);var x=(0,u.useSpring)({to:{opacity:o?1:0,scale:o?1:1.1,rotate:o?0:-10},config:{tension:700}}),w=(0,u.useSpring)({to:{scale:y?1.2:1},config:{tension:600,mass:3}}),E=(0,c.useClickOutside)({callback:function(){i(!1),_(!1)},isEnabled:o});return(0,d.useEscapeStack)((function(){i(!1),_(!1)}),o),(null==t?void 0:t.uid)?l.default.createElement(g.FavoriteButtonWrapper,{className:(0,f.default)(o&&"active"),ref:E},l.default.createElement(g.Button,{style:w,onClick:function(){return i(!o)},onMouseOver:function(){return _(!0)},onMouseOut:function(){return _(!1)}},r.isSuccess&&l.default.createElement(p.default,null),!r.isSuccess&&l.default.createElement(m.default,null)),l.default.createElement(g.PopUpWrapper,{style:x},l.default.createElement(g.IconBox,null),l.default.createElement(g.InfoBlock,null,l.default.createElement(v.FavoriteForm,{field:t,type:n,mutation:r})))):null}},38251:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonContainer=t.FavoriteFormWrapper=void 0;var o,i,l=n(82919),u=a(n(10530));t.FavoriteFormWrapper=u.default.div(o||(o=r(["\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n gap: ",";\n"])),l.spacings.lg),t.ButtonContainer=u.default.div(i||(i=r(["\n display: flex;\n justify-content: center;\n"],["\n display: flex;\n justify-content: center;\n"])))},43421:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteForm=void 0;var l=o(n(14041)),u=n(35048),d=n(62153),c=i(n(65603)),s=n(83750),f=n(80296),p=i(n(91797)),m=i(n(40921)),v=n(38251);t.FavoriteForm=function(e){var t,n,r=e.field,a=e.type,o=e.mutation,i=(0,l.useState)(""),h=i[0],g=i[1];return(0,l.useEffect)((function(){g(r.properties.label||(null==a?void 0:a.name)),o.reset()}),[r.uid]),l.default.createElement(v.FavoriteFormWrapper,null,l.default.createElement(d.ControlWrapper,null,l.default.createElement(c.default,{property:{label:(0,m.default)("Create a favorite"),handle:null===(t=r.properties)||void 0===t?void 0:t.handle,flags:[],placeholder:null===(n=r.properties)||void 0===n?void 0:n.label,type:f.PropertyType.String},value:h,updateValue:function(e){return g(e)}})),l.default.createElement(v.ButtonContainer,null,l.default.createElement("button",{onClick:function(){o.mutate({label:h,field:r,type:a})},disabled:o.isLoading,className:(0,p.default)("btn fullwidth",!o.isSuccess&&"submit",o.isLoading&&"disabled")},l.default.createElement(s.LoadingText,{spinner:!0,loading:o.isLoading,loadingText:"Saving..."},(0,m.default)(o.isSuccess?"Saved!":"Favorite")))),o.isError&&l.default.createElement(u.ApiErrorsBlock,{category:"favorites",handle:"name",error:o.error}))}},23689:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFavoritesDeleteMutation=t.useFavoritesUpdateMutation=t.useFavoritesMutation=void 0;var a=n(20708),o=n(7245),i=n(7245),l=r(n(47764)),u=function(e){var t=e.label,n=e.field,r=e.type,a={label:t,properties:n.properties,typeClass:r.typeClass};return l.default.post("/api/fields/favorites",a)};t.useFavoritesMutation=function(){var e=(0,o.useQueryClient)();return(0,i.useMutation)(u,{onSuccess:function(){e.invalidateQueries({queryKey:a.QKFavorites.all})}})};t.useFavoritesUpdateMutation=function(e){void 0===e&&(e={});var t=(0,o.useQueryClient)(),n=null==e?void 0:e.onSuccess;return e.onSuccess=function(e,r,o){n&&n(e,r,o),t.invalidateQueries(a.QKFavorites.all)},(0,i.useMutation)((function(e){return l.default.post("/api/fields/favorites/update",e)}),e)};t.useFavoritesDeleteMutation=function(e){void 0===e&&(e={});var t=(0,o.useQueryClient)(),n=null==e?void 0:e.onSuccess;return e.onSuccess=function(e,r,o){n&&n(e,r,o);var i=r;t.setQueryData(a.QKFavorites.all,(function(e){return e.filter((function(e){return e.id!==i}))}))},(0,i.useMutation)((function(e){return l.default.delete("/api/fields/favorites/".concat(e))}),e)}},31075:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteButtonWrapper=t.Button=t.InfoBlock=t.IconBox=t.PopUpWrapper=void 0;var o,i,l,u,d,c=n(37043),s=n(82919),f=a(n(10530));t.PopUpWrapper=(0,f.default)(c.animated.div)(o||(o=r(["\n position: absolute;\n top: 24px;\n right: -16px;\n\n transform-origin: 90% -20%;\n"],["\n position: absolute;\n top: 24px;\n right: -16px;\n\n transform-origin: 90% -20%;\n"]))),t.IconBox=f.default.div(i||(i=r(["\n position: absolute;\n top: -30px;\n right: 10px;\n z-index: 2;\n\n display: flex;\n justify-content: center;\n align-content: center;\n\n width: 32px;\n height: 32px;\n\n padding: 5px;\n\n background: ",";\n\n border-style: solid;\n border-width: 1px;\n border-color: ",";\n border-bottom-color: transparent;\n border-radius: "," "," 0 0;\n\n transform-origin: center bottom;\n"],["\n position: absolute;\n top: -30px;\n right: 10px;\n z-index: 2;\n\n display: flex;\n justify-content: center;\n align-content: center;\n\n width: 32px;\n height: 32px;\n\n padding: 5px;\n\n background: ",";\n\n border-style: solid;\n border-width: 1px;\n border-color: ",";\n border-bottom-color: transparent;\n border-radius: "," "," 0 0;\n\n transform-origin: center bottom;\n"])),s.colors.gray050,s.colors.barelyVisible,s.borderRadius.md,s.borderRadius.md),t.InfoBlock=f.default.div(l||(l=r(["\n position: relative;\n z-index: 1;\n\n width: 240px;\n padding: ",";\n\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n box-shadow: 4px 12px 8px rgb(205 216 228 / 80%);\n"],["\n position: relative;\n z-index: 1;\n\n width: 240px;\n padding: ",";\n\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n box-shadow: 4px 12px 8px rgb(205 216 228 / 80%);\n"])),s.spacings.lg,s.colors.gray050,s.colors.barelyVisible,s.borderRadius.md),t.Button=(0,f.default)(c.animated.button)(u||(u=r(["\n position: relative;\n z-index: 5;\n\n width: 20px;\n height: 20px;\n\n svg {\n fill: ",";\n }\n"],["\n position: relative;\n z-index: 5;\n\n width: 20px;\n height: 20px;\n\n svg {\n fill: ",";\n }\n"])),s.colors.barelyVisible),t.FavoriteButtonWrapper=f.default.div(d||(d=r(["\n position: absolute;\n top: 17px;\n right: 40px;\n z-index: 3;\n\n background: none;\n border: none;\n\n display: flex;\n justify-content: center;\n align-content: center;\n\n &:not(.active) {\n "," {\n pointer-events: none;\n }\n }\n"],["\n position: absolute;\n top: 17px;\n right: 40px;\n z-index: 3;\n\n background: none;\n border: none;\n\n display: flex;\n justify-content: center;\n align-content: center;\n\n &:not(.active) {\n "," {\n pointer-events: none;\n }\n }\n"])),t.PopUpWrapper)},6832:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n span {\n display: block;\n }\n"],["\n position: relative;\n\n display: flex;\n justify-content: flex-start;\n align-items: end;\n gap: ",";\n\n margin: 0;\n padding: ",";\n\n font-size: 16px;\n box-shadow: ",";\n\n > span {\n display: block;\n }\n"])),s.spacings.sm,s.spacings.lg,s.shadows.bottom),t.Icon=f.default.div(d||(d=r(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 20px;\n height: 20px;\n\n svg {\n max-width: 20px;\n max-height: 20px;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 20px;\n height: 20px;\n\n svg {\n max-width: 20px;\n max-height: 20px;\n }\n"])))},346:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyEditor=void 0;var a=r(n(14041)),o=n(68479),i=n(37043),l=n(77913),u=n(4645),d=n(29039),c=n(16779),s=n(1924),f=n(67902),p=n(2468),m=n(63882),v=n(76690),h=n(50380);t.PropertyEditor=function(){var e=(0,d.useAppDispatch)(),t=(0,o.useSelector)(s.contextSelectors.focus),n=t.active,r=t.type;(0,f.useEscapeStack)((function(){return e(c.contextActions.unfocus())}),n);var g=(0,p.useClickOutside)({callback:function(){e(c.contextActions.unfocus())},isEnabled:n,excludeClassNames:["field-layout","page-buttons","page-tab","save-button","main-tabs","editable-content","dropdown-rollout","breadcrumbs","tagify__dropdown"]}),b=(0,i.useTransition)(n?[t]:null,{from:{transform:"translate3d(100%, 0, 0)",opacity:1},enter:{transform:"translate3d(0%, 0, 0)",opacity:1,zIndex:2},leave:{transform:"translate3d(-100%, 0, 0)"},config:{tension:500,friction:50}});return a.default.createElement(u.RenderContextProvider,{size:"small"},a.default.createElement(h.PropertyEditorWrapper,{$active:n,ref:g},a.default.createElement(l.ErrorBoundary,{message:'Could not load property editor for "'.concat(r,'" type')},b((function(e,t){return a.default.createElement(h.AnimatedBlock,{style:e},!!t&&"field"===t.type&&a.default.createElement(m.FieldProperties,{uid:t.uid}),!!t&&"page"===t.type&&a.default.createElement(v.PageProperties,{uid:t.uid}))})))))}},83534:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SectionBlockWrapper=t.SectionBlockContainer=t.SectionBlockIcon=t.SectionWrapper=void 0;var o,i,l,u,d=n(49974),c=n(82919),s=a(n(10530)),f=n(50380);t.SectionWrapper=s.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n\n padding: 0 "," ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n ",";\n"],["\n display: flex;\n flex-direction: column;\n\n padding: 0 "," ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n ",";\n"])),c.spacings.lg,c.spacings.lg,d.scrollBar),t.SectionBlockIcon=(0,s.default)(f.Icon)(i||(i=r(["\n position: absolute;\n left: 2px;\n top: 12px;\n z-index: 1;\n\n width: 14px;\n height: 14px;\n\n fill: rgb(154 165 177 / 75%);\n"],["\n position: absolute;\n left: 2px;\n top: 12px;\n z-index: 1;\n\n width: 14px;\n height: 14px;\n\n fill: rgb(154 165 177 / 75%);\n"]))),t.SectionBlockContainer=s.default.section(l||(l=r(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n margin-top: ",";\n padding-top: ",";\n padding-bottom: ",";\n\n &:empty {\n display: none;\n\n & + "," {\n display: none;\n }\n }\n\n &:before {\n content: '';\n\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n\n display: block;\n height: 1px;\n\n margin: 0 -18px;\n\n box-shadow: ",";\n }\n\n &:after {\n content: attr(data-label);\n\n position: absolute;\n left: -5px;\n top: -7px;\n\n display: block;\n padding: 0 5px 0 26px;\n\n background-color: ",";\n\n ",";\n font-size: 11px;\n }\n"],["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n margin-top: ",";\n padding-top: ",";\n padding-bottom: ",";\n\n &:empty {\n display: none;\n\n & + "," {\n display: none;\n }\n }\n\n &:before {\n content: '';\n\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n\n display: block;\n height: 1px;\n\n margin: 0 -18px;\n\n box-shadow: ",";\n }\n\n &:after {\n content: attr(data-label);\n\n position: absolute;\n left: -5px;\n top: -7px;\n\n display: block;\n padding: 0 5px 0 26px;\n\n background-color: ",";\n\n ",";\n font-size: 11px;\n }\n"])),c.spacings.md,c.spacings.lg,c.spacings.lg,c.spacings.lg,t.SectionBlockIcon,c.shadows.bottom,c.colors.gray050,d.labelText),t.SectionBlockWrapper=s.default.div(u||(u=r(["\n position: relative;\n\n &:first-child {\n "," {\n margin-top: 0;\n\n &:before,\n &:after {\n display: none;\n }\n }\n\n "," {\n display: none;\n }\n }\n"],["\n position: relative;\n\n &:first-child {\n "," {\n margin-top: 0;\n\n &:before,\n &:after {\n display: none;\n }\n }\n\n "," {\n display: none;\n }\n }\n"])),t.SectionBlockContainer,t.SectionBlockIcon)},97216:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SectionBlock=void 0;var a=r(n(14041)),o=n(83534);t.SectionBlock=function(e){var t=e.label,n=e.icon,r=e.children;return a.default.createElement(o.SectionBlockWrapper,null,a.default.createElement(o.SectionBlockContainer,{"data-label":t},r),function(e){return e?"string"==typeof e?a.default.createElement(o.SectionBlockIcon,{dangerouslySetInnerHTML:{__html:e}}):a.default.createElement(o.SectionBlockIcon,null,e):null}(n))}},38069:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationsWrapper=void 0;var o,i=a(n(10530));t.NotificationsWrapper=i.default.div(o||(o=r(["\n display: flex;\n height: 100%;\n"],["\n display: flex;\n height: 100%;\n"])))},20075:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Notifications=void 0;var a=r(n(14041)),o=n(38955),i=n(78573),l=r(n(40921)),u=n(89664),d=n(38069);t.Notifications=function(){var e=(0,o.useResolvedPath)("");return a.default.createElement(d.NotificationsWrapper,null,a.default.createElement(i.Breadcrumb,{id:"notifications",label:(0,l.default)("Notifications"),url:e.pathname}),a.default.createElement(u.List,null),a.default.createElement(o.Outlet,null))}},27407:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldComponent=void 0;var a=r(n(14041)),o=n(9408),i=n(29039),l=n(43200);t.FieldComponent=function(e){var t,n=e.notification,r=e.property,u=(0,i.useAppDispatch)(),d=n.uid,c=r.handle,s=null==n?void 0:n[r.handle];return a.default.createElement(o.FormComponent,{value:s,property:r,updateValue:function(e){u(l.notificationActions.modify({uid:d,key:c,value:e}))},errors:null===(t=n.errors)||void 0===t?void 0:t[r.handle],context:n})}},24859:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyEditor=t.Inline=void 0;var o=a(n(14041)),i=n(29557),l=n(82919),u=a(n(40921)),d=a(n(10530)),c=a(n(82576)),s=n(49708);t.Inline=d.default.div(f||(f=r(["\n display: flex;\n gap: ",";\n"],["\n display: flex;\n gap: ",";\n"])),l.spacings.md);var f;t.EmptyEditor=function(){return o.default.createElement(s.PropertyEditorWrapper,null,o.default.createElement(i.EmptyBlock,{title:(0,u.default)("No notifications found"),subtitle:(0,u.default)("To add a notification, use the sidebar on the left"),icon:o.default.createElement(c.default,null)}))}},40076:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadingEditor=t.Inline=void 0;var o=a(n(14041)),i=a(n(47165)),l=n(71395),u=n(82919),d=a(n(10530)),c=n(49708);t.Inline=d.default.div(s||(s=r(["\n display: flex;\n gap: ",";\n"],["\n display: flex;\n gap: ",";\n"])),u.spacings.md);var s;t.LoadingEditor=function(){return o.default.createElement(c.PropertyEditorWrapper,null,o.default.createElement(l.ThemedSkeleton,null,o.default.createElement(i.default,{width:120,height:20}),o.default.createElement("br",null),o.default.createElement(i.default,{width:100,height:10}),o.default.createElement(i.default,{width:50,height:20}),o.default.createElement("br",null),o.default.createElement(i.default,{width:200,height:10}),o.default.createElement(i.default,{width:500,height:10}),o.default.createElement(i.default,{height:30}),o.default.createElement("br",null),o.default.createElement(i.default,{width:150,height:10}),o.default.createElement(i.default,{width:300,height:10}),o.default.createElement(i.default,{height:30})))}},49708:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsWrapper=t.PropertyEditorWrapper=void 0;var o,i,l=n(49974),u=n(82919),d=a(n(10530));t.PropertyEditorWrapper=d.default.div(o||(o=r(["\n position: relative;\n flex: 1;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n background: ",";\n padding: ",";\n\n overflow-y: auto;\n\n ",";\n"],["\n position: relative;\n flex: 1;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n background: ",";\n padding: ",";\n\n overflow-y: auto;\n\n ",";\n"])),u.spacings.xl,u.colors.white,u.spacings.xl,l.scrollBar),t.SettingsWrapper=d.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),u.spacings.md)},86778:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyEditor=void 0;var a=r(n(14041)),o=n(68479),i=n(38955),l=n(78573),u=n(42536),d=n(48452),c=n(31489),s=n(27407),f=n(24859),p=n(40076),m=n(49708);t.PropertyEditor=function(){var e,t=(0,i.useParams)(),n=t.formId,r=t.uid,v=(0,i.useResolvedPath)(""),h=(0,d.useQueryNotificationTypes)().data,g=(0,d.useQueryFormNotifications)(n?Number(n):void 0),b=g.data,y=g.isFetching,_=(0,o.useSelector)(u.notificationSelectors.one(r));if(!b&&y)return a.default.createElement(p.LoadingEditor,null);if(!_)return a.default.createElement(f.EmptyEditor,null);var x=(null===(e=null==h?void 0:h.find((function(e){return e.className===_.className})))||void 0===e?void 0:e.properties)||[];return a.default.createElement(m.PropertyEditorWrapper,null,a.default.createElement(l.Breadcrumb,{id:"notification",label:_.name,url:v.pathname}),a.default.createElement(c.Remove,{notification:_}),a.default.createElement(m.SettingsWrapper,null,x.map((function(e){return a.default.createElement(s.FieldComponent,{key:e.handle,notification:_,property:e})}))))}},43778:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useRemoveAnimation=void 0;var r=n(37043),a=n(82919);t.useRemoveAnimation=function(e){var t=e.hovering;return(0,r.useSpring)({opacity:1,background:t?a.colors.error:"transparent",color:t?"#fff":a.colors.gray300,scale:t?1.2:1,config:function(e){switch(e){case"background":case"color":return{tension:330,friction:20};default:return{tension:330,friction:15}}}})}},94143:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveButtonWrapper=void 0;var o,i=n(37043),l=a(n(10530));t.RemoveButtonWrapper=(0,l.default)(i.animated.button)(o||(o=r(["\n position: absolute;\n top: 15px;\n right: 20px;\n z-index: 2;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n border-radius: 50%;\n padding: 3px;\n\n svg {\n width: 20px;\n height: 20px;\n\n color: currentColor;\n }\n"],["\n position: absolute;\n top: 15px;\n right: 20px;\n z-index: 2;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n border-radius: 50%;\n padding: 3px;\n\n svg {\n width: 20px;\n height: 20px;\n\n color: currentColor;\n }\n"])))},31489:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Remove=void 0;var l=o(n(14041)),u=n(38955),d=n(29039),c=n(40057),s=i(n(83601)),f=n(43778),p=n(94143);t.Remove=function(e){var t=e.notification,n=(0,u.useNavigate)(),r=(0,d.useAppDispatch)(),a=(0,l.useState)(!1),o=a[0],i=a[1],m=(0,f.useRemoveAnimation)({hovering:o});return l.default.createElement(p.RemoveButtonWrapper,{style:m,onMouseEnter:function(){return i(!0)},onMouseLeave:function(){return i(!1)},onClick:function(e){e.stopPropagation(),r((0,c.removeNotification)(t)),n("..")}},l.default.createElement(s.default,null))}},18092:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Status=t.Name=t.Icon=t.Link=void 0;var o=n(38955),i=n(82919),l=a(n(10530));t.Link=(0,l.default)(o.NavLink)(u||(u=r(["\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border-radius: ",";\n\n color: ",";\n font-size: 12px;\n line-height: 12px;\n\n transition: background-color 0.2s ease-out;\n text-decoration: none;\n\n &.active {\n color: ",";\n background-color: ",";\n }\n\n &.active.inactive {\n .status-dot {\n border-color: ",";\n }\n }\n\n &:hover {\n text-decoration: none;\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n\n &.errors {\n color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border-radius: ",";\n\n color: ",";\n font-size: 12px;\n line-height: 12px;\n\n transition: background-color 0.2s ease-out;\n text-decoration: none;\n\n &.active {\n color: ",";\n background-color: ",";\n }\n\n &.active.inactive {\n .status-dot {\n border-color: ",";\n }\n }\n\n &:hover {\n text-decoration: none;\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n\n &.errors {\n color: ",";\n }\n"])),i.spacings.sm,i.spacings.sm,i.spacings.md,i.borderRadius.lg,i.colors.gray700,i.colors.white,i.colors.gray500,i.colors.white,i.colors.gray200,i.colors.error);var u,d,c,s;t.Icon=l.default.div(d||(d=r(["\n display: block;\n width: ","px;\n height: ","px;\n fill: ",";\n"],["\n display: block;\n width: ","px;\n height: ","px;\n fill: ",";\n"])),20,20,i.colors.gray550),t.Name=l.default.div(c||(c=r(["\n flex-grow: 1;\n max-width: 90%;\n overflow: hidden;\n\n &:empty:after {\n content: 'No Title';\n color: ",";\n font-style: italic;\n }\n"],["\n flex-grow: 1;\n max-width: 90%;\n overflow: hidden;\n\n &:empty:after {\n content: 'No Title';\n color: ",";\n font-style: italic;\n }\n"])),i.colors.gray400),t.Status=l.default.div(s||(s=r(["\n content: '';\n\n flex-shrink: 0;\n justify-self: flex-end;\n\n width: 10px;\n height: 10px;\n\n border: 1px solid\n ",";\n border-radius: 100%;\n\n background-color: ",";\n\n transition: all 0.3s ease-out;\n"],["\n content: '';\n\n flex-shrink: 0;\n justify-self: flex-end;\n\n width: 10px;\n height: 10px;\n\n border: 1px solid\n ",";\n border-radius: 100%;\n\n background-color: ",";\n\n transition: all 0.3s ease-out;\n"])),(function(e){return e.$enabled?"transparent":i.colors.gray550}),(function(e){return e.$enabled?i.colors.teal550:"transparent"}))},71578:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationItem=void 0;var a=r(n(14041)),o=n(68479),i=n(62362),l=n(42536),u=r(n(91797)),d=n(32750),c=n(18092);t.NotificationItem=function(e){var t=e.icon,n=e.notification.uid,r=(0,i.useLastTab)("notifications").setLastTab,s=(0,o.useSelector)(l.notificationSelectors.one(n)),f=s.name,p=s.enabled,m=s.errors;return a.default.createElement(c.Link,{onClick:function(){return r(n)},to:"".concat(n),className:(0,u.default)((0,d.hasErrors)(m)&&"errors",!p&&"inactive")},t&&a.default.createElement(c.Icon,{dangerouslySetInnerHTML:{__html:t}}),a.default.createElement(c.Name,null,f),a.default.createElement(c.Status,{$enabled:p,className:(0,u.default)("status-dot")}))}},69808:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CategorySkeleton=void 0;var a=r(n(14041)),o=r(n(47165)),i=n(71395),l=n(96733);t.CategorySkeleton=function(){return a.default.createElement(i.ThemedSkeleton,null,a.default.createElement(l.Wrapper,null,a.default.createElement(l.LabelWrapper,null,a.default.createElement(o.default,{width:50})),a.default.createElement(l.NotificationItemWrapper,{style:{padding:14}},[0,1,2].map((function(e){return a.default.createElement("div",{key:e,style:{display:"flex",gap:10,alignItems:"center"}},a.default.createElement(o.default,{width:20,height:20,circle:!0}),a.default.createElement("div",{style:{flexGrow:2}},a.default.createElement(o.default,{width:100,style:{top:2}})),a.default.createElement(o.default,{width:10,height:10,circle:!0,style:{top:6}}))})))))}},96733:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationItemWrapper=t.Button=t.Label=t.LabelWrapper=t.Wrapper=void 0;var o,i,l,u,d,c=n(82919),s=a(n(10530));t.Wrapper=s.default.div(o||(o=r([""],[""]))),t.LabelWrapper=s.default.div(i||(i=r(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 5px;\n line-height: 22px;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 5px;\n line-height: 22px;\n"]))),t.Label=s.default.span(l||(l=r(["\n padding-left: ",";\n font-weight: 700;\n font-size: 11px;\n color: ",";\n text-transform: uppercase;\n"],["\n padding-left: ",";\n font-weight: 700;\n font-size: 11px;\n color: ",";\n text-transform: uppercase;\n"])),c.spacings.md,c.colors.gray550),t.Button=s.default.button(u||(u=r(["\n align-self: end;\n\n &:hover {\n background-color: ",";\n }\n"],["\n align-self: end;\n\n &:hover {\n background-color: ",";\n }\n"])),c.colors.gray200),t.NotificationItemWrapper=s.default.div(d||(d=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," 0;\n\n &:empty {\n &:after {\n content: 'None configured';\n\n padding: 2px};\n margin-left: 12px;\n\n font-style: italic;\n font-size: 12px;\n\n color: ",";\n }\n }\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," 0;\n\n &:empty {\n &:after {\n content: 'None configured';\n\n padding: 2px};\n margin-left: 12px;\n\n font-style: italic;\n font-size: 12px;\n\n color: ",";\n }\n }\n"])),c.spacings.xs,c.spacings.xs,c.colors.gray300)},25779:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationTypeItem=void 0;var a=r(n(14041)),o=n(38955),i=n(29039),l=n(40057),u=r(n(91797)),d=r(n(40921)),c=n(84596),s=n(96733);t.NotificationTypeItem=function(e){var t=e.type,n=e.children,r=(0,o.useNavigate)(),f=(0,i.useAppDispatch)(),p=t.name;return a.default.createElement(s.Wrapper,null,a.default.createElement(s.LabelWrapper,null,a.default.createElement(s.Label,null,(0,d.default)(p)),a.default.createElement(s.Button,{className:(0,u.default)("btn","add","icon","small","dashed"),onClick:function(){var e=(0,c.v4)();f((0,l.addNewNotification)(t,e)),r(e)}},(0,d.default)("New"))),a.default.createElement(s.NotificationItemWrapper,null,n))}},66734:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollableList=void 0;var o,i=n(49974),l=n(82919),u=a(n(10530));t.ScrollableList=u.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n height: 100%;\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n height: 100%;\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n"])),l.spacings.sm,i.scrollBar)},89664:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.List=void 0;var l=o(n(14041)),u=n(68479),d=n(38955),c=n(91100),s=i(n(84350)),f=n(25779),p=n(69808),m=n(42536),v=n(48452),h=n(62362),g=n(71578),b=n(66734);t.List=function(){var e=s.default.limitations,t=(0,d.useParams)(),n=t.formId,r=t.uid,a=(0,d.useNavigate)(),o=(0,h.useLastTab)("notifications"),i=o.lastTab,y=o.setLastTab,_=(0,v.useQueryNotificationTypes)(),x=_.data,w=_.isFetching;(0,v.useQueryFormNotifications)(n?Number(n):void 0);var E=(0,u.useSelector)(m.notificationSelectors.all);return(0,l.useEffect)((function(){i&&a(i)}),[]),(0,l.useEffect)((function(){if(!r&&!i&&x&&E){var e=E.find(Boolean);e&&(y(e.uid),a(e.uid))}}),[r,x,E,i]),!x&&w?l.default.createElement(c.Sidebar,null,l.default.createElement(p.CategorySkeleton,null)):x||w?l.default.createElement(c.Sidebar,{$lean:!0},l.default.createElement(b.ScrollableList,null,x.filter((function(t){return e.can("notifications.tab.".concat(t.className))})).map((function(e){return l.default.createElement(f.NotificationTypeItem,{key:e.className,type:e},E&&(null==E?void 0:E.filter((function(t){return t.className===e.className})).map((function(t){return l.default.createElement(g.NotificationItem,{key:t.uid,icon:e.icon,notification:t})}))))})))):l.default.createElement(l.default.Fragment,null,"Empty")}},85360:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CombinatorSelect=void 0;var a=r(n(14041)),o=n(58634),i=r(n(40921));t.CombinatorSelect=function(e){var t=e.value,n=e.onChange;return a.default.createElement("div",{className:"select"},a.default.createElement("select",{value:t,onChange:function(e){return n&&n(e.target.value)}},a.default.createElement("option",{value:o.Combinator.Or},(0,i.default)("any")),a.default.createElement("option",{value:o.Combinator.And},(0,i.default)("all"))))}},27706:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DisplaySelect=void 0;var a=r(n(14041)),o=n(58634),i=r(n(40921));t.DisplaySelect=function(e){var t=e.value,n=e.onChange;return a.default.createElement("div",{className:"select"},a.default.createElement("select",{value:t,onChange:function(e){return n&&n(e.target.value)}},a.default.createElement("option",{value:o.Display.Show},(0,i.default)("show")),a.default.createElement("option",{value:o.Display.Hide},(0,i.default)("hide"))))}},11472:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DisplaySend=void 0;var a,o=r(n(14041)),i=r(n(40921));!function(e){e.Send="send",e.NotSend="not-send"}(a||(a={}));t.DisplaySend=function(e){var t=e.value,n=e.onChange;return o.default.createElement("div",{className:"select"},o.default.createElement("select",{value:t?a.Send:a.NotSend,onChange:function(e){return n&&n(e.target.value===a.Send)}},o.default.createElement("option",{value:a.Send},(0,i.default)("Send")),o.default.createElement("option",{value:a.NotSend},(0,i.default)("Don't send"))))}},84256:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Action=t.Table=void 0;var o,i,l=n(82919),u=a(n(10530));t.Table=u.default.table(o||(o=r(["\n width: 100%;\n\n margin: 0;\n border-spacing: 0;\n border-collapse: separate;\n\n td {\n &:nth-child(1) {\n width: 25%;\n }\n\n &:nth-child(2) {\n width: 20%;\n }\n\n &:last-child {\n width: 20px;\n }\n }\n\n tbody {\n tr {\n td {\n padding: 0 !important;\n padding-top: 7px !important;\n padding-right: 7px !important;\n padding-bottom: 7px !important;\n border-bottom: 1px solid ",";\n background-color: ",";\n }\n\n td:first-child {\n padding-left: 7px !important;\n border-left: 1px solid ",";\n }\n\n td:last-child {\n border-right: 1px solid ",";\n }\n }\n\n tr:first-child {\n td {\n border-top: 1px solid ",";\n }\n\n td:first-child {\n border-top-left-radius: ",";\n border-top: 1px solid ",";\n }\n\n td:last-child {\n border-top: 1px solid ",";\n border-top-right-radius: ",";\n }\n }\n\n tr:last-child {\n td {\n padding: 0 !important;\n background-color: ",";\n\n .btn {\n border: 0 !important;\n border-radius: 0 !important;\n background-color: transparent !important;\n }\n }\n\n td:last-child {\n border-left: 1px dashed ",";\n border-right: 1px dashed ",";\n border-bottom: 1px dashed ",";\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n }\n }\n\n tr:first-child:last-child {\n td {\n border-top: 1px dashed ",";\n }\n }\n }\n"],["\n width: 100%;\n\n margin: 0;\n border-spacing: 0;\n border-collapse: separate;\n\n td {\n &:nth-child(1) {\n width: 25%;\n }\n\n &:nth-child(2) {\n width: 20%;\n }\n\n &:last-child {\n width: 20px;\n }\n }\n\n tbody {\n tr {\n td {\n padding: 0 !important;\n padding-top: 7px !important;\n padding-right: 7px !important;\n padding-bottom: 7px !important;\n border-bottom: 1px solid ",";\n background-color: ",";\n }\n\n td:first-child {\n padding-left: 7px !important;\n border-left: 1px solid ",";\n }\n\n td:last-child {\n border-right: 1px solid ",";\n }\n }\n\n tr:first-child {\n td {\n border-top: 1px solid ",";\n }\n\n td:first-child {\n border-top-left-radius: ",";\n border-top: 1px solid ",";\n }\n\n td:last-child {\n border-top: 1px solid ",";\n border-top-right-radius: ",";\n }\n }\n\n tr:last-child {\n td {\n padding: 0 !important;\n background-color: ",";\n\n .btn {\n border: 0 !important;\n border-radius: 0 !important;\n background-color: transparent !important;\n }\n }\n\n td:last-child {\n border-left: 1px dashed ",";\n border-right: 1px dashed ",";\n border-bottom: 1px dashed ",";\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n }\n }\n\n tr:first-child:last-child {\n td {\n border-top: 1px dashed ",";\n }\n }\n }\n"])),l.colors.inputBorder,l.colors.gray050,l.colors.inputBorder,l.colors.inputBorder,l.colors.inputBorder,l.borderRadius.lg,l.colors.inputBorder,l.colors.inputBorder,l.borderRadius.lg,l.colors.white,l.colors.inputBorder,l.colors.inputBorder,l.colors.inputBorder,l.borderRadius.lg,l.borderRadius.lg,l.colors.inputBorder),t.Action=u.default.button(i||(i=r(["\n margin: 0;\n padding: 0;\n border: none;\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n width: 16px;\n height: 16px;\n stroke-width: 3px;\n fill: #e5e7eb;\n }\n"],["\n margin: 0;\n padding: 0;\n border: none;\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n width: 16px;\n height: 16px;\n stroke-width: 3px;\n fill: #e5e7eb;\n }\n"])))},15838:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n "," "," {\n display: none;\n }\n\n "," {\n color: ",";\n }\n }\n\n &:hover {\n background-color: ",";\n border-color: ",";\n }\n\n &.active {\n background-color: #5b6573;\n border-color: #5b6573;\n color: white;\n }\n\n &.is-in-condition {\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n z-index: 2;\n\n width: 0;\n border-left: 10px solid transparent;\n border-bottom: 10px solid transparent;\n border-left: 10px solid ",";\n }\n\n &-active:after {\n border-left-color: ",";\n }\n }\n\n &.read-only {\n &,\n * {\n cursor: default;\n }\n\n &:hover {\n background-color: ",";\n border-color: ",";\n }\n }\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: ",";\n\n flex: 1;\n\n overflow: hidden;\n padding: 5px 7px;\n\n width: 100%;\n height: 100%;\n\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n transition: all 0.2s ease-out;\n\n &,\n * {\n cursor: pointer;\n }\n\n &.has-rule:not(.active) {\n border-color: ",";\n background-color: ",";\n }\n\n &.group {\n background-color: ",";\n border-color: ",";\n\n > "," "," {\n display: none;\n }\n\n "," {\n color: ",";\n }\n }\n\n &:hover {\n background-color: ",";\n border-color: ",";\n }\n\n &.active {\n background-color: #5b6573;\n border-color: #5b6573;\n color: white;\n }\n\n &.is-in-condition {\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n z-index: 2;\n\n width: 0;\n border-left: 10px solid transparent;\n border-bottom: 10px solid transparent;\n border-left: 10px solid ",";\n }\n\n &-active:after {\n border-left-color: ",";\n }\n }\n\n &.read-only {\n &,\n * {\n cursor: default;\n }\n\n &:hover {\n background-color: ",";\n border-color: ",";\n }\n }\n"])),s.spacings.sm,s.colors.gray100,s.colors.gray100,s.borderRadius.md,s.colors.teal550,s.colors.teal050,s.colors.white,s.colors.gray100,t.FieldInfo,t.Icon,t.GroupWrapper,s.colors.gray800,s.colors.gray200,s.colors.gray200,s.colors.gray200,s.colors.teal550,s.colors.gray100,s.colors.gray100)},50482:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Field=void 0;var a=r(n(14041)),o=n(68479),i=n(38955),l=r(n(84350)),u=n(62362),d=n(22688),c=n(12147),s=n(30063),f=n(67180),p=n(91992),m=n(58634),v=r(n(91797)),h=n(29996),g=n(8388);t.Field=function(e){var t=e.field,n=l.default.limitations.can("rules.tab.fields"),r=(0,i.useParams)(),b=r.uid,y=r.button,_=(0,i.useNavigate)(),x=(0,i.useLocation)(),w=(0,u.useLastTab)("rules").setLastTab,E=(0,p.useFieldType)(null==t?void 0:t.typeClass),O=b===t.uid,P=(0,o.useSelector)(c.fieldRuleSelectors.one(b)),j=(0,o.useSelector)(s.pageRuleSelectors.one(b)),k=(0,o.useSelector)(f.submitFormRuleSelectors.one),M=(0,o.useSelector)(d.buttonRuleSelectors.one(b,y)),C=(0,o.useSelector)(c.fieldRuleSelectors.hasRule(t.uid)),S=x.pathname.endsWith("/rules/submit"),F=(0,o.useSelector)(c.fieldRuleSelectors.isInCondition(t.uid)),T=(null==P?void 0:P.conditions.find((function(e){return e.field===t.uid})))||(null==j?void 0:j.conditions.find((function(e){return e.field===t.uid})))||S&&(null==k?void 0:k.conditions.find((function(e){return e.field===t.uid})))||y&&(null==M?void 0:M.conditions.find((function(e){return e.field===t.uid})));return void 0===(null==t?void 0:t.properties)?null:a.default.createElement(g.FieldWrapper,{onClick:function(e){if(e.stopPropagation(),n){var r=b===t.uid?"":"field/".concat(t.uid);w(r),_(r)}},className:(0,v.default)("group"===(null==E?void 0:E.type)&&"group",O&&"active",C&&"has-rule",F&&"is-in-condition",T&&"is-in-condition-active",!n&&"read-only",m.operatorTypes.negative.includes(null==T?void 0:T.operator)&&"not-equals")},a.default.createElement(g.FieldInfo,null,a.default.createElement(g.Icon,{dangerouslySetInnerHTML:{__html:null==E?void 0:E.icon}}),a.default.createElement(g.Label,null,t.properties.label||(null==E?void 0:E.name))),"group"===(null==E?void 0:E.type)&&a.default.createElement(g.GroupWrapper,null,a.default.createElement(h.Layout,{layoutUid:t.properties.layout})))}},59802:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldLayoutWrapper=void 0;var o,i=n(82919),l=a(n(10530));t.FieldLayoutWrapper=l.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),i.spacings.xs)},29996:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Layout=void 0;var a=r(n(14041)),o=n(29039),i=n(20713),l=n(33481),u=n(90326),d=n(59802);t.Layout=function(e){var t=e.layoutUid,n=(0,o.useAppSelector)((function(e){return i.layoutSelectors.one(e,t)})),r=(0,o.useAppSelector)((function(e){return l.rowSelectors.inLayout(e,null==n?void 0:n.uid)}));return n&&r.length?a.default.createElement(d.FieldLayoutWrapper,null,r.map((function(e){return a.default.createElement(u.Row,{row:e,key:e.uid})}))):null}},99784:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderMiniMap=void 0;var a=r(n(14041)),o=r(n(47165)),i=n(68479),l=n(71395),u=n(20713),d=n(35729);t.LoaderMiniMap=function(){var e=(0,i.useSelector)(u.layoutSelectors.cartographed.fullLayoutList);return a.default.createElement(l.ThemedSkeleton,null,e.map((function(e,t){return a.default.createElement("div",{key:t},a.default.createElement("div",{style:{marginBottom:14}},a.default.createElement(o.default,{width:"100%",height:30})),e.map((function(e,t){return a.default.createElement(d.LoadingRow,{key:t,style:{display:"flex"}},e.map((function(e,t){return a.default.createElement(o.default,{key:t,width:"100%",height:28})})))})))})))}},35729:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadingRow=t.MiniMapWrapper=void 0;var o,i,l=n(82919),u=a(n(10530)),d=n(58648);t.MiniMapWrapper=u.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),l.spacings.xl),t.LoadingRow=(0,u.default)(d.RowWrapper)(i||(i=r(["\n > span {\n width: 100%;\n }\n"],["\n > span {\n width: 100%;\n }\n"])))},89863:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MiniMap=void 0;var i=o(n(14041)),l=n(68479),u=n(38955),d=n(91100),c=n(79833),s=n(323),f=n(62362),p=n(58350),m=n(56904),v=n(99784),h=n(35729);t.MiniMap=function(){var e=(0,u.useParams)().formId,t=(0,s.useQueryFormRules)(Number(e||0)).isFetching,n=(0,l.useSelector)(c.pageSelecors.all),r=(0,f.useLastTab)("rules").lastTab,a=(0,u.useNavigate)();return(0,i.useEffect)((function(){void 0!==r&&a(r)}),[]),i.default.createElement(d.Sidebar,null,i.default.createElement(h.MiniMapWrapper,null,t&&i.default.createElement(v.LoaderMiniMap,null),!t&&n.map((function(e){return i.default.createElement(p.Page,{key:e.uid,page:e})})),i.default.createElement(m.SubmitForm,null)))}},89108:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonGroup=t.ButtonsWrapper=void 0;var o,i,l,u=n(82919),d=a(n(10530));t.ButtonsWrapper=d.default.div(o||(o=r(["\n display: flex;\n justify-content: space-between;\n\n margin-top: ",";\n"],["\n display: flex;\n justify-content: space-between;\n\n margin-top: ",";\n"])),u.spacings.md),t.ButtonGroup=d.default.div(i||(i=r(["\n display: flex;\n gap: ",";\n"],["\n display: flex;\n gap: ",";\n"])),u.spacings.xs),t.Button=d.default.button(l||(l=r(["\n flex: 1 1;\n\n height: 22px;\n max-width: 60px;\n padding: 0 ",";\n\n border: 2px solid transparent;\n border-radius: ",";\n background-color: rgba(96, 125, 159, 0.25);\n\n font-size: 12px;\n line-height: 12px;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n transition: background-color 0.2s ease-out;\n\n &.active {\n background-color: ",";\n color: white;\n }\n\n &:hover:not(.active) {\n background-color: rgba(96, 125, 159, 0.3);\n }\n\n &.submit {\n background-color: ",";\n color: ",";\n\n &.active {\n background-color: ",";\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n }\n\n &.has-rule {\n border-color: ",";\n }\n"],["\n flex: 1 1;\n\n height: 22px;\n max-width: 60px;\n padding: 0 ",";\n\n border: 2px solid transparent;\n border-radius: ",";\n background-color: rgba(96, 125, 159, 0.25);\n\n font-size: 12px;\n line-height: 12px;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n transition: background-color 0.2s ease-out;\n\n &.active {\n background-color: ",";\n color: white;\n }\n\n &:hover:not(.active) {\n background-color: rgba(96, 125, 159, 0.3);\n }\n\n &.submit {\n background-color: ",";\n color: ",";\n\n &.active {\n background-color: ",";\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n }\n\n &.has-rule {\n border-color: ",";\n }\n"])),u.spacings.sm,u.borderRadius.lg,u.colors.gray600,u.colors.gray600,u.colors.white,u.colors.gray900,u.colors.gray900,u.colors.teal550)},89602:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Buttons=void 0;var a=r(n(14041)),o=n(68479),i=n(38955),l=r(n(84350)),u=n(93874),d=n(62362),c=n(22688),s=r(n(91797)),f=r(n(40921)),p=n(89108),m=function(e){var t=e.page,n=e.button,r=n.handle,u=n.label,m=l.default.limitations.can("rules.tab.buttons"),v=(0,i.useParams)(),h=v.uid,g=v.button,b=(0,i.useNavigate)(),y=(0,d.useLastTab)("rules").setLastTab,_=h===t.uid&&r===g,x=(0,o.useSelector)(c.buttonRuleSelectors.hasRule(t.uid,r));return m?a.default.createElement(p.Button,{type:"button",className:(0,s.default)(r,_&&"active",x&&"has-rule"),onClick:function(){var e=_?"":"page/".concat(t.uid,"/buttons/").concat(r);y(e),b(e)}},(0,f.default)(u)):null};t.Buttons=function(e){var t=e.page,n=(0,u.getButtonGroups)(t);return a.default.createElement(p.ButtonsWrapper,null,n.map((function(e,n){return a.default.createElement(p.ButtonGroup,{key:n,className:"page-buttons"},e.map((function(e,n){return a.default.createElement(m,{key:n,button:e,page:t})})))})))}},58350:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var a=r(n(14041)),o=n(68479),i=n(38955),l=r(n(84350)),u=n(62362),d=n(30063),c=r(n(91797)),s=n(29996),f=n(89602),p=r(n(32155)),m=n(1247);t.Page=function(e){var t=e.page,n=l.default.limitations.can("rules.tab.pages"),r=(0,i.useParams)(),v=r.uid,h=r.button,g=(0,i.useNavigate)(),b=(0,u.useLastTab)("rules").setLastTab,y=(0,o.useSelector)(d.pageRuleSelectors.hasRule(t.uid)),_=t.label,x=t.uid,w=v===x&&!h;return a.default.createElement(m.PageWrapper,null,a.default.createElement(m.PageButton,{onClick:function(){if(n){var e=w?"":"page/".concat(x);b(e),g(e)}},className:(0,c.default)(w&&"active",y&&"has-rule",!n&&"read-only")},a.default.createElement(m.PageIcon,null,a.default.createElement(p.default,null)),a.default.createElement(m.PageLabel,null,_)),a.default.createElement(m.PageBody,{className:(0,c.default)(w&&"active",y&&"has-rule")},a.default.createElement(s.Layout,{layoutUid:t.layoutUid}),a.default.createElement(f.Buttons,{page:t})))}},1247:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PageLabel=t.PageIcon=t.PageBody=t.PageButton=t.PageWrapper=void 0;var o,i,l,u,d,c=n(82919),s=a(n(10530)),f=n(89108);t.PageWrapper=s.default.div(o||(o=r(["\n display: flex;\n flex: 1;\n flex-direction: column;\n"],["\n display: flex;\n flex: 1;\n flex-direction: column;\n"]))),t.PageButton=s.default.button(i||(i=r(["\n position: relative;\n bottom: -1px;\n\n display: inline-flex;\n justify-content: start;\n align-items: center;\n flex-wrap: nowrap;\n gap: ",";\n\n max-width: 150px;\n padding: "," ",";\n\n background-color: ",";\n\n border: 1px solid #cdd8e4;\n border-bottom: none;\n border-radius: "," "," 0 0;\n\n text-align: left;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n\n &.active {\n border-right-color: ",";\n }\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n color: ",";\n }\n\n &,\n &:active,\n &:focus {\n outline: none;\n }\n\n &.read-only {\n cursor: default !important;\n }\n\n svg {\n width: 18px;\n height: 18px;\n fill: currentColor;\n }\n"],["\n position: relative;\n bottom: -1px;\n\n display: inline-flex;\n justify-content: start;\n align-items: center;\n flex-wrap: nowrap;\n gap: ",";\n\n max-width: 150px;\n padding: "," ",";\n\n background-color: ",";\n\n border: 1px solid #cdd8e4;\n border-bottom: none;\n border-radius: "," "," 0 0;\n\n text-align: left;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n\n &.active {\n border-right-color: ",";\n }\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n color: ",";\n }\n\n &,\n &:active,\n &:focus {\n outline: none;\n }\n\n &.read-only {\n cursor: default !important;\n }\n\n svg {\n width: 18px;\n height: 18px;\n fill: currentColor;\n }\n"])),c.spacings.sm,c.spacings.xs,c.spacings.sm,c.colors.white,c.borderRadius.md,c.borderRadius.md,c.colors.teal550,c.colors.teal050,c.colors.teal700,c.colors.gray500,c.colors.gray700,c.colors.white),t.PageBody=s.default.div(l||(l=r(["\n padding: ",";\n border: 1px solid #cdd8e4;\n background-color: ",";\n\n border-radius: 0 "," "," ",";\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n\n "," {\n background-color: ",";\n\n &.submit {\n background-color: ",";\n }\n }\n }\n"],["\n padding: ",";\n border: 1px solid #cdd8e4;\n background-color: ",";\n\n border-radius: 0 "," "," ",";\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n\n "," {\n background-color: ",";\n\n &.submit {\n background-color: ",";\n }\n }\n }\n"])),c.spacings.sm,c.colors.white,c.borderRadius.md,c.borderRadius.md,c.borderRadius.md,c.colors.teal550,c.colors.teal050,c.colors.gray500,c.colors.gray700,f.Button,c.colors.gray100,c.colors.red600),t.PageIcon=s.default.div(u||(u=r([""],[""]))),t.PageLabel=s.default.label(d||(d=r(["\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])))},58648:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RowWrapper=void 0;var o,i=n(82919),l=a(n(10530));t.RowWrapper=l.default.div(o||(o=r(["\n display: flex;\n flex-direction: row;\n justify-content: stretch;\n align-items: stretch;\n gap: ",";\n"],["\n display: flex;\n flex-direction: row;\n justify-content: stretch;\n align-items: stretch;\n gap: ",";\n"])),i.spacings.xs)},90326:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Row=void 0;var a=r(n(14041)),o=n(68479),i=n(85905),l=n(50482),u=n(58648);t.Row=function(e){var t=e.row,n=(0,o.useSelector)(i.fieldSelectors.inRow(t));return a.default.createElement(u.RowWrapper,null,n.map((function(e){return a.default.createElement(l.Field,{key:e.uid,field:e})})))}},8598:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Label=t.SubmitFormWrapper=void 0;var o,i,l=n(82919),u=a(n(10530));t.SubmitFormWrapper=u.default.div(o||(o=r(["\n cursor: pointer;\n\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border: 1px solid #cdd8e4;\n background-color: ",";\n\n border-radius: ",";\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n\n color: white;\n fill: currentColor;\n }\n\n svg {\n width: 16px;\n height: 16px;\n }\n"],["\n cursor: pointer;\n\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border: 1px solid #cdd8e4;\n background-color: ",";\n\n border-radius: ",";\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n\n color: white;\n fill: currentColor;\n }\n\n svg {\n width: 16px;\n height: 16px;\n }\n"])),l.spacings.xs,l.spacings.xs,l.spacings.sm,l.colors.white,l.borderRadius.md,l.colors.teal550,l.colors.teal050,l.colors.gray500,l.colors.gray700),t.Label=u.default.label(i||(i=r(["\n cursor: pointer;\n\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n cursor: pointer;\n\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])))},56904:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SubmitForm=void 0;var a=r(n(14041)),o=n(68479),i=n(38955),l=r(n(84350)),u=n(62362),d=n(67180),c=r(n(91797)),s=r(n(40921)),f=r(n(52106)),p=n(8598);t.SubmitForm=function(){var e=l.default.limitations.can("rules.tab.submit"),t=(0,i.useNavigate)(),n=(0,i.useLocation)(),r=(0,u.useLastTab)("rules").setLastTab,m=(0,o.useSelector)(d.submitFormRuleSelectors.hasRule),v=n.pathname.endsWith("/rules/submit");return e?a.default.createElement(p.SubmitFormWrapper,{onClick:function(){r("submit"),t("submit")},className:(0,c.default)(v&&"active",m&&"has-rule")},a.default.createElement("div",null,a.default.createElement(f.default,null)),a.default.createElement(p.Label,null,(0,s.default)("Submit Form"))):null}},62362:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n span[data-icon] {\n position: relative;\n left: 5px;\n }\n }\n"],["\n display: flex;\n align-self: flex-end;\n\n background-color: ",";\n border-radius: "," "," 0 0;\n box-shadow:\n inset 0 -1px 0 0 rgba(154, 165, 177, 0.25),\n 0 0 0 1px rgba(154, 165, 177, 0.25);\n\n a {\n display: flex;\n align-items: center;\n\n height: 49px;\n padding: 0 ",";\n\n white-space: nowrap;\n\n color: var(--light-text-color);\n border-radius: "," "," 0 0;\n\n &:hover {\n text-decoration: none;\n background-color: rgba(154, 165, 177, 0.15);\n\n &:not(.active) {\n &:not(:first-child) {\n border-top-left-radius: 0;\n }\n\n &:not(:last-child) {\n border-top-right-radius: 0;\n }\n }\n }\n\n &.active {\n background: ",";\n color: ",";\n box-shadow:\n inset 0 2px 0 ",",\n 0 0 0 1px rgba(51, 64, 77, 0.1),\n 0 2px 12px rgba(205, 216, 228, 0.5) !important;\n }\n\n &.errors {\n position: relative;\n color: ",";\n\n ",";\n }\n\n > span[data-icon] {\n position: relative;\n left: 5px;\n }\n }\n"])),f.colors.gray050,f.borderRadius.lg,f.borderRadius.lg,f.spacings.xl,f.borderRadius.md,f.borderRadius.md,f.colors.white,f.colors.gray700,f.colors.gray500,f.colors.error,s.errorAlert),t.SaveButtonWrapper=p.default.div(d||(d=r(["\n display: flex;\n justify-content: end;\n"],["\n display: flex;\n justify-content: end;\n"]))),t.SaveButton=p.default.button(c||(c=r([""],[""])))},17584:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)){for(var n=0,r=t.payload;n0&&(f+=" ".concat(s)),c.label=f,c.handle=(0,i.default)(f)}e.push({uid:a,rowUid:o,typeClass:l.typeClass,properties:c,order:void 0!==u?u:d+1}),void 0!==u&&e.filter((function(e){return e.rowUid===o})).filter((function(e){return e.uid!==a})).forEach((function(e){e.order>=u&&(e.order+=1)}))},remove:function(e,t){var n=t.payload;e.splice(e.findIndex((function(e){return e.uid===n})),1)},removeBatch:function(e,t){t.payload.forEach((function(t){e.splice(e.findIndex((function(e){return e.uid===t})),1)}))},edit:function(e,t){var n=t.payload,r=n.uid,a=n.handle,o=n.value;e.find((function(e){return e.uid===r})).properties[a]=o},batchEdit:function(e,t){var n=t.payload,r=n.uid,a=n.typeClass,o=n.properties,i=e.find((function(e){return e.uid===r}));i.typeClass=a,i.properties=o},clearErrors:function(e){for(var t=0,n=e;t=u;e.order-=t?1:0})),e.filter((function(e){return e.rowUid===a})).filter((function(e){return e.uid!==i.uid})).forEach((function(e){var t=e.order>=i.order;e.order+=t?1:0}))),d&&e.filter((function(e){return e.rowUid===a})).filter((function(e){return e.uid!==i.uid})).forEach((function(e){e.order>u&&e.order<=o&&(e.order-=1),e.order=o&&(e.order+=1)})))}}});var l=t.fieldsSlice.actions;t.fieldActions=l,t.default=t.fieldsSlice.reducer},96510:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(55755),o=r(n(69586)),i=r(n(18434)),l=r(n(71761)),u=r(n(97230)),d=(0,a.combineReducers)({fields:o.default,pages:l.default,rows:u.default,layouts:i.default});t.default=d},18434:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;al&&(e.order-=1),a(null===(o=e[t])||void 0===o?void 0:o.order)?r:t}),-1),n=-1===n?e.length:n),e.splice(n,0,{uid:o,order:n,layoutUid:a}),e.filter((function(e){return e.layoutUid===a})).forEach((function(e,t){e.order=t}))},remove:function(e,t){var n=e.findIndex((function(e){return e.uid===t.payload})),r=e.find((function(e){return e.uid===t.payload})).layoutUid;e.splice(n,1),e.filter((function(e){return e.layoutUid===r})).forEach((function(e,t){e.order=t}))},swap:function(e,t){var n=e.find((function(e){return e.uid===t.payload.currentUid})),r=e.find((function(e){return e.uid===t.payload.targetUid})),a=n.order;n.order=r.order,r.order=a}}});var o=t.rowsSlice.actions;t.rowActions=o,t.default=t.rowsSlice.reducer},33481:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a=i.default.limits.fields)){var a=e.fieldType,o=e.row,s=e.layoutUid;if(!s){var f=n();s=o?o.layoutUid:null===(r=u.layoutSelectors.currentPageLayout(f))||void 0===r?void 0:r.uid}var p=(0,c.v4)(),m=(0,c.v4)();t(d.rowActions.add({layoutUid:s,uid:m,order:null==o?void 0:o.order})),t(l.fieldActions.add({fieldType:a,uid:p,rowUid:m}))}}},existingRow:function(e){return function(t){var n=e.fieldType,r=e.row,a=e.order,o=(0,c.v4)();t(l.fieldActions.add({fieldType:n,uid:o,rowUid:r.uid,order:a}))}}}},3383:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.removeField=void 0;var r=n(69586),a=n(18434),o=n(97230),i=n(12755),l=n(82480);t.default=function(e){return function(n,r){(0,t.removeField)(r(),n,e),(0,l.removeEmptyRows)(r(),n)}};t.removeField=function(e,n,l){if(l.typeClass===i.Fields.Group){var u=e.layout.layouts.find((function(e){return e.uid===l.properties.layout}));if(!u)return;e.layout.rows.filter((function(e){return e.layoutUid===u.uid})).forEach((function(r){var a=e.layout.fields.filter((function(e){return e.rowUid===r.uid}));a.forEach((function(r){(0,t.removeField)(e,n,r)})),n(o.rowActions.remove(r.uid))})),n(a.layoutActions.remove(u.uid))}n(r.fieldActions.remove(l.uid))}},40057:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]DELETE in the box below:")}}),d.default.createElement("input",{type:"text",autoFocus:!0,value:x,autoComplete:"off",onChange:function(e){w(e.target.value)},className:"text fullwidth"})),d.default.createElement(s.ModalFooter,null,d.default.createElement("button",{className:"btn cancel",onClick:n},(0,g.default)("Cancel")),d.default.createElement("button",{className:(0,h.default)("btn submit",!a&&"disabled"),onClick:M},d.default.createElement(c.LoadingText,{loadingText:(0,g.default)("Deleting"),loading:O,spinner:!0},(0,g.default)("Delete")))))}},30049:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormModalLoading=void 0;var a=r(n(14041)),o=r(n(47165));t.FormModalLoading=function(){return a.default.createElement(a.default.Fragment,null,a.default.createElement("div",null,a.default.createElement(o.default,{height:10,width:50}),a.default.createElement(o.default,{height:24})),a.default.createElement("div",null,a.default.createElement(o.default,{height:10,width:150}),a.default.createElement(o.default,{height:24})),a.default.createElement("div",{style:{display:"flex",alignItems:"center",gap:10}},a.default.createElement(o.default,{height:24,width:38,borderRadius:12}),a.default.createElement("div",{style:{flex:1}},a.default.createElement(o.default,{height:10,width:80}),a.default.createElement(o.default,{height:8,width:"60%"}))))}},82723:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFetchFormModalType=void 0;var a=n(7245),o=r(n(47764)),i=["form","modal"];t.useFetchFormModalType=function(){return(0,a.useQuery)(i,(function(){return o.default.get("/api/forms/modal").then((function(e){return e.data}))}),{staleTime:1/0})}},54857:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormWrapper=void 0;var o,i=n(82919),l=a(n(10530));t.FormWrapper=l.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: "," ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: "," ",";\n"])),i.spacings.lg,i.spacings.md,i.spacings.xl)},80292:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EditGroupModal=void 0;var l=o(n(14041)),u=n(9408),d=n(83750),c=n(29620),s=n(60653),f=n(80296),p=i(n(40921)),m=i(n(35934)),v=i(n(87804)),h=n(57602),g=n(76593),b=n(29659),y=n(34829),_=n(64876);t.EditGroupModal=function(e){var t,n,r=e.closeModal,a=(0,l.useState)({}),o=a[0],i=a[1],x=(0,l.useState)(!1),w=x[0],E=x[1],O=(0,l.useState)(),P=O[0],j=O[1],k=(0,s.useFetchFormGroups)().data,M=(0,l.useRef)({}),C=(0,b.useFormGroupsOperations)(o,i,M),S=C.addGroup,F=C.updateGroupInfo,T=C.syncFormGroupsRefs;(0,l.useEffect)((function(){k&&!w&&(i(k),E(!0))}),[k,w]),(0,l.useEffect)((function(){(0,_.initializeSortable)(M)}),[]);var D=(0,y.useFormGroupsMutation)({onSuccess:function(){r()},onError:function(e){j(e.errors)}}),L=D.isLoading;return l.default.createElement(c.ModalContainer,{style:{maxWidth:"60%"}},l.default.createElement(c.ModalHeader,null,l.default.createElement("h1",null,(0,p.default)("Form Group Manager"))),l.default.createElement(h.ManagerWrapper,null,l.default.createElement(h.GroupWrapper,{ref:function(e){return M.current.groupWrapper=e},$empty:(0,p.default)("Click the 'Add Group' button on the right to begin.")},(null==P?void 0:P.length)&&l.default.createElement(h.ErrorBlock,null,(0,p.default)("Something went wrong!")),null===(n=null===(t=o.formGroups)||void 0===t?void 0:t.groups)||void 0===n?void 0:n.map((function(e){var t;return l.default.createElement(h.GroupLayout,{key:e.uid,"data-id":e.uid},l.default.createElement(h.GroupHeader,null,l.default.createElement(u.FormComponent,{value:e.label,property:{type:f.PropertyType.Label,handle:e.uid},updateValue:function(t){return F("label",t,e.uid)}})),l.default.createElement(h.GroupItemWrapper,{$empty:(0,p.default)("Drag and drop any field here"),ref:function(t){(0,_.initializeGroupedSortable)(t,e.uid,M)}},null===(t=e.forms)||void 0===t?void 0:t.map((function(e){return l.default.createElement(g.FormItem,{key:e.id,form:e})}))),l.default.createElement(h.CloseAndMoveWrapper,null,l.default.createElement("button",{className:"group-remove"},l.default.createElement(m.default,null)),l.default.createElement("button",{className:"handle"},l.default.createElement(v.default,null))))}))),l.default.createElement(h.GroupListWrapper,null,l.default.createElement("button",{onClick:S,type:"button",className:"btn add icon dashed"},(0,p.default)("Add Group")),l.default.createElement(h.UnassignedGroupWrapper,null,l.default.createElement(h.UnassignedGroup,{className:"unassigned"},l.default.createElement("h3",null,(0,p.default)("Unassigned")),l.default.createElement(h.Groups,{$empty:(0,p.default)("Drag and drop any form here. Unassigned form will display at the bottom of the list of Groups."),ref:function(e){return M.current.unassigned=e}},(null==o?void 0:o.forms)&&o.forms.filter((function(e){return null===e.dateArchived})).map((function(e){return l.default.createElement(g.FormItem,{key:e.id,form:e})}))))))),l.default.createElement(c.ModalFooter,null,l.default.createElement("button",{className:"btn cancel",onClick:r},(0,p.default)("Close")),l.default.createElement("button",{className:"btn submit"},l.default.createElement(d.LoadingText,{loadingText:(0,p.default)("Saving"),loading:L,onClick:function(){return D.mutate(T())},spinner:!0},(0,p.default)("Save")))))}},57602:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBlock=t.UnassignedGroup=t.UnassignedGroupWrapper=t.Groups=t.GroupListWrapper=t.CloseAndMoveWrapper=t.GroupItemWrapper=t.GroupHeader=t.GroupWrapper=t.GroupLayout=t.ManagerWrapper=void 0;var o,i,l,u,d,c,s,f,p,m,v,h=n(49974),g=n(82919),b=a(n(10530));t.ManagerWrapper=b.default.div(o||(o=r(["\n display: grid;\n grid-template-columns: 2fr 1fr;\n background: var(--gray-050);\n height: 600px;\n"],["\n display: grid;\n grid-template-columns: 2fr 1fr;\n background: var(--gray-050);\n height: 600px;\n"]))),t.GroupLayout=b.default.div(i||(i=r(["\n position: relative;\n background-color: ",";\n padding: ",";\n border-radius: ",";\n border: 1px solid ",";\n gap: ",";\n"],["\n position: relative;\n background-color: ",";\n padding: ",";\n border-radius: ",";\n border: 1px solid ",";\n gap: ",";\n"])),g.colors.white,g.spacings.md,g.borderRadius.md,g.colors.hairline,g.spacings.md),t.GroupWrapper=b.default.div(l||(l=r(["\n padding: 25px ",";\n display: flex;\n flex-direction: column;\n gap: ",";\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n\n &:empty::before {\n content: ",";\n display: block;\n }\n"],["\n padding: 25px ",";\n display: flex;\n flex-direction: column;\n gap: ",";\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n\n &:empty::before {\n content: ",";\n display: block;\n }\n"])),g.spacings.lg,g.spacings.md,h.scrollBar,(function(e){var t=e.$empty;return'"'.concat(t,'"')})),t.GroupWrapper.defaultProps={$empty:"Click the 'Add Group' button on the right to begin."},t.GroupHeader=b.default.div(u||(u=r(["\n display: flex;\n padding-bottom: ",";\n gap: ",";\n"],["\n display: flex;\n padding-bottom: ",";\n gap: ",";\n"])),g.spacings.lg,g.spacings.lg),t.GroupItemWrapper=b.default.div(d||(d=r(["\n display: grid;\n gap: 6px;\n grid-template-columns: 1fr 1fr;\n border-radius: ",";\n\n &:empty::before {\n content: ",";\n display: block;\n }\n\n svg {\n fill: ",";\n }\n\n .remove {\n svg {\n fill: "," !important;\n }\n }\n"],["\n display: grid;\n gap: 6px;\n grid-template-columns: 1fr 1fr;\n border-radius: ",";\n\n &:empty::before {\n content: ",";\n display: block;\n }\n\n svg {\n fill: ",";\n }\n\n .remove {\n svg {\n fill: "," !important;\n }\n }\n"])),g.borderRadius.md,(function(e){var t=e.$empty;return'"'.concat(t,'"')}),(function(e){return e.color||g.colors.black}),g.colors.black),t.GroupItemWrapper.defaultProps={$empty:"Drag and drop any field here",color:g.colors.black},t.CloseAndMoveWrapper=b.default.div(c||(c=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n position: absolute;\n top: 10px;\n right: 10px;\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n position: absolute;\n top: 10px;\n right: 10px;\n"])),g.spacings.xs),t.GroupListWrapper=b.default.div(s||(s=r(["\n padding: 25px ",";\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n"],["\n padding: 25px ",";\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n"])),g.spacings.lg,h.scrollBar),t.Groups=b.default.div(f||(f=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n &:empty::before {\n content: ",";\n display: block;\n }\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n &:empty::before {\n content: ",";\n display: block;\n }\n"])),g.spacings.xs,(function(e){var t=e.$empty;return'"'.concat(t,'"')})),t.Groups.defaultProps={$empty:"Drag and drop any field here"},t.UnassignedGroupWrapper=b.default.div(p||(p=r(["\n padding-top: ",";\n\n > .unassigned {\n .remove {\n display: none;\n }\n }\n"],["\n padding-top: ",";\n\n > .unassigned {\n .remove {\n display: none;\n }\n }\n"])),g.spacings.lg),t.UnassignedGroup=b.default.div(m||(m=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," "," "," ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," "," "," ",";\n"])),g.spacings.md,g.spacings.xs,g.spacings.xs,g.spacings.xs,g.spacings.md),t.ErrorBlock=b.default.div(v||(v=r(["\n color: ",";\n"],["\n color: ",";\n"])),g.colors.warning)},29659:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]0?[4,c.default.post("/api/forms/sort",{orderedFormIds:t})]:[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}}))}))}),e)}},64783:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PaddedFooter=t.Remove=t.Name=t.FormDetails=t.Wrapper=void 0;var o,i,l,u,d,c=n(82919),s=a(n(10530));t.Wrapper=s.default.div(o||(o=r(["\n cursor: pointer;\n gap: 30px;\n width: 100%;\n overflow: hidden;\n background: ",";\n border: 1px solid ",";\n border-radius: 3px;\n font-size: 12px;\n transition: all 0.2s ease-in-out;\n\n &:hover {\n transform: scale(1.02);\n border: 1px solid ",";\n background-color: ",";\n }\n"],["\n cursor: pointer;\n gap: 30px;\n width: 100%;\n overflow: hidden;\n background: ",";\n border: 1px solid ",";\n border-radius: 3px;\n font-size: 12px;\n transition: all 0.2s ease-in-out;\n\n &:hover {\n transform: scale(1.02);\n border: 1px solid ",";\n background-color: ",";\n }\n"])),c.colors.white,c.colors.gray100,c.colors.gray200,c.colors.gray050),t.FormDetails=s.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n padding: 10px;\n"],["\n display: flex;\n flex-direction: column;\n padding: 10px;\n"]))),t.Name=s.default.h2(l||(l=r(["\n flex: 1;\n overflow-x: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n margin-bottom: 0;\n"],["\n flex: 1;\n overflow-x: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n margin-bottom: 0;\n"]))),t.Remove=s.default.div(u||(u=r(["\n color: ",";\n margin-right: ",";\n position: absolute;\n right: 8px;\n top: 7px;\n"],["\n color: ",";\n margin-right: ",";\n position: absolute;\n right: 8px;\n top: 7px;\n"])),c.colors.gray500,c.spacings.xs),t.PaddedFooter=s.default.div(d||(d=r(["\n margin-top: 0;\n background-color: ",";\n opacity: 1;\n height: 2px;\n font-size: 1px;\n line-height: 1px;\n overflow: hidden;\n"],["\n margin-top: 0;\n background-color: ",";\n opacity: 1;\n height: 2px;\n font-size: 1px;\n line-height: 1px;\n overflow: hidden;\n"])),(function(e){return e.$color}))},76593:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormItem=void 0;var l=o(n(14041)),u=n(12888),d=i(n(35934)),c=n(64783);t.FormItem=function(e){var t=e.form,n=(0,l.useRef)(null),r=(0,u.useHover)(n),a=t.id,o=t.name,i=t.settings.general.color;return l.default.createElement(c.Wrapper,{"data-id":a,ref:n},l.default.createElement(c.FormDetails,null,l.default.createElement(c.Name,null,o)),r&&l.default.createElement(c.Remove,{className:"remove form-item-remove"},l.default.createElement(d.default,null)),l.default.createElement(c.PaddedFooter,{$color:i}))}},64876:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.initializeGroupedSortable=t.initializeSortable=void 0;var a=r(n(23571)),o=function(e,t){return".handle"!==t.options.handle};t.initializeSortable=function(e){var t;t={unassigned:{group:{name:"shared",put:o},animation:150,sort:!0},groupWrapper:{handle:".handle",filter:".group-remove",sort:!0,animation:150,onFilter:function(t){var n,r=Array.from(e.current[t.item.dataset.id].children);(n=e.current.unassigned).append.apply(n,r),t.item.remove()}}},Object.entries(t).forEach((function(t){return function(t,n){var r=e.current[t];r&&a.default.create(r,n)}(t[0],t[1])}))};t.initializeGroupedSortable=function(e,t,n){e&&(a.default.create(e,{animation:150,group:{name:"group-".concat(t),put:function(e,t){return".handle"!==t.options.handle}},sort:!0,filter:".form-item-remove",onFilter:function(e){return n.current.unassigned.appendChild(e.item)}}),n.current[t]=e)}},20600:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{errors} logged errors in the Freeform error log.',{link:(0,l.generateUrl)("settings/error-log"),errors:t.errors})}}))):null:null}},82187:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ItemMeta=t.ItemDate=t.ItemTitleLink=t.ItemTitle=t.Item=void 0;var o,i,l,u,d,c=n(82919),s=a(n(10530));t.Item=s.default.li(o||(o=r(["\n line-height: 1.4;\n list-style-type: disc;\n\n &.disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n\n &.restored {\n opacity: 0;\n }\n"],["\n line-height: 1.4;\n list-style-type: disc;\n\n &.disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n\n &.restored {\n opacity: 0;\n }\n"]))),t.ItemTitle=s.default.span(i||(i=r(["\n color: ",";\n font-weight: bold;\n"],["\n color: ",";\n font-weight: bold;\n"])),c.colors.blue600),t.ItemTitleLink=(0,s.default)(t.ItemTitle)(l||(l=r(["\n cursor: pointer;\n\n &:hover {\n text-decoration: underline;\n }\n"],["\n cursor: pointer;\n\n &:hover {\n text-decoration: underline;\n }\n"]))),t.ItemDate=s.default.span(u||(u=r(["\n color: #868f96;\n margin-left: 5px;\n"],["\n color: #868f96;\n margin-left: 5px;\n"]))),t.ItemMeta=s.default.span(d||(d=r(["\n margin-left: 5px;\n color: ",";\n\n &::before {\n content: '|';\n padding-right: 5px;\n }\n\n a,\n button {\n cursor: pointer;\n color: var(--link-color);\n\n &:hover {\n text-decoration: underline;\n }\n }\n"],["\n margin-left: 5px;\n color: ",";\n\n &::before {\n content: '|';\n padding-right: 5px;\n }\n\n a,\n button {\n cursor: pointer;\n color: var(--link-color);\n\n &:hover {\n text-decoration: underline;\n }\n }\n"])),c.colors.gray200)},29085:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArchivedItem=void 0;var a=r(n(14041)),o=n(38955),i=n(84895),l=r(n(91797)),u=r(n(40921)),d=n(7245),c=n(33106),s=n(77315),f=n(82187);t.ArchivedItem=function(e){var t,n=e.form,r=(0,o.useNavigate)(),p=(0,d.useQueryClient)(),m=n.id,v=n.name,h=n.links,g=n.dateArchived,b=(0,s.useArchiveFormMutation)(),y=b.isLoading&&b.context===m,_=b.isSuccess&&b.context===m,x=h.filter((function(e){return"title"===e.type})).length,w=n.links.filter((function(e){return"linkList"===e.type}));return a.default.createElement(f.Item,{className:(0,l.default)(y&&"disabled",_&&"restored")},x?a.default.createElement(f.ItemTitleLink,{onClick:function(){p.invalidateQueries(i.QKForms.single(Number(m))),r("".concat(m))}},v):a.default.createElement(f.ItemTitle,null,v),g&&a.default.createElement(f.ItemDate,null,"(",(0,u.default)("archived")," ",(t=g,(0,c.format)((0,c.parseISO)(t),"yyyy-MM-dd")),")"),w.length>0&&w.filter((function(e){return e.count})).map((function(e,t){return e.internal?a.default.createElement(f.ItemMeta,{key:t},a.default.createElement(o.NavLink,{to:e.url},e.label)):a.default.createElement(f.ItemMeta,{key:t},a.default.createElement("a",{href:e.url},e.label))})),a.default.createElement(f.ItemMeta,null,a.default.createElement("button",{onClick:function(){b.mutate(m)}},(0,u.default)("Restore this Form"))))}},61662:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArchivedItems=t.Button=t.Wrapper=void 0;var o,i,l,u=n(82919),d=a(n(10530));t.Wrapper=d.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),u.spacings.md),t.Button=d.default.button(i||(i=r(["\n grid-area: button;\n\n outline: none;\n box-shadow: none;\n\n color: var(--link-color);\n\n font-size: 14px;\n text-align: left;\n\n transition: all 0.2s ease-out;\n\n &:focus {\n outline: none;\n box-shadow: none;\n }\n"],["\n grid-area: button;\n\n outline: none;\n box-shadow: none;\n\n color: var(--link-color);\n\n font-size: 14px;\n text-align: left;\n\n transition: all 0.2s ease-out;\n\n &:focus {\n outline: none;\n box-shadow: none;\n }\n"]))),t.ArchivedItems=d.default.ul(l||(l=r(["\n margin-left: 25px;\n"],["\n margin-left: 25px;\n"])))},43664:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Archived=void 0;var l=o(n(14041)),u=i(n(40921)),d=n(29085),c=n(61662);t.Archived=function(e){var t=e.data,n=(0,l.useState)(!1),r=n[0],a=n[1];return(null==t?void 0:t.length)?l.default.createElement(c.Wrapper,null,l.default.createElement(c.Button,{onClick:function(){return a(!r)}},(0,u.default)(r?"Hide archived forms":"Show archived forms")),r&&l.default.createElement(c.ArchivedItems,null,t.map((function(e){return l.default.createElement(d.ArchivedItem,{key:e.id,form:e})})))):null}},56066:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CardLoading=void 0;var a=r(n(14041)),o=r(n(47165)),i=n(92657),l=n(67830);t.CardLoading=function(){var e="#dfdfdf",t=Array.from({length:10},(function(){return{value:(e=0,t=Math.random()>.9?8:4,Math.floor(Math.random()*(t-e+1))+e)};var e,t}));return a.default.createElement(l.CardWrapper,null,a.default.createElement(l.CardBody,null,a.default.createElement(o.default,{height:20,width:"50%"}),a.default.createElement(o.default,{height:10,width:"80%"}),a.default.createElement(l.LinkList,null,a.default.createElement("li",null,a.default.createElement(o.default,{height:8,width:90})),a.default.createElement("li",null,a.default.createElement(o.default,{height:8,width:50})))),a.default.createElement(i.ResponsiveContainer,{width:"100%",height:40},a.default.createElement(i.AreaChart,{data:t,margin:{top:10,bottom:3,left:0,right:0}},a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"colorGradient",x1:0,y1:0,x2:0,y2:1},a.default.createElement("stop",{offset:"5%",stopColor:e,stopOpacity:.4}),a.default.createElement("stop",{offset:"95%",stopColor:e,stopOpacity:.3}))),a.default.createElement(i.Area,{type:"monotone",dataKey:"value",stroke:e,strokeWidth:1,strokeOpacity:1,fillOpacity:1,fill:"url(#colorGradient)",isAnimationActive:!1}))),a.default.createElement(l.PaddedChartFooter,{$color:e}))}},67830:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PaddedChartFooter=t.CardWrapper=t.LinkList=t.ControlButton=t.Controls=t.Subtitle=t.TitleLink=t.Title=t.CardBody=void 0;var o,i,l,u,d,c,s,f,p,m=n(82919),v=a(n(10530));t.CardBody=v.default.div(o||(o=r(["\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: start;\n\n padding: "," "," 0;\n"],["\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: start;\n\n padding: "," "," 0;\n"])),m.spacings.xl,m.spacings.xl),t.Title=v.default.h2(i||(i=r(["\n cursor: default;\n\n margin: 0;\n\n color: #3d464e;\n\n font-size: 20px;\n font-weight: 700;\n text-align: left;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n transition: all 0.2s ease-out;\n"],["\n cursor: default;\n\n margin: 0;\n\n color: #3d464e;\n\n font-size: 20px;\n font-weight: 700;\n text-align: left;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n transition: all 0.2s ease-out;\n"]))),t.TitleLink=(0,v.default)(t.Title)(l||(l=r(["\n cursor: pointer;\n"],["\n cursor: pointer;\n"]))),t.Subtitle=v.default.span(u||(u=r(["\n display: inline-block;\n\n color: #868f96;\n font-size: 14px;\n\n max-width: 100%;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"],["\n display: inline-block;\n\n color: #868f96;\n font-size: 14px;\n\n max-width: 100%;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"]))),t.Controls=v.default.div(d||(d=r(["\n position: absolute;\n right: ",";\n top: ",";\n z-index: 2;\n\n display: flex;\n justify-content: end;\n align-items: stretch;\n gap: ",";\n\n opacity: 0;\n transform: translateY(-20px);\n transition: all 0.2s ease-out;\n"],["\n position: absolute;\n right: ",";\n top: ",";\n z-index: 2;\n\n display: flex;\n justify-content: end;\n align-items: stretch;\n gap: ",";\n\n opacity: 0;\n transform: translateY(-20px);\n transition: all 0.2s ease-out;\n"])),m.spacings.sm,m.spacings.sm,m.spacings.sm),t.ControlButton=v.default.button(c||(c=r(["\n font-size: 14px;\n color: #868f96;\n\n > svg {\n fill: currentColor;\n }\n"],["\n font-size: 14px;\n color: #868f96;\n\n > svg {\n fill: currentColor;\n }\n"]))),t.LinkList=v.default.ul(s||(s=r(["\n margin: "," 0 0;\n padding: 0;\n"],["\n margin: "," 0 0;\n padding: 0;\n"])),m.spacings.sm),t.CardWrapper=v.default.li(f||(f=r(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n overflow: hidden;\n\n background-color: #fcfdff;\n border: 1px solid #e7eef7;\n border-radius: var(--large-border-radius);\n\n opacity: 1;\n pointer-events: auto;\n\n transition:\n background-color 0.2s ease-out,\n border-color 0.2s ease-out;\n\n &.disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n\n &.archived {\n opacity: 0;\n }\n\n &:not(.dragging):hover {\n background-color: #f3f7fd;\n border-color: #9eb0c5;\n\n "," {\n color: var(--link-color);\n }\n\n "," {\n opacity: 1;\n transform: translateY(0);\n }\n }\n"],["\n position: relative;\n\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n overflow: hidden;\n\n background-color: #fcfdff;\n border: 1px solid #e7eef7;\n border-radius: var(--large-border-radius);\n\n opacity: 1;\n pointer-events: auto;\n\n transition:\n background-color 0.2s ease-out,\n border-color 0.2s ease-out;\n\n &.disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n\n &.archived {\n opacity: 0;\n }\n\n &:not(.dragging):hover {\n background-color: #f3f7fd;\n border-color: #9eb0c5;\n\n "," {\n color: var(--link-color);\n }\n\n "," {\n opacity: 1;\n transform: translateY(0);\n }\n }\n"])),t.TitleLink,t.Controls),t.PaddedChartFooter=v.default.div(p||(p=r(["\n margin-top: -3px;\n\n background-color: ",";\n opacity: 0.3;\n\n height: 5px;\n\n font-size: 1px;\n line-height: 1px;\n\n overflow: hidden;\n"],["\n margin-top: -3px;\n\n background-color: ",";\n opacity: 0.3;\n\n height: 5px;\n\n font-size: 1px;\n line-height: 1px;\n\n overflow: hidden;\n"])),(function(e){return e.$color}))},74248:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n.9?50:20,Math.floor(Math.random()*(t-e+1))+e)};var e,t})),A=t.id,I=t.name,W=t.description,N=t.dateArchived,z=t.settings.general.color,Q=i.isLoading&&i.context===A,V=i.isSuccess&&i.context===A,G=l.isLoading&&l.context===A||Q,U=(0,f.useDeleteFormModal)({form:t}),H=function(e){e.metaKey||e.ctrlKey||1===e.button?window.open((0,g.generateUrl)("forms/".concat(A)),"_blank"):(M.invalidateQueries(m.QKForms.single(Number(A))),k("".concat(A)))},K=t.links.filter((function(e){return"title"===e.type})).length,$=t.links.filter((function(e){return"linkList"===e.type}));return u.default.createElement(P.CardWrapper,{"data-id":t.id,className:(0,v.default)(G&&"disabled",V&&"archived",n&&"dragging")},u.default.createElement(P.Controls,null,!a&&!o&&u.default.createElement(c.Tooltip,r({title:(0,h.default)("Move this Form Card")},j),u.default.createElement(P.ControlButton,{className:"handle"},u.default.createElement(x.default,null))),!a&&u.default.createElement(c.Tooltip,r({title:(0,h.default)("Duplicate this Form")},j),u.default.createElement(P.ControlButton,{onClick:function(){l.mutate(A)}},u.default.createElement(y.default,null))),!a&&!N&&u.default.createElement(c.Tooltip,r({title:(0,h.default)("Archive this Form")},j),u.default.createElement(P.ControlButton,{onClick:function(){i.mutate(A)}},u.default.createElement(b.default,null))),C&&u.default.createElement(c.Tooltip,r({title:(0,h.default)("Delete this Form")},j),u.default.createElement(P.ControlButton,{onClick:U},u.default.createElement(_.default,null)))),u.default.createElement(P.CardBody,null,T?u.default.createElement(c.Tooltip,r({title:I},j),K?u.default.createElement(P.TitleLink,{ref:F,onClick:H,onAuxClick:H},I):u.default.createElement(P.Title,{ref:F},I)):K?u.default.createElement(P.TitleLink,{ref:F,onClick:H,onAuxClick:H},I):u.default.createElement(P.Title,{ref:F},I),!!W&&(R?u.default.createElement(c.Tooltip,r({title:W},j),u.default.createElement(P.Subtitle,{ref:L},W)):u.default.createElement(P.Subtitle,{ref:L,title:W},W)),$.length>0&&u.default.createElement(P.LinkList,null,$.map((function(e,t){return e.internal?u.default.createElement(d.NavLink,{key:t,to:e.url},e.label):u.default.createElement("li",{key:t},u.default.createElement("a",{href:e.url},e.label))})))),u.default.createElement(E.ResponsiveContainer,{width:"100%",height:40},u.default.createElement(E.AreaChart,{data:t.chartData||B,margin:{top:10,bottom:3,left:0,right:0}},u.default.createElement("defs",null,u.default.createElement("linearGradient",{id:"color".concat(t.id),x1:0,y1:0,x2:0,y2:1},u.default.createElement("stop",{offset:"5%",stopColor:z,stopOpacity:.4}),u.default.createElement("stop",{offset:"95%",stopColor:z,stopOpacity:.3}))),u.default.createElement(E.Area,{type:"monotone",dataKey:"uv",stroke:z,strokeWidth:1,strokeOpacity:1,fillOpacity:1,fill:"url(#color".concat(t.id,")"),isAnimationActive:!1}))),u.default.createElement(P.PaddedChartFooter,{$color:z}))}},72907:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.chartDataset=void 0,t.chartDataset=[[{uv:0},{uv:2},{uv:0},{uv:6},{uv:0},{uv:0},{uv:1},{uv:0},{uv:0},{uv:4},{uv:0},{uv:3}],[{uv:9},{uv:6},{uv:3},{uv:4},{uv:0},{uv:6},{uv:1}],[{uv:0},{uv:25},{uv:0},{uv:32},{uv:0},{uv:0}]]},73512:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MutedWrapper=void 0;var o,i=n(82919),l=a(n(10530)),u=n(67830),d=n(39313);t.MutedWrapper=(0,l.default)(d.Cards)(o||(o=r(["\n position: relative;\n margin-top: ",";\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n\n z-index: 2;\n\n background: linear-gradient(\n to right,\n transparent 0%,\n transparent 40%,\n white 65%,\n white 100%\n );\n }\n\n &,\n * {\n pointer-events: none;\n user-select: none;\n }\n\n "," {\n border-color: #fbfcfd;\n background: #fefeff;\n }\n\n ",", "," a {\n color: #cfd1d2;\n }\n\n "," {\n color: #e2e4e5;\n }\n"],["\n position: relative;\n margin-top: ",";\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n\n z-index: 2;\n\n background: linear-gradient(\n to right,\n transparent 0%,\n transparent 40%,\n white 65%,\n white 100%\n );\n }\n\n &,\n * {\n pointer-events: none;\n user-select: none;\n }\n\n "," {\n border-color: #fbfcfd;\n background: #fefeff;\n }\n\n ",", "," a {\n color: #cfd1d2;\n }\n\n "," {\n color: #e2e4e5;\n }\n"])),i.spacings.xl,u.CardWrapper,u.Title,u.LinkList,u.Subtitle)},58982:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GridEmpty=void 0;var a=r(n(14041)),o=r(n(84350)),i=r(n(40921)),l=n(89404),u=n(74248),d=n(72907),c=n(73512),s=function(e,t,n,r,a){return{uid:"",type:"",name:e,handle:"",isNew:!0,chartData:n,links:[],counters:{submissions:r,spam:a},settings:{general:{namespaceType:"settings",namespace:"general",description:t,color:"#e0e0e0"}},dateArchived:null}};t.GridEmpty=function(){var e=(0,l.useCreateFormModal)(),t=o.default.metadata.freeform.canCreate;return a.default.createElement("div",null,t&&a.default.createElement(a.default.Fragment,null,a.default.createElement("p",null,(0,i.default)("You don't have any forms yet. Create your first form now...")),a.default.createElement("button",{className:"btn submit add icon",onClick:e},(0,i.default)("New Form"))),!t&&a.default.createElement("p",null,(0,i.default)("You don't have any forms.")),a.default.createElement(c.MutedWrapper,null,a.default.createElement(u.Card,{form:s("Contact Form","Main contact form.",d.chartDataset[0],14,5)}),a.default.createElement(u.Card,{form:s("Customer Survey","Customer satisfaction survey.",d.chartDataset[1],72,18)}),a.default.createElement(u.Card,{form:s("Newsletter","Newsletter signup form.",d.chartDataset[2],138,7)})))}},77315:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useCloneFormMutation=t.useArchiveFormMutation=void 0;var a=n(63938),o=n(60653),i=n(84895),l=n(7245),u=n(7245),d=r(n(47764));t.useArchiveFormMutation=function(){var e=(0,l.useQueryClient)(),t=(0,a.useSiteContext)().getCurrentHandleWithFallback;return(0,u.useMutation)((function(e){return d.default.post("/api/forms/".concat(e,"/archive"),{site:t()})}),{onMutate:function(e){return e},onSuccess:function(){e.invalidateQueries(o.QKGroups.all(t())),e.invalidateQueries(i.QKForms.all(t()))}})};t.useCloneFormMutation=function(){var e=(0,l.useQueryClient)(),t=(0,a.useSiteContext)().getCurrentHandleWithFallback;return(0,u.useMutation)((function(e){return d.default.post("/api/forms/".concat(e,"/clone"))}),{onMutate:function(e){return e},onSuccess:function(){e.invalidateQueries(o.QKGroups.all(t())),e.invalidateQueries(i.QKForms.all(t()))}})}},65727:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PopupMenu=t.DropdownWrapper=t.Button=t.ButtonWrapper=void 0;var o,i,l,u,d=n(82919),c=a(n(10530));t.ButtonWrapper=c.default.div(o||(o=r(["\n position: relative;\n display: inline-block;\n"],["\n position: relative;\n display: inline-block;\n"]))),t.Button=c.default.button(i||(i=r([""],[""]))),t.DropdownWrapper=c.default.div(l||(l=r(["\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 10;\n\n display: block;\n"],["\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 10;\n\n display: block;\n"]))),t.PopupMenu=c.default.div(u||(u=r(["\n position: absolute;\n left: 0;\n top: 100%;\n z-index: 100;\n\n padding: 0 14px;\n\n background: white;\n box-shadow:\n 0 0 0 1px rgba(31, 41, 51, 0.1),\n 0 5px 20px rgba(31, 41, 51, 0.25);\n\n border-radius: ",";\n\n overflow: auto;\n user-select: none;\n\n ul {\n li {\n a {\n position: relative;\n cursor: pointer;\n\n display: block;\n margin: 0 -14px;\n padding: 10px 14px 10px 24px;\n\n color: ",";\n font-size: 14px;\n text-decoration: none;\n white-space: nowrap;\n\n &:hover {\n --text-color: var(--white);\n --light-text-color: var(--gray-100);\n --ui-control-color: var(--gray-050);\n --ui-control-hover-color: var(--gray-100);\n --ui-control-active-color: var(--gray-100);\n background-color: #606d7b;\n color: #fff;\n }\n\n &.sel {\n &:before {\n content: 'check';\n position: absolute;\n left: 7px;\n top: 11px;\n\n float: left;\n\n font-family: Craft;\n color: ",";\n }\n }\n }\n }\n }\n"],["\n position: absolute;\n left: 0;\n top: 100%;\n z-index: 100;\n\n padding: 0 14px;\n\n background: white;\n box-shadow:\n 0 0 0 1px rgba(31, 41, 51, 0.1),\n 0 5px 20px rgba(31, 41, 51, 0.25);\n\n border-radius: ",";\n\n overflow: auto;\n user-select: none;\n\n ul {\n li {\n a {\n position: relative;\n cursor: pointer;\n\n display: block;\n margin: 0 -14px;\n padding: 10px 14px 10px 24px;\n\n color: ",";\n font-size: 14px;\n text-decoration: none;\n white-space: nowrap;\n\n &:hover {\n --text-color: var(--white);\n --light-text-color: var(--gray-100);\n --ui-control-color: var(--gray-050);\n --ui-control-hover-color: var(--gray-100);\n --ui-control-active-color: var(--gray-100);\n background-color: #606d7b;\n color: #fff;\n }\n\n &.sel {\n &:before {\n content: 'check';\n position: absolute;\n left: 7px;\n top: 11px;\n\n float: left;\n\n font-family: Craft;\n color: ",";\n }\n }\n }\n }\n }\n"])),d.borderRadius.lg,d.colors.gray700,d.colors.gray400)},88161:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GridSites=void 0;var l=o(n(14041)),u=i(n(84350)),d=n(63938),c=i(n(91797)),s=n(771),f=n(65727);t.GridSites=function(){var e=(0,l.useState)(!1),t=e[0],n=e[1],r=(0,d.useSiteContext)(),a=r.current,o=r.list,i=r.change,p=u.default.metadata.craft;return u.default.sites.enabled?p.is5||o.length<=1?null:l.default.createElement("div",{style:{gridArea:"sites"}},l.default.createElement(f.ButtonWrapper,null,l.default.createElement(s.Button,{className:"btn menubtn","data-icon":"world",onClick:function(){return n(!t)}},a.name),l.default.createElement(f.PopupMenu,{style:{top:"100%",display:t?"block":"none"}},l.default.createElement("ul",{className:"padded"},o.map((function(e){return l.default.createElement("li",{key:e.id},l.default.createElement("a",{className:(0,c.default)("menu-item",a.handle===e.handle&&"sel"),onClick:function(t){i(e.handle),n(!1),t.preventDefault(),t.stopPropagation()}},l.default.createElement("span",{className:"menu-item-label"},e.name)))})))))):null}},39313:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadingWrapper=t.ContentContainer=t.GroupsButton=t.ArchivedAndGroupWrapper=t.GroupTitle=t.GroupWrap=t.Cards=t.CardWrapper=t.Wrapper=void 0;var o,i,l,u,d,c,s,f,p,m=n(82919),v=a(n(10530));t.Wrapper=v.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),m.spacings.lg),t.CardWrapper=v.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),m.spacings.lg),t.Cards=v.default.ul(l||(l=r(["\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: ",";\n"],["\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: ",";\n"])),m.spacings.lg),t.GroupWrap=v.default.div(u||(u=r(["\n hr {\n margin: 10px -25px;\n }\n"],["\n hr {\n margin: 10px -25px;\n }\n"]))),t.GroupTitle=v.default.h2(d||(d=r(["\n margin-bottom: 10px;\n"],["\n margin-bottom: 10px;\n"]))),t.ArchivedAndGroupWrapper=v.default.div(c||(c=r(["\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n\n .edit-groups {\n justify-content: flex-end;\n margin-left: auto;\n }\n"],["\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n\n .edit-groups {\n justify-content: flex-end;\n margin-left: auto;\n }\n"]))),t.GroupsButton=v.default.button(s||(s=r(["\n display: flex;\n align-items: center;\n gap: ",";\n\n &:hover {\n color: var(--link-color);\n\n svg {\n path:last-of-type {\n stroke: var(--link-color);\n }\n }\n }\n"],["\n display: flex;\n align-items: center;\n gap: ",";\n\n &:hover {\n color: var(--link-color);\n\n svg {\n path:last-of-type {\n stroke: var(--link-color);\n }\n }\n }\n"])),m.spacings.xs),t.ContentContainer=v.default.div(f||(f=r(["\n width: 100%;\n max-width: 100%;\n"],["\n width: 100%;\n max-width: 100%;\n"]))),t.LoadingWrapper=v.default.div(p||(p=r(["\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: ",";\n"],["\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: ",";\n"])),m.spacings.lg)},72903:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormGrid=void 0;var l=o(n(14041)),u=o(n(84350)),d=n(60653),c=i(n(91797)),s=i(n(40921)),f=i(n(94915)),p=i(n(47764)),m=i(n(23571)),v=n(48733),h=n(20742),g=n(43664),b=n(74248),y=n(56066),_=n(58982),x=n(39313);t.FormGrid=function(){var e,t=(0,d.useFetchFormGroups)(),n=t.data,r=t.isFetching,a=(0,v.useEditGroupModal)(),o=(null==n?void 0:n.forms.length)>0,i=null===(e=null==n?void 0:n.formGroups)||void 0===e?void 0:e.groups.some((function(e){return e.forms.length>0})),w=!r&&!o&&!i,E=u.default.editions.is(u.Edition.Express),O=u.default.editions.isAtLeast(u.Edition.Pro),P=(0,l.useRef)(null),j=(0,l.useRef)(null),k=(0,l.useState)(!1),M=k[0],C=k[1],S=function(){var e=j.current.toArray();p.default.post("/api/forms/sort",{orderedFormIds:e}),C(!1)};return(0,l.useEffect)((function(){document.title=(0,s.default)("Forms")}),[]),(0,l.useEffect)((function(){P.current&&(j.current=new m.default(P.current,{animation:150,onEnd:S,handle:".handle",onStart:function(){C(!0)}}))}),[n]),l.default.createElement(x.ContentContainer,null,l.default.createElement("div",{id:"content",className:"content-pane"},l.default.createElement(h.Notices,null),l.default.createElement(x.Wrapper,null,w&&l.default.createElement(_.GridEmpty,null),!w&&l.default.createElement(x.CardWrapper,null,O&&(null==n?void 0:n.formGroups)&&n.formGroups.groups.map((function(e,t){return e.forms.length?l.default.createElement(x.GroupWrap,{key:e.uid},0!==t&&l.default.createElement("hr",null),l.default.createElement(x.GroupTitle,null,e.label),l.default.createElement(x.Cards,null,e.forms.map((function(e){return l.default.createElement(b.Card,{isExpressEdition:E,key:e.id,form:e})})))):null})),!w&&o&&l.default.createElement(x.GroupWrap,null,i&&l.default.createElement("hr",null),i&&l.default.createElement(x.GroupTitle,null,(0,s.default)("Other")),l.default.createElement(x.Cards,{ref:P,className:(0,c.default)(M&&"dragging")},(null==n?void 0:n.forms)&&n.forms.map((function(e){return l.default.createElement(b.Card,{isDraggingInProgress:M,isExpressEdition:E,key:e.id,form:e})})))),!(null==n?void 0:n.forms)&&r&&l.default.createElement(x.Cards,null,l.default.createElement(y.CardLoading,null),l.default.createElement(y.CardLoading,null),l.default.createElement(y.CardLoading,null))),l.default.createElement(x.ArchivedAndGroupWrapper,null,!E&&(null==n?void 0:n.archivedForms)&&l.default.createElement(g.Archived,{data:n.archivedForms}),!w&&O&&l.default.createElement(x.GroupsButton,{className:"edit-groups",onClick:a},l.default.createElement(f.default,null),(0,s.default)("Manage Form Groups"))))))}},62469:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Title=t.Header=t.Wrapper=void 0;var o,i,l,u=n(82919),d=a(n(10530));t.Wrapper=d.default.div(o||(o=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),u.spacings.lg),t.Header=d.default.header(i||(i=r(["\n display: grid;\n grid-template-areas: 'title sites button';\n grid-template-columns: min-content 1fr auto;\n justify-content: space-between;\n align-items: center;\n gap: ",";\n"],["\n display: grid;\n grid-template-areas: 'title sites button';\n grid-template-columns: min-content 1fr auto;\n justify-content: space-between;\n align-items: center;\n gap: ",";\n"])),u.spacings.md),t.Title=d.default.h1(l||(l=r(["\n grid-area: title;\n\n padding: "," 0;\n margin: 0;\n\n font-size: 18px;\n font-weight: 700;\n line-height: 34px;\n"],["\n grid-area: title;\n\n padding: "," 0;\n margin: 0;\n\n font-size: 18px;\n font-weight: 700;\n line-height: 34px;\n"])),u.spacings.sm)},45241:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ListTableRowLoading=void 0;var a=r(n(14041)),o=r(n(47165)),i=n(92657);t.ListTableRowLoading=function(){var e="#dfdfdf",t=Array.from({length:10},(function(){return{value:(e=0,t=Math.random()>.9?8:4,Math.floor(Math.random()*(t-e+1))+e)};var e,t}));return a.default.createElement("tr",null,a.default.createElement("td",null,a.default.createElement(o.default,{height:20,width:150})),a.default.createElement("td",null,a.default.createElement(o.default,{height:20,width:80})),a.default.createElement("td",null,a.default.createElement(o.default,{height:20,width:300})),a.default.createElement("td",null,a.default.createElement(i.ResponsiveContainer,{width:200,height:20},a.default.createElement(i.AreaChart,{data:t,margin:{top:0,bottom:0,left:0,right:0}},a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"colorGradient",x1:0,y1:0,x2:0,y2:1},a.default.createElement("stop",{offset:"5%",stopColor:e,stopOpacity:.4}),a.default.createElement("stop",{offset:"95%",stopColor:e,stopOpacity:.3}))),a.default.createElement(i.Area,{type:"monotone",dataKey:"value",stroke:e,strokeWidth:1,strokeOpacity:1,fillOpacity:.7,fill:"url(#colorGradient)",isAnimationActive:!1})))),a.default.createElement("td",null,a.default.createElement(o.default,{height:20,width:40,highlightColor:"#5372b64f"})),a.default.createElement("td",null,a.default.createElement(o.default,{height:20,width:20,highlightColor:"#5372b64f"})),a.default.createElement("td",null,a.default.createElement(o.default,{height:20,width:61})))}},72135:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&o.default.createElement("small",null,"(",(0,u.default)("{count} pages",{count:e.pages.length}),")"))))})))):null}},63989:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a0&&a.default.createElement("ul",{className:"errors"},p.map((function(e,t){return a.default.createElement("li",{key:t},e)}))),!(null==p?void 0:p.length)&&a.default.createElement(l.DoneWrapper,{style:v},a.default.createElement(l.Done,null,a.default.createElement("i",{className:"fa-sharp fa-solid fa-check"}),a.default.createElement("span",null,n))))}},12952:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Sidebar=void 0;var a=r(n(14041)),o=n(38955),i=n(68256),l=r(n(91797)),u=r(n(40921)),d=n(35607),c=n(7245),s=r(n(47764)),f=["forms","express-forms"];t.Sidebar=function(){var e=(0,o.useLocation)().pathname,t=(0,c.useQuery)(["import-export","navigation"],{queryFn:function(){return s.default.get("/api/import-export/navigation").then((function(e){return e.data}))}}),n=t.data;return t.isFetching&&!n?a.default.createElement(i.SidebarContainer,null,a.default.createElement("nav",null)):a.default.createElement(i.SidebarContainer,null,a.default.createElement("nav",null,a.default.createElement("ul",null,n.map((function(t,n){if(null==t?void 0:t.heading)return a.default.createElement("li",{className:"heading",key:n},a.default.createElement("span",null,(0,u.default)(t.heading)));var r=t.url.replace(/^freeform/,""),i=f.some((function(e){return r.includes(e)})),c=(0,u.default)(t.title);return a.default.createElement("li",{key:n},i&&a.default.createElement(o.NavLink,{to:r,className:(0,l.default)(r===e&&"sel")},c),!i&&a.default.createElement("a",{href:(0,d.generateUrl)(r)},c))})))))}},32804:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]0&&l.default.createElement("table",{className:"data fullwidth"},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,(0,v.default)("Name")),l.default.createElement("th",null,(0,v.default)("Description")),l.default.createElement("th",null))),l.default.createElement("tbody",null,t.map((function(e){return l.default.createElement("tr",{key:e.id},l.default.createElement("th",null,l.default.createElement(u.Link,{to:"".concat(e.id)},e.name)),l.default.createElement("td",null,e.description),l.default.createElement("td",{className:"thin"},l.default.createElement("a",{className:"delete icon",title:(0,v.default)("Delete"),onClick:function(){confirm((0,v.default)("Are you sure you want to delete this?"))&&r.mutate(e.id)}})))})))),0===t.length&&l.default.createElement("div",{style:{padding:"100px 0 100px"}},l.default.createElement(c.EmptyBlock,{title:(0,v.default)("No groups exist yet"),subtitle:(0,v.default)('Click on the "New Group" button to set up your first Limited User permission group.')}))),!a&&l.default.createElement(c.EmptyBlock,{lite:!0,title:(0,v.default)("Upgrade to the Freeform Pro edition to get access to the Limited Users feature")})))))}},83436:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ChartLoadingSkeleton=void 0;var a=r(n(14041)),o=n(83750),i=n(73979),l=r(n(40921)),u=n(92657),d=n(64492),c=(0,i.range)(0,60).map((function(e){return{name:"",y:e>30?(t=0,n=Math.random()>.5?4:1,Math.floor(Math.random()*(n-t+1))+t):0};var t,n}));t.ChartLoadingSkeleton=function(){var e="#cccccc";return a.default.createElement(d.ChartWrapper,{$color:e},a.default.createElement(d.Title,null,a.default.createElement(o.LoadingText,{loading:!0,instant:!0,xl:!0},(0,l.default)("Loading"))),a.default.createElement(u.ResponsiveContainer,{width:"100%",height:80},a.default.createElement(u.AreaChart,{data:c,margin:{top:30,left:0,right:0,bottom:3}},a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"color",x1:0,y1:0,x2:0,y2:1},a.default.createElement("stop",{offset:"5%",stopColor:e,stopOpacity:.4}),a.default.createElement("stop",{offset:"95%",stopColor:e,stopOpacity:.1}))),a.default.createElement(u.Area,{type:"monotone",dataKey:"y",stroke:e,strokeWidth:1,strokeOpacity:1,fillOpacity:1,isAnimationActive:!1,fill:"url(#color)"}))),a.default.createElement(d.ExtraColor,{$color:e}))}},64492:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TooltipWrapper=t.ExtraColor=t.Title=t.ChartWrapper=void 0;var o,i,l,u,d=n(82919),c=a(n(10530));t.ChartWrapper=c.default.div(o||(o=r(["\n position: relative;\n"],["\n position: relative;\n"]))),t.Title=c.default.h1(i||(i=r(["\n position: absolute;\n top: ",";\n left: ",";\n\n font-size: 40px;\n user-select: none;\n pointer-events: none;\n"],["\n position: absolute;\n top: ",";\n left: ",";\n\n font-size: 40px;\n user-select: none;\n pointer-events: none;\n"])),d.spacings.md,d.spacings.xl),t.ExtraColor=c.default.div(l||(l=r(["\n margin-top: -3px;\n height: 20px;\n background: linear-gradient(\n to bottom,\n ","\n );\n"],["\n margin-top: -3px;\n height: 20px;\n background: linear-gradient(\n to bottom,\n ","\n );\n"])),(function(e){var t=e.$color;return"".concat(t,"1A 30%, transparent 100%")})),t.TooltipWrapper=c.default.div(u||(u=r(["\n padding: "," ",";\n background-color: white;\n border: 2px solid ",";\n"],["\n padding: "," ",";\n background-color: white;\n border: 2px solid ",";\n"])),d.spacings.sm,d.spacings.md,(function(e){return e.$color}))},1114:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Chart=void 0;var a=r(n(14041)),o=n(92657),i=n(53197),l=n(64492);t.Chart=function(){var e=(0,i.useQuerySurveyResults)(),t=e.data,n=e.isFetching,r=(0,i.useQuerySurveyChart)(),u=r.data;if(r.isFetching||n)return null;var d=t.form,c=d.id,s=d.name,f=d.color,p=2*Math.max.apply(Math,u.map((function(e){return e.y})));return a.default.createElement(l.ChartWrapper,{$color:f},a.default.createElement(l.Title,null,s),a.default.createElement(o.ResponsiveContainer,{width:"100%",height:80},a.default.createElement(o.AreaChart,{data:u,margin:{top:0,left:0,right:0,bottom:3}},a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"color".concat(c),x1:0,y1:0,x2:0,y2:1},a.default.createElement("stop",{offset:"5%",stopColor:f,stopOpacity:.4}),a.default.createElement("stop",{offset:"95%",stopColor:f,stopOpacity:.1}))),a.default.createElement(o.Area,{type:"monotone",dataKey:"y",stroke:f,strokeWidth:1,strokeOpacity:1,fillOpacity:1,isAnimationActive:!1,fill:"url(#color".concat(c,")")}),p>0&&a.default.createElement(o.YAxis,{domain:[0,p],hide:!0}),a.default.createElement(o.Tooltip,{content:a.default.createElement((function(e){var t=e.active,n=e.payload;if(t&&n&&n.length){var r=n[0].payload,o=r.name,i=r.y;return a.default.createElement(l.TooltipWrapper,{$color:f},o,": ",a.default.createElement("b",null,i)," submissions")}}),null)}))),a.default.createElement(l.ExtraColor,{$color:f}))}},46316:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useSettingsMutation=void 0;var a=n(7245),o=r(n(47764)),i=function(e){var t={fieldId:e.fieldId,chartType:e.chartType};return o.default.post("/api/surveys/preferences",t)};t.useSettingsMutation=function(){return(0,a.useMutation)(i)}},79860:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownItem=t.DropdownWrapper=t.SettingsButton=t.Settings=void 0;var o,i,l,u,d=a(n(10530));t.Settings=d.default.div(o||(o=r(["\n grid-area: settings;\n\n position: relative;\n"],["\n grid-area: settings;\n\n position: relative;\n"]))),t.SettingsButton=d.default.button(i||(i=r(["\n display: block;\n\n width: 100%;\n padding: 5px 12px;\n\n border-radius: 4px;\n color: #ced6df;\n\n transition: all 0.2s ease-out;\n\n &:hover,\n &.open {\n background-color: #c8cfd5;\n color: #ffffff;\n }\n\n &.open {\n border-radius: 4px 4px 0 0;\n }\n\n @keyframes rotator {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n\n &.loading svg {\n animation-name: rotator;\n animation-duration: 3s;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n }\n"],["\n display: block;\n\n width: 100%;\n padding: 5px 12px;\n\n border-radius: 4px;\n color: #ced6df;\n\n transition: all 0.2s ease-out;\n\n &:hover,\n &.open {\n background-color: #c8cfd5;\n color: #ffffff;\n }\n\n &.open {\n border-radius: 4px 4px 0 0;\n }\n\n @keyframes rotator {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n\n &.loading svg {\n animation-name: rotator;\n animation-duration: 3s;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n }\n"]))),t.DropdownWrapper=d.default.div(l||(l=r(["\n position: absolute;\n left: 0;\n top: 26px;\n z-index: 2;\n\n width: 150px;\n overflow: hidden;\n\n border-radius: 0 5px 5px 5px;\n border: 1px solid #e0e2e6;\n background: #ffffff;\n\n box-shadow: rgba(17, 17, 26, 0.1) 5px 5px 8px;\n"],["\n position: absolute;\n left: 0;\n top: 26px;\n z-index: 2;\n\n width: 150px;\n overflow: hidden;\n\n border-radius: 0 5px 5px 5px;\n border: 1px solid #e0e2e6;\n background: #ffffff;\n\n box-shadow: rgba(17, 17, 26, 0.1) 5px 5px 8px;\n"]))),t.DropdownItem=d.default.a(u||(u=r(["\n display: block;\n padding: 3px 10px;\n\n background-color: #ffffff;\n color: #000000 !important;\n font-size: 12px;\n\n transition: background-color 0.2s ease-out;\n\n &.selected {\n background-color: #f3f7fd;\n }\n\n &:hover {\n background-color: #d8dce1;\n text-decoration: none;\n }\n"],["\n display: block;\n padding: 3px 10px;\n\n background-color: #ffffff;\n color: #000000 !important;\n font-size: 12px;\n\n transition: background-color 0.2s ease-out;\n\n &.selected {\n background-color: #f3f7fd;\n }\n\n &:hover {\n background-color: #d8dce1;\n text-decoration: none;\n }\n"])))},23970:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsBlock=void 0;var a=r(n(14041)),o=r(n(91797)),i=r(n(86093)),l=n(95020),u=n(46316),d=n(79860),c=Object.keys(l.Chart);t.SettingsBlock=function(e){var t=e.fieldId,n=e.selectedChartType,r=e.isShown,l=e.toggle,s=e.changeType,f=(0,u.useSettingsMutation)(),p=f.mutate,m=f.isLoading;return a.default.createElement(d.SettingsButton,{className:(0,o.default)(m&&"loading",r&&"open"),onClick:l},a.default.createElement(i.default,null),r&&a.default.createElement(d.DropdownWrapper,null,c.map((function(e){return a.default.createElement(d.DropdownItem,{key:e,className:n===e&&"selected",onClick:function(){s(e),p({fieldId:t,chartType:e})}},e)}))))}},54509:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HiddenBlock=t.Numbers=t.Extras=t.SubHeading=t.Heading=t.Label=t.Bulletin=t.Wrapper=t.Icon=void 0;var o,i,l,u,d,c,s,f,p,m=a(n(10530)),v=n(79860);!function(e){e[e.CheckboxGroup=0]="CheckboxGroup",e[e.RadioGroup=1]="RadioGroup",e[e.Select=2]="Select",e[e.MultiSelect=3]="MultiSelect",e[e.Text=4]="Text",e[e.Rating=5]="Rating"}(o||(t.Icon=o={})),t.Wrapper=m.default.li(i||(i=r(["\n display: grid;\n grid-template-columns: 42px auto;\n grid-template-rows: auto auto;\n grid-template-areas:\n 'bulletin label'\n 'settings numbers';\n gap: 10px;\n\n &:not(:last-child) {\n margin-bottom: 42px;\n }\n"],["\n display: grid;\n grid-template-columns: 42px auto;\n grid-template-rows: auto auto;\n grid-template-areas:\n 'bulletin label'\n 'settings numbers';\n gap: 10px;\n\n &:not(:last-child) {\n margin-bottom: 42px;\n }\n"]))),t.Bulletin=m.default.div(l||(l=r(["\n grid-area: bulletin;\n\n padding-top: 5px;\n\n background-color: #f3f7fd;\n border-radius: 4px;\n\n color: #df2733;\n text-align: center;\n font-size: 24px;\n font-weight: bold;\n\n &:hover {\n transition: background-color 0.2s ease-out;\n background-color: #e0e4e9;\n }\n\n span {\n white-space: nowrap;\n }\n\n svg {\n display: block;\n\n margin: 3px auto;\n\n width: 28px;\n }\n"],["\n grid-area: bulletin;\n\n padding-top: 5px;\n\n background-color: #f3f7fd;\n border-radius: 4px;\n\n color: #df2733;\n text-align: center;\n font-size: 24px;\n font-weight: bold;\n\n &:hover {\n transition: background-color 0.2s ease-out;\n background-color: #e0e4e9;\n }\n\n span {\n white-space: nowrap;\n }\n\n svg {\n display: block;\n\n margin: 3px auto;\n\n width: 28px;\n }\n"]))),t.Label=m.default.div(u||(u=r(["\n grid-area: label;\n"],["\n grid-area: label;\n"]))),t.Heading=m.default.div(d||(d=r(["\n display: flex;\n align-items: center;\n gap: 10px;\n\n font-size: 24px;\n font-weight: bold;\n\n margin: 5px 0 8px;\n\n svg {\n width: 30px;\n height: 30px;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 10px;\n\n font-size: 24px;\n font-weight: bold;\n\n margin: 5px 0 8px;\n\n svg {\n width: 30px;\n height: 30px;\n }\n"]))),t.SubHeading=m.default.div(c||(c=r(["\n position: relative;\n\n font-size: 12px;\n color: #ccc;\n"],["\n position: relative;\n\n font-size: 12px;\n color: #ccc;\n"]))),t.Extras=m.default.div(s||(s=r(["\n position: absolute;\n right: 0;\n top: 0;\n"],["\n position: absolute;\n right: 0;\n top: 0;\n"]))),t.Numbers=m.default.div(f||(f=r(["\n grid-area: numbers;\n"],["\n grid-area: numbers;\n"]))),t.HiddenBlock=m.default.li(p||(p=r(["\n position: relative;\n\n padding: 3px 0;\n margin-bottom: 42px;\n\n background: #f3f7fd;\n text-align: center;\n font-size: 12px;\n\n "," {\n position: absolute;\n left: 0;\n top: 0;\n\n width: 40px;\n }\n"],["\n position: relative;\n\n padding: 3px 0;\n margin-bottom: 42px;\n\n background: #f3f7fd;\n text-align: center;\n font-size: 12px;\n\n "," {\n position: absolute;\n left: 0;\n top: 0;\n\n width: 40px;\n }\n"])),v.SettingsButton)},20227:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Block=void 0;var l=o(n(14041)),u=n(91992),d=i(n(40921)),c=n(53197),s=n(95020),f=n(77622),p=n(23970),m=n(79860),v=n(54509),h=o(n(46272)),g=[s.Chart.Hidden,s.Chart.Text];t.Block=function(e){var t=e.field,n=e.responses,r=e.breakdown,a=e.skipped,o=e.bulletin,i=e.average,b=e.max,y=(0,u.useFieldType)(t.class),_=(0,l.useState)(s.Chart.Horizontal),x=_[0],w=_[1],E=(0,l.useState)(!1),O=E[0],P=E[1],j=(0,c.useQuerySurveyPreferences)().data,k=(0,l.useRef)();if((0,l.useEffect)((function(){var e,n;if(j){var r=null===(e=j.fieldSettings.find((function(e){return e.id===t.id})))||void 0===e?void 0:e.chartType;void 0===r&&(r=(null===(n=j.chartDefaults)||void 0===n?void 0:n[t.class])||s.Chart.Horizontal),w(r)}else w(s.Chart.Horizontal)}),[j]),(0,l.useEffect)((function(){g.includes(x)}),[k,x]),!j)return null;var M=j.permissions,C=h[x];return x===s.Chart.Hidden?l.default.createElement(v.HiddenBlock,null,M.reports&&l.default.createElement(p.SettingsBlock,{fieldId:t.id,selectedChartType:x,isShown:O,toggle:function(){return P(!O)},changeType:function(e){return w(e)}}),"--"," ",l.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,d.default)("Question {index} Hidden",{index:o})}})," ","--"):l.default.createElement(v.Wrapper,{ref:k},l.default.createElement(v.Bulletin,null,l.default.createElement("span",null,o)),l.default.createElement(v.Label,null,l.default.createElement(v.Heading,null,y&&l.default.createElement("span",{dangerouslySetInnerHTML:{__html:y.icon}}),t.label),l.default.createElement(v.SubHeading,null,(0,d.default)("{answered} answered, {skipped} skipped",{answered:n-a,skipped:a}),t.multiChoice&&l.default.createElement(v.Extras,null,(0,d.default)("multiple choice"))),l.default.createElement(f.Average,{average:i,max:b})),l.default.createElement(m.Settings,null,M.reports&&l.default.createElement(p.SettingsBlock,{fieldId:t.id,selectedChartType:x,isShown:O,toggle:function(){return P(!O)},changeType:function(e){return w(e)}})),l.default.createElement(v.Numbers,null,l.default.createElement(C,{breakdown:r})))}},65688:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Donut=void 0;var a=r(n(14041)),o=n(85237),i=n(62433),l=n(92657),u=Math.PI/180;t.Donut=function(e){var t=e.breakdown,n=e.pie,r=t.filter((function(e){return e.votes>0})),d=t.map((function(e){var n=e.ranking;return(0,o.generateColor)(n/t.length,i.interpolateTurbo)}));return a.default.createElement("div",{style:{width:800}},a.default.createElement(l.ResponsiveContainer,{width:"100%",height:400},a.default.createElement(l.PieChart,null,a.default.createElement(l.Pie,{data:r,dataKey:"votes",nameKey:"label",cx:"50%",cy:"50%",outerRadius:180,innerRadius:n?0:100,fill:"#82ca9d",labelLine:!0,label:function(e){var t=e.cx,n=e.cy,o=e.midAngle,i=e.outerRadius,l=e.percent,d=e.index,c=i+30,s=t+c*Math.cos(-o*u),f=n+c*Math.sin(-o*u);return a.default.createElement("text",{key:d,x:s,y:f,fill:"black",textAnchor:s>t?"start":"end",dominantBaseline:"central"},a.default.createElement("tspan",{style:{fontWeight:"bold"}},r[d].label),a.default.createElement("tspan",{style:{fontSize:"12px",fill:"#999"}}," ","(","".concat((100*l).toFixed(0),"%"),")"))}},r.map((function(e,t){return a.default.createElement(l.Cell,{key:"cell-".concat(t),fill:d[t]})}))))))}},99374:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Hidden=void 0;var a=r(n(14041));t.Hidden=function(){return a.default.createElement("div",null,"hidden")}},12729:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Bar=t.Votes=t.Percentage=t.Label=t.Answer=void 0;var o,i,l,u,d,c=a(n(10530));t.Answer=c.default.div(o||(o=r(["\n display: grid;\n gap: 2px;\n grid-template-columns: auto 100px 50px;\n grid-template-rows: auto auto;\n grid-template-areas:\n 'label votes percentage'\n 'graph graph graph';\n\n &:not(:last-child) {\n margin-bottom: 10px;\n }\n"],["\n display: grid;\n gap: 2px;\n grid-template-columns: auto 100px 50px;\n grid-template-rows: auto auto;\n grid-template-areas:\n 'label votes percentage'\n 'graph graph graph';\n\n &:not(:last-child) {\n margin-bottom: 10px;\n }\n"]))),t.Label=c.default.div(i||(i=r(["\n grid-area: label;\n\n font-weight: bold;\n"],["\n grid-area: label;\n\n font-weight: bold;\n"]))),t.Percentage=c.default.div(l||(l=r(["\n grid-area: percentage;\n\n font-size: 14px;\n font-weight: bold;\n text-align: right;\n"],["\n grid-area: percentage;\n\n font-size: 14px;\n font-weight: bold;\n text-align: right;\n"]))),t.Votes=c.default.div(u||(u=r(["\n grid-area: votes;\n\n color: #c2c5c7;\n font-size: 12px;\n text-align: right;\n"],["\n grid-area: votes;\n\n color: #c2c5c7;\n font-size: 12px;\n text-align: right;\n"]))),t.Bar=c.default.div(d||(d=r(["\n grid-area: graph;\n\n position: relative;\n overflow: hidden;\n\n height: 20px;\n\n border-radius: 3px;\n background: #f3f7fd;\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n\n display: block;\n\n width: ","%;\n height: 100%;\n\n background: ",";\n }\n"],["\n grid-area: graph;\n\n position: relative;\n overflow: hidden;\n\n height: 20px;\n\n border-radius: 3px;\n background: #f3f7fd;\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n\n display: block;\n\n width: ","%;\n height: 100%;\n\n background: ",";\n }\n"])),(function(e){return e.percentage}),(function(e){return 1===e.ranking?"var(--highlight)":"#33414d"}))},59759:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Horizontal=void 0;var a=r(n(14041)),o=r(n(40921)),i=n(12729);t.Horizontal=function(e){var t=e.breakdown;return a.default.createElement(a.default.Fragment,null,t.map((function(e){var t=e.label,n=e.value,r=e.votes,l=e.percentage,u=e.ranking;return a.default.createElement(i.Answer,{key:n.toString()},a.default.createElement(i.Label,null,t),a.default.createElement(i.Votes,null,r," ",(0,o.default)("resp.")),a.default.createElement(i.Percentage,null,Math.round(l),"%"),a.default.createElement(i.Bar,{percentage:l,ranking:u}))})))}},46272:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Vertical=t.Text=t.Pie=t.Horizontal=t.Hidden=t.Donut=void 0;var r=n(65688);Object.defineProperty(t,"Donut",{enumerable:!0,get:function(){return r.Donut}});var a=n(99374);Object.defineProperty(t,"Hidden",{enumerable:!0,get:function(){return a.Hidden}});var o=n(59759);Object.defineProperty(t,"Horizontal",{enumerable:!0,get:function(){return o.Horizontal}});var i=n(29314);Object.defineProperty(t,"Pie",{enumerable:!0,get:function(){return i.Pie}});var l=n(39825);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return l.Text}});var u=n(16399);Object.defineProperty(t,"Vertical",{enumerable:!0,get:function(){return u.Vertical}})},29314:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Pie=void 0;var a=r(n(14041)),o=n(65688);t.Pie=function(e){var t=e.breakdown;return a.default.createElement(o.Donut,{breakdown:t,pie:!0})}},40239:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Item=t.Wrapper=void 0;var o,i,l=a(n(10530));t.Wrapper=l.default.div(o||(o=r([""],[""]))),t.Item=l.default.div(i||(i=r(["\n padding: 10px 15px;\n\n &:not(:last-child) {\n border-bottom: 1px solid #eff3f6;\n }\n"],["\n padding: 10px 15px;\n\n &:not(:last-child) {\n border-bottom: 1px solid #eff3f6;\n }\n"])))},39825:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Text=void 0;var a=r(n(14041)),o=n(40239);t.Text=function(e){var t=e.breakdown;return a.default.createElement(o.Wrapper,null,t.map((function(e){return a.default.createElement(o.Item,{key:e.value.toString()},e.label,e.votes>1&&" (".concat(e.votes,")"))})))}},76793:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Bar=t.Votes=t.Percentage=t.Label=t.Answer=t.Wrapper=t.Container=void 0;var o,i,l,u,d,c,s,f=n(49974),p=a(n(10530));t.Container=p.default.div(o||(o=r(["\n width: 900px;\n overflow-x: auto;\n\n ",";\n"],["\n width: 900px;\n overflow-x: auto;\n\n ",";\n"])),f.scrollBar),t.Wrapper=p.default.div(i||(i=r(["\n display: grid;\n gap: 10px;\n grid-auto-columns: minmax(80px, 1fr);\n grid-auto-flow: column;\n"],["\n display: grid;\n gap: 10px;\n grid-auto-columns: minmax(80px, 1fr);\n grid-auto-flow: column;\n"]))),t.Answer=p.default.div(l||(l=r(["\n display: flex;\n flex-direction: column;\n\n text-align: center;\n"],["\n display: flex;\n flex-direction: column;\n\n text-align: center;\n"]))),t.Label=p.default.div(u||(u=r(["\n padding: 10px;\n\n font-size: 16px;\n font-weight: bold;\n"],["\n padding: 10px;\n\n font-size: 16px;\n font-weight: bold;\n"]))),t.Percentage=p.default.div(d||(d=r(["\n flex-basis: 40px;\n padding: 10px;\n\n font-weight: bold;\n font-size: 16px;\n\n box-sizing: border-box;\n"],["\n flex-basis: 40px;\n padding: 10px;\n\n font-weight: bold;\n font-size: 16px;\n\n box-sizing: border-box;\n"]))),t.Votes=p.default.div(c||(c=r(["\n flex-basis: 30px;\n\n color: #c2c5c7;\n\n font-size: 12px;\n line-height: 12px;\n\n span {\n display: block;\n }\n"],["\n flex-basis: 30px;\n\n color: #c2c5c7;\n\n font-size: 12px;\n line-height: 12px;\n\n span {\n display: block;\n }\n"]))),t.Bar=p.default.div(s||(s=r(["\n position: relative;\n overflow: hidden;\n\n flex-basis: 250px;\n\n border-radius: 3px;\n background: #f3f7fd;\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n\n display: block;\n\n width: 100%;\n height: ","%;\n\n background: ",";\n }\n"],["\n position: relative;\n overflow: hidden;\n\n flex-basis: 250px;\n\n border-radius: 3px;\n background: #f3f7fd;\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n\n display: block;\n\n width: 100%;\n height: ","%;\n\n background: ",";\n }\n"])),(function(e){return e.percentage}),(function(e){return 1===e.ranking?"var(--highlight)":"#33414d"}))},16399:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Vertical=void 0;var a=r(n(14041)),o=r(n(40921)),i=n(76793);t.Vertical=function(e){var t=e.breakdown;return a.default.createElement(i.Container,null,a.default.createElement(i.Wrapper,{count:t.length},t.map((function(e){var t=e.label,n=e.value,r=e.votes,l=e.percentage,u=e.ranking;return a.default.createElement(i.Answer,{key:n.toString()},a.default.createElement(i.Percentage,null,Math.round(l),"%"),a.default.createElement(i.Votes,null,r," ",(0,o.default)("resp.")),a.default.createElement(i.Bar,{percentage:l,ranking:u}),a.default.createElement(i.Label,null,t))}))))}},98136:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Max=t.Avg=t.Wrapper=void 0;var o,i,l,u=a(n(10530));t.Wrapper=u.default.div(o||(o=r(["\n margin-top: 10px;\n\n color: #cf4041;\n font-size: 16px;\n"],["\n margin-top: 10px;\n\n color: #cf4041;\n font-size: 16px;\n"]))),t.Avg=u.default.span(i||(i=r(["\n font-weight: bold;\n"],["\n font-weight: bold;\n"]))),t.Max=u.default.span(l||(l=r(["\n color: #a4a6aa;\n"],["\n color: #a4a6aa;\n"])))},77622:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Average=void 0;var a=r(n(14041)),o=r(n(40921)),i=n(98136);t.Average=function(e){var t=e.average,n=e.max;return null===t||null===n?null:a.default.createElement(i.Wrapper,null,(0,o.default)("Average"),": ",a.default.createElement(i.Avg,null,t)," ",a.default.createElement(i.Max,null,"/ ",n))}},11240:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Heading=t.Wrapper=void 0;var o,i,l=n(82919),u=a(n(10530));t.Wrapper=u.default.ul(o||(o=r(["\n display: block;\n\n padding: ",";\n"],["\n display: block;\n\n padding: ",";\n"])),l.spacings.xl),t.Heading=u.default.div(i||(i=r(["\n position: relative;\n\n display: block;\n padding: 0 0 30px;\n\n color: #3f4d5a;\n font-size: 1.5rem;\n font-weight: normal;\n\n small {\n color: #bbbdbe;\n padding-left: ",";\n }\n"],["\n position: relative;\n\n display: block;\n padding: 0 0 30px;\n\n color: #3f4d5a;\n font-size: 1.5rem;\n font-weight: normal;\n\n small {\n color: #bbbdbe;\n padding-left: ",";\n }\n"])),l.spacings.md)},47782:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.clientWidth)};return window.addEventListener("resize",t),t(),function(){return window.removeEventListener("resize",t)}}),[e]),[e,n]}},2468:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useClickOutside=void 0;var r=n(14041),a=n(91797);t.useClickOutside=function(e){var t=e.callback,n=e.isEnabled,o=e.refObject,i=e.excludeClassNames,l=(0,r.useRef)(),u=o||l;return(0,r.useEffect)((function(){var e=function(e){n&&(document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement||n&&u.current&&!u.current.contains(e.target)&&!(0,a.elementTreeHasClass)(e.target,i)&&"function"==typeof t&&t())};return document.addEventListener("click",e,!0),function(){document.removeEventListener("click",e,!0)}}),[u,n]),u}},60175:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useDebounce=void 0;var r=n(14041);t.useDebounce=function(e,t){void 0===t&&(t=500);var n=(0,r.useState)(e),a=n[0],o=n[1];return(0,r.useEffect)((function(){var n=setTimeout((function(){return o(e)}),t);return function(){return clearTimeout(n)}}),[e,t]),a}},74039:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useForceUpdate=void 0;var r=n(14041);t.useForceUpdate=function(){var e=(0,r.useReducer)((function(e){return e+1}),0)[1];(0,r.useEffect)((function(){setTimeout((function(){e()}),0)}),[])}},64699:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useFreeformNavigation=void 0;var r=n(14041),a=n(38955),o=n(84895),i=n(50465),l=n(48452),u=n(7245);t.useFreeformNavigation=function(){var e=(0,a.useParams)().formId,t=(0,a.useNavigate)(),n=(0,u.useQueryClient)();(0,r.useEffect)((function(){var r=document.querySelector('ul.nav-item__subnav li a[href*="/freeform/forms"]');r||(r=document.querySelector('ul.subnav li a[href*="/freeform/forms"]'));var a=function(r){return r.preventDefault(),e&&(n.invalidateQueries(o.QKForms.single(Number(e))),n.invalidateQueries(l.QKNotifications.single(Number(e))),n.invalidateQueries(i.QKIntegrations.single(Number(e)))),t("/forms"),!1};return r&&r.addEventListener("click",a),function(){r&&r.removeEventListener("click",a)}}))}},19848:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useDimensionsObserver=void 0;var r=n(14041);t.useDimensionsObserver=function(){var e=(0,r.useRef)(null),t=(0,r.useState)({height:0,width:0,x:0,y:0}),n=t[0],a=t[1],o=(0,r.useState)((function(){return new ResizeObserver((function(e){var t=e[0].target.getBoundingClientRect(),n=t.width,r=t.height,o=t.x,i=t.y;a({width:n,height:r,x:o,y:i})}))}))[0];return(0,r.useEffect)((function(){return e.current&&o.observe(e.current),function(){return o.disconnect()}}),[o]),{ref:e,dimensions:n}}},12888:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useHover=void 0;var r=n(14041);t.useHover=function(e){var t=(0,r.useState)(!1),n=t[0],a=t[1],o=function(){return a(!0)},i=function(){return a(!1)};return(0,r.useEffect)((function(){var t=e.current;if(t)return t.addEventListener("mouseenter",o),t.addEventListener("mouseleave",i),function(){t.removeEventListener("mouseenter",o),t.removeEventListener("mouseleave",i)}}),[e]),n}},36712:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a ul > li");(0,r.useEffect)((function(){return t.forEach((function(t,n){a(t,n===e)})),function(){t.forEach((function(e){a(e,!1)})),a(t[0],!0)}}),[e])}},92749:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(14041)),o=n(74507),i=n(83746),l=r(n(25873)),u=n(68479),d=n(38955),c=n(78573),s=n(34726),f=n(90965),p=n(23746),m=n(48681),v=n(31180),h=n(2397),g=n(29039),b=n(7245),y=n(86348);n(85885);var _=n(73848),x=n(88747),w=n(63700),E=n(94448),O=n(65288),P=n(94250),j=n(46336),k=n(30161),M=n(35117),C=n(67902),S=n(63938),F=r(n(1167)),T=n(76278),D=n(35607),L=r(n(23080));n(76584);var R=document.getElementById("freeform-client"),B=l.default.createRoot(R);T.debug.log("%c\n ███████╗██████╗ ███████╗███████╗███████╗ ██████╗ ██████╗ ███╗ ███╗\n ██╔════╝██╔══██╗██╔════╝██╔════╝██╔════╝██╔═══██╗██╔══██╗████╗ ████║\n █████╗ ██████╔╝█████╗ █████╗ █████╗ ██║ ██║██████╔╝██╔████╔██║\n ██╔══╝ ██╔══██╗██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║██╔══██╗██║╚██╔╝██║\n ██║ ██║ ██║███████╗███████╗██║ ╚██████╔╝██║ ██║██║ ╚═╝ ██║\n ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝\n",T.debug.colors.blue),B.render(a.default.createElement(o.DndProvider,{backend:i.HTML5Backend},a.default.createElement(d.BrowserRouter,{basename:(0,D.generateUrl)("/",!1)},a.default.createElement(b.QueryClientProvider,{client:v.queryClient},a.default.createElement(S.SiteProvider,null,a.default.createElement(p.ZIndexContextProvider,null,a.default.createElement(C.EscapeStackProvider,null,a.default.createElement(s.BreadcrumbProvider,null,a.default.createElement(u.Provider,{store:g.store},a.default.createElement(h.PortalProvider,null,a.default.createElement(m.ModalProvider,null,a.default.createElement(c.Breadcrumb,{id:"root",label:"Freeform",url:"/forms"}),a.default.createElement(F.default,null),a.default.createElement(y.ReactQueryDevtools,null),a.default.createElement(f.CpNavigation,null),a.default.createElement(d.Routes,null,a.default.createElement(d.Route,{path:"/",element:a.default.createElement(L.default,null)},a.default.createElement(d.Route,{path:"forms"},a.default.createElement(d.Route,{path:":formId/*",element:a.default.createElement(_.Form,null)}),a.default.createElement(d.Route,{index:!0,element:a.default.createElement(_.Forms,null)})),a.default.createElement(d.Route,{path:"/surveys/:handle",element:a.default.createElement(k.SurveyResults,null)}),a.default.createElement(d.Route,{path:"welcome",element:a.default.createElement(M.Welcome,null)}),a.default.createElement(d.Route,{path:"import",element:a.default.createElement(x.ImportExport,null)},a.default.createElement(d.Route,{path:"forms",element:a.default.createElement(O.ImportFreeformData,null)}),a.default.createElement(d.Route,{path:"express-forms",element:a.default.createElement(E.ImportExpressForms,null)})),a.default.createElement(d.Route,{path:"export",element:a.default.createElement(x.ImportExport,null)},a.default.createElement(d.Route,{path:"forms",element:a.default.createElement(w.ExportFreeform,null)})),a.default.createElement(d.Route,{path:"settings/limited-users"},a.default.createElement(d.Route,{path:":id",element:a.default.createElement(j.LimitedUsersDetail,null)}),a.default.createElement(d.Route,{index:!0,element:a.default.createElement(P.LimitedUsers,null)})))))))))))))))},20708:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFetchFavorites=t.QKFavorites=void 0;var a=n(7245),o=r(n(47764));t.QKFavorites={all:["field-favorites"]};t.useFetchFavorites=function(e){var n=(void 0===e?{}:e).select;return(0,a.useQuery)(t.QKFavorites.all,(function(){return o.default.get("/api/fields/favorites").then((function(e){return e.data}))}),{staleTime:1/0,select:n})}},9958:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFetchForms=t.QKForms=void 0;var a=n(7245),o=r(n(47764));t.QKForms={all:["field-forms"]};t.useFetchForms=function(e){var n=e.select;return(0,a.useQuery)(t.QKForms.all,(function(){return o.default.get("/api/fields/forms").then((function(e){return e.data}))}),{staleTime:1/0,select:n})}},91992:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a * {\n > label {\n display: block;\n padding: 6px 12px;\n margin: 0 0 5px;\n\n border: 1px solid ",";\n border-left: none;\n\n white-space: nowrap;\n text-align: center;\n color: black !important;\n cursor: pointer;\n }\n\n input {\n position: absolute;\n left: -9999px;\n top: -9999px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n visibility: hidden;\n\n &:checked ~ label {\n background: #e6e6e6;\n }\n }\n\n &:first-child {\n > label {\n border-left: 1px solid ",";\n\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n }\n }\n\n &:last-child {\n > label {\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n }\n }\n }\n }\n\n ul.opinion-scale-legends {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));\n grid-gap: 0;\n\n li {\n text-align: center;\n }\n\n li:first-child {\n text-align: left;\n }\n\n li:last-child {\n text-align: right;\n }\n }\n }\n"],["\n .opinion-scale {\n ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n .opinion-scale-scales {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));\n grid-gap: 0;\n\n > * {\n > label {\n display: block;\n padding: 6px 12px;\n margin: 0 0 5px;\n\n border: 1px solid ",";\n border-left: none;\n\n white-space: nowrap;\n text-align: center;\n color: black !important;\n cursor: pointer;\n }\n\n input {\n position: absolute;\n left: -9999px;\n top: -9999px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n visibility: hidden;\n\n &:checked ~ label {\n background: #e6e6e6;\n }\n }\n\n &:first-child {\n > label {\n border-left: 1px solid ",";\n\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n }\n }\n\n &:last-child {\n > label {\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n }\n }\n }\n }\n\n ul.opinion-scale-legends {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));\n grid-gap: 0;\n\n li {\n text-align: center;\n }\n\n li:first-child {\n text-align: left;\n }\n\n li:last-child {\n text-align: right;\n }\n }\n }\n"])),o,o,i,i,i,i);t.default=l},49974:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0}),t.errorAlert=t.labelText=t.scrollBar=void 0;var a,o,i,l=n(10530),u=n(82919),d=u.colors.gray100,c=u.colors.gray300;t.scrollBar=(0,l.css)(a||(a=r(["\n scrollbar-width: thin;\n scrollbar-color: "," ",";\n -webkit-overflow-scrolling: touch;\n\n &::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ",";\n }\n"],["\n scrollbar-width: thin;\n scrollbar-color: "," ",";\n -webkit-overflow-scrolling: touch;\n\n &::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ",";\n }\n"])),c,d,c),t.labelText=(0,l.css)(o||(o=r(["\n font-family:\n system-ui,\n BlinkMacSystemFont,\n -apple-system,\n Segoe UI,\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n Fira Sans,\n Droid Sans,\n Helvetica Neue,\n sans-serif;\n font-weight: bold;\n text-transform: uppercase;\n color: rgb(154 165 177 / 75%);\n"],["\n font-family:\n system-ui,\n BlinkMacSystemFont,\n -apple-system,\n Segoe UI,\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n Fira Sans,\n Droid Sans,\n Helvetica Neue,\n sans-serif;\n font-weight: bold;\n text-transform: uppercase;\n color: rgb(154 165 177 / 75%);\n"]))),t.errorAlert=(0,l.css)(i||(i=r(["\n span:after {\n content: 'alert';\n\n position: relative;\n top: 1px;\n\n padding-left: 5px;\n\n -webkit-font-smoothing: antialiased;\n font-feature-settings: 'liga', 'dlig';\n font-family: Craft;\n }\n"],["\n span:after {\n content: 'alert';\n\n position: relative;\n top: 1px;\n\n padding-left: 5px;\n\n -webkit-font-smoothing: antialiased;\n font-feature-settings: 'liga', 'dlig';\n font-family: Craft;\n }\n"])))},82919:function(e,t,n){var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.colors=t.beziers=t.shadows=t.borderRadius=t.spacings=t.BoxShadow=void 0;var o,i=a(n(10530));t.BoxShadow=i.default.div(o||(o=r(["\n box-shadow:\n 0 0 0 1px #cdd8e4,\n 0 2px 12px rgb(205 216 228 / 50%);\n"],["\n box-shadow:\n 0 0 0 1px #cdd8e4,\n 0 2px 12px rgb(205 216 228 / 50%);\n"]))),t.spacings={xs:"var(--xs)",sm:"var(--s)",md:"var(--m)",lg:"var(--l)",xl:"var(--xl)"},t.borderRadius={sm:"var(--small-border-radius)",md:"var(--medium-border-radius)",lg:"var(--large-border-radius)"},t.shadows={panel:"0 0 20px 10px rgb(205 216 228 / 50%)",box:"0 0 0 1px #cdd8e4, 0 2px 12px rgb(205 216 228 / 50%)",bottom:"inset 0 -1px 0 0 rgb(154 165 177 / 25%)",top:"inset 0 1px 0 0 rgb(154 165 177 / 25%)",left:"inset 1px 0 0 0 rgb(154 165 177 / 25%)",right:"inset -1px 0 0 0 rgb(154 165 177 / 25%)",container:"0 0 0 1px rgba(31, 41, 51, 0.1), 0 5px 20px rgba(31, 41, 51, 0.25)"},t.beziers={easeOut:"cubic-bezier(0.25, 0.1, 0.25, 1)",easeIn:"cubic-bezier(0.42, 0, 1, 1)",easeInOut:"cubic-bezier(0.42, 0, 0.58, 1)",bounce:{easeOut:"cubic-bezier(0.175, 0.885, 0.32, 1.275)"}},t.colors={hairline:"rgba(51,64,77,.1)",inputBorder:"rgba(96,125,159,0.25)",barelyVisible:"rgb(154 165 177 / 75%)",link:"#1f5fea",elements:{dropdown:"#dfe5ec"},error:"#cf1124",warning:"var(--warning-color)",success:"var(--success-color)",notice:"var(--notice-color)",enabled:"var(--enabled-color)",pending:"var(--pending-color)",disabled:"var(--disabled-color)",white:"var(--white)",black:"var(--black)",gray050:"var(--gray-050)",gray100:"var(--gray-100)",gray200:"var(--gray-200)",gray250:"#b4c3d3",gray300:"var(--gray-300)",gray350:"var(--gray-350)",gray400:"var(--gray-400)",gray500:"var(--gray-500)",gray550:"var(--gray-550)",gray600:"var(--gray-600)",gray700:"var(--gray-700)",gray800:"var(--gray-800)",gray900:"var(--gray-900)",gray1000:"var(--gray-1000)",blue050:"var(--blue-050)",blue100:"var(--blue-100)",blue200:"var(--blue-200)",blue300:"var(--blue-300)",blue400:"var(--blue-400)",blue500:"var(--blue-500)",blue600:"var(--blue-600)",blue700:"var(--blue-700)",blue800:"var(--blue-800)",blue900:"var(--blue-900)",cyan050:"var(--cyan-050)",cyan100:"var(--cyan-100)",cyan200:"var(--cyan-200)",cyan300:"var(--cyan-300)",cyan400:"var(--cyan-400)",cyan500:"var(--cyan-500)",cyan600:"var(--cyan-600)",cyan700:"var(--cyan-700)",cyan800:"var(--cyan-800)",cyan900:"var(--cyan-900)",pink050:"var(--pink-050)",pink100:"var(--pink-100)",pink200:"var(--pink-200)",pink300:"var(--pink-300)",pink400:"var(--pink-400)",pink500:"var(--pink-500)",pink600:"var(--pink-600)",pink700:"var(--pink-700)",pink800:"var(--pink-800)",pink900:"var(--pink-900)",red050:"var(--red-050)",red100:"var(--red-100)",red200:"var(--red-200)",red300:"var(--red-300)",red400:"var(--red-400)",red500:"var(--red-500)",red600:"var(--red-600)",red700:"var(--red-700)",red800:"var(--red-800)",red900:"var(--red-900)",yellow050:"var(--yellow-050)",yellow100:"var(--yellow-100)",yellow200:"var(--yellow-200)",yellow300:"var(--yellow-300)",yellow400:"var(--yellow-400)",yellow500:"var(--yellow-500)",yellow600:"var(--yellow-600)",yellow700:"var(--yellow-700)",yellow800:"var(--yellow-800)",yellow900:"var(--yellow-900)",teal050:"var(--teal-050)",teal100:"var(--teal-100)",teal200:"var(--teal-200)",teal300:"var(--teal-300)",teal400:"var(--teal-400)",teal500:"var(--teal-500)",teal550:"var(--teal-550)",teal600:"var(--teal-600)",teal700:"var(--teal-700)",teal800:"var(--teal-800)",teal900:"var(--teal-900)"}},96981:function(e,t){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.APIError=t.API_ERROR=void 0,t.API_ERROR="api_error";var a=function(e){function n(n){var r=e.call(this,n.message)||this;return r.errors={},r.name=t.API_ERROR,r.status=n.response.status,r.errors=n.response.data.errors,r}return r(n,e),n}(Error);t.APIError=a},12755:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Fields=void 0,function(e){e.Checkboxes="Solspace\\Freeform\\Fields\\Implementations\\CheckboxesField",e.Checkbox="Solspace\\Freeform\\Fields\\Implementations\\CheckboxField",e.Dropdown="Solspace\\Freeform\\Fields\\Implementations\\DropdownField",e.Email="Solspace\\Freeform\\Fields\\Implementations\\EmailField",e.FileUpload="Solspace\\Freeform\\Fields\\Implementations\\FileUploadField",e.Hidden="Solspace\\Freeform\\Fields\\Implementations\\HiddenField",e.Html="Solspace\\Freeform\\Fields\\Implementations\\HtmlField",e.MultipleSelect="Solspace\\Freeform\\Fields\\Implementations\\MultipleSelectField",e.Number="Solspace\\Freeform\\Fields\\Implementations\\NumberField",e.Radios="Solspace\\Freeform\\Fields\\Implementations\\RadiosField",e.Textarea="Solspace\\Freeform\\Fields\\Implementations\\TextareaField",e.Text="Solspace\\Freeform\\Fields\\Implementations\\TextField",e.Calculation="Solspace\\Freeform\\Fields\\Implementations\\Pro\\CalculationField",e.Confirmation="Solspace\\Freeform\\Fields\\Implementations\\Pro\\ConfirmationField",e.Datetime="Solspace\\Freeform\\Fields\\Implementations\\DatetimeField",e.FileDragAndDrop="Solspace\\Freeform\\Fields\\Implementations\\Pro\\FileDragAndDropField",e.Group="Solspace\\Freeform\\Fields\\Implementations\\Pro\\GroupField",e.Invisible="Solspace\\Freeform\\Fields\\Implementations\\Pro\\InvisibleField",e.OpinionScale="Solspace\\Freeform\\Fields\\Implementations\\Pro\\OpinionScaleField",e.Password="Solspace\\Freeform\\Fields\\Implementations\\Pro\\PasswordField",e.Phone="Solspace\\Freeform\\Fields\\Implementations\\Pro\\PhoneField",e.Rating="Solspace\\Freeform\\Fields\\Implementations\\Pro\\RatingField",e.Regex="Solspace\\Freeform\\Fields\\Implementations\\Pro\\RegexField",e.RichText="Solspace\\Freeform\\Fields\\Implementations\\Pro\\RichTextField",e.Signature="Solspace\\Freeform\\Fields\\Implementations\\Pro\\SignatureField",e.Table="Solspace\\Freeform\\Fields\\Implementations\\Pro\\TableField",e.Website="Solspace\\Freeform\\Fields\\Implementations\\Pro\\WebsiteField"}(n||(t.Fields=n={}))},47072:function(e,t){var n,r,a;Object.defineProperty(t,"__esModule",{value:!0}),t.Type=t.Implementation=void 0,function(e){e.Options="options",e.GeneratedOptions="generatedOptions"}(n||(t.Implementation=n={})),function(e){e.Group="group",e.Rating="rating",e.OpinionScale="opinion-scale"}(r||(t.Type=r={})),function(e){e[e.NewField=0]="NewField",e[e.ExistingField=1]="ExistingField"}(a||(a={}))},15918:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TargetFieldType=void 0,function(e){e.Relation="relation",e.Custom="custom",e.Preset="preset"}(n||(t.TargetFieldType=n={}))},77873:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateType=void 0,function(e){e.Database="database",e.File="file"}(n||(t.TemplateType=n={}))},80296:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyType=void 0,function(e){e.Attributes="attributes",e.Boolean="bool",e.Checkboxes="checkboxes",e.Color="color",e.Calculation="calculation",e.ConditionalRules="conditionalRules",e.DateTime="dateTime",e.Field="field",e.FieldMapping="fieldMapping",e.FieldType="fieldType",e.Hidden="hidden",e.Integer="int",e.Label="label",e.MinMax="minMax",e.NotificationTemplate="notificationTemplate",e.Options="options",e.OptionPicker="optionPicker",e.PageButton="pageButton",e.SaveButton="saveButton",e.PageButtonsLayout="pageButtonsLayout",e.RecipientMapping="recipientMapping",e.Recipients="recipients",e.Select="select",e.DynamicSelect="dynamicSelect",e.AppStateSelect="appStateSelect",e.String="string",e.Table="table",e.TabularData="tabularData",e.Textarea="textarea",e.WYSIWYG="wysiwyg",e.CodeEditor="codeEditor"}(n||(t.PropertyType=n={})),function(e){e[e.NewField=0]="NewField",e[e.ExistingField=1]="ExistingField"}(r||(r={}))},58634:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.Combinator=t.Display=t.operatorTypes=void 0,t.operatorTypes={boolean:["equals","notEquals"],noValue:["isEmpty","isNotEmpty"],multiple:["isOneOf","isNotOneOf"],numeric:["equals","notEquals","greaterThan","greaterThanOrEquals","lessThan","lessThanOrEquals","isEmpty","isNotEmpty","isOneOf","isNotOneOf"],string:["equals","notEquals","contains","notContains","startsWith","endsWith","isEmpty","isNotEmpty","isOneOf","isNotOneOf"],negative:["notEquals","notContains"]},function(e){e.Show="show",e.Hide="hide"}(n||(t.Display=n={})),function(e){e.And="and",e.Or="or"}(r||(t.Combinator=r={}))},73979:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0;t.range=function(e,t){void 0===t&&(e>1?(t=e,e=1):(t=e,e=0));for(var n=[],r=e;r<=t;r++)n.push(r);return n}},91797:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.classes=t.elementTreeHasClass=void 0;t.elementTreeHasClass=function(e,t){if(void 0===t)return!1;if("string"==typeof t&&(t=t.split(" ")),!e||!e.classList)return!1;for(;e;){for(var n=0,r=t;na?a:e};t.inRange=function(e,t,n,r){void 0===r&&(r=!0);var a=Math.min(t,n),o=Math.max(t,n);return r?e>=a&&e<=o:e>a&&e"},{"name":"Less than or equal to","operator":"<="},{"name":"Greater than or equal to","operator":">="}]}]}')}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}o.m=r,e=[],o.O=function(t,n,r,a){if(!n){var i=1/0;for(c=0;c=a)&&Object.keys(o.O).every((function(e){return o.O[e](n[u])}))?n.splice(u--,1):(l=!1,a0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[n,r,a]},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var a=Object.create(null);o.r(a);var i={};t=t||[null,n({}),n([]),n(n)];for(var l=2&r&&e;"object"==typeof l&&!~t.indexOf(l);l=n(l))Object.getOwnPropertyNames(l).forEach((function(t){i[t]=function(){return e[t]}}));return i.default=function(){return e},o.d(a,i),a},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={818:0};o.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,a,i=n[0],l=n[1],u=n[2],d=0;if(i.some((function(t){return 0!==e[t]}))){for(r in l)o.o(l,r)&&(o.m[r]=l[r]);if(u)var c=u(o)}for(t&&t(n);d=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:s},c)},d),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},16331:function(e,t,n){"use strict";var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:s},c)},d),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},25447:function(e,t,n){"use strict";e.exports=n(44868)},99550:function(e,t,n){"use strict";e.exports=n(22360)},6901:function(e,t,n){"use strict";e.exports=n(78476)},8669:function(e,t,n){"use strict";e.exports=n(19455)},53609:function(e,t,n){"use strict";e.exports=n(96721)},410:function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:p(e)?2:h(e)?3:0}function l(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){return 2===s(e)?e.get(t):e[t]}function d(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e){return H&&e instanceof Map}function h(e){return J&&e instanceof Set}function g(e){return e.o||e.t}function y(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=K(e);delete t[W];for(var n=G(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=b),Object.freeze(e),t&&u(e,(function(e,t){return m(t,!0)}),!0)),e}function b(){r(2)}function v(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function w(e){var t=V[e];return t||r(18,e),t}function x(e,t){V[e]||(V[e]=t)}function k(){return B}function S(e,t){t&&(w("Patches"),e.u=[],e.s=[],e.v=t)}function j(e){O(e),e.p.forEach(C),e.p=null}function O(e){e===B&&(B=e.l)}function E(e){return B={p:[],l:B,h:e,m:!0,_:0}}function C(e){var t=e[W];0===t.i||1===t.i?t.j():t.g=!0}function _(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.O||w("ES5").S(t,e,o),o?(n[W].P&&(j(t),r(4)),i(e)&&(e=T(t,e),t.l||P(t,e)),t.u&&w("Patches").M(n[W].t,e,t.u,t.s)):e=T(t,n,[]),j(t),t.u&&t.v(t.u,t.s),e!==z?e:void 0}function T(e,t,n){if(v(t))return t;var r=t[W];if(!r)return u(t,(function(o,i){return D(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return P(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=y(r.k):r.o,i=o,a=!1;3===r.i&&(i=new Set(o),o.clear(),a=!0),u(i,(function(t,i){return D(e,r,o,t,i,n,a)})),P(e,o,!1),n&&e.u&&w("Patches").N(r,n,e.u,e.s)}return r.o}function D(e,t,n,r,a,u,s){if(o(a)){var c=T(e,a,u&&t&&3!==t.i&&!l(t.R,r)?u.concat(r):void 0);if(d(n,r,c),!o(c))return;e.m=!1}else s&&n.add(a);if(i(a)&&!v(a)){if(!e.h.D&&e._<1)return;T(e,a),t&&t.A.l||P(e,a)}}function P(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&m(t,n)}function M(e,t){var n=e[W];return(n?g(n):e)[t]}function A(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function L(e){e.P||(e.P=!0,e.l&&L(e.l))}function N(e){e.o||(e.o=y(e.t))}function R(e,t,n){var r=p(t)?w("MapSet").F(t,n):h(t)?w("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:k(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=$;n&&(o=[r],i=ee);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):w("ES5").J(t,n);return(n?n.A:k()).p.push(r),r}function I(e){return o(e)||r(22,e),function e(t){if(!i(t))return t;var n,r=t[W],o=s(t);if(r){if(!r.P&&(r.i<4||!w("ES5").K(r)))return r.t;r.I=!0,n=Y(t,o),r.I=!1}else n=Y(t,o);return u(n,(function(t,o){r&&c(r.t,t)===o||d(n,t,e(o))})),3===o?new Set(n):n}(e)}function Y(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return y(e)}function Z(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[W];return $.get(t,e)},set:function(t){var n=this[W];$.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][W];if(!o.P)switch(o.i){case 5:r(o)&&L(o);break;case 4:n(o)&&L(o)}}}function n(e){for(var t=e.t,n=e.k,r=G(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==W){var a=t[i];if(void 0===a&&!l(t,i))return!0;var u=n[i],s=u&&u[W];if(s?s.t!==a:!f(u,a))return!0}}var c=!!t[W];return r.length!==G(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=w("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),ne=new te,re=ne.produce,oe=(ne.produceWithPatches.bind(ne),ne.setAutoFreeze.bind(ne),ne.setUseProxies.bind(ne),ne.applyPatches.bind(ne),ne.createDraft.bind(ne),ne.finishDraft.bind(ne),re),ie=n(74081),ae="NOT_FOUND";var ue=function(e,t){return e===t};function se(e,t){var n,r,o="object"==typeof t?t:{equalityCheck:t},i=o.equalityCheck,a=void 0===i?ue:i,u=o.maxSize,s=void 0===u?1:u,l=o.resultEqualityCheck,c=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o-1){var o=n[r];return r>0&&(n.splice(r,1),n.unshift(o)),o.value}return ae}return{get:r,put:function(t,o){r(t)===ae&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(s,c);function f(){var t=d.get(arguments);if(t===ae){if(t=e.apply(null,arguments),l){var n=d.getEntries().find((function(e){return l(e.value,t)}));n&&(t=n.value)}d.put(arguments,t)}return t}return f.clearCache=function(){return d.clear()},f}function le(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]-1}function Ne(e){return""+e}function Re(e){return void 0===e&&(e={}),function(){return function(e){return function(t){return e(t)}}}}var Ie=function(e){function t(){for(var n=[],r=0;r",value:e};if("object"!=typeof e||null===e)return!1;if(null==i?void 0:i.has(e))return!1;for(var u=null!=r?r(e):Object.entries(e),s=o.length>0,l=function(e,u){var l=t?t+"."+e:e;if(s&&o.some((function(e){return e instanceof RegExp?e.test(l):l===e})))return"continue";return n(u)?"object"==typeof u&&(a=He(u,l,n,r,o,i))?{value:a}:void 0:{value:{keyPath:l,value:u}}},c=0,d=u;c0){var i=t.filter((function(t){return function(t,n,r){var o=r.entities[n.id],i=Object.assign({},o,n.changes),a=$e(i,e),u=a!==n.id;return u&&(t[n.id]=a,delete r.entities[n.id]),r.entities[a]=i,u}(r,t,n)})).length>0;i&&(n.ids=Object.keys(n.entities))}}function a(t,r){var o=tt(t,e,r),a=o[0];i(o[1],r),n(a,r)}return{removeAll:(u=function(e){Object.assign(e,{ids:[],entities:{}})},s=Ve((function(e,t){return u(t)})),function(e){return s(e,void 0)}),addOne:Ve(t),addMany:Ve(n),setOne:Ve(r),setMany:Ve((function(e,t){for(var n=0,o=e=et(e);n-1;return n&&r}function gt(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function yt(){for(var e=[],t=0;t0)for(var f=e.getState(),p=Array.from(n.values()),h=0,g=p;he.length?o.NO_MATCH:e===t?o.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?o.EQUAL:e.startsWith(t)?o.STARTS_WITH:e.includes(` ${t}`)?o.WORD_STARTS_WITH:e.includes(t)?o.CONTAINS:1===t.length?o.NO_MATCH:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?o.ACRONYM:function(e,t){let n=0,r=0;function i(e,t,r){for(let o=r,i=t.length;o-1))return o.NO_MATCH}return a(r-u)}(e,t)}function a(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=r.removeAccents(e)),e}function u(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const r=n(e);return null==r?[]:Array.isArray(r)?r:[String(r)]}const s={maxRanking:1/0,minRanking:-1/0};function l(e){return"function"==typeof e?s:{...s,...e}}t.compareItems=function(e,t){return e.rank===t.rank?0:e.rank>t.rank?-1:1},t.rankItem=function(e,t,n){var r;if((n=n||{}).threshold=null!=(r=n.threshold)?r:o.MATCHES,!n.accessors){const r=i(e,t,n);return{rankedValue:e,rank:r,accessorIndex:-1,accessorThreshold:n.threshold,passed:r>=n.threshold}}const a=function(e,t){const n=[];for(let r=0,o=t.length;r=o.MATCHES?u=l:u>c&&(u=c),u=Math.min(u,c),u>=d&&u>s.rank&&(s.rank=u,s.passed=!0,s.accessorIndex=e,s.accessorThreshold=d,s.rankedValue=r.itemValue)}return s},t.rankings=o},64864:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},r=Object.keys(n).join("|"),o=new RegExp(r,"g");t.removeAccents=function(e){return e.replace(o,(e=>n[e]))}},71143:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(48254),o=n(84492);class i extends r.Subscribable{constructor(){super(),this.setup=e=>{if(!o.isServer&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}const a=new i;t.FocusManager=i,t.focusManager=a},85246:function(e,t){"use strict";function n(e){return e.state.isPaused}function r(e){return"success"===e.state.status}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultShouldDehydrateMutation=n,t.defaultShouldDehydrateQuery=r,t.dehydrate=function(e,t={}){const o=[],i=[];if(!1!==t.dehydrateMutations){const r=t.shouldDehydrateMutation||n;e.getMutationCache().getAll().forEach((e=>{r(e)&&o.push(function(e){return{mutationKey:e.options.mutationKey,state:e.state}}(e))}))}if(!1!==t.dehydrateQueries){const n=t.shouldDehydrateQuery||r;e.getQueryCache().getAll().forEach((e=>{n(e)&&i.push(function(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}(e))}))}return{mutations:o,queries:i}},t.hydrate=function(e,t,n){if("object"!=typeof t||null===t)return;const r=e.getMutationCache(),o=e.getQueryCache(),i=t.mutations||[],a=t.queries||[];i.forEach((t=>{var o;r.build(e,{...null==n||null==(o=n.defaultOptions)?void 0:o.mutations,mutationKey:t.mutationKey},t.state)})),a.forEach((({queryKey:t,state:r,queryHash:i})=>{var a;const u=o.get(i);if(u){if(u.state.dataUpdatedAt{e.fetchFn=()=>{var t,o,i,a,u,s;const l=null==(t=e.fetchOptions)||null==(o=t.meta)?void 0:o.refetchPage,c=null==(i=e.fetchOptions)||null==(a=i.meta)?void 0:a.fetchMore,d=null==c?void 0:c.pageParam,f="forward"===(null==c?void 0:c.direction),p="backward"===(null==c?void 0:c.direction),h=(null==(u=e.state.data)?void 0:u.pages)||[],g=(null==(s=e.state.data)?void 0:s.pageParams)||[];let y=g,m=!1;const b=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(e,t,n,r)=>(y=r?[t,...y]:[...y,t],r?[n,...e]:[...e,n]),w=(t,n,r,o)=>{if(m)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const i={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var a;a=i,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{m=!0})),e.signal}});const u=b(i);return Promise.resolve(u).then((e=>v(t,r,e,o)))};let x;if(h.length)if(f){const t=void 0!==d,r=t?d:n(e.options,h);x=w(h,t,r)}else if(p){const t=void 0!==d,n=t?d:r(e.options,h);x=w(h,t,n,!0)}else{y=[];const t=void 0===e.options.getNextPageParam;x=!l||!h[0]||l(h[0],0,h)?w([],t,g[0]):Promise.resolve(v([],g[0],h[0]));for(let r=1;r{if(!l||!h[r]||l(h[r],r,h)){const i=t?g[r]:n(e.options,o);return w(o,t,i)}return Promise.resolve(v(o,g[r],h[r]))}))}else x=w([]);return x.then((e=>({pages:e,pageParams:y})))}}}}},56784:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(22849),o=n(71415);class i extends r.QueryObserver{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:o.infiniteQueryBehavior()},t)}getOptimisticResult(e){return e.behavior=o.infiniteQueryBehavior(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var n,r,i,a,u,s;const{state:l}=e,c=super.createResult(e,t),{isFetching:d,isRefetching:f}=c,p=d&&"forward"===(null==(n=l.fetchMeta)||null==(r=n.fetchMore)?void 0:r.direction),h=d&&"backward"===(null==(i=l.fetchMeta)||null==(a=i.fetchMore)?void 0:a.direction);return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:o.hasNextPage(t,null==(u=l.data)?void 0:u.pages),hasPreviousPage:o.hasPreviousPage(t,null==(s=l.data)?void 0:s.pages),isFetchingNextPage:p,isFetchingPreviousPage:h,isRefetching:f&&!p&&!h}}}t.InfiniteQueryObserver=i},46727:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=console;t.defaultLogger=n},58968:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(46727),o=n(73349),i=n(39849),a=n(12268);class u extends i.Removable{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||r.defaultLogger,this.observers=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=a.createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,o,i,u,s,l,c;if(!t){var d,f,p,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(d=(f=this.mutationCache.config).onMutate)?void 0:d.call(f,this.state.variables,this));const e=await(null==(p=(h=this.options).onMutate)?void 0:p.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const a=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,a,this.state.variables,this.state.context,this)),await(null==(o=(i=this.options).onSuccess)?void 0:o.call(i,a,this.state.variables,this.state.context)),await(null==(u=(s=this.mutationCache.config).onSettled)?void 0:u.call(s,a,null,this.state.variables,this.state.context,this)),await(null==(l=(c=this.options).onSettled)?void 0:l.call(c,a,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:a}),a}catch(e){try{var g,y,m,b,v,w,x,k;throw await(null==(g=(y=this.mutationCache.config).onError)?void 0:g.call(y,e,this.state.variables,this.state.context,this)),await(null==(m=(b=this.options).onError)?void 0:m.call(b,e,this.state.variables,this.state.context)),await(null==(v=(w=this.mutationCache.config).onSettled)?void 0:v.call(w,void 0,e,this.state.variables,this.state.context,this)),await(null==(x=(k=this.options).onSettled)?void 0:x.call(k,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!a.canFetch(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),o.notifyManager.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}t.Mutation=u,t.getDefaultState=s},18684:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73349),o=n(58968),i=n(84492),a=n(48254);class u extends a.Subscribable{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new o.Mutation({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){r.notifyManager.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>i.matchMutation(e,t)))}findAll(e){return this.mutations.filter((t=>i.matchMutation(e,t)))}notify(e){r.notifyManager.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return r.notifyManager.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(i.noop)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}t.MutationCache=u},28442:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(58968),o=n(73349),i=n(48254),a=n(84492);class u extends i.Subscribable{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),a.shallowEqualObjects(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:r.getDefaultState(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){o.notifyManager.batch((()=>{var t,n,r,o;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(o=this.mutateOptions).onSettled)||r.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var i,a,u,s;null==(i=(a=this.mutateOptions).onError)||i.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(u=(s=this.mutateOptions).onSettled)||u.call(s,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)}))}))}}t.MutationObserver=u},73349:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84492);function o(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const i=o=>{t?e.push(o):r.scheduleMicrotask((()=>{n(o)}))},a=()=>{const t=e;e=[],t.length&&r.scheduleMicrotask((()=>{o((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||a()}return n},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}const i=o();t.createNotifyManager=o,t.notifyManager=i},59357:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(48254),o=n(84492);const i=["online","offline"];class a extends r.Subscribable{constructor(){super(),this.setup=e=>{if(!o.isServer&&window.addEventListener){const t=()=>e();return i.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{i.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}const u=new a;t.OnlineManager=a,t.onlineManager=u},74844:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84492),o=n(73349),i=n(22849),a=n(48254);class u extends a.Subscribable{constructor(e,t){super(),this.client=e,this.queries=[],this.result=[],this.observers=[],this.observersMap={},t&&this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.observers.forEach((e=>{e.subscribe((t=>{this.onUpdate(e,t)}))}))}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach((e=>{e.destroy()}))}setQueries(e,t){this.queries=e,o.notifyManager.batch((()=>{const e=this.observers,n=this.findMatchingObservers(this.queries);n.forEach((e=>e.observer.setOptions(e.defaultedQueryOptions,t)));const o=n.map((e=>e.observer)),i=Object.fromEntries(o.map((e=>[e.options.queryHash,e]))),a=o.map((e=>e.getCurrentResult())),u=o.some(((t,n)=>t!==e[n]));(e.length!==o.length||u)&&(this.observers=o,this.observersMap=i,this.result=a,this.hasListeners()&&(r.difference(e,o).forEach((e=>{e.destroy()})),r.difference(o,e).forEach((e=>{e.subscribe((t=>{this.onUpdate(e,t)}))})),this.notify()))}))}getCurrentResult(){return this.result}getQueries(){return this.observers.map((e=>e.getCurrentQuery()))}getObservers(){return this.observers}getOptimisticResult(e){return this.findMatchingObservers(e).map((e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)))}findMatchingObservers(e){const t=this.observers,n=new Map(t.map((e=>[e.options.queryHash,e]))),r=e.map((e=>this.client.defaultQueryOptions(e))),o=r.flatMap((e=>{const t=n.get(e.queryHash);return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]})),a=new Set(o.map((e=>e.defaultedQueryOptions.queryHash))),u=r.filter((e=>!a.has(e.queryHash))),s=new Set(o.map((e=>e.observer))),l=t.filter((e=>!s.has(e))),c=e=>{const t=this.client.defaultQueryOptions(e),n=this.observersMap[t.queryHash];return null!=n?n:new i.QueryObserver(this.client,t)},d=u.map(((e,t)=>{if(e.keepPreviousData){const n=l[t];if(void 0!==n)return{defaultedQueryOptions:e,observer:n}}return{defaultedQueryOptions:e,observer:c(e)}}));return o.concat(d).sort(((e,t)=>r.indexOf(e.defaultedQueryOptions)-r.indexOf(t.defaultedQueryOptions)))}onUpdate(e,t){const n=this.observers.indexOf(e);-1!==n&&(this.result=r.replaceAt(this.result,n,t),this.notify())}notify(){o.notifyManager.batch((()=>{this.listeners.forEach((({listener:e})=>{e(this.result)}))}))}}t.QueriesObserver=u},54728:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84492),o=n(46727),i=n(73349),a=n(12268),u=n(39849);class s extends u.Removable{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||o.defaultLogger,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=r.replaceData(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(r.noop).catch(r.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!r.timeUntilStale(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,o;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const u=r.getAbortController(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(u)return this.abortSignalConsumed=!0,u.signal}})};l(s);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var d;(l(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(o=c.fetchOptions)?void 0:o.meta))&&this.dispatch({type:"fetch",meta:null==(d=c.fetchOptions)?void 0:d.meta});const f=e=>{var t,n,r,o;(a.isCancelledError(e)&&e.silent||this.dispatch({type:"error",error:e}),a.isCancelledError(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=a.createRetryer({fn:c.fetchFn,abort:null==u?void 0:u.abort.bind(u),onSuccess:e=>{var t,n,r,o;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):f(new Error(this.queryHash+" data is undefined"))},onError:f,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:a.canFetch(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return a.isCancelledError(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.notifyManager.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}t.Query=s},5416:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84492),o=n(54728),i=n(73349),a=n(48254);class u extends a.Subscribable{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var i;const a=t.queryKey,u=null!=(i=t.queryHash)?i:r.hashQueryKeyByOptions(a,t);let s=this.get(u);return s||(s=new o.Query({cache:this,logger:e.getLogger(),queryKey:a,queryHash:u,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){i.notifyManager.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=r.parseFilterArgs(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>r.matchQuery(n,e)))}findAll(e,t){const[n]=r.parseFilterArgs(e,t);return Object.keys(n).length>0?this.queries.filter((e=>r.matchQuery(n,e))):this.queries}notify(e){i.notifyManager.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){i.notifyManager.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){i.notifyManager.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}t.QueryCache=u},3170:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84492),o=n(5416),i=n(18684),a=n(71143),u=n(59357),s=n(73349),l=n(71415),c=n(46727);t.QueryClient=class{constructor(e={}){this.queryCache=e.queryCache||new o.QueryCache,this.mutationCache=e.mutationCache||new i.MutationCache,this.logger=e.logger||c.defaultLogger,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=a.focusManager.subscribe((()=>{a.focusManager.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=u.onlineManager.subscribe((()=>{u.onlineManager.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=r.parseFilterArgs(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const o=r.parseQueryArgs(e,t,n),i=this.getQueryData(o.queryKey);return i?Promise.resolve(i):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),i=null==o?void 0:o.state.data,a=r.functionalUpdate(t,i);if(void 0===a)return;const u=r.parseQueryArgs(e),s=this.defaultQueryOptions(u);return this.queryCache.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return s.notifyManager.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=r.parseFilterArgs(e,t),o=this.queryCache;s.notifyManager.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,i]=r.parseFilterArgs(e,t,n),a=this.queryCache,u={type:"active",...o};return s.notifyManager.batch((()=>(a.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(u,i))))}cancelQueries(e,t,n){const[o,i={}]=r.parseFilterArgs(e,t,n);void 0===i.revert&&(i.revert=!0);const a=s.notifyManager.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(i)))));return Promise.all(a).then(r.noop).catch(r.noop)}invalidateQueries(e,t,n){const[o,i]=r.parseFilterArgs(e,t,n);return s.notifyManager.batch((()=>{var e,t;if(this.queryCache.findAll(o).forEach((e=>{e.invalidate()})),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,i)}))}refetchQueries(e,t,n){const[o,i]=r.parseFilterArgs(e,t,n),a=s.notifyManager.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let u=Promise.all(a).then(r.noop);return null!=i&&i.throwOnError||(u=u.catch(r.noop)),u}fetchQuery(e,t,n){const o=r.parseQueryArgs(e,t,n),i=this.defaultQueryOptions(o);void 0===i.retry&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(r.noop).catch(r.noop)}fetchInfiniteQuery(e,t,n){const o=r.parseQueryArgs(e,t,n);return o.behavior=l.infiniteQueryBehavior(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(r.noop).catch(r.noop)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>r.hashQueryKey(e)===r.hashQueryKey(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>r.partialMatchKey(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>r.hashQueryKey(e)===r.hashQueryKey(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>r.partialMatchKey(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=r.hashQueryKeyByOptions(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}},22849:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84492),o=n(73349),i=n(71143),a=n(48254),u=n(12268);class s extends a.Subscribable{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),l(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return c(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return c(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),r.shallowEqualObjects(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&d(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const a=this.computeRefetchInterval();!i||this.currentQuery===o&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!r.shallowEqualObjects(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(r.noop)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),r.isServer||this.currentResult.isStale||!r.isValidTimeout(this.options.staleTime))return;const e=r.timeUntilStale(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!r.isServer&&!1!==this.options.enabled&&r.isValidTimeout(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||i.focusManager.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,o=this.options,i=this.currentResult,a=this.currentResultState,s=this.currentResultOptions,c=e!==n,p=c?e.state:this.currentQueryInitialState,h=c?this.currentResult:this.previousQueryResult,{state:g}=e;let y,{dataUpdatedAt:m,error:b,errorUpdatedAt:v,fetchStatus:w,status:x}=g,k=!1,S=!1;if(t._optimisticResults){const r=this.hasListeners(),i=!r&&l(e,t),a=r&&d(e,n,t,o);(i||a)&&(w=u.canFetch(e.options.networkMode)?"fetching":"paused",m||(x="loading")),"isRestoring"===t._optimisticResults&&(w="idle")}if(t.keepPreviousData&&!g.dataUpdatedAt&&null!=h&&h.isSuccess&&"error"!==x)y=h.data,m=h.dataUpdatedAt,x=h.status,k=!0;else if(t.select&&void 0!==g.data)if(i&&g.data===(null==a?void 0:a.data)&&t.select===this.selectFn)y=this.selectResult;else try{this.selectFn=t.select,y=t.select(g.data),y=r.replaceData(null==i?void 0:i.data,y,t),this.selectResult=y,this.selectError=null}catch(e){0,this.selectError=e}else y=g.data;if(void 0!==t.placeholderData&&void 0===y&&"loading"===x){let e;if(null!=i&&i.isPlaceholderData&&t.placeholderData===(null==s?void 0:s.placeholderData))e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){0,this.selectError=e}void 0!==e&&(x="success",y=r.replaceData(null==i?void 0:i.data,e,t),S=!0)}this.selectError&&(b=this.selectError,y=this.selectResult,v=Date.now(),x="error");const j="fetching"===w,O="loading"===x,E="error"===x;return{status:x,fetchStatus:w,isLoading:O,isSuccess:"success"===x,isError:E,isInitialLoading:O&&j,data:y,dataUpdatedAt:m,error:b,errorUpdatedAt:v,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:j,isRefetching:j&&!O,isLoadingError:E&&0===g.dataUpdatedAt,isPaused:"paused"===w,isPlaceholderData:S,isPreviousData:k,isRefetchError:E&&0!==g.dataUpdatedAt,isStale:f(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,r.shallowEqualObjects(n,t))return;this.currentResult=n;const o={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)}))})()&&(o.listeners=!0),this.notify({...o,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||u.isCancelledError(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){o.notifyManager.batch((()=>{var t,n,r,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(o=this.options).onSettled)||r.call(o,this.currentResult.data,null);else if(e.onError){var i,a,u,s;null==(i=(a=this.options).onError)||i.call(a,this.currentResult.error),null==(u=(s=this.options).onSettled)||u.call(s,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function l(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&c(e,t,t.refetchOnMount)}function c(e,t,n){if(!1!==t.enabled){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&f(e,t)}return!1}function d(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&f(e,n)}function f(e,t){return e.isStaleByTime(t.staleTime)}t.QueryObserver=s},39849:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84492);t.Removable=class{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),r.isValidTimeout(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:r.isServer?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},12268:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(71143),o=n(59357),i=n(84492);function a(e){return Math.min(1e3*2**e,3e4)}function u(e){return"online"!==(null!=e?e:"online")||o.onlineManager.isOnline()}class s{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}t.CancelledError=s,t.canFetch=u,t.createRetryer=function(e){let t,n,l,c=!1,d=0,f=!1;const p=new Promise(((e,t)=>{n=e,l=t})),h=()=>!r.focusManager.isFocused()||"always"!==e.networkMode&&!o.onlineManager.isOnline(),g=r=>{f||(f=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},y=n=>{f||(f=!0,null==e.onError||e.onError(n),null==t||t(),l(n))},m=()=>new Promise((n=>{t=e=>{const t=f||!h();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,f||null==e.onContinue||e.onContinue()})),b=()=>{if(f)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(g).catch((t=>{var n,r;if(f)return;const o=null!=(n=e.retry)?n:3,u=null!=(r=e.retryDelay)?r:a,s="function"==typeof u?u(d,t):u,l=!0===o||"number"==typeof o&&d{if(h())return m()})).then((()=>{c?y(t):b()}))):y(t)}))};return u(e.networkMode)?b():m().then(b),{promise:p,cancel:t=>{f||(y(new s(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?p:Promise.resolve(),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1}}},t.isCancelledError=function(e){return e instanceof s}},48254:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},84492:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n="undefined"==typeof window||"Deno"in window;function r(e,t){return((null==t?void 0:t.queryKeyHashFn)||o)(e)}function o(e){return JSON.stringify(e,((e,t)=>l(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function i(e,t){return a(e,t)}function a(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!a(e[n],t[n]))))}function u(e,t){if(e===t)return e;const n=s(e)&&s(t);if(n||l(e)&&l(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let r=0;r{setTimeout(t,e)}))}t.difference=function(e,t){return e.filter((e=>!t.includes(e)))},t.functionalUpdate=function(e,t){return"function"==typeof e?e(t):e},t.getAbortController=function(){if("function"==typeof AbortController)return new AbortController},t.hashQueryKey=o,t.hashQueryKeyByOptions=r,t.isError=function(e){return e instanceof Error},t.isPlainArray=s,t.isPlainObject=l,t.isQueryKey=d,t.isServer=n,t.isValidTimeout=function(e){return"number"==typeof e&&e>=0&&e!==1/0},t.matchMutation=function(e,t){const{exact:n,fetching:r,predicate:a,mutationKey:u}=e;if(d(u)){if(!t.options.mutationKey)return!1;if(n){if(o(t.options.mutationKey)!==o(u))return!1}else if(!i(t.options.mutationKey,u))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(a&&!a(t))},t.matchQuery=function(e,t){const{type:n="all",exact:o,fetchStatus:a,predicate:u,queryKey:s,stale:l}=e;if(d(s))if(o){if(t.queryHash!==r(s,t.options))return!1}else if(!i(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof l||t.isStale()===l)&&((void 0===a||a===t.state.fetchStatus)&&!(u&&!u(t)))},t.noop=function(){},t.parseFilterArgs=function(e,t,n){return d(e)?[{...t,queryKey:e},n]:[e||{},t]},t.parseMutationArgs=function(e,t,n){return d(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}},t.parseMutationFilterArgs=function(e,t,n){return d(e)?[{...t,mutationKey:e},n]:[e||{},t]},t.parseQueryArgs=function(e,t,n){return d(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e},t.partialDeepEqual=a,t.partialMatchKey=i,t.replaceAt=function(e,t,n){const r=e.slice(0);return r[t]=n,r},t.replaceData=function(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?u(e,t):t},t.replaceEqualDeep=u,t.scheduleMicrotask=function(e){f(0).then(e)},t.shallowEqualObjects=function(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0},t.sleep=f,t.timeUntilStale=function(e,t){return Math.max(e+(t||0)-Date.now(),0)}},49904:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3196),o=n(2784),i=n(36131),a=n(36339);function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var l=s(o),c=u(i);const d=a.styled("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),f=a.styled("span",{color:"white"}),p=a.styled("button",{cursor:"pointer",color:"white"}),h=a.styled("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),g=({value:e})=>{const[t,n]=l.useState("NoCopy");return l.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(c.default.stringify(e)).then((()=>{n("SuccessCopy"),setTimeout((()=>{n("NoCopy")}),1500)}),(e=>{console.error("Failed to copy: ",e),n("ErrorCopy"),setTimeout((()=>{n("NoCopy")}),1500)}))}:void 0,style:{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}},"NoCopy"===t?l.createElement(w,null):"SuccessCopy"===t?l.createElement(k,null):l.createElement(x,null))},y=a.styled("span",((e,t)=>({color:t.danger}))),m=a.styled("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),b=a.styled("span",{color:"grey",fontSize:".7em"}),v=({expanded:e,style:t={}})=>l.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),w=()=>l.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},l.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},l.createElement("path",{fill:"currentColor",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"}),l.createElement("path",{fill:"currentColor",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"}))),x=()=>l.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},l.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},l.createElement("path",{fill:"red",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})),l.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),k=()=>l.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},l.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},l.createElement("path",{fill:"green",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})));function S(e,t){if(t<1)return[];let n=0;const r=[];for(;n{const[x,k]=l.useState([]);return l.createElement(d,{key:t},o.length?l.createElement(l.Fragment,null,l.createElement(h,{onClick:()=>c()},l.createElement(v,{expanded:u})," ",t," ",l.createElement(b,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),s?l.createElement(g,{value:n}):null,u?1===o.length?l.createElement(m,null,r.map(e)):l.createElement(m,null,o.map(((t,n)=>l.createElement("div",{key:n},l.createElement(d,null,l.createElement(p,{onClick:()=>k((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},l.createElement(v,{expanded:u})," [",n*w," ..."," ",n*w+w-1,"]"),x.includes(n)?l.createElement(m,null,t.map(e)):null))))):null):l.createElement(l.Fragment,null,l.createElement(f,null,t,":")," ",l.createElement(y,null,a.displayValue(n))))};t.CopyButton=g,t.DefaultRenderer=j,t.Entry=d,t.ExpandButton=h,t.Expander=v,t.Info=b,t.Label=f,t.LabelButton=p,t.SubEntries=m,t.Value=y,t.chunkArray=S,t.default=function e({value:t,defaultExpanded:n,renderer:o=j,pageSize:i=100,copyable:a=!1,...u}){const[s,c]=l.useState(Boolean(n)),d=l.useCallback((()=>c((e=>!e))),[]);let f=typeof t,p=[];const h=e=>{const t=!0===n?{[e.label]:!0}:null==n?void 0:n[e.label];return{...e,defaultExpanded:t}};var g;Array.isArray(t)?(f="array",p=t.map(((e,t)=>h({label:t.toString(),value:e})))):null!==t&&"object"==typeof t&&(g=t,Symbol.iterator in g)&&"function"==typeof t[Symbol.iterator]?(f="Iterable",p=Array.from(t,((e,t)=>h({label:t.toString(),value:e})))):"object"==typeof t&&null!==t&&(f="object",p=Object.entries(t).map((([e,t])=>h({label:e,value:t}))));const y=S(p,i);return o({handleEntry:n=>l.createElement(e,r.extends({key:n.label,value:t,renderer:o,copyable:a},u,n)),type:f,subEntries:p,subEntryPages:y,value:t,expanded:s,copyable:a,toggleExpanded:d,pageSize:i,...u})}},86769:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3196);function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var i=o(n(2784));t.default=function(e){return i.createElement("svg",r.extends({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-33.000000, 0.000000)"},i.createElement("path",{d:"M72.7239712,61.3436237 C69.631224,46.362877 68.9675112,34.8727722 70.9666331,26.5293551 C72.1555965,21.5671678 74.3293088,17.5190846 77.6346064,14.5984631 C81.1241394,11.5150478 85.5360327,10.0020122 90.493257,10.0020122 C98.6712013,10.0020122 107.26826,13.7273214 116.455725,20.8044264 C120.20312,23.6910458 124.092437,27.170411 128.131651,31.2444746 C128.45314,30.8310265 128.816542,30.4410453 129.22143,30.0806152 C140.64098,19.9149716 150.255245,13.5989272 158.478408,11.1636507 C163.367899,9.715636 167.958526,9.57768202 172.138936,10.983031 C176.551631,12.4664684 180.06766,15.5329489 182.548314,19.8281091 C186.642288,26.9166735 187.721918,36.2310983 186.195595,47.7320243 C185.573451,52.4199112 184.50985,57.5263831 183.007094,63.0593153 C183.574045,63.1277086 184.142416,63.2532808 184.705041,63.4395297 C199.193932,68.2358678 209.453582,73.3937462 215.665021,79.2882839 C219.360669,82.7953831 221.773972,86.6998434 222.646365,91.0218204 C223.567176,95.5836746 222.669313,100.159332 220.191548,104.451297 C216.105211,111.529614 208.591643,117.11221 197.887587,121.534031 C193.589552,123.309539 188.726579,124.917559 183.293259,126.363748 C183.541176,126.92292 183.733521,127.516759 183.862138,128.139758 C186.954886,143.120505 187.618598,154.61061 185.619477,162.954027 C184.430513,167.916214 182.256801,171.964297 178.951503,174.884919 C175.46197,177.968334 171.050077,179.48137 166.092853,179.48137 C157.914908,179.48137 149.31785,175.756061 140.130385,168.678956 C136.343104,165.761613 132.410866,162.238839 128.325434,158.108619 C127.905075,158.765474 127.388968,159.376011 126.77857,159.919385 C115.35902,170.085028 105.744755,176.401073 97.5215915,178.836349 C92.6321009,180.284364 88.0414736,180.422318 83.8610636,179.016969 C79.4483686,177.533532 75.9323404,174.467051 73.4516862,170.171891 C69.3577116,163.083327 68.2780823,153.768902 69.8044053,142.267976 C70.449038,137.410634 71.56762,132.103898 73.1575891,126.339009 C72.5361041,126.276104 71.9120754,126.144816 71.2949591,125.940529 C56.8060684,121.144191 46.5464184,115.986312 40.3349789,110.091775 C36.6393312,106.584675 34.2260275,102.680215 33.3536352,98.3582381 C32.4328237,93.7963839 33.3306866,89.2207269 35.8084524,84.9287618 C39.8947886,77.8504443 47.4083565,72.2678481 58.1124133,67.8460273 C62.5385143,66.0176154 67.5637208,64.366822 73.1939394,62.8874674 C72.9933393,62.3969171 72.8349374,61.8811235 72.7239712,61.3436237 Z",fill:"#002C4B",fillRule:"nonzero",transform:"translate(128.000000, 95.000000) scale(-1, 1) translate(-128.000000, -95.000000) "}),i.createElement("path",{d:"M113.396882,64 L142.608177,64 C144.399254,64 146.053521,64.958025 146.944933,66.5115174 L161.577138,92.0115174 C162.461464,93.5526583 162.461464,95.4473417 161.577138,96.9884826 L146.944933,122.488483 C146.053521,124.041975 144.399254,125 142.608177,125 L113.396882,125 C111.605806,125 109.951539,124.041975 109.060126,122.488483 L94.4279211,96.9884826 C93.543596,95.4473417 93.543596,93.5526583 94.4279211,92.0115174 L109.060126,66.5115174 C109.951539,64.958025 111.605806,64 113.396882,64 Z M138.987827,70.2765273 C140.779849,70.2765273 142.434839,71.2355558 143.325899,72.7903404 L154.343038,92.0138131 C155.225607,93.5537825 155.225607,95.4462175 154.343038,96.9861869 L143.325899,116.20966 C142.434839,117.764444 140.779849,118.723473 138.987827,118.723473 L117.017233,118.723473 C115.225211,118.723473 113.570221,117.764444 112.67916,116.20966 L101.662022,96.9861869 C100.779452,95.4462175 100.779452,93.5537825 101.662022,92.0138131 L112.67916,72.7903404 C113.570221,71.2355558 115.225211,70.2765273 117.017233,70.2765273 L138.987827,70.2765273 Z M135.080648,77.1414791 L120.924411,77.1414791 C119.134228,77.1414791 117.480644,78.0985567 116.5889,79.6508285 L116.5889,79.6508285 L109.489217,92.0093494 C108.603232,93.5515958 108.603232,95.4484042 109.489217,96.9906506 L109.489217,96.9906506 L116.5889,109.349172 C117.480644,110.901443 119.134228,111.858521 120.924411,111.858521 L120.924411,111.858521 L135.080648,111.858521 C136.870831,111.858521 138.524416,110.901443 139.41616,109.349172 L139.41616,109.349172 L146.515843,96.9906506 C147.401828,95.4484042 147.401828,93.5515958 146.515843,92.0093494 L146.515843,92.0093494 L139.41616,79.6508285 C138.524416,78.0985567 136.870831,77.1414791 135.080648,77.1414791 L135.080648,77.1414791 Z M131.319186,83.7122186 C133.108028,83.7122186 134.760587,84.6678753 135.652827,86.2183156 L138.983552,92.0060969 C139.87203,93.5500005 139.87203,95.4499995 138.983552,96.9939031 L135.652827,102.781684 C134.760587,104.332125 133.108028,105.287781 131.319186,105.287781 L124.685874,105.287781 C122.897032,105.287781 121.244473,104.332125 120.352233,102.781684 L117.021508,96.9939031 C116.13303,95.4499995 116.13303,93.5500005 117.021508,92.0060969 L120.352233,86.2183156 C121.244473,84.6678753 122.897032,83.7122186 124.685874,83.7122186 L131.319186,83.7122186 Z M128.003794,90.1848875 C126.459294,90.1848875 125.034382,91.0072828 124.263005,92.3424437 C123.491732,93.6774232 123.491732,95.3225768 124.263005,96.6575563 C125.034382,97.9927172 126.459294,98.8151125 128.001266,98.8151125 L128.001266,98.8151125 C129.545766,98.8151125 130.970678,97.9927172 131.742055,96.6575563 C132.513327,95.3225768 132.513327,93.6774232 131.742055,92.3424437 C130.970678,91.0072828 129.545766,90.1848875 128.003794,90.1848875 L128.003794,90.1848875 Z M93,94.5009646 L100.767764,94.5009646",fill:"#FFD94C"}),i.createElement("path",{d:"M87.8601729,108.357758 C89.1715224,107.608286 90.8360246,108.074601 91.5779424,109.399303 L91.5779424,109.399303 L92.0525843,110.24352 C95.8563392,116.982993 99.8190116,123.380176 103.940602,129.435068 C108.807881,136.585427 114.28184,143.82411 120.362479,151.151115 C121.316878,152.30114 121.184944,154.011176 120.065686,154.997937 L120.065686,154.997937 L119.454208,155.534625 C99.3465389,173.103314 86.2778188,176.612552 80.2480482,166.062341 C74.3500652,155.742717 76.4844915,136.982888 86.6513274,109.782853 C86.876818,109.179582 87.3045861,108.675291 87.8601729,108.357758 Z M173.534177,129.041504 C174.986131,128.785177 176.375496,129.742138 176.65963,131.194242 L176.65963,131.194242 L176.812815,131.986376 C181.782365,157.995459 178.283348,171 166.315764,171 C154.609745,171 139.708724,159.909007 121.612702,137.727022 C121.211349,137.235047 120.994572,136.617371 121,135.981509 C121.013158,134.480686 122.235785,133.274651 123.730918,133.287756 L123.730918,133.287756 L124.684654,133.294531 C132.305698,133.335994 139.714387,133.071591 146.910723,132.501323 C155.409039,131.82788 164.283523,130.674607 173.534177,129.041504 Z M180.408726,73.8119663 C180.932139,72.4026903 182.508386,71.6634537 183.954581,72.149012 L183.954581,72.149012 L184.742552,72.4154854 C210.583763,81.217922 220.402356,90.8916805 214.198332,101.436761 C208.129904,111.751366 190.484347,119.260339 161.26166,123.963678 C160.613529,124.067994 159.948643,123.945969 159.382735,123.618843 C158.047025,122.846729 157.602046,121.158214 158.388848,119.847438 L158.388848,119.847438 L158.889328,119.0105 C162.877183,112.31633 166.481358,105.654262 169.701854,99.0242957 C173.50501,91.1948179 177.073967,82.7907081 180.408726,73.8119663 Z M94.7383398,66.0363218 C95.3864708,65.9320063 96.0513565,66.0540315 96.6172646,66.3811573 C97.9529754,67.153271 98.3979538,68.8417862 97.6111517,70.1525615 L97.6111517,70.1525615 L97.1106718,70.9895001 C93.1228168,77.6836699 89.5186416,84.3457379 86.2981462,90.9757043 C82.49499,98.8051821 78.9260328,107.209292 75.5912744,116.188034 C75.0678608,117.59731 73.4916142,118.336546 72.045419,117.850988 L72.045419,117.850988 L71.2574475,117.584515 C45.4162372,108.782078 35.597644,99.1083195 41.8016679,88.5632391 C47.8700957,78.2486335 65.515653,70.7396611 94.7383398,66.0363218 Z M136.545792,34.4653746 C156.653461,16.8966864 169.722181,13.3874478 175.751952,23.9376587 C181.649935,34.2572826 179.515508,53.0171122 169.348673,80.2171474 C169.123182,80.8204179 168.695414,81.324709 168.139827,81.6422422 C166.828478,82.3917144 165.163975,81.9253986 164.422058,80.6006966 L164.422058,80.6006966 L163.947416,79.7564798 C160.143661,73.0170065 156.180988,66.6198239 152.059398,60.564932 C147.192119,53.4145727 141.71816,46.1758903 135.637521,38.8488847 C134.683122,37.6988602 134.815056,35.9888243 135.934314,35.0020629 L135.934314,35.0020629 Z M90.6842361,18 C102.390255,18 117.291276,29.0909926 135.387298,51.2729777 C135.788651,51.7649527 136.005428,52.3826288 136,53.0184911 C135.986842,54.5193144 134.764215,55.7253489 133.269082,55.7122445 L133.269082,55.7122445 L132.315346,55.7054689 C124.694302,55.6640063 117.285613,55.9284091 110.089277,56.4986773 C101.590961,57.17212 92.7164767,58.325393 83.4658235,59.9584962 C82.0138691,60.2148231 80.6245044,59.2578618 80.3403697,57.805758 L80.3403697,57.805758 L80.1871846,57.0136235 C75.2176347,31.0045412 78.7166519,18 90.6842361,18 Z",fill:"#FF4154"}))))}},3196:function(e,t){"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;th.useSyncExternalStore(y.useCallback((t=>n?()=>{}:e.subscribe(i.notifyManager.batchCalls(t))),[e,n]),t,t),b=y.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:f,context:h,onDragStart:g,onPositionChange:b,showCloseButton:k,position:S,closeButtonProps:j={},errorTypes:O=[],...E}=e,{onClick:C,..._}=j,T=i.useQueryClient({context:h}),D=T.getQueryCache(),[P,M]=u.default("reactQueryDevtoolsSortFn",Object.keys(s.sortFns)[0]),[A,L]=u.default("reactQueryDevtoolsFilter",""),[N,R]=u.default("reactQueryDevtoolsBaseSort",1),I=y.useMemo((()=>s.sortFns[P]),[P]),Y=m(D,(()=>D.getAll().length),!n),[Z,F]=u.default("reactQueryDevtoolsActiveQueryHash",""),B=y.useMemo((()=>{const e=D.getAll();if(0===Y)return[];const t=A?e.filter((e=>a.rankItem(e.queryHash,A).passed)):[...e];return I?t.sort(((e,t)=>I(e,t)*N)):t}),[N,I,A,Y,D]),[q,H]=y.useState(!1);return y.createElement(d.ThemeProvider,{theme:d.defaultTheme},y.createElement(l.Panel,r.extends({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},E,{style:{height:s.defaultPanelSize,position:"relative",...E.style}}),y.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+d.defaultTheme.backgroundAlt+" "+d.defaultTheme.gray+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar, .ReactQueryDevtoolsPanel scrollbar {\n width: 1em;\n height: 1em;\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-track, .ReactQueryDevtoolsPanel scrollbar-track {\n background: "+d.defaultTheme.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+d.defaultTheme.gray+";\n border-radius: .5em;\n border: 3px solid "+d.defaultTheme.backgroundAlt+";\n }\n "}}),y.createElement("div",{style:s.getResizeHandleStyle(S),onMouseDown:g}),n&&y.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+d.defaultTheme.grayAlt,display:"flex",flexDirection:"column"}},y.createElement("div",{style:{padding:".5em",background:d.defaultTheme.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},y.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>f(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},y.createElement(p.default,{"aria-hidden":!0}),y.createElement(c.default,{text:"Close React Query Devtools"})),y.createElement("div",{style:{display:"flex",flexDirection:"column"}},y.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},y.createElement(w,{queryCache:D}),S&&b?y.createElement(l.Select,{"aria-label":"Panel position",value:S,style:{marginInlineStart:".5em"},onChange:e=>b(e.target.value)},y.createElement("option",{value:"left"},"Left"),y.createElement("option",{value:"right"},"Right"),y.createElement("option",{value:"top"},"Top"),y.createElement("option",{value:"bottom"},"Bottom")):null),y.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},y.createElement(l.Input,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=A?A:"",onChange:e=>L(e.target.value),onKeyDown:e=>{"Escape"===e.key&&L("")},style:{flex:"1",width:"100%"}}),y.createElement(l.Select,{"aria-label":"Sort queries",value:P,onChange:e=>M(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(s.sortFns).map((e=>y.createElement("option",{key:e,value:e},"Sort by ",e)))),y.createElement(l.Button,{type:"button",onClick:()=>R((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===N?"⬆ Asc":"⬇ Desc"),y.createElement(l.Button,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>D.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),y.createElement(l.Button,{type:"button",onClick:()=>{q?(i.onlineManager.setOnline(void 0),H(!1),window.dispatchEvent(new Event("online"))):(i.onlineManager.setOnline(!1),H(!0))},"aria-label":q?"Restore offline mock":"Mock offline behavior",title:q?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:q?d.defaultTheme.danger:"currentColor",fill:"none"},q?y.createElement(y.Fragment,null,y.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),y.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),y.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),y.createElement("path",{d:"M6.343 12.343a7.963 7.963 0 0 1 3.864 -2.14m4.163 .155a7.965 7.965 0 0 1 3.287 2"}),y.createElement("path",{d:"M3.515 9.515a12 12 0 0 1 3.544 -2.455m3.101 -.92a12 12 0 0 1 10.325 3.374"}),y.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):y.createElement(y.Fragment,null,y.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),y.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),y.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),y.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),y.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),y.createElement(c.default,{text:q?"Restore offline mock":"Mock offline behavior"}))))),y.createElement("div",{style:{overflowY:"auto",flex:"1"}},B.map((e=>y.createElement(x,{queryKey:e.queryKey,activeQueryHash:Z,setActiveQueryHash:F,key:e.queryHash,queryCache:D}))))),Z&&n?y.createElement(v,{activeQueryHash:Z,queryCache:D,queryClient:T,errorTypes:O}):null,k?y.createElement(l.Button,r.extends({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},_,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,..._.style},onClick:e=>{f(!1),null==C||C(e)}}),"Close"):null))})),v=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:r})=>{var i,a;const u=m(e,(()=>e.getAll().find((e=>e.queryHash===t)))),c=m(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.state})),p=null!=(i=m(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.isStale()})))&&i,h=null!=(a=m(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.getObserversCount()})))?a:0,g=o.useMemo((()=>{if(u&&null!=c&&c.error){const e=r.find((e=>{var t;return e.initializer(u).toString()===(null==(t=c.error)?void 0:t.toString())}));return null==e?void 0:e.name}}),[u,null==c?void 0:c.error,r]);if(!u||!c)return null;const b=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(u))?t:new Error("Unknown error from devtools"),r=u.options;u.setState({status:"error",error:n,fetchMeta:{...u.state.fetchMeta,__previousQueryOptions:r}})};return y.createElement(l.ActiveQueryPanel,null,y.createElement("div",{style:{padding:".5em",background:d.defaultTheme.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),y.createElement("div",{style:{padding:".5em"}},y.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},y.createElement(l.Code,{style:{lineHeight:"1.8em"}},y.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},s.displayValue(u.queryKey,!0))),y.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:s.getQueryStatusColor({queryState:c,isStale:p,observerCount:h,theme:d.defaultTheme}),flexShrink:0}},s.getQueryStatusLabel(u))),y.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",y.createElement(l.Code,null,h)),y.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",y.createElement(l.Code,null,new Date(c.dataUpdatedAt).toLocaleTimeString()))),y.createElement("div",{style:{background:d.defaultTheme.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),y.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},y.createElement(l.Button,{type:"button",onClick:()=>{const e=null==u?void 0:u.fetch();null==e||e.catch(k)},disabled:"fetching"===c.fetchStatus,style:{background:d.defaultTheme.active}},"Refetch")," ",y.createElement(l.Button,{type:"button",onClick:()=>n.invalidateQueries(u),style:{background:d.defaultTheme.warning,color:d.defaultTheme.inputTextColor}},"Invalidate")," ",y.createElement(l.Button,{type:"button",onClick:()=>n.resetQueries(u),style:{background:d.defaultTheme.gray}},"Reset")," ",y.createElement(l.Button,{type:"button",onClick:()=>n.removeQueries(u),style:{background:d.defaultTheme.danger}},"Remove")," ",y.createElement(l.Button,{type:"button",onClick:()=>{var e;if("fetching"!==u.state.fetchStatus||void 0!==(null==(e=u.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===u.state.data)u.fetch(u.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=u.options;u.fetch({...e,queryFn:()=>new Promise((()=>{})),cacheTime:-1}),u.setState({data:void 0,status:"loading",fetchMeta:{...u.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:d.defaultTheme.paused}},"loading"===u.state.status?"Restore":"Trigger"," ","loading")," ",0===r.length||"error"===u.state.status?y.createElement(l.Button,{type:"button",onClick:()=>{u.state.error?n.resetQueries(u):b()},style:{background:d.defaultTheme.danger}},"error"===u.state.status?"Restore":"Trigger"," error"):y.createElement("label",null,"Trigger error:",y.createElement(l.Select,{value:null!=g?g:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=r.find((t=>t.name===e.target.value));b(t)}},y.createElement("option",{key:"",value:""}),r.map((e=>y.createElement("option",{key:e.name,value:e.name},e.name)))))),y.createElement("div",{style:{background:d.defaultTheme.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),y.createElement("div",{style:{padding:".5em"}},y.createElement(f.default,{label:"Data",value:c.data,defaultExpanded:{},copyable:!0})),y.createElement("div",{style:{background:d.defaultTheme.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),y.createElement("div",{style:{padding:".5em"}},y.createElement(f.default,{label:"Query",value:u,defaultExpanded:{queryKey:!0}})))},w=({queryCache:e})=>{const t=m(e,(()=>e.getAll().filter((e=>"fresh"===s.getQueryStatusLabel(e))).length)),n=m(e,(()=>e.getAll().filter((e=>"fetching"===s.getQueryStatusLabel(e))).length)),r=m(e,(()=>e.getAll().filter((e=>"paused"===s.getQueryStatusLabel(e))).length)),o=m(e,(()=>e.getAll().filter((e=>"stale"===s.getQueryStatusLabel(e))).length)),i=m(e,(()=>e.getAll().filter((e=>"inactive"===s.getQueryStatusLabel(e))).length));return y.createElement(l.QueryKeys,null,y.createElement(l.QueryKey,{style:{background:d.defaultTheme.success,opacity:t?1:.3}},"fresh ",y.createElement(l.Code,null,"(",t,")"))," ",y.createElement(l.QueryKey,{style:{background:d.defaultTheme.active,opacity:n?1:.3}},"fetching ",y.createElement(l.Code,null,"(",n,")"))," ",y.createElement(l.QueryKey,{style:{background:d.defaultTheme.paused,opacity:r?1:.3}},"paused ",y.createElement(l.Code,null,"(",r,")"))," ",y.createElement(l.QueryKey,{style:{background:d.defaultTheme.warning,color:"black",textShadow:"0",opacity:o?1:.3}},"stale ",y.createElement(l.Code,null,"(",o,")"))," ",y.createElement(l.QueryKey,{style:{background:d.defaultTheme.gray,opacity:i?1:.3}},"inactive ",y.createElement(l.Code,null,"(",i,")")))},x=y.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:r})=>{var o,i,a,u;const c=null!=(o=m(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.queryHash})))?o:"",f=m(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.state})),p=null!=(i=m(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.isStale()})))&&i,h=null!=(a=m(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.isDisabled()})))&&a,g=null!=(u=m(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.getObserversCount()})))?u:0;return f?y.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+d.defaultTheme.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},y.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:s.getQueryStatusColor({queryState:f,isStale:p,observerCount:g,theme:d.defaultTheme}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:p?"0":"0 0 10px black",color:p?"black":"white"}},g),h?y.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:d.defaultTheme.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,y.createElement(l.Code,{style:{padding:".5em"}},""+c)):null}));function k(){}x.displayName="QueryRow",t.ReactQueryDevtools=function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:o={},position:i="bottom-left",containerElement:a="aside",context:l,styleNonce:f,panelPosition:h="bottom",errorTypes:g=[]}){const m=y.useRef(null),v=y.useRef(null),[w,x]=u.default("reactQueryDevtoolsOpen",e),[k,S]=u.default("reactQueryDevtoolsHeight",s.defaultPanelSize),[j,O]=u.default("reactQueryDevtoolsWidth",s.defaultPanelSize),[E="bottom",C]=u.default("reactQueryDevtoolsPanelPosition",h),[_,T]=y.useState(!1),[D,P]=y.useState(!1),M=s.useIsMounted();y.useEffect((()=>{T(null!=w&&w)}),[w,_,T]),y.useEffect((()=>{const e=v.current;if(e){const t=()=>{_&&(e.style.visibility="visible")},n=()=>{_||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}}),[_]),y.useEffect((()=>{var e;if(_&&null!=(e=m.current)&&e.parentElement){const{parentElement:e}=m.current,t=s.getSidedProp("padding",E),n=s.isVerticalSide(E),r=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o}))(e.style),o=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?j:k)+"px"};if(o(),"undefined"!=typeof window)return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),Object.entries(r).forEach((([t,n])=>{e.style[t]=n}))}}}),[_,E,k,j]);const{style:A={},...L}=t,{style:N={},onClick:R,...I}=o,Y=s.getSidePanelStyle({position:E,devtoolsTheme:d.defaultTheme,isOpen:_,height:k,width:j,isResizing:D,panelStyle:A});return M()?y.createElement(a,{ref:m,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},y.createElement(d.ThemeProvider,{theme:d.defaultTheme},y.createElement(b,r.extends({ref:v,context:l,styleNonce:f,position:E,onPositionChange:C,showCloseButton:!0,closeButtonProps:n},L,{style:Y,isOpen:_,setIsOpen:x,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=s.isVerticalSide(E);P(!0);const{height:r,width:o}=e.getBoundingClientRect(),i=t.clientX,a=t.clientY;let u=0;const l=e=>{e.preventDefault(),n?(u=o+("right"===E?i-e.clientX:e.clientX-i),O(u)):(u=r+("bottom"===E?a-e.clientY:e.clientY-a),S(u)),u{D&&P(!1),document.removeEventListener("mousemove",l,!1),document.removeEventListener("mouseUp",c,!1)};document.addEventListener("mousemove",l,!1),document.addEventListener("mouseup",c,!1)})(v.current,e),errorTypes:g}))),_?null:y.createElement("button",r.extends({type:"button"},I,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{x(!0),null==R||R(e)},style:{background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===i?{top:"0",right:"0"}:"top-left"===i?{top:"0",left:"0"}:"bottom-right"===i?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...N}}),y.createElement(p.default,{"aria-hidden":!0}),y.createElement(c.default,{text:"Open React Query Devtools"}))):null},t.ReactQueryDevtoolsPanel=b},78600:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(55238);const r=function(){return null},o=function(){return null};t.ReactQueryDevtools=r,t.ReactQueryDevtoolsPanel=o},91673:function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784));t.default=function({text:e}){return o.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}},84450:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(36339);const o=r.styled("div",((e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground})),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}}),i=r.styled("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),a=r.styled("button",((e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"}))),u=r.styled("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),s=r.styled("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),l=r.styled("code",{fontSize:".9em",color:"inherit",background:"inherit"}),c=r.styled("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),d=r.styled("select",((e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:"url(\"data:image/svg+xml;utf8,\")",backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor})),{"(max-width: 500px)":{display:"none"}});t.ActiveQueryPanel=i,t.Button=a,t.Code=l,t.Input=c,t.Panel=o,t.QueryKey=s,t.QueryKeys=u,t.Select=d},26823:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3196);function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var i=o(n(2784));const a={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},u=i.createContext(a);t.ThemeProvider=function({theme:e,...t}){return i.createElement(u.Provider,r.extends({value:e},t))},t.defaultTheme=a,t.useTheme=function(){return i.useContext(u)}},63100:function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784));t.default=function(e,t){const[n,r]=o.useState();return o.useEffect((()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);r(null==n?"function"==typeof t?t():t:n)}),[t,e]),[n,o.useCallback((t=>{r((n=>{let r=t;"function"==typeof t&&(r=t(n));try{localStorage.setItem(e,JSON.stringify(r))}catch{}return r}))}),[e])]}},7594:function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784));t.default=function(e){const[t,n]=o.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return o.useEffect((()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),r=({matches:e})=>n(e);return t.addListener(r),()=>{t.removeListener(r)}}}),[t,e,n]),t}},36339:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2784),o=n(36131),i=n(26823),a=n(7594);function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var l=s(r),c=u(o);const d=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,f=(e,t)=>e.state.dataUpdatedAt Last Updated":(e,t)=>d(e)===d(t)?f(e,t):d(e)>d(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":f},h={top:"bottom",bottom:"top",left:"right",right:"left"};function g(e){return["left","right"].includes(e)}function y(e){return h[e]}function m(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}t.defaultPanelSize=500,t.displayValue=(e,t=!1)=>{const{json:n}=c.default.serialize(e);return JSON.stringify(n,null,t?2:void 0)},t.getOppositeSide=y,t.getQueryStatusColor=function({queryState:e,observerCount:t,isStale:n,theme:r}){return"fetching"===e.fetchStatus?r.active:t?"paused"===e.fetchStatus?r.paused:n?r.warning:r.success:r.gray},t.getQueryStatusLabel=function(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"},t.getResizeHandleStyle=function(e="bottom"){const t=g(e),n=y(e);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[m("margin",n)]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}},t.getSidePanelStyle=function({position:e="bottom",height:t,width:n,devtoolsTheme:r,isOpen:o,isResizing:i,panelStyle:a}){const u=y(e),s=m("border",u),l=g(e);return{...a,direction:"ltr",position:"fixed",[e]:0,[s]:"1px solid "+r.gray,transformOrigin:u,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:o?"visible":"hidden",...i?{transition:"none"}:{transition:"all .2s ease"},...o?{opacity:1,pointerEvents:"all",transform:l?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:l?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...l?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:500}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:500}}},t.getSidedProp=m,t.isVerticalSide=g,t.minPanelSize=70,t.sides=h,t.sortFns=p,t.styled=function(e,t,n={}){return l.forwardRef((({style:r,...o},u)=>{const s=i.useTheme(),c=Object.entries(n).reduce(((e,[t,n])=>a.default(t)?{...e,..."function"==typeof n?n(o,s):n}:e),{});return l.createElement(e,{...o,style:{..."function"==typeof t?t(o,s):t,...r,...c},ref:u})}))},t.useIsMounted=function(){const e=l.useRef(!1),t=l.useCallback((()=>e.current),[]);return l.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}},19828:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2784),o=n(75630),i=n(47171);function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var u=a(r);function s(e,t={}){const n=i.useQueryClient({context:t.context}),r=u.useRef(t);r.current=t,u.useMemo((()=>{e&&o.hydrate(n,e,r.current)}),[n,e])}t.Hydrate=({children:e,options:t,state:n})=>(s(n,t),e),t.useHydrate=s},47171:function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784));const i=o.createContext(void 0),a=o.createContext(!1);function u(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=i),window.ReactQueryClientContext):i)}t.QueryClientProvider=({client:e,children:t,context:n,contextSharing:r=!1})=>{o.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]);const i=u(n,r);return o.createElement(a.Provider,{value:!n&&r},o.createElement(i.Provider,{value:e},t))},t.defaultContext=i,t.useQueryClient=({context:e}={})=>{const t=o.useContext(u(e,o.useContext(a)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t}},77835:function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784));function i(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const a=o.createContext(i());t.QueryErrorResetBoundary=({children:e})=>{const[t]=o.useState((()=>i()));return o.createElement(a.Provider,{value:t},"function"==typeof e?e(t):e)},t.useQueryErrorResetBoundary=()=>o.useContext(a)},73288:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2784),o=n(78186);function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=i(r);t.ensurePreventErrorBoundaryRetry=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},t.getHasError=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&o.shouldThrowError(n,[e.error,r]),t.useClearResetErrorBoundary=e=>{a.useEffect((()=>{e.clearReset()}),[e])}},79634:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(32993);var r=n(75630),o=n(45677),i=n(70963),a=n(47171),u=n(19828),s=n(77835),l=n(82349),c=n(7171),d=n(82711),f=n(47005),p=n(1909);t.useQueries=o.useQueries,t.useQuery=i.useQuery,t.QueryClientProvider=a.QueryClientProvider,t.defaultContext=a.defaultContext,t.useQueryClient=a.useQueryClient,t.Hydrate=u.Hydrate,t.useHydrate=u.useHydrate,t.QueryErrorResetBoundary=s.QueryErrorResetBoundary,t.useQueryErrorResetBoundary=s.useQueryErrorResetBoundary,t.useIsFetching=l.useIsFetching,t.useIsMutating=c.useIsMutating,t.useMutation=d.useMutation,t.useInfiniteQuery=f.useInfiniteQuery,t.IsRestoringProvider=p.IsRestoringProvider,t.useIsRestoring=p.useIsRestoring,Object.keys(r).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}))},1909:function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784));const i=o.createContext(!1),a=i.Provider;t.IsRestoringProvider=a,t.useIsRestoring=()=>o.useContext(i)},34596:function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(28316)).unstable_batchedUpdates;t.unstable_batchedUpdates=o},32993:function(e,t,n){"use strict";var r=n(75630),o=n(34596);r.notifyManager.setBatchNotifyFunction(o.unstable_batchedUpdates)},10870:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=(e,t)=>e.isLoading&&e.isFetching&&!t;t.ensureStaleTime=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},t.fetchOptimistic=(e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)})),t.shouldSuspend=(e,t,r)=>(null==e?void 0:e.suspense)&&n(t,r),t.willFetch=n},34145:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2784),o=n(75630),i=n(39964),a=n(77835),u=n(47171),s=n(1909),l=n(73288),c=n(10870);function d(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var f=d(r);t.useBaseQuery=function(e,t){const n=u.useQueryClient({context:e.context}),r=s.useIsRestoring(),d=a.useQueryErrorResetBoundary(),p=n.defaultQueryOptions(e);p._optimisticResults=r?"isRestoring":"optimistic",p.onError&&(p.onError=o.notifyManager.batchCalls(p.onError)),p.onSuccess&&(p.onSuccess=o.notifyManager.batchCalls(p.onSuccess)),p.onSettled&&(p.onSettled=o.notifyManager.batchCalls(p.onSettled)),c.ensureStaleTime(p),l.ensurePreventErrorBoundaryRetry(p,d),l.useClearResetErrorBoundary(d);const[h]=f.useState((()=>new t(n,p))),g=h.getOptimisticResult(p);if(i.useSyncExternalStore(f.useCallback((e=>{const t=r?()=>{}:h.subscribe(o.notifyManager.batchCalls(e));return h.updateResult(),t}),[h,r]),(()=>h.getCurrentResult()),(()=>h.getCurrentResult())),f.useEffect((()=>{h.setOptions(p,{listeners:!1})}),[p,h]),c.shouldSuspend(p,g,r))throw c.fetchOptimistic(p,h,d);if(l.getHasError({result:g,errorResetBoundary:d,useErrorBoundary:p.useErrorBoundary,query:h.getCurrentQuery()}))throw g.error;return p.notifyOnChangeProps?g:h.trackResult(g)}},47005:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(75630),o=n(34145);t.useInfiniteQuery=function(e,t,n){const i=r.parseQueryArgs(e,t,n);return o.useBaseQuery(i,r.InfiniteQueryObserver)}},82349:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2784),o=n(75630),i=n(39964),a=n(47171);function u(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var s=u(r);t.useIsFetching=function(e,t,n){const[r,u={}]=o.parseFilterArgs(e,t,n),l=a.useQueryClient({context:u.context}),c=l.getQueryCache();return i.useSyncExternalStore(s.useCallback((e=>c.subscribe(o.notifyManager.batchCalls(e))),[c]),(()=>l.isFetching(r)),(()=>l.isFetching(r)))}},7171:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2784),o=n(75630),i=n(39964),a=n(47171);function u(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var s=u(r);t.useIsMutating=function(e,t,n){const[r,u={}]=o.parseMutationFilterArgs(e,t,n),l=a.useQueryClient({context:u.context}),c=l.getMutationCache();return i.useSyncExternalStore(s.useCallback((e=>c.subscribe(o.notifyManager.batchCalls(e))),[c]),(()=>l.isMutating(r)),(()=>l.isMutating(r)))}},82711:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2784),o=n(75630),i=n(39964),a=n(47171),u=n(78186);function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var l=s(r);function c(){}t.useMutation=function(e,t,n){const r=o.parseMutationArgs(e,t,n),s=a.useQueryClient({context:r.context}),[d]=l.useState((()=>new o.MutationObserver(s,r)));l.useEffect((()=>{d.setOptions(r)}),[d,r]);const f=i.useSyncExternalStore(l.useCallback((e=>d.subscribe(o.notifyManager.batchCalls(e))),[d]),(()=>d.getCurrentResult()),(()=>d.getCurrentResult())),p=l.useCallback(((e,t)=>{d.mutate(e,t).catch(c)}),[d]);if(f.error&&u.shouldThrowError(d.options.useErrorBoundary,[f.error]))throw f.error;return{...f,mutate:p,mutateAsync:f.mutate}}},45677:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2784),o=n(75630),i=n(39964),a=n(47171),u=n(1909),s=n(77835),l=n(73288),c=n(10870);function d(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var f=d(r);t.useQueries=function({queries:e,context:t}){const n=a.useQueryClient({context:t}),r=u.useIsRestoring(),d=s.useQueryErrorResetBoundary(),p=f.useMemo((()=>e.map((e=>{const t=n.defaultQueryOptions(e);return t._optimisticResults=r?"isRestoring":"optimistic",t}))),[e,n,r]);p.forEach((e=>{c.ensureStaleTime(e),l.ensurePreventErrorBoundaryRetry(e,d)})),l.useClearResetErrorBoundary(d);const[h]=f.useState((()=>new o.QueriesObserver(n,p))),g=h.getOptimisticResult(p);i.useSyncExternalStore(f.useCallback((e=>r?()=>{}:h.subscribe(o.notifyManager.batchCalls(e))),[h,r]),(()=>h.getCurrentResult()),(()=>h.getCurrentResult())),f.useEffect((()=>{h.setQueries(p,{listeners:!1})}),[p,h]);const y=g.some(((e,t)=>c.shouldSuspend(p[t],e,r)))?g.flatMap(((e,t)=>{const n=p[t],o=h.getObservers()[t];if(n&&o){if(c.shouldSuspend(n,e,r))return c.fetchOptimistic(n,o,d);c.willFetch(e,r)&&c.fetchOptimistic(n,o,d)}return[]})):[];if(y.length>0)throw Promise.all(y);const m=h.getQueries(),b=g.find(((e,t)=>{var n,r;return l.getHasError({result:e,errorResetBoundary:d,useErrorBoundary:null!=(n=null==(r=p[t])?void 0:r.useErrorBoundary)&&n,query:m[t]})}));if(null!=b&&b.error)throw b.error;return g}},70963:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(75630),o=n(34145);t.useQuery=function(e,t,n){const i=r.parseQueryArgs(e,t,n);return o.useBaseQuery(i,r.QueryObserver)}},39964:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(43100).useSyncExternalStore;t.useSyncExternalStore=r},78186:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldThrowError=function(e,t){return"function"==typeof e?e(...t):!!e}},93265:function(e,t,n){var r,o,i;o=[],r=function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MixedTags=void 0;var e,r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(2784)),o=n(48090),i=n(13980),a=(e=n(8890))&&e.__esModule?e:{default:e};const u=["children"];function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const d=e=>e,f=e=>{let t=e.name,n=e.value,i=e.loading,u=void 0!==i&&i,s=e.onInput,l=void 0===s?d:s,c=e.onAdd,f=void 0===c?d:c,p=e.onRemove,h=void 0===p?d:p,g=e.onEditInput,y=void 0===g?d:g,m=e.onEditBeforeUpdate,b=void 0===m?d:m,v=e.onEditUpdated,w=void 0===v?d:v,x=e.onEditStart,k=void 0===x?d:x,S=e.onEditKeydown,j=void 0===S?d:S,O=e.onInvalid,E=void 0===O?d:O,C=e.onClick,_=void 0===C?d:C,T=e.onKeydown,D=void 0===T?d:T,P=e.onFocus,M=void 0===P?d:P,A=e.onBlur,L=void 0===A?d:A,N=e.onChange,R=void 0===N?d:N,I=e.onDropdownShow,Y=void 0===I?d:I,Z=e.onDropdownHide,F=void 0===Z?d:Z,B=e.onDropdownSelect,q=void 0===B?d:B,H=e.onDropdownScroll,J=void 0===H?d:H,X=e.onDropdownNoMatch,z=void 0===X?d:X,Q=e.onDropdownUpdated,W=void 0===Q?d:Q,U=e.readOnly,G=e.disabled,K=e.children,V=e.settings,$=void 0===V?{}:V,ee=e.InputMode,te=void 0===ee?"input":ee,ne=e.autoFocus,re=e.className,oe=e.whitelist,ie=e.tagifyRef,ae=e.placeholder,ue=void 0===ae?"":ae,se=e.defaultValue,le=e.showDropdown;const ce=(0,r.useRef)(),de=(0,r.useRef)(),fe=(0,r.useRef)(),pe=se||n,he=(0,r.useMemo)((()=>({ref:de,name:t,defaultValue:K||"string"==typeof pe?pe:JSON.stringify(pe),className:re,readOnly:U,disabled:G,autoFocus:ne,placeholder:ue})),[]),ge=(0,r.useCallback)((()=>{ne&&fe.current&&fe.current.DOM.input.focus()}),[fe]);return(0,r.useEffect)((()=>{!function(e){if(e)for(let t in e){let n=e[t];String(n).includes("jsxRuntime")&&(e[t]=function(){for(var e=arguments.length,t=new Array(e),i=0;i{e.destroy()}}),[]),(0,r.useEffect)((()=>{ge()}),[ne]),(0,r.useEffect)((()=>{ce.current&&(fe.current.settings.whitelist.length=0,oe&&oe.length&&fe.current.settings.whitelist.push(...oe))}),[oe]),(0,r.useEffect)((()=>{const e=fe.current.getInputValue();ce.current&&!((e,t)=>{const n=e=>"string"==typeof e?e:JSON.stringify(e);return n(e)==n(t)})(n,e)&&fe.current.loadOriginalValues(n)}),[n]),(0,r.useEffect)((()=>{ce.current&&fe.current.toggleClass(re)}),[re]),(0,r.useEffect)((()=>{ce.current&&fe.current.loading(u)}),[u]),(0,r.useEffect)((()=>{ce.current&&fe.current.setReadonly(U)}),[U]),(0,r.useEffect)((()=>{ce.current&&fe.current.setDisabled(G)}),[G]),(0,r.useEffect)((()=>{const e=fe.current;ce.current&&(le?(e.dropdown.show.call(e,le),e.toggleFocusClass(!0)):e.dropdown.hide.call(e))}),[le]),(0,r.useEffect)((()=>{ce.current=!0}),[]),r.default.createElement("div",{className:"tags-input"},r.default.createElement(te,he))};f.propTypes={name:i.string,value:(0,i.oneOfType)([i.string,i.array]),loading:i.bool,children:(0,i.oneOfType)([i.string,i.array]),onChange:i.func,readOnly:i.bool,settings:i.object,InputMode:i.string,autoFocus:i.bool,className:i.string,tagifyRef:i.object,whitelist:i.array,placeholder:i.string,defaultValue:(0,i.oneOfType)([i.string,i.array]),showDropdown:(0,i.oneOfType)([i.string,i.bool]),onInput:i.func,onAdd:i.func,onRemove:i.func,onEditInput:i.func,onEditBeforeUpdate:i.func,onEditUpdated:i.func,onEditStart:i.func,onEditKeydown:i.func,onInvalid:i.func,onClick:i.func,onKeydown:i.func,onFocus:i.func,onBlur:i.func,onDropdownShow:i.func,onDropdownHide:i.func,onDropdownSelect:i.func,onDropdownScroll:i.func,onDropdownNoMatch:i.func,onDropdownUpdated:i.func};const p=r.default.memo(f);p.displayName="Tags",t.MixedTags=e=>{let t=e.children,n=c(e,u);return r.default.createElement(p,l({InputMode:"textarea"},n),t)};var h=p;return t.default=h,t},void 0===(i="function"==typeof r?r.apply(t,o):r)||(e.exports=i)},8890:function(e){e.exports=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r(e=""+e,t=""+t,r&&(e=e.trim(),t=t.trim()),n?e==t:e.toLowerCase()==t.toLowerCase()),u=(e,t)=>e&&Array.isArray(e)&&e.map((e=>s(e,t)));function s(e,t){var n,r={};for(n in e)t.indexOf(n)<0&&(r[n]=e[n]);return r}function l(e){var t=document.createElement("div");return e.replace(/\&#?[0-9a-z]+;/gi,(function(e){return t.innerHTML=e,t.innerText}))}function c(e){return(new DOMParser).parseFromString(e.trim(),"text/html").body.firstElementChild}function d(e){return e?e.replace(/\>[\r\n ]+\<").split(/>\s+<").trim():""}function f(e){for(var t,n=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,null,!1);t=n.nextNode();)t.textContent.trim()||t.parentNode.removeChild(t)}function p(e,t){for(t=t||"previous";e=e[t+"Sibling"];)if(3==e.nodeType)return e}function h(e){return"string"==typeof e?e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/`|'/g,"'"):e}function g(e){var t=Object.prototype.toString.call(e).split(" ")[1].slice(0,-1);return e===Object(e)&&"Array"!=t&&"Function"!=t&&"RegExp"!=t&&"HTMLUnknownElement"!=t}function y(e,t,n){function r(e,t){for(var n in t)if(t.hasOwnProperty(n)){if(g(t[n])){g(e[n])?r(e[n],t[n]):e[n]=Object.assign({},t[n]);continue}if(Array.isArray(t[n])){e[n]=Object.assign([],t[n]);continue}e[n]=t[n]}}return e instanceof Object||(e={}),r(e,t),n&&r(e,n),e}function m(){const e=[],t={};for(let n of arguments)for(let r of n)g(r)?t[r.value]||(e.push(r),t[r.value]=1):e.includes(r)||e.push(r);return e}function b(e){return String.prototype.normalize?"string"==typeof e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):void 0:e}function v(e){var t,n=e.cloneNode(!0);return n.style.cssText="position:fixed; top:-9999px; opacity:0",document.body.appendChild(n),t=n.clientHeight,n.parentNode.removeChild(n),t}var w=()=>/(?=.*chrome)(?=.*android)/i.test(navigator.userAgent);function x(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}function k(e){return e&&e.classList&&e.classList.contains(this.settings.classNames.tag)}function S(){const e=document.getSelection();if(e.rangeCount){const t=e.getRangeAt(0),n=t.startContainer,r=t.startOffset;let o,i;if(r>0)return i=document.createRange(),i.setStart(n,r-1),i.setEnd(n,r),o=i.getBoundingClientRect(),{left:o.right,top:o.top,bottom:o.bottom};if(n.getBoundingClientRect)return n.getBoundingClientRect()}return{left:-9999,top:-9999}}function j(e,t){var n=window.getSelection();return t=t||n.getRangeAt(0),"string"==typeof e&&(e=document.createTextNode(e)),t&&(t.deleteContents(),t.insertNode(e)),e}function O(e,t,n){return e?(t&&(e.__tagifyTagData=n?t:y({},e.__tagifyTagData||{},t)),e.__tagifyTagData):(console.warn("tag element doesn't exist",e,t),t)}function E(e){if(e&&e.parentNode){var t=e,n=window.getSelection(),r=n.getRangeAt(0);n.rangeCount&&(r.setStartAfter(t),r.collapse(!0),n.removeAllRanges(),n.addRange(r))}}function C(e,t){e.forEach((e=>{if(O(e.previousSibling)||!e.previousSibling){var n=document.createTextNode(i);e.before(n),t&&E(n)}}))}var _={delimiters:",",pattern:null,tagTextProp:"value",maxTags:1/0,callbacks:{},addTagOnBlur:!0,addTagOn:["blur","tab","enter"],onChangeAfterBlur:!0,duplicates:!1,whitelist:[],blacklist:[],enforceWhitelist:!1,userInput:!0,keepInvalidTags:!1,createInvalidTags:!0,mixTagsAllowedAfter:/,|\.|\:|\s/,mixTagsInterpolator:["[[","]]"],backspace:!0,skipInvalid:!1,pasteAsTags:!0,editTags:{clicks:2,keepInvalid:!0},transformTag:()=>{},trim:!0,a11y:{focusableTags:!1},mixMode:{insertAfterTag:" "},autoComplete:{enabled:!0,rightKey:!1,tabKey:!1},classNames:{namespace:"tagify",mixMode:"tagify--mix",selectMode:"tagify--select",input:"tagify__input",focus:"tagify--focus",tagNoAnimation:"tagify--noAnim",tagInvalid:"tagify--invalid",tagNotAllowed:"tagify--notAllowed",scopeLoading:"tagify--loading",hasMaxTags:"tagify--hasMaxTags",hasNoTags:"tagify--noTags",empty:"tagify--empty",inputInvalid:"tagify__input--invalid",dropdown:"tagify__dropdown",dropdownWrapper:"tagify__dropdown__wrapper",dropdownHeader:"tagify__dropdown__header",dropdownFooter:"tagify__dropdown__footer",dropdownItem:"tagify__dropdown__item",dropdownItemActive:"tagify__dropdown__item--active",dropdownItemHidden:"tagify__dropdown__item--hidden",dropdownInital:"tagify__dropdown--initial",tag:"tagify__tag",tagText:"tagify__tag-text",tagX:"tagify__tag__removeBtn",tagLoading:"tagify__tag--loading",tagEditing:"tagify__tag--editable",tagFlash:"tagify__tag--flash",tagHide:"tagify__tag--hide"},dropdown:{classname:"",enabled:2,maxItems:10,searchKeys:["value","searchBy"],fuzzySearch:!0,caseSensitive:!1,accentedSearch:!0,includeSelectedTags:!1,escapeHTML:!0,highlightFirst:!1,closeOnSelect:!0,clearOnSelect:!0,position:"all",appendTarget:null},hooks:{beforeRemoveTag:()=>Promise.resolve(),beforePaste:()=>Promise.resolve(),suggestionClick:()=>Promise.resolve(),beforeKeyDown:()=>Promise.resolve()}};function T(){this.dropdown={};for(let e in this._dropdown)this.dropdown[e]="function"==typeof this._dropdown[e]?this._dropdown[e].bind(this):this._dropdown[e];this.dropdown.refs()}var D={refs(){this.DOM.dropdown=this.parseTemplate("dropdown",[this.settings]),this.DOM.dropdown.content=this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-wrapper']")},getHeaderRef(){return this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-header']")},getFooterRef(){return this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-footer']")},getAllSuggestionsRefs(){return[...this.DOM.dropdown.content.querySelectorAll(this.settings.classNames.dropdownItemSelector)]},show(e){var t,n,r,o=this.settings,i="mix"==o.mode&&!o.enforceWhitelist,u=!o.whitelist||!o.whitelist.length,s="manual"==o.dropdown.position;if(e=void 0===e?this.state.inputText:e,!(u&&!i&&!o.templates.dropdownItemNoMatch||!1===o.dropdown.enable||this.state.isLoading||this.settings.readonly)){if(clearTimeout(this.dropdownHide__bindEventsTimeout),this.suggestedListItems=this.dropdown.filterListItems(e),e&&!this.suggestedListItems.length&&(this.trigger("dropdown:noMatch",e),o.templates.dropdownItemNoMatch&&(r=o.templates.dropdownItemNoMatch.call(this,{value:e}))),!r){if(this.suggestedListItems.length)e&&i&&!this.state.editing.scope&&!a(this.suggestedListItems[0].value,e)&&this.suggestedListItems.unshift({value:e});else{if(!e||!i||this.state.editing.scope)return this.input.autocomplete.suggest.call(this),void this.dropdown.hide();this.suggestedListItems=[{value:e}]}n=""+(g(t=this.suggestedListItems[0])?t.value:t),o.autoComplete&&n&&0==n.indexOf(e)&&this.input.autocomplete.suggest.call(this,t)}this.dropdown.fill(r),o.dropdown.highlightFirst&&this.dropdown.highlightOption(this.DOM.dropdown.content.querySelector(o.classNames.dropdownItemSelector)),this.state.dropdown.visible||setTimeout(this.dropdown.events.binding.bind(this)),this.state.dropdown.visible=e||!0,this.state.dropdown.query=e,this.setStateSelection(),s||setTimeout((()=>{this.dropdown.position(),this.dropdown.render()})),setTimeout((()=>{this.trigger("dropdown:show",this.DOM.dropdown)}))}},hide(e){var t=this.DOM,n=t.scope,r=t.dropdown,o="manual"==this.settings.dropdown.position&&!e;if(r&&document.body.contains(r)&&!o)return window.removeEventListener("resize",this.dropdown.position),this.dropdown.events.binding.call(this,!1),n.setAttribute("aria-expanded",!1),r.parentNode.removeChild(r),setTimeout((()=>{this.state.dropdown.visible=!1}),100),this.state.dropdown.query=this.state.ddItemData=this.state.ddItemElm=this.state.selection=null,this.state.tag&&this.state.tag.value.length&&(this.state.flaggedTags[this.state.tag.baseOffset]=this.state.tag),this.trigger("dropdown:hide",r),this},toggle(e){this.dropdown[this.state.dropdown.visible&&!e?"hide":"show"]()},render(){var e=v(this.DOM.dropdown),t=this.settings;return"number"==typeof t.dropdown.enabled&&t.dropdown.enabled>=0?(this.DOM.scope.setAttribute("aria-expanded",!0),document.body.contains(this.DOM.dropdown)||(this.DOM.dropdown.classList.add(t.classNames.dropdownInital),this.dropdown.position(e),t.dropdown.appendTarget.appendChild(this.DOM.dropdown),setTimeout((()=>this.DOM.dropdown.classList.remove(t.classNames.dropdownInital)))),this):this},fill(e){e="string"==typeof e?e:this.dropdown.createListHTML(e||this.suggestedListItems);var t=this.settings.templates.dropdownContent.call(this,e);this.DOM.dropdown.content.innerHTML=d(t)},fillHeaderFooter(){var e=this.dropdown.filterListItems(this.state.dropdown.query),t=this.parseTemplate("dropdownHeader",[e]),n=this.parseTemplate("dropdownFooter",[e]),r=this.dropdown.getHeaderRef(),o=this.dropdown.getFooterRef();t&&r?.parentNode.replaceChild(t,r),n&&o?.parentNode.replaceChild(n,o)},refilter(e){e=e||this.state.dropdown.query||"",this.suggestedListItems=this.dropdown.filterListItems(e),this.dropdown.fill(),this.suggestedListItems.length||this.dropdown.hide(),this.trigger("dropdown:updated",this.DOM.dropdown)},position(e){var t=this.settings.dropdown;if("manual"!=t.position){var n,r,o,i,a,u,s,l,c,d=this.DOM.dropdown,f=t.RTL,p=t.appendTarget===document.body,h=p?window.pageYOffset:t.appendTarget.scrollTop,g=document.fullscreenElement||document.webkitFullscreenElement||document.documentElement,y=g.clientHeight,m=Math.max(g.clientWidth||0,window.innerWidth||0)>480?t.position:"all",b=this.DOM["input"==m?"input":"scope"];if(e=e||d.clientHeight,this.state.dropdown.visible){if("text"==m?(o=(n=S()).bottom,r=n.top,i=n.left,a="auto"):(u=v(t.appendTarget),r=(n=b.getBoundingClientRect()).top-u.top,o=n.bottom-1-u.top,i=n.left-u.left,a=n.width+"px"),!p){let e=w();r+=e,o+=e}r=Math.floor(r),o=Math.ceil(o),l=((s=t.placeAbove??y-n.bottom0&&void 0!==arguments[0])||arguments[0];var t=this.dropdown.events.callbacks,n=this.listeners.dropdown=this.listeners.dropdown||{position:this.dropdown.position.bind(this,null),onKeyDown:t.onKeyDown.bind(this),onMouseOver:t.onMouseOver.bind(this),onMouseLeave:t.onMouseLeave.bind(this),onClick:t.onClick.bind(this),onScroll:t.onScroll.bind(this)},r=e?"addEventListener":"removeEventListener";"manual"!=this.settings.dropdown.position&&(document[r]("scroll",n.position,!0),window[r]("resize",n.position),window[r]("keydown",n.onKeyDown)),this.DOM.dropdown[r]("mouseover",n.onMouseOver),this.DOM.dropdown[r]("mouseleave",n.onMouseLeave),this.DOM.dropdown[r]("mousedown",n.onClick),this.DOM.dropdown.content[r]("scroll",n.onScroll)},callbacks:{onKeyDown(e){if(this.state.hasFocus&&!this.state.composing){var t=this.settings,n=this.DOM.dropdown.querySelector(t.classNames.dropdownItemActiveSelector),r=this.dropdown.getSuggestionDataByNode(n),o="mix"==t.mode;t.hooks.beforeKeyDown(e,{tagify:this}).then((i=>{switch(e.key){case"ArrowDown":case"ArrowUp":case"Down":case"Up":e.preventDefault();var a=this.dropdown.getAllSuggestionsRefs(),u="ArrowUp"==e.key||"Up"==e.key;n&&(n=this.dropdown.getNextOrPrevOption(n,!u)),n&&n.matches(t.classNames.dropdownItemSelector)||(n=a[u?a.length-1:0]),this.dropdown.highlightOption(n,!0);break;case"Escape":case"Esc":this.dropdown.hide();break;case"ArrowRight":if(this.state.actions.ArrowLeft)return;case"Tab":{let i=!t.autoComplete.rightKey||!t.autoComplete.tabKey;if(!o&&n&&i&&!this.state.editing){e.preventDefault();var s=this.dropdown.getMappedValue(r);return this.input.autocomplete.set.call(this,s),!1}return!0}case"Enter":e.preventDefault(),t.hooks.suggestionClick(e,{tagify:this,tagData:r,suggestionElm:n}).then((()=>{if(n)return this.dropdown.selectOption(n),n=this.dropdown.getNextOrPrevOption(n,!u),void this.dropdown.highlightOption(n);this.dropdown.hide(),o||this.addTags(this.state.inputText.trim(),!0)})).catch((e=>e));break;case"Backspace":{if(o||this.state.editing.scope)return;const e=this.input.raw.call(this);""!=e&&8203!=e.charCodeAt(0)||(!0===t.backspace?this.removeTags():"edit"==t.backspace&&setTimeout(this.editTag.bind(this),0))}}}))}},onMouseOver(e){var t=e.target.closest(this.settings.classNames.dropdownItemSelector);this.dropdown.highlightOption(t)},onMouseLeave(e){this.dropdown.highlightOption()},onClick(e){if(0==e.button&&e.target!=this.DOM.dropdown&&e.target!=this.DOM.dropdown.content){var t=e.target.closest(this.settings.classNames.dropdownItemSelector),n=this.dropdown.getSuggestionDataByNode(t);this.state.actions.selectOption=!0,setTimeout((()=>this.state.actions.selectOption=!1),50),this.settings.hooks.suggestionClick(e,{tagify:this,tagData:n,suggestionElm:t}).then((()=>{t?this.dropdown.selectOption(t,e):this.dropdown.hide()})).catch((e=>console.warn(e)))}},onScroll(e){var t=e.target,n=t.scrollTop/(t.scrollHeight-t.parentNode.clientHeight)*100;this.trigger("dropdown:scroll",{percentage:Math.round(n)})}}},getSuggestionDataByNode(e){var t=e&&e.getAttribute("value");return this.suggestedListItems.find((e=>e.value==t))||null},getNextOrPrevOption(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];var n=this.dropdown.getAllSuggestionsRefs(),r=n.findIndex((t=>t===e));return t?n[r+1]:n[r-1]},highlightOption(e,t){var n,r=this.settings.classNames.dropdownItemActive;if(this.state.ddItemElm&&(this.state.ddItemElm.classList.remove(r),this.state.ddItemElm.removeAttribute("aria-selected")),!e)return this.state.ddItemData=null,this.state.ddItemElm=null,void this.input.autocomplete.suggest.call(this);n=this.dropdown.getSuggestionDataByNode(e),this.state.ddItemData=n,this.state.ddItemElm=e,e.classList.add(r),e.setAttribute("aria-selected",!0),t&&(e.parentNode.scrollTop=e.clientHeight+e.offsetTop-e.parentNode.clientHeight),this.settings.autoComplete&&(this.input.autocomplete.suggest.call(this,n),this.dropdown.position())},selectOption(e,t){var n=this.settings,r=n.dropdown,o=r.clearOnSelect,i=r.closeOnSelect;if(!e)return this.addTags(this.state.inputText,!0),void(i&&this.dropdown.hide());t=t||{};var a=e.getAttribute("value"),u="noMatch"==a,s=this.suggestedListItems.find((e=>(e.value??e)==a));if(this.trigger("dropdown:select",{data:s,elm:e,event:t}),a&&(s||u)){if(this.state.editing){let e=this.normalizeTags([s])[0];s=n.transformTag.call(this,e)||e,this.onEditTagDone(null,y({__isValid:!0},s))}else this["mix"==n.mode?"addMixTags":"addTags"]([s||this.input.raw.call(this)],o);this.DOM.input.parentNode&&(setTimeout((()=>{this.DOM.input.focus(),this.toggleFocusClass(!0)})),i&&setTimeout(this.dropdown.hide.bind(this)),e.addEventListener("transitionend",(()=>{this.dropdown.fillHeaderFooter(),setTimeout((()=>e.remove()),100)}),{once:!0}),e.classList.add(this.settings.classNames.dropdownItemHidden))}else i&&setTimeout(this.dropdown.hide.bind(this))},selectAll(e){this.suggestedListItems.length=0,this.dropdown.hide(),this.dropdown.filterListItems("");var t=this.dropdown.filterListItems("");return e||(t=this.state.dropdown.suggestions),this.addTags(t,!0),this},filterListItems(e,t){var n,r,o,i,a,u=this.settings,s=u.dropdown,l=(t=t||{},[]),c=[],d=u.whitelist,f=s.maxItems>=0?s.maxItems:1/0,p=s.searchKeys,h=0;if(!(e="select"==u.mode&&this.value.length&&this.value[0][u.tagTextProp]==e?"":e)||!p.length)return l=s.includeSelectedTags?d:d.filter((e=>!this.isTagDuplicate(g(e)?e.value:e))),this.state.dropdown.suggestions=l,l.slice(0,f);function y(e,t){return t.toLowerCase().split(" ").every((t=>e.includes(t.toLowerCase())))}for(a=s.caseSensitive?""+e:(""+e).toLowerCase();hp.includes(e)))?p:["value"];s.fuzzySearch&&!t.exact?(o=f.reduce(((e,t)=>e+" "+(n[t]||"")),"").toLowerCase().trim(),s.accentedSearch&&(o=b(o),a=b(a)),e=0==o.indexOf(a),u=o===a,r=y(o,a)):(e=!0,r=f.some((e=>{var r=""+(n[e]||"");return s.accentedSearch&&(r=b(r),a=b(a)),s.caseSensitive||(r=r.toLowerCase()),u=r===a,t.exact?r===a:0==r.indexOf(a)}))),i=!s.includeSelectedTags&&this.isTagDuplicate(g(n)?n.value:n),r&&!i&&(u&&e?c.push(n):"startsWith"==s.sortby&&e?l.unshift(n):l.push(n))}return this.state.dropdown.suggestions=c.concat(l),"function"==typeof s.sortby?s.sortby(c.concat(l),a):c.concat(l).slice(0,f)},getMappedValue(e){var t=this.settings.dropdown.mapValueTo;return t?"function"==typeof t?t(e):e[t]||e.value:e.value},createListHTML(e){return y([],e).map(((e,n)=>{"string"!=typeof e&&"number"!=typeof e||(e={value:e});var r=this.dropdown.getMappedValue(e);return r="string"==typeof r&&this.settings.dropdown.escapeHTML?h(r):r,this.settings.templates.dropdownItem.apply(this,[t(t({},e),{},{mappedValue:r}),this])})).join("")}};const P=1,M="@yaireo/tagify/",A=e=>t=>{let n,r="/"+t;if(localStorage.getItem(M+e+"/v",P)==P)try{n=JSON.parse(localStorage[M+e+r])}catch(e){}return n},L=e=>e?(localStorage.setItem(M+e+"/v",P),(t,n)=>{let r="/"+n,o=JSON.stringify(t);t&&n&&(localStorage.setItem(M+e+r,o),dispatchEvent(new Event("storage")))}):()=>{},N=e=>t=>{const n=M+"/"+e+"/";if(t)localStorage.removeItem(n+t);else for(let e in localStorage)e.includes(n)&&localStorage.removeItem(e)};var R,I={empty:"empty",exceed:"number of tags exceeded",pattern:"pattern mismatch",duplicate:"already exists",notAllowed:"not allowed"},Y={wrapper:(e,t)=>`\n \n ​\n `,tag(e,t){let n=t.settings;return`\n \n
\n ${e[n.tagTextProp]||e.value}\n
\n
`},dropdown(e){var t=e.dropdown;return`
\n
\n
`},dropdownContent(e){var t=this.settings.templates,n=this.state.dropdown.suggestions;return`\n ${t.dropdownHeader.call(this,n)}\n ${e}\n ${t.dropdownFooter.call(this,n)}\n `},dropdownItem(e){return`
${e.mappedValue||e.value}
`},dropdownHeader(e){return`
`},dropdownFooter(e){var t=e.length-this.settings.dropdown.maxItems;return t>0?`
\n ${t} more items. Refine your search.\n
`:""},dropdownItemNoMatch:null};function Z(e){var t=document.createTextNode("");function n(e,n,r){r&&n.split(/\s+/g).forEach((n=>t[e+"EventListener"].call(t,n,r)))}return{off(e,t){return n("remove",e,t),this},on(e,t){return t&&"function"==typeof t&&n("add",e,t),this},trigger(n,r,o){var i;if(o=o||{cloneData:!0},n)if(e.settings.isJQueryPlugin)"remove"==n&&(n="removeTag"),jQuery(e.DOM.originalInput).triggerHandler(n,[r]);else{try{var a="object"==typeof r?r:{value:r};if((a=o.cloneData?y({},a):a).tagify=this,r.event&&(a.event=this.cloneEvent(r.event)),r instanceof Object)for(var u in r)r[u]instanceof HTMLElement&&(a[u]=r[u]);i=new CustomEvent(n,{detail:a})}catch(e){console.warn(e)}t.dispatchEvent(i)}}}}function F(){if(!this.settings.mixMode.integrated){var e=this.DOM.originalInput,t=this.state.lastOriginalValueReported!==e.value,n=new CustomEvent("change",{bubbles:!0});t&&(this.state.lastOriginalValueReported=e.value,n.simulated=!0,e._valueTracker&&e._valueTracker.setValue(Math.random()),e.dispatchEvent(n),this.trigger("change",this.state.lastOriginalValueReported),e.value=this.state.lastOriginalValueReported)}}var B={customBinding(){this.customEventsList.forEach((e=>{this.on(e,this.settings.callbacks[e])}))},binding(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var t,n=this.events.callbacks,r=e?"addEventListener":"removeEventListener";if(!this.state.mainEvents||!e){for(var o in this.state.mainEvents=e,e&&!this.listeners.main&&(this.events.bindGlobal.call(this),this.settings.isJQueryPlugin&&jQuery(this.DOM.originalInput).on("tagify.removeAllTags",this.removeAllTags.bind(this))),t=this.listeners.main=this.listeners.main||{focus:["input",n.onFocusBlur.bind(this)],keydown:["input",n.onKeydown.bind(this)],click:["scope",n.onClickScope.bind(this)],dblclick:["scope",n.onDoubleClickScope.bind(this)],paste:["input",n.onPaste.bind(this)],drop:["input",n.onDrop.bind(this)],compositionstart:["input",n.onCompositionStart.bind(this)],compositionend:["input",n.onCompositionEnd.bind(this)]})this.DOM[t[o][0]][r](o,t[o][1]);clearInterval(this.listeners.main.originalInputValueObserverInterval),this.listeners.main.originalInputValueObserverInterval=setInterval(n.observeOriginalInputValue.bind(this),500);var i=this.listeners.main.inputMutationObserver||new MutationObserver(n.onInputDOMChange.bind(this));i.disconnect(),"mix"==this.settings.mode&&i.observe(this.DOM.input,{childList:!0})}},bindGlobal(e){var t,n=this.events.callbacks,r=e?"removeEventListener":"addEventListener";if(this.listeners&&(e||!this.listeners.global))for(t of(this.listeners.global=this.listeners.global||[{type:this.isIE?"keydown":"input",target:this.DOM.input,cb:n[this.isIE?"onInputIE":"onInput"].bind(this)},{type:"keydown",target:window,cb:n.onWindowKeyDown.bind(this)},{type:"blur",target:this.DOM.input,cb:n.onFocusBlur.bind(this)},{type:"click",target:document,cb:n.onClickAnywhere.bind(this)}],this.listeners.global))t.target[r](t.type,t.cb)},unbindGlobal(){this.events.bindGlobal.call(this,!0)},callbacks:{onFocusBlur(e){var t=this.settings,n=e.target?this.trim(e.target.textContent):"",r=this.value?.[0]?.[t.tagTextProp],o=e.type,i=t.dropdown.enabled>=0,a={relatedTarget:e.relatedTarget},u=this.state.actions.selectOption&&(i||!t.dropdown.closeOnSelect),s=this.state.actions.addNew&&i,l=e.relatedTarget&&k.call(this,e.relatedTarget)&&this.DOM.scope.contains(e.relatedTarget);if("blur"==o){if(e.relatedTarget===this.DOM.scope)return this.dropdown.hide(),void this.DOM.input.focus();this.postUpdate(),t.onChangeAfterBlur&&this.triggerChangeEvent()}if(!u&&!s)if(this.state.hasFocus="focus"==o&&+new Date,this.toggleFocusClass(this.state.hasFocus),"mix"!=t.mode){if("focus"==o)return this.trigger("focus",a),void(0!==t.dropdown.enabled&&t.userInput||this.dropdown.show(this.value.length?"":void 0));"blur"==o&&(this.trigger("blur",a),this.loading(!1),"select"==t.mode&&(l&&(this.removeTags(),n=""),r===n&&(n="")),n&&!this.state.actions.selectOption&&t.addTagOnBlur&&t.addTagOn.includes("blur")&&this.addTags(n,!0)),this.DOM.input.removeAttribute("style"),this.dropdown.hide()}else"focus"==o?this.trigger("focus",a):"blur"==e.type&&(this.trigger("blur",a),this.loading(!1),this.dropdown.hide(),this.state.dropdown.visible=void 0,this.setStateSelection())},onCompositionStart(e){this.state.composing=!0},onCompositionEnd(e){this.state.composing=!1},onWindowKeyDown(e){var t,n=document.activeElement,r=k.call(this,n)&&this.DOM.scope.contains(document.activeElement),o=r&&n.hasAttribute("readonly");if(r&&!o)switch(t=n.nextElementSibling,e.key){case"Backspace":this.settings.readonly||(this.removeTags(n),(t||this.DOM.input).focus());break;case"Enter":setTimeout(this.editTag.bind(this),0,n)}},onKeydown(e){var t=this.settings;if(!this.state.composing&&t.userInput){"select"==t.mode&&t.enforceWhitelist&&this.value.length&&"Tab"!=e.key&&e.preventDefault();var n=this.trim(e.target.textContent);this.trigger("keydown",{event:e}),t.hooks.beforeKeyDown(e,{tagify:this}).then((r=>{if("mix"==t.mode){switch(e.key){case"Left":case"ArrowLeft":this.state.actions.ArrowLeft=!0;break;case"Delete":case"Backspace":if(this.state.editing)return;var o=document.getSelection(),i="Delete"==e.key&&o.anchorOffset==(o.anchorNode.length||0),a=o.anchorNode.previousSibling,u=1==o.anchorNode.nodeType||!o.anchorOffset&&a&&1==a.nodeType&&o.anchorNode.previousSibling;l(this.DOM.input.innerHTML);var s,c,d,f=this.getTagElms(),h=1===o.anchorNode.length&&o.anchorNode.nodeValue==String.fromCharCode(8203);if("edit"==t.backspace&&u)return s=1==o.anchorNode.nodeType?null:o.anchorNode.previousElementSibling,setTimeout(this.editTag.bind(this),0,s),void e.preventDefault();if(w()&&u instanceof Element)return d=p(u),u.hasAttribute("readonly")||u.remove(),this.DOM.input.focus(),void setTimeout((()=>{E(d),this.DOM.input.click()}));if("BR"==o.anchorNode.nodeName)return;if((i||u)&&1==o.anchorNode.nodeType?c=0==o.anchorOffset?i?f[0]:null:f[Math.min(f.length,o.anchorOffset)-1]:i?c=o.anchorNode.nextElementSibling:u instanceof Element&&(c=u),3==o.anchorNode.nodeType&&!o.anchorNode.nodeValue&&o.anchorNode.previousElementSibling&&e.preventDefault(),(u||i)&&!t.backspace)return void e.preventDefault();if("Range"!=o.type&&!o.anchorOffset&&o.anchorNode==this.DOM.input&&"Delete"!=e.key)return void e.preventDefault();if("Range"!=o.type&&c&&c.hasAttribute("readonly"))return void E(p(c));"Delete"==e.key&&h&&O(o.anchorNode.nextSibling)&&this.removeTags(o.anchorNode.nextSibling),clearTimeout(R),R=setTimeout((()=>{var e=document.getSelection();l(this.DOM.input.innerHTML),!i&&e.anchorNode.previousSibling,this.value=[].map.call(f,((e,t)=>{var n=O(e);if(e.parentNode||n.readonly)return n;this.trigger("remove",{tag:e,index:t,data:n})})).filter((e=>e))}),20)}return!0}var g="manual"==t.dropdown.position;switch(e.key){case"Backspace":"select"==t.mode&&t.enforceWhitelist&&this.value.length?this.removeTags():this.state.dropdown.visible&&"manual"!=t.dropdown.position||""!=e.target.textContent&&8203!=n.charCodeAt(0)||(!0===t.backspace?this.removeTags():"edit"==t.backspace&&setTimeout(this.editTag.bind(this),0));break;case"Esc":case"Escape":if(this.state.dropdown.visible)return;e.target.blur();break;case"Down":case"ArrowDown":this.state.dropdown.visible||this.dropdown.show();break;case"ArrowRight":{let e=this.state.inputSuggestion||this.state.ddItemData;if(e&&t.autoComplete.rightKey)return void this.addTags([e],!0);break}case"Tab":{let r="select"==t.mode;if(!n||r)return!0;e.preventDefault()}case"Enter":if(this.state.dropdown.visible&&!g)return;e.preventDefault(),setTimeout((()=>{this.state.dropdown.visible&&!g||this.state.actions.selectOption||!t.addTagOn.includes(e.key.toLowerCase())||this.addTags(n,!0)}))}})).catch((e=>e))}},onInput(e){this.postUpdate();var t=this.settings;if("mix"==t.mode)return this.events.callbacks.onMixTagsInput.call(this,e);var n=this.input.normalize.call(this,void 0,{trim:!1}),r=n.length>=t.dropdown.enabled,o={value:n,inputElm:this.DOM.input},i=this.validateTag({value:n});"select"==t.mode&&this.toggleScopeValidation(i),o.isValid=i,this.state.inputText!=n&&(this.input.set.call(this,n,!1),-1!=n.search(t.delimiters)?this.addTags(n)&&this.input.set.call(this):t.dropdown.enabled>=0&&this.dropdown[r?"show":"hide"](n),this.trigger("input",o))},onMixTagsInput(e){var t,n,r,o,i,a,u,s,l=this.settings,c=this.value.length,d=this.getTagElms(),f=document.createDocumentFragment(),p=window.getSelection().getRangeAt(0),h=[].map.call(d,(e=>O(e).value));if("deleteContentBackward"==e.inputType&&w()&&this.events.callbacks.onKeydown.call(this,{target:e.target,key:"Backspace"}),C(this.getTagElms()),this.value.slice().forEach((e=>{e.readonly&&!h.includes(e.value)&&f.appendChild(this.createTagElem(e))})),f.childNodes.length&&(p.insertNode(f),this.setRangeAtStartEnd(!1,f.lastChild)),d.length!=c)return this.value=[].map.call(this.getTagElms(),(e=>O(e))),void this.update({withoutChangeEvent:!0});if(this.hasMaxTags())return!0;if(window.getSelection&&(a=window.getSelection()).rangeCount>0&&3==a.anchorNode.nodeType){if((p=a.getRangeAt(0).cloneRange()).collapse(!0),p.setStart(a.focusNode,0),r=(t=p.toString().slice(0,p.endOffset)).split(l.pattern).length-1,(n=t.match(l.pattern))&&(o=t.slice(t.lastIndexOf(n[n.length-1]))),o){if(this.state.actions.ArrowLeft=!1,this.state.tag={prefix:o.match(l.pattern)[0],value:o.replace(l.pattern,"")},this.state.tag.baseOffset=a.baseOffset-this.state.tag.value.length,s=this.state.tag.value.match(l.delimiters))return this.state.tag.value=this.state.tag.value.replace(l.delimiters,""),this.state.tag.delimiters=s[0],this.addTags(this.state.tag.value,l.dropdown.clearOnSelect),void this.dropdown.hide();i=this.state.tag.value.length>=l.dropdown.enabled;try{u=(u=this.state.flaggedTags[this.state.tag.baseOffset]).prefix==this.state.tag.prefix&&u.value[0]==this.state.tag.value[0],this.state.flaggedTags[this.state.tag.baseOffset]&&!this.state.tag.value&&delete this.state.flaggedTags[this.state.tag.baseOffset]}catch(e){}(u||r{this.update({withoutChangeEvent:!0}),this.trigger("input",y({},this.state.tag,{textContent:this.DOM.input.textContent})),this.state.tag&&this.dropdown[i?"show":"hide"](this.state.tag.value)}),10)},onInputIE(e){var t=this;setTimeout((function(){t.events.callbacks.onInput.call(t,e)}))},observeOriginalInputValue(){this.DOM.originalInput.parentNode||this.destroy(),this.DOM.originalInput.value!=this.DOM.originalInput.tagifyValue&&this.loadOriginalValues()},onClickAnywhere(e){e.target==this.DOM.scope||this.DOM.scope.contains(e.target)||(this.toggleFocusClass(!1),this.state.hasFocus=!1)},onClickScope(e){var t=this.settings,n=e.target.closest("."+t.classNames.tag),r=+new Date-this.state.hasFocus;if(e.target!=this.DOM.scope){if(!e.target.classList.contains(t.classNames.tagX))return n?(this.trigger("click",{tag:n,index:this.getNodeIndex(n),data:O(n),event:e}),void(1!==t.editTags&&1!==t.editTags.clicks||this.events.callbacks.onDoubleClickScope.call(this,e))):void(e.target==this.DOM.input&&("mix"==t.mode&&this.fixFirefoxLastTagNoCaret(),r>500)?this.state.dropdown.visible?this.dropdown.hide():0===t.dropdown.enabled&&"mix"!=t.mode&&this.dropdown.show(this.value.length?"":void 0):"select"!=t.mode||0!==t.dropdown.enabled||this.state.dropdown.visible||this.dropdown.show());this.removeTags(e.target.parentNode)}else this.DOM.input.focus()},onPaste(e){e.preventDefault();var t,n,r=this.settings;if("select"==r.mode&&r.enforceWhitelist||!r.userInput)return!1;r.readonly||(t=e.clipboardData||window.clipboardData,n=t.getData("Text"),r.hooks.beforePaste(e,{tagify:this,pastedText:n,clipboardData:t}).then((t=>{void 0===t&&(t=n),t&&(this.injectAtCaret(t,window.getSelection().getRangeAt(0)),"mix"==this.settings.mode?this.events.callbacks.onMixTagsInput.call(this,e):this.settings.pasteAsTags?this.addTags(this.state.inputText+t,!0):(this.state.inputText=t,this.dropdown.show(t)))})).catch((e=>e)))},onDrop(e){e.preventDefault()},onEditTagInput(e,t){var n=e.closest("."+this.settings.classNames.tag),r=this.getNodeIndex(n),o=O(n),i=this.input.normalize.call(this,e),a={[this.settings.tagTextProp]:i,__tagId:o.__tagId},u=this.validateTag(a);this.editTagChangeDetected(y(o,a))||!0!==e.originalIsValid||(u=!0),n.classList.toggle(this.settings.classNames.tagInvalid,!0!==u),o.__isValid=u,n.title=!0===u?o.title||o.value:u,i.length>=this.settings.dropdown.enabled&&(this.state.editing&&(this.state.editing.value=i),this.dropdown.show(i)),this.trigger("edit:input",{tag:n,index:r,data:y({},this.value[r],{newValue:i}),event:t})},onEditTagPaste(e,t){var n=(t.clipboardData||window.clipboardData).getData("Text");t.preventDefault();var r=j(n);this.setRangeAtStartEnd(!1,r)},onEditTagFocus(e){this.state.editing={scope:e,input:e.querySelector("[contenteditable]")}},onEditTagBlur(e){if(this.state.editing&&(this.state.hasFocus||this.toggleFocusClass(),this.DOM.scope.contains(e))){var t,n,r=this.settings,o=e.closest("."+r.classNames.tag),i=O(o),a=this.input.normalize.call(this,e),u={[r.tagTextProp]:a,__tagId:i.__tagId},s=i.__originalData,l=this.editTagChangeDetected(y(i,u)),c=this.validateTag(u);if(a)if(l){if(t=this.hasMaxTags(),n=y({},s,{[r.tagTextProp]:this.trim(a),__isValid:c}),r.transformTag.call(this,n,s),!0!==(c=(!t||!0===s.__isValid)&&this.validateTag(n))){if(this.trigger("invalid",{data:n,tag:o,message:c}),r.editTags.keepInvalid)return;r.keepInvalidTags?n.__isValid=c:n=s}else r.keepInvalidTags&&(delete n.title,delete n["aria-invalid"],delete n.class);this.onEditTagDone(o,n)}else this.onEditTagDone(o,s);else this.onEditTagDone(o)}},onEditTagkeydown(e,t){if(!this.state.composing)switch(this.trigger("edit:keydown",{event:e}),e.key){case"Esc":case"Escape":this.state.editing=!1,t.__tagifyTagData.__originalData.value?t.parentNode.replaceChild(t.__tagifyTagData.__originalHTML,t):t.remove();break;case"Enter":case"Tab":e.preventDefault(),e.target.blur()}},onDoubleClickScope(e){var t,n,r=e.target.closest("."+this.settings.classNames.tag),o=O(r),i=this.settings;r&&i.userInput&&!1!==o.editable&&(t=r.classList.contains(this.settings.classNames.tagEditing),n=r.hasAttribute("readonly"),"select"==i.mode||i.readonly||t||n||!this.settings.editTags||this.editTag(r),this.toggleFocusClass(!0),this.trigger("dblclick",{tag:r,index:this.getNodeIndex(r),data:O(r)}))},onInputDOMChange(e){e.forEach((e=>{e.addedNodes.forEach((e=>{if("

"==e.outerHTML)e.replaceWith(document.createElement("br"));else if(1==e.nodeType&&e.querySelector(this.settings.classNames.tagSelector)){let t=document.createTextNode("");3==e.childNodes[0].nodeType&&"BR"!=e.previousSibling.nodeName&&(t=document.createTextNode("\n")),e.replaceWith(t,...[...e.childNodes].slice(0,-1)),E(t)}else if(k.call(this,e))if(3!=e.previousSibling?.nodeType||e.previousSibling.textContent||e.previousSibling.remove(),e.previousSibling&&"BR"==e.previousSibling.nodeName){e.previousSibling.replaceWith("\n"+i);let t=e.nextSibling,n="";for(;t;)n+=t.textContent,t=t.nextSibling;n.trim()&&E(e.previousSibling)}else e.previousSibling&&!O(e.previousSibling)||e.before(i)})),e.removedNodes.forEach((e=>{e&&"BR"==e.nodeName&&k.call(this,t)&&(this.removeTags(t),this.fixFirefoxLastTagNoCaret())}))}));var t=this.DOM.input.lastChild;t&&""==t.nodeValue&&t.remove(),t&&"BR"==t.nodeName||this.DOM.input.appendChild(document.createElement("br"))}}};function q(e,t){if(!e){console.warn("Tagify:","input element not found",e);const t=new Proxy(this,{get:()=>()=>t});return t}if(e.__tagify)return console.warn("Tagify: ","input element is already Tagified - Same instance is returned.",e),e.__tagify;y(this,Z(this)),this.isFirefox=/firefox|fxios/i.test(navigator.userAgent)&&!/seamonkey/i.test(navigator.userAgent),this.isIE=window.document.documentMode,t=t||{},this.getPersistedData=A(t.id),this.setPersistedData=L(t.id),this.clearPersistedData=N(t.id),this.applySettings(e,t),this.state={inputText:"",editing:!1,composing:!1,actions:{},mixMode:{},dropdown:{},flaggedTags:{}},this.value=[],this.listeners={},this.DOM={},this.build(e),T.call(this),this.getCSSVars(),this.loadOriginalValues(),this.events.customBinding.call(this),this.events.binding.call(this),e.autofocus&&this.DOM.input.focus(),e.__tagify=this}return q.prototype={_dropdown:D,placeCaretAfterNode:E,getSetTagData:O,helpers:{sameStr:a,removeCollectionProp:u,omit:s,isObject:g,parseHTML:c,escapeHTML:h,extend:y,concatWithoutDups:m,getUID:x,isNodeTag:k},customEventsList:["change","add","remove","invalid","input","click","keydown","focus","blur","edit:input","edit:beforeUpdate","edit:updated","edit:start","edit:keydown","dropdown:show","dropdown:hide","dropdown:select","dropdown:updated","dropdown:noMatch","dropdown:scroll"],dataProps:["__isValid","__removed","__originalData","__originalHTML","__tagId"],trim(e){return this.settings.trim&&e&&"string"==typeof e?e.trim():e},parseHTML:c,templates:Y,parseTemplate(e,t){return c((e=this.settings.templates[e]||e).apply(this,t))},set whitelist(e){const t=e&&Array.isArray(e);this.settings.whitelist=t?e:[],this.setPersistedData(t?e:[],"whitelist")},get whitelist(){return this.settings.whitelist},generateClassSelectors(e){for(let t in e){let n=t;Object.defineProperty(e,n+"Selector",{get(){return"."+this[n].split(" ")[0]}})}},applySettings(e,n){_.templates=this.templates;var r={dropdown:{position:"text"}},o=y({},_,"mix"==n.mode?r:{}),i=this.settings=y({},o,n);if(i.disabled=e.hasAttribute("disabled"),i.readonly=i.readonly||e.hasAttribute("readonly"),i.placeholder=h(e.getAttribute("placeholder")||i.placeholder||""),i.required=e.hasAttribute("required"),this.generateClassSelectors(i.classNames),void 0===i.dropdown.includeSelectedTags&&(i.dropdown.includeSelectedTags=i.duplicates),this.isIE&&(i.autoComplete=!1),["whitelist","blacklist"].forEach((t=>{var n=e.getAttribute("data-"+t);n&&(n=n.split(i.delimiters))instanceof Array&&(i[t]=n)})),"autoComplete"in n&&!g(n.autoComplete)&&(i.autoComplete=_.autoComplete,i.autoComplete.enabled=n.autoComplete),"mix"==i.mode&&(i.pattern=i.pattern||/@/,i.autoComplete.rightKey=!0,i.delimiters=n.delimiters||null,i.tagTextProp&&!i.dropdown.searchKeys.includes(i.tagTextProp)&&i.dropdown.searchKeys.push(i.tagTextProp)),e.pattern)try{i.pattern=new RegExp(e.pattern)}catch(e){}if(i.delimiters){i._delimiters=i.delimiters;try{i.delimiters=new RegExp(this.settings.delimiters,"g")}catch(e){}}i.disabled&&(i.userInput=!1),this.TEXTS=t(t({},I),i.texts||{}),("select"!=i.mode||n.dropdown?.enabled)&&i.userInput||(i.dropdown.enabled=0),i.dropdown.appendTarget=n.dropdown?.appendTarget||document.body;let a=this.getPersistedData("whitelist");Array.isArray(a)&&(this.whitelist=Array.isArray(i.whitelist)?m(i.whitelist,a):a)},getAttributes(e){var t,n=this.getCustomAttributes(e),r="";for(t in n)r+=" "+t+(void 0!==e[t]?`="${n[t]}"`:"");return r},getCustomAttributes(e){if(!g(e))return"";var t,n={};for(t in e)"__"!=t.slice(0,2)&&"class"!=t&&e.hasOwnProperty(t)&&void 0!==e[t]&&(n[t]=h(e[t]));return n},setStateSelection(){var e=window.getSelection(),t={anchorOffset:e.anchorOffset,anchorNode:e.anchorNode,range:e.getRangeAt&&e.rangeCount&&e.getRangeAt(0)};return this.state.selection=t,t},getCSSVars(){var e=getComputedStyle(this.DOM.scope,null);const t=t=>e.getPropertyValue("--"+t);function n(e){if(!e)return{};var t=(e=e.trim().split(" ")[0]).split(/\d+/g).filter((e=>e)).pop().trim();return{value:+e.split(t).filter((e=>e))[0].trim(),unit:t}}this.CSSVars={tagHideTransition:(e=>{let t=e.value;return"s"==e.unit?1e3*t:t})(n(t("tag-hide-transition")))}},build(e){var t=this.DOM;this.settings.mixMode.integrated?(t.originalInput=null,t.scope=e,t.input=e):(t.originalInput=e,t.originalInput_tabIndex=e.tabIndex,t.scope=this.parseTemplate("wrapper",[e,this.settings]),t.input=t.scope.querySelector(this.settings.classNames.inputSelector),e.parentNode.insertBefore(t.scope,e),e.tabIndex=-1)},destroy(){this.events.unbindGlobal.call(this),this.DOM.scope.parentNode.removeChild(this.DOM.scope),this.DOM.originalInput.tabIndex=this.DOM.originalInput_tabIndex,delete this.DOM.originalInput.__tagify,this.dropdown.hide(!0),clearTimeout(this.dropdownHide__bindEventsTimeout),clearInterval(this.listeners.main.originalInputValueObserverInterval)},loadOriginalValues(e){var t,n=this.settings;if(this.state.blockChangeEvent=!0,void 0===e){const t=this.getPersistedData("value");e=t&&!this.DOM.originalInput.value?t:n.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value}if(this.removeAllTags(),e)if("mix"==n.mode)this.parseMixTags(e),(t=this.DOM.input.lastChild)&&"BR"==t.tagName||this.DOM.input.insertAdjacentHTML("beforeend","
");else{try{JSON.parse(e)instanceof Array&&(e=JSON.parse(e))}catch(e){}this.addTags(e,!0).forEach((e=>e&&e.classList.add(n.classNames.tagNoAnimation)))}else this.postUpdate();this.state.lastOriginalValueReported=n.mixMode.integrated?"":this.DOM.originalInput.value},cloneEvent(e){var t={};for(var n in e)"path"!=n&&(t[n]=e[n]);return t},loading(e){return this.state.isLoading=e,this.DOM.scope.classList[e?"add":"remove"](this.settings.classNames.scopeLoading),this},tagLoading(e,t){return e&&e.classList[t?"add":"remove"](this.settings.classNames.tagLoading),this},toggleClass(e,t){"string"==typeof e&&this.DOM.scope.classList.toggle(e,t)},toggleScopeValidation(e){var t=!0===e||void 0===e;!this.settings.required&&e&&e===this.TEXTS.empty&&(t=!0),this.toggleClass(this.settings.classNames.tagInvalid,!t),this.DOM.scope.title=t?"":e},toggleFocusClass(e){this.toggleClass(this.settings.classNames.focus,!!e)},triggerChangeEvent:F,events:B,fixFirefoxLastTagNoCaret(){},setRangeAtStartEnd(e,t){if(t){e="number"==typeof e?e:!!e,t=t.lastChild||t;var n=document.getSelection();if(n.focusNode instanceof Element&&!this.DOM.input.contains(n.focusNode))return!0;try{n.rangeCount>=1&&["Start","End"].forEach((r=>n.getRangeAt(0)["set"+r](t,e||t.length)))}catch(e){console.warn("Tagify: ",e)}}},insertAfterTag(e,t){if(t=t||this.settings.mixMode.insertAfterTag,e&&e.parentNode&&t)return t="string"==typeof t?document.createTextNode(t):t,e.parentNode.insertBefore(t,e.nextSibling),t},editTagChangeDetected(e){var t=e.__originalData;for(var n in t)if(!this.dataProps.includes(n)&&e[n]!=t[n])return!0;return!1},getTagTextNode(e){return e.querySelector(this.settings.classNames.tagTextSelector)},setTagTextNode(e,t){this.getTagTextNode(e).innerHTML=h(t)},editTag(e,t){e=e||this.getLastTag(),t=t||{},this.dropdown.hide();var n=this.settings,r=this.getTagTextNode(e),o=this.getNodeIndex(e),i=O(e),a=this.events.callbacks,u=!0;if(r){if(!(i instanceof Object&&"editable"in i)||i.editable)return i=O(e,{__originalData:y({},i),__originalHTML:e.cloneNode(!0)}),O(i.__originalHTML,i.__originalData),r.setAttribute("contenteditable",!0),e.classList.add(n.classNames.tagEditing),r.addEventListener("focus",a.onEditTagFocus.bind(this,e)),r.addEventListener("blur",a.onEditTagBlur.bind(this,this.getTagTextNode(e))),r.addEventListener("input",a.onEditTagInput.bind(this,r)),r.addEventListener("paste",a.onEditTagPaste.bind(this,r)),r.addEventListener("keydown",(t=>a.onEditTagkeydown.call(this,t,e))),r.addEventListener("compositionstart",a.onCompositionStart.bind(this)),r.addEventListener("compositionend",a.onCompositionEnd.bind(this)),t.skipValidation||(u=this.editTagToggleValidity(e)),r.originalIsValid=u,this.trigger("edit:start",{tag:e,index:o,data:i,isValid:u}),r.focus(),this.setRangeAtStartEnd(!1,r),this}else console.warn("Cannot find element in Tag template: .",n.classNames.tagTextSelector)},editTagToggleValidity(e,t){var n;if(t=t||O(e))return(n=!("__isValid"in t)||!0===t.__isValid)||this.removeTagsFromValue(e),this.update(),e.classList.toggle(this.settings.classNames.tagNotAllowed,!n),t.__isValid=n,t.__isValid;console.warn("tag has no data: ",e,t)},onEditTagDone(e,t){e=e||this.state.editing.scope,t=t||{};var n={tag:e,index:this.getNodeIndex(e),previousData:O(e),data:t},r=this.settings;function o(){var e=t[r.tagTextProp];return e?!!e.trim()&&e:r.tagTextProp in t?void 0:t.value}this.trigger("edit:beforeUpdate",n,{cloneData:!1}),this.state.editing=!1,delete t.__originalData,delete t.__originalHTML,e&&o()?(e=this.replaceTag(e,t),this.editTagToggleValidity(e,t),r.a11y.focusableTags?e.focus():E(e)):e&&this.removeTags(e),this.trigger("edit:updated",n),this.dropdown.hide(),this.settings.keepInvalidTags&&this.reCheckInvalidTags()},replaceTag(e,t){t&&t.value||(t=e.__tagifyTagData),t.__isValid&&1!=t.__isValid&&y(t,this.getInvalidTagAttrs(t,t.__isValid));var n=this.createTagElem(t);return e.parentNode.replaceChild(n,e),this.updateValueByDOMTags(),n},updateValueByDOMTags(){this.value.length=0,[].forEach.call(this.getTagElms(),(e=>{e.classList.contains(this.settings.classNames.tagNotAllowed.split(" ")[0])||this.value.push(O(e))})),this.update()},injectAtCaret(e,t){if(!(t=t||this.state.selection?.range)&&e)return this.appendMixTags(e),this;let n=j(e,t);return this.setRangeAtStartEnd(!1,n),this.updateValueByDOMTags(),this.update(),this},input:{set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];var n=this.settings.dropdown.closeOnSelect;this.state.inputText=e,t&&(this.DOM.input.innerHTML=h(""+e)),!e&&n&&this.dropdown.hide.bind(this),this.input.autocomplete.suggest.call(this),this.input.validate.call(this)},raw(){return this.DOM.input.textContent},validate(){var e=!this.state.inputText||!0===this.validateTag({value:this.state.inputText});return this.DOM.input.classList.toggle(this.settings.classNames.inputInvalid,!e),e},normalize(e,t){var n=e||this.DOM.input,r=[];n.childNodes.forEach((e=>3==e.nodeType&&r.push(e.nodeValue))),r=r.join("\n");try{r=r.replace(/(?:\r\n|\r|\n)/g,this.settings.delimiters.source.charAt(0))}catch(e){}return r=r.replace(/\s/g," "),t?.trim?this.trim(r):r},autocomplete:{suggest(e){if(this.settings.autoComplete.enabled){"string"==typeof(e=e||{value:""})&&(e={value:e});var t=this.dropdown.getMappedValue(e);if("number"!=typeof t){var n=t.substr(0,this.state.inputText.length).toLowerCase(),r=t.substring(this.state.inputText.length);t&&this.state.inputText&&n==this.state.inputText.toLowerCase()?(this.DOM.input.setAttribute("data-suggest",r),this.state.inputSuggestion=e):(this.DOM.input.removeAttribute("data-suggest"),delete this.state.inputSuggestion)}}},set(e){var t=this.DOM.input.getAttribute("data-suggest"),n=e||(t?this.state.inputText+t:null);return!!n&&("mix"==this.settings.mode?this.replaceTextWithNode(document.createTextNode(this.state.tag.prefix+n)):(this.input.set.call(this,n),this.setRangeAtStartEnd(!1,this.DOM.input)),this.input.autocomplete.suggest.call(this),this.dropdown.hide(),!0)}}},getTagIdx(e){return this.value.findIndex((t=>t.__tagId==(e||{}).__tagId))},getNodeIndex(e){var t=0;if(e)for(;e=e.previousElementSibling;)t++;return t},getTagElms(){for(var e=arguments.length,t=new Array(e),n=0;n{r.__tagifyTagData&&a(this.trim(r.__tagifyTagData.value),e,n)&&t.push(o)})),t},getTagElmByValue(e){var t=this.getTagIndexByValue(e)[0];return this.getTagElms()[t]},flashTag(e){e&&(e.classList.add(this.settings.classNames.tagFlash),setTimeout((()=>{e.classList.remove(this.settings.classNames.tagFlash)}),100))},isTagBlacklisted(e){return e=this.trim(e.toLowerCase()),this.settings.blacklist.filter((t=>(""+t).toLowerCase()==e)).length},isTagWhitelisted(e){return!!this.getWhitelistItem(e)},getWhitelistItem(e,t,n){t=t||"value";var r,o=this.settings;return(n=n||o.whitelist).some((n=>{var i="string"==typeof n?n:n[t]||n.value;if(a(i,e,o.dropdown.caseSensitive,o.trim))return r="string"==typeof n?{value:n}:n,!0})),r||"value"!=t||"value"==o.tagTextProp||(r=this.getWhitelistItem(e,o.tagTextProp,n)),r},validateTag(e){var t=this.settings,n="value"in e?"value":t.tagTextProp,r=this.trim(e[n]+"");return(e[n]+"").trim()?"mix"!=t.mode&&t.pattern&&t.pattern instanceof RegExp&&!t.pattern.test(r)?this.TEXTS.pattern:!t.duplicates&&this.isTagDuplicate(r,t.dropdown.caseSensitive,e.__tagId)?this.TEXTS.duplicate:this.isTagBlacklisted(r)||t.enforceWhitelist&&!this.isTagWhitelisted(r)?this.TEXTS.notAllowed:!t.validate||t.validate(e):this.TEXTS.empty},getInvalidTagAttrs(e,t){return{"aria-invalid":!0,class:`${e.class||""} ${this.settings.classNames.tagNotAllowed}`.trim(),title:t}},hasMaxTags(){return this.value.length>=this.settings.maxTags&&this.TEXTS.exceed},setReadonly(e,t){var n=this.settings;document.activeElement.blur(),n[t||"readonly"]=e,this.DOM.scope[(e?"set":"remove")+"Attribute"](t||"readonly",!0),this.settings.userInput=!0,this.setContentEditable(!e)},setContentEditable(e){this.settings.userInput&&(this.DOM.input.contentEditable=e,this.DOM.input.tabIndex=e?0:-1)},setDisabled(e){this.setReadonly(e,"disabled")},normalizeTags(e){var t=this.settings,n=t.whitelist,r=t.delimiters,o=t.mode,i=t.tagTextProp,a=[],u=!!n&&n[0]instanceof Object,s=Array.isArray(e),l=s&&e[0].value,c=e=>(e+"").split(r).filter((e=>e)).map((e=>({[i]:this.trim(e),value:this.trim(e)})));if("number"==typeof e&&(e=e.toString()),"string"==typeof e){if(!e.trim())return[];e=c(e)}else s&&(e=[].concat(...e.map((e=>null!=e.value?e:c(e)))));return u&&!l&&(e.forEach((e=>{var t=a.map((e=>e.value)),n=this.dropdown.filterListItems.call(this,e[i],{exact:!0});this.settings.duplicates||(n=n.filter((e=>!t.includes(e.value))));var r=n.length>1?this.getWhitelistItem(e[i],i,n):n[0];r&&r instanceof Object?a.push(r):"mix"!=o&&(null==e.value&&(e.value=e[i]),a.push(e))})),a.length&&(e=a)),e},parseMixTags(e){var t=this.settings,n=t.mixTagsInterpolator,r=t.duplicates,o=t.transformTag,i=t.enforceWhitelist,a=t.maxTags,u=t.tagTextProp,s=[];e=e.split(n[0]).map(((e,t)=>{var l,c,d,f=e.split(n[1]),p=f[0],h=s.length==a;try{if(p==+p)throw Error;c=JSON.parse(p)}catch(e){c=this.normalizeTags(p)[0]||{value:p}}if(o.call(this,c),h||!(f.length>1)||i&&!this.isTagWhitelisted(c.value)||!r&&this.isTagDuplicate(c.value)){if(e)return t?n[0]+e:e}else c[l=c[u]?u:"value"]=this.trim(c[l]),d=this.createTagElem(c),s.push(c),d.classList.add(this.settings.classNames.tagNoAnimation),f[0]=d.outerHTML,this.value.push(c);return f.join("")})).join(""),this.DOM.input.innerHTML=e,this.DOM.input.appendChild(document.createTextNode("")),this.DOM.input.normalize();var l=this.getTagElms();return l.forEach(((e,t)=>O(e,s[t]))),this.update({withoutChangeEvent:!0}),C(l,this.state.hasFocus),e},replaceTextWithNode(e,t){if(this.state.tag||t){t=t||this.state.tag.prefix+this.state.tag.value;var n,r,o=this.state.selection||window.getSelection(),i=o.anchorNode,a=this.state.tag.delimiters?this.state.tag.delimiters.length:0;return i.splitText(o.anchorOffset-a),-1==(n=i.nodeValue.lastIndexOf(t))||(r=i.splitText(n),e&&i.parentNode.replaceChild(e,r)),!0}},selectTag(e,t){var n=this.settings;if(!n.enforceWhitelist||this.isTagWhitelisted(t.value)){this.input.set.call(this,t[n.tagTextProp]||t.value,!0),this.state.actions.selectOption&&setTimeout((()=>this.setRangeAtStartEnd(!1,this.DOM.input)));var r=this.getLastTag();return r?this.replaceTag(r,t):this.appendTag(e),this.value[0]=t,this.update(),this.trigger("add",{tag:e,data:t}),[e]}},addEmptyTag(e){var t=y({value:""},e||{}),n=this.createTagElem(t);O(n,t),this.appendTag(n),this.editTag(n,{skipValidation:!0})},addTags(e,t,n){var r=[],o=this.settings,i=[],a=document.createDocumentFragment();if(n=n||o.skipInvalid,!e||0==e.length)return r;switch(e=this.normalizeTags(e),o.mode){case"mix":return this.addMixTags(e);case"select":t=!1,this.removeAllTags()}return this.DOM.input.removeAttribute("style"),e.forEach((e=>{var t,u={},s=Object.assign({},e,{value:e.value+""});if(e=Object.assign({},s),o.transformTag.call(this,e),e.__isValid=this.hasMaxTags()||this.validateTag(e),!0!==e.__isValid){if(n)return;if(y(u,this.getInvalidTagAttrs(e,e.__isValid),{__preInvalidData:s}),e.__isValid==this.TEXTS.duplicate&&this.flashTag(this.getTagElmByValue(e.value)),!o.createInvalidTags)return void i.push(e.value)}if("readonly"in e&&(e.readonly?u["aria-readonly"]=!0:delete e.readonly),t=this.createTagElem(e,u),r.push(t),"select"==o.mode)return this.selectTag(t,e);a.appendChild(t),e.__isValid&&!0===e.__isValid?(this.value.push(e),this.trigger("add",{tag:t,index:this.value.length-1,data:e})):(this.trigger("invalid",{data:e,index:this.value.length,tag:t,message:e.__isValid}),o.keepInvalidTags||setTimeout((()=>this.removeTags(t,!0)),1e3)),this.dropdown.position()})),this.appendTag(a),this.update(),e.length&&t&&(this.input.set.call(this,o.createInvalidTags?"":i.join(o._delimiters)),this.setRangeAtStartEnd(!1,this.DOM.input)),o.dropdown.enabled&&this.dropdown.refilter(),r},addMixTags(e){if((e=this.normalizeTags(e))[0].prefix||this.state.tag)return this.prefixedTextToTag(e[0]);var t=document.createDocumentFragment();return e.forEach((e=>{var n=this.createTagElem(e);t.appendChild(n)})),this.appendMixTags(t),t},appendMixTags(e){var t=!!this.state.selection;t?this.injectAtCaret(e):(this.DOM.input.focus(),(t=this.setStateSelection()).range.setStart(this.DOM.input,t.range.endOffset),t.range.setEnd(this.DOM.input,t.range.endOffset),this.DOM.input.appendChild(e),this.updateValueByDOMTags(),this.update())},prefixedTextToTag(e){var t,n=this.settings,r=this.state.tag.delimiters;if(n.transformTag.call(this,e),e.prefix=e.prefix||this.state.tag?this.state.tag.prefix:(n.pattern.source||n.pattern)[0],t=this.createTagElem(e),this.replaceTextWithNode(t)||this.DOM.input.appendChild(t),setTimeout((()=>t.classList.add(this.settings.classNames.tagNoAnimation)),300),this.value.push(e),this.update(),!r){var o=this.insertAfterTag(t)||t;setTimeout(E,0,o)}return this.state.tag=null,this.trigger("add",y({},{tag:t},{data:e})),t},appendTag(e){var t=this.DOM,n=t.input;t.scope.insertBefore(e,n)},createTagElem(e,n){e.__tagId=x();var r,o=y({},e,t({value:h(e.value+"")},n));return f(r=this.parseTemplate("tag",[o,this])),O(r,e),r},reCheckInvalidTags(){var e=this.settings;this.getTagElms(e.classNames.tagNotAllowed).forEach(((t,n)=>{var r=O(t),o=this.hasMaxTags(),i=this.validateTag(r),a=!0===i&&!o;if("select"==e.mode&&this.toggleScopeValidation(i),a)return r=r.__preInvalidData?r.__preInvalidData:{value:r.value},this.replaceTag(t,r);t.title=o||i}))},removeTags(e,t,n){var r,o=this.settings;if(e=e&&e instanceof HTMLElement?[e]:e instanceof Array?e:e?[e]:[this.getLastTag()],r=e.reduce(((e,t)=>{t&&"string"==typeof t&&(t=this.getTagElmByValue(t));var n=O(t);return t&&n&&!n.readonly&&e.push({node:t,idx:this.getTagIdx(n),data:O(t,{__removed:!0})}),e}),[]),n="number"==typeof n?n:this.CSSVars.tagHideTransition,"select"==o.mode&&(n=0,this.input.set.call(this)),1==r.length&&"select"!=o.mode&&r[0].node.classList.contains(o.classNames.tagNotAllowed)&&(t=!0),r.length)return o.hooks.beforeRemoveTag(r,{tagify:this}).then((()=>{function e(e){e.node.parentNode&&(e.node.parentNode.removeChild(e.node),t?o.keepInvalidTags&&this.trigger("remove",{tag:e.node,index:e.idx}):(this.trigger("remove",{tag:e.node,index:e.idx,data:e.data}),this.dropdown.refilter(),this.dropdown.position(),this.DOM.input.normalize(),o.keepInvalidTags&&this.reCheckInvalidTags()))}function i(t){t.node.style.width=parseFloat(window.getComputedStyle(t.node).width)+"px",document.body.clientTop,t.node.classList.add(o.classNames.tagHide),setTimeout(e.bind(this),n,t)}n&&n>10&&1==r.length?i.call(this,r[0]):r.forEach(e.bind(this)),t||(this.removeTagsFromValue(r.map((e=>e.node))),this.update(),"select"==o.mode&&this.setContentEditable(!0))})).catch((e=>{}))},removeTagsFromDOM(){[].slice.call(this.getTagElms()).forEach((e=>e.parentNode.removeChild(e)))},removeTagsFromValue(e){(e=Array.isArray(e)?e:[e]).forEach((e=>{var t=O(e),n=this.getTagIdx(t);n>-1&&this.value.splice(n,1)}))},removeAllTags(e){e=e||{},this.value=[],"mix"==this.settings.mode?this.DOM.input.innerHTML="":this.removeTagsFromDOM(),this.dropdown.refilter(),this.dropdown.position(),this.state.dropdown.visible&&setTimeout((()=>{this.DOM.input.focus()})),"select"==this.settings.mode&&(this.input.set.call(this),this.setContentEditable(!0)),this.update(e)},postUpdate(){this.state.blockChangeEvent=!1;var e=this.settings,t=e.classNames,n="mix"==e.mode?e.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value.trim():this.value.length+this.input.raw.call(this).length;this.toggleClass(t.hasMaxTags,this.value.length>=e.maxTags),this.toggleClass(t.hasNoTags,!this.value.length),this.toggleClass(t.empty,!n),"select"==e.mode&&this.toggleScopeValidation(this.value?.[0]?.__isValid)},setOriginalInputValue(e){var t=this.DOM.originalInput;this.settings.mixMode.integrated||(t.value=e,t.tagifyValue=t.value,this.setPersistedData(e,"value"))},update(e){const t=100;function n(){var t=this.getInputValue();this.setOriginalInputValue(t),this.settings.onChangeAfterBlur&&(e||{}).withoutChangeEvent||this.state.blockChangeEvent||this.triggerChangeEvent(),this.postUpdate()}clearTimeout(this.debouncedUpdateTimeout),this.debouncedUpdateTimeout=setTimeout(n.bind(this),t)},getInputValue(){var e=this.getCleanValue();return"mix"==this.settings.mode?this.getMixedTagsAsString(e):e.length?this.settings.originalInputValueFormat?this.settings.originalInputValueFormat(e):JSON.stringify(e):""},getCleanValue(e){return u(e||this.value,this.dataProps)},getMixedTagsAsString(){var e="",t=this,n=this.settings,r=n.originalInputValueFormat||JSON.stringify,o=n.mixTagsInterpolator;function i(n){n.childNodes.forEach((n=>{if(1==n.nodeType){const a=O(n);if("BR"==n.tagName&&(e+="\r\n"),a&&k.call(t,n)){if(a.__removed)return;e+=o[0]+r(s(a,t.dataProps))+o[1]}else n.getAttribute("style")||["B","I","U"].includes(n.tagName)?e+=n.textContent:"DIV"!=n.tagName&&"P"!=n.tagName||(e+="\r\n",i(n))}else e+=n.textContent}))}return i(this.DOM.input),e}},q.prototype.removeTag=q.prototype.removeTags,q}()},72779:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t.tagify__input,.tagify[readonly]:not(.tagify--mix):not(.tagify--select)>.tagify__input{visibility:hidden;width:0;margin:5px 0}.tagify[disabled]:not(.tagify--mix):not(.tagify--select) .tagify__tag>div,.tagify[readonly]:not(.tagify--mix):not(.tagify--select) .tagify__tag>div{padding:var(--tag-pad)}.tagify[disabled]:not(.tagify--mix):not(.tagify--select) .tagify__tag>div::before,.tagify[readonly]:not(.tagify--mix):not(.tagify--select) .tagify__tag>div::before{animation:readonlyStyles 1s calc(-1s * (var(--readonly-striped) - 1)) paused}@keyframes readonlyStyles{0%{background:linear-gradient(45deg,var(--tag-bg) 25%,transparent 25%,transparent 50%,var(--tag-bg) 50%,var(--tag-bg) 75%,transparent 75%,transparent) 0/5px 5px;box-shadow:none;filter:brightness(.95)}}.tagify[disabled] .tagify__tag__removeBtn,.tagify[readonly] .tagify__tag__removeBtn{display:none}.tagify--loading .tagify__input>br:last-child{display:none}.tagify--loading .tagify__input::before{content:none}.tagify--loading .tagify__input::after{content:"";vertical-align:middle;opacity:1;width:.7em;height:.7em;width:var(--loader-size);height:var(--loader-size);min-width:0;border:3px solid;border-color:#eee #bbb #888 transparent;border-radius:50%;animation:rotateLoader .4s infinite linear;content:""!important;margin:-2px 0 -2px .5em}.tagify--loading .tagify__input:empty::after{margin-left:0}.tagify+input,.tagify+textarea{position:absolute!important;left:-9999em!important;transform:scale(0)!important}.tagify__tag{display:inline-flex;align-items:center;max-width:calc(var(--tag--max-width) - 10px);margin-inline:5px 0;margin-block:5px;position:relative;z-index:1;outline:0;line-height:normal;cursor:default;transition:.13s ease-out}.tagify__tag>div{vertical-align:top;box-sizing:border-box;max-width:100%;padding:var(--tag-pad);color:var(--tag-text-color);line-height:inherit;border-radius:var(--tag-border-radius);white-space:nowrap;transition:.13s ease-out}.tagify__tag>div>*{white-space:pre-wrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;vertical-align:top;min-width:var(--tag--min-width);max-width:var(--tag--max-width);transition:.8s ease,.1s color}.tagify__tag>div>[contenteditable]{outline:0;-webkit-user-select:text;user-select:text;cursor:text;margin:-2px;padding:2px;max-width:350px}.tagify__tag>div::before{content:"";position:absolute;border-radius:inherit;inset:var(--tag-bg-inset,0);z-index:-1;pointer-events:none;transition:120ms ease;animation:tags--bump .3s ease-out 1;box-shadow:0 0 0 var(--tag-inset-shadow-size) var(--tag-bg) inset}.tagify__tag:focus div::before,.tagify__tag:hover:not([readonly]) div::before{--tag-bg-inset:-2.5px;--tag-bg:var(--tag-hover)}.tagify__tag--loading{pointer-events:none}.tagify__tag--loading .tagify__tag__removeBtn{display:none}.tagify__tag--loading::after{--loader-size:.4em;content:"";vertical-align:middle;opacity:1;width:.7em;height:.7em;width:var(--loader-size);height:var(--loader-size);min-width:0;border:3px solid;border-color:#eee #bbb #888 transparent;border-radius:50%;animation:rotateLoader .4s infinite linear;margin:0 .5em 0 -.1em}.tagify__tag--flash div::before{animation:none}.tagify__tag--hide{width:0!important;padding-left:0;padding-right:0;margin-left:0;margin-right:0;opacity:0;transform:scale(0);transition:var(--tag-hide-transition);pointer-events:none}.tagify__tag--hide>div>*{white-space:nowrap}.tagify__tag.tagify--noAnim>div::before{animation:none}.tagify__tag.tagify--notAllowed:not(.tagify__tag--editable) div>span{opacity:.5}.tagify__tag.tagify--notAllowed:not(.tagify__tag--editable) div::before{--tag-bg:var(--tag-invalid-bg);transition:.2s}.tagify__tag[readonly] .tagify__tag__removeBtn{display:none}.tagify__tag[readonly]>div::before{animation:readonlyStyles 1s calc(-1s * (var(--readonly-striped) - 1)) paused}@keyframes readonlyStyles{0%{background:linear-gradient(45deg,var(--tag-bg) 25%,transparent 25%,transparent 50%,var(--tag-bg) 50%,var(--tag-bg) 75%,transparent 75%,transparent) 0/5px 5px;box-shadow:none;filter:brightness(.95)}}.tagify__tag--editable>div{color:var(--tag-text-color--edit)}.tagify__tag--editable>div::before{box-shadow:0 0 0 2px var(--tag-hover) inset!important}.tagify__tag--editable>.tagify__tag__removeBtn{pointer-events:none}.tagify__tag--editable>.tagify__tag__removeBtn::after{opacity:0;transform:translateX(100%) translateX(5px)}.tagify__tag--editable.tagify--invalid>div::before{box-shadow:0 0 0 2px var(--tag-invalid-color) inset!important}.tagify__tag__removeBtn{order:5;display:inline-flex;align-items:center;justify-content:center;border-radius:50px;cursor:pointer;font:14px/1 Arial;background:var(--tag-remove-btn-bg);color:var(--tag-remove-btn-color);width:14px;height:14px;margin-inline:auto 4.6666666667px;overflow:hidden;transition:.2s ease-out}.tagify__tag__removeBtn::after{content:"×";transition:.3s,color 0s}.tagify__tag__removeBtn:hover{color:#fff;background:var(--tag-remove-btn-bg--hover)}.tagify__tag__removeBtn:hover+div>span{opacity:.5}.tagify__tag__removeBtn:hover+div::before{box-shadow:0 0 0 var(--tag-inset-shadow-size) var(--tag-remove-bg,rgba(211,148,148,.3)) inset!important;transition:box-shadow .2s}.tagify:not(.tagify--mix) .tagify__input br{display:none}.tagify:not(.tagify--mix) .tagify__input *{display:inline;white-space:nowrap}.tagify__input{flex-grow:1;display:inline-block;min-width:110px;margin:5px;padding:var(--tag-pad);line-height:normal;position:relative;white-space:pre-wrap;color:var(--input-color);box-sizing:inherit}.tagify__input:empty::before{position:static}.tagify__input:focus{outline:0}.tagify__input:focus::before{transition:.2s ease-out;opacity:0;transform:translatex(6px)}@supports (-ms-ime-align:auto){.tagify__input:focus::before{display:none}}.tagify__input:focus:empty::before{transition:.2s ease-out;opacity:1;transform:none;color:rgba(0,0,0,.25);color:var(--placeholder-color-focus)}@-moz-document url-prefix(){.tagify__input:focus:empty::after{display:none}}.tagify__input::before{content:attr(data-placeholder);height:1em;line-height:1em;margin:auto 0;z-index:1;color:var(--placeholder-color);white-space:nowrap;pointer-events:none;opacity:0;position:absolute}.tagify__input::after{content:attr(data-suggest);display:inline-block;vertical-align:middle;position:absolute;min-width:calc(100% - 1.5em);text-overflow:ellipsis;overflow:hidden;white-space:pre;color:var(--tag-text-color);opacity:.3;pointer-events:none;max-width:100px}.tagify__input .tagify__tag{margin:0 1px}.tagify--mix{display:block}.tagify--mix .tagify__input{padding:5px;margin:0;width:100%;height:100%;line-height:1.5;display:block}.tagify--mix .tagify__input::before{height:auto;display:none;line-height:inherit}.tagify--mix .tagify__input::after{content:none}.tagify--select::after{content:">";opacity:.5;position:absolute;top:50%;right:0;bottom:0;font:16px monospace;line-height:8px;height:8px;pointer-events:none;transform:translate(-150%,-50%) scaleX(1.2) rotate(90deg);transition:.2s ease-in-out}.tagify--select[aria-expanded=true]::after{transform:translate(-150%,-50%) rotate(270deg) scaleY(1.2)}.tagify--select .tagify__tag{position:absolute;top:0;right:1.8em;bottom:0}.tagify--select .tagify__tag div{display:none}.tagify--select .tagify__input{width:100%}.tagify--empty .tagify__input::before{transition:.2s ease-out;opacity:1;transform:none;display:inline-block;width:auto}.tagify--mix .tagify--empty .tagify__input::before{display:inline-block}.tagify--focus{--tags-border-color:var(--tags-focus-border-color);transition:0s}.tagify--invalid{--tags-border-color:#D39494}.tagify__dropdown{position:absolute;z-index:9999;transform:translateY(-1px);border-top:1px solid var(--tagify-dd-color-primary);overflow:hidden}.tagify__dropdown[dir=rtl]{transform:translate(-100%,-1px)}.tagify__dropdown[placement=top]{margin-top:0;transform:translateY(-100%)}.tagify__dropdown[placement=top] .tagify__dropdown__wrapper{border-top-width:1.1px;border-bottom-width:0}.tagify__dropdown[position=text]{box-shadow:0 0 0 3px rgba(var(--tagify-dd-color-primary),.1);font-size:.9em}.tagify__dropdown[position=text] .tagify__dropdown__wrapper{border-width:1px}.tagify__dropdown__wrapper{max-height:var(--tagify-dd-max-height);overflow:hidden;overflow-x:hidden;background:var(--tagify-dd-bg-color);border:1px solid;border-color:var(--tagify-dd-color-primary);border-bottom-width:1.5px;border-top-width:0;box-shadow:0 2px 4px -2px rgba(0,0,0,.2);transition:.3s cubic-bezier(.5,0,.3,1),transform .15s;animation:dd-wrapper-show 0s .3s forwards}@keyframes dd-wrapper-show{to{overflow-y:auto}}.tagify__dropdown__header:empty{display:none}.tagify__dropdown__footer{display:inline-block;margin-top:.5em;padding:var(--tagify-dd-item-pad);font-size:.7em;font-style:italic;opacity:.5}.tagify__dropdown__footer:empty{display:none}.tagify__dropdown--initial .tagify__dropdown__wrapper{max-height:20px;transform:translateY(-1em)}.tagify__dropdown--initial[placement=top] .tagify__dropdown__wrapper{transform:translateY(2em)}.tagify__dropdown__item{box-sizing:border-box;padding:var(--tagify-dd-item-pad);margin:1px;white-space:pre-wrap;cursor:pointer;border-radius:2px;position:relative;outline:0;max-height:60px;max-width:100%}.tagify__dropdown__item--active{background:var(--tagify-dd-color-primary);color:#fff}.tagify__dropdown__item:active{filter:brightness(105%)}.tagify__dropdown__item--hidden{padding-top:0;padding-bottom:0;margin:0 1px;pointer-events:none;overflow:hidden;max-height:0;transition:var(--tagify-dd-item--hidden-duration,.3s)!important}.tagify__dropdown__item--hidden>*{transform:translateY(-100%);opacity:0;transition:inherit}',""]),t.Z=a},75553:function(e,t,n){"use strict";var r=n(39601),o=n.n(r),i=n(82609),a=n.n(i)()(o());a.push([e.id,'@charset "UTF-8";\n.react-datepicker__year-read-view--down-arrow,\n.react-datepicker__month-read-view--down-arrow,\n.react-datepicker__month-year-read-view--down-arrow, .react-datepicker__navigation-icon::before {\n border-color: #ccc;\n border-style: solid;\n border-width: 3px 3px 0 0;\n content: "";\n display: block;\n height: 9px;\n position: absolute;\n top: 6px;\n width: 9px;\n}\n.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle {\n margin-left: -4px;\n position: absolute;\n width: 0;\n}\n.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::after, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::after {\n box-sizing: content-box;\n position: absolute;\n border: 8px solid transparent;\n height: 0;\n width: 1px;\n content: "";\n z-index: -1;\n border-width: 8px;\n left: -8px;\n}\n.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before {\n border-bottom-color: #aeaeae;\n}\n\n.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle {\n top: 0;\n margin-top: -8px;\n}\n.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::after {\n border-top: none;\n border-bottom-color: #f0f0f0;\n}\n.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::after {\n top: 0;\n}\n.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before {\n top: -1px;\n border-bottom-color: #aeaeae;\n}\n\n.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle {\n bottom: 0;\n margin-bottom: -8px;\n}\n.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::after {\n border-bottom: none;\n border-top-color: #fff;\n}\n.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::after {\n bottom: 0;\n}\n.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before {\n bottom: -1px;\n border-top-color: #aeaeae;\n}\n\n.react-datepicker-wrapper {\n display: inline-block;\n padding: 0;\n border: 0;\n}\n\n.react-datepicker {\n font-family: "Helvetica Neue", helvetica, arial, sans-serif;\n font-size: 0.8rem;\n background-color: #fff;\n color: #000;\n border: 1px solid #aeaeae;\n border-radius: 0.3rem;\n display: inline-block;\n position: relative;\n}\n\n.react-datepicker--time-only .react-datepicker__triangle {\n left: 35px;\n}\n.react-datepicker--time-only .react-datepicker__time-container {\n border-left: 0;\n}\n.react-datepicker--time-only .react-datepicker__time,\n.react-datepicker--time-only .react-datepicker__time-box {\n border-bottom-left-radius: 0.3rem;\n border-bottom-right-radius: 0.3rem;\n}\n\n.react-datepicker__triangle {\n position: absolute;\n left: 50px;\n}\n\n.react-datepicker-popper {\n z-index: 1;\n}\n.react-datepicker-popper[data-placement^=bottom] {\n padding-top: 10px;\n}\n.react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle, .react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle {\n left: auto;\n right: 50px;\n}\n.react-datepicker-popper[data-placement^=top] {\n padding-bottom: 10px;\n}\n.react-datepicker-popper[data-placement^=right] {\n padding-left: 8px;\n}\n.react-datepicker-popper[data-placement^=right] .react-datepicker__triangle {\n left: auto;\n right: 42px;\n}\n.react-datepicker-popper[data-placement^=left] {\n padding-right: 8px;\n}\n.react-datepicker-popper[data-placement^=left] .react-datepicker__triangle {\n left: 42px;\n right: auto;\n}\n\n.react-datepicker__header {\n text-align: center;\n background-color: #f0f0f0;\n border-bottom: 1px solid #aeaeae;\n border-top-left-radius: 0.3rem;\n padding: 8px 0;\n position: relative;\n}\n.react-datepicker__header--time {\n padding-bottom: 8px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.react-datepicker__header--time:not(.react-datepicker__header--time--only) {\n border-top-left-radius: 0;\n}\n.react-datepicker__header:not(.react-datepicker__header--has-time-select) {\n border-top-right-radius: 0.3rem;\n}\n\n.react-datepicker__year-dropdown-container--select,\n.react-datepicker__month-dropdown-container--select,\n.react-datepicker__month-year-dropdown-container--select,\n.react-datepicker__year-dropdown-container--scroll,\n.react-datepicker__month-dropdown-container--scroll,\n.react-datepicker__month-year-dropdown-container--scroll {\n display: inline-block;\n margin: 0 15px;\n}\n\n.react-datepicker__current-month,\n.react-datepicker-time__header,\n.react-datepicker-year-header {\n margin-top: 0;\n color: #000;\n font-weight: bold;\n font-size: 0.944rem;\n}\n\n.react-datepicker-time__header {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n\n.react-datepicker__navigation {\n align-items: center;\n background: none;\n display: flex;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n position: absolute;\n top: 2px;\n padding: 0;\n border: none;\n z-index: 1;\n height: 32px;\n width: 32px;\n text-indent: -999em;\n overflow: hidden;\n}\n.react-datepicker__navigation--previous {\n left: 2px;\n}\n.react-datepicker__navigation--next {\n right: 2px;\n}\n.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button) {\n right: 85px;\n}\n.react-datepicker__navigation--years {\n position: relative;\n top: 0;\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n.react-datepicker__navigation--years-previous {\n top: 4px;\n}\n.react-datepicker__navigation--years-upcoming {\n top: -4px;\n}\n.react-datepicker__navigation:hover *::before {\n border-color: #a6a6a6;\n}\n\n.react-datepicker__navigation-icon {\n position: relative;\n top: -1px;\n font-size: 20px;\n width: 0;\n}\n.react-datepicker__navigation-icon--next {\n left: -2px;\n}\n.react-datepicker__navigation-icon--next::before {\n transform: rotate(45deg);\n left: -7px;\n}\n.react-datepicker__navigation-icon--previous {\n right: -2px;\n}\n.react-datepicker__navigation-icon--previous::before {\n transform: rotate(225deg);\n right: -7px;\n}\n\n.react-datepicker__month-container {\n float: left;\n}\n\n.react-datepicker__year {\n margin: 0.4rem;\n text-align: center;\n}\n.react-datepicker__year-wrapper {\n display: flex;\n flex-wrap: wrap;\n max-width: 180px;\n}\n.react-datepicker__year .react-datepicker__year-text {\n display: inline-block;\n width: 4rem;\n margin: 2px;\n}\n\n.react-datepicker__month {\n margin: 0.4rem;\n text-align: center;\n}\n.react-datepicker__month .react-datepicker__month-text,\n.react-datepicker__month .react-datepicker__quarter-text {\n display: inline-block;\n width: 4rem;\n margin: 2px;\n}\n\n.react-datepicker__input-time-container {\n clear: both;\n width: 100%;\n float: left;\n margin: 5px 0 10px 15px;\n text-align: left;\n}\n.react-datepicker__input-time-container .react-datepicker-time__caption {\n display: inline-block;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container {\n display: inline-block;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input {\n display: inline-block;\n margin-left: 10px;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input {\n width: auto;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time] {\n -moz-appearance: textfield;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter {\n margin-left: 5px;\n display: inline-block;\n}\n\n.react-datepicker__time-container {\n float: right;\n border-left: 1px solid #aeaeae;\n width: 85px;\n}\n.react-datepicker__time-container--with-today-button {\n display: inline;\n border: 1px solid #aeaeae;\n border-radius: 0.3rem;\n position: absolute;\n right: -87px;\n top: 0;\n}\n.react-datepicker__time-container .react-datepicker__time {\n position: relative;\n background: white;\n border-bottom-right-radius: 0.3rem;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {\n width: 85px;\n overflow-x: hidden;\n margin: 0 auto;\n text-align: center;\n border-bottom-right-radius: 0.3rem;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list {\n list-style: none;\n margin: 0;\n height: calc(195px + 1.7rem / 2);\n overflow-y: scroll;\n padding-right: 0;\n padding-left: 0;\n width: 100%;\n box-sizing: content-box;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item {\n height: 30px;\n padding: 5px 10px;\n white-space: nowrap;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover {\n cursor: pointer;\n background-color: #f0f0f0;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected {\n background-color: #216ba5;\n color: white;\n font-weight: bold;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover {\n background-color: #216ba5;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled {\n color: #ccc;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover {\n cursor: default;\n background-color: transparent;\n}\n\n.react-datepicker__week-number {\n color: #ccc;\n display: inline-block;\n width: 1.7rem;\n line-height: 1.7rem;\n text-align: center;\n margin: 0.166rem;\n}\n.react-datepicker__week-number.react-datepicker__week-number--clickable {\n cursor: pointer;\n}\n.react-datepicker__week-number.react-datepicker__week-number--clickable:not(.react-datepicker__week-number--selected,\n.react-datepicker__week-number--keyboard-selected):hover {\n border-radius: 0.3rem;\n background-color: #f0f0f0;\n}\n.react-datepicker__week-number--selected {\n border-radius: 0.3rem;\n background-color: #216ba5;\n color: #fff;\n}\n.react-datepicker__week-number--selected:hover {\n background-color: #1d5d90;\n}\n.react-datepicker__week-number--keyboard-selected {\n border-radius: 0.3rem;\n background-color: #2a87d0;\n color: #fff;\n}\n.react-datepicker__week-number--keyboard-selected:hover {\n background-color: #1d5d90;\n}\n\n.react-datepicker__day-names {\n white-space: nowrap;\n margin-bottom: -8px;\n}\n\n.react-datepicker__week {\n white-space: nowrap;\n}\n\n.react-datepicker__day-name,\n.react-datepicker__day,\n.react-datepicker__time-name {\n color: #000;\n display: inline-block;\n width: 1.7rem;\n line-height: 1.7rem;\n text-align: center;\n margin: 0.166rem;\n}\n\n.react-datepicker__day,\n.react-datepicker__month-text,\n.react-datepicker__quarter-text,\n.react-datepicker__year-text {\n cursor: pointer;\n}\n.react-datepicker__day:hover,\n.react-datepicker__month-text:hover,\n.react-datepicker__quarter-text:hover,\n.react-datepicker__year-text:hover {\n border-radius: 0.3rem;\n background-color: #f0f0f0;\n}\n.react-datepicker__day--today,\n.react-datepicker__month-text--today,\n.react-datepicker__quarter-text--today,\n.react-datepicker__year-text--today {\n font-weight: bold;\n}\n.react-datepicker__day--highlighted,\n.react-datepicker__month-text--highlighted,\n.react-datepicker__quarter-text--highlighted,\n.react-datepicker__year-text--highlighted {\n border-radius: 0.3rem;\n background-color: #3dcc4a;\n color: #fff;\n}\n.react-datepicker__day--highlighted:hover,\n.react-datepicker__month-text--highlighted:hover,\n.react-datepicker__quarter-text--highlighted:hover,\n.react-datepicker__year-text--highlighted:hover {\n background-color: #32be3f;\n}\n.react-datepicker__day--highlighted-custom-1,\n.react-datepicker__month-text--highlighted-custom-1,\n.react-datepicker__quarter-text--highlighted-custom-1,\n.react-datepicker__year-text--highlighted-custom-1 {\n color: magenta;\n}\n.react-datepicker__day--highlighted-custom-2,\n.react-datepicker__month-text--highlighted-custom-2,\n.react-datepicker__quarter-text--highlighted-custom-2,\n.react-datepicker__year-text--highlighted-custom-2 {\n color: green;\n}\n.react-datepicker__day--holidays,\n.react-datepicker__month-text--holidays,\n.react-datepicker__quarter-text--holidays,\n.react-datepicker__year-text--holidays {\n position: relative;\n border-radius: 0.3rem;\n background-color: #ff6803;\n color: #fff;\n}\n.react-datepicker__day--holidays .holiday-overlay,\n.react-datepicker__month-text--holidays .holiday-overlay,\n.react-datepicker__quarter-text--holidays .holiday-overlay,\n.react-datepicker__year-text--holidays .holiday-overlay {\n position: absolute;\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%);\n background-color: #333;\n color: #fff;\n padding: 4px;\n border-radius: 4px;\n white-space: nowrap;\n visibility: hidden;\n opacity: 0;\n transition: visibility 0s, opacity 0.3s ease-in-out;\n}\n.react-datepicker__day--holidays:hover,\n.react-datepicker__month-text--holidays:hover,\n.react-datepicker__quarter-text--holidays:hover,\n.react-datepicker__year-text--holidays:hover {\n background-color: #cf5300;\n}\n.react-datepicker__day--holidays:hover .holiday-overlay,\n.react-datepicker__month-text--holidays:hover .holiday-overlay,\n.react-datepicker__quarter-text--holidays:hover .holiday-overlay,\n.react-datepicker__year-text--holidays:hover .holiday-overlay {\n visibility: visible;\n opacity: 1;\n}\n.react-datepicker__day--selected, .react-datepicker__day--in-selecting-range, .react-datepicker__day--in-range,\n.react-datepicker__month-text--selected,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--selected,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--selected,\n.react-datepicker__year-text--in-selecting-range,\n.react-datepicker__year-text--in-range {\n border-radius: 0.3rem;\n background-color: #216ba5;\n color: #fff;\n}\n.react-datepicker__day--selected:hover, .react-datepicker__day--in-selecting-range:hover, .react-datepicker__day--in-range:hover,\n.react-datepicker__month-text--selected:hover,\n.react-datepicker__month-text--in-selecting-range:hover,\n.react-datepicker__month-text--in-range:hover,\n.react-datepicker__quarter-text--selected:hover,\n.react-datepicker__quarter-text--in-selecting-range:hover,\n.react-datepicker__quarter-text--in-range:hover,\n.react-datepicker__year-text--selected:hover,\n.react-datepicker__year-text--in-selecting-range:hover,\n.react-datepicker__year-text--in-range:hover {\n background-color: #1d5d90;\n}\n.react-datepicker__day--keyboard-selected,\n.react-datepicker__month-text--keyboard-selected,\n.react-datepicker__quarter-text--keyboard-selected,\n.react-datepicker__year-text--keyboard-selected {\n border-radius: 0.3rem;\n background-color: #bad9f1;\n color: rgb(0, 0, 0);\n}\n.react-datepicker__day--keyboard-selected:hover,\n.react-datepicker__month-text--keyboard-selected:hover,\n.react-datepicker__quarter-text--keyboard-selected:hover,\n.react-datepicker__year-text--keyboard-selected:hover {\n background-color: #1d5d90;\n}\n.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--in-range),\n.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--in-range),\n.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--in-range),\n.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--in-range) {\n background-color: rgba(33, 107, 165, 0.5);\n}\n.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range), .react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range) {\n background-color: #f0f0f0;\n color: #000;\n}\n.react-datepicker__day--disabled,\n.react-datepicker__month-text--disabled,\n.react-datepicker__quarter-text--disabled,\n.react-datepicker__year-text--disabled {\n cursor: default;\n color: #ccc;\n}\n.react-datepicker__day--disabled:hover,\n.react-datepicker__month-text--disabled:hover,\n.react-datepicker__quarter-text--disabled:hover,\n.react-datepicker__year-text--disabled:hover {\n background-color: transparent;\n}\n\n.react-datepicker__input-container {\n position: relative;\n display: inline-block;\n width: 100%;\n}\n.react-datepicker__input-container .react-datepicker__calendar-icon {\n position: absolute;\n padding: 0.5rem;\n box-sizing: content-box;\n}\n\n.react-datepicker__view-calendar-icon input {\n padding: 6px 10px 5px 25px;\n}\n\n.react-datepicker__year-read-view,\n.react-datepicker__month-read-view,\n.react-datepicker__month-year-read-view {\n border: 1px solid transparent;\n border-radius: 0.3rem;\n position: relative;\n}\n.react-datepicker__year-read-view:hover,\n.react-datepicker__month-read-view:hover,\n.react-datepicker__month-year-read-view:hover {\n cursor: pointer;\n}\n.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,\n.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,\n.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,\n.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,\n.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,\n.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow {\n border-top-color: #b3b3b3;\n}\n.react-datepicker__year-read-view--down-arrow,\n.react-datepicker__month-read-view--down-arrow,\n.react-datepicker__month-year-read-view--down-arrow {\n transform: rotate(135deg);\n right: -16px;\n top: 0;\n}\n\n.react-datepicker__year-dropdown,\n.react-datepicker__month-dropdown,\n.react-datepicker__month-year-dropdown {\n background-color: #f0f0f0;\n position: absolute;\n width: 50%;\n left: 25%;\n top: 30px;\n z-index: 1;\n text-align: center;\n border-radius: 0.3rem;\n border: 1px solid #aeaeae;\n}\n.react-datepicker__year-dropdown:hover,\n.react-datepicker__month-dropdown:hover,\n.react-datepicker__month-year-dropdown:hover {\n cursor: pointer;\n}\n.react-datepicker__year-dropdown--scrollable,\n.react-datepicker__month-dropdown--scrollable,\n.react-datepicker__month-year-dropdown--scrollable {\n height: 150px;\n overflow-y: scroll;\n}\n\n.react-datepicker__year-option,\n.react-datepicker__month-option,\n.react-datepicker__month-year-option {\n line-height: 20px;\n width: 100%;\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n.react-datepicker__year-option:first-of-type,\n.react-datepicker__month-option:first-of-type,\n.react-datepicker__month-year-option:first-of-type {\n border-top-left-radius: 0.3rem;\n border-top-right-radius: 0.3rem;\n}\n.react-datepicker__year-option:last-of-type,\n.react-datepicker__month-option:last-of-type,\n.react-datepicker__month-year-option:last-of-type {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n border-bottom-left-radius: 0.3rem;\n border-bottom-right-radius: 0.3rem;\n}\n.react-datepicker__year-option:hover,\n.react-datepicker__month-option:hover,\n.react-datepicker__month-year-option:hover {\n background-color: #ccc;\n}\n.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,\n.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,\n.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming {\n border-bottom-color: #b3b3b3;\n}\n.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,\n.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,\n.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous {\n border-top-color: #b3b3b3;\n}\n.react-datepicker__year-option--selected,\n.react-datepicker__month-option--selected,\n.react-datepicker__month-year-option--selected {\n position: absolute;\n left: 15px;\n}\n\n.react-datepicker__close-icon {\n cursor: pointer;\n background-color: transparent;\n border: 0;\n outline: 0;\n padding: 0 6px 0 0;\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n display: table-cell;\n vertical-align: middle;\n}\n.react-datepicker__close-icon::after {\n cursor: pointer;\n background-color: #216ba5;\n color: #fff;\n border-radius: 50%;\n height: 16px;\n width: 16px;\n padding: 2px;\n font-size: 12px;\n line-height: 1;\n text-align: center;\n display: table-cell;\n vertical-align: middle;\n content: "×";\n}\n.react-datepicker__close-icon--disabled {\n cursor: default;\n}\n.react-datepicker__close-icon--disabled::after {\n cursor: default;\n background-color: #ccc;\n}\n\n.react-datepicker__today-button {\n background: #f0f0f0;\n border-top: 1px solid #aeaeae;\n cursor: pointer;\n text-align: center;\n font-weight: bold;\n padding: 5px 0;\n clear: left;\n}\n\n.react-datepicker__portal {\n position: fixed;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.8);\n left: 0;\n top: 0;\n justify-content: center;\n align-items: center;\n display: flex;\n z-index: 2147483647;\n}\n.react-datepicker__portal .react-datepicker__day-name,\n.react-datepicker__portal .react-datepicker__day,\n.react-datepicker__portal .react-datepicker__time-name {\n width: 3rem;\n line-height: 3rem;\n}\n@media (max-width: 400px), (max-height: 550px) {\n .react-datepicker__portal .react-datepicker__day-name,\n .react-datepicker__portal .react-datepicker__day,\n .react-datepicker__portal .react-datepicker__time-name {\n width: 2rem;\n line-height: 2rem;\n }\n}\n.react-datepicker__portal .react-datepicker__current-month,\n.react-datepicker__portal .react-datepicker-time__header {\n font-size: 1.44rem;\n}\n\n.react-datepicker__children-container {\n width: 13.8rem;\n margin: 0.4rem;\n padding-right: 0.2rem;\n padding-left: 0.2rem;\n height: auto;\n}\n\n.react-datepicker__aria-live {\n position: absolute;\n clip-path: circle(0);\n border: 0;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n width: 1px;\n white-space: nowrap;\n}\n\n.react-datepicker__calendar-icon {\n width: 1em;\n height: 1em;\n vertical-align: -0.125em;\n}\n',""]),t.Z=a},91639:function(e,t,n){"use strict";var r=n(39601),o=n.n(r),i=n(82609),a=n.n(i)()(o());a.push([e.id,"@keyframes react-loading-skeleton {\n 100% {\n transform: translateX(100%);\n }\n}\n\n.react-loading-skeleton {\n --base-color: #ebebeb;\n --highlight-color: #f5f5f5;\n --animation-duration: 1.5s;\n --animation-direction: normal;\n --pseudo-element-display: block; /* Enable animation */\n\n background-color: var(--base-color);\n\n width: 100%;\n border-radius: 0.25rem;\n display: inline-flex;\n line-height: 1;\n\n position: relative;\n user-select: none;\n overflow: hidden;\n z-index: 1; /* Necessary for overflow: hidden to work correctly in Safari */\n}\n\n.react-loading-skeleton::after {\n content: ' ';\n display: var(--pseudo-element-display);\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 100%;\n background-repeat: no-repeat;\n background-image: linear-gradient(\n 90deg,\n var(--base-color),\n var(--highlight-color),\n var(--base-color)\n );\n transform: translateX(-100%);\n\n animation-name: react-loading-skeleton;\n animation-direction: var(--animation-direction);\n animation-duration: var(--animation-duration);\n animation-timing-function: ease-in-out;\n animation-iteration-count: infinite;\n}\n\n@media (prefers-reduced-motion) {\n .react-loading-skeleton {\n --pseudo-element-display: none; /* Disable animation */\n }\n}\n",""]),t.Z=a},88923:function(e,t,n){"use strict";var r=n(39601),o=n.n(r),i=n(82609),a=n.n(i)()(o());a.push([e.id,"/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n.ql-container {\n box-sizing: border-box;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 13px;\n height: 100%;\n margin: 0px;\n position: relative;\n}\n.ql-container.ql-disabled .ql-tooltip {\n visibility: hidden;\n}\n.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\n pointer-events: none;\n}\n.ql-clipboard {\n left: -100000px;\n height: 1px;\n overflow-y: hidden;\n position: absolute;\n top: 50%;\n}\n.ql-clipboard p {\n margin: 0;\n padding: 0;\n}\n.ql-editor {\n box-sizing: border-box;\n line-height: 1.42;\n height: 100%;\n outline: none;\n overflow-y: auto;\n padding: 12px 15px;\n tab-size: 4;\n -moz-tab-size: 4;\n text-align: left;\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n.ql-editor > * {\n cursor: text;\n}\n.ql-editor p,\n.ql-editor ol,\n.ql-editor ul,\n.ql-editor pre,\n.ql-editor blockquote,\n.ql-editor h1,\n.ql-editor h2,\n.ql-editor h3,\n.ql-editor h4,\n.ql-editor h5,\n.ql-editor h6 {\n margin: 0;\n padding: 0;\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol,\n.ql-editor ul {\n padding-left: 1.5em;\n}\n.ql-editor ol > li,\n.ql-editor ul > li {\n list-style-type: none;\n}\n.ql-editor ul > li::before {\n content: '\\2022';\n}\n.ql-editor ul[data-checked=true],\n.ql-editor ul[data-checked=false] {\n pointer-events: none;\n}\n.ql-editor ul[data-checked=true] > li *,\n.ql-editor ul[data-checked=false] > li * {\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before,\n.ql-editor ul[data-checked=false] > li::before {\n color: #777;\n cursor: pointer;\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before {\n content: '\\2611';\n}\n.ql-editor ul[data-checked=false] > li::before {\n content: '\\2610';\n}\n.ql-editor li::before {\n display: inline-block;\n white-space: nowrap;\n width: 1.2em;\n}\n.ql-editor li:not(.ql-direction-rtl)::before {\n margin-left: -1.5em;\n margin-right: 0.3em;\n text-align: right;\n}\n.ql-editor li.ql-direction-rtl::before {\n margin-left: 0.3em;\n margin-right: -1.5em;\n}\n.ql-editor ol li:not(.ql-direction-rtl),\n.ql-editor ul li:not(.ql-direction-rtl) {\n padding-left: 1.5em;\n}\n.ql-editor ol li.ql-direction-rtl,\n.ql-editor ul li.ql-direction-rtl {\n padding-right: 1.5em;\n}\n.ql-editor ol li {\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n counter-increment: list-0;\n}\n.ql-editor ol li:before {\n content: counter(list-0, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-increment: list-1;\n}\n.ql-editor ol li.ql-indent-1:before {\n content: counter(list-1, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-2 {\n counter-increment: list-2;\n}\n.ql-editor ol li.ql-indent-2:before {\n content: counter(list-2, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-2 {\n counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-3 {\n counter-increment: list-3;\n}\n.ql-editor ol li.ql-indent-3:before {\n content: counter(list-3, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-3 {\n counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-4 {\n counter-increment: list-4;\n}\n.ql-editor ol li.ql-indent-4:before {\n content: counter(list-4, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-4 {\n counter-reset: list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-5 {\n counter-increment: list-5;\n}\n.ql-editor ol li.ql-indent-5:before {\n content: counter(list-5, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-5 {\n counter-reset: list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-6 {\n counter-increment: list-6;\n}\n.ql-editor ol li.ql-indent-6:before {\n content: counter(list-6, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-6 {\n counter-reset: list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-7 {\n counter-increment: list-7;\n}\n.ql-editor ol li.ql-indent-7:before {\n content: counter(list-7, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-7 {\n counter-reset: list-8 list-9;\n}\n.ql-editor ol li.ql-indent-8 {\n counter-increment: list-8;\n}\n.ql-editor ol li.ql-indent-8:before {\n content: counter(list-8, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-8 {\n counter-reset: list-9;\n}\n.ql-editor ol li.ql-indent-9 {\n counter-increment: list-9;\n}\n.ql-editor ol li.ql-indent-9:before {\n content: counter(list-9, decimal) '. ';\n}\n.ql-editor .ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 3em;\n}\n.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 4.5em;\n}\n.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 3em;\n}\n.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 4.5em;\n}\n.ql-editor .ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 6em;\n}\n.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 7.5em;\n}\n.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 6em;\n}\n.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 7.5em;\n}\n.ql-editor .ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 9em;\n}\n.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 10.5em;\n}\n.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 9em;\n}\n.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 10.5em;\n}\n.ql-editor .ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 12em;\n}\n.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 13.5em;\n}\n.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 12em;\n}\n.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 13.5em;\n}\n.ql-editor .ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 15em;\n}\n.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 16.5em;\n}\n.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 15em;\n}\n.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 16.5em;\n}\n.ql-editor .ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 18em;\n}\n.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 19.5em;\n}\n.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 18em;\n}\n.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 19.5em;\n}\n.ql-editor .ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 21em;\n}\n.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 22.5em;\n}\n.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 21em;\n}\n.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 22.5em;\n}\n.ql-editor .ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 24em;\n}\n.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 25.5em;\n}\n.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 24em;\n}\n.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 25.5em;\n}\n.ql-editor .ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 27em;\n}\n.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 28.5em;\n}\n.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 27em;\n}\n.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 28.5em;\n}\n.ql-editor .ql-video {\n display: block;\n max-width: 100%;\n}\n.ql-editor .ql-video.ql-align-center {\n margin: 0 auto;\n}\n.ql-editor .ql-video.ql-align-right {\n margin: 0 0 0 auto;\n}\n.ql-editor .ql-bg-black {\n background-color: #000;\n}\n.ql-editor .ql-bg-red {\n background-color: #e60000;\n}\n.ql-editor .ql-bg-orange {\n background-color: #f90;\n}\n.ql-editor .ql-bg-yellow {\n background-color: #ff0;\n}\n.ql-editor .ql-bg-green {\n background-color: #008a00;\n}\n.ql-editor .ql-bg-blue {\n background-color: #06c;\n}\n.ql-editor .ql-bg-purple {\n background-color: #93f;\n}\n.ql-editor .ql-color-white {\n color: #fff;\n}\n.ql-editor .ql-color-red {\n color: #e60000;\n}\n.ql-editor .ql-color-orange {\n color: #f90;\n}\n.ql-editor .ql-color-yellow {\n color: #ff0;\n}\n.ql-editor .ql-color-green {\n color: #008a00;\n}\n.ql-editor .ql-color-blue {\n color: #06c;\n}\n.ql-editor .ql-color-purple {\n color: #93f;\n}\n.ql-editor .ql-font-serif {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-editor .ql-font-monospace {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-editor .ql-size-small {\n font-size: 0.75em;\n}\n.ql-editor .ql-size-large {\n font-size: 1.5em;\n}\n.ql-editor .ql-size-huge {\n font-size: 2.5em;\n}\n.ql-editor .ql-direction-rtl {\n direction: rtl;\n text-align: inherit;\n}\n.ql-editor .ql-align-center {\n text-align: center;\n}\n.ql-editor .ql-align-justify {\n text-align: justify;\n}\n.ql-editor .ql-align-right {\n text-align: right;\n}\n.ql-editor.ql-blank::before {\n color: rgba(0,0,0,0.6);\n content: attr(data-placeholder);\n font-style: italic;\n left: 15px;\n pointer-events: none;\n position: absolute;\n right: 15px;\n}\n.ql-snow.ql-toolbar:after,\n.ql-snow .ql-toolbar:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow.ql-toolbar button,\n.ql-snow .ql-toolbar button {\n background: none;\n border: none;\n cursor: pointer;\n display: inline-block;\n float: left;\n height: 24px;\n padding: 3px 5px;\n width: 28px;\n}\n.ql-snow.ql-toolbar button svg,\n.ql-snow .ql-toolbar button svg {\n float: left;\n height: 100%;\n}\n.ql-snow.ql-toolbar button:active:hover,\n.ql-snow .ql-toolbar button:active:hover {\n outline: none;\n}\n.ql-snow.ql-toolbar input.ql-image[type=file],\n.ql-snow .ql-toolbar input.ql-image[type=file] {\n display: none;\n}\n.ql-snow.ql-toolbar button:hover,\n.ql-snow .ql-toolbar button:hover,\n.ql-snow.ql-toolbar button:focus,\n.ql-snow .ql-toolbar button:focus,\n.ql-snow.ql-toolbar button.ql-active,\n.ql-snow .ql-toolbar button.ql-active,\n.ql-snow.ql-toolbar .ql-picker-label:hover,\n.ql-snow .ql-toolbar .ql-picker-label:hover,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active,\n.ql-snow.ql-toolbar .ql-picker-item:hover,\n.ql-snow .ql-toolbar .ql-picker-item:hover,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected {\n color: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {\n fill: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-stroke,\n.ql-snow .ql-toolbar button:hover .ql-stroke,\n.ql-snow.ql-toolbar button:focus .ql-stroke,\n.ql-snow .ql-toolbar button:focus .ql-stroke,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow.ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow .ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {\n stroke: #06c;\n}\n@media (pointer: coarse) {\n .ql-snow.ql-toolbar button:hover:not(.ql-active),\n .ql-snow .ql-toolbar button:hover:not(.ql-active) {\n color: #444;\n }\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {\n fill: #444;\n }\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {\n stroke: #444;\n }\n}\n.ql-snow {\n box-sizing: border-box;\n}\n.ql-snow * {\n box-sizing: border-box;\n}\n.ql-snow .ql-hidden {\n display: none;\n}\n.ql-snow .ql-out-bottom,\n.ql-snow .ql-out-top {\n visibility: hidden;\n}\n.ql-snow .ql-tooltip {\n position: absolute;\n transform: translateY(10px);\n}\n.ql-snow .ql-tooltip a {\n cursor: pointer;\n text-decoration: none;\n}\n.ql-snow .ql-tooltip.ql-flip {\n transform: translateY(-10px);\n}\n.ql-snow .ql-formats {\n display: inline-block;\n vertical-align: middle;\n}\n.ql-snow .ql-formats:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow .ql-stroke {\n fill: none;\n stroke: #444;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2;\n}\n.ql-snow .ql-stroke-miter {\n fill: none;\n stroke: #444;\n stroke-miterlimit: 10;\n stroke-width: 2;\n}\n.ql-snow .ql-fill,\n.ql-snow .ql-stroke.ql-fill {\n fill: #444;\n}\n.ql-snow .ql-empty {\n fill: none;\n}\n.ql-snow .ql-even {\n fill-rule: evenodd;\n}\n.ql-snow .ql-thin,\n.ql-snow .ql-stroke.ql-thin {\n stroke-width: 1;\n}\n.ql-snow .ql-transparent {\n opacity: 0.4;\n}\n.ql-snow .ql-direction svg:last-child {\n display: none;\n}\n.ql-snow .ql-direction.ql-active svg:last-child {\n display: inline;\n}\n.ql-snow .ql-direction.ql-active svg:first-child {\n display: none;\n}\n.ql-snow .ql-editor h1 {\n font-size: 2em;\n}\n.ql-snow .ql-editor h2 {\n font-size: 1.5em;\n}\n.ql-snow .ql-editor h3 {\n font-size: 1.17em;\n}\n.ql-snow .ql-editor h4 {\n font-size: 1em;\n}\n.ql-snow .ql-editor h5 {\n font-size: 0.83em;\n}\n.ql-snow .ql-editor h6 {\n font-size: 0.67em;\n}\n.ql-snow .ql-editor a {\n text-decoration: underline;\n}\n.ql-snow .ql-editor blockquote {\n border-left: 4px solid #ccc;\n margin-bottom: 5px;\n margin-top: 5px;\n padding-left: 16px;\n}\n.ql-snow .ql-editor code,\n.ql-snow .ql-editor pre {\n background-color: #f0f0f0;\n border-radius: 3px;\n}\n.ql-snow .ql-editor pre {\n white-space: pre-wrap;\n margin-bottom: 5px;\n margin-top: 5px;\n padding: 5px 10px;\n}\n.ql-snow .ql-editor code {\n font-size: 85%;\n padding: 2px 4px;\n}\n.ql-snow .ql-editor pre.ql-syntax {\n background-color: #23241f;\n color: #f8f8f2;\n overflow: visible;\n}\n.ql-snow .ql-editor img {\n max-width: 100%;\n}\n.ql-snow .ql-picker {\n color: #444;\n display: inline-block;\n float: left;\n font-size: 14px;\n font-weight: 500;\n height: 24px;\n position: relative;\n vertical-align: middle;\n}\n.ql-snow .ql-picker-label {\n cursor: pointer;\n display: inline-block;\n height: 100%;\n padding-left: 8px;\n padding-right: 2px;\n position: relative;\n width: 100%;\n}\n.ql-snow .ql-picker-label::before {\n display: inline-block;\n line-height: 22px;\n}\n.ql-snow .ql-picker-options {\n background-color: #fff;\n display: none;\n min-width: 100%;\n padding: 4px 8px;\n position: absolute;\n white-space: nowrap;\n}\n.ql-snow .ql-picker-options .ql-picker-item {\n cursor: pointer;\n display: block;\n padding-bottom: 5px;\n padding-top: 5px;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n color: #ccc;\n z-index: 2;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n fill: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n stroke: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n display: block;\n margin-top: -1px;\n top: 100%;\n z-index: 1;\n}\n.ql-snow .ql-color-picker,\n.ql-snow .ql-icon-picker {\n width: 28px;\n}\n.ql-snow .ql-color-picker .ql-picker-label,\n.ql-snow .ql-icon-picker .ql-picker-label {\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-label svg,\n.ql-snow .ql-icon-picker .ql-picker-label svg {\n right: 4px;\n}\n.ql-snow .ql-icon-picker .ql-picker-options {\n padding: 4px 0px;\n}\n.ql-snow .ql-icon-picker .ql-picker-item {\n height: 24px;\n width: 24px;\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-options {\n padding: 3px 5px;\n width: 152px;\n}\n.ql-snow .ql-color-picker .ql-picker-item {\n border: 1px solid transparent;\n float: left;\n height: 16px;\n margin: 2px;\n padding: 0px;\n width: 16px;\n}\n.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {\n position: absolute;\n margin-top: -9px;\n right: 0;\n top: 50%;\n width: 18px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {\n content: attr(data-label);\n}\n.ql-snow .ql-picker.ql-header {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n content: 'Heading 1';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n content: 'Heading 2';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n content: 'Heading 3';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n content: 'Heading 4';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n content: 'Heading 5';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n content: 'Heading 6';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n font-size: 2em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n font-size: 1.5em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n font-size: 1.17em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n font-size: 1em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n font-size: 0.83em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n font-size: 0.67em;\n}\n.ql-snow .ql-picker.ql-font {\n width: 108px;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item::before {\n content: 'Sans Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n content: 'Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n content: 'Monospace';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-snow .ql-picker.ql-size {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n content: 'Small';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n content: 'Large';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n content: 'Huge';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n font-size: 10px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n font-size: 18px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n font-size: 32px;\n}\n.ql-snow .ql-color-picker.ql-background .ql-picker-item {\n background-color: #fff;\n}\n.ql-snow .ql-color-picker.ql-color .ql-picker-item {\n background-color: #000;\n}\n.ql-toolbar.ql-snow {\n border: 1px solid #ccc;\n box-sizing: border-box;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n padding: 8px;\n}\n.ql-toolbar.ql-snow .ql-formats {\n margin-right: 15px;\n}\n.ql-toolbar.ql-snow .ql-picker-label {\n border: 1px solid transparent;\n}\n.ql-toolbar.ql-snow .ql-picker-options {\n border: 1px solid transparent;\n box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {\n border-color: #000;\n}\n.ql-toolbar.ql-snow + .ql-container.ql-snow {\n border-top: 0px;\n}\n.ql-snow .ql-tooltip {\n background-color: #fff;\n border: 1px solid #ccc;\n box-shadow: 0px 0px 5px #ddd;\n color: #444;\n padding: 5px 12px;\n white-space: nowrap;\n}\n.ql-snow .ql-tooltip::before {\n content: \"Visit URL:\";\n line-height: 26px;\n margin-right: 8px;\n}\n.ql-snow .ql-tooltip input[type=text] {\n display: none;\n border: 1px solid #ccc;\n font-size: 13px;\n height: 26px;\n margin: 0px;\n padding: 3px 5px;\n width: 170px;\n}\n.ql-snow .ql-tooltip a.ql-preview {\n display: inline-block;\n max-width: 200px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n vertical-align: top;\n}\n.ql-snow .ql-tooltip a.ql-action::after {\n border-right: 1px solid #ccc;\n content: 'Edit';\n margin-left: 16px;\n padding-right: 8px;\n}\n.ql-snow .ql-tooltip a.ql-remove::before {\n content: 'Remove';\n margin-left: 8px;\n}\n.ql-snow .ql-tooltip a {\n line-height: 26px;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-preview,\n.ql-snow .ql-tooltip.ql-editing a.ql-remove {\n display: none;\n}\n.ql-snow .ql-tooltip.ql-editing input[type=text] {\n display: inline-block;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-action::after {\n border-right: 0px;\n content: 'Save';\n padding-right: 0px;\n}\n.ql-snow .ql-tooltip[data-mode=link]::before {\n content: \"Enter link:\";\n}\n.ql-snow .ql-tooltip[data-mode=formula]::before {\n content: \"Enter formula:\";\n}\n.ql-snow .ql-tooltip[data-mode=video]::before {\n content: \"Enter video:\";\n}\n.ql-snow a {\n color: #06c;\n}\n.ql-container.ql-snow {\n border: 1px solid #ccc;\n}\n",""]),t.Z=a},92649:function(e,t,n){"use strict";var r=n(39601),o=n.n(r),i=n(82609),a=n.n(i)()(o());a.push([e.id,'.tippy-touch{cursor:pointer!important}.tippy-notransition{transition:none!important}.tippy-popper{max-width:400px;-webkit-perspective:800px;perspective:800px;z-index:9999;outline:0;transition-timing-function:cubic-bezier(.165,.84,.44,1);pointer-events:none}.tippy-popper.html-template{max-width:96%;max-width:calc(100% - 20px)}.tippy-popper[x-placement^=top] [x-arrow]{border-top:7px solid #333;border-right:7px solid transparent;border-left:7px solid transparent;bottom:-7px;margin:0 9px}.tippy-popper[x-placement^=top] [x-arrow].arrow-small{border-top:5px solid #333;border-right:5px solid transparent;border-left:5px solid transparent;bottom:-5px}.tippy-popper[x-placement^=top] [x-arrow].arrow-big{border-top:10px solid #333;border-right:10px solid transparent;border-left:10px solid transparent;bottom:-10px}.tippy-popper[x-placement^=top] [x-circle]{-webkit-transform-origin:0 33%;transform-origin:0 33%}.tippy-popper[x-placement^=top] [x-circle].enter{-webkit-transform:scale(1) translate(-50%,-55%);transform:scale(1) translate(-50%,-55%);opacity:1}.tippy-popper[x-placement^=top] [x-circle].leave{-webkit-transform:scale(.15) translate(-50%,-50%);transform:scale(.15) translate(-50%,-50%);opacity:0}.tippy-popper[x-placement^=top] .tippy-tooltip.light-theme [x-circle]{background-color:#fff}.tippy-popper[x-placement^=top] .tippy-tooltip.light-theme [x-arrow]{border-top:7px solid #fff;border-right:7px solid transparent;border-left:7px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.light-theme [x-arrow].arrow-small{border-top:5px solid #fff;border-right:5px solid transparent;border-left:5px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.light-theme [x-arrow].arrow-big{border-top:10px solid #fff;border-right:10px solid transparent;border-left:10px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.transparent-theme [x-circle]{background-color:rgba(0,0,0,.7)}.tippy-popper[x-placement^=top] .tippy-tooltip.transparent-theme [x-arrow]{border-top:7px solid rgba(0,0,0,.7);border-right:7px solid transparent;border-left:7px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.transparent-theme [x-arrow].arrow-small{border-top:5px solid rgba(0,0,0,.7);border-right:5px solid transparent;border-left:5px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.transparent-theme [x-arrow].arrow-big{border-top:10px solid rgba(0,0,0,.7);border-right:10px solid transparent;border-left:10px solid transparent}.tippy-popper[x-placement^=top] [data-animation=perspective]{-webkit-transform-origin:bottom;transform-origin:bottom}.tippy-popper[x-placement^=top] [data-animation=perspective].enter{opacity:1;-webkit-transform:translateY(-10px) rotateX(0);transform:translateY(-10px) rotateX(0)}.tippy-popper[x-placement^=top] [data-animation=perspective].leave{opacity:0;-webkit-transform:translateY(0) rotateX(90deg);transform:translateY(0) rotateX(90deg)}.tippy-popper[x-placement^=top] [data-animation=fade].enter{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=fade].leave{opacity:0;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift].enter{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift].leave{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=top] [data-animation=scale].enter{opacity:1;-webkit-transform:translateY(-10px) scale(1);transform:translateY(-10px) scale(1)}.tippy-popper[x-placement^=top] [data-animation=scale].leave{opacity:0;-webkit-transform:translateY(0) scale(0);transform:translateY(0) scale(0)}.tippy-popper[x-placement^=bottom] [x-arrow]{border-bottom:7px solid #333;border-right:7px solid transparent;border-left:7px solid transparent;top:-7px;margin:0 9px}.tippy-popper[x-placement^=bottom] [x-arrow].arrow-small{border-bottom:5px solid #333;border-right:5px solid transparent;border-left:5px solid transparent;top:-5px}.tippy-popper[x-placement^=bottom] [x-arrow].arrow-big{border-bottom:10px solid #333;border-right:10px solid transparent;border-left:10px solid transparent;top:-10px}.tippy-popper[x-placement^=bottom] [x-circle]{-webkit-transform-origin:0 -50%;transform-origin:0 -50%}.tippy-popper[x-placement^=bottom] [x-circle].enter{-webkit-transform:scale(1) translate(-50%,-45%);transform:scale(1) translate(-50%,-45%);opacity:1}.tippy-popper[x-placement^=bottom] [x-circle].leave{-webkit-transform:scale(.15) translate(-50%,-5%);transform:scale(.15) translate(-50%,-5%);opacity:0}.tippy-popper[x-placement^=bottom] .tippy-tooltip.light-theme [x-circle]{background-color:#fff}.tippy-popper[x-placement^=bottom] .tippy-tooltip.light-theme [x-arrow]{border-bottom:7px solid #fff;border-right:7px solid transparent;border-left:7px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.light-theme [x-arrow].arrow-small{border-bottom:5px solid #fff;border-right:5px solid transparent;border-left:5px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.light-theme [x-arrow].arrow-big{border-bottom:10px solid #fff;border-right:10px solid transparent;border-left:10px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.transparent-theme [x-circle]{background-color:rgba(0,0,0,.7)}.tippy-popper[x-placement^=bottom] .tippy-tooltip.transparent-theme [x-arrow]{border-bottom:7px solid rgba(0,0,0,.7);border-right:7px solid transparent;border-left:7px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.transparent-theme [x-arrow].arrow-small{border-bottom:5px solid rgba(0,0,0,.7);border-right:5px solid transparent;border-left:5px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.transparent-theme [x-arrow].arrow-big{border-bottom:10px solid rgba(0,0,0,.7);border-right:10px solid transparent;border-left:10px solid transparent}.tippy-popper[x-placement^=bottom] [data-animation=perspective]{-webkit-transform-origin:top;transform-origin:top}.tippy-popper[x-placement^=bottom] [data-animation=perspective].enter{opacity:1;-webkit-transform:translateY(10px) rotateX(0);transform:translateY(10px) rotateX(0)}.tippy-popper[x-placement^=bottom] [data-animation=perspective].leave{opacity:0;-webkit-transform:translateY(0) rotateX(-90deg);transform:translateY(0) rotateX(-90deg)}.tippy-popper[x-placement^=bottom] [data-animation=fade].enter{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=fade].leave{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift].enter{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift].leave{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=bottom] [data-animation=scale].enter{opacity:1;-webkit-transform:translateY(10px) scale(1);transform:translateY(10px) scale(1)}.tippy-popper[x-placement^=bottom] [data-animation=scale].leave{opacity:0;-webkit-transform:translateY(0) scale(0);transform:translateY(0) scale(0)}.tippy-popper[x-placement^=left] [x-arrow]{border-left:7px solid #333;border-top:7px solid transparent;border-bottom:7px solid transparent;right:-7px;margin:6px 0}.tippy-popper[x-placement^=left] [x-arrow].arrow-small{border-left:5px solid #333;border-top:5px solid transparent;border-bottom:5px solid transparent;right:-5px}.tippy-popper[x-placement^=left] [x-arrow].arrow-big{border-left:10px solid #333;border-top:10px solid transparent;border-bottom:10px solid transparent;right:-10px}.tippy-popper[x-placement^=left] [x-circle]{-webkit-transform-origin:50% 0;transform-origin:50% 0}.tippy-popper[x-placement^=left] [x-circle].enter{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%);opacity:1}.tippy-popper[x-placement^=left] [x-circle].leave{-webkit-transform:scale(.15) translate(-50%,-50%);transform:scale(.15) translate(-50%,-50%);opacity:0}.tippy-popper[x-placement^=left] .tippy-tooltip.light-theme [x-circle]{background-color:#fff}.tippy-popper[x-placement^=left] .tippy-tooltip.light-theme [x-arrow]{border-left:7px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.light-theme [x-arrow].arrow-small{border-left:5px solid #fff;border-top:5px solid transparent;border-bottom:5px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.light-theme [x-arrow].arrow-big{border-left:10px solid #fff;border-top:10px solid transparent;border-bottom:10px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.transparent-theme [x-circle]{background-color:rgba(0,0,0,.7)}.tippy-popper[x-placement^=left] .tippy-tooltip.transparent-theme [x-arrow]{border-left:7px solid rgba(0,0,0,.7);border-top:7px solid transparent;border-bottom:7px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.transparent-theme [x-arrow].arrow-small{border-left:5px solid rgba(0,0,0,.7);border-top:5px solid transparent;border-bottom:5px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.transparent-theme [x-arrow].arrow-big{border-left:10px solid rgba(0,0,0,.7);border-top:10px solid transparent;border-bottom:10px solid transparent}.tippy-popper[x-placement^=left] [data-animation=perspective]{-webkit-transform-origin:right;transform-origin:right}.tippy-popper[x-placement^=left] [data-animation=perspective].enter{opacity:1;-webkit-transform:translateX(-10px) rotateY(0);transform:translateX(-10px) rotateY(0)}.tippy-popper[x-placement^=left] [data-animation=perspective].leave{opacity:0;-webkit-transform:translateX(0) rotateY(-90deg);transform:translateX(0) rotateY(-90deg)}.tippy-popper[x-placement^=left] [data-animation=fade].enter{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=fade].leave{opacity:0;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift].enter{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift].leave{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=left] [data-animation=scale].enter{opacity:1;-webkit-transform:translateX(-10px) scale(1);transform:translateX(-10px) scale(1)}.tippy-popper[x-placement^=left] [data-animation=scale].leave{opacity:0;-webkit-transform:translateX(0) scale(0);transform:translateX(0) scale(0)}.tippy-popper[x-placement^=right] [x-arrow]{border-right:7px solid #333;border-top:7px solid transparent;border-bottom:7px solid transparent;left:-7px;margin:6px 0}.tippy-popper[x-placement^=right] [x-arrow].arrow-small{border-right:5px solid #333;border-top:5px solid transparent;border-bottom:5px solid transparent;left:-5px}.tippy-popper[x-placement^=right] [x-arrow].arrow-big{border-right:10px solid #333;border-top:10px solid transparent;border-bottom:10px solid transparent;left:-10px}.tippy-popper[x-placement^=right] [x-circle]{-webkit-transform-origin:-50% 0;transform-origin:-50% 0}.tippy-popper[x-placement^=right] [x-circle].enter{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%);opacity:1}.tippy-popper[x-placement^=right] [x-circle].leave{-webkit-transform:scale(.15) translate(-50%,-50%);transform:scale(.15) translate(-50%,-50%);opacity:0}.tippy-popper[x-placement^=right] .tippy-tooltip.light-theme [x-circle]{background-color:#fff}.tippy-popper[x-placement^=right] .tippy-tooltip.light-theme [x-arrow]{border-right:7px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.light-theme [x-arrow].arrow-small{border-right:5px solid #fff;border-top:5px solid transparent;border-bottom:5px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.light-theme [x-arrow].arrow-big{border-right:10px solid #fff;border-top:10px solid transparent;border-bottom:10px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.transparent-theme [x-circle]{background-color:rgba(0,0,0,.7)}.tippy-popper[x-placement^=right] .tippy-tooltip.transparent-theme [x-arrow]{border-right:7px solid rgba(0,0,0,.7);border-top:7px solid transparent;border-bottom:7px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.transparent-theme [x-arrow].arrow-small{border-right:5px solid rgba(0,0,0,.7);border-top:5px solid transparent;border-bottom:5px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.transparent-theme [x-arrow].arrow-big{border-right:10px solid rgba(0,0,0,.7);border-top:10px solid transparent;border-bottom:10px solid transparent}.tippy-popper[x-placement^=right] [data-animation=perspective]{-webkit-transform-origin:left;transform-origin:left}.tippy-popper[x-placement^=right] [data-animation=perspective].enter{opacity:1;-webkit-transform:translateX(10px) rotateY(0);transform:translateX(10px) rotateY(0)}.tippy-popper[x-placement^=right] [data-animation=perspective].leave{opacity:0;-webkit-transform:translateX(0) rotateY(90deg);transform:translateX(0) rotateY(90deg)}.tippy-popper[x-placement^=right] [data-animation=fade].enter{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=fade].leave{opacity:0;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift].enter{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift].leave{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=right] [data-animation=scale].enter{opacity:1;-webkit-transform:translateX(10px) scale(1);transform:translateX(10px) scale(1)}.tippy-popper[x-placement^=right] [data-animation=scale].leave{opacity:0;-webkit-transform:translateX(0) scale(0);transform:translateX(0) scale(0)}.tippy-popper .tippy-tooltip.transparent-theme{background-color:rgba(0,0,0,.7)}.tippy-popper .tippy-tooltip.transparent-theme[data-animatefill]{background-color:transparent}.tippy-popper .tippy-tooltip.light-theme{color:#26323d;box-shadow:0 4px 20px 4px rgba(0,20,60,.1),0 4px 80px -8px rgba(0,20,60,.2);background-color:#fff}.tippy-popper .tippy-tooltip.light-theme[data-animatefill]{background-color:transparent}.tippy-tooltip{position:relative;color:#fff;border-radius:4px;font-size:.95rem;padding:.4rem .8rem;text-align:center;will-change:transform;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#333}.tippy-tooltip--small{padding:.25rem .5rem;font-size:.8rem}.tippy-tooltip--big{padding:.6rem 1.2rem;font-size:1.2rem}.tippy-tooltip[data-animatefill]{overflow:hidden;background-color:transparent}.tippy-tooltip[data-interactive]{pointer-events:auto}.tippy-tooltip[data-inertia]{transition-timing-function:cubic-bezier(.53,2,.36,.85)}.tippy-tooltip [x-arrow]{position:absolute;width:0;height:0}.tippy-tooltip [x-circle]{position:absolute;will-change:transform;background-color:#333;border-radius:50%;width:130%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;overflow:hidden;transition:all ease}.tippy-tooltip [x-circle]:before{content:"";padding-top:90%;float:left}@media (max-width:450px){.tippy-popper{max-width:96%;max-width:calc(100% - 20px)}}\n',""]),t.Z=a},82609:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var u=0;u0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},39601:function(e){"use strict";e.exports=function(e){return e[1]}},36012:function(e,t,n){"use strict";function r(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?"in "+o:o+" ago":o};function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var a={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},s=function(e,t,n,r){return u[e]};function l(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,u=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[u]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var c={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function d(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,u=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(f.matchPattern);if(!n)return null;var r=n[0],o=e.match(f.parsePattern);if(!o)return null;var i=f.valueCallback?f.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:d({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:d({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:d({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:d({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:d({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},h={code:"en-US",formatDistance:o,formatLong:a,formatRelative:s,localize:c,match:p,options:{weekStartsOn:0,firstWeekContainsDate:1}}},18667:function(e,t,n){"use strict";n.d(t,{b:function(){return i},j:function(){return o}});var r={};function o(){return r}function i(e){r=e}},58692:function(e,t,n){"use strict";var r=n(36012),o={y:function(e,t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return(0,r.Z)("yy"===t?o%100:o,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,r.Z)(n+1,2)},d:function(e,t){return(0,r.Z)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return(0,r.Z)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,r.Z)(e.getUTCHours(),t.length)},m:function(e,t){return(0,r.Z)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,r.Z)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,o=e.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,n-3));return(0,r.Z)(i,t.length)}};t.Z=o},60429:function(e,t){"use strict";var n=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},r=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},o={p:r,P:function(e,t){var o,i=e.match(/(P+)(p+)?/)||[],a=i[1],u=i[2];if(!u)return n(e,t);switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",n(a,t)).replace("{{time}}",r(u,t))}};t.Z=o},1645:function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:function(){return r}})},47665:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(66700),o=n(55143),i=n(90257),a=n(19785);var u=6048e5;function s(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e),n=(0,o.Z)(t).getTime()-function(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,o.Z)(n)}(t).getTime();return Math.round(n/u)+1}},90257:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(66700),o=n(19785),i=n(55143);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var u=(0,i.Z)(a),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var l=(0,i.Z)(s);return t.getTime()>=u.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}},22197:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(66700),o=n(52329),i=n(72763),a=n(19785),u=n(42765),s=n(18667);var l=6048e5;function c(e,t){(0,a.Z)(1,arguments);var n=(0,r.default)(e),c=(0,o.Z)(n,t).getTime()-function(e,t){var n,r,l,c,d,f,p,h;(0,a.Z)(1,arguments);var g=(0,s.j)(),y=(0,u.Z)(null!==(n=null!==(r=null!==(l=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t||null===(d=t.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==l?l:g.firstWeekContainsDate)&&void 0!==r?r:null===(p=g.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1),m=(0,i.Z)(e,t),b=new Date(0);return b.setUTCFullYear(m,0,y),b.setUTCHours(0,0,0,0),(0,o.Z)(b,t)}(n,t).getTime();return Math.round(c/l)+1}},72763:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(66700),o=n(19785),i=n(52329),a=n(42765),u=n(18667);function s(e,t){var n,s,l,c,d,f,p,h;(0,o.Z)(1,arguments);var g=(0,r.default)(e),y=g.getUTCFullYear(),m=(0,u.j)(),b=(0,a.Z)(null!==(n=null!==(s=null!==(l=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t||null===(d=t.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==l?l:m.firstWeekContainsDate)&&void 0!==s?s:null===(p=m.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1);if(!(b>=1&&b<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(y+1,0,b),v.setUTCHours(0,0,0,0);var w=(0,i.Z)(v,t),x=new Date(0);x.setUTCFullYear(y,0,b),x.setUTCHours(0,0,0,0);var k=(0,i.Z)(x,t);return g.getTime()>=w.getTime()?y+1:g.getTime()>=k.getTime()?y:y-1}},13503:function(e,t,n){"use strict";n.d(t,{Do:function(){return a},Iu:function(){return i},qp:function(){return u}});var r=["D","DD"],o=["YY","YYYY"];function i(e){return-1!==r.indexOf(e)}function a(e){return-1!==o.indexOf(e)}function u(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},19785:function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},55143:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(66700),o=n(19785);function i(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getUTCDay(),i=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}},52329:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(66700),o=n(19785),i=n(42765),a=n(18667);function u(e,t){var n,u,s,l,c,d,f,p;(0,o.Z)(1,arguments);var h=(0,a.j)(),g=(0,i.Z)(null!==(n=null!==(u=null!==(s=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t||null===(c=t.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==s?s:h.weekStartsOn)&&void 0!==u?u:null===(f=h.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=(0,r.default)(e),m=y.getUTCDay(),b=(m=s.getDate()?s:(n.setFullYear(s.getFullYear(),s.getMonth(),u),n)}},68239:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(42765),o=n(28187),i=n(19785);function a(e,t){(0,i.Z)(2,arguments);var n=3*(0,r.Z)(t);return(0,o.default)(e,n)}},85014:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(42765),o=n(63761),i=n(19785);function a(e,t){(0,i.Z)(2,arguments);var n=7*(0,r.Z)(t);return(0,o.default)(e,n)}},52946:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(42765),o=n(28187),i=n(19785);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(t);return(0,o.default)(e,12*n)}},64312:function(e,t,n){"use strict";n.d(t,{CU:function(){return f},LI:function(){return i},Ob:function(){return d},QI:function(){return l},R3:function(){return h},Y2:function(){return w},_j:function(){return p},dT:function(){return o},fR:function(){return c},gM:function(){return y},ju:function(){return r},nZ:function(){return v},qk:function(){return s},rz:function(){return b},vh:function(){return u},vr:function(){return m},xx:function(){return g},yJ:function(){return a}});var r=7,o=365.2425,i=24*Math.pow(10,8)*60*60*1e3,a=6e4,u=36e5,s=1e3,l=-i,c=60,d=3,f=12,p=4,h=3600,g=60,y=24*h,m=7*y,b=y*o,v=b/12,w=3*v},8849:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(1645),o=n(10405),i=n(19785),a=864e5;function u(e,t){(0,i.Z)(2,arguments);var n=(0,o.default)(e),u=(0,o.default)(t),s=n.getTime()-(0,r.Z)(n),l=u.getTime()-(0,r.Z)(u);return Math.round((s-l)/a)}},92082:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return 12*(n.getFullYear()-i.getFullYear())+(n.getMonth()-i.getMonth())}},93399:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getFullYear()-i.getFullYear()}},11106:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(23,59,59,999),t}},8548:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},10194:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(18667),o=n(66700),i=n(42765),a=n(19785);function u(e,t){var n,u,s,l,c,d,f,p;(0,a.Z)(1,arguments);var h=(0,r.j)(),g=(0,i.Z)(null!==(n=null!==(u=null!==(s=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t||null===(c=t.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==s?s:h.weekStartsOn)&&void 0!==u?u:null===(f=h.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=(0,o.default)(e),m=y.getDay(),b=6+(m0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return f.Z.y(e,t)},Y:function(e,t,n,r){var o=(0,c.Z)(e,r),i=o>0?o:1-o;if("YY"===t){var a=i%100;return(0,d.Z)(a,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):(0,d.Z)(i,t.length)},R:function(e,t){var n=(0,s.Z)(e);return(0,d.Z)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,d.Z)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,d.Z)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,d.Z)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return f.Z.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return(0,d.Z)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=(0,l.Z)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):(0,d.Z)(o,t.length)},I:function(e,t,n){var r=(0,u.Z)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,d.Z)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):f.Z.d(e,t)},D:function(e,t,n){var r=function(e){(0,a.Z)(1,arguments);var t=(0,i.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,d.Z)(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return(0,d.Z)(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return(0,d.Z)(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return(0,d.Z)(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?h:0===o?p:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?m:o>=12?y:o>=4?g:b,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return f.Z.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):f.Z.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,d.Z)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,d.Z)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):f.Z.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):f.Z.s(e,t)},S:function(e,t){return f.Z.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return x(o);case"XXXX":case"XX":return k(o);default:return k(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return x(o);case"xxxx":case"xx":return k(o);default:return k(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+w(o,":");default:return"GMT"+k(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+w(o,":");default:return"GMT"+k(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e,i=Math.floor(o.getTime()/1e3);return(0,d.Z)(i,t.length)},T:function(e,t,n,r){var o=(r._originalDate||e).getTime();return(0,d.Z)(o,t.length)}};function w(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+(0,d.Z)(i,2)}function x(e,t){return e%60==0?(e>0?"-":"+")+(0,d.Z)(Math.abs(e)/60,2):k(e,t)}function k(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+(0,d.Z)(Math.floor(o/60),2)+n+(0,d.Z)(o%60,2)}var S=v,j=n(60429),O=n(1645),E=n(13503),C=n(42765),_=n(18667),T=n(65222),D=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,P=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,M=/^'([^]*?)'?$/,A=/''/g,L=/[a-zA-Z]/;function N(e,t,n){var u,s,l,c,d,f,p,h,g,y,m,b,v,w,x,k,N,R;(0,a.Z)(2,arguments);var I=String(t),Y=(0,_.j)(),Z=null!==(u=null!==(s=null==n?void 0:n.locale)&&void 0!==s?s:Y.locale)&&void 0!==u?u:T.Z,F=(0,C.Z)(null!==(l=null!==(c=null!==(d=null!==(f=null==n?void 0:n.firstWeekContainsDate)&&void 0!==f?f:null==n||null===(p=n.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==d?d:Y.firstWeekContainsDate)&&void 0!==c?c:null===(g=Y.locale)||void 0===g||null===(y=g.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==l?l:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var B=(0,C.Z)(null!==(m=null!==(b=null!==(v=null!==(w=null==n?void 0:n.weekStartsOn)&&void 0!==w?w:null==n||null===(x=n.locale)||void 0===x||null===(k=x.options)||void 0===k?void 0:k.weekStartsOn)&&void 0!==v?v:Y.weekStartsOn)&&void 0!==b?b:null===(N=Y.locale)||void 0===N||null===(R=N.options)||void 0===R?void 0:R.weekStartsOn)&&void 0!==m?m:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Z.localize)throw new RangeError("locale must contain localize property");if(!Z.formatLong)throw new RangeError("locale must contain formatLong property");var q=(0,i.default)(e);if(!(0,r.default)(q))throw new RangeError("Invalid time value");var H=(0,O.Z)(q),J=(0,o.Z)(q,H),X={firstWeekContainsDate:F,weekStartsOn:B,locale:Z,_originalDate:q};return I.match(P).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,j.Z[t])(e,Z.formatLong):e})).join("").match(D).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(M);if(!t)return e;return t[1].replace(A,"'")}(r);var i=S[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!(0,E.Do)(r)||(0,E.qp)(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!(0,E.Iu)(r)||(0,E.qp)(r,t,String(e)),i(J,r,Z.localize,X);if(o.match(L))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")}},35459:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getDate()}},98465:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getDay()}},59799:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(66700),o=n(19785);function i(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear(),i=t.getMonth(),a=new Date(0);return a.setFullYear(n,i+1,0),a.setHours(0,0,0,0),a.getDate()}},99994:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getHours()}},8507:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(66700),o=n(60275),i=n(38129),a=n(19785),u=6048e5;function s(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e),n=(0,o.Z)(t).getTime()-(0,i.Z)(t).getTime();return Math.round(n/u)+1}},28438:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(66700),o=n(60275),i=n(19785);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear(),a=new Date(0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);var u=(0,o.Z)(a),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var l=(0,o.Z)(s);return t.getTime()>=u.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}},34908:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getMinutes()}},51981:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getMonth()}},81139:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e);return Math.floor(t.getMonth()/3)+1}},33963:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getSeconds()}},17254:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getTime()}},81914:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getFullYear()}},89893:function(e,t,n){"use strict";n.r(t),n.d(t,{add:function(){return l},addBusinessDays:function(){return p},addDays:function(){return o.default},addHours:function(){return h.default},addISOWeekYears:function(){return v},addMilliseconds:function(){return w.Z},addMinutes:function(){return x.default},addMonths:function(){return i.default},addQuarters:function(){return k.default},addSeconds:function(){return S},addWeeks:function(){return j.default},addYears:function(){return O.default},areIntervalsOverlapping:function(){return E},clamp:function(){return T},closestIndexTo:function(){return D},closestTo:function(){return P},compareAsc:function(){return M},compareDesc:function(){return A},daysInWeek:function(){return L.ju},daysInYear:function(){return L.dT},daysToWeeks:function(){return N},differenceInBusinessDays:function(){return Y},differenceInCalendarDays:function(){return m.default},differenceInCalendarISOWeekYears:function(){return Z},differenceInCalendarISOWeeks:function(){return H},differenceInCalendarMonths:function(){return J.default},differenceInCalendarQuarters:function(){return z},differenceInCalendarWeeks:function(){return U},differenceInCalendarYears:function(){return G.default},differenceInDays:function(){return V},differenceInHours:function(){return re},differenceInISOWeekYears:function(){return ie},differenceInMilliseconds:function(){return $},differenceInMinutes:function(){return ae},differenceInMonths:function(){return ce},differenceInQuarters:function(){return de},differenceInSeconds:function(){return fe},differenceInWeeks:function(){return pe},differenceInYears:function(){return he},eachDayOfInterval:function(){return ge},eachHourOfInterval:function(){return ye},eachMinuteOfInterval:function(){return be},eachMonthOfInterval:function(){return ve},eachQuarterOfInterval:function(){return xe},eachWeekOfInterval:function(){return ke},eachWeekendOfInterval:function(){return Se},eachWeekendOfMonth:function(){return Oe},eachWeekendOfYear:function(){return _e},eachYearOfInterval:function(){return Te},endOfDay:function(){return ue.default},endOfDecade:function(){return De},endOfHour:function(){return Pe},endOfISOWeek:function(){return Ae},endOfISOWeekYear:function(){return Le},endOfMinute:function(){return Ne},endOfMonth:function(){return se.default},endOfQuarter:function(){return Re},endOfSecond:function(){return Ie},endOfToday:function(){return Ye},endOfTomorrow:function(){return Ze},endOfWeek:function(){return Me.default},endOfYear:function(){return Ee.default},endOfYesterday:function(){return Fe},format:function(){return Be.default},formatDistance:function(){return Ge},formatDistanceStrict:function(){return tt},formatDistanceToNow:function(){return nt},formatDistanceToNowStrict:function(){return rt},formatDuration:function(){return it},formatISO:function(){return ut},formatISO9075:function(){return st},formatISODuration:function(){return lt},formatRFC3339:function(){return ct},formatRFC7231:function(){return pt},formatRelative:function(){return gt},fromUnixTime:function(){return yt},getDate:function(){return mt.default},getDay:function(){return bt.default},getDayOfYear:function(){return vt},getDaysInMonth:function(){return wt.Z},getDaysInYear:function(){return kt},getDecade:function(){return St},getDefaultOptions:function(){return jt},getHours:function(){return Ot.default},getISODay:function(){return Et},getISOWeek:function(){return Ct.default},getISOWeekYear:function(){return g.Z},getISOWeeksInYear:function(){return Tt},getMilliseconds:function(){return Dt},getMinutes:function(){return Pt.default},getMonth:function(){return Mt.default},getOverlappingDaysInIntervals:function(){return Lt},getQuarter:function(){return X.default},getSeconds:function(){return Nt.default},getTime:function(){return Rt.default},getUnixTime:function(){return It},getWeek:function(){return Bt},getWeekOfMonth:function(){return qt},getWeekYear:function(){return Yt},getWeeksInMonth:function(){return Jt},getYear:function(){return Xt.default},hoursToMilliseconds:function(){return zt},hoursToMinutes:function(){return Qt},hoursToSeconds:function(){return Wt},intervalToDuration:function(){return Ut},intlFormat:function(){return Gt},intlFormatDistance:function(){return Kt},isAfter:function(){return Vt.default},isBefore:function(){return $t.default},isDate:function(){return en.default},isEqual:function(){return tn.default},isExists:function(){return nn},isFirstDayOfMonth:function(){return rn},isFriday:function(){return on},isFuture:function(){return an},isLastDayOfMonth:function(){return le},isLeapYear:function(){return xt},isMatch:function(){return sn},isMonday:function(){return ln},isPast:function(){return cn},isSameDay:function(){return R.default},isSameHour:function(){return fn},isSameISOWeek:function(){return hn},isSameISOWeekYear:function(){return gn},isSameMinute:function(){return yn},isSameMonth:function(){return mn.default},isSameQuarter:function(){return bn.default},isSameSecond:function(){return wn},isSameWeek:function(){return pn},isSameYear:function(){return xn.default},isSaturday:function(){return f},isSunday:function(){return d},isThisHour:function(){return kn},isThisISOWeek:function(){return Sn},isThisMinute:function(){return jn},isThisMonth:function(){return On},isThisQuarter:function(){return En},isThisSecond:function(){return Cn},isThisWeek:function(){return _n},isThisYear:function(){return Tn},isThursday:function(){return Dn},isToday:function(){return Pn},isTomorrow:function(){return Mn},isTuesday:function(){return An},isValid:function(){return I.default},isWednesday:function(){return Ln},isWeekend:function(){return c},isWithinInterval:function(){return Nn.default},isYesterday:function(){return In},lastDayOfDecade:function(){return Yn},lastDayOfISOWeek:function(){return Fn},lastDayOfISOWeekYear:function(){return Bn},lastDayOfMonth:function(){return Ht},lastDayOfQuarter:function(){return qn},lastDayOfWeek:function(){return Zn},lastDayOfYear:function(){return Hn},lightFormat:function(){return Un},max:function(){return C.default},maxTime:function(){return L.LI},milliseconds:function(){return Kn},millisecondsInHour:function(){return L.vh},millisecondsInMinute:function(){return L.yJ},millisecondsInSecond:function(){return L.qk},millisecondsToHours:function(){return Vn},millisecondsToMinutes:function(){return $n},millisecondsToSeconds:function(){return er},min:function(){return _.default},minTime:function(){return L.QI},minutesInHour:function(){return L.fR},minutesToHours:function(){return tr},minutesToMilliseconds:function(){return nr},minutesToSeconds:function(){return rr},monthsInQuarter:function(){return L.Ob},monthsInYear:function(){return L.CU},monthsToQuarters:function(){return or},monthsToYears:function(){return ir},nextDay:function(){return ar},nextFriday:function(){return ur},nextMonday:function(){return sr},nextSaturday:function(){return lr},nextSunday:function(){return cr},nextThursday:function(){return dr},nextTuesday:function(){return fr},nextWednesday:function(){return pr},parse:function(){return un.default},parseISO:function(){return hr.default},parseJSON:function(){return gr},previousDay:function(){return yr},previousFriday:function(){return mr},previousMonday:function(){return br},previousSaturday:function(){return vr},previousSunday:function(){return wr},previousThursday:function(){return xr},previousTuesday:function(){return kr},previousWednesday:function(){return Sr},quartersInYear:function(){return L._j},quartersToMonths:function(){return jr},quartersToYears:function(){return Or},roundToNearestMinutes:function(){return Er},secondsInDay:function(){return L.gM},secondsInHour:function(){return L.R3},secondsInMinute:function(){return L.xx},secondsInMonth:function(){return L.nZ},secondsInQuarter:function(){return L.Y2},secondsInWeek:function(){return L.vr},secondsInYear:function(){return L.rz},secondsToHours:function(){return Cr},secondsToMilliseconds:function(){return _r},secondsToMinutes:function(){return Tr},set:function(){return Dr.default},setDate:function(){return Pr},setDay:function(){return Mr},setDayOfYear:function(){return Ar},setDefaultOptions:function(){return Lr},setHours:function(){return Nr.default},setISODay:function(){return Rr},setISOWeek:function(){return Ir},setISOWeekYear:function(){return b},setMilliseconds:function(){return Yr},setMinutes:function(){return Zr.default},setMonth:function(){return Fr.default},setQuarter:function(){return Br.default},setSeconds:function(){return qr.default},setWeek:function(){return Hr},setWeekYear:function(){return Jr},setYear:function(){return Xr.default},startOfDay:function(){return zr.default},startOfDecade:function(){return Qr},startOfHour:function(){return dn},startOfISOWeek:function(){return B.Z},startOfISOWeekYear:function(){return y.Z},startOfMinute:function(){return me},startOfMonth:function(){return je.default},startOfQuarter:function(){return we.default},startOfSecond:function(){return vn},startOfToday:function(){return Wr},startOfTomorrow:function(){return Ur},startOfWeek:function(){return Q.default},startOfWeekYear:function(){return Zt},startOfYear:function(){return Ce.default},startOfYesterday:function(){return Gr},sub:function(){return Vr},subBusinessDays:function(){return $r},subDays:function(){return Rn.default},subHours:function(){return eo},subISOWeekYears:function(){return oe},subMilliseconds:function(){return ht.Z},subMinutes:function(){return to},subMonths:function(){return Kr.default},subQuarters:function(){return no.default},subSeconds:function(){return ro},subWeeks:function(){return oo.default},subYears:function(){return io.default},toDate:function(){return a.default},weeksToDays:function(){return ao},yearsToMonths:function(){return uo},yearsToQuarters:function(){return so}});var r=n(86522),o=n(63761),i=n(28187),a=n(66700),u=n(19785),s=n(42765);function l(e,t){if((0,u.Z)(2,arguments),!t||"object"!==(0,r.Z)(t))return new Date(NaN);var n=t.years?(0,s.Z)(t.years):0,l=t.months?(0,s.Z)(t.months):0,c=t.weeks?(0,s.Z)(t.weeks):0,d=t.days?(0,s.Z)(t.days):0,f=t.hours?(0,s.Z)(t.hours):0,p=t.minutes?(0,s.Z)(t.minutes):0,h=t.seconds?(0,s.Z)(t.seconds):0,g=(0,a.default)(e),y=l||n?(0,i.default)(g,l+12*n):g,m=d||c?(0,o.default)(y,d+7*c):y,b=1e3*(h+60*(p+60*f));return new Date(m.getTime()+b)}function c(e){(0,u.Z)(1,arguments);var t=(0,a.default)(e).getDay();return 0===t||6===t}function d(e){return(0,u.Z)(1,arguments),0===(0,a.default)(e).getDay()}function f(e){return(0,u.Z)(1,arguments),6===(0,a.default)(e).getDay()}function p(e,t){(0,u.Z)(2,arguments);var n=(0,a.default)(e),r=c(n),o=(0,s.Z)(t);if(isNaN(o))return new Date(NaN);var i=n.getHours(),l=o<0?-1:1,p=(0,s.Z)(o/5);n.setDate(n.getDate()+7*p);for(var h=Math.abs(o%5);h>0;)n.setDate(n.getDate()+l),c(n)||(h-=1);return r&&c(n)&&0!==o&&(f(n)&&n.setDate(n.getDate()+(l<0?2:-1)),d(n)&&n.setDate(n.getDate()+(l<0?1:-2))),n.setHours(i),n}var h=n(20578),g=n(28438),y=n(38129),m=n(8849);function b(e,t){(0,u.Z)(2,arguments);var n=(0,a.default)(e),r=(0,s.Z)(t),o=(0,m.default)(n,(0,y.Z)(n)),i=new Date(0);return i.setFullYear(r,0,4),i.setHours(0,0,0,0),(n=(0,y.Z)(i)).setDate(n.getDate()+o),n}function v(e,t){(0,u.Z)(2,arguments);var n=(0,s.Z)(t);return b(e,(0,g.Z)(e)+n)}var w=n(91310),x=n(23107),k=n(68239);function S(e,t){(0,u.Z)(2,arguments);var n=(0,s.Z)(t);return(0,w.Z)(e,1e3*n)}var j=n(85014),O=n(52946);function E(e,t,n){(0,u.Z)(2,arguments);var r=(0,a.default)(null==e?void 0:e.start).getTime(),o=(0,a.default)(null==e?void 0:e.end).getTime(),i=(0,a.default)(null==t?void 0:t.start).getTime(),s=(0,a.default)(null==t?void 0:t.end).getTime();if(!(r<=o&&i<=s))throw new RangeError("Invalid interval");return null!=n&&n.inclusive?r<=s&&i<=o:r0?1:o}function A(e,t){(0,u.Z)(2,arguments);var n=(0,a.default)(e),r=(0,a.default)(t),o=n.getTime()-r.getTime();return o>0?-1:o<0?1:o}var L=n(64312);function N(e){(0,u.Z)(1,arguments);var t=e/L.ju;return Math.floor(t)}var R=n(82276),I=n(4478);function Y(e,t){(0,u.Z)(2,arguments);var n=(0,a.default)(e),r=(0,a.default)(t);if(!(0,I.default)(n)||!(0,I.default)(r))return NaN;var i=(0,m.default)(n,r),l=i<0?-1:1,d=(0,s.Z)(i/7),f=5*d;for(r=(0,o.default)(r,7*d);!(0,R.default)(n,r);)f+=c(r)?0:l,r=(0,o.default)(r,l);return 0===f?0:f}function Z(e,t){return(0,u.Z)(2,arguments),(0,g.Z)(e)-(0,g.Z)(t)}var F=n(1645),B=n(60275),q=6048e5;function H(e,t){(0,u.Z)(2,arguments);var n=(0,B.Z)(e),r=(0,B.Z)(t),o=n.getTime()-(0,F.Z)(n),i=r.getTime()-(0,F.Z)(r);return Math.round((o-i)/q)}var J=n(92082),X=n(81139);function z(e,t){(0,u.Z)(2,arguments);var n=(0,a.default)(e),r=(0,a.default)(t);return 4*(n.getFullYear()-r.getFullYear())+((0,X.default)(n)-(0,X.default)(r))}var Q=n(49122),W=6048e5;function U(e,t,n){(0,u.Z)(2,arguments);var r=(0,Q.default)(e,n),o=(0,Q.default)(t,n),i=r.getTime()-(0,F.Z)(r),a=o.getTime()-(0,F.Z)(o);return Math.round((i-a)/W)}var G=n(93399);function K(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function V(e,t){(0,u.Z)(2,arguments);var n=(0,a.default)(e),r=(0,a.default)(t),o=K(n,r),i=Math.abs((0,m.default)(n,r));n.setDate(n.getDate()-o*i);var s=o*(i-Number(K(n,r)===-o));return 0===s?0:s}function $(e,t){return(0,u.Z)(2,arguments),(0,a.default)(e).getTime()-(0,a.default)(t).getTime()}var ee={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},te="trunc";function ne(e){return e?ee[e]:ee[te]}function re(e,t,n){(0,u.Z)(2,arguments);var r=$(e,t)/L.vh;return ne(null==n?void 0:n.roundingMethod)(r)}function oe(e,t){return(0,u.Z)(2,arguments),v(e,-(0,s.Z)(t))}function ie(e,t){(0,u.Z)(2,arguments);var n=(0,a.default)(e),r=(0,a.default)(t),o=M(n,r),i=Math.abs(Z(n,r));n=oe(n,o*i);var s=o*(i-Number(M(n,r)===-o));return 0===s?0:s}function ae(e,t,n){(0,u.Z)(2,arguments);var r=$(e,t)/L.yJ;return ne(null==n?void 0:n.roundingMethod)(r)}var ue=n(11106),se=n(8548);function le(e){(0,u.Z)(1,arguments);var t=(0,a.default)(e);return(0,ue.default)(t).getTime()===(0,se.default)(t).getTime()}function ce(e,t){(0,u.Z)(2,arguments);var n,r=(0,a.default)(e),o=(0,a.default)(t),i=M(r,o),s=Math.abs((0,J.default)(r,o));if(s<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*s);var l=M(r,o)===-i;le((0,a.default)(e))&&1===s&&1===M(e,o)&&(l=!1),n=i*(s-Number(l))}return 0===n?0:n}function de(e,t,n){(0,u.Z)(2,arguments);var r=ce(e,t)/3;return ne(null==n?void 0:n.roundingMethod)(r)}function fe(e,t,n){(0,u.Z)(2,arguments);var r=$(e,t)/1e3;return ne(null==n?void 0:n.roundingMethod)(r)}function pe(e,t,n){(0,u.Z)(2,arguments);var r=V(e,t)/7;return ne(null==n?void 0:n.roundingMethod)(r)}function he(e,t){(0,u.Z)(2,arguments);var n=(0,a.default)(e),r=(0,a.default)(t),o=M(n,r),i=Math.abs((0,G.default)(n,r));n.setFullYear(1584),r.setFullYear(1584);var s=M(n,r)===-o,l=o*(i-Number(s));return 0===l?0:l}function ge(e,t){var n;(0,u.Z)(1,arguments);var r=e||{},o=(0,a.default)(r.start),i=(0,a.default)(r.end).getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var s=[],l=o;l.setHours(0,0,0,0);var c=Number(null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1);if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=i;)s.push((0,a.default)(l)),l.setDate(l.getDate()+c),l.setHours(0,0,0,0);return s}function ye(e,t){var n;(0,u.Z)(1,arguments);var r=e||{},o=(0,a.default)(r.start),i=(0,a.default)(r.end),s=o.getTime(),l=i.getTime();if(!(s<=l))throw new RangeError("Invalid interval");var c=[],d=o;d.setMinutes(0,0,0);var f=Number(null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1);if(f<1||isNaN(f))throw new RangeError("`options.step` must be a number greater than 1");for(;d.getTime()<=l;)c.push((0,a.default)(d)),d=(0,h.default)(d,f);return c}function me(e){(0,u.Z)(1,arguments);var t=(0,a.default)(e);return t.setSeconds(0,0),t}function be(e,t){var n;(0,u.Z)(1,arguments);var r=me((0,a.default)(e.start)),o=(0,a.default)(e.end),i=r.getTime(),s=o.getTime();if(i>=s)throw new RangeError("Invalid interval");var l=[],c=r,d=Number(null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1);if(d<1||isNaN(d))throw new RangeError("`options.step` must be a number equal to or greater than 1");for(;c.getTime()<=s;)l.push((0,a.default)(c)),c=(0,x.default)(c,d);return l}function ve(e){(0,u.Z)(1,arguments);var t=e||{},n=(0,a.default)(t.start),r=(0,a.default)(t.end).getTime(),o=[];if(!(n.getTime()<=r))throw new RangeError("Invalid interval");var i=n;for(i.setHours(0,0,0,0),i.setDate(1);i.getTime()<=r;)o.push((0,a.default)(i)),i.setMonth(i.getMonth()+1);return o}var we=n(73116);function xe(e){(0,u.Z)(1,arguments);var t=e||{},n=(0,a.default)(t.start),r=(0,a.default)(t.end),o=r.getTime();if(!(n.getTime()<=o))throw new RangeError("Invalid interval");var i=(0,we.default)(n);o=(0,we.default)(r).getTime();for(var s=[],l=i;l.getTime()<=o;)s.push((0,a.default)(l)),l=(0,k.default)(l,1);return s}function ke(e,t){(0,u.Z)(1,arguments);var n=e||{},r=(0,a.default)(n.start),o=(0,a.default)(n.end),i=o.getTime();if(!(r.getTime()<=i))throw new RangeError("Invalid interval");var s=(0,Q.default)(r,t),l=(0,Q.default)(o,t);s.setHours(15),l.setHours(15),i=l.getTime();for(var c=[],d=s;d.getTime()<=i;)d.setHours(0),c.push((0,a.default)(d)),(d=(0,j.default)(d,1)).setHours(15);return c}function Se(e){(0,u.Z)(1,arguments);for(var t=ge(e),n=[],r=0;r0?(c=(0,a.default)(t),d=(0,a.default)(e)):(c=(0,a.default)(e),d=(0,a.default)(t));var p,h=fe(d,c),g=((0,F.Z)(d)-(0,F.Z)(c))/1e3,y=Math.round((h-g)/60);if(y<2)return null!=n&&n.includeSeconds?h<5?s.formatDistance("lessThanXSeconds",5,f):h<10?s.formatDistance("lessThanXSeconds",10,f):h<20?s.formatDistance("lessThanXSeconds",20,f):h<40?s.formatDistance("halfAMinute",0,f):h<60?s.formatDistance("lessThanXMinutes",1,f):s.formatDistance("xMinutes",1,f):0===y?s.formatDistance("lessThanXMinutes",1,f):s.formatDistance("xMinutes",y,f);if(y<45)return s.formatDistance("xMinutes",y,f);if(y<90)return s.formatDistance("aboutXHours",1,f);if(y0?(d=(0,a.default)(t),f=(0,a.default)(e)):(d=(0,a.default)(e),f=(0,a.default)(t));var h,g=String(null!==(i=null==n?void 0:n.roundingMethod)&&void 0!==i?i:"round");if("floor"===g)h=Math.floor;else if("ceil"===g)h=Math.ceil;else{if("round"!==g)throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");h=Math.round}var y,m=f.getTime()-d.getTime(),b=m/Ke,v=(m-((0,F.Z)(f)-(0,F.Z)(d)))/Ke,w=null==n?void 0:n.unit;if("second"===(y=w?String(w):b<1?"second":b<60?"minute":b=0&&o<=3))throw new RangeError("fractionDigits must be between 0 and 3 inclusively");var i=(0,at.Z)(r.getDate(),2),u=(0,at.Z)(r.getMonth()+1,2),l=r.getFullYear(),c=(0,at.Z)(r.getHours(),2),d=(0,at.Z)(r.getMinutes(),2),f=(0,at.Z)(r.getSeconds(),2),p="";if(o>0){var h=r.getMilliseconds(),g=Math.floor(h*Math.pow(10,o-3));p="."+(0,at.Z)(g,o)}var y="",m=r.getTimezoneOffset();if(0!==m){var b=Math.abs(m),v=(0,at.Z)((0,s.Z)(b/60),2),w=(0,at.Z)(b%60,2);y="".concat(m<0?"+":"-").concat(v,":").concat(w)}else y="Z";return"".concat(l,"-").concat(u,"-").concat(i,"T").concat(c,":").concat(d,":").concat(f).concat(p).concat(y)}var dt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ft=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function pt(e){if(arguments.length<1)throw new TypeError("1 arguments required, but only ".concat(arguments.length," present"));var t=(0,a.default)(e);if(!(0,I.default)(t))throw new RangeError("Invalid time value");var n=dt[t.getUTCDay()],r=(0,at.Z)(t.getUTCDate(),2),o=ft[t.getUTCMonth()],i=t.getUTCFullYear(),u=(0,at.Z)(t.getUTCHours(),2),s=(0,at.Z)(t.getUTCMinutes(),2),l=(0,at.Z)(t.getUTCSeconds(),2);return"".concat(n,", ").concat(r," ").concat(o," ").concat(i," ").concat(u,":").concat(s,":").concat(l," GMT")}var ht=n(7610);function gt(e,t,n){var r,o,i,l,c,d,f,p,h,g;(0,u.Z)(2,arguments);var y=(0,a.default)(e),b=(0,a.default)(t),v=(0,qe.j)(),w=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:v.locale)&&void 0!==r?r:He.Z,x=(0,s.Z)(null!==(i=null!==(l=null!==(c=null!==(d=null==n?void 0:n.weekStartsOn)&&void 0!==d?d:null==n||null===(f=n.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==c?c:v.weekStartsOn)&&void 0!==l?l:null===(h=v.locale)||void 0===h||null===(g=h.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==i?i:0);if(!w.localize)throw new RangeError("locale must contain localize property");if(!w.formatLong)throw new RangeError("locale must contain formatLong property");if(!w.formatRelative)throw new RangeError("locale must contain formatRelative property");var k,S=(0,m.default)(y,b);if(isNaN(S))throw new RangeError("Invalid time value");k=S<-6?"other":S<-1?"lastWeek":S<0?"yesterday":S<1?"today":S<2?"tomorrow":S<7?"nextWeek":"other";var j=(0,ht.Z)(y,(0,F.Z)(y)),O=(0,ht.Z)(b,(0,F.Z)(b)),E=w.formatRelative(k,j,O,{locale:w,weekStartsOn:x});return(0,Be.default)(y,E,{locale:w,weekStartsOn:x})}function yt(e){(0,u.Z)(1,arguments);var t=(0,s.Z)(e);return(0,a.default)(1e3*t)}var mt=n(35459),bt=n(98465);function vt(e){(0,u.Z)(1,arguments);var t=(0,a.default)(e);return(0,m.default)(t,(0,Ce.default)(t))+1}var wt=n(59799);function xt(e){(0,u.Z)(1,arguments);var t=(0,a.default)(e).getFullYear();return t%400==0||t%4==0&&t%100!=0}function kt(e){(0,u.Z)(1,arguments);var t=(0,a.default)(e);return"Invalid Date"===String(new Date(t))?NaN:xt(t)?366:365}function St(e){(0,u.Z)(1,arguments);var t=(0,a.default)(e).getFullYear();return 10*Math.floor(t/10)}function jt(){return(0,Je.Z)({},(0,qe.j)())}var Ot=n(99994);function Et(e){(0,u.Z)(1,arguments);var t=(0,a.default)(e).getDay();return 0===t&&(t=7),t}var Ct=n(8507),_t=6048e5;function Tt(e){(0,u.Z)(1,arguments);var t=(0,y.Z)(e),n=(0,y.Z)((0,j.default)(t,60)).valueOf()-t.valueOf();return Math.round(n/_t)}function Dt(e){return(0,u.Z)(1,arguments),(0,a.default)(e).getMilliseconds()}var Pt=n(34908),Mt=n(51981),At=864e5;function Lt(e,t){(0,u.Z)(2,arguments);var n=e||{},r=t||{},o=(0,a.default)(n.start).getTime(),i=(0,a.default)(n.end).getTime(),s=(0,a.default)(r.start).getTime(),l=(0,a.default)(r.end).getTime();if(!(o<=i&&s<=l))throw new RangeError("Invalid interval");if(!(oi?i:l)-(s=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setFullYear(h+1,0,y),m.setHours(0,0,0,0);var b=(0,Q.default)(m,t),v=new Date(0);v.setFullYear(h,0,y),v.setHours(0,0,0,0);var w=(0,Q.default)(v,t);return p.getTime()>=b.getTime()?h+1:p.getTime()>=w.getTime()?h:h-1}function Zt(e,t){var n,r,o,i,a,l,c,d;(0,u.Z)(1,arguments);var f=(0,qe.j)(),p=(0,s.Z)(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==r?r:null===(c=f.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==n?n:1),h=Yt(e,t),g=new Date(0);return g.setFullYear(h,0,p),g.setHours(0,0,0,0),(0,Q.default)(g,t)}var Ft=6048e5;function Bt(e,t){(0,u.Z)(1,arguments);var n=(0,a.default)(e),r=(0,Q.default)(n,t).getTime()-Zt(n,t).getTime();return Math.round(r/Ft)+1}function qt(e,t){var n,r,o,i,a,l,c,d;(0,u.Z)(1,arguments);var f=(0,qe.j)(),p=(0,s.Z)(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:f.weekStartsOn)&&void 0!==r?r:null===(c=f.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==n?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=(0,mt.default)(e);if(isNaN(h))return NaN;var g=p-(0,bt.default)((0,je.default)(e));g<=0&&(g+=7);var y=h-g;return Math.ceil(y/7)+1}function Ht(e){(0,u.Z)(1,arguments);var t=(0,a.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function Jt(e,t){return(0,u.Z)(1,arguments),U(Ht(e),(0,je.default)(e),t)+1}var Xt=n(81914);function zt(e){return(0,u.Z)(1,arguments),Math.floor(e*L.vh)}function Qt(e){return(0,u.Z)(1,arguments),Math.floor(e*L.fR)}function Wt(e){return(0,u.Z)(1,arguments),Math.floor(e*L.R3)}function Ut(e){(0,u.Z)(1,arguments);var t=(0,a.default)(e.start),n=(0,a.default)(e.end);if(isNaN(t.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(n.getTime()))throw new RangeError("End Date is invalid");var r={};r.years=Math.abs(he(n,t));var o=M(n,t),i=l(t,{years:o*r.years});r.months=Math.abs(ce(n,i));var s=l(i,{months:o*r.months});r.days=Math.abs(V(n,s));var c=l(s,{days:o*r.days});r.hours=Math.abs(re(n,c));var d=l(c,{hours:o*r.hours});r.minutes=Math.abs(ae(n,d));var f=l(d,{minutes:o*r.minutes});return r.seconds=Math.abs(fe(n,f)),r}function Gt(e,t,n){var r,o,i;return(0,u.Z)(1,arguments),void 0===(i=t)||"locale"in i?n=t:o=t,new Intl.DateTimeFormat(null===(r=n)||void 0===r?void 0:r.locale,o).format(e)}function Kt(e,t,n){(0,u.Z)(2,arguments);var r,o=0,i=(0,a.default)(e),s=(0,a.default)(t);if(null!=n&&n.unit)"second"===(r=null==n?void 0:n.unit)?o=fe(i,s):"minute"===r?o=ae(i,s):"hour"===r?o=re(i,s):"day"===r?o=(0,m.default)(i,s):"week"===r?o=U(i,s):"month"===r?o=(0,J.default)(i,s):"quarter"===r?o=z(i,s):"year"===r&&(o=(0,G.default)(i,s));else{var l=fe(i,s);Math.abs(l)Date.now()}var un=n(84731);function sn(e,t,n){return(0,u.Z)(2,arguments),(0,I.default)((0,un.default)(e,t,new Date,n))}function ln(e){return(0,u.Z)(1,arguments),1===(0,a.default)(e).getDay()}function cn(e){return(0,u.Z)(1,arguments),(0,a.default)(e).getTime()=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var g=(0,a.default)(e),y=g.getDay(),m=6+(y30)throw new RangeError("`options.nearestTo` must be between 1 and 30");var o=(0,a.default)(e),i=o.getSeconds(),u=o.getMinutes()+i/60,l=ne(null==t?void 0:t.roundingMethod)(u/r)*r,c=u%r,d=Math.round(c/r)*r;return new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),l+d)}function Cr(e){(0,u.Z)(1,arguments);var t=e/L.R3;return Math.floor(t)}function _r(e){return(0,u.Z)(1,arguments),e*L.qk}function Tr(e){(0,u.Z)(1,arguments);var t=e/L.xx;return Math.floor(t)}var Dr=n(44958);function Pr(e,t){(0,u.Z)(2,arguments);var n=(0,a.default)(e),r=(0,s.Z)(t);return n.setDate(r),n}function Mr(e,t,n){var r,i,l,c,d,f,p,h;(0,u.Z)(2,arguments);var g=(0,qe.j)(),y=(0,s.Z)(null!==(r=null!==(i=null!==(l=null!==(c=null==n?void 0:n.weekStartsOn)&&void 0!==c?c:null==n||null===(d=n.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==l?l:g.weekStartsOn)&&void 0!==i?i:null===(p=g.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==r?r:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,a.default)(e),b=(0,s.Z)(t),v=m.getDay(),w=7-y,x=b<0||b>6?b-(v+w)%7:((b%7+7)%7+w)%7-(v+w)%7;return(0,o.default)(m,x)}function Ar(e,t){(0,u.Z)(2,arguments);var n=(0,a.default)(e),r=(0,s.Z)(t);return n.setMonth(0),n.setDate(r),n}function Lr(e){(0,u.Z)(1,arguments);var t={},n=(0,qe.j)();for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(void 0===e[o]?delete t[o]:t[o]=e[o]);(0,qe.b)(t)}var Nr=n(63673);function Rr(e,t){(0,u.Z)(2,arguments);var n=(0,a.default)(e),r=(0,s.Z)(t)-Et(n);return(0,o.default)(n,r)}function Ir(e,t){(0,u.Z)(2,arguments);var n=(0,a.default)(e),r=(0,s.Z)(t),o=(0,Ct.default)(n)-r;return n.setDate(n.getDate()-7*o),n}function Yr(e,t){(0,u.Z)(2,arguments);var n=(0,a.default)(e),r=(0,s.Z)(t);return n.setMilliseconds(r),n}var Zr=n(99791),Fr=n(10520),Br=n(89968),qr=n(8868);function Hr(e,t,n){(0,u.Z)(2,arguments);var r=(0,a.default)(e),o=(0,s.Z)(t),i=Bt(r,n)-o;return r.setDate(r.getDate()-7*i),r}function Jr(e,t,n){var r,o,i,l,c,d,f,p;(0,u.Z)(2,arguments);var h=(0,qe.j)(),g=(0,s.Z)(null!==(r=null!==(o=null!==(i=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==i?i:h.firstWeekContainsDate)&&void 0!==o?o:null===(f=h.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==r?r:1),y=(0,a.default)(e),b=(0,s.Z)(t),v=(0,m.default)(y,Zt(y,n)),w=new Date(0);return w.setFullYear(b,0,g),w.setHours(0,0,0,0),(y=Zt(w,n)).setDate(y.getDate()+v),y}var Xr=n(42019),zr=n(10405);function Qr(e){(0,u.Z)(1,arguments);var t=(0,a.default)(e),n=t.getFullYear(),r=10*Math.floor(n/10);return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}function Wr(){return(0,zr.default)(Date.now())}function Ur(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r+1),o.setHours(0,0,0,0),o}function Gr(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r-1),o.setHours(0,0,0,0),o}var Kr=n(94873);function Vr(e,t){if((0,u.Z)(2,arguments),!t||"object"!==(0,r.Z)(t))return new Date(NaN);var n=t.years?(0,s.Z)(t.years):0,o=t.months?(0,s.Z)(t.months):0,i=t.weeks?(0,s.Z)(t.weeks):0,a=t.days?(0,s.Z)(t.days):0,l=t.hours?(0,s.Z)(t.hours):0,c=t.minutes?(0,s.Z)(t.minutes):0,d=t.seconds?(0,s.Z)(t.seconds):0,f=(0,Kr.default)(e,o+12*n),p=(0,Rn.default)(f,a+7*i),h=1e3*(d+60*(c+60*l));return new Date(p.getTime()-h)}function $r(e,t){return(0,u.Z)(2,arguments),p(e,-(0,s.Z)(t))}function eo(e,t){(0,u.Z)(2,arguments);var n=(0,s.Z)(t);return(0,h.default)(e,-n)}function to(e,t){(0,u.Z)(2,arguments);var n=(0,s.Z)(t);return(0,x.default)(e,-n)}var no=n(54308);function ro(e,t){return(0,u.Z)(2,arguments),S(e,-(0,s.Z)(t))}var oo=n(65032),io=n(46318);function ao(e){return(0,u.Z)(1,arguments),Math.floor(e*L.ju)}function uo(e){return(0,u.Z)(1,arguments),Math.floor(e*L.CU)}function so(e){return(0,u.Z)(1,arguments),Math.floor(e*L._j)}},42598:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getTime()>i.getTime()}},63063:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getTime()=i&&n<=a}},13621:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(86522),o=n(66700),i=n(19785);function a(e){var t,n;if((0,i.Z)(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==(0,r.Z)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,o.default)(e);(void 0===n||nt||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}},84731:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return nt}});var r=n(86522);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw a}}}}var a=n(65222),u=n(7610),s=n(66700),l=n(68118),c=n(60429),d=n(1645),f=n(13503),p=n(42765),h=n(19785);function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}(this,n)}}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var x=n(45850);function k(e,t){for(var n=0;n0,o=r?t:1-t;if(o<=50)n=e||100;else{var i=o+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}function le(e){return e%400==0||e%4==0&&e%100!=0}var ce=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=se(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(_),de=n(72763),fe=n(52329),pe=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0}},{key:"set",value:function(e,t,n,r){var o=(0,de.Z)(e,r);if(n.isTwoDigitYear){var i=se(n.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,fe.Z)(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,fe.Z)(e,r)}}]),n}(_),he=n(55143),ge=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(_),be=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(_),ve=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(_),we=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(_),xe=n(22197);var ke=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,fe.Z)(function(e,t,n){(0,h.Z)(2,arguments);var r=(0,s.default)(e),o=(0,p.Z)(t),i=(0,xe.Z)(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)}}]),n}(_),Se=n(47665);var je=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,he.Z)(function(e,t){(0,h.Z)(2,arguments);var n=(0,s.default)(e),r=(0,p.Z)(t),o=(0,Se.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(_),Oe=[31,28,31,30,31,30,31,31,30,31,30,31],Ee=[31,29,31,30,31,30,31,31,30,31,30,31],Ce=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=1&&t<=Ee[r]:t>=1&&t<=Oe[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(_),_e=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(_),Te=n(18667);function De(e,t,n){var r,o,i,a,u,l,c,d;(0,h.Z)(2,arguments);var f=(0,Te.j)(),g=(0,p.Z)(null!==(r=null!==(o=null!==(i=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(u=n.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==i?i:f.weekStartsOn)&&void 0!==o?o:null===(c=f.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==r?r:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=(0,s.default)(e),m=(0,p.Z)(t),b=((m%7+7)%7=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=De(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(_),Me=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=De(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(_),Ae=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=De(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(_);var Le=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){(0,h.Z)(2,arguments);var n=(0,p.Z)(t);n%7==0&&(n-=7);var r=(0,s.default)(e),o=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+o),r}(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(_),Ne=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(_),Ze=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(_),Fe=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(_),Be=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(_),qe=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(_),He=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(_),Je=function(e){m(n,e);var t=v(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=1&&Y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Z=(0,p.Z)(null!==(O=null!==(E=null!==(_=null!==(T=null==o?void 0:o.weekStartsOn)&&void 0!==T?T:null==o||null===(D=o.locale)||void 0===D||null===(P=D.options)||void 0===P?void 0:P.weekStartsOn)&&void 0!==_?_:R.weekStartsOn)&&void 0!==E?E:null===(M=R.locale)||void 0===M||null===(A=M.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==O?O:0);if(!(Z>=0&&Z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===N)return""===L?(0,s.default)(n):new Date(NaN);var F,B={firstWeekContainsDate:Y,weekStartsOn:Z,locale:I},q=[new C],H=N.match(Ke).map((function(e){var t=e[0];return t in c.Z?(0,c.Z[t])(e,I.formatLong):e})).join("").match(Ge),J=[],X=i(H);try{var z=function(){var t=F.value;null!=o&&o.useAdditionalWeekYearTokens||!(0,f.Do)(t)||(0,f.qp)(t,N,e),null!=o&&o.useAdditionalDayOfYearTokens||!(0,f.Iu)(t)||(0,f.qp)(t,N,e);var n=t[0],r=Ue[n];if(r){var i=r.incompatibleTokens;if(Array.isArray(i)){var a=J.find((function(e){return i.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===r.incompatibleTokens&&J.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));J.push({token:n,fullToken:t});var u=r.run(L,t,I.match,B);if(!u)return{v:new Date(NaN)};q.push(u.setter),L=u.rest}else{if(n.match(tt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(Ve)[1].replace($e,"'")),0!==L.indexOf(t))return{v:new Date(NaN)};L=L.slice(t.length)}};for(X.s();!(F=X.n()).done;){var Q=z();if("object"===(0,r.Z)(Q))return Q.v}}catch(e){X.e(e)}finally{X.f()}if(L.length>0&&et.test(L))return new Date(NaN);var W=q.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return q.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),U=(0,s.default)(n);if(isNaN(U.getTime()))return new Date(NaN);var G,K=(0,u.Z)(U,(0,d.Z)(U)),V={},$=i(W);try{for($.s();!(G=$.n()).done;){var ee=G.value;if(!ee.validate(K,B))return new Date(NaN);var te=ee.set(K,V,B);Array.isArray(te)?(K=te[0],(0,l.Z)(V,te[1])):K=te}}catch(e){$.e(e)}finally{$.f()}return K}},31807:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(64312),o=n(19785),i=n(42765);function a(e,t){var n;(0,o.Z)(1,arguments);var a=(0,i.Z)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==a&&1!==a&&0!==a)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var g,y=function(e){var t,n={},r=e.split(u.dateTimeDelimiter);if(r.length>2)return n;/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],u.timeZoneDelimiter.test(n.date)&&(n.date=e.split(u.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var o=u.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}(e);if(y.date){var m=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(y.date,a);g=function(e,t){if(null===t)return new Date(NaN);var n=e.match(s);if(!n)return new Date(NaN);var r=!!n[4],o=d(n[1]),i=d(n[2])-1,a=d(n[3]),u=d(n[4]),l=d(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,u,l)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(t,u,l):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(p[t]||(h(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(h(e)?366:365)}(t,o)?(c.setUTCFullYear(t,i,Math.max(o,a)),c):new Date(NaN)}(m.restDateString,m.year)}if(!g||isNaN(g.getTime()))return new Date(NaN);var b,v=g.getTime(),w=0;if(y.time&&(w=function(e){var t=e.match(l);if(!t)return NaN;var n=f(t[1]),o=f(t[2]),i=f(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,o,i))return NaN;return n*r.vh+o*r.yJ+1e3*i}(y.time),isNaN(w)))return new Date(NaN);if(!y.timezone){var x=new Date(v+w),k=new Date(0);return k.setFullYear(x.getUTCFullYear(),x.getUTCMonth(),x.getUTCDate()),k.setHours(x.getUTCHours(),x.getUTCMinutes(),x.getUTCSeconds(),x.getUTCMilliseconds()),k}return b=function(e){if("Z"===e)return 0;var t=e.match(c);if(!t)return 0;var n="+"===t[1]?-1:1,o=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,i))return NaN;return n*(o*r.vh+i*r.yJ)}(y.timezone),isNaN(b)?new Date(NaN):new Date(v+w+b)}var u={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},s=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,l=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){return e?parseInt(e):1}function f(e){return e&&parseFloat(e.replace(",","."))||0}var p=[31,null,31,30,31,30,31,31,30,31,30,31];function h(e){return e%400==0||e%4==0&&e%100!=0}},44958:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(86522),o=n(66700),i=n(10520),a=n(42765),u=n(19785);function s(e,t){if((0,u.Z)(2,arguments),"object"!==(0,r.Z)(t)||null===t)throw new RangeError("values parameter must be an object");var n=(0,o.default)(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=(0,i.default)(n,t.month)),null!=t.date&&n.setDate((0,a.Z)(t.date)),null!=t.hours&&n.setHours((0,a.Z)(t.hours)),null!=t.minutes&&n.setMinutes((0,a.Z)(t.minutes)),null!=t.seconds&&n.setSeconds((0,a.Z)(t.seconds)),null!=t.milliseconds&&n.setMilliseconds((0,a.Z)(t.milliseconds)),n)}},63673:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(42765),o=n(66700),i=n(19785);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.default)(e),a=(0,r.Z)(t);return n.setHours(a),n}},99791:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(42765),o=n(66700),i=n(19785);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.default)(e),a=(0,r.Z)(t);return n.setMinutes(a),n}},10520:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(42765),o=n(66700),i=n(59799),a=n(19785);function u(e,t){(0,a.Z)(2,arguments);var n=(0,o.default)(e),u=(0,r.Z)(t),s=n.getFullYear(),l=n.getDate(),c=new Date(0);c.setFullYear(s,u,15),c.setHours(0,0,0,0);var d=(0,i.Z)(c);return n.setMonth(u,Math.min(l,d)),n}},89968:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(42765),o=n(66700),i=n(10520),a=n(19785);function u(e,t){(0,a.Z)(2,arguments);var n=(0,o.default)(e),u=(0,r.Z)(t)-(Math.floor(n.getMonth()/3)+1);return(0,i.default)(n,n.getMonth()+3*u)}},8868:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(42765),o=n(66700),i=n(19785);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.default)(e),a=(0,r.Z)(t);return n.setSeconds(a),n}},42019:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(42765),o=n(66700),i=n(19785);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.default)(e),a=(0,r.Z)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(a),n)}},10405:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(0,0,0,0),t}},60275:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(49122),o=n(19785);function i(e){return(0,o.Z)(1,arguments),(0,r.default)(e,{weekStartsOn:1})}},38129:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(28438),o=n(60275),i=n(19785);function a(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),(0,o.Z)(n)}},12414:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},73116:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66700),o=n(19785);function i(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth(),i=n-n%3;return t.setMonth(i,1),t.setHours(0,0,0,0),t}},49122:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(66700),o=n(42765),i=n(19785),a=n(18667);function u(e,t){var n,u,s,l,c,d,f,p;(0,i.Z)(1,arguments);var h=(0,a.j)(),g=(0,o.Z)(null!==(n=null!==(u=null!==(s=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t||null===(c=t.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==s?s:h.weekStartsOn)&&void 0!==u?u:null===(f=h.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=(0,r.default)(e),m=y.getDay(),b=(m(u=(a=Math.ceil(f/y))>u?a+1:u+1)&&(i=u,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((u=l.length)-(i=c.length)<0&&(i=u,r=c,c=l,l=r),n=0;i;)n=(l[--i]=l[i]+c[i]+n)/g|0,l[i]%=g;for(n&&(l.unshift(n),++o),u=l.length;0==l[--u];)l.pop();return t.d=l,t.e=o,s?D(t,f):t}function x(e,t,n){if(e!==~~e||en)throw Error(c+e)}function k(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;te.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;te.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},v.decimalPlaces=v.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*y;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},v.dividedBy=v.div=function(e){return S(this,new this.constructor(e))},v.dividedToIntegerBy=v.idiv=function(e){var t=this.constructor;return D(S(this,new t(e),0,1),t.precision)},v.equals=v.eq=function(e){return!this.cmp(e)},v.exponent=function(){return O(this)},v.greaterThan=v.gt=function(e){return this.cmp(e)>0},v.greaterThanOrEqualTo=v.gte=function(e){return this.cmp(e)>=0},v.isInteger=v.isint=function(){return this.e>this.d.length-2},v.isNegative=v.isneg=function(){return this.s<0},v.isPositive=v.ispos=function(){return this.s>0},v.isZero=function(){return 0===this.s},v.lessThan=v.lt=function(e){return this.cmp(e)<0},v.lessThanOrEqualTo=v.lte=function(e){return this.cmp(e)<1},v.logarithm=v.log=function(e){var t,n=this,r=n.constructor,o=r.precision,a=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(i))throw Error(l+"NaN");if(n.s<1)throw Error(l+(n.s?"NaN":"-Infinity"));return n.eq(i)?new r(0):(s=!1,t=S(_(n,a),_(e,a),a),s=!0,D(t,o))},v.minus=v.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?P(t,e):w(t,(e.s=-e.s,e))},v.modulo=v.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(l+"NaN");return n.s?(s=!1,t=S(n,e,0,1).times(e),s=!0,n.minus(t)):D(new r(n),o)},v.naturalExponential=v.exp=function(){return j(this)},v.naturalLogarithm=v.ln=function(){return _(this)},v.negated=v.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},v.plus=v.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?w(t,e):P(t,(e.s=-e.s,e))},v.precision=v.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(c+e);if(t=O(o)+1,n=(r=o.d.length-1)*y+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},v.squareRoot=v.sqrt=function(){var e,t,n,r,o,i,a,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(l+"NaN")}for(e=O(u),s=!1,0==(o=Math.sqrt(+u))||o==1/0?(((t=k(u.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),r=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(o.toString()),o=a=(n=c.precision)+3;;)if(r=(i=r).plus(S(u,i,a+2)).times(.5),k(i.d).slice(0,a)===(t=k(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(D(i,n+1,0),i.times(i).eq(u)){r=i;break}}else if("9999"!=t)break;a+=4}return s=!0,D(r,n)},v.times=v.mul=function(e){var t,n,r,o,i,a,u,l,c,d=this,f=d.constructor,p=d.d,h=(e=new f(e)).d;if(!d.s||!e.s)return new f(0);for(e.s*=d.s,n=d.e+e.e,(l=p.length)<(c=h.length)&&(i=p,p=h,h=i,a=l,l=c,c=a),i=[],r=a=l+c;r--;)i.push(0);for(r=c;--r>=0;){for(t=0,o=l+r;o>r;)u=i[o]+h[r]*p[o-r-1]+t,i[o--]=u%g|0,t=u/g|0;i[o]=(i[o]+t)%g|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,s?D(e,f.precision):e},v.toDecimalPlaces=v.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(x(e,0,a),void 0===t?t=r.rounding:x(t,0,8),D(n,e+O(n)+1,t))},v.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=M(r,!0):(x(e,0,a),void 0===t?t=o.rounding:x(t,0,8),n=M(r=D(new o(r),e+1,t),!0,e+1)),n},v.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?M(o):(x(e,0,a),void 0===t?t=i.rounding:x(t,0,8),n=M((r=D(new i(o),e+O(o)+1,t)).abs(),!1,e+O(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},v.toInteger=v.toint=function(){var e=this,t=e.constructor;return D(new t(e),O(e)+1,t.rounding)},v.toNumber=function(){return+this},v.toPower=v.pow=function(e){var t,n,r,o,a,u,c=this,d=c.constructor,p=+(e=new d(e));if(!e.s)return new d(i);if(!(c=new d(c)).s){if(e.s<1)throw Error(l+"Infinity");return c}if(c.eq(i))return c;if(r=d.precision,e.eq(i))return D(c,r);if(u=(t=e.e)>=(n=e.d.length-1),a=c.s,u){if((n=p<0?-p:p)<=m){for(o=new d(i),t=Math.ceil(r/y+4),s=!1;n%2&&A((o=o.times(c)).d,t),0!==(n=f(n/2));)A((c=c.times(c)).d,t);return s=!0,e.s<0?new d(i).div(o):D(o,r)}}else if(a<0)throw Error(l+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,c.s=1,s=!1,o=e.times(_(c,r+12)),s=!0,(o=j(o)).s=a,o},v.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=M(o,(n=O(o))<=i.toExpNeg||n>=i.toExpPos):(x(e,1,a),void 0===t?t=i.rounding:x(t,0,8),r=M(o=D(new i(o),e,t),e<=(n=O(o))||n<=i.toExpNeg,e)),r},v.toSignificantDigits=v.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(x(e,1,a),void 0===t?t=n.rounding:x(t,0,8)),D(new n(this),e,t)},v.toString=v.valueOf=v.val=v.toJSON=function(){var e=this,t=O(e),n=e.constructor;return M(e,t<=n.toExpNeg||t>=n.toExpPos)};var S=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%g|0,r=n/g|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,o,i,a){var u,s,c,d,f,p,h,m,b,v,w,x,k,S,j,E,C,_,T=r.constructor,P=r.s==o.s?1:-1,M=r.d,A=o.d;if(!r.s)return new T(r);if(!o.s)throw Error(l+"Division by zero");for(s=r.e-o.e,C=A.length,j=M.length,m=(h=new T(P)).d=[],c=0;A[c]==(M[c]||0);)++c;if(A[c]>(M[c]||0)&&--s,(x=null==i?i=T.precision:a?i+(O(r)-O(o))+1:i)<0)return new T(0);if(x=x/y+2|0,c=0,1==C)for(d=0,A=A[0],x++;(c1&&(A=e(A,d),M=e(M,d),C=A.length,j=M.length),S=C,v=(b=M.slice(0,C)).length;v=g/2&&++E;do{d=0,(u=t(A,b,C,v))<0?(w=b[0],C!=v&&(w=w*g+(b[1]||0)),(d=w/E|0)>1?(d>=g&&(d=g-1),1==(u=t(f=e(A,d),b,p=f.length,v=b.length))&&(d--,n(f,C16)throw Error(d+O(e));if(!e.s)return new f(i);for(null==t?(s=!1,u=h):u=t,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(u+=Math.log(p(2,c))/Math.LN10*2+5|0,n=r=o=new f(i),f.precision=u;;){if(r=D(r.times(e),u),n=n.times(++l),k((a=o.plus(S(r,n,u))).d).slice(0,u)===k(o.d).slice(0,u)){for(;c--;)o=D(o.times(o),u);return f.precision=h,null==t?(s=!0,D(o,h)):o}o=a}}function O(e){for(var t=e.e*y,n=e.d[0];n>=10;n/=10)t++;return t}function E(e,t,n){if(t>e.LN10.sd())throw s=!0,n&&(e.precision=n),Error(l+"LN10 precision limit exceeded");return D(new e(e.LN10),t)}function C(e){for(var t="";e--;)t+="0";return t}function _(e,t){var n,r,o,a,u,c,d,f,p,h=1,g=e,y=g.d,m=g.constructor,b=m.precision;if(g.s<1)throw Error(l+(g.s?"NaN":"-Infinity"));if(g.eq(i))return new m(0);if(null==t?(s=!1,f=b):f=t,g.eq(10))return null==t&&(s=!0),E(m,f);if(f+=10,m.precision=f,r=(n=k(y)).charAt(0),a=O(g),!(Math.abs(a)<15e14))return d=E(m,f+2,b).times(a+""),g=_(new m(r+"."+n.slice(1)),f-10).plus(d),m.precision=b,null==t?(s=!0,D(g,b)):g;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=k((g=g.times(e)).d)).charAt(0),h++;for(a=O(g),r>1?(g=new m("0."+n),a++):g=new m(r+"."+n.slice(1)),c=u=g=S(g.minus(i),g.plus(i),f),p=D(g.times(g),f),o=3;;){if(u=D(u.times(p),f),k((d=c.plus(S(u,new m(o),f))).d).slice(0,f)===k(c.d).slice(0,f))return c=c.times(2),0!==a&&(c=c.plus(E(m,f+2,b).times(a+""))),c=S(c,new m(h),f),m.precision=b,null==t?(s=!0,D(c,b)):c;c=d,o+=2}}function T(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=f(n/y),e.d=[],r=(n+1)%y,n<0&&(r+=y),rb||e.e<-b))throw Error(d+n)}else e.s=0,e.e=0,e.d=[0];return e}function D(e,t,n){var r,o,i,a,u,l,c,h,m=e.d;for(a=1,i=m[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=y,o=t,c=m[h=0];else{if((h=Math.ceil((r+1)/y))>=(i=m.length))return e;for(c=i=m[h],a=1;i>=10;i/=10)a++;o=(r%=y)-y+a}if(void 0!==n&&(u=c/(i=p(10,a-o-1))%10|0,l=t<0||void 0!==m[h+1]||c%i,l=n<4?(u||l)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||l||6==n&&(r>0?o>0?c/p(10,a-o):0:m[h-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return l?(i=O(e),m.length=1,t=t-i-1,m[0]=p(10,(y-t%y)%y),e.e=f(-t/y)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(0==r?(m.length=h,i=1,h--):(m.length=h+1,i=p(10,y-r),m[h]=o>0?(c/p(10,a-o)%p(10,o)|0)*i:0),l)for(;;){if(0==h){(m[0]+=i)==g&&(m[0]=1,++e.e);break}if(m[h]+=i,m[h]!=g)break;m[h--]=0,i=1}for(r=m.length;0===m[--r];)m.pop();if(s&&(e.e>b||e.e<-b))throw Error(d+O(e));return e}function P(e,t){var n,r,o,i,a,u,l,c,d,f,p=e.constructor,h=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),s?D(t,h):t;if(l=e.d,f=t.d,r=t.e,c=e.e,l=l.slice(),a=c-r){for((d=a<0)?(n=l,a=-a,u=f.length):(n=f,r=c,u=l.length),a>(o=Math.max(Math.ceil(h/y),u)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((d=(o=l.length)<(u=f.length))&&(u=o),o=0;o0;--o)l[u++]=0;for(o=f.length;o>a;){if(l[--o]0?i=i.charAt(0)+"."+i.slice(1)+C(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+C(-o-1)+i,n&&(r=n-a)>0&&(i+=C(r))):o>=a?(i+=C(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+C(r))):((r=o+1)0&&(o+1===a&&(i+="."),i+=C(r))),e.s<0?"-"+i:i}function A(e,t){if(e.length>t)return e.length=t,!0}function L(e){if(!e||"object"!=typeof e)throw Error(l+"Object expected");var t,n,r,o=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=o[t+1]&&r<=o[t+2]))throw Error(c+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(c+n+": "+r);this[n]=new this(r)}return this}u=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(c+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):T(t,e.toString())}if("string"!=typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!h.test(e))throw Error(c+e);T(t,e)}if(i.prototype=v,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=L,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n/g},61426:function(e,t,n){var r=1/0,o="[object Symbol]",i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,u="\\ud800-\\udfff",s="\\u0300-\\u036f\\ufe20-\\ufe23",l="\\u20d0-\\u20f0",c="\\u2700-\\u27bf",d="a-z\\xdf-\\xf6\\xf8-\\xff",f="A-Z\\xc0-\\xd6\\xd8-\\xde",p="\\ufe0e\\ufe0f",h="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",g="['’]",y="["+u+"]",m="["+h+"]",b="["+s+l+"]",v="\\d+",w="["+c+"]",x="["+d+"]",k="[^"+u+h+v+c+d+f+"]",S="\\ud83c[\\udffb-\\udfff]",j="[^"+u+"]",O="(?:\\ud83c[\\udde6-\\uddff]){2}",E="[\\ud800-\\udbff][\\udc00-\\udfff]",C="["+f+"]",_="\\u200d",T="(?:"+x+"|"+k+")",D="(?:"+C+"|"+k+")",P="(?:['’](?:d|ll|m|re|s|t|ve))?",M="(?:['’](?:D|LL|M|RE|S|T|VE))?",A="(?:"+b+"|"+S+")"+"?",L="["+p+"]?",N=L+A+("(?:"+_+"(?:"+[j,O,E].join("|")+")"+L+A+")*"),R="(?:"+[w,O,E].join("|")+")"+N,I="(?:"+[j+b+"?",b,O,E,y].join("|")+")",Y=RegExp(g,"g"),Z=RegExp(b,"g"),F=RegExp(S+"(?="+S+")|"+I+N,"g"),B=RegExp([C+"?"+x+"+"+P+"(?="+[m,C,"$"].join("|")+")",D+"+"+M+"(?="+[m,C+T,"$"].join("|")+")",C+"?"+T+"+"+P,C+"+"+M,v,R].join("|"),"g"),q=RegExp("["+_+u+s+l+p+"]"),H=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,J="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,X="object"==typeof self&&self&&self.Object===Object&&self,z=J||X||Function("return this")();var Q,W=(Q={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==Q?void 0:Q[e]});function U(e){return q.test(e)}function G(e){return U(e)?function(e){return e.match(F)||[]}(e):function(e){return e.split("")}(e)}var K=Object.prototype.toString,V=z.Symbol,$=V?V.prototype:void 0,ee=$?$.toString:void 0;function te(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&K.call(e)==o}(e))return ee?ee.call(e):"";var t=e+"";return"0"==t&&1/e==-r?"-0":t}function ne(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r-1},Ce.prototype.set=function(e,t){var n=this.__data__,r=Me(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},_e.prototype.clear=function(){this.__data__={hash:new Ee,map:new(he||Ce),string:new Ee}},_e.prototype.delete=function(e){return Ie(this,e).delete(e)},_e.prototype.get=function(e){return Ie(this,e).get(e)},_e.prototype.has=function(e){return Ie(this,e).has(e)},_e.prototype.set=function(e,t){return Ie(this,e).set(e,t),this},Te.prototype.clear=function(){this.__data__=new Ce},Te.prototype.delete=function(e){return this.__data__.delete(e)},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ce){var r=n.__data__;if(!he||r.length<199)return r.push([e,t]),this;n=this.__data__=new _e(r)}return n.set(e,t),this};var Ze=ce?X(ce,Object):function(){return[]},Fe=function(e){return te.call(e)};function Be(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||M.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=o}(e.length)&&!We(e)}var Qe=de||function(){return!1};function We(e){var t=Ue(e)?te.call(e):"";return t==s||t==l}function Ue(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ge(e){return ze(e)?De(e):function(e){if(!qe(e))return fe(e);var t=[];for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Ae(e,!0,!0)}},62686:function(e,t,n){var r=1/0,o="[object Symbol]",i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,u="\\ud800-\\udfff",s="\\u2700-\\u27bf",l="a-z\\xdf-\\xf6\\xf8-\\xff",c="A-Z\\xc0-\\xd6\\xd8-\\xde",d="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",f="['’]",p="["+d+"]",h="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",g="\\d+",y="["+s+"]",m="["+l+"]",b="[^"+u+d+g+s+l+c+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",w="[\\ud800-\\udbff][\\udc00-\\udfff]",x="["+c+"]",k="(?:"+m+"|"+b+")",S="(?:"+x+"|"+b+")",j="(?:['’](?:d|ll|m|re|s|t|ve))?",O="(?:['’](?:D|LL|M|RE|S|T|VE))?",E="(?:"+h+"|\\ud83c[\\udffb-\\udfff])"+"?",C="[\\ufe0e\\ufe0f]?",_=C+E+("(?:\\u200d(?:"+["[^"+u+"]",v,w].join("|")+")"+C+E+")*"),T="(?:"+[y,v,w].join("|")+")"+_,D=RegExp(f,"g"),P=RegExp(h,"g"),M=RegExp([x+"?"+m+"+"+j+"(?="+[p,x,"$"].join("|")+")",S+"+"+O+"(?="+[p,x+k,"$"].join("|")+")",x+"?"+k+"+"+j,x+"+"+O,g,T].join("|"),"g"),A=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,L="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,N="object"==typeof self&&self&&self.Object===Object&&self,R=L||N||Function("return this")();var I,Y=(I={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==I?void 0:I[e]});var Z=Object.prototype.toString,F=R.Symbol,B=F?F.prototype:void 0,q=B?B.toString:void 0;function H(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&Z.call(e)==o}(e))return q?q.call(e):"";var t=e+"";return"0"==t&&1/e==-r?"-0":t}function J(e){return null==e?"":H(e)}var X,z=(X=function(e,t,n){return e+(n?"-":"")+t.toLowerCase()},function(e){return function(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o-1&&e%1==0&&e0){if(++Se>=800)return arguments[0]}else Se=0;return ke.apply(void 0,arguments)});function Ee(e,t){return e===t||e!=e&&t!=t}var Ce=pe(function(){return arguments}())?pe:function(e){return Ne(e)&&z.call(e,"callee")&&!ee.call(e,"callee")},_e=Array.isArray;function Te(e){return null!=e&&Ae(e.length)&&!Me(e)}var De=re||function(){return!1};function Pe(e){if(!Ne(e))return!1;var t=fe(e);return t==c||t==l||"string"==typeof e.message&&"string"==typeof e.name&&!function(e){if(!Ne(e)||fe(e)!=h)return!1;var t=$(e);if(null===t)return!0;var n=z.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&X.call(n)==U}(e)}function Me(e){if(!Le(e))return!1;var t=fe(e);return t==d||t==f||t==s||t==g}function Ae(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Le(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ne(e){return null!=e&&"object"==typeof e}var Re=R?function(e){return function(t){return e(t)}}(R):function(e){return Ne(e)&&Ae(e.length)&&!!E[fe(e)]};var Ie,Ye=(Ie=function(e,t,n,r){!function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Ie.length>3&&"function"==typeof o?(r--,o):void 0,i&&we(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n"']/g,l=RegExp(s.source),c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,f=c||d||Function("return this")();var p,h=(p={"&":"&","<":"<",">":">",'"':""","'":"'"},function(e){return null==p?void 0:p[e]}),g=Object.prototype,y=g.hasOwnProperty,m=g.toString,b=f.Symbol,v=b?b.toStringTag:void 0,w=b?b.prototype:void 0,x=w?w.toString:void 0,k={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:r,variable:"",imports:{_:{escape:function(e){return(e=E(e))&&l.test(e)?e.replace(s,h):e}}}};function S(e){return null==e?void 0===e?u:i:v&&v in Object(e)?function(e){var t=y.call(e,v),n=e[v];try{e[v]=void 0;var r=!0}catch(e){}var o=m.call(e);r&&(t?e[v]=n:delete e[v]);return o}(e):function(e){return m.call(e)}(e)}function j(e){if("string"==typeof e)return e;if(O(e))return function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n-1}},34893:function(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r0&&i(c)?n>1?e(c,n-1,i,a,u):r(u,c):a||(u[u.length]=c)}return u}},15308:function(e,t,n){var r=n(55463)();e.exports=r},26548:function(e,t,n){var r=n(15308),o=n(90249);e.exports=function(e,t){return e&&r(e,t,o)}},13324:function(e,t,n){var r=n(17297),o=n(33812);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&nt}},20187:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},77832:function(e,t,n){var r=n(21359),o=n(22195),i=n(66024);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},15183:function(e,t,n){var r=n(53366),o=n(15125);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},88746:function(e,t,n){var r=n(51952),o=n(15125);e.exports=function e(t,n,i,a,u){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,u))}},51952:function(e,t,n){var r=n(86571),o=n(74871),i=n(11491),a=n(17416),u=n(70940),s=n(86152),l=n(73226),c=n(77598),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,y,m){var b=s(e),v=s(t),w=b?f:u(e),x=v?f:u(t),k=(w=w==d?p:w)==p,S=(x=x==d?p:x)==p,j=w==x;if(j&&l(e)){if(!l(t))return!1;b=!0,k=!1}if(j&&!k)return m||(m=new r),b||c(e)?o(e,t,n,g,y,m):i(e,t,w,n,g,y,m);if(!(1&n)){var O=k&&h.call(e,"__wrapped__"),E=S&&h.call(t,"__wrapped__");if(O||E){var C=O?e.value():e,_=E?t.value():t;return m||(m=new r),y(C,_,n,g,m)}}return!!j&&(m||(m=new r),a(e,t,n,g,y,m))}},74511:function(e,t,n){var r=n(70940),o=n(15125);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},37036:function(e,t,n){var r=n(86571),o=n(88746);e.exports=function(e,t,n,i){var a=n.length,u=a,s=!i;if(null==e)return!u;for(e=Object(e);a--;){var l=n[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++ao?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=200){var g=t?null:u(e);if(g)return s(g);f=!1,c=a,h=new r}else h=t?[]:p;e:for(;++l=o?e:r(e,t,n)}},79882:function(e,t,n){var r=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},92175:function(e,t,n){e=n.nmd(e);var r=n(37772),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,u=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=u?u(n):new e.constructor(n);return e.copy(r),r}},34727:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:function(e,t,n){var r=n(50857),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},6190:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},27520:function(e,t,n){var r=n(4795);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),u=void 0!==t,s=null===t,l=t==t,c=r(t);if(!s&&!c&&!a&&e>t||a&&u&&l&&!s&&!c||o&&u&&l||!n&&l||!i)return 1;if(!o&&!a&&!c&&e=s?l:l*("desc"==n[o]?-1:1)}return e.index-t.index}},51522:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1?u[s?t[l]:l]:void 0}}},82941:function(e,t,n){var r=n(93228),o=n(82406),i=n(5707);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?tc))return!1;var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var h=-1,g=!0,y=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++h-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},92411:function(e,t,n){var r=n(89612),o=n(80235),i=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},36417:function(e,t,n){var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},79493:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:function(e,t,n){var r=n(27937);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},77777:function(e,t,n){var r=n(30733);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},99191:function(e,t,n){var r=n(38761)(Object,"create");e.exports=r},54248:function(e,t,n){var r=n(60241)(Object.keys,Object);e.exports=r},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:function(e,t,n){e=n.nmd(e);var r=n(51242),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,u=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},43114:function(e,t,n){var r=n(49432),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,u=o(i.length-t,0),s=Array(u);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},15243:function(e,t,n){var r=n(80235);e.exports=function(){this.__data__=new r,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var r=n(80235),o=n(10326),i=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},66024:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r=t||n<0||y&&e-h>=c}function w(){var e=o();if(v(e))return x(e);f=setTimeout(w,function(e){var n=t-(e-p);return y?u(n,c-(e-h)):n}(e))}function x(e){return f=void 0,m&&s?b(e):(s=l=void 0,d)}function k(){var e=o(),n=v(e);if(s=arguments,l=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),g?b(e):d}(p);if(y)return clearTimeout(f),f=setTimeout(w,t),b(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(g=!!n.leading,c=(y="maxWait"in n)?a(i(n.maxWait)||0,t):c,m="trailing"in n?!!n.trailing:m),k.cancel=function(){void 0!==f&&clearTimeout(f),h=0,s=p=l=f=void 0},k.flush=function(){return void 0===f?d:x(o())},k}},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},39794:function(e,t,n){var r=n(77603),o=n(50080),i=n(68286),a=n(86152),u=n(82406);e.exports=function(e,t,n){var s=a(e)?r:o;return n&&u(e,t,n)&&(t=void 0),s(e,i(t,3))}},55281:function(e,t,n){var r=n(98776)(n(12982));e.exports=r},12982:function(e,t,n){var r=n(21359),o=n(68286),i=n(38101),a=Math.max;e.exports=function(e,t,n){var u=null==e?0:e.length;if(!u)return-1;var s=null==n?0:i(n);return s<0&&(s=a(u+s,0)),r(e,o(t,3),s)}},53237:function(e,t,n){e.exports=n(31092)},35838:function(e,t,n){var r=n(62034),o=n(16760);e.exports=function(e,t){return r(o(e,t),1)}},35676:function(e,t,n){var r=n(62034);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},15253:function(e,t,n){var r=n(26548),o=n(89419);e.exports=function(e,t){return e&&r(e,o(t))}},72579:function(e,t,n){var r=n(13324);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},95041:function(e,t,n){var r=n(20187),o=n(1369);e.exports=function(e,t){return null!=e&&o(e,t,r)}},31092:function(e){e.exports=function(e){return e&&e.length?e[0]:void 0}},23059:function(e){e.exports=function(e){return e}},79631:function(e,t,n){var r=n(15183),o=n(15125),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!u.call(e,"callee")};e.exports=s},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),o=n(61158);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},4335:function(e,t,n){var r=n(53366),o=n(15125);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),o=n(36330),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,u=a&&a.exports===i?r.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;e.exports=s},18149:function(e,t,n){var r=n(88746);e.exports=function(e,t){return r(e,t)}},61049:function(e,t,n){var r=n(53366),o=n(29259);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:function(e,t,n){var r=n(74511),o=n(47826),i=n(4146),a=i&&i.isMap,u=a?o(a):r;e.exports=u},16951:function(e,t,n){var r=n(80537);e.exports=function(e){return r(e)&&e!=+e}},1842:function(e){e.exports=function(e){return null==e}},80537:function(e,t,n){var r=n(53366),o=n(15125);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},97030:function(e,t,n){var r=n(53366),o=n(47353),i=n(15125),a=Function.prototype,u=Object.prototype,s=a.toString,l=u.hasOwnProperty,c=s.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==c}},43679:function(e,t,n){var r=n(8109),o=n(47826),i=n(4146),a=i&&i.isSet,u=a?o(a):r;e.exports=u},85505:function(e,t,n){var r=n(53366),o=n(86152),i=n(15125);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},4795:function(e,t,n){var r=n(53366),o=n(15125);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),o=n(47826),i=n(4146),a=i&&i.isTypedArray,u=a?o(a):r;e.exports=u},90249:function(e,t,n){var r=n(1634),o=n(86411),i=n(67878);e.exports=function(e){return i(e)?r(e):o(e)}},18582:function(e,t,n){var r=n(1634),o=n(18390),i=n(67878);e.exports=function(e){return i(e)?r(e,!0):o(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},16760:function(e,t,n){var r=n(50343),o=n(68286),i=n(93401),a=n(86152);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},34519:function(e,t,n){var r=n(39683),o=n(26548),i=n(68286);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,o,t(e,o,i))})),n}},71644:function(e,t,n){var r=n(2229),o=n(84134),i=n(23059);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},55324:function(e,t,n){var r=n(2229),o=n(84134),i=n(68286);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},30733:function(e,t,n){var r=n(96738);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},65680:function(e,t,n){var r=n(2229),o=n(17606),i=n(23059);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},10937:function(e,t,n){var r=n(2229),o=n(68286),i=n(17606);e.exports=function(e,t){return e&&e.length?r(e,o(t,2),i):void 0}},34291:function(e){e.exports=function(){}},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},17620:function(e,t,n){var r=n(50343),o=n(18874),i=n(29078),a=n(17297),u=n(752),s=n(48642),l=n(29097),c=n(76939),d=l((function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,(function(t){return t=a(t,e),l||(l=t.length>1),t})),u(e,c(e),n),l&&(n=o(n,7,s));for(var d=t.length;d--;)i(n,t[d]);return n}));e.exports=d},65798:function(e,t,n){var r=n(20256),o=n(82952),i=n(21401),a=n(33812);e.exports=function(e){return i(e)?r(a(e)):o(e)}},2689:function(e,t,n){var r=n(82941)();e.exports=r},51525:function(e,t,n){var r=n(87064),o=n(68286),i=n(4751),a=n(86152),u=n(82406);e.exports=function(e,t,n){var s=a(e)?r:i;return n&&u(e,t,n)&&(t=void 0),s(e,o(t,3))}},829:function(e,t,n){var r=n(62034),o=n(23813),i=n(36060),a=n(82406),u=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=u},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},4889:function(e,t,n){var r=n(68286),o=n(63669);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):0}},12436:function(e,t,n){var r=n(54073),o=n(29259);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},5707:function(e,t,n){var r=n(7642),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},38101:function(e,t,n){var r=n(5707);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},7642:function(e,t,n){var r=n(51704),o=n(29259),i=n(4795),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},66188:function(e,t,n){var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},84636:function(e,t,n){var r=n(68286),o=n(67326);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},23779:function(e,t,n){var r=n(83126)("toUpperCase");e.exports=r},3619:function(e,t,n){"use strict";n.r(t);var r="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,o=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();var i=r&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),o))}};function a(e){return e&&"[object Function]"==={}.toString.call(e)}function u(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=u(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:l(s(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var d=r&&!(!window.MSInputMethodContext||!document.documentMode),f=r&&/MSIE 10/.test(navigator.userAgent);function p(e){return 11===e?d:10===e?f:d||f}function h(e){if(!e)return document.documentElement;for(var t=p(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===u(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function g(e){return null!==e.parentNode?g(e.parentNode):e}function y(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,u,s=i.commonAncestorContainer;if(e!==s&&t!==s||r.contains(o))return"BODY"===(u=(a=s).nodeName)||"HTML"!==u&&h(a.firstElementChild)!==a?h(s):s;var l=g(e);return l.host?y(l.host,t):y(e,g(t).host)}function m(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function b(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function v(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],p(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,r=p(10)&&getComputedStyle(n);return{height:v("Height",t,n,r),width:v("Width",t,n,r)}}var x=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=p(10),o="HTML"===t.nodeName,i=O(e),a=O(t),s=l(e),c=u(t),d=parseFloat(c.borderTopWidth),f=parseFloat(c.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=j({top:i.top-a.top-d,left:i.left-a.left-f,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var g=parseFloat(c.marginTop),y=parseFloat(c.marginLeft);h.top-=d-g,h.bottom-=d-g,h.left-=f-y,h.right-=f-y,h.marginTop=g,h.marginLeft=y}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=m(t,"top"),o=m(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(h,t)),h}function C(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===u(e,"position"))return!0;var n=s(e);return!!n&&C(n)}function _(e){if(!e||!e.parentElement||p())return document.documentElement;for(var t=e.parentElement;t&&"none"===u(t,"transform");)t=t.parentElement;return t||document.documentElement}function T(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?_(e):y(e,c(t));if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=E(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:m(n),u=t?0:m(n,"left");return j({top:a-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:o,height:i})}(a,o);else{var u=void 0;"scrollParent"===r?"BODY"===(u=l(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===r?e.ownerDocument.documentElement:r;var d=E(u,a,o);if("HTML"!==u.nodeName||C(a))i=d;else{var f=w(e.ownerDocument),p=f.height,h=f.width;i.top+=d.top-d.marginTop,i.bottom=p+d.top,i.left+=d.left-d.marginLeft,i.right=h+d.left}}var g="number"==typeof(n=n||0);return i.left+=g?n:n.left||0,i.top+=g?n:n.top||0,i.right-=g?n:n.right||0,i.bottom-=g?n:n.bottom||0,i}function D(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=T(n,r,i,o),u={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},s=Object.keys(u).map((function(e){return S({key:e},u[e],{area:(t=u[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),l=s.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=l.length>0?l[0].key:s[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function P(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return E(n,r?_(t):y(t,c(n)),r)}function M(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function A(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function L(e,t,n){n=n.split("-")[0];var r=M(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",u=i?"left":"top",s=i?"height":"width",l=i?"width":"height";return o[a]=t[a]+t[s]/2-r[s]/2,o[u]=n===u?t[u]-r[l]:t[A(u)],o}function N(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function R(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=N(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&a(n)&&(t.offsets.popper=j(t.offsets.popper),t.offsets.reference=j(t.offsets.reference),t=n(t,e))})),t}function I(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=P(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=D(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=L(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=R(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Y(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Z(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=K.indexOf(e),r=K.slice(n+1).concat(K.slice(0,n));return t?r.reverse():r}var $="flip",ee="clockwise",te="counterclockwise";function ne(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),u=a.indexOf(N(a,(function(e){return-1!==e.search(/,|\s/)})));a[u]&&-1===a[u].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,l=-1!==u?[a.slice(0,u).concat([a[u].split(s)[0]]),[a[u].split(s)[1]].concat(a.slice(u+1))]:[a];return l=l.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){return j("%p"===a?n:r)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))})),l.forEach((function(e,t){e.forEach((function(n,r){z(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var re={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,u=-1!==["bottom","top"].indexOf(n),s=u?"left":"top",l=u?"width":"height",c={start:k({},s,i[s]),end:k({},s,i[s]+i[l]-a[l])};e.offsets.popper=S({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,u=r.split("-")[0],s=void 0;return s=z(+n)?[+n,0]:ne(n,i,a,u),"left"===u?(i.top+=s[0],i.left-=s[1]):"right"===u?(i.top+=s[0],i.left+=s[1]):"top"===u?(i.left+=s[0],i.top-=s[1]):"bottom"===u&&(i.left+=s[0],i.top+=s[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var r=Z("transform"),o=e.instance.popper.style,i=o.top,a=o.left,u=o[r];o.top="",o.left="",o[r]="";var s=T(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=u,t.boundaries=s;var l=t.priority,c=e.offsets.popper,d={primary:function(e){var n=c[e];return c[e]s[e]&&!t.escapeWithReference&&(r=Math.min(c[n],s[e]-("right"===e?c.width:c.height))),k({},n,r)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=S({},c,d[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),u=a?"right":"bottom",s=a?"left":"top",l=a?"width":"height";return n[u]i(r[u])&&(e.offsets.popper[s]=i(r[u])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!U(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",d=l?"Top":"Left",f=d.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",g=M(r)[c];s[h]-ga[h]&&(e.offsets.popper[f]+=s[f]+g-a[h]),e.offsets.popper=j(e.offsets.popper);var y=s[f]+s[c]/2-g/2,m=u(e.instance.popper),b=parseFloat(m["margin"+d]),v=parseFloat(m["border"+d+"Width"]),w=y-e.offsets.popper[f]-b-v;return w=Math.max(Math.min(a[c]-g,w),0),e.arrowElement=r,e.offsets.arrow=(k(n={},f,Math.round(w)),k(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Y(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=T(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=A(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case $:a=[r,o];break;case ee:a=V(r);break;case te:a=V(r,!0);break;default:a=t.behavior}return a.forEach((function(u,s){if(r!==u||a.length===s+1)return e;r=e.placement.split("-")[0],o=A(r);var l=e.offsets.popper,c=e.offsets.reference,d=Math.floor,f="left"===r&&d(l.right)>d(c.left)||"right"===r&&d(l.left)d(c.top)||"bottom"===r&&d(l.top)d(n.right),g=d(l.top)d(n.bottom),m="left"===r&&p||"right"===r&&h||"top"===r&&g||"bottom"===r&&y,b=-1!==["top","bottom"].indexOf(r),v=!!t.flipVariations&&(b&&"start"===i&&p||b&&"end"===i&&h||!b&&"start"===i&&g||!b&&"end"===i&&y),w=!!t.flipVariationsByContent&&(b&&"start"===i&&h||b&&"end"===i&&p||!b&&"start"===i&&y||!b&&"end"===i&&g),x=v||w;(f||m||x)&&(e.flipped=!0,(f||m)&&(r=a[s+1]),x&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=S({},e.offsets.popper,L(e.instance.popper,e.offsets.reference,e.placement)),e=R(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),u=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(u?o[a?"width":"height"]:0),e.placement=A(t),e.offsets.popper=j(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!U(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=N(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=S({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(S({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=S({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return S({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&a(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var u=this.options.eventsEnabled;u&&this.enableEventListeners(),this.state.eventsEnabled=u}return x(e,[{key:"update",value:function(){return I.call(this)}},{key:"destroy",value:function(){return F.call(this)}},{key:"enableEventListeners",value:function(){return J.call(this)}},{key:"disableEventListeners",value:function(){return X.call(this)}}]),e}();ie.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,ie.placements=G,ie.Defaults=oe,t.default=ie},68262:function(e,t,n){"use strict";var r=n(23586);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},13980:function(e,t,n){e.exports=n(68262)()},23586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98641:function(e,t,n){e=n.nmd(e),function(n,r){"use strict";var o={};n.PubSub?(o=n.PubSub,console.warn("PubSub already loaded, using existing version")):(n.PubSub=o,function(e){var t={},n=-1,r="*";function o(e){var t;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e){return function(){throw e}}function a(e,t,n){try{e(t,n)}catch(e){setTimeout(i(e),0)}}function u(e,t,n){e(t,n)}function s(e,n,r,o){var i,s=t[n],l=o?u:a;if(Object.prototype.hasOwnProperty.call(t,n))for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&l(s[i],e,r)}function l(e,t,n){return function(){var o=String(e),i=o.lastIndexOf(".");for(s(e,e,t,n);-1!==i;)i=(o=o.substr(0,i)).lastIndexOf("."),s(e,o,t,n);s(e,r,t,n)}}function c(e){var n=String(e);return Boolean(Object.prototype.hasOwnProperty.call(t,n)&&o(t[n]))}function d(e){for(var t=String(e),n=c(t)||c(r),o=t.lastIndexOf(".");!n&&-1!==o;)o=(t=t.substr(0,o)).lastIndexOf("."),n=c(t);return n}function f(e,t,n,r){var o=l(e="symbol"==typeof e?e.toString():e,t,r);return!!d(e)&&(!0===n?o():setTimeout(o,0),!0)}e.publish=function(t,n){return f(t,n,!1,e.immediateExceptions)},e.publishSync=function(t,n){return f(t,n,!0,e.immediateExceptions)},e.subscribe=function(e,r){if("function"!=typeof r)return!1;e="symbol"==typeof e?e.toString():e,Object.prototype.hasOwnProperty.call(t,e)||(t[e]={});var o="uid_"+String(++n);return t[e][o]=r,o},e.subscribeAll=function(t){return e.subscribe(r,t)},e.subscribeOnce=function(t,n){var r=e.subscribe(t,(function(){e.unsubscribe(r),n.apply(this,arguments)}));return e},e.clearAllSubscriptions=function(){t={}},e.clearSubscriptions=function(e){var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&delete t[n]},e.countSubscriptions=function(e){var n,r,o=0;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)){for(r in t[n])o++;break}return o},e.getSubscriptions=function(e){var n,r=[];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&r.push(n);return r},e.unsubscribe=function(n){var r,o,i,a=function(e){var n;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e))return!0;return!1},u="string"==typeof n&&(Object.prototype.hasOwnProperty.call(t,n)||a(n)),s=!u&&"string"==typeof n,l="function"==typeof n,c=!1;if(!u){for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(o=t[r],s&&o[n]){delete o[n],c=n;break}if(l)for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&o[i]===n&&(delete o[i],c=!0)}return c}e.clearSubscriptions(n)}}(o)),void 0!==e&&e.exports&&(t=e.exports=o),t.PubSub=o,e.exports=t=o}("object"==typeof window&&window||this)},97375:function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,i,a=[];for(i in"string"!=typeof t&&(t="?"),e)if(n.call(e,i)){if((r=e[i])||null!=r&&!isNaN(r)||(r=""),i=o(i),r=o(r),null===i||null===r)continue;a.push(i+"="+r)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var i=r(t[1]),a=r(t[2]);null===i||null===a||i in o||(o[i]=a)}return o}},10779:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),a=n(45),u=n(46),s=n(47),l=n(48),c=n(49),d=n(12),f=n(32),p=n(33),h=n(31),g=n(1),y={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:l.default,Scroll:a.default,Block:s.default,Inline:u.default,Text:c.default,Attributor:{Attribute:d.default,Class:f.default,Style:p.default,Store:h.default}};t.default=y},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return o(t,e),t}(Error);t.ParchmentError=i;var a,u={},s={},l={},c={};function d(e,t){var n;if(void 0===t&&(t=a.ANY),"string"==typeof e)n=c[e]||u[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=c.text;else if("number"==typeof e)e&a.LEVEL&a.BLOCK?n=c.block:e&a.LEVEL&a.INLINE&&(n=c.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=s[r[o]])break;n=n||l[e.tagName]}return null==n?null:t&a.LEVEL&n.scope&&t&a.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(a=t.Scope||(t.Scope={})),t.create=function(e,t){var n=d(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(o,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=d,t.register=function e(){for(var t=[],n=0;n1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");return c[r.blotName||r.attrName]=r,"string"==typeof r.keyName?u[r.keyName]=r:(null!=r.className&&(s[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(e){null!=l[e]&&null!=r.className||(l[e]=r)})))),r}},function(e,t,n){var r=n(51),o=n(11),i=n(3),a=n(20),u=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},s.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],r=a.iterator(this.ops),o=0;o0&&n.next(i.retain-u)}for(var l=new s(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())l.push(n.next());else if("delete"===t.peekType())l.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),d=t.next(c),f=n.next(c);if("number"==typeof f.retain){var p={};"number"==typeof d.retain?p.retain=c:p.insert=d.insert;var h=a.attributes.compose(d.attributes,f.attributes,"number"==typeof d.retain);if(h&&(p.attributes=h),l.push(p),!n.hasNext()&&o(l.ops[l.ops.length-1],p)){var g=new s(t.rest());return l.concat(g).chop()}}else"number"==typeof f.delete&&"number"==typeof d.retain&&l.push(f)}return l.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:u;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new s,l=r(n[0],n[1],t),c=a.iterator(this.ops),d=a.iterator(e.ops);return l.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(d.peekLength(),t),i.push(d.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),t);var u=c.next(n),s=d.next(n);o(u.insert,s.insert)?i.retain(n,a.attributes.diff(u.attributes,s.attributes)):i.push(s).delete(n)}t-=n}})),i.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),r=new s,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),u=a.length(i)-n.peekLength(),l="string"==typeof i.insert?i.insert.indexOf(t,u)-u:-1;if(l<0)r.push(n.next());else if(l>0)r.push(n.next(l));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new s}}r.length()>0&&e(r,{},o)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),r=a.iterator(e.ops),o=new s;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),u=n.next(i),l=r.next(i);if(u.delete)continue;l.delete?o.push(l):o.retain(i,a.attributes.transform(u.attributes,l.attributes,t))}else o.retain(a.length(n.next()));return o.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r0&&(e1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(u.default.Block);function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:m(e.parent,t))}y.blotName="block",y.tagName="P",y.defaultChild="break",y.allowedChildren=[l.default,u.default.Embed,c.default],t.bubbleFormats=m,t.BlockEmbed=g,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=w(t,r),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e){e===s.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;x.call(n,(function(){return n.editor.update(null,t,o)}),e)}));var i=this.clipboard.convert("
"+o+"


");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var o=e.attrName||e.blotName;"string"==typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,i=k(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],x.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return x.call(this,(function(){var r=n.getSelection(!0),o=new a.default;if(null==r)return o;if(c.default.query(e,c.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,m({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,m({},e,t))}return n.setSelection(r,s.default.sources.SILENT),o}),r)}},{key:"formatLine",value:function(e,t,n,r,i){var a,u=this,s=k(e,t,n,r,i),l=o(s,4);return e=l[0],t=l[1],a=l[2],i=l[3],x.call(this,(function(){return u.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,n,r,i){var a,u=this,s=k(e,t,n,r,i),l=o(s,4);return e=l[0],t=l[1],a=l[2],i=l[3],x.call(this,(function(){return u.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return x.call(this,(function(){return o.editor.insertEmbed(t,n,r)}),i,t)}},{key:"insertText",value:function(e,t,n,r,i){var a,u=this,s=k(e,0,n,r,i),l=o(s,4);return e=l[0],a=l[2],i=l[3],x.call(this,(function(){return u.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,i=k(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],x.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return x.call(this,(function(){e=new a.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),r.compose(o)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=k(t,n,r),a=o(i,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new d.Range(t,n),r),r!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return x.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function w(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==v.DEFAULTS.theme){if(t.theme=v.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=g.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=v.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},v.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function x(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new a.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,u=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=S(o,u,t):0!==r&&(o=S(o,n,r,t)),this.setSelection(o,s.default.sources.SILENT)),u.length()>0){var l,c,d=[s.default.events.TEXT_CHANGE,u,i,t];(l=this.emitter).emit.apply(l,[s.default.events.EDITOR_CHANGE].concat(d)),t!==s.default.sources.SILENT&&(c=this.emitter).emit.apply(c,d)}return u}function k(e,t,n,o,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=o,o=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=o,o=n,n=t,t=0),"object"===(void 0===n?"undefined":r(n))?(a=n,i=o):"string"==typeof n&&(null!=o?a[n]=o:i=n),[e,t,a,i=i||s.default.sources.API]}function S(e,t,n,r){if(null==e)return null;var i=void 0,u=void 0;if(t instanceof a.default){var l=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==s.default.sources.USER)})),c=o(l,2);i=c[0],u=c[1]}else{var f=[e.index,e.index+e.length].map((function(e){return e=0?e+n:Math.max(t,e+n)})),p=o(f,2);i=p[0],u=p[1]}return new d.Range(i,u-i)}v.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},v.events=s.default.events,v.sources=s.default.sources,v.version="1.3.7",v.imports={delta:a.default,parchment:c.default,"core/module":l.default,"core/theme":g.default},t.expandConfig=w,t.overload=k,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(e){if(r.indexOf(e)<=r.indexOf(o)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a=0;l--)if(d[l]!=f[l])return!1;for(l=d.length-1;l>=0;l--)if(c=d[l],!a(e[c],t[c],n))return!1;return typeof e==typeof t}(e,t,n))};function u(e){return null==e}function s(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n=e+n)){var a=this.newlineIndex(e,!0)+1,s=i-a+1,l=this.isolate(a,s),c=l.next;l.format(r,o),c instanceof t&&c.formatAt(0,e-a+n-s,r,o)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var o=this.descendant(c.default,e),i=r(o,2),a=i[0],u=i[1];a.insertAt(u,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=u.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof u.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(s.default);y.blotName="code-block",y.tagName="PRE",y.TAB=" ",t.Code=g,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),g=o(h,2),m=g[0],b=g[1],v=(0,y.default)({},(0,d.bubbleFormats)(m));if(m instanceof f.default){var w=m.descendant(s.default.Leaf,b),x=o(w,1)[0];v=(0,y.default)(v,(0,d.bubbleFormats)(x))}c=u.default.attributes.diff(v,c)||{}}else if("object"===r(a.insert)){var k=Object.keys(a.insert)[0];if(null==k)return e;t.scroll.insertAt(e,k,a.insert[k])}i+=l}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,l,n,c[n])})),e+l}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof l.default){var u=e-t.offset(n.scroll),s=t.newlineIndex(u+a)-u+1;t.formatAt(u,s,o,r[o])}else t.format(o,r[o]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t,o,r[o])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=o(e,1)[0];t instanceof f.default?n.push(t):t instanceof s.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(s.default.Leaf,e,t));var i=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=w((0,d.bubbleFormats)(n),t)}return t}));return y.default.apply(y.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t.length,o,r[o])})),this.update((new a.default).retain(e).insert(t,(0,h.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===f.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),i=o(r,2),u=i[0],s=i[1],c=0,d=new a.default;null!=u&&(c=u instanceof l.default?u.newlineIndex(s)-s+1:u.length()-s,d=u.delta().slice(s,s+c-1).insert("\n"));var f=this.getContents(e,t+c).diff((new a.default).insert(n).concat(d)),p=(new a.default).retain(e).concat(f);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(b)&&s.default.find(t[0].target)){var o=s.default.find(t[0].target),i=(0,d.bubbleFormats)(o),u=o.offset(this.scroll),l=t[0].oldValue.replace(c.default.CONTENTS,""),f=(new a.default).insert(l),p=(new a.default).insert(o.value());e=(new a.default).retain(u).concat(f.diff(p,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,g.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function w(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var r=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&r.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,o=n.startNode,i=n.startOffset,a=n.endNode,u=n.endOffset;r.setNativeRange(o,i,a,u)}})),this.update(s.default.sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i.default.find(n.start.node,!1);if(null==r)return;if(r instanceof i.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var o=void 0,i=this.scroll.leaf(e),a=r(i,2),u=a[0],s=a[1];if(null==u)return null;var l=u.position(s,!0),c=r(l,2);o=c[0],s=c[1];var d=document.createRange();if(t>0){d.setStart(o,s);var f=this.scroll.leaf(e+t),p=r(f,2);if(u=p[0],s=p[1],null==u)return null;var h=u.position(s,!0),g=r(h,2);return o=g[0],s=g[1],d.setEnd(o,s),d.getBoundingClientRect()}var y="left",m=void 0;return o instanceof Text?(s0&&(y="right")),{bottom:m.top+m.height,height:m.height,left:m[y],right:m[y],top:m.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return f.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map((function(e){var n=r(e,2),o=n[0],a=n[1],u=i.default.find(o,!0),s=u.offset(t.scroll);return 0===a?s:u instanceof i.default.Container?s+u.length():s+u.index(o,a)})),a=Math.min(Math.max.apply(Math,c(o)),this.scroll.length()-1),u=Math.min.apply(Math,[a].concat(c(o)));return new p(u,a-u)}},{key:"normalizeNative",value:function(e){if(!g(this.root,e.startContainer)||!e.collapsed&&!g(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var a,u=t.scroll.leaf(e),s=r(u,2),l=s[0],c=s[1],d=l.position(c,0!==n),f=r(d,2);a=f[0],c=f[1],o.push(a,c)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,o)),a=r(i,1)[0],u=a;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,o));u=r(s,1)[0]}if(null!=a&&null!=u){var l=e.getBoundingClientRect();n.topl.bottom&&(e.scrollTop+=n.bottom-l.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var u=document.createRange();u.setStart(e,t),u.setEnd(n,r),i.removeAllRanges(),i.addRange(u)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof t&&(n=t,t=!1),f.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,c(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],l=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,u.default)(t,this.lastRange)){var c;!this.composing&&null!=l&&l.native.collapsed&&l.start.node!==this.cursor.textNode&&this.cursor.restore();var d,f=[s.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(f)),e!==s.default.sources.SILENT&&(d=this.emitter).emit.apply(d,f)}}}]),e}();function g(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=u},function(e,t,n){var r=n(11),o=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=o(!0,{},t);for(var i in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,o){return r(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=i.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=i},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{r=Promise}catch(e){r=function(){}}function o(i,u,s,l,c){"object"==typeof u&&(s=u.depth,l=u.prototype,c=u.includeNonEnumerable,u=u.circular);var d=[],f=[],p="undefined"!=typeof Buffer;return void 0===u&&(u=!0),void 0===s&&(s=1/0),function i(s,h){if(null===s)return null;if(0===h)return s;var g,y;if("object"!=typeof s)return s;if(e(s,t))g=new t;else if(e(s,n))g=new n;else if(e(s,r))g=new r((function(e,t){s.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(o.__isArray(s))g=[];else if(o.__isRegExp(s))g=new RegExp(s.source,a(s)),s.lastIndex&&(g.lastIndex=s.lastIndex);else if(o.__isDate(s))g=new Date(s.getTime());else{if(p&&Buffer.isBuffer(s))return g=Buffer.allocUnsafe?Buffer.allocUnsafe(s.length):new Buffer(s.length),s.copy(g),g;e(s,Error)?g=Object.create(s):void 0===l?(y=Object.getPrototypeOf(s),g=Object.create(y)):(g=Object.create(l),y=l)}if(u){var m=d.indexOf(s);if(-1!=m)return f[m];d.push(s),f.push(g)}for(var b in e(s,t)&&s.forEach((function(e,t){var n=i(t,h-1),r=i(e,h-1);g.set(n,r)})),e(s,n)&&s.forEach((function(e){var t=i(e,h-1);g.add(t)})),s){var v;y&&(v=Object.getOwnPropertyDescriptor(y,b)),v&&null==v.set||(g[b]=i(s[b],h-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(s);for(b=0;b0){if(u instanceof s.BlockEmbed||p instanceof s.BlockEmbed)return void this.optimize();if(u instanceof d.default){var h=u.newlineIndex(u.length(),!0);if(h>-1&&(u=u.split(h+1))===p)return void this.optimize()}else if(p instanceof d.default){var g=p.newlineIndex(0);g>-1&&p.split(g+1)}var y=p.children.head instanceof c.default?null:p.children.head;u.moveChildren(p,y),u.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var o=a.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var u=a.default.create(n,r);this.appendChild(u)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(e),e=r}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){return function e(t,n,r){var o=[],i=r;return t.children.forEachAt(n,r,(function(t,n,r){h(t)?o.push(t):t instanceof a.default.Container&&(o=o.concat(e(t,n,i))),i-=r})),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=u.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);g.blotName="scroll",g.className="ql-editor",g.tagName="DIV",g.defaultChild="block",g.allowedChildren=[l.default,s.BlockEmbed,f.default],t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=C(e);if(null==r||null==r.key)return m.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,s.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var l=e.quill.getLine(s.index),c=o(l,2),f=c[0],p=c[1],h=e.quill.getLeaf(s.index),g=o(h,2),y=g[0],m=g[1],b=0===s.length?[y,m]:e.quill.getLeaf(s.index+s.length),v=o(b,2),w=v[0],x=v[1],k=y instanceof d.default.Text?y.value().slice(0,m):"",S=w instanceof d.default.Text?w.value().slice(x):"",j={collapsed:0===s.length,empty:0===s.length&&f.length()<=1,format:e.quill.getFormat(s),offset:p,prefix:k,suffix:S};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==j.collapsed)return!1;if(null!=t.empty&&t.empty!==j.empty)return!1;if(null!=t.offset&&t.offset!==j.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==j.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=j.format[e]:!1===t.format[e]?null==j.format[e]:(0,u.default)(t.format[e],j.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(j.prefix)||null!=t.suffix&&!t.suffix.test(j.suffix)||!0===t.handler.call(e,s,j))}))&&n.preventDefault()}}}}))}}]),t}(h.default);function w(e,t){var n,r=e===v.keys.LEFT?"prefix":"suffix";return y(n={key:e,shiftKey:t,altKey:null},r,/^$/),y(n,"handler",(function(n){var r=n.index;e===v.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof d.default.Embed&&(e===v.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index-1,f.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index+n.length+1,f.default.sources.USER),1))})),n}function x(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=o(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),u=o(a,1)[0];if(null!=u&&u.length()>1){var s=r.formats(),l=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(s,l)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,f.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-d,d,i,f.default.sources.USER),this.quill.focus()}}function k(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},i=0,a=this.quill.getLine(e.index),u=o(a,1)[0];if(t.offset>=u.length()-1){var s=this.quill.getLine(e.index+1),l=o(s,1)[0];if(l){var d=u.formats(),p=this.quill.getFormat(e.index,1);r=c.default.attributes.diff(d,p)||{},i=l.length()}}this.quill.deleteText(e.index,n,f.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+i-1,n,r,f.default.sources.USER)}}function S(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),o=t[t.length-1].formats();n=c.default.attributes.diff(o,r)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function j(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],f.default.sources.USER))}))}function O(e){return{key:v.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),r=t.index,i=t.length,a=this.quill.scroll.descendant(n,r),u=o(a,2),s=u[0],l=u[1];if(null!=s){var c=this.quill.getIndex(s),p=s.newlineIndex(l,!0)+1,h=s.newlineIndex(c+l+i),g=s.domNode.textContent.slice(p,h).split("\n");l=0,g.forEach((function(t,o){e?(s.insertAt(p+l,n.TAB),l+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(p+l,n.TAB.length),l-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),l+=t.length+1})),this.quill.update(f.default.sources.USER),this.quill.setSelection(r,i,f.default.sources.SILENT)}}}}function E(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],f.default.sources.USER)}}}function C(e){if("string"==typeof e||"number"==typeof e)return C({key:e});if("object"===(void 0===e?"undefined":r(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=v.keys[e.key.toUpperCase()])e.key=v.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[b]=e.shortKey,delete e.shortKey),e}v.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},v.DEFAULTS={bindings:{bold:E("bold"),italic:E("italic"),underline:E("underline"),indent:{key:v.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:v.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:v.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":O(!0),"outdent code-block":O(!1),"remove tab":{key:v.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:v.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new l.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:v.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:v.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(0,s.default)({},r.formats(),{list:"checked"}),u=(new l.default).retain(e.index).insert("\n",a).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(u,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:v.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=o(n,2),i=r[0],a=r[1],u=(new l.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(u,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),i=o(r,2),a=i[0],u=i[1];if(u>n)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var c=(new l.default).retain(e.index-u).delete(n+1).retain(a.length()-2-u).retain(1,{list:s});this.quill.updateContents(c,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,f.default.sources.SILENT)}},"code exit":{key:v.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(new l.default).retain(e.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,f.default.sources.USER)}},"embed left":w(v.keys.LEFT,!1),"embed left shift":w(v.keys.LEFT,!0),"embed right":w(v.keys.RIGHT,!1),"embed right shift":w(v.keys.RIGHT,!0)}},t.default=v,t.SHORTKEY=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n-1}u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=u,t.sanitize=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=m(n(0)),o=m(n(5)),i=n(4),a=m(i),u=m(n(16)),s=m(n(25)),l=m(n(24)),c=m(n(35)),d=m(n(6)),f=m(n(22)),p=m(n(7)),h=m(n(55)),g=m(n(42)),y=m(n(23));function m(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":u.default,"blots/container":s.default,"blots/cursor":l.default,"blots/embed":c.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":g.default,"modules/keyboard":y.default}),r.default.register(a.default,u.default,l.default,d.default,f.default,p.default),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,o){var i=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);i.wrap(a),a.format(n,o)}},e.prototype.insertAt=function(e,t,n){var o=null==n?r.create("text",t):r.create(t,n),i=this.split(e);this.parent.insertBefore(o,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),a=n(1),u=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=o.default.keys(this.domNode),u=i.default.keys(this.domNode);t.concat(n).concat(u).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;nr&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function s(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}(e)&&(n-=1),n}u.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=u,t.getLastChangeIndex=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,u.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,u.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",u.default.sources.USER),this.quill.setSelection(i+2,u.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function O(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=j,t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(ea?n(r,e-a,Math.min(t,a+s-e)):n(r,0,Math.min(s,e+t-a)),a+=s}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(1),u={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,u),n.attach(),n}return o(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,o){this.update(),e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)t.push(o.pop());for(var u=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&u(e.parent))},s=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(s),e.optimize(n))},l=t,c=0;l.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(u(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);u(t,!1),t instanceof i.default&&t.children.forEach((function(e){u(e,!1)}))}))):"attributes"===e.type&&u(t.prev)),u(t))})),this.children.forEach(s),o=(l=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)t.push(o.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,o){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){var r=a.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,o){null!=a.query(r,a.Scope.BLOCK)?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var o=this.split(t),i=a.create(n,r);o.parent.insertBefore(i,o)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,o){0===t&&n===this.length()?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return o(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=u},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;it.length?e:t,d=e.length>t.length?t:e,f=c.indexOf(d);if(-1!=f)return l=[[r,c.substring(0,f)],[o,d],[r,c.substring(f+d.length)]],e.length>t.length&&(l[0][0]=l[2][0]=n),l;if(1==d.length)return[[n,e],[r,t]];var p=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,o,i,a,d]:null}var i,a,l,c,d,f=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));if(!f&&!p)return null;i=p?f&&f[4].length>p[4].length?f:p:f,e.length>t.length?(a=i[0],l=i[1],c=i[2],d=i[3]):(c=i[0],d=i[1],a=i[2],l=i[3]);var h=i[4];return[a,l,c,d,h]}(e,t);if(p){var h=p[0],g=p[1],y=p[2],m=p[3],b=p[4],v=i(h,y),w=i(g,m);return v.concat([[o,b]],w)}return function(e,t){for(var o=e.length,i=t.length,u=Math.ceil((o+i)/2),s=u,l=2*u,c=new Array(l),d=new Array(l),f=0;fo)y+=2;else if(k>i)g+=2;else if(h&&(O=s+p-w)>=0&&O=(j=o-d[O]))return a(e,t,C,k)}for(var S=-v+m;S<=v-b;S+=2){for(var j,O=s+S,E=(j=S==-v||S!=v&&d[O-1]o)b+=2;else if(E>i)m+=2;else if(!h){var C;if((x=s+p-S)>=0&&x=(j=o-j))return a(e,t,C,k)}}}return[[n,e],[r,t]]}(e,t)}(e=e.substring(0,e.length-f),t=t.substring(0,t.length-f));return p&&g.unshift([o,p]),h&&g.push([o,h]),l(g),null!=c&&(g=function(e,t){var r=function(e,t){if(0===t)return[o,e];for(var r=0,i=0;i0&&i.splice(a+2,0,[s[0],l]),d(i,a,3)}return e}(g,c)),g=function(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},u=2;u0&&s.push(e[u]);return s}(g)}function a(e,t,n,r){var o=e.substring(0,n),a=t.substring(0,r),u=e.substring(n),s=t.substring(r),l=i(o,a),c=i(u,s);return l.concat(c)}function u(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n1?(0!==a&&0!==c&&(0!==(t=u(f,d))&&(i-a-c>0&&e[i-a-c-1][0]==o?e[i-a-c-1][1]+=f.substring(0,t):(e.splice(0,0,[o,f.substring(0,t)]),i++),f=f.substring(t),d=d.substring(t)),0!==(t=s(f,d))&&(e[i][1]=f.substring(f.length-t)+e[i][1],f=f.substring(0,f.length-t),d=d.substring(0,d.length-t))),0===a?e.splice(i-c,a+c,[r,f]):0===c?e.splice(i-a,a+c,[n,d]):e.splice(i-a-c,a+c,[n,d],[r,f]),i=i-a-c+(a?1:0)+(c?1:0)+1):0!==i&&e[i-1][0]==o?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,c=0,a=0,d="",f=""}""===e[e.length-1][1]&&e.pop();var p=!1;for(i=1;i=0&&r>=t-1;r--)if(r+1=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=C(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new u.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=s.default.query(e);if(null==n||"list-item"!==n.blotName||!T(t,"\n"))return t;for(var r=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(s.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?t:t.compose((new u.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",M.bind(M,"bold")],["i",M.bind(M,"italic")],["style",function(){return new u.default}]],j=[f.AlignAttribute,y.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),O=[f.AlignStyle,p.BackgroundStyle,g.ColorStyle,y.DirectionStyle,m.FontStyle,b.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),E=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],S.concat(r.options.matchers).forEach((function(e){var t=o(e,2),i=t[0],a=t[1];(n.matchVisual||a!==R)&&r.addMatcher(i,a)})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\<"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new u.default).insert(n,w({},h.default.blotName,t[h.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),a=i[0],s=i[1],l=P(this.container,a,s);return T(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new u.default).retain(l.length()-1).delete(1))),x.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,l.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new u.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new u.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,l.default.sources.USER),t.quill.setSelection(r.length()-n.length,l.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),a=i[0],u=i[1];switch(a){case Node.TEXT_NODE:n.push(u);break;case Node.ELEMENT_NODE:t.push(u);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[k]=e[k]||[],e[k].push(u)}))}})),[t,n]}}]),t}(d.default);function C(e,t,n){return"object"===(void 0===t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return C(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,a.default)({},w({},t,n),r.attributes))}),new u.default)}function _(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function T(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length-1}function P(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new u.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,o){var i=P(o,t,n);return o.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(o,e)}),i),i=(o[k]||[]).reduce((function(e,t){return t(o,e)}),i)),r.concat(i)}),new u.default):new u.default}function M(e,t,n){return C(n,e,!0)}function A(e,t){var n=s.default.Attributor.Attribute.keys(e),r=s.default.Attributor.Class.keys(e),o=s.default.Attributor.Style.keys(e),i={};return n.concat(r).concat(o).forEach((function(t){var n=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null==(n=j[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||void 0),null==(n=O[t])||n.attrName!==t&&n.keyName!==t||(n=O[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=C(t,i)),t}function L(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var r={},o=n.value(e);null!=o&&(r[n.blotName]=o,t=(new u.default).insert(r,n.formats(e)))}else"function"==typeof n.formats&&(t=C(t,n.blotName,n.formats(e)));return t}function N(e,t){return T(t,"\n")||(D(e)||t.length()>0&&e.nextSibling&&D(e.nextSibling))&&t.insert("\n"),t}function R(e,t){if(D(e)&&null!=e.nextElementSibling&&!T(t,"\n\n")){var n=e.offsetHeight+parseFloat(_(e).marginTop)+parseFloat(_(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function I(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!_(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&D(e.parentNode)||null!=e.previousSibling&&D(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&D(e.parentNode)||null!=e.nextSibling&&D(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}E.DEFAULTS={matchers:[],matchVisual:!0},t.default=E,t.matchAttributor=A,t.matchBlot=L,t.matchNewline=N,t.matchSpacing=R,t.matchText=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n '},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;nr.right&&(i=r.right-o.right,this.root.style.left=t+i+"px"),o.leftr.bottom){var a=o.bottom-o.top,u=e.bottom-e.top+a;this.root.style.top=n-u+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n','','',''].join(""),t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=N(n(29)),o=n(36),i=n(38),a=n(64),u=N(n(65)),s=N(n(66)),l=n(67),c=N(l),d=n(37),f=n(26),p=n(39),h=n(40),g=N(n(56)),y=N(n(68)),m=N(n(27)),b=N(n(69)),v=N(n(70)),w=N(n(71)),x=N(n(72)),k=N(n(73)),S=n(13),j=N(S),O=N(n(74)),E=N(n(75)),C=N(n(57)),_=N(n(41)),T=N(n(28)),D=N(n(59)),P=N(n(60)),M=N(n(61)),A=N(n(108)),L=N(n(62));function N(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":u.default,"formats/code-block":j.default,"formats/header":s.default,"formats/list":c.default,"formats/bold":g.default,"formats/code":S.Code,"formats/italic":y.default,"formats/link":m.default,"formats/script":b.default,"formats/strike":v.default,"formats/underline":w.default,"formats/image":x.default,"formats/video":k.default,"formats/list/item":l.ListItem,"modules/formula":O.default,"modules/syntax":E.default,"modules/toolbar":C.default,"themes/bubble":A.default,"themes/snow":L.default,"ui/icons":_.default,"ui/picker":T.default,"ui/icon-picker":P.default,"ui/color-picker":D.default,"ui/tooltip":M.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,o=function(){function e(e,t){for(var n=0;n0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof f)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(u.default);p.blotName="list",p.scope=i.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[f],t.ListItem=f,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(56),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="italic",i.tagName=["EM","I"],t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return l.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(u.default.Embed);c.blotName="image",c.tagName="IMG",t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return l.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);c.blotName="video",c.className="ql-video",c.tagName="IFRAME",t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(n(13)).default);f.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){l(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return d(t,e),r(t,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(f,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(u.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=f,t.CodeToken=p,t.default=h},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n0&&o===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(t.index,t.length);if(1===i.length)r.position(r.quill.getBounds(t));else{var u=i[i.length-1],s=r.quill.getIndex(u),c=Math.min(u.length()-1,t.index+t.length-s),d=r.quill.getBounds(new l.Range(s,c));r.position(d)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),t}(u.BaseTooltip);m.TEMPLATE=['','
','','',"
"].join(""),t.BubbleTooltip=m,t.default=y},function(e,t,n){e.exports=n(63)}]).default},e.exports=t()},20977:function(e,t,n){"use strict";n.r(t),n.d(t,{AlphaPicker:function(){return Nr},BlockPicker:function(){return ui},ChromePicker:function(){return Yi},CirclePicker:function(){return Ti},CompactPicker:function(){return qi},CustomPicker:function(){return Er},GithubPicker:function(){return Xi},GooglePicker:function(){return Da},HuePicker:function(){return Ui},MaterialPicker:function(){return Gi},PhotoshopPicker:function(){return oa},SketchPicker:function(){return da},SliderPicker:function(){return ya},SwatchesPicker:function(){return xa},TwitterPicker:function(){return Sa},default:function(){return Yi}});var r=n(2784),o=n(7151),i={},a=function(e,t,n,r){var o=e+"-"+t+"-"+n+(r?"-server":"");if(i[o])return i[o];var a=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var i=o.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,o.width,o.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),o.toDataURL()):null}(e,t,n,r);return i[o]=a,a},u=Object.assign||function(e){for(var t=1;ta?1:Math.round(100*c/a)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}else{var f=void 0;if(r!==(f=l<0?0:l>i?1:Math.round(100*l/i)/100))return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}return null}(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},f(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),d(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,o.ZP)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:c({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return r.createElement("div",{style:n.alpha},r.createElement("div",{style:n.checkboard},r.createElement(l,{renderers:this.props.renderers})),r.createElement("div",{style:n.gradient}),r.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("div",{style:n.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:n.slider}))))}}]),t}(r.PureComponent||r.Component),h=p,g=function(){function e(e,t){for(var n=0;n-1)){var o=n.getArrowOffset(),i=38===e.keyCode?r+o:r-o;n.setUpdatedValue(i,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+m++,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),g(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,o.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return r.createElement("div",{style:t.wrap},r.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?r.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(r.PureComponent||r.Component),v=function(){function e(e,t){for(var n=0;ni?0:360*(-100*l/i+100)/100,n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d=void 0;if(d=s<0?0:s>o?359:100*s/o*360/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},w(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),v(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,i=(0,o.ZP)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return r.createElement("div",{style:i.hue},r.createElement("div",{className:"hue-"+n,style:i.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),r.createElement("div",{style:i.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:i.slider}))))}}]),t}(r.PureComponent||r.Component),k=x,S=n(13980),j=n.n(S);var O=function(){this.__data__=[],this.size=0};var E=function(e,t){return e===t||e!=e&&t!=t};var C=function(e,t){for(var n=e.length;n--;)if(E(e[n][0],t))return n;return-1},_=Array.prototype.splice;var T=function(e){var t=this.__data__,n=C(t,e);return!(n<0)&&(n==t.length-1?t.pop():_.call(t,n,1),--this.size,!0)};var D=function(e){var t=this.__data__,n=C(t,e);return n<0?void 0:t[n][1]};var P=function(e){return C(this.__data__,e)>-1};var M=function(e,t){var n=this.__data__,r=C(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function A(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991};var pt=function(e){return null!=e&&ft(e.length)&&!ee(e)};var ht=function(e){return ot(e)&&pt(e)};var gt=function(){return!1},yt="object"==typeof exports&&exports&&!exports.nodeType&&exports,mt=yt&&"object"==typeof module&&module&&!module.nodeType&&module,bt=mt&&mt.exports===yt?B.Buffer:void 0,vt=(bt?bt.isBuffer:void 0)||gt,wt=Function.prototype,xt=Object.prototype,kt=wt.toString,St=xt.hasOwnProperty,jt=kt.call(Object);var Ot=function(e){if(!ot(e)||"[object Object]"!=K(e))return!1;var t=et(e);if(null===t)return!0;var n=St.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&kt.call(n)==jt},Et={};Et["[object Float32Array]"]=Et["[object Float64Array]"]=Et["[object Int8Array]"]=Et["[object Int16Array]"]=Et["[object Int32Array]"]=Et["[object Uint8Array]"]=Et["[object Uint8ClampedArray]"]=Et["[object Uint16Array]"]=Et["[object Uint32Array]"]=!0,Et["[object Arguments]"]=Et["[object Array]"]=Et["[object ArrayBuffer]"]=Et["[object Boolean]"]=Et["[object DataView]"]=Et["[object Date]"]=Et["[object Error]"]=Et["[object Function]"]=Et["[object Map]"]=Et["[object Number]"]=Et["[object Object]"]=Et["[object RegExp]"]=Et["[object Set]"]=Et["[object String]"]=Et["[object WeakMap]"]=!1;var Ct=function(e){return ot(e)&&ft(e.length)&&!!Et[K(e)]};var _t=function(e){return function(t){return e(t)}},Tt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Dt=Tt&&"object"==typeof module&&module&&!module.nodeType&&module,Pt=Dt&&Dt.exports===Tt&&Z.process,Mt=function(){try{var e=Dt&&Dt.require&&Dt.require("util").types;return e||Pt&&Pt.binding&&Pt.binding("util")}catch(e){}}(),At=Mt&&Mt.isTypedArray,Lt=At?_t(At):Ct;var Nt=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Rt=Object.prototype.hasOwnProperty;var It=function(e,t,n){var r=e[t];Rt.call(e,t)&&E(r,n)&&(void 0!==n||t in e)||Ze(e,t,n)};var Yt=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},an=on(nn);var un=function(e,t){return an(en(e,t,Kt),e+"")};var sn=function(e,t,n){if(!V(n))return!1;var r=typeof t;return!!("number"==r?pt(n)&&Bt(t,n.length):"string"==r&&t in n)&&E(n[t],e)};var ln=function(e){return un((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&sn(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r=t||n<0||d&&e-l>=i}function g(){var e=fn();if(h(e))return y(e);u=setTimeout(g,function(e){var n=t-(e-s);return d?jn(n,i-(e-l)):n}(e))}function y(e){return u=void 0,f&&r?p(e):(r=o=void 0,a)}function m(){var e=fn(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(g,t),c?p(e):a}(s);if(d)return clearTimeout(u),u=setTimeout(g,t),p(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=kn(t)||0,V(n)&&(c=!!n.leading,i=(d="maxWait"in n)?Sn(kn(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(fn())},m};var En=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return V(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),On(e,t,{leading:r,maxWait:t,trailing:o})},Cn=function(){function e(e,t){for(var n=0;no&&(s=o),l<0?l=0:l>i&&(l=i);var c=s/o,d=1-l/i;return{h:t.h,s:c,v:d,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=En((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Cn(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,i=t.white,a=t.black,u=t.pointer,s=t.circle,l=(0,o.ZP)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:i,black:a,pointer:u,circle:s}},{custom:!!this.props.style});return r.createElement("div",{style:l.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),r.createElement("div",{style:l.white,className:"saturation-white"},r.createElement("div",{style:l.black,className:"saturation-black"}),r.createElement("div",{style:l.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:l.circle}))))}}]),t}(r.PureComponent||r.Component),Tn=_n;var Dn=function(e,t){for(var n=-1,r=null==e?0:e.length;++n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=ur(e,360),t=ur(t,100),n=ur(n,100),0===t)r=o=i=n;else{var u=n<.5?n*(1+t):n+t-n*t,s=2*n-u;r=a(s,u,e+1/3),o=a(s,u,e),i=a(s,u,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,i),a=!0,u="hsl"),e.hasOwnProperty("a")&&(n=e.a));var s,l,c;return n=ar(n),{ok:a,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function qn(e,t,n){e=ur(e,255),t=ur(t,255),n=ur(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),u=(i+a)/2;if(i==a)r=o=0;else{var s=i-a;switch(o=u>.5?s/(2-i-a):s/(i+a),i){case e:r=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(Bn(r));return i}function rr(e,t){t=t||6;for(var n=Bn(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],u=1/t;t--;)a.push(Bn({h:r,s:o,v:i})),i=(i+u)%1;return a}Bn.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=ar(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Hn(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Hn(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=qn(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=qn(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return Jn(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[cr(Math.round(e).toString(16)),cr(Math.round(t).toString(16)),cr(Math.round(n).toString(16)),cr(fr(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*ur(this._r,255))+"%",g:Math.round(100*ur(this._g,255))+"%",b:Math.round(100*ur(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*ur(this._r,255))+"%, "+Math.round(100*ur(this._g,255))+"%, "+Math.round(100*ur(this._b,255))+"%)":"rgba("+Math.round(100*ur(this._r,255))+"%, "+Math.round(100*ur(this._g,255))+"%, "+Math.round(100*ur(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(ir[Jn(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+Xn(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=Bn(e);n="#"+Xn(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return Bn(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Un,arguments)},brighten:function(){return this._applyModification(Gn,arguments)},darken:function(){return this._applyModification(Kn,arguments)},desaturate:function(){return this._applyModification(zn,arguments)},saturate:function(){return this._applyModification(Qn,arguments)},greyscale:function(){return this._applyModification(Wn,arguments)},spin:function(){return this._applyModification(Vn,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(nr,arguments)},complement:function(){return this._applyCombination($n,arguments)},monochromatic:function(){return this._applyCombination(rr,arguments)},splitcomplement:function(){return this._applyCombination(tr,arguments)},triad:function(){return this._applyCombination(er,[3])},tetrad:function(){return this._applyCombination(er,[4])}},Bn.fromRatio=function(e,t){if("object"==Yn(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:dr(e[r]));e=n}return Bn(e,t)},Bn.equals=function(e,t){return!(!e||!t)&&Bn(e).toRgbString()==Bn(t).toRgbString()},Bn.random=function(){return Bn.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Bn.mix=function(e,t,n){n=0===n?0:n||50;var r=Bn(e).toRgb(),o=Bn(t).toRgb(),i=n/100;return Bn({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},Bn.readability=function(e,t){var n=Bn(e),r=Bn(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Bn.isReadable=function(e,t,n){var r,o,i=Bn.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},Bn.mostReadable=function(e,t,n){var r,o,i,a,u=null,s=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var l=0;ls&&(s=r,u=Bn(t[l]));return Bn.isReadable(e,u,{level:i,size:a})||!o?u:(n.includeFallbackColors=!1,Bn.mostReadable(e,["#fff","#000"],n))};var or=Bn.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ir=Bn.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(or);function ar(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ur(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function sr(e){return Math.min(1,Math.max(0,e))}function lr(e){return parseInt(e,16)}function cr(e){return 1==e.length?"0"+e:""+e}function dr(e){return e<=1&&(e=100*e+"%"),e}function fr(e){return Math.round(255*parseFloat(e)).toString(16)}function pr(e){return lr(e)/255}var hr,gr,yr,mr=(gr="[\\s|\\(]+("+(hr="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+hr+")[,|\\s]+("+hr+")\\s*\\)?",yr="[\\s|\\(]+("+hr+")[,|\\s]+("+hr+")[,|\\s]+("+hr+")[,|\\s]+("+hr+")\\s*\\)?",{CSS_UNIT:new RegExp(hr),rgb:new RegExp("rgb"+gr),rgba:new RegExp("rgba"+yr),hsl:new RegExp("hsl"+gr),hsla:new RegExp("hsla"+yr),hsv:new RegExp("hsv"+gr),hsva:new RegExp("hsva"+yr),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function br(e){return!!mr.CSS_UNIT.exec(e)}var vr=function(e){var t=0,n=0;return In(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e},wr=function(e,t){var n=e.hex?Bn(e.hex):Bn(e),r=n.toHsl(),o=n.toHsv(),i=n.toRgb(),a=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{hsl:r,hex:"000000"===a&&0===i.a?"transparent":"#"+a,rgb:i,hsv:o,oldHue:e.h||t||r.h,source:e.source}},xr=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&Bn(e).isValid()},kr=function(e){if(!e)return"#fff";var t=wr(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},Sr=function(e,t){return Bn(t+" ("+e.replace("°","")+")")._ok},jr=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var r=arguments.length,i=Array(r),a=0;au))return!1;var l=i.get(e),c=i.get(t);if(l&&c)return l==t&&c==e;var d=-1,f=!0,p=2&n?new Fr:void 0;for(i.set(e,t),i.set(t,e);++d1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(Di(e.s)?n.props.hsl.s:e.s),l:Number(Di(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Mi(t,[{key:"render",value:function(){var e=this,t=(0,o.ZP)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=r.createElement("div",{style:t.fields,className:"flexbox-fix"},r.createElement("div",{style:t.field},r.createElement(b,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=r.createElement("div",{style:t.fields,className:"flexbox-fix"},r.createElement("div",{style:t.field},r.createElement(b,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(b,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(b,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),r.createElement("div",{style:t.alpha},r.createElement(b,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=r.createElement("div",{style:t.fields,className:"flexbox-fix"},r.createElement("div",{style:t.field},r.createElement(b,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(b,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(b,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),r.createElement("div",{style:t.alpha},r.createElement(b,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),r.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,r.createElement("div",{style:t.toggle},r.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},r.createElement(Pi.Z,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(r.Component);Ai.defaultProps={view:"hex"};var Li=Ai,Ni=function(){var e=(0,o.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.createElement("div",{style:e.picker})},Ri=function(){var e=(0,o.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return r.createElement("div",{style:e.picker})},Ii=function(e){var t=e.width,n=e.onChange,i=e.disableAlpha,a=e.rgb,u=e.hsl,s=e.hsv,c=e.hex,d=e.renderers,f=e.styles,p=void 0===f?{}:f,g=e.className,y=void 0===g?"":g,m=e.defaultView,b=(0,o.ZP)(ln({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},p),{disableAlpha:i});return r.createElement("div",{style:b.picker,className:"chrome-picker "+y},r.createElement("div",{style:b.saturation},r.createElement(Tn,{style:b.Saturation,hsl:u,hsv:s,pointer:Ri,onChange:n})),r.createElement("div",{style:b.body},r.createElement("div",{style:b.controls,className:"flexbox-fix"},r.createElement("div",{style:b.color},r.createElement("div",{style:b.swatch},r.createElement("div",{style:b.active}),r.createElement(l,{renderers:d}))),r.createElement("div",{style:b.toggles},r.createElement("div",{style:b.hue},r.createElement(k,{style:b.Hue,hsl:u,pointer:Ni,onChange:n})),r.createElement("div",{style:b.alpha},r.createElement(h,{style:b.Alpha,rgb:a,hsl:u,pointer:Ni,renderers:d,onChange:n})))),r.createElement(Li,{rgb:a,hsl:u,hex:c,view:m,onChange:n,disableAlpha:i})))};Ii.propTypes={width:j().oneOfType([j().string,j().number]),disableAlpha:j().bool,styles:j().object,defaultView:j().oneOf(["hex","rgb","hsl"])},Ii.defaultProps={width:225,disableAlpha:!1,styles:{}};var Yi=Er(Ii),Zi=function(e){var t=e.color,n=e.onClick,i=void 0===n?function(){}:n,a=e.onSwatchHover,u=e.active,s=(0,o.ZP)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:kr(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:u,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.createElement(Pr,{style:s.color,color:t,onClick:i,onHover:a,focusStyle:{boxShadow:"0 0 4px "+t}},r.createElement("div",{style:s.dot}))},Fi=function(e){var t=e.hex,n=e.rgb,i=e.onChange,a=(0,o.ZP)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),u=function(e,t){e.r||e.g||e.b?i({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):i({hex:e.hex,source:"hex"},t)};return r.createElement("div",{style:a.fields,className:"flexbox-fix"},r.createElement("div",{style:a.active}),r.createElement(b,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:t,onChange:u}),r.createElement(b,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:u}),r.createElement(b,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:u}),r.createElement(b,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:u}))},Bi=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.colors,a=e.hex,u=e.rgb,s=e.styles,l=void 0===s?{}:s,c=e.className,d=void 0===c?"":c,f=(0,o.ZP)(ln({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),p=function(e,n){e.hex?xr(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return r.createElement(dn,{style:f.Compact,styles:l},r.createElement("div",{style:f.compact,className:"compact-picker "+d},r.createElement("div",null,oi(i,(function(e){return r.createElement(Zi,{key:e,color:e,active:e.toLowerCase()===a,onClick:p,onSwatchHover:n})})),r.createElement("div",{style:f.clear})),r.createElement(Fi,{hex:a,rgb:u,onChange:p})))};Bi.propTypes={colors:j().arrayOf(j().string),styles:j().object},Bi.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};var qi=Er(Bi),Hi=(0,o.tz)((function(e){var t=e.hover,n=e.color,i=e.onClick,a=e.onSwatchHover,u={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=(0,o.ZP)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:u}},{hover:t});return r.createElement("div",{style:s.swatch},r.createElement(Pr,{color:n,onClick:i,onHover:a,focusStyle:u}))})),Ji=function(e){var t=e.width,n=e.colors,i=e.onChange,a=e.onSwatchHover,u=e.triangle,s=e.styles,l=void 0===s?{}:s,c=e.className,d=void 0===c?"":c,f=(0,o.ZP)(ln({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},l),{"hide-triangle":"hide"===u,"top-left-triangle":"top-left"===u,"top-right-triangle":"top-right"===u,"bottom-left-triangle":"bottom-left"===u,"bottom-right-triangle":"bottom-right"===u}),p=function(e,t){return i({hex:e,source:"hex"},t)};return r.createElement("div",{style:f.card,className:"github-picker "+d},r.createElement("div",{style:f.triangleShadow}),r.createElement("div",{style:f.triangle}),oi(n,(function(e){return r.createElement(Hi,{color:e,key:e,onClick:p,onSwatchHover:a})})))};Ji.propTypes={width:j().oneOfType([j().string,j().number]),colors:j().arrayOf(j().string),triangle:j().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:j().object},Ji.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};var Xi=Er(Ji),zi=function(e){var t=e.direction,n=(0,o.ZP)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.createElement("div",{style:n.picker})},Qi=Object.assign||function(e){for(var t=1;t.5});return r.createElement("div",{style:n.picker})},$i=function(){var e=(0,o.ZP)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return r.createElement("div",{style:e.pointer},r.createElement("div",{style:e.left},r.createElement("div",{style:e.leftInside})),r.createElement("div",{style:e.right},r.createElement("div",{style:e.rightInside})))},ea=function(e){var t=e.onClick,n=e.label,i=e.children,a=e.active,u=(0,o.ZP)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return r.createElement("div",{style:u.button,onClick:t},n||i)},ta=function(e){var t=e.rgb,n=e.currentColor,i=(0,o.ZP)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return r.createElement("div",null,r.createElement("div",{style:i.label},"new"),r.createElement("div",{style:i.swatches},r.createElement("div",{style:i.new}),r.createElement("div",{style:i.current})),r.createElement("div",{style:i.label},"current"))},na=function(){function e(e,t){for(var n=0;n100&&(e.a=100),e.a/=100,t({h:i.h,s:i.s,l:i.l,a:e.a,source:"rgb"},r))};return r.createElement("div",{style:s.fields,className:"flexbox-fix"},r.createElement("div",{style:s.double},r.createElement(b,{style:{input:s.input,label:s.label},label:"hex",value:a.replace("#",""),onChange:l})),r.createElement("div",{style:s.single},r.createElement(b,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:s.single},r.createElement(b,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:s.single},r.createElement(b,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:s.alpha},r.createElement(b,{style:{input:s.input,label:s.label},label:"a",value:Math.round(100*n.a),onChange:l,dragLabel:"true",dragMax:"100"})))},aa=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.excludeDateIntervals,a=t.includeDates,u=t.includeDateIntervals,s=t.filterDate;return pn(e,{minDate:n,maxDate:r})||o&&o.some((function(t){return Kt(e,t)}))||i&&i.some((function(t){var n=t.start,r=t.end;return ct.default(e,{start:n,end:r})}))||a&&!a.some((function(t){return Kt(e,t)}))||u&&!u.some((function(t){var n=t.start,r=t.end;return ct.default(e,{start:n,end:r})}))||s&&!s(Yt(e))||!1}function an(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some((function(t){var n=t.start,r=t.end;return ct.default(e,{start:n,end:r})})):n&&n.some((function(t){return Kt(e,t)}))||!1}function un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return pn(e,{minDate:Ke.default(n),maxDate:tt.default(r)})||o&&o.some((function(t){return Ut(e,t)}))||i&&!i.some((function(t){return Ut(e,t)}))||a&&!a(Yt(e))||!1}function sn(e,t,n,r){var o=Re.default(e),i=Le.default(e),a=Re.default(t),u=Le.default(t),s=Re.default(r);return o===a&&o===s?i<=n&&n<=u:o=n||so:void 0}function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return pn(e,{minDate:n,maxDate:r})||o&&o.some((function(t){return Gt(e,t)}))||i&&!i.some((function(t){return Gt(e,t)}))||a&&!a(Yt(e))||!1}function cn(e,t,n){if(!he.default(t)||!he.default(n))return!1;var r=Re.default(t),o=Re.default(n);return r<=e&&o>=e}function dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate,u=new Date(e,0,1);return pn(u,{minDate:$e.default(n),maxDate:nt.default(r)})||o&&o.some((function(e){return Wt(u,e)}))||i&&!i.some((function(e){return Wt(u,e)}))||a&&!a(Yt(u))||!1}function fn(e,t,n,r){var o=Re.default(e),i=Ne.default(e),a=Re.default(t),u=Ne.default(t),s=Re.default(r);return o===a&&o===s?i<=n&&n<=u:o=n||so:void 0}function pn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&ze.default(e,n)<0||r&&ze.default(e,r)>0}function hn(e,t){return t.some((function(t){return De.default(t)===De.default(e)&&Te.default(t)===Te.default(e)}))}function gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,o=t.filterTime;return n&&hn(e,n)||r&&!hn(e,r)||o&&!o(e)||!1}function yn(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var o,i=Yt(),a=Fe.default(Ze.default(i,Te.default(e)),De.default(e)),u=Fe.default(Ze.default(i,Te.default(n)),De.default(n)),s=Fe.default(Ze.default(i,Te.default(r)),De.default(r));try{o=!ct.default(a,{start:u,end:s})}catch(e){o=!1}return o}function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,o=Oe.default(e,1);return n&&Qe.default(n,o)>0||r&&r.every((function(e){return Qe.default(e,o)>0}))||!1}function bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=we.default(e,1);return n&&Qe.default(o,n)>0||r&&r.every((function(e){return Qe.default(o,e)>0}))||!1}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,o=Ce.default(e,1);return n&&We.default(n,o)>0||r&&r.every((function(e){return We.default(e,o)>0}))||!1}function wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=ke.default(e,1);return n&&We.default(o,n)>0||r&&r.every((function(e){return We.default(o,e)>0}))||!1}function xn(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return ze.default(e,t)>=0}));return Je.default(r)}return n?Je.default(n):t}function kn(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return ze.default(e,t)<=0}));return Xe.default(r)}return n?Xe.default(n):t}function Sn(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,o=e.length;r0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--holidays",n=new Map;return e.forEach((function(e){var r=e.date,o=e.holidayName;if(pe.default(r)){var i=Ft(r,"MM.dd.yyyy"),a=n.get(i)||{};if(!("className"in a)||a.className!==t||(u=a.holidayNames,s=[o],u.length!==s.length||!u.every((function(e,t){return e===s[t]})))){var u,s;a.className=t;var l=a.holidayNames;a.holidayNames=l?[].concat(Dt(l),[o]):[o],n.set(i,a)}}})),n}function On(e,t,n,r,o){for(var i=o.length,a=[],u=0;u1&&void 0!==arguments[1]?arguments[1]:Rt,n=Math.ceil(Re.default(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function _n(e){var t=e.getSeconds(),n=e.getMilliseconds();return dt.default(e.getTime()-1e3*t-n)}function Tn(e,t,n,r){for(var o=[],i=0;i<2*t+1;i++){var a=e+t-i,u=!0;n&&(u=Re.default(n)<=a),r&&u&&(u=Re.default(r)>=a),u&&o.push(a)}return o}var Dn=function(e){Ot(r,e);var n=Tt(r);function r(e){var o;wt(this,r),St(_t(o=n.call(this,e)),"renderOptions",(function(){var e=o.props.year,t=o.state.yearsList.map((function(t){return de.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:o.onChange.bind(_t(o),t),"aria-selected":e===t?"true":void 0},e===t?de.default.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)})),n=o.props.minDate?Re.default(o.props.minDate):null,r=o.props.maxDate?Re.default(o.props.maxDate):null;return r&&o.state.yearsList.find((function(e){return e===r}))||t.unshift(de.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:o.incrementYears},de.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&o.state.yearsList.find((function(e){return e===n}))||t.push(de.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:o.decrementYears},de.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t})),St(_t(o),"onChange",(function(e){o.props.onChange(e)})),St(_t(o),"handleClickOutside",(function(){o.props.onCancel()})),St(_t(o),"shiftYears",(function(e){var t=o.state.yearsList.map((function(t){return t+e}));o.setState({yearsList:t})})),St(_t(o),"incrementYears",(function(){return o.shiftYears(1)})),St(_t(o),"decrementYears",(function(){return o.shiftYears(-1)}));var i=e.yearDropdownItemNumber,a=e.scrollableYearDropdown,u=i||(a?10:5);return o.state={yearsList:Tn(o.props.year,u,o.props.minDate,o.props.maxDate)},o.dropdownRef=t.createRef(),o}return kt(r,[{key:"componentDidMount",value:function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find((function(e){return e.ariaSelected})):null;e.scrollTop=n?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}}},{key:"render",value:function(){var e=fe.default({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return de.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}]),r}(de.default.Component),Pn=ht.default(Dn),Mn=function(e){Ot(n,e);var t=Tt(n);function n(){var e;wt(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0?o.get(i).holidayNames.join(", "):""})),St(_t(e),"getTabIndex",(function(t,n){var r=t||e.props.selected,o=n||e.props.preSelection;return(!e.props.showWeekPicker||!e.props.showWeekNumber&&e.isStartOfWeek())&&(e.isKeyboardSelected()||e.isSameDay(r)&&Kt(o,r))?0:-1})),St(_t(e),"handleFocusDay",(function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=!1;0===e.getTabIndex()&&!n.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(r=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(r=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(r=!0),e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()&&(r=!1),e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()&&(r=!1)),r&&(null===(t=e.dayEl.current)||void 0===t||t.focus({preventScroll:!0}))})),St(_t(e),"renderDayContents",(function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(Me.default(e.props.day),e.props.day):Me.default(e.props.day)})),St(_t(e),"render",(function(){return de.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option",title:e.getTitle(),"aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()||e.isInRange()},e.renderDayContents(),""!==e.getTitle()&&de.default.createElement("span",{className:"holiday-overlay"},e.getTitle()))})),e}return kt(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),n}(de.default.Component),Bn=function(e){Ot(n,e);var t=Tt(n);function n(){var e;wt(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&Kt(e.props.date,e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(n=!0)),n&&e.weekNumberEl.current&&e.weekNumberEl.current.focus({preventScroll:!0})})),e}return kt(n,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(e){this.handleFocusWeekNumber(e)}},{key:"render",value:function(){var e=this.props,t=e.weekNumber,n=e.ariaLabelPrefix,r=void 0===n?"week ":n,o={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!e.onClick,"react-datepicker__week-number--selected":Kt(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return de.default.createElement("div",{ref:this.weekNumberEl,className:fe.default(o),"aria-label":"".concat(r," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},t)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),n}(de.default.Component),qn=function(e){Ot(n,e);var t=Tt(n);function n(){var e;wt(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=6,u=!n&&!e.isWeekInMonth(i);if(a||u){if(!e.props.peekNextMonth)break;o=!0}}return t})),St(_t(e),"onMonthClick",(function(t,n){e.handleDayClick(Jt(Be.default(e.props.day,n)),t)})),St(_t(e),"onMonthMouseEnter",(function(t){e.handleDayMouseEnter(Jt(Be.default(e.props.day,t)))})),St(_t(e),"handleMonthNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())})),St(_t(e),"onMonthKeyDown",(function(t,n){var r=e.props,o=r.selected,i=r.preSelection,a=r.disabledKeyboardNavigation,u=r.showTwoColumnMonthYearPicker,s=r.showFourColumnMonthYearPicker,l=r.setPreSelection,c=t.key;if("Tab"!==c&&t.preventDefault(),!a){var d=Qn(s,u),f=zn[d].verticalNavigationOffset,p=zn[d].grid;switch(c){case"Enter":e.onMonthClick(t,n),l(o);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,we.default(i,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,Oe.default(i,1));break;case"ArrowUp":e.handleMonthNavigation(p[0].includes(n)?n+12-f:n-f,Oe.default(i,f));break;case"ArrowDown":e.handleMonthNavigation(p[p.length-1].includes(n)?n-12+f:n+f,we.default(i,f))}}})),St(_t(e),"onQuarterClick",(function(t,n){e.handleDayClick(zt(qe.default(e.props.day,n)),t)})),St(_t(e),"onQuarterMouseEnter",(function(t){e.handleDayMouseEnter(zt(qe.default(e.props.day,t)))})),St(_t(e),"handleQuarterNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.QUARTER_REFS[t-1].current&&e.QUARTER_REFS[t-1].current.focus())})),St(_t(e),"onQuarterKeyDown",(function(t,n){var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onQuarterClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleQuarterNavigation(4===n?1:n+1,xe.default(e.props.preSelection,1));break;case"ArrowLeft":e.handleQuarterNavigation(1===n?4:n-1,Ee.default(e.props.preSelection,1))}})),St(_t(e),"getMonthClassNames",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate,a=n.selected,u=n.minDate,s=n.maxDate,l=n.preSelection,c=n.monthClassName,d=n.excludeDates,f=n.includeDates,p=c?c(Be.default(r,t)):void 0,h=Be.default(r,t);return fe.default("react-datepicker__month-text","react-datepicker__month-".concat(t),p,{"react-datepicker__month-text--disabled":(u||s||d||f)&&un(h,e.props),"react-datepicker__month-text--selected":e.isSelectedMonth(r,t,a),"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&Le.default(l)===t,"react-datepicker__month-text--in-selecting-range":e.isInSelectingRangeMonth(t),"react-datepicker__month-text--in-range":sn(o,i,t,r),"react-datepicker__month-text--range-start":e.isRangeStartMonth(t),"react-datepicker__month-text--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--selecting-range-start":e.isSelectingMonthRangeStart(t),"react-datepicker__month-text--selecting-range-end":e.isSelectingMonthRangeEnd(t),"react-datepicker__month-text--today":e.isCurrentMonth(r,t)})})),St(_t(e),"getTabIndex",(function(t){var n=Le.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),St(_t(e),"getQuarterTabIndex",(function(t){var n=Ne.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),St(_t(e),"getAriaLabel",(function(t){var n=e.props,r=n.chooseDayAriaLabelPrefix,o=void 0===r?"Choose":r,i=n.disabledDayAriaLabelPrefix,a=void 0===i?"Not available":i,u=n.day,s=Be.default(u,t),l=e.isDisabled(s)||e.isExcluded(s)?a:o;return"".concat(l," ").concat(Ft(s,"MMMM yyyy"))})),St(_t(e),"getQuarterClassNames",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate,a=n.selected,u=n.minDate,s=n.maxDate,l=n.preSelection,c=n.disabledKeyboardNavigation;return fe.default("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter-text--disabled":(u||s)&&ln(qe.default(r,t),e.props),"react-datepicker__quarter-text--selected":e.isSelectedQuarter(r,t,a),"react-datepicker__quarter-text--keyboard-selected":!c&&Ne.default(l)===t,"react-datepicker__quarter-text--in-selecting-range":e.isInSelectingRangeQuarter(t),"react-datepicker__quarter-text--in-range":fn(o,i,t,r),"react-datepicker__quarter-text--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter-text--range-end":e.isRangeEndQuarter(t)})})),St(_t(e),"getMonthContent",(function(t){var n=e.props,r=n.showFullMonthYearPicker,o=n.renderMonthContent,i=n.locale,a=n.day,u=rn(t,i),s=nn(t,i);return o?o(t,u,s,a):r?s:u})),St(_t(e),"getQuarterContent",(function(t){var n=e.props,r=n.renderQuarterContent,o=function(e,t){return Ft(qe.default(Yt(),e),"QQQ",t)}(t,n.locale);return r?r(t,o):o})),St(_t(e),"renderMonths",(function(){var t=e.props,n=t.showTwoColumnMonthYearPicker,r=t.showFourColumnMonthYearPicker,o=t.day,i=t.selected;return zn[Qn(r,n)].grid.map((function(t,n){return de.default.createElement("div",{className:"react-datepicker__month-wrapper",key:n},t.map((function(t,n){return de.default.createElement("div",{ref:e.MONTH_REFS[t],key:n,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},onMouseEnter:function(){return e.onMonthMouseEnter(t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(o,t)?"date":void 0,"aria-selected":e.isSelectedMonth(o,t,i)},e.getMonthContent(t))})))}))})),St(_t(e),"renderQuarters",(function(){var t=e.props,n=t.day,r=t.selected;return de.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(t,o){return de.default.createElement("div",{key:o,ref:e.QUARTER_REFS[o],role:"option",onClick:function(n){e.onQuarterClick(n,t)},onKeyDown:function(n){e.onQuarterKeyDown(n,t)},onMouseEnter:function(){return e.onQuarterMouseEnter(t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,r),tabIndex:e.getQuarterTabIndex(t),"aria-current":e.isCurrentQuarter(n,t)?"date":void 0},e.getQuarterContent(t))})))})),St(_t(e),"getClassNames",(function(){var t=e.props,n=t.selectingDate,r=t.selectsStart,o=t.selectsEnd,i=t.showMonthYearPicker,a=t.showQuarterYearPicker,u=t.showWeekPicker;return fe.default("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||o)},{"react-datepicker__monthPicker":i},{"react-datepicker__quarterPicker":a},{"react-datepicker__weekPicker":u})})),e}return kt(n,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,o=e.ariaLabelPrefix,i=void 0===o?"month ":o;return de.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(i," ").concat(Ft(r,"yyyy-MM")),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),n}(de.default.Component),Un=function(e){Ot(n,e);var t=Tt(n);function n(){var e;wt(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return $n.some((function(t){return e.indexOf(t)>=0}))})(e.target)&&r.props.onDropdownFocus()})),St(_t(r),"getDateInView",(function(){var e=r.props,t=e.preSelection,n=e.selected,o=e.openToDate,i=xn(r.props),a=kn(r.props),u=Yt();return o||n||t||(i&<.default(u,i)?i:a&&st.default(u,a)?a:u)})),St(_t(r),"increaseMonth",(function(){r.setState((function(e){var t=e.date;return{date:we.default(t,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),St(_t(r),"decreaseMonth",(function(){r.setState((function(e){var t=e.date;return{date:Oe.default(t,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),St(_t(r),"handleDayClick",(function(e,t,n){r.props.onSelect(e,t,n),r.props.setPreSelection&&r.props.setPreSelection(e)})),St(_t(r),"handleDayMouseEnter",(function(e){r.setState({selectingDate:e}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)})),St(_t(r),"handleMonthMouseLeave",(function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()})),St(_t(r),"handleYearMouseEnter",(function(e,t){r.setState({selectingDate:He.default(Yt(),t)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(e,t)})),St(_t(r),"handleYearMouseLeave",(function(e,t){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(e,t)})),St(_t(r),"handleYearChange",(function(e){r.props.onYearChange&&(r.props.onYearChange(e),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),St(_t(r),"handleMonthChange",(function(e){r.handleCustomMonthChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),St(_t(r),"handleCustomMonthChange",(function(e){r.props.onMonthChange&&(r.props.onMonthChange(e),r.setState({isRenderAriaLiveMessage:!0}))})),St(_t(r),"handleMonthYearChange",(function(e){r.handleYearChange(e),r.handleMonthChange(e)})),St(_t(r),"changeYear",(function(e){r.setState((function(t){var n=t.date;return{date:He.default(n,e)}}),(function(){return r.handleYearChange(r.state.date)}))})),St(_t(r),"changeMonth",(function(e){r.setState((function(t){var n=t.date;return{date:Be.default(n,e)}}),(function(){return r.handleMonthChange(r.state.date)}))})),St(_t(r),"changeMonthYear",(function(e){r.setState((function(t){var n=t.date;return{date:He.default(Be.default(n,Le.default(e)),Re.default(e))}}),(function(){return r.handleMonthYearChange(r.state.date)}))})),St(_t(r),"header",(function(){var e=Ht(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,r.props.locale,r.props.calendarStartDay),t=[];return r.props.showWeekNumbers&&t.push(de.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map((function(t){var n=be.default(e,t),o=r.formatWeekday(n,r.props.locale),i=r.props.weekDayClassName?r.props.weekDayClassName(n):void 0;return de.default.createElement("div",{key:t,className:fe.default("react-datepicker__day-name",i)},o)})))})),St(_t(r),"formatWeekday",(function(e,t){return r.props.formatWeekDay?function(e,t,n){return t(Ft(e,"EEEE",n))}(e,r.props.formatWeekDay,t):r.props.useWeekdaysShort?function(e,t){return Ft(e,"EEE",t)}(e,t):function(e,t){return Ft(e,"EEEEEE",t)}(e,t)})),St(_t(r),"decreaseYear",(function(){r.setState((function(e){var t=e.date;return{date:Ce.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),St(_t(r),"clearSelectingDate",(function(){r.setState({selectingDate:null})})),St(_t(r),"renderPreviousButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=vn(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.yearItemNumber,o=void 0===r?Rt:r,i=Cn(Xt(Ce.default(e,o)),o).endPeriod,a=n&&Re.default(n);return a&&a>i||!1}(r.state.date,r.props);break;default:e=mn(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.decreaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null);var o=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,i=r.props,a=i.previousMonthButtonLabel,u=i.previousYearButtonLabel,s=r.props,l=s.previousMonthAriaLabel,c=void 0===l?"string"==typeof a?a:"Previous Month":l,d=s.previousYearAriaLabel,f=void 0===d?"string"==typeof u?u:"Previous Year":d;return de.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":o?f:c},de.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},o?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel))}}})),St(_t(r),"increaseYear",(function(){r.setState((function(e){var t=e.date;return{date:ke.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),St(_t(r),"renderNextButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=wn(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.yearItemNumber,o=void 0===r?Rt:r,i=Cn(ke.default(e,o),o).startPeriod,a=n&&Re.default(n);return a&&a0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),de.default.createElement("div",{className:t.join(" ")},Ft(e,r.props.dateFormat,r.props.locale))})),St(_t(r),"renderYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return de.default.createElement(Mn,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:Re.default(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})})),St(_t(r),"renderMonthDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return de.default.createElement(Nn,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:Le.default(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})})),St(_t(r),"renderMonthYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return de.default.createElement(Zn,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})})),St(_t(r),"handleTodayButtonClick",(function(e){r.props.onSelect(Qt(),e),r.props.setPreSelection&&r.props.setPreSelection(Qt())})),St(_t(r),"renderTodayButton",(function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return de.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.handleTodayButtonClick(e)}},r.props.todayButton)})),St(_t(r),"renderDefaultHeader",(function(e){var t=e.monthDate,n=e.i;return de.default.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(t),de.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),de.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),St(_t(r),"renderCustomHeader",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,n=e.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var o=mn(r.state.date,r.props),i=bn(r.state.date,r.props),a=vn(r.state.date,r.props),u=wn(r.state.date,r.props),s=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return de.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(bt(bt({},r.state),{},{customHeaderCount:n,monthDate:t,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:o,nextMonthButtonDisabled:i,prevYearButtonDisabled:a,nextYearButtonDisabled:u})),s&&de.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),St(_t(r),"renderYearHeader",(function(){var e=r.state.date,t=r.props,n=t.showYearPicker,o=Cn(e,t.yearItemNumber),i=o.startPeriod,a=o.endPeriod;return de.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},n?"".concat(i," - ").concat(a):Re.default(e))})),St(_t(r),"renderHeader",(function(e){switch(!0){case void 0!==r.props.renderCustomHeader:return r.renderCustomHeader(e);case r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker:return r.renderYearHeader(e);default:return r.renderDefaultHeader(e)}})),St(_t(r),"renderMonths",(function(){var e;if(!r.props.showTimeSelectOnly&&!r.props.showYearPicker){for(var t=[],n=r.props.showPreviousMonths?r.props.monthsShown-1:0,o=Oe.default(r.state.date,n),i=null!==(e=r.props.monthSelectedIn)&&void 0!==e?e:n,a=0;a0;t.push(de.default.createElement("div",{key:l,ref:function(e){r.monthContainer=e},className:"react-datepicker__month-container"},r.renderHeader({monthDate:s,i:a}),de.default.createElement(Wn,{chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,ariaLabelPrefix:r.props.monthAriaLabelPrefix,onChange:r.changeMonthYear,day:s,dayClassName:r.props.dayClassName,calendarStartDay:r.props.calendarStartDay,monthClassName:r.props.monthClassName,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,orderInDisplay:a,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,highlightDates:r.props.highlightDates,holidays:r.props.holidays,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,setPreSelection:r.props.setPreSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,renderDayContents:r.props.renderDayContents,renderMonthContent:r.props.renderMonthContent,renderQuarterContent:r.props.renderQuarterContent,renderYearContent:r.props.renderYearContent,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showWeekPicker:r.props.showWeekPicker,isInputFocused:r.props.isInputFocused,containerRef:r.containerRef,monthShowsDuplicateDaysEnd:c,monthShowsDuplicateDaysStart:d})))}return t}})),St(_t(r),"renderYears",(function(){if(!r.props.showTimeSelectOnly)return r.props.showYearPicker?de.default.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader(),de.default.createElement(Gn,jt({onDayClick:r.handleDayClick,selectingDate:r.state.selectingDate,clearSelectingDate:r.clearSelectingDate,date:r.state.date},r.props,{onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave}))):void 0})),St(_t(r),"renderTimeSection",(function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return de.default.createElement(Un,{selected:r.props.selected,openToDate:r.props.openToDate,onChange:r.props.onTimeChange,timeClassName:r.props.timeClassName,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer,injectTimes:r.props.injectTimes,locale:r.props.locale,handleOnKeyDown:r.props.handleOnKeyDown,showTimeSelectOnly:r.props.showTimeSelectOnly})})),St(_t(r),"renderInputTimeSection",(function(){var e=new Date(r.props.selected),t=Zt(e)&&Boolean(r.props.selected)?"".concat(En(e.getHours()),":").concat(En(e.getMinutes())):"";if(r.props.showTimeInput)return de.default.createElement(Kn,{date:e,timeString:t,timeInputLabel:r.props.timeInputLabel,onChange:r.props.onTimeChange,customTimeInput:r.props.customTimeInput})})),St(_t(r),"renderAriaLiveRegion",(function(){var e,t=Cn(r.state.date,r.props.yearItemNumber),n=t.startPeriod,o=t.endPeriod;return e=r.props.showYearPicker?"".concat(n," - ").concat(o):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?Re.default(r.state.date):"".concat(nn(Le.default(r.state.date),r.props.locale)," ").concat(Re.default(r.state.date)),de.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&e)})),St(_t(r),"renderChildren",(function(){if(r.props.children)return de.default.createElement("div",{className:"react-datepicker__children-container"},r.props.children)})),r.containerRef=de.default.createRef(),r.state={date:r.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},r}return kt(n,[{key:"componentDidMount",value:function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))}},{key:"componentDidUpdate",value:function(e){var t=this;if(!this.props.preSelection||Kt(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!Kt(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var n=!Ut(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},(function(){return n&&t.handleCustomMonthChange(t.state.date)}))}}},{key:"render",value:function(){var e=this.props.container||Vn;return de.default.createElement("div",{style:{display:"contents"},ref:this.containerRef},de.default.createElement(e,{className:fe.default("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:Rt}}}]),n}(de.default.Component),tr=function(e){var t=e.icon,n=e.className,r=void 0===n?"":n,o=e.onClick,i="react-datepicker__calendar-icon";return de.default.isValidElement(t)?de.default.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(i," ").concat(r),onClick:function(e){"function"==typeof t.props.onClick&&t.props.onClick(e),"function"==typeof o&&o(e)}}):"string"==typeof t?de.default.createElement("i",{className:"".concat(i," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:o}):de.default.createElement("svg",{className:"".concat(i," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},de.default.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},nr=function(e){Ot(n,e);var t=Tt(n);function n(e){var r;return wt(this,n),(r=t.call(this,e)).el=document.createElement("div"),r}return kt(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return gt.default.createPortal(this.props.children,this.el)}}]),n}(de.default.Component),rr=function(e){return!e.disabled&&-1!==e.tabIndex},or=function(e){Ot(n,e);var t=Tt(n);function n(e){var r;return wt(this,n),St(_t(r=t.call(this,e)),"getTabChildren",(function(){return Array.prototype.slice.call(r.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(rr)})),St(_t(r),"handleFocusStart",(function(){var e=r.getTabChildren();e&&e.length>1&&e[e.length-1].focus()})),St(_t(r),"handleFocusEnd",(function(){var e=r.getTabChildren();e&&e.length>1&&e[0].focus()})),r.tabLoopRef=de.default.createRef(),r}return kt(n,[{key:"render",value:function(){return this.props.enableTabLoop?de.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},de.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,de.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(de.default.Component),ir=function(e){Ot(n,e);var t=Tt(n);function n(){return wt(this,n),t.apply(this,arguments)}return kt(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.wrapperClassName,o=t.hidePopper,i=t.popperComponent,a=t.popperModifiers,u=t.popperPlacement,s=t.popperProps,l=t.targetComponent,c=t.enableTabLoop,d=t.popperOnKeyDown,f=t.portalId,p=t.portalHost;if(!o){var h=fe.default("react-datepicker-popper",n);e=de.default.createElement(se.Popper,jt({modifiers:a,placement:u},s),(function(e){var t=e.ref,n=e.style,r=e.placement,o=e.arrowProps;return de.default.createElement(or,{enableTabLoop:c},de.default.createElement("div",{ref:t,style:n,className:h,"data-placement":r,onKeyDown:d},de.default.cloneElement(i,{arrowProps:o})))}))}this.props.popperContainer&&(e=de.default.createElement(this.props.popperContainer,{},e)),f&&!o&&(e=de.default.createElement(nr,{portalId:f,portalHost:p},e));var g=fe.default("react-datepicker-wrapper",r);return de.default.createElement(se.Manager,{className:"react-datepicker-manager"},de.default.createElement(se.Reference,null,(function(e){var t=e.ref;return de.default.createElement("div",{ref:t,className:g},l)})),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(de.default.Component),ar="react-datepicker-ignore-onclickoutside",ur=ht.default(er),sr="Date input not valid.",lr=function(e){Ot(n,e);var t=Tt(n);function n(e){var r;return wt(this,n),St(_t(r=t.call(this,e)),"getPreSelection",(function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:Yt()})),St(_t(r),"modifyHolidays",(function(){var e;return null===(e=r.props.holidays)||void 0===e?void 0:e.reduce((function(e,t){var n=new Date(t.date);return he.default(n)?[].concat(Dt(e),[bt(bt({},t),{},{date:n})]):e}),[])})),St(_t(r),"calcInitialState",(function(){var e,t=r.getPreSelection(),n=xn(r.props),o=kn(r.props),i=n&<.default(t,Ue.default(n))?n:o&&st.default(t,et.default(o))?o:t;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=r.props.selectsRange?r.props.startDate:r.props.selected)&&void 0!==e?e:i,highlightDates:Sn(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}})),St(_t(r),"clearPreventFocusTimeout",(function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)})),St(_t(r),"setFocus",(function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})})),St(_t(r),"setBlur",(function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()})),St(_t(r),"setOpen",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:dr},(function(){e||r.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&r.setBlur(),r.setState({inputValue:null})}))}))})),St(_t(r),"inputOk",(function(){return pe.default(r.state.preSelection)})),St(_t(r),"isCalendarOpen",(function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open})),St(_t(r),"handleFocus",(function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})})),St(_t(r),"sendFocusBackToInput",(function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},(function(){r.preventFocusTimeout=setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))}))})),St(_t(r),"cancelFocusInput",(function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null})),St(_t(r),"deferFocusInput",(function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout((function(){return r.setFocus()}),1)})),St(_t(r),"handleDropdownFocus",(function(){r.cancelFocusInput()})),St(_t(r),"handleBlur",(function(e){(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&r.props.onBlur(e),r.setState({focused:!1})})),St(_t(r),"handleCalendarClickOutside",(function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()})),St(_t(r),"handleChange",(function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&(c=ft.default(i,a.slice(0,i.length),new Date)),Zt(c)||(c=new Date(i))),Zt(c)&&f?c:null));r.props.showTimeSelectOnly&&r.props.selected&&p&&!Kt(p,r.props.selected)&&(p=yt.default(r.props.selected,{hours:De.default(p),minutes:Te.default(p),seconds:_e.default(p)})),!p&&o.target.value||(r.props.showWeekPicker&&(p=Ht(p,r.props.locale,r.props.calendarStartDay)),r.setSelected(p,o,!0))}})),St(_t(r),"handleSelect",(function(e,t,n){if(r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&r.sendFocusBackToInput(),r.props.onChangeRaw&&r.props.onChangeRaw(t),r.props.showWeekPicker&&(e=Ht(e,r.props.locale,r.props.calendarStartDay)),r.setSelected(e,t,!1,n),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(e);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var o=r.props,i=o.startDate,a=o.endDate;!i||a||lt.default(e,i)||r.setOpen(!1)}})),St(_t(r),"setSelected",(function(e,t,n,o){var i=e;if(r.props.showYearPicker){if(null!==i&&dn(Re.default(i),r.props))return}else if(r.props.showMonthYearPicker){if(null!==i&&un(i,r.props))return}else if(null!==i&&on(i,r.props))return;var a=r.props,u=a.onChange,s=a.selectsRange,l=a.startDate,c=a.endDate;if(!Vt(r.props.selected,i)||r.props.allowSameDay||s)if(null!==i&&(!r.props.selected||n&&(r.props.showTimeSelect||r.props.showTimeSelectOnly||r.props.showTimeInput)||(i=qt(i,{hour:De.default(r.props.selected),minute:Te.default(r.props.selected),second:_e.default(r.props.selected)})),r.props.inline||r.setState({preSelection:i}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:o})),s){var d=l&&c;l||c?l&&!c&&(lt.default(i,l)?u([i,null],t):u([l,i],t)):u([i,null],t),d&&u([i,null],t)}else u(i,t);n||(r.props.onSelect(i,t),r.setState({inputValue:null}))})),St(_t(r),"setPreSelection",(function(e){var t=void 0!==r.props.minDate,n=void 0!==r.props.maxDate,o=!0;if(e){r.props.showWeekPicker&&(e=Ht(e,r.props.locale,r.props.calendarStartDay));var i=Ue.default(e);if(t&&n)o=$t(e,r.props.minDate,r.props.maxDate);else if(t){var a=Ue.default(r.props.minDate);o=st.default(e,a)||Vt(i,a)}else if(n){var u=et.default(r.props.maxDate);o=lt.default(e,u)||Vt(i,u)}}o&&r.setState({preSelection:e})})),St(_t(r),"toggleCalendar",(function(){r.setOpen(!r.state.open)})),St(_t(r),"handleTimeChange",(function(e){var t=r.props.selected?r.props.selected:r.getPreSelection(),n=r.props.selected?e:qt(t,{hour:De.default(e),minute:Te.default(e)});r.setState({preSelection:n}),r.props.onChange(n),r.props.shouldCloseOnSelect&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})})),St(_t(r),"onInputClick",(function(){r.props.disabled||r.props.readOnly||r.setOpen(!0),r.props.onInputClick()})),St(_t(r),"onInputKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){if(r.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var n=r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',o=r.calendar.componentNode&&r.calendar.componentNode.querySelector(n);return void(o&&o.focus({preventScroll:!0}))}var i=Yt(r.state.preSelection);"Enter"===t?(e.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===dr?(r.handleSelect(i,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(i)):r.setOpen(!1)):"Escape"===t?(e.preventDefault(),r.sendFocusBackToInput(),r.setOpen(!1)):"Tab"===t&&r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:sr})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||r.onInputClick()})),St(_t(r),"onPortalKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),r.setState({preventFocus:!0},(function(){r.setOpen(!1),setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))})))})),St(_t(r),"onDayKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key,n=Yt(r.state.preSelection);if("Enter"===t)e.preventDefault(),r.handleSelect(n,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(n);else if("Escape"===t)e.preventDefault(),r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:sr});else if(!r.props.disabledKeyboardNavigation){var o;switch(t){case"ArrowLeft":o=r.props.showWeekPicker?je.default(n,1):Se.default(n,1);break;case"ArrowRight":o=r.props.showWeekPicker?ve.default(n,1):be.default(n,1);break;case"ArrowUp":o=je.default(n,1);break;case"ArrowDown":o=ve.default(n,1);break;case"PageUp":o=Oe.default(n,1);break;case"PageDown":o=we.default(n,1);break;case"Home":o=Ce.default(n,1);break;case"End":o=ke.default(n,1);break;default:o=null}if(!o)return void(r.props.onInputError&&r.props.onInputError({code:1,msg:sr}));if(e.preventDefault(),r.setState({lastPreSelectChange:dr}),r.props.adjustDateOnChange&&r.setSelected(o),r.setPreSelection(o),r.props.inline){var i=Le.default(n),a=Le.default(o),u=Re.default(n),s=Re.default(o);i!==a||u!==s?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}})),St(_t(r),"onPopperKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),r.sendFocusBackToInput())})),St(_t(r),"onClearClick",(function(e){e&&e.preventDefault&&e.preventDefault(),r.sendFocusBackToInput(),r.props.selectsRange?r.props.onChange([null,null],e):r.props.onChange(null,e),r.setState({inputValue:null})})),St(_t(r),"clear",(function(){r.onClearClick()})),St(_t(r),"onScroll",(function(e){"boolean"==typeof r.props.closeOnScroll&&r.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||r.setOpen(!1):"function"==typeof r.props.closeOnScroll&&r.props.closeOnScroll(e)&&r.setOpen(!1)})),St(_t(r),"renderCalendar",(function(){return r.props.inline||r.isCalendarOpen()?de.default.createElement(ur,{ref:function(e){r.calendar=e},locale:r.props.locale,calendarStartDay:r.props.calendarStartDay,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,monthAriaLabelPrefix:r.props.monthAriaLabelPrefix,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,formatWeekDay:r.props.formatWeekDay,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,holidays:jn(r.modifyHolidays()),includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,includeTimes:r.props.includeTimes,injectTimes:r.props.injectTimes,inline:r.props.inline,shouldFocusDayInline:r.state.shouldFocusDayInline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,showPreviousMonths:r.props.showPreviousMonths,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,outsideClickIgnoreClass:ar,fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,monthSelectedIn:r.state.monthSelectedIn,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,weekDayClassName:r.props.weekDayClassName,monthClassName:r.props.monthClassName,timeClassName:r.props.timeClassName,showDateSelect:r.props.showDateSelect,showTimeSelect:r.props.showTimeSelect,showTimeSelectOnly:r.props.showTimeSelectOnly,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,container:r.props.calendarContainer,yearItemNumber:r.props.yearItemNumber,yearDropdownItemNumber:r.props.yearDropdownItemNumber,previousMonthAriaLabel:r.props.previousMonthAriaLabel,previousMonthButtonLabel:r.props.previousMonthButtonLabel,nextMonthAriaLabel:r.props.nextMonthAriaLabel,nextMonthButtonLabel:r.props.nextMonthButtonLabel,previousYearAriaLabel:r.props.previousYearAriaLabel,previousYearButtonLabel:r.props.previousYearButtonLabel,nextYearAriaLabel:r.props.nextYearAriaLabel,nextYearButtonLabel:r.props.nextYearButtonLabel,timeInputLabel:r.props.timeInputLabel,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderCustomHeader:r.props.renderCustomHeader,popperProps:r.props.popperProps,renderDayContents:r.props.renderDayContents,renderMonthContent:r.props.renderMonthContent,renderQuarterContent:r.props.renderQuarterContent,renderYearContent:r.props.renderYearContent,onDayMouseEnter:r.props.onDayMouseEnter,onMonthMouseLeave:r.props.onMonthMouseLeave,onYearMouseEnter:r.props.onYearMouseEnter,onYearMouseLeave:r.props.onYearMouseLeave,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showTimeInput:r.props.showTimeInput,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showWeekPicker:r.props.showWeekPicker,showPopperArrow:r.props.showPopperArrow,excludeScrollbar:r.props.excludeScrollbar,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,isInputFocused:r.state.focused,customTimeInput:r.props.customTimeInput,setPreSelection:r.setPreSelection},r.props.children):null})),St(_t(r),"renderAriaLiveRegion",(function(){var e,t=r.props,n=t.dateFormat,o=t.locale,i=r.props.showTimeInput||r.props.showTimeSelect?"PPPPp":"PPPP";return e=r.props.selectsRange?"Selected start date: ".concat(Bt(r.props.startDate,{dateFormat:i,locale:o}),". ").concat(r.props.endDate?"End date: "+Bt(r.props.endDate,{dateFormat:i,locale:o}):""):r.props.showTimeSelectOnly?"Selected time: ".concat(Bt(r.props.selected,{dateFormat:n,locale:o})):r.props.showYearPicker?"Selected year: ".concat(Bt(r.props.selected,{dateFormat:"yyyy",locale:o})):r.props.showMonthYearPicker?"Selected month: ".concat(Bt(r.props.selected,{dateFormat:"MMMM yyyy",locale:o})):r.props.showQuarterYearPicker?"Selected quarter: ".concat(Bt(r.props.selected,{dateFormat:"yyyy, QQQ",locale:o})):"Selected date: ".concat(Bt(r.props.selected,{dateFormat:i,locale:o})),de.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e)})),St(_t(r),"renderDateInput",(function(){var e,t=fe.default(r.props.className,St({},ar,r.state.open)),n=r.props.customInput||de.default.createElement("input",{type:"text"}),o=r.props.customInputRef||"ref",i="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:r.props.selectsRange?function(e,t,n){if(!e)return"";var r=Bt(e,n),o=t?Bt(t,n):"";return"".concat(r," - ").concat(o)}(r.props.startDate,r.props.endDate,r.props):Bt(r.props.selected,r.props);return de.default.cloneElement(n,(St(St(St(St(St(St(St(St(St(St(e={},o,(function(e){r.input=e})),"value",i),"onBlur",r.handleBlur),"onChange",r.handleChange),"onClick",r.onInputClick),"onFocus",r.handleFocus),"onKeyDown",r.onInputKeyDown),"id",r.props.id),"name",r.props.name),"form",r.props.form),St(St(St(St(St(St(St(St(St(St(e,"autoFocus",r.props.autoFocus),"placeholder",r.props.placeholderText),"disabled",r.props.disabled),"autoComplete",r.props.autoComplete),"className",fe.default(n.props.className,t)),"title",r.props.title),"readOnly",r.props.readOnly),"required",r.props.required),"tabIndex",r.props.tabIndex),"aria-describedby",r.props.ariaDescribedBy),St(St(St(e,"aria-invalid",r.props.ariaInvalid),"aria-labelledby",r.props.ariaLabelledBy),"aria-required",r.props.ariaRequired)))})),St(_t(r),"renderClearButton",(function(){var e=r.props,t=e.isClearable,n=e.disabled,o=e.selected,i=e.startDate,a=e.endDate,u=e.clearButtonTitle,s=e.clearButtonClassName,l=void 0===s?"":s,c=e.ariaLabelClose,d=void 0===c?"Close":c;return!t||null==o&&null==i&&null==a?null:de.default.createElement("button",{type:"button",className:fe.default("react-datepicker__close-icon",l,{"react-datepicker__close-icon--disabled":n}),disabled:n,"aria-label":d,onClick:r.onClearClick,title:u,tabIndex:-1})})),r.state=r.calcInitialState(),r.preventFocusTimeout=null,r}return kt(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?Le.default(n)!==Le.default(r)||Re.default(n)!==Re.default(r):n!==r)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:Sn(this.props.highlightDates)}),t.focused||Vt(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var e=this.props,t=e.showIcon,n=e.icon,r=e.calendarIconClassname,o=e.toggleCalendarOnIconClick,i=this.state.open;return de.default.createElement("div",{className:"react-datepicker__input-container".concat(t?" react-datepicker__view-calendar-icon":"")},t&&de.default.createElement(tr,jt({icon:n,className:"".concat(r," ").concat(i&&"react-datepicker-ignore-onclickoutside")},o?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?de.default.createElement(or,{enableTabLoop:this.props.enableTabLoop},de.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=de.default.createElement(nr,{portalId:this.props.portalId,portalHost:this.props.portalHost},t)),de.default.createElement("div",null,this.renderInputContainer(),t)}return de.default.createElement(ir,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Rt,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1}}}]),n}(de.default.Component),cr="input",dr="navigate";e.CalendarContainer=Vn,e.default=lr,e.getDefaultLocale=en,e.registerLocale=function(e,t){var n="undefined"!=typeof window?window:globalThis;n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){("undefined"!=typeof window?window:globalThis).__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(2784),n(13980),n(72779),n(72968),n(4478),n(13555),n(23107),n(20578),n(63761),n(85014),n(28187),n(68239),n(52946),n(96913),n(65032),n(94873),n(54308),n(46318),n(33963),n(34908),n(99994),n(98465),n(35459),n(8507),n(51981),n(81139),n(81914),n(17254),n(8868),n(99791),n(63673),n(10520),n(89968),n(42019),n(97208),n(13621),n(8849),n(92082),n(93399),n(10405),n(49122),n(12414),n(73116),n(81290),n(11106),n(10194),n(8548),n(97852),n(46326),n(82276),n(53009),n(31794),n(80143),n(42598),n(63063),n(1713),n(66700),n(84731),n(31807),n(80185),n(28316),n(31495),n(44958))},1350:function(e,t,n){"use strict";var r=n(2784);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n