@ufal-lccv/gpsub-ds 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/RequiredLabel.view-BxGOZl_G.cjs +1 -0
- package/dist/{RequiredLabel.view-vhY8Ifny.js → RequiredLabel.view-DXN5uPK2.js} +18 -17
- package/dist/{Table.view-DrGCSijo.js → Table.view-CaOutm0A.js} +16 -16
- package/dist/{Table.view-Cq1l_7IE.cjs → Table.view-qhca9qPp.cjs} +9 -10
- package/dist/{Title.view-Bw6K4U1v.cjs → Title.view-Bu6ZRsfK.cjs} +1 -1
- package/dist/{Title.view-lFI_ZPGv.js → Title.view-DIVNVZPb.js} +1 -1
- package/dist/Tooltip.view-CAXE23gx.cjs +1455 -0
- package/dist/{Tooltip.view-B2Qudmep.js → Tooltip.view-ZTmLiut5.js} +2333 -2175
- package/dist/components/atoms/LoadingBar/LoadingBar.styles.d.ts +1 -0
- package/dist/components/atoms/Tooltip/Tooltip.view.d.ts +4 -2
- package/dist/components/atoms/index.cjs.js +1 -1
- package/dist/components/atoms/index.es.js +2 -2
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +37 -33
- package/dist/components/molecules/ActionButton/ActionButton.view.d.ts +1 -1
- package/dist/components/molecules/Alert/Alert.view.d.ts +1 -0
- package/dist/components/molecules/Alert/index.d.ts +1 -0
- package/dist/components/molecules/AlertInline/AlertInline.view.d.ts +1 -1
- package/dist/components/molecules/Confirm/ConfirmModal.view.d.ts +1 -1
- package/dist/components/molecules/Empty/Empty.types.d.ts +2 -1
- package/dist/components/molecules/Loading/Loading.view.d.ts +1 -1
- package/dist/components/molecules/Modal/DefaultFooter/DefaultFooter.types.d.ts +10 -0
- package/dist/components/molecules/Modal/DefaultFooter/DefaultFooter.view.d.ts +3 -0
- package/dist/components/molecules/Modal/DefaultFooter/index.d.ts +2 -0
- package/dist/components/molecules/Modal/Modal.view.d.ts +5 -1
- package/dist/components/molecules/MultiSelect/MultiSelect.view.d.ts +1 -0
- package/dist/components/molecules/MultiSelect/index.d.ts +1 -0
- package/dist/components/molecules/index.cjs.js +1 -1
- package/dist/components/molecules/index.d.ts +2 -0
- package/dist/components/molecules/index.es.js +19 -16
- package/dist/components/organisms/Autocomplete/Autocomplete.view.d.ts +1 -0
- package/dist/components/organisms/Autocomplete/index.d.ts +1 -0
- package/dist/components/organisms/index.cjs.js +1 -1
- package/dist/components/organisms/index.d.ts +1 -0
- package/dist/components/organisms/index.es.js +13 -11
- package/dist/hash-BtT4jVLO.js +25 -0
- package/dist/hash-CJrPvUOz.cjs +1 -0
- package/dist/helpers/functions/getLabelText.d.ts +2 -0
- package/dist/helpers/functions/index.d.ts +1 -0
- package/dist/helpers/index.cjs.js +1 -1
- package/dist/helpers/index.es.js +10 -18
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +45 -40
- package/dist/types/baseProps.d.ts +8 -0
- package/dist/types/icons.d.ts +1 -0
- package/dist/types/styleGuide/index.d.ts +174 -0
- package/dist/types/styleGuide/position.d.ts +1 -0
- package/package.json +3 -2
- package/dist/RequiredLabel.view-Dn02h8aL.cjs +0 -1
- package/dist/Tooltip.view-DGl4VmmK.cjs +0 -1456
|
@@ -1,1456 +0,0 @@
|
|
|
1
|
-
"use strict";const A=require("react"),t=require("sbwb-ds"),V=require("./index-BcwQwoIM.cjs"),gt=require("react-dom");function ao(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const Ne=ao(A);function mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $t={exports:{}},Ze={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.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 Zt;function lo(){if(Zt)return Ze;Zt=1;var e=A,o=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(d,f,h){var p,m={},b=null,x=null;h!==void 0&&(b=""+h),f.key!==void 0&&(b=""+f.key),f.ref!==void 0&&(x=f.ref);for(p in f)n.call(f,p)&&!c.hasOwnProperty(p)&&(m[p]=f[p]);if(d&&d.defaultProps)for(p in f=d.defaultProps,f)m[p]===void 0&&(m[p]=f[p]);return{$$typeof:o,type:d,key:b,ref:x,props:m,_owner:i.current}}return Ze.Fragment=r,Ze.jsx=l,Ze.jsxs=l,Ze}var Je={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.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 Jt;function co(){return Jt||(Jt=1,process.env.NODE_ENV!=="production"&&function(){var e=A,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),y=Symbol.iterator,a="@@iterator";function S(s){if(s===null||typeof s!="object")return null;var $=y&&s[y]||s[a];return typeof $=="function"?$:null}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(s){{for(var $=arguments.length,R=new Array($>1?$-1:0),L=1;L<$;L++)R[L-1]=arguments[L];O("error",s,R)}}function O(s,$,R){{var L=P.ReactDebugCurrentFrame,re=L.getStackAddendum();re!==""&&($+="%s",R=R.concat([re]));var le=R.map(function(J){return String(J)});le.unshift("Warning: "+$),Function.prototype.apply.call(console[s],console,le)}}var j=!1,v=!1,U=!1,ee=!1,te=!1,ce;ce=Symbol.for("react.module.reference");function I(s){return!!(typeof s=="string"||typeof s=="function"||s===n||s===c||te||s===i||s===h||s===p||ee||s===x||j||v||U||typeof s=="object"&&s!==null&&(s.$$typeof===b||s.$$typeof===m||s.$$typeof===l||s.$$typeof===d||s.$$typeof===f||s.$$typeof===ce||s.getModuleId!==void 0))}function ge(s,$,R){var L=s.displayName;if(L)return L;var re=$.displayName||$.name||"";return re!==""?R+"("+re+")":R}function X(s){return s.displayName||"Context"}function Y(s){if(s==null)return null;if(typeof s.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case n:return"Fragment";case r:return"Portal";case c:return"Profiler";case i:return"StrictMode";case h:return"Suspense";case p:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case d:var $=s;return X($)+".Consumer";case l:var R=s;return X(R._context)+".Provider";case f:return ge(s,s.render,"ForwardRef");case m:var L=s.displayName||null;return L!==null?L:Y(s.type)||"Memo";case b:{var re=s,le=re._payload,J=re._init;try{return Y(J(le))}catch{return null}}}return null}var ae=Object.assign,W=0,Ee,Se,he,ke,Ce,ze,N;function k(){}k.__reactDisabledLog=!0;function T(){{if(W===0){Ee=console.log,Se=console.info,he=console.warn,ke=console.error,Ce=console.group,ze=console.groupCollapsed,N=console.groupEnd;var s={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}W++}}function F(){{if(W--,W===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ae({},s,{value:Ee}),info:ae({},s,{value:Se}),warn:ae({},s,{value:he}),error:ae({},s,{value:ke}),group:ae({},s,{value:Ce}),groupCollapsed:ae({},s,{value:ze}),groupEnd:ae({},s,{value:N})})}W<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var g=P.ReactCurrentDispatcher,q;function w(s,$,R){{if(q===void 0)try{throw Error()}catch(re){var L=re.stack.trim().match(/\n( *(at )?)/);q=L&&L[1]||""}return`
|
|
18
|
-
`+q+s}}var Q=!1,H;{var G=typeof WeakMap=="function"?WeakMap:Map;H=new G}function C(s,$){if(!s||Q)return"";{var R=H.get(s);if(R!==void 0)return R}var L;Q=!0;var re=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var le;le=g.current,g.current=null,T();try{if($){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(xe){L=xe}Reflect.construct(s,[],J)}else{try{J.call()}catch(xe){L=xe}s.call(J.prototype)}}else{try{throw Error()}catch(xe){L=xe}s()}}catch(xe){if(xe&&L&&typeof xe.stack=="string"){for(var K=xe.stack.split(`
|
|
19
|
-
`),$e=L.stack.split(`
|
|
20
|
-
`),ye=K.length-1,ve=$e.length-1;ye>=1&&ve>=0&&K[ye]!==$e[ve];)ve--;for(;ye>=1&&ve>=0;ye--,ve--)if(K[ye]!==$e[ve]){if(ye!==1||ve!==1)do if(ye--,ve--,ve<0||K[ye]!==$e[ve]){var Te=`
|
|
21
|
-
`+K[ye].replace(" at new "," at ");return s.displayName&&Te.includes("<anonymous>")&&(Te=Te.replace("<anonymous>",s.displayName)),typeof s=="function"&&H.set(s,Te),Te}while(ye>=1&&ve>=0);break}}}finally{Q=!1,g.current=le,F(),Error.prepareStackTrace=re}var Ue=s?s.displayName||s.name:"",De=Ue?w(Ue):"";return typeof s=="function"&&H.set(s,De),De}function ue(s,$,R){return C(s,!1)}function pe(s){var $=s.prototype;return!!($&&$.isReactComponent)}function B(s,$,R){if(s==null)return"";if(typeof s=="function")return C(s,pe(s));if(typeof s=="string")return w(s);switch(s){case h:return w("Suspense");case p:return w("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case f:return ue(s.render);case m:return B(s.type,$,R);case b:{var L=s,re=L._payload,le=L._init;try{return B(le(re),$,R)}catch{}}}return""}var de=Object.prototype.hasOwnProperty,Z={},me=P.ReactDebugCurrentFrame;function _e(s){if(s){var $=s._owner,R=B(s.type,s._source,$?$.type:null);me.setExtraStackFrame(R)}else me.setExtraStackFrame(null)}function D(s,$,R,L,re){{var le=Function.call.bind(de);for(var J in s)if(le(s,J)){var K=void 0;try{if(typeof s[J]!="function"){var $e=Error((L||"React class")+": "+R+" type `"+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[J]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $e.name="Invariant Violation",$e}K=s[J]($,J,L,R,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ye){K=ye}K&&!(K instanceof Error)&&(_e(re),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",L||"React class",R,J,typeof K),_e(null)),K instanceof Error&&!(K.message in Z)&&(Z[K.message]=!0,_e(re),_("Failed %s type: %s",R,K.message),_e(null))}}}var Pe=Array.isArray;function je(s){return Pe(s)}function Re(s){{var $=typeof Symbol=="function"&&Symbol.toStringTag,R=$&&s[Symbol.toStringTag]||s.constructor.name||"Object";return R}}function M(s){try{return fe(s),!1}catch{return!0}}function fe(s){return""+s}function Ve(s){if(M(s))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Re(s)),fe(s)}var Ye=P.ReactCurrentOwner,Ae={key:!0,ref:!0,__self:!0,__source:!0},Wt,Ht;function Vr(s){if(de.call(s,"ref")){var $=Object.getOwnPropertyDescriptor(s,"ref").get;if($&&$.isReactWarning)return!1}return s.ref!==void 0}function Yr(s){if(de.call(s,"key")){var $=Object.getOwnPropertyDescriptor(s,"key").get;if($&&$.isReactWarning)return!1}return s.key!==void 0}function qr(s,$){typeof s.ref=="string"&&Ye.current}function Ur(s,$){{var R=function(){Wt||(Wt=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",$))};R.isReactWarning=!0,Object.defineProperty(s,"key",{get:R,configurable:!0})}}function Gr(s,$){{var R=function(){Ht||(Ht=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",$))};R.isReactWarning=!0,Object.defineProperty(s,"ref",{get:R,configurable:!0})}}var Xr=function(s,$,R,L,re,le,J){var K={$$typeof:o,type:s,key:$,ref:R,props:J,_owner:le};return K._store={},Object.defineProperty(K._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(K,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(K,"_source",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.freeze&&(Object.freeze(K.props),Object.freeze(K)),K};function Kr(s,$,R,L,re){{var le,J={},K=null,$e=null;R!==void 0&&(Ve(R),K=""+R),Yr($)&&(Ve($.key),K=""+$.key),Vr($)&&($e=$.ref,qr($,re));for(le in $)de.call($,le)&&!Ae.hasOwnProperty(le)&&(J[le]=$[le]);if(s&&s.defaultProps){var ye=s.defaultProps;for(le in ye)J[le]===void 0&&(J[le]=ye[le])}if(K||$e){var ve=typeof s=="function"?s.displayName||s.name||"Unknown":s;K&&Ur(J,ve),$e&&Gr(J,ve)}return Xr(s,K,$e,re,L,Ye.current,J)}}var pt=P.ReactCurrentOwner,Vt=P.ReactDebugCurrentFrame;function qe(s){if(s){var $=s._owner,R=B(s.type,s._source,$?$.type:null);Vt.setExtraStackFrame(R)}else Vt.setExtraStackFrame(null)}var mt;mt=!1;function yt(s){return typeof s=="object"&&s!==null&&s.$$typeof===o}function Yt(){{if(pt.current){var s=Y(pt.current.type);if(s)return`
|
|
22
|
-
|
|
23
|
-
Check the render method of \``+s+"`."}return""}}function Zr(s){return""}var qt={};function Jr(s){{var $=Yt();if(!$){var R=typeof s=="string"?s:s.displayName||s.name;R&&($=`
|
|
24
|
-
|
|
25
|
-
Check the top-level render call using <`+R+">.")}return $}}function Ut(s,$){{if(!s._store||s._store.validated||s.key!=null)return;s._store.validated=!0;var R=Jr($);if(qt[R])return;qt[R]=!0;var L="";s&&s._owner&&s._owner!==pt.current&&(L=" It was passed a child from "+Y(s._owner.type)+"."),qe(s),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',R,L),qe(null)}}function Gt(s,$){{if(typeof s!="object")return;if(je(s))for(var R=0;R<s.length;R++){var L=s[R];yt(L)&&Ut(L,$)}else if(yt(s))s._store&&(s._store.validated=!0);else if(s){var re=S(s);if(typeof re=="function"&&re!==s.entries)for(var le=re.call(s),J;!(J=le.next()).done;)yt(J.value)&&Ut(J.value,$)}}}function Qr(s){{var $=s.type;if($==null||typeof $=="string")return;var R;if(typeof $=="function")R=$.propTypes;else if(typeof $=="object"&&($.$$typeof===f||$.$$typeof===m))R=$.propTypes;else return;if(R){var L=Y($);D(R,s.props,"prop",L,s)}else if($.PropTypes!==void 0&&!mt){mt=!0;var re=Y($);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",re||"Unknown")}typeof $.getDefaultProps=="function"&&!$.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function eo(s){{for(var $=Object.keys(s.props),R=0;R<$.length;R++){var L=$[R];if(L!=="children"&&L!=="key"){qe(s),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),qe(null);break}}s.ref!==null&&(qe(s),_("Invalid attribute `ref` supplied to `React.Fragment`."),qe(null))}}var Xt={};function Kt(s,$,R,L,re,le){{var J=I(s);if(!J){var K="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(K+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var $e=Zr();$e?K+=$e:K+=Yt();var ye;s===null?ye="null":je(s)?ye="array":s!==void 0&&s.$$typeof===o?(ye="<"+(Y(s.type)||"Unknown")+" />",K=" Did you accidentally export a JSX literal instead of a component?"):ye=typeof s,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ye,K)}var ve=Kr(s,$,R,re,le);if(ve==null)return ve;if(J){var Te=$.children;if(Te!==void 0)if(L)if(je(Te)){for(var Ue=0;Ue<Te.length;Ue++)Gt(Te[Ue],s);Object.freeze&&Object.freeze(Te)}else _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Gt(Te,s)}if(de.call($,"key")){var De=Y(s),xe=Object.keys($).filter(function(so){return so!=="key"}),vt=xe.length>0?"{key: someKey, "+xe.join(": ..., ")+": ...}":"{key: someKey}";if(!Xt[De+vt]){var io=xe.length>0?"{"+xe.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
-
let props = %s;
|
|
27
|
-
<%s {...props} />
|
|
28
|
-
React keys must be passed directly to JSX without using spread:
|
|
29
|
-
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,vt,De,io,De),Xt[De+vt]=!0}}return s===n?eo(ve):Qr(ve),ve}}function to(s,$,R){return Kt(s,$,R,!0)}function ro(s,$,R){return Kt(s,$,R,!1)}var oo=ro,no=to;Je.Fragment=n,Je.jsx=oo,Je.jsxs=no}()),Je}process.env.NODE_ENV==="production"?$t.exports=lo():$t.exports=co();var u=$t.exports,xt={exports:{}},ie={};/**
|
|
31
|
-
* @license React
|
|
32
|
-
* react-is.production.js
|
|
33
|
-
*
|
|
34
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
35
|
-
*
|
|
36
|
-
* This source code is licensed under the MIT license found in the
|
|
37
|
-
* LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/var Qt;function uo(){if(Qt)return ie;Qt=1;var e=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function y(a){if(typeof a=="object"&&a!==null){var S=a.$$typeof;switch(S){case e:switch(a=a.type,a){case r:case i:case n:case f:case h:case b:return a;default:switch(a=a&&a.$$typeof,a){case l:case d:case m:case p:return a;case c:return a;default:return S}}case o:return S}}}return ie.ContextConsumer=c,ie.ContextProvider=l,ie.Element=e,ie.ForwardRef=d,ie.Fragment=r,ie.Lazy=m,ie.Memo=p,ie.Portal=o,ie.Profiler=i,ie.StrictMode=n,ie.Suspense=f,ie.SuspenseList=h,ie.isContextConsumer=function(a){return y(a)===c},ie.isContextProvider=function(a){return y(a)===l},ie.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===e},ie.isForwardRef=function(a){return y(a)===d},ie.isFragment=function(a){return y(a)===r},ie.isLazy=function(a){return y(a)===m},ie.isMemo=function(a){return y(a)===p},ie.isPortal=function(a){return y(a)===o},ie.isProfiler=function(a){return y(a)===i},ie.isStrictMode=function(a){return y(a)===n},ie.isSuspense=function(a){return y(a)===f},ie.isSuspenseList=function(a){return y(a)===h},ie.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===r||a===i||a===n||a===f||a===h||typeof a=="object"&&a!==null&&(a.$$typeof===m||a.$$typeof===p||a.$$typeof===l||a.$$typeof===c||a.$$typeof===d||a.$$typeof===x||a.getModuleId!==void 0)},ie.typeOf=y,ie}var se={};/**
|
|
39
|
-
* @license React
|
|
40
|
-
* react-is.development.js
|
|
41
|
-
*
|
|
42
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the MIT license found in the
|
|
45
|
-
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/var er;function fo(){return er||(er=1,process.env.NODE_ENV!=="production"&&function(){function e(a){if(typeof a=="object"&&a!==null){var S=a.$$typeof;switch(S){case o:switch(a=a.type,a){case n:case c:case i:case h:case p:case x:return a;default:switch(a=a&&a.$$typeof,a){case d:case f:case b:case m:return a;case l:return a;default:return S}}case r:return S}}}var o=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");se.ContextConsumer=l,se.ContextProvider=d,se.Element=o,se.ForwardRef=f,se.Fragment=n,se.Lazy=b,se.Memo=m,se.Portal=r,se.Profiler=c,se.StrictMode=i,se.Suspense=h,se.SuspenseList=p,se.isContextConsumer=function(a){return e(a)===l},se.isContextProvider=function(a){return e(a)===d},se.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===o},se.isForwardRef=function(a){return e(a)===f},se.isFragment=function(a){return e(a)===n},se.isLazy=function(a){return e(a)===b},se.isMemo=function(a){return e(a)===m},se.isPortal=function(a){return e(a)===r},se.isProfiler=function(a){return e(a)===c},se.isStrictMode=function(a){return e(a)===i},se.isSuspense=function(a){return e(a)===h},se.isSuspenseList=function(a){return e(a)===p},se.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===n||a===c||a===i||a===h||a===p||typeof a=="object"&&a!==null&&(a.$$typeof===b||a.$$typeof===m||a.$$typeof===d||a.$$typeof===l||a.$$typeof===f||a.$$typeof===y||a.getModuleId!==void 0)},se.typeOf=e}()),se}process.env.NODE_ENV==="production"?xt.exports=uo():xt.exports=fo();var Nt=xt.exports;function go(e){function o(N,k,T,F,g){for(var q=0,w=0,Q=0,H=0,G,C,ue=0,pe=0,B,de=B=G=0,Z=0,me=0,_e=0,D=0,Pe=T.length,je=Pe-1,Re,M="",fe="",Ve="",Ye="",Ae;Z<Pe;){if(C=T.charCodeAt(Z),Z===je&&w+H+Q+q!==0&&(w!==0&&(C=w===47?10:47),H=Q=q=0,Pe++,je++),w+H+Q+q===0){if(Z===je&&(0<me&&(M=M.replace(b,"")),0<M.trim().length)){switch(C){case 32:case 9:case 59:case 13:case 10:break;default:M+=T.charAt(Z)}C=59}switch(C){case 123:for(M=M.trim(),G=M.charCodeAt(0),B=1,D=++Z;Z<Pe;){switch(C=T.charCodeAt(Z)){case 123:B++;break;case 125:B--;break;case 47:switch(C=T.charCodeAt(Z+1)){case 42:case 47:e:{for(de=Z+1;de<je;++de)switch(T.charCodeAt(de)){case 47:if(C===42&&T.charCodeAt(de-1)===42&&Z+2!==de){Z=de+1;break e}break;case 10:if(C===47){Z=de+1;break e}}Z=de}}break;case 91:C++;case 40:C++;case 34:case 39:for(;Z++<je&&T.charCodeAt(Z)!==C;);}if(B===0)break;Z++}switch(B=T.substring(D,Z),G===0&&(G=(M=M.replace(m,"").trim()).charCodeAt(0)),G){case 64:switch(0<me&&(M=M.replace(b,"")),C=M.charCodeAt(1),C){case 100:case 109:case 115:case 45:me=k;break;default:me=Ee}if(B=o(k,me,B,C,g+1),D=B.length,0<he&&(me=r(Ee,M,_e),Ae=d(3,B,me,k,Y,X,D,C,g,F),M=me.join(""),Ae!==void 0&&(D=(B=Ae.trim()).length)===0&&(C=0,B="")),0<D)switch(C){case 115:M=M.replace(U,l);case 100:case 109:case 45:B=M+"{"+B+"}";break;case 107:M=M.replace(_,"$1 $2"),B=M+"{"+B+"}",B=W===1||W===2&&c("@"+B,3)?"@-webkit-"+B+"@"+B:"@"+B;break;default:B=M+B,F===112&&(B=(fe+=B,""))}else B="";break;default:B=o(k,r(k,M,_e),B,F,g+1)}Ve+=B,B=_e=me=de=G=0,M="",C=T.charCodeAt(++Z);break;case 125:case 59:if(M=(0<me?M.replace(b,""):M).trim(),1<(D=M.length))switch(de===0&&(G=M.charCodeAt(0),G===45||96<G&&123>G)&&(D=(M=M.replace(" ",":")).length),0<he&&(Ae=d(1,M,k,N,Y,X,fe.length,F,g,F))!==void 0&&(D=(M=Ae.trim()).length)===0&&(M="\0\0"),G=M.charCodeAt(0),C=M.charCodeAt(1),G){case 0:break;case 64:if(C===105||C===99){Ye+=M+T.charAt(Z);break}default:M.charCodeAt(D-1)!==58&&(fe+=i(M,G,C,M.charCodeAt(2)))}_e=me=de=G=0,M="",C=T.charCodeAt(++Z)}}switch(C){case 13:case 10:w===47?w=0:1+G===0&&F!==107&&0<M.length&&(me=1,M+="\0"),0<he*Ce&&d(0,M,k,N,Y,X,fe.length,F,g,F),X=1,Y++;break;case 59:case 125:if(w+H+Q+q===0){X++;break}default:switch(X++,Re=T.charAt(Z),C){case 9:case 32:if(H+q+w===0)switch(ue){case 44:case 58:case 9:case 32:Re="";break;default:C!==32&&(Re=" ")}break;case 0:Re="\\0";break;case 12:Re="\\f";break;case 11:Re="\\v";break;case 38:H+w+q===0&&(me=_e=1,Re="\f"+Re);break;case 108:if(H+w+q+ae===0&&0<de)switch(Z-de){case 2:ue===112&&T.charCodeAt(Z-3)===58&&(ae=ue);case 8:pe===111&&(ae=pe)}break;case 58:H+w+q===0&&(de=Z);break;case 44:w+Q+H+q===0&&(me=1,Re+="\r");break;case 34:case 39:w===0&&(H=H===C?0:H===0?C:H);break;case 91:H+w+Q===0&&q++;break;case 93:H+w+Q===0&&q--;break;case 41:H+w+q===0&&Q--;break;case 40:if(H+w+q===0){if(G===0)switch(2*ue+3*pe){case 533:break;default:G=1}Q++}break;case 64:w+Q+H+q+de+B===0&&(B=1);break;case 42:case 47:if(!(0<H+q+Q))switch(w){case 0:switch(2*C+3*T.charCodeAt(Z+1)){case 235:w=47;break;case 220:D=Z,w=42}break;case 42:C===47&&ue===42&&D+2!==Z&&(T.charCodeAt(D+2)===33&&(fe+=T.substring(D,Z+1)),Re="",w=0)}}w===0&&(M+=Re)}pe=ue,ue=C,Z++}if(D=fe.length,0<D){if(me=k,0<he&&(Ae=d(2,fe,me,N,Y,X,D,F,g,F),Ae!==void 0&&(fe=Ae).length===0))return Ye+fe+Ve;if(fe=me.join(",")+"{"+fe+"}",W*ae!==0){switch(W!==2||c(fe,2)||(ae=0),ae){case 111:fe=fe.replace(j,":-moz-$1")+fe;break;case 112:fe=fe.replace(O,"::-webkit-input-$1")+fe.replace(O,"::-moz-$1")+fe.replace(O,":-ms-input-$1")+fe}ae=0}}return Ye+fe+Ve}function r(N,k,T){var F=k.trim().split(S);k=F;var g=F.length,q=N.length;switch(q){case 0:case 1:var w=0;for(N=q===0?"":N[0]+" ";w<g;++w)k[w]=n(N,k[w],T).trim();break;default:var Q=w=0;for(k=[];w<g;++w)for(var H=0;H<q;++H)k[Q++]=n(N[H]+" ",F[w],T).trim()}return k}function n(N,k,T){var F=k.charCodeAt(0);switch(33>F&&(F=(k=k.trim()).charCodeAt(0)),F){case 38:return k.replace(P,"$1"+N.trim());case 58:return N.trim()+k.replace(P,"$1"+N.trim());default:if(0<1*T&&0<k.indexOf("\f"))return k.replace(P,(N.charCodeAt(0)===58?"":"$1")+N.trim())}return N+k}function i(N,k,T,F){var g=N+";",q=2*k+3*T+4*F;if(q===944){N=g.indexOf(":",9)+1;var w=g.substring(N,g.length-1).trim();return w=g.substring(0,N).trim()+w+";",W===1||W===2&&c(w,1)?"-webkit-"+w+w:w}if(W===0||W===2&&!c(g,1))return g;switch(q){case 1015:return g.charCodeAt(10)===97?"-webkit-"+g+g:g;case 951:return g.charCodeAt(3)===116?"-webkit-"+g+g:g;case 963:return g.charCodeAt(5)===110?"-webkit-"+g+g:g;case 1009:if(g.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+g+g;case 978:return"-webkit-"+g+"-moz-"+g+g;case 1019:case 983:return"-webkit-"+g+"-moz-"+g+"-ms-"+g+g;case 883:if(g.charCodeAt(8)===45)return"-webkit-"+g+g;if(0<g.indexOf("image-set(",11))return g.replace(ge,"$1-webkit-$2")+g;break;case 932:if(g.charCodeAt(4)===45)switch(g.charCodeAt(5)){case 103:return"-webkit-box-"+g.replace("-grow","")+"-webkit-"+g+"-ms-"+g.replace("grow","positive")+g;case 115:return"-webkit-"+g+"-ms-"+g.replace("shrink","negative")+g;case 98:return"-webkit-"+g+"-ms-"+g.replace("basis","preferred-size")+g}return"-webkit-"+g+"-ms-"+g+g;case 964:return"-webkit-"+g+"-ms-flex-"+g+g;case 1023:if(g.charCodeAt(8)!==99)break;return w=g.substring(g.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+w+"-webkit-"+g+"-ms-flex-pack"+w+g;case 1005:return y.test(g)?g.replace(x,":-webkit-")+g.replace(x,":-moz-")+g:g;case 1e3:switch(w=g.substring(13).trim(),k=w.indexOf("-")+1,w.charCodeAt(0)+w.charCodeAt(k)){case 226:w=g.replace(v,"tb");break;case 232:w=g.replace(v,"tb-rl");break;case 220:w=g.replace(v,"lr");break;default:return g}return"-webkit-"+g+"-ms-"+w+g;case 1017:if(g.indexOf("sticky",9)===-1)break;case 975:switch(k=(g=N).length-10,w=(g.charCodeAt(k)===33?g.substring(0,k):g).substring(N.indexOf(":",7)+1).trim(),q=w.charCodeAt(0)+(w.charCodeAt(7)|0)){case 203:if(111>w.charCodeAt(8))break;case 115:g=g.replace(w,"-webkit-"+w)+";"+g;break;case 207:case 102:g=g.replace(w,"-webkit-"+(102<q?"inline-":"")+"box")+";"+g.replace(w,"-webkit-"+w)+";"+g.replace(w,"-ms-"+w+"box")+";"+g}return g+";";case 938:if(g.charCodeAt(5)===45)switch(g.charCodeAt(6)){case 105:return w=g.replace("-items",""),"-webkit-"+g+"-webkit-box-"+w+"-ms-flex-"+w+g;case 115:return"-webkit-"+g+"-ms-flex-item-"+g.replace(te,"")+g;default:return"-webkit-"+g+"-ms-flex-line-pack"+g.replace("align-content","").replace(te,"")+g}break;case 973:case 989:if(g.charCodeAt(3)!==45||g.charCodeAt(4)===122)break;case 931:case 953:if(I.test(N)===!0)return(w=N.substring(N.indexOf(":")+1)).charCodeAt(0)===115?i(N.replace("stretch","fill-available"),k,T,F).replace(":fill-available",":stretch"):g.replace(w,"-webkit-"+w)+g.replace(w,"-moz-"+w.replace("fill-",""))+g;break;case 962:if(g="-webkit-"+g+(g.charCodeAt(5)===102?"-ms-"+g:"")+g,T+F===211&&g.charCodeAt(13)===105&&0<g.indexOf("transform",10))return g.substring(0,g.indexOf(";",27)+1).replace(a,"$1-webkit-$2")+g}return g}function c(N,k){var T=N.indexOf(k===1?":":"{"),F=N.substring(0,k!==3?T:10);return T=N.substring(T+1,N.length-1),ke(k!==2?F:F.replace(ce,"$1"),T,k)}function l(N,k){var T=i(k,k.charCodeAt(0),k.charCodeAt(1),k.charCodeAt(2));return T!==k+";"?T.replace(ee," or ($1)").substring(4):"("+k+")"}function d(N,k,T,F,g,q,w,Q,H,G){for(var C=0,ue=k,pe;C<he;++C)switch(pe=Se[C].call(p,N,ue,T,F,g,q,w,Q,H,G)){case void 0:case!1:case!0:case null:break;default:ue=pe}if(ue!==k)return ue}function f(N){switch(N){case void 0:case null:he=Se.length=0;break;default:if(typeof N=="function")Se[he++]=N;else if(typeof N=="object")for(var k=0,T=N.length;k<T;++k)f(N[k]);else Ce=!!N|0}return f}function h(N){return N=N.prefix,N!==void 0&&(ke=null,N?typeof N!="function"?W=1:(W=2,ke=N):W=0),h}function p(N,k){var T=N;if(33>T.charCodeAt(0)&&(T=T.trim()),ze=T,T=[ze],0<he){var F=d(-1,k,T,T,Y,X,0,0,0,0);F!==void 0&&typeof F=="string"&&(k=F)}var g=o(Ee,T,k,0,0);return 0<he&&(F=d(-2,g,T,T,Y,X,g.length,0,0,0),F!==void 0&&(g=F)),ze="",ae=0,X=Y=1,g}var m=/^\0+/g,b=/[\0\r\f]/g,x=/: */g,y=/zoo|gra/,a=/([,: ])(transform)/g,S=/,\r+?/g,P=/([\t\r\n ])*\f?&/g,_=/@(k\w+)\s*(\S*)\s*/,O=/::(place)/g,j=/:(read-only)/g,v=/[svh]\w+-[tblr]{2}/,U=/\(\s*(.*)\s*\)/g,ee=/([\s\S]*?);/g,te=/-self|flex-/g,ce=/[^]*?(:[rp][el]a[\w-]+)[^]*/,I=/stretch|:\s*\w+\-(?:conte|avail)/,ge=/([^-])(image-set\()/,X=1,Y=1,ae=0,W=1,Ee=[],Se=[],he=0,ke=null,Ce=0,ze="";return p.use=f,p.set=h,e!==void 0&&h(e),p}var ho={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 po(e){var o=Object.create(null);return function(r){return o[r]===void 0&&(o[r]=e(r)),o[r]}}var mo=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,tr=po(function(e){return mo.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),wt={exports:{}},oe={};/** @license React v16.13.1
|
|
47
|
-
* react-is.production.min.js
|
|
48
|
-
*
|
|
49
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
50
|
-
*
|
|
51
|
-
* This source code is licensed under the MIT license found in the
|
|
52
|
-
* LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/var rr;function yo(){if(rr)return oe;rr=1;var e=typeof Symbol=="function"&&Symbol.for,o=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,a=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function O(v){if(typeof v=="object"&&v!==null){var U=v.$$typeof;switch(U){case o:switch(v=v.type,v){case f:case h:case n:case c:case i:case m:return v;default:switch(v=v&&v.$$typeof,v){case d:case p:case y:case x:case l:return v;default:return U}}case r:return U}}}function j(v){return O(v)===h}return oe.AsyncMode=f,oe.ConcurrentMode=h,oe.ContextConsumer=d,oe.ContextProvider=l,oe.Element=o,oe.ForwardRef=p,oe.Fragment=n,oe.Lazy=y,oe.Memo=x,oe.Portal=r,oe.Profiler=c,oe.StrictMode=i,oe.Suspense=m,oe.isAsyncMode=function(v){return j(v)||O(v)===f},oe.isConcurrentMode=j,oe.isContextConsumer=function(v){return O(v)===d},oe.isContextProvider=function(v){return O(v)===l},oe.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===o},oe.isForwardRef=function(v){return O(v)===p},oe.isFragment=function(v){return O(v)===n},oe.isLazy=function(v){return O(v)===y},oe.isMemo=function(v){return O(v)===x},oe.isPortal=function(v){return O(v)===r},oe.isProfiler=function(v){return O(v)===c},oe.isStrictMode=function(v){return O(v)===i},oe.isSuspense=function(v){return O(v)===m},oe.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===h||v===c||v===i||v===m||v===b||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===x||v.$$typeof===l||v.$$typeof===d||v.$$typeof===p||v.$$typeof===S||v.$$typeof===P||v.$$typeof===_||v.$$typeof===a)},oe.typeOf=O,oe}var ne={};/** @license React v16.13.1
|
|
54
|
-
* react-is.development.js
|
|
55
|
-
*
|
|
56
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
57
|
-
*
|
|
58
|
-
* This source code is licensed under the MIT license found in the
|
|
59
|
-
* LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/var or;function vo(){return or||(or=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,o=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,a=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function O(C){return typeof C=="string"||typeof C=="function"||C===n||C===h||C===c||C===i||C===m||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===x||C.$$typeof===l||C.$$typeof===d||C.$$typeof===p||C.$$typeof===S||C.$$typeof===P||C.$$typeof===_||C.$$typeof===a)}function j(C){if(typeof C=="object"&&C!==null){var ue=C.$$typeof;switch(ue){case o:var pe=C.type;switch(pe){case f:case h:case n:case c:case i:case m:return pe;default:var B=pe&&pe.$$typeof;switch(B){case d:case p:case y:case x:case l:return B;default:return ue}}case r:return ue}}}var v=f,U=h,ee=d,te=l,ce=o,I=p,ge=n,X=y,Y=x,ae=r,W=c,Ee=i,Se=m,he=!1;function ke(C){return he||(he=!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.")),Ce(C)||j(C)===f}function Ce(C){return j(C)===h}function ze(C){return j(C)===d}function N(C){return j(C)===l}function k(C){return typeof C=="object"&&C!==null&&C.$$typeof===o}function T(C){return j(C)===p}function F(C){return j(C)===n}function g(C){return j(C)===y}function q(C){return j(C)===x}function w(C){return j(C)===r}function Q(C){return j(C)===c}function H(C){return j(C)===i}function G(C){return j(C)===m}ne.AsyncMode=v,ne.ConcurrentMode=U,ne.ContextConsumer=ee,ne.ContextProvider=te,ne.Element=ce,ne.ForwardRef=I,ne.Fragment=ge,ne.Lazy=X,ne.Memo=Y,ne.Portal=ae,ne.Profiler=W,ne.StrictMode=Ee,ne.Suspense=Se,ne.isAsyncMode=ke,ne.isConcurrentMode=Ce,ne.isContextConsumer=ze,ne.isContextProvider=N,ne.isElement=k,ne.isForwardRef=T,ne.isFragment=F,ne.isLazy=g,ne.isMemo=q,ne.isPortal=w,ne.isProfiler=Q,ne.isStrictMode=H,ne.isSuspense=G,ne.isValidElementType=O,ne.typeOf=j}()),ne}process.env.NODE_ENV==="production"?wt.exports=yo():wt.exports=vo();var So=wt.exports,At=So,bo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Co={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},$o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Pt={};Pt[At.ForwardRef]=$o;Pt[At.Memo]=yr;function nr(e){return At.isMemo(e)?yr:Pt[e.$$typeof]||bo}var xo=Object.defineProperty,wo=Object.getOwnPropertyNames,ir=Object.getOwnPropertySymbols,Eo=Object.getOwnPropertyDescriptor,ko=Object.getPrototypeOf,sr=Object.prototype;function vr(e,o,r){if(typeof o!="string"){if(sr){var n=ko(o);n&&n!==sr&&vr(e,n,r)}var i=wo(o);ir&&(i=i.concat(ir(o)));for(var c=nr(e),l=nr(o),d=0;d<i.length;++d){var f=i[d];if(!Co[f]&&!(r&&r[f])&&!(l&&l[f])&&!(c&&c[f])){var h=Eo(o,f);try{xo(e,f,h)}catch{}}}}return e}var _o=vr;const Ro=mr(_o);function Oe(){return(Oe=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var ar=function(e,o){for(var r=[e[0]],n=0,i=o.length;n<i;n+=1)r.push(o[n],e[n+1]);return r},Et=function(e){return e!==null&&typeof e=="object"&&(e.toString?e.toString():Object.prototype.toString.call(e))==="[object Object]"&&!Nt.typeOf(e)},ct=Object.freeze([]),Le=Object.freeze({});function et(e){return typeof e=="function"}function kt(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function jt(e){return e&&typeof e.styledComponentId=="string"}var Ge=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ot=typeof window<"u"&&"HTMLElement"in window,zo=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&(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: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")),To=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
61
|
-
|
|
62
|
-
`,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.
|
|
63
|
-
|
|
64
|
-
- Are you trying to reuse it across renders?
|
|
65
|
-
- Are you accidentally calling collectStyles twice?
|
|
66
|
-
|
|
67
|
-
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
68
|
-
|
|
69
|
-
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
70
|
-
|
|
71
|
-
- Does this error occur on the client and is your target falsy?
|
|
72
|
-
- Does this error occur on the server and is the sheet falsy?
|
|
73
|
-
|
|
74
|
-
`,5:`The clone method cannot be used on the client!
|
|
75
|
-
|
|
76
|
-
- Are you running in a client-like environment on the server?
|
|
77
|
-
- Are you trying to run SSR on the client?
|
|
78
|
-
|
|
79
|
-
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
80
|
-
|
|
81
|
-
- Are you using a custom target that isn't mounted?
|
|
82
|
-
- Does your document not have a valid head element?
|
|
83
|
-
- Have you accidentally removed a style tag manually?
|
|
84
|
-
|
|
85
|
-
`,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.
|
|
86
|
-
|
|
87
|
-
`,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
|
|
88
|
-
|
|
89
|
-
`,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.
|
|
90
|
-
|
|
91
|
-
`,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.
|
|
92
|
-
|
|
93
|
-
`,14:`ThemeProvider: "theme" prop is required.
|
|
94
|
-
|
|
95
|
-
`,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.
|
|
96
|
-
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
97
|
-
as for instance in your render method then you may be running into this limitation.
|
|
98
|
-
|
|
99
|
-
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
100
|
-
Has styled-components' style tag been unmounted or altered by another script?
|
|
101
|
-
`}:{};function No(){for(var e=arguments.length<=0?void 0:arguments[0],o=[],r=1,n=arguments.length;r<n;r+=1)o.push(r<0||arguments.length<=r?void 0:arguments[r]);return o.forEach(function(i){e=e.replace(/%[a-z]/,i)}),e}function Ke(e){for(var o=arguments.length,r=new Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];throw process.env.NODE_ENV==="production"?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):"")):new Error(No.apply(void 0,[To[e]].concat(r)).trim())}var Ao=function(){function e(r){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=r}var o=e.prototype;return o.indexOfGroup=function(r){for(var n=0,i=0;i<r;i++)n+=this.groupSizes[i];return n},o.insertRules=function(r,n){if(r>=this.groupSizes.length){for(var i=this.groupSizes,c=i.length,l=c;r>=l;)(l<<=1)<0&&Ke(16,""+r);this.groupSizes=new Uint32Array(l),this.groupSizes.set(i),this.length=l;for(var d=c;d<l;d++)this.groupSizes[d]=0}for(var f=this.indexOfGroup(r+1),h=0,p=n.length;h<p;h++)this.tag.insertRule(f,n[h])&&(this.groupSizes[r]++,f++)},o.clearGroup=function(r){if(r<this.length){var n=this.groupSizes[r],i=this.indexOfGroup(r),c=i+n;this.groupSizes[r]=0;for(var l=i;l<c;l++)this.tag.deleteRule(i)}},o.getGroup=function(r){var n="";if(r>=this.length||this.groupSizes[r]===0)return n;for(var i=this.groupSizes[r],c=this.indexOfGroup(r),l=c+i,d=c;d<l;d++)n+=this.tag.getRule(d)+`/*!sc*/
|
|
102
|
-
`;return n},e}(),lt=new Map,ut=new Map,Qe=1,nt=function(e){if(lt.has(e))return lt.get(e);for(;ut.has(Qe);)Qe++;var o=Qe++;return process.env.NODE_ENV!=="production"&&((0|o)<0||o>1<<30)&&Ke(16,""+o),lt.set(e,o),ut.set(o,e),o},Po=function(e){return ut.get(e)},jo=function(e,o){o>=Qe&&(Qe=o+1),lt.set(e,o),ut.set(o,e)},Oo="style["+Ge+'][data-styled-version="5.3.11"]',Io=new RegExp("^"+Ge+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Fo=function(e,o,r){for(var n,i=r.split(","),c=0,l=i.length;c<l;c++)(n=i[c])&&e.registerName(o,n)},Mo=function(e,o){for(var r=(o.textContent||"").split(`/*!sc*/
|
|
103
|
-
`),n=[],i=0,c=r.length;i<c;i++){var l=r[i].trim();if(l){var d=l.match(Io);if(d){var f=0|parseInt(d[1],10),h=d[2];f!==0&&(jo(h,f),Fo(e,h,d[3]),e.getTag().insertRules(f,n)),n.length=0}else n.push(l)}}},Lo=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},Sr=function(e){var o=document.head,r=e||o,n=document.createElement("style"),i=function(d){for(var f=d.childNodes,h=f.length;h>=0;h--){var p=f[h];if(p&&p.nodeType===1&&p.hasAttribute(Ge))return p}}(r),c=i!==void 0?i.nextSibling:null;n.setAttribute(Ge,"active"),n.setAttribute("data-styled-version","5.3.11");var l=Lo();return l&&n.setAttribute("nonce",l),r.insertBefore(n,c),n},Bo=function(){function e(r){var n=this.element=Sr(r);n.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var c=document.styleSheets,l=0,d=c.length;l<d;l++){var f=c[l];if(f.ownerNode===i)return f}Ke(17)}(n),this.length=0}var o=e.prototype;return o.insertRule=function(r,n){try{return this.sheet.insertRule(n,r),this.length++,!0}catch{return!1}},o.deleteRule=function(r){this.sheet.deleteRule(r),this.length--},o.getRule=function(r){var n=this.sheet.cssRules[r];return n!==void 0&&typeof n.cssText=="string"?n.cssText:""},e}(),Do=function(){function e(r){var n=this.element=Sr(r);this.nodes=n.childNodes,this.length=0}var o=e.prototype;return o.insertRule=function(r,n){if(r<=this.length&&r>=0){var i=document.createTextNode(n),c=this.nodes[r];return this.element.insertBefore(i,c||null),this.length++,!0}return!1},o.deleteRule=function(r){this.element.removeChild(this.nodes[r]),this.length--},o.getRule=function(r){return r<this.length?this.nodes[r].textContent:""},e}(),Wo=function(){function e(r){this.rules=[],this.length=0}var o=e.prototype;return o.insertRule=function(r,n){return r<=this.length&&(this.rules.splice(r,0,n),this.length++,!0)},o.deleteRule=function(r){this.rules.splice(r,1),this.length--},o.getRule=function(r){return r<this.length?this.rules[r]:""},e}(),lr=Ot,Ho={isServer:!Ot,useCSSOMInjection:!zo},br=function(){function e(r,n,i){r===void 0&&(r=Le),n===void 0&&(n={}),this.options=Oe({},Ho,{},r),this.gs=n,this.names=new Map(i),this.server=!!r.isServer,!this.server&&Ot&&lr&&(lr=!1,function(c){for(var l=document.querySelectorAll(Oo),d=0,f=l.length;d<f;d++){var h=l[d];h&&h.getAttribute(Ge)!=="active"&&(Mo(c,h),h.parentNode&&h.parentNode.removeChild(h))}}(this))}e.registerId=function(r){return nt(r)};var o=e.prototype;return o.reconstructWithOptions=function(r,n){return n===void 0&&(n=!0),new e(Oe({},this.options,{},r),this.gs,n&&this.names||void 0)},o.allocateGSInstance=function(r){return this.gs[r]=(this.gs[r]||0)+1},o.getTag=function(){return this.tag||(this.tag=(i=(n=this.options).isServer,c=n.useCSSOMInjection,l=n.target,r=i?new Wo(l):c?new Bo(l):new Do(l),new Ao(r)));var r,n,i,c,l},o.hasNameForId=function(r,n){return this.names.has(r)&&this.names.get(r).has(n)},o.registerName=function(r,n){if(nt(r),this.names.has(r))this.names.get(r).add(n);else{var i=new Set;i.add(n),this.names.set(r,i)}},o.insertRules=function(r,n,i){this.registerName(r,n),this.getTag().insertRules(nt(r),i)},o.clearNames=function(r){this.names.has(r)&&this.names.get(r).clear()},o.clearRules=function(r){this.getTag().clearGroup(nt(r)),this.clearNames(r)},o.clearTag=function(){this.tag=void 0},o.toString=function(){return function(r){for(var n=r.getTag(),i=n.length,c="",l=0;l<i;l++){var d=Po(l);if(d!==void 0){var f=r.names.get(d),h=n.getGroup(l);if(f&&h&&f.size){var p=Ge+".g"+l+'[id="'+d+'"]',m="";f!==void 0&&f.forEach(function(b){b.length>0&&(m+=b+",")}),c+=""+h+p+'{content:"'+m+`"}/*!sc*/
|
|
104
|
-
`}}}return c}(this)},e}(),Vo=/(a)(d)/gi,cr=function(e){return String.fromCharCode(e+(e>25?39:97))};function _t(e){var o,r="";for(o=Math.abs(e);o>52;o=o/52|0)r=cr(o%52)+r;return(cr(o%52)+r).replace(Vo,"$1-$2")}var We=function(e,o){for(var r=o.length;r;)e=33*e^o.charCodeAt(--r);return e},Cr=function(e){return We(5381,e)};function Yo(e){for(var o=0;o<e.length;o+=1){var r=e[o];if(et(r)&&!jt(r))return!1}return!0}var qo=Cr("5.3.11"),Uo=function(){function e(o,r,n){this.rules=o,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Yo(o),this.componentId=r,this.baseHash=We(qo,r),this.baseStyle=n,br.registerId(r)}return e.prototype.generateAndInjectStyles=function(o,r,n){var i=this.componentId,c=[];if(this.baseStyle&&c.push(this.baseStyle.generateAndInjectStyles(o,r,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(i,this.staticRulesId))c.push(this.staticRulesId);else{var l=Xe(this.rules,o,r,n).join(""),d=_t(We(this.baseHash,l)>>>0);if(!r.hasNameForId(i,d)){var f=n(l,"."+d,void 0,i);r.insertRules(i,d,f)}c.push(d),this.staticRulesId=d}else{for(var h=this.rules.length,p=We(this.baseHash,n.hash),m="",b=0;b<h;b++){var x=this.rules[b];if(typeof x=="string")m+=x,process.env.NODE_ENV!=="production"&&(p=We(p,x+b));else if(x){var y=Xe(x,o,r,n),a=Array.isArray(y)?y.join(""):y;p=We(p,a+b),m+=a}}if(m){var S=_t(p>>>0);if(!r.hasNameForId(i,S)){var P=n(m,"."+S,void 0,i);r.insertRules(i,S,P)}c.push(S)}}return c.join(" ")},e}(),Go=/^\s*\/\/.*$/gm,Xo=[":","[",".","#"];function Ko(e){var o,r,n,i,c=Le,l=c.options,d=l===void 0?Le:l,f=c.plugins,h=f===void 0?ct:f,p=new go(d),m=[],b=function(a){function S(P){if(P)try{a(P+"}")}catch{}}return function(P,_,O,j,v,U,ee,te,ce,I){switch(P){case 1:if(ce===0&&_.charCodeAt(0)===64)return a(_+";"),"";break;case 2:if(te===0)return _+"/*|*/";break;case 3:switch(te){case 102:case 112:return a(O[0]+_),"";default:return _+(I===0?"/*|*/":"")}case-2:_.split("/*|*/}").forEach(S)}}}(function(a){m.push(a)}),x=function(a,S,P){return S===0&&Xo.indexOf(P[r.length])!==-1||P.match(i)?a:"."+o};function y(a,S,P,_){_===void 0&&(_="&");var O=a.replace(Go,""),j=S&&P?P+" "+S+" { "+O+" }":O;return o=_,r=S,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),p(P||!S?"":S,j)}return p.use([].concat(h,[function(a,S,P){a===2&&P.length&&P[0].lastIndexOf(r)>0&&(P[0]=P[0].replace(n,x))},b,function(a){if(a===-2){var S=m;return m=[],S}}])),y.hash=h.length?h.reduce(function(a,S){return S.name||Ke(15),We(a,S.name)},5381).toString():"",y}var $r=A.createContext();$r.Consumer;var xr=A.createContext(),Zo=(xr.Consumer,new br),Rt=Ko();function Jo(){return A.useContext($r)||Zo}function Qo(){return A.useContext(xr)||Rt}var wr=function(){function e(o,r){var n=this;this.inject=function(i,c){c===void 0&&(c=Rt);var l=n.name+c.hash;i.hasNameForId(n.id,l)||i.insertRules(n.id,l,c(n.rules,l,"@keyframes"))},this.toString=function(){return Ke(12,String(n.name))},this.name=o,this.id="sc-keyframes-"+o,this.rules=r}return e.prototype.getName=function(o){return o===void 0&&(o=Rt),this.name+o.hash},e}(),en=/([A-Z])/,tn=/([A-Z])/g,rn=/^ms-/,on=function(e){return"-"+e.toLowerCase()};function ur(e){return en.test(e)?e.replace(tn,on).replace(rn,"-ms-"):e}var dr=function(e){return e==null||e===!1||e===""};function Xe(e,o,r,n){if(Array.isArray(e)){for(var i,c=[],l=0,d=e.length;l<d;l+=1)(i=Xe(e[l],o,r,n))!==""&&(Array.isArray(i)?c.push.apply(c,i):c.push(i));return c}if(dr(e))return"";if(jt(e))return"."+e.styledComponentId;if(et(e)){if(typeof(h=e)!="function"||h.prototype&&h.prototype.isReactComponent||!o)return e;var f=e(o);return process.env.NODE_ENV!=="production"&&Nt.isElement(f)&&console.warn(kt(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."),Xe(f,o,r,n)}var h;return e instanceof wr?r?(e.inject(r,n),e.getName(n)):e:Et(e)?function p(m,b){var x,y,a=[];for(var S in m)m.hasOwnProperty(S)&&!dr(m[S])&&(Array.isArray(m[S])&&m[S].isCss||et(m[S])?a.push(ur(S)+":",m[S],";"):Et(m[S])?a.push.apply(a,p(m[S],S)):a.push(ur(S)+": "+(x=S,(y=m[S])==null||typeof y=="boolean"||y===""?"":typeof y!="number"||y===0||x in ho||x.startsWith("--")?String(y).trim():y+"px")+";"));return b?[b+" {"].concat(a,["}"]):a}(e):e.toString()}var fr=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function z(e){for(var o=arguments.length,r=new Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return et(e)||Et(e)?fr(Xe(ar(ct,[e].concat(r)))):r.length===0&&e.length===1&&typeof e[0]=="string"?e:fr(Xe(ar(e,r)))}var gr=/invalid hook call/i,it=new Set,nn=function(e,o){if(process.env.NODE_ENV!=="production"){var r="The component "+e+(o?' with the id of "'+o+'"':"")+` has been created dynamically.
|
|
105
|
-
You may see this warning because you've called styled inside another component.
|
|
106
|
-
To resolve this only create new StyledComponents outside of any render method and function component.`,n=console.error;try{var i=!0;console.error=function(c){if(gr.test(c))i=!1,it.delete(r);else{for(var l=arguments.length,d=new Array(l>1?l-1:0),f=1;f<l;f++)d[f-1]=arguments[f];n.apply(void 0,[c].concat(d))}},A.useRef(),i&&!it.has(r)&&(console.warn(r),it.add(r))}catch(c){gr.test(c.message)&&it.delete(r)}finally{console.error=n}}},sn=function(e,o,r){return r===void 0&&(r=Le),e.theme!==r.theme&&e.theme||o||r.theme},an=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ln=/(^-|-$)/g;function St(e){return e.replace(an,"-").replace(ln,"")}var Er=function(e){return _t(Cr(e)>>>0)};function st(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var zt=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},cn=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function un(e,o,r){var n=e[r];zt(o)&&zt(n)?kr(n,o):e[r]=o}function kr(e){for(var o=arguments.length,r=new Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];for(var i=0,c=r;i<c.length;i++){var l=c[i];if(zt(l))for(var d in l)cn(d)&&un(e,l[d],d)}return e}var _r=A.createContext();_r.Consumer;var bt={};function Rr(e,o,r){var n=jt(e),i=!st(e),c=o.attrs,l=c===void 0?ct:c,d=o.componentId,f=d===void 0?function(_,O){var j=typeof _!="string"?"sc":St(_);bt[j]=(bt[j]||0)+1;var v=j+"-"+Er("5.3.11"+j+bt[j]);return O?O+"-"+v:v}(o.displayName,o.parentComponentId):d,h=o.displayName,p=h===void 0?function(_){return st(_)?"styled."+_:"Styled("+kt(_)+")"}(e):h,m=o.displayName&&o.componentId?St(o.displayName)+"-"+o.componentId:o.componentId||f,b=n&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,x=o.shouldForwardProp;n&&e.shouldForwardProp&&(x=o.shouldForwardProp?function(_,O,j){return e.shouldForwardProp(_,O,j)&&o.shouldForwardProp(_,O,j)}:e.shouldForwardProp);var y,a=new Uo(r,m,n?e.componentStyle:void 0),S=a.isStatic&&l.length===0,P=function(_,O){return function(j,v,U,ee){var te=j.attrs,ce=j.componentStyle,I=j.defaultProps,ge=j.foldedComponentIds,X=j.shouldForwardProp,Y=j.styledComponentId,ae=j.target,W=function(F,g,q){F===void 0&&(F=Le);var w=Oe({},g,{theme:F}),Q={};return q.forEach(function(H){var G,C,ue,pe=H;for(G in et(pe)&&(pe=pe(w)),pe)w[G]=Q[G]=G==="className"?(C=Q[G],ue=pe[G],C&&ue?C+" "+ue:C||ue):pe[G]}),[w,Q]}(sn(v,A.useContext(_r),I)||Le,v,te),Ee=W[0],Se=W[1],he=function(F,g,q,w){var Q=Jo(),H=Qo(),G=g?F.generateAndInjectStyles(Le,Q,H):F.generateAndInjectStyles(q,Q,H);return process.env.NODE_ENV!=="production"&&!g&&w&&w(G),G}(ce,ee,Ee,process.env.NODE_ENV!=="production"?j.warnTooManyClasses:void 0),ke=U,Ce=Se.$as||v.$as||Se.as||v.as||ae,ze=st(Ce),N=Se!==v?Oe({},v,{},Se):v,k={};for(var T in N)T[0]!=="$"&&T!=="as"&&(T==="forwardedAs"?k.as=N[T]:(X?X(T,tr,Ce):!ze||tr(T))&&(k[T]=N[T]));return v.style&&Se.style!==v.style&&(k.style=Oe({},v.style,{},Se.style)),k.className=Array.prototype.concat(ge,Y,he!==Y?he:null,v.className,Se.className).filter(Boolean).join(" "),k.ref=ke,A.createElement(Ce,k)}(y,_,O,S)};return P.displayName=p,(y=A.forwardRef(P)).attrs=b,y.componentStyle=a,y.displayName=p,y.shouldForwardProp=x,y.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):ct,y.styledComponentId=m,y.target=n?e.target:e,y.withComponent=function(_){var O=o.componentId,j=function(U,ee){if(U==null)return{};var te,ce,I={},ge=Object.keys(U);for(ce=0;ce<ge.length;ce++)te=ge[ce],ee.indexOf(te)>=0||(I[te]=U[te]);return I}(o,["componentId"]),v=O&&O+"-"+(st(_)?_:St(kt(_)));return Rr(_,Oe({},j,{attrs:b,componentId:v}),r)},Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(_){this._foldedDefaultProps=n?kr({},e.defaultProps,_):_}}),process.env.NODE_ENV!=="production"&&(nn(p,m),y.warnTooManyClasses=function(_,O){var j={},v=!1;return function(U){if(!v&&(j[U]=!0,Object.keys(j).length>=200)){var ee=O?' with the id of "'+O+'"':"";console.warn("Over 200 classes were generated for component "+_+ee+`.
|
|
107
|
-
Consider using the attrs method, together with a style object for frequently changed styles.
|
|
108
|
-
Example:
|
|
109
|
-
const Component = styled.div.attrs(props => ({
|
|
110
|
-
style: {
|
|
111
|
-
background: props.background,
|
|
112
|
-
},
|
|
113
|
-
}))\`width: 100%;\`
|
|
114
|
-
|
|
115
|
-
<Component />`),v=!0,j={}}}}(p,m)),Object.defineProperty(y,"toString",{value:function(){return"."+y.styledComponentId}}),i&&Ro(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),y}var E=function(e){return function o(r,n,i){if(i===void 0&&(i=Le),!Nt.isValidElementType(n))return Ke(1,String(n));var c=function(){return r(n,i,z.apply(void 0,arguments))};return c.withConfig=function(l){return o(r,n,Oe({},i,{},l))},c.attrs=function(l){return o(r,n,Oe({},i,{attrs:Array.prototype.concat(i.attrs,l).filter(Boolean)}))},c}(Rr,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){E[e]=E(e)});function Fe(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 o=arguments.length,r=new Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];var i=z.apply(void 0,[e].concat(r)).join(""),c=Er(i);return new wr(c,i)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
116
|
-
Perhaps you're looking to import 'styled-components/native'?
|
|
117
|
-
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.
|
|
118
|
-
|
|
119
|
-
See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]+=1);const dn=E.div`
|
|
120
|
-
${V.resetStyles}
|
|
121
|
-
display: flex;
|
|
122
|
-
align-items: center;
|
|
123
|
-
justify-content: center;
|
|
124
|
-
position: absolute;
|
|
125
|
-
background-color: ${e=>e.color};
|
|
126
|
-
color: ${t.sg.colors.neutralColors.colorNeutralSnow};
|
|
127
|
-
|
|
128
|
-
${e=>e.withBorder&&z`
|
|
129
|
-
border: 2px solid ${t.sg.colors.neutralColors.colorNeutralSnow};
|
|
130
|
-
`}
|
|
131
|
-
|
|
132
|
-
${e=>e.top&&z`
|
|
133
|
-
top: ${e.top};
|
|
134
|
-
`}
|
|
135
|
-
|
|
136
|
-
${e=>e.right&&z`
|
|
137
|
-
right: ${e.right};
|
|
138
|
-
`}
|
|
139
|
-
|
|
140
|
-
${e=>{switch(e.size){case"small":return z`
|
|
141
|
-
width: 4px;
|
|
142
|
-
height: 4px;
|
|
143
|
-
border-radius: 2px;
|
|
144
|
-
`;case"medium":return z`
|
|
145
|
-
width: 8px;
|
|
146
|
-
height: 8px;
|
|
147
|
-
border-radius: 4px;
|
|
148
|
-
`;case"large":return e.isRound?z`
|
|
149
|
-
width: 16px;
|
|
150
|
-
height: 16px;
|
|
151
|
-
border-radius: 50%;
|
|
152
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
153
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightBold};
|
|
154
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeBodySm};
|
|
155
|
-
display: flex;
|
|
156
|
-
align-items: center;
|
|
157
|
-
justify-content: center;
|
|
158
|
-
`:z`
|
|
159
|
-
min-width: 16px;
|
|
160
|
-
height: 16px;
|
|
161
|
-
border-radius: 8px;
|
|
162
|
-
padding: 0 4px;
|
|
163
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
164
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightBold};
|
|
165
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeBodySm};
|
|
166
|
-
white-space: nowrap;
|
|
167
|
-
`;default:return""}}}
|
|
168
|
-
`,It=({size:e,color:o=t.sg.colors.feedbackColors.colorFeedbackError,content:r,withBorder:n=!1,top:i,right:c})=>{let l;if(e==="large"&&r!==void 0&&r!==null){if(typeof r=="number")l=r>999?"999+":r;else if(typeof r=="string"){const f=parseInt(r,10);isNaN(f)?l=r.length>3?`${r.slice(0,2)}+`:r:l=f>999?"999+":f}}else l=void 0;const d=e==="large"&&r!==void 0&&r!==null&&String(r).length===1;return u.jsx(dn,{size:e,color:o,withBorder:n,top:i,right:c,isRound:d,children:l})};It.displayName="Badge";const fn=Fe`
|
|
169
|
-
from {
|
|
170
|
-
transform: rotate(0deg);
|
|
171
|
-
}
|
|
172
|
-
to {
|
|
173
|
-
transform: rotate(360deg);
|
|
174
|
-
}
|
|
175
|
-
`,gn=E.button`
|
|
176
|
-
${V.resetStyles}
|
|
177
|
-
display: flex;
|
|
178
|
-
justify-content: center;
|
|
179
|
-
align-items: center;
|
|
180
|
-
gap: ${({size:e})=>e==="Small"?t.sg.spacings.spacingStack.spacingStackNano:t.sg.spacings.spacingStack.spacingStackXs};
|
|
181
|
-
padding: ${({size:e})=>e==="Small"?`0 ${t.sg.spacings.spacingInline.spacingInlineAnt}`:`0 ${t.sg.spacings.spacingInline.spacingInlineSm}`};
|
|
182
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
183
|
-
font-size: ${({size:e})=>e==="Small"?t.sg.fonts.fontSize.fontSizeBodyMd:t.sg.fonts.fontSize.fontSizeBodyLg};
|
|
184
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
185
|
-
white-space: nowrap;
|
|
186
|
-
width: ${({width:e})=>e};
|
|
187
|
-
min-height: ${({size:e})=>e==="Small"?"3.2rem":"4rem"};
|
|
188
|
-
min-width: 'fit-content';
|
|
189
|
-
max-height: ${({size:e})=>e==="Small"?"3.2rem":"4rem"};
|
|
190
|
-
border-radius: ${t.sg.borders.borderRadius.borderRadiusSm};
|
|
191
|
-
${({variant:e})=>{if(e==="primary")return z`
|
|
192
|
-
background-color: ${t.sg.colors.brandColors.colorBrandPrimary};
|
|
193
|
-
color: ${t.sg.colors.backgroundColors.colorBackgroundSnow};
|
|
194
|
-
transition: filter 0.2s;
|
|
195
|
-
cursor: pointer;
|
|
196
|
-
|
|
197
|
-
&:hover {
|
|
198
|
-
background-color: ${t.sg.colors.brandColors.colorBrandDark};
|
|
199
|
-
}
|
|
200
|
-
`;if(e==="secondary")return z`
|
|
201
|
-
background-color: rgba(
|
|
202
|
-
${V.convertHexToRGB(t.sg.colors.neutralColors.colorNeutralSoft)},
|
|
203
|
-
${t.sg.opacityLevels.light}
|
|
204
|
-
);
|
|
205
|
-
color: ${t.sg.colors.neutralColors.colorNeutralDark};
|
|
206
|
-
border: 1px solid ${t.sg.colors.neutralColors.colorNeutralClean};
|
|
207
|
-
transition: filter 0.2s;
|
|
208
|
-
cursor: pointer;
|
|
209
|
-
|
|
210
|
-
&:hover {
|
|
211
|
-
border-color: ${t.sg.colors.neutralColors.colorNeutralCleanest};
|
|
212
|
-
}
|
|
213
|
-
`;if(e==="tertiary")return z`
|
|
214
|
-
background-color: transparent;
|
|
215
|
-
color: ${t.sg.colors.neutralColors.colorNeutralDark};
|
|
216
|
-
border: ${t.sg.borders.borderWidth.borderWidthNone};
|
|
217
|
-
transition: filter 0.2s;
|
|
218
|
-
cursor: pointer;
|
|
219
|
-
|
|
220
|
-
&:hover {
|
|
221
|
-
border: 1px solid ${t.sg.colors.neutralColors.colorNeutralClean};
|
|
222
|
-
}
|
|
223
|
-
`}};
|
|
224
|
-
${({disabled:e})=>e&&z`
|
|
225
|
-
background-color: ${t.sg.colors.brandColors.colorBrandSeSoft};
|
|
226
|
-
color: ${t.sg.colors.neutralColors.colorNeutralCloudy};
|
|
227
|
-
border: none;
|
|
228
|
-
transition: filter 0.2s;
|
|
229
|
-
cursor: not-allowed;
|
|
230
|
-
|
|
231
|
-
&:hover {
|
|
232
|
-
background-color: ${t.sg.colors.brandColors.colorBrandSeSoft};
|
|
233
|
-
border-color: ${t.sg.colors.neutralColors.colorNeutralClean};
|
|
234
|
-
}
|
|
235
|
-
`}
|
|
236
|
-
|
|
237
|
-
& > i > svg {
|
|
238
|
-
width: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeAnt};
|
|
239
|
-
height: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeAnt};
|
|
240
|
-
|
|
241
|
-
${({isLoading:e})=>e&&z`
|
|
242
|
-
animation: ${fn} 2s linear infinite;
|
|
243
|
-
`}
|
|
244
|
-
|
|
245
|
-
path {
|
|
246
|
-
fill: ${({variant:e,disabled:o,error:r,isLoading:n})=>o?t.sg.colors.neutralColors.colorNeutralCloudy:r&&!n?t.sg.colors.feedbackColors.colorFeedbackError:e==="primary"?t.sg.colors.backgroundColors.colorBackgroundSnow:t.sg.colors.neutralColors.colorNeutralDark};
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
`,tt=({name:e,type:o="button",variant:r="primary",width:n="100%",size:i="Small",disabled:c=!1,isLoading:l=!1,onClick:d,custom:f,icon:h,iconColor:p=t.sg.colors.neutralColors.colorNeutralDark,iconPosition:m="left",error:b,tooltipProps:x={},...y})=>{var te;const a=ce=>typeof ce=="string",S=(ce,I)=>u.jsx(t.Icon,{iconName:ce,color:I}),P={Small:"ProgressActivitySm",Large:"ProgressActivityAnt"},O=b&&!l&&S({Small:"ErrorSm",Large:"ErrorAnt"}[i],t.sg.colors.feedbackColors.colorFeedbackError),j=l&&S(P[i],t.sg.colors.neutralColors.colorNeutralDark),v=h&&!b&&!l&&m==="left"&&(a(h)?S(h,p):h),U=h&&!b&&!l&&m==="right"&&(a(h)?S(h,p):h),ee={position:"bottom",...x,isErrorTooltip:!!b,label:b??x.label,isActive:!!b&&!c||!!x.label&&!l,textAlign:"center",maxWidth:(te=x.customStyle)==null?void 0:te.maxWidth};return u.jsx(Ie,{id:"error-button",...ee,children:u.jsxs(gn,{type:o,width:n,size:i,disabled:c,variant:r,isLoading:l,error:b,onClick:()=>!l&&!c&&d(),style:f,id:`button-component-${e}`,...y,children:[O,j,v,e,U]})})};tt.displayName="Button";const hn=E.div`
|
|
250
|
-
${V.resetStyles}
|
|
251
|
-
display: flex;
|
|
252
|
-
flex-direction: row;
|
|
253
|
-
align-items: center;
|
|
254
|
-
padding: ${t.sg.spacings.spacingStack.spacingStackNano};
|
|
255
|
-
position: relative;
|
|
256
|
-
width: ${({width:e})=>e};
|
|
257
|
-
height: ${({size:e})=>e==="Medium"?"2rem":"1.6rem"};
|
|
258
|
-
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
259
|
-
`,rt=E.input`
|
|
260
|
-
font-size: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeMd};
|
|
261
|
-
accent-color: ${t.sg.colors.brandColors.colorBrandSoft};
|
|
262
|
-
width: 0;
|
|
263
|
-
opacity: 0;
|
|
264
|
-
display: none;
|
|
265
|
-
`,pn=E.label`
|
|
266
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
267
|
-
font-size: ${({size:e})=>e==="Small"?t.sg.fonts.fontSize.fontSizeBodyMd:t.sg.fonts.fontSize.fontSizeBodyLg};
|
|
268
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
269
|
-
line-height: ${({size:e})=>e==="Small"?t.sg.fonts.lineHeight.lineHeightSm(t.sg.fonts.fontSize.fontSizeBodyMd):t.sg.fonts.lineHeight.lineHeightMd(t.sg.fonts.fontSize.fontSizeBodyLg)};
|
|
270
|
-
color: ${({disabled:e})=>e?t.sg.colors.neutralColors.colorNeutralCloudy:t.sg.colors.neutralColors.colorNeutralDark};
|
|
271
|
-
margin-left: ${({size:e})=>e==="Small"?"1.55rem":"2.3rem"};
|
|
272
|
-
|
|
273
|
-
&:hover {
|
|
274
|
-
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
275
|
-
}
|
|
276
|
-
`,mn=E.div`
|
|
277
|
-
width: fit-content;
|
|
278
|
-
position: absolute;
|
|
279
|
-
top: ${({size:e})=>e==="Small"?"calc(50% + 0.5rem)":"calc(50% + 0.4rem)"};
|
|
280
|
-
transform: ${({size:e})=>e==="Small"?"translateY(calc(-50% - 0.3rem))":"translateY(calc(-50% - 0.1rem))"};
|
|
281
|
-
left: 0;
|
|
282
|
-
|
|
283
|
-
${rt}:checked ~ & {
|
|
284
|
-
opacity: 1;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
${rt}:not(:checked) ~ & {
|
|
288
|
-
opacity: 0;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
& > i > svg {
|
|
292
|
-
width: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeMd};
|
|
293
|
-
height: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeMd};
|
|
294
|
-
|
|
295
|
-
path {
|
|
296
|
-
fill: ${({disabled:e,checkColor:o})=>e?t.sg.colors.neutralColors.colorNeutralClean:o==="Default"?t.sg.colors.brandColors.colorBrandPrimary:t.sg.colors.auxiliariesColors.colorAuxOneDark} !important;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
`,yn=E.div`
|
|
300
|
-
width: fit-content;
|
|
301
|
-
position: absolute;
|
|
302
|
-
top: ${({size:e})=>e==="Small"?"calc(50% + 0.5rem)":"calc(50% + 0.4rem)"};
|
|
303
|
-
transform: ${({size:e})=>e==="Small"?"translateY(calc(-50% - 0.3rem))":"translateY(calc(-50% - 0.1rem))"};
|
|
304
|
-
left: 0;
|
|
305
|
-
|
|
306
|
-
${rt}:checked ~ & {
|
|
307
|
-
opacity: 0;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
${rt}:not(:checked) ~ & {
|
|
311
|
-
opacity: 1;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
& > i > svg {
|
|
315
|
-
width: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeMd};
|
|
316
|
-
height: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeMd};
|
|
317
|
-
|
|
318
|
-
path {
|
|
319
|
-
fill: ${({disabled:e})=>e?t.sg.colors.neutralColors.colorNeutralClean:t.sg.colors.neutralColors.colorNeutralDark};
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
`,zr=A.forwardRef(({id:e,label:o,size:r="Medium",value:n,name:i,disabled:c=!1,width:l="100%",variant:d="Selected",onChange:f,gridRow:h,gridColumn:p,checked:m,checkColor:b="Default",...x},y)=>{const a=A.useRef(null);return u.jsx(hn,{width:l,size:r,disabled:c,children:u.jsxs(pn,{htmlFor:`Checkbox-${o||e}`,disabled:c,size:r,"data-testid":"checkbox-label",children:[u.jsx(rt,{type:"checkbox",disabled:c,id:`Checkbox-${o||e}`,size:r,"data-testid":"checkbox",value:n,checked:m,name:i,onChange:f,gridRow:h,gridColumn:p,...x,ref:S=>{a.current=S,typeof y=="function"?y(S):y&&(y.current=S)}}),u.jsx(mn,{size:r,disabled:c,checkColor:b,children:d==="Selected"?u.jsx(t.Icon,{iconName:`CheckBoxFill1${r==="Small"?"Ant":"Sm"}`}):u.jsx(t.Icon,{iconName:`CheckboxLess${r==="Small"?"Ant":"Sm"}`})}),u.jsx(yn,{size:r,disabled:c,children:u.jsx(t.Icon,{iconName:`CheckBoxOutlineBlankFill0${r==="Small"?"Ant":"Sm"}`})}),o]})})});zr.displayName="Checkbox";const vn={left:"flex-start",center:"center",right:"flex-end"},Sn={top:"flex-start",center:"center",bottom:"flex-end"},bn={vertical:"column",horizontal:"row"},Cn=E.div`
|
|
323
|
-
display: flex;
|
|
324
|
-
|
|
325
|
-
background-color: ${e=>t.sg.colors.backgroundColors[`colorBackground${V.capitalizeFirstLetter(e.backgroundColor)}`]??e.backgroundColor??"transparent"};
|
|
326
|
-
${({width:e,minWidth:o,height:r,minHeight:n,flex:i,padding:c,direction:l,gap:d,wrap:f})=>z`
|
|
327
|
-
width: ${e};
|
|
328
|
-
height: ${r};
|
|
329
|
-
flex: ${i};
|
|
330
|
-
min-width: ${o};
|
|
331
|
-
min-height: ${n};
|
|
332
|
-
padding: ${c};
|
|
333
|
-
flex-direction: ${bn[l]};
|
|
334
|
-
flex-wrap: ${f};
|
|
335
|
-
gap: ${d};
|
|
336
|
-
`};
|
|
337
|
-
${({direction:e,horizontalAlign:o,verticalAlign:r})=>{const n=vn[o]||"left",i=Sn[r]||"top";return e==="vertical"?z`
|
|
338
|
-
justify-content: ${i};
|
|
339
|
-
align-items: ${n};
|
|
340
|
-
`:z`
|
|
341
|
-
justify-content: ${n};
|
|
342
|
-
align-items: ${i};
|
|
343
|
-
`}};
|
|
344
|
-
${({scroll:e})=>{let o="hidden",r="hidden";return["vertical","both"].includes(e)&&(r="auto"),["horizontal","both"].includes(e)&&(o="auto"),e==="unset"&&(o="unset",r="unset"),z`
|
|
345
|
-
overflow-x: ${o};
|
|
346
|
-
overflow-y: ${r};
|
|
347
|
-
`}};
|
|
348
|
-
`,we=A.forwardRef(({title:e,width:o="fit-content",height:r="fit-content",flex:n="none",padding:i="0px",direction:c="vertical",gap:l="0px",horizontalAlign:d="left",verticalAlign:f="top",scroll:h="hidden",minWidth:p="initial",minHeight:m="initial",wrap:b="nowrap",backgroundColor:x,customStyles:y,onClick:a,children:S},P)=>u.jsx(Cn,{ref:P,title:e,width:o,minWidth:p,height:r,minHeight:m,flex:n,padding:i,direction:c,gap:l,horizontalAlign:d,verticalAlign:f,scroll:h,wrap:b,backgroundColor:x,style:{cursor:a?"pointer":void 0,...y||{}},onClick:a,children:S}));we.displayName="Container";var $n=e=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 33",...e,fill:e.color||"currentColor",children:u.jsx("path",{fill:e.color||"currentColor",d:"M13.467 18.754 16.5 16.92l3.033 1.833-.8-3.466 2.667-2.3-3.5-.3-1.4-3.267-1.4 3.267-3.5.3 2.667 2.3zm-6.3 9.333V6.197q0-.9.66-1.56.663-.66 1.562-.661h14.222q.9 0 1.561.66.661.662.661 1.562v21.889l-9.333-4zm2.222-3.378 7.111-3.022 7.111 3.022V6.198H9.389z"})}),xn=$n,wn=e=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:u.jsx("path",{fill:e.color||"currentColor",d:"m11.567 22.489 4.933-4.934 4.933 4.933 1.556-1.555L18.056 16l4.933-4.934-1.556-1.555-4.933 4.933-4.933-4.933-1.556 1.555L14.945 16l-4.934 4.933zm4.933 6.844q-2.745 0-5.178-1.05a13.5 13.5 0 0 1-4.244-2.861 13.5 13.5 0 0 1-2.861-4.245A12.9 12.9 0 0 1 3.167 16q0-2.767 1.05-5.2a13.4 13.4 0 0 1 2.86-4.234 13.6 13.6 0 0 1 4.245-2.85q2.434-1.05 5.178-1.05 2.767 0 5.2 1.05t4.233 2.85 2.85 4.234 1.05 5.2q0 2.745-1.05 5.177a13.6 13.6 0 0 1-2.85 4.245 13.4 13.4 0 0 1-4.233 2.86q-2.433 1.05-5.2 1.05"})}),En=wn,kn=e=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:u.jsx("path",{fill:e.color||"currentColor",d:"m14.567 22.089 9.422-9.423-1.645-1.622-7.777 7.778-3.934-3.933-1.622 1.622zm1.933 7.244q-2.745 0-5.178-1.05a13.5 13.5 0 0 1-4.244-2.861 13.5 13.5 0 0 1-2.861-4.245A12.9 12.9 0 0 1 3.167 16q0-2.767 1.05-5.2a13.4 13.4 0 0 1 2.86-4.234 13.6 13.6 0 0 1 4.245-2.85q2.434-1.05 5.178-1.05 2.767 0 5.2 1.05t4.233 2.85 2.85 4.234 1.05 5.2q0 2.745-1.05 5.177a13.6 13.6 0 0 1-2.85 4.245 13.4 13.4 0 0 1-4.233 2.86q-2.433 1.05-5.2 1.05"})}),_n=kn,Rn=e=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:u.jsx("path",{fill:e.color||"currentColor",d:"m8.878 25.177-1.556-1.555 7.623-7.623-7.623-7.622 1.556-1.555 7.622 7.622 7.622-7.622 1.556 1.555L18.056 16l7.622 7.623-1.556 1.555-7.622-7.622z"})}),zn=Rn,Tn=e=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:u.jsx("path",{fill:e.color||"currentColor",d:"M6.722 28q-.944 0-1.583-.64-.639-.638-.639-1.582V6.221q0-.945.639-1.583.64-.64 1.583-.64h6.345q.278-1.166 1.244-1.916.967-.75 2.189-.75 1.245 0 2.206.75T19.944 4h6.334q.945 0 1.583.639.639.638.639 1.583v19.556q0 .944-.639 1.583-.64.639-1.583.639zm0-2.222h19.556V6.221h-2.222v3.333H8.944V6.222H6.722zM16.5 6.221q.566 0 .95-.383a1.3 1.3 0 0 0 .383-.95 1.3 1.3 0 0 0-.383-.95 1.3 1.3 0 0 0-.95-.384 1.3 1.3 0 0 0-.95.384 1.3 1.3 0 0 0-.383.95q0 .566.383.95.384.383.95.383"})}),Nn=Tn,An=e=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:u.jsx("path",{fill:e.color||"currentColor",d:"M16.5 22.666q.5 0 .839-.338t.339-.84a1.14 1.14 0 0 0-.339-.838 1.14 1.14 0 0 0-.838-.34 1.14 1.14 0 0 0-.84.34 1.14 1.14 0 0 0-.339.838q0 .5.339.84.338.338.839.338m-1.044-5.178h2.222V9.2h-2.222zm1.05 11.845q-2.76 0-5.189-1.05a13.5 13.5 0 0 1-4.24-2.861 13.5 13.5 0 0 1-2.86-4.241q-1.05-2.43-1.05-5.193t1.05-5.192 2.86-4.23a13.6 13.6 0 0 1 4.242-2.85q2.43-1.05 5.192-1.05t5.193 1.05 4.23 2.85 2.85 4.234 1.05 5.194-1.05 5.189q-1.05 2.427-2.85 4.235a13.5 13.5 0 0 1-4.234 2.86q-2.433 1.056-5.194 1.055"})}),Pn=An,jn=e=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:u.jsx("path",{fill:e.color||"currentColor",d:"M10.078 20.5 8.5 18.922l8-8 8 7.978-1.578 1.577-6.422-6.422z"})}),On=jn,In=e=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:u.jsx("path",{fill:e.color||"currentColor",d:"m16.5 20.5-8-8 1.578-1.578 6.422 6.444 6.422-6.422 1.578 1.578z"})}),Fn=In,Mn=e=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:u.jsx("path",{fill:e.color||"currentColor",d:"M5.389 26.666q-.878 0-1.55-.672t-.672-1.55V7.555q0-.878.672-1.55t1.55-.672H14.3l2.222 2.222h11.09q.876 0 1.55.672.67.673.671 1.55H15.578l-2.222-2.222H5.389v16.89L8.722 12h23.111l-3.522 13.01q-.222.823-.817 1.24-.594.416-1.438.416zm2.333-2.222h18.445l2.666-10.222H10.39z"})}),Ln=Mn,Bn=e=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:u.jsx("path",{fill:e.color||"currentColor",d:"M15.456 22.666h2.222v-8h-2.222zM16.5 12.133q.5 0 .839-.332t.339-.824q0-.51-.339-.855a1.13 1.13 0 0 0-.838-.345 1.13 1.13 0 0 0-.84.345q-.339.345-.339.855 0 .491.339.824.338.332.839.332m.006 17.2q-2.76 0-5.189-1.05a13.5 13.5 0 0 1-4.24-2.861 13.5 13.5 0 0 1-2.86-4.241q-1.05-2.43-1.05-5.193t1.05-5.192 2.86-4.23a13.6 13.6 0 0 1 4.242-2.85q2.43-1.05 5.192-1.05t5.193 1.05 4.23 2.85 2.85 4.234 1.05 5.194-1.05 5.189q-1.05 2.427-2.85 4.235a13.5 13.5 0 0 1-4.234 2.86q-2.433 1.056-5.194 1.055m.005-2.222q4.634 0 7.867-3.245t3.233-7.877q0-4.635-3.229-7.867-3.23-3.234-7.882-3.234-4.622 0-7.867 3.23Q5.39 11.346 5.39 16q0 4.621 3.244 7.866t7.878 3.245"})}),Dn=Bn,Wn=e=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:u.jsx("path",{fill:e.color||"currentColor",d:"M15.456 22.666h2.222v-8h-2.222zM16.5 12.133q.5 0 .839-.332t.339-.824q0-.51-.339-.855a1.13 1.13 0 0 0-.838-.345 1.13 1.13 0 0 0-.84.345q-.339.345-.339.855 0 .491.339.824.338.332.839.332m.006 17.2q-2.76 0-5.189-1.05a13.5 13.5 0 0 1-4.24-2.861 13.5 13.5 0 0 1-2.86-4.241q-1.05-2.43-1.05-5.193t1.05-5.192 2.86-4.23a13.6 13.6 0 0 1 4.242-2.85q2.43-1.05 5.192-1.05t5.193 1.05 4.23 2.85 2.85 4.234 1.05 5.194-1.05 5.189q-1.05 2.427-2.85 4.235a13.5 13.5 0 0 1-4.234 2.86q-2.433 1.056-5.194 1.055"})}),Ft=Wn,Hn=e=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 33",...e,fill:e.color||"currentColor",children:u.jsx("path",{fill:e.color||"currentColor",d:"M9.833 22.754q.567 0 .95-.384a1.3 1.3 0 0 0 .384-.95 1.3 1.3 0 0 0-.384-.95 1.3 1.3 0 0 0-.95-.383 1.3 1.3 0 0 0-.95.383 1.3 1.3 0 0 0-.383.95q0 .567.383.95.384.384.95.384M8.5 17.42h2.667v-8H8.5zm6.667 5.334H24.5v-2.667h-9.333zm0-5.334H24.5v-2.666h-9.333zm0-5.333H24.5V9.42h-9.333zm-9.334 16a2.57 2.57 0 0 1-1.883-.783 2.57 2.57 0 0 1-.783-1.884V6.754q0-1.101.783-1.884a2.57 2.57 0 0 1 1.883-.783h21.334q1.099 0 1.883.783.783.783.783 1.884V25.42q0 1.1-.783 1.884a2.57 2.57 0 0 1-1.883.783zm0-2.667h21.334V6.754H5.833z"})}),Vn=Hn,Yn=e=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:u.jsx("path",{fill:e.color||"currentColor",d:"M1.92 28 16.587 2.667 31.254 28zm4.6-2.667h20.134L16.587 8zM16.587 24q.567 0 .95-.383a1.3 1.3 0 0 0 .383-.95 1.3 1.3 0 0 0-.383-.95 1.3 1.3 0 0 0-.95-.384 1.3 1.3 0 0 0-.95.384 1.3 1.3 0 0 0-.383.95q0 .566.383.95.383.383.95.383m-1.333-4h2.666v-6.667h-2.667z"})}),qn=Yn,Un=e=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 33",...e,fill:e.color||"currentColor",children:u.jsx("path",{fill:e.color||"currentColor",d:"M1.833 28.087 16.5 2.754l14.667 25.333zm14.667-4q.567 0 .95-.383a1.3 1.3 0 0 0 .383-.95 1.3 1.3 0 0 0-.383-.95 1.3 1.3 0 0 0-.95-.384 1.3 1.3 0 0 0-.95.384 1.3 1.3 0 0 0-.383.95q0 .566.383.95.384.383.95.383m-1.333-4h2.666V13.42h-2.666z"})}),Gn=Un;const Xn=E.span`
|
|
349
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
350
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeBodyMd};
|
|
351
|
-
color: ${t.sg.colors.feedbackColors.colorFeedbackError};
|
|
352
|
-
display: flex;
|
|
353
|
-
justify-content: center;
|
|
354
|
-
gap: '4px';
|
|
355
|
-
`,Kn=E.div`
|
|
356
|
-
display: flex;
|
|
357
|
-
width: 100%;
|
|
358
|
-
flex: 1;
|
|
359
|
-
align-items: center;
|
|
360
|
-
justify-content: flex-start;
|
|
361
|
-
gap: ${t.sg.spacings.spacingInset.spacingInsetNano};
|
|
362
|
-
cursor: ${({onClick:e})=>e?"pointer":"default"};
|
|
363
|
-
`,Zn=E.div`
|
|
364
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
365
|
-
font-size: ${({type:e})=>e==="cloudy"?t.sg.fonts.fontSize.fontSizeBodyMd:t.sg.fonts.fontSize.fontSizeBodyLg};
|
|
366
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightBold};
|
|
367
|
-
color: ${({type:e})=>e==="cloudy"?t.sg.colors.neutralColors.colorNeutralCloudy:t.sg.colors.neutralColors.colorNeutralDarkest};
|
|
368
|
-
`,Jn=E.div`
|
|
369
|
-
display: flex;
|
|
370
|
-
align-items: center;
|
|
371
|
-
flex: 1;
|
|
372
|
-
height: 1px;
|
|
373
|
-
background-color: ${t.sg.colors.neutralColors.colorNeutralSoft};
|
|
374
|
-
`,Tr=({text:e,type:o="cloudy",collapsed:r=!1,collapsedValue:n=!0,onClick:i})=>u.jsxs(Kn,{onClick:r?i:null,children:[u.jsx(Zn,{type:o,children:e}),r&&(n?u.jsx(Fn,{size:"16px",color:t.sg.colors.neutralColors.colorNeutralDarkest}):u.jsx(On,{size:"16px",color:t.sg.colors.neutralColors.colorNeutralDarkest})),u.jsx(Jn,{})]});Tr.displayName="Label";const Qn=E.div`
|
|
375
|
-
display: flex;
|
|
376
|
-
width: 18.2rem;
|
|
377
|
-
height: 14.2rem;
|
|
378
|
-
padding: 2.4rem;
|
|
379
|
-
flex-direction: column;
|
|
380
|
-
justify-content: space-between;
|
|
381
|
-
background-color: ${({disabled:e})=>e?t.sg.colors.brandColors.colorBrandSeSoft:t.sg.colors.neutralColors.colorNeutralSnow};
|
|
382
|
-
border-radius: ${t.sg.borders.borderRadius.borderRadiusSm};
|
|
383
|
-
border: ${({disabled:e})=>e?`${t.sg.borders.borderWidth.borderWidthThinner} dashed ${t.sg.colors.neutralColors.colorNeutralClean}`:`${t.sg.borders.borderWidth.borderWidthThinner} solid ${t.sg.colors.neutralColors.colorNeutralClean}`};
|
|
384
|
-
|
|
385
|
-
&:hover {
|
|
386
|
-
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
387
|
-
border: ${({disabled:e})=>e?"none":`1px solid ${t.sg.colors.neutralColors.colorNeutralCleanest}`};
|
|
388
|
-
}
|
|
389
|
-
`,ei=E.h2`
|
|
390
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
391
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeBodyLg};
|
|
392
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
393
|
-
line-height: ${t.sg.fonts.lineHeight.lineHeightMd(t.sg.fonts.fontSize.fontSizeBodyLg)};
|
|
394
|
-
color: ${t.sg.colors.neutralColors.colorNeutralDarkest};
|
|
395
|
-
`,ti=E.div`
|
|
396
|
-
display: flex;
|
|
397
|
-
justify-content: center;
|
|
398
|
-
align-items: center;
|
|
399
|
-
width: 4rem;
|
|
400
|
-
height: 4rem;
|
|
401
|
-
padding: 0.4rem;
|
|
402
|
-
background-color: ${t.sg.colors.neutralColors.colorNeutralSoft};
|
|
403
|
-
opacity: ${({disabled:e})=>e?.65:1};
|
|
404
|
-
border-radius: ${t.sg.borders.borderRadius.borderRadiusSm};
|
|
405
|
-
`,ri=E.div`
|
|
406
|
-
${V.resetStyles}
|
|
407
|
-
width: ${({width:e})=>e};
|
|
408
|
-
display: flex;
|
|
409
|
-
flex-direction: column;
|
|
410
|
-
align-items: center;
|
|
411
|
-
`,oi=E.div`
|
|
412
|
-
${V.resetStyles}
|
|
413
|
-
font-weight: 600;
|
|
414
|
-
font-size: ${({fontSize:e})=>e||"10px"};
|
|
415
|
-
text-align: center;
|
|
416
|
-
line-height: 14px;
|
|
417
|
-
color: ${t.sg.colors.brandColors.colorBrandSoft};
|
|
418
|
-
`,ni=E.div`
|
|
419
|
-
${V.resetStyles}
|
|
420
|
-
width: ${({width:e})=>e||"100px"};
|
|
421
|
-
border-radius: 80px;
|
|
422
|
-
background-color: ${t.sg.colors.neutralColors.colorNeutralLighest};
|
|
423
|
-
height: 5px;
|
|
424
|
-
overflow: hidden;
|
|
425
|
-
position: relative;
|
|
426
|
-
`,ii=Fe`
|
|
427
|
-
0% {
|
|
428
|
-
left: -100%;
|
|
429
|
-
}
|
|
430
|
-
100% {
|
|
431
|
-
left: 100%;
|
|
432
|
-
}
|
|
433
|
-
`,si=E.div`
|
|
434
|
-
${V.resetStyles}
|
|
435
|
-
width: calc(100% / 3);
|
|
436
|
-
height: 100%;
|
|
437
|
-
background-color: ${t.sg.colors.brandColors.colorBrandSoft};
|
|
438
|
-
position: absolute;
|
|
439
|
-
border-radius: 80px;
|
|
440
|
-
animation: ${ii} 2s linear infinite;
|
|
441
|
-
`,Nr=({width:e,text:o,fontSize:r})=>u.jsxs(ri,{width:e,children:[u.jsx(ni,{width:e,children:u.jsx(si,{"data-testid":"loading-line",className:"loading-line"})}),o&&u.jsx(oi,{fontSize:r,children:o})]}),ai=Fe`
|
|
442
|
-
from {
|
|
443
|
-
transform: rotate(0deg);
|
|
444
|
-
}
|
|
445
|
-
to {
|
|
446
|
-
transform: rotate(360deg);
|
|
447
|
-
}
|
|
448
|
-
`,li={primary:{XSmall:"24px",Small:"32px",Large:"40px"},secondary:{XSmall:"16px",Small:"20px",Large:"24px"}},hr=(e,o)=>li[o][e],dt=e=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeAnt,ci=z`
|
|
449
|
-
${V.resetStyles}
|
|
450
|
-
height: ${({sizeProp:e,buttonType:o})=>hr(e,o)};
|
|
451
|
-
width: ${({sizeProp:e,buttonType:o})=>hr(e,o)};
|
|
452
|
-
display: flex;
|
|
453
|
-
align-items: center;
|
|
454
|
-
justify-content: center;
|
|
455
|
-
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
456
|
-
position: relative;
|
|
457
|
-
transition: all 0.3s ease;
|
|
458
|
-
border-radius: ${({buttonType:e})=>e==="primary"?t.sg.borders.borderRadius.borderRadiusSm:t.sg.borders.borderRadius.borderExtraSmall};
|
|
459
|
-
padding: ${({buttonType:e})=>e==="primary"?t.sg.spacings.spacingInset.spacingInsetNano:"auto"};
|
|
460
|
-
border: ${({buttonType:e})=>e==="secondary"?"none":void 0};
|
|
461
|
-
|
|
462
|
-
& > .default-icon,
|
|
463
|
-
& > .selected-icon {
|
|
464
|
-
height: ${({sizeProp:e})=>dt(e)};
|
|
465
|
-
width: ${({sizeProp:e})=>dt(e)};
|
|
466
|
-
}
|
|
467
|
-
`,ui=z`
|
|
468
|
-
${({buttonType:e,disabled:o,isSelected:r,iconColor:n})=>!o&&!r&&z`
|
|
469
|
-
background-color: ${e==="primary"?"rgba(226, 230, 237, 0.16)":"transparent"};
|
|
470
|
-
border: ${e==="primary"?`${t.sg.borders.borderWidth.borderWidthThinner} solid ${t.sg.colors.neutralColors.colorNeutralClean}`:"none"};
|
|
471
|
-
|
|
472
|
-
&:hover {
|
|
473
|
-
border: ${e==="primary"?`${t.sg.borders.borderWidth.borderWidthThinner} solid ${t.sg.colors.neutralColors.colorNeutralCleanest}`:"none"};
|
|
474
|
-
background-color: ${e==="secondary"?t.sg.colors.neutralColors.colorNeutralSoft:"rgba(226, 230, 237, 0.16)"};
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
& > .default-icon path {
|
|
478
|
-
fill: ${n||t.sg.colors.neutralColors.colorNeutralCloudy};
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
&:hover .default-icon path {
|
|
482
|
-
fill: ${e==="secondary"?n||t.sg.colors.neutralColors.colorNeutralDark:n||t.sg.colors.neutralColors.colorNeutralCloudy};
|
|
483
|
-
}
|
|
484
|
-
`}
|
|
485
|
-
`,di=z`
|
|
486
|
-
${({variant:e,disabled:o,isSelected:r,buttonType:n,iconColor:i,hasSelectedIcon:c})=>e==="select"&&!o&&r&&z`
|
|
487
|
-
background-color: rgba(12, 60, 122, 0.16);
|
|
488
|
-
border: ${n==="primary"?`${t.sg.borders.borderWidth.borderWidthThinner} solid ${t.sg.colors.brandColors.colorBrandPrimary}`:"none"};
|
|
489
|
-
|
|
490
|
-
${c?z`
|
|
491
|
-
& > .default-icon {
|
|
492
|
-
display: none;
|
|
493
|
-
}
|
|
494
|
-
& > .selected-icon {
|
|
495
|
-
display: flex;
|
|
496
|
-
& > svg path {
|
|
497
|
-
fill: ${i||t.sg.colors.brandColors.colorBrandPrimary};
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
`:z`
|
|
501
|
-
& > .default-icon {
|
|
502
|
-
display: flex;
|
|
503
|
-
& > svg path {
|
|
504
|
-
fill: ${i||t.sg.colors.brandColors.colorBrandPrimary};
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
`}
|
|
508
|
-
`}
|
|
509
|
-
`,fi=z`
|
|
510
|
-
${({variant:e,buttonType:o,iconColor:r,hasSelectedIcon:n})=>e==="normal"&&z`
|
|
511
|
-
${n?z`
|
|
512
|
-
& > .selected-icon {
|
|
513
|
-
display: none;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
&:active {
|
|
517
|
-
background-color: rgba(12, 60, 122, 0.16);
|
|
518
|
-
border: ${o==="primary"?`${t.sg.borders.borderWidth.borderWidthThinner} solid ${t.sg.colors.brandColors.colorBrandPrimary}`:"none"};
|
|
519
|
-
|
|
520
|
-
& > .selected-icon {
|
|
521
|
-
display: flex;
|
|
522
|
-
& > svg path {
|
|
523
|
-
fill: ${r||t.sg.colors.brandColors.colorBrandPrimary};
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
& > .default-icon {
|
|
528
|
-
display: none;
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
`:z`
|
|
532
|
-
&:active {
|
|
533
|
-
background-color: rgba(12, 60, 122, 0.16);
|
|
534
|
-
border: ${o==="primary"?`${t.sg.borders.borderWidth.borderWidthThinner} solid ${t.sg.colors.brandColors.colorBrandPrimary}`:"none"};
|
|
535
|
-
|
|
536
|
-
& > .default-icon {
|
|
537
|
-
display: flex;
|
|
538
|
-
& > svg path {
|
|
539
|
-
fill: ${r||t.sg.colors.brandColors.colorBrandPrimary};
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
`}
|
|
544
|
-
`}
|
|
545
|
-
`,gi=z`
|
|
546
|
-
${({disabled:e,buttonType:o,sizeProp:r})=>e&&z`
|
|
547
|
-
background-color: ${o==="primary"?t.sg.colors.brandColors.colorBrandSeSoft:t.sg.colors.neutralColors.colorNeutralSoft} !important;
|
|
548
|
-
border: none;
|
|
549
|
-
|
|
550
|
-
& > .default-icon path,
|
|
551
|
-
& > .selected-icon path {
|
|
552
|
-
fill: ${o==="primary"?t.sg.colors.neutralColors.colorNeutralCloudy:t.sg.colors.neutralColors.colorNeutralCleanest} !important;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
& > .default-icon,
|
|
556
|
-
& > .selected-icon {
|
|
557
|
-
height: ${dt(r)} !important;
|
|
558
|
-
width: ${dt(r)} !important;
|
|
559
|
-
}
|
|
560
|
-
`}
|
|
561
|
-
`,hi=E.button`
|
|
562
|
-
${ci}
|
|
563
|
-
${ui}
|
|
564
|
-
${di}
|
|
565
|
-
${fi}
|
|
566
|
-
${gi}
|
|
567
|
-
& > i {
|
|
568
|
-
${({isLoading:e})=>e&&z`
|
|
569
|
-
animation: ${ai} 2s linear infinite;
|
|
570
|
-
`}
|
|
571
|
-
}
|
|
572
|
-
`,Ct=E.div`
|
|
573
|
-
${V.resetStyles}
|
|
574
|
-
display: flex;
|
|
575
|
-
align-items: center;
|
|
576
|
-
justify-content: center;
|
|
577
|
-
`;E.div`
|
|
578
|
-
${V.resetStyles}
|
|
579
|
-
display: flex;
|
|
580
|
-
justify-content: center;
|
|
581
|
-
align-items: center;
|
|
582
|
-
border-radius: 50%;
|
|
583
|
-
position: absolute;
|
|
584
|
-
top: 2px;
|
|
585
|
-
right: 2px;
|
|
586
|
-
background-color: ${({indicatorColor:e})=>e||t.sg.colors.feedbackColors.colorFeedbackInfo};
|
|
587
|
-
border: 1.5px solid ${t.sg.colors.neutralColors.colorNeutralSnow};
|
|
588
|
-
width: 6px;
|
|
589
|
-
height: 6px;
|
|
590
|
-
`;const Ar=A.forwardRef(({id:e,name:o,size:r="Small",type:n="button",disabled:i=!1,onClick:c,iconName:l,tooltipProps:d,buttonType:f="primary",iconColor:h,selectedIconName:p,badgeProps:m,isSelected:b,onSelectedChange:x,variant:y="normal",customIcon:a,isLoading:S=!1},P)=>{const _=b!==void 0&&y==="select",O=_?b:!1,j=u.jsx(t.Icon,{iconName:`ProgressActivity${r==="Large"?"Ant":"Sm"}`,color:t.sg.colors.neutralColors.colorNeutralCloudy}),v=()=>{i||(y==="select"&&_&&x&&x(!O),c&&c())};return u.jsx(Ie,{...d,children:u.jsxs(hi,{ref:P,id:`actionbutton-${e}`,name:`actionbutton-${o}`,type:n,onClick:v,sizeProp:r,disabled:i,"data-testid":"action-button",buttonType:f,iconColor:h,isSelected:O,variant:y,hasSelectedIcon:!!p,isLoading:S,children:[S?j:a?u.jsx(Ct,{className:"custom-icon",children:a}):u.jsxs(u.Fragment,{children:[l&&u.jsx(Ct,{className:"default-icon",children:u.jsx(t.Icon,{iconName:l,"data-testid":"action-icon"})}),p&&u.jsx(u.Fragment,{children:(y==="select"&&O||y==="normal")&&u.jsx(Ct,{className:"selected-icon",children:u.jsx(t.Icon,{iconName:p,"data-testid":"selected-icon"})})})]}),m&&u.jsx(It,{...m})]})})});Ar.displayName="ActionButton";const pi=E.span`
|
|
591
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
592
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeBodyLg};
|
|
593
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightSemiBold};
|
|
594
|
-
line-height: ${t.sg.fonts.lineHeight.lineHeightMd(t.sg.fonts.fontSize.fontSizeBodyLg)};
|
|
595
|
-
color: ${t.sg.colors.neutralColors.colorNeutralDark};
|
|
596
|
-
`,mi=E.span`
|
|
597
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
598
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeBodyMd};
|
|
599
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
600
|
-
line-height: ${t.sg.fonts.lineHeight.lineHeightSm(t.sg.fonts.fontSize.fontSizeBodyMd)};
|
|
601
|
-
color: ${t.sg.colors.neutralColors.colorNeutralDark};
|
|
602
|
-
`,yi=E.div`
|
|
603
|
-
width: 20px;
|
|
604
|
-
height: 20px;
|
|
605
|
-
& > svg > path {
|
|
606
|
-
fill: ${t.sg.colors.feedbackColors.colorFeedbackWarning};
|
|
607
|
-
}
|
|
608
|
-
`;var ft,at=gt;if(process.env.NODE_ENV==="production")ft=at.createRoot,at.hydrateRoot;else{var pr=at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ft=function(e,o){pr.usingClientEntryPoint=!0;try{return at.createRoot(e,o)}finally{pr.usingClientEntryPoint=!1}}}const vi=E.div`
|
|
609
|
-
position: fixed;
|
|
610
|
-
top: 0;
|
|
611
|
-
left: 0;
|
|
612
|
-
width: 100vw;
|
|
613
|
-
height: 100vh;
|
|
614
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
615
|
-
display: flex;
|
|
616
|
-
justify-content: center;
|
|
617
|
-
align-items: center;
|
|
618
|
-
z-index: 999;
|
|
619
|
-
`,Si=E.div`
|
|
620
|
-
width: ${({width:e})=>e||"520px"};
|
|
621
|
-
padding: ${()=>`${t.sg.spacings.spacingInline.spacingInlineSm} ${t.sg.spacings.spacingInline.spacingInlineMd} ${t.sg.spacings.spacingInline.spacingInlineLg}`};
|
|
622
|
-
background-color: ${t.sg.colors.backgroundColors.colorBackgroundCarpet};
|
|
623
|
-
border-radius: ${t.sg.borders.borderRadius.borderRadiusSm};
|
|
624
|
-
box-shadow: ${t.sg.shadows.shadowLevelNear};
|
|
625
|
-
display: flex;
|
|
626
|
-
flex-direction: column;
|
|
627
|
-
align-items: center;
|
|
628
|
-
`,bi=E.button`
|
|
629
|
-
align-self: flex-end;
|
|
630
|
-
background: none;
|
|
631
|
-
border: none;
|
|
632
|
-
height: ${t.sg.icons.iconSizeMd};
|
|
633
|
-
font-size: ${t.sg.icons.iconSizeMd};
|
|
634
|
-
cursor: pointer;
|
|
635
|
-
margin-bottom: ${t.sg.spacings.spacingStack.spacingStackXs};
|
|
636
|
-
`,Ci=E.h3`
|
|
637
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
638
|
-
color: ${t.sg.colors.neutralColors.colorNeutralDarkest};
|
|
639
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightBold};
|
|
640
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeTitleSm};
|
|
641
|
-
line-height: ${t.sg.fonts.lineHeight.lineHeightMd(t.sg.fonts.fontSize.fontSizeTitleSm)};
|
|
642
|
-
|
|
643
|
-
max-width: calc(100% - ${t.sg.spacings.spacingInline.spacingInlineMd});
|
|
644
|
-
word-wrap: break-word;
|
|
645
|
-
`,$i=E.h3`
|
|
646
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
647
|
-
color: ${t.sg.colors.neutralColors.colorNeutralCloudy};
|
|
648
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
649
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeBodyLg};
|
|
650
|
-
line-height: ${t.sg.fonts.lineHeight.lineHeightMd(t.sg.fonts.fontSize.fontSizeBodyLg)};
|
|
651
|
-
text-align: center;
|
|
652
|
-
max-width: 100%;
|
|
653
|
-
word-wrap: break-word;
|
|
654
|
-
white-space: pre-line;
|
|
655
|
-
`,xi=E.div`
|
|
656
|
-
display: flex;
|
|
657
|
-
justify-content: ${({hasTwoButtons:e})=>e?"space-between":"center"};
|
|
658
|
-
width: 100%;
|
|
659
|
-
gap: 32px;
|
|
660
|
-
`,Mt=({title:e,description:o,leftButtonProps:r,rightButtonProps:n={onClick:()=>null},icon:i,iconColor:c,destroy:l,autoClose:d,content:f,thinkingInitialTime:h,width:p})=>{const m=V.valuable(h),[b,x]=A.useState(h||10),y=A.useCallback(()=>x(O=>O-1e3),[x]),a=m&&b>0;A.useEffect(()=>{m&&b>0&&setTimeout(y,1e3)},[y,b,m]);const S=O=>{const{onClick:j,...v}=O;return{...v,onClick:()=>{j(l),d&&l()}}},P=S(n),_=r?S(r):null;return a&&(P.isLoading=!0,P.disabled=!0),u.jsx(vi,{children:u.jsxs(Si,{width:p,children:[u.jsx(bi,{onClick:l,"data-testid":"close-button",children:u.jsx(t.Icon,{iconName:"CloseMd",color:t.sg.colors.neutralColors.colorNeutralDark})}),i&&u.jsxs(u.Fragment,{children:[typeof i=="function"?i():u.jsx(t.Icon,{iconName:i,color:c}),u.jsx(Me,{size:t.sg.spacings.spacingStack.spacingStackSm,direction:"vertical"})]}),u.jsx(Ci,{children:e}),o?u.jsxs(u.Fragment,{children:[u.jsx(Me,{size:t.sg.spacings.spacingStack.spacingStackMd,direction:"vertical"}),u.jsx($i,{children:o})]}):null,f?u.jsxs(we,{width:"100%",horizontalAlign:"center",verticalAlign:"center",children:[u.jsx(Me,{size:t.sg.spacings.spacingStack.spacingStackMd,direction:"vertical"}),f(l)]}):null,(r||n)&&u.jsx(Me,{size:t.sg.spacings.spacingStack.spacingStackLg,direction:"vertical"}),u.jsxs(xi,{"data-testid":"button-container",hasTwoButtons:!!r&&!!n,children:[r&&u.jsx(tt,{..._}),n&&u.jsx(tt,{...P})]})]})})};Mt.displayName="ConfirmModal";const ht=({id:e,title:o,description:r,icon:n,iconColor:i,autoClose:c=!0,leftButtonProps:l,rightButtonProps:d,content:f,thinkingInitialTime:h,width:p})=>{const m=V.dom.portal.add(e),b=ft(m),x=()=>{b.unmount(),m.remove()},y=gt.createPortal(u.jsx(Mt,{id:e,title:o,description:r,icon:n,iconColor:i,destroy:x,autoClose:c,leftButtonProps:l,rightButtonProps:d,content:f,thinkingInitialTime:h,width:p}),m);b.render(y)};ht.displayName="showConfirm";const wi=()=>u.jsx(t.Icon,{iconName:"CancelFill0El",color:t.sg.colors.feedbackColors.colorFeedbackError}),Pr=({id:e,onConfirm:o,onRegret:r=()=>{},name:n,confirmTitle:i,confirmDescription:c,regretText:l,confirmText:d,size:f="Small",width:h="fit-content",disabled:p=!1,enableConfirm:m=!0,buildIconConfirm:b=wi,variant:x="tertiary",isLoading:y=!1})=>u.jsx(tt,{name:n,width:h,size:f,disabled:p,variant:x,isLoading:y,onClick:()=>{m?ht({id:e,title:i,description:c,icon:b,leftButtonProps:{name:l,variant:"tertiary",onClick:r},rightButtonProps:{name:d,variant:"secondary",onClick:o}}):o()}});Pr.displayName="ConfirmButton";const Ei=E.p`
|
|
661
|
-
word-wrap: break-word;
|
|
662
|
-
white-space: pre-wrap;
|
|
663
|
-
text-align: center;
|
|
664
|
-
line-height: 14px;
|
|
665
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
666
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeBodySm};
|
|
667
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightBold};
|
|
668
|
-
color: ${t.sg.colors.neutralColors.colorNeutralCloudy};
|
|
669
|
-
`,ki=E.p`
|
|
670
|
-
word-wrap: break-word;
|
|
671
|
-
white-space: pre-wrap;
|
|
672
|
-
text-align: center;
|
|
673
|
-
line-height: 14px;
|
|
674
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
675
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeBodySm};
|
|
676
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
677
|
-
color: ${t.sg.colors.neutralColors.colorNeutralCloudy};
|
|
678
|
-
`,_i=E.p`
|
|
679
|
-
word-wrap: break-word;
|
|
680
|
-
white-space: pre-wrap;
|
|
681
|
-
text-align: center;
|
|
682
|
-
line-height: 14px;
|
|
683
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
684
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeBodySm};
|
|
685
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
686
|
-
color: ${t.sg.colors.neutralColors.colorNeutralCloudy};
|
|
687
|
-
`;E(we)`
|
|
688
|
-
padding: 24px;
|
|
689
|
-
background-color: ${({backgroundColor:e})=>e};
|
|
690
|
-
|
|
691
|
-
${e=>e.borders?z`
|
|
692
|
-
border-radius: ${t.sg.borders.borderRadius.borderRadiusSm};
|
|
693
|
-
border: 1px solid ${t.sg.colors.neutralColors.colorNeutralSoft};
|
|
694
|
-
`:z``};
|
|
695
|
-
`;const Ri={table:Vn,folder:Ln,data:Nn,error:En,warning:qn},jr=({width:e="100%",height:o="100%",mode:r,backgroundColor:n="transparent",textsWidth:i="60%",title:c="Nenhum dado a ser mostrado",body:l=null,borders:d=!1,action:f,icon:h,onActionClick:p,actionButton:m,iconColor:b,flex:x,margin:y,customStyles:a={}})=>{let S;return V.valuable(h)?S=typeof h=="string"?u.jsx(t.Icon,{iconName:h,color:b}):A.createElement(h,{size:"48px",color:b}):V.valuable(r)?S=Ri[r]({size:"48px",color:b??t.sg.colors.neutralColors.colorNeutralDark}):S=null,u.jsxs(we,{width:e,height:o,backgroundColor:n,direction:"vertical",horizontalAlign:"center",verticalAlign:"center",padding:"24px",flex:x??"1 1 auto",customStyles:{...d?{borderRadius:t.sg.borders.borderRadius.borderRadiusSm,border:`${t.sg.borders.borderWidth.borderWidthThinner} solid ${t.sg.colors.neutralColors.colorNeutralSoft}`}:{},margin:y,...a},children:[V.valuable(S)&&u.jsxs(u.Fragment,{children:[S,u.jsx(Me,{size:"24px",direction:"vertical"})]}),u.jsxs(we,{width:i,horizontalAlign:"center",gap:t.sg.spacings.spacingStack.spacingStackNano,children:[u.jsx(Ei,{children:c}),l&&u.jsx(ki,{children:l})]}),f&&u.jsx(we,{width:i,horizontalAlign:"center",customStyles:{marginTop:"4px"},children:u.jsx(_i,{onClick:p,children:f})}),m&&u.jsx(we,{width:i,horizontalAlign:"center",customStyles:{marginTop:"24px"},children:u.jsx(t.Button,{size:"Small",name:m.label,onClick:m.onClick,variant:m.variant,width:m.width})})]})};jr.displayName="Empty";const zi=E.div`
|
|
696
|
-
overflow: hidden;
|
|
697
|
-
display: ${({loader:e,hidden:o,isChildReady:r})=>e&&(o||!r)?"none":"flex"};
|
|
698
|
-
width: 100%;
|
|
699
|
-
height: 100%;
|
|
700
|
-
background-color: ${({background:e})=>e||t.sg.colors.backgroundColors.colorBackgroundCarpet};
|
|
701
|
-
|
|
702
|
-
& > iframe,
|
|
703
|
-
& .gpsub-ds-frame {
|
|
704
|
-
width: 100% !important;
|
|
705
|
-
height: 100% !important;
|
|
706
|
-
}
|
|
707
|
-
`;function Ti({inset:e={},children:o,hidden:r=!1}){const{top:n="auto",bottom:i="auto",left:c="auto",right:l="auto"}=e,d={zIndex:1e3,display:r?"none":"block",position:"absolute",top:n,bottom:i,left:c,right:l};return u.jsx("div",{style:d,children:o})}/**
|
|
708
|
-
postmate - A powerful, simple, promise-based postMessage library
|
|
709
|
-
@version v1.5.2
|
|
710
|
-
@link https://github.com/dollarshaveclub/postmate
|
|
711
|
-
@author Jacob Kelley <jakie8@gmail.com>
|
|
712
|
-
@license MIT
|
|
713
|
-
**/var He="application/x-postmate-v1+json",Ni=5,Ai=0,Pi=function(){return++Ai},be=function(){var o;return Be.debug?(o=console).log.apply(o,arguments):null},ji=function(o){var r=document.createElement("a");r.href=o;var n=r.protocol.length>4?r.protocol:window.location.protocol,i=r.host.length?r.port==="80"||r.port==="443"?r.hostname:r.host:window.location.host;return r.origin||n+"//"+i},Oi={handshake:1,"handshake-reply":1,call:1,emit:1,reply:1,request:1},Lt=function(o,r){return!(typeof r=="string"&&o.origin!==r||!o.data||typeof o.data=="object"&&!("postmate"in o.data)||o.data.type!==He||!Oi[o.data.postmate])},Ii=function(o,r){var n=typeof o[r]=="function"?o[r]():o[r];return Be.Promise.resolve(n)},Fi=function(){function e(r){var n=this;this.parent=r.parent,this.frame=r.frame,this.child=r.child,this.childOrigin=r.childOrigin,this.events={},process.env.NODE_ENV!=="production"&&(be("Parent: Registering API"),be("Parent: Awaiting messages...")),this.listener=function(i){if(!Lt(i,n.childOrigin))return!1;var c=((i||{}).data||{}).value||{},l=c.data,d=c.name;i.data.postmate==="emit"&&(process.env.NODE_ENV!=="production"&&be("Parent: Received event emission: "+d),d in n.events&&n.events[d].call(n,l))},this.parent.addEventListener("message",this.listener,!1),process.env.NODE_ENV!=="production"&&be("Parent: Awaiting event emissions from Child")}var o=e.prototype;return o.get=function(n){var i=this;return new Be.Promise(function(c){var l=Pi(),d=function f(h){h.data.uid===l&&h.data.postmate==="reply"&&(i.parent.removeEventListener("message",f,!1),c(h.data.value))};i.parent.addEventListener("message",d,!1),i.child.postMessage({postmate:"request",type:He,property:n,uid:l},i.childOrigin)})},o.call=function(n,i){this.child.postMessage({postmate:"call",type:He,property:n,data:i},this.childOrigin)},o.on=function(n,i){this.events[n]=i},o.destroy=function(){process.env.NODE_ENV!=="production"&&be("Parent: Destroying Postmate instance"),window.removeEventListener("message",this.listener,!1),this.frame.parentNode.removeChild(this.frame)},e}(),Mi=function(){function e(r){var n=this;this.model=r.model,this.parent=r.parent,this.parentOrigin=r.parentOrigin,this.child=r.child,process.env.NODE_ENV!=="production"&&(be("Child: Registering API"),be("Child: Awaiting messages...")),this.child.addEventListener("message",function(i){if(Lt(i,n.parentOrigin)){process.env.NODE_ENV!=="production"&&be("Child: Received request",i.data);var c=i.data,l=c.property,d=c.uid,f=c.data;if(i.data.postmate==="call"){l in n.model&&typeof n.model[l]=="function"&&n.model[l](f);return}Ii(n.model,l).then(function(h){return i.source.postMessage({property:l,postmate:"reply",type:He,uid:d,value:h},i.origin)})}})}var o=e.prototype;return o.emit=function(n,i){process.env.NODE_ENV!=="production"&&be('Child: Emitting Event "'+n+'"',i),this.parent.postMessage({postmate:"emit",type:He,value:{name:n,data:i}},this.parentOrigin)},e}(),Be=function(){function e(r){var n=r.container,i=n===void 0?typeof i<"u"?i:document.body:n,c=r.model,l=r.url,d=r.name,f=r.classListArray,h=f===void 0?[]:f;return this.parent=window,this.frame=document.createElement("iframe"),this.frame.name=d||"",this.frame.classList.add.apply(this.frame.classList,h),i.appendChild(this.frame),this.child=this.frame.contentWindow||this.frame.contentDocument.parentWindow,this.model=c||{},this.sendHandshake(l)}var o=e.prototype;return o.sendHandshake=function(n){var i=this,c=ji(n),l=0,d;return new e.Promise(function(f,h){var p=function x(y){return Lt(y,c)?y.data.postmate==="handshake-reply"?(clearInterval(d),process.env.NODE_ENV!=="production"&&be("Parent: Received handshake reply from Child"),i.parent.removeEventListener("message",x,!1),i.childOrigin=y.origin,process.env.NODE_ENV!=="production"&&be("Parent: Saving Child origin",i.childOrigin),f(new Fi(i))):(process.env.NODE_ENV!=="production"&&be("Parent: Invalid handshake reply"),h("Failed handshake")):!1};i.parent.addEventListener("message",p,!1);var m=function(){l++,process.env.NODE_ENV!=="production"&&be("Parent: Sending handshake attempt "+l,{childOrigin:c}),i.child.postMessage({postmate:"handshake",type:He,model:i.model},c),l===Ni&&clearInterval(d)},b=function(){m(),d=setInterval(m,500)};i.frame.attachEvent?i.frame.attachEvent("onload",b):i.frame.onload=b,process.env.NODE_ENV!=="production"&&be("Parent: Loading frame",{url:n}),i.frame.src=n})},e}();Be.debug=!1;Be.Promise=function(){try{return window?window.Promise:Promise}catch{return null}}();Be.Model=function(){function e(r){return this.child=window,this.model=r,this.parent=this.child.parent,this.sendHandshakeReply()}var o=e.prototype;return o.sendHandshakeReply=function(){var n=this;return new Be.Promise(function(i,c){var l=function d(f){if(f.data.postmate){if(f.data.postmate==="handshake"){process.env.NODE_ENV!=="production"&&be("Child: Received handshake from Parent"),n.child.removeEventListener("message",d,!1),process.env.NODE_ENV!=="production"&&be("Child: Sending handshake reply to Parent"),f.source.postMessage({postmate:"handshake-reply",type:He},f.origin),n.parentOrigin=f.origin;var h=f.data.model;return h&&(Object.keys(h).forEach(function(p){n.model[p]=h[p]}),process.env.NODE_ENV!=="production"&&be("Child: Inherited and extended model from Parent")),process.env.NODE_ENV!=="production"&&be("Child: Saving Parent origin",n.parentOrigin),i(new Mi(n))}return c("Handshake Reply Failed")}};n.child.addEventListener("message",l,!1)})},e}();function Li({frameRef:e,frameKey:o,url:r,classNames:n=[],model:i={},customStyles:c={},events:l={},onChildReady:d}){const f=A.useRef("uninitialized"),h=A.useRef(null);return A.useEffect(()=>{V.valuable(e.current)&&Object.entries(c).forEach(([p,m])=>{m!=null&&(e.current.style[p]=m)})},[JSON.stringify(c),e.current]),A.useEffect(()=>{var p,m;return f.current="loading",e.current&&(e.current.innerHTML=""),h.current??(h.current=new Be({container:e.current,classListArray:n??[],url:r,name:o,model:i})),(m=(p=h.current)==null?void 0:p.then(b=>{V.valuable(b)&&Object.entries(l).forEach(([x,y])=>{b.on(x,y)}),f.current="ready",d==null||d()}))==null||m.catch(b=>{f.current==="loading"&&(console.error("Error during Postmate handshake:",b),f.current="error")}),()=>{var b,x;(x=(b=h.current)==null?void 0:b.destroy)==null||x.call(b),h.current=null,f.current="uninitialized"}},[]),A.useMemo(()=>({state:f,frameRef:e,props:{frameKey:o,url:r,classNames:n,model:i,customStyles:c,events:l}}),[e,f,JSON.stringify({frameKey:o,url:r,classNames:n,model:i,customStyles:c,events:l})])}const Or=A.forwardRef(({frameKey:e,url:o,classNames:r,model:n={},events:i={},onChildReady:c,loader:l=!0,loadingProps:d={},frameProps:f={},overlayProps:h={},overlay:p=null},m)=>{const b=A.useRef(null),[x,y]=A.useState(!1);Li({frameRef:b,frameKey:e,url:o,model:n,customStyles:(f==null?void 0:f.customStyles)||{},classNames:["gpsub-ds-frame",...r||[]],events:i,onChildReady:()=>{y(!0),c==null||c()}});const a={animationTitle:"Carregando...",...d},S={...h,hidden:!x};return u.jsxs(we,{ref:m,width:"100%",height:"100%",verticalAlign:"center",horizontalAlign:"center",customStyles:{position:"relative"},children:[l&&!x&&u.jsx(Fr,{...a}),p&&u.jsx(Ti,{...S,children:p}),u.jsx(zi,{id:e,ref:b,loader:l,hidden:f==null?void 0:f.hidden,isChildReady:x})]})});Or.displayName="FrameView";const Tt={xl:"40px",lg:"32px",md:"24px",ant:"20px",sm:"16px"},Bi=Object.freeze(Object.defineProperty({__proto__:null,IconSize:Tt},Symbol.toStringTag,{value:"Module"})),Di=E.div`
|
|
714
|
-
width: fit-content;
|
|
715
|
-
display: ${({isAlwaysVisible:e})=>e?"flex":"none"};
|
|
716
|
-
opacity: ${({isAlwaysVisible:e})=>e?"1":"0"};
|
|
717
|
-
`,Wi=E.div`
|
|
718
|
-
width: fit-content;
|
|
719
|
-
display: ${({isAlwaysVisible:e})=>e?"none":"flex"};
|
|
720
|
-
opacity: ${({isAlwaysVisible:e})=>e?"0":"1"};
|
|
721
|
-
`,Hi=E.div`
|
|
722
|
-
width: fit-content;
|
|
723
|
-
display: flex;
|
|
724
|
-
align-items: center;
|
|
725
|
-
justify-content: center;
|
|
726
|
-
|
|
727
|
-
&:hover {
|
|
728
|
-
${Di} {
|
|
729
|
-
display: flex;
|
|
730
|
-
opacity: 1;
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
${Wi} {
|
|
734
|
-
display: none;
|
|
735
|
-
opacity: 0;
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
`,Bt=({message:e,render:o,size:r="Medium",withArrow:n=!0,activation:i="hover",onClick:c,tooltipProps:l={}})=>{const[d,f]=A.useState(!1),h=A.useMemo(()=>i==="hover"?{onMouseOver:()=>f(!0),onMouseOut:()=>f(!1)}:{onClick:()=>{c==null||c(),f(b=>!b)}},[i]),p={position:"top",withArrow:n,label:e,tooltipChildren:d&&o,isAlwaysVisible:i==="click"&&d,isActive:d,...l},m=d?Ft:Dn;return u.jsx(Ie,{id:"info-tooltip",...p,children:u.jsx(Hi,{...h,children:u.jsx(m,{size:r==="Medium"?Tt.ant:Tt.sm,color:t.sg.colors.neutralColors.colorNeutralDark,cursor:i==="click"?"pointer":"default"})})})},Vi=Fe`
|
|
739
|
-
from {
|
|
740
|
-
transform: rotate(0deg);
|
|
741
|
-
}
|
|
742
|
-
to {
|
|
743
|
-
transform: rotate(360deg);
|
|
744
|
-
}
|
|
745
|
-
`,Yi=E.div`
|
|
746
|
-
${V.resetStyles}
|
|
747
|
-
display: flex;
|
|
748
|
-
flex-direction: column;
|
|
749
|
-
border-radius: ${t.sg.borders.borderRadius.borderRadiusSm};
|
|
750
|
-
width: ${({width:e})=>e??"100%"};
|
|
751
|
-
|
|
752
|
-
& :focus-within {
|
|
753
|
-
border-color: ${({readonly:e})=>e?t.sg.colors.neutralColors.colorNeutralClean:t.sg.colors.neutralColors.colorNeutralCloudy};
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
${({variant:e})=>e==="table"&&z`
|
|
757
|
-
& :focus-within {
|
|
758
|
-
background-color: ${t.sg.colors.backgroundColors.colorBackgroundSky};
|
|
759
|
-
border: ${t.sg.borders.borderWidth.borderWidthThin} solid
|
|
760
|
-
${t.sg.colors.neutralColors.colorNeutralCleanest};
|
|
761
|
-
}
|
|
762
|
-
`}
|
|
763
|
-
`,qi=E.div`
|
|
764
|
-
width: 100%;
|
|
765
|
-
display: flex;
|
|
766
|
-
flex-direction: row;
|
|
767
|
-
align-items: center;
|
|
768
|
-
gap: 4px;
|
|
769
|
-
justify-content: flex-start;
|
|
770
|
-
margin-bottom: ${t.sg.spacings.spacingStack.spacingStackNano};
|
|
771
|
-
`,Ui=E.label`
|
|
772
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
773
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeBodyMd};
|
|
774
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
775
|
-
line-height: ${t.sg.fonts.lineHeight.lineHeightSm(t.sg.fonts.fontSize.fontSizeBodyMd)};
|
|
776
|
-
color: ${t.sg.colors.neutralColors.colorNeutralCloudy};
|
|
777
|
-
`,Gi=E.label`
|
|
778
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
779
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeBodyMd};
|
|
780
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
781
|
-
line-height: ${t.sg.fonts.lineHeight.lineHeightSm(t.sg.fonts.fontSize.fontSizeBodyMd)};
|
|
782
|
-
color: ${t.sg.colors.feedbackColors.colorFeedbackError};
|
|
783
|
-
`,Xi=E.label`
|
|
784
|
-
display: flex;
|
|
785
|
-
flex-direction: row;
|
|
786
|
-
align-items: center;
|
|
787
|
-
border-radius: ${t.sg.borders.borderRadius.borderRadiusSm};
|
|
788
|
-
height: ${({size:e})=>e==="Small"?"32px":"40px"};
|
|
789
|
-
padding: 0
|
|
790
|
-
${({size:e})=>e!=="Small"?t.sg.spacings.spacingInline.spacingInlineSm:"12px"};
|
|
791
|
-
border: ${t.sg.borders.borderWidth.borderWidthThinner} solid
|
|
792
|
-
${t.sg.colors.neutralColors.colorNeutralClean};
|
|
793
|
-
|
|
794
|
-
${({error:e})=>e&&z`
|
|
795
|
-
:focus-within {
|
|
796
|
-
border-color: ${t.sg.colors.feedbackColors.colorFeedbackError};
|
|
797
|
-
}
|
|
798
|
-
`}
|
|
799
|
-
|
|
800
|
-
${({error:e,disabled:o,readonly:r})=>e&&(!o||!r)?z`
|
|
801
|
-
border-color: ${t.sg.colors.feedbackColors.colorFeedbackError};
|
|
802
|
-
background-color: ${t.sg.colors.neutralColors.colorNeutralSnow};
|
|
803
|
-
`:!e&&(o||r)?z`
|
|
804
|
-
border-color: ${t.sg.colors.neutralColors.colorNeutralClean};
|
|
805
|
-
background-color: ${t.sg.colors.brandColors.colorBrandSeSoft};
|
|
806
|
-
`:e&&(o||r)?z`
|
|
807
|
-
border-color: ${t.sg.colors.feedbackColors.colorFeedbackError};
|
|
808
|
-
background-color: ${t.sg.colors.brandColors.colorBrandSeSoft};
|
|
809
|
-
`:z`
|
|
810
|
-
border-color: ${t.sg.colors.neutralColors.colorNeutralClean};
|
|
811
|
-
background-color: ${t.sg.colors.neutralColors.colorNeutralSnow};
|
|
812
|
-
`}
|
|
813
|
-
|
|
814
|
-
& > div > i > svg {
|
|
815
|
-
height: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeAnt};
|
|
816
|
-
width: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeAnt};
|
|
817
|
-
|
|
818
|
-
${({isLoadingIcon:e})=>e&&z`
|
|
819
|
-
animation: ${Vi} 2s linear infinite;
|
|
820
|
-
`}
|
|
821
|
-
|
|
822
|
-
path {
|
|
823
|
-
fill: ${({color:e,disabledIcon:o})=>o?t.sg.colors.neutralColors.colorNeutralCleanest:e} !important;
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
& > div > svg {
|
|
828
|
-
margin-right: ${({iconPosition:e})=>e==="left"?"8px":"0px"};
|
|
829
|
-
margin-left: ${({iconPosition:e})=>e==="right"?"8px":"0px"};
|
|
830
|
-
height: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeAnt};
|
|
831
|
-
width: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeAnt};
|
|
832
|
-
|
|
833
|
-
path {
|
|
834
|
-
fill: ${({color:e})=>e} !important;
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
& > button {
|
|
839
|
-
height: 100%;
|
|
840
|
-
display: flex;
|
|
841
|
-
align-items: center;
|
|
842
|
-
justify-content: center;
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
& > button > svg {
|
|
846
|
-
transition: 0.2s;
|
|
847
|
-
height: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeAnt};
|
|
848
|
-
width: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeAnt};
|
|
849
|
-
|
|
850
|
-
path {
|
|
851
|
-
fill: ${({color:e,disabledIcon:o})=>o?t.sg.colors.neutralColors.colorNeutralCleanest:e} !important;
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
${({variant:e})=>e==="table"&&z`
|
|
856
|
-
background-color: transparent;
|
|
857
|
-
height: ${({size:o,tableDensity:r})=>{if(o==="Small"&&r==="compact")return"22px";if(o==="Medium"&&r==="compact")return"24px"}};
|
|
858
|
-
border-radius: 0;
|
|
859
|
-
border: ${({disabled:o,readonly:r})=>o||r?`1px dashed ${t.sg.colors.neutralColors.colorNeutralCleanest}`:`${t.sg.borders.borderWidth.borderWidthThin} solid transparent`};
|
|
860
|
-
|
|
861
|
-
& :focus-within {
|
|
862
|
-
border-color: transparent;
|
|
863
|
-
}
|
|
864
|
-
`}
|
|
865
|
-
`,Ki=E.input`
|
|
866
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
867
|
-
font-size: ${({size:e})=>e==="Small"?t.sg.fonts.fontSize.fontSizeBodyMd:t.sg.fonts.fontSize.fontSizeBodyLg};
|
|
868
|
-
background-color: ${({disabled:e,readOnly:o})=>e||o?t.sg.colors.brandColors.colorBrandSeSoft:"transparent"};
|
|
869
|
-
outline: none;
|
|
870
|
-
width: 100%;
|
|
871
|
-
color: ${t.sg.colors.neutralColors.colorNeutralDark};
|
|
872
|
-
|
|
873
|
-
&::placeholder {
|
|
874
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
875
|
-
font-size: ${({size:e})=>e==="Small"?t.sg.fonts.fontSize.fontSizeBodyMd:t.sg.fonts.fontSize.fontSizeBodyLg};
|
|
876
|
-
color: ${t.sg.colors.neutralColors.colorNeutralCleanest};
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
${({variant:e})=>e==="table"&&z`
|
|
880
|
-
background-color: transparent;
|
|
881
|
-
`}
|
|
882
|
-
`,Zi=E.button`
|
|
883
|
-
cursor: pointer;
|
|
884
|
-
margin-left: 8px;
|
|
885
|
-
|
|
886
|
-
${({disabled:e,readonly:o})=>e||o?z`
|
|
887
|
-
background-color: ${t.sg.colors.backgroundColors.colorBackgroundCarpet};
|
|
888
|
-
cursor: auto;
|
|
889
|
-
`:z`
|
|
890
|
-
background-color: ${t.sg.colors.neutralColors.colorNeutralSnow};
|
|
891
|
-
cursor: pointer;
|
|
892
|
-
`}
|
|
893
|
-
`,Ji=E.span`
|
|
894
|
-
font-size: 12px;
|
|
895
|
-
margin-top: ${t.sg.spacings.spacingStack.spacingStackNano};
|
|
896
|
-
color: ${t.sg.colors.neutralColors.colorNeutralDark};
|
|
897
|
-
`,Qi=E.div`
|
|
898
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
899
|
-
font-size: ${({size:e})=>e==="Small"?t.sg.fonts.fontSize.fontSizeBodyMd:t.sg.fonts.fontSize.fontSizeBodyLg};
|
|
900
|
-
display: flex;
|
|
901
|
-
align-items: center;
|
|
902
|
-
justify-content: center;
|
|
903
|
-
width: fit-content;
|
|
904
|
-
white-space: nowrap;
|
|
905
|
-
height: 100%;
|
|
906
|
-
padding-left: 8px;
|
|
907
|
-
margin-left: 8px;
|
|
908
|
-
color: ${({disabled:e})=>e?t.sg.colors.neutralColors.colorNeutralCloudy:t.sg.colors.neutralColors.colorNeutralDark};
|
|
909
|
-
border-left: ${t.sg.borders.borderWidth.borderWidthThinner} solid
|
|
910
|
-
${t.sg.colors.neutralColors.colorNeutralClean};
|
|
911
|
-
`,es=E.div`
|
|
912
|
-
display: flex;
|
|
913
|
-
justify-content: center;
|
|
914
|
-
align-items: center;
|
|
915
|
-
width: ${({size:e})=>e==="Small"?"1.6rem":"2rem"};
|
|
916
|
-
height: ${({size:e})=>e==="Small"?"1.6rem":"2rem"};
|
|
917
|
-
padding: 0.8;
|
|
918
|
-
background-color: ${({color:e})=>e};
|
|
919
|
-
opacity: ${({disabled:e})=>e?.65:1};
|
|
920
|
-
border-radius: ${t.sg.borders.borderRadius.borderRadiusSm};
|
|
921
|
-
cursor: ${({cursorPointer:e})=>e?"pointer":"default"};
|
|
922
|
-
`,ts=e=>{const[o,r]=A.useState(e),n=A.useRef(null),i=A.useCallback(()=>{r(d=>d==="password"?"text":"password")},[]),c=A.useCallback(()=>{var d;(d=n.current)==null||d.focus()},[]),l=A.useCallback(()=>document.activeElement===n.current,[]);return{inputType:o,inputRef:n,toggleInputType:i,focus:c,isCurrentlyFocused:l}},Ir=A.forwardRef(({id:e,label:o,errorMessage:r,disabled:n,readonly:i,type:c="text",visibility:l=!1,iconName:d,size:f="Medium",placeholder:h,helperText:p,value:m,width:b,onChange:x,iconPosition:y="left",iconColor:a=t.sg.colors.neutralColors.colorNeutralCloudy,onBlur:S,onEnter:P,onFocus:_,tooltipProps:O={},onIconClick:j,disabledIcon:v=!1,inputMeasure:U,tableDensity:ee="normal",variant:te="default",onPaste:ce,infoProps:I={},tooltipIconMessage:ge,isLoadingIcon:X=!1,isRequired:Y=!1,htmlInputProps:ae={},formatter:W=null,customIcon:Ee,...Se},he)=>{var me,_e;const{inputType:ke,inputRef:Ce,toggleInputType:ze,focus:N}=ts(c),[k,T]=A.useState(!1),[F,g]=A.useState(!1);A.useEffect(()=>{g(m!==void 0&&m!=="")},[m]),A.useEffect(()=>{var D;r&&k&&((D=Ce.current)==null||D.focus())},[r,k,Ce]),A.useEffect(()=>{var D;!r&&k&&((D=Ce.current)==null||D.focus())},[r,k]);const q=D=>{D.key==="Enter"&&P&&P(D)},w=D=>{x==null||x(D),g(D.target.value!=="")},Q=A.useMemo(()=>({default:xn}),[]),H=typeof d=="string"?d+(f==="Small"?"Sm":"Ant"):void 0,G=d&&(Q!=null&&Q[d])?Q[d]:null,C=!!r,ue=u.jsx(t.Icon,{iconName:`Visibility${f==="Small"?"Ant":"Sm"}`}),pe=u.jsx(t.Icon,{iconName:`VisibilityOff${f==="Small"?"Ant":"Sm"}`}),B=D=>{const Pe=y==="left"?{marginRight:"10px"}:{marginLeft:"10px"};return G?u.jsx(es,{size:f,cursorPointer:!!j,onClick:!X&&j,children:u.jsx(G,{})}):H?u.jsx(t.Icon,{iconName:X?"ProgressActivitySm":H,color:v?t.sg.colors.neutralColors.colorNeutralCleanest:a,cursorPointer:!v,customStyles:Pe,onClick:!X&&!v?j:void 0,...D}):Ee?u.jsx(Ee,{...D,styles:{...Pe,cursor:"pointer"}}):null},de={...I,tooltipProps:{maxWidth:((me=I==null?void 0:I.tooltipProps)==null?void 0:me.maxWidth)||"300px",position:((_e=I==null?void 0:I.tooltipProps)==null?void 0:_e.position)||"top",...I==null?void 0:I.tooltipProps},size:f},Z={position:"topRight",maxWidth:"300px",...O,isActive:C,label:r,wrapperWidth:"100%",width:"100%",isErrorTooltip:!0};return u.jsxs(Yi,{variant:te,width:b,disabled:n,readonly:i,children:[te==="default"&&o&&u.jsxs(qi,{children:[u.jsxs(Ui,{"data-testid":"label",children:[o,Y&&!n?u.jsx(Gi,{children:" *"}):null]}),((I==null?void 0:I.message)||(I==null?void 0:I.render))&&u.jsx(Bt,{...de})]}),u.jsx(Ie,{id:`tooltip-input-error-${e}`,...Z,children:u.jsxs(Xi,{id:`input-shape-${e}`,htmlFor:`input-${e}`,error:C,disabled:n,"data-testid":"shape",size:f,iconPosition:y,variant:te,tableDensity:ee,color:a,readonly:i,disabledIcon:v,isLoadingIcon:X,children:[d&&y==="left"&&!n&&u.jsx(Ie,{id:`tooltip-icon-left-${e}`,isActive:!!ge,label:X?"Carregando...":ge,position:"bottom",wrapperHeight:"16px",children:u.jsx(B,{})}),u.jsx(Ki,{"data-testid":"input",id:`input-${e}`,disabled:n,type:ke,placeholder:h,value:i&&!F?"-":(W==null?void 0:W(m))??m,onChange:w,size:f,variant:te,onKeyDown:q,onPaste:ce,onFocus:D=>{T(!0),N(),_==null||_(D)},onBlur:D=>{T(!1),S==null||S(D)},readOnly:i,ref:D=>{Ce.current=D,typeof he=="function"?he(D):he&&(he.current=D)},autoComplete:"off",...Se,...ae}),l&&u.jsx(Zi,{disabled:n,onClick:i?void 0:ze,"data-testid":"hide-button",size:f,children:ke==="password"?ue:pe}),d&&y==="right"&&!n&&u.jsx(Ie,{id:`tooltip-icon-right-${e}`,isActive:!!ge,label:X?"Carregando...":ge,position:"bottom",wrapperHeight:"16px",children:u.jsx(B,{})}),U&&u.jsx(Qi,{isFocused:k,disabled:n,error:C,readonly:i,size:f,hasValue:F,children:U})]})}),p&&u.jsx(Ji,{children:p})]})});Ir.displayName="Input";const rs=E.label`
|
|
923
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
924
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeBodyMd};
|
|
925
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
926
|
-
line-height: ${t.sg.fonts.lineHeight.lineHeightSm(t.sg.fonts.fontSize.fontSizeBodyMd)};
|
|
927
|
-
color: ${t.sg.colors.neutralColors.colorNeutralCloudy};
|
|
928
|
-
`,os=E.label`
|
|
929
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
930
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeBodyMd};
|
|
931
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
932
|
-
line-height: ${t.sg.fonts.lineHeight.lineHeightSm(t.sg.fonts.fontSize.fontSizeBodyMd)};
|
|
933
|
-
color: ${t.sg.colors.feedbackColors.colorFeedbackError};
|
|
934
|
-
`,ns=e=>Ne.createElement("svg",{width:747,height:394,viewBox:"0 0 747 394",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Ne.createElement("path",{d:"M747 2.05438V48.4735H578.603L545.311 48.6202C496.332 46.7615 472.285 56.691 467.368 76.7945C461.122 101.789 465.696 135.442 470.613 171.051C479.514 236.009 489.546 309.184 438.55 362.5C419.126 382.799 394.341 394 368.918 394C345.067 394 322.397 384.511 303.169 366.608C269.877 335.401 267.025 260.025 264.025 180.247V179.073C262.698 146.252 259.698 69.2618 249.666 59.7237C243.273 56.3486 234.471 61.3867 234.421 61.4356C218.488 71.5608 215.833 149.969 214.309 196.78C211.751 271.862 209.243 342.347 175.41 369.005C146.151 392.043 100.516 394.147 66.8792 373.896C-8.65492 328.456 -1.18022 214.34 4.22913 130.893L4.37665 128.692C6.09781 102.132 7.81901 26.4134 5.11433 13.7448C4.47505 10.761 3.93409 7.53271 3.93409 7.53271C3.78656 6.70118 3.5899 6.01639 3.44237 5.52725C3.29484 5.13594 3.14731 4.6468 2.90143 3.96201C2.60638 3.42396 2.36051 3.08156 2.06545 2.4946C1.22946 1.17393 0.59011 0.489137 0 0H51.8806L52.6182 4.01092C56.7982 23.5764 54.8311 100.664 52.6674 134.024C47.9957 205.046 41.7012 302.482 92.0081 332.662C108.334 342.445 131.742 341.809 145.266 331.146C161.494 318.428 164.149 241.585 165.723 195.655V194.677C168.477 114.116 170.837 44.5604 208.604 20.5438C216.915 14.8209 245.388 2.78808 273.025 17.4622C305.481 34.5331 309.021 87.0664 312.562 178.339C314.578 232.438 317.676 313.879 336.51 331.488C357.509 351.2 383.129 350.369 403.291 329.287C438.305 292.651 430.289 234.248 422.421 177.801C416.962 137.448 411.651 99.3438 420.06 65.2509C431.076 20.7883 473.613 -0.440224 546.59 2.05438H746.951H747Z",fill:"url(#paint0_linear_20920_16641)"}),Ne.createElement("defs",null,Ne.createElement("linearGradient",{id:"paint0_linear_20920_16641",x1:1023.39,y1:-892284e-11,x2:747,y2:-652006e-11,gradientUnits:"userSpaceOnUse"},Ne.createElement("stop",{stopColor:"#F4F6F8"}),Ne.createElement("stop",{offset:1,stopColor:"#0C3C7A"})))),is=e=>Ne.createElement("svg",{width:747,height:394,viewBox:"0 0 747 394",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Ne.createElement("path",{d:"M747 2.05438V48.4735H578.603L545.311 48.6202C496.332 46.7615 472.285 56.691 467.368 76.7945C461.122 101.789 465.696 135.442 470.613 171.051C479.514 236.009 489.546 309.184 438.55 362.5C419.126 382.799 394.341 394 368.918 394C345.067 394 322.397 384.511 303.169 366.608C269.877 335.401 267.025 260.025 264.025 180.247V179.073C262.698 146.252 259.698 69.2618 249.666 59.7237C243.273 56.3486 234.471 61.3867 234.421 61.4356C218.488 71.5608 215.833 149.969 214.309 196.78C211.751 271.862 209.243 342.347 175.41 369.005C146.151 392.043 100.516 394.147 66.8792 373.896C-8.65492 328.456 -1.18022 214.34 4.22913 130.893L4.37665 128.692C6.09781 102.132 7.81901 26.4134 5.11433 13.7448C4.47505 10.761 3.93409 7.53271 3.93409 7.53271C3.78656 6.70118 3.5899 6.01639 3.44237 5.52725C3.29484 5.13594 3.14731 4.6468 2.90143 3.96201C2.60638 3.42396 2.36051 3.08156 2.06545 2.4946C1.22946 1.17393 0.59011 0.489137 0 0H51.8806L52.6182 4.01092C56.7982 23.5764 54.8311 100.664 52.6674 134.024C47.9957 205.046 41.7012 302.482 92.0081 332.662C108.334 342.445 131.742 341.809 145.266 331.146C161.494 318.428 164.149 241.585 165.723 195.655V194.677C168.477 114.116 170.837 44.5604 208.604 20.5438C216.915 14.8209 245.388 2.78808 273.025 17.4622C305.481 34.5331 309.021 87.0664 312.562 178.339C314.578 232.438 317.676 313.879 336.51 331.488C357.509 351.2 383.129 350.369 403.291 329.287C438.305 292.651 430.289 234.248 422.421 177.801C416.962 137.448 411.651 99.3438 420.06 65.2509C431.076 20.7883 473.613 -0.440224 546.59 2.05438H746.951H747Z",fill:"url(#paint0_linear_20920_16628)"}),Ne.createElement("defs",null,Ne.createElement("linearGradient",{id:"paint0_linear_20920_16628",x1:-29.88,y1:0,x2:-179.28,y2:0,gradientUnits:"userSpaceOnUse"},Ne.createElement("stop",{stopColor:"#F4F6F8"}),Ne.createElement("stop",{offset:1,stopColor:"#0C3C7A"})))),ss=Fe`
|
|
935
|
-
0%, 100% {
|
|
936
|
-
clip-path: inset(0 100% 0 0); // Logo começa e termina escondido
|
|
937
|
-
}
|
|
938
|
-
49% {
|
|
939
|
-
clip-path: inset(0 0 0 0); // No meio da animação, o logo é totalmente revelado
|
|
940
|
-
}
|
|
941
|
-
`,as=Fe`
|
|
942
|
-
0%, 48.3% {
|
|
943
|
-
right: 100%; // Mantém o gradiente fora de vista durante o preenchimento
|
|
944
|
-
width: 0%; // Gradiente não é visível durante o preenchimento
|
|
945
|
-
}
|
|
946
|
-
48.3% {
|
|
947
|
-
right: 0%; // Começa a acompanhar o esvaziamento
|
|
948
|
-
width: 30%; // O tamanho do gradiente é o mesmo do final do preenchimento
|
|
949
|
-
}
|
|
950
|
-
70%, 100% {
|
|
951
|
-
right: -100%; // O gradiente continua a se mover para a direita e desaparece
|
|
952
|
-
width: 10%; // O gradiente reduz o tamanho até desaparecer
|
|
953
|
-
}
|
|
954
|
-
`,ls=Fe`
|
|
955
|
-
0%, 50.2% {
|
|
956
|
-
right: -10%; // Fica fora de vista durante o preenchimento
|
|
957
|
-
width: 0%; // Gradiente não é visível durante o preenchimento
|
|
958
|
-
}
|
|
959
|
-
50.2% {
|
|
960
|
-
right: 0%; // Começa no final do preenchimento
|
|
961
|
-
width: 0%; // Tamanho inicial do gradiente
|
|
962
|
-
}
|
|
963
|
-
100% {
|
|
964
|
-
right: 99.8%; // Termina acompanhando o esvaziamento
|
|
965
|
-
width: 20%; // Gradiente reduz o tamanho até desaparecer
|
|
966
|
-
}
|
|
967
|
-
`,cs=Fe`
|
|
968
|
-
0%, 100% {
|
|
969
|
-
background-position: 200% center;
|
|
970
|
-
}
|
|
971
|
-
50% {
|
|
972
|
-
background-position: -100% center;
|
|
973
|
-
}
|
|
974
|
-
`,us=E.div`
|
|
975
|
-
${V.resetStyles}
|
|
976
|
-
display: flex;
|
|
977
|
-
justify-content: center;
|
|
978
|
-
align-items: center;
|
|
979
|
-
flex-direction: column;
|
|
980
|
-
`,ds=E.div`
|
|
981
|
-
${V.resetStyles}
|
|
982
|
-
position: relative;
|
|
983
|
-
width: calc(${e=>e.sizeInPx} * 1.9);
|
|
984
|
-
height: ${e=>e.sizeInPx};
|
|
985
|
-
|
|
986
|
-
svg {
|
|
987
|
-
width: 100%;
|
|
988
|
-
height: 100%;
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
&::after,
|
|
992
|
-
&::before {
|
|
993
|
-
content: '';
|
|
994
|
-
position: absolute;
|
|
995
|
-
top: 0;
|
|
996
|
-
bottom: 0;
|
|
997
|
-
background: linear-gradient(to left, rgba(255, 255, 255, 0.5), transparent);
|
|
998
|
-
z-index: 1;
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
&::after {
|
|
1002
|
-
right: 0;
|
|
1003
|
-
animation: ${as} ${e=>e.animationSpeed}s
|
|
1004
|
-
ease-in-out infinite;
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
&::before {
|
|
1008
|
-
right: 0;
|
|
1009
|
-
animation: ${ls}
|
|
1010
|
-
${e=>e.animationSpeed}s ease-in-out infinite;
|
|
1011
|
-
}
|
|
1012
|
-
`,fs=E.div`
|
|
1013
|
-
${V.resetStyles}
|
|
1014
|
-
position: absolute;
|
|
1015
|
-
top: 0;
|
|
1016
|
-
left: 0;
|
|
1017
|
-
width: 100%;
|
|
1018
|
-
height: 100%;
|
|
1019
|
-
overflow: hidden;
|
|
1020
|
-
animation: ${ss} ${e=>e.animationSpeed}s
|
|
1021
|
-
ease-in-out infinite;
|
|
1022
|
-
`,gs=E.div`
|
|
1023
|
-
${V.resetStyles}
|
|
1024
|
-
display: flex;
|
|
1025
|
-
justify-content: center;
|
|
1026
|
-
align-items: center;
|
|
1027
|
-
margin-top: 8px;
|
|
1028
|
-
`,hs=E.h2`
|
|
1029
|
-
${V.resetStyles}
|
|
1030
|
-
width: ${e=>e.textWidth};
|
|
1031
|
-
word-wrap: ${e=>e.wordBreak};
|
|
1032
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilySecondary};
|
|
1033
|
-
font-size: ${e=>e.fontSize};
|
|
1034
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightSemiBold};
|
|
1035
|
-
line-height: normal;
|
|
1036
|
-
padding: 0 ${t.sg.spacings.spacingInline.spacingInlineLg};
|
|
1037
|
-
color: #3b414d;
|
|
1038
|
-
align-items: center;
|
|
1039
|
-
background: linear-gradient(
|
|
1040
|
-
to left,
|
|
1041
|
-
${t.sg.colors.neutralColors.colorNeutralCleanest},
|
|
1042
|
-
${t.sg.colors.brandColors.colorBrandPrimary},
|
|
1043
|
-
${t.sg.colors.neutralColors.colorNeutralCleanest}
|
|
1044
|
-
);
|
|
1045
|
-
background-size: 200% auto;
|
|
1046
|
-
background-clip: text;
|
|
1047
|
-
-webkit-background-clip: text;
|
|
1048
|
-
-webkit-text-fill-color: transparent;
|
|
1049
|
-
animation: ${cs} ${e=>e.animationSpeed}s
|
|
1050
|
-
linear infinite;
|
|
1051
|
-
display: inline;
|
|
1052
|
-
`,Fr=({sizeInPx:e,animationTitle:o,textWidth:r="100%",wordBreak:n,variant:i="Auto",fontSize:c})=>{var x,y;const l=A.useRef(null),[d,f]=A.useState(0),h=()=>{var a;if((a=l==null?void 0:l.current)!=null&&a.parentElement){const S=l.current.parentElement.offsetWidth;f(S)}};A.useEffect(()=>{var S;h(),window.addEventListener("resize",h);let a=null;return(S=l==null?void 0:l.current)!=null&&S.parentElement&&"ResizeObserver"in window&&(a=new ResizeObserver(()=>{h()}),a.observe(l.current.parentElement)),()=>{window.removeEventListener("resize",h),a&&a.disconnect()}},[]);const p=6,m=a=>{const S=parseFloat(a);return S===0?"14px":`${S/77*14}px`},b={Auto:{sizeInPx:d>600?"119px":"77px",fontSize:c},Small:{sizeInPx:e??"77px",fontSize:c},Medium:{sizeInPx:e??"119px",fontSize:c||m(e)},Large:{sizeInPx:e??"77px",fontSize:c||m(e)},default:{sizeInPx:"77px",fontSize:c}};return u.jsx("div",{ref:l,children:i==="Large"?u.jsxs(us,{children:[u.jsxs(ds,{sizeInPx:b.Large.sizeInPx,animationSpeed:p,children:[u.jsx(ns,{}),u.jsx(fs,{animationSpeed:p,children:u.jsx(is,{})})]}),u.jsx(gs,{children:u.jsx(hs,{textWidth:r,fontSize:b.Large.fontSize,animationSpeed:p,wordBreak:n,children:o})})]}):u.jsx(Nr,{width:((x=b[i])==null?void 0:x.sizeInPx)??b.default.sizeInPx,text:o,fontSize:((y=b[i])==null?void 0:y.fontSize)??b.default.fontSize})})},ps=E.div`
|
|
1053
|
-
position: fixed;
|
|
1054
|
-
top: 0;
|
|
1055
|
-
left: 0;
|
|
1056
|
-
width: 100vw;
|
|
1057
|
-
height: 100vh;
|
|
1058
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
1059
|
-
display: flex;
|
|
1060
|
-
justify-content: center;
|
|
1061
|
-
align-items: center;
|
|
1062
|
-
z-index: 499;
|
|
1063
|
-
`,ms=E.div`
|
|
1064
|
-
width: ${({width:e})=>e??"520px"};
|
|
1065
|
-
padding: ${()=>`${t.sg.spacings.spacingInline.spacingInlineSm} ${t.sg.spacings.spacingInline.spacingInlineMd} ${t.sg.spacings.spacingStack.spacingStackLg}`};
|
|
1066
|
-
background-color: ${t.sg.colors.backgroundColors.colorBackgroundCarpet};
|
|
1067
|
-
border-radius: ${t.sg.borders.borderRadius.borderRadiusSm};
|
|
1068
|
-
box-shadow: ${t.sg.shadows.shadowLevelNear};
|
|
1069
|
-
display: flex;
|
|
1070
|
-
flex-direction: column;
|
|
1071
|
-
align-items: center;
|
|
1072
|
-
`,ys=E.button`
|
|
1073
|
-
align-self: flex-end;
|
|
1074
|
-
background: none;
|
|
1075
|
-
border: none;
|
|
1076
|
-
height: ${t.sg.icons.iconSizeMd};
|
|
1077
|
-
cursor: pointer;
|
|
1078
|
-
`,vs=E.h3`
|
|
1079
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
1080
|
-
color: ${t.sg.colors.neutralColors.colorNeutralDarkest};
|
|
1081
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightBold};
|
|
1082
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeTitleSm};
|
|
1083
|
-
line-height: ${t.sg.fonts.lineHeight.lineHeightMd(t.sg.fonts.fontSize.fontSizeTitleSm)};
|
|
1084
|
-
margin-bottom: ${t.sg.spacings.spacingStack.spacingStackSm};
|
|
1085
|
-
max-width: calc(100% - ${t.sg.spacings.spacingInline.spacingInlineMd});
|
|
1086
|
-
word-wrap: break-word;
|
|
1087
|
-
white-space: pre-line;
|
|
1088
|
-
text-align: center;
|
|
1089
|
-
`,Dt=({render:e,destroy:o,title:r,width:n,height:i,withCloseButton:c=!0,customStyles:l={}})=>u.jsx(ps,{children:u.jsxs(ms,{height:i,width:n,style:{...l},children:[c&&u.jsx(we,{width:"100%",direction:"horizontal",horizontalAlign:"right",verticalAlign:"center",customStyles:{marginBottom:t.sg.spacings.spacingStack.spacingStackXs},children:u.jsx(ys,{children:u.jsx(t.Icon,{iconName:"CloseMd",color:t.sg.colors.neutralColors.colorNeutralDark,onClick:o,cursorPointer:!0})})}),r&&u.jsx(vs,{children:r}),e(o)]})});Dt.displayName="Modal";const Mr=({id:e,render:o,title:r,withCloseButton:n=!0,height:i,width:c,customStyles:l={}})=>{const d=V.dom.portal.add(e),f=ft(d),h=()=>{f.unmount(),d.remove()},p=gt.createPortal(u.jsx(Dt,{id:e,render:o,title:r,withCloseButton:n,destroy:h,width:c,height:i,customStyles:l}),d);f.render(p)};Mr.displayName="showModal";const Ss=E.label`
|
|
1090
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
1091
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeBodyMd};
|
|
1092
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
1093
|
-
line-height: ${t.sg.fonts.lineHeight.lineHeightSm(t.sg.fonts.fontSize.fontSizeBodyMd)};
|
|
1094
|
-
color: ${t.sg.colors.feedbackColors.colorFeedbackError};
|
|
1095
|
-
`,bs=E.span`
|
|
1096
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
1097
|
-
font-size: ${({variant:e})=>e==="title"?t.sg.fonts.fontSize.fontSizeBodyLg:t.sg.fonts.fontSize.fontSizeBodyMd};
|
|
1098
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightSemiBold};
|
|
1099
|
-
color: ${({variant:e})=>e==="title"?t.sg.colors.neutralColors.colorNeutralDarkest:t.sg.colors.neutralColors.colorNeutralCloudy};
|
|
1100
|
-
line-height: 16px;
|
|
1101
|
-
`,Lr=({title:e,divider:o=!0,collapse:r,marginBottom:n=t.sg.spacings.spacingInset.spacingInsetSm,flex:i="0 1 auto",variant:c="title",endAdornment:l=null,withInfo:d=!1,infoProps:f={},customStyles:h={}})=>{const p={...f,tooltipProps:{maxWidth:"300px",position:"top",...f==null?void 0:f.tooltipProps}};return u.jsxs(we,{width:"100%",height:"fit-content",direction:"horizontal",verticalAlign:"center",minHeight:"fit-content",customStyles:{marginBottom:n,maxHeight:"fit-content !important",...h},flex:i,children:[u.jsxs(we,{direction:"horizontal",gap:"8px",height:"100%",verticalAlign:"center",children:[u.jsx(bs,{variant:c,children:e}),d&&u.jsx(Bt,{...p}),r?u.jsx(we,{padding:"0px 0px 0px 8px",height:"100%",verticalAlign:"center",children:u.jsx(t.Icon,{cursorPointer:!0,iconName:r.collapsed?"ExpandMoreSm":"ExpandLessSm",color:t.sg.colors.neutralColors.colorNeutralDarkest,onClick:()=>r.setCollapsed(!r.collapsed)})}):null]}),o?u.jsx(we,{flex:"1 1",height:"100%",verticalAlign:"center",direction:"horizontal",customStyles:{marginLeft:"8px"},children:u.jsx(t.Divider,{width:"100%",direction:"horizontal"})}):null,V.valuable(l)&&u.jsxs(u.Fragment,{children:[u.jsx(Me,{size:t.sg.spacings.spacingInline.spacingInlineXs,direction:"horizontal"}),l]})]})};Lr.displayName="SectionTitle";const Cs=E.div`
|
|
1102
|
-
${V.resetStyles}
|
|
1103
|
-
display: flex;
|
|
1104
|
-
flex-direction: column;
|
|
1105
|
-
width: ${({width:e})=>e};
|
|
1106
|
-
height: ${({height:e})=>e};
|
|
1107
|
-
& :focus-within {
|
|
1108
|
-
border-color: ${({readonly:e})=>!e&&t.sg.colors.neutralColors.colorNeutralCloudy};
|
|
1109
|
-
}
|
|
1110
|
-
`,$s=E.label`
|
|
1111
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
1112
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeBodyMd};
|
|
1113
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
1114
|
-
line-height: ${t.sg.fonts.lineHeight.lineHeightSm(t.sg.fonts.fontSize.fontSizeBodyMd)};
|
|
1115
|
-
color: ${t.sg.colors.neutralColors.colorNeutralCloudy};
|
|
1116
|
-
margin-bottom: ${t.sg.spacings.spacingStack.spacingStackNano};
|
|
1117
|
-
`,xs=E.div`
|
|
1118
|
-
width: 100%;
|
|
1119
|
-
height: ${({height:e})=>e};
|
|
1120
|
-
max-height: ${({maxHeight:e})=>e};
|
|
1121
|
-
min-height: ${({minHeight:e})=>e};
|
|
1122
|
-
position: relative;
|
|
1123
|
-
display: flex;
|
|
1124
|
-
flex-direction: column;
|
|
1125
|
-
background-color: ${t.sg.colors.neutralColors.colorNeutralSnow};
|
|
1126
|
-
border-radius: ${t.sg.borders.borderRadius.borderRadiusSm};
|
|
1127
|
-
padding: ${t.sg.spacings.spacingInset.spacingInsetNano};
|
|
1128
|
-
${({resize:e})=>e&&z`
|
|
1129
|
-
padding-bottom: 25px;
|
|
1130
|
-
`}
|
|
1131
|
-
border: ${t.sg.borders.borderWidth.borderWidthThinner} solid
|
|
1132
|
-
${t.sg.colors.neutralColors.colorNeutralClean};
|
|
1133
|
-
${({error:e,disabled:o,readonly:r})=>e&&(!o||!r)?z`
|
|
1134
|
-
border-color: ${t.sg.colors.feedbackColors.colorFeedbackError};
|
|
1135
|
-
`:e&&(o||r)?z`
|
|
1136
|
-
border-color: ${t.sg.colors.feedbackColors.colorFeedbackError};
|
|
1137
|
-
background-color: ${t.sg.colors.brandColors.colorBrandSeSoft};
|
|
1138
|
-
`:!e&&(o||r)?z`
|
|
1139
|
-
border-color: ${t.sg.colors.neutralColors.colorNeutralClean};
|
|
1140
|
-
background-color: ${t.sg.colors.brandColors.colorBrandSeSoft};
|
|
1141
|
-
`:z`
|
|
1142
|
-
border-color: ${t.sg.colors.neutralColors.colorNeutralClean};
|
|
1143
|
-
`}
|
|
1144
|
-
cursor: text;
|
|
1145
|
-
svg {
|
|
1146
|
-
cursor: ns-resize;
|
|
1147
|
-
position: absolute;
|
|
1148
|
-
right: 8px;
|
|
1149
|
-
bottom: 8px;
|
|
1150
|
-
z-index: 2;
|
|
1151
|
-
}
|
|
1152
|
-
`,ws=E.textarea`
|
|
1153
|
-
height: 100%;
|
|
1154
|
-
outline: none;
|
|
1155
|
-
resize: none;
|
|
1156
|
-
background-color: ${({disabled:e,readOnly:o})=>e||o?t.sg.colors.brandColors.colorBrandSeSoft:t.sg.colors.neutralColors.colorNeutralSnow};
|
|
1157
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
1158
|
-
font-size: ${({size:e})=>e==="Small"?t.sg.fonts.fontSize.fontSizeBodyMd:t.sg.fonts.fontSize.fontSizeBodyLg};
|
|
1159
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
1160
|
-
line-height: ${t.sg.fonts.lineHeight.lineHeightSm(t.sg.fonts.fontSize.fontSizeBodyMd)};
|
|
1161
|
-
color: ${t.sg.colors.neutralColors.colorNeutralDark};
|
|
1162
|
-
&::placeholder {
|
|
1163
|
-
color: ${t.sg.colors.neutralColors.colorNeutralCleanest};
|
|
1164
|
-
font-size: ${({size:e})=>e==="Small"?t.sg.fonts.fontSize.fontSizeBodyMd:t.sg.fonts.fontSize.fontSizeBodyLg};
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
::-webkit-scrollbar {
|
|
1168
|
-
width: 6px;
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
::-webkit-scrollbar-track {
|
|
1172
|
-
background: ${t.sg.colors.neutralColors.colorNeutralSoft};
|
|
1173
|
-
border-radius: ${t.sg.borders.borderRadius.borderRadiusPill};
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
::-webkit-scrollbar-thumb {
|
|
1177
|
-
background: ${t.sg.colors.neutralColors.colorNeutralClean};
|
|
1178
|
-
border-radius: ${t.sg.borders.borderRadius.borderRadiusPill};
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
::-webkit-resizer {
|
|
1182
|
-
display: none;
|
|
1183
|
-
}
|
|
1184
|
-
`,Es=E.div`
|
|
1185
|
-
width: 100%;
|
|
1186
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
1187
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeBodyMd};
|
|
1188
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
1189
|
-
line-height: ${t.sg.fonts.lineHeight.lineHeightSm(t.sg.fonts.fontSize.fontSizeBodyMd)};
|
|
1190
|
-
margin-top: ${t.sg.spacings.spacingStack.spacingStackNano};
|
|
1191
|
-
`,ks=E.span`
|
|
1192
|
-
color: ${t.sg.colors.neutralColors.colorNeutralCloudy};
|
|
1193
|
-
float: right;
|
|
1194
|
-
`,_s=(e,o,r,n,i)=>{const c=A.useRef(null),l=A.useRef(null);A.useEffect(()=>{var a,S,P,_;(a=c.current)==null||a.focus(),(_=c.current)==null||_.setSelectionRange((S=c.current)==null?void 0:S.value.length,(P=c.current)==null?void 0:P.value.length)},[i,c]);const d=A.useCallback(()=>{if(c.current&&l.current){const a=window.getComputedStyle(l.current),S=parseFloat(a.paddingTop)+parseFloat(a.paddingBottom),P=parseFloat(a.borderTopWidth)+parseFloat(a.borderBottomWidth);c.current.style.height=`calc(${l.current.clientHeight}px - ${S+P}px)`}},[]);A.useEffect(()=>(d(),window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d)}),[d,o,r]);const f=a=>{e(a)},h=A.useCallback(()=>{c.current&&(!o||!r)&&c.current.focus()},[o,r]),p=A.useRef(0),m=A.useRef(0),b=A.useCallback(a=>{if(l.current){const S=m.current+a.clientY-p.current;l.current.style.height=`${S}px`,d()}},[d]),x=A.useCallback(()=>{document.documentElement.removeEventListener("mousemove",b,!1),document.documentElement.removeEventListener("mouseup",x,!1),d()},[b,d]),y=A.useCallback(a=>{p.current=a.clientY,n&&l.current&&(m.current=parseInt(document.defaultView.getComputedStyle(l.current).height,10),document.documentElement.addEventListener("mousemove",b,!1),document.documentElement.addEventListener("mouseup",x,!1))},[b,x,n]);return A.useEffect(()=>()=>{x()},[x]),{textareaRef:c,textShapeRef:l,handleChange:f,focusTextarea:h,startResizing:y}},Br=A.forwardRef(({id:e,label:o,placeholder:r,disabled:n,value:i,size:c="Medium",charactersCounter:l,maxlength:d,width:f,height:h,onChange:p,onBlur:m,onFocus:b,onEnter:x,readonly:y,errorMessage:a,tooltipProps:S={},maxHeight:P,minHeight:_,resize:O=!0,...j},v)=>{const{textareaRef:U,handleChange:ee,startResizing:te,textShapeRef:ce,focusTextarea:I}=_s(p,n,y,O,a),ge=u.jsx("div",{onMouseDown:te,style:{height:"0px"},children:u.jsx(t.Icon,{iconName:"Resize",color:n||y?t.sg.colors.neutralColors.colorNeutralCleanest:void 0})}),X=!!a,Y=W=>{W.key==="Enter"&&x&&x(W)},ae={...S,isErrorTooltip:!0,isActive:X,label:a,wrapperWidth:"auto"};return u.jsxs(Cs,{"data-testid":"textareaContainer",id:`input-${e}`,width:f,height:h,readonly:y,children:[u.jsx($s,{children:o}),u.jsx(Ie,{...ae,children:u.jsxs(xs,{error:X,disabled:n,readonly:y,"data-testid":"textarea-shape",height:h,maxHeight:P,minHeight:_,onClick:I,resize:O,ref:ce,children:[u.jsx(ws,{disabled:n,readOnly:y,value:i,onChange:ee,onBlur:m,onFocus:b,onKeyPress:W=>Y(W),placeholder:r,maxLength:d,"data-testid":"textarea",size:c,...j,ref:W=>{U.current=W,typeof v=="function"?v(W):v&&(v.current=W)}}),O&&ge]})}),l&&u.jsx(Es,{children:u.jsxs(ks,{children:[(i==null?void 0:i.length)>0?i.length:0,"/",d]})})]})});Br.displayName="Textarea";const Rs=E.div`
|
|
1195
|
-
${V.resetStyles}
|
|
1196
|
-
display: flex;
|
|
1197
|
-
flex-direction: row;
|
|
1198
|
-
align-items: center;
|
|
1199
|
-
padding: ${t.sg.spacings.spacingStack.spacingStackNano};
|
|
1200
|
-
position: relative;
|
|
1201
|
-
width: ${({width:e})=>e};
|
|
1202
|
-
`,ot=E.input`
|
|
1203
|
-
font-size: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeMd};
|
|
1204
|
-
accent-color: ${t.sg.colors.brandColors.colorBrandSoft};
|
|
1205
|
-
width: 0;
|
|
1206
|
-
opacity: 0;
|
|
1207
|
-
display: none;
|
|
1208
|
-
`,zs=E.label`
|
|
1209
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
1210
|
-
font-size: ${({size:e})=>e==="Small"?t.sg.fonts.fontSize.fontSizeBodyMd:t.sg.fonts.fontSize.fontSizeBodyLg};
|
|
1211
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
1212
|
-
line-height: ${({size:e})=>e==="Small"?t.sg.fonts.lineHeight.lineHeightSm(t.sg.fonts.fontSize.fontSizeBodyMd):t.sg.fonts.lineHeight.lineHeightMd(t.sg.fonts.fontSize.fontSizeBodyLg)};
|
|
1213
|
-
color: ${({disabled:e})=>e?t.sg.colors.neutralColors.colorNeutralCloudy:t.sg.colors.neutralColors.colorNeutralDark};
|
|
1214
|
-
margin-left: ${({size:e})=>e==="Small"?"2.35rem":"3rem"};
|
|
1215
|
-
|
|
1216
|
-
&::after {
|
|
1217
|
-
content: '';
|
|
1218
|
-
position: absolute;
|
|
1219
|
-
opacity: ${({isError:e})=>e?1:0};
|
|
1220
|
-
top: ${({bulletTop:e})=>e};
|
|
1221
|
-
right: ${({bulletRight:e})=>e};
|
|
1222
|
-
width: 6px;
|
|
1223
|
-
height: 6px;
|
|
1224
|
-
background-color: ${t.sg.colors.feedbackColors.colorFeedbackError};
|
|
1225
|
-
border-radius: 50%;
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
|
-
&:hover {
|
|
1229
|
-
cursor: ${({disabled:e})=>e?"default":"pointer"};
|
|
1230
|
-
}
|
|
1231
|
-
`,Ts=E.div`
|
|
1232
|
-
width: fit-content;
|
|
1233
|
-
position: absolute;
|
|
1234
|
-
top: ${({size:e})=>e==="Small"?"calc(50% + 0.5rem)":"calc(50% + 0.4rem)"};
|
|
1235
|
-
transform: ${({size:e})=>e==="Small"?"translateY(calc(-50% - 0.3rem))":"translateY(calc(-50% - 0.1rem))"};
|
|
1236
|
-
left: ${({size:e})=>e==="Small"?"0.6rem":"0.5rem"};
|
|
1237
|
-
|
|
1238
|
-
${ot}:checked ~ & {
|
|
1239
|
-
opacity: 1;
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
${ot}:not(:checked) ~ & {
|
|
1243
|
-
opacity: 0;
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
|
-
& > i > svg {
|
|
1247
|
-
width: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeMd};
|
|
1248
|
-
height: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeMd};
|
|
1249
|
-
|
|
1250
|
-
path {
|
|
1251
|
-
fill: ${({disabled:e})=>e?t.sg.colors.neutralColors.colorNeutralCloudy:t.sg.colors.brandColors.colorBrandSoft} !important;
|
|
1252
|
-
}
|
|
1253
|
-
}
|
|
1254
|
-
`,Ns=E.div`
|
|
1255
|
-
width: fit-content;
|
|
1256
|
-
position: absolute;
|
|
1257
|
-
top: ${({size:e})=>e==="Small"?"calc(50% + 0.5rem)":"calc(50% + 0.4rem)"};
|
|
1258
|
-
transform: ${({size:e})=>e==="Small"?"translateY(calc(-50% - 0.3rem))":"translateY(calc(-50% - 0.1rem))"};
|
|
1259
|
-
left: ${({size:e})=>e==="Small"?"0.6rem":"0.5rem"};
|
|
1260
|
-
|
|
1261
|
-
${ot}:checked ~ & {
|
|
1262
|
-
opacity: 0;
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
${ot}:not(:checked) ~ & {
|
|
1266
|
-
opacity: 1;
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
& > i > svg {
|
|
1270
|
-
width: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeMd};
|
|
1271
|
-
height: ${({size:e})=>e==="Small"?t.sg.icons.iconSizeSm:t.sg.icons.iconSizeMd};
|
|
1272
|
-
|
|
1273
|
-
path {
|
|
1274
|
-
fill: ${({disabled:e})=>e?t.sg.colors.neutralColors.colorNeutralCloudy:t.sg.colors.neutralColors.colorNeutralDark};
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
`,Dr=A.forwardRef(({id:e,label:o,size:r="Small",value:n,name:i,disabled:c=!1,width:l="100%",onChange:d,checked:f=!1,isError:h,confirmBeforeChange:p,bulletRight:m="-3px",bulletTop:b="3.5px",...x},y)=>{const a=A.useRef(null);return u.jsx(Rs,{width:l,children:u.jsxs(zs,{htmlFor:`radio-${o}-${e}`,disabled:c,size:r,"data-testid":"radio-label",isError:h,bulletRight:m,bulletTop:b,children:[u.jsx(ot,{type:"radio",disabled:c,id:`radio-${o}-${e}`,size:r,"data-testid":"radio",value:n,name:i,checked:f,onChange:S=>p?ht({id:"cofirm-change",title:p.title,description:p.description,icon:"ErrorEl",iconColor:t.sg.colors.feedbackColors.colorFeedbackWarning,leftButtonProps:{name:"Cancelar",variant:"tertiary",onClick:()=>{}},rightButtonProps:{name:"Confirmar",variant:"secondary",onClick:()=>d(S)}}):d(S),...x,ref:S=>{a.current=S,typeof y=="function"?y(S):y&&(y.current=S)}}),u.jsx(Ts,{size:r,disabled:c,children:u.jsx(t.Icon,{iconName:`SelectedTrue1${r==="Small"?"Sm":"Md"}`,color:c?t.sg.colors.neutralColors.colorNeutralCloudy:t.sg.colors.brandColors.colorBrandSoft})}),u.jsx(Ns,{size:r,disabled:c,children:u.jsx(t.Icon,{iconName:`SelectedFalse1${r==="Small"?"Sm":"Md"}`,color:c?t.sg.colors.neutralColors.colorNeutralCloudy:t.sg.colors.neutralColors.colorNeutralDark})}),o]})})});Dr.displayName="Radio";const As=E.div`
|
|
1278
|
-
background-color: transparent;
|
|
1279
|
-
border: none;
|
|
1280
|
-
outline: none;
|
|
1281
|
-
margin: 0px;
|
|
1282
|
-
padding: 0px;
|
|
1283
|
-
${({direction:e,size:o,flex:r})=>r!=="none"?z`
|
|
1284
|
-
flex: ${r};
|
|
1285
|
-
`:o==="auto"?z`
|
|
1286
|
-
flex: 1;
|
|
1287
|
-
`:e==="horizontal"?z`
|
|
1288
|
-
flex: none;
|
|
1289
|
-
width: ${o};
|
|
1290
|
-
height: 0px;
|
|
1291
|
-
`:e==="vertical"?z`
|
|
1292
|
-
flex: none;
|
|
1293
|
-
width: 0px;
|
|
1294
|
-
height: ${o};
|
|
1295
|
-
`:z`
|
|
1296
|
-
width: auto;
|
|
1297
|
-
height: auto;
|
|
1298
|
-
`}
|
|
1299
|
-
`,Me=({direction:e="vertical",size:o="auto",flex:r="none",customStyles:n={}})=>u.jsx(As,{direction:e,size:o,flex:r,style:{...n}});Me.displayName="Spacer";const Ps=E.div`
|
|
1300
|
-
${V.resetStyles}
|
|
1301
|
-
padding: ${t.sg.spacings.spacingStack.spacingStackNano};
|
|
1302
|
-
display: flex;
|
|
1303
|
-
flex-direction: row;
|
|
1304
|
-
align-items: center;
|
|
1305
|
-
`,js=E.label`
|
|
1306
|
-
${V.resetStyles}
|
|
1307
|
-
cursor: pointer;
|
|
1308
|
-
height: ${({size:e})=>{switch(e){case"Small":return t.sg.icons.iconSizeSm;case"Medium":return t.sg.icons.iconSizeSm;case"Large":return"22px";default:return"15px"}}};
|
|
1309
|
-
width: ${({size:e})=>{switch(e){case"Small":return"28px";case"Medium":return"29px";case"Large":return"43px";default:return"15px"}}};
|
|
1310
|
-
${({disabled:e,checked:o})=>{if(e&&!o)return z`
|
|
1311
|
-
background-color: ${t.sg.colors.neutralColors.colorNeutralSoft};
|
|
1312
|
-
`;if(!e&&o)return z`
|
|
1313
|
-
background-color: ${t.sg.colors.brandColors.colorBrandPrimary};
|
|
1314
|
-
`;if(!e&&!o)return z`
|
|
1315
|
-
background-color: ${t.sg.colors.neutralColors.colorNeutralCleanest};
|
|
1316
|
-
`;if(e&&o)return z`
|
|
1317
|
-
background-color: ${t.sg.colors.neutralColors.colorNeutralSoft};
|
|
1318
|
-
`}}
|
|
1319
|
-
margin-right: ${t.sg.spacings.spacingInline.spacingInlineNano};
|
|
1320
|
-
display: flex;
|
|
1321
|
-
align-items: center;
|
|
1322
|
-
justify-content: center;
|
|
1323
|
-
border-radius: ${t.sg.borders.borderRadius.borderRadiusPill};
|
|
1324
|
-
position: relative;
|
|
1325
|
-
transition: 0.2s;
|
|
1326
|
-
`,Os=E.label`
|
|
1327
|
-
${V.resetStyles}
|
|
1328
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
1329
|
-
font-size: ${({size:e})=>{switch(e){case"Small":return t.sg.fonts.fontSize.fontSizeBodySm;case"Medium":return t.sg.fonts.fontSize.fontSizeBodyMd;case"Large":return t.sg.fonts.fontSize.fontSizeBodyLg;default:return"15px"}}};
|
|
1330
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
1331
|
-
line-height: ${t.sg.fonts.lineHeight.lineHeightSm(t.sg.fonts.fontSize.fontSizeBodyMd)};
|
|
1332
|
-
color: ${({disabled:e})=>e?t.sg.colors.neutralColors.colorNeutralCloudy:t.sg.colors.neutralColors.colorNeutralDark};
|
|
1333
|
-
`,Wr=E.span`
|
|
1334
|
-
${V.resetStyles}
|
|
1335
|
-
height: ${({size:e})=>e==="Large"?"15px":"10px"};
|
|
1336
|
-
width: ${({size:e})=>e==="Large"?"15px":"10px"};
|
|
1337
|
-
background-color: ${({disabled:e})=>e?t.sg.colors.neutralColors.colorNeutralCleanest:t.sg.colors.neutralColors.colorNeutralSnow};
|
|
1338
|
-
border-radius: ${t.sg.borders.borderRadius.borderRadiusPill};
|
|
1339
|
-
position: absolute;
|
|
1340
|
-
left: 3px;
|
|
1341
|
-
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
1342
|
-
transition: 0.2s;
|
|
1343
|
-
`,Is=E.input`
|
|
1344
|
-
${V.resetStyles}
|
|
1345
|
-
height: 100%;
|
|
1346
|
-
width: 100%;
|
|
1347
|
-
opacity: 0;
|
|
1348
|
-
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
1349
|
-
|
|
1350
|
-
&:checked + ${Wr} {
|
|
1351
|
-
left: 55%;
|
|
1352
|
-
}
|
|
1353
|
-
`,Fs=E.h1`
|
|
1354
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
1355
|
-
font-size: ${t.sg.fonts.fontSize.fontSizeTitleSm};
|
|
1356
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightSemiBold};
|
|
1357
|
-
line-height: ${t.sg.fonts.lineHeight.lineHeightMd(t.sg.fonts.fontSize.fontSizeTitleSm)};
|
|
1358
|
-
color: ${({color:e})=>e||t.sg.colors.neutralColors.colorNeutralBlack};
|
|
1359
|
-
`,Ms=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ls=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Bs=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Hr={direction:Ls,icon:Bi,position:Bs,button:Ms},Ds=Object.freeze(Object.defineProperty({__proto__:null,default:Hr},Symbol.toStringTag,{value:"Module"})),Ws=E.div`
|
|
1360
|
-
${V.resetStyles}
|
|
1361
|
-
width: ${({wrapperWidth:e})=>e??"fit-content"};
|
|
1362
|
-
height: ${({wrapperHeight:e})=>e??"fit-content"};
|
|
1363
|
-
|
|
1364
|
-
&:hover .tooltip {
|
|
1365
|
-
${V.resetStyles}
|
|
1366
|
-
visibility: visible;
|
|
1367
|
-
opacity: 1;
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
${({wrapperStyles:e})=>e&&z(e)};
|
|
1371
|
-
`,Hs=E.div`
|
|
1372
|
-
${V.resetStyles}
|
|
1373
|
-
position: fixed;
|
|
1374
|
-
display: flex;
|
|
1375
|
-
justify-content: center;
|
|
1376
|
-
align-items: center;
|
|
1377
|
-
height: ${({height:e})=>e};
|
|
1378
|
-
width: ${({width:e})=>e};
|
|
1379
|
-
max-width: ${({maxWidth:e})=>e};
|
|
1380
|
-
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
1381
|
-
font-size: ${({size:e})=>e==="Small"?t.sg.fonts.fontSize.fontSizeBodySm:t.sg.fonts.fontSize.fontSizeBodyMd};
|
|
1382
|
-
font-weight: ${t.sg.fonts.fontWeight.fontWeightRegular};
|
|
1383
|
-
line-height: ${({size:e})=>e==="Small"?t.sg.fonts.lineHeight.lineHeightMd(t.sg.fonts.fontSize.fontSizeBodyMd):t.sg.fonts.lineHeight.lineHeightSm(t.sg.fonts.fontSize.fontSizeBodySm)};
|
|
1384
|
-
box-shadow: ${t.sg.shadows.shadowLevelNear};
|
|
1385
|
-
color: ${({errorTooltip:e})=>e?t.sg.colors.neutralColors.colorNeutralSnow:t.sg.colors.neutralColors.colorNeutralDarkest};
|
|
1386
|
-
background-color: ${({errorTooltip:e,color:o})=>e?t.sg.colors.feedbackColors.colorFeedbackError:o};
|
|
1387
|
-
border-radius: ${t.sg.borders.borderRadius.borderExtraSmall};
|
|
1388
|
-
text-align: center;
|
|
1389
|
-
min-width: 3.2rem;
|
|
1390
|
-
visibility: ${({isVisible:e})=>e?"visible":"hidden"};
|
|
1391
|
-
opacity: ${({isVisible:e})=>e?1:0};
|
|
1392
|
-
transition: opacity 0.3s;
|
|
1393
|
-
z-index: 1000;
|
|
1394
|
-
padding: ${({errorTooltip:e})=>e?`0 0 0 ${t.sg.spacings.spacingInset.spacingInsetNano}`:"0"};
|
|
1395
|
-
|
|
1396
|
-
/* Remove the position-based CSS since positioning is handled in updateTooltipPosition */
|
|
1397
|
-
span {
|
|
1398
|
-
${V.resetStyles}
|
|
1399
|
-
padding: ${({errorTooltip:e})=>e?`${t.sg.spacings.spacingInset.spacingInsetNano} ${t.sg.spacings.spacingInset.spacingInsetNano} ${t.sg.spacings.spacingInset.spacingInsetNano} 0 `:t.sg.spacings.spacingInset.spacingInsetNano};
|
|
1400
|
-
max-width: ${({maxWidth:e})=>e};
|
|
1401
|
-
word-wrap: break-word;
|
|
1402
|
-
margin-left: ${({errorTooltip:e})=>e?"6px":"0"};
|
|
1403
|
-
}
|
|
1404
|
-
|
|
1405
|
-
& > svg {
|
|
1406
|
-
margin: ${({errorTooltip:e})=>e?"20px":0};
|
|
1407
|
-
}
|
|
1408
|
-
|
|
1409
|
-
& > svg path {
|
|
1410
|
-
${V.resetStyles}
|
|
1411
|
-
fill: ${t.sg.colors.neutralColors.colorNeutralSnow};
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
&::before {
|
|
1415
|
-
content: '';
|
|
1416
|
-
position: absolute;
|
|
1417
|
-
width: 0;
|
|
1418
|
-
height: 0;
|
|
1419
|
-
border-style: solid;
|
|
1420
|
-
|
|
1421
|
-
${({position:e,errorTooltip:o,color:r,style:{backgroundColor:n}={backgroundColor:null}})=>{const i=o?t.sg.colors.feedbackColors.colorFeedbackError:n||(r??"#000");return z`
|
|
1422
|
-
${["top","topLeft","topRight"].includes(e)&&z`
|
|
1423
|
-
bottom: -8px;
|
|
1424
|
-
left: 50%;
|
|
1425
|
-
transform: translateX(-50%);
|
|
1426
|
-
border-width: 8px 8px 0 8px;
|
|
1427
|
-
border-color: ${i} transparent transparent transparent;
|
|
1428
|
-
`}
|
|
1429
|
-
${["bottom","bottomLeft","bottomRight"].includes(e)&&z`
|
|
1430
|
-
top: -8px;
|
|
1431
|
-
left: 50%;
|
|
1432
|
-
transform: translateX(-50%);
|
|
1433
|
-
border-width: 0 8px 8px 8px;
|
|
1434
|
-
border-color: transparent transparent ${i} transparent;
|
|
1435
|
-
`}
|
|
1436
|
-
${e==="left"&&z`
|
|
1437
|
-
top: 50%;
|
|
1438
|
-
right: -8px;
|
|
1439
|
-
transform: translateY(-50%);
|
|
1440
|
-
border-width: 8px 0 8px 8px;
|
|
1441
|
-
border-color: transparent transparent transparent ${i};
|
|
1442
|
-
`}
|
|
1443
|
-
${e==="right"&&z`
|
|
1444
|
-
top: 50%;
|
|
1445
|
-
left: -8px;
|
|
1446
|
-
transform: translateY(-50%);
|
|
1447
|
-
border-width: 8px 8px 8px 0;
|
|
1448
|
-
border-color: transparent ${i} transparent transparent;
|
|
1449
|
-
`}
|
|
1450
|
-
`}}
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
${({withDropShadow:e=!1})=>e&&z`
|
|
1454
|
-
filter: 'drop-shadow(0px 0px 10px black)';
|
|
1455
|
-
`}
|
|
1456
|
-
`,Ie=({id:e,label:o,children:r,position:n="top",size:i="Medium",tooltipChildren:c,textAlign:l="left",customStyle:d,isErrorTooltip:f,isActive:h=!!o||!!c,isAlwaysVisible:p,width:m,maxWidth:b,color:x="#CDD1D9",wrapperWidth:y,wrapperHeight:a,height:S="fit-content",tooltipMargin:P="8px",wrapperStyles:_={},withArrow:O=!0,withBorder:j=!1,withDropShadow:v=!1})=>{const U=A.useRef(null),ee=A.useRef(null),te=()=>{if(U.current&&ee.current){const I=U.current.getBoundingClientRect(),ge=ee.current.getBoundingClientRect(),X=parseInt(P,10);let Y={};const ae=.3;let W=0;if(["top","bottom","topLeft","topRight","bottomLeft","bottomRight"].includes(n))switch(n){case"topLeft":case"bottomLeft":W=I.left+I.width*ae;break;case"topRight":case"bottomRight":W=I.right-I.width*ae;break;case"top":case"bottom":default:W=I.left+I.width/2;break}switch(n){case"top":case"topLeft":case"topRight":Y={top:`${I.top-ge.height-X}px`,left:`${W}px`,transform:"translate(-50%, 0)"};break;case"bottom":case"bottomLeft":case"bottomRight":Y={top:`${I.bottom+X}px`,left:`${W}px`,transform:"translate(-50%, 0)"};break;case"left":Y={top:`${I.top+I.height/2}px`,left:`${I.left-ge.width-X}px`,transform:"translate(0, -50%)"};break;case"right":Y={top:`${I.top+I.height/2}px`,left:`${I.right+X}px`,transform:"translate(0, -50%)"};break}Object.assign(ee.current.style,Y)}};if(A.useEffect(()=>{const I=()=>{ee.current&&(ee.current.style.opacity="0",ee.current.style.visibility="hidden")},ge=()=>{ee.current&&(ee.current.style.opacity="1",ee.current.style.visibility="visible",te())},X=()=>{ee.current&&!p&&(ee.current.style.opacity="0",ee.current.style.visibility="hidden")};if(h&&(te(),window.addEventListener("resize",te),window.addEventListener("scroll",I,!0),U.current)){const Y=U.current.closest(".scrollable-container");Y&&Y.addEventListener("scroll",I,!0),U.current.addEventListener("mouseenter",ge),U.current.addEventListener("mouseleave",X)}return()=>{if(window.removeEventListener("resize",te),window.removeEventListener("scroll",I,!0),U.current){const Y=U.current.closest(".scrollable-container");Y&&Y.removeEventListener("scroll",I,!0),U.current.removeEventListener("mouseenter",ge),U.current.removeEventListener("mouseleave",X)}}},[h,n,P]),!h)return u.jsx(u.Fragment,{children:r});const ce=u.jsxs(Hs,{ref:ee,className:`tooltip tooltip-${n}`,size:i,height:S,width:m,maxWidth:b,color:x,withArrow:O,style:d,isVisible:p,errorTooltip:f,position:n,tooltipMargin:P,withBorder:j,withDropShadow:v,children:[f&&u.jsx(Ft,{color:"white",size:Hr.icon.IconSize.ant}),c??u.jsx("span",{style:{textAlign:l},children:o})]});return u.jsxs(Ws,{id:e,ref:U,wrapperWidth:y,wrapperHeight:a,wrapperStyles:_,children:[r,gt.createPortal(ce,document.body)]})};Ie.displayName="Tooltip";exports.ActionButton=Ar;exports.Ae=z;exports.Badge=It;exports.Button=tt;exports.CardContainer=Qn;exports.CheckCircleFill_default=_n;exports.Checkbox=zr;exports.Close_default=zn;exports.ConfirmButton=Pr;exports.ConfirmModal=Mt;exports.Container=we;exports.ContainerWarning=yi;exports.Empty=jr;exports.ErrorFill_default=Pn;exports.ErrorMessage=Xn;exports.FrameView=Or;exports.IconContainer=ti;exports.Info=Bt;exports.InfoFill_default=Ft;exports.Input=Ir;exports.Label=Tr;exports.Label$1=rs;exports.Label$2=Ss;exports.Loading=Fr;exports.LoadingBar=Nr;exports.Message=mi;exports.Modal=Dt;exports.Radio=Dr;exports.Required=os;exports.SectionTitle=Lr;exports.Spacer=Me;exports.SwitchButton=Wr;exports.SwitchContainer=Ps;exports.SwitchLabel=Os;exports.SwitchToggle=Is;exports.SwitchWrapper=js;exports.Textarea=Br;exports.Title=pi;exports.Title$1=ei;exports.Title$2=Fs;exports.Tooltip=Ie;exports.WarningFill_default=Gn;exports.We=Fe;exports.getDefaultExportFromCjs=mr;exports.index=Ds;exports.jsxRuntimeExports=u;exports.qe=E;exports.showConfirm=ht;exports.showModal=Mr;
|