quicksnack 3.39.0 → 3.41.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/bundle.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("styled-components"),a=require("immer");function r(e,t){void 0===t&&(t={});var a=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===a&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}function n(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]])}return a}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[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 p(e,t,a){return p=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,a){var r=[null];r.push.apply(r,t);var n=new(Function.bind.apply(e,r));return a&&i(n,a.prototype),n},p.apply(null,arguments)}function s(e){var t="function"==typeof Map?new Map:void 0;return s=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,a)}function a(){return p(e,arguments,l(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i(a,e)},s(e)}r(":root{--common-black:#000000de;--common-white:#fff;--colors-blue:#007bff;--colors-indigo:#6610f2;--colors-purple:#6f42c1;--colors-pink:#e83e8c;--colors-red:#e83e3e;--colors-orange:#fd7e14;--colors-yellow:#ffc107;--colors-green:#23b294;--colors-teal:#20c997;--colors-cyan:#17a2b8;--colors-gray:#6c757d;--colors-grayDark:#343a40;--colors-light:#f8f9fa;--colors-dark:#343a40;--form-hint:#c7c7c7;--form-error:#9f3a38;--button-basic-idle-background:#fff;--button-basic-idle-text:#000000de;--button-basic-hover-background:#e5e5e5;--button-basic-hover-text:rgba(0,0,0,.883);--button-basic-active-background:#ccc;--button-basic-active-text:rgba(0,0,0,.896);--button-default-idle-background:#e0e1e2;--button-default-idle-text:#000000de;--button-default-hover-background:#c9cacb;--button-default-hover-text:rgba(0,0,0,.883);--button-default-active-background:#b3b4b4;--button-default-active-text:rgba(0,0,0,.896);--button-text-idle-text:#999c9e;--button-text-idle-background:#0000;--button-text-active-text:#000000de;--button-text-active-background:#0000;--button-text-hover-text:#000000de;--button-text-hover-background:#0000;--button-danger-idle-background:#ec5969;--button-danger-idle-text:#fff;--button-danger-hover-background:#d4505e;--button-danger-hover-text:#fff;--button-danger-active-background:#bc4754;--button-danger-active-text:#fff;--button-primary-idle-background:#2284c4;--button-primary-idle-text:#fff;--button-primary-hover-background:#1e76b0;--button-primary-hover-text:#fff;--button-primary-active-background:#1b699c;--button-primary-active-text:#fff;--button-secondary-idle-background:#23b294;--button-secondary-idle-text:#fff;--button-secondary-hover-background:#1fa085;--button-secondary-hover-text:#fff;--button-secondary-active-background:#1c8e76;--button-secondary-active-text:#fff;--pane-basic-main-idle-text:#000000de;--pane-basic-main-idle-background:#fff;--pane-basic-main-idle-border:#ddd;--pane-basic-main-hover-text:#000000de;--pane-basic-main-hover-background:#f2f2f2;--pane-basic-main-hover-border:#ddd;--pane-basic-alternate-idle-text:#000000de;--pane-basic-alternate-idle-background:#f9f9f9;--pane-basic-alternate-idle-border:#ddd;--pane-basic-alternate-hover-text:#000000de;--pane-basic-alternate-hover-background:#f2f2f2;--pane-basic-alternate-hover-border:#ddd;--pane-emphasized-main-idle-text:#000000de;--pane-emphasized-main-idle-background:#f3f3f3;--pane-emphasized-main-idle-border:#ddd;--pane-emphasized-main-hover-text:#000000de;--pane-emphasized-main-hover-background:#e6e6e6;--pane-emphasized-main-hover-border:#ddd;--pane-emphasized-alternate-idle-text:#000000de;--pane-emphasized-alternate-idle-background:#eee;--pane-emphasized-alternate-idle-border:#ddd;--pane-emphasized-alternate-hover-text:#000000de;--pane-emphasized-alternate-hover-background:#e6e6e6;--pane-emphasized-alternate-hover-border:#ddd;--pane-info-main-idle-text:#0c5460;--pane-info-main-idle-background:#d1ecf1;--pane-info-main-idle-border:#bee5eb;--pane-info-main-hover-text:#0c5460;--pane-info-main-hover-background:#c6e0e4;--pane-info-main-hover-border:#bee5eb;--pane-info-alternate-idle-text:#0c5460;--pane-info-alternate-idle-background:#cce7ec;--pane-info-alternate-idle-border:#bee5eb;--pane-info-alternate-hover-text:#0c5460;--pane-info-alternate-hover-background:#c6e0e4;--pane-info-alternate-hover-border:#bee5eb;--pane-negative-main-idle-text:#721c24;--pane-negative-main-idle-background:#f8d7da;--pane-negative-main-idle-border:#f5c6cb;--pane-negative-main-hover-text:#721c24;--pane-negative-main-hover-background:#ebcccf;--pane-negative-main-hover-border:#f5c6cb;--pane-negative-alternate-idle-text:#721c24;--pane-negative-alternate-idle-background:#f3d2d5;--pane-negative-alternate-idle-border:#f5c6cb;--pane-negative-alternate-hover-text:#721c24;--pane-negative-alternate-hover-background:#ebcccf;--pane-negative-alternate-hover-border:#f5c6cb;--pane-positive-main-idle-text:#155724;--pane-positive-main-idle-background:#d4edda;--pane-positive-main-idle-border:#c3e6cb;--pane-positive-main-hover-text:#155724;--pane-positive-main-hover-background:#c9e1cf;--pane-positive-main-hover-border:#c3e6cb;--pane-positive-alternate-idle-text:#155724;--pane-positive-alternate-idle-background:#cfe8d5;--pane-positive-alternate-idle-border:#c3e6cb;--pane-positive-alternate-hover-text:#155724;--pane-positive-alternate-hover-background:#c9e1cf;--pane-positive-alternate-hover-border:#c3e6cb;--pane-warning-main-idle-text:#856404;--pane-warning-main-idle-background:#fff3cd;--pane-warning-main-idle-border:#ffeeba;--pane-warning-main-hover-text:#856404;--pane-warning-main-hover-background:#f2e6c2;--pane-warning-main-hover-border:#ffeeba;--pane-warning-alternate-idle-text:#856404;--pane-warning-alternate-idle-background:#f9eec8;--pane-warning-alternate-idle-border:#ffeeba;--pane-warning-alternate-hover-text:#856404;--pane-warning-alternate-hover-background:#f2e6c2;--pane-warning-alternate-hover-border:#ffeeba;--spacing:4px}"),"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 c(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var r,n=t[0],o=[];for(r=1;r<t.length;r+=1)o.push(t[r]);return o.forEach((function(e){n=n.replace(/%[a-z]/,e)})),n}var g=function(e){var t,a;function r(t){var a;if("production"===process.env.NODE_ENV)a=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,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];a=e.call(this,c.apply(void 0,[d[t]].concat(n)))||this}return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(a)}return a=e,(t=r).prototype=Object.create(a.prototype),t.prototype.constructor=t,i(t,a),r}(s(Error));function m(e){return Math.round(255*e)}function f(e,t,a){return m(e)+","+m(t)+","+m(a)}function b(e,t,a,r){if(void 0===r&&(r=f),0===t)return r(a,a,a);var n=(e%360+360)%360/60,o=(1-Math.abs(2*a-1))*t,i=o*(1-Math.abs(n%2-1)),l=0,p=0,s=0;n>=0&&n<1?(l=o,p=i):n>=1&&n<2?(l=i,p=o):n>=2&&n<3?(p=o,s=i):n>=3&&n<4?(p=i,s=o):n>=4&&n<5?(l=i,s=o):n>=5&&n<6&&(l=o,s=i);var d=a-o/2;return r(l+d,p+d,s+d)}var u={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 h=/^#[a-fA-F0-9]{6}$/,v=/^#[a-fA-F0-9]{8}$/,x=/^#[a-fA-F0-9]{3}$/,k=/^#[a-fA-F0-9]{4}$/,y=/^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,_=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,C=/^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 E(e){if("string"!=typeof e)throw new g(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return u[t]?"#"+u[t]:e}(e);if(t.match(h))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 a=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:a}}if(t.match(x))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(k)){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 n=y.exec(t);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[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=_.exec(t);if(i){var l="rgb("+b(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",p=y.exec(l);if(!p)throw new g(4,t,l);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10)}}var s=C.exec(t.substring(0,50));if(s){var d="rgb("+b(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",c=y.exec(d);if(!c)throw new g(4,t,d);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10),alpha:parseFloat(""+s[4])>1?parseFloat(""+s[4])/100:parseFloat(""+s[4])}}throw new g(5)}var $=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 j(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function S(e,t,a){if("number"==typeof e&&"number"==typeof t&&"number"==typeof a)return $("#"+j(e)+j(t)+j(a));if("object"==typeof e&&void 0===t&&void 0===a)return $("#"+j(e.red)+j(e.green)+j(e.blue));throw new g(6)}function A(e,t,a){return function(){var r=a.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):A(e,t,r)}}function O(e){return A(e,e.length,[])}function P(e,t,a){if("transparent"===t)return a;if("transparent"===a)return t;if(0===e)return a;var r=E(t),n=o({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),i=E(a),l=o({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),p=n.alpha-l.alpha,s=2*parseFloat(e)-1,d=((s*p==-1?s:s+p)/(1+s*p)+1)/2,c=1-d;return function(e,t,a,r){if("string"==typeof e&&"number"==typeof t){var n=E(e);return"rgba("+n.red+","+n.green+","+n.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof a&&"number"==typeof r)return r>=1?S(e,t,a):"rgba("+e+","+t+","+a+","+r+")";if("object"==typeof e&&void 0===t&&void 0===a&&void 0===r)return e.alpha>=1?S(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new g(7)}({red:Math.floor(n.red*d+l.red*c),green:Math.floor(n.green*d+l.green*c),blue:Math.floor(n.blue*d+l.blue*c),alpha:n.alpha*parseFloat(e)+l.alpha*(1-parseFloat(e))})}var F=O(P);function I(e,t){return"transparent"===t?t:F(parseFloat(e),"rgb(0, 0, 0)",t)}var z=O(I);const D="rgba(0,0,0,.87)",M="#fff",T=(e,t,a)=>Object.entries(t).reduce(((t,[r,n])=>Object.assign(Object.assign({},t),{[r]:a.includes(r)?z(e,n):n})),t),R=e=>{var{colorsToDarken:t}=e,a=n(e,["colorsToDarken"]);return{idle:a,hover:T(.1,a,t),active:T(.2,a,t)}},G=e=>({main:{idle:e,hover:T(.05,e,["background"])},alternate:{idle:T(.02,e,["background"]),hover:T(.05,e,["background"])}}),N={spacing:(...e)=>e.map((e=>4*e+"px")).join(" "),palette:{common:{black:D,white:M},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:R({colorsToDarken:["background","text"],background:M,text:D}),default:R({colorsToDarken:["background","text"],background:"#e0e1e2",text:D}),text:{idle:{text:"#999c9e",background:"transparent"},active:{text:D,background:"transparent"},hover:{text:D,background:"transparent"}},danger:R({colorsToDarken:["background"],background:"#EC5969",text:M}),primary:R({colorsToDarken:["background"],background:"#2284C4",text:M}),secondary:R({colorsToDarken:["background"],background:"#23B294",text:M})},pane:{basic:G({text:D,background:M,border:"#ddd"}),emphasized:G({text:D,background:"#f3f3f3",border:"#ddd"}),info:G({text:"#0c5460",background:"#d1ecf1",border:"#bee5eb"}),negative:G({text:"#721c24",background:"#f8d7da",border:"#f5c6cb"}),positive:G({text:"#155724",background:"#d4edda",border:"#c3e6cb"}),warning:G({text:"#856404",background:"#fff3cd",border:"#ffeeba"})}}},L=t.ThemeProvider,B=({children:t,theme:a})=>e.createElement(L,{theme:a||N},t),H=()=>{},q=e.createContext({isSideMenuOpen:!1,closeSideMenu:H,openSideMenu:H}),W=()=>e.useContext(q),V=({children:t})=>{const[a,r]=e.useState(!1),n=e.useCallback((()=>r(!1)),[]),o=e.useCallback((()=>r(!0)),[]);return e.createElement(q.Provider,{value:{isSideMenuOpen:a,closeSideMenu:n,openSideMenu:o}},t)},Y=t.styled.div`
|
|
1
|
+
"use strict";var e=require("react"),t=require("styled-components"),a=require("immer");function r(e,t){void 0===t&&(t={});var a=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===a&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}function n(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]])}return a}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[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 p(e,t,a){return p=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,a){var r=[null];r.push.apply(r,t);var n=new(Function.bind.apply(e,r));return a&&i(n,a.prototype),n},p.apply(null,arguments)}function s(e){var t="function"==typeof Map?new Map:void 0;return s=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,a)}function a(){return p(e,arguments,l(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i(a,e)},s(e)}r(":root{--common-black:#000000de;--common-white:#fff;--colors-blue:#007bff;--colors-indigo:#6610f2;--colors-purple:#6f42c1;--colors-pink:#e83e8c;--colors-red:#e83e3e;--colors-orange:#fd7e14;--colors-yellow:#ffc107;--colors-green:#23b294;--colors-teal:#20c997;--colors-cyan:#17a2b8;--colors-gray:#6c757d;--colors-grayDark:#343a40;--colors-light:#f8f9fa;--colors-dark:#343a40;--form-hint:#c7c7c7;--form-error:#9f3a38;--button-basic-idle-background:#fff;--button-basic-idle-text:#000000de;--button-basic-hover-background:#e5e5e5;--button-basic-hover-text:rgba(0,0,0,.883);--button-basic-active-background:#ccc;--button-basic-active-text:rgba(0,0,0,.896);--button-default-idle-background:#e0e1e2;--button-default-idle-text:#000000de;--button-default-hover-background:#c9cacb;--button-default-hover-text:rgba(0,0,0,.883);--button-default-active-background:#b3b4b4;--button-default-active-text:rgba(0,0,0,.896);--button-text-idle-text:#999c9e;--button-text-idle-background:#0000;--button-text-active-text:#000000de;--button-text-active-background:#0000;--button-text-hover-text:#000000de;--button-text-hover-background:#0000;--button-danger-idle-background:#ec5969;--button-danger-idle-text:#fff;--button-danger-hover-background:#d4505e;--button-danger-hover-text:#fff;--button-danger-active-background:#bc4754;--button-danger-active-text:#fff;--button-primary-idle-background:#2284c4;--button-primary-idle-text:#fff;--button-primary-hover-background:#1e76b0;--button-primary-hover-text:#fff;--button-primary-active-background:#1b699c;--button-primary-active-text:#fff;--button-secondary-idle-background:#23b294;--button-secondary-idle-text:#fff;--button-secondary-hover-background:#1fa085;--button-secondary-hover-text:#fff;--button-secondary-active-background:#1c8e76;--button-secondary-active-text:#fff;--pane-basic-main-idle-text:#000000de;--pane-basic-main-idle-background:#fff;--pane-basic-main-idle-border:#ddd;--pane-basic-main-hover-text:#000000de;--pane-basic-main-hover-background:#f2f2f2;--pane-basic-main-hover-border:#ddd;--pane-basic-alternate-idle-text:#000000de;--pane-basic-alternate-idle-background:#f9f9f9;--pane-basic-alternate-idle-border:#ddd;--pane-basic-alternate-hover-text:#000000de;--pane-basic-alternate-hover-background:#f2f2f2;--pane-basic-alternate-hover-border:#ddd;--pane-emphasized-main-idle-text:#000000de;--pane-emphasized-main-idle-background:#f3f3f3;--pane-emphasized-main-idle-border:#ddd;--pane-emphasized-main-hover-text:#000000de;--pane-emphasized-main-hover-background:#e6e6e6;--pane-emphasized-main-hover-border:#ddd;--pane-emphasized-alternate-idle-text:#000000de;--pane-emphasized-alternate-idle-background:#eee;--pane-emphasized-alternate-idle-border:#ddd;--pane-emphasized-alternate-hover-text:#000000de;--pane-emphasized-alternate-hover-background:#e6e6e6;--pane-emphasized-alternate-hover-border:#ddd;--pane-info-main-idle-text:#0c5460;--pane-info-main-idle-background:#d1ecf1;--pane-info-main-idle-border:#bee5eb;--pane-info-main-hover-text:#0c5460;--pane-info-main-hover-background:#c6e0e4;--pane-info-main-hover-border:#bee5eb;--pane-info-alternate-idle-text:#0c5460;--pane-info-alternate-idle-background:#cce7ec;--pane-info-alternate-idle-border:#bee5eb;--pane-info-alternate-hover-text:#0c5460;--pane-info-alternate-hover-background:#c6e0e4;--pane-info-alternate-hover-border:#bee5eb;--pane-negative-main-idle-text:#721c24;--pane-negative-main-idle-background:#f8d7da;--pane-negative-main-idle-border:#f5c6cb;--pane-negative-main-hover-text:#721c24;--pane-negative-main-hover-background:#ebcccf;--pane-negative-main-hover-border:#f5c6cb;--pane-negative-alternate-idle-text:#721c24;--pane-negative-alternate-idle-background:#f3d2d5;--pane-negative-alternate-idle-border:#f5c6cb;--pane-negative-alternate-hover-text:#721c24;--pane-negative-alternate-hover-background:#ebcccf;--pane-negative-alternate-hover-border:#f5c6cb;--pane-positive-main-idle-text:#155724;--pane-positive-main-idle-background:#d4edda;--pane-positive-main-idle-border:#c3e6cb;--pane-positive-main-hover-text:#155724;--pane-positive-main-hover-background:#c9e1cf;--pane-positive-main-hover-border:#c3e6cb;--pane-positive-alternate-idle-text:#155724;--pane-positive-alternate-idle-background:#cfe8d5;--pane-positive-alternate-idle-border:#c3e6cb;--pane-positive-alternate-hover-text:#155724;--pane-positive-alternate-hover-background:#c9e1cf;--pane-positive-alternate-hover-border:#c3e6cb;--pane-warning-main-idle-text:#856404;--pane-warning-main-idle-background:#fff3cd;--pane-warning-main-idle-border:#ffeeba;--pane-warning-main-hover-text:#856404;--pane-warning-main-hover-background:#f2e6c2;--pane-warning-main-hover-border:#ffeeba;--pane-warning-alternate-idle-text:#856404;--pane-warning-alternate-idle-background:#f9eec8;--pane-warning-alternate-idle-border:#ffeeba;--pane-warning-alternate-hover-text:#856404;--pane-warning-alternate-hover-background:#f2e6c2;--pane-warning-alternate-hover-border:#ffeeba;--spacing:4px}"),"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 c(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var r,n=t[0],o=[];for(r=1;r<t.length;r+=1)o.push(t[r]);return o.forEach((function(e){n=n.replace(/%[a-z]/,e)})),n}var m=function(e){var t,a;function r(t){var a;if("production"===process.env.NODE_ENV)a=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,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];a=e.call(this,c.apply(void 0,[d[t]].concat(n)))||this}return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(a)}return a=e,(t=r).prototype=Object.create(a.prototype),t.prototype.constructor=t,i(t,a),r}(s(Error));function g(e){return Math.round(255*e)}function f(e,t,a){return g(e)+","+g(t)+","+g(a)}function u(e,t,a,r){if(void 0===r&&(r=f),0===t)return r(a,a,a);var n=(e%360+360)%360/60,o=(1-Math.abs(2*a-1))*t,i=o*(1-Math.abs(n%2-1)),l=0,p=0,s=0;n>=0&&n<1?(l=o,p=i):n>=1&&n<2?(l=i,p=o):n>=2&&n<3?(p=o,s=i):n>=3&&n<4?(p=i,s=o):n>=4&&n<5?(l=i,s=o):n>=5&&n<6&&(l=o,s=i);var d=a-o/2;return r(l+d,p+d,s+d)}var b={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 h=/^#[a-fA-F0-9]{6}$/,v=/^#[a-fA-F0-9]{8}$/,x=/^#[a-fA-F0-9]{3}$/,k=/^#[a-fA-F0-9]{4}$/,y=/^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,_=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,C=/^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 E(e){if("string"!=typeof e)throw new m(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return b[t]?"#"+b[t]:e}(e);if(t.match(h))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 a=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:a}}if(t.match(x))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(k)){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 n=y.exec(t);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[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=_.exec(t);if(i){var l="rgb("+u(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",p=y.exec(l);if(!p)throw new m(4,t,l);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10)}}var s=C.exec(t.substring(0,50));if(s){var d="rgb("+u(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",c=y.exec(d);if(!c)throw new m(4,t,d);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10),alpha:parseFloat(""+s[4])>1?parseFloat(""+s[4])/100:parseFloat(""+s[4])}}throw new m(5)}var $=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 j(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function S(e,t,a){if("number"==typeof e&&"number"==typeof t&&"number"==typeof a)return $("#"+j(e)+j(t)+j(a));if("object"==typeof e&&void 0===t&&void 0===a)return $("#"+j(e.red)+j(e.green)+j(e.blue));throw new m(6)}function A(e,t,a){return function(){var r=a.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):A(e,t,r)}}function O(e){return A(e,e.length,[])}function F(e,t,a){if("transparent"===t)return a;if("transparent"===a)return t;if(0===e)return a;var r=E(t),n=o({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),i=E(a),l=o({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),p=n.alpha-l.alpha,s=2*parseFloat(e)-1,d=((s*p==-1?s:s+p)/(1+s*p)+1)/2,c=1-d;return function(e,t,a,r){if("string"==typeof e&&"number"==typeof t){var n=E(e);return"rgba("+n.red+","+n.green+","+n.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof a&&"number"==typeof r)return r>=1?S(e,t,a):"rgba("+e+","+t+","+a+","+r+")";if("object"==typeof e&&void 0===t&&void 0===a&&void 0===r)return e.alpha>=1?S(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new m(7)}({red:Math.floor(n.red*d+l.red*c),green:Math.floor(n.green*d+l.green*c),blue:Math.floor(n.blue*d+l.blue*c),alpha:n.alpha*parseFloat(e)+l.alpha*(1-parseFloat(e))})}var P=O(F);function z(e,t){return"transparent"===t?t:P(parseFloat(e),"rgb(0, 0, 0)",t)}var D=O(z);const I="rgba(0,0,0,.87)",M="#fff",R=(e,t,a)=>Object.entries(t).reduce(((t,[r,n])=>Object.assign(Object.assign({},t),{[r]:a.includes(r)?D(e,n):n})),t),T=e=>{var{colorsToDarken:t}=e,a=n(e,["colorsToDarken"]);return{idle:a,hover:R(.1,a,t),active:R(.2,a,t)}},N=e=>({main:{idle:e,hover:R(.05,e,["background"])},alternate:{idle:R(.02,e,["background"]),hover:R(.05,e,["background"])}}),G={spacing:(...e)=>e.map((e=>4*e+"px")).join(" "),palette:{common:{black:I,white:M},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:T({colorsToDarken:["background","text"],background:M,text:I}),default:T({colorsToDarken:["background","text"],background:"#e0e1e2",text:I}),text:{idle:{text:"#999c9e",background:"transparent"},active:{text:I,background:"transparent"},hover:{text:I,background:"transparent"}},danger:T({colorsToDarken:["background"],background:"#EC5969",text:M}),primary:T({colorsToDarken:["background"],background:"#2284C4",text:M}),secondary:T({colorsToDarken:["background"],background:"#23B294",text:M})},pane:{basic:N({text:I,background:M,border:"#ddd"}),emphasized:N({text:I,background:"#f3f3f3",border:"#ddd"}),info:N({text:"#0c5460",background:"#d1ecf1",border:"#bee5eb"}),negative:N({text:"#721c24",background:"#f8d7da",border:"#f5c6cb"}),positive:N({text:"#155724",background:"#d4edda",border:"#c3e6cb"}),warning:N({text:"#856404",background:"#fff3cd",border:"#ffeeba"})}}},L=t.ThemeProvider,B=({children:t,theme:a})=>e.createElement(L,{theme:a||G},t),H=()=>{},q=e.createContext({isSideMenuOpen:!1,closeSideMenu:H,openSideMenu:H}),W=()=>e.useContext(q),V=({children:t})=>{const[a,r]=e.useState(!1),n=e.useCallback((()=>r(!1)),[]),o=e.useCallback((()=>r(!0)),[]);return e.createElement(q.Provider,{value:{isSideMenuOpen:a,closeSideMenu:n,openSideMenu:o}},t)},Y=t.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
height: 100%;
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
@media screen and (min-width: ${oe[e]}px) {
|
|
47
47
|
${a}
|
|
48
48
|
}
|
|
49
|
-
`,le=e=>{if("object"!=typeof e)return!1;const t=Object.keys(e);for(const e of ne)if(t.includes(e))return!0;return!1},pe=(e,t)=>{const a=Object.entries(t).filter((([t])=>void 0!==e[t]&&!le(e[t]))).map((([t,a])=>a(e[t])));return[ne.map((a=>{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[a])})).map((([t,r])=>r(e[t][a])));return r.length>0?ie(a,r):void 0})).filter((e=>void 0!==e)),...a]},se=["p:var","p:-1","p:0","p:1","p:2","p:3","p:4","p:5","pt:var","pt:-1","pt:0","pt:1","pt:2","pt:3","pt:4","pt:5","pr:var","pr:-1","pr:0","pr:1","pr:2","pr:3","pr:4","pr:5","pb:var","pb:-1","pb:0","pb:1","pb:2","pb:3","pb:4","pb:5","pl:var","pl:-1","pl:0","pl:1","pl:2","pl:3","pl:4","pl:5","m:var","m:-1","m:0","m:1","m:2","m:3","m:4","m:5","mt:var","mt:-1","mt:0","mt:1","mt:2","mt:3","mt:4","mt:5","mr:var","mr:-1","mr:0","mr:1","mr:2","mr:3","mr:4","mr:5","mb:var","mb:-1","mb:0","mb:1","mb:2","mb:3","mb:4","mb:5","ml:var","ml:-1","ml:0","ml:1","ml:2","ml:3","ml:4","ml:5","display:var","display:block","display:flex","display:none","flexGrow:var","flexGrow:1","flexGrow:0","flexShrink:var","flexShrink:1","flexShrink:0","flexDirection:var","flexDirection:row","flexDirection:column","alignItems:var","alignItems:center","alignItems:flex-start","alignItems:flex-end","textAlign:var","textAlign:left","textAlign:right","textAlign:center","justifyContent:var","justifyContent:center","justifyContent:flex-start","justifyContent:flex-end","tablet:p:var","tablet:p:-1","tablet:p:0","tablet:p:1","tablet:p:2","tablet:p:3","tablet:p:4","tablet:p:5","tablet:pt:var","tablet:pt:-1","tablet:pt:0","tablet:pt:1","tablet:pt:2","tablet:pt:3","tablet:pt:4","tablet:pt:5","tablet:pr:var","tablet:pr:-1","tablet:pr:0","tablet:pr:1","tablet:pr:2","tablet:pr:3","tablet:pr:4","tablet:pr:5","tablet:pb:var","tablet:pb:-1","tablet:pb:0","tablet:pb:1","tablet:pb:2","tablet:pb:3","tablet:pb:4","tablet:pb:5","tablet:pl:var","tablet:pl:-1","tablet:pl:0","tablet:pl:1","tablet:pl:2","tablet:pl:3","tablet:pl:4","tablet:pl:5","tablet:m:var","tablet:m:-1","tablet:m:0","tablet:m:1","tablet:m:2","tablet:m:3","tablet:m:4","tablet:m:5","tablet:mt:var","tablet:mt:-1","tablet:mt:0","tablet:mt:1","tablet:mt:2","tablet:mt:3","tablet:mt:4","tablet:mt:5","tablet:mr:var","tablet:mr:-1","tablet:mr:0","tablet:mr:1","tablet:mr:2","tablet:mr:3","tablet:mr:4","tablet:mr:5","tablet:mb:var","tablet:mb:-1","tablet:mb:0","tablet:mb:1","tablet:mb:2","tablet:mb:3","tablet:mb:4","tablet:mb:5","tablet:ml:var","tablet:ml:-1","tablet:ml:0","tablet:ml:1","tablet:ml:2","tablet:ml:3","tablet:ml:4","tablet:ml:5","tablet:display:var","tablet:display:block","tablet:display:flex","tablet:display:none","tablet:flexGrow:var","tablet:flexGrow:1","tablet:flexGrow:0","tablet:flexShrink:var","tablet:flexShrink:1","tablet:flexShrink:0","tablet:flexDirection:var","tablet:flexDirection:row","tablet:flexDirection:column","tablet:alignItems:var","tablet:alignItems:center","tablet:alignItems:flex-start","tablet:alignItems:flex-end","tablet:textAlign:var","tablet:textAlign:left","tablet:textAlign:right","tablet:textAlign:center","tablet:justifyContent:var","tablet:justifyContent:center","tablet:justifyContent:flex-start","tablet:justifyContent:flex-end","laptop:p:var","laptop:p:-1","laptop:p:0","laptop:p:1","laptop:p:2","laptop:p:3","laptop:p:4","laptop:p:5","laptop:pt:var","laptop:pt:-1","laptop:pt:0","laptop:pt:1","laptop:pt:2","laptop:pt:3","laptop:pt:4","laptop:pt:5","laptop:pr:var","laptop:pr:-1","laptop:pr:0","laptop:pr:1","laptop:pr:2","laptop:pr:3","laptop:pr:4","laptop:pr:5","laptop:pb:var","laptop:pb:-1","laptop:pb:0","laptop:pb:1","laptop:pb:2","laptop:pb:3","laptop:pb:4","laptop:pb:5","laptop:pl:var","laptop:pl:-1","laptop:pl:0","laptop:pl:1","laptop:pl:2","laptop:pl:3","laptop:pl:4","laptop:pl:5","laptop:m:var","laptop:m:-1","laptop:m:0","laptop:m:1","laptop:m:2","laptop:m:3","laptop:m:4","laptop:m:5","laptop:mt:var","laptop:mt:-1","laptop:mt:0","laptop:mt:1","laptop:mt:2","laptop:mt:3","laptop:mt:4","laptop:mt:5","laptop:mr:var","laptop:mr:-1","laptop:mr:0","laptop:mr:1","laptop:mr:2","laptop:mr:3","laptop:mr:4","laptop:mr:5","laptop:mb:var","laptop:mb:-1","laptop:mb:0","laptop:mb:1","laptop:mb:2","laptop:mb:3","laptop:mb:4","laptop:mb:5","laptop:ml:var","laptop:ml:-1","laptop:ml:0","laptop:ml:1","laptop:ml:2","laptop:ml:3","laptop:ml:4","laptop:ml:5","laptop:display:var","laptop:display:block","laptop:display:flex","laptop:display:none","laptop:flexGrow:var","laptop:flexGrow:1","laptop:flexGrow:0","laptop:flexShrink:var","laptop:flexShrink:1","laptop:flexShrink:0","laptop:flexDirection:var","laptop:flexDirection:row","laptop:flexDirection:column","laptop:alignItems:var","laptop:alignItems:center","laptop:alignItems:flex-start","laptop:alignItems:flex-end","laptop:textAlign:var","laptop:textAlign:left","laptop:textAlign:right","laptop:textAlign:center","laptop:justifyContent:var","laptop:justifyContent:center","laptop:justifyContent:flex-start","laptop:justifyContent:flex-end","desktop:p:var","desktop:p:-1","desktop:p:0","desktop:p:1","desktop:p:2","desktop:p:3","desktop:p:4","desktop:p:5","desktop:pt:var","desktop:pt:-1","desktop:pt:0","desktop:pt:1","desktop:pt:2","desktop:pt:3","desktop:pt:4","desktop:pt:5","desktop:pr:var","desktop:pr:-1","desktop:pr:0","desktop:pr:1","desktop:pr:2","desktop:pr:3","desktop:pr:4","desktop:pr:5","desktop:pb:var","desktop:pb:-1","desktop:pb:0","desktop:pb:1","desktop:pb:2","desktop:pb:3","desktop:pb:4","desktop:pb:5","desktop:pl:var","desktop:pl:-1","desktop:pl:0","desktop:pl:1","desktop:pl:2","desktop:pl:3","desktop:pl:4","desktop:pl:5","desktop:m:var","desktop:m:-1","desktop:m:0","desktop:m:1","desktop:m:2","desktop:m:3","desktop:m:4","desktop:m:5","desktop:mt:var","desktop:mt:-1","desktop:mt:0","desktop:mt:1","desktop:mt:2","desktop:mt:3","desktop:mt:4","desktop:mt:5","desktop:mr:var","desktop:mr:-1","desktop:mr:0","desktop:mr:1","desktop:mr:2","desktop:mr:3","desktop:mr:4","desktop:mr:5","desktop:mb:var","desktop:mb:-1","desktop:mb:0","desktop:mb:1","desktop:mb:2","desktop:mb:3","desktop:mb:4","desktop:mb:5","desktop:ml:var","desktop:ml:-1","desktop:ml:0","desktop:ml:1","desktop:ml:2","desktop:ml:3","desktop:ml:4","desktop:ml:5","desktop:display:var","desktop:display:block","desktop:display:flex","desktop:display:none","desktop:flexGrow:var","desktop:flexGrow:1","desktop:flexGrow:0","desktop:flexShrink:var","desktop:flexShrink:1","desktop:flexShrink:0","desktop:flexDirection:var","desktop:flexDirection:row","desktop:flexDirection:column","desktop:alignItems:var","desktop:alignItems:center","desktop:alignItems:flex-start","desktop:alignItems:flex-end","desktop:textAlign:var","desktop:textAlign:left","desktop:textAlign:right","desktop:textAlign:center","desktop:justifyContent:var","desktop:justifyContent:center","desktop:justifyContent:flex-start","desktop:justifyContent:flex-end"],de=e=>se.includes(e),ce=(e,t)=>(le(t)?Object.entries(t):[[void 0,t]]).map((([t,a])=>{const r=fe(t,e,a),n=fe(t,e,"var");return de(r)?r:de(n)?n:""})).join(" "),ge=(e,t)=>(le(t)?Object.entries(t):[[void 0,t]]).map((([t,a])=>{const r=fe(t,e,a),n=fe(t,e,"var");if(de(r)||!de(n))return;return[`--${[me(t),e].filter(Boolean).join("_")}`,"number"==typeof a?`calc(var(--spacing) * ${a})`:a]})).filter(Boolean),me=e=>"mobile"===e?void 0:e,fe=(e,t,a)=>[me(e),t,a].filter((e=>null!=e)).join(":");var be="Box-module_box__Wgbf3";function ue(e){var t,a,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]&&(a=ue(e[t]))&&(r&&(r+=" "),r+=a);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function he(){for(var e,t,a=0,r="";a<arguments.length;)(e=arguments[a++])&&(t=ue(e))&&(r&&(r+=" "),r+=t);return r}r(".Box-module_box__Wgbf3{box-sizing:border-box}");const ve=t=>{var{className:a,children:r}=t,o=n(t,["className","children"]);const{classNames:i,variables:l}=(e=>{const t=Object.entries(e);return{variables:t.flatMap((([e,t])=>ge(e,t))).reduce(((e,[t,a])=>Object.assign(Object.assign({},e),{[t]:a})),{}),classNames:t.map((([e,t])=>ce(e,t))).join(" ")}})(o);return e.createElement("div",Object.assign({className:he(be,a,i),style:l},o),r)};var xe="AnimatedCheckmark-module_svg__VAFDr",ke="AnimatedCheckmark-module_mask__mH-yZ",ye="AnimatedCheckmark-module_polyline__SJRcW",we="AnimatedCheckmark-module_circle__1BrC5",_e="AnimatedCheckmark-module_circleColored__es08R";r(".AnimatedCheckmark-module_svg__VAFDr{--green:#20c997}.AnimatedCheckmark-module_mask__mH-yZ{fill:none;stroke:var(--green);stroke-width:10}.AnimatedCheckmark-module_polyline__SJRcW{stroke-dasharray:100px,100px;stroke-dashoffset:200px;animation:AnimatedCheckmark-module_polyLineAnimation__qwADN .42s ease-in-out .8s backwards;stroke:var(--green);stroke-width:10}@keyframes AnimatedCheckmark-module_polyLineAnimation__qwADN{0%{stroke-dashoffset:100px}to{stroke-dashoffset:0}}.AnimatedCheckmark-module_circle__1BrC5{stroke-dasharray:480px,480px;stroke-dashoffset:960px;animation:AnimatedCheckmark-module_circleAnimation__yaTjr .6s ease-in-out backwards;stroke:var(--green);stroke-width:10}@keyframes AnimatedCheckmark-module_circleAnimation__yaTjr{0%{stroke-dashoffset:480px}to{stroke-dashoffset:960px}}.AnimatedCheckmark-module_circleColored__es08R{stroke-dasharray:480px,480px;stroke-dashoffset:960px;animation:AnimatedCheckmark-module_circleColoredAnimation__AZ-hR 1.2s ease-in-out 1.4s backwards;fill:#effaf8}@keyframes AnimatedCheckmark-module_circleColoredAnimation__AZ-hR{0%{opacity:0}to{opacity:1}}");const Ce=()=>e.createElement("svg",{className:xe,viewBox:"0 0 154 154"},e.createElement("g",{className:ke},e.createElement("circle",{className:we,cx:"77",cy:"77",r:"72"}),e.createElement("circle",{className:_e,cx:"77",cy:"77",r:"72"}),e.createElement("polyline",{className:ye,points:"43.5,77.8 63.7,97.9 112.2,49.4"})));var Ee="BreadCrumbs-module_breadcrumbs__-UMJj";r('.BreadCrumbs-module_breadcrumbs__-UMJj{display:flex;list-style:none;margin:0;padding:0}.BreadCrumbs-module_crumb__SSW-t{display:flex}.BreadCrumbs-module_crumb__SSW-t:not(:last-of-type):after{color:var(--colors-gray);content:"/";line-height:1em;margin:auto;padding:0 var(--spacing-2) 0 0}');var $e="CollapsiblePanel-module_panel__DrLNG",je="CollapsiblePanel-module_isClosed__2qVew",Se="CollapsiblePanel-module_titleActionWrapper__SBw5b";r(".CollapsiblePanel-module_panel__DrLNG.CollapsiblePanel-module_isClosed__2qVew{border-bottom:0}.CollapsiblePanel-module_titleActionWrapper__SBw5b{transform:scaleY(-1)}.CollapsiblePanel-module_titleActionWrapper__SBw5b.CollapsiblePanel-module_isClosed__2qVew{transform:scaleY(1)}");const Ae=t.styled.div`
|
|
49
|
+
`,le=e=>{if("object"!=typeof e)return!1;const t=Object.keys(e);for(const e of ne)if(t.includes(e))return!0;return!1},pe=(e,t)=>{const a=Object.entries(t).filter((([t])=>void 0!==e[t]&&!le(e[t]))).map((([t,a])=>a(e[t])));return[ne.map((a=>{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[a])})).map((([t,r])=>r(e[t][a])));return r.length>0?ie(a,r):void 0})).filter((e=>void 0!==e)),...a]},se=["p:var","p:-1","p:0","p:1","p:2","p:3","p:4","p:5","pt:var","pt:-1","pt:0","pt:1","pt:2","pt:3","pt:4","pt:5","pr:var","pr:-1","pr:0","pr:1","pr:2","pr:3","pr:4","pr:5","pb:var","pb:-1","pb:0","pb:1","pb:2","pb:3","pb:4","pb:5","pl:var","pl:-1","pl:0","pl:1","pl:2","pl:3","pl:4","pl:5","m:var","m:-1","m:0","m:1","m:2","m:3","m:4","m:5","mt:var","mt:-1","mt:0","mt:1","mt:2","mt:3","mt:4","mt:5","mr:var","mr:-1","mr:0","mr:1","mr:2","mr:3","mr:4","mr:5","mb:var","mb:-1","mb:0","mb:1","mb:2","mb:3","mb:4","mb:5","ml:var","ml:-1","ml:0","ml:1","ml:2","ml:3","ml:4","ml:5","display:var","display:block","display:flex","display:none","flexGrow:var","flexGrow:1","flexGrow:0","flexShrink:var","flexShrink:1","flexShrink:0","flexDirection:var","flexDirection:row","flexDirection:column","alignItems:var","alignItems:center","alignItems:flex-start","alignItems:flex-end","textAlign:var","textAlign:left","textAlign:right","textAlign:center","justifyContent:var","justifyContent:center","justifyContent:flex-start","justifyContent:flex-end","tablet:p:var","tablet:p:-1","tablet:p:0","tablet:p:1","tablet:p:2","tablet:p:3","tablet:p:4","tablet:p:5","tablet:pt:var","tablet:pt:-1","tablet:pt:0","tablet:pt:1","tablet:pt:2","tablet:pt:3","tablet:pt:4","tablet:pt:5","tablet:pr:var","tablet:pr:-1","tablet:pr:0","tablet:pr:1","tablet:pr:2","tablet:pr:3","tablet:pr:4","tablet:pr:5","tablet:pb:var","tablet:pb:-1","tablet:pb:0","tablet:pb:1","tablet:pb:2","tablet:pb:3","tablet:pb:4","tablet:pb:5","tablet:pl:var","tablet:pl:-1","tablet:pl:0","tablet:pl:1","tablet:pl:2","tablet:pl:3","tablet:pl:4","tablet:pl:5","tablet:m:var","tablet:m:-1","tablet:m:0","tablet:m:1","tablet:m:2","tablet:m:3","tablet:m:4","tablet:m:5","tablet:mt:var","tablet:mt:-1","tablet:mt:0","tablet:mt:1","tablet:mt:2","tablet:mt:3","tablet:mt:4","tablet:mt:5","tablet:mr:var","tablet:mr:-1","tablet:mr:0","tablet:mr:1","tablet:mr:2","tablet:mr:3","tablet:mr:4","tablet:mr:5","tablet:mb:var","tablet:mb:-1","tablet:mb:0","tablet:mb:1","tablet:mb:2","tablet:mb:3","tablet:mb:4","tablet:mb:5","tablet:ml:var","tablet:ml:-1","tablet:ml:0","tablet:ml:1","tablet:ml:2","tablet:ml:3","tablet:ml:4","tablet:ml:5","tablet:display:var","tablet:display:block","tablet:display:flex","tablet:display:none","tablet:flexGrow:var","tablet:flexGrow:1","tablet:flexGrow:0","tablet:flexShrink:var","tablet:flexShrink:1","tablet:flexShrink:0","tablet:flexDirection:var","tablet:flexDirection:row","tablet:flexDirection:column","tablet:alignItems:var","tablet:alignItems:center","tablet:alignItems:flex-start","tablet:alignItems:flex-end","tablet:textAlign:var","tablet:textAlign:left","tablet:textAlign:right","tablet:textAlign:center","tablet:justifyContent:var","tablet:justifyContent:center","tablet:justifyContent:flex-start","tablet:justifyContent:flex-end","laptop:p:var","laptop:p:-1","laptop:p:0","laptop:p:1","laptop:p:2","laptop:p:3","laptop:p:4","laptop:p:5","laptop:pt:var","laptop:pt:-1","laptop:pt:0","laptop:pt:1","laptop:pt:2","laptop:pt:3","laptop:pt:4","laptop:pt:5","laptop:pr:var","laptop:pr:-1","laptop:pr:0","laptop:pr:1","laptop:pr:2","laptop:pr:3","laptop:pr:4","laptop:pr:5","laptop:pb:var","laptop:pb:-1","laptop:pb:0","laptop:pb:1","laptop:pb:2","laptop:pb:3","laptop:pb:4","laptop:pb:5","laptop:pl:var","laptop:pl:-1","laptop:pl:0","laptop:pl:1","laptop:pl:2","laptop:pl:3","laptop:pl:4","laptop:pl:5","laptop:m:var","laptop:m:-1","laptop:m:0","laptop:m:1","laptop:m:2","laptop:m:3","laptop:m:4","laptop:m:5","laptop:mt:var","laptop:mt:-1","laptop:mt:0","laptop:mt:1","laptop:mt:2","laptop:mt:3","laptop:mt:4","laptop:mt:5","laptop:mr:var","laptop:mr:-1","laptop:mr:0","laptop:mr:1","laptop:mr:2","laptop:mr:3","laptop:mr:4","laptop:mr:5","laptop:mb:var","laptop:mb:-1","laptop:mb:0","laptop:mb:1","laptop:mb:2","laptop:mb:3","laptop:mb:4","laptop:mb:5","laptop:ml:var","laptop:ml:-1","laptop:ml:0","laptop:ml:1","laptop:ml:2","laptop:ml:3","laptop:ml:4","laptop:ml:5","laptop:display:var","laptop:display:block","laptop:display:flex","laptop:display:none","laptop:flexGrow:var","laptop:flexGrow:1","laptop:flexGrow:0","laptop:flexShrink:var","laptop:flexShrink:1","laptop:flexShrink:0","laptop:flexDirection:var","laptop:flexDirection:row","laptop:flexDirection:column","laptop:alignItems:var","laptop:alignItems:center","laptop:alignItems:flex-start","laptop:alignItems:flex-end","laptop:textAlign:var","laptop:textAlign:left","laptop:textAlign:right","laptop:textAlign:center","laptop:justifyContent:var","laptop:justifyContent:center","laptop:justifyContent:flex-start","laptop:justifyContent:flex-end","desktop:p:var","desktop:p:-1","desktop:p:0","desktop:p:1","desktop:p:2","desktop:p:3","desktop:p:4","desktop:p:5","desktop:pt:var","desktop:pt:-1","desktop:pt:0","desktop:pt:1","desktop:pt:2","desktop:pt:3","desktop:pt:4","desktop:pt:5","desktop:pr:var","desktop:pr:-1","desktop:pr:0","desktop:pr:1","desktop:pr:2","desktop:pr:3","desktop:pr:4","desktop:pr:5","desktop:pb:var","desktop:pb:-1","desktop:pb:0","desktop:pb:1","desktop:pb:2","desktop:pb:3","desktop:pb:4","desktop:pb:5","desktop:pl:var","desktop:pl:-1","desktop:pl:0","desktop:pl:1","desktop:pl:2","desktop:pl:3","desktop:pl:4","desktop:pl:5","desktop:m:var","desktop:m:-1","desktop:m:0","desktop:m:1","desktop:m:2","desktop:m:3","desktop:m:4","desktop:m:5","desktop:mt:var","desktop:mt:-1","desktop:mt:0","desktop:mt:1","desktop:mt:2","desktop:mt:3","desktop:mt:4","desktop:mt:5","desktop:mr:var","desktop:mr:-1","desktop:mr:0","desktop:mr:1","desktop:mr:2","desktop:mr:3","desktop:mr:4","desktop:mr:5","desktop:mb:var","desktop:mb:-1","desktop:mb:0","desktop:mb:1","desktop:mb:2","desktop:mb:3","desktop:mb:4","desktop:mb:5","desktop:ml:var","desktop:ml:-1","desktop:ml:0","desktop:ml:1","desktop:ml:2","desktop:ml:3","desktop:ml:4","desktop:ml:5","desktop:display:var","desktop:display:block","desktop:display:flex","desktop:display:none","desktop:flexGrow:var","desktop:flexGrow:1","desktop:flexGrow:0","desktop:flexShrink:var","desktop:flexShrink:1","desktop:flexShrink:0","desktop:flexDirection:var","desktop:flexDirection:row","desktop:flexDirection:column","desktop:alignItems:var","desktop:alignItems:center","desktop:alignItems:flex-start","desktop:alignItems:flex-end","desktop:textAlign:var","desktop:textAlign:left","desktop:textAlign:right","desktop:textAlign:center","desktop:justifyContent:var","desktop:justifyContent:center","desktop:justifyContent:flex-start","desktop:justifyContent:flex-end"],de=e=>se.includes(e),ce=(e,t)=>(le(t)?Object.entries(t):[[void 0,t]]).map((([t,a])=>{const r=fe(t,e,a),n=fe(t,e,"var");return de(r)?r:de(n)?n:""})).join(" "),me=(e,t)=>(le(t)?Object.entries(t):[[void 0,t]]).map((([t,a])=>{const r=fe(t,e,a),n=fe(t,e,"var");if(de(r)||!de(n))return;return[`--${[ge(t),e].filter(Boolean).join("_")}`,"number"==typeof a?`calc(var(--spacing) * ${a})`:a]})).filter(Boolean),ge=e=>"mobile"===e?void 0:e,fe=(e,t,a)=>[ge(e),t,a].filter((e=>null!=e)).join(":");var ue="Box-module_box__Wgbf3";function be(e){var t,a,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]&&(a=be(e[t]))&&(r&&(r+=" "),r+=a);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function he(){for(var e,t,a=0,r="";a<arguments.length;)(e=arguments[a++])&&(t=be(e))&&(r&&(r+=" "),r+=t);return r}r(".Box-module_box__Wgbf3{box-sizing:border-box}");const ve=t=>{var{className:a,children:r}=t,o=n(t,["className","children"]);const{classNames:i,variables:l}=(e=>{const t=Object.entries(e);return{variables:t.flatMap((([e,t])=>me(e,t))).reduce(((e,[t,a])=>Object.assign(Object.assign({},e),{[t]:a})),{}),classNames:t.map((([e,t])=>ce(e,t))).join(" ")}})(o);return e.createElement("div",Object.assign({className:he(ue,a,i),style:l},o),r)};var xe="AnimatedCheckmark-module_svg__VAFDr",ke="AnimatedCheckmark-module_mask__mH-yZ",ye="AnimatedCheckmark-module_polyline__SJRcW",we="AnimatedCheckmark-module_circle__1BrC5",_e="AnimatedCheckmark-module_circleColored__es08R";r(".AnimatedCheckmark-module_svg__VAFDr{--green:#20c997}.AnimatedCheckmark-module_mask__mH-yZ{fill:none;stroke:var(--green);stroke-width:10}.AnimatedCheckmark-module_polyline__SJRcW{stroke-dasharray:100px,100px;stroke-dashoffset:200px;animation:AnimatedCheckmark-module_polyLineAnimation__qwADN .42s ease-in-out .8s backwards;stroke:var(--green);stroke-width:10}@keyframes AnimatedCheckmark-module_polyLineAnimation__qwADN{0%{stroke-dashoffset:100px}to{stroke-dashoffset:0}}.AnimatedCheckmark-module_circle__1BrC5{stroke-dasharray:480px,480px;stroke-dashoffset:960px;animation:AnimatedCheckmark-module_circleAnimation__yaTjr .6s ease-in-out backwards;stroke:var(--green);stroke-width:10}@keyframes AnimatedCheckmark-module_circleAnimation__yaTjr{0%{stroke-dashoffset:480px}to{stroke-dashoffset:960px}}.AnimatedCheckmark-module_circleColored__es08R{stroke-dasharray:480px,480px;stroke-dashoffset:960px;animation:AnimatedCheckmark-module_circleColoredAnimation__AZ-hR 1.2s ease-in-out 1.4s backwards;fill:#effaf8}@keyframes AnimatedCheckmark-module_circleColoredAnimation__AZ-hR{0%{opacity:0}to{opacity:1}}");const Ce=()=>e.createElement("svg",{className:xe,viewBox:"0 0 154 154"},e.createElement("g",{className:ke},e.createElement("circle",{className:we,cx:"77",cy:"77",r:"72"}),e.createElement("circle",{className:_e,cx:"77",cy:"77",r:"72"}),e.createElement("polyline",{className:ye,points:"43.5,77.8 63.7,97.9 112.2,49.4"})));var Ee="BreadCrumbs-module_breadcrumbs__-UMJj";r('.BreadCrumbs-module_breadcrumbs__-UMJj{display:flex;list-style:none;margin:0;padding:0}.BreadCrumbs-module_crumb__SSW-t{display:flex}.BreadCrumbs-module_crumb__SSW-t:not(:last-of-type):after{color:var(--colors-gray);content:"/";line-height:1em;margin:auto;padding:0 var(--spacing-2) 0 0}');var $e="CollapsiblePanel-module_panel__DrLNG",je="CollapsiblePanel-module_isClosed__2qVew",Se="CollapsiblePanel-module_titleActionWrapper__SBw5b";r(".CollapsiblePanel-module_panel__DrLNG.CollapsiblePanel-module_isClosed__2qVew{border-bottom:0}.CollapsiblePanel-module_titleActionWrapper__SBw5b{transform:scaleY(-1)}.CollapsiblePanel-module_titleActionWrapper__SBw5b.CollapsiblePanel-module_isClosed__2qVew{transform:scaleY(1)}");const Ae=t.styled.div`
|
|
50
50
|
background-color: ${e=>e.theme.palette.common.white};
|
|
51
51
|
border-radius: 4px;
|
|
52
52
|
border: 1px solid #dededf;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
`,Oe=t.styled(ve)`
|
|
55
55
|
font-size: 12px;
|
|
56
56
|
font-style: italic;
|
|
57
|
-
`,
|
|
57
|
+
`,Fe=t.styled(ve)`
|
|
58
58
|
${e=>e.panelHasChildren&&t.css`
|
|
59
59
|
border-radius: 4px;
|
|
60
60
|
border-bottom: 1px solid rgba(34, 36, 38, 0.15);
|
|
@@ -64,27 +64,27 @@
|
|
|
64
64
|
cursor: pointer;
|
|
65
65
|
user-select: none;
|
|
66
66
|
`}
|
|
67
|
-
`,
|
|
67
|
+
`,Pe=t.styled(ve)`
|
|
68
68
|
border-radius: 4px;
|
|
69
69
|
background-color: #fff;
|
|
70
70
|
border-top: 1px solid rgba(34, 36, 38, 0.15);
|
|
71
|
-
`,
|
|
71
|
+
`,ze=({children:t,className:a,title:r,titleAction:n,titleMeta:o,onClickTitle:i,footer:l,p:p=3,titleLevel:s=5})=>e.createElement(Ae,{className:a},r&&e.createElement(Fe,{p:3,panelHasChildren:!!t,display:"flex",alignItems:"center",onClick:i},e.createElement(ve,{flexGrow:1},e.createElement(ae,{level:s},r)),o&&e.createElement(Oe,null,o),n&&e.createElement(ve,{pl:5},n)),t&&e.createElement(ve,{p:p},t),l&&e.createElement(Pe,{p:3},l)),De=t.styled.div.withConfig({shouldForwardProp:Z})`
|
|
72
72
|
transform: ${e=>e.isOpen?"translate(0)":"translateY(-101%)"};
|
|
73
73
|
transition-duration: ${e=>e.duration||.25}s;
|
|
74
74
|
transition-property: transform;
|
|
75
75
|
}
|
|
76
|
-
`,
|
|
76
|
+
`,Ie=t.styled.div`
|
|
77
77
|
overflow: hidden;
|
|
78
78
|
`,Me=t.styled.div.withConfig({shouldForwardProp:Z})`
|
|
79
79
|
display: ${e=>e.isHidden?"none":"block"};
|
|
80
|
-
`,
|
|
80
|
+
`,Re=({isOpen:t,children:a,duration:r,onChange:n})=>{const o=(t=>{const[a,r]=e.useState(t);return e.useEffect((()=>{const e=setTimeout((()=>r(t)),0);return()=>clearTimeout(e)}),[t,r]),a})(t),[i,l]=e.useState(!t),p=e.useCallback((()=>{t||(l(!0),null==n||n(!1))}),[t,n]);return e.useEffect((()=>{t&&(l(!1),null==n||n(!0))}),[t,n]),e.createElement(Ie,null,e.createElement(De,{isOpen:o,onTransitionEndCapture:p,duration:r},e.createElement(Me,{isHidden:i},a)))},Te=t=>{var{isInitiallyOpen:a,children:r,titleAction:o}=t,i=n(t,["isInitiallyOpen","children","titleAction"]);const[l,p]=e.useState(a),s=e.useCallback((()=>p(!l)),[p,l]);return e.createElement(ze,Object.assign({className:he($e,!l&&je)},i,{onClickTitle:s,p:0,titleAction:e.createElement("div",{className:he(Se,!l&&je)},o)}),e.createElement(Re,{isOpen:l},e.createElement(ve,{p:3},r)))},Ne=t.keyframes`
|
|
81
81
|
0% {
|
|
82
82
|
opacity: 0;
|
|
83
83
|
}
|
|
84
84
|
100% {
|
|
85
85
|
opacity: 1;
|
|
86
86
|
}
|
|
87
|
-
`,
|
|
87
|
+
`,Ge=t.styled.div`
|
|
88
88
|
position: fixed;
|
|
89
89
|
top: 0;
|
|
90
90
|
left: 0;
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
z-index: 10;
|
|
94
94
|
opacity: 0;
|
|
95
95
|
background-color: rgba(0,0,0,0.6);
|
|
96
|
-
animation: ${
|
|
96
|
+
animation: ${Ne} 0.2s forwards;
|
|
97
97
|
`,Le=t.styled.div`
|
|
98
98
|
position: fixed;
|
|
99
99
|
top: 0;
|
|
@@ -106,12 +106,12 @@
|
|
|
106
106
|
justify-content: center;
|
|
107
107
|
|
|
108
108
|
z-index: 50;
|
|
109
|
-
`,Be=t.styled(
|
|
109
|
+
`,Be=t.styled(ze)`
|
|
110
110
|
box-shadow: 0 8px 8px 0 rgba(34,36,38,.15);
|
|
111
111
|
`,He=t.styled.div`
|
|
112
112
|
line-height: ${e=>e.theme.spacing(6)};
|
|
113
113
|
font-size: 15px;
|
|
114
|
-
`,qe=t=>{var{children:a,handleClickOverlay:r,buttons:o}=t,i=n(t,["children","handleClickOverlay","buttons"]);return e.createElement(e.Fragment,null,e.createElement(
|
|
114
|
+
`,qe=t=>{var{children:a,handleClickOverlay:r,buttons:o}=t,i=n(t,["children","handleClickOverlay","buttons"]);return e.createElement(e.Fragment,null,e.createElement(Ge,{onClick:r}),e.createElement(Le,null,e.createElement(K,null,e.createElement(Be,Object.assign({footer:o?e.createElement(ve,{display:"flex",justifyContent:"flex-end"},o):void 0},i),a&&e.createElement(He,null,a)))))},We=t.styled.div.withConfig({shouldForwardProp:Z})`
|
|
115
115
|
${e=>e.stretch&&"width: 100%;"}
|
|
116
116
|
${e=>e.actionButton||e.stretch?t.css`margin: 0;`:t.css`margin: ${e=>e.theme.spacing(0,2,0,0)};`}
|
|
117
117
|
`,Ve=t.styled.button.withConfig({shouldForwardProp:Z})`
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
|
|
157
157
|
${e=>{if("basic"===e.variant)return"\n border: 1px solid rgba(34,36,38,.15);\n "}}
|
|
158
158
|
|
|
159
|
-
${e=>{var t;const{idle:a,hover:r,active:n}=
|
|
159
|
+
${e=>{var t;const{idle:a,hover:r,active:n}=G.palette.button[null!==(t=e.variant)&&void 0!==t?t:"default"];return`\n color: ${a.text};\n background-color: ${a.background}; \n \n &:not(:disabled) {\n &:hover, &:focus {\n color: ${r.text};\n background-color: ${r.background}; \n } \n \n &:active {\n color: ${n.text};\n background-color: ${n.background}; \n } \n }\n \n `}}
|
|
160
160
|
`,Ye=t.styled.span.withConfig({shouldForwardProp:Z})`
|
|
161
161
|
${e=>"text"!==e.variant&&t.css`
|
|
162
162
|
min-width: ${e.theme.spacing(10)};
|
|
@@ -228,54 +228,7 @@
|
|
|
228
228
|
${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 `}
|
|
229
229
|
|
|
230
230
|
${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 `}
|
|
231
|
-
`,tt=t=>e.createElement(Je,Object.assign({},t));tt.Row=Ke,tt.HeadCell=et,tt.Cell=t=>{var{variant:a,className:r}=t,o=n(t,["variant","className"]);return e.createElement(Qe,Object.assign({className:`${r||""} ${a||"basic"}`},o))};
|
|
232
|
-
${e=>e.firstRow&&t.css` border-top: 0px !important;`}
|
|
233
|
-
${e=>e.width&&t.css` width: ${e.width};`}
|
|
234
|
-
vertical-align: top;
|
|
235
|
-
`,rt=t.styled.div`
|
|
236
|
-
position: relative;
|
|
237
|
-
`,nt=t.styled.span.withConfig({shouldForwardProp:Z})`
|
|
238
|
-
border-radius: 4px;
|
|
239
|
-
border: 1px solid rgba(34,36,38,.15);
|
|
240
|
-
position: absolute;
|
|
241
|
-
box-shadow: 0 8px 8px 0 rgba(34,36,38,.15);
|
|
242
|
-
background-color: ${e=>e.theme.palette.common.white};
|
|
243
|
-
z-index: 100;
|
|
244
|
-
|
|
245
|
-
${e=>"right"===e.align?t.css`right: 0;`:t.css`left: 0;`}
|
|
246
|
-
`,ot=t.styled.ul`
|
|
247
|
-
list-style: none;
|
|
248
|
-
margin: 0;
|
|
249
|
-
padding: ${e=>e.theme.spacing(2,0)};
|
|
250
|
-
`,it=t.styled.li`
|
|
251
|
-
cursor: pointer;
|
|
252
|
-
padding: ${e=>e.theme.spacing(0,3)};
|
|
253
|
-
&:hover {
|
|
254
|
-
background-color: #ddd;
|
|
255
|
-
}
|
|
256
|
-
`,lt=t.styled.input`
|
|
257
|
-
display: none;
|
|
258
|
-
`,pt=t.styled.div.withConfig({shouldForwardProp:Z})`
|
|
259
|
-
display: flex;
|
|
260
|
-
flex-direction: column;
|
|
261
|
-
align-items: center;
|
|
262
|
-
justify-content: center;
|
|
263
|
-
border-radius: 4px;
|
|
264
|
-
height: ${e=>e.theme.spacing(25)};
|
|
265
|
-
|
|
266
|
-
border-radius: 4px;
|
|
267
|
-
border: 1px solid rgba(34,36,38,.15);
|
|
268
|
-
|
|
269
|
-
& > * {
|
|
270
|
-
pointerEvents: none;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
${e=>e.isReadyToDrop&&t.css`
|
|
274
|
-
background-color: #FAFAFA;
|
|
275
|
-
`}
|
|
276
|
-
`,st=t.styled(ve)`
|
|
277
|
-
width: 300px;
|
|
278
|
-
`,dt={laptop:1},ct={mobile:1,laptop:0},gt={laptop:1},mt=t=>{var{stretch:a,laptopWidth:r}=t,o=n(t,["stretch","laptopWidth"]);const i=e.useMemo((()=>({laptop:r})),[r]);return e.createElement(ve,Object.assign({flexGrow:a?gt:void 0,width:i,pt:ct,pb:ct,pl:dt,pr:dt},o))},ft={laptop:-1},bt={mobile:-1,laptop:0},ut={mobile:"block",laptop:"flex"},ht=t.styled(ve)`
|
|
231
|
+
`,tt=t=>e.createElement(Je,Object.assign({},t));tt.Row=Ke,tt.HeadCell=et,tt.Cell=t=>{var{variant:a,className:r}=t,o=n(t,["variant","className"]);return e.createElement(Qe,Object.assign({className:`${r||""} ${a||"basic"}`},o))};var at={row:"Details-module_row__0d8vi",isFirstRow:"Details-module_isFirstRow__iVno4"};r(".Details-module_row__0d8vi{vertical-align:top}.Details-module_row__0d8vi.Details-module_isFirstRow__iVno4{border-top:0!important}");var rt="Dropdown-module_wrapper__79ooc",nt="Dropdown-module_dropper__uVdEf",ot="Dropdown-module_left__JYKmP",it="Dropdown-module_right__UefzB",lt="Dropdown-module_dropdownMenu__5R4vo",pt="Dropdown-module_dropdownMenuItem__dj4Gp";r(".Dropdown-module_wrapper__79ooc{position:relative}.Dropdown-module_dropper__uVdEf{background-color:var(--common-white);border:1px solid #22242626;border-radius:4px;box-shadow:0 8px 8px 0 #22242626;position:absolute;z-index:100}.Dropdown-module_dropper__uVdEf.Dropdown-module_left__JYKmP{left:0}.Dropdown-module_dropper__uVdEf.Dropdown-module_right__UefzB{right:0}.Dropdown-module_dropdownMenu__5R4vo{list-style:none;margin:0;padding:calc(var(--spacing)*2) 0}.Dropdown-module_dropdownMenuItem__dj4Gp{cursor:pointer;padding:0 calc(var(--spacing)*3)}.Dropdown-module_dropdownMenuItem__dj4Gp:hover{background-color:#ddd}");var st="Dropzone-module_dropzone__xBUrY",dt="Dropzone-module_isReadyToDrop__I9ik7",ct="Dropzone-module_hiddenInput__7v6dW";r(".Dropzone-module_dropzone__xBUrY{align-items:center;border:1px solid #22242626;border-radius:4px;display:flex;flex-direction:column;height:calc(var(--spacing)*25);justify-content:center}.Dropzone-module_dropzone__xBUrY>*{pointerEvents:none}.Dropzone-module_dropzone__xBUrY.Dropzone-module_isReadyToDrop__I9ik7{background-color:#fafafa}.Dropzone-module_hiddenInput__7v6dW{display:none}");var mt="Feedback-module_box__ESWf9";r(".Feedback-module_box__ESWf9{width:300px}");const gt={laptop:1},ft={mobile:1,laptop:0},ut={laptop:1},bt=t=>{var{stretch:a,laptopWidth:r}=t,o=n(t,["stretch","laptopWidth"]);const i=e.useMemo((()=>({laptop:r})),[r]);return e.createElement(ve,Object.assign({flexGrow:a?ut:void 0,width:i,pt:ft,pb:ft,pl:gt,pr:gt},o))},ht={laptop:-1},vt={mobile:-1,laptop:0},xt={mobile:"block",laptop:"flex"};var kt="Footer-module_box__KZvsx";r(".Footer-module_box__KZvsx{background-color:var(--common-white);border-top:1px solid #ddd;box-shadow:0 2px 3px #0000000a;box-sizing:border-box}");const yt=t.styled(ve)`
|
|
279
232
|
float: left;
|
|
280
233
|
|
|
281
234
|
height: 100%;
|
|
@@ -308,22 +261,14 @@
|
|
|
308
261
|
opacity: ${e=>e.isDesktopMenuOpen?"1":"0"};
|
|
309
262
|
}
|
|
310
263
|
`)}
|
|
311
|
-
`,
|
|
312
|
-
background-color: ${e=>e.theme.palette.common.white};
|
|
313
|
-
border-top: 1px solid #dddddd;
|
|
314
|
-
box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.04);
|
|
315
|
-
box-sizing: border-box;
|
|
316
|
-
`,kt=({children:t})=>e.createElement(xt,{pt:2,pb:2,pr:5,pl:{mobile:5,laptop:20}},t),yt=t.styled(ve)`
|
|
317
|
-
overflow-x: auto;
|
|
318
|
-
overflow-y: hidden;
|
|
319
|
-
`,wt=t.styled(Ue)`
|
|
264
|
+
`,wt=t=>{const{closeSideMenu:a,openSideMenu:r,isSideMenuOpen:n}=W();return e.createElement(yt,Object.assign({isDesktopMenuOpen:n},t,{onMouseEnter:r,onMouseLeave:a}))},_t=({children:t})=>e.createElement(ve,{pt:2,pb:2,pr:5,pl:{mobile:5,laptop:20},className:kt},t);var Ct="HorizontalScroller-module_box__W07vp";r(".HorizontalScroller-module_box__W07vp{overflow-x:auto;overflow-y:hidden}");const Et=t.styled(Ue)`
|
|
320
265
|
margin-right: ${e=>e.theme.spacing(3)};
|
|
321
266
|
${ie("laptop","display: none;")}
|
|
322
|
-
|
|
267
|
+
`,$t=t.styled.ul`
|
|
323
268
|
padding: 0;
|
|
324
269
|
margin: 0;
|
|
325
270
|
list-style: none;
|
|
326
|
-
`,
|
|
271
|
+
`,jt=t.styled.li.withConfig({shouldForwardProp:Z})`
|
|
327
272
|
padding: ${e=>e.theme.spacing(.5,5)};
|
|
328
273
|
|
|
329
274
|
${e=>e.isOpen&&t.css`
|
|
@@ -348,9 +293,9 @@
|
|
|
348
293
|
color: ${e.theme.palette.common.white};
|
|
349
294
|
}
|
|
350
295
|
`}
|
|
351
|
-
`,
|
|
296
|
+
`,St=t.styled(Ue)`
|
|
352
297
|
${ie("laptop","display: none;")}
|
|
353
|
-
|
|
298
|
+
`,At=t.styled(ve)`
|
|
354
299
|
display: none;
|
|
355
300
|
${ie("laptop","display: flex;")}
|
|
356
301
|
|
|
@@ -364,10 +309,10 @@
|
|
|
364
309
|
margin: 0 auto;
|
|
365
310
|
}
|
|
366
311
|
|
|
367
|
-
${
|
|
312
|
+
${yt}:hover & {
|
|
368
313
|
display:none;
|
|
369
314
|
}
|
|
370
|
-
`,
|
|
315
|
+
`,Ot=t.styled(ve)`
|
|
371
316
|
box-sizing: border-box;
|
|
372
317
|
color: ${e=>e.theme.palette.button.text.idle.text};
|
|
373
318
|
font-weight: bold;
|
|
@@ -385,9 +330,9 @@
|
|
|
385
330
|
${ie("laptop",t.css`
|
|
386
331
|
min-height: ${e=>e.theme.spacing(12)};
|
|
387
332
|
`)}
|
|
388
|
-
`,
|
|
333
|
+
`,Ft=()=>{const[t,a]=e.useState(window.innerWidth);e.useEffect((()=>{const e=()=>a(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])},Pt=t.styled.div`
|
|
389
334
|
display: flex;
|
|
390
|
-
`,
|
|
335
|
+
`,zt=t.styled.button.withConfig({shouldForwardProp:Z})`
|
|
391
336
|
user-select:none;
|
|
392
337
|
cursor: pointer;
|
|
393
338
|
|
|
@@ -406,29 +351,29 @@
|
|
|
406
351
|
}
|
|
407
352
|
|
|
408
353
|
${e=>!e.disabled&&"\n &:hover { \n background-color: #E9E9E9; \n }\n "}
|
|
409
|
-
`,
|
|
354
|
+
`,Dt=t.styled.div.withConfig({shouldForwardProp:Z})`
|
|
410
355
|
display: flex;
|
|
411
356
|
border-radius: ${e=>e.theme.spacing(1)};
|
|
412
357
|
padding: ${e=>e.theme.spacing(4)};
|
|
413
358
|
background-color: ${e=>e.theme.palette.colors[e.backgroundColor]};
|
|
414
359
|
box-sizing: border-box;
|
|
415
360
|
height: 100%;
|
|
416
|
-
`,
|
|
361
|
+
`,It=t.styled.div`
|
|
417
362
|
text-transform: uppercase;
|
|
418
363
|
color: ${e=>e.theme.palette.common.white};
|
|
419
364
|
font-size: ${e=>e.theme.spacing(3)};
|
|
420
|
-
`,
|
|
365
|
+
`,Mt=t.styled.div.withConfig({shouldForwardProp:Z})`
|
|
421
366
|
color: ${e=>e.theme.palette.common.white};
|
|
422
367
|
font-weight: bold;
|
|
423
368
|
font-size: ${e=>e.theme.spacing(e.smallerValue?5.5:7.5)};
|
|
424
|
-
`,
|
|
369
|
+
`,Rt=t.styled.div`
|
|
425
370
|
margin: ${e=>e.theme.spacing(1)} 0 auto 0;
|
|
426
371
|
& svg {
|
|
427
372
|
height: 100%;
|
|
428
373
|
width: ${e=>e.theme.spacing(10)};
|
|
429
374
|
color: white;
|
|
430
375
|
}
|
|
431
|
-
`,
|
|
376
|
+
`,Tt=t.styled(ve)`
|
|
432
377
|
|
|
433
378
|
padding: ${e=>e.theme.spacing(2.5,5)};
|
|
434
379
|
|
|
@@ -454,22 +399,22 @@
|
|
|
454
399
|
|
|
455
400
|
${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 `}
|
|
456
401
|
|
|
457
|
-
`,
|
|
402
|
+
`,Nt=t.styled(ve)`
|
|
458
403
|
background-color: ${e=>e.theme.palette.common.white};
|
|
459
404
|
border: 1px solid rgba(34,36,38,.15);
|
|
460
405
|
border-top: 0px;
|
|
461
|
-
`,
|
|
406
|
+
`,Gt=t.styled(ve)`
|
|
462
407
|
display: flex;
|
|
463
408
|
border-bottom: 1px solid rgba(34,36,38,.15);
|
|
464
|
-
`,
|
|
409
|
+
`,Lt=t.styled(ze)`
|
|
465
410
|
box-shadow: none;
|
|
466
|
-
`,
|
|
411
|
+
`,Bt=t.styled(ve)`
|
|
467
412
|
display: flex;
|
|
468
413
|
|
|
469
414
|
&:last-of-type .line:before {
|
|
470
415
|
background: none;
|
|
471
416
|
}
|
|
472
|
-
`,
|
|
417
|
+
`,Ht=t.styled(ve)`
|
|
473
418
|
position: relative;
|
|
474
419
|
margin-right: ${e=>e.theme.spacing(4)};
|
|
475
420
|
top: 4px;
|
|
@@ -484,7 +429,7 @@
|
|
|
484
429
|
width: ${e=>e.theme.spacing(1)};
|
|
485
430
|
}
|
|
486
431
|
|
|
487
|
-
`,
|
|
432
|
+
`,qt=t.styled.div.withConfig({shouldForwardProp:Z})`
|
|
488
433
|
position: relative;
|
|
489
434
|
background-color: ${e=>e.color};
|
|
490
435
|
color: #fff;
|
|
@@ -501,14 +446,14 @@
|
|
|
501
446
|
left: 50%;
|
|
502
447
|
transform: translate(-50%, -50%);
|
|
503
448
|
}
|
|
504
|
-
`,
|
|
449
|
+
`,Wt=t.styled(ve)`
|
|
505
450
|
background-color: #ffffff;
|
|
506
451
|
border-bottom: 1px solid #dddddd;
|
|
507
452
|
box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.04);
|
|
508
453
|
box-sizing: border-box;
|
|
509
|
-
`,
|
|
454
|
+
`,Vt=({left:t,right:a})=>e.createElement(Wt,null,e.createElement(ve,{display:"flex",alignItems:"center",pb:1,pt:1,pr:5,pl:{mobile:5,laptop:20}},e.createElement(ve,{flexGrow:1,display:"flex",pl:2},t),e.createElement(ve,{flexGrow:1,display:"flex",justifyContent:"flex-end"},a))),Yt=t.styled.label`
|
|
510
455
|
position: relative;
|
|
511
|
-
`,
|
|
456
|
+
`,Ut=t.styled.input.withConfig({shouldForwardProp:Z})`
|
|
512
457
|
position: absolute;
|
|
513
458
|
top: 0;
|
|
514
459
|
left: 0;
|
|
@@ -577,11 +522,11 @@
|
|
|
577
522
|
border-color: #e0b4b4;
|
|
578
523
|
color: #9f3a38;
|
|
579
524
|
}
|
|
580
|
-
`,
|
|
525
|
+
`,Xt=t.styled.span.withConfig({shouldForwardProp:Z})`
|
|
581
526
|
${e=>e.dimmed?t.css`
|
|
582
527
|
color: #999c9e;
|
|
583
528
|
`:""}
|
|
584
|
-
`,
|
|
529
|
+
`,Zt=e.forwardRef(((t,a)=>{var{options:r,spacing:o=1,name:i,dimmed:l}=t,p=n(t,["options","spacing","name","dimmed"]);return e.createElement(e.Fragment,null,Object.entries(r).map((([t,r])=>e.createElement(ve,{key:t,mt:o,mb:o},e.createElement(Yt,{key:t},e.createElement(Ut,Object.assign({type:"checkbox",value:t,name:i,ref:a},p)),e.createElement(Xt,{dimmed:l},r))))))})),Jt=t.css`
|
|
585
530
|
padding: .67857143em 1em;
|
|
586
531
|
line-height: 1.21428571em;
|
|
587
532
|
border-radius: 4px;
|
|
@@ -629,15 +574,15 @@
|
|
|
629
574
|
&.error:focus::placeholder {
|
|
630
575
|
color: #da9796;
|
|
631
576
|
}
|
|
632
|
-
`,
|
|
633
|
-
${
|
|
634
|
-
`,
|
|
635
|
-
${
|
|
577
|
+
`,Kt=t.styled.input.withConfig({shouldForwardProp:Z})`
|
|
578
|
+
${Jt}
|
|
579
|
+
`,Qt=t.styled.textarea.withConfig({shouldForwardProp:Z})`
|
|
580
|
+
${Jt}
|
|
636
581
|
height: 100%;
|
|
637
|
-
`,
|
|
582
|
+
`,ea=e.forwardRef(((t,a)=>{var{multiline:r=!1}=t,o=n(t,["multiline"]);return r?e.createElement(Qt,Object.assign({ref:a},o)):e.createElement(Kt,Object.assign({ref:a,type:"text"},o))})),ta=t.styled.div`
|
|
638
583
|
position: relative;
|
|
639
584
|
display: flex;
|
|
640
|
-
`,
|
|
585
|
+
`,aa=t.styled.input.withConfig({shouldForwardProp:Z})`
|
|
641
586
|
position: absolute;
|
|
642
587
|
left: 0;
|
|
643
588
|
right: 0;
|
|
@@ -645,7 +590,7 @@
|
|
|
645
590
|
bottom: 0;
|
|
646
591
|
width: 100%;
|
|
647
592
|
opacity:0;
|
|
648
|
-
`,
|
|
593
|
+
`,ra=t.styled(Ue)`
|
|
649
594
|
height: 40px;
|
|
650
595
|
|
|
651
596
|
.has-error & {
|
|
@@ -653,10 +598,10 @@
|
|
|
653
598
|
border-color: #e0b4b4;
|
|
654
599
|
color: #9f3a38;
|
|
655
600
|
}
|
|
656
|
-
`,
|
|
601
|
+
`,na=t.styled(ea)`
|
|
657
602
|
flex: 1;
|
|
658
603
|
padding-right: ${e=>e.theme.spacing(8)}
|
|
659
|
-
`,
|
|
604
|
+
`,oa=t.styled.button`
|
|
660
605
|
background-color: transparent;
|
|
661
606
|
border: 0;
|
|
662
607
|
outline: 0;
|
|
@@ -684,9 +629,9 @@
|
|
|
684
629
|
line-height: 38px;
|
|
685
630
|
padding: 0 8px;
|
|
686
631
|
}
|
|
687
|
-
`,
|
|
632
|
+
`,ia=e.forwardRef(((t,a)=>{var{className:r,placeholder:o,chooseFileLabel:i="Choose file",changeFileLabel:l="Change file",onClear:p}=t,s=n(t,["className","placeholder","chooseFileLabel","changeFileLabel","onClear"]);const[d,c]=e.useState(),[m,g]=e.useState(""),f=e.useCallback((e=>{var t;const a=(null==e?void 0:e.target).files;g((null===(t=null==a?void 0:a[0])||void 0===t?void 0:t.name)||"")}),[]),u=e.useCallback((()=>{d&&(d.value="",d.files=null,d.dispatchEvent(new Event("change",{bubbles:!0})),p&&p())}),[d,p]),b=e.useMemo((()=>e=>{null==e||e.addEventListener("change",f),c(e),"function"==typeof a&&(null==a||a(e))}),[a,f]);return e.createElement(ta,null,e.createElement(aa,Object.assign({type:"file",ref:b},s)),e.createElement(ra,{variant:"basic"},m?l:i),e.createElement(na,{placeholder:o,className:r,disabled:!0,value:m}),!!m&&p&&e.createElement(oa,{"data-testid":"file-clear",onClick:u}))})),la=t.styled.div`
|
|
688
633
|
position: relative;
|
|
689
|
-
`,
|
|
634
|
+
`,pa=t.styled.select.withConfig({shouldForwardProp:Z})`
|
|
690
635
|
width: 100%;
|
|
691
636
|
|
|
692
637
|
padding: .67857143em 1em;
|
|
@@ -711,7 +656,7 @@
|
|
|
711
656
|
&.error~div {
|
|
712
657
|
color: #9f3a38;
|
|
713
658
|
}
|
|
714
|
-
`,
|
|
659
|
+
`,sa=t.styled.div`
|
|
715
660
|
pointer-events: none;
|
|
716
661
|
padding: 0 1em;
|
|
717
662
|
position:absolute;
|
|
@@ -720,18 +665,18 @@
|
|
|
720
665
|
right: 0;
|
|
721
666
|
font-size: 17px;
|
|
722
667
|
line-height: 40px;
|
|
723
|
-
`,
|
|
668
|
+
`,da=e.forwardRef(((t,a)=>{var{options:r}=t,o=n(t,["options"]);const i=Array.isArray(r)?r:Object.entries(r);return e.createElement(la,null,e.createElement(pa,Object.assign({ref:a},o),i.map((([t,a])=>e.createElement("option",{key:t,value:t},a)))),e.createElement(sa,null,"▾"))})),ca=e=>e.length>=8,ma=e=>/\d/.test(e),ga=e=>/[a-z]/.test(e)&&/[A-Z]/.test(e),fa=e=>/[-’/`~!#*$@_%+=.,^&(){}[\]|;:”<>?\\]/.test(e),ua=[ca,ma,ga,fa],ba=ua.length+1,ha=e=>ua.map((t=>t(e))).reduce(((e,t)=>t?e+1:e),1),va=t.styled.div`
|
|
724
669
|
margin-top: ${e=>e.theme.spacing(1)};
|
|
725
670
|
height: 3px;
|
|
726
671
|
background-color: #f5f5f5;
|
|
727
672
|
border-radius: 4px;
|
|
728
673
|
box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
|
|
729
|
-
`,
|
|
730
|
-
width: ${e=>e.score?e.score/
|
|
674
|
+
`,xa=t.styled.div.withConfig({shouldForwardProp:Z})`
|
|
675
|
+
width: ${e=>e.score?e.score/ba*100:0}%;
|
|
731
676
|
height: 100%;
|
|
732
677
|
background-color: ${e=>e.score<=2?"#e90f10":e.score<=3?"#ffad00":"#02b502"} ;
|
|
733
678
|
transition: width .6s ease, background-color .6s ease;
|
|
734
|
-
`,
|
|
679
|
+
`,ka=e.forwardRef(((t,a)=>{const[r,n]=e.useState(0),o=e.useCallback((e=>{const t=e.target;n(t.value?ha(t.value):0)}),[]),i=e.useMemo((()=>e=>{null==e||e.addEventListener("keyup",o),"function"==typeof a&&(null==a||a(e))}),[a,o]);return e.createElement(e.Fragment,null,e.createElement(ea,Object.assign({},t,{type:"password",ref:i})),e.createElement(va,null,e.createElement(xa,{score:r})))})),ya=t.styled.div.withConfig({shouldForwardProp:Z})`
|
|
735
680
|
margin: 0px 8px;
|
|
736
681
|
|
|
737
682
|
${e=>void 0!==e.rowOffset&&t.css`
|
|
@@ -755,28 +700,28 @@
|
|
|
755
700
|
grid-column-end: span ${e.columnSpan};
|
|
756
701
|
-ms-grid-column-span: ${e.columnSpan};
|
|
757
702
|
`)),r})(a,null!==(r=e.rowOffset)&&void 0!==r?r:0)}})}
|
|
758
|
-
`;
|
|
703
|
+
`;ya.displayName="FormGridCell";const wa=t.styled.label.withConfig({shouldForwardProp:Z})`
|
|
759
704
|
display: block;
|
|
760
705
|
color: ${e=>e.error?e.theme.palette.form.error:e.theme.palette.common.black} ;
|
|
761
706
|
font-weight: bold;
|
|
762
707
|
margin: ${e=>e.theme.spacing(0,0,1,0)};
|
|
763
708
|
line-height: 1.4em;
|
|
764
709
|
font-size: .92857143em;
|
|
765
|
-
`,
|
|
710
|
+
`,_a=t.styled.div.withConfig({shouldForwardProp:Z})`
|
|
766
711
|
color: ${e=>e.error?"#da9796;":e.theme.palette.form.hint};
|
|
767
712
|
margin: ${e=>e.theme.spacing(-1,0,1,0)};
|
|
768
713
|
line-height: 1.4em;
|
|
769
714
|
font-size: .92857143em;
|
|
770
|
-
`,
|
|
715
|
+
`,Ca=t.styled.span.withConfig({shouldForwardProp:Z})`
|
|
771
716
|
color: ${e=>e.theme.palette.form.hint};
|
|
772
|
-
`,
|
|
717
|
+
`,Ea=t.styled.div.withConfig({shouldForwardProp:Z})`
|
|
773
718
|
color: ${e=>e.theme.palette.form.error};
|
|
774
719
|
margin: ${e=>e.theme.spacing(1,0,0,0)};
|
|
775
720
|
font-weight: bold;
|
|
776
721
|
font-style: italic;
|
|
777
722
|
line-height: 1.4em;
|
|
778
723
|
font-size: .92857143em;
|
|
779
|
-
|
|
724
|
+
`,$a=({position:e,align:t,label:a,hint:r,error:n,isRequired:o})=>({position:e,align:t,label:a,hint:r,error:n,isRequired:o}),ja=({position:t,align:a,label:r,hint:n,error:o,isRequired:i,children:l})=>e.createElement(e.Fragment,null,e.createElement(ya,{position:t,align:a,className:"form-grid-cell__label-hint"},r&&e.createElement(wa,{error:o},r,i&&e.createElement(Ca,null," *")),n&&e.createElement(_a,{error:o},n)),e.createElement(ya,{position:t,align:a,rowOffset:1,className:he({"form-grid-cell__field-error":!0,"has-error":!!o})},l,o&&e.createElement(Ea,null,o))),Sa=t.styled.div.withConfig({shouldForwardProp:Z})`
|
|
780
725
|
margin: 0 -8px -16px -8px;
|
|
781
726
|
|
|
782
727
|
display: -ms-grid;
|
|
@@ -788,23 +733,23 @@
|
|
|
788
733
|
-ms-grid-columns: ${e};
|
|
789
734
|
grid-template-columns: ${e};
|
|
790
735
|
`})}
|
|
791
|
-
`;
|
|
736
|
+
`;Sa.displayName="FormGrid";const Aa=t.styled(ve)`
|
|
792
737
|
background-color: #f3f3f4;
|
|
793
|
-
`,
|
|
738
|
+
`,Oa=t.styled(ve)`
|
|
794
739
|
position: relative;
|
|
795
|
-
`,
|
|
740
|
+
`,Fa=t.styled(ve)`
|
|
796
741
|
position: absolute;
|
|
797
742
|
height: 100%;
|
|
798
743
|
z-index: 50;
|
|
799
744
|
pointer-events: none;
|
|
800
|
-
`,
|
|
745
|
+
`,Pa=t.styled(ve)`
|
|
801
746
|
height: 100%;
|
|
802
|
-
`,
|
|
747
|
+
`,za=t.styled(ve)`
|
|
803
748
|
background-color: ${e=>e.baseColor||"white"};
|
|
804
749
|
position: absolute;
|
|
805
750
|
min-width: 100%;
|
|
806
751
|
min-height: 100%;
|
|
807
|
-
`,
|
|
752
|
+
`,Da=t.styled.div.withConfig({shouldForwardProp:Z})`
|
|
808
753
|
position: absolute;
|
|
809
754
|
top: 0;
|
|
810
755
|
left: 0;
|
|
@@ -814,16 +759,16 @@
|
|
|
814
759
|
opacity: ${e=>{var t;return null!==(t=e.opacity)&&void 0!==t?t:1}} ;
|
|
815
760
|
background: url("${e=>e.imageUrl}");
|
|
816
761
|
background-size: cover;
|
|
817
|
-
`,
|
|
762
|
+
`,Ia=t.styled(K)`
|
|
818
763
|
z-index: 10;
|
|
819
764
|
margin: auto auto;
|
|
820
|
-
`,
|
|
765
|
+
`,Ma=t.styled(ze)`
|
|
821
766
|
box-shadow: 0 8px 8px 0 rgba(34,36,38,.15);
|
|
822
767
|
min-width: 280px;
|
|
823
|
-
`,
|
|
768
|
+
`,Ra=t.styled.img`
|
|
824
769
|
display:none;
|
|
825
770
|
position: absolute;
|
|
826
771
|
left: 0;
|
|
827
772
|
top: ${e=>e.theme.spacing(8)};
|
|
828
773
|
${ie("tablet","display: block;")}
|
|
829
|
-
`;var Da="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ma(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ta=1/0,Ra=9007199254740991,Ga=17976931348623157e292,Na=NaN,La="[object Function]",Ba="[object GeneratorFunction]",Ha="[object Symbol]",qa=/^\s+|\s+$/g,Wa=/^[-+]0x[0-9a-f]+$/i,Va=/^0b[01]+$/i,Ya=/^0o[0-7]+$/i,Ua=/^(?:0|[1-9]\d*)$/,Xa=parseInt,Za=Object.prototype.toString,Ja=Math.ceil,Ka=Math.max;function Qa(e,t,a){var r=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(a=a>n?n:a)<0&&(a+=n),n=t>a?0:a-t>>>0,t>>>=0;for(var o=Array(n);++r<n;)o[r]=e[r+t];return o}function er(e,t,a){if(!tr(a))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<=Ra}(e.length)&&!function(e){var t=tr(e)?Za.call(e):"";return t==La||t==Ba}(e)}(a)&&function(e,t){return!!(t=null==t?Ra:t)&&("number"==typeof e||Ua.test(e))&&e>-1&&e%1==0&&e<t}(t,a.length):"string"==r&&t in a)&&function(e,t){return e===t||e!=e&&t!=t}(a[t],e)}function tr(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var ar=Ma((function(e,t,a){t=(a?er(e,t,a):void 0===t)?1:Ka(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)&&Za.call(e)==Ha}(e))return Na;if(tr(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tr(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(qa,"");var a=Va.test(e);return a||Ya.test(e)?Xa(e.slice(2),a?2:8):Wa.test(e)?Na:+e}(e),e===Ta||e===-Ta){return(e<0?-1:1)*Ga}return e==e?e:0}(e),a=t%1;return t==t?a?t-a:t:0}(t),0);var r=e?e.length:0;if(!r||t<1)return[];for(var n=0,o=0,i=Array(Ja(r/t));n<r;)i[o++]=Qa(e,n,n+=t);return i}));class rr{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 rr(this.grid.slice(e.y,t.y+1).map((a=>a.slice(e.x,t.x+1))))}getCoordinatesForValue(e){const t=[],a=[];return this.grid.forEach(((r,n)=>{r.forEach(((r,o)=>{r===e&&(t.push(o),a.push(n))}))})),{topLeft:{x:Math.min(...t),y:Math.min(...a)},bottomRight:{x:Math.max(...t),y:Math.max(...a)}}}}var nr="__lodash_hash_undefined__",or=9007199254740991,ir="[object Arguments]",lr="[object Function]",pr="[object GeneratorFunction]",sr=/^\[object .+?Constructor\]$/,dr="object"==typeof Da&&Da&&Da.Object===Object&&Da,cr="object"==typeof self&&self&&self.Object===Object&&self,gr=dr||cr||Function("return this")();function mr(e,t){return!!(e?e.length:0)&&function(e,t,a){if(t!=t)return function(e,t,a,r){var n=e.length,o=a+(r?1:-1);for(;r?o--:++o<n;)if(t(e[o],o,e))return o;return-1}(e,ur,a);var r=a-1,n=e.length;for(;++r<n;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function fr(e,t,a){for(var r=-1,n=e?e.length:0;++r<n;)if(a(t,e[r]))return!0;return!1}function br(e,t){for(var a=-1,r=t.length,n=e.length;++a<r;)e[n+a]=t[a];return e}function ur(e){return e!=e}function hr(e,t){return e.has(t)}var vr,xr=Array.prototype,kr=Function.prototype,yr=Object.prototype,wr=gr["__core-js_shared__"],_r=(vr=/[^.]+$/.exec(wr&&wr.keys&&wr.keys.IE_PROTO||""))?"Symbol(src)_1."+vr:"",Cr=kr.toString,Er=yr.hasOwnProperty,$r=yr.toString,jr=RegExp("^"+Cr.call(Er).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Sr=gr.Symbol,Ar=yr.propertyIsEnumerable,Or=xr.splice,Pr=Sr?Sr.isConcatSpreadable:void 0,Fr=Math.max,Ir=qr(gr,"Map"),zr=qr(Object,"create");function Dr(e){var t=-1,a=e?e.length:0;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function Mr(e){var t=-1,a=e?e.length:0;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function Tr(e){var t=-1,a=e?e.length:0;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function Rr(e){var t=-1,a=e?e.length:0;for(this.__data__=new Tr;++t<a;)this.add(e[t])}function Gr(e,t){for(var a,r,n=e.length;n--;)if((a=e[n][0])===(r=t)||a!=a&&r!=r)return n;return-1}function Nr(e,t,a,r){var n,o=-1,i=mr,l=!0,p=e.length,s=[],d=t.length;if(!p)return s;a&&(t=function(e,t){for(var a=-1,r=e?e.length:0,n=Array(r);++a<r;)n[a]=t(e[a],a,e);return n}(t,(n=a,function(e){return n(e)}))),r?(i=fr,l=!1):t.length>=200&&(i=hr,l=!1,t=new Rr(t));e:for(;++o<p;){var c=e[o],g=a?a(c):c;if(c=r||0!==c?c:0,l&&g==g){for(var m=d;m--;)if(t[m]===g)continue e;s.push(c)}else i(t,g,r)||s.push(c)}return s}function Lr(e,t,a,r,n){var o=-1,i=e.length;for(a||(a=Wr),n||(n=[]);++o<i;){var l=e[o];t>0&&a(l)?t>1?Lr(l,t-1,a,r,n):br(n,l):r||(n[n.length]=l)}return n}function Br(e){if(!Qr(e)||(t=e,_r&&_r in t))return!1;var t,a=Kr(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?jr:sr;return a.test(function(e){if(null!=e){try{return Cr.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function Hr(e,t){var a,r,n=e.__data__;return("string"==(r=typeof(a=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==a:null===a)?n["string"==typeof t?"string":"hash"]:n.map}function qr(e,t){var a=function(e,t){return null==e?void 0:e[t]}(e,t);return Br(a)?a:void 0}function Wr(e){return Xr(e)||function(e){return Jr(e)&&Er.call(e,"callee")&&(!Ar.call(e,"callee")||$r.call(e)==ir)}(e)||!!(Pr&&e&&e[Pr])}Dr.prototype.clear=function(){this.__data__=zr?zr(null):{}},Dr.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Dr.prototype.get=function(e){var t=this.__data__;if(zr){var a=t[e];return a===nr?void 0:a}return Er.call(t,e)?t[e]:void 0},Dr.prototype.has=function(e){var t=this.__data__;return zr?void 0!==t[e]:Er.call(t,e)},Dr.prototype.set=function(e,t){return this.__data__[e]=zr&&void 0===t?nr:t,this},Mr.prototype.clear=function(){this.__data__=[]},Mr.prototype.delete=function(e){var t=this.__data__,a=Gr(t,e);return!(a<0)&&(a==t.length-1?t.pop():Or.call(t,a,1),!0)},Mr.prototype.get=function(e){var t=this.__data__,a=Gr(t,e);return a<0?void 0:t[a][1]},Mr.prototype.has=function(e){return Gr(this.__data__,e)>-1},Mr.prototype.set=function(e,t){var a=this.__data__,r=Gr(a,e);return r<0?a.push([e,t]):a[r][1]=t,this},Tr.prototype.clear=function(){this.__data__={hash:new Dr,map:new(Ir||Mr),string:new Dr}},Tr.prototype.delete=function(e){return Hr(this,e).delete(e)},Tr.prototype.get=function(e){return Hr(this,e).get(e)},Tr.prototype.has=function(e){return Hr(this,e).has(e)},Tr.prototype.set=function(e,t){return Hr(this,e).set(e,t),this},Rr.prototype.add=Rr.prototype.push=function(e){return this.__data__.set(e,nr),this},Rr.prototype.has=function(e){return this.__data__.has(e)};var Vr,Yr,Ur=(Vr=function(e,t){return Jr(e)?Nr(e,Lr(t,1,Jr,!0)):[]},Yr=Fr(void 0===Yr?Vr.length-1:Yr,0),function(){for(var e=arguments,t=-1,a=Fr(e.length-Yr,0),r=Array(a);++t<a;)r[t]=e[Yr+t];t=-1;for(var n=Array(Yr+1);++t<Yr;)n[t]=e[t];return n[Yr]=r,function(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}(Vr,this,n)});var Xr=Array.isArray;function Zr(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=or}(e.length)&&!Kr(e)}function Jr(e){return function(e){return!!e&&"object"==typeof e}(e)&&Zr(e)}function Kr(e){var t=Qr(e)?$r.call(e):"";return t==lr||t==pr}function Qr(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var en=Ma(Ur);const tn=(e,t)=>{const a=[...Array(e)].map((e=>"1fr"));return t&&a.push("auto"),a.join(" ")};class an{constructor(e,t={}){this.fields=e,this.columns=t}setGrid(e,t,r){"object"==typeof this.columns&&(this.columns[e]=t);const n=new rr(r);((e,t)=>{const a=t.getDistinctValues();if(a.length<e.length)throw new Error(`Not all given fields are present in the grid. Please add these fields ${en(a,e).map((e=>`"${e}"`)).join(", ")}`);a.forEach((a=>{if(!e.includes(a))throw new Error(`${a} is not an existing field. Existing fields are ${e.map((e=>`"${e}"`)).join(", ")}.`);const r=t.getCoordinatesForValue(a),n=t.sliceArea(r.topLeft,r.bottomRight).getDistinctValues();if(1!==n.length||n[0]!==a)throw new Error(`Grid contains an unsupported shape. Please make sure "${a}" has a rectangular shape.`)}))})(Object.keys(this.fields),n);const o=a.produce(this.fields,(t=>{Object.keys(this.fields).forEach((a=>{const r=t[a].props,{topLeft:o,bottomRight:i}=n.getCoordinatesForValue(a);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 an(o,this.columns)}setVertical(e,t=1,a){return this.setGrid(e,null!=a?a:tn(t,!1),ar(Object.keys(this.fields),t))}setHorizontal(e,t){const a=Object.keys(this.fields);return this.setGrid(e,null!=t?t:tn(a.length,!1),[a])}getColumns(){return this.columns}getFields(){return this.fields}getScaffoldProps(){return{fields:this.fields,columns:this.columns}}}const rn=e.createContext({factory:void 0}),nn=e.forwardRef(((t,a)=>{var{name:r,field:o}=t,i=n(t,["name","field"]);const{factory:l}=e.useContext(rn),p=_a(o.props),s=(null==l?void 0:l(o))||(e=>{switch(e.type){case"Button":return Ue;case"Checkbox":return Yt;case"Select":return la;case"FileField":return ra;case"PasswordStrengthField":return ha;default:return Jt}})(o);return"TextField"===o.type&&"hidden"===o.props.type?e.createElement(s,Object.assign({ref:a,name:r},i,o.props)):e.createElement(Ca,Object.assign({},p),e.createElement(s,Object.assign({ref:a,name:r,placeholder:o.props.placeholder||p.label,className:he(!!p.error&&"error",o.props.className)},i,o.props)))})),on=e.forwardRef(((t,a)=>{var{children:r,columns:o,fields:i,prefixFieldNames:l}=t,p=n(t,["children","columns","fields","prefixFieldNames"]);return e.createElement(Ea,{columns:o},Object.entries(i).map((([t,r])=>e.createElement(nn,Object.assign({name:`${null!=l?l:""}${t}`,key:t,field:r,ref:a},p)))),r)}));exports.Alert=({children:t,title:a,variant:r="basic"})=>e.createElement("div",{className:he(Q.wrapper,Q[`variant-${r}`])},e.createElement(ve,{p:3},a&&e.createElement(ve,{pb:t?1:0},e.createElement(ae,{level:4},a)),t&&e.createElement(re,null,t))),exports.AnimatedCheckmark=Ce,exports.BasicLayout=({sideBarProps:t,topBarProps:a,footerProps:r,isLoading:n,loader:o,children:i})=>e.createElement($a,{flexGrow:1,display:"flex",flexDirection:"column"},e.createElement(ja,{flexGrow:1,flexShrink:0},t&&e.createElement(Sa,null,e.createElement(vt,Object.assign({},t))),e.createElement(Aa,{display:"flex",flexDirection:"column"},e.createElement(Ht,Object.assign({},a)),e.createElement(ve,{p:{laptop:7,mobile:4},pl:{laptop:22},flexGrow:1},n&&o?o:i),e.createElement(kt,Object.assign({},r))))),exports.Box=ve,exports.BreadCrumbs=t=>e.createElement("ul",Object.assign({className:he(Ee,t.className)},t)),exports.BreakPointValues=oe,exports.Button=Ue,exports.Checkbox=Yt,exports.CollapsiblePanel=Re,exports.ConfirmButton=t=>{var a,{modalProps:r}=t,o=n(t,["modalProps"]);const[i,l]=(({onConfirm:t})=>{const[a,r]=e.useState(!1);return[{onCancel:()=>r(!1),onConfirm:()=>{t(),r(!1)},isOpen:a},()=>r(!0)]})({onConfirm:null!==(a=r.onConfirm)&&void 0!==a?a:Ze});return e.createElement(e.Fragment,null,e.createElement(Ue,Object.assign({},o,{onClick:l})),e.createElement(Xe,Object.assign({title:"Are you sure?"},r,i)))},exports.ConfirmModal=Xe,exports.Crumb=t=>e.createElement("li",Object.assign({className:he(Ee,t.className)},t)),exports.Details=({details:t,firstColumnWidth:a})=>e.createElement(tt,null,e.createElement("tbody",null,Object.entries(t).map((([t,r],n)=>e.createElement(tt.Row,{key:t,disableHover:!0},e.createElement(at,{width:a,firstRow:0===n},t),e.createElement(at,{firstRow:0===n},r)))))),exports.Dropdown=({buttonProps:t,align:a,children:r,stayOpenOnClick:n})=>{const o=e.useRef(null),[i,l]=e.useState(!1),p=e.useCallback((()=>l(!0)),[l]),s=e.useCallback((e=>{var t;n&&(null===(t=o.current)||void 0===t?void 0:t.contains(e.target))||l(!1)}),[l,n]);return e.useEffect((()=>(i&&setTimeout((()=>document.addEventListener("click",s)),1),()=>{document.removeEventListener("click",s)})),[i,s]),e.createElement(rt,null,e.createElement(Ue,Object.assign({},t,{onClick:p})),i&&e.createElement(K,{speed:".1s"},e.createElement(nt,{ref:o,align:a||"left"},r)))},exports.DropdownMenu=ot,exports.DropdownMenuItem=it,exports.Dropzone=t=>{var{onChange:a,icon:r,label:o}=t,i=n(t,["onChange","icon","label"]);const l=e.useRef(null),p=e.useRef(null),[s,d]=e.useState(!1),c=e.useCallback((e=>{e&&a&&a(Array.from(e))}),[a]),g=e.useCallback((e=>{e.preventDefault(),d(!0)}),[]),m=e.useCallback((e=>{e.preventDefault(),d(!1)}),[]),f=e.useCallback((e=>{var t;e.preventDefault(),d(!1),c(null===(t=e.dataTransfer)||void 0===t?void 0:t.files)}),[c]),b=e.useCallback((()=>{var e;null===(e=l.current)||void 0===e||e.click()}),[l]),u=e.useCallback((()=>{var e;c(null===(e=null==l?void 0:l.current)||void 0===e?void 0:e.files)}),[l,c]);return e.createElement(pt,Object.assign({ref:p,onDragOver:g,onDragLeave:m,onDrop:f,onClick:b,isReadyToDrop:s},i),e.createElement(lt,{"data-testid":"dropzone-file-input",type:"file",ref:l,onChange:u,multiple:!0}),e.createElement(ve,null,e.createElement(Ue,{variant:"text",color:"secondary",type:"button",icon:r},o)))},exports.Feedback=({onConfirm:t,buttonLabel:a,buttonIcon:r,title:n,subtitle:o})=>e.createElement(qe,{handleClickOverlay:t,buttons:e.createElement(Ue,{"data-testid":"confirm",stretch:!0,icon:r,variant:"secondary",onClick:t},a)},e.createElement(st,{pt:3,pb:3},e.createElement(ve,{pb:5,textAlign:"center"},e.createElement(ae,null,n),o&&e.createElement(ve,{pt:5},e.createElement(ae,{level:5},o))),e.createElement(ve,{pt:5,pb:5,pl:7,pr:7},e.createElement(Ce,null)))),exports.FileField=ra,exports.Floater=t=>{var{items:a,forceEqualWidth:r=!1,stretch:o=!1}=t,i=n(t,["items","forceEqualWidth","stretch"]);return e.createElement(ve,Object.assign({mb:bt,mt:bt,ml:ft,mr:ft,display:ut},i),a.filter(Boolean).map(((t,n)=>(e=>!!e.element)(t)?e.createElement(mt,{key:n,laptopWidth:t.forceEqualWidth?100/a.length+"%":void 0,stretch:t.stretch||!1},t.element):e.createElement(mt,{key:n,laptopWidth:r?100/a.length+"%":void 0,stretch:o},t))))},exports.FloatingPanelLayout=({panelProps:t,imageUrl:a,alert:r,logoUrl:n,backgroundBaseColor:o,backgroundOpacity:i})=>e.createElement(Oa,{display:"flex",alignItems:"center",baseColor:o},e.createElement(Pa,{imageUrl:a,opacity:i}),n&&e.createElement(za,{src:n,alt:"Logo"}),e.createElement(Fa,null,r&&e.createElement(ve,{pb:7},r),e.createElement(Ia,Object.assign({},t)))),exports.Footer=kt,exports.FormGrid=Ea,exports.FormGridWrapper=Ca,exports.FormPositioner=an,exports.HamburgerButton=wt,exports.Header=ae,exports.HorizontalScroller=({children:t})=>e.createElement(yt,null,t),exports.Menu=_t,exports.MenuCloseButton=Et,exports.MenuItem=({item:t,isOpen:a,isActive:r,children:n})=>{const[o,i]=e.useState(!!a);return e.createElement(Ct,{isOpen:o,isActive:!!r},t,n&&e.createElement(Te,{onChange:i,isOpen:!!a,duration:.25},n))},exports.MenuSlideOpenIndicator=({children:t})=>e.createElement($t,null,t),exports.Modal=qe,exports.Overlay=Ne,exports.Paginator=t=>{const{isTablet:a}=St(),{pageCount:r,onChange:n}=t,o=Math.min(Math.max(t.currentPage,0),r),i=a?2:0,l=Math.max(1,o-i),p=Math.min(r,o+i);return e.createElement(At,null,e.createElement(Ot,{"data-testid":"paginate-prev",disabled:1===o,onClick:()=>n(o-1)},"⟨"),l>1&&e.createElement(Ot,{"data-testid":"paginate-page-1",active:1===o,onClick:()=>n(1)},"1"),l>2&&e.createElement(Ot,{disabled:!0},"..."),((e,t)=>{let a=[];for(let r=e;r<t;r++)a.push(r);return a})(l,p+1).map((t=>e.createElement(Ot,{"data-testid":`paginate-page-${t}`,key:t,active:o===t,onClick:()=>n(t)},t))),p<r-1&&e.createElement(Ot,{disabled:!0},"..."),p<r&&e.createElement(Ot,{"data-testid":`paginate-page-${r}`,active:o===r,onClick:()=>n(r)},r),e.createElement(Ot,{"data-testid":"paginate-next",disabled:o===r,onClick:()=>n(o+1)},"⟩"))},exports.Panel=Ie,exports.Paragraph=re,exports.PasswordStrengthField=ha,exports.ScaffoldForm=on,exports.ScaffoldFormContext=rn,exports.ScaffoldFormProvider=({factory:t,children:a})=>e.createElement(rn.Provider,{value:{factory:t}},a),exports.Section=t=>e.createElement(ve,Object.assign({pb:{laptop:7,mobile:4}},t)),exports.Select=la,exports.SideBarHeader=({children:t,right:a})=>e.createElement(jt,{mb:7},e.createElement(ve,{flexGrow:1,display:"flex"},e.createElement(ve,{flexGrow:1,display:"flex",flexDirection:"column",justifyContent:"center"},t)),a&&e.createElement(ve,null,a)),exports.SimpleTimeline=({color:t,icon:a,title:r,titleMeta:n})=>e.createElement(Gt,null,e.createElement(Nt,{className:"line"},e.createElement(Lt,{color:t},a)),e.createElement(ve,{pb:4,flexGrow:1},e.createElement(Rt,{titleMeta:n,title:r}))),exports.SlideInFromTop=K,exports.Statistic=({icon:t,value:a,label:r,backgroundColor:n,smallerValue:o})=>e.createElement(Pt,{backgroundColor:n},e.createElement(zt,null,t),e.createElement(ve,{flexGrow:1,textAlign:"right"},e.createElement(Ft,null,r),e.createElement(It,{smallerValue:o},a))),exports.StyledTable=Je,exports.Tab=t=>{var{id:a,isActive:r,onClick:o}=t,i=n(t,["id","isActive","onClick"]);const l=e.useCallback((()=>{r||null==o||o(a)}),[a,r,o]);return e.createElement(Dt,Object.assign({},i,{onClick:l,isActive:r}))},exports.TabContent=t=>e.createElement(Mt,Object.assign({p:3},t)),exports.Table=tt,exports.Tabs=Tt,exports.TextField=Jt,exports.Timeline=({title:t,icon:a,color:r,isInitiallyOpen:n,titleMeta:o,chevron:i,children:l})=>e.createElement(Gt,null,e.createElement(Nt,null,e.createElement(Lt,{color:r},a)),e.createElement(ve,{pb:4,flexGrow:1},e.createElement(Re,{isInitiallyOpen:n,titleMeta:o,title:t,titleAction:i},l))),exports.TopBar=Ht,exports.UiProvider=B,exports.UiWrapper=({theme:t,children:a})=>e.createElement(B,{theme:t},e.createElement(V,null,e.createElement(Y,null,a))),exports.VerticalRhythmLaptop=7,exports.VerticalRhythmMobile=4,exports.calculatePasswordScore=fa,exports.getFormGridWrapperProps=_a,exports.isResponsiveObject=le,exports.mq=ie,exports.passwordHasLowerAndUppercase=da,exports.passwordHasNumbers=sa,exports.passwordHasSpecialChars=ca,exports.passwordMinLength=pa,exports.responsiveProps=pe,exports.theme=N,exports.useCloseSidebarOnNavigate=t=>{const{closeSideMenu:a}=W();e.useEffect((()=>{a()}),[t,a])},exports.useResponsiveBreakpoints=St,exports.useToggleMobileMenu=({currentRoute:t})=>{const[a,r]=e.useState(!1),n=e.useCallback((()=>{r((e=>!e))}),[]),o=e.useCallback((()=>{r(!0)}),[]),i=e.useCallback((()=>{r(!1)}),[]);return e.useEffect((()=>{i()}),[t,i]),{isOpen:a,open:o,close:i,toggle:n}};
|
|
774
|
+
`;var Ta="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Na(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ga=1/0,La=9007199254740991,Ba=17976931348623157e292,Ha=NaN,qa="[object Function]",Wa="[object GeneratorFunction]",Va="[object Symbol]",Ya=/^\s+|\s+$/g,Ua=/^[-+]0x[0-9a-f]+$/i,Xa=/^0b[01]+$/i,Za=/^0o[0-7]+$/i,Ja=/^(?:0|[1-9]\d*)$/,Ka=parseInt,Qa=Object.prototype.toString,er=Math.ceil,tr=Math.max;function ar(e,t,a){var r=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(a=a>n?n:a)<0&&(a+=n),n=t>a?0:a-t>>>0,t>>>=0;for(var o=Array(n);++r<n;)o[r]=e[r+t];return o}function rr(e,t,a){if(!nr(a))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<=La}(e.length)&&!function(e){var t=nr(e)?Qa.call(e):"";return t==qa||t==Wa}(e)}(a)&&function(e,t){return!!(t=null==t?La:t)&&("number"==typeof e||Ja.test(e))&&e>-1&&e%1==0&&e<t}(t,a.length):"string"==r&&t in a)&&function(e,t){return e===t||e!=e&&t!=t}(a[t],e)}function nr(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var or=Na((function(e,t,a){t=(a?rr(e,t,a):void 0===t)?1:tr(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)&&Qa.call(e)==Va}(e))return Ha;if(nr(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=nr(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ya,"");var a=Xa.test(e);return a||Za.test(e)?Ka(e.slice(2),a?2:8):Ua.test(e)?Ha:+e}(e),e===Ga||e===-Ga){return(e<0?-1:1)*Ba}return e==e?e:0}(e),a=t%1;return t==t?a?t-a:t:0}(t),0);var r=e?e.length:0;if(!r||t<1)return[];for(var n=0,o=0,i=Array(er(r/t));n<r;)i[o++]=ar(e,n,n+=t);return i}));class ir{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 ir(this.grid.slice(e.y,t.y+1).map((a=>a.slice(e.x,t.x+1))))}getCoordinatesForValue(e){const t=[],a=[];return this.grid.forEach(((r,n)=>{r.forEach(((r,o)=>{r===e&&(t.push(o),a.push(n))}))})),{topLeft:{x:Math.min(...t),y:Math.min(...a)},bottomRight:{x:Math.max(...t),y:Math.max(...a)}}}}var lr="__lodash_hash_undefined__",pr=9007199254740991,sr="[object Arguments]",dr="[object Function]",cr="[object GeneratorFunction]",mr=/^\[object .+?Constructor\]$/,gr="object"==typeof Ta&&Ta&&Ta.Object===Object&&Ta,fr="object"==typeof self&&self&&self.Object===Object&&self,ur=gr||fr||Function("return this")();function br(e,t){return!!(e?e.length:0)&&function(e,t,a){if(t!=t)return function(e,t,a,r){var n=e.length,o=a+(r?1:-1);for(;r?o--:++o<n;)if(t(e[o],o,e))return o;return-1}(e,xr,a);var r=a-1,n=e.length;for(;++r<n;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function hr(e,t,a){for(var r=-1,n=e?e.length:0;++r<n;)if(a(t,e[r]))return!0;return!1}function vr(e,t){for(var a=-1,r=t.length,n=e.length;++a<r;)e[n+a]=t[a];return e}function xr(e){return e!=e}function kr(e,t){return e.has(t)}var yr,wr=Array.prototype,_r=Function.prototype,Cr=Object.prototype,Er=ur["__core-js_shared__"],$r=(yr=/[^.]+$/.exec(Er&&Er.keys&&Er.keys.IE_PROTO||""))?"Symbol(src)_1."+yr:"",jr=_r.toString,Sr=Cr.hasOwnProperty,Ar=Cr.toString,Or=RegExp("^"+jr.call(Sr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fr=ur.Symbol,Pr=Cr.propertyIsEnumerable,zr=wr.splice,Dr=Fr?Fr.isConcatSpreadable:void 0,Ir=Math.max,Mr=Yr(ur,"Map"),Rr=Yr(Object,"create");function Tr(e){var t=-1,a=e?e.length:0;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function Nr(e){var t=-1,a=e?e.length:0;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function Gr(e){var t=-1,a=e?e.length:0;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function Lr(e){var t=-1,a=e?e.length:0;for(this.__data__=new Gr;++t<a;)this.add(e[t])}function Br(e,t){for(var a,r,n=e.length;n--;)if((a=e[n][0])===(r=t)||a!=a&&r!=r)return n;return-1}function Hr(e,t,a,r){var n,o=-1,i=br,l=!0,p=e.length,s=[],d=t.length;if(!p)return s;a&&(t=function(e,t){for(var a=-1,r=e?e.length:0,n=Array(r);++a<r;)n[a]=t(e[a],a,e);return n}(t,(n=a,function(e){return n(e)}))),r?(i=hr,l=!1):t.length>=200&&(i=kr,l=!1,t=new Lr(t));e:for(;++o<p;){var c=e[o],m=a?a(c):c;if(c=r||0!==c?c:0,l&&m==m){for(var g=d;g--;)if(t[g]===m)continue e;s.push(c)}else i(t,m,r)||s.push(c)}return s}function qr(e,t,a,r,n){var o=-1,i=e.length;for(a||(a=Ur),n||(n=[]);++o<i;){var l=e[o];t>0&&a(l)?t>1?qr(l,t-1,a,r,n):vr(n,l):r||(n[n.length]=l)}return n}function Wr(e){if(!an(e)||(t=e,$r&&$r in t))return!1;var t,a=tn(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Or:mr;return a.test(function(e){if(null!=e){try{return jr.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function Vr(e,t){var a,r,n=e.__data__;return("string"==(r=typeof(a=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==a:null===a)?n["string"==typeof t?"string":"hash"]:n.map}function Yr(e,t){var a=function(e,t){return null==e?void 0:e[t]}(e,t);return Wr(a)?a:void 0}function Ur(e){return Kr(e)||function(e){return en(e)&&Sr.call(e,"callee")&&(!Pr.call(e,"callee")||Ar.call(e)==sr)}(e)||!!(Dr&&e&&e[Dr])}Tr.prototype.clear=function(){this.__data__=Rr?Rr(null):{}},Tr.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Tr.prototype.get=function(e){var t=this.__data__;if(Rr){var a=t[e];return a===lr?void 0:a}return Sr.call(t,e)?t[e]:void 0},Tr.prototype.has=function(e){var t=this.__data__;return Rr?void 0!==t[e]:Sr.call(t,e)},Tr.prototype.set=function(e,t){return this.__data__[e]=Rr&&void 0===t?lr:t,this},Nr.prototype.clear=function(){this.__data__=[]},Nr.prototype.delete=function(e){var t=this.__data__,a=Br(t,e);return!(a<0)&&(a==t.length-1?t.pop():zr.call(t,a,1),!0)},Nr.prototype.get=function(e){var t=this.__data__,a=Br(t,e);return a<0?void 0:t[a][1]},Nr.prototype.has=function(e){return Br(this.__data__,e)>-1},Nr.prototype.set=function(e,t){var a=this.__data__,r=Br(a,e);return r<0?a.push([e,t]):a[r][1]=t,this},Gr.prototype.clear=function(){this.__data__={hash:new Tr,map:new(Mr||Nr),string:new Tr}},Gr.prototype.delete=function(e){return Vr(this,e).delete(e)},Gr.prototype.get=function(e){return Vr(this,e).get(e)},Gr.prototype.has=function(e){return Vr(this,e).has(e)},Gr.prototype.set=function(e,t){return Vr(this,e).set(e,t),this},Lr.prototype.add=Lr.prototype.push=function(e){return this.__data__.set(e,lr),this},Lr.prototype.has=function(e){return this.__data__.has(e)};var Xr,Zr,Jr=(Xr=function(e,t){return en(e)?Hr(e,qr(t,1,en,!0)):[]},Zr=Ir(void 0===Zr?Xr.length-1:Zr,0),function(){for(var e=arguments,t=-1,a=Ir(e.length-Zr,0),r=Array(a);++t<a;)r[t]=e[Zr+t];t=-1;for(var n=Array(Zr+1);++t<Zr;)n[t]=e[t];return n[Zr]=r,function(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}(Xr,this,n)});var Kr=Array.isArray;function Qr(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=pr}(e.length)&&!tn(e)}function en(e){return function(e){return!!e&&"object"==typeof e}(e)&&Qr(e)}function tn(e){var t=an(e)?Ar.call(e):"";return t==dr||t==cr}function an(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var rn=Na(Jr);const nn=(e,t)=>{const a=[...Array(e)].map((e=>"1fr"));return t&&a.push("auto"),a.join(" ")};class on{constructor(e,t={}){this.fields=e,this.columns=t}setGrid(e,t,r){"object"==typeof this.columns&&(this.columns[e]=t);const n=new ir(r);((e,t)=>{const a=t.getDistinctValues();if(a.length<e.length)throw new Error(`Not all given fields are present in the grid. Please add these fields ${rn(a,e).map((e=>`"${e}"`)).join(", ")}`);a.forEach((a=>{if(!e.includes(a))throw new Error(`${a} is not an existing field. Existing fields are ${e.map((e=>`"${e}"`)).join(", ")}.`);const r=t.getCoordinatesForValue(a),n=t.sliceArea(r.topLeft,r.bottomRight).getDistinctValues();if(1!==n.length||n[0]!==a)throw new Error(`Grid contains an unsupported shape. Please make sure "${a}" has a rectangular shape.`)}))})(Object.keys(this.fields),n);const o=a.produce(this.fields,(t=>{Object.keys(this.fields).forEach((a=>{const r=t[a].props,{topLeft:o,bottomRight:i}=n.getCoordinatesForValue(a);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 on(o,this.columns)}setVertical(e,t=1,a){return this.setGrid(e,null!=a?a:nn(t,!1),or(Object.keys(this.fields),t))}setHorizontal(e,t){const a=Object.keys(this.fields);return this.setGrid(e,null!=t?t:nn(a.length,!1),[a])}getColumns(){return this.columns}getFields(){return this.fields}getScaffoldProps(){return{fields:this.fields,columns:this.columns}}}const ln=e.createContext({factory:void 0}),pn=e.forwardRef(((t,a)=>{var{name:r,field:o}=t,i=n(t,["name","field"]);const{factory:l}=e.useContext(ln),p=$a(o.props),s=(null==l?void 0:l(o))||(e=>{switch(e.type){case"Button":return Ue;case"Checkbox":return Zt;case"Select":return da;case"FileField":return ia;case"PasswordStrengthField":return ka;default:return ea}})(o);return"TextField"===o.type&&"hidden"===o.props.type?e.createElement(s,Object.assign({ref:a,name:r},i,o.props)):e.createElement(ja,Object.assign({},p),e.createElement(s,Object.assign({ref:a,name:r,placeholder:o.props.placeholder||p.label,className:he(!!p.error&&"error",o.props.className)},i,o.props)))})),sn=e.forwardRef(((t,a)=>{var{children:r,columns:o,fields:i,prefixFieldNames:l}=t,p=n(t,["children","columns","fields","prefixFieldNames"]);return e.createElement(Sa,{columns:o},Object.entries(i).map((([t,r])=>e.createElement(pn,Object.assign({name:`${null!=l?l:""}${t}`,key:t,field:r,ref:a},p)))),r)}));exports.Alert=({children:t,title:a,variant:r="basic"})=>e.createElement("div",{className:he(Q.wrapper,Q[`variant-${r}`])},e.createElement(ve,{p:3},a&&e.createElement(ve,{pb:t?1:0},e.createElement(ae,{level:4},a)),t&&e.createElement(re,null,t))),exports.AnimatedCheckmark=Ce,exports.BasicLayout=({sideBarProps:t,topBarProps:a,footerProps:r,isLoading:n,loader:o,children:i})=>e.createElement(Aa,{flexGrow:1,display:"flex",flexDirection:"column"},e.createElement(Oa,{flexGrow:1,flexShrink:0},t&&e.createElement(Fa,null,e.createElement(wt,Object.assign({},t))),e.createElement(Pa,{display:"flex",flexDirection:"column"},e.createElement(Vt,Object.assign({},a)),e.createElement(ve,{p:{laptop:7,mobile:4},pl:{laptop:22},flexGrow:1},n&&o?o:i),e.createElement(_t,Object.assign({},r))))),exports.Box=ve,exports.BreadCrumbs=t=>e.createElement("ul",Object.assign({className:he(Ee,t.className)},t)),exports.BreakPointValues=oe,exports.Button=Ue,exports.Checkbox=Zt,exports.CollapsiblePanel=Te,exports.ConfirmButton=t=>{var a,{modalProps:r}=t,o=n(t,["modalProps"]);const[i,l]=(({onConfirm:t})=>{const[a,r]=e.useState(!1);return[{onCancel:()=>r(!1),onConfirm:()=>{t(),r(!1)},isOpen:a},()=>r(!0)]})({onConfirm:null!==(a=r.onConfirm)&&void 0!==a?a:Ze});return e.createElement(e.Fragment,null,e.createElement(Ue,Object.assign({},o,{onClick:l})),e.createElement(Xe,Object.assign({title:"Are you sure?"},r,i)))},exports.ConfirmModal=Xe,exports.Crumb=t=>e.createElement("li",Object.assign({className:he(Ee,t.className)},t)),exports.Details=({details:t,firstColumnWidth:a})=>e.createElement(tt,null,e.createElement("tbody",null,Object.entries(t).map((([t,r],n)=>e.createElement(tt.Row,{key:t,disableHover:!0},e.createElement(tt.Cell,{style:{width:a},className:he(at.cell,0===n&&at.isFirstRow)},t),e.createElement(tt.Cell,{className:he(at.cell,0===n&&at.isFirstRow)},r)))))),exports.Dropdown=({buttonProps:t,align:a="left",children:r,stayOpenOnClick:n})=>{const o=e.useRef(null),[i,l]=e.useState(!1),p=e.useCallback((()=>l(!0)),[l]),s=e.useCallback((e=>{var t;n&&(null===(t=o.current)||void 0===t?void 0:t.contains(e.target))||l(!1)}),[l,n]);return e.useEffect((()=>(i&&setTimeout((()=>document.addEventListener("click",s)),1),()=>{document.removeEventListener("click",s)})),[i,s]),e.createElement("div",{className:rt},e.createElement(Ue,Object.assign({},t,{onClick:p})),i&&e.createElement(K,{speed:".1s"},e.createElement("span",{className:he(nt,"left"===a&&ot,"right"===a&&it),ref:o},r)))},exports.DropdownMenu=t=>{var{className:a}=t,r=n(t,["className"]);return e.createElement("ul",Object.assign({className:he(lt,a)},r))},exports.DropdownMenuItem=t=>{var{className:a}=t,r=n(t,["className"]);return e.createElement("li",Object.assign({className:he(pt,a)},r))},exports.Dropzone=t=>{var{onChange:a,icon:r,label:o}=t,i=n(t,["onChange","icon","label"]);const l=e.useRef(null),p=e.useRef(null),[s,d]=e.useState(!1),c=e.useCallback((e=>{e&&a&&a(Array.from(e))}),[a]),m=e.useCallback((e=>{e.preventDefault(),d(!0)}),[]),g=e.useCallback((e=>{e.preventDefault(),d(!1)}),[]),f=e.useCallback((e=>{var t;e.preventDefault(),d(!1),c(null===(t=e.dataTransfer)||void 0===t?void 0:t.files)}),[c]),u=e.useCallback((()=>{var e;null===(e=l.current)||void 0===e||e.click()}),[l]),b=e.useCallback((()=>{var e;c(null===(e=null==l?void 0:l.current)||void 0===e?void 0:e.files)}),[l,c]);return e.createElement("div",Object.assign({ref:p,onDragOver:m,onDragLeave:g,onDrop:f,onClick:u,className:he(st,s&&dt)},i),e.createElement("input",{className:ct,"data-testid":"dropzone-file-input",type:"file",ref:l,onChange:b,multiple:!0}),e.createElement(ve,null,e.createElement(Ue,{variant:"text",color:"secondary",type:"button",icon:r},o)))},exports.Feedback=({onConfirm:t,buttonLabel:a,buttonIcon:r,title:n,subtitle:o})=>e.createElement(qe,{handleClickOverlay:t,buttons:e.createElement(Ue,{"data-testid":"confirm",stretch:!0,icon:r,variant:"secondary",onClick:t},a)},e.createElement(ve,{pt:3,pb:3,className:mt},e.createElement(ve,{pb:5,textAlign:"center"},e.createElement(ae,null,n),o&&e.createElement(ve,{pt:5},e.createElement(ae,{level:5},o))),e.createElement(ve,{pt:5,pb:5,pl:7,pr:7},e.createElement(Ce,null)))),exports.FileField=ia,exports.Floater=t=>{var{items:a,forceEqualWidth:r=!1,stretch:o=!1}=t,i=n(t,["items","forceEqualWidth","stretch"]);return e.createElement(ve,Object.assign({mb:vt,mt:vt,ml:ht,mr:ht,display:xt},i),a.filter(Boolean).map(((t,n)=>(e=>!!e.element)(t)?e.createElement(bt,{key:n,laptopWidth:t.forceEqualWidth?100/a.length+"%":void 0,stretch:t.stretch||!1},t.element):e.createElement(bt,{key:n,laptopWidth:r?100/a.length+"%":void 0,stretch:o},t))))},exports.FloatingPanelLayout=({panelProps:t,imageUrl:a,alert:r,logoUrl:n,backgroundBaseColor:o,backgroundOpacity:i})=>e.createElement(za,{display:"flex",alignItems:"center",baseColor:o},e.createElement(Da,{imageUrl:a,opacity:i}),n&&e.createElement(Ra,{src:n,alt:"Logo"}),e.createElement(Ia,null,r&&e.createElement(ve,{pb:7},r),e.createElement(Ma,Object.assign({},t)))),exports.Footer=_t,exports.FormGrid=Sa,exports.FormGridWrapper=ja,exports.FormPositioner=on,exports.HamburgerButton=Et,exports.Header=ae,exports.HorizontalScroller=({children:t})=>e.createElement("div",{className:Ct},t),exports.Menu=$t,exports.MenuCloseButton=St,exports.MenuItem=({item:t,isOpen:a,isActive:r,children:n})=>{const[o,i]=e.useState(!!a);return e.createElement(jt,{isOpen:o,isActive:!!r},t,n&&e.createElement(Re,{onChange:i,isOpen:!!a,duration:.25},n))},exports.MenuSlideOpenIndicator=({children:t})=>e.createElement(At,null,t),exports.Modal=qe,exports.Overlay=Ge,exports.Paginator=t=>{const{isTablet:a}=Ft(),{pageCount:r,onChange:n}=t,o=Math.min(Math.max(t.currentPage,0),r),i=a?2:0,l=Math.max(1,o-i),p=Math.min(r,o+i);return e.createElement(Pt,null,e.createElement(zt,{"data-testid":"paginate-prev",disabled:1===o,onClick:()=>n(o-1)},"⟨"),l>1&&e.createElement(zt,{"data-testid":"paginate-page-1",active:1===o,onClick:()=>n(1)},"1"),l>2&&e.createElement(zt,{disabled:!0},"..."),((e,t)=>{let a=[];for(let r=e;r<t;r++)a.push(r);return a})(l,p+1).map((t=>e.createElement(zt,{"data-testid":`paginate-page-${t}`,key:t,active:o===t,onClick:()=>n(t)},t))),p<r-1&&e.createElement(zt,{disabled:!0},"..."),p<r&&e.createElement(zt,{"data-testid":`paginate-page-${r}`,active:o===r,onClick:()=>n(r)},r),e.createElement(zt,{"data-testid":"paginate-next",disabled:o===r,onClick:()=>n(o+1)},"⟩"))},exports.Panel=ze,exports.Paragraph=re,exports.PasswordStrengthField=ka,exports.ScaffoldForm=sn,exports.ScaffoldFormContext=ln,exports.ScaffoldFormProvider=({factory:t,children:a})=>e.createElement(ln.Provider,{value:{factory:t}},a),exports.Section=t=>e.createElement(ve,Object.assign({pb:{laptop:7,mobile:4}},t)),exports.Select=da,exports.SideBarHeader=({children:t,right:a})=>e.createElement(Ot,{mb:7},e.createElement(ve,{flexGrow:1,display:"flex"},e.createElement(ve,{flexGrow:1,display:"flex",flexDirection:"column",justifyContent:"center"},t)),a&&e.createElement(ve,null,a)),exports.SimpleTimeline=({color:t,icon:a,title:r,titleMeta:n})=>e.createElement(Bt,null,e.createElement(Ht,{className:"line"},e.createElement(qt,{color:t},a)),e.createElement(ve,{pb:4,flexGrow:1},e.createElement(Lt,{titleMeta:n,title:r}))),exports.SlideInFromTop=K,exports.Statistic=({icon:t,value:a,label:r,backgroundColor:n,smallerValue:o})=>e.createElement(Dt,{backgroundColor:n},e.createElement(Rt,null,t),e.createElement(ve,{flexGrow:1,textAlign:"right"},e.createElement(It,null,r),e.createElement(Mt,{smallerValue:o},a))),exports.StyledTable=Je,exports.Tab=t=>{var{id:a,isActive:r,onClick:o}=t,i=n(t,["id","isActive","onClick"]);const l=e.useCallback((()=>{r||null==o||o(a)}),[a,r,o]);return e.createElement(Tt,Object.assign({},i,{onClick:l,isActive:r}))},exports.TabContent=t=>e.createElement(Nt,Object.assign({p:3},t)),exports.Table=tt,exports.Tabs=Gt,exports.TextField=ea,exports.Timeline=({title:t,icon:a,color:r,isInitiallyOpen:n,titleMeta:o,chevron:i,children:l})=>e.createElement(Bt,null,e.createElement(Ht,null,e.createElement(qt,{color:r},a)),e.createElement(ve,{pb:4,flexGrow:1},e.createElement(Te,{isInitiallyOpen:n,titleMeta:o,title:t,titleAction:i},l))),exports.TopBar=Vt,exports.UiProvider=B,exports.UiWrapper=({theme:t,children:a})=>e.createElement(B,{theme:t},e.createElement(V,null,e.createElement(Y,null,a))),exports.VerticalRhythmLaptop=7,exports.VerticalRhythmMobile=4,exports.calculatePasswordScore=ha,exports.getFormGridWrapperProps=$a,exports.isResponsiveObject=le,exports.mq=ie,exports.passwordHasLowerAndUppercase=ga,exports.passwordHasNumbers=ma,exports.passwordHasSpecialChars=fa,exports.passwordMinLength=ca,exports.responsiveProps=pe,exports.theme=G,exports.useCloseSidebarOnNavigate=t=>{const{closeSideMenu:a}=W();e.useEffect((()=>{a()}),[t,a])},exports.useResponsiveBreakpoints=Ft,exports.useToggleMobileMenu=({currentRoute:t})=>{const[a,r]=e.useState(!1),n=e.useCallback((()=>{r((e=>!e))}),[]),o=e.useCallback((()=>{r(!0)}),[]),i=e.useCallback((()=>{r(!1)}),[]);return e.useEffect((()=>{i()}),[t,i]),{isOpen:a,open:o,close:i,toggle:n}};
|