@thecb/components 5.9.1 → 5.9.3

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.
Files changed (41) hide show
  1. package/dist/index.cjs.js +2071 -297
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +2072 -298
  4. package/dist/index.esm.js.map +1 -1
  5. package/package.json +11 -11
  6. package/src/.DS_Store +0 -0
  7. package/src/components/atoms/amount-callout/AmountCallout.theme.js +1 -1
  8. package/src/components/atoms/button-with-action/ButtonWithAction.js +2 -0
  9. package/src/components/atoms/button-with-link/ButtonWithLink.js +10 -1
  10. package/src/components/atoms/icons/AutopayOnIcon.js +4 -10
  11. package/src/components/atoms/layouts/Box.styled.js +3 -5
  12. package/src/components/atoms/layouts/Cluster.js +1 -1
  13. package/src/components/atoms/layouts/Cluster.styled.js +1 -1
  14. package/src/components/atoms/layouts/examples/cluster-example/ClusterExample.stories.js +5 -12
  15. package/src/components/atoms/layouts/examples/cover-example/CoverExample.stories.js +2 -6
  16. package/src/components/atoms/layouts/examples/grid-example/GridExample.stories.js +3 -6
  17. package/src/components/atoms/layouts/examples/sidebar-example/SidebarExample.stories.js +3 -6
  18. package/src/components/atoms/layouts/examples/stack-example/StackExample.stories.js +5 -12
  19. package/src/components/atoms/layouts/examples/switcher-example/SwitcherExample.stories.js +4 -9
  20. package/src/components/atoms/link/ExternalLink.js +2 -0
  21. package/src/components/atoms/link/InternalLink.js +2 -0
  22. package/src/components/atoms/placeholder/Placeholder.js +1 -1
  23. package/src/components/atoms/text/Text.js +2 -0
  24. package/src/components/atoms/text/Text.styled.js +1 -0
  25. package/src/components/molecules/obligation/Obligation.js +46 -16
  26. package/src/components/molecules/obligation/modules/AmountModule.js +1 -0
  27. package/src/components/molecules/obligation/modules/AutopayModalModule.js +80 -47
  28. package/src/components/molecules/obligation/modules/InactiveControlsModule.js +20 -10
  29. package/src/components/molecules/obligation/modules/InactiveTitleModule.js +2 -2
  30. package/src/components/molecules/obligation/modules/PaymentDetailsActions.js +8 -9
  31. package/src/components/molecules/obligation/modules/RemoveAccountModalModule.js +62 -0
  32. package/src/components/molecules/obligation/modules/index.js +3 -1
  33. package/src/components/molecules/tab-sidebar/TabSidebar.js +3 -2
  34. package/src/components/molecules/workflow-tile/WorkflowTile.js +1 -0
  35. package/src/components/templates/center-single/CenterSingle.js +2 -1
  36. package/src/components/templates/center-stack/CenterStack.js +2 -1
  37. package/src/components/templates/default-page-template/DefaultPageTemplate.js +2 -1
  38. package/src/components/templates/sidebar-single-content/SidebarSingleContent.js +2 -1
  39. package/src/components/templates/sidebar-stack-content/SidebarStackContent.js +2 -1
  40. package/src/components/templates/templates.theme.js +1 -1
  41. package/src/constants/colors.js +10 -8
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import React, { useContext, useMemo, useRef, useDebugValue, createElement, createContext, PureComponent, forwardRef, Component, cloneElement, Children, Fragment as Fragment$1, useState, useLayoutEffect, memo, useEffect as useEffect$1, useCallback, isValidElement, createRef } from 'react';
1
+ import React, { useContext, useMemo, useRef, createElement, useDebugValue, createContext, PureComponent, forwardRef, Component, cloneElement, Children, Fragment as Fragment$1, useState, useLayoutEffect, memo, useEffect as useEffect$1, useCallback, isValidElement, createRef } from 'react';
2
2
  import theme from 'styled-theming';
3
3
  import { Link, useNavigate } from 'react-router-dom';
4
4
  import reactDom from 'react-dom';
@@ -1167,16 +1167,16 @@ var unitlessKeys = {
1167
1167
  };
1168
1168
 
1169
1169
  function memoize(fn) {
1170
- var cache = Object.create(null);
1170
+ var cache = {};
1171
1171
  return function (arg) {
1172
1172
  if (cache[arg] === undefined) cache[arg] = fn(arg);
1173
1173
  return cache[arg];
1174
1174
  };
1175
1175
  }
1176
1176
 
