design-system-silkhaus 0.0.88-beta.slider-input.0 → 0.0.88-beta.slider-input.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/dist/index.cjs +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +81 -79
- package/dist/style.css +1 -1
- package/package.json +6 -4
package/dist/index.cjs
CHANGED
|
@@ -122,15 +122,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
122
122
|
ds-cursor-not-allowed
|
|
123
123
|
ds-px-3
|
|
124
124
|
ds-py-2
|
|
125
|
-
`},Fv={primary:"ds-text-Text-primary",primaryRounded:"ds-text-Text-primary",success:"ds-text-Text-primary",error:"ds-text-System-red",errorRounded:"ds-text-System-red",disabled:"ds-text-Text-secondary"},Lv={primary:"ds-text-Text-primary",primaryRounded:"ds-text-Text-primary",success:"ds-text-Text-primary",error:"ds-flex ds-flex-row ds-items-center ds-justify-start ds-text-System-red",errorRounded:"ds-text-System-red",disabled:"ds-text-Text-secondary"},vD=oe.forwardRef((F,j)=>{var W=F,{color:e="primary",disabled:t=!1,textarea:r=!1,label:n,required:a=!1,caption:i,labelClass:o,InputDivClass:s,captionClass:l,className:c,startAdornment:u,endAdornment:d,isNumbersOnly:f,onChange:p,value:y,type:v,onBlur:g,onFocus:_,min:m,max:k,onNumberUpdate:x}=W,A=$t(W,["color","disabled","textarea","label","required","caption","labelClass","InputDivClass","captionClass","className","startAdornment","endAdornment","isNumbersOnly","onChange","value","type","onBlur","onFocus","min","max","onNumberUpdate"]);const[I,P]=oe.useState(!1),b=oe.useRef(null),[S,D]=oe.useState(y),T=f?R=>{const N=R.target.value.trim();if(
|
|
125
|
+
`},Fv={primary:"ds-text-Text-primary",primaryRounded:"ds-text-Text-primary",success:"ds-text-Text-primary",error:"ds-text-System-red",errorRounded:"ds-text-System-red",disabled:"ds-text-Text-secondary"},Lv={primary:"ds-text-Text-primary",primaryRounded:"ds-text-Text-primary",success:"ds-text-Text-primary",error:"ds-flex ds-flex-row ds-items-center ds-justify-start ds-text-System-red",errorRounded:"ds-text-System-red",disabled:"ds-text-Text-secondary"},vD=oe.forwardRef((F,j)=>{var W=F,{color:e="primary",disabled:t=!1,textarea:r=!1,label:n,required:a=!1,caption:i,labelClass:o,InputDivClass:s,captionClass:l,className:c,startAdornment:u,endAdornment:d,isNumbersOnly:f,onChange:p,value:y,type:v,onBlur:g,onFocus:_,min:m,max:k,onNumberUpdate:x}=W,A=$t(W,["color","disabled","textarea","label","required","caption","labelClass","InputDivClass","captionClass","className","startAdornment","endAdornment","isNumbersOnly","onChange","value","type","onBlur","onFocus","min","max","onNumberUpdate"]);const[I,P]=oe.useState(!1),b=oe.useRef(null),[S,D]=oe.useState(y),T=f?R=>{const N=R.target.value.trim();if(N===""?D(""):/^\d+$/.test(N)?D(parseFloat(N)):typeof S=="undefined"&&D(""),p)return p(R)}:p,$=R=>{let N=S;if(f&&typeof N!="undefined"&&N!==""&&(N=parseFloat(N.toString()),typeof m!="undefined"&&N<m?N=m:typeof k!="undefined"&&N>k&&(N=k)),D(N),x&&x(N),P(!1),g)return g(R)},B=R=>{if(P(!0),_)return _(R)};return oe.useEffect(()=>{f&&D(y)},[y]),r?C.jsx(C.Fragment,{children:C.jsxs("div",{className:Be("ds-flex ds-flex-col ds-items-start ds-w-full",s),children:[n&&C.jsxs("label",{className:Be("ds-text-mediumFootnoteRegular ds-tablet:ds_SmallSubheadRegular ds-desktop:MediumSubheadRegular ds-mb-space075",o,Fv[e]),children:[n," ",a&&C.jsx(pi,{})]}),C.jsx("textarea",Oe({disabled:t,className:Be(jv[e],Av(I,t)[e],c),onFocus:B,onBlur:$,onChange:p,value:y},A)),i&&C.jsxs("caption",{className:Be(je("ds-text-mediumFootnoteRegular ds-tablet:ds_SmallSubheadRegular ds-font-normal ds-mt-space075",Lv[e]),l),children:[e==="error"&&C.jsx("img",{src:Iv,alt:"error",className:Be(je("ds-me-1"))}),e==="success"&&C.jsx("img",{src:Nv,alt:"success",className:Be(je("ds-me-1"))}),i]})]})}):C.jsxs("div",{className:Be("ds-flex ds-flex-col ds-items-start ds-w-full",s),ref:j,children:[n&&C.jsxs("label",{className:Be("ds-text-mediumFootnoteRegular ds-tablet:ds_SmallSubheadRegular ds-mb-space075",o,Fv[e]),children:[n," ",a&&C.jsx(pi,{})]}),C.jsxs("div",{className:Be(Av(I,t)[e],"ds-flex ds-items-center ds-w-full"),onClick:()=>{var R;return(R=b==null?void 0:b.current)==null?void 0:R.focus()},children:[u&&C.jsx("span",{className:`
|
|
126
126
|
ds-pl-3
|
|
127
127
|
py-2
|
|
128
|
-
|
|
128
|
+
ds_MediumBodyEmphasized
|
|
129
129
|
ds-text-Text-primary
|
|
130
130
|
`,children:u}),C.jsx("input",Oe({ref:b,disabled:t,className:Be(jv[e],"ds-bg-transparent",c),onFocus:B,onBlur:$,onChange:T,value:f?S:y,type:f?"text":v},A)),d&&C.jsx("span",{className:`
|
|
131
131
|
ds-pr-3
|
|
132
132
|
py-2
|
|
133
|
-
|
|
133
|
+
ds_MediumBodyEmphasized
|
|
134
134
|
ds-text-Text-primary
|
|
135
135
|
`,children:d})]}),i&&C.jsxs("caption",{className:Be(je("ds-text-mediumFootnoteRegular ds-tablet:ds-text-mediumCaption1Regular ds-font-normal ds-mt-space075",Lv[e]),l),children:[e==="error"&&C.jsx("img",{src:Iv,alt:"error",className:Be(je("ds-me-1"))}),e==="success"&&C.jsx("img",{src:Nv,alt:"success",className:Be(je("ds-me-1"))}),i]})]})});vD.displayName="Input";function yD(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=yD(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function zT(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=yD(e))&&(n&&(n+=" "),n+=t);return n}const qv=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Bv=zT,gD=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Bv(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(c=>{const u=r==null?void 0:r[c],d=i==null?void 0:i[c];if(u===null)return null;const f=qv(u)||qv(d);return a[c][f]}),s=r&&Object.entries(r).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let y=u,{class:d,className:f}=y,p=$t(y,["class","className"]);return Object.entries(p).every(v=>{let[g,_]=v;return Array.isArray(_)?_.includes(Oe(Oe({},i),s)[g]):Oe(Oe({},i),s)[g]===_})?[...c,d,f]:c},[]);return Bv(e,o,l,r==null?void 0:r.class,r==null?void 0:r.className)},VT=gD("ds-border ds-text-text-primary",{variants:{cardType:{default:"ds-shadow-none",shadowCard:"ds-shadow-card"}},defaultVariants:{cardType:"default"}}),mD=Se.forwardRef((a,n)=>{var i=a,{className:e,cardType:t}=i,r=$t(i,["className","cardType"]);return C.jsx("div",Oe({ref:n,className:Be(je(VT({cardType:t,className:e}),"ds-rounded"),e)},r))});mD.displayName="Card";const bD=Se.forwardRef((n,r)=>{var a=n,{className:e}=a,t=$t(a,["className"]);return C.jsx("div",Oe({ref:r,className:Be(je("ds-flex ds-flex-col ds-pt-space300 ds-pb-space200 ds-px-space300",e))},t))});bD.displayName="CardHeader";const _D=Se.forwardRef((n,r)=>{var a=n,{className:e}=a,t=$t(a,["className"]);return C.jsx("div",Oe({ref:r,className:Be(je("ds-font-medium",e))},t))});_D.displayName="Title";const SD=Se.forwardRef((n,r)=>{var a=n,{className:e}=a,t=$t(a,["className"]);return C.jsx("div",Oe({ref:r,className:Be(je("ds-font-regular",e))},t))});SD.displayName="Description";const DD=Se.forwardRef((n,r)=>{var a=n,{className:e}=a,t=$t(a,["className"]);return C.jsx("div",Oe({ref:r,className:Be(je("ds-pb-space300 ds-px-space300 ",e))},t))});DD.displayName="Content";const wD=Se.forwardRef((n,r)=>{var a=n,{className:e}=a,t=$t(a,["className"]);return C.jsx("div",Oe({ref:r,className:Be(je("ds-pb-space300 ds-px-space300",e))},t))});wD.displayName="Footer";const KT=gD("ds-grid ds-zero:ds-grid-cols-4 ds-gap-x-8 ds-mobile:ds-grid-cols-4 ds-tablet:ds-grid-cols-6 ds-desktop:ds-grid-cols-12 ds-wide_desktop:ds-grid-cols-12 ds-w-full",{variants:{display:{grid:"ds-grid",inlineGrid:"ds-inline-grid"},gap:{gap0:"ds-gap0",gap100:"ds-gap-100",gap150:"ds-gap-150",gap200:"ds-gap-200",gap300:"ds-gap-300",gap400:"ds-gap-400",gap600:"ds-gap-600",gap800:"ds-gap-800",gap1000:"ds-gap-1000",gap1200:"ds-gap-1200",gap1600:"ds-gap-1600",gap2000:"ds-gap-2000"},gapX:{gap0:"ds-gap-x-0",gap100:"ds-gap-x-100",gap150:"ds-gap-x-150",gap200:"ds-gap-x-200",gap300:"ds-gap-x-300",gap400:"ds-gap-x-400",gap600:"ds-gap-x-600",gap800:"ds-gap-x-800",gap1000:"ds-gap-x-1000",gap1200:"ds-gap-x-1200",gap1600:"ds-gap-x-1600",gap2000:"ds-gap-x-2000"},gapY:{gap0:"ds-gap-y-0",gap100:"ds-gap-y-100",gap150:"ds-gap-y-150",gap200:"ds-gap-y-200",gap300:"ds-gap-y-300",gap400:"ds-gap-y-400",gap600:"ds-gap-y-600",gap800:"ds-gap-y-800",gap1000:"ds-gap-y-1000",gap1200:"ds-gap-y-1200",gap1600:"ds-gap-y-1600",gap2000:"ds-gap-y-2000"},justifyContent:{normal:"ds-justify-normal",start:"ds-justify-start",end:"ds-justify-end",center:"ds-justify-center",between:"ds-justify-between",around:"ds-justify-around",evenly:"ds-justify-evenly",stretch:"ds-justify-stretch"},justifyItems:{start:"ds-justify-items-start",end:"ds-justify-items-end",center:"ds-justify-items-center",stretch:"ds-justify-items-stretch"},alignContent:{normal:"ds-content-normal",center:"ds-content-center",start:"ds-content-start",end:"ds-content-end",between:"ds-content-between",around:"ds-content-around",evenly:"ds-content-evenly",baseline:"ds-content-baseline",stretch:"ds-content-stretch"},alignItems:{start:"ds-items-start",end:"ds-items-end",center:"ds-items-center",baseline:"ds-items-baseline",stretch:"ds-items-stretch"},placeContent:{center:"ds-place-content-center",start:"ds-place-content-start",end:"ds-place-content-end",between:"ds-place-content-between",around:"ds-place-content-around",evenly:"ds-place-content-evenly",baseline:"ds-place-content-baseline",stretch:"ds-place-content-stretch"},placeItems:{start:"ds-place-items-start",end:"ds-place-items-end",center:"ds-place-items-center",baseline:"ds-place-items-baseline",stretch:"ds-place-items-stretch"}}}),PD=Se.forwardRef((a,n)=>{var i=a,{className:e,children:t}=i,r=$t(i,["className","children"]);return C.jsx("div",lt(Oe({className:Be(je(KT({display:r==null?void 0:r.display,gap:r==null?void 0:r.gap,gapX:r==null?void 0:r.gapX,gapY:r==null?void 0:r.gapY,justifyContent:r==null?void 0:r.justifyContent,justifyItems:r==null?void 0:r.justifyItems,alignContent:r==null?void 0:r.alignContent,alignItems:r==null?void 0:r.alignItems,placeContent:r==null?void 0:r.placeContent,placeItems:r==null?void 0:r.placeItems,className:e}))),ref:n},r),{children:t}))});PD.displayName="Grid";function Yn(e){return OD(e)?(e.nodeName||"").toLowerCase():"#document"}function tr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fr(e){var t;return(t=(OD(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function OD(e){return e instanceof Node||e instanceof tr(e).Node}function St(e){return e instanceof Element||e instanceof tr(e).Element}function ir(e){return e instanceof HTMLElement||e instanceof tr(e).HTMLElement}function hh(e){return typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof tr(e).ShadowRoot}function Na(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=cr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function YT(e){return["table","td","th"].includes(Yn(e))}function qi(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(r){return!1}})}function Qh(e){const t=Jh(),r=cr(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function GT(e){let t=Ar(e);for(;ir(t)&&!en(t);){if(qi(t))return null;if(Qh(t))return t;t=Ar(t)}return null}function Jh(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function en(e){return["html","body","#document"].includes(Yn(e))}function cr(e){return tr(e).getComputedStyle(e)}function Bi(e){return St(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ar(e){if(Yn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hh(e)&&e.host||Fr(e);return hh(t)?t.host:t}function TD(e){const t=Ar(e);return en(t)?e.ownerDocument?e.ownerDocument.body:e.body:ir(t)&&Na(t)?t:TD(t)}function Xr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=TD(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),o=tr(a);return i?t.concat(o,o.visualViewport||[],Na(a)?a:[],o.frameElement&&r?Xr(o.frameElement):[]):t.concat(a,Xr(a,[],r))}function Wv(e){let t=e.activeElement;for(;((r=t)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;t=t.shadowRoot.activeElement}return t}function wa(e,t){if(!e||!t)return!1;const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&hh(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function RD(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function kD(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function UT(e){return QT()?!1:!$v()&&e.width===0&&e.height===0||$v()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function XT(){return/apple/i.test(navigator.vendor)}function $v(){const e=/android/i;return e.test(RD())||e.test(kD())}function ZT(){return RD().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function QT(){return kD().includes("jsdom/")}function ph(e,t){const r=["mouse","pen"];return r.push("",void 0),r.includes(e)}function JT(e){return"nativeEvent"in e}function eR(e){return e.matches("html,body")}function dn(e){return(e==null?void 0:e.ownerDocument)||document}function To(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}function Rn(e){return"composedPath"in e?e.composedPath()[0]:e.target}const tR="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function rR(e){return ir(e)&&e.matches(tR)}const vh=Math.min,xn=Math.max,vi=Math.round,Xa=Math.floor,tn=e=>({x:e,y:e}),nR={left:"right",right:"left",bottom:"top",top:"bottom"},aR={start:"end",end:"start"};function ep(e,t){return typeof e=="function"?e(t):e}function qn(e){return e.split("-")[0]}function Wi(e){return e.split("-")[1]}function iR(e){return e==="x"?"y":"x"}function CD(e){return e==="y"?"height":"width"}function Pa(e){return["top","bottom"].includes(qn(e))?"y":"x"}function MD(e){return iR(Pa(e))}function oR(e,t,r){r===void 0&&(r=!1);const n=Wi(e),a=MD(e),i=CD(a);let o=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=yi(o)),[o,yi(o)]}function sR(e){const t=yi(e);return[yh(e),t,yh(t)]}function yh(e){return e.replace(/start|end/g,t=>aR[t])}function lR(e,t,r){const n=["left","right"],a=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return r?t?a:n:t?n:a;case"left":case"right":return t?i:o;default:return[]}}function uR(e,t,r,n){const a=Wi(e);let i=lR(qn(e),r==="start",n);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map(yh)))),i}function yi(e){return e.replace(/left|right|bottom|top/g,t=>nR[t])}function cR(e){return Oe({top:0,right:0,bottom:0,left:0},e)}function dR(e){return typeof e!="number"?cR(e):{top:e,right:e,bottom:e,left:e}}function gi(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function Hv(e,t,r){let{reference:n,floating:a}=e;const i=Pa(t),o=MD(t),s=CD(o),l=qn(t),c=i==="y",u=n.x+n.width/2-a.width/2,d=n.y+n.height/2-a.height/2,f=n[s]/2-a[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-a.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-a.width,y:d};break;default:p={x:n.x,y:n.y}}switch(Wi(t)){case"start":p[o]-=f*(r&&c?-1:1);break;case"end":p[o]+=f*(r&&c?-1:1);break}return p}const fR=(e,t,r)=>on(exports,null,function*(){const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:o}=r,s=i.filter(Boolean),l=yield o.isRTL==null?void 0:o.isRTL(t);let c=yield o.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=Hv(c,n,l),f=n,p={},y=0;for(let v=0;v<s.length;v++){const{name:g,fn:_}=s[v],{x:m,y:k,data:x,reset:A}=yield _({x:u,y:d,initialPlacement:n,placement:f,strategy:a,middlewareData:p,rects:c,platform:o,elements:{reference:e,floating:t}});u=m!=null?m:u,d=k!=null?k:d,p=lt(Oe({},p),{[g]:Oe(Oe({},p[g]),x)}),A&&y<=50&&(y++,typeof A=="object"&&(A.placement&&(f=A.placement),A.rects&&(c=A.rects===!0?yield o.getElementRects({reference:e,floating:t,strategy:a}):A.rects),{x:u,y:d}=Hv(c,f,l)),v=-1)}return{x:u,y:d,placement:f,strategy:a,middlewareData:p}});function hR(e,t){return on(this,null,function*(){var r;t===void 0&&(t={});const{x:n,y:a,platform:i,rects:o,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=ep(t,e),y=dR(p),g=s[f?d==="floating"?"reference":"floating":d],_=gi(yield i.getClippingRect({element:(r=yield i.isElement==null?void 0:i.isElement(g))==null||r?g:g.contextElement||(yield i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),m=d==="floating"?{x:n,y:a,width:o.floating.width,height:o.floating.height}:o.reference,k=yield i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating),x=(yield i.isElement==null?void 0:i.isElement(k))?(yield i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},A=gi(i.convertOffsetParentRelativeRectToViewportRelativeRect?yield i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:k,strategy:l}):m);return{top:(_.top-A.top+y.top)/x.y,bottom:(A.bottom-_.bottom+y.bottom)/x.y,left:(_.left-A.left+y.left)/x.x,right:(A.right-_.right+y.right)/x.x}})}const pR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(r){return on(this,null,function*(){var n,a;const{placement:i,middlewareData:o,rects:s,initialPlacement:l,platform:c,elements:u}=r,T=ep(e,r),{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:g=!0}=T,_=$t(T,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const m=qn(i),k=Pa(l),x=qn(l)===l,A=yield c.isRTL==null?void 0:c.isRTL(u.floating),j=p||(x||!g?[yi(l)]:sR(l)),F=v!=="none";!p&&F&&j.push(...uR(l,g,v,A));const W=[l,...j],I=yield hR(r,_),P=[];let b=((a=o.flip)==null?void 0:a.overflows)||[];if(d&&P.push(I[m]),f){const $=oR(i,s,A);P.push(I[$[0]],I[$[1]])}if(b=[...b,{placement:i,overflows:P}],!P.every($=>$<=0)){var S,D;const $=(((S=o.flip)==null?void 0:S.index)||0)+1,B=W[$];if(B)return{data:{index:$,overflows:b},reset:{placement:B}};let R=(D=b.filter(N=>N.overflows[0]<=0).sort((N,w)=>N.overflows[1]-w.overflows[1])[0])==null?void 0:D.placement;if(!R)switch(y){case"bestFit":{var M;const N=(M=b.filter(w=>{if(F){const h=Pa(w.placement);return h===k||h==="y"}return!0}).map(w=>[w.placement,w.overflows.filter(h=>h>0).reduce((h,q)=>h+q,0)]).sort((w,h)=>w[1]-h[1])[0])==null?void 0:M[0];N&&(R=N);break}case"initialPlacement":R=l;break}if(i!==R)return{reset:{placement:R}}}return{}})}}};function vR(e,t){return on(this,null,function*(){const{placement:r,platform:n,elements:a}=e,i=yield n.isRTL==null?void 0:n.isRTL(a.floating),o=qn(r),s=Wi(r),l=Pa(r)==="y",c=["left","top"].includes(o)?-1:1,u=i&&l?-1:1,d=ep(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:y}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:Oe({mainAxis:0,crossAxis:0,alignmentAxis:null},d);return s&&typeof y=="number"&&(p=s==="end"?y*-1:y),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}})}const yR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(r){return on(this,null,function*(){var n,a;const{x:i,y:o,placement:s,middlewareData:l}=r,c=yield vR(r,e);return s===((n=l.offset)==null?void 0:n.placement)&&(a=l.arrow)!=null&&a.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:lt(Oe({},c),{placement:s})}})}}};function xD(e){const t=cr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=ir(e),i=a?e.offsetWidth:r,o=a?e.offsetHeight:n,s=vi(r)!==i||vi(n)!==o;return s&&(r=i,n=o),{width:r,height:n,$:s}}function tp(e){return St(e)?e:e.contextElement}function En(e){const t=tp(e);if(!ir(t))return tn(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:i}=xD(t);let o=(i?vi(r.width):r.width)/n,s=(i?vi(r.height):r.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const gR=tn(0);function ED(e){const t=tr(e);return!Jh()||!t.visualViewport?gR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mR(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==tr(e)?!1:t}function yn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),i=tp(e);let o=tn(1);t&&(n?St(n)&&(o=En(n)):o=En(e));const s=mR(i,r,n)?ED(i):tn(0);let l=(a.left+s.x)/o.x,c=(a.top+s.y)/o.y,u=a.width/o.x,d=a.height/o.y;if(i){const f=tr(i),p=n&&St(n)?tr(n):n;let y=f,v=y.frameElement;for(;v&&n&&p!==y;){const g=En(v),_=v.getBoundingClientRect(),m=cr(v),k=_.left+(v.clientLeft+parseFloat(m.paddingLeft))*g.x,x=_.top+(v.clientTop+parseFloat(m.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=k,c+=x,y=tr(v),v=y.frameElement}}return gi({width:u,height:d,x:l,y:c})}function bR(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const i=a==="fixed",o=Fr(n),s=t?qi(t.floating):!1;if(n===o||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=tn(1);const u=tn(0),d=ir(n);if((d||!d&&!i)&&((Yn(n)!=="body"||Na(o))&&(l=Bi(n)),ir(n))){const f=yn(n);c=En(n),u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x,y:r.y*c.y-l.scrollTop*c.y+u.y}}function _R(e){return Array.from(e.getClientRects())}function ID(e){return yn(Fr(e)).left+Bi(e).scrollLeft}function SR(e){const t=Fr(e),r=Bi(e),n=e.ownerDocument.body,a=xn(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=xn(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+ID(e);const s=-r.scrollTop;return cr(n).direction==="rtl"&&(o+=xn(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:o,y:s}}function DR(e,t){const r=tr(e),n=Fr(e),a=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const c=Jh();(!c||c&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}function wR(e,t){const r=yn(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=ir(e)?En(e):tn(1),o=e.clientWidth*i.x,s=e.clientHeight*i.y,l=a*i.x,c=n*i.y;return{width:o,height:s,x:l,y:c}}function zv(e,t,r){let n;if(t==="viewport")n=DR(e,r);else if(t==="document")n=SR(Fr(e));else if(St(t))n=wR(t,r);else{const a=ED(e);n=lt(Oe({},t),{x:t.x-a.x,y:t.y-a.y})}return gi(n)}function ND(e,t){const r=Ar(e);return r===t||!St(r)||en(r)?!1:cr(r).position==="fixed"||ND(r,t)}function PR(e,t){const r=t.get(e);if(r)return r;let n=Xr(e,[],!1).filter(s=>St(s)&&Yn(s)!=="body"),a=null;const i=cr(e).position==="fixed";let o=i?Ar(e):e;for(;St(o)&&!en(o);){const s=cr(o),l=Qh(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Na(o)&&!l&&ND(e,o))?n=n.filter(u=>u!==o):a=s,o=Ar(o)}return t.set(e,n),n}function OR(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const o=[...r==="clippingAncestors"?qi(t)?[]:PR(t,this._c):[].concat(r),n],s=o[0],l=o.reduce((c,u)=>{const d=zv(t,u,a);return c.top=xn(d.top,c.top),c.right=vh(d.right,c.right),c.bottom=vh(d.bottom,c.bottom),c.left=xn(d.left,c.left),c},zv(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function TR(e){const{width:t,height:r}=xD(e);return{width:t,height:r}}function RR(e,t,r){const n=ir(t),a=Fr(t),i=r==="fixed",o=yn(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=tn(0);if(n||!n&&!i)if((Yn(t)!=="body"||Na(a))&&(s=Bi(t)),n){const d=yn(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else a&&(l.x=ID(a));const c=o.left+s.scrollLeft-l.x,u=o.top+s.scrollTop-l.y;return{x:c,y:u,width:o.width,height:o.height}}function Ro(e){return cr(e).position==="static"}function Vv(e,t){return!ir(e)||cr(e).position==="fixed"?null:t?t(e):e.offsetParent}function AD(e,t){const r=tr(e);if(qi(e))return r;if(!ir(e)){let a=Ar(e);for(;a&&!en(a);){if(St(a)&&!Ro(a))return a;a=Ar(a)}return r}let n=Vv(e,t);for(;n&&YT(n)&&Ro(n);)n=Vv(n,t);return n&&en(n)&&Ro(n)&&!Qh(n)?r:n||GT(e)||r}const kR=function(e){return on(this,null,function*(){const t=this.getOffsetParent||AD,r=this.getDimensions,n=yield r(e.floating);return{reference:RR(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}})};function CR(e){return cr(e).direction==="rtl"}const MR={convertOffsetParentRelativeRectToViewportRelativeRect:bR,getDocumentElement:Fr,getClippingRect:OR,getOffsetParent:AD,getElementRects:kR,getClientRects:_R,getDimensions:TR,getScale:En,isElement:St,isRTL:CR};function xR(e,t){let r=null,n;const a=Fr(e);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p=Xa(u),y=Xa(a.clientWidth-(c+d)),v=Xa(a.clientHeight-(u+f)),g=Xa(c),m={rootMargin:-p+"px "+-y+"px "+-v+"px "+-g+"px",threshold:xn(0,vh(1,l))||1};let k=!0;function x(A){const j=A[0].intersectionRatio;if(j!==l){if(!k)return o();j?o(!1,j):n=setTimeout(()=>{o(!1,1e-7)},1e3)}k=!1}try{r=new IntersectionObserver(x,lt(Oe({},m),{root:a.ownerDocument}))}catch(A){r=new IntersectionObserver(x,m)}r.observe(e)}return o(!0),i}function ER(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=tp(e),u=a||i?[...c?Xr(c):[],...Xr(t)]:[];u.forEach(_=>{a&&_.addEventListener("scroll",r,{passive:!0}),i&&_.addEventListener("resize",r)});const d=c&&s?xR(c,r):null;let f=-1,p=null;o&&(p=new ResizeObserver(_=>{let[m]=_;m&&m.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var k;(k=p)==null||k.observe(t)})),r()}),c&&!l&&p.observe(c),p.observe(t));let y,v=l?yn(e):null;l&&g();function g(){const _=yn(e);v&&(_.x!==v.x||_.y!==v.y||_.width!==v.width||_.height!==v.height)&&r(),v=_,y=requestAnimationFrame(g)}return r(),()=>{var _;u.forEach(m=>{a&&m.removeEventListener("scroll",r),i&&m.removeEventListener("resize",r)}),d==null||d(),(_=p)==null||_.disconnect(),p=null,l&&cancelAnimationFrame(y)}}const IR=yR,NR=pR,AR=(e,t,r)=>{const n=new Map,a=Oe({platform:MR},r),i=lt(Oe({},a.platform),{_c:n});return fR(e,t,lt(Oe({},a),{platform:i}))};var li=typeof document!="undefined"?oe.useLayoutEffect:oe.useEffect;function mi(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!mi(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const i=a[n];if(!(i==="_owner"&&e.$$typeof)&&!mi(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function jD(e){return typeof window=="undefined"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kv(e,t){const r=jD(e);return Math.round(t*r)/r}function Yv(e){const t=Se.useRef(e);return li(()=>{t.current=e}),t}function jR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:i,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=Se.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=Se.useState(n);mi(f,n)||p(n);const[y,v]=Se.useState(null),[g,_]=Se.useState(null),m=Se.useCallback(B=>{B!==j.current&&(j.current=B,v(B))},[]),k=Se.useCallback(B=>{B!==F.current&&(F.current=B,_(B))},[]),x=i||y,A=o||g,j=Se.useRef(null),F=Se.useRef(null),W=Se.useRef(u),I=l!=null,P=Yv(l),b=Yv(a),S=Se.useCallback(()=>{if(!j.current||!F.current)return;const B={placement:t,strategy:r,middleware:f};b.current&&(B.platform=b.current),AR(j.current,F.current,B).then(R=>{const N=lt(Oe({},R),{isPositioned:!0});D.current&&!mi(W.current,N)&&(W.current=N,cT.flushSync(()=>{d(N)}))})},[f,t,r,b]);li(()=>{c===!1&&W.current.isPositioned&&(W.current.isPositioned=!1,d(B=>lt(Oe({},B),{isPositioned:!1})))},[c]);const D=Se.useRef(!1);li(()=>(D.current=!0,()=>{D.current=!1}),[]),li(()=>{if(x&&(j.current=x),A&&(F.current=A),x&&A){if(P.current)return P.current(x,A,S);S()}},[x,A,S,P,I]);const M=Se.useMemo(()=>({reference:j,floating:F,setReference:m,setFloating:k}),[m,k]),T=Se.useMemo(()=>({reference:x,floating:A}),[x,A]),$=Se.useMemo(()=>{const B={position:r,left:0,top:0};if(!T.floating)return B;const R=Kv(T.floating,u.x),N=Kv(T.floating,u.y);return s?Oe(lt(Oe({},B),{transform:"translate("+R+"px, "+N+"px)"}),jD(T.floating)>=1.5&&{willChange:"transform"}):{position:r,left:R,top:N}},[r,s,T.floating,u.x,u.y]);return Se.useMemo(()=>lt(Oe({},u),{update:S,refs:M,elements:T,floatingStyles:$}),[u,S,M,T,$])}const FR=(e,t)=>lt(Oe({},IR(e)),{options:[e,t]}),LR=(e,t)=>lt(Oe({},NR(e)),{options:[e,t]}),FD=Oe({},Se),qR=FD.useInsertionEffect,BR=qR||(e=>e());function Yr(e){const t=Se.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return BR(()=>{t.current=e}),Se.useCallback(function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.current==null?void 0:t.current(...n)},[])}var Bn=typeof document!="undefined"?oe.useLayoutEffect:oe.useEffect;let Gv=!1,WR=0;const Uv=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+WR++;function $R(){const[e,t]=Se.useState(()=>Gv?Uv():void 0);return Bn(()=>{e==null&&t(Uv())},[]),Se.useEffect(()=>{Gv=!0},[]),e}const HR=FD.useId,LD=HR||$R;let gh;process.env.NODE_ENV!=="production"&&(gh=new Set);function zR(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const a="Floating UI: "+r.join(" ");if(!((e=gh)!=null&&e.has(a))){var i;(i=gh)==null||i.add(a),console.error(a)}}function VR(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(a=>a(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,((n=e.get(t))==null?void 0:n.filter(a=>a!==r))||[])}}}const KR=Se.createContext(null),YR=Se.createContext(null),rp=()=>{var e;return((e=Se.useContext(KR))==null?void 0:e.id)||null},np=()=>Se.useContext(YR);function ap(e){return"data-floating-ui-"+e}function ko(e){const t=oe.useRef(e);return Bn(()=>{t.current=e}),t}const Xv=ap("safe-polygon");function Co(e,t,r){return r&&!ph(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}function GR(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,dataRef:a,events:i,elements:o}=e,{enabled:s=!0,delay:l=0,handleClose:c=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=np(),y=rp(),v=ko(c),g=ko(l),_=ko(r),m=Se.useRef(),k=Se.useRef(-1),x=Se.useRef(),A=Se.useRef(-1),j=Se.useRef(!0),F=Se.useRef(!1),W=Se.useRef(()=>{}),I=Se.useCallback(()=>{var T;const $=(T=a.current.openEvent)==null?void 0:T.type;return($==null?void 0:$.includes("mouse"))&&$!=="mousedown"},[a]);Se.useEffect(()=>{if(!s)return;function T($){let{open:B}=$;B||(clearTimeout(k.current),clearTimeout(A.current),j.current=!0)}return i.on("openchange",T),()=>{i.off("openchange",T)}},[s,i]),Se.useEffect(()=>{if(!s||!v.current||!r)return;function T(B){I()&&n(!1,B,"hover")}const $=dn(o.floating).documentElement;return $.addEventListener("mouseleave",T),()=>{$.removeEventListener("mouseleave",T)}},[o.floating,r,n,s,v,I]);const P=Se.useCallback(function(T,$,B){$===void 0&&($=!0),B===void 0&&(B="hover");const R=Co(g.current,"close",m.current);R&&!x.current?(clearTimeout(k.current),k.current=window.setTimeout(()=>n(!1,T,B),R)):$&&(clearTimeout(k.current),n(!1,T,B))},[g,n]),b=Yr(()=>{W.current(),x.current=void 0}),S=Yr(()=>{if(F.current){const T=dn(o.floating).body;T.style.pointerEvents="",T.removeAttribute(Xv),F.current=!1}});Se.useEffect(()=>{if(!s)return;function T(){return a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1}function $(w){if(clearTimeout(k.current),j.current=!1,u&&!ph(m.current)||d>0&&!Co(g.current,"open"))return;const h=Co(g.current,"open",m.current);h?k.current=window.setTimeout(()=>{_.current||n(!0,w,"hover")},h):n(!0,w,"hover")}function B(w){if(T())return;W.current();const h=dn(o.floating);if(clearTimeout(A.current),v.current&&a.current.floatingContext){r||clearTimeout(k.current),x.current=v.current(lt(Oe({},a.current.floatingContext),{tree:p,x:w.clientX,y:w.clientY,onClose(){S(),b(),P(w,!0,"safe-polygon")}}));const z=x.current;h.addEventListener("mousemove",z),W.current=()=>{h.removeEventListener("mousemove",z)};return}(m.current==="touch"?!wa(o.floating,w.relatedTarget):!0)&&P(w)}function R(w){T()||a.current.floatingContext&&(v.current==null||v.current(lt(Oe({},a.current.floatingContext),{tree:p,x:w.clientX,y:w.clientY,onClose(){S(),b(),P(w)}}))(w))}if(St(o.domReference)){var N;const w=o.domReference;return r&&w.addEventListener("mouseleave",R),(N=o.floating)==null||N.addEventListener("mouseleave",R),f&&w.addEventListener("mousemove",$,{once:!0}),w.addEventListener("mouseenter",$),w.addEventListener("mouseleave",B),()=>{var h;r&&w.removeEventListener("mouseleave",R),(h=o.floating)==null||h.removeEventListener("mouseleave",R),f&&w.removeEventListener("mousemove",$),w.removeEventListener("mouseenter",$),w.removeEventListener("mouseleave",B)}}},[o,s,e,u,d,f,P,b,S,n,r,_,p,g,v,a]),Bn(()=>{var T;if(s&&r&&(T=v.current)!=null&&T.__options.blockPointerEvents&&I()){const B=dn(o.floating).body;B.setAttribute(Xv,""),B.style.pointerEvents="none",F.current=!0;const R=o.floating;if(St(o.domReference)&&R){var $;const N=o.domReference,w=p==null||($=p.nodesRef.current.find(h=>h.id===y))==null||($=$.context)==null?void 0:$.elements.floating;return w&&(w.style.pointerEvents=""),N.style.pointerEvents="auto",R.style.pointerEvents="auto",()=>{N.style.pointerEvents="",R.style.pointerEvents=""}}}},[s,r,y,o,p,v,I]),Bn(()=>{r||(m.current=void 0,b(),S())},[r,b,S]),Se.useEffect(()=>()=>{b(),clearTimeout(k.current),clearTimeout(A.current),S()},[s,o.domReference,b,S]);const D=Se.useMemo(()=>{function T($){m.current=$.pointerType}return{onPointerDown:T,onPointerEnter:T,onMouseMove($){const{nativeEvent:B}=$;function R(){!j.current&&!_.current&&n(!0,B,"hover")}u&&!ph(m.current)||r||d===0||(clearTimeout(A.current),m.current==="touch"?R():A.current=window.setTimeout(R,d))}}},[u,n,r,_,d]),M=Se.useMemo(()=>({onMouseEnter(){clearTimeout(k.current)},onMouseLeave(T){P(T.nativeEvent,!1)}}),[P]);return Se.useMemo(()=>s?{reference:D,floating:M}:{},[s,D,M])}function Mo(e,t){let r=e.filter(a=>{var i;return a.parentId===t&&((i=a.context)==null?void 0:i.open)}),n=r;for(;n.length;)n=e.filter(a=>{var i;return(i=n)==null?void 0:i.some(o=>{var s;return a.parentId===o.id&&((s=a.context)==null?void 0:s.open)})}),r=r.concat(n);return r}const UR={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},XR={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Zv=e=>{var t,r;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(r=e==null?void 0:e.outsidePress)!=null?r:!0}};function ZR(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,elements:a,dataRef:i}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:p,capture:y}=t,v=np(),g=Yr(typeof l=="function"?l:()=>!1),_=typeof l=="function"?g:l,m=Se.useRef(!1),k=Se.useRef(!1),{escapeKey:x,outsidePress:A}=Zv(p),{escapeKey:j,outsidePress:F}=Zv(y),W=Yr(M=>{var T;if(!r||!o||!s||M.key!=="Escape")return;const $=(T=i.current.floatingContext)==null?void 0:T.nodeId,B=v?Mo(v.nodesRef.current,$):[];if(!x&&(M.stopPropagation(),B.length>0)){let R=!0;if(B.forEach(N=>{var w;if((w=N.context)!=null&&w.open&&!N.context.dataRef.current.__escapeKeyBubbles){R=!1;return}}),!R)return}n(!1,JT(M)?M.nativeEvent:M,"escape-key")}),I=Yr(M=>{var T;const $=()=>{var B;W(M),(B=Rn(M))==null||B.removeEventListener("keydown",$)};(T=Rn(M))==null||T.addEventListener("keydown",$)}),P=Yr(M=>{var T;const $=m.current;m.current=!1;const B=k.current;if(k.current=!1,c==="click"&&B||$||typeof _=="function"&&!_(M))return;const R=Rn(M),N="["+ap("inert")+"]",w=dn(a.floating).querySelectorAll(N);let h=St(R)?R:null;for(;h&&!en(h);){const Q=Ar(h);if(en(Q)||!St(Q))break;h=Q}if(w.length&&St(R)&&!eR(R)&&!wa(R,a.floating)&&Array.from(w).every(Q=>!wa(h,Q)))return;if(ir(R)&&D){const Q=R.clientWidth>0&&R.scrollWidth>R.clientWidth,Y=R.clientHeight>0&&R.scrollHeight>R.clientHeight;let Z=Y&&M.offsetX>R.clientWidth;if(Y&&cr(R).direction==="rtl"&&(Z=M.offsetX<=R.offsetWidth-R.clientWidth),Z||Q&&M.offsetY>R.clientHeight)return}const q=(T=i.current.floatingContext)==null?void 0:T.nodeId,z=v&&Mo(v.nodesRef.current,q).some(Q=>{var Y;return To(M,(Y=Q.context)==null?void 0:Y.elements.floating)});if(To(M,a.floating)||To(M,a.domReference)||z)return;const K=v?Mo(v.nodesRef.current,q):[];if(K.length>0){let Q=!0;if(K.forEach(Y=>{var Z;if((Z=Y.context)!=null&&Z.open&&!Y.context.dataRef.current.__outsidePressBubbles){Q=!1;return}}),!Q)return}n(!1,M,"outside-press")}),b=Yr(M=>{var T;const $=()=>{var B;P(M),(B=Rn(M))==null||B.removeEventListener(c,$)};(T=Rn(M))==null||T.addEventListener(c,$)});Se.useEffect(()=>{if(!r||!o)return;i.current.__escapeKeyBubbles=x,i.current.__outsidePressBubbles=A;function M(B){n(!1,B,"ancestor-scroll")}const T=dn(a.floating);s&&T.addEventListener("keydown",j?I:W,j),_&&T.addEventListener(c,F?b:P,F);let $=[];return f&&(St(a.domReference)&&($=Xr(a.domReference)),St(a.floating)&&($=$.concat(Xr(a.floating))),!St(a.reference)&&a.reference&&a.reference.contextElement&&($=$.concat(Xr(a.reference.contextElement)))),$=$.filter(B=>{var R;return B!==((R=T.defaultView)==null?void 0:R.visualViewport)}),$.forEach(B=>{B.addEventListener("scroll",M,{passive:!0})}),()=>{s&&T.removeEventListener("keydown",j?I:W,j),_&&T.removeEventListener(c,F?b:P,F),$.forEach(B=>{B.removeEventListener("scroll",M)})}},[i,a,s,_,c,r,n,f,o,x,A,W,j,I,P,F,b]),Se.useEffect(()=>{m.current=!1},[_,c]);const S=Se.useMemo(()=>({onKeyDown:W,[UR[d]]:M=>{u&&n(!1,M.nativeEvent,"reference-press")}}),[W,n,u,d]),D=Se.useMemo(()=>({onKeyDown:W,onMouseDown(){k.current=!0},onMouseUp(){k.current=!0},[XR[c]]:()=>{m.current=!0}}),[W,c]);return Se.useMemo(()=>o?{reference:S,floating:D}:{},[o,S,D])}function QR(e){const{open:t=!1,onOpenChange:r,elements:n}=e,a=LD(),i=Se.useRef({}),[o]=Se.useState(()=>VR()),s=rp()!=null;if(process.env.NODE_ENV!=="production"){const p=n.reference;p&&!St(p)&&zR("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,c]=Se.useState(n.reference),u=Yr((p,y,v)=>{i.current.openEvent=p?y:void 0,o.emit("openchange",{open:p,event:y,reason:v,nested:s}),r==null||r(p,y,v)}),d=Se.useMemo(()=>({setPositionReference:c}),[]),f=Se.useMemo(()=>({reference:l||n.reference||null,floating:n.floating||null,domReference:n.reference}),[l,n.reference,n.floating]);return Se.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:f,events:o,floatingId:a,refs:d}),[t,u,f,o,a,d])}function JR(e){e===void 0&&(e={});const{nodeId:t}=e,r=QR(lt(Oe({},e),{elements:Oe({reference:null,floating:null},e.elements)})),n=e.rootContext||r,a=n.elements,[i,o]=Se.useState(null),[s,l]=Se.useState(null),u=(a==null?void 0:a.reference)||i,d=Se.useRef(null),f=np();Bn(()=>{u&&(d.current=u)},[u]);const p=jR(lt(Oe({},e),{elements:Oe(Oe({},a),s&&{reference:s})})),y=Se.useCallback(k=>{const x=St(k)?{getBoundingClientRect:()=>k.getBoundingClientRect(),contextElement:k}:k;l(x),p.refs.setReference(x)},[p.refs]),v=Se.useCallback(k=>{(St(k)||k===null)&&(d.current=k,o(k)),(St(p.refs.reference.current)||p.refs.reference.current===null||k!==null&&!St(k))&&p.refs.setReference(k)},[p.refs]),g=Se.useMemo(()=>lt(Oe({},p.refs),{setReference:v,setPositionReference:y,domReference:d}),[p.refs,v,y]),_=Se.useMemo(()=>lt(Oe({},p.elements),{domReference:u}),[p.elements,u]),m=Se.useMemo(()=>lt(Oe(Oe({},p),n),{refs:g,elements:_,nodeId:t}),[p,g,_,t,n]);return Bn(()=>{n.dataRef.current.floatingContext=m;const k=f==null?void 0:f.nodesRef.current.find(x=>x.id===t);k&&(k.context=m)}),Se.useMemo(()=>lt(Oe({},p),{context:m,refs:g,elements:_}),[p,g,_,m])}function ek(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,events:a,dataRef:i,elements:o}=e,{enabled:s=!0,visibleOnly:l=!0}=t,c=Se.useRef(!1),u=Se.useRef(),d=Se.useRef(!0);Se.useEffect(()=>{if(!s)return;const p=tr(o.domReference);function y(){!r&&ir(o.domReference)&&o.domReference===Wv(dn(o.domReference))&&(c.current=!0)}function v(){d.current=!0}return p.addEventListener("blur",y),p.addEventListener("keydown",v,!0),()=>{p.removeEventListener("blur",y),p.removeEventListener("keydown",v,!0)}},[o.domReference,r,s]),Se.useEffect(()=>{if(!s)return;function p(y){let{reason:v}=y;(v==="reference-press"||v==="escape-key")&&(c.current=!0)}return a.on("openchange",p),()=>{a.off("openchange",p)}},[a,s]),Se.useEffect(()=>()=>{clearTimeout(u.current)},[]);const f=Se.useMemo(()=>({onPointerDown(p){UT(p.nativeEvent)||(d.current=!1)},onMouseLeave(){c.current=!1},onFocus(p){if(c.current)return;const y=Rn(p.nativeEvent);if(l&&St(y))try{if(XT()&&ZT())throw Error();if(!y.matches(":focus-visible"))return}catch(v){if(!d.current&&!rR(y))return}n(!0,p.nativeEvent,"focus")},onBlur(p){c.current=!1;const y=p.relatedTarget,v=p.nativeEvent,g=St(y)&&y.hasAttribute(ap("focus-guard"))&&y.getAttribute("data-type")==="outside";u.current=window.setTimeout(()=>{var _;const m=Wv(o.domReference?o.domReference.ownerDocument:document);!y&&m===o.domReference||wa((_=i.current.floatingContext)==null?void 0:_.refs.floating.current,m)||wa(o.domReference,m)||g||n(!1,v,"focus")})}}),[i,o.domReference,n,l]);return Se.useMemo(()=>s?{reference:f}:{},[s,f])}const xo="active",Eo="selected";function Io(e,t,r){const n=new Map,a=r==="item";let i=e;if(a&&e){const o=e,{[xo]:s,[Eo]:l}=o;i=$t(o,[Oo(xo),Oo(Eo)])}return Oe(Oe(Oe({},r==="floating"&&{tabIndex:-1}),i),t.map(s=>{const l=s?s[r]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((s,l)=>(l&&Object.entries(l).forEach(c=>{let[u,d]=c;if(!(a&&[xo,Eo].includes(u)))if(u.indexOf("on")===0){if(n.has(u)||n.set(u,[]),typeof d=="function"){var f;(f=n.get(u))==null||f.push(d),s[u]=function(){for(var p,y=arguments.length,v=new Array(y),g=0;g<y;g++)v[g]=arguments[g];return(p=n.get(u))==null?void 0:p.map(_=>_(...v)).find(_=>_!==void 0)}}}else s[u]=d}),s),{}))}function tk(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),r=e.map(s=>s==null?void 0:s.floating),n=e.map(s=>s==null?void 0:s.item),a=Se.useCallback(s=>Io(s,e,"reference"),t),i=Se.useCallback(s=>Io(s,e,"floating"),r),o=Se.useCallback(s=>Io(s,e,"item"),n);return Se.useMemo(()=>({getReferenceProps:a,getFloatingProps:i,getItemProps:o}),[a,i,o])}const rk=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function nk(e,t){var r;t===void 0&&(t={});const{open:n,floatingId:a}=e,{enabled:i=!0,role:o="dialog"}=t,s=(r=rk.get(o))!=null?r:o,l=LD(),u=rp()!=null,d=Se.useMemo(()=>s==="tooltip"||o==="label"?{["aria-"+(o==="label"?"labelledby":"describedby")]:n?a:void 0}:Oe(Oe(Oe(Oe(Oe({"aria-expanded":n?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":n?a:void 0},s==="listbox"&&{role:"combobox"}),s==="menu"&&{id:l}),s==="menu"&&u&&{role:"menuitem"}),o==="select"&&{"aria-autocomplete":"none"}),o==="combobox"&&{"aria-autocomplete":"list"}),[s,a,u,n,l,o]),f=Se.useMemo(()=>{const y=Oe({id:a},s&&{role:s});return s==="tooltip"||o==="label"?y:Oe(Oe({},y),s==="menu"&&{"aria-labelledby":l})},[s,a,l,o]),p=Se.useCallback(y=>{let{active:v,selected:g}=y;const _=Oe({role:"option"},v&&{id:a+"-option"});switch(o){case"select":return lt(Oe({},_),{"aria-selected":v&&g});case"combobox":return Oe(Oe({},_),v&&{"aria-selected":!0})}return{}},[a,o]);return Se.useMemo(()=>i?{reference:d,floating:f,item:p}:{},[i,d,f,p])}const ak={slideUp:"slideDown",slideDown:"slideUp",fadeIn:"fadeOut"},$i=oe.forwardRef((e,t)=>{const _=e,{show:r,handleClose:n,animation:a="slideDown",marginTop:i,maxWidth:o,children:s,className:l,contentClassName:c}=_,u=$t(_,["show","handleClose","animation","marginTop","maxWidth","children","className","contentClassName"]),[d,f]=oe.useState(r),p=ak[a];oe.useEffect(()=>{const m=document.documentElement;return r?m.classList.add("modal-animated-open"):m.classList.remove("modal-animated-open"),()=>{m.classList.remove("modal-animated-open")}},[r]);const y=()=>{f(r)},v={marginTop:i?`${i}`:void 0,maxWidth:o?`${o}`:void 0},g=C.jsxs("div",lt(Oe({ref:t,className:Be("modal-animated",r||d?"show":"hide",l)},u),{children:[C.jsx("div",{className:"modal-animated-backdrop",onClick:n}),C.jsx("div",{className:Be("modal-animated-content",r?a+"Open":p+"Close",c),style:v,onClick:m=>m.stopPropagation(),onAnimationEnd:y,children:s})]}));return Ln.createPortal(g,document.body)});$i.displayName="AnimatedModal";const qD=({className:e})=>C.jsxs("svg",{width:"20",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[C.jsx("g",{clipPath:"url(#hei1mmknga)",children:C.jsx("path",{d:"M3.261 14.356a.664.664 0 0 0 .92 0l4.629-4.63 4.63 4.63a.657.657 0 0 0 .918 0 .655.655 0 0 0 0-.911l-4.63-4.637 4.63-4.63a.648.648 0 0 0 0-.911.65.65 0 0 0-.919 0l-4.63 4.63-4.629-4.63a.644.644 0 0 0-.919 0 .655.655 0 0 0 0 .911l4.63 4.63-4.63 4.637a.648.648 0 0 0 0 .911z",fill:"#000"})}),C.jsx("defs",{children:C.jsx("clipPath",{id:"hei1mmknga",children:C.jsx("path",{fill:"currentColor",transform:"translate(.11 .111)",d:"M0 0h17.778v17.778H0z"})})})]}),BD=({className:e})=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",width:"20",height:"20",viewBox:"0 0 20.2832 19.9316",className:e,children:C.jsxs("g",{children:[C.jsx("rect",{height:"19.9316",opacity:"0",width:"20.2832",x:"0",y:"0"}),C.jsx("path",{d:"M9.96094 19.9219C15.4102 19.9219 19.9219 15.4004 19.9219 9.96094C19.9219 4.51172 15.4004 0 9.95117 0C4.51172 0 0 4.51172 0 9.96094C0 15.4004 4.52148 19.9219 9.96094 19.9219ZM9.96094 18.2617C5.35156 18.2617 1.66992 14.5703 1.66992 9.96094C1.66992 5.35156 5.3418 1.66016 9.95117 1.66016C14.5605 1.66016 18.2617 5.35156 18.2617 9.96094C18.2617 14.5703 14.5703 18.2617 9.96094 18.2617Z",fill:"currentColor"}),C.jsx("path",{d:"M9.75586 11.9824C10.2441 11.9824 10.5469 11.6699 10.5469 11.2891C10.5469 11.25 10.5469 11.2012 10.5469 11.1719C10.5469 10.625 10.8594 10.2734 11.543 9.82422C12.4902 9.19922 13.1641 8.63281 13.1641 7.46094C13.1641 5.83984 11.7188 4.96094 10.0586 4.96094C8.37891 4.96094 7.27539 5.76172 7.01172 6.66016C6.96289 6.81641 6.93359 6.97266 6.93359 7.13867C6.93359 7.57812 7.27539 7.8125 7.59766 7.8125C7.92969 7.8125 8.14453 7.65625 8.32031 7.42188L8.49609 7.1875C8.83789 6.62109 9.3457 6.28906 10 6.28906C10.8887 6.28906 11.4648 6.79688 11.4648 7.53906C11.4648 8.20312 11.0547 8.52539 10.2051 9.12109C9.50195 9.60938 8.97461 10.127 8.97461 11.084C8.97461 11.123 8.97461 11.1719 8.97461 11.2109C8.97461 11.7188 9.25781 11.9824 9.75586 11.9824ZM9.73633 14.8926C10.3027 14.8926 10.791 14.4434 10.791 13.877C10.791 13.3105 10.3125 12.8613 9.73633 12.8613C9.16016 12.8613 8.68164 13.3203 8.68164 13.877C8.68164 14.4336 9.16992 14.8926 9.73633 14.8926Z",fill:"currentColor"})]})}),WD=({className:e})=>C.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[C.jsx("g",{clipPath:"url(#35uu1tft3a)",fill:"currentColor",fillOpacity:".85",children:C.jsx("path",{d:"M1.284 11.89c0 .282.177.46.445.46h.313c.265 0 .444-.178.444-.46v-.725c.056.017.236.03.367.03h9.702c.13 0 .31-.013.367-.03v.726c0 .281.178.46.444.46h.313c.268 0 .445-.179.445-.46V8.74c0-1.044-.555-1.611-1.566-1.611H2.85c-1.01 0-1.566.567-1.566 1.612v3.149zM2.526 6.31h1.316v-.694c0-.504.266-.775.76-.775h1.816c.49 0 .756.27.756.775v.693H8.28v-.693c0-.504.266-.775.778-.775h1.737c.512 0 .778.27.778.775v.693h1.319V4.836c0-.988-.515-1.503-1.455-1.503h-7.46c-.939 0-1.45.515-1.45 1.503v1.473z"})}),C.jsx("defs",{children:C.jsx("clipPath",{id:"35uu1tft3a",children:C.jsx("path",{fill:"currentColor",d:"M0 0h15.407v16H0z"})})})]}),ik=({className:e})=>C.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[C.jsx("g",{clipPath:"url(#nqg0m26dwa)",children:C.jsx("g",{clipPath:"url(#99912kbe5b)",children:C.jsx("path",{d:"M1.78 12.712h.316c.268 0 .447-.174.447-.448v-.779c.058.016.232.027.358.027h10.197c.127 0 .3-.01.358-.027v.78c0 .273.179.447.447.447h.316c.274 0 .447-.174.447-.448V8.66c0-1.005-.547-1.547-1.552-1.547H2.885c-1.005 0-1.552.542-1.552 1.547v3.605c0 .274.174.448.447.448zm.605-1.969c-.11 0-.179-.079-.179-.205v-2c0-.4.264-.658.674-.658h10.245c.405 0 .668.258.668.658v2c0 .126-.068.205-.179.205H2.385zm.316-3.52h1.384V6.138c0-.49.274-.757.773-.757h1.847c.495 0 .768.268.768.757v1.085h1.053V6.138c0-.49.273-.757.768-.757h1.847c.5 0 .773.268.773.757v1.085h1.384V5.307c0-.974-.52-1.474-1.468-1.474H4.17c-.943 0-1.469.5-1.469 1.474v1.916z",fill:"currentColor",fillOpacity:".85"})})}),C.jsxs("defs",{children:[C.jsx("clipPath",{id:"nqg0m26dwa",children:C.jsx("path",{fill:"currentColor",transform:"translate(0 .5)",d:"M0 0h16v16H0z"})}),C.jsx("clipPath",{id:"99912kbe5b",children:C.jsx("path",{fill:"currentColor",transform:"translate(1.333 3.833)",d:"M0 0h13.333v8.889H0z"})})]})]}),$D=({className:e})=>C.jsx("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:C.jsx("path",{d:"M9.303 12.254H6.57V8.759c0-.243.164-.402.408-.402H8.9c.244 0 .403.159.403.402v3.495zm-6.033-.317c0 .735.445 1.168 1.192 1.168h6.965c.747 0 1.186-.434 1.186-1.168V7.749L8.26 4.106a.467.467 0 0 0-.635 0L3.27 7.749v4.188zM1.617 7.22c0 .217.17.423.456.423.148 0 .27-.08.381-.17l5.302-4.44c.117-.106.26-.106.376 0l5.302 4.44c.106.09.228.17.377.17.248 0 .45-.153.45-.407a.432.432 0 0 0-.164-.36L8.582 2.25c-.392-.333-.88-.333-1.277 0l-5.52 4.626a.442.442 0 0 0-.169.344zm9.667-2.385 1.33 1.121V3.514c0-.233-.149-.381-.382-.381h-.567c-.227 0-.381.148-.381.38v1.322z",fill:"currentColor",fillOpacity:".85"})}),HD=({className:e})=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",width:"20",height:"20",viewBox:"0 0 24.248 10.5957",className:e,children:C.jsxs("g",{children:[C.jsx("rect",{height:"10.5957",opacity:"0",width:"24.248",x:"0",y:"0"}),C.jsx("path",{d:"M23.8867 2.63672C23.8867 0.908203 22.9883 0.00976562 21.2402 0.00976562L2.64648 0.00976562C0.898438 0.00976562 0 0.898438 0 2.63672L0 7.96875C0 9.69727 0.908203 10.5957 2.65625 10.5957L21.2402 10.5957C22.998 10.5957 23.8867 9.69727 23.8867 7.96875ZM2.90039 1.62109L2.90039 6.17188C2.90039 6.39648 2.74414 6.57227 2.50977 6.57227C2.28516 6.57227 2.10938 6.40625 2.10938 6.18164L2.10938 1.62109ZM4.79492 1.62109L4.79492 4.45312C4.79492 4.6875 4.63867 4.85352 4.39453 4.85352C4.17969 4.85352 4.00391 4.69727 4.00391 4.46289L4.00391 1.62109ZM6.68945 1.62109L6.68945 4.45312C6.68945 4.6875 6.52344 4.85352 6.28906 4.85352C6.07422 4.85352 5.89844 4.69727 5.89844 4.46289L5.89844 1.62109ZM8.56445 1.62109L8.56445 4.45312C8.56445 4.6875 8.4082 4.85352 8.17383 4.85352C7.94922 4.85352 7.77344 4.69727 7.77344 4.46289L7.77344 1.62109ZM10.459 1.62109L10.459 4.45312C10.459 4.6875 10.3027 4.85352 10.0586 4.85352C9.84375 4.85352 9.66797 4.69727 9.66797 4.46289L9.66797 1.62109ZM12.3438 1.62109L12.3438 6.17188C12.3438 6.39648 12.1875 6.57227 11.9434 6.57227C11.7285 6.57227 11.5527 6.40625 11.5527 6.18164L11.5527 1.62109ZM14.2383 1.62109L14.2383 4.45312C14.2383 4.6875 14.0723 4.85352 13.8379 4.85352C13.623 4.85352 13.4473 4.69727 13.4473 4.46289L13.4473 1.62109ZM16.123 1.62109L16.123 4.45312C16.123 4.6875 15.9668 4.85352 15.7324 4.85352C15.5078 4.85352 15.332 4.69727 15.332 4.46289L15.332 1.62109ZM18.0078 1.62109L18.0078 4.45312C18.0078 4.6875 17.8516 4.85352 17.6074 4.85352C17.3926 4.85352 17.2168 4.69727 17.2168 4.46289L17.2168 1.62109ZM19.9023 1.62109L19.9023 4.45312C19.9023 4.6875 19.7363 4.85352 19.502 4.85352C19.2871 4.85352 19.1113 4.69727 19.1113 4.46289L19.1113 1.62109ZM21.7773 1.62109L21.7773 6.17188C21.7773 6.39648 21.6211 6.57227 21.3867 6.57227C21.1621 6.57227 20.9863 6.40625 20.9863 6.18164L20.9863 1.62109Z",fill:"currentColor"})]})}),ok=({className:e})=>C.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:C.jsx("path",{d:"M3.736 13.975c.236.183.536.12.894-.138l3.049-2.229 3.054 2.23c.358.257.651.32.894.137.236-.178.288-.47.144-.888l-1.205-3.564 3.078-2.2c.357-.252.501-.516.41-.802-.093-.275-.364-.413-.808-.407l-3.775.023-1.147-3.581c-.138-.424-.346-.636-.645-.636-.294 0-.502.212-.64.636l-1.147 3.58-3.775-.022c-.444-.006-.715.132-.807.407-.098.286.052.55.409.802l3.078 2.2-1.205 3.564c-.144.418-.092.71.144.888z",fill:"currentColor"})}),sk=({className:e})=>C.jsx("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:C.jsx("path",{d:"M3.891 14.39c.246.191.559.126.93-.143l3.177-2.322 3.182 2.322c.372.269.678.334.93.143.247-.185.3-.489.15-.925l-1.254-3.712 3.206-2.292c.372-.262.522-.537.426-.835-.096-.287-.378-.43-.84-.424l-3.933.024-1.195-3.73c-.144-.442-.36-.663-.672-.663-.306 0-.523.221-.667.663l-1.194 3.73-3.933-.024c-.462-.006-.744.137-.84.424-.102.298.054.573.426.835l3.206 2.292-1.255 3.712c-.15.436-.096.74.15.925zm.865-1.181c-.012-.012-.006-.018 0-.054L5.95 9.741c.084-.233.036-.418-.175-.56l-2.99-2.054c-.03-.018-.036-.03-.03-.048.006-.018.019-.018.055-.018l3.632.066c.246.006.402-.095.48-.34L7.968 3.33c.006-.036.018-.047.03-.047.018 0 .03.011.036.047l1.045 3.456c.078.245.234.346.48.34l3.632-.066c.036 0 .048 0 .054.018.006.018-.006.03-.03.048l-2.99 2.053c-.21.143-.258.328-.174.561l1.195 3.414c.006.036.012.042 0 .054-.012.018-.03.006-.054-.012l-2.888-2.19a.467.467 0 0 0-.606 0l-2.888 2.19c-.024.018-.042.03-.054.012z",fill:"currentColor"})}),zD=({className:e})=>C.jsxs("svg",{width:"14",height:"13",viewBox:"0 0 14 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[C.jsx("g",{clipPath:"url(#cr9x6s95oa)",children:C.jsx("path",{d:"M4.222 6.738c0 .13.05.246.152.345l4.302 4.057a.475.475 0 0 0 .353.141c.282 0 .5-.204.5-.476a.483.483 0 0 0-.147-.34l-3.95-3.727 3.95-3.727a.493.493 0 0 0 .146-.34c0-.273-.217-.477-.499-.477a.492.492 0 0 0-.353.136L4.374 6.392a.455.455 0 0 0-.152.346z",fill:"currentColor"})}),C.jsx("defs",{children:C.jsx("clipPath",{id:"cr9x6s95oa",children:C.jsx("path",{fill:"currentColor",transform:"translate(.333 .05)",d:"M0 0h13.333v12.864H0z"})})})]}),VD=({className:e})=>C.jsx("svg",{width:"14",height:"13",viewBox:"0 0 14 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:C.jsx("path",{d:"M10.084 6.738a.46.46 0 0 0-.158-.346L5.63 2.33a.514.514 0 0 0-.358-.136.477.477 0 0 0-.353.817l3.95 3.727-3.95 3.727a.477.477 0 0 0 .353.817c.14 0 .26-.048.358-.142l4.296-4.057a.47.47 0 0 0 .158-.345z",fill:"currentColor"})}),mh=({className:e})=>C.jsx("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"20",height:"20",viewBox:"0 0 19.1309 24.834",className:e,children:C.jsxs("g",{children:[C.jsx("rect",{height:"24.834",opacity:"0",width:"19.1309",x:"0",y:"0"}),C.jsx("path",{d:"M4.88281 0C2.1875 0 0 2.1875 0 4.88281C0 6.04492 0.410156 7.11914 1.08398 7.95898C1.25 8.16406 1.44531 8.24219 1.63086 8.24219C2.10938 8.24219 2.51953 7.67578 2.10938 7.1875C1.58203 6.5625 1.2793 5.76172 1.2793 4.88281C1.2793 2.89062 2.89062 1.2793 4.88281 1.2793C6.875 1.2793 8.47656 2.89062 8.47656 4.88281C8.47656 4.94141 8.47656 5 8.47656 5.08789C8.48633 5.52734 8.78906 5.72266 9.10156 5.72266C9.4043 5.72266 9.7168 5.50781 9.74609 5.16602C9.75586 5.09766 9.75586 5.00977 9.75586 4.88281C9.75586 2.1875 7.57812 0 4.88281 0Z",fill:"currentColor"}),C.jsx("path",{d:"M14.375 21.0449C18.3594 19.5996 19.6875 16.2891 18.1348 12.0215L17.5 10.2637C16.9043 8.65234 15.7812 7.94922 14.9023 8.26172C14.6973 8.33984 14.6289 8.48633 14.6973 8.67188L14.9805 9.45312C15.1172 9.82422 15 10.0684 14.7754 10.1562C14.541 10.2344 14.2871 10.127 14.1504 9.75586L13.9648 9.24805C13.6133 8.29102 12.7832 7.89062 11.9629 8.19336C11.5918 8.33008 11.4746 8.54492 11.5918 8.85742L11.9824 9.92188C12.1094 10.293 11.9922 10.5371 11.7773 10.625C11.5332 10.7129 11.2793 10.5957 11.1426 10.2246L10.791 9.24805C10.4004 8.17383 9.59961 7.90039 8.79883 8.19336C8.44727 8.32031 8.32031 8.55469 8.42773 8.85742L9.18945 10.9375C9.32617 11.3086 9.19922 11.5527 8.98438 11.6406C8.74023 11.7285 8.48633 11.6113 8.34961 11.2402L5.82031 4.27734C5.57617 3.59375 4.9707 3.32031 4.39453 3.52539C3.7793 3.75 3.51562 4.3457 3.75977 5.0293L7.4707 15.2246C7.55859 15.4785 7.45117 15.6641 7.29492 15.7227C7.13867 15.7812 6.97266 15.7324 6.77734 15.5176L4.26758 12.8223C3.89648 12.4316 3.50586 12.334 3.0957 12.4902C2.4707 12.7148 2.22656 13.291 2.41211 13.8184C2.49023 14.0234 2.59766 14.1797 2.69531 14.3066L5.80078 18.2031C8.41797 21.4844 11.4453 22.1094 14.375 21.0449Z",fill:"currentColor"})]})}),ip=e=>e.disabled?C.jsx("div",{className:e.triggerContainerClassName,children:e.trigger}):"ontouchstart"in window?C.jsx(sp,Oe({},e)):C.jsx(op,Oe({},e));ip.displayName="Tooltip";const op=({placement:e="left",content:t,contentContainerClassname:r,trigger:n,triggerContainerClassName:a,disabled:i,offset:o=4})=>{if(i)return C.jsx("div",{className:a,children:n});const[s,l]=oe.useState(!1),{refs:c,floatingStyles:u,context:d,placement:f}=JR({open:s,onOpenChange:l,middleware:[FR(8+o),LR()],whileElementsMounted:ER,placement:e}),p=GR(d,{move:!1}),y=ek(d),v=ZR(d),g=nk(d,{role:"tooltip"}),{getReferenceProps:_,getFloatingProps:m}=tk([p,y,v,g]);let k=`
|
|
136
136
|
after:ds-absolute
|
package/dist/index.d.ts
CHANGED
|
@@ -256,7 +256,7 @@ export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLIn
|
|
|
256
256
|
textarea?: true | false | undefined;
|
|
257
257
|
label?: string | undefined;
|
|
258
258
|
caption?: string | undefined;
|
|
259
|
-
color
|
|
259
|
+
color?: 'primary' | 'success' | 'error' | 'primaryRounded' | 'errorRounded' | 'disabled';
|
|
260
260
|
required?: boolean;
|
|
261
261
|
labelClass?: string | undefined;
|
|
262
262
|
InputDivClass?: string | undefined;
|
|
@@ -275,7 +275,7 @@ export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLIn
|
|
|
275
275
|
* When `isNumbersOnly` is `true`, entered value might be modified depending on min and max.
|
|
276
276
|
* While `onChange` will you give what the user enters, `onNumberUpdate` will give the final modified value
|
|
277
277
|
*/
|
|
278
|
-
onNumberUpdate
|
|
278
|
+
onNumberUpdate?: (val: string | number | undefined) => void;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
export declare const ListingCard: default_2.ForwardRefExoticComponent<ListingCardProps & default_2.RefAttributes<HTMLDivElement>>;
|