@companycam/slab-web 0.0.23 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +5 -0
- package/index.js +359 -0
- package/index.mjs +2222 -0
- package/lib/Badge/Badge.d.ts +34 -0
- package/lib/Billboard/Billboard.d.ts +60 -0
- package/lib/Button/Button.d.ts +29 -0
- package/lib/ScreenReaderContent/ScreenReaderContent.d.ts +11 -0
- package/lib/Spinner/Spinner.d.ts +14 -0
- package/lib/Text/Text.d.ts +24 -0
- package/lib/shared/styles.d.ts +20 -0
- package/package.json +15 -58
- package/dist/bundle.js +0 -1436
- package/shared/index.js +0 -13
- package/shared/legacyStyles.js +0 -78
- package/shared/package.json +0 -3
- package/shared/theming/CCThemeProvider.js +0 -22
- package/shared/theming/CCThemeProvider.native.js +0 -22
- package/shared/theming/themes/base.js +0 -42
- package/shared/theming/themes/dark_environment.js +0 -57
- package/shared/theming/themes/light_environment.js +0 -57
- package/shared/theming/useCCTheme.js +0 -16
- package/shared/theming/utils.js +0 -23
- package/shared/theming/withTheme.js +0 -29
- package/shared/tokens/build/css/base.css +0 -324
- package/shared/tokens/build/css/dark_environment.css +0 -334
- package/shared/tokens/build/css/light_environment.css +0 -334
- package/shared/tokens/build/docs/token_docs.js +0 -1015
- package/shared/tokens/build/js/tokens.js +0 -126
- package/shared/tokens/build/json/tokens.json +0 -123
- package/shared/tokens/build/scss/tokens.scss +0 -125
- package/shared/tokens/config.js +0 -231
- package/shared/tokens/properties/color.json +0 -344
- package/shared/tokens/properties/size.json +0 -113
- package/web/components/Icon/Icon.jsx +0 -92
- package/web/components/Icon/index.js +0 -3
- package/web/components/Icon/names.js +0 -3
- package/web/components/Icon/utils.js +0 -12
- package/web/components/index.js +0 -3
- package/web/index.js +0 -6
package/index.d.ts
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("react/jsx-runtime"),ie=require("react");function zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Le={exports:{}},M={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-is.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var tt;function $t(){if(tt)return M;tt=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),f=Symbol.for("react.server_context"),_=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function x(c){if(typeof c=="object"&&c!==null){var P=c.$$typeof;switch(P){case e:switch(c=c.type,c){case t:case o:case n:case p:case v:return c;default:switch(c=c&&c.$$typeof,c){case f:case i:case _:case R:case b:case s:return c;default:return P}}case r:return P}}}return M.ContextConsumer=i,M.ContextProvider=s,M.Element=e,M.ForwardRef=_,M.Fragment=t,M.Lazy=R,M.Memo=b,M.Portal=r,M.Profiler=o,M.StrictMode=n,M.Suspense=p,M.SuspenseList=v,M.isAsyncMode=function(){return!1},M.isConcurrentMode=function(){return!1},M.isContextConsumer=function(c){return x(c)===i},M.isContextProvider=function(c){return x(c)===s},M.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===e},M.isForwardRef=function(c){return x(c)===_},M.isFragment=function(c){return x(c)===t},M.isLazy=function(c){return x(c)===R},M.isMemo=function(c){return x(c)===b},M.isPortal=function(c){return x(c)===r},M.isProfiler=function(c){return x(c)===o},M.isStrictMode=function(c){return x(c)===n},M.isSuspense=function(c){return x(c)===p},M.isSuspenseList=function(c){return x(c)===v},M.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===t||c===o||c===n||c===p||c===v||c===I||typeof c=="object"&&c!==null&&(c.$$typeof===R||c.$$typeof===b||c.$$typeof===s||c.$$typeof===i||c.$$typeof===_||c.$$typeof===S||c.getModuleId!==void 0)},M.typeOf=x,M}var j={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-is.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var rt;function Ot(){return rt||(rt=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),f=Symbol.for("react.server_context"),_=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),S=!1,x=!1,c=!1,P=!1,k=!1,A;A=Symbol.for("react.module.reference");function w(h){return!!(typeof h=="string"||typeof h=="function"||h===t||h===o||k||h===n||h===p||h===v||P||h===I||S||x||c||typeof h=="object"&&h!==null&&(h.$$typeof===R||h.$$typeof===b||h.$$typeof===s||h.$$typeof===i||h.$$typeof===_||h.$$typeof===A||h.getModuleId!==void 0))}function l(h){if(typeof h=="object"&&h!==null){var T=h.$$typeof;switch(T){case e:var B=h.type;switch(B){case t:case o:case n:case p:case v:return B;default:var N=B&&B.$$typeof;switch(N){case f:case i:case _:case R:case b:case s:return N;default:return T}}case r:return T}}}var G=i,ne=s,Q=e,te=_,oe=t,le=R,X=b,J=r,re=o,W=n,fe=p,ee=v,q=!1,ue=!1;function ae(h){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function pe(h){return ue||(ue=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function y(h){return l(h)===i}function m(h){return l(h)===s}function g(h){return typeof h=="object"&&h!==null&&h.$$typeof===e}function C(h){return l(h)===_}function a(h){return l(h)===t}function $(h){return l(h)===R}function d(h){return l(h)===b}function Y(h){return l(h)===r}function O(h){return l(h)===o}function z(h){return l(h)===n}function u(h){return l(h)===p}function V(h){return l(h)===v}j.ContextConsumer=G,j.ContextProvider=ne,j.Element=Q,j.ForwardRef=te,j.Fragment=oe,j.Lazy=le,j.Memo=X,j.Portal=J,j.Profiler=re,j.StrictMode=W,j.Suspense=fe,j.SuspenseList=ee,j.isAsyncMode=ae,j.isConcurrentMode=pe,j.isContextConsumer=y,j.isContextProvider=m,j.isElement=g,j.isForwardRef=C,j.isFragment=a,j.isLazy=$,j.isMemo=d,j.isPortal=Y,j.isProfiler=O,j.isStrictMode=z,j.isSuspense=u,j.isSuspenseList=V,j.isValidElementType=w,j.typeOf=l}()),j}process.env.NODE_ENV==="production"?Le.exports=$t():Le.exports=Ot();var Ze=Le.exports;function Nt(e){function r(y,m,g,C,a){for(var $=0,d=0,Y=0,O=0,z,u,V=0,h=0,T,B=T=z=0,N=0,Z=0,Se=0,K=0,Ae=g.length,we=Ae-1,se,E="",H="",Ie="",Me="",he;N<Ae;){if(u=g.charCodeAt(N),N===we&&d+O+Y+$!==0&&(d!==0&&(u=d===47?10:47),O=Y=$=0,Ae++,we++),d+O+Y+$===0){if(N===we&&(0<Z&&(E=E.replace(R,"")),0<E.trim().length)){switch(u){case 32:case 9:case 59:case 13:case 10:break;default:E+=g.charAt(N)}u=59}switch(u){case 123:for(E=E.trim(),z=E.charCodeAt(0),T=1,K=++N;N<Ae;){switch(u=g.charCodeAt(N)){case 123:T++;break;case 125:T--;break;case 47:switch(u=g.charCodeAt(N+1)){case 42:case 47:e:{for(B=N+1;B<we;++B)switch(g.charCodeAt(B)){case 47:if(u===42&&g.charCodeAt(B-1)===42&&N+2!==B){N=B+1;break e}break;case 10:if(u===47){N=B+1;break e}}N=B}}break;case 91:u++;case 40:u++;case 34:case 39:for(;N++<we&&g.charCodeAt(N)!==u;);}if(T===0)break;N++}switch(T=g.substring(K,N),z===0&&(z=(E=E.replace(b,"").trim()).charCodeAt(0)),z){case 64:switch(0<Z&&(E=E.replace(R,"")),u=E.charCodeAt(1),u){case 100:case 109:case 115:case 45:Z=m;break;default:Z=fe}if(T=r(m,Z,T,u,a+1),K=T.length,0<q&&(Z=t(fe,E,Se),he=f(3,T,Z,m,J,X,K,u,a,C),E=Z.join(""),he!==void 0&&(K=(T=he.trim()).length)===0&&(u=0,T="")),0<K)switch(u){case 115:E=E.replace(G,i);case 100:case 109:case 45:T=E+"{"+T+"}";break;case 107:E=E.replace(k,"$1 $2"),T=E+"{"+T+"}",T=W===1||W===2&&s("@"+T,3)?"@-webkit-"+T+"@"+T:"@"+T;break;default:T=E+T,C===112&&(T=(H+=T,""))}else T="";break;default:T=r(m,t(m,E,Se),T,C,a+1)}Ie+=T,T=Se=Z=B=z=0,E="",u=g.charCodeAt(++N);break;case 125:case 59:if(E=(0<Z?E.replace(R,""):E).trim(),1<(K=E.length))switch(B===0&&(z=E.charCodeAt(0),z===45||96<z&&123>z)&&(K=(E=E.replace(" ",":")).length),0<q&&(he=f(1,E,m,y,J,X,H.length,C,a,C))!==void 0&&(K=(E=he.trim()).length)===0&&(E="\0\0"),z=E.charCodeAt(0),u=E.charCodeAt(1),z){case 0:break;case 64:if(u===105||u===99){Me+=E+g.charAt(N);break}default:E.charCodeAt(K-1)!==58&&(H+=o(E,z,u,E.charCodeAt(2)))}Se=Z=B=z=0,E="",u=g.charCodeAt(++N)}}switch(u){case 13:case 10:d===47?d=0:1+z===0&&C!==107&&0<E.length&&(Z=1,E+="\0"),0<q*ae&&f(0,E,m,y,J,X,H.length,C,a,C),X=1,J++;break;case 59:case 125:if(d+O+Y+$===0){X++;break}default:switch(X++,se=g.charAt(N),u){case 9:case 32:if(O+$+d===0)switch(V){case 44:case 58:case 9:case 32:se="";break;default:u!==32&&(se=" ")}break;case 0:se="\\0";break;case 12:se="\\f";break;case 11:se="\\v";break;case 38:O+d+$===0&&(Z=Se=1,se="\f"+se);break;case 108:if(O+d+$+re===0&&0<B)switch(N-B){case 2:V===112&&g.charCodeAt(N-3)===58&&(re=V);case 8:h===111&&(re=h)}break;case 58:O+d+$===0&&(B=N);break;case 44:d+Y+O+$===0&&(Z=1,se+="\r");break;case 34:case 39:d===0&&(O=O===u?0:O===0?u:O);break;case 91:O+d+Y===0&&$++;break;case 93:O+d+Y===0&&$--;break;case 41:O+d+$===0&&Y--;break;case 40:if(O+d+$===0){if(z===0)switch(2*V+3*h){case 533:break;default:z=1}Y++}break;case 64:d+Y+O+$+B+T===0&&(T=1);break;case 42:case 47:if(!(0<O+$+Y))switch(d){case 0:switch(2*u+3*g.charCodeAt(N+1)){case 235:d=47;break;case 220:K=N,d=42}break;case 42:u===47&&V===42&&K+2!==N&&(g.charCodeAt(K+2)===33&&(H+=g.substring(K,N+1)),se="",d=0)}}d===0&&(E+=se)}h=V,V=u,N++}if(K=H.length,0<K){if(Z=m,0<q&&(he=f(2,H,Z,y,J,X,K,C,a,C),he!==void 0&&(H=he).length===0))return Me+H+Ie;if(H=Z.join(",")+"{"+H+"}",W*re!==0){switch(W!==2||s(H,2)||(re=0),re){case 111:H=H.replace(w,":-moz-$1")+H;break;case 112:H=H.replace(A,"::-webkit-input-$1")+H.replace(A,"::-moz-$1")+H.replace(A,":-ms-input-$1")+H}re=0}}return Me+H+Ie}function t(y,m,g){var C=m.trim().split(c);m=C;var a=C.length,$=y.length;switch($){case 0:case 1:var d=0;for(y=$===0?"":y[0]+" ";d<a;++d)m[d]=n(y,m[d],g).trim();break;default:var Y=d=0;for(m=[];d<a;++d)for(var O=0;O<$;++O)m[Y++]=n(y[O]+" ",C[d],g).trim()}return m}function n(y,m,g){var C=m.charCodeAt(0);switch(33>C&&(C=(m=m.trim()).charCodeAt(0)),C){case 38:return m.replace(P,"$1"+y.trim());case 58:return y.trim()+m.replace(P,"$1"+y.trim());default:if(0<1*g&&0<m.indexOf("\f"))return m.replace(P,(y.charCodeAt(0)===58?"":"$1")+y.trim())}return y+m}function o(y,m,g,C){var a=y+";",$=2*m+3*g+4*C;if($===944){y=a.indexOf(":",9)+1;var d=a.substring(y,a.length-1).trim();return d=a.substring(0,y).trim()+d+";",W===1||W===2&&s(d,1)?"-webkit-"+d+d:d}if(W===0||W===2&&!s(a,1))return a;switch($){case 1015:return a.charCodeAt(10)===97?"-webkit-"+a+a:a;case 951:return a.charCodeAt(3)===116?"-webkit-"+a+a:a;case 963:return a.charCodeAt(5)===110?"-webkit-"+a+a:a;case 1009:if(a.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(a.charCodeAt(8)===45)return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(le,"$1-webkit-$2")+a;break;case 932:if(a.charCodeAt(4)===45)switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(a.charCodeAt(8)!==99)break;return d=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+d+"-webkit-"+a+"-ms-flex-pack"+d+a;case 1005:return S.test(a)?a.replace(I,":-webkit-")+a.replace(I,":-moz-")+a:a;case 1e3:switch(d=a.substring(13).trim(),m=d.indexOf("-")+1,d.charCodeAt(0)+d.charCodeAt(m)){case 226:d=a.replace(l,"tb");break;case 232:d=a.replace(l,"tb-rl");break;case 220:d=a.replace(l,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+d+a;case 1017:if(a.indexOf("sticky",9)===-1)break;case 975:switch(m=(a=y).length-10,d=(a.charCodeAt(m)===33?a.substring(0,m):a).substring(y.indexOf(":",7)+1).trim(),$=d.charCodeAt(0)+(d.charCodeAt(7)|0)){case 203:if(111>d.charCodeAt(8))break;case 115:a=a.replace(d,"-webkit-"+d)+";"+a;break;case 207:case 102:a=a.replace(d,"-webkit-"+(102<$?"inline-":"")+"box")+";"+a.replace(d,"-webkit-"+d)+";"+a.replace(d,"-ms-"+d+"box")+";"+a}return a+";";case 938:if(a.charCodeAt(5)===45)switch(a.charCodeAt(6)){case 105:return d=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+d+"-ms-flex-"+d+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(Q,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(Q,"")+a}break;case 973:case 989:if(a.charCodeAt(3)!==45||a.charCodeAt(4)===122)break;case 931:case 953:if(oe.test(y)===!0)return(d=y.substring(y.indexOf(":")+1)).charCodeAt(0)===115?o(y.replace("stretch","fill-available"),m,g,C).replace(":fill-available",":stretch"):a.replace(d,"-webkit-"+d)+a.replace(d,"-moz-"+d.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(a.charCodeAt(5)===102?"-ms-"+a:"")+a,g+C===211&&a.charCodeAt(13)===105&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(x,"$1-webkit-$2")+a}return a}function s(y,m){var g=y.indexOf(m===1?":":"{"),C=y.substring(0,m!==3?g:10);return g=y.substring(g+1,y.length-1),ue(m!==2?C:C.replace(te,"$1"),g,m)}function i(y,m){var g=o(m,m.charCodeAt(0),m.charCodeAt(1),m.charCodeAt(2));return g!==m+";"?g.replace(ne," or ($1)").substring(4):"("+m+")"}function f(y,m,g,C,a,$,d,Y,O,z){for(var u=0,V=m,h;u<q;++u)switch(h=ee[u].call(v,y,V,g,C,a,$,d,Y,O,z)){case void 0:case!1:case!0:case null:break;default:V=h}if(V!==m)return V}function _(y){switch(y){case void 0:case null:q=ee.length=0;break;default:if(typeof y=="function")ee[q++]=y;else if(typeof y=="object")for(var m=0,g=y.length;m<g;++m)_(y[m]);else ae=!!y|0}return _}function p(y){return y=y.prefix,y!==void 0&&(ue=null,y?typeof y!="function"?W=1:(W=2,ue=y):W=0),p}function v(y,m){var g=y;if(33>g.charCodeAt(0)&&(g=g.trim()),pe=g,g=[pe],0<q){var C=f(-1,m,g,g,J,X,0,0,0,0);C!==void 0&&typeof C=="string"&&(m=C)}var a=r(fe,g,m,0,0);return 0<q&&(C=f(-2,a,g,g,J,X,a.length,0,0,0),C!==void 0&&(a=C)),pe="",re=0,X=J=1,a}var b=/^\0+/g,R=/[\0\r\f]/g,I=/: */g,S=/zoo|gra/,x=/([,: ])(transform)/g,c=/,\r+?/g,P=/([\t\r\n ])*\f?&/g,k=/@(k\w+)\s*(\S*)\s*/,A=/::(place)/g,w=/:(read-only)/g,l=/[svh]\w+-[tblr]{2}/,G=/\(\s*(.*)\s*\)/g,ne=/([\s\S]*?);/g,Q=/-self|flex-/g,te=/[^]*?(:[rp][el]a[\w-]+)[^]*/,oe=/stretch|:\s*\w+\-(?:conte|avail)/,le=/([^-])(image-set\()/,X=1,J=1,re=0,W=1,fe=[],ee=[],q=0,ue=null,ae=0,pe="";return v.use=_,v.set=p,e!==void 0&&p(e),v}var It={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Mt(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var jt=/^((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)-.*))$/,nt=Mt(function(e){return jt.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Ye={exports:{}},D={};/** @license React v16.13.1
|
|
18
|
+
* react-is.production.min.js
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the MIT license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*/var ot;function Dt(){if(ot)return D;ot=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,_=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,R=e?Symbol.for("react.suspense_list"):60120,I=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,c=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function A(l){if(typeof l=="object"&&l!==null){var G=l.$$typeof;switch(G){case r:switch(l=l.type,l){case _:case p:case n:case s:case o:case b:return l;default:switch(l=l&&l.$$typeof,l){case f:case v:case S:case I:case i:return l;default:return G}}case t:return G}}}function w(l){return A(l)===p}return D.AsyncMode=_,D.ConcurrentMode=p,D.ContextConsumer=f,D.ContextProvider=i,D.Element=r,D.ForwardRef=v,D.Fragment=n,D.Lazy=S,D.Memo=I,D.Portal=t,D.Profiler=s,D.StrictMode=o,D.Suspense=b,D.isAsyncMode=function(l){return w(l)||A(l)===_},D.isConcurrentMode=w,D.isContextConsumer=function(l){return A(l)===f},D.isContextProvider=function(l){return A(l)===i},D.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===r},D.isForwardRef=function(l){return A(l)===v},D.isFragment=function(l){return A(l)===n},D.isLazy=function(l){return A(l)===S},D.isMemo=function(l){return A(l)===I},D.isPortal=function(l){return A(l)===t},D.isProfiler=function(l){return A(l)===s},D.isStrictMode=function(l){return A(l)===o},D.isSuspense=function(l){return A(l)===b},D.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===n||l===p||l===s||l===o||l===b||l===R||typeof l=="object"&&l!==null&&(l.$$typeof===S||l.$$typeof===I||l.$$typeof===i||l.$$typeof===f||l.$$typeof===v||l.$$typeof===c||l.$$typeof===P||l.$$typeof===k||l.$$typeof===x)},D.typeOf=A,D}var F={};/** @license React v16.13.1
|
|
25
|
+
* react-is.development.js
|
|
26
|
+
*
|
|
27
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the MIT license found in the
|
|
30
|
+
* LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/var at;function Ft(){return at||(at=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,_=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,R=e?Symbol.for("react.suspense_list"):60120,I=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,c=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function A(u){return typeof u=="string"||typeof u=="function"||u===n||u===p||u===s||u===o||u===b||u===R||typeof u=="object"&&u!==null&&(u.$$typeof===S||u.$$typeof===I||u.$$typeof===i||u.$$typeof===f||u.$$typeof===v||u.$$typeof===c||u.$$typeof===P||u.$$typeof===k||u.$$typeof===x)}function w(u){if(typeof u=="object"&&u!==null){var V=u.$$typeof;switch(V){case r:var h=u.type;switch(h){case _:case p:case n:case s:case o:case b:return h;default:var T=h&&h.$$typeof;switch(T){case f:case v:case S:case I:case i:return T;default:return V}}case t:return V}}}var l=_,G=p,ne=f,Q=i,te=r,oe=v,le=n,X=S,J=I,re=t,W=s,fe=o,ee=b,q=!1;function ue(u){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ae(u)||w(u)===_}function ae(u){return w(u)===p}function pe(u){return w(u)===f}function y(u){return w(u)===i}function m(u){return typeof u=="object"&&u!==null&&u.$$typeof===r}function g(u){return w(u)===v}function C(u){return w(u)===n}function a(u){return w(u)===S}function $(u){return w(u)===I}function d(u){return w(u)===t}function Y(u){return w(u)===s}function O(u){return w(u)===o}function z(u){return w(u)===b}F.AsyncMode=l,F.ConcurrentMode=G,F.ContextConsumer=ne,F.ContextProvider=Q,F.Element=te,F.ForwardRef=oe,F.Fragment=le,F.Lazy=X,F.Memo=J,F.Portal=re,F.Profiler=W,F.StrictMode=fe,F.Suspense=ee,F.isAsyncMode=ue,F.isConcurrentMode=ae,F.isContextConsumer=pe,F.isContextProvider=y,F.isElement=m,F.isForwardRef=g,F.isFragment=C,F.isLazy=a,F.isMemo=$,F.isPortal=d,F.isProfiler=Y,F.isStrictMode=O,F.isSuspense=z,F.isValidElementType=A,F.typeOf=w}()),F}process.env.NODE_ENV==="production"?Ye.exports=Dt():Ye.exports=Ft();var Lt=Ye.exports,Ke=Lt,Yt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Bt={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qe={};Qe[Ke.ForwardRef]=Bt;Qe[Ke.Memo]=gt;function st(e){return Ke.isMemo(e)?gt:Qe[e.$$typeof]||Yt}var Ht=Object.defineProperty,Ut=Object.getOwnPropertyNames,it=Object.getOwnPropertySymbols,Gt=Object.getOwnPropertyDescriptor,Wt=Object.getPrototypeOf,ct=Object.prototype;function yt(e,r,t){if(typeof r!="string"){if(ct){var n=Wt(r);n&&n!==ct&&yt(e,n,t)}var o=Ut(r);it&&(o=o.concat(it(r)));for(var s=st(e),i=st(r),f=0;f<o.length;++f){var _=o[f];if(!Vt[_]&&!(t&&t[_])&&!(i&&i[_])&&!(s&&s[_])){var p=Gt(r,_);try{Ht(e,_,p)}catch{}}}}return e}var qt=yt;const Xt=zt(qt);function _e(){return(_e=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var lt=function(e,r){for(var t=[e[0]],n=0,o=r.length;n<o;n+=1)t.push(r[n],e[n+1]);return t},Ve=function(e){return e!==null&&typeof e=="object"&&(e.toString?e.toString():Object.prototype.toString.call(e))==="[object Object]"&&!Ze.typeOf(e)},Oe=Object.freeze([]),me=Object.freeze({});function Ee(e){return typeof e=="function"}function Be(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Je(e){return e&&typeof e.styledComponentId=="string"}var ve=typeof process<"u"&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",et=typeof window<"u"&&"HTMLElement"in window,Zt=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),Kt=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
32
|
+
|
|
33
|
+
`,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.
|
|
34
|
+
|
|
35
|
+
- Are you trying to reuse it across renders?
|
|
36
|
+
- Are you accidentally calling collectStyles twice?
|
|
37
|
+
|
|
38
|
+
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
39
|
+
|
|
40
|
+
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
41
|
+
|
|
42
|
+
- Does this error occur on the client and is your target falsy?
|
|
43
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
44
|
+
|
|
45
|
+
`,5:`The clone method cannot be used on the client!
|
|
46
|
+
|
|
47
|
+
- Are you running in a client-like environment on the server?
|
|
48
|
+
- Are you trying to run SSR on the client?
|
|
49
|
+
|
|
50
|
+
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
51
|
+
|
|
52
|
+
- Are you using a custom target that isn't mounted?
|
|
53
|
+
- Does your document not have a valid head element?
|
|
54
|
+
- Have you accidentally removed a style tag manually?
|
|
55
|
+
|
|
56
|
+
`,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.
|
|
57
|
+
|
|
58
|
+
`,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
|
|
59
|
+
|
|
60
|
+
`,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.
|
|
61
|
+
|
|
62
|
+
`,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.
|
|
63
|
+
|
|
64
|
+
`,14:`ThemeProvider: "theme" prop is required.
|
|
65
|
+
|
|
66
|
+
`,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.
|
|
67
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
68
|
+
as for instance in your render method then you may be running into this limitation.
|
|
69
|
+
|
|
70
|
+
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
71
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
72
|
+
`}:{};function Qt(){for(var e=arguments.length<=0?void 0:arguments[0],r=[],t=1,n=arguments.length;t<n;t+=1)r.push(t<0||arguments.length<=t?void 0:arguments[t]);return r.forEach(function(o){e=e.replace(/%[a-z]/,o)}),e}function xe(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];throw process.env.NODE_ENV==="production"?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(t.length>0?" Args: "+t.join(", "):"")):new Error(Qt.apply(void 0,[Kt[e]].concat(t)).trim())}var Jt=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}var r=e.prototype;return r.indexOfGroup=function(t){for(var n=0,o=0;o<t;o++)n+=this.groupSizes[o];return n},r.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var o=this.groupSizes,s=o.length,i=s;t>=i;)(i<<=1)<0&&xe(16,""+t);this.groupSizes=new Uint32Array(i),this.groupSizes.set(o),this.length=i;for(var f=s;f<i;f++)this.groupSizes[f]=0}for(var _=this.indexOfGroup(t+1),p=0,v=n.length;p<v;p++)this.tag.insertRule(_,n[p])&&(this.groupSizes[t]++,_++)},r.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],o=this.indexOfGroup(t),s=o+n;this.groupSizes[t]=0;for(var i=o;i<s;i++)this.tag.deleteRule(o)}},r.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var o=this.groupSizes[t],s=this.indexOfGroup(t),i=s+o,f=s;f<i;f++)n+=this.tag.getRule(f)+`/*!sc*/
|
|
73
|
+
`;return n},e}(),$e=new Map,Ne=new Map,Ce=1,Te=function(e){if($e.has(e))return $e.get(e);for(;Ne.has(Ce);)Ce++;var r=Ce++;return process.env.NODE_ENV!=="production"&&((0|r)<0||r>1<<30)&&xe(16,""+r),$e.set(e,r),Ne.set(r,e),r},er=function(e){return Ne.get(e)},tr=function(e,r){r>=Ce&&(Ce=r+1),$e.set(e,r),Ne.set(r,e)},rr="style["+ve+'][data-styled-version="5.3.6"]',nr=new RegExp("^"+ve+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),or=function(e,r,t){for(var n,o=t.split(","),s=0,i=o.length;s<i;s++)(n=o[s])&&e.registerName(r,n)},ar=function(e,r){for(var t=(r.textContent||"").split(`/*!sc*/
|
|
74
|
+
`),n=[],o=0,s=t.length;o<s;o++){var i=t[o].trim();if(i){var f=i.match(nr);if(f){var _=0|parseInt(f[1],10),p=f[2];_!==0&&(tr(p,_),or(e,p,f[3]),e.getTag().insertRules(_,n)),n.length=0}else n.push(i)}}},sr=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},vt=function(e){var r=document.head,t=e||r,n=document.createElement("style"),o=function(f){for(var _=f.childNodes,p=_.length;p>=0;p--){var v=_[p];if(v&&v.nodeType===1&&v.hasAttribute(ve))return v}}(t),s=o!==void 0?o.nextSibling:null;n.setAttribute(ve,"active"),n.setAttribute("data-styled-version","5.3.6");var i=sr();return i&&n.setAttribute("nonce",i),t.insertBefore(n,s),n},ir=function(){function e(t){var n=this.element=vt(t);n.appendChild(document.createTextNode("")),this.sheet=function(o){if(o.sheet)return o.sheet;for(var s=document.styleSheets,i=0,f=s.length;i<f;i++){var _=s[i];if(_.ownerNode===o)return _}xe(17)}(n),this.length=0}var r=e.prototype;return r.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},r.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},r.getRule=function(t){var n=this.sheet.cssRules[t];return n!==void 0&&typeof n.cssText=="string"?n.cssText:""},e}(),cr=function(){function e(t){var n=this.element=vt(t);this.nodes=n.childNodes,this.length=0}var r=e.prototype;return r.insertRule=function(t,n){if(t<=this.length&&t>=0){var o=document.createTextNode(n),s=this.nodes[t];return this.element.insertBefore(o,s||null),this.length++,!0}return!1},r.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},r.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),lr=function(){function e(t){this.rules=[],this.length=0}var r=e.prototype;return r.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},r.deleteRule=function(t){this.rules.splice(t,1),this.length--},r.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),ut=et,ur={isServer:!et,useCSSOMInjection:!Zt},bt=function(){function e(t,n,o){t===void 0&&(t=me),n===void 0&&(n={}),this.options=_e({},ur,{},t),this.gs=n,this.names=new Map(o),this.server=!!t.isServer,!this.server&&et&&ut&&(ut=!1,function(s){for(var i=document.querySelectorAll(rr),f=0,_=i.length;f<_;f++){var p=i[f];p&&p.getAttribute(ve)!=="active"&&(ar(s,p),p.parentNode&&p.parentNode.removeChild(p))}}(this))}e.registerId=function(t){return Te(t)};var r=e.prototype;return r.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(_e({},this.options,{},t),this.gs,n&&this.names||void 0)},r.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},r.getTag=function(){return this.tag||(this.tag=(o=(n=this.options).isServer,s=n.useCSSOMInjection,i=n.target,t=o?new lr(i):s?new ir(i):new cr(i),new Jt(t)));var t,n,o,s,i},r.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},r.registerName=function(t,n){if(Te(t),this.names.has(t))this.names.get(t).add(n);else{var o=new Set;o.add(n),this.names.set(t,o)}},r.insertRules=function(t,n,o){this.registerName(t,n),this.getTag().insertRules(Te(t),o)},r.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},r.clearRules=function(t){this.getTag().clearGroup(Te(t)),this.clearNames(t)},r.clearTag=function(){this.tag=void 0},r.toString=function(){return function(t){for(var n=t.getTag(),o=n.length,s="",i=0;i<o;i++){var f=er(i);if(f!==void 0){var _=t.names.get(f),p=n.getGroup(i);if(_&&p&&_.size){var v=ve+".g"+i+'[id="'+f+'"]',b="";_!==void 0&&_.forEach(function(R){R.length>0&&(b+=R+",")}),s+=""+p+v+'{content:"'+b+`"}/*!sc*/
|
|
75
|
+
`}}}return s}(this)},e}(),dr=/(a)(d)/gi,dt=function(e){return String.fromCharCode(e+(e>25?39:97))};function He(e){var r,t="";for(r=Math.abs(e);r>52;r=r/52|0)t=dt(r%52)+t;return(dt(r%52)+t).replace(dr,"$1-$2")}var ge=function(e,r){for(var t=r.length;t;)e=33*e^r.charCodeAt(--t);return e},xt=function(e){return ge(5381,e)};function fr(e){for(var r=0;r<e.length;r+=1){var t=e[r];if(Ee(t)&&!Je(t))return!1}return!0}var pr=xt("5.3.6"),_r=function(){function e(r,t,n){this.rules=r,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&fr(r),this.componentId=t,this.baseHash=ge(pr,t),this.baseStyle=n,bt.registerId(t)}return e.prototype.generateAndInjectStyles=function(r,t,n){var o=this.componentId,s=[];if(this.baseStyle&&s.push(this.baseStyle.generateAndInjectStyles(r,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(o,this.staticRulesId))s.push(this.staticRulesId);else{var i=be(this.rules,r,t,n).join(""),f=He(ge(this.baseHash,i)>>>0);if(!t.hasNameForId(o,f)){var _=n(i,"."+f,void 0,o);t.insertRules(o,f,_)}s.push(f),this.staticRulesId=f}else{for(var p=this.rules.length,v=ge(this.baseHash,n.hash),b="",R=0;R<p;R++){var I=this.rules[R];if(typeof I=="string")b+=I,process.env.NODE_ENV!=="production"&&(v=ge(v,I+R));else if(I){var S=be(I,r,t,n),x=Array.isArray(S)?S.join(""):S;v=ge(v,x+R),b+=x}}if(b){var c=He(v>>>0);if(!t.hasNameForId(o,c)){var P=n(b,"."+c,void 0,o);t.insertRules(o,c,P)}s.push(c)}}return s.join(" ")},e}(),hr=/^\s*\/\/.*$/gm,mr=[":","[",".","#"];function gr(e){var r,t,n,o,s=e===void 0?me:e,i=s.options,f=i===void 0?me:i,_=s.plugins,p=_===void 0?Oe:_,v=new Nt(f),b=[],R=function(x){function c(P){if(P)try{x(P+"}")}catch{}}return function(P,k,A,w,l,G,ne,Q,te,oe){switch(P){case 1:if(te===0&&k.charCodeAt(0)===64)return x(k+";"),"";break;case 2:if(Q===0)return k+"/*|*/";break;case 3:switch(Q){case 102:case 112:return x(A[0]+k),"";default:return k+(oe===0?"/*|*/":"")}case-2:k.split("/*|*/}").forEach(c)}}}(function(x){b.push(x)}),I=function(x,c,P){return c===0&&mr.indexOf(P[t.length])!==-1||P.match(o)?x:"."+r};function S(x,c,P,k){k===void 0&&(k="&");var A=x.replace(hr,""),w=c&&P?P+" "+c+" { "+A+" }":A;return r=k,t=c,n=new RegExp("\\"+t+"\\b","g"),o=new RegExp("(\\"+t+"\\b){2,}"),v(P||!c?"":c,w)}return v.use([].concat(p,[function(x,c,P){x===2&&P.length&&P[0].lastIndexOf(t)>0&&(P[0]=P[0].replace(n,I))},R,function(x){if(x===-2){var c=b;return b=[],c}}])),S.hash=p.length?p.reduce(function(x,c){return c.name||xe(15),ge(x,c.name)},5381).toString():"",S}var St=ie.createContext();St.Consumer;var wt=ie.createContext(),yr=(wt.Consumer,new bt),Ue=gr();function vr(){return ie.useContext(St)||yr}function br(){return ie.useContext(wt)||Ue}var Ct=function(){function e(r,t){var n=this;this.inject=function(o,s){s===void 0&&(s=Ue);var i=n.name+s.hash;o.hasNameForId(n.id,i)||o.insertRules(n.id,i,s(n.rules,i,"@keyframes"))},this.toString=function(){return xe(12,String(n.name))},this.name=r,this.id="sc-keyframes-"+r,this.rules=t}return e.prototype.getName=function(r){return r===void 0&&(r=Ue),this.name+r.hash},e}(),xr=/([A-Z])/,Sr=/([A-Z])/g,wr=/^ms-/,Cr=function(e){return"-"+e.toLowerCase()};function ft(e){return xr.test(e)?e.replace(Sr,Cr).replace(wr,"-ms-"):e}var pt=function(e){return e==null||e===!1||e===""};function be(e,r,t,n){if(Array.isArray(e)){for(var o,s=[],i=0,f=e.length;i<f;i+=1)(o=be(e[i],r,t,n))!==""&&(Array.isArray(o)?s.push.apply(s,o):s.push(o));return s}if(pt(e))return"";if(Je(e))return"."+e.styledComponentId;if(Ee(e)){if(typeof(p=e)!="function"||p.prototype&&p.prototype.isReactComponent||!r)return e;var _=e(r);return process.env.NODE_ENV!=="production"&&Ze.isElement(_)&&console.warn(Be(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."),be(_,r,t,n)}var p;return e instanceof Ct?t?(e.inject(t,n),e.getName(n)):e:Ve(e)?function v(b,R){var I,S,x=[];for(var c in b)b.hasOwnProperty(c)&&!pt(b[c])&&(Array.isArray(b[c])&&b[c].isCss||Ee(b[c])?x.push(ft(c)+":",b[c],";"):Ve(b[c])?x.push.apply(x,v(b[c],c)):x.push(ft(c)+": "+(I=c,(S=b[c])==null||typeof S=="boolean"||S===""?"":typeof S!="number"||S===0||I in It?String(S).trim():S+"px")+";"));return R?[R+" {"].concat(x,["}"]):x}(e):e.toString()}var _t=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function de(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return Ee(e)||Ve(e)?_t(be(lt(Oe,[e].concat(t)))):t.length===0&&e.length===1&&typeof e[0]=="string"?e:_t(be(lt(e,t)))}var ht=/invalid hook call/i,Re=new Set,Er=function(e,r){if(process.env.NODE_ENV!=="production"){var t="The component "+e+(r?' with the id of "'+r+'"':"")+` has been created dynamically.
|
|
76
|
+
You may see this warning because you've called styled inside another component.
|
|
77
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`,n=console.error;try{var o=!0;console.error=function(s){if(ht.test(s))o=!1,Re.delete(t);else{for(var i=arguments.length,f=new Array(i>1?i-1:0),_=1;_<i;_++)f[_-1]=arguments[_];n.apply(void 0,[s].concat(f))}},ie.useRef(),o&&!Re.has(t)&&(console.warn(t),Re.add(t))}catch(s){ht.test(s.message)&&Re.delete(t)}finally{console.error=n}}},kr=function(e,r,t){return t===void 0&&(t=me),e.theme!==t.theme&&e.theme||r||t.theme},Ar=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Tr=/(^-|-$)/g;function je(e){return e.replace(Ar,"-").replace(Tr,"")}var Et=function(e){return He(xt(e)>>>0)};function Pe(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Ge=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},Rr=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function Pr(e,r,t){var n=e[t];Ge(r)&&Ge(n)?kt(n,r):e[t]=r}function kt(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];for(var o=0,s=t;o<s.length;o++){var i=s[o];if(Ge(i))for(var f in i)Rr(f)&&Pr(e,i[f],f)}return e}var At=ie.createContext();At.Consumer;var De={};function Tt(e,r,t){var n=Je(e),o=!Pe(e),s=r.attrs,i=s===void 0?Oe:s,f=r.componentId,_=f===void 0?function(k,A){var w=typeof k!="string"?"sc":je(k);De[w]=(De[w]||0)+1;var l=w+"-"+Et("5.3.6"+w+De[w]);return A?A+"-"+l:l}(r.displayName,r.parentComponentId):f,p=r.displayName,v=p===void 0?function(k){return Pe(k)?"styled."+k:"Styled("+Be(k)+")"}(e):p,b=r.displayName&&r.componentId?je(r.displayName)+"-"+r.componentId:r.componentId||_,R=n&&e.attrs?Array.prototype.concat(e.attrs,i).filter(Boolean):i,I=r.shouldForwardProp;n&&e.shouldForwardProp&&(I=r.shouldForwardProp?function(k,A,w){return e.shouldForwardProp(k,A,w)&&r.shouldForwardProp(k,A,w)}:e.shouldForwardProp);var S,x=new _r(t,b,n?e.componentStyle:void 0),c=x.isStatic&&i.length===0,P=function(k,A){return function(w,l,G,ne){var Q=w.attrs,te=w.componentStyle,oe=w.defaultProps,le=w.foldedComponentIds,X=w.shouldForwardProp,J=w.styledComponentId,re=w.target;process.env.NODE_ENV!=="production"&&ie.useDebugValue(J);var W=function(C,a,$){C===void 0&&(C=me);var d=_e({},a,{theme:C}),Y={};return $.forEach(function(O){var z,u,V,h=O;for(z in Ee(h)&&(h=h(d)),h)d[z]=Y[z]=z==="className"?(u=Y[z],V=h[z],u&&V?u+" "+V:u||V):h[z]}),[d,Y]}(kr(l,ie.useContext(At),oe)||me,l,Q),fe=W[0],ee=W[1],q=function(C,a,$,d){var Y=vr(),O=br(),z=a?C.generateAndInjectStyles(me,Y,O):C.generateAndInjectStyles($,Y,O);return process.env.NODE_ENV!=="production"&&ie.useDebugValue(z),process.env.NODE_ENV!=="production"&&!a&&d&&d(z),z}(te,ne,fe,process.env.NODE_ENV!=="production"?w.warnTooManyClasses:void 0),ue=G,ae=ee.$as||l.$as||ee.as||l.as||re,pe=Pe(ae),y=ee!==l?_e({},l,{},ee):l,m={};for(var g in y)g[0]!=="$"&&g!=="as"&&(g==="forwardedAs"?m.as=y[g]:(X?X(g,nt,ae):!pe||nt(g))&&(m[g]=y[g]));return l.style&&ee.style!==l.style&&(m.style=_e({},l.style,{},ee.style)),m.className=Array.prototype.concat(le,J,q!==J?q:null,l.className,ee.className).filter(Boolean).join(" "),m.ref=ue,ie.createElement(ae,m)}(S,k,A,c)};return P.displayName=v,(S=ie.forwardRef(P)).attrs=R,S.componentStyle=x,S.displayName=v,S.shouldForwardProp=I,S.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):Oe,S.styledComponentId=b,S.target=n?e.target:e,S.withComponent=function(k){var A=r.componentId,w=function(G,ne){if(G==null)return{};var Q,te,oe={},le=Object.keys(G);for(te=0;te<le.length;te++)Q=le[te],ne.indexOf(Q)>=0||(oe[Q]=G[Q]);return oe}(r,["componentId"]),l=A&&A+"-"+(Pe(k)?k:je(Be(k)));return Tt(k,_e({},w,{attrs:R,componentId:l}),t)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=n?kt({},e.defaultProps,k):k}}),process.env.NODE_ENV!=="production"&&(Er(v,b),S.warnTooManyClasses=function(k,A){var w={},l=!1;return function(G){if(!l&&(w[G]=!0,Object.keys(w).length>=200)){var ne=A?' with the id of "'+A+'"':"";console.warn("Over 200 classes were generated for component "+k+ne+`.
|
|
78
|
+
Consider using the attrs method, together with a style object for frequently changed styles.
|
|
79
|
+
Example:
|
|
80
|
+
const Component = styled.div.attrs(props => ({
|
|
81
|
+
style: {
|
|
82
|
+
background: props.background,
|
|
83
|
+
},
|
|
84
|
+
}))\`width: 100%;\`
|
|
85
|
+
|
|
86
|
+
<Component />`),l=!0,w={}}}}(v,b)),S.toString=function(){return"."+S.styledComponentId},o&&Xt(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var We=function(e){return function r(t,n,o){if(o===void 0&&(o=me),!Ze.isValidElementType(n))return xe(1,String(n));var s=function(){return t(n,o,de.apply(void 0,arguments))};return s.withConfig=function(i){return r(t,n,_e({},o,{},i))},s.attrs=function(i){return r(t,n,_e({},o,{attrs:Array.prototype.concat(o.attrs,i).filter(Boolean)}))},s}(Tt,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){We[e]=We(e)});function Rt(e){process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var o=de.apply(void 0,[e].concat(t)).join(""),s=Et(o);return new Ct(s,o)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
87
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
88
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,window["__styled-components-init__"]===1&&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.
|
|
89
|
+
|
|
90
|
+
See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]+=1);const U=We,zr=U.span`
|
|
91
|
+
width: 1px;
|
|
92
|
+
height: 1px;
|
|
93
|
+
margin: -1px;
|
|
94
|
+
padding: 0;
|
|
95
|
+
position: absolute;
|
|
96
|
+
top: 0;
|
|
97
|
+
left: 0;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
clip: rect(0 0 0 0);
|
|
100
|
+
border: 0;
|
|
101
|
+
opacity: 0;
|
|
102
|
+
`,$r=({children:e})=>L.jsx(zr,{children:e}),ce={add_on:"add_on",assigned:"assigned",caution:"caution",destroy:"destroy",info:"info",success:"success",upgrade:"upgrade"},ke={small:"small",medium:"medium"},Or=e=>{switch(e){case ce.info:return"var(--cc_color_background_2)";case ce.upgrade:return"var(--cc_color_brand_upgrade_alpha_20)";case ce.assigned:return"var(--cc_color_utility_assigned_alpha_20)";case ce.add_on:return"var(--cc_color_brand_add_on_alpha_20)";default:return`var(--cc_color_utility_${e}_alpha_20)`}},Nr=e=>{switch(e){case ce.info:return"var(--cc_color_border_default)";case ce.upgrade:return"var(--cc_color_brand_upgrade_alpha_60)";case ce.assigned:return"var(--cc_color_utility_assigned_alpha_60)";case ce.add_on:return"var(--cc_color_brand_add_on_alpha_60)";default:return`var(--cc_color_utility_${e}_alpha_60)`}},Ir=U.span`
|
|
103
|
+
display: inline-flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
gap: var(--cc_size_spacing_xs);
|
|
107
|
+
background-color: ${e=>Or(e.color||ce.info)};
|
|
108
|
+
border-radius: var(--cc_size_border_radius_pill);
|
|
109
|
+
border: var(--cc_size_border_width_s) solid
|
|
110
|
+
${e=>Nr(e.color||ce.info)};
|
|
111
|
+
padding: ${e=>e.size===ke.small?"6px":"var(--cc_size_spacing_s)"};
|
|
112
|
+
height: ${e=>e.size===ke.small?"var(--cc_size_avatar_xs)":"var(--cc_size_avatar_s)"};
|
|
113
|
+
line-height: 1.5;
|
|
114
|
+
`,Mr=U.i`
|
|
115
|
+
color: var(--cc_color_text_default);
|
|
116
|
+
font-size: ${e=>e.size===ke.small?"11px":"14px"};
|
|
117
|
+
line-height: 0;
|
|
118
|
+
`,jr=U.span`
|
|
119
|
+
color: var(--cc_color_text_default);
|
|
120
|
+
font-family: 'Averta', system-ui, sans-serif;
|
|
121
|
+
font-weight: 600;
|
|
122
|
+
font-size: ${e=>e.size===ke.small?"9px":"10px"};
|
|
123
|
+
text-transform: uppercase;
|
|
124
|
+
white-space: nowrap;
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
text-overflow: ellipsis;
|
|
127
|
+
letter-spacing: 0.25px;
|
|
128
|
+
|
|
129
|
+
&:empty {
|
|
130
|
+
display: none;
|
|
131
|
+
}
|
|
132
|
+
`;function Dr({children:e,color:r=ce.info,className:t,iconName:n,size:o=ke.medium,style:s,testId:i}){return L.jsxs(Ir,{size:o,className:t,color:r,style:s,"data-testid":i,children:[n?L.jsx(Mr,{size:o,className:`mdi mdi-${n}`}):null,L.jsx(jr,{size:o,children:e})]})}const Fr="#0967d2",Lr="#142334",Yr="#ffd000",Vr="#0ce8d6",Br="#7949d1",Hr="#bca4e8",Ur="#ef4e4e",Gr="#f48585",Wr="#ffd000",qr="#12a537",Xr="#3ebd93",Zr="#42608a",Kr="#e76119",Qr="#ffffff",Jr="#142334",en="#f5f7fa",tn="#192d43",rn="#ebeff5",nn="#1f3751",on="rgba(31, 55, 81, 0.75)",an="#142334",sn="#ffffff",cn="#4d5a68",ln="#c3c8cc",un="#8191a2",dn="#a0a7af",fn="#0967d2",pn="#6fabf1",_n="#1f3751",hn="#ffffff",mn="#ebeff5",gn="#2a415a",yn="#ef4e4e",vn="#f48585",bn="#12a537",xn="#3ebd93",Sn="#e5f1ff",wn="rgba(255, 255, 255, 0.1)",Cn="#ffffff",En="#142334",kn="#ffffff",An="#142334",Tn="#4d5a68",Rn="#c3c8cc",Pn="#ffffff",zn="#142334",$n="#ffffff",On="#142334",Nn="#0967d2",In="#6fabf1",Mn="#142334",jn="#ffffff",Dn="#4d5a68",Fn="#c3c8cc",Ln="rgba(20, 35, 52, 0.12)",Yn="rgba(255, 255, 255, 0.15)",Vn="rgba(20, 35, 52, 0.2)",Bn="rgba(255, 255, 255, 0.22)",Hn="#0967d2",Un="#6fabf1",Gn="rgba(20, 35, 52, 0.13)",Wn="rgba(6, 10, 16, 0.5)",qn="rgba(20, 35, 52, 0.13)",Xn="rgba(6, 10, 16, 0.6)",Zn="rgba(20, 35, 52, 0.2)",Kn="rgba(6, 10, 16, 0.7)",Qn="#31a03c",Jn="#4191ed",eo="#a227c5",to="#354b62",ro="#ffd000",no="#e76119",oo="#c73732",ao="#828c95",so="#4d5a68",io="#a227c5",co="#e76119",lo="#31a03c",uo="#4191ed",fo="#c73732",po="#d28e09",_o="#354b62",ho="#413ecf",mo="#d63baa",go="#745138",yo="#ffd000",vo=2,bo=4,xo=8,So=16,wo=24,Co=32,Eo=48,ko=1,Ao=2,To=4,Ro=8,Po=2,zo=4,$o=8,Oo=16,No=24,Io=1e3,Mo=10,jo=12,Do=14,Fo=16,Lo=20,Yo=24,Vo=32,Bo=42,Ho=16,Uo=24,Go=32,Wo=40,qo=3,Xo=1,Zo=6,Ko=2,Qo=12,Jo=4,ea=Object.freeze(Object.defineProperty({__proto__:null,color_background_1_de:Jr,color_background_1_le:Qr,color_background_2_de:tn,color_background_2_le:en,color_background_3_de:nn,color_background_3_le:rn,color_background_backdrop:on,color_border_default_de:Yn,color_border_default_le:Ln,color_border_input_active_de:Un,color_border_input_active_le:Hn,color_border_input_inactive_de:Bn,color_border_input_inactive_le:Vn,color_brand_accent:Yr,color_brand_add_on_de:Hr,color_brand_add_on_le:Br,color_brand_primary:Fr,color_brand_secondary:Lr,color_brand_upgrade:Vr,color_button_background_destroy_de:vn,color_button_background_destroy_le:yn,color_button_background_primary_de:pn,color_button_background_primary_le:fn,color_button_background_secondary_de:hn,color_button_background_secondary_le:_n,color_button_background_subtle_de:gn,color_button_background_subtle_le:mn,color_button_background_success_de:xn,color_button_background_success_le:bn,color_button_background_tint_de:wn,color_button_background_tint_le:Sn,color_button_text_destroy_de:zn,color_button_text_destroy_le:Pn,color_button_text_primary_de:En,color_button_text_primary_le:Cn,color_button_text_secondary_de:An,color_button_text_secondary_le:kn,color_button_text_subtle_de:Rn,color_button_text_subtle_le:Tn,color_button_text_success_de:On,color_button_text_success_le:$n,color_collab_blue:uo,color_collab_brown:go,color_collab_green:lo,color_collab_magenta:mo,color_collab_navy:_o,color_collab_orange:co,color_collab_owner:yo,color_collab_plum:ho,color_collab_purple:io,color_collab_red:fo,color_collab_yellow:po,color_depth_1_de:Wn,color_depth_1_le:Gn,color_depth_2_de:Xn,color_depth_2_le:qn,color_depth_3_de:Kn,color_depth_3_le:Zn,color_label_blue:Jn,color_label_dark_gray:so,color_label_green:Qn,color_label_light_gray:ao,color_label_navy:to,color_label_orange:no,color_label_purple:eo,color_label_red:oo,color_label_yellow:ro,color_link_primary_de:In,color_link_primary_le:Nn,color_link_secondary_de:jn,color_link_secondary_le:Mn,color_link_subtle_de:Fn,color_link_subtle_le:Dn,color_text_default_de:sn,color_text_default_le:an,color_text_nonessential_de:dn,color_text_nonessential_le:un,color_text_subtle_de:ln,color_text_subtle_le:cn,color_utility_assigned:Kr,color_utility_caution:Wr,color_utility_destroy_de:Gr,color_utility_destroy_le:Ur,color_utility_info:Zr,color_utility_success_de:Xr,color_utility_success_le:qr,size_avatar_l:Wo,size_avatar_m:Go,size_avatar_s:Uo,size_avatar_xs:Ho,size_border_radius_l:$o,size_border_radius_m:zo,size_border_radius_pill:Io,size_border_radius_s:Po,size_border_radius_xl:Oo,size_border_radius_xxl:No,size_border_width_l:To,size_border_width_m:Ao,size_border_width_s:ko,size_border_width_xl:Ro,size_depth_1_blur:qo,size_depth_1_y:Xo,size_depth_2_blur:Zo,size_depth_2_y:Ko,size_depth_3_blur:Qo,size_depth_3_y:Jo,size_spacing_l:wo,size_spacing_m:So,size_spacing_s:xo,size_spacing_xl:Co,size_spacing_xs:bo,size_spacing_xxl:Eo,size_spacing_xxs:vo,size_text_l:Lo,size_text_m:Fo,size_text_s:Do,size_text_xl:Yo,size_text_xs:jo,size_text_xxl:Vo,size_text_xxs:Mo,size_text_xxxl:Bo},Symbol.toStringTag,{value:"Module"})),ze={...ea},ta=`font-family: system-ui, -apple-system, BlinkMacSystemFont,
|
|
133
|
+
'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;`,ra=`font-family: 'Averta', system-ui, -apple-system, BlinkMacSystemFont,
|
|
134
|
+
'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;`,na=de`
|
|
135
|
+
outline: var(--cc_size_border_width_m) solid
|
|
136
|
+
var(--cc_color_border_input_active);
|
|
137
|
+
outline-offset: var(--cc_size_spacing_xxs);
|
|
138
|
+
`,oa=({disabled:e=!1,readOnly:r=!1})=>`
|
|
139
|
+
all: initial;
|
|
140
|
+
box-sizing: border-box;
|
|
141
|
+
font-family: inherit;
|
|
142
|
+
font-weight: 700;
|
|
143
|
+
max-width: 100%;
|
|
144
|
+
overflow: visible;
|
|
145
|
+
display: inline-block;
|
|
146
|
+
vertical-align: middle;
|
|
147
|
+
text-align: center;
|
|
148
|
+
background: none;
|
|
149
|
+
position: relative;
|
|
150
|
+
appearance: none;
|
|
151
|
+
text-decoration: none;
|
|
152
|
+
touch-action: manipulation;
|
|
153
|
+
cursor: pointer;
|
|
154
|
+
user-select: none;
|
|
155
|
+
-webkit-font-smoothing: antialiased;
|
|
156
|
+
-moz-osx-font-smoothing: grayscale;
|
|
157
|
+
|
|
158
|
+
&:focus-visible {
|
|
159
|
+
${na}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
${e||r?de`
|
|
163
|
+
pointer-events: none;
|
|
164
|
+
`:""}
|
|
165
|
+
${e?de`
|
|
166
|
+
opacity: 0.5;
|
|
167
|
+
cursor: not-allowed;
|
|
168
|
+
`:""}
|
|
169
|
+
`,aa={small:"var(--cc_size_avatar_m)",medium:"var(--cc_size_avatar_l)",large:"48px"};de`
|
|
170
|
+
margin: -1px;
|
|
171
|
+
padding: 0;
|
|
172
|
+
width: 1px;
|
|
173
|
+
height: 1px;
|
|
174
|
+
overflow: hidden;
|
|
175
|
+
clip: rect(0 0 0 0);
|
|
176
|
+
clip: rect(0, 0, 0, 0);
|
|
177
|
+
position: absolute;
|
|
178
|
+
`;const sa=e=>{const r=["xxl","xl","l","m","s","xs","xxs"],t=e.split(" "),n=[];return t.forEach(o=>{r.includes(o)?n.push(`var(--cc_size_spacing_${o})`):n.push("0")}),n.join(" ")},ia={large:ze.size_avatar_l,medium:ze.size_avatar_m,small:ze.size_avatar_s,xsmall:ze.size_avatar_xs},ca=Rt`
|
|
179
|
+
to {
|
|
180
|
+
stroke-dashoffset: 200;
|
|
181
|
+
}
|
|
182
|
+
`,la=Rt`
|
|
183
|
+
to {
|
|
184
|
+
transform: rotate(1turn);
|
|
185
|
+
}
|
|
186
|
+
`,ua=U.span`
|
|
187
|
+
display: inline-flex;
|
|
188
|
+
flex-direction: ${e=>e.layout==="vertical"?"column":"row"};
|
|
189
|
+
align-items: center;
|
|
190
|
+
`,da=U.span`
|
|
191
|
+
font-family: system-ui, sans-serif;
|
|
192
|
+
font-weight: 400;
|
|
193
|
+
font-size: ${e=>e.labelFontSize}px;
|
|
194
|
+
color: var(--cc_color_text_nonessential);
|
|
195
|
+
margin-${e=>e.layout==="vertical"?"block-start":"inline-start"}: 12px;
|
|
196
|
+
`,fa=U.span`
|
|
197
|
+
display: block;
|
|
198
|
+
position: relative;
|
|
199
|
+
width: ${e=>e.size}px;
|
|
200
|
+
height: ${e=>e.size}px;
|
|
201
|
+
`,pa=U.svg`
|
|
202
|
+
position: absolute;
|
|
203
|
+
top: 0;
|
|
204
|
+
bottom: 0;
|
|
205
|
+
left: 0;
|
|
206
|
+
right: 0;
|
|
207
|
+
transform: rotate(0turn);
|
|
208
|
+
animation-name: ${la};
|
|
209
|
+
animation-duration: 0.75s;
|
|
210
|
+
animation-iteration-count: infinite;
|
|
211
|
+
animation-timing-function: linear;
|
|
212
|
+
`,_a=U.circle`
|
|
213
|
+
stroke: ${e=>e.trackColor};
|
|
214
|
+
fill: transparent;
|
|
215
|
+
stroke-width: 28;
|
|
216
|
+
`,ha=U.circle`
|
|
217
|
+
stroke: ${e=>e.meterColor};
|
|
218
|
+
stroke-width: 28;
|
|
219
|
+
fill: transparent;
|
|
220
|
+
stroke-dasharray: 540;
|
|
221
|
+
stroke-dashoffset: 506;
|
|
222
|
+
animation-name: ${ca};
|
|
223
|
+
animation-duration: 1s;
|
|
224
|
+
animation-iteration-count: infinite;
|
|
225
|
+
animation-direction: alternate;
|
|
226
|
+
animation-timing-function: linear;
|
|
227
|
+
`,Pt=({accessibilityLabel:e,testId:r,className:t,label:n,layout:o="horizontal",meterColor:s="var(--cc_color_border_input_inactive)",size:i="medium",style:f,trackColor:_="var(--cc_color_background_2)"})=>{const p=typeof i=="number"?i:ia[i],v=p<=24?12:14,b=L.jsx(fa,{size:p,className:t,style:f,"data-testid":r,children:L.jsxs(pa,{viewBox:"0 0 200 200",focusable:"false","data-svg-type":"spinner",children:[L.jsx("title",{children:e}),L.jsxs("g",{role:"presentation",children:[L.jsx(_a,{r:"86",cy:"100",cx:"100",trackColor:_}),L.jsx(ha,{r:"86",cy:"100",cx:"100",meterColor:s})]})]})});return n?L.jsxs(ua,{layout:o,children:[b,L.jsx(da,{labelFontSize:v,layout:o,children:n})]}):b},Fe={solid:"solid",outline:"outline",minimal:"minimal"},ma={small:"0 calc(var(--cc_size_spacing_s) * 1.25)",medium:"0 var(--cc_size_spacing_m)",large:"0 var(--cc_size_spacing_l)"},qe={small:"calc(var(--cc_size_text_xs) + 1px)",medium:"calc(var(--cc_size_text_s) + 1px)",large:"calc(var(--cc_size_text_m) + 1px)"},ga=e=>`
|
|
228
|
+
color: var(--cc_color_button_text_${e});
|
|
229
|
+
background: var(--cc_color_button_background_${e});
|
|
230
|
+
&:hover {
|
|
231
|
+
background: var(--cc_color_button_background_${e}_darken_10);
|
|
232
|
+
}
|
|
233
|
+
`,ya=(e,r)=>e==="destroy"||e==="success"?`
|
|
234
|
+
background: transparent;
|
|
235
|
+
color: var(--cc_color_utility_${e});
|
|
236
|
+
&:hover {
|
|
237
|
+
color: var(--cc_color_utility_${e}_darken_10);
|
|
238
|
+
background: var(--cc_color_button_background_${e}_alpha_10);
|
|
239
|
+
}
|
|
240
|
+
${r?`
|
|
241
|
+
border-color: var(--cc_color_button_background_${e});
|
|
242
|
+
&:hover {
|
|
243
|
+
border-color: var(--cc_color_button_background_${e}_darken_10);
|
|
244
|
+
}
|
|
245
|
+
`:null}
|
|
246
|
+
`:`
|
|
247
|
+
background: transparent;
|
|
248
|
+
color: var(--cc_color_link_${e});
|
|
249
|
+
&:hover {
|
|
250
|
+
background: var(--cc_color_button_background_${e}_alpha_${e==="subtle"?"70":"10"});
|
|
251
|
+
color: var(--cc_color_link_${e}_darken_15);
|
|
252
|
+
}
|
|
253
|
+
${r?`
|
|
254
|
+
border-color: var(--cc_color_link_${e});
|
|
255
|
+
&:hover {
|
|
256
|
+
border-color: var(--cc_color_link_${e}_darken_10);
|
|
257
|
+
}
|
|
258
|
+
`:null}
|
|
259
|
+
`,va=U.button`
|
|
260
|
+
${e=>oa({disabled:e.disabled})}
|
|
261
|
+
-webkit-font-smoothing: antialiased;
|
|
262
|
+
-moz-osx-font-smoothing: grayscale;
|
|
263
|
+
line-height: 1.2;
|
|
264
|
+
display: inline-flex;
|
|
265
|
+
align-items: center;
|
|
266
|
+
justify-content: center;
|
|
267
|
+
gap: ${e=>`calc(${qe[e.size]} * 0.25 + 4px)`};
|
|
268
|
+
border: var(--cc_size_border_width_m) solid transparent;
|
|
269
|
+
border-radius: var(--cc_size_border_radius_l);
|
|
270
|
+
font-weight: 700;
|
|
271
|
+
transition: transform 0.25s, color 0.25s, background 0.25s;
|
|
272
|
+
box-sizing: border-box;
|
|
273
|
+
${e=>e.design===Fe.outline||e.design===Fe.minimal?ya(e.buttonColor,e.design===Fe.outline):ga(e.buttonColor)};
|
|
274
|
+
height: ${e=>aa[e.size]};
|
|
275
|
+
padding: ${e=>ma[e.size]};
|
|
276
|
+
font-family: 'Averta', system-ui, -apple-system, BlinkMacSystemFont,
|
|
277
|
+
'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
278
|
+
font-size: ${e=>qe[e.size]};
|
|
279
|
+
|
|
280
|
+
&:active {
|
|
281
|
+
transform: scale(0.98);
|
|
282
|
+
}
|
|
283
|
+
`,ba=U.span`
|
|
284
|
+
position: relative;
|
|
285
|
+
white-space: nowrap;
|
|
286
|
+
overflow: hidden;
|
|
287
|
+
text-overflow: ellipsis;
|
|
288
|
+
${e=>e.isLoading?de`
|
|
289
|
+
visibility: hidden;
|
|
290
|
+
`:null}
|
|
291
|
+
`,xa=U(Pt)`
|
|
292
|
+
position: absolute;
|
|
293
|
+
top: 50%;
|
|
294
|
+
left: 50%;
|
|
295
|
+
transform: translate3d(-50%, -50%, 0);
|
|
296
|
+
`,Sa=U.i`
|
|
297
|
+
// make icons render at the font size + 4px
|
|
298
|
+
font-size: ${e=>`calc(${qe[e.size]} + 4px)`};
|
|
299
|
+
// because MD icon font has extra space at top
|
|
300
|
+
transform: translateY(-0.05ch);
|
|
301
|
+
top: 0;
|
|
302
|
+
|
|
303
|
+
${e=>e.isLoading?de`
|
|
304
|
+
visibility: hidden;
|
|
305
|
+
`:null}
|
|
306
|
+
`,mt=({children:e,color:r="subtle",design:t="solid",href:n,icon:o={position:"before"},loading:s=!1,onClick:i,size:f="medium",type:_="button",...p})=>{const v=R=>{if(p.disabled){R.preventDefault(),R.stopPropagation();return}typeof i=="function"&&!n&&i()},b=o!=null&&o.name?L.jsx(Sa,{className:`mdi mdi-${o.name}`,size:f,isLoading:s}):null;return L.jsxs(va,{as:n?"a":"button",buttonColor:r,onClick:v,href:n,disabled:p.disabled,design:t,size:f,type:n?void 0:_,className:p.className,style:p.style,...p,children:[(o==null?void 0:o.position)==="before"?b:null,L.jsx(ba,{isLoading:s,children:e}),(o==null?void 0:o.position)==="after"?b:null,s?L.jsx(xa,{accessibilityLabel:"Loading",size:f==="large"?20:"xsmall",trackColor:"rgba(0, 0, 0, 0.2)",meterColor:"currentColor"}):null]})},ye={xxxl:{size:"var(--cc_size_text_xxxl)",family:"heading",weight:800,lineHeight:1.1},xxl:{size:"var(--cc_size_text_xxl)",family:"heading",weight:800,lineHeight:1.1},xl:{size:"var(--cc_size_text_xl)",family:"heading",weight:700,lineHeight:1.1},l:{size:"var(--cc_size_text_l)",family:"system",weight:700,lineHeight:1.2},m:{size:"var(--cc_size_text_m)",family:"system",lineHeight:1.4},s:{size:"var(--cc_size_text_s)",family:"system",lineHeight:1.4},xs:{size:"var(--cc_size_text_xs)",family:"system",lineHeight:1.4},xxs:{size:"var(--cc_size_text_xxs)",family:"system",lineHeight:1.4}},wa=U.span`
|
|
307
|
+
/* unset all global typography styles */
|
|
308
|
+
all: unset;
|
|
309
|
+
|
|
310
|
+
/* default is block */
|
|
311
|
+
display: ${e=>e.textDisplay};
|
|
312
|
+
|
|
313
|
+
/* Component can inherit font color for one-offs */
|
|
314
|
+
color: ${e=>e.textColor==="inherit"?"inherit":`var(--cc_color_text_${e.textColor})`};
|
|
315
|
+
|
|
316
|
+
/* Use either Averta (heading) or system font stack default */
|
|
317
|
+
${e=>e.textFontFamily&&e.textFontFamily==="heading"||ye[e.size].family==="heading"?ra:ta}
|
|
318
|
+
|
|
319
|
+
/* Add 1px to font size if heading font family, due to Averta lookin' too small */
|
|
320
|
+
font-size: ${e=>e.textFontFamily==="heading"?`calc(${ye[e.size].size} + 1px)`:ye[e.size].size};
|
|
321
|
+
line-height: ${e=>ye[e.size].lineHeight};
|
|
322
|
+
|
|
323
|
+
/* if ccMargin is specified in props, convert spacing tokens to CSS variables */
|
|
324
|
+
${e=>e.ccMargin?de`
|
|
325
|
+
margin: ${sa(e.ccMargin)};
|
|
326
|
+
`:null}
|
|
327
|
+
|
|
328
|
+
/* if user specifies weight in props OR there is a weight default for the font size, set it in CSS */
|
|
329
|
+
${e=>e.weight||ye[e.size].weight?de`
|
|
330
|
+
font-weight: ${e.weight||ye[e.size].weight};
|
|
331
|
+
`:null}
|
|
332
|
+
`;function Xe({as:e,children:r,color:t="default",size:n="s",family:o,ccMargin:s,weight:i,display:f="block",className:_,style:p,...v}){return L.jsx(wa,{as:e,size:n,textFontFamily:o,ccMargin:s,textColor:t,weight:i,textDisplay:f,className:_,style:p,...v,children:r})}const Ca={success:"var(--cc_color_utility_success)",caution:"var(--cc_color_utility_caution)",destroy:"var(--cc_color_utility_destroy)",info:"var(--cc_color_utility_info)"},Ea=U.div`
|
|
333
|
+
height: 100%;
|
|
334
|
+
display: flex;
|
|
335
|
+
align-items: center;
|
|
336
|
+
justify-content: center;
|
|
337
|
+
flex-direction: column;
|
|
338
|
+
`,ka=U.div`
|
|
339
|
+
text-align: center;
|
|
340
|
+
`,Aa=U.div`
|
|
341
|
+
height: 128px;
|
|
342
|
+
width: 128px;
|
|
343
|
+
margin-block-end: var(--cc_size_spacing_xs);
|
|
344
|
+
`,Ta=U.img`
|
|
345
|
+
width: 100%;
|
|
346
|
+
height: 100%;
|
|
347
|
+
object-fit: contain;
|
|
348
|
+
`,Ra=U.i`
|
|
349
|
+
display: block;
|
|
350
|
+
color: ${e=>Ca[e.iconColor]};
|
|
351
|
+
font-size: 48px;
|
|
352
|
+
line-height: 1;
|
|
353
|
+
margin-block-end: var(--cc_size_spacing_xs);
|
|
354
|
+
`,Pa=U.div`
|
|
355
|
+
display: flex;
|
|
356
|
+
flex-direction: column;
|
|
357
|
+
gap: var(--cc_size_spacing_s);
|
|
358
|
+
margin-block-start: var(--cc_size_spacing_m);
|
|
359
|
+
`,za=({image:e,className:r,color:t="info",iconName:n,message:o="",primaryAction:s,secondaryAction:i,style:f,title:_})=>{var v,b;const p=()=>e!=null&&e.src?L.jsx(Aa,{style:e.imageContainerStyle,children:L.jsx(Ta,{src:e.src,alt:e.alt})}):L.jsx(Ra,{className:`mdi mdi-${n}`,iconColor:t,"aria-hidden":"true"});return L.jsxs(Ea,{className:r,style:f,children:[p(),L.jsxs(ka,{children:[L.jsx(Xe,{as:"h3",family:"heading",size:"xl",weight:"800",ccMargin:"none none xs",children:_}),L.jsx(Xe,{as:"p",color:"subtle",children:o})]}),L.jsxs(Pa,{children:[s?L.jsx(mt,{href:s.href,onClick:s.onClick,color:t==="destroy"?"destroy":"primary",icon:{name:(v=s.icon)==null?void 0:v.name,position:(b=s.icon)==null?void 0:b.position},children:s.label}):null,i?L.jsx(mt,{onClick:i.onClick,children:i.label}):null]})]})};exports.Badge=Dr;exports.Billboard=za;exports.ScreenReaderContent=$r;exports.Spinner=Pt;exports.Text=Xe;
|