@percy.ai/heatmap 0.0.10 → 0.0.11
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 +34 -34
- package/dist/umd/heatmap.js.map +1 -1
- package/dist/umd/heatmap.min.js +2 -2
- package/dist/umd/heatmap.min.js.map +1 -1
- package/package.json +1 -1
package/dist/umd/heatmap.js
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
var j$4 = Object.defineProperty;
|
|
28
28
|
var x$7 = (t, e, r) => e in t ? j$4(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
29
|
-
var b$
|
|
29
|
+
var b$a = (t, e, r) => (x$7(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 = (() => {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
string: C$3,
|
|
55
55
|
number: T$5,
|
|
56
56
|
boolean: V$1,
|
|
57
|
-
function: N$
|
|
57
|
+
function: N$5,
|
|
58
58
|
json: P$1
|
|
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) {
|
|
@@ -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;
|
|
@@ -13913,7 +13913,7 @@ Defaulting to \`null\`.`;
|
|
|
13913
13913
|
|
|
13914
13914
|
var le$2 = /*@__PURE__*/getDefaultExportFromCjs(commandScore_1);
|
|
13915
13915
|
|
|
13916
|
-
var ue$3='[cmdk-list-sizer=""]',M$5='[cmdk-group=""]',N$5='[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$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$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$2(i,M$5):Ce$1(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$2=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$1=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$3=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$2=Object.assign(oe$2,{List:Re$1,Item:me$2,Input:ve$1,Group:pe,Separator:ge$1,Dialog:be$1,Empty:he$3,Loading:Ee$2});function Se$2(n,a){let r=n.nextElementSibling;for(;r;){if(r.matches(a))return r;r=r.nextElementSibling;}}function Ce$1(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"};
|
|
13916
|
+
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$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$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$1(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$2=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$1=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$3=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$2=Object.assign(oe$2,{List:Re$1,Item:me$2,Input:ve$1,Group:pe,Separator:ge$1,Dialog:be$2,Empty:he$3,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$1(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"};
|
|
13917
13917
|
|
|
13918
13918
|
const $d7bdfb9eb0fdf311$var$ENTRY_FOCUS = 'rovingFocusGroup.onEntryFocus';
|
|
13919
13919
|
const $d7bdfb9eb0fdf311$var$EVENT_OPTIONS = {
|
|
@@ -39647,8 +39647,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
39647
39647
|
* This source code is licensed under the MIT license found in the
|
|
39648
39648
|
* LICENSE file in the root directory of this source tree.
|
|
39649
39649
|
*/
|
|
39650
|
-
var b$
|
|
39651
|
-
Symbol.for("react.suspense_list"):60120,r$p=b$
|
|
39650
|
+
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?
|
|
39651
|
+
Symbol.for("react.suspense_list"):60120,r$p=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$5=b$9?Symbol.for("react.responder"):60118,y$6=b$9?Symbol.for("react.scope"):60119;
|
|
39652
39652
|
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$p: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$p;reactIs_production_min.Portal=d$k;
|
|
39653
39653
|
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};
|
|
39654
39654
|
reactIs_production_min.isMemo=function(a){return z$2(a)===r$p};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};
|
|
@@ -63566,7 +63566,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
63566
63566
|
|
|
63567
63567
|
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$l=(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$g(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}
|
|
63568
63568
|
|
|
63569
|
-
const N$
|
|
63569
|
+
const N$3=React.forwardRef(((N,T)=>{const{data:j=[],categories:K=[],index:A,stack:G=!1,colors:D=a$i,valueFormatter:O=o$j,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$g(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$i({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$g(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$g(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";
|
|
63570
63570
|
|
|
63571
63571
|
const E$1=React.forwardRef(((E,j)=>{const{data:O=[],categories:T=[],index:A,colors:L=a$i,valueFormatter:C=o$j,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$i({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";
|
|
63572
63572
|
|
|
@@ -64842,9 +64842,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
64842
64842
|
|
|
64843
64843
|
const u$7=$$1("BadgeDelta"),h$4=React.forwardRef(((n,h)=>{const{deltaType:j=e$5.Increase,isIncreasePositive:x=!0,size:w=r$o.SM,tooltip:y,children:N,className:T}=n,E=__rest$2(n,["deltaType","isIncreasePositive","size","tooltip","children","className"]),P=c$i[j],R=r$n(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$3[R].bgColor,X$3[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$3[w].height,x$3[w].width)}),N?React.createElement("p",{className:t$e(u$7("text"),"text-sm whitespace-nowrap")},N):null)}));h$4.displayName="BadgeDelta";
|
|
64844
64844
|
|
|
64845
|
-
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$m.sm.all,ring:"",shadow:"shadow-tremor-card dark:shadow-dark-tremor-card"},solid:{rounded:"rounded-tremor-default",border:r$m.md.all,ring:"ring-1",shadow:""},outlined:{rounded:"rounded-tremor-default",border:r$m.sm.all,ring:"ring-2",shadow:""}},b$
|
|
64845
|
+
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$m.sm.all,ring:"",shadow:"shadow-tremor-card dark:shadow-dark-tremor-card"},solid:{rounded:"rounded-tremor-default",border:r$m.md.all,ring:"ring-1",shadow:""},outlined:{rounded:"rounded-tremor-default",border:r$m.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"}}};
|
|
64846
64846
|
|
|
64847
|
-
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$o.SM,color:w,className:x}=i,N=__rest$2(i,["icon","variant","tooltip","size","color","className"]),S=h,C=b$
|
|
64847
|
+
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$o.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";
|
|
64848
64848
|
|
|
64849
64849
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
64850
64850
|
if (source == null) return {};
|
|
@@ -65318,7 +65318,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
65318
65318
|
|
|
65319
65319
|
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:""}}};
|
|
65320
65320
|
|
|
65321
|
-
const b$
|
|
65321
|
+
const b$7=$$1("Button"),x$2=({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$f,{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$o.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$m.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$2,{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$2,{loading:E,iconSize:L,iconPosition:p,Icon:R,transitionState:e,needMargin:B}):null)))}));j$3.displayName="Button";
|
|
65322
65322
|
|
|
65323
65323
|
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$e=(t,e,n)=>(d$h(t,typeof e!="symbol"?e+"":e,n),n);let o$f = class o{constructor(){r$e(this,"current",this.detect());r$e(this,"handoffState","pending");r$e(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$f;
|
|
65324
65324
|
|
|
@@ -65344,7 +65344,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
65344
65344
|
|
|
65345
65345
|
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}
|
|
65346
65346
|
|
|
65347
|
-
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$
|
|
65347
|
+
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}
|
|
65348
65348
|
|
|
65349
65349
|
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]);}
|
|
65350
65350
|
|
|
@@ -65362,10 +65362,10 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
65362
65362
|
|
|
65363
65363
|
function t$8(...r){return Array.from(new Set(r.flatMap(n=>typeof n=="string"?n.split(" "):[]))).filter(Boolean).join(" ")}
|
|
65364
65364
|
|
|
65365
|
-
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$2({ourProps:r,theirProps:t,slot:e,defaultTag:a,features:s,visible:n=!0,name:f}){let o=N$
|
|
65365
|
+
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$2({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$1(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(`
|
|
65366
65366
|
`),"","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(`
|
|
65367
65367
|
`)].join(`
|
|
65368
|
-
`));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$
|
|
65368
|
+
`));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$1(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$1(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}
|
|
65369
65369
|
|
|
65370
65370
|
function r$d(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}
|
|
65371
65371
|
|
|
@@ -65387,7 +65387,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
65387
65387
|
|
|
65388
65388
|
function n$a(...e){return React.useMemo(()=>e$2(...e),[...e])}
|
|
65389
65389
|
|
|
65390
|
-
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$2=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ne$2||{}),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$2(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$2),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$2({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$2("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$2({ourProps:H,theirProps:d,slot:h,defaultTag:Ke$2,name:"Combobox.Input"})}let $e$3="button";function qe$2(t,a){var g;let e=J$2("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$2({ourProps:f,theirProps:d,slot:C,defaultTag:$e$3,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$2("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$2({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$2("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$2({ourProps:C,theirProps:b,slot:O,defaultTag:Ze$2,features:ze$2,visible:i,name:"Combobox.Options"})}let oo="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$2("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$2({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=D$1(Je$2),ro=D$1(qe$2),ao=D$1(We$2),lo=D$1(Ye$2),io=D$1(eo),uo$1=D$1(to$1),qo=Object.assign(no,{Input:ao,Button:ro,Label:lo,Options:io,Option:uo$1});
|
|
65390
|
+
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$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$2(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$2),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$2({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$2("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$2({ourProps:H,theirProps:d,slot:h,defaultTag:Ke$2,name:"Combobox.Input"})}let $e$3="button";function qe$2(t,a){var g;let e=J$2("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$2({ourProps:f,theirProps:d,slot:C,defaultTag:$e$3,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$2("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$2({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$2("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$2({ourProps:C,theirProps:b,slot:O,defaultTag:Ze$2,features:ze$2,visible:i,name:"Combobox.Options"})}let oo$1="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$2("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$2({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=D$1(Je$2),ro=D$1(qe$2),ao=D$1(We$2),lo=D$1(Ye$2),io=D$1(eo),uo$1=D$1(to),qo=Object.assign(no,{Input:ao,Button:ro,Label:lo,Options:io,Option:uo$1});
|
|
65391
65391
|
|
|
65392
65392
|
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}
|
|
65393
65393
|
|
|
@@ -65399,9 +65399,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
65399
65399
|
|
|
65400
65400
|
let e=React.createContext(!1);function l$d(){return React.useContext(e)}
|
|
65401
65401
|
|
|
65402
|
-
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
|
|
65402
|
+
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$2({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$2({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$d(o=>(l.current.push(o),p&&p.register(o),()=>e(o))),e=o$d(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});
|
|
65403
65403
|
|
|
65404
|
-
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$d(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$2({ourProps:o,theirProps:i,slot:n.slot||{},defaultTag:S,name:n.name||"Description"})}let y$2=D$1(h$1),b$
|
|
65404
|
+
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$d(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$2({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,{});
|
|
65405
65405
|
|
|
65406
65406
|
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$d(()=>{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$d(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])}}
|
|
65407
65407
|
|
|
@@ -65411,21 +65411,21 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
65411
65411
|
|
|
65412
65412
|
let a$b=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function o$9(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$9(r).trim()}return null}).filter(Boolean);if(u.length>0)return u.join(", ")}return o$9(e).trim()}
|
|
65413
65413
|
|
|
65414
|
-
function b$
|
|
65414
|
+
function b$5(c){let t=React.useRef(""),r=React.useRef("");return o$d(()=>{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})}
|
|
65415
65415
|
|
|
65416
|
-
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$1=(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$1||{});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$1=React.createContext(null);J$1.displayName="ListboxActionsContext";function _(e){let a=React.useContext(J$1);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$1.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$2({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$2({ourProps:L,theirProps:l,slot:S,defaultTag:We$1,name:"Listbox.Button"})}let $e$2="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$2({ourProps:{ref:u,id:r,onClick:i},theirProps:l,slot:b,defaultTag:$e$2,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=_("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$2({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=_("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$2({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$2=D$1(et$1),Nt$1=Object.assign(tt$1,{Button:ot,Label:nt,Options:it,Option:rt$2});
|
|
65416
|
+
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$1=React.createContext(null);J$1.displayName="ListboxActionsContext";function _(e){let a=React.useContext(J$1);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$1.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$2({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$2({ourProps:L,theirProps:l,slot:S,defaultTag:We$1,name:"Listbox.Button"})}let $e$2="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$2({ourProps:{ref:u,id:r,onClick:i},theirProps:l,slot:b,defaultTag:$e$2,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=_("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$2({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=_("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$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$2({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$2=D$1(et$1),Nt$1=Object.assign(tt$1,{Button:ot,Label:nt,Options:it,Option:rt$2});
|
|
65417
65417
|
|
|
65418
|
-
var he$2=(u=>(u[u.Open=0]="Open",u[u.Closed=1]="Closed",u))(he$2||{}),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(t,o){return u$6(o.type,_e$1,t,o)}let ke$1="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,{__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$2({ourProps:B,theirProps:R,slot:c,defaultTag:ke$1,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$2({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$2({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$1="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$2({ourProps:H,theirProps:n,slot:C,defaultTag:$e$1,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$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$2({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),Ze=D$1(Ve),et=D$1(Xe),tt=D$1(qe),kt=Object.assign(ze,{Button:Qe,Overlay:Ze,Panel:et,Group:tt});
|
|
65418
|
+
var he$2=(u=>(u[u.Open=0]="Open",u[u.Closed=1]="Closed",u))(he$2||{}),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$1=React.createContext(null);Pe$1.displayName="PopoverGroupContext";function Ee$1(){return React.useContext(Pe$1)}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$1="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$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$2({ourProps:B,theirProps:R,slot:c,defaultTag:ke$1,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$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$2({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$2({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$1="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$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$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$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$2({ourProps:H,theirProps:n,slot:C,defaultTag:$e$1,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$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$1.Provider,{value:p},X$2({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),Ze=D$1(Ve),et=D$1(Xe),tt=D$1(qe),kt=Object.assign(ze,{Button:Qe,Overlay:Ze,Panel:et,Group:tt});
|
|
65419
65419
|
|
|
65420
65420
|
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$d(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$2({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,{});
|
|
65421
65421
|
|
|
65422
|
-
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$2({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$d(()=>a==null?void 0:a(!o)),C=o$d(e=>{if(r$d(e.currentTarget))return e.preventDefault();e.preventDefault(),S();}),L=o$d(e=>{e.key===o$a.Space?(e.preventDefault(),S()):e.key===o$a.Enter&&p$8(e.currentTarget);}),v=o$d(e=>e.preventDefault()),G=React.useMemo(()=>({checked:o}),[o]),R={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$1({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:b,checked:o,name:l,value:T$1})}),X$2({ourProps:R,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$
|
|
65422
|
+
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$2({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$d(()=>a==null?void 0:a(!o)),C=o$d(e=>{if(r$d(e.currentTarget))return e.preventDefault();e.preventDefault(),S();}),L=o$d(e=>{e.key===o$a.Space?(e.preventDefault(),S()):e.key===o$a.Enter&&p$8(e.currentTarget);}),v=o$d(e=>e.preventDefault()),G=React.useMemo(()=>({checked:o}),[o]),R={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$1({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:b,checked:o,name:l,value:T$1})}),X$2({ourProps:R,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});
|
|
65423
65423
|
|
|
65424
65424
|
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}
|
|
65425
65425
|
|
|
65426
65426
|
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(".")}
|
|
65427
65427
|
|
|
65428
|
-
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$1=React.createContext(null);X$1.displayName="TabsDataContext";function M(e){let n=React.useContext(X$1);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$1(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$d(p=>(d({type:1,tab:p}),()=>d({type:2,tab:p}))),A$1=o$d(p=>(d({type:3,panel:p}),()=>d({type:4,panel:p}))),L=o$d(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$1.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$2({ourProps:B,theirProps:R,slot:g,defaultTag:be,name:"Tabs"}))))}let Pe
|
|
65428
|
+
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$1=React.createContext(null);X$1.displayName="TabsDataContext";function M(e){let n=React.useContext(X$1);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$1=React.Fragment;function me$1(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$d(p=>(d({type:1,tab:p}),()=>d({type:2,tab:p}))),A$1=o$d(p=>(d({type:3,panel:p}),()=>d({type:4,panel:p}))),L=o$d(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$1.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$2({ourProps:B,theirProps:R,slot:g,defaultTag:be$1,name:"Tabs"}))))}let Pe="div";function xe(e,n){let{orientation:t,selectedIndex:o}=M("Tab.List"),s=y$3(n);return X$2({ourProps:{ref:s,role:"tablist","aria-orientation":t},theirProps:e,slot:{selectedIndex:o},defaultTag:Pe,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$d(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$d(a=>{let f=b.map(W=>W.current).filter(Boolean);if(a.key===o$a.Space||a.key===o$a.Enter){a.preventDefault(),a.stopPropagation(),u.change(m);return}switch(a.key){case o$a.Home:case o$a.PageUp:return a.preventDefault(),a.stopPropagation(),E(()=>O(f,M$4.First));case o$a.End:case o$a.PageDown:return a.preventDefault(),a.stopPropagation(),E(()=>O(f,M$4.Last))}if(E(()=>u$6(r,{vertical(){return a.key===o$a.ArrowUp?O(f,M$4.Previous|M$4.WrapAround):a.key===o$a.ArrowDown?O(f,M$4.Next|M$4.WrapAround):N$2.Error},horizontal(){return a.key===o$a.ArrowLeft?O(f,M$4.Previous|M$4.WrapAround):a.key===o$a.ArrowRight?O(f,M$4.Next|M$4.WrapAround):N$2.Error}}))===N$2.Success)return a.preventDefault()}),A=React.useRef(!1),L=o$d(()=>{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$d(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$2({ourProps:B,theirProps:s,slot:N,defaultTag:ge,name:"Tabs.Tab"})}let Ee="div";function Ae(e,n){let{selectedIndex:t}=M("Tab.Panels"),o=y$3(n),s=React.useMemo(()=>({selectedIndex:t}),[t]);return X$2({ourProps:{ref:o},theirProps:e,slot:s,defaultTag:Ee,name:"Tabs.Panels"})}let Re="div",Le$1=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$2({ourProps:y,theirProps:r,slot:m,defaultTag:Re,features:Le$1,visible:g,name:"Tabs.Panel"})}let Ie$1=D$1(ye),De=D$1(me$1),Fe=D$1(xe),he$1=D$1(Ae),Me=D$1(Se),rt$1=Object.assign(Ie$1,{Group:De,List:Fe,Panels:he$1,Panel:Me});
|
|
65429
65429
|
|
|
65430
65430
|
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"}))};
|
|
65431
65431
|
|
|
@@ -67687,17 +67687,17 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
67687
67687
|
|
|
67688
67688
|
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:"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"}))};
|
|
67689
67689
|
|
|
67690
|
-
const b$
|
|
67690
|
+
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$m.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$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")}):React.createElement(r$3,{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$4,{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";
|
|
67691
67691
|
|
|
67692
|
-
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$
|
|
67692
|
+
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$6,{"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$5,{"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";
|
|
67693
67693
|
|
|
67694
67694
|
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$8(x,v),B=y,L=React.useMemo((()=>o$7(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$m.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$8,{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$m.sm.all)},O))))}));w.displayName="SearchSelect";
|
|
67695
67695
|
|
|
67696
67696
|
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";
|
|
67697
67697
|
|
|
67698
|
-
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$m.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$
|
|
67698
|
+
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$m.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$1.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$6.Provider,{value:s},b)))}));b$3.displayName="TabList";
|
|
67699
67699
|
|
|
67700
|
-
const b$
|
|
67700
|
+
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$6),w=x;return React.createElement(rt$1,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";
|
|
67701
67701
|
|
|
67702
67702
|
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$1.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";
|
|
67703
67703
|
|
|
@@ -67705,7 +67705,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
67705
67705
|
|
|
67706
67706
|
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$1.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$5.Provider,{value:t},e))))))}));n$4.displayName="TabPanels";
|
|
67707
67707
|
|
|
67708
|
-
const o$4=$$1("TextInput"),p$3=React.forwardRef(((e,p)=>{const{type:s="text"}=e,a=__rest$2(e,["type"]);return React.createElement(b$
|
|
67708
|
+
const o$4=$$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$4},a))}));p$3.displayName="TextInput";
|
|
67709
67709
|
|
|
67710
67710
|
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$8(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";
|
|
67711
67711
|
|
|
@@ -67719,7 +67719,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
67719
67719
|
|
|
67720
67720
|
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$m.sm.left,r$m.sm.top,r$m.sm.right,r$m.sm.bottom)},React.cloneElement(e)):o===c-1?React.createElement(t$1.Provider,{value:t$e("rounded-b-tremor-default",r$m.sm.left,r$m.sm.right,r$m.sm.bottom)},React.cloneElement(e)):React.createElement(t$1.Provider,{value:t$e(r$m.sm.left,r$m.sm.right,r$m.sm.bottom)},React.cloneElement(e)))))}));a$7.displayName="AccordionList";
|
|
67721
67721
|
|
|
67722
|
-
const s$6=$$1("Card"),c$6=r=>{if(!r)return "";switch(r){case n$j.Left:return r$m.lg.left;case t$f.Top:return r$m.lg.top;case n$j.Right:return r$m.lg.right;case t$f.Bottom:return r$m.lg.bottom;default:return ""}},b=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.displayName="Card";
|
|
67722
|
+
const s$6=$$1("Card"),c$6=r=>{if(!r)return "";switch(r){case n$j.Left:return r$m.lg.left;case t$f.Top:return r$m.lg.top;case n$j.Right:return r$m.lg.right;case t$f.Bottom:return r$m.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";
|
|
67723
67723
|
|
|
67724
67724
|
const m$7=$$1("Divider"),o$3=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$3.displayName="Divider";
|
|
67725
67725
|
|
|
@@ -67777,7 +67777,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
67777
67777
|
|
|
67778
67778
|
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";
|
|
67779
67779
|
|
|
67780
|
-
function r(...t){return twMerge(clsx(t))}var ss="https://api.liberty.percyai.io/key_service/v1/jwt/generate",aa=async({clientKey:t})=>{try{return t?await(await fetch(ss,{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 co=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"}}),J=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(co({variant:e,size:o,className:t})),ref:s,...n}));J.displayName="Button";var po=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}));po.displayName="Card";var uo=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}));uo.displayName="CardHeader";var ia=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("h3",{ref:o,className:r("font-semibold leading-none tracking-tight",t),...e}));ia.displayName="CardTitle";var ds=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("p",{ref:o,className:r("text-sm text-muted-foreground",t),...e}));ds.displayName="CardDescription";var fo=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("p-6 pt-0",t),...e}));fo.displayName="CardContent";var go=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("flex items-center p-6 pt-0",t),...e}));go.displayName="CardFooter";var na=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}));na.displayName=$cddcb0b647441e34$export$be92b6f5f03c0fe9.displayName;var ps=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}));ps.displayName=$cddcb0b647441e34$export$3e431a229df88919.displayName;var sa=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}));sa.displayName=$cddcb0b647441e34$export$fb8d7f40caaeea67.displayName;var la=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)}%)`}})));la.displayName=$67824d98245208a0$export$be92b6f5f03c0fe9.displayName;var Eo=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}));Eo.displayName=$a093c7e1ec25a057$export$7c6e2c02157bb7d2.displayName;var li=({className:t,...e})=>React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{className:r(t),...e});li.displayName=$5d3850c4d0b4e6c7$export$602eac185826482c$1.displayName;var mi=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}));mi.displayName=$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1.displayName;var hs=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"}}),ys=React__namespace.forwardRef(({side:t="right",className:e,children:o,...a},n)=>React__namespace.createElement(li,null,React__namespace.createElement(mi,null),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1,{ref:n,className:r(hs({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")))));ys.displayName=$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1.displayName;var vs=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}));vs.displayName=$5d3850c4d0b4e6c7$export$f99233281efd08a0.displayName;var Ts=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",t),...e}));Ts.displayName=$5d3850c4d0b4e6c7$export$393edc798c47379d.displayName;var ma=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})));ma.displayName="Table";var ca=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("thead",{ref:o,className:r("[&_tr]:border-b",t),...e}));ca.displayName="TableHeader";var da=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("tbody",{ref:o,className:r("[&_tr:last-child]:border-0",t),...e}));da.displayName="TableBody";var pa=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("tfoot",{ref:o,className:r("bg-primary font-medium text-primary-foreground",t),...e}));pa.displayName="TableFooter";var jo=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}));jo.displayName="TableRow";var Wt=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}));Wt.displayName="TableHead";var $t=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}));$t.displayName="TableCell";var ua=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("caption",{ref:o,className:r("mt-4 text-sm text-muted-foreground",t),...e}));ua.displayName="TableCaption";var Ns=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($1bf158f521e1b1b4$export$6d08773d2e66f8f2,{ref:o,className:r("border-b",t),...e}));Ns.displayName="AccordionItem";var As=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"}))));As.displayName=$1bf158f521e1b1b4$export$41fb9f06171c75f4.displayName;var _s=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)));_s.displayName=$1bf158f521e1b1b4$export$7c6e2c02157bb7d2.displayName;var Ls=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"}}),ho=React__namespace.forwardRef(({className:t,variant:e,...o},a)=>React__namespace.createElement("div",{ref:a,role:"alert",className:r(Ls({variant:e}),t),...o}));ho.displayName="Alert";var yo=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}));yo.displayName="AlertTitle";var xo=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("text-sm [&_p]:leading-relaxed",t),...e}));xo.displayName="AlertDescription";var ci=$905f4ae918aab1aa$export$be92b6f5f03c0fe9,di=$905f4ae918aab1aa$export$41fb9f06171c75f4,pi=({className:t,...e})=>React__namespace.createElement($905f4ae918aab1aa$export$602eac185826482c,{className:r(t),...e});pi.displayName=$905f4ae918aab1aa$export$602eac185826482c.displayName;var ui=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}));ui.displayName=$905f4ae918aab1aa$export$c6fdb837b070b4ff.displayName;var fa=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(pi,null,React__namespace.createElement(ui,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})));fa.displayName=$905f4ae918aab1aa$export$7c6e2c02157bb7d2.displayName;var ga=({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});ga.displayName="AlertDialogFooter";var Ea=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$f99233281efd08a0,{ref:o,className:r("text-lg font-semibold",t),...e}));Ea.displayName=$905f4ae918aab1aa$export$f99233281efd08a0.displayName;var Cs=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",t),...e}));Cs.displayName=$905f4ae918aab1aa$export$393edc798c47379d.displayName;var ha=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$e19cd5f9376f8cee,{ref:o,className:r(co(),t),...e}));ha.displayName=$905f4ae918aab1aa$export$e19cd5f9376f8cee.displayName;var Ss=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$848c9b7ead0df967,{ref:o,className:r(co({variant:"outline"}),"mt-2 sm:mt-0",t),...e}));Ss.displayName=$905f4ae918aab1aa$export$848c9b7ead0df967.displayName;var ya=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"}))));ya.displayName=$e698a72e93240346$export$be92b6f5f03c0fe9.displayName;var fi=({className:t,...e})=>React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{className:r(t),...e});fi.displayName=$5d3850c4d0b4e6c7$export$602eac185826482c$1.displayName;var gi=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}));gi.displayName=$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1.displayName;var Ro=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement(fi,null,React__namespace.createElement(gi,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")))));Ro.displayName=$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1.displayName;var va=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}));va.displayName=$5d3850c4d0b4e6c7$export$f99233281efd08a0.displayName;var Ta=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",t),...e}));Ta.displayName=$5d3850c4d0b4e6c7$export$393edc798c47379d.displayName;var hr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$2,{ref:o,className:r("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",t),...e}));hr.displayName=Le$2.displayName;var ba=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$2.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})));ba.displayName=Le$2.Input.displayName;var Na=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$2.List,{ref:o,className:r("max-h-[300px] overflow-y-auto overflow-x-hidden",t),...e}));Na.displayName=Le$2.List.displayName;var Aa=React__namespace.forwardRef((t,e)=>React__namespace.createElement(Le$2.Empty,{ref:e,className:"py-6 text-center text-sm",...t}));Aa.displayName=Le$2.Empty.displayName;var _a=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$2.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}));_a.displayName=Le$2.Group.displayName;var Bs=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$2.Separator,{ref:o,className:r("-mx-1 h-px bg-border",t),...e}));Bs.displayName=Le$2.Separator.displayName;var Pa=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$2.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}));Pa.displayName=Le$2.Item.displayName;var qs=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"})));qs.displayName=$1b0217ee4a91d156$export$2ea8a7a591ac5eac.displayName;var zs=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}));zs.displayName=$1b0217ee4a91d156$export$6d4de93b380beddf.displayName;var Ws=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})));Ws.displayName=$1b0217ee4a91d156$export$7c6e2c02157bb7d2.displayName;var $s=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}));$s.displayName=$1b0217ee4a91d156$export$6d08773d2e66f8f2.displayName;var Qs=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));Qs.displayName=$1b0217ee4a91d156$export$16ce288f89fa631c.displayName;var js=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));js.displayName=$1b0217ee4a91d156$export$371ab307eab489c0.displayName;var Ks=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}));Ks.displayName=$1b0217ee4a91d156$export$b04be29aa201d4f5.displayName;var Xs=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}));Xs.displayName=$1b0217ee4a91d156$export$1ff3c3f08ae963c0.displayName;var ol=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"})));ol.displayName=$d08ef79370b62062$export$2ea8a7a591ac5eac.displayName;var rl=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}));rl.displayName=$d08ef79370b62062$export$6d4de93b380beddf.displayName;var La=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})));La.displayName=$d08ef79370b62062$export$7c6e2c02157bb7d2.displayName;var al=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}));al.displayName=$d08ef79370b62062$export$6d08773d2e66f8f2.displayName;var il=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));il.displayName=$d08ef79370b62062$export$16ce288f89fa631c.displayName;var nl=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));nl.displayName=$d08ef79370b62062$export$371ab307eab489c0.displayName;var sl=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}));sl.displayName=$d08ef79370b62062$export$b04be29aa201d4f5.displayName;var ll=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}));ll.displayName=$d08ef79370b62062$export$1ff3c3f08ae963c0.displayName;var dl=cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ca=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($b73a6c6685e72184$export$be92b6f5f03c0fe9,{ref:o,className:r(dl(),t),...e}));Ca.displayName=$b73a6c6685e72184$export$be92b6f5f03c0fe9.displayName;var yi=React__namespace.createContext({}),Rr=()=>{let t=React__namespace.useContext(yi),e=React__namespace.useContext(xi),{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}},xi=React__namespace.createContext({}),_e=React__namespace.forwardRef(({className:t,...e},o)=>{let a=React__namespace.useId();return React__namespace.createElement(xi.Provider,{value:{id:a}},React__namespace.createElement("div",{ref:o,className:r("space-y-2",t),...e}))});_e.displayName="FormItem";var ke=React__namespace.forwardRef(({className:t,...e},o)=>{let{error:a,formItemId:n}=Rr();return React__namespace.createElement(Ca,{ref:o,className:r(a&&"text-destructive",t),htmlFor:n,...e})});ke.displayName="FormLabel";var Pe=React__namespace.forwardRef(({...t},e)=>{let{error:o,formItemId:a,formDescriptionId:n,formMessageId:s}=Rr();return React__namespace.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1,{ref:e,id:a,"aria-describedby":o?`${n} ${s}`:`${n}`,"aria-invalid":!!o,...t})});Pe.displayName="FormControl";var El=React__namespace.forwardRef(({className:t,...e},o)=>{let{formDescriptionId:a}=Rr();return React__namespace.createElement("p",{ref:o,id:a,className:r("text-[0.8rem] text-muted-foreground",t),...e})});El.displayName="FormDescription";var $e=React__namespace.forwardRef(({className:t,children:e,...o},a)=>{let{error:n,formMessageId:s}=Rr(),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});$e.displayName="FormMessage";var Le=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}));Le.displayName="Input";var Rl=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}));Rl.displayName=$0520064cdfc1bd2d$export$be92b6f5f03c0fe9.displayName;var vl=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}));vl.displayName=$0520064cdfc1bd2d$export$41fb9f06171c75f4.displayName;var Tl=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"})));Tl.displayName=$0520064cdfc1bd2d$export$2ea8a7a591ac5eac.displayName;var bl=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}));bl.displayName=$0520064cdfc1bd2d$export$6d4de93b380beddf.displayName;var Nl=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})));Nl.displayName=$0520064cdfc1bd2d$export$7c6e2c02157bb7d2.displayName;var Al=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}));Al.displayName=$0520064cdfc1bd2d$export$6d08773d2e66f8f2.displayName;var _l=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));_l.displayName=$0520064cdfc1bd2d$export$16ce288f89fa631c.displayName;var Pl=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));Pl.displayName=$0520064cdfc1bd2d$export$371ab307eab489c0.displayName;var Ll=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}));Ll.displayName=$0520064cdfc1bd2d$export$b04be29aa201d4f5.displayName;var Il=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}));Il.displayName=$0520064cdfc1bd2d$export$1ff3c3f08ae963c0.displayName;var Ml=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(Ri,null)));Ml.displayName=$322c88a641701f3b$export$be92b6f5f03c0fe9.displayName;var Dl=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}));Dl.displayName=$322c88a641701f3b$export$54c2e3dc7acea9f5.displayName;var Ol=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"),kl=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($322c88a641701f3b$export$41fb9f06171c75f4,{ref:a,className:r(Ol(),"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"})));kl.displayName=$322c88a641701f3b$export$41fb9f06171c75f4.displayName;var Ul=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}));Ul.displayName=$322c88a641701f3b$export$7c6e2c02157bb7d2.displayName;var Ri=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})));Ri.displayName=$322c88a641701f3b$export$d5c6c08dc2d3ca7.displayName;var Hl=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"})));Hl.displayName=$322c88a641701f3b$export$adb584737d712b70.displayName;var Zo=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})));Zo.displayName=$cb5cc270b50c6fcd$export$7c6e2c02157bb7d2.displayName;var Vl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($f99a8c78507165f7$export$be92b6f5f03c0fe9,{className:r("grid gap-2",t),...e,ref:o}));Vl.displayName=$f99a8c78507165f7$export$be92b6f5f03c0fe9.displayName;var Fl=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"}))));Fl.displayName=$f99a8c78507165f7$export$6d08773d2e66f8f2.displayName;var Yl=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(vi,null),React__namespace.createElement($57acba87d6e25586$export$ac61190d9fc311a9,null)));Yl.displayName=$57acba87d6e25586$export$be92b6f5f03c0fe9.displayName;var vi=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"})));vi.displayName=$57acba87d6e25586$export$2fabd85d0eba3c57.displayName;var Jo=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"}))));Jo.displayName=$cc7e05a45900e73f$export$41fb9f06171c75f4.displayName;var er=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))));er.displayName=$cc7e05a45900e73f$export$7c6e2c02157bb7d2.displayName;var zl=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}));zl.displayName=$cc7e05a45900e73f$export$b04be29aa201d4f5.displayName;var rt=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)));rt.displayName=$cc7e05a45900e73f$export$6d08773d2e66f8f2.displayName;var Wl=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}));Wl.displayName=$cc7e05a45900e73f$export$1ff3c3f08ae963c0.displayName;var $l=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}));$l.displayName=$89eedd556c436f6a$export$be92b6f5f03c0fe9.displayName;var wa=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"})));wa.displayName=$faa2e61a3361514f$export$be92b6f5f03c0fe9.displayName;var Ql=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")})));Ql.displayName=$6be4966fd9bbc698$export$be92b6f5f03c0fe9.displayName;var jl=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}));jl.displayName=$69cb30bb0017df05$export$54c2e3dc7acea9f5.displayName;var Kl=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}));Kl.displayName=$69cb30bb0017df05$export$41fb9f06171c75f4.displayName;var Xl=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}));Xl.displayName=$69cb30bb0017df05$export$7c6e2c02157bb7d2.displayName;var Ma=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}));Ma.displayName="Textarea";var Da=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}));Da.displayName=$054eb8030ebde76e$export$d5c6c08dc2d3ca7.displayName;var em=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"}}),Oa=React__namespace.forwardRef(({className:t,variant:e,...o},a)=>React__namespace.createElement($054eb8030ebde76e$export$be92b6f5f03c0fe9,{ref:a,className:r(em({variant:e}),t),...o}));Oa.displayName=$054eb8030ebde76e$export$be92b6f5f03c0fe9.displayName;var tm=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}));tm.displayName=$054eb8030ebde76e$export$e19cd5f9376f8cee.displayName;var ka=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"})));ka.displayName=$054eb8030ebde76e$export$f39c2d165cd861fe.displayName;var Ua=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}));Ua.displayName=$054eb8030ebde76e$export$f99233281efd08a0.displayName;var Ha=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($054eb8030ebde76e$export$393edc798c47379d,{ref:o,className:r("text-sm opacity-90",t),...e}));Ha.displayName=$054eb8030ebde76e$export$393edc798c47379d.displayName;var lm=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"}}),mm=React__namespace.forwardRef(({className:t,variant:e,size:o,...a},n)=>React__namespace.createElement($b3bbe2732c13b576$export$be92b6f5f03c0fe9,{ref:n,className:r(lm({variant:e,size:o,className:t})),...a}));mm.displayName=$b3bbe2732c13b576$export$be92b6f5f03c0fe9.displayName;var Ya=(n=>(n.buyer="buyer",n.seller="seller",n.buyerSeller="buyer-seller",n.broker="broker",n))(Ya||{});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 Nm=nativeEnumType(Ya,{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:Nm,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=`
|
|
67780
|
+
function r(...t){return twMerge(clsx(t))}var cs="https://api.percyx.com/v1/auth/jwt/generate",na=async({clientKey:t})=>{try{return t?await(await fetch(cs,{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(o=>o.name===e):{};var po=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"}}),J=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(po({variant:e,size:o,className:t})),ref:s,...n}));J.displayName="Button";var uo=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}));uo.displayName="Card";var fo=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}));fo.displayName="CardHeader";var sa=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("h3",{ref:o,className:r("font-semibold leading-none tracking-tight",t),...e}));sa.displayName="CardTitle";var fs=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("p",{ref:o,className:r("text-sm text-muted-foreground",t),...e}));fs.displayName="CardDescription";var go=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("p-6 pt-0",t),...e}));go.displayName="CardContent";var Eo=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("flex items-center p-6 pt-0",t),...e}));Eo.displayName="CardFooter";var la=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}));la.displayName=$cddcb0b647441e34$export$be92b6f5f03c0fe9.displayName;var gs=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}));gs.displayName=$cddcb0b647441e34$export$3e431a229df88919.displayName;var ma=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}));ma.displayName=$cddcb0b647441e34$export$fb8d7f40caaeea67.displayName;var ca=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)}%)`}})));ca.displayName=$67824d98245208a0$export$be92b6f5f03c0fe9.displayName;var ho=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}));ho.displayName=$a093c7e1ec25a057$export$7c6e2c02157bb7d2.displayName;var ci=({className:t,...e})=>React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{className:r(t),...e});ci.displayName=$5d3850c4d0b4e6c7$export$602eac185826482c$1.displayName;var di=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}));di.displayName=$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1.displayName;var Rs=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"}}),vs=React__namespace.forwardRef(({side:t="right",className:e,children:o,...a},n)=>React__namespace.createElement(ci,null,React__namespace.createElement(di,null),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1,{ref:n,className:r(Rs({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")))));vs.displayName=$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1.displayName;var Ns=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}));Ns.displayName=$5d3850c4d0b4e6c7$export$f99233281efd08a0.displayName;var As=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",t),...e}));As.displayName=$5d3850c4d0b4e6c7$export$393edc798c47379d.displayName;var da=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})));da.displayName="Table";var pa=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("thead",{ref:o,className:r("[&_tr]:border-b",t),...e}));pa.displayName="TableHeader";var ua=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("tbody",{ref:o,className:r("[&_tr:last-child]:border-0",t),...e}));ua.displayName="TableBody";var fa=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("tfoot",{ref:o,className:r("bg-primary font-medium text-primary-foreground",t),...e}));fa.displayName="TableFooter";var Ko=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}));Ko.displayName="TableRow";var Wt=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}));Wt.displayName="TableHead";var $t=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}));$t.displayName="TableCell";var ga=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("caption",{ref:o,className:r("mt-4 text-sm text-muted-foreground",t),...e}));ga.displayName="TableCaption";var Ps=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($1bf158f521e1b1b4$export$6d08773d2e66f8f2,{ref:o,className:r("border-b",t),...e}));Ps.displayName="AccordionItem";var Ls=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"}))));Ls.displayName=$1bf158f521e1b1b4$export$41fb9f06171c75f4.displayName;var Is=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)));Is.displayName=$1bf158f521e1b1b4$export$7c6e2c02157bb7d2.displayName;var Ss=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"}}),yo=React__namespace.forwardRef(({className:t,variant:e,...o},a)=>React__namespace.createElement("div",{ref:a,role:"alert",className:r(Ss({variant:e}),t),...o}));yo.displayName="Alert";var xo=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}));xo.displayName="AlertTitle";var Ro=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement("div",{ref:o,className:r("text-sm [&_p]:leading-relaxed",t),...e}));Ro.displayName="AlertDescription";var pi=$905f4ae918aab1aa$export$be92b6f5f03c0fe9,ui=$905f4ae918aab1aa$export$41fb9f06171c75f4,fi=({className:t,...e})=>React__namespace.createElement($905f4ae918aab1aa$export$602eac185826482c,{className:r(t),...e});fi.displayName=$905f4ae918aab1aa$export$602eac185826482c.displayName;var gi=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}));gi.displayName=$905f4ae918aab1aa$export$c6fdb837b070b4ff.displayName;var Ea=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(fi,null,React__namespace.createElement(gi,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})));Ea.displayName=$905f4ae918aab1aa$export$7c6e2c02157bb7d2.displayName;var ha=({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});ha.displayName="AlertDialogFooter";var ya=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$f99233281efd08a0,{ref:o,className:r("text-lg font-semibold",t),...e}));ya.displayName=$905f4ae918aab1aa$export$f99233281efd08a0.displayName;var Ms=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",t),...e}));Ms.displayName=$905f4ae918aab1aa$export$393edc798c47379d.displayName;var xa=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$e19cd5f9376f8cee,{ref:o,className:r(po(),t),...e}));xa.displayName=$905f4ae918aab1aa$export$e19cd5f9376f8cee.displayName;var Ds=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($905f4ae918aab1aa$export$848c9b7ead0df967,{ref:o,className:r(po({variant:"outline"}),"mt-2 sm:mt-0",t),...e}));Ds.displayName=$905f4ae918aab1aa$export$848c9b7ead0df967.displayName;var Ra=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"}))));Ra.displayName=$e698a72e93240346$export$be92b6f5f03c0fe9.displayName;var Ei=({className:t,...e})=>React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{className:r(t),...e});Ei.displayName=$5d3850c4d0b4e6c7$export$602eac185826482c$1.displayName;var hi=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}));hi.displayName=$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1.displayName;var vo=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement(Ei,null,React__namespace.createElement(hi,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")))));vo.displayName=$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1.displayName;var ba=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}));ba.displayName=$5d3850c4d0b4e6c7$export$f99233281efd08a0.displayName;var Na=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",t),...e}));Na.displayName=$5d3850c4d0b4e6c7$export$393edc798c47379d.displayName;var xr=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$2,{ref:o,className:r("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",t),...e}));xr.displayName=Le$2.displayName;var Aa=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$2.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})));Aa.displayName=Le$2.Input.displayName;var _a=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$2.List,{ref:o,className:r("max-h-[300px] overflow-y-auto overflow-x-hidden",t),...e}));_a.displayName=Le$2.List.displayName;var Pa=React__namespace.forwardRef((t,e)=>React__namespace.createElement(Le$2.Empty,{ref:e,className:"py-6 text-center text-sm",...t}));Pa.displayName=Le$2.Empty.displayName;var La=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$2.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}));La.displayName=Le$2.Group.displayName;var Ys=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$2.Separator,{ref:o,className:r("-mx-1 h-px bg-border",t),...e}));Ys.displayName=Le$2.Separator.displayName;var Ia=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement(Le$2.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}));Ia.displayName=Le$2.Item.displayName;var $s=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"})));$s.displayName=$1b0217ee4a91d156$export$2ea8a7a591ac5eac.displayName;var Qs=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}));Qs.displayName=$1b0217ee4a91d156$export$6d4de93b380beddf.displayName;var js=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})));js.displayName=$1b0217ee4a91d156$export$7c6e2c02157bb7d2.displayName;var Ks=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}));Ks.displayName=$1b0217ee4a91d156$export$6d08773d2e66f8f2.displayName;var Xs=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));Xs.displayName=$1b0217ee4a91d156$export$16ce288f89fa631c.displayName;var Zs=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));Zs.displayName=$1b0217ee4a91d156$export$371ab307eab489c0.displayName;var Js=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}));Js.displayName=$1b0217ee4a91d156$export$b04be29aa201d4f5.displayName;var el=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}));el.displayName=$1b0217ee4a91d156$export$1ff3c3f08ae963c0.displayName;var il=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"})));il.displayName=$d08ef79370b62062$export$2ea8a7a591ac5eac.displayName;var nl=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}));nl.displayName=$d08ef79370b62062$export$6d4de93b380beddf.displayName;var Ca=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})));Ca.displayName=$d08ef79370b62062$export$7c6e2c02157bb7d2.displayName;var sl=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}));sl.displayName=$d08ef79370b62062$export$6d08773d2e66f8f2.displayName;var ll=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));ll.displayName=$d08ef79370b62062$export$16ce288f89fa631c.displayName;var ml=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));ml.displayName=$d08ef79370b62062$export$371ab307eab489c0.displayName;var cl=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}));cl.displayName=$d08ef79370b62062$export$b04be29aa201d4f5.displayName;var dl=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}));dl.displayName=$d08ef79370b62062$export$1ff3c3f08ae963c0.displayName;var fl=cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),wa=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($b73a6c6685e72184$export$be92b6f5f03c0fe9,{ref:o,className:r(fl(),t),...e}));wa.displayName=$b73a6c6685e72184$export$be92b6f5f03c0fe9.displayName;var Ri=React__namespace.createContext({}),Tr=()=>{let t=React__namespace.useContext(Ri),e=React__namespace.useContext(vi),{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}},vi=React__namespace.createContext({}),Le=React__namespace.forwardRef(({className:t,...e},o)=>{let a=React__namespace.useId();return React__namespace.createElement(vi.Provider,{value:{id:a}},React__namespace.createElement("div",{ref:o,className:r("space-y-2",t),...e}))});Le.displayName="FormItem";var ke=React__namespace.forwardRef(({className:t,...e},o)=>{let{error:a,formItemId:n}=Tr();return React__namespace.createElement(wa,{ref:o,className:r(a&&"text-destructive",t),htmlFor:n,...e})});ke.displayName="FormLabel";var Ie=React__namespace.forwardRef(({...t},e)=>{let{error:o,formItemId:a,formDescriptionId:n,formMessageId:s}=Tr();return React__namespace.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1,{ref:e,id:a,"aria-describedby":o?`${n} ${s}`:`${n}`,"aria-invalid":!!o,...t})});Ie.displayName="FormControl";var xl=React__namespace.forwardRef(({className:t,...e},o)=>{let{formDescriptionId:a}=Tr();return React__namespace.createElement("p",{ref:o,id:a,className:r("text-[0.8rem] text-muted-foreground",t),...e})});xl.displayName="FormDescription";var $e=React__namespace.forwardRef(({className:t,children:e,...o},a)=>{let{error:n,formMessageId:s}=Tr(),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});$e.displayName="FormMessage";var Ce=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}));Ce.displayName="Input";var bl=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}));bl.displayName=$0520064cdfc1bd2d$export$be92b6f5f03c0fe9.displayName;var Nl=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}));Nl.displayName=$0520064cdfc1bd2d$export$41fb9f06171c75f4.displayName;var Al=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"})));Al.displayName=$0520064cdfc1bd2d$export$2ea8a7a591ac5eac.displayName;var _l=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}));_l.displayName=$0520064cdfc1bd2d$export$6d4de93b380beddf.displayName;var Pl=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})));Pl.displayName=$0520064cdfc1bd2d$export$7c6e2c02157bb7d2.displayName;var Ll=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}));Ll.displayName=$0520064cdfc1bd2d$export$6d08773d2e66f8f2.displayName;var Il=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));Il.displayName=$0520064cdfc1bd2d$export$16ce288f89fa631c.displayName;var Cl=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));Cl.displayName=$0520064cdfc1bd2d$export$371ab307eab489c0.displayName;var Sl=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}));Sl.displayName=$0520064cdfc1bd2d$export$b04be29aa201d4f5.displayName;var wl=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}));wl.displayName=$0520064cdfc1bd2d$export$1ff3c3f08ae963c0.displayName;var kl=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(Ti,null)));kl.displayName=$322c88a641701f3b$export$be92b6f5f03c0fe9.displayName;var Ul=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}));Ul.displayName=$322c88a641701f3b$export$54c2e3dc7acea9f5.displayName;var Hl=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"),Bl=React__namespace.forwardRef(({className:t,children:e,...o},a)=>React__namespace.createElement($322c88a641701f3b$export$41fb9f06171c75f4,{ref:a,className:r(Hl(),"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"})));Bl.displayName=$322c88a641701f3b$export$41fb9f06171c75f4.displayName;var Vl=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}));Vl.displayName=$322c88a641701f3b$export$7c6e2c02157bb7d2.displayName;var Ti=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})));Ti.displayName=$322c88a641701f3b$export$d5c6c08dc2d3ca7.displayName;var Fl=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"})));Fl.displayName=$322c88a641701f3b$export$adb584737d712b70.displayName;var Jo=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})));Jo.displayName=$cb5cc270b50c6fcd$export$7c6e2c02157bb7d2.displayName;var Gl=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($f99a8c78507165f7$export$be92b6f5f03c0fe9,{className:r("grid gap-2",t),...e,ref:o}));Gl.displayName=$f99a8c78507165f7$export$be92b6f5f03c0fe9.displayName;var ql=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"}))));ql.displayName=$f99a8c78507165f7$export$6d08773d2e66f8f2.displayName;var zl=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(bi,null),React__namespace.createElement($57acba87d6e25586$export$ac61190d9fc311a9,null)));zl.displayName=$57acba87d6e25586$export$be92b6f5f03c0fe9.displayName;var bi=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"})));bi.displayName=$57acba87d6e25586$export$2fabd85d0eba3c57.displayName;var er=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"}))));er.displayName=$cc7e05a45900e73f$export$41fb9f06171c75f4.displayName;var tr=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))));tr.displayName=$cc7e05a45900e73f$export$7c6e2c02157bb7d2.displayName;var Ql=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}));Ql.displayName=$cc7e05a45900e73f$export$b04be29aa201d4f5.displayName;var rt=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)));rt.displayName=$cc7e05a45900e73f$export$6d08773d2e66f8f2.displayName;var jl=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}));jl.displayName=$cc7e05a45900e73f$export$1ff3c3f08ae963c0.displayName;var Kl=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}));Kl.displayName=$89eedd556c436f6a$export$be92b6f5f03c0fe9.displayName;var Da=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"})));Da.displayName=$faa2e61a3361514f$export$be92b6f5f03c0fe9.displayName;var Xl=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")})));Xl.displayName=$6be4966fd9bbc698$export$be92b6f5f03c0fe9.displayName;var Zl=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}));Zl.displayName=$69cb30bb0017df05$export$54c2e3dc7acea9f5.displayName;var Jl=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}));Jl.displayName=$69cb30bb0017df05$export$41fb9f06171c75f4.displayName;var em=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}));em.displayName=$69cb30bb0017df05$export$7c6e2c02157bb7d2.displayName;var Oa=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}));Oa.displayName="Textarea";var ka=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}));ka.displayName=$054eb8030ebde76e$export$d5c6c08dc2d3ca7.displayName;var rm=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"}}),Ua=React__namespace.forwardRef(({className:t,variant:e,...o},a)=>React__namespace.createElement($054eb8030ebde76e$export$be92b6f5f03c0fe9,{ref:a,className:r(rm({variant:e}),t),...o}));Ua.displayName=$054eb8030ebde76e$export$be92b6f5f03c0fe9.displayName;var am=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}));am.displayName=$054eb8030ebde76e$export$e19cd5f9376f8cee.displayName;var Ha=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"})));Ha.displayName=$054eb8030ebde76e$export$f39c2d165cd861fe.displayName;var Ba=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}));Ba.displayName=$054eb8030ebde76e$export$f99233281efd08a0.displayName;var Va=React__namespace.forwardRef(({className:t,...e},o)=>React__namespace.createElement($054eb8030ebde76e$export$393edc798c47379d,{ref:o,className:r("text-sm opacity-90",t),...e}));Va.displayName=$054eb8030ebde76e$export$393edc798c47379d.displayName;var dm=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"}}),pm=React__namespace.forwardRef(({className:t,variant:e,size:o,...a},n)=>React__namespace.createElement($b3bbe2732c13b576$export$be92b6f5f03c0fe9,{ref:n,className:r(dm({variant:e,size:o,className:t})),...a}));pm.displayName=$b3bbe2732c13b576$export$be92b6f5f03c0fe9.displayName;var qa=(n=>(n.buyer="buyer",n.seller="seller",n.buyerSeller="buyer-seller",n.broker="broker",n))(qa||{});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 Pm=nativeEnumType(qa,{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:Pm,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=`
|
|
67781
67781
|
All loans are subject to credit approval. Interest rates are subject to
|
|
67782
67782
|
change daily and without notice. Current interest rates shown are
|
|
67783
67783
|
indicative of market conditions and individual qualifications and will
|
|
@@ -67789,9 +67789,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
67789
67789
|
nightly with the previous day's locks. Contact a loan officer for the
|
|
67790
67790
|
most up-to-date rates with specific loan quote details, and check
|
|
67791
67791
|
current market.
|
|
67792
|
-
`,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 Ce({children:t}){return React__namespace.createElement("div",{className:r("flex justify-center w-full")},t)}function vt({trigger:t,content:e,title:o,asChild:a=!1,actionButtomLabel:n=i.ACTION_OK_BUTTON_LABEL}){return React__namespace.createElement(ci,null,React__namespace.createElement(di,{asChild:a},t),React__namespace.createElement(fa,{className:r("flex flex-col gap-2 p-6","h-screen lg:h-auto md:h-auto overflow-y-auto")},o&&React__namespace.createElement(Ea,null,o),e,React__namespace.createElement(ga,null,React__namespace.createElement(ha,null,n))))}function Vi({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(vt,{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 Se({icon:t,infoDescription:e,title:o,titleDescription:a,infoTitle:n,actions:s,showInfo:c=!0,showActions:l=!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(Vi,{title:o,titleDescription:a,infoTitle:n,icon:t,infoDescription:e,showInfo:c}),l&&s&&s)}function he(){let[t,e]=React__namespace.useState(),o=useReadLocalStorage("selectedAddress");return React__namespace.useEffect(()=>{if(o&&o.latlng){let a=o.latlng.split("&").map(c=>c.split("=")[1]),n=parseFloat(a[1]),s=parseFloat(a[2]);e({lat:n,lng:s});}},[o?.latlng]),{address:o,location:t}}var me=({clientKey:t,apiKey:e,loadingInitialState:o="loading"})=>{let[a,n]=React__namespace.useState(void 0),[s,c]=React__namespace.useState(()=>o==="loading"),l=!!t;React__namespace.useEffect(()=>{async function d(){let p=await aa({clientKey:t});n(p);}!a?.token&&t&&d();},[a]);let m=React__namespace.useCallback(async d=>{let{url:p,requestInit:u}=d,{headers:f,...E}=u??{},T=a,A={"Content-Type":"application/json",...T?.token&&{Authorization:`Bearer ${T?.token}`},...e&&{"x-api-key":e},...f};try{if(l&&!a?.token||!l&&!e)return;c(!0),!a?.token&&t&&(T=await aa({clientKey:t}),n(T));let x=await(await fetch(p,{headers:A,...E})).json();return c(!1),x}catch(v){console.error(`Error requesting ${p}`,v);return}finally{c(!1);}},[a,t,e]);return {isLoading:s,tokens:a,request:m,isExternal:l}};var Hr="AIzaSyASLd0x2iEVZpo9r0NBC8beqN_YRFRm_dM";function Om({apiKey:t,mapOptions:e,geoJsonLayerInput:o,markers:a,markersIcon:n,markerEvents:s}){let c=React__namespace.useRef(null),[l,m]=React__namespace.useState(null),[d,p]=React__namespace.useState(null),[u,f]=React__namespace.useState(!1);React__namespace.useEffect(()=>{c.current&&new Loader({apiKey:t??Hr}).importLibrary("maps").then(()=>{e.center||(e.center={lat:39.8283,lng:-98.5795}),c.current&&T(c.current,e);});},[]);let E=()=>{let y=.7,M=70,U=l?.getStreetView();if(!U)return;setInterval(()=>{let $=U.getPov();U.setPov({heading:$.heading+y,pitch:$.pitch});},M);},T=(y,M)=>{m(new google.maps.Map(y,{zoomControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT},...M})),o&&D(o),v(a),f(!0);},A=(y,M)=>{l&&(l.setCenter(y),l.setZoom(M));},v=(y,M,U)=>{if(!l||!y)return;let X=new google.maps.LatLngBounds;y.forEach((ie,F)=>{X.extend(new google.maps.LatLng(ie.lat,ie.lng));let Ae=new google.maps.Marker({position:{lat:ie.lat,lng:ie.lng},map:l,icon:ie.icon??n,label:ie.label});s&&s(F,Ae);}),l.setCenter(X.getCenter()),l.setZoom(M??3),U&&new google.maps.Marker({position:X.getCenter(),map:l,icon:U});},x=React__namespace.useCallback(async({coordinates:y})=>{if(!l||!y)return !1;let M=new google.maps.StreetViewService;return new Promise(U=>{M.getPanorama({location:y},(X,$)=>{U($===google.maps.StreetViewStatus.OK);});})},[l]),h=(y,M)=>new google.maps.StreetViewPanorama(c.current,{position:y,disableDefaultUI:!0,pov:{heading:M?.heading??34,pitch:M?.pitch??10}}),_=y=>{l&&(l.setStreetView(y),E(),p(y));},Y=y=>{l&&(l.setStreetView(null),l.setMapTypeId(google.maps.MapTypeId.SATELLITE),l.setCenter(y),l.setZoom(18),p(null));},w=async(y,M)=>{if(!l)return;if(await x({coordinates:y})){if(d){d.setPosition(y);return}let X=h(y,M);_(X);}else Y(y);},D=({center:y,geoJson:M})=>{if(!l||!M)return;y&&(l.setCenter(y),new google.maps.Marker({position:y,map:l}));let U=new google.maps.Data;U.addGeoJson(M),U.setStyle(X=>({fillColor:X.getProperty("color")??"#FFFFCC",strokeWeight:1,fillOpacity:.5,strokeColor:"white"})),U.setMap(l);};return {mapRef:c,setGeojson:D,setMarkers:v,setPanorama:w,zoomHandler:A,isMapReady:u}}var to=Om;var Nt=[{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 Ho({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 Qi=["#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],ji="https://api.liberty.percyai.io/location/v1/heatmap";function Ki(){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")},Qi.map((t,e)=>React__namespace.createElement("div",{key:e,className:r("w-4 h-4"),style:{backgroundColor:t}})))))}function D1({zipcode:t,url:e=ji,zoomLevel:o=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:E}=me({clientKey:s,apiKey:c}),{address:T}=he(),A=t||T?.zipcode,v=N(f?.meta,"color"),x=React__namespace.useMemo(()=>({zoom:o,draggable:!1,scrollwheel:!1,fullscreenControl:!1,gestureHandling:"none",zoomControl:a,styles:Nt,disableDefaultUI:!0}),[o,a]),{mapRef:h,setGeojson:_,isMapReady:Y}=to({mapOptions:x,apiKey:n});return React__namespace.useEffect(()=>{async function w(){if(A?.length&&e.length&&Y){let D=new URL(e);D.searchParams.set("zipcode",A),v?.value&&D.searchParams.set("colors",v?.value);try{let y=await p({url:D.toString()});(!E&&!y?.data||f&&E&&!y?.data)&&d(!0),y?.data&&_(y.data);}catch(y){console.error("Error fetching heatmap data:",y);}}}w();},[s,c,f,Y]),React__namespace.createElement("div",{className:r("flex flex-col bg-white w-full")},React__namespace.createElement(Se,{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(Ce,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:l,height:l}},React__namespace.createElement("div",{ref:h,className:r("w-full h-full")}),React__namespace.createElement(Ki,null),m&&React__namespace.createElement(Ho,null)))))}format$1(subYears(new Date,1),"yyyy-MM-dd");format$1(subYears(new Date,1),"yyyy-MM-dd");var sn=t=>t!=null&&typeof t=="object"&&Number.isFinite(t.lat)&&Number.isFinite(t.lng);fastEqualsExports.createCustomEqual(t=>({areObjectsEqual(e,o){return sn(e)||e instanceof google.maps.LatLng||sn(o)||o instanceof google.maps.LatLng?new google.maps.LatLng(e).equals(new google.maps.LatLng(o)):fastEqualsExports.deepEqual(e,o)}}));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)));
|
|
67792
|
+
`,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 be({children:t}){return React__namespace.createElement("div",{className:r("flex justify-center w-full")},t)}function vt({trigger:t,content:e,title:o,asChild:a=!1,actionButtomLabel:n=i.ACTION_OK_BUTTON_LABEL}){return React__namespace.createElement(pi,null,React__namespace.createElement(ui,{asChild:a},t),React__namespace.createElement(Ea,{className:r("flex flex-col gap-2 p-6","h-screen lg:h-auto md:h-auto overflow-y-auto")},o&&React__namespace.createElement(ya,null,o),e,React__namespace.createElement(ha,null,React__namespace.createElement(xa,null,n))))}function Yi({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(vt,{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 Ne({icon:t,infoDescription:e,title:o,titleDescription:a,infoTitle:n,actions:s,showInfo:c=!0,showActions:l=!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(Yi,{title:o,titleDescription:a,infoTitle:n,icon:t,infoDescription:e,showInfo:c}),l&&s&&s)}function he(){let[t,e]=React__namespace.useState(),o=useReadLocalStorage("selectedAddress");return React__namespace.useEffect(()=>{if(o&&o.latlng){let a=o.latlng.split("&").map(c=>c.split("=")[1]),n=parseFloat(a[1]),s=parseFloat(a[2]);e({lat:n,lng:s});}},[o?.latlng]),{address:o,location:t}}var me=({clientKey:t,apiKey:e,loadingInitialState:o="loading"})=>{let[a,n]=React__namespace.useState(void 0),[s,c]=React__namespace.useState(()=>o==="loading"),l=!!t;React__namespace.useEffect(()=>{async function d(){let p=await na({clientKey:t});n(p);}!a?.token&&t&&d();},[a]);let m=React__namespace.useCallback(async d=>{let{url:p,requestInit:u}=d,{headers:f,...E}=u??{},N=a,A={"Content-Type":"application/json",...N?.token&&{Authorization:`Bearer ${N?.token}`},...e&&{"x-api-key":e},...f};try{if(l&&!a?.token||!l&&!e)return;c(!0),!a?.token&&t&&(N=await na({clientKey:t}),n(N));let x=await(await fetch(p,{headers:A,...E})).json();return c(!1),x}catch(v){console.error(`Error requesting ${p}`,v);return}finally{c(!1);}},[a,t,e]);return {isLoading:s,tokens:a,request:m,isExternal:l}};var Vr="AIzaSyASLd0x2iEVZpo9r0NBC8beqN_YRFRm_dM";function Hm({apiKey:t,mapOptions:e,geoJsonLayerInput:o,markers:a,markersIcon:n,markerEvents:s}){let c=React__namespace.useRef(null),[l,m]=React__namespace.useState(null),[d,p]=React__namespace.useState(null),[u,f]=React__namespace.useState(!1);React__namespace.useEffect(()=>{c.current&&new Loader({apiKey:t??Vr}).importLibrary("maps").then(()=>{e.center||(e.center={lat:39.8283,lng:-98.5795}),c.current&&N(c.current,e);});},[]);let E=()=>{let y=.7,M=70,U=l?.getStreetView();if(!U)return;setInterval(()=>{let $=U.getPov();U.setPov({heading:$.heading+y,pitch:$.pitch});},M);},N=(y,M)=>{m(new google.maps.Map(y,{zoomControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT},...M})),o&&D(o),v(a),f(!0);},A=(y,M)=>{l&&(l.setCenter(y),l.setZoom(M));},v=(y,M,U)=>{if(!l||!y)return;let X=new google.maps.LatLngBounds;y.forEach((ie,F)=>{X.extend(new google.maps.LatLng(ie.lat,ie.lng));let Pe=new google.maps.Marker({position:{lat:ie.lat,lng:ie.lng},map:l,icon:ie.icon??n,label:ie.label});s&&s(F,Pe);}),l.setCenter(X.getCenter()),l.setZoom(M??3),U&&new google.maps.Marker({position:X.getCenter(),map:l,icon:U});},x=React__namespace.useCallback(async({coordinates:y})=>{if(!l||!y)return !1;let M=new google.maps.StreetViewService;return new Promise(U=>{M.getPanorama({location:y},(X,$)=>{U($===google.maps.StreetViewStatus.OK);});})},[l]),h=(y,M)=>new google.maps.StreetViewPanorama(c.current,{position:y,disableDefaultUI:!0,pov:{heading:M?.heading??34,pitch:M?.pitch??10}}),_=y=>{l&&(l.setStreetView(y),E(),p(y));},Y=y=>{l&&(l.setStreetView(null),l.setMapTypeId(google.maps.MapTypeId.SATELLITE),l.setCenter(y),l.setZoom(18),p(null));},w=async(y,M)=>{if(!l)return;if(await x({coordinates:y})){if(d){d.setPosition(y);return}let X=h(y,M);_(X);}else Y(y);},D=({center:y,geoJson:M})=>{if(!l||!M)return;y&&(l.setCenter(y),new google.maps.Marker({position:y,map:l}));let U=new google.maps.Data;U.addGeoJson(M),U.setStyle(X=>({fillColor:X.getProperty("color")??"#FFFFCC",strokeWeight:1,fillOpacity:.5,strokeColor:"white"})),U.setMap(l);};return {mapRef:c,setGeojson:D,setMarkers:v,setPanorama:w,zoomHandler:A,isMapReady:u}}var oo=Hm;var Nt=[{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 Bo({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 Ki=["#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],Xi="https://api.liberty.percyai.io/location/v1/heatmap";function Zi(){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")},Ki.map((t,e)=>React__namespace.createElement("div",{key:e,className:r("w-4 h-4"),style:{backgroundColor:t}})))))}function F1({zipcode:t,url:e=Xi,zoomLevel:o=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:E}=me({clientKey:s,apiKey:c}),{address:N}=he(),A=t||N?.zipcode,v=b(f?.meta,"color"),x=React__namespace.useMemo(()=>({zoom:o,draggable:!1,scrollwheel:!1,fullscreenControl:!1,gestureHandling:"none",zoomControl:a,styles:Nt,disableDefaultUI:!0}),[o,a]),{mapRef:h,setGeojson:_,isMapReady:Y}=oo({mapOptions:x,apiKey:n});return React__namespace.useEffect(()=>{async function w(){if(A?.length&&e.length&&Y){let D=new URL(e);D.searchParams.set("zipcode",A),v?.value&&D.searchParams.set("colors",v?.value);try{let y=await p({url:D.toString()});(!E&&!y?.data||f&&E&&!y?.data)&&d(!0),y?.data&&_(y.data);}catch(y){console.error("Error fetching heatmap data:",y);}}}w();},[s,c,f,Y,A]),React__namespace.createElement("div",{className:r("flex flex-col bg-white w-full")},React__namespace.createElement(Ne,{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(be,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:l,height:l}},React__namespace.createElement("div",{ref:h,className:r("w-full h-full")}),React__namespace.createElement(Zi,null),m&&React__namespace.createElement(Bo,null)))))}format$1(subYears(new Date,1),"yyyy-MM-dd");format$1(subYears(new Date,1),"yyyy-MM-dd");var mn=t=>t!=null&&typeof t=="object"&&Number.isFinite(t.lat)&&Number.isFinite(t.lng);fastEqualsExports.createCustomEqual(t=>({areObjectsEqual(e,o){return mn(e)||e instanceof google.maps.LatLng||mn(o)||o instanceof google.maps.LatLng?new google.maps.LatLng(e).equals(new google.maps.LatLng(o)):fastEqualsExports.deepEqual(e,o)}}));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)));
|
|
67793
67793
|
|
|
67794
|
-
var t=p$b(
|
|
67794
|
+
var t=p$b(F1,{props:{zipcode:"string",url:"string",zoomLevel:"number",zoomControl:"boolean",googleApiKey:"string",clientKey:"string",apiKey:"string"}});customElements&&customElements.define("heat-map",t);
|
|
67795
67795
|
|
|
67796
67796
|
}));
|
|
67797
67797
|
//# sourceMappingURL=heatmap.js.map
|