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