@iota/apps-ui-kit 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/index.d.ts +11 -2
- package/dist/index.es.js +1194 -1153
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +15 -15
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -8
- package/src/lib/components/atoms/divider/Divider.tsx +2 -3
- package/src/lib/components/atoms/info-box/InfoBox.tsx +1 -1
- package/src/lib/components/atoms/key-value-info/KeyValueInfo.tsx +2 -2
- package/src/lib/components/atoms/tooltip/Tooltip.tsx +50 -9
- package/src/lib/components/molecules/card/CardAction.tsx +1 -1
- package/src/lib/components/molecules/card/CardBody.tsx +1 -1
- package/src/lib/components/molecules/select/Select.tsx +1 -2
- package/src/lib/components/organisms/table/Table.tsx +21 -3
- package/src/lib/constants/index.ts +1 -0
- package/src/lib/constants/interactive.constants.ts +19 -0
- package/src/lib/styles/base.css +3 -2
- package/src/lib/tailwind/base.presets.ts +2 -2
- package/src/lib/tailwind/plugins.ts +14 -0
- package/src/storybook/stories/atoms/Panel.stories.tsx +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`react/jsx-runtime`),require(`react`),require(`react-dom`)):typeof define==`function`&&define.amd?define([`exports`,`react/jsx-runtime`,`react`,`react-dom`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`@iota/apps-ui-kit`]={},e.react_jsx_runtime,e.React,e.ReactDOM))})(this,function(e,t,n,r){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=s(t),c=0,u=i.length,d;c<u;c++)d=i[c],!l.call(e,d)&&d!==n&&a(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=o(t,d))||r.enumerable});return e},f=(e,t,n)=>(n=e==null?{}:i(c(e)),d(t||!e||!e.__esModule?a(n,`default`,{value:e,enumerable:!0}):n,e));let p=f(n,1);n=f(n),r=f(r,1);var m=function(e){return e.Sm=`sm`,e.Md=`md`,e.Lg=`lg`,e.Xl=`xl`,e}({}),h=function(e){return e.Light=`light`,e.Dark=`dark`,e.Names=`names`,e}({}),g=(e,t=16)=>`${e/t}rem`;function _(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]=`${n}px`,e),{})}var v={"iota-primary":{0:`#000000`,10:`#061244`,20:`#182b8a`,30:`#3131ff`,40:`#2563f5`,50:`#3f80f0`,60:`#5b9cfe`,70:`#85b5fb`,80:`#adceff`,90:`#d5e8ff`,100:`#ffffff`},"iota-secondary":{0:`#000000`,10:`#051631`,20:`#17345f`,30:`#2d4c7a`,40:`#4b648a`,50:`#637ca2`,60:`#7e97bd`,70:`#96b3d5`,80:`#b6cde8`,90:`#dde9f7`,100:`#ffffff`},"iota-tertiary":{0:`#000000`,10:`#071f22`,20:`#18393b`,30:`#185b60`,40:`#317479`,50:`#498c91`,60:`#64a7ac`,70:`#7fc2c7`,80:`#9adde2`,90:`#c2f1f4`,100:`#ffffff`},"iota-error":{0:`#000000`,10:`#330009`,20:`#610012`,30:`#b51431`,40:`#ce2d4a`,50:`#e64562`,60:`#ff607d`,70:`#ff889e`,80:`#ffb0be`,90:`#ffd9e0`,100:`#ffffff`},"iota-neutral":{0:`#000000`,4:`#0a0f17`,6:`#0f141c`,10:`#171d26`,12:`#1c212b`,20:`#253041`,30:`#3c4656`,40:`#545e6e`,50:`#6e7787`,60:`#8892a1`,70:`#a8b2c0`,80:`#cad4e2`,90:`#dde4f0`,92:`#e3eaf6`,96:`#eff4fa`,98:`#f8fafc`,100:`#ffffff`},"iota-warning":{0:`#000000`,10:`#2D1E00`,20:`#422C00`,30:`#674500`,40:`#8C5D00`,50:`#A47518`,60:`#BE8F32`,70:`#D9AA4D`,80:`#F4C568`,90:`#FFE3AB`,100:`#FFFFFF`}},y={"names-primary":{0:`#000000`,10:`#061244`,20:`#182b8a`,30:`#3131ff`,40:`#2563f5`,50:`#3f80f0`,60:`#5b9cfe`,70:`#85b5fb`,80:`#adceff`,90:`#d5e8ff`,100:`#ffffff`},"names-secondary":{0:`#000000`,10:`#051631`,20:`#17345f`,30:`#2d4c7a`,40:`#4b648a`,50:`#637ca2`,60:`#7e97bd`,70:`#96b3d5`,80:`#b6cde8`,90:`#dde9f7`,100:`#ffffff`},"names-tertiary":{0:`#000000`,10:`#00231F`,20:`#00453D`,30:`#00685C`,40:`#008C7C`,50:`#00AF9B`,60:`#00D7BE`,70:`#17F3D9`,80:`#54FFEB`,90:`#A6FFF4`,100:`#ffffff`},"names-error":{0:`#000000`,10:`#3D001F`,20:`#620432`,30:`#A30251`,40:`#C90E6A`,50:`#DC2B82`,60:`#E35A9E`,70:`#EF84B9`,80:`#FCADD4`,90:`#FFD7EB`,100:`#ffffff`},"names-neutral":{0:`#000000`,4:`#0A0D23`,6:`#0F1228`,10:`#181B31`,12:`#20233C`,20:`#2B2E45`,30:`#404359`,40:`#585B71`,50:`#71748B`,60:`#8C8FA5`,70:`#ACAFC5`,80:`#CED1E7`,90:`#DFE2F8`,92:`#E5E8FE`,96:`#F0F2FF`,98:`#F8F9FF`,100:`#ffffff`},"names-solid":{blue:`#3131FF`,purple:`#A139FF`,green:`#14F0D6`,neutral:`#20233C`},"names-warning":{0:`#000000`,10:`#2D1E00`,20:`#422C00`,30:`#674500`,40:`#8C5D00`,50:`#A47518`,60:`#BE8F32`,70:`#D9AA4D`,80:`#F4C568`,90:`#FFE3AB`,100:`#FFFFFF`}},b={"shader-primary-dark":{0:`#bed8ff00`,8:`#bed8ff14`,12:`#bed8ff1e`,16:`#bed8ff28`,48:`#bed8ff7a`,72:`#bed8ffb7`,100:`#bed8ff`},"shader-inverted-dark":{0:`#002f6d00`,8:`#002f6d14`,12:`#002f6d1e`,16:`#002f6d28`,48:`#002f6d7a`,72:`#002f6db7`,100:`#002f6d`},"shader-neutral-dark":{0:`#bed8ff00`,8:`#bed8ff14`,12:`#bed8ff1e`,16:`#bed8ff28`,48:`#bed8ff7a`,72:`#bed8ffb7`,100:`#bed8ff`},"shader-primary-light":{0:`#0067ee00`,8:`#0067ee14`,12:`#0067ee1e`,16:`#0067ee28`,48:`#0067ee7a`,72:`#0067eeb7`,100:`#0067ee`},"shader-inverted-light":{0:`#bed8ff00`,8:`#bed8ff14`,12:`#bed8ff1e`,16:`#bed8ff28`,48:`#bed8ff7a`,72:`#bed8ffb7`,100:`#bed8ff`},"shader-neutral-light":{0:`#002f6d00`,8:`#002f6d14`,12:`#002f6d1e`,16:`#002f6d28`,48:`#002f6d7a`,72:`#002f6db7`,100:`#002f6d`}},x={none:g(0),sm:g(2),DEFAULT:g(4),md:g(6),lg:g(8),xl:g(12),"2xl":g(16),"3xl":g(24),full:g(120)},S={none:g(0),xxxs:g(2),xxs:g(4),xs:g(8),sm:g(12),md:g(16),lg:g(24),xl:g(32),"2xl":g(48)},C={0:`0`,8:`0.08`,12:`0.12`,16:`0.16`,40:`0.4`,60:`0.6`,80:`0.8`,100:`1`},w={"text-label-sm":[`11px`,{lineHeight:`16px`,letterSpacing:`0.2px`,fontWeight:500}],"text-label-md":[`12px`,{lineHeight:`16px`,letterSpacing:`-0.1px`,fontWeight:500}],"text-label-lg":[`14px`,{lineHeight:`20px`,letterSpacing:`-0.1px`,fontWeight:500}]},T={"text-body-sm":[`12px`,{lineHeight:`16px`,letterSpacing:`0.1px`,fontWeight:400}],"text-body-md":[`14px`,{lineHeight:`20px`,letterSpacing:`-0.1px`,fontWeight:400}],"text-body-lg":[`16px`,{lineHeight:`24px`,letterSpacing:`0.1px`,fontWeight:400}]},E={"text-body-ds-sm":[`12px`,{lineHeight:`16px`,letterSpacing:`0.1px`,fontWeight:400}],"text-body-ds-md":[`14px`,{lineHeight:`20px`,letterSpacing:`-0.1px`,fontWeight:400}],"text-body-ds-lg":[`16px`,{lineHeight:`24px`,letterSpacing:`0.2px`,fontWeight:400}]},D={"text-title-sm":[`14px`,{lineHeight:`120%`,letterSpacing:`-0.1px`,fontWeight:500}],"text-title-md":[`16px`,{lineHeight:`120%`,letterSpacing:`-0.15px`,fontWeight:500}],"text-title-lg":[`20px`,{lineHeight:`120%`,letterSpacing:`-0.4px`,fontWeight:500}]},ee={"text-headline-sm":[`24px`,{lineHeight:`120%`,fontWeight:`var(--headline-sm-font-weight)`,letterSpacing:`-0.2px`}],"text-headline-md":[`28px`,{lineHeight:`120%`,fontWeight:`var(--headline-md-font-weight)`,letterSpacing:`-0.4px`}],"text-headline-lg":[`32px`,{lineHeight:`120%`,fontWeight:`var(--headline-lg-font-weight)`,letterSpacing:`-0.4px`}]},O={"text-display-sm":[`36px`,{lineHeight:`var(--display-sm-line-height)`,fontWeight:`var(--display-sm-font-weight)`}],"text-display-md":[`48px`,{lineHeight:`var(--display-md-line-height)`,fontWeight:`var(--display-md-font-weight)`}],"text-display-lg":[`60px`,{lineHeight:`var(--display-lg-line-height)`,fontWeight:`var(--display-lg-font-weight)`}]},te={...w,...T,...E,...D,...ee,...O},ne=Object.entries(te).reduce((e,[t,n])=>{let r=t.startsWith(`text-`)?t.replace(`text-`,``):t;return{...e,[r]:n}},{}),k=function(e){return e.Xs=`xs--rs`,e.Sm=`sm--rs`,e.Md=`md--rs`,e}(k||{}),re={[k.Xs]:[`4px`,`8px`],[k.Sm]:[`8px`,`12px`],[k.Md]:[`16px`,`24px`]};function ie(e,t){let n=[m.Sm,m.Md,m.Lg,m.Xl],r=re[e],i=`${r[0]}`;for(let e=1;e<r.length;e++)if(r[e]){let a=t[n[e]];a&&(i=`clamp(${i}, (100vw - ${a}) * 99, ${r[e]})`)}return i}function ae(e){return Object.keys(re).reduce((t,n)=>{let r=ie(n,e);return{...t,[n]:r}},{})}var oe={inter:[`Inter`,`sans-serif`],"alliance-no2":[`AllianceNo2`,`sans-serif`],"roboto-flex":[`Roboto Flex Variable`,`sans-serif`]},se={"default-surface":`var(--default-surface)`,"on-default":`var(--on-default)`,"warning-surface":`var(--warning-surface)`,"on-warning":`var(--on-warning)`,"error-surface":`var(--error-surface)`,"on-error":`var(--on-error)`,"success-surface":`var(--success-surface)`,"on-success":`var(--on-success)`},ce=u((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),Object.defineProperty(e,`default`,{enumerable:!0,get:function(){return n}});function t(e,t){return{handler:e,config:t}}t.withOptions=function(e,t=()=>({})){let n=function(n){return{__options:n,handler:e(n),config:t(n)}};return n.__isOptionsFunction=!0,n.__pluginFunction=e,n.__configFunction=t,n};var n=t})),A=u((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),Object.defineProperty(e,`default`,{enumerable:!0,get:function(){return r}});var t=n(ce());function n(e){return e&&e.__esModule?e:{default:e}}var r=t.default})),le=f(u(((e,t)=>{var n=A();t.exports=(n.__esModule?n:{default:n}).default}))()),ue=(0,le.default)(({addVariant:e})=>{e(`firefox`,`@-moz-document url-prefix()`)}),de=(0,le.default)(({addVariant:e})=>{e(`names`,`&:is(.names *)`)}),fe={"names-gradient-primary":`var(--names-gradient-primary)`},j={content:[`./src/**/*.{html,js,jsx,ts,tsx}`],darkMode:`selector`,plugins:[ue,de],theme:{extend:{fontSize:{...ne},borderRadius:{...x},spacing:e=>{let t=ae(e.theme(`screens`));return{...S,...t}},opacity:{...C,30:`0.3`},colors:{...v,...y,...b,...se},fontFamily:oe,backgroundImage:{...fe},keyframes:{"dialog-overlay-show":{from:{opacity:`0`},to:{opacity:`1`}},"dialog-content-show":{from:{opacity:`0`,transform:`translate(-50%, -50%) scale(0.92)`},to:{opacity:`1`,transform:`translate(-50%, -50%) scale(1)`}},"dialog-panel-show":{from:{opacity:`0`,transform:`translateX(12px)`},to:{opacity:`1`,transform:`translateX(0)`}},"dropdown-show":{from:{opacity:`0`,transform:`scale(0.94)`},to:{opacity:`1`,transform:`scale(1)`}}},animation:{"dialog-overlay-show":`dialog-overlay-show 170ms ease-out`,"dialog-content-show":`dialog-content-show 170ms ease-out`,"dialog-panel-show":`dialog-panel-show 210ms ease-out`,"dropdown-show":`dropdown-show 125ms ease-out`}}}},pe=f(u(((e,t)=>{var n=200,r=`__lodash_hash_undefined__`,i=800,a=16,o=9007199254740991,s=`[object Arguments]`,c=`[object Array]`,l=`[object AsyncFunction]`,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Function]`,m=`[object GeneratorFunction]`,h=`[object Map]`,g=`[object Number]`,_=`[object Null]`,v=`[object Object]`,y=`[object Proxy]`,b=`[object RegExp]`,x=`[object Set]`,S=`[object String]`,C=`[object Undefined]`,w=`[object WeakMap]`,T=`[object ArrayBuffer]`,E=`[object DataView]`,D=`[object Float32Array]`,ee=`[object Float64Array]`,O=`[object Int8Array]`,te=`[object Int16Array]`,ne=`[object Int32Array]`,k=`[object Uint8Array]`,re=`[object Uint8ClampedArray]`,ie=`[object Uint16Array]`,ae=`[object Uint32Array]`,oe=/[\\^$.*+?()[\]{}|]/g,se=/^\[object .+?Constructor\]$/,ce=/^(?:0|[1-9]\d*)$/,A={};A[D]=A[ee]=A[O]=A[te]=A[ne]=A[k]=A[re]=A[ie]=A[ae]=!0,A[s]=A[c]=A[T]=A[u]=A[E]=A[d]=A[f]=A[p]=A[h]=A[g]=A[v]=A[b]=A[x]=A[S]=A[w]=!1;var le=typeof global==`object`&&global&&global.Object===Object&&global,ue=typeof self==`object`&&self&&self.Object===Object&&self,de=le||ue||Function(`return this`)(),fe=typeof e==`object`&&e&&!e.nodeType&&e,j=fe&&typeof t==`object`&&t&&!t.nodeType&&t,pe=j&&j.exports===fe,me=pe&&le.process,he=function(){try{return j&&j.require&&j.require(`util`).types||me&&me.binding&&me.binding(`util`)}catch{}}(),ge=he&&he.isTypedArray;function _e(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function M(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function ve(e){return function(t){return e(t)}}function ye(e,t){return e?.[t]}function be(e,t){return function(n){return e(t(n))}}var xe=Array.prototype,N=Function.prototype,Se=Object.prototype,P=de[`__core-js_shared__`],F=N.toString,I=Se.hasOwnProperty,Ce=function(){var e=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),we=Se.toString,Te=F.call(Object),Ee=RegExp(`^`+F.call(I).replace(oe,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),L=pe?de.Buffer:void 0,De=de.Symbol,Oe=de.Uint8Array,ke=L?L.allocUnsafe:void 0,R=be(Object.getPrototypeOf,Object),Ae=Object.create,z=Se.propertyIsEnumerable,je=xe.splice,Me=De?De.toStringTag:void 0,Ne=function(){try{var e=At(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),Pe=L?L.isBuffer:void 0,Fe=Math.max,Ie=Date.now,Le=At(de,`Map`),Re=At(Object,`create`),ze=function(){function e(){}return function(t){if(!Xt(t))return{};if(Ae)return Ae(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function B(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Be(){this.__data__=Re?Re(null):{},this.size=0}function Ve(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function He(e){var t=this.__data__;if(Re){var n=t[e];return n===r?void 0:n}return I.call(t,e)?t[e]:void 0}function Ue(e){var t=this.__data__;return Re?t[e]!==void 0:I.call(t,e)}function We(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Re&&t===void 0?r:t,this}B.prototype.clear=Be,B.prototype.delete=Ve,B.prototype.get=He,B.prototype.has=Ue,B.prototype.set=We;function V(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ge(){this.__data__=[],this.size=0}function Ke(e){var t=this.__data__,n=dt(t,e);return n<0?!1:(n==t.length-1?t.pop():je.call(t,n,1),--this.size,!0)}function qe(e){var t=this.__data__,n=dt(t,e);return n<0?void 0:t[n][1]}function Je(e){return dt(this.__data__,e)>-1}function Ye(e,t){var n=this.__data__,r=dt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}V.prototype.clear=Ge,V.prototype.delete=Ke,V.prototype.get=qe,V.prototype.has=Je,V.prototype.set=Ye;function Xe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ze(){this.size=0,this.__data__={hash:new B,map:new(Le||V),string:new B}}function Qe(e){var t=kt(this,e).delete(e);return this.size-=+!!t,t}function $e(e){return kt(this,e).get(e)}function et(e){return kt(this,e).has(e)}function tt(e,t){var n=kt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Xe.prototype.clear=Ze,Xe.prototype.delete=Qe,Xe.prototype.get=$e,Xe.prototype.has=et,Xe.prototype.set=tt;function nt(e){this.size=(this.__data__=new V(e)).size}function rt(){this.__data__=new V,this.size=0}function it(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function at(e){return this.__data__.get(e)}function ot(e){return this.__data__.has(e)}function st(e,t){var r=this.__data__;if(r instanceof V){var i=r.__data__;if(!Le||i.length<n-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Xe(i)}return r.set(e,t),this.size=r.size,this}nt.prototype.clear=rt,nt.prototype.delete=it,nt.prototype.get=at,nt.prototype.has=ot,nt.prototype.set=st;function ct(e,t){var n=G(e),r=!n&&Wt(e),i=!n&&!r&&qt(e),a=!n&&!r&&!i&&$t(e),o=n||r||i||a,s=o?M(e.length,String):[],c=s.length;for(var l in e)(t||I.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Mt(l,c)))&&s.push(l);return s}function lt(e,t,n){(n!==void 0&&!Ut(e[t],n)||n===void 0&&!(t in e))&&ft(e,t,n)}function ut(e,t,n){var r=e[t];(!(I.call(e,t)&&Ut(r,n))||n===void 0&&!(t in e))&&ft(e,t,n)}function dt(e,t){for(var n=e.length;n--;)if(Ut(e[n][0],t))return n;return-1}function ft(e,t,n){t==`__proto__`&&Ne?Ne(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var pt=Ot();function mt(e){return e==null?e===void 0?C:_:Me&&Me in Object(e)?jt(e):Lt(e)}function ht(e){return Zt(e)&&mt(e)==s}function gt(e){return!Xt(e)||Ft(e)?!1:(Jt(e)?Ee:se).test(Ht(e))}function _t(e){return Zt(e)&&Yt(e.length)&&!!A[mt(e)]}function vt(e){if(!Xt(e))return It(e);var t=W(e),n=[];for(var r in e)r==`constructor`&&(t||!I.call(e,r))||n.push(r);return n}function yt(e,t,n,r,i){e!==t&&pt(t,function(a,o){if(i||=new nt,Xt(a))bt(e,t,o,n,yt,r,i);else{var s=r?r(zt(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),lt(e,o,s)}},tn)}function bt(e,t,n,r,i,a,o){var s=zt(e,n),c=zt(t,n),l=o.get(c);if(l){lt(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=G(c),p=!f&&qt(c),m=!f&&!p&&$t(c);u=c,f||p||m?G(s)?u=s:Kt(s)?u=Tt(s):p?(d=!1,u=St(c,!0)):m?(d=!1,u=wt(c,!0)):u=[]:Qt(c)||Wt(c)?(u=s,Wt(s)?u=en(s):(!Xt(s)||Jt(s))&&(u=U(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),lt(e,n,u)}function xt(e,t){return Bt(Rt(e,t,an),e+``)}var H=Ne?function(e,t){return Ne(e,`toString`,{configurable:!0,enumerable:!1,value:rn(t),writable:!0})}:an;function St(e,t){if(t)return e.slice();var n=e.length,r=ke?ke(n):new e.constructor(n);return e.copy(r),r}function Ct(e){var t=new e.constructor(e.byteLength);return new Oe(t).set(new Oe(e)),t}function wt(e,t){var n=t?Ct(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Tt(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function Et(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?ft(n,s,c):ut(n,s,c)}return n}function Dt(e){return xt(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Nt(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}function Ot(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function kt(e,t){var n=e.__data__;return Pt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function At(e,t){var n=ye(e,t);return gt(n)?n:void 0}function jt(e){var t=I.call(e,Me),n=e[Me];try{e[Me]=void 0;var r=!0}catch{}var i=we.call(e);return r&&(t?e[Me]=n:delete e[Me]),i}function U(e){return typeof e.constructor==`function`&&!W(e)?ze(R(e)):{}}function Mt(e,t){var n=typeof e;return t??=o,!!t&&(n==`number`||n!=`symbol`&&ce.test(e))&&e>-1&&e%1==0&&e<t}function Nt(e,t,n){if(!Xt(n))return!1;var r=typeof t;return(r==`number`?Gt(n)&&Mt(t,n.length):r==`string`&&t in n)?Ut(n[t],e):!1}function Pt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Ft(e){return!!Ce&&Ce in e}function W(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Se)}function It(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}function Lt(e){return we.call(e)}function Rt(e,t,n){return t=Fe(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Fe(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),_e(e,this,s)}}function zt(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var Bt=Vt(H);function Vt(e){var t=0,n=0;return function(){var r=Ie(),o=a-(r-n);if(n=r,o>0){if(++t>=i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ht(e){if(e!=null){try{return F.call(e)}catch{}try{return e+``}catch{}}return``}function Ut(e,t){return e===t||e!==e&&t!==t}var Wt=ht(function(){return arguments}())?ht:function(e){return Zt(e)&&I.call(e,`callee`)&&!z.call(e,`callee`)},G=Array.isArray;function Gt(e){return e!=null&&Yt(e.length)&&!Jt(e)}function Kt(e){return Zt(e)&&Gt(e)}var qt=Pe||on;function Jt(e){if(!Xt(e))return!1;var t=mt(e);return t==p||t==m||t==l||t==y}function Yt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=o}function Xt(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Zt(e){return typeof e==`object`&&!!e}function Qt(e){if(!Zt(e)||mt(e)!=v)return!1;var t=R(e);if(t===null)return!0;var n=I.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&F.call(n)==Te}var $t=ge?ve(ge):_t;function en(e){return Et(e,tn(e))}function tn(e){return Gt(e)?ct(e,!0):vt(e)}var nn=Dt(function(e,t,n){yt(e,t,n)});function rn(e){return function(){return e}}function an(e){return e}function on(){return!1}t.exports=nn}))()),me=_({[m.Sm]:768,[m.Md]:1024,[m.Lg]:1400,[m.Xl]:1920}),he=(0,pe.default)({},j,{theme:{screens:me,container:{center:!0,screens:me,padding:{DEFAULT:g(20),md:g(48),lg:g(120),xl:g(240)}}}}),ge=(0,pe.default)({},j,{theme:{screens:_({default:0})},corePlugins:{container:!1}}),_e=u(((e,t)=>{(function(){"use strict";var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()})),M=function(e){return e.Neutral=`neutral`,e.PrimarySolid=`primary-solid`,e.PrimarySoft=`primary-soft`,e.Success=`success`,e.Warning=`warning`,e.Outlined=`outlined`,e.Error=`error`,e}({}),ve=function(e){return e.Medium=`medium`,e.Small=`small`,e}({}),ye={[M.PrimarySolid]:`badge-bg-color-primary`,[M.Neutral]:`badge-bg-color-neutral`,[M.PrimarySoft]:`badge-bg-color-primary-soft`,[M.Success]:`bg-success-surface`,[M.Warning]:`bg-warning-surface`,[M.Outlined]:`bg-transparent`,[M.Error]:`bg-error-surface`},be={[M.PrimarySolid]:`badge-text-color-primary`,[M.Neutral]:`badge-text-color-neutral`,[M.PrimarySoft]:`badge-text-color-primary-soft`,[M.Success]:`text-on-success`,[M.Warning]:`text-on-warning`,[M.Outlined]:`badge-text-color-neutral`,[M.Error]:`text-on-error`},xe={[M.PrimarySolid]:`badge-border-color-primary`,[M.Neutral]:`badge-border-color-neutral`,[M.PrimarySoft]:`badge-border-color-soft`,[M.Success]:`border-success-surface`,[M.Warning]:`border-warning-surface`,[M.Outlined]:`badge-border-color-outlined`,[M.Error]:`border-error-surface`},N=f(_e());function Se({type:e,label:n,size:r=ve.Medium,icon:i}){let a=ye[e],o=be[e],s=r===ve.Small,c=e===M.Outlined,l=n?`px-xs py-xxs`:`h-1.5 w-1.5`,u=s?`text-label-sm`:`text-label-md`;return(0,t.jsxs)(`div`,{className:(0,N.default)(`inline-flex items-center rounded-full disabled:opacity-30`,i?`gap-xxs`:`space-x-2`,{border:!s},{[xe[e]]:!s},{"badge-ring-outlined":s&&c},a,l),children:[i&&(0,t.jsx)(`span`,{className:(0,N.default)(`flex h-4 w-4 items-center justify-center`,o),children:i}),(0,t.jsx)(`span`,{className:(0,N.default)(u,o),children:n})]})}var P=function(e){return e.Small=`small`,e.Medium=`medium`,e}({}),F=function(e){return e.Primary=`primary`,e.Secondary=`secondary`,e.Ghost=`ghost`,e.Outlined=`outlined`,e.Destructive=`destructive`,e}({}),I=function(e){return e.Button=`button`,e.Submit=`submit`,e.Reset=`reset`,e}({}),Ce={[P.Small]:`px-md py-xs`,[P.Medium]:`px-md py-sm`},we={[P.Small]:`p-xs`,[P.Medium]:`p-sm`},Te={[F.Primary]:`button-bg-color-primary`,[F.Secondary]:`button-bg-color-secondary`,[F.Ghost]:`bg-transparent`,[F.Outlined]:`bg-transparent button-border-color-outline`,[F.Destructive]:`button-bg-color-error`},Ee={[F.Primary]:`button-bg-color-disabled-primary`,[F.Secondary]:`button-bg-color-secondary`,[F.Ghost]:`bg-transparent`,[F.Outlined]:`bg-transparent button-border-color-outline`,[F.Destructive]:`button-bg-color-error`},L=`button-text-color-neutral`,De={[F.Primary]:`button-text-color-primary`,[F.Secondary]:L,[F.Ghost]:L,[F.Outlined]:L,[F.Destructive]:`button-text-color-error`},Oe={[P.Small]:`text-label-md`,[P.Medium]:`text-label-lg`},ke={[F.Primary]:L,[F.Secondary]:L,[F.Ghost]:L,[F.Outlined]:L,[F.Destructive]:`button-text-color-error`},R=(0,n.forwardRef)(({icon:e,text:n,disabled:r,onClick:i,fullWidth:a,htmlType:o=I.Button,size:s=P.Medium,type:c=F.Primary,iconAfterText:l=!1,tabIndex:u=0,testId:d,...f},p)=>{let m=e&&!n?we[s]:Ce[s],h=Oe[s],g=r?Ee[c]:Te[c],_=r?ke[c]:De[c];return(0,t.jsxs)(`button`,{type:o,...f,ref:p,onClick:i,className:(0,N.default)(`state-layer relative flex items-center justify-center gap-2 rounded-full transition-all duration-150 ease-in disabled:cursor-not-allowed disabled:opacity-40`,m,g,a&&`w-full`,l?`flex-row-reverse`:`flex-row`,`btn btn-${c}`),disabled:r,tabIndex:u,"data-testid":d,children:[e&&(0,t.jsx)(`span`,{className:(0,N.default)(_),children:e}),n&&(0,t.jsx)(`span`,{className:(0,N.default)(`font-inter`,_,h),children:n})]})});function Ae({htmlType:e=I.Button,children:n,tabIndex:r=0,...i}){return(0,t.jsx)(`button`,{className:`button-pill-border-color button-pill-text-color flex items-center justify-center rounded-xl border px-sm text-body-md disabled:opacity-40`,type:e,tabIndex:r,...i,children:n})}function z({htmlType:e=I.Button,children:n,className:r,tabIndex:i=0,testId:a,...o}){return(0,t.jsx)(`button`,{type:e,...o,className:(0,N.default)(`appearance-none`,r),tabIndex:i,"data-testid":a,children:n})}function je(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M4 12.004a1 1 0 0 0 .293.703l6 6a1 1 0 0 0 1.414-1.414L7.414 13H19a1 1 0 1 0 0-2H7.414l4.293-4.293a1 1 0 0 0-1.414-1.414l-6 6a1 1 0 0 0-.293.705z`})})}function Me(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M11.45 15.335a1 1 0 0 0 1.257-.128l5-5a1 1 0 0 0-1.414-1.414L12 13.086 7.707 8.793a1 1 0 0 0-1.414 1.414l5 5a1 1 0 0 0 .157.128`})})}function Ne(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M8.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L10.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157`})})}function Pe(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`m10.707 6.293 5 5a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414-1.414L13.586 12 9.293 7.707a1 1 0 0 1 1.414-1.414`})})}function Fe(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M17.483 6.29a1 1 0 0 0-.705-.29h-8.07a1 1 0 1 0 0 2h5.656l-8.071 8.071a1 1 0 1 0 1.414 1.414l8.071-8.07v5.656a1 1 0 1 0 2 0v-8.07a1 1 0 0 0-.291-.706l-.002-.002z`})})}function Ie(e){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,t.jsx)(`path`,{fill:`currentColor`,d:`M14 14a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2z`}),(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M8 2a1 1 0 0 1 1 1v1h6V3a1 1 0 1 1 2 0v1h1a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1V3a1 1 0 0 1 1-1M5 17V8h14v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1`,clipRule:`evenodd`})]})}function Le(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`m10.26 13.845 5.95-5.95a.994.994 0 0 1 1.405-.008.994.994 0 0 1-.008 1.406L10.95 15.95a.994.994 0 0 1-1.406.008l-2.846-2.845a.994.994 0 0 1 .01-1.406.994.994 0 0 1 1.405-.009z`,clipRule:`evenodd`})})}function Re(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m4.21-14.104-5.95 5.95-2.147-2.148a.994.994 0 0 0-1.406.009.994.994 0 0 0-.009 1.405l2.846 2.846a.994.994 0 0 0 1.406-.008l6.657-6.657a.994.994 0 0 0 .008-1.406.994.994 0 0 0-1.405.009`,clipRule:`evenodd`})})}function ze(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M18.707 6.707a1 1 0 0 0-1.414-1.414L12 10.586 6.707 5.293a1 1 0 0 0-1.414 1.415L10.586 12l-5.293 5.293a1 1 0 1 0 1.414 1.414L12 13.414l5.293 5.294a1 1 0 0 0 1.414-1.415L13.414 12z`,clipRule:`evenodd`})})}function B(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v1h1a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3h-8a3 3 0 0 1-3-3v-1H6a3 3 0 0 1-3-3zm6 12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-8a1 1 0 0 0-1 1zm6-11h-5a3 3 0 0 0-3 3v5H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1z`,clipRule:`evenodd`})})}function Be(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`rect`,{width:10,height:2,x:7,y:11,fill:`currentColor`,rx:1})})}function Ve(e){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,t.jsx)(`path`,{fill:`currentColor`,d:`M11.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L13.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157`}),(0,t.jsx)(`path`,{fill:`currentColor`,d:`M5.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L7.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157`})]})}function He(e){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,t.jsx)(`path`,{fill:`currentColor`,d:`M11.835 11.45a1 1 0 0 1-.128 1.257l-5 5a1 1 0 0 1-1.414-1.414L9.586 12 5.293 7.707a1 1 0 0 1 1.414-1.414l5 5a1 1 0 0 1 .128.157`}),(0,t.jsx)(`path`,{fill:`currentColor`,d:`M17.835 11.45a1 1 0 0 1-.128 1.257l-5 5a1 1 0 0 1-1.414-1.414L15.586 12l-4.293-4.293a1 1 0 0 1 1.414-1.414l5 5a1 1 0 0 1 .128.157`})]})}function Ue(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18m0-14.4A1.2 1.2 0 1 0 12 9a1.2 1.2 0 0 0 0-2.4m1.2 9a1.2 1.2 0 0 1-2.4 0V12a1.2 1.2 0 0 1 2.4 0z`,clipRule:`evenodd`})})}function We(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M18.27 2.259c0 .695-.568 1.259-1.268 1.259s-1.267-.564-1.267-1.259S16.302 1 17.002 1s1.268.564 1.268 1.259m1.425 17.785c0 .695-.568 1.259-1.268 1.259s-1.267-.564-1.267-1.26c0-.695.567-1.258 1.267-1.258s1.268.563 1.268 1.259m-2.33-13.379a1.06 1.06 0 0 0 1.063-1.056 1.06 1.06 0 0 0-1.063-1.057A1.06 1.06 0 0 0 16.3 5.61a1.06 1.06 0 0 0 1.064 1.056Zm3.891-.651a1.06 1.06 0 0 1-1.063 1.056 1.06 1.06 0 0 1-1.064-1.056 1.06 1.06 0 0 1 1.064-1.057 1.06 1.06 0 0 1 1.063 1.057m-4.253 3.329c.5 0 .905-.403.905-.9 0-.496-.405-.9-.905-.9s-.906.404-.906.9c0 .497.406.9.906.9m3.734-.52c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.496.405-.9.906-.9.5 0 .905.404.905.9m1.357 1.777c.5 0 .906-.402.906-.899s-.405-.9-.906-.9c-.5 0-.905.403-.905.9s.405.9.905.9Zm-2.309.495a.79.79 0 0 1-.792.787.79.79 0 0 1-.791-.787c0-.434.354-.786.791-.786s.792.352.792.786m-3.62.404a.79.79 0 0 0 .792-.787.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .435.354.787.791.787m5.907.471a.79.79 0 0 1-.791.787.79.79 0 0 1-.792-.786.79.79 0 0 1 .792-.787.79.79 0 0 1 .791.787Zm-4.21 1.554c.375 0 .68-.302.68-.675a.677.677 0 0 0-.68-.675.68.68 0 0 0-.68.675c0 .373.304.675.68.675m2.968.178a.68.68 0 0 1-.68.676.677.677 0 0 1-.68-.676c0-.373.304-.675.68-.675.375 0 .68.302.68.675m-5.774-.582c.375 0 .68-.302.68-.675a.68.68 0 0 0-.68-.675.68.68 0 0 0-.68.675c0 .373.304.675.68.675m2.127.943c0 .31-.254.561-.566.561a.564.564 0 0 1-.566-.562c0-.31.253-.561.566-.561s.566.251.566.562m.407 2.114a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m-.791-.09a.407.407 0 0 1-.408.405.407.407 0 0 1-.408-.405c0-.223.182-.405.408-.405s.408.181.408.405m-1.472-.765a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m-.973-1.64c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.566.251.566.562m-.588-3.666a.564.564 0 0 0 .566-.562.564.564 0 0 0-.566-.562.564.564 0 0 0-.565.562c0 .31.253.562.565.562m.745-2.473a.496.496 0 0 1-.497.494.496.496 0 0 1-.498-.494c0-.273.223-.494.498-.494s.498.22.498.494Zm.047-1.123a.406.406 0 0 0 .407-.406.406.406 0 0 0-.407-.405.407.407 0 0 0-.408.405c0 .224.182.406.408.406m-.452-1.26a.496.496 0 0 1-.498.494.496.496 0 0 1-.498-.494c0-.273.223-.494.498-.494s.498.22.498.494m4.776 10.32a.564.564 0 0 0 .566-.561.564.564 0 0 0-.566-.562.564.564 0 0 0-.566.562c0 .31.253.562.566.562ZM12.883 4.439c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.254-.562.566-.562s.566.251.566.562m-.18 2.945a.564.564 0 0 0 .566-.562.564.564 0 0 0-.566-.561.564.564 0 0 0-.566.561c0 .31.253.562.566.562m.045 1.597a.677.677 0 0 1-.68.676.68.68 0 0 1-.679-.676c0-.373.304-.675.68-.675.375 0 .68.302.68.675Zm-2.74.676a.79.79 0 0 0 .791-.786.79.79 0 0 0-.791-.787.79.79 0 0 0-.792.787c0 .434.354.786.792.786m-1.494-.36c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.497.406-.9.906-.9s.905.403.905.9m-3.529 2.18a1.06 1.06 0 0 0 1.063-1.056 1.06 1.06 0 0 0-1.063-1.056A1.06 1.06 0 0 0 3.92 10.42a1.06 1.06 0 0 0 1.064 1.056Zm-1.45.9c0 .696-.568 1.26-1.268 1.26S1 13.073 1 12.377c0-.695.567-1.259 1.267-1.259s1.268.564 1.268 1.26Zm.386-3.531A1.06 1.06 0 0 0 4.985 7.79 1.06 1.06 0 0 0 3.92 6.733 1.06 1.06 0 0 0 2.858 7.79 1.06 1.06 0 0 0 3.92 8.846Zm3.53-2.181c0 .497-.405.9-.906.9a.903.903 0 0 1-.905-.9c0-.496.405-.9.905-.9s.906.404.906.9M6.162 5.182c.5 0 .905-.403.905-.9 0-.496-.405-.9-.905-.9s-.906.404-.906.9c0 .497.406.9.906.9m3.19-1.326a.79.79 0 0 1-.791.787.79.79 0 0 1-.792-.787c0-.434.354-.786.792-.786.437 0 .791.352.791.786m1.268.788c.375 0 .68-.303.68-.675a.677.677 0 0 0-.68-.676.68.68 0 0 0-.68.675c0 .373.304.676.68.676m1.063 1.708a.68.68 0 0 1-.68.675.677.677 0 0 1-.68-.675c0-.373.305-.675.68-.675s.68.302.68.675m-2.739.695a.79.79 0 0 0 .792-.786.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .434.354.786.791.786m-1.832 5.578a.407.407 0 0 1-.408.405.407.407 0 0 1-.408-.405c0-.223.182-.405.408-.405s.408.181.408.405m1.221.201a.496.496 0 0 0 .497-.494.496.496 0 0 0-.497-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m2.354-1.236c0 .31-.253.562-.565.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.565.252.565.562m-.135 2.361c.375 0 .68-.302.68-.675a.677.677 0 0 0-.68-.675.677.677 0 0 0-.68.675c0 .373.304.675.68.675m-1.608-.135c0 .31-.253.562-.566.562a.564.564 0 0 1-.565-.562c0-.31.253-.562.565-.562.313 0 .566.252.566.562m-2.488.538a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m.588.991c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.566.252.566.562m1.742.855c.376 0 .68-.303.68-.675a.677.677 0 0 0-.68-.676.677.677 0 0 0-.68.675c0 .373.305.676.68.676m3.484-1.08a.79.79 0 0 1-.79.786.79.79 0 0 1-.792-.786c0-.435.354-.787.791-.787s.792.352.792.787Zm.794 2.743c.5 0 .906-.402.906-.9 0-.496-.406-.899-.906-.899s-.905.403-.905.9.405.9.905.9Zm-2.536-.518a.79.79 0 0 1-.792.786.79.79 0 0 1-.792-.787.79.79 0 0 1 .792-.786.79.79 0 0 1 .792.787m-2.669 2.316a.79.79 0 0 0 .791-.786.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .434.354.786.792.786m2.466 1.079c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.496.405-.9.906-.9.5 0 .905.404.905.9M13.584 22a1.06 1.06 0 0 0 1.064-1.056 1.06 1.06 0 0 0-1.064-1.057 1.06 1.06 0 0 0-1.063 1.057A1.06 1.06 0 0 0 13.584 22m-1.379-2.788c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.497.405-.9.905-.9s.906.403.906.9m3.123.54a1.06 1.06 0 0 0 1.063-1.057 1.06 1.06 0 0 0-1.063-1.056 1.06 1.06 0 0 0-1.064 1.056 1.06 1.06 0 0 0 1.064 1.057m-7.741-2.699a.677.677 0 0 1-.68.676.677.677 0 0 1-.68-.676c0-.373.305-.675.68-.675s.68.302.68.675`})})}function V(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M5.533 9.321A7 7 0 1 0 19 12a1 1 0 1 1 2 0 9 9 0 1 1-9-9 1 1 0 1 1 0 2 7 7 0 0 0-6.467 4.321`,clipRule:`evenodd`})})}function Ge(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M21 9a1 1 0 0 1-1 1H4a1 1 0 1 1 0-2h16a1 1 0 0 1 1 1m0 6a1 1 0 0 1-1 1H10a1 1 0 1 1 0-2h10a1 1 0 0 1 1 1`})})}function Ke(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M5 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4m9-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0m7 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0`})})}function qe(e){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,t.jsx)(`path`,{fill:`currentColor`,d:`M11 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0m4 2a2 2 0 1 0 0-4 2 2 0 0 0 0 4`}),(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M2 8a6 6 0 0 1 6-6h8a6 6 0 0 1 6 6v8a6 6 0 0 1-6 6H8a6 6 0 0 1-6-6zm2 0a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v3.871a19.13 19.13 0 0 1-16 0zm0 6.051V16a4 4 0 0 0 4 4h8a4 4 0 0 0 4-4v-1.949a21.13 21.13 0 0 1-16 0`,clipRule:`evenodd`})]})}function Je(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8`})})}function Ye(e){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,t.jsx)(`path`,{fill:`currentColor`,d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8`}),(0,t.jsx)(`path`,{fill:`currentColor`,d:`M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10`})]})}function Xe(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M11 4a7 7 0 1 0 3.594 13.008l3.699 3.7a1 1 0 0 0 1.414-1.415l-3.555-3.555A7 7 0 0 0 11 4m-5 7a5 5 0 1 1 10 0 5 5 0 0 1-10 0`,clipRule:`evenodd`})})}function Ze(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M12 6a1 1 0 0 0-1 1v9.586l-2.293-2.293a1 1 0 0 0-1.414 1.414l4 4a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L13 16.586V7a1 1 0 0 0-1-1`})})}function Qe(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M11.293 4.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L13 7.414V17a1 1 0 1 1-2 0V7.414L8.707 9.707a1 1 0 0 1-1.414-1.414z`})})}function $e(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M17.35 9c.578 0 .867.681.459 1.08l-4.85 4.735a.66.66 0 0 1-.917 0l-4.85-4.735C6.781 9.68 7.071 9 7.648 9z`})})}function et(e){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M18.72 6.695a1 1 0 1 0-1.44-1.39l-1.518 1.572C14.601 6.348 13.331 6 12 6 8.739 6 5.843 8.092 4.017 9.805c-1.29 1.212-1.29 3.178 0 4.39a18 18 0 0 0 2.666 2.083l-1.695 1.755a1 1 0 0 0 1.438 1.39zM8.67 14.219l5.431-5.623a4 4 0 0 0-5.43 5.623Z`,clipRule:`evenodd`}),(0,t.jsx)(`path`,{fill:`currentColor`,d:`M16 12a4 4 0 0 1-3.975 4l-1.749 1.81c.56.122 1.136.19 1.724.19 3.26 0 6.157-2.092 7.983-3.805 1.29-1.212 1.29-3.178 0-4.39a20 20 0 0 0-1.071-.936l-2.914 3.017z`})]})}function tt(e){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,t.jsx)(`path`,{fill:`currentColor`,d:`M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4`}),(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M19.983 9.805c1.29 1.212 1.29 3.178 0 4.39C18.157 15.908 15.26 18 12 18c-3.261 0-6.157-2.092-7.983-3.805-1.29-1.212-1.29-3.178 0-4.39C5.843 8.092 8.74 6 12 6s6.157 2.092 7.983 3.805M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0`,clipRule:`evenodd`})]})}function nt({id:e,name:n,label:r,supportingLabel:i,body:a,isChecked:o,isDisabled:s,onChange:c,...l}){let u=o?Ye:Je;return(0,t.jsxs)(`label`,{className:(0,N.default)(`flex flex-row items-center gap-x-1 text-center has-[:disabled]:opacity-40`,{disabled:s,"cursor-pointer":!s}),children:[(0,t.jsxs)(`div`,{className:(0,N.default)(`relative flex h-10 w-10 shrink-0 items-center justify-center rounded-full`,{"state-layer-secondary":!s}),children:[(0,t.jsx)(`input`,{id:e,name:n,type:`radio`,checked:o,onChange:c,disabled:s,className:(0,N.default)(`peer appearance-none`),...l}),(0,t.jsx)(`span`,{className:`radio-icon-color peer-checked:radio-icon-checked-color peer-checked:peer-disabled:radio-icon-checked-disabled-color absolute size-6`,children:(0,t.jsx)(u,{className:`size-full`})})]}),(0,t.jsxs)(`div`,{className:`flex flex-col items-start gap-xxs text-start`,children:[(0,t.jsxs)(`span`,{className:`radio-label-color inline-flex items-center justify-center gap-1 text-label-lg`,children:[r,i&&(0,t.jsx)(`span`,{className:`text-iota-neutral-60 dark:text-iota-neutral-40`,children:i})]}),a&&(0,t.jsx)(`p`,{className:`text-body-sm text-iota-neutral-40 dark:text-iota-neutral-60`,children:a})]})]})}var rt=`bg-transparent`,it=`button-segment-bg-color-selected`,at=`button-segment-text-color-default button-segment-text-color-hover button-segment-text-color-focused`,ot=`button-segment-text-color-selected`,st=`
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`react/jsx-runtime`),require(`react`),require(`react-dom`)):typeof define==`function`&&define.amd?define([`exports`,`react/jsx-runtime`,`react`,`react-dom`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`@iota/apps-ui-kit`]={},e.react_jsx_runtime,e.React,e.ReactDOM))})(this,function(e,t,n,r){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=s(t),c=0,u=i.length,d;c<u;c++)d=i[c],!l.call(e,d)&&d!==n&&a(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=o(t,d))||r.enumerable});return e},f=(e,t,n)=>(n=e==null?{}:i(c(e)),d(t||!e||!e.__esModule?a(n,`default`,{value:e,enumerable:!0}):n,e));let p=f(n,1);n=f(n),r=f(r,1);var m=function(e){return e.Sm=`sm`,e.Md=`md`,e.Lg=`lg`,e.Xl=`xl`,e}({}),h=function(e){return e.Light=`light`,e.Dark=`dark`,e.Names=`names`,e}({}),g=(e,t=16)=>`${e/t}rem`;function _(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]=`${n}px`,e),{})}var v={"iota-primary":{0:`#000000`,10:`#061244`,20:`#182b8a`,30:`#3131ff`,40:`#2563f5`,50:`#3f80f0`,60:`#5b9cfe`,70:`#85b5fb`,80:`#adceff`,90:`#d5e8ff`,100:`#ffffff`},"iota-secondary":{0:`#000000`,10:`#051631`,20:`#17345f`,30:`#2d4c7a`,40:`#4b648a`,50:`#637ca2`,60:`#7e97bd`,70:`#96b3d5`,80:`#b6cde8`,90:`#dde9f7`,100:`#ffffff`},"iota-tertiary":{0:`#000000`,10:`#071f22`,20:`#18393b`,30:`#185b60`,40:`#317479`,50:`#498c91`,60:`#64a7ac`,70:`#7fc2c7`,80:`#9adde2`,90:`#c2f1f4`,100:`#ffffff`},"iota-error":{0:`#000000`,10:`#330009`,20:`#610012`,30:`#b51431`,40:`#ce2d4a`,50:`#e64562`,60:`#ff607d`,70:`#ff889e`,80:`#ffb0be`,90:`#ffd9e0`,100:`#ffffff`},"iota-neutral":{0:`#000000`,4:`#0a0f17`,6:`#0f141c`,10:`#171d26`,12:`#1c212b`,20:`#253041`,30:`#3c4656`,40:`#545e6e`,50:`#6e7787`,60:`#8892a1`,70:`#a8b2c0`,80:`#cad4e2`,90:`#dde4f0`,92:`#e3eaf6`,96:`#eff4fa`,98:`#f8fafc`,100:`#ffffff`},"iota-warning":{0:`#000000`,10:`#2D1E00`,20:`#422C00`,30:`#674500`,40:`#8C5D00`,50:`#A47518`,60:`#BE8F32`,70:`#D9AA4D`,80:`#F4C568`,90:`#FFE3AB`,100:`#FFFFFF`}},y={"names-primary":{0:`#000000`,10:`#061244`,20:`#182b8a`,30:`#3131ff`,40:`#2563f5`,50:`#3f80f0`,60:`#5b9cfe`,70:`#85b5fb`,80:`#adceff`,90:`#d5e8ff`,100:`#ffffff`},"names-secondary":{0:`#000000`,10:`#051631`,20:`#17345f`,30:`#2d4c7a`,40:`#4b648a`,50:`#637ca2`,60:`#7e97bd`,70:`#96b3d5`,80:`#b6cde8`,90:`#dde9f7`,100:`#ffffff`},"names-tertiary":{0:`#000000`,10:`#00231F`,20:`#00453D`,30:`#00685C`,40:`#008C7C`,50:`#00AF9B`,60:`#00D7BE`,70:`#17F3D9`,80:`#54FFEB`,90:`#A6FFF4`,100:`#ffffff`},"names-error":{0:`#000000`,10:`#3D001F`,20:`#620432`,30:`#A30251`,40:`#C90E6A`,50:`#DC2B82`,60:`#E35A9E`,70:`#EF84B9`,80:`#FCADD4`,90:`#FFD7EB`,100:`#ffffff`},"names-neutral":{0:`#000000`,4:`#0A0D23`,6:`#0F1228`,10:`#181B31`,12:`#20233C`,20:`#2B2E45`,30:`#404359`,40:`#585B71`,50:`#71748B`,60:`#8C8FA5`,70:`#ACAFC5`,80:`#CED1E7`,90:`#DFE2F8`,92:`#E5E8FE`,96:`#F0F2FF`,98:`#F8F9FF`,100:`#ffffff`},"names-solid":{blue:`#3131FF`,purple:`#A139FF`,green:`#14F0D6`,neutral:`#20233C`},"names-warning":{0:`#000000`,10:`#2D1E00`,20:`#422C00`,30:`#674500`,40:`#8C5D00`,50:`#A47518`,60:`#BE8F32`,70:`#D9AA4D`,80:`#F4C568`,90:`#FFE3AB`,100:`#FFFFFF`}},b={"shader-primary-dark":{0:`#bed8ff00`,8:`#bed8ff14`,12:`#bed8ff1e`,16:`#bed8ff28`,48:`#bed8ff7a`,72:`#bed8ffb7`,100:`#bed8ff`},"shader-inverted-dark":{0:`#002f6d00`,8:`#002f6d14`,12:`#002f6d1e`,16:`#002f6d28`,48:`#002f6d7a`,72:`#002f6db7`,100:`#002f6d`},"shader-neutral-dark":{0:`#bed8ff00`,8:`#bed8ff14`,12:`#bed8ff1e`,16:`#bed8ff28`,48:`#bed8ff7a`,72:`#bed8ffb7`,100:`#bed8ff`},"shader-primary-light":{0:`#0067ee00`,8:`#0067ee14`,12:`#0067ee1e`,16:`#0067ee28`,48:`#0067ee7a`,72:`#0067eeb7`,100:`#0067ee`},"shader-inverted-light":{0:`#bed8ff00`,8:`#bed8ff14`,12:`#bed8ff1e`,16:`#bed8ff28`,48:`#bed8ff7a`,72:`#bed8ffb7`,100:`#bed8ff`},"shader-neutral-light":{0:`#002f6d00`,8:`#002f6d14`,12:`#002f6d1e`,16:`#002f6d28`,48:`#002f6d7a`,72:`#002f6db7`,100:`#002f6d`}},x={none:g(0),sm:g(2),DEFAULT:g(4),md:g(6),lg:g(8),xl:g(12),"2xl":g(16),"3xl":g(24),full:g(120)},S={none:g(0),xxxs:g(2),xxs:g(4),xs:g(8),sm:g(12),md:g(16),lg:g(24),xl:g(32),"2xl":g(48)},C={0:`0`,8:`0.08`,12:`0.12`,16:`0.16`,40:`0.4`,60:`0.6`,80:`0.8`,100:`1`},w={"text-label-sm":[`11px`,{lineHeight:`16px`,letterSpacing:`0.2px`,fontWeight:500}],"text-label-md":[`12px`,{lineHeight:`16px`,letterSpacing:`-0.1px`,fontWeight:500}],"text-label-lg":[`14px`,{lineHeight:`20px`,letterSpacing:`-0.1px`,fontWeight:500}]},T={"text-body-sm":[`12px`,{lineHeight:`16px`,letterSpacing:`0.1px`,fontWeight:400}],"text-body-md":[`14px`,{lineHeight:`20px`,letterSpacing:`-0.1px`,fontWeight:400}],"text-body-lg":[`16px`,{lineHeight:`24px`,letterSpacing:`0.1px`,fontWeight:400}]},E={"text-body-ds-sm":[`12px`,{lineHeight:`16px`,letterSpacing:`0.1px`,fontWeight:400}],"text-body-ds-md":[`14px`,{lineHeight:`20px`,letterSpacing:`-0.1px`,fontWeight:400}],"text-body-ds-lg":[`16px`,{lineHeight:`24px`,letterSpacing:`0.2px`,fontWeight:400}]},D={"text-title-sm":[`14px`,{lineHeight:`120%`,letterSpacing:`-0.1px`,fontWeight:500}],"text-title-md":[`16px`,{lineHeight:`120%`,letterSpacing:`-0.15px`,fontWeight:500}],"text-title-lg":[`20px`,{lineHeight:`120%`,letterSpacing:`-0.4px`,fontWeight:500}]},ee={"text-headline-sm":[`24px`,{lineHeight:`120%`,fontWeight:`var(--headline-sm-font-weight)`,letterSpacing:`-0.2px`}],"text-headline-md":[`28px`,{lineHeight:`120%`,fontWeight:`var(--headline-md-font-weight)`,letterSpacing:`-0.4px`}],"text-headline-lg":[`32px`,{lineHeight:`120%`,fontWeight:`var(--headline-lg-font-weight)`,letterSpacing:`-0.4px`}]},O={"text-display-sm":[`36px`,{lineHeight:`var(--display-sm-line-height)`,fontWeight:`var(--display-sm-font-weight)`}],"text-display-md":[`48px`,{lineHeight:`var(--display-md-line-height)`,fontWeight:`var(--display-md-font-weight)`}],"text-display-lg":[`60px`,{lineHeight:`var(--display-lg-line-height)`,fontWeight:`var(--display-lg-font-weight)`}]},te={...w,...T,...E,...D,...ee,...O},ne=Object.entries(te).reduce((e,[t,n])=>{let r=t.startsWith(`text-`)?t.replace(`text-`,``):t;return{...e,[r]:n}},{}),k=function(e){return e.Xs=`xs--rs`,e.Sm=`sm--rs`,e.Md=`md--rs`,e}(k||{}),re={[k.Xs]:[`4px`,`8px`],[k.Sm]:[`8px`,`12px`],[k.Md]:[`16px`,`24px`]};function ie(e,t){let n=[m.Sm,m.Md,m.Lg,m.Xl],r=re[e],i=`${r[0]}`;for(let e=1;e<r.length;e++)if(r[e]){let a=t[n[e]];a&&(i=`clamp(${i}, (100vw - ${a}) * 99, ${r[e]})`)}return i}function ae(e){return Object.keys(re).reduce((t,n)=>{let r=ie(n,e);return{...t,[n]:r}},{})}var oe={inter:[`Inter`,`sans-serif`],"alliance-no2":[`AllianceNo2`,`sans-serif`],"roboto-flex":[`Roboto Flex Variable`,`sans-serif`]},se={"default-surface":`var(--default-surface)`,"on-default":`var(--on-default)`,"warning-surface":`var(--warning-surface)`,"on-warning":`var(--on-warning)`,"error-surface":`var(--error-surface)`,"on-error":`var(--on-error)`,"success-surface":`var(--success-surface)`,"on-success":`var(--on-success)`},ce=u((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),Object.defineProperty(e,`default`,{enumerable:!0,get:function(){return n}});function t(e,t){return{handler:e,config:t}}t.withOptions=function(e,t=()=>({})){let n=function(n){return{__options:n,handler:e(n),config:t(n)}};return n.__isOptionsFunction=!0,n.__pluginFunction=e,n.__configFunction=t,n};var n=t})),A=u((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),Object.defineProperty(e,`default`,{enumerable:!0,get:function(){return r}});var t=n(ce());function n(e){return e&&e.__esModule?e:{default:e}}var r=t.default})),le=u(((e,t)=>{var n=A();t.exports=(n.__esModule?n:{default:n}).default})),ue=[`a`,`button`,`input`,`select`,`textarea`,`label`,`[role="button"]`,`[role="checkbox"]`,`[role="link"]`,`[role="switch"]`].join(`,`),de=`data-row-link`,fe={[de]:!0},j=f(le()),pe=(0,j.default)(({addVariant:e})=>{e(`firefox`,`@-moz-document url-prefix()`)}),me=(0,j.default)(({addVariant:e})=>{e(`names`,`&:is(.names *)`)}),he=(0,j.default)(({addVariant:e})=>{let t=`a:not([${de}])`;e(`row-hover`,`&:hover:not(:has(:is(${ue}):not([${de}]):hover))`),e(`inner-link`,`& ${t}`),e(`inner-link-hover`,`& ${t}:hover`)}),ge={"names-gradient-primary":`var(--names-gradient-primary)`},_e={content:[`./src/**/*.{html,js,jsx,ts,tsx}`],darkMode:`selector`,plugins:[pe,me,he],theme:{extend:{fontSize:{...ne},borderRadius:{...x},spacing:e=>{let t=ae(e.theme(`screens`));return{...S,...t}},opacity:{...C,30:`0.3`},colors:{...v,...y,...b,...se},fontFamily:oe,backgroundImage:{...ge},keyframes:{"dialog-overlay-show":{from:{opacity:`0`},to:{opacity:`1`}},"dialog-content-show":{from:{opacity:`0`,transform:`translate(-50%, -50%) scale(0.92)`},to:{opacity:`1`,transform:`translate(-50%, -50%) scale(1)`}},"dialog-panel-show":{from:{opacity:`0`,transform:`translateX(12px)`},to:{opacity:`1`,transform:`translateX(0)`}},"dropdown-show":{from:{opacity:`0`,transform:`scale(0.94)`},to:{opacity:`1`,transform:`scale(1)`}}},animation:{"dialog-overlay-show":`dialog-overlay-show 170ms ease-out`,"dialog-content-show":`dialog-content-show 170ms ease-out`,"dialog-panel-show":`dialog-panel-show 210ms ease-out`,"dropdown-show":`dropdown-show 125ms ease-out`}}}},ve=f(u(((e,t)=>{var n=200,r=`__lodash_hash_undefined__`,i=800,a=16,o=9007199254740991,s=`[object Arguments]`,c=`[object Array]`,l=`[object AsyncFunction]`,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Function]`,m=`[object GeneratorFunction]`,h=`[object Map]`,g=`[object Number]`,_=`[object Null]`,v=`[object Object]`,y=`[object Proxy]`,b=`[object RegExp]`,x=`[object Set]`,S=`[object String]`,C=`[object Undefined]`,w=`[object WeakMap]`,T=`[object ArrayBuffer]`,E=`[object DataView]`,D=`[object Float32Array]`,ee=`[object Float64Array]`,O=`[object Int8Array]`,te=`[object Int16Array]`,ne=`[object Int32Array]`,k=`[object Uint8Array]`,re=`[object Uint8ClampedArray]`,ie=`[object Uint16Array]`,ae=`[object Uint32Array]`,oe=/[\\^$.*+?()[\]{}|]/g,se=/^\[object .+?Constructor\]$/,ce=/^(?:0|[1-9]\d*)$/,A={};A[D]=A[ee]=A[O]=A[te]=A[ne]=A[k]=A[re]=A[ie]=A[ae]=!0,A[s]=A[c]=A[T]=A[u]=A[E]=A[d]=A[f]=A[p]=A[h]=A[g]=A[v]=A[b]=A[x]=A[S]=A[w]=!1;var le=typeof global==`object`&&global&&global.Object===Object&&global,ue=typeof self==`object`&&self&&self.Object===Object&&self,de=le||ue||Function(`return this`)(),fe=typeof e==`object`&&e&&!e.nodeType&&e,j=fe&&typeof t==`object`&&t&&!t.nodeType&&t,pe=j&&j.exports===fe,me=pe&&le.process,he=function(){try{return j&&j.require&&j.require(`util`).types||me&&me.binding&&me.binding(`util`)}catch{}}(),ge=he&&he.isTypedArray;function _e(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ve(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function ye(e){return function(t){return e(t)}}function be(e,t){return e?.[t]}function xe(e,t){return function(n){return e(t(n))}}var Se=Array.prototype,M=Function.prototype,Ce=Object.prototype,we=de[`__core-js_shared__`],Te=M.toString,N=Ce.hasOwnProperty,P=function(){var e=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),Ee=Ce.toString,F=Te.call(Object),I=RegExp(`^`+Te.call(N).replace(oe,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),De=pe?de.Buffer:void 0,Oe=de.Symbol,ke=de.Uint8Array,Ae=De?De.allocUnsafe:void 0,je=xe(Object.getPrototypeOf,Object),Me=Object.create,Ne=Ce.propertyIsEnumerable,Pe=Se.splice,Fe=Oe?Oe.toStringTag:void 0,L=function(){try{var e=At(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),Ie=De?De.isBuffer:void 0,R=Math.max,Le=Date.now,Re=At(de,`Map`),ze=At(Object,`create`),Be=function(){function e(){}return function(t){if(!G(t))return{};if(Me)return Me(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ve(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function He(){this.__data__=ze?ze(null):{},this.size=0}function Ue(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function We(e){var t=this.__data__;if(ze){var n=t[e];return n===r?void 0:n}return N.call(t,e)?t[e]:void 0}function Ge(e){var t=this.__data__;return ze?t[e]!==void 0:N.call(t,e)}function Ke(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=ze&&t===void 0?r:t,this}Ve.prototype.clear=He,Ve.prototype.delete=Ue,Ve.prototype.get=We,Ve.prototype.has=Ge,Ve.prototype.set=Ke;function z(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qe(){this.__data__=[],this.size=0}function Je(e){var t=this.__data__,n=pt(t,e);return n<0?!1:(n==t.length-1?t.pop():Pe.call(t,n,1),--this.size,!0)}function Ye(e){var t=this.__data__,n=pt(t,e);return n<0?void 0:t[n][1]}function Xe(e){return pt(this.__data__,e)>-1}function Ze(e,t){var n=this.__data__,r=pt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}z.prototype.clear=qe,z.prototype.delete=Je,z.prototype.get=Ye,z.prototype.has=Xe,z.prototype.set=Ze;function Qe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $e(){this.size=0,this.__data__={hash:new Ve,map:new(Re||z),string:new Ve}}function et(e){var t=kt(this,e).delete(e);return this.size-=+!!t,t}function tt(e){return kt(this,e).get(e)}function nt(e){return kt(this,e).has(e)}function rt(e,t){var n=kt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Qe.prototype.clear=$e,Qe.prototype.delete=et,Qe.prototype.get=tt,Qe.prototype.has=nt,Qe.prototype.set=rt;function it(e){this.size=(this.__data__=new z(e)).size}function at(){this.__data__=new z,this.size=0}function ot(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function st(e){return this.__data__.get(e)}function ct(e){return this.__data__.has(e)}function lt(e,t){var r=this.__data__;if(r instanceof z){var i=r.__data__;if(!Re||i.length<n-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Qe(i)}return r.set(e,t),this.size=r.size,this}it.prototype.clear=at,it.prototype.delete=ot,it.prototype.get=st,it.prototype.has=ct,it.prototype.set=lt;function ut(e,t){var n=Gt(e),r=!n&&Wt(e),i=!n&&!r&&Jt(e),a=!n&&!r&&!i&&$t(e),o=n||r||i||a,s=o?ve(e.length,String):[],c=s.length;for(var l in e)(t||N.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Nt(l,c)))&&s.push(l);return s}function dt(e,t,n){(n!==void 0&&!Ut(e[t],n)||n===void 0&&!(t in e))&&mt(e,t,n)}function ft(e,t,n){var r=e[t];(!(N.call(e,t)&&Ut(r,n))||n===void 0&&!(t in e))&&mt(e,t,n)}function pt(e,t){for(var n=e.length;n--;)if(Ut(e[n][0],t))return n;return-1}function mt(e,t,n){t==`__proto__`&&L?L(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var ht=Ot();function B(e){return e==null?e===void 0?C:_:Fe&&Fe in Object(e)?jt(e):Rt(e)}function gt(e){return Zt(e)&&B(e)==s}function _t(e){return!G(e)||It(e)?!1:(Yt(e)?I:se).test(Ht(e))}function vt(e){return Zt(e)&&Xt(e.length)&&!!A[B(e)]}function yt(e){if(!G(e))return U(e);var t=Lt(e),n=[];for(var r in e)r==`constructor`&&(t||!N.call(e,r))||n.push(r);return n}function bt(e,t,n,r,i){e!==t&&ht(t,function(a,o){if(i||=new it,G(a))xt(e,t,o,n,bt,r,i);else{var s=r?r(Bt(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),dt(e,o,s)}},tn)}function xt(e,t,n,r,i,a,o){var s=Bt(e,n),c=Bt(t,n),l=o.get(c);if(l){dt(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=Gt(c),p=!f&&Jt(c),m=!f&&!p&&$t(c);u=c,f||p||m?Gt(s)?u=s:qt(s)?u=Et(s):p?(d=!1,u=wt(c,!0)):m?(d=!1,u=Tt(c,!0)):u=[]:Qt(c)||Wt(c)?(u=s,Wt(s)?u=en(s):(!G(s)||Yt(s))&&(u=Mt(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),dt(e,n,u)}function St(e,t){return Vt(zt(e,t,an),e+``)}var Ct=L?function(e,t){return L(e,`toString`,{configurable:!0,enumerable:!1,value:rn(t),writable:!0})}:an;function wt(e,t){if(t)return e.slice();var n=e.length,r=Ae?Ae(n):new e.constructor(n);return e.copy(r),r}function V(e){var t=new e.constructor(e.byteLength);return new ke(t).set(new ke(e)),t}function Tt(e,t){var n=t?V(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Et(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function Dt(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?mt(n,s,c):ft(n,s,c)}return n}function H(e){return St(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Pt(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}function Ot(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function kt(e,t){var n=e.__data__;return Ft(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function At(e,t){var n=be(e,t);return _t(n)?n:void 0}function jt(e){var t=N.call(e,Fe),n=e[Fe];try{e[Fe]=void 0;var r=!0}catch{}var i=Ee.call(e);return r&&(t?e[Fe]=n:delete e[Fe]),i}function Mt(e){return typeof e.constructor==`function`&&!Lt(e)?Be(je(e)):{}}function Nt(e,t){var n=typeof e;return t??=o,!!t&&(n==`number`||n!=`symbol`&&ce.test(e))&&e>-1&&e%1==0&&e<t}function Pt(e,t,n){if(!G(n))return!1;var r=typeof t;return(r==`number`?Kt(n)&&Nt(t,n.length):r==`string`&&t in n)?Ut(n[t],e):!1}function Ft(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function It(e){return!!P&&P in e}function Lt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Ce)}function U(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}function Rt(e){return Ee.call(e)}function zt(e,t,n){return t=R(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=R(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),_e(e,this,s)}}function Bt(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var Vt=W(Ct);function W(e){var t=0,n=0;return function(){var r=Le(),o=a-(r-n);if(n=r,o>0){if(++t>=i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ht(e){if(e!=null){try{return Te.call(e)}catch{}try{return e+``}catch{}}return``}function Ut(e,t){return e===t||e!==e&&t!==t}var Wt=gt(function(){return arguments}())?gt:function(e){return Zt(e)&&N.call(e,`callee`)&&!Ne.call(e,`callee`)},Gt=Array.isArray;function Kt(e){return e!=null&&Xt(e.length)&&!Yt(e)}function qt(e){return Zt(e)&&Kt(e)}var Jt=Ie||on;function Yt(e){if(!G(e))return!1;var t=B(e);return t==p||t==m||t==l||t==y}function Xt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=o}function G(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Zt(e){return typeof e==`object`&&!!e}function Qt(e){if(!Zt(e)||B(e)!=v)return!1;var t=je(e);if(t===null)return!0;var n=N.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Te.call(n)==F}var $t=ge?ye(ge):vt;function en(e){return Dt(e,tn(e))}function tn(e){return Kt(e)?ut(e,!0):yt(e)}var nn=H(function(e,t,n){bt(e,t,n)});function rn(e){return function(){return e}}function an(e){return e}function on(){return!1}t.exports=nn}))()),ye=_({[m.Sm]:768,[m.Md]:1024,[m.Lg]:1400,[m.Xl]:1920}),be=(0,ve.default)({},_e,{theme:{screens:ye,container:{center:!0,screens:ye,padding:{DEFAULT:g(20),md:g(48),lg:g(120),xl:g(240)}}}}),xe=(0,ve.default)({},_e,{theme:{screens:_({default:0})},corePlugins:{container:!1}}),Se=u(((e,t)=>{(function(){"use strict";var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()})),M=function(e){return e.Neutral=`neutral`,e.PrimarySolid=`primary-solid`,e.PrimarySoft=`primary-soft`,e.Success=`success`,e.Warning=`warning`,e.Outlined=`outlined`,e.Error=`error`,e}({}),Ce=function(e){return e.Medium=`medium`,e.Small=`small`,e}({}),we={[M.PrimarySolid]:`badge-bg-color-primary`,[M.Neutral]:`badge-bg-color-neutral`,[M.PrimarySoft]:`badge-bg-color-primary-soft`,[M.Success]:`bg-success-surface`,[M.Warning]:`bg-warning-surface`,[M.Outlined]:`bg-transparent`,[M.Error]:`bg-error-surface`},Te={[M.PrimarySolid]:`badge-text-color-primary`,[M.Neutral]:`badge-text-color-neutral`,[M.PrimarySoft]:`badge-text-color-primary-soft`,[M.Success]:`text-on-success`,[M.Warning]:`text-on-warning`,[M.Outlined]:`badge-text-color-neutral`,[M.Error]:`text-on-error`},N={[M.PrimarySolid]:`badge-border-color-primary`,[M.Neutral]:`badge-border-color-neutral`,[M.PrimarySoft]:`badge-border-color-soft`,[M.Success]:`border-success-surface`,[M.Warning]:`border-warning-surface`,[M.Outlined]:`badge-border-color-outlined`,[M.Error]:`border-error-surface`},P=f(Se());function Ee({type:e,label:n,size:r=Ce.Medium,icon:i}){let a=we[e],o=Te[e],s=r===Ce.Small,c=e===M.Outlined,l=n?`px-xs py-xxs`:`h-1.5 w-1.5`,u=s?`text-label-sm`:`text-label-md`;return(0,t.jsxs)(`div`,{className:(0,P.default)(`inline-flex items-center rounded-full disabled:opacity-30`,i?`gap-xxs`:`space-x-2`,{border:!s},{[N[e]]:!s},{"badge-ring-outlined":s&&c},a,l),children:[i&&(0,t.jsx)(`span`,{className:(0,P.default)(`flex h-4 w-4 items-center justify-center`,o),children:i}),(0,t.jsx)(`span`,{className:(0,P.default)(u,o),children:n})]})}var F=function(e){return e.Small=`small`,e.Medium=`medium`,e}({}),I=function(e){return e.Primary=`primary`,e.Secondary=`secondary`,e.Ghost=`ghost`,e.Outlined=`outlined`,e.Destructive=`destructive`,e}({}),De=function(e){return e.Button=`button`,e.Submit=`submit`,e.Reset=`reset`,e}({}),Oe={[F.Small]:`px-md py-xs`,[F.Medium]:`px-md py-sm`},ke={[F.Small]:`p-xs`,[F.Medium]:`p-sm`},Ae={[I.Primary]:`button-bg-color-primary`,[I.Secondary]:`button-bg-color-secondary`,[I.Ghost]:`bg-transparent`,[I.Outlined]:`bg-transparent button-border-color-outline`,[I.Destructive]:`button-bg-color-error`},je={[I.Primary]:`button-bg-color-disabled-primary`,[I.Secondary]:`button-bg-color-secondary`,[I.Ghost]:`bg-transparent`,[I.Outlined]:`bg-transparent button-border-color-outline`,[I.Destructive]:`button-bg-color-error`},Me=`button-text-color-neutral`,Ne={[I.Primary]:`button-text-color-primary`,[I.Secondary]:Me,[I.Ghost]:Me,[I.Outlined]:Me,[I.Destructive]:`button-text-color-error`},Pe={[F.Small]:`text-label-md`,[F.Medium]:`text-label-lg`},Fe={[I.Primary]:Me,[I.Secondary]:Me,[I.Ghost]:Me,[I.Outlined]:Me,[I.Destructive]:`button-text-color-error`},L=(0,n.forwardRef)(({icon:e,text:n,disabled:r,onClick:i,fullWidth:a,htmlType:o=De.Button,size:s=F.Medium,type:c=I.Primary,iconAfterText:l=!1,tabIndex:u=0,testId:d,...f},p)=>{let m=e&&!n?ke[s]:Oe[s],h=Pe[s],g=r?je[c]:Ae[c],_=r?Fe[c]:Ne[c];return(0,t.jsxs)(`button`,{type:o,...f,ref:p,onClick:i,className:(0,P.default)(`state-layer relative flex items-center justify-center gap-2 rounded-full transition-all duration-150 ease-in disabled:cursor-not-allowed disabled:opacity-40`,m,g,a&&`w-full`,l?`flex-row-reverse`:`flex-row`,`btn btn-${c}`),disabled:r,tabIndex:u,"data-testid":d,children:[e&&(0,t.jsx)(`span`,{className:(0,P.default)(_),children:e}),n&&(0,t.jsx)(`span`,{className:(0,P.default)(`font-inter`,_,h),children:n})]})});function Ie({htmlType:e=De.Button,children:n,tabIndex:r=0,...i}){return(0,t.jsx)(`button`,{className:`button-pill-border-color button-pill-text-color flex items-center justify-center rounded-xl border px-sm text-body-md disabled:opacity-40`,type:e,tabIndex:r,...i,children:n})}function R({htmlType:e=De.Button,children:n,className:r,tabIndex:i=0,testId:a,...o}){return(0,t.jsx)(`button`,{type:e,...o,className:(0,P.default)(`appearance-none`,r),tabIndex:i,"data-testid":a,children:n})}function Le(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M4 12.004a1 1 0 0 0 .293.703l6 6a1 1 0 0 0 1.414-1.414L7.414 13H19a1 1 0 1 0 0-2H7.414l4.293-4.293a1 1 0 0 0-1.414-1.414l-6 6a1 1 0 0 0-.293.705z`})})}function Re(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M11.45 15.335a1 1 0 0 0 1.257-.128l5-5a1 1 0 0 0-1.414-1.414L12 13.086 7.707 8.793a1 1 0 0 0-1.414 1.414l5 5a1 1 0 0 0 .157.128`})})}function ze(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M8.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L10.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157`})})}function Be(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`m10.707 6.293 5 5a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414-1.414L13.586 12 9.293 7.707a1 1 0 0 1 1.414-1.414`})})}function Ve(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M17.483 6.29a1 1 0 0 0-.705-.29h-8.07a1 1 0 1 0 0 2h5.656l-8.071 8.071a1 1 0 1 0 1.414 1.414l8.071-8.07v5.656a1 1 0 1 0 2 0v-8.07a1 1 0 0 0-.291-.706l-.002-.002z`})})}function He(e){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,t.jsx)(`path`,{fill:`currentColor`,d:`M14 14a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2z`}),(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M8 2a1 1 0 0 1 1 1v1h6V3a1 1 0 1 1 2 0v1h1a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1V3a1 1 0 0 1 1-1M5 17V8h14v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1`,clipRule:`evenodd`})]})}function Ue(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`m10.26 13.845 5.95-5.95a.994.994 0 0 1 1.405-.008.994.994 0 0 1-.008 1.406L10.95 15.95a.994.994 0 0 1-1.406.008l-2.846-2.845a.994.994 0 0 1 .01-1.406.994.994 0 0 1 1.405-.009z`,clipRule:`evenodd`})})}function We(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m4.21-14.104-5.95 5.95-2.147-2.148a.994.994 0 0 0-1.406.009.994.994 0 0 0-.009 1.405l2.846 2.846a.994.994 0 0 0 1.406-.008l6.657-6.657a.994.994 0 0 0 .008-1.406.994.994 0 0 0-1.405.009`,clipRule:`evenodd`})})}function Ge(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M18.707 6.707a1 1 0 0 0-1.414-1.414L12 10.586 6.707 5.293a1 1 0 0 0-1.414 1.415L10.586 12l-5.293 5.293a1 1 0 1 0 1.414 1.414L12 13.414l5.293 5.294a1 1 0 0 0 1.414-1.415L13.414 12z`,clipRule:`evenodd`})})}function Ke(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v1h1a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3h-8a3 3 0 0 1-3-3v-1H6a3 3 0 0 1-3-3zm6 12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-8a1 1 0 0 0-1 1zm6-11h-5a3 3 0 0 0-3 3v5H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1z`,clipRule:`evenodd`})})}function z(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`rect`,{width:10,height:2,x:7,y:11,fill:`currentColor`,rx:1})})}function qe(e){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,t.jsx)(`path`,{fill:`currentColor`,d:`M11.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L13.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157`}),(0,t.jsx)(`path`,{fill:`currentColor`,d:`M5.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L7.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157`})]})}function Je(e){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,t.jsx)(`path`,{fill:`currentColor`,d:`M11.835 11.45a1 1 0 0 1-.128 1.257l-5 5a1 1 0 0 1-1.414-1.414L9.586 12 5.293 7.707a1 1 0 0 1 1.414-1.414l5 5a1 1 0 0 1 .128.157`}),(0,t.jsx)(`path`,{fill:`currentColor`,d:`M17.835 11.45a1 1 0 0 1-.128 1.257l-5 5a1 1 0 0 1-1.414-1.414L15.586 12l-4.293-4.293a1 1 0 0 1 1.414-1.414l5 5a1 1 0 0 1 .128.157`})]})}function Ye(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18m0-14.4A1.2 1.2 0 1 0 12 9a1.2 1.2 0 0 0 0-2.4m1.2 9a1.2 1.2 0 0 1-2.4 0V12a1.2 1.2 0 0 1 2.4 0z`,clipRule:`evenodd`})})}function Xe(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M18.27 2.259c0 .695-.568 1.259-1.268 1.259s-1.267-.564-1.267-1.259S16.302 1 17.002 1s1.268.564 1.268 1.259m1.425 17.785c0 .695-.568 1.259-1.268 1.259s-1.267-.564-1.267-1.26c0-.695.567-1.258 1.267-1.258s1.268.563 1.268 1.259m-2.33-13.379a1.06 1.06 0 0 0 1.063-1.056 1.06 1.06 0 0 0-1.063-1.057A1.06 1.06 0 0 0 16.3 5.61a1.06 1.06 0 0 0 1.064 1.056Zm3.891-.651a1.06 1.06 0 0 1-1.063 1.056 1.06 1.06 0 0 1-1.064-1.056 1.06 1.06 0 0 1 1.064-1.057 1.06 1.06 0 0 1 1.063 1.057m-4.253 3.329c.5 0 .905-.403.905-.9 0-.496-.405-.9-.905-.9s-.906.404-.906.9c0 .497.406.9.906.9m3.734-.52c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.496.405-.9.906-.9.5 0 .905.404.905.9m1.357 1.777c.5 0 .906-.402.906-.899s-.405-.9-.906-.9c-.5 0-.905.403-.905.9s.405.9.905.9Zm-2.309.495a.79.79 0 0 1-.792.787.79.79 0 0 1-.791-.787c0-.434.354-.786.791-.786s.792.352.792.786m-3.62.404a.79.79 0 0 0 .792-.787.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .435.354.787.791.787m5.907.471a.79.79 0 0 1-.791.787.79.79 0 0 1-.792-.786.79.79 0 0 1 .792-.787.79.79 0 0 1 .791.787Zm-4.21 1.554c.375 0 .68-.302.68-.675a.677.677 0 0 0-.68-.675.68.68 0 0 0-.68.675c0 .373.304.675.68.675m2.968.178a.68.68 0 0 1-.68.676.677.677 0 0 1-.68-.676c0-.373.304-.675.68-.675.375 0 .68.302.68.675m-5.774-.582c.375 0 .68-.302.68-.675a.68.68 0 0 0-.68-.675.68.68 0 0 0-.68.675c0 .373.304.675.68.675m2.127.943c0 .31-.254.561-.566.561a.564.564 0 0 1-.566-.562c0-.31.253-.561.566-.561s.566.251.566.562m.407 2.114a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m-.791-.09a.407.407 0 0 1-.408.405.407.407 0 0 1-.408-.405c0-.223.182-.405.408-.405s.408.181.408.405m-1.472-.765a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m-.973-1.64c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.566.251.566.562m-.588-3.666a.564.564 0 0 0 .566-.562.564.564 0 0 0-.566-.562.564.564 0 0 0-.565.562c0 .31.253.562.565.562m.745-2.473a.496.496 0 0 1-.497.494.496.496 0 0 1-.498-.494c0-.273.223-.494.498-.494s.498.22.498.494Zm.047-1.123a.406.406 0 0 0 .407-.406.406.406 0 0 0-.407-.405.407.407 0 0 0-.408.405c0 .224.182.406.408.406m-.452-1.26a.496.496 0 0 1-.498.494.496.496 0 0 1-.498-.494c0-.273.223-.494.498-.494s.498.22.498.494m4.776 10.32a.564.564 0 0 0 .566-.561.564.564 0 0 0-.566-.562.564.564 0 0 0-.566.562c0 .31.253.562.566.562ZM12.883 4.439c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.254-.562.566-.562s.566.251.566.562m-.18 2.945a.564.564 0 0 0 .566-.562.564.564 0 0 0-.566-.561.564.564 0 0 0-.566.561c0 .31.253.562.566.562m.045 1.597a.677.677 0 0 1-.68.676.68.68 0 0 1-.679-.676c0-.373.304-.675.68-.675.375 0 .68.302.68.675Zm-2.74.676a.79.79 0 0 0 .791-.786.79.79 0 0 0-.791-.787.79.79 0 0 0-.792.787c0 .434.354.786.792.786m-1.494-.36c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.497.406-.9.906-.9s.905.403.905.9m-3.529 2.18a1.06 1.06 0 0 0 1.063-1.056 1.06 1.06 0 0 0-1.063-1.056A1.06 1.06 0 0 0 3.92 10.42a1.06 1.06 0 0 0 1.064 1.056Zm-1.45.9c0 .696-.568 1.26-1.268 1.26S1 13.073 1 12.377c0-.695.567-1.259 1.267-1.259s1.268.564 1.268 1.26Zm.386-3.531A1.06 1.06 0 0 0 4.985 7.79 1.06 1.06 0 0 0 3.92 6.733 1.06 1.06 0 0 0 2.858 7.79 1.06 1.06 0 0 0 3.92 8.846Zm3.53-2.181c0 .497-.405.9-.906.9a.903.903 0 0 1-.905-.9c0-.496.405-.9.905-.9s.906.404.906.9M6.162 5.182c.5 0 .905-.403.905-.9 0-.496-.405-.9-.905-.9s-.906.404-.906.9c0 .497.406.9.906.9m3.19-1.326a.79.79 0 0 1-.791.787.79.79 0 0 1-.792-.787c0-.434.354-.786.792-.786.437 0 .791.352.791.786m1.268.788c.375 0 .68-.303.68-.675a.677.677 0 0 0-.68-.676.68.68 0 0 0-.68.675c0 .373.304.676.68.676m1.063 1.708a.68.68 0 0 1-.68.675.677.677 0 0 1-.68-.675c0-.373.305-.675.68-.675s.68.302.68.675m-2.739.695a.79.79 0 0 0 .792-.786.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .434.354.786.791.786m-1.832 5.578a.407.407 0 0 1-.408.405.407.407 0 0 1-.408-.405c0-.223.182-.405.408-.405s.408.181.408.405m1.221.201a.496.496 0 0 0 .497-.494.496.496 0 0 0-.497-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m2.354-1.236c0 .31-.253.562-.565.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.565.252.565.562m-.135 2.361c.375 0 .68-.302.68-.675a.677.677 0 0 0-.68-.675.677.677 0 0 0-.68.675c0 .373.304.675.68.675m-1.608-.135c0 .31-.253.562-.566.562a.564.564 0 0 1-.565-.562c0-.31.253-.562.565-.562.313 0 .566.252.566.562m-2.488.538a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m.588.991c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.566.252.566.562m1.742.855c.376 0 .68-.303.68-.675a.677.677 0 0 0-.68-.676.677.677 0 0 0-.68.675c0 .373.305.676.68.676m3.484-1.08a.79.79 0 0 1-.79.786.79.79 0 0 1-.792-.786c0-.435.354-.787.791-.787s.792.352.792.787Zm.794 2.743c.5 0 .906-.402.906-.9 0-.496-.406-.899-.906-.899s-.905.403-.905.9.405.9.905.9Zm-2.536-.518a.79.79 0 0 1-.792.786.79.79 0 0 1-.792-.787.79.79 0 0 1 .792-.786.79.79 0 0 1 .792.787m-2.669 2.316a.79.79 0 0 0 .791-.786.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .434.354.786.792.786m2.466 1.079c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.496.405-.9.906-.9.5 0 .905.404.905.9M13.584 22a1.06 1.06 0 0 0 1.064-1.056 1.06 1.06 0 0 0-1.064-1.057 1.06 1.06 0 0 0-1.063 1.057A1.06 1.06 0 0 0 13.584 22m-1.379-2.788c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.497.405-.9.905-.9s.906.403.906.9m3.123.54a1.06 1.06 0 0 0 1.063-1.057 1.06 1.06 0 0 0-1.063-1.056 1.06 1.06 0 0 0-1.064 1.056 1.06 1.06 0 0 0 1.064 1.057m-7.741-2.699a.677.677 0 0 1-.68.676.677.677 0 0 1-.68-.676c0-.373.305-.675.68-.675s.68.302.68.675`})})}function Ze(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M5.533 9.321A7 7 0 1 0 19 12a1 1 0 1 1 2 0 9 9 0 1 1-9-9 1 1 0 1 1 0 2 7 7 0 0 0-6.467 4.321`,clipRule:`evenodd`})})}function Qe(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M21 9a1 1 0 0 1-1 1H4a1 1 0 1 1 0-2h16a1 1 0 0 1 1 1m0 6a1 1 0 0 1-1 1H10a1 1 0 1 1 0-2h10a1 1 0 0 1 1 1`})})}function $e(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M5 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4m9-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0m7 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0`})})}function et(e){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,t.jsx)(`path`,{fill:`currentColor`,d:`M11 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0m4 2a2 2 0 1 0 0-4 2 2 0 0 0 0 4`}),(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M2 8a6 6 0 0 1 6-6h8a6 6 0 0 1 6 6v8a6 6 0 0 1-6 6H8a6 6 0 0 1-6-6zm2 0a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v3.871a19.13 19.13 0 0 1-16 0zm0 6.051V16a4 4 0 0 0 4 4h8a4 4 0 0 0 4-4v-1.949a21.13 21.13 0 0 1-16 0`,clipRule:`evenodd`})]})}function tt(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8`})})}function nt(e){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,t.jsx)(`path`,{fill:`currentColor`,d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8`}),(0,t.jsx)(`path`,{fill:`currentColor`,d:`M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10`})]})}function rt(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M11 4a7 7 0 1 0 3.594 13.008l3.699 3.7a1 1 0 0 0 1.414-1.415l-3.555-3.555A7 7 0 0 0 11 4m-5 7a5 5 0 1 1 10 0 5 5 0 0 1-10 0`,clipRule:`evenodd`})})}function it(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M12 6a1 1 0 0 0-1 1v9.586l-2.293-2.293a1 1 0 0 0-1.414 1.414l4 4a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L13 16.586V7a1 1 0 0 0-1-1`})})}function at(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M11.293 4.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L13 7.414V17a1 1 0 1 1-2 0V7.414L8.707 9.707a1 1 0 0 1-1.414-1.414z`})})}function ot(e){return(0,t.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,t.jsx)(`path`,{fill:`currentColor`,d:`M17.35 9c.578 0 .867.681.459 1.08l-4.85 4.735a.66.66 0 0 1-.917 0l-4.85-4.735C6.781 9.68 7.071 9 7.648 9z`})})}function st(e){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M18.72 6.695a1 1 0 1 0-1.44-1.39l-1.518 1.572C14.601 6.348 13.331 6 12 6 8.739 6 5.843 8.092 4.017 9.805c-1.29 1.212-1.29 3.178 0 4.39a18 18 0 0 0 2.666 2.083l-1.695 1.755a1 1 0 0 0 1.438 1.39zM8.67 14.219l5.431-5.623a4 4 0 0 0-5.43 5.623Z`,clipRule:`evenodd`}),(0,t.jsx)(`path`,{fill:`currentColor`,d:`M16 12a4 4 0 0 1-3.975 4l-1.749 1.81c.56.122 1.136.19 1.724.19 3.26 0 6.157-2.092 7.983-3.805 1.29-1.212 1.29-3.178 0-4.39a20 20 0 0 0-1.071-.936l-2.914 3.017z`})]})}function ct(e){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,t.jsx)(`path`,{fill:`currentColor`,d:`M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4`}),(0,t.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M19.983 9.805c1.29 1.212 1.29 3.178 0 4.39C18.157 15.908 15.26 18 12 18c-3.261 0-6.157-2.092-7.983-3.805-1.29-1.212-1.29-3.178 0-4.39C5.843 8.092 8.74 6 12 6s6.157 2.092 7.983 3.805M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0`,clipRule:`evenodd`})]})}function lt({id:e,name:n,label:r,supportingLabel:i,body:a,isChecked:o,isDisabled:s,onChange:c,...l}){let u=o?nt:tt;return(0,t.jsxs)(`label`,{className:(0,P.default)(`flex flex-row items-center gap-x-1 text-center has-[:disabled]:opacity-40`,{disabled:s,"cursor-pointer":!s}),children:[(0,t.jsxs)(`div`,{className:(0,P.default)(`relative flex h-10 w-10 shrink-0 items-center justify-center rounded-full`,{"state-layer-secondary":!s}),children:[(0,t.jsx)(`input`,{id:e,name:n,type:`radio`,checked:o,onChange:c,disabled:s,className:(0,P.default)(`peer appearance-none`),...l}),(0,t.jsx)(`span`,{className:`radio-icon-color peer-checked:radio-icon-checked-color peer-checked:peer-disabled:radio-icon-checked-disabled-color absolute size-6`,children:(0,t.jsx)(u,{className:`size-full`})})]}),(0,t.jsxs)(`div`,{className:`flex flex-col items-start gap-xxs text-start`,children:[(0,t.jsxs)(`span`,{className:`radio-label-color inline-flex items-center justify-center gap-1 text-label-lg`,children:[r,i&&(0,t.jsx)(`span`,{className:`text-iota-neutral-60 dark:text-iota-neutral-40`,children:i})]}),a&&(0,t.jsx)(`p`,{className:`text-body-sm text-iota-neutral-40 dark:text-iota-neutral-60`,children:a})]})]})}var ut=`bg-transparent`,dt=`button-segment-bg-color-selected`,ft=`button-segment-text-color-default button-segment-text-color-hover button-segment-text-color-focused`,pt=`button-segment-text-color-selected`,mt=`
|
|
2
2
|
button-segment-underline-base
|
|
3
3
|
before:bottom-0
|
|
4
4
|
button-segment-underline-hover
|
|
5
5
|
button-segment-underline-hover-color
|
|
6
|
-
`,
|
|
6
|
+
`,ht=`
|
|
7
7
|
button-segment-underline-base
|
|
8
8
|
button-segment-underline-selected
|
|
9
|
-
`,lt=function(e){return e.Rounded=`rounded`,e.Underlined=`underlined`,e}({});function ut({icon:e,label:n,selected:r,disabled:i,onClick:a,type:o=lt.Rounded,isNested:s=!1,...c}){let l=o===lt.Underlined,u=r?l?`bg-transparent`:it:rt,d=l?r?ct:st:``,f=r?ot:at,p=l?s?`px-md py-sm`:`px-lg py-md`:`px-sm py-[6px]`,m=l?``:`rounded-full`,h=s?l?`text-title-sm`:`text-label-md`:l?`text-title-md`:`text-label-lg`;return(0,t.jsx)(z,{onClick:a,className:(0,N.default)(`enabled:state-layer-secondary relative flex items-center disabled:opacity-40`,u,f,p,m,d,{"pl-xs":!!e&&!l}),disabled:i,...c,children:(0,t.jsxs)(`div`,{className:(0,N.default)(`flex flex-row items-center justify-center gap-2`,h),children:[e&&(0,t.jsx)(`span`,{children:e}),(0,t.jsx)(`span`,{className:`text-start font-inter`,children:n})]})})}var dt=(0,n.forwardRef)(({isChecked:e,isIndeterminate:r,label:i,isLabelFirst:a,isDisabled:o,onCheckedChange:s,name:c,...l},u)=>{let d=(0,n.useRef)(null);(0,n.useEffect)(()=>{d.current&&(d.current.indeterminate=r??!1)},[r,d]);let f=r?Be:Le;function p(e){u&&(typeof u==`function`?u(e):u.current=e),d.current=e}return(0,t.jsxs)(`div`,{className:(0,N.default)(`group inline-flex has-[:disabled]:opacity-40`,a?`flex-row-reverse`:`flex-row`,{disabled:o,"gap-x-2":i}),children:[(0,t.jsx)(`input`,{id:c,name:c,type:`checkbox`,className:`peer hidden appearance-none`,checked:e,ref:p,disabled:o,onChange:e=>{s?.(e)},...l}),(0,t.jsx)(`span`,{onClick:()=>d.current?.click(),className:(0,N.default)(`checkbox-base checkbox-state checkbox-icon checkbox-icon-hidden shrink-0`,`checkbox-border-default`,`peer-[&:is(:checked,:indeterminate)]:checkbox-border-checked`,`peer-[&:is(:checked,:indeterminate)]:checkbox-bg-checked`,`peer-[&:is(:checked,:indeterminate)]:checkbox-text-checked`,`peer-disabled:peer-[&:not(:checked,:indeterminate)]:checkbox-border-color-disabled`,`peer-disabled:peer-[&:is(:checked,:indeterminate)]:checkbox-border-color-disabled-checked`,`peer-disabled:peer-[&:is(:checked,:indeterminate)]:checkbox-bg-color-disabled-checked`),children:(0,t.jsx)(f,{})}),(0,t.jsx)(ft,{label:i,name:c})]})});function ft({label:e,name:n}){return(0,t.jsx)(`label`,{htmlFor:n,className:`checkbox-label checkbox-label-disabled flex-1`,children:e})}var pt=function(e){return e.Vertical=`vertical`,e.Horizontal=`horizontal`,e}({}),mt=`divider-bg-color`,ht={[pt.Horizontal]:`w-full`,[pt.Vertical]:`h-full`},gt=`1px`;function _t({type:e=pt.Horizontal,width:n,height:r,lineHeight:i=gt}){let a={...e===pt.Horizontal?{height:i}:{width:i}},o=ht[e];return n&&e===pt.Horizontal?o=n:r&&e===pt.Vertical&&(o=r),(0,t.jsx)(`div`,{className:(0,N.default)(mt,o),style:a})}var vt=function(e){return e.Small=`small`,e.Medium=`medium`,e}({}),yt=function(e){return e.Top=`top`,e.Bottom=`bottom`,e.Left=`left`,e.Right=`right`,e}({});function bt({text:e,position:i=yt.Top,maxWidth:a=`max-w-[200px]`,offset:o=8,openDelay:s=0,closeDelay:c=100,children:l}){let u=(0,n.useRef)(null),d=(0,n.useRef)(null),[f,p]=(0,n.useState)(!1),[m,h]=(0,n.useState)({top:0,left:0}),g=(0,n.useRef)(),_=(0,n.useRef)(),v=()=>{clearTimeout(g.current),clearTimeout(_.current)},y=()=>{v(),g.current=setTimeout(()=>p(!0),s)},b=()=>{v(),_.current=setTimeout(()=>p(!1),c)},x=e=>({[yt.Top]:{top:e.top-o,left:e.left+e.width/2,transform:`translate(-50%, -100%)`,anchorX:.5,anchorY:1},[yt.Bottom]:{top:e.bottom+o,left:e.left+e.width/2,transform:`translate(-50%, 0)`,anchorX:.5,anchorY:0},[yt.Left]:{top:e.top+e.height/2,left:e.left-o,transform:`translate(-100%, -50%)`,anchorX:1,anchorY:.5},[yt.Right]:{top:e.top+e.height/2,left:e.right+o,transform:`translate(0, -50%)`,anchorX:0,anchorY:.5}})[i],S=(e,t,n,r)=>{let i=e+t;return i>n-r?n-r-i:e<r?r-e:0};return(0,n.useLayoutEffect)(()=>{if(!f)return;let e=u.current?.getBoundingClientRect(),t=d.current;if(!e||!t)return;let n=x(e);t.style.transform=n.transform;let{width:r,height:i}=t.getBoundingClientRect(),a=n.left-r*n.anchorX,o=n.top-i*n.anchorY,s=S(a,r,window.innerWidth,8),c=S(o,i,window.innerHeight,8);h({top:n.top+c,left:n.left+s})},[f,i,o]),(0,n.useLayoutEffect)(()=>{if(!f)return;let e=()=>{v(),p(!1)};return window.addEventListener(`scroll`,e,!0),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`scroll`,e,!0),window.removeEventListener(`resize`,e)}},[f]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(`div`,{ref:u,className:`inline-block cursor-pointer`,onMouseEnter:y,onFocus:y,onMouseLeave:b,onBlur:b,children:l}),f&&(0,r.createPortal)((0,t.jsx)(`div`,{ref:d,role:`tooltip`,style:{position:`fixed`,top:m.top,left:m.left,transition:`opacity .15s ease`,opacity:1},className:(0,N.default)(`z-[9999999999] w-max rounded p-xs tooltip-bg tooltip-text-color`,a),onMouseEnter:y,onMouseLeave:b,children:(0,t.jsx)(`p`,{className:`w-full break-words`,children:e})}),document.body)]})}function xt({keyText:e,keyIcon:n,value:r,tooltipPosition:i,tooltipText:a,supportingLabel:o,size:s=vt.Small,isTruncated:c=!1,copyText:l,onCopySuccess:u,onCopyError:d,fullwidth:f,isReverse:p=!1,layout:m=`default`,valueHoverTitle:h}){let g=p?`flex-row-reverse`:`flex-row`,_=m===`receipt`;async function v(e){if(navigator.clipboard&&l)try{await navigator.clipboard.writeText(l),u?.(e,l)}catch(e){console.error(`Failed to copy:`,e),d?.(e,l)}}return(0,t.jsxs)(`div`,{className:(0,N.default)(`flex w-full items-baseline gap-xs py-xxs font-inter`,g,{"flex-wrap justify-between":f}),children:[(0,t.jsxs)(`div`,{className:(0,N.default)(`flex shrink-0 flex-row items-center gap-x-0.5`,{"w-1/4":!f&&!_}),children:[n,(0,t.jsx)(`span`,{className:`key-value-key-text-color break-normal text-body-md`,children:e}),a&&(0,t.jsx)(bt,{text:a,position:i,children:(0,t.jsx)(Ue,{className:`key-supporting-text-color`})})]}),_&&!f&&(0,t.jsx)(`span`,{"aria-hidden":`true`,className:`mb-1 min-w-[0.5rem] flex-1 border-b border-dotted border-iota-neutral-80 opacity-60 dark:border-iota-neutral-20`}),(0,t.jsxs)(`div`,{className:(0,N.default)(`flex min-w-0 flex-row items-baseline gap-1 break-all`,{"w-3/4":!f&&!_,"max-w-[60%] justify-end text-right":!f&&_,"flex-wrap":f,"justify-end text-right":f&&_,truncate:c}),children:[(0,t.jsx)(`span`,{title:h,className:(0,N.default)(`key-value-hover-text-color min-w-0`,s===vt.Medium?`text-body-lg`:`text-body-md`,{truncate:c}),children:r}),o&&(0,t.jsx)(`span`,{className:(0,N.default)(`key-supporting-text-color`,s===vt.Medium?`text-body-md`:`text-body-sm`),children:o}),(0,t.jsx)(`div`,{className:`self-center`,children:l&&(0,t.jsx)(z,{onClick:v,"aria-label":`Copy to clipboard`,children:(0,t.jsx)(B,{className:`key-supporting-text-color`})})})]})]})}var H=function(e){return e.Small=`small`,e.Medium=`medium`,e.Large=`large`,e}({}),St={[H.Small]:`text-title-sm`,[H.Medium]:`text-title-md`,[H.Large]:`text-title-lg`},Ct={[H.Small]:`text-label-md`,[H.Medium]:`text-label-md`,[H.Large]:`text-label-lg`},wt={[H.Small]:`text-label-md`,[H.Medium]:`text-label-md`,[H.Large]:`text-label-lg`};function Tt({size:e=H.Medium,isCentered:n,supportingLabel:r,label:i,text:a,tooltipPosition:o,tooltipText:s}){let c=St[e],l=Ct[e],u=wt[e];return(0,t.jsxs)(`div`,{className:(0,N.default)(`flex flex-col`,n?`items-center`:`items-start`,e===H.Small?`gap-0.5`:`gap-1`),children:[(0,t.jsxs)(`div`,{className:`flex flex-row flex-wrap items-center gap-0.5`,children:[(0,t.jsx)(`span`,{className:(0,N.default)(`label-text-primary-neutral font-inter`,c),children:a}),r&&(0,t.jsx)(`span`,{className:(0,N.default)(`label-text-secondary-neutral font-inter`,l),children:r})]}),(0,t.jsx)(`div`,{className:`flex flex-row items-center gap-x-0.5`,children:(0,t.jsxs)(`span`,{className:(0,N.default)(`label-text-secondary-neutral flex items-center font-inter`,u),children:[i,s&&(0,t.jsx)(`div`,{className:`ml-xxxs flex items-center`,children:(0,t.jsx)(bt,{text:s,position:o,children:(0,t.jsx)(Ue,{className:`label-text-secondary-neutral`})})})]})})]})}function Et({showRightIcon:e,hideBottomBorder:n,onClick:r,isDisabled:i,children:a,isHighlighted:o,...s}){function c(e){(e.key===`Enter`||e.key===` `)&&!i&&r&&r()}function l(){!i&&r&&r()}return(0,t.jsx)(`div`,{className:(0,N.default)(`w-full`,{"list-item-border-color border-b pb-xs":!n},{"opacity-40":i}),children:(0,t.jsxs)(`div`,{onClick:l,role:`button`,tabIndex:0,onKeyDown:c,...s,className:(0,N.default)(`list-item-color relative flex flex-row items-center justify-between px-md py-sm`,!i&&r?`cursor-pointer`:`cursor-default`,{"list-item-highlight-bg":o,"state-layer-secondary":!i}),children:[a,e&&(0,t.jsx)(R,{size:P.Small,type:F.Ghost,disabled:i,icon:(0,t.jsx)(Pe,{})})]})})}function Dt({title:e,titleCentered:n,onBack:r,onClose:i,testId:a}){let o=n?`text-center`:r?`ml-1`:``,s=n&&(!r||!i);return(0,t.jsxs)(`div`,{className:`header-bg-color header-text-color flex min-h-[56px] w-full items-center px-md--rs pb-xs pt-sm [&_svg]:h-5 [&_svg]:w-5`,children:[r?(0,t.jsx)(R,{size:P.Small,type:F.Ghost,onClick:r,icon:(0,t.jsx)(je,{}),"aria-label":`Back`}):s&&(0,t.jsx)(`div`,{className:`w-9`}),(0,t.jsx)(`div`,{className:(0,N.default)(`flex-grow`,o),children:(0,t.jsx)(`span`,{className:`font-inter text-title-lg`,"data-testid":a,children:e})}),i?(0,t.jsx)(R,{size:P.Small,type:F.Ghost,onClick:i,icon:(0,t.jsx)(ze,{}),testId:`close-icon`,"aria-label":`Close`}):s&&(0,t.jsx)(`div`,{className:`w-9`})]})}function Ot({children:e,hasBorder:n,bgColor:r=`panel-bg`}){return(0,t.jsx)(`div`,{className:(0,N.default)(`flex w-full flex-col rounded-xl`,r,n?`border panel-border-color`:`border border-transparent`),children:e})}function kt(){return(0,t.jsx)(`div`,{className:`flex h-full w-full items-center justify-center bg-iota-neutral-96 dark:bg-iota-neutral-10`,children:(0,t.jsx)(qe,{className:`h-4 w-4 text-iota-neutral-40 dark:text-iota-neutral-60`})})}var At=(0,n.forwardRef)(({onError:e,renderFallback:r,...i},a)=>{let[o,s]=(0,n.useState)(!1);function c(t){s(!0),e?.(t)}return o||!i.src?r||(0,t.jsx)(kt,{}):(0,t.jsx)(jt,{onError:c,ref:a,...i})}),jt=(0,n.forwardRef)((e,n)=>(0,t.jsx)(`img`,{className:`h-full w-full object-cover`,ref:n,...e})),U=function(e){return e.Default=`default`,e.Error=`error`,e.Success=`success`,e.Warning=`warning`,e}({}),Mt=function(e){return e.Default=`default`,e.Elevated=`elevated`,e}({}),Nt={[U.Default]:`bg-default-surface text-on-default`,[U.Error]:`bg-error-surface text-on-error`,[U.Success]:`bg-success-surface text-on-success`,[U.Warning]:`bg-warning-surface text-on-warning`},Pt={[U.Default]:`bg-default-surface`,[U.Error]:`bg-error-surface`,[U.Success]:`bg-success-surface`,[U.Warning]:`bg-warning-surface`};function Ft({icon:e,title:n,supportingText:r,type:i,style:a}){let o=Nt[i];return(0,t.jsxs)(`div`,{className:(0,N.default)(`flex flex-row items-start gap-4 py-xs pr-lg`,a===Mt.Elevated?Pt[i]:``,{"rounded-lg":a===Mt.Elevated,"pl-xs":a===Mt.Elevated&&!!e,"pl-lg":a===Mt.Elevated&&!e}),children:[e&&(0,t.jsx)(`span`,{className:(0,N.default)(`flex items-center justify-center rounded-lg [&_svg]:h-4 [&_svg]:w-4`,o,{"p-xs":a===Mt.Default}),children:e}),(0,t.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[n&&(0,t.jsx)(`span`,{className:`infobox-text-title text-title-sm`,children:n}),r&&(0,t.jsx)(`span`,{className:`infobox-supporting-text text-body-sm`,children:r})]})]})}var W=function(e){return e.Default=`default`,e.Error=`error`,e.Warning=`warning`,e.Success=`success`,e}({}),It={[W.Default]:`text-on-default`,[W.Error]:`text-on-error`,[W.Warning]:`text-on-warning`,[W.Success]:`text-on-success`},Lt={[W.Default]:`bg-default-surface`,[W.Error]:`bg-error-surface`,[W.Warning]:`bg-warning-surface`,[W.Success]:`bg-success-surface`};function Rt({text:e,duration:r=2e3,onClose:i,showClose:a,type:o=W.Default}){return(0,n.useEffect)(()=>{if(r){let e=setTimeout(i,r);return()=>clearTimeout(e)}},[r,i]),(0,t.jsxs)(`div`,{className:(0,N.default)(`transition-all duration-300 ease-out`,`z-99 bottom-0`,`flex w-full items-center justify-between gap-xxs rounded-md py-sm pl-md pr-sm`,Lt[o]),children:[(0,t.jsx)(`div`,{className:(0,N.default)(`w-full text-left text-body-md`,It[o]),children:e}),a&&(0,t.jsx)(z,{onClick:i,"aria-label":`Close`,children:(0,t.jsx)(ze,{className:(0,N.default)(`h-5 w-5`,It[o])})})]})}function zt({color:e=`loading-indicator-color`,size:n=`w-5 h-5`,text:r,testId:i}){return(0,t.jsxs)(`div`,{className:`flex items-center justify-center gap-xs`,children:[(0,t.jsx)(V,{className:(0,N.default)(`animate-spin`,e,n),"data-testid":i}),r&&(0,t.jsx)(`span`,{className:(0,N.default)(`text-body-sm`,e),children:r})]})}function Bt({width:e=`w-full`,height:n=`h-4`}){return(0,t.jsx)(`div`,{className:(0,N.default)(`animate-pulse rounded-md bg-gradient-to-r from-shader-primary-light-8 bg-[length:1000px_100%] dark:from-shader-primary-dark-8`,e,n)})}function Vt({children:e,className:n,hasSecondaryColors:r}){return(0,t.jsx)(`div`,{className:(0,N.default)(`h-3 w-full animate-pulse rounded-full`,r?`skeleton-secondary-bg`:`skeleton-bg`,n),children:e})}var Ht={autoPlay:!0,muted:!0,playsInline:!0,controls:!0,controlsList:`nodownload`,disablePictureInPicture:!0,preload:`auto`,loop:!0,width:`100%`,height:`auto`},Ut={autoPlay:!0,muted:!0,playsInline:!0,controls:!1,disablePictureInPicture:!0,preload:`auto`,loop:!0,width:`100%`,height:`auto`},Wt=(0,n.forwardRef)(({width:e=`100%`,height:n=`auto`,isAutoPlayEnabled:r,disableControls:i,...a},o)=>(0,t.jsx)(`video`,{ref:o,width:e,height:n,...r?i?Ut:Ht:{preload:`metadata`,autoPlay:!1},...a,children:`Your browser does not support the video tag.`})),G=function(e){return e.Small=`small`,e.Default=`default`,e}({}),Gt=function(e){return e.Left=`left`,e.Right=`right`,e}({}),Kt=`relative inline-flex items-center p-xxs border rounded-full cursor-pointer`,qt={active:`toggle-bg-active toggle-border-active`,inactive:`toggle-bg-inactive toggle-border-inactive`,disabledActive:`toggle-bg-disabled-active toggle-border-disabled-active`,disabled:`opacity-40 cursor-not-allowed`},Jt={[G.Small]:`h-5 w-10`,[G.Default]:`h-6 w-12`},Yt=`absolute rounded-full transition-all duration-200 ease-in-out`,Xt={[G.Small]:{unchecked:`left-1`,checked:`left-[34px] -translate-x-full`},[G.Default]:{unchecked:`left-1`,checked:`left-[42px] -translate-x-full`}},Zt={unchecked:`toggle-thumb-color`,checked:`toggle-thumb-color-checked`},Qt={[G.Small]:`h-3 w-3`,[G.Default]:`h-4 w-4`},$t=`inline-flex items-center gap-2`,en=`text-label-lg toggle-label-color`,tn=(0,n.forwardRef)(({label:e,isToggled:r,labelPosition:i=Gt.Right,isDisabled:a=!1,onChange:o,name:s,size:c=G.Default,testId:l,...u},d)=>{let f=(0,n.useRef)(null);function p(e){let t=e.target.checked;o?.(t,e)}function m(e){d&&(typeof d==`function`?d(e):d.current=e),f.current=e}let h=(0,N.default)(Kt,{[qt.active]:r&&!a,[qt.inactive]:!r,[qt.disabledActive]:a&&r,[qt.disabled]:a,[Jt[c]]:!0}),g=(0,N.default)(Yt,{[Xt[c].unchecked]:!r,[Xt[c].checked]:r,[Zt.unchecked]:!r,[Zt.checked]:r,[Qt[c]]:!0}),_=(0,N.default)($t,{"flex-row-reverse":i===Gt.Left,"cursor-not-allowed":a}),v=(0,N.default)(en,{"opacity-40":a&&!r});return(0,t.jsxs)(`div`,{className:_,children:[(0,t.jsx)(`input`,{id:s,name:s,type:`checkbox`,className:`sr-only`,checked:r,ref:m,disabled:a,onChange:p,"data-testid":l}),(0,t.jsx)(`span`,{role:`switch`,"aria-checked":r,onClick:()=>f.current?.click(),className:h,...u,children:(0,t.jsx)(`span`,{className:g})}),e&&(0,t.jsx)(`label`,{htmlFor:s,className:v,children:e})]})});function nn({children:e,hasErrorStyles:n}){return(0,t.jsx)(`p`,{className:(0,N.default)(`secondary-text-color text-label-lg`,{"group-[.errored]:w-full group-[.errored]:secondary-text-error-color group-[.errored]:bg-error-surface group-[.errored]:rounded-xl group-[.errored]:py-1 group-[.errored]:px-2":n}),children:e})}function rn({text:e,isCopyable:n,isExternal:r,externalLink:i,copyText:a=e,onCopySuccess:o,onCopyError:s,onOpen:c}){async function l(e){if(navigator.clipboard){e?.stopPropagation();try{await navigator.clipboard.writeText(a),o?.(e,a)}catch(e){console.error(`Failed to copy:`,e),s?.(e,a)}}}function u(e){if(e?.stopPropagation(),i){let e=window.open(i,`_blank`,`noopener noreferrer`);e&&(e.opener=null)}c?.(e)}return(0,t.jsxs)(`div`,{className:`address-text-color group flex flex-row items-center gap-1`,children:[(0,t.jsx)(`span`,{className:(0,N.default)(`font-inter text-body-sm`),children:e}),n&&(0,t.jsx)(z,{onClick:l,className:`opacity-100`,"aria-label":`Copy to clipboard`,children:(0,t.jsx)(B,{})}),r&&(0,t.jsx)(z,{onClick:u,className:`opacity-100`,"aria-label":`Open in new tab`,children:(0,t.jsx)(Fe,{})})]})}var an=function(e){return e.Image=`image`,e.Video=`video`,e}({});function on({src:e,isAutoPlayEnabled:n,assetType:r,altText:i,showFallback:a,disableControls:o}){return r===an.Video?(0,t.jsx)(Wt,{src:e,isAutoPlayEnabled:n,disableControls:o}):a?(0,t.jsx)(At,{src:e,alt:i}):(0,t.jsx)(jt,{src:e,alt:i})}var K=function(e){return e.Outline=`outline`,e.Elevated=`elevated`,e.Success=`success`,e.Brand=`brand`,e.Error=`error`,e}({}),sn=function(e){return e.Small=`small`,e.Default=`default`,e}({}),cn=`rounded-full`,ln={[K.Outline]:`bg-transparent`,[K.Elevated]:`chip-bg-elevated`,[K.Success]:`bg-success-surface`,[K.Brand]:`chip-bg-brand`,[K.Error]:`bg-error-surface`},un=`outline outline-1 hover:chip-outline-color-hover active:chip-outline-color-active hover:chip-bg-color-hover active:chip-bg-color-active group-focus:chip-bg-color-focus`,dn={[K.Outline]:`chip-bg-selected-outline`},fn=`chip-bg-selected-overlay`,pn={[K.Outline]:`chip-text-secondary`},mn={[K.Outline]:`chip-border-default`,[K.Elevated]:`border-transparent`,[K.Success]:`border-success-surface`,[K.Brand]:`chip-border-color-brand`,[K.Error]:`border-error-surface`},hn={[K.Outline]:`chip-text-default`,[K.Elevated]:`chip-text-secondary`,[K.Success]:`chip-text-secondary`,[K.Brand]:`chip-text-brand`,[K.Error]:`chip-text-secondary`},gn=`focus-visible:shadow-[0_0_0_2px] focus-visible:chip-focus-ring focus-visible:outline-none`;function _n({label:e,type:n=K.Outline,selected:r,showClose:i,onClose:a,onClick:o,avatar:s,leadingElement:c,trailingElement:l,disabled:u,size:d=sn.Default,...f}){let p=n===K.Outline&&r,m=r?n===K.Outline?`outline-transparent names:outline-names-neutral-20`:`chip-outline-color`:`outline-transparent`,h=(0,N.default)(`group-focus:chip-outline-color-active`,n===K.Outline&&`names:group-focus:outline-transparent`),g=r&&!u&&n!==K.Outline?fn:``;return(0,t.jsx)(z,{onClick:o,className:(0,N.default)(`group border disabled:opacity-40`,cn,p?dn[K.Outline]:ln[n],r?`border-transparent`:mn[n]),disabled:u,...f,children:(0,t.jsxs)(`span`,{className:(0,N.default)(`flex h-full w-full flex-row items-center gap-x-2`,s?`py-xxs`:`py-[6px]`,s?`pl-xxs`:c?`pl-xs`:`pl-sm`,i?`pr-xs`:`pr-sm`,cn,p?pn[K.Outline]:hn[n],m,!u&&h,!u&&un,gn,g),children:[s??c,(0,t.jsx)(`span`,{className:(0,N.default)(d===sn.Small?`text-label-md`:`text-body-md`),children:e}),l,i&&(0,t.jsx)(z,{onClick:e=>{e.stopPropagation(),a?.()},disabled:u,"aria-label":`Remove`,children:(0,t.jsx)(ze,{className:(0,N.default)(`h-4 w-4 transition-opacity duration-150`,u?``:r?`opacity-100`:`chip-close-icon-opacity group-hover:opacity-100 group-focus:opacity-100 group-active:opacity-100`)})})]})})}var vn=function(e){return e.Outlined=`outlined`,e.Filled=`filled`,e.Transparent=`transparent`,e}({}),yn={[vn.Outlined]:`bg-transparent`,[vn.Filled]:`segmented-filled-bg-color`,[vn.Transparent]:`bg-transparent`},bn=`border segmented-outlined-border`;function xn({type:e=vn.Filled,children:n,shape:r=lt.Rounded}){let i=yn[e];return(0,t.jsx)(`div`,{className:(0,N.default)(`flex flex-row`,i,e===vn.Outlined?bn:``,r===lt.Rounded?`rounded-full gap-1 p-xxs`:``,r===lt.Rounded?`flex-wrap`:`flex-nowrap overflow-x-auto`),children:n})}var Sn=function(e){return e.Small=`small`,e.Medium=`medium`,e}({}),Cn={[Sn.Small]:`px-md py-sm--rs`,[Sn.Medium]:`px-md--rs py-sm--rs`},wn={[Sn.Small]:`text-title-md`,[Sn.Medium]:`text-title-lg`};function Tn({title:e,subtitle:n,trailingElement:r,tooltipText:i,supportingElement:a,tooltipPosition:o,size:s=Sn.Medium,testId:c}){return(0,t.jsxs)(`div`,{className:(0,N.default)(`flex flex-row items-center justify-between`,Cn[s]),"data-testid":c,children:[(0,t.jsxs)(`div`,{className:`flex flex-row items-center gap-x-xxxs`,children:[(0,t.jsxs)(`div`,{className:`flex flex-col justify-start`,children:[(0,t.jsxs)(`div`,{className:`title-main-color flex flex-row items-center gap-x-0.5`,children:[(0,t.jsx)(`h4`,{className:(0,N.default)(wn[s]),children:e}),i&&(0,t.jsx)(bt,{text:i,position:o,children:(0,t.jsx)(Ue,{className:`title-icon-color`})})]}),(0,t.jsx)(`p`,{className:`title-subtitle-color text-label-md`,children:n})]}),a]}),r]})}var En=`w-full input-caret-color bg-transparent text-body-lg caret-input-caret-color focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed`,Dn=`input-text-color`,On=`input-placeholder-color`,kn=`[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none disabled:cursor-not-allowed`,An=`px-md py-sm rounded-lg border input-border-color input-border-color-disabled group-[.enabled]:cursor-text input-border-error-color hover:group-[.enabled]:input-border-color-hover input-border-color-focus`,jn=`flex flex-col gap-y-2 text-label-lg input-label-color`,Mn=function(e){return e.Label=`label`,e.Div=`div`,e}({});function Nn({label:e,caption:n,disabled:r,errorMessage:i,amountCounter:a,required:o,labelHtmlTag:s=Mn.Label,children:c}){return(0,t.jsxs)(`div`,{className:(0,N.default)(`group flex w-full flex-col gap-y-2`,{"cursor-not-allowed opacity-40":r,errored:i,enabled:!r,required:o}),children:[e?(0,t.jsxs)(Pn,{labelHtmlTag:s,children:[e,c]}):c,(i||n||a)&&(0,t.jsxs)(`div`,{className:(0,N.default)(`flex flex-row items-center`,n||i?`justify-between gap-md`:`justify-end`),children:[(i||n)&&(0,t.jsx)(nn,{hasErrorStyles:!0,children:i||n}),a&&(0,t.jsx)(nn,{children:a})]})]})}function Pn({labelHtmlTag:e,children:t}){return(0,n.createElement)(e,{className:jn},t)}var q=function(e){return e.Text=`text`,e.Password=`password`,e.Number=`number`,e.NumericFormat=`numericFormat`,e}({}),Fn=function(e){return e.None=`none`,e.Vertical=`vertical`,e}({});function In(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Ln;(function(e){e.event=`event`,e.props=`prop`})(Ln||={});function Rn(){}function zn(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(e,n){return e===t[n]})?n:(t=r,n=e.apply(void 0,r),n)}}function Bn(e){return!!(e||``).match(/\d/)}function Vn(e){return e==null}function Hn(e){return typeof e==`number`&&isNaN(e)}function Un(e){return Vn(e)||Hn(e)||typeof e==`number`&&!isFinite(e)}function Wn(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,`\\$&`)}function Gn(e){switch(e){case`lakh`:return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case`wan`:return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Kn(e,t,n){var r=Gn(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,`$1`+t)}function qn(e){var t=(0,n.useRef)(e);return t.current=e,(0,n.useRef)(function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}).current}function Jn(e,t){t===void 0&&(t=!0);var n=e[0]===`-`,r=n&&t;e=e.replace(`-`,``);var i=e.split(`.`);return{beforeDecimal:i[0],afterDecimal:i[1]||``,hasNegation:n,addNegation:r}}function Yn(e){if(!e)return e;var t=e[0]===`-`;t&&(e=e.substring(1,e.length));var n=e.split(`.`),r=n[0].replace(/^0+/,``)||`0`,i=n[1]||``;return(t?`-`:``)+r+(i?`.`+i:``)}function Xn(e,t,n){for(var r=``,i=n?`0`:``,a=0;a<=t-1;a++)r+=e[a]||i;return r}function Zn(e,t){return Array(t+1).join(e)}function Qn(e){var t=e+``,n=t[0]===`-`?`-`:``;n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(`.`,``);var o=1+a,s=i.length;return o<0?i=`0.`+Zn(`0`,Math.abs(o))+i:o>=s?i+=Zn(`0`,o-s):i=(i.substring(0,o)||`0`)+`.`+i.substring(o),n+i}function $n(e,t,n){if([``,`-`].indexOf(e)!==-1)return e;var r=(e.indexOf(`.`)!==-1||n)&&t,i=Jn(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,c=parseFloat(`0.`+(o||`0`)),l=(o.length<=t?`0.`+o:c.toFixed(t)).split(`.`),u=a;a&&Number(l[0])&&(u=a.split(``).reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},l[0]));var d=Xn(l[1]||``,t,n),f=s?`-`:``,p=r?`.`:``;return``+f+u+p+d}function er(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move(`character`,t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var tr=zn(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),nr=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function rr(e,t,n){return Math.min(Math.max(e,t),n)}function ir(e){return Math.max(e.selectionStart,e.selectionEnd)}function ar(){return typeof navigator<`u`&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function or(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:``}}function sr(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function cr(e,t,n,r,i,a,o){o===void 0&&(o=sr);var s=i.findIndex(function(e){return e}),c=e.slice(0,s);!t&&!n.startsWith(c)&&(t=c,n=c+n,r+=c.length);for(var l=n.length,u=e.length,d={},f=Array(l),p=0;p<l;p++){f[p]=-1;for(var m=0,h=u;m<h;m++)if(o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:m})&&d[m]!==!0){f[p]=m,d[m]=!0;break}}for(var g=r;g<l&&(f[g]===-1||!a(n[g]));)g++;var _=g===l||f[g]===-1?u:f[g];for(g=r-1;g>0&&f[g]===-1;)g--;var v=g===-1||f[g]===-1?0:f[g]+1;return v>_?_:r-v<_-r?v:_}function lr(e,t,n,r){var i=e.length;if(t=rr(t,0,i),r===`left`){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function ur(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Bn(e[n])||Bn(e[n-1]));return t}function dr(e,t,r,i,a,o){o===void 0&&(o=Rn);var s=qn(function(e,t){var n,r;return Un(e)?(r=``,n=``):typeof e==`number`||t?(r=typeof e==`number`?Qn(e):e,n=i(r)):(r=a(e,void 0),n=i(r)),{formattedValue:n,numAsString:r}}),c=(0,n.useState)(function(){return s(Vn(e)?t:e,r)}),l=c[0],u=c[1],d=function(e,t){e.formattedValue!==l.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),o(e,t)},f=e,p=r;Vn(e)&&(f=l.numAsString,p=!0);var m=s(f,p);return(0,n.useMemo)(function(){u(m)},[m.formattedValue]),[l,d]}function fr(e){return e.replace(/[^0-9]/g,``)}function pr(e){return e}function mr(e){var t=e.type;t===void 0&&(t=`text`);var r=e.displayType;r===void 0&&(r=`input`);var i=e.customInput,a=e.renderText,o=e.getInputRef,s=e.format;s===void 0&&(s=pr);var c=e.removeFormatting;c===void 0&&(c=fr);var l=e.defaultValue,u=e.valueIsNumericString,d=e.onValueChange,f=e.isAllowed,p=e.onChange;p===void 0&&(p=Rn);var m=e.onKeyDown;m===void 0&&(m=Rn);var h=e.onMouseUp;h===void 0&&(h=Rn);var g=e.onFocus;g===void 0&&(g=Rn);var _=e.onBlur;_===void 0&&(_=Rn);var v=e.value,y=e.getCaretBoundary;y===void 0&&(y=ur);var b=e.isValidInputCharacter;b===void 0&&(b=Bn);var x=e.isCharacterSame,S=In(e,[`type`,`displayType`,`customInput`,`renderText`,`getInputRef`,`format`,`removeFormatting`,`defaultValue`,`valueIsNumericString`,`onValueChange`,`isAllowed`,`onChange`,`onKeyDown`,`onMouseUp`,`onFocus`,`onBlur`,`value`,`getCaretBoundary`,`isValidInputCharacter`,`isCharacterSame`]),C=dr(v,l,!!u,s,c,d),w=C[0],T=w.formattedValue,E=w.numAsString,D=C[1],ee=(0,n.useRef)(),O=(0,n.useRef)({formattedValue:T,numAsString:E}),te=function(e,t){O.current={formattedValue:e.formattedValue,numAsString:e.value},D(e,t)},ne=(0,n.useState)(!1),k=ne[0],re=ne[1],ie=(0,n.useRef)(null),ae=(0,n.useRef)({setCaretTimeout:null,focusTimeout:null});(0,n.useEffect)(function(){return re(!0),function(){clearTimeout(ae.current.setCaretTimeout),clearTimeout(ae.current.focusTimeout)}},[]);var oe=s,se=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},ce=function(e,t,n){e.selectionStart===0&&e.selectionEnd===e.value.length||(er(e,t),ae.current.setCaretTimeout=setTimeout(function(){e.value===n&&e.selectionStart!==t&&er(e,t)},0))},A=function(e,t,n){return lr(e,t,y(e),n)},le=function(e,t,n){var r=y(t),i=cr(t,T,e,n,r,b,x);return i=lr(t,i,r),i},ue=function(e){var t=e.formattedValue;t===void 0&&(t=``);var n=e.input,r=e.source,i=e.event,a=e.numAsString,o;if(n){var s=e.inputValue||n.value,c=ir(n);n.value=t,o=le(s,t,c),o!==void 0&&ce(n,o,t)}t!==T&&te(se(t,a),{event:i,source:r})};(0,n.useEffect)(function(){var e=O.current,t=e.formattedValue,n=e.numAsString;(T!==t||E!==n)&&te(se(T,E),{event:void 0,source:Ln.props})},[T,E]);var de=ie.current?ir(ie.current):void 0;(typeof window<`u`?n.useLayoutEffect:n.useEffect)(function(){var e=ie.current;if(T!==O.current.formattedValue&&e){var t=le(O.current.formattedValue,T,de);e.value=T,ce(e,t,T)}},[T]);var fe=function(e,t,n){var r=t.target,i=ee.current?nr(ee.current,r.selectionEnd):tr(T,e),a=Object.assign(Object.assign({},i),{lastValue:T}),o=c(e,a),s=oe(o);if(o=c(s,void 0),f&&!f(se(s,o))){var l=t.target,u=le(e,T,ir(l));return l.value=T,ce(l,u,T),!1}return ue({formattedValue:s,numAsString:o,inputValue:e,event:t,source:n,input:t.target}),!0},j=function(e,t){t===void 0&&(t=0),ee.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+t}},pe=function(e){var t=e.target.value;fe(t,e,Ln.event)&&p(e),ee.current=void 0},me=function(e){var t=e.target,n=e.key,r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o;n===`ArrowLeft`||n===`Backspace`?o=Math.max(r-1,0):n===`ArrowRight`?o=Math.min(r+1,a.length):n===`Delete`&&(o=r);var s=0;n===`Delete`&&r===i&&(s=1);var c=n===`ArrowLeft`||n===`ArrowRight`;if(o===void 0||r!==i&&!c){m(e),j(t,s);return}var l=o;c?(l=A(a,o,n===`ArrowLeft`?`left`:`right`),l!==o&&e.preventDefault()):n===`Delete`&&!b(a[o])?l=A(a,o,`right`):n===`Backspace`&&!b(a[o])&&(l=A(a,o,`left`)),l!==o&&ce(t,l,a),m(e),j(t,s)},he=function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(r===void 0&&(r=``),e===n){var i=A(r,e);i!==e&&ce(t,i,r)}};n(),requestAnimationFrame(function(){n()}),h(e),j(t)},ge=function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;ie.current=t,ae.current.focusTimeout=setTimeout(function(){var r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o=A(a,r);o!==r&&!(r===0&&i===a.length)&&ce(t,o,a),g(Object.assign(Object.assign({},e),{currentTarget:n}))},0)},_e=function(e){ie.current=null,clearTimeout(ae.current.focusTimeout),clearTimeout(ae.current.setCaretTimeout),_(e)},M=k&&ar()?`numeric`:void 0,ve=Object.assign({inputMode:M},S,{type:t,value:T,onChange:pe,onKeyDown:me,onMouseUp:he,onFocus:ge,onBlur:_e});if(r===`text`)return a?n.default.createElement(n.default.Fragment,null,a(T,S)||null):n.default.createElement(`span`,Object.assign({},S,{ref:o}),T);if(i){var ye=i;return n.default.createElement(ye,Object.assign({},ve,{ref:o}))}return n.default.createElement(`input`,Object.assign({},ve,{ref:o}))}function hr(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i=``);var a=t.suffix;a===void 0&&(a=``);var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s=`thousand`),e===``||e===`-`)return e;var c=gr(t),l=c.thousandSeparator,u=c.decimalSeparator,d=n!==0&&e.indexOf(`.`)!==-1||n&&r,f=Jn(e,o),p=f.beforeDecimal,m=f.afterDecimal,h=f.addNegation;return n!==void 0&&(m=Xn(m,n,!!r)),l&&(p=Kn(p,l,s)),i&&(p=i+p),a&&(m+=a),h&&(p=`-`+p),e=p+(d&&u||``)+m,e}function gr(e){var t=e.decimalSeparator;t===void 0&&(t=`.`);var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=`,`),r||=[t,`.`],{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function _r(e,t){e===void 0&&(e=``);var n=RegExp(`(-)`),r=RegExp(`(-)(.)*(-)`),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,``),i&&!a&&t&&(e=`-`+e),e}function vr(e,t){return RegExp(`(^-)|[0-9]|`+Wn(e),t?`g`:void 0)}function yr(e,t,n){return e===``?!0:!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e==`string`&&!isNaN(Number(e))}function br(e,t,n){var r;t===void 0&&(t=or(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a=``);var o=n.suffix;o===void 0&&(o=``);var s=n.decimalScale,c=t.from,l=t.to,u=l.start,d=l.end,f=gr(n),p=f.allowedDecimalSeparators,m=f.decimalSeparator,h=e[d]===m;if(Bn(e)&&(e===a||e===o)&&t.lastValue===``)return e;if(d-u===1&&p.indexOf(e[u])!==-1){var g=s===0?``:m;e=e.substring(0,u)+g+e.substring(u+1,e.length)}var _=function(e,t,n){var r=!1,i=!1;a.startsWith(`-`)?r=!1:e.startsWith(`--`)?(r=!1,i=!0):o.startsWith(`-`)&&e.length===o.length?r=!1:e[0]===`-`&&(r=!0);var s=+!!r;return i&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},v=_(e,u,d),y=v.hasNegation;r=v,e=r.value,u=r.start,d=r.end;var b=_(t.lastValue,c.start,c.end),x=b.start,S=b.end,C=b.value,w=e.substring(u,d);e.length&&C.length&&(x>C.length-o.length||S<a.length)&&!(w&&o.startsWith(w))&&(e=C);var T=0;e.startsWith(a)?T+=a.length:u<a.length&&(T=u),e=e.substring(T),d-=T;var E=e.length,D=e.length-o.length;e.endsWith(o)?E=D:(d>D||d>e.length-o.length)&&(E=d),e=e.substring(0,E),e=_r(y?`-`+e:e,i),e=(e.match(vr(m,!0))||[]).join(``);var ee=e.indexOf(m);e=e.replace(new RegExp(Wn(m),`g`),function(e,t){return t===ee?`.`:``});var O=Jn(e,i),te=O.beforeDecimal,ne=O.afterDecimal,k=O.addNegation;return l.end-l.start<c.end-c.start&&te===``&&h&&!parseFloat(ne)&&(e=k?`-`:``),e}function xr(e,t){var n=t.prefix;n===void 0&&(n=``);var r=t.suffix;r===void 0&&(r=``);var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]===`-`;i.fill(!1,0,n.length+ +!!a);var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function Sr(e){var t=gr(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i=``);var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw Error(`
|
|
9
|
+
`,B=function(e){return e.Rounded=`rounded`,e.Underlined=`underlined`,e}({});function gt({icon:e,label:n,selected:r,disabled:i,onClick:a,type:o=B.Rounded,isNested:s=!1,...c}){let l=o===B.Underlined,u=r?l?`bg-transparent`:dt:ut,d=l?r?ht:mt:``,f=r?pt:ft,p=l?s?`px-md py-sm`:`px-lg py-md`:`px-sm py-[6px]`,m=l?``:`rounded-full`,h=s?l?`text-title-sm`:`text-label-md`:l?`text-title-md`:`text-label-lg`;return(0,t.jsx)(R,{onClick:a,className:(0,P.default)(`enabled:state-layer-secondary relative flex items-center disabled:opacity-40`,u,f,p,m,d,{"pl-xs":!!e&&!l}),disabled:i,...c,children:(0,t.jsxs)(`div`,{className:(0,P.default)(`flex flex-row items-center justify-center gap-2`,h),children:[e&&(0,t.jsx)(`span`,{children:e}),(0,t.jsx)(`span`,{className:`text-start font-inter`,children:n})]})})}var _t=(0,n.forwardRef)(({isChecked:e,isIndeterminate:r,label:i,isLabelFirst:a,isDisabled:o,onCheckedChange:s,name:c,...l},u)=>{let d=(0,n.useRef)(null);(0,n.useEffect)(()=>{d.current&&(d.current.indeterminate=r??!1)},[r,d]);let f=r?z:Ue;function p(e){u&&(typeof u==`function`?u(e):u.current=e),d.current=e}return(0,t.jsxs)(`div`,{className:(0,P.default)(`group inline-flex has-[:disabled]:opacity-40`,a?`flex-row-reverse`:`flex-row`,{disabled:o,"gap-x-2":i}),children:[(0,t.jsx)(`input`,{id:c,name:c,type:`checkbox`,className:`peer hidden appearance-none`,checked:e,ref:p,disabled:o,onChange:e=>{s?.(e)},...l}),(0,t.jsx)(`span`,{onClick:()=>d.current?.click(),className:(0,P.default)(`checkbox-base checkbox-state checkbox-icon checkbox-icon-hidden shrink-0`,`checkbox-border-default`,`peer-[&:is(:checked,:indeterminate)]:checkbox-border-checked`,`peer-[&:is(:checked,:indeterminate)]:checkbox-bg-checked`,`peer-[&:is(:checked,:indeterminate)]:checkbox-text-checked`,`peer-disabled:peer-[&:not(:checked,:indeterminate)]:checkbox-border-color-disabled`,`peer-disabled:peer-[&:is(:checked,:indeterminate)]:checkbox-border-color-disabled-checked`,`peer-disabled:peer-[&:is(:checked,:indeterminate)]:checkbox-bg-color-disabled-checked`),children:(0,t.jsx)(f,{})}),(0,t.jsx)(vt,{label:i,name:c})]})});function vt({label:e,name:n}){return(0,t.jsx)(`label`,{htmlFor:n,className:`checkbox-label checkbox-label-disabled flex-1`,children:e})}var yt=function(e){return e.Vertical=`vertical`,e.Horizontal=`horizontal`,e}({}),bt=`divider-bg-color`,xt={[yt.Horizontal]:`w-full`,[yt.Vertical]:`h-full`},St=`1px`;function Ct({type:e=yt.Horizontal,width:n,height:r,lineHeight:i=St}){let a=e===yt.Horizontal?{height:i}:{width:i},o=xt[e];return n&&e===yt.Horizontal?o=n:r&&e===yt.Vertical&&(o=r),(0,t.jsx)(`div`,{className:(0,P.default)(bt,o),style:a})}var wt=function(e){return e.Small=`small`,e.Medium=`medium`,e}({}),V=function(e){return e.Top=`top`,e.Bottom=`bottom`,e.Left=`left`,e.Right=`right`,e}({}),Tt={[V.Top]:V.Bottom,[V.Bottom]:V.Top,[V.Left]:V.Right,[V.Right]:V.Left};function Et({text:e,position:i=V.Top,maxWidth:a=`max-w-[200px]`,offset:o=8,openDelay:s=0,closeDelay:c=100,children:l}){let u=(0,n.useRef)(null),d=(0,n.useRef)(null),[f,p]=(0,n.useState)(!1),[m,h]=(0,n.useState)({top:0,left:0,overlapsTrigger:!1}),g=(0,n.useRef)(),_=(0,n.useRef)(),v=()=>{clearTimeout(g.current),clearTimeout(_.current)},y=()=>{v(),g.current=setTimeout(()=>p(!0),s)},b=()=>{v(),_.current=setTimeout(()=>p(!1),c)},x=(e,t)=>({[V.Top]:{top:e.top-o,left:e.left+e.width/2,transform:`translate(-50%, -100%)`,anchorX:.5,anchorY:1},[V.Bottom]:{top:e.bottom+o,left:e.left+e.width/2,transform:`translate(-50%, 0)`,anchorX:.5,anchorY:0},[V.Left]:{top:e.top+e.height/2,left:e.left-o,transform:`translate(-100%, -50%)`,anchorX:1,anchorY:.5},[V.Right]:{top:e.top+e.height/2,left:e.right+o,transform:`translate(0, -50%)`,anchorX:0,anchorY:.5}})[t],S=(e,t,n,r)=>{let i=e+t;return i>n-r?n-r-i:e<r?r-e:0};return(0,n.useLayoutEffect)(()=>{if(!f)return;let e=u.current?.getBoundingClientRect(),t=d.current;if(!e||!t)return;let{width:n,height:r}=t.getBoundingClientRect(),a=i===V.Top||i===V.Bottom,o=e=>a?S(e.top-r*e.anchorY,r,window.innerHeight,8)===0:S(e.left-n*e.anchorX,n,window.innerWidth,8)===0,s=x(e,i);if(!o(s)){let t=x(e,Tt[i]);o(t)&&(s=t)}t.style.transform=s.transform;let c=s.left-n*s.anchorX,l=s.top-r*s.anchorY,p=S(c,n,window.innerWidth,8),m=S(l,r,window.innerHeight,8),g=c+p,_=l+m,v=g<e.right&&g+n>e.left&&_<e.bottom&&_+r>e.top;h({top:s.top+m,left:s.left+p,overlapsTrigger:v})},[f,i,o]),(0,n.useLayoutEffect)(()=>{if(!f)return;let e=()=>{v(),p(!1)};return window.addEventListener(`scroll`,e,!0),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`scroll`,e,!0),window.removeEventListener(`resize`,e)}},[f]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(`div`,{ref:u,className:`inline-block cursor-pointer`,onMouseEnter:y,onFocus:y,onMouseLeave:b,onBlur:b,onClick:e=>{let t=e.target.closest(`a, button`);!t||u.current?.contains(t)||(e.preventDefault(),e.stopPropagation(),y())},children:l}),f&&(0,r.createPortal)((0,t.jsx)(`div`,{ref:d,role:`tooltip`,style:{position:`fixed`,top:m.top,left:m.left,transition:`opacity .15s ease`,opacity:1},className:(0,P.default)(`z-[9999999999] w-max rounded p-xs tooltip-bg tooltip-text-color`,a,m.overlapsTrigger&&`pointer-events-none`),onMouseEnter:y,onMouseLeave:b,children:(0,t.jsx)(`p`,{className:`w-full break-words`,children:e})}),document.body)]})}function Dt({keyText:e,keyIcon:n,value:r,tooltipPosition:i,tooltipText:a,supportingLabel:o,size:s=wt.Small,isTruncated:c=!1,copyText:l,onCopySuccess:u,onCopyError:d,fullwidth:f,isReverse:p=!1,layout:m=`default`,valueHoverTitle:h}){let g=p?`flex-row-reverse`:`flex-row`,_=m===`receipt`;async function v(e){if(navigator.clipboard&&l)try{await navigator.clipboard.writeText(l),u?.(e,l)}catch(e){console.error(`Failed to copy:`,e),d?.(e,l)}}return(0,t.jsxs)(`div`,{className:(0,P.default)(`flex w-full items-baseline gap-xs py-xxs font-inter`,g,{"flex-wrap justify-between":f}),children:[(0,t.jsxs)(`div`,{className:(0,P.default)(`flex max-w-full shrink-0 flex-row items-center gap-x-0.5`,{"w-1/4":!f&&!_}),children:[n,(0,t.jsx)(`span`,{className:`key-value-key-text-color min-w-0 break-words text-body-md`,children:e}),a&&(0,t.jsx)(Et,{text:a,position:i,children:(0,t.jsx)(Ye,{className:`key-supporting-text-color`})})]}),_&&!f&&(0,t.jsx)(`span`,{"aria-hidden":`true`,className:`mb-1 min-w-[0.5rem] flex-1 border-b border-dotted border-iota-neutral-80 opacity-60 dark:border-iota-neutral-20`}),(0,t.jsxs)(`div`,{className:(0,P.default)(`flex min-w-0 flex-row items-baseline gap-1 break-all`,{"w-3/4":!f&&!_,"max-w-[60%] justify-end text-right":!f&&_,"flex-wrap":f,"justify-end text-right":f&&_,truncate:c}),children:[(0,t.jsx)(`span`,{title:h,className:(0,P.default)(`key-value-hover-text-color min-w-0`,s===wt.Medium?`text-body-lg`:`text-body-md`,{truncate:c}),children:r}),o&&(0,t.jsx)(`span`,{className:(0,P.default)(`key-supporting-text-color`,s===wt.Medium?`text-body-md`:`text-body-sm`),children:o}),(0,t.jsx)(`div`,{className:`self-center`,children:l&&(0,t.jsx)(R,{onClick:v,"aria-label":`Copy to clipboard`,children:(0,t.jsx)(Ke,{className:`key-supporting-text-color`})})})]})]})}var H=function(e){return e.Small=`small`,e.Medium=`medium`,e.Large=`large`,e}({}),Ot={[H.Small]:`text-title-sm`,[H.Medium]:`text-title-md`,[H.Large]:`text-title-lg`},kt={[H.Small]:`text-label-md`,[H.Medium]:`text-label-md`,[H.Large]:`text-label-lg`},At={[H.Small]:`text-label-md`,[H.Medium]:`text-label-md`,[H.Large]:`text-label-lg`};function jt({size:e=H.Medium,isCentered:n,supportingLabel:r,label:i,text:a,tooltipPosition:o,tooltipText:s}){let c=Ot[e],l=kt[e],u=At[e];return(0,t.jsxs)(`div`,{className:(0,P.default)(`flex flex-col`,n?`items-center`:`items-start`,e===H.Small?`gap-0.5`:`gap-1`),children:[(0,t.jsxs)(`div`,{className:`flex flex-row flex-wrap items-center gap-0.5`,children:[(0,t.jsx)(`span`,{className:(0,P.default)(`label-text-primary-neutral font-inter`,c),children:a}),r&&(0,t.jsx)(`span`,{className:(0,P.default)(`label-text-secondary-neutral font-inter`,l),children:r})]}),(0,t.jsx)(`div`,{className:`flex flex-row items-center gap-x-0.5`,children:(0,t.jsxs)(`span`,{className:(0,P.default)(`label-text-secondary-neutral flex items-center font-inter`,u),children:[i,s&&(0,t.jsx)(`div`,{className:`ml-xxxs flex items-center`,children:(0,t.jsx)(Et,{text:s,position:o,children:(0,t.jsx)(Ye,{className:`label-text-secondary-neutral`})})})]})})]})}function Mt({showRightIcon:e,hideBottomBorder:n,onClick:r,isDisabled:i,children:a,isHighlighted:o,...s}){function c(e){(e.key===`Enter`||e.key===` `)&&!i&&r&&r()}function l(){!i&&r&&r()}return(0,t.jsx)(`div`,{className:(0,P.default)(`w-full`,{"list-item-border-color border-b pb-xs":!n},{"opacity-40":i}),children:(0,t.jsxs)(`div`,{onClick:l,role:`button`,tabIndex:0,onKeyDown:c,...s,className:(0,P.default)(`list-item-color relative flex flex-row items-center justify-between px-md py-sm`,!i&&r?`cursor-pointer`:`cursor-default`,{"list-item-highlight-bg":o,"state-layer-secondary":!i}),children:[a,e&&(0,t.jsx)(L,{size:F.Small,type:I.Ghost,disabled:i,icon:(0,t.jsx)(Be,{})})]})})}function Nt({title:e,titleCentered:n,onBack:r,onClose:i,testId:a}){let o=n?`text-center`:r?`ml-1`:``,s=n&&(!r||!i);return(0,t.jsxs)(`div`,{className:`header-bg-color header-text-color flex min-h-[56px] w-full items-center px-md--rs pb-xs pt-sm [&_svg]:h-5 [&_svg]:w-5`,children:[r?(0,t.jsx)(L,{size:F.Small,type:I.Ghost,onClick:r,icon:(0,t.jsx)(Le,{}),"aria-label":`Back`}):s&&(0,t.jsx)(`div`,{className:`w-9`}),(0,t.jsx)(`div`,{className:(0,P.default)(`flex-grow`,o),children:(0,t.jsx)(`span`,{className:`font-inter text-title-lg`,"data-testid":a,children:e})}),i?(0,t.jsx)(L,{size:F.Small,type:I.Ghost,onClick:i,icon:(0,t.jsx)(Ge,{}),testId:`close-icon`,"aria-label":`Close`}):s&&(0,t.jsx)(`div`,{className:`w-9`})]})}function Pt({children:e,hasBorder:n,bgColor:r=`panel-bg`}){return(0,t.jsx)(`div`,{className:(0,P.default)(`flex w-full flex-col rounded-xl`,r,n?`border panel-border-color`:`border border-transparent`),children:e})}function Ft(){return(0,t.jsx)(`div`,{className:`flex h-full w-full items-center justify-center bg-iota-neutral-96 dark:bg-iota-neutral-10`,children:(0,t.jsx)(et,{className:`h-4 w-4 text-iota-neutral-40 dark:text-iota-neutral-60`})})}var It=(0,n.forwardRef)(({onError:e,renderFallback:r,...i},a)=>{let[o,s]=(0,n.useState)(!1);function c(t){s(!0),e?.(t)}return o||!i.src?r||(0,t.jsx)(Ft,{}):(0,t.jsx)(Lt,{onError:c,ref:a,...i})}),Lt=(0,n.forwardRef)((e,n)=>(0,t.jsx)(`img`,{className:`h-full w-full object-cover`,ref:n,...e})),U=function(e){return e.Default=`default`,e.Error=`error`,e.Success=`success`,e.Warning=`warning`,e}({}),Rt=function(e){return e.Default=`default`,e.Elevated=`elevated`,e}({}),zt={[U.Default]:`bg-default-surface text-on-default`,[U.Error]:`bg-error-surface text-on-error`,[U.Success]:`bg-success-surface text-on-success`,[U.Warning]:`bg-warning-surface text-on-warning`},Bt={[U.Default]:`bg-default-surface`,[U.Error]:`bg-error-surface`,[U.Success]:`bg-success-surface`,[U.Warning]:`bg-warning-surface`};function Vt({icon:e,title:n,supportingText:r,type:i,style:a}){let o=zt[i];return(0,t.jsxs)(`div`,{className:(0,P.default)(`flex flex-row items-start gap-4 py-xs pr-lg`,a===Rt.Elevated?Bt[i]:``,{"rounded-lg":a===Rt.Elevated,"pl-xs":a===Rt.Elevated&&!!e,"pl-lg":a===Rt.Elevated&&!e}),children:[e&&(0,t.jsx)(`span`,{className:(0,P.default)(`flex items-center justify-center rounded-lg [&_svg]:h-4 [&_svg]:w-4`,o,{"p-xs":a===Rt.Default}),children:e}),(0,t.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1 [overflow-wrap:anywhere]`,children:[n&&(0,t.jsx)(`span`,{className:`infobox-text-title text-title-sm`,children:n}),r&&(0,t.jsx)(`span`,{className:`infobox-supporting-text text-body-sm`,children:r})]})]})}var W=function(e){return e.Default=`default`,e.Error=`error`,e.Warning=`warning`,e.Success=`success`,e}({}),Ht={[W.Default]:`text-on-default`,[W.Error]:`text-on-error`,[W.Warning]:`text-on-warning`,[W.Success]:`text-on-success`},Ut={[W.Default]:`bg-default-surface`,[W.Error]:`bg-error-surface`,[W.Warning]:`bg-warning-surface`,[W.Success]:`bg-success-surface`};function Wt({text:e,duration:r=2e3,onClose:i,showClose:a,type:o=W.Default}){return(0,n.useEffect)(()=>{if(r){let e=setTimeout(i,r);return()=>clearTimeout(e)}},[r,i]),(0,t.jsxs)(`div`,{className:(0,P.default)(`transition-all duration-300 ease-out`,`z-99 bottom-0`,`flex w-full items-center justify-between gap-xxs rounded-md py-sm pl-md pr-sm`,Ut[o]),children:[(0,t.jsx)(`div`,{className:(0,P.default)(`w-full text-left text-body-md`,Ht[o]),children:e}),a&&(0,t.jsx)(R,{onClick:i,"aria-label":`Close`,children:(0,t.jsx)(Ge,{className:(0,P.default)(`h-5 w-5`,Ht[o])})})]})}function Gt({color:e=`loading-indicator-color`,size:n=`w-5 h-5`,text:r,testId:i}){return(0,t.jsxs)(`div`,{className:`flex items-center justify-center gap-xs`,children:[(0,t.jsx)(Ze,{className:(0,P.default)(`animate-spin`,e,n),"data-testid":i}),r&&(0,t.jsx)(`span`,{className:(0,P.default)(`text-body-sm`,e),children:r})]})}function Kt({width:e=`w-full`,height:n=`h-4`}){return(0,t.jsx)(`div`,{className:(0,P.default)(`animate-pulse rounded-md bg-gradient-to-r from-shader-primary-light-8 bg-[length:1000px_100%] dark:from-shader-primary-dark-8`,e,n)})}function qt({children:e,className:n,hasSecondaryColors:r}){return(0,t.jsx)(`div`,{className:(0,P.default)(`h-3 w-full animate-pulse rounded-full`,r?`skeleton-secondary-bg`:`skeleton-bg`,n),children:e})}var Jt={autoPlay:!0,muted:!0,playsInline:!0,controls:!0,controlsList:`nodownload`,disablePictureInPicture:!0,preload:`auto`,loop:!0,width:`100%`,height:`auto`},Yt={autoPlay:!0,muted:!0,playsInline:!0,controls:!1,disablePictureInPicture:!0,preload:`auto`,loop:!0,width:`100%`,height:`auto`},Xt=(0,n.forwardRef)(({width:e=`100%`,height:n=`auto`,isAutoPlayEnabled:r,disableControls:i,...a},o)=>(0,t.jsx)(`video`,{ref:o,width:e,height:n,...r?i?Yt:Jt:{preload:`metadata`,autoPlay:!1},...a,children:`Your browser does not support the video tag.`})),G=function(e){return e.Small=`small`,e.Default=`default`,e}({}),Zt=function(e){return e.Left=`left`,e.Right=`right`,e}({}),Qt=`relative inline-flex items-center p-xxs border rounded-full cursor-pointer`,$t={active:`toggle-bg-active toggle-border-active`,inactive:`toggle-bg-inactive toggle-border-inactive`,disabledActive:`toggle-bg-disabled-active toggle-border-disabled-active`,disabled:`opacity-40 cursor-not-allowed`},en={[G.Small]:`h-5 w-10`,[G.Default]:`h-6 w-12`},tn=`absolute rounded-full transition-all duration-200 ease-in-out`,nn={[G.Small]:{unchecked:`left-1`,checked:`left-[34px] -translate-x-full`},[G.Default]:{unchecked:`left-1`,checked:`left-[42px] -translate-x-full`}},rn={unchecked:`toggle-thumb-color`,checked:`toggle-thumb-color-checked`},an={[G.Small]:`h-3 w-3`,[G.Default]:`h-4 w-4`},on=`inline-flex items-center gap-2`,sn=`text-label-lg toggle-label-color`,cn=(0,n.forwardRef)(({label:e,isToggled:r,labelPosition:i=Zt.Right,isDisabled:a=!1,onChange:o,name:s,size:c=G.Default,testId:l,...u},d)=>{let f=(0,n.useRef)(null);function p(e){let t=e.target.checked;o?.(t,e)}function m(e){d&&(typeof d==`function`?d(e):d.current=e),f.current=e}let h=(0,P.default)(Qt,{[$t.active]:r&&!a,[$t.inactive]:!r,[$t.disabledActive]:a&&r,[$t.disabled]:a,[en[c]]:!0}),g=(0,P.default)(tn,{[nn[c].unchecked]:!r,[nn[c].checked]:r,[rn.unchecked]:!r,[rn.checked]:r,[an[c]]:!0}),_=(0,P.default)(on,{"flex-row-reverse":i===Zt.Left,"cursor-not-allowed":a}),v=(0,P.default)(sn,{"opacity-40":a&&!r});return(0,t.jsxs)(`div`,{className:_,children:[(0,t.jsx)(`input`,{id:s,name:s,type:`checkbox`,className:`sr-only`,checked:r,ref:m,disabled:a,onChange:p,"data-testid":l}),(0,t.jsx)(`span`,{role:`switch`,"aria-checked":r,onClick:()=>f.current?.click(),className:h,...u,children:(0,t.jsx)(`span`,{className:g})}),e&&(0,t.jsx)(`label`,{htmlFor:s,className:v,children:e})]})});function ln({children:e,hasErrorStyles:n}){return(0,t.jsx)(`p`,{className:(0,P.default)(`secondary-text-color text-label-lg`,{"group-[.errored]:w-full group-[.errored]:secondary-text-error-color group-[.errored]:bg-error-surface group-[.errored]:rounded-xl group-[.errored]:py-1 group-[.errored]:px-2":n}),children:e})}function un({text:e,isCopyable:n,isExternal:r,externalLink:i,copyText:a=e,onCopySuccess:o,onCopyError:s,onOpen:c}){async function l(e){if(navigator.clipboard){e?.stopPropagation();try{await navigator.clipboard.writeText(a),o?.(e,a)}catch(e){console.error(`Failed to copy:`,e),s?.(e,a)}}}function u(e){if(e?.stopPropagation(),i){let e=window.open(i,`_blank`,`noopener noreferrer`);e&&(e.opener=null)}c?.(e)}return(0,t.jsxs)(`div`,{className:`address-text-color group flex flex-row items-center gap-1`,children:[(0,t.jsx)(`span`,{className:(0,P.default)(`font-inter text-body-sm`),children:e}),n&&(0,t.jsx)(R,{onClick:l,className:`opacity-100`,"aria-label":`Copy to clipboard`,children:(0,t.jsx)(Ke,{})}),r&&(0,t.jsx)(R,{onClick:u,className:`opacity-100`,"aria-label":`Open in new tab`,children:(0,t.jsx)(Ve,{})})]})}var dn=function(e){return e.Image=`image`,e.Video=`video`,e}({});function fn({src:e,isAutoPlayEnabled:n,assetType:r,altText:i,showFallback:a,disableControls:o}){return r===dn.Video?(0,t.jsx)(Xt,{src:e,isAutoPlayEnabled:n,disableControls:o}):a?(0,t.jsx)(It,{src:e,alt:i}):(0,t.jsx)(Lt,{src:e,alt:i})}var K=function(e){return e.Outline=`outline`,e.Elevated=`elevated`,e.Success=`success`,e.Brand=`brand`,e.Error=`error`,e}({}),pn=function(e){return e.Small=`small`,e.Default=`default`,e}({}),mn=`rounded-full`,hn={[K.Outline]:`bg-transparent`,[K.Elevated]:`chip-bg-elevated`,[K.Success]:`bg-success-surface`,[K.Brand]:`chip-bg-brand`,[K.Error]:`bg-error-surface`},gn=`outline outline-1 hover:chip-outline-color-hover active:chip-outline-color-active hover:chip-bg-color-hover active:chip-bg-color-active group-focus:chip-bg-color-focus`,_n={[K.Outline]:`chip-bg-selected-outline`},vn=`chip-bg-selected-overlay`,yn={[K.Outline]:`chip-text-secondary`},bn={[K.Outline]:`chip-border-default`,[K.Elevated]:`border-transparent`,[K.Success]:`border-success-surface`,[K.Brand]:`chip-border-color-brand`,[K.Error]:`border-error-surface`},xn={[K.Outline]:`chip-text-default`,[K.Elevated]:`chip-text-secondary`,[K.Success]:`chip-text-secondary`,[K.Brand]:`chip-text-brand`,[K.Error]:`chip-text-secondary`},Sn=`focus-visible:shadow-[0_0_0_2px] focus-visible:chip-focus-ring focus-visible:outline-none`;function Cn({label:e,type:n=K.Outline,selected:r,showClose:i,onClose:a,onClick:o,avatar:s,leadingElement:c,trailingElement:l,disabled:u,size:d=pn.Default,...f}){let p=n===K.Outline&&r,m=r?n===K.Outline?`outline-transparent names:outline-names-neutral-20`:`chip-outline-color`:`outline-transparent`,h=(0,P.default)(`group-focus:chip-outline-color-active`,n===K.Outline&&`names:group-focus:outline-transparent`),g=r&&!u&&n!==K.Outline?vn:``;return(0,t.jsx)(R,{onClick:o,className:(0,P.default)(`group border disabled:opacity-40`,mn,p?_n[K.Outline]:hn[n],r?`border-transparent`:bn[n]),disabled:u,...f,children:(0,t.jsxs)(`span`,{className:(0,P.default)(`flex h-full w-full flex-row items-center gap-x-2`,s?`py-xxs`:`py-[6px]`,s?`pl-xxs`:c?`pl-xs`:`pl-sm`,i?`pr-xs`:`pr-sm`,mn,p?yn[K.Outline]:xn[n],m,!u&&h,!u&&gn,Sn,g),children:[s??c,(0,t.jsx)(`span`,{className:(0,P.default)(d===pn.Small?`text-label-md`:`text-body-md`),children:e}),l,i&&(0,t.jsx)(R,{onClick:e=>{e.stopPropagation(),a?.()},disabled:u,"aria-label":`Remove`,children:(0,t.jsx)(Ge,{className:(0,P.default)(`h-4 w-4 transition-opacity duration-150`,u?``:r?`opacity-100`:`chip-close-icon-opacity group-hover:opacity-100 group-focus:opacity-100 group-active:opacity-100`)})})]})})}var wn=function(e){return e.Outlined=`outlined`,e.Filled=`filled`,e.Transparent=`transparent`,e}({}),Tn={[wn.Outlined]:`bg-transparent`,[wn.Filled]:`segmented-filled-bg-color`,[wn.Transparent]:`bg-transparent`},En=`border segmented-outlined-border`;function Dn({type:e=wn.Filled,children:n,shape:r=B.Rounded}){let i=Tn[e];return(0,t.jsx)(`div`,{className:(0,P.default)(`flex flex-row`,i,e===wn.Outlined?En:``,r===B.Rounded?`rounded-full gap-1 p-xxs`:``,r===B.Rounded?`flex-wrap`:`flex-nowrap overflow-x-auto`),children:n})}var On=function(e){return e.Small=`small`,e.Medium=`medium`,e}({}),kn={[On.Small]:`px-md py-sm--rs`,[On.Medium]:`px-md--rs py-sm--rs`},An={[On.Small]:`text-title-md`,[On.Medium]:`text-title-lg`};function jn({title:e,subtitle:n,trailingElement:r,tooltipText:i,supportingElement:a,tooltipPosition:o,size:s=On.Medium,testId:c}){return(0,t.jsxs)(`div`,{className:(0,P.default)(`flex flex-row items-center justify-between`,kn[s]),"data-testid":c,children:[(0,t.jsxs)(`div`,{className:`flex flex-row items-center gap-x-xxxs`,children:[(0,t.jsxs)(`div`,{className:`flex flex-col justify-start`,children:[(0,t.jsxs)(`div`,{className:`title-main-color flex flex-row items-center gap-x-0.5`,children:[(0,t.jsx)(`h4`,{className:(0,P.default)(An[s]),children:e}),i&&(0,t.jsx)(Et,{text:i,position:o,children:(0,t.jsx)(Ye,{className:`title-icon-color`})})]}),(0,t.jsx)(`p`,{className:`title-subtitle-color text-label-md`,children:n})]}),a]}),r]})}var Mn=`w-full input-caret-color bg-transparent text-body-lg caret-input-caret-color focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed`,Nn=`input-text-color`,Pn=`input-placeholder-color`,Fn=`[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none disabled:cursor-not-allowed`,In=`px-md py-sm rounded-lg border input-border-color input-border-color-disabled group-[.enabled]:cursor-text input-border-error-color hover:group-[.enabled]:input-border-color-hover input-border-color-focus`,Ln=`flex flex-col gap-y-2 text-label-lg input-label-color`,Rn=function(e){return e.Label=`label`,e.Div=`div`,e}({});function zn({label:e,caption:n,disabled:r,errorMessage:i,amountCounter:a,required:o,labelHtmlTag:s=Rn.Label,children:c}){return(0,t.jsxs)(`div`,{className:(0,P.default)(`group flex w-full flex-col gap-y-2`,{"cursor-not-allowed opacity-40":r,errored:i,enabled:!r,required:o}),children:[e?(0,t.jsxs)(Bn,{labelHtmlTag:s,children:[e,c]}):c,(i||n||a)&&(0,t.jsxs)(`div`,{className:(0,P.default)(`flex flex-row items-center`,n||i?`justify-between gap-md`:`justify-end`),children:[(i||n)&&(0,t.jsx)(ln,{hasErrorStyles:!0,children:i||n}),a&&(0,t.jsx)(ln,{children:a})]})]})}function Bn({labelHtmlTag:e,children:t}){return(0,n.createElement)(e,{className:Ln},t)}var q=function(e){return e.Text=`text`,e.Password=`password`,e.Number=`number`,e.NumericFormat=`numericFormat`,e}({}),Vn=function(e){return e.None=`none`,e.Vertical=`vertical`,e}({});function Hn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Un;(function(e){e.event=`event`,e.props=`prop`})(Un||={});function Wn(){}function Gn(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(e,n){return e===t[n]})?n:(t=r,n=e.apply(void 0,r),n)}}function Kn(e){return!!(e||``).match(/\d/)}function qn(e){return e==null}function Jn(e){return typeof e==`number`&&isNaN(e)}function Yn(e){return qn(e)||Jn(e)||typeof e==`number`&&!isFinite(e)}function Xn(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,`\\$&`)}function Zn(e){switch(e){case`lakh`:return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case`wan`:return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Qn(e,t,n){var r=Zn(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,`$1`+t)}function $n(e){var t=(0,n.useRef)(e);return t.current=e,(0,n.useRef)(function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}).current}function er(e,t){t===void 0&&(t=!0);var n=e[0]===`-`,r=n&&t;e=e.replace(`-`,``);var i=e.split(`.`);return{beforeDecimal:i[0],afterDecimal:i[1]||``,hasNegation:n,addNegation:r}}function tr(e){if(!e)return e;var t=e[0]===`-`;t&&(e=e.substring(1,e.length));var n=e.split(`.`),r=n[0].replace(/^0+/,``)||`0`,i=n[1]||``;return(t?`-`:``)+r+(i?`.`+i:``)}function nr(e,t,n){for(var r=``,i=n?`0`:``,a=0;a<=t-1;a++)r+=e[a]||i;return r}function rr(e,t){return Array(t+1).join(e)}function ir(e){var t=e+``,n=t[0]===`-`?`-`:``;n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(`.`,``);var o=1+a,s=i.length;return o<0?i=`0.`+rr(`0`,Math.abs(o))+i:o>=s?i+=rr(`0`,o-s):i=(i.substring(0,o)||`0`)+`.`+i.substring(o),n+i}function ar(e,t,n){if([``,`-`].indexOf(e)!==-1)return e;var r=(e.indexOf(`.`)!==-1||n)&&t,i=er(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,c=parseFloat(`0.`+(o||`0`)),l=(o.length<=t?`0.`+o:c.toFixed(t)).split(`.`),u=a;a&&Number(l[0])&&(u=a.split(``).reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},l[0]));var d=nr(l[1]||``,t,n),f=s?`-`:``,p=r?`.`:``;return``+f+u+p+d}function or(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move(`character`,t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var sr=Gn(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),cr=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function lr(e,t,n){return Math.min(Math.max(e,t),n)}function ur(e){return Math.max(e.selectionStart,e.selectionEnd)}function dr(){return typeof navigator<`u`&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function fr(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:``}}function pr(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function mr(e,t,n,r,i,a,o){o===void 0&&(o=pr);var s=i.findIndex(function(e){return e}),c=e.slice(0,s);!t&&!n.startsWith(c)&&(t=c,n=c+n,r+=c.length);for(var l=n.length,u=e.length,d={},f=Array(l),p=0;p<l;p++){f[p]=-1;for(var m=0,h=u;m<h;m++)if(o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:m})&&d[m]!==!0){f[p]=m,d[m]=!0;break}}for(var g=r;g<l&&(f[g]===-1||!a(n[g]));)g++;var _=g===l||f[g]===-1?u:f[g];for(g=r-1;g>0&&f[g]===-1;)g--;var v=g===-1||f[g]===-1?0:f[g]+1;return v>_?_:r-v<_-r?v:_}function hr(e,t,n,r){var i=e.length;if(t=lr(t,0,i),r===`left`){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function gr(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Kn(e[n])||Kn(e[n-1]));return t}function _r(e,t,r,i,a,o){o===void 0&&(o=Wn);var s=$n(function(e,t){var n,r;return Yn(e)?(r=``,n=``):typeof e==`number`||t?(r=typeof e==`number`?ir(e):e,n=i(r)):(r=a(e,void 0),n=i(r)),{formattedValue:n,numAsString:r}}),c=(0,n.useState)(function(){return s(qn(e)?t:e,r)}),l=c[0],u=c[1],d=function(e,t){e.formattedValue!==l.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),o(e,t)},f=e,p=r;qn(e)&&(f=l.numAsString,p=!0);var m=s(f,p);return(0,n.useMemo)(function(){u(m)},[m.formattedValue]),[l,d]}function vr(e){return e.replace(/[^0-9]/g,``)}function yr(e){return e}function br(e){var t=e.type;t===void 0&&(t=`text`);var r=e.displayType;r===void 0&&(r=`input`);var i=e.customInput,a=e.renderText,o=e.getInputRef,s=e.format;s===void 0&&(s=yr);var c=e.removeFormatting;c===void 0&&(c=vr);var l=e.defaultValue,u=e.valueIsNumericString,d=e.onValueChange,f=e.isAllowed,p=e.onChange;p===void 0&&(p=Wn);var m=e.onKeyDown;m===void 0&&(m=Wn);var h=e.onMouseUp;h===void 0&&(h=Wn);var g=e.onFocus;g===void 0&&(g=Wn);var _=e.onBlur;_===void 0&&(_=Wn);var v=e.value,y=e.getCaretBoundary;y===void 0&&(y=gr);var b=e.isValidInputCharacter;b===void 0&&(b=Kn);var x=e.isCharacterSame,S=Hn(e,[`type`,`displayType`,`customInput`,`renderText`,`getInputRef`,`format`,`removeFormatting`,`defaultValue`,`valueIsNumericString`,`onValueChange`,`isAllowed`,`onChange`,`onKeyDown`,`onMouseUp`,`onFocus`,`onBlur`,`value`,`getCaretBoundary`,`isValidInputCharacter`,`isCharacterSame`]),C=_r(v,l,!!u,s,c,d),w=C[0],T=w.formattedValue,E=w.numAsString,D=C[1],ee=(0,n.useRef)(),O=(0,n.useRef)({formattedValue:T,numAsString:E}),te=function(e,t){O.current={formattedValue:e.formattedValue,numAsString:e.value},D(e,t)},ne=(0,n.useState)(!1),k=ne[0],re=ne[1],ie=(0,n.useRef)(null),ae=(0,n.useRef)({setCaretTimeout:null,focusTimeout:null});(0,n.useEffect)(function(){return re(!0),function(){clearTimeout(ae.current.setCaretTimeout),clearTimeout(ae.current.focusTimeout)}},[]);var oe=s,se=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},ce=function(e,t,n){e.selectionStart===0&&e.selectionEnd===e.value.length||(or(e,t),ae.current.setCaretTimeout=setTimeout(function(){e.value===n&&e.selectionStart!==t&&or(e,t)},0))},A=function(e,t,n){return hr(e,t,y(e),n)},le=function(e,t,n){var r=y(t),i=mr(t,T,e,n,r,b,x);return i=hr(t,i,r),i},ue=function(e){var t=e.formattedValue;t===void 0&&(t=``);var n=e.input,r=e.source,i=e.event,a=e.numAsString,o;if(n){var s=e.inputValue||n.value,c=ur(n);n.value=t,o=le(s,t,c),o!==void 0&&ce(n,o,t)}t!==T&&te(se(t,a),{event:i,source:r})};(0,n.useEffect)(function(){var e=O.current,t=e.formattedValue,n=e.numAsString;(T!==t||E!==n)&&te(se(T,E),{event:void 0,source:Un.props})},[T,E]);var de=ie.current?ur(ie.current):void 0;(typeof window<`u`?n.useLayoutEffect:n.useEffect)(function(){var e=ie.current;if(T!==O.current.formattedValue&&e){var t=le(O.current.formattedValue,T,de);e.value=T,ce(e,t,T)}},[T]);var fe=function(e,t,n){var r=t.target,i=ee.current?cr(ee.current,r.selectionEnd):sr(T,e),a=Object.assign(Object.assign({},i),{lastValue:T}),o=c(e,a),s=oe(o);if(o=c(s,void 0),f&&!f(se(s,o))){var l=t.target,u=le(e,T,ur(l));return l.value=T,ce(l,u,T),!1}return ue({formattedValue:s,numAsString:o,inputValue:e,event:t,source:n,input:t.target}),!0},j=function(e,t){t===void 0&&(t=0),ee.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+t}},pe=function(e){var t=e.target.value;fe(t,e,Un.event)&&p(e),ee.current=void 0},me=function(e){var t=e.target,n=e.key,r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o;n===`ArrowLeft`||n===`Backspace`?o=Math.max(r-1,0):n===`ArrowRight`?o=Math.min(r+1,a.length):n===`Delete`&&(o=r);var s=0;n===`Delete`&&r===i&&(s=1);var c=n===`ArrowLeft`||n===`ArrowRight`;if(o===void 0||r!==i&&!c){m(e),j(t,s);return}var l=o;c?(l=A(a,o,n===`ArrowLeft`?`left`:`right`),l!==o&&e.preventDefault()):n===`Delete`&&!b(a[o])?l=A(a,o,`right`):n===`Backspace`&&!b(a[o])&&(l=A(a,o,`left`)),l!==o&&ce(t,l,a),m(e),j(t,s)},he=function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(r===void 0&&(r=``),e===n){var i=A(r,e);i!==e&&ce(t,i,r)}};n(),requestAnimationFrame(function(){n()}),h(e),j(t)},ge=function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;ie.current=t,ae.current.focusTimeout=setTimeout(function(){var r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o=A(a,r);o!==r&&!(r===0&&i===a.length)&&ce(t,o,a),g(Object.assign(Object.assign({},e),{currentTarget:n}))},0)},_e=function(e){ie.current=null,clearTimeout(ae.current.focusTimeout),clearTimeout(ae.current.setCaretTimeout),_(e)},ve=k&&dr()?`numeric`:void 0,ye=Object.assign({inputMode:ve},S,{type:t,value:T,onChange:pe,onKeyDown:me,onMouseUp:he,onFocus:ge,onBlur:_e});if(r===`text`)return a?n.default.createElement(n.default.Fragment,null,a(T,S)||null):n.default.createElement(`span`,Object.assign({},S,{ref:o}),T);if(i){var be=i;return n.default.createElement(be,Object.assign({},ye,{ref:o}))}return n.default.createElement(`input`,Object.assign({},ye,{ref:o}))}function xr(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i=``);var a=t.suffix;a===void 0&&(a=``);var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s=`thousand`),e===``||e===`-`)return e;var c=Sr(t),l=c.thousandSeparator,u=c.decimalSeparator,d=n!==0&&e.indexOf(`.`)!==-1||n&&r,f=er(e,o),p=f.beforeDecimal,m=f.afterDecimal,h=f.addNegation;return n!==void 0&&(m=nr(m,n,!!r)),l&&(p=Qn(p,l,s)),i&&(p=i+p),a&&(m+=a),h&&(p=`-`+p),e=p+(d&&u||``)+m,e}function Sr(e){var t=e.decimalSeparator;t===void 0&&(t=`.`);var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=`,`),r||=[t,`.`],{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function Cr(e,t){e===void 0&&(e=``);var n=RegExp(`(-)`),r=RegExp(`(-)(.)*(-)`),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,``),i&&!a&&t&&(e=`-`+e),e}function wr(e,t){return RegExp(`(^-)|[0-9]|`+Xn(e),t?`g`:void 0)}function Tr(e,t,n){return e===``?!0:!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e==`string`&&!isNaN(Number(e))}function Er(e,t,n){var r;t===void 0&&(t=fr(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a=``);var o=n.suffix;o===void 0&&(o=``);var s=n.decimalScale,c=t.from,l=t.to,u=l.start,d=l.end,f=Sr(n),p=f.allowedDecimalSeparators,m=f.decimalSeparator,h=e[d]===m;if(Kn(e)&&(e===a||e===o)&&t.lastValue===``)return e;if(d-u===1&&p.indexOf(e[u])!==-1){var g=s===0?``:m;e=e.substring(0,u)+g+e.substring(u+1,e.length)}var _=function(e,t,n){var r=!1,i=!1;a.startsWith(`-`)?r=!1:e.startsWith(`--`)?(r=!1,i=!0):o.startsWith(`-`)&&e.length===o.length?r=!1:e[0]===`-`&&(r=!0);var s=+!!r;return i&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},v=_(e,u,d),y=v.hasNegation;r=v,e=r.value,u=r.start,d=r.end;var b=_(t.lastValue,c.start,c.end),x=b.start,S=b.end,C=b.value,w=e.substring(u,d);e.length&&C.length&&(x>C.length-o.length||S<a.length)&&!(w&&o.startsWith(w))&&(e=C);var T=0;e.startsWith(a)?T+=a.length:u<a.length&&(T=u),e=e.substring(T),d-=T;var E=e.length,D=e.length-o.length;e.endsWith(o)?E=D:(d>D||d>e.length-o.length)&&(E=d),e=e.substring(0,E),e=Cr(y?`-`+e:e,i),e=(e.match(wr(m,!0))||[]).join(``);var ee=e.indexOf(m);e=e.replace(new RegExp(Xn(m),`g`),function(e,t){return t===ee?`.`:``});var O=er(e,i),te=O.beforeDecimal,ne=O.afterDecimal,k=O.addNegation;return l.end-l.start<c.end-c.start&&te===``&&h&&!parseFloat(ne)&&(e=k?`-`:``),e}function Dr(e,t){var n=t.prefix;n===void 0&&(n=``);var r=t.suffix;r===void 0&&(r=``);var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]===`-`;i.fill(!1,0,n.length+ +!!a);var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function Or(e){var t=Sr(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i=``);var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw Error(`
|
|
10
10
|
Decimal separator can't be same as thousand separator.
|
|
11
11
|
thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
12
12
|
decimalSeparator: `+r+` (default value for decimalSeparator is .)
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
Prefix can't start with '-' when allowNegative is true.
|
|
15
15
|
prefix: `+i+`
|
|
16
16
|
allowNegative: `+a+`
|
|
17
|
-
`),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function Cr(e){e=Sr(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=Rn);var a=e.onBlur;a===void 0&&(a=Rn);var o=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,l=e.prefix;l===void 0&&(l=``);var u=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,m=In(e,[`decimalSeparator`,`allowedDecimalSeparators`,`thousandsGroupStyle`,`suffix`,`allowNegative`,`allowLeadingZeros`,`onKeyDown`,`onBlur`,`thousandSeparator`,`decimalScale`,`fixedDecimalScale`,`prefix`,`defaultValue`,`value`,`valueIsNumericString`,`onValueChange`]),h=gr(e),g=h.decimalSeparator,_=h.allowedDecimalSeparators,v=function(t){return hr(t,e)},y=function(t,n){return br(t,n,e)},b=Vn(d)?u:d,x=f??yr(b,l,t);Vn(d)?Vn(u)||(x||=typeof u==`number`):x||=typeof d==`number`;var S=function(e){return Un(e)?e:(typeof e==`number`&&(e=Qn(e)),x&&typeof s==`number`?$n(e,s,!!c):e)},C=dr(S(d),S(u),!!x,v,y,p),w=C[0],T=w.numAsString,E=w.formattedValue,D=C[1];return Object.assign(Object.assign({},m),{value:E,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g?!0:Bn(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,i=e.currentValueIndex,a=e.formattedValueIndex,o=t[i],u=r[a],f=tr(n,t).to,p=function(e){return y(e).indexOf(`.`)+l.length};return d===0&&c&&s&&t[f.start]===g&&p(t)<i&&p(r)>a?!1:i>=f.start&&i<f.end&&_&&_.includes(o)&&u===g?!0:o===u},onValueChange:D,format:v,removeFormatting:y,getCaretBoundary:function(t){return xr(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,u=t.selectionEnd,d=t.value;if(d===void 0&&(d=``),(r===`Backspace`||r===`Delete`)&&u<l.length){e.preventDefault();return}if(a!==u){i(e);return}r===`Backspace`&&d[0]===`-`&&a===l.length+1&&n&&er(t,1),s&&c&&(r===`Backspace`&&d[a-1]===g?(er(t,a-1),e.preventDefault()):r===`Delete`&&d[a]===g&&e.preventDefault()),_?.includes(r)&&d[a]===g&&er(t,a+1);var f=o===!0?`,`:o;r===`Backspace`&&d[a-1]===f&&er(t,a-1),r===`Delete`&&d[a]===f&&er(t,a+1),i(e)},onBlur:function(t){var n=T;n.match(/\d/g)||(n=``),r||(n=Yn(n)),c&&s&&(n=$n(n,s,c)),n!==T&&D({formattedValue:hr(n,e),value:n,floatValue:parseFloat(n)},{event:t,source:Ln.event}),a(t)}})}function wr(e){var t=Cr(e);return n.default.createElement(mr,Object.assign({},t))}var Tr=(0,n.forwardRef)(function({label:e,caption:r,disabled:i,errorMessage:a,leadingIcon:o,supportingText:s,amountCounter:c,trailingElement:l,isContentVisible:u,value:d,supportingValue:f,defaultValue:p,onClearInput:m,isVisibilityToggleEnabled:h,type:g,..._},v){h??=g===q.Password;let y=(0,n.useRef)(null),[b,x]=(0,n.useState)(u??g!==q.Password);(0,n.useEffect)(()=>{x(u??g!==q.Password)},[g,u]);function S(){x(e=>!e)}function C(){y.current&&y.current.querySelector(`input`)?.focus()}return(0,t.jsx)(Nn,{label:e,caption:r,disabled:i,errorMessage:a,amountCounter:c,required:_.required,children:(0,t.jsxs)(`div`,{className:(0,N.default)(`input-container relative flex flex-row items-center gap-x-3`,An),onClick:C,ref:y,children:[o&&(0,t.jsx)(`span`,{className:`input-icon-color`,children:o}),(0,t.jsxs)(`div`,{className:`flex flex-1 flex-col items-start`,children:[(0,t.jsx)(Er,{..._,inputRef:v,value:d,type:g===q.Password&&b?q.Text:g,disabled:i,className:(0,N.default)(En,Dn,On,kn)}),f&&(0,t.jsx)(`span`,{className:`text-label-md text-iota-neutral-60 names:text-iota-neutral-60 dark:text-iota-neutral-40`,children:f})]}),s&&(0,t.jsx)(nn,{children:s}),(0,t.jsx)(Or,{value:d,type:g,onClearInput:m,isContentVisible:b,trailingElement:l,isVisibilityToggleEnabled:h,onToggleButtonClick:S})]})})});function Er({type:e,inputRef:n,...r}){function i(t){if(e===q.Number){let e=t.currentTarget;e.blur(),t.stopPropagation(),setTimeout(()=>{e.focus({preventScroll:!0})},0)}}return e===q.NumericFormat?(0,t.jsx)(Dr,{inputRef:n,...r,type:e}):(0,t.jsx)(`input`,{ref:n,...r,type:e,onWheel:e=>{i(e),r.onWheel?.(e)}})}function Dr({inputRef:e,className:n,type:r,...i}){return(0,t.jsx)(wr,{className:n,valueIsNumericString:!0,getInputRef:e,...i})}function Or({value:e,type:r,onClearInput:i,isContentVisible:a,trailingElement:o,onToggleButtonClick:s,isVisibilityToggleEnabled:c}){let l=!!(r===q.Text&&e&&i),u=!!(r===q.Password&&c),d=!!(o&&!l&&!u);if(l)return(0,t.jsx)(z,{className:`input-icon-color [&_svg]:h-5 [&_svg]:w-5`,onClick:i,tabIndex:-1,"aria-label":`Clear input`,children:(0,t.jsx)(ze,{})});if(u)return(0,t.jsx)(z,{onClick:s,className:`input-icon-color [&_svg]:h-5 [&_svg]:w-5`,tabIndex:-1,"aria-label":`Toggle visibility`,children:a?(0,t.jsx)(tt,{}):(0,t.jsx)(et,{})});if(d)return(0,t.jsx)(n.Fragment,{children:o})}var kr=(0,n.forwardRef)(function({label:e,caption:r,disabled:i,errorMessage:a,value:o,amountCounter:s,isVisibilityToggleEnabled:c,isResizeEnabled:l,required:u,isContentVisible:d,defaultValue:f,...p},m){let[h,g]=(0,n.useState)(d??!0);(0,n.useEffect)(()=>{g(d??!0)},[d]);function _(){g(e=>!e)}return(0,t.jsx)(Nn,{label:e,caption:r,disabled:i||!h,errorMessage:a,amountCounter:s,required:u,children:(0,t.jsxs)(`div`,{className:`relative`,children:[(0,t.jsx)(`textarea`,{disabled:i||!h,required:u,ref:m,className:(0,N.default)(`text-area-container peer block min-h-[50px]`,An,En,Dn,On,h&&l?`resize-y`:`resize-none`,!h&&`not-visible select-none text-transparent`),defaultValue:h&&f?f:void 0,value:h&&o?o:void 0,...p}),!h&&(0,t.jsx)(`div`,{className:`absolute left-0 top-0 flex h-full w-full flex-col items-stretch gap-y-2 px-md py-sm peer-[.not-visible]:select-none`,children:(0,t.jsx)(Ar,{rows:3,halfWidthRow:3})}),c&&(0,t.jsx)(`span`,{className:`absolute bottom-4 right-4 flex`,children:(0,t.jsx)(z,{onClick:_,className:`input-icon-color [&_svg]:h-5 [&_svg]:w-5`,tabIndex:-1,children:h?(0,t.jsx)(tt,{}):(0,t.jsx)(et,{})})})]})})});function Ar({rows:e,halfWidthRow:n}){return(0,t.jsx)(t.Fragment,{children:Array.from({length:e}).map((e,r)=>(0,t.jsx)(`div`,{className:`input-visibility-bar h-2.5 rounded ${n===r+1?`w-1/2`:`w-full`}`},r))})}var jr=function(e){return e.Horizontal=`horizontal`,e.Vertical=`vertical`,e}({}),Mr=`navbar-item-icon-selected-color`,Nr=`navbar-item-icon-color`,Pr=`py-xxs px-sm`,Fr=`p-sm`,Ir=`-top-3 right-3`,Lr=`-top-1 right-3`,Rr=`navbar-item-label-selected-color`,zr=`navbar-item-label-color`;function Br({icon:e,text:n,isSelected:r,hasBadge:i,onClick:a,isDisabled:o=!1,...s}){let c=r?Mr:Nr,l=n?Pr:Fr,u=r&&`bg-shader-primary-light-12 dark:bg-shader-primary-dark-12`,d=n?Ir:Lr,f=r?Rr:zr,p=o?`cursor-not-allowed opacity-60`:`state-layer-secondary`;return(0,t.jsxs)(`div`,{onClick:e=>{if(o){e.preventDefault();return}a?.(e)},role:`button`,className:(0,N.default)(`inline-flex cursor-pointer flex-col items-center justify-center space-y-1`),...s,children:[(0,t.jsxs)(`div`,{className:(0,N.default)(`relative inline-flex rounded-full`,l,u,p),children:[(0,t.jsx)(`div`,{className:(0,N.default)(`inline-flex [&_svg]:h-6 [&_svg]:w-6`,c),children:e}),i&&(0,t.jsx)(`div`,{className:(0,N.default)(`absolute`,d),children:(0,t.jsx)(Se,{type:M.PrimarySolid})})]}),n&&(0,t.jsx)(`span`,{className:(0,N.default)(`text-center text-label-md`,f),children:n})]})}function Vr({icon:e,text:n,isSelected:r,hasBadge:i,onClick:a,isDisabled:o=!1,...s}){let c=r?Mr:Nr,l=r&&`bg-shader-primary-light-12 dark:bg-shader-primary-dark-12`,u=r?Rr:zr,d=o?`cursor-not-allowed opacity-60`:`state-layer-secondary cursor-pointer `;return(0,t.jsxs)(`div`,{onClick:e=>{if(o){e.preventDefault();return}a?.(e)},role:`button`,className:(0,N.default)(`relative inline-flex w-full flex-row items-center justify-between rounded-full p-sm`,l,d),...s,children:[(0,t.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,t.jsx)(`div`,{className:(0,N.default)(`inline-flex [&_svg]:h-6 [&_svg]:w-6`,c),children:e}),n&&(0,t.jsx)(`span`,{className:(0,N.default)(`text-center text-label-lg`,u),children:n})]}),i&&(0,t.jsx)(Se,{type:M.PrimarySolid})]})}function Hr(e){let{type:n,text:r}=e;return n===jr.Vertical&&r?(0,t.jsx)(Vr,{...e}):(0,t.jsx)(Br,{...e})}function Ur({title:e,subtitle:n,badgeType:r,badgeText:i,avatarContent:a,onOptionsClick:o,onCopy:s,copyText:c,onOpen:l,isCopyable:u,isExternal:d,isSelected:f,isActive:p,showSelected:m,badgeTooltipText:h,badgeTooltipPosition:g=yt.Bottom}){let _=a;return(0,t.jsx)(`div`,{"data-testid":`account-tile`,className:(0,N.default)(`state-layer group relative flex w-full items-center justify-between space-x-3 rounded-xl px-sm py-xs hover:cursor-pointer`,p&&`state-active`),children:(0,t.jsxs)(`div`,{className:`flex w-full items-center gap-x-3`,children:[(0,t.jsx)(`div`,{children:(0,t.jsx)(_,{})}),(0,t.jsxs)(`div`,{className:`flex w-full min-w-0 flex-col items-start py-xs`,children:[(0,t.jsxs)(`div`,{className:`flex w-full min-w-0 items-center space-x-2`,children:[(0,t.jsx)(`p`,{className:`account-title-color min-w-0 max-w-full truncate font-inter text-title-md`,children:e}),i&&r?h?(0,t.jsx)(bt,{text:h,position:g,children:(0,t.jsx)(Se,{type:r,label:i})}):(0,t.jsx)(Se,{type:r,label:i}):null]}),(0,t.jsx)(rn,{text:n,onCopySuccess:s,copyText:c,onOpen:l,isCopyable:u,isExternal:d})]}),(0,t.jsxs)(`div`,{className:`ml-auto flex items-center space-x-2 [&_button]:h-5 [&_button]:w-5 [&_svg]:h-5 [&_svg]:w-5`,children:[(0,t.jsx)(`div`,{className:`account-icon-color flex items-center space-x-2 [&_button:not(.locked)]:invisible group-hover:[&_button:not(.locked)]:visible`,children:o&&(0,t.jsx)(z,{onClick:o,"aria-label":`More options`,children:(0,t.jsx)(Ke,{})})}),m&&(0,t.jsx)(z,{"aria-label":`Checkmark`,children:f?(0,t.jsx)(Re,{className:`account-check-active-color h-5 w-5`}):(0,t.jsx)(Je,{className:`account-check-inactive-color h-5 w-5`})})]})]})})}function Wr({children:e}){return(0,t.jsx)(`ul`,{className:`dropdown-bg dropdown-border-color list-none rounded-lg border py-xs`,children:e})}var Gr=function(e){return e.Top=`top`,e.Bottom=`bottom`,e}({});function Kr({children:e,hasLastBorderNoneClass:n,isContentCentered:r,colSpan:i}){return(0,t.jsx)(`td`,{colSpan:i,className:(0,N.default)(`table-cell-border-color h-14 border-b px-md`,{"last:border-none":n},{"flex items-center justify-center":r}),children:e})}function qr({children:e,supportingLabel:n}){return(0,t.jsxs)(`div`,{className:`flex flex-row items-baseline gap-1`,children:[(0,t.jsx)(`span`,{children:e}),n&&(0,t.jsx)(`span`,{className:`table-cell-supporting-label-color text-body-sm`,children:n})]})}function Jr(){return(0,t.jsx)(Bt,{})}var Yr=function(e){return e.Small=`small`,e.Default=`default`,e}({}),Xr=(0,n.forwardRef)(({disabled:e,label:r,leadingIcon:i,supportingText:a,errorMessage:o,caption:s,options:c,placeholder:l,onValueChange:u,onOptionClick:d,value:f,dropdownPosition:p=Gr.Bottom,size:m=Yr.Default,...h},g)=>{let[_,v]=(0,n.useState)(!1),y=w(f,c),b=(0,n.useRef)(null),x=y||l,S=m===Yr.Small?`px-sm`:`px-md`,C=m===Yr.Small?`text-body-md`:`text-body-lg`;(0,n.useEffect)(()=>{e&&_&&D()},[e,_]),(0,n.useEffect)(()=>{if(!_)return;let e=e=>{let t=e.target;b.current&&!b.current.contains(t)&&D()};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[_]);function w(e,t=[]){return t.find(t=>typeof t==`string`?t===e:t.id===e)??t[0]}function T(){v(e=>!e)}function E(e){D();let t=typeof e==`string`?e:e.id;d?.(t),e!==y&&u?.(t)}function D(){v(!1)}return(0,t.jsx)(Nn,{label:r,caption:s,disabled:e,errorMessage:o,labelHtmlTag:Mn.Div,children:(0,t.jsxs)(`div`,{className:`relative flex w-full flex-col`,ref:b,children:[(0,t.jsxs)(z,{ref:g,onClick:T,disabled:e,"aria-expanded":_,"aria-haspopup":`listbox`,className:(0,N.default)(`select-container select-border-color focus-visible:enabled:select-border-focus-color active:enabled:select-border-focus-color group-[.errored]:select-border-error-color group-[.opened]:select-border-focus-color [&:is(:focus,_:focus-visible,_:active)]:enabled:select-border-focus-color hover:enabled:select-border-hover-color flex flex-row items-center gap-x-3 rounded-lg border py-sm disabled:cursor-not-allowed [&_svg]:h-5 [&_svg]:w-5`,S),...h,children:[i&&(0,t.jsx)(`span`,{className:`select-icon-color`,children:i}),(0,t.jsxs)(`div`,{className:`flex w-full flex-row items-baseline gap-x-3`,children:[x&&(0,t.jsx)(`div`,{className:(0,N.default)(`select-label-color block w-full text-start`,C),children:(0,t.jsx)(Zr,{option:x})}),a&&(0,t.jsx)(`div`,{className:`ml-auto`,children:(0,t.jsx)(nn,{children:a})})]}),(0,t.jsx)($e,{className:(0,N.default)(`select-icon-color transition-transform`,{" rotate-180":_})})]}),_&&(0,t.jsx)(`div`,{className:`fixed left-0 top-0 z-[49] bg-transparent`,onClick:D}),_&&(0,t.jsx)(`div`,{className:(0,N.default)(`absolute z-50 min-w-full animate-dropdown-show`,p===Gr.Top?`bottom-full origin-bottom`:`top-full origin-top`),children:(0,t.jsx)(Wr,{children:c.map(e=>(0,t.jsx)(Et,{onClick:()=>E(e),hideBottomBorder:!0,children:(0,t.jsx)(Zr,{option:e})},typeof e==`string`?e:e.id))})})]})})});function Zr({option:e}){return typeof e==`string`?e:`renderLabel`in e?e.renderLabel():e.label}var Qr=function(e){return e.Asc=`asc`,e.Desc=`desc`,e}({});function $r({label:e,columnKey:n,actionLeft:r,actionRight:i,hasSort:a,hasCheckbox:o,isChecked:s,isIndeterminate:c,isContentCentered:l,onSortClick:u,onCheckboxChange:d,sortOrder:f,...p}){let m=()=>{let e=f===Qr.Asc?Qr.Desc:Qr.Asc;u&&u(n,e)},h=a?f===Qr.Asc?(0,t.jsx)(Qe,{className:`shrink-0`}):f===Qr.Desc?(0,t.jsx)(Ze,{className:`shrink-0`}):(0,t.jsx)(Qe,{className:`invisible shrink-0 group-hover:visible`}):null;return(0,t.jsx)(`th`,{onClick:a?m:void 0,className:(0,N.default)(`state-layer table-cell-border-color group relative h-14 border-b px-md after:pointer-events-none`,{"cursor-pointer":a}),"aria-sort":a?f===Qr.Asc?`ascending`:f===Qr.Desc?`descending`:`none`:void 0,...p,children:(0,t.jsxs)(`div`,{className:(0,N.default)(`flex flex-row items-center gap-1 [&_svg]:h-4 [&_svg]:w-4`,`table-header-text-color`,`text-label-lg`,{"justify-center":l}),children:[o?(0,t.jsx)(dt,{isChecked:s,isIndeterminate:c,onCheckedChange:d}):(0,t.jsxs)(t.Fragment,{children:[r,(0,t.jsx)(`span`,{className:(0,N.default)({"text-left":!l}),children:e})]}),h,i]})})}var J=function(e){return e.Outlined=`outlined`,e.Filled=`filled`,e}({}),ei={[J.Outlined]:`bg-transparent`,[J.Filled]:`search-bg-color-filled`},ti={[J.Outlined]:`border-l border-r border-t search-border-color`,[J.Filled]:`search-bg-color-filled`},ni={[J.Outlined]:`rounded-b-3xl border-b border-l border-r search-border-color search-suggestion-bg-color`,[J.Filled]:`rounded-b-3xl search-bg-color-filled`};function ri({searchValue:e,suggestions:r,onSearchValueChange:i,onSuggestionClick:a,placeholder:o,isLoading:s=!1,type:c=J.Outlined,renderSuggestion:l,...u}){let d=(0,n.useRef)(null),f=(0,n.useRef)(null),[p,m]=(0,n.useState)(!0),[h,g]=(0,n.useState)(null);function _(e){let t=e.target.value;i(t)}(0,n.useEffect)(()=>{let e=e=>{e.key===`Escape`&&(m(!1),d.current?.blur())};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[]),(0,n.useEffect)(()=>{let e=e=>{let t=d?.current;!t||t.contains(e?.target)||f.current?.contains(e.target)||m(!1)};return document.addEventListener(`click`,e,!0),document.addEventListener(`touchstart`,e,!0),()=>{document.removeEventListener(`click`,e,!0),document.removeEventListener(`touchstart`,e,!0)}},[d]);let v=p&&r&&r.length>0,y=v?(0,N.default)(`rounded-t-3xl border-b`,c===J.Outlined?`[&:not(.dark_*,.names_*)]:border-b-transparent`:`border-b-transparent`):c===J.Outlined?`rounded-3xl border-b`:`rounded-full`,b=ti[c],x=ei[c],S=ni[c],C=e=>{a?.(e),i(``),m(!1),g(null),d.current?.blur()};return(0,t.jsxs)(`div`,{className:`relative w-full`,children:[(0,t.jsxs)(`div`,{className:(0,N.default)(`search-text-color flex items-center overflow-hidden px-md py-sm [&_svg]:h-6 [&_svg]:w-6`,y,b),children:[(0,t.jsx)(`input`,{ref:d,type:`text`,value:e,onChange:_,onKeyDown:e=>{r&&r?.length>0&&(e.key===`ArrowDown`?(e.preventDefault(),g(e=>e===null||e>=r.length-1?0:e+1)):e.key===`ArrowUp`?(e.preventDefault(),g(e=>e===null||e<=0?r.length-1:e-1)):e.key===`Enter`&&(e.preventDefault(),h!==null&&r[h]?C(r[h]):r.length===1&&C(r[0])))},onFocus:()=>m(!0),placeholder:o,className:(0,N.default)(`search-placeholder-color w-full flex-1 outline-none`,x),role:`combobox`,"aria-expanded":v,"aria-haspopup":`listbox`,"aria-autocomplete":`list`,...u}),(0,t.jsx)(Xe,{})]}),v&&l&&(0,t.jsxs)(`div`,{ref:f,className:(0,N.default)(`absolute left-0 top-full flex w-full flex-col items-center overflow-hidden`,S),role:`listbox`,children:[(0,t.jsx)(_t,{width:`w-11/12`}),s?(0,t.jsx)(`div`,{className:`px-md py-sm`,children:(0,t.jsx)(V,{className:`animate-spin`})}):r.map((e,n)=>(0,t.jsx)(`div`,{onClick:()=>C(e),onMouseEnter:()=>g(n),className:(0,N.default)(`w-full cursor-pointer px-md py-sm`,h===n?`search-selected-index-bg-color`:``),role:`option`,"aria-selected":h===n,"aria-label":e.label,children:l(e,n)},e.id))]})]})}var ii=function(e){return e.Default=`default`,e.Outlined=`outlined`,e.Filled=`filled`,e}({}),ai=function(e){return e.Placeholder=`placeholder`,e.BgSolid=`bg-solid`,e.BgWhite=`bg-white`,e.BgTransparent=`bg-transparent`,e}({}),oi=function(e){return e.Rounded=`rounded`,e.SquareRounded=`square-rounded`,e}({}),si=function(e){return e.Link=`link`,e.SupportingText=`supporting-text`,e.Button=`button`,e}({}),ci=`cursor-default opacity-40`,li=`h-10 w-10`,ui={[oi.SquareRounded]:`${li} rounded-md`,[oi.Rounded]:`${li} rounded-full`},di={[ai.Placeholder]:``,[ai.BgSolid]:`card-image-bg-solid`,[ai.BgWhite]:`card-image-bg-white`,[ai.BgTransparent]:``},fi={[ii.Default]:`border border-transparent`,[ii.Outlined]:`border border-shader-neutral-light-8 dark:border-shader-primary-dark-8 p-xs`,[ii.Filled]:`border border-transparent card-filled-bg p-xs`};function pi({isDisabled:e=!1,type:n=ii.Default,isHoverable:r,onClick:i,children:a,testId:o,...s}){function c(){e||i?.()}let l=!e&&i;return(0,t.jsx)(`div`,{onClick:c,role:l?`button`:void 0,className:(0,N.default)(`relative inline-flex w-full items-center gap-3 rounded-xl px-sm py-xs`,fi[n],{"state-layer":r||l,[ci]:e,"cursor-pointer":i}),"data-testid":o,...s,children:a})}function mi({type:e,onClick:n,subtitle:r,title:i,icon:a,iconAfterText:o,buttonType:s,buttonDisabled:c}){function l(e){n&&(e.stopPropagation(),n())}return e===si.Link?(0,t.jsx)(`div`,{onClick:l,className:`card-action-link-color shrink-0 [&_svg]:h-5 [&_svg]:w-5`,children:a||(0,t.jsx)(Pe,{})}):e===si.SupportingText?(0,t.jsxs)(`div`,{className:`shrink-0 text-right`,children:[i&&(0,t.jsx)(`div`,{className:`card-action-title-color font-inter text-label-md`,children:i}),r&&(0,t.jsx)(`div`,{className:`card-action-subtitle-color font-inter text-label-sm`,children:r})]}):e===si.Button?(0,t.jsx)(`div`,{className:`shrink-0`,children:(0,t.jsx)(R,{type:s||F.Outlined,size:P.Small,text:i,onClick:l,icon:a,iconAfterText:o,disabled:c})}):null}function hi({variant:e=oi.Rounded}){return e===oi.Rounded?(0,t.jsx)(gi,{}):(0,t.jsx)(_i,{})}function gi(){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`40`,height:`40`,viewBox:`0 0 40 40`,fill:`none`,children:[(0,t.jsxs)(`g`,{"clip-path":`url(#clip0_880_55185)`,children:[(0,t.jsx)(`path`,{d:`M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z`,fill:`#5B9CFE`}),(0,t.jsx)(`path`,{d:`M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z`,fill:`url(#paint0_linear_880_55185)`,"fill-opacity":`0.2`}),(0,t.jsx)(`path`,{d:`M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z`,fill:`url(#paint1_linear_880_55185)`,"fill-opacity":`0.2`}),(0,t.jsx)(`path`,{d:`M0.5 20C0.5 9.23045 9.23045 0.5 20 0.5C30.7696 0.5 39.5 9.23045 39.5 20C39.5 30.7696 30.7696 39.5 20 39.5C9.23045 39.5 0.5 30.7696 0.5 20Z`,stroke:`#002F6D`,"stroke-opacity":`0.08`})]}),(0,t.jsxs)(`defs`,{children:[(0,t.jsxs)(`linearGradient`,{id:`paint0_linear_880_55185`,x1:`20`,y1:`0`,x2:`29.5238`,y2:`22.381`,gradientUnits:`userSpaceOnUse`,children:[(0,t.jsx)(`stop`,{offset:`0.990135`,"stop-opacity":`0`}),(0,t.jsx)(`stop`,{offset:`1`})]}),(0,t.jsxs)(`linearGradient`,{id:`paint1_linear_880_55185`,x1:`20`,y1:`0`,x2:`11.4286`,y2:`9.04762`,gradientUnits:`userSpaceOnUse`,children:[(0,t.jsx)(`stop`,{offset:`0.9999`,"stop-opacity":`0`}),(0,t.jsx)(`stop`,{offset:`1`})]}),(0,t.jsx)(`clipPath`,{id:`clip0_880_55185`,children:(0,t.jsx)(`path`,{d:`M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z`,fill:`white`})})]})]})}function _i(){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`40`,height:`40`,viewBox:`0 0 40 40`,fill:`none`,children:[(0,t.jsxs)(`g`,{"clip-path":`url(#clip0_880_55190)`,children:[(0,t.jsx)(`path`,{d:`M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z`,fill:`#5B9CFE`}),(0,t.jsx)(`path`,{d:`M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z`,fill:`url(#paint0_linear_880_55190)`,"fill-opacity":`0.2`}),(0,t.jsx)(`path`,{d:`M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z`,fill:`url(#paint1_linear_880_55190)`,"fill-opacity":`0.2`}),(0,t.jsx)(`path`,{d:`M0.5 8C0.5 3.85786 3.85786 0.5 8 0.5H32C36.1421 0.5 39.5 3.85786 39.5 8V32C39.5 36.1421 36.1421 39.5 32 39.5H8C3.85786 39.5 0.5 36.1421 0.5 32V8Z`,stroke:`#002F6D`,"stroke-opacity":`0.08`})]}),(0,t.jsxs)(`defs`,{children:[(0,t.jsxs)(`linearGradient`,{id:`paint0_linear_880_55190`,x1:`20`,y1:`0`,x2:`29.5238`,y2:`22.381`,gradientUnits:`userSpaceOnUse`,children:[(0,t.jsx)(`stop`,{offset:`0.990135`,"stop-opacity":`0`}),(0,t.jsx)(`stop`,{offset:`1`})]}),(0,t.jsxs)(`linearGradient`,{id:`paint1_linear_880_55190`,x1:`20`,y1:`0`,x2:`11.4286`,y2:`9.04762`,gradientUnits:`userSpaceOnUse`,children:[(0,t.jsx)(`stop`,{offset:`0.9999`,"stop-opacity":`0`}),(0,t.jsx)(`stop`,{offset:`1`})]}),(0,t.jsx)(`clipPath`,{id:`clip0_880_55190`,children:(0,t.jsx)(`path`,{d:`M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z`,fill:`white`})})]})]})}function vi({type:e=ai.BgSolid,shape:n=oi.Rounded,url:r,children:i}){return(0,t.jsxs)(`div`,{className:(0,N.default)(ui[n],di[e],`flex shrink-0 items-center justify-center overflow-hidden`),children:[e===ai.Placeholder&&!i&&(0,t.jsx)(hi,{variant:n}),r&&!i&&(0,t.jsx)(`img`,{src:r,className:(0,N.default)(ui[n],`object-cover`),alt:`Card Image`}),i]})}function yi({title:e,subtitle:n,clickableAction:r,icon:i,isTextTruncated:a,tooltipText:o,tooltipPosition:s}){return(0,t.jsxs)(`div`,{className:(0,N.default)(`flex w-full flex-col`,{truncate:a}),children:[(0,t.jsxs)(`div`,{className:(0,N.default)(`flex flex-row items-center gap-x-xxs`,{"grow-1":a}),children:[(0,t.jsx)(`div`,{className:(0,N.default)(`card-body-title-color text-start font-inter text-title-md`,{truncate:a}),children:e}),o?(0,t.jsx)(bt,{text:o,position:s,children:i}):(0,t.jsx)(`div`,{className:`flex items-center`,children:i}),r&&(0,t.jsx)(`div`,{onClick:e=>{e?.stopPropagation()},className:`flex items-center`,children:r})]}),n&&(0,t.jsx)(`div`,{className:(0,N.default)(`card-body-subtitle-color text-start font-inter text-body-md`,{truncate:a}),children:n})]})}var bi=function(e){return e.Default=`default`,e.Highlight=`highlight`,e.Secondary=`secondary`,e}({}),Y=function(e){return e.Default=`default`,e.Large=`large`,e}({}),xi={[bi.Default]:`display-stats-bg-default`,[bi.Highlight]:`display-stats-bg-highlight`,[bi.Secondary]:`display-stats-bg-secondary`},Si={[bi.Default]:`display-stats-text-default`,[bi.Highlight]:`display-stats-text-highlight`,[bi.Secondary]:`display-stats-text-secondary`},Ci={[Y.Default]:`gap-y-sm`,[Y.Large]:`gap-y-md`},wi={[Y.Default]:`text-title-md`,[Y.Large]:`text-headline-sm`},Ti={[Y.Default]:`text-label-md`,[Y.Large]:`text-label-lg`},Ei={[Y.Default]:`text-label-sm`,[Y.Large]:`text-label-md`};function Di({label:e,tooltipPosition:n,tooltipText:r,value:i,supportingLabel:a,type:o=bi.Default,size:s=Y.Default,icon:c,copyText:l,onCopySuccess:u,onCopyError:d}){let f=xi[o],p=Ci[s],m=Si[o],h=wi[s],g=Ei[s],_=Ti[s];async function v(e){if(navigator.clipboard&&l)try{await navigator.clipboard.writeText(l),u?.(e,l)}catch(e){console.error(`Failed to copy:`,e),d?.(e,l)}}return(0,t.jsxs)(`div`,{className:(0,N.default)(`flex h-full w-full flex-col justify-between rounded-2xl p-md--rs`,f,p,m),children:[(0,t.jsxs)(`div`,{className:(0,N.default)(`flex flex-row items-center`,{"w-full justify-between":c}),children:[(0,t.jsxs)(`div`,{className:`flex flex-row items-center gap-xxs`,children:[(0,t.jsx)(`span`,{className:(0,N.default)(g,`whitespace-pre-line`),children:e}),r&&(0,t.jsx)(bt,{text:r,position:n,children:(0,t.jsx)(Ue,{className:`opacity-40`})})]}),c&&(0,t.jsx)(`span`,{className:`display-stats-icon-color`,children:c})]}),(0,t.jsxs)(`div`,{className:`flex w-full flex-row items-baseline gap-xxs`,children:[(0,t.jsx)(`span`,{className:(0,N.default)(`min-w-0 break-all`,h),children:i}),a&&(0,t.jsx)(`span`,{className:(0,N.default)(`opacity-40`,_),children:a}),l&&(0,t.jsx)(`div`,{className:`self-center`,children:(0,t.jsx)(z,{onClick:v,"aria-label":`Copy to clipboard`,children:(0,t.jsx)(B,{className:`display-stats-copy-icon-color`})})})]})]})}function Oi({onIconClick:e,onClick:n,icon:r=(0,t.jsx)(Ke,{}),assetTitle:i,isHoverable:a=!0,...o}){let s=t=>{e?.(t),t?.stopPropagation()},c=!(`src`in o);return(0,t.jsxs)(`div`,{className:(0,N.default)(`relative aspect-square w-full overflow-hidden rounded-xl`,{"group cursor-pointer":a}),onClick:n,children:[!c&&(0,t.jsx)(on,{...o}),c&&o.renderAsset,a&&(0,t.jsx)(`div`,{className:`absolute left-0 top-0 h-full w-full bg-cover bg-center bg-no-repeat group-hover:bg-shader-neutral-light-48 group-hover:transition group-hover:duration-300 group-hover:ease-in-out group-hover:names:bg-shader-inverted-light-48 group-hover:dark:bg-shader-primary-dark-48`}),a&&e&&(0,t.jsx)(z,{className:`visual-asset-icon-color absolute right-2 top-2 z-10 h-9 w-9 cursor-pointer rounded-full p-xs opacity-0 transition-opacity duration-300 group-hover:bg-shader-neutral-light-72 group-hover:opacity-100 [&_svg]:h-5 [&_svg]:w-5`,onClick:s,"aria-label":`More options`,children:r}),a&&i&&(0,t.jsx)(`div`,{className:`absolute bottom-0 w-full p-xs opacity-0 transition-opacity duration-300 group-hover:opacity-100`,children:(0,t.jsx)(`span`,{className:`visual-asset-title-color break-words text-title-md`,children:i})})]})}var ki=`date-picker-trigger-border-color focus-visible:enabled:date-picker-trigger-border-focus-color hover:enabled:date-picker-trigger-border-hover-color group-[.errored]:date-picker-trigger-border-error-color flex w-full flex-row items-center gap-x-3 rounded-lg border px-md py-sm disabled:cursor-not-allowed [&_svg]:h-5 [&_svg]:w-5`,Ai=function(e){return e.DayMonthYear=`DD/MM/YYYY`,e.MonthDayYear=`MM/DD/YYYY`,e.YearMonthDay=`YYYY/MM/DD`,e}({}),ji=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],Mi=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`];function Ni(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function X(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function Pi(e,t,n){let r=X(e);return!!(t&&r<X(t)||n&&r>X(n))}function Fi(e,t,n){return!!(t&&new Date(e,11,31)<X(t)||n&&new Date(e,0,1)>X(n))}function Ii(e,t){let n=String(e.getFullYear()),r=String(e.getMonth()+1).padStart(2,`0`),i=String(e.getDate()).padStart(2,`0`);switch(t){case Ai.DayMonthYear:return`${i}/${r}/${n}`;case Ai.MonthDayYear:return`${r}/${i}/${n}`;case Ai.YearMonthDay:return`${n}/${r}/${i}`;default:return`${i}/${r}/${n}`}}function Li(e,t){let n=new Date(e,t,1).getDay(),r=[];for(let i=-n;i<42-n;i++)r.push(new Date(e,t,1+i));return r}function Ri(e){return Math.floor(e/10)*10}function zi({value:e,onChange:r,minDate:i,maxDate:a,dateFormat:o=Ai.DayMonthYear,label:s,caption:c,errorMessage:l,disabled:u,placeholder:d=`Select a date`}){let f=X(new Date),[p,m]=(0,n.useState)(!1),[h,g]=(0,n.useState)(`days`),[_,v]=(0,n.useState)(()=>e?.getFullYear()??f.getFullYear()),[y,b]=(0,n.useState)(()=>e?.getMonth()??f.getMonth()),x=(0,n.useRef)(null);(0,n.useEffect)(()=>{e&&(v(e.getFullYear()),b(e.getMonth()))},[e]),(0,n.useEffect)(()=>{p||g(`days`)},[p]),(0,n.useEffect)(()=>{if(!p)return;function e(e){x.current&&!x.current.contains(e.target)&&m(!1)}return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[p]),(0,n.useEffect)(()=>{if(!p)return;function e(e){e.key===`Escape`&&m(!1)}return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[p]);function S(){u||m(e=>!e)}function C(){y===0?(b(11),v(e=>e-1)):b(e=>e-1)}function w(){y===11?(b(0),v(e=>e+1)):b(e=>e+1)}function T(){v(e=>e-10)}function E(){v(e=>e+10)}function D(){v(e=>Ri(e)-10)}function ee(){v(e=>Ri(e)+10)}function O(e){v(e),g(`days`)}function te(e){Pi(e,i,a)||(r?.(e),m(!1))}let ne=Li(_,y),k=Ri(_),re=Array.from({length:12},(e,t)=>k+t),ie=!i||new Date(_-10,y+1,0)>=X(i),ae=!i||new Date(_,y,0)>=X(i),oe=!a||new Date(_,y+1,1)<=X(a),se=!a||new Date(_+10,y,1)<=X(a),ce=!i||new Date(k-1,11,31)>=X(i),A=!a||new Date(k+12,0,1)<=X(a);return(0,t.jsx)(Nn,{label:s,caption:c,disabled:u,errorMessage:l,labelHtmlTag:Mn.Div,children:(0,t.jsxs)(`div`,{className:`relative w-full`,ref:x,children:[(0,t.jsxs)(z,{onClick:S,disabled:u,"aria-expanded":p,"aria-haspopup":`dialog`,"aria-label":e?Ii(e,o):d,className:(0,N.default)(ki,{"date-picker-trigger-border-focus-color":p}),children:[(0,t.jsx)(`span`,{className:(0,N.default)(`block w-full text-start text-body-lg`,{"date-picker-trigger-placeholder-color":!e,"date-picker-trigger-text-color":!!e}),children:e?Ii(e,o):d}),(0,t.jsx)(`span`,{className:`input-icon-color flex-shrink-0`,children:(0,t.jsx)(Ie,{})})]}),p&&(0,t.jsx)(`div`,{role:`dialog`,"aria-label":`Date picker calendar`,className:(0,N.default)(`date-picker-calendar-bg date-picker-calendar-border-color absolute z-50 mt-1 rounded-lg border p-3 shadow-lg`,`w-[280px]`),children:h===`days`?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(`div`,{className:`mb-1 flex items-center justify-between`,children:[(0,t.jsx)(z,{onClick:T,disabled:!ie,"aria-label":`Previous 10 years`,className:`date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4`,children:(0,t.jsx)(Ve,{})}),(0,t.jsxs)(`div`,{className:`flex flex-1 items-center justify-between px-1`,children:[(0,t.jsx)(z,{onClick:C,disabled:!ae,"aria-label":`Previous month`,className:`date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4`,children:(0,t.jsx)(Ne,{})}),(0,t.jsxs)(z,{onClick:()=>g(`years`),"aria-label":`Select year`,className:`date-picker-header-text-color enabled:hover:date-picker-nav-bg-hover rounded-md px-1 py-0.5 text-label-lg font-semibold transition-colors hover:delay-75 shrink-0`,children:[Mi[y],` `,_]}),(0,t.jsx)(z,{onClick:w,disabled:!oe,"aria-label":`Next month`,className:`date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4`,children:(0,t.jsx)(Pe,{})})]}),(0,t.jsx)(z,{onClick:E,disabled:!se,"aria-label":`Next 10 years`,className:`date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4`,children:(0,t.jsx)(He,{})})]}),(0,t.jsx)(`div`,{className:`mb-1 grid grid-cols-7`,children:ji.map(e=>(0,t.jsx)(`div`,{className:`date-picker-weekday-text-color flex h-8 w-8 items-center justify-center text-label-sm font-medium`,children:e},e))}),(0,t.jsx)(`div`,{className:`grid grid-cols-7`,children:ne.map((n,r)=>{let o=n.getMonth()===y,s=!!e&&Ni(n,e),c=Ni(n,f),l=Pi(n,i,a),u=!o;return(0,t.jsx)(`div`,{className:`flex items-center justify-center p-0.5`,children:(0,t.jsx)(z,{onClick:()=>te(n),disabled:l||u,"aria-label":Ii(n,Ai.DayMonthYear),"aria-selected":s,"aria-disabled":l||u,className:(0,N.default)(`date-picker-day-text-color flex h-8 w-8 items-center justify-center rounded-full text-body-md transition-colors hover:delay-75`,{"date-picker-day-bg-selected date-picker-day-text-selected cursor-pointer":s,"date-picker-day-today-ring font-semibold":c&&!s,"date-picker-day-text-disabled cursor-not-allowed opacity-40":l&&!u,"date-picker-day-text-outside-month cursor-default opacity-30":u,"enabled:hover:date-picker-day-bg-hover enabled:hover:date-picker-day-text-color-hover cursor-pointer":!s&&!l&&!u}),children:n.getDate()})},r)})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[(0,t.jsx)(z,{onClick:D,disabled:!ce,"aria-label":`Previous decade`,className:`date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4`,children:(0,t.jsx)(Ve,{})}),(0,t.jsxs)(`span`,{className:`date-picker-header-text-color text-label-lg font-semibold`,children:[k,` – `,k+12-1]}),(0,t.jsx)(z,{onClick:ee,disabled:!A,"aria-label":`Next decade`,className:`date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4`,children:(0,t.jsx)(He,{})})]}),(0,t.jsx)(`div`,{className:`grid grid-cols-3 gap-1`,children:re.map(n=>{let r=e?.getFullYear()===n,o=f.getFullYear()===n,s=Fi(n,i,a);return(0,t.jsx)(z,{onClick:()=>O(n),disabled:s,"aria-label":String(n),"aria-selected":r,className:(0,N.default)(`date-picker-day-text-color flex w-full items-center justify-center rounded-lg py-2 text-body-md transition-colors hover:delay-75`,{"date-picker-day-bg-selected date-picker-day-text-selected cursor-pointer":r,"date-picker-day-today-ring font-semibold":o&&!r,"date-picker-day-text-disabled cursor-not-allowed opacity-40":s,"enabled:hover:date-picker-day-bg-hover enabled:hover:date-picker-day-text-color-hover cursor-pointer":!r&&!s}),children:n},n)})})]})})]})})}function Bi(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function Vi(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function Hi(...e){return t=>e.forEach(e=>Vi(e,t))}function Ui(...e){return p.useCallback(Hi(...e),e)}function Wi(e,n){let r=p.createContext(n);function i(e){let{children:n,...i}=e,a=p.useMemo(()=>i,Object.values(i));return(0,t.jsx)(r.Provider,{value:a,children:n})}function a(t){let i=p.useContext(r);if(i)return i;if(n!==void 0)return n;throw Error(`\`${t}\` must be used within \`${e}\``)}return i.displayName=e+`Provider`,[i,a]}function Gi(e,n=[]){let r=[];function i(n,i){let a=p.createContext(i),o=r.length;r=[...r,i];function s(n){let{scope:r,children:i,...s}=n,c=r?.[e][o]||a,l=p.useMemo(()=>s,Object.values(s));return(0,t.jsx)(c.Provider,{value:l,children:i})}function c(t,r){let s=r?.[e][o]||a,c=p.useContext(s);if(c)return c;if(i!==void 0)return i;throw Error(`\`${t}\` must be used within \`${n}\``)}return s.displayName=n+`Provider`,[s,c]}let a=()=>{let t=r.map(e=>p.createContext(e));return function(n){let r=n?.[e]||t;return p.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return a.scopeName=e,[i,Ki(a,...n)]}function Ki(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var qi=globalThis?.document?p.useLayoutEffect:()=>{},Ji=p.useId||(()=>void 0),Yi=0;function Xi(e){let[t,n]=p.useState(Ji());return qi(()=>{e||n(e=>e??String(Yi++))},[e]),e||(t?`radix-${t}`:``)}function Zi(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...e)=>t.current?.(...e),[])}function Qi({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=$i({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=Zi(n);return[o,p.useCallback(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function $i({defaultProp:e,onChange:t}){let n=p.useState(e),[r]=n,i=p.useRef(r),a=Zi(t);return p.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}var ea=p.forwardRef((e,n)=>{let{children:r,...i}=e,a=p.Children.toArray(r),o=a.find(ra);if(o){let e=o.props.children,r=a.map(t=>t===o?p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null:t);return(0,t.jsx)(ta,{...i,ref:n,children:p.isValidElement(e)?p.cloneElement(e,void 0,r):null})}return(0,t.jsx)(ta,{...i,ref:n,children:r})});ea.displayName=`Slot`;var ta=p.forwardRef((e,t)=>{let{children:n,...r}=e;if(p.isValidElement(n)){let e=aa(n);return p.cloneElement(n,{...ia(r,n.props),ref:t?Hi(t,e):e})}return p.Children.count(n)>1?p.Children.only(null):null});ta.displayName=`SlotClone`;var na=({children:e})=>(0,t.jsx)(t.Fragment,{children:e});function ra(e){return p.isValidElement(e)&&e.type===na}function ia(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function aa(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Z=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`span`,`svg`,`ul`].reduce((e,n)=>{let r=p.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?ea:n;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,t.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});function oa(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}function sa(e,t=globalThis?.document){let n=Zi(e);p.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var ca=`DismissableLayer`,la=`dismissableLayer.update`,ua=`dismissableLayer.pointerDownOutside`,da=`dismissableLayer.focusOutside`,fa,pa=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ma=p.forwardRef((e,n)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=p.useContext(pa),[d,f]=p.useState(null),m=d?.ownerDocument??globalThis?.document,[,h]=p.useState({}),g=Ui(n,e=>f(e)),_=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=_.indexOf(v),b=d?_.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,C=_a(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));!S||n||(a?.(e),s?.(e),e.defaultPrevented||c?.())},m),w=va(e=>{let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},m);return sa(e=>{b===u.layers.size-1&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},m),p.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(fa=m.body.style.pointerEvents,m.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ya(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=fa)}},[d,m,r,u]),p.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ya())},[d,u]),p.useEffect(()=>{let e=()=>h({});return document.addEventListener(la,e),()=>document.removeEventListener(la,e)},[]),(0,t.jsx)(Z.div,{...l,ref:g,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:Bi(e.onFocusCapture,w.onFocusCapture),onBlurCapture:Bi(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:Bi(e.onPointerDownCapture,C.onPointerDownCapture)})});ma.displayName=ca;var ha=`DismissableLayerBranch`,ga=p.forwardRef((e,n)=>{let r=p.useContext(pa),i=p.useRef(null),a=Ui(n,i);return p.useEffect(()=>{let e=i.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,t.jsx)(Z.div,{...e,ref:a})});ga.displayName=ha;function _a(e,t=globalThis?.document){let n=Zi(e),r=p.useRef(!1),i=p.useRef(()=>{});return p.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){ba(ua,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function va(e,t=globalThis?.document){let n=Zi(e),r=p.useRef(!1);return p.useEffect(()=>{let e=e=>{e.target&&!r.current&&ba(da,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ya(){let e=new CustomEvent(la);document.dispatchEvent(e)}function ba(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?oa(i,a):i.dispatchEvent(a)}var xa=`focusScope.autoFocusOnMount`,Sa=`focusScope.autoFocusOnUnmount`,Ca={bubbles:!1,cancelable:!0},wa=`FocusScope`,Ta=p.forwardRef((e,n)=>{let{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=p.useState(null),u=Zi(a),d=Zi(o),f=p.useRef(null),m=Ui(n,e=>l(e)),h=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(i){let e=function(e){if(h.paused||!c)return;let t=e.target;c.contains(t)?f.current=t:Ma(f.current,{select:!0})},t=function(e){if(h.paused||!c)return;let t=e.relatedTarget;t!==null&&(c.contains(t)||Ma(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Ma(c)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[i,c,h.paused]),p.useEffect(()=>{if(c){Na.add(h);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(xa,Ca);c.addEventListener(xa,u),c.dispatchEvent(t),t.defaultPrevented||(Ea(Ia(Oa(c)),{select:!0}),document.activeElement===e&&Ma(c))}return()=>{c.removeEventListener(xa,u),setTimeout(()=>{let t=new CustomEvent(Sa,Ca);c.addEventListener(Sa,d),c.dispatchEvent(t),t.defaultPrevented||Ma(e??document.body,{select:!0}),c.removeEventListener(Sa,d),Na.remove(h)},0)}}},[c,u,d,h]);let g=p.useCallback(e=>{if(!r&&!i||h.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,a]=Da(t);i&&a?!e.shiftKey&&n===a?(e.preventDefault(),r&&Ma(i,{select:!0})):e.shiftKey&&n===i&&(e.preventDefault(),r&&Ma(a,{select:!0})):n===t&&e.preventDefault()}},[r,i,h.paused]);return(0,t.jsx)(Z.div,{tabIndex:-1,...s,ref:m,onKeyDown:g})});Ta.displayName=wa;function Ea(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Ma(r,{select:t}),document.activeElement!==n)return}function Da(e){let t=Oa(e);return[ka(t,e),ka(t.reverse(),e)]}function Oa(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ka(e,t){for(let n of e)if(!Aa(n,{upTo:t}))return n}function Aa(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function ja(e){return e instanceof HTMLInputElement&&`select`in e}function Ma(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ja(e)&&t&&e.select()}}var Na=Pa();function Pa(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Fa(e,t),e.unshift(t)},remove(t){e=Fa(e,t),e[0]?.resume()}}}function Fa(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ia(e){return e.filter(e=>e.tagName!==`A`)}var La=`Portal`,Ra=p.forwardRef((e,n)=>{let{container:i,...a}=e,[o,s]=p.useState(!1);qi(()=>s(!0),[]);let c=i||o&&globalThis?.document?.body;return c?r.default.createPortal((0,t.jsx)(Z.div,{...a,ref:n}),c):null});Ra.displayName=La;function za(e,t){return p.useReducer((e,n)=>t[e][n]??e,e)}var Ba=e=>{let{present:t,children:n}=e,r=Va(t),i=typeof n==`function`?n({present:r.isPresent}):p.Children.only(n),a=Ui(r.ref,Ua(i));return typeof n==`function`||r.isPresent?p.cloneElement(i,{ref:a}):null};Ba.displayName=`Presence`;function Va(e){let[t,n]=p.useState(),i=p.useRef({}),a=p.useRef(e),o=p.useRef(`none`),[s,c]=za(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return p.useEffect(()=>{let e=Ha(i.current);o.current=s===`mounted`?e:`none`},[s]),qi(()=>{let t=i.current,n=a.current;if(n!==e){let r=o.current,i=Ha(t);e?c(`MOUNT`):i===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),a.current=e}},[e,c]),qi(()=>{if(t){let e=e=>{let n=Ha(i.current).includes(e.animationName);e.target===t&&n&&r.flushSync(()=>c(`ANIMATION_END`))},n=e=>{e.target===t&&(o.current=Ha(i.current))};return t.addEventListener(`animationstart`,n),t.addEventListener(`animationcancel`,e),t.addEventListener(`animationend`,e),()=>{t.removeEventListener(`animationstart`,n),t.removeEventListener(`animationcancel`,e),t.removeEventListener(`animationend`,e)}}else c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:p.useCallback(e=>{e&&(i.current=getComputedStyle(e)),n(e)},[])}}function Ha(e){return e?.animationName||`none`}function Ua(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wa=0;function Ga(){p.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Ka()),document.body.insertAdjacentElement(`beforeend`,e[1]??Ka()),Wa++,()=>{Wa===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),Wa--}},[])}function Ka(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.cssText=`outline: none; opacity: 0; position: fixed; pointer-events: none`,e}var Q=function(){return Q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Q.apply(this,arguments)};function qa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ja(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Ya=`right-scroll-bar-position`,Xa=`width-before-scroll-bar`,Za=`with-scroll-bars-hidden`,Qa=`--removed-body-scroll-bar-size`;function $a(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function eo(e,t){var r=(0,n.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}})[0];return r.callback=t,r.facade}var to=typeof window<`u`?n.useLayoutEffect:n.useEffect,no=new WeakMap;function ro(e,t){var n=eo(t||null,function(t){return e.forEach(function(e){return $a(e,t)})});return to(function(){var t=no.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||$a(e,null)}),i.forEach(function(e){r.has(e)||$a(e,a)})}no.set(n,e)},[e]),n}function io(e){return e}function ao(e,t){t===void 0&&(t=io);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function oo(e){e===void 0&&(e={});var t=ao(null);return t.options=Q({async:!0,ssr:!1},e),t}var so=function(e){var t=e.sideCar,r=qa(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw Error(`Sidecar medium not found`);return n.createElement(i,Q({},r))};so.isSideCarExport=!0;function co(e,t){return e.useMedium(t),so}var lo=oo(),uo=function(){},fo=n.forwardRef(function(e,t){var r=n.useRef(null),i=n.useState({onScrollCapture:uo,onWheelCapture:uo,onTouchMoveCapture:uo}),a=i[0],o=i[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=qa(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=p,S=ro([r,t]),C=Q(Q({},b),a);return n.createElement(n.Fragment,null,d&&n.createElement(x,{sideCar:lo,removeScrollBar:u,shards:f,noIsolation:m,inert:h,setCallbacks:o,allowPinchZoom:!!g,lockRef:r,gapMode:y}),s?n.cloneElement(n.Children.only(c),Q(Q({},C),{ref:S})):n.createElement(v,Q({},C,{className:l,ref:S}),c))});fo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},fo.classNames={fullWidth:Xa,zeroRight:Ya};var po,mo=function(){if(po)return po;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function ho(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=mo();return t&&e.setAttribute(`nonce`,t),e}function go(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function _o(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var vo=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ho())&&(go(t,n),_o(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},yo=function(){var e=vo();return function(t,r){n.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},bo=function(){var e=yo();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},xo={left:0,top:0,right:0,gap:0},So=function(e){return parseInt(e||``,10)||0},Co=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[So(n),So(r),So(i)]},wo=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return xo;var t=Co(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},To=bo(),Eo=`data-scroll-locked`,Do=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
18
|
-
.${
|
|
17
|
+
`),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function kr(e){e=Or(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=Wn);var a=e.onBlur;a===void 0&&(a=Wn);var o=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,l=e.prefix;l===void 0&&(l=``);var u=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,m=Hn(e,[`decimalSeparator`,`allowedDecimalSeparators`,`thousandsGroupStyle`,`suffix`,`allowNegative`,`allowLeadingZeros`,`onKeyDown`,`onBlur`,`thousandSeparator`,`decimalScale`,`fixedDecimalScale`,`prefix`,`defaultValue`,`value`,`valueIsNumericString`,`onValueChange`]),h=Sr(e),g=h.decimalSeparator,_=h.allowedDecimalSeparators,v=function(t){return xr(t,e)},y=function(t,n){return Er(t,n,e)},b=qn(d)?u:d,x=f??Tr(b,l,t);qn(d)?qn(u)||(x||=typeof u==`number`):x||=typeof d==`number`;var S=function(e){return Yn(e)?e:(typeof e==`number`&&(e=ir(e)),x&&typeof s==`number`?ar(e,s,!!c):e)},C=_r(S(d),S(u),!!x,v,y,p),w=C[0],T=w.numAsString,E=w.formattedValue,D=C[1];return Object.assign(Object.assign({},m),{value:E,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g?!0:Kn(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,i=e.currentValueIndex,a=e.formattedValueIndex,o=t[i],u=r[a],f=sr(n,t).to,p=function(e){return y(e).indexOf(`.`)+l.length};return d===0&&c&&s&&t[f.start]===g&&p(t)<i&&p(r)>a?!1:i>=f.start&&i<f.end&&_&&_.includes(o)&&u===g?!0:o===u},onValueChange:D,format:v,removeFormatting:y,getCaretBoundary:function(t){return Dr(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,u=t.selectionEnd,d=t.value;if(d===void 0&&(d=``),(r===`Backspace`||r===`Delete`)&&u<l.length){e.preventDefault();return}if(a!==u){i(e);return}r===`Backspace`&&d[0]===`-`&&a===l.length+1&&n&&or(t,1),s&&c&&(r===`Backspace`&&d[a-1]===g?(or(t,a-1),e.preventDefault()):r===`Delete`&&d[a]===g&&e.preventDefault()),_?.includes(r)&&d[a]===g&&or(t,a+1);var f=o===!0?`,`:o;r===`Backspace`&&d[a-1]===f&&or(t,a-1),r===`Delete`&&d[a]===f&&or(t,a+1),i(e)},onBlur:function(t){var n=T;n.match(/\d/g)||(n=``),r||(n=tr(n)),c&&s&&(n=ar(n,s,c)),n!==T&&D({formattedValue:xr(n,e),value:n,floatValue:parseFloat(n)},{event:t,source:Un.event}),a(t)}})}function Ar(e){var t=kr(e);return n.default.createElement(br,Object.assign({},t))}var jr=(0,n.forwardRef)(function({label:e,caption:r,disabled:i,errorMessage:a,leadingIcon:o,supportingText:s,amountCounter:c,trailingElement:l,isContentVisible:u,value:d,supportingValue:f,defaultValue:p,onClearInput:m,isVisibilityToggleEnabled:h,type:g,..._},v){h??=g===q.Password;let y=(0,n.useRef)(null),[b,x]=(0,n.useState)(u??g!==q.Password);(0,n.useEffect)(()=>{x(u??g!==q.Password)},[g,u]);function S(){x(e=>!e)}function C(){y.current&&y.current.querySelector(`input`)?.focus()}return(0,t.jsx)(zn,{label:e,caption:r,disabled:i,errorMessage:a,amountCounter:c,required:_.required,children:(0,t.jsxs)(`div`,{className:(0,P.default)(`input-container relative flex flex-row items-center gap-x-3`,In),onClick:C,ref:y,children:[o&&(0,t.jsx)(`span`,{className:`input-icon-color`,children:o}),(0,t.jsxs)(`div`,{className:`flex flex-1 flex-col items-start`,children:[(0,t.jsx)(Mr,{..._,inputRef:v,value:d,type:g===q.Password&&b?q.Text:g,disabled:i,className:(0,P.default)(Mn,Nn,Pn,Fn)}),f&&(0,t.jsx)(`span`,{className:`text-label-md text-iota-neutral-60 names:text-iota-neutral-60 dark:text-iota-neutral-40`,children:f})]}),s&&(0,t.jsx)(ln,{children:s}),(0,t.jsx)(Pr,{value:d,type:g,onClearInput:m,isContentVisible:b,trailingElement:l,isVisibilityToggleEnabled:h,onToggleButtonClick:S})]})})});function Mr({type:e,inputRef:n,...r}){function i(t){if(e===q.Number){let e=t.currentTarget;e.blur(),t.stopPropagation(),setTimeout(()=>{e.focus({preventScroll:!0})},0)}}return e===q.NumericFormat?(0,t.jsx)(Nr,{inputRef:n,...r,type:e}):(0,t.jsx)(`input`,{ref:n,...r,type:e,onWheel:e=>{i(e),r.onWheel?.(e)}})}function Nr({inputRef:e,className:n,type:r,...i}){return(0,t.jsx)(Ar,{className:n,valueIsNumericString:!0,getInputRef:e,...i})}function Pr({value:e,type:r,onClearInput:i,isContentVisible:a,trailingElement:o,onToggleButtonClick:s,isVisibilityToggleEnabled:c}){let l=!!(r===q.Text&&e&&i),u=!!(r===q.Password&&c),d=!!(o&&!l&&!u);if(l)return(0,t.jsx)(R,{className:`input-icon-color [&_svg]:h-5 [&_svg]:w-5`,onClick:i,tabIndex:-1,"aria-label":`Clear input`,children:(0,t.jsx)(Ge,{})});if(u)return(0,t.jsx)(R,{onClick:s,className:`input-icon-color [&_svg]:h-5 [&_svg]:w-5`,tabIndex:-1,"aria-label":`Toggle visibility`,children:a?(0,t.jsx)(ct,{}):(0,t.jsx)(st,{})});if(d)return(0,t.jsx)(n.Fragment,{children:o})}var Fr=(0,n.forwardRef)(function({label:e,caption:r,disabled:i,errorMessage:a,value:o,amountCounter:s,isVisibilityToggleEnabled:c,isResizeEnabled:l,required:u,isContentVisible:d,defaultValue:f,...p},m){let[h,g]=(0,n.useState)(d??!0);(0,n.useEffect)(()=>{g(d??!0)},[d]);function _(){g(e=>!e)}return(0,t.jsx)(zn,{label:e,caption:r,disabled:i||!h,errorMessage:a,amountCounter:s,required:u,children:(0,t.jsxs)(`div`,{className:`relative`,children:[(0,t.jsx)(`textarea`,{disabled:i||!h,required:u,ref:m,className:(0,P.default)(`text-area-container peer block min-h-[50px]`,In,Mn,Nn,Pn,h&&l?`resize-y`:`resize-none`,!h&&`not-visible select-none text-transparent`),defaultValue:h&&f?f:void 0,value:h&&o?o:void 0,...p}),!h&&(0,t.jsx)(`div`,{className:`absolute left-0 top-0 flex h-full w-full flex-col items-stretch gap-y-2 px-md py-sm peer-[.not-visible]:select-none`,children:(0,t.jsx)(Ir,{rows:3,halfWidthRow:3})}),c&&(0,t.jsx)(`span`,{className:`absolute bottom-4 right-4 flex`,children:(0,t.jsx)(R,{onClick:_,className:`input-icon-color [&_svg]:h-5 [&_svg]:w-5`,tabIndex:-1,children:h?(0,t.jsx)(ct,{}):(0,t.jsx)(st,{})})})]})})});function Ir({rows:e,halfWidthRow:n}){return(0,t.jsx)(t.Fragment,{children:Array.from({length:e}).map((e,r)=>(0,t.jsx)(`div`,{className:`input-visibility-bar h-2.5 rounded ${n===r+1?`w-1/2`:`w-full`}`},r))})}var Lr=function(e){return e.Horizontal=`horizontal`,e.Vertical=`vertical`,e}({}),Rr=`navbar-item-icon-selected-color`,zr=`navbar-item-icon-color`,Br=`py-xxs px-sm`,Vr=`p-sm`,Hr=`-top-3 right-3`,Ur=`-top-1 right-3`,Wr=`navbar-item-label-selected-color`,Gr=`navbar-item-label-color`;function Kr({icon:e,text:n,isSelected:r,hasBadge:i,onClick:a,isDisabled:o=!1,...s}){let c=r?Rr:zr,l=n?Br:Vr,u=r&&`bg-shader-primary-light-12 dark:bg-shader-primary-dark-12`,d=n?Hr:Ur,f=r?Wr:Gr,p=o?`cursor-not-allowed opacity-60`:`state-layer-secondary`;return(0,t.jsxs)(`div`,{onClick:e=>{if(o){e.preventDefault();return}a?.(e)},role:`button`,className:(0,P.default)(`inline-flex cursor-pointer flex-col items-center justify-center space-y-1`),...s,children:[(0,t.jsxs)(`div`,{className:(0,P.default)(`relative inline-flex rounded-full`,l,u,p),children:[(0,t.jsx)(`div`,{className:(0,P.default)(`inline-flex [&_svg]:h-6 [&_svg]:w-6`,c),children:e}),i&&(0,t.jsx)(`div`,{className:(0,P.default)(`absolute`,d),children:(0,t.jsx)(Ee,{type:M.PrimarySolid})})]}),n&&(0,t.jsx)(`span`,{className:(0,P.default)(`text-center text-label-md`,f),children:n})]})}function qr({icon:e,text:n,isSelected:r,hasBadge:i,onClick:a,isDisabled:o=!1,...s}){let c=r?Rr:zr,l=r&&`bg-shader-primary-light-12 dark:bg-shader-primary-dark-12`,u=r?Wr:Gr,d=o?`cursor-not-allowed opacity-60`:`state-layer-secondary cursor-pointer `;return(0,t.jsxs)(`div`,{onClick:e=>{if(o){e.preventDefault();return}a?.(e)},role:`button`,className:(0,P.default)(`relative inline-flex w-full flex-row items-center justify-between rounded-full p-sm`,l,d),...s,children:[(0,t.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,t.jsx)(`div`,{className:(0,P.default)(`inline-flex [&_svg]:h-6 [&_svg]:w-6`,c),children:e}),n&&(0,t.jsx)(`span`,{className:(0,P.default)(`text-center text-label-lg`,u),children:n})]}),i&&(0,t.jsx)(Ee,{type:M.PrimarySolid})]})}function Jr(e){let{type:n,text:r}=e;return n===Lr.Vertical&&r?(0,t.jsx)(qr,{...e}):(0,t.jsx)(Kr,{...e})}function Yr({title:e,subtitle:n,badgeType:r,badgeText:i,avatarContent:a,onOptionsClick:o,onCopy:s,copyText:c,onOpen:l,isCopyable:u,isExternal:d,isSelected:f,isActive:p,showSelected:m,badgeTooltipText:h,badgeTooltipPosition:g=V.Bottom}){let _=a;return(0,t.jsx)(`div`,{"data-testid":`account-tile`,className:(0,P.default)(`state-layer group relative flex w-full items-center justify-between space-x-3 rounded-xl px-sm py-xs hover:cursor-pointer`,p&&`state-active`),children:(0,t.jsxs)(`div`,{className:`flex w-full items-center gap-x-3`,children:[(0,t.jsx)(`div`,{children:(0,t.jsx)(_,{})}),(0,t.jsxs)(`div`,{className:`flex w-full min-w-0 flex-col items-start py-xs`,children:[(0,t.jsxs)(`div`,{className:`flex w-full min-w-0 items-center space-x-2`,children:[(0,t.jsx)(`p`,{className:`account-title-color min-w-0 max-w-full truncate font-inter text-title-md`,children:e}),i&&r?h?(0,t.jsx)(Et,{text:h,position:g,children:(0,t.jsx)(Ee,{type:r,label:i})}):(0,t.jsx)(Ee,{type:r,label:i}):null]}),(0,t.jsx)(un,{text:n,onCopySuccess:s,copyText:c,onOpen:l,isCopyable:u,isExternal:d})]}),(0,t.jsxs)(`div`,{className:`ml-auto flex items-center space-x-2 [&_button]:h-5 [&_button]:w-5 [&_svg]:h-5 [&_svg]:w-5`,children:[(0,t.jsx)(`div`,{className:`account-icon-color flex items-center space-x-2 [&_button:not(.locked)]:invisible group-hover:[&_button:not(.locked)]:visible`,children:o&&(0,t.jsx)(R,{onClick:o,"aria-label":`More options`,children:(0,t.jsx)($e,{})})}),m&&(0,t.jsx)(R,{"aria-label":`Checkmark`,children:f?(0,t.jsx)(We,{className:`account-check-active-color h-5 w-5`}):(0,t.jsx)(tt,{className:`account-check-inactive-color h-5 w-5`})})]})]})})}function Xr({children:e}){return(0,t.jsx)(`ul`,{className:`dropdown-bg dropdown-border-color list-none rounded-lg border py-xs`,children:e})}var Zr=function(e){return e.Top=`top`,e.Bottom=`bottom`,e}({});function Qr({children:e,hasLastBorderNoneClass:n,isContentCentered:r,colSpan:i}){return(0,t.jsx)(`td`,{colSpan:i,className:(0,P.default)(`table-cell-border-color h-14 border-b px-md`,{"last:border-none":n},{"flex items-center justify-center":r}),children:e})}function $r({children:e,supportingLabel:n}){return(0,t.jsxs)(`div`,{className:`flex flex-row items-baseline gap-1`,children:[(0,t.jsx)(`span`,{children:e}),n&&(0,t.jsx)(`span`,{className:`table-cell-supporting-label-color text-body-sm`,children:n})]})}function ei(){return(0,t.jsx)(Kt,{})}var ti=function(e){return e.Small=`small`,e.Default=`default`,e}({}),ni=(0,n.forwardRef)(({disabled:e,label:r,leadingIcon:i,supportingText:a,errorMessage:o,caption:s,options:c,placeholder:l,onValueChange:u,onOptionClick:d,value:f,dropdownPosition:p=Zr.Bottom,size:m=ti.Default,...h},g)=>{let[_,v]=(0,n.useState)(!1),y=w(f,c),b=(0,n.useRef)(null),x=y||l,S=m===ti.Small?`px-sm`:`px-md`,C=m===ti.Small?`text-body-md`:`text-body-lg`;(0,n.useEffect)(()=>{e&&_&&D()},[e,_]),(0,n.useEffect)(()=>{if(!_)return;let e=e=>{let t=e.target;b.current&&!b.current.contains(t)&&D()};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[_]);function w(e,t=[]){return t.find(t=>typeof t==`string`?t===e:t.id===e)??t[0]}function T(){v(e=>!e)}function E(e){D();let t=typeof e==`string`?e:e.id;d?.(t),e!==y&&u?.(t)}function D(){v(!1)}return(0,t.jsx)(zn,{label:r,caption:s,disabled:e,errorMessage:o,labelHtmlTag:Rn.Div,children:(0,t.jsxs)(`div`,{className:`relative flex w-full flex-col`,ref:b,children:[(0,t.jsxs)(R,{ref:g,onClick:T,disabled:e,"aria-expanded":_,"aria-haspopup":`listbox`,className:(0,P.default)(`select-container select-border-color focus-visible:enabled:select-border-focus-color active:enabled:select-border-focus-color group-[.errored]:select-border-error-color group-[.opened]:select-border-focus-color [&:is(:focus,_:focus-visible,_:active)]:enabled:select-border-focus-color hover:enabled:select-border-hover-color flex flex-row items-center gap-x-3 rounded-lg border py-sm disabled:cursor-not-allowed [&_svg]:h-5 [&_svg]:w-5`,S),...h,children:[i&&(0,t.jsx)(`span`,{className:`select-icon-color`,children:i}),(0,t.jsxs)(`div`,{className:`flex w-full flex-row items-baseline gap-x-3`,children:[x&&(0,t.jsx)(`div`,{className:(0,P.default)(`select-label-color block w-full text-start`,C),children:(0,t.jsx)(ri,{option:x})}),a&&(0,t.jsx)(`div`,{className:`ml-auto`,children:(0,t.jsx)(ln,{children:a})})]}),(0,t.jsx)(ot,{className:(0,P.default)(`select-icon-color transition-transform`,{" rotate-180":_})})]}),_&&(0,t.jsx)(`div`,{className:`fixed left-0 top-0 z-[49] bg-transparent`,onClick:D}),_&&(0,t.jsx)(`div`,{className:(0,P.default)(`absolute z-50 min-w-full animate-dropdown-show`,p===Zr.Top?`bottom-full origin-bottom`:`top-full origin-top`),children:(0,t.jsx)(Xr,{children:c.map(e=>(0,t.jsx)(Mt,{onClick:()=>E(e),hideBottomBorder:!0,children:(0,t.jsx)(ri,{option:e})},typeof e==`string`?e:e.id))})})]})})});function ri({option:e}){return typeof e==`string`?e:`renderLabel`in e?e.renderLabel():e.label}var ii=function(e){return e.Asc=`asc`,e.Desc=`desc`,e}({});function ai({label:e,columnKey:n,actionLeft:r,actionRight:i,hasSort:a,hasCheckbox:o,isChecked:s,isIndeterminate:c,isContentCentered:l,onSortClick:u,onCheckboxChange:d,sortOrder:f,...p}){let m=()=>{let e=f===ii.Asc?ii.Desc:ii.Asc;u&&u(n,e)},h=a?f===ii.Asc?(0,t.jsx)(at,{className:`shrink-0`}):f===ii.Desc?(0,t.jsx)(it,{className:`shrink-0`}):(0,t.jsx)(at,{className:`invisible shrink-0 group-hover:visible`}):null;return(0,t.jsx)(`th`,{onClick:a?m:void 0,className:(0,P.default)(`state-layer table-cell-border-color group relative h-14 border-b px-md after:pointer-events-none`,{"cursor-pointer":a}),"aria-sort":a?f===ii.Asc?`ascending`:f===ii.Desc?`descending`:`none`:void 0,...p,children:(0,t.jsxs)(`div`,{className:(0,P.default)(`flex flex-row items-center gap-1 [&_svg]:h-4 [&_svg]:w-4`,`table-header-text-color`,`text-label-lg`,{"justify-center":l}),children:[o?(0,t.jsx)(_t,{isChecked:s,isIndeterminate:c,onCheckedChange:d}):(0,t.jsxs)(t.Fragment,{children:[r,(0,t.jsx)(`span`,{className:(0,P.default)({"text-left":!l}),children:e})]}),h,i]})})}var J=function(e){return e.Outlined=`outlined`,e.Filled=`filled`,e}({}),oi={[J.Outlined]:`bg-transparent`,[J.Filled]:`search-bg-color-filled`},si={[J.Outlined]:`border-l border-r border-t search-border-color`,[J.Filled]:`search-bg-color-filled`},ci={[J.Outlined]:`rounded-b-3xl border-b border-l border-r search-border-color search-suggestion-bg-color`,[J.Filled]:`rounded-b-3xl search-bg-color-filled`};function li({searchValue:e,suggestions:r,onSearchValueChange:i,onSuggestionClick:a,placeholder:o,isLoading:s=!1,type:c=J.Outlined,renderSuggestion:l,...u}){let d=(0,n.useRef)(null),f=(0,n.useRef)(null),[p,m]=(0,n.useState)(!0),[h,g]=(0,n.useState)(null);function _(e){let t=e.target.value;i(t)}(0,n.useEffect)(()=>{let e=e=>{e.key===`Escape`&&(m(!1),d.current?.blur())};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[]),(0,n.useEffect)(()=>{let e=e=>{let t=d?.current;!t||t.contains(e?.target)||f.current?.contains(e.target)||m(!1)};return document.addEventListener(`click`,e,!0),document.addEventListener(`touchstart`,e,!0),()=>{document.removeEventListener(`click`,e,!0),document.removeEventListener(`touchstart`,e,!0)}},[d]);let v=p&&r&&r.length>0,y=v?(0,P.default)(`rounded-t-3xl border-b`,c===J.Outlined?`[&:not(.dark_*,.names_*)]:border-b-transparent`:`border-b-transparent`):c===J.Outlined?`rounded-3xl border-b`:`rounded-full`,b=si[c],x=oi[c],S=ci[c],C=e=>{a?.(e),i(``),m(!1),g(null),d.current?.blur()};return(0,t.jsxs)(`div`,{className:`relative w-full`,children:[(0,t.jsxs)(`div`,{className:(0,P.default)(`search-text-color flex items-center overflow-hidden px-md py-sm [&_svg]:h-6 [&_svg]:w-6`,y,b),children:[(0,t.jsx)(`input`,{ref:d,type:`text`,value:e,onChange:_,onKeyDown:e=>{r&&r?.length>0&&(e.key===`ArrowDown`?(e.preventDefault(),g(e=>e===null||e>=r.length-1?0:e+1)):e.key===`ArrowUp`?(e.preventDefault(),g(e=>e===null||e<=0?r.length-1:e-1)):e.key===`Enter`&&(e.preventDefault(),h!==null&&r[h]?C(r[h]):r.length===1&&C(r[0])))},onFocus:()=>m(!0),placeholder:o,className:(0,P.default)(`search-placeholder-color w-full flex-1 outline-none`,x),role:`combobox`,"aria-expanded":v,"aria-haspopup":`listbox`,"aria-autocomplete":`list`,...u}),(0,t.jsx)(rt,{})]}),v&&l&&(0,t.jsxs)(`div`,{ref:f,className:(0,P.default)(`absolute left-0 top-full flex w-full flex-col items-center overflow-hidden`,S),role:`listbox`,children:[(0,t.jsx)(Ct,{width:`w-11/12`}),s?(0,t.jsx)(`div`,{className:`px-md py-sm`,children:(0,t.jsx)(Ze,{className:`animate-spin`})}):r.map((e,n)=>(0,t.jsx)(`div`,{onClick:()=>C(e),onMouseEnter:()=>g(n),className:(0,P.default)(`w-full cursor-pointer px-md py-sm`,h===n?`search-selected-index-bg-color`:``),role:`option`,"aria-selected":h===n,"aria-label":e.label,children:l(e,n)},e.id))]})]})}var ui=function(e){return e.Default=`default`,e.Outlined=`outlined`,e.Filled=`filled`,e}({}),di=function(e){return e.Placeholder=`placeholder`,e.BgSolid=`bg-solid`,e.BgWhite=`bg-white`,e.BgTransparent=`bg-transparent`,e}({}),fi=function(e){return e.Rounded=`rounded`,e.SquareRounded=`square-rounded`,e}({}),pi=function(e){return e.Link=`link`,e.SupportingText=`supporting-text`,e.Button=`button`,e}({}),mi=`cursor-default opacity-40`,hi=`h-10 w-10`,gi={[fi.SquareRounded]:`${hi} rounded-md`,[fi.Rounded]:`${hi} rounded-full`},_i={[di.Placeholder]:``,[di.BgSolid]:`card-image-bg-solid`,[di.BgWhite]:`card-image-bg-white`,[di.BgTransparent]:``},vi={[ui.Default]:`border border-transparent`,[ui.Outlined]:`border border-shader-neutral-light-8 dark:border-shader-primary-dark-8 p-xs`,[ui.Filled]:`border border-transparent card-filled-bg p-xs`};function yi({isDisabled:e=!1,type:n=ui.Default,isHoverable:r,onClick:i,children:a,testId:o,...s}){function c(){e||i?.()}let l=!e&&i;return(0,t.jsx)(`div`,{onClick:c,role:l?`button`:void 0,className:(0,P.default)(`relative inline-flex w-full items-center gap-3 rounded-xl px-sm py-xs`,vi[n],{"state-layer":r||l,[mi]:e,"cursor-pointer":i}),"data-testid":o,...s,children:a})}function bi({type:e,onClick:n,subtitle:r,title:i,icon:a,iconAfterText:o,buttonType:s,buttonDisabled:c}){function l(e){n&&(e.stopPropagation(),n())}return e===pi.Link?(0,t.jsx)(`div`,{onClick:l,className:`card-action-link-color shrink-0 [&_svg]:h-5 [&_svg]:w-5`,children:a||(0,t.jsx)(Be,{})}):e===pi.SupportingText?(0,t.jsxs)(`div`,{className:`shrink-0 text-right`,children:[i&&(0,t.jsx)(`div`,{className:`card-action-title-color font-inter text-label-md`,children:i}),r&&(0,t.jsx)(`div`,{className:`card-action-subtitle-color flex flex-row justify-end font-inter text-label-sm`,children:r})]}):e===pi.Button?(0,t.jsx)(`div`,{className:`shrink-0`,children:(0,t.jsx)(L,{type:s||I.Outlined,size:F.Small,text:i,onClick:l,icon:a,iconAfterText:o,disabled:c})}):null}function xi({variant:e=fi.Rounded}){return e===fi.Rounded?(0,t.jsx)(Si,{}):(0,t.jsx)(Ci,{})}function Si(){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`40`,height:`40`,viewBox:`0 0 40 40`,fill:`none`,children:[(0,t.jsxs)(`g`,{"clip-path":`url(#clip0_880_55185)`,children:[(0,t.jsx)(`path`,{d:`M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z`,fill:`#5B9CFE`}),(0,t.jsx)(`path`,{d:`M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z`,fill:`url(#paint0_linear_880_55185)`,"fill-opacity":`0.2`}),(0,t.jsx)(`path`,{d:`M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z`,fill:`url(#paint1_linear_880_55185)`,"fill-opacity":`0.2`}),(0,t.jsx)(`path`,{d:`M0.5 20C0.5 9.23045 9.23045 0.5 20 0.5C30.7696 0.5 39.5 9.23045 39.5 20C39.5 30.7696 30.7696 39.5 20 39.5C9.23045 39.5 0.5 30.7696 0.5 20Z`,stroke:`#002F6D`,"stroke-opacity":`0.08`})]}),(0,t.jsxs)(`defs`,{children:[(0,t.jsxs)(`linearGradient`,{id:`paint0_linear_880_55185`,x1:`20`,y1:`0`,x2:`29.5238`,y2:`22.381`,gradientUnits:`userSpaceOnUse`,children:[(0,t.jsx)(`stop`,{offset:`0.990135`,"stop-opacity":`0`}),(0,t.jsx)(`stop`,{offset:`1`})]}),(0,t.jsxs)(`linearGradient`,{id:`paint1_linear_880_55185`,x1:`20`,y1:`0`,x2:`11.4286`,y2:`9.04762`,gradientUnits:`userSpaceOnUse`,children:[(0,t.jsx)(`stop`,{offset:`0.9999`,"stop-opacity":`0`}),(0,t.jsx)(`stop`,{offset:`1`})]}),(0,t.jsx)(`clipPath`,{id:`clip0_880_55185`,children:(0,t.jsx)(`path`,{d:`M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z`,fill:`white`})})]})]})}function Ci(){return(0,t.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`40`,height:`40`,viewBox:`0 0 40 40`,fill:`none`,children:[(0,t.jsxs)(`g`,{"clip-path":`url(#clip0_880_55190)`,children:[(0,t.jsx)(`path`,{d:`M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z`,fill:`#5B9CFE`}),(0,t.jsx)(`path`,{d:`M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z`,fill:`url(#paint0_linear_880_55190)`,"fill-opacity":`0.2`}),(0,t.jsx)(`path`,{d:`M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z`,fill:`url(#paint1_linear_880_55190)`,"fill-opacity":`0.2`}),(0,t.jsx)(`path`,{d:`M0.5 8C0.5 3.85786 3.85786 0.5 8 0.5H32C36.1421 0.5 39.5 3.85786 39.5 8V32C39.5 36.1421 36.1421 39.5 32 39.5H8C3.85786 39.5 0.5 36.1421 0.5 32V8Z`,stroke:`#002F6D`,"stroke-opacity":`0.08`})]}),(0,t.jsxs)(`defs`,{children:[(0,t.jsxs)(`linearGradient`,{id:`paint0_linear_880_55190`,x1:`20`,y1:`0`,x2:`29.5238`,y2:`22.381`,gradientUnits:`userSpaceOnUse`,children:[(0,t.jsx)(`stop`,{offset:`0.990135`,"stop-opacity":`0`}),(0,t.jsx)(`stop`,{offset:`1`})]}),(0,t.jsxs)(`linearGradient`,{id:`paint1_linear_880_55190`,x1:`20`,y1:`0`,x2:`11.4286`,y2:`9.04762`,gradientUnits:`userSpaceOnUse`,children:[(0,t.jsx)(`stop`,{offset:`0.9999`,"stop-opacity":`0`}),(0,t.jsx)(`stop`,{offset:`1`})]}),(0,t.jsx)(`clipPath`,{id:`clip0_880_55190`,children:(0,t.jsx)(`path`,{d:`M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z`,fill:`white`})})]})]})}function wi({type:e=di.BgSolid,shape:n=fi.Rounded,url:r,children:i}){return(0,t.jsxs)(`div`,{className:(0,P.default)(gi[n],_i[e],`flex shrink-0 items-center justify-center overflow-hidden`),children:[e===di.Placeholder&&!i&&(0,t.jsx)(xi,{variant:n}),r&&!i&&(0,t.jsx)(`img`,{src:r,className:(0,P.default)(gi[n],`object-cover`),alt:`Card Image`}),i]})}function Ti({title:e,subtitle:n,clickableAction:r,icon:i,isTextTruncated:a,tooltipText:o,tooltipPosition:s}){return(0,t.jsxs)(`div`,{className:(0,P.default)(`flex w-full flex-col`,{truncate:a}),children:[(0,t.jsxs)(`div`,{className:(0,P.default)(`flex flex-row items-center gap-x-xxs`,{"grow-1":a}),children:[(0,t.jsx)(`div`,{className:(0,P.default)(`card-body-title-color text-start font-inter text-title-md`,{truncate:a}),children:e}),o?(0,t.jsx)(Et,{text:o,position:s,children:i}):(0,t.jsx)(`div`,{className:`flex items-center`,children:i}),r&&(0,t.jsx)(`div`,{onClick:e=>{e?.stopPropagation()},className:`flex items-center`,children:r})]}),n&&(0,t.jsx)(`div`,{className:(0,P.default)(`card-body-subtitle-color text-start font-inter text-body-md`,{truncate:a}),children:n})]})}var Ei=function(e){return e.Default=`default`,e.Highlight=`highlight`,e.Secondary=`secondary`,e}({}),Y=function(e){return e.Default=`default`,e.Large=`large`,e}({}),Di={[Ei.Default]:`display-stats-bg-default`,[Ei.Highlight]:`display-stats-bg-highlight`,[Ei.Secondary]:`display-stats-bg-secondary`},Oi={[Ei.Default]:`display-stats-text-default`,[Ei.Highlight]:`display-stats-text-highlight`,[Ei.Secondary]:`display-stats-text-secondary`},ki={[Y.Default]:`gap-y-sm`,[Y.Large]:`gap-y-md`},Ai={[Y.Default]:`text-title-md`,[Y.Large]:`text-headline-sm`},ji={[Y.Default]:`text-label-md`,[Y.Large]:`text-label-lg`},Mi={[Y.Default]:`text-label-sm`,[Y.Large]:`text-label-md`};function Ni({label:e,tooltipPosition:n,tooltipText:r,value:i,supportingLabel:a,type:o=Ei.Default,size:s=Y.Default,icon:c,copyText:l,onCopySuccess:u,onCopyError:d}){let f=Di[o],p=ki[s],m=Oi[o],h=Ai[s],g=Mi[s],_=ji[s];async function v(e){if(navigator.clipboard&&l)try{await navigator.clipboard.writeText(l),u?.(e,l)}catch(e){console.error(`Failed to copy:`,e),d?.(e,l)}}return(0,t.jsxs)(`div`,{className:(0,P.default)(`flex h-full w-full flex-col justify-between rounded-2xl p-md--rs`,f,p,m),children:[(0,t.jsxs)(`div`,{className:(0,P.default)(`flex flex-row items-center`,{"w-full justify-between":c}),children:[(0,t.jsxs)(`div`,{className:`flex flex-row items-center gap-xxs`,children:[(0,t.jsx)(`span`,{className:(0,P.default)(g,`whitespace-pre-line`),children:e}),r&&(0,t.jsx)(Et,{text:r,position:n,children:(0,t.jsx)(Ye,{className:`opacity-40`})})]}),c&&(0,t.jsx)(`span`,{className:`display-stats-icon-color`,children:c})]}),(0,t.jsxs)(`div`,{className:`flex w-full flex-row items-baseline gap-xxs`,children:[(0,t.jsx)(`span`,{className:(0,P.default)(`min-w-0 break-all`,h),children:i}),a&&(0,t.jsx)(`span`,{className:(0,P.default)(`opacity-40`,_),children:a}),l&&(0,t.jsx)(`div`,{className:`self-center`,children:(0,t.jsx)(R,{onClick:v,"aria-label":`Copy to clipboard`,children:(0,t.jsx)(Ke,{className:`display-stats-copy-icon-color`})})})]})]})}function Pi({onIconClick:e,onClick:n,icon:r=(0,t.jsx)($e,{}),assetTitle:i,isHoverable:a=!0,...o}){let s=t=>{e?.(t),t?.stopPropagation()},c=!(`src`in o);return(0,t.jsxs)(`div`,{className:(0,P.default)(`relative aspect-square w-full overflow-hidden rounded-xl`,{"group cursor-pointer":a}),onClick:n,children:[!c&&(0,t.jsx)(fn,{...o}),c&&o.renderAsset,a&&(0,t.jsx)(`div`,{className:`absolute left-0 top-0 h-full w-full bg-cover bg-center bg-no-repeat group-hover:bg-shader-neutral-light-48 group-hover:transition group-hover:duration-300 group-hover:ease-in-out group-hover:names:bg-shader-inverted-light-48 group-hover:dark:bg-shader-primary-dark-48`}),a&&e&&(0,t.jsx)(R,{className:`visual-asset-icon-color absolute right-2 top-2 z-10 h-9 w-9 cursor-pointer rounded-full p-xs opacity-0 transition-opacity duration-300 group-hover:bg-shader-neutral-light-72 group-hover:opacity-100 [&_svg]:h-5 [&_svg]:w-5`,onClick:s,"aria-label":`More options`,children:r}),a&&i&&(0,t.jsx)(`div`,{className:`absolute bottom-0 w-full p-xs opacity-0 transition-opacity duration-300 group-hover:opacity-100`,children:(0,t.jsx)(`span`,{className:`visual-asset-title-color break-words text-title-md`,children:i})})]})}var Fi=`date-picker-trigger-border-color focus-visible:enabled:date-picker-trigger-border-focus-color hover:enabled:date-picker-trigger-border-hover-color group-[.errored]:date-picker-trigger-border-error-color flex w-full flex-row items-center gap-x-3 rounded-lg border px-md py-sm disabled:cursor-not-allowed [&_svg]:h-5 [&_svg]:w-5`,Ii=function(e){return e.DayMonthYear=`DD/MM/YYYY`,e.MonthDayYear=`MM/DD/YYYY`,e.YearMonthDay=`YYYY/MM/DD`,e}({}),Li=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],Ri=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`];function zi(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function X(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function Bi(e,t,n){let r=X(e);return!!(t&&r<X(t)||n&&r>X(n))}function Vi(e,t,n){return!!(t&&new Date(e,11,31)<X(t)||n&&new Date(e,0,1)>X(n))}function Hi(e,t){let n=String(e.getFullYear()),r=String(e.getMonth()+1).padStart(2,`0`),i=String(e.getDate()).padStart(2,`0`);switch(t){case Ii.DayMonthYear:return`${i}/${r}/${n}`;case Ii.MonthDayYear:return`${r}/${i}/${n}`;case Ii.YearMonthDay:return`${n}/${r}/${i}`;default:return`${i}/${r}/${n}`}}function Ui(e,t){let n=new Date(e,t,1).getDay(),r=[];for(let i=-n;i<42-n;i++)r.push(new Date(e,t,1+i));return r}function Wi(e){return Math.floor(e/10)*10}function Gi({value:e,onChange:r,minDate:i,maxDate:a,dateFormat:o=Ii.DayMonthYear,label:s,caption:c,errorMessage:l,disabled:u,placeholder:d=`Select a date`}){let f=X(new Date),[p,m]=(0,n.useState)(!1),[h,g]=(0,n.useState)(`days`),[_,v]=(0,n.useState)(()=>e?.getFullYear()??f.getFullYear()),[y,b]=(0,n.useState)(()=>e?.getMonth()??f.getMonth()),x=(0,n.useRef)(null);(0,n.useEffect)(()=>{e&&(v(e.getFullYear()),b(e.getMonth()))},[e]),(0,n.useEffect)(()=>{p||g(`days`)},[p]),(0,n.useEffect)(()=>{if(!p)return;function e(e){x.current&&!x.current.contains(e.target)&&m(!1)}return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[p]),(0,n.useEffect)(()=>{if(!p)return;function e(e){e.key===`Escape`&&m(!1)}return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[p]);function S(){u||m(e=>!e)}function C(){y===0?(b(11),v(e=>e-1)):b(e=>e-1)}function w(){y===11?(b(0),v(e=>e+1)):b(e=>e+1)}function T(){v(e=>e-10)}function E(){v(e=>e+10)}function D(){v(e=>Wi(e)-10)}function ee(){v(e=>Wi(e)+10)}function O(e){v(e),g(`days`)}function te(e){Bi(e,i,a)||(r?.(e),m(!1))}let ne=Ui(_,y),k=Wi(_),re=Array.from({length:12},(e,t)=>k+t),ie=!i||new Date(_-10,y+1,0)>=X(i),ae=!i||new Date(_,y,0)>=X(i),oe=!a||new Date(_,y+1,1)<=X(a),se=!a||new Date(_+10,y,1)<=X(a),ce=!i||new Date(k-1,11,31)>=X(i),A=!a||new Date(k+12,0,1)<=X(a);return(0,t.jsx)(zn,{label:s,caption:c,disabled:u,errorMessage:l,labelHtmlTag:Rn.Div,children:(0,t.jsxs)(`div`,{className:`relative w-full`,ref:x,children:[(0,t.jsxs)(R,{onClick:S,disabled:u,"aria-expanded":p,"aria-haspopup":`dialog`,"aria-label":e?Hi(e,o):d,className:(0,P.default)(Fi,{"date-picker-trigger-border-focus-color":p}),children:[(0,t.jsx)(`span`,{className:(0,P.default)(`block w-full text-start text-body-lg`,{"date-picker-trigger-placeholder-color":!e,"date-picker-trigger-text-color":!!e}),children:e?Hi(e,o):d}),(0,t.jsx)(`span`,{className:`input-icon-color flex-shrink-0`,children:(0,t.jsx)(He,{})})]}),p&&(0,t.jsx)(`div`,{role:`dialog`,"aria-label":`Date picker calendar`,className:(0,P.default)(`date-picker-calendar-bg date-picker-calendar-border-color absolute z-50 mt-1 rounded-lg border p-3 shadow-lg`,`w-[280px]`),children:h===`days`?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(`div`,{className:`mb-1 flex items-center justify-between`,children:[(0,t.jsx)(R,{onClick:T,disabled:!ie,"aria-label":`Previous 10 years`,className:`date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4`,children:(0,t.jsx)(qe,{})}),(0,t.jsxs)(`div`,{className:`flex flex-1 items-center justify-between px-1`,children:[(0,t.jsx)(R,{onClick:C,disabled:!ae,"aria-label":`Previous month`,className:`date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4`,children:(0,t.jsx)(ze,{})}),(0,t.jsxs)(R,{onClick:()=>g(`years`),"aria-label":`Select year`,className:`date-picker-header-text-color enabled:hover:date-picker-nav-bg-hover rounded-md px-1 py-0.5 text-label-lg font-semibold transition-colors hover:delay-75 shrink-0`,children:[Ri[y],` `,_]}),(0,t.jsx)(R,{onClick:w,disabled:!oe,"aria-label":`Next month`,className:`date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4`,children:(0,t.jsx)(Be,{})})]}),(0,t.jsx)(R,{onClick:E,disabled:!se,"aria-label":`Next 10 years`,className:`date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4`,children:(0,t.jsx)(Je,{})})]}),(0,t.jsx)(`div`,{className:`mb-1 grid grid-cols-7`,children:Li.map(e=>(0,t.jsx)(`div`,{className:`date-picker-weekday-text-color flex h-8 w-8 items-center justify-center text-label-sm font-medium`,children:e},e))}),(0,t.jsx)(`div`,{className:`grid grid-cols-7`,children:ne.map((n,r)=>{let o=n.getMonth()===y,s=!!e&&zi(n,e),c=zi(n,f),l=Bi(n,i,a),u=!o;return(0,t.jsx)(`div`,{className:`flex items-center justify-center p-0.5`,children:(0,t.jsx)(R,{onClick:()=>te(n),disabled:l||u,"aria-label":Hi(n,Ii.DayMonthYear),"aria-selected":s,"aria-disabled":l||u,className:(0,P.default)(`date-picker-day-text-color flex h-8 w-8 items-center justify-center rounded-full text-body-md transition-colors hover:delay-75`,{"date-picker-day-bg-selected date-picker-day-text-selected cursor-pointer":s,"date-picker-day-today-ring font-semibold":c&&!s,"date-picker-day-text-disabled cursor-not-allowed opacity-40":l&&!u,"date-picker-day-text-outside-month cursor-default opacity-30":u,"enabled:hover:date-picker-day-bg-hover enabled:hover:date-picker-day-text-color-hover cursor-pointer":!s&&!l&&!u}),children:n.getDate()})},r)})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[(0,t.jsx)(R,{onClick:D,disabled:!ce,"aria-label":`Previous decade`,className:`date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4`,children:(0,t.jsx)(qe,{})}),(0,t.jsxs)(`span`,{className:`date-picker-header-text-color text-label-lg font-semibold`,children:[k,` – `,k+12-1]}),(0,t.jsx)(R,{onClick:ee,disabled:!A,"aria-label":`Next decade`,className:`date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4`,children:(0,t.jsx)(Je,{})})]}),(0,t.jsx)(`div`,{className:`grid grid-cols-3 gap-1`,children:re.map(n=>{let r=e?.getFullYear()===n,o=f.getFullYear()===n,s=Vi(n,i,a);return(0,t.jsx)(R,{onClick:()=>O(n),disabled:s,"aria-label":String(n),"aria-selected":r,className:(0,P.default)(`date-picker-day-text-color flex w-full items-center justify-center rounded-lg py-2 text-body-md transition-colors hover:delay-75`,{"date-picker-day-bg-selected date-picker-day-text-selected cursor-pointer":r,"date-picker-day-today-ring font-semibold":o&&!r,"date-picker-day-text-disabled cursor-not-allowed opacity-40":s,"enabled:hover:date-picker-day-bg-hover enabled:hover:date-picker-day-text-color-hover cursor-pointer":!r&&!s}),children:n},n)})})]})})]})})}function Ki(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function qi(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function Ji(...e){return t=>e.forEach(e=>qi(e,t))}function Yi(...e){return p.useCallback(Ji(...e),e)}function Xi(e,n){let r=p.createContext(n);function i(e){let{children:n,...i}=e,a=p.useMemo(()=>i,Object.values(i));return(0,t.jsx)(r.Provider,{value:a,children:n})}function a(t){let i=p.useContext(r);if(i)return i;if(n!==void 0)return n;throw Error(`\`${t}\` must be used within \`${e}\``)}return i.displayName=e+`Provider`,[i,a]}function Zi(e,n=[]){let r=[];function i(n,i){let a=p.createContext(i),o=r.length;r=[...r,i];function s(n){let{scope:r,children:i,...s}=n,c=r?.[e][o]||a,l=p.useMemo(()=>s,Object.values(s));return(0,t.jsx)(c.Provider,{value:l,children:i})}function c(t,r){let s=r?.[e][o]||a,c=p.useContext(s);if(c)return c;if(i!==void 0)return i;throw Error(`\`${t}\` must be used within \`${n}\``)}return s.displayName=n+`Provider`,[s,c]}let a=()=>{let t=r.map(e=>p.createContext(e));return function(n){let r=n?.[e]||t;return p.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return a.scopeName=e,[i,Qi(a,...n)]}function Qi(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var $i=globalThis?.document?p.useLayoutEffect:()=>{},ea=p.useId||(()=>void 0),ta=0;function na(e){let[t,n]=p.useState(ea());return $i(()=>{e||n(e=>e??String(ta++))},[e]),e||(t?`radix-${t}`:``)}function ra(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...e)=>t.current?.(...e),[])}function ia({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=aa({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=ra(n);return[o,p.useCallback(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function aa({defaultProp:e,onChange:t}){let n=p.useState(e),[r]=n,i=p.useRef(r),a=ra(t);return p.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}var oa=p.forwardRef((e,n)=>{let{children:r,...i}=e,a=p.Children.toArray(r),o=a.find(la);if(o){let e=o.props.children,r=a.map(t=>t===o?p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null:t);return(0,t.jsx)(sa,{...i,ref:n,children:p.isValidElement(e)?p.cloneElement(e,void 0,r):null})}return(0,t.jsx)(sa,{...i,ref:n,children:r})});oa.displayName=`Slot`;var sa=p.forwardRef((e,t)=>{let{children:n,...r}=e;if(p.isValidElement(n)){let e=da(n);return p.cloneElement(n,{...ua(r,n.props),ref:t?Ji(t,e):e})}return p.Children.count(n)>1?p.Children.only(null):null});sa.displayName=`SlotClone`;var ca=({children:e})=>(0,t.jsx)(t.Fragment,{children:e});function la(e){return p.isValidElement(e)&&e.type===ca}function ua(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function da(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Z=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`span`,`svg`,`ul`].reduce((e,n)=>{let r=p.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?oa:n;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,t.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});function fa(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}function pa(e,t=globalThis?.document){let n=ra(e);p.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var ma=`DismissableLayer`,ha=`dismissableLayer.update`,ga=`dismissableLayer.pointerDownOutside`,_a=`dismissableLayer.focusOutside`,va,ya=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ba=p.forwardRef((e,n)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=p.useContext(ya),[d,f]=p.useState(null),m=d?.ownerDocument??globalThis?.document,[,h]=p.useState({}),g=Yi(n,e=>f(e)),_=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=_.indexOf(v),b=d?_.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,C=Ca(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));!S||n||(a?.(e),s?.(e),e.defaultPrevented||c?.())},m),w=wa(e=>{let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},m);return pa(e=>{b===u.layers.size-1&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},m),p.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(va=m.body.style.pointerEvents,m.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ta(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=va)}},[d,m,r,u]),p.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ta())},[d,u]),p.useEffect(()=>{let e=()=>h({});return document.addEventListener(ha,e),()=>document.removeEventListener(ha,e)},[]),(0,t.jsx)(Z.div,{...l,ref:g,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:Ki(e.onFocusCapture,w.onFocusCapture),onBlurCapture:Ki(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:Ki(e.onPointerDownCapture,C.onPointerDownCapture)})});ba.displayName=ma;var xa=`DismissableLayerBranch`,Sa=p.forwardRef((e,n)=>{let r=p.useContext(ya),i=p.useRef(null),a=Yi(n,i);return p.useEffect(()=>{let e=i.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,t.jsx)(Z.div,{...e,ref:a})});Sa.displayName=xa;function Ca(e,t=globalThis?.document){let n=ra(e),r=p.useRef(!1),i=p.useRef(()=>{});return p.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){Ea(ga,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function wa(e,t=globalThis?.document){let n=ra(e),r=p.useRef(!1);return p.useEffect(()=>{let e=e=>{e.target&&!r.current&&Ea(_a,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ta(){let e=new CustomEvent(ha);document.dispatchEvent(e)}function Ea(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?fa(i,a):i.dispatchEvent(a)}var Da=`focusScope.autoFocusOnMount`,Oa=`focusScope.autoFocusOnUnmount`,ka={bubbles:!1,cancelable:!0},Aa=`FocusScope`,ja=p.forwardRef((e,n)=>{let{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=p.useState(null),u=ra(a),d=ra(o),f=p.useRef(null),m=Yi(n,e=>l(e)),h=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(i){let e=function(e){if(h.paused||!c)return;let t=e.target;c.contains(t)?f.current=t:Ra(f.current,{select:!0})},t=function(e){if(h.paused||!c)return;let t=e.relatedTarget;t!==null&&(c.contains(t)||Ra(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Ra(c)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[i,c,h.paused]),p.useEffect(()=>{if(c){za.add(h);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(Da,ka);c.addEventListener(Da,u),c.dispatchEvent(t),t.defaultPrevented||(Ma(Ha(Pa(c)),{select:!0}),document.activeElement===e&&Ra(c))}return()=>{c.removeEventListener(Da,u),setTimeout(()=>{let t=new CustomEvent(Oa,ka);c.addEventListener(Oa,d),c.dispatchEvent(t),t.defaultPrevented||Ra(e??document.body,{select:!0}),c.removeEventListener(Oa,d),za.remove(h)},0)}}},[c,u,d,h]);let g=p.useCallback(e=>{if(!r&&!i||h.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,a]=Na(t);i&&a?!e.shiftKey&&n===a?(e.preventDefault(),r&&Ra(i,{select:!0})):e.shiftKey&&n===i&&(e.preventDefault(),r&&Ra(a,{select:!0})):n===t&&e.preventDefault()}},[r,i,h.paused]);return(0,t.jsx)(Z.div,{tabIndex:-1,...s,ref:m,onKeyDown:g})});ja.displayName=Aa;function Ma(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Ra(r,{select:t}),document.activeElement!==n)return}function Na(e){let t=Pa(e);return[Fa(t,e),Fa(t.reverse(),e)]}function Pa(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fa(e,t){for(let n of e)if(!Ia(n,{upTo:t}))return n}function Ia(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function La(e){return e instanceof HTMLInputElement&&`select`in e}function Ra(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&La(e)&&t&&e.select()}}var za=Ba();function Ba(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Va(e,t),e.unshift(t)},remove(t){e=Va(e,t),e[0]?.resume()}}}function Va(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ha(e){return e.filter(e=>e.tagName!==`A`)}var Ua=`Portal`,Wa=p.forwardRef((e,n)=>{let{container:i,...a}=e,[o,s]=p.useState(!1);$i(()=>s(!0),[]);let c=i||o&&globalThis?.document?.body;return c?r.default.createPortal((0,t.jsx)(Z.div,{...a,ref:n}),c):null});Wa.displayName=Ua;function Ga(e,t){return p.useReducer((e,n)=>t[e][n]??e,e)}var Ka=e=>{let{present:t,children:n}=e,r=qa(t),i=typeof n==`function`?n({present:r.isPresent}):p.Children.only(n),a=Yi(r.ref,Ya(i));return typeof n==`function`||r.isPresent?p.cloneElement(i,{ref:a}):null};Ka.displayName=`Presence`;function qa(e){let[t,n]=p.useState(),i=p.useRef({}),a=p.useRef(e),o=p.useRef(`none`),[s,c]=Ga(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return p.useEffect(()=>{let e=Ja(i.current);o.current=s===`mounted`?e:`none`},[s]),$i(()=>{let t=i.current,n=a.current;if(n!==e){let r=o.current,i=Ja(t);e?c(`MOUNT`):i===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),a.current=e}},[e,c]),$i(()=>{if(t){let e=e=>{let n=Ja(i.current).includes(e.animationName);e.target===t&&n&&r.flushSync(()=>c(`ANIMATION_END`))},n=e=>{e.target===t&&(o.current=Ja(i.current))};return t.addEventListener(`animationstart`,n),t.addEventListener(`animationcancel`,e),t.addEventListener(`animationend`,e),()=>{t.removeEventListener(`animationstart`,n),t.removeEventListener(`animationcancel`,e),t.removeEventListener(`animationend`,e)}}else c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:p.useCallback(e=>{e&&(i.current=getComputedStyle(e)),n(e)},[])}}function Ja(e){return e?.animationName||`none`}function Ya(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xa=0;function Za(){p.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Qa()),document.body.insertAdjacentElement(`beforeend`,e[1]??Qa()),Xa++,()=>{Xa===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),Xa--}},[])}function Qa(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.cssText=`outline: none; opacity: 0; position: fixed; pointer-events: none`,e}var Q=function(){return Q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Q.apply(this,arguments)};function $a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function eo(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var to=`right-scroll-bar-position`,no=`width-before-scroll-bar`,ro=`with-scroll-bars-hidden`,io=`--removed-body-scroll-bar-size`;function ao(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function oo(e,t){var r=(0,n.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}})[0];return r.callback=t,r.facade}var so=typeof window<`u`?n.useLayoutEffect:n.useEffect,co=new WeakMap;function lo(e,t){var n=oo(t||null,function(t){return e.forEach(function(e){return ao(e,t)})});return so(function(){var t=co.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||ao(e,null)}),i.forEach(function(e){r.has(e)||ao(e,a)})}co.set(n,e)},[e]),n}function uo(e){return e}function fo(e,t){t===void 0&&(t=uo);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function po(e){e===void 0&&(e={});var t=fo(null);return t.options=Q({async:!0,ssr:!1},e),t}var mo=function(e){var t=e.sideCar,r=$a(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw Error(`Sidecar medium not found`);return n.createElement(i,Q({},r))};mo.isSideCarExport=!0;function ho(e,t){return e.useMedium(t),mo}var go=po(),_o=function(){},vo=n.forwardRef(function(e,t){var r=n.useRef(null),i=n.useState({onScrollCapture:_o,onWheelCapture:_o,onTouchMoveCapture:_o}),a=i[0],o=i[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=$a(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=p,S=lo([r,t]),C=Q(Q({},b),a);return n.createElement(n.Fragment,null,d&&n.createElement(x,{sideCar:go,removeScrollBar:u,shards:f,noIsolation:m,inert:h,setCallbacks:o,allowPinchZoom:!!g,lockRef:r,gapMode:y}),s?n.cloneElement(n.Children.only(c),Q(Q({},C),{ref:S})):n.createElement(v,Q({},C,{className:l,ref:S}),c))});vo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},vo.classNames={fullWidth:no,zeroRight:to};var yo,bo=function(){if(yo)return yo;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function xo(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=bo();return t&&e.setAttribute(`nonce`,t),e}function So(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Co(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var wo=function(){var e=0,t=null;return{add:function(n){e==0&&(t=xo())&&(So(t,n),Co(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},To=function(){var e=wo();return function(t,r){n.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Eo=function(){var e=To();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Do={left:0,top:0,right:0,gap:0},Oo=function(e){return parseInt(e||``,10)||0},ko=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Oo(n),Oo(r),Oo(i)]},Ao=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Do;var t=ko(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},jo=Eo(),Mo=`data-scroll-locked`,No=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
18
|
+
.${ro} {
|
|
19
19
|
overflow: hidden ${r};
|
|
20
20
|
padding-right: ${s}px ${r};
|
|
21
21
|
}
|
|
22
|
-
body[${
|
|
22
|
+
body[${Mo}] {
|
|
23
23
|
overflow: hidden ${r};
|
|
24
24
|
overscroll-behavior: contain;
|
|
25
25
|
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
@@ -32,31 +32,31 @@
|
|
|
32
32
|
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
.${
|
|
35
|
+
.${to} {
|
|
36
36
|
right: ${s}px ${r};
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.${
|
|
39
|
+
.${no} {
|
|
40
40
|
margin-right: ${s}px ${r};
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.${
|
|
43
|
+
.${to} .${to} {
|
|
44
44
|
right: 0 ${r};
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
.${
|
|
47
|
+
.${no} .${no} {
|
|
48
48
|
margin-right: 0 ${r};
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
body[${
|
|
52
|
-
${
|
|
51
|
+
body[${Mo}] {
|
|
52
|
+
${io}: ${s}px;
|
|
53
53
|
}
|
|
54
|
-
`},
|
|
54
|
+
`},Po=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Fo=function(){n.useEffect(function(){return document.body.setAttribute(Mo,(Po()+1).toString()),function(){var e=Po()-1;e<=0?document.body.removeAttribute(Mo):document.body.setAttribute(Mo,e.toString())}},[])},Io=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?`margin`:i;Fo();var o=n.useMemo(function(){return Ao(a)},[a]);return n.createElement(jo,{styles:No(o,!t,a,r?``:`!important`)})},Lo=!1;if(typeof window<`u`)try{var Ro=Object.defineProperty({},`passive`,{get:function(){return Lo=!0,!0}});window.addEventListener(`test`,Ro,Ro),window.removeEventListener(`test`,Ro,Ro)}catch{Lo=!1}var zo=Lo?{passive:!1}:!1,Bo=function(e){return e.tagName===`TEXTAREA`},Vo=function(e,t){var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Bo(e)&&n[t]===`visible`)},Ho=function(e){return Vo(e,`overflowY`)},Uo=function(e){return Vo(e,`overflowX`)},Wo=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),qo(e,r)){var i=Jo(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Go=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Ko=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},qo=function(e,t){return e===`v`?Ho(t):Uo(t)},Jo=function(e,t){return e===`v`?Go(t):Ko(t)},Yo=function(e,t){return e===`h`&&t===`rtl`?-1:1},Xo=function(e,t,n,r,i){var a=Yo(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{var p=Jo(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&qo(e,s)&&(d+=h,f+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Zo=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qo=function(e){return[e.deltaX,e.deltaY]},$o=function(e){return e&&`current`in e?e.current:e},es=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ts=function(e){return`
|
|
55
55
|
.block-interactivity-${e} {pointer-events: none;}
|
|
56
56
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
57
|
-
`},
|
|
57
|
+
`},ns=0,rs=[];function is(e){var t=n.useRef([]),r=n.useRef([0,0]),i=n.useRef(),a=n.useState(ns++)[0],o=n.useState(Eo)[0],s=n.useRef(e);n.useEffect(function(){s.current=e},[e]),n.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${a}`);var t=eo([e.lockRef.current],(e.shards||[]).map($o),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${a}`)}),function(){document.body.classList.remove(`block-interactivity-${a}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${a}`)})}}},[e.inert,e.lockRef.current,e.shards]);var c=n.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2)return!s.current.allowPinchZoom;var n=Zo(e),a=r.current,o=`deltaX`in e?e.deltaX:a[0]-n[0],c=`deltaY`in e?e.deltaY:a[1]-n[1],l,u=e.target,d=Math.abs(o)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=Wo(d,u);if(!f)return!0;if(f?l=d:(l=d===`v`?`h`:`v`,f=Wo(d,u)),!f)return!1;if(!i.current&&`changedTouches`in e&&(o||c)&&(i.current=l),!l)return!0;var p=i.current||l;return Xo(p,t,e,p===`h`?o:c,!0)},[]),l=n.useCallback(function(e){var n=e;if(!(!rs.length||rs[rs.length-1]!==o)){var r=`deltaY`in n?Qo(n):Zo(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&es(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var a=(s.current.shards||[]).map($o).filter(Boolean).filter(function(e){return e.contains(n.target)});(a.length>0?c(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=n.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:as(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=n.useCallback(function(e){r.current=Zo(e),i.current=void 0},[]),f=n.useCallback(function(t){u(t.type,Qo(t),t.target,c(t,e.lockRef.current))},[]),p=n.useCallback(function(t){u(t.type,Zo(t),t.target,c(t,e.lockRef.current))},[]);n.useEffect(function(){return rs.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,zo),document.addEventListener(`touchmove`,l,zo),document.addEventListener(`touchstart`,d,zo),function(){rs=rs.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,l,zo),document.removeEventListener(`touchmove`,l,zo),document.removeEventListener(`touchstart`,d,zo)}},[]);var m=e.removeScrollBar,h=e.inert;return n.createElement(n.Fragment,null,h?n.createElement(o,{styles:ts(a)}):null,m?n.createElement(Io,{gapMode:e.gapMode}):null)}function as(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var os=ho(go,is),ss=n.forwardRef(function(e,t){return n.createElement(vo,Q({},e,{ref:t,sideCar:os}))});ss.classNames=vo.classNames;var cs=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},ls=new WeakMap,us=new WeakMap,ds={},fs=0,ps=function(e){return e&&(e.host||ps(e.parentNode))},ms=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=ps(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},hs=function(e,t,n,r){var i=ms(t,Array.isArray(e)?e:[e]);ds[n]||(ds[n]=new WeakMap);var a=ds[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(ls.get(e)||0)+1,l=(a.get(e)||0)+1;ls.set(e,c),a.set(e,l),o.push(e),c===1&&i&&us.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),fs++,function(){o.forEach(function(e){var t=ls.get(e)-1,i=a.get(e)-1;ls.set(e,t),a.set(e,i),t||(us.has(e)||e.removeAttribute(r),us.delete(e)),i||e.removeAttribute(n)}),fs--,fs||(ls=new WeakMap,ls=new WeakMap,us=new WeakMap,ds={})}},gs=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||cs(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live]`))),hs(r,i,n,`aria-hidden`)):function(){return null}},_s=`Dialog`,[vs,ys]=Zi(_s),[bs,$]=vs(_s),xs=e=>{let{__scopeDialog:n,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=p.useRef(null),l=p.useRef(null),[u=!1,d]=ia({prop:i,defaultProp:a,onChange:o});return(0,t.jsx)(bs,{scope:n,triggerRef:c,contentRef:l,contentId:na(),titleId:na(),descriptionId:na(),open:u,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(e=>!e),[d]),modal:s,children:r})};xs.displayName=_s;var Ss=`DialogTrigger`,Cs=p.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,a=$(Ss,r),o=Yi(n,a.triggerRef);return(0,t.jsx)(Z.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Hs(a.open),...i,ref:o,onClick:Ki(e.onClick,a.onOpenToggle)})});Cs.displayName=Ss;var ws=`DialogPortal`,[Ts,Es]=vs(ws,{forceMount:void 0}),Ds=e=>{let{__scopeDialog:n,forceMount:r,children:i,container:a}=e,o=$(ws,n);return(0,t.jsx)(Ts,{scope:n,forceMount:r,children:p.Children.map(i,e=>(0,t.jsx)(Ka,{present:r||o.open,children:(0,t.jsx)(Wa,{asChild:!0,container:a,children:e})}))})};Ds.displayName=ws;var Os=`DialogOverlay`,ks=p.forwardRef((e,n)=>{let r=Es(Os,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,o=$(Os,e.__scopeDialog);return o.modal?(0,t.jsx)(Ka,{present:i||o.open,children:(0,t.jsx)(As,{...a,ref:n})}):null});ks.displayName=Os;var As=p.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,a=$(Os,r);return(0,t.jsx)(ss,{as:oa,allowPinchZoom:!0,shards:[a.contentRef],children:(0,t.jsx)(Z.div,{"data-state":Hs(a.open),...i,ref:n,style:{pointerEvents:`auto`,...i.style}})})}),js=`DialogContent`,Ms=p.forwardRef((e,n)=>{let r=Es(js,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,o=$(js,e.__scopeDialog);return(0,t.jsx)(Ka,{present:i||o.open,children:o.modal?(0,t.jsx)(Ns,{...a,ref:n}):(0,t.jsx)(Ps,{...a,ref:n})})});Ms.displayName=js;var Ns=p.forwardRef((e,n)=>{let r=$(js,e.__scopeDialog),i=p.useRef(null),a=Yi(n,r.contentRef,i);return p.useEffect(()=>{let e=i.current;if(e)return gs(e)},[]),(0,t.jsx)(Fs,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ki(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ki(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:Ki(e.onFocusOutside,e=>e.preventDefault())})}),Ps=p.forwardRef((e,n)=>{let r=$(js,e.__scopeDialog),i=p.useRef(!1),a=p.useRef(!1);return(0,t.jsx)(Fs,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,t.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&a.current&&t.preventDefault()}})}),Fs=p.forwardRef((e,n)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,...s}=e,c=$(js,r),l=p.useRef(null),u=Yi(n,l);return Za(),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ja,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,t.jsx)(ba,{role:`dialog`,id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Hs(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Ks,{titleId:c.titleId}),(0,t.jsx)(Js,{contentRef:l,descriptionId:c.descriptionId})]})]})}),Is=`DialogTitle`,Ls=p.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,a=$(Is,r);return(0,t.jsx)(Z.h2,{id:a.titleId,...i,ref:n})});Ls.displayName=Is;var Rs=`DialogDescription`,zs=p.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,a=$(Rs,r);return(0,t.jsx)(Z.p,{id:a.descriptionId,...i,ref:n})});zs.displayName=Rs;var Bs=`DialogClose`,Vs=p.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,a=$(Bs,r);return(0,t.jsx)(Z.button,{type:`button`,...i,ref:n,onClick:Ki(e.onClick,()=>a.onOpenChange(!1))})});Vs.displayName=Bs;function Hs(e){return e?`open`:`closed`}var Us=`DialogTitleWarning`,[Ws,Gs]=Xi(Us,{contentName:js,titleName:Is,docsSlug:`dialog`}),Ks=({titleId:e})=>{let t=Gs(Us),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
58
58
|
|
|
59
59
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
60
60
|
|
|
61
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Vs=`DialogDescriptionWarning`,Hs=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zs(Vs).contentName}}.`;return p.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Us=hs,Ws=_s,Gs=xs,Ks=Cs,qs=Es,Js=js,Ys=Ns,Xs=Fs,Zs=`VisuallyHidden`,Qs=p.forwardRef((e,n)=>(0,t.jsx)(Z.span,{...e,ref:n,style:{position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`,...e.style}}));Qs.displayName=Zs;var $s=Qs,ec=function(e){return e.Center=`center`,e.Right=`right`,e}({}),tc=({open:e,onOpenChange:n,children:r,...i})=>(0,t.jsx)(Us,{open:e,onOpenChange:e=>{let t=document.querySelector(`.toast-layer:hover`);!e&&t||n?.(e)},...i,children:r}),nc=Ws,rc=Xs,ic=n.forwardRef(({showCloseIcon:e,position:n,...r},i)=>(0,t.jsx)(Ks,{ref:i,className:(0,N.default)(`dialog-overlay-bg absolute h-full w-full backdrop-blur-md names:backdrop-blur-lg`,`data-[state=open]:animate-dialog-overlay-show`),...r,children:(0,t.jsx)(rc,{className:(0,N.default)(`fixed right-3 top-3`,{hidden:!e}),"aria-label":`Close`,children:(0,t.jsx)(ze,{className:`button-text-color-neutral`})})}));ic.displayName=Ks.displayName;var ac=n.forwardRef((e,n)=>(0,t.jsx)(`div`,{className:(0,N.default)(`inset-0 z-[99999]`,e.isFixedPosition?`fixed`:`absolute`),ref:n,children:(0,t.jsx)(`div`,{className:`relative h-full w-full`,children:e.children})})),oc=n.forwardRef(({className:e,containerId:r,showCloseOnOverlay:i,children:a,position:o=ec.Center,customWidth:s=`w-80 max-w-[85vw] md:w-96`,isFixedPosition:c=o===ec.Right,...l},u)=>{let[d,f]=(0,n.useState)(void 0);(0,n.useEffect)(()=>{f((r?document.getElementById(r):void 0)??void 0)},[r]);let p=o===ec.Right?`overflow-hidden right-0 h-screen top-0 w-full`:`overflow-y-auto overflow-x-hidden left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-xl`,m=o===ec.Right?`md:w-96 max-w-[500px]`:s,h=o===ec.Right?`h-screen`:`max-h-[90vh] h-full`;return(0,t.jsx)(Gs,{container:d,children:(0,t.jsxs)(ac,{isFixedPosition:c,children:[(0,t.jsx)(ic,{showCloseIcon:i,position:o}),(0,t.jsxs)(qs,{ref:u,className:(0,N.default)(`dialog-content-bg dialog-outline absolute flex flex-col justify-center`,p,m,o===ec.Right?`data-[state=open]:animate-dialog-panel-show`:`data-[state=open]:animate-dialog-content-show`),...l,children:[(0,t.jsxs)($s,{children:[(0,t.jsx)(Js,{}),(0,t.jsx)(Ys,{})]}),(0,t.jsx)(`div`,{className:(0,N.default)(`flex flex-1 flex-col`,h),children:a})]})]})})});oc.displayName=qs.displayName;var sc=n.forwardRef((e,n)=>(0,t.jsx)(Js,{ref:n,className:`dialog-title-color font-inter text-title-lg`,...e}));sc.displayName=Js.displayName;var cc=n.forwardRef((e,n)=>(0,t.jsx)(`div`,{ref:n,className:`dialog-body-color flex-1 overflow-y-auto p-md--rs text-body-sm`,...e}));cc.displayName=`DialogBody`;var lc=(0,n.createContext)({isHeaderChecked:!1,selectedRowIndexes:new Set,isHeaderIndeterminate:!1}),uc=()=>(0,n.useContext)(lc);function dc({children:e,selectedRowIndexes:n,rowIndexes:r,...i}){let a=r.length===n.size,o=!a&&n.size>0;return(0,t.jsx)(lc.Provider,{value:{...i,isHeaderChecked:a,selectedRowIndexes:n,isHeaderIndeterminate:o},children:e})}function fc({paginationOptions:e,action:n,supportingLabel:r,selectedRowIndexes:i=new Set,rowIndexes:a,children:o,pageSizeSelector:s,heightFull:c=!1}){return(0,t.jsx)(dc,{selectedRowIndexes:i,rowIndexes:a,children:(0,t.jsxs)(`div`,{className:(0,N.default)(`w-full`,{"h-full":c}),children:[(0,t.jsx)(`div`,{className:(0,N.default)(`overflow-auto`,{"h-full":c}),children:(0,t.jsx)(`table`,{className:(0,N.default)(`w-full table-auto`,{"h-full":c}),children:o})}),(0,t.jsxs)(`div`,{className:(0,N.default)(`flex w-full items-center gap-sm pt-md`,{hidden:!r&&!e&&!n,"flex-col justify-between sm:flex-row":e,"justify-end":!e&&n}),children:[(e||n)&&(0,t.jsxs)(`div`,{className:`flex gap-2`,children:[e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(R,{type:F.Secondary,size:P.Small,icon:(0,t.jsx)(Ve,{}),disabled:!e.hasFirst,onClick:e.onFirst,"aria-label":`First page`}),(0,t.jsx)(R,{type:F.Secondary,size:P.Small,icon:(0,t.jsx)(Ne,{}),disabled:!e.hasPrev,onClick:e.onPrev,"aria-label":`Previous page`}),(0,t.jsx)(R,{type:F.Secondary,size:P.Small,icon:(0,t.jsx)(Pe,{}),disabled:!e.hasNext,onClick:e.onNext,"aria-label":`Next page`}),(0,t.jsx)(R,{type:F.Secondary,size:P.Small,icon:(0,t.jsx)(He,{}),disabled:!e.hasLast,onClick:e.onLast,"aria-label":`Last page`})]}),n&&n]}),r||s?(0,t.jsxs)(`div`,{className:`flex flex-row items-center gap-x-sm`,children:[r&&(0,t.jsx)(`span`,{className:`table-text-color text-label-md`,children:r}),s&&(0,t.jsx)(`div`,{className:`ml-2`,children:s})]}):null]})]})})}function pc(e){return(0,t.jsx)(R,{type:F.Secondary,size:P.Small,...e})}function mc({children:e}){return(0,t.jsx)(`thead`,{children:e})}function hc({children:e,leading:n,onClick:r}){return(0,t.jsxs)(`tr`,{onClick:r,className:(0,N.default)({"cursor-pointer hover:bg-shader-neutral-light-8 dark:hover:bg-shader-neutral-dark-8":r}),children:[n,e]})}var gc=`table-text-color`,_c=`text-body-md`;function vc({children:e}){return(0,t.jsx)(`tbody`,{className:(0,N.default)(gc,_c),children:e})}function yc({rowIndex:e,onCheckboxChange:n,isDisabled:r}){let{selectedRowIndexes:i}=uc();return(0,t.jsx)(Kr,{isContentCentered:!0,children:(0,t.jsx)(dt,{onCheckedChange:e=>{n(e.target.checked)},isChecked:i.has(e),isDisabled:r})})}function bc({onCheckboxChange:e}){let{isHeaderChecked:n,isHeaderIndeterminate:r}=uc();return(0,t.jsx)($r,{isContentCentered:!0,hasCheckbox:!0,onCheckboxChange:t=>{e(t.target.checked)},isChecked:n,columnKey:1,isIndeterminate:r})}function xc({items:e,activeId:n,onClickItem:r,isCollapsible:i=!1,onToggleNavbar:a}){return(0,t.jsxs)(`div`,{className:(0,N.default)(`flex h-fit w-full`,{"flex-col px-md py-xs sm:h-full sm:w-auto sm:px-none sm:py-xl":i}),children:[i&&(0,t.jsxs)(`div`,{className:`flex w-full items-center justify-between sm:mb-[48px] sm:flex-col`,children:[(0,t.jsx)(`div`,{className:`flex justify-center [&_svg]:h-[38px] [&_svg]:w-[38px]`,children:(0,t.jsx)(We,{className:`navbar-icon-color`})}),(0,t.jsx)(`div`,{className:`state-layer navbar-icon-color relative rounded-full p-xs hover:cursor-pointer sm:hidden [&_svg]:h-6 [&_svg]:w-6`,onClick:a,role:`button`,"aria-label":`Toggle menu`,children:(0,t.jsx)(Ge,{})})]}),(0,t.jsx)(`div`,{className:(0,N.default)({"flex w-full justify-between px-sm py-xxs":!i,"hidden sm:flex sm:flex-col sm:gap-2":i}),children:e.map(e=>(0,t.jsx)(`div`,{className:(0,N.default)(`flex items-center`,{"px-xs py-xxs":!i,"py-xxs pl-xs pr-sm":i}),"data-testid":`nav-${e.id}`,children:(0,t.jsx)(Hr,{...e,isSelected:e.id===n,onClick:t=>{e.onClick&&e.onClick(t),e.isDisabled||r(e.id)}})},e.id))})]})}function Sc({items:e,activeId:n,onClickItem:r,isOpen:i,onToggleNavbar:a}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(`div`,{onClick:a,className:(0,N.default)(`duration-800 transition-opacity ease-out`,{"opacity-1 fixed left-0 top-0 h-full w-full bg-shader-neutral-light-72":i,"-translate-x-full opacity-0":!i})}),(0,t.jsx)(`div`,{className:(0,N.default)(`z-999 rounded-tb-3xl navbar-slideout-bg fixed left-0 top-0 h-full w-11/12 rounded-tr-3xl px-lg py-lg transition-transform duration-300 ease-out`,{"translate-x-0":i,"-translate-x-full":!i}),children:(0,t.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,t.jsx)(`div`,{className:`[&_svg]:h-5 [&_svg]:w-5`,children:(0,t.jsx)(R,{type:F.Ghost,onClick:a,icon:(0,t.jsx)(je,{}),"aria-label":`Close menu`})}),e.map(e=>(0,t.jsx)(Hr,{...e,type:jr.Vertical,isSelected:e.id===n,onClick:()=>{r(e.id),a&&a()}},e.id))]})})]})}function Cc({onToggle:e,children:n,isExpanded:r,hideArrow:i,disableStateLayer:a=!1}){return(0,t.jsxs)(`div`,{onClick:e,role:`button`,"aria-expanded":r,className:(0,N.default)(`relative flex cursor-pointer items-center justify-between gap-md overflow-hidden rounded-xl py-sm--rs`,!a&&`state-layer`,{"pr-md--rs":!i}),children:[n,!i&&(0,t.jsx)(`div`,{className:`[&_svg]:h-5 [&_svg]:w-5`,children:(0,t.jsx)(R,{type:F.Ghost,icon:(0,t.jsx)(Me,{className:(0,N.default)(`accordion-icon-color transition-transform ease-linear`,{"rotate-180":r})})})})]})}function wc({isExpanded:e,children:n}){return(0,t.jsx)(`div`,{className:(0,N.default)({hidden:!e}),children:n})}function Tc({children:e,hideBorder:n}){return(0,t.jsx)(`div`,{className:(0,N.default)(`accordion-bg rounded-xl`,{"accordion-border-color border":!n}),children:e})}e.Accordion=Tc,e.AccordionContent=wc,e.AccordionHeader=Cc,e.Account=Ur,e.Address=rn,e.AssetMediaRenderer=on,e.Badge=Se,e.BadgeSize=ve,e.BadgeType=M,e.Button=R,e.ButtonHtmlType=I,e.ButtonPill=Ae,e.ButtonSegment=ut,e.ButtonSegmentType=lt,e.ButtonSize=P,e.ButtonType=F,e.ButtonUnstyled=z,e.Card=pi,e.CardAction=mi,e.CardActionType=si,e.CardBody=yi,e.CardImage=vi,e.CardType=ii,e.Checkbox=dt,e.Chip=_n,e.ChipSize=sn,e.ChipType=K,e.DatePicker=zi,e.DatePickerFormat=Ai,e.Dialog=tc,e.DialogBody=cc,e.DialogClose=rc,e.DialogContent=oc,e.DialogPosition=ec,e.DialogTitle=sc,e.DialogTrigger=nc,e.DisplayStats=Di,e.DisplayStatsSize=Y,e.DisplayStatsType=bi,e.Divider=_t,e.DividerType=pt,e.Dropdown=Wr,e.DropdownPosition=Gr,e.Header=Dt,e.IOTA_NAMES_COLOR_PALETTE=y,e.IOTA_PRIMITIVES_COLOR_PALETTE=v,e.Image=jt,e.ImageShape=oi,e.ImageType=ai,e.ImageWithFallback=At,e.InfoBox=Ft,e.InfoBoxStyle=Mt,e.InfoBoxType=U,e.Input=Tr,e.InputType=q,e.KeyValueInfo=xt,e.LabelText=Tt,e.LabelTextSize=H,e.ListItem=Et,e.LoadingIndicator=zt,e.MediaFallback=kt,e.Navbar=xc,e.NavbarItem=Hr,e.NavbarItemType=jr,e.NavbarSlideout=Sc,e.Panel=Ot,e.Placeholder=Bt,e.RadioButton=nt,e.Resize=Fn,e.SHADER_COLOR_PALETTE=b,e.ScreenSize=m,e.Search=ri,e.SearchBarType=J,e.SecondaryText=nn,e.SegmentedButton=xn,e.SegmentedButtonType=vn,e.Select=Xr,e.SelectSize=Yr,e.Skeleton=Vt,e.Snackbar=Rt,e.SnackbarType=W,e.Table=fc,e.TableActionButton=pc,e.TableBody=vc,e.TableCellBase=Kr,e.TableCellPlaceholder=Jr,e.TableCellText=qr,e.TableHeader=mc,e.TableHeaderCell=$r,e.TableHeaderCellSortOrder=Qr,e.TableHeaderCheckbox=bc,e.TableRow=hc,e.TableRowCheckbox=yc,e.TextArea=kr,e.Title=Tn,e.TitleSize=Sn,e.Toggle=tn,e.ToggleLabelPosition=Gt,e.ToggleSize=G,e.Tooltip=bt,e.TooltipPosition=yt,e.UIKitTheme=h,e.ValueSize=vt,e.Video=Wt,e.VisualAssetCard=Oi,e.VisualAssetType=an,e.uiKitResponsivePreset=he,e.uiKitStaticPreset=ge});
|
|
61
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},qs=`DialogDescriptionWarning`,Js=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gs(qs).contentName}}.`;return p.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Ys=xs,Xs=Cs,Zs=Ds,Qs=ks,$s=Ms,ec=Ls,tc=zs,nc=Vs,rc=`VisuallyHidden`,ic=p.forwardRef((e,n)=>(0,t.jsx)(Z.span,{...e,ref:n,style:{position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`,...e.style}}));ic.displayName=rc;var ac=ic,oc=function(e){return e.Center=`center`,e.Right=`right`,e}({}),sc=({open:e,onOpenChange:n,children:r,...i})=>(0,t.jsx)(Ys,{open:e,onOpenChange:e=>{let t=document.querySelector(`.toast-layer:hover`);!e&&t||n?.(e)},...i,children:r}),cc=Xs,lc=nc,uc=n.forwardRef(({showCloseIcon:e,position:n,...r},i)=>(0,t.jsx)(Qs,{ref:i,className:(0,P.default)(`dialog-overlay-bg absolute h-full w-full backdrop-blur-md names:backdrop-blur-lg`,`data-[state=open]:animate-dialog-overlay-show`),...r,children:(0,t.jsx)(lc,{className:(0,P.default)(`fixed right-3 top-3`,{hidden:!e}),"aria-label":`Close`,children:(0,t.jsx)(Ge,{className:`button-text-color-neutral`})})}));uc.displayName=Qs.displayName;var dc=n.forwardRef((e,n)=>(0,t.jsx)(`div`,{className:(0,P.default)(`inset-0 z-[99999]`,e.isFixedPosition?`fixed`:`absolute`),ref:n,children:(0,t.jsx)(`div`,{className:`relative h-full w-full`,children:e.children})})),fc=n.forwardRef(({className:e,containerId:r,showCloseOnOverlay:i,children:a,position:o=oc.Center,customWidth:s=`w-80 max-w-[85vw] md:w-96`,isFixedPosition:c=o===oc.Right,...l},u)=>{let[d,f]=(0,n.useState)(void 0);(0,n.useEffect)(()=>{f((r?document.getElementById(r):void 0)??void 0)},[r]);let p=o===oc.Right?`overflow-hidden right-0 h-screen top-0 w-full`:`overflow-y-auto overflow-x-hidden left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-xl`,m=o===oc.Right?`md:w-96 max-w-[500px]`:s,h=o===oc.Right?`h-screen`:`max-h-[90vh] h-full`;return(0,t.jsx)(Zs,{container:d,children:(0,t.jsxs)(dc,{isFixedPosition:c,children:[(0,t.jsx)(uc,{showCloseIcon:i,position:o}),(0,t.jsxs)($s,{ref:u,className:(0,P.default)(`dialog-content-bg dialog-outline absolute flex flex-col justify-center`,p,m,o===oc.Right?`data-[state=open]:animate-dialog-panel-show`:`data-[state=open]:animate-dialog-content-show`),...l,children:[(0,t.jsxs)(ac,{children:[(0,t.jsx)(ec,{}),(0,t.jsx)(tc,{})]}),(0,t.jsx)(`div`,{className:(0,P.default)(`flex flex-1 flex-col`,h),children:a})]})]})})});fc.displayName=$s.displayName;var pc=n.forwardRef((e,n)=>(0,t.jsx)(ec,{ref:n,className:`dialog-title-color font-inter text-title-lg`,...e}));pc.displayName=ec.displayName;var mc=n.forwardRef((e,n)=>(0,t.jsx)(`div`,{ref:n,className:`dialog-body-color flex-1 overflow-y-auto p-md--rs text-body-sm`,...e}));mc.displayName=`DialogBody`;var hc=(0,n.createContext)({isHeaderChecked:!1,selectedRowIndexes:new Set,isHeaderIndeterminate:!1}),gc=()=>(0,n.useContext)(hc);function _c({children:e,selectedRowIndexes:n,rowIndexes:r,...i}){let a=r.length===n.size,o=!a&&n.size>0;return(0,t.jsx)(hc.Provider,{value:{...i,isHeaderChecked:a,selectedRowIndexes:n,isHeaderIndeterminate:o},children:e})}function vc({paginationOptions:e,action:n,supportingLabel:r,selectedRowIndexes:i=new Set,rowIndexes:a,children:o,pageSizeSelector:s,heightFull:c=!1}){return(0,t.jsx)(_c,{selectedRowIndexes:i,rowIndexes:a,children:(0,t.jsxs)(`div`,{className:(0,P.default)(`w-full`,{"h-full":c}),children:[(0,t.jsx)(`div`,{className:(0,P.default)(`overflow-auto`,{"h-full":c}),children:(0,t.jsx)(`table`,{className:(0,P.default)(`w-full table-auto`,{"h-full":c}),children:o})}),(0,t.jsxs)(`div`,{className:(0,P.default)(`flex w-full items-center gap-sm pt-md`,{hidden:!r&&!e&&!n,"flex-col justify-between sm:flex-row":e,"justify-end":!e&&n}),children:[(e||n)&&(0,t.jsxs)(`div`,{className:`flex gap-2`,children:[e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(L,{type:I.Secondary,size:F.Small,icon:(0,t.jsx)(qe,{}),disabled:!e.hasFirst,onClick:e.onFirst,"aria-label":`First page`}),(0,t.jsx)(L,{type:I.Secondary,size:F.Small,icon:(0,t.jsx)(ze,{}),disabled:!e.hasPrev,onClick:e.onPrev,"aria-label":`Previous page`}),(0,t.jsx)(L,{type:I.Secondary,size:F.Small,icon:(0,t.jsx)(Be,{}),disabled:!e.hasNext,onClick:e.onNext,"aria-label":`Next page`}),(0,t.jsx)(L,{type:I.Secondary,size:F.Small,icon:(0,t.jsx)(Je,{}),disabled:!e.hasLast,onClick:e.onLast,"aria-label":`Last page`})]}),n]}),r||s?(0,t.jsxs)(`div`,{className:`flex flex-row items-center gap-x-sm`,children:[r&&(0,t.jsx)(`span`,{className:`table-text-color text-label-md`,children:r}),s&&(0,t.jsx)(`div`,{className:`ml-2`,children:s})]}):null]})]})})}function yc(e){return(0,t.jsx)(L,{type:I.Secondary,size:F.Small,...e})}function bc({children:e}){return(0,t.jsx)(`thead`,{children:e})}function xc(e){let t=e.target instanceof Element&&e.target.closest(ue);return t&&e.currentTarget.contains(t)?!0:!!window.getSelection()?.toString()}function Sc({children:e,leading:n,onClick:r,onAuxClick:i}){function a(e){if(e)return t=>{xc(t)||e(t)}}return(0,t.jsxs)(`tr`,{onClick:a(r),onAuxClick:a(i),className:(0,P.default)({"cursor-pointer row-hover:bg-shader-neutral-light-8 dark:row-hover:bg-shader-neutral-dark-8 inner-link:-mx-xxs inner-link:rounded inner-link:px-xxs inner-link:transition-colors inner-link-hover:bg-iota-primary-90/30 inner-link-hover:ring-1 inner-link-hover:ring-iota-primary-70/60 dark:inner-link-hover:bg-iota-primary-70/30":r}),children:[n,e]})}var Cc=`table-text-color`,wc=`text-body-md`;function Tc({children:e}){return(0,t.jsx)(`tbody`,{className:(0,P.default)(Cc,wc),children:e})}function Ec({rowIndex:e,onCheckboxChange:n,isDisabled:r}){let{selectedRowIndexes:i}=gc();return(0,t.jsx)(Qr,{isContentCentered:!0,children:(0,t.jsx)(_t,{onCheckedChange:e=>{n(e.target.checked)},isChecked:i.has(e),isDisabled:r})})}function Dc({onCheckboxChange:e}){let{isHeaderChecked:n,isHeaderIndeterminate:r}=gc();return(0,t.jsx)(ai,{isContentCentered:!0,hasCheckbox:!0,onCheckboxChange:t=>{e(t.target.checked)},isChecked:n,columnKey:1,isIndeterminate:r})}function Oc({items:e,activeId:n,onClickItem:r,isCollapsible:i=!1,onToggleNavbar:a}){return(0,t.jsxs)(`div`,{className:(0,P.default)(`flex h-fit w-full`,{"flex-col px-md py-xs sm:h-full sm:w-auto sm:px-none sm:py-xl":i}),children:[i&&(0,t.jsxs)(`div`,{className:`flex w-full items-center justify-between sm:mb-[48px] sm:flex-col`,children:[(0,t.jsx)(`div`,{className:`flex justify-center [&_svg]:h-[38px] [&_svg]:w-[38px]`,children:(0,t.jsx)(Xe,{className:`navbar-icon-color`})}),(0,t.jsx)(`div`,{className:`state-layer navbar-icon-color relative rounded-full p-xs hover:cursor-pointer sm:hidden [&_svg]:h-6 [&_svg]:w-6`,onClick:a,role:`button`,"aria-label":`Toggle menu`,children:(0,t.jsx)(Qe,{})})]}),(0,t.jsx)(`div`,{className:(0,P.default)({"flex w-full justify-between px-sm py-xxs":!i,"hidden sm:flex sm:flex-col sm:gap-2":i}),children:e.map(e=>(0,t.jsx)(`div`,{className:(0,P.default)(`flex items-center`,{"px-xs py-xxs":!i,"py-xxs pl-xs pr-sm":i}),"data-testid":`nav-${e.id}`,children:(0,t.jsx)(Jr,{...e,isSelected:e.id===n,onClick:t=>{e.onClick&&e.onClick(t),e.isDisabled||r(e.id)}})},e.id))})]})}function kc({items:e,activeId:n,onClickItem:r,isOpen:i,onToggleNavbar:a}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(`div`,{onClick:a,className:(0,P.default)(`duration-800 transition-opacity ease-out`,{"opacity-1 fixed left-0 top-0 h-full w-full bg-shader-neutral-light-72":i,"-translate-x-full opacity-0":!i})}),(0,t.jsx)(`div`,{className:(0,P.default)(`z-999 rounded-tb-3xl navbar-slideout-bg fixed left-0 top-0 h-full w-11/12 rounded-tr-3xl px-lg py-lg transition-transform duration-300 ease-out`,{"translate-x-0":i,"-translate-x-full":!i}),children:(0,t.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,t.jsx)(`div`,{className:`[&_svg]:h-5 [&_svg]:w-5`,children:(0,t.jsx)(L,{type:I.Ghost,onClick:a,icon:(0,t.jsx)(Le,{}),"aria-label":`Close menu`})}),e.map(e=>(0,t.jsx)(Jr,{...e,type:Lr.Vertical,isSelected:e.id===n,onClick:()=>{r(e.id),a&&a()}},e.id))]})})]})}function Ac({onToggle:e,children:n,isExpanded:r,hideArrow:i,disableStateLayer:a=!1}){return(0,t.jsxs)(`div`,{onClick:e,role:`button`,"aria-expanded":r,className:(0,P.default)(`relative flex cursor-pointer items-center justify-between gap-md overflow-hidden rounded-xl py-sm--rs`,!a&&`state-layer`,{"pr-md--rs":!i}),children:[n,!i&&(0,t.jsx)(`div`,{className:`[&_svg]:h-5 [&_svg]:w-5`,children:(0,t.jsx)(L,{type:I.Ghost,icon:(0,t.jsx)(Re,{className:(0,P.default)(`accordion-icon-color transition-transform ease-linear`,{"rotate-180":r})})})})]})}function jc({isExpanded:e,children:n}){return(0,t.jsx)(`div`,{className:(0,P.default)({hidden:!e}),children:n})}function Mc({children:e,hideBorder:n}){return(0,t.jsx)(`div`,{className:(0,P.default)(`accordion-bg rounded-xl`,{"accordion-border-color border":!n}),children:e})}e.Accordion=Mc,e.AccordionContent=jc,e.AccordionHeader=Ac,e.Account=Yr,e.Address=un,e.AssetMediaRenderer=fn,e.Badge=Ee,e.BadgeSize=Ce,e.BadgeType=M,e.Button=L,e.ButtonHtmlType=De,e.ButtonPill=Ie,e.ButtonSegment=gt,e.ButtonSegmentType=B,e.ButtonSize=F,e.ButtonType=I,e.ButtonUnstyled=R,e.Card=yi,e.CardAction=bi,e.CardActionType=pi,e.CardBody=Ti,e.CardImage=wi,e.CardType=ui,e.Checkbox=_t,e.Chip=Cn,e.ChipSize=pn,e.ChipType=K,e.DatePicker=Gi,e.DatePickerFormat=Ii,e.Dialog=sc,e.DialogBody=mc,e.DialogClose=lc,e.DialogContent=fc,e.DialogPosition=oc,e.DialogTitle=pc,e.DialogTrigger=cc,e.DisplayStats=Ni,e.DisplayStatsSize=Y,e.DisplayStatsType=Ei,e.Divider=Ct,e.DividerType=yt,e.Dropdown=Xr,e.DropdownPosition=Zr,e.Header=Nt,e.INTERACTIVE_ELEMENT_SELECTOR=ue,e.IOTA_NAMES_COLOR_PALETTE=y,e.IOTA_PRIMITIVES_COLOR_PALETTE=v,e.Image=Lt,e.ImageShape=fi,e.ImageType=di,e.ImageWithFallback=It,e.InfoBox=Vt,e.InfoBoxStyle=Rt,e.InfoBoxType=U,e.Input=jr,e.InputType=q,e.KeyValueInfo=Dt,e.LabelText=jt,e.LabelTextSize=H,e.ListItem=Mt,e.LoadingIndicator=Gt,e.MediaFallback=Ft,e.Navbar=Oc,e.NavbarItem=Jr,e.NavbarItemType=Lr,e.NavbarSlideout=kc,e.Panel=Pt,e.Placeholder=Kt,e.ROW_LINK_ATTRIBUTE=de,e.ROW_LINK_PROPS=fe,e.RadioButton=lt,e.Resize=Vn,e.SHADER_COLOR_PALETTE=b,e.ScreenSize=m,e.Search=li,e.SearchBarType=J,e.SecondaryText=ln,e.SegmentedButton=Dn,e.SegmentedButtonType=wn,e.Select=ni,e.SelectSize=ti,e.Skeleton=qt,e.Snackbar=Wt,e.SnackbarType=W,e.Table=vc,e.TableActionButton=yc,e.TableBody=Tc,e.TableCellBase=Qr,e.TableCellPlaceholder=ei,e.TableCellText=$r,e.TableHeader=bc,e.TableHeaderCell=ai,e.TableHeaderCellSortOrder=ii,e.TableHeaderCheckbox=Dc,e.TableRow=Sc,e.TableRowCheckbox=Ec,e.TextArea=Fr,e.Title=jn,e.TitleSize=On,e.Toggle=cn,e.ToggleLabelPosition=Zt,e.ToggleSize=G,e.Tooltip=Et,e.TooltipPosition=V,e.UIKitTheme=h,e.ValueSize=wt,e.Video=Xt,e.VisualAssetCard=Pi,e.VisualAssetType=dn,e.uiKitResponsivePreset=be,e.uiKitStaticPreset=xe});
|
|
62
62
|
//# sourceMappingURL=index.umd.js.map
|