@iota/apps-ui-kit 0.9.5 → 0.10.1
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 +18 -0
- package/dist/index.d.ts +55 -3
- package/dist/index.es.js +5697 -6536
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +36 -40
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -1
- package/package.json +14 -18
- package/src/lib/components/atoms/badge/Badge.tsx +4 -3
- package/src/lib/components/atoms/badge/badge.classes.ts +3 -0
- package/src/lib/components/atoms/badge/badge.enums.ts +1 -0
- package/src/lib/components/atoms/key-value-info/KeyValueInfo.tsx +1 -1
- package/src/lib/components/atoms/label-text/LabelText.tsx +1 -1
- package/src/lib/components/atoms/tooltip/Tooltip.tsx +2 -2
- package/src/lib/components/molecules/date-picker/DatePicker.tsx +412 -0
- package/src/lib/components/molecules/date-picker/date-picker.classes.ts +42 -0
- package/src/lib/components/molecules/date-picker/date-picker.constants.ts +23 -0
- package/src/lib/components/molecules/date-picker/date-picker.enums.ts +8 -0
- package/src/lib/components/molecules/date-picker/date-picker.helpers.ts +67 -0
- package/src/lib/components/molecules/date-picker/index.ts +5 -0
- package/src/lib/components/molecules/index.ts +1 -0
- package/src/lib/styles/components.css +89 -0
- package/src/lib/styles/variables/dark-variables.css +15 -0
- package/src/lib/styles/variables/light-variables.css +15 -0
- package/src/lib/styles/variables/names-variables.css +15 -0
- package/src/storybook/stories/design-tokens/{colors.stories.mdx → colors.mdx} +1 -1
- package/src/storybook/stories/design-tokens/{icons.stories.mdx → icons.mdx} +1 -1
- package/src/storybook/stories/design-tokens/{typeset.stories.mdx → typeset.mdx} +1 -1
- package/src/storybook/stories/design-tokens/{variable-spacing.stories.mdx → variable-spacing.mdx} +1 -1
- package/src/storybook/stories/molecules/DatePicker.stories.tsx +132 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,66 +1,62 @@
|
|
|
1
|
-
(function(x,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],a):(x=typeof globalThis<"u"?globalThis:x||self,a(x["@iota/apps-ui-kit"]={},x.jsxRuntime,x.React,x.ReactDOM))})(this,function(x,a,T,ar){"use strict";function Xr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const g=Xr(T),Kr=Xr(ar);var ye=(e=>(e.Sm="sm",e.Md="md",e.Lg="lg",e.Xl="xl",e))(ye||{}),Zr=(e=>(e.Light="light",e.Dark="dark",e.Names="names",e))(Zr||{});const ee=(e,t=16)=>`${e/t}rem`;function Yr(e){return Object.entries(e).reduce((r,[n,o])=>(r[n]=`${o}px`,r),{})}const qr={"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"}},Qr={"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"}},Jr={"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"}},bo={none:ee(0),sm:ee(2),DEFAULT:ee(4),md:ee(6),lg:ee(8),xl:ee(12),"2xl":ee(16),"3xl":ee(24),full:ee(120)},xo={none:ee(0),xxxs:ee(2),xxs:ee(4),xs:ee(8),sm:ee(12),md:ee(16),lg:ee(24),xl:ee(32),"2xl":ee(48)},wo={0:"0",8:"0.08",12:"0.12",16:"0.16",40:"0.4",60:"0.6",80:"0.8",100:"1"},yo={...{"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}]},...{"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}]},...{"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}]},...{"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}]},...{"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"}]},...{"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)"}]}},So=Object.entries(yo).reduce((e,[t,r])=>{const n=t.startsWith("text-")?t.replace("text-",""):t;return{...e,[n]:r}},{}),Rr={"xs--rs":["4px","8px"],"sm--rs":["8px","12px"],"md--rs":["16px","24px"]};function Eo(e,t){const r=[ye.Sm,ye.Md,ye.Lg,ye.Xl],n=Rr[e];let o=`${n[0]}`;for(let l=1;l<n.length;l++)if(n[l]){const i=t[r[l]];i&&(o=`clamp(${o}, (100vw - ${i}) * 99, ${n[l]})`)}return o}function Co(e){return Object.keys(Rr).reduce((r,n)=>{const o=Eo(n,e);return{...r,[n]:o}},{})}const _o={inter:["Inter","sans-serif"],"alliance-no2":["AllianceNo2","sans-serif"],"roboto-flex":["Roboto Flex Variable","sans-serif"]},No={"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)"};var Tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var en={},tn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n,o){return{handler:n,config:o}}t.withOptions=function(n,o=()=>({})){const l=function(i){return{__options:i,handler:n(i),config:o(i)}};return l.__isOptionsFunction=!0,l.__pluginFunction=n,l.__configFunction=o,l};const r=t})(tn),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});const t=r(tn);function r(o){return o.__esModule?o:{default:o}}const n=t.default}(en);let lr=en;var To=(lr.__esModule?lr:{default:lr}).default;const rn=or(To),Ao=rn(({addVariant:e})=>{e("firefox","@-moz-document url-prefix()")}),Oo=rn(({addVariant:e})=>{e("names","&:is(.names *)")}),Do={"names-gradient-primary":"var(--names-gradient-primary)"},nn={content:["./src/**/*.{html,js,jsx,ts,tsx}"],darkMode:"selector",plugins:[Ao,Oo],theme:{extend:{fontSize:{...So},borderRadius:{...bo},spacing:e=>{const t=e.theme("screens"),r=Co(t);return{...xo,...r}},opacity:{...wo,30:"0.3"},colors:{...qr,...Qr,...Jr,...No},fontFamily:_o,backgroundImage:{...Do},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"}}}};var At={exports:{}};At.exports,function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,l=16,i=9007199254740991,c="[object Arguments]",f="[object Array]",u="[object AsyncFunction]",v="[object Boolean]",m="[object Date]",b="[object Error]",S="[object Function]",y="[object GeneratorFunction]",p="[object Map]",E="[object Number]",C="[object Null]",I="[object Object]",_="[object Proxy]",P="[object RegExp]",k="[object Set]",K="[object String]",N="[object Undefined]",A="[object WeakMap]",G="[object ArrayBuffer]",V="[object DataView]",re="[object Float32Array]",ce="[object Float64Array]",_e="[object Int8Array]",We="[object Int16Array]",Qe="[object Int32Array]",F="[object Uint8Array]",B="[object Uint8ClampedArray]",q="[object Uint16Array]",ne="[object Uint32Array]",ae=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,oe=/^(?:0|[1-9]\d*)$/,H={};H[re]=H[ce]=H[_e]=H[We]=H[Qe]=H[F]=H[B]=H[q]=H[ne]=!0,H[c]=H[f]=H[G]=H[v]=H[V]=H[m]=H[b]=H[S]=H[p]=H[E]=H[I]=H[P]=H[k]=H[K]=H[A]=!1;var st=typeof Tt=="object"&&Tt&&Tt.Object===Object&&Tt,Je=typeof self=="object"&&self&&self.Object===Object&&self,Ne=st||Je||Function("return this")(),ct=t&&!t.nodeType&&t,Le=ct&&!0&&e&&!e.nodeType&&e,Zt=Le&&Le.exports===ct,St=Zt&&st.process,Yt=function(){try{var s=Le&&Le.require&&Le.require("util").types;return s||St&&St.binding&&St.binding("util")}catch{}}(),qt=Yt&&Yt.isTypedArray;function Pr(s,d,h){switch(h.length){case 0:return s.call(d);case 1:return s.call(d,h[0]);case 2:return s.call(d,h[0],h[1]);case 3:return s.call(d,h[0],h[1],h[2])}return s.apply(d,h)}function kr(s,d){for(var h=-1,D=Array(s);++h<s;)D[h]=d(h);return D}function Qt(s){return function(d){return s(d)}}function Br(s,d){return s==null?void 0:s[d]}function O(s,d){return function(h){return s(d(h))}}var L=Array.prototype,M=Function.prototype,z=Object.prototype,ie=Ne["__core-js_shared__"],X=M.toString,U=z.hasOwnProperty,he=function(){var s=/[^.]+$/.exec(ie&&ie.keys&&ie.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),xe=z.toString,Te=X.call(Object),Et=RegExp("^"+X.call(U).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jt=Zt?Ne.Buffer:void 0,to=Ne.Symbol,ro=Ne.Uint8Array;Jt&&Jt.allocUnsafe;var no=O(Object.getPrototypeOf,Object),ao=Object.create,Ed=z.propertyIsEnumerable,Cd=L.splice,Re=to?to.toStringTag:void 0,Rt=function(){try{var s=Vr(Object,"defineProperty");return s({},"",{}),s}catch{}}(),_d=Jt?Jt.isBuffer:void 0,oo=Math.max,Nd=Date.now,lo=Vr(Ne,"Map"),Ct=Vr(Object,"create"),Td=function(){function s(){}return function(d){if(!tt(d))return{};if(ao)return ao(d);s.prototype=d;var h=new s;return s.prototype=void 0,h}}();function et(s){var d=-1,h=s==null?0:s.length;for(this.clear();++d<h;){var D=s[d];this.set(D[0],D[1])}}function Ad(){this.__data__=Ct?Ct(null):{},this.size=0}function Od(s){var d=this.has(s)&&delete this.__data__[s];return this.size-=d?1:0,d}function Dd(s){var d=this.__data__;if(Ct){var h=d[s];return h===n?void 0:h}return U.call(d,s)?d[s]:void 0}function Ld(s){var d=this.__data__;return Ct?d[s]!==void 0:U.call(d,s)}function Id(s,d){var h=this.__data__;return this.size+=this.has(s)?0:1,h[s]=Ct&&d===void 0?n:d,this}et.prototype.clear=Ad,et.prototype.delete=Od,et.prototype.get=Dd,et.prototype.has=Ld,et.prototype.set=Id;function Ie(s){var d=-1,h=s==null?0:s.length;for(this.clear();++d<h;){var D=s[d];this.set(D[0],D[1])}}function Pd(){this.__data__=[],this.size=0}function kd(s){var d=this.__data__,h=er(d,s);if(h<0)return!1;var D=d.length-1;return h==D?d.pop():Cd.call(d,h,1),--this.size,!0}function Bd(s){var d=this.__data__,h=er(d,s);return h<0?void 0:d[h][1]}function Md(s){return er(this.__data__,s)>-1}function Fd(s,d){var h=this.__data__,D=er(h,s);return D<0?(++this.size,h.push([s,d])):h[D][1]=d,this}Ie.prototype.clear=Pd,Ie.prototype.delete=kd,Ie.prototype.get=Bd,Ie.prototype.has=Md,Ie.prototype.set=Fd;function dt(s){var d=-1,h=s==null?0:s.length;for(this.clear();++d<h;){var D=s[d];this.set(D[0],D[1])}}function Vd(){this.size=0,this.__data__={hash:new et,map:new(lo||Ie),string:new et}}function Ud(s){var d=rr(this,s).delete(s);return this.size-=d?1:0,d}function Wd(s){return rr(this,s).get(s)}function jd(s){return rr(this,s).has(s)}function Hd(s,d){var h=rr(this,s),D=h.size;return h.set(s,d),this.size+=h.size==D?0:1,this}dt.prototype.clear=Vd,dt.prototype.delete=Ud,dt.prototype.get=Wd,dt.prototype.has=jd,dt.prototype.set=Hd;function ut(s){var d=this.__data__=new Ie(s);this.size=d.size}function Gd(){this.__data__=new Ie,this.size=0}function $d(s){var d=this.__data__,h=d.delete(s);return this.size=d.size,h}function zd(s){return this.__data__.get(s)}function Xd(s){return this.__data__.has(s)}function Kd(s,d){var h=this.__data__;if(h instanceof Ie){var D=h.__data__;if(!lo||D.length<r-1)return D.push([s,d]),this.size=++h.size,this;h=this.__data__=new dt(D)}return h.set(s,d),this.size=h.size,this}ut.prototype.clear=Gd,ut.prototype.delete=$d,ut.prototype.get=zd,ut.prototype.has=Xd,ut.prototype.set=Kd;function Zd(s,d){var h=jr(s),D=!h&&Wr(s),j=!h&&!D&&fo(s),Z=!h&&!D&&!j&&go(s),Q=h||D||j||Z,$=Q?kr(s.length,String):[],J=$.length;for(var we in s)Q&&(we=="length"||j&&(we=="offset"||we=="parent")||Z&&(we=="buffer"||we=="byteLength"||we=="byteOffset")||co(we,J))||$.push(we);return $}function Mr(s,d,h){(h!==void 0&&!nr(s[d],h)||h===void 0&&!(d in s))&&Fr(s,d,h)}function Yd(s,d,h){var D=s[d];(!(U.call(s,d)&&nr(D,h))||h===void 0&&!(d in s))&&Fr(s,d,h)}function er(s,d){for(var h=s.length;h--;)if(nr(s[h][0],d))return h;return-1}function Fr(s,d,h){d=="__proto__"&&Rt?Rt(s,d,{configurable:!0,enumerable:!0,value:h,writable:!0}):s[d]=h}var qd=cu();function tr(s){return s==null?s===void 0?N:C:Re&&Re in Object(s)?du(s):pu(s)}function io(s){return _t(s)&&tr(s)==c}function Qd(s){if(!tt(s)||gu(s))return!1;var d=Gr(s)?Et:R;return d.test(wu(s))}function Jd(s){return _t(s)&&ho(s.length)&&!!H[tr(s)]}function Rd(s){if(!tt(s))return vu(s);var d=uo(s),h=[];for(var D in s)D=="constructor"&&(d||!U.call(s,D))||h.push(D);return h}function so(s,d,h,D,j){s!==d&&qd(d,function(Z,Q){if(j||(j=new ut),tt(Z))eu(s,d,Q,h,so,D,j);else{var $=D?D(Ur(s,Q),Z,Q+"",s,d,j):void 0;$===void 0&&($=Z),Mr(s,Q,$)}},vo)}function eu(s,d,h,D,j,Z,Q){var $=Ur(s,h),J=Ur(d,h),we=Q.get(J);if(we){Mr(s,h,we);return}var ue=Z?Z($,J,h+"",s,d,Q):void 0,Nt=ue===void 0;if(Nt){var $r=jr(J),zr=!$r&&fo(J),mo=!$r&&!zr&&go(J);ue=J,$r||zr||mo?jr($)?ue=$:yu($)?ue=lu($):zr?(Nt=!1,ue=nu(J)):mo?(Nt=!1,ue=ou(J)):ue=[]:Su(J)||Wr(J)?(ue=$,Wr($)?ue=Eu($):(!tt($)||Gr($))&&(ue=uu(J))):Nt=!1}Nt&&(Q.set(J,ue),j(ue,J,D,Z,Q),Q.delete(J)),Mr(s,h,ue)}function tu(s,d){return bu(mu(s,d,po),s+"")}var ru=Rt?function(s,d){return Rt(s,"toString",{configurable:!0,enumerable:!1,value:_u(d),writable:!0})}:po;function nu(s,d){return s.slice()}function au(s){var d=new s.constructor(s.byteLength);return new ro(d).set(new ro(s)),d}function ou(s,d){var h=au(s.buffer);return new s.constructor(h,s.byteOffset,s.length)}function lu(s,d){var h=-1,D=s.length;for(d||(d=Array(D));++h<D;)d[h]=s[h];return d}function iu(s,d,h,D){var j=!h;h||(h={});for(var Z=-1,Q=d.length;++Z<Q;){var $=d[Z],J=void 0;J===void 0&&(J=s[$]),j?Fr(h,$,J):Yd(h,$,J)}return h}function su(s){return tu(function(d,h){var D=-1,j=h.length,Z=j>1?h[j-1]:void 0,Q=j>2?h[2]:void 0;for(Z=s.length>3&&typeof Z=="function"?(j--,Z):void 0,Q&&fu(h[0],h[1],Q)&&(Z=j<3?void 0:Z,j=1),d=Object(d);++D<j;){var $=h[D];$&&s(d,$,D,Z)}return d})}function cu(s){return function(d,h,D){for(var j=-1,Z=Object(d),Q=D(d),$=Q.length;$--;){var J=Q[++j];if(h(Z[J],J,Z)===!1)break}return d}}function rr(s,d){var h=s.__data__;return hu(d)?h[typeof d=="string"?"string":"hash"]:h.map}function Vr(s,d){var h=Br(s,d);return Qd(h)?h:void 0}function du(s){var d=U.call(s,Re),h=s[Re];try{s[Re]=void 0;var D=!0}catch{}var j=xe.call(s);return D&&(d?s[Re]=h:delete s[Re]),j}function uu(s){return typeof s.constructor=="function"&&!uo(s)?Td(no(s)):{}}function co(s,d){var h=typeof s;return d=d??i,!!d&&(h=="number"||h!="symbol"&&oe.test(s))&&s>-1&&s%1==0&&s<d}function fu(s,d,h){if(!tt(h))return!1;var D=typeof d;return(D=="number"?Hr(h)&&co(d,h.length):D=="string"&&d in h)?nr(h[d],s):!1}function hu(s){var d=typeof s;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?s!=="__proto__":s===null}function gu(s){return!!he&&he in s}function uo(s){var d=s&&s.constructor,h=typeof d=="function"&&d.prototype||z;return s===h}function vu(s){var d=[];if(s!=null)for(var h in Object(s))d.push(h);return d}function pu(s){return xe.call(s)}function mu(s,d,h){return d=oo(d===void 0?s.length-1:d,0),function(){for(var D=arguments,j=-1,Z=oo(D.length-d,0),Q=Array(Z);++j<Z;)Q[j]=D[d+j];j=-1;for(var $=Array(d+1);++j<d;)$[j]=D[j];return $[d]=h(Q),Pr(s,this,$)}}function Ur(s,d){if(!(d==="constructor"&&typeof s[d]=="function")&&d!="__proto__")return s[d]}var bu=xu(ru);function xu(s){var d=0,h=0;return function(){var D=Nd(),j=l-(D-h);if(h=D,j>0){if(++d>=o)return arguments[0]}else d=0;return s.apply(void 0,arguments)}}function wu(s){if(s!=null){try{return X.call(s)}catch{}try{return s+""}catch{}}return""}function nr(s,d){return s===d||s!==s&&d!==d}var Wr=io(function(){return arguments}())?io:function(s){return _t(s)&&U.call(s,"callee")&&!Ed.call(s,"callee")},jr=Array.isArray;function Hr(s){return s!=null&&ho(s.length)&&!Gr(s)}function yu(s){return _t(s)&&Hr(s)}var fo=_d||Nu;function Gr(s){if(!tt(s))return!1;var d=tr(s);return d==S||d==y||d==u||d==_}function ho(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=i}function tt(s){var d=typeof s;return s!=null&&(d=="object"||d=="function")}function _t(s){return s!=null&&typeof s=="object"}function Su(s){if(!_t(s)||tr(s)!=I)return!1;var d=no(s);if(d===null)return!0;var h=U.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&X.call(h)==Te}var go=qt?Qt(qt):Jd;function Eu(s){return iu(s,vo(s))}function vo(s){return Hr(s)?Zd(s):Rd(s)}var Cu=su(function(s,d,h){so(s,d,h)});function _u(s){return function(){return s}}function po(s){return s}function Nu(){return!1}e.exports=Cu}(At,At.exports);var Lo=At.exports;const an=or(Lo),Io={[ye.Sm]:768,[ye.Md]:1024,[ye.Lg]:1400,[ye.Xl]:1920},on=Yr(Io),Po=an({},nn,{theme:{screens:on,container:{center:!0,screens:on,padding:{DEFAULT:ee(20),md:ee(48),lg:ee(120),xl:ee(240)}}}}),ko=Yr({default:0}),Bo=an({},nn,{theme:{screens:ko},corePlugins:{container:!1}});var ln={exports:{}};/*!
|
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var l="",i=0;i<arguments.length;i++){var c=arguments[i];c&&(l=o(l,n(c)))}return l}function n(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return r.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var i="";for(var c in l)t.call(l,c)&&l[c]&&(i=o(i,c));return i}function o(l,i){return i?l?l+" "+i:l+i:l}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(ln);var Mo=ln.exports;const w=or(Mo);var te=(e=>(e.Neutral="neutral",e.PrimarySolid="primary-solid",e.PrimarySoft="primary-soft",e.Success="success",e.Warning="warning",e.Error="error",e))(te||{}),Ot=(e=>(e.Medium="medium",e.Small="small",e))(Ot||{});const Fo={[te.PrimarySolid]:"badge-bg-color-primary",[te.Neutral]:"badge-bg-color-neutral",[te.PrimarySoft]:"badge-bg-color-primary-soft",[te.Success]:"bg-success-surface",[te.Warning]:"bg-warning-surface",[te.Error]:"bg-error-surface"},Vo={[te.PrimarySolid]:"badge-text-color-primary",[te.Neutral]:"badge-text-color-neutral",[te.PrimarySoft]:"badge-text-color-primary-soft",[te.Success]:"text-on-success",[te.Warning]:"text-on-warning",[te.Error]:"text-on-error"},Uo={[te.PrimarySolid]:"badge-border-color-primary",[te.Neutral]:"badge-border-color-neutral",[te.PrimarySoft]:"badge-border-color-soft",[te.Success]:"border-success-surface",[te.Warning]:"border-warning-surface",[te.Error]:"border-error-surface"};function ft({type:e,label:t,size:r=Ot.Medium}){const n=Fo[e],o=Vo[e],l=r===Ot.Small,i=t?"px-xs py-xxs":"h-1.5 w-1.5",c=l?"text-label-sm":"text-label-md";return a.jsx("div",{className:w("inline-flex items-center space-x-2 rounded-full disabled:opacity-30",{border:!l},n,{[Uo[e]]:!l},i),children:a.jsx("span",{className:w(c,o),children:t})})}var le=(e=>(e.Small="small",e.Medium="medium",e))(le||{}),W=(e=>(e.Primary="primary",e.Secondary="secondary",e.Ghost="ghost",e.Outlined="outlined",e.Destructive="destructive",e))(W||{}),ht=(e=>(e.Button="button",e.Submit="submit",e.Reset="reset",e))(ht||{});const Wo={[le.Small]:"px-md py-xs",[le.Medium]:"px-md py-sm"},jo={[le.Small]:"p-xs",[le.Medium]:"p-sm"},Ho={[W.Primary]:"button-bg-color-primary",[W.Secondary]:"button-bg-color-secondary",[W.Ghost]:"bg-transparent",[W.Outlined]:"bg-transparent button-border-color-outline",[W.Destructive]:"button-bg-color-error"},Go={[W.Primary]:"button-bg-color-disabled-primary",[W.Secondary]:"button-bg-color-secondary",[W.Ghost]:"bg-transparent",[W.Outlined]:"bg-transparent button-border-color-outline",[W.Destructive]:"button-bg-color-error"},je="button-text-color-neutral",$o={[W.Primary]:"button-text-color-primary",[W.Secondary]:je,[W.Ghost]:je,[W.Outlined]:je,[W.Destructive]:"button-text-color-error"},zo={[le.Small]:"text-label-md",[le.Medium]:"text-label-lg"},Xo={[W.Primary]:je,[W.Secondary]:je,[W.Ghost]:je,[W.Outlined]:je,[W.Destructive]:"button-text-color-error"},fe=T.forwardRef(({icon:e,text:t,disabled:r,onClick:n,fullWidth:o,htmlType:l=ht.Button,size:i=le.Medium,type:c=W.Primary,iconAfterText:f=!1,tabIndex:u=0,testId:v,...m},b)=>{const S=e&&!t?jo[i]:Wo[i],y=zo[i],p=r?Go[c]:Ho[c],E=r?Xo[c]:$o[c];return a.jsxs("button",{type:l,...m,ref:b,onClick:n,className:w("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",S,p,o&&"w-full",f?"flex-row-reverse":"flex-row",`btn btn-${c}`),disabled:r,tabIndex:u,"data-testid":v,children:[e&&a.jsx("span",{className:w(E),children:e}),t&&a.jsx("span",{className:w("font-inter",E,y),children:t})]})});function Ko({htmlType:e=ht.Button,children:t,tabIndex:r=0,...n}){return a.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,...n,children:t})}function se({htmlType:e=ht.Button,children:t,className:r,tabIndex:n=0,testId:o,...l}){return a.jsx("button",{type:e,...l,className:w("appearance-none",r),tabIndex:n,"data-testid":o,children:t})}function sn(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 Zo(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 Yo(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 ir(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 qo(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 Qo(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 Jo(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 gt(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 sr(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 Ro(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("rect",{width:10,height:2,x:7,y:11,fill:"currentColor",rx:1})})}function el(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.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"}),a.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 tl(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.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"}),a.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 Dt(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 rl(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 cn(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 nl(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 dn(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 al(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.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"}),a.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 un(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 ol(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.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"}),a.jsx("path",{fill:"currentColor",d:"M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10"})]})}function ll(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 il(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 fn(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 sl(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.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 hn(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.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"}),a.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 gn(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.jsx("path",{fill:"currentColor",d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4"}),a.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 cl({id:e,name:t,label:r,supportingLabel:n,body:o,isChecked:l,isDisabled:i,onChange:c,...f}){const u=l?ol:un;return a.jsxs("label",{className:w("flex flex-row items-center gap-x-1 text-center has-[:disabled]:opacity-40",{disabled:i,"cursor-pointer":!i}),children:[a.jsxs("div",{className:w("relative flex h-10 w-10 shrink-0 items-center justify-center rounded-full",{"state-layer-secondary":!i}),children:[a.jsx("input",{id:e,name:t,type:"radio",checked:l,onChange:c,disabled:i,className:w("peer appearance-none"),...f}),a.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:a.jsx(u,{className:"size-full"})})]}),a.jsxs("div",{className:"flex flex-col items-start gap-xxs text-start",children:[a.jsxs("span",{className:"radio-label-color inline-flex items-center justify-center gap-1 text-label-lg",children:[r,n&&a.jsx("span",{className:"text-iota-neutral-60 dark:text-iota-neutral-40",children:n})]}),o&&a.jsx("p",{className:"text-body-sm text-iota-neutral-40 dark:text-iota-neutral-60",children:o})]})]})}const dl="bg-transparent",ul="button-segment-bg-color-selected",fl="button-segment-text-color-default button-segment-text-color-hover button-segment-text-color-focused",hl="button-segment-text-color-selected",gl=`
|
|
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}){let i=ye[e],a=be[e],o=r===ve.Small,s=e===M.Outlined,c=n?`px-xs py-xxs`:`h-1.5 w-1.5`,l=o?`text-label-sm`:`text-label-md`;return(0,t.jsx)(`div`,{className:(0,N.default)(`inline-flex items-center space-x-2 rounded-full disabled:opacity-30`,{border:!o},{[xe[e]]:!o},{"badge-ring-outlined":o&&s},i,c),children:(0,t.jsx)(`span`,{className:(0,N.default)(l,a),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=`
|
|
6
2
|
button-segment-underline-base
|
|
7
3
|
before:bottom-0
|
|
8
4
|
button-segment-underline-hover
|
|
9
5
|
button-segment-underline-hover-color
|
|
10
|
-
`,
|
|
6
|
+
`,ct=`
|
|
11
7
|
button-segment-underline-base
|
|
12
8
|
button-segment-underline-selected
|
|
13
|
-
`;var He=(e=>(e.Rounded="rounded",e.Underlined="underlined",e))(He||{});function pl({icon:e,label:t,selected:r,disabled:n,onClick:o,type:l=He.Rounded,isNested:i=!1,...c}){const f=l===He.Underlined,u=r?f?"bg-transparent":ul:dl,v=f?r?vl:gl:"",m=r?hl:fl,b=f?i?"px-md py-sm":"px-lg py-md":"px-sm py-[6px]",S=f?"":"rounded-full",y=i?f?"text-title-sm":"text-label-md":f?"text-title-md":"text-label-lg";return a.jsx(se,{onClick:o,className:w("enabled:state-layer-secondary relative flex items-center disabled:opacity-40",u,m,b,S,v,{"pl-xs":!!e&&!f}),disabled:n,...c,children:a.jsxs("div",{className:w("flex flex-row items-center justify-center gap-2",y),children:[e&&a.jsx("span",{children:e}),a.jsx("span",{className:"text-start font-inter",children:t})]})})}const cr=T.forwardRef(({isChecked:e,isIndeterminate:t,label:r,isLabelFirst:n,isDisabled:o,onCheckedChange:l,name:i,...c},f)=>{const u=T.useRef(null);T.useEffect(()=>{u.current&&(u.current.indeterminate=t??!1)},[t,u]);const v=t?Ro:Qo;function m(b){f&&(typeof f=="function"?f(b):f.current=b),u.current=b}return a.jsxs("div",{className:w("group inline-flex has-[:disabled]:opacity-40",n?"flex-row-reverse":"flex-row",{disabled:o,"gap-x-2":r}),children:[a.jsx("input",{id:i,name:i,type:"checkbox",className:"peer hidden appearance-none",checked:e,ref:m,disabled:o,onChange:b=>{l==null||l(b)},...c}),a.jsx("span",{onClick:()=>{var b;return(b=u.current)==null?void 0:b.click()},className:w("checkbox-base checkbox-state checkbox-icon checkbox-icon-hidden","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:a.jsx(v,{})}),a.jsx(ml,{label:r,name:i})]})});function ml({label:e,name:t}){return a.jsx("label",{htmlFor:t,className:"checkbox-label checkbox-label-disabled",children:e})}var Pe=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(Pe||{});const bl="divider-bg-color",xl={[Pe.Horizontal]:"w-full",[Pe.Vertical]:"h-full"},wl="1px";function vn({type:e=Pe.Horizontal,width:t,height:r,lineHeight:n=wl}){const o={...e===Pe.Horizontal?{height:n}:{width:n}};let l=xl[e];return t&&e===Pe.Horizontal?l=t:r&&e===Pe.Vertical&&(l=r),a.jsx("div",{className:w(bl,l),style:o})}var vt=(e=>(e.Small="small",e.Medium="medium",e))(vt||{}),ke=(e=>(e.Top="top",e.Bottom="bottom",e.Left="left",e.Right="right",e))(ke||{});function Ge({text:e,position:t=ke.Top,maxWidth:r="max-w-[200px]",offset:n=8,openDelay:o=0,closeDelay:l=100,children:i}){const c=T.useRef(null),f=T.useRef(null),[u,v]=T.useState(!1),[m,b]=T.useState({top:0,left:0}),S=T.useRef(),y=T.useRef(),p=()=>{clearTimeout(S.current),clearTimeout(y.current)},E=()=>{p(),S.current=setTimeout(()=>v(!0),o)},C=()=>{p(),y.current=setTimeout(()=>v(!1),l)};return T.useLayoutEffect(()=>{var k;if(!u)return;const _=(k=c.current)==null?void 0:k.getBoundingClientRect();if(!_)return;const P={[ke.Top]:{top:_.top-n,left:_.left+_.width/2,transform:"translate(-50%, -100%)"},[ke.Bottom]:{top:_.bottom+n,left:_.left+_.width/2,transform:"translate(-50%, 0)"},[ke.Left]:{top:_.top+_.height/2,left:_.left-n,transform:"translate(-100%, -50%)"},[ke.Right]:{top:_.top+_.height/2,left:_.right+n,transform:"translate(0, -50%)"}}[t];b({top:P.top,left:P.left}),f.current.style.transform=P.transform},[u,t,n]),T.useLayoutEffect(()=>{if(!u)return;const _=()=>{var k;const P=(k=c.current)==null?void 0:k.getBoundingClientRect();P&&b(K=>({...K,left:P.left+P.width/2}))};return window.addEventListener("scroll",_,!0),window.addEventListener("resize",_),()=>{window.removeEventListener("scroll",_,!0),window.removeEventListener("resize",_)}},[u]),a.jsxs(a.Fragment,{children:[a.jsx("div",{ref:c,className:"inline-block cursor-pointer",onMouseEnter:E,onFocus:E,onMouseLeave:C,onBlur:C,children:i}),u&&ar.createPortal(a.jsx("div",{ref:f,role:"tooltip",style:{position:"fixed",top:m.top,left:m.left,transition:"opacity .15s ease",opacity:1},className:w("z-[9999999999] w-max rounded p-xs tooltip-bg tooltip-text-color",r),onMouseEnter:E,onMouseLeave:C,children:a.jsx("p",{className:"w-full break-words",children:e})}),document.body)]})}function yl({keyText:e,value:t,tooltipPosition:r,tooltipText:n,supportingLabel:o,size:l=vt.Small,isTruncated:i=!1,copyText:c,onCopySuccess:f,onCopyError:u,fullwidth:v,isReverse:m=!1,valueHoverTitle:b}){const S=m?"flex-row-reverse":"flex-row";async function y(p){if(navigator.clipboard&&c)try{await navigator.clipboard.writeText(c),f==null||f(p,c)}catch(E){console.error("Failed to copy:",E),u==null||u(E,c)}}return a.jsxs("div",{className:w("flex w-full items-baseline gap-xs py-xxs font-inter",S,{"justify-between":v}),children:[a.jsxs("div",{className:w("flex shrink-0 flex-row items-center gap-x-0.5",{"w-1/4":!v}),children:[a.jsx("span",{className:"key-value-key-text-color text-body-md",children:e}),n&&a.jsx(Ge,{text:n,position:r,children:a.jsx(Dt,{className:"key-supporting-text-color"})})]}),a.jsxs("div",{className:w("flex flex-row items-baseline gap-1 break-all",{"w-3/4":!v,truncate:i}),children:[a.jsx("span",{title:b,className:w("key-value-hover-text-color",l===vt.Medium?"text-body-lg":"text-body-md",{truncate:i}),children:t}),o&&a.jsx("span",{className:w("key-supporting-text-color",l===vt.Medium?"text-body-md":"text-body-sm"),children:o}),a.jsx("div",{className:"self-center",children:c&&a.jsx(se,{onClick:y,"aria-label":"Copy to clipboard",children:a.jsx(sr,{className:"key-supporting-text-color"})})})]})]})}var de=(e=>(e.Small="small",e.Medium="medium",e.Large="large",e))(de||{});const Sl={[de.Small]:"text-title-sm",[de.Medium]:"text-title-md",[de.Large]:"text-title-lg"},El={[de.Small]:"text-label-md",[de.Medium]:"text-label-md",[de.Large]:"text-label-lg"},Cl={[de.Small]:"text-label-md",[de.Medium]:"text-label-md",[de.Large]:"text-label-lg"};function _l({size:e=de.Medium,isCentered:t,supportingLabel:r,label:n,text:o,tooltipPosition:l,tooltipText:i}){const c=Sl[e],f=El[e],u=Cl[e],v=t?"items-center":"items-start",m=e===de.Small?"gap-0.5":"gap-1";return a.jsxs("div",{className:w("flex flex-col",v,m),children:[a.jsxs("div",{className:"flex flex-row flex-wrap items-center gap-0.5",children:[a.jsx("span",{className:w("label-text-primary-neutral font-inter",c),children:o}),r&&a.jsx("span",{className:w("label-text-secondary-neutral font-inter",f),children:r})]}),a.jsx("div",{className:"flex flex-row items-center gap-x-0.5",children:a.jsxs("span",{className:w("label-text-secondary-neutral flex items-center font-inter",u),children:[n,i&&a.jsx("div",{className:"ml-xxxs flex items-center",children:a.jsx(Ge,{text:i,position:l,children:a.jsx(Dt,{className:"label-text-secondary-neutral"})})})]})})]})}function pn({showRightIcon:e,hideBottomBorder:t,onClick:r,isDisabled:n,children:o,isHighlighted:l,...i}){function c(u){(u.key==="Enter"||u.key===" ")&&!n&&r&&r()}function f(){!n&&r&&r()}return a.jsx("div",{className:w("w-full",{"list-item-border-color border-b pb-xs":!t},{"opacity-40":n}),children:a.jsxs("div",{onClick:f,role:"button",tabIndex:0,onKeyDown:c,...i,className:w("list-item-color relative flex flex-row items-center justify-between px-md py-sm",!n&&r?"cursor-pointer":"cursor-default",{"list-item-highlight-bg":l,"state-layer-secondary":!n}),children:[o,e&&a.jsx(fe,{size:le.Small,type:W.Ghost,disabled:n,icon:a.jsx(ir,{})})]})})}function Nl({title:e,titleCentered:t,onBack:r,onClose:n,testId:o}){const l=t?"text-center":r?"ml-1":"",i=t&&(!r||!n);return a.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?a.jsx(fe,{size:le.Small,type:W.Ghost,onClick:r,icon:a.jsx(sn,{}),"aria-label":"Back"}):i&&a.jsx("div",{className:"w-9"}),a.jsx("div",{className:w("flex-grow",l),children:a.jsx("span",{className:"font-inter text-title-lg","data-testid":o,children:e})}),n?a.jsx(fe,{size:le.Small,type:W.Ghost,onClick:n,icon:a.jsx(gt,{}),testId:"close-icon","aria-label":"Close"}):i&&a.jsx("div",{className:"w-9"})]})}function Tl({children:e,hasBorder:t,bgColor:r="panel-bg"}){const n=t?"border panel-border-color":"border border-transparent";return a.jsx("div",{className:w("flex w-full flex-col rounded-xl",r,n),children:e})}function mn(){return a.jsx("div",{className:"flex h-full w-full items-center justify-center bg-iota-neutral-96 dark:bg-iota-neutral-10",children:a.jsx(al,{className:"h-4 w-4 text-iota-neutral-40 dark:text-iota-neutral-60"})})}const bn=T.forwardRef(({onError:e,renderFallback:t,...r},n)=>{const[o,l]=T.useState(!1);function i(c){l(!0),e==null||e(c)}return o||!r.src?t||a.jsx(mn,{}):a.jsx(dr,{onError:i,ref:n,...r})}),dr=T.forwardRef((e,t)=>a.jsx("img",{className:"h-full w-full object-cover",ref:t,...e}));var Se=(e=>(e.Default="default",e.Error="error",e.Success="success",e.Warning="warning",e))(Se||{}),pt=(e=>(e.Default="default",e.Elevated="elevated",e))(pt||{});const Al={[Se.Default]:"bg-default-surface text-on-default",[Se.Error]:"bg-error-surface text-on-error",[Se.Success]:"bg-success-surface text-on-success",[Se.Warning]:"bg-warning-surface text-on-warning"},Ol={[Se.Default]:"bg-default-surface",[Se.Error]:"bg-error-surface",[Se.Success]:"bg-success-surface",[Se.Warning]:"bg-warning-surface"};function Dl({icon:e,title:t,supportingText:r,type:n,style:o}){const l=Al[n],i=o===pt.Elevated?Ol[n]:"";return a.jsxs("div",{className:w("flex flex-row items-start gap-4 py-xs pr-lg",i,{"rounded-lg pl-xs":o===pt.Elevated}),children:[e&&a.jsx("span",{className:w("flex items-center justify-center rounded-lg [&_svg]:h-4 [&_svg]:w-4",l,{"p-xs":o===pt.Default}),children:e}),a.jsxs("div",{className:"flex flex-col gap-1",children:[t&&a.jsx("span",{className:"infobox-text-title text-title-sm",children:t}),r&&a.jsx("span",{className:"infobox-supporting-text text-body-sm",children:r})]})]})}var ge=(e=>(e.Default="default",e.Error="error",e.Warning="warning",e.Success="success",e))(ge||{});const xn={[ge.Default]:"text-on-default",[ge.Error]:"text-on-error",[ge.Warning]:"text-on-warning",[ge.Success]:"text-on-success"},Ll={[ge.Default]:"bg-default-surface",[ge.Error]:"bg-error-surface",[ge.Warning]:"bg-warning-surface",[ge.Success]:"bg-success-surface"};function Il({text:e,duration:t=2e3,onClose:r,showClose:n,type:o=ge.Default}){return T.useEffect(()=>{if(t){const l=setTimeout(r,t);return()=>clearTimeout(l)}},[t,r]),a.jsxs("div",{className:w("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",Ll[o]),children:[a.jsx("div",{className:w("w-full text-left text-body-md",xn[o]),children:e}),n&&a.jsx(se,{onClick:r,"aria-label":"Close",children:a.jsx(gt,{className:w("h-5 w-5",xn[o])})})]})}function Pl({color:e="loading-indicator-color",size:t="w-5 h-5",text:r,testId:n}){return a.jsxs("div",{className:"flex items-center justify-center gap-xs",children:[a.jsx(cn,{className:w("animate-spin",e,t),"data-testid":n}),r&&a.jsx("span",{className:w("text-body-sm",e),children:r})]})}function wn({width:e="w-full",height:t="h-4"}){return a.jsx("div",{className:w("animate-pulse rounded-md bg-gradient-to-r from-shader-primary-light-8 bg-[length:1000px_100%] dark:from-shader-primary-dark-8",e,t)})}function kl({children:e,className:t,hasSecondaryColors:r}){return a.jsx("div",{className:w("h-3 w-full animate-pulse rounded-full",r?"skeleton-secondary-bg":"skeleton-bg",t),children:e})}const Bl={autoPlay:!0,muted:!0,playsInline:!0,controls:!0,controlsList:"nodownload",disablePictureInPicture:!0,preload:"auto",loop:!0,width:"100%",height:"auto"},Ml={autoPlay:!0,muted:!0,playsInline:!0,controls:!1,disablePictureInPicture:!0,preload:"auto",loop:!0,width:"100%",height:"auto"},yn=T.forwardRef(({width:e="100%",height:t="auto",isAutoPlayEnabled:r,disableControls:n,...o},l)=>{const i=r?n?Ml:Bl:{preload:"metadata",autoPlay:!1};return a.jsx("video",{ref:l,width:e,height:t,...i,...o,children:"Your browser does not support the video tag."})});var Ae=(e=>(e.Small="small",e.Default="default",e))(Ae||{}),Lt=(e=>(e.Left="left",e.Right="right",e))(Lt||{});const Fl="relative inline-flex items-center p-xxs border rounded-full cursor-pointer",It={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"},Vl={[Ae.Small]:"h-5 w-10",[Ae.Default]:"h-6 w-12"},Ul="absolute rounded-full transition-all duration-200 ease-in-out",Sn={[Ae.Small]:{unchecked:"left-1",checked:"left-[34px] -translate-x-full"},[Ae.Default]:{unchecked:"left-1",checked:"left-[42px] -translate-x-full"}},En={unchecked:"toggle-thumb-color",checked:"toggle-thumb-color-checked"},Wl={[Ae.Small]:"h-3 w-3",[Ae.Default]:"h-4 w-4"},jl="inline-flex items-center gap-2",Hl="text-label-lg toggle-label-color",Gl=T.forwardRef(({label:e,isToggled:t,labelPosition:r=Lt.Right,isDisabled:n=!1,onChange:o,name:l,size:i=Ae.Default,testId:c,...f},u)=>{const v=T.useRef(null);function m(C){const I=C.target.checked;o==null||o(I,C)}function b(C){u&&(typeof u=="function"?u(C):u.current=C),v.current=C}const S=w(Fl,{[It.active]:t&&!n,[It.inactive]:!t,[It.disabledActive]:n&&t,[It.disabled]:n,[Vl[i]]:!0}),y=w(Ul,{[Sn[i].unchecked]:!t,[Sn[i].checked]:t,[En.unchecked]:!t,[En.checked]:t,[Wl[i]]:!0}),p=w(jl,{"flex-row-reverse":r===Lt.Left,"cursor-not-allowed":n}),E=w(Hl,{"opacity-40":n&&!t});return a.jsxs("div",{className:p,children:[a.jsx("input",{id:l,name:l,type:"checkbox",className:"sr-only",checked:t,ref:b,disabled:n,onChange:m,"data-testid":c}),a.jsx("span",{role:"switch","aria-checked":t,onClick:()=>{var C;return(C=v.current)==null?void 0:C.click()},className:S,...f,children:a.jsx("span",{className:y})}),e&&a.jsx("label",{htmlFor:l,className:E,children:e})]})});function mt({children:e,hasErrorStyles:t}){return a.jsx("p",{className:w("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"]:t}),children:e})}function Cn({text:e,isCopyable:t,isExternal:r,externalLink:n,copyText:o=e,onCopySuccess:l,onCopyError:i,onOpen:c}){async function f(v){if(navigator.clipboard){v==null||v.stopPropagation();try{await navigator.clipboard.writeText(o),l==null||l(v,o)}catch(m){console.error("Failed to copy:",m),i==null||i(m,o)}}}function u(v){if(v==null||v.stopPropagation(),n){const m=window.open(n,"_blank","noopener noreferrer");m&&(m.opener=null)}c==null||c(v)}return a.jsxs("div",{className:"address-text-color group flex flex-row items-center gap-1",children:[a.jsx("span",{className:w("font-inter text-body-sm"),children:e}),t&&a.jsx(se,{onClick:f,className:"opacity-100","aria-label":"Copy to clipboard",children:a.jsx(sr,{})}),r&&a.jsx(se,{onClick:u,className:"opacity-100","aria-label":"Open in new tab",children:a.jsx(qo,{})})]})}var ur=(e=>(e.Image="image",e.Video="video",e))(ur||{});function _n({src:e,isAutoPlayEnabled:t,assetType:r,altText:n,showFallback:o,disableControls:l}){return r===ur.Video?a.jsx(yn,{src:e,isAutoPlayEnabled:t,disableControls:l}):o?a.jsx(bn,{src:e,alt:n}):a.jsx(dr,{src:e,alt:n})}var Y=(e=>(e.Outline="outline",e.Elevated="elevated",e.Success="success",e.Brand="brand",e.Error="error",e))(Y||{}),Pt=(e=>(e.Small="small",e.Default="default",e))(Pt||{});const Nn="rounded-full",$l={[Y.Outline]:"bg-transparent",[Y.Elevated]:"chip-bg-elevated",[Y.Success]:"bg-success-surface",[Y.Brand]:"chip-bg-brand",[Y.Error]:"bg-error-surface"},zl="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",Xl={[Y.Outline]:"chip-bg-selected-outline"},Kl="chip-bg-selected-overlay",Zl={[Y.Outline]:"chip-text-secondary"},Yl={[Y.Outline]:"chip-border-default",[Y.Elevated]:"border-transparent",[Y.Success]:"border-success-surface",[Y.Brand]:"chip-border-color-brand",[Y.Error]:"border-error-surface"},ql={[Y.Outline]:"chip-text-default",[Y.Elevated]:"chip-text-secondary",[Y.Success]:"chip-text-secondary",[Y.Brand]:"chip-text-brand",[Y.Error]:"chip-text-secondary"},Ql="focus-visible:shadow-[0_0_0_2px] focus-visible:chip-focus-ring focus-visible:outline-none",Jl="chip-close-icon-opacity group-hover:opacity-100 group-focus:opacity-100 group-active:opacity-100";function Rl({label:e,type:t=Y.Outline,selected:r,showClose:n,onClose:o,onClick:l,avatar:i,leadingElement:c,trailingElement:f,disabled:u,size:v=Pt.Default,...m}){const b=t===Y.Outline&&r,S=r?t===Y.Outline?"outline-transparent names:outline-names-neutral-20":"chip-outline-color":"outline-transparent",y=w("group-focus:chip-outline-color-active",t===Y.Outline&&"names:group-focus:outline-transparent"),p=r&&!u&&t!==Y.Outline?Kl:"";return a.jsx(se,{onClick:l,className:w("group border disabled:opacity-40",Nn,b?Xl[Y.Outline]:$l[t],r?"border-transparent":Yl[t]),disabled:u,...m,children:a.jsxs("span",{className:w("flex h-full w-full flex-row items-center gap-x-2",i?"py-xxs":"py-[6px]",i?"pl-xxs":c?"pl-xs":"pl-sm",n?"pr-xs":"pr-sm",Nn,b?Zl[Y.Outline]:ql[t],S,!u&&y,!u&&zl,Ql,p),children:[i??c,a.jsx("span",{className:w(v===Pt.Small?"text-label-md":"text-body-md"),children:e}),f,n&&a.jsx(se,{onClick:E=>{E.stopPropagation(),o==null||o()},disabled:u,"aria-label":"Remove",children:a.jsx(gt,{className:w("h-4 w-4 transition-opacity duration-150",u?"":r?"opacity-100":Jl)})})]})})}var $e=(e=>(e.Outlined="outlined",e.Filled="filled",e.Transparent="transparent",e))($e||{});const ei={[$e.Outlined]:"bg-transparent",[$e.Filled]:"segmented-filled-bg-color",[$e.Transparent]:"bg-transparent"},ti="border segmented-outlined-border";function ri({type:e=$e.Filled,children:t,shape:r=He.Rounded}){const n=ei[e],o=e===$e.Outlined?ti:"",l=r===He.Rounded?"rounded-full gap-1 p-xxs":"",i=r===He.Rounded?"flex-wrap":"flex-nowrap overflow-x-auto";return a.jsx("div",{className:w("flex flex-row",n,o,l,i),children:t})}var ze=(e=>(e.Small="small",e.Medium="medium",e))(ze||{});const ni={[ze.Small]:"px-md py-sm--rs",[ze.Medium]:"px-md--rs py-sm--rs"},ai={[ze.Small]:"text-title-md",[ze.Medium]:"text-title-lg"};function oi({title:e,subtitle:t,trailingElement:r,tooltipText:n,supportingElement:o,tooltipPosition:l,size:i=ze.Medium,testId:c}){return a.jsxs("div",{className:w("flex flex-row items-center justify-between",ni[i]),"data-testid":c,children:[a.jsxs("div",{className:"flex flex-row items-center gap-x-xxxs",children:[a.jsxs("div",{className:"flex flex-col justify-start",children:[a.jsxs("div",{className:"title-main-color flex flex-row items-center gap-x-0.5",children:[a.jsx("h4",{className:w(ai[i]),children:e}),n&&a.jsx(Ge,{text:n,position:l,children:a.jsx(Dt,{className:"title-icon-color"})})]}),a.jsx("p",{className:"title-subtitle-color text-label-md",children:t})]}),o]}),r]})}const Tn="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",An="input-text-color",On="input-placeholder-color",li="[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none disabled:cursor-not-allowed",Dn="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",ii="flex flex-col gap-y-2 text-label-lg input-label-color";var Ln=(e=>(e.Label="label",e.Div="div",e))(Ln||{});function fr({label:e,caption:t,disabled:r,errorMessage:n,amountCounter:o,required:l,labelHtmlTag:i="label",children:c}){return a.jsxs("div",{className:w("group flex w-full flex-col gap-y-2",{"cursor-not-allowed opacity-40":r,errored:n,enabled:!r,required:l}),children:[e?a.jsxs(si,{labelHtmlTag:i,children:[e,c]}):c,(n||t||o)&&a.jsxs("div",{className:w("flex flex-row items-center",t||n?"justify-between gap-md":"justify-end"),children:[(n||t)&&a.jsx(mt,{hasErrorStyles:!0,children:n||t}),o&&a.jsx(mt,{children:o})]})]})}function si({labelHtmlTag:e,children:t}){return T.createElement(e,{className:ii},t)}var ve=(e=>(e.Text="text",e.Password="password",e.Number="number",e.NumericFormat="numericFormat",e))(ve||{}),In=(e=>(e.None="none",e.Vertical="vertical",e))(In||{});function Pn(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var bt;(function(e){e.event="event",e.props="prop"})(bt||(bt={}));function Be(){}function ci(e){var t,r=void 0;return function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return t&&n.length===t.length&&n.every(function(l,i){return l===t[i]})||(t=n,r=e.apply(void 0,n)),r}}function xt(e){return!!(e||"").match(/\d/)}function rt(e){return e==null}function di(e){return typeof e=="number"&&isNaN(e)}function kn(e){return rt(e)||di(e)||typeof e=="number"&&!isFinite(e)}function Bn(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function ui(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function fi(e,t,r){var n=ui(r),o=e.search(/[1-9]/);return o=o===-1?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(n,"$1"+t)}function hi(e){var t=T.useRef(e);t.current=e;var r=T.useRef(function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return t.current.apply(t,n)});return r.current}function hr(e,t){t===void 0&&(t=!0);var r=e[0]==="-",n=r&&t;e=e.replace("-","");var o=e.split("."),l=o[0],i=o[1]||"";return{beforeDecimal:l,afterDecimal:i,hasNegation:r,addNegation:n}}function gi(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",o=r[1]||"";return(t?"-":"")+n+(o?"."+o:"")}function Mn(e,t,r){for(var n="",o=r?"0":"",l=0;l<=t-1;l++)n+=e[l]||o;return n}function Fn(e,t){return Array(t+1).join(e)}function Vn(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),o=n[0],l=n[1];if(l=Number(l),!l)return r+o;o=o.replace(".","");var i=1+l,c=o.length;return i<0?o="0."+Fn("0",Math.abs(i))+o:i>=c?o=o+Fn("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),r+o}function Un(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||r)&&t,o=hr(e),l=o.beforeDecimal,i=o.afterDecimal,c=o.hasNegation,f=parseFloat("0."+(i||"0")),u=i.length<=t?"0."+i:f.toFixed(t),v=u.split("."),m=l;l&&Number(v[0])&&(m=l.split("").reverse().reduce(function(p,E,C){return p.length>C?(Number(p[0])+Number(E)).toString()+p.substring(1,p.length):E+p},v[0]));var b=Mn(v[1]||"",t,r),S=c?"-":"",y=n?".":"";return""+S+m+y+b}function Xe(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var Wn=ci(function(e,t){for(var r=0,n=0,o=e.length,l=t.length;e[r]===t[r]&&r<o;)r++;for(;e[o-1-n]===t[l-1-n]&&l-n>r&&o-n>r;)n++;return{from:{start:r,end:o-n},to:{start:r,end:l-n}}}),vi=function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}};function pi(e,t,r){return Math.min(Math.max(e,t),r)}function gr(e){return Math.max(e.selectionStart,e.selectionEnd)}function mi(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function bi(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function xi(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,o=e.formattedValueIndex;return t[n]===r[o]}function wi(e,t,r,n,o,l,i){i===void 0&&(i=xi);var c=o.findIndex(function(P){return P}),f=e.slice(0,c);!t&&!r.startsWith(f)&&(t=f,r=f+r,n=n+f.length);for(var u=r.length,v=e.length,m={},b=new Array(u),S=0;S<u;S++){b[S]=-1;for(var y=0,p=v;y<p;y++){var E=i({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:S,formattedValueIndex:y});if(E&&m[y]!==!0){b[S]=y,m[y]=!0;break}}}for(var C=n;C<u&&(b[C]===-1||!l(r[C]));)C++;var I=C===u||b[C]===-1?v:b[C];for(C=n-1;C>0&&b[C]===-1;)C--;var _=C===-1||b[C]===-1?0:b[C]+1;return _>I?I:n-_<I-n?_:I}function jn(e,t,r,n){var o=e.length;if(t=pi(t,0,o),n==="left"){for(;t>=0&&!r[t];)t--;t===-1&&(t=r.indexOf(!0))}else{for(;t<=o&&!r[t];)t++;t>o&&(t=r.lastIndexOf(!0))}return t===-1&&(t=o),t}function yi(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=!!(xt(e[r])||xt(e[r-1]));return t}function Hn(e,t,r,n,o,l){l===void 0&&(l=Be);var i=hi(function(y,p){var E,C;return kn(y)?(C="",E=""):typeof y=="number"||p?(C=typeof y=="number"?Vn(y):y,E=n(C)):(C=o(y,void 0),E=n(C)),{formattedValue:E,numAsString:C}}),c=T.useState(function(){return i(rt(e)?t:e,r)}),f=c[0],u=c[1],v=function(y,p){y.formattedValue!==f.formattedValue&&u({formattedValue:y.formattedValue,numAsString:y.value}),l(y,p)},m=e,b=r;rt(e)&&(m=f.numAsString,b=!0);var S=i(m,b);return T.useMemo(function(){u(S)},[S.formattedValue]),[f,v]}function Si(e){return e.replace(/[^0-9]/g,"")}function Ei(e){return e}function Ci(e){var t=e.type;t===void 0&&(t="text");var r=e.displayType;r===void 0&&(r="input");var n=e.customInput,o=e.renderText,l=e.getInputRef,i=e.format;i===void 0&&(i=Ei);var c=e.removeFormatting;c===void 0&&(c=Si);var f=e.defaultValue,u=e.valueIsNumericString,v=e.onValueChange,m=e.isAllowed,b=e.onChange;b===void 0&&(b=Be);var S=e.onKeyDown;S===void 0&&(S=Be);var y=e.onMouseUp;y===void 0&&(y=Be);var p=e.onFocus;p===void 0&&(p=Be);var E=e.onBlur;E===void 0&&(E=Be);var C=e.value,I=e.getCaretBoundary;I===void 0&&(I=yi);var _=e.isValidInputCharacter;_===void 0&&(_=xt);var P=e.isCharacterSame,k=Pn(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),K=Hn(C,f,!!u,i,c,v),N=K[0],A=N.formattedValue,G=N.numAsString,V=K[1],re=T.useRef(),ce=T.useRef({formattedValue:A,numAsString:G}),_e=function(O,L){ce.current={formattedValue:O.formattedValue,numAsString:O.value},V(O,L)},We=T.useState(!1),Qe=We[0],F=We[1],B=T.useRef(null),q=T.useRef({setCaretTimeout:null,focusTimeout:null});T.useEffect(function(){return F(!0),function(){clearTimeout(q.current.setCaretTimeout),clearTimeout(q.current.focusTimeout)}},[]);var ne=i,ae=function(O,L){var M=parseFloat(L);return{formattedValue:O,value:L,floatValue:isNaN(M)?void 0:M}},R=function(O,L,M){O.selectionStart===0&&O.selectionEnd===O.value.length||(Xe(O,L),q.current.setCaretTimeout=setTimeout(function(){O.value===M&&O.selectionStart!==L&&Xe(O,L)},0))},oe=function(O,L,M){return jn(O,L,I(O),M)},H=function(O,L,M){var z=I(L),ie=wi(L,A,O,M,z,_,P);return ie=jn(L,ie,z),ie},st=function(O){var L=O.formattedValue;L===void 0&&(L="");var M=O.input,z=O.source,ie=O.event,X=O.numAsString,U;if(M){var he=O.inputValue||M.value,xe=gr(M);M.value=L,U=H(he,L,xe),U!==void 0&&R(M,U,L)}L!==A&&_e(ae(L,X),{event:ie,source:z})};T.useEffect(function(){var O=ce.current,L=O.formattedValue,M=O.numAsString;(A!==L||G!==M)&&_e(ae(A,G),{event:void 0,source:bt.props})},[A,G]);var Je=B.current?gr(B.current):void 0,Ne=typeof window<"u"?T.useLayoutEffect:T.useEffect;Ne(function(){var O=B.current;if(A!==ce.current.formattedValue&&O){var L=H(ce.current.formattedValue,A,Je);O.value=A,R(O,L,A)}},[A]);var ct=function(O,L,M){var z=L.target,ie=re.current?vi(re.current,z.selectionEnd):Wn(A,O),X=Object.assign(Object.assign({},ie),{lastValue:A}),U=c(O,X),he=ne(U);if(U=c(he,void 0),m&&!m(ae(he,U))){var xe=L.target,Te=gr(xe),Et=H(O,A,Te);return xe.value=A,R(xe,Et,A),!1}return st({formattedValue:he,numAsString:U,inputValue:O,event:L,source:M,input:L.target}),!0},Le=function(O,L){L===void 0&&(L=0);var M=O.selectionStart,z=O.selectionEnd;re.current={selectionStart:M,selectionEnd:z+L}},Zt=function(O){var L=O.target,M=L.value,z=ct(M,O,bt.event);z&&b(O),re.current=void 0},St=function(O){var L=O.target,M=O.key,z=L.selectionStart,ie=L.selectionEnd,X=L.value;X===void 0&&(X="");var U;M==="ArrowLeft"||M==="Backspace"?U=Math.max(z-1,0):M==="ArrowRight"?U=Math.min(z+1,X.length):M==="Delete"&&(U=z);var he=0;M==="Delete"&&z===ie&&(he=1);var xe=M==="ArrowLeft"||M==="ArrowRight";if(U===void 0||z!==ie&&!xe){S(O),Le(L,he);return}var Te=U;if(xe){var Et=M==="ArrowLeft"?"left":"right";Te=oe(X,U,Et),Te!==U&&O.preventDefault()}else M==="Delete"&&!_(X[U])?Te=oe(X,U,"right"):M==="Backspace"&&!_(X[U])&&(Te=oe(X,U,"left"));Te!==U&&R(L,Te,X),S(O),Le(L,he)},Yt=function(O){var L=O.target,M=function(){var z=L.selectionStart,ie=L.selectionEnd,X=L.value;if(X===void 0&&(X=""),z===ie){var U=oe(X,z);U!==z&&R(L,U,X)}};M(),requestAnimationFrame(function(){M()}),y(O),Le(L)},qt=function(O){O.persist&&O.persist();var L=O.target,M=O.currentTarget;B.current=L,q.current.focusTimeout=setTimeout(function(){var z=L.selectionStart,ie=L.selectionEnd,X=L.value;X===void 0&&(X="");var U=oe(X,z);U!==z&&!(z===0&&ie===X.length)&&R(L,U,X),p(Object.assign(Object.assign({},O),{currentTarget:M}))},0)},Pr=function(O){B.current=null,clearTimeout(q.current.focusTimeout),clearTimeout(q.current.setCaretTimeout),E(O)},kr=Qe&&mi()?"numeric":void 0,Qt=Object.assign({inputMode:kr},k,{type:t,value:A,onChange:Zt,onKeyDown:St,onMouseUp:Yt,onFocus:qt,onBlur:Pr});if(r==="text")return o?T.createElement(T.Fragment,null,o(A,k)||null):T.createElement("span",Object.assign({},k,{ref:l}),A);if(n){var Br=n;return T.createElement(Br,Object.assign({},Qt,{ref:l}))}return T.createElement("input",Object.assign({},Qt,{ref:l}))}function Gn(e,t){var r=t.decimalScale,n=t.fixedDecimalScale,o=t.prefix;o===void 0&&(o="");var l=t.suffix;l===void 0&&(l="");var i=t.allowNegative,c=t.thousandsGroupStyle;if(c===void 0&&(c="thousand"),e===""||e==="-")return e;var f=kt(t),u=f.thousandSeparator,v=f.decimalSeparator,m=r!==0&&e.indexOf(".")!==-1||r&&n,b=hr(e,i),S=b.beforeDecimal,y=b.afterDecimal,p=b.addNegation;return r!==void 0&&(y=Mn(y,r,!!n)),u&&(S=fi(S,u,c)),o&&(S=o+S),l&&(y=y+l),p&&(S="-"+S),e=S+(m&&v||"")+y,e}function kt(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return r===!0&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function _i(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),o=r.test(e),l=n.test(e);return e=e.replace(/-/g,""),o&&!l&&t&&(e="-"+e),e}function Ni(e,t){return new RegExp("(^-)|[0-9]|"+Bn(e),"g")}function Ti(e,t,r){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(r!=null&&r.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function Ai(e,t,r){var n;t===void 0&&(t=bi(e));var o=r.allowNegative,l=r.prefix;l===void 0&&(l="");var i=r.suffix;i===void 0&&(i="");var c=r.decimalScale,f=t.from,u=t.to,v=u.start,m=u.end,b=kt(r),S=b.allowedDecimalSeparators,y=b.decimalSeparator,p=e[m]===y;if(xt(e)&&(e===l||e===i)&&t.lastValue==="")return e;if(m-v===1&&S.indexOf(e[v])!==-1){var E=c===0?"":y;e=e.substring(0,v)+E+e.substring(v+1,e.length)}var C=function(B,q,ne){var ae=!1,R=!1;l.startsWith("-")?ae=!1:B.startsWith("--")?(ae=!1,R=!0):i.startsWith("-")&&B.length===i.length?ae=!1:B[0]==="-"&&(ae=!0);var oe=ae?1:0;return R&&(oe=2),oe&&(B=B.substring(oe),q-=oe,ne-=oe),{value:B,start:q,end:ne,hasNegation:ae}},I=C(e,v,m),_=I.hasNegation;n=I,e=n.value,v=n.start,m=n.end;var P=C(t.lastValue,f.start,f.end),k=P.start,K=P.end,N=P.value,A=e.substring(v,m);e.length&&N.length&&(k>N.length-i.length||K<l.length)&&!(A&&i.startsWith(A))&&(e=N);var G=0;e.startsWith(l)?G+=l.length:v<l.length&&(G=v),e=e.substring(G),m-=G;var V=e.length,re=e.length-i.length;e.endsWith(i)?V=re:(m>re||m>e.length-i.length)&&(V=m),e=e.substring(0,V),e=_i(_?"-"+e:e,o),e=(e.match(Ni(y))||[]).join("");var ce=e.indexOf(y);e=e.replace(new RegExp(Bn(y),"g"),function(B,q){return q===ce?".":""});var _e=hr(e,o),We=_e.beforeDecimal,Qe=_e.afterDecimal,F=_e.addNegation;return u.end-u.start<f.end-f.start&&We===""&&p&&!parseFloat(Qe)&&(e=F?"-":""),e}function Oi(e,t){var r=t.prefix;r===void 0&&(r="");var n=t.suffix;n===void 0&&(n="");var o=Array.from({length:e.length+1}).map(function(){return!0}),l=e[0]==="-";o.fill(!1,0,r.length+(l?1:0));var i=e.length;return o.fill(!1,i-n.length+1,i+1),o}function Di(e){var t=kt(e),r=t.thousandSeparator,n=t.decimalSeparator,o=e.prefix;o===void 0&&(o="");var l=e.allowNegative;if(l===void 0&&(l=!0),r===n)throw new Error(`
|
|
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`,`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`,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)};return(0,n.useLayoutEffect)(()=>{if(!f)return;let e=u.current?.getBoundingClientRect();if(!e)return;let t={[yt.Top]:{top:e.top-o,left:e.left+e.width/2,transform:`translate(-50%, -100%)`},[yt.Bottom]:{top:e.bottom+o,left:e.left+e.width/2,transform:`translate(-50%, 0)`},[yt.Left]:{top:e.top+e.height/2,left:e.left-o,transform:`translate(-100%, -50%)`},[yt.Right]:{top:e.top+e.height/2,left:e.right+o,transform:`translate(0, -50%)`}}[i];h({top:t.top,left:t.left}),d.current.style.transform=t.transform},[f,i,o]),(0,n.useLayoutEffect)(()=>{if(!f)return;let e=()=>{let e=u.current?.getBoundingClientRect();e&&h(t=>({...t,left:e.left+e.width/2}))};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,value:n,tooltipPosition:r,tooltipText:i,supportingLabel:a,size:o=vt.Small,isTruncated:s=!1,copyText:c,onCopySuccess:l,onCopyError:u,fullwidth:d,isReverse:f=!1,valueHoverTitle:p}){let m=f?`flex-row-reverse`:`flex-row`;async function h(e){if(navigator.clipboard&&c)try{await navigator.clipboard.writeText(c),l?.(e,c)}catch(e){console.error(`Failed to copy:`,e),u?.(e,c)}}return(0,t.jsxs)(`div`,{className:(0,N.default)(`flex w-full items-baseline gap-xs py-xxs font-inter`,m,{"justify-between":d}),children:[(0,t.jsxs)(`div`,{className:(0,N.default)(`flex shrink-0 flex-row items-center gap-x-0.5`,{"w-1/4":!d}),children:[(0,t.jsx)(`span`,{className:`key-value-key-text-color text-body-md`,children:e}),i&&(0,t.jsx)(bt,{text:i,position:r,children:(0,t.jsx)(Ue,{className:`key-supporting-text-color`})})]}),(0,t.jsxs)(`div`,{className:(0,N.default)(`flex flex-row items-baseline gap-1 break-all`,{"w-3/4":!d,truncate:s}),children:[(0,t.jsx)(`span`,{title:p,className:(0,N.default)(`key-value-hover-text-color`,o===vt.Medium?`text-body-lg`:`text-body-md`,{truncate:s}),children:n}),a&&(0,t.jsx)(`span`,{className:(0,N.default)(`key-supporting-text-color`,o===vt.Medium?`text-body-md`:`text-body-sm`),children:a}),(0,t.jsx)(`div`,{className:`self-center`,children:c&&(0,t.jsx)(z,{onClick:h,"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 pl-xs":a===Mt.Elevated}),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(`
|
|
14
10
|
Decimal separator can't be same as thousand separator.
|
|
15
|
-
thousandSeparator: `+
|
|
16
|
-
decimalSeparator: `+
|
|
17
|
-
`);return
|
|
11
|
+
thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
12
|
+
decimalSeparator: `+r+` (default value for decimalSeparator is .)
|
|
13
|
+
`);return i.startsWith(`-`)&&a&&(console.error(`
|
|
18
14
|
Prefix can't start with '-' when allowNegative is true.
|
|
19
|
-
prefix: `+
|
|
20
|
-
allowNegative: `+
|
|
21
|
-
`),l=!1),Object.assign(Object.assign({},e),{allowNegative:l})}function Li(e){e=Di(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,r=e.allowNegative,n=e.allowLeadingZeros,o=e.onKeyDown;o===void 0&&(o=Be);var l=e.onBlur;l===void 0&&(l=Be);var i=e.thousandSeparator,c=e.decimalScale,f=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var v=e.defaultValue,m=e.value,b=e.valueIsNumericString,S=e.onValueChange,y=Pn(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),p=kt(e),E=p.decimalSeparator,C=p.allowedDecimalSeparators,I=function(F){return Gn(F,e)},_=function(F,B){return Ai(F,B,e)},P=rt(m)?v:m,k=b??Ti(P,u,t);rt(m)?rt(v)||(k=k||typeof v=="number"):k=k||typeof m=="number";var K=function(F){return kn(F)?F:(typeof F=="number"&&(F=Vn(F)),k&&typeof c=="number"?Un(F,c,!!f):F)},N=Hn(K(m),K(v),!!k,I,_,S),A=N[0],G=A.numAsString,V=A.formattedValue,re=N[1],ce=function(F){var B=F.target,q=F.key,ne=B.selectionStart,ae=B.selectionEnd,R=B.value;if(R===void 0&&(R=""),(q==="Backspace"||q==="Delete")&&ae<u.length){F.preventDefault();return}if(ne!==ae){o(F);return}q==="Backspace"&&R[0]==="-"&&ne===u.length+1&&r&&Xe(B,1),c&&f&&(q==="Backspace"&&R[ne-1]===E?(Xe(B,ne-1),F.preventDefault()):q==="Delete"&&R[ne]===E&&F.preventDefault()),C!=null&&C.includes(q)&&R[ne]===E&&Xe(B,ne+1);var oe=i===!0?",":i;q==="Backspace"&&R[ne-1]===oe&&Xe(B,ne-1),q==="Delete"&&R[ne]===oe&&Xe(B,ne+1),o(F)},_e=function(F){var B=G;if(B.match(/\d/g)||(B=""),n||(B=gi(B)),f&&c&&(B=Un(B,c,f)),B!==G){var q=Gn(B,e);re({formattedValue:q,value:B,floatValue:parseFloat(B)},{event:F,source:bt.event})}l(F)},We=function(F){return F===E?!0:xt(F)},Qe=function(F){var B=F.currentValue,q=F.lastValue,ne=F.formattedValue,ae=F.currentValueIndex,R=F.formattedValueIndex,oe=B[ae],H=ne[R],st=Wn(q,B),Je=st.to,Ne=function(ct){return _(ct).indexOf(".")+u.length};return m===0&&f&&c&&B[Je.start]===E&&Ne(B)<ae&&Ne(ne)>R?!1:ae>=Je.start&&ae<Je.end&&C&&C.includes(oe)&&H===E?!0:oe===H};return Object.assign(Object.assign({},y),{value:V,valueIsNumericString:!1,isValidInputCharacter:We,isCharacterSame:Qe,onValueChange:re,format:I,removeFormatting:_,getCaretBoundary:function(F){return Oi(F,e)},onKeyDown:ce,onBlur:_e})}function Ii(e){var t=Li(e);return T.createElement(Ci,Object.assign({},t))}const Pi=T.forwardRef(function({label:t,caption:r,disabled:n,errorMessage:o,leadingIcon:l,supportingText:i,amountCounter:c,trailingElement:f,isContentVisible:u,value:v,supportingValue:m,defaultValue:b,onClearInput:S,isVisibilityToggleEnabled:y,type:p,...E},C){y??(y=p===ve.Password);const I=T.useRef(null),[_,P]=T.useState(u??p!==ve.Password);T.useEffect(()=>{P(u??p!==ve.Password)},[p,u]);function k(){P(N=>!N)}function K(){var N;I.current&&((N=I.current.querySelector("input"))==null||N.focus())}return a.jsx(fr,{label:t,caption:r,disabled:n,errorMessage:o,amountCounter:c,required:E.required,children:a.jsxs("div",{className:w("input-container relative flex flex-row items-center gap-x-3",Dn),onClick:K,ref:I,children:[l&&a.jsx("span",{className:"input-icon-color",children:l}),a.jsxs("div",{className:"flex flex-1 flex-col items-start",children:[a.jsx(ki,{...E,inputRef:C,value:v,type:p===ve.Password&&_?ve.Text:p,disabled:n,className:w(Tn,An,On,li)}),m&&a.jsx("span",{className:"text-label-md text-iota-neutral-60 names:text-iota-neutral-60 dark:text-iota-neutral-40",children:m})]}),i&&a.jsx(mt,{children:i}),a.jsx(Mi,{value:v,type:p,onClearInput:S,isContentVisible:_,trailingElement:f,isVisibilityToggleEnabled:y,onToggleButtonClick:k})]})})});function ki({type:e,inputRef:t,...r}){function n(o){if(e===ve.Number){const l=o.currentTarget;l.blur(),o.stopPropagation(),setTimeout(()=>{l.focus({preventScroll:!0})},0)}}return e===ve.NumericFormat?a.jsx(Bi,{inputRef:t,...r,type:e}):a.jsx("input",{ref:t,...r,type:e,onWheel:o=>{var l;n(o),(l=r.onWheel)==null||l.call(r,o)}})}function Bi({inputRef:e,className:t,type:r,...n}){return a.jsx(Ii,{className:t,valueIsNumericString:!0,getInputRef:e,...n})}function Mi({value:e,type:t,onClearInput:r,isContentVisible:n,trailingElement:o,onToggleButtonClick:l,isVisibilityToggleEnabled:i}){const c=!!(t===ve.Text&&e&&r),f=!!(t===ve.Password&&i),u=!!(o&&!c&&!f);if(c)return a.jsx(se,{className:"input-icon-color [&_svg]:h-5 [&_svg]:w-5",onClick:r,tabIndex:-1,"aria-label":"Clear input",children:a.jsx(gt,{})});if(f)return a.jsx(se,{onClick:l,className:"input-icon-color [&_svg]:h-5 [&_svg]:w-5",tabIndex:-1,"aria-label":"Toggle visibility",children:n?a.jsx(gn,{}):a.jsx(hn,{})});if(u)return a.jsx(T.Fragment,{children:o})}const Fi=T.forwardRef(function({label:t,caption:r,disabled:n,errorMessage:o,value:l,amountCounter:i,isVisibilityToggleEnabled:c,isResizeEnabled:f,required:u,isContentVisible:v,defaultValue:m,...b},S){const[y,p]=T.useState(v??!0);T.useEffect(()=>{p(v??!0)},[v]);function E(){p(C=>!C)}return a.jsx(fr,{label:t,caption:r,disabled:n||!y,errorMessage:o,amountCounter:i,required:u,children:a.jsxs("div",{className:"relative",children:[a.jsx("textarea",{disabled:n||!y,required:u,ref:S,className:w("text-area-container peer block min-h-[50px]",Dn,Tn,An,On,y&&f?"resize-y":"resize-none",!y&&"not-visible select-none text-transparent"),defaultValue:y&&m?m:void 0,value:y&&l?l:void 0,...b}),!y&&a.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:a.jsx(Vi,{rows:3,halfWidthRow:3})}),c&&a.jsx("span",{className:"absolute bottom-4 right-4 flex",children:a.jsx(se,{onClick:E,className:"input-icon-color [&_svg]:h-5 [&_svg]:w-5",tabIndex:-1,children:y?a.jsx(gn,{}):a.jsx(hn,{})})})]})})});function Vi({rows:e,halfWidthRow:t}){return a.jsx(a.Fragment,{children:Array.from({length:e}).map((r,n)=>{const l=t===n+1?"w-1/2":"w-full";return a.jsx("div",{className:`input-visibility-bar h-2.5 rounded ${l}`},n)})})}var Bt=(e=>(e.Horizontal="horizontal",e.Vertical="vertical",e))(Bt||{});const $n="navbar-item-icon-selected-color",zn="navbar-item-icon-color",Ui="py-xxs px-sm",Wi="p-sm",Xn="bg-shader-primary-light-12 dark:bg-shader-primary-dark-12",ji="-top-3 right-3",Hi="-top-1 right-3",Kn="navbar-item-label-selected-color",Zn="navbar-item-label-color";function Gi({icon:e,text:t,isSelected:r,hasBadge:n,onClick:o,isDisabled:l=!1,...i}){const c=r?$n:zn,f=t?Ui:Wi,u=r&&Xn,v=t?ji:Hi,m=r?Kn:Zn,b=l?"cursor-not-allowed opacity-60":"state-layer-secondary",S=y=>{if(l){y.preventDefault();return}o==null||o(y)};return a.jsxs("div",{onClick:S,role:"button",className:w("inline-flex cursor-pointer flex-col items-center justify-center space-y-1"),...i,children:[a.jsxs("div",{className:w("relative inline-flex rounded-full",f,u,b),children:[a.jsx("div",{className:w("inline-flex [&_svg]:h-6 [&_svg]:w-6",c),children:e}),n&&a.jsx("div",{className:w("absolute",v),children:a.jsx(ft,{type:te.PrimarySolid})})]}),t&&a.jsx("span",{className:w("text-center text-label-md",m),children:t})]})}function $i({icon:e,text:t,isSelected:r,hasBadge:n,onClick:o,isDisabled:l=!1,...i}){const c=r?$n:zn,f=r&&Xn,u=r?Kn:Zn,v=l?"cursor-not-allowed opacity-60":"state-layer-secondary cursor-pointer ",m=b=>{if(l){b.preventDefault();return}o==null||o(b)};return a.jsxs("div",{onClick:m,role:"button",className:w("relative inline-flex w-full flex-row items-center justify-between rounded-full p-sm",f,v),...i,children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:w("inline-flex [&_svg]:h-6 [&_svg]:w-6",c),children:e}),t&&a.jsx("span",{className:w("text-center text-label-lg",u),children:t})]}),n&&a.jsx(ft,{type:te.PrimarySolid})]})}function vr(e){const{type:t,text:r}=e;return t===Bt.Vertical&&r?a.jsx($i,{...e}):a.jsx(Gi,{...e})}function zi({title:e,subtitle:t,badgeType:r,badgeText:n,avatarContent:o,onOptionsClick:l,onCopy:i,copyText:c,onOpen:f,isCopyable:u,isExternal:v,isSelected:m,isActive:b,showSelected:S,badgeTooltipText:y,badgeTooltipPosition:p=ke.Bottom}){const E=o;return a.jsx("div",{"data-testid":"account-tile",className:w("state-layer group relative flex w-full items-center justify-between space-x-3 rounded-xl px-sm py-xs hover:cursor-pointer",b&&"state-active"),children:a.jsxs("div",{className:"flex w-full items-center gap-x-3",children:[a.jsx("div",{children:a.jsx(E,{})}),a.jsxs("div",{className:"flex w-full min-w-0 flex-col items-start py-xs",children:[a.jsxs("div",{className:"flex w-full min-w-0 items-center space-x-2",children:[a.jsx("p",{className:"account-title-color min-w-0 max-w-full truncate font-inter text-title-md",children:e}),n&&r?y?a.jsx(Ge,{text:y,position:p,children:a.jsx(ft,{type:r,label:n})}):a.jsx(ft,{type:r,label:n}):null]}),a.jsx(Cn,{text:t,onCopySuccess:i,copyText:c,onOpen:f,isCopyable:u,isExternal:v})]}),a.jsxs("div",{className:"ml-auto flex items-center space-x-2 [&_button]:h-5 [&_button]:w-5 [&_svg]:h-5 [&_svg]:w-5",children:[a.jsx("div",{className:"account-icon-color flex items-center space-x-2 [&_button:not(.locked)]:invisible group-hover:[&_button:not(.locked)]:visible",children:l&&a.jsx(se,{onClick:l,"aria-label":"More options",children:a.jsx(dn,{})})}),S&&a.jsx(se,{"aria-label":"Checkmark",children:m?a.jsx(Jo,{className:"account-check-active-color h-5 w-5"}):a.jsx(un,{className:"account-check-inactive-color h-5 w-5"})})]})]})})}function Yn({children:e}){return a.jsx("ul",{className:"dropdown-bg dropdown-border-color list-none rounded-lg border py-xs",children:e})}var Mt=(e=>(e.Top="top",e.Bottom="bottom",e))(Mt||{});function qn({children:e,hasLastBorderNoneClass:t,isContentCentered:r}){return a.jsx("td",{className:w("table-cell-border-color h-14 border-b px-md",{"last:border-none":t},{"flex items-center justify-center":r}),children:e})}function Xi({children:e,supportingLabel:t}){return a.jsxs("div",{className:"flex flex-row items-baseline gap-1",children:[a.jsx("span",{children:e}),t&&a.jsx("span",{className:"table-cell-supporting-label-color text-body-sm",children:t})]})}function Ki(){return a.jsx(wn,{})}var wt=(e=>(e.Small="small",e.Default="default",e))(wt||{});const Zi=T.forwardRef(({disabled:e,label:t,leadingIcon:r,supportingText:n,errorMessage:o,caption:l,options:i,placeholder:c,onValueChange:f,onOptionClick:u,value:v,dropdownPosition:m=Mt.Bottom,size:b=wt.Default,...S},y)=>{const[p,E]=T.useState(!1),C=K(v,i),I=T.useRef(null),_=C||c,P=b===wt.Small?"px-sm":"px-md",k=b===wt.Small?"text-body-md":"text-body-lg";T.useEffect(()=>{e&&p&&G()},[e,p]),T.useEffect(()=>{if(!p)return;const V=re=>{const ce=re.target;I.current&&!I.current.contains(ce)&&G()};return document.addEventListener("mousedown",V),()=>{document.removeEventListener("mousedown",V)}},[p]);function K(V,re=[]){return re.find(ce=>typeof ce=="string"?ce===V:ce.id===V)??re[0]}function N(){E(V=>!V)}function A(V){G();const re=typeof V=="string"?V:V.id;u==null||u(re),V!==C&&(f==null||f(re))}function G(){E(!1)}return a.jsx(fr,{label:t,caption:l,disabled:e,errorMessage:o,labelHtmlTag:Ln.Div,children:a.jsxs("div",{className:"relative flex w-full flex-col",ref:I,children:[a.jsxs(se,{ref:y,onClick:N,disabled:e,"aria-expanded":p,"aria-haspopup":"listbox",className:w("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",P),...S,children:[r&&a.jsx("span",{className:"select-icon-color",children:r}),a.jsxs("div",{className:"flex w-full flex-row items-baseline gap-x-3",children:[_&&a.jsx("div",{className:w("select-label-color block w-full text-start",k),children:a.jsx(Qn,{option:_})}),n&&a.jsx("div",{className:"ml-auto",children:a.jsx(mt,{children:n})})]}),a.jsx(sl,{className:w("select-icon-color transition-transform",{" rotate-180":p})})]}),p&&a.jsx("div",{className:"fixed left-0 top-0 z-[49] bg-transparent",onClick:G}),p&&a.jsx("div",{className:w("absolute z-50 min-w-full animate-dropdown-show",m===Mt.Top?"bottom-full origin-bottom":"top-full origin-top"),children:a.jsx(Yn,{children:i.map(V=>{const re=typeof V=="string";return a.jsx(pn,{onClick:()=>A(V),hideBottomBorder:!0,children:a.jsx(Qn,{option:V})},re?V:V.id)})})})]})})});function Qn({option:e}){return typeof e=="string"?e:"renderLabel"in e?e.renderLabel():e.label}var Oe=(e=>(e.Asc="asc",e.Desc="desc",e))(Oe||{});function Jn({label:e,columnKey:t,hasSort:r,hasCheckbox:n,isChecked:o,isIndeterminate:l,isContentCentered:i,onSortClick:c,onCheckboxChange:f,sortOrder:u,...v}){const m=()=>{const p=u===Oe.Asc?Oe.Desc:Oe.Asc;c&&c(t,p)},b="table-header-text-color",S="text-label-lg",y=r?u===Oe.Asc?a.jsx(fn,{className:"shrink-0"}):u===Oe.Desc?a.jsx(il,{className:"shrink-0"}):a.jsx(fn,{className:"invisible shrink-0 group-hover:visible"}):null;return a.jsx("th",{onClick:r?m:void 0,className:w("state-layer table-cell-border-color group relative h-14 border-b px-md after:pointer-events-none",{"cursor-pointer":r}),"aria-sort":r?u===Oe.Asc?"ascending":u===Oe.Desc?"descending":"none":void 0,...v,children:a.jsxs("div",{className:w("flex flex-row items-center gap-1 [&_svg]:h-4 [&_svg]:w-4",b,S,{"justify-center":i}),children:[n?a.jsx(cr,{isChecked:o,isIndeterminate:l,onCheckedChange:f}):a.jsx("span",{className:w({"text-left":!i}),children:e}),y]})})}var pe=(e=>(e.Outlined="outlined",e.Filled="filled",e))(pe||{});const Yi={[pe.Outlined]:"bg-transparent",[pe.Filled]:"search-bg-color-filled"},qi={[pe.Outlined]:"border-l border-r border-t search-border-color",[pe.Filled]:"search-bg-color-filled"},Qi={[pe.Outlined]:"rounded-b-3xl border-b border-l border-r search-border-color search-suggestion-bg-color",[pe.Filled]:"rounded-b-3xl search-bg-color-filled"};function Ji({searchValue:e,suggestions:t,onSearchValueChange:r,onSuggestionClick:n,placeholder:o,isLoading:l=!1,type:i=pe.Outlined,renderSuggestion:c,...f}){const u=T.useRef(null),v=T.useRef(null),[m,b]=T.useState(!0),[S,y]=T.useState(null);function p(N){const A=N.target.value;r(A)}T.useEffect(()=>{const N=A=>{var G;A.key==="Escape"&&(b(!1),(G=u.current)==null||G.blur())};return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[]),T.useEffect(()=>{const N=A=>{var V;const G=u==null?void 0:u.current;!G||G.contains(A==null?void 0:A.target)||(V=v.current)!=null&&V.contains(A.target)||b(!1)};return document.addEventListener("click",N,!0),document.addEventListener("touchstart",N,!0),()=>{document.removeEventListener("click",N,!0),document.removeEventListener("touchstart",N,!0)}},[u]);const E=m&&t&&t.length>0,C=E?w("rounded-t-3xl border-b",i===pe.Outlined?"[&:not(.dark_*,.names_*)]:border-b-transparent":"border-b-transparent"):i===pe.Outlined?"rounded-3xl border-b":"rounded-full",I=qi[i],_=Yi[i],P=Qi[i],k=N=>{var A;n==null||n(N),r(""),b(!1),y(null),(A=u.current)==null||A.blur()},K=N=>{t&&(t==null?void 0:t.length)>0&&(N.key==="ArrowDown"?(N.preventDefault(),y(A=>A===null||A>=t.length-1?0:A+1)):N.key==="ArrowUp"?(N.preventDefault(),y(A=>A===null||A<=0?t.length-1:A-1)):N.key==="Enter"&&(N.preventDefault(),S!==null&&t[S]?k(t[S]):t.length===1&&k(t[0])))};return a.jsxs("div",{className:"relative w-full",children:[a.jsxs("div",{className:w("search-text-color flex items-center overflow-hidden px-md py-sm [&_svg]:h-6 [&_svg]:w-6",C,I),children:[a.jsx("input",{ref:u,type:"text",value:e,onChange:p,onKeyDown:K,onFocus:()=>b(!0),placeholder:o,className:w("search-placeholder-color w-full flex-1 outline-none",_),role:"combobox","aria-expanded":E,"aria-haspopup":"listbox","aria-autocomplete":"list",...f}),a.jsx(ll,{})]}),E&&c&&a.jsxs("div",{ref:v,className:w("absolute left-0 top-full flex w-full flex-col items-center overflow-hidden",P),role:"listbox",children:[a.jsx(vn,{width:"w-11/12"}),l?a.jsx("div",{className:"px-md py-sm",children:a.jsx(cn,{className:"animate-spin"})}):t.map((N,A)=>a.jsx("div",{onClick:()=>k(N),onMouseEnter:()=>y(A),className:w("w-full cursor-pointer px-md py-sm",S===A?"search-selected-index-bg-color":""),role:"option","aria-selected":S===A,"aria-label":N.label,children:c(N,A)},N.id))]})]})}var nt=(e=>(e.Default="default",e.Outlined="outlined",e.Filled="filled",e))(nt||{}),Me=(e=>(e.Placeholder="placeholder",e.BgSolid="bg-solid",e.BgWhite="bg-white",e.BgTransparent="bg-transparent",e))(Me||{}),Ke=(e=>(e.Rounded="rounded",e.SquareRounded="square-rounded",e))(Ke||{}),yt=(e=>(e.Link="link",e.SupportingText="supporting-text",e.Button="button",e))(yt||{});const Ri="cursor-default opacity-40",Rn="h-10 w-10",ea={[Ke.SquareRounded]:`${Rn} rounded-md`,[Ke.Rounded]:`${Rn} rounded-full`},es={[Me.Placeholder]:"",[Me.BgSolid]:"card-image-bg-solid",[Me.BgWhite]:"card-image-bg-white",[Me.BgTransparent]:""},ts={[nt.Default]:"border border-transparent",[nt.Outlined]:"border border-shader-neutral-light-8 dark:border-shader-primary-dark-8 p-xs",[nt.Filled]:"border border-transparent card-filled-bg p-xs"};function rs({isDisabled:e=!1,type:t=nt.Default,isHoverable:r,onClick:n,children:o,testId:l,...i}){function c(){e||n==null||n()}const f=!e&&n;return a.jsx("div",{onClick:c,role:f?"button":void 0,className:w("relative inline-flex w-full items-center gap-3 rounded-xl px-sm py-xs",ts[t],{"state-layer":r||f,[Ri]:e,"cursor-pointer":n}),"data-testid":l,...i,children:o})}function ns({type:e,onClick:t,subtitle:r,title:n,icon:o,iconAfterText:l,buttonType:i,buttonDisabled:c}){function f(u){t&&(u.stopPropagation(),t())}return e===yt.Link?a.jsx("div",{onClick:f,className:"card-action-link-color shrink-0 [&_svg]:h-5 [&_svg]:w-5",children:o||a.jsx(ir,{})}):e===yt.SupportingText?a.jsxs("div",{className:"shrink-0 text-right",children:[n&&a.jsx("div",{className:"card-action-title-color font-inter text-label-md",children:n}),r&&a.jsx("div",{className:"card-action-subtitle-color font-inter text-label-sm",children:r})]}):e===yt.Button?a.jsx("div",{className:"shrink-0",children:a.jsx(fe,{type:i||W.Outlined,size:le.Small,text:n,onClick:f,icon:o,iconAfterText:l,disabled:c})}):null}function as({variant:e=Ke.Rounded}){return e===Ke.Rounded?a.jsx(os,{}):a.jsx(ls,{})}function os(){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[a.jsxs("g",{"clip-path":"url(#clip0_880_55185)",children:[a.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"}),a.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"}),a.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"}),a.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"})]}),a.jsxs("defs",{children:[a.jsxs("linearGradient",{id:"paint0_linear_880_55185",x1:"20",y1:"0",x2:"29.5238",y2:"22.381",gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{offset:"0.990135","stop-opacity":"0"}),a.jsx("stop",{offset:"1"})]}),a.jsxs("linearGradient",{id:"paint1_linear_880_55185",x1:"20",y1:"0",x2:"11.4286",y2:"9.04762",gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{offset:"0.9999","stop-opacity":"0"}),a.jsx("stop",{offset:"1"})]}),a.jsx("clipPath",{id:"clip0_880_55185",children:a.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 ls(){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[a.jsxs("g",{"clip-path":"url(#clip0_880_55190)",children:[a.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"}),a.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"}),a.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"}),a.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"})]}),a.jsxs("defs",{children:[a.jsxs("linearGradient",{id:"paint0_linear_880_55190",x1:"20",y1:"0",x2:"29.5238",y2:"22.381",gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{offset:"0.990135","stop-opacity":"0"}),a.jsx("stop",{offset:"1"})]}),a.jsxs("linearGradient",{id:"paint1_linear_880_55190",x1:"20",y1:"0",x2:"11.4286",y2:"9.04762",gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{offset:"0.9999","stop-opacity":"0"}),a.jsx("stop",{offset:"1"})]}),a.jsx("clipPath",{id:"clip0_880_55190",children:a.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 is({type:e=Me.BgSolid,shape:t=Ke.Rounded,url:r,children:n}){return a.jsxs("div",{className:w(ea[t],es[e],"flex shrink-0 items-center justify-center overflow-hidden"),children:[e===Me.Placeholder&&!n&&a.jsx(as,{variant:t}),r&&!n&&a.jsx("img",{src:r,className:w(ea[t],"object-cover"),alt:"Card Image"}),n]})}function ss({title:e,subtitle:t,clickableAction:r,icon:n,isTextTruncated:o,tooltipText:l,tooltipPosition:i}){const c=f=>{f==null||f.stopPropagation()};return a.jsxs("div",{className:w("flex w-full flex-col",{truncate:o}),children:[a.jsxs("div",{className:w("flex flex-row items-center gap-x-xxs",{"grow-1":o}),children:[a.jsx("div",{className:w("card-body-title-color font-inter text-title-md",{truncate:o}),children:e}),l?a.jsx(Ge,{text:l,position:i,children:n}):a.jsx("div",{className:"flex items-center",children:n}),r&&a.jsx("div",{onClick:c,className:"flex items-center",children:r})]}),t&&a.jsx("div",{className:w("card-body-subtitle-color font-inter text-body-md",{truncate:o}),children:t})]})}var De=(e=>(e.Default="default",e.Highlight="highlight",e.Secondary="secondary",e))(De||{}),me=(e=>(e.Default="default",e.Large="large",e))(me||{});const cs={[De.Default]:"display-stats-bg-default",[De.Highlight]:"display-stats-bg-highlight",[De.Secondary]:"display-stats-bg-secondary"},ds={[De.Default]:"display-stats-text-default",[De.Highlight]:"display-stats-text-highlight",[De.Secondary]:"display-stats-text-secondary"},us={[me.Default]:"gap-y-sm",[me.Large]:"gap-y-md"},fs={[me.Default]:"text-title-md",[me.Large]:"text-headline-sm"},hs={[me.Default]:"text-label-md",[me.Large]:"text-label-lg"},gs={[me.Default]:"text-label-sm",[me.Large]:"text-label-md"};function vs({label:e,tooltipPosition:t,tooltipText:r,value:n,supportingLabel:o,type:l=De.Default,size:i=me.Default,icon:c,copyText:f,onCopySuccess:u,onCopyError:v}){const m=cs[l],b=us[i],S=ds[l],y=fs[i],p=gs[i],E=hs[i];async function C(I){if(navigator.clipboard&&f)try{await navigator.clipboard.writeText(f),u==null||u(I,f)}catch(_){console.error("Failed to copy:",_),v==null||v(_,f)}}return a.jsxs("div",{className:w("flex h-full w-full flex-col justify-between rounded-2xl p-md--rs",m,b,S),children:[a.jsxs("div",{className:w("flex flex-row items-center",{"w-full justify-between":c}),children:[a.jsxs("div",{className:"flex flex-row items-center gap-xxs",children:[a.jsx("span",{className:w(p,"whitespace-pre-line"),children:e}),r&&a.jsx(Ge,{text:r,position:t,children:a.jsx(Dt,{className:"opacity-40"})})]}),c&&a.jsx("span",{className:"display-stats-icon-color",children:c})]}),a.jsxs("div",{className:"flex w-full flex-row items-baseline gap-xxs",children:[a.jsx("span",{className:w("break-all",y),children:n}),o&&a.jsx("span",{className:w("opacity-40",E),children:o}),f&&a.jsx("div",{className:"self-center",children:a.jsx(se,{onClick:C,"aria-label":"Copy to clipboard",children:a.jsx(sr,{className:"display-stats-copy-icon-color"})})})]})]})}function ps({onIconClick:e,onClick:t,icon:r=a.jsx(dn,{}),assetTitle:n,isHoverable:o=!0,...l}){const i=f=>{e==null||e(f),f==null||f.stopPropagation()},c=!("src"in l);return a.jsxs("div",{className:w("relative aspect-square w-full overflow-hidden rounded-xl",{"group cursor-pointer":o}),onClick:t,children:[!c&&a.jsx(_n,{...l}),c&&l.renderAsset,o&&a.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"}),o&&e&&a.jsx(se,{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:i,"aria-label":"More options",children:r}),o&&n&&a.jsx("div",{className:"absolute bottom-0 w-full p-xs opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:a.jsx("span",{className:"visual-asset-title-color break-words text-title-md",children:n})})]})}function Fe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ms(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ta(...e){return t=>e.forEach(r=>ms(r,t))}function Ze(...e){return g.useCallback(ta(...e),e)}function bs(e,t){const r=g.createContext(t);function n(l){const{children:i,...c}=l,f=g.useMemo(()=>c,Object.values(c));return a.jsx(r.Provider,{value:f,children:i})}function o(l){const i=g.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,o]}function xs(e,t=[]){let r=[];function n(l,i){const c=g.createContext(i),f=r.length;r=[...r,i];function u(m){const{scope:b,children:S,...y}=m,p=(b==null?void 0:b[e][f])||c,E=g.useMemo(()=>y,Object.values(y));return a.jsx(p.Provider,{value:E,children:S})}function v(m,b){const S=(b==null?void 0:b[e][f])||c,y=g.useContext(S);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${l}\``)}return u.displayName=l+"Provider",[u,v]}const o=()=>{const l=r.map(i=>g.createContext(i));return function(c){const f=(c==null?void 0:c[e])||l;return g.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return o.scopeName=e,[n,ws(o,...t)]}function ws(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const i=n.reduce((c,{useScope:f,scopeName:u})=>{const m=f(l)[`__scope${u}`];return{...c,...m}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var Ft=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},ys=g.useId||(()=>{}),Ss=0;function pr(e){const[t,r]=g.useState(ys());return Ft(()=>{e||r(n=>n??String(Ss++))},[e]),e||(t?`radix-${t}`:"")}function Ye(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Es({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=Cs({defaultProp:t,onChange:r}),l=e!==void 0,i=l?e:n,c=Ye(r),f=g.useCallback(u=>{if(l){const m=typeof u=="function"?u(e):u;m!==e&&c(m)}else o(u)},[l,e,o,c]);return[i,f]}function Cs({defaultProp:e,onChange:t}){const r=g.useState(e),[n]=r,o=g.useRef(n),l=Ye(t);return g.useEffect(()=>{o.current!==n&&(l(n),o.current=n)},[n,o,l]),r}var mr=g.forwardRef((e,t)=>{const{children:r,...n}=e,o=g.Children.toArray(r),l=o.find(Ns);if(l){const i=l.props.children,c=o.map(f=>f===l?g.Children.count(i)>1?g.Children.only(null):g.isValidElement(i)?i.props.children:null:f);return a.jsx(br,{...n,ref:t,children:g.isValidElement(i)?g.cloneElement(i,void 0,c):null})}return a.jsx(br,{...n,ref:t,children:r})});mr.displayName="Slot";var br=g.forwardRef((e,t)=>{const{children:r,...n}=e;if(g.isValidElement(r)){const o=As(r);return g.cloneElement(r,{...Ts(n,r.props),ref:t?ta(t,o):o})}return g.Children.count(r)>1?g.Children.only(null):null});br.displayName="SlotClone";var _s=({children:e})=>a.jsx(a.Fragment,{children:e});function Ns(e){return g.isValidElement(e)&&e.type===_s}function Ts(e,t){const r={...t};for(const n in t){const o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...c)=>{l(...c),o(...c)}:o&&(r[n]=o):n==="style"?r[n]={...o,...l}:n==="className"&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}function As(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Os=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ee=Os.reduce((e,t)=>{const r=g.forwardRef((n,o)=>{const{asChild:l,...i}=n,c=l?mr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ds(e,t){e&&Kr.flushSync(()=>e.dispatchEvent(t))}function Ls(e,t=globalThis==null?void 0:globalThis.document){const r=Ye(e);g.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Is="DismissableLayer",xr="dismissableLayer.update",Ps="dismissableLayer.pointerDownOutside",ks="dismissableLayer.focusOutside",ra,na=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),aa=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:i,onDismiss:c,...f}=e,u=g.useContext(na),[v,m]=g.useState(null),b=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=g.useState({}),y=Ze(t,N=>m(N)),p=Array.from(u.layers),[E]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),C=p.indexOf(E),I=v?p.indexOf(v):-1,_=u.layersWithOutsidePointerEventsDisabled.size>0,P=I>=C,k=Fs(N=>{const A=N.target,G=[...u.branches].some(V=>V.contains(A));!P||G||(o==null||o(N),i==null||i(N),N.defaultPrevented||c==null||c())},b),K=Vs(N=>{const A=N.target;[...u.branches].some(V=>V.contains(A))||(l==null||l(N),i==null||i(N),N.defaultPrevented||c==null||c())},b);return Ls(N=>{I===u.layers.size-1&&(n==null||n(N),!N.defaultPrevented&&c&&(N.preventDefault(),c()))},b),g.useEffect(()=>{if(v)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ra=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(v)),u.layers.add(v),oa(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=ra)}},[v,b,r,u]),g.useEffect(()=>()=>{v&&(u.layers.delete(v),u.layersWithOutsidePointerEventsDisabled.delete(v),oa())},[v,u]),g.useEffect(()=>{const N=()=>S({});return document.addEventListener(xr,N),()=>document.removeEventListener(xr,N)},[]),a.jsx(Ee.div,{...f,ref:y,style:{pointerEvents:_?P?"auto":"none":void 0,...e.style},onFocusCapture:Fe(e.onFocusCapture,K.onFocusCapture),onBlurCapture:Fe(e.onBlurCapture,K.onBlurCapture),onPointerDownCapture:Fe(e.onPointerDownCapture,k.onPointerDownCapture)})});aa.displayName=Is;var Bs="DismissableLayerBranch",Ms=g.forwardRef((e,t)=>{const r=g.useContext(na),n=g.useRef(null),o=Ze(t,n);return g.useEffect(()=>{const l=n.current;if(l)return r.branches.add(l),()=>{r.branches.delete(l)}},[r.branches]),a.jsx(Ee.div,{...e,ref:o})});Ms.displayName=Bs;function Fs(e,t=globalThis==null?void 0:globalThis.document){const r=Ye(e),n=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const l=c=>{if(c.target&&!n.current){let f=function(){la(Ps,r,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=f,t.addEventListener("click",o.current,{once:!0})):f()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",l),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Vs(e,t=globalThis==null?void 0:globalThis.document){const r=Ye(e),n=g.useRef(!1);return g.useEffect(()=>{const o=l=>{l.target&&!n.current&&la(ks,r,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function oa(){const e=new CustomEvent(xr);document.dispatchEvent(e)}function la(e,t,r,{discrete:n}){const o=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Ds(o,l):o.dispatchEvent(l)}var wr="focusScope.autoFocusOnMount",yr="focusScope.autoFocusOnUnmount",ia={bubbles:!1,cancelable:!0},Us="FocusScope",sa=g.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...i}=e,[c,f]=g.useState(null),u=Ye(o),v=Ye(l),m=g.useRef(null),b=Ze(t,p=>f(p)),S=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(n){let p=function(_){if(S.paused||!c)return;const P=_.target;c.contains(P)?m.current=P:Ve(m.current,{select:!0})},E=function(_){if(S.paused||!c)return;const P=_.relatedTarget;P!==null&&(c.contains(P)||Ve(m.current,{select:!0}))},C=function(_){if(document.activeElement===document.body)for(const k of _)k.removedNodes.length>0&&Ve(c)};document.addEventListener("focusin",p),document.addEventListener("focusout",E);const I=new MutationObserver(C);return c&&I.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",E),I.disconnect()}}},[n,c,S.paused]),g.useEffect(()=>{if(c){ua.add(S);const p=document.activeElement;if(!c.contains(p)){const C=new CustomEvent(wr,ia);c.addEventListener(wr,u),c.dispatchEvent(C),C.defaultPrevented||(Ws(zs(ca(c)),{select:!0}),document.activeElement===p&&Ve(c))}return()=>{c.removeEventListener(wr,u),setTimeout(()=>{const C=new CustomEvent(yr,ia);c.addEventListener(yr,v),c.dispatchEvent(C),C.defaultPrevented||Ve(p??document.body,{select:!0}),c.removeEventListener(yr,v),ua.remove(S)},0)}}},[c,u,v,S]);const y=g.useCallback(p=>{if(!r&&!n||S.paused)return;const E=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,C=document.activeElement;if(E&&C){const I=p.currentTarget,[_,P]=js(I);_&&P?!p.shiftKey&&C===P?(p.preventDefault(),r&&Ve(_,{select:!0})):p.shiftKey&&C===_&&(p.preventDefault(),r&&Ve(P,{select:!0})):C===I&&p.preventDefault()}},[r,n,S.paused]);return a.jsx(Ee.div,{tabIndex:-1,...i,ref:b,onKeyDown:y})});sa.displayName=Us;function Ws(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ve(n,{select:t}),document.activeElement!==r)return}function js(e){const t=ca(e),r=da(t,e),n=da(t.reverse(),e);return[r,n]}function ca(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function da(e,t){for(const r of e)if(!Hs(r,{upTo:t}))return r}function Hs(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 Gs(e){return e instanceof HTMLInputElement&&"select"in e}function Ve(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Gs(e)&&t&&e.select()}}var ua=$s();function $s(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=fa(e,t),e.unshift(t)},remove(t){var r;e=fa(e,t),(r=e[0])==null||r.resume()}}}function fa(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function zs(e){return e.filter(t=>t.tagName!=="A")}var Xs="Portal",ha=g.forwardRef((e,t)=>{var c;const{container:r,...n}=e,[o,l]=g.useState(!1);Ft(()=>l(!0),[]);const i=r||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return i?ar.createPortal(a.jsx(Ee.div,{...n,ref:t}),i):null});ha.displayName=Xs;function Ks(e,t){return g.useReducer((r,n)=>t[r][n]??r,e)}var Vt=e=>{const{present:t,children:r}=e,n=Zs(t),o=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),l=Ze(n.ref,Ys(o));return typeof r=="function"||n.isPresent?g.cloneElement(o,{ref:l}):null};Vt.displayName="Presence";function Zs(e){const[t,r]=g.useState(),n=g.useRef({}),o=g.useRef(e),l=g.useRef("none"),i=e?"mounted":"unmounted",[c,f]=Ks(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const u=Ut(n.current);l.current=c==="mounted"?u:"none"},[c]),Ft(()=>{const u=n.current,v=o.current;if(v!==e){const b=l.current,S=Ut(u);e?f("MOUNT"):S==="none"||(u==null?void 0:u.display)==="none"?f("UNMOUNT"):f(v&&b!==S?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),Ft(()=>{if(t){const u=m=>{const S=Ut(n.current).includes(m.animationName);m.target===t&&S&&Kr.flushSync(()=>f("ANIMATION_END"))},v=m=>{m.target===t&&(l.current=Ut(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:g.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function Ut(e){return(e==null?void 0:e.animationName)||"none"}function Ys(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Sr=0;function qs(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ga()),document.body.insertAdjacentElement("beforeend",e[1]??ga()),Sr++,()=>{Sr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sr--}},[])}function ga(){const 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 Ce=function(){return Ce=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},Ce.apply(this,arguments)};function va(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Qs(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,l;n<o;n++)(l||!(n in t))&&(l||(l=Array.prototype.slice.call(t,0,n)),l[n]=t[n]);return e.concat(l||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Wt="right-scroll-bar-position",jt="width-before-scroll-bar",Js="with-scroll-bars-hidden",Rs="--removed-body-scroll-bar-size";function Er(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ec(e,t){var r=T.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var tc=typeof window<"u"?g.useLayoutEffect:g.useEffect,pa=new WeakMap;function rc(e,t){var r=ec(null,function(n){return e.forEach(function(o){return Er(o,n)})});return tc(function(){var n=pa.get(r);if(n){var o=new Set(n),l=new Set(e),i=r.current;o.forEach(function(c){l.has(c)||Er(c,null)}),l.forEach(function(c){o.has(c)||Er(c,i)})}pa.set(r,e)},[e]),r}function nc(e){return e}function ac(e,t){t===void 0&&(t=nc);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(l){var i=t(l,n);return r.push(i),function(){r=r.filter(function(c){return c!==i})}},assignSyncMedium:function(l){for(n=!0;r.length;){var i=r;r=[],i.forEach(l)}r={push:function(c){return l(c)},filter:function(){return r}}},assignMedium:function(l){n=!0;var i=[];if(r.length){var c=r;r=[],c.forEach(l),i=r}var f=function(){var v=i;i=[],v.forEach(l)},u=function(){return Promise.resolve().then(f)};u(),r={push:function(v){i.push(v),u()},filter:function(v){return i=i.filter(v),r}}}};return o}function oc(e){e===void 0&&(e={});var t=ac(null);return t.options=Ce({async:!0,ssr:!1},e),t}var ma=function(e){var t=e.sideCar,r=va(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return g.createElement(n,Ce({},r))};ma.isSideCarExport=!0;function lc(e,t){return e.useMedium(t),ma}var ba=oc(),Cr=function(){},Ht=g.forwardRef(function(e,t){var r=g.useRef(null),n=g.useState({onScrollCapture:Cr,onWheelCapture:Cr,onTouchMoveCapture:Cr}),o=n[0],l=n[1],i=e.forwardProps,c=e.children,f=e.className,u=e.removeScrollBar,v=e.enabled,m=e.shards,b=e.sideCar,S=e.noIsolation,y=e.inert,p=e.allowPinchZoom,E=e.as,C=E===void 0?"div":E,I=e.gapMode,_=va(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=b,k=rc([r,t]),K=Ce(Ce({},_),o);return g.createElement(g.Fragment,null,v&&g.createElement(P,{sideCar:ba,removeScrollBar:u,shards:m,noIsolation:S,inert:y,setCallbacks:l,allowPinchZoom:!!p,lockRef:r,gapMode:I}),i?g.cloneElement(g.Children.only(c),Ce(Ce({},K),{ref:k})):g.createElement(C,Ce({},K,{className:f,ref:k}),c))});Ht.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ht.classNames={fullWidth:jt,zeroRight:Wt};var xa=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ic(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=xa();return t&&e.setAttribute("nonce",t),e}function sc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var dc=function(){var e=0,t=null;return{add:function(r){e==0&&(t=ic())&&(sc(t,r),cc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uc=function(){var e=dc();return function(t,r){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},fc=function(){var e=uc(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},hc={left:0,top:0,right:0,gap:0},_r=function(e){return parseInt(e||"",10)||0},gc=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[_r(r),_r(n),_r(o)]},vc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return hc;var t=gc(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},pc=fc(),at="data-scroll-locked",mc=function(e,t,r,n){var o=e.left,l=e.top,i=e.right,c=e.gap;return r===void 0&&(r="margin"),`
|
|
22
|
-
|
|
23
|
-
overflow: hidden
|
|
24
|
-
padding-right:
|
|
15
|
+
prefix: `+i+`
|
|
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}){return(0,t.jsx)(`td`,{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,hasSort:r,hasCheckbox:i,isChecked:a,isIndeterminate:o,isContentCentered:s,onSortClick:c,onCheckboxChange:l,sortOrder:u,...d}){let f=()=>{let e=u===Qr.Asc?Qr.Desc:Qr.Asc;c&&c(n,e)},p=r?u===Qr.Asc?(0,t.jsx)(Qe,{className:`shrink-0`}):u===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:r?f: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":r}),"aria-sort":r?u===Qr.Asc?`ascending`:u===Qr.Desc?`descending`:`none`:void 0,...d,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":s}),children:[i?(0,t.jsx)(dt,{isChecked:a,isIndeterminate:o,onCheckedChange:l}):(0,t.jsx)(`span`,{className:(0,N.default)({"text-left":!s}),children:e}),p]})})}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 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 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)(`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
|
+
.${Za} {
|
|
19
|
+
overflow: hidden ${r};
|
|
20
|
+
padding-right: ${s}px ${r};
|
|
25
21
|
}
|
|
26
|
-
body[
|
|
27
|
-
overflow: hidden
|
|
22
|
+
body[${Eo}] {
|
|
23
|
+
overflow: hidden ${r};
|
|
28
24
|
overscroll-behavior: contain;
|
|
29
|
-
|
|
30
|
-
padding-left:
|
|
31
|
-
padding-top:
|
|
32
|
-
padding-right:
|
|
25
|
+
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
26
|
+
padding-left: ${i}px;
|
|
27
|
+
padding-top: ${a}px;
|
|
28
|
+
padding-right: ${o}px;
|
|
33
29
|
margin-left:0;
|
|
34
30
|
margin-top:0;
|
|
35
|
-
margin-right:
|
|
36
|
-
|
|
31
|
+
margin-right: ${s}px ${r};
|
|
32
|
+
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
37
33
|
}
|
|
38
34
|
|
|
39
|
-
|
|
40
|
-
right:
|
|
35
|
+
.${Ya} {
|
|
36
|
+
right: ${s}px ${r};
|
|
41
37
|
}
|
|
42
38
|
|
|
43
|
-
|
|
44
|
-
margin-right:
|
|
39
|
+
.${Xa} {
|
|
40
|
+
margin-right: ${s}px ${r};
|
|
45
41
|
}
|
|
46
42
|
|
|
47
|
-
|
|
48
|
-
right: 0
|
|
43
|
+
.${Ya} .${Ya} {
|
|
44
|
+
right: 0 ${r};
|
|
49
45
|
}
|
|
50
46
|
|
|
51
|
-
|
|
52
|
-
margin-right: 0
|
|
47
|
+
.${Xa} .${Xa} {
|
|
48
|
+
margin-right: 0 ${r};
|
|
53
49
|
}
|
|
54
50
|
|
|
55
|
-
body[
|
|
56
|
-
|
|
51
|
+
body[${Eo}] {
|
|
52
|
+
${Qa}: ${s}px;
|
|
57
53
|
}
|
|
58
|
-
`
|
|
59
|
-
.block-interactivity
|
|
60
|
-
.allow-interactivity
|
|
61
|
-
`
|
|
54
|
+
`},Oo=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},ko=function(){n.useEffect(function(){return document.body.setAttribute(Eo,(Oo()+1).toString()),function(){var e=Oo()-1;e<=0?document.body.removeAttribute(Eo):document.body.setAttribute(Eo,e.toString())}},[])},Ao=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?`margin`:i;ko();var o=n.useMemo(function(){return wo(a)},[a]);return n.createElement(To,{styles:Do(o,!t,a,r?``:`!important`)})},jo=!1;if(typeof window<`u`)try{var Mo=Object.defineProperty({},`passive`,{get:function(){return jo=!0,!0}});window.addEventListener(`test`,Mo,Mo),window.removeEventListener(`test`,Mo,Mo)}catch{jo=!1}var No=jo?{passive:!1}:!1,Po=function(e){return e.tagName===`TEXTAREA`},Fo=function(e,t){var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Po(e)&&n[t]===`visible`)},Io=function(e){return Fo(e,`overflowY`)},Lo=function(e){return Fo(e,`overflowX`)},Ro=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Vo(e,r)){var i=Ho(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zo=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Bo=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Vo=function(e,t){return e===`v`?Io(t):Lo(t)},Ho=function(e,t){return e===`v`?zo(t):Bo(t)},Uo=function(e,t){return e===`h`&&t===`rtl`?-1:1},Wo=function(e,t,n,r,i){var a=Uo(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=Ho(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Vo(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},Go=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ko=function(e){return[e.deltaX,e.deltaY]},qo=function(e){return e&&`current`in e?e.current:e},Jo=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Yo=function(e){return`
|
|
55
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
56
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
57
|
+
`},Xo=0,Zo=[];function Qo(e){var t=n.useRef([]),r=n.useRef([0,0]),i=n.useRef(),a=n.useState(Xo++)[0],o=n.useState(bo)[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=Ja([e.lockRef.current],(e.shards||[]).map(qo),!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=Go(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=Ro(d,u);if(!f)return!0;if(f?l=d:(l=d===`v`?`h`:`v`,f=Ro(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 Wo(p,t,e,p===`h`?o:c,!0)},[]),l=n.useCallback(function(e){var n=e;if(!(!Zo.length||Zo[Zo.length-1]!==o)){var r=`deltaY`in n?Ko(n):Go(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Jo(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var a=(s.current.shards||[]).map(qo).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:$o(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=Go(e),i.current=void 0},[]),f=n.useCallback(function(t){u(t.type,Ko(t),t.target,c(t,e.lockRef.current))},[]),p=n.useCallback(function(t){u(t.type,Go(t),t.target,c(t,e.lockRef.current))},[]);n.useEffect(function(){return Zo.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,No),document.addEventListener(`touchmove`,l,No),document.addEventListener(`touchstart`,d,No),function(){Zo=Zo.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,l,No),document.removeEventListener(`touchmove`,l,No),document.removeEventListener(`touchstart`,d,No)}},[]);var m=e.removeScrollBar,h=e.inert;return n.createElement(n.Fragment,null,h?n.createElement(o,{styles:Yo(a)}):null,m?n.createElement(Ao,{gapMode:e.gapMode}):null)}function $o(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var es=co(lo,Qo),ts=n.forwardRef(function(e,t){return n.createElement(fo,Q({},e,{ref:t,sideCar:es}))});ts.classNames=fo.classNames;var ns=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},rs=new WeakMap,is=new WeakMap,as={},os=0,ss=function(e){return e&&(e.host||ss(e.parentNode))},cs=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=ss(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})},ls=function(e,t,n,r){var i=cs(t,Array.isArray(e)?e:[e]);as[n]||(as[n]=new WeakMap);var a=as[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=(rs.get(e)||0)+1,l=(a.get(e)||0)+1;rs.set(e,c),a.set(e,l),o.push(e),c===1&&i&&is.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(),os++,function(){o.forEach(function(e){var t=rs.get(e)-1,i=a.get(e)-1;rs.set(e,t),a.set(e,i),t||(is.has(e)||e.removeAttribute(r),is.delete(e)),i||e.removeAttribute(n)}),os--,os||(rs=new WeakMap,rs=new WeakMap,is=new WeakMap,as={})}},us=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||ns(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live]`))),ls(r,i,n,`aria-hidden`)):function(){return null}},ds=`Dialog`,[fs,ps]=Gi(ds),[ms,$]=fs(ds),hs=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]=Qi({prop:i,defaultProp:a,onChange:o});return(0,t.jsx)(ms,{scope:n,triggerRef:c,contentRef:l,contentId:Xi(),titleId:Xi(),descriptionId:Xi(),open:u,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(e=>!e),[d]),modal:s,children:r})};hs.displayName=ds;var gs=`DialogTrigger`,_s=p.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,a=$(gs,r),o=Ui(n,a.triggerRef);return(0,t.jsx)(Z.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Is(a.open),...i,ref:o,onClick:Bi(e.onClick,a.onOpenToggle)})});_s.displayName=gs;var vs=`DialogPortal`,[ys,bs]=fs(vs,{forceMount:void 0}),xs=e=>{let{__scopeDialog:n,forceMount:r,children:i,container:a}=e,o=$(vs,n);return(0,t.jsx)(ys,{scope:n,forceMount:r,children:p.Children.map(i,e=>(0,t.jsx)(Ba,{present:r||o.open,children:(0,t.jsx)(Ra,{asChild:!0,container:a,children:e})}))})};xs.displayName=vs;var Ss=`DialogOverlay`,Cs=p.forwardRef((e,n)=>{let r=bs(Ss,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,o=$(Ss,e.__scopeDialog);return o.modal?(0,t.jsx)(Ba,{present:i||o.open,children:(0,t.jsx)(ws,{...a,ref:n})}):null});Cs.displayName=Ss;var ws=p.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,a=$(Ss,r);return(0,t.jsx)(ts,{as:ea,allowPinchZoom:!0,shards:[a.contentRef],children:(0,t.jsx)(Z.div,{"data-state":Is(a.open),...i,ref:n,style:{pointerEvents:`auto`,...i.style}})})}),Ts=`DialogContent`,Es=p.forwardRef((e,n)=>{let r=bs(Ts,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,o=$(Ts,e.__scopeDialog);return(0,t.jsx)(Ba,{present:i||o.open,children:o.modal?(0,t.jsx)(Ds,{...a,ref:n}):(0,t.jsx)(Os,{...a,ref:n})})});Es.displayName=Ts;var Ds=p.forwardRef((e,n)=>{let r=$(Ts,e.__scopeDialog),i=p.useRef(null),a=Ui(n,r.contentRef,i);return p.useEffect(()=>{let e=i.current;if(e)return us(e)},[]),(0,t.jsx)(ks,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Bi(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Bi(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:Bi(e.onFocusOutside,e=>e.preventDefault())})}),Os=p.forwardRef((e,n)=>{let r=$(Ts,e.__scopeDialog),i=p.useRef(!1),a=p.useRef(!1);return(0,t.jsx)(ks,{...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()}})}),ks=p.forwardRef((e,n)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,...s}=e,c=$(Ts,r),l=p.useRef(null),u=Ui(n,l);return Ga(),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Ta,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,t.jsx)(ma,{role:`dialog`,id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Is(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Bs,{titleId:c.titleId}),(0,t.jsx)(Hs,{contentRef:l,descriptionId:c.descriptionId})]})]})}),As=`DialogTitle`,js=p.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,a=$(As,r);return(0,t.jsx)(Z.h2,{id:a.titleId,...i,ref:n})});js.displayName=As;var Ms=`DialogDescription`,Ns=p.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,a=$(Ms,r);return(0,t.jsx)(Z.p,{id:a.descriptionId,...i,ref:n})});Ns.displayName=Ms;var Ps=`DialogClose`,Fs=p.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,a=$(Ps,r);return(0,t.jsx)(Z.button,{type:`button`,...i,ref:n,onClick:Bi(e.onClick,()=>a.onOpenChange(!1))})});Fs.displayName=Ps;function Is(e){return e?`open`:`closed`}var Ls=`DialogTitleWarning`,[Rs,zs]=Wi(Ls,{contentName:Ts,titleName:As,docsSlug:`dialog`}),Bs=({titleId:e})=>{let t=zs(Ls),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
62
58
|
|
|
63
59
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
64
60
|
|
|
65
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Yc="DialogDescriptionWarning",qc=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$a(Yc).contentName}}.`;return g.useEffect(()=>{var l;const o=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Qc=Da,Jc=Ia,Rc=ka,za=Ba,Xa=Ma,Ir=Va,ed=Wa,td=Ha,rd="VisuallyHidden",Ka=g.forwardRef((e,t)=>a.jsx(Ee.span,{...e,ref:t,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}}));Ka.displayName=rd;var nd=Ka,Ue=(e=>(e.Center="center",e.Right="right",e))(Ue||{});const ad=({open:e,onOpenChange:t,children:r,...n})=>{const o=l=>{const i=document.querySelector(".toast-layer:hover");!l&&i||t==null||t(l)};return a.jsx(Qc,{open:e,onOpenChange:o,...n,children:r})},od=Jc,Za=td,Ya=g.forwardRef(({showCloseIcon:e,position:t,...r},n)=>a.jsx(za,{ref:n,className:w("dialog-overlay-bg absolute h-full w-full backdrop-blur-md names:backdrop-blur-lg","data-[state=open]:animate-dialog-overlay-show"),...r,children:a.jsx(Za,{className:w("fixed right-3 top-3",{hidden:!e}),"aria-label":"Close",children:a.jsx(gt,{className:"button-text-color-neutral"})})}));Ya.displayName=za.displayName;const ld=g.forwardRef((e,t)=>a.jsx("div",{className:w("inset-0 z-[99999]",e.isFixedPosition?"fixed":"absolute"),ref:t,children:a.jsx("div",{className:"relative h-full w-full",children:e.children})})),qa=g.forwardRef(({className:e,containerId:t,showCloseOnOverlay:r,children:n,position:o=Ue.Center,customWidth:l="w-80 max-w-[85vw] md:w-96",isFixedPosition:i=o===Ue.Right,...c},f)=>{const[u,v]=T.useState(void 0);T.useEffect(()=>{const y=t?document.getElementById(t):void 0;v(y??void 0)},[t]);const m=o===Ue.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",b=o===Ue.Right?"md:w-96 max-w-[500px]":l,S=o===Ue.Right?"h-screen":"max-h-[90vh] h-full";return a.jsx(Rc,{container:u,children:a.jsxs(ld,{isFixedPosition:i,children:[a.jsx(Ya,{showCloseIcon:r,position:o}),a.jsxs(Xa,{ref:f,className:w("dialog-content-bg dialog-outline absolute flex flex-col justify-center",m,b,o===Ue.Right?"data-[state=open]:animate-dialog-panel-show":"data-[state=open]:animate-dialog-content-show"),...c,children:[a.jsxs(nd,{children:[a.jsx(Ir,{}),a.jsx(ed,{})]}),a.jsx("div",{className:w("flex flex-1 flex-col",S),children:n})]})]})})});qa.displayName=Xa.displayName;const Qa=g.forwardRef((e,t)=>a.jsx(Ir,{ref:t,className:"dialog-title-color font-inter text-title-lg",...e}));Qa.displayName=Ir.displayName;const Ja=g.forwardRef((e,t)=>a.jsx("div",{ref:t,className:"dialog-body-color flex-1 overflow-y-auto p-md--rs text-body-sm",...e}));Ja.displayName="DialogBody";const Ra=T.createContext({isHeaderChecked:!1,selectedRowIndexes:new Set,isHeaderIndeterminate:!1}),eo=()=>T.useContext(Ra);function id({children:e,selectedRowIndexes:t,rowIndexes:r,...n}){const o=r.length===t.size,l=!o&&t.size>0;return a.jsx(Ra.Provider,{value:{...n,isHeaderChecked:o,selectedRowIndexes:t,isHeaderIndeterminate:l},children:e})}function sd({paginationOptions:e,action:t,supportingLabel:r,selectedRowIndexes:n=new Set,rowIndexes:o,children:l,pageSizeSelector:i,heightFull:c=!1}){return a.jsx(id,{selectedRowIndexes:n,rowIndexes:o,children:a.jsxs("div",{className:w("w-full",{"h-full":c}),children:[a.jsx("div",{className:w("overflow-auto",{"h-full":c}),children:a.jsx("table",{className:w("w-full table-auto",{"h-full":c}),children:l})}),a.jsxs("div",{className:w("flex w-full items-center gap-sm pt-md",{hidden:!r&&!e&&!t,"flex-col justify-between sm:flex-row":e,"justify-end":!e&&t}),children:[(e||t)&&a.jsxs("div",{className:"flex gap-2",children:[e&&a.jsxs(a.Fragment,{children:[a.jsx(fe,{type:W.Secondary,size:le.Small,icon:a.jsx(el,{}),disabled:!e.hasFirst,onClick:e.onFirst,"aria-label":"First page"}),a.jsx(fe,{type:W.Secondary,size:le.Small,icon:a.jsx(Yo,{}),disabled:!e.hasPrev,onClick:e.onPrev,"aria-label":"Previous page"}),a.jsx(fe,{type:W.Secondary,size:le.Small,icon:a.jsx(ir,{}),disabled:!e.hasNext,onClick:e.onNext,"aria-label":"Next page"}),a.jsx(fe,{type:W.Secondary,size:le.Small,icon:a.jsx(tl,{}),disabled:!e.hasLast,onClick:e.onLast,"aria-label":"Last page"})]}),t&&t]}),r||i?a.jsxs("div",{className:"flex flex-row items-center gap-x-sm",children:[r&&a.jsx("span",{className:"table-text-color text-label-md",children:r}),i&&a.jsx("div",{className:"ml-2",children:i})]}):null]})]})})}function cd(e){return a.jsx(fe,{type:W.Secondary,size:le.Small,...e})}function dd({children:e}){return a.jsx("thead",{children:e})}function ud({children:e,leading:t}){return a.jsxs("tr",{children:[t,e]})}const fd="table-text-color",hd="text-body-md";function gd({children:e}){return a.jsx("tbody",{className:w(fd,hd),children:e})}function vd({rowIndex:e,onCheckboxChange:t,isDisabled:r}){const{selectedRowIndexes:n}=eo();return a.jsx(qn,{isContentCentered:!0,children:a.jsx(cr,{onCheckedChange:o=>{t(o.target.checked)},isChecked:n.has(e),isDisabled:r})})}function pd({onCheckboxChange:e}){const{isHeaderChecked:t,isHeaderIndeterminate:r}=eo();return a.jsx(Jn,{isContentCentered:!0,hasCheckbox:!0,onCheckboxChange:n=>{e(n.target.checked)},isChecked:t,columnKey:1,isIndeterminate:r})}function md({items:e,activeId:t,onClickItem:r,isCollapsible:n=!1,onToggleNavbar:o}){return a.jsxs("div",{className:w("flex h-fit w-full",{"flex-col px-md py-xs sm:h-full sm:w-auto sm:px-none sm:py-xl":n}),children:[n&&a.jsxs("div",{className:"flex w-full items-center justify-between sm:mb-[48px] sm:flex-col",children:[a.jsx("div",{className:"flex justify-center [&_svg]:h-[38px] [&_svg]:w-[38px]",children:a.jsx(rl,{className:"navbar-icon-color"})}),a.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:o,role:"button","aria-label":"Toggle menu",children:a.jsx(nl,{})})]}),a.jsx("div",{className:w({"flex w-full justify-between px-sm py-xxs":!n,"hidden sm:flex sm:flex-col sm:gap-2":n}),children:e.map(l=>a.jsx("div",{className:w("flex items-center",{"px-xs py-xxs":!n,"py-xxs pl-xs pr-sm":n}),"data-testid":`nav-${l.id}`,children:a.jsx(vr,{...l,isSelected:l.id===t,onClick:i=>{l.onClick&&l.onClick(i),l.isDisabled||r(l.id)}})},l.id))})]})}function bd({items:e,activeId:t,onClickItem:r,isOpen:n,onToggleNavbar:o}){return a.jsxs(a.Fragment,{children:[a.jsx("div",{onClick:o,className:w("duration-800 transition-opacity ease-out",{"opacity-1 fixed left-0 top-0 h-full w-full bg-shader-neutral-light-72":n,"-translate-x-full opacity-0":!n})}),a.jsx("div",{className:w("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":n,"-translate-x-full":!n}),children:a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("div",{className:"[&_svg]:h-5 [&_svg]:w-5",children:a.jsx(fe,{type:W.Ghost,onClick:o,icon:a.jsx(sn,{}),"aria-label":"Close menu"})}),e.map(l=>a.jsx(vr,{...l,type:Bt.Vertical,isSelected:l.id===t,onClick:()=>{r(l.id),o&&o()}},l.id))]})})]})}const xd="accordion-icon-color transition-transform ease-linear";function wd({onToggle:e,children:t,isExpanded:r,hideArrow:n}){return a.jsxs("div",{onClick:e,role:"button","aria-expanded":r,className:w("state-layer relative flex cursor-pointer items-center justify-between gap-md overflow-hidden rounded-xl py-sm--rs",{"pr-md--rs":!n}),children:[t,!n&&a.jsx("div",{className:"[&_svg]:h-5 [&_svg]:w-5",children:a.jsx(fe,{type:W.Ghost,icon:a.jsx(Zo,{className:w(xd,{"rotate-180":r})})})})]})}function yd({isExpanded:e,children:t}){return a.jsx("div",{className:w({hidden:!e}),children:t})}function Sd({children:e,hideBorder:t}){return a.jsx("div",{className:w("accordion-bg rounded-xl",{"accordion-border-color border":!t}),children:e})}x.Accordion=Sd,x.AccordionContent=yd,x.AccordionHeader=wd,x.Account=zi,x.Address=Cn,x.AssetMediaRenderer=_n,x.Badge=ft,x.BadgeSize=Ot,x.BadgeType=te,x.Button=fe,x.ButtonHtmlType=ht,x.ButtonPill=Ko,x.ButtonSegment=pl,x.ButtonSegmentType=He,x.ButtonSize=le,x.ButtonType=W,x.ButtonUnstyled=se,x.Card=rs,x.CardAction=ns,x.CardActionType=yt,x.CardBody=ss,x.CardImage=is,x.CardType=nt,x.Checkbox=cr,x.Chip=Rl,x.ChipSize=Pt,x.ChipType=Y,x.Dialog=ad,x.DialogBody=Ja,x.DialogClose=Za,x.DialogContent=qa,x.DialogPosition=Ue,x.DialogTitle=Qa,x.DialogTrigger=od,x.DisplayStats=vs,x.DisplayStatsSize=me,x.DisplayStatsType=De,x.Divider=vn,x.DividerType=Pe,x.Dropdown=Yn,x.DropdownPosition=Mt,x.Header=Nl,x.IOTA_NAMES_COLOR_PALETTE=Qr,x.IOTA_PRIMITIVES_COLOR_PALETTE=qr,x.Image=dr,x.ImageShape=Ke,x.ImageType=Me,x.ImageWithFallback=bn,x.InfoBox=Dl,x.InfoBoxStyle=pt,x.InfoBoxType=Se,x.Input=Pi,x.InputType=ve,x.KeyValueInfo=yl,x.LabelText=_l,x.LabelTextSize=de,x.ListItem=pn,x.LoadingIndicator=Pl,x.MediaFallback=mn,x.Navbar=md,x.NavbarItem=vr,x.NavbarItemType=Bt,x.NavbarSlideout=bd,x.Panel=Tl,x.Placeholder=wn,x.RadioButton=cl,x.Resize=In,x.SHADER_COLOR_PALETTE=Jr,x.ScreenSize=ye,x.Search=Ji,x.SearchBarType=pe,x.SecondaryText=mt,x.SegmentedButton=ri,x.SegmentedButtonType=$e,x.Select=Zi,x.SelectSize=wt,x.Skeleton=kl,x.Snackbar=Il,x.SnackbarType=ge,x.Table=sd,x.TableActionButton=cd,x.TableBody=gd,x.TableCellBase=qn,x.TableCellPlaceholder=Ki,x.TableCellText=Xi,x.TableHeader=dd,x.TableHeaderCell=Jn,x.TableHeaderCellSortOrder=Oe,x.TableHeaderCheckbox=pd,x.TableRow=ud,x.TableRowCheckbox=vd,x.TextArea=Fi,x.Title=oi,x.TitleSize=ze,x.Toggle=Gl,x.ToggleLabelPosition=Lt,x.ToggleSize=Ae,x.Tooltip=Ge,x.TooltipPosition=ke,x.UIKitTheme=Zr,x.ValueSize=vt,x.Video=yn,x.VisualAssetCard=ps,x.VisualAssetType=ur,x.uiKitResponsivePreset=Po,x.uiKitStaticPreset=Bo,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
|
66
|
-
//# sourceMappingURL=index.umd.js.map
|
|
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}){return(0,t.jsxs)(`tr`,{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}){return(0,t.jsxs)(`div`,{onClick:e,role:`button`,"aria-expanded":r,className:(0,N.default)(`state-layer relative flex cursor-pointer items-center justify-between gap-md overflow-hidden rounded-xl py-sm--rs`,{"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});
|
|
62
|
+
//# sourceMappingURL=index.umd.js.map
|