@percy.ai/heatmap 0.0.0-dev-20231229193516 → 0.0.0-dev-20231229224408
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/umd/heatmap.js +121 -121
- package/dist/umd/heatmap.js.map +1 -1
- package/dist/umd/heatmap.min.js +4 -4
- package/dist/umd/heatmap.min.js.map +1 -1
- package/package.json +2 -2
package/dist/umd/heatmap.js
CHANGED
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
var ReactDOM__namespace = /*#__PURE__*/_interopNamespaceDefault(ReactDOM);
|
|
26
26
|
|
|
27
27
|
var j$4 = Object.defineProperty;
|
|
28
|
-
var x$
|
|
29
|
-
var b$
|
|
28
|
+
var x$8 = (t, e, r) => e in t ? j$4(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
29
|
+
var b$a = (t, e, r) => (x$8(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
30
30
|
const C$3 = {
|
|
31
31
|
stringify: (t) => t,
|
|
32
32
|
parse: (t) => t
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}, V$1 = {
|
|
37
37
|
stringify: (t) => t ? "true" : "false",
|
|
38
38
|
parse: (t) => /^[ty1-9]/i.test(t)
|
|
39
|
-
}, N$
|
|
39
|
+
}, N$5 = {
|
|
40
40
|
stringify: (t) => t.name,
|
|
41
41
|
parse: (t, e) => {
|
|
42
42
|
const r = (() => {
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
})();
|
|
48
48
|
return typeof r == "function" ? r.bind(e) : void 0;
|
|
49
49
|
}
|
|
50
|
-
}, P
|
|
50
|
+
}, P = {
|
|
51
51
|
stringify: (t) => JSON.stringify(t),
|
|
52
52
|
parse: (t) => JSON.parse(t)
|
|
53
53
|
}, w$6 = {
|
|
54
54
|
string: C$3,
|
|
55
55
|
number: T$5,
|
|
56
56
|
boolean: V$1,
|
|
57
|
-
function: N$
|
|
58
|
-
json: P
|
|
57
|
+
function: N$5,
|
|
58
|
+
json: P
|
|
59
59
|
}, A$4 = Symbol.for("r2wc.render"), h$9 = Symbol.for("r2wc.connected"), u$a = Symbol.for("r2wc.context"), i$m = Symbol.for("r2wc.props");
|
|
60
60
|
function z$4(t, e, r) {
|
|
61
61
|
var $, k, O;
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
class S extends HTMLElement {
|
|
70
70
|
constructor() {
|
|
71
71
|
super();
|
|
72
|
-
b$
|
|
73
|
-
b$
|
|
74
|
-
b$
|
|
75
|
-
b$
|
|
72
|
+
b$a(this, $, !0);
|
|
73
|
+
b$a(this, k);
|
|
74
|
+
b$a(this, O, {});
|
|
75
|
+
b$a(this, "container");
|
|
76
76
|
e.shadow ? this.container = this.attachShadow({
|
|
77
77
|
mode: e.shadow
|
|
78
78
|
}) : this.container = this, this[i$m].container = this.container;
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
ReactComponent: e
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
|
-
function _$
|
|
138
|
+
function _$2({ root: t, ReactComponent: e }, o) {
|
|
139
139
|
const r = React.createElement(e, o);
|
|
140
140
|
t.render(r);
|
|
141
141
|
}
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
t.unmount();
|
|
144
144
|
}
|
|
145
145
|
function p$b(t, e = {}) {
|
|
146
|
-
return z$4(t, e, { mount: E$2, update: _$
|
|
146
|
+
return z$4(t, e, { mount: E$2, update: _$2, unmount: l$k });
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
function _extends$M() {
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
function r$
|
|
263
|
+
function r$p(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r$p(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r$p(e))&&(n&&(n+=" "),n+=t);return n}
|
|
264
264
|
|
|
265
265
|
const falsyToString = (value)=>typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
|
|
266
266
|
const cx = clsx;
|
|
@@ -13888,7 +13888,7 @@ Defaulting to \`null\`.`;
|
|
|
13888
13888
|
|
|
13889
13889
|
var le$2 = /*@__PURE__*/getDefaultExportFromCjs(commandScore_1);
|
|
13890
13890
|
|
|
13891
|
-
var ue$3='[cmdk-list-sizer=""]',M$5='[cmdk-group=""]',N$5='[cmdk-group-items=""]',de$2='[cmdk-group-heading=""]',ee$2='[cmdk-item=""]',Z$3=`${ee$2}:not([aria-disabled="true"])`,z$3="cmdk-item-select",S$4="data-value",fe$2=(n,a)=>le$2(n,a),te$2=React__namespace.createContext(void 0),k$5=()=>React__namespace.useContext(te$2),re$4=React__namespace.createContext(void 0),U$2=()=>React__namespace.useContext(re$4),ne$2=React__namespace.createContext(void 0),oe$2=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useRef(null),o=x$6(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),u=x$6(()=>new Set),l=x$6(()=>new Map),p=x$6(()=>new Map),f=x$6(()=>new Set),d=ae$2(n),{label:v,children:E,value:R,onValueChange:w,filter:O,shouldFilter:ie,...D}=n,F=React__namespace.useId(),g=React__namespace.useId(),A=React__namespace.useId(),y=ye$1();L(()=>{if(R!==void 0){let e=R.trim().toLowerCase();o.current.value=e,y(6,W),h.emit();}},[R]);let h=React__namespace.useMemo(()=>({subscribe:e=>(f.current.add(e),()=>f.current.delete(e)),snapshot:()=>o.current,setState:(e,c,i)=>{var s,m,b;if(!Object.is(o.current[e],c)){if(o.current[e]=c,e==="search")j(),G(),y(1,V);else if(e==="value")if(((s=d.current)==null?void 0:s.value)!==void 0){(b=(m=d.current).onValueChange)==null||b.call(m,c);return}else i||y(5,W);h.emit();}},emit:()=>{f.current.forEach(e=>e());}}),[]),K=React__namespace.useMemo(()=>({value:(e,c)=>{c!==p.current.get(e)&&(p.current.set(e,c),o.current.filtered.items.set(e,B(c)),y(2,()=>{G(),h.emit();}));},item:(e,c)=>(u.current.add(e),c&&(l.current.has(c)?l.current.get(c).add(e):l.current.set(c,new Set([e]))),y(3,()=>{j(),G(),o.current.value||V(),h.emit();}),()=>{p.current.delete(e),u.current.delete(e),o.current.filtered.items.delete(e),y(4,()=>{j(),V(),h.emit();});}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{p.current.delete(e),l.current.delete(e);}),filter:()=>d.current.shouldFilter,label:v||n["aria-label"],listId:F,inputId:A,labelId:g}),[]);function B(e){var i;let c=((i=d.current)==null?void 0:i.filter)??fe$2;return e?c(e,o.current.search):0}function G(){if(!r.current||!o.current.search||d.current.shouldFilter===!1)return;let e=o.current.filtered.items,c=[];o.current.filtered.groups.forEach(s=>{let m=l.current.get(s),b=0;m.forEach(P=>{let ce=e.get(P);b=Math.max(ce,b);}),c.push([s,b]);});let i=r.current.querySelector(ue$3);I().sort((s,m)=>{let b=s.getAttribute(S$4),P=m.getAttribute(S$4);return (e.get(P)??0)-(e.get(b)??0)}).forEach(s=>{let m=s.closest(N$5);m?m.appendChild(s.parentElement===m?s:s.closest(`${N$5} > *`)):i.appendChild(s.parentElement===i?s:s.closest(`${N$5} > *`));}),c.sort((s,m)=>m[1]-s[1]).forEach(s=>{let m=r.current.querySelector(`${M$5}[${S$4}="${s[0]}"]`);m==null||m.parentElement.appendChild(m);});}function V(){let e=I().find(i=>!i.ariaDisabled),c=e==null?void 0:e.getAttribute(S$4);h.setState("value",c||void 0);}function j(){if(!o.current.search||d.current.shouldFilter===!1){o.current.filtered.count=u.current.size;return}o.current.filtered.groups=new Set;let e=0;for(let c of u.current){let i=p.current.get(c),s=B(i);o.current.filtered.items.set(c,s),s>0&&e++;}for(let[c,i]of l.current)for(let s of i)if(o.current.filtered.items.get(s)>0){o.current.filtered.groups.add(c);break}o.current.filtered.count=e;}function W(){var c,i,s;let e=_();e&&(((c=e.parentElement)==null?void 0:c.firstChild)===e&&((s=(i=e.closest(M$5))==null?void 0:i.querySelector(de$2))==null||s.scrollIntoView({block:"nearest"})),e.scrollIntoView({block:"nearest"}));}function _(){return r.current.querySelector(`${ee$2}[aria-selected="true"]`)}function I(){return Array.from(r.current.querySelectorAll(Z$3))}function q(e){let i=I()[e];i&&h.setState("value",i.getAttribute(S$4));}function $(e){var b;let c=_(),i=I(),s=i.findIndex(P=>P===c),m=i[s+e];(b=d.current)!=null&&b.loop&&(m=s+e<0?i[i.length-1]:s+e===i.length?i[0]:i[s+e]),m&&h.setState("value",m.getAttribute(S$4));}function J(e){let c=_(),i=c==null?void 0:c.closest(M$5),s;for(;i&&!s;)i=e>0?Se$1(i,M$5):Ce(i,M$5),s=i==null?void 0:i.querySelector(Z$3);s?h.setState("value",s.getAttribute(S$4)):$(e);}let Q=()=>q(I().length-1),X=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?J(1):$(1);},Y=e=>{e.preventDefault(),e.metaKey?q(0):e.altKey?J(-1):$(-1);};return React__namespace.createElement("div",{ref:H$3([r,a]),...D,"cmdk-root":"",onKeyDown:e=>{var c;if((c=D.onKeyDown)==null||c.call(D,e),!e.defaultPrevented)switch(e.key){case"n":case"j":{e.ctrlKey&&X(e);break}case"ArrowDown":{X(e);break}case"p":case"k":{e.ctrlKey&&Y(e);break}case"ArrowUp":{Y(e);break}case"Home":{e.preventDefault(),q(0);break}case"End":{e.preventDefault(),Q();break}case"Enter":{e.preventDefault();let i=_();if(i){let s=new Event(z$3);i.dispatchEvent(s);}}}}},React__namespace.createElement("label",{"cmdk-label":"",htmlFor:K.inputId,id:K.labelId,style:xe$1},v),React__namespace.createElement(re$4.Provider,{value:h},React__namespace.createElement(te$2.Provider,{value:K},E)))}),me$1=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useId(),o=React__namespace.useRef(null),u=React__namespace.useContext(ne$2),l=k$5(),p=ae$2(n);L(()=>l.item(r,u),[]);let f=se$1(r,o,[n.value,n.children,o]),d=U$2(),v=T$4(g=>g.value&&g.value===f.current),E=T$4(g=>l.filter()===!1?!0:g.search?g.filtered.items.get(r)>0:!0);React__namespace.useEffect(()=>{let g=o.current;if(!(!g||n.disabled))return g.addEventListener(z$3,R),()=>g.removeEventListener(z$3,R)},[E,n.onSelect,n.disabled]);function R(){var g,A;(A=(g=p.current).onSelect)==null||A.call(g,f.current);}function w(){d.setState("value",f.current,!0);}if(!E)return null;let{disabled:O,value:ie,onSelect:D,...F}=n;return React__namespace.createElement("div",{ref:H$3([o,a]),...F,"cmdk-item":"",role:"option","aria-disabled":O||void 0,"aria-selected":v||void 0,"data-selected":v||void 0,onPointerMove:O?void 0:w,onClick:O?void 0:R},n.children)}),pe=React__namespace.forwardRef((n,a)=>{let{heading:r,children:o,...u}=n,l=React__namespace.useId(),p=React__namespace.useRef(null),f=React__namespace.useRef(null),d=React__namespace.useId(),v=k$5(),E=T$4(w=>v.filter()===!1?!0:w.search?w.filtered.groups.has(l):!0);L(()=>v.group(l),[]),se$1(l,p,[n.value,n.heading,f]);let R=React__namespace.createElement(ne$2.Provider,{value:l},o);return React__namespace.createElement("div",{ref:H$3([p,a]),...u,"cmdk-group":"",role:"presentation",hidden:E?void 0:!0},r&&React__namespace.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),React__namespace.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},R))}),ge$1=React__namespace.forwardRef((n,a)=>{let{alwaysRender:r,...o}=n,u=React__namespace.useRef(null),l=T$4(p=>!p.search);return !r&&!l?null:React__namespace.createElement("div",{ref:H$3([u,a]),...o,"cmdk-separator":"",role:"separator"})}),ve$2=React__namespace.forwardRef((n,a)=>{let{onValueChange:r,...o}=n,u=n.value!=null,l=U$2(),p=T$4(d=>d.search),f=k$5();return React__namespace.useEffect(()=>{n.value!=null&&l.setState("search",n.value);},[n.value]),React__namespace.createElement("input",{ref:a,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,id:f.inputId,type:"text",value:u?n.value:p,onChange:d=>{u||l.setState("search",d.target.value),r==null||r(d.target.value);}})}),Re$1=React__namespace.forwardRef((n,a)=>{let{children:r,...o}=n,u=React__namespace.useRef(null),l=React__namespace.useRef(null),p=k$5();return React__namespace.useEffect(()=>{if(l.current&&u.current){let f=l.current,d=u.current,v,E=new ResizeObserver(()=>{v=requestAnimationFrame(()=>{let R=f.getBoundingClientRect().height;d.style.setProperty("--cmdk-list-height",R.toFixed(1)+"px");});});return E.observe(f),()=>{cancelAnimationFrame(v),E.unobserve(f);}}},[]),React__namespace.createElement("div",{ref:H$3([u,a]),...o,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:p.listId,"aria-labelledby":p.inputId},React__namespace.createElement("div",{ref:l,"cmdk-list-sizer":""},r))}),be$2=React__namespace.forwardRef((n,a)=>{let{open:r,onOpenChange:o,container:u,...l}=n;return React__namespace.createElement($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9,{open:r,onOpenChange:o},React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c,{container:u},React__namespace.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff,{"cmdk-overlay":""}),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2,{"aria-label":n.label,"cmdk-dialog":""},React__namespace.createElement(oe$2,{ref:a,...l}))))}),he$2=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useRef(!0),o=T$4(u=>u.filtered.count===0);return React__namespace.useEffect(()=>{r.current=!1;},[]),r.current||!o?null:React__namespace.createElement("div",{ref:a,...n,"cmdk-empty":"",role:"presentation"})}),Ee$2=React__namespace.forwardRef((n,a)=>{let{progress:r,children:o,...u}=n;return React__namespace.createElement("div",{ref:a,...u,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},React__namespace.createElement("div",{"aria-hidden":!0},o))}),Le$1=Object.assign(oe$2,{List:Re$1,Item:me$1,Input:ve$2,Group:pe,Separator:ge$1,Dialog:be$2,Empty:he$2,Loading:Ee$2});function Se$1(n,a){let r=n.nextElementSibling;for(;r;){if(r.matches(a))return r;r=r.nextElementSibling;}}function Ce(n,a){let r=n.previousElementSibling;for(;r;){if(r.matches(a))return r;r=r.previousElementSibling;}}function ae$2(n){let a=React__namespace.useRef(n);return L(()=>{a.current=n;}),a}var L=typeof window>"u"?React__namespace.useEffect:React__namespace.useLayoutEffect;function x$6(n){let a=React__namespace.useRef();return a.current===void 0&&(a.current=n()),a}function H$3(n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a);});}}function T$4(n){let a=U$2(),r=()=>n(a.snapshot());return React__namespace.useSyncExternalStore(a.subscribe,r,r)}function se$1(n,a,r){let o=React__namespace.useRef(),u=k$5();return L(()=>{var p;let l=(()=>{var f;for(let d of r){if(typeof d=="string")return d.trim().toLowerCase();if(typeof d=="object"&&"current"in d&&d.current)return (f=d.current.textContent)==null?void 0:f.trim().toLowerCase()}})();u.value(n,l),(p=a.current)==null||p.setAttribute(S$4,l),o.current=l;}),o}var ye$1=()=>{let[n,a]=React__namespace.useState(),r=x$6(()=>new Map);return L(()=>{r.current.forEach(o=>o()),r.current=new Map;},[n]),(o,u)=>{r.current.set(o,u),a({});}},xe$1={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};
|
|
13891
|
+
var ue$3='[cmdk-list-sizer=""]',M$5='[cmdk-group=""]',N$4='[cmdk-group-items=""]',de$1='[cmdk-group-heading=""]',ee$2='[cmdk-item=""]',Z$3=`${ee$2}:not([aria-disabled="true"])`,z$3="cmdk-item-select",S$4="data-value",fe$2=(n,a)=>le$2(n,a),te$2=React__namespace.createContext(void 0),k$5=()=>React__namespace.useContext(te$2),re$4=React__namespace.createContext(void 0),U$2=()=>React__namespace.useContext(re$4),ne$2=React__namespace.createContext(void 0),oe$2=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useRef(null),o=x$7(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),u=x$7(()=>new Set),l=x$7(()=>new Map),p=x$7(()=>new Map),f=x$7(()=>new Set),d=ae$2(n),{label:v,children:E,value:R,onValueChange:w,filter:O,shouldFilter:ie,...D}=n,F=React__namespace.useId(),g=React__namespace.useId(),A=React__namespace.useId(),y=ye$1();L(()=>{if(R!==void 0){let e=R.trim().toLowerCase();o.current.value=e,y(6,W),h.emit();}},[R]);let h=React__namespace.useMemo(()=>({subscribe:e=>(f.current.add(e),()=>f.current.delete(e)),snapshot:()=>o.current,setState:(e,c,i)=>{var s,m,b;if(!Object.is(o.current[e],c)){if(o.current[e]=c,e==="search")j(),G(),y(1,V);else if(e==="value")if(((s=d.current)==null?void 0:s.value)!==void 0){(b=(m=d.current).onValueChange)==null||b.call(m,c);return}else i||y(5,W);h.emit();}},emit:()=>{f.current.forEach(e=>e());}}),[]),K=React__namespace.useMemo(()=>({value:(e,c)=>{c!==p.current.get(e)&&(p.current.set(e,c),o.current.filtered.items.set(e,B(c)),y(2,()=>{G(),h.emit();}));},item:(e,c)=>(u.current.add(e),c&&(l.current.has(c)?l.current.get(c).add(e):l.current.set(c,new Set([e]))),y(3,()=>{j(),G(),o.current.value||V(),h.emit();}),()=>{p.current.delete(e),u.current.delete(e),o.current.filtered.items.delete(e),y(4,()=>{j(),V(),h.emit();});}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{p.current.delete(e),l.current.delete(e);}),filter:()=>d.current.shouldFilter,label:v||n["aria-label"],listId:F,inputId:A,labelId:g}),[]);function B(e){var i;let c=((i=d.current)==null?void 0:i.filter)??fe$2;return e?c(e,o.current.search):0}function G(){if(!r.current||!o.current.search||d.current.shouldFilter===!1)return;let e=o.current.filtered.items,c=[];o.current.filtered.groups.forEach(s=>{let m=l.current.get(s),b=0;m.forEach(P=>{let ce=e.get(P);b=Math.max(ce,b);}),c.push([s,b]);});let i=r.current.querySelector(ue$3);I().sort((s,m)=>{let b=s.getAttribute(S$4),P=m.getAttribute(S$4);return (e.get(P)??0)-(e.get(b)??0)}).forEach(s=>{let m=s.closest(N$4);m?m.appendChild(s.parentElement===m?s:s.closest(`${N$4} > *`)):i.appendChild(s.parentElement===i?s:s.closest(`${N$4} > *`));}),c.sort((s,m)=>m[1]-s[1]).forEach(s=>{let m=r.current.querySelector(`${M$5}[${S$4}="${s[0]}"]`);m==null||m.parentElement.appendChild(m);});}function V(){let e=I().find(i=>!i.ariaDisabled),c=e==null?void 0:e.getAttribute(S$4);h.setState("value",c||void 0);}function j(){if(!o.current.search||d.current.shouldFilter===!1){o.current.filtered.count=u.current.size;return}o.current.filtered.groups=new Set;let e=0;for(let c of u.current){let i=p.current.get(c),s=B(i);o.current.filtered.items.set(c,s),s>0&&e++;}for(let[c,i]of l.current)for(let s of i)if(o.current.filtered.items.get(s)>0){o.current.filtered.groups.add(c);break}o.current.filtered.count=e;}function W(){var c,i,s;let e=_();e&&(((c=e.parentElement)==null?void 0:c.firstChild)===e&&((s=(i=e.closest(M$5))==null?void 0:i.querySelector(de$1))==null||s.scrollIntoView({block:"nearest"})),e.scrollIntoView({block:"nearest"}));}function _(){return r.current.querySelector(`${ee$2}[aria-selected="true"]`)}function I(){return Array.from(r.current.querySelectorAll(Z$3))}function q(e){let i=I()[e];i&&h.setState("value",i.getAttribute(S$4));}function $(e){var b;let c=_(),i=I(),s=i.findIndex(P=>P===c),m=i[s+e];(b=d.current)!=null&&b.loop&&(m=s+e<0?i[i.length-1]:s+e===i.length?i[0]:i[s+e]),m&&h.setState("value",m.getAttribute(S$4));}function J(e){let c=_(),i=c==null?void 0:c.closest(M$5),s;for(;i&&!s;)i=e>0?Se$1(i,M$5):Ce(i,M$5),s=i==null?void 0:i.querySelector(Z$3);s?h.setState("value",s.getAttribute(S$4)):$(e);}let Q=()=>q(I().length-1),X=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?J(1):$(1);},Y=e=>{e.preventDefault(),e.metaKey?q(0):e.altKey?J(-1):$(-1);};return React__namespace.createElement("div",{ref:H$3([r,a]),...D,"cmdk-root":"",onKeyDown:e=>{var c;if((c=D.onKeyDown)==null||c.call(D,e),!e.defaultPrevented)switch(e.key){case"n":case"j":{e.ctrlKey&&X(e);break}case"ArrowDown":{X(e);break}case"p":case"k":{e.ctrlKey&&Y(e);break}case"ArrowUp":{Y(e);break}case"Home":{e.preventDefault(),q(0);break}case"End":{e.preventDefault(),Q();break}case"Enter":{e.preventDefault();let i=_();if(i){let s=new Event(z$3);i.dispatchEvent(s);}}}}},React__namespace.createElement("label",{"cmdk-label":"",htmlFor:K.inputId,id:K.labelId,style:xe$1},v),React__namespace.createElement(re$4.Provider,{value:h},React__namespace.createElement(te$2.Provider,{value:K},E)))}),me$1=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useId(),o=React__namespace.useRef(null),u=React__namespace.useContext(ne$2),l=k$5(),p=ae$2(n);L(()=>l.item(r,u),[]);let f=se$1(r,o,[n.value,n.children,o]),d=U$2(),v=T$4(g=>g.value&&g.value===f.current),E=T$4(g=>l.filter()===!1?!0:g.search?g.filtered.items.get(r)>0:!0);React__namespace.useEffect(()=>{let g=o.current;if(!(!g||n.disabled))return g.addEventListener(z$3,R),()=>g.removeEventListener(z$3,R)},[E,n.onSelect,n.disabled]);function R(){var g,A;(A=(g=p.current).onSelect)==null||A.call(g,f.current);}function w(){d.setState("value",f.current,!0);}if(!E)return null;let{disabled:O,value:ie,onSelect:D,...F}=n;return React__namespace.createElement("div",{ref:H$3([o,a]),...F,"cmdk-item":"",role:"option","aria-disabled":O||void 0,"aria-selected":v||void 0,"data-selected":v||void 0,onPointerMove:O?void 0:w,onClick:O?void 0:R},n.children)}),pe$1=React__namespace.forwardRef((n,a)=>{let{heading:r,children:o,...u}=n,l=React__namespace.useId(),p=React__namespace.useRef(null),f=React__namespace.useRef(null),d=React__namespace.useId(),v=k$5(),E=T$4(w=>v.filter()===!1?!0:w.search?w.filtered.groups.has(l):!0);L(()=>v.group(l),[]),se$1(l,p,[n.value,n.heading,f]);let R=React__namespace.createElement(ne$2.Provider,{value:l},o);return React__namespace.createElement("div",{ref:H$3([p,a]),...u,"cmdk-group":"",role:"presentation",hidden:E?void 0:!0},r&&React__namespace.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),React__namespace.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},R))}),ge$1=React__namespace.forwardRef((n,a)=>{let{alwaysRender:r,...o}=n,u=React__namespace.useRef(null),l=T$4(p=>!p.search);return !r&&!l?null:React__namespace.createElement("div",{ref:H$3([u,a]),...o,"cmdk-separator":"",role:"separator"})}),ve$2=React__namespace.forwardRef((n,a)=>{let{onValueChange:r,...o}=n,u=n.value!=null,l=U$2(),p=T$4(d=>d.search),f=k$5();return React__namespace.useEffect(()=>{n.value!=null&&l.setState("search",n.value);},[n.value]),React__namespace.createElement("input",{ref:a,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,id:f.inputId,type:"text",value:u?n.value:p,onChange:d=>{u||l.setState("search",d.target.value),r==null||r(d.target.value);}})}),Re$1=React__namespace.forwardRef((n,a)=>{let{children:r,...o}=n,u=React__namespace.useRef(null),l=React__namespace.useRef(null),p=k$5();return React__namespace.useEffect(()=>{if(l.current&&u.current){let f=l.current,d=u.current,v,E=new ResizeObserver(()=>{v=requestAnimationFrame(()=>{let R=f.getBoundingClientRect().height;d.style.setProperty("--cmdk-list-height",R.toFixed(1)+"px");});});return E.observe(f),()=>{cancelAnimationFrame(v),E.unobserve(f);}}},[]),React__namespace.createElement("div",{ref:H$3([u,a]),...o,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:p.listId,"aria-labelledby":p.inputId},React__namespace.createElement("div",{ref:l,"cmdk-list-sizer":""},r))}),be$1=React__namespace.forwardRef((n,a)=>{let{open:r,onOpenChange:o,container:u,...l}=n;return React__namespace.createElement($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9,{open:r,onOpenChange:o},React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c,{container:u},React__namespace.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff,{"cmdk-overlay":""}),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2,{"aria-label":n.label,"cmdk-dialog":""},React__namespace.createElement(oe$2,{ref:a,...l}))))}),he$2=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useRef(!0),o=T$4(u=>u.filtered.count===0);return React__namespace.useEffect(()=>{r.current=!1;},[]),r.current||!o?null:React__namespace.createElement("div",{ref:a,...n,"cmdk-empty":"",role:"presentation"})}),Ee$2=React__namespace.forwardRef((n,a)=>{let{progress:r,children:o,...u}=n;return React__namespace.createElement("div",{ref:a,...u,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},React__namespace.createElement("div",{"aria-hidden":!0},o))}),Le$1=Object.assign(oe$2,{List:Re$1,Item:me$1,Input:ve$2,Group:pe$1,Separator:ge$1,Dialog:be$1,Empty:he$2,Loading:Ee$2});function Se$1(n,a){let r=n.nextElementSibling;for(;r;){if(r.matches(a))return r;r=r.nextElementSibling;}}function Ce(n,a){let r=n.previousElementSibling;for(;r;){if(r.matches(a))return r;r=r.previousElementSibling;}}function ae$2(n){let a=React__namespace.useRef(n);return L(()=>{a.current=n;}),a}var L=typeof window>"u"?React__namespace.useEffect:React__namespace.useLayoutEffect;function x$7(n){let a=React__namespace.useRef();return a.current===void 0&&(a.current=n()),a}function H$3(n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a);});}}function T$4(n){let a=U$2(),r=()=>n(a.snapshot());return React__namespace.useSyncExternalStore(a.subscribe,r,r)}function se$1(n,a,r){let o=React__namespace.useRef(),u=k$5();return L(()=>{var p;let l=(()=>{var f;for(let d of r){if(typeof d=="string")return d.trim().toLowerCase();if(typeof d=="object"&&"current"in d&&d.current)return (f=d.current.textContent)==null?void 0:f.trim().toLowerCase()}})();u.value(n,l),(p=a.current)==null||p.setAttribute(S$4,l),o.current=l;}),o}var ye$1=()=>{let[n,a]=React__namespace.useState(),r=x$7(()=>new Map);return L(()=>{r.current.forEach(o=>o()),r.current=new Map;},[n]),(o,u)=>{r.current.set(o,u),a({});}},xe$1={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};
|
|
13892
13892
|
|
|
13893
13893
|
const $d7bdfb9eb0fdf311$var$ENTRY_FOCUS = 'rovingFocusGroup.onEntryFocus';
|
|
13894
13894
|
const $d7bdfb9eb0fdf311$var$EVENT_OPTIONS = {
|
|
@@ -39161,12 +39161,12 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
39161
39161
|
* This source code is licensed under the MIT license found in the
|
|
39162
39162
|
* LICENSE file in the root directory of this source tree.
|
|
39163
39163
|
*/
|
|
39164
|
-
var b$
|
|
39165
|
-
Symbol.for("react.suspense_list"):60120,r$
|
|
39166
|
-
function z$2(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$n:switch(a=a.type,a){case l$j:case m$e:case e$6:case g$e:case f$d:case p$a:return a;default:switch(a=a&&a.$$typeof,a){case k$4:case n$k:case t$i:case r$
|
|
39164
|
+
var b$9="function"===typeof Symbol&&Symbol.for,c$n=b$9?Symbol.for("react.element"):60103,d$k=b$9?Symbol.for("react.portal"):60106,e$6=b$9?Symbol.for("react.fragment"):60107,f$d=b$9?Symbol.for("react.strict_mode"):60108,g$e=b$9?Symbol.for("react.profiler"):60114,h$8=b$9?Symbol.for("react.provider"):60109,k$4=b$9?Symbol.for("react.context"):60110,l$j=b$9?Symbol.for("react.async_mode"):60111,m$e=b$9?Symbol.for("react.concurrent_mode"):60111,n$k=b$9?Symbol.for("react.forward_ref"):60112,p$a=b$9?Symbol.for("react.suspense"):60113,q$3=b$9?
|
|
39165
|
+
Symbol.for("react.suspense_list"):60120,r$o=b$9?Symbol.for("react.memo"):60115,t$i=b$9?Symbol.for("react.lazy"):60116,v$4=b$9?Symbol.for("react.block"):60121,w$5=b$9?Symbol.for("react.fundamental"):60117,x$6=b$9?Symbol.for("react.responder"):60118,y$6=b$9?Symbol.for("react.scope"):60119;
|
|
39166
|
+
function z$2(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$n:switch(a=a.type,a){case l$j:case m$e:case e$6:case g$e:case f$d:case p$a:return a;default:switch(a=a&&a.$$typeof,a){case k$4:case n$k:case t$i:case r$o:case h$8:return a;default:return u}}case d$k:return u}}}function A$3(a){return z$2(a)===m$e}reactIs_production_min.AsyncMode=l$j;reactIs_production_min.ConcurrentMode=m$e;reactIs_production_min.ContextConsumer=k$4;reactIs_production_min.ContextProvider=h$8;reactIs_production_min.Element=c$n;reactIs_production_min.ForwardRef=n$k;reactIs_production_min.Fragment=e$6;reactIs_production_min.Lazy=t$i;reactIs_production_min.Memo=r$o;reactIs_production_min.Portal=d$k;
|
|
39167
39167
|
reactIs_production_min.Profiler=g$e;reactIs_production_min.StrictMode=f$d;reactIs_production_min.Suspense=p$a;reactIs_production_min.isAsyncMode=function(a){return A$3(a)||z$2(a)===l$j};reactIs_production_min.isConcurrentMode=A$3;reactIs_production_min.isContextConsumer=function(a){return z$2(a)===k$4};reactIs_production_min.isContextProvider=function(a){return z$2(a)===h$8};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c$n};reactIs_production_min.isForwardRef=function(a){return z$2(a)===n$k};reactIs_production_min.isFragment=function(a){return z$2(a)===e$6};reactIs_production_min.isLazy=function(a){return z$2(a)===t$i};
|
|
39168
|
-
reactIs_production_min.isMemo=function(a){return z$2(a)===r$
|
|
39169
|
-
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e$6||a===m$e||a===g$e||a===f$d||a===p$a||a===q$3||"object"===typeof a&&null!==a&&(a.$$typeof===t$i||a.$$typeof===r$
|
|
39168
|
+
reactIs_production_min.isMemo=function(a){return z$2(a)===r$o};reactIs_production_min.isPortal=function(a){return z$2(a)===d$k};reactIs_production_min.isProfiler=function(a){return z$2(a)===g$e};reactIs_production_min.isStrictMode=function(a){return z$2(a)===f$d};reactIs_production_min.isSuspense=function(a){return z$2(a)===p$a};
|
|
39169
|
+
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e$6||a===m$e||a===g$e||a===f$d||a===p$a||a===q$3||"object"===typeof a&&null!==a&&(a.$$typeof===t$i||a.$$typeof===r$o||a.$$typeof===h$8||a.$$typeof===k$4||a.$$typeof===n$k||a.$$typeof===w$5||a.$$typeof===x$6||a.$$typeof===y$6||a.$$typeof===v$4)};reactIs_production_min.typeOf=z$2;
|
|
39170
39170
|
|
|
39171
39171
|
{
|
|
39172
39172
|
reactIs.exports = reactIs_production_min;
|
|
@@ -40532,7 +40532,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
40532
40532
|
return new Linear(context);
|
|
40533
40533
|
}
|
|
40534
40534
|
|
|
40535
|
-
function x$
|
|
40535
|
+
function x$5(p) {
|
|
40536
40536
|
return p[0];
|
|
40537
40537
|
}
|
|
40538
40538
|
|
|
@@ -40547,7 +40547,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
40547
40547
|
output = null,
|
|
40548
40548
|
path = withPath(line);
|
|
40549
40549
|
|
|
40550
|
-
x = typeof x === "function" ? x : (x === undefined) ? x$
|
|
40550
|
+
x = typeof x === "function" ? x : (x === undefined) ? x$5 : constant$3(x);
|
|
40551
40551
|
y = typeof y === "function" ? y : (y === undefined) ? y$5 : constant$3(y);
|
|
40552
40552
|
|
|
40553
40553
|
function line(data) {
|
|
@@ -40601,7 +40601,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
40601
40601
|
output = null,
|
|
40602
40602
|
path = withPath(area);
|
|
40603
40603
|
|
|
40604
|
-
x0 = typeof x0 === "function" ? x0 : (x0 === undefined) ? x$
|
|
40604
|
+
x0 = typeof x0 === "function" ? x0 : (x0 === undefined) ? x$5 : constant$3(+x0);
|
|
40605
40605
|
y0 = typeof y0 === "function" ? y0 : (y0 === undefined) ? constant$3(0) : constant$3(+y0);
|
|
40606
40606
|
y1 = typeof y1 === "function" ? y1 : (y1 === undefined) ? y$5 : constant$3(+y1);
|
|
40607
40607
|
|
|
@@ -63056,45 +63056,45 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
63056
63056
|
|
|
63057
63057
|
const t$g={none:{paddingLeft:"pl-0",paddingTop:"pt-0",paddingRight:"pr-0",paddingBottom:"pb-0",paddingX:"px-0",paddingY:"py-0",paddingAll:"p-0",marginLeft:"ml-0",marginTop:"mt-0",marginRight:"mr-0",marginBottom:"mb-0",negativeMarginLeft:"-ml-0",negativeMarginRight:"-mr-0",negativeMarginTop:"-mt-0",negativeMarginBottom:"-mb-0",left:"left-0",right:"right-0",top:"top-0",bottom:"bottom-0",spaceX:"space-x-0"},px:{paddingLeft:"pl-px",paddingTop:"pt-px",paddingRight:"pr-px",paddingBottom:"pb-px",paddingX:"px-px",paddingY:"py-px",paddingAll:"p-px",marginLeft:"ml-px",marginTop:"mt-px",marginRight:"mr-px",marginBottom:"mb-px",negativeMarginLeft:"-ml-px",negativeMarginRight:"-mr-px",negativeMarginTop:"-mt-px",negativeMarginBottom:"-mb-px",left:"left-px",right:"right-px",top:"top-px",bottom:"bottom-px",spaceX:"space-x-px"},threeXs:{paddingLeft:"pl-0.5",paddingTop:"pt-0.5",paddingRight:"pr-0.5",paddingBottom:"pb-0.5",paddingX:"px-0.5",paddingY:"py-0.5",paddingAll:"p-0.5",marginLeft:"ml-0.5",marginTop:"mt-0.5",marginRight:"mr-0.5",marginBottom:"mb-0.5",negativeMarginLeft:"-ml-0.5",negativeMarginRight:"-mr-0.5",negativeMarginTop:"-mt-0.5",negativeMarginBottom:"-mb-0.5",left:"left-0.5",right:"right-0.5",top:"top-0.5",bottom:"bottom-0.5",spaceX:"space-x-0.5"},twoXs:{paddingLeft:"pl-1",paddingTop:"pt-1",paddingRight:"pr-1",paddingBottom:"pb-1",paddingX:"px-1",paddingY:"py-1",paddingAll:"p-1",marginLeft:"ml-1",marginTop:"mt-1",marginRight:"mr-1",marginBottom:"mb-1",negativeMarginLeft:"-ml-1",negativeMarginRight:"-mr-1",left:"left-1",right:"right-1",top:"top-1",bottom:"bottom-1",spaceX:"space-x-1"},xs:{paddingLeft:"pl-1.5",paddingTop:"pt-1.5",paddingRight:"pr-1.5",paddingBottom:"pb-1.5",paddingX:"px-1.5",paddingY:"py-1.5",paddingAll:"p-1.5",marginLeft:"ml-1.5",marginTop:"mt-1.5",marginRight:"mr-1.5",marginBottom:"mb-1.5",negativeMarginLeft:"-ml-1.5",negativeMarginRight:"-mr-1.5",negativeMarginTop:"-mt-1.5",negativeMarginBottom:"-mb-1.5",left:"left-1.5",right:"right-1.5",top:"top-1.5",bottom:"bottom-1.5",spaceX:"space-x-1.5"},sm:{paddingLeft:"pl-2",paddingTop:"pt-2",paddingRight:"pr-2",paddingBottom:"pb-2",paddingX:"px-2",paddingY:"py-2",paddingAll:"p-2",marginLeft:"ml-2",marginTop:"mt-2",marginRight:"mr-2",marginBottom:"mb-2",negativeMarginLeft:"-ml-2",negativeMarginRight:"-mr-2",negativeMarginTop:"-mt-2",negativeMarginBottom:"-mb-2",left:"left-2",right:"right-2",top:"left-2",bottom:"bottom-2",spaceX:"space-x-2"},md:{paddingLeft:"pl-2.5",paddingTop:"pt-2.5",paddingRight:"pr-2.5",paddingBottom:"pb-2.5",paddingX:"px-2.5",paddingY:"py-2.5",paddingAll:"p-2.5",marginLeft:"ml-2.5",marginTop:"mt-2.5",marginRight:"mr-2.5",marginBottom:"mb-2.5",negativeMarginLeft:"-ml-2.5",negativeMarginRight:"-mr-2.5",negativeMarginTop:"-mt-2.5",negativeMarginBottom:"-mb-2.5",left:"left-2.5",right:"right-2.5",top:"top-2.5",bottom:"bottom-2.5",spaceX:"space-x-2.5"},lg:{paddingLeft:"pl-3",paddingTop:"pt-3",paddingRight:"pr-3",paddingBottom:"pb-3",paddingX:"px-3",paddingY:"py-3",paddingAll:"p-3",marginLeft:"ml-3",marginTop:"mt-3",marginRight:"mr-3",marginBottom:"mb-3",negativeMarginLeft:"-ml-3",negativeMarginRight:"-mr-3",negativeMarginTop:"-mt-3",negativeMarginBottom:"-mb-3",left:"left-3",right:"right-3",top:"top-3",bottom:"bottom-3",spaceX:"space-x-3"},xl:{paddingLeft:"pl-3.5",paddingTop:"pt-3.5",paddingRight:"pr-3.5",paddingBottom:"pb-3.5",paddingX:"px-3.5",paddingY:"py-3.5",paddingAll:"p-3.5",marginLeft:"ml-3.5",marginTop:"mt-3.5",marginRight:"mr-3.5",marginBottom:"mb-3.5",negativeMarginLeft:"-ml-3.5",negativeMarginRight:"-mr-3.5",negativeMarginTop:"-mt-3.5",negativeMarginBottom:"-mb-3.5",left:"left-3.5",right:"right-3.5",top:"top-3.5",bottom:"bottom-3.5",spaceX:"space-x-3.5"},twoXl:{paddingLeft:"pl-4",paddingTop:"pt-4",paddingRight:"pr-4",paddingBottom:"pb-4",paddingX:"px-4",paddingY:"py-4",paddingAll:"p-4",marginLeft:"ml-4",marginTop:"mt-4",marginRight:"mr-4",marginBottom:"mb-4",negativeMarginLeft:"-ml-4",negativeMarginRight:"-mr-4",negativeMarginTop:"-mt-4",negativeMarginBottom:"-mb-4",left:"left-4",right:"right-4",top:"top-4",bottom:"bottom-4",spaceX:"space-x-4"},threeXl:{paddingLeft:"pl-6",paddingTop:"pt-6",paddingRight:"pr-6",paddingBottom:"pb-6",paddingX:"px-6",paddingY:"py-6",paddingAll:"p-6",marginLeft:"ml-6",marginTop:"mt-6",marginRight:"mr-6",marginBottom:"mb-6",negativeMarginLeft:"-ml-6",negativeMarginRight:"-mr-6",negativeMarginTop:"-mt-6",negativeMarginBottom:"-mb-6",left:"left-6",right:"right-6",top:"top-6",bottom:"bottom-6",spaceX:"space-x-6"},fourXl:{paddingLeft:"pl-8",paddingTop:"pt-8",paddingRight:"pr-8",paddingBottom:"pb-8",paddingX:"px-8",paddingY:"py-8",paddingAll:"p-8",marginLeft:"ml-8",marginTop:"mt-8",marginRight:"mr-8",marginBottom:"mb-8",negativeMarginLeft:"-ml-8",negativeMarginRight:"-mr-8",negativeMarginTop:"-mt-8",negativeMarginBottom:"-mb-8",left:"left-8",right:"right-8",top:"top-8",bottom:"bottom-8",spaceX:"space-x-8"}};
|
|
63058
63058
|
|
|
63059
|
-
const e$5={Increase:"increase",ModerateIncrease:"moderateIncrease",Decrease:"decrease",ModerateDecrease:"moderateDecrease",Unchanged:"unchanged"},a$j={Slate:"slate",Gray:"gray",Zinc:"zinc",Neutral:"neutral",Stone:"stone",Red:"red",Orange:"orange",Amber:"amber",Yellow:"yellow",Lime:"lime",Green:"green",Emerald:"emerald",Teal:"teal",Cyan:"cyan",Sky:"sky",Blue:"blue",Indigo:"indigo",Violet:"violet",Purple:"purple",Fuchsia:"fuchsia",Pink:"pink",Rose:"rose"},r$
|
|
63059
|
+
const e$5={Increase:"increase",ModerateIncrease:"moderateIncrease",Decrease:"decrease",ModerateDecrease:"moderateDecrease",Unchanged:"unchanged"},a$j={Slate:"slate",Gray:"gray",Zinc:"zinc",Neutral:"neutral",Stone:"stone",Red:"red",Orange:"orange",Amber:"amber",Yellow:"yellow",Lime:"lime",Green:"green",Emerald:"emerald",Teal:"teal",Cyan:"cyan",Sky:"sky",Blue:"blue",Indigo:"indigo",Violet:"violet",Purple:"purple",Fuchsia:"fuchsia",Pink:"pink",Rose:"rose"},r$n={XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl"},n$j={Left:"left",Right:"right"},t$f={Top:"top",Bottom:"bottom"};
|
|
63060
63060
|
|
|
63061
63061
|
const e$4={canvasBackground:50,lightBackground:100,background:500,darkBackground:600,darkestBackground:800,lightBorder:200,border:500,darkBorder:700,lightRing:200,ring:300,lightText:400,text:500,darkText:700,darkestText:900,icon:500},a$i=[a$j.Blue,a$j.Cyan,a$j.Sky,a$j.Indigo,a$j.Violet,a$j.Purple,a$j.Fuchsia,a$j.Slate,a$j.Gray,a$j.Zinc,a$j.Neutral,a$j.Stone,a$j.Red,a$j.Orange,a$j.Amber,a$j.Yellow,a$j.Lime,a$j.Green,a$j.Emerald,a$j.Teal,a$j.Pink,a$j.Rose];
|
|
63062
63062
|
|
|
63063
63063
|
const t$e=extendTailwindMerge({classGroups:{boxShadow:[{shadow:[{tremor:["input","card","dropdown"],"dark-tremor":["input","card","dropdown"]}]}],borderRadius:[{rounded:[{tremor:["small","default","full"],"dark-tremor":["small","default","full"]}]}],fontSize:[{text:[{tremor:["default","title","metric"],"dark-tremor":["default","title","metric"]}]}]}});
|
|
63064
63064
|
|
|
63065
|
-
const r$
|
|
63065
|
+
const r$m=(r,o)=>{if(o||r===e$5.Unchanged)return r;switch(r){case e$5.Increase:return e$5.Decrease;case e$5.ModerateIncrease:return e$5.ModerateDecrease;case e$5.Decrease:return e$5.Increase;case e$5.ModerateDecrease:return e$5.ModerateIncrease}return ""},o$k=e=>e.toString(),t$d=e=>e.reduce(((e,r)=>e+r),0),l$i=(e,r)=>{for(let o=0;o<r.length;o++)if(r[o]===e)return !0;return !1};function n$i(e){return r=>{e.forEach((e=>{"function"==typeof e?e(r):null!=e&&(e.current=r);}));}}function $$1(e){return r=>`tremor-${e}-${r}`}function c$l(e,r){return "white"!==e&&"black"!==e&&"transparent"!==e&&r?{bgColor:`bg-${e}-${r}`,selectBgColor:`ui-selected:bg-${e}-${r}`,hoverBgColor:`hover:bg-${e}-${r}`,textColor:`text-${e}-${r}`,selectTextColor:`ui-selected:text-${e}-${r}`,hoverTextColor:`hover:text-${e}-${r}`,borderColor:`border-${e}-${r}`,selectBorderColor:`ui-selected:border-${e}-${r}`,hoverBorderColor:`hover:border-${e}-${r}`,ringColor:`ring-${e}-${r}`,strokeColor:`stroke-${e}-${r}`,fillColor:`fill-${e}-${r}`}:{bgColor:`bg-${e}`,hoverBgColor:`hover:bg-${e}`,selectBgColor:`ui-selected:bg-${e}`,textColor:`text-${e}`,selectTextColor:`ui-selected:text-${e}`,hoverTextColor:`hover:text-${e}`,borderColor:`border-${e}`,selectBorderColor:`ui-selected:border-${e}`,hoverBorderColor:`hover:border-${e}`,ringColor:`ring-${e}`,strokeColor:`stroke-${e}`,fillColor:`fill-${e}`}}
|
|
63066
63066
|
|
|
63067
63067
|
const m$d=$$1("Legend"),s$k=({name:e,color:n,onClick:i,activeLegend:s})=>{const d=!!i;return React.createElement("li",{className:t$e(m$d("legendItem"),"group inline-flex items-center truncate px-2 py-0.5 rounded-tremor-small transition ",d?"cursor-pointer":"cursor-default","text-tremor-content",d?"hover:bg-tremor-background-subtle":"","dark:text-dark-tremor-content",d?"dark:hover:bg-dark-tremor-background-subtle":""),onClick:t=>{t.stopPropagation(),null==i||i(e,n);}},React.createElement("svg",{className:t$e("flex-none",c$l(n,e$4.text).textColor,h$7.xs.height,h$7.xs.width,t$g.xs.marginRight,s&&s!==e?"opacity-40":"opacity-100"),fill:"currentColor",viewBox:"0 0 8 8"},React.createElement("circle",{cx:4,cy:4,r:4})),React.createElement("p",{className:t$e("whitespace-nowrap truncate text-tremor-default","text-tremor-content",d?"group-hover:text-tremor-content-emphasis":"","dark:text-dark-tremor-content",s&&s!==e?"opacity-40":"opacity-100",d?"dark:group-hover:text-dark-tremor-content-emphasis":"")},e))},d$j=React.forwardRef(((r,o)=>{const{categories:a,colors:i=a$i,className:l,onClickLegendItem:d,activeLegend:p}=r,g=__rest$2(r,["categories","colors","className","onClickLegendItem","activeLegend"]);return React.createElement("ol",Object.assign({ref:o,className:t$e(m$d("root"),"flex flex-wrap overflow-hidden truncate",l)},g),a.map(((e,r)=>React.createElement(s$k,{key:`item-${r}`,name:e,color:i[r],onClick:d,activeLegend:p}))))}));d$j.displayName="Legend";
|
|
63068
63068
|
|
|
63069
|
-
const o$
|
|
63069
|
+
const o$j=({payload:o},a,l,i,s)=>{const m=React.useRef(null);t$h((()=>{var e;var t;l((t=null===(e=m.current)||void 0===e?void 0:e.clientHeight)?Number(t)+20:60);}));const c=o.filter((e=>"none"!==e.type));return React.createElement("div",{ref:m,className:"flex items-center justify-end"},React.createElement(d$j,{categories:c.map((e=>e.value)),colors:c.map((e=>a.get(e.value))),onClickLegendItem:s,activeLegend:i}))};
|
|
63070
63070
|
|
|
63071
|
-
const r$
|
|
63071
|
+
const r$l={none:{left:"border-l-0",top:"border-t-0",right:"border-r-0",bottom:"border-b-0",all:"border-0"},sm:{left:"border-l",top:"border-t",right:"border-r",bottom:"border-b",all:"border"},md:{left:"border-l-2",top:"border-t-2",right:"border-r-2",bottom:"border-b-2",all:"border-2"},lg:{left:"border-l-4",top:"border-t-4",right:"border-r-4",bottom:"border-b-4",all:"border-4"}};
|
|
63072
63072
|
|
|
63073
|
-
const s$j=({children:r})=>React.createElement("div",{className:t$e("rounded-tremor-default text-tremor-default","bg-tremor-background shadow-tremor-dropdown border-tremor-border","dark:bg-dark-tremor-background dark:shadow-dark-tremor-dropdown dark:border-dark-tremor-border",r$
|
|
63073
|
+
const s$j=({children:r})=>React.createElement("div",{className:t$e("rounded-tremor-default text-tremor-default","bg-tremor-background shadow-tremor-dropdown border-tremor-border","dark:bg-dark-tremor-background dark:shadow-dark-tremor-dropdown dark:border-dark-tremor-border",r$l.sm.all)},r),l$h=({value:r,name:o,color:s})=>React.createElement("div",{className:"flex items-center justify-between space-x-8"},React.createElement("div",{className:"flex items-center space-x-2"},React.createElement("span",{className:t$e("shrink-0 rounded-tremor-full","border-tremor-background shadow-tremor-card","dark:border-dark-tremor-background dark:shadow-dark-tremor-card",c$l(s,e$4.background).bgColor,h$7.sm.height,h$7.sm.width,r$l.md.all)}),React.createElement("p",{className:t$e("text-right whitespace-nowrap","text-tremor-content","dark:text-dark-tremor-content")},o)),React.createElement("p",{className:t$e("font-medium tabular-nums text-right whitespace-nowrap","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},r)),c$k=({active:a,payload:m,label:n,categoryColors:c,valueFormatter:i})=>{if(a&&m){const a=m.filter((e=>"none"!==e.type));return React.createElement(s$j,null,React.createElement("div",{className:t$e("border-tremor-border","dark:border-dark-tremor-border",t$g.twoXl.paddingX,t$g.sm.paddingY,r$l.sm.bottom)},React.createElement("p",{className:t$e("font-medium","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},n)),React.createElement("div",{className:t$e(t$g.twoXl.paddingX,t$g.sm.paddingY,"space-y-1")},a.map((({value:t,name:a},o)=>{var m;return React.createElement(l$h,{key:`id-${o}`,value:i(t),name:a,color:null!==(m=c.get(a))&&void 0!==m?m:a$j.Blue})}))))}return null};
|
|
63074
63074
|
|
|
63075
|
-
const i$l=$$1("Flex"),l$g={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},n$h={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},o$
|
|
63075
|
+
const i$l=$$1("Flex"),l$g={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},n$h={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},o$i={row:"flex-row",col:"flex-col","row-reverse":"flex-row-reverse","col-reverse":"flex-col-reverse"},a$h=React.forwardRef(((r,a)=>{const{flexDirection:f="row",justifyContent:c="between",alignItems:m="center",children:u,className:d}=r,j=__rest$2(r,["flexDirection","justifyContent","alignItems","children","className"]);return React.createElement("div",Object.assign({ref:a,className:t$e(i$l("root"),"flex w-full",o$i[f],l$g[c],n$h[m],d)},j),u)}));a$h.displayName="Flex";
|
|
63076
63076
|
|
|
63077
63077
|
const m$c=React.forwardRef(((m,a)=>{const{color:l,className:s,children:c}=m;return React.createElement("p",{ref:a,className:t$e("text-tremor-default",l?c$l(l,e$4.text).textColor:t$e("text-tremor-content","dark:text-dark-tremor-content"),s)},c)}));m$c.displayName="Text";
|
|
63078
63078
|
|
|
63079
63079
|
const a$g=({noDataText:a="No data"})=>React.createElement(a$h,{alignItems:"center",justifyContent:"center",className:t$e("w-full h-full border border-dashed rounded-tremor-default","border-tremor-border","dark:border-dark-tremor-border")},React.createElement(m$c,{className:t$e("text-tremor-content","dark:text-dark-tremor-content")},a));
|
|
63080
63080
|
|
|
63081
|
-
const t$c=(t,n)=>{const r=new Map;return t.forEach(((t,e)=>{r.set(t,n[e]);})),r},n$g=(t,n,r)=>[t?"auto":null!=n?n:0,null!=r?r:"auto"],r$
|
|
63081
|
+
const t$c=(t,n)=>{const r=new Map;return t.forEach(((t,e)=>{r.set(t,n[e]);})),r},n$g=(t,n,r)=>[t?"auto":null!=n?n:0,null!=r?r:"auto"],r$k=(t,n)=>{if(!n)return [];const r=new Set;return t.forEach((t=>{r.add(t[n]);})),Array.from(r)};function e$3(t,n){if(t===n)return !0;if("object"!=typeof t||"object"!=typeof n||null===t||null===n)return !1;const r=Object.keys(t),o=Object.keys(n);if(r.length!==o.length)return !1;for(const u of r)if(!o.includes(u)||!e$3(t[u],n[u]))return !1;return !0}function o$h(t,n){const r=[];for(const e of t)if(Object.prototype.hasOwnProperty.call(e,n)&&(r.push(e[n]),r.length>1))return !1;return !0}
|
|
63082
63082
|
|
|
63083
|
-
const N$
|
|
63083
|
+
const N$3=React.forwardRef(((N,T)=>{const{data:j=[],categories:K=[],index:A,stack:G=!1,colors:D=a$i,valueFormatter:O=o$k,startEndOnly:W=!1,showXAxis:V=!0,showYAxis:F=!0,yAxisWidth:M=56,intervalType:P="equidistantPreserveStart",showAnimation:S=!1,animationDuration:X=900,showTooltip:Y=!0,showLegend:q=!0,showGridLines:z=!0,showGradient:I=!0,autoMinValue:R=!1,curveType:$="linear",minValue:B,maxValue:H,connectNulls:J=!1,allowDecimals:Q=!0,noDataText:U,className:Z,onValueChange:_,customTooltip:ee}=N,te=__rest$2(N,["data","categories","index","stack","colors","valueFormatter","startEndOnly","showXAxis","showYAxis","yAxisWidth","intervalType","showAnimation","animationDuration","showTooltip","showLegend","showGridLines","showGradient","autoMinValue","curveType","minValue","maxValue","connectNulls","allowDecimals","noDataText","className","onValueChange","customTooltip"]),oe=ee,[ae,re]=React.useState(60),[ne,le]=React.useState(void 0),[ie,se]=React.useState(void 0),ce=t$c(K,D),de=n$g(R,B,H),me=!!_;function ue(e){me&&(e===ie&&!ne||o$h(j,e)&&ne&&ne.dataKey===e?(se(void 0),null==_||_(null)):(se(e),null==_||_({eventType:"category",categoryClicked:e})),le(void 0));}return React.createElement("div",Object.assign({ref:T,className:t$e("w-full h-80",Z)},te),React.createElement(ResponsiveContainer,{className:"h-full w-full"},(null==j?void 0:j.length)?React.createElement(AreaChart,{data:j,onClick:me&&(ie||ne)?()=>{le(void 0),se(void 0),null==_||_(null);}:void 0},z?React.createElement(CartesianGrid,{className:t$e("stroke-1","stroke-tremor-border","dark:stroke-dark-tremor-border"),horizontal:!0,vertical:!1}):null,React.createElement(XAxis,{padding:{left:20,right:20},hide:!V,dataKey:A,tick:{transform:"translate(0, 6)"},ticks:W?[j[0][A],j[j.length-1][A]]:void 0,fill:"",stroke:"",className:t$e("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),interval:W?"preserveStartEnd":P,tickLine:!1,axisLine:!1,minTickGap:5}),React.createElement(YAxis,{width:M,hide:!F,axisLine:!1,tickLine:!1,type:"number",domain:de,tick:{transform:"translate(-3, 0)"},fill:"",stroke:"",className:t$e("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickFormatter:O,allowDecimals:Q}),React.createElement(Tooltip,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{stroke:"#d1d5db",strokeWidth:1},content:Y?({active:e,payload:o,label:a})=>oe?React.createElement(oe,{payload:null==o?void 0:o.map((e=>{var t;return Object.assign(Object.assign({},e),{color:null!==(t=ce.get(e.dataKey))&&void 0!==t?t:a$j.Gray})})),active:e,label:a}):React.createElement(c$k,{active:e,payload:o,label:a,valueFormatter:O,categoryColors:ce}):React.createElement(React.Fragment,null),position:{y:0}}),q?React.createElement(Legend,{verticalAlign:"top",height:ae,content:({payload:e})=>o$j({payload:e},ce,re,ie,me?e=>ue(e):void 0)}):null,K.map((e=>{var o,a;return React.createElement("defs",{key:e},I?React.createElement("linearGradient",{className:c$l(null!==(o=ce.get(e))&&void 0!==o?o:a$j.Gray,e$4.text).textColor,id:ce.get(e),x1:"0",y1:"0",x2:"0",y2:"1"},React.createElement("stop",{offset:"5%",stopColor:"currentColor",stopOpacity:ne||ie&&ie!==e?.15:.4}),React.createElement("stop",{offset:"95%",stopColor:"currentColor",stopOpacity:0})):React.createElement("linearGradient",{className:c$l(null!==(a=ce.get(e))&&void 0!==a?a:a$j.Gray,e$4.text).textColor,id:ce.get(e),x1:"0",y1:"0",x2:"0",y2:"1"},React.createElement("stop",{stopColor:"currentColor",stopOpacity:ne||ie&&ie!==e?.1:.3})))})),K.map((e=>{var o;return React.createElement(Area,{className:c$l(null!==(o=ce.get(e))&&void 0!==o?o:a$j.Gray,e$4.text).strokeColor,strokeOpacity:ne||ie&&ie!==e?.3:1,activeDot:e=>{var o;const{cx:a,cy:r,stroke:n,strokeLinecap:l,strokeLinejoin:i,strokeWidth:s,dataKey:c}=e;return React.createElement(Dot,{className:t$e("stroke-tremor-background dark:stroke-dark-tremor-background",_?"cursor-pointer":"",c$l(null!==(o=ce.get(c))&&void 0!==o?o:a$j.Gray,e$4.text).fillColor),cx:a,cy:r,r:5,fill:"",stroke:n,strokeLinecap:l,strokeLinejoin:i,strokeWidth:s,onClick:(t,o)=>function(e,t){t.stopPropagation(),me&&(e.index===(null==ne?void 0:ne.index)&&e.dataKey===(null==ne?void 0:ne.dataKey)||o$h(j,e.dataKey)&&ie&&ie===e.dataKey?(se(void 0),le(void 0),null==_||_(null)):(se(e.dataKey),le({index:e.index,dataKey:e.dataKey}),null==_||_(Object.assign({eventType:"dot",categoryClicked:e.dataKey},e.payload))));}(e,o)})},dot:o=>{var r;const{stroke:n,strokeLinecap:l,strokeLinejoin:i,strokeWidth:s,cx:c,cy:d,dataKey:m,index:p}=o;return o$h(j,e)&&!(ne||ie&&ie!==e)||(null==ne?void 0:ne.index)===p&&(null==ne?void 0:ne.dataKey)===e?React.createElement(Dot,{key:p,cx:c,cy:d,r:5,stroke:n,fill:"",strokeLinecap:l,strokeLinejoin:i,strokeWidth:s,className:t$e("stroke-tremor-background dark:stroke-dark-tremor-background",_?"cursor-pointer":"",c$l(null!==(r=ce.get(m))&&void 0!==r?r:a$j.Gray,e$4.text).fillColor)}):React.createElement(React.Fragment,{key:p})},key:e,name:e,type:$,dataKey:e,stroke:"",fill:`url(#${ce.get(e)})`,strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",isAnimationActive:S,animationDuration:X,stackId:G?"a":void 0,connectNulls:J})})),_?K.map((e=>React.createElement(Line,{className:t$e("cursor-pointer"),strokeOpacity:0,key:e,name:e,type:$,dataKey:e,stroke:"transparent",fill:"transparent",legendType:"none",tooltipType:"none",strokeWidth:12,connectNulls:J,onClick:(e,t)=>{t.stopPropagation();const{name:o}=e;ue(o);}}))):null):React.createElement(a$g,{noDataText:U})))}));N$3.displayName="AreaChart";
|
|
63084
63084
|
|
|
63085
|
-
const E$1=React.forwardRef(((E,j)=>{const{data:O=[],categories:T=[],index:A,colors:L=a$i,valueFormatter:C=o$
|
|
63085
|
+
const E$1=React.forwardRef(((E,j)=>{const{data:O=[],categories:T=[],index:A,colors:L=a$i,valueFormatter:C=o$k,layout:N="horizontal",stack:D=!1,relative:V=!1,startEndOnly:F=!1,animationDuration:K=900,showAnimation:S=!1,showXAxis:G=!0,showYAxis:P=!0,yAxisWidth:z=56,intervalType:M="equidistantPreserveStart",showTooltip:B=!0,showLegend:W=!0,showGridLines:X=!0,autoMinValue:Y=!1,minValue:q,maxValue:I,allowDecimals:R=!0,noDataText:$,onValueChange:H,customTooltip:J,className:Q}=E,U=__rest$2(E,["data","categories","index","colors","valueFormatter","layout","stack","relative","startEndOnly","animationDuration","showAnimation","showXAxis","showYAxis","yAxisWidth","intervalType","showTooltip","showLegend","showGridLines","autoMinValue","minValue","maxValue","allowDecimals","noDataText","onValueChange","customTooltip","className"]),Z=J,[_,ee]=React.useState(60),te=t$c(T,L),[ae,le]=React.useState(void 0),[oe,ie]=React.useState(void 0),re=!!H;function ne(e,t,a){var l,o,i,r;a.stopPropagation(),H&&(e$3(ae,Object.assign(Object.assign({},e.payload),{value:e.value}))?(ie(void 0),le(void 0),null==H||H(null)):(ie(null===(o=null===(l=e.tooltipPayload)||void 0===l?void 0:l[0])||void 0===o?void 0:o.dataKey),le(Object.assign(Object.assign({},e.payload),{value:e.value})),null==H||H(Object.assign({eventType:"bar",categoryClicked:null===(r=null===(i=e.tooltipPayload)||void 0===i?void 0:i[0])||void 0===r?void 0:r.dataKey},e.payload))));}const se=n$g(Y,q,I);return React.createElement("div",Object.assign({ref:j,className:t$e("w-full h-80",Q)},U),React.createElement(ResponsiveContainer,{className:"h-full w-full"},(null==O?void 0:O.length)?React.createElement(BarChart,{data:O,stackOffset:V?"expand":"none",layout:"vertical"===N?"vertical":"horizontal",onClick:re&&(oe||ae)?()=>{le(void 0),ie(void 0),null==H||H(null);}:void 0},X?React.createElement(CartesianGrid,{className:t$e("stroke-1","stroke-tremor-border","dark:stroke-dark-tremor-border"),horizontal:"vertical"!==N,vertical:"vertical"===N}):null,"vertical"!==N?React.createElement(XAxis,{padding:{left:20,right:20},hide:!G,dataKey:A,interval:F?"preserveStartEnd":M,tick:{transform:"translate(0, 6)"},ticks:F?[O[0][A],O[O.length-1][A]]:void 0,fill:"",stroke:"",className:t$e("mt-4 text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1}):React.createElement(XAxis,{hide:!G,type:"number",tick:{transform:"translate(-3, 0)"},domain:se,fill:"",stroke:"",className:t$e("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1,tickFormatter:C,minTickGap:5,allowDecimals:R}),"vertical"!==N?React.createElement(YAxis,{width:z,hide:!P,axisLine:!1,tickLine:!1,type:"number",domain:se,tick:{transform:"translate(-3, 0)"},fill:"",stroke:"",className:t$e("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickFormatter:V?e=>`${(100*e).toString()} %`:C,allowDecimals:R}):React.createElement(YAxis,{width:z,hide:!P,dataKey:A,axisLine:!1,tickLine:!1,ticks:F?[O[0][A],O[O.length-1][A]]:void 0,type:"category",interval:"preserveStartEnd",tick:{transform:"translate(0, 6)"},fill:"",stroke:"",className:t$e("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content")}),React.createElement(Tooltip,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{fill:"#d1d5db",opacity:"0.15"},content:B?({active:e,payload:a,label:l})=>Z?React.createElement(Z,{payload:null==a?void 0:a.map((e=>{var a;return Object.assign(Object.assign({},e),{color:null!==(a=te.get(e.dataKey))&&void 0!==a?a:a$j.Gray})})),active:e,label:l}):React.createElement(c$k,{active:e,payload:a,label:l,valueFormatter:C,categoryColors:te}):React.createElement(React.Fragment,null),position:{y:0}}),W?React.createElement(Legend,{verticalAlign:"top",height:_,content:({payload:e})=>o$j({payload:e},te,ee,oe,re?e=>{return t=e,void(re&&(t!==oe||ae?(ie(t),null==H||H({eventType:"category",categoryClicked:t})):(ie(void 0),null==H||H(null)),le(void 0)));var t;}:void 0)}):null,T.map((e=>{var a;return React.createElement(Bar,{className:t$e(c$l(null!==(a=te.get(e))&&void 0!==a?a:a$j.Gray,e$4.background).fillColor,H?"cursor-pointer":""),key:e,name:e,type:"linear",stackId:D||V?"a":void 0,dataKey:e,fill:"",isAnimationActive:S,animationDuration:K,shape:e=>((e,t,a)=>{const{x:l,y:o,width:i,height:r,fillOpacity:s,name:c,payload:m,value:d}=e;return React.createElement("rect",{x:l,y:o,width:i,height:r,opacity:t||a&&a!==c?e$3(t,Object.assign(Object.assign({},m),{value:d}))?s:.3:s})})(e,ae,oe),onClick:ne})}))):React.createElement(a$g,{noDataText:$})))}));E$1.displayName="BarChart";
|
|
63086
63086
|
|
|
63087
63087
|
const a$f=({active:a,payload:m,valueFormatter:n})=>{if(a&&(null==m?void 0:m[0])){const a=null==m?void 0:m[0];return React.createElement(s$j,null,React.createElement("div",{className:t$e(t$g.twoXl.paddingX,t$g.sm.paddingY)},React.createElement(l$h,{value:n(a.value),name:a.name,color:a.payload.color})))}return null};
|
|
63088
63088
|
|
|
63089
63089
|
const s$i=(l,s)=>l.map(((l,i)=>{const m=i<s.length?s[i]:a$j.Gray;return Object.assign(Object.assign({},l),{color:m,className:c$l(null!=m?m:a$j.Gray,e$4.background).fillColor,fill:""})})),i$k=(r,o,t,s)=>r||o(((r,o)=>t$d(r.map((r=>r[o]))))(t,s));
|
|
63090
63090
|
|
|
63091
|
-
const g$d=e=>{const{cx:t,cy:a,innerRadius:o,outerRadius:n,startAngle:r,endAngle:i,className:s}=e;return React.createElement("g",null,React.createElement(Sector,{cx:t,cy:a,innerRadius:o,outerRadius:n,startAngle:r,endAngle:i,className:s,fill:"",opacity:.3,style:{outline:"none"}}))},y$4=React.forwardRef(((u,y)=>{const{data:h=[],category:b="value",index:A="name",colors:x=a$i,variant:E="donut",valueFormatter:j=o$
|
|
63091
|
+
const g$d=e=>{const{cx:t,cy:a,innerRadius:o,outerRadius:n,startAngle:r,endAngle:i,className:s}=e;return React.createElement("g",null,React.createElement(Sector,{cx:t,cy:a,innerRadius:o,outerRadius:n,startAngle:r,endAngle:i,className:s,fill:"",opacity:.3,style:{outline:"none"}}))},y$4=React.forwardRef(((u,y)=>{const{data:h=[],category:b="value",index:A="name",colors:x=a$i,variant:E="donut",valueFormatter:j=o$k,label:k,showLabel:w=!0,animationDuration:N=900,showAnimation:T=!1,showTooltip:D=!0,noDataText:R,onValueChange:C,customTooltip:F,className:O}=u,S=__rest$2(u,["data","category","index","colors","variant","valueFormatter","label","showLabel","animationDuration","showAnimation","showTooltip","noDataText","onValueChange","customTooltip","className"]),L=F,K="donut"==E,P=i$k(k,j,h,b),[V,q]=React.useState(void 0),B=!!C;return React.useEffect((()=>{const e=document.querySelectorAll(".recharts-pie-sector");e&&e.forEach((e=>{e.setAttribute("style","outline: none");}));}),[V]),React.createElement("div",Object.assign({ref:y,className:t$e("w-full h-40",O)},S),React.createElement(ResponsiveContainer,{className:"h-full w-full"},(null==h?void 0:h.length)?React.createElement(PieChart,{onClick:B&&V?()=>{q(void 0),null==C||C(null);}:void 0,margin:{top:0,left:0,right:0,bottom:0}},w&&K?React.createElement("text",{className:t$e("fill-tremor-content-emphasis","dark:fill-dark-tremor-content-emphasis"),x:"50%",y:"50%",textAnchor:"middle",dominantBaseline:"middle"},P):null,React.createElement(Pie,{className:t$e("stroke-tremor-background dark:stroke-dark-tremor-background",C?"cursor-pointer":"cursor-default"),data:s$i(h,x),cx:"50%",cy:"50%",startAngle:90,endAngle:-270,innerRadius:K?"75%":"0%",outerRadius:"100%",stroke:"",strokeLinejoin:"round",dataKey:b,nameKey:A,isAnimationActive:T,animationDuration:N,onClick:function(e,t,a){a.stopPropagation(),B&&(V===t?(q(void 0),null==C||C(null)):(q(t),null==C||C(Object.assign({eventType:"slice"},e.payload.payload))));},activeIndex:V,inactiveShape:g$d,style:{outline:"none"}}),React.createElement(Tooltip,{wrapperStyle:{outline:"none"},isAnimationActive:!1,content:D?({active:e,payload:a})=>{var o;return L?React.createElement(L,{payload:null==a?void 0:a.map((e=>{var o,n,l;return Object.assign(Object.assign({},e),{color:null!==(l=null===(n=null===(o=null==a?void 0:a[0])||void 0===o?void 0:o.payload)||void 0===n?void 0:n.color)&&void 0!==l?l:a$j.Gray})})),active:e,label:null===(o=null==a?void 0:a[0])||void 0===o?void 0:o.name}):React.createElement(a$f,{active:e,payload:a,valueFormatter:j})}:React.createElement(React.Fragment,null)})):React.createElement(a$g,{noDataText:R})))}));y$4.displayName="DonutChart";
|
|
63092
63092
|
|
|
63093
|
-
const T$3=React.forwardRef(((T,j)=>{const{data:N=[],categories:K=[],index:C,colors:A=a$i,valueFormatter:D=o$
|
|
63093
|
+
const T$3=React.forwardRef(((T,j)=>{const{data:N=[],categories:K=[],index:C,colors:A=a$i,valueFormatter:D=o$k,startEndOnly:W=!1,showXAxis:O=!0,showYAxis:V=!0,yAxisWidth:G=56,intervalType:F="equidistantPreserveStart",animationDuration:M=900,showAnimation:P=!1,showTooltip:S=!0,showLegend:X=!0,showGridLines:Y=!0,autoMinValue:q=!1,curveType:z="linear",minValue:R,maxValue:B,connectNulls:H=!1,allowDecimals:I=!0,noDataText:J,className:Q,onValueChange:U,customTooltip:Z}=T,$=__rest$2(T,["data","categories","index","colors","valueFormatter","startEndOnly","showXAxis","showYAxis","yAxisWidth","intervalType","animationDuration","showAnimation","showTooltip","showLegend","showGridLines","autoMinValue","curveType","minValue","maxValue","connectNulls","allowDecimals","noDataText","className","onValueChange","customTooltip"]),_=Z,[ee,te]=React.useState(60),[oe,ae]=React.useState(void 0),[re,ne]=React.useState(void 0),le=t$c(K,A),ie=n$g(q,R,B),se=!!U;function ce(e){se&&(e===re&&!oe||o$h(N,e)&&oe&&oe.dataKey===e?(ne(void 0),null==U||U(null)):(ne(e),null==U||U({eventType:"category",categoryClicked:e})),ae(void 0));}return React.createElement("div",Object.assign({ref:j,className:t$e("w-full h-80",Q)},$),React.createElement(ResponsiveContainer,{className:"h-full w-full"},(null==N?void 0:N.length)?React.createElement(LineChart,{data:N,onClick:se&&(re||oe)?()=>{ae(void 0),ne(void 0),null==U||U(null);}:void 0},Y?React.createElement(CartesianGrid,{className:t$e("stroke-1","stroke-tremor-border","dark:stroke-dark-tremor-border"),horizontal:!0,vertical:!1}):null,React.createElement(XAxis,{padding:{left:20,right:20},hide:!O,dataKey:C,interval:W?"preserveStartEnd":F,tick:{transform:"translate(0, 6)"},ticks:W?[N[0][C],N[N.length-1][C]]:void 0,fill:"",stroke:"",className:t$e("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1,minTickGap:5}),React.createElement(YAxis,{width:G,hide:!V,axisLine:!1,tickLine:!1,type:"number",domain:ie,tick:{transform:"translate(-3, 0)"},fill:"",stroke:"",className:t$e("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickFormatter:D,allowDecimals:I}),React.createElement(Tooltip,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{stroke:"#d1d5db",strokeWidth:1},content:S?({active:e,payload:o,label:a})=>_?React.createElement(_,{payload:null==o?void 0:o.map((e=>{var t;return Object.assign(Object.assign({},e),{color:null!==(t=le.get(e.dataKey))&&void 0!==t?t:a$j.Gray})})),active:e,label:a}):React.createElement(c$k,{active:e,payload:o,label:a,valueFormatter:D,categoryColors:le}):React.createElement(React.Fragment,null),position:{y:0}}),X?React.createElement(Legend,{verticalAlign:"top",height:ee,content:({payload:e})=>o$j({payload:e},le,te,re,se?e=>ce(e):void 0)}):null,K.map((e=>{var o;return React.createElement(Line,{className:t$e(c$l(null!==(o=le.get(e))&&void 0!==o?o:a$j.Gray,e$4.text).strokeColor),strokeOpacity:oe||re&&re!==e?.3:1,activeDot:e=>{var o;const{cx:a,cy:r,stroke:n,strokeLinecap:l,strokeLinejoin:i,strokeWidth:s,dataKey:c}=e;return React.createElement(Dot,{className:t$e("stroke-tremor-background dark:stroke-dark-tremor-background",U?"cursor-pointer":"",c$l(null!==(o=le.get(c))&&void 0!==o?o:a$j.Gray,e$4.text).fillColor),cx:a,cy:r,r:5,fill:"",stroke:n,strokeLinecap:l,strokeLinejoin:i,strokeWidth:s,onClick:(t,o)=>function(e,t){t.stopPropagation(),se&&(e.index===(null==oe?void 0:oe.index)&&e.dataKey===(null==oe?void 0:oe.dataKey)||o$h(N,e.dataKey)&&re&&re===e.dataKey?(ne(void 0),ae(void 0),null==U||U(null)):(ne(e.dataKey),ae({index:e.index,dataKey:e.dataKey}),null==U||U(Object.assign({eventType:"dot",categoryClicked:e.dataKey},e.payload))));}(e,o)})},dot:o=>{var r;const{stroke:n,strokeLinecap:l,strokeLinejoin:i,strokeWidth:s,cx:c,cy:d,dataKey:m,index:k}=o;return o$h(N,e)&&!(oe||re&&re!==e)||(null==oe?void 0:oe.index)===k&&(null==oe?void 0:oe.dataKey)===e?React.createElement(Dot,{key:k,cx:c,cy:d,r:5,stroke:n,fill:"",strokeLinecap:l,strokeLinejoin:i,strokeWidth:s,className:t$e("stroke-tremor-background dark:stroke-dark-tremor-background",U?"cursor-pointer":"",c$l(null!==(r=le.get(m))&&void 0!==r?r:a$j.Gray,e$4.text).fillColor)}):React.createElement(React.Fragment,{key:k})},key:e,name:e,type:z,dataKey:e,stroke:"",strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",isAnimationActive:P,animationDuration:M,connectNulls:H})})),U?K.map((e=>React.createElement(Line,{className:t$e("cursor-pointer"),strokeOpacity:0,key:e,name:e,type:z,dataKey:e,stroke:"transparent",fill:"transparent",legendType:"none",tooltipType:"none",strokeWidth:12,connectNulls:H,onClick:(e,t)=>{t.stopPropagation();const{name:o}=e;ce(o);}}))):null):React.createElement(a$g,{noDataText:J})))}));T$3.displayName="LineChart";
|
|
63094
63094
|
|
|
63095
|
-
const n$f=({children:r})=>React.createElement("div",{className:t$e("rounded-tremor-default text-tremor-default","bg-tremor-background shadow-tremor-dropdown border-tremor-border","dark:bg-dark-tremor-background dark:shadow-dark-tremor-dropdown dark:border-dark-tremor-border",r$
|
|
63095
|
+
const n$f=({children:r})=>React.createElement("div",{className:t$e("rounded-tremor-default text-tremor-default","bg-tremor-background shadow-tremor-dropdown border-tremor-border","dark:bg-dark-tremor-background dark:shadow-dark-tremor-dropdown dark:border-dark-tremor-border",r$l.sm.all)},r),i$j=({value:r,name:t})=>React.createElement("div",{className:"flex items-center justify-between space-x-8"},React.createElement("div",{className:"flex items-center space-x-2"},React.createElement("p",{className:t$e("text-right whitespace-nowrap","text-tremor-content","dark:text-dark-tremor-content")},t)),React.createElement("p",{className:t$e("font-medium tabular-nums text-right whitespace-nowrap","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},r)),c$j=({label:c,active:p,payload:u,valueFormatter:b,axis:k,category:g,categoryColors:f})=>{var h,v;return p&&u?React.createElement(n$f,null,React.createElement("div",{className:t$e("flex items-center space-x-2","border-tremor-border","dark:border-dark-tremor-border",t$g.twoXl.paddingX,t$g.sm.paddingY,r$l.sm.bottom)},React.createElement("span",{className:t$e("shrink-0 rounded-tremor-full","border-tremor-background shadow-tremor-card","dark:border-dark-tremor-background dark:shadow-dark-tremor-card",c$l(g&&null!==(v=f.get(null===(h=null==u?void 0:u[0])||void 0===h?void 0:h.payload[g]))&&void 0!==v?v:a$j.Blue,e$4.background).bgColor,h$7.sm.height,h$7.sm.width,r$l.md.all)}),React.createElement("p",{className:t$e("font-medium","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},c)),React.createElement("div",{className:t$e(t$g.twoXl.paddingX,t$g.sm.paddingY,"space-y-1")},u.map((({value:r,name:t},a)=>{var o,m;const d=null!==(o=Object.keys(k).find((e=>k[e]===t)))&&void 0!==o?o:"",l=null!==(m=b[d])&&void 0!==m?m:o$k;return React.createElement(i$j,{key:`id-${a}`,value:b&&l?l(r):`${r}`,name:t})})))):null};
|
|
63096
63096
|
|
|
63097
|
-
const A$2=React.forwardRef(((A,C)=>{const{data:j=[],x:D,y:O,size:N,category:L,colors:X=a$i,showOpacity:Y=!1,sizeRange:z=[1,1e3],valueFormatter:S={x:o$
|
|
63097
|
+
const A$2=React.forwardRef(((A,C)=>{const{data:j=[],x:D,y:O,size:N,category:L,colors:X=a$i,showOpacity:Y=!1,sizeRange:z=[1,1e3],valueFormatter:S={x:o$k,y:o$k,size:o$k},startEndOnly:F=!1,showXAxis:G=!0,showYAxis:M=!0,yAxisWidth:K=56,intervalType:R="equidistantPreserveStart",animationDuration:W=900,showAnimation:P=!1,showTooltip:q=!0,showLegend:$=!0,showGridLines:B=!0,autoMinXValue:H=!1,minXValue:I,maxXValue:J,autoMinYValue:Q=!1,minYValue:U,maxYValue:Z,allowDecimals:_=!0,noDataText:ee,onValueChange:te,customTooltip:ae,className:oe}=A,le=__rest$2(A,["data","x","y","size","category","colors","showOpacity","sizeRange","valueFormatter","startEndOnly","showXAxis","showYAxis","yAxisWidth","intervalType","animationDuration","showAnimation","showTooltip","showLegend","showGridLines","autoMinXValue","minXValue","maxXValue","autoMinYValue","minYValue","maxYValue","allowDecimals","noDataText","onValueChange","customTooltip","className"]),re=ae,[ie,ne]=React.useState(60),[se,me]=React.useState(void 0),[ce,de]=React.useState(void 0),ue=!!te;function ve(e,t,a){a.stopPropagation(),ue&&(e$3(se,e.node)?(de(void 0),me(void 0),null==te||te(null)):(me(e.node),de(e.payload[L]),null==te||te(Object.assign({eventType:"bubble",categoryClicked:e.payload[L]},e.payload))));}const pe=r$k(j,L),ye=t$c(pe,X),he=n$g(H,I,J),fe=n$g(Q,U,Z);return React.createElement("div",Object.assign({ref:C,className:t$e("w-full h-80",oe)},le),React.createElement(ResponsiveContainer,{className:"h-full w-full"},(null==j?void 0:j.length)?React.createElement(ScatterChart,{onClick:ue&&(ce||se)?()=>{me(void 0),de(void 0),null==te||te(null);}:void 0,margin:{left:20,right:20}},B?React.createElement(CartesianGrid,{className:t$e("stroke-1","stroke-tremor-border","dark:stroke-dark-tremor-border"),horizontal:!0,vertical:!0}):null,D?React.createElement(XAxis,{hide:!G,dataKey:D,interval:F?"preserveStartEnd":R,tick:{transform:"translate(0, 6)"},ticks:F?[j[0][D],j[j.length-1][D]]:void 0,type:"number",name:D,fill:"",stroke:"",className:t$e("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,tickFormatter:S.x,axisLine:!1,minTickGap:5,domain:he,allowDataOverflow:!0}):null,O?React.createElement(YAxis,{width:K,hide:!M,axisLine:!1,tickLine:!1,dataKey:O,type:"number",name:O,domain:fe,tick:{transform:"translate(-3, 0)"},tickFormatter:S.y,fill:"",stroke:"",className:t$e("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),allowDecimals:_,allowDataOverflow:!0}):null,React.createElement(Tooltip,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{stroke:"#d1d5db",strokeWidth:1},content:q?({active:e,payload:a,label:o})=>{var l,r,i,n;return re?React.createElement(re,{payload:null==a?void 0:a.map((e=>{var t,l,r;return Object.assign(Object.assign({},e),{color:null!==(r=ye.get(L?null===(l=null===(t=null==a?void 0:a[0])||void 0===t?void 0:t.payload)||void 0===l?void 0:l[L]:o))&&void 0!==r?r:a$j.Gray})})),active:e,label:L?null===(r=null===(l=null==a?void 0:a[0])||void 0===l?void 0:l.payload)||void 0===r?void 0:r[L]:o}):React.createElement(c$j,{active:e,payload:a,label:L?null===(n=null===(i=null==a?void 0:a[0])||void 0===i?void 0:i.payload)||void 0===n?void 0:n[L]:o,valueFormatter:S,axis:{x:D,y:O,size:N},category:L,categoryColors:ye})}:React.createElement(React.Fragment,null)}),N?React.createElement(ZAxis,{dataKey:N,type:"number",range:z,name:N}):null,pe.map((e=>{var a,o;return React.createElement(Scatter,{className:t$e(c$l(null!==(a=ye.get(e))&&void 0!==a?a:a$j.Gray,e$4.text).fillColor,Y?c$l(null!==(o=ye.get(e))&&void 0!==o?o:a$j.Gray,e$4.text).strokeColor:"",te?"cursor-pointer":""),fill:`url(#${ye.get(e)})`,fillOpacity:Y?.7:1,key:e,name:e,data:L?j.filter((t=>t[L]===e)):j,isAnimationActive:P,animationDuration:W,shape:e=>((e,a,o)=>{const{cx:l,cy:r,width:i,node:n,fillOpacity:s,name:m}=e;return React.createElement(Dot,{cx:l,cy:r,r:i/2,opacity:a||o&&o!==m?e$3(a,n)?s:.3:s})})(e,se,ce),onClick:ve})})),$?React.createElement(Legend,{verticalAlign:"top",height:ie,content:({payload:e})=>o$j({payload:e},ye,ne,ce,ue?e=>{return t=e,void(ue&&(t!==ce||se?(de(t),null==te||te({eventType:"category",categoryClicked:t})):(de(void 0),null==te||te(null)),me(void 0)));var t;}:void 0)}):null):React.createElement(a$g,{noDataText:ee})))}));A$2.displayName="ScatterChart";
|
|
63098
63098
|
|
|
63099
63099
|
var index$1 = typeof document !== 'undefined' ? React.useLayoutEffect : React.useEffect;
|
|
63100
63100
|
|
|
@@ -64340,25 +64340,25 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
64340
64340
|
|
|
64341
64341
|
const t$a={xs:{paddingX:t$g.sm.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.xs},sm:{paddingX:t$g.md.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.sm},md:{paddingX:t$g.lg.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.md},lg:{paddingX:t$g.xl.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.lg},xl:{paddingX:t$g.twoXl.paddingX,paddingY:t$g.twoXs.paddingY,fontSize:t$b.xl}},h$6={xs:{height:h$7.md.height,width:h$7.md.width},sm:{height:h$7.md.height,width:h$7.md.width},md:{height:h$7.md.height,width:h$7.md.width},lg:{height:h$7.lg.height,width:h$7.lg.width},xl:{height:h$7.xl.height,width:h$7.xl.width}};
|
|
64342
64342
|
|
|
64343
|
-
const f$b=$$1("Badge"),g$c=React.forwardRef(((n,g)=>{const{color:b,icon:u,size:h=r$
|
|
64343
|
+
const f$b=$$1("Badge"),g$c=React.forwardRef(((n,g)=>{const{color:b,icon:u,size:h=r$n.SM,tooltip:x,className:j,children:k}=n,w=__rest$2(n,["color","icon","size","tooltip","className","children"]),N=u||null,{tooltipProps:y,getReferenceProps:E}=f$c();return React.createElement("span",Object.assign({ref:n$i([g,y.refs.setReference]),className:t$e(f$b("root"),"w-max flex-shrink-0 inline-flex justify-center items-center cursor-default rounded-tremor-full",b?t$e(c$l(b,e$4.background).bgColor,c$l(b,e$4.text).textColor,"bg-opacity-20 dark:bg-opacity-25"):t$e("bg-tremor-brand-muted text-tremor-brand-emphasis","dark:bg-dark-tremor-brand-muted dark:text-dark-tremor-brand-emphasis"),t$a[h].paddingX,t$a[h].paddingY,t$a[h].fontSize,j)},E,w),React.createElement(u$8,Object.assign({text:x},y)),N?React.createElement(N,{className:t$e(f$b("icon"),"shrink-0",t$g.twoXs.negativeMarginLeft,t$g.xs.marginRight,h$6[h].height,h$6[h].width)}):null,React.createElement("p",{className:t$e(f$b("text"),"text-sm whitespace-nowrap")},k))}));g$c.displayName="Badge";
|
|
64344
64344
|
|
|
64345
|
-
const r$
|
|
64345
|
+
const r$j=r=>{var l=__rest$2(r,[]);return React.createElement("svg",Object.assign({},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"}),React.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),React.createElement("path",{fill:"currentColor",d:"M13 16.172l5.364-5.364 1.414 1.414L12 20l-7.778-7.778 1.414-1.414L11 16.172V4h2v12.172z"}))};
|
|
64346
64346
|
|
|
64347
|
-
const r$
|
|
64347
|
+
const r$i=r=>{var l=__rest$2(r,[]);return React.createElement("svg",Object.assign({},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"}),React.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),React.createElement("path",{fill:"currentColor",d:"M14.59 16.004L5.982 7.397l1.414-1.414 8.607 8.606V7.004h2v11h-11v-2z"}))};
|
|
64348
64348
|
|
|
64349
|
-
const r$
|
|
64349
|
+
const r$h=r=>{var l=__rest$2(r,[]);return React.createElement("svg",Object.assign({},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"}),React.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),React.createElement("path",{fill:"currentColor",d:"M16.172 11l-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2z"}))};
|
|
64350
64350
|
|
|
64351
|
-
const r$
|
|
64351
|
+
const r$g=r=>{var l=__rest$2(r,[]);return React.createElement("svg",Object.assign({},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"}),React.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),React.createElement("path",{fill:"currentColor",d:"M13 7.828V20h-2V7.828l-5.364 5.364-1.414-1.414L12 4l7.778 7.778-1.414 1.414L13 7.828z"}))};
|
|
64352
64352
|
|
|
64353
|
-
const r$
|
|
64353
|
+
const r$f=r=>{var l=__rest$2(r,[]);return React.createElement("svg",Object.assign({},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"}),React.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),React.createElement("path",{fill:"currentColor",d:"M16.004 9.414l-8.607 8.607-1.414-1.414L14.589 8H7.004V6h11v11h-2V9.414z"}))};
|
|
64354
64354
|
|
|
64355
|
-
const m$b={xs:{paddingX:t$g.sm.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.xs},sm:{paddingX:t$g.md.paddingX,paddingY:t$g.twoXs.paddingY,fontSize:t$b.sm},md:{paddingX:t$g.lg.paddingX,paddingY:t$g.xs.paddingY,fontSize:t$b.md},lg:{paddingX:t$g.xl.paddingX,paddingY:t$g.xs.paddingY,fontSize:t$b.lg},xl:{paddingX:t$g.xl.paddingX,paddingY:t$g.xs.paddingY,fontSize:t$b.xl}},h$5={xs:{paddingX:t$g.sm.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.xs},sm:{paddingX:t$g.md.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.sm},md:{paddingX:t$g.lg.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.md},lg:{paddingX:t$g.xl.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.lg},xl:{paddingX:t$g.twoXl.paddingX,paddingY:t$g.twoXs.paddingY,fontSize:t$b.xl}},x$
|
|
64355
|
+
const m$b={xs:{paddingX:t$g.sm.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.xs},sm:{paddingX:t$g.md.paddingX,paddingY:t$g.twoXs.paddingY,fontSize:t$b.sm},md:{paddingX:t$g.lg.paddingX,paddingY:t$g.xs.paddingY,fontSize:t$b.md},lg:{paddingX:t$g.xl.paddingX,paddingY:t$g.xs.paddingY,fontSize:t$b.lg},xl:{paddingX:t$g.xl.paddingX,paddingY:t$g.xs.paddingY,fontSize:t$b.xl}},h$5={xs:{paddingX:t$g.sm.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.xs},sm:{paddingX:t$g.md.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.sm},md:{paddingX:t$g.lg.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.md},lg:{paddingX:t$g.xl.paddingX,paddingY:t$g.threeXs.paddingY,fontSize:t$b.lg},xl:{paddingX:t$g.twoXl.paddingX,paddingY:t$g.twoXs.paddingY,fontSize:t$b.xl}},x$4={xs:{height:h$7.md.height,width:h$7.md.width},sm:{height:h$7.md.height,width:h$7.md.width},md:{height:h$7.md.height,width:h$7.md.width},lg:{height:h$7.lg.height,width:h$7.lg.width},xl:{height:h$7.xl.height,width:h$7.xl.width}},X$4={[e$5.Increase]:{bgColor:c$l(a$j.Emerald,e$4.background).bgColor,textColor:c$l(a$j.Emerald,e$4.text).textColor},[e$5.ModerateIncrease]:{bgColor:c$l(a$j.Emerald,e$4.background).bgColor,textColor:c$l(a$j.Emerald,e$4.text).textColor},[e$5.Decrease]:{bgColor:c$l(a$j.Rose,e$4.background).bgColor,textColor:c$l(a$j.Rose,e$4.text).textColor},[e$5.ModerateDecrease]:{bgColor:c$l(a$j.Rose,e$4.background).bgColor,textColor:c$l(a$j.Rose,e$4.text).textColor},[e$5.Unchanged]:{bgColor:c$l(a$j.Orange,e$4.background).bgColor,textColor:c$l(a$j.Orange,e$4.text).textColor}},c$i={[e$5.Increase]:r$g,[e$5.ModerateIncrease]:r$f,[e$5.Decrease]:r$j,[e$5.ModerateDecrease]:r$i,[e$5.Unchanged]:r$h};
|
|
64356
64356
|
|
|
64357
|
-
const u$7=$$1("BadgeDelta"),h$4=React.forwardRef(((n,h)=>{const{deltaType:j=e$5.Increase,isIncreasePositive:x=!0,size:w=r$
|
|
64357
|
+
const u$7=$$1("BadgeDelta"),h$4=React.forwardRef(((n,h)=>{const{deltaType:j=e$5.Increase,isIncreasePositive:x=!0,size:w=r$n.SM,tooltip:y,children:N,className:T}=n,E=__rest$2(n,["deltaType","isIncreasePositive","size","tooltip","children","className"]),P=c$i[j],R=r$m(j,x),k=N?h$5:m$b,{tooltipProps:v,getReferenceProps:z}=f$c();return React.createElement("span",Object.assign({ref:n$i([h,v.refs.setReference]),className:t$e(u$7("root"),"w-max flex-shrink-0 inline-flex justify-center items-center cursor-default rounded-tremor-full bg-opacity-20 dark:bg-opacity-25",X$4[R].bgColor,X$4[R].textColor,k[w].paddingX,k[w].paddingY,k[w].fontSize,T)},z,E),React.createElement(u$8,Object.assign({text:y},v)),React.createElement(P,{className:t$e(u$7("icon"),"shrink-0",N?t$e(t$g.twoXs.negativeMarginLeft,t$g.xs.marginRight):x$4[w].height,x$4[w].width)}),N?React.createElement("p",{className:t$e(u$7("text"),"text-sm whitespace-nowrap")},N):null)}));h$4.displayName="BadgeDelta";
|
|
64358
64358
|
|
|
64359
|
-
const i$i={xs:{paddingX:t$g.xs.paddingX,paddingY:t$g.xs.paddingY},sm:{paddingX:t$g.xs.paddingX,paddingY:t$g.xs.paddingY},md:{paddingX:t$g.sm.paddingX,paddingY:t$g.sm.paddingY},lg:{paddingX:t$g.sm.paddingX,paddingY:t$g.sm.paddingY},xl:{paddingX:t$g.md.paddingX,paddingY:t$g.md.paddingY}},n$e={xs:{height:h$7.sm.height,width:h$7.sm.width},sm:{height:h$7.lg.height,width:h$7.lg.width},md:{height:h$7.lg.height,width:h$7.lg.width},lg:{height:h$7.twoXl.height,width:h$7.twoXl.width},xl:{height:h$7.threeXl.height,width:h$7.threeXl.width}},g$b={simple:{rounded:"",border:"",ring:"",shadow:""},light:{rounded:"rounded-tremor-default",border:"",ring:"",shadow:""},shadow:{rounded:"rounded-tremor-default",border:r$
|
|
64359
|
+
const i$i={xs:{paddingX:t$g.xs.paddingX,paddingY:t$g.xs.paddingY},sm:{paddingX:t$g.xs.paddingX,paddingY:t$g.xs.paddingY},md:{paddingX:t$g.sm.paddingX,paddingY:t$g.sm.paddingY},lg:{paddingX:t$g.sm.paddingX,paddingY:t$g.sm.paddingY},xl:{paddingX:t$g.md.paddingX,paddingY:t$g.md.paddingY}},n$e={xs:{height:h$7.sm.height,width:h$7.sm.width},sm:{height:h$7.lg.height,width:h$7.lg.width},md:{height:h$7.lg.height,width:h$7.lg.width},lg:{height:h$7.twoXl.height,width:h$7.twoXl.width},xl:{height:h$7.threeXl.height,width:h$7.threeXl.width}},g$b={simple:{rounded:"",border:"",ring:"",shadow:""},light:{rounded:"rounded-tremor-default",border:"",ring:"",shadow:""},shadow:{rounded:"rounded-tremor-default",border:r$l.sm.all,ring:"",shadow:"shadow-tremor-card dark:shadow-dark-tremor-card"},solid:{rounded:"rounded-tremor-default",border:r$l.md.all,ring:"ring-1",shadow:""},outlined:{rounded:"rounded-tremor-default",border:r$l.sm.all,ring:"ring-2",shadow:""}},b$8=(r,d)=>{switch(r){case"simple":return {textColor:d?c$l(d,e$4.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:"",borderColor:"",ringColor:""};case"light":return {textColor:d?c$l(d,e$4.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:d?t$e(c$l(d,e$4.background).bgColor,"bg-opacity-20"):"bg-tremor-brand-muted dark:bg-dark-tremor-brand-muted",borderColor:"",ringColor:""};case"shadow":return {textColor:d?c$l(d,e$4.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:d?t$e(c$l(d,e$4.background).bgColor,"bg-opacity-20"):"bg-tremor-background dark:bg-dark-tremor-background",borderColor:"border-tremor-border dark:border-dark-tremor-border",ringColor:""};case"solid":return {textColor:d?c$l(d,e$4.text).textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",bgColor:d?t$e(c$l(d,e$4.background).bgColor,"bg-opacity-20"):"bg-tremor-brand dark:bg-dark-tremor-brand",borderColor:"border-tremor-brand-inverted dark:border-dark-tremor-brand-inverted",ringColor:"ring-tremor-ring dark:ring-dark-tremor-ring"};case"outlined":return {textColor:d?c$l(d,e$4.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:d?t$e(c$l(d,e$4.background).bgColor,"bg-opacity-20"):"bg-tremor-background dark:bg-dark-tremor-background",borderColor:d?c$l(d,e$4.ring).borderColor:"border-tremor-brand-subtle dark:border-dark-tremor-brand-subtle",ringColor:d?t$e(c$l(d,e$4.ring).ringColor,"ring-opacity-40"):"ring-tremor-brand-muted dark:ring-dark-tremor-brand-muted"}}};
|
|
64360
64360
|
|
|
64361
|
-
const d$i=$$1("Icon"),f$a={Simple:"simple",Light:"light",Shadow:"shadow",Solid:"solid",Outlined:"outlined"},g$a=React.forwardRef(((i,g)=>{const{icon:h,variant:b=f$a.Simple,tooltip:j,size:u=r$
|
|
64361
|
+
const d$i=$$1("Icon"),f$a={Simple:"simple",Light:"light",Shadow:"shadow",Solid:"solid",Outlined:"outlined"},g$a=React.forwardRef(((i,g)=>{const{icon:h,variant:b=f$a.Simple,tooltip:j,size:u=r$n.SM,color:w,className:x}=i,N=__rest$2(i,["icon","variant","tooltip","size","color","className"]),S=h,C=b$8(b,w),{tooltipProps:E,getReferenceProps:O}=f$c();return React.createElement("span",Object.assign({ref:n$i([g,E.refs.setReference]),className:t$e(d$i("root"),"inline-flex flex-shrink-0 items-center",C.bgColor,C.textColor,C.borderColor,C.ringColor,g$b[b].rounded,g$b[b].border,g$b[b].shadow,g$b[b].ring,i$i[u].paddingX,i$i[u].paddingY,x)},O,N),React.createElement(u$8,Object.assign({text:j},E)),React.createElement(S,{className:t$e(d$i("icon"),"shrink-0",n$e[u].height,n$e[u].width)}))}));g$a.displayName="Icon";
|
|
64362
64362
|
|
|
64363
64363
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
64364
64364
|
if (source == null) return {};
|
|
@@ -64828,13 +64828,13 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
64828
64828
|
Transition.EXITING = EXITING;
|
|
64829
64829
|
var g$9 = Transition;
|
|
64830
64830
|
|
|
64831
|
-
const r$
|
|
64831
|
+
const r$e=r=>{var a=__rest$2(r,[]);return React.createElement("svg",Object.assign({},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),React.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),React.createElement("path",{d:"M18.364 5.636L16.95 7.05A7 7 0 1 0 19 12h2a9 9 0 1 1-2.636-6.364z"}))};
|
|
64832
64832
|
|
|
64833
64833
|
const i$h={xs:{height:h$7.md.height,width:h$7.md.width},sm:{height:h$7.lg.height,width:h$7.lg.width},md:{height:h$7.lg.height,width:h$7.lg.width},lg:{height:h$7.xl.height,width:h$7.xl.width},xl:{height:h$7.xl.height,width:h$7.xl.width}},n$d=o=>"light"!==o?{xs:{paddingX:t$g.md.paddingX,paddingY:t$g.xs.paddingY,fontSize:t$b.xs},sm:{paddingX:t$g.twoXl.paddingX,paddingY:t$g.sm.paddingY,fontSize:t$b.sm},md:{paddingX:t$g.twoXl.paddingX,paddingY:t$g.sm.paddingY,fontSize:t$b.md},lg:{paddingX:t$g.twoXl.paddingX,paddingY:t$g.md.paddingY,fontSize:t$b.lg},xl:{paddingX:t$g.twoXl.paddingX,paddingY:t$g.lg.paddingY,fontSize:t$b.xl}}:{xs:{paddingX:"",paddingY:"",fontSize:t$b.xs},sm:{paddingX:"",paddingY:"",fontSize:t$b.sm},md:{paddingX:"",paddingY:"",fontSize:t$b.md},lg:{paddingX:"",paddingY:"",fontSize:t$b.lg},xl:{paddingX:"",paddingY:"",fontSize:t$b.xl}},g$8=(r,o)=>{switch(r){case"primary":return {textColor:o?c$l("white").textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",hoverTextColor:o?c$l("white").textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",bgColor:o?c$l(o,e$4.background).bgColor:"bg-tremor-brand dark:bg-dark-tremor-brand",hoverBgColor:o?c$l(o,e$4.darkBackground).hoverBgColor:"hover:bg-tremor-brand-emphasis dark:hover:bg-dark-tremor-brand-emphasis",borderColor:o?c$l(o,e$4.border).borderColor:"border-tremor-brand dark:border-dark-tremor-brand",hoverBorderColor:o?c$l(o,e$4.darkBorder).hoverBorderColor:"hover:border-tremor-brand-emphasis dark:hover:border-dark-tremor-brand-emphasis"};case"secondary":return {textColor:o?c$l(o,e$4.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",hoverTextColor:o?c$l(o,e$4.text).textColor:"hover:text-tremor-brand-emphasis dark:hover:text-dark-tremor-brand-emphasis",bgColor:c$l("transparent").bgColor,hoverBgColor:o?t$e(c$l(o,e$4.background).hoverBgColor,"hover:bg-opacity-20 dark:hover:bg-opacity-20"):"hover:bg-tremor-brand-faint dark:hover:bg-dark-tremor-brand-faint",borderColor:o?c$l(o,e$4.border).borderColor:"border-tremor-brand dark:border-dark-tremor-brand"};case"light":return {textColor:o?c$l(o,e$4.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",hoverTextColor:o?c$l(o,e$4.darkText).hoverTextColor:"hover:text-tremor-brand-emphasis dark:hover:text-dark-tremor-brand-emphasis",bgColor:c$l("transparent").bgColor,borderColor:"",hoverBorderColor:""}}};
|
|
64834
64834
|
|
|
64835
|
-
const b$
|
|
64835
|
+
const b$7=$$1("Button"),x$3=({loading:e,iconSize:t,iconPosition:o,Icon:n,needMargin:r,transitionState:m})=>{const c=r?o===n$j.Left?t$e(t$g.twoXs.negativeMarginLeft,t$g.xs.marginRight):t$e(t$g.twoXs.negativeMarginRight,t$g.xs.marginLeft):"",g=t$e(h$7.none.width,h$7.none.height),f={default:g,entering:g,entered:t,exiting:t,exited:g};return e?React.createElement(r$e,{className:t$e(b$7("icon"),"animate-spin shrink-0",c,f.default,f[m]),style:{transition:"width 150ms"}}):React.createElement(n,{className:t$e(b$7("icon"),"shrink-0",t,c)})},j$3=React.forwardRef(((a,s)=>{const{icon:c,iconPosition:p=n$j.Left,size:j=r$n.SM,color:w,variant:v="primary",disabled:S,loading:E=!1,loadingText:z,children:C,tooltip:M,className:N}=a,P=__rest$2(a,["icon","iconPosition","size","color","variant","disabled","loading","loadingText","children","tooltip","className"]),R=c,y=E||S,T=void 0!==R||E,k=E&&z,B=!(!C&&!k),L=t$e(i$h[j].height,i$h[j].width),I="light"!==v?t$e("rounded-tremor-default","shadow-tremor-input","dark:shadow-dark-tremor-input",r$l.sm.all):"",X=g$8(v,w),O=n$d(v)[j],{tooltipProps:Y,getReferenceProps:q}=f$c(300);return React.createElement(g$9,{in:E,timeout:50},(e=>React.createElement("button",Object.assign({ref:n$i([s,Y.refs.setReference]),className:t$e(b$7("root"),"flex-shrink-0 inline-flex justify-center items-center group font-medium outline-none",I,O.paddingX,O.paddingY,O.fontSize,X.textColor,X.bgColor,X.borderColor,X.hoverBorderColor,y?"opacity-50 cursor-not-allowed":t$e(g$8(v,w).hoverTextColor,g$8(v,w).hoverBgColor,g$8(v,w).hoverBorderColor),N),disabled:y},q,P),React.createElement(u$8,Object.assign({text:M},Y)),T&&p!==n$j.Right?React.createElement(x$3,{loading:E,iconSize:L,iconPosition:p,Icon:R,transitionState:e,needMargin:B}):null,k||C?React.createElement("span",{className:t$e(b$7("text"),"text-sm whitespace-nowrap")},k?z:C):null,T&&p===n$j.Right?React.createElement(x$3,{loading:E,iconSize:L,iconPosition:p,Icon:R,transitionState:e,needMargin:B}):null)))}));j$3.displayName="Button";
|
|
64836
64836
|
|
|
64837
|
-
var i$g=Object.defineProperty;var d$h=(t,e,n)=>e in t?i$g(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var r$
|
|
64837
|
+
var i$g=Object.defineProperty;var d$h=(t,e,n)=>e in t?i$g(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var r$d=(t,e,n)=>(d$h(t,typeof e!="symbol"?e+"":e,n),n);let o$g = class o{constructor(){r$d(this,"current",this.detect());r$d(this,"handoffState","pending");r$d(this,"currentId",0);}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e);}reset(){this.set(this.detect());}nextId(){return ++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window=="undefined"||typeof document=="undefined"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete");}get isHandoffComplete(){return this.handoffState==="complete"}};let s$h=new o$g;
|
|
64838
64838
|
|
|
64839
64839
|
let l$f=(e,f)=>{s$h.isServer?React.useEffect(e,f):React.useLayoutEffect(e,f);};
|
|
64840
64840
|
|
|
@@ -64844,21 +64844,21 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
64844
64844
|
|
|
64845
64845
|
function t$9(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(o=>setTimeout(()=>{throw o}));}
|
|
64846
64846
|
|
|
64847
|
-
function o$
|
|
64847
|
+
function o$f(){let n=[],r={addEventListener(e,t,s,a){return e.addEventListener(t,s,a),r.add(()=>e.removeEventListener(t,s,a))},requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add(()=>cancelAnimationFrame(t))},nextFrame(...e){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...e))},setTimeout(...e){let t=setTimeout(...e);return r.add(()=>clearTimeout(t))},microTask(...e){let t={current:!0};return t$9(()=>{t.current&&e[0]();}),r.add(()=>{t.current=!1;})},style(e,t,s){let a=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:s}),this.add(()=>{Object.assign(e.style,{[t]:a});})},group(e){let t=o$f();return e(t),this.add(()=>t.dispose())},add(e){return n.push(e),()=>{let t=n.indexOf(e);if(t>=0)for(let s of n.splice(t,1))s();}},dispose(){for(let e of n.splice(0))e();}};return r}
|
|
64848
64848
|
|
|
64849
|
-
function p$9(){let[e]=React.useState(o$
|
|
64849
|
+
function p$9(){let[e]=React.useState(o$f);return React.useEffect(()=>()=>e.dispose(),[e]),e}
|
|
64850
64850
|
|
|
64851
|
-
let o$
|
|
64851
|
+
let o$e=function(t){let e=s$g(t);return React.useCallback((...r)=>e.current(...r),[e])};
|
|
64852
64852
|
|
|
64853
64853
|
function s$f(){let r=typeof document=="undefined";return "useSyncExternalStore"in React__namespace?(o=>o.useSyncExternalStore)(React__namespace)(()=>()=>{},()=>!1,()=>!r):!1}function l$e(){let r=s$f(),[e,n]=React__namespace.useState(s$h.isHandoffComplete);return e&&s$h.isHandoffComplete===!1&&n(!1),React__namespace.useEffect(()=>{e!==!0&&n(!0);},[e]),React__namespace.useEffect(()=>s$h.handoff(),[]),r?!1:e}
|
|
64854
64854
|
|
|
64855
|
-
var o$
|
|
64855
|
+
var o$d;let I$2=(o$d=React.useId)!=null?o$d:function(){let n=l$e(),[e,u]=React.useState(n?()=>s$h.nextId():null);return l$f(()=>{e===null&&u(s$h.nextId());},[e]),e!=null?""+e:void 0};
|
|
64856
64856
|
|
|
64857
64857
|
function u$6(r,n,...a){if(r in n){let e=n[r];return typeof e=="function"?e(...a):e}let t=new Error(`Tried to handle "${r}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,u$6),t}
|
|
64858
64858
|
|
|
64859
64859
|
function e$2(r){return s$h.isServer?null:r instanceof Node?r.ownerDocument:r!=null&&r.hasOwnProperty("current")&&r.current instanceof Node?r.current.ownerDocument:document}
|
|
64860
64860
|
|
|
64861
|
-
let c$h=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var M$4=(n=>(n[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n))(M$4||{}),N$
|
|
64861
|
+
let c$h=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var M$4=(n=>(n[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n))(M$4||{}),N$2=(o=>(o[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o))(N$2||{}),F$2=(t=>(t[t.Previous=-1]="Previous",t[t.Next=1]="Next",t))(F$2||{});function f$9(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(c$h)).sort((r,t)=>Math.sign((r.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var T$2=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(T$2||{});function h$3(e,r=0){var t;return e===((t=e$2(e))==null?void 0:t.body)?!1:u$6(r,{[0](){return e.matches(c$h)},[1](){let l=e;for(;l!==null;){if(l.matches(c$h))return !0;l=l.parentElement;}return !1}})}var w$4=(t=>(t[t.Keyboard=0]="Keyboard",t[t.Mouse=1]="Mouse",t))(w$4||{});typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="");},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="");},!0));let S$3=["textarea","input"].join(",");function H$2(e){var r,t;return (t=(r=e==null?void 0:e.matches)==null?void 0:r.call(e,S$3))!=null?t:!1}function I$1(e,r=t=>t){return e.slice().sort((t,l)=>{let o=r(t),i=r(l);if(o===null||i===null)return 0;let n=o.compareDocumentPosition(i);return n&Node.DOCUMENT_POSITION_FOLLOWING?-1:n&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function O(e,r,{sorted:t=!0,relativeTo:l=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,n=Array.isArray(e)?t?I$1(e):e:f$9(e);o.length>0&&n.length>1&&(n=n.filter(s=>!o.includes(s))),l=l!=null?l:i.activeElement;let E=(()=>{if(r&5)return 1;if(r&10)return -1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),x=(()=>{if(r&1)return 0;if(r&2)return Math.max(0,n.indexOf(l))-1;if(r&4)return Math.max(0,n.indexOf(l))+1;if(r&8)return n.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=r&32?{preventScroll:!0}:{},d=0,a=n.length,u;do{if(d>=a||d+a<=0)return 0;let s=x+d;if(r&16)s=(s+a)%a;else {if(s<0)return 3;if(s>=a)return 1}u=n[s],u==null||u.focus(p),d+=E;}while(u!==i.activeElement);return r&6&&H$2(u)&&u.select(),2}
|
|
64862
64862
|
|
|
64863
64863
|
function d$g(e,r,n){let o=s$g(r);React.useEffect(()=>{function t(u){o.current(u);}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n]);}
|
|
64864
64864
|
|
|
@@ -64868,32 +64868,32 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
64868
64868
|
|
|
64869
64869
|
function i$e(t){var n;if(t.type)return t.type;let e=(n=t.as)!=null?n:"button";if(typeof e=="string"&&e.toLowerCase()==="button")return "button"}function s$d(t,e){let[n,u]=React.useState(()=>i$e(t));return l$f(()=>{u(i$e(t));},[t.type,t.as]),l$f(()=>{n||e.current&&e.current instanceof HTMLButtonElement&&!e.current.hasAttribute("type")&&u("button");},[n,e]),n}
|
|
64870
64870
|
|
|
64871
|
-
let u$5=Symbol();function T$1(t,n=!0){return Object.assign(t,{[u$5]:n})}function y$3(...t){let n=React.useRef(t);React.useEffect(()=>{n.current=t;},[t]);let c=o$
|
|
64871
|
+
let u$5=Symbol();function T$1(t,n=!0){return Object.assign(t,{[u$5]:n})}function y$3(...t){let n=React.useRef(t);React.useEffect(()=>{n.current=t;},[t]);let c=o$e(e=>{for(let o of n.current)o!=null&&(typeof o=="function"?o(e):o.current=e);});return t.every(e=>e==null||(e==null?void 0:e[u$5]))?void 0:c}
|
|
64872
64872
|
|
|
64873
64873
|
function F$1({container:e,accept:t,walk:r,enabled:c=!0}){let o=React.useRef(t),l=React.useRef(r);React.useEffect(()=>{o.current=t,l.current=r;},[t,r]),l$f(()=>{if(!e||!c)return;let n=e$2(e);if(!n)return;let f=o.current,p=l.current,d=Object.assign(i=>f(i),{acceptNode:f}),u=n.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d,!1);for(;u.nextNode();)p(u.currentNode);},[e,c,o,l]);}
|
|
64874
64874
|
|
|
64875
|
-
function f$8(r){throw new Error("Unexpected object: "+r)}var a$e=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(a$e||{});function x$
|
|
64875
|
+
function f$8(r){throw new Error("Unexpected object: "+r)}var a$e=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(a$e||{});function x$2(r,n){let t=n.resolveItems();if(t.length<=0)return null;let l=n.resolveActiveIndex(),s=l!=null?l:-1,d=(()=>{switch(r.focus){case 0:return t.findIndex(e=>!n.resolveDisabled(e));case 1:{let e=t.slice().reverse().findIndex((i,c,u)=>s!==-1&&u.length-c-1>=s?!1:!n.resolveDisabled(i));return e===-1?e:t.length-1-e}case 2:return t.findIndex((e,i)=>i<=s?!1:!n.resolveDisabled(e));case 3:{let e=t.slice().reverse().findIndex(i=>!n.resolveDisabled(i));return e===-1?e:t.length-1-e}case 4:return t.findIndex(e=>n.resolveId(e)===r.id);case 5:return null;default:f$8(r);}})();return d===-1?l:d}
|
|
64876
64876
|
|
|
64877
64877
|
function t$8(...r){return Array.from(new Set(r.flatMap(n=>typeof n=="string"?n.split(" "):[]))).filter(Boolean).join(" ")}
|
|
64878
64878
|
|
|
64879
|
-
var S$2=(a=>(a[a.None=0]="None",a[a.RenderStrategy=1]="RenderStrategy",a[a.Static=2]="Static",a))(S$2||{}),j$2=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(j$2||{});function X$3({ourProps:r,theirProps:t,slot:e,defaultTag:a,features:s,visible:n=!0,name:f}){let o=N$
|
|
64879
|
+
var S$2=(a=>(a[a.None=0]="None",a[a.RenderStrategy=1]="RenderStrategy",a[a.Static=2]="Static",a))(S$2||{}),j$2=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(j$2||{});function X$3({ourProps:r,theirProps:t,slot:e,defaultTag:a,features:s,visible:n=!0,name:f}){let o=N$1(t,r);if(n)return c$g(o,e,a,f);let u=s!=null?s:0;if(u&2){let{static:l=!1,...p}=o;if(l)return c$g(p,e,a,f)}if(u&1){let{unmount:l=!0,...p}=o;return u$6(l?0:1,{[0](){return null},[1](){return c$g({...p,hidden:!0,style:{display:"none"}},e,a,f)}})}return c$g(o,e,a,f)}function c$g(r,t={},e,a){let{as:s=e,children:n,refName:f="ref",...o}=g$7(r,["unmount","static"]),u=r.ref!==void 0?{[f]:r.ref}:{},l=typeof n=="function"?n(t):n;"className"in o&&o.className&&typeof o.className=="function"&&(o.className=o.className(t));let p={};if(t){let i=!1,m=[];for(let[y,d]of Object.entries(t))typeof d=="boolean"&&(i=!0),d===!0&&m.push(y);i&&(p["data-headlessui-state"]=m.join(" "));}if(s===React.Fragment&&Object.keys(R(o)).length>0){if(!React.isValidElement(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${a} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(o).map(d=>` - ${d}`).join(`
|
|
64880
64880
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>` - ${d}`).join(`
|
|
64881
64881
|
`)].join(`
|
|
64882
|
-
`));let i=l.props,m=typeof(i==null?void 0:i.className)=="function"?(...d)=>t$8(i==null?void 0:i.className(...d),o.className):t$8(i==null?void 0:i.className,o.className),y=m?{className:m}:{};return React.cloneElement(l,Object.assign({},N$
|
|
64882
|
+
`));let i=l.props,m=typeof(i==null?void 0:i.className)=="function"?(...d)=>t$8(i==null?void 0:i.className(...d),o.className):t$8(i==null?void 0:i.className,o.className),y=m?{className:m}:{};return React.cloneElement(l,Object.assign({},N$1(l.props,R(g$7(o,["ref"]))),p,u,w$3(l.ref,u.ref),y))}return React.createElement(s,Object.assign({},g$7(o,["ref"]),s!==React.Fragment&&u,s!==React.Fragment&&p),l)}function w$3(...r){return {ref:r.every(t=>t==null)?void 0:t=>{for(let e of r)e!=null&&(typeof e=="function"?e(t):e.current=t);}}}function N$1(...r){if(r.length===0)return {};if(r.length===1)return r[0];let t={},e={};for(let s of r)for(let n in s)n.startsWith("on")&&typeof s[n]=="function"?((e[n])!=null||(e[n]=[]),e[n].push(s[n])):t[n]=s[n];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(e).map(s=>[s,void 0])));for(let s in e)Object.assign(t,{[s](n,...f){let o=e[s];for(let u of o){if((n instanceof Event||(n==null?void 0:n.nativeEvent)instanceof Event)&&n.defaultPrevented)return;u(n,...f);}}});return t}function D$1(r){var t;return Object.assign(React.forwardRef(r),{displayName:(t=r.displayName)!=null?t:r.name})}function R(r){let t=Object.assign({},r);for(let e in t)t[e]===void 0&&delete t[e];return t}function g$7(r,t=[]){let e=Object.assign({},r);for(let a of t)a in e&&delete e[a];return e}
|
|
64883
64883
|
|
|
64884
|
-
function r$
|
|
64884
|
+
function r$c(n){let e=n.parentElement,l=null;for(;e&&!(e instanceof HTMLFieldSetElement);)e instanceof HTMLLegendElement&&(l=e),e=e.parentElement;let t=(e==null?void 0:e.getAttribute("disabled"))==="";return t&&i$d(l)?!1:t}function i$d(n){if(!n)return !1;let e=n.previousElementSibling;for(;e!==null;){if(e instanceof HTMLLegendElement)return !1;e=e.previousElementSibling;}return !0}
|
|
64885
64885
|
|
|
64886
|
-
function e$1(i={},s=null,t=[]){for(let[r,n]of Object.entries(i))o$
|
|
64886
|
+
function e$1(i={},s=null,t=[]){for(let[r,n]of Object.entries(i))o$c(t,f$7(s,r),n);return t}function f$7(i,s){return i?i+"["+s+"]":s}function o$c(i,s,t){if(Array.isArray(t))for(let[r,n]of t.entries())o$c(i,f$7(s,r.toString()),n);else t instanceof Date?i.push([s,t.toISOString()]):typeof t=="boolean"?i.push([s,t?"1":"0"]):typeof t=="string"?i.push([s,t]):typeof t=="number"?i.push([s,`${t}`]):t==null?i.push([s,""]):e$1(t,s,i);}function p$8(i){var t,r;let s=(t=i==null?void 0:i.form)!=null?t:i.closest("form");if(s){for(let n of s.elements)if(n!==i&&(n.tagName==="INPUT"&&n.type==="submit"||n.tagName==="BUTTON"&&n.type==="submit"||n.nodeName==="INPUT"&&n.type==="image")){n.click();return}(r=s.requestSubmit)==null||r.call(s);}}
|
|
64887
64887
|
|
|
64888
64888
|
let a$d="div";var p$7=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(p$7||{});function s$c(t,o){let{features:n=1,...e}=t,d={ref:o,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return X$3({ourProps:d,theirProps:e,slot:{},defaultTag:a$d,name:"Hidden"})}let c$f=D$1(s$c);
|
|
64889
64889
|
|
|
64890
64890
|
let n$c=React.createContext(null);n$c.displayName="OpenClosedContext";var d$f=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(d$f||{});function C$2(){return React.useContext(n$c)}function c$e({value:o,children:r}){return React.createElement(n$c.Provider,{value:o},r)}
|
|
64891
64891
|
|
|
64892
|
-
var o$
|
|
64892
|
+
var o$b=(r=>(r.Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r))(o$b||{});
|
|
64893
64893
|
|
|
64894
|
-
function T(l,r,c){let[i,s]=React.useState(c),e=l!==void 0,t=React.useRef(e),u=React.useRef(!1),d=React.useRef(!1);return e&&!t.current&&!u.current?(u.current=!0,t.current=e,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!e&&t.current&&!d.current&&(d.current=!0,t.current=e,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[e?l:i,o$
|
|
64894
|
+
function T(l,r,c){let[i,s]=React.useState(c),e=l!==void 0,t=React.useRef(e),u=React.useRef(!1),d=React.useRef(!1);return e&&!t.current&&!u.current?(u.current=!0,t.current=e,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!e&&t.current&&!d.current&&(d.current=!0,t.current=e,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[e?l:i,o$e(n=>(e||s(n),r==null?void 0:r(n)))]}
|
|
64895
64895
|
|
|
64896
|
-
function m$a(u,t){let e=React.useRef([]),r=o$
|
|
64896
|
+
function m$a(u,t){let e=React.useRef([]),r=o$e(u);React.useEffect(()=>{let o=[...e.current];for(let[n,a]of t.entries())if(e.current[n]!==a){let l=r(t,o);return e.current=t,l}},[r,...t]);}
|
|
64897
64897
|
|
|
64898
64898
|
function t$7(e){return [e.screenX,e.screenY]}function u$4(){let e=React.useRef([-1,-1]);return {wasMoved(r){let n=t$7(r);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(r){e.current=t$7(r);}}}
|
|
64899
64899
|
|
|
@@ -64901,7 +64901,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
64901
64901
|
|
|
64902
64902
|
function n$a(...e){return React.useMemo(()=>e$2(...e),[...e])}
|
|
64903
64903
|
|
|
64904
|
-
var we$2=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(we$2||{}),Ue$1=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ue$1||{}),Ne$3=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ne$3||{}),He$2=(n=>(n[n.OpenCombobox=0]="OpenCombobox",n[n.CloseCombobox=1]="CloseCombobox",n[n.GoToOption=2]="GoToOption",n[n.RegisterOption=3]="RegisterOption",n[n.UnregisterOption=4]="UnregisterOption",n[n.RegisterLabel=5]="RegisterLabel",n))(He$2||{});function ae$1(t,a=e=>e){let e=t.activeOptionIndex!==null?t.options[t.activeOptionIndex]:null,r=I$1(a(t.options.slice()),b=>b.dataRef.current.domRef.current),l=e?r.indexOf(e):null;return l===-1&&(l=null),{options:r,activeOptionIndex:l}}let Ge$3={[1](t){var a;return (a=t.dataRef.current)!=null&&a.disabled||t.comboboxState===1?t:{...t,activeOptionIndex:null,comboboxState:1}},[0](t){var e;if((e=t.dataRef.current)!=null&&e.disabled||t.comboboxState===0)return t;let a=t.activeOptionIndex;if(t.dataRef.current){let{isSelected:r}=t.dataRef.current,l=t.options.findIndex(b=>r(b.dataRef.current.value));l!==-1&&(a=l);}return {...t,comboboxState:0,activeOptionIndex:a}},[2](t,a){var l,b,n,d;if((l=t.dataRef.current)!=null&&l.disabled||(b=t.dataRef.current)!=null&&b.optionsRef.current&&!((n=t.dataRef.current)!=null&&n.optionsPropsRef.current.static)&&t.comboboxState===1)return t;let e=ae$1(t);if(e.activeOptionIndex===null){let o=e.options.findIndex(i=>!i.dataRef.current.disabled);o!==-1&&(e.activeOptionIndex=o);}let r=x$1(a,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled});return {...t,...e,activeOptionIndex:r,activationTrigger:(d=a.trigger)!=null?d:1}},[3]:(t,a)=>{var b,n;let e={id:a.id,dataRef:a.dataRef},r=ae$1(t,d=>[...d,e]);t.activeOptionIndex===null&&(b=t.dataRef.current)!=null&&b.isSelected(a.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(e));let l={...t,...r,activationTrigger:1};return (n=t.dataRef.current)!=null&&n.__demoMode&&t.dataRef.current.value===void 0&&(l.activeOptionIndex=0),l},[4]:(t,a)=>{let e=ae$1(t,r=>{let l=r.findIndex(b=>b.id===a.id);return l!==-1&&r.splice(l,1),r});return {...t,...e,activationTrigger:1}},[5]:(t,a)=>({...t,labelId:a.id})},le$1=React.createContext(null);le$1.displayName="ComboboxActionsContext";function Z$2(t){let a=React.useContext(le$1);if(a===null){let e=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,Z$2),e}return a}let ie$2=React.createContext(null);ie$2.displayName="ComboboxDataContext";function J$1(t){let a=React.useContext(ie$2);if(a===null){let e=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,J$1),e}return a}function Xe$2(t,a){return u$6(a.type,Ge$3,t,a)}let je$2=React.Fragment;function Je$2(t,a){let{value:e,defaultValue:r,onChange:l,form:b,name:n,by:d=(u,T)=>u===T,disabled:o=!1,__demoMode:i=!1,nullable:A=!1,multiple:O=!1,...C}=t,[f=O?[]:void 0,g]=T(e,l,r),[m,c]=React.useReducer(Xe$2,{dataRef:React.createRef(),comboboxState:i?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),D=React.useRef(!1),_=React.useRef({static:!1,hold:!1}),w=React.useRef(null),U=React.useRef(null),N=React.useRef(null),K=React.useRef(null),h=o$d(typeof d=="string"?(u,T)=>{let v=d;return (u==null?void 0:u[v])===(T==null?void 0:T[v])}:d),H=React.useCallback(u=>u$6(p.mode,{[1]:()=>f.some(T=>h(T,u)),[0]:()=>h(f,u)}),[f]),p=React.useMemo(()=>({...m,optionsPropsRef:_,labelRef:w,inputRef:U,buttonRef:N,optionsRef:K,value:f,defaultValue:r,disabled:o,mode:O?1:0,get activeOptionIndex(){if(D.current&&m.activeOptionIndex===null&&m.options.length>0){let u=m.options.findIndex(T=>!T.dataRef.current.disabled);if(u!==-1)return u}return m.activeOptionIndex},compare:h,isSelected:H,nullable:A,__demoMode:i}),[f,r,o,O,A,i,m]),y=React.useRef(p.activeOptionIndex!==null?p.options[p.activeOptionIndex]:null);React.useEffect(()=>{let u=p.activeOptionIndex!==null?p.options[p.activeOptionIndex]:null;y.current!==u&&(y.current=u);}),l$f(()=>{m.dataRef.current=p;},[p]),h$2([p.buttonRef,p.inputRef,p.optionsRef],()=>te.closeCombobox(),p.comboboxState===0);let E=React.useMemo(()=>({open:p.comboboxState===0,disabled:o,activeIndex:p.activeOptionIndex,activeOption:p.activeOptionIndex===null?null:p.options[p.activeOptionIndex].dataRef.current.value,value:f}),[p,o,f]),B=o$d(u=>{let T=p.options.find(v=>v.id===u);T&&V(T.dataRef.current.value);}),s=o$d(()=>{if(p.activeOptionIndex!==null){let{dataRef:u,id:T}=p.options[p.activeOptionIndex];V(u.current.value),te.goToOption(a$e.Specific,T);}}),W=o$d(()=>{c({type:0}),D.current=!0;}),L=o$d(()=>{c({type:1}),D.current=!1;}),$=o$d((u,T,v)=>(D.current=!1,u===a$e.Specific?c({type:2,focus:a$e.Specific,id:T,trigger:v}):c({type:2,focus:u,trigger:v}))),P=o$d((u,T)=>(c({type:3,id:u,dataRef:T}),()=>{var v;((v=y.current)==null?void 0:v.id)===u&&(D.current=!0),c({type:4,id:u});})),F=o$d(u=>(c({type:5,id:u}),()=>c({type:5,id:null}))),V=o$d(u=>u$6(p.mode,{[0](){return g==null?void 0:g(u)},[1](){let T=p.value.slice(),v=T.findIndex(q=>h(q,u));return v===-1?T.push(u):T.splice(v,1),g==null?void 0:g(T)}})),te=React.useMemo(()=>({onChange:V,registerOption:P,registerLabel:F,goToOption:$,closeCombobox:L,openCombobox:W,selectActiveOption:s,selectOption:B}),[]),Te=a===null?{}:{ref:a},z=React.useRef(null),me=p$9();return React.useEffect(()=>{z.current&&r!==void 0&&me.addEventListener(z.current,"reset",()=>{g==null||g(r);});},[z,g]),React.createElement(le$1.Provider,{value:te},React.createElement(ie$2.Provider,{value:p},React.createElement(c$e,{value:u$6(p.comboboxState,{[0]:d$f.Open,[1]:d$f.Closed})},n!=null&&f!=null&&e$1({[n]:f}).map(([u,T],v)=>React.createElement(c$f,{features:p$7.Hidden,ref:v===0?q=>{var ue;z.current=(ue=q==null?void 0:q.closest("form"))!=null?ue:null;}:void 0,...R$1({key:u,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:b,name:u,value:T})})),X$3({ourProps:Te,theirProps:C,slot:E,defaultTag:je$2,name:"Combobox"}))))}let Ke$2="input";function We$2(t,a){var p,y,E,B;let e=I$2(),{id:r=`headlessui-combobox-input-${e}`,onChange:l,displayValue:b,type:n="text",...d}=t,o=J$1("Combobox.Input"),i=Z$2("Combobox.Input"),A=y$3(o.inputRef,a),O=n$a(o.inputRef),C=React.useRef(!1),f=p$9(),g=o$d(()=>{i.onChange(null),o.optionsRef.current&&(o.optionsRef.current.scrollTop=0),i.goToOption(a$e.Nothing);}),m=function(){var s;return typeof b=="function"&&o.value!==void 0?(s=b(o.value))!=null?s:"":typeof o.value=="string"?o.value:""}();m$a(([s,W],[L,$])=>{if(C.current)return;let P=o.inputRef.current;P&&(($===0&&W===1||s!==L)&&(P.value=s),requestAnimationFrame(()=>{if(C.current||!P||(O==null?void 0:O.activeElement)!==P)return;let{selectionStart:F,selectionEnd:V}=P;Math.abs((V!=null?V:0)-(F!=null?F:0))===0&&F===0&&P.setSelectionRange(P.value.length,P.value.length);}));},[m,o.comboboxState,O]),m$a(([s],[W])=>{if(s===0&&W===1){if(C.current)return;let L=o.inputRef.current;if(!L)return;let $=L.value,{selectionStart:P,selectionEnd:F,selectionDirection:V}=L;L.value="",L.value=$,V!==null?L.setSelectionRange(P,F,V):L.setSelectionRange(P,F);}},[o.comboboxState]);let c=React.useRef(!1),D=o$d(()=>{c.current=!0;}),_=o$d(()=>{f.nextFrame(()=>{c.current=!1;});}),w=o$d(s=>{switch(C.current=!0,s.key){case o$a.Enter:if(C.current=!1,o.comboboxState!==0||c.current)return;if(s.preventDefault(),s.stopPropagation(),o.activeOptionIndex===null){i.closeCombobox();return}i.selectActiveOption(),o.mode===0&&i.closeCombobox();break;case o$a.ArrowDown:return C.current=!1,s.preventDefault(),s.stopPropagation(),u$6(o.comboboxState,{[0]:()=>{i.goToOption(a$e.Next);},[1]:()=>{i.openCombobox();}});case o$a.ArrowUp:return C.current=!1,s.preventDefault(),s.stopPropagation(),u$6(o.comboboxState,{[0]:()=>{i.goToOption(a$e.Previous);},[1]:()=>{i.openCombobox(),f.nextFrame(()=>{o.value||i.goToOption(a$e.Last);});}});case o$a.Home:if(s.shiftKey)break;return C.current=!1,s.preventDefault(),s.stopPropagation(),i.goToOption(a$e.First);case o$a.PageUp:return C.current=!1,s.preventDefault(),s.stopPropagation(),i.goToOption(a$e.First);case o$a.End:if(s.shiftKey)break;return C.current=!1,s.preventDefault(),s.stopPropagation(),i.goToOption(a$e.Last);case o$a.PageDown:return C.current=!1,s.preventDefault(),s.stopPropagation(),i.goToOption(a$e.Last);case o$a.Escape:return C.current=!1,o.comboboxState!==0?void 0:(s.preventDefault(),o.optionsRef.current&&!o.optionsPropsRef.current.static&&s.stopPropagation(),o.nullable&&o.mode===0&&o.value===null&&g(),i.closeCombobox());case o$a.Tab:if(C.current=!1,o.comboboxState!==0)return;o.mode===0&&i.selectActiveOption(),i.closeCombobox();break}}),U=o$d(s=>{l==null||l(s),o.nullable&&o.mode===0&&s.target.value===""&&g(),i.openCombobox();}),N=o$d(()=>{C.current=!1;}),K=i$f(()=>{if(o.labelId)return [o.labelId].join(" ")},[o.labelId]),h=React.useMemo(()=>({open:o.comboboxState===0,disabled:o.disabled}),[o]),H={ref:A,id:r,role:"combobox",type:n,"aria-controls":(p=o.optionsRef.current)==null?void 0:p.id,"aria-expanded":o.comboboxState===0,"aria-activedescendant":o.activeOptionIndex===null||(y=o.options[o.activeOptionIndex])==null?void 0:y.id,"aria-labelledby":K,"aria-autocomplete":"list",defaultValue:(B=(E=t.defaultValue)!=null?E:o.defaultValue!==void 0?b==null?void 0:b(o.defaultValue):null)!=null?B:o.defaultValue,disabled:o.disabled,onCompositionStart:D,onCompositionEnd:_,onKeyDown:w,onChange:U,onBlur:N};return X$3({ourProps:H,theirProps:d,slot:h,defaultTag:Ke$2,name:"Combobox.Input"})}let $e$2="button";function qe$3(t,a){var g;let e=J$1("Combobox.Button"),r=Z$2("Combobox.Button"),l=y$3(e.buttonRef,a),b=I$2(),{id:n=`headlessui-combobox-button-${b}`,...d}=t,o=p$9(),i=o$d(m=>{switch(m.key){case o$a.ArrowDown:return m.preventDefault(),m.stopPropagation(),e.comboboxState===1&&r.openCombobox(),o.nextFrame(()=>{var c;return (c=e.inputRef.current)==null?void 0:c.focus({preventScroll:!0})});case o$a.ArrowUp:return m.preventDefault(),m.stopPropagation(),e.comboboxState===1&&(r.openCombobox(),o.nextFrame(()=>{e.value||r.goToOption(a$e.Last);})),o.nextFrame(()=>{var c;return (c=e.inputRef.current)==null?void 0:c.focus({preventScroll:!0})});case o$a.Escape:return e.comboboxState!==0?void 0:(m.preventDefault(),e.optionsRef.current&&!e.optionsPropsRef.current.static&&m.stopPropagation(),r.closeCombobox(),o.nextFrame(()=>{var c;return (c=e.inputRef.current)==null?void 0:c.focus({preventScroll:!0})}));default:return}}),A=o$d(m=>{if(r$d(m.currentTarget))return m.preventDefault();e.comboboxState===0?r.closeCombobox():(m.preventDefault(),r.openCombobox()),o.nextFrame(()=>{var c;return (c=e.inputRef.current)==null?void 0:c.focus({preventScroll:!0})});}),O=i$f(()=>{if(e.labelId)return [e.labelId,n].join(" ")},[e.labelId,n]),C=React.useMemo(()=>({open:e.comboboxState===0,disabled:e.disabled,value:e.value}),[e]),f={ref:l,id:n,type:s$d(t,e.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(g=e.optionsRef.current)==null?void 0:g.id,"aria-expanded":e.comboboxState===0,"aria-labelledby":O,disabled:e.disabled,onClick:A,onKeyDown:i};return X$3({ourProps:f,theirProps:d,slot:C,defaultTag:$e$2,name:"Combobox.Button"})}let Qe$2="label";function Ye$2(t,a){let e=I$2(),{id:r=`headlessui-combobox-label-${e}`,...l}=t,b=J$1("Combobox.Label"),n=Z$2("Combobox.Label"),d=y$3(b.labelRef,a);l$f(()=>n.registerLabel(r),[r]);let o=o$d(()=>{var O;return (O=b.inputRef.current)==null?void 0:O.focus({preventScroll:!0})}),i=React.useMemo(()=>({open:b.comboboxState===0,disabled:b.disabled}),[b]);return X$3({ourProps:{ref:d,id:r,onClick:o},theirProps:l,slot:i,defaultTag:Qe$2,name:"Combobox.Label"})}let Ze$2="ul",ze$2=S$2.RenderStrategy|S$2.Static;function eo$1(t,a){let e=I$2(),{id:r=`headlessui-combobox-options-${e}`,hold:l=!1,...b}=t,n=J$1("Combobox.Options"),d=y$3(n.optionsRef,a),o=C$2(),i=(()=>o!==null?(o&d$f.Open)===d$f.Open:n.comboboxState===0)();l$f(()=>{var f;n.optionsPropsRef.current.static=(f=t.static)!=null?f:!1;},[n.optionsPropsRef,t.static]),l$f(()=>{n.optionsPropsRef.current.hold=l;},[n.optionsPropsRef,l]),F$1({container:n.optionsRef.current,enabled:n.comboboxState===0,accept(f){return f.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(f){f.setAttribute("role","none");}});let A=i$f(()=>{var f,g;return (g=n.labelId)!=null?g:(f=n.buttonRef.current)==null?void 0:f.id},[n.labelId,n.buttonRef.current]),O=React.useMemo(()=>({open:n.comboboxState===0}),[n]),C={"aria-labelledby":A,role:"listbox","aria-multiselectable":n.mode===1?!0:void 0,id:r,ref:d};return X$3({ourProps:C,theirProps:b,slot:O,defaultTag:Ze$2,features:ze$2,visible:i,name:"Combobox.Options"})}let oo$1="li";function to$1(t,a){var H,p;let e=I$2(),{id:r=`headlessui-combobox-option-${e}`,disabled:l=!1,value:b,...n}=t,d=J$1("Combobox.Option"),o=Z$2("Combobox.Option"),i=d.activeOptionIndex!==null?d.options[d.activeOptionIndex].id===r:!1,A=d.isSelected(b),O=React.useRef(null),C=s$g({disabled:l,value:b,domRef:O,textValue:(p=(H=O.current)==null?void 0:H.textContent)==null?void 0:p.toLowerCase()}),f=y$3(a,O),g=o$d(()=>o.selectOption(r));l$f(()=>o.registerOption(r,C),[C,r]);let m=React.useRef(!d.__demoMode);l$f(()=>{if(!d.__demoMode)return;let y=o$e();return y.requestAnimationFrame(()=>{m.current=!0;}),y.dispose},[]),l$f(()=>{if(d.comboboxState!==0||!i||!m.current||d.activationTrigger===0)return;let y=o$e();return y.requestAnimationFrame(()=>{var E,B;(B=(E=O.current)==null?void 0:E.scrollIntoView)==null||B.call(E,{block:"nearest"});}),y.dispose},[O,i,d.comboboxState,d.activationTrigger,d.activeOptionIndex]);let c=o$d(y=>{if(l)return y.preventDefault();g(),d.mode===0&&o.closeCombobox(),n$b()||requestAnimationFrame(()=>{var E;return (E=d.inputRef.current)==null?void 0:E.focus()});}),D=o$d(()=>{if(l)return o.goToOption(a$e.Nothing);o.goToOption(a$e.Specific,r);}),_=u$4(),w=o$d(y=>_.update(y)),U=o$d(y=>{_.wasMoved(y)&&(l||i||o.goToOption(a$e.Specific,r,0));}),N=o$d(y=>{_.wasMoved(y)&&(l||i&&(d.optionsPropsRef.current.hold||o.goToOption(a$e.Nothing)));}),K=React.useMemo(()=>({active:i,selected:A,disabled:l}),[i,A,l]);return X$3({ourProps:{id:r,ref:f,role:"option",tabIndex:l===!0?void 0:-1,"aria-disabled":l===!0?!0:void 0,"aria-selected":A,disabled:void 0,onClick:c,onFocus:D,onPointerEnter:w,onMouseEnter:w,onPointerMove:U,onMouseMove:U,onPointerLeave:N,onMouseLeave:N},theirProps:n,slot:K,defaultTag:oo$1,name:"Combobox.Option"})}let no$1=D$1(Je$2),ro$1=D$1(qe$3),ao$1=D$1(We$2),lo$1=D$1(Ye$2),io$1=D$1(eo$1),uo=D$1(to$1),qo$1=Object.assign(no$1,{Input:ao$1,Button:ro$1,Label:lo$1,Options:io$1,Option:uo});
|
|
64904
|
+
var we$1=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(we$1||{}),Ue$1=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ue$1||{}),Ne$3=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ne$3||{}),He$2=(n=>(n[n.OpenCombobox=0]="OpenCombobox",n[n.CloseCombobox=1]="CloseCombobox",n[n.GoToOption=2]="GoToOption",n[n.RegisterOption=3]="RegisterOption",n[n.UnregisterOption=4]="UnregisterOption",n[n.RegisterLabel=5]="RegisterLabel",n))(He$2||{});function ae$1(t,a=e=>e){let e=t.activeOptionIndex!==null?t.options[t.activeOptionIndex]:null,r=I$1(a(t.options.slice()),b=>b.dataRef.current.domRef.current),l=e?r.indexOf(e):null;return l===-1&&(l=null),{options:r,activeOptionIndex:l}}let Ge$3={[1](t){var a;return (a=t.dataRef.current)!=null&&a.disabled||t.comboboxState===1?t:{...t,activeOptionIndex:null,comboboxState:1}},[0](t){var e;if((e=t.dataRef.current)!=null&&e.disabled||t.comboboxState===0)return t;let a=t.activeOptionIndex;if(t.dataRef.current){let{isSelected:r}=t.dataRef.current,l=t.options.findIndex(b=>r(b.dataRef.current.value));l!==-1&&(a=l);}return {...t,comboboxState:0,activeOptionIndex:a}},[2](t,a){var l,b,n,d;if((l=t.dataRef.current)!=null&&l.disabled||(b=t.dataRef.current)!=null&&b.optionsRef.current&&!((n=t.dataRef.current)!=null&&n.optionsPropsRef.current.static)&&t.comboboxState===1)return t;let e=ae$1(t);if(e.activeOptionIndex===null){let o=e.options.findIndex(i=>!i.dataRef.current.disabled);o!==-1&&(e.activeOptionIndex=o);}let r=x$2(a,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled});return {...t,...e,activeOptionIndex:r,activationTrigger:(d=a.trigger)!=null?d:1}},[3]:(t,a)=>{var b,n;let e={id:a.id,dataRef:a.dataRef},r=ae$1(t,d=>[...d,e]);t.activeOptionIndex===null&&(b=t.dataRef.current)!=null&&b.isSelected(a.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(e));let l={...t,...r,activationTrigger:1};return (n=t.dataRef.current)!=null&&n.__demoMode&&t.dataRef.current.value===void 0&&(l.activeOptionIndex=0),l},[4]:(t,a)=>{let e=ae$1(t,r=>{let l=r.findIndex(b=>b.id===a.id);return l!==-1&&r.splice(l,1),r});return {...t,...e,activationTrigger:1}},[5]:(t,a)=>({...t,labelId:a.id})},le$1=React.createContext(null);le$1.displayName="ComboboxActionsContext";function Z$2(t){let a=React.useContext(le$1);if(a===null){let e=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,Z$2),e}return a}let ie$2=React.createContext(null);ie$2.displayName="ComboboxDataContext";function J$1(t){let a=React.useContext(ie$2);if(a===null){let e=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,J$1),e}return a}function Xe$2(t,a){return u$6(a.type,Ge$3,t,a)}let je$3=React.Fragment;function Je$2(t,a){let{value:e,defaultValue:r,onChange:l,form:b,name:n,by:d=(u,T)=>u===T,disabled:o=!1,__demoMode:i=!1,nullable:A=!1,multiple:O=!1,...C}=t,[f=O?[]:void 0,g]=T(e,l,r),[m,c]=React.useReducer(Xe$2,{dataRef:React.createRef(),comboboxState:i?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),D=React.useRef(!1),_=React.useRef({static:!1,hold:!1}),w=React.useRef(null),U=React.useRef(null),N=React.useRef(null),K=React.useRef(null),h=o$e(typeof d=="string"?(u,T)=>{let v=d;return (u==null?void 0:u[v])===(T==null?void 0:T[v])}:d),H=React.useCallback(u=>u$6(p.mode,{[1]:()=>f.some(T=>h(T,u)),[0]:()=>h(f,u)}),[f]),p=React.useMemo(()=>({...m,optionsPropsRef:_,labelRef:w,inputRef:U,buttonRef:N,optionsRef:K,value:f,defaultValue:r,disabled:o,mode:O?1:0,get activeOptionIndex(){if(D.current&&m.activeOptionIndex===null&&m.options.length>0){let u=m.options.findIndex(T=>!T.dataRef.current.disabled);if(u!==-1)return u}return m.activeOptionIndex},compare:h,isSelected:H,nullable:A,__demoMode:i}),[f,r,o,O,A,i,m]),y=React.useRef(p.activeOptionIndex!==null?p.options[p.activeOptionIndex]:null);React.useEffect(()=>{let u=p.activeOptionIndex!==null?p.options[p.activeOptionIndex]:null;y.current!==u&&(y.current=u);}),l$f(()=>{m.dataRef.current=p;},[p]),h$2([p.buttonRef,p.inputRef,p.optionsRef],()=>te.closeCombobox(),p.comboboxState===0);let E=React.useMemo(()=>({open:p.comboboxState===0,disabled:o,activeIndex:p.activeOptionIndex,activeOption:p.activeOptionIndex===null?null:p.options[p.activeOptionIndex].dataRef.current.value,value:f}),[p,o,f]),B=o$e(u=>{let T=p.options.find(v=>v.id===u);T&&V(T.dataRef.current.value);}),s=o$e(()=>{if(p.activeOptionIndex!==null){let{dataRef:u,id:T}=p.options[p.activeOptionIndex];V(u.current.value),te.goToOption(a$e.Specific,T);}}),W=o$e(()=>{c({type:0}),D.current=!0;}),L=o$e(()=>{c({type:1}),D.current=!1;}),$=o$e((u,T,v)=>(D.current=!1,u===a$e.Specific?c({type:2,focus:a$e.Specific,id:T,trigger:v}):c({type:2,focus:u,trigger:v}))),P=o$e((u,T)=>(c({type:3,id:u,dataRef:T}),()=>{var v;((v=y.current)==null?void 0:v.id)===u&&(D.current=!0),c({type:4,id:u});})),F=o$e(u=>(c({type:5,id:u}),()=>c({type:5,id:null}))),V=o$e(u=>u$6(p.mode,{[0](){return g==null?void 0:g(u)},[1](){let T=p.value.slice(),v=T.findIndex(q=>h(q,u));return v===-1?T.push(u):T.splice(v,1),g==null?void 0:g(T)}})),te=React.useMemo(()=>({onChange:V,registerOption:P,registerLabel:F,goToOption:$,closeCombobox:L,openCombobox:W,selectActiveOption:s,selectOption:B}),[]),Te=a===null?{}:{ref:a},z=React.useRef(null),me=p$9();return React.useEffect(()=>{z.current&&r!==void 0&&me.addEventListener(z.current,"reset",()=>{g==null||g(r);});},[z,g]),React.createElement(le$1.Provider,{value:te},React.createElement(ie$2.Provider,{value:p},React.createElement(c$e,{value:u$6(p.comboboxState,{[0]:d$f.Open,[1]:d$f.Closed})},n!=null&&f!=null&&e$1({[n]:f}).map(([u,T],v)=>React.createElement(c$f,{features:p$7.Hidden,ref:v===0?q=>{var ue;z.current=(ue=q==null?void 0:q.closest("form"))!=null?ue:null;}:void 0,...R({key:u,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:b,name:u,value:T})})),X$3({ourProps:Te,theirProps:C,slot:E,defaultTag:je$3,name:"Combobox"}))))}let Ke$2="input";function We$3(t,a){var p,y,E,B;let e=I$2(),{id:r=`headlessui-combobox-input-${e}`,onChange:l,displayValue:b,type:n="text",...d}=t,o=J$1("Combobox.Input"),i=Z$2("Combobox.Input"),A=y$3(o.inputRef,a),O=n$a(o.inputRef),C=React.useRef(!1),f=p$9(),g=o$e(()=>{i.onChange(null),o.optionsRef.current&&(o.optionsRef.current.scrollTop=0),i.goToOption(a$e.Nothing);}),m=function(){var s;return typeof b=="function"&&o.value!==void 0?(s=b(o.value))!=null?s:"":typeof o.value=="string"?o.value:""}();m$a(([s,W],[L,$])=>{if(C.current)return;let P=o.inputRef.current;P&&(($===0&&W===1||s!==L)&&(P.value=s),requestAnimationFrame(()=>{if(C.current||!P||(O==null?void 0:O.activeElement)!==P)return;let{selectionStart:F,selectionEnd:V}=P;Math.abs((V!=null?V:0)-(F!=null?F:0))===0&&F===0&&P.setSelectionRange(P.value.length,P.value.length);}));},[m,o.comboboxState,O]),m$a(([s],[W])=>{if(s===0&&W===1){if(C.current)return;let L=o.inputRef.current;if(!L)return;let $=L.value,{selectionStart:P,selectionEnd:F,selectionDirection:V}=L;L.value="",L.value=$,V!==null?L.setSelectionRange(P,F,V):L.setSelectionRange(P,F);}},[o.comboboxState]);let c=React.useRef(!1),D=o$e(()=>{c.current=!0;}),_=o$e(()=>{f.nextFrame(()=>{c.current=!1;});}),w=o$e(s=>{switch(C.current=!0,s.key){case o$b.Enter:if(C.current=!1,o.comboboxState!==0||c.current)return;if(s.preventDefault(),s.stopPropagation(),o.activeOptionIndex===null){i.closeCombobox();return}i.selectActiveOption(),o.mode===0&&i.closeCombobox();break;case o$b.ArrowDown:return C.current=!1,s.preventDefault(),s.stopPropagation(),u$6(o.comboboxState,{[0]:()=>{i.goToOption(a$e.Next);},[1]:()=>{i.openCombobox();}});case o$b.ArrowUp:return C.current=!1,s.preventDefault(),s.stopPropagation(),u$6(o.comboboxState,{[0]:()=>{i.goToOption(a$e.Previous);},[1]:()=>{i.openCombobox(),f.nextFrame(()=>{o.value||i.goToOption(a$e.Last);});}});case o$b.Home:if(s.shiftKey)break;return C.current=!1,s.preventDefault(),s.stopPropagation(),i.goToOption(a$e.First);case o$b.PageUp:return C.current=!1,s.preventDefault(),s.stopPropagation(),i.goToOption(a$e.First);case o$b.End:if(s.shiftKey)break;return C.current=!1,s.preventDefault(),s.stopPropagation(),i.goToOption(a$e.Last);case o$b.PageDown:return C.current=!1,s.preventDefault(),s.stopPropagation(),i.goToOption(a$e.Last);case o$b.Escape:return C.current=!1,o.comboboxState!==0?void 0:(s.preventDefault(),o.optionsRef.current&&!o.optionsPropsRef.current.static&&s.stopPropagation(),o.nullable&&o.mode===0&&o.value===null&&g(),i.closeCombobox());case o$b.Tab:if(C.current=!1,o.comboboxState!==0)return;o.mode===0&&i.selectActiveOption(),i.closeCombobox();break}}),U=o$e(s=>{l==null||l(s),o.nullable&&o.mode===0&&s.target.value===""&&g(),i.openCombobox();}),N=o$e(()=>{C.current=!1;}),K=i$f(()=>{if(o.labelId)return [o.labelId].join(" ")},[o.labelId]),h=React.useMemo(()=>({open:o.comboboxState===0,disabled:o.disabled}),[o]),H={ref:A,id:r,role:"combobox",type:n,"aria-controls":(p=o.optionsRef.current)==null?void 0:p.id,"aria-expanded":o.comboboxState===0,"aria-activedescendant":o.activeOptionIndex===null||(y=o.options[o.activeOptionIndex])==null?void 0:y.id,"aria-labelledby":K,"aria-autocomplete":"list",defaultValue:(B=(E=t.defaultValue)!=null?E:o.defaultValue!==void 0?b==null?void 0:b(o.defaultValue):null)!=null?B:o.defaultValue,disabled:o.disabled,onCompositionStart:D,onCompositionEnd:_,onKeyDown:w,onChange:U,onBlur:N};return X$3({ourProps:H,theirProps:d,slot:h,defaultTag:Ke$2,name:"Combobox.Input"})}let $e$2="button";function qe$2(t,a){var g;let e=J$1("Combobox.Button"),r=Z$2("Combobox.Button"),l=y$3(e.buttonRef,a),b=I$2(),{id:n=`headlessui-combobox-button-${b}`,...d}=t,o=p$9(),i=o$e(m=>{switch(m.key){case o$b.ArrowDown:return m.preventDefault(),m.stopPropagation(),e.comboboxState===1&&r.openCombobox(),o.nextFrame(()=>{var c;return (c=e.inputRef.current)==null?void 0:c.focus({preventScroll:!0})});case o$b.ArrowUp:return m.preventDefault(),m.stopPropagation(),e.comboboxState===1&&(r.openCombobox(),o.nextFrame(()=>{e.value||r.goToOption(a$e.Last);})),o.nextFrame(()=>{var c;return (c=e.inputRef.current)==null?void 0:c.focus({preventScroll:!0})});case o$b.Escape:return e.comboboxState!==0?void 0:(m.preventDefault(),e.optionsRef.current&&!e.optionsPropsRef.current.static&&m.stopPropagation(),r.closeCombobox(),o.nextFrame(()=>{var c;return (c=e.inputRef.current)==null?void 0:c.focus({preventScroll:!0})}));default:return}}),A=o$e(m=>{if(r$c(m.currentTarget))return m.preventDefault();e.comboboxState===0?r.closeCombobox():(m.preventDefault(),r.openCombobox()),o.nextFrame(()=>{var c;return (c=e.inputRef.current)==null?void 0:c.focus({preventScroll:!0})});}),O=i$f(()=>{if(e.labelId)return [e.labelId,n].join(" ")},[e.labelId,n]),C=React.useMemo(()=>({open:e.comboboxState===0,disabled:e.disabled,value:e.value}),[e]),f={ref:l,id:n,type:s$d(t,e.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(g=e.optionsRef.current)==null?void 0:g.id,"aria-expanded":e.comboboxState===0,"aria-labelledby":O,disabled:e.disabled,onClick:A,onKeyDown:i};return X$3({ourProps:f,theirProps:d,slot:C,defaultTag:$e$2,name:"Combobox.Button"})}let Qe$2="label";function Ye$2(t,a){let e=I$2(),{id:r=`headlessui-combobox-label-${e}`,...l}=t,b=J$1("Combobox.Label"),n=Z$2("Combobox.Label"),d=y$3(b.labelRef,a);l$f(()=>n.registerLabel(r),[r]);let o=o$e(()=>{var O;return (O=b.inputRef.current)==null?void 0:O.focus({preventScroll:!0})}),i=React.useMemo(()=>({open:b.comboboxState===0,disabled:b.disabled}),[b]);return X$3({ourProps:{ref:d,id:r,onClick:o},theirProps:l,slot:i,defaultTag:Qe$2,name:"Combobox.Label"})}let Ze$2="ul",ze$2=S$2.RenderStrategy|S$2.Static;function eo(t,a){let e=I$2(),{id:r=`headlessui-combobox-options-${e}`,hold:l=!1,...b}=t,n=J$1("Combobox.Options"),d=y$3(n.optionsRef,a),o=C$2(),i=(()=>o!==null?(o&d$f.Open)===d$f.Open:n.comboboxState===0)();l$f(()=>{var f;n.optionsPropsRef.current.static=(f=t.static)!=null?f:!1;},[n.optionsPropsRef,t.static]),l$f(()=>{n.optionsPropsRef.current.hold=l;},[n.optionsPropsRef,l]),F$1({container:n.optionsRef.current,enabled:n.comboboxState===0,accept(f){return f.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(f){f.setAttribute("role","none");}});let A=i$f(()=>{var f,g;return (g=n.labelId)!=null?g:(f=n.buttonRef.current)==null?void 0:f.id},[n.labelId,n.buttonRef.current]),O=React.useMemo(()=>({open:n.comboboxState===0}),[n]),C={"aria-labelledby":A,role:"listbox","aria-multiselectable":n.mode===1?!0:void 0,id:r,ref:d};return X$3({ourProps:C,theirProps:b,slot:O,defaultTag:Ze$2,features:ze$2,visible:i,name:"Combobox.Options"})}let oo="li";function to(t,a){var H,p;let e=I$2(),{id:r=`headlessui-combobox-option-${e}`,disabled:l=!1,value:b,...n}=t,d=J$1("Combobox.Option"),o=Z$2("Combobox.Option"),i=d.activeOptionIndex!==null?d.options[d.activeOptionIndex].id===r:!1,A=d.isSelected(b),O=React.useRef(null),C=s$g({disabled:l,value:b,domRef:O,textValue:(p=(H=O.current)==null?void 0:H.textContent)==null?void 0:p.toLowerCase()}),f=y$3(a,O),g=o$e(()=>o.selectOption(r));l$f(()=>o.registerOption(r,C),[C,r]);let m=React.useRef(!d.__demoMode);l$f(()=>{if(!d.__demoMode)return;let y=o$f();return y.requestAnimationFrame(()=>{m.current=!0;}),y.dispose},[]),l$f(()=>{if(d.comboboxState!==0||!i||!m.current||d.activationTrigger===0)return;let y=o$f();return y.requestAnimationFrame(()=>{var E,B;(B=(E=O.current)==null?void 0:E.scrollIntoView)==null||B.call(E,{block:"nearest"});}),y.dispose},[O,i,d.comboboxState,d.activationTrigger,d.activeOptionIndex]);let c=o$e(y=>{if(l)return y.preventDefault();g(),d.mode===0&&o.closeCombobox(),n$b()||requestAnimationFrame(()=>{var E;return (E=d.inputRef.current)==null?void 0:E.focus()});}),D=o$e(()=>{if(l)return o.goToOption(a$e.Nothing);o.goToOption(a$e.Specific,r);}),_=u$4(),w=o$e(y=>_.update(y)),U=o$e(y=>{_.wasMoved(y)&&(l||i||o.goToOption(a$e.Specific,r,0));}),N=o$e(y=>{_.wasMoved(y)&&(l||i&&(d.optionsPropsRef.current.hold||o.goToOption(a$e.Nothing)));}),K=React.useMemo(()=>({active:i,selected:A,disabled:l}),[i,A,l]);return X$3({ourProps:{id:r,ref:f,role:"option",tabIndex:l===!0?void 0:-1,"aria-disabled":l===!0?!0:void 0,"aria-selected":A,disabled:void 0,onClick:c,onFocus:D,onPointerEnter:w,onMouseEnter:w,onPointerMove:U,onMouseMove:U,onPointerLeave:N,onMouseLeave:N},theirProps:n,slot:K,defaultTag:oo,name:"Combobox.Option"})}let no$1=D$1(Je$2),ro=D$1(qe$2),ao=D$1(We$3),lo$1=D$1(Ye$2),io$1=D$1(eo),uo$1=D$1(to),qo=Object.assign(no$1,{Input:ao,Button:ro,Label:lo$1,Options:io$1,Option:uo$1});
|
|
64905
64905
|
|
|
64906
64906
|
var s$b=(r=>(r[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r))(s$b||{});function n$9(){let e=React.useRef(0);return s$e("keydown",o=>{o.key==="Tab"&&(e.current=o.shiftKey?1:0);},!0),e}
|
|
64907
64907
|
|
|
@@ -64909,37 +64909,37 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
64909
64909
|
|
|
64910
64910
|
function E(n,e,a,t){let i=s$g(a);React.useEffect(()=>{n=n!=null?n:window;function r(o){i.current(o);}return n.addEventListener(e,r,t),()=>n.removeEventListener(e,r,t)},[n,e,t]);}
|
|
64911
64911
|
|
|
64912
|
-
function c$d(t){let r=o$
|
|
64912
|
+
function c$d(t){let r=o$e(t),e=React.useRef(!1);React.useEffect(()=>(e.current=!1,()=>{e.current=!0,t$9(()=>{e.current&&r();});}),[r]);}
|
|
64913
64913
|
|
|
64914
64914
|
let e=React.createContext(!1);function l$d(){return React.useContext(e)}
|
|
64915
64915
|
|
|
64916
|
-
function F(p){let l=l$d(),n=React.useContext(v$3),e=n$a(p),[a,o]=React.useState(()=>{if(!l&&n!==null||s$h.isServer)return null;let t=e==null?void 0:e.getElementById("headlessui-portal-root");if(t)return t;if(e===null)return null;let r=e.createElement("div");return r.setAttribute("id","headlessui-portal-root"),e.body.appendChild(r)});return React.useEffect(()=>{a!==null&&(e!=null&&e.body.contains(a)||e==null||e.body.appendChild(a));},[a,e]),React.useEffect(()=>{l||n!==null&&o(n.current);},[n,o,l]),a}let U$1=React.Fragment;function N
|
|
64916
|
+
function F(p){let l=l$d(),n=React.useContext(v$3),e=n$a(p),[a,o]=React.useState(()=>{if(!l&&n!==null||s$h.isServer)return null;let t=e==null?void 0:e.getElementById("headlessui-portal-root");if(t)return t;if(e===null)return null;let r=e.createElement("div");return r.setAttribute("id","headlessui-portal-root"),e.body.appendChild(r)});return React.useEffect(()=>{a!==null&&(e!=null&&e.body.contains(a)||e==null||e.body.appendChild(a));},[a,e]),React.useEffect(()=>{l||n!==null&&o(n.current);},[n,o,l]),a}let U$1=React.Fragment;function N(p,l){let n=p,e=React.useRef(null),a=y$3(T$1(u=>{e.current=u;}),l),o=n$a(e),t=F(e),[r]=React.useState(()=>{var u;return s$h.isServer?null:(u=o==null?void 0:o.createElement("div"))!=null?u:null}),i=React.useContext(f$5),C=l$e();return l$f(()=>{!t||!r||t.contains(r)||(r.setAttribute("data-headlessui-portal",""),t.appendChild(r));},[t,r]),l$f(()=>{if(r&&i)return i.register(r)},[i,r]),c$d(()=>{var u;!t||!r||(r instanceof Node&&t.contains(r)&&t.removeChild(r),t.childNodes.length<=0&&((u=t.parentElement)==null||u.removeChild(t)));}),C?!t||!r?null:ReactDOM.createPortal(X$3({ourProps:{ref:a},theirProps:n,defaultTag:U$1,name:"Portal"}),r):null}let S$1=React.Fragment,v$3=React.createContext(null);function j$1(p,l){let{target:n,...e}=p,o={ref:y$3(l)};return React.createElement(v$3.Provider,{value:n},X$3({ourProps:o,theirProps:e,defaultTag:S$1,name:"Popover.Group"}))}let f$5=React.createContext(null);function ae(){let p=React.useContext(f$5),l=React.useRef([]),n=o$e(o=>(l.current.push(o),p&&p.register(o),()=>e(o))),e=o$e(o=>{let t=l.current.indexOf(o);t!==-1&&l.current.splice(t,1),p&&p.unregister(o);}),a=React.useMemo(()=>({register:n,unregister:e,portals:l}),[n,e,l]);return [l,React.useMemo(()=>function({children:t}){return React.createElement(f$5.Provider,{value:a},t)},[a])]}let D=D$1(N),I=D$1(j$1);Object.assign(D,{Group:I});
|
|
64917
64917
|
|
|
64918
|
-
let d$e=React.createContext(null);function f$4(){let r=React.useContext(d$e);if(r===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,f$4),t}return r}function M$3(){let[r,t]=React.useState([]);return [r.length>0?r.join(" "):void 0,React.useMemo(()=>function(e){let i=o$
|
|
64918
|
+
let d$e=React.createContext(null);function f$4(){let r=React.useContext(d$e);if(r===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,f$4),t}return r}function M$3(){let[r,t]=React.useState([]);return [r.length>0?r.join(" "):void 0,React.useMemo(()=>function(e){let i=o$e(s=>(t(o=>[...o,s]),()=>t(o=>{let p=o.slice(),c=p.indexOf(s);return c!==-1&&p.splice(c,1),p}))),n=React.useMemo(()=>({register:i,slot:e.slot,name:e.name,props:e.props}),[i,e.slot,e.name,e.props]);return React.createElement(d$e.Provider,{value:n},e.children)},[t])]}let S="p";function h$1(r,t){let a=I$2(),{id:e=`headlessui-description-${a}`,...i}=r,n=f$4(),s=y$3(t);l$f(()=>n.register(e),[e,n.register]);let o={ref:s,...n.props,id:e};return X$3({ourProps:o,theirProps:i,slot:n.slot||{},defaultTag:S,name:n.name||"Description"})}let y$2=D$1(h$1),b$6=Object.assign(y$2,{});
|
|
64919
64919
|
|
|
64920
|
-
function j({defaultContainers:t=[],portals:r,mainTreeNodeRef:u}={}){var c;let o=React.useRef((c=u==null?void 0:u.current)!=null?c:null),l=n$a(o),f=o$
|
|
64920
|
+
function j({defaultContainers:t=[],portals:r,mainTreeNodeRef:u}={}){var c;let o=React.useRef((c=u==null?void 0:u.current)!=null?c:null),l=n$a(o),f=o$e(()=>{var i;let n=[];for(let e of t)e!==null&&(e instanceof HTMLElement?n.push(e):"current"in e&&e.current instanceof HTMLElement&&n.push(e.current));if(r!=null&&r.current)for(let e of r.current)n.push(e);for(let e of (i=l==null?void 0:l.querySelectorAll("html > *, body > *"))!=null?i:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&e.id!=="headlessui-portal-root"&&(e.contains(o.current)||n.some(T=>e.contains(T))||n.push(e));return n});return {resolveContainers:f,contains:o$e(n=>f().some(i=>i.contains(n))),mainTreeNodeRef:o,MainTreeNode:React.useMemo(()=>function(){return u!=null?null:React.createElement(c$f,{features:p$7.Hidden,ref:o})},[o,u])}}function y$1(){let t=React.useRef(null);return {mainTreeNodeRef:t,MainTreeNode:React.useMemo(()=>function(){return React.createElement(c$f,{features:p$7.Hidden,ref:t})},[t])}}
|
|
64921
64921
|
|
|
64922
64922
|
var t$5;let a$c=(t$5=React.startTransition)!=null?t$5:function(i){i();};
|
|
64923
64923
|
|
|
64924
|
-
var q$2=(o=>(o[o.Open=0]="Open",o[o.Closed=1]="Closed",o))(q$2||{}),z$1=(t=>(t[t.ToggleDisclosure=0]="ToggleDisclosure",t[t.CloseDisclosure=1]="CloseDisclosure",t[t.SetButtonId=2]="SetButtonId",t[t.SetPanelId=3]="SetPanelId",t[t.LinkPanel=4]="LinkPanel",t[t.UnlinkPanel=5]="UnlinkPanel",t))(z$1||{});let Q={[0]:e=>({...e,disclosureState:u$6(e.disclosureState,{[0]:1,[1]:0})}),[1]:e=>e.disclosureState===1?e:{...e,disclosureState:1},[4](e){return e.linkedPanel===!0?e:{...e,linkedPanel:!0}},[5](e){return e.linkedPanel===!1?e:{...e,linkedPanel:!1}},[2](e,n){return e.buttonId===n.buttonId?e:{...e,buttonId:n.buttonId}},[3](e,n){return e.panelId===n.panelId?e:{...e,panelId:n.panelId}}},k$2=React.createContext(null);k$2.displayName="DisclosureContext";function M$2(e){let n=React.useContext(k$2);if(n===null){let o=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,M$2),o}return n}let v$2=React.createContext(null);v$2.displayName="DisclosureAPIContext";function w$2(e){let n=React.useContext(v$2);if(n===null){let o=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,w$2),o}return n}let H$1=React.createContext(null);H$1.displayName="DisclosurePanelContext";function V(){return React.useContext(H$1)}function Y$1(e,n){return u$6(n.type,Q,e,n)}let Z$1=React.Fragment;function ee$1(e,n){let{defaultOpen:o=!1,...u}=e,T=React.useRef(null),l=y$3(n,T$1(a=>{T.current=a;},e.as===void 0||e.as===React.Fragment)),t=React.useRef(null),f=React.useRef(null),s=React.useReducer(Y$1,{disclosureState:o?0:1,linkedPanel:!1,buttonRef:f,panelRef:t,buttonId:null,panelId:null}),[{disclosureState:i,buttonId:c},D]=s,d=o$
|
|
64924
|
+
var q$2=(o=>(o[o.Open=0]="Open",o[o.Closed=1]="Closed",o))(q$2||{}),z$1=(t=>(t[t.ToggleDisclosure=0]="ToggleDisclosure",t[t.CloseDisclosure=1]="CloseDisclosure",t[t.SetButtonId=2]="SetButtonId",t[t.SetPanelId=3]="SetPanelId",t[t.LinkPanel=4]="LinkPanel",t[t.UnlinkPanel=5]="UnlinkPanel",t))(z$1||{});let Q={[0]:e=>({...e,disclosureState:u$6(e.disclosureState,{[0]:1,[1]:0})}),[1]:e=>e.disclosureState===1?e:{...e,disclosureState:1},[4](e){return e.linkedPanel===!0?e:{...e,linkedPanel:!0}},[5](e){return e.linkedPanel===!1?e:{...e,linkedPanel:!1}},[2](e,n){return e.buttonId===n.buttonId?e:{...e,buttonId:n.buttonId}},[3](e,n){return e.panelId===n.panelId?e:{...e,panelId:n.panelId}}},k$2=React.createContext(null);k$2.displayName="DisclosureContext";function M$2(e){let n=React.useContext(k$2);if(n===null){let o=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,M$2),o}return n}let v$2=React.createContext(null);v$2.displayName="DisclosureAPIContext";function w$2(e){let n=React.useContext(v$2);if(n===null){let o=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,w$2),o}return n}let H$1=React.createContext(null);H$1.displayName="DisclosurePanelContext";function V(){return React.useContext(H$1)}function Y$1(e,n){return u$6(n.type,Q,e,n)}let Z$1=React.Fragment;function ee$1(e,n){let{defaultOpen:o=!1,...u}=e,T=React.useRef(null),l=y$3(n,T$1(a=>{T.current=a;},e.as===void 0||e.as===React.Fragment)),t=React.useRef(null),f=React.useRef(null),s=React.useReducer(Y$1,{disclosureState:o?0:1,linkedPanel:!1,buttonRef:f,panelRef:t,buttonId:null,panelId:null}),[{disclosureState:i,buttonId:c},D]=s,d=o$e(a=>{D({type:1});let r=e$2(T);if(!r||!c)return;let p=(()=>a?a instanceof HTMLElement?a:a.current instanceof HTMLElement?a.current:r.getElementById(c):r.getElementById(c))();p==null||p.focus();}),P=React.useMemo(()=>({close:d}),[d]),b=React.useMemo(()=>({open:i===0,close:d}),[i,d]),y={ref:l};return React.createElement(k$2.Provider,{value:s},React.createElement(v$2.Provider,{value:P},React.createElement(c$e,{value:u$6(i,{[0]:d$f.Open,[1]:d$f.Closed})},X$3({ourProps:y,theirProps:u,slot:b,defaultTag:Z$1,name:"Disclosure"}))))}let te$1="button";function ne$1(e,n){let o=I$2(),{id:u=`headlessui-disclosure-button-${o}`,...T}=e,[l,t]=M$2("Disclosure.Button"),f=V(),s=f===null?!1:f===l.panelId,i=React.useRef(null),c=y$3(i,n,s?null:l.buttonRef);React.useEffect(()=>{if(!s)return t({type:2,buttonId:u}),()=>{t({type:2,buttonId:null});}},[u,t,s]);let D=o$e(r=>{var p;if(s){if(l.disclosureState===1)return;switch(r.key){case o$b.Space:case o$b.Enter:r.preventDefault(),r.stopPropagation(),t({type:0}),(p=l.buttonRef.current)==null||p.focus();break}}else switch(r.key){case o$b.Space:case o$b.Enter:r.preventDefault(),r.stopPropagation(),t({type:0});break}}),d=o$e(r=>{switch(r.key){case o$b.Space:r.preventDefault();break}}),P=o$e(r=>{var p;r$c(r.currentTarget)||e.disabled||(s?(t({type:0}),(p=l.buttonRef.current)==null||p.focus()):t({type:0}));}),b=React.useMemo(()=>({open:l.disclosureState===0}),[l]),y=s$d(e,i),a=s?{ref:c,type:y,onKeyDown:D,onClick:P}:{ref:c,id:u,type:y,"aria-expanded":l.disclosureState===0,"aria-controls":l.linkedPanel?l.panelId:void 0,onKeyDown:D,onKeyUp:d,onClick:P};return X$3({ourProps:a,theirProps:T,slot:b,defaultTag:te$1,name:"Disclosure.Button"})}let le="div",oe$1=S$2.RenderStrategy|S$2.Static;function re$2(e,n){let o=I$2(),{id:u=`headlessui-disclosure-panel-${o}`,...T}=e,[l,t]=M$2("Disclosure.Panel"),{close:f}=w$2("Disclosure.Panel"),s=y$3(n,l.panelRef,P=>{a$c(()=>t({type:P?4:5}));});React.useEffect(()=>(t({type:3,panelId:u}),()=>{t({type:3,panelId:null});}),[u,t]);let i=C$2(),c=(()=>i!==null?(i&d$f.Open)===d$f.Open:l.disclosureState===0)(),D=React.useMemo(()=>({open:l.disclosureState===0,close:f}),[l,f]),d={ref:s,id:u};return React.createElement(H$1.Provider,{value:l.panelId},X$3({ourProps:d,theirProps:T,slot:D,defaultTag:le,features:oe$1,visible:c,name:"Disclosure.Panel"}))}let se=D$1(ee$1),ue$2=D$1(ne$1),ie$1=D$1(re$2),ve$1=Object.assign(se,{Button:ue$2,Panel:ie$1});
|
|
64925
64925
|
|
|
64926
|
-
let a$b=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function o$
|
|
64926
|
+
let a$b=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function o$a(e){var r,i;let n=(r=e.innerText)!=null?r:"",t=e.cloneNode(!0);if(!(t instanceof HTMLElement))return n;let u=!1;for(let f of t.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))f.remove(),u=!0;let l=u?(i=t.innerText)!=null?i:"":n;return a$b.test(l)&&(l=l.replace(a$b,"")),l}function g$6(e){let n=e.getAttribute("aria-label");if(typeof n=="string")return n.trim();let t=e.getAttribute("aria-labelledby");if(t){let u=t.split(" ").map(l=>{let r=document.getElementById(l);if(r){let i=r.getAttribute("aria-label");return typeof i=="string"?i.trim():o$a(r).trim()}return null}).filter(Boolean);if(u.length>0)return u.join(", ")}return o$a(e).trim()}
|
|
64927
64927
|
|
|
64928
|
-
function b$
|
|
64928
|
+
function b$5(c){let t=React.useRef(""),r=React.useRef("");return o$e(()=>{let e=c.current;if(!e)return "";let u=e.innerText;if(t.current===u)return r.current;let n=g$6(e).trim().toLowerCase();return t.current=u,r.current=n,n})}
|
|
64929
64929
|
|
|
64930
|
-
var Be=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(Be||{}),He$1=(n=>(n[n.Single=0]="Single",n[n.Multi=1]="Multi",n))(He$1||{}),Ge$2=(n=>(n[n.Pointer=0]="Pointer",n[n.Other=1]="Other",n))(Ge$2||{}),Ne$2=(i=>(i[i.OpenListbox=0]="OpenListbox",i[i.CloseListbox=1]="CloseListbox",i[i.GoToOption=2]="GoToOption",i[i.Search=3]="Search",i[i.ClearSearch=4]="ClearSearch",i[i.RegisterOption=5]="RegisterOption",i[i.UnregisterOption=6]="UnregisterOption",i[i.RegisterLabel=7]="RegisterLabel",i))(Ne$2||{});function z(e,a=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=I$1(a(e.options.slice()),t=>t.dataRef.current.domRef.current),l=n?r.indexOf(n):null;return l===-1&&(l=null),{options:r,activeOptionIndex:l}}let je$1={[1](e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},[0](e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let a=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(l=>n(l.dataRef.current.value));return r!==-1&&(a=r),{...e,listboxState:0,activeOptionIndex:a}},[2](e,a){var l;if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=z(e),r=x$1(a,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:t=>t.id,resolveDisabled:t=>t.dataRef.current.disabled});return {...e,...n,searchQuery:"",activeOptionIndex:r,activationTrigger:(l=a.trigger)!=null?l:1}},[3]:(e,a)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,l=e.searchQuery+a.value.toLowerCase(),p=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(i=>{var b;return !i.dataRef.current.disabled&&((b=i.dataRef.current.textValue)==null?void 0:b.startsWith(l))}),u=p?e.options.indexOf(p):-1;return u===-1||u===e.activeOptionIndex?{...e,searchQuery:l}:{...e,searchQuery:l,activeOptionIndex:u,activationTrigger:1}},[4](e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},[5]:(e,a)=>{let n={id:a.id,dataRef:a.dataRef},r=z(e,l=>[...l,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(a.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},[6]:(e,a)=>{let n=z(e,r=>{let l=r.findIndex(t=>t.id===a.id);return l!==-1&&r.splice(l,1),r});return {...e,...n,activationTrigger:1}},[7]:(e,a)=>({...e,labelId:a.id})},J=React.createContext(null);J.displayName="ListboxActionsContext";function _(e){let a=React.useContext(J);if(a===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,_),n}return a}let q$1=React.createContext(null);q$1.displayName="ListboxDataContext";function U(e){let a=React.useContext(q$1);if(a===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,U),n}return a}function Ve$1(e,a){return u$6(a.type,je$1,e,a)}let Ke$1=React.Fragment;function Qe$1(e,a){let{value:n,defaultValue:r,form:l,name:t,onChange:p,by:u=(s,c)=>s===c,disabled:i=!1,horizontal:b=!1,multiple:R=!1,...m}=e;const P=b?"horizontal":"vertical";let S=y$3(a),[L=R?[]:void 0,y]=T(n,p,r),[T$1,o]=React.useReducer(Ve$1,{dataRef:React.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),x=React.useRef({static:!1,hold:!1}),E=React.useRef(null),B=React.useRef(null),W=React.useRef(null),C=o$d(typeof u=="string"?(s,c)=>{let O=u;return (s==null?void 0:s[O])===(c==null?void 0:c[O])}:u),A=React.useCallback(s=>u$6(d.mode,{[1]:()=>L.some(c=>C(c,s)),[0]:()=>C(L,s)}),[L]),d=React.useMemo(()=>({...T$1,value:L,disabled:i,mode:R?1:0,orientation:P,compare:C,isSelected:A,optionsPropsRef:x,labelRef:E,buttonRef:B,optionsRef:W}),[L,i,R,T$1]);l$f(()=>{T$1.dataRef.current=d;},[d]),h$2([d.buttonRef,d.optionsRef],(s,c)=>{var O;o({type:1}),h$3(c,T$2.Loose)||(s.preventDefault(),(O=d.buttonRef.current)==null||O.focus());},d.listboxState===0);let H=React.useMemo(()=>({open:d.listboxState===0,disabled:i,value:L}),[d,i,L]),ie=o$d(s=>{let c=d.options.find(O=>O.id===s);c&&X(c.dataRef.current.value);}),re=o$d(()=>{if(d.activeOptionIndex!==null){let{dataRef:s,id:c}=d.options[d.activeOptionIndex];X(s.current.value),o({type:2,focus:a$e.Specific,id:c});}}),ae=o$d(()=>o({type:0})),le=o$d(()=>o({type:1})),se=o$d((s,c,O)=>s===a$e.Specific?o({type:2,focus:a$e.Specific,id:c,trigger:O}):o({type:2,focus:s,trigger:O})),pe=o$d((s,c)=>(o({type:5,id:s,dataRef:c}),()=>o({type:6,id:s}))),ue=o$d(s=>(o({type:7,id:s}),()=>o({type:7,id:null}))),X=o$d(s=>u$6(d.mode,{[0](){return y==null?void 0:y(s)},[1](){let c=d.value.slice(),O=c.findIndex(F=>C(F,s));return O===-1?c.push(s):c.splice(O,1),y==null?void 0:y(c)}})),de=o$d(s=>o({type:3,value:s})),ce=o$d(()=>o({type:4})),fe=React.useMemo(()=>({onChange:X,registerOption:pe,registerLabel:ue,goToOption:se,closeListbox:le,openListbox:ae,selectActiveOption:re,selectOption:ie,search:de,clearSearch:ce}),[]),Te={ref:S},G=React.useRef(null),be=p$9();return React.useEffect(()=>{G.current&&r!==void 0&&be.addEventListener(G.current,"reset",()=>{y==null||y(r);});},[G,y]),React.createElement(J.Provider,{value:fe},React.createElement(q$1.Provider,{value:d},React.createElement(c$e,{value:u$6(d.listboxState,{[0]:d$f.Open,[1]:d$f.Closed})},t!=null&&L!=null&&e$1({[t]:L}).map(([s,c],O)=>React.createElement(c$f,{features:p$7.Hidden,ref:O===0?F=>{var Y;G.current=(Y=F==null?void 0:F.closest("form"))!=null?Y:null;}:void 0,...R$1({key:s,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:l,name:s,value:c})})),X$3({ourProps:Te,theirProps:m,slot:H,defaultTag:Ke$1,name:"Listbox"}))))}let We$1="button";function Xe$1(e,a){var y;let n=I$2(),{id:r=`headlessui-listbox-button-${n}`,...l}=e,t=U("Listbox.Button"),p=_("Listbox.Button"),u=y$3(t.buttonRef,a),i=p$9(),b=o$d(T=>{switch(T.key){case o$a.Space:case o$a.Enter:case o$a.ArrowDown:T.preventDefault(),p.openListbox(),i.nextFrame(()=>{t.value||p.goToOption(a$e.First);});break;case o$a.ArrowUp:T.preventDefault(),p.openListbox(),i.nextFrame(()=>{t.value||p.goToOption(a$e.Last);});break}}),R=o$d(T=>{switch(T.key){case o$a.Space:T.preventDefault();break}}),m=o$d(T=>{if(r$d(T.currentTarget))return T.preventDefault();t.listboxState===0?(p.closeListbox(),i.nextFrame(()=>{var o;return (o=t.buttonRef.current)==null?void 0:o.focus({preventScroll:!0})})):(T.preventDefault(),p.openListbox());}),P=i$f(()=>{if(t.labelId)return [t.labelId,r].join(" ")},[t.labelId,r]),S=React.useMemo(()=>({open:t.listboxState===0,disabled:t.disabled,value:t.value}),[t]),L={ref:u,id:r,type:s$d(e,t.buttonRef),"aria-haspopup":"listbox","aria-controls":(y=t.optionsRef.current)==null?void 0:y.id,"aria-expanded":t.listboxState===0,"aria-labelledby":P,disabled:t.disabled,onKeyDown:b,onKeyUp:R,onClick:m};return X$3({ourProps:L,theirProps:l,slot:S,defaultTag:We$1,name:"Listbox.Button"})}let $e$1="label";function ze$1(e,a){let n=I$2(),{id:r=`headlessui-listbox-label-${n}`,...l}=e,t=U("Listbox.Label"),p=_("Listbox.Label"),u=y$3(t.labelRef,a);l$f(()=>p.registerLabel(r),[r]);let i=o$d(()=>{var m;return (m=t.buttonRef.current)==null?void 0:m.focus({preventScroll:!0})}),b=React.useMemo(()=>({open:t.listboxState===0,disabled:t.disabled}),[t]);return X$3({ourProps:{ref:u,id:r,onClick:i},theirProps:l,slot:b,defaultTag:$e$1,name:"Listbox.Label"})}let Je$1="ul",qe$2=S$2.RenderStrategy|S$2.Static;function Ye$1(e,a){var T;let n=I$2(),{id:r=`headlessui-listbox-options-${n}`,...l}=e,t=U("Listbox.Options"),p=_("Listbox.Options"),u=y$3(t.optionsRef,a),i=p$9(),b=p$9(),R=C$2(),m=(()=>R!==null?(R&d$f.Open)===d$f.Open:t.listboxState===0)();React.useEffect(()=>{var x;let o=t.optionsRef.current;o&&t.listboxState===0&&o!==((x=e$2(o))==null?void 0:x.activeElement)&&o.focus({preventScroll:!0});},[t.listboxState,t.optionsRef]);let P=o$d(o=>{switch(b.dispose(),o.key){case o$a.Space:if(t.searchQuery!=="")return o.preventDefault(),o.stopPropagation(),p.search(o.key);case o$a.Enter:if(o.preventDefault(),o.stopPropagation(),t.activeOptionIndex!==null){let{dataRef:x}=t.options[t.activeOptionIndex];p.onChange(x.current.value);}t.mode===0&&(p.closeListbox(),o$e().nextFrame(()=>{var x;return (x=t.buttonRef.current)==null?void 0:x.focus({preventScroll:!0})}));break;case u$6(t.orientation,{vertical:o$a.ArrowDown,horizontal:o$a.ArrowRight}):return o.preventDefault(),o.stopPropagation(),p.goToOption(a$e.Next);case u$6(t.orientation,{vertical:o$a.ArrowUp,horizontal:o$a.ArrowLeft}):return o.preventDefault(),o.stopPropagation(),p.goToOption(a$e.Previous);case o$a.Home:case o$a.PageUp:return o.preventDefault(),o.stopPropagation(),p.goToOption(a$e.First);case o$a.End:case o$a.PageDown:return o.preventDefault(),o.stopPropagation(),p.goToOption(a$e.Last);case o$a.Escape:return o.preventDefault(),o.stopPropagation(),p.closeListbox(),i.nextFrame(()=>{var x;return (x=t.buttonRef.current)==null?void 0:x.focus({preventScroll:!0})});case o$a.Tab:o.preventDefault(),o.stopPropagation();break;default:o.key.length===1&&(p.search(o.key),b.setTimeout(()=>p.clearSearch(),350));break}}),S=i$f(()=>{var o,x,E;return (E=(o=t.labelRef.current)==null?void 0:o.id)!=null?E:(x=t.buttonRef.current)==null?void 0:x.id},[t.labelRef.current,t.buttonRef.current]),L=React.useMemo(()=>({open:t.listboxState===0}),[t]),y={"aria-activedescendant":t.activeOptionIndex===null||(T=t.options[t.activeOptionIndex])==null?void 0:T.id,"aria-multiselectable":t.mode===1?!0:void 0,"aria-labelledby":S,"aria-orientation":t.orientation,id:r,onKeyDown:P,role:"listbox",tabIndex:0,ref:u};return X$3({ourProps:y,theirProps:l,slot:L,defaultTag:Je$1,features:qe$2,visible:m,name:"Listbox.Options"})}let Ze$1="li";function et$1(e,a){let n=I$2(),{id:r=`headlessui-listbox-option-${n}`,disabled:l=!1,value:t,...p}=e,u=U("Listbox.Option"),i=_("Listbox.Option"),b=u.activeOptionIndex!==null?u.options[u.activeOptionIndex].id===r:!1,R=u.isSelected(t),m=React.useRef(null),P=b$4(m),S=s$g({disabled:l,value:t,domRef:m,get textValue(){return P()}}),L=y$3(a,m);l$f(()=>{if(u.listboxState!==0||!b||u.activationTrigger===0)return;let A=o$e();return A.requestAnimationFrame(()=>{var d,H;(H=(d=m.current)==null?void 0:d.scrollIntoView)==null||H.call(d,{block:"nearest"});}),A.dispose},[m,b,u.listboxState,u.activationTrigger,u.activeOptionIndex]),l$f(()=>i.registerOption(r,S),[S,r]);let y=o$d(A=>{if(l)return A.preventDefault();i.onChange(t),u.mode===0&&(i.closeListbox(),o$e().nextFrame(()=>{var d;return (d=u.buttonRef.current)==null?void 0:d.focus({preventScroll:!0})}));}),T=o$d(()=>{if(l)return i.goToOption(a$e.Nothing);i.goToOption(a$e.Specific,r);}),o=u$4(),x=o$d(A=>o.update(A)),E=o$d(A=>{o.wasMoved(A)&&(l||b||i.goToOption(a$e.Specific,r,0));}),B=o$d(A=>{o.wasMoved(A)&&(l||b&&i.goToOption(a$e.Nothing));}),W=React.useMemo(()=>({active:b,selected:R,disabled:l}),[b,R,l]);return X$3({ourProps:{id:r,ref:L,role:"option",tabIndex:l===!0?void 0:-1,"aria-disabled":l===!0?!0:void 0,"aria-selected":R,disabled:void 0,onClick:y,onFocus:T,onPointerEnter:x,onMouseEnter:x,onPointerMove:E,onMouseMove:E,onPointerLeave:B,onMouseLeave:B},theirProps:p,slot:W,defaultTag:Ze$1,name:"Listbox.Option"})}let tt$1=D$1(Qe$1),ot$1=D$1(Xe$1),nt=D$1(ze$1),it=D$1(Ye$1),rt$1=D$1(et$1),Nt=Object.assign(tt$1,{Button:ot$1,Label:nt,Options:it,Option:rt$1});
|
|
64930
|
+
var Be=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(Be||{}),He$1=(n=>(n[n.Single=0]="Single",n[n.Multi=1]="Multi",n))(He$1||{}),Ge$2=(n=>(n[n.Pointer=0]="Pointer",n[n.Other=1]="Other",n))(Ge$2||{}),Ne$2=(i=>(i[i.OpenListbox=0]="OpenListbox",i[i.CloseListbox=1]="CloseListbox",i[i.GoToOption=2]="GoToOption",i[i.Search=3]="Search",i[i.ClearSearch=4]="ClearSearch",i[i.RegisterOption=5]="RegisterOption",i[i.UnregisterOption=6]="UnregisterOption",i[i.RegisterLabel=7]="RegisterLabel",i))(Ne$2||{});function z(e,a=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=I$1(a(e.options.slice()),t=>t.dataRef.current.domRef.current),l=n?r.indexOf(n):null;return l===-1&&(l=null),{options:r,activeOptionIndex:l}}let je$2={[1](e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},[0](e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let a=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(l=>n(l.dataRef.current.value));return r!==-1&&(a=r),{...e,listboxState:0,activeOptionIndex:a}},[2](e,a){var l;if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=z(e),r=x$2(a,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:t=>t.id,resolveDisabled:t=>t.dataRef.current.disabled});return {...e,...n,searchQuery:"",activeOptionIndex:r,activationTrigger:(l=a.trigger)!=null?l:1}},[3]:(e,a)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,l=e.searchQuery+a.value.toLowerCase(),p=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(i=>{var b;return !i.dataRef.current.disabled&&((b=i.dataRef.current.textValue)==null?void 0:b.startsWith(l))}),u=p?e.options.indexOf(p):-1;return u===-1||u===e.activeOptionIndex?{...e,searchQuery:l}:{...e,searchQuery:l,activeOptionIndex:u,activationTrigger:1}},[4](e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},[5]:(e,a)=>{let n={id:a.id,dataRef:a.dataRef},r=z(e,l=>[...l,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(a.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},[6]:(e,a)=>{let n=z(e,r=>{let l=r.findIndex(t=>t.id===a.id);return l!==-1&&r.splice(l,1),r});return {...e,...n,activationTrigger:1}},[7]:(e,a)=>({...e,labelId:a.id})},J=React.createContext(null);J.displayName="ListboxActionsContext";function _$1(e){let a=React.useContext(J);if(a===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,_$1),n}return a}let q$1=React.createContext(null);q$1.displayName="ListboxDataContext";function U(e){let a=React.useContext(q$1);if(a===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,U),n}return a}function Ve$1(e,a){return u$6(a.type,je$2,e,a)}let Ke$1=React.Fragment;function Qe$1(e,a){let{value:n,defaultValue:r,form:l,name:t,onChange:p,by:u=(s,c)=>s===c,disabled:i=!1,horizontal:b=!1,multiple:R$1=!1,...m}=e;const P=b?"horizontal":"vertical";let S=y$3(a),[L=R$1?[]:void 0,y]=T(n,p,r),[T$1,o]=React.useReducer(Ve$1,{dataRef:React.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),x=React.useRef({static:!1,hold:!1}),E=React.useRef(null),B=React.useRef(null),W=React.useRef(null),C=o$e(typeof u=="string"?(s,c)=>{let O=u;return (s==null?void 0:s[O])===(c==null?void 0:c[O])}:u),A=React.useCallback(s=>u$6(d.mode,{[1]:()=>L.some(c=>C(c,s)),[0]:()=>C(L,s)}),[L]),d=React.useMemo(()=>({...T$1,value:L,disabled:i,mode:R$1?1:0,orientation:P,compare:C,isSelected:A,optionsPropsRef:x,labelRef:E,buttonRef:B,optionsRef:W}),[L,i,R$1,T$1]);l$f(()=>{T$1.dataRef.current=d;},[d]),h$2([d.buttonRef,d.optionsRef],(s,c)=>{var O;o({type:1}),h$3(c,T$2.Loose)||(s.preventDefault(),(O=d.buttonRef.current)==null||O.focus());},d.listboxState===0);let H=React.useMemo(()=>({open:d.listboxState===0,disabled:i,value:L}),[d,i,L]),ie=o$e(s=>{let c=d.options.find(O=>O.id===s);c&&X(c.dataRef.current.value);}),re=o$e(()=>{if(d.activeOptionIndex!==null){let{dataRef:s,id:c}=d.options[d.activeOptionIndex];X(s.current.value),o({type:2,focus:a$e.Specific,id:c});}}),ae=o$e(()=>o({type:0})),le=o$e(()=>o({type:1})),se=o$e((s,c,O)=>s===a$e.Specific?o({type:2,focus:a$e.Specific,id:c,trigger:O}):o({type:2,focus:s,trigger:O})),pe=o$e((s,c)=>(o({type:5,id:s,dataRef:c}),()=>o({type:6,id:s}))),ue=o$e(s=>(o({type:7,id:s}),()=>o({type:7,id:null}))),X=o$e(s=>u$6(d.mode,{[0](){return y==null?void 0:y(s)},[1](){let c=d.value.slice(),O=c.findIndex(F=>C(F,s));return O===-1?c.push(s):c.splice(O,1),y==null?void 0:y(c)}})),de=o$e(s=>o({type:3,value:s})),ce=o$e(()=>o({type:4})),fe=React.useMemo(()=>({onChange:X,registerOption:pe,registerLabel:ue,goToOption:se,closeListbox:le,openListbox:ae,selectActiveOption:re,selectOption:ie,search:de,clearSearch:ce}),[]),Te={ref:S},G=React.useRef(null),be=p$9();return React.useEffect(()=>{G.current&&r!==void 0&&be.addEventListener(G.current,"reset",()=>{y==null||y(r);});},[G,y]),React.createElement(J.Provider,{value:fe},React.createElement(q$1.Provider,{value:d},React.createElement(c$e,{value:u$6(d.listboxState,{[0]:d$f.Open,[1]:d$f.Closed})},t!=null&&L!=null&&e$1({[t]:L}).map(([s,c],O)=>React.createElement(c$f,{features:p$7.Hidden,ref:O===0?F=>{var Y;G.current=(Y=F==null?void 0:F.closest("form"))!=null?Y:null;}:void 0,...R({key:s,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:l,name:s,value:c})})),X$3({ourProps:Te,theirProps:m,slot:H,defaultTag:Ke$1,name:"Listbox"}))))}let We$2="button";function Xe$1(e,a){var y;let n=I$2(),{id:r=`headlessui-listbox-button-${n}`,...l}=e,t=U("Listbox.Button"),p=_$1("Listbox.Button"),u=y$3(t.buttonRef,a),i=p$9(),b=o$e(T=>{switch(T.key){case o$b.Space:case o$b.Enter:case o$b.ArrowDown:T.preventDefault(),p.openListbox(),i.nextFrame(()=>{t.value||p.goToOption(a$e.First);});break;case o$b.ArrowUp:T.preventDefault(),p.openListbox(),i.nextFrame(()=>{t.value||p.goToOption(a$e.Last);});break}}),R=o$e(T=>{switch(T.key){case o$b.Space:T.preventDefault();break}}),m=o$e(T=>{if(r$c(T.currentTarget))return T.preventDefault();t.listboxState===0?(p.closeListbox(),i.nextFrame(()=>{var o;return (o=t.buttonRef.current)==null?void 0:o.focus({preventScroll:!0})})):(T.preventDefault(),p.openListbox());}),P=i$f(()=>{if(t.labelId)return [t.labelId,r].join(" ")},[t.labelId,r]),S=React.useMemo(()=>({open:t.listboxState===0,disabled:t.disabled,value:t.value}),[t]),L={ref:u,id:r,type:s$d(e,t.buttonRef),"aria-haspopup":"listbox","aria-controls":(y=t.optionsRef.current)==null?void 0:y.id,"aria-expanded":t.listboxState===0,"aria-labelledby":P,disabled:t.disabled,onKeyDown:b,onKeyUp:R,onClick:m};return X$3({ourProps:L,theirProps:l,slot:S,defaultTag:We$2,name:"Listbox.Button"})}let $e$1="label";function ze$1(e,a){let n=I$2(),{id:r=`headlessui-listbox-label-${n}`,...l}=e,t=U("Listbox.Label"),p=_$1("Listbox.Label"),u=y$3(t.labelRef,a);l$f(()=>p.registerLabel(r),[r]);let i=o$e(()=>{var m;return (m=t.buttonRef.current)==null?void 0:m.focus({preventScroll:!0})}),b=React.useMemo(()=>({open:t.listboxState===0,disabled:t.disabled}),[t]);return X$3({ourProps:{ref:u,id:r,onClick:i},theirProps:l,slot:b,defaultTag:$e$1,name:"Listbox.Label"})}let Je$1="ul",qe$1=S$2.RenderStrategy|S$2.Static;function Ye$1(e,a){var T;let n=I$2(),{id:r=`headlessui-listbox-options-${n}`,...l}=e,t=U("Listbox.Options"),p=_$1("Listbox.Options"),u=y$3(t.optionsRef,a),i=p$9(),b=p$9(),R=C$2(),m=(()=>R!==null?(R&d$f.Open)===d$f.Open:t.listboxState===0)();React.useEffect(()=>{var x;let o=t.optionsRef.current;o&&t.listboxState===0&&o!==((x=e$2(o))==null?void 0:x.activeElement)&&o.focus({preventScroll:!0});},[t.listboxState,t.optionsRef]);let P=o$e(o=>{switch(b.dispose(),o.key){case o$b.Space:if(t.searchQuery!=="")return o.preventDefault(),o.stopPropagation(),p.search(o.key);case o$b.Enter:if(o.preventDefault(),o.stopPropagation(),t.activeOptionIndex!==null){let{dataRef:x}=t.options[t.activeOptionIndex];p.onChange(x.current.value);}t.mode===0&&(p.closeListbox(),o$f().nextFrame(()=>{var x;return (x=t.buttonRef.current)==null?void 0:x.focus({preventScroll:!0})}));break;case u$6(t.orientation,{vertical:o$b.ArrowDown,horizontal:o$b.ArrowRight}):return o.preventDefault(),o.stopPropagation(),p.goToOption(a$e.Next);case u$6(t.orientation,{vertical:o$b.ArrowUp,horizontal:o$b.ArrowLeft}):return o.preventDefault(),o.stopPropagation(),p.goToOption(a$e.Previous);case o$b.Home:case o$b.PageUp:return o.preventDefault(),o.stopPropagation(),p.goToOption(a$e.First);case o$b.End:case o$b.PageDown:return o.preventDefault(),o.stopPropagation(),p.goToOption(a$e.Last);case o$b.Escape:return o.preventDefault(),o.stopPropagation(),p.closeListbox(),i.nextFrame(()=>{var x;return (x=t.buttonRef.current)==null?void 0:x.focus({preventScroll:!0})});case o$b.Tab:o.preventDefault(),o.stopPropagation();break;default:o.key.length===1&&(p.search(o.key),b.setTimeout(()=>p.clearSearch(),350));break}}),S=i$f(()=>{var o,x,E;return (E=(o=t.labelRef.current)==null?void 0:o.id)!=null?E:(x=t.buttonRef.current)==null?void 0:x.id},[t.labelRef.current,t.buttonRef.current]),L=React.useMemo(()=>({open:t.listboxState===0}),[t]),y={"aria-activedescendant":t.activeOptionIndex===null||(T=t.options[t.activeOptionIndex])==null?void 0:T.id,"aria-multiselectable":t.mode===1?!0:void 0,"aria-labelledby":S,"aria-orientation":t.orientation,id:r,onKeyDown:P,role:"listbox",tabIndex:0,ref:u};return X$3({ourProps:y,theirProps:l,slot:L,defaultTag:Je$1,features:qe$1,visible:m,name:"Listbox.Options"})}let Ze$1="li";function et$1(e,a){let n=I$2(),{id:r=`headlessui-listbox-option-${n}`,disabled:l=!1,value:t,...p}=e,u=U("Listbox.Option"),i=_$1("Listbox.Option"),b=u.activeOptionIndex!==null?u.options[u.activeOptionIndex].id===r:!1,R=u.isSelected(t),m=React.useRef(null),P=b$5(m),S=s$g({disabled:l,value:t,domRef:m,get textValue(){return P()}}),L=y$3(a,m);l$f(()=>{if(u.listboxState!==0||!b||u.activationTrigger===0)return;let A=o$f();return A.requestAnimationFrame(()=>{var d,H;(H=(d=m.current)==null?void 0:d.scrollIntoView)==null||H.call(d,{block:"nearest"});}),A.dispose},[m,b,u.listboxState,u.activationTrigger,u.activeOptionIndex]),l$f(()=>i.registerOption(r,S),[S,r]);let y=o$e(A=>{if(l)return A.preventDefault();i.onChange(t),u.mode===0&&(i.closeListbox(),o$f().nextFrame(()=>{var d;return (d=u.buttonRef.current)==null?void 0:d.focus({preventScroll:!0})}));}),T=o$e(()=>{if(l)return i.goToOption(a$e.Nothing);i.goToOption(a$e.Specific,r);}),o=u$4(),x=o$e(A=>o.update(A)),E=o$e(A=>{o.wasMoved(A)&&(l||b||i.goToOption(a$e.Specific,r,0));}),B=o$e(A=>{o.wasMoved(A)&&(l||b&&i.goToOption(a$e.Nothing));}),W=React.useMemo(()=>({active:b,selected:R,disabled:l}),[b,R,l]);return X$3({ourProps:{id:r,ref:L,role:"option",tabIndex:l===!0?void 0:-1,"aria-disabled":l===!0?!0:void 0,"aria-selected":R,disabled:void 0,onClick:y,onFocus:T,onPointerEnter:x,onMouseEnter:x,onPointerMove:E,onMouseMove:E,onPointerLeave:B,onMouseLeave:B},theirProps:p,slot:W,defaultTag:Ze$1,name:"Listbox.Option"})}let tt$1=D$1(Qe$1),ot=D$1(Xe$1),nt=D$1(ze$1),it=D$1(Ye$1),rt$1=D$1(et$1),Nt=Object.assign(tt$1,{Button:ot,Label:nt,Options:it,Option:rt$1});
|
|
64931
64931
|
|
|
64932
|
-
var he$1=(u=>(u[u.Open=0]="Open",u[u.Closed=1]="Closed",u))(he$1||{}),He=(e=>(e[e.TogglePopover=0]="TogglePopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId",e))(He||{});let _e$1={[0]:t=>{let o={...t,popoverState:u$6(t.popoverState,{[0]:1,[1]:0})};return o.popoverState===0&&(o.__demoMode=!1),o},[1](t){return t.popoverState===1?t:{...t,popoverState:1}},[2](t,o){return t.button===o.button?t:{...t,button:o.button}},[3](t,o){return t.buttonId===o.buttonId?t:{...t,buttonId:o.buttonId}},[4](t,o){return t.panel===o.panel?t:{...t,panel:o.panel}},[5](t,o){return t.panelId===o.panelId?t:{...t,panelId:o.panelId}}},ue$1=React.createContext(null);ue$1.displayName="PopoverContext";function oe(t){let o=React.useContext(ue$1);if(o===null){let u=new Error(`<${t} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(u,oe),u}return o}let ie=React.createContext(null);ie.displayName="PopoverAPIContext";function fe$1(t){let o=React.useContext(ie);if(o===null){let u=new Error(`<${t} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(u,fe$1),u}return o}let Pe$2=React.createContext(null);Pe$2.displayName="PopoverGroupContext";function Ee$1(){return React.useContext(Pe$2)}let re$1=React.createContext(null);re$1.displayName="PopoverPanelContext";function Ge$1(){return React.useContext(re$1)}function Ne$1(t,o){return u$6(o.type,_e$1,t,o)}let ke="div";function we$1(t,o){var D;let{__demoMode:u=!1,...R}=t,O=React.useRef(null),n=y$3(o,T$1(l=>{O.current=l;})),e=React.useRef([]),v=React.useReducer(Ne$1,{__demoMode:u,popoverState:u?0:1,buttons:e,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:React.createRef(),afterPanelSentinel:React.createRef()}),[{popoverState:P,button:s,buttonId:I,panel:p,panelId:T,beforePanelSentinel:m,afterPanelSentinel:S},i]=v,a=n$a((D=O.current)!=null?D:s),E$1=React.useMemo(()=>{if(!s||!p)return !1;for(let K of document.querySelectorAll("body > *"))if(Number(K==null?void 0:K.contains(s))^Number(K==null?void 0:K.contains(p)))return !0;let l=f$9(),F=l.indexOf(s),q=(F+l.length-1)%l.length,W=(F+1)%l.length,z=l[q],be=l[W];return !p.contains(z)&&!p.contains(be)},[s,p]),C=s$g(I),H=s$g(T),x=React.useMemo(()=>({buttonId:C,panelId:H,close:()=>i({type:1})}),[C,H,i]),M=Ee$1(),h=M==null?void 0:M.registerPopover,f=o$d(()=>{var l;return (l=M==null?void 0:M.isFocusWithinPopoverGroup())!=null?l:(a==null?void 0:a.activeElement)&&((s==null?void 0:s.contains(a.activeElement))||(p==null?void 0:p.contains(a.activeElement)))});React.useEffect(()=>h==null?void 0:h(x),[h,x]);let[y,b]=ae(),d=j({mainTreeNodeRef:M==null?void 0:M.mainTreeNodeRef,portals:y,defaultContainers:[s,p]});E(a==null?void 0:a.defaultView,"focus",l=>{var F,q,W,z;l.target!==window&&l.target instanceof HTMLElement&&P===0&&(f()||s&&p&&(d.contains(l.target)||(q=(F=m.current)==null?void 0:F.contains)!=null&&q.call(F,l.target)||(z=(W=S.current)==null?void 0:W.contains)!=null&&z.call(W,l.target)||i({type:1})));},!0),h$2(d.resolveContainers,(l,F)=>{i({type:1}),h$3(F,T$2.Loose)||(l.preventDefault(),s==null||s.focus());},P===0);let L=o$d(l=>{i({type:1});let F=(()=>l?l instanceof HTMLElement?l:"current"in l&&l.current instanceof HTMLElement?l.current:s:s)();F==null||F.focus();}),r=React.useMemo(()=>({close:L,isPortalled:E$1}),[L,E$1]),c=React.useMemo(()=>({open:P===0,close:L}),[P,L]),B={ref:n};return React.createElement(re$1.Provider,{value:null},React.createElement(ue$1.Provider,{value:v},React.createElement(ie.Provider,{value:r},React.createElement(c$e,{value:u$6(P,{[0]:d$f.Open,[1]:d$f.Closed})},React.createElement(b,null,X$3({ourProps:B,theirProps:R,slot:c,defaultTag:ke,name:"Popover"}),React.createElement(d.MainTreeNode,null))))))}let Ue="button";function We(t,o){let u=I$2(),{id:R=`headlessui-popover-button-${u}`,...O$1}=t,[n,e]=oe("Popover.Button"),{isPortalled:v}=fe$1("Popover.Button"),P=React.useRef(null),s=`headlessui-focus-sentinel-${I$2()}`,I=Ee$1(),p=I==null?void 0:I.closeOthers,m=Ge$1()!==null;React.useEffect(()=>{if(!m)return e({type:3,buttonId:R}),()=>{e({type:3,buttonId:null});}},[m,R,e]);let[S]=React.useState(()=>Symbol()),i=y$3(P,o,m?null:r=>{if(r)n.buttons.current.push(S);else {let c=n.buttons.current.indexOf(S);c!==-1&&n.buttons.current.splice(c,1);}n.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),r&&e({type:2,button:r});}),a=y$3(P,o),E=n$a(P),C=o$d(r=>{var c,B,D;if(m){if(n.popoverState===1)return;switch(r.key){case o$a.Space:case o$a.Enter:r.preventDefault(),(B=(c=r.target).click)==null||B.call(c),e({type:1}),(D=n.button)==null||D.focus();break}}else switch(r.key){case o$a.Space:case o$a.Enter:r.preventDefault(),r.stopPropagation(),n.popoverState===1&&(p==null||p(n.buttonId)),e({type:0});break;case o$a.Escape:if(n.popoverState!==0)return p==null?void 0:p(n.buttonId);if(!P.current||E!=null&&E.activeElement&&!P.current.contains(E.activeElement))return;r.preventDefault(),r.stopPropagation(),e({type:1});break}}),H=o$d(r=>{m||r.key===o$a.Space&&r.preventDefault();}),x=o$d(r=>{var c,B;r$d(r.currentTarget)||t.disabled||(m?(e({type:1}),(c=n.button)==null||c.focus()):(r.preventDefault(),r.stopPropagation(),n.popoverState===1&&(p==null||p(n.buttonId)),e({type:0}),(B=n.button)==null||B.focus()));}),M=o$d(r=>{r.preventDefault(),r.stopPropagation();}),h=n.popoverState===0,f=React.useMemo(()=>({open:h}),[h]),y=s$d(t,P),b=m?{ref:a,type:y,onKeyDown:C,onClick:x}:{ref:i,id:n.buttonId,type:y,"aria-expanded":n.popoverState===0,"aria-controls":n.panel?n.panelId:void 0,onKeyDown:C,onKeyUp:H,onClick:x,onMouseDown:M},d=n$9(),L=o$d(()=>{let r=n.panel;if(!r)return;function c(){u$6(d.current,{[s$b.Forwards]:()=>O(r,M$4.First),[s$b.Backwards]:()=>O(r,M$4.Last)})===N$3.Error&&O(f$9().filter(D=>D.dataset.headlessuiFocusGuard!=="true"),u$6(d.current,{[s$b.Forwards]:M$4.Next,[s$b.Backwards]:M$4.Previous}),{relativeTo:n.button});}c();});return React.createElement(React.Fragment,null,X$3({ourProps:b,theirProps:O$1,slot:f,defaultTag:Ue,name:"Popover.Button"}),h&&!m&&v&&React.createElement(c$f,{id:s,features:p$7.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:L}))}let Ke="div",je=S$2.RenderStrategy|S$2.Static;function Ve(t,o){let u=I$2(),{id:R=`headlessui-popover-overlay-${u}`,...O}=t,[{popoverState:n},e]=oe("Popover.Overlay"),v=y$3(o),P=C$2(),s=(()=>P!==null?(P&d$f.Open)===d$f.Open:n===0)(),I=o$d(m=>{if(r$d(m.currentTarget))return m.preventDefault();e({type:1});}),p=React.useMemo(()=>({open:n===0}),[n]);return X$3({ourProps:{ref:v,id:R,"aria-hidden":!0,onClick:I},theirProps:O,slot:p,defaultTag:Ke,features:je,visible:s,name:"Popover.Overlay"})}let $e="div",Je=S$2.RenderStrategy|S$2.Static;function Xe(t,o){let u=I$2(),{id:R=`headlessui-popover-panel-${u}`,focus:O$1=!1,...n}=t,[e,v]=oe("Popover.Panel"),{close:P,isPortalled:s}=fe$1("Popover.Panel"),I=`headlessui-focus-sentinel-before-${I$2()}`,p=`headlessui-focus-sentinel-after-${I$2()}`,T=React.useRef(null),m=y$3(T,o,f=>{v({type:4,panel:f});}),S=n$a(T);l$f(()=>(v({type:5,panelId:R}),()=>{v({type:5,panelId:null});}),[R,v]);let i=C$2(),a=(()=>i!==null?(i&d$f.Open)===d$f.Open:e.popoverState===0)(),E=o$d(f=>{var y;switch(f.key){case o$a.Escape:if(e.popoverState!==0||!T.current||S!=null&&S.activeElement&&!T.current.contains(S.activeElement))return;f.preventDefault(),f.stopPropagation(),v({type:1}),(y=e.button)==null||y.focus();break}});React.useEffect(()=>{var f;t.static||e.popoverState===1&&((f=t.unmount)==null||f)&&v({type:4,panel:null});},[e.popoverState,t.unmount,t.static,v]),React.useEffect(()=>{if(e.__demoMode||!O$1||e.popoverState!==0||!T.current)return;let f=S==null?void 0:S.activeElement;T.current.contains(f)||O(T.current,M$4.First);},[e.__demoMode,O$1,T,e.popoverState]);let C=React.useMemo(()=>({open:e.popoverState===0,close:P}),[e,P]),H={ref:m,id:R,onKeyDown:E,onBlur:O$1&&e.popoverState===0?f=>{var b,d,L,r,c;let y=f.relatedTarget;y&&T.current&&((b=T.current)!=null&&b.contains(y)||(v({type:1}),((L=(d=e.beforePanelSentinel.current)==null?void 0:d.contains)!=null&&L.call(d,y)||(c=(r=e.afterPanelSentinel.current)==null?void 0:r.contains)!=null&&c.call(r,y))&&y.focus({preventScroll:!0})));}:void 0,tabIndex:-1},x=n$9(),M=o$d(()=>{let f=T.current;if(!f)return;function y(){u$6(x.current,{[s$b.Forwards]:()=>{var d;O(f,M$4.First)===N$3.Error&&((d=e.afterPanelSentinel.current)==null||d.focus());},[s$b.Backwards]:()=>{var b;(b=e.button)==null||b.focus({preventScroll:!0});}});}y();}),h=o$d(()=>{let f=T.current;if(!f)return;function y(){u$6(x.current,{[s$b.Forwards]:()=>{var B;if(!e.button)return;let b=f$9(),d=b.indexOf(e.button),L=b.slice(0,d+1),c=[...b.slice(d+1),...L];for(let D of c.slice())if(D.dataset.headlessuiFocusGuard==="true"||(B=e.panel)!=null&&B.contains(D)){let l=c.indexOf(D);l!==-1&&c.splice(l,1);}O(c,M$4.First,{sorted:!1});},[s$b.Backwards]:()=>{var d;O(f,M$4.Previous)===N$3.Error&&((d=e.button)==null||d.focus());}});}y();});return React.createElement(re$1.Provider,{value:R},a&&s&&React.createElement(c$f,{id:I,ref:e.beforePanelSentinel,features:p$7.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:M}),X$3({ourProps:H,theirProps:n,slot:C,defaultTag:$e,features:Je,visible:a,name:"Popover.Panel"}),a&&s&&React.createElement(c$f,{id:p,ref:e.afterPanelSentinel,features:p$7.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:h}))}let Ye="div";function qe$1(t,o){let u=React.useRef(null),R=y$3(u,o),[O,n]=React.useState([]),e=y$1(),v=o$d(i=>{n(a=>{let E=a.indexOf(i);if(E!==-1){let C=a.slice();return C.splice(E,1),C}return a});}),P=o$d(i=>(n(a=>[...a,i]),()=>v(i))),s=o$d(()=>{var E;let i=e$2(u);if(!i)return !1;let a=i.activeElement;return (E=u.current)!=null&&E.contains(a)?!0:O.some(C=>{var H,x;return ((H=i.getElementById(C.buttonId.current))==null?void 0:H.contains(a))||((x=i.getElementById(C.panelId.current))==null?void 0:x.contains(a))})}),I=o$d(i=>{for(let a of O)a.buttonId.current!==i&&a.close();}),p=React.useMemo(()=>({registerPopover:P,unregisterPopover:v,isFocusWithinPopoverGroup:s,closeOthers:I,mainTreeNodeRef:e.mainTreeNodeRef}),[P,v,s,I,e.mainTreeNodeRef]),T=React.useMemo(()=>({}),[]),m=t,S={ref:R};return React.createElement(Pe$2.Provider,{value:p},X$3({ourProps:S,theirProps:m,slot:T,defaultTag:Ye,name:"Popover.Group"}),React.createElement(e.MainTreeNode,null))}let ze=D$1(we$1),Qe=D$1(We),Ze=D$1(Ve),et=D$1(Xe),tt=D$1(qe$1),kt=Object.assign(ze,{Button:Qe,Overlay:Ze,Panel:et,Group:tt});
|
|
64932
|
+
var he$1=(u=>(u[u.Open=0]="Open",u[u.Closed=1]="Closed",u))(he$1||{}),He=(e=>(e[e.TogglePopover=0]="TogglePopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId",e))(He||{});let _e={[0]:t=>{let o={...t,popoverState:u$6(t.popoverState,{[0]:1,[1]:0})};return o.popoverState===0&&(o.__demoMode=!1),o},[1](t){return t.popoverState===1?t:{...t,popoverState:1}},[2](t,o){return t.button===o.button?t:{...t,button:o.button}},[3](t,o){return t.buttonId===o.buttonId?t:{...t,buttonId:o.buttonId}},[4](t,o){return t.panel===o.panel?t:{...t,panel:o.panel}},[5](t,o){return t.panelId===o.panelId?t:{...t,panelId:o.panelId}}},ue$1=React.createContext(null);ue$1.displayName="PopoverContext";function oe(t){let o=React.useContext(ue$1);if(o===null){let u=new Error(`<${t} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(u,oe),u}return o}let ie=React.createContext(null);ie.displayName="PopoverAPIContext";function fe$1(t){let o=React.useContext(ie);if(o===null){let u=new Error(`<${t} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(u,fe$1),u}return o}let Pe$2=React.createContext(null);Pe$2.displayName="PopoverGroupContext";function Ee$1(){return React.useContext(Pe$2)}let re$1=React.createContext(null);re$1.displayName="PopoverPanelContext";function Ge$1(){return React.useContext(re$1)}function Ne$1(t,o){return u$6(o.type,_e,t,o)}let ke="div";function we(t,o){var D;let{__demoMode:u=!1,...R}=t,O=React.useRef(null),n=y$3(o,T$1(l=>{O.current=l;})),e=React.useRef([]),v=React.useReducer(Ne$1,{__demoMode:u,popoverState:u?0:1,buttons:e,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:React.createRef(),afterPanelSentinel:React.createRef()}),[{popoverState:P,button:s,buttonId:I,panel:p,panelId:T,beforePanelSentinel:m,afterPanelSentinel:S},i]=v,a=n$a((D=O.current)!=null?D:s),E$1=React.useMemo(()=>{if(!s||!p)return !1;for(let K of document.querySelectorAll("body > *"))if(Number(K==null?void 0:K.contains(s))^Number(K==null?void 0:K.contains(p)))return !0;let l=f$9(),F=l.indexOf(s),q=(F+l.length-1)%l.length,W=(F+1)%l.length,z=l[q],be=l[W];return !p.contains(z)&&!p.contains(be)},[s,p]),C=s$g(I),H=s$g(T),x=React.useMemo(()=>({buttonId:C,panelId:H,close:()=>i({type:1})}),[C,H,i]),M=Ee$1(),h=M==null?void 0:M.registerPopover,f=o$e(()=>{var l;return (l=M==null?void 0:M.isFocusWithinPopoverGroup())!=null?l:(a==null?void 0:a.activeElement)&&((s==null?void 0:s.contains(a.activeElement))||(p==null?void 0:p.contains(a.activeElement)))});React.useEffect(()=>h==null?void 0:h(x),[h,x]);let[y,b]=ae(),d=j({mainTreeNodeRef:M==null?void 0:M.mainTreeNodeRef,portals:y,defaultContainers:[s,p]});E(a==null?void 0:a.defaultView,"focus",l=>{var F,q,W,z;l.target!==window&&l.target instanceof HTMLElement&&P===0&&(f()||s&&p&&(d.contains(l.target)||(q=(F=m.current)==null?void 0:F.contains)!=null&&q.call(F,l.target)||(z=(W=S.current)==null?void 0:W.contains)!=null&&z.call(W,l.target)||i({type:1})));},!0),h$2(d.resolveContainers,(l,F)=>{i({type:1}),h$3(F,T$2.Loose)||(l.preventDefault(),s==null||s.focus());},P===0);let L=o$e(l=>{i({type:1});let F=(()=>l?l instanceof HTMLElement?l:"current"in l&&l.current instanceof HTMLElement?l.current:s:s)();F==null||F.focus();}),r=React.useMemo(()=>({close:L,isPortalled:E$1}),[L,E$1]),c=React.useMemo(()=>({open:P===0,close:L}),[P,L]),B={ref:n};return React.createElement(re$1.Provider,{value:null},React.createElement(ue$1.Provider,{value:v},React.createElement(ie.Provider,{value:r},React.createElement(c$e,{value:u$6(P,{[0]:d$f.Open,[1]:d$f.Closed})},React.createElement(b,null,X$3({ourProps:B,theirProps:R,slot:c,defaultTag:ke,name:"Popover"}),React.createElement(d.MainTreeNode,null))))))}let Ue="button";function We$1(t,o){let u=I$2(),{id:R=`headlessui-popover-button-${u}`,...O$1}=t,[n,e]=oe("Popover.Button"),{isPortalled:v}=fe$1("Popover.Button"),P=React.useRef(null),s=`headlessui-focus-sentinel-${I$2()}`,I=Ee$1(),p=I==null?void 0:I.closeOthers,m=Ge$1()!==null;React.useEffect(()=>{if(!m)return e({type:3,buttonId:R}),()=>{e({type:3,buttonId:null});}},[m,R,e]);let[S]=React.useState(()=>Symbol()),i=y$3(P,o,m?null:r=>{if(r)n.buttons.current.push(S);else {let c=n.buttons.current.indexOf(S);c!==-1&&n.buttons.current.splice(c,1);}n.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),r&&e({type:2,button:r});}),a=y$3(P,o),E=n$a(P),C=o$e(r=>{var c,B,D;if(m){if(n.popoverState===1)return;switch(r.key){case o$b.Space:case o$b.Enter:r.preventDefault(),(B=(c=r.target).click)==null||B.call(c),e({type:1}),(D=n.button)==null||D.focus();break}}else switch(r.key){case o$b.Space:case o$b.Enter:r.preventDefault(),r.stopPropagation(),n.popoverState===1&&(p==null||p(n.buttonId)),e({type:0});break;case o$b.Escape:if(n.popoverState!==0)return p==null?void 0:p(n.buttonId);if(!P.current||E!=null&&E.activeElement&&!P.current.contains(E.activeElement))return;r.preventDefault(),r.stopPropagation(),e({type:1});break}}),H=o$e(r=>{m||r.key===o$b.Space&&r.preventDefault();}),x=o$e(r=>{var c,B;r$c(r.currentTarget)||t.disabled||(m?(e({type:1}),(c=n.button)==null||c.focus()):(r.preventDefault(),r.stopPropagation(),n.popoverState===1&&(p==null||p(n.buttonId)),e({type:0}),(B=n.button)==null||B.focus()));}),M=o$e(r=>{r.preventDefault(),r.stopPropagation();}),h=n.popoverState===0,f=React.useMemo(()=>({open:h}),[h]),y=s$d(t,P),b=m?{ref:a,type:y,onKeyDown:C,onClick:x}:{ref:i,id:n.buttonId,type:y,"aria-expanded":n.popoverState===0,"aria-controls":n.panel?n.panelId:void 0,onKeyDown:C,onKeyUp:H,onClick:x,onMouseDown:M},d=n$9(),L=o$e(()=>{let r=n.panel;if(!r)return;function c(){u$6(d.current,{[s$b.Forwards]:()=>O(r,M$4.First),[s$b.Backwards]:()=>O(r,M$4.Last)})===N$2.Error&&O(f$9().filter(D=>D.dataset.headlessuiFocusGuard!=="true"),u$6(d.current,{[s$b.Forwards]:M$4.Next,[s$b.Backwards]:M$4.Previous}),{relativeTo:n.button});}c();});return React.createElement(React.Fragment,null,X$3({ourProps:b,theirProps:O$1,slot:f,defaultTag:Ue,name:"Popover.Button"}),h&&!m&&v&&React.createElement(c$f,{id:s,features:p$7.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:L}))}let Ke="div",je$1=S$2.RenderStrategy|S$2.Static;function Ve(t,o){let u=I$2(),{id:R=`headlessui-popover-overlay-${u}`,...O}=t,[{popoverState:n},e]=oe("Popover.Overlay"),v=y$3(o),P=C$2(),s=(()=>P!==null?(P&d$f.Open)===d$f.Open:n===0)(),I=o$e(m=>{if(r$c(m.currentTarget))return m.preventDefault();e({type:1});}),p=React.useMemo(()=>({open:n===0}),[n]);return X$3({ourProps:{ref:v,id:R,"aria-hidden":!0,onClick:I},theirProps:O,slot:p,defaultTag:Ke,features:je$1,visible:s,name:"Popover.Overlay"})}let $e="div",Je=S$2.RenderStrategy|S$2.Static;function Xe(t,o){let u=I$2(),{id:R=`headlessui-popover-panel-${u}`,focus:O$1=!1,...n}=t,[e,v]=oe("Popover.Panel"),{close:P,isPortalled:s}=fe$1("Popover.Panel"),I=`headlessui-focus-sentinel-before-${I$2()}`,p=`headlessui-focus-sentinel-after-${I$2()}`,T=React.useRef(null),m=y$3(T,o,f=>{v({type:4,panel:f});}),S=n$a(T);l$f(()=>(v({type:5,panelId:R}),()=>{v({type:5,panelId:null});}),[R,v]);let i=C$2(),a=(()=>i!==null?(i&d$f.Open)===d$f.Open:e.popoverState===0)(),E=o$e(f=>{var y;switch(f.key){case o$b.Escape:if(e.popoverState!==0||!T.current||S!=null&&S.activeElement&&!T.current.contains(S.activeElement))return;f.preventDefault(),f.stopPropagation(),v({type:1}),(y=e.button)==null||y.focus();break}});React.useEffect(()=>{var f;t.static||e.popoverState===1&&((f=t.unmount)==null||f)&&v({type:4,panel:null});},[e.popoverState,t.unmount,t.static,v]),React.useEffect(()=>{if(e.__demoMode||!O$1||e.popoverState!==0||!T.current)return;let f=S==null?void 0:S.activeElement;T.current.contains(f)||O(T.current,M$4.First);},[e.__demoMode,O$1,T,e.popoverState]);let C=React.useMemo(()=>({open:e.popoverState===0,close:P}),[e,P]),H={ref:m,id:R,onKeyDown:E,onBlur:O$1&&e.popoverState===0?f=>{var b,d,L,r,c;let y=f.relatedTarget;y&&T.current&&((b=T.current)!=null&&b.contains(y)||(v({type:1}),((L=(d=e.beforePanelSentinel.current)==null?void 0:d.contains)!=null&&L.call(d,y)||(c=(r=e.afterPanelSentinel.current)==null?void 0:r.contains)!=null&&c.call(r,y))&&y.focus({preventScroll:!0})));}:void 0,tabIndex:-1},x=n$9(),M=o$e(()=>{let f=T.current;if(!f)return;function y(){u$6(x.current,{[s$b.Forwards]:()=>{var d;O(f,M$4.First)===N$2.Error&&((d=e.afterPanelSentinel.current)==null||d.focus());},[s$b.Backwards]:()=>{var b;(b=e.button)==null||b.focus({preventScroll:!0});}});}y();}),h=o$e(()=>{let f=T.current;if(!f)return;function y(){u$6(x.current,{[s$b.Forwards]:()=>{var B;if(!e.button)return;let b=f$9(),d=b.indexOf(e.button),L=b.slice(0,d+1),c=[...b.slice(d+1),...L];for(let D of c.slice())if(D.dataset.headlessuiFocusGuard==="true"||(B=e.panel)!=null&&B.contains(D)){let l=c.indexOf(D);l!==-1&&c.splice(l,1);}O(c,M$4.First,{sorted:!1});},[s$b.Backwards]:()=>{var d;O(f,M$4.Previous)===N$2.Error&&((d=e.button)==null||d.focus());}});}y();});return React.createElement(re$1.Provider,{value:R},a&&s&&React.createElement(c$f,{id:I,ref:e.beforePanelSentinel,features:p$7.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:M}),X$3({ourProps:H,theirProps:n,slot:C,defaultTag:$e,features:Je,visible:a,name:"Popover.Panel"}),a&&s&&React.createElement(c$f,{id:p,ref:e.afterPanelSentinel,features:p$7.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:h}))}let Ye="div";function qe(t,o){let u=React.useRef(null),R=y$3(u,o),[O,n]=React.useState([]),e=y$1(),v=o$e(i=>{n(a=>{let E=a.indexOf(i);if(E!==-1){let C=a.slice();return C.splice(E,1),C}return a});}),P=o$e(i=>(n(a=>[...a,i]),()=>v(i))),s=o$e(()=>{var E;let i=e$2(u);if(!i)return !1;let a=i.activeElement;return (E=u.current)!=null&&E.contains(a)?!0:O.some(C=>{var H,x;return ((H=i.getElementById(C.buttonId.current))==null?void 0:H.contains(a))||((x=i.getElementById(C.panelId.current))==null?void 0:x.contains(a))})}),I=o$e(i=>{for(let a of O)a.buttonId.current!==i&&a.close();}),p=React.useMemo(()=>({registerPopover:P,unregisterPopover:v,isFocusWithinPopoverGroup:s,closeOthers:I,mainTreeNodeRef:e.mainTreeNodeRef}),[P,v,s,I,e.mainTreeNodeRef]),T=React.useMemo(()=>({}),[]),m=t,S={ref:R};return React.createElement(Pe$2.Provider,{value:p},X$3({ourProps:S,theirProps:m,slot:T,defaultTag:Ye,name:"Popover.Group"}),React.createElement(e.MainTreeNode,null))}let ze=D$1(we),Qe=D$1(We$1),Ze=D$1(Ve),et=D$1(Xe),tt=D$1(qe),kt=Object.assign(ze,{Button:Qe,Overlay:Ze,Panel:et,Group:tt});
|
|
64933
64933
|
|
|
64934
|
-
let d$d=React.createContext(null);function u$3(){let o=React.useContext(d$d);if(o===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,u$3),t}return o}function H(){let[o,t]=React.useState([]);return [o.length>0?o.join(" "):void 0,React.useMemo(()=>function(e){let s=o$
|
|
64934
|
+
let d$d=React.createContext(null);function u$3(){let o=React.useContext(d$d);if(o===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,u$3),t}return o}function H(){let[o,t]=React.useState([]);return [o.length>0?o.join(" "):void 0,React.useMemo(()=>function(e){let s=o$e(r=>(t(l=>[...l,r]),()=>t(l=>{let n=l.slice(),p=n.indexOf(r);return p!==-1&&n.splice(p,1),n}))),a=React.useMemo(()=>({register:s,slot:e.slot,name:e.name,props:e.props}),[s,e.slot,e.name,e.props]);return React.createElement(d$d.Provider,{value:a},e.children)},[t])]}let A$1="label";function h(o,t){let i=I$2(),{id:e=`headlessui-label-${i}`,passive:s=!1,...a}=o,r=u$3(),l=y$3(t);l$f(()=>r.register(e),[e,r.register]);let n={ref:l,...r.props,id:e};return s&&("onClick"in n&&(delete n.htmlFor,delete n.onClick),"onClick"in a&&delete a.onClick),X$3({ourProps:n,theirProps:a,slot:r.slot||{},defaultTag:A$1,name:r.name||"Label"})}let v$1=D$1(h),M$1=Object.assign(v$1,{});
|
|
64935
64935
|
|
|
64936
|
-
let y=React.createContext(null);y.displayName="GroupContext";let Y=React.Fragment;function Z(s){var d;let[n,p]=React.useState(null),[c,f]=H(),[r,h]=M$3(),l=React.useMemo(()=>({switch:n,setSwitch:p,labelledby:c,describedby:r}),[n,p,c,r]),T={},b=s;return React.createElement(h,{name:"Switch.Description"},React.createElement(f,{name:"Switch.Label",props:{htmlFor:(d=l.switch)==null?void 0:d.id,onClick(t){n&&(t.currentTarget.tagName==="LABEL"&&t.preventDefault(),n.click(),n.focus({preventScroll:!0}));}}},React.createElement(y.Provider,{value:l},X$3({ourProps:T,theirProps:b,defaultTag:Y,name:"Switch.Group"}))))}let ee="button";function te(s,n){let p=I$2(),{id:c=`headlessui-switch-${p}`,checked:f,defaultChecked:r=!1,onChange:h,name:l,value:T$1,form:b,...d}=s,t=React.useContext(y),u=React.useRef(null),D=y$3(u,n,t===null?null:t.setSwitch),[o,a]=T(f,h,r),S=o$
|
|
64936
|
+
let y=React.createContext(null);y.displayName="GroupContext";let Y=React.Fragment;function Z(s){var d;let[n,p]=React.useState(null),[c,f]=H(),[r,h]=M$3(),l=React.useMemo(()=>({switch:n,setSwitch:p,labelledby:c,describedby:r}),[n,p,c,r]),T={},b=s;return React.createElement(h,{name:"Switch.Description"},React.createElement(f,{name:"Switch.Label",props:{htmlFor:(d=l.switch)==null?void 0:d.id,onClick(t){n&&(t.currentTarget.tagName==="LABEL"&&t.preventDefault(),n.click(),n.focus({preventScroll:!0}));}}},React.createElement(y.Provider,{value:l},X$3({ourProps:T,theirProps:b,defaultTag:Y,name:"Switch.Group"}))))}let ee="button";function te(s,n){let p=I$2(),{id:c=`headlessui-switch-${p}`,checked:f,defaultChecked:r=!1,onChange:h,name:l,value:T$1,form:b,...d}=s,t=React.useContext(y),u=React.useRef(null),D=y$3(u,n,t===null?null:t.setSwitch),[o,a]=T(f,h,r),S=o$e(()=>a==null?void 0:a(!o)),C=o$e(e=>{if(r$c(e.currentTarget))return e.preventDefault();e.preventDefault(),S();}),L=o$e(e=>{e.key===o$b.Space?(e.preventDefault(),S()):e.key===o$b.Enter&&p$8(e.currentTarget);}),v=o$e(e=>e.preventDefault()),G=React.useMemo(()=>({checked:o}),[o]),R$1={id:c,ref:D,role:"switch",type:s$d(s,u),tabIndex:0,"aria-checked":o,"aria-labelledby":t==null?void 0:t.labelledby,"aria-describedby":t==null?void 0:t.describedby,onClick:C,onKeyUp:L,onKeyPress:v},k=p$9();return React.useEffect(()=>{var w;let e=(w=u.current)==null?void 0:w.closest("form");e&&r!==void 0&&k.addEventListener(e,"reset",()=>{a(r);});},[u,a]),React.createElement(React.Fragment,null,l!=null&&o&&React.createElement(c$f,{features:p$7.Hidden,...R({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:b,checked:o,name:l,value:T$1})}),X$3({ourProps:R$1,theirProps:d,slot:G,defaultTag:ee,name:"Switch"}))}let ne=D$1(te),re=Z,Ge=Object.assign(ne,{Group:re,Label:M$1,Description:b$6});
|
|
64937
64937
|
|
|
64938
64938
|
function A({onFocus:n}){let[r,o]=React.useState(!0),u=f$6();return r?React.createElement(c$f,{as:"button",type:"button",features:p$7.Focusable,onFocus:a=>{a.preventDefault();let e,i=50;function t(){if(i--<=0){e&&cancelAnimationFrame(e);return}if(n()){if(cancelAnimationFrame(e),!u.current)return;o(!1);return}e=requestAnimationFrame(t);}e=requestAnimationFrame(t);}}):null}
|
|
64939
64939
|
|
|
64940
64940
|
const s$a=React__namespace.createContext(null);function a$a(){return {groups:new Map,get(n,t){var c;let e=this.groups.get(n);e||(e=new Map,this.groups.set(n,e));let l=(c=e.get(t))!=null?c:0;e.set(t,l+1);let o=Array.from(e.keys()).indexOf(t);function i(){let u=e.get(t);u>1?e.set(t,u-1):e.delete(t);}return [o,i]}}}function C$1({children:n}){let t=React__namespace.useRef(a$a());return React__namespace.createElement(s$a.Provider,{value:t},n)}function d$c(n){let t=React__namespace.useContext(s$a);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let e=f$3(),[l,o]=t.current.get(n,e);return React__namespace.useEffect(()=>o,[]),l}function f$3(){var l,o,i;let n=(i=(o=(l=React__namespace.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null?void 0:l.ReactCurrentOwner)==null?void 0:o.current)!=null?i:null;if(!n)return Symbol();let t=[],e=n;for(;e;)t.push(e.index),e=e.return;return "$."+t.join(".")}
|
|
64941
64941
|
|
|
64942
|
-
var ue=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(ue||{}),Te=(o=>(o[o.Less=-1]="Less",o[o.Equal=0]="Equal",o[o.Greater=1]="Greater",o))(Te||{}),de
|
|
64942
|
+
var ue=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(ue||{}),Te=(o=>(o[o.Less=-1]="Less",o[o.Equal=0]="Equal",o[o.Greater=1]="Greater",o))(Te||{}),de=(r=>(r[r.SetSelectedIndex=0]="SetSelectedIndex",r[r.RegisterTab=1]="RegisterTab",r[r.UnregisterTab=2]="UnregisterTab",r[r.RegisterPanel=3]="RegisterPanel",r[r.UnregisterPanel=4]="UnregisterPanel",r))(de||{});let ce={[0](e,n){var u;let t=I$1(e.tabs,T=>T.current),o=I$1(e.panels,T=>T.current),s=t.filter(T=>{var l;return !((l=T.current)!=null&&l.hasAttribute("disabled"))}),r={...e,tabs:t,panels:o};if(n.index<0||n.index>t.length-1){let T=u$6(Math.sign(n.index-e.selectedIndex),{[-1]:()=>1,[0]:()=>u$6(Math.sign(n.index),{[-1]:()=>0,[0]:()=>0,[1]:()=>1}),[1]:()=>0});if(s.length===0)return r;let l=u$6(T,{[0]:()=>t.indexOf(s[0]),[1]:()=>t.indexOf(s[s.length-1])});return {...r,selectedIndex:l===-1?e.selectedIndex:l}}let i=t.slice(0,n.index),b=[...t.slice(n.index),...i].find(T=>s.includes(T));if(!b)return r;let c=(u=t.indexOf(b))!=null?u:e.selectedIndex;return c===-1&&(c=e.selectedIndex),{...r,selectedIndex:c}},[1](e,n){var r;if(e.tabs.includes(n.tab))return e;let t=e.tabs[e.selectedIndex],o=I$1([...e.tabs,n.tab],i=>i.current),s=(r=o.indexOf(t))!=null?r:e.selectedIndex;return s===-1&&(s=e.selectedIndex),{...e,tabs:o,selectedIndex:s}},[2](e,n){return {...e,tabs:e.tabs.filter(t=>t!==n.tab)}},[3](e,n){return e.panels.includes(n.panel)?e:{...e,panels:I$1([...e.panels,n.panel],t=>t.current)}},[4](e,n){return {...e,panels:e.panels.filter(t=>t!==n.panel)}}},X$2=React.createContext(null);X$2.displayName="TabsDataContext";function M(e){let n=React.useContext(X$2);if(n===null){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,M),t}return n}let $=React.createContext(null);$.displayName="TabsActionsContext";function q(e){let n=React.useContext($);if(n===null){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,q),t}return n}function fe(e,n){return u$6(n.type,ce,e,n)}let be=React.Fragment;function me(e,n){let{defaultIndex:t=0,vertical:o=!1,manual:s=!1,onChange:r,selectedIndex:i=null,...R}=e;const b=o?"vertical":"horizontal",c=s?"manual":"auto";let u=i!==null,T=y$3(n),[l,d]=React.useReducer(fe,{selectedIndex:i!=null?i:t,tabs:[],panels:[]}),g=React.useMemo(()=>({selectedIndex:l.selectedIndex}),[l.selectedIndex]),m=s$g(r||(()=>{})),y=s$g(l.tabs),E=React.useMemo(()=>({orientation:b,activation:c,...l}),[b,c,l]),I=o$e(p=>(d({type:1,tab:p}),()=>d({type:2,tab:p}))),A$1=o$e(p=>(d({type:3,panel:p}),()=>d({type:4,panel:p}))),L=o$e(p=>{C.current!==p&&m.current(p),u||d({type:0,index:p});}),C=s$g(u?e.selectedIndex:l.selectedIndex),N=React.useMemo(()=>({registerTab:I,registerPanel:A$1,change:L}),[]);l$f(()=>{d({type:0,index:i!=null?i:t});},[i]),l$f(()=>{if(C.current===void 0||l.tabs.length<=0)return;let p=I$1(l.tabs,a=>a.current);p.some((a,f)=>l.tabs[f]!==a)&&L(p.indexOf(l.tabs[C.current]));});let B={ref:T};return React.createElement(C$1,null,React.createElement($.Provider,{value:N},React.createElement(X$2.Provider,{value:E},E.tabs.length<=0&&React.createElement(A,{onFocus:()=>{var p,D;for(let a of y.current)if(((p=a.current)==null?void 0:p.tabIndex)===0)return (D=a.current)==null||D.focus(),!0;return !1}}),X$3({ourProps:B,theirProps:R,slot:g,defaultTag:be,name:"Tabs"}))))}let Pe$1="div";function xe(e,n){let{orientation:t,selectedIndex:o}=M("Tab.List"),s=y$3(n);return X$3({ourProps:{ref:s,role:"tablist","aria-orientation":t},theirProps:e,slot:{selectedIndex:o},defaultTag:Pe$1,name:"Tabs.List"})}let ge="button";function ye(e,n){var p,D;let t=I$2(),{id:o=`headlessui-tabs-tab-${t}`,...s}=e,{orientation:r,activation:i,selectedIndex:R,tabs:b,panels:c}=M("Tab"),u=q("Tab"),T=M("Tab"),l=React.useRef(null),d=y$3(l,n);l$f(()=>u.registerTab(l),[u,l]);let g=d$c("tabs"),m=b.indexOf(l);m===-1&&(m=g);let y=m===R,E=o$e(a=>{var j;let f=a();if(f===N$2.Success&&i==="auto"){let W=(j=e$2(l))==null?void 0:j.activeElement,z=T.tabs.findIndex(te=>te.current===W);z!==-1&&u.change(z);}return f}),I=o$e(a=>{let f=b.map(W=>W.current).filter(Boolean);if(a.key===o$b.Space||a.key===o$b.Enter){a.preventDefault(),a.stopPropagation(),u.change(m);return}switch(a.key){case o$b.Home:case o$b.PageUp:return a.preventDefault(),a.stopPropagation(),E(()=>O(f,M$4.First));case o$b.End:case o$b.PageDown:return a.preventDefault(),a.stopPropagation(),E(()=>O(f,M$4.Last))}if(E(()=>u$6(r,{vertical(){return a.key===o$b.ArrowUp?O(f,M$4.Previous|M$4.WrapAround):a.key===o$b.ArrowDown?O(f,M$4.Next|M$4.WrapAround):N$2.Error},horizontal(){return a.key===o$b.ArrowLeft?O(f,M$4.Previous|M$4.WrapAround):a.key===o$b.ArrowRight?O(f,M$4.Next|M$4.WrapAround):N$2.Error}}))===N$2.Success)return a.preventDefault()}),A=React.useRef(!1),L=o$e(()=>{var a;A.current||(A.current=!0,(a=l.current)==null||a.focus({preventScroll:!0}),u.change(m),t$9(()=>{A.current=!1;}));}),C=o$e(a=>{a.preventDefault();}),N=React.useMemo(()=>({selected:y}),[y]),B={ref:d,onKeyDown:I,onMouseDown:C,onClick:L,id:o,role:"tab",type:s$d(e,l),"aria-controls":(D=(p=c[m])==null?void 0:p.current)==null?void 0:D.id,"aria-selected":y,tabIndex:y?0:-1};return X$3({ourProps:B,theirProps:s,slot:N,defaultTag:ge,name:"Tabs.Tab"})}let Ee="div";function Ae$1(e,n){let{selectedIndex:t}=M("Tab.Panels"),o=y$3(n),s=React.useMemo(()=>({selectedIndex:t}),[t]);return X$3({ourProps:{ref:o},theirProps:e,slot:s,defaultTag:Ee,name:"Tabs.Panels"})}let Re="div",Le=S$2.RenderStrategy|S$2.Static;function Se(e,n){var E,I,A,L;let t=I$2(),{id:o=`headlessui-tabs-panel-${t}`,tabIndex:s=0,...r}=e,{selectedIndex:i,tabs:R,panels:b}=M("Tab.Panel"),c=q("Tab.Panel"),u=React.useRef(null),T=y$3(u,n);l$f(()=>c.registerPanel(u),[c,u]);let l=d$c("panels"),d=b.indexOf(u);d===-1&&(d=l);let g=d===i,m=React.useMemo(()=>({selected:g}),[g]),y={ref:T,id:o,role:"tabpanel","aria-labelledby":(I=(E=R[d])==null?void 0:E.current)==null?void 0:I.id,tabIndex:g?s:-1};return !g&&((A=r.unmount)==null||A)&&!((L=r.static)!=null&&L)?React.createElement(c$f,{as:"span",...y}):X$3({ourProps:y,theirProps:r,slot:m,defaultTag:Re,features:Le,visible:g,name:"Tabs.Panel"})}let Ie$1=D$1(ye),De$1=D$1(me),Fe=D$1(xe),he=D$1(Ae$1),Me=D$1(Se),rt=Object.assign(Ie$1,{Group:De$1,List:Fe,Panels:he,Panel:Me});
|
|
64943
64943
|
|
|
64944
64944
|
const t$4=t=>{var r=__rest$2(t,[]);return React.createElement("svg",Object.assign({},r,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}),React.createElement("path",{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"}))};
|
|
64945
64945
|
|
|
@@ -67143,41 +67143,41 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
67143
67143
|
return (jsxRuntimeExports.jsx(RootProvider, __assign({}, props, { children: jsxRuntimeExports.jsx(Root, { initialProps: props }) })));
|
|
67144
67144
|
}
|
|
67145
67145
|
|
|
67146
|
-
const r$
|
|
67146
|
+
const r$b=r=>{var o=__rest$2(r,[]);return React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2.5"},o),React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"}))};
|
|
67147
67147
|
|
|
67148
|
-
const r$
|
|
67148
|
+
const r$a=r=>{var o=__rest$2(r,[]);return React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2.5"},o),React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"}))};
|
|
67149
67149
|
|
|
67150
|
-
const r$
|
|
67150
|
+
const r$9=r=>{var o=__rest$2(r,[]);return React.createElement("svg",Object.assign({},o,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2.5"}),React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 19l-7-7 7-7m8 14l-7-7 7-7"}))};
|
|
67151
67151
|
|
|
67152
|
-
const r$
|
|
67152
|
+
const r$8=r=>{var o=__rest$2(r,[]);return React.createElement("svg",Object.assign({},o,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2.5"}),React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 5l7 7-7 7M5 5l7 7-7 7"}))};
|
|
67153
67153
|
|
|
67154
67154
|
const n$8=n=>{var{onClick:a,icon:m}=n,d=__rest$2(n,["onClick","icon"]);const c=m;return React.createElement("button",Object.assign({type:"button",className:t$e("flex items-center justify-center p-1 h-7 w-7 outline-none focus:ring-2 transition duration-100 border border-tremor-border dark:border-dark-tremor-border hover:bg-tremor-background-muted dark:hover:bg-dark-tremor-background-muted rounded-tremor-small focus:border-tremor-brand-subtle select-none dark:focus:border-dark-tremor-brand-subtle focus:ring-tremor-brand-muted dark:focus:ring-dark-tremor-brand-muted text-tremor-content-subtle dark:text-dark-tremor-content-subtle hover:text-tremor-content dark:hover:text-dark-tremor-content")},d),React.createElement(g$a,{onClick:a,icon:c,variant:"simple",color:"slate",size:"xs"}))};
|
|
67155
67155
|
|
|
67156
|
-
function u$2(u){var{mode:b,defaultMonth:f,selected:k,onSelect:x,locale:p,disabled:h,enableYearNavigation:g,classNames:v,weekStartsOn:w=0}=u,y=__rest$2(u,["mode","defaultMonth","selected","onSelect","locale","disabled","enableYearNavigation","classNames","weekStartsOn"]);return React.createElement(DayPicker,Object.assign({showOutsideDays:!0,mode:b,defaultMonth:f,selected:k,onSelect:x,locale:p,disabled:h,weekStartsOn:w,classNames:Object.assign({months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-2 relative items-center",caption_label:"text-tremor-default text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis font-medium",nav:"space-x-1 flex items-center",nav_button:"flex items-center justify-center p-1 h-7 w-7 outline-none focus:ring-2 transition duration-100 border border-tremor-border dark:border-dark-tremor-border hover:bg-tremor-background-muted dark:hover:bg-dark-tremor-background-muted rounded-tremor-small focus:border-tremor-brand-subtle dark:focus:border-dark-tremor-brand-subtle focus:ring-tremor-brand-muted dark:focus:ring-dark-tremor-brand-muted text-tremor-content-subtle dark:text-dark-tremor-content-subtle hover:text-tremor-content dark:hover:text-dark-tremor-content",nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"w-9 font-normal text-center text-tremor-content-subtle dark:text-dark-tremor-content-subtle",row:"flex w-full mt-0.5",cell:"text-center p-0 relative focus-within:relative text-tremor-default text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis",day:"h-9 w-9 p-0 hover:bg-tremor-background-subtle dark:hover:bg-dark-tremor-background-subtle outline-tremor-brand dark:outline-dark-tremor-brand rounded-tremor-default",day_today:"font-bold",day_selected:"aria-selected:bg-tremor-background-emphasis aria-selected:text-tremor-content-inverted dark:aria-selected:bg-dark-tremor-background-emphasis dark:aria-selected:text-dark-tremor-content-inverted ",day_disabled:"text-tremor-content-subtle dark:text-dark-tremor-content-subtle disabled:hover:bg-transparent",day_outside:"text-tremor-content-subtle dark:text-dark-tremor-content-subtle"},v),components:{IconLeft:r=>{var a=__rest$2(r,[]);return React.createElement(r$
|
|
67156
|
+
function u$2(u){var{mode:b,defaultMonth:f,selected:k,onSelect:x,locale:p,disabled:h,enableYearNavigation:g,classNames:v,weekStartsOn:w=0}=u,y=__rest$2(u,["mode","defaultMonth","selected","onSelect","locale","disabled","enableYearNavigation","classNames","weekStartsOn"]);return React.createElement(DayPicker,Object.assign({showOutsideDays:!0,mode:b,defaultMonth:f,selected:k,onSelect:x,locale:p,disabled:h,weekStartsOn:w,classNames:Object.assign({months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-2 relative items-center",caption_label:"text-tremor-default text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis font-medium",nav:"space-x-1 flex items-center",nav_button:"flex items-center justify-center p-1 h-7 w-7 outline-none focus:ring-2 transition duration-100 border border-tremor-border dark:border-dark-tremor-border hover:bg-tremor-background-muted dark:hover:bg-dark-tremor-background-muted rounded-tremor-small focus:border-tremor-brand-subtle dark:focus:border-dark-tremor-brand-subtle focus:ring-tremor-brand-muted dark:focus:ring-dark-tremor-brand-muted text-tremor-content-subtle dark:text-dark-tremor-content-subtle hover:text-tremor-content dark:hover:text-dark-tremor-content",nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"w-9 font-normal text-center text-tremor-content-subtle dark:text-dark-tremor-content-subtle",row:"flex w-full mt-0.5",cell:"text-center p-0 relative focus-within:relative text-tremor-default text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis",day:"h-9 w-9 p-0 hover:bg-tremor-background-subtle dark:hover:bg-dark-tremor-background-subtle outline-tremor-brand dark:outline-dark-tremor-brand rounded-tremor-default",day_today:"font-bold",day_selected:"aria-selected:bg-tremor-background-emphasis aria-selected:text-tremor-content-inverted dark:aria-selected:bg-dark-tremor-background-emphasis dark:aria-selected:text-dark-tremor-content-inverted ",day_disabled:"text-tremor-content-subtle dark:text-dark-tremor-content-subtle disabled:hover:bg-transparent",day_outside:"text-tremor-content-subtle dark:text-dark-tremor-content-subtle"},v),components:{IconLeft:r=>{var a=__rest$2(r,[]);return React.createElement(r$b,Object.assign({className:"h-4 w-4"},a))},IconRight:r=>{var a=__rest$2(r,[]);return React.createElement(r$a,Object.assign({className:"h-4 w-4"},a))},Caption:r=>{var u=__rest$2(r,[]);const{goToMonth:b,nextMonth:f,previousMonth:k,currentMonth:x}=useNavigation();return React.createElement("div",{className:"flex justify-between items-center"},React.createElement("div",{className:"flex items-center space-x-1"},g&&React.createElement(n$8,{onClick:()=>x&&b(addYears(x,-1)),icon:r$9}),React.createElement(n$8,{onClick:()=>k&&b(k),icon:r$b})),React.createElement(m$c,{className:"text-tremor-default tabular-nums capitalize text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis font-medium"},format$1(u.displayMonth,"LLLL yyy",{locale:p})),React.createElement("div",{className:"flex items-center space-x-1"},React.createElement(n$8,{onClick:()=>f&&b(f),icon:r$a}),g&&React.createElement(n$8,{onClick:()=>x&&b(addYears(x,1)),icon:r$8})))}}},y))}u$2.displayName="DateRangePicker";
|
|
67157
67157
|
|
|
67158
67158
|
const t$3=$$1("DatePicker");
|
|
67159
67159
|
|
|
67160
|
-
const o$
|
|
67160
|
+
const o$9=(o,r)=>{const e=void 0!==r,[a,c]=React.useState(o);return [e?r:a,t=>{e||c(t);}]};
|
|
67161
67161
|
|
|
67162
67162
|
const c$c=$$1("DateRangePicker"),f$2=(t,e,r,o)=>{var i;if(r&&(t=null===(i=o.get(r))||void 0===i?void 0:i.from),t)return startOfDay(t&&!e?t:max$2([t,e]))},s$9=(e,r,o,a)=>{var u,l;if(o&&(e=startOfDay(null!==(l=null===(u=a.get(o))||void 0===u?void 0:u.to)&&void 0!==l?l:startOfToday())),e)return startOfDay(e&&!r?e:min$2([e,r]))},d$b=[{value:"tdy",text:"Today",from:startOfToday()},{value:"w",text:"Last 7 days",from:sub(startOfToday(),{days:7})},{value:"t",text:"Last 30 days",from:sub(startOfToday(),{days:30})},{value:"m",text:"Month to Date",from:startOfMonth(startOfToday())},{value:"y",text:"Year to Date",from:startOfYear(startOfToday())}],g$5=(t,e,r,o)=>{const n=(null==r?void 0:r.code)||"en-US";if(!t&&!e)return "";if(t&&!e){if(o)return format$1(t,o);const e={year:"numeric",month:"short",day:"numeric"};return t.toLocaleDateString(n,e)}if(t&&e){if(isEqual$1(t,e)){if(o)return format$1(t,o);const e={year:"numeric",month:"short",day:"numeric"};return t.toLocaleDateString(n,e)}if(t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()){if(o)return `${format$1(t,o)} - ${format$1(e,o)}`;const r={month:"short",day:"numeric"};return `${t.toLocaleDateString(n,r)} - \n ${e.getDate()}, ${e.getFullYear()}`}{if(o)return `${format$1(t,o)} - ${format$1(e,o)}`;const r={year:"numeric",month:"short",day:"numeric"};return `${t.toLocaleDateString(n,r)} - \n ${e.toLocaleDateString(n,r)}`}}return ""};
|
|
67163
67163
|
|
|
67164
|
-
const t$2=r=>["string","number"].includes(typeof r)?r:r instanceof Array?r.map(t$2).join(""):"object"==typeof r&&r?t$2(r.props.children):void 0;function o$
|
|
67164
|
+
const t$2=r=>["string","number"].includes(typeof r)?r:r instanceof Array?r.map(t$2).join(""):"object"==typeof r&&r?t$2(r.props.children):void 0;function o$8(r){const o=new Map;return React.Children.map(r,(r=>{var e;o.set(r.props.value,null!==(e=t$2(r))&&void 0!==e?e:r.props.value);})),o}function n$7(r,o){return React.Children.map(o,(e=>{var o;if((null!==(o=t$2(e))&&void 0!==o?o:e.props.value).toLowerCase().includes(r.toLowerCase()))return e}))}const a$9=(e,t,o=!1)=>t$e(t?"bg-tremor-background-subtle dark:bg-dark-tremor-background-subtle":"bg-tremor-background dark:bg-dark-tremor-background",!t&&"hover:bg-tremor-background-muted dark:hover:bg-dark-tremor-background-muted",e?"text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis":"text-tremor-content dark:text-dark-tremor-content",t&&"text-tremor-content-subtle dark:text-dark-tremor-content-subtle",o&&"text-rose-500",o?"border-rose-500":"border-tremor-border dark:border-dark-tremor-border");function d$a(r){return null!=r&&""!==r}
|
|
67165
67165
|
|
|
67166
|
-
const w$1=startOfToday(),v=React.forwardRef(((d,v)=>{var x;const{value:N,defaultValue:j,onValueChange:C,minDate:y,maxDate:D,placeholder:E="Select date",disabled:R=!1,locale:X=y$7,enableClear:S=!0,displayFormat:O,className:P,enableYearNavigation:I=!1,weekStartsOn:V=0}=d,Y=__rest$2(d,["value","defaultValue","onValueChange","minDate","maxDate","placeholder","disabled","locale","enableClear","displayFormat","className","enableYearNavigation","weekStartsOn"]),[M,U]=o$
|
|
67166
|
+
const w$1=startOfToday(),v=React.forwardRef(((d,v)=>{var x;const{value:N,defaultValue:j,onValueChange:C,minDate:y,maxDate:D,placeholder:E="Select date",disabled:R=!1,locale:X=y$7,enableClear:S=!0,displayFormat:O,className:P,enableYearNavigation:I=!1,weekStartsOn:V=0}=d,Y=__rest$2(d,["value","defaultValue","onValueChange","minDate","maxDate","placeholder","disabled","locale","enableClear","displayFormat","className","enableYearNavigation","weekStartsOn"]),[M,U]=o$9(j,N),z=React.useMemo((()=>{const e=[];return y&&e.push({before:y}),D&&e.push({after:D}),e}),[y,D]),B=M?g$5(M,void 0,X,O):E,F=startOfMonth(null!==(x=null!=M?M:D)&&void 0!==x?x:w$1),L=S&&!R;return React.createElement(kt,Object.assign({ref:v,as:"div",className:t$e("relative w-full min-w-[10rem] text-tremor-default","focus:ring-2 focus:ring-tremor-brand-muted dark:focus:ring-dark-tremor-brand-muted",P)},Y),React.createElement(kt.Button,{disabled:R,className:t$e("w-full outline-none text-left whitespace-nowrap truncate focus:ring-2 transition duration-100 rounded-tremor-default flex flex-nowrap","border-tremor-border shadow-tremor-input text-tremor-content-emphasis focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:text-dark-tremor-content-emphasis dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",t$g.lg.paddingLeft,L?t$g.fourXl.paddingRight:t$g.twoXl.paddingRight,t$g.sm.paddingY,r$l.sm.all,a$9(d$a(M),R))},React.createElement(t$4,{className:t$e(t$3("calendarIcon"),"flex-none shrink-0","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.lg.height,h$7.lg.width,t$g.threeXs.negativeMarginLeft,t$g.sm.marginRight),"aria-hidden":"true"}),React.createElement("p",{className:"truncate"},B)),L&&M?React.createElement("button",{type:"button",className:t$e("absolute outline-none inset-y-0 right-0 flex items-center transition duration-100",t$g.twoXl.marginRight),onClick:e=>{e.preventDefault(),null==C||C(void 0),U(void 0);}},React.createElement(l$c,{className:t$e("flex-none","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.md.height,h$7.md.width)})):null,React.createElement(kt.Panel,{className:t$e("absolute z-10 divide-y overflow-y-auto min-w-min left-0 outline-none rounded-tremor-default p-3","bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown","dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border dark:shadow-dark-tremor-dropdown",t$g.twoXs.marginTop,t$g.twoXs.marginBottom,r$l.sm.all)},(({close:e})=>React.createElement(u$2,{showOutsideDays:!0,mode:"single",defaultMonth:F,selected:M,weekStartsOn:V,onSelect:r=>{null==C||C(r),U(r),e();},locale:X,disabled:z,enableYearNavigation:I}))))}));v.displayName="DatePicker";
|
|
67167
67167
|
|
|
67168
|
-
const r$
|
|
67168
|
+
const r$7=r=>{var o=__rest$2(r,[]);return React.createElement("svg",Object.assign({},o,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2.5"}),React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"}))};
|
|
67169
67169
|
|
|
67170
|
-
const p$6=$$1("Select"),g$4=React.forwardRef(((s,g)=>{const{defaultValue:h,value:k,onValueChange:w,placeholder:x="Select...",disabled:v=!1,icon:N,enableClear:E=!0,children:j,className:y}=s,C=__rest$2(s,["defaultValue","value","onValueChange","placeholder","disabled","icon","enableClear","children","className"]),[I,V]=o$
|
|
67170
|
+
const p$6=$$1("Select"),g$4=React.forwardRef(((s,g)=>{const{defaultValue:h,value:k,onValueChange:w,placeholder:x="Select...",disabled:v=!1,icon:N,enableClear:E=!0,children:j,className:y}=s,C=__rest$2(s,["defaultValue","value","onValueChange","placeholder","disabled","icon","enableClear","children","className"]),[I,V]=o$9(h,k),X=N,R=React.useMemo((()=>o$8(j)),[j]);return React.createElement(Nt,Object.assign({as:"div",ref:g,defaultValue:I,value:I,onChange:e=>{null==w||w(e),V(e);},disabled:v,className:t$e("w-full min-w-[10rem] relative text-tremor-default",y)},C),(({value:e})=>{var a;return React.createElement(React.Fragment,null,React.createElement(Nt.Button,{className:t$e("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100","border-tremor-border shadow-tremor-input focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",X?"p-10 -ml-0.5":t$g.lg.paddingLeft,t$g.fourXl.paddingRight,t$g.sm.paddingY,r$l.sm.all,a$9(d$a(e),v))},X&&React.createElement("span",{className:t$e("absolute inset-y-0 left-0 flex items-center ml-px",t$g.md.paddingLeft)},React.createElement(X,{className:t$e(p$6("Icon"),"flex-none","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.lg.height,h$7.lg.width)})),React.createElement("span",{className:"w-[90%] block truncate"},e&&null!==(a=R.get(e))&&void 0!==a?a:x),React.createElement("span",{className:t$e("absolute inset-y-0 right-0 flex items-center",t$g.lg.marginRight)},React.createElement(r$7,{className:t$e(p$6("arrowDownIcon"),"flex-none","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.md.height,h$7.md.width)}))),E&&I?React.createElement("button",{type:"button",className:t$e("absolute inset-y-0 right-0 flex items-center",t$g.fourXl.marginRight),onClick:e=>{e.preventDefault(),V(""),null==w||w("");}},React.createElement(l$c,{className:t$e(p$6("clearIcon"),"flex-none","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.md.height,h$7.md.width)})):null,React.createElement(Nt.Options,{className:t$e("absolute z-10 divide-y overflow-y-auto max-h-[228px] w-full left-0 outline-none rounded-tremor-default","bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown","dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border dark:shadow-dark-tremor-dropdown",t$g.twoXs.marginTop,t$g.twoXs.marginBottom,r$l.sm.all)},j))}))}));g$4.displayName="Select";
|
|
67171
67171
|
|
|
67172
67172
|
const i$b=$$1("SelectItem"),s$8=React.forwardRef(((o,s)=>{const{value:c,icon:d,className:l,children:u}=o,g=__rest$2(o,["value","icon","className","children"]),p=d;return React.createElement(Nt.Option,Object.assign({className:t$e(i$b("root"),"flex justify-start items-center cursor-default text-tremor-default","ui-active:bg-tremor-background-muted ui-active:text-tremor-content-strong ui-selected:text-tremor-content-strong ui-selected:bg-tremor-background-muted text-tremor-content-emphasis","dark:ui-active:bg-dark-tremor-background-muted dark:ui-active:text-dark-tremor-content-strong dark:ui-selected:text-dark-tremor-content-strong dark:ui-selected:bg-dark-tremor-background-muted dark:text-dark-tremor-content-emphasis",t$g.md.paddingX,t$g.md.paddingY,l),ref:s,key:c,value:c},g),p&&React.createElement(p,{className:t$e(i$b("icon"),"flex-none","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.lg.width,t$g.xs.marginRight)}),React.createElement("span",{className:"whitespace-nowrap truncate"},null!=u?u:c))}));s$8.displayName="SelectItem";
|
|
67173
67173
|
|
|
67174
|
-
const C=startOfToday(),X$1=React.forwardRef(((m,X)=>{var R,D;const{value:O,defaultValue:V,onValueChange:B,enableSelect:I=!0,minDate:_,maxDate:z,placeholder:F="Select range",selectPlaceholder:M="Select range",disabled:P=!1,locale:Y=y$7,enableClear:L=!0,displayFormat:T,children:U,className:q,enableYearNavigation:A=!1,weekStartsOn:G=0}=m,H=__rest$2(m,["value","defaultValue","onValueChange","enableSelect","minDate","maxDate","placeholder","selectPlaceholder","disabled","locale","enableClear","displayFormat","children","className","enableYearNavigation","weekStartsOn"]),[J,K]=o$
|
|
67174
|
+
const C=startOfToday(),X$1=React.forwardRef(((m,X)=>{var R,D;const{value:O,defaultValue:V,onValueChange:B,enableSelect:I=!0,minDate:_,maxDate:z,placeholder:F="Select range",selectPlaceholder:M="Select range",disabled:P=!1,locale:Y=y$7,enableClear:L=!0,displayFormat:T,children:U,className:q,enableYearNavigation:A=!1,weekStartsOn:G=0}=m,H=__rest$2(m,["value","defaultValue","onValueChange","enableSelect","minDate","maxDate","placeholder","selectPlaceholder","disabled","locale","enableClear","displayFormat","children","className","enableYearNavigation","weekStartsOn"]),[J,K]=o$9(V,O),[Q,W]=React.useState(!1),[Z,$]=React.useState(!1),ee=React.useMemo((()=>{const e=[];return _&&e.push({before:_}),z&&e.push({after:z}),e}),[_,z]),re=React.useMemo((()=>{const e=new Map;return U?React.Children.forEach(U,(r=>{var t;e.set(r.props.value,{text:null!==(t=t$2(r))&&void 0!==t?t:r.props.value,from:r.props.from,to:r.props.to});})):d$b.forEach((r=>{e.set(r.value,{text:r.text,from:r.from,to:C});})),e}),[U]),te=React.useMemo((()=>{if(U)return o$8(U);const e=new Map;return d$b.forEach((r=>e.set(r.value,r.text))),e}),[U]),ae=(null==J?void 0:J.selectValue)||"",oe=f$2(null==J?void 0:J.from,_,ae,re),de=s$9(null==J?void 0:J.to,z,ae,re),le=oe||de?g$5(oe,de,Y,T):F,ne=startOfMonth(null!==(D=null!==(R=null!=de?de:oe)&&void 0!==R?R:z)&&void 0!==D?D:C),me=L&&!P;return React.createElement("div",Object.assign({ref:X,className:t$e("w-full min-w-[10rem] relative flex justify-between text-tremor-default max-w-sm shadow-tremor-input dark:shadow-dark-tremor-input rounded-tremor-default",q)},H),React.createElement(kt,{as:"div",className:t$e("w-full overflow-hidden",I?"rounded-l-tremor-default":"rounded-tremor-default",Q&&"ring-2 ring-tremor-brand-muted dark:ring-dark-tremor-brand-muted z-10")},React.createElement("div",{className:"relative w-full overflow-hidden"},React.createElement(kt.Button,{onFocus:()=>W(!0),onBlur:()=>W(!1),disabled:P,className:t$e("w-full outline-none text-left whitespace-nowrap truncate focus:ring-2 transition duration-100 rounded-l-tremor-default flex flex-nowrap","rounded-l-tremor-default border-tremor-border text-tremor-content-emphasis focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:text-dark-tremor-content-emphasis dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",I?"rounded-l-tremor-default":"rounded-tremor-default",t$g.lg.paddingLeft,me?t$g.fourXl.paddingRight:t$g.twoXl.paddingRight,t$g.sm.paddingY,r$l.sm.all,a$9(d$a(oe||de),P))},React.createElement(t$4,{className:t$e(c$c("calendarIcon"),"flex-none shrink-0","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.lg.height,h$7.lg.width,t$g.threeXs.negativeMarginLeft,t$g.sm.marginRight),"aria-hidden":"true"}),React.createElement("p",{className:"truncate"},le)),me&&oe?React.createElement("button",{type:"button",className:t$e("absolute outline-none inset-y-0 right-0 flex items-center transition duration-100",t$g.twoXl.marginRight),onClick:e=>{e.preventDefault(),null==B||B({}),K({});}},React.createElement(l$c,{className:t$e(c$c("clearIcon"),"flex-none","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.md.height,h$7.md.width)})):null),React.createElement(kt.Panel,{focus:!0,className:t$e("absolute z-10 divide-y overflow-y-auto min-w-min left-0 outline-none rounded-tremor-default p-3","bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown","dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border dark:shadow-dark-tremor-dropdown",t$g.twoXs.marginTop,t$g.twoXs.marginBottom,r$l.sm.all)},React.createElement(u$2,Object.assign({mode:"range",showOutsideDays:!0,defaultMonth:ne,selected:{from:oe,to:de},onSelect:e=>{null==B||B({from:null==e?void 0:e.from,to:null==e?void 0:e.to}),K({from:null==e?void 0:e.from,to:null==e?void 0:e.to});},locale:Y,disabled:ee,enableYearNavigation:A,classNames:{day_range_middle:t$e("!rounded-none aria-selected:!bg-tremor-background-subtle aria-selected:dark:!bg-dark-tremor-background-subtle aria-selected:!text-tremor-content aria-selected:dark:!bg-dark-tremor-background-subtle"),day_range_start:"rounded-r-none rounded-l-tremor-small aria-selected:text-tremor-brand-inverted dark:aria-selected:text-dark-tremor-brand-inverted",day_range_end:"rounded-l-none rounded-r-tremor-small aria-selected:text-tremor-brand-inverted dark:aria-selected:text-dark-tremor-brand-inverted"},weekStartsOn:G},m)))),I&&React.createElement(Nt,{as:"div",className:t$e("w-48 overflow-hidden -ml-px rounded-r-tremor-default",Z&&"ring-2 ring-tremor-brand-muted dark:focus:ring-dark-tremor-brand-muted z-10"),value:ae,onChange:e=>{const{from:r,to:t}=re.get(e),a=null!=t?t:C;null==B||B({from:r,to:a,selectValue:e}),K({from:r,to:a,selectValue:e});},disabled:P},(({value:e})=>{var r;return React.createElement(React.Fragment,null,React.createElement(Nt.Button,{onFocus:()=>$(!0),onBlur:()=>$(!1),className:t$e("w-full outline-none text-left whitespace-nowrap truncate rounded-r-tremor-default transition duration-100","border-tremor-border shadow-tremor-input text-tremor-content-emphasis focus:border-tremor-brand-subtle","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:text-dark-tremor-content-emphasis dark:focus:border-dark-tremor-brand-subtle",t$g.twoXl.paddingLeft,t$g.twoXl.paddingRight,t$g.sm.paddingY,r$l.sm.all,a$9(d$a(e),P))},e&&null!==(r=te.get(e))&&void 0!==r?r:M),React.createElement(Nt.Options,{className:t$e("absolute z-10 divide-y overflow-y-auto w-full inset-x-0 right-0 outline-none","shadow-tremor-dropdown bg-tremor-background border-tremor-border divide-tremor-border rounded-tremor-default","dark:shadow-dark-tremor-dropdown dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border",t$g.twoXs.marginTop,t$g.twoXs.marginBottom,r$l.sm.all)},null!=U?U:d$b.map((e=>React.createElement(s$8,{key:e.value,value:e.value},e.text)))))})))}));X$1.displayName="DateRangePicker";
|
|
67175
67175
|
|
|
67176
67176
|
const l$b=React.forwardRef(((l,r)=>{const{value:c,className:s,children:m}=l,o=__rest$2(l,["value","className","children"]);return React.createElement(s$8,Object.assign({ref:r,className:s,value:c},o),null!=m?m:c)}));l$b.displayName="DateRangePickerItem";
|
|
67177
67177
|
|
|
67178
|
-
const o$
|
|
67178
|
+
const o$7=React.createContext(a$j.Blue);
|
|
67179
67179
|
|
|
67180
|
-
const o$
|
|
67180
|
+
const o$6=React.createContext(0);
|
|
67181
67181
|
|
|
67182
67182
|
const t$1=React.createContext(void 0);
|
|
67183
67183
|
|
|
@@ -67185,69 +67185,69 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
67185
67185
|
|
|
67186
67186
|
const l$a=l=>{var r=__rest$2(l,[]);return React.createElement("svg",Object.assign({},r,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}),React.createElement("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))};
|
|
67187
67187
|
|
|
67188
|
-
const r$
|
|
67188
|
+
const r$6=r=>{var o=__rest$2(r,[]);return React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),React.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),React.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))};
|
|
67189
67189
|
|
|
67190
|
-
const x=$$1("MultiSelect"),k$1=React.forwardRef(((l,k)=>{const{defaultValue:w,value:v,onValueChange:E,placeholder:N="Select...",placeholderSearch:j="Search",disabled:y=!1,icon:C,children:I,className:S}=l,R=__rest$2(l,["defaultValue","value","onValueChange","placeholder","placeholderSearch","disabled","icon","children","className"]),V=C,[X,D]=o$
|
|
67190
|
+
const x$1=$$1("MultiSelect"),k$1=React.forwardRef(((l,k)=>{const{defaultValue:w,value:v,onValueChange:E,placeholder:N="Select...",placeholderSearch:j="Search",disabled:y=!1,icon:C,children:I,className:S}=l,R=__rest$2(l,["defaultValue","value","onValueChange","placeholder","placeholderSearch","disabled","icon","children","className"]),V=C,[X,D]=o$9(w,v),B=n$7("",I),[M,O]=React.useState(""),z=(null!=X?X:[]).length>0,A=React.useMemo((()=>M?n$7(M,I):B),[M,I,B]),L=()=>{O("");};return React.createElement(Nt,Object.assign({as:"div",ref:k,defaultValue:X,value:X,onChange:e=>{null==E||E(e),D(e);},disabled:y,className:t$e("w-full min-w-[10rem] relative text-tremor-default",S)},R,{multiple:!0}),(({value:e})=>React.createElement(React.Fragment,null,React.createElement(Nt.Button,{className:t$e("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100","border-tremor-border shadow-tremor-input focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",V?"p-10 -ml-0.5":t$g.lg.paddingLeft,t$g.fourXl.paddingRight,t$g.xs.paddingY,r$l.sm.all,a$9(e.length>0,y))},V&&React.createElement("span",{className:t$e("absolute inset-y-0 left-0 flex items-center ml-px",t$g.md.paddingLeft)},React.createElement(V,{className:t$e(x$1("Icon"),"flex-none","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.lg.height,h$7.lg.width)})),React.createElement("div",{className:"h-6 flex items-center"},e.length>0?React.createElement("div",{className:"flex flex-nowrap overflow-x-scroll [&::-webkit-scrollbar]:hidden [scrollbar-width:none] gap-x-1 mr-5 -ml-1.5 relative"},B.filter((t=>e.includes(t.props.value))).map(((t,r)=>{var a;return React.createElement("div",{key:r,className:t$e("max-w-[100px] lg:max-w-[200px] flex justify-center items-center pl-2 pr-1.5 py-1 font-medium","rounded-tremor-small","bg-tremor-background-muted dark:bg-dark-tremor-background-muted","bg-tremor-background-subtle dark:bg-dark-tremor-background-subtle","text-tremor-content-default dark:text-dark-tremor-content-default","text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis")},React.createElement("div",{className:"text-xs truncate "},null!==(a=t.props.children)&&void 0!==a?a:t.props.value),React.createElement("div",{onClick:r=>{r.preventDefault();const a=e.filter((e=>e!==t.props.value));null==E||E(a),D(a);}},React.createElement(r$6,{className:t$e(x$1("clearIconItem"),"cursor-pointer rounded-tremor-full w-3.5 h-3.5 ml-2","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle dark:hover:text-tremor-content")})))}))):React.createElement("span",null,N)),React.createElement("span",{className:t$e("absolute inset-y-0 right-0 flex items-center",t$g.md.marginRight)},React.createElement(r$7,{className:t$e(x$1("arrowDownIcon"),"flex-none","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.md.height,h$7.md.width)}))),z&&!y?React.createElement("button",{type:"button",className:t$e("absolute inset-y-0 right-0 flex items-center",t$g.fourXl.marginRight),onClick:e=>{e.preventDefault(),D([]),null==E||E([]);}},React.createElement(l$c,{className:t$e(x$1("clearIconAllItems"),"flex-none","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.md.height,h$7.md.width)})):null,React.createElement(Nt.Options,{className:t$e("absolute z-10 divide-y overflow-y-auto max-h-[228px] w-full left-0 outline-none rounded-tremor-default","bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown","dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border dark:shadow-dark-tremor-dropdown",t$g.twoXs.marginTop,t$g.twoXs.marginBottom,r$l.sm.all)},React.createElement("div",{className:t$e("flex items-center w-full","bg-tremor-background-muted","dark:bg-dark-tremor-background-muted",t$g.md.paddingX)},React.createElement("span",null,React.createElement(l$a,{className:t$e("flex-none","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",t$g.sm.marginRight,h$7.md.height,h$7.md.width)})),React.createElement("input",{name:"search",type:"input",autoComplete:"off",placeholder:j,className:t$e("w-full focus:outline-none focus:ring-none bg-transparent text-tremor-default","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis",t$g.sm.paddingY),onKeyDown:e=>{"Space"===e.code&&""!==e.target.value&&e.stopPropagation();},onChange:e=>O(e.target.value),value:M})),React.createElement(a$8.Provider,Object.assign({},{onBlur:{handleResetSearch:L}},{value:{selectedValue:e}}),A)))))}));k$1.displayName="MultiSelect";
|
|
67191
67191
|
|
|
67192
67192
|
const i$a=$$1("MultiSelectItem"),d$9=React.forwardRef(((n,d)=>{const{value:l,className:u,children:p}=n,x=__rest$2(n,["value","className","children"]),{selectedValue:k}=React.useContext(a$8),f=l$i(l,k);return React.createElement(Nt.Option,Object.assign({className:t$e(i$a("root"),"flex justify-start items-center cursor-default text-tremor-default","ui-active:bg-tremor-background-muted ui-active:text-tremor-content-strong ui-selected:text-tremor-content-strong text-tremor-content-emphasis","dark:ui-active:bg-dark-tremor-background-muted dark:ui-active:text-dark-tremor-content-strong dark:ui-selected:text-dark-tremor-content-strong dark:ui-selected:bg-dark-tremor-background-muted dark:text-dark-tremor-content-emphasis",t$g.md.paddingX,t$g.md.paddingY,u),ref:d,key:l,value:l},x),React.createElement("input",{type:"checkbox",className:t$e(i$a("checkbox"),"flex-none focus:ring-none focus:outline-none cursor-pointer","accent-tremor-brand","dark:accent-dark-tremor-brand",t$g.md.marginRight),checked:f,readOnly:!0}),React.createElement("span",{className:"whitespace-nowrap truncate"},null!=p?p:l))}));d$9.displayName="MultiSelectItem";
|
|
67193
67193
|
|
|
67194
|
-
const r$
|
|
67194
|
+
const r$5=r=>{var o=__rest$2(r,[]);return React.createElement("svg",Object.assign({},o,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2.5"}),React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20 12H4"}))};
|
|
67195
67195
|
|
|
67196
|
-
const r$
|
|
67196
|
+
const r$4=r=>{var o=__rest$2(r,[]);return React.createElement("svg",Object.assign({},o,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2.5"}),React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4v16m8-8H4"}))};
|
|
67197
67197
|
|
|
67198
|
-
const r$
|
|
67198
|
+
const r$3=r=>{var l=__rest$2(r,[]);return React.createElement("svg",Object.assign({},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),React.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"}))};
|
|
67199
67199
|
|
|
67200
|
-
const r$
|
|
67200
|
+
const r$2=r=>{var o=__rest$2(r,[]);return React.createElement("svg",Object.assign({},o,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor"}),React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))};
|
|
67201
67201
|
|
|
67202
|
-
const r$
|
|
67202
|
+
const r$1=r=>{var o=__rest$2(r,[]);return React.createElement("svg",Object.assign({},o,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor"}),React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"}))};
|
|
67203
67203
|
|
|
67204
|
-
const b$
|
|
67204
|
+
const b$4=React.forwardRef(((b,f)=>{const{value:h,defaultValue:k,type:x,placeholder:w="Type...",icon:v,error:N=!1,errorMessage:E,disabled:j=!1,stepper:C,makeInputClassName:y,className:I,onChange:V,onValueChange:M}=b,R=__rest$2(b,["value","defaultValue","type","placeholder","icon","error","errorMessage","disabled","stepper","makeInputClassName","className","onChange","onValueChange"]),[B,F]=React.useState(!1),[L,O]=React.useState(!1),T=React.useCallback((()=>O(!L)),[L,O]),z=v,U=React.useRef(null),X=d$a(h||k),Y=e=>{var t,r;!1===e?null===(t=U.current)||void 0===t||t.blur():null===(r=U.current)||void 0===r||r.focus(),F(e);};return React.createElement(React.Fragment,null,React.createElement("div",{className:t$e(y("root"),"relative w-full flex items-center min-w-[10rem] outline-none rounded-tremor-default","shadow-tremor-input","dark:shadow-dark-tremor-input",a$9(X,j,N),B&&t$e("ring-2 transition duration-100","border-tremor-brand-subtle ring-tremor-brand-muted","dark:border-dark-tremor-brand-subtle dark:ring-dark-tremor-brand-muted"),r$l.sm.all,I),onClick:()=>{j||Y(!0);},onFocus:()=>{Y(!0);},onBlur:()=>{Y(!1);}},z?React.createElement(z,{className:t$e(y("icon"),"shrink-0","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.lg.height,h$7.lg.width,t$g.md.marginLeft)}):null,React.createElement("input",Object.assign({ref:n$i([U,f]),defaultValue:k,value:h,type:L?"text":x,className:t$e(y("input"),"w-full focus:outline-none focus:ring-0 border-none bg-transparent text-tremor-default rounded-tremor-default","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",z?t$g.sm.paddingLeft:t$g.lg.paddingLeft,N?t$g.lg.paddingRight:t$g.twoXl.paddingRight,t$g.sm.paddingY,j?"placeholder:text-tremor-content-subtle dark:placeholder:text-dark-tremor-content-subtle":"placeholder:text-tremor-content dark:placeholder:text-dark-tremor-content"),placeholder:w,disabled:j,"data-testid":"base-input",onChange:e=>{null==V||V(e),null==M||M(e.target.value);}},R)),"password"!==x||j?null:React.createElement("button",{className:t$e(y("toggleButton"),"mr-2"),type:"button",onClick:()=>T()},L?React.createElement(r$1,{className:t$e("flex-none h-5 w-5 transition","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle hover:dark:text-dark-tremor-content")}):React.createElement(r$2,{className:t$e("flex-none h-5 w-5 transition","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle hover:dark:text-dark-tremor-content")})),N?React.createElement(r$3,{className:t$e(y("errorIcon"),"text-rose-500 shrink-0",t$g.md.marginRight,h$7.lg.height,h$7.lg.width)}):null,null!=C?C:null),N&&E?React.createElement("p",{className:t$e(y("errorMessage"),"text-sm text-rose-500 mt-1")},E):null)}));b$4.displayName="BaseInput";
|
|
67205
67205
|
|
|
67206
|
-
const p$5="flex mx-auto text-tremor-content-subtle dark:text-dark-tremor-content-subtle",i$9="cursor-pointer hover:text-tremor-content dark:hover:text-dark-tremor-content",d$8=React.forwardRef(((d,c)=>{const{onSubmit:m,enableStepper:b=!0,disabled:v,onValueChange:f,onChange:k}=d,w=__rest$2(d,["onSubmit","enableStepper","disabled","onValueChange","onChange"]),y=React.useRef(null),[h,x]=React.useState(!1),g=React.useCallback((()=>{x(!0);}),[]),C=React.useCallback((()=>{x(!1);}),[]),[D,E]=React.useState(!1),N=React.useCallback((()=>{E(!0);}),[]),I=React.useCallback((()=>{E(!1);}),[]);return React.createElement(b$
|
|
67206
|
+
const p$5="flex mx-auto text-tremor-content-subtle dark:text-dark-tremor-content-subtle",i$9="cursor-pointer hover:text-tremor-content dark:hover:text-dark-tremor-content",d$8=React.forwardRef(((d,c)=>{const{onSubmit:m,enableStepper:b=!0,disabled:v,onValueChange:f,onChange:k}=d,w=__rest$2(d,["onSubmit","enableStepper","disabled","onValueChange","onChange"]),y=React.useRef(null),[h,x]=React.useState(!1),g=React.useCallback((()=>{x(!0);}),[]),C=React.useCallback((()=>{x(!1);}),[]),[D,E]=React.useState(!1),N=React.useCallback((()=>{E(!0);}),[]),I=React.useCallback((()=>{E(!1);}),[]);return React.createElement(b$4,Object.assign({type:"number",ref:n$i([y,c]),disabled:v,makeInputClassName:$$1("NumberInput"),onKeyDown:e=>{var t;if("Enter"===e.key&&!e.ctrlKey&&!e.altKey&&!e.shiftKey){const e=null===(t=y.current)||void 0===t?void 0:t.value;null==m||m(parseFloat(null!=e?e:""));}"ArrowDown"===e.key&&g(),"ArrowUp"===e.key&&N();},onKeyUp:e=>{"ArrowDown"===e.key&&C(),"ArrowUp"===e.key&&I();},onChange:e=>{v||(null==f||f(parseFloat(e.target.value)),null==k||k(e));},stepper:b?React.createElement("div",{className:t$e("flex justify-center align-middle")},React.createElement("div",{tabIndex:-1,onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onTouchStart:e=>e.preventDefault(),onMouseUp:()=>{var e,t;v||(null===(e=y.current)||void 0===e||e.stepDown(),null===(t=y.current)||void 0===t||t.dispatchEvent(new Event("input",{bubbles:!0})));},className:t$e(!v&&i$9,p$5,"group py-[10px] px-2.5 border-l border-tremor-border dark:border-dark-tremor-border")},React.createElement(r$5,{"data-testid":"step-down",className:(h?"scale-95":"")+" h-4 w-4 duration-75 transition group-active:scale-95"})),React.createElement("div",{tabIndex:-1,onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onTouchStart:e=>e.preventDefault(),onMouseUp:()=>{var e,t;v||(null===(e=y.current)||void 0===e||e.stepUp(),null===(t=y.current)||void 0===t||t.dispatchEvent(new Event("input",{bubbles:!0})));},className:t$e(!v&&i$9,p$5,"group py-[10px] px-2.5 border-l border-tremor-border dark:border-dark-tremor-border")},React.createElement(r$4,{"data-testid":"step-up",className:(D?"scale-95":"")+" h-4 w-4 duration-75 transition group-active:scale-95"}))):null},w))}));d$8.displayName="NumberInput";
|
|
67207
67207
|
|
|
67208
|
-
const g$3=$$1("SearchSelect"),k=$$1("SearchSelect"),w=React.forwardRef(((s,w)=>{const{defaultValue:x,value:v,onValueChange:N,placeholder:E="Select...",disabled:j=!1,icon:y,enableClear:C=!0,children:S,className:I}=s,V=__rest$2(s,["defaultValue","value","onValueChange","placeholder","disabled","icon","enableClear","children","className"]),[X,D]=React.useState(""),[R,z]=o$
|
|
67208
|
+
const g$3=$$1("SearchSelect"),k=$$1("SearchSelect"),w=React.forwardRef(((s,w)=>{const{defaultValue:x,value:v,onValueChange:N,placeholder:E="Select...",disabled:j=!1,icon:y,enableClear:C=!0,children:S,className:I}=s,V=__rest$2(s,["defaultValue","value","onValueChange","placeholder","disabled","icon","enableClear","children","className"]),[X,D]=React.useState(""),[R,z]=o$9(x,v),B=y,L=React.useMemo((()=>o$8(S)),[S]),O=React.useMemo((()=>n$7(X,S)),[X,S]);return React.createElement(qo,Object.assign({as:"div",ref:w,defaultValue:R,value:R,onChange:e=>{null==N||N(e),z(e);},disabled:j,className:t$e("w-full min-w-[10rem] relative text-tremor-default",I)},V),(({value:e})=>React.createElement(React.Fragment,null,React.createElement(qo.Button,{className:"w-full"},B&&React.createElement("span",{className:t$e("absolute inset-y-0 left-0 flex items-center ml-px",t$g.md.paddingLeft)},React.createElement(B,{className:t$e(g$3("Icon"),"flex-none","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.lg.height,h$7.lg.width)})),React.createElement(qo.Input,{className:t$e("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100 text-tremor-default pr-14","border-tremor-border shadow-tremor-input focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",B?"p-10 -ml-0.5":t$g.lg.paddingLeft,t$g.sm.paddingY,r$l.sm.all,j?"placeholder:text-tremor-content-subtle dark:placeholder:text-tremor-content-subtle":"placeholder:text-tremor-content dark:placeholder:text-tremor-content",a$9(d$a(e),j)),placeholder:E,onChange:e=>D(e.target.value),displayValue:e=>{var t;return null!==(t=L.get(e))&&void 0!==t?t:""}}),React.createElement("div",{className:t$e("absolute inset-y-0 right-0 flex items-center",t$g.md.paddingRight)},React.createElement(r$7,{className:t$e(g$3("arrowDownIcon"),"flex-none","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.md.height,h$7.md.width)}))),C&&R?React.createElement("button",{type:"button",className:t$e("absolute inset-y-0 right-0 flex items-center",t$g.fourXl.marginRight),onClick:e=>{e.preventDefault(),z(""),D(""),null==N||N("");}},React.createElement(l$c,{className:t$e(k("clearIcon"),"flex-none","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.md.height,h$7.md.width)})):null,O.length>0&&React.createElement(qo.Options,{className:t$e("absolute z-10 divide-y overflow-y-auto max-h-[228px] w-full left-0 outline-none rounded-tremor-default text-tremor-default","bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown","dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border dark:shadow-dark-tremor-dropdown",t$g.twoXs.marginTop,t$g.twoXs.marginBottom,r$l.sm.all)},O))))}));w.displayName="SearchSelect";
|
|
67209
67209
|
|
|
67210
|
-
const i$8=$$1("SearchSelectItem"),c$b=React.forwardRef(((o,c)=>{const{value:s,icon:d,className:l,children:u}=o,g=__rest$2(o,["value","icon","className","children"]),p=d;return React.createElement(qo
|
|
67210
|
+
const i$8=$$1("SearchSelectItem"),c$b=React.forwardRef(((o,c)=>{const{value:s,icon:d,className:l,children:u}=o,g=__rest$2(o,["value","icon","className","children"]),p=d;return React.createElement(qo.Option,Object.assign({className:t$e(i$8("root"),"flex justify-start items-center cursor-default text-tremor-default","ui-active:bg-tremor-background-muted ui-active:text-tremor-content-strong ui-selected:text-tremor-content-strong ui-selected:bg-tremor-background-muted text-tremor-content-emphasis","dark:ui-active:bg-dark-tremor-background-muted dark:ui-active:text-dark-tremor-content-strong dark:ui-selected:text-dark-tremor-content-strong dark:ui-selected:bg-dark-tremor-background-muted dark:text-dark-tremor-content-emphasis",t$g.md.paddingX,t$g.md.paddingY,l),ref:c,key:s,value:s},g),p&&React.createElement(p,{className:t$e(i$8("icon"),"flex-none","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",h$7.lg.height,h$7.lg.width,t$g.lg.marginRight)}),React.createElement("span",{className:"whitespace-nowrap truncate"},null!=u?u:s))}));c$b.displayName="SearchSelectItem";
|
|
67211
67211
|
|
|
67212
|
-
const n$6=$$1("TabList"),c$a=React.createContext("line"),d$7={line:t$e("flex","border-tremor-border","dark:border-dark-tremor-border",t$g.twoXl.spaceX,r$
|
|
67212
|
+
const n$6=$$1("TabList"),c$a=React.createContext("line"),d$7={line:t$e("flex","border-tremor-border","dark:border-dark-tremor-border",t$g.twoXl.spaceX,r$l.sm.bottom),solid:t$e("inline-flex p-0.5 rounded-tremor-default","bg-tremor-background-subtle","dark:bg-dark-tremor-background-subtle",t$g.xs.spaceX)},b$3=React.forwardRef(((r,t)=>{const{color:s,variant:i="line",children:b,className:p}=r,f=__rest$2(r,["color","variant","children","className"]);return React.createElement(rt.List,Object.assign({ref:t,className:t$e(n$6("root"),"justify-start overflow-x-clip",d$7[i],p)},f),React.createElement(c$a.Provider,{value:i},React.createElement(o$7.Provider,{value:s},b)))}));b$3.displayName="TabList";
|
|
67213
67213
|
|
|
67214
|
-
const b$
|
|
67214
|
+
const b$2=$$1("Tab");function p$4(e,r){switch(e){case"line":return t$e("ui-selected:border-b-2 hover:border-b-2 border-transparent transition duration-100","hover:border-tremor-content hover:text-tremor-content-emphasis text-tremor-content","dark:hover:border-dark-tremor-content-emphasis dark:hover:text-dark-tremor-content-emphasis dark:text-dark-tremor-content",r?c$l(r,e$4.border).selectBorderColor:"ui-selected:border-tremor-brand dark:ui-selected:border-dark-tremor-brand",t$g.px.negativeMarginBottom,t$g.sm.paddingX,t$g.sm.paddingY);case"solid":return t$e("border-transparent border rounded-tremor-small","ui-selected:border-tremor-border ui-selected:bg-tremor-background ui-selected:shadow-tremor-input hover:text-tremor-content-emphasis text-tremor-content","dark:ui-selected:border-dark-tremor-border dark:ui-selected:bg-dark-tremor-background dark:ui-selected:shadow-dark-tremor-input dark:hover:text-dark-tremor-content-emphasis dark:text-dark-tremor-content",t$g.md.paddingX,t$g.twoXs.paddingY)}}const u$1=React.forwardRef(((d,u)=>{const{icon:x,className:h,children:k}=d,g=__rest$2(d,["icon","className","children"]),f=React.useContext(c$a),j=React.useContext(o$7),w=x;return React.createElement(rt,Object.assign({ref:u,className:t$e(b$2("root"),"flex whitespace-nowrap truncate max-w-xs outline-none focus:ring-0 text-tremor-default transition duration-100",j?c$l(j,e$4.text).selectTextColor:"solid"===f?"ui-selected:text-tremor-content-emphasis dark:ui-selected:text-dark-tremor-content-emphasis":"ui-selected:text-tremor-brand dark:ui-selected:text-dark-tremor-brand",p$4(f,j),h)},g),w?React.createElement(w,{className:t$e(b$2("icon"),"flex-none",h$7.lg.height,h$7.lg.width,k?t$g.sm.marginRight:"")}):null,k?React.createElement("span",null,k):null)}));u$1.displayName="Tab";
|
|
67215
67215
|
|
|
67216
67216
|
const n$5=$$1("TabGroup"),s$7=React.forwardRef(((o,s)=>{const{defaultIndex:d,index:l,onIndexChange:i,children:m,className:f}=o,c=__rest$2(o,["defaultIndex","index","onIndexChange","children","className"]);return React.createElement(rt.Group,Object.assign({as:"div",ref:s,defaultIndex:d,selectedIndex:l,onChange:i,className:t$e(n$5("root"),"w-full",f)},c),m)}));s$7.displayName="TabGroup";
|
|
67217
67217
|
|
|
67218
|
-
const m$9=$$1("TabPanel"),i$7=React.forwardRef(((s,i)=>{const{children:n,className:c}=s,d=__rest$2(s,["children","className"]),{selectedValue:f}=React.useContext(a$8),p=f===React.useContext(o$
|
|
67218
|
+
const m$9=$$1("TabPanel"),i$7=React.forwardRef(((s,i)=>{const{children:n,className:c}=s,d=__rest$2(s,["children","className"]),{selectedValue:f}=React.useContext(a$8),p=f===React.useContext(o$6);return React.createElement("div",Object.assign({ref:i,className:t$e(m$9("root"),"w-full mt-2",p?"":"hidden",c),"aria-selected":p?"true":"false"},d),n)}));i$7.displayName="TabPanel";
|
|
67219
67219
|
|
|
67220
|
-
const m$8=$$1("TabPanels"),n$4=React.forwardRef(((a,n)=>{const{children:i,className:c}=a,d=__rest$2(a,["children","className"]);return React.createElement(rt.Panels,Object.assign({as:"div",ref:n,className:t$e(m$8("root"),"w-full",c)},d),(({selectedIndex:e})=>React.createElement(a$8.Provider,{value:{selectedValue:e}},React.Children.map(i,((e,t)=>React.createElement(o$
|
|
67220
|
+
const m$8=$$1("TabPanels"),n$4=React.forwardRef(((a,n)=>{const{children:i,className:c}=a,d=__rest$2(a,["children","className"]);return React.createElement(rt.Panels,Object.assign({as:"div",ref:n,className:t$e(m$8("root"),"w-full",c)},d),(({selectedIndex:e})=>React.createElement(a$8.Provider,{value:{selectedValue:e}},React.Children.map(i,((e,t)=>React.createElement(o$6.Provider,{value:t},e))))))}));n$4.displayName="TabPanels";
|
|
67221
67221
|
|
|
67222
|
-
const o$
|
|
67222
|
+
const o$5=$$1("TextInput"),p$3=React.forwardRef(((e,p)=>{const{type:s="text"}=e,a=__rest$2(e,["type"]);return React.createElement(b$4,Object.assign({ref:p,type:s,makeInputClassName:o$5},a))}));p$3.displayName="TextInput";
|
|
67223
67223
|
|
|
67224
|
-
const c$9=$$1("Switch"),d$6=React.forwardRef(((i,d)=>{const{checked:m,defaultChecked:u=!1,onChange:b,color:h="blue",name:f,error:p,errorMessage:g,disabled:k,required:w,id:x}=i,C=__rest$2(i,["checked","defaultChecked","onChange","color","name","error","errorMessage","disabled","required","id"]),[E,N]=o$
|
|
67224
|
+
const c$9=$$1("Switch"),d$6=React.forwardRef(((i,d)=>{const{checked:m,defaultChecked:u=!1,onChange:b,color:h="blue",name:f,error:p,errorMessage:g,disabled:k,required:w,id:x}=i,C=__rest$2(i,["checked","defaultChecked","onChange","color","name","error","errorMessage","disabled","required","id"]),[E,N]=o$9(u,m),[y,j]=React.useState(!1);return React.createElement(React.Fragment,null,React.createElement("div",Object.assign({ref:d,className:t$e(c$9("root"),"flex flex-col relative h-5")},C),React.createElement("input",{type:"checkbox",className:t$e(c$9("input"),"absolute w-5 h-5 cursor-pointer left-0 top-0 opacity-0"),name:f,required:w,checked:E,onChange:e=>{e.preventDefault();}}),React.createElement(Ge,{checked:E,onChange:e=>{N(e),null==b||b(e);},disabled:k,className:t$e(c$9("switch"),"w-10 h-5 group relative inline-flex flex-shrink-0 cursor-pointer items-center justify-center rounded-tremor-full","focus:outline-none",k?"opacity-0 cursor-not-allowed":""),onFocus:()=>j(!0),onBlur:()=>j(!1),id:x},React.createElement("span",{className:t$e(c$9("sr-only"),"sr-only")},"Switch ",E?"on":"off"),React.createElement("span",{"aria-hidden":"true",className:t$e(c$9("background"),E?c$l(h,e$4.background).bgColor:"bg-tremor-border dark:bg-dark-tremor-border","pointer-events-none absolute mx-auto h-3 w-9 rounded-tremor-full transition-colors duration-100 ease-in-out")}),React.createElement("span",{"aria-hidden":"true",className:t$e(c$9("round"),E?t$e(c$l(h,e$4.background).bgColor,"translate-x-5 border-white"):"translate-x-0 bg-tremor-border dark:bg-dark-tremor-border border-white","pointer-events-none absolute left-0 inline-block h-5 w-5 transform rounded-tremor-full border-2 shadow-tremor-input duration-100 ease-in-out transition",y?t$e("ring-2 ring-blue-200"):"")}))),p&&g?React.createElement("p",{className:t$e(c$9("errorMessage"),"text-sm text-rose-500 mt-1 ")},g):null)}));d$6.displayName="Switch";
|
|
67225
67225
|
|
|
67226
|
-
const l$9=$$1("Accordion"),i$6=React.createContext({isOpen:!1}),c$8=React.forwardRef(((s,m)=>{var c;const{defaultOpen:p=!1,children:f,className:u}=s,b=__rest$2(s,["defaultOpen","children","className"]),x=null!==(c=React.useContext(t$1))&&void 0!==c?c:t$e(r$
|
|
67226
|
+
const l$9=$$1("Accordion"),i$6=React.createContext({isOpen:!1}),c$8=React.forwardRef(((s,m)=>{var c;const{defaultOpen:p=!1,children:f,className:u}=s,b=__rest$2(s,["defaultOpen","children","className"]),x=null!==(c=React.useContext(t$1))&&void 0!==c?c:t$e(r$l.sm.all,"rounded-tremor-default");return React.createElement(ve$1,Object.assign({as:"div",ref:m,className:t$e(l$9("root"),"overflow-hidden","bg-tremor-background border-tremor-border","dark:bg-dark-tremor-background dark:border-dark-tremor-border",x,u),defaultOpen:p},b),(({open:e})=>React.createElement(i$6.Provider,{value:{isOpen:e}},f)))}));c$8.displayName="Accordion";
|
|
67227
67227
|
|
|
67228
67228
|
const i$5=$$1("AccordionBody"),l$8=React.forwardRef(((o,l)=>{const{children:s,className:c}=o,d=__rest$2(o,["children","className"]);return React.createElement(ve$1.Panel,Object.assign({ref:l,className:t$e(i$5("root"),"w-full text-tremor-default","text-tremor-content","dark:text-dark-tremor-content",t$g.twoXl.paddingX,t$g.lg.paddingBottom,c)},d),s)}));l$8.displayName="AccordionBody";
|
|
67229
67229
|
|
|
67230
|
-
const r
|
|
67230
|
+
const r=r=>{var o=__rest$2(r,[]);return React.createElement("svg",Object.assign({},o,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2.5"}),React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 15l7-7 7 7"}))};
|
|
67231
67231
|
|
|
67232
|
-
const c$7=$$1("AccordionHeader"),d$5=React.forwardRef(((i,d)=>{const{children:f,className:p}=i,g=__rest$2(i,["children","className"]),{isOpen:h}=React.useContext(i$6);return React.createElement(ve$1.Button,Object.assign({ref:d,className:t$e(c$7("root"),"w-full flex items-center justify-between","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis",t$g.twoXl.paddingX,t$g.lg.paddingY,p)},g),React.createElement("div",{className:t$e(c$7("children"),"flex flex-1 text-inherit",t$g.twoXl.marginRight)},f),React.createElement("div",null,React.createElement(r
|
|
67232
|
+
const c$7=$$1("AccordionHeader"),d$5=React.forwardRef(((i,d)=>{const{children:f,className:p}=i,g=__rest$2(i,["children","className"]),{isOpen:h}=React.useContext(i$6);return React.createElement(ve$1.Button,Object.assign({ref:d,className:t$e(c$7("root"),"w-full flex items-center justify-between","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis",t$g.twoXl.paddingX,t$g.lg.paddingY,p)},g),React.createElement("div",{className:t$e(c$7("children"),"flex flex-1 text-inherit",t$g.twoXl.marginRight)},f),React.createElement("div",null,React.createElement(r,{className:t$e(c$7("arrowIcon"),"text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",t$g.twoXs.negativeMarginRight,h$7.md.height,h$7.md.width,h?"transition-all":"transition-all -rotate-180")})))}));d$5.displayName="AccordionHeader";
|
|
67233
67233
|
|
|
67234
|
-
const l$7=$$1("AccordionList"),a$7=React.forwardRef(((o,a)=>{const{children:n,className:i}=o,d=__rest$2(o,["children","className"]),c=React.Children.count(n);return React.createElement("div",Object.assign({ref:a,className:t$e(l$7("root"),"rounded-tremor-default","shadow-tremor-card","dark:shadow-dark-tremor-card",i)},d),React.Children.map(n,((e,o)=>0===o?React.createElement(t$1.Provider,{value:t$e("rounded-t-tremor-default",r$
|
|
67234
|
+
const l$7=$$1("AccordionList"),a$7=React.forwardRef(((o,a)=>{const{children:n,className:i}=o,d=__rest$2(o,["children","className"]),c=React.Children.count(n);return React.createElement("div",Object.assign({ref:a,className:t$e(l$7("root"),"rounded-tremor-default","shadow-tremor-card","dark:shadow-dark-tremor-card",i)},d),React.Children.map(n,((e,o)=>0===o?React.createElement(t$1.Provider,{value:t$e("rounded-t-tremor-default",r$l.sm.left,r$l.sm.top,r$l.sm.right,r$l.sm.bottom)},React.cloneElement(e)):o===c-1?React.createElement(t$1.Provider,{value:t$e("rounded-b-tremor-default",r$l.sm.left,r$l.sm.right,r$l.sm.bottom)},React.cloneElement(e)):React.createElement(t$1.Provider,{value:t$e(r$l.sm.left,r$l.sm.right,r$l.sm.bottom)},React.cloneElement(e)))))}));a$7.displayName="AccordionList";
|
|
67235
67235
|
|
|
67236
|
-
const s$6=$$1("Card"),c$6=r=>{if(!r)return "";switch(r){case n$j.Left:return r$
|
|
67236
|
+
const s$6=$$1("Card"),c$6=r=>{if(!r)return "";switch(r){case n$j.Left:return r$l.lg.left;case t$f.Top:return r$l.lg.top;case n$j.Right:return r$l.lg.right;case t$f.Bottom:return r$l.lg.bottom;default:return ""}},b$1=React.forwardRef(((e,t)=>{const{decoration:a="",decorationColor:n,children:b,className:f}=e,g=__rest$2(e,["decoration","decorationColor","children","className"]);return React.createElement("div",Object.assign({ref:t,className:t$e(s$6("root"),"relative w-full text-left ring-1 rounded-tremor-default","bg-tremor-background ring-tremor-ring shadow-tremor-card","dark:bg-dark-tremor-background dark:ring-dark-tremor-ring dark:shadow-dark-tremor-card",n?c$l(n,e$4.border).borderColor:"border-tremor-brand dark:border-dark-tremor-brand",c$6(a),t$g.threeXl.paddingAll,f)},g),b)}));b$1.displayName="Card";
|
|
67237
67237
|
|
|
67238
|
-
const m$7=$$1("Divider"),o$
|
|
67238
|
+
const m$7=$$1("Divider"),o$4=React.forwardRef(((t,o)=>{const{className:l,children:d}=t,s=__rest$2(t,["className","children"]);return React.createElement("div",Object.assign({ref:o,className:t$e(m$7("root"),"w-full mx-auto my-6 flex justify-between gap-3 items-center text-tremor-default","text-tremor-content","dark:text-dark-tremor-content",l)},s),d?React.createElement(React.Fragment,null,React.createElement("div",{className:t$e("w-full h-[1px] bg-tremor-border dark:bg-dark-tremor-border")}),React.createElement("div",{className:t$e("text-inherit whitespace-nowrap")},d),React.createElement("div",{className:t$e("w-full h-[1px] bg-tremor-border dark:bg-dark-tremor-border")})):React.createElement("div",{className:t$e("w-full h-[1px] bg-tremor-border dark:bg-dark-tremor-border")}))}));o$4.displayName="Divider";
|
|
67239
67239
|
|
|
67240
|
-
const s$5={0:"grid-cols-none",1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},l$6={0:"sm:grid-cols-none",1:"sm:grid-cols-1",2:"sm:grid-cols-2",3:"sm:grid-cols-3",4:"sm:grid-cols-4",5:"sm:grid-cols-5",6:"sm:grid-cols-6",7:"sm:grid-cols-7",8:"sm:grid-cols-8",9:"sm:grid-cols-9",10:"sm:grid-cols-10",11:"sm:grid-cols-11",12:"sm:grid-cols-12"},o$
|
|
67240
|
+
const s$5={0:"grid-cols-none",1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},l$6={0:"sm:grid-cols-none",1:"sm:grid-cols-1",2:"sm:grid-cols-2",3:"sm:grid-cols-3",4:"sm:grid-cols-4",5:"sm:grid-cols-5",6:"sm:grid-cols-6",7:"sm:grid-cols-7",8:"sm:grid-cols-8",9:"sm:grid-cols-9",10:"sm:grid-cols-10",11:"sm:grid-cols-11",12:"sm:grid-cols-12"},o$3={0:"md:grid-cols-none",1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},c$5={0:"lg:grid-cols-none",1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"},d$4={1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",13:"col-span-13"},g$2={1:"sm:col-span-1",2:"sm:col-span-2",3:"sm:col-span-3",4:"sm:col-span-4",5:"sm:col-span-5",6:"sm:col-span-6",7:"sm:col-span-7",8:"sm:col-span-8",9:"sm:col-span-9",10:"sm:col-span-10",11:"sm:col-span-11",12:"sm:col-span-12",13:"sm:col-span-13"},n$3={1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12",13:"md:col-span-13"},p$2={1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12",13:"lg:col-span-13"};
|
|
67241
67241
|
|
|
67242
67242
|
const s$4=$$1("Col"),i$4=React.forwardRef(((r,i)=>{const{numColSpan:p=1,numColSpanSm:c,numColSpanMd:u,numColSpanLg:S,children:C,className:d}=r,f=__rest$2(r,["numColSpan","numColSpanSm","numColSpanMd","numColSpanLg","children","className"]),b=(o,n)=>o&&Object.keys(n).includes(String(o))?n[o]:"";return React.createElement("div",Object.assign({ref:i,className:t$e(s$4("root"),(()=>{const o=b(p,d$4),r=b(c,g$2),m=b(u,n$3),s=b(S,p$2);return t$e(o,r,m,s)})(),d)},f),C)}));i$4.displayName="Col";
|
|
67243
67243
|
|
|
67244
|
-
const a$6=$$1("Grid"),l$5=(m,e)=>m&&Object.keys(e).includes(String(m))?e[m]:"",c$4=React.forwardRef(((s,c)=>{const{numItems:d=1,numItemsSm:u,numItemsMd:f,numItemsLg:I,children:p,className:g}=s,b=__rest$2(s,["numItems","numItemsSm","numItemsMd","numItemsLg","children","className"]),j=l$5(d,s$5),N=l$5(u,l$6),y=l$5(f,o$
|
|
67244
|
+
const a$6=$$1("Grid"),l$5=(m,e)=>m&&Object.keys(e).includes(String(m))?e[m]:"",c$4=React.forwardRef(((s,c)=>{const{numItems:d=1,numItemsSm:u,numItemsMd:f,numItemsLg:I,children:p,className:g}=s,b=__rest$2(s,["numItems","numItemsSm","numItemsMd","numItemsLg","children","className"]),j=l$5(d,s$5),N=l$5(u,l$6),y=l$5(f,o$3),M=l$5(I,c$5),S=t$e(j,N,y,M);return React.createElement("div",Object.assign({ref:c,className:t$e(a$6("root"),"grid",S,g)},b),p)}));c$4.displayName="Grid";
|
|
67245
67245
|
|
|
67246
67246
|
const i$3=$$1("List"),d$3=React.forwardRef(((t,d)=>{const{children:a,className:m}=t,s=__rest$2(t,["children","className"]);return React.createElement("ul",Object.assign({ref:d,className:t$e(i$3("root"),"w-full overflow-hidden divide-y","divide-tremor-border text-tremor-content","dark:divide-dark-tremor-border dark:text-dark-tremor-content",m)},s),a)}));d$3.displayName="List";
|
|
67247
67247
|
|
|
67248
67248
|
const a$5=$$1("ListItem"),l$4=React.forwardRef(((m,l)=>{const{children:i,className:o}=m,n=__rest$2(m,["children","className"]);return React.createElement(React.Fragment,null,React.createElement("li",Object.assign({ref:l,className:t$e(a$5("root"),"w-full flex justify-between items-center truncate tabular-nums text-tremor-default",t$g.sm.paddingY,o)},n),i))}));l$4.displayName="ListItem";
|
|
67249
67249
|
|
|
67250
|
-
const l$3=$$1("Table"),o$
|
|
67250
|
+
const l$3=$$1("Table"),o$2=React.forwardRef(((r,o)=>{const{children:m,className:s}=r,c=__rest$2(r,["children","className"]);return React.createElement("div",{className:t$e(l$3("root"),"overflow-auto",s)},React.createElement("table",Object.assign({ref:o,className:t$e(l$3("table"),"w-full tabular-nums text-tremor-default","text-tremor-content","dark:text-dark-tremor-content")},c),m))}));o$2.displayName="Table";
|
|
67251
67251
|
|
|
67252
67252
|
const a$4=$$1("TableBody"),i$2=React.forwardRef(((o,i)=>{const{children:l,className:d}=o,m=__rest$2(o,["children","className"]);return React.createElement(React.Fragment,null,React.createElement("tbody",Object.assign({ref:i,className:t$e(a$4("root"),"align-top overflow-x-auto divide-y","divide-tremor-border","dark:divide-dark-tremor-border",d)},m),l))}));i$2.displayName="TableBody";
|
|
67253
67253
|
|
|
@@ -67257,7 +67257,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
67257
67257
|
|
|
67258
67258
|
const a$2=$$1("TableFooterCell"),m$4=React.forwardRef(((o,m)=>{const{children:n,className:i}=o,s=__rest$2(o,["children","className"]);return React.createElement(React.Fragment,null,React.createElement("th",Object.assign({ref:m,className:t$e(a$2("root"),"text-tremor-content font-medium","dark:text-dark-tremor-content",t$g.none.top,t$g.twoXl.paddingX,t$g.xl.paddingY,i)},s),n))}));m$4.displayName="TableFooterCell";
|
|
67259
67259
|
|
|
67260
|
-
const o=$$1("TableHead"),l$2=React.forwardRef(((r,l)=>{const{children:m,className:s}=r,n=__rest$2(r,["children","className"]);return React.createElement(React.Fragment,null,React.createElement("thead",Object.assign({ref:l,className:t$e(o("root"),"text-left","text-tremor-content","dark:text-dark-tremor-content",s)},n),m))}));l$2.displayName="TableHead";
|
|
67260
|
+
const o$1=$$1("TableHead"),l$2=React.forwardRef(((r,l)=>{const{children:m,className:s}=r,n=__rest$2(r,["children","className"]);return React.createElement(React.Fragment,null,React.createElement("thead",Object.assign({ref:l,className:t$e(o$1("root"),"text-left","text-tremor-content","dark:text-dark-tremor-content",s)},n),m))}));l$2.displayName="TableHead";
|
|
67261
67261
|
|
|
67262
67262
|
const l$1=$$1("TableHeaderCell"),m$3=React.forwardRef(((a,m)=>{const{children:n,className:s}=a,i=__rest$2(a,["children","className"]);return React.createElement(React.Fragment,null,React.createElement("th",Object.assign({ref:m,className:t$e(l$1("root"),"sticky whitespace-nowrap text-left font-semibold","text-tremor-content","dark:text-dark-tremor-content",t$g.none.top,t$g.twoXl.paddingX,t$g.xl.paddingY,s)},i),n))}));m$3.displayName="TableHeaderCell";
|
|
67263
67263
|
|
|
@@ -67265,7 +67265,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
67265
67265
|
|
|
67266
67266
|
const a$1=React.forwardRef(((a,o)=>{const{children:s,className:l}=a,m=__rest$2(a,["children","className"]);return React.createElement("b",Object.assign({ref:o,className:t$e("text-inherit font-bold",l)},m),s)}));a$1.displayName="Bold";
|
|
67267
67267
|
|
|
67268
|
-
const s$2=$$1("Callout"),n$2=React.forwardRef(((m,n)=>{const{title:c,icon:b,color:f,className:g,children:p}=m,h=__rest$2(m,["title","icon","color","className","children"]),u=b;return React.createElement("div",Object.assign({ref:n,className:t$e(s$2("root"),"flex flex-col overflow-hidden rounded-tremor-default text-tremor-default",f?t$e(c$l(f,e$4.background).bgColor,c$l(f,e$4.darkBorder).borderColor,c$l(f,e$4.darkText).textColor,"dark:bg-opacity-10 bg-opacity-10"):t$e("bg-tremor-brand-faint border-tremor-brand-emphasis text-tremor-brand-emphasis","dark:bg-dark-tremor-brand-muted/70 dark:border-dark-tremor-brand-emphasis dark:text-dark-tremor-brand-emphasis"),t$g.lg.paddingY,t$g.lg.paddingRight,t$g.twoXl.paddingLeft,r$
|
|
67268
|
+
const s$2=$$1("Callout"),n$2=React.forwardRef(((m,n)=>{const{title:c,icon:b,color:f,className:g,children:p}=m,h=__rest$2(m,["title","icon","color","className","children"]),u=b;return React.createElement("div",Object.assign({ref:n,className:t$e(s$2("root"),"flex flex-col overflow-hidden rounded-tremor-default text-tremor-default",f?t$e(c$l(f,e$4.background).bgColor,c$l(f,e$4.darkBorder).borderColor,c$l(f,e$4.darkText).textColor,"dark:bg-opacity-10 bg-opacity-10"):t$e("bg-tremor-brand-faint border-tremor-brand-emphasis text-tremor-brand-emphasis","dark:bg-dark-tremor-brand-muted/70 dark:border-dark-tremor-brand-emphasis dark:text-dark-tremor-brand-emphasis"),t$g.lg.paddingY,t$g.lg.paddingRight,t$g.twoXl.paddingLeft,r$l.lg.left,g)},h),React.createElement("div",{className:t$e(s$2("header"),"flex items-start")},u?React.createElement(u,{className:t$e(s$2("icon"),"flex-none",h$7.lg.height,h$7.lg.width,t$g.xs.marginRight)}):null,React.createElement("h4",{className:t$e(s$2("title"),"font-semibold")},c)),React.createElement("p",{className:t$e(s$2("body"),"overflow-y-auto",p?t$g.sm.marginTop:"")},p))}));n$2.displayName="Callout";
|
|
67269
67269
|
|
|
67270
67270
|
const a=React.forwardRef(((a,i)=>{const{children:s,className:c}=a,l=__rest$2(a,["children","className"]);return React.createElement("i",Object.assign({ref:i,className:t$e("italic text-inherit",c)},l),s)}));a.displayName="Italic";
|
|
67271
67271
|
|
|
@@ -67275,13 +67275,13 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
67275
67275
|
|
|
67276
67276
|
const s=React.forwardRef(((s,a)=>{const{color:i,children:l,className:c}=s,n=__rest$2(s,["color","children","className"]);return React.createElement("p",Object.assign({ref:a,className:t$e("font-medium text-tremor-title",i?c$l(i,e$4.darkText).textColor:"text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis",c)},n),l)}));s.displayName="Title";
|
|
67277
67277
|
|
|
67278
|
-
const i$1=$$1("BarList"),c$3=React.forwardRef(((n,c)=>{const{data:d=[],color:p,valueFormatter:h=o$
|
|
67278
|
+
const i$1=$$1("BarList"),c$3=React.forwardRef(((n,c)=>{const{data:d=[],color:p,valueFormatter:h=o$k,showAnimation:u=!1,className:f}=n,b=__rest$2(n,["data","color","valueFormatter","showAnimation","className"]),g=(e=>{let t=-1/0;return e.forEach((e=>{t=Math.max(t,e);})),e.map((e=>0===e?0:Math.max(e/t*100,1)))})(d.map((e=>e.value))),x=h$7.threeXl.height;return React.createElement("div",Object.assign({ref:c,className:t$e(i$1("root"),"flex justify-between",t$g.threeXl.spaceX,f)},b),React.createElement("div",{className:t$e(i$1("bars"),"relative w-full")},d.map(((e,n)=>{var l,c,h;const f=e.icon;return React.createElement("div",{key:null!==(l=e.key)&&void 0!==l?l:e.name,className:t$e(i$1("bar"),"flex items-center rounded-tremor-small bg-opacity-30",x,e.color||p?c$l(null!==(c=e.color)&&void 0!==c?c:p,e$4.background).bgColor:"bg-tremor-brand-subtle dark:bg-dark-tremor-brand-subtle dark:bg-opacity-30",n===d.length-1?t$g.none.marginBottom:t$g.sm.marginBottom),style:{width:`${g[n]}%`,transition:u?"all 1s":""}},React.createElement("div",{className:t$e("absolute max-w-full flex",t$g.sm.left)},f?React.createElement(f,{className:t$e(i$1("barIcon"),"flex-none","text-tremor-content","dark:text-dark-tremor-content",h$7.lg.height,h$7.lg.width,t$g.md.marginRight)}):null,e.href?React.createElement("a",{href:e.href,target:null!==(h=e.target)&&void 0!==h?h:"_blank",rel:"noreferrer",className:t$e(i$1("barLink"),"whitespace-nowrap hover:underline truncate text-tremor-default","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},e.name):React.createElement("p",{className:t$e(i$1("barText"),"whitespace-nowrap truncate text-tremor-default","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},e.name)))}))),React.createElement("div",{className:"text-right min-w-min"},d.map(((e,t)=>{var a;return React.createElement("div",{key:null!==(a=e.key)&&void 0!==a?a:e.name,className:t$e(i$1("labelWrapper"),"flex justify-end items-center",x,t===d.length-1?t$g.none.marginBottom:t$g.sm.marginBottom)},React.createElement("p",{className:t$e(i$1("labelText"),"whitespace-nowrap truncate text-tremor-default","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},h(e.value)))}))))}));c$3.displayName="BarList";
|
|
67279
67279
|
|
|
67280
67280
|
const f$1=$$1("CategoryBar"),u=({values:e})=>{const a=t$d(e);let o=0,n=0;return React.createElement("div",{className:t$e(f$1("labels"),"relative flex w-full text-tremor-default","text-tremor-content","dark:text-dark-tremor-content",t$g.sm.marginBottom,h$7.lg.height)},e.slice(0,e.length).map(((e,r)=>{o+=e;const l=(e>=.1*a||n>=.09*a)&&a-o>=.15*a&&o>=.1*a;return n=l?0:n+=e,React.createElement("div",{key:`item-${r}`,className:"flex items-center justify-end",style:{width:`${e}%`}},React.createElement("span",{className:t$e(l?"block":"hidden","left-1/2 translate-x-1/2")},o))})),React.createElement("div",{className:t$e("absolute bottom-0 flex items-center",t$g.none.left)},"0"),React.createElement("div",{className:t$e("absolute bottom-0 flex items-center",t$g.none.right)},a))},g$1=React.forwardRef(((l,i)=>{const{values:m=[],colors:g=a$i,markerValue:b,showLabels:p=!0,tooltip:h,showAnimation:v=!1,className:x}=l,w=__rest$2(l,["values","colors","markerValue","showLabels","tooltip","showAnimation","className"]),E=((e,t,r)=>{if(void 0===e)return "";let l=0;for(let o=0;o<t.length;o++){const s=t[o],i=c$l(r[o],e$4.background).bgColor;if(l+=s,l>=e)return i}return ""})(b,m,g),{tooltipProps:N,getReferenceProps:k}=f$c();return React.createElement(React.Fragment,null,React.createElement(u$8,Object.assign({text:h},N)),React.createElement("div",Object.assign({ref:i,className:t$e(f$1("root"),x)},w),p?React.createElement(u,{values:m}):null,React.createElement("div",{className:t$e(f$1("barWrapper"),"relative w-full flex items-center",h$7.xs.height)},React.createElement("div",{className:t$e("flex-1 flex items-center h-full overflow-hidden rounded-tremor-full")},m.map(((e,r)=>{var l;const o=null!==(l=g[r])&&void 0!==l?l:"gray";return React.createElement("div",{key:`item-${r}`,className:t$e(f$1("categoryBar"),"h-full",c$l(o,e$4.background).bgColor),style:{width:`${e}%`}})}))),void 0!==b?React.createElement("div",Object.assign({ref:N.refs.setReference,className:t$e(f$1("markerWrapper"),"absolute right-1/2 -translate-x-1/2",h$7.lg.width),style:{left:`${b}%`,transition:v?"all 1s":""}},k),React.createElement("div",{className:t$e(f$1("marker"),"ring-2 mx-auto rounded-tremor-full","ring-tremor-brand-inverted","dark:ring-dark-tremor-brand-inverted",E,h$7.md.height,h$7.twoXs.width)})):null)))}));g$1.displayName="CategoryBar";
|
|
67281
67281
|
|
|
67282
67282
|
const g={[e$5.Increase]:{bgColor:c$l(a$j.Emerald,e$4.background).bgColor},[e$5.ModerateIncrease]:{bgColor:c$l(a$j.Emerald,e$4.background).bgColor},[e$5.Decrease]:{bgColor:c$l(a$j.Rose,e$4.background).bgColor},[e$5.ModerateDecrease]:{bgColor:c$l(a$j.Rose,e$4.background).bgColor},[e$5.Unchanged]:{bgColor:c$l(a$j.Orange,e$4.background).bgColor}};
|
|
67283
67283
|
|
|
67284
|
-
const c$2=$$1("DeltaBar"),d$2=React.forwardRef(((s,d)=>{const{value:f,isIncreasePositive:u=!0,showAnimation:b=!1,className:g$1,tooltip:p}=s,v=__rest$2(s,["value","isIncreasePositive","showAnimation","className","tooltip"]),h=r$
|
|
67284
|
+
const c$2=$$1("DeltaBar"),d$2=React.forwardRef(((s,d)=>{const{value:f,isIncreasePositive:u=!0,showAnimation:b=!1,className:g$1,tooltip:p}=s,v=__rest$2(s,["value","isIncreasePositive","showAnimation","className","tooltip"]),h=r$m((e=>e>=0?e$5.Increase:e$5.Decrease)(f),u),{tooltipProps:j,getReferenceProps:w}=f$c();return React.createElement(React.Fragment,null,React.createElement(u$8,Object.assign({text:p},j)),React.createElement("div",Object.assign({ref:d,className:t$e(c$2("root"),"relative flex items-center w-full rounded-tremor-full","bg-tremor-background-subtle","dark:bg-dark-tremor-background-subtle",h$7.xs.height,g$1)},v),React.createElement("div",{className:"flex justify-end h-full w-1/2"},f<0?React.createElement("div",Object.assign({ref:j.refs.setReference,className:t$e(c$2("negativeDeltaBar"),"rounded-l-tremor-full",g[h].bgColor),style:{width:`${Math.abs(f)}%`,transition:b?"all 1s":""}},w)):null),React.createElement("div",{className:t$e(c$2("separator"),"ring-2 z-10 rounded-tremor-full","ring-tremor-brand-inverted bg-tremor-background-emphasis","dark:ring-dark-tremor-brand-inverted dark:bg-dark-tremor-background-emphasis",h$7.md.height,h$7.twoXs.width)}),React.createElement("div",{className:t$e(c$2("positiveDeltaBarWrapper"),"flex justify-start h-full w-1/2")},f>=0?React.createElement("div",Object.assign({ref:j.refs.setReference,className:t$e(c$2("positiveDeltaBar"),"rounded-r-tremor-full",g[h].bgColor),style:{width:`${Math.abs(f)}%`,transition:b?"all 1s":""}},w)):null)))}));d$2.displayName="DeltaBar";
|
|
67285
67285
|
|
|
67286
67286
|
const m=$$1("MarkerBar"),d$1=React.forwardRef(((l,d)=>{const{value:c,minValue:b,maxValue:g,markerTooltip:u,rangeTooltip:f,showAnimation:p=!1,color:k,className:h}=l,v=__rest$2(l,["value","minValue","maxValue","markerTooltip","rangeTooltip","showAnimation","color","className"]),{tooltipProps:j,getReferenceProps:w}=f$c(),{tooltipProps:x,getReferenceProps:E}=f$c();return React.createElement("div",Object.assign({ref:d,className:t$e(m("root"),"relative flex items-center w-full rounded-tremor-full","bg-tremor-background-subtle","dark:bg-dark-tremor-background-subtle",h$7.xs.height,h)},v),void 0!==b&&void 0!==g?React.createElement(React.Fragment,null,React.createElement(u$8,Object.assign({text:f},x)),React.createElement("div",Object.assign({ref:x.refs.setReference,className:t$e(m("rangeBar"),"absolute h-full rounded-tremor-full","bg-tremor-content-subtle","dark:bg-dark-tremor-content-subtle"),style:{left:`${b}%`,width:g-b+"%",transition:p?"all 1s":""}},E))):null,React.createElement(u$8,Object.assign({text:u},j)),React.createElement("div",Object.assign({ref:j.refs.setReference,className:t$e(m("markerWrapper"),"absolute right-1/2 -translate-x-1/2",h$7.lg.width),style:{left:`${c}%`,transition:p?"all 1s":""}},w),React.createElement("div",{className:t$e(m("marker"),"ring-2 mx-auto rounded-tremor-full","ring-tremor-brand-inverted","dark:ring-dark-tremor-brand-inverted",k?c$l(k,e$4.background).bgColor:"dark:bg-dark-tremor-brand bg-tremor-brand",h$7.md.height,h$7.twoXs.width)})))}));d$1.displayName="MarkerBar";
|
|
67287
67287
|
|
|
@@ -67291,7 +67291,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
67291
67291
|
|
|
67292
67292
|
const n=$$1("Tracker"),p=React.forwardRef(((r,s)=>{const{color:p,tooltip:f}=r,d=__rest$2(r,["color","tooltip"]),{tooltipProps:u,getReferenceProps:b}=f$c();return React.createElement("div",Object.assign({ref:n$i([s,u.refs.setReference]),className:t$e(n("trackingBlock"),"w-full h-full rounded-tremor-small",c$l(null!=p?p:"gray",e$4.background).bgColor)},d,b),React.createElement(u$8,Object.assign({text:f},u)))}));p.displayName="TrackerBlock";const f=React.forwardRef(((t,l)=>{const{data:a=[],className:s}=t,i=__rest$2(t,["data","className"]);return React.createElement("div",Object.assign({ref:l,className:t$e(n("root"),"w-full flex items-center h-10",t$g.threeXs.spaceX,s)},i),a.map(((e,r)=>{var t;return React.createElement(p,{key:null!==(t=e.key)&&void 0!==t?t:r,color:e.color,tooltip:e.tooltip})})))}));f.displayName="Tracker";
|
|
67293
67293
|
|
|
67294
|
-
function r(...t){return twMerge(clsx(t))}var Cn="https://api.liberty.percyai.io/key_service/v1/jwt/generate",Vr=async({clientKey:t})=>{try{return t?await(await fetch(Cn,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientKey:t})})).json():void 0}catch(e){console.error("Error requesting token:",e);return}},N=(t,e)=>t?.config?t.config.find(o=>o.name===e):{};var eo=cva("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),X=React__namespace.forwardRef(({className:t,variant:e,size:o,asChild:a=!1,...n},s)=>React__namespace.createElement(a?$5e63c961fc1ce211$export$8c6ed5c666ac1360$1:"button",{className:r(eo({variant:e,size:o,className:t})),ref:s,...n}));X.displayName="Button";var to=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("rounded-xl border bg-card text-card-foreground shadow",t),...e}));to.displayName="Card";var oo=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("flex flex-col space-y-1.5 p-6",t),...e}));oo.displayName="CardHeader";var Yr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("h3",{ref:o,className:r("font-semibold leading-none tracking-tight",t),...e}));Yr.displayName="CardTitle";var Mn=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("p",{ref:o,className:r("text-sm text-muted-foreground",t),...e}));Mn.displayName="CardDescription";var ro=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("p-6 pt-0",t),...e}));ro.displayName="CardContent";var ao=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("flex items-center p-6 pt-0",t),...e}));ao.displayName="CardFooter";var Gr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($cddcb0b647441e34$export$be92b6f5f03c0fe9,{ref:o,className:r("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...e}));Gr.displayName=$cddcb0b647441e34$export$be92b6f5f03c0fe9.displayName;var On=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($cddcb0b647441e34$export$3e431a229df88919,{ref:o,className:r("aspect-square h-full w-full",t),...e}));On.displayName=$cddcb0b647441e34$export$3e431a229df88919.displayName;var qr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($cddcb0b647441e34$export$fb8d7f40caaeea67,{ref:o,className:r("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...e}));qr.displayName=$cddcb0b647441e34$export$fb8d7f40caaeea67.displayName;var Wr=React__namespace.forwardRef(({className:t,value:e,...o},a)=>React__namespace.createElement($67824d98245208a0$export$be92b6f5f03c0fe9,{ref:a,className:r("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",t),...o},React__namespace.createElement($67824d98245208a0$export$adb584737d712b70,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(e||0)}%)`}})));Wr.displayName=$67824d98245208a0$export$be92b6f5f03c0fe9.displayName;var io=React__namespace.forwardRef(({className:t,sideOffset:e=4,...o},a)=>React__namespace.createElement($a093c7e1ec25a057$export$7c6e2c02157bb7d2,{ref:a,sideOffset:e,className:r("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o}));io.displayName=$a093c7e1ec25a057$export$7c6e2c02157bb7d2.displayName;var Va=({className:t,...e})=>React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{className:r(t),...e});Va.displayName=$5d3850c4d0b4e6c7$export$602eac185826482c$1.displayName;var Ya=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1,{className:r("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:o}));Ya.displayName=$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1.displayName;var Fn=cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Vn=React__namespace.forwardRef(({side:t="right",className:e,children:o,...a},n)=>React__namespace.createElement(Va,null,React__namespace.createElement(Ya,null),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1,{ref:n,className:r(Fn({side:t}),e),...a},o,React__namespace.createElement($5d3850c4d0b4e6c7$export$f39c2d165cd861fe,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary"},React__namespace.createElement(Cross2Icon,{className:"h-4 w-4"}),React__namespace.createElement("span",{className:"sr-only"},"Close")))));Vn.displayName=$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1.displayName;var qn=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$f99233281efd08a0,{ref:o,className:r("text-lg font-semibold text-foreground",t),...e}));qn.displayName=$5d3850c4d0b4e6c7$export$f99233281efd08a0.displayName;var Wn=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",t),...e}));Wn.displayName=$5d3850c4d0b4e6c7$export$393edc798c47379d.displayName;var zr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{className:"w-full overflow-auto"},React__namespace.createElement("table",{ref:o,className:r("w-full caption-bottom text-sm",t),...e})));zr.displayName="Table";var Qr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("thead",{ref:o,className:r("[&_tr]:border-b",t),...e}));Qr.displayName="TableHeader";var $r=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("tbody",{ref:o,className:r("[&_tr:last-child]:border-0",t),...e}));$r.displayName="TableBody";var jr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("tfoot",{ref:o,className:r("bg-primary font-medium text-primary-foreground",t),...e}));jr.displayName="TableFooter";var Fo=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("tr",{ref:o,className:r("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...e}));Fo.displayName="TableRow";var Ht=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("th",{ref:o,className:r("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e}));Ht.displayName="TableHead";var Bt=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("td",{ref:o,className:r("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e}));Bt.displayName="TableCell";var Xr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("caption",{ref:o,className:r("mt-4 text-sm text-muted-foreground",t),...e}));Xr.displayName="TableCaption";var Qn=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($1bf158f521e1b1b4$export$6d08773d2e66f8f2,{ref:o,className:r("border-b",t),...e}));Qn.displayName="AccordionItem";var $n=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($1bf158f521e1b1b4$export$8b251419efc915eb,{className:"flex"},React__namespace.createElement($1bf158f521e1b1b4$export$41fb9f06171c75f4,{ref:a,className:r("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...o},e,React__namespace.createElement(ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"}))));$n.displayName=$1bf158f521e1b1b4$export$41fb9f06171c75f4.displayName;var jn=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($1bf158f521e1b1b4$export$7c6e2c02157bb7d2,{ref:a,className:r("overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",t),...o},React__namespace.createElement("div",{className:"pb-4 pt-0"},e)));jn.displayName=$1bf158f521e1b1b4$export$7c6e2c02157bb7d2.displayName;var Kn=cva("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),no=React__namespace.forwardRef(({className:t,variant:e,...o},a)=>React__namespace.createElement("div",{ref:a,role:"alert",className:r(Kn({variant:e}),t),...o}));no.displayName="Alert";var so=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("h5",{ref:o,className:r("mb-1 font-medium leading-none tracking-tight",t),...e}));so.displayName="AlertTitle";var lo=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("text-sm [&_p]:leading-relaxed",t),...e}));lo.displayName="AlertDescription";var Ga=$905f4ae918aab1aa$export$be92b6f5f03c0fe9,qa=$905f4ae918aab1aa$export$41fb9f06171c75f4,Wa=({className:t,...e})=>React__namespace.createElement($905f4ae918aab1aa$export$602eac185826482c,{className:r(t),...e});Wa.displayName=$905f4ae918aab1aa$export$602eac185826482c.displayName;var za=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$c6fdb837b070b4ff,{className:r("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:o}));za.displayName=$905f4ae918aab1aa$export$c6fdb837b070b4ff.displayName;var Kr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Wa,null,React__namespace.createElement(za,null),React__namespace.createElement($905f4ae918aab1aa$export$7c6e2c02157bb7d2,{ref:o,className:r("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",t),...e})));Kr.displayName=$905f4ae918aab1aa$export$7c6e2c02157bb7d2.displayName;var Jr=({className:t,...e})=>React__namespace.createElement("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});Jr.displayName="AlertDialogFooter";var Zr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$f99233281efd08a0,{ref:o,className:r("text-lg font-semibold",t),...e}));Zr.displayName=$905f4ae918aab1aa$export$f99233281efd08a0.displayName;var Zn=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",t),...e}));Zn.displayName=$905f4ae918aab1aa$export$393edc798c47379d.displayName;var ea=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$e19cd5f9376f8cee,{ref:o,className:r(eo(),t),...e}));ea.displayName=$905f4ae918aab1aa$export$e19cd5f9376f8cee.displayName;var es=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$848c9b7ead0df967,{ref:o,className:r(eo({variant:"outline"}),"mt-2 sm:mt-0",t),...e}));es.displayName=$905f4ae918aab1aa$export$848c9b7ead0df967.displayName;var ta=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($e698a72e93240346$export$be92b6f5f03c0fe9,{ref:o,className:r("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...e},React__namespace.createElement($e698a72e93240346$export$adb584737d712b70,{className:r("flex items-center justify-center text-current")},React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))));ta.displayName=$e698a72e93240346$export$be92b6f5f03c0fe9.displayName;var Qa=({className:t,...e})=>React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{className:r(t),...e});Qa.displayName=$5d3850c4d0b4e6c7$export$602eac185826482c$1.displayName;var $a=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1,{ref:o,className:r("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e}));$a.displayName=$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1.displayName;var mo=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement(Qa,null,React__namespace.createElement($a,null),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1,{ref:a,className:r("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",t),...o},e,React__namespace.createElement($5d3850c4d0b4e6c7$export$f39c2d165cd861fe,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},React__namespace.createElement(Cross2Icon,{className:"h-4 w-4"}),React__namespace.createElement("span",{className:"sr-only"},"Close")))));mo.displayName=$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1.displayName;var aa=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$f99233281efd08a0,{ref:o,className:r("text-lg font-semibold leading-none tracking-tight",t),...e}));aa.displayName=$5d3850c4d0b4e6c7$export$f99233281efd08a0.displayName;var ia=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",t),...e}));ia.displayName=$5d3850c4d0b4e6c7$export$393edc798c47379d.displayName;var sr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$1,{ref:o,className:r("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",t),...e}));sr.displayName=Le$1.displayName;var na=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":""},React__namespace.createElement(MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),React__namespace.createElement(Le$1.Input,{ref:o,className:r("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),...e})));na.displayName=Le$1.Input.displayName;var sa=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$1.List,{ref:o,className:r("max-h-[300px] overflow-y-auto overflow-x-hidden",t),...e}));sa.displayName=Le$1.List.displayName;var la=React__namespace.forwardRef((t,e)=>React__namespace.createElement(Le$1.Empty,{ref:e,className:"py-6 text-center text-sm",...t}));la.displayName=Le$1.Empty.displayName;var ma=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$1.Group,{ref:o,className:r("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",t),...e}));ma.displayName=Le$1.Group.displayName;var ls=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$1.Separator,{ref:o,className:r("-mx-1 h-px bg-border",t),...e}));ls.displayName=Le$1.Separator.displayName;var ca=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$1.Item,{ref:o,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...e}));ca.displayName=Le$1.Item.displayName;var us=React__namespace.forwardRef(({className:t,inset:e,children:o,...a},n)=>React__namespace.createElement($1b0217ee4a91d156$export$2ea8a7a591ac5eac,{ref:n,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e&&"pl-8",t),...a},o,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));us.displayName=$1b0217ee4a91d156$export$2ea8a7a591ac5eac.displayName;var fs=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($1b0217ee4a91d156$export$6d4de93b380beddf,{ref:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e}));fs.displayName=$1b0217ee4a91d156$export$6d4de93b380beddf.displayName;var gs=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($1b0217ee4a91d156$export$602eac185826482c,null,React__namespace.createElement($1b0217ee4a91d156$export$7c6e2c02157bb7d2,{ref:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e})));gs.displayName=$1b0217ee4a91d156$export$7c6e2c02157bb7d2.displayName;var Es=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($1b0217ee4a91d156$export$6d08773d2e66f8f2,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t),...o}));Es.displayName=$1b0217ee4a91d156$export$6d08773d2e66f8f2.displayName;var hs=React__namespace.forwardRef(({className:t,children:e,checked:o,...a},n)=>React__namespace.createElement($1b0217ee4a91d156$export$16ce288f89fa631c,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:o,...a},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($1b0217ee4a91d156$export$c3468e2714d175fa,null,React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))),e));hs.displayName=$1b0217ee4a91d156$export$16ce288f89fa631c.displayName;var Rs=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($1b0217ee4a91d156$export$371ab307eab489c0,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...o},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($1b0217ee4a91d156$export$c3468e2714d175fa,null,React__namespace.createElement(DotFilledIcon,{className:"h-4 w-4 fill-current"}))),e));Rs.displayName=$1b0217ee4a91d156$export$371ab307eab489c0.displayName;var xs=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($1b0217ee4a91d156$export$b04be29aa201d4f5,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold text-foreground",e&&"pl-8",t),...o}));xs.displayName=$1b0217ee4a91d156$export$b04be29aa201d4f5.displayName;var ys=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($1b0217ee4a91d156$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-border",t),...e}));ys.displayName=$1b0217ee4a91d156$export$1ff3c3f08ae963c0.displayName;var As=React__namespace.forwardRef(({className:t,inset:e,children:o,...a},n)=>React__namespace.createElement($d08ef79370b62062$export$2ea8a7a591ac5eac,{ref:n,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",e&&"pl-8",t),...a},o,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));As.displayName=$d08ef79370b62062$export$2ea8a7a591ac5eac.displayName;var _s=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($d08ef79370b62062$export$6d4de93b380beddf,{ref:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e}));_s.displayName=$d08ef79370b62062$export$6d4de93b380beddf.displayName;var da=React__namespace.forwardRef(({className:t,sideOffset:e=4,...o},a)=>React__namespace.createElement($d08ef79370b62062$export$602eac185826482c,null,React__namespace.createElement($d08ef79370b62062$export$7c6e2c02157bb7d2,{ref:a,sideOffset:e,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o})));da.displayName=$d08ef79370b62062$export$7c6e2c02157bb7d2.displayName;var Ps=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($d08ef79370b62062$export$6d08773d2e66f8f2,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t),...o}));Ps.displayName=$d08ef79370b62062$export$6d08773d2e66f8f2.displayName;var Is=React__namespace.forwardRef(({className:t,children:e,checked:o,...a},n)=>React__namespace.createElement($d08ef79370b62062$export$16ce288f89fa631c,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:o,...a},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($d08ef79370b62062$export$c3468e2714d175fa,null,React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))),e));Is.displayName=$d08ef79370b62062$export$16ce288f89fa631c.displayName;var Ls=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($d08ef79370b62062$export$371ab307eab489c0,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...o},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($d08ef79370b62062$export$c3468e2714d175fa,null,React__namespace.createElement(DotFilledIcon,{className:"h-4 w-4 fill-current"}))),e));Ls.displayName=$d08ef79370b62062$export$371ab307eab489c0.displayName;var Cs=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($d08ef79370b62062$export$b04be29aa201d4f5,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",t),...o}));Cs.displayName=$d08ef79370b62062$export$b04be29aa201d4f5.displayName;var Ss=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($d08ef79370b62062$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",t),...e}));Ss.displayName=$d08ef79370b62062$export$1ff3c3f08ae963c0.displayName;var Ms=cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ua=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($b73a6c6685e72184$export$be92b6f5f03c0fe9,{ref:o,className:r(Ms(),t),...e}));ua.displayName=$b73a6c6685e72184$export$be92b6f5f03c0fe9.displayName;var Ka=React__namespace.createContext({}),cr=()=>{let t=React__namespace.useContext(Ka),e=React__namespace.useContext(Ja),{getFieldState:o,formState:a}=useFormContext(),n=o(t.name,a);if(!t)throw new Error("useFormField should be used within <FormField>");let{id:s}=e;return {id:s,name:t.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...n}},Ja=React__namespace.createContext({}),be=React__namespace.forwardRef(({className:t,...e},o)=>{let a=React__namespace.useId();return React__namespace.createElement(Ja.Provider,{value:{id:a}},React__namespace.createElement("div",{ref:o,className:r("space-y-2",t),...e}))});be.displayName="FormItem";var we=React__namespace.forwardRef(({className:t,...e},o)=>{let{error:a,formItemId:n}=cr();return React__namespace.createElement(ua,{ref:o,className:r(a&&"text-destructive",t),htmlFor:n,...e})});we.displayName="FormLabel";var Ne=React__namespace.forwardRef(({...t},e)=>{let{error:o,formItemId:a,formDescriptionId:n,formMessageId:s}=cr();return React__namespace.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1,{ref:e,id:a,"aria-describedby":o?`${n} ${s}`:`${n}`,"aria-invalid":!!o,...t})});Ne.displayName="FormControl";var Bs=React__namespace.forwardRef(({className:t,...e},o)=>{let{formDescriptionId:a}=cr();return React__namespace.createElement("p",{ref:o,id:a,className:r("text-[0.8rem] text-muted-foreground",t),...e})});Bs.displayName="FormDescription";var qe=React__namespace.forwardRef(({className:t,children:e,...o},a)=>{let{error:n,formMessageId:s}=cr(),c=n?String(n?.message):e;return c?React__namespace.createElement("p",{ref:a,id:s,className:r("text-[0.8rem] font-medium text-destructive",t),...o},c):null});qe.displayName="FormMessage";var ve=React__namespace.forwardRef(({className:t,type:e,...o},a)=>React__namespace.createElement("input",{type:e,className:r("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:a,...o}));ve.displayName="Input";var Gs=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($0520064cdfc1bd2d$export$be92b6f5f03c0fe9,{ref:o,className:r("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",t),...e}));Gs.displayName=$0520064cdfc1bd2d$export$be92b6f5f03c0fe9.displayName;var qs=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($0520064cdfc1bd2d$export$41fb9f06171c75f4,{ref:o,className:r("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t),...e}));qs.displayName=$0520064cdfc1bd2d$export$41fb9f06171c75f4.displayName;var Ws=React__namespace.forwardRef(({className:t,inset:e,children:o,...a},n)=>React__namespace.createElement($0520064cdfc1bd2d$export$2ea8a7a591ac5eac,{ref:n,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e&&"pl-8",t),...a},o,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));Ws.displayName=$0520064cdfc1bd2d$export$2ea8a7a591ac5eac.displayName;var zs=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($0520064cdfc1bd2d$export$6d4de93b380beddf,{ref:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e}));zs.displayName=$0520064cdfc1bd2d$export$6d4de93b380beddf.displayName;var Qs=React__namespace.forwardRef(({className:t,align:e="start",alignOffset:o=-4,sideOffset:a=8,...n},s)=>React__namespace.createElement($0520064cdfc1bd2d$export$602eac185826482c,null,React__namespace.createElement($0520064cdfc1bd2d$export$7c6e2c02157bb7d2,{ref:s,align:e,alignOffset:o,sideOffset:a,className:r("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n})));Qs.displayName=$0520064cdfc1bd2d$export$7c6e2c02157bb7d2.displayName;var $s=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($0520064cdfc1bd2d$export$6d08773d2e66f8f2,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t),...o}));$s.displayName=$0520064cdfc1bd2d$export$6d08773d2e66f8f2.displayName;var js=React__namespace.forwardRef(({className:t,children:e,checked:o,...a},n)=>React__namespace.createElement($0520064cdfc1bd2d$export$16ce288f89fa631c,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:o,...a},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($0520064cdfc1bd2d$export$c3468e2714d175fa,null,React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))),e));js.displayName=$0520064cdfc1bd2d$export$16ce288f89fa631c.displayName;var Xs=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($0520064cdfc1bd2d$export$371ab307eab489c0,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...o},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($0520064cdfc1bd2d$export$c3468e2714d175fa,null,React__namespace.createElement(DotFilledIcon,{className:"h-4 w-4 fill-current"}))),e));Xs.displayName=$0520064cdfc1bd2d$export$371ab307eab489c0.displayName;var Ks=React__namespace.forwardRef(({className:t,inset:e,...o},a)=>React__namespace.createElement($0520064cdfc1bd2d$export$b04be29aa201d4f5,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",t),...o}));Ks.displayName=$0520064cdfc1bd2d$export$b04be29aa201d4f5.displayName;var Js=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($0520064cdfc1bd2d$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",t),...e}));Js.displayName=$0520064cdfc1bd2d$export$1ff3c3f08ae963c0.displayName;var ol=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($322c88a641701f3b$export$be92b6f5f03c0fe9,{ref:a,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",t),...o},e,React__namespace.createElement(Za,null)));ol.displayName=$322c88a641701f3b$export$be92b6f5f03c0fe9.displayName;var rl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($322c88a641701f3b$export$54c2e3dc7acea9f5,{ref:o,className:r("group flex flex-1 list-none items-center justify-center space-x-1",t),...e}));rl.displayName=$322c88a641701f3b$export$54c2e3dc7acea9f5.displayName;var al=cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),il=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($322c88a641701f3b$export$41fb9f06171c75f4,{ref:a,className:r(al(),"group",t),...o},e," ",React__namespace.createElement(ChevronDownIcon,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})));il.displayName=$322c88a641701f3b$export$41fb9f06171c75f4.displayName;var nl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($322c88a641701f3b$export$7c6e2c02157bb7d2,{ref:o,className:r("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",t),...e}));nl.displayName=$322c88a641701f3b$export$7c6e2c02157bb7d2.displayName;var Za=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{className:r("absolute left-0 top-full flex justify-center")},React__namespace.createElement($322c88a641701f3b$export$d5c6c08dc2d3ca7,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",t),ref:o,...e})));Za.displayName=$322c88a641701f3b$export$d5c6c08dc2d3ca7.displayName;var sl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($322c88a641701f3b$export$adb584737d712b70,{ref:o,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",t),...e},React__namespace.createElement("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})));sl.displayName=$322c88a641701f3b$export$adb584737d712b70.displayName;var fa=React__namespace.forwardRef(({className:t,align:e="center",sideOffset:o=4,...a},n)=>React__namespace.createElement($cb5cc270b50c6fcd$export$602eac185826482c,null,React__namespace.createElement($cb5cc270b50c6fcd$export$7c6e2c02157bb7d2,{ref:n,align:e,sideOffset:o,className:r("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...a})));fa.displayName=$cb5cc270b50c6fcd$export$7c6e2c02157bb7d2.displayName;var ml=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($f99a8c78507165f7$export$be92b6f5f03c0fe9,{className:r("grid gap-2",t),...e,ref:o}));ml.displayName=$f99a8c78507165f7$export$be92b6f5f03c0fe9.displayName;var cl=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($f99a8c78507165f7$export$6d08773d2e66f8f2,{ref:a,className:r("aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),...o},React__namespace.createElement($f99a8c78507165f7$export$adb584737d712b70,{className:"flex items-center justify-center"},React__namespace.createElement(CheckIcon$1,{className:"h-3.5 w-3.5 fill-primary"}))));cl.displayName=$f99a8c78507165f7$export$6d08773d2e66f8f2.displayName;var dl=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($57acba87d6e25586$export$be92b6f5f03c0fe9,{ref:a,className:r("relative overflow-hidden",t),...o},React__namespace.createElement($57acba87d6e25586$export$d5c6c08dc2d3ca7,{className:"h-full w-full rounded-[inherit]"},e),React__namespace.createElement(oi,null),React__namespace.createElement($57acba87d6e25586$export$ac61190d9fc311a9,null)));dl.displayName=$57acba87d6e25586$export$be92b6f5f03c0fe9.displayName;var oi=React__namespace.forwardRef(({className:t,orientation:e="vertical",...o},a)=>React__namespace.createElement($57acba87d6e25586$export$2fabd85d0eba3c57,{ref:a,orientation:e,className:r("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...o},React__namespace.createElement($57acba87d6e25586$export$9fba1154677d7cd2,{className:"relative flex-1 rounded-full bg-border"})));oi.displayName=$57acba87d6e25586$export$2fabd85d0eba3c57.displayName;var Go=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($cc7e05a45900e73f$export$41fb9f06171c75f4,{ref:a,className:r("flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),...o},e,React__namespace.createElement($cc7e05a45900e73f$export$f04a61298a47a40f,{asChild:!0},React__namespace.createElement(CaretSortIcon,{className:"h-4 w-4 opacity-50"}))));Go.displayName=$cc7e05a45900e73f$export$41fb9f06171c75f4.displayName;var qo=React__namespace.forwardRef(({className:t,children:e,position:o="popper",...a},n)=>React__namespace.createElement($cc7e05a45900e73f$export$602eac185826482c,null,React__namespace.createElement($cc7e05a45900e73f$export$7c6e2c02157bb7d2,{ref:n,className:r("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,...a},React__namespace.createElement($cc7e05a45900e73f$export$d5c6c08dc2d3ca7,{className:r("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]")},e))));qo.displayName=$cc7e05a45900e73f$export$7c6e2c02157bb7d2.displayName;var fl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($cc7e05a45900e73f$export$b04be29aa201d4f5,{ref:o,className:r("px-2 py-1.5 text-sm font-semibold",t),...e}));fl.displayName=$cc7e05a45900e73f$export$b04be29aa201d4f5.displayName;var ot=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($cc7e05a45900e73f$export$6d08773d2e66f8f2,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...o},React__namespace.createElement("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($cc7e05a45900e73f$export$c3468e2714d175fa,null,React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))),React__namespace.createElement($cc7e05a45900e73f$export$d6e5bf9c43ea9319,null,e)));ot.displayName=$cc7e05a45900e73f$export$6d08773d2e66f8f2.displayName;var gl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($cc7e05a45900e73f$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",t),...e}));gl.displayName=$cc7e05a45900e73f$export$1ff3c3f08ae963c0.displayName;var El=React__namespace.forwardRef(({className:t,orientation:e="horizontal",decorative:o=!0,...a},n)=>React__namespace.createElement($89eedd556c436f6a$export$be92b6f5f03c0fe9,{ref:n,decorative:o,orientation:e,className:r("shrink-0 bg-border",e==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...a}));El.displayName=$89eedd556c436f6a$export$be92b6f5f03c0fe9.displayName;var Ea=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($faa2e61a3361514f$export$be92b6f5f03c0fe9,{ref:o,className:r("relative flex w-full touch-none select-none items-center",t),...e},React__namespace.createElement($faa2e61a3361514f$export$13921ac0cc260818,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20"},React__namespace.createElement($faa2e61a3361514f$export$9a58ef0d7ad3278c,{className:"absolute h-full bg-primary"})),React__namespace.createElement($faa2e61a3361514f$export$6521433ed15a34db,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})));Ea.displayName=$faa2e61a3361514f$export$be92b6f5f03c0fe9.displayName;var hl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($6be4966fd9bbc698$export$be92b6f5f03c0fe9,{className:r("peer inline-flex h-[20px] w-[36px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",t),...e,ref:o},React__namespace.createElement($6be4966fd9bbc698$export$6521433ed15a34db,{className:r("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})));hl.displayName=$6be4966fd9bbc698$export$be92b6f5f03c0fe9.displayName;var Rl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($69cb30bb0017df05$export$54c2e3dc7acea9f5,{ref:o,className:r("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t),...e}));Rl.displayName=$69cb30bb0017df05$export$54c2e3dc7acea9f5.displayName;var xl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($69cb30bb0017df05$export$41fb9f06171c75f4,{ref:o,className:r("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",t),...e}));xl.displayName=$69cb30bb0017df05$export$41fb9f06171c75f4.displayName;var yl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($69cb30bb0017df05$export$7c6e2c02157bb7d2,{ref:o,className:r("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...e}));yl.displayName=$69cb30bb0017df05$export$7c6e2c02157bb7d2.displayName;var ha=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("textarea",{className:r("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:o,...e}));ha.displayName="Textarea";var Ra=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($054eb8030ebde76e$export$d5c6c08dc2d3ca7,{ref:o,className:r("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...e}));Ra.displayName=$054eb8030ebde76e$export$d5c6c08dc2d3ca7.displayName;var Nl=cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),xa=React__namespace.forwardRef(({className:t,variant:e,...o},a)=>React__namespace.createElement($054eb8030ebde76e$export$be92b6f5f03c0fe9,{ref:a,className:r(Nl({variant:e}),t),...o}));xa.displayName=$054eb8030ebde76e$export$be92b6f5f03c0fe9.displayName;var vl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($054eb8030ebde76e$export$e19cd5f9376f8cee,{ref:o,className:r("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...e}));vl.displayName=$054eb8030ebde76e$export$e19cd5f9376f8cee.displayName;var ya=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($054eb8030ebde76e$export$f39c2d165cd861fe,{ref:o,className:r("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e},React__namespace.createElement(Cross2Icon,{className:"h-4 w-4"})));ya.displayName=$054eb8030ebde76e$export$f39c2d165cd861fe.displayName;var Ta=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($054eb8030ebde76e$export$f99233281efd08a0,{ref:o,className:r("text-sm font-semibold [&+div]:text-xs",t),...e}));Ta.displayName=$054eb8030ebde76e$export$f99233281efd08a0.displayName;var ba=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($054eb8030ebde76e$export$393edc798c47379d,{ref:o,className:r("text-sm opacity-90",t),...e}));ba.displayName=$054eb8030ebde76e$export$393edc798c47379d.displayName;var Sl=cva("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),wl=React__namespace.forwardRef(({className:t,variant:e,size:o,...a},n)=>React__namespace.createElement($b3bbe2732c13b576$export$be92b6f5f03c0fe9,{ref:n,className:r(Sl({variant:e,size:o,className:t})),...a}));wl.displayName=$b3bbe2732c13b576$export$be92b6f5f03c0fe9.displayName;var _a=(n=>(n.buyer="buyer",n.seller="seller",n.buyerSeller="buyer-seller",n.broker="broker",n))(_a||{});var R=class R{};R.ESTIMATES_ENDPOINT_URL="https://api.liberty.percyai.io/property/v1/estimates",R.ESTIMATED_VALUES_HEADER_TITLE="Estimated Values",R.ESTIMATED_VALUES_DIALOG_TITLE="How estimated values work",R.ESTIMATED_VALUES_DIALOG_DESCRIPTION="The values generated here are based on automated computer modeling from public records and may not represent the true value of the home.",R.ESTIMATED_VALUES_BUTTON_DESCRIPTION="Contact Mortgage Consultant",R.FORM_TITLE="Learn more about my options",R.FORM_DESCRIPTION="Get more insights on how your property valuation",R.FORM_FIRST_NAME_LABEL="First Name *",R.FORM_FIRST_NAME_PLACEHOLDER="Enter First Name",R.FORM_EMAIL_ADDRESS_LABEL="Email Address *",R.FORM_EMAIL_ADDRESS_PLACEHOLDER="Enter Email Adress",R.FORM_LAST_NAME_LABEL="Last Name *",R.FORM_LAST_NAME_PLACEHOLDER="Enter Last Name",R.FORM_PHONE_NUMBER_LABEL="Phone Number *",R.FORM_PHONE_NUMBER_PLACEHOLDER="Enter Phone Number",R.FORM_USER_TYPE_LABEL="I am: *",R.FORM_USER_TYPE_PLACEHOLDER="Please tell us who you are.",R.FORM_AGENT_CHECK_BOX_DESCRIPTION="Are you currently working with a",R.FORM_AGENT_CHECK_BOX_AGENT_TYPE="Agent",R.FORM_AGENT_CHECK_BOX_BROKERAGE_NAME="Percy Realty",R.FORM_AGENT_NAME_PLACEHOLDER="Enter Agent's Name",R.FORM_ACTION_BUTTOM="Submit",R.FIRST_NAME_REQUIRED_VALIDATION_MESSAGE="First Name is required.",R.EMAIL_ADDRESS_REQUIRED_VALIDATION_MESSAGE="Email address is required.",R.EMAIL_ADDRESS_FORMAT_VALIDATION_MESSAGE="Email address format is wrong.",R.LAST_NAME_REQUIRED_VALIDATION_MESSAGE="Last Name is required.",R.PHONE_NUMBER_REQUIRED_VALIDATION_MESSAGE="Phone Number is required.",R.PHONE_NUMBER_FORMAT_VALIDATION_MESSAGE="Phone Number format is wrong.",R.IAM_REQUIRED_VALIDATION_MESSAGE="Please select an option.",R.HOME_ADDRESS_REQUIRED_VALIDATION_MESSAGE="Home Address is required.",R.ON_ERROR_OCCURRED="An error occurred while submitting the form. Please try again.",R.BUYER="A Buyer",R.SELLER="A Seller",R.BUYER_SELLER="A Buyer and Seller",R.BROKER="A Broker/Agent",R.PERIOD_1="Immediately",R.PERIOD_2="1 to 3 Months",R.PERIOD_3="3 to 6 Months",R.PERIOD_4="6 to 12 Months",R.PERIOD_5="12+ Months",R.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL="Message",R.DYNAMIC_VALUES_BUYER_MESSAGE_PLACEHOLDER="Hello, I am interested in learning more about this property.",R.DYNAMIC_VALUES_BROKER_MESSAGE_PLACEHOLDER="Hello, I am interested in learning more about this buyer.",R.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_LABEL="Home Address *",R.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_PLACEHOLDER="Enter Home Address",R.DYNAMIC_VALUES_SELLER_APROXIMATE_VALUE_LABEL="Property's Approximate Value",R.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_LABEL="Time Frame for Selling",R.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_PLACEHOLDER="Please select a time frame",R.sellerBuyerSharedContent=[{label:R.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_LABEL,type:"text",placeholder:R.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_PLACEHOLDER},{label:R.DYNAMIC_VALUES_SELLER_APROXIMATE_VALUE_LABEL,type:"number",placeholder:""},{label:R.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_LABEL,type:"select",placeholder:R.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_PLACEHOLDER}],R.DYNAMIC_VALUES={buyer:[{label:R.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL,type:"textarea",placeholder:R.DYNAMIC_VALUES_BUYER_MESSAGE_PLACEHOLDER}],seller:R.sellerBuyerSharedContent,"buyer-seller":R.sellerBuyerSharedContent,broker:[{label:R.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL,type:"textarea",placeholder:R.DYNAMIC_VALUES_BROKER_MESSAGE_PLACEHOLDER}]};var P=R;var jl=nativeEnumType(_a,{required_error:P.IAM_REQUIRED_VALIDATION_MESSAGE});objectType({firstName:stringType().min(2,{message:P.FIRST_NAME_REQUIRED_VALIDATION_MESSAGE}),emailAdress:stringType({required_error:P.EMAIL_ADDRESS_REQUIRED_VALIDATION_MESSAGE}).email({message:P.EMAIL_ADDRESS_FORMAT_VALIDATION_MESSAGE}),lastName:stringType().min(2,{message:P.LAST_NAME_REQUIRED_VALIDATION_MESSAGE}),phoneNumber:stringType().min(2,{message:P.PHONE_NUMBER_REQUIRED_VALIDATION_MESSAGE}),iam:jl,agent:booleanType().optional(),agentName:stringType().optional(),dynamicValues:arrayType(objectType({homeAddress:stringType().min(2,{message:P.HOME_ADDRESS_REQUIRED_VALIDATION_MESSAGE}).optional(),value:stringType().optional()})).optional()});var i=class{static EQUITY_MORTGAGE_DETAILS_BANNER_DESCRIPTION(e,o,a,n,s){return `Public records show a ${e} year loan at ${o} for ${a} from ${n}, giving you an estimated loan balance of ${s}. All calculations on this report are based on these numbers, so we want to make sure we get this right!`}static HOW_CALCULATE_INFORMATION_DESCRIPTION(e,o,a,n){return `These numbers are all based on your ${a} year loan at ${e} for ${o} from ${n}.`}static PAY_LITTLE_EXTRA_DESCRIPTION(e,o,a,n){return `Based on your ${e} year loan at ${o} for ${a} from ${n}`}static PAY_LITTLE_EXTRA_EARLIER_MESSAGE(e){return `You would also be done with the loan and no longer making payments ${e} earlier!`}static REFINANCE_OPTIONS_LONG_TERM_MESSAGE(e){return `Long term ${e}`}static REFINANCE_OPTIONS_PAYMENT_PER_MONTH_DESCRIPTION(e,o){return `Payment may go ${e} by ${o}/mo`}static USING_YOUR_EQUITY_SUBTITLE(e){return `With your ${e} in equity, you could afford to`}static USING_EQUITY_BUY_NEW_HOME_DIALOG_HEADLINE(e,o){return `Using ${e} of your estimated equity, you could make a 20% down payment on a new house worth around ${o}.`}static USING_EQUITY_MONTHLY_PRINCIPAL_INTEREST(e,o){return `Your new monthly principal and interest payment on a 30-year mortgage at ${e} APR is estimated at ${o}/mo`}static USING_EQUITY_REMINDER(e,o){return `Reminder: You'll pay ${e}-${o} in fees and commissions when you sell your current home. This cost varies by agent, location, and company.`}static USING_EQUITY_SELL_CASH_HEADLINE(e){return `Are you ready to cash in on your equity? You could sell your home and pocket around ${e}.`}static USING_EQUITY_INVESMENT_PROPERTY_HEADLINE(e,o){return `You could use around ${e} of your equity as a 30% down payment on an investment home worth ${o}.`}static USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_1(e,o){return `With your ${e} in equity, you could have about ${o} to work with depending on market rates, your current financial situation, home occupancy status, and refi goals. (And, it is smart to leave at least 25% of your equity in your home.)`}};i.ACTION_OK_BUTTON_LABEL="OK",i.DESCRIPTION_YEARS_LABEL="Years",i.YEAR=" year",i.PLURAL="s ",i.AND=" and ",i.MONTH=" month",i.RATE=" rate",i.HOME_GUIDE_URL="https://homeguide.com/costs/home-addition-cost",i.HOME_GUIDE="homeguide.com 2020",i.EL_ISSA="El Issa, 2019",i.EL_ISSA_URL="https://www.nerdwallet.com/blog/average-credit-card-debt-household/",i.TICAS="TICAS, Student Debt and the Class of 2018",i.TICAS_URL="https://ticas.org/wp-content/uploads/2019/09/classof2018.pdf",i.NO_DATA_AVAILABLE_LABEL="No Data Available",i.ACTION_BUTTON_BEST_OPTION_LABEL="Which option is best for me?",i.LEARN_MORE_LABEL="Learn more about this",i.EDIT_DETAILS_LABEL="Edit Details",i.WHY_PAY_MORE_LABEL="Why Pay More?",i.EARLY_LOAN_LABEL="Early Loan Payoff Information",i.ASK_AGENT_LABEL="Ask an Agent",i.CONFIGURATION_ERROR_LABEL="Configuration Error",i.CONFIGURATION_ERROR_KEY_EXPIRED_LABEL="Key is expired",i.EQUITY_MORTGAGE_DETAILS_HEADER_TITLE="Equity In Your Home",i.EQUITY_MORTGAGE_DETAILS_DESCRIPTION="Equity is your home's worth to you!",i.EQUITY_MORTGAGE_DETAILS_ALL_GOOD_BUTTON="All Good",i.EQUITY_MORTGAGE_DETAILS_BANNER_TITLE="Verify Your Mortgage Details",i.EQUITY_MORTGAGE_DETAILS_TITLE="Estimated Equity Today",i.EQUITY_MORTGAGE_DETAILS_HOW_CALCULATED="How is this calculated?",i.EQUITY_MORTGAGE_DETAILS_DISCLAIMER="Disclaimer",i.EDIT_MORTGAGE_DETAILS_FORM_TITLE="Edit Mortgage Info",i.EDIT_MORTGAGE_DETAILS_LOAN_START_DATE_LABEL="Loan Start Date",i.EDIT_MORTGAGE_DETAILS_LOAN_TERM_LABEL="Loan Term",i.EDIT_MORTGAGE_DETAILS_INTEREST_RATE_LABEL="Interest Rate",i.EDIT_MORTGAGE_DETAILS_ORIGINAL_LOAN_AMOUNT_LABEL="Original Loan Amount",i.EDIT_MORTGAGE_DETAILS_BALANCE_LABEL="Estimated Mortgage Balance",i.EDIT_MORTGAGE_DETAILS_DISCLAIMER_TEXT="This message is for information purposes only and is not an advertisement to extend customer credit as defined by Section 12 CFR 1026.2 Regulation Z. Program rates, terms, and conditions are subject to change at any time. All examples of potential mortgage products above are estimates for illustration purposes only. All programs and mortgage products are subject to borrower income, credit, and property approval. Not all borrowers will qualify. This is not an offer for extension of credit or a commitment to lend. Home valuations are estimates purchased from a third-party data provider. Actual appraised value at the time of a transaction may vary. Equal Housing Lender. Interest rates used are based on a reasonably current index and margin from the Freddie Mac Primary Mortgage Market Survey.",i.HOW_CALCULATE_TITLE="How Is My Net Worth Calculated?",i.HOW_CALCULATE_DESCRIPTION='Your net worth ("equity") is made up of two things.',i.HOW_CALCULATE_HOME_VALUE_LABEL="Home Value",i.HOW_CALCULATE_LOAN_BALANCE_LABEL="Loan Balance",i.HOW_CALCULATE_YOUR_NET_WORTH_LABEL="Your Net Worth",i.HOW_CALCULATE_INFORMATION_SUBTITLE="Where does this information come from?",i.HOW_CALCULATE_NOTE_DESCRIPTION="Note: Only the first lien mortgage and resale are used to calculate the balance of your loan.",i.PAY_LITTLE_EXTRA_HEADER_TITLE="Pay A Little Extra",i.PAY_LITTLE_EXTRA_SUBTITLE="How much more can you pay per month?",i.PAY_LITTLE_EXTRA_CALCULATION_IF_YOU_PAY="If you pay just ",i.PAY_LITTLE_EXTRA_CALCULATION_MORE=" more each month, you could save",i.PAY_LITTLE_EXTRA_CALCULATION_DESCRIPTION="in interest over the rest of your loan",i.PAY_LITTLE_EXTRA_INFO_DESCRIPTION="You would also be done with the loan and no longer making payments 10 years and 2 months earlier!",i.PAY_LITTLE_EXTRA_PAYING_EXTRA="Paying extra can be an easy way to save.",i.PAY_LITTLE_EXTRA_PAYING_EXTRA_DESCRIPTION="Your mortgage payment is typically defined as your principal and interest payment. When you pay extra on your principal balance, you can reduce the amount of your loan and save money on interest.",i.PAY_LITTLE_EXTRA_PAYING_EXTRA_BEST_PART="The best part is that there's no paperwork, fees or headaches.",i.PAY_LITTLE_EXTRA_PAYING_EXTRA_IMPORTANT_TIP="*Important Tip* ",i.PAY_LITTLE_EXTRA_PAYING_EXTRA_IMPORTANT_TIP_DESCRIPTION="contact your mortgage servicer to indicate your extra payment is for principal reduction (to ensure it is not accidentally applied to an extra payment, extra interest, or towards escrow).",i.PAY_LITTLE_EXTRA_LENGTH_LOAN_REMAIN_MESSAGE="The length of your loan would remain unchanged with this extra payment.",i.CONTACT_AGENT_TITLE="We Might Have The Perferct Buyer For Your Home",i.CONTACT_AGENT_DESCRIPTION="Click the button and we'll look though our buyer database for you.",i.REFINANCE_OPTIONS_HEADER_TITLE="Refinance Options",i.REFINANCE_OPTIONS_HEADER_SUBTITLE="With a refinance of your loan, you could save",i.REFINANCE_OPTIONS_LEARN_MORE_DESCRIPTION=`
|
|
67294
|
+
function o(...t){return twMerge(clsx(t))}var Dn="https://api.liberty.percyai.io/key_service/v1/jwt/generate",qr=async({clientKey:t})=>{try{return t?await(await fetch(Dn,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientKey:t})})).json():void 0}catch(e){console.error("Error requesting token:",e);return}},b=(t,e)=>t?.config?t.config.find(r=>r.name===e):{};var io=cva("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),X=React__namespace.forwardRef(({className:t,variant:e,size:r,asChild:a=!1,...n},s)=>React__namespace.createElement(a?$5e63c961fc1ce211$export$8c6ed5c666ac1360$1:"button",{className:o(io({variant:e,size:r,className:t})),ref:s,...n}));X.displayName="Button";var no=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("div",{ref:r,className:o("rounded-xl border bg-card text-card-foreground shadow",t),...e}));no.displayName="Card";var so=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("div",{ref:r,className:o("flex flex-col space-y-1.5 p-6",t),...e}));so.displayName="CardHeader";var Wr=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("h3",{ref:r,className:o("font-semibold leading-none tracking-tight",t),...e}));Wr.displayName="CardTitle";var Un=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("p",{ref:r,className:o("text-sm text-muted-foreground",t),...e}));Un.displayName="CardDescription";var lo=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("div",{ref:r,className:o("p-6 pt-0",t),...e}));lo.displayName="CardContent";var mo=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("div",{ref:r,className:o("flex items-center p-6 pt-0",t),...e}));mo.displayName="CardFooter";var zr=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($cddcb0b647441e34$export$be92b6f5f03c0fe9,{ref:r,className:o("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...e}));zr.displayName=$cddcb0b647441e34$export$be92b6f5f03c0fe9.displayName;var Hn=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($cddcb0b647441e34$export$3e431a229df88919,{ref:r,className:o("aspect-square h-full w-full",t),...e}));Hn.displayName=$cddcb0b647441e34$export$3e431a229df88919.displayName;var Qr=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($cddcb0b647441e34$export$fb8d7f40caaeea67,{ref:r,className:o("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...e}));Qr.displayName=$cddcb0b647441e34$export$fb8d7f40caaeea67.displayName;var $r=React__namespace.forwardRef(({className:t,value:e,...r},a)=>React__namespace.createElement($67824d98245208a0$export$be92b6f5f03c0fe9,{ref:a,className:o("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",t),...r},React__namespace.createElement($67824d98245208a0$export$adb584737d712b70,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(e||0)}%)`}})));$r.displayName=$67824d98245208a0$export$be92b6f5f03c0fe9.displayName;var co=React__namespace.forwardRef(({className:t,sideOffset:e=4,...r},a)=>React__namespace.createElement($a093c7e1ec25a057$export$7c6e2c02157bb7d2,{ref:a,sideOffset:e,className:o("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));co.displayName=$a093c7e1ec25a057$export$7c6e2c02157bb7d2.displayName;var qa=({className:t,...e})=>React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{className:o(t),...e});qa.displayName=$5d3850c4d0b4e6c7$export$602eac185826482c$1.displayName;var Wa=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1,{className:o("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:r}));Wa.displayName=$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1.displayName;var Gn=cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),qn=React__namespace.forwardRef(({side:t="right",className:e,children:r,...a},n)=>React__namespace.createElement(qa,null,React__namespace.createElement(Wa,null),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1,{ref:n,className:o(Gn({side:t}),e),...a},r,React__namespace.createElement($5d3850c4d0b4e6c7$export$f39c2d165cd861fe,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary"},React__namespace.createElement(Cross2Icon,{className:"h-4 w-4"}),React__namespace.createElement("span",{className:"sr-only"},"Close")))));qn.displayName=$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1.displayName;var Qn=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$f99233281efd08a0,{ref:r,className:o("text-lg font-semibold text-foreground",t),...e}));Qn.displayName=$5d3850c4d0b4e6c7$export$f99233281efd08a0.displayName;var $n=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d,{ref:r,className:o("text-sm text-muted-foreground",t),...e}));$n.displayName=$5d3850c4d0b4e6c7$export$393edc798c47379d.displayName;var jr=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("div",{className:"w-full overflow-auto"},React__namespace.createElement("table",{ref:r,className:o("w-full caption-bottom text-sm",t),...e})));jr.displayName="Table";var Xr=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("thead",{ref:r,className:o("[&_tr]:border-b",t),...e}));Xr.displayName="TableHeader";var Kr=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("tbody",{ref:r,className:o("[&_tr:last-child]:border-0",t),...e}));Kr.displayName="TableBody";var Jr=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("tfoot",{ref:r,className:o("bg-primary font-medium text-primary-foreground",t),...e}));Jr.displayName="TableFooter";var Yo=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("tr",{ref:r,className:o("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...e}));Yo.displayName="TableRow";var Gt=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("th",{ref:r,className:o("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e}));Gt.displayName="TableHead";var qt=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("td",{ref:r,className:o("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e}));qt.displayName="TableCell";var Zr=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("caption",{ref:r,className:o("mt-4 text-sm text-muted-foreground",t),...e}));Zr.displayName="TableCaption";var Xn=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($1bf158f521e1b1b4$export$6d08773d2e66f8f2,{ref:r,className:o("border-b",t),...e}));Xn.displayName="AccordionItem";var Kn=React__namespace.forwardRef(({className:t,children:e,...r},a)=>React__namespace.createElement($1bf158f521e1b1b4$export$8b251419efc915eb,{className:"flex"},React__namespace.createElement($1bf158f521e1b1b4$export$41fb9f06171c75f4,{ref:a,className:o("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...r},e,React__namespace.createElement(ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"}))));Kn.displayName=$1bf158f521e1b1b4$export$41fb9f06171c75f4.displayName;var Jn=React__namespace.forwardRef(({className:t,children:e,...r},a)=>React__namespace.createElement($1bf158f521e1b1b4$export$7c6e2c02157bb7d2,{ref:a,className:o("overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",t),...r},React__namespace.createElement("div",{className:"pb-4 pt-0"},e)));Jn.displayName=$1bf158f521e1b1b4$export$7c6e2c02157bb7d2.displayName;var es=cva("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),po=React__namespace.forwardRef(({className:t,variant:e,...r},a)=>React__namespace.createElement("div",{ref:a,role:"alert",className:o(es({variant:e}),t),...r}));po.displayName="Alert";var uo=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("h5",{ref:r,className:o("mb-1 font-medium leading-none tracking-tight",t),...e}));uo.displayName="AlertTitle";var fo=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("div",{ref:r,className:o("text-sm [&_p]:leading-relaxed",t),...e}));fo.displayName="AlertDescription";var za=$905f4ae918aab1aa$export$be92b6f5f03c0fe9,Qa=$905f4ae918aab1aa$export$41fb9f06171c75f4,$a=({className:t,...e})=>React__namespace.createElement($905f4ae918aab1aa$export$602eac185826482c,{className:o(t),...e});$a.displayName=$905f4ae918aab1aa$export$602eac185826482c.displayName;var ja=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($905f4ae918aab1aa$export$c6fdb837b070b4ff,{className:o("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:r}));ja.displayName=$905f4ae918aab1aa$export$c6fdb837b070b4ff.displayName;var ea=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($a,null,React__namespace.createElement(ja,null),React__namespace.createElement($905f4ae918aab1aa$export$7c6e2c02157bb7d2,{ref:r,className:o("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",t),...e})));ea.displayName=$905f4ae918aab1aa$export$7c6e2c02157bb7d2.displayName;var ta=({className:t,...e})=>React__namespace.createElement("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});ta.displayName="AlertDialogFooter";var oa=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($905f4ae918aab1aa$export$f99233281efd08a0,{ref:r,className:o("text-lg font-semibold",t),...e}));oa.displayName=$905f4ae918aab1aa$export$f99233281efd08a0.displayName;var os=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($905f4ae918aab1aa$export$393edc798c47379d,{ref:r,className:o("text-sm text-muted-foreground",t),...e}));os.displayName=$905f4ae918aab1aa$export$393edc798c47379d.displayName;var ra=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($905f4ae918aab1aa$export$e19cd5f9376f8cee,{ref:r,className:o(io(),t),...e}));ra.displayName=$905f4ae918aab1aa$export$e19cd5f9376f8cee.displayName;var rs=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($905f4ae918aab1aa$export$848c9b7ead0df967,{ref:r,className:o(io({variant:"outline"}),"mt-2 sm:mt-0",t),...e}));rs.displayName=$905f4ae918aab1aa$export$848c9b7ead0df967.displayName;var aa=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($e698a72e93240346$export$be92b6f5f03c0fe9,{ref:r,className:o("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...e},React__namespace.createElement($e698a72e93240346$export$adb584737d712b70,{className:o("flex items-center justify-center text-current")},React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))));aa.displayName=$e698a72e93240346$export$be92b6f5f03c0fe9.displayName;var Xa=({className:t,...e})=>React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{className:o(t),...e});Xa.displayName=$5d3850c4d0b4e6c7$export$602eac185826482c$1.displayName;var Ka=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1,{ref:r,className:o("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e}));Ka.displayName=$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1.displayName;var go=React__namespace.forwardRef(({className:t,children:e,...r},a)=>React__namespace.createElement(Xa,null,React__namespace.createElement(Ka,null),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1,{ref:a,className:o("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",t),...r},e,React__namespace.createElement($5d3850c4d0b4e6c7$export$f39c2d165cd861fe,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},React__namespace.createElement(Cross2Icon,{className:"h-4 w-4"}),React__namespace.createElement("span",{className:"sr-only"},"Close")))));go.displayName=$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1.displayName;var sa=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$f99233281efd08a0,{ref:r,className:o("text-lg font-semibold leading-none tracking-tight",t),...e}));sa.displayName=$5d3850c4d0b4e6c7$export$f99233281efd08a0.displayName;var la=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d,{ref:r,className:o("text-sm text-muted-foreground",t),...e}));la.displayName=$5d3850c4d0b4e6c7$export$393edc798c47379d.displayName;var mr=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement(Le$1,{ref:r,className:o("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",t),...e}));mr.displayName=Le$1.displayName;var ma=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":""},React__namespace.createElement(MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),React__namespace.createElement(Le$1.Input,{ref:r,className:o("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),...e})));ma.displayName=Le$1.Input.displayName;var ca=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement(Le$1.List,{ref:r,className:o("max-h-[300px] overflow-y-auto overflow-x-hidden",t),...e}));ca.displayName=Le$1.List.displayName;var da=React__namespace.forwardRef((t,e)=>React__namespace.createElement(Le$1.Empty,{ref:e,className:"py-6 text-center text-sm",...t}));da.displayName=Le$1.Empty.displayName;var pa=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement(Le$1.Group,{ref:r,className:o("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",t),...e}));pa.displayName=Le$1.Group.displayName;var ds=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement(Le$1.Separator,{ref:r,className:o("-mx-1 h-px bg-border",t),...e}));ds.displayName=Le$1.Separator.displayName;var ua=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement(Le$1.Item,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...e}));ua.displayName=Le$1.Item.displayName;var Es=React__namespace.forwardRef(({className:t,inset:e,children:r,...a},n)=>React__namespace.createElement($1b0217ee4a91d156$export$2ea8a7a591ac5eac,{ref:n,className:o("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e&&"pl-8",t),...a},r,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));Es.displayName=$1b0217ee4a91d156$export$2ea8a7a591ac5eac.displayName;var ys=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($1b0217ee4a91d156$export$6d4de93b380beddf,{ref:r,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e}));ys.displayName=$1b0217ee4a91d156$export$6d4de93b380beddf.displayName;var hs=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($1b0217ee4a91d156$export$602eac185826482c,null,React__namespace.createElement($1b0217ee4a91d156$export$7c6e2c02157bb7d2,{ref:r,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e})));hs.displayName=$1b0217ee4a91d156$export$7c6e2c02157bb7d2.displayName;var xs=React__namespace.forwardRef(({className:t,inset:e,...r},a)=>React__namespace.createElement($1b0217ee4a91d156$export$6d08773d2e66f8f2,{ref:a,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t),...r}));xs.displayName=$1b0217ee4a91d156$export$6d08773d2e66f8f2.displayName;var Rs=React__namespace.forwardRef(({className:t,children:e,checked:r,...a},n)=>React__namespace.createElement($1b0217ee4a91d156$export$16ce288f89fa631c,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:r,...a},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($1b0217ee4a91d156$export$c3468e2714d175fa,null,React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))),e));Rs.displayName=$1b0217ee4a91d156$export$16ce288f89fa631c.displayName;var Ts=React__namespace.forwardRef(({className:t,children:e,...r},a)=>React__namespace.createElement($1b0217ee4a91d156$export$371ab307eab489c0,{ref:a,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($1b0217ee4a91d156$export$c3468e2714d175fa,null,React__namespace.createElement(DotFilledIcon,{className:"h-4 w-4 fill-current"}))),e));Ts.displayName=$1b0217ee4a91d156$export$371ab307eab489c0.displayName;var bs=React__namespace.forwardRef(({className:t,inset:e,...r},a)=>React__namespace.createElement($1b0217ee4a91d156$export$b04be29aa201d4f5,{ref:a,className:o("px-2 py-1.5 text-sm font-semibold text-foreground",e&&"pl-8",t),...r}));bs.displayName=$1b0217ee4a91d156$export$b04be29aa201d4f5.displayName;var vs=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($1b0217ee4a91d156$export$1ff3c3f08ae963c0,{ref:r,className:o("-mx-1 my-1 h-px bg-border",t),...e}));vs.displayName=$1b0217ee4a91d156$export$1ff3c3f08ae963c0.displayName;var Is=React__namespace.forwardRef(({className:t,inset:e,children:r,...a},n)=>React__namespace.createElement($d08ef79370b62062$export$2ea8a7a591ac5eac,{ref:n,className:o("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",e&&"pl-8",t),...a},r,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));Is.displayName=$d08ef79370b62062$export$2ea8a7a591ac5eac.displayName;var Ls=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($d08ef79370b62062$export$6d4de93b380beddf,{ref:r,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e}));Ls.displayName=$d08ef79370b62062$export$6d4de93b380beddf.displayName;var fa=React__namespace.forwardRef(({className:t,sideOffset:e=4,...r},a)=>React__namespace.createElement($d08ef79370b62062$export$602eac185826482c,null,React__namespace.createElement($d08ef79370b62062$export$7c6e2c02157bb7d2,{ref:a,sideOffset:e,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r})));fa.displayName=$d08ef79370b62062$export$7c6e2c02157bb7d2.displayName;var Cs=React__namespace.forwardRef(({className:t,inset:e,...r},a)=>React__namespace.createElement($d08ef79370b62062$export$6d08773d2e66f8f2,{ref:a,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t),...r}));Cs.displayName=$d08ef79370b62062$export$6d08773d2e66f8f2.displayName;var Ss=React__namespace.forwardRef(({className:t,children:e,checked:r,...a},n)=>React__namespace.createElement($d08ef79370b62062$export$16ce288f89fa631c,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:r,...a},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($d08ef79370b62062$export$c3468e2714d175fa,null,React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))),e));Ss.displayName=$d08ef79370b62062$export$16ce288f89fa631c.displayName;var ws=React__namespace.forwardRef(({className:t,children:e,...r},a)=>React__namespace.createElement($d08ef79370b62062$export$371ab307eab489c0,{ref:a,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($d08ef79370b62062$export$c3468e2714d175fa,null,React__namespace.createElement(DotFilledIcon,{className:"h-4 w-4 fill-current"}))),e));ws.displayName=$d08ef79370b62062$export$371ab307eab489c0.displayName;var Ds=React__namespace.forwardRef(({className:t,inset:e,...r},a)=>React__namespace.createElement($d08ef79370b62062$export$b04be29aa201d4f5,{ref:a,className:o("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",t),...r}));Ds.displayName=$d08ef79370b62062$export$b04be29aa201d4f5.displayName;var Ms=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($d08ef79370b62062$export$1ff3c3f08ae963c0,{ref:r,className:o("-mx-1 my-1 h-px bg-muted",t),...e}));Ms.displayName=$d08ef79370b62062$export$1ff3c3f08ae963c0.displayName;var Us=cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ea=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($b73a6c6685e72184$export$be92b6f5f03c0fe9,{ref:r,className:o(Us(),t),...e}));Ea.displayName=$b73a6c6685e72184$export$be92b6f5f03c0fe9.displayName;var ei=React__namespace.createContext({}),pr=()=>{let t=React__namespace.useContext(ei),e=React__namespace.useContext(ti),{getFieldState:r,formState:a}=useFormContext(),n=r(t.name,a);if(!t)throw new Error("useFormField should be used within <FormField>");let{id:s}=e;return {id:s,name:t.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...n}},ti=React__namespace.createContext({}),ve=React__namespace.forwardRef(({className:t,...e},r)=>{let a=React__namespace.useId();return React__namespace.createElement(ti.Provider,{value:{id:a}},React__namespace.createElement("div",{ref:r,className:o("space-y-2",t),...e}))});ve.displayName="FormItem";var De=React__namespace.forwardRef(({className:t,...e},r)=>{let{error:a,formItemId:n}=pr();return React__namespace.createElement(Ea,{ref:r,className:o(a&&"text-destructive",t),htmlFor:n,...e})});De.displayName="FormLabel";var Ne=React__namespace.forwardRef(({...t},e)=>{let{error:r,formItemId:a,formDescriptionId:n,formMessageId:s}=pr();return React__namespace.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1,{ref:e,id:a,"aria-describedby":r?`${n} ${s}`:`${n}`,"aria-invalid":!!r,...t})});Ne.displayName="FormControl";var Ys=React__namespace.forwardRef(({className:t,...e},r)=>{let{formDescriptionId:a}=pr();return React__namespace.createElement("p",{ref:r,id:a,className:o("text-[0.8rem] text-muted-foreground",t),...e})});Ys.displayName="FormDescription";var We=React__namespace.forwardRef(({className:t,children:e,...r},a)=>{let{error:n,formMessageId:s}=pr(),c=n?String(n?.message):e;return c?React__namespace.createElement("p",{ref:a,id:s,className:o("text-[0.8rem] font-medium text-destructive",t),...r},c):null});We.displayName="FormMessage";var Ae=React__namespace.forwardRef(({className:t,type:e,...r},a)=>React__namespace.createElement("input",{type:e,className:o("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:a,...r}));Ae.displayName="Input";var zs=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($0520064cdfc1bd2d$export$be92b6f5f03c0fe9,{ref:r,className:o("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",t),...e}));zs.displayName=$0520064cdfc1bd2d$export$be92b6f5f03c0fe9.displayName;var Qs=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($0520064cdfc1bd2d$export$41fb9f06171c75f4,{ref:r,className:o("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t),...e}));Qs.displayName=$0520064cdfc1bd2d$export$41fb9f06171c75f4.displayName;var $s=React__namespace.forwardRef(({className:t,inset:e,children:r,...a},n)=>React__namespace.createElement($0520064cdfc1bd2d$export$2ea8a7a591ac5eac,{ref:n,className:o("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e&&"pl-8",t),...a},r,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));$s.displayName=$0520064cdfc1bd2d$export$2ea8a7a591ac5eac.displayName;var js=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($0520064cdfc1bd2d$export$6d4de93b380beddf,{ref:r,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e}));js.displayName=$0520064cdfc1bd2d$export$6d4de93b380beddf.displayName;var Xs=React__namespace.forwardRef(({className:t,align:e="start",alignOffset:r=-4,sideOffset:a=8,...n},s)=>React__namespace.createElement($0520064cdfc1bd2d$export$602eac185826482c,null,React__namespace.createElement($0520064cdfc1bd2d$export$7c6e2c02157bb7d2,{ref:s,align:e,alignOffset:r,sideOffset:a,className:o("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n})));Xs.displayName=$0520064cdfc1bd2d$export$7c6e2c02157bb7d2.displayName;var Ks=React__namespace.forwardRef(({className:t,inset:e,...r},a)=>React__namespace.createElement($0520064cdfc1bd2d$export$6d08773d2e66f8f2,{ref:a,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t),...r}));Ks.displayName=$0520064cdfc1bd2d$export$6d08773d2e66f8f2.displayName;var Js=React__namespace.forwardRef(({className:t,children:e,checked:r,...a},n)=>React__namespace.createElement($0520064cdfc1bd2d$export$16ce288f89fa631c,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:r,...a},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($0520064cdfc1bd2d$export$c3468e2714d175fa,null,React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))),e));Js.displayName=$0520064cdfc1bd2d$export$16ce288f89fa631c.displayName;var Zs=React__namespace.forwardRef(({className:t,children:e,...r},a)=>React__namespace.createElement($0520064cdfc1bd2d$export$371ab307eab489c0,{ref:a,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r},React__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($0520064cdfc1bd2d$export$c3468e2714d175fa,null,React__namespace.createElement(DotFilledIcon,{className:"h-4 w-4 fill-current"}))),e));Zs.displayName=$0520064cdfc1bd2d$export$371ab307eab489c0.displayName;var el=React__namespace.forwardRef(({className:t,inset:e,...r},a)=>React__namespace.createElement($0520064cdfc1bd2d$export$b04be29aa201d4f5,{ref:a,className:o("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",t),...r}));el.displayName=$0520064cdfc1bd2d$export$b04be29aa201d4f5.displayName;var tl=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($0520064cdfc1bd2d$export$1ff3c3f08ae963c0,{ref:r,className:o("-mx-1 my-1 h-px bg-muted",t),...e}));tl.displayName=$0520064cdfc1bd2d$export$1ff3c3f08ae963c0.displayName;var il=React__namespace.forwardRef(({className:t,children:e,...r},a)=>React__namespace.createElement($322c88a641701f3b$export$be92b6f5f03c0fe9,{ref:a,className:o("relative z-10 flex max-w-max flex-1 items-center justify-center",t),...r},e,React__namespace.createElement(oi,null)));il.displayName=$322c88a641701f3b$export$be92b6f5f03c0fe9.displayName;var nl=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($322c88a641701f3b$export$54c2e3dc7acea9f5,{ref:r,className:o("group flex flex-1 list-none items-center justify-center space-x-1",t),...e}));nl.displayName=$322c88a641701f3b$export$54c2e3dc7acea9f5.displayName;var sl=cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),ll=React__namespace.forwardRef(({className:t,children:e,...r},a)=>React__namespace.createElement($322c88a641701f3b$export$41fb9f06171c75f4,{ref:a,className:o(sl(),"group",t),...r},e," ",React__namespace.createElement(ChevronDownIcon,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})));ll.displayName=$322c88a641701f3b$export$41fb9f06171c75f4.displayName;var ml=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($322c88a641701f3b$export$7c6e2c02157bb7d2,{ref:r,className:o("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",t),...e}));ml.displayName=$322c88a641701f3b$export$7c6e2c02157bb7d2.displayName;var oi=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("div",{className:o("absolute left-0 top-full flex justify-center")},React__namespace.createElement($322c88a641701f3b$export$d5c6c08dc2d3ca7,{className:o("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",t),ref:r,...e})));oi.displayName=$322c88a641701f3b$export$d5c6c08dc2d3ca7.displayName;var cl=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($322c88a641701f3b$export$adb584737d712b70,{ref:r,className:o("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",t),...e},React__namespace.createElement("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})));cl.displayName=$322c88a641701f3b$export$adb584737d712b70.displayName;var ya=React__namespace.forwardRef(({className:t,align:e="center",sideOffset:r=4,...a},n)=>React__namespace.createElement($cb5cc270b50c6fcd$export$602eac185826482c,null,React__namespace.createElement($cb5cc270b50c6fcd$export$7c6e2c02157bb7d2,{ref:n,align:e,sideOffset:r,className:o("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...a})));ya.displayName=$cb5cc270b50c6fcd$export$7c6e2c02157bb7d2.displayName;var pl=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($f99a8c78507165f7$export$be92b6f5f03c0fe9,{className:o("grid gap-2",t),...e,ref:r}));pl.displayName=$f99a8c78507165f7$export$be92b6f5f03c0fe9.displayName;var ul=React__namespace.forwardRef(({className:t,children:e,...r},a)=>React__namespace.createElement($f99a8c78507165f7$export$6d08773d2e66f8f2,{ref:a,className:o("aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),...r},React__namespace.createElement($f99a8c78507165f7$export$adb584737d712b70,{className:"flex items-center justify-center"},React__namespace.createElement(CheckIcon$1,{className:"h-3.5 w-3.5 fill-primary"}))));ul.displayName=$f99a8c78507165f7$export$6d08773d2e66f8f2.displayName;var fl=React__namespace.forwardRef(({className:t,children:e,...r},a)=>React__namespace.createElement($57acba87d6e25586$export$be92b6f5f03c0fe9,{ref:a,className:o("relative overflow-hidden",t),...r},React__namespace.createElement($57acba87d6e25586$export$d5c6c08dc2d3ca7,{className:"h-full w-full rounded-[inherit]"},e),React__namespace.createElement(ii,null),React__namespace.createElement($57acba87d6e25586$export$ac61190d9fc311a9,null)));fl.displayName=$57acba87d6e25586$export$be92b6f5f03c0fe9.displayName;var ii=React__namespace.forwardRef(({className:t,orientation:e="vertical",...r},a)=>React__namespace.createElement($57acba87d6e25586$export$2fabd85d0eba3c57,{ref:a,orientation:e,className:o("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...r},React__namespace.createElement($57acba87d6e25586$export$9fba1154677d7cd2,{className:"relative flex-1 rounded-full bg-border"})));ii.displayName=$57acba87d6e25586$export$2fabd85d0eba3c57.displayName;var Wo=React__namespace.forwardRef(({className:t,children:e,...r},a)=>React__namespace.createElement($cc7e05a45900e73f$export$41fb9f06171c75f4,{ref:a,className:o("flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),...r},e,React__namespace.createElement($cc7e05a45900e73f$export$f04a61298a47a40f,{asChild:!0},React__namespace.createElement(CaretSortIcon,{className:"h-4 w-4 opacity-50"}))));Wo.displayName=$cc7e05a45900e73f$export$41fb9f06171c75f4.displayName;var zo=React__namespace.forwardRef(({className:t,children:e,position:r="popper",...a},n)=>React__namespace.createElement($cc7e05a45900e73f$export$602eac185826482c,null,React__namespace.createElement($cc7e05a45900e73f$export$7c6e2c02157bb7d2,{ref:n,className:o("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...a},React__namespace.createElement($cc7e05a45900e73f$export$d5c6c08dc2d3ca7,{className:o("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]")},e))));zo.displayName=$cc7e05a45900e73f$export$7c6e2c02157bb7d2.displayName;var yl=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($cc7e05a45900e73f$export$b04be29aa201d4f5,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold",t),...e}));yl.displayName=$cc7e05a45900e73f$export$b04be29aa201d4f5.displayName;var at=React__namespace.forwardRef(({className:t,children:e,...r},a)=>React__namespace.createElement($cc7e05a45900e73f$export$6d08773d2e66f8f2,{ref:a,className:o("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r},React__namespace.createElement("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"},React__namespace.createElement($cc7e05a45900e73f$export$c3468e2714d175fa,null,React__namespace.createElement(CheckIcon$1,{className:"h-4 w-4"}))),React__namespace.createElement($cc7e05a45900e73f$export$d6e5bf9c43ea9319,null,e)));at.displayName=$cc7e05a45900e73f$export$6d08773d2e66f8f2.displayName;var hl=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($cc7e05a45900e73f$export$1ff3c3f08ae963c0,{ref:r,className:o("-mx-1 my-1 h-px bg-muted",t),...e}));hl.displayName=$cc7e05a45900e73f$export$1ff3c3f08ae963c0.displayName;var xl=React__namespace.forwardRef(({className:t,orientation:e="horizontal",decorative:r=!0,...a},n)=>React__namespace.createElement($89eedd556c436f6a$export$be92b6f5f03c0fe9,{ref:n,decorative:r,orientation:e,className:o("shrink-0 bg-border",e==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...a}));xl.displayName=$89eedd556c436f6a$export$be92b6f5f03c0fe9.displayName;var xa=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($faa2e61a3361514f$export$be92b6f5f03c0fe9,{ref:r,className:o("relative flex w-full touch-none select-none items-center",t),...e},React__namespace.createElement($faa2e61a3361514f$export$13921ac0cc260818,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20"},React__namespace.createElement($faa2e61a3361514f$export$9a58ef0d7ad3278c,{className:"absolute h-full bg-primary"})),React__namespace.createElement($faa2e61a3361514f$export$6521433ed15a34db,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})));xa.displayName=$faa2e61a3361514f$export$be92b6f5f03c0fe9.displayName;var Rl=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($6be4966fd9bbc698$export$be92b6f5f03c0fe9,{className:o("peer inline-flex h-[20px] w-[36px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",t),...e,ref:r},React__namespace.createElement($6be4966fd9bbc698$export$6521433ed15a34db,{className:o("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})));Rl.displayName=$6be4966fd9bbc698$export$be92b6f5f03c0fe9.displayName;var Tl=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($69cb30bb0017df05$export$54c2e3dc7acea9f5,{ref:r,className:o("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t),...e}));Tl.displayName=$69cb30bb0017df05$export$54c2e3dc7acea9f5.displayName;var bl=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($69cb30bb0017df05$export$41fb9f06171c75f4,{ref:r,className:o("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",t),...e}));bl.displayName=$69cb30bb0017df05$export$41fb9f06171c75f4.displayName;var vl=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($69cb30bb0017df05$export$7c6e2c02157bb7d2,{ref:r,className:o("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...e}));vl.displayName=$69cb30bb0017df05$export$7c6e2c02157bb7d2.displayName;var Ra=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement("textarea",{className:o("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...e}));Ra.displayName="Textarea";var Ta=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($054eb8030ebde76e$export$d5c6c08dc2d3ca7,{ref:r,className:o("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...e}));Ta.displayName=$054eb8030ebde76e$export$d5c6c08dc2d3ca7.displayName;var _l=cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),ba=React__namespace.forwardRef(({className:t,variant:e,...r},a)=>React__namespace.createElement($054eb8030ebde76e$export$be92b6f5f03c0fe9,{ref:a,className:o(_l({variant:e}),t),...r}));ba.displayName=$054eb8030ebde76e$export$be92b6f5f03c0fe9.displayName;var Pl=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($054eb8030ebde76e$export$e19cd5f9376f8cee,{ref:r,className:o("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...e}));Pl.displayName=$054eb8030ebde76e$export$e19cd5f9376f8cee.displayName;var va=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($054eb8030ebde76e$export$f39c2d165cd861fe,{ref:r,className:o("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e},React__namespace.createElement(Cross2Icon,{className:"h-4 w-4"})));va.displayName=$054eb8030ebde76e$export$f39c2d165cd861fe.displayName;var Na=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($054eb8030ebde76e$export$f99233281efd08a0,{ref:r,className:o("text-sm font-semibold [&+div]:text-xs",t),...e}));Na.displayName=$054eb8030ebde76e$export$f99233281efd08a0.displayName;var Aa=React__namespace.forwardRef(({className:t,...e},r)=>React__namespace.createElement($054eb8030ebde76e$export$393edc798c47379d,{ref:r,className:o("text-sm opacity-90",t),...e}));Aa.displayName=$054eb8030ebde76e$export$393edc798c47379d.displayName;var Ml=cva("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),Ol=React__namespace.forwardRef(({className:t,variant:e,size:r,...a},n)=>React__namespace.createElement($b3bbe2732c13b576$export$be92b6f5f03c0fe9,{ref:n,className:o(Ml({variant:e,size:r,className:t})),...a}));Ol.displayName=$b3bbe2732c13b576$export$be92b6f5f03c0fe9.displayName;var La=(n=>(n.buyer="buyer",n.seller="seller",n.buyerSeller="buyer-seller",n.broker="broker",n))(La||{});var x=class x{};x.ESTIMATES_ENDPOINT_URL="https://api.liberty.percyai.io/property/v1/estimates",x.ESTIMATED_VALUES_HEADER_TITLE="Estimated Values",x.ESTIMATED_VALUES_DIALOG_TITLE="How estimated values work",x.ESTIMATED_VALUES_DIALOG_DESCRIPTION="The values generated here are based on automated computer modeling from public records and may not represent the true value of the home.",x.ESTIMATED_VALUES_BUTTON_DESCRIPTION="Contact Mortgage Consultant",x.FORM_TITLE="Learn more about my options",x.FORM_DESCRIPTION="Get more insights on how your property valuation",x.FORM_FIRST_NAME_LABEL="First Name *",x.FORM_FIRST_NAME_PLACEHOLDER="Enter First Name",x.FORM_EMAIL_ADDRESS_LABEL="Email Address *",x.FORM_EMAIL_ADDRESS_PLACEHOLDER="Enter Email Adress",x.FORM_LAST_NAME_LABEL="Last Name *",x.FORM_LAST_NAME_PLACEHOLDER="Enter Last Name",x.FORM_PHONE_NUMBER_LABEL="Phone Number *",x.FORM_PHONE_NUMBER_PLACEHOLDER="Enter Phone Number",x.FORM_USER_TYPE_LABEL="I am: *",x.FORM_USER_TYPE_PLACEHOLDER="Please tell us who you are.",x.FORM_AGENT_CHECK_BOX_DESCRIPTION="Are you currently working with a",x.FORM_AGENT_CHECK_BOX_AGENT_TYPE="Agent",x.FORM_AGENT_CHECK_BOX_BROKERAGE_NAME="Percy Realty",x.FORM_AGENT_NAME_PLACEHOLDER="Enter Agent's Name",x.FORM_ACTION_BUTTOM="Submit",x.FIRST_NAME_REQUIRED_VALIDATION_MESSAGE="First Name is required.",x.EMAIL_ADDRESS_REQUIRED_VALIDATION_MESSAGE="Email address is required.",x.EMAIL_ADDRESS_FORMAT_VALIDATION_MESSAGE="Email address format is wrong.",x.LAST_NAME_REQUIRED_VALIDATION_MESSAGE="Last Name is required.",x.PHONE_NUMBER_REQUIRED_VALIDATION_MESSAGE="Phone Number is required.",x.PHONE_NUMBER_FORMAT_VALIDATION_MESSAGE="Phone Number format is wrong.",x.IAM_REQUIRED_VALIDATION_MESSAGE="Please select an option.",x.HOME_ADDRESS_REQUIRED_VALIDATION_MESSAGE="Home Address is required.",x.ON_ERROR_OCCURRED="An error occurred while submitting the form. Please try again.",x.BUYER="A Buyer",x.SELLER="A Seller",x.BUYER_SELLER="A Buyer and Seller",x.BROKER="A Broker/Agent",x.PERIOD_1="Immediately",x.PERIOD_2="1 to 3 Months",x.PERIOD_3="3 to 6 Months",x.PERIOD_4="6 to 12 Months",x.PERIOD_5="12+ Months",x.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL="Message",x.DYNAMIC_VALUES_BUYER_MESSAGE_PLACEHOLDER="Hello, I am interested in learning more about this property.",x.DYNAMIC_VALUES_BROKER_MESSAGE_PLACEHOLDER="Hello, I am interested in learning more about this buyer.",x.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_LABEL="Home Address *",x.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_PLACEHOLDER="Enter Home Address",x.DYNAMIC_VALUES_SELLER_APROXIMATE_VALUE_LABEL="Property's Approximate Value",x.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_LABEL="Time Frame for Selling",x.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_PLACEHOLDER="Please select a time frame",x.sellerBuyerSharedContent=[{label:x.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_LABEL,type:"text",placeholder:x.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_PLACEHOLDER},{label:x.DYNAMIC_VALUES_SELLER_APROXIMATE_VALUE_LABEL,type:"number",placeholder:""},{label:x.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_LABEL,type:"select",placeholder:x.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_PLACEHOLDER}],x.DYNAMIC_VALUES={buyer:[{label:x.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL,type:"textarea",placeholder:x.DYNAMIC_VALUES_BUYER_MESSAGE_PLACEHOLDER}],seller:x.sellerBuyerSharedContent,"buyer-seller":x.sellerBuyerSharedContent,broker:[{label:x.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL,type:"textarea",placeholder:x.DYNAMIC_VALUES_BROKER_MESSAGE_PLACEHOLDER}]};var _=x;var Jl=nativeEnumType(La,{required_error:_.IAM_REQUIRED_VALIDATION_MESSAGE});objectType({firstName:stringType().min(2,{message:_.FIRST_NAME_REQUIRED_VALIDATION_MESSAGE}),emailAdress:stringType({required_error:_.EMAIL_ADDRESS_REQUIRED_VALIDATION_MESSAGE}).email({message:_.EMAIL_ADDRESS_FORMAT_VALIDATION_MESSAGE}),lastName:stringType().min(2,{message:_.LAST_NAME_REQUIRED_VALIDATION_MESSAGE}),phoneNumber:stringType().min(2,{message:_.PHONE_NUMBER_REQUIRED_VALIDATION_MESSAGE}),iam:Jl,agent:booleanType().optional(),agentName:stringType().optional(),dynamicValues:arrayType(objectType({homeAddress:stringType().min(2,{message:_.HOME_ADDRESS_REQUIRED_VALIDATION_MESSAGE}).optional(),value:stringType().optional()})).optional()});var i=class{static EQUITY_MORTGAGE_DETAILS_BANNER_DESCRIPTION(e,r,a,n,s){return `Public records show a ${e} year loan at ${r} for ${a} from ${n}, giving you an estimated loan balance of ${s}. All calculations on this report are based on these numbers, so we want to make sure we get this right!`}static HOW_CALCULATE_INFORMATION_DESCRIPTION(e,r,a,n){return `These numbers are all based on your ${a} year loan at ${e} for ${r} from ${n}.`}static PAY_LITTLE_EXTRA_DESCRIPTION(e,r,a,n){return `Based on your ${e} year loan at ${r} for ${a} from ${n}`}static PAY_LITTLE_EXTRA_EARLIER_MESSAGE(e){return `You would also be done with the loan and no longer making payments ${e} earlier!`}static REFINANCE_OPTIONS_LONG_TERM_MESSAGE(e){return `Long term ${e}`}static REFINANCE_OPTIONS_PAYMENT_PER_MONTH_DESCRIPTION(e,r){return `Payment may go ${e} by ${r}/mo`}static USING_YOUR_EQUITY_SUBTITLE(e){return `With your ${e} in equity, you could afford to`}static USING_EQUITY_BUY_NEW_HOME_DIALOG_HEADLINE(e,r){return `Using ${e} of your estimated equity, you could make a 20% down payment on a new house worth around ${r}.`}static USING_EQUITY_MONTHLY_PRINCIPAL_INTEREST(e,r){return `Your new monthly principal and interest payment on a 30-year mortgage at ${e} APR is estimated at ${r}/mo`}static USING_EQUITY_REMINDER(e,r){return `Reminder: You'll pay ${e}-${r} in fees and commissions when you sell your current home. This cost varies by agent, location, and company.`}static USING_EQUITY_SELL_CASH_HEADLINE(e){return `Are you ready to cash in on your equity? You could sell your home and pocket around ${e}.`}static USING_EQUITY_INVESMENT_PROPERTY_HEADLINE(e,r){return `You could use around ${e} of your equity as a 30% down payment on an investment home worth ${r}.`}static USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_1(e,r){return `With your ${e} in equity, you could have about ${r} to work with depending on market rates, your current financial situation, home occupancy status, and refi goals. (And, it is smart to leave at least 25% of your equity in your home.)`}};i.ACTION_OK_BUTTON_LABEL="OK",i.DESCRIPTION_YEARS_LABEL="Years",i.YEAR=" year",i.PLURAL="s ",i.AND=" and ",i.MONTH=" month",i.RATE=" rate",i.HOME_GUIDE_URL="https://homeguide.com/costs/home-addition-cost",i.HOME_GUIDE="homeguide.com 2020",i.EL_ISSA="El Issa, 2019",i.EL_ISSA_URL="https://www.nerdwallet.com/blog/average-credit-card-debt-household/",i.TICAS="TICAS, Student Debt and the Class of 2018",i.TICAS_URL="https://ticas.org/wp-content/uploads/2019/09/classof2018.pdf",i.NO_DATA_AVAILABLE_LABEL="No Data Available",i.ACTION_BUTTON_BEST_OPTION_LABEL="Which option is best for me?",i.LEARN_MORE_LABEL="Learn more about this",i.EDIT_DETAILS_LABEL="Edit Details",i.WHY_PAY_MORE_LABEL="Why Pay More?",i.EARLY_LOAN_LABEL="Early Loan Payoff Information",i.ASK_AGENT_LABEL="Ask an Agent",i.CONFIGURATION_ERROR_LABEL="Configuration Error",i.CONFIGURATION_ERROR_KEY_EXPIRED_LABEL="Key is expired",i.EQUITY_MORTGAGE_DETAILS_HEADER_TITLE="Equity In Your Home",i.EQUITY_MORTGAGE_DETAILS_DESCRIPTION="Equity is your home's worth to you!",i.EQUITY_MORTGAGE_DETAILS_ALL_GOOD_BUTTON="All Good",i.EQUITY_MORTGAGE_DETAILS_BANNER_TITLE="Verify Your Mortgage Details",i.EQUITY_MORTGAGE_DETAILS_TITLE="Estimated Equity Today",i.EQUITY_MORTGAGE_DETAILS_HOW_CALCULATED="How is this calculated?",i.EQUITY_MORTGAGE_DETAILS_DISCLAIMER="Disclaimer",i.EDIT_MORTGAGE_DETAILS_FORM_TITLE="Edit Mortgage Info",i.EDIT_MORTGAGE_DETAILS_LOAN_START_DATE_LABEL="Loan Start Date",i.EDIT_MORTGAGE_DETAILS_LOAN_TERM_LABEL="Loan Term",i.EDIT_MORTGAGE_DETAILS_INTEREST_RATE_LABEL="Interest Rate",i.EDIT_MORTGAGE_DETAILS_ORIGINAL_LOAN_AMOUNT_LABEL="Original Loan Amount",i.EDIT_MORTGAGE_DETAILS_BALANCE_LABEL="Estimated Mortgage Balance",i.EDIT_MORTGAGE_DETAILS_DISCLAIMER_TEXT="This message is for information purposes only and is not an advertisement to extend customer credit as defined by Section 12 CFR 1026.2 Regulation Z. Program rates, terms, and conditions are subject to change at any time. All examples of potential mortgage products above are estimates for illustration purposes only. All programs and mortgage products are subject to borrower income, credit, and property approval. Not all borrowers will qualify. This is not an offer for extension of credit or a commitment to lend. Home valuations are estimates purchased from a third-party data provider. Actual appraised value at the time of a transaction may vary. Equal Housing Lender. Interest rates used are based on a reasonably current index and margin from the Freddie Mac Primary Mortgage Market Survey.",i.HOW_CALCULATE_TITLE="How Is My Net Worth Calculated?",i.HOW_CALCULATE_DESCRIPTION='Your net worth ("equity") is made up of two things.',i.HOW_CALCULATE_HOME_VALUE_LABEL="Home Value",i.HOW_CALCULATE_LOAN_BALANCE_LABEL="Loan Balance",i.HOW_CALCULATE_YOUR_NET_WORTH_LABEL="Your Net Worth",i.HOW_CALCULATE_INFORMATION_SUBTITLE="Where does this information come from?",i.HOW_CALCULATE_NOTE_DESCRIPTION="Note: Only the first lien mortgage and resale are used to calculate the balance of your loan.",i.PAY_LITTLE_EXTRA_HEADER_TITLE="Pay A Little Extra",i.PAY_LITTLE_EXTRA_SUBTITLE="How much more can you pay per month?",i.PAY_LITTLE_EXTRA_CALCULATION_IF_YOU_PAY="If you pay just ",i.PAY_LITTLE_EXTRA_CALCULATION_MORE=" more each month, you could save",i.PAY_LITTLE_EXTRA_CALCULATION_DESCRIPTION="in interest over the rest of your loan",i.PAY_LITTLE_EXTRA_INFO_DESCRIPTION="You would also be done with the loan and no longer making payments 10 years and 2 months earlier!",i.PAY_LITTLE_EXTRA_PAYING_EXTRA="Paying extra can be an easy way to save.",i.PAY_LITTLE_EXTRA_PAYING_EXTRA_DESCRIPTION="Your mortgage payment is typically defined as your principal and interest payment. When you pay extra on your principal balance, you can reduce the amount of your loan and save money on interest.",i.PAY_LITTLE_EXTRA_PAYING_EXTRA_BEST_PART="The best part is that there's no paperwork, fees or headaches.",i.PAY_LITTLE_EXTRA_PAYING_EXTRA_IMPORTANT_TIP="*Important Tip* ",i.PAY_LITTLE_EXTRA_PAYING_EXTRA_IMPORTANT_TIP_DESCRIPTION="contact your mortgage servicer to indicate your extra payment is for principal reduction (to ensure it is not accidentally applied to an extra payment, extra interest, or towards escrow).",i.PAY_LITTLE_EXTRA_LENGTH_LOAN_REMAIN_MESSAGE="The length of your loan would remain unchanged with this extra payment.",i.CONTACT_AGENT_TITLE="We Might Have The Perferct Buyer For Your Home",i.CONTACT_AGENT_DESCRIPTION="Click the button and we'll look though our buyer database for you.",i.REFINANCE_OPTIONS_HEADER_TITLE="Refinance Options",i.REFINANCE_OPTIONS_HEADER_SUBTITLE="With a refinance of your loan, you could save",i.REFINANCE_OPTIONS_LEARN_MORE_DESCRIPTION=`
|
|
67295
67295
|
All loans are subject to credit approval. Interest rates are subject to
|
|
67296
67296
|
change daily and without notice. Current interest rates shown are
|
|
67297
67297
|
indicative of market conditions and individual qualifications and will
|
|
@@ -67303,9 +67303,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
67303
67303
|
nightly with the previous day's locks. Contact a loan officer for the
|
|
67304
67304
|
most up-to-date rates with specific loan quote details, and check
|
|
67305
67305
|
current market.
|
|
67306
|
-
`,i.REFINANCE_OPTIONS_FIFTEEN_YEAR_FIXED_LABEL="15 Year Fixed",i.REFINANCE_OPTIONS_THIRTY_YEAR_FIXED_LABEL="30 Year Fixed",i.REFINANCE_OPTIONS_NO_SAVINGS_MESSAGE="No net loss or savings",i.REFINANCE_OPTIONS_LOSS_LABEL="loss",i.REFINANCE_OPTIONS_SAVINGS_LABEL="savings",i.REFINANCE_OPTIONS_PAYMENTS_NOCHANGE_MESSAGE="Payment will not change",i.REFINANCE_OPTIONS_NO_CHANGE_LABEL="No Change",i.REFINANCE_OPTIONS_GO_UP_LABEL="Go Up",i.REFINANCE_OPTIONS_GO_DOWN_LABEL="Go Down",i.REFINANCE_OPTIONS_UP_LABEL="up",i.REFINANCE_OPTIONS_DOWN_LABEL="down",i.USING_YOUR_EQUITY_HEADER_TITLE="Using Your Equity",i.USING_EQUITY_BUY_NEW_HOME="Buy a new home",i.USING_EQUITY_GET_MORE_SQUARE_FOOTAGE="Get more square footage, a larger yard, or switch neighborhoods - you have options!",i.USING_EQUITY_SELL_CASH_DESCRIPTION_1="You may be exempt from capital gains taxes if you've owned and lived in the home for at least two out of the last five years.",i.USING_EQUITY_SELL_CASH_DESCRIPTION_2="Up to $250,000 in profit may be tax-free for unmarried individuals and up to $500,000 for married couples.",i.USING_EQUITY_SELL_CASH_DESCRIPTION_3="You could also downsize into a cheaper home using a portion of your equity and save the rest.",i.USING_EQUITY_CONSULT_TAX_ADVISOR="Always consult a professional tax advisor to understand implications for your specific situation.",i.USING_EQUITY_RENTAL_INCOME="Possibly use rental income to cover some or all of your new mortgage payment.",i.USING_EQUITY_EXPENSES_DEDUCTED="Consult your professional tax advisor to see if expenses related to this property can be deducted.",i.USING_EQUITY_LANDLORD="Consider if you have time to be a landlord (or if you should hire a property manager).",i.USING_EQUITY_CONSULT_A_LOAN_OFFICER="Consult a loan officer",i.USING_EQUITY_BUY_INVESMENT_PROPERTY="Buy an investment property",i.USING_EQUITY_INVESMENT_PROPERTY="Investment Property",i.USING_EQUITY_SELL_CASH="Sell & pocket cash",i.USING_EQUITY_HOME_IMPROVEMENTS="Make home improvements",i.USING_EQUITY_LIVABLE_SPACE="Add more livable space",i.USING_EQUITY_EMERGENCY_FUND="Create emergency fund",i.USING_EQUITY_CREDIT_CARD_DEBT="Eliminate credit card debt",i.USING_EQUITY_VACATION="Splurge on a dream vacation",i.USING_EQUITY_STUDENT_LOANS="Pay down student loans",i.USING_EQUITY_HOME_INPROVEMENTS_HEADLINE="Renovations can make us happier in the place we call home and using equity is a great way to let your home pay for its own improvements. To ensure you're choosing a project that will yield a return on investment, consult a loan officer or real estate expert.",i.USING_EQUITY_HOME_INPROVEMENTS_TAX_DEDUCTIBLE="Equity used for home improvements is still tax-deductible in many cases. (Always consult a professional tax advisor)",i.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_DOOR="The highest value improvements are garage door replacement (and other curb appeal projects), minor kitchen remodels, and universal bathroom remodels.",i.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_SUNROOM="The lowest value improvements are sunroom, swimming pools, and bathroom additions.",i.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_SOURCE="Source: HGTV.",i.USING_EQUITY_EMERGENCY_FUND_HEADLINE="During uncertain times, you still have some things within your control. Having access to 6-12 months of living expenses can prepare you for whatever happens next. ",i.USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_2="A cash-out refi or second loan can give you easy access to cash for when you need it most.",i.USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_3="Make sure to stay disciplined and only use the money for true emergencies.",i.USING_EQUITY_LIVABLE_SPACE_HEADLINE="The average cost to build a home addition or add a room is $48,000, with most homeowners spending between $22,500 and $74,000.",i.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_1='"The majority of additions add value and offer a 50% return on investment." ',i.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_2="If local ordinances allow it could be used as a rental.",i.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_3="Qualifies as a home improvement so equity interest is tax-deductible.",i.USING_EQUITY_STUDENT_LOANS_HEADLINE="Borrowers from the Class of 2018 owed an average of $29,200, a 2 percent increase from the average of $28,650 in 2017. Using equity to pay off your loans could be an option as long as you understand the associated risks. ",i.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_1="Home equity rates are often (but not always) less than student loans.",i.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_2="Paying off student loans is a great way to establish credit history.",i.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_3="Equity lines and loans use your house as collateral and may disqualify you from many student debt forgiveness or cancellation programs.",i.USING_EQUITY_CREDIT_DEBT_HEADLINE="The average U.S. household with revolving credit card debt has an estimated balance of $6,849 as of September 2019 [2], costing an average of $1,162 in annual interest [3]. ",i.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_1="Home equity rates are often substantially lower than those on credit cards",i.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_2="You can consolidate multiple high-interest balances into a single monthly payment and potentially improve your monthly cash flow.",i.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_3="Be disciplined and create a short-term plan to pay off this debt because your house is used as collateral.",i.USING_EQUITY_VACATION_HEADLINE="Using home equity on your dream vacation is not a wise financial decision. Focus your home equity on wealth building activities or paying down debt. If you really want that dream vacation to the Maldives, plan ahead and put some savings aside each month. Try these options instead:",i.LOAN_AMOUNT_CANNOT_EXCEED="The remaining loan amount cannot exceed the initial loan principal.",i.VALUE_GREATER_THAN_ZERO="The value must be greater than 0.",i.EXCELENT_INVESTMENT="Excellent Investment",i.MODERATE_INVESTMENT="Moderate Investment",i.POOR_INVESTMENT="Poor Investment",i.EXCELENT_INVESTMENT_DESCRIPTION="High potential, recommended for consideration.",i.MODERATE_INVESTMENT_DESCRIPTION="Average potential, consider with caution.",i.POOR_INVESTMENT_DESCRIPTION="Low potential, strongly advised to avoid.";function _e({children:t}){return React__namespace.createElement("div",{className:r("flex justify-center w-full")},t)}function yt({trigger:t,content:e,title:o,asChild:a=!1,actionButtomLabel:n=i.ACTION_OK_BUTTON_LABEL}){return React__namespace.createElement(Ga,null,React__namespace.createElement(qa,{asChild:a},t),React__namespace.createElement(Kr,{className:r("flex flex-col gap-2 p-6","h-screen lg:h-auto md:h-auto overflow-y-auto")},o&&React__namespace.createElement(Zr,null,o),e,React__namespace.createElement(Jr,null,React__namespace.createElement(ea,null,n))))}function Ti({title:t,infoTitle:e,icon:o,infoDescription:a,titleDescription:n,showInfo:s=!0}){let c=React__namespace.cloneElement(o,{className:"w-6 h-6"});return React__namespace.createElement("div",{className:r("flex flex-col items-start")},React__namespace.createElement("div",{className:r("flex flex-row items-center gap-1")},React__namespace.createElement("div",{className:r("flex flex-col items-center bg-slate-50 rounded-[100px] p-2")},c),React__namespace.createElement("h3",{className:r("font-semibold leading-8 text-xl md:text-2xl lg:text-2xl text-gray-700")},t),s&&React__namespace.createElement(yt,{asChild:!0,title:e,trigger:React__namespace.createElement(Info,{className:r("w-5 h-5 text-gray-400")}),content:a})),n&&React__namespace.createElement("p",{className:r("text-gray-400 ml-[50px] text-xs md:text-sm lg:text-sm")},n))}function Pe({icon:t,infoDescription:e,title:o,titleDescription:a,infoTitle:n,actions:s,showInfo:c=!0,showActions:m=!1}){return React__namespace.createElement("div",{className:r("flex flex-col md:flex-row lg:flex-row justify-between items-stretch py-3 shadow-sm pr-1 ")},React__namespace.createElement(Ti,{title:o,titleDescription:a,infoTitle:n,icon:t,infoDescription:e,showInfo:c}),m&&s&&s)}function ut(){return {address:useReadLocalStorage("selectedAddress")}}var de=({clientKey:t,apiKey:e,loadingInitialState:o="loading"})=>{let[a,n]=useLocalStorage("percy-tokens",void 0),[s,c]=React__namespace.useState(()=>o==="loading"),m=!!t;React__namespace.useEffect(()=>{async function d(){let p=await Vr({clientKey:t});n(p);}!a?.token&&t&&d();},[a]);let l=React__namespace.useCallback(async d=>{let{url:p,requestInit:u}=d,{headers:f,...b}=u??{},v=a,y={"Content-Type":"application/json",...v?.token&&{Authorization:`Bearer ${v?.token}`},...e&&{"x-api-key":e},...f};try{if(m&&!a?.token||!m&&!e)return;c(!0),!a?.token&&t&&(v=await Vr({clientKey:t}),n(v));let h=await(await fetch(p,{headers:y,...b})).json();return c(!1),h}catch(T){console.error(`Error requesting ${p}`,T);return}finally{c(!1);}},[a,t,e]);return {isLoading:s,tokens:a,request:l,isExternal:m}};var Li="AIzaSyASLd0x2iEVZpo9r0NBC8beqN_YRFRm_dM";function mm({apiKey:t,mapOptions:e,geoJsonLayerInput:o,markers:a,markersIcon:n,markerEvents:s}){let c=React__namespace.useRef(null),[m,l]=React__namespace.useState(null),[d,p]=React__namespace.useState(!1);React__namespace.useEffect(()=>{c.current&&new Loader({apiKey:t??Li}).importLibrary("maps").then(()=>{e.center||(e.center={lat:39.8283,lng:-98.5795}),c.current&&u(c.current,e);});},[]);let u=(y,T)=>{l(new window.google.maps.Map(y,{...T,zoomControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT}})),o&&v(o),b(a),p(!0);},f=(y,T)=>{m&&(m.setCenter(y),m.setZoom(T));},b=(y,T,h)=>{if(!m||!y)return;let g=new google.maps.LatLngBounds;y.forEach((x,M)=>{g.extend(new google.maps.LatLng(x.lat,x.lng));let A=new google.maps.Marker({position:{lat:x.lat,lng:x.lng},map:m,icon:x.icon??n,label:x.label});s&&s(M,A);}),m.setCenter(g.getCenter()),m.setZoom(T??3),h&&new window.google.maps.Marker({position:g.getCenter(),map:m,icon:h});},v=({center:y,geoJson:T})=>{if(!m||!T)return;y&&(m.setCenter(y),new window.google.maps.Marker({position:y,map:m}));let h=new window.google.maps.Data;h.addGeoJson(T),h.setStyle(g=>({fillColor:g.getProperty("color")??"#FFFFCC",strokeWeight:1,fillOpacity:.5,strokeColor:"white"})),h.setMap(m);};return {mapRef:c,setGeojson:v,setMarkers:b,zoomHandler:f,isMapReady:d}}var Co=mm;function So({message:t=i.NO_DATA_AVAILABLE_LABEL,mapHeight:e="420px"}){let o="text-gray-500";return React__namespace.createElement("div",{className:"absolute top-0 left-0 w-full h-full rounded-lg flex flex-col justify-center items-center",style:{maxHeight:e,height:e,backgroundColor:"rgb(255 255 255 / 0.6)"}},React__namespace.createElement(XOctagon,{strokeWidth:.4,size:96,className:r(o)}),React__namespace.createElement("p",{className:r(o)},t))}var Ci=["#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],Si="https://api.liberty.percyai.io/location/v1/heatmap";function wi(){return React__namespace.createElement("div",{className:r("absolute top-4 left-4 bg-white bg-opacity-70 p-2 shadow-lg flex flex-col")},React__namespace.createElement("div",{className:r("flex justify-between")},React__namespace.createElement("div",{className:r("text-left text-xs")},"Active"),React__namespace.createElement("div",{className:r("text-right text-xs")},"Very Active")),React__namespace.createElement("div",{className:r("flex flex-col items-center space-y-2")},React__namespace.createElement("div",{className:r("flex")},Ci.map((t,e)=>React__namespace.createElement("div",{key:e,className:r("w-4 h-4"),style:{backgroundColor:t}})))))}function Kg({zipcode:t,url:e=Si,zoomLevel:o=10,zoomControl:a=!0,googleApiKey:n,clientKey:s,apiKey:c,height:m="420px"}){let[l,d]=React__namespace.useState(!1),{request:p,isLoading:u,tokens:f,isExternal:b}=de({clientKey:s,apiKey:c}),{address:v}=ut(),y=t||v?.zipcode,T=N(f?.meta,"color"),h=React__namespace.useMemo(()=>({zoom:o,draggable:!1,scrollwheel:!1,fullscreenControl:!1,gestureHandling:"none",zoomControl:a,mapId:""}),[o,a]),{mapRef:g,setGeojson:x,isMapReady:M}=Co({mapOptions:h,apiKey:n});return React__namespace.useEffect(()=>{async function A(){if(y?.length&&e.length&&M){let _=new URL(e);_.searchParams.set("zipcode",y),T?.value&&_.searchParams.set("colors",T?.value);try{let w=await p({url:_.toString()});(!b&&!w?.data||f&&b&&!w?.data)&&d(!0),w?.data&&x(w.data);}catch(w){console.error("Error fetching heatmap data:",w);}}}A();},[s,c,f,M]),React__namespace.createElement("div",{className:r("flex flex-col bg-white w-full")},React__namespace.createElement(Pe,{title:"Heat Map",infoDescription:"The best way to visualize the distribution of data in a geographical area.",infoTitle:"Heat Map",icon:React__namespace.createElement(MapPin,null)}),React__namespace.createElement(_e,null,React__namespace.createElement("div",{className:r("w-full justify-center m-3 lg:m-8 md:m-8")},React__namespace.createElement("div",{className:r("relative rounded-lg overflow-hidden w-full",{"animate-pulse rounded-lg bg-primary/10":u}),style:{maxHeight:m,height:m}},React__namespace.createElement("div",{ref:g,className:r("w-full h-full")}),React__namespace.createElement(wi,null),l&&React__namespace.createElement(So,null)))))}format$1(subYears(new Date,1),"yyyy-MM-dd");format$1(subYears(new Date,1),"yyyy-MM-dd");React__namespace.forwardRef(({linkTextColor:t="text-gray-500",icon:e,text:o},a)=>React__namespace.createElement("div",{ref:a,className:r("flex flex-row items-center gap-2")},e&&React__namespace.cloneElement(e,{className:r("h-4 w-4",t,e.props.className)}),React__namespace.createElement("p",{className:r("text-sm hover:cursor-pointer",t)},o)));
|
|
67306
|
+
`,i.REFINANCE_OPTIONS_FIFTEEN_YEAR_FIXED_LABEL="15 Year Fixed",i.REFINANCE_OPTIONS_THIRTY_YEAR_FIXED_LABEL="30 Year Fixed",i.REFINANCE_OPTIONS_NO_SAVINGS_MESSAGE="No net loss or savings",i.REFINANCE_OPTIONS_LOSS_LABEL="loss",i.REFINANCE_OPTIONS_SAVINGS_LABEL="savings",i.REFINANCE_OPTIONS_PAYMENTS_NOCHANGE_MESSAGE="Payment will not change",i.REFINANCE_OPTIONS_NO_CHANGE_LABEL="No Change",i.REFINANCE_OPTIONS_GO_UP_LABEL="Go Up",i.REFINANCE_OPTIONS_GO_DOWN_LABEL="Go Down",i.REFINANCE_OPTIONS_UP_LABEL="up",i.REFINANCE_OPTIONS_DOWN_LABEL="down",i.USING_YOUR_EQUITY_HEADER_TITLE="Using Your Equity",i.USING_EQUITY_BUY_NEW_HOME="Buy a new home",i.USING_EQUITY_GET_MORE_SQUARE_FOOTAGE="Get more square footage, a larger yard, or switch neighborhoods - you have options!",i.USING_EQUITY_SELL_CASH_DESCRIPTION_1="You may be exempt from capital gains taxes if you've owned and lived in the home for at least two out of the last five years.",i.USING_EQUITY_SELL_CASH_DESCRIPTION_2="Up to $250,000 in profit may be tax-free for unmarried individuals and up to $500,000 for married couples.",i.USING_EQUITY_SELL_CASH_DESCRIPTION_3="You could also downsize into a cheaper home using a portion of your equity and save the rest.",i.USING_EQUITY_CONSULT_TAX_ADVISOR="Always consult a professional tax advisor to understand implications for your specific situation.",i.USING_EQUITY_RENTAL_INCOME="Possibly use rental income to cover some or all of your new mortgage payment.",i.USING_EQUITY_EXPENSES_DEDUCTED="Consult your professional tax advisor to see if expenses related to this property can be deducted.",i.USING_EQUITY_LANDLORD="Consider if you have time to be a landlord (or if you should hire a property manager).",i.USING_EQUITY_CONSULT_A_LOAN_OFFICER="Consult a loan officer",i.USING_EQUITY_BUY_INVESMENT_PROPERTY="Buy an investment property",i.USING_EQUITY_INVESMENT_PROPERTY="Investment Property",i.USING_EQUITY_SELL_CASH="Sell & pocket cash",i.USING_EQUITY_HOME_IMPROVEMENTS="Make home improvements",i.USING_EQUITY_LIVABLE_SPACE="Add more livable space",i.USING_EQUITY_EMERGENCY_FUND="Create emergency fund",i.USING_EQUITY_CREDIT_CARD_DEBT="Eliminate credit card debt",i.USING_EQUITY_VACATION="Splurge on a dream vacation",i.USING_EQUITY_STUDENT_LOANS="Pay down student loans",i.USING_EQUITY_HOME_INPROVEMENTS_HEADLINE="Renovations can make us happier in the place we call home and using equity is a great way to let your home pay for its own improvements. To ensure you're choosing a project that will yield a return on investment, consult a loan officer or real estate expert.",i.USING_EQUITY_HOME_INPROVEMENTS_TAX_DEDUCTIBLE="Equity used for home improvements is still tax-deductible in many cases. (Always consult a professional tax advisor)",i.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_DOOR="The highest value improvements are garage door replacement (and other curb appeal projects), minor kitchen remodels, and universal bathroom remodels.",i.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_SUNROOM="The lowest value improvements are sunroom, swimming pools, and bathroom additions.",i.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_SOURCE="Source: HGTV.",i.USING_EQUITY_EMERGENCY_FUND_HEADLINE="During uncertain times, you still have some things within your control. Having access to 6-12 months of living expenses can prepare you for whatever happens next. ",i.USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_2="A cash-out refi or second loan can give you easy access to cash for when you need it most.",i.USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_3="Make sure to stay disciplined and only use the money for true emergencies.",i.USING_EQUITY_LIVABLE_SPACE_HEADLINE="The average cost to build a home addition or add a room is $48,000, with most homeowners spending between $22,500 and $74,000.",i.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_1='"The majority of additions add value and offer a 50% return on investment." ',i.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_2="If local ordinances allow it could be used as a rental.",i.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_3="Qualifies as a home improvement so equity interest is tax-deductible.",i.USING_EQUITY_STUDENT_LOANS_HEADLINE="Borrowers from the Class of 2018 owed an average of $29,200, a 2 percent increase from the average of $28,650 in 2017. Using equity to pay off your loans could be an option as long as you understand the associated risks. ",i.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_1="Home equity rates are often (but not always) less than student loans.",i.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_2="Paying off student loans is a great way to establish credit history.",i.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_3="Equity lines and loans use your house as collateral and may disqualify you from many student debt forgiveness or cancellation programs.",i.USING_EQUITY_CREDIT_DEBT_HEADLINE="The average U.S. household with revolving credit card debt has an estimated balance of $6,849 as of September 2019 [2], costing an average of $1,162 in annual interest [3]. ",i.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_1="Home equity rates are often substantially lower than those on credit cards",i.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_2="You can consolidate multiple high-interest balances into a single monthly payment and potentially improve your monthly cash flow.",i.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_3="Be disciplined and create a short-term plan to pay off this debt because your house is used as collateral.",i.USING_EQUITY_VACATION_HEADLINE="Using home equity on your dream vacation is not a wise financial decision. Focus your home equity on wealth building activities or paying down debt. If you really want that dream vacation to the Maldives, plan ahead and put some savings aside each month. Try these options instead:",i.LOAN_AMOUNT_CANNOT_EXCEED="The remaining loan amount cannot exceed the initial loan principal.",i.VALUE_GREATER_THAN_ZERO="The value must be greater than 0.",i.EXCELENT_INVESTMENT="Excellent Investment",i.MODERATE_INVESTMENT="Moderate Investment",i.POOR_INVESTMENT="Poor Investment",i.EXCELENT_INVESTMENT_DESCRIPTION="High potential, recommended for consideration.",i.MODERATE_INVESTMENT_DESCRIPTION="Average potential, consider with caution.",i.POOR_INVESTMENT_DESCRIPTION="Low potential, strongly advised to avoid.";function Pe({children:t}){return React__namespace.createElement("div",{className:o("flex justify-center w-full")},t)}function Tt({trigger:t,content:e,title:r,asChild:a=!1,actionButtomLabel:n=i.ACTION_OK_BUTTON_LABEL}){return React__namespace.createElement(za,null,React__namespace.createElement(Qa,{asChild:a},t),React__namespace.createElement(ea,{className:o("flex flex-col gap-2 p-6","h-screen lg:h-auto md:h-auto overflow-y-auto")},r&&React__namespace.createElement(oa,null,r),e,React__namespace.createElement(ta,null,React__namespace.createElement(ra,null,n))))}function Ni({title:t,infoTitle:e,icon:r,infoDescription:a,titleDescription:n,showInfo:s=!0}){let c=React__namespace.cloneElement(r,{className:"w-6 h-6"});return React__namespace.createElement("div",{className:o("flex flex-col items-start")},React__namespace.createElement("div",{className:o("flex flex-row items-center gap-1")},React__namespace.createElement("div",{className:o("flex flex-col items-center bg-slate-50 rounded-[100px] p-2")},c),React__namespace.createElement("h3",{className:o("font-semibold leading-8 text-xl md:text-2xl lg:text-2xl text-gray-700")},t),s&&React__namespace.createElement(Tt,{asChild:!0,title:e,trigger:React__namespace.createElement(Info,{className:o("w-5 h-5 text-gray-400")}),content:a})),n&&React__namespace.createElement("p",{className:o("text-gray-400 ml-[50px] text-xs md:text-sm lg:text-sm")},n))}function Ie({icon:t,infoDescription:e,title:r,titleDescription:a,infoTitle:n,actions:s,showInfo:c=!0,showActions:l=!1}){return React__namespace.createElement("div",{className:o("flex flex-col md:flex-row lg:flex-row justify-between items-stretch py-3 shadow-sm pr-1 ")},React__namespace.createElement(Ni,{title:r,titleDescription:a,infoTitle:n,icon:t,infoDescription:e,showInfo:c}),l&&s&&s)}function je(){return {address:useReadLocalStorage("selectedAddress")}}var pe=({clientKey:t,apiKey:e,loadingInitialState:r="loading"})=>{let[a,n]=useLocalStorage("percy-tokens",void 0),[s,c]=React__namespace.useState(()=>r==="loading"),l=!!t;React__namespace.useEffect(()=>{async function d(){let p=await qr({clientKey:t});n(p);}!a?.token&&t&&d();},[a]);let m=React__namespace.useCallback(async d=>{let{url:p,requestInit:u}=d,{headers:f,...T}=u??{},P=a,I={"Content-Type":"application/json",...P?.token&&{Authorization:`Bearer ${P?.token}`},...e&&{"x-api-key":e},...f};try{if(l&&!a?.token||!l&&!e)return;c(!0),!a?.token&&t&&(P=await qr({clientKey:t}),n(P));let E=await(await fetch(p,{headers:I,...T})).json();return c(!1),E}catch(h){console.error(`Error requesting ${p}`,h);return}finally{c(!1);}},[a,t,e]);return {isLoading:s,tokens:a,request:m,isExternal:l}};var wi="AIzaSyASLd0x2iEVZpo9r0NBC8beqN_YRFRm_dM";function pm({apiKey:t,mapOptions:e,geoJsonLayerInput:r,markers:a,markersIcon:n,markerEvents:s}){let c=React__namespace.useRef(null),[l,m]=React__namespace.useState(null),[d,p]=React__namespace.useState(!1);React__namespace.useEffect(()=>{c.current&&new Loader({apiKey:t??wi}).importLibrary("maps").then(()=>{e.center||(e.center={lat:39.8283,lng:-98.5795}),c.current&&u(c.current,e);});},[]),React__namespace.useEffect(()=>{let h=.7,E=70,g=l?.getStreetView();if(!g)return;let R=setInterval(()=>{let N=g.getPov();g.setPov({heading:N.heading+h,pitch:N.pitch});},E);return ()=>clearInterval(R)},[l]);let u=(h,E)=>{m(new window.google.maps.Map(h,{zoomControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT},...E})),r&&I(r),T(a),p(!0);},f=(h,E)=>{l&&(l.setCenter(h),l.setZoom(E));},T=(h,E,g)=>{if(!l||!h)return;let R=new google.maps.LatLngBounds;h.forEach((N,A)=>{R.extend(new google.maps.LatLng(N.lat,N.lng));let v=new google.maps.Marker({position:{lat:N.lat,lng:N.lng},map:l,icon:N.icon??n,label:N.label});s&&s(A,v);}),l.setCenter(R.getCenter()),l.setZoom(E??3),g&&new window.google.maps.Marker({position:R.getCenter(),map:l,icon:g});},P=(h,E)=>{if(!l)return;let g=new google.maps.StreetViewPanorama(c.current,{position:h,disableDefaultUI:!0,pov:{heading:E?.heading??34,pitch:E?.pitch??10}});l.setStreetView(g);},I=({center:h,geoJson:E})=>{if(!l||!E)return;h&&(l.setCenter(h),new window.google.maps.Marker({position:h,map:l}));let g=new window.google.maps.Data;g.addGeoJson(E),g.setStyle(R=>({fillColor:R.getProperty("color")??"#FFFFCC",strokeWeight:1,fillOpacity:.5,strokeColor:"white"})),g.setMap(l);};return {mapRef:c,setGeojson:I,setMarkers:T,setPanorama:P,zoomHandler:f,isMapReady:d}}var Dt=pm;var Mt=[{featureType:"administrative",elementType:"labels.text.fill",stylers:[{color:"#686868"}]},{featureType:"landscape",elementType:"all",stylers:[{color:"#f2f2f2"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"all",stylers:[{saturation:-100},{lightness:45}]},{featureType:"road.highway",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{lightness:"-22"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{saturation:"11"},{lightness:"-51"}]},{featureType:"road.highway",elementType:"labels.text",stylers:[{saturation:"3"},{lightness:"-56"},{weight:"2.20"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{lightness:"-52"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{weight:"6.13"}]},{featureType:"road.highway",elementType:"labels.icon",stylers:[{lightness:"-10"},{gamma:"0.94"},{weight:"1.24"},{saturation:"-100"},{visibility:"off"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{lightness:"-16"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{saturation:"-41"},{lightness:"-41"}]},{featureType:"road.arterial",elementType:"labels.text.stroke",stylers:[{weight:"5.46"}]},{featureType:"road.arterial",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.local",elementType:"geometry.fill",stylers:[{weight:"0.72"},{lightness:"-16"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{lightness:"-37"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{color:"#b7e4f4"},{visibility:"on"}]}];function Do({message:t=i.NO_DATA_AVAILABLE_LABEL,mapHeight:e="420px"}){let r="text-gray-500";return React__namespace.createElement("div",{className:"absolute top-0 left-0 w-full h-full rounded-lg flex flex-col justify-center items-center",style:{maxHeight:e,height:e,backgroundColor:"rgb(255 255 255 / 0.6)"}},React__namespace.createElement(XOctagon,{strokeWidth:.4,size:96,className:o(r)}),React__namespace.createElement("p",{className:o(r)},t))}var Di=["#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],Mi="https://api.liberty.percyai.io/location/v1/heatmap";function Oi(){return React__namespace.createElement("div",{className:o("absolute top-4 left-4 bg-white bg-opacity-70 p-2 shadow-lg flex flex-col")},React__namespace.createElement("div",{className:o("flex justify-between")},React__namespace.createElement("div",{className:o("text-left text-xs")},"Active"),React__namespace.createElement("div",{className:o("text-right text-xs")},"Very Active")),React__namespace.createElement("div",{className:o("flex flex-col items-center space-y-2")},React__namespace.createElement("div",{className:o("flex")},Di.map((t,e)=>React__namespace.createElement("div",{key:e,className:o("w-4 h-4"),style:{backgroundColor:t}})))))}function r1({zipcode:t,url:e=Mi,zoomLevel:r=10,zoomControl:a=!0,googleApiKey:n,clientKey:s,apiKey:c,height:l="420px"}){let[m,d]=React__namespace.useState(!1),{request:p,isLoading:u,tokens:f,isExternal:T}=pe({clientKey:s,apiKey:c}),{address:P}=je(),I=t||P?.zipcode,h=b(f?.meta,"color"),E=React__namespace.useMemo(()=>({zoom:r,draggable:!1,scrollwheel:!1,fullscreenControl:!1,gestureHandling:"none",zoomControl:a,styles:Mt}),[r,a]),{mapRef:g,setGeojson:R,isMapReady:N}=Dt({mapOptions:E,apiKey:n});return React__namespace.useEffect(()=>{async function A(){if(I?.length&&e.length&&N){let v=new URL(e);v.searchParams.set("zipcode",I),h?.value&&v.searchParams.set("colors",h?.value);try{let D=await p({url:v.toString()});(!T&&!D?.data||f&&T&&!D?.data)&&d(!0),D?.data&&R(D.data);}catch(D){console.error("Error fetching heatmap data:",D);}}}A();},[s,c,f,N]),React__namespace.createElement("div",{className:o("flex flex-col bg-white w-full")},React__namespace.createElement(Ie,{title:"Heat Map",infoDescription:"The best way to visualize the distribution of data in a geographical area.",infoTitle:"Heat Map",icon:React__namespace.createElement(MapPin,null)}),React__namespace.createElement(Pe,null,React__namespace.createElement("div",{className:o("w-full justify-center m-3 lg:m-8 md:m-8")},React__namespace.createElement("div",{className:o("relative rounded-lg overflow-hidden w-full",{"animate-pulse rounded-lg bg-primary/10":u}),style:{maxHeight:l,height:l}},React__namespace.createElement("div",{ref:g,className:o("w-full h-full")}),React__namespace.createElement(Oi,null),m&&React__namespace.createElement(Do,null)))))}format$1(subYears(new Date,1),"yyyy-MM-dd");format$1(subYears(new Date,1),"yyyy-MM-dd");React__namespace.forwardRef(({linkTextColor:t="text-gray-500",icon:e,text:r},a)=>React__namespace.createElement("div",{ref:a,className:o("flex flex-row items-center gap-2")},e&&React__namespace.cloneElement(e,{className:o("h-4 w-4",t,e.props.className)}),React__namespace.createElement("p",{className:o("text-sm hover:cursor-pointer",t)},r)));
|
|
67307
67307
|
|
|
67308
|
-
var t=p$b(
|
|
67308
|
+
var t=p$b(r1,{props:{zipcode:"string",url:"string",zoomLevel:"number",zoomControl:"boolean",googleApiKey:"string",clientKey:"string",apiKey:"string"}});customElements&&customElements.define("heat-map",t);
|
|
67309
67309
|
|
|
67310
67310
|
}));
|
|
67311
67311
|
//# sourceMappingURL=heatmap.js.map
|