1177
- var reactPropsRegex = /^((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)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
1177
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
1178
1178
 
1179
- var isPropValid = /* #__PURE__ */memoize(function (prop) {
1179
+ var index = memoize(function (prop) {
1180
1180
  return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
1181
1181
  /* o */
1182
1182
  && prop.charCodeAt(1) === 110
@@ -1286,7 +1286,1643 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
1286
1286
 
1287
1287
  var hoistNonReactStatics_cjs = hoistNonReactStatics;
1288
1288
 
1289
- function y$1(){return (y$1=Object.assign||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}).apply(this,arguments)}var v$1=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},g$1=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!reactIs_28(t)},S=Object.freeze([]),w$1=Object.freeze({});function E(e){return "function"==typeof e}function b$1(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function _(e){return e&&"string"==typeof e.styledComponentId}var N="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",C="undefined"!=typeof window&&"HTMLElement"in window,I=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),O="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function R(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t);})),e}function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw "production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(R.apply(void 0,[O[e]].concat(n)).trim())}var j=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&D(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++);},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n);}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),T=new Map,x$1=new Map,k$1=1,V=function(e){if(T.has(e))return T.get(e);for(;x$1.has(k$1);)k$1++;var t=k$1++;return "production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&D(16,""+t),T.set(e,t),x$1.set(t,e),t},z$1=function(e){return x$1.get(e)},B=function(e,t){t>=k$1&&(k$1=t+1),T.set(e,t),x$1.set(t,e);},M="style["+N+'][data-styled-version="5.3.5"]',G=new RegExp("^"+N+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r);},F=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,s=n.length;o<s;o++){var i=n[o].trim();if(i){var a=i.match(G);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(B(u,c),L(e,u,a[3]),e.getTag().insertRules(c,r)),r.length=0;}else r.push(i);}}},Y=function(){return "undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},q$1=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(N))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(N,"active"),r.setAttribute("data-styled-version","5.3.5");var i=Y();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},H=function(){function e(e){var t=this.element=q$1(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}D(17);}(t),this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$=function(){function e(e){var t=this.element=q$1(e);this.nodes=t.childNodes,this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return !1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),W=function(){function e(e){this.rules=[],this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--;},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=C,J={isServer:!C,useCSSOMInjection:!I},X=function(){function e(e,t,n){void 0===e&&(e=w$1),void 0===t&&(t={}),this.options=y$1({},J,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&C&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(M),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(N)&&(F(e,o),o.parentNode&&o.parentNode.removeChild(o));}}(this));}e.registerId=function(e){return V(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(y$1({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new W(o):r?new H(o):new $(o),new j(e)));var e,t,n,r,o;},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(V(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(V(e),n);},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},t.clearRules=function(e){this.getTag().clearGroup(V(e)),this.clearNames(e);},t.clearTag=function(){this.tag=void 0;},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var s=z$1(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var c=N+".g"+o+'[id="'+s+'"]',u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+=e+",");})),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n';}}}return r}(this)},e}(),Z=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=K(t%52)+n;return (K(t%52)+n).replace(Z,"$1-$2")}var ee=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},te=function(e){return ee(5381,e)};function ne(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(E(n)&&!_(n))return !1}return !0}var re=te("5.3.5"),oe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&ne(e),this.componentId=t,this.baseHash=ee(re,t),this.baseStyle=n,X.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else {var s=_e(this.rules,e,t,n).join(""),i=Q(ee(this.baseHash,s)>>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a);}o.push(i),this.staticRulesId=i;}else {for(var c=this.rules.length,u=ee(this.baseHash,n.hash),l="",d=0;d<c;d++){var h=this.rules[d];if("string"==typeof h)l+=h,"production"!==process.env.NODE_ENV&&(u=ee(u,h+d));else if(h){var p=_e(h,e,t,n),f=Array.isArray(p)?p.join(""):p;u=ee(u,f+d),l+=f;}}if(l){var m=Q(u>>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y);}o.push(m);}}return o.join(" ")},e}(),se=/^\s*\/\/.*$/gm,ie=[":","[",".","#"];function ae(e){var t,n,r,o,s=void 0===e?w$1:e,i=s.options,a=void 0===i?w$1:i,c=s.plugins,u=void 0===c?S:c,l=new stylis_min(a),d=[],p=function(e){function t(t){if(t)try{e(t+"}");}catch(e){}}return function(n,r,o,s,i,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t);}}}((function(e){d.push(e);})),f=function(e,r,s){return 0===r&&-1!==ie.indexOf(s[n.length])||s.match(o)?e:"."+t};function m(e,s,i,a){void 0===a&&(a="&");var c=e.replace(se,""),u=s&&i?i+" "+s+" { "+c+" }":c;return t=a,n=s,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),l(i||!s?"":s,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f));},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||D(15),ee(e,t.name)}),5381).toString():"",m}var ce=React.createContext(),ue=ce.Consumer,le=React.createContext(),de=(le.Consumer,new X),he=ae();function pe(){return useContext(ce)||de}function fe(){return useContext(le)||he}var ye=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=he);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"));},this.toString=function(){return D(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t;}return e.prototype.getName=function(e){return void 0===e&&(e=he),this.name+e.hash},e}(),ve=/([A-Z])/,ge=/([A-Z])/g,Se=/^ms-/,we=function(e){return "-"+e.toLowerCase()};function Ee(e){return ve.test(e)?e.replace(ge,we).replace(Se,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function _e(e,n,r,o){if(Array.isArray(e)){for(var s,i=[],a=0,c=e.length;a<c;a+=1)""!==(s=_e(e[a],n,r,o))&&(Array.isArray(s)?i.push.apply(i,s):i.push(s));return i}if(be(e))return "";if(_(e))return "."+e.styledComponentId;if(E(e)){if("function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!n)return e;var u=e(n);return "production"!==process.env.NODE_ENV&&reactIs_18(u)&&console.warn(b$1(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),_e(u,n,r,o)}var l;return e instanceof ye?r?(e.inject(r,o),e.getName(o)):e:g$1(e)?function e(t,n){var r,o,s=[];for(var i in t)t.hasOwnProperty(i)&&!be(t[i])&&(Array.isArray(t[i])&&t[i].isCss||E(t[i])?s.push(Ee(i)+":",t[i],";"):g$1(t[i])?s.push.apply(s,e(t[i],i)):s.push(Ee(i)+": "+(r=i,null==(o=t[i])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in unitlessKeys?String(o).trim():o+"px")+";"));return n?[n+" {"].concat(s,["}"]):s}(e):e.toString()}var Ne=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return E(e)||g$1(e)?Ne(_e(v$1(S,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Ne(_e(v$1(e,n)))}var Ce=/invalid hook call/i,Ie=new Set,Pe=function(e,t){if("production"!==process.env.NODE_ENV){var n="The component "+e+(t?' with the id of "'+t+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",r=console.error;try{var o=!0;console.error=function(e){if(Ce.test(e))o=!1,Ie.delete(n);else {for(var t=arguments.length,s=new Array(t>1?t-1:0),i=1;i<t;i++)s[i-1]=arguments[i];r.apply(void 0,[e].concat(s));}},useRef(),o&&!Ie.has(n)&&(console.warn(n),Ie.add(n));}catch(e){Ce.test(e.message)&&Ie.delete(n);}finally{console.error=r;}}},Oe=function(e,t,n){return void 0===n&&(n=w$1),e.theme!==n.theme&&e.theme||t||n.theme},Re=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,De=/(^-|-$)/g;function je(e){return e.replace(Re,"-").replace(De,"")}var Te=function(e){return Q(te(e)>>>0)};function xe(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var ke=function(e){return "function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ve=function(e){return "__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ze(e,t,n){var r=e[n];ke(t)&&ke(r)?Be(r,t):e[n]=t;}function Be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,s=n;o<s.length;o++){var i=s[o];if(ke(i))for(var a in i)Ve(a)&&ze(e,i[a],a);}return e}var Me=React.createContext(),Ge=Me.Consumer;function Le(e){var t=useContext(Me),n=useMemo((function(){return function(e,t){if(!e)return D(14);if(E(e)){var n=e(t);return "production"===process.env.NODE_ENV||null!==n&&!Array.isArray(n)&&"object"==typeof n?n:D(7)}return Array.isArray(e)||"object"!=typeof e?D(8):t?y$1({},t,{},e):e}(e.theme,t)}),[e.theme,t]);return e.children?React.createElement(Me.Provider,{value:n},e.children):null}var Fe={};function Ye(e,t,n){var o=_(e),i=!xe(e),a=t.attrs,c=void 0===a?S:a,d=t.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":je(e);Fe[n]=(Fe[n]||0)+1;var r=n+"-"+Te("5.3.5"+n+Fe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):d,p=t.displayName,v=void 0===p?function(e){return xe(e)?"styled."+e:"Styled("+b$1(e)+")"}(e):p,g=t.displayName&&t.componentId?je(t.displayName)+"-"+t.componentId:t.componentId||h,N=o&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,A=t.shouldForwardProp;o&&e.shouldForwardProp&&(A=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var C,I=new oe(n,g,o?e.componentStyle:void 0),P=I.isStatic&&0===c.length,O=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,d=e.shouldForwardProp,h=e.styledComponentId,p=e.target;"production"!==process.env.NODE_ENV&&useDebugValue(h);var m=function(e,t,n){void 0===e&&(e=w$1);var r=y$1({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,s,i=e;for(t in E(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],s=i[t],n&&s?n+" "+s:n||s):i[t];})),[r,o]}(Oe(t,useContext(Me),a)||w$1,t,o),v=m[0],g=m[1],S=function(e,t,n,r){var o=pe(),s=fe(),i=t?e.generateAndInjectStyles(w$1,o,s):e.generateAndInjectStyles(n,o,s);return "production"!==process.env.NODE_ENV&&useDebugValue(i),"production"!==process.env.NODE_ENV&&!t&&r&&r(i),i}(i,r,v,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),b=n,_=g.$as||t.$as||g.as||t.as||p,N=xe(_),A=g!==t?y$1({},t,{},g):t,C={};for(var I in A)"$"!==I[0]&&"as"!==I&&("forwardedAs"===I?C.as=A[I]:(d?d(I,isPropValid,_):!N||isPropValid(I))&&(C[I]=A[I]));return t.style&&g.style!==t.style&&(C.style=y$1({},t.style,{},g.style)),C.className=Array.prototype.concat(c,h,S!==h?S:null,t.className,g.className).filter(Boolean).join(" "),C.ref=b,createElement(_,C)}(C,e,t,P)};return O.displayName=v,(C=React.forwardRef(O)).attrs=N,C.componentStyle=I,C.displayName=v,C.shouldForwardProp=A,C.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):S,C.styledComponentId=g,C.target=o?e.target:e,C.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return {};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),s=r&&r+"-"+(xe(e)?e:je(b$1(e)));return Ye(e,y$1({},o,{attrs:N,componentId:s}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Be({},e.defaultProps,t):t;}}),"production"!==process.env.NODE_ENV&&(Pe(v,g),C.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+s+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={};}}}(v,g)),C.toString=function(){return "."+C.styledComponentId},i&&hoistNonReactStatics_cjs(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var qe=function(e){return function e(t,r,o){if(void 0===o&&(o=w$1),!reactIs_27(r))return D(1,String(r));var s=function(){return t(r,o,Ae.apply(void 0,arguments))};return s.withConfig=function(n){return e(t,r,y$1({},o,{},n))},s.attrs=function(n){return e(t,r,y$1({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},s}(Ye,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){qe[e]=qe(e);}));"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);
1289
+ function _extends$1() {
1290
+ _extends$1 = Object.assign || function (target) {
1291
+ for (var i = 1; i < arguments.length; i++) {
1292
+ var source = arguments[i];
1293
+
1294
+ for (var key in source) {
1295
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
1296
+ target[key] = source[key];
1297
+ }
1298
+ }
1299
+ }
1300
+
1301
+ return target;
1302
+ };
1303
+
1304
+ return _extends$1.apply(this, arguments);
1305
+ }
1306
+
1307
+ function _objectWithoutPropertiesLoose$1(source, excluded) {
1308
+ if (source == null) return {};
1309
+ var target = {};
1310
+ var sourceKeys = Object.keys(source);
1311
+ var key, i;
1312
+
1313
+ for (i = 0; i < sourceKeys.length; i++) {
1314
+ key = sourceKeys[i];
1315
+ if (excluded.indexOf(key) >= 0) continue;
1316
+ target[key] = source[key];
1317
+ }
1318
+
1319
+ return target;
1320
+ }
1321
+
1322
+ //
1323
+ var interleave = (function (strings, interpolations) {
1324
+ var result = [strings[0]];
1325
+
1326
+ for (var i = 0, len = interpolations.length; i < len; i += 1) {
1327
+ result.push(interpolations[i], strings[i + 1]);
1328
+ }
1329
+
1330
+ return result;
1331
+ });
1332
+
1333
+ //
1334
+ var isPlainObject = (function (x) {
1335
+ return x !== null && typeof x === 'object' && (x.toString ? x.toString() : Object.prototype.toString.call(x)) === '[object Object]' && !reactIs_28(x);
1336
+ });
1337
+
1338
+ //
1339
+ var EMPTY_ARRAY = Object.freeze([]);
1340
+ var EMPTY_OBJECT = Object.freeze({});
1341
+
1342
+ //
1343
+ function isFunction(test) {
1344
+ return typeof test === 'function';
1345
+ }
1346
+
1347
+ //
1348
+ function getComponentName(target) {
1349
+ return (process.env.NODE_ENV !== 'production' ? typeof target === 'string' && target : false) || // $FlowFixMe
1350
+ target.displayName || // $FlowFixMe
1351
+ target.name || 'Component';
1352
+ }
1353
+
1354
+ //
1355
+ function isStatelessFunction(test) {
1356
+ return typeof test === 'function' && !(test.prototype && test.prototype.isReactComponent);
1357
+ }
1358
+
1359
+ //
1360
+ function isStyledComponent(target) {
1361
+ return target && typeof target.styledComponentId === 'string';
1362
+ }
1363
+
1364
+ //
1365
+ var SC_ATTR = typeof process !== 'undefined' && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || 'data-styled';
1366
+ var SC_ATTR_ACTIVE = 'active';
1367
+ var SC_ATTR_VERSION = 'data-styled-version';
1368
+ var SC_VERSION = "5.1.1";
1369
+ var SPLITTER = '/*!sc*/\n';
1370
+ var IS_BROWSER = typeof window !== 'undefined' && 'HTMLElement' in window;
1371
+ var DISABLE_SPEEDY = typeof SC_DISABLE_SPEEDY === 'boolean' && SC_DISABLE_SPEEDY || typeof process !== 'undefined' && (process.env.REACT_APP_SC_DISABLE_SPEEDY || process.env.SC_DISABLE_SPEEDY) || process.env.NODE_ENV !== 'production'; // Shared empty execution context when generating static styles
1372
+
1373
+ //
1374
+
1375
+ /* eslint-disable camelcase, no-undef */
1376
+ var getNonce = function getNonce() {
1377
+ return typeof __webpack_nonce__ !== 'undefined' ? __webpack_nonce__ : null;
1378
+ };
1379
+
1380
+ var errorMap = {
1381
+ "1": "Cannot create styled-component for component: %s.\n\n",
1382
+ "2": "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",
1383
+ "3": "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
1384
+ "4": "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",
1385
+ "5": "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",
1386
+ "6": "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",
1387
+ "7": "ThemeProvider: Please return an object from your \"theme\" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n",
1388
+ "8": "ThemeProvider: Please make your \"theme\" prop an object.\n\n",
1389
+ "9": "Missing document `<head>`\n\n",
1390
+ "10": "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",
1391
+ "11": "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",
1392
+ "12": "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",
1393
+ "13": "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",
1394
+ "14": "ThemeProvider: \"theme\" prop is required.\n\n",
1395
+ "15": "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",
1396
+ "16": "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",
1397
+ "17": "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"
1398
+ };
1399
+
1400
+ //
1401
+ var ERRORS = process.env.NODE_ENV !== 'production' ? errorMap : {};
1402
+ /**
1403
+ * super basic version of sprintf
1404
+ */
1405
+
1406
+ function format() {
1407
+ var a = arguments.length <= 0 ? undefined : arguments[0];
1408
+ var b = [];
1409
+
1410
+ for (var c = 1, len = arguments.length; c < len; c += 1) {
1411
+ b.push(c < 0 || arguments.length <= c ? undefined : arguments[c]);
1412
+ }
1413
+
1414
+ b.forEach(function (d) {
1415
+ a = a.replace(/%[a-z]/, d);
1416
+ });
1417
+ return a;
1418
+ }
1419
+ /**
1420
+ * Create an error file out of errors.md for development and a simple web link to the full errors
1421
+ * in production mode.
1422
+ */
1423
+
1424
+
1425
+ function throwStyledComponentsError(code) {
1426
+ for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1427
+ interpolations[_key - 1] = arguments[_key];
1428
+ }
1429
+
1430
+ if (process.env.NODE_ENV === 'production') {
1431
+ throw new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#" + code + " for more information." + (interpolations.length > 0 ? " Additional arguments: " + interpolations.join(', ') : ''));
1432
+ } else {
1433
+ throw new Error(format.apply(void 0, [ERRORS[code]].concat(interpolations)).trim());
1434
+ }
1435
+ }
1436
+
1437
+ //
1438
+ var ELEMENT_TYPE = 1;
1439
+ /* Node.ELEMENT_TYPE */
1440
+
1441
+ /** Find last style element if any inside target */
1442
+
1443
+ var findLastStyleTag = function findLastStyleTag(target) {
1444
+ var childNodes = target.childNodes;
1445
+
1446
+ for (var i = childNodes.length; i >= 0; i--) {
1447
+ var child = childNodes[i];
1448
+
1449
+ if (child && child.nodeType === ELEMENT_TYPE && child.hasAttribute(SC_ATTR)) {
1450
+ return child;
1451
+ }
1452
+ }
1453
+
1454
+ return undefined;
1455
+ };
1456
+ /** Create a style element inside `target` or <head> after the last */
1457
+
1458
+
1459
+ var makeStyleTag = function makeStyleTag(target) {
1460
+ var head = document.head;
1461
+ var parent = target || head;
1462
+ var style = document.createElement('style');
1463
+ var prevStyle = findLastStyleTag(parent);
1464
+ var nextSibling = prevStyle !== undefined ? prevStyle.nextSibling : null;
1465
+ style.setAttribute(SC_ATTR, SC_ATTR_ACTIVE);
1466
+ style.setAttribute(SC_ATTR_VERSION, SC_VERSION);
1467
+ var nonce = getNonce();
1468
+ if (nonce) style.setAttribute('nonce', nonce);
1469
+ parent.insertBefore(style, nextSibling);
1470
+ return style;
1471
+ };
1472
+ /** Get the CSSStyleSheet instance for a given style element */
1473
+
1474
+ var getSheet = function getSheet(tag) {
1475
+ if (tag.sheet) {
1476
+ return tag.sheet;
1477
+ } // Avoid Firefox quirk where the style element might not have a sheet property
1478
+
1479
+
1480
+ var _document = document,
1481
+ styleSheets = _document.styleSheets;
1482
+
1483
+ for (var i = 0, l = styleSheets.length; i < l; i++) {
1484
+ var sheet = styleSheets[i];
1485
+
1486
+ if (sheet.ownerNode === tag) {
1487
+ return sheet;
1488
+ }
1489
+ }
1490
+
1491
+ throwStyledComponentsError(17);
1492
+ return undefined;
1493
+ };
1494
+
1495
+ //
1496
+ /** Create a CSSStyleSheet-like tag depending on the environment */
1497
+
1498
+ var makeTag = function makeTag(_ref) {
1499
+ var isServer = _ref.isServer,
1500
+ useCSSOMInjection = _ref.useCSSOMInjection,
1501
+ target = _ref.target;
1502
+
1503
+ if (isServer) {
1504
+ return new VirtualTag(target);
1505
+ } else if (useCSSOMInjection) {
1506
+ return new CSSOMTag(target);
1507
+ } else {
1508
+ return new TextTag(target);
1509
+ }
1510
+ };
1511
+ var CSSOMTag = /*#__PURE__*/function () {
1512
+ function CSSOMTag(target) {
1513
+ var element = this.element = makeStyleTag(target); // Avoid Edge bug where empty style elements don't create sheets
1514
+
1515
+ element.appendChild(document.createTextNode(''));
1516
+ this.sheet = getSheet(element);
1517
+ this.length = 0;
1518
+ }
1519
+
1520
+ var _proto = CSSOMTag.prototype;
1521
+
1522
+ _proto.insertRule = function insertRule(index, rule) {
1523
+ try {
1524
+ this.sheet.insertRule(rule, index);
1525
+ this.length++;
1526
+ return true;
1527
+ } catch (_error) {
1528
+ return false;
1529
+ }
1530
+ };
1531
+
1532
+ _proto.deleteRule = function deleteRule(index) {
1533
+ this.sheet.deleteRule(index);
1534
+ this.length--;
1535
+ };
1536
+
1537
+ _proto.getRule = function getRule(index) {
1538
+ var rule = this.sheet.cssRules[index]; // Avoid IE11 quirk where cssText is inaccessible on some invalid rules
1539
+
1540
+ if (rule !== undefined && typeof rule.cssText === 'string') {
1541
+ return rule.cssText;
1542
+ } else {
1543
+ return '';
1544
+ }
1545
+ };
1546
+
1547
+ return CSSOMTag;
1548
+ }();
1549
+ /** A Tag that emulates the CSSStyleSheet API but uses text nodes */
1550
+
1551
+ var TextTag = /*#__PURE__*/function () {
1552
+ function TextTag(target) {
1553
+ var element = this.element = makeStyleTag(target);
1554
+ this.nodes = element.childNodes;
1555
+ this.length = 0;
1556
+ }
1557
+
1558
+ var _proto2 = TextTag.prototype;
1559
+
1560
+ _proto2.insertRule = function insertRule(index, rule) {
1561
+ if (index <= this.length && index >= 0) {
1562
+ var node = document.createTextNode(rule);
1563
+ var refNode = this.nodes[index];
1564
+ this.element.insertBefore(node, refNode || null);
1565
+ this.length++;
1566
+ return true;
1567
+ } else {
1568
+ return false;
1569
+ }
1570
+ };
1571
+
1572
+ _proto2.deleteRule = function deleteRule(index) {
1573
+ this.element.removeChild(this.nodes[index]);
1574
+ this.length--;
1575
+ };
1576
+
1577
+ _proto2.getRule = function getRule(index) {
1578
+ if (index < this.length) {
1579
+ return this.nodes[index].textContent;
1580
+ } else {
1581
+ return '';
1582
+ }
1583
+ };
1584
+
1585
+ return TextTag;
1586
+ }();
1587
+ /** A completely virtual (server-side) Tag that doesn't manipulate the DOM */
1588
+
1589
+ var VirtualTag = /*#__PURE__*/function () {
1590
+ function VirtualTag(_target) {
1591
+ this.rules = [];
1592
+ this.length = 0;
1593
+ }
1594
+
1595
+ var _proto3 = VirtualTag.prototype;
1596
+
1597
+ _proto3.insertRule = function insertRule(index, rule) {
1598
+ if (index <= this.length) {
1599
+ this.rules.splice(index, 0, rule);
1600
+ this.length++;
1601
+ return true;
1602
+ } else {
1603
+ return false;
1604
+ }
1605
+ };
1606
+
1607
+ _proto3.deleteRule = function deleteRule(index) {
1608
+ this.rules.splice(index, 1);
1609
+ this.length--;
1610
+ };
1611
+
1612
+ _proto3.getRule = function getRule(index) {
1613
+ if (index < this.length) {
1614
+ return this.rules[index];
1615
+ } else {
1616
+ return '';
1617
+ }
1618
+ };
1619
+
1620
+ return VirtualTag;
1621
+ }();
1622
+
1623
+ //
1624
+ /** Create a GroupedTag with an underlying Tag implementation */
1625
+
1626
+ var makeGroupedTag = function makeGroupedTag(tag) {
1627
+ return new DefaultGroupedTag(tag);
1628
+ };
1629
+ var BASE_SIZE = 1 << 9;
1630
+
1631
+ var DefaultGroupedTag = /*#__PURE__*/function () {
1632
+ function DefaultGroupedTag(tag) {
1633
+ this.groupSizes = new Uint32Array(BASE_SIZE);
1634
+ this.length = BASE_SIZE;
1635
+ this.tag = tag;
1636
+ }
1637
+
1638
+ var _proto = DefaultGroupedTag.prototype;
1639
+
1640
+ _proto.indexOfGroup = function indexOfGroup(group) {
1641
+ var index = 0;
1642
+
1643
+ for (var i = 0; i < group; i++) {
1644
+ index += this.groupSizes[i];
1645
+ }
1646
+
1647
+ return index;
1648
+ };
1649
+
1650
+ _proto.insertRules = function insertRules(group, rules) {
1651
+ if (group >= this.groupSizes.length) {
1652
+ var oldBuffer = this.groupSizes;
1653
+ var oldSize = oldBuffer.length;
1654
+ var newSize = oldSize;
1655
+
1656
+ while (group >= newSize) {
1657
+ newSize <<= 1;
1658
+
1659
+ if (newSize < 0) {
1660
+ throwStyledComponentsError(16, "" + group);
1661
+ }
1662
+ }
1663
+
1664
+ this.groupSizes = new Uint32Array(newSize);
1665
+ this.groupSizes.set(oldBuffer);
1666
+ this.length = newSize;
1667
+
1668
+ for (var i = oldSize; i < newSize; i++) {
1669
+ this.groupSizes[i] = 0;
1670
+ }
1671
+ }
1672
+
1673
+ var ruleIndex = this.indexOfGroup(group + 1);
1674
+
1675
+ for (var _i = 0, l = rules.length; _i < l; _i++) {
1676
+ if (this.tag.insertRule(ruleIndex, rules[_i])) {
1677
+ this.groupSizes[group]++;
1678
+ ruleIndex++;
1679
+ }
1680
+ }
1681
+ };
1682
+
1683
+ _proto.clearGroup = function clearGroup(group) {
1684
+ if (group < this.length) {
1685
+ var length = this.groupSizes[group];
1686
+ var startIndex = this.indexOfGroup(group);
1687
+ var endIndex = startIndex + length;
1688
+ this.groupSizes[group] = 0;
1689
+
1690
+ for (var i = startIndex; i < endIndex; i++) {
1691
+ this.tag.deleteRule(startIndex);
1692
+ }
1693
+ }
1694
+ };
1695
+
1696
+ _proto.getGroup = function getGroup(group) {
1697
+ var css = '';
1698
+
1699
+ if (group >= this.length || this.groupSizes[group] === 0) {
1700
+ return css;
1701
+ }
1702
+
1703
+ var length = this.groupSizes[group];
1704
+ var startIndex = this.indexOfGroup(group);
1705
+ var endIndex = startIndex + length;
1706
+
1707
+ for (var i = startIndex; i < endIndex; i++) {
1708
+ css += "" + this.tag.getRule(i) + SPLITTER;
1709
+ }
1710
+
1711
+ return css;
1712
+ };
1713
+
1714
+ return DefaultGroupedTag;
1715
+ }();
1716
+
1717
+ //
1718
+ var MAX_SMI = 1 << 31 - 1;
1719
+ var groupIDRegister = new Map();
1720
+ var reverseRegister = new Map();
1721
+ var nextFreeGroup = 1;
1722
+ var getGroupForId = function getGroupForId(id) {
1723
+ if (groupIDRegister.has(id)) {
1724
+ return groupIDRegister.get(id);
1725
+ }
1726
+
1727
+ var group = nextFreeGroup++;
1728
+
1729
+ if (process.env.NODE_ENV !== 'production' && ((group | 0) < 0 || group > MAX_SMI)) {
1730
+ throwStyledComponentsError(16, "" + group);
1731
+ }
1732
+
1733
+ groupIDRegister.set(id, group);
1734
+ reverseRegister.set(group, id);
1735
+ return group;
1736
+ };
1737
+ var getIdForGroup = function getIdForGroup(group) {
1738
+ return reverseRegister.get(group);
1739
+ };
1740
+ var setGroupForId = function setGroupForId(id, group) {
1741
+ if (group >= nextFreeGroup) {
1742
+ nextFreeGroup = group + 1;
1743
+ }
1744
+
1745
+ groupIDRegister.set(id, group);
1746
+ reverseRegister.set(group, id);
1747
+ };
1748
+
1749
+ //
1750
+ var SELECTOR = "style[" + SC_ATTR + "][" + SC_ATTR_VERSION + "=\"" + SC_VERSION + "\"]";
1751
+ var MARKER_RE = new RegExp("^" + SC_ATTR + "\\.g(\\d+)\\[id=\"([\\w\\d-]+)\"\\].*?\"([^\"]*)");
1752
+ var outputSheet = function outputSheet(sheet) {
1753
+ var tag = sheet.getTag();
1754
+ var length = tag.length;
1755
+ var css = '';
1756
+
1757
+ for (var group = 0; group < length; group++) {
1758
+ var id = getIdForGroup(group);
1759
+ if (id === undefined) continue;
1760
+ var names = sheet.names.get(id);
1761
+ var rules = tag.getGroup(group);
1762
+ if (names === undefined || rules.length === 0) continue;
1763
+ var selector = SC_ATTR + ".g" + group + "[id=\"" + id + "\"]";
1764
+ var content = '';
1765
+
1766
+ if (names !== undefined) {
1767
+ names.forEach(function (name) {
1768
+ if (name.length > 0) {
1769
+ content += name + ",";
1770
+ }
1771
+ });
1772
+ } // NOTE: It's easier to collect rules and have the marker
1773
+ // after the actual rules to simplify the rehydration
1774
+
1775
+
1776
+ css += "" + rules + selector + "{content:\"" + content + "\"}" + SPLITTER;
1777
+ }
1778
+
1779
+ return css;
1780
+ };
1781
+
1782
+ var rehydrateNamesFromContent = function rehydrateNamesFromContent(sheet, id, content) {
1783
+ var names = content.split(',');
1784
+ var name;
1785
+
1786
+ for (var i = 0, l = names.length; i < l; i++) {
1787
+ // eslint-disable-next-line
1788
+ if (name = names[i]) {
1789
+ sheet.registerName(id, name);
1790
+ }
1791
+ }
1792
+ };
1793
+
1794
+ var rehydrateSheetFromTag = function rehydrateSheetFromTag(sheet, style) {
1795
+ var parts = style.innerHTML.split(SPLITTER);
1796
+ var rules = [];
1797
+
1798
+ for (var i = 0, l = parts.length; i < l; i++) {
1799
+ var part = parts[i].trim();
1800
+ if (!part) continue;
1801
+ var marker = part.match(MARKER_RE);
1802
+
1803
+ if (marker) {
1804
+ var group = parseInt(marker[1], 10) | 0;
1805
+ var id = marker[2];
1806
+
1807
+ if (group !== 0) {
1808
+ // Rehydrate componentId to group index mapping
1809
+ setGroupForId(id, group); // Rehydrate names and rules
1810
+ // looks like: data-styled.g11[id="idA"]{content:"nameA,"}
1811
+
1812
+ rehydrateNamesFromContent(sheet, id, marker[3]);
1813
+ sheet.getTag().insertRules(group, rules);
1814
+ }
1815
+
1816
+ rules.length = 0;
1817
+ } else {
1818
+ rules.push(part);
1819
+ }
1820
+ }
1821
+ };
1822
+
1823
+ var rehydrateSheet = function rehydrateSheet(sheet) {
1824
+ var nodes = document.querySelectorAll(SELECTOR);
1825
+
1826
+ for (var i = 0, l = nodes.length; i < l; i++) {
1827
+ var node = nodes[i];
1828
+
1829
+ if (node && node.getAttribute(SC_ATTR) !== SC_ATTR_ACTIVE) {
1830
+ rehydrateSheetFromTag(sheet, node);
1831
+
1832
+ if (node.parentNode) {
1833
+ node.parentNode.removeChild(node);
1834
+ }
1835
+ }
1836
+ }
1837
+ };
1838
+
1839
+ var SHOULD_REHYDRATE = IS_BROWSER;
1840
+ var defaultOptions = {
1841
+ isServer: !IS_BROWSER,
1842
+ useCSSOMInjection: !DISABLE_SPEEDY
1843
+ };
1844
+ /** Contains the main stylesheet logic for stringification and caching */
1845
+
1846
+ var StyleSheet = /*#__PURE__*/function () {
1847
+ /** Register a group ID to give it an index */
1848
+ StyleSheet.registerId = function registerId(id) {
1849
+ return getGroupForId(id);
1850
+ };
1851
+
1852
+ function StyleSheet(options, globalStyles, names) {
1853
+ if (options === void 0) {
1854
+ options = defaultOptions;
1855
+ }
1856
+
1857
+ if (globalStyles === void 0) {
1858
+ globalStyles = {};
1859
+ }
1860
+
1861
+ this.options = _extends$1({}, defaultOptions, {}, options);
1862
+ this.gs = globalStyles;
1863
+ this.names = new Map(names); // We rehydrate only once and use the sheet that is created first
1864
+
1865
+ if (!this.options.isServer && IS_BROWSER && SHOULD_REHYDRATE) {
1866
+ SHOULD_REHYDRATE = false;
1867
+ rehydrateSheet(this);
1868
+ }
1869
+ }
1870
+
1871
+ var _proto = StyleSheet.prototype;
1872
+
1873
+ _proto.reconstructWithOptions = function reconstructWithOptions(options) {
1874
+ return new StyleSheet(_extends$1({}, this.options, {}, options), this.gs, this.names);
1875
+ };
1876
+
1877
+ _proto.allocateGSInstance = function allocateGSInstance(id) {
1878
+ return this.gs[id] = (this.gs[id] || 0) + 1;
1879
+ }
1880
+ /** Lazily initialises a GroupedTag for when it's actually needed */
1881
+ ;
1882
+
1883
+ _proto.getTag = function getTag() {
1884
+ return this.tag || (this.tag = makeGroupedTag(makeTag(this.options)));
1885
+ }
1886
+ /** Check whether a name is known for caching */
1887
+ ;
1888
+
1889
+ _proto.hasNameForId = function hasNameForId(id, name) {
1890
+ return this.names.has(id) && this.names.get(id).has(name);
1891
+ }
1892
+ /** Mark a group's name as known for caching */
1893
+ ;
1894
+
1895
+ _proto.registerName = function registerName(id, name) {
1896
+ getGroupForId(id);
1897
+
1898
+ if (!this.names.has(id)) {
1899
+ var groupNames = new Set();
1900
+ groupNames.add(name);
1901
+ this.names.set(id, groupNames);
1902
+ } else {
1903
+ this.names.get(id).add(name);
1904
+ }
1905
+ }
1906
+ /** Insert new rules which also marks the name as known */
1907
+ ;
1908
+
1909
+ _proto.insertRules = function insertRules(id, name, rules) {
1910
+ this.registerName(id, name);
1911
+ this.getTag().insertRules(getGroupForId(id), rules);
1912
+ }
1913
+ /** Clears all cached names for a given group ID */
1914
+ ;
1915
+
1916
+ _proto.clearNames = function clearNames(id) {
1917
+ if (this.names.has(id)) {
1918
+ this.names.get(id).clear();
1919
+ }
1920
+ }
1921
+ /** Clears all rules for a given group ID */
1922
+ ;
1923
+
1924
+ _proto.clearRules = function clearRules(id) {
1925
+ this.getTag().clearGroup(getGroupForId(id));
1926
+ this.clearNames(id);
1927
+ }
1928
+ /** Clears the entire tag which deletes all rules but not its names */
1929
+ ;
1930
+
1931
+ _proto.clearTag = function clearTag() {
1932
+ // NOTE: This does not clear the names, since it's only used during SSR
1933
+ // so that we can continuously output only new rules
1934
+ this.tag = undefined;
1935
+ }
1936
+ /** Outputs the current sheet as a CSS string with markers for SSR */
1937
+ ;
1938
+
1939
+ _proto.toString = function toString() {
1940
+ return outputSheet(this);
1941
+ };
1942
+
1943
+ return StyleSheet;
1944
+ }();
1945
+
1946
+ //
1947
+
1948
+ /* eslint-disable */
1949
+ var SEED = 5381; // When we have separate strings it's useful to run a progressive
1950
+ // version of djb2 where we pretend that we're still looping over
1951
+ // the same string
1952
+
1953
+ var phash = function phash(h, x) {
1954
+ var i = x.length;
1955
+
1956
+ while (i) {
1957
+ h = h * 33 ^ x.charCodeAt(--i);
1958
+ }
1959
+
1960
+ return h;
1961
+ }; // This is a djb2 hashing function
1962
+
1963
+ var hash = function hash(x) {
1964
+ return phash(SEED, x);
1965
+ };
1966
+
1967
+ /**
1968
+ * MIT License
1969
+ *
1970
+ * Copyright (c) 2016 Sultan Tarimo
1971
+ *
1972
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
1973
+ * this software and associated documentation files (the "Software"),
1974
+ * to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
1975
+ * sell copies of the Software and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1976
+ *
1977
+ * The above copyright notice and this permission notice shall be included in all
1978
+ * copies or substantial portions of the Software.
1979
+ *
1980
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1981
+ * OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1982
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1983
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
1984
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
1985
+ * IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1986
+ */
1987
+
1988
+ /* eslint-disable */
1989
+ function insertRulePlugin (insertRule) {
1990
+ var delimiter = '/*|*/';
1991
+ var needle = delimiter + "}";
1992
+
1993
+ function toSheet(block) {
1994
+ if (block) {
1995
+ try {
1996
+ insertRule(block + "}");
1997
+ } catch (e) {}
1998
+ }
1999
+ }
2000
+
2001
+ return function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) {
2002
+ switch (context) {
2003
+ // property
2004
+ case 1:
2005
+ // @import
2006
+ if (depth === 0 && content.charCodeAt(0) === 64) return insertRule(content + ";"), '';
2007
+ break;
2008
+ // selector
2009
+
2010
+ case 2:
2011
+ if (ns === 0) return content + delimiter;
2012
+ break;
2013
+ // at-rule
2014
+
2015
+ case 3:
2016
+ switch (ns) {
2017
+ // @font-face, @page
2018
+ case 102:
2019
+ case 112:
2020
+ return insertRule(selectors[0] + content), '';
2021
+
2022
+ default:
2023
+ return content + (at === 0 ? delimiter : '');
2024
+ }
2025
+
2026
+ case -2:
2027
+ content.split(needle).forEach(toSheet);
2028
+ }
2029
+ };
2030
+ }
2031
+
2032
+ var COMMENT_REGEX = /^\s*\/\/.*$/gm;
2033
+ function createStylisInstance(_temp) {
2034
+ var _ref = _temp === void 0 ? EMPTY_OBJECT : _temp,
2035
+ _ref$options = _ref.options,
2036
+ options = _ref$options === void 0 ? EMPTY_OBJECT : _ref$options,
2037
+ _ref$plugins = _ref.plugins,
2038
+ plugins = _ref$plugins === void 0 ? EMPTY_ARRAY : _ref$plugins;
2039
+
2040
+ var stylis = new stylis_min(options); // Wrap `insertRulePlugin to build a list of rules,
2041
+ // and then make our own plugin to return the rules. This
2042
+ // makes it easier to hook into the existing SSR architecture
2043
+
2044
+ var parsingRules = []; // eslint-disable-next-line consistent-return
2045
+
2046
+ var returnRulesPlugin = function returnRulesPlugin(context) {
2047
+ if (context === -2) {
2048
+ var parsedRules = parsingRules;
2049
+ parsingRules = [];
2050
+ return parsedRules;
2051
+ }
2052
+ };
2053
+
2054
+ var parseRulesPlugin = insertRulePlugin(function (rule) {
2055
+ parsingRules.push(rule);
2056
+ });
2057
+
2058
+ var _componentId;
2059
+
2060
+ var _selector;
2061
+
2062
+ var _selectorRegexp;
2063
+
2064
+ var selfReferenceReplacer = function selfReferenceReplacer(match, offset, string) {
2065
+ if ( // the first self-ref is always untouched
2066
+ offset > 0 && // there should be at least two self-refs to do a replacement (.b > .b)
2067
+ string.slice(0, offset).indexOf(_selector) !== -1 && // no consecutive self refs (.b.b); that is a precedence boost and treated differently
2068
+ string.slice(offset - _selector.length, offset) !== _selector) {
2069
+ return "." + _componentId;
2070
+ }
2071
+
2072
+ return match;
2073
+ };
2074
+ /**
2075
+ * When writing a style like
2076
+ *
2077
+ * & + & {
2078
+ * color: red;
2079
+ * }
2080
+ *
2081
+ * The second ampersand should be a reference to the static component class. stylis
2082
+ * has no knowledge of static class so we have to intelligently replace the base selector.
2083
+ *
2084
+ * https://github.com/thysultan/stylis.js#plugins <- more info about the context phase values
2085
+ * "2" means this plugin is taking effect at the very end after all other processing is complete
2086
+ */
2087
+
2088
+
2089
+ var selfReferenceReplacementPlugin = function selfReferenceReplacementPlugin(context, _, selectors) {
2090
+ if (context === 2 && selectors.length && selectors[0].lastIndexOf(_selector) > 0) {
2091
+ // eslint-disable-next-line no-param-reassign
2092
+ selectors[0] = selectors[0].replace(_selectorRegexp, selfReferenceReplacer);
2093
+ }
2094
+ };
2095
+
2096
+ stylis.use([].concat(plugins, [selfReferenceReplacementPlugin, parseRulesPlugin, returnRulesPlugin]));
2097
+
2098
+ function stringifyRules(css, selector, prefix, componentId) {
2099
+ if (componentId === void 0) {
2100
+ componentId = '&';
2101
+ }
2102
+
2103
+ var flatCSS = css.replace(COMMENT_REGEX, '');
2104
+ var cssStr = selector && prefix ? prefix + " " + selector + " { " + flatCSS + " }" : flatCSS; // stylis has no concept of state to be passed to plugins
2105
+ // but since JS is single=threaded, we can rely on that to ensure
2106
+ // these properties stay in sync with the current stylis run
2107
+
2108
+ _componentId = componentId;
2109
+ _selector = selector;
2110
+ _selectorRegexp = new RegExp("\\" + _selector + "\\b", 'g');
2111
+ return stylis(prefix || !selector ? '' : selector, cssStr);
2112
+ }
2113
+
2114
+ stringifyRules.hash = plugins.length ? plugins.reduce(function (acc, plugin) {
2115
+ if (!plugin.name) {
2116
+ throwStyledComponentsError(15);
2117
+ }
2118
+
2119
+ return phash(acc, plugin.name);
2120
+ }, SEED).toString() : '';
2121
+ return stringifyRules;
2122
+ }
2123
+
2124
+ //
2125
+ var StyleSheetContext = React.createContext();
2126
+ var StyleSheetConsumer = StyleSheetContext.Consumer;
2127
+ var StylisContext = React.createContext();
2128
+ var StylisConsumer = StylisContext.Consumer;
2129
+ var masterSheet = new StyleSheet();
2130
+ var masterStylis = createStylisInstance();
2131
+ function useStyleSheet() {
2132
+ return useContext(StyleSheetContext) || masterSheet;
2133
+ }
2134
+ function useStylis() {
2135
+ return useContext(StylisContext) || masterStylis;
2136
+ }
2137
+
2138
+ //
2139
+
2140
+ var Keyframes = /*#__PURE__*/function () {
2141
+ function Keyframes(name, stringifyArgs) {
2142
+ var _this = this;
2143
+
2144
+ this.inject = function (styleSheet) {
2145
+ if (!styleSheet.hasNameForId(_this.id, _this.name)) {
2146
+ styleSheet.insertRules(_this.id, _this.name, masterStylis.apply(void 0, _this.stringifyArgs));
2147
+ }
2148
+ };
2149
+
2150
+ this.toString = function () {
2151
+ return throwStyledComponentsError(12, String(_this.name));
2152
+ };
2153
+
2154
+ this.name = name;
2155
+ this.id = "sc-keyframes-" + name;
2156
+ this.stringifyArgs = stringifyArgs;
2157
+ }
2158
+
2159
+ var _proto = Keyframes.prototype;
2160
+
2161
+ _proto.getName = function getName() {
2162
+ return this.name;
2163
+ };
2164
+
2165
+ return Keyframes;
2166
+ }();
2167
+
2168
+ //
2169
+
2170
+ /**
2171
+ * inlined version of
2172
+ * https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/hyphenateStyleName.js
2173
+ */
2174
+ var uppercasePattern = /([A-Z])/g;
2175
+ var msPattern = /^ms-/;
2176
+ /**
2177
+ * Hyphenates a camelcased CSS property name, for example:
2178
+ *
2179
+ * > hyphenateStyleName('backgroundColor')
2180
+ * < "background-color"
2181
+ * > hyphenateStyleName('MozTransition')
2182
+ * < "-moz-transition"
2183
+ * > hyphenateStyleName('msTransition')
2184
+ * < "-ms-transition"
2185
+ *
2186
+ * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
2187
+ * is converted to `-ms-`.
2188
+ *
2189
+ * @param {string} string
2190
+ * @return {string}
2191
+ */
2192
+
2193
+ function hyphenateStyleName(string) {
2194
+ return string.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
2195
+ }
2196
+
2197
+ //
2198
+
2199
+ function addUnitIfNeeded(name, value) {
2200
+ // https://github.com/amilajack/eslint-plugin-flowtype-errors/issues/133
2201
+ // $FlowFixMe
2202
+ if (value == null || typeof value === 'boolean' || value === '') {
2203
+ return '';
2204
+ }
2205
+
2206
+ if (typeof value === 'number' && value !== 0 && !(name in unitlessKeys)) {
2207
+ return value + "px"; // Presumes implicit 'px' suffix for unitless numbers
2208
+ }
2209
+
2210
+ return String(value).trim();
2211
+ }
2212
+
2213
+ //
2214
+ /**
2215
+ * It's falsish not falsy because 0 is allowed.
2216
+ */
2217
+
2218
+ var isFalsish = function isFalsish(chunk) {
2219
+ return chunk === undefined || chunk === null || chunk === false || chunk === '';
2220
+ };
2221
+
2222
+ var objToCssArray = function objToCssArray(obj, prevKey) {
2223
+ var rules = [];
2224
+ var keys = Object.keys(obj);
2225
+ keys.forEach(function (key) {
2226
+ if (!isFalsish(obj[key])) {
2227
+ if (isPlainObject(obj[key])) {
2228
+ rules.push.apply(rules, objToCssArray(obj[key], key));
2229
+ return rules;
2230
+ } else if (isFunction(obj[key])) {
2231
+ rules.push(hyphenateStyleName(key) + ":", obj[key], ';');
2232
+ return rules;
2233
+ }
2234
+
2235
+ rules.push(hyphenateStyleName(key) + ": " + addUnitIfNeeded(key, obj[key]) + ";");
2236
+ }
2237
+
2238
+ return rules;
2239
+ });
2240
+ return prevKey ? [prevKey + " {"].concat(rules, ['}']) : rules;
2241
+ };
2242
+ function flatten(chunk, executionContext, styleSheet) {
2243
+ if (Array.isArray(chunk)) {
2244
+ var ruleSet = [];
2245
+
2246
+ for (var i = 0, len = chunk.length, result; i < len; i += 1) {
2247
+ result = flatten(chunk[i], executionContext, styleSheet);
2248
+ if (result === '') continue;else if (Array.isArray(result)) ruleSet.push.apply(ruleSet, result);else ruleSet.push(result);
2249
+ }
2250
+
2251
+ return ruleSet;
2252
+ }
2253
+
2254
+ if (isFalsish(chunk)) {
2255
+ return '';
2256
+ }
2257
+ /* Handle other components */
2258
+
2259
+
2260
+ if (isStyledComponent(chunk)) {
2261
+ return "." + chunk.styledComponentId;
2262
+ }
2263
+ /* Either execute or defer the function */
2264
+
2265
+
2266
+ if (isFunction(chunk)) {
2267
+ if (isStatelessFunction(chunk) && executionContext) {
2268
+ var _result = chunk(executionContext);
2269
+
2270
+ if (process.env.NODE_ENV !== 'production' && reactIs_18(_result)) {
2271
+ // eslint-disable-next-line no-console
2272
+ console.warn(getComponentName(chunk) + " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.");
2273
+ }
2274
+
2275
+ return flatten(_result, executionContext, styleSheet);
2276
+ } else return chunk;
2277
+ }
2278
+
2279
+ if (chunk instanceof Keyframes) {
2280
+ if (styleSheet) {
2281
+ chunk.inject(styleSheet);
2282
+ return chunk.getName();
2283
+ } else return chunk;
2284
+ }
2285
+ /* Handle objects */
2286
+
2287
+
2288
+ return isPlainObject(chunk) ? objToCssArray(chunk) : chunk.toString();
2289
+ }
2290
+
2291
+ //
2292
+ function css(styles) {
2293
+ for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2294
+ interpolations[_key - 1] = arguments[_key];
2295
+ }
2296
+
2297
+ if (isFunction(styles) || isPlainObject(styles)) {
2298
+ // $FlowFixMe
2299
+ return flatten(interleave(EMPTY_ARRAY, [styles].concat(interpolations)));
2300
+ }
2301
+
2302
+ if (interpolations.length === 0 && styles.length === 1 && typeof styles[0] === "string") {
2303
+ // $FlowFixMe
2304
+ return styles;
2305
+ } // $FlowFixMe
2306
+
2307
+
2308
+ return flatten(interleave(styles, interpolations));
2309
+ }
2310
+
2311
+ function constructWithOptions(componentConstructor, tag, options) {
2312
+ if (options === void 0) {
2313
+ options = EMPTY_OBJECT;
2314
+ }
2315
+
2316
+ if (!reactIs_27(tag)) {
2317
+ return throwStyledComponentsError(1, String(tag));
2318
+ }
2319
+ /* This is callable directly as a template function */
2320
+ // $FlowFixMe: Not typed to avoid destructuring arguments
2321
+
2322
+
2323
+ var templateFunction = function templateFunction() {
2324
+ return componentConstructor(tag, options, css.apply(void 0, arguments));
2325
+ };
2326
+ /* If config methods are called, wrap up a new template function and merge options */
2327
+
2328
+
2329
+ templateFunction.withConfig = function (config) {
2330
+ return constructWithOptions(componentConstructor, tag, _extends$1({}, options, {}, config));
2331
+ };
2332
+ /* Modify/inject new props at runtime */
2333
+
2334
+
2335
+ templateFunction.attrs = function (attrs) {
2336
+ return constructWithOptions(componentConstructor, tag, _extends$1({}, options, {
2337
+ attrs: Array.prototype.concat(options.attrs, attrs).filter(Boolean)
2338
+ }));
2339
+ };
2340
+
2341
+ return templateFunction;
2342
+ }
2343
+
2344
+ /* eslint-disable */
2345
+
2346
+ /**
2347
+ mixin-deep; https://github.com/jonschlinkert/mixin-deep
2348
+ Inlined such that it will be consistently transpiled to an IE-compatible syntax.
2349
+
2350
+ The MIT License (MIT)
2351
+
2352
+ Copyright (c) 2014-present, Jon Schlinkert.
2353
+
2354
+ Permission is hereby granted, free of charge, to any person obtaining a copy
2355
+ of this software and associated documentation files (the "Software"), to deal
2356
+ in the Software without restriction, including without limitation the rights
2357
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2358
+ copies of the Software, and to permit persons to whom the Software is
2359
+ furnished to do so, subject to the following conditions:
2360
+
2361
+ The above copyright notice and this permission notice shall be included in
2362
+ all copies or substantial portions of the Software.
2363
+
2364
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2365
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2366
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2367
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2368
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2369
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2370
+ THE SOFTWARE.
2371
+ */
2372
+ var isObject = function isObject(val) {
2373
+ return typeof val === 'function' || typeof val === 'object' && val !== null && !Array.isArray(val);
2374
+ };
2375
+
2376
+ var isValidKey = function isValidKey(key) {
2377
+ return key !== '__proto__' && key !== 'constructor' && key !== 'prototype';
2378
+ };
2379
+
2380
+ function mixin(target, val, key) {
2381
+ var obj = target[key];
2382
+
2383
+ if (isObject(val) && isObject(obj)) {
2384
+ mixinDeep(obj, val);
2385
+ } else {
2386
+ target[key] = val;
2387
+ }
2388
+ }
2389
+
2390
+ function mixinDeep(target) {
2391
+ for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2392
+ rest[_key - 1] = arguments[_key];
2393
+ }
2394
+
2395
+ for (var _i = 0, _rest = rest; _i < _rest.length; _i++) {
2396
+ var obj = _rest[_i];
2397
+
2398
+ if (isObject(obj)) {
2399
+ for (var key in obj) {
2400
+ if (isValidKey(key)) {
2401
+ mixin(target, obj[key], key);
2402
+ }
2403
+ }
2404
+ }
2405
+ }
2406
+
2407
+ return target;
2408
+ }
2409
+
2410
+ //
2411
+
2412
+ /* eslint-disable no-bitwise */
2413
+ var AD_REPLACER_R = /(a)(d)/gi;
2414
+ /* This is the "capacity" of our alphabet i.e. 2x26 for all letters plus their capitalised
2415
+ * counterparts */
2416
+
2417
+ var charsLength = 52;
2418
+ /* start at 75 for 'a' until 'z' (25) and then start at 65 for capitalised letters */
2419
+
2420
+ var getAlphabeticChar = function getAlphabeticChar(code) {
2421
+ return String.fromCharCode(code + (code > 25 ? 39 : 97));
2422
+ };
2423
+ /* input a number, usually a hash and convert it to base-52 */
2424
+
2425
+
2426
+ function generateAlphabeticName(code) {
2427
+ var name = '';
2428
+ var x;
2429
+ /* get a char and divide by alphabet-length */
2430
+
2431
+ for (x = Math.abs(code); x > charsLength; x = x / charsLength | 0) {
2432
+ name = getAlphabeticChar(x % charsLength) + name;
2433
+ }
2434
+
2435
+ return (getAlphabeticChar(x % charsLength) + name).replace(AD_REPLACER_R, '$1-$2');
2436
+ }
2437
+
2438
+ //
2439
+ function isStaticRules(rules) {
2440
+ for (var i = 0; i < rules.length; i += 1) {
2441
+ var rule = rules[i];
2442
+
2443
+ if (isFunction(rule) && !isStyledComponent(rule)) {
2444
+ // functions are allowed to be static if they're just being
2445
+ // used to get the classname of a nested styled component
2446
+ return false;
2447
+ }
2448
+ }
2449
+
2450
+ return true;
2451
+ }
2452
+
2453
+ //
2454
+ /*
2455
+ ComponentStyle is all the CSS-specific stuff, not
2456
+ the React-specific stuff.
2457
+ */
2458
+
2459
+ var ComponentStyle = /*#__PURE__*/function () {
2460
+ function ComponentStyle(rules, componentId) {
2461
+ this.rules = rules;
2462
+ this.staticRulesId = '';
2463
+ this.isStatic = process.env.NODE_ENV === 'production' && isStaticRules(rules);
2464
+ this.componentId = componentId;
2465
+ this.baseHash = hash(componentId); // NOTE: This registers the componentId, which ensures a consistent order
2466
+ // for this component's styles compared to others
2467
+
2468
+ StyleSheet.registerId(componentId);
2469
+ }
2470
+ /*
2471
+ * Flattens a rule set into valid CSS
2472
+ * Hashes it, wraps the whole chunk in a .hash1234 {}
2473
+ * Returns the hash to be injected on render()
2474
+ * */
2475
+
2476
+
2477
+ var _proto = ComponentStyle.prototype;
2478
+
2479
+ _proto.generateAndInjectStyles = function generateAndInjectStyles(executionContext, styleSheet, stylis) {
2480
+ var componentId = this.componentId; // force dynamic classnames if user-supplied stylis plugins are in use
2481
+
2482
+ if (this.isStatic && !stylis.hash) {
2483
+ if (this.staticRulesId && styleSheet.hasNameForId(componentId, this.staticRulesId)) {
2484
+ return this.staticRulesId;
2485
+ }
2486
+
2487
+ var cssStatic = flatten(this.rules, executionContext, styleSheet).join('');
2488
+ var name = generateAlphabeticName(phash(this.baseHash, cssStatic.length) >>> 0);
2489
+
2490
+ if (!styleSheet.hasNameForId(componentId, name)) {
2491
+ var cssStaticFormatted = stylis(cssStatic, "." + name, undefined, componentId);
2492
+ styleSheet.insertRules(componentId, name, cssStaticFormatted);
2493
+ }
2494
+
2495
+ this.staticRulesId = name;
2496
+ return name;
2497
+ } else {
2498
+ var length = this.rules.length;
2499
+ var dynamicHash = phash(this.baseHash, stylis.hash);
2500
+ var css = '';
2501
+
2502
+ for (var i = 0; i < length; i++) {
2503
+ var partRule = this.rules[i];
2504
+
2505
+ if (typeof partRule === 'string') {
2506
+ css += partRule;
2507
+ if (process.env.NODE_ENV !== 'production') dynamicHash = phash(dynamicHash, partRule + i);
2508
+ } else {
2509
+ var partChunk = flatten(partRule, executionContext, styleSheet);
2510
+ var partString = Array.isArray(partChunk) ? partChunk.join('') : partChunk;
2511
+ dynamicHash = phash(dynamicHash, partString + i);
2512
+ css += partString;
2513
+ }
2514
+ }
2515
+
2516
+ var _name = generateAlphabeticName(dynamicHash >>> 0);
2517
+
2518
+ if (!styleSheet.hasNameForId(componentId, _name)) {
2519
+ var cssFormatted = stylis(css, "." + _name, undefined, componentId);
2520
+ styleSheet.insertRules(componentId, _name, cssFormatted);
2521
+ }
2522
+
2523
+ return _name;
2524
+ }
2525
+ };
2526
+
2527
+ return ComponentStyle;
2528
+ }();
2529
+
2530
+ //
2531
+ var LIMIT = 200;
2532
+ var createWarnTooManyClasses = (function (displayName, componentId) {
2533
+ var generatedClasses = {};
2534
+ var warningSeen = false;
2535
+ return function (className) {
2536
+ if (!warningSeen) {
2537
+ generatedClasses[className] = true;
2538
+
2539
+ if (Object.keys(generatedClasses).length >= LIMIT) {
2540
+ // Unable to find latestRule in test environment.
2541
+
2542
+ /* eslint-disable no-console, prefer-template */
2543
+ var parsedIdString = componentId ? " with the id of \"" + componentId + "\"" : '';
2544
+ console.warn("Over " + LIMIT + " classes were generated for component " + displayName + parsedIdString + ".\n" + 'Consider using the attrs method, together with a style object for frequently changed styles.\n' + 'Example:\n' + ' const Component = styled.div.attrs(props => ({\n' + ' style: {\n' + ' background: props.background,\n' + ' },\n' + ' }))`width: 100%;`\n\n' + ' <Component />');
2545
+ warningSeen = true;
2546
+ generatedClasses = {};
2547
+ }
2548
+ }
2549
+ };
2550
+ });
2551
+
2552
+ //
2553
+ var invalidHookCallRe = /invalid hook call/i;
2554
+ var seen = new Set();
2555
+ var checkDynamicCreation = function checkDynamicCreation(displayName, componentId) {
2556
+ if (process.env.NODE_ENV !== 'production') {
2557
+ var parsedIdString = componentId ? " with the id of \"" + componentId + "\"" : '';
2558
+ var message = "The component " + displayName + parsedIdString + " has been created dynamically.\n" + 'You may see this warning because you\'ve called styled inside another component.\n' + 'To resolve this only create new StyledComponents outside of any render method and function component.';
2559
+
2560
+ try {
2561
+ // We purposefully call `useRef` outside of a component and expect it to throw
2562
+ // If it doesn't, then we're inside another component.
2563
+ // eslint-disable-next-line react-hooks/rules-of-hooks
2564
+ useRef();
2565
+
2566
+ if (!seen.has(message)) {
2567
+ // eslint-disable-next-line no-console
2568
+ console.warn(message);
2569
+ seen.add(message);
2570
+ }
2571
+ } catch (error) {
2572
+ // The error here is expected, since we're expecting anything that uses `checkDynamicCreation` to
2573
+ // be called outside of a React component.
2574
+ if (invalidHookCallRe.test(error.message)) {
2575
+ // This shouldn't happen, but resets `warningSeen` if we had this error happen intermittently
2576
+ seen["delete"](message);
2577
+ }
2578
+ }
2579
+ }
2580
+ };
2581
+
2582
+ //
2583
+ var determineTheme = (function (props, providedTheme, defaultProps) {
2584
+ if (defaultProps === void 0) {
2585
+ defaultProps = EMPTY_OBJECT;
2586
+ }
2587
+
2588
+ return props.theme !== defaultProps.theme && props.theme || providedTheme || defaultProps.theme;
2589
+ });
2590
+
2591
+ //
2592
+ // Source: https://www.w3.org/TR/cssom-1/#serialize-an-identifier
2593
+ // Control characters and non-letter first symbols are not supported
2594
+ var escapeRegex = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
2595
+ var dashesAtEnds = /(^-|-$)/g;
2596
+ /**
2597
+ * TODO: Explore using CSS.escape when it becomes more available
2598
+ * in evergreen browsers.
2599
+ */
2600
+
2601
+ function escape(str) {
2602
+ return str // Replace all possible CSS selectors
2603
+ .replace(escapeRegex, '-') // Remove extraneous hyphens at the start and end
2604
+ .replace(dashesAtEnds, '');
2605
+ }
2606
+
2607
+ //
2608
+ function isTag(target) {
2609
+ return typeof target === 'string' && (process.env.NODE_ENV !== 'production' ? target.charAt(0) === target.charAt(0).toLowerCase() : true);
2610
+ }
2611
+
2612
+ //
2613
+ function generateDisplayName(target) {
2614
+ // $FlowFixMe
2615
+ return isTag(target) ? "styled." + target : "Styled(" + getComponentName(target) + ")";
2616
+ }
2617
+
2618
+ //
2619
+ var generateComponentId = (function (str) {
2620
+ return generateAlphabeticName(hash(str) >>> 0);
2621
+ });
2622
+
2623
+ /**
2624
+ * Convenience function for joining strings to form className chains
2625
+ */
2626
+ function joinStrings(a, b) {
2627
+ return a && b ? a + " " + b : a || b;
2628
+ }
2629
+
2630
+ var ThemeContext = React.createContext();
2631
+ var ThemeConsumer = ThemeContext.Consumer;
2632
+
2633
+ function mergeTheme(theme, outerTheme) {
2634
+ if (!theme) {
2635
+ return throwStyledComponentsError(14);
2636
+ }
2637
+
2638
+ if (isFunction(theme)) {
2639
+ var mergedTheme = theme(outerTheme);
2640
+
2641
+ if (process.env.NODE_ENV !== 'production' && (mergedTheme === null || Array.isArray(mergedTheme) || typeof mergedTheme !== 'object')) {
2642
+ return throwStyledComponentsError(7);
2643
+ }
2644
+
2645
+ return mergedTheme;
2646
+ }
2647
+
2648
+ if (Array.isArray(theme) || typeof theme !== 'object') {
2649
+ return throwStyledComponentsError(8);
2650
+ }
2651
+
2652
+ return outerTheme ? _extends$1({}, outerTheme, {}, theme) : theme;
2653
+ }
2654
+ /**
2655
+ * Provide a theme to an entire react component tree via context
2656
+ */
2657
+
2658
+
2659
+ function ThemeProvider(props) {
2660
+ var outerTheme = useContext(ThemeContext);
2661
+ var themeContext = useMemo(function () {
2662
+ return mergeTheme(props.theme, outerTheme);
2663
+ }, [props.theme, outerTheme]);
2664
+
2665
+ if (!props.children) {
2666
+ return null;
2667
+ }
2668
+
2669
+ return /*#__PURE__*/React.createElement(ThemeContext.Provider, {
2670
+ value: themeContext
2671
+ }, props.children);
2672
+ }
2673
+
2674
+ /* global $Call */
2675
+
2676
+ var identifiers = {};
2677
+ /* We depend on components having unique IDs */
2678
+
2679
+ function generateId(displayName, parentComponentId) {
2680
+ var name = typeof displayName !== 'string' ? 'sc' : escape(displayName); // Ensure that no displayName can lead to duplicate componentIds
2681
+
2682
+ identifiers[name] = (identifiers[name] || 0) + 1;
2683
+ var componentId = name + "-" + generateComponentId(name + identifiers[name]);
2684
+ return parentComponentId ? parentComponentId + "-" + componentId : componentId;
2685
+ }
2686
+
2687
+ function useResolvedAttrs(theme, props, attrs) {
2688
+ if (theme === void 0) {
2689
+ theme = EMPTY_OBJECT;
2690
+ }
2691
+
2692
+ // NOTE: can't memoize this
2693
+ // returns [context, resolvedAttrs]
2694
+ // where resolvedAttrs is only the things injected by the attrs themselves
2695
+ var context = _extends$1({}, props, {
2696
+ theme: theme
2697
+ });
2698
+
2699
+ var resolvedAttrs = {};
2700
+ attrs.forEach(function (attrDef) {
2701
+ var resolvedAttrDef = attrDef;
2702
+ var key;
2703
+
2704
+ if (isFunction(resolvedAttrDef)) {
2705
+ resolvedAttrDef = resolvedAttrDef(context);
2706
+ }
2707
+ /* eslint-disable guard-for-in */
2708
+
2709
+
2710
+ for (key in resolvedAttrDef) {
2711
+ context[key] = resolvedAttrs[key] = key === 'className' ? joinStrings(resolvedAttrs[key], resolvedAttrDef[key]) : resolvedAttrDef[key];
2712
+ }
2713
+ /* eslint-enable guard-for-in */
2714
+
2715
+ });
2716
+ return [context, resolvedAttrs];
2717
+ }
2718
+
2719
+ function useInjectedStyle(componentStyle, hasAttrs, resolvedAttrs, warnTooManyClasses) {
2720
+ var styleSheet = useStyleSheet();
2721
+ var stylis = useStylis(); // statically styled-components don't need to build an execution context object,
2722
+ // and shouldn't be increasing the number of class names
2723
+
2724
+ var isStatic = componentStyle.isStatic && !hasAttrs;
2725
+ var className = isStatic ? componentStyle.generateAndInjectStyles(EMPTY_OBJECT, styleSheet, stylis) : componentStyle.generateAndInjectStyles(resolvedAttrs, styleSheet, stylis);
2726
+ useDebugValue(className);
2727
+
2728
+ if (process.env.NODE_ENV !== 'production' && !isStatic && warnTooManyClasses) {
2729
+ warnTooManyClasses(className);
2730
+ }
2731
+
2732
+ return className;
2733
+ }
2734
+
2735
+ function useStyledComponentImpl(forwardedComponent, props, forwardedRef) {
2736
+ var componentAttrs = forwardedComponent.attrs,
2737
+ componentStyle = forwardedComponent.componentStyle,
2738
+ defaultProps = forwardedComponent.defaultProps,
2739
+ foldedComponentIds = forwardedComponent.foldedComponentIds,
2740
+ shouldForwardProp = forwardedComponent.shouldForwardProp,
2741
+ styledComponentId = forwardedComponent.styledComponentId,
2742
+ target = forwardedComponent.target;
2743
+ useDebugValue(styledComponentId); // NOTE: the non-hooks version only subscribes to this when !componentStyle.isStatic,
2744
+ // but that'd be against the rules-of-hooks. We could be naughty and do it anyway as it
2745
+ // should be an immutable value, but behave for now.
2746
+
2747
+ var theme = determineTheme(props, useContext(ThemeContext), defaultProps);
2748
+
2749
+ var _useResolvedAttrs = useResolvedAttrs(theme || EMPTY_OBJECT, props, componentAttrs),
2750
+ context = _useResolvedAttrs[0],
2751
+ attrs = _useResolvedAttrs[1];
2752
+
2753
+ var generatedClassName = useInjectedStyle(componentStyle, componentAttrs.length > 0, context, process.env.NODE_ENV !== 'production' ? forwardedComponent.warnTooManyClasses : undefined);
2754
+ var refToForward = forwardedRef;
2755
+ var elementToBeCreated = attrs.$as || props.$as || attrs.as || props.as || target;
2756
+ var isTargetTag = isTag(elementToBeCreated);
2757
+ var computedProps = attrs !== props ? _extends$1({}, props, {}, attrs) : props;
2758
+ var propFilterFn = shouldForwardProp || isTargetTag && index;
2759
+ var propsForElement = {}; // eslint-disable-next-line guard-for-in
2760
+
2761
+ for (var key in computedProps) {
2762
+ if (key[0] === '$' || key === 'as') continue;else if (key === 'forwardedAs') {
2763
+ propsForElement.as = computedProps[key];
2764
+ } else if (!propFilterFn || propFilterFn(key, index)) {
2765
+ // Don't pass through non HTML tags through to HTML elements
2766
+ propsForElement[key] = computedProps[key];
2767
+ }
2768
+ }
2769
+
2770
+ if (props.style && attrs.style !== props.style) {
2771
+ propsForElement.style = _extends$1({}, props.style, {}, attrs.style);
2772
+ }
2773
+
2774
+ propsForElement.className = Array.prototype.concat(foldedComponentIds, styledComponentId, generatedClassName !== styledComponentId ? generatedClassName : null, props.className, attrs.className).filter(Boolean).join(' ');
2775
+ propsForElement.ref = refToForward;
2776
+ return createElement(elementToBeCreated, propsForElement);
2777
+ }
2778
+
2779
+ function createStyledComponent(target, options, rules) {
2780
+ var isTargetStyledComp = isStyledComponent(target);
2781
+ var isCompositeComponent = !isTag(target);
2782
+ var _options$displayName = options.displayName,
2783
+ displayName = _options$displayName === void 0 ? generateDisplayName(target) : _options$displayName,
2784
+ _options$componentId = options.componentId,
2785
+ componentId = _options$componentId === void 0 ? generateId(options.displayName, options.parentComponentId) : _options$componentId,
2786
+ _options$attrs = options.attrs,
2787
+ attrs = _options$attrs === void 0 ? EMPTY_ARRAY : _options$attrs;
2788
+ var styledComponentId = options.displayName && options.componentId ? escape(options.displayName) + "-" + options.componentId : options.componentId || componentId; // fold the underlying StyledComponent attrs up (implicit extend)
2789
+
2790
+ var finalAttrs = // $FlowFixMe
2791
+ isTargetStyledComp && target.attrs ? Array.prototype.concat(target.attrs, attrs).filter(Boolean) : attrs; // eslint-disable-next-line prefer-destructuring
2792
+
2793
+ var shouldForwardProp = options.shouldForwardProp; // $FlowFixMe
2794
+
2795
+ if (isTargetStyledComp && target.shouldForwardProp) {
2796
+ if (shouldForwardProp) {
2797
+ // compose nested shouldForwardProp calls
2798
+ shouldForwardProp = function shouldForwardProp(prop, filterFn) {
2799
+ return (// $FlowFixMe
2800
+ target.shouldForwardProp(prop, filterFn) && options.shouldForwardProp(prop, filterFn)
2801
+ );
2802
+ };
2803
+ } else {
2804
+ // eslint-disable-next-line prefer-destructuring
2805
+ shouldForwardProp = target.shouldForwardProp;
2806
+ }
2807
+ }
2808
+
2809
+ var componentStyle = new ComponentStyle(isTargetStyledComp ? // fold the underlying StyledComponent rules up (implicit extend)
2810
+ // $FlowFixMe
2811
+ target.componentStyle.rules.concat(rules) : rules, styledComponentId);
2812
+ /**
2813
+ * forwardRef creates a new interim component, which we'll take advantage of
2814
+ * instead of extending ParentComponent to create _another_ interim class
2815
+ */
2816
+
2817
+ var WrappedStyledComponent; // eslint-disable-next-line react-hooks/rules-of-hooks
2818
+
2819
+ var forwardRef = function forwardRef(props, ref) {
2820
+ return useStyledComponentImpl(WrappedStyledComponent, props, ref);
2821
+ };
2822
+
2823
+ forwardRef.displayName = displayName; // $FlowFixMe this is a forced cast to merge it StyledComponentWrapperProperties
2824
+
2825
+ WrappedStyledComponent = React.forwardRef(forwardRef);
2826
+ WrappedStyledComponent.attrs = finalAttrs;
2827
+ WrappedStyledComponent.componentStyle = componentStyle;
2828
+ WrappedStyledComponent.displayName = displayName;
2829
+ WrappedStyledComponent.shouldForwardProp = shouldForwardProp; // this static is used to preserve the cascade of static classes for component selector
2830
+ // purposes; this is especially important with usage of the css prop
2831
+
2832
+ WrappedStyledComponent.foldedComponentIds = isTargetStyledComp ? // $FlowFixMe
2833
+ Array.prototype.concat(target.foldedComponentIds, target.styledComponentId) : EMPTY_ARRAY;
2834
+ WrappedStyledComponent.styledComponentId = styledComponentId; // fold the underlying StyledComponent target up since we folded the styles
2835
+
2836
+ WrappedStyledComponent.target = isTargetStyledComp ? // $FlowFixMe
2837
+ target.target : target; // $FlowFixMe
2838
+
2839
+ WrappedStyledComponent.withComponent = function withComponent(tag) {
2840
+ var previousComponentId = options.componentId,
2841
+ optionsToCopy = _objectWithoutPropertiesLoose$1(options, ["componentId"]);
2842
+
2843
+ var newComponentId = previousComponentId && previousComponentId + "-" + (isTag(tag) ? tag : escape(getComponentName(tag)));
2844
+
2845
+ var newOptions = _extends$1({}, optionsToCopy, {
2846
+ attrs: finalAttrs,
2847
+ componentId: newComponentId
2848
+ });
2849
+
2850
+ return createStyledComponent(tag, newOptions, rules);
2851
+ }; // $FlowFixMe
2852
+
2853
+
2854
+ Object.defineProperty(WrappedStyledComponent, 'defaultProps', {
2855
+ get: function get() {
2856
+ return this._foldedDefaultProps;
2857
+ },
2858
+ set: function set(obj) {
2859
+ // $FlowFixMe
2860
+ this._foldedDefaultProps = isTargetStyledComp ? mixinDeep({}, target.defaultProps, obj) : obj;
2861
+ }
2862
+ });
2863
+
2864
+ if (process.env.NODE_ENV !== 'production') {
2865
+ checkDynamicCreation(displayName, styledComponentId);
2866
+ WrappedStyledComponent.warnTooManyClasses = createWarnTooManyClasses(displayName, styledComponentId);
2867
+ } // $FlowFixMe
2868
+
2869
+
2870
+ WrappedStyledComponent.toString = function () {
2871
+ return "." + WrappedStyledComponent.styledComponentId;
2872
+ };
2873
+
2874
+ if (isCompositeComponent) {
2875
+ hoistNonReactStatics_cjs(WrappedStyledComponent, target, {
2876
+ // all SC-specific things should not be hoisted
2877
+ attrs: true,
2878
+ componentStyle: true,
2879
+ displayName: true,
2880
+ foldedComponentIds: true,
2881
+ shouldForwardProp: true,
2882
+ self: true,
2883
+ styledComponentId: true,
2884
+ target: true,
2885
+ withComponent: true
2886
+ });
2887
+ }
2888
+
2889
+ return WrappedStyledComponent;
2890
+ }
2891
+
2892
+ //
2893
+ // Thanks to ReactDOMFactories for this handy list!
2894
+ var domElements = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr', // SVG
2895
+ 'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'marker', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];
2896
+
2897
+ //
2898
+
2899
+ var styled = function styled(tag) {
2900
+ return constructWithOptions(createStyledComponent, tag);
2901
+ }; // Shorthands for all valid HTML Elements
2902
+
2903
+
2904
+ domElements.forEach(function (domElement) {
2905
+ styled[domElement] = styled(domElement);
2906
+ });
2907
+ /* Warning if you've imported this file on React Native */
2908
+
2909
+ if (process.env.NODE_ENV !== 'production' && typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
2910
+ // eslint-disable-next-line no-console
2911
+ console.warn("It looks like you've imported 'styled-components' on React Native.\n" + "Perhaps you're looking to import 'styled-components/native'?\n" + 'Read more about this at https://www.styled-components.com/docs/basics#react-native');
2912
+ }
2913
+ /* Warning if there are several instances of styled-components */
2914
+
2915
+
2916
+ if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' && typeof window !== 'undefined') {
2917
+ window['__styled-components-init__'] = window['__styled-components-init__'] || 0;
2918
+
2919
+ if (window['__styled-components-init__'] === 1) {
2920
+ // eslint-disable-next-line no-console
2921
+ console.warn("It looks like there are several instances of 'styled-components' initialized in this application. " + 'This may cause dynamic styles not rendering properly, errors happening during rehydration process, ' + 'missing theme prop, and makes your application bigger without a good reason.\n\n' + 'See https://s-c.sh/2BAXzed for more info.');
2922
+ }
2923
+
2924
+ window['__styled-components-init__'] += 1;
2925
+ }
1290
2926
 
