quicksnack 3.35.1 → 3.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/UiProvider.d.ts +8 -0
- package/dist/UiStateProvider.d.ts +9 -0
- package/dist/UiWrapper.d.ts +7 -0
- package/dist/animation/SlideInFromTop/SlideInFromTop.d.ts +4 -0
- package/dist/animation/SlideOpen/SlideOpen.d.ts +9 -0
- package/dist/bundle.js +4741 -0
- package/dist/bundle.min.js +874 -0
- package/dist/components/Alert/Alert.d.ts +7 -0
- package/dist/components/AnimatedCheckmark/AnimatedCheckmark.d.ts +2 -0
- package/dist/components/Box/Box.d.ts +23 -0
- package/dist/components/BreadCrumbs/BreadCrumbs.d.ts +3 -0
- package/dist/components/CollapsiblePanel/CollapsiblePanel.d.ts +7 -0
- package/dist/components/ConfirmButton/ConfirmButton.d.ts +8 -0
- package/dist/components/ConfirmModal/ConfirmModal.d.ts +15 -0
- package/dist/components/ConfirmModal/hooks/useConfirmModal.d.ts +11 -0
- package/dist/components/Details/Details.d.ts +7 -0
- package/dist/components/Dropdown/Dropdown.d.ts +530 -0
- package/dist/components/Dropzone/Dropzone.d.ts +8 -0
- package/dist/components/Feedback/Feedback.d.ts +10 -0
- package/dist/components/Floater/Floater.d.ts +14 -0
- package/dist/components/Floater/FloaterItem.d.ts +8 -0
- package/dist/components/Footer/Footer.d.ts +2 -0
- package/dist/components/HorizontalScroller/HorizontalScroller.d.ts +2 -0
- package/dist/components/Menu/HamburgerButton.d.ts +276 -0
- package/dist/components/Menu/Menu.d.ts +268 -0
- package/dist/components/Menu/MenuCloseButton.d.ts +276 -0
- package/dist/components/Menu/MenuSlideOpenIndicator.d.ts +2 -0
- package/dist/components/Menu/SideBar.d.ts +271 -0
- package/dist/components/Menu/SideBarHeader.d.ts +6 -0
- package/dist/components/Menu/useCloseSidebarOnNavigate.d.ts +1 -0
- package/dist/components/Menu/useToggleMobileMenu.d.ts +10 -0
- package/dist/components/Modal/Modal.d.ts +8 -0
- package/dist/components/Overlay/Overlay.d.ts +261 -0
- package/dist/components/Paginator/Paginator.d.ts +8 -0
- package/dist/components/Panel/Panel.d.ts +13 -0
- package/dist/components/Section/Section.d.ts +3 -0
- package/dist/components/Statistic/Statistic.d.ts +11 -0
- package/dist/components/Table/Table.d.ts +27 -0
- package/dist/components/Tabs/Tab.d.ts +12 -0
- package/dist/components/Tabs/TabContent.d.ts +3 -0
- package/dist/components/Tabs/Tabs.d.ts +279 -0
- package/dist/components/Timeline/Timeline.d.ts +18 -0
- package/dist/components/TopBar/TopBar.d.ts +7 -0
- package/dist/fonts.d.ts +1 -0
- package/dist/form/Button/Button.d.ts +13 -0
- package/dist/form/Checkbox/Checkbox.d.ts +8 -0
- package/dist/form/FileField/FileField.d.ts +8 -0
- package/dist/form/PasswordStrengthField/PasswordStrenghField.d.ts +9 -0
- package/dist/form/ScaffoldForm/FormGrid/FormGrid.d.ts +7 -0
- package/dist/form/ScaffoldForm/FormGrid/FormGridCell.d.ts +14 -0
- package/dist/form/ScaffoldForm/FormGrid/FormGridWrapper.d.ts +10 -0
- package/dist/form/ScaffoldForm/ScaffoldField.d.ts +9 -0
- package/dist/form/ScaffoldForm/ScaffoldForm.d.ts +10 -0
- package/dist/form/ScaffoldForm/ScaffoldFormProvider.d.ts +7 -0
- package/dist/form/ScaffoldForm/hooks/useScaffoldFormContext.d.ts +1 -0
- package/dist/form/ScaffoldForm/scaffoldFormProps.d.ts +80 -0
- package/dist/form/ScaffoldForm/scaffoldPasswordProps.d.ts +19 -0
- package/dist/form/ScaffoldForm/types.d.ts +34 -0
- package/dist/form/ScaffoldForm/utils/FormPositioner.d.ts +36 -0
- package/dist/form/ScaffoldForm/utils/Grid.d.ts +38 -0
- package/dist/form/ScaffoldForm/utils/Grid.test.d.ts +1 -0
- package/dist/form/ScaffoldForm/utils/assertGridIsValid.d.ts +6 -0
- package/dist/form/ScaffoldForm/utils/assertGridIsValid.test.d.ts +1 -0
- package/dist/form/ScaffoldForm/utils/equalColumns.d.ts +1 -0
- package/dist/form/Select/Select.d.ts +6 -0
- package/dist/form/TextField/TextField.d.ts +9 -0
- package/dist/index.d.ts +58 -0
- package/dist/layouts/BasicLayout/BasicLayout.d.ts +13 -0
- package/dist/layouts/FloatingPanelLayout/FloatingPanelLayout.d.ts +12 -0
- package/dist/layouts/constants.d.ts +2 -0
- package/dist/responsiveness/responsiveProps.d.ts +17 -0
- package/dist/responsiveness/useResponsiveBreakpoints.d.ts +6 -0
- package/dist/theme.d.ts +2 -0
- package/dist/typography/Fonts.d.ts +2 -0
- package/dist/typography/Header/Header.d.ts +6 -0
- package/dist/typography/Paragraph/Paragraph.d.ts +261 -0
- package/package.json +10 -6
|
@@ -0,0 +1,874 @@
|
|
|
1
|
+
"use strict";var e=require("react"),t=require("styled-components"),n=require("immer");function r(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function s(e,t,n){return s=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}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&i(a,n.prototype),a},s.apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return s(e,arguments,l(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,e)},c(e)}r(":root {\n --common-black: rgba(0,0,0,.87);\n --common-white: #fff;\n\n --colors-blue: #007bff;\n --colors-indigo: #6610f2;\n --colors-purple: #6f42c1;\n --colors-pink: #e83e8c;\n --colors-red: #e83e3e;\n --colors-orange: #fd7e14;\n --colors-yellow: #ffc107;\n --colors-green: #23B294;\n --colors-teal: #20c997;\n --colors-cyan: #17a2b8;\n --colors-gray: #6c757d;\n --colors-grayDark: #343a40;\n --colors-light: #f8f9fa;\n --colors-dark: #343a40;\n\n --form-hint: #C7C7C7;\n --form-error: #9f3a38\n;\n --button-basic-idle-background: #fff;\n --button-basic-idle-text: rgba(0,0,0,.87);\n --button-basic-hover-background: #e5e5e5;\n --button-basic-hover-text: rgba(0,0,0,0.883);\n --button-basic-active-background: #ccc;\n --button-basic-active-text: rgba(0,0,0,0.8960000000000001);\n\n --button-default-idle-background: #e0e1e2;\n --button-default-idle-text: rgba(0,0,0,.87);\n --button-default-hover-background: #c9cacb;\n --button-default-hover-text: rgba(0,0,0,0.883);\n --button-default-active-background: #b3b4b4;\n --button-default-active-text: rgba(0,0,0,0.8960000000000001);\n\n --button-text-idle-text: #999c9e;\n --button-text-idle-background: transparent;\n --button-text-active-text: rgba(0,0,0,.87);\n --button-text-active-background: transparent;\n --button-text-hover-text: rgba(0,0,0,.87);\n --button-text-hover-background: transparent;\n\n --button-danger-idle-background: #EC5969;\n --button-danger-idle-text: #fff;\n --button-danger-hover-background: #d4505e;\n --button-danger-hover-text: #fff;\n --button-danger-active-background: #bc4754;\n --button-danger-active-text: #fff;\n\n --button-primary-idle-background: #2284C4;\n --button-primary-idle-text: #fff;\n --button-primary-hover-background: #1e76b0;\n --button-primary-hover-text: #fff;\n --button-primary-active-background: #1b699c;\n --button-primary-active-text: #fff;\n\n --button-secondary-idle-background: #23B294;\n --button-secondary-idle-text: #fff;\n --button-secondary-hover-background: #1fa085;\n --button-secondary-hover-text: #fff;\n --button-secondary-active-background: #1c8e76;\n --button-secondary-active-text: #fff;\n\n --pane-basic-main-idle-text: rgba(0,0,0,.87);\n --pane-basic-main-idle-background: #fff;\n --pane-basic-main-idle-border: #ddd;\n --pane-basic-main-hover-text: rgba(0,0,0,.87);\n --pane-basic-main-hover-background: #f2f2f2;\n --pane-basic-main-hover-border: #ddd;\n --pane-basic-alternate-idle-text: rgba(0,0,0,.87);\n --pane-basic-alternate-idle-background: #f9f9f9;\n --pane-basic-alternate-idle-border: #ddd;\n --pane-basic-alternate-hover-text: rgba(0,0,0,.87);\n --pane-basic-alternate-hover-background: #f2f2f2;\n --pane-basic-alternate-hover-border: #ddd;\n\n --pane-emphasized-main-idle-text: rgba(0,0,0,.87);\n --pane-emphasized-main-idle-background: #f3f3f3;\n --pane-emphasized-main-idle-border: #ddd;\n --pane-emphasized-main-hover-text: rgba(0,0,0,.87);\n --pane-emphasized-main-hover-background: #e6e6e6;\n --pane-emphasized-main-hover-border: #ddd;\n --pane-emphasized-alternate-idle-text: rgba(0,0,0,.87);\n --pane-emphasized-alternate-idle-background: #eee;\n --pane-emphasized-alternate-idle-border: #ddd;\n --pane-emphasized-alternate-hover-text: rgba(0,0,0,.87);\n --pane-emphasized-alternate-hover-background: #e6e6e6;\n --pane-emphasized-alternate-hover-border: #ddd;\n\n --pane-info-main-idle-text: #0c5460;\n --pane-info-main-idle-background: #d1ecf1;\n --pane-info-main-idle-border: #bee5eb;\n --pane-info-main-hover-text: #0c5460;\n --pane-info-main-hover-background: #c6e0e4;\n --pane-info-main-hover-border: #bee5eb;\n --pane-info-alternate-idle-text: #0c5460;\n --pane-info-alternate-idle-background: #cce7ec;\n --pane-info-alternate-idle-border: #bee5eb;\n --pane-info-alternate-hover-text: #0c5460;\n --pane-info-alternate-hover-background: #c6e0e4;\n --pane-info-alternate-hover-border: #bee5eb;\n\n --pane-negative-main-idle-text: #721c24;\n --pane-negative-main-idle-background: #f8d7da;\n --pane-negative-main-idle-border: #f5c6cb;\n --pane-negative-main-hover-text: #721c24;\n --pane-negative-main-hover-background: #ebcccf;\n --pane-negative-main-hover-border: #f5c6cb;\n --pane-negative-alternate-idle-text: #721c24;\n --pane-negative-alternate-idle-background: #f3d2d5;\n --pane-negative-alternate-idle-border: #f5c6cb;\n --pane-negative-alternate-hover-text: #721c24;\n --pane-negative-alternate-hover-background: #ebcccf;\n --pane-negative-alternate-hover-border: #f5c6cb;\n\n --pane-positive-main-idle-text: #155724;\n --pane-positive-main-idle-background: #d4edda;\n --pane-positive-main-idle-border: #c3e6cb;\n --pane-positive-main-hover-text: #155724;\n --pane-positive-main-hover-background: #c9e1cf;\n --pane-positive-main-hover-border: #c3e6cb;\n --pane-positive-alternate-idle-text: #155724;\n --pane-positive-alternate-idle-background: #cfe8d5;\n --pane-positive-alternate-idle-border: #c3e6cb;\n --pane-positive-alternate-hover-text: #155724;\n --pane-positive-alternate-hover-background: #c9e1cf;\n --pane-positive-alternate-hover-border: #c3e6cb;\n\n --pane-warning-main-idle-text: #856404;\n --pane-warning-main-idle-background: #fff3cd;\n --pane-warning-main-idle-border: #ffeeba;\n --pane-warning-main-hover-text: #856404;\n --pane-warning-main-hover-background: #f2e6c2;\n --pane-warning-main-hover-border: #ffeeba;\n --pane-warning-alternate-idle-text: #856404;\n --pane-warning-alternate-idle-background: #f9eec8;\n --pane-warning-alternate-idle-border: #ffeeba;\n --pane-warning-alternate-hover-text: #856404;\n --pane-warning-alternate-hover-background: #f2e6c2;\n --pane-warning-alternate-hover-border: #ffeeba;\n\n\n --spacing: 4px;\n --spacing-2: calc(var(--spacing) * 2);\n --spacing-3: calc(var(--spacing) * 3);\n --spacing-4: calc(var(--spacing) * 4);\n --spacing-5: calc(var(--spacing) * 5);\n}"),"function"==typeof SuppressedError&&SuppressedError;var d={1:"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",2:"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",3:"Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",4:"Couldn't generate valid rgb string from %s, it returned %s.\n\n",5:"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",6:"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",7:"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",8:"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",9:"Please provide a number of steps to the modularScale helper.\n\n",10:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",11:'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',12:'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',13:'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',14:'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',15:'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',16:"You must provide a template to this method.\n\n",17:"You passed an unsupported selector state to this method.\n\n",18:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",19:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",20:"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:"fontFace expects a name of a font-family.\n\n",24:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",25:"fontFace expects localFonts to be an array.\n\n",26:"fontFace expects fileFormats to be an array.\n\n",27:"radialGradient requries at least 2 color-stops to properly render.\n\n",28:"Please supply a filename to retinaImage() as the first argument.\n\n",29:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",32:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",33:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",34:"borderRadius expects a radius value as a string or number as the second argument.\n\n",35:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',36:"Property must be a string value.\n\n",37:"Syntax Error at %s.\n\n",38:"Formula contains a function that needs parentheses at %s.\n\n",39:"Formula is missing closing parenthesis at %s.\n\n",40:"Formula has too many closing parentheses at %s.\n\n",41:"All values in a formula must have the same unit or be unitless.\n\n",42:"Please provide a number of steps to the modularScale helper.\n\n",43:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",44:"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",45:"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",46:"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",47:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",48:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",49:"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",50:"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",51:"Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",52:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",53:"fontFace expects localFonts to be an array.\n\n",54:"fontFace expects fileFormats to be an array.\n\n",55:"fontFace expects a name of a font-family.\n\n",56:"linearGradient requries at least 2 color-stops to properly render.\n\n",57:"radialGradient requries at least 2 color-stops to properly render.\n\n",58:"Please supply a filename to retinaImage() as the first argument.\n\n",59:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:"Property must be a string value.\n\n",62:"borderRadius expects a radius value as a string or number as the second argument.\n\n",63:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',64:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",65:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",66:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",67:"You must provide a template to this method.\n\n",68:"You passed an unsupported selector state to this method.\n\n",69:'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',70:'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',71:'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',72:'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',73:"Please provide a valid CSS variable.\n\n",74:"CSS variable not found and no default was provided.\n\n",75:"important requires a valid style object, got a %s instead.\n\n",76:"fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n",77:'remToPx expects a value in "rem" but you provided it in "%s".\n\n',78:'base must be set in "px" or "%" but you set it in "%s".\n'};function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,a=t[0],o=[];for(r=1;r<t.length;r+=1)o.push(t[r]);return o.forEach((function(e){a=a.replace(/%[a-z]/,e)})),a}var u=function(e){var t,n;function r(t){var n;if("production"===process.env.NODE_ENV)n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this;else{for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];n=e.call(this,p.apply(void 0,[d[t]].concat(a)))||this}return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),r}(c(Error));function f(e){return Math.round(255*e)}function m(e,t,n){return f(e)+","+f(t)+","+f(n)}function h(e,t,n,r){if(void 0===r&&(r=m),0===t)return r(n,n,n);var a=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*t,i=o*(1-Math.abs(a%2-1)),l=0,s=0,c=0;a>=0&&a<1?(l=o,s=i):a>=1&&a<2?(l=i,s=o):a>=2&&a<3?(s=o,c=i):a>=3&&a<4?(s=i,c=o):a>=4&&a<5?(l=i,c=o):a>=5&&a<6&&(l=o,c=i);var d=n-o/2;return r(l+d,s+d,c+d)}var g={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",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:"ff00ff",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:"639",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"};var b=/^#[a-fA-F0-9]{6}$/,v=/^#[a-fA-F0-9]{8}$/,y=/^#[a-fA-F0-9]{3}$/,x=/^#[a-fA-F0-9]{4}$/,k=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,w=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,E=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,$=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function C(e){if("string"!=typeof e)throw new u(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return g[t]?"#"+g[t]:e}(e);if(t.match(b))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(v)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(y))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(x)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var a=k.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=w.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var i=E.exec(t);if(i){var l="rgb("+h(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",s=k.exec(l);if(!s)throw new u(4,t,l);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var c=$.exec(t.substring(0,50));if(c){var d="rgb("+h(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",p=k.exec(d);if(!p)throw new u(4,t,d);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new u(5)}var O=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function _(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function F(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return O("#"+_(e)+_(t)+_(n));if("object"==typeof e&&void 0===t&&void 0===n)return O("#"+_(e.red)+_(e.green)+_(e.blue));throw new u(6)}function S(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):S(e,t,r)}}function P(e){return S(e,e.length,[])}function j(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var r=C(t),a=o({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),i=C(n),l=o({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),s=a.alpha-l.alpha,c=2*parseFloat(e)-1,d=((c*s==-1?c:c+s)/(1+c*s)+1)/2,p=1-d;return function(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var a=C(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?F(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?F(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new u(7)}({red:Math.floor(a.red*d+l.red*p),green:Math.floor(a.green*d+l.green*p),blue:Math.floor(a.blue*d+l.blue*p),alpha:a.alpha*parseFloat(e)+l.alpha*(1-parseFloat(e))})}var A=P(j);function z(e,t){return"transparent"===t?t:A(parseFloat(e),"rgb(0, 0, 0)",t)}var M=P(z);const T="rgba(0,0,0,.87)",R="#fff",I=(e,t,n)=>Object.entries(t).reduce(((t,[r,a])=>Object.assign(Object.assign({},t),{[r]:n.includes(r)?M(e,a):a})),t),D=e=>{var{colorsToDarken:t}=e,n=a(e,["colorsToDarken"]);return{idle:n,hover:I(.1,n,t),active:I(.2,n,t)}},L=e=>({main:{idle:e,hover:I(.05,e,["background"])},alternate:{idle:I(.02,e,["background"]),hover:I(.05,e,["background"])}}),B={spacing:(...e)=>e.map((e=>4*e+"px")).join(" "),palette:{common:{black:T,white:R},colors:{blue:"#007bff",indigo:"#6610f2",purple:"#6f42c1",pink:"#e83e8c",red:"#e83e3e",orange:"#fd7e14",yellow:"#ffc107",green:"#23B294",teal:"#20c997",cyan:"#17a2b8",gray:"#6c757d",grayDark:"#343a40",light:"#f8f9fa",dark:"#343a40"},form:{hint:"#C7C7C7",error:"#9f3a38"},button:{basic:D({colorsToDarken:["background","text"],background:R,text:T}),default:D({colorsToDarken:["background","text"],background:"#e0e1e2",text:T}),text:{idle:{text:"#999c9e",background:"transparent"},active:{text:T,background:"transparent"},hover:{text:T,background:"transparent"}},danger:D({colorsToDarken:["background"],background:"#EC5969",text:R}),primary:D({colorsToDarken:["background"],background:"#2284C4",text:R}),secondary:D({colorsToDarken:["background"],background:"#23B294",text:R})},pane:{basic:L({text:T,background:R,border:"#ddd"}),emphasized:L({text:T,background:"#f3f3f3",border:"#ddd"}),info:L({text:"#0c5460",background:"#d1ecf1",border:"#bee5eb"}),negative:L({text:"#721c24",background:"#f8d7da",border:"#f5c6cb"}),positive:L({text:"#155724",background:"#d4edda",border:"#c3e6cb"}),warning:L({text:"#856404",background:"#fff3cd",border:"#ffeeba"})}}},H=t.ThemeProvider,N=({children:t,theme:n})=>e.createElement(H,{theme:n||B},t),q=()=>{},G=e.createContext({isSideMenuOpen:!1,closeSideMenu:q,openSideMenu:q}),V=()=>e.useContext(G),W=({children:t})=>{const[n,r]=e.useState(!1),a=e.useCallback((()=>r(!1)),[]),o=e.useCallback((()=>r(!0)),[]);return e.createElement(G.Provider,{value:{isSideMenuOpen:n,closeSideMenu:a,openSideMenu:o}},t)},U=t.styled.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
height: 100%;
|
|
5
|
+
font-family: Lato, "Helvetica Neue", Arial, Helvetica, sans-serif;
|
|
6
|
+
color: ${e=>e.theme.palette.common.black};
|
|
7
|
+
font-size: 14px;
|
|
8
|
+
`;function Y(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var X=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,J=Y((function(e){return X.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));const K=t.keyframes`
|
|
9
|
+
0% {
|
|
10
|
+
opacity: 0;
|
|
11
|
+
transform: translateY(-5px);
|
|
12
|
+
}
|
|
13
|
+
100% {
|
|
14
|
+
opacity: 1;
|
|
15
|
+
transform: translateY(0);
|
|
16
|
+
}
|
|
17
|
+
`,Q=t.styled.div.withConfig({shouldForwardProp:J})`
|
|
18
|
+
animation: ${K} ${e=>e.speed||".3s"} ease-in 0s 1;
|
|
19
|
+
`;var Z={wrapper:"Alert-module_wrapper__zP8eL","variant-positive":"Alert-module_variant-positive__Cqab0","variant-negative":"Alert-module_variant-negative__mORCP","variant-info":"Alert-module_variant-info__b3OY9","variant-warning":"Alert-module_variant-warning__gBX5-","variant-basic":"Alert-module_variant-basic__AQmn7","variant-emphasized":"Alert-module_variant-emphasized__8GiYF","variant-":"Alert-module_variant-__raLwR"};r(".Alert-module_wrapper__zP8eL {\n border-radius: 4px;\n}\n\n.Alert-module_variant-positive__Cqab0 {\n border: 1px solid var(--pane-positive-main-idle-border);\n background-color: var(--pane-positive-main-idle-background);\n color: var(--pane-positive-main-idle-text);\n }\n\n.Alert-module_variant-negative__mORCP {\n border: 1px solid var(--pane-negative-main-idle-border);\n background-color: var(--pane-negative-main-idle-background);\n color: var(--pane-negative-main-idle-text);\n }\n\n.Alert-module_variant-info__b3OY9 {\n border: 1px solid var(--pane-info-main-idle-border);\n background-color: var(--pane-info-main-idle-background);\n color: var(--pane-info-main-idle-text);\n }\n\n.Alert-module_variant-warning__gBX5- {\n border: 1px solid var(--pane-warning-main-idle-border);\n background-color: var(--pane-warning-main-idle-background);\n color: var(--pane-warning-main-idle-text);\n }\n\n.Alert-module_variant-basic__AQmn7 {\n border: 1px solid var(--pane-basic-main-idle-border);\n background-color: var(--pane-basic-main-idle-background);\n color: var(--pane-basic-main-idle-text);\n }\n\n.Alert-module_variant-emphasized__8GiYF {\n border: 1px solid var(--pane-emphasized-main-idle-border);\n background-color: var(--pane-emphasized-main-idle-background);\n color: var(--pane-emphasized-main-idle-text);\n }\n\n.Alert-module_variant-__raLwR {\n border: 1px solid var(--pane--main-idle-border);\n background-color: var(--pane--main-idle-background);\n color: var(--pane--main-idle-text);\n }");const ee=t.css`
|
|
20
|
+
margin: 0 0;
|
|
21
|
+
padding: 0 0;
|
|
22
|
+
font-weight: 700;
|
|
23
|
+
line-height: 1.28571429em;
|
|
24
|
+
`,te={1:t.styled.h1.withConfig({shouldForwardProp:J})`
|
|
25
|
+
font-size: 2rem;
|
|
26
|
+
min-height: 1rem;
|
|
27
|
+
${ee}
|
|
28
|
+
`,2:t.styled.h2.withConfig({shouldForwardProp:J})`
|
|
29
|
+
font-size: 1.71428571rem;
|
|
30
|
+
${ee}
|
|
31
|
+
`,3:t.styled.h3.withConfig({shouldForwardProp:J})`
|
|
32
|
+
font-size: 1.28571429rem;
|
|
33
|
+
${ee}
|
|
34
|
+
`,4:t.styled.h4.withConfig({shouldForwardProp:J})`
|
|
35
|
+
font-size: 1.07142857rem;
|
|
36
|
+
${ee}
|
|
37
|
+
`,5:t.styled.h5.withConfig({shouldForwardProp:J})`
|
|
38
|
+
font-size: 1rem;
|
|
39
|
+
${ee}
|
|
40
|
+
`},ne=t=>{var{level:n=1}=t,r=a(t,["level"]);const o=te[n];return e.createElement(o,Object.assign({},r))},re=t.styled.p`
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
line-height: 20px;
|
|
43
|
+
// margin: 0 0 1em;
|
|
44
|
+
margin: 0;
|
|
45
|
+
`,ae=["mobile","tablet","laptop","desktop"],oe={mobile:0,tablet:768,laptop:1024,desktop:1430},ie=(e,n)=>t.css`
|
|
46
|
+
@media screen and (min-width: ${oe[e]}px) {
|
|
47
|
+
${n}
|
|
48
|
+
}
|
|
49
|
+
`,le=e=>{if("object"!=typeof e)return!1;const t=Object.keys(e);for(const e of ae)if(t.includes(e))return!0;return!1},se=(e,t)=>{const n=Object.entries(t).filter((([t])=>void 0!==e[t]&&!le(e[t]))).map((([t,n])=>n(e[t])));return[ae.map((n=>{const r=Object.entries(t).filter((([t])=>{var r;return void 0!==(null===(r=null==e?void 0:e[t])||void 0===r?void 0:r[n])})).map((([t,r])=>r(e[t][n])));return r.length>0?ie(n,r):void 0})).filter((e=>void 0!==e)),...n]},ce=t.styled.div.withConfig({shouldForwardProp:J})`
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
|
|
52
|
+
${e=>se(e,{p:n=>t.css`padding: ${e.theme.spacing(n)};`,pt:n=>t.css`padding-top: ${e.theme.spacing(n)};`,pr:n=>t.css`padding-right: ${e.theme.spacing(n)};`,pb:n=>t.css`padding-bottom: ${e.theme.spacing(n)};`,pl:n=>t.css`padding-left: ${e.theme.spacing(n)};`,m:n=>t.css`margin: ${e.theme.spacing(n)};`,mt:n=>t.css`margin-top: ${e.theme.spacing(n)};`,mr:n=>t.css`margin-right: ${e.theme.spacing(n)};`,mb:n=>t.css`margin-bottom: ${e.theme.spacing(n)};`,ml:n=>t.css`margin-left: ${e.theme.spacing(n)};`,display:e=>t.css`display: ${e};`,flexGrow:e=>t.css`flex-grow: ${e};`,flexShrink:e=>t.css`flex-shrink: ${e};`,flexDirection:e=>t.css`flex-direction: ${e};`,alignItems:e=>t.css`align-items: ${e};`,textAlign:e=>t.css`text-align: ${e};`,justifyContent:e=>t.css`justify-content: ${e};`,width:n=>t.css`width: ${"number"==typeof n?e.theme.spacing(n):n};`})}
|
|
53
|
+
`;function de(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=de(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function pe(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=de(e))&&(r&&(r+=" "),r+=t);return r}const ue="#20c997",fe=t.styled.g`
|
|
54
|
+
fill: none;
|
|
55
|
+
stroke: ${ue};
|
|
56
|
+
stroke-width: 10;
|
|
57
|
+
`,me=t.keyframes`
|
|
58
|
+
0% {
|
|
59
|
+
stroke-dashoffset: 100px
|
|
60
|
+
}
|
|
61
|
+
100% {
|
|
62
|
+
stroke-dashoffset: 0px
|
|
63
|
+
}
|
|
64
|
+
`,he=t.styled.polyline`
|
|
65
|
+
stroke-dasharray: 100px, 100px;
|
|
66
|
+
stroke-dashoffset: 200px;
|
|
67
|
+
animation: ${me} 0.42s ease-in-out 0.8s backwards;
|
|
68
|
+
stroke: ${ue};
|
|
69
|
+
stroke-width: 10;
|
|
70
|
+
`,ge=t.keyframes`
|
|
71
|
+
0% {
|
|
72
|
+
stroke-dashoffset: 480px
|
|
73
|
+
}
|
|
74
|
+
100% {
|
|
75
|
+
stroke-dashoffset: 960px
|
|
76
|
+
}
|
|
77
|
+
`,be=t.styled.circle`
|
|
78
|
+
stroke-dasharray: 480px, 480px;
|
|
79
|
+
stroke-dashoffset: 960px;
|
|
80
|
+
animation: ${ge} 0.6s ease-in-out backwards;
|
|
81
|
+
stroke: ${ue};
|
|
82
|
+
stroke-width: 10;
|
|
83
|
+
`,ve=t.keyframes`
|
|
84
|
+
0% {
|
|
85
|
+
opacity:0;
|
|
86
|
+
}
|
|
87
|
+
100% {
|
|
88
|
+
opacity:100;
|
|
89
|
+
}
|
|
90
|
+
`,ye=t.styled.circle`
|
|
91
|
+
stroke-dasharray: 480px, 480px;
|
|
92
|
+
stroke-dashoffset: 960px;
|
|
93
|
+
animation: ${ve} 1.2s ease-in-out 1.4s backwards;
|
|
94
|
+
fill: #effaf8;
|
|
95
|
+
`,xe=()=>e.createElement("svg",{viewBox:"0 0 154 154"},e.createElement(fe,null,e.createElement(be,{cx:"77",cy:"77",r:"72"}),e.createElement(ye,{cx:"77",cy:"77",r:"72"}),e.createElement(he,{points:"43.5,77.8 63.7,97.9 112.2,49.4"})));var ke="BreadCrumbs-module_breadcrumbs__-UMJj";r('.BreadCrumbs-module_breadcrumbs__-UMJj {\n list-style: none;\n padding: 0;\n margin: 0;\n display:flex;\n}\n\n.BreadCrumbs-module_crumb__SSW-t {\n display: flex;\n}\n\n.BreadCrumbs-module_crumb__SSW-t:not(:last-of-type):after {\n content: "/";\n color: var(--colors-gray);\n line-height: 1em;\n margin: auto auto;\n padding: 0 var(--spacing-2) 0 0;\n }');const we=t.styled.div`
|
|
96
|
+
background-color: ${e=>e.theme.palette.common.white};
|
|
97
|
+
border-radius: 4px;
|
|
98
|
+
border: 1px solid #DEDEDF;
|
|
99
|
+
box-shadow: 0px 2px 3px rgb(0 0 0 / 6%);
|
|
100
|
+
`,Ee=t.styled(ce)`
|
|
101
|
+
font-size: 12px;
|
|
102
|
+
font-style: italic;
|
|
103
|
+
`,$e=t.styled(ce)`
|
|
104
|
+
${e=>e.panelHasChildren&&t.css`
|
|
105
|
+
border-radius: 4px;
|
|
106
|
+
border-bottom: 1px solid rgba(34,36,38,.15);
|
|
107
|
+
`}
|
|
108
|
+
|
|
109
|
+
${e=>!!e.onClick&&t.css`
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
user-select: none;
|
|
112
|
+
`}
|
|
113
|
+
`,Ce=t.styled(ce)`
|
|
114
|
+
border-radius: 4px;
|
|
115
|
+
background-color: #FFF;
|
|
116
|
+
border-top: 1px solid rgba(34,36,38,.15);
|
|
117
|
+
`,Oe=({children:t,className:n,title:r,titleAction:a,titleMeta:o,onClickTitle:i,footer:l,p:s=3,titleLevel:c=5})=>e.createElement(we,{className:n},r&&e.createElement($e,{p:3,panelHasChildren:!!t,display:"flex",alignItems:"center",onClick:i},e.createElement(ce,{flexGrow:1},e.createElement(ne,{level:c},r)),o&&e.createElement(Ee,null,o),a&&e.createElement(ce,{pl:5},a)),t&&e.createElement(ce,{p:s},t),l&&e.createElement(Ce,{p:3},l)),_e=t.styled.div.withConfig({shouldForwardProp:J})`
|
|
118
|
+
transform: ${e=>e.isOpen?"translate(0)":"translateY(-101%)"};
|
|
119
|
+
transition-duration: ${e=>e.duration||.25}s;
|
|
120
|
+
transition-property: transform;
|
|
121
|
+
}
|
|
122
|
+
`,Fe=t.styled.div`
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
`,Se=t.styled.div.withConfig({shouldForwardProp:J})`
|
|
125
|
+
display: ${e=>e.isHidden?"none":"block"};
|
|
126
|
+
`,Pe=({isOpen:t,children:n,duration:r,onChange:a})=>{const o=(t=>{const[n,r]=e.useState(t);return e.useEffect((()=>{const e=setTimeout((()=>r(t)),0);return()=>clearTimeout(e)}),[t,r]),n})(t),[i,l]=e.useState(!t),s=e.useCallback((()=>{t||(l(!0),null==a||a(!1))}),[t,a]);return e.useEffect((()=>{t&&(l(!1),null==a||a(!0))}),[t,a]),e.createElement(Fe,null,e.createElement(_e,{isOpen:o,onTransitionEndCapture:s,duration:r},e.createElement(Se,{isHidden:i},n)))},je=t.styled.div.withConfig({shouldForwardProp:J})`
|
|
127
|
+
transform: scaleY( ${e=>e.isOpen?"-1":"1"} );
|
|
128
|
+
`,Ae=t.styled(Oe)`
|
|
129
|
+
${e=>!e.isOpen&&t.css`border-bottom: 0;`}
|
|
130
|
+
`,ze=t=>{var{isInitiallyOpen:n,children:r,titleAction:o}=t,i=a(t,["isInitiallyOpen","children","titleAction"]);const[l,s]=e.useState(n),c=e.useCallback((()=>s(!l)),[s,l]);return e.createElement(Ae,Object.assign({},i,{isOpen:l,onClickTitle:c,p:0,titleAction:e.createElement(je,{isOpen:l},o)}),e.createElement(Pe,{isOpen:l},e.createElement(ce,{p:3},r)))},Me=t.keyframes`
|
|
131
|
+
0% {
|
|
132
|
+
opacity: 0;
|
|
133
|
+
}
|
|
134
|
+
100% {
|
|
135
|
+
opacity: 1;
|
|
136
|
+
}
|
|
137
|
+
`,Te=t.styled.div`
|
|
138
|
+
position: fixed;
|
|
139
|
+
top: 0;
|
|
140
|
+
left: 0;
|
|
141
|
+
right: 0;
|
|
142
|
+
bottom: 0;
|
|
143
|
+
z-index: 10;
|
|
144
|
+
opacity: 0;
|
|
145
|
+
background-color: rgba(0,0,0,0.6);
|
|
146
|
+
animation: ${Me} 0.2s forwards;
|
|
147
|
+
`,Re=t.styled.div`
|
|
148
|
+
position: fixed;
|
|
149
|
+
top: 0;
|
|
150
|
+
left: 0;
|
|
151
|
+
right: 0;
|
|
152
|
+
bottom: 0;
|
|
153
|
+
|
|
154
|
+
display: flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
justify-content: center;
|
|
157
|
+
|
|
158
|
+
z-index: 50;
|
|
159
|
+
`,Ie=t.styled(Oe)`
|
|
160
|
+
box-shadow: 0 8px 8px 0 rgba(34,36,38,.15);
|
|
161
|
+
`,De=t.styled.div`
|
|
162
|
+
line-height: ${e=>e.theme.spacing(6)};
|
|
163
|
+
font-size: 15px;
|
|
164
|
+
`,Le=t=>{var{children:n,handleClickOverlay:r,buttons:o}=t,i=a(t,["children","handleClickOverlay","buttons"]);return e.createElement(e.Fragment,null,e.createElement(Te,{onClick:r}),e.createElement(Re,null,e.createElement(Q,null,e.createElement(Ie,Object.assign({footer:o?e.createElement(ce,{display:"flex",justifyContent:"flex-end"},o):void 0},i),n&&e.createElement(De,null,n)))))},Be=t.styled.div.withConfig({shouldForwardProp:J})`
|
|
165
|
+
${e=>e.stretch&&"width: 100%;"}
|
|
166
|
+
${e=>e.actionButton||e.stretch?t.css`margin: 0;`:t.css`margin: ${e=>e.theme.spacing(0,2,0,0)};`}
|
|
167
|
+
`,He=t.styled.button.withConfig({shouldForwardProp:J})`
|
|
168
|
+
font-size: 14px;
|
|
169
|
+
font-weight: bold;
|
|
170
|
+
letter-spacing: 1px;
|
|
171
|
+
line-height: 1em;
|
|
172
|
+
outline: 0;
|
|
173
|
+
border: none;
|
|
174
|
+
border-radius: 4px;
|
|
175
|
+
cursor: pointer;
|
|
176
|
+
text-decoration: none;
|
|
177
|
+
font-family: "Open Sans", Lato, "Helvetica Neue", Arial, Helvetica, sans-serif;
|
|
178
|
+
transition: background-color .1s ease, color .1s ease;
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-direction: row;
|
|
181
|
+
align-items: center;
|
|
182
|
+
user-select: none;
|
|
183
|
+
min-height: ${e=>e.inline?"auto":"38px"};
|
|
184
|
+
|
|
185
|
+
${e=>e.stretch&&t.css`
|
|
186
|
+
width: 100%;
|
|
187
|
+
display: block;
|
|
188
|
+
`}
|
|
189
|
+
|
|
190
|
+
${e=>e.actionButton&&t.css`
|
|
191
|
+
width: 100%;
|
|
192
|
+
${ie("laptop","width: auto")}
|
|
193
|
+
`}
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
${e=>"text"!==e.variant?e.icon?e.hasChildren&&t.css`position: relative; padding: ${e.theme.spacing(3,5,3,13)};`:t.css`padding: ${e.theme.spacing(3,5)}; min-width: ${e=>e.theme.spacing(10)};`:t.css`font-weight: 700; padding: 0;`}
|
|
197
|
+
|
|
198
|
+
&:disabled {
|
|
199
|
+
opacity: .5;
|
|
200
|
+
cursor: default;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&:focus {
|
|
204
|
+
background-blend-mode: darken;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
${e=>{if("basic"===e.variant)return"\n border: 1px solid rgba(34,36,38,.15);\n "}}
|
|
208
|
+
|
|
209
|
+
${e=>{var t;const{idle:n,hover:r,active:a}=B.palette.button[null!==(t=e.variant)&&void 0!==t?t:"default"];return`\n color: ${n.text};\n background-color: ${n.background}; \n \n &:not(:disabled) {\n &:hover, &:focus {\n color: ${r.text};\n background-color: ${r.background}; \n } \n \n &:active {\n color: ${a.text};\n background-color: ${a.background}; \n } \n }\n \n `}}
|
|
210
|
+
`,Ne=t.styled.span.withConfig({shouldForwardProp:J})`
|
|
211
|
+
${e=>"text"!==e.variant&&t.css`
|
|
212
|
+
min-width: ${e.theme.spacing(10)};
|
|
213
|
+
`}
|
|
214
|
+
|
|
215
|
+
${e=>"text"===e.variant?e.hasChildren&&t.css`
|
|
216
|
+
padding-right: ${e.theme.spacing(2)};
|
|
217
|
+
`:e.hasChildren&&t.css`
|
|
218
|
+
position: absolute;
|
|
219
|
+
left: 0;
|
|
220
|
+
top: 0;
|
|
221
|
+
width: ${e=>e.theme.spacing(10)};
|
|
222
|
+
height: 100%;
|
|
223
|
+
background-color: rgba(0,0,0,.05);
|
|
224
|
+
|
|
225
|
+
& > svg {
|
|
226
|
+
transform: translate(-50%, -50%);
|
|
227
|
+
position: absolute;
|
|
228
|
+
top: 50%;
|
|
229
|
+
left: 50%;
|
|
230
|
+
}
|
|
231
|
+
`}
|
|
232
|
+
`,qe=e.forwardRef(((t,n)=>{var{children:r,icon:o,stretch:i}=t,l=a(t,["children","icon","stretch"]);return e.createElement(Be,{actionButton:l.actionButton,stretch:i},e.createElement(He,Object.assign({ref:n,icon:o,hasChildren:!!r,stretch:i},l),o&&e.createElement(Ne,{variant:l.variant,hasChildren:!!r},o),r))})),Ge=({title:t,children:n,cancelLabel:r="Nee, annuleren",confirmLabel:a="Ja",confirmVariant:o="secondary",confirmIcon:i,cancelIcon:l,isOpen:s,onCancel:c,onConfirm:d})=>s?e.createElement(Le,{title:t,handleClickOverlay:c,buttons:e.createElement(e.Fragment,null,e.createElement(qe,{"data-testid":"btn-cancel",onClick:c,variant:"basic",icon:l},r),e.createElement(qe,{"data-testid":"btn-confirm",onClick:d,variant:o,icon:i},a))},n):null,Ve=()=>{},We=t.styled.table.withConfig({shouldForwardProp:J})`
|
|
233
|
+
border-radius: 4px;
|
|
234
|
+
width: 100%;
|
|
235
|
+
border-collapse: separate;
|
|
236
|
+
border-spacing: 0;
|
|
237
|
+
|
|
238
|
+
${e=>se(e,{tableLayout:e=>t.css`table-layout: ${e};`})}
|
|
239
|
+
`,Ue=t.styled.tr.withConfig({shouldForwardProp:J})`
|
|
240
|
+
& > td {
|
|
241
|
+
transition: background-color .1s ease, color .1s ease;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
${e=>Object.entries(e.theme.palette.pane).map((([t,n])=>`\n &:nth-child(odd) > td.${t} { \n color: ${n.main.idle.text};\n background-color: ${n.main.idle.background}; \n } \n &:nth-child(even) > td.${t} { \n color: ${n.alternate.idle.text};\n background-color: ${n.alternate.idle.background}; \n } \n \n \n ${!e.disableHover&&`\n &:nth-child(odd):hover > td.${t} {\n color: ${n.main.hover.text};\n background-color: ${n.main.hover.background}; \n }\n &:nth-child(even):hover > td.${t} {\n color: ${n.alternate.hover.text};\n background-color: ${n.alternate.hover.background}; \n }\n `} \n `))}
|
|
245
|
+
`,Ye=t.styled.td.withConfig({shouldForwardProp:J})`
|
|
246
|
+
border-top: 1px solid rgba(34,36,38,.1);
|
|
247
|
+
border-right: 1px solid rgba(34,36,38,.1);
|
|
248
|
+
padding: ${e=>e.theme.spacing(2,3)};
|
|
249
|
+
|
|
250
|
+
&:last-of-type {
|
|
251
|
+
border-right: 0;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
${e=>se(e,{width:e=>t.css`width: ${e};`})}
|
|
255
|
+
`,Xe=t.styled.th.withConfig({shouldForwardProp:J})`
|
|
256
|
+
border-right: 1px solid rgba(34,36,38,.1);
|
|
257
|
+
text-align: left;
|
|
258
|
+
padding: ${e=>e.theme.spacing(2,3)};
|
|
259
|
+
font-weight: 700;
|
|
260
|
+
transition: background-color .1s ease, color .1s ease;
|
|
261
|
+
|
|
262
|
+
&:last-of-type {
|
|
263
|
+
border-right: 0;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
${e=>!!e.variant&&t.css`
|
|
267
|
+
color: ${e.theme.palette.pane[e.variant].main.idle.text};
|
|
268
|
+
background-color: ${e.theme.palette.pane[e.variant].main.idle.background};
|
|
269
|
+
|
|
270
|
+
&:hover {
|
|
271
|
+
color: ${e.theme.palette.pane[e.variant].main.hover.text};
|
|
272
|
+
background-color: ${e.theme.palette.pane[e.variant].main.hover.background};
|
|
273
|
+
}
|
|
274
|
+
`}
|
|
275
|
+
|
|
276
|
+
${e=>e.width?`width: ${e.width};`:""}
|
|
277
|
+
|
|
278
|
+
${e=>e.sortable&&`\n cursor: pointer;\n user-select: none;\n \n &:hover { \n background-color: ${e.theme.palette.pane.basic.main.hover.background}; \n } \n `}
|
|
279
|
+
|
|
280
|
+
${e=>e.sortDirection&&` \n position:relative;\n \n &:after {\n content: " ";\n position: absolute; \n right: 15px;\n top: 50%;\n \n height: 0;\n width: 0;\n border: 5px solid transparent;\n \n ${"asc"===e.sortDirection?"\n border-top-color: #000;\n transform: translateY(-25%);\n ":"\n border-bottom-color: #000;\n transform: translateY(-75%);\n "} \n } \n `}
|
|
281
|
+
`,Je=t=>e.createElement(We,Object.assign({},t));Je.Row=Ue,Je.HeadCell=Xe,Je.Cell=t=>{var{variant:n,className:r}=t,o=a(t,["variant","className"]);return e.createElement(Ye,Object.assign({className:`${r||""} ${n||"basic"}`},o))};const Ke=t.styled(Je.Cell)`
|
|
282
|
+
${e=>e.firstRow&&t.css` border-top: 0px !important;`}
|
|
283
|
+
${e=>e.width&&t.css` width: ${e.width};`}
|
|
284
|
+
vertical-align: top;
|
|
285
|
+
`,Qe=t.styled.div`
|
|
286
|
+
position: relative;
|
|
287
|
+
`,Ze=t.styled.span.withConfig({shouldForwardProp:J})`
|
|
288
|
+
border-radius: 4px;
|
|
289
|
+
border: 1px solid rgba(34,36,38,.15);
|
|
290
|
+
position: absolute;
|
|
291
|
+
box-shadow: 0 8px 8px 0 rgba(34,36,38,.15);
|
|
292
|
+
background-color: ${e=>e.theme.palette.common.white};
|
|
293
|
+
z-index: 100;
|
|
294
|
+
|
|
295
|
+
${e=>"right"===e.align?t.css`right: 0;`:t.css`left: 0;`}
|
|
296
|
+
`,et=t.styled.ul`
|
|
297
|
+
list-style: none;
|
|
298
|
+
margin: 0;
|
|
299
|
+
padding: ${e=>e.theme.spacing(2,0)};
|
|
300
|
+
`,tt=t.styled.li`
|
|
301
|
+
cursor: pointer;
|
|
302
|
+
padding: ${e=>e.theme.spacing(0,3)};
|
|
303
|
+
&:hover {
|
|
304
|
+
background-color: #ddd;
|
|
305
|
+
}
|
|
306
|
+
`,nt=t.styled.input`
|
|
307
|
+
display: none;
|
|
308
|
+
`,rt=t.styled.div.withConfig({shouldForwardProp:J})`
|
|
309
|
+
display: flex;
|
|
310
|
+
flex-direction: column;
|
|
311
|
+
align-items: center;
|
|
312
|
+
justify-content: center;
|
|
313
|
+
border-radius: 4px;
|
|
314
|
+
height: ${e=>e.theme.spacing(25)};
|
|
315
|
+
|
|
316
|
+
border-radius: 4px;
|
|
317
|
+
border: 1px solid rgba(34,36,38,.15);
|
|
318
|
+
|
|
319
|
+
& > * {
|
|
320
|
+
pointerEvents: none;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
${e=>e.isReadyToDrop&&t.css`
|
|
324
|
+
background-color: #FAFAFA;
|
|
325
|
+
`}
|
|
326
|
+
`,at=t.styled(ce)`
|
|
327
|
+
width: 300px;
|
|
328
|
+
`,ot={laptop:1},it={mobile:1,laptop:0},lt={laptop:1},st=t=>{var{stretch:n,laptopWidth:r}=t,o=a(t,["stretch","laptopWidth"]);const i=e.useMemo((()=>({laptop:r})),[r]);return e.createElement(ce,Object.assign({flexGrow:n?lt:void 0,width:i,pt:it,pb:it,pl:ot,pr:ot},o))},ct={laptop:-1},dt={mobile:-1,laptop:0},pt={mobile:"block",laptop:"flex"},ut=t.styled(ce)`
|
|
329
|
+
float: left;
|
|
330
|
+
|
|
331
|
+
height: 100%;
|
|
332
|
+
width: 100%;
|
|
333
|
+
|
|
334
|
+
background-color: #243646;
|
|
335
|
+
|
|
336
|
+
position: fixed;
|
|
337
|
+
top: 0;
|
|
338
|
+
left: 0;
|
|
339
|
+
right: 0;
|
|
340
|
+
bottom: 0;
|
|
341
|
+
|
|
342
|
+
z-index: 900;
|
|
343
|
+
|
|
344
|
+
display: ${e=>e.isMobileMenuOpen?"block":"none"};
|
|
345
|
+
pointer-events: auto;
|
|
346
|
+
|
|
347
|
+
${ie("laptop",t.css`
|
|
348
|
+
position: static;
|
|
349
|
+
display: block;
|
|
350
|
+
width: auto;
|
|
351
|
+
min-width: ${e=>{var t;return e.theme.spacing(null!==(t=e.minWidth)&&void 0!==t?t:75)}};
|
|
352
|
+
box-shadow: 2px 0px 6px -1px rgba(0,0,0,0.74);
|
|
353
|
+
|
|
354
|
+
transition: transform .1s ease-out;
|
|
355
|
+
transform: ${e=>e.isDesktopMenuOpen?"transform: translateX(0);":t.css`translateX(calc(-100% + ${e=>e.theme.spacing(15)}));`};
|
|
356
|
+
|
|
357
|
+
& ul {
|
|
358
|
+
opacity: ${e=>e.isDesktopMenuOpen?"1":"0"};
|
|
359
|
+
}
|
|
360
|
+
`)}
|
|
361
|
+
`,ft=t=>{const{closeSideMenu:n,openSideMenu:r,isSideMenuOpen:a}=V();return e.createElement(ut,Object.assign({isDesktopMenuOpen:a},t,{onMouseEnter:r,onMouseLeave:n}))},mt=t.styled(ce)`
|
|
362
|
+
background-color: ${e=>e.theme.palette.common.white};
|
|
363
|
+
border-top: 1px solid #DDDDDD;
|
|
364
|
+
box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.04);
|
|
365
|
+
box-sizing: border-box;
|
|
366
|
+
`,ht=({children:t})=>e.createElement(mt,{pt:2,pb:2,pr:5,pl:{mobile:5,laptop:20}},t),gt=t.styled(ce)`
|
|
367
|
+
overflow-x: auto;
|
|
368
|
+
overflow-y: hidden;
|
|
369
|
+
`,bt=t.styled(qe)`
|
|
370
|
+
margin-right: ${e=>e.theme.spacing(3)};
|
|
371
|
+
${ie("laptop","display: none;")}
|
|
372
|
+
`,vt=t.styled.ul`
|
|
373
|
+
padding: 0;
|
|
374
|
+
margin: 0;
|
|
375
|
+
list-style: none;
|
|
376
|
+
`,yt=t.styled.li.withConfig({shouldForwardProp:J})`
|
|
377
|
+
padding: ${e=>e.theme.spacing(.5,5)};
|
|
378
|
+
|
|
379
|
+
${e=>e.isOpen&&t.css`
|
|
380
|
+
border-left: ${e.theme.spacing(1)} solid ${e.theme.palette.colors.blue};
|
|
381
|
+
background: #293846;
|
|
382
|
+
|
|
383
|
+
& > * {
|
|
384
|
+
margin-left: ${e.theme.spacing(-1)};
|
|
385
|
+
}
|
|
386
|
+
`}
|
|
387
|
+
|
|
388
|
+
& button:hover, & button:active, & button:focus {
|
|
389
|
+
color: ${e=>e.theme.palette.common.white} !important;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
& button {
|
|
393
|
+
width: 100%;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
${e=>e.isActive&&t.css`
|
|
397
|
+
& button {
|
|
398
|
+
color: ${e.theme.palette.common.white};
|
|
399
|
+
}
|
|
400
|
+
`}
|
|
401
|
+
`,xt=t.styled(qe)`
|
|
402
|
+
${ie("laptop","display: none;")}
|
|
403
|
+
`,kt=t.styled(ce)`
|
|
404
|
+
display: none;
|
|
405
|
+
${ie("laptop","display: flex;")}
|
|
406
|
+
|
|
407
|
+
height: 100%;
|
|
408
|
+
flex-direction: row;
|
|
409
|
+
align-items: center;
|
|
410
|
+
|
|
411
|
+
width: ${e=>e.theme.spacing(15)};
|
|
412
|
+
|
|
413
|
+
& > svg {
|
|
414
|
+
margin: 0 auto;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
${ut}:hover & {
|
|
418
|
+
display:none;
|
|
419
|
+
}
|
|
420
|
+
`,wt=t.styled(ce)`
|
|
421
|
+
box-sizing: border-box;
|
|
422
|
+
color: ${e=>e.theme.palette.button.text.idle.text};
|
|
423
|
+
font-weight: bold;
|
|
424
|
+
|
|
425
|
+
display: flex;
|
|
426
|
+
text-align: center;
|
|
427
|
+
|
|
428
|
+
font-size: 14px;
|
|
429
|
+
font-weight: bold;
|
|
430
|
+
letter-spacing: 1px;
|
|
431
|
+
line-height: 1em;
|
|
432
|
+
|
|
433
|
+
background-color: rgba(0,0,0,.2);
|
|
434
|
+
|
|
435
|
+
${ie("laptop",t.css`
|
|
436
|
+
min-height: ${e=>e.theme.spacing(12)};
|
|
437
|
+
`)}
|
|
438
|
+
`,Et=()=>{const[t,n]=e.useState(window.innerWidth);e.useEffect((()=>{const e=()=>n(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);return e.useMemo((()=>({isMobile:t>=oe.mobile,isTablet:t>=oe.tablet,isLaptop:t>=oe.laptop,isDesktop:t>=oe.desktop})),[t])},$t=t.styled.div`
|
|
439
|
+
display: flex;
|
|
440
|
+
`,Ct=t.styled.button.withConfig({shouldForwardProp:J})`
|
|
441
|
+
user-select:none;
|
|
442
|
+
cursor: pointer;
|
|
443
|
+
|
|
444
|
+
min-height: ${e=>e.theme.spacing(8)};
|
|
445
|
+
padding: .2em 1.3em .2em;
|
|
446
|
+
margin: 0;
|
|
447
|
+
line-height: 1em;
|
|
448
|
+
outline: 0;
|
|
449
|
+
border: 1px solid rgba(34,36,38,.15);
|
|
450
|
+
|
|
451
|
+
font-family: Lato, "Helvetica Neue", Arial, Helvetica, sans-serif;
|
|
452
|
+
background-color: ${e=>e.active?"#F2F2F2":"#fff"};
|
|
453
|
+
|
|
454
|
+
&:not(:first-of-type) {
|
|
455
|
+
border-left: 0;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
${e=>!e.disabled&&"\n &:hover { \n background-color: #E9E9E9; \n }\n "}
|
|
459
|
+
`,Ot=t.styled.div.withConfig({shouldForwardProp:J})`
|
|
460
|
+
display: flex;
|
|
461
|
+
border-radius: ${e=>e.theme.spacing(1)};
|
|
462
|
+
padding: ${e=>e.theme.spacing(4)};
|
|
463
|
+
background-color: ${e=>e.theme.palette.colors[e.backgroundColor]};
|
|
464
|
+
box-sizing: border-box;
|
|
465
|
+
height: 100%;
|
|
466
|
+
`,_t=t.styled.div`
|
|
467
|
+
text-transform: uppercase;
|
|
468
|
+
color: ${e=>e.theme.palette.common.white};
|
|
469
|
+
font-size: ${e=>e.theme.spacing(3)};
|
|
470
|
+
`,Ft=t.styled.div.withConfig({shouldForwardProp:J})`
|
|
471
|
+
color: ${e=>e.theme.palette.common.white};
|
|
472
|
+
font-weight: bold;
|
|
473
|
+
font-size: ${e=>e.theme.spacing(e.smallerValue?5.5:7.5)};
|
|
474
|
+
`,St=t.styled.div`
|
|
475
|
+
margin: ${e=>e.theme.spacing(1)} 0 auto 0;
|
|
476
|
+
& svg {
|
|
477
|
+
height: 100%;
|
|
478
|
+
width: ${e=>e.theme.spacing(10)};
|
|
479
|
+
color: white;
|
|
480
|
+
}
|
|
481
|
+
`,Pt=t.styled(ce)`
|
|
482
|
+
|
|
483
|
+
padding: ${e=>e.theme.spacing(2.5,5)};
|
|
484
|
+
|
|
485
|
+
${e=>!e.isActive&&t.css`
|
|
486
|
+
cursor: pointer;
|
|
487
|
+
color: #337ab7;
|
|
488
|
+
&:hover,
|
|
489
|
+
&:focus {
|
|
490
|
+
color: #23527c;
|
|
491
|
+
text-decoration: underline;
|
|
492
|
+
}
|
|
493
|
+
`}
|
|
494
|
+
|
|
495
|
+
${e=>e.isActive&&t.css`
|
|
496
|
+
font-weight: bold;
|
|
497
|
+
border: 1px solid rgba(34,36,38,.15);
|
|
498
|
+
border-bottom: 0px;
|
|
499
|
+
margin-bottom: -1px;
|
|
500
|
+
border-top-left-radius: 4px;
|
|
501
|
+
border-top-right-radius: 4px;
|
|
502
|
+
background-color: ${e=>e.theme.palette.common.white};
|
|
503
|
+
`}
|
|
504
|
+
|
|
505
|
+
${e=>e.variant&&`\n font-weight: bold;\n color: ${e.theme.palette.form[e.variant]};\n &:hover {\n color: ${e.theme.palette.form[e.variant]};\n }\n `}
|
|
506
|
+
|
|
507
|
+
`,jt=t.styled(ce)`
|
|
508
|
+
background-color: ${e=>e.theme.palette.common.white};
|
|
509
|
+
border: 1px solid rgba(34,36,38,.15);
|
|
510
|
+
border-top: 0px;
|
|
511
|
+
`,At=t.styled(ce)`
|
|
512
|
+
display: flex;
|
|
513
|
+
border-bottom: 1px solid rgba(34,36,38,.15);
|
|
514
|
+
`,zt=t.styled(Oe)`
|
|
515
|
+
box-shadow: none;
|
|
516
|
+
`,Mt=t.styled(ce)`
|
|
517
|
+
display: flex;
|
|
518
|
+
|
|
519
|
+
&:last-of-type .line:before {
|
|
520
|
+
background: none;
|
|
521
|
+
}
|
|
522
|
+
`,Tt=t.styled(ce)`
|
|
523
|
+
position: relative;
|
|
524
|
+
margin-right: ${e=>e.theme.spacing(4)};
|
|
525
|
+
top: 4px;
|
|
526
|
+
|
|
527
|
+
&:before {
|
|
528
|
+
background: #e7eaec;
|
|
529
|
+
content: '';
|
|
530
|
+
position: absolute;
|
|
531
|
+
top: 0;
|
|
532
|
+
left: ${e=>e.theme.spacing(4.5)};
|
|
533
|
+
height: 100%;
|
|
534
|
+
width: ${e=>e.theme.spacing(1)};
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
`,Rt=t.styled.div.withConfig({shouldForwardProp:J})`
|
|
538
|
+
position: relative;
|
|
539
|
+
background-color: ${e=>e.color};
|
|
540
|
+
color: #fff;
|
|
541
|
+
|
|
542
|
+
left: 0;
|
|
543
|
+
width: ${e=>e.theme.spacing(10)};
|
|
544
|
+
height: ${e=>e.theme.spacing(10)};
|
|
545
|
+
border-radius: 50%;
|
|
546
|
+
font-size: ${e=>e.theme.spacing(4)};
|
|
547
|
+
|
|
548
|
+
& > * {
|
|
549
|
+
position: absolute;
|
|
550
|
+
top: 50%;
|
|
551
|
+
left: 50%;
|
|
552
|
+
transform: translate(-50%, -50%);
|
|
553
|
+
}
|
|
554
|
+
`,It=t.styled(ce)`
|
|
555
|
+
background-color: #FFFFFF;
|
|
556
|
+
border-bottom: 1px solid #DDDDDD;
|
|
557
|
+
box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.04);
|
|
558
|
+
box-sizing: border-box;
|
|
559
|
+
`,Dt=({left:t,right:n})=>e.createElement(It,null,e.createElement(ce,{display:"flex",alignItems:"center",pb:1,pt:1,pr:5,pl:{mobile:5,laptop:20}},e.createElement(ce,{flexGrow:1,display:"flex",pl:2},t),e.createElement(ce,{flexGrow:1,display:"flex",justifyContent:"flex-end"},n))),Lt=t.styled.label`
|
|
560
|
+
position: relative;
|
|
561
|
+
`,Bt=t.styled.input.withConfig({shouldForwardProp:J})`
|
|
562
|
+
position: absolute;
|
|
563
|
+
top: 0;
|
|
564
|
+
left: 0;
|
|
565
|
+
|
|
566
|
+
width: 17px;
|
|
567
|
+
height: 17px;
|
|
568
|
+
|
|
569
|
+
z-index: 99;
|
|
570
|
+
opacity: 0;
|
|
571
|
+
margin-right: ${e=>e.theme.spacing(2)};
|
|
572
|
+
transform: translateY(1px);
|
|
573
|
+
|
|
574
|
+
&~span {
|
|
575
|
+
user-select: none;
|
|
576
|
+
padding-left: 1.85714em;
|
|
577
|
+
cursor: pointer;
|
|
578
|
+
font-size: .92857143em;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
&~span:before, &~span:after {
|
|
582
|
+
position: absolute;
|
|
583
|
+
top: 0;
|
|
584
|
+
left: 0;
|
|
585
|
+
width: 17px;
|
|
586
|
+
height: 17px;
|
|
587
|
+
line-height: 17px;
|
|
588
|
+
content: '';
|
|
589
|
+
border-radius: 4px;
|
|
590
|
+
border: 1px solid rgba(34,36,38,.15);
|
|
591
|
+
z-index:0;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
&:checked~span {
|
|
595
|
+
font-style: italic;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
&:checked~span:before {
|
|
599
|
+
background: #fff;
|
|
600
|
+
border-color: rgba(34,36,38,.35);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
&:checked~span:after {
|
|
604
|
+
font-style: normal;
|
|
605
|
+
text-align: center;
|
|
606
|
+
content: '\\2714';
|
|
607
|
+
opacity: 1;
|
|
608
|
+
color: ${e=>e.theme.palette.common.black}
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
&:focus~span:before, &:focus~span:after {
|
|
612
|
+
border-color: #85b7d9;
|
|
613
|
+
border-radius: 4px;
|
|
614
|
+
background: #fff;
|
|
615
|
+
box-shadow: 0 0 0 0 rgba(34,36,38,.35) inset;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
&.error~span {
|
|
619
|
+
color: ${e=>e.theme.palette.form.error};
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
&.error~span:before, &.error~span:after {
|
|
623
|
+
background: #fff6f6;
|
|
624
|
+
border-color: #e0b4b4;
|
|
625
|
+
color: #9f3a38;
|
|
626
|
+
}
|
|
627
|
+
`,Ht=t.styled.span.withConfig({shouldForwardProp:J})`
|
|
628
|
+
${e=>e.dimmed?t.css`color: #999c9e;`:""}
|
|
629
|
+
`,Nt=e.forwardRef(((t,n)=>{var{options:r,spacing:o=1,name:i,dimmed:l}=t,s=a(t,["options","spacing","name","dimmed"]);return e.createElement(e.Fragment,null,Object.entries(r).map((([t,r])=>e.createElement(ce,{key:t,mt:o,mb:o},e.createElement(Lt,{key:t},e.createElement(Bt,Object.assign({type:"checkbox",value:t,name:i,ref:n},s)),e.createElement(Ht,{dimmed:l},r))))))})),qt=t.css`
|
|
630
|
+
padding: .67857143em 1em;
|
|
631
|
+
line-height: 1.21428571em;
|
|
632
|
+
border-radius: 4px;
|
|
633
|
+
border: 1px solid rgba(34,36,38,.15);
|
|
634
|
+
|
|
635
|
+
color: ${e=>e.theme.palette.common.black};
|
|
636
|
+
font-family: Lato, "Helvetica Neue", Arial, Helvetica, sans-serif;
|
|
637
|
+
|
|
638
|
+
font-size: 1em;
|
|
639
|
+
outline: none;
|
|
640
|
+
|
|
641
|
+
&:disabled, &:read-only {
|
|
642
|
+
background-color: #FAFAFA;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
&:focus {
|
|
646
|
+
color: rgba(0,0,0,.95);
|
|
647
|
+
border-color: #85b7d9;
|
|
648
|
+
background: #fff;
|
|
649
|
+
box-shadow: 0 0 0 0 rgba(34,36,38,.35) inset;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
&.error {
|
|
653
|
+
background: #fff6f6;
|
|
654
|
+
border-color: #e0b4b4;
|
|
655
|
+
color: #9f3a38;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
&.error:focus {
|
|
659
|
+
background: #fff6f6;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
&:focus::placeholder {
|
|
663
|
+
color:rgba(115,115,115,.87)
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
&::placeholder {
|
|
667
|
+
color:rgba(191,191,191,.87);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
&.error::placeholder {
|
|
671
|
+
color: #e7bdbc;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
&.error:focus::placeholder {
|
|
675
|
+
color: #da9796;
|
|
676
|
+
}
|
|
677
|
+
`,Gt=t.styled.input.withConfig({shouldForwardProp:J})`
|
|
678
|
+
${qt}
|
|
679
|
+
`,Vt=t.styled.textarea.withConfig({shouldForwardProp:J})`
|
|
680
|
+
${qt}
|
|
681
|
+
height: 100%;
|
|
682
|
+
`,Wt=e.forwardRef(((t,n)=>{var{multiline:r=!1}=t,o=a(t,["multiline"]);return r?e.createElement(Vt,Object.assign({ref:n},o)):e.createElement(Gt,Object.assign({ref:n,type:"text"},o))})),Ut=t.styled.div`
|
|
683
|
+
position: relative;
|
|
684
|
+
display: flex;
|
|
685
|
+
`,Yt=t.styled.input.withConfig({shouldForwardProp:J})`
|
|
686
|
+
position: absolute;
|
|
687
|
+
left: 0;
|
|
688
|
+
right: 0;
|
|
689
|
+
top: 0;
|
|
690
|
+
bottom: 0;
|
|
691
|
+
width: 100%;
|
|
692
|
+
opacity:0;
|
|
693
|
+
`,Xt=t.styled(qe)`
|
|
694
|
+
height: 40px;
|
|
695
|
+
|
|
696
|
+
.has-error & {
|
|
697
|
+
background: #fff6f6;
|
|
698
|
+
border-color: #e0b4b4;
|
|
699
|
+
color: #9f3a38;
|
|
700
|
+
}
|
|
701
|
+
`,Jt=t.styled(Wt)`
|
|
702
|
+
flex: 1;
|
|
703
|
+
padding-right: ${e=>e.theme.spacing(8)}
|
|
704
|
+
`,Kt=t.styled.button`
|
|
705
|
+
background-color: transparent;
|
|
706
|
+
border: 0;
|
|
707
|
+
outline: 0;
|
|
708
|
+
padding: 0;
|
|
709
|
+
|
|
710
|
+
position: absolute;
|
|
711
|
+
right: 0;
|
|
712
|
+
height: 100%;
|
|
713
|
+
|
|
714
|
+
cursor: pointer;
|
|
715
|
+
|
|
716
|
+
&:after {
|
|
717
|
+
box-sizing: border-box;
|
|
718
|
+
|
|
719
|
+
color: rgba(0, 0, 0, .3);
|
|
720
|
+
content: "×";
|
|
721
|
+
|
|
722
|
+
text-align: center;
|
|
723
|
+
vertical-align: middle;
|
|
724
|
+
display: table-cell;
|
|
725
|
+
|
|
726
|
+
font-size: 20px;
|
|
727
|
+
height: 38px;
|
|
728
|
+
width: 38px;
|
|
729
|
+
line-height: 38px;
|
|
730
|
+
padding: 0 8px;
|
|
731
|
+
}
|
|
732
|
+
`,Qt=e.forwardRef(((t,n)=>{var{className:r,placeholder:o,chooseFileLabel:i="Choose file",changeFileLabel:l="Change file",onClear:s}=t,c=a(t,["className","placeholder","chooseFileLabel","changeFileLabel","onClear"]);const[d,p]=e.useState(),[u,f]=e.useState(""),m=e.useCallback((e=>{var t;const n=(null==e?void 0:e.target).files;f((null===(t=null==n?void 0:n[0])||void 0===t?void 0:t.name)||"")}),[]),h=e.useCallback((()=>{d&&(d.value="",d.files=null,d.dispatchEvent(new Event("change",{bubbles:!0})),s&&s())}),[d,s]),g=e.useMemo((()=>e=>{null==e||e.addEventListener("change",m),p(e),"function"==typeof n&&(null==n||n(e))}),[n,m]);return e.createElement(Ut,null,e.createElement(Yt,Object.assign({type:"file",ref:g},c)),e.createElement(Xt,{variant:"basic"},u?l:i),e.createElement(Jt,{placeholder:o,className:r,disabled:!0,value:u}),!!u&&s&&e.createElement(Kt,{"data-testid":"file-clear",onClick:h}))})),Zt=t.styled.div`
|
|
733
|
+
position: relative;
|
|
734
|
+
`,en=t.styled.select.withConfig({shouldForwardProp:J})`
|
|
735
|
+
width: 100%;
|
|
736
|
+
|
|
737
|
+
padding: .67857143em 1em;
|
|
738
|
+
line-height: 1.21428571em;
|
|
739
|
+
border-radius: 4px;
|
|
740
|
+
border: 1px solid rgba(34,36,38,.15);
|
|
741
|
+
|
|
742
|
+
color: ${e=>e.theme.palette.common.black};
|
|
743
|
+
font-family: Lato, "Helvetica Neue", Arial, Helvetica, sans-serif;
|
|
744
|
+
|
|
745
|
+
font-size: 1em;
|
|
746
|
+
outline: none;
|
|
747
|
+
|
|
748
|
+
appearance: none;
|
|
749
|
+
|
|
750
|
+
&.error {
|
|
751
|
+
background: #fff6f6;
|
|
752
|
+
border-color: #e0b4b4;
|
|
753
|
+
color: #9f3a38;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
&.error~div {
|
|
757
|
+
color: #9f3a38;
|
|
758
|
+
}
|
|
759
|
+
`,tn=t.styled.div`
|
|
760
|
+
pointer-events: none;
|
|
761
|
+
padding: 0 1em;
|
|
762
|
+
position:absolute;
|
|
763
|
+
height: 100%;
|
|
764
|
+
top: 0;
|
|
765
|
+
right: 0;
|
|
766
|
+
font-size: 17px;
|
|
767
|
+
line-height: 40px;
|
|
768
|
+
`,nn=e.forwardRef(((t,n)=>{var{options:r}=t,o=a(t,["options"]);const i=Array.isArray(r)?r:Object.entries(r);return e.createElement(Zt,null,e.createElement(en,Object.assign({ref:n},o),i.map((([t,n])=>e.createElement("option",{key:t,value:t},n)))),e.createElement(tn,null,"▾"))})),rn=e=>e.length>=8,an=e=>/\d/.test(e),on=e=>/[a-z]/.test(e)&&/[A-Z]/.test(e),ln=e=>/[-’/`~!#*$@_%+=.,^&(){}[\]|;:”<>?\\]/.test(e),sn=[rn,an,on,ln],cn=sn.length+1,dn=e=>sn.map((t=>t(e))).reduce(((e,t)=>t?e+1:e),1),pn=t.styled.div`
|
|
769
|
+
margin-top: ${e=>e.theme.spacing(1)};
|
|
770
|
+
height: 3px;
|
|
771
|
+
background-color: #f5f5f5;
|
|
772
|
+
border-radius: 4px;
|
|
773
|
+
box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
|
|
774
|
+
`,un=t.styled.div.withConfig({shouldForwardProp:J})`
|
|
775
|
+
width: ${e=>e.score?e.score/cn*100:0}%;
|
|
776
|
+
height: 100%;
|
|
777
|
+
background-color: ${e=>e.score<=2?"#e90f10":e.score<=3?"#ffad00":"#02b502"} ;
|
|
778
|
+
transition: width .6s ease, background-color .6s ease;
|
|
779
|
+
`,fn=e.forwardRef(((t,n)=>{const[r,a]=e.useState(0),o=e.useCallback((e=>{const t=e.target;a(t.value?dn(t.value):0)}),[]),i=e.useMemo((()=>e=>{null==e||e.addEventListener("keyup",o),"function"==typeof n&&(null==n||n(e))}),[n,o]);return e.createElement(e.Fragment,null,e.createElement(Wt,Object.assign({},t,{type:"password",ref:i})),e.createElement(pn,null,e.createElement(un,{score:r})))})),mn=t.styled.div.withConfig({shouldForwardProp:J})`
|
|
780
|
+
margin: 0px 8px;
|
|
781
|
+
|
|
782
|
+
${e=>void 0!==e.rowOffset&&t.css`
|
|
783
|
+
display: flex;
|
|
784
|
+
flex-direction: column;
|
|
785
|
+
margin-bottom: 16px;`}
|
|
786
|
+
|
|
787
|
+
align-self: ${e=>void 0===e.rowOffset?"end":"initial"};
|
|
788
|
+
-ms-grid-row-align: ${e=>void 0===e.rowOffset?"end":"initial"};
|
|
789
|
+
|
|
790
|
+
${e=>se(e,{align:e=>t.css`text-align: ${e};`,position:n=>{var r;return((e,n)=>{const r=[];return void 0===e||(void 0!==e.row&&r.push(t.css`
|
|
791
|
+
grid-row-start: ${2*e.row+1+n};
|
|
792
|
+
-ms-grid-row: ${2*e.row+1+n};
|
|
793
|
+
`),e.rowSpan&&n&&r.push(t.css`
|
|
794
|
+
grid-row-end: span ${2*e.rowSpan-1};
|
|
795
|
+
-ms-grid-row-span: ${2*e.rowSpan-1};
|
|
796
|
+
`),void 0!==e.column&&r.push(t.css`
|
|
797
|
+
grid-column-start: ${e.column+1};
|
|
798
|
+
-ms-grid-column: ${e.column+1};
|
|
799
|
+
`),void 0!==e.columnSpan&&r.push(t.css`
|
|
800
|
+
grid-column-end: span ${e.columnSpan};
|
|
801
|
+
-ms-grid-column-span: ${e.columnSpan};
|
|
802
|
+
`)),r})(n,null!==(r=e.rowOffset)&&void 0!==r?r:0)}})}
|
|
803
|
+
`;mn.displayName="FormGridCell";const hn=t.styled.label.withConfig({shouldForwardProp:J})`
|
|
804
|
+
display: block;
|
|
805
|
+
color: ${e=>e.error?e.theme.palette.form.error:e.theme.palette.common.black} ;
|
|
806
|
+
font-weight: bold;
|
|
807
|
+
margin: ${e=>e.theme.spacing(0,0,1,0)};
|
|
808
|
+
line-height: 1.4em;
|
|
809
|
+
font-size: .92857143em;
|
|
810
|
+
`,gn=t.styled.div.withConfig({shouldForwardProp:J})`
|
|
811
|
+
color: ${e=>e.error?"#da9796;":e.theme.palette.form.hint};
|
|
812
|
+
margin: ${e=>e.theme.spacing(-1,0,1,0)};
|
|
813
|
+
line-height: 1.4em;
|
|
814
|
+
font-size: .92857143em;
|
|
815
|
+
`,bn=t.styled.span.withConfig({shouldForwardProp:J})`
|
|
816
|
+
color: ${e=>e.theme.palette.form.hint};
|
|
817
|
+
`,vn=t.styled.div.withConfig({shouldForwardProp:J})`
|
|
818
|
+
color: ${e=>e.theme.palette.form.error};
|
|
819
|
+
margin: ${e=>e.theme.spacing(1,0,0,0)};
|
|
820
|
+
font-weight: bold;
|
|
821
|
+
font-style: italic;
|
|
822
|
+
line-height: 1.4em;
|
|
823
|
+
font-size: .92857143em;
|
|
824
|
+
`,yn=({position:e,align:t,label:n,hint:r,error:a,isRequired:o})=>({position:e,align:t,label:n,hint:r,error:a,isRequired:o}),xn=({position:t,align:n,label:r,hint:a,error:o,isRequired:i,children:l})=>e.createElement(e.Fragment,null,e.createElement(mn,{position:t,align:n,className:"form-grid-cell__label-hint"},r&&e.createElement(hn,{error:o},r,i&&e.createElement(bn,null," *")),a&&e.createElement(gn,{error:o},a)),e.createElement(mn,{position:t,align:n,rowOffset:1,className:pe({"form-grid-cell__field-error":!0,"has-error":!!o})},l,o&&e.createElement(vn,null,o))),kn=t.styled.div.withConfig({shouldForwardProp:J})`
|
|
825
|
+
margin: 0 -8px -16px -8px;
|
|
826
|
+
|
|
827
|
+
display: -ms-grid;
|
|
828
|
+
display: grid;
|
|
829
|
+
|
|
830
|
+
-ms-grid-columns: 1fr;
|
|
831
|
+
|
|
832
|
+
${e=>se(e,{columns:e=>t.css`
|
|
833
|
+
-ms-grid-columns: ${e};
|
|
834
|
+
grid-template-columns: ${e};
|
|
835
|
+
`})}
|
|
836
|
+
`;kn.displayName="FormGrid";const wn=t.styled(ce)`
|
|
837
|
+
background-color: #F3F3F4;
|
|
838
|
+
`,En=t.styled(ce)`
|
|
839
|
+
position: relative;
|
|
840
|
+
`,$n=t.styled(ce)`
|
|
841
|
+
position: absolute;
|
|
842
|
+
height: 100%;
|
|
843
|
+
z-index: 50;
|
|
844
|
+
pointer-events: none;
|
|
845
|
+
`,Cn=t.styled(ce)`
|
|
846
|
+
height: 100%;
|
|
847
|
+
`,On=t.styled(ce)`
|
|
848
|
+
background-color: ${e=>e.baseColor||"white"};
|
|
849
|
+
position: absolute;
|
|
850
|
+
min-width: 100%;
|
|
851
|
+
min-height: 100%;
|
|
852
|
+
`,_n=t.styled.div.withConfig({shouldForwardProp:J})`
|
|
853
|
+
position: absolute;
|
|
854
|
+
top: 0;
|
|
855
|
+
left: 0;
|
|
856
|
+
width: 100%;
|
|
857
|
+
height: 100%;
|
|
858
|
+
|
|
859
|
+
opacity: ${e=>{var t;return null!==(t=e.opacity)&&void 0!==t?t:1}} ;
|
|
860
|
+
background: url("${e=>e.imageUrl}");
|
|
861
|
+
background-size: cover;
|
|
862
|
+
`,Fn=t.styled(Q)`
|
|
863
|
+
z-index: 10;
|
|
864
|
+
margin: auto auto;
|
|
865
|
+
`,Sn=t.styled(Oe)`
|
|
866
|
+
box-shadow: 0 8px 8px 0 rgba(34,36,38,.15);
|
|
867
|
+
min-width: 280px;
|
|
868
|
+
`,Pn=t.styled.img`
|
|
869
|
+
display:none;
|
|
870
|
+
position: absolute;
|
|
871
|
+
left: 0;
|
|
872
|
+
top: ${e=>e.theme.spacing(8)};
|
|
873
|
+
${ie("tablet","display: block;")}
|
|
874
|
+
`;var jn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function An(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zn=1/0,Mn=9007199254740991,Tn=17976931348623157e292,Rn=NaN,In="[object Function]",Dn="[object GeneratorFunction]",Ln="[object Symbol]",Bn=/^\s+|\s+$/g,Hn=/^[-+]0x[0-9a-f]+$/i,Nn=/^0b[01]+$/i,qn=/^0o[0-7]+$/i,Gn=/^(?:0|[1-9]\d*)$/,Vn=parseInt,Wn=Object.prototype.toString,Un=Math.ceil,Yn=Math.max;function Xn(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(a);++r<a;)o[r]=e[r+t];return o}function Jn(e,t,n){if(!Kn(n))return!1;var r=typeof t;return!!("number"==r?function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Mn}(e.length)&&!function(e){var t=Kn(e)?Wn.call(e):"";return t==In||t==Dn}(e)}(n)&&function(e,t){return!!(t=null==t?Mn:t)&&("number"==typeof e||Gn.test(e))&&e>-1&&e%1==0&&e<t}(t,n.length):"string"==r&&t in n)&&function(e,t){return e===t||e!=e&&t!=t}(n[t],e)}function Kn(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var Qn=An((function(e,t,n){t=(n?Jn(e,t,n):void 0===t)?1:Yn(function(e){var t=function(e){if(!e)return 0===e?e:0;if(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&Wn.call(e)==Ln}(e))return Rn;if(Kn(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Kn(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Bn,"");var n=Nn.test(e);return n||qn.test(e)?Vn(e.slice(2),n?2:8):Hn.test(e)?Rn:+e}(e),e===zn||e===-zn){return(e<0?-1:1)*Tn}return e==e?e:0}(e),n=t%1;return t==t?n?t-n:t:0}(t),0);var r=e?e.length:0;if(!r||t<1)return[];for(var a=0,o=0,i=Array(Un(r/t));a<r;)i[o++]=Xn(e,a,a+=t);return i}));class Zn{constructor(e){this.grid=e}getValues(){return this.grid}getDistinctValues(){const e=[];return this.grid.forEach((t=>{t.forEach((t=>{e.includes(t)||e.push(t)}))})),e}sliceArea(e,t){if(e.x>t.x||e.y>t.y)throw new Error("Coordinates are mixed up. Please ensure topLeft is actually in the top-left corner. And bottomRight is actually in the bottom-right corner");return new Zn(this.grid.slice(e.y,t.y+1).map((n=>n.slice(e.x,t.x+1))))}getCoordinatesForValue(e){const t=[],n=[];return this.grid.forEach(((r,a)=>{r.forEach(((r,o)=>{r===e&&(t.push(o),n.push(a))}))})),{topLeft:{x:Math.min(...t),y:Math.min(...n)},bottomRight:{x:Math.max(...t),y:Math.max(...n)}}}}var er="__lodash_hash_undefined__",tr=9007199254740991,nr="[object Arguments]",rr="[object Function]",ar="[object GeneratorFunction]",or=/^\[object .+?Constructor\]$/,ir="object"==typeof jn&&jn&&jn.Object===Object&&jn,lr="object"==typeof self&&self&&self.Object===Object&&self,sr=ir||lr||Function("return this")();function cr(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,r){var a=e.length,o=n+(r?1:-1);for(;r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}(e,ur,n);var r=n-1,a=e.length;for(;++r<a;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function dr(e,t,n){for(var r=-1,a=e?e.length:0;++r<a;)if(n(t,e[r]))return!0;return!1}function pr(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}function ur(e){return e!=e}function fr(e,t){return e.has(t)}var mr,hr=Array.prototype,gr=Function.prototype,br=Object.prototype,vr=sr["__core-js_shared__"],yr=(mr=/[^.]+$/.exec(vr&&vr.keys&&vr.keys.IE_PROTO||""))?"Symbol(src)_1."+mr:"",xr=gr.toString,kr=br.hasOwnProperty,wr=br.toString,Er=RegExp("^"+xr.call(kr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$r=sr.Symbol,Cr=br.propertyIsEnumerable,Or=hr.splice,_r=$r?$r.isConcatSpreadable:void 0,Fr=Math.max,Sr=Br(sr,"Map"),Pr=Br(Object,"create");function jr(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ar(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zr(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Mr(e){var t=-1,n=e?e.length:0;for(this.__data__=new zr;++t<n;)this.add(e[t])}function Tr(e,t){for(var n,r,a=e.length;a--;)if((n=e[a][0])===(r=t)||n!=n&&r!=r)return a;return-1}function Rr(e,t,n,r){var a,o=-1,i=cr,l=!0,s=e.length,c=[],d=t.length;if(!s)return c;n&&(t=function(e,t){for(var n=-1,r=e?e.length:0,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}(t,(a=n,function(e){return a(e)}))),r?(i=dr,l=!1):t.length>=200&&(i=fr,l=!1,t=new Mr(t));e:for(;++o<s;){var p=e[o],u=n?n(p):p;if(p=r||0!==p?p:0,l&&u==u){for(var f=d;f--;)if(t[f]===u)continue e;c.push(p)}else i(t,u,r)||c.push(p)}return c}function Ir(e,t,n,r,a){var o=-1,i=e.length;for(n||(n=Hr),a||(a=[]);++o<i;){var l=e[o];t>0&&n(l)?t>1?Ir(l,t-1,n,r,a):pr(a,l):r||(a[a.length]=l)}return a}function Dr(e){if(!Xr(e)||(t=e,yr&&yr in t))return!1;var t,n=Yr(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Er:or;return n.test(function(e){if(null!=e){try{return xr.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function Lr(e,t){var n,r,a=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function Br(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Dr(n)?n:void 0}function Hr(e){return Vr(e)||function(e){return Ur(e)&&kr.call(e,"callee")&&(!Cr.call(e,"callee")||wr.call(e)==nr)}(e)||!!(_r&&e&&e[_r])}jr.prototype.clear=function(){this.__data__=Pr?Pr(null):{}},jr.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},jr.prototype.get=function(e){var t=this.__data__;if(Pr){var n=t[e];return n===er?void 0:n}return kr.call(t,e)?t[e]:void 0},jr.prototype.has=function(e){var t=this.__data__;return Pr?void 0!==t[e]:kr.call(t,e)},jr.prototype.set=function(e,t){return this.__data__[e]=Pr&&void 0===t?er:t,this},Ar.prototype.clear=function(){this.__data__=[]},Ar.prototype.delete=function(e){var t=this.__data__,n=Tr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Or.call(t,n,1),!0)},Ar.prototype.get=function(e){var t=this.__data__,n=Tr(t,e);return n<0?void 0:t[n][1]},Ar.prototype.has=function(e){return Tr(this.__data__,e)>-1},Ar.prototype.set=function(e,t){var n=this.__data__,r=Tr(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},zr.prototype.clear=function(){this.__data__={hash:new jr,map:new(Sr||Ar),string:new jr}},zr.prototype.delete=function(e){return Lr(this,e).delete(e)},zr.prototype.get=function(e){return Lr(this,e).get(e)},zr.prototype.has=function(e){return Lr(this,e).has(e)},zr.prototype.set=function(e,t){return Lr(this,e).set(e,t),this},Mr.prototype.add=Mr.prototype.push=function(e){return this.__data__.set(e,er),this},Mr.prototype.has=function(e){return this.__data__.has(e)};var Nr,qr,Gr=(Nr=function(e,t){return Ur(e)?Rr(e,Ir(t,1,Ur,!0)):[]},qr=Fr(void 0===qr?Nr.length-1:qr,0),function(){for(var e=arguments,t=-1,n=Fr(e.length-qr,0),r=Array(n);++t<n;)r[t]=e[qr+t];t=-1;for(var a=Array(qr+1);++t<qr;)a[t]=e[t];return a[qr]=r,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(Nr,this,a)});var Vr=Array.isArray;function Wr(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=tr}(e.length)&&!Yr(e)}function Ur(e){return function(e){return!!e&&"object"==typeof e}(e)&&Wr(e)}function Yr(e){var t=Xr(e)?wr.call(e):"";return t==rr||t==ar}function Xr(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var Jr=An(Gr);const Kr=(e,t)=>{const n=[...Array(e)].map((e=>"1fr"));return t&&n.push("auto"),n.join(" ")};class Qr{constructor(e,t={}){this.fields=e,this.columns=t}setGrid(e,t,r){"object"==typeof this.columns&&(this.columns[e]=t);const a=new Zn(r);((e,t)=>{const n=t.getDistinctValues();if(n.length<e.length)throw new Error(`Not all given fields are present in the grid. Please add these fields ${Jr(n,e).map((e=>`"${e}"`)).join(", ")}`);n.forEach((n=>{if(!e.includes(n))throw new Error(`${n} is not an existing field. Existing fields are ${e.map((e=>`"${e}"`)).join(", ")}.`);const r=t.getCoordinatesForValue(n),a=t.sliceArea(r.topLeft,r.bottomRight).getDistinctValues();if(1!==a.length||a[0]!==n)throw new Error(`Grid contains an unsupported shape. Please make sure "${n}" has a rectangular shape.`)}))})(Object.keys(this.fields),a);const o=n.produce(this.fields,(t=>{Object.keys(this.fields).forEach((n=>{const r=t[n].props,{topLeft:o,bottomRight:i}=a.getCoordinatesForValue(n);void 0===r.position&&(r.position={}),le(r.position)||(r.position={mobile:r.position}),r.position[e]={column:o.x,columnSpan:i.x-o.x+1,row:o.y,rowSpan:i.y-o.y+1}}))}));return new Qr(o,this.columns)}setVertical(e,t=1,n){return this.setGrid(e,null!=n?n:Kr(t,!1),Qn(Object.keys(this.fields),t))}setHorizontal(e,t){const n=Object.keys(this.fields);return this.setGrid(e,null!=t?t:Kr(n.length,!1),[n])}getColumns(){return this.columns}getFields(){return this.fields}getScaffoldProps(){return{fields:this.fields,columns:this.columns}}}const Zr=e.createContext({factory:void 0}),ea=e.forwardRef(((t,n)=>{var{name:r,field:o}=t,i=a(t,["name","field"]);const{factory:l}=e.useContext(Zr),s=yn(o.props),c=(null==l?void 0:l(o))||(e=>{switch(e.type){case"Button":return qe;case"Checkbox":return Nt;case"Select":return nn;case"FileField":return Qt;case"PasswordStrengthField":return fn;default:return Wt}})(o);return"TextField"===o.type&&"hidden"===o.props.type?e.createElement(c,Object.assign({ref:n,name:r},i,o.props)):e.createElement(xn,Object.assign({},s),e.createElement(c,Object.assign({ref:n,name:r,placeholder:o.props.placeholder||s.label,className:pe(!!s.error&&"error",o.props.className)},i,o.props)))})),ta=e.forwardRef(((t,n)=>{var{children:r,columns:o,fields:i,prefixFieldNames:l}=t,s=a(t,["children","columns","fields","prefixFieldNames"]);return e.createElement(kn,{columns:o},Object.entries(i).map((([t,r])=>e.createElement(ea,Object.assign({name:`${null!=l?l:""}${t}`,key:t,field:r,ref:n},s)))),r)}));exports.Alert=({children:t,title:n,variant:r="basic"})=>e.createElement("div",{className:pe(Z.wrapper,Z[`variant-${r}`])},e.createElement(ce,{p:3},n&&e.createElement(ce,{pb:t?1:0},e.createElement(ne,{level:4},n)),t&&e.createElement(re,null,t))),exports.AnimatedCheckmark=xe,exports.BasicLayout=({sideBarProps:t,topBarProps:n,footerProps:r,isLoading:a,loader:o,children:i})=>e.createElement(wn,{flexGrow:1,display:"flex",flexDirection:"column"},e.createElement(En,{flexGrow:1,flexShrink:0},t&&e.createElement($n,null,e.createElement(ft,Object.assign({},t))),e.createElement(Cn,{display:"flex",flexDirection:"column"},e.createElement(Dt,Object.assign({},n)),e.createElement(ce,{p:{laptop:7,mobile:4},pl:{laptop:22},flexGrow:1},a&&o?o:i),e.createElement(ht,Object.assign({},r))))),exports.Box=ce,exports.BreadCrumbs=t=>e.createElement("ul",Object.assign({className:pe(ke,t.className)},t)),exports.BreakPointValues=oe,exports.Button=qe,exports.Checkbox=Nt,exports.CollapsiblePanel=ze,exports.ConfirmButton=t=>{var n,{modalProps:r}=t,o=a(t,["modalProps"]);const[i,l]=(({onConfirm:t})=>{const[n,r]=e.useState(!1);return[{onCancel:()=>r(!1),onConfirm:()=>{t(),r(!1)},isOpen:n},()=>r(!0)]})({onConfirm:null!==(n=r.onConfirm)&&void 0!==n?n:Ve});return e.createElement(e.Fragment,null,e.createElement(qe,Object.assign({},o,{onClick:l})),e.createElement(Ge,Object.assign({title:"Are you sure?"},r,i)))},exports.ConfirmModal=Ge,exports.Crumb=t=>e.createElement("li",Object.assign({className:pe(ke,t.className)},t)),exports.Details=({details:t,firstColumnWidth:n})=>e.createElement(Je,null,e.createElement("tbody",null,Object.entries(t).map((([t,r],a)=>e.createElement(Je.Row,{key:t,disableHover:!0},e.createElement(Ke,{width:n,firstRow:0===a},t),e.createElement(Ke,{firstRow:0===a},r)))))),exports.Dropdown=({buttonProps:t,align:n,children:r,stayOpenOnClick:a})=>{const o=e.useRef(null),[i,l]=e.useState(!1),s=e.useCallback((()=>l(!0)),[l]),c=e.useCallback((e=>{var t;a&&(null===(t=o.current)||void 0===t?void 0:t.contains(e.target))||l(!1)}),[l,a]);return e.useEffect((()=>(i&&setTimeout((()=>document.addEventListener("click",c)),1),()=>{document.removeEventListener("click",c)})),[i,c]),e.createElement(Qe,null,e.createElement(qe,Object.assign({},t,{onClick:s})),i&&e.createElement(Q,{speed:".1s"},e.createElement(Ze,{ref:o,align:n||"left"},r)))},exports.DropdownMenu=et,exports.DropdownMenuItem=tt,exports.Dropzone=t=>{var{onChange:n,icon:r,label:o}=t,i=a(t,["onChange","icon","label"]);const l=e.useRef(null),s=e.useRef(null),[c,d]=e.useState(!1),p=e.useCallback((e=>{e&&n&&n(Array.from(e))}),[n]),u=e.useCallback((e=>{e.preventDefault(),d(!0)}),[]),f=e.useCallback((e=>{e.preventDefault(),d(!1)}),[]),m=e.useCallback((e=>{var t;e.preventDefault(),d(!1),p(null===(t=e.dataTransfer)||void 0===t?void 0:t.files)}),[p]),h=e.useCallback((()=>{var e;null===(e=l.current)||void 0===e||e.click()}),[l]),g=e.useCallback((()=>{var e;p(null===(e=null==l?void 0:l.current)||void 0===e?void 0:e.files)}),[l,p]);return e.createElement(rt,Object.assign({ref:s,onDragOver:u,onDragLeave:f,onDrop:m,onClick:h,isReadyToDrop:c},i),e.createElement(nt,{"data-testid":"dropzone-file-input",type:"file",ref:l,onChange:g,multiple:!0}),e.createElement(ce,null,e.createElement(qe,{variant:"text",color:"secondary",type:"button",icon:r},o)))},exports.Feedback=({onConfirm:t,buttonLabel:n,buttonIcon:r,title:a,subtitle:o})=>e.createElement(Le,{handleClickOverlay:t,buttons:e.createElement(qe,{"data-testid":"confirm",stretch:!0,icon:r,variant:"secondary",onClick:t},n)},e.createElement(at,{pt:3,pb:3},e.createElement(ce,{pb:5,textAlign:"center"},e.createElement(ne,null,a),o&&e.createElement(ce,{pt:5},e.createElement(ne,{level:5},o))),e.createElement(ce,{pt:5,pb:5,pl:7,pr:7},e.createElement(xe,null)))),exports.FileField=Qt,exports.Floater=t=>{var{items:n,forceEqualWidth:r=!1,stretch:o=!1}=t,i=a(t,["items","forceEqualWidth","stretch"]);return e.createElement(ce,Object.assign({mb:dt,mt:dt,ml:ct,mr:ct,display:pt},i),n.filter(Boolean).map(((t,a)=>(e=>!!e.element)(t)?e.createElement(st,{key:a,laptopWidth:t.forceEqualWidth?100/n.length+"%":void 0,stretch:t.stretch||!1},t.element):e.createElement(st,{key:a,laptopWidth:r?100/n.length+"%":void 0,stretch:o},t))))},exports.FloatingPanelLayout=({panelProps:t,imageUrl:n,alert:r,logoUrl:a,backgroundBaseColor:o,backgroundOpacity:i})=>e.createElement(On,{display:"flex",alignItems:"center",baseColor:o},e.createElement(_n,{imageUrl:n,opacity:i}),a&&e.createElement(Pn,{src:a,alt:"Logo"}),e.createElement(Fn,null,r&&e.createElement(ce,{pb:7},r),e.createElement(Sn,Object.assign({},t)))),exports.Footer=ht,exports.FormGrid=kn,exports.FormGridWrapper=xn,exports.FormPositioner=Qr,exports.HamburgerButton=bt,exports.Header=ne,exports.HorizontalScroller=({children:t})=>e.createElement(gt,null,t),exports.Menu=vt,exports.MenuCloseButton=xt,exports.MenuItem=({item:t,isOpen:n,isActive:r,children:a})=>{const[o,i]=e.useState(!!n);return e.createElement(yt,{isOpen:o,isActive:!!r},t,a&&e.createElement(Pe,{onChange:i,isOpen:!!n,duration:.25},a))},exports.MenuSlideOpenIndicator=({children:t})=>e.createElement(kt,null,t),exports.Modal=Le,exports.Overlay=Te,exports.Paginator=t=>{const{isTablet:n}=Et(),{pageCount:r,onChange:a}=t,o=Math.min(Math.max(t.currentPage,0),r),i=n?2:0,l=Math.max(1,o-i),s=Math.min(r,o+i);return e.createElement($t,null,e.createElement(Ct,{"data-testid":"paginate-prev",disabled:1===o,onClick:()=>a(o-1)},"⟨"),l>1&&e.createElement(Ct,{"data-testid":"paginate-page-1",active:1===o,onClick:()=>a(1)},"1"),l>2&&e.createElement(Ct,{disabled:!0},"..."),((e,t)=>{let n=[];for(let r=e;r<t;r++)n.push(r);return n})(l,s+1).map((t=>e.createElement(Ct,{"data-testid":`paginate-page-${t}`,key:t,active:o===t,onClick:()=>a(t)},t))),s<r-1&&e.createElement(Ct,{disabled:!0},"..."),s<r&&e.createElement(Ct,{"data-testid":`paginate-page-${r}`,active:o===r,onClick:()=>a(r)},r),e.createElement(Ct,{"data-testid":"paginate-next",disabled:o===r,onClick:()=>a(o+1)},"⟩"))},exports.Panel=Oe,exports.Paragraph=re,exports.PasswordStrengthField=fn,exports.ScaffoldForm=ta,exports.ScaffoldFormContext=Zr,exports.ScaffoldFormProvider=({factory:t,children:n})=>e.createElement(Zr.Provider,{value:{factory:t}},n),exports.Section=t=>e.createElement(ce,Object.assign({pb:{laptop:7,mobile:4}},t)),exports.Select=nn,exports.SideBarHeader=({children:t,right:n})=>e.createElement(wt,{mb:7},e.createElement(ce,{flexGrow:1,display:"flex"},e.createElement(ce,{flexGrow:1,display:"flex",flexDirection:"column",justifyContent:"center"},t)),n&&e.createElement(ce,null,n)),exports.SimpleTimeline=({color:t,icon:n,title:r,titleMeta:a})=>e.createElement(Mt,null,e.createElement(Tt,{className:"line"},e.createElement(Rt,{color:t},n)),e.createElement(ce,{pb:4,flexGrow:1},e.createElement(zt,{titleMeta:a,title:r}))),exports.SlideInFromTop=Q,exports.Statistic=({icon:t,value:n,label:r,backgroundColor:a,smallerValue:o})=>e.createElement(Ot,{backgroundColor:a},e.createElement(St,null,t),e.createElement(ce,{flexGrow:1,textAlign:"right"},e.createElement(_t,null,r),e.createElement(Ft,{smallerValue:o},n))),exports.StyledTable=We,exports.Tab=t=>{var{id:n,isActive:r,onClick:o}=t,i=a(t,["id","isActive","onClick"]);const l=e.useCallback((()=>{r||null==o||o(n)}),[n,r,o]);return e.createElement(Pt,Object.assign({},i,{onClick:l,isActive:r}))},exports.TabContent=t=>e.createElement(jt,Object.assign({p:3},t)),exports.Table=Je,exports.Tabs=At,exports.TextField=Wt,exports.Timeline=({title:t,icon:n,color:r,isInitiallyOpen:a,titleMeta:o,chevron:i,children:l})=>e.createElement(Mt,null,e.createElement(Tt,null,e.createElement(Rt,{color:r},n)),e.createElement(ce,{pb:4,flexGrow:1},e.createElement(ze,{isInitiallyOpen:a,titleMeta:o,title:t,titleAction:i},l))),exports.TopBar=Dt,exports.UiProvider=N,exports.UiWrapper=({theme:t,children:n})=>e.createElement(N,{theme:t},e.createElement(W,null,e.createElement(U,null,n))),exports.VerticalRhythmLaptop=7,exports.VerticalRhythmMobile=4,exports.calculatePasswordScore=dn,exports.getFormGridWrapperProps=yn,exports.isResponsiveObject=le,exports.mq=ie,exports.passwordHasLowerAndUppercase=on,exports.passwordHasNumbers=an,exports.passwordHasSpecialChars=ln,exports.passwordMinLength=rn,exports.responsiveProps=se,exports.theme=B,exports.useCloseSidebarOnNavigate=t=>{const{closeSideMenu:n}=V();e.useEffect((()=>{n()}),[t,n])},exports.useResponsiveBreakpoints=Et,exports.useToggleMobileMenu=({currentRoute:t})=>{const[n,r]=e.useState(!1),a=e.useCallback((()=>{r((e=>!e))}),[]),o=e.useCallback((()=>{r(!0)}),[]),i=e.useCallback((()=>{r(!1)}),[]);return e.useEffect((()=>{i()}),[t,i]),{isOpen:n,open:o,close:i,toggle:a}};
|