@itcase/storybook-config 1.2.48 → 1.2.50
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/{Notification-CskLjIM7.js → Notification-DPozMFZR.js} +15 -19
- package/dist/{Notification-C3fVIIPU.js → Notification-Dr6__aPv.js} +14 -18
- package/dist/cjs/decorators/withNextDecorator.js +1 -1
- package/dist/cjs/decorators/withUiDecorator.js +1 -1
- package/dist/cjs/decorators.js +1 -1
- package/dist/config/config/mainConfigVite.js +6 -7
- package/dist/decorators/withNextDecorator.js +1 -1
- package/dist/decorators/withUiDecorator.js +1 -1
- package/dist/decorators.js +1 -1
- package/package.json +23 -23
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var camelCase = require('lodash/camelCase');
|
|
5
5
|
var r$3 = require('lodash/castArray');
|
|
6
|
-
var i$
|
|
6
|
+
var i$2 = require('lodash/upperFirst');
|
|
7
7
|
var common = require('@itcase/common');
|
|
8
8
|
var r$4 = require('lodash/maxBy');
|
|
9
9
|
var reactDom = require('react-dom');
|
|
@@ -1457,7 +1457,7 @@ function v4(options, buf, offset) {
|
|
|
1457
1457
|
return _v4(options);
|
|
1458
1458
|
}
|
|
1459
1459
|
|
|
1460
|
-
const l$
|
|
1460
|
+
const l$1={error:"error",info:"info",success:"success",warning:"warning"},u$2=React.createContext([]),d$1=React.createContext({hideNotifications:e=>{},showNotification:(e,o)=>{},notificationStatuses:l$1});function m$1(o){const{initialNotificationsList:s=[],isLogRequestsErrors:c,children:m}=o,[f,g]=React.useState(()=>(s||[]).map(e=>y$1(e,e.onClose))),p=React.useCallback(e=>{e&&g(o=>o.filter(o=>{const i=String(o.id)===String(e);return i&&(clearTimeout(o._closeTimeout),o.onClose&&o.onClose()),!i}));},[]),T=React.useCallback((e,o)=>{const i=y$1(e,o);return g(e=>{const o=e.slice(),t=o.findIndex(e=>String(e.id)===String(i.id));if(-1===t)return [...o,i];const r=o[t];return clearTimeout(r._closeTimeout),r._closeTimeout=void 0,o[t]=i,o}),i.closeByTime&&(i._closeTimeout=setTimeout(()=>p(i.id),i.closeByTime)),i},[]),S=React.useMemo(()=>({hideNotifications:p,notificationStatuses:l$1,showNotification:T}),[]);return React.useEffect(()=>{f.forEach(e=>{e.closeByTime&&setTimeout(()=>p(e.id),e.closeByTime);}),c&&(common.axiosInstanceITCase.responseErrorHandler.loggerManager={log:e=>{if(e.message){const o=["network"].includes(e.key)?e.key:void 0;T({id:o,title:e.message,status:"error",closeByTime:4e3});}}});},[]),jsxRuntimeExports.jsx(d$1.Provider,{value:S,children:jsxRuntimeExports.jsx(u$2.Provider,{value:f,children:m})})}function f$2(){return React.useContext(u$2)}function g$1(){return React.useContext(d$1)}const p$1={error:"errorPrimary sizeS solid rounded",info:"infoPrimary sizeS solid rounded",success:"successPrimary sizeS solid rounded",warning:"warningPrimary sizeS solid rounded"};function y$1(e,o){let i=v4().split("-")[0],t="",r="",n="",s="",a="float",u="",d=l$1.warning,m=4500,f=p$1[d],g=null,y=false,T="",S=()=>{};return "string"==typeof e?r=e:"object"==typeof e&&(i=String(e.id??i),t=e.title??t,r=e.text??r,T=e.closeIconAppearance??T,a=e.type??a,n=e.closeIcon??n,s=e.closeIconSrc??s,u=e.buttonLabel??u,S=e.onClickButton??S,d=e.status??d,m=e.closeByTime??m,y=e.isLoading??y,g=e.after??g,f=e.appearance??p$1[e.status]??f),{id:i,appearance:f,type:a,title:t,status:d,text:r,buttonLabel:u,after:g,closeByTime:m,closeIcon:n,closeIconAppearance:T,closeIconSrc:s,isLoading:y,onClickButton:S,onClose:o}}
|
|
1461
1461
|
|
|
1462
1462
|
var cssMediaquery = {};
|
|
1463
1463
|
|
|
@@ -3104,25 +3104,21 @@ const useMediaQuery = (settings, device, onChange) => {
|
|
|
3104
3104
|
return matches;
|
|
3105
3105
|
};
|
|
3106
3106
|
|
|
3107
|
-
var i$
|
|
3107
|
+
var i$1={"mobile-tiny":"15em","mobile-super-extra-large":"40em",tablet:"48em","desktop-small":"60em","desktop-huge":"160em"};const o$2="undefined"==typeof window;function s(s={}){const m=useMediaQuery({minWidth:i$1["mobile-tiny"],maxWidth:i$1.tablet})||o$2&&Boolean(s.isMobile);useMediaQuery({minWidth:i$1["mobile-super-extra-large"],maxWidth:i$1.tablet});const a=useMediaQuery({minWidth:i$1.tablet,maxWidth:i$1["desktop-small"]})||o$2&&Boolean(s.isTablet),l=useMediaQuery({minWidth:i$1["desktop-small"],maxWidth:i$1["desktop-super-huge"]})||o$2&&Boolean(s.isDesktop),n=useMediaQuery({minWidth:i$1["desktop-huge"]});return React.useMemo(()=>({isMobile:m,isMobileHuge:m,isTablet:a,isDesktop:l,isDesktopMega:n}),[m,a,l,n])}
|
|
3108
3108
|
|
|
3109
3109
|
const e=()=>{const e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",`${e}px`);};
|
|
3110
3110
|
|
|
3111
|
-
const a$
|
|
3111
|
+
const a$1=React.createContext({isMobile:false,isTablet:false,isDesktop:false,deviceCurrentMainType:"",deviceCurrentType:"",deviceTypesList:[]}),d=React.memo(function(r){const{userDeviceState:i={},children:o}=r,d=s(i),{isMobile:u,isTablet:l,isDesktop:m,...v}=d,f=(u?"mobile":l&&"tablet")||m&&"desktop"||"",[y,b]=React.useMemo(()=>{const e=Object.keys(d).map(e=>camelCase(e.replace("is","")));let r=Object.keys(v).find(e=>v[e]);return r||(r=f),r=camelCase(r.replace("is","")),[r||"_none_",e]},[d,f,v]),T=React.useMemo(()=>({...d,deviceCurrentMainType:f,deviceCurrentType:y,deviceTypesList:b}),[d,f,y,b]);return React.useEffect(()=>{e(),window.addEventListener("resize",e);},[]),jsxRuntimeExports.jsx(a$1.Provider,{value:T,children:o})});function u$1(){const e=React.useContext(a$1);if(!e)throw new Error("useUserDeviceContext is not defined");return e}
|
|
3112
3112
|
|
|
3113
|
-
const i
|
|
3113
|
+
const i=React.createContext({assetPrefix:void 0,ignorePathsList:void 0});
|
|
3114
3114
|
|
|
3115
|
-
var o$
|
|
3115
|
+
var o$1=["alignContent","alignItems","alignSelf","aspectRatio","border","borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","borderWidth","bottom","display","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","gap","rowGap","columnGap","columnWidth","height","justifyContent","left","margin","marginBottom","marginHorizontal","marginLeft","marginRight","marginTop","marginVertical","maxHeight","maxWidth","minHeight","minWidth","overflow","overflowY","overflowX","padding","paddingBottom","paddingEnd","paddingHorizontal","paddingLeft","paddingRight","paddingStart","paddingTop","paddingVertical","position","right","top",["width",{validate:o=>/\d+/.test(o)}],"zIndex","order","shadowColor","shadowOffset","shadowOpacity","shadowRadius","transform","background","backgroundColor","borderBottomColor","borderBottomEndRadius","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStartRadius","borderColor","borderCurve","borderEndColor","borderLeftColor","borderRadius","borderRightColor","borderStartColor","borderStyle","borderTopColor","borderTopEndRadius","borderTopLeftRadius","borderTopRightRadius","borderTopStartRadius","opacity","cursor","color","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","letterSpacing","lineHeight","textAlign","textDecorationColor","textDecorationLine","textDecorationStyle","textShadowColor","textShadowOffset","textShadowRadius","textTransform","verticalAlign","writingMode","whiteSpace","overlayColor","resizeMode","tintColor","objectFit","objectPosition","gridTemplateColumns","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplate","gridTemplateAreas","gridTemplateRows","gridColumn","gridColumnStart","gridColumnEnd","gridColumnGap","gridRow","gridRowStart","gridRowEnd","gridRowGap","backdropFilter","transition","transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","pointerEvents"];
|
|
3116
3116
|
|
|
3117
3117
|
const r$1=r=>Array.isArray(r)?r[0]:r;
|
|
3118
3118
|
|
|
3119
|
-
function p
|
|
3119
|
+
function p(p,a){const{deviceCurrentMainType:m}=u$1();return React.useMemo(()=>new Proxy({getProp(t){const e=`${t}${i$2(m)}`,r=p[e],o=p[t],i=a?.[e],n=a?.[t];return r||o||i||n},getClassName(t,s){const{prefix:o="",replace:p=[/([A-Z])/g,"-$1"]}=s||{},a=this.getProp(String(t));if(o$1.map(t=>r$1(t)).includes(String(t))&&("number"==typeof a||"string"==typeof a&&!isNaN(parseFloat(a))))return "";if(a){let t=String(a);if(t.includes(".")||(t=camelCase(t)),p){const e=r$3(p);t=t.replace(e[0],e[1]||"");}return `${o}${t}`.toLowerCase()}return ""}},{get(t,e,r,...s){if("string"==typeof e){if(!Reflect.has(t,e)){if(e.endsWith("Class")){const r=e.substring(0,e.lastIndexOf("Class"));return t.getClassName(r)}return t.getProp(e)}return Reflect.get(t,e,r,...s)}return e}}),[p,a,m])}
|
|
3120
3120
|
|
|
3121
|
-
function s(e,t){return function(){return e.apply(t,arguments)}}const{toString:i}=Object.prototype,{getPrototypeOf:a$1}=Object,{iterator:c$2,toStringTag:l$1}=Symbol,u$3=(f$2=Object.create(null),e=>{const t=i.call(e);return f$2[t]||(f$2[t]=t.slice(8,-1).toLowerCase())});var f$2;const d$1=e=>(e=e.toLowerCase(),t=>u$3(t)===e),p$1=e=>t=>typeof t===e,{isArray:h}=Array,m$1=p$1("undefined");function b$1(e){return null!==e&&!m$1(e)&&null!==e.constructor&&!m$1(e.constructor)&&w$1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const y$1=d$1("ArrayBuffer");const g$1=p$1("string"),w$1=p$1("function"),R=p$1("number"),E=e=>null!==e&&"object"==typeof e,O=e=>{if("object"!==u$3(e))return false;const t=a$1(e);return !(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||l$1 in e||c$2 in e)},S=d$1("Date"),v=d$1("File"),T$1=d$1("Blob"),A$1=d$1("FileList");const U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},N$1=void 0!==U.FormData?U.FormData:void 0,_$2=d$1("URLSearchParams"),[C$1,j,x$1,P$2]=["ReadableStream","Request","Response","Headers"].map(d$1);function L(e,t,{allOwnKeys:n=false}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),h(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else {if(b$1(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e);}}function F$1(e,t){if(b$1(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,B$1=e=>!m$1(e)&&e!==D;const k$1=(I$1="undefined"!=typeof Uint8Array&&a$1(Uint8Array),e=>I$1&&e instanceof I$1);var I$1;const q=d$1("HTMLFormElement"),M=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),z$1=d$1("RegExp"),H$1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};L(n,(n,o)=>{let s;false!==(s=t(n,o,e))&&(r[o]=s||n);}),Object.defineProperties(e,r);};const J=d$1("AsyncFunction"),W=($$1="function"==typeof setImmediate,V=w$1(D.postMessage),$$1?setImmediate:V?(K=`axios@${Math.random()}`,X=[],D.addEventListener("message",({source:e,data:t})=>{e===D&&t===K&&X.length&&X.shift()();},false),e=>{X.push(e),D.postMessage(K,"*");}):e=>setTimeout(e));var $$1,V,K,X;const G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(D):"undefined"!=typeof process&&process.nextTick||W;var Q$1={isArray:h,isArrayBuffer:y$1,isBuffer:b$1,isFormData:e=>{let t;return e&&(N$1&&e instanceof N$1||w$1(e.append)&&("formdata"===(t=u$3(e))||"object"===t&&w$1(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&y$1(e.buffer),t},isString:g$1,isNumber:R,isBoolean:e=>true===e||false===e,isObject:E,isPlainObject:O,isEmptyObject:e=>{if(!E(e)||b$1(e))return false;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return false}},isReadableStream:C$1,isRequest:j,isResponse:x$1,isHeaders:P$2,isUndefined:m$1,isDate:S,isFile:v,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:T$1,isRegExp:z$1,isFunction:w$1,isStream:e=>E(e)&&w$1(e.pipe),isURLSearchParams:_$2,isTypedArray:k$1,isFileList:A$1,forEach:L,merge:function e(){const{caseless:t,skipUndefined:n}=B$1(this)&&this||{},r={},o=(o,s)=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;const i=t&&F$1(r,s)||s;O(r[i])&&O(o)?r[i]=e(r[i],o):O(o)?r[i]=e({},o):h(o)?r[i]=o.slice():n&&m$1(o)||(r[i]=o);};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&L(arguments[e],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(L(t,(t,r)=>{n&&w$1(t)?Object.defineProperty(e,r,{value:s(t,n),writable:true,enumerable:true,configurable:true}):Object.defineProperty(e,r,{value:t,writable:true,enumerable:true,configurable:true});},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:true,enumerable:false,configurable:true}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n);},toFlatObject:(e,t,n,r)=>{let o,s,i;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],r&&!r(i,e,t)||c[i]||(t[i]=e[i],c[i]=true);e=false!==n&&a$1(e);}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:u$3,kindOfTest:d$1,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(h(e))return e;let t=e.length;if(!R(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[c$2]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1]);}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:q,hasOwnProperty:M,hasOwnProp:M,reduceDescriptors:H$1,freezeMethods:e=>{H$1(e,(t,n)=>{if(w$1(e)&&-1!==["arguments","caller","callee"].indexOf(n))return false;const r=e[n];w$1(r)&&(t.enumerable=false,"writable"in t?t.writable=false:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}));});},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=true;});};return h(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:F$1,global:D,isContextDefined:B$1,isSpecCompliantForm:function(e){return !!(e&&w$1(e.append)&&"FormData"===e[l$1]&&e[c$2])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(E(e)){if(t.indexOf(e)>=0)return;if(b$1(e))return e;if(!("toJSON"in e)){t[r]=e;const o=h(e)?[]:{};return L(e,(e,t)=>{const s=n(e,r+1);!m$1(s)&&(o[t]=s);}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:J,isThenable:e=>e&&(E(e)||w$1(e))&&w$1(e.then)&&w$1(e.catch),setImmediate:W,asap:G,isIterable:e=>null!=e&&w$1(e[c$2])};let Y=class e extends Error{static from(t,n,r,o,s,i){const a=new e(t.message,n||t.code,r,o,s);return a.cause=t,a.name=t.name,null!=t.status&&null==a.status&&(a.status=t.status),i&&Object.assign(a,i),a}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:true,writable:true,configurable:true}),this.name="AxiosError",this.isAxiosError=true,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status);}toJSON(){return {message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q$1.toJSONObject(this.config),code:this.code,status:this.status}}};Y.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Y.ERR_BAD_OPTION="ERR_BAD_OPTION",Y.ECONNABORTED="ECONNABORTED",Y.ETIMEDOUT="ETIMEDOUT",Y.ERR_NETWORK="ERR_NETWORK",Y.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Y.ERR_DEPRECATED="ERR_DEPRECATED",Y.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Y.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Y.ERR_CANCELED="ERR_CANCELED",Y.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Y.ERR_INVALID_URL="ERR_INVALID_URL";function Z(e){return Q$1.isPlainObject(e)||Q$1.isArray(e)}function ee(e){return Q$1.endsWith(e,"[]")?e.slice(0,-2):e}function te(e,t,n){return e?e.concat(t).map(function(e,t){return e=ee(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ne=Q$1.toFlatObject(Q$1,{},null,function(e){return /^is[A-Z]/.test(e)});function re(e,t,n){if(!Q$1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Q$1.toFlatObject(n,{metaTokens:true,dots:false,indexes:false},false,function(e,t){return !Q$1.isUndefined(t[e])})).metaTokens,o=n.visitor||l,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Q$1.isSpecCompliantForm(t);if(!Q$1.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return "";if(Q$1.isDate(e))return e.toISOString();if(Q$1.isBoolean(e))return e.toString();if(!a&&Q$1.isBlob(e))throw new Y("Blob is not supported. Use a Buffer instead.");return Q$1.isArrayBuffer(e)||Q$1.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let a=e;if(Q$1.isReactNative(t)&&Q$1.isReactNativeBlob(e))return t.append(te(o,n,s),c(e)),false;if(e&&!o&&"object"==typeof e)if(Q$1.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Q$1.isArray(e)&&function(e){return Q$1.isArray(e)&&!e.some(Z)}(e)||(Q$1.isFileList(e)||Q$1.endsWith(n,"[]"))&&(a=Q$1.toArray(e)))return n=ee(n),a.forEach(function(e,r){!Q$1.isUndefined(e)&&null!==e&&t.append(true===i?te([n],r,s):null===i?n:n+"[]",c(e));}),false;return !!Z(e)||(t.append(te(o,n,s),c(e)),false)}const u=[],f=Object.assign(ne,{defaultVisitor:l,convertValue:c,isVisitable:Z});if(!Q$1.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Q$1.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Q$1.forEach(n,function(n,s){ true===(!(Q$1.isUndefined(n)||null===n)&&o.call(t,n,Q$1.isString(s)?s.trim():s,r,f))&&e(n,r?r.concat(s):[s]);}),u.pop();}}(e),t}function oe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function se(e,t){this._pairs=[],e&&re(e,this,t);}const ie=se.prototype;function ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ce(e,t,n){if(!t)return e;const r=n&&n.encode||ae,o=Q$1.isFunction(n)?{serialize:n}:n,s=o&&o.serialize;let i;if(i=s?s(t,o):Q$1.isURLSearchParams(t)?t.toString():new se(t,o).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i;}return e}ie.append=function(e,t){this._pairs.push([e,t]);},ie.toString=function(e){const t=e?function(t){return e.call(this,t,oe)}:oe;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class le{constructor(){this.handlers=[];}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null);}clear(){this.handlers&&(this.handlers=[]);}forEach(e){Q$1.forEach(this.handlers,function(t){null!==t&&e(t);});}}var ue={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false,legacyInterceptorReqResOrdering:true},fe={isBrowser:true,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:se,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const de="undefined"!=typeof window&&"undefined"!=typeof document,pe="object"==typeof navigator&&navigator||void 0,he=de&&(!pe||["ReactNative","NativeScript","NS"].indexOf(pe.product)<0),me="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,be=de&&window.location.href||"http://localhost";var ye={...Object.freeze({__proto__:null,hasBrowserEnv:de,hasStandardBrowserEnv:he,hasStandardBrowserWebWorkerEnv:me,navigator:pe,origin:be}),...fe};function ge(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return true;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&Q$1.isArray(r)?r.length:s,a)return Q$1.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i;r[s]&&Q$1.isObject(r[s])||(r[s]=[]);return t(e,n,r[s],o)&&Q$1.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i}if(Q$1.isFormData(e)&&Q$1.isFunction(e.entries)){const n={};return Q$1.forEachEntry(e,(e,r)=>{t(function(e){return Q$1.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0);}),n}return null}const we={transitional:ue,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Q$1.isObject(e);o&&Q$1.isHTMLForm(e)&&(e=new FormData(e));if(Q$1.isFormData(e))return r?JSON.stringify(ge(e)):e;if(Q$1.isArrayBuffer(e)||Q$1.isBuffer(e)||Q$1.isStream(e)||Q$1.isFile(e)||Q$1.isBlob(e)||Q$1.isReadableStream(e))return e;if(Q$1.isArrayBufferView(e))return e.buffer;if(Q$1.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",false),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return re(e,new ye.classes.URLSearchParams,{visitor:function(e,t,n,r){return ye.isNode&&Q$1.isBuffer(e)?(this.append(t,e.toString("base64")),false):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=Q$1.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return re(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",false),function(e,t,n){if(Q$1.isString(e))try{return (t||JSON.parse)(e),Q$1.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return (n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||we.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Q$1.isResponse(e)||Q$1.isReadableStream(e))return e;if(e&&Q$1.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw Y.from(e,Y.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ye.classes.FormData,Blob:ye.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q$1.forEach(["delete","get","head","post","put","patch"],e=>{we.headers[e]={};});const Re=Q$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Ee=Symbol("internals");function Oe(e){return e&&String(e).trim().toLowerCase()}function Se(e){return false===e||null==e?e:Q$1.isArray(e)?e.map(Se):String(e)}function ve(e,t,n,r,o){return Q$1.isFunction(r)?r.call(this,t,n):(o&&(t=n),Q$1.isString(t)?Q$1.isString(r)?-1!==t.indexOf(r):Q$1.isRegExp(r)?r.test(t):void 0:void 0)}let Te=class{constructor(e){e&&this.set(e);}set(e,t,n){const r=this;function o(e,t,n){const o=Oe(t);if(!o)throw new Error("header name must be a non-empty string");const s=Q$1.findKey(r,o);(!s||void 0===r[s]||true===n||void 0===n&&false!==r[s])&&(r[s||t]=Se(e));}const s=(e,t)=>Q$1.forEach(e,(e,n)=>o(e,n,t));if(Q$1.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(Q$1.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Re[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r);}),t})(e),t);else if(Q$1.isObject(e)&&Q$1.isIterable(e)){let n,r,o={};for(const t of e){if(!Q$1.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?Q$1.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1];}s(o,t);}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Oe(e)){const n=Q$1.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(true===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Q$1.isFunction(t))return t.call(this,e,n);if(Q$1.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Oe(e)){const n=Q$1.findKey(this,e);return !(!n||void 0===this[n]||t&&!ve(0,this[n],n,t))}return false}delete(e,t){const n=this;let r=false;function o(e){if(e=Oe(e)){const o=Q$1.findKey(n,e);!o||t&&!ve(0,n[o],o,t)||(delete n[o],r=true);}}return Q$1.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=false;for(;n--;){const o=t[n];e&&!ve(0,this[o],o,e,true)||(delete this[o],r=true);}return r}normalize(e){const t=this,n={};return Q$1.forEach(this,(r,o)=>{const s=Q$1.findKey(n,o);if(s)return t[s]=Se(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=Se(r),n[i]=true;}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Q$1.forEach(this,(n,r)=>{null!=n&&false!==n&&(t[r]=e&&Q$1.isArray(n)?n.join(", "):n);}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return "AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Ee]=this[Ee]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Oe(e);t[r]||(!function(e,t){const n=Q$1.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:true});});}(n,e),t[r]=true);}return Q$1.isArray(e)?e.forEach(r):r(e),this}};function Ae(e,t){const n=this||we,r=t||n,o=Te.from(r.headers);let s=r.data;return Q$1.forEach(e,function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0);}),o.normalize(),s}function Ue(e){return !(!e||!e.__CANCEL__)}Te.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q$1.reduceDescriptors(Te.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return {get:()=>e,set(e){this[n]=e;}}}),Q$1.freezeMethods(Te);let Ne=class extends Y{constructor(e,t,n){super(null==e?"canceled":e,Y.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=true;}};function _e(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Y("Request failed with status code "+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n);}const Ce=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[i];o||(o=c),n[s]=a,r[s]=c;let u=i,f=0;for(;u!==s;)f+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e(...t);};return [(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n);},s-a)));},()=>n&&i(n)]}(n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a);r=s;e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:true});},n)},je=(e,t)=>{const n=null!=e;return [r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},xe=e=>(...t)=>Q$1.asap(()=>e(...t));var Pe=ye.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ye.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ye.origin),ye.navigator&&/(msie|trident)/i.test(ye.navigator.userAgent)):()=>true,Le=ye.hasStandardBrowserEnv?{write(e,t,n,r,o,s,i){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];Q$1.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),Q$1.isString(r)&&a.push(`path=${r}`),Q$1.isString(o)&&a.push(`domain=${o}`),true===s&&a.push("secure"),Q$1.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ");},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/");}}:{write(){},read:()=>null,remove(){}};function Fe(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const De=e=>e instanceof Te?{...e}:e;function Be(e,t){t=t||{};const n={};function r(e,t,n,r){return Q$1.isPlainObject(e)&&Q$1.isPlainObject(t)?Q$1.merge.call({caseless:r},e,t):Q$1.isPlainObject(t)?Q$1.merge({},t):Q$1.isArray(t)?t.slice():t}function o(e,t,n,o){return Q$1.isUndefined(t)?Q$1.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function s(e,t){if(!Q$1.isUndefined(t))return r(void 0,t)}function i(e,t){return Q$1.isUndefined(t)?Q$1.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t,n)=>o(De(e),De(t),0,true)};return Q$1.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const s=Q$1.hasOwnProp(c,r)?c[r]:o,i=s(e[r],t[r],r);Q$1.isUndefined(i)&&s!==a||(n[r]=i);}),n}var ke=e=>{const t=Be({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=Te.from(i),t.url=ce(Fe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),Q$1.isFormData(n))if(ye.hasStandardBrowserEnv||ye.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(Q$1.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n);});}if(ye.hasStandardBrowserEnv&&(r&&Q$1.isFunction(r)&&(r=r(t)),r||false!==r&&Pe(t.url))){const e=o&&s&&Le.read(s);e&&i.set(o,e);}return t};var Ie="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=ke(e);let o=r.data;const s=Te.from(r.headers).normalize();let i,a,c,l,u,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i);}let m=new XMLHttpRequest;function b(){if(!m)return;const r=Te.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());_e(function(e){t(e),h();},function(e){n(e),h();},{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null;}m.open(r.method.toUpperCase(),r.url,true),m.timeout=r.timeout,"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(b);},m.onabort=function(){m&&(n(new Y("Request aborted",Y.ECONNABORTED,e,m)),m=null);},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new Y(r,Y.ERR_NETWORK,e,m);o.event=t||null,n(o),m=null;},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ue;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Y(t,o.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,m)),m=null;},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&Q$1.forEach(s.toJSON(),function(e,t){m.setRequestHeader(t,e);}),Q$1.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),p&&([c,u]=Ce(p,true),m.addEventListener("progress",c)),d&&m.upload&&([a,l]=Ce(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Ne(null,e,m):t),m.abort(),m=null);},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===ye.protocols.indexOf(y)?n(new Y("Unsupported protocol "+y+":",Y.ERR_BAD_REQUEST,e)):m.send(o||null);})};const qe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=true,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Y?t:new Ne(t instanceof Error?t.message:t));}};let s=t&&setTimeout(()=>{s=null,o(new Y(`timeout of ${t}ms exceeded`,Y.ETIMEDOUT));},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o);}),e=null);};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=()=>Q$1.asap(i),a}},Me=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r;},ze=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n;}}finally{await t.cancel();}},He=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of ze(e))yield*Me(n,t);}(e,t);let s,i=0,a=e=>{s||(s=true,r&&r(e));};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e);}e.enqueue(new Uint8Array(r));}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:Je}=Q$1,We=(({Request:e,Response:t})=>({Request:e,Response:t}))(Q$1.global),{ReadableStream:$e,TextEncoder:Ve}=Q$1.global,Ke=(e,...t)=>{try{return !!e(...t)}catch(e){return false}},Xe=e=>{e=Q$1.merge.call({skipUndefined:true},We,e);const{fetch:t,Request:n,Response:r}=e,o=t?Je(t):"function"==typeof fetch,s=Je(n),i=Je(r);if(!o)return false;const a=o&&Je($e),c=o&&("function"==typeof Ve?(l=new Ve,e=>l.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var l;const u=s&&a&&Ke(()=>{let e=!1;const t=new n(ye.origin,{body:new $e,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),f=i&&a&&Ke(()=>Q$1.isReadableStream(new r("").body)),d={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Y(`Response type '${e}' is not supported`,Y.ERR_NOT_SUPPORT,n)});});const p=async(e,t)=>{const r=Q$1.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(Q$1.isBlob(e))return e.size;if(Q$1.isSpecCompliantForm(e)){const t=new n(ye.origin,{method:"POST",body:e});return (await t.arrayBuffer()).byteLength}return Q$1.isArrayBufferView(e)||Q$1.isArrayBuffer(e)?e.byteLength:(Q$1.isURLSearchParams(e)&&(e+=""),Q$1.isString(e)?(await c(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:i,data:a,signal:c,cancelToken:l,timeout:h,onDownloadProgress:m,onUploadProgress:b,responseType:y,headers:g,withCredentials:w="same-origin",fetchOptions:R}=ke(e),E=t||fetch;y=y?(y+"").toLowerCase():"text";let O=qe([c,l&&l.toAbortSignal()],h),S=null;const v=O&&O.unsubscribe&&(()=>{O.unsubscribe();});let T;try{if(b&&u&&"get"!==i&&"head"!==i&&0!==(T=await p(g,a))){let e,t=new n(o,{method:"POST",body:a,duplex:"half"});if(Q$1.isFormData(a)&&(e=t.headers.get("content-type"))&&g.setContentType(e),t.body){const[e,n]=je(T,Ce(xe(b)));a=He(t.body,65536,e,n);}}Q$1.isString(w)||(w=w?"include":"omit");const t=s&&"credentials"in n.prototype,c={...R,signal:O,method:i.toUpperCase(),headers:g.normalize().toJSON(),body:a,duplex:"half",credentials:t?w:void 0};S=s&&new n(o,c);let l=await(s?E(S,R):E(o,c));const h=f&&("stream"===y||"response"===y);if(f&&(m||h&&v)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=l[t];});const t=Q$1.toFiniteNumber(l.headers.get("content-length")),[n,o]=m&&je(t,Ce(xe(m),!0))||[];l=new r(He(l.body,65536,n,()=>{o&&o(),v&&v();}),e);}y=y||"text";let A=await d[Q$1.findKey(d,y)||"text"](l,e);return !h&&v&&v(),await new Promise((t,n)=>{_e(t,n,{data:A,headers:Te.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:S});})}catch(t){if(v&&v(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Y("Network Error",Y.ERR_NETWORK,e,S,t&&t.response),{cause:t.cause||t});throw Y.from(t,t&&t.code,e,S,t&&t.response)}}},Ge=new Map,Qe=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let i,a,c=s.length,l=Ge;for(;c--;)i=s[c],a=l.get(i),void 0===a&&l.set(i,a=c?new Map:Xe(t)),l=a;return a};Qe();const Ye={http:null,xhr:Ie,fetch:{get:Qe}};Q$1.forEach(Ye,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t});}catch(e){}Object.defineProperty(e,"adapterName",{value:t});}});const Ze=e=>`- ${e}`,et=e=>Q$1.isFunction(e)||null===e||false===e;var tt={getAdapter:function(e,t){e=Q$1.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!et(r)&&(o=Ye[(n=String(r)).toLowerCase()],void 0===o))throw new Y(`Unknown adapter '${n}'`);if(o&&(Q$1.isFunction(o)||(o=o.get(t))))break;s[n||"#"+i]=o;}if(!o){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(false===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Ze).join("\n"):" "+Ze(e[0]):"as no adapter specified";throw new Y("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:Ye};function nt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ne(null,e)}function rt(e){nt(e),e.headers=Te.from(e.headers),e.data=Ae.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",false);return tt.getAdapter(e.adapter||we.adapter,e)(e).then(function(t){return nt(e),t.data=Ae.call(e,e.transformResponse,t),t.headers=Te.from(t.headers),t},function(t){return Ue(t)||(nt(e),t&&t.response&&(t.response.data=Ae.call(e,e.transformResponse,t.response),t.response.headers=Te.from(t.response.headers))),Promise.reject(t)})}const ot="1.13.6",st={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{st[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e};});const it={};st.transitional=function(e,t,n){function r(e,t){return "[Axios v"+ot+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return (n,o,s)=>{if(false===e)throw new Y(r(o," has been removed"+(t?" in "+t:"")),Y.ERR_DEPRECATED);return t&&!it[o]&&(it[o]=true,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}},st.spelling=function(e){return (t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),true)};var at={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(true!==n)throw new Y("option "+s+" must be "+n,Y.ERR_BAD_OPTION_VALUE);continue}if(true!==n)throw new Y("Unknown option "+s,Y.ERR_BAD_OPTION)}},validators:st};const ct=at.validators;let lt=class{constructor(e){this.defaults=e||{},this.interceptors={request:new le,response:new le};}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n;}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Be(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&at.assertOptions(n,{silentJSONParsing:ct.transitional(ct.boolean),forcedJSONParsing:ct.transitional(ct.boolean),clarifyTimeoutError:ct.transitional(ct.boolean),legacyInterceptorReqResOrdering:ct.transitional(ct.boolean)},false),null!=r&&(Q$1.isFunction(r)?t.paramsSerializer={serialize:r}:at.assertOptions(r,{encode:ct.function,serialize:ct.function},true)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=true),at.assertOptions(t,{baseUrl:ct.spelling("baseURL"),withXsrfToken:ct.spelling("withXSRFToken")},true),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&Q$1.merge(o.common,o[t.method]);o&&Q$1.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e];}),t.headers=Te.concat(s,o);const i=[];let a=true;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&false===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||ue;n&&n.legacyInterceptorReqResOrdering?i.unshift(e.fulfilled,e.rejected):i.push(e.fulfilled,e.rejected);});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected);});let u,f=0;if(!a){const e=[rt.bind(this),void 0];for(e.unshift(...i),e.push(...c),u=e.length,l=Promise.resolve(t);f<u;)l=l.then(e[f++],e[f++]);return l}u=i.length;let d=t;for(;f<u;){const e=i[f++],t=i[f++];try{d=e(d);}catch(e){t.call(this,e);break}}try{l=rt.call(this,d);}catch(e){return Promise.reject(e)}for(f=0,u=c.length;f<u;)l=l.then(c[f++],c[f++]);return l}getUri(e){return ce(Fe((e=Be(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Q$1.forEach(["delete","get","head","options"],function(e){lt.prototype[e]=function(t,n){return this.request(Be(n||{},{method:e,url:t,data:(n||{}).data}))};}),Q$1.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Be(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}lt.prototype[e]=t(),lt.prototype[e+"Form"]=t(true);});const ut={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ut).forEach(([e,t])=>{ut[t]=e;});const ft=function e(t){const n=new lt(t),r=s(lt.prototype.request,n);return Q$1.extend(r,lt.prototype,n,{allOwnKeys:true}),Q$1.extend(r,n,null,{allOwnKeys:true}),r.create=function(n){return e(Be(t,n))},r}(we);ft.Axios=lt,ft.CanceledError=Ne,ft.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e;});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null;}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e;}).then(e);return r.cancel=function(){n.unsubscribe(t);},r},e(function(e,r,o){n.reason||(n.reason=new Ne(e,r,o),t(n.reason));});}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e];}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1);}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t);};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return {token:new e(function(e){t=e;}),cancel:t}}},ft.isCancel=Ue,ft.VERSION=ot,ft.toFormData=re,ft.AxiosError=Y,ft.Cancel=ft.CanceledError,ft.all=function(e){return Promise.all(e)},ft.spread=function(e){return function(t){return e.apply(null,t)}},ft.isAxiosError=function(e){return Q$1.isObject(e)&&true===e.isAxiosError},ft.mergeConfig=Be,ft.AxiosHeaders=Te,ft.formToJSON=e=>ge(Q$1.isHTMLForm(e)?new FormData(e):e),ft.getAdapter=tt.getAdapter,ft.HttpStatusCode=ut,ft.default=ft;const{Axios:dt,AxiosError:pt,CanceledError:ht,isCancel:mt,CancelToken:bt,VERSION:yt,all:gt,Cancel:wt,isAxiosError:Rt,spread:Et,toFormData:Ot,AxiosHeaders:St,HttpStatusCode:vt,formToJSON:Tt,getAdapter:At,mergeConfig:Ut}=ft;
|
|
3122
|
-
|
|
3123
|
-
const o$1="holding",c$1="idle";function u$2(u){const{holdDurationMs:i=500,isHolding:a,onHoldComplete:m}=u,l=React.useRef(null),s=React.useRef(m),[d,h]=React.useState(c$1),f=React.useRef(0);s.current=m,React.useEffect(()=>(l.current=requestAnimationFrame(function r(){if(d===o$1&&1===f.current&&s.current&&s.current(),d===o$1&&f.current<1){const n=f.current,t=Math.min(n+16/i,1);f.current=t,l.current=requestAnimationFrame(r);}if(d===c$1&&f.current>0){const n=f.current,t=Math.max(n-16/i,0);f.current=t,l.current=requestAnimationFrame(r);}}),()=>{l.current&&cancelAnimationFrame(l.current);}),[d,i]);const p=React.useCallback(r=>{a&&("touch"!==r.pointerType&&0!==r.button||h(o$1));},[a]),A=React.useCallback(r=>{h(c$1);},[]);return {holdState:d,onHoldEnd:A,onHoldStart:p}}
|
|
3124
|
-
|
|
3125
|
-
function l(r){const{deviceCurrentMainType:s,deviceCurrentType:c,deviceTypesList:l}=u$4(),p=React.useMemo(()=>Object.entries(r).reduce((e,[t,r])=>(a(t,r)&&(e[t]=r),e),{}),[r]);return React.useMemo(()=>{const e={};for(const[o,m]of Object.entries(p)){let p=null;const u=a(o,m),f=o.toLowerCase().endsWith(c.toLowerCase()),d=n$1(o.replace(u,""),l),j=camelCase(d)||"styles";if(e[j]||(e[j]={}),f)p=m;else {const t=`${u}${d}`,o=`${t}${i$3(s)}`,c=r[o]||r[t];let l=e[j][u];if(t.includes("Horizontal")){const t=u.replace("Horizontal","Left");l=e[j][t];}else if(t.includes("Vertical")){const t=u.replace("Vertical","Top");l=e[j][t];}l||(p=c);}if(p){if(/\D/.test(p)){if(/\d+\.?\d*m\s?(?![a-zA-Z]+)/.test(p)){const e=p.split(" ").map(e=>{const t=e.replace(/[a-z]/gi,"");return `${8*parseFloat(t)}px`},[]);p=e.join(" ");}}else {["zIndex","order","flexGrow","opacity"].includes(u)||(p=`${p}px`);}if(u.includes("Horizontal")){const t=u.replace("Horizontal","Right"),r=u.replace("Horizontal","Left"),i=p.split(" "),o=i[0],s=i[1]||i[0];e[j][t]=o,e[j][r]=s;}else if(u.includes("Vertical")){const t=u.replace("Vertical","Top"),r=u.replace("Vertical","Bottom"),i=p.split(" "),o=i[0],s=i[1]||i[0];e[j][t]=o,e[j][r]=s;}else e[j][u]=p;}}return e},[s,c,...Object.values(p)])}const n$1=(e,t)=>t.reduce((e,t)=>e.endsWith(i$3(t))?e.replace(i$3(t),""):e,e),a=(e,t="")=>{const i=o$2.filter(r=>{if(Array.isArray(r)){const i=r[0],o=r[1]||{};return !!e.startsWith(i)&&(!o.validate||o.validate(t))}return e.startsWith(String(r))}),o=r$4(i,e=>r$1(e).length);return r$1(o)};
|
|
3121
|
+
function l(r){const{deviceCurrentMainType:s,deviceCurrentType:c,deviceTypesList:l}=u$1(),p=React.useMemo(()=>Object.entries(r).reduce((e,[t,r])=>(a(t,r)&&(e[t]=r),e),{}),[r]);return React.useMemo(()=>{const e={};for(const[o,m]of Object.entries(p)){let p=null;const u=a(o,m),f=o.toLowerCase().endsWith(c.toLowerCase()),d=n$1(o.replace(u,""),l),j=camelCase(d)||"styles";if(e[j]||(e[j]={}),f)p=m;else {const t=`${u}${d}`,o=`${t}${i$2(s)}`,c=r[o]||r[t];let l=e[j][u];if(t.includes("Horizontal")){const t=u.replace("Horizontal","Left");l=e[j][t];}else if(t.includes("Vertical")){const t=u.replace("Vertical","Top");l=e[j][t];}l||(p=c);}if(p){if(/\D/.test(p)){if(/\d+\.?\d*m\s?(?![a-zA-Z]+)/.test(p)){const e=p.split(" ").map(e=>{const t=e.replace(/[a-z]/gi,"");return `${8*parseFloat(t)}px`},[]);p=e.join(" ");}}else {["zIndex","order","flexGrow","opacity"].includes(u)||(p=`${p}px`);}if(u.includes("Horizontal")){const t=u.replace("Horizontal","Right"),r=u.replace("Horizontal","Left"),i=p.split(" "),o=i[0],s=i[1]||i[0];e[j][t]=o,e[j][r]=s;}else if(u.includes("Vertical")){const t=u.replace("Vertical","Top"),r=u.replace("Vertical","Bottom"),i=p.split(" "),o=i[0],s=i[1]||i[0];e[j][t]=o,e[j][r]=s;}else e[j][u]=p;}}return e},[s,c,...Object.values(p)])}const n$1=(e,t)=>t.reduce((e,t)=>e.endsWith(i$2(t))?e.replace(i$2(t),""):e,e),a=(e,t="")=>{const i=o$1.filter(r=>{if(Array.isArray(r)){const i=r[0],o=r[1]||{};return !!e.startsWith(i)&&(!o.validate||o.validate(t))}return e.startsWith(String(r))}),o=r$4(i,e=>r$1(e).length);return r$1(o)};
|
|
3126
3122
|
|
|
3127
3123
|
const r=(...r)=>{const t=r.map(r=>r?.trim()).filter(Boolean);if(t.length<2)return t[0]??"";return Array.from(new Set(t)).join(" ")};
|
|
3128
3124
|
|
|
@@ -7885,18 +7881,18 @@ function InlineSVG(props) {
|
|
|
7885
7881
|
return /* @__PURE__ */ React.createElement(ReactInlineSVG, { ...props });
|
|
7886
7882
|
}
|
|
7887
7883
|
|
|
7888
|
-
const o=["src","imageSrc","svgSrc","placeholderUrl"],f$1=(f,...a)=>React.forwardRef(function(r,a){const{assetPrefix:c,ignorePathsList:m}=React.useContext(i
|
|
7884
|
+
const o=["src","imageSrc","svgSrc","placeholderUrl"],f$1=(f,...a)=>React.forwardRef(function(r,a){const{assetPrefix:c,ignorePathsList:m}=React.useContext(i),p=o.reduce((t,e)=>{let i=r[e];if(i&&"string"==typeof i){if(c){if(n(i,c,m)){i=`${common.formatURL(c).slice(0,-1)}${i}`;}}t[e]=i;}return t},{});return jsxRuntimeExports.jsx(f,{...r,...p,ref:a})}),n=(t,r,e=[])=>{if(t.startsWith("http:")||t.startsWith("https:")||t.startsWith("data:")||t.startsWith(r))return false;for(const r of e)if(r instanceof RegExp){if(r.test(t))return false}else if(common.formatURL(t).startsWith(common.formatURL(r)))return false;return true};
|
|
7889
7885
|
|
|
7890
|
-
const z={sizeXXL:{size:"xxl"},sizeXL:{size:"xl"},sizeL:{size:"l"},sizeM:{size:"m"},sizeS:{size:"s"},sizeXS:{size:"xs"},sizeXXS:{size:"xxs"}},u$1={appearance:z};function _$1(r){const{appearance:i,className:a,dataTestId:o,dataTour:l$1,cursor:t,style:s,tag:n="span",before:c,after:p,isActive:S,isDisabled:x,isSkeleton:z,onClick:_,onDoubleClick:g,children:b}=r,C=e$1(i,u$1,x),v=p$2(r,C),{textAlignClass:P,textColorActiveClass:h,textColorActiveHoverClass:T,textColorClass:H,textColorDisabledClass:A,textColorHoverClass:$,textFontClass:B,textStyleClass:w,textTruncateClass:F,textWeightClass:X,textWrapClass:I,cursorClass:k,sizeClass:N,widthClass:Q}=v,{styles:L}=l(r);return jsxRuntimeExports.jsxs(n,{className:clsx(a,"text",N&&`text_size_${N}`,X&&`text-weight_${X}`,P&&`text-align_${P}`,x&&A&&`text-color_${A}`,!S&&!x&&H&&`text-color_${H}`,!S&&!x&&$&&`text-color_hover_${$}`,S&&!x&&T&&`text-color_active_hover_${T}`,S&&!x&&h&&`text-color_active_${h}`,B&&`text-font_${B}`,w&&`text-style_${w}`,I&&`word-wrap_${I}`,F&&`text-truncate_${F}`,z&&"skeleton",Q&&`width_${Q}`,k&&`cursor_${k}`,_&&(t||"cursor_type_pointer")),"data-testid":o,"data-tour":l$1,style:Object.assign({},L,s),onClick:_,onDoubleClick:g,children:[c,b,p]})}const g={sizeXXL:{size:"xxl",textSize:"xl",iconSize:"24"},sizeXL:{size:"xl",textSize:"l",iconSize:"24"},sizeL:{size:"l",textSize:"l",iconSize:"24"},sizeM:{size:"m",textSize:"m",iconSize:"24"},sizeS:{size:"s",textSize:"s",iconSize:"24"},sizeXS:{size:"xs",textSize:"xs",iconSize:"24"},sizeXXS:{size:"xxs",textSize:"xs",iconSize:"24"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentQuaternary:{fill:"accentQuaternary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentSecondary",borderColor:"accentBorderQuaternary",textColor:"accentTextQuaternary",dotFill:"accentItemQuaternary",iconFill:"accentItemQuaternary"},accentTertiary:{fill:"accentTertiary",borderColor:"accentBorderSecondary",textColor:"accentTextSecondary",dotFill:"accentItemSecondary",iconFill:"accentItemSecondary"},dangerPrimary:{fill:"dangerPrimary",borderColor:"dangerBorderPrimary",textColor:"dangerTextPrimary",dotFill:"dangerItemPrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderSecondary",textColor:"infoTextPrimary",dotFill:"infoItemPrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"infoSecondary",borderColor:"infoBorderSecondary",textColor:"infoTextSecondary",dotFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",borderColor:"specialBorderSecondary",textColor:"specialTextPrimary",dotFill:"specialItemPrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",borderColor:"extraBorderSecondary",textColor:"extraTextPrimary",dotFill:"extraItemPrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary",dotFill:"successItemPrimary",iconFill:"successItemPrimary"},disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary",iconFill:"surfaceItemPrimary"},surfacePrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary",dotFill:"surfaceItemPrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"accentPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderSecondary",textColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary"},warningPrimary:{fill:"warningPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary",dotFill:"warningItemPrimary",iconFill:"warningItemPrimary"}},b={appearance:g};function C(i){const{appearance:a,className:o,dataTestId:l$1,dataTour:t,dot:s,icon:n,iconSrc:c,value:p,isSkeleton:S,children:x}=i,z=e$1(a,b),u=p$2(i,z),{fillClass:g,fillHoverClass:C,borderColorClass:v,borderColorHoverClass:P,borderTypeClass:h,borderWidthClass:T,textColor:H,textSize:A,dotFillClass:$,iconFill:B,iconShape:w,iconSize:F,shapeClass:X,shapeStrengthClass:I,sizeClass:k}=u,{styles:Q}=l(i);return jsxRuntimeExports.jsxs("div",{className:clsx(o,"badge",v&&`border-color_${v}`,P&&`border-color_hover_${P}`,T&&`border-width_${T}`,h&&`border_type_${h}`,g&&`fill_${g}`,C&&`fill_hover_${C}`,k&&`badge_size_${k}`,X&&`shape_${X}`,I&&`shape-strength_${I}`,p?n?s?"badge_type_dot-icon-counter":"badge_type_icon-counter":"badge_type_counter":n?"badge_type_icon":s?"badge_type_dot":"badge_type_fill",S&&"skeleton"),"data-testid":l$1,"data-tour":t,style:Q,children:[s&&jsxRuntimeExports.jsx("div",{className:clsx("badge__dot",$&&`svg_fill_${$}`),children:jsxRuntimeExports.jsx("svg",{width:"6",height:"6",viewBox:"0 0 6 6",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("rect",{width:"6",height:"6",rx:"50"})})}),n&&jsxRuntimeExports.jsx(N,{className:"badge__icon",size:F,iconFill:B,imageSrc:c,shape:w,SvgImage:n}),x||p&&jsxRuntimeExports.jsx(_$1,{className:"badge__value",size:A,textColor:H,children:p})]})}const P$1={LinkComponent:"a"};function T(e){const{href:i,LinkComponent:o,rel:l,target:t,children:s,...n}=e;if(i){const e=o||P$1.LinkComponent;return jsxRuntimeExports.jsx(e,{href:i,rel:l,target:t,...n,children:s})}else if(o)return jsxRuntimeExports.jsx(o,{...n,children:s});return React.Children.toArray(s).filter(Boolean).map(e=>React.isValidElement(e)?React.cloneElement(e,n):e)}const H={h1:{size:"h1",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h2:{size:"h2",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h3:{size:"h3",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h4:{size:"h4",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h5:{size:"h5",iconAfterFillSize:"20",iconAfterSize:"20",iconBeforeFillSize:"20",iconBeforeSize:"20"},h6:{size:"h6",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},disabledPrimary:{fill:"surfacePrimary",borderColor:"errorBorderQuaternary",borderHover:"errorBorderHoverQuaternary",textColor:"surfaceTextQuaternary",iconBeforeFill:"errorQuaternary"},disabledSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderHoverQuaternary",iconBeforeFill:"surfaceQuaternary"},solid:{},outlined:{fill:"none"},full:{},ghost:{fill:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",textColorHover:"errorTextPrimary"},infoPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",textColor:"extraTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",textColor:"warningTextSecondary",textColorHover:"warningTextSecondary"},requirePrimary:{fill:"warningTertiary",borderColor:"warningBorderQuaternary",borderHover:"warningBorderQuaternary",textColor:"surfaceTextPrimary",iconBeforeFill:"warningQuaternary"},requireSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderQuaternary",iconBeforeFill:"surfaceQuaternary"}},A={appearance:H};function $(i){const{appearance:a,className:l$1,dataTestId:t,dataTour:s,text:n,afterWrapper:c,beforeWrapper:p,style:S,tag:x="span",before:z,after:u,isActive:_,isDisabled:g,isSkeleton:b,onClick:C,children:v}=i,P=e$1(a,A,g),h=p$2(i,P),{directionClass:T,size:H,fillClass:$,fillHoverClass:B,textAlignClass:w,textColorActiveClass:F,textColorActiveHoverClass:X,textColorClass:I,textColorDisabledClass:k,textColorHoverClass:Q,textFontClass:L,textStyleClass:D,textTruncateClass:M,textWeightClass:W,textWrap:V,heightClass:E,iconAfter:O,iconAfterFill:j,iconAfterFillIcon:q,iconAfterFillSize:G,iconAfterShape:R,iconAfterSize:U,iconAfterSrc:J,iconBadgeAppearance:K,iconBadgeShape:Y,iconBadgeSize:Z,iconBadgeTextColor:ee,iconBadgeTextSize:re,iconBadgeValue:ie,iconBefore:ae,iconBeforeFill:oe,iconBeforeFillIcon:le,iconBeforeFillSize:te,iconBeforeShape:se,iconBeforeSize:ne,iconBeforeSrc:ce,svgFillClass:de,svgFillHoverClass:fe,widthClass:me,wrapperDirectionClass:ye,onClickIconAfter:pe,onClickIconBefore:Se}=h,{styles:xe,wrapper:ze}=l(i),ue=React.useMemo(()=>x||(H||"span"),[x,H]);return jsxRuntimeExports.jsxs(ue,{className:clsx(l$1,"title",$&&`fill_${$}`,B&&`fill_hover_${B}`,de&&`svg_fill_${de}`,fe&&`svg_fill_hover_${fe}`,me&&`width_${me}`,E&&`height_${E}`,H&&`title_size_${H}`,T&&`title_direction_${T}`,g&&k&&`text-color_${k}`,!_&&!g&&I&&`text text-color_${I}`,_&&!g&&F&&`text-color_active_${F}`,!_&&!g&&Q&&`text-color_hover_${Q}`,_&&!g&&X&&`text-color_active_hover${X}`,L&&`text-font_${L}`,D&&`text-style_${D}`,W&&`text-weight_${W}`,V&&`word-wrap_${V}`,ie&&"title_badge",b&&"skeleton"),"data-testid":t,"data-tour":s,style:Object.assign({},xe,S),onClick:C,children:[z,jsxRuntimeExports.jsxs("span",{className:clsx(w&&`text-align_${w}`,ye&&`title_direction_${ye}`,"title__wrapper",M&&`text-truncate_${M}`),style:ze,children:[(ae||ce)&&jsxRuntimeExports.jsx(N,{className:clsx("title__icon_before",ie&&"title__icon_before-badge"),fill:oe,fillSize:te,badgeAppearance:K,badgeClass:"title__icon_before_badge",badgeShape:Y,badgeSize:Z,badgeTextColor:ee,badgeTextSize:re,badgeValue:ie,iconFill:le,iconSize:ne,imageSrc:ce,shape:se,SvgImage:ae,onClick:Se}),p,v||n,c,(O||J)&&jsxRuntimeExports.jsx(N,{className:clsx("title__icon_after",ie&&"title__icon_after-badge"),fill:j,fillSize:G,badgeAppearance:K,badgeClass:"title__icon_after_badge",badgeShape:Y,badgeSize:Z,badgeTextColor:ee,badgeTextSize:re,badgeValue:ie,iconFill:q,iconSize:U,imageSrc:J,shape:R,SvgImage:O,onClick:pe})]}),u]})}const B={defaultPrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary",titleColor:"surfaceTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},sizeL:{size:"l",titleSize:"h5",textSize:"s"},sizeM:{size:"m",titleSize:"h5",textSize:"s"},sizeS:{size:"s",titleSize:"h5",textSize:"s"},disabledPrimary:{fill:"disabledPrimary",fillHover:"disabledHoverPrimary",titleColor:"surfaceTextPrimary",textColor:"surfaceTextPrimary"},requirePrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",titleColor:"warningTextPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",titleColor:"errorTextPrimary",borderColor:"errorBorderPrimary",textColor:"errorTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",titleColor:"successTextPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary"}},w={appearance:B},F=React.forwardRef(function(i,a){const{appearance:o,className:c,dataTestId:p,dataTour:S,initialIsVisible:x,title:z,text:u,before:g,after:b,openTimeoutDelay:C=500,closeTimeoutDelay:v=250,isSkeleton:P,children:h}=i,T=React.useRef(null),H=React.useRef(null),A=React.useRef(null),B=React.useRef(false),[F,X]=React.useState(x),I=React.useCallback(()=>{B.current||(H.current&&clearTimeout(H.current),A.current=setTimeout(()=>{X(true);},C));},[C]),k=React.useCallback(()=>{A.current&&clearTimeout(A.current),H.current=setTimeout(()=>{X(e=>(true===e&&(B.current=true),false));},v);},[v]),N=React.useCallback(()=>{B.current=false;},[]);React.useImperativeHandle(a,()=>({get tooltipElement(){return T.current},openTooltip:I,closeTooltip:k,isTooltipVisible:F}),[F,I,k]);const Q=e$1(o,w),L=p$2(i,Q),{alignClass:D,alignDirectionClass:M,alignmentClass:W,alignPosition:V,fillClass:E,titleColor:O,titleSize:j,titleWeight:q,borderColorClass:G,borderTypeClass:R,borderWidthClass:U,textColor:J,textSize:K,textWeight:Y,arrowPosition:Z,elevationClass:ee,shapeClass:re,shapeStrengthClass:ie,sizeClass:ae,widthClass:oe}=L,{styles:le}=l(i);return jsxRuntimeExports.jsxs("div",{className:clsx(c,"tooltip",V&&`tooltip_align-position_${V}`,M&&`align_${M}`,D&&`align_${D}`,ee&&`elevation_${ee}`,W&&`alignment_${W}`,ae&&`tooltip_size_${ae}`,P&&"skeleton",oe&&`width_${oe}`),ref:T,"data-testid":p,"data-tour":S,style:le,onAnimationEnd:N,children:[Z&&jsxRuntimeExports.jsx("div",{className:clsx("tooltip__arrow",Z&&`tooltip__arrow_position_${Z}`,E&&`fill_${E}`),children:" "}),g,jsxRuntimeExports.jsxs("div",{className:clsx("tooltip__inner",U&&`border-width_${U}`,G&&`border-color_${G}`,R&&`border_type_${R}`,E&&`fill_${E}`,re&&`shape_${re}`,ie&&`shape-strength_${ie}`),children:[z&&jsxRuntimeExports.jsx($,{className:"tooltip__title text",size:j,textColor:O,textWeight:q,children:z}),u&&jsxRuntimeExports.jsx(_$1,{className:"tooltip__text",size:K,textColor:J,textWeight:Y,children:u}),h]}),b]})}),I={disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemQuaternary"},size12_12:{fillSize:"12",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_12:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_14:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_12:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size16_14:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_16:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_12:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size20_14:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size20_16:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_20:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_12:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size24_14:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size24_16:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size24_20:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_24:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_12:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size32_14:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size32_16:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size32_20:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size32_24:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_32:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_12:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size40_14:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size40_16:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size40_20:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size40_24:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size40_32:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_40:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"40"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"accentItemPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary",borderColor:"dangerBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",borderColor:"errorBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",borderColor:"specialBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",borderColor:"extraBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",borderColor:"successBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"successItemPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverSecondary",borderColor:"surfaceBorderTertiary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",badgeAppearance:"accentPrimary solid rounded",iconFill:"surfaceItemPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",borderColor:"warningBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"warningItemPrimary"}},k={appearance:I},N=f$1(React.forwardRef(function(i,a){const{id:l$1,appearance:t,className:s,dataTestId:n,dataTour:c,width:S,height:z,badgeClass:u,href:_,imageSrc:g,link:b,linkRel:v,linkTarget:P,notification:h,saveFillStroke:H,showTooltip:A,SvgImage:$,svgImageStyles:B,before:w,after:X,isActive:I,isDisabled:N,isSkeleton:L,onClick:D,onMouseEnter:M,onMouseLeave:W}=i,V=React.useMemo(()=>{if($){const e=$,i={};return S&&(i.width=S),z&&(i.height=z),jsxRuntimeExports.jsx(e,{...i,...B})}return g?g.endsWith(".svg")?jsxRuntimeExports.jsx(InlineSVG,H?{src:g}:{src:g,preProcessor:Q}):jsxRuntimeExports.jsx("img",{src:g}):null},[$,g,S,z,B,H]),E=e$1(t,k,N),O=p$2(i,E),{alignmentClass:j,fillActiveClass:q,fillActiveHoverClass:G,fillClass:R,fillDisabledClass:U,fillHoverClass:J,fillSizeClass:K,borderColorClass:Y,borderColorHoverClass:Z,borderTypeClass:ee,borderWidthClass:re,badgeAppearance:ie,badgeAppearanceSize:ae,badgeShape:oe,badgeSize:le,badgeTextColor:te,badgeTextSize:se,badgeValue:ne,centeringClass:ce,iconFillActiveClass:de,iconFillActiveHoverClass:fe,iconFillClass:me,iconFillDisabledClass:ye,iconFillHoverClass:pe,iconSizeClass:Se,shapeClass:xe,shapeStrengthClass:ze,tooltipAppearance:ue,tooltipText:_e,tooltipTextSize:ge,tooltipTitle:be,tooltipTitleSize:Ce}=O,{styles:ve}=l(i);return jsxRuntimeExports.jsxs("div",{id:l$1,className:clsx(s,"icon",I?q&&`fill_active_${q}`:R&&`fill_${R}`,I?G&&`fill_active_hover_${G}`:J&&`fill_hover_${J}`,K&&`icon_fill_size_${K}`,U&&`fill_disabled_${U}`,I?de&&`icon_fill_active_${de}`:me&&`icon_fill_${me}`,I?fe&&`icon_fill_active_hover_${fe}`:pe&&`icon_fill_hover_${pe}`,N&&ye&&`icon_fill_disabled_${ye}`,xe&&`shape_${xe}`,ze&&`shape-strength_${ze}`,Y&&`border-color_${Y}`,Z&&`border-color_hover_${Z}`,re&&`border-width_${re}`,ee&&`border_type_${ee}`,ne&&"icon_with-badge",ce&&`centering_${ce}`,D&&"cursor_type_pointer",L&&"skeleton"),ref:a,"data-testid":n,"data-tour":c,style:ve,onClick:D,onMouseEnter:M,onMouseLeave:W,children:[w,jsxRuntimeExports.jsxs(T,{className:clsx((b||_||D)&&"cursor_type_pointer",b||_?"icon__link":"icon__item",Se&&`icon_size_${Se}`),href:b||_,LinkComponent:"div",rel:v,target:P,children:[V,(ne||h)&&jsxRuntimeExports.jsx(C,{appearance:r(ie,ae),className:clsx(u,"icon__badge"),size:le,textColor:te,textSize:se,shape:oe,value:ne}),A&&jsxRuntimeExports.jsx(F,{appearance:ue,className:clsx(s,"icon__tooltip",j&&`alignment_${j}`),title:be,titleSize:Ce,text:_e,textSize:ge})]}),X]})})),Q=e=>e.replace(/fill=".*?"/g,'fill=""').replace(/stroke=".*?"/g,'stroke=""');
|
|
7886
|
+
const z={sizeXXL:{size:"xxl"},sizeXL:{size:"xl"},sizeL:{size:"l"},sizeM:{size:"m"},sizeS:{size:"s"},sizeXS:{size:"xs"},sizeXXS:{size:"xxs"}},u={appearance:z};function _$1(r){const{appearance:i,className:a,dataTestId:o,dataTour:l$1,cursor:t,style:s,tag:n="span",before:c,after:p$1,isActive:S,isDisabled:x,isSkeleton:z,onClick:_,onDoubleClick:g,children:b}=r,C=e$1(i,u,x),v=p(r,C),{textAlignClass:P,textColorActiveClass:h,textColorActiveHoverClass:T,textColorClass:H,textColorDisabledClass:A,textColorHoverClass:$,textFontClass:B,textStyleClass:w,textTruncateClass:F,textWeightClass:X,textWrapClass:I,cursorClass:k,sizeClass:N,widthClass:Q}=v,{styles:L}=l(r);return jsxRuntimeExports.jsxs(n,{className:clsx(a,"text",N&&`text_size_${N}`,X&&`text-weight_${X}`,P&&`text-align_${P}`,x&&A&&`text-color_${A}`,!S&&!x&&H&&`text-color_${H}`,!S&&!x&&$&&`text-color_hover_${$}`,S&&!x&&T&&`text-color_active_hover_${T}`,S&&!x&&h&&`text-color_active_${h}`,B&&`text-font_${B}`,w&&`text-style_${w}`,I&&`word-wrap_${I}`,F&&`text-truncate_${F}`,z&&"skeleton",Q&&`width_${Q}`,k&&`cursor_${k}`,_&&(t||"cursor_type_pointer")),"data-testid":o,"data-tour":l$1,style:Object.assign({},L,s),onClick:_,onDoubleClick:g,children:[c,b,p$1]})}const g={sizeXXL:{size:"xxl",textSize:"xl",iconSize:"24"},sizeXL:{size:"xl",textSize:"l",iconSize:"24"},sizeL:{size:"l",textSize:"l",iconSize:"24"},sizeM:{size:"m",textSize:"m",iconSize:"24"},sizeS:{size:"s",textSize:"s",iconSize:"24"},sizeXS:{size:"xs",textSize:"xs",iconSize:"24"},sizeXXS:{size:"xxs",textSize:"xs",iconSize:"24"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentQuaternary:{fill:"accentQuaternary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentSecondary",borderColor:"accentBorderQuaternary",textColor:"accentTextQuaternary",dotFill:"accentItemQuaternary",iconFill:"accentItemQuaternary"},accentTertiary:{fill:"accentTertiary",borderColor:"accentBorderSecondary",textColor:"accentTextSecondary",dotFill:"accentItemSecondary",iconFill:"accentItemSecondary"},dangerPrimary:{fill:"dangerPrimary",borderColor:"dangerBorderPrimary",textColor:"dangerTextPrimary",dotFill:"dangerItemPrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderSecondary",textColor:"infoTextPrimary",dotFill:"infoItemPrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"infoSecondary",borderColor:"infoBorderSecondary",textColor:"infoTextSecondary",dotFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",borderColor:"specialBorderSecondary",textColor:"specialTextPrimary",dotFill:"specialItemPrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",borderColor:"extraBorderSecondary",textColor:"extraTextPrimary",dotFill:"extraItemPrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary",dotFill:"successItemPrimary",iconFill:"successItemPrimary"},disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary",iconFill:"surfaceItemPrimary"},surfacePrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary",dotFill:"surfaceItemPrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"accentPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderSecondary",textColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary"},warningPrimary:{fill:"warningPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary",dotFill:"warningItemPrimary",iconFill:"warningItemPrimary"}},b$1={appearance:g};function C(i){const{appearance:a,className:o,dataTestId:l$1,dataTour:t,dot:s,icon:n,iconSrc:c,value:p$1,isSkeleton:S,children:x}=i,z=e$1(a,b$1),u=p(i,z),{fillClass:g,fillHoverClass:C,borderColorClass:v,borderColorHoverClass:P,borderTypeClass:h,borderWidthClass:T,textColor:H,textSize:A,dotFillClass:$,iconFill:B,iconShape:w,iconSize:F,shapeClass:X,shapeStrengthClass:I,sizeClass:k}=u,{styles:Q}=l(i);return jsxRuntimeExports.jsxs("div",{className:clsx(o,"badge",v&&`border-color_${v}`,P&&`border-color_hover_${P}`,T&&`border-width_${T}`,h&&`border_type_${h}`,g&&`fill_${g}`,C&&`fill_hover_${C}`,k&&`badge_size_${k}`,X&&`shape_${X}`,I&&`shape-strength_${I}`,p$1?n?s?"badge_type_dot-icon-counter":"badge_type_icon-counter":"badge_type_counter":n?"badge_type_icon":s?"badge_type_dot":"badge_type_fill",S&&"skeleton"),"data-testid":l$1,"data-tour":t,style:Q,children:[s&&jsxRuntimeExports.jsx("div",{className:clsx("badge__dot",$&&`svg_fill_${$}`),children:jsxRuntimeExports.jsx("svg",{width:"6",height:"6",viewBox:"0 0 6 6",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("rect",{width:"6",height:"6",rx:"50"})})}),n&&jsxRuntimeExports.jsx(N,{className:"badge__icon",size:F,iconFill:B,imageSrc:c,shape:w,SvgImage:n}),x||p$1&&jsxRuntimeExports.jsx(_$1,{className:"badge__value",size:A,textColor:H,children:p$1})]})}const P$2={LinkComponent:"a"};function T$1(e){const{href:i,LinkComponent:o,rel:l,target:t,children:s,...n}=e;if(i){const e=o||P$2.LinkComponent;return jsxRuntimeExports.jsx(e,{href:i,rel:l,target:t,...n,children:s})}else if(o)return jsxRuntimeExports.jsx(o,{...n,children:s});return React.Children.toArray(s).filter(Boolean).map(e=>React.isValidElement(e)?React.cloneElement(e,n):e)}const H={h1:{size:"h1",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h2:{size:"h2",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h3:{size:"h3",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h4:{size:"h4",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h5:{size:"h5",iconAfterFillSize:"20",iconAfterSize:"20",iconBeforeFillSize:"20",iconBeforeSize:"20"},h6:{size:"h6",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},disabledPrimary:{fill:"surfacePrimary",borderColor:"errorBorderQuaternary",borderHover:"errorBorderHoverQuaternary",textColor:"surfaceTextQuaternary",iconBeforeFill:"errorQuaternary"},disabledSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderHoverQuaternary",iconBeforeFill:"surfaceQuaternary"},solid:{},outlined:{fill:"none"},full:{},ghost:{fill:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",textColorHover:"errorTextPrimary"},infoPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",textColor:"extraTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",textColor:"warningTextSecondary",textColorHover:"warningTextSecondary"},requirePrimary:{fill:"warningTertiary",borderColor:"warningBorderQuaternary",borderHover:"warningBorderQuaternary",textColor:"surfaceTextPrimary",iconBeforeFill:"warningQuaternary"},requireSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderQuaternary",iconBeforeFill:"surfaceQuaternary"}},A={appearance:H};function $(i){const{appearance:a,className:l$1,dataTestId:t,dataTour:s,text:n,afterWrapper:c,beforeWrapper:p$1,style:S,tag:x="span",before:z,after:u,isActive:_,isDisabled:g,isSkeleton:b,onClick:C,children:v}=i,P=e$1(a,A,g),h=p(i,P),{directionClass:T,size:H,fillClass:$,fillHoverClass:B,textAlignClass:w,textColorActiveClass:F,textColorActiveHoverClass:X,textColorClass:I,textColorDisabledClass:k,textColorHoverClass:Q,textFontClass:L,textStyleClass:D,textTruncateClass:M,textWeightClass:W,textWrap:V,heightClass:E,iconAfter:O,iconAfterFill:j,iconAfterFillIcon:q,iconAfterFillSize:G,iconAfterShape:R,iconAfterSize:U,iconAfterSrc:J,iconBadgeAppearance:K,iconBadgeShape:Y,iconBadgeSize:Z,iconBadgeTextColor:ee,iconBadgeTextSize:re,iconBadgeValue:ie,iconBefore:ae,iconBeforeFill:oe,iconBeforeFillIcon:le,iconBeforeFillSize:te,iconBeforeShape:se,iconBeforeSize:ne,iconBeforeSrc:ce,svgFillClass:de,svgFillHoverClass:fe,widthClass:me,wrapperDirectionClass:ye,onClickIconAfter:pe,onClickIconBefore:Se}=h,{styles:xe,wrapper:ze}=l(i),ue=React.useMemo(()=>x||(H||"span"),[x,H]);return jsxRuntimeExports.jsxs(ue,{className:clsx(l$1,"title",$&&`fill_${$}`,B&&`fill_hover_${B}`,de&&`svg_fill_${de}`,fe&&`svg_fill_hover_${fe}`,me&&`width_${me}`,E&&`height_${E}`,H&&`title_size_${H}`,T&&`title_direction_${T}`,g&&k&&`text-color_${k}`,!_&&!g&&I&&`text text-color_${I}`,_&&!g&&F&&`text-color_active_${F}`,!_&&!g&&Q&&`text-color_hover_${Q}`,_&&!g&&X&&`text-color_active_hover${X}`,L&&`text-font_${L}`,D&&`text-style_${D}`,W&&`text-weight_${W}`,V&&`word-wrap_${V}`,ie&&"title_badge",b&&"skeleton"),"data-testid":t,"data-tour":s,style:Object.assign({},xe,S),onClick:C,children:[z,jsxRuntimeExports.jsxs("span",{className:clsx(w&&`text-align_${w}`,ye&&`title_direction_${ye}`,"title__wrapper",M&&`text-truncate_${M}`),style:ze,children:[(ae||ce)&&jsxRuntimeExports.jsx(N,{className:clsx("title__icon_before",ie&&"title__icon_before-badge"),fill:oe,fillSize:te,badgeAppearance:K,badgeClass:"title__icon_before_badge",badgeShape:Y,badgeSize:Z,badgeTextColor:ee,badgeTextSize:re,badgeValue:ie,iconFill:le,iconSize:ne,imageSrc:ce,shape:se,SvgImage:ae,onClick:Se}),p$1,v||n,c,(O||J)&&jsxRuntimeExports.jsx(N,{className:clsx("title__icon_after",ie&&"title__icon_after-badge"),fill:j,fillSize:G,badgeAppearance:K,badgeClass:"title__icon_after_badge",badgeShape:Y,badgeSize:Z,badgeTextColor:ee,badgeTextSize:re,badgeValue:ie,iconFill:q,iconSize:U,imageSrc:J,shape:R,SvgImage:O,onClick:pe})]}),u]})}const B={defaultPrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary",titleColor:"surfaceTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},sizeL:{size:"l",titleSize:"h5",textSize:"s"},sizeM:{size:"m",titleSize:"h5",textSize:"s"},sizeS:{size:"s",titleSize:"h5",textSize:"s"},disabledPrimary:{fill:"disabledPrimary",fillHover:"disabledHoverPrimary",titleColor:"surfaceTextPrimary",textColor:"surfaceTextPrimary"},requirePrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",titleColor:"warningTextPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",titleColor:"errorTextPrimary",borderColor:"errorBorderPrimary",textColor:"errorTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",titleColor:"successTextPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary"}},w={appearance:B},F=React.forwardRef(function(i,a){const{appearance:o,className:c,dataTestId:p$1,dataTour:S,initialIsVisible:x,title:z,text:u,before:g,after:b,openTimeoutDelay:C=500,closeTimeoutDelay:v=250,isSkeleton:P,children:h}=i,T=React.useRef(null),H=React.useRef(null),A=React.useRef(null),B=React.useRef(false),[F,X]=React.useState(x),I=React.useCallback(()=>{B.current||(H.current&&clearTimeout(H.current),A.current=setTimeout(()=>{X(true);},C));},[C]),k=React.useCallback(()=>{A.current&&clearTimeout(A.current),H.current=setTimeout(()=>{X(e=>(true===e&&(B.current=true),false));},v);},[v]),N=React.useCallback(()=>{B.current=false;},[]);React.useImperativeHandle(a,()=>({get tooltipElement(){return T.current},openTooltip:I,closeTooltip:k,isTooltipVisible:F}),[F,I,k]);const Q=e$1(o,w),L=p(i,Q),{alignClass:D,alignDirectionClass:M,alignmentClass:W,alignPosition:V,fillClass:E,titleColor:O,titleSize:j,titleWeight:q,borderColorClass:G,borderTypeClass:R,borderWidthClass:U,textColor:J,textSize:K,textWeight:Y,arrowPosition:Z,elevationClass:ee,shapeClass:re,shapeStrengthClass:ie,sizeClass:ae,widthClass:oe}=L,{styles:le}=l(i);return jsxRuntimeExports.jsxs("div",{className:clsx(c,"tooltip",V&&`tooltip_align-position_${V}`,M&&`align_${M}`,D&&`align_${D}`,ee&&`elevation_${ee}`,W&&`alignment_${W}`,ae&&`tooltip_size_${ae}`,P&&"skeleton",oe&&`width_${oe}`),ref:T,"data-testid":p$1,"data-tour":S,style:le,onAnimationEnd:N,children:[Z&&jsxRuntimeExports.jsx("div",{className:clsx("tooltip__arrow",Z&&`tooltip__arrow_position_${Z}`,E&&`fill_${E}`),children:" "}),g,jsxRuntimeExports.jsxs("div",{className:clsx("tooltip__inner",U&&`border-width_${U}`,G&&`border-color_${G}`,R&&`border_type_${R}`,E&&`fill_${E}`,re&&`shape_${re}`,ie&&`shape-strength_${ie}`),children:[z&&jsxRuntimeExports.jsx($,{className:"tooltip__title text",size:j,textColor:O,textWeight:q,children:z}),u&&jsxRuntimeExports.jsx(_$1,{className:"tooltip__text",size:K,textColor:J,textWeight:Y,children:u}),h]}),b]})}),I$1={disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemQuaternary"},size12_12:{fillSize:"12",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_12:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_14:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_12:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size16_14:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_16:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_12:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size20_14:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size20_16:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_20:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_12:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size24_14:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size24_16:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size24_20:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_24:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_12:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size32_14:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size32_16:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size32_20:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size32_24:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_32:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_12:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size40_14:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size40_16:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size40_20:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size40_24:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size40_32:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_40:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"40"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"accentItemPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary",borderColor:"dangerBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",borderColor:"errorBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",borderColor:"specialBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",borderColor:"extraBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",borderColor:"successBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"successItemPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverSecondary",borderColor:"surfaceBorderTertiary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",badgeAppearance:"accentPrimary solid rounded",iconFill:"surfaceItemPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",borderColor:"warningBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"warningItemPrimary"}},k={appearance:I$1},N=f$1(React.forwardRef(function(i,a){const{id:l$1,appearance:t,className:s,dataTestId:n,dataTour:c,width:S,height:z,badgeClass:u,href:_,imageSrc:g,link:b,linkRel:v,linkTarget:P,notification:h,saveFillStroke:H,showTooltip:A,SvgImage:$,svgImageStyles:B,before:w,after:X,isActive:I,isDisabled:N,isSkeleton:L,onClick:D,onMouseEnter:M,onMouseLeave:W}=i,V=React.useMemo(()=>{if($){const e=$,i={};return S&&(i.width=S),z&&(i.height=z),jsxRuntimeExports.jsx(e,{...i,...B})}return g?g.endsWith(".svg")?jsxRuntimeExports.jsx(InlineSVG,H?{src:g}:{src:g,preProcessor:Q}):jsxRuntimeExports.jsx("img",{src:g}):null},[$,g,S,z,B,H]),E=e$1(t,k,N),O=p(i,E),{alignmentClass:j,fillActiveClass:q,fillActiveHoverClass:G,fillClass:R,fillDisabledClass:U,fillHoverClass:J,fillSizeClass:K,borderColorClass:Y,borderColorHoverClass:Z,borderTypeClass:ee,borderWidthClass:re,badgeAppearance:ie,badgeAppearanceSize:ae,badgeShape:oe,badgeSize:le,badgeTextColor:te,badgeTextSize:se,badgeValue:ne,centeringClass:ce,iconFillActiveClass:de,iconFillActiveHoverClass:fe,iconFillClass:me,iconFillDisabledClass:ye,iconFillHoverClass:pe,iconSizeClass:Se,shapeClass:xe,shapeStrengthClass:ze,tooltipAppearance:ue,tooltipText:_e,tooltipTextSize:ge,tooltipTitle:be,tooltipTitleSize:Ce}=O,{styles:ve}=l(i);return jsxRuntimeExports.jsxs("div",{id:l$1,className:clsx(s,"icon",I?q&&`fill_active_${q}`:R&&`fill_${R}`,I?G&&`fill_active_hover_${G}`:J&&`fill_hover_${J}`,K&&`icon_fill_size_${K}`,U&&`fill_disabled_${U}`,I?de&&`icon_fill_active_${de}`:me&&`icon_fill_${me}`,I?fe&&`icon_fill_active_hover_${fe}`:pe&&`icon_fill_hover_${pe}`,N&&ye&&`icon_fill_disabled_${ye}`,xe&&`shape_${xe}`,ze&&`shape-strength_${ze}`,Y&&`border-color_${Y}`,Z&&`border-color_hover_${Z}`,re&&`border-width_${re}`,ee&&`border_type_${ee}`,ne&&"icon_with-badge",ce&&`centering_${ce}`,D&&"cursor_type_pointer",L&&"skeleton"),ref:a,"data-testid":n,"data-tour":c,style:ve,onClick:D,onMouseEnter:M,onMouseLeave:W,children:[w,jsxRuntimeExports.jsxs(T$1,{className:clsx((b||_||D)&&"cursor_type_pointer",b||_?"icon__link":"icon__item",Se&&`icon_size_${Se}`),href:b||_,LinkComponent:"div",rel:v,target:P,children:[V,(ne||h)&&jsxRuntimeExports.jsx(C,{appearance:r(ie,ae),className:clsx(u,"icon__badge"),size:le,textColor:te,textSize:se,shape:oe,value:ne}),A&&jsxRuntimeExports.jsx(F,{appearance:ue,className:clsx(s,"icon__tooltip",j&&`alignment_${j}`),title:be,titleSize:Ce,text:_e,textSize:ge})]}),X]})})),Q=e=>e.replace(/fill=".*?"/g,'fill=""').replace(/stroke=".*?"/g,'stroke=""');
|
|
7891
7887
|
|
|
7892
|
-
const t={accentPrimary:{fill:"accentPrimary",borderColor:"surfaceBorderSecondary",itemFill:"accentItemPrimary"},accentTertiary:{fill:"accentTertiary",borderColor:"surfaceBorderSecondary",itemFill:"accentItemSecondary"},specialPrimary:{fill:"specialPrimary",borderColor:"surfaceBorderSecondary",itemFill:"specialItemPrimary"},sizeL:{size:"l",textSize:"m"},sizeM:{size:"m",textSize:"s"},sizeS:{size:"s",textSize:"xs"},extraPrimary:{fill:"extraPrimary",borderColor:"surfaceBorderSecondary",itemFill:"extraItemPrimary"},surfacePrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",itemFill:"surfaceItemPrimary"},surfaceSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderPrimary",itemFill:"surfaceItemPrimary"},surfaceTertiary:{fill:"surfaceTertiary",borderColor:"surfaceBorderPrimary",itemFill:"surfaceItemPrimary"},warningPrimary:{fill:"warningPrimary",borderColor:"surfaceBorderSecondary",itemFill:"warningItemPrimary"},successPrimary:{fill:"successPrimary",borderColor:"surfaceBorderSecondary",itemFill:"successItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"surfaceBorderSecondary",itemFill:"infoItemPrimary"},dangerPrimary:{fill:"dangerPrimary",borderColor:"surfaceBorderSecondary",itemFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",borderColor:"surfaceBorderSecondary",itemFill:"errorItemPrimary"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"}},c={appearance:t};function m(t){const{appearance:m,className:d,dataTestId:n,dataTour:y,type:f="dot",text:u,isDisabled:P,isSkeleton:p,children:C}=t,_=e$1(m,c,P),h=p
|
|
7888
|
+
const t={accentPrimary:{fill:"accentPrimary",borderColor:"surfaceBorderSecondary",itemFill:"accentItemPrimary"},accentTertiary:{fill:"accentTertiary",borderColor:"surfaceBorderSecondary",itemFill:"accentItemSecondary"},specialPrimary:{fill:"specialPrimary",borderColor:"surfaceBorderSecondary",itemFill:"specialItemPrimary"},sizeL:{size:"l",textSize:"m"},sizeM:{size:"m",textSize:"s"},sizeS:{size:"s",textSize:"xs"},extraPrimary:{fill:"extraPrimary",borderColor:"surfaceBorderSecondary",itemFill:"extraItemPrimary"},surfacePrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",itemFill:"surfaceItemPrimary"},surfaceSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderPrimary",itemFill:"surfaceItemPrimary"},surfaceTertiary:{fill:"surfaceTertiary",borderColor:"surfaceBorderPrimary",itemFill:"surfaceItemPrimary"},warningPrimary:{fill:"warningPrimary",borderColor:"surfaceBorderSecondary",itemFill:"warningItemPrimary"},successPrimary:{fill:"successPrimary",borderColor:"surfaceBorderSecondary",itemFill:"successItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"surfaceBorderSecondary",itemFill:"infoItemPrimary"},dangerPrimary:{fill:"dangerPrimary",borderColor:"surfaceBorderSecondary",itemFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",borderColor:"surfaceBorderSecondary",itemFill:"errorItemPrimary"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"}},c={appearance:t};function m(t){const{appearance:m,className:d,dataTestId:n,dataTour:y,type:f="dot",text:u,isDisabled:P,isSkeleton:p$1,children:C}=t,_=e$1(m,c,P),h=p(t,_),{fillClass:S,borderColorClass:b,textColor:x,textSize:z,heightClass:F,itemFillClass:I,shapeClass:B,shapeStrengthClass:g,sizeClass:$,widthClass:N}=h,{styles:T}=l(t);return jsxRuntimeExports.jsxs("div",{className:clsx("loader",d,N&&`width_${N}`,F&&`height_${F}`,S&&`fill_${S}`,$&&`loader_size_${$}`,p$1&&"skeleton",f&&`loader_type_${f}`,B&&`shape_${B}`,g&&`shape-strength_${g}`),"data-testid":n,"data-tour":y,style:T,children:[C||jsxRuntimeExports.jsxs("div",{className:"loader__inner",children:[jsxRuntimeExports.jsx("span",{className:clsx("loader__item",I&&`fill_${I}`,"circular"===f&&`border-color_${b}`),children:" "}),jsxRuntimeExports.jsx("span",{className:clsx("loader__item",I&&`fill_${I}`),children:" "}),jsxRuntimeExports.jsx("span",{className:clsx("loader__item",I&&`fill_${I}`),children:" "})]}),u&&jsxRuntimeExports.jsx(_$1,{className:"loader__text",size:z,textColor:x,children:u})]})}
|
|
7893
7889
|
|
|
7894
|
-
const d={sizeXXL:{size:"xxl",labelTextSize:"xl",iconAfterAppearanceSize:"size24_24",iconBeforeAppearanceSize:"size24_24",loaderAppearanceSize:"sizeL"},sizeXL:{size:"xl",labelTextSize:"l",iconAfterAppearanceSize:"size24_24",iconBeforeAppearanceSize:"size24_24",loaderAppearanceSize:"sizeL"},sizeL:{size:"l",labelTextSize:"l",iconAfterAppearanceSize:"size24_24",iconBeforeAppearanceSize:"size24_24",loaderAppearanceSize:"sizeL"},sizeM:{size:"m",labelTextSize:"m",iconAfterAppearanceSize:"size24_24",iconBeforeAppearanceSize:"size24_24",loaderAppearanceSize:"sizeL"},sizeS:{size:"s",labelTextSize:"s",iconAfterAppearanceSize:"size20_20",iconBeforeAppearanceSize:"size20_20",loaderAppearanceSize:"sizeL"},sizeXS:{size:"xs",labelTextSize:"xs",iconAfterAppearanceSize:"size16_16",iconBeforeAppearanceSize:"size16_16",loaderAppearanceSize:"sizeL"},sizeXXS:{size:"xxs",labelTextSize:"xs",iconAfterAppearanceSize:"size14_14",iconBeforeAppearanceSize:"size14_14",loaderAppearanceSize:"sizeL"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentMutedPrimary:{fill:"accentTertiary",fillHover:"accentHoverTertiary",labelTextColor:"accentTextQuaternary",labelTextColorHover:"accentTextQuaternary",borderColor:"accentBorderSecondary",iconAfterFillIcon:"accentItemQuaternary",iconBeforeFillIcon:"accentItemQuaternary",iconFillIcon:"accentItemQuaternary",loaderAppearance:"accentTertiary"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextPrimary",labelTextColorHover:"accentTextPrimary",borderColor:"accentBorderPrimary",iconAfterFillIcon:"accentItemPrimary",iconBeforeFillIcon:"accentItemPrimary",iconFillIcon:"accentItemPrimary",loaderAppearance:"accentPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextSecondary",borderColor:"accentBorderPrimary",iconAfterFillIcon:"accentItemPrimary",iconBeforeFillIcon:"accentItemPrimary",iconFillIcon:"accentItemPrimary",loaderAppearance:"accentPrimary"},dangerMutedPrimary:{fill:"dangerTertiary",fillHover:"dangerHoverPrimary",labelTextColor:"dangerTextQuaternary",labelTextColorHover:"dangerTextQuaternary",borderColor:"dangerBorderSecondary",iconAfterFillIcon:"dangerItemQuaternary",iconBeforeFillIcon:"dangerItemQuaternary",iconFillIcon:"dangerItemQuaternary",loaderAppearance:"dangerTertiary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary",labelTextColor:"dangerTextPrimary",labelTextColorHover:"dangerTextPrimary",iconAfterFillIcon:"dangerItemPrimary",iconBeforeFillIcon:"dangerItemPrimary",iconFillIcon:"dangerItemPrimary",loaderAppearance:"dangerPrimary"},errorMutedPrimary:{fill:"errorTertiary",fillHover:"errorHoverPrimary",labelTextColor:"errorTextQuaternary",labelTextColorHover:"errorTextQuaternary",borderColor:"errorBorderSecondary",iconAfterFillIcon:"errorItemQuaternary",iconBeforeFillIcon:"errorItemQuaternary",iconFillIcon:"errorItemQuaternary",loaderAppearance:"errorTertiary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",labelTextColor:"errorTextPrimary",labelTextColorHover:"errorTextPrimary",iconAfterFillIcon:"errorItemPrimary",iconBeforeFillIcon:"errorItemPrimary",iconFillIcon:"errorItemPrimary",loaderAppearance:"errorPrimary"},infoMutedPrimary:{fill:"infoTertiary",fillHover:"infoHoverTertiary",labelTextColor:"infoTextSecondary",labelTextColorHover:"infoTextSecondary",borderColor:"infoBorderSecondary",iconAfterFillIcon:"infoItemSecondary",iconBeforeFillIcon:"infoItemSecondary",iconFillIcon:"infoItemSecondary",loaderAppearance:"infoTertiary"},infoPrimary:{fill:"infoPrimary",fillHover:"infoHoverPrimary",labelTextColor:"infoTextPrimary",labelTextColorHover:"infoTextPrimary",borderColor:"infoBorderPrimary",iconAfterFillIcon:"infoItemPrimary",iconBeforeFillIcon:"infoItemPrimary",iconFillIcon:"infoItemPrimary",loaderAppearance:"infoPrimary"},infoSecondary:{fill:"infoPrimary",fillHover:"infoHoverPrimary",labelTextColor:"infoTextSecondary",labelTextColorHover:"infoTextSecondary",borderColor:"infoBorderPrimary",iconAfterFillIcon:"infoItemPrimary",iconBeforeFillIcon:"infoItemPrimary",iconFillIcon:"infoItemPrimary",loaderAppearance:"infoPrimary"},specialMutedPrimary:{fill:"specialTertiary",fillHover:"specialHoverPrimary",labelTextColor:"specialTextSecondary",borderColor:"specialBorderTertiary",iconAfterFillIcon:"specialItemSecondary",iconBeforeFillIcon:"specialItemSecondary",iconFillIcon:"specialItemSecondary",loaderAppearance:"specialTertiary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",labelTextColor:"specialTextPrimary",iconAfterFillIcon:"specialItemPrimary",iconBeforeFillIcon:"specialItemPrimary",iconFillIcon:"specialItemPrimary",loaderAppearance:"specialPrimary"},extraMutedPrimary:{fill:"extraTertiary",fillHover:"extraHoverPrimary",labelTextColor:"extraTextQuaternary",borderColor:"extraBorderSecondary",iconAfterFillIcon:"extraItemQuaternary",iconBeforeFillIcon:"extraItemQuaternary",iconFillIcon:"extraItemQuaternary",loaderAppearance:"extraPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",labelTextColor:"extraTextPrimary",iconAfterFillIcon:"extraItemPrimary",iconBeforeFillIcon:"extraItemPrimary",iconFillIcon:"extraItemPrimary",loaderAppearance:"extraPrimary"},successMutedPrimary:{fill:"successTertiary",fillHover:"successHoverPrimary",labelTextColor:"successTextQuaternary",labelTextColorHover:"successTextQuaternary",borderColor:"successBorderQuaternary",iconAfterFillIcon:"successItemQuaternary",iconBeforeFillIcon:"successItemQuaternary",iconFillIcon:"successItemQuaternary",loaderAppearance:"successTertiary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",labelTextColor:"successTextPrimary",labelTextColorHover:"successTextPrimary",iconAfterFillIcon:"successItemPrimary",iconBeforeFillIcon:"successItemPrimary",iconFillIcon:"successItemPrimary",loaderAppearance:"successPrimary"},surfaceMutedPrimary:{fill:"surfaceTertiary",fillHover:"surfaceTertiary",labelTextColor:"surfaceTextQuaternary",borderColor:"surfaceBorderQuaternary",iconAfterFillIcon:"surfaceItemQuaternary",iconBeforeFillIcon:"surfaceItemQuaternary",iconFillIcon:"surfaceItemQuaternary",loaderAppearance:"surfaceTertiary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceSecondary",labelTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary",iconFillIcon:"surfaceItemPrimary",loaderAppearance:"surfacePrimary"},surfaceQuaternary:{fill:"surfaceTertiary",fillHover:"surfaceTertiary",labelTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary",iconFillIcon:"surfaceItemPrimary",loaderAppearance:"surfacePrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceTertiary",labelTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary",iconFillIcon:"surfaceItemPrimary",loaderAppearance:"surfacePrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceSecondary",labelTextColor:"surfaceTextPrimary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary",iconFillIcon:"surfaceItemPrimary",loaderAppearance:"surfacePrimary"},warningMutedPrimary:{fill:"warningTertiary",fillHover:"warningHoverPrimary",labelTextColor:"warningTextSecondary",labelTextColorHover:"warningTextPrimary",borderColor:"warningBorderPrimary",iconAfterFillIcon:"warningItemSecondary",iconBeforeFillIcon:"warningItemSecondary",iconFillIcon:"warningItemSecondary",loaderAppearance:"warningTertiary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",labelTextColor:"warningTextPrimary",labelTextColorHover:"warningTextPrimary",iconAfterFillIcon:"warningItemPrimary",iconBeforeFillIcon:"warningItemPrimary",iconFillIcon:"warningItemPrimary",loaderAppearance:"warningPrimary"}},p={appearance:d},u=React.forwardRef(function(a,d){const{appearance:u,className:I,dataTestId:P,dataTour:T$1,label:x,Badge:b,href:S,htmlType:A="button",link:z,rel:F,target:C,tooltip:_,before:v,after:g,isDisabled:H,isHolding:B,isLoading:h=false,onClick:Q,onHoldComplete:w,onMouseDown:L,children:M}=a,$=e$1(u,p,H),N$1=p$2(a,$),{fillClass:k,fillHoverClass:X,labelTextColor:W,labelTextColorHover:D,labelTextSize:j,labelTextTruncate:E,labelTextWeight:G,labelTextWidth:R,labelTextWrap:U,borderColorClass:q,borderTypeClass:J,borderWidthClass:K,elevationClass:O,icon:V,iconAfter:Y,iconAfterAppearance:Z,iconAfterAppearanceSize:ee,iconAfterFill:re,iconAfterFillIcon:ae,iconAfterFillSize:oe,iconAfterShape:ie,iconAfterSize:le,iconAfterSrc:ne,iconAppearance:ce,iconAppearanceSize:te,iconBefore:se,iconBeforeAppearance:me,iconBeforeAppearanceSize:fe,iconBeforeFill:ye,iconBeforeFillIcon:de,iconBeforeFillSize:pe,iconBeforeShape:ue,iconBeforeSize:Ie,iconBeforeSrc:Pe,iconFill:Te,iconFillIcon:xe,iconFillSize:be,iconShape:Se,iconSize:Ae,iconSrc:ze,loaderAppearance:Fe,loaderAppearanceSize:Ce,loaderFill:_e,loaderItemFill:ve,loaderSize:ge,loaderType:He="dot",shapeClass:Be,shapeStrengthClass:he,sizeClass:Qe,widthClass:we,zeroGap:Le,zeroPadding:Me,isSkeleton:$e}=N$1,{label:Ne,styles:ke}=l(a),{holdState:Xe,onHoldEnd:We,onHoldStart:De}=u$2({holdDurationMs:500,isHolding:B,onHoldComplete:w}),je=g||v||V||Y||ne||se||Pe||ze;return jsxRuntimeExports.jsx(T,{className:clsx(I,"button",x&&je?"button_type_default":x?"button_type_label":je?"button_type_icon":"",K&&`border-width_${K}`,q&&`border-color_${q}`,J&&`border_type_${J}`,k&&`fill_${k}`,X&&!H&&`fill_hover_${X}`,Be&&`shape_${Be}`,he&&`shape-strength_${he}`,Qe&&`button_size_${Qe}`,we&&`button_width_${we}`,O&&`elevation_${O}`,Q&&"cursor_type_pointer",H&&"button_state_disabled cursor_type_default",b&&"button_type_badge",Me&&"button_reset-padding",Le&&"button_reset-gap",h&&"button_state_loading",$e&&"skeleton",B&&"button_holding",Xe&&`button_state_${Xe}`),type:A,title:_,"data-testid":P&&`${P}-button`,"data-tour":T$1,disabled:H,href:z||S,LinkComponent:"button",rel:F,style:ke,target:C,onClick:Q,onMouseDown:L,onPointerCancel:We,onPointerDown:De,onPointerLeave:We,onPointerUp:We,children:jsxRuntimeExports.jsxs("div",{className:"button__wrapper",ref:d,children:[B&&jsxRuntimeExports.jsx("div",{className:clsx("button__indication",`button__indication_${Xe}`),children:jsxRuntimeExports.jsx("div",{className:"button__indication-item",children:" "})}),h&&jsxRuntimeExports.jsx(m,{appearance:r(Fe,Ce),className:clsx(I,"button__loader"),type:He,size:ge,fill:_e,itemFill:ve}),v,(se||Pe)&&jsxRuntimeExports.jsx(N,{appearance:r(me,fe),className:"button__icon_before",fill:ye,fillSize:pe,iconFill:de,iconSize:Ie,imageSrc:Pe,shape:ue,SvgImage:se}),(V||ze)&&jsxRuntimeExports.jsx(N,{appearance:r(ce,te),className:"button__icon",fill:Te,fillSize:be,iconFill:xe,iconSize:Ae,imageSrc:ze,shape:Se,SvgImage:V}),(M||x)&&jsxRuntimeExports.jsx(_$1,{className:"button__label",width:R,size:j,textColor:W,textColorHover:D,textTruncate:E,textWeight:G,textWrap:U,style:Ne,children:M||x}),(Y||ne)&&jsxRuntimeExports.jsx(N,{appearance:r(Z,ee),className:"button__icon_after",fill:re,fillSize:oe,iconFill:ae,iconSize:le,imageSrc:ne,shape:ie,SvgImage:Y}),b,g]})})});
|
|
7890
|
+
const I="holding",P$1="idle";const T={sizeXXL:{size:"xxl",labelTextSize:"xl",iconAfterAppearanceSize:"size24_24",iconBeforeAppearanceSize:"size24_24",loaderAppearanceSize:"sizeL"},sizeXL:{size:"xl",labelTextSize:"l",iconAfterAppearanceSize:"size24_24",iconBeforeAppearanceSize:"size24_24",loaderAppearanceSize:"sizeL"},sizeL:{size:"l",labelTextSize:"l",iconAfterAppearanceSize:"size24_24",iconBeforeAppearanceSize:"size24_24",loaderAppearanceSize:"sizeL"},sizeM:{size:"m",labelTextSize:"m",iconAfterAppearanceSize:"size24_24",iconBeforeAppearanceSize:"size24_24",loaderAppearanceSize:"sizeL"},sizeS:{size:"s",labelTextSize:"s",iconAfterAppearanceSize:"size20_20",iconBeforeAppearanceSize:"size20_20",loaderAppearanceSize:"sizeL"},sizeXS:{size:"xs",labelTextSize:"xs",iconAfterAppearanceSize:"size16_16",iconBeforeAppearanceSize:"size16_16",loaderAppearanceSize:"sizeL"},sizeXXS:{size:"xxs",labelTextSize:"xs",iconAfterAppearanceSize:"size14_14",iconBeforeAppearanceSize:"size14_14",loaderAppearanceSize:"sizeL"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentMutedPrimary:{fill:"accentTertiary",fillHover:"accentHoverTertiary",labelTextColor:"accentTextQuaternary",labelTextColorHover:"accentTextQuaternary",borderColor:"accentBorderSecondary",iconAfterFillIcon:"accentItemQuaternary",iconBeforeFillIcon:"accentItemQuaternary",iconFillIcon:"accentItemQuaternary",loaderAppearance:"accentTertiary"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextPrimary",labelTextColorHover:"accentTextPrimary",borderColor:"accentBorderPrimary",iconAfterFillIcon:"accentItemPrimary",iconBeforeFillIcon:"accentItemPrimary",iconFillIcon:"accentItemPrimary",loaderAppearance:"accentPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextSecondary",borderColor:"accentBorderPrimary",iconAfterFillIcon:"accentItemPrimary",iconBeforeFillIcon:"accentItemPrimary",iconFillIcon:"accentItemPrimary",loaderAppearance:"accentPrimary"},dangerMutedPrimary:{fill:"dangerTertiary",fillHover:"dangerHoverPrimary",labelTextColor:"dangerTextQuaternary",labelTextColorHover:"dangerTextQuaternary",borderColor:"dangerBorderSecondary",iconAfterFillIcon:"dangerItemQuaternary",iconBeforeFillIcon:"dangerItemQuaternary",iconFillIcon:"dangerItemQuaternary",loaderAppearance:"dangerTertiary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary",labelTextColor:"dangerTextPrimary",labelTextColorHover:"dangerTextPrimary",iconAfterFillIcon:"dangerItemPrimary",iconBeforeFillIcon:"dangerItemPrimary",iconFillIcon:"dangerItemPrimary",loaderAppearance:"dangerPrimary"},errorMutedPrimary:{fill:"errorTertiary",fillHover:"errorHoverPrimary",labelTextColor:"errorTextQuaternary",labelTextColorHover:"errorTextQuaternary",borderColor:"errorBorderSecondary",iconAfterFillIcon:"errorItemQuaternary",iconBeforeFillIcon:"errorItemQuaternary",iconFillIcon:"errorItemQuaternary",loaderAppearance:"errorTertiary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",labelTextColor:"errorTextPrimary",labelTextColorHover:"errorTextPrimary",iconAfterFillIcon:"errorItemPrimary",iconBeforeFillIcon:"errorItemPrimary",iconFillIcon:"errorItemPrimary",loaderAppearance:"errorPrimary"},infoMutedPrimary:{fill:"infoTertiary",fillHover:"infoHoverTertiary",labelTextColor:"infoTextSecondary",labelTextColorHover:"infoTextSecondary",borderColor:"infoBorderSecondary",iconAfterFillIcon:"infoItemSecondary",iconBeforeFillIcon:"infoItemSecondary",iconFillIcon:"infoItemSecondary",loaderAppearance:"infoTertiary"},infoPrimary:{fill:"infoPrimary",fillHover:"infoHoverPrimary",labelTextColor:"infoTextPrimary",labelTextColorHover:"infoTextPrimary",borderColor:"infoBorderPrimary",iconAfterFillIcon:"infoItemPrimary",iconBeforeFillIcon:"infoItemPrimary",iconFillIcon:"infoItemPrimary",loaderAppearance:"infoPrimary"},infoSecondary:{fill:"infoPrimary",fillHover:"infoHoverPrimary",labelTextColor:"infoTextSecondary",labelTextColorHover:"infoTextSecondary",borderColor:"infoBorderPrimary",iconAfterFillIcon:"infoItemPrimary",iconBeforeFillIcon:"infoItemPrimary",iconFillIcon:"infoItemPrimary",loaderAppearance:"infoPrimary"},specialMutedPrimary:{fill:"specialTertiary",fillHover:"specialHoverPrimary",labelTextColor:"specialTextSecondary",borderColor:"specialBorderTertiary",iconAfterFillIcon:"specialItemSecondary",iconBeforeFillIcon:"specialItemSecondary",iconFillIcon:"specialItemSecondary",loaderAppearance:"specialTertiary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",labelTextColor:"specialTextPrimary",iconAfterFillIcon:"specialItemPrimary",iconBeforeFillIcon:"specialItemPrimary",iconFillIcon:"specialItemPrimary",loaderAppearance:"specialPrimary"},extraMutedPrimary:{fill:"extraTertiary",fillHover:"extraHoverPrimary",labelTextColor:"extraTextQuaternary",borderColor:"extraBorderSecondary",iconAfterFillIcon:"extraItemQuaternary",iconBeforeFillIcon:"extraItemQuaternary",iconFillIcon:"extraItemQuaternary",loaderAppearance:"extraPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",labelTextColor:"extraTextPrimary",iconAfterFillIcon:"extraItemPrimary",iconBeforeFillIcon:"extraItemPrimary",iconFillIcon:"extraItemPrimary",loaderAppearance:"extraPrimary"},successMutedPrimary:{fill:"successTertiary",fillHover:"successHoverPrimary",labelTextColor:"successTextQuaternary",labelTextColorHover:"successTextQuaternary",borderColor:"successBorderQuaternary",iconAfterFillIcon:"successItemQuaternary",iconBeforeFillIcon:"successItemQuaternary",iconFillIcon:"successItemQuaternary",loaderAppearance:"successTertiary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",labelTextColor:"successTextPrimary",labelTextColorHover:"successTextPrimary",iconAfterFillIcon:"successItemPrimary",iconBeforeFillIcon:"successItemPrimary",iconFillIcon:"successItemPrimary",loaderAppearance:"successPrimary"},surfaceMutedPrimary:{fill:"surfaceTertiary",fillHover:"surfaceTertiary",labelTextColor:"surfaceTextQuaternary",borderColor:"surfaceBorderQuaternary",iconAfterFillIcon:"surfaceItemQuaternary",iconBeforeFillIcon:"surfaceItemQuaternary",iconFillIcon:"surfaceItemQuaternary",loaderAppearance:"surfaceTertiary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceSecondary",labelTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary",iconFillIcon:"surfaceItemPrimary",loaderAppearance:"surfacePrimary"},surfaceQuaternary:{fill:"surfaceTertiary",fillHover:"surfaceTertiary",labelTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary",iconFillIcon:"surfaceItemPrimary",loaderAppearance:"surfacePrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceTertiary",labelTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary",iconFillIcon:"surfaceItemPrimary",loaderAppearance:"surfacePrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceSecondary",labelTextColor:"surfaceTextPrimary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary",iconFillIcon:"surfaceItemPrimary",loaderAppearance:"surfacePrimary"},warningMutedPrimary:{fill:"warningTertiary",fillHover:"warningHoverPrimary",labelTextColor:"warningTextSecondary",labelTextColorHover:"warningTextPrimary",borderColor:"warningBorderPrimary",iconAfterFillIcon:"warningItemSecondary",iconBeforeFillIcon:"warningItemSecondary",iconFillIcon:"warningItemSecondary",loaderAppearance:"warningTertiary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",labelTextColor:"warningTextPrimary",labelTextColorHover:"warningTextPrimary",iconAfterFillIcon:"warningItemPrimary",iconBeforeFillIcon:"warningItemPrimary",iconFillIcon:"warningItemPrimary",loaderAppearance:"warningPrimary"}},x$1={appearance:T},b=React.forwardRef(function(a,T){const{appearance:b,className:S,dataTestId:A,dataTour:F,label:z,Badge:C,href:_,htmlType:g="button",link:v,rel:H,target:B,tooltip:h,before:Q,after:w,isDisabled:L,isHolding:M,isLoading:$=false,onClick:N$1,onHoldComplete:k,onMouseDown:X,children:D}=a,W=e$1(b,x$1,L),j=p(a,W),{fillClass:q,fillHoverClass:E,labelTextColor:G,labelTextColorHover:R,labelTextSize:U,labelTextTruncate:J,labelTextWeight:K,labelTextWidth:O,labelTextWrap:V,borderColorClass:Y,borderTypeClass:Z,borderWidthClass:ee,elevationClass:re,icon:ae,iconAfter:oe,iconAfterAppearance:ie,iconAfterAppearanceSize:le,iconAfterFill:ne,iconAfterFillIcon:te,iconAfterFillSize:ce,iconAfterShape:se,iconAfterSize:me,iconAfterSrc:fe,iconAppearance:ye,iconAppearanceSize:de,iconBefore:pe,iconBeforeAppearance:ue,iconBeforeAppearanceSize:Ie,iconBeforeFill:Pe,iconBeforeFillIcon:Te,iconBeforeFillSize:xe,iconBeforeShape:be,iconBeforeSize:Se,iconBeforeSrc:Ae,iconFill:Fe,iconFillIcon:ze,iconFillSize:Ce,iconShape:_e,iconSize:ge,iconSrc:ve,loaderAppearance:He,loaderAppearanceSize:Be,loaderFill:he,loaderItemFill:Qe,loaderSize:we,loaderType:Le="dot",shapeClass:Me,shapeStrengthClass:$e,sizeClass:Ne,widthClass:ke,zeroGap:Xe,zeroPadding:De,isSkeleton:We}=j,{label:je,styles:qe}=l(a),{holdState:Ee,onHoldEnd:Ge,onHoldStart:Re}=function(e){const{holdDurationMs:r=500,isHolding:a,onHoldComplete:t}=e,c=React.useRef(null),s=React.useRef(t),[m,f]=React.useState(P$1),y=React.useRef(0);s.current=t,React.useEffect(()=>(c.current=requestAnimationFrame(function e(){if(m===I&&1===y.current&&s.current&&s.current(),m===I&&y.current<1){const a=y.current,o=Math.min(a+16/r,1);y.current=o,c.current=requestAnimationFrame(e);}if(m===P$1&&y.current>0){const a=y.current,o=Math.max(a-16/r,0);y.current=o,c.current=requestAnimationFrame(e);}}),()=>{c.current&&cancelAnimationFrame(c.current);}),[m,r]);const d=React.useCallback(e=>{a&&("touch"!==e.pointerType&&0!==e.button||f(I));},[a]),p=React.useCallback(e=>{f(P$1);},[]);return {holdState:m,onHoldEnd:p,onHoldStart:d}}({holdDurationMs:500,isHolding:M,onHoldComplete:k}),Ue=w||Q||ae||oe||fe||pe||Ae||ve;return jsxRuntimeExports.jsx(T$1,{className:clsx(S,"button",z&&Ue?"button_type_default":z?"button_type_label":Ue?"button_type_icon":"",ee&&`border-width_${ee}`,Y&&`border-color_${Y}`,Z&&`border_type_${Z}`,q&&`fill_${q}`,E&&!L&&`fill_hover_${E}`,Me&&`shape_${Me}`,$e&&`shape-strength_${$e}`,Ne&&`button_size_${Ne}`,ke&&`button_width_${ke}`,re&&`elevation_${re}`,N$1&&"cursor_type_pointer",L&&"button_state_disabled cursor_type_default",C&&"button_type_badge",De&&"button_reset-padding",Xe&&"button_reset-gap",$&&"button_state_loading",We&&"skeleton",M&&"button_holding",Ee&&`button_state_${Ee}`),type:g,title:h,"data-testid":A&&`${A}-button`,"data-tour":F,disabled:L,href:v||_,LinkComponent:"button",rel:H,style:qe,target:B,onClick:N$1,onMouseDown:X,onPointerCancel:Ge,onPointerDown:Re,onPointerLeave:Ge,onPointerUp:Ge,children:jsxRuntimeExports.jsxs("div",{className:"button__wrapper",ref:T,children:[M&&jsxRuntimeExports.jsx("div",{className:clsx("button__indication",`button__indication_${Ee}`),children:jsxRuntimeExports.jsx("div",{className:"button__indication-item",children:" "})}),$&&jsxRuntimeExports.jsx(m,{appearance:r(He,Be),className:clsx(S,"button__loader"),type:Le,size:we,fill:he,itemFill:Qe}),Q,(pe||Ae)&&jsxRuntimeExports.jsx(N,{appearance:r(ue,Ie),className:"button__icon_before",fill:Pe,fillSize:xe,iconFill:Te,iconSize:Se,imageSrc:Ae,shape:be,SvgImage:pe}),(ae||ve)&&jsxRuntimeExports.jsx(N,{appearance:r(ye,de),className:"button__icon",fill:Fe,fillSize:Ce,iconFill:ze,iconSize:ge,imageSrc:ve,shape:_e,SvgImage:ae}),(D||z)&&jsxRuntimeExports.jsx(_$1,{className:"button__label",width:O,size:U,textColor:G,textColorHover:R,textTruncate:J,textWeight:K,textWrap:V,style:je,children:D||z}),(oe||fe)&&jsxRuntimeExports.jsx(N,{appearance:r(ie,le),className:"button__icon_after",fill:ne,fillSize:ce,iconFill:te,iconSize:me,imageSrc:fe,shape:se,SvgImage:oe}),C,w]})})});
|
|
7895
7891
|
|
|
7896
7892
|
var _;function nn(){return nn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r]);}return n},nn.apply(null,arguments)}const Vn={Action:{Close:function(e){return React__namespace.createElement("svg",nn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},e),_||(_=React__namespace.createElement("path",{d:"M19.722 4.703a.95.95 0 0 0-1.343 0L12 11.082l-6.379-6.38a.95.95 0 1 0-1.343 1.344l6.38 6.379-6.38 6.378a.95.95 0 1 0 1.343 1.343L12 13.767l6.379 6.38a.95.95 0 1 0 1.343-1.343l-6.38-6.38 6.38-6.378a.95.95 0 0 0 0-1.343"})))}}};
|
|
7897
7893
|
|
|
7898
|
-
const f={...{defaultPrimary:{fill:"surfacePrimary",fillHover:"surfacePrimary",titleTextColor:"surfaceTextPrimary",descTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary",buttonAppearance:"accentPrimary sizeXXL solid rounded",loaderAppearance:"accentTertiary sizeS ghost rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"surfacePrimary ghost circular"}},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},sizeM:{size:"m",titleTextSize:"xxl",descTextSize:"m",loaderAppearanceSize:"sizeS",closeIconAppearanceSize:"size24_24"},sizeS:{size:"m",titleTextSize:"xl",descTextSize:"m",loaderAppearanceSize:"sizeS",closeIconAppearanceSize:"size24_24"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},...{errorPrimary:{fill:"errorPrimary",fillHover:"errorPrimary",titleTextColor:"errorTextPrimary",descTextColor:"errorTextPrimary",borderColor:"errorBorderPrimary",textColor:"errorTextPrimary",buttonAppearance:"surfacePrimary sizeXXL solid rounded",loaderAppearance:"errorPrimary sizeS solid rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"surfacePrimary solid circular"}},...{infoPrimary:{fill:"infoPrimary",fillHover:"infoPrimary",titleTextColor:"infoTextPrimary",descTextColor:"infoTextPrimary",borderColor:"infoBorderPrimary",textColor:"infoTextPrimary",buttonAppearance:"surfacePrimary sizeXXL solid rounded",loaderAppearance:"infoPrimary sizeS solid rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"surfacePrimary solid circular"}},...{successPrimary:{fill:"successPrimary",fillHover:"successPrimary",titleTextColor:"successTextPrimary",descTextColor:"successTextPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary",buttonAppearance:"surfacePrimary sizeXXL solid rounded",loaderAppearance:"successPrimary sizeS solid rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"successPrimary ghost circular"}},...{warningPrimary:{fill:"warningPrimary",fillHover:"warningPrimary",titleTextColor:"warningTextPrimary",descTextColor:"warningTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"warningTextPrimary",buttonAppearance:"surfacePrimary sizeXXL solid rounded",loaderAppearance:"warningPrimary sizeS solid rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"surfacePrimary solid circular"}}},y={appearance:f};function x(p){const{id:m$1,appearance:u
|
|
7894
|
+
const f={...{defaultPrimary:{fill:"surfacePrimary",fillHover:"surfacePrimary",titleTextColor:"surfaceTextPrimary",descTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary",buttonAppearance:"accentPrimary sizeXXL solid rounded",loaderAppearance:"accentTertiary sizeS ghost rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"surfacePrimary ghost circular"}},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},sizeM:{size:"m",titleTextSize:"xxl",descTextSize:"m",loaderAppearanceSize:"sizeS",closeIconAppearanceSize:"size24_24"},sizeS:{size:"m",titleTextSize:"xl",descTextSize:"m",loaderAppearanceSize:"sizeS",closeIconAppearanceSize:"size24_24"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},...{errorPrimary:{fill:"errorPrimary",fillHover:"errorPrimary",titleTextColor:"errorTextPrimary",descTextColor:"errorTextPrimary",borderColor:"errorBorderPrimary",textColor:"errorTextPrimary",buttonAppearance:"surfacePrimary sizeXXL solid rounded",loaderAppearance:"errorPrimary sizeS solid rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"surfacePrimary solid circular"}},...{infoPrimary:{fill:"infoPrimary",fillHover:"infoPrimary",titleTextColor:"infoTextPrimary",descTextColor:"infoTextPrimary",borderColor:"infoBorderPrimary",textColor:"infoTextPrimary",buttonAppearance:"surfacePrimary sizeXXL solid rounded",loaderAppearance:"infoPrimary sizeS solid rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"surfacePrimary solid circular"}},...{successPrimary:{fill:"successPrimary",fillHover:"successPrimary",titleTextColor:"successTextPrimary",descTextColor:"successTextPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary",buttonAppearance:"surfacePrimary sizeXXL solid rounded",loaderAppearance:"successPrimary sizeS solid rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"successPrimary ghost circular"}},...{warningPrimary:{fill:"warningPrimary",fillHover:"warningPrimary",titleTextColor:"warningTextPrimary",descTextColor:"warningTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"warningTextPrimary",buttonAppearance:"surfacePrimary sizeXXL solid rounded",loaderAppearance:"warningPrimary sizeS solid rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"surfacePrimary solid circular"}}},y={appearance:f};function x(p$1){const{id:m$1,appearance:u,className:f,dataTestId:x,dataTour:P,type:C="float",title:_,text:T,before:h,after:z,isSkeleton:S,isLoading:A,onClickButton:I,onClickClose:g}=p$1,b$1=e$1(u,y),v=p(p$1,b$1),{fillClass:L,fillHoverClass:w,titleTextColor:N$1,titleTextSize:X,descTextColor:k,descTextSize:B,buttonAppearance:$,buttonLabel:H,elevationClass:j,loaderAppearance:F,loaderAppearanceSize:M,loaderFill:q,loaderItemFill:D,loaderSize:E,loaderType:G="dot",shapeClass:J,shapeStrengthClass:K,sizeClass:O,widthClass:Q,closeIcon:R,closeIconAppearance:U,closeIconAppearanceSize:V,closeIconSrc:W}=v,{styles:Y}=l(p$1);return jsxRuntimeExports.jsxs("div",{className:clsx("notification__item",`notification__item_${C}`,Q&&`width_${Q}`,j&&`elevation_${j}`,L&&`fill_${L}`,O&&`notification__item_size_${O}`,C&&`notification__item_type_${C}`,w&&`fill_${w}`,S&&"skeleton",J&&`shape_${J}`,K&&`shape-strength_${K}`),"data-testid":x,"data-tour":P,style:Y,children:[h,jsxRuntimeExports.jsxs("div",{className:clsx(f,"notification__item-wrapper"),children:[_&&jsxRuntimeExports.jsx(_$1,{className:"notification__item-title",size:X,textColor:N$1,children:_}),T&&jsxRuntimeExports.jsx(_$1,{className:"notification__item-text",size:B,textColor:k,children:T}),A&&jsxRuntimeExports.jsx(m,{appearance:r(F,M),className:clsx(f,"button__loader"),type:G,size:E,fill:q,itemFill:D}),g&&jsxRuntimeExports.jsx(N,{appearance:r(U,V),className:clsx("notification__item-close","cursor_type_pointer"),imageSrc:W,SvgImage:R,onClick:()=>g&&g(m$1)}),I&&H&&jsxRuntimeExports.jsx(b,{appearance:$,className:"notification__item-button",width:"fill",label:H,onClick:I})]}),z]})}function P(e){const i=f$2(),{hideNotifications:a}=g$1(),{className:t,dataTestId:s,dataTour:c}=e;return jsxRuntimeExports.jsx("div",{className:clsx("notification",t),"data-testid":s,"data-tour":c,children:jsxRuntimeExports.jsx("div",{className:"notification__wrapper",children:i.map(e=>jsxRuntimeExports.jsx(x,{id:e.id,appearance:e.appearance,type:e.type,title:e.title,status:e.status,text:e.text,buttonLabel:e.buttonLabel,after:e.after,closeIcon:e.closeIcon,closeIconSrc:e.closeIconSrc,isLoading:e.isLoading,onClickButton:e.onClickButton,onClickClose:a},e.id))})})}
|
|
7899
7895
|
|
|
7900
7896
|
exports.P = P;
|
|
7901
|
-
exports.d = d
|
|
7902
|
-
exports.m = m$
|
|
7897
|
+
exports.d = d;
|
|
7898
|
+
exports.m = m$1;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import React__default, { useMemo as useMemo$1, createContext, useState, useCallback, useEffect, useContext, useRef, memo, version, isValidElement, useLayoutEffect as useLayoutEffect$1, useReducer, cloneElement, useImperativeHandle } from 'react';
|
|
3
3
|
import camelCase from 'lodash/camelCase';
|
|
4
4
|
import r$3 from 'lodash/castArray';
|
|
5
|
-
import i$
|
|
5
|
+
import i$2 from 'lodash/upperFirst';
|
|
6
6
|
import { axiosInstanceITCase, formatURL } from '@itcase/common';
|
|
7
7
|
import r$4 from 'lodash/maxBy';
|
|
8
8
|
import { createPortal, flushSync } from 'react-dom';
|
|
@@ -1437,7 +1437,7 @@ function v4(options, buf, offset) {
|
|
|
1437
1437
|
return _v4(options);
|
|
1438
1438
|
}
|
|
1439
1439
|
|
|
1440
|
-
const l$
|
|
1440
|
+
const l$1={error:"error",info:"info",success:"success",warning:"warning"},u$2=createContext([]),d$1=createContext({hideNotifications:e=>{},showNotification:(e,o)=>{},notificationStatuses:l$1});function m$1(o){const{initialNotificationsList:s=[],isLogRequestsErrors:c,children:m}=o,[f,g]=useState(()=>(s||[]).map(e=>y$1(e,e.onClose))),p=useCallback(e=>{e&&g(o=>o.filter(o=>{const i=String(o.id)===String(e);return i&&(clearTimeout(o._closeTimeout),o.onClose&&o.onClose()),!i}));},[]),T=useCallback((e,o)=>{const i=y$1(e,o);return g(e=>{const o=e.slice(),t=o.findIndex(e=>String(e.id)===String(i.id));if(-1===t)return [...o,i];const r=o[t];return clearTimeout(r._closeTimeout),r._closeTimeout=void 0,o[t]=i,o}),i.closeByTime&&(i._closeTimeout=setTimeout(()=>p(i.id),i.closeByTime)),i},[]),S=useMemo$1(()=>({hideNotifications:p,notificationStatuses:l$1,showNotification:T}),[]);return useEffect(()=>{f.forEach(e=>{e.closeByTime&&setTimeout(()=>p(e.id),e.closeByTime);}),c&&(axiosInstanceITCase.responseErrorHandler.loggerManager={log:e=>{if(e.message){const o=["network"].includes(e.key)?e.key:void 0;T({id:o,title:e.message,status:"error",closeByTime:4e3});}}});},[]),jsxRuntimeExports.jsx(d$1.Provider,{value:S,children:jsxRuntimeExports.jsx(u$2.Provider,{value:f,children:m})})}function f$2(){return useContext(u$2)}function g$1(){return useContext(d$1)}const p$1={error:"errorPrimary sizeS solid rounded",info:"infoPrimary sizeS solid rounded",success:"successPrimary sizeS solid rounded",warning:"warningPrimary sizeS solid rounded"};function y$1(e,o){let i=v4().split("-")[0],t="",r="",n="",s="",a="float",u="",d=l$1.warning,m=4500,f=p$1[d],g=null,y=false,T="",S=()=>{};return "string"==typeof e?r=e:"object"==typeof e&&(i=String(e.id??i),t=e.title??t,r=e.text??r,T=e.closeIconAppearance??T,a=e.type??a,n=e.closeIcon??n,s=e.closeIconSrc??s,u=e.buttonLabel??u,S=e.onClickButton??S,d=e.status??d,m=e.closeByTime??m,y=e.isLoading??y,g=e.after??g,f=e.appearance??p$1[e.status]??f),{id:i,appearance:f,type:a,title:t,status:d,text:r,buttonLabel:u,after:g,closeByTime:m,closeIcon:n,closeIconAppearance:T,closeIconSrc:s,isLoading:y,onClickButton:S,onClose:o}}
|
|
1441
1441
|
|
|
1442
1442
|
var cssMediaquery = {};
|
|
1443
1443
|
|
|
@@ -3084,25 +3084,21 @@ const useMediaQuery = (settings, device, onChange) => {
|
|
|
3084
3084
|
return matches;
|
|
3085
3085
|
};
|
|
3086
3086
|
|
|
3087
|
-
var i$
|
|
3087
|
+
var i$1={"mobile-tiny":"15em","mobile-super-extra-large":"40em",tablet:"48em","desktop-small":"60em","desktop-huge":"160em"};const o$2="undefined"==typeof window;function s(s={}){const m=useMediaQuery({minWidth:i$1["mobile-tiny"],maxWidth:i$1.tablet})||o$2&&Boolean(s.isMobile);useMediaQuery({minWidth:i$1["mobile-super-extra-large"],maxWidth:i$1.tablet});const a=useMediaQuery({minWidth:i$1.tablet,maxWidth:i$1["desktop-small"]})||o$2&&Boolean(s.isTablet),l=useMediaQuery({minWidth:i$1["desktop-small"],maxWidth:i$1["desktop-super-huge"]})||o$2&&Boolean(s.isDesktop),n=useMediaQuery({minWidth:i$1["desktop-huge"]});return useMemo$1(()=>({isMobile:m,isMobileHuge:m,isTablet:a,isDesktop:l,isDesktopMega:n}),[m,a,l,n])}
|
|
3088
3088
|
|
|
3089
3089
|
const e=()=>{const e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",`${e}px`);};
|
|
3090
3090
|
|
|
3091
|
-
const a$
|
|
3091
|
+
const a$1=createContext({isMobile:false,isTablet:false,isDesktop:false,deviceCurrentMainType:"",deviceCurrentType:"",deviceTypesList:[]}),d=memo(function(r){const{userDeviceState:i={},children:o}=r,d=s(i),{isMobile:u,isTablet:l,isDesktop:m,...v}=d,f=(u?"mobile":l&&"tablet")||m&&"desktop"||"",[y,b]=useMemo$1(()=>{const e=Object.keys(d).map(e=>camelCase(e.replace("is","")));let r=Object.keys(v).find(e=>v[e]);return r||(r=f),r=camelCase(r.replace("is","")),[r||"_none_",e]},[d,f,v]),T=useMemo$1(()=>({...d,deviceCurrentMainType:f,deviceCurrentType:y,deviceTypesList:b}),[d,f,y,b]);return useEffect(()=>{e(),window.addEventListener("resize",e);},[]),jsxRuntimeExports.jsx(a$1.Provider,{value:T,children:o})});function u$1(){const e=useContext(a$1);if(!e)throw new Error("useUserDeviceContext is not defined");return e}
|
|
3092
3092
|
|
|
3093
|
-
const i
|
|
3093
|
+
const i=createContext({assetPrefix:void 0,ignorePathsList:void 0});
|
|
3094
3094
|
|
|
3095
|
-
var o$
|
|
3095
|
+
var o$1=["alignContent","alignItems","alignSelf","aspectRatio","border","borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","borderWidth","bottom","display","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","gap","rowGap","columnGap","columnWidth","height","justifyContent","left","margin","marginBottom","marginHorizontal","marginLeft","marginRight","marginTop","marginVertical","maxHeight","maxWidth","minHeight","minWidth","overflow","overflowY","overflowX","padding","paddingBottom","paddingEnd","paddingHorizontal","paddingLeft","paddingRight","paddingStart","paddingTop","paddingVertical","position","right","top",["width",{validate:o=>/\d+/.test(o)}],"zIndex","order","shadowColor","shadowOffset","shadowOpacity","shadowRadius","transform","background","backgroundColor","borderBottomColor","borderBottomEndRadius","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStartRadius","borderColor","borderCurve","borderEndColor","borderLeftColor","borderRadius","borderRightColor","borderStartColor","borderStyle","borderTopColor","borderTopEndRadius","borderTopLeftRadius","borderTopRightRadius","borderTopStartRadius","opacity","cursor","color","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","letterSpacing","lineHeight","textAlign","textDecorationColor","textDecorationLine","textDecorationStyle","textShadowColor","textShadowOffset","textShadowRadius","textTransform","verticalAlign","writingMode","whiteSpace","overlayColor","resizeMode","tintColor","objectFit","objectPosition","gridTemplateColumns","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplate","gridTemplateAreas","gridTemplateRows","gridColumn","gridColumnStart","gridColumnEnd","gridColumnGap","gridRow","gridRowStart","gridRowEnd","gridRowGap","backdropFilter","transition","transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","pointerEvents"];
|
|
3096
3096
|
|
|
3097
3097
|
const r$1=r=>Array.isArray(r)?r[0]:r;
|
|
3098
3098
|
|
|
3099
|
-
function p
|
|
3099
|
+
function p(p,a){const{deviceCurrentMainType:m}=u$1();return useMemo$1(()=>new Proxy({getProp(t){const e=`${t}${i$2(m)}`,r=p[e],o=p[t],i=a?.[e],n=a?.[t];return r||o||i||n},getClassName(t,s){const{prefix:o="",replace:p=[/([A-Z])/g,"-$1"]}=s||{},a=this.getProp(String(t));if(o$1.map(t=>r$1(t)).includes(String(t))&&("number"==typeof a||"string"==typeof a&&!isNaN(parseFloat(a))))return "";if(a){let t=String(a);if(t.includes(".")||(t=camelCase(t)),p){const e=r$3(p);t=t.replace(e[0],e[1]||"");}return `${o}${t}`.toLowerCase()}return ""}},{get(t,e,r,...s){if("string"==typeof e){if(!Reflect.has(t,e)){if(e.endsWith("Class")){const r=e.substring(0,e.lastIndexOf("Class"));return t.getClassName(r)}return t.getProp(e)}return Reflect.get(t,e,r,...s)}return e}}),[p,a,m])}
|
|
3100
3100
|
|
|
3101
|
-
function s(e,t){return function(){return e.apply(t,arguments)}}const{toString:i}=Object.prototype,{getPrototypeOf:a$1}=Object,{iterator:c$2,toStringTag:l$1}=Symbol,u$3=(f$2=Object.create(null),e=>{const t=i.call(e);return f$2[t]||(f$2[t]=t.slice(8,-1).toLowerCase())});var f$2;const d$1=e=>(e=e.toLowerCase(),t=>u$3(t)===e),p$1=e=>t=>typeof t===e,{isArray:h}=Array,m$1=p$1("undefined");function b$1(e){return null!==e&&!m$1(e)&&null!==e.constructor&&!m$1(e.constructor)&&w$1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const y$1=d$1("ArrayBuffer");const g$1=p$1("string"),w$1=p$1("function"),R=p$1("number"),E=e=>null!==e&&"object"==typeof e,O=e=>{if("object"!==u$3(e))return false;const t=a$1(e);return !(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||l$1 in e||c$2 in e)},S=d$1("Date"),v=d$1("File"),T$1=d$1("Blob"),A$1=d$1("FileList");const U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},N$1=void 0!==U.FormData?U.FormData:void 0,_$2=d$1("URLSearchParams"),[C$1,j,x$1,P$2]=["ReadableStream","Request","Response","Headers"].map(d$1);function L(e,t,{allOwnKeys:n=false}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),h(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else {if(b$1(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e);}}function F$1(e,t){if(b$1(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,B$1=e=>!m$1(e)&&e!==D;const k$1=(I$1="undefined"!=typeof Uint8Array&&a$1(Uint8Array),e=>I$1&&e instanceof I$1);var I$1;const q=d$1("HTMLFormElement"),M=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),z$1=d$1("RegExp"),H$1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};L(n,(n,o)=>{let s;false!==(s=t(n,o,e))&&(r[o]=s||n);}),Object.defineProperties(e,r);};const J=d$1("AsyncFunction"),W=($$1="function"==typeof setImmediate,V=w$1(D.postMessage),$$1?setImmediate:V?(K=`axios@${Math.random()}`,X=[],D.addEventListener("message",({source:e,data:t})=>{e===D&&t===K&&X.length&&X.shift()();},false),e=>{X.push(e),D.postMessage(K,"*");}):e=>setTimeout(e));var $$1,V,K,X;const G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(D):"undefined"!=typeof process&&process.nextTick||W;var Q$1={isArray:h,isArrayBuffer:y$1,isBuffer:b$1,isFormData:e=>{let t;return e&&(N$1&&e instanceof N$1||w$1(e.append)&&("formdata"===(t=u$3(e))||"object"===t&&w$1(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&y$1(e.buffer),t},isString:g$1,isNumber:R,isBoolean:e=>true===e||false===e,isObject:E,isPlainObject:O,isEmptyObject:e=>{if(!E(e)||b$1(e))return false;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return false}},isReadableStream:C$1,isRequest:j,isResponse:x$1,isHeaders:P$2,isUndefined:m$1,isDate:S,isFile:v,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:T$1,isRegExp:z$1,isFunction:w$1,isStream:e=>E(e)&&w$1(e.pipe),isURLSearchParams:_$2,isTypedArray:k$1,isFileList:A$1,forEach:L,merge:function e(){const{caseless:t,skipUndefined:n}=B$1(this)&&this||{},r={},o=(o,s)=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;const i=t&&F$1(r,s)||s;O(r[i])&&O(o)?r[i]=e(r[i],o):O(o)?r[i]=e({},o):h(o)?r[i]=o.slice():n&&m$1(o)||(r[i]=o);};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&L(arguments[e],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(L(t,(t,r)=>{n&&w$1(t)?Object.defineProperty(e,r,{value:s(t,n),writable:true,enumerable:true,configurable:true}):Object.defineProperty(e,r,{value:t,writable:true,enumerable:true,configurable:true});},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:true,enumerable:false,configurable:true}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n);},toFlatObject:(e,t,n,r)=>{let o,s,i;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],r&&!r(i,e,t)||c[i]||(t[i]=e[i],c[i]=true);e=false!==n&&a$1(e);}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:u$3,kindOfTest:d$1,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(h(e))return e;let t=e.length;if(!R(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[c$2]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1]);}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:q,hasOwnProperty:M,hasOwnProp:M,reduceDescriptors:H$1,freezeMethods:e=>{H$1(e,(t,n)=>{if(w$1(e)&&-1!==["arguments","caller","callee"].indexOf(n))return false;const r=e[n];w$1(r)&&(t.enumerable=false,"writable"in t?t.writable=false:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}));});},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=true;});};return h(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:F$1,global:D,isContextDefined:B$1,isSpecCompliantForm:function(e){return !!(e&&w$1(e.append)&&"FormData"===e[l$1]&&e[c$2])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(E(e)){if(t.indexOf(e)>=0)return;if(b$1(e))return e;if(!("toJSON"in e)){t[r]=e;const o=h(e)?[]:{};return L(e,(e,t)=>{const s=n(e,r+1);!m$1(s)&&(o[t]=s);}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:J,isThenable:e=>e&&(E(e)||w$1(e))&&w$1(e.then)&&w$1(e.catch),setImmediate:W,asap:G,isIterable:e=>null!=e&&w$1(e[c$2])};let Y=class e extends Error{static from(t,n,r,o,s,i){const a=new e(t.message,n||t.code,r,o,s);return a.cause=t,a.name=t.name,null!=t.status&&null==a.status&&(a.status=t.status),i&&Object.assign(a,i),a}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:true,writable:true,configurable:true}),this.name="AxiosError",this.isAxiosError=true,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status);}toJSON(){return {message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q$1.toJSONObject(this.config),code:this.code,status:this.status}}};Y.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Y.ERR_BAD_OPTION="ERR_BAD_OPTION",Y.ECONNABORTED="ECONNABORTED",Y.ETIMEDOUT="ETIMEDOUT",Y.ERR_NETWORK="ERR_NETWORK",Y.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Y.ERR_DEPRECATED="ERR_DEPRECATED",Y.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Y.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Y.ERR_CANCELED="ERR_CANCELED",Y.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Y.ERR_INVALID_URL="ERR_INVALID_URL";function Z(e){return Q$1.isPlainObject(e)||Q$1.isArray(e)}function ee(e){return Q$1.endsWith(e,"[]")?e.slice(0,-2):e}function te(e,t,n){return e?e.concat(t).map(function(e,t){return e=ee(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ne=Q$1.toFlatObject(Q$1,{},null,function(e){return /^is[A-Z]/.test(e)});function re(e,t,n){if(!Q$1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Q$1.toFlatObject(n,{metaTokens:true,dots:false,indexes:false},false,function(e,t){return !Q$1.isUndefined(t[e])})).metaTokens,o=n.visitor||l,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Q$1.isSpecCompliantForm(t);if(!Q$1.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return "";if(Q$1.isDate(e))return e.toISOString();if(Q$1.isBoolean(e))return e.toString();if(!a&&Q$1.isBlob(e))throw new Y("Blob is not supported. Use a Buffer instead.");return Q$1.isArrayBuffer(e)||Q$1.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let a=e;if(Q$1.isReactNative(t)&&Q$1.isReactNativeBlob(e))return t.append(te(o,n,s),c(e)),false;if(e&&!o&&"object"==typeof e)if(Q$1.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Q$1.isArray(e)&&function(e){return Q$1.isArray(e)&&!e.some(Z)}(e)||(Q$1.isFileList(e)||Q$1.endsWith(n,"[]"))&&(a=Q$1.toArray(e)))return n=ee(n),a.forEach(function(e,r){!Q$1.isUndefined(e)&&null!==e&&t.append(true===i?te([n],r,s):null===i?n:n+"[]",c(e));}),false;return !!Z(e)||(t.append(te(o,n,s),c(e)),false)}const u=[],f=Object.assign(ne,{defaultVisitor:l,convertValue:c,isVisitable:Z});if(!Q$1.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Q$1.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Q$1.forEach(n,function(n,s){ true===(!(Q$1.isUndefined(n)||null===n)&&o.call(t,n,Q$1.isString(s)?s.trim():s,r,f))&&e(n,r?r.concat(s):[s]);}),u.pop();}}(e),t}function oe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function se(e,t){this._pairs=[],e&&re(e,this,t);}const ie=se.prototype;function ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ce(e,t,n){if(!t)return e;const r=n&&n.encode||ae,o=Q$1.isFunction(n)?{serialize:n}:n,s=o&&o.serialize;let i;if(i=s?s(t,o):Q$1.isURLSearchParams(t)?t.toString():new se(t,o).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i;}return e}ie.append=function(e,t){this._pairs.push([e,t]);},ie.toString=function(e){const t=e?function(t){return e.call(this,t,oe)}:oe;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class le{constructor(){this.handlers=[];}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null);}clear(){this.handlers&&(this.handlers=[]);}forEach(e){Q$1.forEach(this.handlers,function(t){null!==t&&e(t);});}}var ue={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false,legacyInterceptorReqResOrdering:true},fe={isBrowser:true,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:se,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const de="undefined"!=typeof window&&"undefined"!=typeof document,pe="object"==typeof navigator&&navigator||void 0,he=de&&(!pe||["ReactNative","NativeScript","NS"].indexOf(pe.product)<0),me="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,be=de&&window.location.href||"http://localhost";var ye={...Object.freeze({__proto__:null,hasBrowserEnv:de,hasStandardBrowserEnv:he,hasStandardBrowserWebWorkerEnv:me,navigator:pe,origin:be}),...fe};function ge(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return true;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&Q$1.isArray(r)?r.length:s,a)return Q$1.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i;r[s]&&Q$1.isObject(r[s])||(r[s]=[]);return t(e,n,r[s],o)&&Q$1.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i}if(Q$1.isFormData(e)&&Q$1.isFunction(e.entries)){const n={};return Q$1.forEachEntry(e,(e,r)=>{t(function(e){return Q$1.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0);}),n}return null}const we={transitional:ue,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Q$1.isObject(e);o&&Q$1.isHTMLForm(e)&&(e=new FormData(e));if(Q$1.isFormData(e))return r?JSON.stringify(ge(e)):e;if(Q$1.isArrayBuffer(e)||Q$1.isBuffer(e)||Q$1.isStream(e)||Q$1.isFile(e)||Q$1.isBlob(e)||Q$1.isReadableStream(e))return e;if(Q$1.isArrayBufferView(e))return e.buffer;if(Q$1.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",false),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return re(e,new ye.classes.URLSearchParams,{visitor:function(e,t,n,r){return ye.isNode&&Q$1.isBuffer(e)?(this.append(t,e.toString("base64")),false):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=Q$1.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return re(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",false),function(e,t,n){if(Q$1.isString(e))try{return (t||JSON.parse)(e),Q$1.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return (n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||we.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Q$1.isResponse(e)||Q$1.isReadableStream(e))return e;if(e&&Q$1.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw Y.from(e,Y.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ye.classes.FormData,Blob:ye.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q$1.forEach(["delete","get","head","post","put","patch"],e=>{we.headers[e]={};});const Re=Q$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Ee=Symbol("internals");function Oe(e){return e&&String(e).trim().toLowerCase()}function Se(e){return false===e||null==e?e:Q$1.isArray(e)?e.map(Se):String(e)}function ve(e,t,n,r,o){return Q$1.isFunction(r)?r.call(this,t,n):(o&&(t=n),Q$1.isString(t)?Q$1.isString(r)?-1!==t.indexOf(r):Q$1.isRegExp(r)?r.test(t):void 0:void 0)}let Te=class{constructor(e){e&&this.set(e);}set(e,t,n){const r=this;function o(e,t,n){const o=Oe(t);if(!o)throw new Error("header name must be a non-empty string");const s=Q$1.findKey(r,o);(!s||void 0===r[s]||true===n||void 0===n&&false!==r[s])&&(r[s||t]=Se(e));}const s=(e,t)=>Q$1.forEach(e,(e,n)=>o(e,n,t));if(Q$1.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(Q$1.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Re[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r);}),t})(e),t);else if(Q$1.isObject(e)&&Q$1.isIterable(e)){let n,r,o={};for(const t of e){if(!Q$1.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?Q$1.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1];}s(o,t);}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Oe(e)){const n=Q$1.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(true===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Q$1.isFunction(t))return t.call(this,e,n);if(Q$1.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Oe(e)){const n=Q$1.findKey(this,e);return !(!n||void 0===this[n]||t&&!ve(0,this[n],n,t))}return false}delete(e,t){const n=this;let r=false;function o(e){if(e=Oe(e)){const o=Q$1.findKey(n,e);!o||t&&!ve(0,n[o],o,t)||(delete n[o],r=true);}}return Q$1.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=false;for(;n--;){const o=t[n];e&&!ve(0,this[o],o,e,true)||(delete this[o],r=true);}return r}normalize(e){const t=this,n={};return Q$1.forEach(this,(r,o)=>{const s=Q$1.findKey(n,o);if(s)return t[s]=Se(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=Se(r),n[i]=true;}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Q$1.forEach(this,(n,r)=>{null!=n&&false!==n&&(t[r]=e&&Q$1.isArray(n)?n.join(", "):n);}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return "AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Ee]=this[Ee]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Oe(e);t[r]||(!function(e,t){const n=Q$1.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:true});});}(n,e),t[r]=true);}return Q$1.isArray(e)?e.forEach(r):r(e),this}};function Ae(e,t){const n=this||we,r=t||n,o=Te.from(r.headers);let s=r.data;return Q$1.forEach(e,function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0);}),o.normalize(),s}function Ue(e){return !(!e||!e.__CANCEL__)}Te.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q$1.reduceDescriptors(Te.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return {get:()=>e,set(e){this[n]=e;}}}),Q$1.freezeMethods(Te);let Ne=class extends Y{constructor(e,t,n){super(null==e?"canceled":e,Y.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=true;}};function _e(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Y("Request failed with status code "+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n);}const Ce=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[i];o||(o=c),n[s]=a,r[s]=c;let u=i,f=0;for(;u!==s;)f+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e(...t);};return [(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n);},s-a)));},()=>n&&i(n)]}(n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a);r=s;e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:true});},n)},je=(e,t)=>{const n=null!=e;return [r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},xe=e=>(...t)=>Q$1.asap(()=>e(...t));var Pe=ye.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ye.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ye.origin),ye.navigator&&/(msie|trident)/i.test(ye.navigator.userAgent)):()=>true,Le=ye.hasStandardBrowserEnv?{write(e,t,n,r,o,s,i){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];Q$1.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),Q$1.isString(r)&&a.push(`path=${r}`),Q$1.isString(o)&&a.push(`domain=${o}`),true===s&&a.push("secure"),Q$1.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ");},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/");}}:{write(){},read:()=>null,remove(){}};function Fe(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const De=e=>e instanceof Te?{...e}:e;function Be(e,t){t=t||{};const n={};function r(e,t,n,r){return Q$1.isPlainObject(e)&&Q$1.isPlainObject(t)?Q$1.merge.call({caseless:r},e,t):Q$1.isPlainObject(t)?Q$1.merge({},t):Q$1.isArray(t)?t.slice():t}function o(e,t,n,o){return Q$1.isUndefined(t)?Q$1.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function s(e,t){if(!Q$1.isUndefined(t))return r(void 0,t)}function i(e,t){return Q$1.isUndefined(t)?Q$1.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t,n)=>o(De(e),De(t),0,true)};return Q$1.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const s=Q$1.hasOwnProp(c,r)?c[r]:o,i=s(e[r],t[r],r);Q$1.isUndefined(i)&&s!==a||(n[r]=i);}),n}var ke=e=>{const t=Be({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=Te.from(i),t.url=ce(Fe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),Q$1.isFormData(n))if(ye.hasStandardBrowserEnv||ye.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(Q$1.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n);});}if(ye.hasStandardBrowserEnv&&(r&&Q$1.isFunction(r)&&(r=r(t)),r||false!==r&&Pe(t.url))){const e=o&&s&&Le.read(s);e&&i.set(o,e);}return t};var Ie="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=ke(e);let o=r.data;const s=Te.from(r.headers).normalize();let i,a,c,l,u,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i);}let m=new XMLHttpRequest;function b(){if(!m)return;const r=Te.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());_e(function(e){t(e),h();},function(e){n(e),h();},{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null;}m.open(r.method.toUpperCase(),r.url,true),m.timeout=r.timeout,"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(b);},m.onabort=function(){m&&(n(new Y("Request aborted",Y.ECONNABORTED,e,m)),m=null);},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new Y(r,Y.ERR_NETWORK,e,m);o.event=t||null,n(o),m=null;},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ue;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Y(t,o.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,m)),m=null;},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&Q$1.forEach(s.toJSON(),function(e,t){m.setRequestHeader(t,e);}),Q$1.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),p&&([c,u]=Ce(p,true),m.addEventListener("progress",c)),d&&m.upload&&([a,l]=Ce(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Ne(null,e,m):t),m.abort(),m=null);},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===ye.protocols.indexOf(y)?n(new Y("Unsupported protocol "+y+":",Y.ERR_BAD_REQUEST,e)):m.send(o||null);})};const qe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=true,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Y?t:new Ne(t instanceof Error?t.message:t));}};let s=t&&setTimeout(()=>{s=null,o(new Y(`timeout of ${t}ms exceeded`,Y.ETIMEDOUT));},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o);}),e=null);};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=()=>Q$1.asap(i),a}},Me=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r;},ze=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n;}}finally{await t.cancel();}},He=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of ze(e))yield*Me(n,t);}(e,t);let s,i=0,a=e=>{s||(s=true,r&&r(e));};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e);}e.enqueue(new Uint8Array(r));}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:Je}=Q$1,We=(({Request:e,Response:t})=>({Request:e,Response:t}))(Q$1.global),{ReadableStream:$e,TextEncoder:Ve}=Q$1.global,Ke=(e,...t)=>{try{return !!e(...t)}catch(e){return false}},Xe=e=>{e=Q$1.merge.call({skipUndefined:true},We,e);const{fetch:t,Request:n,Response:r}=e,o=t?Je(t):"function"==typeof fetch,s=Je(n),i=Je(r);if(!o)return false;const a=o&&Je($e),c=o&&("function"==typeof Ve?(l=new Ve,e=>l.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var l;const u=s&&a&&Ke(()=>{let e=!1;const t=new n(ye.origin,{body:new $e,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),f=i&&a&&Ke(()=>Q$1.isReadableStream(new r("").body)),d={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Y(`Response type '${e}' is not supported`,Y.ERR_NOT_SUPPORT,n)});});const p=async(e,t)=>{const r=Q$1.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(Q$1.isBlob(e))return e.size;if(Q$1.isSpecCompliantForm(e)){const t=new n(ye.origin,{method:"POST",body:e});return (await t.arrayBuffer()).byteLength}return Q$1.isArrayBufferView(e)||Q$1.isArrayBuffer(e)?e.byteLength:(Q$1.isURLSearchParams(e)&&(e+=""),Q$1.isString(e)?(await c(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:i,data:a,signal:c,cancelToken:l,timeout:h,onDownloadProgress:m,onUploadProgress:b,responseType:y,headers:g,withCredentials:w="same-origin",fetchOptions:R}=ke(e),E=t||fetch;y=y?(y+"").toLowerCase():"text";let O=qe([c,l&&l.toAbortSignal()],h),S=null;const v=O&&O.unsubscribe&&(()=>{O.unsubscribe();});let T;try{if(b&&u&&"get"!==i&&"head"!==i&&0!==(T=await p(g,a))){let e,t=new n(o,{method:"POST",body:a,duplex:"half"});if(Q$1.isFormData(a)&&(e=t.headers.get("content-type"))&&g.setContentType(e),t.body){const[e,n]=je(T,Ce(xe(b)));a=He(t.body,65536,e,n);}}Q$1.isString(w)||(w=w?"include":"omit");const t=s&&"credentials"in n.prototype,c={...R,signal:O,method:i.toUpperCase(),headers:g.normalize().toJSON(),body:a,duplex:"half",credentials:t?w:void 0};S=s&&new n(o,c);let l=await(s?E(S,R):E(o,c));const h=f&&("stream"===y||"response"===y);if(f&&(m||h&&v)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=l[t];});const t=Q$1.toFiniteNumber(l.headers.get("content-length")),[n,o]=m&&je(t,Ce(xe(m),!0))||[];l=new r(He(l.body,65536,n,()=>{o&&o(),v&&v();}),e);}y=y||"text";let A=await d[Q$1.findKey(d,y)||"text"](l,e);return !h&&v&&v(),await new Promise((t,n)=>{_e(t,n,{data:A,headers:Te.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:S});})}catch(t){if(v&&v(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Y("Network Error",Y.ERR_NETWORK,e,S,t&&t.response),{cause:t.cause||t});throw Y.from(t,t&&t.code,e,S,t&&t.response)}}},Ge=new Map,Qe=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let i,a,c=s.length,l=Ge;for(;c--;)i=s[c],a=l.get(i),void 0===a&&l.set(i,a=c?new Map:Xe(t)),l=a;return a};Qe();const Ye={http:null,xhr:Ie,fetch:{get:Qe}};Q$1.forEach(Ye,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t});}catch(e){}Object.defineProperty(e,"adapterName",{value:t});}});const Ze=e=>`- ${e}`,et=e=>Q$1.isFunction(e)||null===e||false===e;var tt={getAdapter:function(e,t){e=Q$1.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!et(r)&&(o=Ye[(n=String(r)).toLowerCase()],void 0===o))throw new Y(`Unknown adapter '${n}'`);if(o&&(Q$1.isFunction(o)||(o=o.get(t))))break;s[n||"#"+i]=o;}if(!o){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(false===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Ze).join("\n"):" "+Ze(e[0]):"as no adapter specified";throw new Y("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:Ye};function nt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ne(null,e)}function rt(e){nt(e),e.headers=Te.from(e.headers),e.data=Ae.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",false);return tt.getAdapter(e.adapter||we.adapter,e)(e).then(function(t){return nt(e),t.data=Ae.call(e,e.transformResponse,t),t.headers=Te.from(t.headers),t},function(t){return Ue(t)||(nt(e),t&&t.response&&(t.response.data=Ae.call(e,e.transformResponse,t.response),t.response.headers=Te.from(t.response.headers))),Promise.reject(t)})}const ot="1.13.6",st={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{st[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e};});const it={};st.transitional=function(e,t,n){function r(e,t){return "[Axios v"+ot+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return (n,o,s)=>{if(false===e)throw new Y(r(o," has been removed"+(t?" in "+t:"")),Y.ERR_DEPRECATED);return t&&!it[o]&&(it[o]=true,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}},st.spelling=function(e){return (t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),true)};var at={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(true!==n)throw new Y("option "+s+" must be "+n,Y.ERR_BAD_OPTION_VALUE);continue}if(true!==n)throw new Y("Unknown option "+s,Y.ERR_BAD_OPTION)}},validators:st};const ct=at.validators;let lt=class{constructor(e){this.defaults=e||{},this.interceptors={request:new le,response:new le};}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n;}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Be(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&at.assertOptions(n,{silentJSONParsing:ct.transitional(ct.boolean),forcedJSONParsing:ct.transitional(ct.boolean),clarifyTimeoutError:ct.transitional(ct.boolean),legacyInterceptorReqResOrdering:ct.transitional(ct.boolean)},false),null!=r&&(Q$1.isFunction(r)?t.paramsSerializer={serialize:r}:at.assertOptions(r,{encode:ct.function,serialize:ct.function},true)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=true),at.assertOptions(t,{baseUrl:ct.spelling("baseURL"),withXsrfToken:ct.spelling("withXSRFToken")},true),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&Q$1.merge(o.common,o[t.method]);o&&Q$1.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e];}),t.headers=Te.concat(s,o);const i=[];let a=true;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&false===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||ue;n&&n.legacyInterceptorReqResOrdering?i.unshift(e.fulfilled,e.rejected):i.push(e.fulfilled,e.rejected);});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected);});let u,f=0;if(!a){const e=[rt.bind(this),void 0];for(e.unshift(...i),e.push(...c),u=e.length,l=Promise.resolve(t);f<u;)l=l.then(e[f++],e[f++]);return l}u=i.length;let d=t;for(;f<u;){const e=i[f++],t=i[f++];try{d=e(d);}catch(e){t.call(this,e);break}}try{l=rt.call(this,d);}catch(e){return Promise.reject(e)}for(f=0,u=c.length;f<u;)l=l.then(c[f++],c[f++]);return l}getUri(e){return ce(Fe((e=Be(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Q$1.forEach(["delete","get","head","options"],function(e){lt.prototype[e]=function(t,n){return this.request(Be(n||{},{method:e,url:t,data:(n||{}).data}))};}),Q$1.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Be(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}lt.prototype[e]=t(),lt.prototype[e+"Form"]=t(true);});const ut={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ut).forEach(([e,t])=>{ut[t]=e;});const ft=function e(t){const n=new lt(t),r=s(lt.prototype.request,n);return Q$1.extend(r,lt.prototype,n,{allOwnKeys:true}),Q$1.extend(r,n,null,{allOwnKeys:true}),r.create=function(n){return e(Be(t,n))},r}(we);ft.Axios=lt,ft.CanceledError=Ne,ft.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e;});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null;}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e;}).then(e);return r.cancel=function(){n.unsubscribe(t);},r},e(function(e,r,o){n.reason||(n.reason=new Ne(e,r,o),t(n.reason));});}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e];}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1);}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t);};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return {token:new e(function(e){t=e;}),cancel:t}}},ft.isCancel=Ue,ft.VERSION=ot,ft.toFormData=re,ft.AxiosError=Y,ft.Cancel=ft.CanceledError,ft.all=function(e){return Promise.all(e)},ft.spread=function(e){return function(t){return e.apply(null,t)}},ft.isAxiosError=function(e){return Q$1.isObject(e)&&true===e.isAxiosError},ft.mergeConfig=Be,ft.AxiosHeaders=Te,ft.formToJSON=e=>ge(Q$1.isHTMLForm(e)?new FormData(e):e),ft.getAdapter=tt.getAdapter,ft.HttpStatusCode=ut,ft.default=ft;const{Axios:dt,AxiosError:pt,CanceledError:ht,isCancel:mt,CancelToken:bt,VERSION:yt,all:gt,Cancel:wt,isAxiosError:Rt,spread:Et,toFormData:Ot,AxiosHeaders:St,HttpStatusCode:vt,formToJSON:Tt,getAdapter:At,mergeConfig:Ut}=ft;
|
|
3102
|
-
|
|
3103
|
-
const o$1="holding",c$1="idle";function u$2(u){const{holdDurationMs:i=500,isHolding:a,onHoldComplete:m}=u,l=useRef(null),s=useRef(m),[d,h]=useState(c$1),f=useRef(0);s.current=m,useEffect(()=>(l.current=requestAnimationFrame(function r(){if(d===o$1&&1===f.current&&s.current&&s.current(),d===o$1&&f.current<1){const n=f.current,t=Math.min(n+16/i,1);f.current=t,l.current=requestAnimationFrame(r);}if(d===c$1&&f.current>0){const n=f.current,t=Math.max(n-16/i,0);f.current=t,l.current=requestAnimationFrame(r);}}),()=>{l.current&&cancelAnimationFrame(l.current);}),[d,i]);const p=useCallback(r=>{a&&("touch"!==r.pointerType&&0!==r.button||h(o$1));},[a]),A=useCallback(r=>{h(c$1);},[]);return {holdState:d,onHoldEnd:A,onHoldStart:p}}
|
|
3104
|
-
|
|
3105
|
-
function l(r){const{deviceCurrentMainType:s,deviceCurrentType:c,deviceTypesList:l}=u$4(),p=useMemo$1(()=>Object.entries(r).reduce((e,[t,r])=>(a(t,r)&&(e[t]=r),e),{}),[r]);return useMemo$1(()=>{const e={};for(const[o,m]of Object.entries(p)){let p=null;const u=a(o,m),f=o.toLowerCase().endsWith(c.toLowerCase()),d=n$1(o.replace(u,""),l),j=camelCase(d)||"styles";if(e[j]||(e[j]={}),f)p=m;else {const t=`${u}${d}`,o=`${t}${i$3(s)}`,c=r[o]||r[t];let l=e[j][u];if(t.includes("Horizontal")){const t=u.replace("Horizontal","Left");l=e[j][t];}else if(t.includes("Vertical")){const t=u.replace("Vertical","Top");l=e[j][t];}l||(p=c);}if(p){if(/\D/.test(p)){if(/\d+\.?\d*m\s?(?![a-zA-Z]+)/.test(p)){const e=p.split(" ").map(e=>{const t=e.replace(/[a-z]/gi,"");return `${8*parseFloat(t)}px`},[]);p=e.join(" ");}}else {["zIndex","order","flexGrow","opacity"].includes(u)||(p=`${p}px`);}if(u.includes("Horizontal")){const t=u.replace("Horizontal","Right"),r=u.replace("Horizontal","Left"),i=p.split(" "),o=i[0],s=i[1]||i[0];e[j][t]=o,e[j][r]=s;}else if(u.includes("Vertical")){const t=u.replace("Vertical","Top"),r=u.replace("Vertical","Bottom"),i=p.split(" "),o=i[0],s=i[1]||i[0];e[j][t]=o,e[j][r]=s;}else e[j][u]=p;}}return e},[s,c,...Object.values(p)])}const n$1=(e,t)=>t.reduce((e,t)=>e.endsWith(i$3(t))?e.replace(i$3(t),""):e,e),a=(e,t="")=>{const i=o$2.filter(r=>{if(Array.isArray(r)){const i=r[0],o=r[1]||{};return !!e.startsWith(i)&&(!o.validate||o.validate(t))}return e.startsWith(String(r))}),o=r$4(i,e=>r$1(e).length);return r$1(o)};
|
|
3101
|
+
function l(r){const{deviceCurrentMainType:s,deviceCurrentType:c,deviceTypesList:l}=u$1(),p=useMemo$1(()=>Object.entries(r).reduce((e,[t,r])=>(a(t,r)&&(e[t]=r),e),{}),[r]);return useMemo$1(()=>{const e={};for(const[o,m]of Object.entries(p)){let p=null;const u=a(o,m),f=o.toLowerCase().endsWith(c.toLowerCase()),d=n$1(o.replace(u,""),l),j=camelCase(d)||"styles";if(e[j]||(e[j]={}),f)p=m;else {const t=`${u}${d}`,o=`${t}${i$2(s)}`,c=r[o]||r[t];let l=e[j][u];if(t.includes("Horizontal")){const t=u.replace("Horizontal","Left");l=e[j][t];}else if(t.includes("Vertical")){const t=u.replace("Vertical","Top");l=e[j][t];}l||(p=c);}if(p){if(/\D/.test(p)){if(/\d+\.?\d*m\s?(?![a-zA-Z]+)/.test(p)){const e=p.split(" ").map(e=>{const t=e.replace(/[a-z]/gi,"");return `${8*parseFloat(t)}px`},[]);p=e.join(" ");}}else {["zIndex","order","flexGrow","opacity"].includes(u)||(p=`${p}px`);}if(u.includes("Horizontal")){const t=u.replace("Horizontal","Right"),r=u.replace("Horizontal","Left"),i=p.split(" "),o=i[0],s=i[1]||i[0];e[j][t]=o,e[j][r]=s;}else if(u.includes("Vertical")){const t=u.replace("Vertical","Top"),r=u.replace("Vertical","Bottom"),i=p.split(" "),o=i[0],s=i[1]||i[0];e[j][t]=o,e[j][r]=s;}else e[j][u]=p;}}return e},[s,c,...Object.values(p)])}const n$1=(e,t)=>t.reduce((e,t)=>e.endsWith(i$2(t))?e.replace(i$2(t),""):e,e),a=(e,t="")=>{const i=o$1.filter(r=>{if(Array.isArray(r)){const i=r[0],o=r[1]||{};return !!e.startsWith(i)&&(!o.validate||o.validate(t))}return e.startsWith(String(r))}),o=r$4(i,e=>r$1(e).length);return r$1(o)};
|
|
3106
3102
|
|
|
3107
3103
|
const r=(...r)=>{const t=r.map(r=>r?.trim()).filter(Boolean);if(t.length<2)return t[0]??"";return Array.from(new Set(t)).join(" ")};
|
|
3108
3104
|
|
|
@@ -7865,16 +7861,16 @@ function InlineSVG(props) {
|
|
|
7865
7861
|
return /* @__PURE__ */ React__default.createElement(ReactInlineSVG, { ...props });
|
|
7866
7862
|
}
|
|
7867
7863
|
|
|
7868
|
-
const o=["src","imageSrc","svgSrc","placeholderUrl"],f$1=(f,...a)=>React__default.forwardRef(function(r,a){const{assetPrefix:c,ignorePathsList:m}=useContext(i
|
|
7864
|
+
const o=["src","imageSrc","svgSrc","placeholderUrl"],f$1=(f,...a)=>React__default.forwardRef(function(r,a){const{assetPrefix:c,ignorePathsList:m}=useContext(i),p=o.reduce((t,e)=>{let i=r[e];if(i&&"string"==typeof i){if(c){if(n(i,c,m)){i=`${formatURL(c).slice(0,-1)}${i}`;}}t[e]=i;}return t},{});return jsxRuntimeExports.jsx(f,{...r,...p,ref:a})}),n=(t,r,e=[])=>{if(t.startsWith("http:")||t.startsWith("https:")||t.startsWith("data:")||t.startsWith(r))return false;for(const r of e)if(r instanceof RegExp){if(r.test(t))return false}else if(formatURL(t).startsWith(formatURL(r)))return false;return true};
|
|
7869
7865
|
|
|
7870
|
-
const z={sizeXXL:{size:"xxl"},sizeXL:{size:"xl"},sizeL:{size:"l"},sizeM:{size:"m"},sizeS:{size:"s"},sizeXS:{size:"xs"},sizeXXS:{size:"xxs"}},u$1={appearance:z};function _$1(r){const{appearance:i,className:a,dataTestId:o,dataTour:l$1,cursor:t,style:s,tag:n="span",before:c,after:p,isActive:S,isDisabled:x,isSkeleton:z,onClick:_,onDoubleClick:g,children:b}=r,C=e$1(i,u$1,x),v=p$2(r,C),{textAlignClass:P,textColorActiveClass:h,textColorActiveHoverClass:T,textColorClass:H,textColorDisabledClass:A,textColorHoverClass:$,textFontClass:B,textStyleClass:w,textTruncateClass:F,textWeightClass:X,textWrapClass:I,cursorClass:k,sizeClass:N,widthClass:Q}=v,{styles:L}=l(r);return jsxRuntimeExports.jsxs(n,{className:clsx(a,"text",N&&`text_size_${N}`,X&&`text-weight_${X}`,P&&`text-align_${P}`,x&&A&&`text-color_${A}`,!S&&!x&&H&&`text-color_${H}`,!S&&!x&&$&&`text-color_hover_${$}`,S&&!x&&T&&`text-color_active_hover_${T}`,S&&!x&&h&&`text-color_active_${h}`,B&&`text-font_${B}`,w&&`text-style_${w}`,I&&`word-wrap_${I}`,F&&`text-truncate_${F}`,z&&"skeleton",Q&&`width_${Q}`,k&&`cursor_${k}`,_&&(t||"cursor_type_pointer")),"data-testid":o,"data-tour":l$1,style:Object.assign({},L,s),onClick:_,onDoubleClick:g,children:[c,b,p]})}const g={sizeXXL:{size:"xxl",textSize:"xl",iconSize:"24"},sizeXL:{size:"xl",textSize:"l",iconSize:"24"},sizeL:{size:"l",textSize:"l",iconSize:"24"},sizeM:{size:"m",textSize:"m",iconSize:"24"},sizeS:{size:"s",textSize:"s",iconSize:"24"},sizeXS:{size:"xs",textSize:"xs",iconSize:"24"},sizeXXS:{size:"xxs",textSize:"xs",iconSize:"24"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentQuaternary:{fill:"accentQuaternary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentSecondary",borderColor:"accentBorderQuaternary",textColor:"accentTextQuaternary",dotFill:"accentItemQuaternary",iconFill:"accentItemQuaternary"},accentTertiary:{fill:"accentTertiary",borderColor:"accentBorderSecondary",textColor:"accentTextSecondary",dotFill:"accentItemSecondary",iconFill:"accentItemSecondary"},dangerPrimary:{fill:"dangerPrimary",borderColor:"dangerBorderPrimary",textColor:"dangerTextPrimary",dotFill:"dangerItemPrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderSecondary",textColor:"infoTextPrimary",dotFill:"infoItemPrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"infoSecondary",borderColor:"infoBorderSecondary",textColor:"infoTextSecondary",dotFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",borderColor:"specialBorderSecondary",textColor:"specialTextPrimary",dotFill:"specialItemPrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",borderColor:"extraBorderSecondary",textColor:"extraTextPrimary",dotFill:"extraItemPrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary",dotFill:"successItemPrimary",iconFill:"successItemPrimary"},disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary",iconFill:"surfaceItemPrimary"},surfacePrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary",dotFill:"surfaceItemPrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"accentPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderSecondary",textColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary"},warningPrimary:{fill:"warningPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary",dotFill:"warningItemPrimary",iconFill:"warningItemPrimary"}},b={appearance:g};function C(i){const{appearance:a,className:o,dataTestId:l$1,dataTour:t,dot:s,icon:n,iconSrc:c,value:p,isSkeleton:S,children:x}=i,z=e$1(a,b),u=p$2(i,z),{fillClass:g,fillHoverClass:C,borderColorClass:v,borderColorHoverClass:P,borderTypeClass:h,borderWidthClass:T,textColor:H,textSize:A,dotFillClass:$,iconFill:B,iconShape:w,iconSize:F,shapeClass:X,shapeStrengthClass:I,sizeClass:k}=u,{styles:Q}=l(i);return jsxRuntimeExports.jsxs("div",{className:clsx(o,"badge",v&&`border-color_${v}`,P&&`border-color_hover_${P}`,T&&`border-width_${T}`,h&&`border_type_${h}`,g&&`fill_${g}`,C&&`fill_hover_${C}`,k&&`badge_size_${k}`,X&&`shape_${X}`,I&&`shape-strength_${I}`,p?n?s?"badge_type_dot-icon-counter":"badge_type_icon-counter":"badge_type_counter":n?"badge_type_icon":s?"badge_type_dot":"badge_type_fill",S&&"skeleton"),"data-testid":l$1,"data-tour":t,style:Q,children:[s&&jsxRuntimeExports.jsx("div",{className:clsx("badge__dot",$&&`svg_fill_${$}`),children:jsxRuntimeExports.jsx("svg",{width:"6",height:"6",viewBox:"0 0 6 6",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("rect",{width:"6",height:"6",rx:"50"})})}),n&&jsxRuntimeExports.jsx(N,{className:"badge__icon",size:F,iconFill:B,imageSrc:c,shape:w,SvgImage:n}),x||p&&jsxRuntimeExports.jsx(_$1,{className:"badge__value",size:A,textColor:H,children:p})]})}const P$1={LinkComponent:"a"};function T(e){const{href:i,LinkComponent:o,rel:l,target:t,children:s,...n}=e;if(i){const e=o||P$1.LinkComponent;return jsxRuntimeExports.jsx(e,{href:i,rel:l,target:t,...n,children:s})}else if(o)return jsxRuntimeExports.jsx(o,{...n,children:s});return React__default.Children.toArray(s).filter(Boolean).map(e=>React__default.isValidElement(e)?React__default.cloneElement(e,n):e)}const H={h1:{size:"h1",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h2:{size:"h2",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h3:{size:"h3",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h4:{size:"h4",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h5:{size:"h5",iconAfterFillSize:"20",iconAfterSize:"20",iconBeforeFillSize:"20",iconBeforeSize:"20"},h6:{size:"h6",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},disabledPrimary:{fill:"surfacePrimary",borderColor:"errorBorderQuaternary",borderHover:"errorBorderHoverQuaternary",textColor:"surfaceTextQuaternary",iconBeforeFill:"errorQuaternary"},disabledSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderHoverQuaternary",iconBeforeFill:"surfaceQuaternary"},solid:{},outlined:{fill:"none"},full:{},ghost:{fill:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",textColorHover:"errorTextPrimary"},infoPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",textColor:"extraTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",textColor:"warningTextSecondary",textColorHover:"warningTextSecondary"},requirePrimary:{fill:"warningTertiary",borderColor:"warningBorderQuaternary",borderHover:"warningBorderQuaternary",textColor:"surfaceTextPrimary",iconBeforeFill:"warningQuaternary"},requireSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderQuaternary",iconBeforeFill:"surfaceQuaternary"}},A={appearance:H};function $(i){const{appearance:a,className:l$1,dataTestId:t,dataTour:s,text:n,afterWrapper:c,beforeWrapper:p,style:S,tag:x="span",before:z,after:u,isActive:_,isDisabled:g,isSkeleton:b,onClick:C,children:v}=i,P=e$1(a,A,g),h=p$2(i,P),{directionClass:T,size:H,fillClass:$,fillHoverClass:B,textAlignClass:w,textColorActiveClass:F,textColorActiveHoverClass:X,textColorClass:I,textColorDisabledClass:k,textColorHoverClass:Q,textFontClass:L,textStyleClass:D,textTruncateClass:M,textWeightClass:W,textWrap:V,heightClass:E,iconAfter:O,iconAfterFill:j,iconAfterFillIcon:q,iconAfterFillSize:G,iconAfterShape:R,iconAfterSize:U,iconAfterSrc:J,iconBadgeAppearance:K,iconBadgeShape:Y,iconBadgeSize:Z,iconBadgeTextColor:ee,iconBadgeTextSize:re,iconBadgeValue:ie,iconBefore:ae,iconBeforeFill:oe,iconBeforeFillIcon:le,iconBeforeFillSize:te,iconBeforeShape:se,iconBeforeSize:ne,iconBeforeSrc:ce,svgFillClass:de,svgFillHoverClass:fe,widthClass:me,wrapperDirectionClass:ye,onClickIconAfter:pe,onClickIconBefore:Se}=h,{styles:xe,wrapper:ze}=l(i),ue=useMemo$1(()=>x||(H||"span"),[x,H]);return jsxRuntimeExports.jsxs(ue,{className:clsx(l$1,"title",$&&`fill_${$}`,B&&`fill_hover_${B}`,de&&`svg_fill_${de}`,fe&&`svg_fill_hover_${fe}`,me&&`width_${me}`,E&&`height_${E}`,H&&`title_size_${H}`,T&&`title_direction_${T}`,g&&k&&`text-color_${k}`,!_&&!g&&I&&`text text-color_${I}`,_&&!g&&F&&`text-color_active_${F}`,!_&&!g&&Q&&`text-color_hover_${Q}`,_&&!g&&X&&`text-color_active_hover${X}`,L&&`text-font_${L}`,D&&`text-style_${D}`,W&&`text-weight_${W}`,V&&`word-wrap_${V}`,ie&&"title_badge",b&&"skeleton"),"data-testid":t,"data-tour":s,style:Object.assign({},xe,S),onClick:C,children:[z,jsxRuntimeExports.jsxs("span",{className:clsx(w&&`text-align_${w}`,ye&&`title_direction_${ye}`,"title__wrapper",M&&`text-truncate_${M}`),style:ze,children:[(ae||ce)&&jsxRuntimeExports.jsx(N,{className:clsx("title__icon_before",ie&&"title__icon_before-badge"),fill:oe,fillSize:te,badgeAppearance:K,badgeClass:"title__icon_before_badge",badgeShape:Y,badgeSize:Z,badgeTextColor:ee,badgeTextSize:re,badgeValue:ie,iconFill:le,iconSize:ne,imageSrc:ce,shape:se,SvgImage:ae,onClick:Se}),p,v||n,c,(O||J)&&jsxRuntimeExports.jsx(N,{className:clsx("title__icon_after",ie&&"title__icon_after-badge"),fill:j,fillSize:G,badgeAppearance:K,badgeClass:"title__icon_after_badge",badgeShape:Y,badgeSize:Z,badgeTextColor:ee,badgeTextSize:re,badgeValue:ie,iconFill:q,iconSize:U,imageSrc:J,shape:R,SvgImage:O,onClick:pe})]}),u]})}const B={defaultPrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary",titleColor:"surfaceTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},sizeL:{size:"l",titleSize:"h5",textSize:"s"},sizeM:{size:"m",titleSize:"h5",textSize:"s"},sizeS:{size:"s",titleSize:"h5",textSize:"s"},disabledPrimary:{fill:"disabledPrimary",fillHover:"disabledHoverPrimary",titleColor:"surfaceTextPrimary",textColor:"surfaceTextPrimary"},requirePrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",titleColor:"warningTextPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",titleColor:"errorTextPrimary",borderColor:"errorBorderPrimary",textColor:"errorTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",titleColor:"successTextPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary"}},w={appearance:B},F=React__default.forwardRef(function(i,a){const{appearance:o,className:c,dataTestId:p,dataTour:S,initialIsVisible:x,title:z,text:u,before:g,after:b,openTimeoutDelay:C=500,closeTimeoutDelay:v=250,isSkeleton:P,children:h}=i,T=useRef(null),H=useRef(null),A=useRef(null),B=useRef(false),[F,X]=useState(x),I=useCallback(()=>{B.current||(H.current&&clearTimeout(H.current),A.current=setTimeout(()=>{X(true);},C));},[C]),k=useCallback(()=>{A.current&&clearTimeout(A.current),H.current=setTimeout(()=>{X(e=>(true===e&&(B.current=true),false));},v);},[v]),N=useCallback(()=>{B.current=false;},[]);useImperativeHandle(a,()=>({get tooltipElement(){return T.current},openTooltip:I,closeTooltip:k,isTooltipVisible:F}),[F,I,k]);const Q=e$1(o,w),L=p$2(i,Q),{alignClass:D,alignDirectionClass:M,alignmentClass:W,alignPosition:V,fillClass:E,titleColor:O,titleSize:j,titleWeight:q,borderColorClass:G,borderTypeClass:R,borderWidthClass:U,textColor:J,textSize:K,textWeight:Y,arrowPosition:Z,elevationClass:ee,shapeClass:re,shapeStrengthClass:ie,sizeClass:ae,widthClass:oe}=L,{styles:le}=l(i);return jsxRuntimeExports.jsxs("div",{className:clsx(c,"tooltip",V&&`tooltip_align-position_${V}`,M&&`align_${M}`,D&&`align_${D}`,ee&&`elevation_${ee}`,W&&`alignment_${W}`,ae&&`tooltip_size_${ae}`,P&&"skeleton",oe&&`width_${oe}`),ref:T,"data-testid":p,"data-tour":S,style:le,onAnimationEnd:N,children:[Z&&jsxRuntimeExports.jsx("div",{className:clsx("tooltip__arrow",Z&&`tooltip__arrow_position_${Z}`,E&&`fill_${E}`),children:" "}),g,jsxRuntimeExports.jsxs("div",{className:clsx("tooltip__inner",U&&`border-width_${U}`,G&&`border-color_${G}`,R&&`border_type_${R}`,E&&`fill_${E}`,re&&`shape_${re}`,ie&&`shape-strength_${ie}`),children:[z&&jsxRuntimeExports.jsx($,{className:"tooltip__title text",size:j,textColor:O,textWeight:q,children:z}),u&&jsxRuntimeExports.jsx(_$1,{className:"tooltip__text",size:K,textColor:J,textWeight:Y,children:u}),h]}),b]})}),I={disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemQuaternary"},size12_12:{fillSize:"12",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_12:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_14:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_12:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size16_14:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_16:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_12:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size20_14:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size20_16:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_20:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_12:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size24_14:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size24_16:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size24_20:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_24:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_12:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size32_14:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size32_16:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size32_20:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size32_24:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_32:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_12:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size40_14:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size40_16:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size40_20:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size40_24:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size40_32:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_40:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"40"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"accentItemPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary",borderColor:"dangerBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",borderColor:"errorBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",borderColor:"specialBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",borderColor:"extraBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",borderColor:"successBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"successItemPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverSecondary",borderColor:"surfaceBorderTertiary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",badgeAppearance:"accentPrimary solid rounded",iconFill:"surfaceItemPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",borderColor:"warningBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"warningItemPrimary"}},k={appearance:I},N=f$1(React__default.forwardRef(function(i,a){const{id:l$1,appearance:t,className:s,dataTestId:n,dataTour:c,width:S,height:z,badgeClass:u,href:_,imageSrc:g,link:b,linkRel:v,linkTarget:P,notification:h,saveFillStroke:H,showTooltip:A,SvgImage:$,svgImageStyles:B,before:w,after:X,isActive:I,isDisabled:N,isSkeleton:L,onClick:D,onMouseEnter:M,onMouseLeave:W}=i,V=useMemo$1(()=>{if($){const e=$,i={};return S&&(i.width=S),z&&(i.height=z),jsxRuntimeExports.jsx(e,{...i,...B})}return g?g.endsWith(".svg")?jsxRuntimeExports.jsx(InlineSVG,H?{src:g}:{src:g,preProcessor:Q}):jsxRuntimeExports.jsx("img",{src:g}):null},[$,g,S,z,B,H]),E=e$1(t,k,N),O=p$2(i,E),{alignmentClass:j,fillActiveClass:q,fillActiveHoverClass:G,fillClass:R,fillDisabledClass:U,fillHoverClass:J,fillSizeClass:K,borderColorClass:Y,borderColorHoverClass:Z,borderTypeClass:ee,borderWidthClass:re,badgeAppearance:ie,badgeAppearanceSize:ae,badgeShape:oe,badgeSize:le,badgeTextColor:te,badgeTextSize:se,badgeValue:ne,centeringClass:ce,iconFillActiveClass:de,iconFillActiveHoverClass:fe,iconFillClass:me,iconFillDisabledClass:ye,iconFillHoverClass:pe,iconSizeClass:Se,shapeClass:xe,shapeStrengthClass:ze,tooltipAppearance:ue,tooltipText:_e,tooltipTextSize:ge,tooltipTitle:be,tooltipTitleSize:Ce}=O,{styles:ve}=l(i);return jsxRuntimeExports.jsxs("div",{id:l$1,className:clsx(s,"icon",I?q&&`fill_active_${q}`:R&&`fill_${R}`,I?G&&`fill_active_hover_${G}`:J&&`fill_hover_${J}`,K&&`icon_fill_size_${K}`,U&&`fill_disabled_${U}`,I?de&&`icon_fill_active_${de}`:me&&`icon_fill_${me}`,I?fe&&`icon_fill_active_hover_${fe}`:pe&&`icon_fill_hover_${pe}`,N&&ye&&`icon_fill_disabled_${ye}`,xe&&`shape_${xe}`,ze&&`shape-strength_${ze}`,Y&&`border-color_${Y}`,Z&&`border-color_hover_${Z}`,re&&`border-width_${re}`,ee&&`border_type_${ee}`,ne&&"icon_with-badge",ce&&`centering_${ce}`,D&&"cursor_type_pointer",L&&"skeleton"),ref:a,"data-testid":n,"data-tour":c,style:ve,onClick:D,onMouseEnter:M,onMouseLeave:W,children:[w,jsxRuntimeExports.jsxs(T,{className:clsx((b||_||D)&&"cursor_type_pointer",b||_?"icon__link":"icon__item",Se&&`icon_size_${Se}`),href:b||_,LinkComponent:"div",rel:v,target:P,children:[V,(ne||h)&&jsxRuntimeExports.jsx(C,{appearance:r(ie,ae),className:clsx(u,"icon__badge"),size:le,textColor:te,textSize:se,shape:oe,value:ne}),A&&jsxRuntimeExports.jsx(F,{appearance:ue,className:clsx(s,"icon__tooltip",j&&`alignment_${j}`),title:be,titleSize:Ce,text:_e,textSize:ge})]}),X]})})),Q=e=>e.replace(/fill=".*?"/g,'fill=""').replace(/stroke=".*?"/g,'stroke=""');
|
|
7866
|
+
const z={sizeXXL:{size:"xxl"},sizeXL:{size:"xl"},sizeL:{size:"l"},sizeM:{size:"m"},sizeS:{size:"s"},sizeXS:{size:"xs"},sizeXXS:{size:"xxs"}},u={appearance:z};function _$1(r){const{appearance:i,className:a,dataTestId:o,dataTour:l$1,cursor:t,style:s,tag:n="span",before:c,after:p$1,isActive:S,isDisabled:x,isSkeleton:z,onClick:_,onDoubleClick:g,children:b}=r,C=e$1(i,u,x),v=p(r,C),{textAlignClass:P,textColorActiveClass:h,textColorActiveHoverClass:T,textColorClass:H,textColorDisabledClass:A,textColorHoverClass:$,textFontClass:B,textStyleClass:w,textTruncateClass:F,textWeightClass:X,textWrapClass:I,cursorClass:k,sizeClass:N,widthClass:Q}=v,{styles:L}=l(r);return jsxRuntimeExports.jsxs(n,{className:clsx(a,"text",N&&`text_size_${N}`,X&&`text-weight_${X}`,P&&`text-align_${P}`,x&&A&&`text-color_${A}`,!S&&!x&&H&&`text-color_${H}`,!S&&!x&&$&&`text-color_hover_${$}`,S&&!x&&T&&`text-color_active_hover_${T}`,S&&!x&&h&&`text-color_active_${h}`,B&&`text-font_${B}`,w&&`text-style_${w}`,I&&`word-wrap_${I}`,F&&`text-truncate_${F}`,z&&"skeleton",Q&&`width_${Q}`,k&&`cursor_${k}`,_&&(t||"cursor_type_pointer")),"data-testid":o,"data-tour":l$1,style:Object.assign({},L,s),onClick:_,onDoubleClick:g,children:[c,b,p$1]})}const g={sizeXXL:{size:"xxl",textSize:"xl",iconSize:"24"},sizeXL:{size:"xl",textSize:"l",iconSize:"24"},sizeL:{size:"l",textSize:"l",iconSize:"24"},sizeM:{size:"m",textSize:"m",iconSize:"24"},sizeS:{size:"s",textSize:"s",iconSize:"24"},sizeXS:{size:"xs",textSize:"xs",iconSize:"24"},sizeXXS:{size:"xxs",textSize:"xs",iconSize:"24"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentQuaternary:{fill:"accentQuaternary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentSecondary",borderColor:"accentBorderQuaternary",textColor:"accentTextQuaternary",dotFill:"accentItemQuaternary",iconFill:"accentItemQuaternary"},accentTertiary:{fill:"accentTertiary",borderColor:"accentBorderSecondary",textColor:"accentTextSecondary",dotFill:"accentItemSecondary",iconFill:"accentItemSecondary"},dangerPrimary:{fill:"dangerPrimary",borderColor:"dangerBorderPrimary",textColor:"dangerTextPrimary",dotFill:"dangerItemPrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderSecondary",textColor:"infoTextPrimary",dotFill:"infoItemPrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"infoSecondary",borderColor:"infoBorderSecondary",textColor:"infoTextSecondary",dotFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",borderColor:"specialBorderSecondary",textColor:"specialTextPrimary",dotFill:"specialItemPrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",borderColor:"extraBorderSecondary",textColor:"extraTextPrimary",dotFill:"extraItemPrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary",dotFill:"successItemPrimary",iconFill:"successItemPrimary"},disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary",iconFill:"surfaceItemPrimary"},surfacePrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary",dotFill:"surfaceItemPrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"accentPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderSecondary",textColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary"},warningPrimary:{fill:"warningPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary",dotFill:"warningItemPrimary",iconFill:"warningItemPrimary"}},b$1={appearance:g};function C(i){const{appearance:a,className:o,dataTestId:l$1,dataTour:t,dot:s,icon:n,iconSrc:c,value:p$1,isSkeleton:S,children:x}=i,z=e$1(a,b$1),u=p(i,z),{fillClass:g,fillHoverClass:C,borderColorClass:v,borderColorHoverClass:P,borderTypeClass:h,borderWidthClass:T,textColor:H,textSize:A,dotFillClass:$,iconFill:B,iconShape:w,iconSize:F,shapeClass:X,shapeStrengthClass:I,sizeClass:k}=u,{styles:Q}=l(i);return jsxRuntimeExports.jsxs("div",{className:clsx(o,"badge",v&&`border-color_${v}`,P&&`border-color_hover_${P}`,T&&`border-width_${T}`,h&&`border_type_${h}`,g&&`fill_${g}`,C&&`fill_hover_${C}`,k&&`badge_size_${k}`,X&&`shape_${X}`,I&&`shape-strength_${I}`,p$1?n?s?"badge_type_dot-icon-counter":"badge_type_icon-counter":"badge_type_counter":n?"badge_type_icon":s?"badge_type_dot":"badge_type_fill",S&&"skeleton"),"data-testid":l$1,"data-tour":t,style:Q,children:[s&&jsxRuntimeExports.jsx("div",{className:clsx("badge__dot",$&&`svg_fill_${$}`),children:jsxRuntimeExports.jsx("svg",{width:"6",height:"6",viewBox:"0 0 6 6",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("rect",{width:"6",height:"6",rx:"50"})})}),n&&jsxRuntimeExports.jsx(N,{className:"badge__icon",size:F,iconFill:B,imageSrc:c,shape:w,SvgImage:n}),x||p$1&&jsxRuntimeExports.jsx(_$1,{className:"badge__value",size:A,textColor:H,children:p$1})]})}const P$2={LinkComponent:"a"};function T$1(e){const{href:i,LinkComponent:o,rel:l,target:t,children:s,...n}=e;if(i){const e=o||P$2.LinkComponent;return jsxRuntimeExports.jsx(e,{href:i,rel:l,target:t,...n,children:s})}else if(o)return jsxRuntimeExports.jsx(o,{...n,children:s});return React__default.Children.toArray(s).filter(Boolean).map(e=>React__default.isValidElement(e)?React__default.cloneElement(e,n):e)}const H={h1:{size:"h1",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h2:{size:"h2",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h3:{size:"h3",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h4:{size:"h4",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h5:{size:"h5",iconAfterFillSize:"20",iconAfterSize:"20",iconBeforeFillSize:"20",iconBeforeSize:"20"},h6:{size:"h6",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},disabledPrimary:{fill:"surfacePrimary",borderColor:"errorBorderQuaternary",borderHover:"errorBorderHoverQuaternary",textColor:"surfaceTextQuaternary",iconBeforeFill:"errorQuaternary"},disabledSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderHoverQuaternary",iconBeforeFill:"surfaceQuaternary"},solid:{},outlined:{fill:"none"},full:{},ghost:{fill:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",textColorHover:"errorTextPrimary"},infoPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",textColor:"extraTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",textColor:"warningTextSecondary",textColorHover:"warningTextSecondary"},requirePrimary:{fill:"warningTertiary",borderColor:"warningBorderQuaternary",borderHover:"warningBorderQuaternary",textColor:"surfaceTextPrimary",iconBeforeFill:"warningQuaternary"},requireSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderQuaternary",iconBeforeFill:"surfaceQuaternary"}},A={appearance:H};function $(i){const{appearance:a,className:l$1,dataTestId:t,dataTour:s,text:n,afterWrapper:c,beforeWrapper:p$1,style:S,tag:x="span",before:z,after:u,isActive:_,isDisabled:g,isSkeleton:b,onClick:C,children:v}=i,P=e$1(a,A,g),h=p(i,P),{directionClass:T,size:H,fillClass:$,fillHoverClass:B,textAlignClass:w,textColorActiveClass:F,textColorActiveHoverClass:X,textColorClass:I,textColorDisabledClass:k,textColorHoverClass:Q,textFontClass:L,textStyleClass:D,textTruncateClass:M,textWeightClass:W,textWrap:V,heightClass:E,iconAfter:O,iconAfterFill:j,iconAfterFillIcon:q,iconAfterFillSize:G,iconAfterShape:R,iconAfterSize:U,iconAfterSrc:J,iconBadgeAppearance:K,iconBadgeShape:Y,iconBadgeSize:Z,iconBadgeTextColor:ee,iconBadgeTextSize:re,iconBadgeValue:ie,iconBefore:ae,iconBeforeFill:oe,iconBeforeFillIcon:le,iconBeforeFillSize:te,iconBeforeShape:se,iconBeforeSize:ne,iconBeforeSrc:ce,svgFillClass:de,svgFillHoverClass:fe,widthClass:me,wrapperDirectionClass:ye,onClickIconAfter:pe,onClickIconBefore:Se}=h,{styles:xe,wrapper:ze}=l(i),ue=useMemo$1(()=>x||(H||"span"),[x,H]);return jsxRuntimeExports.jsxs(ue,{className:clsx(l$1,"title",$&&`fill_${$}`,B&&`fill_hover_${B}`,de&&`svg_fill_${de}`,fe&&`svg_fill_hover_${fe}`,me&&`width_${me}`,E&&`height_${E}`,H&&`title_size_${H}`,T&&`title_direction_${T}`,g&&k&&`text-color_${k}`,!_&&!g&&I&&`text text-color_${I}`,_&&!g&&F&&`text-color_active_${F}`,!_&&!g&&Q&&`text-color_hover_${Q}`,_&&!g&&X&&`text-color_active_hover${X}`,L&&`text-font_${L}`,D&&`text-style_${D}`,W&&`text-weight_${W}`,V&&`word-wrap_${V}`,ie&&"title_badge",b&&"skeleton"),"data-testid":t,"data-tour":s,style:Object.assign({},xe,S),onClick:C,children:[z,jsxRuntimeExports.jsxs("span",{className:clsx(w&&`text-align_${w}`,ye&&`title_direction_${ye}`,"title__wrapper",M&&`text-truncate_${M}`),style:ze,children:[(ae||ce)&&jsxRuntimeExports.jsx(N,{className:clsx("title__icon_before",ie&&"title__icon_before-badge"),fill:oe,fillSize:te,badgeAppearance:K,badgeClass:"title__icon_before_badge",badgeShape:Y,badgeSize:Z,badgeTextColor:ee,badgeTextSize:re,badgeValue:ie,iconFill:le,iconSize:ne,imageSrc:ce,shape:se,SvgImage:ae,onClick:Se}),p$1,v||n,c,(O||J)&&jsxRuntimeExports.jsx(N,{className:clsx("title__icon_after",ie&&"title__icon_after-badge"),fill:j,fillSize:G,badgeAppearance:K,badgeClass:"title__icon_after_badge",badgeShape:Y,badgeSize:Z,badgeTextColor:ee,badgeTextSize:re,badgeValue:ie,iconFill:q,iconSize:U,imageSrc:J,shape:R,SvgImage:O,onClick:pe})]}),u]})}const B={defaultPrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary",titleColor:"surfaceTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},sizeL:{size:"l",titleSize:"h5",textSize:"s"},sizeM:{size:"m",titleSize:"h5",textSize:"s"},sizeS:{size:"s",titleSize:"h5",textSize:"s"},disabledPrimary:{fill:"disabledPrimary",fillHover:"disabledHoverPrimary",titleColor:"surfaceTextPrimary",textColor:"surfaceTextPrimary"},requirePrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",titleColor:"warningTextPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",titleColor:"errorTextPrimary",borderColor:"errorBorderPrimary",textColor:"errorTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",titleColor:"successTextPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary"}},w={appearance:B},F=React__default.forwardRef(function(i,a){const{appearance:o,className:c,dataTestId:p$1,dataTour:S,initialIsVisible:x,title:z,text:u,before:g,after:b,openTimeoutDelay:C=500,closeTimeoutDelay:v=250,isSkeleton:P,children:h}=i,T=useRef(null),H=useRef(null),A=useRef(null),B=useRef(false),[F,X]=useState(x),I=useCallback(()=>{B.current||(H.current&&clearTimeout(H.current),A.current=setTimeout(()=>{X(true);},C));},[C]),k=useCallback(()=>{A.current&&clearTimeout(A.current),H.current=setTimeout(()=>{X(e=>(true===e&&(B.current=true),false));},v);},[v]),N=useCallback(()=>{B.current=false;},[]);useImperativeHandle(a,()=>({get tooltipElement(){return T.current},openTooltip:I,closeTooltip:k,isTooltipVisible:F}),[F,I,k]);const Q=e$1(o,w),L=p(i,Q),{alignClass:D,alignDirectionClass:M,alignmentClass:W,alignPosition:V,fillClass:E,titleColor:O,titleSize:j,titleWeight:q,borderColorClass:G,borderTypeClass:R,borderWidthClass:U,textColor:J,textSize:K,textWeight:Y,arrowPosition:Z,elevationClass:ee,shapeClass:re,shapeStrengthClass:ie,sizeClass:ae,widthClass:oe}=L,{styles:le}=l(i);return jsxRuntimeExports.jsxs("div",{className:clsx(c,"tooltip",V&&`tooltip_align-position_${V}`,M&&`align_${M}`,D&&`align_${D}`,ee&&`elevation_${ee}`,W&&`alignment_${W}`,ae&&`tooltip_size_${ae}`,P&&"skeleton",oe&&`width_${oe}`),ref:T,"data-testid":p$1,"data-tour":S,style:le,onAnimationEnd:N,children:[Z&&jsxRuntimeExports.jsx("div",{className:clsx("tooltip__arrow",Z&&`tooltip__arrow_position_${Z}`,E&&`fill_${E}`),children:" "}),g,jsxRuntimeExports.jsxs("div",{className:clsx("tooltip__inner",U&&`border-width_${U}`,G&&`border-color_${G}`,R&&`border_type_${R}`,E&&`fill_${E}`,re&&`shape_${re}`,ie&&`shape-strength_${ie}`),children:[z&&jsxRuntimeExports.jsx($,{className:"tooltip__title text",size:j,textColor:O,textWeight:q,children:z}),u&&jsxRuntimeExports.jsx(_$1,{className:"tooltip__text",size:K,textColor:J,textWeight:Y,children:u}),h]}),b]})}),I$1={disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemQuaternary"},size12_12:{fillSize:"12",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_12:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_14:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_12:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size16_14:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_16:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_12:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size20_14:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size20_16:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_20:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_12:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size24_14:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size24_16:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size24_20:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_24:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_12:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size32_14:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size32_16:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size32_20:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size32_24:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_32:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_12:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size40_14:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size40_16:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size40_20:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size40_24:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size40_32:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_40:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"40"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"accentItemPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary",borderColor:"dangerBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",borderColor:"errorBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",borderColor:"specialBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",borderColor:"extraBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",borderColor:"successBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"successItemPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverSecondary",borderColor:"surfaceBorderTertiary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",badgeAppearance:"accentPrimary solid rounded",iconFill:"surfaceItemPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",borderColor:"warningBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"warningItemPrimary"}},k={appearance:I$1},N=f$1(React__default.forwardRef(function(i,a){const{id:l$1,appearance:t,className:s,dataTestId:n,dataTour:c,width:S,height:z,badgeClass:u,href:_,imageSrc:g,link:b,linkRel:v,linkTarget:P,notification:h,saveFillStroke:H,showTooltip:A,SvgImage:$,svgImageStyles:B,before:w,after:X,isActive:I,isDisabled:N,isSkeleton:L,onClick:D,onMouseEnter:M,onMouseLeave:W}=i,V=useMemo$1(()=>{if($){const e=$,i={};return S&&(i.width=S),z&&(i.height=z),jsxRuntimeExports.jsx(e,{...i,...B})}return g?g.endsWith(".svg")?jsxRuntimeExports.jsx(InlineSVG,H?{src:g}:{src:g,preProcessor:Q}):jsxRuntimeExports.jsx("img",{src:g}):null},[$,g,S,z,B,H]),E=e$1(t,k,N),O=p(i,E),{alignmentClass:j,fillActiveClass:q,fillActiveHoverClass:G,fillClass:R,fillDisabledClass:U,fillHoverClass:J,fillSizeClass:K,borderColorClass:Y,borderColorHoverClass:Z,borderTypeClass:ee,borderWidthClass:re,badgeAppearance:ie,badgeAppearanceSize:ae,badgeShape:oe,badgeSize:le,badgeTextColor:te,badgeTextSize:se,badgeValue:ne,centeringClass:ce,iconFillActiveClass:de,iconFillActiveHoverClass:fe,iconFillClass:me,iconFillDisabledClass:ye,iconFillHoverClass:pe,iconSizeClass:Se,shapeClass:xe,shapeStrengthClass:ze,tooltipAppearance:ue,tooltipText:_e,tooltipTextSize:ge,tooltipTitle:be,tooltipTitleSize:Ce}=O,{styles:ve}=l(i);return jsxRuntimeExports.jsxs("div",{id:l$1,className:clsx(s,"icon",I?q&&`fill_active_${q}`:R&&`fill_${R}`,I?G&&`fill_active_hover_${G}`:J&&`fill_hover_${J}`,K&&`icon_fill_size_${K}`,U&&`fill_disabled_${U}`,I?de&&`icon_fill_active_${de}`:me&&`icon_fill_${me}`,I?fe&&`icon_fill_active_hover_${fe}`:pe&&`icon_fill_hover_${pe}`,N&&ye&&`icon_fill_disabled_${ye}`,xe&&`shape_${xe}`,ze&&`shape-strength_${ze}`,Y&&`border-color_${Y}`,Z&&`border-color_hover_${Z}`,re&&`border-width_${re}`,ee&&`border_type_${ee}`,ne&&"icon_with-badge",ce&&`centering_${ce}`,D&&"cursor_type_pointer",L&&"skeleton"),ref:a,"data-testid":n,"data-tour":c,style:ve,onClick:D,onMouseEnter:M,onMouseLeave:W,children:[w,jsxRuntimeExports.jsxs(T$1,{className:clsx((b||_||D)&&"cursor_type_pointer",b||_?"icon__link":"icon__item",Se&&`icon_size_${Se}`),href:b||_,LinkComponent:"div",rel:v,target:P,children:[V,(ne||h)&&jsxRuntimeExports.jsx(C,{appearance:r(ie,ae),className:clsx(u,"icon__badge"),size:le,textColor:te,textSize:se,shape:oe,value:ne}),A&&jsxRuntimeExports.jsx(F,{appearance:ue,className:clsx(s,"icon__tooltip",j&&`alignment_${j}`),title:be,titleSize:Ce,text:_e,textSize:ge})]}),X]})})),Q=e=>e.replace(/fill=".*?"/g,'fill=""').replace(/stroke=".*?"/g,'stroke=""');
|
|
7871
7867
|
|
|
7872
|
-
const t={accentPrimary:{fill:"accentPrimary",borderColor:"surfaceBorderSecondary",itemFill:"accentItemPrimary"},accentTertiary:{fill:"accentTertiary",borderColor:"surfaceBorderSecondary",itemFill:"accentItemSecondary"},specialPrimary:{fill:"specialPrimary",borderColor:"surfaceBorderSecondary",itemFill:"specialItemPrimary"},sizeL:{size:"l",textSize:"m"},sizeM:{size:"m",textSize:"s"},sizeS:{size:"s",textSize:"xs"},extraPrimary:{fill:"extraPrimary",borderColor:"surfaceBorderSecondary",itemFill:"extraItemPrimary"},surfacePrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",itemFill:"surfaceItemPrimary"},surfaceSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderPrimary",itemFill:"surfaceItemPrimary"},surfaceTertiary:{fill:"surfaceTertiary",borderColor:"surfaceBorderPrimary",itemFill:"surfaceItemPrimary"},warningPrimary:{fill:"warningPrimary",borderColor:"surfaceBorderSecondary",itemFill:"warningItemPrimary"},successPrimary:{fill:"successPrimary",borderColor:"surfaceBorderSecondary",itemFill:"successItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"surfaceBorderSecondary",itemFill:"infoItemPrimary"},dangerPrimary:{fill:"dangerPrimary",borderColor:"surfaceBorderSecondary",itemFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",borderColor:"surfaceBorderSecondary",itemFill:"errorItemPrimary"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"}},c={appearance:t};function m(t){const{appearance:m,className:d,dataTestId:n,dataTour:y,type:f="dot",text:u,isDisabled:P,isSkeleton:p,children:C}=t,_=e$1(m,c,P),h=p
|
|
7868
|
+
const t={accentPrimary:{fill:"accentPrimary",borderColor:"surfaceBorderSecondary",itemFill:"accentItemPrimary"},accentTertiary:{fill:"accentTertiary",borderColor:"surfaceBorderSecondary",itemFill:"accentItemSecondary"},specialPrimary:{fill:"specialPrimary",borderColor:"surfaceBorderSecondary",itemFill:"specialItemPrimary"},sizeL:{size:"l",textSize:"m"},sizeM:{size:"m",textSize:"s"},sizeS:{size:"s",textSize:"xs"},extraPrimary:{fill:"extraPrimary",borderColor:"surfaceBorderSecondary",itemFill:"extraItemPrimary"},surfacePrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",itemFill:"surfaceItemPrimary"},surfaceSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderPrimary",itemFill:"surfaceItemPrimary"},surfaceTertiary:{fill:"surfaceTertiary",borderColor:"surfaceBorderPrimary",itemFill:"surfaceItemPrimary"},warningPrimary:{fill:"warningPrimary",borderColor:"surfaceBorderSecondary",itemFill:"warningItemPrimary"},successPrimary:{fill:"successPrimary",borderColor:"surfaceBorderSecondary",itemFill:"successItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"surfaceBorderSecondary",itemFill:"infoItemPrimary"},dangerPrimary:{fill:"dangerPrimary",borderColor:"surfaceBorderSecondary",itemFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",borderColor:"surfaceBorderSecondary",itemFill:"errorItemPrimary"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"}},c={appearance:t};function m(t){const{appearance:m,className:d,dataTestId:n,dataTour:y,type:f="dot",text:u,isDisabled:P,isSkeleton:p$1,children:C}=t,_=e$1(m,c,P),h=p(t,_),{fillClass:S,borderColorClass:b,textColor:x,textSize:z,heightClass:F,itemFillClass:I,shapeClass:B,shapeStrengthClass:g,sizeClass:$,widthClass:N}=h,{styles:T}=l(t);return jsxRuntimeExports.jsxs("div",{className:clsx("loader",d,N&&`width_${N}`,F&&`height_${F}`,S&&`fill_${S}`,$&&`loader_size_${$}`,p$1&&"skeleton",f&&`loader_type_${f}`,B&&`shape_${B}`,g&&`shape-strength_${g}`),"data-testid":n,"data-tour":y,style:T,children:[C||jsxRuntimeExports.jsxs("div",{className:"loader__inner",children:[jsxRuntimeExports.jsx("span",{className:clsx("loader__item",I&&`fill_${I}`,"circular"===f&&`border-color_${b}`),children:" "}),jsxRuntimeExports.jsx("span",{className:clsx("loader__item",I&&`fill_${I}`),children:" "}),jsxRuntimeExports.jsx("span",{className:clsx("loader__item",I&&`fill_${I}`),children:" "})]}),u&&jsxRuntimeExports.jsx(_$1,{className:"loader__text",size:z,textColor:x,children:u})]})}
|
|
7873
7869
|
|
|
7874
|
-
const d={sizeXXL:{size:"xxl",labelTextSize:"xl",iconAfterAppearanceSize:"size24_24",iconBeforeAppearanceSize:"size24_24",loaderAppearanceSize:"sizeL"},sizeXL:{size:"xl",labelTextSize:"l",iconAfterAppearanceSize:"size24_24",iconBeforeAppearanceSize:"size24_24",loaderAppearanceSize:"sizeL"},sizeL:{size:"l",labelTextSize:"l",iconAfterAppearanceSize:"size24_24",iconBeforeAppearanceSize:"size24_24",loaderAppearanceSize:"sizeL"},sizeM:{size:"m",labelTextSize:"m",iconAfterAppearanceSize:"size24_24",iconBeforeAppearanceSize:"size24_24",loaderAppearanceSize:"sizeL"},sizeS:{size:"s",labelTextSize:"s",iconAfterAppearanceSize:"size20_20",iconBeforeAppearanceSize:"size20_20",loaderAppearanceSize:"sizeL"},sizeXS:{size:"xs",labelTextSize:"xs",iconAfterAppearanceSize:"size16_16",iconBeforeAppearanceSize:"size16_16",loaderAppearanceSize:"sizeL"},sizeXXS:{size:"xxs",labelTextSize:"xs",iconAfterAppearanceSize:"size14_14",iconBeforeAppearanceSize:"size14_14",loaderAppearanceSize:"sizeL"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentMutedPrimary:{fill:"accentTertiary",fillHover:"accentHoverTertiary",labelTextColor:"accentTextQuaternary",labelTextColorHover:"accentTextQuaternary",borderColor:"accentBorderSecondary",iconAfterFillIcon:"accentItemQuaternary",iconBeforeFillIcon:"accentItemQuaternary",iconFillIcon:"accentItemQuaternary",loaderAppearance:"accentTertiary"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextPrimary",labelTextColorHover:"accentTextPrimary",borderColor:"accentBorderPrimary",iconAfterFillIcon:"accentItemPrimary",iconBeforeFillIcon:"accentItemPrimary",iconFillIcon:"accentItemPrimary",loaderAppearance:"accentPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextSecondary",borderColor:"accentBorderPrimary",iconAfterFillIcon:"accentItemPrimary",iconBeforeFillIcon:"accentItemPrimary",iconFillIcon:"accentItemPrimary",loaderAppearance:"accentPrimary"},dangerMutedPrimary:{fill:"dangerTertiary",fillHover:"dangerHoverPrimary",labelTextColor:"dangerTextQuaternary",labelTextColorHover:"dangerTextQuaternary",borderColor:"dangerBorderSecondary",iconAfterFillIcon:"dangerItemQuaternary",iconBeforeFillIcon:"dangerItemQuaternary",iconFillIcon:"dangerItemQuaternary",loaderAppearance:"dangerTertiary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary",labelTextColor:"dangerTextPrimary",labelTextColorHover:"dangerTextPrimary",iconAfterFillIcon:"dangerItemPrimary",iconBeforeFillIcon:"dangerItemPrimary",iconFillIcon:"dangerItemPrimary",loaderAppearance:"dangerPrimary"},errorMutedPrimary:{fill:"errorTertiary",fillHover:"errorHoverPrimary",labelTextColor:"errorTextQuaternary",labelTextColorHover:"errorTextQuaternary",borderColor:"errorBorderSecondary",iconAfterFillIcon:"errorItemQuaternary",iconBeforeFillIcon:"errorItemQuaternary",iconFillIcon:"errorItemQuaternary",loaderAppearance:"errorTertiary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",labelTextColor:"errorTextPrimary",labelTextColorHover:"errorTextPrimary",iconAfterFillIcon:"errorItemPrimary",iconBeforeFillIcon:"errorItemPrimary",iconFillIcon:"errorItemPrimary",loaderAppearance:"errorPrimary"},infoMutedPrimary:{fill:"infoTertiary",fillHover:"infoHoverTertiary",labelTextColor:"infoTextSecondary",labelTextColorHover:"infoTextSecondary",borderColor:"infoBorderSecondary",iconAfterFillIcon:"infoItemSecondary",iconBeforeFillIcon:"infoItemSecondary",iconFillIcon:"infoItemSecondary",loaderAppearance:"infoTertiary"},infoPrimary:{fill:"infoPrimary",fillHover:"infoHoverPrimary",labelTextColor:"infoTextPrimary",labelTextColorHover:"infoTextPrimary",borderColor:"infoBorderPrimary",iconAfterFillIcon:"infoItemPrimary",iconBeforeFillIcon:"infoItemPrimary",iconFillIcon:"infoItemPrimary",loaderAppearance:"infoPrimary"},infoSecondary:{fill:"infoPrimary",fillHover:"infoHoverPrimary",labelTextColor:"infoTextSecondary",labelTextColorHover:"infoTextSecondary",borderColor:"infoBorderPrimary",iconAfterFillIcon:"infoItemPrimary",iconBeforeFillIcon:"infoItemPrimary",iconFillIcon:"infoItemPrimary",loaderAppearance:"infoPrimary"},specialMutedPrimary:{fill:"specialTertiary",fillHover:"specialHoverPrimary",labelTextColor:"specialTextSecondary",borderColor:"specialBorderTertiary",iconAfterFillIcon:"specialItemSecondary",iconBeforeFillIcon:"specialItemSecondary",iconFillIcon:"specialItemSecondary",loaderAppearance:"specialTertiary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",labelTextColor:"specialTextPrimary",iconAfterFillIcon:"specialItemPrimary",iconBeforeFillIcon:"specialItemPrimary",iconFillIcon:"specialItemPrimary",loaderAppearance:"specialPrimary"},extraMutedPrimary:{fill:"extraTertiary",fillHover:"extraHoverPrimary",labelTextColor:"extraTextQuaternary",borderColor:"extraBorderSecondary",iconAfterFillIcon:"extraItemQuaternary",iconBeforeFillIcon:"extraItemQuaternary",iconFillIcon:"extraItemQuaternary",loaderAppearance:"extraPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",labelTextColor:"extraTextPrimary",iconAfterFillIcon:"extraItemPrimary",iconBeforeFillIcon:"extraItemPrimary",iconFillIcon:"extraItemPrimary",loaderAppearance:"extraPrimary"},successMutedPrimary:{fill:"successTertiary",fillHover:"successHoverPrimary",labelTextColor:"successTextQuaternary",labelTextColorHover:"successTextQuaternary",borderColor:"successBorderQuaternary",iconAfterFillIcon:"successItemQuaternary",iconBeforeFillIcon:"successItemQuaternary",iconFillIcon:"successItemQuaternary",loaderAppearance:"successTertiary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",labelTextColor:"successTextPrimary",labelTextColorHover:"successTextPrimary",iconAfterFillIcon:"successItemPrimary",iconBeforeFillIcon:"successItemPrimary",iconFillIcon:"successItemPrimary",loaderAppearance:"successPrimary"},surfaceMutedPrimary:{fill:"surfaceTertiary",fillHover:"surfaceTertiary",labelTextColor:"surfaceTextQuaternary",borderColor:"surfaceBorderQuaternary",iconAfterFillIcon:"surfaceItemQuaternary",iconBeforeFillIcon:"surfaceItemQuaternary",iconFillIcon:"surfaceItemQuaternary",loaderAppearance:"surfaceTertiary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceSecondary",labelTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary",iconFillIcon:"surfaceItemPrimary",loaderAppearance:"surfacePrimary"},surfaceQuaternary:{fill:"surfaceTertiary",fillHover:"surfaceTertiary",labelTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary",iconFillIcon:"surfaceItemPrimary",loaderAppearance:"surfacePrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceTertiary",labelTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary",iconFillIcon:"surfaceItemPrimary",loaderAppearance:"surfacePrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceSecondary",labelTextColor:"surfaceTextPrimary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary",iconFillIcon:"surfaceItemPrimary",loaderAppearance:"surfacePrimary"},warningMutedPrimary:{fill:"warningTertiary",fillHover:"warningHoverPrimary",labelTextColor:"warningTextSecondary",labelTextColorHover:"warningTextPrimary",borderColor:"warningBorderPrimary",iconAfterFillIcon:"warningItemSecondary",iconBeforeFillIcon:"warningItemSecondary",iconFillIcon:"warningItemSecondary",loaderAppearance:"warningTertiary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",labelTextColor:"warningTextPrimary",labelTextColorHover:"warningTextPrimary",iconAfterFillIcon:"warningItemPrimary",iconBeforeFillIcon:"warningItemPrimary",iconFillIcon:"warningItemPrimary",loaderAppearance:"warningPrimary"}},p={appearance:d},u=React__default.forwardRef(function(a,d){const{appearance:u,className:I,dataTestId:P,dataTour:T$1,label:x,Badge:b,href:S,htmlType:A="button",link:z,rel:F,target:C,tooltip:_,before:v,after:g,isDisabled:H,isHolding:B,isLoading:h=false,onClick:Q,onHoldComplete:w,onMouseDown:L,children:M}=a,$=e$1(u,p,H),N$1=p$2(a,$),{fillClass:k,fillHoverClass:X,labelTextColor:W,labelTextColorHover:D,labelTextSize:j,labelTextTruncate:E,labelTextWeight:G,labelTextWidth:R,labelTextWrap:U,borderColorClass:q,borderTypeClass:J,borderWidthClass:K,elevationClass:O,icon:V,iconAfter:Y,iconAfterAppearance:Z,iconAfterAppearanceSize:ee,iconAfterFill:re,iconAfterFillIcon:ae,iconAfterFillSize:oe,iconAfterShape:ie,iconAfterSize:le,iconAfterSrc:ne,iconAppearance:ce,iconAppearanceSize:te,iconBefore:se,iconBeforeAppearance:me,iconBeforeAppearanceSize:fe,iconBeforeFill:ye,iconBeforeFillIcon:de,iconBeforeFillSize:pe,iconBeforeShape:ue,iconBeforeSize:Ie,iconBeforeSrc:Pe,iconFill:Te,iconFillIcon:xe,iconFillSize:be,iconShape:Se,iconSize:Ae,iconSrc:ze,loaderAppearance:Fe,loaderAppearanceSize:Ce,loaderFill:_e,loaderItemFill:ve,loaderSize:ge,loaderType:He="dot",shapeClass:Be,shapeStrengthClass:he,sizeClass:Qe,widthClass:we,zeroGap:Le,zeroPadding:Me,isSkeleton:$e}=N$1,{label:Ne,styles:ke}=l(a),{holdState:Xe,onHoldEnd:We,onHoldStart:De}=u$2({holdDurationMs:500,isHolding:B,onHoldComplete:w}),je=g||v||V||Y||ne||se||Pe||ze;return jsxRuntimeExports.jsx(T,{className:clsx(I,"button",x&&je?"button_type_default":x?"button_type_label":je?"button_type_icon":"",K&&`border-width_${K}`,q&&`border-color_${q}`,J&&`border_type_${J}`,k&&`fill_${k}`,X&&!H&&`fill_hover_${X}`,Be&&`shape_${Be}`,he&&`shape-strength_${he}`,Qe&&`button_size_${Qe}`,we&&`button_width_${we}`,O&&`elevation_${O}`,Q&&"cursor_type_pointer",H&&"button_state_disabled cursor_type_default",b&&"button_type_badge",Me&&"button_reset-padding",Le&&"button_reset-gap",h&&"button_state_loading",$e&&"skeleton",B&&"button_holding",Xe&&`button_state_${Xe}`),type:A,title:_,"data-testid":P&&`${P}-button`,"data-tour":T$1,disabled:H,href:z||S,LinkComponent:"button",rel:F,style:ke,target:C,onClick:Q,onMouseDown:L,onPointerCancel:We,onPointerDown:De,onPointerLeave:We,onPointerUp:We,children:jsxRuntimeExports.jsxs("div",{className:"button__wrapper",ref:d,children:[B&&jsxRuntimeExports.jsx("div",{className:clsx("button__indication",`button__indication_${Xe}`),children:jsxRuntimeExports.jsx("div",{className:"button__indication-item",children:" "})}),h&&jsxRuntimeExports.jsx(m,{appearance:r(Fe,Ce),className:clsx(I,"button__loader"),type:He,size:ge,fill:_e,itemFill:ve}),v,(se||Pe)&&jsxRuntimeExports.jsx(N,{appearance:r(me,fe),className:"button__icon_before",fill:ye,fillSize:pe,iconFill:de,iconSize:Ie,imageSrc:Pe,shape:ue,SvgImage:se}),(V||ze)&&jsxRuntimeExports.jsx(N,{appearance:r(ce,te),className:"button__icon",fill:Te,fillSize:be,iconFill:xe,iconSize:Ae,imageSrc:ze,shape:Se,SvgImage:V}),(M||x)&&jsxRuntimeExports.jsx(_$1,{className:"button__label",width:R,size:j,textColor:W,textColorHover:D,textTruncate:E,textWeight:G,textWrap:U,style:Ne,children:M||x}),(Y||ne)&&jsxRuntimeExports.jsx(N,{appearance:r(Z,ee),className:"button__icon_after",fill:re,fillSize:oe,iconFill:ae,iconSize:le,imageSrc:ne,shape:ie,SvgImage:Y}),b,g]})})});
|
|
7870
|
+
const I="holding",P$1="idle";const T={sizeXXL:{size:"xxl",labelTextSize:"xl",iconAfterAppearanceSize:"size24_24",iconBeforeAppearanceSize:"size24_24",loaderAppearanceSize:"sizeL"},sizeXL:{size:"xl",labelTextSize:"l",iconAfterAppearanceSize:"size24_24",iconBeforeAppearanceSize:"size24_24",loaderAppearanceSize:"sizeL"},sizeL:{size:"l",labelTextSize:"l",iconAfterAppearanceSize:"size24_24",iconBeforeAppearanceSize:"size24_24",loaderAppearanceSize:"sizeL"},sizeM:{size:"m",labelTextSize:"m",iconAfterAppearanceSize:"size24_24",iconBeforeAppearanceSize:"size24_24",loaderAppearanceSize:"sizeL"},sizeS:{size:"s",labelTextSize:"s",iconAfterAppearanceSize:"size20_20",iconBeforeAppearanceSize:"size20_20",loaderAppearanceSize:"sizeL"},sizeXS:{size:"xs",labelTextSize:"xs",iconAfterAppearanceSize:"size16_16",iconBeforeAppearanceSize:"size16_16",loaderAppearanceSize:"sizeL"},sizeXXS:{size:"xxs",labelTextSize:"xs",iconAfterAppearanceSize:"size14_14",iconBeforeAppearanceSize:"size14_14",loaderAppearanceSize:"sizeL"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentMutedPrimary:{fill:"accentTertiary",fillHover:"accentHoverTertiary",labelTextColor:"accentTextQuaternary",labelTextColorHover:"accentTextQuaternary",borderColor:"accentBorderSecondary",iconAfterFillIcon:"accentItemQuaternary",iconBeforeFillIcon:"accentItemQuaternary",iconFillIcon:"accentItemQuaternary",loaderAppearance:"accentTertiary"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextPrimary",labelTextColorHover:"accentTextPrimary",borderColor:"accentBorderPrimary",iconAfterFillIcon:"accentItemPrimary",iconBeforeFillIcon:"accentItemPrimary",iconFillIcon:"accentItemPrimary",loaderAppearance:"accentPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextSecondary",borderColor:"accentBorderPrimary",iconAfterFillIcon:"accentItemPrimary",iconBeforeFillIcon:"accentItemPrimary",iconFillIcon:"accentItemPrimary",loaderAppearance:"accentPrimary"},dangerMutedPrimary:{fill:"dangerTertiary",fillHover:"dangerHoverPrimary",labelTextColor:"dangerTextQuaternary",labelTextColorHover:"dangerTextQuaternary",borderColor:"dangerBorderSecondary",iconAfterFillIcon:"dangerItemQuaternary",iconBeforeFillIcon:"dangerItemQuaternary",iconFillIcon:"dangerItemQuaternary",loaderAppearance:"dangerTertiary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary",labelTextColor:"dangerTextPrimary",labelTextColorHover:"dangerTextPrimary",iconAfterFillIcon:"dangerItemPrimary",iconBeforeFillIcon:"dangerItemPrimary",iconFillIcon:"dangerItemPrimary",loaderAppearance:"dangerPrimary"},errorMutedPrimary:{fill:"errorTertiary",fillHover:"errorHoverPrimary",labelTextColor:"errorTextQuaternary",labelTextColorHover:"errorTextQuaternary",borderColor:"errorBorderSecondary",iconAfterFillIcon:"errorItemQuaternary",iconBeforeFillIcon:"errorItemQuaternary",iconFillIcon:"errorItemQuaternary",loaderAppearance:"errorTertiary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",labelTextColor:"errorTextPrimary",labelTextColorHover:"errorTextPrimary",iconAfterFillIcon:"errorItemPrimary",iconBeforeFillIcon:"errorItemPrimary",iconFillIcon:"errorItemPrimary",loaderAppearance:"errorPrimary"},infoMutedPrimary:{fill:"infoTertiary",fillHover:"infoHoverTertiary",labelTextColor:"infoTextSecondary",labelTextColorHover:"infoTextSecondary",borderColor:"infoBorderSecondary",iconAfterFillIcon:"infoItemSecondary",iconBeforeFillIcon:"infoItemSecondary",iconFillIcon:"infoItemSecondary",loaderAppearance:"infoTertiary"},infoPrimary:{fill:"infoPrimary",fillHover:"infoHoverPrimary",labelTextColor:"infoTextPrimary",labelTextColorHover:"infoTextPrimary",borderColor:"infoBorderPrimary",iconAfterFillIcon:"infoItemPrimary",iconBeforeFillIcon:"infoItemPrimary",iconFillIcon:"infoItemPrimary",loaderAppearance:"infoPrimary"},infoSecondary:{fill:"infoPrimary",fillHover:"infoHoverPrimary",labelTextColor:"infoTextSecondary",labelTextColorHover:"infoTextSecondary",borderColor:"infoBorderPrimary",iconAfterFillIcon:"infoItemPrimary",iconBeforeFillIcon:"infoItemPrimary",iconFillIcon:"infoItemPrimary",loaderAppearance:"infoPrimary"},specialMutedPrimary:{fill:"specialTertiary",fillHover:"specialHoverPrimary",labelTextColor:"specialTextSecondary",borderColor:"specialBorderTertiary",iconAfterFillIcon:"specialItemSecondary",iconBeforeFillIcon:"specialItemSecondary",iconFillIcon:"specialItemSecondary",loaderAppearance:"specialTertiary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",labelTextColor:"specialTextPrimary",iconAfterFillIcon:"specialItemPrimary",iconBeforeFillIcon:"specialItemPrimary",iconFillIcon:"specialItemPrimary",loaderAppearance:"specialPrimary"},extraMutedPrimary:{fill:"extraTertiary",fillHover:"extraHoverPrimary",labelTextColor:"extraTextQuaternary",borderColor:"extraBorderSecondary",iconAfterFillIcon:"extraItemQuaternary",iconBeforeFillIcon:"extraItemQuaternary",iconFillIcon:"extraItemQuaternary",loaderAppearance:"extraPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",labelTextColor:"extraTextPrimary",iconAfterFillIcon:"extraItemPrimary",iconBeforeFillIcon:"extraItemPrimary",iconFillIcon:"extraItemPrimary",loaderAppearance:"extraPrimary"},successMutedPrimary:{fill:"successTertiary",fillHover:"successHoverPrimary",labelTextColor:"successTextQuaternary",labelTextColorHover:"successTextQuaternary",borderColor:"successBorderQuaternary",iconAfterFillIcon:"successItemQuaternary",iconBeforeFillIcon:"successItemQuaternary",iconFillIcon:"successItemQuaternary",loaderAppearance:"successTertiary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",labelTextColor:"successTextPrimary",labelTextColorHover:"successTextPrimary",iconAfterFillIcon:"successItemPrimary",iconBeforeFillIcon:"successItemPrimary",iconFillIcon:"successItemPrimary",loaderAppearance:"successPrimary"},surfaceMutedPrimary:{fill:"surfaceTertiary",fillHover:"surfaceTertiary",labelTextColor:"surfaceTextQuaternary",borderColor:"surfaceBorderQuaternary",iconAfterFillIcon:"surfaceItemQuaternary",iconBeforeFillIcon:"surfaceItemQuaternary",iconFillIcon:"surfaceItemQuaternary",loaderAppearance:"surfaceTertiary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceSecondary",labelTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary",iconFillIcon:"surfaceItemPrimary",loaderAppearance:"surfacePrimary"},surfaceQuaternary:{fill:"surfaceTertiary",fillHover:"surfaceTertiary",labelTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary",iconFillIcon:"surfaceItemPrimary",loaderAppearance:"surfacePrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceTertiary",labelTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary",iconFillIcon:"surfaceItemPrimary",loaderAppearance:"surfacePrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceSecondary",labelTextColor:"surfaceTextPrimary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary",iconFillIcon:"surfaceItemPrimary",loaderAppearance:"surfacePrimary"},warningMutedPrimary:{fill:"warningTertiary",fillHover:"warningHoverPrimary",labelTextColor:"warningTextSecondary",labelTextColorHover:"warningTextPrimary",borderColor:"warningBorderPrimary",iconAfterFillIcon:"warningItemSecondary",iconBeforeFillIcon:"warningItemSecondary",iconFillIcon:"warningItemSecondary",loaderAppearance:"warningTertiary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",labelTextColor:"warningTextPrimary",labelTextColorHover:"warningTextPrimary",iconAfterFillIcon:"warningItemPrimary",iconBeforeFillIcon:"warningItemPrimary",iconFillIcon:"warningItemPrimary",loaderAppearance:"warningPrimary"}},x$1={appearance:T},b=React__default.forwardRef(function(a,T){const{appearance:b,className:S,dataTestId:A,dataTour:F,label:z,Badge:C,href:_,htmlType:g="button",link:v,rel:H,target:B,tooltip:h,before:Q,after:w,isDisabled:L,isHolding:M,isLoading:$=false,onClick:N$1,onHoldComplete:k,onMouseDown:X,children:D}=a,W=e$1(b,x$1,L),j=p(a,W),{fillClass:q,fillHoverClass:E,labelTextColor:G,labelTextColorHover:R,labelTextSize:U,labelTextTruncate:J,labelTextWeight:K,labelTextWidth:O,labelTextWrap:V,borderColorClass:Y,borderTypeClass:Z,borderWidthClass:ee,elevationClass:re,icon:ae,iconAfter:oe,iconAfterAppearance:ie,iconAfterAppearanceSize:le,iconAfterFill:ne,iconAfterFillIcon:te,iconAfterFillSize:ce,iconAfterShape:se,iconAfterSize:me,iconAfterSrc:fe,iconAppearance:ye,iconAppearanceSize:de,iconBefore:pe,iconBeforeAppearance:ue,iconBeforeAppearanceSize:Ie,iconBeforeFill:Pe,iconBeforeFillIcon:Te,iconBeforeFillSize:xe,iconBeforeShape:be,iconBeforeSize:Se,iconBeforeSrc:Ae,iconFill:Fe,iconFillIcon:ze,iconFillSize:Ce,iconShape:_e,iconSize:ge,iconSrc:ve,loaderAppearance:He,loaderAppearanceSize:Be,loaderFill:he,loaderItemFill:Qe,loaderSize:we,loaderType:Le="dot",shapeClass:Me,shapeStrengthClass:$e,sizeClass:Ne,widthClass:ke,zeroGap:Xe,zeroPadding:De,isSkeleton:We}=j,{label:je,styles:qe}=l(a),{holdState:Ee,onHoldEnd:Ge,onHoldStart:Re}=function(e){const{holdDurationMs:r=500,isHolding:a,onHoldComplete:t}=e,c=useRef(null),s=useRef(t),[m,f]=useState(P$1),y=useRef(0);s.current=t,useEffect(()=>(c.current=requestAnimationFrame(function e(){if(m===I&&1===y.current&&s.current&&s.current(),m===I&&y.current<1){const a=y.current,o=Math.min(a+16/r,1);y.current=o,c.current=requestAnimationFrame(e);}if(m===P$1&&y.current>0){const a=y.current,o=Math.max(a-16/r,0);y.current=o,c.current=requestAnimationFrame(e);}}),()=>{c.current&&cancelAnimationFrame(c.current);}),[m,r]);const d=useCallback(e=>{a&&("touch"!==e.pointerType&&0!==e.button||f(I));},[a]),p=useCallback(e=>{f(P$1);},[]);return {holdState:m,onHoldEnd:p,onHoldStart:d}}({holdDurationMs:500,isHolding:M,onHoldComplete:k}),Ue=w||Q||ae||oe||fe||pe||Ae||ve;return jsxRuntimeExports.jsx(T$1,{className:clsx(S,"button",z&&Ue?"button_type_default":z?"button_type_label":Ue?"button_type_icon":"",ee&&`border-width_${ee}`,Y&&`border-color_${Y}`,Z&&`border_type_${Z}`,q&&`fill_${q}`,E&&!L&&`fill_hover_${E}`,Me&&`shape_${Me}`,$e&&`shape-strength_${$e}`,Ne&&`button_size_${Ne}`,ke&&`button_width_${ke}`,re&&`elevation_${re}`,N$1&&"cursor_type_pointer",L&&"button_state_disabled cursor_type_default",C&&"button_type_badge",De&&"button_reset-padding",Xe&&"button_reset-gap",$&&"button_state_loading",We&&"skeleton",M&&"button_holding",Ee&&`button_state_${Ee}`),type:g,title:h,"data-testid":A&&`${A}-button`,"data-tour":F,disabled:L,href:v||_,LinkComponent:"button",rel:H,style:qe,target:B,onClick:N$1,onMouseDown:X,onPointerCancel:Ge,onPointerDown:Re,onPointerLeave:Ge,onPointerUp:Ge,children:jsxRuntimeExports.jsxs("div",{className:"button__wrapper",ref:T,children:[M&&jsxRuntimeExports.jsx("div",{className:clsx("button__indication",`button__indication_${Ee}`),children:jsxRuntimeExports.jsx("div",{className:"button__indication-item",children:" "})}),$&&jsxRuntimeExports.jsx(m,{appearance:r(He,Be),className:clsx(S,"button__loader"),type:Le,size:we,fill:he,itemFill:Qe}),Q,(pe||Ae)&&jsxRuntimeExports.jsx(N,{appearance:r(ue,Ie),className:"button__icon_before",fill:Pe,fillSize:xe,iconFill:Te,iconSize:Se,imageSrc:Ae,shape:be,SvgImage:pe}),(ae||ve)&&jsxRuntimeExports.jsx(N,{appearance:r(ye,de),className:"button__icon",fill:Fe,fillSize:Ce,iconFill:ze,iconSize:ge,imageSrc:ve,shape:_e,SvgImage:ae}),(D||z)&&jsxRuntimeExports.jsx(_$1,{className:"button__label",width:O,size:U,textColor:G,textColorHover:R,textTruncate:J,textWeight:K,textWrap:V,style:je,children:D||z}),(oe||fe)&&jsxRuntimeExports.jsx(N,{appearance:r(ie,le),className:"button__icon_after",fill:ne,fillSize:ce,iconFill:te,iconSize:me,imageSrc:fe,shape:se,SvgImage:oe}),C,w]})})});
|
|
7875
7871
|
|
|
7876
7872
|
var _;function nn(){return nn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r]);}return n},nn.apply(null,arguments)}const Vn={Action:{Close:function(e){return React.createElement("svg",nn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},e),_||(_=React.createElement("path",{d:"M19.722 4.703a.95.95 0 0 0-1.343 0L12 11.082l-6.379-6.38a.95.95 0 1 0-1.343 1.344l6.38 6.379-6.38 6.378a.95.95 0 1 0 1.343 1.343L12 13.767l6.379 6.38a.95.95 0 1 0 1.343-1.343l-6.38-6.38 6.38-6.378a.95.95 0 0 0 0-1.343"})))}}};
|
|
7877
7873
|
|
|
7878
|
-
const f={...{defaultPrimary:{fill:"surfacePrimary",fillHover:"surfacePrimary",titleTextColor:"surfaceTextPrimary",descTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary",buttonAppearance:"accentPrimary sizeXXL solid rounded",loaderAppearance:"accentTertiary sizeS ghost rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"surfacePrimary ghost circular"}},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},sizeM:{size:"m",titleTextSize:"xxl",descTextSize:"m",loaderAppearanceSize:"sizeS",closeIconAppearanceSize:"size24_24"},sizeS:{size:"m",titleTextSize:"xl",descTextSize:"m",loaderAppearanceSize:"sizeS",closeIconAppearanceSize:"size24_24"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},...{errorPrimary:{fill:"errorPrimary",fillHover:"errorPrimary",titleTextColor:"errorTextPrimary",descTextColor:"errorTextPrimary",borderColor:"errorBorderPrimary",textColor:"errorTextPrimary",buttonAppearance:"surfacePrimary sizeXXL solid rounded",loaderAppearance:"errorPrimary sizeS solid rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"surfacePrimary solid circular"}},...{infoPrimary:{fill:"infoPrimary",fillHover:"infoPrimary",titleTextColor:"infoTextPrimary",descTextColor:"infoTextPrimary",borderColor:"infoBorderPrimary",textColor:"infoTextPrimary",buttonAppearance:"surfacePrimary sizeXXL solid rounded",loaderAppearance:"infoPrimary sizeS solid rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"surfacePrimary solid circular"}},...{successPrimary:{fill:"successPrimary",fillHover:"successPrimary",titleTextColor:"successTextPrimary",descTextColor:"successTextPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary",buttonAppearance:"surfacePrimary sizeXXL solid rounded",loaderAppearance:"successPrimary sizeS solid rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"successPrimary ghost circular"}},...{warningPrimary:{fill:"warningPrimary",fillHover:"warningPrimary",titleTextColor:"warningTextPrimary",descTextColor:"warningTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"warningTextPrimary",buttonAppearance:"surfacePrimary sizeXXL solid rounded",loaderAppearance:"warningPrimary sizeS solid rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"surfacePrimary solid circular"}}},y={appearance:f};function x(p){const{id:m$1,appearance:u
|
|
7874
|
+
const f={...{defaultPrimary:{fill:"surfacePrimary",fillHover:"surfacePrimary",titleTextColor:"surfaceTextPrimary",descTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary",buttonAppearance:"accentPrimary sizeXXL solid rounded",loaderAppearance:"accentTertiary sizeS ghost rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"surfacePrimary ghost circular"}},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded",shapeStrength:"2m"},roundedL:{shape:"rounded",shapeStrength:"1_5m"},roundedM:{shape:"rounded",shapeStrength:"1m"},roundedS:{shape:"rounded",shapeStrength:"0_5m"},sizeM:{size:"m",titleTextSize:"xxl",descTextSize:"m",loaderAppearanceSize:"sizeS",closeIconAppearanceSize:"size24_24"},sizeS:{size:"m",titleTextSize:"xl",descTextSize:"m",loaderAppearanceSize:"sizeS",closeIconAppearanceSize:"size24_24"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},...{errorPrimary:{fill:"errorPrimary",fillHover:"errorPrimary",titleTextColor:"errorTextPrimary",descTextColor:"errorTextPrimary",borderColor:"errorBorderPrimary",textColor:"errorTextPrimary",buttonAppearance:"surfacePrimary sizeXXL solid rounded",loaderAppearance:"errorPrimary sizeS solid rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"surfacePrimary solid circular"}},...{infoPrimary:{fill:"infoPrimary",fillHover:"infoPrimary",titleTextColor:"infoTextPrimary",descTextColor:"infoTextPrimary",borderColor:"infoBorderPrimary",textColor:"infoTextPrimary",buttonAppearance:"surfacePrimary sizeXXL solid rounded",loaderAppearance:"infoPrimary sizeS solid rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"surfacePrimary solid circular"}},...{successPrimary:{fill:"successPrimary",fillHover:"successPrimary",titleTextColor:"successTextPrimary",descTextColor:"successTextPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary",buttonAppearance:"surfacePrimary sizeXXL solid rounded",loaderAppearance:"successPrimary sizeS solid rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"successPrimary ghost circular"}},...{warningPrimary:{fill:"warningPrimary",fillHover:"warningPrimary",titleTextColor:"warningTextPrimary",descTextColor:"warningTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"warningTextPrimary",buttonAppearance:"surfacePrimary sizeXXL solid rounded",loaderAppearance:"warningPrimary sizeS solid rounded",closeIcon:Vn.Action.Close,closeIconAppearance:"surfacePrimary solid circular"}}},y={appearance:f};function x(p$1){const{id:m$1,appearance:u,className:f,dataTestId:x,dataTour:P,type:C="float",title:_,text:T,before:h,after:z,isSkeleton:S,isLoading:A,onClickButton:I,onClickClose:g}=p$1,b$1=e$1(u,y),v=p(p$1,b$1),{fillClass:L,fillHoverClass:w,titleTextColor:N$1,titleTextSize:X,descTextColor:k,descTextSize:B,buttonAppearance:$,buttonLabel:H,elevationClass:j,loaderAppearance:F,loaderAppearanceSize:M,loaderFill:q,loaderItemFill:D,loaderSize:E,loaderType:G="dot",shapeClass:J,shapeStrengthClass:K,sizeClass:O,widthClass:Q,closeIcon:R,closeIconAppearance:U,closeIconAppearanceSize:V,closeIconSrc:W}=v,{styles:Y}=l(p$1);return jsxRuntimeExports.jsxs("div",{className:clsx("notification__item",`notification__item_${C}`,Q&&`width_${Q}`,j&&`elevation_${j}`,L&&`fill_${L}`,O&&`notification__item_size_${O}`,C&&`notification__item_type_${C}`,w&&`fill_${w}`,S&&"skeleton",J&&`shape_${J}`,K&&`shape-strength_${K}`),"data-testid":x,"data-tour":P,style:Y,children:[h,jsxRuntimeExports.jsxs("div",{className:clsx(f,"notification__item-wrapper"),children:[_&&jsxRuntimeExports.jsx(_$1,{className:"notification__item-title",size:X,textColor:N$1,children:_}),T&&jsxRuntimeExports.jsx(_$1,{className:"notification__item-text",size:B,textColor:k,children:T}),A&&jsxRuntimeExports.jsx(m,{appearance:r(F,M),className:clsx(f,"button__loader"),type:G,size:E,fill:q,itemFill:D}),g&&jsxRuntimeExports.jsx(N,{appearance:r(U,V),className:clsx("notification__item-close","cursor_type_pointer"),imageSrc:W,SvgImage:R,onClick:()=>g&&g(m$1)}),I&&H&&jsxRuntimeExports.jsx(b,{appearance:$,className:"notification__item-button",width:"fill",label:H,onClick:I})]}),z]})}function P(e){const i=f$2(),{hideNotifications:a}=g$1(),{className:t,dataTestId:s,dataTour:c}=e;return jsxRuntimeExports.jsx("div",{className:clsx("notification",t),"data-testid":s,"data-tour":c,children:jsxRuntimeExports.jsx("div",{className:"notification__wrapper",children:i.map(e=>jsxRuntimeExports.jsx(x,{id:e.id,appearance:e.appearance,type:e.type,title:e.title,status:e.status,text:e.text,buttonLabel:e.buttonLabel,after:e.after,closeIcon:e.closeIcon,closeIconSrc:e.closeIconSrc,isLoading:e.isLoading,onClickButton:e.onClickButton,onClickClose:a},e.id))})})}
|
|
7879
7875
|
|
|
7880
|
-
export { P, d
|
|
7876
|
+
export { P, d, m$1 as m };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _rollupPluginBabelHelpers = require('../../_rollupPluginBabelHelpers-Wvf9ehn_.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var Notification = require('../../Notification-
|
|
5
|
+
var Notification = require('../../Notification-DPozMFZR.js');
|
|
6
6
|
require('@itcase/common');
|
|
7
7
|
require('lodash/camelCase');
|
|
8
8
|
require('lodash/castArray');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var Notification = require('../../Notification-
|
|
4
|
+
var Notification = require('../../Notification-DPozMFZR.js');
|
|
5
5
|
require('@itcase/common');
|
|
6
6
|
require('lodash/camelCase');
|
|
7
7
|
require('lodash/castArray');
|
package/dist/cjs/decorators.js
CHANGED
|
@@ -14,7 +14,7 @@ require('./components/FormSubmitWrapper.js');
|
|
|
14
14
|
require('lodash/camelCase');
|
|
15
15
|
require('@itcase/common');
|
|
16
16
|
require('msw');
|
|
17
|
-
require('../Notification-
|
|
17
|
+
require('../Notification-DPozMFZR.js');
|
|
18
18
|
require('lodash/upperFirst');
|
|
19
19
|
require('lodash/maxBy');
|
|
20
20
|
require('react-dom');
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import path from 'node:path'
|
|
2
2
|
|
|
3
3
|
import svgr from 'vite-plugin-svgr'
|
|
4
|
-
import tsconfigPaths from 'vite-tsconfig-paths'
|
|
5
4
|
|
|
6
5
|
const MAIN_CONFIG_VITE = {
|
|
7
|
-
async
|
|
6
|
+
viteFinal: async function (config) {
|
|
8
7
|
const { mergeConfig } = await import('vite')
|
|
9
8
|
const existingHmr = config.server?.hmr
|
|
10
9
|
const existingWatch = config.server?.watch
|
|
@@ -36,15 +35,15 @@ const MAIN_CONFIG_VITE = {
|
|
|
36
35
|
},
|
|
37
36
|
optimizeDeps: {
|
|
38
37
|
...config.optimizeDeps,
|
|
39
|
-
|
|
40
|
-
...config.optimizeDeps?.
|
|
41
|
-
sourcemap: true,
|
|
38
|
+
rolldownOptions: {
|
|
39
|
+
...config.optimizeDeps?.rolldownOptions,
|
|
42
40
|
},
|
|
43
41
|
},
|
|
44
|
-
plugins: [
|
|
42
|
+
plugins: [svgr({ include: '**/*.svg' })],
|
|
45
43
|
resolve: {
|
|
46
44
|
...config.resolve,
|
|
47
|
-
alias,
|
|
45
|
+
alias: alias,
|
|
46
|
+
tsconfigPaths: true,
|
|
48
47
|
},
|
|
49
48
|
root: projectRoot,
|
|
50
49
|
// Улучшаем HMR для более быстрого обновления и работы с DevTools
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as _objectWithoutProperties } from '../_rollupPluginBabelHelpers-47UUmXIE.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { d, m, P } from '../Notification-
|
|
3
|
+
import { d, m, P } from '../Notification-Dr6__aPv.js';
|
|
4
4
|
import '@itcase/common';
|
|
5
5
|
import 'lodash/camelCase';
|
|
6
6
|
import 'lodash/castArray';
|
package/dist/decorators.js
CHANGED
|
@@ -12,7 +12,7 @@ import './components/FormSubmitWrapper.js';
|
|
|
12
12
|
import 'lodash/camelCase';
|
|
13
13
|
import '@itcase/common';
|
|
14
14
|
import 'msw';
|
|
15
|
-
import './Notification-
|
|
15
|
+
import './Notification-Dr6__aPv.js';
|
|
16
16
|
import 'lodash/upperFirst';
|
|
17
17
|
import 'lodash/maxBy';
|
|
18
18
|
import 'react-dom';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/storybook-config",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.50",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Storybook configuration package",
|
|
6
6
|
"engines": {
|
|
@@ -83,31 +83,31 @@
|
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"@gorhom/bottom-sheet": "^5.2.8",
|
|
86
|
-
"@itcase/config": "^1.6.
|
|
86
|
+
"@itcase/config": "^1.6.53",
|
|
87
87
|
"@itcase/storybook-addon-auth": "^1.0.5",
|
|
88
88
|
"@react-native-async-storage/async-storage": "^3.0.1",
|
|
89
89
|
"@react-native-community/datetimepicker": "^9.1.0",
|
|
90
90
|
"@storybook/addon-designs": "^11.1.2",
|
|
91
|
-
"@storybook/addon-docs": "^10.
|
|
92
|
-
"@storybook/addon-links": "^10.
|
|
91
|
+
"@storybook/addon-docs": "^10.3.0",
|
|
92
|
+
"@storybook/addon-links": "^10.3.0",
|
|
93
93
|
"@storybook/addon-ondevice-actions": "10.2.3",
|
|
94
94
|
"@storybook/addon-ondevice-backgrounds": "10.2.3",
|
|
95
95
|
"@storybook/addon-ondevice-controls": "10.2.3",
|
|
96
96
|
"@storybook/addon-ondevice-notes": "^10.2.3",
|
|
97
97
|
"@storybook/addon-react-native-web": "^0.0.29",
|
|
98
|
-
"@storybook/addon-styling-webpack": "^3.0.
|
|
99
|
-
"@storybook/addon-themes": "^10.
|
|
100
|
-
"@storybook/addon-vitest": "^10.
|
|
98
|
+
"@storybook/addon-styling-webpack": "^3.0.1",
|
|
99
|
+
"@storybook/addon-themes": "^10.3.0",
|
|
100
|
+
"@storybook/addon-vitest": "^10.3.0",
|
|
101
101
|
"@storybook/addon-webpack5-compiler-swc": "^4.0.2",
|
|
102
|
-
"@storybook/builder-vite": "^10.
|
|
103
|
-
"@storybook/nextjs": "^10.
|
|
104
|
-
"@storybook/nextjs-vite": "^10.
|
|
105
|
-
"@storybook/react": "^10.
|
|
102
|
+
"@storybook/builder-vite": "^10.3.0",
|
|
103
|
+
"@storybook/nextjs": "^10.3.0",
|
|
104
|
+
"@storybook/nextjs-vite": "^10.3.0",
|
|
105
|
+
"@storybook/react": "^10.3.0",
|
|
106
106
|
"@storybook/react-native": "10.2.3",
|
|
107
107
|
"@storybook/react-native-ui-lite": "10.2.3",
|
|
108
|
-
"@storybook/react-native-web-vite": "^10.
|
|
109
|
-
"@storybook/react-vite": "^10.
|
|
110
|
-
"@storybook/react-webpack5": "^10.
|
|
108
|
+
"@storybook/react-native-web-vite": "^10.3.0",
|
|
109
|
+
"@storybook/react-vite": "^10.3.0",
|
|
110
|
+
"@storybook/react-webpack5": "^10.3.0",
|
|
111
111
|
"@vitejs/plugin-react": "^6.0.1",
|
|
112
112
|
"@vitest/browser-playwright": "^4.1.0",
|
|
113
113
|
"babel-loader": "^10.1.1",
|
|
@@ -121,13 +121,13 @@
|
|
|
121
121
|
"react-native-gesture-handler": "^2.30.0",
|
|
122
122
|
"react-native-reanimated": "^4.2.2",
|
|
123
123
|
"react-native-safe-area-context": "^5.7.0",
|
|
124
|
-
"react-native-svg": "^15.15.
|
|
124
|
+
"react-native-svg": "^15.15.4",
|
|
125
125
|
"react-native-web": "^0.21.2",
|
|
126
126
|
"react-native-worklets": "^0.7.4",
|
|
127
|
-
"storybook": "^10.
|
|
127
|
+
"storybook": "^10.3.0",
|
|
128
128
|
"storybook-addon-source-link": "^2.0.1",
|
|
129
|
-
"vite": "^8.0.
|
|
130
|
-
"vite-plugin-babel": "^1.
|
|
129
|
+
"vite": "^8.0.1",
|
|
130
|
+
"vite-plugin-babel": "^1.6.0",
|
|
131
131
|
"vite-plugin-svgr": "^4.5.0",
|
|
132
132
|
"vite-tsconfig-paths": "^6.1.1",
|
|
133
133
|
"vitest": "^4.1.0"
|
|
@@ -141,8 +141,8 @@
|
|
|
141
141
|
"@commitlint/config-conventional": "^20.5.0",
|
|
142
142
|
"@itcase/common": "^1.2.41",
|
|
143
143
|
"@itcase/lint": "^1.1.102",
|
|
144
|
-
"@itcase/ui-core": "^1.9.
|
|
145
|
-
"@itcase/ui-web": "^1.9.
|
|
144
|
+
"@itcase/ui-core": "^1.9.81",
|
|
145
|
+
"@itcase/ui-web": "^1.9.81",
|
|
146
146
|
"@react-native-community/cli": "20.1.2",
|
|
147
147
|
"@react-native-community/cli-platform-android": "20.1.2",
|
|
148
148
|
"@react-native-community/cli-platform-ios": "20.1.2",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"@rollup/plugin-commonjs": "^29.0.2",
|
|
155
155
|
"@rollup/plugin-json": "^6.1.0",
|
|
156
156
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
157
|
-
"@storybook/addon-docs": "^10.
|
|
157
|
+
"@storybook/addon-docs": "^10.3.0",
|
|
158
158
|
"@types/react": "^18",
|
|
159
159
|
"@types/react-dom": "^18",
|
|
160
160
|
"react-docgen": "^8.0.3",
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"glob": "^13.0.6",
|
|
166
166
|
"husky": "^9.1.7",
|
|
167
167
|
"lint-staged": "^16.4.0",
|
|
168
|
-
"next": "^16.
|
|
168
|
+
"next": "^16.2.0",
|
|
169
169
|
"prettier": "^3.8.1",
|
|
170
170
|
"react": "^18",
|
|
171
171
|
"react-dom": "^18",
|
|
@@ -177,6 +177,6 @@
|
|
|
177
177
|
"semantic-release": "^25.0.3",
|
|
178
178
|
"stylelint": "^17.4.0",
|
|
179
179
|
"typescript": "^5.9.3",
|
|
180
|
-
"vite": "^8.0.
|
|
180
|
+
"vite": "^8.0.1"
|
|
181
181
|
}
|
|
182
182
|
}
|