1291
2927
  /*! *****************************************************************************
1292
2928
  Copyright (c) Microsoft Corporation.
@@ -1773,17 +3409,17 @@ var FLOAT_32_SUPPORTED = typeof Float32Array !== 'undefined';
1773
3409
  var a = function (a1, a2) {
1774
3410
  return 1.0 - 3.0 * a2 + 3.0 * a1;
1775
3411
  };
1776
- var b$2 = function (a1, a2) {
3412
+ var b$1 = function (a1, a2) {
1777
3413
  return 3.0 * a2 - 6.0 * a1;
1778
3414
  };
1779
3415
  var c$1 = function (a1) {
1780
3416
  return 3.0 * a1;
1781
3417
  };
1782
3418
  var getSlope = function (t, a1, a2) {
1783
- return 3.0 * a(a1, a2) * t * t + 2.0 * b$2(a1, a2) * t + c$1(a1);
3419
+ return 3.0 * a(a1, a2) * t * t + 2.0 * b$1(a1, a2) * t + c$1(a1);
1784
3420
  };
1785
3421
  var calcBezier = function (t, a1, a2) {
1786
- return ((a(a1, a2) * t + b$2(a1, a2)) * t + c$1(a1)) * t;
3422
+ return ((a(a1, a2) * t + b$1(a1, a2)) * t + c$1(a1)) * t;
1787
3423
  };
1788
3424
  function cubicBezier(mX1, mY1, mX2, mY2) {
1789
3425
  var sampleValues = FLOAT_32_SUPPORTED ? new Float32Array(K_SPLINE_TABLE_SIZE) : new Array(K_SPLINE_TABLE_SIZE);
@@ -2794,7 +4430,7 @@ var createDOMStyler = function (node, props) {
2794
4430
  var getStyler = function (node, props) {
2795
4431
  return cache.has(node) ? cache.get(node) : createDOMStyler(node, props);
2796
4432
  };
2797
- function index(nodeOrSelector, props) {
4433
+ function index$1(nodeOrSelector, props) {
2798
4434
  var node = typeof nodeOrSelector === 'string' ? document.querySelector(nodeOrSelector) : nodeOrSelector;
2799
4435
  return getStyler(node, props);
2800
4436
  }
@@ -3856,7 +5492,7 @@ var pointer = function (props) {
3856
5492
  return touches;
3857
5493
  }, getFirstTouch) : mouse(props);
3858
5494
  };
3859
- var index$1 = function (_a) {
5495
+ var index$1$1 = function (_a) {
3860
5496
  if (_a === void 0) {
3861
5497
  _a = {};
3862
5498
  }
@@ -4487,7 +6123,7 @@ var interpolate$1 = transformers.interpolate;
4487
6123
  var singleAxisPointer = function (axis) {
4488
6124
  return function (from) {
4489
6125
  var _a;
4490
- return index$1((_a = {}, _a[axis] = typeof from === 'string' ? parseFloat(from) : from, _a)).pipe(function (v) {
6126
+ return index$1$1((_a = {}, _a[axis] = typeof from === 'string' ? parseFloat(from) : from, _a)).pipe(function (v) {
4491
6127
  return v[axis];
4492
6128
  });
4493
6129
  };
@@ -5115,7 +6751,7 @@ var createPoseConfig = function (element, _a) {
5115
6751
  hoverable: hoverable,
5116
6752
  focusable: focusable,
5117
6753
  pressable: pressable,
5118
- element: element, elementStyler: index(element, { preparseOutput: false }), dimensions: createDimensions(element) }) });
6754
+ element: element, elementStyler: index$1(element, { preparseOutput: false }), dimensions: createDimensions(element) }) });
5119
6755
  if (draggable) {
5120
6756
  var _b = dragPoses(draggable),
5121
6757
  drag = _b.drag,
@@ -5818,7 +7454,7 @@ var themeComponent = function themeComponent(component, componentThemeId, fallba
5818
7454
  variant = _ref7$variant === void 0 ? defaultVariant : _ref7$variant,
5819
7455
  props = _objectWithoutProperties(_ref7, _excluded);
5820
7456
 
5821
- var themeContext = useContext(Me);
7457
+ var themeContext = useContext(ThemeContext);
5822
7458
  var metadata = (_themeContext$metadat = themeContext === null || themeContext === void 0 ? void 0 : themeContext.metadata) !== null && _themeContext$metadat !== void 0 ? _themeContext$metadat : {};
5823
7459
  var themeValues = themeContext ? createThemeValues(themeContext, fallbackValues, componentThemeId, variant) : fallbackValues;
5824
7460
  return component(_objectSpread2(_objectSpread2({}, props), {}, {
@@ -5892,25 +7528,34 @@ var AQUA_HAZE_WHITE = "#F7F9FA";
5892
7528
  var BLEACH_WHITE = "#FEF4d7";
5893
7529
  var CATSKILL_WHITE = "#EAF2F6"; // GREY
5894
7530
 
5895
- var ATHENS_GREY = "#F6F6F9";
7531
+ var ATHENS_GREY = "#F6F6F9"; // CBS-100
7532
+
5896
7533
  var ALTO_GREY = "#d1d1d1";
5897
7534
  var SILVER_GREY = "#cdcdcd";
5898
7535
  var PEWTER_GREY = "#DFE1E4";
5899
7536
  var ASH_GREY = "#979797";
5900
7537
  var IRON_GREY = "#d5d8dc";
5901
- var GHOST_GREY = "#CACED8";
7538
+ var GHOST_GREY = "#CACED8"; // CBS-300
7539
+
5902
7540
  var DUSTY_GREY = "#9B9B9B";
5903
7541
  var REGENT_GREY = "#959EA7";
5904
- var STORM_GREY = "#6D717E";
7542
+ var STORM_GREY = "#6D717E"; // CBS-700
7543
+
5905
7544
  var TROUT_GREY = "#515660";
5906
7545
  var MINESHAFT_GREY = "#333333";
5907
7546
  var SOOT_GREY = "#999999";
5908
7547
  var FIREFLY_GREY = "#091325";
5909
- var BRIGHT_GREY = "#3B414D";
5910
- var CHARADE_GREY = "#292A33";
5911
- var GRECIAN_GREY = "#E5E7EC";
7548
+ var BRIGHT_GREY = "#3B414D"; // CBS-800
7549
+
7550
+ var CHARADE_GREY = "#292A33"; // CBS-900
7551
+
7552
+ var GRECIAN_GREY = "#E5E7EC"; // CBS-200
7553
+
5912
7554
  var BLACK_SQUEEZE = "#EAF2F7";
5913
- var GREY_CHATEAU = "#959CA8"; // BLUE
7555
+ var GREY_CHATEAU = "#959CA8"; // CBS-500
7556
+
7557
+ var COOL_GREY_05 = "#fbfcfd"; // CBS-050
7558
+ // BLUE
5914
7559
 
5915
7560
  var CLOUDBURST_BLUE = "#26395c";
5916
7561
  var ZODIAC_BLUE = "#14284b";
@@ -5944,7 +7589,7 @@ var MUSTARD_YELLOW = "#FFD459";
5944
7589
  var FIRE_YELLOW = "#B34A00"; // ORANGE
5945
7590
 
5946
7591
  var CARROT_ORANGE = "#ED9620";
5947
- var ZEST_ORANGE = "#F47820";
7592
+ var ZEST_ORANGE = "#B84A00";
5948
7593
  var APRICOT_ORANGE = "#FFE8D8"; // RED
5949
7594
 
5950
7595
  var RED = "#FF0000";
@@ -6014,6 +7659,7 @@ var colors = /*#__PURE__*/Object.freeze({
6014
7659
  BRIGHT_GREY: BRIGHT_GREY,
6015
7660
  CHARADE_GREY: CHARADE_GREY,
6016
7661
  GRECIAN_GREY: GRECIAN_GREY,
7662
+ COOL_GREY_05: COOL_GREY_05,
6017
7663
  BLACK_SQUEEZE: BLACK_SQUEEZE,
6018
7664
  GREY_CHATEAU: GREY_CHATEAU,
6019
7665
  CLOUDBURST_BLUE: CLOUDBURST_BLUE,
@@ -6058,10 +7704,10 @@ var colors = /*#__PURE__*/Object.freeze({
6058
7704
  ERROR_COLOR: ERROR_COLOR
6059
7705
  });
6060
7706
 
6061
- var TextSpan = qe.span.withConfig({
7707
+ var TextSpan = styled.span.withConfig({
6062
7708
  displayName: "Textstyled__TextSpan",
6063
7709
  componentId: "sc-1oy97we-0"
6064
- })(["--font-size:", ";font-size:var(--font-size);line-height:calc(1.5 * var(--font-size));font-weight:", ";font-family:", ";color:", ";&:hover{", "}&:focus{outline:3px solid ", ";outline-offset:2px;}", " ", ""], function (_ref) {
7710
+ })(["--font-size:", ";font-size:var(--font-size);line-height:calc(1.5 * var(--font-size));font-weight:", ";font-family:", ";color:", ";white-space:", ";&:hover{", "}&:focus{outline:3px solid ", ";outline-offset:2px;}", " ", ""], function (_ref) {
6065
7711
  var fontSize = _ref.fontSize;
6066
7712
  return fontSize;
6067
7713
  }, function (_ref2) {
@@ -6074,14 +7720,17 @@ var TextSpan = qe.span.withConfig({
6074
7720
  var color = _ref4.color;
6075
7721
  return color;
6076
7722
  }, function (_ref5) {
6077
- var hoverStyles = _ref5.hoverStyles;
6078
- return Ae(["", ""], hoverStyles);
6079
- }, ROYAL_BLUE, function (_ref6) {
6080
- var disabled = _ref6.disabled,
6081
- disabledStyles = _ref6.disabledStyles;
6082
- return disabled && Ae(["", ""], disabledStyles);
6083
- }, function (_ref7) {
6084
- var extraStyles = _ref7.extraStyles;
7723
+ var $textWrap = _ref5.$textWrap;
7724
+ return $textWrap ? "initial" : "nowrap";
7725
+ }, function (_ref6) {
7726
+ var hoverStyles = _ref6.hoverStyles;
7727
+ return css(["", ""], hoverStyles);
7728
+ }, ROYAL_BLUE, function (_ref7) {
7729
+ var disabled = _ref7.disabled,
7730
+ disabledStyles = _ref7.disabledStyles;
7731
+ return disabled && css(["", ""], disabledStyles);
7732
+ }, function (_ref8) {
7733
+ var extraStyles = _ref8.extraStyles;
6085
7734
  return extraStyles;
6086
7735
  });
6087
7736
 
@@ -7207,7 +8856,7 @@ var general = /*#__PURE__*/Object.freeze({
7207
8856
  screenReaderOnlyStyle: screenReaderOnlyStyle
7208
8857
  });
7209
8858
 
7210
- var _excluded$1 = ["themeValues", "weight", "color", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children"];
8859
+ var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children"];
7211
8860
 
7212
8861
  var Text = function Text(_ref) {
7213
8862
  var themeValues = _ref.themeValues,
@@ -7215,6 +8864,8 @@ var Text = function Text(_ref) {
7215
8864
  weight = _ref$weight === void 0 ? FONT_WEIGHT_REGULAR : _ref$weight,
7216
8865
  _ref$color = _ref.color,
7217
8866
  color = _ref$color === void 0 ? FIREFLY_GREY : _ref$color,
8867
+ _ref$textWrap = _ref.textWrap,
8868
+ textWrap = _ref$textWrap === void 0 ? true : _ref$textWrap,
7218
8869
  _ref$extraStyles = _ref.extraStyles,
7219
8870
  extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
7220
8871
  hoverStyles = _ref.hoverStyles,
@@ -7235,7 +8886,8 @@ var Text = function Text(_ref) {
7235
8886
  hoverStyles: hoverStyles,
7236
8887
  onClick: onClick,
7237
8888
  onKeyPress: onKeyPress,
7238
- "data-qa": dataQa
8889
+ "data-qa": dataQa,
8890
+ $textWrap: textWrap
7239
8891
  }, rest), safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
7240
8892
  };
7241
8893
 
@@ -7252,7 +8904,7 @@ var _excluded$2 = ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles
7252
8904
 
7253
8905
  /* eslint-disable no-unused-vars */
7254
8906
 
7255
- var BoxWrapper = qe(function (_ref) {
8907
+ var BoxWrapper = styled(function (_ref) {
7256
8908
  var activeStyles = _ref.activeStyles,
7257
8909
  hoverStyles = _ref.hoverStyles,
7258
8910
  disabledStyles = _ref.disabledStyles,
@@ -7279,13 +8931,14 @@ var BoxWrapper = qe(function (_ref) {
7279
8931
  }).withConfig({
7280
8932
  displayName: "Boxstyled__BoxWrapper",
7281
8933
  componentId: "sc-1f9ij0d-0"
7282
- })(["position:relative;box-sizing:border-box;padding:", ";border:", ";box-shadow:", ";background-color:", ";min-height:", ";", " min-width:", ";max-width:", ";color:", ";border-radius:", ";border-width:", ";border:", ";text-align:", ";&:hover{", "}&:focus{", "}&:active{", "}&:disabled{", "}& *{color:", ";}", " ", ""], function (_ref2) {
8934
+ })(["position:relative;box-sizing:border-box;padding:", ";border:", ";box-shadow:", ";background-color:", ";min-height:", ";", " min-width:", ";max-width:", ";color:", ";border-radius:", ";border-width:", ";text-align:", ";&:hover{", "}&:focus{", "}&:active{", "}&:disabled{", "}& *{color:", ";}", " ", ""], function (_ref2) {
7283
8935
  var padding = _ref2.padding;
7284
8936
  return padding;
7285
8937
  }, function (_ref3) {
7286
- var borderSize = _ref3.borderSize,
8938
+ var border = _ref3.border,
8939
+ borderSize = _ref3.borderSize,
7287
8940
  borderColor = _ref3.borderColor;
7288
- return "".concat(borderSize, " solid ").concat(borderColor);
8941
+ return border ? border : "".concat(borderSize, " solid ").concat(borderColor);
7289
8942
  }, function (_ref4) {
7290
8943
  var boxShadow = _ref4.boxShadow;
7291
8944
  return boxShadow;
@@ -7311,39 +8964,35 @@ var BoxWrapper = qe(function (_ref) {
7311
8964
  var borderRadius = _ref11.borderRadius;
7312
8965
  return borderRadius;
7313
8966
  }, function (_ref12) {
7314
- var borderWidthOverride = _ref12.borderWidthOverride,
7315
- borderSize = _ref12.borderSize;
7316
- return borderWidthOverride ? borderWidthOverride : borderSize;
8967
+ var borderWidthOverride = _ref12.borderWidthOverride;
8968
+ return borderWidthOverride;
7317
8969
  }, function (_ref13) {
7318
- var border = _ref13.border;
7319
- return border;
7320
- }, function (_ref14) {
7321
- var textAlign = _ref14.textAlign;
8970
+ var textAlign = _ref13.textAlign;
7322
8971
  return textAlign;
8972
+ }, function (_ref14) {
8973
+ var hoverStyles = _ref14.hoverStyles,
8974
+ as = _ref14.as;
8975
+ return css(["", " ", ""], hoverStyles, as === "button" ? "> * > span {\n ".concat(hoverStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
7323
8976
  }, function (_ref15) {
7324
- var hoverStyles = _ref15.hoverStyles,
7325
- as = _ref15.as;
7326
- return Ae(["", " ", ""], hoverStyles, as === "button" ? "> * > span {\n ".concat(hoverStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
8977
+ var as = _ref15.as;
8978
+ return css(["outline:3px solid ", ";outline-offset:2px;", ""], ROYAL_BLUE, as === "button" && "\n > * > span {\n border: none;\n outline: none;\n box-shadow: none;\n }");
7327
8979
  }, function (_ref16) {
7328
- var as = _ref16.as;
7329
- return Ae(["outline:3px solid ", ";outline-offset:2px;", ""], ROYAL_BLUE, as === "button" && "\n > * > span {\n border: none;\n outline: none;\n box-shadow: none;\n }");
8980
+ var activeStyles = _ref16.activeStyles,
8981
+ as = _ref16.as;
8982
+ return css(["", " ", ""], activeStyles, as === "button" ? " > * > span {\n ".concat(activeStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
7330
8983
  }, function (_ref17) {
7331
- var activeStyles = _ref17.activeStyles,
8984
+ var disabledStyles = _ref17.disabledStyles,
7332
8985
  as = _ref17.as;
7333
- return Ae(["", " ", ""], activeStyles, as === "button" ? " > * > span {\n ".concat(activeStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
8986
+ return css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
7334
8987
  }, function (_ref18) {
7335
- var disabledStyles = _ref18.disabledStyles,
7336
- as = _ref18.as;
7337
- return Ae(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
7338
- }, function (_ref19) {
7339
- var color = _ref19.color;
8988
+ var color = _ref18.color;
7340
8989
  return color;
8990
+ }, function (_ref19) {
8991
+ var hiddenStyles = _ref19.hiddenStyles;
8992
+ return hiddenStyles && css(["display:none;"]);
7341
8993
  }, function (_ref20) {
7342
- var hiddenStyles = _ref20.hiddenStyles;
7343
- return hiddenStyles && Ae(["display:none;"]);
7344
- }, function (_ref21) {
7345
- var extraStyles = _ref21.extraStyles;
7346
- return Ae(["", ""], extraStyles);
8994
+ var extraStyles = _ref20.extraStyles;
8995
+ return css(["", ""], extraStyles);
7347
8996
  });
7348
8997
  /* eslint-enable no-unused-vars */
7349
8998
 
@@ -7430,7 +9079,7 @@ var Box = function Box(_ref) {
7430
9079
  }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
7431
9080
  };
7432
9081
 
7433
- var CenterWrapper = qe.div.withConfig({
9082
+ var CenterWrapper = styled.div.withConfig({
7434
9083
  displayName: "Centerstyled__CenterWrapper",
7435
9084
  componentId: "sc-vawqfc-0"
7436
9085
  })(["box-sizing:content-box;margin-left:auto;margin-right:auto;max-width:", ";padding-left:", ";padding-right:", ";", ";"], function (_ref) {
@@ -7472,7 +9121,7 @@ var Center = function Center(_ref) {
7472
9121
  var _excluded$5 = ["overflow"];
7473
9122
  /* eslint-disable no-unused-vars */
7474
9123
 
7475
- var ClusterWrapper = qe(function (_ref) {
9124
+ var ClusterWrapper = styled(function (_ref) {
7476
9125
  var overflow = _ref.overflow,
7477
9126
  props = _objectWithoutProperties(_ref, _excluded$5);
7478
9127
 
@@ -7496,12 +9145,12 @@ var ClusterWrapper = qe(function (_ref) {
7496
9145
  var $extraStyles = _ref6.$extraStyles;
7497
9146
  return $extraStyles;
7498
9147
  });
7499
- var ClusterInnerWrapper = qe.div.withConfig({
9148
+ var ClusterInnerWrapper = styled.div.withConfig({
7500
9149
  displayName: "Clusterstyled__ClusterInnerWrapper",
7501
9150
  componentId: "sc-1dkqsm7-1"
7502
9151
  })(["box-sizing:border-box;display:flex;flex-wrap:", ";justify-content:", ";align-items:", ";margin:calc(", " / 2 * -1);min-height:", ";min-width:", ";> *{margin:calc(", " / 2);}"], function (_ref7) {
7503
- var nowrap = _ref7.nowrap;
7504
- return nowrap ? "nowrap" : "wrap";
9152
+ var $nowrap = _ref7.$nowrap;
9153
+ return $nowrap ? "nowrap" : "wrap";
7505
9154
  }, function (_ref8) {
7506
9155
  var justify = _ref8.justify;
7507
9156
  return justify;
@@ -7561,11 +9210,11 @@ var Cluster = function Cluster(_ref) {
7561
9210
  childGap: childGap,
7562
9211
  minHeight: minHeight,
7563
9212
  minWidth: minWidth,
7564
- nowrap: nowrap
9213
+ $nowrap: nowrap
7565
9214
  }, safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null))));
7566
9215
  };
7567
9216
 
7568
- var GridWrapper = qe.div.withConfig({
9217
+ var GridWrapper = styled.div.withConfig({
7569
9218
  displayName: "Gridstyled__GridWrapper",
7570
9219
  componentId: "sc-8iakdj-0"
7571
9220
  })(["display:grid;grid-gap:", ";grid-template-columns:", ";@supports (width:min(", ",100%)){&{grid-template-columns:repeat( auto-fill,minmax( ", ",", " ) );}}"], function (_ref) {
@@ -7625,14 +9274,14 @@ var Grid = function Grid(_ref) {
7625
9274
  };
7626
9275
 
7627
9276
  var _excluded$8 = ["onRight", "childGap", "contentMinWidth", "minHeight", "fullHeight"];
7628
- var SidebarWrapper = qe.div.withConfig({
9277
+ var SidebarWrapper = styled.div.withConfig({
7629
9278
  displayName: "Sidebarstyled__SidebarWrapper",
7630
9279
  componentId: "sc-1bbn2or-0"
7631
9280
  })(["overflow:visible;box-sizing:border-box;", ""], function (_ref) {
7632
9281
  var fullHeight = _ref.fullHeight;
7633
9282
  return fullHeight ? "height: 100%;" : "";
7634
9283
  });
7635
- var SidebarInnerWrapper = qe( // eslint-disable-next-line no-unused-vars
9284
+ var SidebarInnerWrapper = styled( // eslint-disable-next-line no-unused-vars
7636
9285
  function (_ref2) {
7637
9286
  var onRight = _ref2.onRight,
7638
9287
  childGap = _ref2.childGap,
@@ -7708,7 +9357,7 @@ var Sidebar = function Sidebar(_ref) {
7708
9357
  }, safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null))));
7709
9358
  };
7710
9359
 
7711
- var StackWrapper = qe.div.withConfig({
9360
+ var StackWrapper = styled.div.withConfig({
7712
9361
  displayName: "Stackstyled__StackWrapper",
7713
9362
  componentId: "sc-ejhezz-0"
7714
9363
  })(["box-sizing:border-box;display:flex;flex-direction:", ";justify-content:", ";height:", ";> *{margin-top:0;margin-bottom:0;}> * + *{", "}", ";"], function (_ref) {
@@ -7762,10 +9411,10 @@ var Stack = function Stack(_ref) {
7762
9411
  }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
7763
9412
  };
7764
9413
 
7765
- var CoverOuterContainer = qe.div.withConfig({
9414
+ var CoverOuterContainer = styled.div.withConfig({
7766
9415
  displayName: "Coverstyled__CoverOuterContainer",
7767
9416
  componentId: "sc-1jhq379-0"
7768
- })(["box-sizing:border-box;display:flex;flex-direction:column;min-height:", ";padding:", ";min-width:", ";> *{margin-top:", ";margin-bottom:", ";}> :first-child{margin-top:0;}", " ", " > :last-child{margin-bottom:0;}"], function (_ref) {
9417
+ })(["box-sizing:border-box;display:flex;flex-direction:column;min-height:", ";padding:", ";min-width:", ";> *{margin-top:", ";margin-bottom:", ";}>:first-child{margin-top:0;}", " ", " >:last-child{margin-bottom:0;}"], function (_ref) {
7769
9418
  var minHeight = _ref.minHeight;
7770
9419
  return minHeight;
7771
9420
  }, function (_ref2) {
@@ -7829,7 +9478,7 @@ var Cover = function Cover(_ref) {
7829
9478
  }, rest), singleChild ? /*#__PURE__*/React.createElement("div", null) : /*#__PURE__*/React.createElement(Fragment$1, null), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)), singleChild ? /*#__PURE__*/React.createElement("div", null) : /*#__PURE__*/React.createElement(Fragment$1, null));
7830
9479
  };
7831
9480
 
7832
- var FrameOuterContainer = qe.div.withConfig({
9481
+ var FrameOuterContainer = styled.div.withConfig({
7833
9482
  displayName: "Framestyled__FrameOuterContainer",
7834
9483
  componentId: "sc-1syfnuv-0"
7835
9484
  })(["box-sizing:border-box;padding-bottom:", ";position:relative;> *{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;}> img,> video{width:100%;height:100%;object-fit:cover;}"], function (_ref) {
@@ -7866,11 +9515,11 @@ var Frame = function Frame(_ref) {
7866
9515
  }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
7867
9516
  };
7868
9517
 
7869
- var SwitcherOuterContainer = qe.div.withConfig({
9518
+ var SwitcherOuterContainer = styled.div.withConfig({
7870
9519
  displayName: "Switcherstyled__SwitcherOuterContainer",
7871
9520
  componentId: "sc-1ym61kc-0"
7872
9521
  })(["box-sizing:border-box;display:block;"]);
7873
- var SwitcherInnerContainer = qe.div.withConfig({
9522
+ var SwitcherInnerContainer = styled.div.withConfig({
7874
9523
  displayName: "Switcherstyled__SwitcherInnerContainer",
7875
9524
  componentId: "sc-1ym61kc-1"
7876
9525
  })(["box-sizing:border-box;display:flex;flex-wrap:wrap;overflow:hidden;padding:", ";margin:", ";", " > *{flex-grow:1;", ";", " ", "}", " ", " ", ""], function (_ref) {
@@ -7902,7 +9551,7 @@ var SwitcherInnerContainer = qe.div.withConfig({
7902
9551
  return maxChildren ? "> :nth-last-child(".concat(maxChildren + 1, "), > :nth-last-child(").concat(maxChildren + 1, ") ~ * {\n flex-basis: 100%;\n }") : "";
7903
9552
  }, function (_ref9) {
7904
9553
  var extraStyles = _ref9.extraStyles;
7905
- return Ae(["", ""], extraStyles);
9554
+ return css(["", ""], extraStyles);
7906
9555
  });
7907
9556
 
7908
9557
  var _excluded$d = ["breakpoint", "childGap", "largeChild", "largeChildSize", "maxChildren", "maxChildrenOnly", "padding", "children", "extraStyles", "constrainMobile"];
@@ -7969,7 +9618,7 @@ var Switcher = function Switcher(_ref) {
7969
9618
  }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null))));
7970
9619
  };
7971
9620
 
7972
- var ImposterWrapper = qe.div.withConfig({
9621
+ var ImposterWrapper = styled.div.withConfig({
7973
9622
  displayName: "Imposterstyled__ImposterWrapper",
7974
9623
  componentId: "sc-1q0gj35-0"
7975
9624
  })(["position:", ";top:", ";left:", ";display:", ";", " ", " ", ";"], function (_ref) {
@@ -9251,7 +10900,7 @@ var MountComponent = function (_a) {
9251
10900
  var ref = _a.innerRef, values = _a.values, isStatic = _a.isStatic;
9252
10901
  useEffect$1(function () {
9253
10902
  invariant(ref.current instanceof Element, "No `ref` found. Ensure components created with `motion.custom` forward refs using `React.forwardRef`");
9254
- var domStyler = index(ref.current, {
10903
+ var domStyler = index$1(ref.current, {
9255
10904
  preparseOutput: false,
9256
10905
  enableHardwareAcceleration: !isStatic,
9257
10906
  });
@@ -11980,7 +13629,7 @@ var checkAndConvertChangedValueTypes = function (values, ref, target, transition
11980
13629
  target = __assign({}, target);
11981
13630
  transitionEnd = __assign({}, transitionEnd);
11982
13631
  var element = ref.current;
11983
- var elementStyler = index(element);
13632
+ var elementStyler = index$1(element);
11984
13633
  var targetPositionalKeys = Object.keys(target).filter(isPositionalKey$1);
11985
13634
  // We want to remove any transform values that could affect the element's bounding box before
11986
13635
  // it's measured. We'll reapply these later.
@@ -12301,7 +13950,7 @@ var LayoutAnimation = /** @class */ (function (_super) {
12301
13950
  transform && (element.style.transform = transform);
12302
13951
  return;
12303
13952
  }
12304
- index(element).set({
13953
+ index$1(element).set({
12305
13954
  originX: delta.originX,
12306
13955
  originY: delta.originY,
12307
13956
  });
@@ -12709,7 +14358,7 @@ var Exit = {
12709
14358
  }),
12710
14359
  };
12711
14360
 
12712
- var isPropValid$1 = function (key) { return !isValidMotionProp(key); };
14361
+ var isPropValid = function (key) { return !isValidMotionProp(key); };
12713
14362
  /**
12714
14363
  * Emotion and Styled Components both allow users to pass through arbitrary props to their components
12715
14364
  * to dynamically generate CSS. They both use the `@emotion/is-prop-valid` package to determine which
@@ -12725,7 +14374,7 @@ var isPropValid$1 = function (key) { return !isValidMotionProp(key); };
12725
14374
  */
12726
14375
  try {
12727
14376
  var emotionIsPropValid_1 = require("@emotion/is-prop-valid").default;
12728
- isPropValid$1 = function (key) {
14377
+ isPropValid = function (key) {
12729
14378
  // Handle events explicitly as Emotion validates them all as true
12730
14379
  if (key.startsWith("on")) {
12731
14380
  return !isValidMotionProp(key);
@@ -12741,7 +14390,7 @@ catch (_a) {
12741
14390
  function filterValidProps(props) {
12742
14391
  var domProps = {};
12743
14392
  for (var key in props) {
12744
- if (isPropValid$1(key)) {
14393
+ if (isPropValid(key)) {
12745
14394
  domProps[key] = props[key];
12746
14395
  }
12747
14396
  }
@@ -12822,7 +14471,7 @@ function createDomMotionConfig(Component) {
12822
14471
  return {
12823
14472
  values: values,
12824
14473
  readValueFromSource: function (key) {
12825
- return index(ref.current).get(key);
14474
+ return index$1(ref.current).get(key);
12826
14475
  },
12827
14476
  // TODO: This is a good second source of plugins. This function contains the CSS variable
12828
14477
  // and unit conversion support. These functions share a common signature. We could make another
@@ -13112,7 +14761,7 @@ if (typeof window !== "undefined") {
13112
14761
  }
13113
14762
  }
13114
14763
 
13115
- var MotionWrapper = qe(motion.div).withConfig({
14764
+ var MotionWrapper = styled(motion.div).withConfig({
13116
14765
  displayName: "Motionstyled__MotionWrapper",
13117
14766
  componentId: "sc-1m6r1io-0"
13118
14767
  })(["position:", ";display:", ";box-sizing:border-box;padding:", ";border:", ";border-color:", ";border-size:", ";border-style:", ";border-width:", ";border-radius:", ";background-color:", ";box-shadow:", ";min-height:", ";min-width:", ";height:", ";width:", ";text-align:", ";margin:", ";&:hover,&:focus{", ";}&:active{", ";}&:disabled{", ";}", ";"], function (_ref) {
@@ -13230,7 +14879,7 @@ var Motion = function Motion(_ref) {
13230
14879
  }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
13231
14880
  };
13232
14881
 
13233
- var ReelStyled = qe.div.withConfig({
14882
+ var ReelStyled = styled.div.withConfig({
13234
14883
  displayName: "Reelstyled__ReelStyled",
13235
14884
  componentId: "sc-bhf05j-0"
13236
14885
  })(["display:flex;overflow-x:", ";padding:", ";height:", ";justify-content:", ";> * + *{margin-left:", ";}> *{flex:0 0 ", ";}", ""], function (_ref) {
@@ -13518,11 +15167,11 @@ var rotate = posed.div({
13518
15167
  }
13519
15168
  }
13520
15169
  });
13521
- var SpinnerContainer = qe.div.withConfig({
15170
+ var SpinnerContainer = styled.div.withConfig({
13522
15171
  displayName: "Spinner__SpinnerContainer",
13523
15172
  componentId: "sc-jphte-0"
13524
15173
  })(["width:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;"]);
13525
- var SpinnerIconWrapper = qe(rotate).withConfig({
15174
+ var SpinnerIconWrapper = styled(rotate).withConfig({
13526
15175
  displayName: "Spinner__SpinnerIconWrapper",
13527
15176
  componentId: "sc-jphte-1"
13528
15177
  })(["width:", "px;height:", "px;"], function (_ref) {
@@ -13568,7 +15217,7 @@ var SpinnerIcon = function SpinnerIcon(_ref3) {
13568
15217
  }))))));
13569
15218
  };
13570
15219
 
13571
- var _excluded$h = ["action", "variant", "text", "isLoading", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children"];
15220
+ var _excluded$h = ["action", "variant", "text", "textWrap", "isLoading", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children"];
13572
15221
  var rotate$1 = posed.div({
13573
15222
  fixed: {
13574
15223
  rotate: "0deg"
@@ -13584,11 +15233,11 @@ var rotate$1 = posed.div({
13584
15233
  }
13585
15234
  }
13586
15235
  });
13587
- var SpinnerContainer$1 = qe.div.withConfig({
15236
+ var SpinnerContainer$1 = styled.div.withConfig({
13588
15237
  displayName: "ButtonWithAction__SpinnerContainer",
13589
15238
  componentId: "sc-1ffs4ga-0"
13590
15239
  })(["width:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;"]);
13591
- var SpinnerIconWrapper$1 = qe(rotate$1).withConfig({
15240
+ var SpinnerIconWrapper$1 = styled(rotate$1).withConfig({
13592
15241
  displayName: "ButtonWithAction__SpinnerIconWrapper",
13593
15242
  componentId: "sc-1ffs4ga-1"
13594
15243
  })([""]);
@@ -13625,6 +15274,8 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
13625
15274
  _ref2$variant = _ref2.variant,
13626
15275
  variant = _ref2$variant === void 0 ? "primary" : _ref2$variant,
13627
15276
  text = _ref2.text,
15277
+ _ref2$textWrap = _ref2.textWrap,
15278
+ textWrap = _ref2$textWrap === void 0 ? false : _ref2$textWrap,
13628
15279
  _ref2$isLoading = _ref2.isLoading,
13629
15280
  isLoading = _ref2$isLoading === void 0 ? false : _ref2$isLoading,
13630
15281
  _ref2$dataQa = _ref2.dataQa,
@@ -13638,7 +15289,7 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
13638
15289
  children = _ref2.children,
13639
15290
  rest = _objectWithoutProperties(_ref2, _excluded$h);
13640
15291
 
13641
- var themeContext = useContext(Me);
15292
+ var themeContext = useContext(ThemeContext);
13642
15293
  var themeValues = createThemeValues(themeContext, fallbackValues$1, "Button", variant);
13643
15294
  var isMobile = themeContext.isMobile;
13644
15295
  var hoverStyles = "\n outline: none;\n background-color: ".concat(themeValues.hoverBackgroundColor, ";\n border-color: ").concat(themeValues.hoverBorderColor, ";\n color: ").concat(themeValues.hoverColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n cursor: pointer;\n ");
@@ -13669,6 +15320,7 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
13669
15320
  weight: themeValues.fontWeight,
13670
15321
  variant: themeValues.fontSizeVariant,
13671
15322
  color: themeValues.color,
15323
+ textWrap: textWrap,
13672
15324
  extraStyles: textExtraStyles
13673
15325
  }, text)));
13674
15326
  };
@@ -14612,11 +16264,11 @@ var GenericCard = function GenericCard() {
14612
16264
  })))));
14613
16265
  };
14614
16266
 
14615
- var BankItemWrapper = qe.div.withConfig({
16267
+ var BankItemWrapper = styled.div.withConfig({
14616
16268
  displayName: "PaymentIcon__BankItemWrapper",
14617
16269
  componentId: "sc-1k0jl35-0"
14618
16270
  })(["display:flex;justify-content:flex-start;align-items:center;"]);
14619
- var BankAccountText = qe.h4.withConfig({
16271
+ var BankAccountText = styled.h4.withConfig({
14620
16272
  displayName: "PaymentIcon__BankAccountText",
14621
16273
  componentId: "sc-1k0jl35-1"
14622
16274
  })(["color:", ";font-size:1rem;font-weight:400;line-height:1.5rem;text-align:left;margin-right:0.5rem;display:inline-block;"], CHARADE_GREY);
@@ -14849,8 +16501,7 @@ var TimeoutImage = function TimeoutImage() {
14849
16501
  })))));
14850
16502
  };
14851
16503
 
14852
- var AutopayOnIcon = function AutopayOnIcon(_ref) {
14853
- var themeValues = _ref.themeValues;
16504
+ var AutopayOnIcon = function AutopayOnIcon() {
14854
16505
  return /*#__PURE__*/React.createElement("svg", {
14855
16506
  xmlns: "http://www.w3.org/2000/svg",
14856
16507
  width: "12",
@@ -14863,14 +16514,12 @@ var AutopayOnIcon = function AutopayOnIcon(_ref) {
14863
16514
  strokeWidth: "1"
14864
16515
  }, /*#__PURE__*/React.createElement("path", {
14865
16516
  className: "autopayIcon",
14866
- fill: themeValues.primaryColor,
16517
+ fill: SEA_GREEN,
14867
16518
  fillRule: "nonzero",
14868
16519
  d: "M1.898 5.75c.079 0 .141-.02.188-.059a.281.281 0 00.094-.152 3.825 3.825 0 011.394-2.144A3.838 3.838 0 016 2.563c.5 0 .98.09 1.441.27.461.179.88.44 1.254.784l-.984.985A.542.542 0 007.547 5c0 .156.055.29.164.398.11.11.242.165.398.165h3.141c.156 0 .289-.055.398-.165A.542.542 0 0011.812 5V1.86a.542.542 0 00-.164-.399.542.542 0 00-.398-.164.542.542 0 00-.398.164l-.844.844A5.699 5.699 0 006 .688c-.938 0-1.809.207-2.613.62-.805.415-1.48.981-2.028 1.7A5.726 5.726 0 00.281 5.422a.265.265 0 00.059.223c.055.07.129.105.222.105h1.336zM6 12.312c.937 0 1.809-.207 2.613-.62a5.919 5.919 0 002.028-1.7 5.726 5.726 0 001.078-2.414.265.265 0 00-.059-.223.267.267 0 00-.223-.105h-1.335c-.079 0-.141.02-.188.059a.281.281 0 00-.094.152 3.825 3.825 0 01-1.394 2.144c-.711.555-1.52.833-2.426.833-.5 0-.98-.09-1.441-.27a3.985 3.985 0 01-1.254-.785l.984-.985A.542.542 0 004.453 8a.542.542 0 00-.164-.398.542.542 0 00-.398-.164H.75a.542.542 0 00-.398.164A.542.542 0 00.187 8v3.14c0 .157.055.29.165.4.109.108.242.163.398.163.156 0 .29-.055.398-.164l.844-.844A5.699 5.699 0 006 12.312z"
14869
16520
  })));
14870
16521
  };
14871
16522
 
14872
- var AutopayOnIcon$1 = themeComponent(AutopayOnIcon, "Icons", fallbackValues$2, "primary");
14873
-
14874
16523
  var NotFoundIcon = function NotFoundIcon() {
14875
16524
  return /*#__PURE__*/React.createElement("svg", {
14876
16525
  width: "548px",
@@ -16915,7 +18564,7 @@ var Alert = function Alert(_ref) {
16915
18564
 
16916
18565
  var Alert$1 = themeComponent(Alert, "Alert", fallbackValues$4, "info");
16917
18566
 
16918
- var TitleText = qe.h1.withConfig({
18567
+ var TitleText = styled.h1.withConfig({
16919
18568
  displayName: "Titlestyled__TitleText",
16920
18569
  componentId: "sc-11lhluq-0"
16921
18570
  })(["font-size:", ";line-height:1.5;color:", ";font-weight:", ";margin:", ";text-align:", ";font-family:", ";", ";"], function (_ref) {
@@ -17034,7 +18683,7 @@ var Title = function Title(_ref) {
17034
18683
 
17035
18684
  var Title$1 = themeComponent(Title, "Title", fallbacks, "large");
17036
18685
 
17037
- var color$3 = "#15749D";
18686
+ var color$3 = "#292A33";
17038
18687
  var fallbackValues$6 = {
17039
18688
  color: color$3
17040
18689
  };
@@ -17056,8 +18705,8 @@ var AmountCallout = function AmountCallout(_ref) {
17056
18705
 
17057
18706
  var AmountCallout$1 = themeComponent(AmountCallout, "AmountCallout", fallbackValues$6);
17058
18707
 
17059
- function _extends$1() {
17060
- _extends$1 = Object.assign || function (target) {
18708
+ function _extends$2() {
18709
+ _extends$2 = Object.assign || function (target) {
17061
18710
  for (var i = 1; i < arguments.length; i++) {
17062
18711
  var source = arguments[i];
17063
18712
 
@@ -17071,7 +18720,7 @@ function _extends$1() {
17071
18720
  return target;
17072
18721
  };
17073
18722
 
17074
- return _extends$1.apply(this, arguments);
18723
+ return _extends$2.apply(this, arguments);
17075
18724
  }
17076
18725
 
17077
18726
  function _assertThisInitialized(self) {
@@ -17178,7 +18827,7 @@ function _wrapNativeSuper(Class) {
17178
18827
  * Parse errors.md and turn it into a simple hash of code: message
17179
18828
  * @private
17180
18829
  */
17181
- var ERRORS = {
18830
+ var ERRORS$1 = {
17182
18831
  "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",
17183
18832
  "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",
17184
18833
  "3": "Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",
@@ -17263,7 +18912,7 @@ var ERRORS = {
17263
18912
  * @private
17264
18913
  */
17265
18914
 
17266
- function format() {
18915
+ function format$1() {
17267
18916
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
17268
18917
  args[_key] = arguments[_key];
17269
18918
  }
@@ -17301,7 +18950,7 @@ var PolishedError = /*#__PURE__*/function (_Error) {
17301
18950
  args[_key2 - 1] = arguments[_key2];
17302
18951
  }
17303
18952
 
17304
- _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
18953
+ _this = _Error.call(this, format$1.apply(void 0, [ERRORS$1[code]].concat(args))) || this;
17305
18954
  }
17306
18955
 
17307
18956
  return _assertThisInitialized(_this);
@@ -17805,13 +19454,13 @@ function mix$1(weight, color, otherColor) {
17805
19454
  if (weight === 0) return otherColor;
17806
19455
  var parsedColor1 = parseToRgb(color);
17807
19456
 
17808
- var color1 = _extends$1({}, parsedColor1, {
19457
+ var color1 = _extends$2({}, parsedColor1, {
17809
19458
  alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1
17810
19459
  });
17811
19460
 
17812
19461
  var parsedColor2 = parseToRgb(otherColor);
17813
19462
 
17814
- var color2 = _extends$1({}, parsedColor2, {
19463
+ var color2 = _extends$2({}, parsedColor2, {
17815
19464
  alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1
17816
19465
  }); // The formula is copied from the original Sass implementation:
17817
19466
  // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method
@@ -17947,7 +19596,7 @@ var _excluded$k = ["hoverColor", "activeColor", "extrastyles"];
17947
19596
 
17948
19597
  /* eslint-disable no-unused-vars */
17949
19598
 
17950
- var StyledExternalLink = qe(function (_ref) {
19599
+ var StyledExternalLink = styled(function (_ref) {
17951
19600
  var hoverColor = _ref.hoverColor,
17952
19601
  activeColor = _ref.activeColor,
17953
19602
  extrastyles = _ref.extrastyles,
@@ -18001,8 +19650,9 @@ var ExternalLink = function ExternalLink(_ref) {
18001
19650
  variant = _ref$variant === void 0 ? "primary" : _ref$variant,
18002
19651
  _ref$tabIndex = _ref.tabIndex,
18003
19652
  tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
19653
+ dataQa = _ref.dataQa,
18004
19654
  children = _ref.children;
18005
- var themeContext = useContext(Me);
19655
+ var themeContext = useContext(ThemeContext);
18006
19656
  var themeValues = createThemeValues(themeContext, fallbackValues$9, "Link", variant);
18007
19657
  return /*#__PURE__*/React.createElement(StyledExternalLink, {
18008
19658
  href: href,
@@ -18016,7 +19666,8 @@ var ExternalLink = function ExternalLink(_ref) {
18016
19666
  fontFamily: themeValues.fontFamily,
18017
19667
  tabIndex: tabIndex,
18018
19668
  extrastyles: extraStyles,
18019
- rel: newTab ? "noopener" : ""
19669
+ rel: newTab ? "noopener" : "",
19670
+ "data-qa": dataQa
18020
19671
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
18021
19672
  };
18022
19673
 
@@ -18028,7 +19679,7 @@ var _excluded$l = ["hoverColor", "activeColor", "active", "color", "extrastyles"
18028
19679
 
18029
19680
  /* eslint-disable no-unused-vars */
18030
19681
 
18031
- var StyledInternalLink = qe(function (_ref) {
19682
+ var StyledInternalLink = styled(function (_ref) {
18032
19683
  var hoverColor = _ref.hoverColor,
18033
19684
  activeColor = _ref.activeColor,
18034
19685
  active = _ref.active,
@@ -18086,9 +19737,10 @@ var InternalLink = function InternalLink(_ref) {
18086
19737
  margin = _ref.margin,
18087
19738
  _ref$tabIndex = _ref.tabIndex,
18088
19739
  tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
19740
+ dataQa = _ref.dataQa,
18089
19741
  _ref$extraStyles = _ref.extraStyles,
18090
19742
  extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles;
18091
- var themeContext = useContext(Me);
19743
+ var themeContext = useContext(ThemeContext);
18092
19744
  var themeValues = createThemeValues(themeContext, fallbackValues$9, "Link", variant);
18093
19745
  return /*#__PURE__*/React.createElement(StyledInternalLink, {
18094
19746
  to: to,
@@ -18102,14 +19754,15 @@ var InternalLink = function InternalLink(_ref) {
18102
19754
  hoverColor: themeValues.hoverColor,
18103
19755
  activeColor: themeValues.activeColor,
18104
19756
  tabIndex: tabIndex,
18105
- extrastyles: extraStyles
19757
+ extrastyles: extraStyles,
19758
+ "data-qa": dataQa
18106
19759
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
18107
19760
  };
18108
19761
 
18109
19762
  var Breadcrumbs = function Breadcrumbs(_ref) {
18110
19763
  var _ref$breadcrumbsList = _ref.breadcrumbsList,
18111
19764
  breadcrumbsList = _ref$breadcrumbsList === void 0 ? [] : _ref$breadcrumbsList;
18112
- var themeContext = useContext(Me);
19765
+ var themeContext = useContext(ThemeContext);
18113
19766
  var themeValues = createThemeValues(themeContext, fallbackValues$8, "Breadcrumb");
18114
19767
  return /*#__PURE__*/React.createElement(Box, {
18115
19768
  padding: "0",
@@ -19715,7 +21368,7 @@ _curry2(function test(pattern, str) {
19715
21368
 
19716
21369
  var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
19717
21370
 
19718
- var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab"];
21371
+ var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
19719
21372
 
19720
21373
  var ButtonWithLink = function ButtonWithLink(_ref) {
19721
21374
  var _ref$url = _ref.url,
@@ -19728,6 +21381,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
19728
21381
  linkExtraStyles = _ref.linkExtraStyles,
19729
21382
  _ref$newTab = _ref.newTab,
19730
21383
  newTab = _ref$newTab === void 0 ? false : _ref$newTab,
21384
+ dataQa = _ref.dataQa,
19731
21385
  otherProps = _objectWithoutProperties(_ref, _excluded$m);
19732
21386
 
19733
21387
  var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
@@ -19735,6 +21389,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
19735
21389
  url = _ref2.url,
19736
21390
  disabled = _ref2.disabled,
19737
21391
  newTab = _ref2.newTab,
21392
+ dataQa = _ref2.dataQa,
19738
21393
  extraStyles = _ref2.extraStyles;
19739
21394
 
19740
21395
  if (disabled) {
@@ -19745,10 +21400,12 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
19745
21400
  href: url,
19746
21401
  tabIndex: "-1",
19747
21402
  newTab: newTab,
19748
- extraStyles: extraStyles
21403
+ extraStyles: extraStyles,
21404
+ dataQa: dataQa
19749
21405
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null))) : /*#__PURE__*/React.createElement(InternalLink, {
19750
21406
  to: url,
19751
21407
  tabIndex: "-1",
21408
+ dataQa: dataQa,
19752
21409
  extraStyles: extraStyles
19753
21410
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
19754
21411
  };
@@ -19757,7 +21414,8 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
19757
21414
  url: url,
19758
21415
  disabled: disabled,
19759
21416
  newTab: newTab,
19760
- extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }")
21417
+ extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
21418
+ dataQa: dataQa
19761
21419
  }, /*#__PURE__*/React.createElement(ButtonWithAction, _extends({}, otherProps, {
19762
21420
  extraStyles: extraStyles
19763
21421
  })));
@@ -19791,7 +21449,7 @@ var fallbackValues$a = {
19791
21449
  fontSize: fontSize$3
19792
21450
  };
19793
21451
 
19794
- var ParagraphText = qe.p.withConfig({
21452
+ var ParagraphText = styled.p.withConfig({
19795
21453
  displayName: "Paragraphstyled__ParagraphText",
19796
21454
  componentId: "sc-17g98kx-0"
19797
21455
  })(["--font-size:", ";font-size:var(--font-size);line-height:calc(1.5 * var(--font-size));font-weight:", ";font-family:", ";color:", ";margin:", ";", ""], function (_ref) {
@@ -19901,7 +21559,7 @@ var withWindowSize = function withWindowSize(Child) {
19901
21559
  window.removeEventListener("resize", onResize);
19902
21560
  };
19903
21561
  }, []);
19904
- return /*#__PURE__*/React.createElement(Le, {
21562
+ return /*#__PURE__*/React.createElement(ThemeProvider, {
19905
21563
  theme: state
19906
21564
  }, /*#__PURE__*/React.createElement(Child, props));
19907
21565
  };
@@ -19931,7 +21589,7 @@ var Card = function Card(_ref2) {
19931
21589
  _ref2$variant = _ref2.variant,
19932
21590
  variant = _ref2$variant === void 0 ? "vertical" : _ref2$variant;
19933
21591
 
19934
- var _useContext = useContext(Me),
21592
+ var _useContext = useContext(ThemeContext),
19935
21593
  isMobile = _useContext.isMobile;
19936
21594
 
19937
21595
  var navigate = useNavigate();
@@ -20093,30 +21751,30 @@ var fallbackValues$c = {
20093
21751
  disabledCheckedStyles: disabledCheckedStyles
20094
21752
  };
20095
21753
 
20096
- var CheckboxContainer = qe.div.withConfig({
21754
+ var CheckboxContainer = styled.div.withConfig({
20097
21755
  displayName: "Checkbox__CheckboxContainer",
20098
21756
  componentId: "sc-36kqbv-0"
20099
21757
  })(["display:inline-block;vertical-align:middle;"]);
20100
- var CheckboxLabelContainer = qe.label.withConfig({
21758
+ var CheckboxLabelContainer = styled.label.withConfig({
20101
21759
  displayName: "Checkbox__CheckboxLabelContainer",
20102
21760
  componentId: "sc-36kqbv-1"
20103
21761
  })(["display:flex;align-items:center;"]);
20104
- var CheckboxIcon = qe.svg.withConfig({
21762
+ var CheckboxIcon = styled.svg.withConfig({
20105
21763
  displayName: "Checkbox__CheckboxIcon",
20106
21764
  componentId: "sc-36kqbv-2"
20107
21765
  })(["fill:none;stroke-width:2px;stroke:", ";"], function (_ref) {
20108
21766
  var disabled = _ref.disabled,
20109
21767
  disabledCheckColor = _ref.disabledCheckColor,
20110
21768
  checkColor = _ref.checkColor;
20111
- return disabled ? Ae(["", ""], disabledCheckColor) : Ae(["", ""], checkColor);
21769
+ return disabled ? css(["", ""], disabledCheckColor) : css(["", ""], checkColor);
20112
21770
  });
20113
- var HiddenCheckbox = qe.input.attrs({
21771
+ var HiddenCheckbox = styled.input.attrs({
20114
21772
  type: "checkbox"
20115
21773
  }).withConfig({
20116
21774
  displayName: "Checkbox__HiddenCheckbox",
20117
21775
  componentId: "sc-36kqbv-3"
20118
21776
  })(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;"]);
20119
- var StyledCheckbox = qe.div.withConfig({
21777
+ var StyledCheckbox = styled.div.withConfig({
20120
21778
  displayName: "Checkbox__StyledCheckbox",
20121
21779
  componentId: "sc-36kqbv-4"
20122
21780
  })(["display:inline-block;margin-right:16px;width:24px;height:24px;border-radius:2px;transition:all 150ms;", "{visibility:", ";}", ";"], CheckboxIcon, function (_ref2) {
@@ -20133,7 +21791,7 @@ var StyledCheckbox = qe.div.withConfig({
20133
21791
  errorStyles = _ref3.errorStyles,
20134
21792
  disabledStyles = _ref3.disabledStyles,
20135
21793
  disabledCheckedStyles = _ref3.disabledCheckedStyles;
20136
- return error ? Ae(["", " ", ""], errorStyles, focused && focusedStyles) : disabled ? Ae(["", ""], checked ? disabledCheckedStyles : disabledStyles) : checked ? Ae(["", " ", ""], checkedStyles, focused && focusedStyles) : Ae(["", " ", ""], defaultStyles, focused && focusedStyles);
21794
+ return error ? css(["", " ", ""], errorStyles, focused && focusedStyles) : disabled ? css(["", ""], checked ? disabledCheckedStyles : disabledStyles) : checked ? css(["", " ", ""], checkedStyles, focused && focusedStyles) : css(["", " ", ""], defaultStyles, focused && focusedStyles);
20137
21795
  });
20138
21796
 
20139
21797
  var Checkbox = function Checkbox(_ref4) {
@@ -20264,7 +21922,7 @@ var defaultTheme = {
20264
21922
  inactiveColor: PEWTER_GREY$1
20265
21923
  }
20266
21924
  };
20267
- var RadioButtonBorder = qe.div.withConfig({
21925
+ var RadioButtonBorder = styled.div.withConfig({
20268
21926
  displayName: "radio-button__RadioButtonBorder",
20269
21927
  componentId: "sc-8odgi0-0"
20270
21928
  })(["height:24px;width:24px;border:1px solid ", ";border-radius:12px;display:flex;justify-content:center;align-items:center;margin:10px;min-width:24px;min-height:24px;"], function (_ref) {
@@ -20273,7 +21931,7 @@ var RadioButtonBorder = qe.div.withConfig({
20273
21931
  return isSelected ? theme.accentColor : theme.inactiveColor;
20274
21932
  });
20275
21933
  RadioButtonBorder.defaultProps = defaultTheme;
20276
- var RadioButtonCenter = qe.div.withConfig({
21934
+ var RadioButtonCenter = styled.div.withConfig({
20277
21935
  displayName: "radio-button__RadioButtonCenter",
20278
21936
  componentId: "sc-8odgi0-1"
20279
21937
  })(["height:16px;width:16px;background-color:", ";border-radius:8px;"], function (_ref2) {
@@ -20292,15 +21950,15 @@ var RadioButton = function RadioButton(_ref3) {
20292
21950
  }, isSelected && /*#__PURE__*/React.createElement(RadioButtonCenter, null));
20293
21951
  };
20294
21952
 
20295
- var CheckboxItemIcon = qe.img.withConfig({
21953
+ var CheckboxItemIcon = styled.img.withConfig({
20296
21954
  displayName: "CheckboxList__CheckboxItemIcon",
20297
21955
  componentId: "sc-1yakme1-0"
20298
21956
  })(["width:2rem;"]);
20299
- var HiddenCheckboxInput = qe.input.withConfig({
21957
+ var HiddenCheckboxInput = styled.input.withConfig({
20300
21958
  displayName: "CheckboxList__HiddenCheckboxInput",
20301
21959
  componentId: "sc-1yakme1-1"
20302
21960
  })(["opacity:0;position:absolute;z-index:-2;cursor:pointer;"]);
20303
- var CheckboxLabel = qe.label.withConfig({
21961
+ var CheckboxLabel = styled.label.withConfig({
20304
21962
  displayName: "CheckboxList__CheckboxLabel",
20305
21963
  componentId: "sc-1yakme1-2"
20306
21964
  })(["position:relative;z-index:5;&:focus{outline:none;}"]);
@@ -20344,7 +22002,7 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
20344
22002
  onClick: disabled ? noop : onSelect,
20345
22003
  onKeyDown: disabled ? noop : onSelect,
20346
22004
  tabIndex: 0
20347
- }, /*#__PURE__*/React.createElement(Le, {
22005
+ }, /*#__PURE__*/React.createElement(ThemeProvider, {
20348
22006
  theme: {
20349
22007
  accentColor: radioButtonActive,
20350
22008
  inactiveColor: radioButtonInactive
@@ -20443,14 +22101,14 @@ var fallbackValues$e = {
20443
22101
  hoverColor: hoverColor$3
20444
22102
  };
20445
22103
 
20446
- var IconWrapper = qe.div.withConfig({
22104
+ var IconWrapper = styled.div.withConfig({
20447
22105
  displayName: "Dropdown__IconWrapper",
20448
22106
  componentId: "sc-pn6m0h-0"
20449
22107
  })(["display:flex;flex-direction:column;justify-content:center;transition:transform 0.3s ease;", ""], function (_ref) {
20450
22108
  var open = _ref.open;
20451
22109
  return open ? "transform: rotate(-180deg)" : "";
20452
22110
  });
20453
- var DropdownContentWrapper = qe.div.withConfig({
22111
+ var DropdownContentWrapper = styled.div.withConfig({
20454
22112
  displayName: "Dropdown__DropdownContentWrapper",
20455
22113
  componentId: "sc-pn6m0h-1"
20456
22114
  })(["transform-origin:0 0;border:1px solid ", ";border-radius:2px;background-color:", ";padding:8px 0 8px;position:absolute;width:", ";min-width:100%;max-height:", ";overflow-y:scroll;z-index:1;box-sizing:border-box;&:focus{outline:none;}"], GREY_CHATEAU, WHITE, function (_ref2) {
@@ -20460,7 +22118,7 @@ var DropdownContentWrapper = qe.div.withConfig({
20460
22118
  var maxHeight = _ref3.maxHeight;
20461
22119
  return maxHeight || "400px";
20462
22120
  });
20463
- var DropdownItemWrapper = qe.div.withConfig({
22121
+ var DropdownItemWrapper = styled.div.withConfig({
20464
22122
  displayName: "Dropdown__DropdownItemWrapper",
20465
22123
  componentId: "sc-pn6m0h-2"
20466
22124
  })(["background-color:", ";text-align:start;border-width:0px;border-color:transparent;box-shadow:none;padding:1rem;box-sizing:border-box;width:100%;cursor:", ";&:hover{background-color:", ";}&:focus{background-color:", ";outline:none;}"], function (_ref4) {
@@ -20481,7 +22139,7 @@ var DropdownItemWrapper = qe.div.withConfig({
20481
22139
  themeValues = _ref7.themeValues;
20482
22140
  return selected ? themeValues.selectedColor : disabled ? WHITE : themeValues.hoverColor;
20483
22141
  });
20484
- var SearchInput = qe.input.withConfig({
22142
+ var SearchInput = styled.input.withConfig({
20485
22143
  displayName: "Dropdown__SearchInput",
20486
22144
  componentId: "sc-pn6m0h-3"
20487
22145
  })(["border:none;background-color:", ";font-size:16px;height:24px;"], function (_ref8) {
@@ -20712,11 +22370,11 @@ var Dropdown = function Dropdown(_ref9) {
20712
22370
 
20713
22371
  var Dropdown$1 = themeComponent(Dropdown, "Dropdown", fallbackValues$e);
20714
22372
 
20715
- var SelectContainer = qe.div.withConfig({
22373
+ var SelectContainer = styled.div.withConfig({
20716
22374
  displayName: "FormSelectstyled__SelectContainer",
20717
22375
  componentId: "sc-hkrqrv-0"
20718
22376
  })(["width:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;> * + *{margin-top:0.25rem;}"]);
20719
- var SelectField = qe.select.withConfig({
22377
+ var SelectField = styled.select.withConfig({
20720
22378
  displayName: "FormSelectstyled__SelectField",
20721
22379
  componentId: "sc-hkrqrv-1"
20722
22380
  })(["border:1px solid ", ";border-radius:2px;height:48px;width:100%;padding:0.75rem 1rem;min-width:100px;margin:0;box-sizing:border-box;position:relative;font-size:1.1rem;font-family:Public Sans;line-height:2rem;font-weight:", ";background-color:", ";color:", ";box-shadow:none;&:focus{border:1px solid ", ";}"], function (_ref) {
@@ -20730,7 +22388,7 @@ var SelectField = qe.select.withConfig({
20730
22388
  var themeValues = _ref3.themeValues;
20731
22389
  return themeValues.color && themeValues.color;
20732
22390
  }, MATISSE_BLUE);
20733
- var SelectOption = qe.option.withConfig({
22391
+ var SelectOption = styled.option.withConfig({
20734
22392
  displayName: "FormSelectstyled__SelectOption",
20735
22393
  componentId: "sc-hkrqrv-2"
20736
22394
  })([""]);
@@ -21640,7 +23298,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
21640
23298
  });
21641
23299
  };
21642
23300
 
21643
- var DetailText = qe.p.withConfig({
23301
+ var DetailText = styled.p.withConfig({
21644
23302
  displayName: "Detailstyled__DetailText",
21645
23303
  componentId: "sc-vn1h4n-0"
21646
23304
  })(["font-size:", ";line-height:1.5;color:", ";font-weight:", ";margin:", ";text-align:", ";font-family:", ";", ";"], function (_ref) {
@@ -21844,8 +23502,8 @@ var DisplayCard = function DisplayCard(_ref) {
21844
23502
  }) : /*#__PURE__*/React.createElement(Fragment$1, null))))));
21845
23503
  };
21846
23504
 
21847
- function _extends$2() {
21848
- _extends$2 = Object.assign || function (target) {
23505
+ function _extends$3() {
23506
+ _extends$3 = Object.assign || function (target) {
21849
23507
  for (var i = 1; i < arguments.length; i++) {
21850
23508
  var source = arguments[i];
21851
23509
 
@@ -21859,10 +23517,10 @@ function _extends$2() {
21859
23517
  return target;
21860
23518
  };
21861
23519
 
21862
- return _extends$2.apply(this, arguments);
23520
+ return _extends$3.apply(this, arguments);
21863
23521
  }
21864
23522
 
21865
- function _objectWithoutPropertiesLoose$1(source, excluded) {
23523
+ function _objectWithoutPropertiesLoose$2(source, excluded) {
21866
23524
  if (source == null) return {};
21867
23525
  var target = {};
21868
23526
  var sourceKeys = Object.keys(source);
@@ -21880,7 +23538,7 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
21880
23538
  function _objectWithoutProperties$1(source, excluded) {
21881
23539
  if (source == null) return {};
21882
23540
 
21883
- var target = _objectWithoutPropertiesLoose$1(source, excluded);
23541
+ var target = _objectWithoutPropertiesLoose$2(source, excluded);
21884
23542
 
21885
23543
  var key, i;
21886
23544
 
@@ -21963,7 +23621,7 @@ function _nonIterableRest$1() {
21963
23621
  var getUniqueFormatDelimiters = function getUniqueFormatDelimiters(formats, formatChar) {
21964
23622
  return _toConsumableArray$1(new Set(formats.join("").split(formatChar).join("").split("")));
21965
23623
  };
21966
- var format$1 = function format(formatter) {
23624
+ var format$2 = function format(formatter) {
21967
23625
  return function (value) {
21968
23626
  var usedFormat = formatter.formats[value.length];
21969
23627
 
@@ -22056,7 +23714,7 @@ var FormattedInput = function FormattedInput(_ref) {
22056
23714
  selectionEnd: 0,
22057
23715
  rawValue: value,
22058
23716
  "delete": false,
22059
- formattedValue: format$1(formatter)(value)
23717
+ formattedValue: format$2(formatter)(value)
22060
23718
  }),
22061
23719
  _useState2 = _slicedToArray$1(_useState, 2),
22062
23720
  state = _useState2[0],
@@ -22068,9 +23726,9 @@ var FormattedInput = function FormattedInput(_ref) {
22068
23726
  inputEl.current.setSelectionRange(state.selectionStart, state.selectionEnd);
22069
23727
  }
22070
23728
  });
22071
- return React.createElement("input", _extends$2({}, props, {
23729
+ return React.createElement("input", _extends$3({}, props, {
22072
23730
  ref: inputEl,
22073
- value: format$1(formatter)(value),
23731
+ value: format$2(formatter)(value),
22074
23732
  onKeyDown: function onKeyDown(event) {
22075
23733
  // Keep track of the state of the input before onChange, including if user is hitting delete
22076
23734
  setState({
@@ -22188,7 +23846,7 @@ var fallbackValues$i = {
22188
23846
 
22189
23847
  var _excluded$p = ["showErrors", "themeValues"],
22190
23848
  _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "extraStyles"];
22191
- var InputField = qe.input.withConfig({
23849
+ var InputField = styled.input.withConfig({
22192
23850
  displayName: "FormInput__InputField",
22193
23851
  componentId: "sc-l094r1-0"
22194
23852
  })(["border:1px solid ", ";border-radius:2px;height:", ";width:100%;padding:1rem;min-width:100px;margin:0;box-sizing:border-box;position:relative;font-size:1.1rem;font-family:Public Sans;line-height:2rem;font-weight:", ";background-color:", ";color:", ";box-shadow:none;", " transition:background 0.3s ease;&:focus{outline:3px solid ", ";outline-offset:2px;}", " ", ""], function (_ref) {
@@ -22211,13 +23869,13 @@ var InputField = qe.input.withConfig({
22211
23869
  return background && "background: ".concat(themeValues.inputBackgroundColor, " url(").concat(background, ") no-repeat right 0.5rem center;");
22212
23870
  }, ROYAL_BLUE, function (_ref6) {
22213
23871
  var disabled = _ref6.disabled;
22214
- return disabled && Ae(["color:#6e727e;background-color:#f7f7f7;"]);
23872
+ return disabled && css(["color:#6e727e;background-color:#f7f7f7;"]);
22215
23873
  }, function (_ref7) {
22216
23874
  var $extraStyles = _ref7.$extraStyles;
22217
- return Ae(["", ""], $extraStyles);
23875
+ return css(["", ""], $extraStyles);
22218
23876
  }); // eslint-disable-next-line no-unused-vars
22219
23877
 
22220
- var FormattedInputField = qe(function (_ref8) {
23878
+ var FormattedInputField = styled(function (_ref8) {
22221
23879
  var showErrors = _ref8.showErrors,
22222
23880
  themeValues = _ref8.themeValues,
22223
23881
  props = _objectWithoutProperties(_ref8, _excluded$p);
@@ -22242,10 +23900,10 @@ var FormattedInputField = qe(function (_ref8) {
22242
23900
  return themeValues.color && themeValues.color;
22243
23901
  }, ROYAL_BLUE, function (_ref13) {
22244
23902
  var disabled = _ref13.disabled;
22245
- return disabled && Ae(["color:#6e727e;background-color:#f7f7f7;"]);
23903
+ return disabled && css(["color:#6e727e;background-color:#f7f7f7;"]);
22246
23904
  }, function (_ref14) {
22247
23905
  var extraStyles = _ref14.extraStyles;
22248
- return Ae(["", ""], extraStyles);
23906
+ return css(["", ""], extraStyles);
22249
23907
  });
22250
23908
 
22251
23909
  var FormInput = function FormInput(_ref15) {
@@ -22277,7 +23935,7 @@ var FormInput = function FormInput(_ref15) {
22277
23935
  showPassword = _useState2[0],
22278
23936
  setShowPassword = _useState2[1];
22279
23937
 
22280
- var _useContext = useContext(Me),
23938
+ var _useContext = useContext(ThemeContext),
22281
23939
  isMobile = _useContext.isMobile;
22282
23940
 
22283
23941
  return /*#__PURE__*/React.createElement(Stack, {
@@ -22422,7 +24080,7 @@ var FormContainer = function FormContainer(_ref) {
22422
24080
  children = _ref.children,
22423
24081
  rest = _objectWithoutProperties(_ref, _excluded$s);
22424
24082
 
22425
- var _useContext = useContext(Me),
24083
+ var _useContext = useContext(ThemeContext),
22426
24084
  isMobile = _useContext.isMobile;
22427
24085
 
22428
24086
  return /*#__PURE__*/React.createElement(Box, _extends({
@@ -22439,7 +24097,7 @@ var FormFooterPanel = function FormFooterPanel(_ref) {
22439
24097
  link = _ref.link,
22440
24098
  linkText = _ref.linkText;
22441
24099
 
22442
- var _useContext = useContext(Me),
24100
+ var _useContext = useContext(ThemeContext),
22443
24101
  isMobile = _useContext.isMobile;
22444
24102
 
22445
24103
  return /*#__PURE__*/React.createElement(Box, {
@@ -22525,11 +24183,11 @@ var fallbackValues$k = {
22525
24183
  var ACTIVE = "ACTIVE";
22526
24184
  var EXPIRING_SOON = "EXPIRING_SOON";
22527
24185
  var EXPIRED = "EXPIRED";
22528
- var CreditCardWrapper = qe.div.withConfig({
24186
+ var CreditCardWrapper = styled.div.withConfig({
22529
24187
  displayName: "FormattedCreditCard__CreditCardWrapper",
22530
24188
  componentId: "sc-s0ta5l-0"
22531
24189
  })(["display:flex;justify-content:flex-start;align-items:center;"]);
22532
- var CCIconWrapper = qe.div.withConfig({
24190
+ var CCIconWrapper = styled.div.withConfig({
22533
24191
  displayName: "FormattedCreditCard__CCIconWrapper",
22534
24192
  componentId: "sc-s0ta5l-1"
22535
24193
  })(["margin-right:16px;width:30px;height:auto;display:flex;"]);
@@ -22585,15 +24243,15 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
22585
24243
 
22586
24244
  var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$k);
22587
24245
 
22588
- var Hamburger = qe.button.withConfig({
24246
+ var Hamburger = styled.button.withConfig({
22589
24247
  displayName: "HamburgerButton__Hamburger",
22590
24248
  componentId: "sc-4wlnwv-0"
22591
24249
  })(["padding:8px;display:inline-block;cursor:pointer;transition-property:opacity;transition-duration:0.15s;transition-timing-function:linear;font:inherit;color:inherit;text-transform:none;background-color:transparent;border:0;margin:0;overflow:visible;&:focus{outline:none;}"]);
22592
- var HamburgerBox = qe.span.withConfig({
24250
+ var HamburgerBox = styled.span.withConfig({
22593
24251
  displayName: "HamburgerButton__HamburgerBox",
22594
24252
  componentId: "sc-4wlnwv-1"
22595
24253
  })(["width:34px;height:34px;display:inline-block;position:relative;"]);
22596
- var HamburgerInner = qe.span.withConfig({
24254
+ var HamburgerInner = styled.span.withConfig({
22597
24255
  displayName: "HamburgerButton__HamburgerInner",
22598
24256
  componentId: "sc-4wlnwv-2"
22599
24257
  })(["display:block;top:auto;bottom:6px;left:2px;transition-duration:0.13s;transition-delay:0.13s;transition-timing-function:cubic-bezier(0.55,0.055,0.675,0.19);margin-top:12px;background-color:", ";&,&::before,&::after{background-color:", ";width:30px;height:3px;position:absolute;transition-property:transform;transition-duration:0.15s;transition-timing-function:ease;}&::before,&::after{content:\"\";display:block;}&::before{top:-10px;transition:top 0.12s 0.2s cubic-bezier(0.33333,0.66667,0.66667,1),transform 0.13s cubic-bezier(0.55,0.055,0.675,0.19);}&::after{bottom:-10px;top:-20px;transition:top 0.2s 0.2s cubic-bezier(0.33333,0.66667,0.66667,1),opacity 0.1s linear;}&.active,&.active::before,&.active::after{background-color:", ";}&.active{transform:translate3d(0,-10px,0) rotate(-45deg);transition-delay:0.22s;transition-timing-function:cubic-bezier(0.215,0.61,0.355,1);}&.active::after{top:0;opacity:0;transition:top 0.2s cubic-bezier(0.33333,0,0.66667,0.33333),opacity:0.1s 0.22s linear;}&.active::before{top:0;transform:rotate(-90deg);transition:top 0.1s 0.16s cubic-bezier(0.33333,0,0.66667,0.33333),transform 0.13s 0.25s cubic-bezier(0.215,0.61,0.355,1);}"], function (_ref) {
@@ -22627,7 +24285,7 @@ var HamburgerButton = function HamburgerButton(_ref4) {
22627
24285
  })));
22628
24286
  };
22629
24287
 
22630
- var HeadingText = qe.h1.withConfig({
24288
+ var HeadingText = styled.h1.withConfig({
22631
24289
  displayName: "Headingstyled__HeadingText",
22632
24290
  componentId: "sc-1a3jd28-0"
22633
24291
  })(["--font-size:", ";font-size:var(--font-size);line-height:calc(1.5 * var(--font-size));color:", ";font-weight:", ";margin:", ";text-align:", ";font-family:", ";", ";"], function (_ref) {
@@ -22727,7 +24385,7 @@ var Jumbo = function Jumbo(_ref) {
22727
24385
  showCartStatus = _ref$showCartStatus === void 0 ? false : _ref$showCartStatus,
22728
24386
  openCartSlider = _ref.openCartSlider;
22729
24387
 
22730
- var _useContext = useContext(Me),
24388
+ var _useContext = useContext(ThemeContext),
22731
24389
  isMobile = _useContext.isMobile;
22732
24390
 
22733
24391
  return /*#__PURE__*/React.createElement(Box, {
@@ -22855,7 +24513,7 @@ var fallbackValues$o = {
22855
24513
  color: color$8
22856
24514
  };
22857
24515
 
22858
- var SpinnerSvgAnimation = qe.svg.withConfig({
24516
+ var SpinnerSvgAnimation = styled.svg.withConfig({
22859
24517
  displayName: "Spinner__SpinnerSvgAnimation",
22860
24518
  componentId: "sc-vhupl9-0"
22861
24519
  })(["animation:rotate 2s linear infinite;margin:-25px 0 0 -25px;width:", "px;height:", "px;& .path{stroke:", ";stroke-linecap:round;animation:dash 1.5s ease-in-out infinite;}@keyframes rotate{100%{transform:rotate(360deg);}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"], function (_ref) {
@@ -22868,7 +24526,7 @@ var SpinnerSvgAnimation = qe.svg.withConfig({
22868
24526
  var color = _ref3.color;
22869
24527
  return color;
22870
24528
  });
22871
- var SpinnerContainer$2 = qe.div.withConfig({
24529
+ var SpinnerContainer$2 = styled.div.withConfig({
22872
24530
  displayName: "Spinner__SpinnerContainer",
22873
24531
  componentId: "sc-vhupl9-1"
22874
24532
  })(["width:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;line-height:1;"]);
@@ -23169,7 +24827,7 @@ var PlaceholderContentWrapper = function PlaceholderContentWrapper(_ref) {
23169
24827
  dataQa = _ref.dataQa;
23170
24828
  return isLink ? /*#__PURE__*/React.createElement(Link, {
23171
24829
  to: destination,
23172
- dataQa: dataQa
24830
+ "data-qa": dataQa
23173
24831
  }, /*#__PURE__*/React.createElement(Box, {
23174
24832
  padding: "0",
23175
24833
  minHeight: "100%",
@@ -23291,7 +24949,7 @@ var fallbackValues$r = {
23291
24949
  inactiveColor: inactiveColor
23292
24950
  };
23293
24951
 
23294
- var HiddenRadioButton = qe.input.withConfig({
24952
+ var HiddenRadioButton = styled.input.withConfig({
23295
24953
  displayName: "RadioButton__HiddenRadioButton",
23296
24954
  componentId: "sc-v6hie9-0"
23297
24955
  })(["opacity:0;position:absolute;cursor:", ";"], function (_ref) {
@@ -34072,7 +35730,7 @@ var fallbackValues$u = {
34072
35730
  leftLabelStyles: leftLabelStyles
34073
35731
  };
34074
35732
 
34075
- var HiddenToggleSwitchBox = qe.input.withConfig({
35733
+ var HiddenToggleSwitchBox = styled.input.withConfig({
34076
35734
  displayName: "ToggleSwitch__HiddenToggleSwitchBox",
34077
35735
  componentId: "sc-1t51u6v-0"
34078
35736
  })(["opacity:0;position:absolute;cursor:", ";height:24px;width:50px;", ""], function (_ref) {
@@ -34082,7 +35740,7 @@ var HiddenToggleSwitchBox = qe.input.withConfig({
34082
35740
  var isMobile = _ref2.isMobile;
34083
35741
  return isMobile ? "transform: scale(0.75)" : "";
34084
35742
  });
34085
- var VisibleSwitchComponent = qe.label.withConfig({
35743
+ var VisibleSwitchComponent = styled.label.withConfig({
34086
35744
  displayName: "ToggleSwitch__VisibleSwitchComponent",
34087
35745
  componentId: "sc-1t51u6v-1"
34088
35746
  })(["width:48px;height:24px;border-radius:48px;border:none;position:relative;box-sizing:border-box;cursor:", ";display:inline-block;&:hover{box-shadow:", ";}&:focus{box-shadow:0px 2px 5px 0px rgba(0,0,0,0.5);}", ""], function (_ref3) {
@@ -34095,11 +35753,11 @@ var VisibleSwitchComponent = qe.label.withConfig({
34095
35753
  var isMobile = _ref5.isMobile;
34096
35754
  return isMobile ? "transform: scale(0.75)" : "";
34097
35755
  });
34098
- var ToggleSwitchMiddleRingComponent = qe.div.withConfig({
35756
+ var ToggleSwitchMiddleRingComponent = styled.div.withConfig({
34099
35757
  displayName: "ToggleSwitch__ToggleSwitchMiddleRingComponent",
34100
35758
  componentId: "sc-1t51u6v-2"
34101
35759
  })(["position:absolute;width:20px;height:20px;border:none;border-radius:50%;box-sizing:border-box;"]);
34102
- var ToggleSwitchInnerRingComponent = qe.div.withConfig({
35760
+ var ToggleSwitchInnerRingComponent = styled.div.withConfig({
34103
35761
  displayName: "ToggleSwitch__ToggleSwitchInnerRingComponent",
34104
35762
  componentId: "sc-1t51u6v-3"
34105
35763
  })(["position:absolute;width:14px;height:14px;top:3px;left:3px;right:3px;bottom:3px;border-radius:50%;box-sizing:border-box;"]);
@@ -34251,7 +35909,7 @@ var themeValues = {
34251
35909
  focusBorder: focusBorder
34252
35910
  };
34253
35911
 
34254
- var TypeaheadInputWrapper = qe.div.withConfig({
35912
+ var TypeaheadInputWrapper = styled.div.withConfig({
34255
35913
  displayName: "TypeaheadInput__TypeaheadInputWrapper",
34256
35914
  componentId: "sc-cumjdb-0"
34257
35915
  })(["display:flex;align-content:center;align-items:center;background:", ";input{border:0;height:72px;width:100%;padding:1.5rem;padding-left:1rem;min-width:100px;margin:0;box-sizing:border-box;position:relative;font-size:1.1rem;line-height:2rem;font-weight:400;background-color:", ";color:", ";box-shadow:none;border:1px solid transparent;&:focus{border:1px solid ", ";}}"], themeValues.background, themeValues.background, themeValues.black, themeValues.focusBorder);
@@ -34773,9 +36431,9 @@ function isDraft(value) {
34773
36431
  }
34774
36432
  function isDraftable(value) {
34775
36433
  if (!value) { return false; }
34776
- return isPlainObject(value) || !!value[DRAFTABLE] || !!value.constructor[DRAFTABLE];
36434
+ return isPlainObject$1(value) || !!value[DRAFTABLE] || !!value.constructor[DRAFTABLE];
34777
36435
  }
34778
- function isPlainObject(value) {
36436
+ function isPlainObject$1(value) {
34779
36437
  if (!value || typeof value !== "object") { return false; }
34780
36438
  if (Array.isArray(value)) { return true; }
34781
36439
  var proto = Object.getPrototypeOf(value);
@@ -36515,7 +38173,7 @@ EditNameForm.reducer = reducer$2;
36515
38173
  EditNameForm.mapStateToProps = mapStateToProps$3;
36516
38174
  EditNameForm.mapDispatchToProps = mapDispatchToProps$2;
36517
38175
 
36518
- var EditableListItem = qe.div.withConfig({
38176
+ var EditableListItem = styled.div.withConfig({
36519
38177
  displayName: "EditableListstyled__EditableListItem",
36520
38178
  componentId: "sc-10ehkz7-0"
36521
38179
  })(["box-sizing:border-box;background:", ";border-color:", ";height:", ";display:flex;justify-content:space-between;align-items:center;padding:1.5rem;:not(:last-child),:not(:first-child){box-shadow:inset 0px -1px 0px 0px rgb(202,206,216);}:first-child{border-top-left-radius:3px;border-top-right-radius:3px;}:last-child{border-bottom-left-radius:3px;border-bottom-right-radius:3px;box-shadow:none;}"], function (_ref) {
@@ -36525,7 +38183,7 @@ var EditableListItem = qe.div.withConfig({
36525
38183
  var listItemSize = _ref2.listItemSize;
36526
38184
  return listItemSize === "big" ? "120px" : "72px";
36527
38185
  });
36528
- var EditableListItemControls = qe.div.withConfig({
38186
+ var EditableListItemControls = styled.div.withConfig({
36529
38187
  displayName: "EditableListstyled__EditableListItemControls",
36530
38188
  componentId: "sc-10ehkz7-1"
36531
38189
  })(["display:flex;justify-content:space-evenly;align-items:center;"]);
@@ -36646,14 +38304,14 @@ var EditableList = function EditableList(_ref) {
36646
38304
  }))));
36647
38305
  };
36648
38306
 
36649
- var EditableTableContainer = qe.div.withConfig({
38307
+ var EditableTableContainer = styled.div.withConfig({
36650
38308
  displayName: "EditableTablestyled__EditableTableContainer",
36651
38309
  componentId: "sc-fd3i2a-0"
36652
38310
  })(["display:", ";flex-direction:column;flex:1;"], function (_ref) {
36653
38311
  var hide = _ref.hide;
36654
38312
  return hide ? "none" : "flex";
36655
38313
  });
36656
- var EditableTableListItem = qe.div.withConfig({
38314
+ var EditableTableListItem = styled.div.withConfig({
36657
38315
  displayName: "EditableTablestyled__EditableTableListItem",
36658
38316
  componentId: "sc-fd3i2a-1"
36659
38317
  })(["width:100%;display:flex;", ";align-items:", ";flex-direction:", ";flex:1;", ";"], function (_ref2) {
@@ -36669,29 +38327,29 @@ var EditableTableListItem = qe.div.withConfig({
36669
38327
  var isMobile = _ref5.isMobile;
36670
38328
  return isMobile ? "padding: 1rem 0.5rem" : "padding: 0 0.5rem";
36671
38329
  });
36672
- var EditableListItemControls$1 = qe.div.withConfig({
38330
+ var EditableListItemControls$1 = styled.div.withConfig({
36673
38331
  displayName: "EditableTablestyled__EditableListItemControls",
36674
38332
  componentId: "sc-fd3i2a-2"
36675
38333
  })(["display:flex;justify-content:space-evenly;align-items:center;"]);
36676
- var EditableListAction = qe.div.withConfig({
38334
+ var EditableListAction = styled.div.withConfig({
36677
38335
  displayName: "EditableTablestyled__EditableListAction",
36678
38336
  componentId: "sc-fd3i2a-3"
36679
38337
  })(["color:", ";align-items:center;font-size:1rem;padding-right:1rem;cursor:pointer;display:", ";"], MATISSE_BLUE, function (_ref6) {
36680
38338
  var hide = _ref6.hide;
36681
38339
  return hide ? "none" : "flex";
36682
38340
  });
36683
- var ItemWrapper = qe.div.withConfig({
38341
+ var ItemWrapper = styled.div.withConfig({
36684
38342
  displayName: "EditableTablestyled__ItemWrapper",
36685
38343
  componentId: "sc-fd3i2a-4"
36686
38344
  })(["display:flex;flex-direction:row;flex:1;width:100%;border-bottom:1px solid ", ";"], GHOST_GREY);
36687
- var ActionWrapper = qe.div.withConfig({
38345
+ var ActionWrapper = styled.div.withConfig({
36688
38346
  displayName: "EditableTablestyled__ActionWrapper",
36689
38347
  componentId: "sc-fd3i2a-5"
36690
38348
  })(["display:flex;align-self:center;justify-content:flex-end;", ";flex:1;"], function (_ref7) {
36691
38349
  var isMobile = _ref7.isMobile;
36692
38350
  return isMobile && "display: none";
36693
38351
  });
36694
- var TableItemKey = qe.div.withConfig({
38352
+ var TableItemKey = styled.div.withConfig({
36695
38353
  displayName: "EditableTablestyled__TableItemKey",
36696
38354
  componentId: "sc-fd3i2a-6"
36697
38355
  })(["display:flex;", ";", ";", ";font-size:", ";color:", ";"], function (_ref8) {
@@ -36707,7 +38365,7 @@ var TableItemKey = qe.div.withConfig({
36707
38365
  var isMobile = _ref11.isMobile;
36708
38366
  return isMobile ? "1rem" : "1.125rem";
36709
38367
  }, STORM_GREY);
36710
- var TableItemValue = qe.div.withConfig({
38368
+ var TableItemValue = styled.div.withConfig({
36711
38369
  displayName: "EditableTablestyled__TableItemValue",
36712
38370
  componentId: "sc-fd3i2a-7"
36713
38371
  })(["display:flex;", ";", ";", ";font-size:", ";color:", ";"], function (_ref12) {
@@ -36723,7 +38381,7 @@ var TableItemValue = qe.div.withConfig({
36723
38381
  var isMobile = _ref15.isMobile;
36724
38382
  return isMobile ? "1.125rem" : "1.0625rem";
36725
38383
  }, BRIGHT_GREY);
36726
- var TableWrapper = qe.div.withConfig({
38384
+ var TableWrapper = styled.div.withConfig({
36727
38385
  displayName: "EditableTablestyled__TableWrapper",
36728
38386
  componentId: "sc-fd3i2a-8"
36729
38387
  })(["display:flex;flex-direction:row;flex:1;width:100%;"]);
@@ -39927,7 +41585,7 @@ var Modal$1 = function Modal(_ref) {
39927
41585
  buttonExtraStyles = _ref.buttonExtraStyles,
39928
41586
  children = _ref.children;
39929
41587
 
39930
- var _useContext = useContext(Me),
41588
+ var _useContext = useContext(ThemeContext),
39931
41589
  isMobile = _useContext.isMobile;
39932
41590
 
39933
41591
  return /*#__PURE__*/React.createElement(Fragment$1, null, modalOpen && /*#__PURE__*/React.createElement(reactAriaModal, {
@@ -40225,7 +41883,7 @@ var menu = posed.div({
40225
41883
  }
40226
41884
  }
40227
41885
  });
40228
- var ImposterMenu = qe(menu).withConfig({
41886
+ var ImposterMenu = styled(menu).withConfig({
40229
41887
  displayName: "NavMenuMobile__ImposterMenu",
40230
41888
  componentId: "sc-1pf0qp7-0"
40231
41889
  })(["position:fixed;top:72px;"]);
@@ -40323,15 +41981,19 @@ var AutopayModal = function AutopayModal(_ref) {
40323
41981
  modalOpen = _ref.modalOpen,
40324
41982
  deactivatePaymentSchedule = _ref.deactivatePaymentSchedule,
40325
41983
  navigateToSettings = _ref.navigateToSettings,
40326
- buttonLinkType = _ref.buttonLinkType,
41984
+ _ref$controlType = _ref.controlType,
41985
+ controlType = _ref$controlType === void 0 ? "tertiary" : _ref$controlType,
40327
41986
  isMobile = _ref.isMobile,
40328
41987
  themeValues = _ref.themeValues,
40329
41988
  isPaymentPlan = _ref.isPaymentPlan,
40330
- nextAutopayDate = _ref.nextAutopayDate;
41989
+ nextAutopayDate = _ref.nextAutopayDate,
41990
+ dueDate = _ref.dueDate,
41991
+ inactive = _ref.inactive;
40331
41992
  var planType = isPaymentPlan ? "Payment Plan" : "Autopay";
41993
+ var nextDate = dueDate || nextAutopayDate;
40332
41994
  var modalExtraProps = {
40333
41995
  modalHeaderText: autoPayActive ? "Deactivate ".concat(planType) : "Set Up ".concat(planType),
40334
- modalBodyText: autoPayActive ? "Are you sure you want to deactivate ".concat(isPaymentPlan ? "your payment plan" : "autopay", "? You will need to manually make your next payment.") : "To set up ".concat(isPaymentPlan ? "a payment plan" : "autopay", " you must save a payment method and address in your profile. Do you want to save these now?"),
41996
+ modalBodyText: autoPayActive ? "Are you sure you want to deactivate ".concat(isPaymentPlan ? "your payment plan" : "autopay", "? ").concat(!inactive && nextDate ? "Your next payment will be due on ".concat(nextDate, ".") : "") : "To set up ".concat(isPaymentPlan ? "a payment plan" : "autopay", " you must save a payment method and address in your profile. Do you want to save these now?"),
40335
41997
  continueButtonText: autoPayActive ? "Disable ".concat(planType) : "Add to Profile",
40336
41998
  useDangerButton: autoPayActive,
40337
41999
  continueAction: autoPayActive ? function () {
@@ -40342,6 +42004,67 @@ var AutopayModal = function AutopayModal(_ref) {
40342
42004
  var hoverStyles = "\n &:hover {\n .autopayIcon { fill: ".concat(themeValues.hoverColor, "; text-decoration: underline; cursor: pointer; }\n }");
40343
42005
  var activeStyles = "\n &:active {\n .autopayIcon { fill: ".concat(themeValues.activeColor, "; text-decoration: underline; }\n }");
40344
42006
  var defaultStyles = "\n .autopayIcon { fill: ".concat(themeValues.color, "; text-decoration: underline; }\n ");
42007
+
42008
+ var renderAutoPayControl = function renderAutoPayControl() {
42009
+ switch (controlType) {
42010
+ case "secondary":
42011
+ {
42012
+ return /*#__PURE__*/React.createElement(ButtonWithAction, {
42013
+ text: autoPayActive ? "Turn off ".concat(planType) : "Set Up ".concat(planType),
42014
+ variant: "secondary",
42015
+ action: function action() {
42016
+ toggleModal(true);
42017
+ },
42018
+ dataQa: "Turn off Autopay",
42019
+ extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1; min-width: 165px;"
42020
+ });
42021
+ }
42022
+
42023
+ case "tertiary":
42024
+ {
42025
+ return /*#__PURE__*/React.createElement(ButtonWithAction, {
42026
+ text: autoPayActive ? "Manage ".concat(planType) : "Set Up ".concat(planType),
42027
+ variant: "tertiary",
42028
+ action: function action() {
42029
+ toggleModal(true);
42030
+ },
42031
+ dataQa: "Manage Autopay",
42032
+ extraStyles: isMobile && "flex-grow: 1; width: 100%;"
42033
+ });
42034
+ }
42035
+
42036
+ case "link":
42037
+ {
42038
+ return /*#__PURE__*/React.createElement(Box, {
42039
+ padding: "0",
42040
+ onClick: function onClick() {
42041
+ toggleModal(true);
42042
+ },
42043
+ hoverStyles: hoverStyles,
42044
+ activeStyles: activeStyles,
42045
+ extraStyles: defaultStyles
42046
+ }, /*#__PURE__*/React.createElement(Cluster, {
42047
+ justify: isMobile ? "flex-start" : "flex-end",
42048
+ align: "center"
42049
+ }, /*#__PURE__*/React.createElement(AutopayOnIcon, null), /*#__PURE__*/React.createElement(Text$1, {
42050
+ variant: "pS",
42051
+ onClick: function onClick() {
42052
+ return toggleModal(true);
42053
+ },
42054
+ onKeyPress: function onKeyPress(e) {
42055
+ e.key === "Enter" && toggleModal(true);
42056
+ },
42057
+ tabIndex: "0",
42058
+ dataQa: "".concat(planType, " On"),
42059
+ color: SEA_GREEN,
42060
+ weight: themeValues.fontWeight,
42061
+ hoverStyles: themeValues.modalLinkHoverFocus,
42062
+ extraStyles: "padding-left: 0.25rem;"
42063
+ }, "".concat(planType, " ").concat(nextAutopayDate))));
42064
+ }
42065
+ }
42066
+ };
42067
+
40345
42068
  return /*#__PURE__*/React.createElement(Modal$1, _extends({
40346
42069
  showModal: function showModal() {
40347
42070
  return toggleModal(true);
@@ -40350,43 +42073,7 @@ var AutopayModal = function AutopayModal(_ref) {
40350
42073
  return toggleModal(false);
40351
42074
  },
40352
42075
  modalOpen: modalOpen
40353
- }, modalExtraProps), buttonLinkType ? /*#__PURE__*/React.createElement(ButtonWithAction, {
40354
- text: autoPayActive ? "Manage ".concat(planType) : "Set Up ".concat(planType),
40355
- variant: "tertiary",
40356
- action: function action() {
40357
- toggleModal(true);
40358
- },
40359
- dataQa: "Manage Autopay",
40360
- extraStyles: isMobile && "flex-grow: 1; width: 100%;"
40361
- }) : /*#__PURE__*/React.createElement(Box, {
40362
- padding: "0",
40363
- onClick: function onClick() {
40364
- toggleModal(true);
40365
- },
40366
- hoverStyles: hoverStyles,
40367
- activeStyles: activeStyles,
40368
- extraStyles: defaultStyles
40369
- }, /*#__PURE__*/React.createElement(Cluster, {
40370
- justify: isMobile ? "flex-start" : "flex-end",
40371
- align: "center"
40372
- }, /*#__PURE__*/React.createElement(AutopayOnIcon$1, null), /*#__PURE__*/React.createElement(Text$1, {
40373
- variant: "pS",
40374
- onClick: function onClick() {
40375
- return toggleModal(true);
40376
- },
40377
- onKeyPress: function onKeyPress(e) {
40378
- console.log({
40379
- e: e
40380
- });
40381
- e.key === "Enter" && toggleModal(true);
40382
- },
40383
- tabIndex: "0",
40384
- dataQa: "".concat(planType, " On"),
40385
- color: SEA_GREEN,
40386
- weight: themeValues.fontWeight,
40387
- hoverStyles: themeValues.modalLinkHoverFocus,
40388
- extraStyles: "padding-left: 0.25rem;"
40389
- }, "".concat(planType, " ").concat(nextAutopayDate)))));
42076
+ }, modalExtraProps), renderAutoPayControl());
40390
42077
  };
40391
42078
 
40392
42079
  var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$z);
@@ -40428,7 +42115,8 @@ var AmountModule = function AmountModule(_ref) {
40428
42115
  isMobile: isMobile,
40429
42116
  paymentPlanSchedule: paymentPlanSchedule,
40430
42117
  isPaymentPlan: isPaymentPlan,
40431
- nextAutopayDate: nextAutopayDate
42118
+ nextAutopayDate: nextAutopayDate,
42119
+ controlType: "link"
40432
42120
  })));
40433
42121
  };
40434
42122
 
@@ -40445,7 +42133,9 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
40445
42133
  autoPaySchedule = _ref.autoPaySchedule,
40446
42134
  paymentPlanSchedule = _ref.paymentPlanSchedule,
40447
42135
  isPaymentPlan = _ref.isPaymentPlan,
40448
- nextAutopayDate = _ref.nextAutopayDate;
42136
+ nextAutopayDate = _ref.nextAutopayDate,
42137
+ obligationAssocID = _ref.obligationAssocID,
42138
+ dueDate = _ref.dueDate;
40449
42139
  var planType = isPaymentPlan ? "Payment Plan" : "Autopay";
40450
42140
 
40451
42141
  var _useState = useState(false),
@@ -40470,7 +42160,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
40470
42160
  };
40471
42161
 
40472
42162
  var handleDetailsClick = function handleDetailsClick() {
40473
- setDetailedObligation(obligations, config);
42163
+ setDetailedObligation(obligations, config, obligationAssocID);
40474
42164
  navigateToDetailedObligation(detailsSlug);
40475
42165
  };
40476
42166
 
@@ -40536,14 +42226,14 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
40536
42226
  modalOpen: modalOpen,
40537
42227
  navigateToSettings: navigateToSettings,
40538
42228
  deactivatePaymentSchedule: deactivatePaymentSchedule,
40539
- buttonLinkType: true,
42229
+ controlType: "tertiary",
40540
42230
  isMobile: isMobile,
40541
42231
  paymentPlanSchedule: paymentPlanSchedule,
40542
42232
  isPaymentPlan: isPaymentPlan,
40543
- nextAutopayDate: nextAutopayDate
42233
+ nextAutopayDate: nextAutopayDate,
42234
+ dueDate: dueDate
40544
42235
  })), !isMobile && /*#__PURE__*/React.createElement(Box, {
40545
- padding: isMobile ? "0 0 0 8px" : "0",
40546
- extraStyles: isMobile && "flex-grow: 1;"
42236
+ padding: "0"
40547
42237
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
40548
42238
  isLoading: isLoading,
40549
42239
  action: function action() {
@@ -40551,8 +42241,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
40551
42241
  },
40552
42242
  text: "Pay Now",
40553
42243
  variant: isMobile ? "smallSecondary" : "secondary",
40554
- dataQa: "Pay Now",
40555
- extraStyles: isMobile && "flex-grow: 1; width: 100%;"
42244
+ dataQa: "Pay Now"
40556
42245
  }))), isMobile && /*#__PURE__*/React.createElement(Box, {
40557
42246
  padding: "8px 0 0",
40558
42247
  width: "100%"
@@ -40564,10 +42253,61 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
40564
42253
  text: "Pay Now",
40565
42254
  variant: isMobile ? "smallSecondary" : "secondary",
40566
42255
  dataQa: "Pay Now",
40567
- extraStyles: isMobile && "flex-grow: 1; width: 100%;"
42256
+ extraStyles: isMobile && "flex-grow: 1; width: 100%; margin: 0;"
40568
42257
  }))));
40569
42258
  };
40570
42259
 
42260
+ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
42261
+ var agencyName = _ref.agencyName,
42262
+ _ref$obligations = _ref.obligations,
42263
+ obligations = _ref$obligations === void 0 ? [] : _ref$obligations,
42264
+ removeAccount = _ref.removeAccount,
42265
+ accountType = _ref.accountType,
42266
+ isMobile = _ref.isMobile;
42267
+
42268
+ var _useState = useState(false),
42269
+ _useState2 = _slicedToArray(_useState, 2),
42270
+ modalIsOpen = _useState2[0],
42271
+ setModalIsOpen = _useState2[1];
42272
+
42273
+ var lastItem = _toConsumableArray(obligations).pop();
42274
+
42275
+ var accounts = obligations.length ? obligations.reduce(function (acc, curr) {
42276
+ var account = curr.details.description;
42277
+ var formattedAccount = curr !== lastItem ? "".concat(account, " and ") : "".concat(account);
42278
+ return formattedAccount === agencyName ? agencyName : acc + formattedAccount;
42279
+ }, "".concat(agencyName, " - ")) : "";
42280
+ var identifier = accountType === "Account" && obligations.length > 1 ? "accounts" : accountType === "Property" && obligations.length > 1 ? "properties" : accountType.toLowerCase();
42281
+ return /*#__PURE__*/React.createElement(Modal$1, {
42282
+ showModal: function showModal() {
42283
+ return setModalIsOpen(true);
42284
+ },
42285
+ hideModal: function hideModal() {
42286
+ return setModalIsOpen(false);
42287
+ },
42288
+ modalOpen: modalIsOpen,
42289
+ modalHeaderText: "Remove ".concat(accountType),
42290
+ modalBodyText: "Are you sure you want to remove the ".concat(identifier, " ").concat(accounts, " from your profile? Any autopay scheduled against ").concat(obligations.length > 1 ? "them" : "it", " will be deactivated."),
42291
+ continueButtonText: "Remove",
42292
+ continueAction: function continueAction() {
42293
+ removeAccount();
42294
+ setModalIsOpen(false);
42295
+ },
42296
+ useDangerButton: true
42297
+ }, /*#__PURE__*/React.createElement(Box, {
42298
+ padding: "0",
42299
+ extraStyles: "flex-grow: 1;"
42300
+ }, /*#__PURE__*/React.createElement(ButtonWithAction, {
42301
+ text: "Remove",
42302
+ variant: "secondary",
42303
+ action: function action() {
42304
+ return setModalIsOpen(true);
42305
+ },
42306
+ dataQa: "Remove Account",
42307
+ extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1;"
42308
+ })));
42309
+ };
42310
+
40571
42311
  var InactiveControlsModule = function InactiveControlsModule(_ref) {
40572
42312
  var autoPayEnabled = _ref.autoPayEnabled,
40573
42313
  autoPaySchedule = _ref.autoPaySchedule,
@@ -40578,6 +42318,9 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
40578
42318
  isPaymentPlan = _ref.isPaymentPlan,
40579
42319
  nextAutopayDate = _ref.nextAutopayDate,
40580
42320
  obligationAssocID = _ref.obligationAssocID,
42321
+ dueDate = _ref.dueDate,
42322
+ agencyName = _ref.agencyName,
42323
+ configType = _ref.configType,
40581
42324
  actions = _ref.actions;
40582
42325
 
40583
42326
  var _useState = useState(false),
@@ -40585,10 +42328,10 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
40585
42328
  modalOpen = _useState2[0],
40586
42329
  toggleModal = _useState2[1];
40587
42330
 
40588
- var removeAccount = actions.removeAccount;
42331
+ var deleteObligationAssoc = actions.deleteObligationAssoc;
40589
42332
 
40590
42333
  var handleRemoveAccount = function handleRemoveAccount() {
40591
- return removeAccount(obligationAssocID);
42334
+ return deleteObligationAssoc(obligationAssocID);
40592
42335
  };
40593
42336
 
40594
42337
  return /*#__PURE__*/React.createElement(Box, {
@@ -40596,7 +42339,10 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
40596
42339
  border: isMobile ? "1px solid ".concat(GHOST_GREY) : "0px",
40597
42340
  borderWidthOverride: isMobile ? "1px 0 0 0" : "0px"
40598
42341
  }, /*#__PURE__*/React.createElement(Cluster, {
40599
- childGap: isMobile ? "8px" : "18px"
42342
+ childGap: autoPayEnabled ? "8px" : "0",
42343
+ nowrap: true,
42344
+ justify: isMobile && autoPayEnabled && "center",
42345
+ align: isMobile && autoPayEnabled && "center"
40600
42346
  }, autoPayEnabled && /*#__PURE__*/React.createElement(Box, {
40601
42347
  padding: "0",
40602
42348
  extraStyles: "flex-grow: 1;"
@@ -40607,21 +42353,22 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
40607
42353
  modalOpen: modalOpen,
40608
42354
  navigateToSettings: navigateToSettings,
40609
42355
  deactivatePaymentSchedule: deactivatePaymentSchedule,
40610
- buttonLinkType: true,
40611
42356
  isMobile: isMobile,
40612
42357
  paymentPlanSchedule: paymentPlanSchedule,
40613
42358
  isPaymentPlan: isPaymentPlan,
40614
42359
  nextAutopayDate: nextAutopayDate,
40615
- obligationAssocID: obligationAssocID
42360
+ obligationAssocID: obligationAssocID,
42361
+ dueDate: dueDate,
42362
+ controlType: "secondary",
42363
+ inactive: true
40616
42364
  })), /*#__PURE__*/React.createElement(Box, {
40617
42365
  padding: "0",
40618
42366
  extraStyles: "flex-grow: 1;"
40619
- }, /*#__PURE__*/React.createElement(ButtonWithAction, {
40620
- variant: "tertiary",
40621
- text: "Remove",
40622
- action: handleRemoveAccount,
40623
- dataQa: "Remove Account",
40624
- extraStyles: isMobile && "flex-grow: 1; width: 100%;"
42367
+ }, /*#__PURE__*/React.createElement(RemoveAccountModalModule, {
42368
+ agencyName: agencyName,
42369
+ removeAccount: handleRemoveAccount,
42370
+ accountType: configType === "ACCOUNT" ? "Account" : "Property",
42371
+ isMobile: isMobile
40625
42372
  }))));
40626
42373
  };
40627
42374
 
@@ -40651,10 +42398,12 @@ var InactiveTitleModule = function InactiveTitleModule(_ref) {
40651
42398
  variant: "extraSmall",
40652
42399
  as: "p",
40653
42400
  color: BLACK
40654
- }, "This may mean that the account has been paid off or there was an error loading it. If you have questions about this account, please contact us.".concat(autoPayEnabled ? " You may disable Autopay for this account by pressing the Turn off Autopay button." : ""))));
42401
+ }, "This may mean that the balance has been paid, or there was an error loading it.".concat(autoPayEnabled ? " You may disable autopay for this account by pressing the 'Turn off Autopay' button." : ""))));
40655
42402
  };
40656
42403
 
40657
42404
  var Obligation = function Obligation(_ref) {
42405
+ var _firstObligation$cust, _firstObligation$desc, _firstObligation$subD;
42406
+
40658
42407
  var config = _ref.config,
40659
42408
  obligations = _ref.obligations,
40660
42409
  actions = _ref.actions,
@@ -40669,29 +42418,43 @@ var Obligation = function Obligation(_ref) {
40669
42418
  isPaymentPlan = _ref.isPaymentPlan,
40670
42419
  nextAutopayDate = _ref.nextAutopayDate,
40671
42420
  obligationAssocID = _ref.obligationAssocID,
40672
- _ref$isActive = _ref.isActive,
40673
- isActive = _ref$isActive === void 0 ? true : _ref$isActive,
42421
+ dueDate = _ref.dueDate,
42422
+ agencyName = _ref.agencyName,
42423
+ _ref$inactive = _ref.inactive,
42424
+ inactive = _ref$inactive === void 0 ? false : _ref$inactive,
40674
42425
  _ref$inactiveLookupTi = _ref.inactiveLookupTitle,
40675
42426
  inactiveLookupTitle = _ref$inactiveLookupTi === void 0 ? "" : _ref$inactiveLookupTi,
40676
42427
  _ref$inactiveLookupIn = _ref.inactiveLookupInput,
40677
42428
  inactiveLookupInput = _ref$inactiveLookupIn === void 0 ? "Account" : _ref$inactiveLookupIn,
40678
42429
  _ref$inactiveLookupVa = _ref.inactiveLookupValue,
40679
42430
  inactiveLookupValue = _ref$inactiveLookupVa === void 0 ? "" : _ref$inactiveLookupVa;
40680
- var obligation = obligations[0];
40681
- var customAttributes = obligation.customAttributes;
40682
- var boxShadowValue = "0px 4px 4px rgba(41, 42, 51, 0.1), 0px 1px 1px 2px rgba(41, 42, 51, 0.1);";
42431
+
42432
+ /*
42433
+ The value of obligations is always an array. It can contain:
42434
+ - A single obligation
42435
+ - A group of obligations (a "collection")
42436
+
42437
+ The top level desc/subdesc for all obligations in a collection is the same
42438
+ (Collection accounts look different in the Account Details page)
42439
+ */
42440
+ var firstObligation = obligations[0];
42441
+ var customAttributes = (_firstObligation$cust = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.customAttributes) !== null && _firstObligation$cust !== void 0 ? _firstObligation$cust : {};
42442
+ var boxShadowValue = "0px 2px 4px rgba(41, 42, 51, 0.1), 0px 1px 1px 2px rgba(41, 42, 51, 0.1);";
40683
42443
  var activeObligation = /*#__PURE__*/React.createElement(Box, {
40684
42444
  padding: "0",
40685
42445
  borderRadius: "4px",
40686
42446
  boxShadow: boxShadowValue,
40687
42447
  as: "section",
40688
- "aria-label": "".concat(obligation.description, " ").concat(obligation.subDescription)
42448
+ "aria-label": "".concat((_firstObligation$desc = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.description) !== null && _firstObligation$desc !== void 0 ? _firstObligation$desc : "account", " ").concat((_firstObligation$subD = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.subDescription) !== null && _firstObligation$subD !== void 0 ? _firstObligation$subD : obligationAssocID),
42449
+ border: "1px solid ".concat(GRECIAN_GREY),
42450
+ borderWidthOverride: "1px 0 0 0"
40689
42451
  }, /*#__PURE__*/React.createElement(Box, {
40690
- background: WHITE
42452
+ background: WHITE,
42453
+ padding: isMobile ? "16px" : "24px 16px"
40691
42454
  }, /*#__PURE__*/React.createElement(Stack, {
40692
42455
  childGap: "14px"
40693
42456
  }, /*#__PURE__*/React.createElement(Box, {
40694
- key: "".concat(obligations[0].id, "-top"),
42457
+ key: "".concat(firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.id, "-top"),
40695
42458
  padding: "0 8px",
40696
42459
  minWidth: "100%"
40697
42460
  }, /*#__PURE__*/React.createElement(Cluster, {
@@ -40711,12 +42474,12 @@ var Obligation = function Obligation(_ref) {
40711
42474
  iconValue: config.iconValue,
40712
42475
  customAttributes: customAttributes
40713
42476
  }), /*#__PURE__*/React.createElement(TitleModule, {
40714
- title: obligation.description,
40715
- subtitle: obligation.subDescription,
42477
+ title: firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.description,
42478
+ subtitle: firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.subDescription,
40716
42479
  titleColor: BRIGHT_GREY,
40717
42480
  isMobile: isMobile
40718
42481
  }))), !isMobile && /*#__PURE__*/React.createElement(AmountModule, {
40719
- totalAmountDue: obligations.reduce(function (acc, curr) {
42482
+ totalAmountDue: obligations === null || obligations === void 0 ? void 0 : obligations.reduce(function (acc, curr) {
40720
42483
  return acc + curr.amountDue;
40721
42484
  }, 0),
40722
42485
  autoPayEnabled: autoPayEnabled,
@@ -40740,7 +42503,8 @@ var Obligation = function Obligation(_ref) {
40740
42503
  actions: actions,
40741
42504
  isMobile: isMobile,
40742
42505
  isPaymentPlan: isPaymentPlan,
40743
- nextAutopayDate: nextAutopayDate
42506
+ nextAutopayDate: nextAutopayDate,
42507
+ obligationAssocID: obligationAssocID
40744
42508
  }))), isMobile && /*#__PURE__*/React.createElement(PaymentDetailsActions, {
40745
42509
  obligations: obligations,
40746
42510
  autoPayEnabled: autoPayEnabled,
@@ -40754,7 +42518,8 @@ var Obligation = function Obligation(_ref) {
40754
42518
  actions: actions,
40755
42519
  isMobile: isMobile,
40756
42520
  isPaymentPlan: isPaymentPlan,
40757
- nextAutopayDate: nextAutopayDate
42521
+ nextAutopayDate: nextAutopayDate,
42522
+ obligationAssocID: obligationAssocID
40758
42523
  }));
40759
42524
  var inactiveObligation = /*#__PURE__*/React.createElement(Box, {
40760
42525
  padding: "0",
@@ -40763,23 +42528,25 @@ var Obligation = function Obligation(_ref) {
40763
42528
  as: "section",
40764
42529
  "aria-label": "".concat(inactiveLookupTitle, " ").concat(inactiveLookupInput, ": ").concat(inactiveLookupValue)
40765
42530
  }, /*#__PURE__*/React.createElement(Box, {
40766
- background: ATHENS_GREY
42531
+ background: ATHENS_GREY,
42532
+ padding: isMobile ? "16px" : "24px"
40767
42533
  }, /*#__PURE__*/React.createElement(Stack, {
40768
42534
  childGap: "14px"
40769
42535
  }, /*#__PURE__*/React.createElement(Box, {
40770
- key: "".concat(obligations[0].id, "-top"),
40771
- padding: "0 8px",
42536
+ key: "".concat(obligationAssocID, "-top"),
42537
+ padding: "0",
40772
42538
  minWidth: "100%"
40773
42539
  }, /*#__PURE__*/React.createElement(Cluster, {
40774
42540
  justify: "space-between",
40775
42541
  align: "center",
40776
- childGap: "4px",
42542
+ childGap: "40px",
40777
42543
  nowrap: true
40778
42544
  }, /*#__PURE__*/React.createElement(Box, {
40779
42545
  padding: "0"
40780
42546
  }, /*#__PURE__*/React.createElement(Cluster, {
40781
42547
  justify: "flex-start",
40782
- align: "center"
42548
+ align: "center",
42549
+ nowrap: true
40783
42550
  }, /*#__PURE__*/React.createElement(IconsModule, {
40784
42551
  icon: config.icon,
40785
42552
  iconDefault: config.iconDefault,
@@ -40802,7 +42569,10 @@ var Obligation = function Obligation(_ref) {
40802
42569
  actions: actions,
40803
42570
  isMobile: isMobile,
40804
42571
  nextAutopayDate: nextAutopayDate,
40805
- obligationAssocID: obligationAssocID
42572
+ obligationAssocID: obligationAssocID,
42573
+ dueDate: dueDate,
42574
+ agencyName: agencyName,
42575
+ configType: config.type
40806
42576
  }))), isMobile && /*#__PURE__*/React.createElement(InactiveControlsModule, {
40807
42577
  obligations: obligations,
40808
42578
  autoPayEnabled: autoPayEnabled,
@@ -40813,9 +42583,12 @@ var Obligation = function Obligation(_ref) {
40813
42583
  actions: actions,
40814
42584
  isMobile: isMobile,
40815
42585
  nextAutopayDate: nextAutopayDate,
40816
- obligationAssocID: obligationAssocID
42586
+ obligationAssocID: obligationAssocID,
42587
+ dueDate: dueDate,
42588
+ agencyName: agencyName,
42589
+ configType: config.type
40817
42590
  }))));
40818
- return isActive ? activeObligation : inactiveObligation;
42591
+ return inactive ? inactiveObligation : activeObligation;
40819
42592
  };
40820
42593
 
40821
42594
  var PartialAmountForm = function PartialAmountForm(_ref) {
@@ -41059,7 +42832,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
41059
42832
  _ref$hideForwardButto = _ref.hideForwardButton,
41060
42833
  hideForwardButton = _ref$hideForwardButto === void 0 ? false : _ref$hideForwardButto;
41061
42834
 
41062
- var _useContext = useContext(Me),
42835
+ var _useContext = useContext(ThemeContext),
41063
42836
  isMobile = _useContext.isMobile;
41064
42837
 
41065
42838
  var backButton = !!cancelURL && !!cancelText ? /*#__PURE__*/React.createElement(ButtonWithLink, {
@@ -41587,7 +43360,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
41587
43360
  walletCheckboxMarked = _ref.walletCheckboxMarked,
41588
43361
  deniedCards = _ref.deniedCards;
41589
43362
 
41590
- var _useContext = useContext(Me),
43363
+ var _useContext = useContext(ThemeContext),
41591
43364
  isMobile = _useContext.isMobile;
41592
43365
 
41593
43366
  useEffect$1(function () {
@@ -41910,7 +43683,7 @@ var RadioSection = function RadioSection(_ref) {
41910
43683
  }
41911
43684
  };
41912
43685
  var borderStyles = "\n border-width: 0 0 1px 0;\n border-color: ".concat(themeValues.borderColor, ";\n border-style: solid;\n border-radius: 0px;\n transform-origin: 100% 0;\n\n &:last-child {\n border-width: 0;\n }\n ");
41913
- var RightIcon = qe.img.withConfig({
43686
+ var RightIcon = styled.img.withConfig({
41914
43687
  displayName: "RadioSection__RightIcon",
41915
43688
  componentId: "sc-uema02-0"
41916
43689
  })(["height:", ";width:", ";", " transition:opacity 0.3s ease;"], function (_ref2) {
@@ -42141,7 +43914,7 @@ RegistrationForm.mapStateToProps = mapStateToProps$b;
42141
43914
  RegistrationForm.mapDispatchToProps = mapDispatchToProps$a;
42142
43915
 
42143
43916
  var ResetConfirmationForm = function ResetConfirmationForm() {
42144
- var _useContext = useContext(Me),
43917
+ var _useContext = useContext(ThemeContext),
42145
43918
  isMobile = _useContext.isMobile;
42146
43919
 
42147
43920
  return /*#__PURE__*/React.createElement(Box, {
@@ -42262,7 +44035,7 @@ ResetPasswordForm.mapStateToProps = mapStateToProps$c;
42262
44035
  ResetPasswordForm.mapDispatchToProps = mapDispatchToProps$b;
42263
44036
 
42264
44037
  var ResetConfirmationForm$2 = function ResetConfirmationForm() {
42265
- var _useContext = useContext(Me),
44038
+ var _useContext = useContext(ThemeContext),
42266
44039
  isMobile = _useContext.isMobile;
42267
44040
 
42268
44041
  return /*#__PURE__*/React.createElement(Box, {
@@ -42409,7 +44182,7 @@ var TabSidebar = function TabSidebar(_ref) {
42409
44182
  themeValues = _ref.themeValues;
42410
44183
  return /*#__PURE__*/React.createElement(Box, {
42411
44184
  padding: "0",
42412
- background: ATHENS_GREY,
44185
+ background: COOL_GREY_05,
42413
44186
  minHeight: "100%",
42414
44187
  role: "region",
42415
44188
  "aria-label": "Profile tabs",
@@ -42581,7 +44354,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
42581
44354
  var Timeout = function Timeout(_ref) {
42582
44355
  var onLogout = _ref.onLogout;
42583
44356
 
42584
- var _useContext = useContext(Me),
44357
+ var _useContext = useContext(ThemeContext),
42585
44358
  isMobile = _useContext.isMobile;
42586
44359
 
42587
44360
  return /*#__PURE__*/React.createElement(Cover, null, /*#__PURE__*/React.createElement(Center, {
@@ -42628,7 +44401,7 @@ var fallbackValues$G = {
42628
44401
  imageBackgroundColor: imageBackgroundColor
42629
44402
  };
42630
44403
 
42631
- var WelcomeImage = qe.img.withConfig({
44404
+ var WelcomeImage = styled.img.withConfig({
42632
44405
  displayName: "WelcomeModule__WelcomeImage",
42633
44406
  componentId: "sc-1d9znh4-0"
42634
44407
  })(["width:auto;height:215px;"]);
@@ -42711,11 +44484,12 @@ var WorkflowTile = function WorkflowTile(_ref) {
42711
44484
  minWidth: "100%",
42712
44485
  url: "/service/".concat(slug),
42713
44486
  extraStyles: "width: 100%;",
42714
- linkExtraStyles: "justify-content: center;"
44487
+ linkExtraStyles: "justify-content: center;",
44488
+ dataQa: slug
42715
44489
  }))));
42716
44490
  };
42717
44491
 
42718
- var DashboardIframe = qe.iframe.withConfig({
44492
+ var DashboardIframe = styled.iframe.withConfig({
42719
44493
  displayName: "PeriscopeDashboardIframestyled__DashboardIframe",
42720
44494
  componentId: "sc-j0cucj-0"
42721
44495
  })(["border:none;box-shadow:0 0 5px 0 ", ";display:none;"], ALTO_GREY);
@@ -42828,7 +44602,7 @@ var PeriscopeDashboardIframe = function PeriscopeDashboardIframe(_ref) {
42828
44602
  }, "Your organization may not have a dashboard configured."))), !periscopeDataFailure && url && Dashboard(height)(url)));
42829
44603
  };
42830
44604
 
42831
- var pageBackground = "#F6F6F9";
44605
+ var pageBackground = "#FBFCFD";
42832
44606
  var fallbackValues$H = {
42833
44607
  pageBackground: pageBackground
42834
44608
  };
@@ -42847,12 +44621,12 @@ var CenterSingle = function CenterSingle(_ref) {
42847
44621
  centeredMobileContent = _ref$centeredMobileCo === void 0 ? false : _ref$centeredMobileCo,
42848
44622
  content = _ref.content,
42849
44623
  themeValues = _ref.themeValues;
42850
- var themeContext = useContext(Me);
44624
+ var themeContext = useContext(ThemeContext);
42851
44625
  var isMobile = themeContext.isMobile;
42852
44626
  return /*#__PURE__*/React.createElement(Box, {
42853
44627
  padding: "0",
42854
44628
  minWidth: "100%",
42855
- background: themeValues.pageBackground,
44629
+ background: COOL_GREY_05,
42856
44630
  extraStyles: "flex-grow: 1;"
42857
44631
  }, /*#__PURE__*/React.createElement(Cover, {
42858
44632
  centerOverride: isMobile && !centeredMobileContent
@@ -42892,12 +44666,12 @@ var CenterStack = function CenterStack(_ref) {
42892
44666
  fullWidthMobile = _ref$fullWidthMobile === void 0 ? true : _ref$fullWidthMobile,
42893
44667
  content = _ref.content,
42894
44668
  themeValues = _ref.themeValues;
42895
- var themeContext = useContext(Me);
44669
+ var themeContext = useContext(ThemeContext);
42896
44670
  var isMobile = themeContext.isMobile;
42897
44671
  return /*#__PURE__*/React.createElement(Box, {
42898
44672
  padding: "0",
42899
44673
  minWidth: "100%",
42900
- background: themeValues.pageBackground,
44674
+ background: COOL_GREY_05,
42901
44675
  extraStyles: "flex-grow: 1;"
42902
44676
  }, /*#__PURE__*/React.createElement(Cover, null, header ? header : /*#__PURE__*/React.createElement(Box, {
42903
44677
  padding: "0"
@@ -42932,12 +44706,12 @@ var CenterSingle$2 = function CenterSingle(_ref) {
42932
44706
  maxWidth = _ref$maxWidth === void 0 ? "75rem" : _ref$maxWidth,
42933
44707
  _ref$gutters = _ref.gutters,
42934
44708
  gutters = _ref$gutters === void 0 ? "2rem" : _ref$gutters;
42935
- var themeContext = useContext(Me);
44709
+ var themeContext = useContext(ThemeContext);
42936
44710
  var isMobile = themeContext.isMobile;
42937
44711
  return /*#__PURE__*/React.createElement(Box, {
42938
44712
  padding: "0",
42939
44713
  minWidth: "100%",
42940
- background: themeValues.pageBackground,
44714
+ background: COOL_GREY_05,
42941
44715
  extraStyles: "flex-grow: 1;"
42942
44716
  }, /*#__PURE__*/React.createElement(Cover, {
42943
44717
  childGap: "0",
@@ -42983,12 +44757,12 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
42983
44757
  _ref$sidebarVerticalC = _ref.sidebarVerticalCenter,
42984
44758
  sidebarVerticalCenter = _ref$sidebarVerticalC === void 0 ? false : _ref$sidebarVerticalC,
42985
44759
  themeValues = _ref.themeValues;
42986
- var themeContext = useContext(Me);
44760
+ var themeContext = useContext(ThemeContext);
42987
44761
  var isMobile = themeContext.isMobile;
42988
44762
  return /*#__PURE__*/React.createElement(Box, {
42989
44763
  padding: "0",
42990
44764
  minWidth: "100%",
42991
- background: themeValues.pageBackground,
44765
+ background: COOL_GREY_05,
42992
44766
  extraStyles: "flex-grow: 1;"
42993
44767
  }, /*#__PURE__*/React.createElement(Cover, {
42994
44768
  centerOverride: !sidebarVerticalCenter
@@ -43039,12 +44813,12 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
43039
44813
  _ref$sidebarVerticalC = _ref.sidebarVerticalCenter,
43040
44814
  sidebarVerticalCenter = _ref$sidebarVerticalC === void 0 ? false : _ref$sidebarVerticalC,
43041
44815
  themeValues = _ref.themeValues;
43042
- var themeContext = useContext(Me);
44816
+ var themeContext = useContext(ThemeContext);
43043
44817
  var isMobile = themeContext.isMobile;
43044
44818
  return /*#__PURE__*/React.createElement(Box, {
43045
44819
  padding: "0",
43046
44820
  minWidth: "100%",
43047
- background: themeValues.pageBackground,
44821
+ background: COOL_GREY_05,
43048
44822
  key: "page-bg",
43049
44823
  extraStyles: "flex-grow: 1;"
43050
44824
  }, /*#__PURE__*/React.createElement(Cover, {
@@ -43102,5 +44876,5 @@ var index$5 = /*#__PURE__*/Object.freeze({
43102
44876
  theme: themeUtils
43103
44877
  });
43104
44878
 
43105
- export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, AutopayOnIcon$1 as AutopayOnIcon, BankIcon, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackReversalIcon, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, ErroredIcon, ExternalLink, FailedIcon, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GoToEmailIcon$1 as GoToEmailIcon, Grid, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, IconAdd, IconQuitLarge, Imposter, InternalLink, InternalUserInfoForm, Jumbo$1 as Jumbo, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, Loading, LoginForm, Modal$1 as Modal, Module$1 as Module, Motion, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentIcon, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioSection$1 as RadioSection, Reel, RefundIcon, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, Switcher, TabSidebar$1 as TabSidebar, TableListItem, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletIcon$1 as WalletIcon, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, cardRegistry, index$4 as constants, createPartialAmountFormState, index$5 as util, withWindowSize };
44879
+ export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, AutopayOnIcon, BankIcon, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackReversalIcon, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, ErroredIcon, ExternalLink, FailedIcon, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GoToEmailIcon$1 as GoToEmailIcon, Grid, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, IconAdd, IconQuitLarge, Imposter, InternalLink, InternalUserInfoForm, Jumbo$1 as Jumbo, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, Loading, LoginForm, Modal$1 as Modal, Module$1 as Module, Motion, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentIcon, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioSection$1 as RadioSection, Reel, RefundIcon, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, Switcher, TabSidebar$1 as TabSidebar, TableListItem, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletIcon$1 as WalletIcon, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, cardRegistry, index$4 as constants, createPartialAmountFormState, index$5 as util, withWindowSize };
43106
44880
  //# sourceMappingURL=index.esm.js.map