@percy.ai/heatmap 0.0.16 → 0.0.17

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.
@@ -16127,7 +16127,7 @@ Defaulting to \`null\`.`;
16127
16127
 
16128
16128
  var le$2 = /*@__PURE__*/getDefaultExportFromCjs(commandScore_1);
16129
16129
 
16130
- var ue$5='[cmdk-list-sizer=""]',M$5='[cmdk-group=""]',N$4='[cmdk-group-items=""]',de$3='[cmdk-group-heading=""]',ee$4='[cmdk-item=""]',Z$3=`${ee$4}:not([aria-disabled="true"])`,z$3="cmdk-item-select",S$8="data-value",fe$2=(n,a)=>le$2(n,a),te$3=React__namespace.createContext(void 0),k$9=()=>React__namespace.useContext(te$3),re$4=React__namespace.createContext(void 0),U$3=()=>React__namespace.useContext(re$4),ne$3=React__namespace.createContext(void 0),oe$2=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useRef(null),o=x$5(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),u=x$5(()=>new Set),l=x$5(()=>new Map),p=x$5(()=>new Map),f=x$5(()=>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$2();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$5);I().sort((s,m)=>{let b=s.getAttribute(S$8),P=m.getAttribute(S$8);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$8}="${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$8);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$3))==null||s.scrollIntoView({block:"nearest"})),e.scrollIntoView({block:"nearest"}));}function _(){return r.current.querySelector(`${ee$4}[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$8));}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$8));}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$8)):$(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$1([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$2},v),React__namespace.createElement(re$4.Provider,{value:h},React__namespace.createElement(te$3.Provider,{value:K},E)))}),me$1=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useId(),o=React__namespace.useRef(null),u=React__namespace.useContext(ne$3),l=k$9(),p=ae$2(n);L(()=>l.item(r,u),[]);let f=se$2(r,o,[n.value,n.children,o]),d=U$3(),v=T$5(g=>g.value&&g.value===f.current),E=T$5(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$1([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$2=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$9(),E=T$5(w=>v.filter()===!1?!0:w.search?w.filtered.groups.has(l):!0);L(()=>v.group(l),[]),se$2(l,p,[n.value,n.heading,f]);let R=React__namespace.createElement(ne$3.Provider,{value:l},o);return React__namespace.createElement("div",{ref:H$1([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$5(p=>!p.search);return !r&&!l?null:React__namespace.createElement("div",{ref:H$1([u,a]),...o,"cmdk-separator":"",role:"separator"})}),ve=React__namespace.forwardRef((n,a)=>{let{onValueChange:r,...o}=n,u=n.value!=null,l=U$3(),p=T$5(d=>d.search),f=k$9();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$2=React__namespace.forwardRef((n,a)=>{let{children:r,...o}=n,u=React__namespace.useRef(null),l=React__namespace.useRef(null),p=k$9();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$1([u,a]),...o,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:p.listId,"aria-labelledby":p.inputId},React__namespace.createElement("div",{ref:l,"cmdk-list-sizer":""},r))}),be$2=React__namespace.forwardRef((n,a)=>{let{open:r,onOpenChange:o,container:u,...l}=n;return React__namespace.createElement($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9,{open:r,onOpenChange:o},React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c,{container:u},React__namespace.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff,{"cmdk-overlay":""}),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2,{"aria-label":n.label,"cmdk-dialog":""},React__namespace.createElement(oe$2,{ref:a,...l}))))}),he$2=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useRef(!0),o=T$5(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$2,Item:me$1,Input:ve,Group:pe$2,Separator:ge$1,Dialog:be$2,Empty:he$2,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$5(n){let a=React__namespace.useRef();return a.current===void 0&&(a.current=n()),a}function H$1(n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a);});}}function T$5(n){let a=U$3(),r=()=>n(a.snapshot());return React__namespace.useSyncExternalStore(a.subscribe,r,r)}function se$2(n,a,r){let o=React__namespace.useRef(),u=k$9();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$8,l),o.current=l;}),o}var ye$2=()=>{let[n,a]=React__namespace.useState(),r=x$5(()=>new Map);return L(()=>{r.current.forEach(o=>o()),r.current=new Map;},[n]),(o,u)=>{r.current.set(o,u),a({});}},xe$2={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};
16130
+ var ue$4='[cmdk-list-sizer=""]',M$5='[cmdk-group=""]',N$4='[cmdk-group-items=""]',de$3='[cmdk-group-heading=""]',ee$4='[cmdk-item=""]',Z$3=`${ee$4}:not([aria-disabled="true"])`,z$3="cmdk-item-select",S$8="data-value",fe$3=(n,a)=>le$2(n,a),te$3=React__namespace.createContext(void 0),k$9=()=>React__namespace.useContext(te$3),re$4=React__namespace.createContext(void 0),U$3=()=>React__namespace.useContext(re$4),ne$3=React__namespace.createContext(void 0),oe$2=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useRef(null),o=x$5(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),u=x$5(()=>new Set),l=x$5(()=>new Map),p=x$5(()=>new Map),f=x$5(()=>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$2();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$3;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$4);I().sort((s,m)=>{let b=s.getAttribute(S$8),P=m.getAttribute(S$8);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$8}="${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$8);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$3))==null||s.scrollIntoView({block:"nearest"})),e.scrollIntoView({block:"nearest"}));}function _(){return r.current.querySelector(`${ee$4}[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$8));}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$8));}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$8)):$(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$1([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$2},v),React__namespace.createElement(re$4.Provider,{value:h},React__namespace.createElement(te$3.Provider,{value:K},E)))}),me$1=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useId(),o=React__namespace.useRef(null),u=React__namespace.useContext(ne$3),l=k$9(),p=ae$2(n);L(()=>l.item(r,u),[]);let f=se$2(r,o,[n.value,n.children,o]),d=U$3(),v=T$5(g=>g.value&&g.value===f.current),E=T$5(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$1([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$2=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$9(),E=T$5(w=>v.filter()===!1?!0:w.search?w.filtered.groups.has(l):!0);L(()=>v.group(l),[]),se$2(l,p,[n.value,n.heading,f]);let R=React__namespace.createElement(ne$3.Provider,{value:l},o);return React__namespace.createElement("div",{ref:H$1([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$5(p=>!p.search);return !r&&!l?null:React__namespace.createElement("div",{ref:H$1([u,a]),...o,"cmdk-separator":"",role:"separator"})}),ve=React__namespace.forwardRef((n,a)=>{let{onValueChange:r,...o}=n,u=n.value!=null,l=U$3(),p=T$5(d=>d.search),f=k$9();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$2=React__namespace.forwardRef((n,a)=>{let{children:r,...o}=n,u=React__namespace.useRef(null),l=React__namespace.useRef(null),p=k$9();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$1([u,a]),...o,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:p.listId,"aria-labelledby":p.inputId},React__namespace.createElement("div",{ref:l,"cmdk-list-sizer":""},r))}),be$2=React__namespace.forwardRef((n,a)=>{let{open:r,onOpenChange:o,container:u,...l}=n;return React__namespace.createElement($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9,{open:r,onOpenChange:o},React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c,{container:u},React__namespace.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff,{"cmdk-overlay":""}),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2,{"aria-label":n.label,"cmdk-dialog":""},React__namespace.createElement(oe$2,{ref:a,...l}))))}),he$2=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useRef(!0),o=T$5(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$2,Item:me$1,Input:ve,Group:pe$2,Separator:ge$1,Dialog:be$2,Empty:he$2,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$5(n){let a=React__namespace.useRef();return a.current===void 0&&(a.current=n()),a}function H$1(n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a);});}}function T$5(n){let a=U$3(),r=()=>n(a.snapshot());return React__namespace.useSyncExternalStore(a.subscribe,r,r)}function se$2(n,a,r){let o=React__namespace.useRef(),u=k$9();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$8,l),o.current=l;}),o}var ye$2=()=>{let[n,a]=React__namespace.useState(),r=x$5(()=>new Map);return L(()=>{r.current.forEach(o=>o()),r.current=new Map;},[n]),(o,u)=>{r.current.set(o,u),a({});}},xe$2={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};
16131
16131
 
16132
16132
  const $d7bdfb9eb0fdf311$var$ENTRY_FOCUS = 'rovingFocusGroup.onEntryFocus';
16133
16133
  const $d7bdfb9eb0fdf311$var$EVENT_OPTIONS = {
@@ -22942,7 +22942,7 @@ Defaulting to \`null\`.`;
22942
22942
  'aria-orientation': ariaOrientation,
22943
22943
  role: 'separator'
22944
22944
  };
22945
- return /*#__PURE__*/ React$1.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$N({
22945
+ return /*#__PURE__*/ React$1.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$O({
22946
22946
  "data-orientation": orientation
22947
22947
  }, semanticProps, domProps, {
22948
22948
  ref: forwardedRef
@@ -49701,14 +49701,14 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
49701
49701
  }
49702
49702
  };
49703
49703
 
49704
- const ka = 0.89081309152928522810;
49704
+ const ka$1 = 0.89081309152928522810;
49705
49705
  const kr$1 = sin(pi$1 / 10) / sin(7 * pi$1 / 10);
49706
49706
  const kx = sin(tau$1 / 10) * kr$1;
49707
49707
  const ky = -cos(tau$1 / 10) * kr$1;
49708
49708
 
49709
49709
  var symbolStar = {
49710
49710
  draw(context, size) {
49711
- const r = sqrt$1(size * ka);
49711
+ const r = sqrt$1(size * ka$1);
49712
49712
  const x = kx * r;
49713
49713
  const y = ky * r;
49714
49714
  context.moveTo(0, -r);
@@ -74508,7 +74508,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
74508
74508
 
74509
74509
  var o$b=(r=>(r.Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r))(o$b||{});
74510
74510
 
74511
- var $e$5=(o=>(o[o.Open=0]="Open",o[o.Closed=1]="Closed",o))($e$5||{}),qe$5=(o=>(o[o.Single=0]="Single",o[o.Multi=1]="Multi",o))(qe$5||{}),ze$3=(a=>(a[a.Pointer=0]="Pointer",a[a.Focus=1]="Focus",a[a.Other=2]="Other",a))(ze$3||{}),Ye$3=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e[e.SetActivationTrigger=6]="SetActivationTrigger",e[e.UpdateVirtualOptions=7]="UpdateVirtualOptions",e))(Ye$3||{});function de$2(t,r=o=>o){let o=t.activeOptionIndex!==null?t.options[t.activeOptionIndex]:null,a=r(t.options.slice()),i=a.length>0&&a[0].dataRef.current.order!==null?a.sort((p,c)=>p.dataRef.current.order-c.dataRef.current.order):I$5(a,p=>p.dataRef.current.domRef.current),u=o?i.indexOf(o):null;return u===-1&&(u=null),{options:i,activeOptionIndex:u}}let Qe$4={[1](t){var r;return (r=t.dataRef.current)!=null&&r.disabled||t.comboboxState===1?t:{...t,activeOptionIndex:null,comboboxState:1}},[0](t){var r,o;if((r=t.dataRef.current)!=null&&r.disabled||t.comboboxState===0)return t;if((o=t.dataRef.current)!=null&&o.value){let a=t.dataRef.current.calculateIndex(t.dataRef.current.value);if(a!==-1)return {...t,activeOptionIndex:a,comboboxState:0}}return {...t,comboboxState:0}},[2](t,r){var u,p,c,e,l;if((u=t.dataRef.current)!=null&&u.disabled||(p=t.dataRef.current)!=null&&p.optionsRef.current&&!((c=t.dataRef.current)!=null&&c.optionsPropsRef.current.static)&&t.comboboxState===1)return t;if(t.virtual){let T=r.focus===c$g.Specific?r.idx:f$8(r,{resolveItems:()=>t.virtual.options,resolveActiveIndex:()=>{var f,v;return (v=(f=t.activeOptionIndex)!=null?f:t.virtual.options.findIndex(S=>!t.virtual.disabled(S)))!=null?v:null},resolveDisabled:t.virtual.disabled,resolveId(){throw new Error("Function not implemented.")}}),g=(e=r.trigger)!=null?e:2;return t.activeOptionIndex===T&&t.activationTrigger===g?t:{...t,activeOptionIndex:T,activationTrigger:g}}let o=de$2(t);if(o.activeOptionIndex===null){let T=o.options.findIndex(g=>!g.dataRef.current.disabled);T!==-1&&(o.activeOptionIndex=T);}let a=r.focus===c$g.Specific?r.idx:f$8(r,{resolveItems:()=>o.options,resolveActiveIndex:()=>o.activeOptionIndex,resolveId:T=>T.id,resolveDisabled:T=>T.dataRef.current.disabled}),i=(l=r.trigger)!=null?l:2;return t.activeOptionIndex===a&&t.activationTrigger===i?t:{...t,...o,activeOptionIndex:a,activationTrigger:i}},[3]:(t,r)=>{var u,p,c;if((u=t.dataRef.current)!=null&&u.virtual)return {...t,options:[...t.options,r.payload]};let o=r.payload,a=de$2(t,e=>(e.push(o),e));t.activeOptionIndex===null&&(p=t.dataRef.current)!=null&&p.isSelected(r.payload.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(o));let i={...t,...a,activationTrigger:2};return (c=t.dataRef.current)!=null&&c.__demoMode&&t.dataRef.current.value===void 0&&(i.activeOptionIndex=0),i},[4]:(t,r)=>{var a;if((a=t.dataRef.current)!=null&&a.virtual)return {...t,options:t.options.filter(i=>i.id!==r.id)};let o=de$2(t,i=>{let u=i.findIndex(p=>p.id===r.id);return u!==-1&&i.splice(u,1),i});return {...t,...o,activationTrigger:2}},[5]:(t,r)=>t.labelId===r.id?t:{...t,labelId:r.id},[6]:(t,r)=>t.activationTrigger===r.trigger?t:{...t,activationTrigger:r.trigger},[7]:(t,r)=>{var a;if(((a=t.virtual)==null?void 0:a.options)===r.options)return t;let o=t.activeOptionIndex;if(t.activeOptionIndex!==null){let i=r.options.indexOf(t.virtual.options[t.activeOptionIndex]);i!==-1?o=i:o=null;}return {...t,activeOptionIndex:o,virtual:Object.assign({},t.virtual,{options:r.options})}}},be$1=React$1.createContext(null);be$1.displayName="ComboboxActionsContext";function ee$3(t){let r=React$1.useContext(be$1);if(r===null){let o=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,ee$3),o}return r}let Ce=React$1.createContext(null);function Ze$4(t){var c;let r=j$2("VirtualProvider"),[o,a]=React$1.useMemo(()=>{let e=r.optionsRef.current;if(!e)return [0,0];let l=window.getComputedStyle(e);return [parseFloat(l.paddingBlockStart||l.paddingTop),parseFloat(l.paddingBlockEnd||l.paddingBottom)]},[r.optionsRef.current]),i=useVirtualizer({scrollPaddingStart:o,scrollPaddingEnd:a,count:r.virtual.options.length,estimateSize(){return 40},getScrollElement(){var e;return (e=r.optionsRef.current)!=null?e:null},overscan:12}),[u,p]=React$1.useState(0);return l$i(()=>{p(e=>e+1);},[(c=r.virtual)==null?void 0:c.options]),React$1.createElement(Ce.Provider,{value:i},React$1.createElement("div",{style:{position:"relative",width:"100%",height:`${i.getTotalSize()}px`},ref:e=>{if(e){if(typeof process!="undefined"&&process.env.JEST_WORKER_ID!==void 0||r.activationTrigger===0)return;r.activeOptionIndex!==null&&r.virtual.options.length>r.activeOptionIndex&&i.scrollToIndex(r.activeOptionIndex);}}},i.getVirtualItems().map(e=>{var l;return React$1.createElement(React$1.Fragment,{key:e.key},React$1.cloneElement((l=t.children)==null?void 0:l.call(t,{option:r.virtual.options[e.index],open:r.comboboxState===0}),{key:`${u}-${e.key}`,"data-index":e.index,"aria-setsize":r.virtual.options.length,"aria-posinset":e.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${e.start}px)`,overflowAnchor:"none"}}))})))}let ce$1=React$1.createContext(null);ce$1.displayName="ComboboxDataContext";function j$2(t){let r=React$1.useContext(ce$1);if(r===null){let o=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,j$2),o}return r}function et$3(t,r){return u$b(r.type,Qe$4,t,r)}let tt$3=React$1.Fragment;function ot$2(t,r){let{value:o,defaultValue:a,onChange:i,form:u,name:p,by:c=null,disabled:e=!1,__demoMode:l=!1,nullable:T=!1,multiple:g=!1,immediate:f=!1,virtual:v=null,...S}=t,R=!1,s=null,[I=g?[]:void 0,V]=T$3(o,i,a),[_,E]=React$1.useReducer(et$3,{dataRef:React$1.createRef(),comboboxState:l?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),k=React$1.useRef(!1),J=React$1.useRef({static:!1,hold:!1}),K=React$1.useRef(null),z=React$1.useRef(null),te=React$1.useRef(null),X=React$1.useRef(null),x=o$g(typeof c=="string"?(d,b)=>{let P=c;return (d==null?void 0:d[P])===(b==null?void 0:b[P])}:c!=null?c:(d,b)=>d===b),O=o$g(d=>_.options.findIndex(b=>x(b.dataRef.current.value,d))),L=React$1.useCallback(d=>u$b(n.mode,{[1]:()=>I.some(b=>x(b,d)),[0]:()=>x(I,d)}),[I]),oe=o$g(d=>_.activeOptionIndex===O(d)),n=React$1.useMemo(()=>({..._,immediate:R,optionsPropsRef:J,labelRef:K,inputRef:z,buttonRef:te,optionsRef:X,value:I,defaultValue:a,disabled:e,mode:g?1:0,virtual:_.virtual,get activeOptionIndex(){if(k.current&&_.activeOptionIndex===null&&(_.options.length>0)){let d=_.options.findIndex(b=>!b.dataRef.current.disabled);if(d!==-1)return d}return _.activeOptionIndex},calculateIndex:O,compare:x,isSelected:L,isActive:oe,nullable:T,__demoMode:l}),[I,a,e,g,T,l,_,s]);l$i(()=>{},[s,void 0]),l$i(()=>{_.dataRef.current=n;},[n]),y$4([n.buttonRef,n.inputRef,n.optionsRef],()=>le.closeCombobox(),n.comboboxState===0);let F=React$1.useMemo(()=>{var d,b,P;return {open:n.comboboxState===0,disabled:e,activeIndex:n.activeOptionIndex,activeOption:n.activeOptionIndex===null?null:n.virtual?n.virtual.options[(d=n.activeOptionIndex)!=null?d:0]:(P=(b=n.options[n.activeOptionIndex])==null?void 0:b.dataRef.current.value)!=null?P:null,value:I}},[n,e,I]),A=o$g(()=>{if(n.activeOptionIndex!==null){if(n.virtual)ae(n.virtual.options[n.activeOptionIndex]);else {let{dataRef:d}=n.options[n.activeOptionIndex];ae(d.current.value);}le.goToOption(c$g.Specific,n.activeOptionIndex);}}),h=o$g(()=>{E({type:0}),k.current=!0;}),C=o$g(()=>{E({type:1}),k.current=!1;}),D=o$g((d,b,P)=>(k.current=!1,d===c$g.Specific?E({type:2,focus:c$g.Specific,idx:b,trigger:P}):E({type:2,focus:d,trigger:P}))),N=o$g((d,b)=>(E({type:3,payload:{id:d,dataRef:b}}),()=>{n.isActive(b.current.value)&&(k.current=!0),E({type:4,id:d});})),ye=o$g(d=>(E({type:5,id:d}),()=>E({type:5,id:null}))),ae=o$g(d=>u$b(n.mode,{[0](){return V==null?void 0:V(d)},[1](){let b=n.value.slice(),P=b.findIndex(G=>x(G,d));return P===-1?b.push(d):b.splice(P,1),V==null?void 0:V(b)}})),Re=o$g(d=>{E({type:6,trigger:d});}),le=React$1.useMemo(()=>({onChange:ae,registerOption:N,registerLabel:ye,goToOption:D,closeCombobox:C,openCombobox:h,setActivationTrigger:Re,selectActiveOption:A}),[]),Ae=r===null?{}:{ref:r},ne=React$1.useRef(null),Se=p$8();return React$1.useEffect(()=>{ne.current&&a!==void 0&&Se.addEventListener(ne.current,"reset",()=>{V==null||V(a);});},[ne,V]),React$1.createElement(be$1.Provider,{value:le},React$1.createElement(ce$1.Provider,{value:n},React$1.createElement(s$h,{value:u$b(n.comboboxState,{[0]:d$b.Open,[1]:d$b.Closed})},p!=null&&I!=null&&e$2({[p]:I}).map(([d,b],P)=>React$1.createElement(f$9,{features:s$i.Hidden,ref:P===0?G=>{var Y;ne.current=(Y=G==null?void 0:G.closest("form"))!=null?Y:null;}:void 0,...x$1({key:d,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:u,name:d,value:b})})),C$1({ourProps:Ae,theirProps:S,slot:F,defaultTag:tt$3,name:"Combobox"}))))}let nt$1="input";function rt$2(t,r){var X,x,O,L,oe;let o=I$6(),{id:a=`headlessui-combobox-input-${o}`,onChange:i,displayValue:u,type:p="text",...c}=t,e=j$2("Combobox.Input"),l=ee$3("Combobox.Input"),T=y$3(e.inputRef,r),g=n$f(e.inputRef),f=React$1.useRef(!1),v=p$8(),S=o$g(()=>{l.onChange(null),e.optionsRef.current&&(e.optionsRef.current.scrollTop=0),l.goToOption(c$g.Nothing);}),R=function(){var n;return typeof u=="function"&&e.value!==void 0?(n=u(e.value))!=null?n:"":typeof e.value=="string"?e.value:""}();m$k(([n,F],[A,h])=>{if(f.current)return;let C=e.inputRef.current;C&&((h===0&&F===1||n!==A)&&(C.value=n),requestAnimationFrame(()=>{if(f.current||!C||(g==null?void 0:g.activeElement)!==C)return;let{selectionStart:D,selectionEnd:N}=C;Math.abs((N!=null?N:0)-(D!=null?D:0))===0&&D===0&&C.setSelectionRange(C.value.length,C.value.length);}));},[R,e.comboboxState,g]),m$k(([n],[F])=>{if(n===0&&F===1){if(f.current)return;let A=e.inputRef.current;if(!A)return;let h=A.value,{selectionStart:C,selectionEnd:D,selectionDirection:N}=A;A.value="",A.value=h,N!==null?A.setSelectionRange(C,D,N):A.setSelectionRange(C,D);}},[e.comboboxState]);let s=React$1.useRef(!1),I=o$g(()=>{s.current=!0;}),V=o$g(()=>{v.nextFrame(()=>{s.current=!1;});}),_=o$g(n=>{switch(f.current=!0,n.key){case o$b.Enter:if(f.current=!1,e.comboboxState!==0||s.current)return;if(n.preventDefault(),n.stopPropagation(),e.activeOptionIndex===null){l.closeCombobox();return}l.selectActiveOption(),e.mode===0&&l.closeCombobox();break;case o$b.ArrowDown:return f.current=!1,n.preventDefault(),n.stopPropagation(),u$b(e.comboboxState,{[0]:()=>l.goToOption(c$g.Next),[1]:()=>l.openCombobox()});case o$b.ArrowUp:return f.current=!1,n.preventDefault(),n.stopPropagation(),u$b(e.comboboxState,{[0]:()=>l.goToOption(c$g.Previous),[1]:()=>{l.openCombobox(),v.nextFrame(()=>{e.value||l.goToOption(c$g.Last);});}});case o$b.Home:if(n.shiftKey)break;return f.current=!1,n.preventDefault(),n.stopPropagation(),l.goToOption(c$g.First);case o$b.PageUp:return f.current=!1,n.preventDefault(),n.stopPropagation(),l.goToOption(c$g.First);case o$b.End:if(n.shiftKey)break;return f.current=!1,n.preventDefault(),n.stopPropagation(),l.goToOption(c$g.Last);case o$b.PageDown:return f.current=!1,n.preventDefault(),n.stopPropagation(),l.goToOption(c$g.Last);case o$b.Escape:return f.current=!1,e.comboboxState!==0?void 0:(n.preventDefault(),e.optionsRef.current&&!e.optionsPropsRef.current.static&&n.stopPropagation(),e.nullable&&e.mode===0&&e.value===null&&S(),l.closeCombobox());case o$b.Tab:if(f.current=!1,e.comboboxState!==0)return;e.mode===0&&e.activationTrigger!==1&&l.selectActiveOption(),l.closeCombobox();break}}),E=o$g(n=>{i==null||i(n),e.nullable&&e.mode===0&&n.target.value===""&&S(),l.openCombobox();}),k=o$g(n=>{var A,h,C;let F=(A=n.relatedTarget)!=null?A:t$8.find(D=>D!==n.currentTarget);if(f.current=!1,!((h=e.optionsRef.current)!=null&&h.contains(F))&&!((C=e.buttonRef.current)!=null&&C.contains(F))&&e.comboboxState===0)return n.preventDefault(),e.mode===0&&(e.nullable&&e.value===null?S():e.activationTrigger!==1&&l.selectActiveOption()),l.closeCombobox()}),J=o$g(n=>{var A,h,C;let F=(A=n.relatedTarget)!=null?A:t$8.find(D=>D!==n.currentTarget);(h=e.buttonRef.current)!=null&&h.contains(F)||(C=e.optionsRef.current)!=null&&C.contains(F)||e.disabled||e.immediate&&e.comboboxState!==0&&(l.openCombobox(),v.nextFrame(()=>{l.setActivationTrigger(1);}));}),K=i$h(()=>{if(e.labelId)return [e.labelId].join(" ")},[e.labelId]),z=React$1.useMemo(()=>({open:e.comboboxState===0,disabled:e.disabled}),[e]),te={ref:T,id:a,role:"combobox",type:p,"aria-controls":(X=e.optionsRef.current)==null?void 0:X.id,"aria-expanded":e.comboboxState===0,"aria-activedescendant":e.activeOptionIndex===null?void 0:e.virtual?(x=e.options.find(n=>{var F;return !((F=e.virtual)!=null&&F.disabled(n.dataRef.current.value))&&e.compare(n.dataRef.current.value,e.virtual.options[e.activeOptionIndex])}))==null?void 0:x.id:(O=e.options[e.activeOptionIndex])==null?void 0:O.id,"aria-labelledby":K,"aria-autocomplete":"list",defaultValue:(oe=(L=t.defaultValue)!=null?L:e.defaultValue!==void 0?u==null?void 0:u(e.defaultValue):null)!=null?oe:e.defaultValue,disabled:e.disabled,onCompositionStart:I,onCompositionEnd:V,onKeyDown:_,onChange:E,onFocus:J,onBlur:k};return C$1({ourProps:te,theirProps:c,slot:z,defaultTag:nt$1,name:"Combobox.Input"})}let at="button";function lt$1(t,r){var S;let o=j$2("Combobox.Button"),a=ee$3("Combobox.Button"),i=y$3(o.buttonRef,r),u=I$6(),{id:p=`headlessui-combobox-button-${u}`,...c}=t,e=p$8(),l=o$g(R=>{switch(R.key){case o$b.ArrowDown:return R.preventDefault(),R.stopPropagation(),o.comboboxState===1&&a.openCombobox(),e.nextFrame(()=>{var s;return (s=o.inputRef.current)==null?void 0:s.focus({preventScroll:!0})});case o$b.ArrowUp:return R.preventDefault(),R.stopPropagation(),o.comboboxState===1&&(a.openCombobox(),e.nextFrame(()=>{o.value||a.goToOption(c$g.Last);})),e.nextFrame(()=>{var s;return (s=o.inputRef.current)==null?void 0:s.focus({preventScroll:!0})});case o$b.Escape:return o.comboboxState!==0?void 0:(R.preventDefault(),o.optionsRef.current&&!o.optionsPropsRef.current.static&&R.stopPropagation(),a.closeCombobox(),e.nextFrame(()=>{var s;return (s=o.inputRef.current)==null?void 0:s.focus({preventScroll:!0})}));default:return}}),T=o$g(R=>{if(r$g(R.currentTarget))return R.preventDefault();o.comboboxState===0?a.closeCombobox():(R.preventDefault(),a.openCombobox()),e.nextFrame(()=>{var s;return (s=o.inputRef.current)==null?void 0:s.focus({preventScroll:!0})});}),g=i$h(()=>{if(o.labelId)return [o.labelId,p].join(" ")},[o.labelId,p]),f=React$1.useMemo(()=>({open:o.comboboxState===0,disabled:o.disabled,value:o.value}),[o]),v={ref:i,id:p,type:T$1(t,o.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(S=o.optionsRef.current)==null?void 0:S.id,"aria-expanded":o.comboboxState===0,"aria-labelledby":g,disabled:o.disabled,onClick:T,onKeyDown:l};return C$1({ourProps:v,theirProps:c,slot:f,defaultTag:at,name:"Combobox.Button"})}let it$1="label";function ut(t,r){let o=I$6(),{id:a=`headlessui-combobox-label-${o}`,...i}=t,u=j$2("Combobox.Label"),p=ee$3("Combobox.Label"),c=y$3(u.labelRef,r);l$i(()=>p.registerLabel(a),[a]);let e=o$g(()=>{var g;return (g=u.inputRef.current)==null?void 0:g.focus({preventScroll:!0})}),l=React$1.useMemo(()=>({open:u.comboboxState===0,disabled:u.disabled}),[u]);return C$1({ourProps:{ref:c,id:a,onClick:e},theirProps:i,slot:l,defaultTag:it$1,name:"Combobox.Label"})}let pt$1="ul",st=O.RenderStrategy|O.Static;function dt(t,r){let o=I$6(),{id:a=`headlessui-combobox-options-${o}`,hold:i=!1,...u}=t,p=j$2("Combobox.Options"),c=y$3(p.optionsRef,r),e=u$8(),l=(()=>e!==null?(e&d$b.Open)===d$b.Open:p.comboboxState===0)();l$i(()=>{var v;p.optionsPropsRef.current.static=(v=t.static)!=null?v:!1;},[p.optionsPropsRef,t.static]),l$i(()=>{p.optionsPropsRef.current.hold=i;},[p.optionsPropsRef,i]),F$5({container:p.optionsRef.current,enabled:p.comboboxState===0,accept(v){return v.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:v.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(v){v.setAttribute("role","none");}});let T=i$h(()=>{var v,S;return (S=p.labelId)!=null?S:(v=p.buttonRef.current)==null?void 0:v.id},[p.labelId,p.buttonRef.current]),g=React$1.useMemo(()=>({open:p.comboboxState===0,option:void 0}),[p]),f={"aria-labelledby":T,role:"listbox","aria-multiselectable":p.mode===1?!0:void 0,id:a,ref:c};return p.virtual&&p.comboboxState===0&&Object.assign(u,{children:React$1.createElement(Ze$4,null,u.children)}),C$1({ourProps:f,theirProps:u,slot:g,defaultTag:pt$1,features:st,visible:l,name:"Combobox.Options"})}let bt="li";function ct(t,r){var X;let o=I$6(),{id:a=`headlessui-combobox-option-${o}`,disabled:i=!1,value:u,order:p=null,...c}=t,e=j$2("Combobox.Option"),l=ee$3("Combobox.Option"),T=e.virtual?e.activeOptionIndex===e.calculateIndex(u):e.activeOptionIndex===null?!1:((X=e.options[e.activeOptionIndex])==null?void 0:X.id)===a,g=e.isSelected(u),f=React$1.useRef(null),v=s$l({disabled:i,value:u,domRef:f,order:p}),S=React$1.useContext(Ce),R=y$3(r,f,S?S.measureElement:null),s=o$g(()=>l.onChange(u));l$i(()=>l.registerOption(a,v),[v,a]);let I=React$1.useRef(!(e.virtual||e.__demoMode));l$i(()=>{if(!e.virtual||!e.__demoMode)return;let x=o$f();return x.requestAnimationFrame(()=>{I.current=!0;}),x.dispose},[e.virtual,e.__demoMode]),l$i(()=>{if(!I.current||e.comboboxState!==0||!T||e.activationTrigger===0)return;let x=o$f();return x.requestAnimationFrame(()=>{var O,L;(L=(O=f.current)==null?void 0:O.scrollIntoView)==null||L.call(O,{block:"nearest"});}),x.dispose},[f,T,e.comboboxState,e.activationTrigger,e.activeOptionIndex]);let V=o$g(x=>{var O;if(i||(O=e.virtual)!=null&&O.disabled(u))return x.preventDefault();s(),n$g()||requestAnimationFrame(()=>{var L;return (L=e.inputRef.current)==null?void 0:L.focus({preventScroll:!0})}),e.mode===0&&requestAnimationFrame(()=>l.closeCombobox());}),_=o$g(()=>{var O;if(i||(O=e.virtual)!=null&&O.disabled(u))return l.goToOption(c$g.Nothing);let x=e.calculateIndex(u);l.goToOption(c$g.Specific,x);}),E=u$9(),k=o$g(x=>E.update(x)),J=o$g(x=>{var L;if(!E.wasMoved(x)||i||(L=e.virtual)!=null&&L.disabled(u)||T)return;let O=e.calculateIndex(u);l.goToOption(c$g.Specific,O,0);}),K=o$g(x=>{var O;E.wasMoved(x)&&(i||(O=e.virtual)!=null&&O.disabled(u)||T&&(e.optionsPropsRef.current.hold||l.goToOption(c$g.Nothing)));}),z=React$1.useMemo(()=>({active:T,selected:g,disabled:i}),[T,g,i]);return C$1({ourProps:{id:a,ref:R,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":g,disabled:void 0,onClick:V,onFocus:_,onPointerEnter:k,onMouseEnter:k,onPointerMove:J,onMouseMove:J,onPointerLeave:K,onMouseLeave:K},theirProps:c,slot:z,defaultTag:bt,name:"Combobox.Option"})}let ft=U$2(ot$2),mt$1=U$2(lt$1),Tt=U$2(rt$2),xt=U$2(ut),gt=U$2(dt),vt=U$2(ct),qt=Object.assign(ft,{Input:Tt,Button:mt$1,Label:xt,Options:gt,Option:vt});
74511
+ var $e$4=(o=>(o[o.Open=0]="Open",o[o.Closed=1]="Closed",o))($e$4||{}),qe$4=(o=>(o[o.Single=0]="Single",o[o.Multi=1]="Multi",o))(qe$4||{}),ze$4=(a=>(a[a.Pointer=0]="Pointer",a[a.Focus=1]="Focus",a[a.Other=2]="Other",a))(ze$4||{}),Ye$3=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e[e.SetActivationTrigger=6]="SetActivationTrigger",e[e.UpdateVirtualOptions=7]="UpdateVirtualOptions",e))(Ye$3||{});function de$2(t,r=o=>o){let o=t.activeOptionIndex!==null?t.options[t.activeOptionIndex]:null,a=r(t.options.slice()),i=a.length>0&&a[0].dataRef.current.order!==null?a.sort((p,c)=>p.dataRef.current.order-c.dataRef.current.order):I$5(a,p=>p.dataRef.current.domRef.current),u=o?i.indexOf(o):null;return u===-1&&(u=null),{options:i,activeOptionIndex:u}}let Qe$4={[1](t){var r;return (r=t.dataRef.current)!=null&&r.disabled||t.comboboxState===1?t:{...t,activeOptionIndex:null,comboboxState:1}},[0](t){var r,o;if((r=t.dataRef.current)!=null&&r.disabled||t.comboboxState===0)return t;if((o=t.dataRef.current)!=null&&o.value){let a=t.dataRef.current.calculateIndex(t.dataRef.current.value);if(a!==-1)return {...t,activeOptionIndex:a,comboboxState:0}}return {...t,comboboxState:0}},[2](t,r){var u,p,c,e,l;if((u=t.dataRef.current)!=null&&u.disabled||(p=t.dataRef.current)!=null&&p.optionsRef.current&&!((c=t.dataRef.current)!=null&&c.optionsPropsRef.current.static)&&t.comboboxState===1)return t;if(t.virtual){let T=r.focus===c$g.Specific?r.idx:f$8(r,{resolveItems:()=>t.virtual.options,resolveActiveIndex:()=>{var f,v;return (v=(f=t.activeOptionIndex)!=null?f:t.virtual.options.findIndex(S=>!t.virtual.disabled(S)))!=null?v:null},resolveDisabled:t.virtual.disabled,resolveId(){throw new Error("Function not implemented.")}}),g=(e=r.trigger)!=null?e:2;return t.activeOptionIndex===T&&t.activationTrigger===g?t:{...t,activeOptionIndex:T,activationTrigger:g}}let o=de$2(t);if(o.activeOptionIndex===null){let T=o.options.findIndex(g=>!g.dataRef.current.disabled);T!==-1&&(o.activeOptionIndex=T);}let a=r.focus===c$g.Specific?r.idx:f$8(r,{resolveItems:()=>o.options,resolveActiveIndex:()=>o.activeOptionIndex,resolveId:T=>T.id,resolveDisabled:T=>T.dataRef.current.disabled}),i=(l=r.trigger)!=null?l:2;return t.activeOptionIndex===a&&t.activationTrigger===i?t:{...t,...o,activeOptionIndex:a,activationTrigger:i}},[3]:(t,r)=>{var u,p,c;if((u=t.dataRef.current)!=null&&u.virtual)return {...t,options:[...t.options,r.payload]};let o=r.payload,a=de$2(t,e=>(e.push(o),e));t.activeOptionIndex===null&&(p=t.dataRef.current)!=null&&p.isSelected(r.payload.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(o));let i={...t,...a,activationTrigger:2};return (c=t.dataRef.current)!=null&&c.__demoMode&&t.dataRef.current.value===void 0&&(i.activeOptionIndex=0),i},[4]:(t,r)=>{var a;if((a=t.dataRef.current)!=null&&a.virtual)return {...t,options:t.options.filter(i=>i.id!==r.id)};let o=de$2(t,i=>{let u=i.findIndex(p=>p.id===r.id);return u!==-1&&i.splice(u,1),i});return {...t,...o,activationTrigger:2}},[5]:(t,r)=>t.labelId===r.id?t:{...t,labelId:r.id},[6]:(t,r)=>t.activationTrigger===r.trigger?t:{...t,activationTrigger:r.trigger},[7]:(t,r)=>{var a;if(((a=t.virtual)==null?void 0:a.options)===r.options)return t;let o=t.activeOptionIndex;if(t.activeOptionIndex!==null){let i=r.options.indexOf(t.virtual.options[t.activeOptionIndex]);i!==-1?o=i:o=null;}return {...t,activeOptionIndex:o,virtual:Object.assign({},t.virtual,{options:r.options})}}},be$1=React$1.createContext(null);be$1.displayName="ComboboxActionsContext";function ee$3(t){let r=React$1.useContext(be$1);if(r===null){let o=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,ee$3),o}return r}let Ce=React$1.createContext(null);function Ze$4(t){var c;let r=j$2("VirtualProvider"),[o,a]=React$1.useMemo(()=>{let e=r.optionsRef.current;if(!e)return [0,0];let l=window.getComputedStyle(e);return [parseFloat(l.paddingBlockStart||l.paddingTop),parseFloat(l.paddingBlockEnd||l.paddingBottom)]},[r.optionsRef.current]),i=useVirtualizer({scrollPaddingStart:o,scrollPaddingEnd:a,count:r.virtual.options.length,estimateSize(){return 40},getScrollElement(){var e;return (e=r.optionsRef.current)!=null?e:null},overscan:12}),[u,p]=React$1.useState(0);return l$i(()=>{p(e=>e+1);},[(c=r.virtual)==null?void 0:c.options]),React$1.createElement(Ce.Provider,{value:i},React$1.createElement("div",{style:{position:"relative",width:"100%",height:`${i.getTotalSize()}px`},ref:e=>{if(e){if(typeof process!="undefined"&&process.env.JEST_WORKER_ID!==void 0||r.activationTrigger===0)return;r.activeOptionIndex!==null&&r.virtual.options.length>r.activeOptionIndex&&i.scrollToIndex(r.activeOptionIndex);}}},i.getVirtualItems().map(e=>{var l;return React$1.createElement(React$1.Fragment,{key:e.key},React$1.cloneElement((l=t.children)==null?void 0:l.call(t,{option:r.virtual.options[e.index],open:r.comboboxState===0}),{key:`${u}-${e.key}`,"data-index":e.index,"aria-setsize":r.virtual.options.length,"aria-posinset":e.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${e.start}px)`,overflowAnchor:"none"}}))})))}let ce$1=React$1.createContext(null);ce$1.displayName="ComboboxDataContext";function j$2(t){let r=React$1.useContext(ce$1);if(r===null){let o=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,j$2),o}return r}function et$3(t,r){return u$b(r.type,Qe$4,t,r)}let tt$3=React$1.Fragment;function ot$3(t,r){let{value:o,defaultValue:a,onChange:i,form:u,name:p,by:c=null,disabled:e=!1,__demoMode:l=!1,nullable:T=!1,multiple:g=!1,immediate:f=!1,virtual:v=null,...S}=t,R=!1,s=null,[I=g?[]:void 0,V]=T$3(o,i,a),[_,E]=React$1.useReducer(et$3,{dataRef:React$1.createRef(),comboboxState:l?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),k=React$1.useRef(!1),J=React$1.useRef({static:!1,hold:!1}),K=React$1.useRef(null),z=React$1.useRef(null),te=React$1.useRef(null),X=React$1.useRef(null),x=o$g(typeof c=="string"?(d,b)=>{let P=c;return (d==null?void 0:d[P])===(b==null?void 0:b[P])}:c!=null?c:(d,b)=>d===b),O=o$g(d=>_.options.findIndex(b=>x(b.dataRef.current.value,d))),L=React$1.useCallback(d=>u$b(n.mode,{[1]:()=>I.some(b=>x(b,d)),[0]:()=>x(I,d)}),[I]),oe=o$g(d=>_.activeOptionIndex===O(d)),n=React$1.useMemo(()=>({..._,immediate:R,optionsPropsRef:J,labelRef:K,inputRef:z,buttonRef:te,optionsRef:X,value:I,defaultValue:a,disabled:e,mode:g?1:0,virtual:_.virtual,get activeOptionIndex(){if(k.current&&_.activeOptionIndex===null&&(_.options.length>0)){let d=_.options.findIndex(b=>!b.dataRef.current.disabled);if(d!==-1)return d}return _.activeOptionIndex},calculateIndex:O,compare:x,isSelected:L,isActive:oe,nullable:T,__demoMode:l}),[I,a,e,g,T,l,_,s]);l$i(()=>{},[s,void 0]),l$i(()=>{_.dataRef.current=n;},[n]),y$4([n.buttonRef,n.inputRef,n.optionsRef],()=>le.closeCombobox(),n.comboboxState===0);let F=React$1.useMemo(()=>{var d,b,P;return {open:n.comboboxState===0,disabled:e,activeIndex:n.activeOptionIndex,activeOption:n.activeOptionIndex===null?null:n.virtual?n.virtual.options[(d=n.activeOptionIndex)!=null?d:0]:(P=(b=n.options[n.activeOptionIndex])==null?void 0:b.dataRef.current.value)!=null?P:null,value:I}},[n,e,I]),A=o$g(()=>{if(n.activeOptionIndex!==null){if(n.virtual)ae(n.virtual.options[n.activeOptionIndex]);else {let{dataRef:d}=n.options[n.activeOptionIndex];ae(d.current.value);}le.goToOption(c$g.Specific,n.activeOptionIndex);}}),h=o$g(()=>{E({type:0}),k.current=!0;}),C=o$g(()=>{E({type:1}),k.current=!1;}),D=o$g((d,b,P)=>(k.current=!1,d===c$g.Specific?E({type:2,focus:c$g.Specific,idx:b,trigger:P}):E({type:2,focus:d,trigger:P}))),N=o$g((d,b)=>(E({type:3,payload:{id:d,dataRef:b}}),()=>{n.isActive(b.current.value)&&(k.current=!0),E({type:4,id:d});})),ye=o$g(d=>(E({type:5,id:d}),()=>E({type:5,id:null}))),ae=o$g(d=>u$b(n.mode,{[0](){return V==null?void 0:V(d)},[1](){let b=n.value.slice(),P=b.findIndex(G=>x(G,d));return P===-1?b.push(d):b.splice(P,1),V==null?void 0:V(b)}})),Re=o$g(d=>{E({type:6,trigger:d});}),le=React$1.useMemo(()=>({onChange:ae,registerOption:N,registerLabel:ye,goToOption:D,closeCombobox:C,openCombobox:h,setActivationTrigger:Re,selectActiveOption:A}),[]),Ae=r===null?{}:{ref:r},ne=React$1.useRef(null),Se=p$8();return React$1.useEffect(()=>{ne.current&&a!==void 0&&Se.addEventListener(ne.current,"reset",()=>{V==null||V(a);});},[ne,V]),React$1.createElement(be$1.Provider,{value:le},React$1.createElement(ce$1.Provider,{value:n},React$1.createElement(s$h,{value:u$b(n.comboboxState,{[0]:d$b.Open,[1]:d$b.Closed})},p!=null&&I!=null&&e$2({[p]:I}).map(([d,b],P)=>React$1.createElement(f$9,{features:s$i.Hidden,ref:P===0?G=>{var Y;ne.current=(Y=G==null?void 0:G.closest("form"))!=null?Y:null;}:void 0,...x$1({key:d,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:u,name:d,value:b})})),C$1({ourProps:Ae,theirProps:S,slot:F,defaultTag:tt$3,name:"Combobox"}))))}let nt$1="input";function rt$1(t,r){var X,x,O,L,oe;let o=I$6(),{id:a=`headlessui-combobox-input-${o}`,onChange:i,displayValue:u,type:p="text",...c}=t,e=j$2("Combobox.Input"),l=ee$3("Combobox.Input"),T=y$3(e.inputRef,r),g=n$f(e.inputRef),f=React$1.useRef(!1),v=p$8(),S=o$g(()=>{l.onChange(null),e.optionsRef.current&&(e.optionsRef.current.scrollTop=0),l.goToOption(c$g.Nothing);}),R=function(){var n;return typeof u=="function"&&e.value!==void 0?(n=u(e.value))!=null?n:"":typeof e.value=="string"?e.value:""}();m$k(([n,F],[A,h])=>{if(f.current)return;let C=e.inputRef.current;C&&((h===0&&F===1||n!==A)&&(C.value=n),requestAnimationFrame(()=>{if(f.current||!C||(g==null?void 0:g.activeElement)!==C)return;let{selectionStart:D,selectionEnd:N}=C;Math.abs((N!=null?N:0)-(D!=null?D:0))===0&&D===0&&C.setSelectionRange(C.value.length,C.value.length);}));},[R,e.comboboxState,g]),m$k(([n],[F])=>{if(n===0&&F===1){if(f.current)return;let A=e.inputRef.current;if(!A)return;let h=A.value,{selectionStart:C,selectionEnd:D,selectionDirection:N}=A;A.value="",A.value=h,N!==null?A.setSelectionRange(C,D,N):A.setSelectionRange(C,D);}},[e.comboboxState]);let s=React$1.useRef(!1),I=o$g(()=>{s.current=!0;}),V=o$g(()=>{v.nextFrame(()=>{s.current=!1;});}),_=o$g(n=>{switch(f.current=!0,n.key){case o$b.Enter:if(f.current=!1,e.comboboxState!==0||s.current)return;if(n.preventDefault(),n.stopPropagation(),e.activeOptionIndex===null){l.closeCombobox();return}l.selectActiveOption(),e.mode===0&&l.closeCombobox();break;case o$b.ArrowDown:return f.current=!1,n.preventDefault(),n.stopPropagation(),u$b(e.comboboxState,{[0]:()=>l.goToOption(c$g.Next),[1]:()=>l.openCombobox()});case o$b.ArrowUp:return f.current=!1,n.preventDefault(),n.stopPropagation(),u$b(e.comboboxState,{[0]:()=>l.goToOption(c$g.Previous),[1]:()=>{l.openCombobox(),v.nextFrame(()=>{e.value||l.goToOption(c$g.Last);});}});case o$b.Home:if(n.shiftKey)break;return f.current=!1,n.preventDefault(),n.stopPropagation(),l.goToOption(c$g.First);case o$b.PageUp:return f.current=!1,n.preventDefault(),n.stopPropagation(),l.goToOption(c$g.First);case o$b.End:if(n.shiftKey)break;return f.current=!1,n.preventDefault(),n.stopPropagation(),l.goToOption(c$g.Last);case o$b.PageDown:return f.current=!1,n.preventDefault(),n.stopPropagation(),l.goToOption(c$g.Last);case o$b.Escape:return f.current=!1,e.comboboxState!==0?void 0:(n.preventDefault(),e.optionsRef.current&&!e.optionsPropsRef.current.static&&n.stopPropagation(),e.nullable&&e.mode===0&&e.value===null&&S(),l.closeCombobox());case o$b.Tab:if(f.current=!1,e.comboboxState!==0)return;e.mode===0&&e.activationTrigger!==1&&l.selectActiveOption(),l.closeCombobox();break}}),E=o$g(n=>{i==null||i(n),e.nullable&&e.mode===0&&n.target.value===""&&S(),l.openCombobox();}),k=o$g(n=>{var A,h,C;let F=(A=n.relatedTarget)!=null?A:t$8.find(D=>D!==n.currentTarget);if(f.current=!1,!((h=e.optionsRef.current)!=null&&h.contains(F))&&!((C=e.buttonRef.current)!=null&&C.contains(F))&&e.comboboxState===0)return n.preventDefault(),e.mode===0&&(e.nullable&&e.value===null?S():e.activationTrigger!==1&&l.selectActiveOption()),l.closeCombobox()}),J=o$g(n=>{var A,h,C;let F=(A=n.relatedTarget)!=null?A:t$8.find(D=>D!==n.currentTarget);(h=e.buttonRef.current)!=null&&h.contains(F)||(C=e.optionsRef.current)!=null&&C.contains(F)||e.disabled||e.immediate&&e.comboboxState!==0&&(l.openCombobox(),v.nextFrame(()=>{l.setActivationTrigger(1);}));}),K=i$h(()=>{if(e.labelId)return [e.labelId].join(" ")},[e.labelId]),z=React$1.useMemo(()=>({open:e.comboboxState===0,disabled:e.disabled}),[e]),te={ref:T,id:a,role:"combobox",type:p,"aria-controls":(X=e.optionsRef.current)==null?void 0:X.id,"aria-expanded":e.comboboxState===0,"aria-activedescendant":e.activeOptionIndex===null?void 0:e.virtual?(x=e.options.find(n=>{var F;return !((F=e.virtual)!=null&&F.disabled(n.dataRef.current.value))&&e.compare(n.dataRef.current.value,e.virtual.options[e.activeOptionIndex])}))==null?void 0:x.id:(O=e.options[e.activeOptionIndex])==null?void 0:O.id,"aria-labelledby":K,"aria-autocomplete":"list",defaultValue:(oe=(L=t.defaultValue)!=null?L:e.defaultValue!==void 0?u==null?void 0:u(e.defaultValue):null)!=null?oe:e.defaultValue,disabled:e.disabled,onCompositionStart:I,onCompositionEnd:V,onKeyDown:_,onChange:E,onFocus:J,onBlur:k};return C$1({ourProps:te,theirProps:c,slot:z,defaultTag:nt$1,name:"Combobox.Input"})}let at="button";function lt(t,r){var S;let o=j$2("Combobox.Button"),a=ee$3("Combobox.Button"),i=y$3(o.buttonRef,r),u=I$6(),{id:p=`headlessui-combobox-button-${u}`,...c}=t,e=p$8(),l=o$g(R=>{switch(R.key){case o$b.ArrowDown:return R.preventDefault(),R.stopPropagation(),o.comboboxState===1&&a.openCombobox(),e.nextFrame(()=>{var s;return (s=o.inputRef.current)==null?void 0:s.focus({preventScroll:!0})});case o$b.ArrowUp:return R.preventDefault(),R.stopPropagation(),o.comboboxState===1&&(a.openCombobox(),e.nextFrame(()=>{o.value||a.goToOption(c$g.Last);})),e.nextFrame(()=>{var s;return (s=o.inputRef.current)==null?void 0:s.focus({preventScroll:!0})});case o$b.Escape:return o.comboboxState!==0?void 0:(R.preventDefault(),o.optionsRef.current&&!o.optionsPropsRef.current.static&&R.stopPropagation(),a.closeCombobox(),e.nextFrame(()=>{var s;return (s=o.inputRef.current)==null?void 0:s.focus({preventScroll:!0})}));default:return}}),T=o$g(R=>{if(r$g(R.currentTarget))return R.preventDefault();o.comboboxState===0?a.closeCombobox():(R.preventDefault(),a.openCombobox()),e.nextFrame(()=>{var s;return (s=o.inputRef.current)==null?void 0:s.focus({preventScroll:!0})});}),g=i$h(()=>{if(o.labelId)return [o.labelId,p].join(" ")},[o.labelId,p]),f=React$1.useMemo(()=>({open:o.comboboxState===0,disabled:o.disabled,value:o.value}),[o]),v={ref:i,id:p,type:T$1(t,o.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(S=o.optionsRef.current)==null?void 0:S.id,"aria-expanded":o.comboboxState===0,"aria-labelledby":g,disabled:o.disabled,onClick:T,onKeyDown:l};return C$1({ourProps:v,theirProps:c,slot:f,defaultTag:at,name:"Combobox.Button"})}let it$1="label";function ut(t,r){let o=I$6(),{id:a=`headlessui-combobox-label-${o}`,...i}=t,u=j$2("Combobox.Label"),p=ee$3("Combobox.Label"),c=y$3(u.labelRef,r);l$i(()=>p.registerLabel(a),[a]);let e=o$g(()=>{var g;return (g=u.inputRef.current)==null?void 0:g.focus({preventScroll:!0})}),l=React$1.useMemo(()=>({open:u.comboboxState===0,disabled:u.disabled}),[u]);return C$1({ourProps:{ref:c,id:a,onClick:e},theirProps:i,slot:l,defaultTag:it$1,name:"Combobox.Label"})}let pt="ul",st=O.RenderStrategy|O.Static;function dt(t,r){let o=I$6(),{id:a=`headlessui-combobox-options-${o}`,hold:i=!1,...u}=t,p=j$2("Combobox.Options"),c=y$3(p.optionsRef,r),e=u$8(),l=(()=>e!==null?(e&d$b.Open)===d$b.Open:p.comboboxState===0)();l$i(()=>{var v;p.optionsPropsRef.current.static=(v=t.static)!=null?v:!1;},[p.optionsPropsRef,t.static]),l$i(()=>{p.optionsPropsRef.current.hold=i;},[p.optionsPropsRef,i]),F$5({container:p.optionsRef.current,enabled:p.comboboxState===0,accept(v){return v.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:v.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(v){v.setAttribute("role","none");}});let T=i$h(()=>{var v,S;return (S=p.labelId)!=null?S:(v=p.buttonRef.current)==null?void 0:v.id},[p.labelId,p.buttonRef.current]),g=React$1.useMemo(()=>({open:p.comboboxState===0,option:void 0}),[p]),f={"aria-labelledby":T,role:"listbox","aria-multiselectable":p.mode===1?!0:void 0,id:a,ref:c};return p.virtual&&p.comboboxState===0&&Object.assign(u,{children:React$1.createElement(Ze$4,null,u.children)}),C$1({ourProps:f,theirProps:u,slot:g,defaultTag:pt,features:st,visible:l,name:"Combobox.Options"})}let bt="li";function ct$1(t,r){var X;let o=I$6(),{id:a=`headlessui-combobox-option-${o}`,disabled:i=!1,value:u,order:p=null,...c}=t,e=j$2("Combobox.Option"),l=ee$3("Combobox.Option"),T=e.virtual?e.activeOptionIndex===e.calculateIndex(u):e.activeOptionIndex===null?!1:((X=e.options[e.activeOptionIndex])==null?void 0:X.id)===a,g=e.isSelected(u),f=React$1.useRef(null),v=s$l({disabled:i,value:u,domRef:f,order:p}),S=React$1.useContext(Ce),R=y$3(r,f,S?S.measureElement:null),s=o$g(()=>l.onChange(u));l$i(()=>l.registerOption(a,v),[v,a]);let I=React$1.useRef(!(e.virtual||e.__demoMode));l$i(()=>{if(!e.virtual||!e.__demoMode)return;let x=o$f();return x.requestAnimationFrame(()=>{I.current=!0;}),x.dispose},[e.virtual,e.__demoMode]),l$i(()=>{if(!I.current||e.comboboxState!==0||!T||e.activationTrigger===0)return;let x=o$f();return x.requestAnimationFrame(()=>{var O,L;(L=(O=f.current)==null?void 0:O.scrollIntoView)==null||L.call(O,{block:"nearest"});}),x.dispose},[f,T,e.comboboxState,e.activationTrigger,e.activeOptionIndex]);let V=o$g(x=>{var O;if(i||(O=e.virtual)!=null&&O.disabled(u))return x.preventDefault();s(),n$g()||requestAnimationFrame(()=>{var L;return (L=e.inputRef.current)==null?void 0:L.focus({preventScroll:!0})}),e.mode===0&&requestAnimationFrame(()=>l.closeCombobox());}),_=o$g(()=>{var O;if(i||(O=e.virtual)!=null&&O.disabled(u))return l.goToOption(c$g.Nothing);let x=e.calculateIndex(u);l.goToOption(c$g.Specific,x);}),E=u$9(),k=o$g(x=>E.update(x)),J=o$g(x=>{var L;if(!E.wasMoved(x)||i||(L=e.virtual)!=null&&L.disabled(u)||T)return;let O=e.calculateIndex(u);l.goToOption(c$g.Specific,O,0);}),K=o$g(x=>{var O;E.wasMoved(x)&&(i||(O=e.virtual)!=null&&O.disabled(u)||T&&(e.optionsPropsRef.current.hold||l.goToOption(c$g.Nothing)));}),z=React$1.useMemo(()=>({active:T,selected:g,disabled:i}),[T,g,i]);return C$1({ourProps:{id:a,ref:R,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":g,disabled:void 0,onClick:V,onFocus:_,onPointerEnter:k,onMouseEnter:k,onPointerMove:J,onMouseMove:J,onPointerLeave:K,onMouseLeave:K},theirProps:c,slot:z,defaultTag:bt,name:"Combobox.Option"})}let ft$1=U$2(ot$3),mt$1=U$2(lt),Tt=U$2(rt$1),xt=U$2(ut),gt=U$2(dt),vt=U$2(ct$1),qt=Object.assign(ft$1,{Input:Tt,Button:mt$1,Label:xt,Options:gt,Option:vt});
74512
74512
 
74513
74513
  function E(n,e,a,t){let i=s$l(a);React$1.useEffect(()=>{n=n!=null?n:window;function r(o){i.current(o);}return n.addEventListener(e,r,t),()=>n.removeEventListener(e,r,t)},[n,e,t]);}
74514
74514
 
@@ -74552,19 +74552,19 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
74552
74552
 
74553
74553
  let d$8=React$1.createContext(null);function f$3(){let r=React$1.useContext(d$8);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$3),t}return r}function w$2(){let[r,t]=React$1.useState([]);return [r.length>0?r.join(" "):void 0,React$1.useMemo(()=>function(e){let i=o$g(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$1.useMemo(()=>({register:i,slot:e.slot,name:e.name,props:e.props}),[i,e.slot,e.name,e.props]);return React$1.createElement(d$8.Provider,{value:n},e.children)},[t])]}let I$2="p";function S$3(r,t){let a=I$6(),{id:e=`headlessui-description-${a}`,...i}=r,n=f$3(),s=y$3(t);l$i(()=>n.register(e),[e,n.register]);let o={ref:s,...n.props,id:e};return C$1({ourProps:o,theirProps:i,slot:n.slot||{},defaultTag:I$2,name:n.name||"Description"})}let h$7=U$2(S$3),G$1=Object.assign(h$7,{});
74554
74554
 
74555
- var Me=(r=>(r[r.Open=0]="Open",r[r.Closed=1]="Closed",r))(Me||{}),we$2=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(we$2||{});let He$3={[0](t,e){return t.titleId===e.id?t:{...t,titleId:e.id}}},I$1=React$1.createContext(null);I$1.displayName="DialogContext";function b$4(t){let e=React$1.useContext(I$1);if(e===null){let r=new Error(`<${t} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,b$4),r}return e}function Be$1(t,e,r=()=>[document.body]){p$4(t,e,i=>{var n;return {containers:[...(n=i.containers)!=null?n:[],r]}});}function Ge$2(t,e){return u$b(e.type,He$3,t,e)}let Ne$3="div",Ue$1=O.RenderStrategy|O.Static;function We$2(t,e){let r=I$6(),{id:i=`headlessui-dialog-${r}`,open:n,onClose:l,initialFocus:s,role:a="dialog",__demoMode:T=!1,...m}=t,[M,f]=React$1.useState(0),U=React$1.useRef(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(U.current||(U.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let E$1=u$8();n===void 0&&E$1!==null&&(n=(E$1&d$b.Open)===d$b.Open);let D=React$1.useRef(null),ee=y$3(D,e),g=n$f(D),W=t.hasOwnProperty("open")||E$1!==null,$=t.hasOwnProperty("onClose");if(!W&&!$)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!W)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!$)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof n!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n}`);if(typeof l!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${l}`);let p=n?0:1,[h,te]=React$1.useReducer(Ge$2,{titleId:null,descriptionId:null,panelRef:React$1.createRef()}),P=o$g(()=>l(!1)),Y=o$g(o=>te({type:0,id:o})),S=l$h()?T?!1:p===0:!1,x=M>1,j=React$1.useContext(I$1)!==null,[oe,re]=ee$2(),ne={get current(){var o;return (o=h.panelRef.current)!=null?o:D.current}},{resolveContainers:w,mainTreeNodeRef:L,MainTreeNode:le}=N({portals:oe,defaultContainers:[ne]}),ae=x?"parent":"leaf",J=E$1!==null?(E$1&d$b.Closing)===d$b.Closing:!1,ie=(()=>j||J?!1:S)(),se=React$1.useCallback(()=>{var o,c;return (c=Array.from((o=g==null?void 0:g.querySelectorAll("body > *"))!=null?o:[]).find(d=>d.id==="headlessui-portal-root"?!1:d.contains(L.current)&&d instanceof HTMLElement))!=null?c:null},[L]);b$6(se,ie);let pe=(()=>x?!0:S)(),de=React$1.useCallback(()=>{var o,c;return (c=Array.from((o=g==null?void 0:g.querySelectorAll("[data-headlessui-portal]"))!=null?o:[]).find(d=>d.contains(L.current)&&d instanceof HTMLElement))!=null?c:null},[L]);b$6(de,pe);let ue=(()=>!(!S||x))();y$4(w,P,ue);let fe=(()=>!(x||p!==0))();E(g==null?void 0:g.defaultView,"keydown",o=>{fe&&(o.defaultPrevented||o.key===o$b.Escape&&(o.preventDefault(),o.stopPropagation(),P()));});let ge=(()=>!(J||p!==0||j))();Be$1(g,ge,w),React$1.useEffect(()=>{if(p!==0||!D.current)return;let o=new ResizeObserver(c=>{for(let d of c){let F=d.target.getBoundingClientRect();F.x===0&&F.y===0&&F.width===0&&F.height===0&&P();}});return o.observe(D.current),()=>o.disconnect()},[p,D,P]);let[Te,ce]=w$2(),De=React$1.useMemo(()=>[{dialogState:p,close:P,setTitleId:Y},h],[p,h,P,Y]),X=React$1.useMemo(()=>({open:p===0}),[p]),me={ref:ee,id:i,role:a,"aria-modal":p===0?!0:void 0,"aria-labelledby":h.titleId,"aria-describedby":Te};return React$1.createElement(b$5,{type:"Dialog",enabled:p===0,element:D,onUpdate:o$g((o,c)=>{c==="Dialog"&&u$b(o,{[s$e.Add]:()=>f(d=>d+1),[s$e.Remove]:()=>f(d=>d-1)});})},React$1.createElement(l$f,{force:!0},React$1.createElement(te$2,null,React$1.createElement(I$1.Provider,{value:De},React$1.createElement(te$2.Group,{target:D},React$1.createElement(l$f,{force:!1},React$1.createElement(ce,{slot:X,name:"Dialog.Description"},React$1.createElement(de$1,{initialFocus:s,containers:w,features:S?u$b(ae,{parent:de$1.features.RestoreFocus,leaf:de$1.features.All&~de$1.features.FocusLock}):de$1.features.None},React$1.createElement(re,null,C$1({ourProps:me,theirProps:m,slot:X,defaultTag:Ne$3,features:Ue$1,visible:p===0,name:"Dialog"}))))))))),React$1.createElement(le,null))}let $e$4="div";function Ye$2(t,e){let r=I$6(),{id:i=`headlessui-dialog-overlay-${r}`,...n}=t,[{dialogState:l,close:s}]=b$4("Dialog.Overlay"),a=y$3(e),T=o$g(f=>{if(f.target===f.currentTarget){if(r$g(f.currentTarget))return f.preventDefault();f.preventDefault(),f.stopPropagation(),s();}}),m=React$1.useMemo(()=>({open:l===0}),[l]);return C$1({ourProps:{ref:a,id:i,"aria-hidden":!0,onClick:T},theirProps:n,slot:m,defaultTag:$e$4,name:"Dialog.Overlay"})}let je$2="div";function Je$3(t,e){let r=I$6(),{id:i=`headlessui-dialog-backdrop-${r}`,...n}=t,[{dialogState:l},s]=b$4("Dialog.Backdrop"),a=y$3(e);React$1.useEffect(()=>{if(s.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[s.panelRef]);let T=React$1.useMemo(()=>({open:l===0}),[l]);return React$1.createElement(l$f,{force:!0},React$1.createElement(te$2,null,C$1({ourProps:{ref:a,id:i,"aria-hidden":!0},theirProps:n,slot:T,defaultTag:je$2,name:"Dialog.Backdrop"})))}let Xe$2="div";function Ke$3(t,e){let r=I$6(),{id:i=`headlessui-dialog-panel-${r}`,...n}=t,[{dialogState:l},s]=b$4("Dialog.Panel"),a=y$3(e,s.panelRef),T=React$1.useMemo(()=>({open:l===0}),[l]),m=o$g(f=>{f.stopPropagation();});return C$1({ourProps:{ref:a,id:i,onClick:m},theirProps:n,slot:T,defaultTag:Xe$2,name:"Dialog.Panel"})}let Ve$2="h2";function qe$4(t,e){let r=I$6(),{id:i=`headlessui-dialog-title-${r}`,...n}=t,[{dialogState:l,setTitleId:s}]=b$4("Dialog.Title"),a=y$3(e);React$1.useEffect(()=>(s(i),()=>s(null)),[i,s]);let T=React$1.useMemo(()=>({open:l===0}),[l]);return C$1({ourProps:{ref:a,id:i},theirProps:n,slot:T,defaultTag:Ve$2,name:"Dialog.Title"})}let ze$2=U$2(We$2),Qe$3=U$2(Je$3),Ze$3=U$2(Ke$3),et$2=U$2(Ye$2),tt$2=U$2(qe$4),_t=Object.assign(ze$2,{Backdrop:Qe$3,Panel:Ze$3,Overlay:et$2,Title:tt$2,Description:G$1});
74555
+ var Me=(r=>(r[r.Open=0]="Open",r[r.Closed=1]="Closed",r))(Me||{}),we$2=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(we$2||{});let He$3={[0](t,e){return t.titleId===e.id?t:{...t,titleId:e.id}}},I$1=React$1.createContext(null);I$1.displayName="DialogContext";function b$4(t){let e=React$1.useContext(I$1);if(e===null){let r=new Error(`<${t} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,b$4),r}return e}function Be$1(t,e,r=()=>[document.body]){p$4(t,e,i=>{var n;return {containers:[...(n=i.containers)!=null?n:[],r]}});}function Ge$2(t,e){return u$b(e.type,He$3,t,e)}let Ne$3="div",Ue$1=O.RenderStrategy|O.Static;function We$2(t,e){let r=I$6(),{id:i=`headlessui-dialog-${r}`,open:n,onClose:l,initialFocus:s,role:a="dialog",__demoMode:T=!1,...m}=t,[M,f]=React$1.useState(0),U=React$1.useRef(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(U.current||(U.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let E$1=u$8();n===void 0&&E$1!==null&&(n=(E$1&d$b.Open)===d$b.Open);let D=React$1.useRef(null),ee=y$3(D,e),g=n$f(D),W=t.hasOwnProperty("open")||E$1!==null,$=t.hasOwnProperty("onClose");if(!W&&!$)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!W)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!$)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof n!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n}`);if(typeof l!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${l}`);let p=n?0:1,[h,te]=React$1.useReducer(Ge$2,{titleId:null,descriptionId:null,panelRef:React$1.createRef()}),P=o$g(()=>l(!1)),Y=o$g(o=>te({type:0,id:o})),S=l$h()?T?!1:p===0:!1,x=M>1,j=React$1.useContext(I$1)!==null,[oe,re]=ee$2(),ne={get current(){var o;return (o=h.panelRef.current)!=null?o:D.current}},{resolveContainers:w,mainTreeNodeRef:L,MainTreeNode:le}=N({portals:oe,defaultContainers:[ne]}),ae=x?"parent":"leaf",J=E$1!==null?(E$1&d$b.Closing)===d$b.Closing:!1,ie=(()=>j||J?!1:S)(),se=React$1.useCallback(()=>{var o,c;return (c=Array.from((o=g==null?void 0:g.querySelectorAll("body > *"))!=null?o:[]).find(d=>d.id==="headlessui-portal-root"?!1:d.contains(L.current)&&d instanceof HTMLElement))!=null?c:null},[L]);b$6(se,ie);let pe=(()=>x?!0:S)(),de=React$1.useCallback(()=>{var o,c;return (c=Array.from((o=g==null?void 0:g.querySelectorAll("[data-headlessui-portal]"))!=null?o:[]).find(d=>d.contains(L.current)&&d instanceof HTMLElement))!=null?c:null},[L]);b$6(de,pe);let ue=(()=>!(!S||x))();y$4(w,P,ue);let fe=(()=>!(x||p!==0))();E(g==null?void 0:g.defaultView,"keydown",o=>{fe&&(o.defaultPrevented||o.key===o$b.Escape&&(o.preventDefault(),o.stopPropagation(),P()));});let ge=(()=>!(J||p!==0||j))();Be$1(g,ge,w),React$1.useEffect(()=>{if(p!==0||!D.current)return;let o=new ResizeObserver(c=>{for(let d of c){let F=d.target.getBoundingClientRect();F.x===0&&F.y===0&&F.width===0&&F.height===0&&P();}});return o.observe(D.current),()=>o.disconnect()},[p,D,P]);let[Te,ce]=w$2(),De=React$1.useMemo(()=>[{dialogState:p,close:P,setTitleId:Y},h],[p,h,P,Y]),X=React$1.useMemo(()=>({open:p===0}),[p]),me={ref:ee,id:i,role:a,"aria-modal":p===0?!0:void 0,"aria-labelledby":h.titleId,"aria-describedby":Te};return React$1.createElement(b$5,{type:"Dialog",enabled:p===0,element:D,onUpdate:o$g((o,c)=>{c==="Dialog"&&u$b(o,{[s$e.Add]:()=>f(d=>d+1),[s$e.Remove]:()=>f(d=>d-1)});})},React$1.createElement(l$f,{force:!0},React$1.createElement(te$2,null,React$1.createElement(I$1.Provider,{value:De},React$1.createElement(te$2.Group,{target:D},React$1.createElement(l$f,{force:!1},React$1.createElement(ce,{slot:X,name:"Dialog.Description"},React$1.createElement(de$1,{initialFocus:s,containers:w,features:S?u$b(ae,{parent:de$1.features.RestoreFocus,leaf:de$1.features.All&~de$1.features.FocusLock}):de$1.features.None},React$1.createElement(re,null,C$1({ourProps:me,theirProps:m,slot:X,defaultTag:Ne$3,features:Ue$1,visible:p===0,name:"Dialog"}))))))))),React$1.createElement(le,null))}let $e$3="div";function Ye$2(t,e){let r=I$6(),{id:i=`headlessui-dialog-overlay-${r}`,...n}=t,[{dialogState:l,close:s}]=b$4("Dialog.Overlay"),a=y$3(e),T=o$g(f=>{if(f.target===f.currentTarget){if(r$g(f.currentTarget))return f.preventDefault();f.preventDefault(),f.stopPropagation(),s();}}),m=React$1.useMemo(()=>({open:l===0}),[l]);return C$1({ourProps:{ref:a,id:i,"aria-hidden":!0,onClick:T},theirProps:n,slot:m,defaultTag:$e$3,name:"Dialog.Overlay"})}let je$2="div";function Je$3(t,e){let r=I$6(),{id:i=`headlessui-dialog-backdrop-${r}`,...n}=t,[{dialogState:l},s]=b$4("Dialog.Backdrop"),a=y$3(e);React$1.useEffect(()=>{if(s.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[s.panelRef]);let T=React$1.useMemo(()=>({open:l===0}),[l]);return React$1.createElement(l$f,{force:!0},React$1.createElement(te$2,null,C$1({ourProps:{ref:a,id:i,"aria-hidden":!0},theirProps:n,slot:T,defaultTag:je$2,name:"Dialog.Backdrop"})))}let Xe$3="div";function Ke$3(t,e){let r=I$6(),{id:i=`headlessui-dialog-panel-${r}`,...n}=t,[{dialogState:l},s]=b$4("Dialog.Panel"),a=y$3(e,s.panelRef),T=React$1.useMemo(()=>({open:l===0}),[l]),m=o$g(f=>{f.stopPropagation();});return C$1({ourProps:{ref:a,id:i,onClick:m},theirProps:n,slot:T,defaultTag:Xe$3,name:"Dialog.Panel"})}let Ve$2="h2";function qe$3(t,e){let r=I$6(),{id:i=`headlessui-dialog-title-${r}`,...n}=t,[{dialogState:l,setTitleId:s}]=b$4("Dialog.Title"),a=y$3(e);React$1.useEffect(()=>(s(i),()=>s(null)),[i,s]);let T=React$1.useMemo(()=>({open:l===0}),[l]);return C$1({ourProps:{ref:a,id:i},theirProps:n,slot:T,defaultTag:Ve$2,name:"Dialog.Title"})}let ze$3=U$2(We$2),Qe$3=U$2(Je$3),Ze$3=U$2(Ke$3),et$2=U$2(Ye$2),tt$2=U$2(qe$3),_t=Object.assign(ze$3,{Backdrop:Qe$3,Panel:Ze$3,Overlay:et$2,Title:tt$2,Description:G$1});
74556
74556
 
74557
74557
  var t$5;let a$d=(t$5=React$1.startTransition)!=null?t$5:function(i){i();};
74558
74558
 
74559
- var Q=(o=>(o[o.Open=0]="Open",o[o.Closed=1]="Closed",o))(Q||{}),V=(t=>(t[t.ToggleDisclosure=0]="ToggleDisclosure",t[t.CloseDisclosure=1]="CloseDisclosure",t[t.SetButtonId=2]="SetButtonId",t[t.SetPanelId=3]="SetPanelId",t[t.LinkPanel=4]="LinkPanel",t[t.UnlinkPanel=5]="UnlinkPanel",t))(V||{});let Y$1={[0]:e=>({...e,disclosureState:u$b(e.disclosureState,{[0]:1,[1]:0})}),[1]:e=>e.disclosureState===1?e:{...e,disclosureState:1},[4](e){return e.linkedPanel===!0?e:{...e,linkedPanel:!0}},[5](e){return e.linkedPanel===!1?e:{...e,linkedPanel:!1}},[2](e,n){return e.buttonId===n.buttonId?e:{...e,buttonId:n.buttonId}},[3](e,n){return e.panelId===n.panelId?e:{...e,panelId:n.panelId}}},M$3=React$1.createContext(null);M$3.displayName="DisclosureContext";function _(e){let n=React$1.useContext(M$3);if(n===null){let o=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,_),o}return n}let v$3=React$1.createContext(null);v$3.displayName="DisclosureAPIContext";function K(e){let n=React$1.useContext(v$3);if(n===null){let o=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,K),o}return n}let F$2=React$1.createContext(null);F$2.displayName="DisclosurePanelContext";function Z$1(){return React$1.useContext(F$2)}function ee$1(e,n){return u$b(n.type,Y$1,e,n)}let te$1=React$1.Fragment;function ne$2(e,n){let{defaultOpen:o=!1,...i}=e,f=React$1.useRef(null),l=y$3(n,T(u=>{f.current=u;},e.as===void 0||e.as===React$1.Fragment)),t=React$1.useRef(null),d=React$1.useRef(null),s=React$1.useReducer(ee$1,{disclosureState:o?0:1,linkedPanel:!1,buttonRef:d,panelRef:t,buttonId:null,panelId:null}),[{disclosureState:c,buttonId:a},D]=s,p=o$g(u=>{D({type:1});let y=o$d(f);if(!y||!a)return;let r=(()=>u?u instanceof HTMLElement?u:u.current instanceof HTMLElement?u.current:y.getElementById(a):y.getElementById(a))();r==null||r.focus();}),P=React$1.useMemo(()=>({close:p}),[p]),T$1=React$1.useMemo(()=>({open:c===0,close:p}),[c,p]),C={ref:l};return React$1.createElement(M$3.Provider,{value:s},React$1.createElement(v$3.Provider,{value:P},React$1.createElement(s$h,{value:u$b(c,{[0]:d$b.Open,[1]:d$b.Closed})},C$1({ourProps:C,theirProps:i,slot:T$1,defaultTag:te$1,name:"Disclosure"}))))}let le$1="button";function oe$1(e,n){let o=I$6(),{id:i=`headlessui-disclosure-button-${o}`,...f}=e,[l,t]=_("Disclosure.Button"),d=Z$1(),s=d===null?!1:d===l.panelId,c=React$1.useRef(null),a=y$3(c,n,s?null:l.buttonRef),D=I$4();React$1.useEffect(()=>{if(!s)return t({type:2,buttonId:i}),()=>{t({type:2,buttonId:null});}},[i,t,s]);let p=o$g(r=>{var m;if(s){if(l.disclosureState===1)return;switch(r.key){case o$b.Space:case o$b.Enter:r.preventDefault(),r.stopPropagation(),t({type:0}),(m=l.buttonRef.current)==null||m.focus();break}}else switch(r.key){case o$b.Space:case o$b.Enter:r.preventDefault(),r.stopPropagation(),t({type:0});break}}),P=o$g(r=>{switch(r.key){case o$b.Space:r.preventDefault();break}}),T=o$g(r=>{var m;r$g(r.currentTarget)||e.disabled||(s?(t({type:0}),(m=l.buttonRef.current)==null||m.focus()):t({type:0}));}),C=React$1.useMemo(()=>({open:l.disclosureState===0}),[l]),u=T$1(e,c),y=s?{ref:a,type:u,onKeyDown:p,onClick:T}:{ref:a,id:i,type:u,"aria-expanded":l.disclosureState===0,"aria-controls":l.linkedPanel?l.panelId:void 0,onKeyDown:p,onKeyUp:P,onClick:T};return C$1({mergeRefs:D,ourProps:y,theirProps:f,slot:C,defaultTag:le$1,name:"Disclosure.Button"})}let re$2="div",se$1=O.RenderStrategy|O.Static;function ue$4(e,n){let o=I$6(),{id:i=`headlessui-disclosure-panel-${o}`,...f}=e,[l,t]=_("Disclosure.Panel"),{close:d}=K("Disclosure.Panel"),s=I$4(),c=y$3(n,l.panelRef,T=>{a$d(()=>t({type:T?4:5}));});React$1.useEffect(()=>(t({type:3,panelId:i}),()=>{t({type:3,panelId:null});}),[i,t]);let a=u$8(),D=(()=>a!==null?(a&d$b.Open)===d$b.Open:l.disclosureState===0)(),p=React$1.useMemo(()=>({open:l.disclosureState===0,close:d}),[l,d]),P={ref:c,id:i};return React$1.createElement(F$2.Provider,{value:l.panelId},C$1({mergeRefs:s,ourProps:P,theirProps:f,slot:p,defaultTag:re$2,features:se$1,visible:D,name:"Disclosure.Panel"}))}let ie$1=U$2(ne$2),ae$1=U$2(oe$1),pe$1=U$2(ue$4),Ae$1=Object.assign(ie$1,{Button:ae$1,Panel:pe$1});
74559
+ var Q=(o=>(o[o.Open=0]="Open",o[o.Closed=1]="Closed",o))(Q||{}),V=(t=>(t[t.ToggleDisclosure=0]="ToggleDisclosure",t[t.CloseDisclosure=1]="CloseDisclosure",t[t.SetButtonId=2]="SetButtonId",t[t.SetPanelId=3]="SetPanelId",t[t.LinkPanel=4]="LinkPanel",t[t.UnlinkPanel=5]="UnlinkPanel",t))(V||{});let Y$1={[0]:e=>({...e,disclosureState:u$b(e.disclosureState,{[0]:1,[1]:0})}),[1]:e=>e.disclosureState===1?e:{...e,disclosureState:1},[4](e){return e.linkedPanel===!0?e:{...e,linkedPanel:!0}},[5](e){return e.linkedPanel===!1?e:{...e,linkedPanel:!1}},[2](e,n){return e.buttonId===n.buttonId?e:{...e,buttonId:n.buttonId}},[3](e,n){return e.panelId===n.panelId?e:{...e,panelId:n.panelId}}},M$3=React$1.createContext(null);M$3.displayName="DisclosureContext";function _(e){let n=React$1.useContext(M$3);if(n===null){let o=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,_),o}return n}let v$3=React$1.createContext(null);v$3.displayName="DisclosureAPIContext";function K(e){let n=React$1.useContext(v$3);if(n===null){let o=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,K),o}return n}let F$2=React$1.createContext(null);F$2.displayName="DisclosurePanelContext";function Z$1(){return React$1.useContext(F$2)}function ee$1(e,n){return u$b(n.type,Y$1,e,n)}let te$1=React$1.Fragment;function ne$2(e,n){let{defaultOpen:o=!1,...i}=e,f=React$1.useRef(null),l=y$3(n,T(u=>{f.current=u;},e.as===void 0||e.as===React$1.Fragment)),t=React$1.useRef(null),d=React$1.useRef(null),s=React$1.useReducer(ee$1,{disclosureState:o?0:1,linkedPanel:!1,buttonRef:d,panelRef:t,buttonId:null,panelId:null}),[{disclosureState:c,buttonId:a},D]=s,p=o$g(u=>{D({type:1});let y=o$d(f);if(!y||!a)return;let r=(()=>u?u instanceof HTMLElement?u:u.current instanceof HTMLElement?u.current:y.getElementById(a):y.getElementById(a))();r==null||r.focus();}),P=React$1.useMemo(()=>({close:p}),[p]),T$1=React$1.useMemo(()=>({open:c===0,close:p}),[c,p]),C={ref:l};return React$1.createElement(M$3.Provider,{value:s},React$1.createElement(v$3.Provider,{value:P},React$1.createElement(s$h,{value:u$b(c,{[0]:d$b.Open,[1]:d$b.Closed})},C$1({ourProps:C,theirProps:i,slot:T$1,defaultTag:te$1,name:"Disclosure"}))))}let le$1="button";function oe$1(e,n){let o=I$6(),{id:i=`headlessui-disclosure-button-${o}`,...f}=e,[l,t]=_("Disclosure.Button"),d=Z$1(),s=d===null?!1:d===l.panelId,c=React$1.useRef(null),a=y$3(c,n,s?null:l.buttonRef),D=I$4();React$1.useEffect(()=>{if(!s)return t({type:2,buttonId:i}),()=>{t({type:2,buttonId:null});}},[i,t,s]);let p=o$g(r=>{var m;if(s){if(l.disclosureState===1)return;switch(r.key){case o$b.Space:case o$b.Enter:r.preventDefault(),r.stopPropagation(),t({type:0}),(m=l.buttonRef.current)==null||m.focus();break}}else switch(r.key){case o$b.Space:case o$b.Enter:r.preventDefault(),r.stopPropagation(),t({type:0});break}}),P=o$g(r=>{switch(r.key){case o$b.Space:r.preventDefault();break}}),T=o$g(r=>{var m;r$g(r.currentTarget)||e.disabled||(s?(t({type:0}),(m=l.buttonRef.current)==null||m.focus()):t({type:0}));}),C=React$1.useMemo(()=>({open:l.disclosureState===0}),[l]),u=T$1(e,c),y=s?{ref:a,type:u,onKeyDown:p,onClick:T}:{ref:a,id:i,type:u,"aria-expanded":l.disclosureState===0,"aria-controls":l.linkedPanel?l.panelId:void 0,onKeyDown:p,onKeyUp:P,onClick:T};return C$1({mergeRefs:D,ourProps:y,theirProps:f,slot:C,defaultTag:le$1,name:"Disclosure.Button"})}let re$2="div",se$1=O.RenderStrategy|O.Static;function ue$3(e,n){let o=I$6(),{id:i=`headlessui-disclosure-panel-${o}`,...f}=e,[l,t]=_("Disclosure.Panel"),{close:d}=K("Disclosure.Panel"),s=I$4(),c=y$3(n,l.panelRef,T=>{a$d(()=>t({type:T?4:5}));});React$1.useEffect(()=>(t({type:3,panelId:i}),()=>{t({type:3,panelId:null});}),[i,t]);let a=u$8(),D=(()=>a!==null?(a&d$b.Open)===d$b.Open:l.disclosureState===0)(),p=React$1.useMemo(()=>({open:l.disclosureState===0,close:d}),[l,d]),P={ref:c,id:i};return React$1.createElement(F$2.Provider,{value:l.panelId},C$1({mergeRefs:s,ourProps:P,theirProps:f,slot:p,defaultTag:re$2,features:se$1,visible:D,name:"Disclosure.Panel"}))}let ie$1=U$2(ne$2),ae$1=U$2(oe$1),pe$1=U$2(ue$3),Ae$1=Object.assign(ie$1,{Button:ae$1,Panel:pe$1});
74560
74560
 
74561
74561
  let a$c=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function o$a(e){var r,i;let n=(r=e.innerText)!=null?r:"",t=e.cloneNode(!0);if(!(t instanceof HTMLElement))return n;let u=!1;for(let f of t.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))f.remove(),u=!0;let l=u?(i=t.innerText)!=null?i:"":n;return a$c.test(l)&&(l=l.replace(a$c,"")),l}function g$5(e){let n=e.getAttribute("aria-label");if(typeof n=="string")return n.trim();let t=e.getAttribute("aria-labelledby");if(t){let u=t.split(" ").map(l=>{let r=document.getElementById(l);if(r){let i=r.getAttribute("aria-label");return typeof i=="string"?i.trim():o$a(r).trim()}return null}).filter(Boolean);if(u.length>0)return u.join(", ")}return o$a(e).trim()}
74562
74562
 
74563
74563
  function s$d(c){let t=React$1.useRef(""),r=React$1.useRef("");return o$g(()=>{let e=c.current;if(!e)return "";let u=e.innerText;if(t.current===u)return r.current;let n=g$5(e).trim().toLowerCase();return t.current=u,r.current=n,n})}
74564
74564
 
74565
- var Be=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(Be||{}),He$2=(n=>(n[n.Single=0]="Single",n[n.Multi=1]="Multi",n))(He$2||{}),Ge$1=(n=>(n[n.Pointer=0]="Pointer",n[n.Other=1]="Other",n))(Ge$1||{}),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$5(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=f$8(a,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:t=>t.id,resolveDisabled:t=>t.dataRef.current.disabled});return {...e,...n,searchQuery:"",activeOptionIndex:r,activationTrigger:(l=a.trigger)!=null?l:1}},[3]:(e,a)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,l=e.searchQuery+a.value.toLowerCase(),p=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(i=>{var b;return !i.dataRef.current.disabled&&((b=i.dataRef.current.textValue)==null?void 0:b.startsWith(l))}),u=p?e.options.indexOf(p):-1;return u===-1||u===e.activeOptionIndex?{...e,searchQuery:l}:{...e,searchQuery:l,activeOptionIndex:u,activationTrigger:1}},[4](e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},[5]:(e,a)=>{let n={id:a.id,dataRef:a.dataRef},r=z(e,l=>[...l,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(a.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},[6]:(e,a)=>{let n=z(e,r=>{let l=r.findIndex(t=>t.id===a.id);return l!==-1&&r.splice(l,1),r});return {...e,...n,activationTrigger:1}},[7]:(e,a)=>({...e,labelId:a.id})},J=React$1.createContext(null);J.displayName="ListboxActionsContext";function k$4(e){let a=React$1.useContext(J);if(a===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,k$4),n}return a}let q$2=React$1.createContext(null);q$2.displayName="ListboxDataContext";function w$1(e){let a=React$1.useContext(q$2);if(a===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,w$1),n}return a}function Ve$1(e,a){return u$b(a.type,je$1,e,a)}let Ke$2=React$1.Fragment;function Qe$2(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),[g=R?[]:void 0,x]=T$3(n,p,r),[T,o]=React$1.useReducer(Ve$1,{dataRef:React$1.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),L=React$1.useRef({static:!1,hold:!1}),U=React$1.useRef(null),B=React$1.useRef(null),W=React$1.useRef(null),I=o$g(typeof u=="string"?(s,c)=>{let O=u;return (s==null?void 0:s[O])===(c==null?void 0:c[O])}:u),A=React$1.useCallback(s=>u$b(d.mode,{[1]:()=>g.some(c=>I(c,s)),[0]:()=>I(g,s)}),[g]),d=React$1.useMemo(()=>({...T,value:g,disabled:i,mode:R?1:0,orientation:P,compare:I,isSelected:A,optionsPropsRef:L,labelRef:U,buttonRef:B,optionsRef:W}),[g,i,R,T]);l$i(()=>{T.dataRef.current=d;},[d]),y$4([d.buttonRef,d.optionsRef],(s,c)=>{var O;o({type:1}),h$9(c,T$2.Loose)||(s.preventDefault(),(O=d.buttonRef.current)==null||O.focus());},d.listboxState===0);let H=React$1.useMemo(()=>({open:d.listboxState===0,disabled:i,value:g}),[d,i,g]),ie=o$g(s=>{let c=d.options.find(O=>O.id===s);c&&X(c.dataRef.current.value);}),re=o$g(()=>{if(d.activeOptionIndex!==null){let{dataRef:s,id:c}=d.options[d.activeOptionIndex];X(s.current.value),o({type:2,focus:c$g.Specific,id:c});}}),ae=o$g(()=>o({type:0})),le=o$g(()=>o({type:1})),se=o$g((s,c,O)=>s===c$g.Specific?o({type:2,focus:c$g.Specific,id:c,trigger:O}):o({type:2,focus:s,trigger:O})),pe=o$g((s,c)=>(o({type:5,id:s,dataRef:c}),()=>o({type:6,id:s}))),ue=o$g(s=>(o({type:7,id:s}),()=>o({type:7,id:null}))),X=o$g(s=>u$b(d.mode,{[0](){return x==null?void 0:x(s)},[1](){let c=d.value.slice(),O=c.findIndex(C=>I(C,s));return O===-1?c.push(s):c.splice(O,1),x==null?void 0:x(c)}})),de=o$g(s=>o({type:3,value:s})),ce=o$g(()=>o({type:4})),fe=React$1.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$1.useRef(null),be=p$8();return React$1.useEffect(()=>{G.current&&r!==void 0&&be.addEventListener(G.current,"reset",()=>{x==null||x(r);});},[G,x]),React$1.createElement(J.Provider,{value:fe},React$1.createElement(q$2.Provider,{value:d},React$1.createElement(s$h,{value:u$b(d.listboxState,{[0]:d$b.Open,[1]:d$b.Closed})},t!=null&&g!=null&&e$2({[t]:g}).map(([s,c],O)=>React$1.createElement(f$9,{features:s$i.Hidden,ref:O===0?C=>{var Y;G.current=(Y=C==null?void 0:C.closest("form"))!=null?Y:null;}:void 0,...x$1({key:s,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:l,name:s,value:c})})),C$1({ourProps:Te,theirProps:m,slot:H,defaultTag:Ke$2,name:"Listbox"}))))}let We$1="button";function Xe$1(e,a){var x;let n=I$6(),{id:r=`headlessui-listbox-button-${n}`,...l}=e,t=w$1("Listbox.Button"),p=k$4("Listbox.Button"),u=y$3(t.buttonRef,a),i=p$8(),b=o$g(T=>{switch(T.key){case o$b.Space:case o$b.Enter:case o$b.ArrowDown:T.preventDefault(),p.openListbox(),i.nextFrame(()=>{t.value||p.goToOption(c$g.First);});break;case o$b.ArrowUp:T.preventDefault(),p.openListbox(),i.nextFrame(()=>{t.value||p.goToOption(c$g.Last);});break}}),R=o$g(T=>{switch(T.key){case o$b.Space:T.preventDefault();break}}),m=o$g(T=>{if(r$g(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$h(()=>{if(t.labelId)return [t.labelId,r].join(" ")},[t.labelId,r]),S=React$1.useMemo(()=>({open:t.listboxState===0,disabled:t.disabled,value:t.value}),[t]),g={ref:u,id:r,type:T$1(e,t.buttonRef),"aria-haspopup":"listbox","aria-controls":(x=t.optionsRef.current)==null?void 0:x.id,"aria-expanded":t.listboxState===0,"aria-labelledby":P,disabled:t.disabled,onKeyDown:b,onKeyUp:R,onClick:m};return C$1({ourProps:g,theirProps:l,slot:S,defaultTag:We$1,name:"Listbox.Button"})}let $e$3="label";function ze$1(e,a){let n=I$6(),{id:r=`headlessui-listbox-label-${n}`,...l}=e,t=w$1("Listbox.Label"),p=k$4("Listbox.Label"),u=y$3(t.labelRef,a);l$i(()=>p.registerLabel(r),[r]);let i=o$g(()=>{var m;return (m=t.buttonRef.current)==null?void 0:m.focus({preventScroll:!0})}),b=React$1.useMemo(()=>({open:t.listboxState===0,disabled:t.disabled}),[t]);return C$1({ourProps:{ref:u,id:r,onClick:i},theirProps:l,slot:b,defaultTag:$e$3,name:"Listbox.Label"})}let Je$2="ul",qe$3=O.RenderStrategy|O.Static;function Ye$1(e,a){var T;let n=I$6(),{id:r=`headlessui-listbox-options-${n}`,...l}=e,t=w$1("Listbox.Options"),p=k$4("Listbox.Options"),u=y$3(t.optionsRef,a),i=p$8(),b=p$8(),R=u$8(),m=(()=>R!==null?(R&d$b.Open)===d$b.Open:t.listboxState===0)();React$1.useEffect(()=>{var L;let o=t.optionsRef.current;o&&t.listboxState===0&&o!==((L=o$d(o))==null?void 0:L.activeElement)&&o.focus({preventScroll:!0});},[t.listboxState,t.optionsRef]);let P=o$g(o=>{switch(b.dispose(),o.key){case o$b.Space:if(t.searchQuery!=="")return o.preventDefault(),o.stopPropagation(),p.search(o.key);case o$b.Enter:if(o.preventDefault(),o.stopPropagation(),t.activeOptionIndex!==null){let{dataRef:L}=t.options[t.activeOptionIndex];p.onChange(L.current.value);}t.mode===0&&(p.closeListbox(),o$f().nextFrame(()=>{var L;return (L=t.buttonRef.current)==null?void 0:L.focus({preventScroll:!0})}));break;case u$b(t.orientation,{vertical:o$b.ArrowDown,horizontal:o$b.ArrowRight}):return o.preventDefault(),o.stopPropagation(),p.goToOption(c$g.Next);case u$b(t.orientation,{vertical:o$b.ArrowUp,horizontal:o$b.ArrowLeft}):return o.preventDefault(),o.stopPropagation(),p.goToOption(c$g.Previous);case o$b.Home:case o$b.PageUp:return o.preventDefault(),o.stopPropagation(),p.goToOption(c$g.First);case o$b.End:case o$b.PageDown:return o.preventDefault(),o.stopPropagation(),p.goToOption(c$g.Last);case o$b.Escape:return o.preventDefault(),o.stopPropagation(),p.closeListbox(),i.nextFrame(()=>{var L;return (L=t.buttonRef.current)==null?void 0:L.focus({preventScroll:!0})});case o$b.Tab:o.preventDefault(),o.stopPropagation();break;default:o.key.length===1&&(p.search(o.key),b.setTimeout(()=>p.clearSearch(),350));break}}),S=i$h(()=>{var o;return (o=t.buttonRef.current)==null?void 0:o.id},[t.buttonRef.current]),g=React$1.useMemo(()=>({open:t.listboxState===0}),[t]),x={"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 C$1({ourProps:x,theirProps:l,slot:g,defaultTag:Je$2,features:qe$3,visible:m,name:"Listbox.Options"})}let Ze$2="li";function et$1(e,a){let n=I$6(),{id:r=`headlessui-listbox-option-${n}`,disabled:l=!1,value:t,...p}=e,u=w$1("Listbox.Option"),i=k$4("Listbox.Option"),b=u.activeOptionIndex!==null?u.options[u.activeOptionIndex].id===r:!1,R=u.isSelected(t),m=React$1.useRef(null),P=s$d(m),S=s$l({disabled:l,value:t,domRef:m,get textValue(){return P()}}),g=y$3(a,m);l$i(()=>{if(u.listboxState!==0||!b||u.activationTrigger===0)return;let A=o$f();return A.requestAnimationFrame(()=>{var d,H;(H=(d=m.current)==null?void 0:d.scrollIntoView)==null||H.call(d,{block:"nearest"});}),A.dispose},[m,b,u.listboxState,u.activationTrigger,u.activeOptionIndex]),l$i(()=>i.registerOption(r,S),[S,r]);let x=o$g(A=>{if(l)return A.preventDefault();i.onChange(t),u.mode===0&&(i.closeListbox(),o$f().nextFrame(()=>{var d;return (d=u.buttonRef.current)==null?void 0:d.focus({preventScroll:!0})}));}),T=o$g(()=>{if(l)return i.goToOption(c$g.Nothing);i.goToOption(c$g.Specific,r);}),o=u$9(),L=o$g(A=>o.update(A)),U=o$g(A=>{o.wasMoved(A)&&(l||b||i.goToOption(c$g.Specific,r,0));}),B=o$g(A=>{o.wasMoved(A)&&(l||b&&i.goToOption(c$g.Nothing));}),W=React$1.useMemo(()=>({active:b,selected:R,disabled:l}),[b,R,l]);return C$1({ourProps:{id:r,ref:g,role:"option",tabIndex:l===!0?void 0:-1,"aria-disabled":l===!0?!0:void 0,"aria-selected":R,disabled:void 0,onClick:x,onFocus:T,onPointerEnter:L,onMouseEnter:L,onPointerMove:U,onMouseMove:U,onPointerLeave:B,onMouseLeave:B},theirProps:p,slot:W,defaultTag:Ze$2,name:"Listbox.Option"})}let tt$1=U$2(Qe$2),ot$1=U$2(Xe$1),nt=U$2(ze$1),it=U$2(Ye$1),rt$1=U$2(et$1),It=Object.assign(tt$1,{Button:ot$1,Label:nt,Options:it,Option:rt$1});
74565
+ var Be=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(Be||{}),He$2=(n=>(n[n.Single=0]="Single",n[n.Multi=1]="Multi",n))(He$2||{}),Ge$1=(n=>(n[n.Pointer=0]="Pointer",n[n.Other=1]="Other",n))(Ge$1||{}),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$5(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=f$8(a,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:t=>t.id,resolveDisabled:t=>t.dataRef.current.disabled});return {...e,...n,searchQuery:"",activeOptionIndex:r,activationTrigger:(l=a.trigger)!=null?l:1}},[3]:(e,a)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,l=e.searchQuery+a.value.toLowerCase(),p=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(i=>{var b;return !i.dataRef.current.disabled&&((b=i.dataRef.current.textValue)==null?void 0:b.startsWith(l))}),u=p?e.options.indexOf(p):-1;return u===-1||u===e.activeOptionIndex?{...e,searchQuery:l}:{...e,searchQuery:l,activeOptionIndex:u,activationTrigger:1}},[4](e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},[5]:(e,a)=>{let n={id:a.id,dataRef:a.dataRef},r=z(e,l=>[...l,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(a.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},[6]:(e,a)=>{let n=z(e,r=>{let l=r.findIndex(t=>t.id===a.id);return l!==-1&&r.splice(l,1),r});return {...e,...n,activationTrigger:1}},[7]:(e,a)=>({...e,labelId:a.id})},J=React$1.createContext(null);J.displayName="ListboxActionsContext";function k$4(e){let a=React$1.useContext(J);if(a===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,k$4),n}return a}let q$2=React$1.createContext(null);q$2.displayName="ListboxDataContext";function w$1(e){let a=React$1.useContext(q$2);if(a===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,w$1),n}return a}function Ve$1(e,a){return u$b(a.type,je$1,e,a)}let Ke$2=React$1.Fragment;function Qe$2(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),[g=R?[]:void 0,x]=T$3(n,p,r),[T,o]=React$1.useReducer(Ve$1,{dataRef:React$1.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),L=React$1.useRef({static:!1,hold:!1}),U=React$1.useRef(null),B=React$1.useRef(null),W=React$1.useRef(null),I=o$g(typeof u=="string"?(s,c)=>{let O=u;return (s==null?void 0:s[O])===(c==null?void 0:c[O])}:u),A=React$1.useCallback(s=>u$b(d.mode,{[1]:()=>g.some(c=>I(c,s)),[0]:()=>I(g,s)}),[g]),d=React$1.useMemo(()=>({...T,value:g,disabled:i,mode:R?1:0,orientation:P,compare:I,isSelected:A,optionsPropsRef:L,labelRef:U,buttonRef:B,optionsRef:W}),[g,i,R,T]);l$i(()=>{T.dataRef.current=d;},[d]),y$4([d.buttonRef,d.optionsRef],(s,c)=>{var O;o({type:1}),h$9(c,T$2.Loose)||(s.preventDefault(),(O=d.buttonRef.current)==null||O.focus());},d.listboxState===0);let H=React$1.useMemo(()=>({open:d.listboxState===0,disabled:i,value:g}),[d,i,g]),ie=o$g(s=>{let c=d.options.find(O=>O.id===s);c&&X(c.dataRef.current.value);}),re=o$g(()=>{if(d.activeOptionIndex!==null){let{dataRef:s,id:c}=d.options[d.activeOptionIndex];X(s.current.value),o({type:2,focus:c$g.Specific,id:c});}}),ae=o$g(()=>o({type:0})),le=o$g(()=>o({type:1})),se=o$g((s,c,O)=>s===c$g.Specific?o({type:2,focus:c$g.Specific,id:c,trigger:O}):o({type:2,focus:s,trigger:O})),pe=o$g((s,c)=>(o({type:5,id:s,dataRef:c}),()=>o({type:6,id:s}))),ue=o$g(s=>(o({type:7,id:s}),()=>o({type:7,id:null}))),X=o$g(s=>u$b(d.mode,{[0](){return x==null?void 0:x(s)},[1](){let c=d.value.slice(),O=c.findIndex(C=>I(C,s));return O===-1?c.push(s):c.splice(O,1),x==null?void 0:x(c)}})),de=o$g(s=>o({type:3,value:s})),ce=o$g(()=>o({type:4})),fe=React$1.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$1.useRef(null),be=p$8();return React$1.useEffect(()=>{G.current&&r!==void 0&&be.addEventListener(G.current,"reset",()=>{x==null||x(r);});},[G,x]),React$1.createElement(J.Provider,{value:fe},React$1.createElement(q$2.Provider,{value:d},React$1.createElement(s$h,{value:u$b(d.listboxState,{[0]:d$b.Open,[1]:d$b.Closed})},t!=null&&g!=null&&e$2({[t]:g}).map(([s,c],O)=>React$1.createElement(f$9,{features:s$i.Hidden,ref:O===0?C=>{var Y;G.current=(Y=C==null?void 0:C.closest("form"))!=null?Y:null;}:void 0,...x$1({key:s,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:l,name:s,value:c})})),C$1({ourProps:Te,theirProps:m,slot:H,defaultTag:Ke$2,name:"Listbox"}))))}let We$1="button";function Xe$2(e,a){var x;let n=I$6(),{id:r=`headlessui-listbox-button-${n}`,...l}=e,t=w$1("Listbox.Button"),p=k$4("Listbox.Button"),u=y$3(t.buttonRef,a),i=p$8(),b=o$g(T=>{switch(T.key){case o$b.Space:case o$b.Enter:case o$b.ArrowDown:T.preventDefault(),p.openListbox(),i.nextFrame(()=>{t.value||p.goToOption(c$g.First);});break;case o$b.ArrowUp:T.preventDefault(),p.openListbox(),i.nextFrame(()=>{t.value||p.goToOption(c$g.Last);});break}}),R=o$g(T=>{switch(T.key){case o$b.Space:T.preventDefault();break}}),m=o$g(T=>{if(r$g(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$h(()=>{if(t.labelId)return [t.labelId,r].join(" ")},[t.labelId,r]),S=React$1.useMemo(()=>({open:t.listboxState===0,disabled:t.disabled,value:t.value}),[t]),g={ref:u,id:r,type:T$1(e,t.buttonRef),"aria-haspopup":"listbox","aria-controls":(x=t.optionsRef.current)==null?void 0:x.id,"aria-expanded":t.listboxState===0,"aria-labelledby":P,disabled:t.disabled,onKeyDown:b,onKeyUp:R,onClick:m};return C$1({ourProps:g,theirProps:l,slot:S,defaultTag:We$1,name:"Listbox.Button"})}let $e$2="label";function ze$2(e,a){let n=I$6(),{id:r=`headlessui-listbox-label-${n}`,...l}=e,t=w$1("Listbox.Label"),p=k$4("Listbox.Label"),u=y$3(t.labelRef,a);l$i(()=>p.registerLabel(r),[r]);let i=o$g(()=>{var m;return (m=t.buttonRef.current)==null?void 0:m.focus({preventScroll:!0})}),b=React$1.useMemo(()=>({open:t.listboxState===0,disabled:t.disabled}),[t]);return C$1({ourProps:{ref:u,id:r,onClick:i},theirProps:l,slot:b,defaultTag:$e$2,name:"Listbox.Label"})}let Je$2="ul",qe$2=O.RenderStrategy|O.Static;function Ye$1(e,a){var T;let n=I$6(),{id:r=`headlessui-listbox-options-${n}`,...l}=e,t=w$1("Listbox.Options"),p=k$4("Listbox.Options"),u=y$3(t.optionsRef,a),i=p$8(),b=p$8(),R=u$8(),m=(()=>R!==null?(R&d$b.Open)===d$b.Open:t.listboxState===0)();React$1.useEffect(()=>{var L;let o=t.optionsRef.current;o&&t.listboxState===0&&o!==((L=o$d(o))==null?void 0:L.activeElement)&&o.focus({preventScroll:!0});},[t.listboxState,t.optionsRef]);let P=o$g(o=>{switch(b.dispose(),o.key){case o$b.Space:if(t.searchQuery!=="")return o.preventDefault(),o.stopPropagation(),p.search(o.key);case o$b.Enter:if(o.preventDefault(),o.stopPropagation(),t.activeOptionIndex!==null){let{dataRef:L}=t.options[t.activeOptionIndex];p.onChange(L.current.value);}t.mode===0&&(p.closeListbox(),o$f().nextFrame(()=>{var L;return (L=t.buttonRef.current)==null?void 0:L.focus({preventScroll:!0})}));break;case u$b(t.orientation,{vertical:o$b.ArrowDown,horizontal:o$b.ArrowRight}):return o.preventDefault(),o.stopPropagation(),p.goToOption(c$g.Next);case u$b(t.orientation,{vertical:o$b.ArrowUp,horizontal:o$b.ArrowLeft}):return o.preventDefault(),o.stopPropagation(),p.goToOption(c$g.Previous);case o$b.Home:case o$b.PageUp:return o.preventDefault(),o.stopPropagation(),p.goToOption(c$g.First);case o$b.End:case o$b.PageDown:return o.preventDefault(),o.stopPropagation(),p.goToOption(c$g.Last);case o$b.Escape:return o.preventDefault(),o.stopPropagation(),p.closeListbox(),i.nextFrame(()=>{var L;return (L=t.buttonRef.current)==null?void 0:L.focus({preventScroll:!0})});case o$b.Tab:o.preventDefault(),o.stopPropagation();break;default:o.key.length===1&&(p.search(o.key),b.setTimeout(()=>p.clearSearch(),350));break}}),S=i$h(()=>{var o;return (o=t.buttonRef.current)==null?void 0:o.id},[t.buttonRef.current]),g=React$1.useMemo(()=>({open:t.listboxState===0}),[t]),x={"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 C$1({ourProps:x,theirProps:l,slot:g,defaultTag:Je$2,features:qe$2,visible:m,name:"Listbox.Options"})}let Ze$2="li";function et$1(e,a){let n=I$6(),{id:r=`headlessui-listbox-option-${n}`,disabled:l=!1,value:t,...p}=e,u=w$1("Listbox.Option"),i=k$4("Listbox.Option"),b=u.activeOptionIndex!==null?u.options[u.activeOptionIndex].id===r:!1,R=u.isSelected(t),m=React$1.useRef(null),P=s$d(m),S=s$l({disabled:l,value:t,domRef:m,get textValue(){return P()}}),g=y$3(a,m);l$i(()=>{if(u.listboxState!==0||!b||u.activationTrigger===0)return;let A=o$f();return A.requestAnimationFrame(()=>{var d,H;(H=(d=m.current)==null?void 0:d.scrollIntoView)==null||H.call(d,{block:"nearest"});}),A.dispose},[m,b,u.listboxState,u.activationTrigger,u.activeOptionIndex]),l$i(()=>i.registerOption(r,S),[S,r]);let x=o$g(A=>{if(l)return A.preventDefault();i.onChange(t),u.mode===0&&(i.closeListbox(),o$f().nextFrame(()=>{var d;return (d=u.buttonRef.current)==null?void 0:d.focus({preventScroll:!0})}));}),T=o$g(()=>{if(l)return i.goToOption(c$g.Nothing);i.goToOption(c$g.Specific,r);}),o=u$9(),L=o$g(A=>o.update(A)),U=o$g(A=>{o.wasMoved(A)&&(l||b||i.goToOption(c$g.Specific,r,0));}),B=o$g(A=>{o.wasMoved(A)&&(l||b&&i.goToOption(c$g.Nothing));}),W=React$1.useMemo(()=>({active:b,selected:R,disabled:l}),[b,R,l]);return C$1({ourProps:{id:r,ref:g,role:"option",tabIndex:l===!0?void 0:-1,"aria-disabled":l===!0?!0:void 0,"aria-selected":R,disabled:void 0,onClick:x,onFocus:T,onPointerEnter:L,onMouseEnter:L,onPointerMove:U,onMouseMove:U,onPointerLeave:B,onMouseLeave:B},theirProps:p,slot:W,defaultTag:Ze$2,name:"Listbox.Option"})}let tt$1=U$2(Qe$2),ot$2=U$2(Xe$2),nt=U$2(ze$2),it=U$2(Ye$1),rt=U$2(et$1),It=Object.assign(tt$1,{Button:ot$2,Label:nt,Options:it,Option:rt});
74566
74566
 
74567
- var he$1=(u=>(u[u.Open=0]="Open",u[u.Closed=1]="Closed",u))(he$1||{}),He$1=(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$1||{});let Ge={[0]:t=>{let o={...t,popoverState:u$b(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$3=React$1.createContext(null);ue$3.displayName="PopoverContext";function oe(t){let o=React$1.useContext(ue$3);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$1.createContext(null);ie.displayName="PopoverAPIContext";function fe$1(t){let o=React$1.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$1.createContext(null);Pe$2.displayName="PopoverGroupContext";function Ee$1(){return React$1.useContext(Pe$2)}let re$1=React$1.createContext(null);re$1.displayName="PopoverPanelContext";function Ne$1(){return React$1.useContext(re$1)}function ke(t,o){return u$b(o.type,Ge,t,o)}let we$1="div";function Ue(t,o){var B;let{__demoMode:u=!1,...M}=t,x=React$1.useRef(null),n=y$3(o,T(l=>{x.current=l;})),e=React$1.useRef([]),c=React$1.useReducer(ke,{__demoMode:u,popoverState:u?0:1,buttons:e,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:React$1.createRef(),afterPanelSentinel:React$1.createRef()}),[{popoverState:f,button:s,buttonId:I,panel:a,panelId:v,beforePanelSentinel:y,afterPanelSentinel:A},P]=c,p=n$f((B=x.current)!=null?B:s),E$1=React$1.useMemo(()=>{if(!s||!a)return !1;for(let W of document.querySelectorAll("body > *"))if(Number(W==null?void 0:W.contains(s))^Number(W==null?void 0:W.contains(a)))return !0;let l=f$a(),S=l.indexOf(s),q=(S+l.length-1)%l.length,U=(S+1)%l.length,z=l[q],be=l[U];return !a.contains(z)&&!a.contains(be)},[s,a]),F=s$l(I),D=s$l(v),_=React$1.useMemo(()=>({buttonId:F,panelId:D,close:()=>P({type:1})}),[F,D,P]),O=Ee$1(),L=O==null?void 0:O.registerPopover,$=o$g(()=>{var l;return (l=O==null?void 0:O.isFocusWithinPopoverGroup())!=null?l:(p==null?void 0:p.activeElement)&&((s==null?void 0:s.contains(p.activeElement))||(a==null?void 0:a.contains(p.activeElement)))});React$1.useEffect(()=>L==null?void 0:L(_),[L,_]);let[i,b]=ee$2(),T$1=N({mainTreeNodeRef:O==null?void 0:O.mainTreeNodeRef,portals:i,defaultContainers:[s,a]});E(p==null?void 0:p.defaultView,"focus",l=>{var S,q,U,z;l.target!==window&&l.target instanceof HTMLElement&&f===0&&($()||s&&a&&(T$1.contains(l.target)||(q=(S=y.current)==null?void 0:S.contains)!=null&&q.call(S,l.target)||(z=(U=A.current)==null?void 0:U.contains)!=null&&z.call(U,l.target)||P({type:1})));},!0),y$4(T$1.resolveContainers,(l,S)=>{P({type:1}),h$9(S,T$2.Loose)||(l.preventDefault(),s==null||s.focus());},f===0);let d=o$g(l=>{P({type:1});let S=(()=>l?l instanceof HTMLElement?l:"current"in l&&l.current instanceof HTMLElement?l.current:s:s)();S==null||S.focus();}),r=React$1.useMemo(()=>({close:d,isPortalled:E$1}),[d,E$1]),m=React$1.useMemo(()=>({open:f===0,close:d}),[f,d]),g={ref:n};return React$1.createElement(re$1.Provider,{value:null},React$1.createElement(ue$3.Provider,{value:c},React$1.createElement(ie.Provider,{value:r},React$1.createElement(s$h,{value:u$b(f,{[0]:d$b.Open,[1]:d$b.Closed})},React$1.createElement(b,null,C$1({ourProps:g,theirProps:M,slot:m,defaultTag:we$1,name:"Popover"}),React$1.createElement(T$1.MainTreeNode,null))))))}let We="button";function Ke$1(t,o){let u=I$6(),{id:M=`headlessui-popover-button-${u}`,...x}=t,[n,e]=oe("Popover.Button"),{isPortalled:c}=fe$1("Popover.Button"),f=React$1.useRef(null),s=`headlessui-focus-sentinel-${I$6()}`,I=Ee$1(),a=I==null?void 0:I.closeOthers,y=Ne$1()!==null;React$1.useEffect(()=>{if(!y)return e({type:3,buttonId:M}),()=>{e({type:3,buttonId:null});}},[y,M,e]);let[A]=React$1.useState(()=>Symbol()),P=y$3(f,o,y?null:r=>{if(r)n.buttons.current.push(A);else {let m=n.buttons.current.indexOf(A);m!==-1&&n.buttons.current.splice(m,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});}),p=y$3(f,o),E=n$f(f),F=o$g(r=>{var m,g,B;if(y){if(n.popoverState===1)return;switch(r.key){case o$b.Space:case o$b.Enter:r.preventDefault(),(g=(m=r.target).click)==null||g.call(m),e({type:1}),(B=n.button)==null||B.focus();break}}else switch(r.key){case o$b.Space:case o$b.Enter:r.preventDefault(),r.stopPropagation(),n.popoverState===1&&(a==null||a(n.buttonId)),e({type:0});break;case o$b.Escape:if(n.popoverState!==0)return a==null?void 0:a(n.buttonId);if(!f.current||E!=null&&E.activeElement&&!f.current.contains(E.activeElement))return;r.preventDefault(),r.stopPropagation(),e({type:1});break}}),D=o$g(r=>{y||r.key===o$b.Space&&r.preventDefault();}),_=o$g(r=>{var m,g;r$g(r.currentTarget)||t.disabled||(y?(e({type:1}),(m=n.button)==null||m.focus()):(r.preventDefault(),r.stopPropagation(),n.popoverState===1&&(a==null||a(n.buttonId)),e({type:0}),(g=n.button)==null||g.focus()));}),O=o$g(r=>{r.preventDefault(),r.stopPropagation();}),L=n.popoverState===0,$=React$1.useMemo(()=>({open:L}),[L]),i=T$1(t,f),b=y?{ref:p,type:i,onKeyDown:F,onClick:_}:{ref:P,id:n.buttonId,type:i,"aria-expanded":n.popoverState===0,"aria-controls":n.panel?n.panelId:void 0,onKeyDown:F,onKeyUp:D,onClick:_,onMouseDown:O},T=n$d(),d=o$g(()=>{let r=n.panel;if(!r)return;function m(){u$b(T.current,{[s$g.Forwards]:()=>O$1(r,M$4.First),[s$g.Backwards]:()=>O$1(r,M$4.Last)})===N$2.Error&&O$1(f$a().filter(B=>B.dataset.headlessuiFocusGuard!=="true"),u$b(T.current,{[s$g.Forwards]:M$4.Next,[s$g.Backwards]:M$4.Previous}),{relativeTo:n.button});}m();});return React$1.createElement(React$1.Fragment,null,C$1({ourProps:b,theirProps:x,slot:$,defaultTag:We,name:"Popover.Button"}),L&&!y&&c&&React$1.createElement(f$9,{id:s,features:s$i.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:d}))}let je="div",Ve=O.RenderStrategy|O.Static;function $e$2(t,o){let u=I$6(),{id:M=`headlessui-popover-overlay-${u}`,...x}=t,[{popoverState:n},e]=oe("Popover.Overlay"),c=y$3(o),f=u$8(),s=(()=>f!==null?(f&d$b.Open)===d$b.Open:n===0)(),I=o$g(y=>{if(r$g(y.currentTarget))return y.preventDefault();e({type:1});}),a=React$1.useMemo(()=>({open:n===0}),[n]);return C$1({ourProps:{ref:c,id:M,"aria-hidden":!0,onClick:I},theirProps:x,slot:a,defaultTag:je,features:Ve,visible:s,name:"Popover.Overlay"})}let Je$1="div",Xe=O.RenderStrategy|O.Static;function Ye(t,o){let u=I$6(),{id:M=`headlessui-popover-panel-${u}`,focus:x=!1,...n}=t,[e,c]=oe("Popover.Panel"),{close:f,isPortalled:s}=fe$1("Popover.Panel"),I=`headlessui-focus-sentinel-before-${I$6()}`,a=`headlessui-focus-sentinel-after-${I$6()}`,v=React$1.useRef(null),y=y$3(v,o,i=>{c({type:4,panel:i});}),A=n$f(v),P=I$4();l$i(()=>(c({type:5,panelId:M}),()=>{c({type:5,panelId:null});}),[M,c]);let p=u$8(),E=(()=>p!==null?(p&d$b.Open)===d$b.Open:e.popoverState===0)(),F=o$g(i=>{var b;switch(i.key){case o$b.Escape:if(e.popoverState!==0||!v.current||A!=null&&A.activeElement&&!v.current.contains(A.activeElement))return;i.preventDefault(),i.stopPropagation(),c({type:1}),(b=e.button)==null||b.focus();break}});React$1.useEffect(()=>{var i;t.static||e.popoverState===1&&((i=t.unmount)==null||i)&&c({type:4,panel:null});},[e.popoverState,t.unmount,t.static,c]),React$1.useEffect(()=>{if(e.__demoMode||!x||e.popoverState!==0||!v.current)return;let i=A==null?void 0:A.activeElement;v.current.contains(i)||O$1(v.current,M$4.First);},[e.__demoMode,x,v,e.popoverState]);let D=React$1.useMemo(()=>({open:e.popoverState===0,close:f}),[e,f]),_={ref:y,id:M,onKeyDown:F,onBlur:x&&e.popoverState===0?i=>{var T,d,r,m,g;let b=i.relatedTarget;b&&v.current&&((T=v.current)!=null&&T.contains(b)||(c({type:1}),((r=(d=e.beforePanelSentinel.current)==null?void 0:d.contains)!=null&&r.call(d,b)||(g=(m=e.afterPanelSentinel.current)==null?void 0:m.contains)!=null&&g.call(m,b))&&b.focus({preventScroll:!0})));}:void 0,tabIndex:-1},O=n$d(),L=o$g(()=>{let i=v.current;if(!i)return;function b(){u$b(O.current,{[s$g.Forwards]:()=>{var d;O$1(i,M$4.First)===N$2.Error&&((d=e.afterPanelSentinel.current)==null||d.focus());},[s$g.Backwards]:()=>{var T;(T=e.button)==null||T.focus({preventScroll:!0});}});}b();}),$=o$g(()=>{let i=v.current;if(!i)return;function b(){u$b(O.current,{[s$g.Forwards]:()=>{var B;if(!e.button)return;let T=f$a(),d=T.indexOf(e.button),r=T.slice(0,d+1),g=[...T.slice(d+1),...r];for(let l of g.slice())if(l.dataset.headlessuiFocusGuard==="true"||(B=e.panel)!=null&&B.contains(l)){let S=g.indexOf(l);S!==-1&&g.splice(S,1);}O$1(g,M$4.First,{sorted:!1});},[s$g.Backwards]:()=>{var d;O$1(i,M$4.Previous)===N$2.Error&&((d=e.button)==null||d.focus());}});}b();});return React$1.createElement(re$1.Provider,{value:M},E&&s&&React$1.createElement(f$9,{id:I,ref:e.beforePanelSentinel,features:s$i.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:L}),C$1({mergeRefs:P,ourProps:_,theirProps:n,slot:D,defaultTag:Je$1,features:Xe,visible:E,name:"Popover.Panel"}),E&&s&&React$1.createElement(f$9,{id:a,ref:e.afterPanelSentinel,features:s$i.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:$}))}let qe$2="div";function ze(t,o){let u=React$1.useRef(null),M=y$3(u,o),[x,n]=React$1.useState([]),e=y$1(),c=o$g(P=>{n(p=>{let E=p.indexOf(P);if(E!==-1){let F=p.slice();return F.splice(E,1),F}return p});}),f=o$g(P=>(n(p=>[...p,P]),()=>c(P))),s=o$g(()=>{var E;let P=o$d(u);if(!P)return !1;let p=P.activeElement;return (E=u.current)!=null&&E.contains(p)?!0:x.some(F=>{var D,_;return ((D=P.getElementById(F.buttonId.current))==null?void 0:D.contains(p))||((_=P.getElementById(F.panelId.current))==null?void 0:_.contains(p))})}),I=o$g(P=>{for(let p of x)p.buttonId.current!==P&&p.close();}),a=React$1.useMemo(()=>({registerPopover:f,unregisterPopover:c,isFocusWithinPopoverGroup:s,closeOthers:I,mainTreeNodeRef:e.mainTreeNodeRef}),[f,c,s,I,e.mainTreeNodeRef]),v=React$1.useMemo(()=>({}),[]),y=t,A={ref:M};return React$1.createElement(Pe$2.Provider,{value:a},C$1({ourProps:A,theirProps:y,slot:v,defaultTag:qe$2,name:"Popover.Group"}),React$1.createElement(e.MainTreeNode,null))}let Qe$1=U$2(Ue),Ze$1=U$2(Ke$1),et=U$2($e$2),tt=U$2(Ye),ot=U$2(ze),Ct=Object.assign(Qe$1,{Button:Ze$1,Overlay:et,Panel:tt,Group:ot});
74567
+ var he$1=(u=>(u[u.Open=0]="Open",u[u.Closed=1]="Closed",u))(he$1||{}),He$1=(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$1||{});let Ge={[0]:t=>{let o={...t,popoverState:u$b(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$2=React$1.createContext(null);ue$2.displayName="PopoverContext";function oe(t){let o=React$1.useContext(ue$2);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$1.createContext(null);ie.displayName="PopoverAPIContext";function fe$2(t){let o=React$1.useContext(ie);if(o===null){let u=new Error(`<${t} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(u,fe$2),u}return o}let Pe$2=React$1.createContext(null);Pe$2.displayName="PopoverGroupContext";function Ee$1(){return React$1.useContext(Pe$2)}let re$1=React$1.createContext(null);re$1.displayName="PopoverPanelContext";function Ne$1(){return React$1.useContext(re$1)}function ke(t,o){return u$b(o.type,Ge,t,o)}let we$1="div";function Ue(t,o){var B;let{__demoMode:u=!1,...M}=t,x=React$1.useRef(null),n=y$3(o,T(l=>{x.current=l;})),e=React$1.useRef([]),c=React$1.useReducer(ke,{__demoMode:u,popoverState:u?0:1,buttons:e,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:React$1.createRef(),afterPanelSentinel:React$1.createRef()}),[{popoverState:f,button:s,buttonId:I,panel:a,panelId:v,beforePanelSentinel:y,afterPanelSentinel:A},P]=c,p=n$f((B=x.current)!=null?B:s),E$1=React$1.useMemo(()=>{if(!s||!a)return !1;for(let W of document.querySelectorAll("body > *"))if(Number(W==null?void 0:W.contains(s))^Number(W==null?void 0:W.contains(a)))return !0;let l=f$a(),S=l.indexOf(s),q=(S+l.length-1)%l.length,U=(S+1)%l.length,z=l[q],be=l[U];return !a.contains(z)&&!a.contains(be)},[s,a]),F=s$l(I),D=s$l(v),_=React$1.useMemo(()=>({buttonId:F,panelId:D,close:()=>P({type:1})}),[F,D,P]),O=Ee$1(),L=O==null?void 0:O.registerPopover,$=o$g(()=>{var l;return (l=O==null?void 0:O.isFocusWithinPopoverGroup())!=null?l:(p==null?void 0:p.activeElement)&&((s==null?void 0:s.contains(p.activeElement))||(a==null?void 0:a.contains(p.activeElement)))});React$1.useEffect(()=>L==null?void 0:L(_),[L,_]);let[i,b]=ee$2(),T$1=N({mainTreeNodeRef:O==null?void 0:O.mainTreeNodeRef,portals:i,defaultContainers:[s,a]});E(p==null?void 0:p.defaultView,"focus",l=>{var S,q,U,z;l.target!==window&&l.target instanceof HTMLElement&&f===0&&($()||s&&a&&(T$1.contains(l.target)||(q=(S=y.current)==null?void 0:S.contains)!=null&&q.call(S,l.target)||(z=(U=A.current)==null?void 0:U.contains)!=null&&z.call(U,l.target)||P({type:1})));},!0),y$4(T$1.resolveContainers,(l,S)=>{P({type:1}),h$9(S,T$2.Loose)||(l.preventDefault(),s==null||s.focus());},f===0);let d=o$g(l=>{P({type:1});let S=(()=>l?l instanceof HTMLElement?l:"current"in l&&l.current instanceof HTMLElement?l.current:s:s)();S==null||S.focus();}),r=React$1.useMemo(()=>({close:d,isPortalled:E$1}),[d,E$1]),m=React$1.useMemo(()=>({open:f===0,close:d}),[f,d]),g={ref:n};return React$1.createElement(re$1.Provider,{value:null},React$1.createElement(ue$2.Provider,{value:c},React$1.createElement(ie.Provider,{value:r},React$1.createElement(s$h,{value:u$b(f,{[0]:d$b.Open,[1]:d$b.Closed})},React$1.createElement(b,null,C$1({ourProps:g,theirProps:M,slot:m,defaultTag:we$1,name:"Popover"}),React$1.createElement(T$1.MainTreeNode,null))))))}let We="button";function Ke$1(t,o){let u=I$6(),{id:M=`headlessui-popover-button-${u}`,...x}=t,[n,e]=oe("Popover.Button"),{isPortalled:c}=fe$2("Popover.Button"),f=React$1.useRef(null),s=`headlessui-focus-sentinel-${I$6()}`,I=Ee$1(),a=I==null?void 0:I.closeOthers,y=Ne$1()!==null;React$1.useEffect(()=>{if(!y)return e({type:3,buttonId:M}),()=>{e({type:3,buttonId:null});}},[y,M,e]);let[A]=React$1.useState(()=>Symbol()),P=y$3(f,o,y?null:r=>{if(r)n.buttons.current.push(A);else {let m=n.buttons.current.indexOf(A);m!==-1&&n.buttons.current.splice(m,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});}),p=y$3(f,o),E=n$f(f),F=o$g(r=>{var m,g,B;if(y){if(n.popoverState===1)return;switch(r.key){case o$b.Space:case o$b.Enter:r.preventDefault(),(g=(m=r.target).click)==null||g.call(m),e({type:1}),(B=n.button)==null||B.focus();break}}else switch(r.key){case o$b.Space:case o$b.Enter:r.preventDefault(),r.stopPropagation(),n.popoverState===1&&(a==null||a(n.buttonId)),e({type:0});break;case o$b.Escape:if(n.popoverState!==0)return a==null?void 0:a(n.buttonId);if(!f.current||E!=null&&E.activeElement&&!f.current.contains(E.activeElement))return;r.preventDefault(),r.stopPropagation(),e({type:1});break}}),D=o$g(r=>{y||r.key===o$b.Space&&r.preventDefault();}),_=o$g(r=>{var m,g;r$g(r.currentTarget)||t.disabled||(y?(e({type:1}),(m=n.button)==null||m.focus()):(r.preventDefault(),r.stopPropagation(),n.popoverState===1&&(a==null||a(n.buttonId)),e({type:0}),(g=n.button)==null||g.focus()));}),O=o$g(r=>{r.preventDefault(),r.stopPropagation();}),L=n.popoverState===0,$=React$1.useMemo(()=>({open:L}),[L]),i=T$1(t,f),b=y?{ref:p,type:i,onKeyDown:F,onClick:_}:{ref:P,id:n.buttonId,type:i,"aria-expanded":n.popoverState===0,"aria-controls":n.panel?n.panelId:void 0,onKeyDown:F,onKeyUp:D,onClick:_,onMouseDown:O},T=n$d(),d=o$g(()=>{let r=n.panel;if(!r)return;function m(){u$b(T.current,{[s$g.Forwards]:()=>O$1(r,M$4.First),[s$g.Backwards]:()=>O$1(r,M$4.Last)})===N$2.Error&&O$1(f$a().filter(B=>B.dataset.headlessuiFocusGuard!=="true"),u$b(T.current,{[s$g.Forwards]:M$4.Next,[s$g.Backwards]:M$4.Previous}),{relativeTo:n.button});}m();});return React$1.createElement(React$1.Fragment,null,C$1({ourProps:b,theirProps:x,slot:$,defaultTag:We,name:"Popover.Button"}),L&&!y&&c&&React$1.createElement(f$9,{id:s,features:s$i.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:d}))}let je="div",Ve=O.RenderStrategy|O.Static;function $e$1(t,o){let u=I$6(),{id:M=`headlessui-popover-overlay-${u}`,...x}=t,[{popoverState:n},e]=oe("Popover.Overlay"),c=y$3(o),f=u$8(),s=(()=>f!==null?(f&d$b.Open)===d$b.Open:n===0)(),I=o$g(y=>{if(r$g(y.currentTarget))return y.preventDefault();e({type:1});}),a=React$1.useMemo(()=>({open:n===0}),[n]);return C$1({ourProps:{ref:c,id:M,"aria-hidden":!0,onClick:I},theirProps:x,slot:a,defaultTag:je,features:Ve,visible:s,name:"Popover.Overlay"})}let Je$1="div",Xe$1=O.RenderStrategy|O.Static;function Ye(t,o){let u=I$6(),{id:M=`headlessui-popover-panel-${u}`,focus:x=!1,...n}=t,[e,c]=oe("Popover.Panel"),{close:f,isPortalled:s}=fe$2("Popover.Panel"),I=`headlessui-focus-sentinel-before-${I$6()}`,a=`headlessui-focus-sentinel-after-${I$6()}`,v=React$1.useRef(null),y=y$3(v,o,i=>{c({type:4,panel:i});}),A=n$f(v),P=I$4();l$i(()=>(c({type:5,panelId:M}),()=>{c({type:5,panelId:null});}),[M,c]);let p=u$8(),E=(()=>p!==null?(p&d$b.Open)===d$b.Open:e.popoverState===0)(),F=o$g(i=>{var b;switch(i.key){case o$b.Escape:if(e.popoverState!==0||!v.current||A!=null&&A.activeElement&&!v.current.contains(A.activeElement))return;i.preventDefault(),i.stopPropagation(),c({type:1}),(b=e.button)==null||b.focus();break}});React$1.useEffect(()=>{var i;t.static||e.popoverState===1&&((i=t.unmount)==null||i)&&c({type:4,panel:null});},[e.popoverState,t.unmount,t.static,c]),React$1.useEffect(()=>{if(e.__demoMode||!x||e.popoverState!==0||!v.current)return;let i=A==null?void 0:A.activeElement;v.current.contains(i)||O$1(v.current,M$4.First);},[e.__demoMode,x,v,e.popoverState]);let D=React$1.useMemo(()=>({open:e.popoverState===0,close:f}),[e,f]),_={ref:y,id:M,onKeyDown:F,onBlur:x&&e.popoverState===0?i=>{var T,d,r,m,g;let b=i.relatedTarget;b&&v.current&&((T=v.current)!=null&&T.contains(b)||(c({type:1}),((r=(d=e.beforePanelSentinel.current)==null?void 0:d.contains)!=null&&r.call(d,b)||(g=(m=e.afterPanelSentinel.current)==null?void 0:m.contains)!=null&&g.call(m,b))&&b.focus({preventScroll:!0})));}:void 0,tabIndex:-1},O=n$d(),L=o$g(()=>{let i=v.current;if(!i)return;function b(){u$b(O.current,{[s$g.Forwards]:()=>{var d;O$1(i,M$4.First)===N$2.Error&&((d=e.afterPanelSentinel.current)==null||d.focus());},[s$g.Backwards]:()=>{var T;(T=e.button)==null||T.focus({preventScroll:!0});}});}b();}),$=o$g(()=>{let i=v.current;if(!i)return;function b(){u$b(O.current,{[s$g.Forwards]:()=>{var B;if(!e.button)return;let T=f$a(),d=T.indexOf(e.button),r=T.slice(0,d+1),g=[...T.slice(d+1),...r];for(let l of g.slice())if(l.dataset.headlessuiFocusGuard==="true"||(B=e.panel)!=null&&B.contains(l)){let S=g.indexOf(l);S!==-1&&g.splice(S,1);}O$1(g,M$4.First,{sorted:!1});},[s$g.Backwards]:()=>{var d;O$1(i,M$4.Previous)===N$2.Error&&((d=e.button)==null||d.focus());}});}b();});return React$1.createElement(re$1.Provider,{value:M},E&&s&&React$1.createElement(f$9,{id:I,ref:e.beforePanelSentinel,features:s$i.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:L}),C$1({mergeRefs:P,ourProps:_,theirProps:n,slot:D,defaultTag:Je$1,features:Xe$1,visible:E,name:"Popover.Panel"}),E&&s&&React$1.createElement(f$9,{id:a,ref:e.afterPanelSentinel,features:s$i.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:$}))}let qe$1="div";function ze$1(t,o){let u=React$1.useRef(null),M=y$3(u,o),[x,n]=React$1.useState([]),e=y$1(),c=o$g(P=>{n(p=>{let E=p.indexOf(P);if(E!==-1){let F=p.slice();return F.splice(E,1),F}return p});}),f=o$g(P=>(n(p=>[...p,P]),()=>c(P))),s=o$g(()=>{var E;let P=o$d(u);if(!P)return !1;let p=P.activeElement;return (E=u.current)!=null&&E.contains(p)?!0:x.some(F=>{var D,_;return ((D=P.getElementById(F.buttonId.current))==null?void 0:D.contains(p))||((_=P.getElementById(F.panelId.current))==null?void 0:_.contains(p))})}),I=o$g(P=>{for(let p of x)p.buttonId.current!==P&&p.close();}),a=React$1.useMemo(()=>({registerPopover:f,unregisterPopover:c,isFocusWithinPopoverGroup:s,closeOthers:I,mainTreeNodeRef:e.mainTreeNodeRef}),[f,c,s,I,e.mainTreeNodeRef]),v=React$1.useMemo(()=>({}),[]),y=t,A={ref:M};return React$1.createElement(Pe$2.Provider,{value:a},C$1({ourProps:A,theirProps:y,slot:v,defaultTag:qe$1,name:"Popover.Group"}),React$1.createElement(e.MainTreeNode,null))}let Qe$1=U$2(Ue),Ze$1=U$2(Ke$1),et=U$2($e$1),tt=U$2(Ye),ot$1=U$2(ze$1),Ct=Object.assign(Qe$1,{Button:Ze$1,Overlay:et,Panel:tt,Group:ot$1});
74568
74568
 
74569
74569
  let d$7=React$1.createContext(null);function u$4(){let a=React$1.useContext(d$7);if(a===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$4),t}return a}function F$1(){let[a,t]=React$1.useState([]);return [a.length>0?a.join(" "):void 0,React$1.useMemo(()=>function(e){let s=o$g(r=>(t(l=>[...l,r]),()=>t(l=>{let n=l.slice(),p=n.indexOf(r);return p!==-1&&n.splice(p,1),n}))),o=React$1.useMemo(()=>({register:s,slot:e.slot,name:e.name,props:e.props}),[s,e.slot,e.name,e.props]);return React$1.createElement(d$7.Provider,{value:o},e.children)},[t])]}let A="label";function h$6(a,t){let i=I$6(),{id:e=`headlessui-label-${i}`,passive:s=!1,...o}=a,r=u$4(),l=y$3(t);l$i(()=>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 o&&delete o.onClick),C$1({ourProps:n,theirProps:o,slot:r.slot||{},defaultTag:A,name:r.name||"Label"})}let v$2=U$2(h$6),B=Object.assign(v$2,{});
74570
74570
 
@@ -74576,7 +74576,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
74576
74576
 
74577
74577
  const s$c=React__namespace.createContext(null);function a$b(){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({children:n}){let t=React__namespace.useRef(a$b());return React__namespace.createElement(s$c.Provider,{value:t},n)}function d$6(n){let t=React__namespace.useContext(s$c);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let e=f$2(),[l,o]=t.current.get(n,e);return React__namespace.useEffect(()=>o,[]),l}function f$2(){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(".")}
74578
74578
 
74579
- var ue$2=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(ue$2||{}),Te$1=(o=>(o[o.Less=-1]="Less",o[o.Equal=0]="Equal",o[o.Greater=1]="Greater",o))(Te$1||{}),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$5(e.tabs,T=>T.current),o=I$5(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$b(Math.sign(n.index-e.selectedIndex),{[-1]:()=>1,[0]:()=>u$b(Math.sign(n.index),{[-1]:()=>0,[0]:()=>0,[1]:()=>1}),[1]:()=>0});if(s.length===0)return r;let l=u$b(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$5([...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$5([...e.panels,n.panel],t=>t.current)}},[4](e,n){return {...e,panels:e.panels.filter(t=>t!==n.panel)}}},X=React$1.createContext(null);X.displayName="TabsDataContext";function h$5(e){let n=React$1.useContext(X);if(n===null){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,h$5),t}return n}let $=React$1.createContext(null);$.displayName="TabsActionsContext";function q$1(e){let n=React$1.useContext($);if(n===null){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,q$1),t}return n}function fe(e,n){return u$b(n.type,ce,e,n)}let be=React$1.Fragment;function me(e,n){let{defaultIndex:t=0,vertical:o=!1,manual:s=!1,onChange:r,selectedIndex:i=null,...R}=e;const b=o?"vertical":"horizontal",c=s?"manual":"auto";let u=i!==null,T=y$3(n),[l,d]=React$1.useReducer(fe,{selectedIndex:i!=null?i:t,tabs:[],panels:[]}),x=React$1.useMemo(()=>({selectedIndex:l.selectedIndex}),[l.selectedIndex]),m=s$l(r||(()=>{})),g=s$l(l.tabs),E=React$1.useMemo(()=>({orientation:b,activation:c,...l}),[b,c,l]),S=o$g(p=>(d({type:1,tab:p}),()=>d({type:2,tab:p}))),A=o$g(p=>(d({type:3,panel:p}),()=>d({type:4,panel:p}))),L=o$g(p=>{M.current!==p&&m.current(p),u||d({type:0,index:p});}),M=s$l(u?e.selectedIndex:l.selectedIndex),N=React$1.useMemo(()=>({registerTab:S,registerPanel:A,change:L}),[]);l$i(()=>{d({type:0,index:i!=null?i:t});},[i]),l$i(()=>{if(M.current===void 0||l.tabs.length<=0)return;let p=I$5(l.tabs,a=>a.current);p.some((a,f)=>l.tabs[f]!==a)&&L(p.indexOf(l.tabs[M.current]));});let B={ref:T};return React$1.createElement(C,null,React$1.createElement($.Provider,{value:N},React$1.createElement(X.Provider,{value:E},E.tabs.length<=0&&React$1.createElement(b$2,{onFocus:()=>{var p,I;for(let a of g.current)if(((p=a.current)==null?void 0:p.tabIndex)===0)return (I=a.current)==null||I.focus(),!0;return !1}}),C$1({ourProps:B,theirProps:R,slot:x,defaultTag:be,name:"Tabs"}))))}let Pe$1="div";function ye$1(e,n){let{orientation:t,selectedIndex:o}=h$5("Tab.List"),s=y$3(n);return C$1({ourProps:{ref:s,role:"tablist","aria-orientation":t},theirProps:e,slot:{selectedIndex:o},defaultTag:Pe$1,name:"Tabs.List"})}let xe$1="button";function ge(e,n){var p,I;let t=I$6(),{id:o=`headlessui-tabs-tab-${t}`,...s}=e,{orientation:r,activation:i,selectedIndex:R,tabs:b,panels:c}=h$5("Tab"),u=q$1("Tab"),T=h$5("Tab"),l=React$1.useRef(null),d=y$3(l,n);l$i(()=>u.registerTab(l),[u,l]);let x=d$6("tabs"),m=b.indexOf(l);m===-1&&(m=x);let g=m===R,E=o$g(a=>{var j;let f=a();if(f===N$2.Success&&i==="auto"){let W=(j=o$d(l))==null?void 0:j.activeElement,z=T.tabs.findIndex(te=>te.current===W);z!==-1&&u.change(z);}return f}),S=o$g(a=>{let f=b.map(W=>W.current).filter(Boolean);if(a.key===o$b.Space||a.key===o$b.Enter){a.preventDefault(),a.stopPropagation(),u.change(m);return}switch(a.key){case o$b.Home:case o$b.PageUp:return a.preventDefault(),a.stopPropagation(),E(()=>O$1(f,M$4.First));case o$b.End:case o$b.PageDown:return a.preventDefault(),a.stopPropagation(),E(()=>O$1(f,M$4.Last))}if(E(()=>u$b(r,{vertical(){return a.key===o$b.ArrowUp?O$1(f,M$4.Previous|M$4.WrapAround):a.key===o$b.ArrowDown?O$1(f,M$4.Next|M$4.WrapAround):N$2.Error},horizontal(){return a.key===o$b.ArrowLeft?O$1(f,M$4.Previous|M$4.WrapAround):a.key===o$b.ArrowRight?O$1(f,M$4.Next|M$4.WrapAround):N$2.Error}}))===N$2.Success)return a.preventDefault()}),A=React$1.useRef(!1),L=o$g(()=>{var a;A.current||(A.current=!0,(a=l.current)==null||a.focus({preventScroll:!0}),u.change(m),t$d(()=>{A.current=!1;}));}),M=o$g(a=>{a.preventDefault();}),N=React$1.useMemo(()=>({selected:g}),[g]),B={ref:d,onKeyDown:S,onMouseDown:M,onClick:L,id:o,role:"tab",type:T$1(e,l),"aria-controls":(I=(p=c[m])==null?void 0:p.current)==null?void 0:I.id,"aria-selected":g,tabIndex:g?0:-1};return C$1({ourProps:B,theirProps:s,slot:N,defaultTag:xe$1,name:"Tabs.Tab"})}let Ee="div";function Ae(e,n){let{selectedIndex:t}=h$5("Tab.Panels"),o=y$3(n),s=React$1.useMemo(()=>({selectedIndex:t}),[t]);return C$1({ourProps:{ref:o},theirProps:e,slot:s,defaultTag:Ee,name:"Tabs.Panels"})}let Re$1="div",Le$1=O.RenderStrategy|O.Static;function _e$1(e,n){var E,S,A,L;let t=I$6(),{id:o=`headlessui-tabs-panel-${t}`,tabIndex:s=0,...r}=e,{selectedIndex:i,tabs:R,panels:b}=h$5("Tab.Panel"),c=q$1("Tab.Panel"),u=React$1.useRef(null),T=y$3(u,n);l$i(()=>c.registerPanel(u),[c,u]);let l=d$6("panels"),d=b.indexOf(u);d===-1&&(d=l);let x=d===i,m=React$1.useMemo(()=>({selected:x}),[x]),g={ref:T,id:o,role:"tabpanel","aria-labelledby":(S=(E=R[d])==null?void 0:E.current)==null?void 0:S.id,tabIndex:x?s:-1};return !x&&((A=r.unmount)==null||A)&&!((L=r.static)!=null&&L)?React$1.createElement(f$9,{as:"span","aria-hidden":"true",...g}):C$1({ourProps:g,theirProps:r,slot:m,defaultTag:Re$1,features:Le$1,visible:x,name:"Tabs.Panel"})}let Se$1=U$2(ge),Ie=U$2(me),De$1=U$2(ye$1),Fe$1=U$2(Ae),he=U$2(_e$1),$e$1=Object.assign(Se$1,{Group:Ie,List:De$1,Panels:Fe$1,Panel:he});
74579
+ var ue$1=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(ue$1||{}),Te$1=(o=>(o[o.Less=-1]="Less",o[o.Equal=0]="Equal",o[o.Greater=1]="Greater",o))(Te$1||{}),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$5(e.tabs,T=>T.current),o=I$5(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$b(Math.sign(n.index-e.selectedIndex),{[-1]:()=>1,[0]:()=>u$b(Math.sign(n.index),{[-1]:()=>0,[0]:()=>0,[1]:()=>1}),[1]:()=>0});if(s.length===0)return r;let l=u$b(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$5([...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$5([...e.panels,n.panel],t=>t.current)}},[4](e,n){return {...e,panels:e.panels.filter(t=>t!==n.panel)}}},X=React$1.createContext(null);X.displayName="TabsDataContext";function h$5(e){let n=React$1.useContext(X);if(n===null){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,h$5),t}return n}let $=React$1.createContext(null);$.displayName="TabsActionsContext";function q$1(e){let n=React$1.useContext($);if(n===null){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,q$1),t}return n}function fe$1(e,n){return u$b(n.type,ce,e,n)}let be=React$1.Fragment;function me(e,n){let{defaultIndex:t=0,vertical:o=!1,manual:s=!1,onChange:r,selectedIndex:i=null,...R}=e;const b=o?"vertical":"horizontal",c=s?"manual":"auto";let u=i!==null,T=y$3(n),[l,d]=React$1.useReducer(fe$1,{selectedIndex:i!=null?i:t,tabs:[],panels:[]}),x=React$1.useMemo(()=>({selectedIndex:l.selectedIndex}),[l.selectedIndex]),m=s$l(r||(()=>{})),g=s$l(l.tabs),E=React$1.useMemo(()=>({orientation:b,activation:c,...l}),[b,c,l]),S=o$g(p=>(d({type:1,tab:p}),()=>d({type:2,tab:p}))),A=o$g(p=>(d({type:3,panel:p}),()=>d({type:4,panel:p}))),L=o$g(p=>{M.current!==p&&m.current(p),u||d({type:0,index:p});}),M=s$l(u?e.selectedIndex:l.selectedIndex),N=React$1.useMemo(()=>({registerTab:S,registerPanel:A,change:L}),[]);l$i(()=>{d({type:0,index:i!=null?i:t});},[i]),l$i(()=>{if(M.current===void 0||l.tabs.length<=0)return;let p=I$5(l.tabs,a=>a.current);p.some((a,f)=>l.tabs[f]!==a)&&L(p.indexOf(l.tabs[M.current]));});let B={ref:T};return React$1.createElement(C,null,React$1.createElement($.Provider,{value:N},React$1.createElement(X.Provider,{value:E},E.tabs.length<=0&&React$1.createElement(b$2,{onFocus:()=>{var p,I;for(let a of g.current)if(((p=a.current)==null?void 0:p.tabIndex)===0)return (I=a.current)==null||I.focus(),!0;return !1}}),C$1({ourProps:B,theirProps:R,slot:x,defaultTag:be,name:"Tabs"}))))}let Pe$1="div";function ye$1(e,n){let{orientation:t,selectedIndex:o}=h$5("Tab.List"),s=y$3(n);return C$1({ourProps:{ref:s,role:"tablist","aria-orientation":t},theirProps:e,slot:{selectedIndex:o},defaultTag:Pe$1,name:"Tabs.List"})}let xe$1="button";function ge(e,n){var p,I;let t=I$6(),{id:o=`headlessui-tabs-tab-${t}`,...s}=e,{orientation:r,activation:i,selectedIndex:R,tabs:b,panels:c}=h$5("Tab"),u=q$1("Tab"),T=h$5("Tab"),l=React$1.useRef(null),d=y$3(l,n);l$i(()=>u.registerTab(l),[u,l]);let x=d$6("tabs"),m=b.indexOf(l);m===-1&&(m=x);let g=m===R,E=o$g(a=>{var j;let f=a();if(f===N$2.Success&&i==="auto"){let W=(j=o$d(l))==null?void 0:j.activeElement,z=T.tabs.findIndex(te=>te.current===W);z!==-1&&u.change(z);}return f}),S=o$g(a=>{let f=b.map(W=>W.current).filter(Boolean);if(a.key===o$b.Space||a.key===o$b.Enter){a.preventDefault(),a.stopPropagation(),u.change(m);return}switch(a.key){case o$b.Home:case o$b.PageUp:return a.preventDefault(),a.stopPropagation(),E(()=>O$1(f,M$4.First));case o$b.End:case o$b.PageDown:return a.preventDefault(),a.stopPropagation(),E(()=>O$1(f,M$4.Last))}if(E(()=>u$b(r,{vertical(){return a.key===o$b.ArrowUp?O$1(f,M$4.Previous|M$4.WrapAround):a.key===o$b.ArrowDown?O$1(f,M$4.Next|M$4.WrapAround):N$2.Error},horizontal(){return a.key===o$b.ArrowLeft?O$1(f,M$4.Previous|M$4.WrapAround):a.key===o$b.ArrowRight?O$1(f,M$4.Next|M$4.WrapAround):N$2.Error}}))===N$2.Success)return a.preventDefault()}),A=React$1.useRef(!1),L=o$g(()=>{var a;A.current||(A.current=!0,(a=l.current)==null||a.focus({preventScroll:!0}),u.change(m),t$d(()=>{A.current=!1;}));}),M=o$g(a=>{a.preventDefault();}),N=React$1.useMemo(()=>({selected:g}),[g]),B={ref:d,onKeyDown:S,onMouseDown:M,onClick:L,id:o,role:"tab",type:T$1(e,l),"aria-controls":(I=(p=c[m])==null?void 0:p.current)==null?void 0:I.id,"aria-selected":g,tabIndex:g?0:-1};return C$1({ourProps:B,theirProps:s,slot:N,defaultTag:xe$1,name:"Tabs.Tab"})}let Ee="div";function Ae(e,n){let{selectedIndex:t}=h$5("Tab.Panels"),o=y$3(n),s=React$1.useMemo(()=>({selectedIndex:t}),[t]);return C$1({ourProps:{ref:o},theirProps:e,slot:s,defaultTag:Ee,name:"Tabs.Panels"})}let Re$1="div",Le$1=O.RenderStrategy|O.Static;function _e$1(e,n){var E,S,A,L;let t=I$6(),{id:o=`headlessui-tabs-panel-${t}`,tabIndex:s=0,...r}=e,{selectedIndex:i,tabs:R,panels:b}=h$5("Tab.Panel"),c=q$1("Tab.Panel"),u=React$1.useRef(null),T=y$3(u,n);l$i(()=>c.registerPanel(u),[c,u]);let l=d$6("panels"),d=b.indexOf(u);d===-1&&(d=l);let x=d===i,m=React$1.useMemo(()=>({selected:x}),[x]),g={ref:T,id:o,role:"tabpanel","aria-labelledby":(S=(E=R[d])==null?void 0:E.current)==null?void 0:S.id,tabIndex:x?s:-1};return !x&&((A=r.unmount)==null||A)&&!((L=r.static)!=null&&L)?React$1.createElement(f$9,{as:"span","aria-hidden":"true",...g}):C$1({ourProps:g,theirProps:r,slot:m,defaultTag:Re$1,features:Le$1,visible:x,name:"Tabs.Panel"})}let Se$1=U$2(ge),Ie=U$2(me),De$1=U$2(ye$1),Fe$1=U$2(Ae),he=U$2(_e$1),$e=Object.assign(Se$1,{Group:Ie,List:De$1,Panels:Fe$1,Panel:he});
74580
74580
 
74581
74581
  function l$d(r){let e={called:!1};return (...t)=>{if(!e.called)return e.called=!0,r(...t)}}
74582
74582
 
@@ -74584,7 +74584,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
74584
74584
 
74585
74585
  function D$1({immediate:t,container:s,direction:n,classes:u,onStart:a,onStop:c}){let l=f$6(),d=p$8(),e=s$l(n);l$i(()=>{t&&(e.current="enter");},[t]),l$i(()=>{let r=o$f();d.add(r.dispose);let i=s.current;if(i&&e.current!=="idle"&&l.current)return r.dispose(),a.current(e.current),r.add(M$2(i,u.current,e.current==="enter",()=>{r.dispose(),c.current(e.current);})),r.dispose},[n]);}
74586
74586
 
74587
- function S$2(t=""){return t.split(/\s+/).filter(n=>n.length>1)}let I=React$1.createContext(null);I.displayName="TransitionContext";var Se=(r=>(r.Visible="visible",r.Hidden="hidden",r))(Se||{});function ye(){let t=React$1.useContext(I);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}function xe(){let t=React$1.useContext(M$1);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}let M$1=React$1.createContext(null);M$1.displayName="NestingContext";function U(t){return "children"in t?U(t.children):t.current.filter(({el:n})=>n.current!==null).filter(({state:n})=>n==="visible").length>0}function se(t,n){let r=s$l(t),s=React$1.useRef([]),R=f$6(),D=p$8(),p=o$g((i,e=v$4.Hidden)=>{let a=s.current.findIndex(({el:o})=>o===i);a!==-1&&(u$b(e,{[v$4.Unmount](){s.current.splice(a,1);},[v$4.Hidden](){s.current[a].state="hidden";}}),D.microTask(()=>{var o;!U(s)&&R.current&&((o=r.current)==null||o.call(r));}));}),x=o$g(i=>{let e=s.current.find(({el:a})=>a===i);return e?e.state!=="visible"&&(e.state="visible"):s.current.push({el:i,state:"visible"}),()=>p(i,v$4.Unmount)}),h=React$1.useRef([]),v=React$1.useRef(Promise.resolve()),u=React$1.useRef({enter:[],leave:[],idle:[]}),g=o$g((i,e,a)=>{h.current.splice(0),n&&(n.chains.current[e]=n.chains.current[e].filter(([o])=>o!==i)),n==null||n.chains.current[e].push([i,new Promise(o=>{h.current.push(o);})]),n==null||n.chains.current[e].push([i,new Promise(o=>{Promise.all(u.current[e].map(([f,N])=>N)).then(()=>o());})]),e==="enter"?v.current=v.current.then(()=>n==null?void 0:n.wait.current).then(()=>a(e)):a(e);}),d=o$g((i,e,a)=>{Promise.all(u.current[e].splice(0).map(([o,f])=>f)).then(()=>{var o;(o=h.current.shift())==null||o();}).then(()=>a(e));});return React$1.useMemo(()=>({children:s,register:x,unregister:p,onStart:g,onStop:d,wait:v,chains:u}),[x,p,s,g,d,u,v])}function Ne(){}let Pe=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ae(t){var r;let n={};for(let s of Pe)n[s]=(r=t[s])!=null?r:Ne;return n}function Re(t){let n=React$1.useRef(ae(t));return React$1.useEffect(()=>{n.current=ae(t);},[t]),n}let De="div",le=O.RenderStrategy;function He(t,n){var Q,Y;let{beforeEnter:r,afterEnter:s,beforeLeave:R,afterLeave:D,enter:p,enterFrom:x,enterTo:h,entered:v,leave:u,leaveFrom:g,leaveTo:d,...i}=t,e=React$1.useRef(null),a=y$3(e,n),o=(Q=i.unmount)==null||Q?v$4.Unmount:v$4.Hidden,{show:f,appear:N,initial:T}=ye(),[l,j]=React$1.useState(f?"visible":"hidden"),z=xe(),{register:L,unregister:O}=z;React$1.useEffect(()=>L(e),[L,e]),React$1.useEffect(()=>{if(o===v$4.Hidden&&e.current){if(f&&l!=="visible"){j("visible");return}return u$b(l,{["hidden"]:()=>O(e),["visible"]:()=>L(e)})}},[l,e,L,O,f,o]);let k=s$l({base:S$2(i.className),enter:S$2(p),enterFrom:S$2(x),enterTo:S$2(h),entered:S$2(v),leave:S$2(u),leaveFrom:S$2(g),leaveTo:S$2(d)}),V=Re({beforeEnter:r,afterEnter:s,beforeLeave:R,afterLeave:D}),G=l$h();React$1.useEffect(()=>{if(G&&l==="visible"&&e.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[e,l,G]);let Te=T&&!N,K=N&&f&&T,de=(()=>!G||Te?"idle":f?"enter":"leave")(),H=c$c(0),fe=o$g(C=>u$b(C,{enter:()=>{H.addFlag(d$b.Opening),V.current.beforeEnter();},leave:()=>{H.addFlag(d$b.Closing),V.current.beforeLeave();},idle:()=>{}})),me=o$g(C=>u$b(C,{enter:()=>{H.removeFlag(d$b.Opening),V.current.afterEnter();},leave:()=>{H.removeFlag(d$b.Closing),V.current.afterLeave();},idle:()=>{}})),w=se(()=>{j("hidden"),O(e);},z),B=React$1.useRef(!1);D$1({immediate:K,container:e,classes:k,direction:de,onStart:s$l(C=>{B.current=!0,w.onStart(e,C,fe);}),onStop:s$l(C=>{B.current=!1,w.onStop(e,C,me),C==="leave"&&!U(w)&&(j("hidden"),O(e));})});let P=i,ce={ref:a};return K?P={...P,className:t$a(i.className,...k.current.enter,...k.current.enterFrom)}:B.current&&(P.className=t$a(i.className,(Y=e.current)==null?void 0:Y.className),P.className===""&&delete P.className),React$1.createElement(M$1.Provider,{value:w},React$1.createElement(s$h,{value:u$b(l,{["visible"]:d$b.Open,["hidden"]:d$b.Closed})|H.flags},C$1({ourProps:ce,theirProps:P,defaultTag:De,features:le,visible:l==="visible",name:"Transition.Child"})))}function Fe(t,n){let{show:r,appear:s=!1,unmount:R=!0,...D}=t,p=React$1.useRef(null),x=y$3(p,n);l$h();let h=u$8();if(r===void 0&&h!==null&&(r=(h&d$b.Open)===d$b.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[v,u]=React$1.useState(r?"visible":"hidden"),g=se(()=>{u("hidden");}),[d,i]=React$1.useState(!0),e=React$1.useRef([r]);l$i(()=>{d!==!1&&e.current[e.current.length-1]!==r&&(e.current.push(r),i(!1));},[e,r]);let a=React$1.useMemo(()=>({show:r,appear:s,initial:d}),[r,s,d]);React$1.useEffect(()=>{if(r)u("visible");else if(!U(g))u("hidden");else {let T=p.current;if(!T)return;let l=T.getBoundingClientRect();l.x===0&&l.y===0&&l.width===0&&l.height===0&&u("hidden");}},[r,g]);let o={unmount:R},f=o$g(()=>{var T;d&&i(!1),(T=t.beforeEnter)==null||T.call(t);}),N=o$g(()=>{var T;d&&i(!1),(T=t.beforeLeave)==null||T.call(t);});return React$1.createElement(M$1.Provider,{value:g},React$1.createElement(I.Provider,{value:a},C$1({ourProps:{...o,as:React$1.Fragment,children:React$1.createElement(ue$1,{ref:x,...o,...D,beforeEnter:f,beforeLeave:N})},theirProps:{},defaultTag:React$1.Fragment,features:le,visible:v==="visible",name:"Transition"})))}function _e(t,n){let r=React$1.useContext(I)!==null,s=u$8()!==null;return React$1.createElement(React$1.Fragment,null,!r&&s?React$1.createElement(q,{ref:n,...t}):React$1.createElement(ue$1,{ref:n,...t}))}let q=U$2(Fe),ue$1=U$2(He),Le=U$2(_e),qe$1=Object.assign(q,{Child:Le,Root:q});
74587
+ function S$2(t=""){return t.split(/\s+/).filter(n=>n.length>1)}let I=React$1.createContext(null);I.displayName="TransitionContext";var Se=(r=>(r.Visible="visible",r.Hidden="hidden",r))(Se||{});function ye(){let t=React$1.useContext(I);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}function xe(){let t=React$1.useContext(M$1);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}let M$1=React$1.createContext(null);M$1.displayName="NestingContext";function U(t){return "children"in t?U(t.children):t.current.filter(({el:n})=>n.current!==null).filter(({state:n})=>n==="visible").length>0}function se(t,n){let r=s$l(t),s=React$1.useRef([]),R=f$6(),D=p$8(),p=o$g((i,e=v$4.Hidden)=>{let a=s.current.findIndex(({el:o})=>o===i);a!==-1&&(u$b(e,{[v$4.Unmount](){s.current.splice(a,1);},[v$4.Hidden](){s.current[a].state="hidden";}}),D.microTask(()=>{var o;!U(s)&&R.current&&((o=r.current)==null||o.call(r));}));}),x=o$g(i=>{let e=s.current.find(({el:a})=>a===i);return e?e.state!=="visible"&&(e.state="visible"):s.current.push({el:i,state:"visible"}),()=>p(i,v$4.Unmount)}),h=React$1.useRef([]),v=React$1.useRef(Promise.resolve()),u=React$1.useRef({enter:[],leave:[],idle:[]}),g=o$g((i,e,a)=>{h.current.splice(0),n&&(n.chains.current[e]=n.chains.current[e].filter(([o])=>o!==i)),n==null||n.chains.current[e].push([i,new Promise(o=>{h.current.push(o);})]),n==null||n.chains.current[e].push([i,new Promise(o=>{Promise.all(u.current[e].map(([f,N])=>N)).then(()=>o());})]),e==="enter"?v.current=v.current.then(()=>n==null?void 0:n.wait.current).then(()=>a(e)):a(e);}),d=o$g((i,e,a)=>{Promise.all(u.current[e].splice(0).map(([o,f])=>f)).then(()=>{var o;(o=h.current.shift())==null||o();}).then(()=>a(e));});return React$1.useMemo(()=>({children:s,register:x,unregister:p,onStart:g,onStop:d,wait:v,chains:u}),[x,p,s,g,d,u,v])}function Ne(){}let Pe=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ae(t){var r;let n={};for(let s of Pe)n[s]=(r=t[s])!=null?r:Ne;return n}function Re(t){let n=React$1.useRef(ae(t));return React$1.useEffect(()=>{n.current=ae(t);},[t]),n}let De="div",le=O.RenderStrategy;function He(t,n){var Q,Y;let{beforeEnter:r,afterEnter:s,beforeLeave:R,afterLeave:D,enter:p,enterFrom:x,enterTo:h,entered:v,leave:u,leaveFrom:g,leaveTo:d,...i}=t,e=React$1.useRef(null),a=y$3(e,n),o=(Q=i.unmount)==null||Q?v$4.Unmount:v$4.Hidden,{show:f,appear:N,initial:T}=ye(),[l,j]=React$1.useState(f?"visible":"hidden"),z=xe(),{register:L,unregister:O}=z;React$1.useEffect(()=>L(e),[L,e]),React$1.useEffect(()=>{if(o===v$4.Hidden&&e.current){if(f&&l!=="visible"){j("visible");return}return u$b(l,{["hidden"]:()=>O(e),["visible"]:()=>L(e)})}},[l,e,L,O,f,o]);let k=s$l({base:S$2(i.className),enter:S$2(p),enterFrom:S$2(x),enterTo:S$2(h),entered:S$2(v),leave:S$2(u),leaveFrom:S$2(g),leaveTo:S$2(d)}),V=Re({beforeEnter:r,afterEnter:s,beforeLeave:R,afterLeave:D}),G=l$h();React$1.useEffect(()=>{if(G&&l==="visible"&&e.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[e,l,G]);let Te=T&&!N,K=N&&f&&T,de=(()=>!G||Te?"idle":f?"enter":"leave")(),H=c$c(0),fe=o$g(C=>u$b(C,{enter:()=>{H.addFlag(d$b.Opening),V.current.beforeEnter();},leave:()=>{H.addFlag(d$b.Closing),V.current.beforeLeave();},idle:()=>{}})),me=o$g(C=>u$b(C,{enter:()=>{H.removeFlag(d$b.Opening),V.current.afterEnter();},leave:()=>{H.removeFlag(d$b.Closing),V.current.afterLeave();},idle:()=>{}})),w=se(()=>{j("hidden"),O(e);},z),B=React$1.useRef(!1);D$1({immediate:K,container:e,classes:k,direction:de,onStart:s$l(C=>{B.current=!0,w.onStart(e,C,fe);}),onStop:s$l(C=>{B.current=!1,w.onStop(e,C,me),C==="leave"&&!U(w)&&(j("hidden"),O(e));})});let P=i,ce={ref:a};return K?P={...P,className:t$a(i.className,...k.current.enter,...k.current.enterFrom)}:B.current&&(P.className=t$a(i.className,(Y=e.current)==null?void 0:Y.className),P.className===""&&delete P.className),React$1.createElement(M$1.Provider,{value:w},React$1.createElement(s$h,{value:u$b(l,{["visible"]:d$b.Open,["hidden"]:d$b.Closed})|H.flags},C$1({ourProps:ce,theirProps:P,defaultTag:De,features:le,visible:l==="visible",name:"Transition.Child"})))}function Fe(t,n){let{show:r,appear:s=!1,unmount:R=!0,...D}=t,p=React$1.useRef(null),x=y$3(p,n);l$h();let h=u$8();if(r===void 0&&h!==null&&(r=(h&d$b.Open)===d$b.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[v,u]=React$1.useState(r?"visible":"hidden"),g=se(()=>{u("hidden");}),[d,i]=React$1.useState(!0),e=React$1.useRef([r]);l$i(()=>{d!==!1&&e.current[e.current.length-1]!==r&&(e.current.push(r),i(!1));},[e,r]);let a=React$1.useMemo(()=>({show:r,appear:s,initial:d}),[r,s,d]);React$1.useEffect(()=>{if(r)u("visible");else if(!U(g))u("hidden");else {let T=p.current;if(!T)return;let l=T.getBoundingClientRect();l.x===0&&l.y===0&&l.width===0&&l.height===0&&u("hidden");}},[r,g]);let o={unmount:R},f=o$g(()=>{var T;d&&i(!1),(T=t.beforeEnter)==null||T.call(t);}),N=o$g(()=>{var T;d&&i(!1),(T=t.beforeLeave)==null||T.call(t);});return React$1.createElement(M$1.Provider,{value:g},React$1.createElement(I.Provider,{value:a},C$1({ourProps:{...o,as:React$1.Fragment,children:React$1.createElement(ue,{ref:x,...o,...D,beforeEnter:f,beforeLeave:N})},theirProps:{},defaultTag:React$1.Fragment,features:le,visible:v==="visible",name:"Transition"})))}function _e(t,n){let r=React$1.useContext(I)!==null,s=u$8()!==null;return React$1.createElement(React$1.Fragment,null,!r&&s?React$1.createElement(q,{ref:n,...t}):React$1.createElement(ue,{ref:n,...t}))}let q=U$2(Fe),ue=U$2(He),Le=U$2(_e),qe=Object.assign(q,{Child:Le,Root:q});
74588
74588
 
74589
74589
  const t$4=t=>{var r=__rest$2(t,[]);return React$1.createElement("svg",Object.assign({},r,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}),React$1.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"}))};
74590
74590
 
@@ -76808,15 +76808,15 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
76808
76808
 
76809
76809
  const t$2=r=>["string","number"].includes(typeof r)?r:r instanceof Array?r.map(t$2).join(""):"object"==typeof r&&r?t$2(r.props.children):void 0;function o$8(r){const o=new Map;return React$1.Children.map(r,(r=>{var e;o.set(r.props.value,null!==(e=t$2(r))&&void 0!==e?e:r.props.value);})),o}function n$b(r,o){return React$1.Children.map(o,(e=>{var o;if((null!==(o=t$2(e))&&void 0!==o?o:e.props.value).toLowerCase().includes(r.toLowerCase()))return e}))}const d$4=(e,t,o=!1)=>t$k(t?"bg-tremor-background-subtle dark:bg-dark-tremor-background-subtle":"bg-tremor-background dark:bg-dark-tremor-background",!t&&"hover:bg-tremor-background-muted dark:hover:bg-dark-tremor-background-muted",e?"text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis":"text-tremor-content dark:text-dark-tremor-content",t&&"text-tremor-content-subtle dark:text-dark-tremor-content-subtle",o&&"text-red-500",o?"border-red-500":"border-tremor-border dark:border-dark-tremor-border");function a$a(r){return null!=r&&""!==r}
76810
76810
 
76811
- const h$4=startOfToday(),w=React$1.forwardRef(((o,w)=>{var g;const{value:v,defaultValue:y,onValueChange:x,minDate:N,maxDate:D,placeholder:j="Select date",disabled:C=!1,locale:E=N$5,enableClear:S=!0,displayFormat:O,className:P,enableYearNavigation:F=!1,weekStartsOn:I=0,disabledDates:V}=o,R=__rest$2(o,["value","defaultValue","onValueChange","minDate","maxDate","placeholder","disabled","locale","enableClear","displayFormat","className","enableYearNavigation","weekStartsOn","disabledDates"]),[T,U]=o$9(y,v),Y=React$1.useMemo((()=>{const e=[];return N&&e.push({before:N}),D&&e.push({after:D}),[...e,...null!=V?V:[]]}),[N,D,V]),M=T?g$3(T,void 0,E,O):j,z=startOfMonth(null!==(g=null!=T?T:D)&&void 0!==g?g:h$4),B=S&&!C;return React$1.createElement(Ct,Object.assign({ref:w,as:"div",className:t$k("relative w-full min-w-[10rem] text-tremor-default","focus:ring-2 focus:ring-tremor-brand-muted dark:focus:ring-dark-tremor-brand-muted",P)},R),React$1.createElement(Ct.Button,{disabled:C,className:t$k("w-full outline-none text-left whitespace-nowrap truncate focus:ring-2 transition duration-100 rounded-tremor-default flex flex-nowrap border pl-3 py-2","border-tremor-border shadow-tremor-input text-tremor-content-emphasis focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:text-dark-tremor-content-emphasis dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",B?"pr-8":"pr-4",d$4(a$a(T),C))},React$1.createElement(t$4,{className:t$k(t$3("calendarIcon"),"flex-none shrink-0 h-5 w-5 mr-2 -ml-0.5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle"),"aria-hidden":"true"}),React$1.createElement("p",{className:"truncate"},M)),B&&T?React$1.createElement("button",{type:"button",className:t$k("absolute outline-none inset-y-0 right-0 flex items-center transition duration-100 mr-4"),onClick:e=>{e.preventDefault(),null==x||x(void 0),U(void 0);}},React$1.createElement(r$d,{className:t$k("flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,React$1.createElement(qe$1,{className:"absolute z-10 min-w-min left-0",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},React$1.createElement(Ct.Panel,{className:t$k("divide-y overflow-y-auto outline-none rounded-tremor-default p-3 border my-1","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")},(({close:e})=>React$1.createElement(u$3,{showOutsideDays:!0,mode:"single",defaultMonth:z,selected:T,weekStartsOn:I,onSelect:r=>{null==x||x(r),U(r),e();},locale:E,disabled:Y,enableYearNavigation:F})))))}));w.displayName="DatePicker";
76811
+ const h$4=startOfToday(),w=React$1.forwardRef(((o,w)=>{var g;const{value:v,defaultValue:y,onValueChange:x,minDate:N,maxDate:D,placeholder:j="Select date",disabled:C=!1,locale:E=N$5,enableClear:S=!0,displayFormat:O,className:P,enableYearNavigation:F=!1,weekStartsOn:I=0,disabledDates:V}=o,R=__rest$2(o,["value","defaultValue","onValueChange","minDate","maxDate","placeholder","disabled","locale","enableClear","displayFormat","className","enableYearNavigation","weekStartsOn","disabledDates"]),[T,U]=o$9(y,v),Y=React$1.useMemo((()=>{const e=[];return N&&e.push({before:N}),D&&e.push({after:D}),[...e,...null!=V?V:[]]}),[N,D,V]),M=T?g$3(T,void 0,E,O):j,z=startOfMonth(null!==(g=null!=T?T:D)&&void 0!==g?g:h$4),B=S&&!C;return React$1.createElement(Ct,Object.assign({ref:w,as:"div",className:t$k("relative w-full min-w-[10rem] text-tremor-default","focus:ring-2 focus:ring-tremor-brand-muted dark:focus:ring-dark-tremor-brand-muted",P)},R),React$1.createElement(Ct.Button,{disabled:C,className:t$k("w-full outline-none text-left whitespace-nowrap truncate focus:ring-2 transition duration-100 rounded-tremor-default flex flex-nowrap border pl-3 py-2","border-tremor-border shadow-tremor-input text-tremor-content-emphasis focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:text-dark-tremor-content-emphasis dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",B?"pr-8":"pr-4",d$4(a$a(T),C))},React$1.createElement(t$4,{className:t$k(t$3("calendarIcon"),"flex-none shrink-0 h-5 w-5 mr-2 -ml-0.5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle"),"aria-hidden":"true"}),React$1.createElement("p",{className:"truncate"},M)),B&&T?React$1.createElement("button",{type:"button",className:t$k("absolute outline-none inset-y-0 right-0 flex items-center transition duration-100 mr-4"),onClick:e=>{e.preventDefault(),null==x||x(void 0),U(void 0);}},React$1.createElement(r$d,{className:t$k("flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,React$1.createElement(qe,{className:"absolute z-10 min-w-min left-0",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},React$1.createElement(Ct.Panel,{className:t$k("divide-y overflow-y-auto outline-none rounded-tremor-default p-3 border my-1","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")},(({close:e})=>React$1.createElement(u$3,{showOutsideDays:!0,mode:"single",defaultMonth:z,selected:T,weekStartsOn:I,onSelect:r=>{null==x||x(r),U(r),e();},locale:E,disabled:Y,enableYearNavigation:F})))))}));w.displayName="DatePicker";
76812
76812
 
76813
76813
  const r$8=r=>{var o=__rest$2(r,[]);return React$1.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},o),React$1.createElement("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"}))};
76814
76814
 
76815
- const h$3=s$p("Select"),k$3=React$1.forwardRef(((m,k)=>{const{defaultValue:w="",value:v,onValueChange:x,placeholder:y="Select...",disabled:g=!1,icon:N,enableClear:E=!1,required:C,children:j,name:I,error:V=!1,errorMessage:D,className:F,id:M}=m,S=__rest$2(m,["defaultValue","value","onValueChange","placeholder","disabled","icon","enableClear","required","children","name","error","errorMessage","className","id"]),q=React$1.useRef(null),A=React$1.Children.toArray(j),[T,z]=o$9(w,v),O=N,B=React$1.useMemo((()=>{const e=React$1.Children.toArray(j).filter(React$1.isValidElement);return o$8(e)}),[j]);return React$1.createElement("div",{className:t$k("w-full min-w-[10rem] relative text-tremor-default")},React$1.createElement("select",{title:"select-hidden",required:C,className:t$k("h-full w-full absolute left-0 top-0 z-0 opacity-0"),value:T,onChange:e=>{e.preventDefault();},name:I,disabled:g,id:M,onFocus:()=>{const e=q.current;e&&e.focus();}},React$1.createElement("option",{className:"hidden",value:"",disabled:!0,hidden:!0},y),A.map((e=>{const t=e.props.value,a=e.props.children;return React$1.createElement("option",{className:"hidden",key:t,value:t},a)}))),React$1.createElement(It,Object.assign({as:"div",ref:k,defaultValue:T,value:T,onChange:e=>{null==x||x(e),z(e);},disabled:g,className:t$k("w-full min-w-[10rem] relative text-tremor-default",F),id:M},S),(({value:e})=>{var t;return React$1.createElement(React$1.Fragment,null,React$1.createElement(It.Button,{ref:q,className:t$k("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100 border pr-8 py-2","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",O?"pl-10":"pl-3",d$4(a$a(e),g,V))},O&&React$1.createElement("span",{className:t$k("absolute inset-y-0 left-0 flex items-center ml-px pl-2.5")},React$1.createElement(O,{className:t$k(h$3("Icon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),React$1.createElement("span",{className:"w-[90%] block truncate"},e&&null!==(t=B.get(e))&&void 0!==t?t:y),React$1.createElement("span",{className:t$k("absolute inset-y-0 right-0 flex items-center mr-3")},React$1.createElement(r$8,{className:t$k(h$3("arrowDownIcon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}))),E&&T?React$1.createElement("button",{type:"button",className:t$k("absolute inset-y-0 right-0 flex items-center mr-8"),onClick:e=>{e.preventDefault(),z(""),null==x||x("");}},React$1.createElement(r$d,{className:t$k(h$3("clearIcon"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,React$1.createElement(qe$1,{className:"absolute z-10 w-full",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},React$1.createElement(It.Options,{className:t$k("divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] left-0 border my-1","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")},j)))})),V&&D?React$1.createElement("p",{className:t$k("errorMessage","text-sm text-rose-500 mt-1")},D):null)}));k$3.displayName="Select";
76815
+ const h$3=s$p("Select"),k$3=React$1.forwardRef(((m,k)=>{const{defaultValue:w="",value:v,onValueChange:x,placeholder:y="Select...",disabled:g=!1,icon:N,enableClear:E=!1,required:C,children:j,name:I,error:V=!1,errorMessage:D,className:F,id:M}=m,S=__rest$2(m,["defaultValue","value","onValueChange","placeholder","disabled","icon","enableClear","required","children","name","error","errorMessage","className","id"]),q=React$1.useRef(null),A=React$1.Children.toArray(j),[T,z]=o$9(w,v),O=N,B=React$1.useMemo((()=>{const e=React$1.Children.toArray(j).filter(React$1.isValidElement);return o$8(e)}),[j]);return React$1.createElement("div",{className:t$k("w-full min-w-[10rem] relative text-tremor-default")},React$1.createElement("select",{title:"select-hidden",required:C,className:t$k("h-full w-full absolute left-0 top-0 z-0 opacity-0"),value:T,onChange:e=>{e.preventDefault();},name:I,disabled:g,id:M,onFocus:()=>{const e=q.current;e&&e.focus();}},React$1.createElement("option",{className:"hidden",value:"",disabled:!0,hidden:!0},y),A.map((e=>{const t=e.props.value,a=e.props.children;return React$1.createElement("option",{className:"hidden",key:t,value:t},a)}))),React$1.createElement(It,Object.assign({as:"div",ref:k,defaultValue:T,value:T,onChange:e=>{null==x||x(e),z(e);},disabled:g,className:t$k("w-full min-w-[10rem] relative text-tremor-default",F),id:M},S),(({value:e})=>{var t;return React$1.createElement(React$1.Fragment,null,React$1.createElement(It.Button,{ref:q,className:t$k("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100 border pr-8 py-2","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",O?"pl-10":"pl-3",d$4(a$a(e),g,V))},O&&React$1.createElement("span",{className:t$k("absolute inset-y-0 left-0 flex items-center ml-px pl-2.5")},React$1.createElement(O,{className:t$k(h$3("Icon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),React$1.createElement("span",{className:"w-[90%] block truncate"},e&&null!==(t=B.get(e))&&void 0!==t?t:y),React$1.createElement("span",{className:t$k("absolute inset-y-0 right-0 flex items-center mr-3")},React$1.createElement(r$8,{className:t$k(h$3("arrowDownIcon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}))),E&&T?React$1.createElement("button",{type:"button",className:t$k("absolute inset-y-0 right-0 flex items-center mr-8"),onClick:e=>{e.preventDefault(),z(""),null==x||x("");}},React$1.createElement(r$d,{className:t$k(h$3("clearIcon"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,React$1.createElement(qe,{className:"absolute z-10 w-full",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},React$1.createElement(It.Options,{className:t$k("divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] left-0 border my-1","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")},j)))})),V&&D?React$1.createElement("p",{className:t$k("errorMessage","text-sm text-rose-500 mt-1")},D):null)}));k$3.displayName="Select";
76816
76816
 
76817
76817
  const c$a=s$p("SelectItem"),n$a=React$1.forwardRef(((o,n)=>{const{value:m,icon:s,className:i,children:l}=o,d=__rest$2(o,["value","icon","className","children"]),u=s;return React$1.createElement(It.Option,Object.assign({className:t$k(c$a("root"),"flex justify-start items-center cursor-default text-tremor-default px-2.5 py-2.5","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",i),ref:n,key:m,value:m},d),u&&React$1.createElement(u,{className:t$k(c$a("icon"),"flex-none w-5 h-5 mr-1.5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}),React$1.createElement("span",{className:"whitespace-nowrap truncate"},null!=l?l:m))}));n$a.displayName="SelectItem";
76818
76818
 
76819
- const S$1=startOfToday(),j=React$1.forwardRef(((m,j)=>{var C,D;const{value:F,defaultValue:O,onValueChange:V,enableSelect:I=!0,minDate:_,maxDate:P,placeholder:T="Select range",selectPlaceholder:z="Select range",disabled:B=!1,locale:M=N$5,enableClear:R=!0,displayFormat:Y,children:U,className:X,enableYearNavigation:q=!1,weekStartsOn:A=0,disabledDates:G}=m,H=__rest$2(m,["value","defaultValue","onValueChange","enableSelect","minDate","maxDate","placeholder","selectPlaceholder","disabled","locale","enableClear","displayFormat","children","className","enableYearNavigation","weekStartsOn","disabledDates"]),[J,K]=o$9(O,F),[L,Q]=React$1.useState(!1),[W,Z]=React$1.useState(!1),$=React$1.useMemo((()=>{const e=[];return _&&e.push({before:_}),P&&e.push({after:P}),[...e,...null!=G?G:[]]}),[_,P,G]),ee=React$1.useMemo((()=>{const e=new Map;return U?React$1.Children.forEach(U,(r=>{var t;e.set(r.props.value,{text:null!==(t=t$2(r))&&void 0!==t?t:r.props.value,from:r.props.from,to:r.props.to});})):d$5.forEach((r=>{e.set(r.value,{text:r.text,from:r.from,to:S$1});})),e}),[U]),re=React$1.useMemo((()=>{if(U)return o$8(U);const e=new Map;return d$5.forEach((r=>e.set(r.value,r.text))),e}),[U]),te=(null==J?void 0:J.selectValue)||"",ae=f$1(null==J?void 0:J.from,_,te,ee),oe=s$b(null==J?void 0:J.to,P,te,ee),ne=ae||oe?g$3(ae,oe,M,Y):T,le=startOfMonth(null!==(D=null!==(C=null!=oe?oe:ae)&&void 0!==C?C:P)&&void 0!==D?D:S$1),de=R&&!B;return React$1.createElement("div",Object.assign({ref:j,className:t$k("w-full min-w-[10rem] relative flex justify-between text-tremor-default max-w-sm shadow-tremor-input dark:shadow-dark-tremor-input rounded-tremor-default",X)},H),React$1.createElement(Ct,{as:"div",className:t$k("w-full",I?"rounded-l-tremor-default":"rounded-tremor-default",L&&"ring-2 ring-tremor-brand-muted dark:ring-dark-tremor-brand-muted z-10")},React$1.createElement("div",{className:"relative w-full"},React$1.createElement(Ct.Button,{onFocus:()=>Q(!0),onBlur:()=>Q(!1),disabled:B,className:t$k("w-full outline-none text-left whitespace-nowrap truncate focus:ring-2 transition duration-100 rounded-l-tremor-default flex flex-nowrap border pl-3 py-2","rounded-l-tremor-default border-tremor-border text-tremor-content-emphasis focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:text-dark-tremor-content-emphasis dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",I?"rounded-l-tremor-default":"rounded-tremor-default",de?"pr-8":"pr-4",d$4(a$a(ae||oe),B))},React$1.createElement(t$4,{className:t$k(c$b("calendarIcon"),"flex-none shrink-0 h-5 w-5 -ml-0.5 mr-2","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle"),"aria-hidden":"true"}),React$1.createElement("p",{className:"truncate"},ne)),de&&ae?React$1.createElement("button",{type:"button",className:t$k("absolute outline-none inset-y-0 right-0 flex items-center transition duration-100 mr-4"),onClick:e=>{e.preventDefault(),null==V||V({}),K({});}},React$1.createElement(r$d,{className:t$k(c$b("clearIcon"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null),React$1.createElement(qe$1,{className:"absolute z-10 min-w-min left-0",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},React$1.createElement(Ct.Panel,{focus:!0,className:t$k("divide-y overflow-y-auto outline-none rounded-tremor-default p-3 border my-1","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")},React$1.createElement(u$3,Object.assign({mode:"range",showOutsideDays:!0,defaultMonth:le,selected:{from:ae,to:oe},onSelect:e=>{null==V||V({from:null==e?void 0:e.from,to:null==e?void 0:e.to}),K({from:null==e?void 0:e.from,to:null==e?void 0:e.to});},locale:M,disabled:$,enableYearNavigation:q,classNames:{day_range_middle:t$k("!rounded-none aria-selected:!bg-tremor-background-subtle aria-selected:dark:!bg-dark-tremor-background-subtle aria-selected:!text-tremor-content aria-selected:dark:!bg-dark-tremor-background-subtle"),day_range_start:"rounded-r-none rounded-l-tremor-small aria-selected:text-tremor-brand-inverted dark:aria-selected:text-dark-tremor-brand-inverted",day_range_end:"rounded-l-none rounded-r-tremor-small aria-selected:text-tremor-brand-inverted dark:aria-selected:text-dark-tremor-brand-inverted"},weekStartsOn:A},m))))),I&&React$1.createElement(It,{as:"div",className:t$k("w-48 -ml-px rounded-r-tremor-default",W&&"ring-2 ring-tremor-brand-muted dark:ring-dark-tremor-brand-muted z-10"),value:te,onChange:e=>{const{from:r,to:t}=ee.get(e),a=null!=t?t:S$1;null==V||V({from:r,to:a,selectValue:e}),K({from:r,to:a,selectValue:e});},disabled:B},(({value:e})=>{var r;return React$1.createElement(React$1.Fragment,null,React$1.createElement(It.Button,{onFocus:()=>Z(!0),onBlur:()=>Z(!1),className:t$k("w-full outline-none text-left whitespace-nowrap truncate rounded-r-tremor-default transition duration-100 border px-4 py-2","border-tremor-border text-tremor-content-emphasis focus:border-tremor-brand-subtle","dark:border-dark-tremor-border dark:text-dark-tremor-content-emphasis dark:focus:border-dark-tremor-brand-subtle",d$4(a$a(e),B))},e&&null!==(r=re.get(e))&&void 0!==r?r:z),React$1.createElement(qe$1,{className:"absolute z-10 w-full inset-x-0 right-0",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},React$1.createElement(It.Options,{className:t$k("divide-y overflow-y-auto outline-none border my-1","shadow-tremor-dropdown bg-tremor-background border-tremor-border divide-tremor-border rounded-tremor-default","dark:shadow-dark-tremor-dropdown dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border")},null!=U?U:d$5.map((e=>React$1.createElement(n$a,{key:e.value,value:e.value},e.text))))))})))}));j.displayName="DateRangePicker";
76819
+ const S$1=startOfToday(),j=React$1.forwardRef(((m,j)=>{var C,D;const{value:F,defaultValue:O,onValueChange:V,enableSelect:I=!0,minDate:_,maxDate:P,placeholder:T="Select range",selectPlaceholder:z="Select range",disabled:B=!1,locale:M=N$5,enableClear:R=!0,displayFormat:Y,children:U,className:X,enableYearNavigation:q=!1,weekStartsOn:A=0,disabledDates:G}=m,H=__rest$2(m,["value","defaultValue","onValueChange","enableSelect","minDate","maxDate","placeholder","selectPlaceholder","disabled","locale","enableClear","displayFormat","children","className","enableYearNavigation","weekStartsOn","disabledDates"]),[J,K]=o$9(O,F),[L,Q]=React$1.useState(!1),[W,Z]=React$1.useState(!1),$=React$1.useMemo((()=>{const e=[];return _&&e.push({before:_}),P&&e.push({after:P}),[...e,...null!=G?G:[]]}),[_,P,G]),ee=React$1.useMemo((()=>{const e=new Map;return U?React$1.Children.forEach(U,(r=>{var t;e.set(r.props.value,{text:null!==(t=t$2(r))&&void 0!==t?t:r.props.value,from:r.props.from,to:r.props.to});})):d$5.forEach((r=>{e.set(r.value,{text:r.text,from:r.from,to:S$1});})),e}),[U]),re=React$1.useMemo((()=>{if(U)return o$8(U);const e=new Map;return d$5.forEach((r=>e.set(r.value,r.text))),e}),[U]),te=(null==J?void 0:J.selectValue)||"",ae=f$1(null==J?void 0:J.from,_,te,ee),oe=s$b(null==J?void 0:J.to,P,te,ee),ne=ae||oe?g$3(ae,oe,M,Y):T,le=startOfMonth(null!==(D=null!==(C=null!=oe?oe:ae)&&void 0!==C?C:P)&&void 0!==D?D:S$1),de=R&&!B;return React$1.createElement("div",Object.assign({ref:j,className:t$k("w-full min-w-[10rem] relative flex justify-between text-tremor-default max-w-sm shadow-tremor-input dark:shadow-dark-tremor-input rounded-tremor-default",X)},H),React$1.createElement(Ct,{as:"div",className:t$k("w-full",I?"rounded-l-tremor-default":"rounded-tremor-default",L&&"ring-2 ring-tremor-brand-muted dark:ring-dark-tremor-brand-muted z-10")},React$1.createElement("div",{className:"relative w-full"},React$1.createElement(Ct.Button,{onFocus:()=>Q(!0),onBlur:()=>Q(!1),disabled:B,className:t$k("w-full outline-none text-left whitespace-nowrap truncate focus:ring-2 transition duration-100 rounded-l-tremor-default flex flex-nowrap border pl-3 py-2","rounded-l-tremor-default border-tremor-border text-tremor-content-emphasis focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:text-dark-tremor-content-emphasis dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",I?"rounded-l-tremor-default":"rounded-tremor-default",de?"pr-8":"pr-4",d$4(a$a(ae||oe),B))},React$1.createElement(t$4,{className:t$k(c$b("calendarIcon"),"flex-none shrink-0 h-5 w-5 -ml-0.5 mr-2","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle"),"aria-hidden":"true"}),React$1.createElement("p",{className:"truncate"},ne)),de&&ae?React$1.createElement("button",{type:"button",className:t$k("absolute outline-none inset-y-0 right-0 flex items-center transition duration-100 mr-4"),onClick:e=>{e.preventDefault(),null==V||V({}),K({});}},React$1.createElement(r$d,{className:t$k(c$b("clearIcon"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null),React$1.createElement(qe,{className:"absolute z-10 min-w-min left-0",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},React$1.createElement(Ct.Panel,{focus:!0,className:t$k("divide-y overflow-y-auto outline-none rounded-tremor-default p-3 border my-1","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")},React$1.createElement(u$3,Object.assign({mode:"range",showOutsideDays:!0,defaultMonth:le,selected:{from:ae,to:oe},onSelect:e=>{null==V||V({from:null==e?void 0:e.from,to:null==e?void 0:e.to}),K({from:null==e?void 0:e.from,to:null==e?void 0:e.to});},locale:M,disabled:$,enableYearNavigation:q,classNames:{day_range_middle:t$k("!rounded-none aria-selected:!bg-tremor-background-subtle aria-selected:dark:!bg-dark-tremor-background-subtle aria-selected:!text-tremor-content aria-selected:dark:!bg-dark-tremor-background-subtle"),day_range_start:"rounded-r-none rounded-l-tremor-small aria-selected:text-tremor-brand-inverted dark:aria-selected:text-dark-tremor-brand-inverted",day_range_end:"rounded-l-none rounded-r-tremor-small aria-selected:text-tremor-brand-inverted dark:aria-selected:text-dark-tremor-brand-inverted"},weekStartsOn:A},m))))),I&&React$1.createElement(It,{as:"div",className:t$k("w-48 -ml-px rounded-r-tremor-default",W&&"ring-2 ring-tremor-brand-muted dark:ring-dark-tremor-brand-muted z-10"),value:te,onChange:e=>{const{from:r,to:t}=ee.get(e),a=null!=t?t:S$1;null==V||V({from:r,to:a,selectValue:e}),K({from:r,to:a,selectValue:e});},disabled:B},(({value:e})=>{var r;return React$1.createElement(React$1.Fragment,null,React$1.createElement(It.Button,{onFocus:()=>Z(!0),onBlur:()=>Z(!1),className:t$k("w-full outline-none text-left whitespace-nowrap truncate rounded-r-tremor-default transition duration-100 border px-4 py-2","border-tremor-border text-tremor-content-emphasis focus:border-tremor-brand-subtle","dark:border-dark-tremor-border dark:text-dark-tremor-content-emphasis dark:focus:border-dark-tremor-brand-subtle",d$4(a$a(e),B))},e&&null!==(r=re.get(e))&&void 0!==r?r:z),React$1.createElement(qe,{className:"absolute z-10 w-full inset-x-0 right-0",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},React$1.createElement(It.Options,{className:t$k("divide-y overflow-y-auto outline-none border my-1","shadow-tremor-dropdown bg-tremor-background border-tremor-border divide-tremor-border rounded-tremor-default","dark:shadow-dark-tremor-dropdown dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border")},null!=U?U:d$5.map((e=>React$1.createElement(n$a,{key:e.value,value:e.value},e.text))))))})))}));j.displayName="DateRangePicker";
76820
76820
 
76821
76821
  const l$c=React$1.forwardRef(((l,r)=>{const{value:c,className:s,children:m}=l,o=__rest$2(l,["value","className","children"]);return React$1.createElement(n$a,Object.assign({ref:r,className:s,value:c},o),null!=m?m:c)}));l$c.displayName="DateRangePickerItem";
76822
76822
 
@@ -76832,7 +76832,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
76832
76832
 
76833
76833
  const r$6=r=>{var o=__rest$2(r,[]);return React$1.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),React$1.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),React$1.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))};
76834
76834
 
76835
- const k$2=s$p("MultiSelect"),v=React$1.forwardRef(((b,v)=>{const{defaultValue:g=[],value:w,onValueChange:E,placeholder:y="Select...",placeholderSearch:N="Search",disabled:C=!1,icon:j,children:I,className:S,required:V,name:D,error:M=!1,errorMessage:A,id:F}=b,q=__rest$2(b,["defaultValue","value","onValueChange","placeholder","placeholderSearch","disabled","icon","children","className","required","name","error","errorMessage","id"]),B=React$1.useRef(null),O=j,[R,T]=o$9(g,w),{reactElementChildren:z,optionsAvailable:P}=React$1.useMemo((()=>{const e=React$1.Children.toArray(I).filter(React$1.isValidElement);return {reactElementChildren:e,optionsAvailable:n$b("",e)}}),[I]),[X,H]=React$1.useState(""),K=(null!=R?R:[]).length>0,U=React$1.useMemo((()=>X?n$b(X,z):P),[X,z,P]),G=()=>{H("");};return React$1.createElement("div",{className:t$k("w-full min-w-[10rem] relative text-tremor-default")},React$1.createElement("select",{title:"multi-select-hidden",required:V,className:t$k("h-full w-full absolute left-0 top-0 z-0 opacity-0"),value:R,onChange:e=>{e.preventDefault();},name:D,disabled:C,multiple:!0,id:F,onFocus:()=>{const e=B.current;e&&e.focus();}},React$1.createElement("option",{className:"hidden",value:"",disabled:!0,hidden:!0},y),U.map((e=>{const r=e.props.value,a=e.props.children;return React$1.createElement("option",{className:"hidden",key:r,value:r},a)}))),React$1.createElement(It,Object.assign({as:"div",ref:v,defaultValue:R,value:R,onChange:e=>{null==E||E(e),T(e);},disabled:C,className:t$k("w-full min-w-[10rem] relative text-tremor-default",S),id:F,multiple:!0},q),(({value:e})=>React$1.createElement(React$1.Fragment,null,React$1.createElement(It.Button,{className:t$k("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100 border pr-8 py-1.5","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",O?"pl-11 -ml-0.5":"pl-3",d$4(e.length>0,C,M)),ref:B},O&&React$1.createElement("span",{className:t$k("absolute inset-y-0 left-0 flex items-center ml-px pl-2.5")},React$1.createElement(O,{className:t$k(k$2("Icon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),React$1.createElement("div",{className:"h-6 flex items-center"},e.length>0?React$1.createElement("div",{className:"flex flex-nowrap overflow-x-scroll [&::-webkit-scrollbar]:hidden [scrollbar-width:none] gap-x-1 mr-5 -ml-1.5 relative"},P.filter((t=>e.includes(t.props.value))).map(((r,a)=>{var o;return React$1.createElement("div",{key:a,className:t$k("max-w-[100px] lg:max-w-[200px] flex justify-center items-center pl-2 pr-1.5 py-1 font-medium","rounded-tremor-small","bg-tremor-background-muted dark:bg-dark-tremor-background-muted","bg-tremor-background-subtle dark:bg-dark-tremor-background-subtle","text-tremor-content-default dark:text-dark-tremor-content-default","text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis")},React$1.createElement("div",{className:"text-xs truncate "},null!==(o=r.props.children)&&void 0!==o?o:r.props.value),React$1.createElement("div",{onClick:t=>{t.preventDefault();const a=e.filter((e=>e!==r.props.value));null==E||E(a),T(a);}},React$1.createElement(r$6,{className:t$k(k$2("clearIconItem"),"cursor-pointer rounded-tremor-full w-3.5 h-3.5 ml-2","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle dark:hover:text-tremor-content")})))}))):React$1.createElement("span",null,y)),React$1.createElement("span",{className:t$k("absolute inset-y-0 right-0 flex items-center mr-2.5")},React$1.createElement(r$8,{className:t$k(k$2("arrowDownIcon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}))),K&&!C?React$1.createElement("button",{type:"button",className:t$k("absolute inset-y-0 right-0 flex items-center mr-8"),onClick:e=>{e.preventDefault(),T([]),null==E||E([]);}},React$1.createElement(r$d,{className:t$k(k$2("clearIconAllItems"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,React$1.createElement(qe$1,{className:"absolute z-10 w-full",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},React$1.createElement(It.Options,{className:t$k("divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] left-0 border my-1","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")},React$1.createElement("div",{className:t$k("flex items-center w-full px-2.5","bg-tremor-background-muted","dark:bg-dark-tremor-background-muted")},React$1.createElement("span",null,React$1.createElement(r$7,{className:t$k("flex-none w-4 h-4 mr-2","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),React$1.createElement("input",{name:"search",type:"input",autoComplete:"off",placeholder:N,className:t$k("w-full focus:outline-none focus:ring-none bg-transparent text-tremor-default py-2","text-tremor-content-emphasis","dark:text-dark-tremor-content-subtle"),onKeyDown:e=>{"Space"===e.code&&""!==e.target.value&&e.stopPropagation();},onChange:e=>H(e.target.value),value:X})),React$1.createElement(a$9.Provider,Object.assign({},{onBlur:{handleResetSearch:G}},{value:{selectedValue:e}}),U)))))),M&&A?React$1.createElement("p",{className:t$k("errorMessage","text-sm text-rose-500 mt-1")},A):null)}));v.displayName="MultiSelect";
76835
+ const k$2=s$p("MultiSelect"),v=React$1.forwardRef(((b,v)=>{const{defaultValue:g=[],value:w,onValueChange:E,placeholder:y="Select...",placeholderSearch:N="Search",disabled:C=!1,icon:j,children:I,className:S,required:V,name:D,error:M=!1,errorMessage:A,id:F}=b,q=__rest$2(b,["defaultValue","value","onValueChange","placeholder","placeholderSearch","disabled","icon","children","className","required","name","error","errorMessage","id"]),B=React$1.useRef(null),O=j,[R,T]=o$9(g,w),{reactElementChildren:z,optionsAvailable:P}=React$1.useMemo((()=>{const e=React$1.Children.toArray(I).filter(React$1.isValidElement);return {reactElementChildren:e,optionsAvailable:n$b("",e)}}),[I]),[X,H]=React$1.useState(""),K=(null!=R?R:[]).length>0,U=React$1.useMemo((()=>X?n$b(X,z):P),[X,z,P]),G=()=>{H("");};return React$1.createElement("div",{className:t$k("w-full min-w-[10rem] relative text-tremor-default")},React$1.createElement("select",{title:"multi-select-hidden",required:V,className:t$k("h-full w-full absolute left-0 top-0 z-0 opacity-0"),value:R,onChange:e=>{e.preventDefault();},name:D,disabled:C,multiple:!0,id:F,onFocus:()=>{const e=B.current;e&&e.focus();}},React$1.createElement("option",{className:"hidden",value:"",disabled:!0,hidden:!0},y),U.map((e=>{const r=e.props.value,a=e.props.children;return React$1.createElement("option",{className:"hidden",key:r,value:r},a)}))),React$1.createElement(It,Object.assign({as:"div",ref:v,defaultValue:R,value:R,onChange:e=>{null==E||E(e),T(e);},disabled:C,className:t$k("w-full min-w-[10rem] relative text-tremor-default",S),id:F,multiple:!0},q),(({value:e})=>React$1.createElement(React$1.Fragment,null,React$1.createElement(It.Button,{className:t$k("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100 border pr-8 py-1.5","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",O?"pl-11 -ml-0.5":"pl-3",d$4(e.length>0,C,M)),ref:B},O&&React$1.createElement("span",{className:t$k("absolute inset-y-0 left-0 flex items-center ml-px pl-2.5")},React$1.createElement(O,{className:t$k(k$2("Icon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),React$1.createElement("div",{className:"h-6 flex items-center"},e.length>0?React$1.createElement("div",{className:"flex flex-nowrap overflow-x-scroll [&::-webkit-scrollbar]:hidden [scrollbar-width:none] gap-x-1 mr-5 -ml-1.5 relative"},P.filter((t=>e.includes(t.props.value))).map(((r,a)=>{var o;return React$1.createElement("div",{key:a,className:t$k("max-w-[100px] lg:max-w-[200px] flex justify-center items-center pl-2 pr-1.5 py-1 font-medium","rounded-tremor-small","bg-tremor-background-muted dark:bg-dark-tremor-background-muted","bg-tremor-background-subtle dark:bg-dark-tremor-background-subtle","text-tremor-content-default dark:text-dark-tremor-content-default","text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis")},React$1.createElement("div",{className:"text-xs truncate "},null!==(o=r.props.children)&&void 0!==o?o:r.props.value),React$1.createElement("div",{onClick:t=>{t.preventDefault();const a=e.filter((e=>e!==r.props.value));null==E||E(a),T(a);}},React$1.createElement(r$6,{className:t$k(k$2("clearIconItem"),"cursor-pointer rounded-tremor-full w-3.5 h-3.5 ml-2","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle dark:hover:text-tremor-content")})))}))):React$1.createElement("span",null,y)),React$1.createElement("span",{className:t$k("absolute inset-y-0 right-0 flex items-center mr-2.5")},React$1.createElement(r$8,{className:t$k(k$2("arrowDownIcon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}))),K&&!C?React$1.createElement("button",{type:"button",className:t$k("absolute inset-y-0 right-0 flex items-center mr-8"),onClick:e=>{e.preventDefault(),T([]),null==E||E([]);}},React$1.createElement(r$d,{className:t$k(k$2("clearIconAllItems"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,React$1.createElement(qe,{className:"absolute z-10 w-full",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},React$1.createElement(It.Options,{className:t$k("divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] left-0 border my-1","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")},React$1.createElement("div",{className:t$k("flex items-center w-full px-2.5","bg-tremor-background-muted","dark:bg-dark-tremor-background-muted")},React$1.createElement("span",null,React$1.createElement(r$7,{className:t$k("flex-none w-4 h-4 mr-2","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),React$1.createElement("input",{name:"search",type:"input",autoComplete:"off",placeholder:N,className:t$k("w-full focus:outline-none focus:ring-none bg-transparent text-tremor-default py-2","text-tremor-content-emphasis","dark:text-dark-tremor-content-subtle"),onKeyDown:e=>{"Space"===e.code&&""!==e.target.value&&e.stopPropagation();},onChange:e=>H(e.target.value),value:X})),React$1.createElement(a$9.Provider,Object.assign({},{onBlur:{handleResetSearch:G}},{value:{selectedValue:e}}),U)))))),M&&A?React$1.createElement("p",{className:t$k("errorMessage","text-sm text-rose-500 mt-1")},A):null)}));v.displayName="MultiSelect";
76836
76836
 
76837
76837
  const m$h=s$p("MultiSelectItem"),i$c=React$1.forwardRef(((c,i)=>{const{value:l,className:d,children:u}=c,p=__rest$2(c,["value","className","children"]),{selectedValue:x}=React$1.useContext(a$9),k=n$m(l,x);return React$1.createElement(It.Option,Object.assign({className:t$k(m$h("root"),"flex justify-start items-center cursor-default text-tremor-default p-2.5","ui-active:bg-tremor-background-muted ui-active:text-tremor-content-strong ui-selected:text-tremor-content-strong text-tremor-content-emphasis","dark:ui-active:bg-dark-tremor-background-muted dark:ui-active:text-dark-tremor-content-strong dark:ui-selected:text-dark-tremor-content-strong dark:ui-selected:bg-dark-tremor-background-muted dark:text-dark-tremor-content-emphasis",d),ref:i,key:l,value:l},p),React$1.createElement("input",{type:"checkbox",className:t$k(m$h("checkbox"),"flex-none focus:ring-none focus:outline-none cursor-pointer mr-2.5","accent-tremor-brand","dark:accent-dark-tremor-brand"),checked:k,readOnly:!0}),React$1.createElement("span",{className:"whitespace-nowrap truncate"},null!=u?u:l))}));i$c.displayName="MultiSelectItem";
76838
76838
 
@@ -76850,21 +76850,21 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
76850
76850
 
76851
76851
  const p$3="flex mx-auto text-tremor-content-subtle dark:text-dark-tremor-content-subtle",c$9="cursor-pointer hover:text-tremor-content dark:hover:text-dark-tremor-content",i$a=React$1.forwardRef(((i,d)=>{const{onSubmit:m,enableStepper:b=!0,disabled:v,onValueChange:f,onChange:k}=i,w=__rest$2(i,["onSubmit","enableStepper","disabled","onValueChange","onChange"]),y=React$1.useRef(null),[h,x]=React$1.useState(!1),g=React$1.useCallback((()=>{x(!0);}),[]),C=React$1.useCallback((()=>{x(!1);}),[]),[D,E]=React$1.useState(!1),N=React$1.useCallback((()=>{E(!0);}),[]),I=React$1.useCallback((()=>{E(!1);}),[]);return React$1.createElement(i$b,Object.assign({type:"number",ref:c$i([y,d]),disabled:v,makeInputClassName:s$p("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$1.createElement("div",{className:t$k("flex justify-center align-middle")},React$1.createElement("div",{tabIndex:-1,onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onTouchStart:e=>{e.cancelable&&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$k(!v&&c$9,p$3,"group py-[10px] px-2.5 border-l border-tremor-border dark:border-dark-tremor-border")},React$1.createElement(r$4,{"data-testid":"step-down",className:(h?"scale-95":"")+" h-4 w-4 duration-75 transition group-active:scale-95"})),React$1.createElement("div",{tabIndex:-1,onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onTouchStart:e=>{e.cancelable&&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$k(!v&&c$9,p$3,"group py-[10px] px-2.5 border-l border-tremor-border dark:border-dark-tremor-border")},React$1.createElement(r$5,{"data-testid":"step-up",className:(D?"scale-95":"")+" h-4 w-4 duration-75 transition group-active:scale-95"}))):null},w))}));i$a.displayName="NumberInput";
76852
76852
 
76853
- const h$2=s$p("SearchSelect"),k$1=s$p("SearchSelect"),g$2=React$1.forwardRef(((u,g)=>{const{defaultValue:v="",searchValue:x,onSearchValueChange:w,value:y,onValueChange:N,placeholder:E="Select...",disabled:C=!1,icon:S,enableClear:V=!0,name:j,required:I,error:M=!1,errorMessage:T,children:D,className:F,id:q}=u,z=__rest$2(u,["defaultValue","searchValue","onSearchValueChange","value","onValueChange","placeholder","disabled","icon","enableClear","name","required","error","errorMessage","children","className","id"]),A=React$1.useRef(null),[O,B]=o$9("",x),[H,R]=o$9(v,y),U=S,{reactElementChildren:X,valueToNameMapping:G}=React$1.useMemo((()=>{const e=React$1.Children.toArray(D).filter(React$1.isValidElement);return {reactElementChildren:e,valueToNameMapping:o$8(e)}}),[D]),J=React$1.useMemo((()=>n$b(null!=O?O:"",X)),[O,X]);return React$1.createElement("div",{className:t$k("w-full min-w-[10rem] relative text-tremor-default")},React$1.createElement("select",{title:"search-select-hidden",required:I,className:t$k("h-full w-full absolute left-0 top-0 z-0 opacity-0"),value:H,onChange:e=>{e.preventDefault();},name:j,disabled:C,id:q,onFocus:()=>{const e=A.current;e&&e.click();}},React$1.createElement("option",{className:"hidden",value:"",disabled:!0,hidden:!0},E),J.map((e=>{const t=e.props.value,a=e.props.children;return React$1.createElement("option",{className:"hidden",key:t,value:t},a)}))),React$1.createElement(qt,Object.assign({as:"div",ref:g,defaultValue:H,value:H,onChange:e=>{null==N||N(e),R(e);},disabled:C,className:t$k("w-full min-w-[10rem] relative text-tremor-default",F),id:q},z),(({value:e})=>React$1.createElement(React$1.Fragment,null,React$1.createElement(qt.Button,{ref:A,className:"w-full"},U&&React$1.createElement("span",{className:t$k("absolute inset-y-0 left-0 flex items-center ml-px pl-2.5")},React$1.createElement(U,{className:t$k(h$2("Icon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),React$1.createElement(qt.Input,{className:t$k("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100 text-tremor-default pr-14 border py-2","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",U?"pl-10":"pl-3",C?"placeholder:text-tremor-content-subtle dark:placeholder:text-tremor-content-subtle":"placeholder:text-tremor-content dark:placeholder:text-tremor-content",d$4(a$a(e),C)),placeholder:E,onChange:e=>{null==w||w(e.target.value),B(e.target.value);},displayValue:e=>{var r;return null!==(r=G.get(e))&&void 0!==r?r:""}}),React$1.createElement("div",{className:t$k("absolute inset-y-0 right-0 flex items-center pr-2.5")},React$1.createElement(r$8,{className:t$k(h$2("arrowDownIcon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}))),V&&H?React$1.createElement("button",{type:"button",className:t$k("absolute inset-y-0 right-0 flex items-center mr-8"),onClick:e=>{e.preventDefault(),R(""),B(""),null==N||N(""),null==w||w("");}},React$1.createElement(r$d,{className:t$k(k$1("clearIcon"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,J.length>0&&React$1.createElement(qe$1,{className:"absolute z-10 w-full",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},React$1.createElement(qt.Options,{className:t$k("divide-y overflow-y-auto outline-none rounded-tremor-default text-tremor-default max-h-[228px] left-0 border my-1","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")},J))))),M&&T?React$1.createElement("p",{className:t$k("errorMessage","text-sm text-rose-500 mt-1")},T):null)}));g$2.displayName="SearchSelect";
76853
+ const h$2=s$p("SearchSelect"),k$1=s$p("SearchSelect"),g$2=React$1.forwardRef(((u,g)=>{const{defaultValue:v="",searchValue:x,onSearchValueChange:w,value:y,onValueChange:N,placeholder:E="Select...",disabled:C=!1,icon:S,enableClear:V=!0,name:j,required:I,error:M=!1,errorMessage:T,children:D,className:F,id:q}=u,z=__rest$2(u,["defaultValue","searchValue","onSearchValueChange","value","onValueChange","placeholder","disabled","icon","enableClear","name","required","error","errorMessage","children","className","id"]),A=React$1.useRef(null),[O,B]=o$9("",x),[H,R]=o$9(v,y),U=S,{reactElementChildren:X,valueToNameMapping:G}=React$1.useMemo((()=>{const e=React$1.Children.toArray(D).filter(React$1.isValidElement);return {reactElementChildren:e,valueToNameMapping:o$8(e)}}),[D]),J=React$1.useMemo((()=>n$b(null!=O?O:"",X)),[O,X]);return React$1.createElement("div",{className:t$k("w-full min-w-[10rem] relative text-tremor-default")},React$1.createElement("select",{title:"search-select-hidden",required:I,className:t$k("h-full w-full absolute left-0 top-0 z-0 opacity-0"),value:H,onChange:e=>{e.preventDefault();},name:j,disabled:C,id:q,onFocus:()=>{const e=A.current;e&&e.click();}},React$1.createElement("option",{className:"hidden",value:"",disabled:!0,hidden:!0},E),J.map((e=>{const t=e.props.value,a=e.props.children;return React$1.createElement("option",{className:"hidden",key:t,value:t},a)}))),React$1.createElement(qt,Object.assign({as:"div",ref:g,defaultValue:H,value:H,onChange:e=>{null==N||N(e),R(e);},disabled:C,className:t$k("w-full min-w-[10rem] relative text-tremor-default",F),id:q},z),(({value:e})=>React$1.createElement(React$1.Fragment,null,React$1.createElement(qt.Button,{ref:A,className:"w-full"},U&&React$1.createElement("span",{className:t$k("absolute inset-y-0 left-0 flex items-center ml-px pl-2.5")},React$1.createElement(U,{className:t$k(h$2("Icon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),React$1.createElement(qt.Input,{className:t$k("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100 text-tremor-default pr-14 border py-2","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",U?"pl-10":"pl-3",C?"placeholder:text-tremor-content-subtle dark:placeholder:text-tremor-content-subtle":"placeholder:text-tremor-content dark:placeholder:text-tremor-content",d$4(a$a(e),C)),placeholder:E,onChange:e=>{null==w||w(e.target.value),B(e.target.value);},displayValue:e=>{var r;return null!==(r=G.get(e))&&void 0!==r?r:""}}),React$1.createElement("div",{className:t$k("absolute inset-y-0 right-0 flex items-center pr-2.5")},React$1.createElement(r$8,{className:t$k(h$2("arrowDownIcon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}))),V&&H?React$1.createElement("button",{type:"button",className:t$k("absolute inset-y-0 right-0 flex items-center mr-8"),onClick:e=>{e.preventDefault(),R(""),B(""),null==N||N(""),null==w||w("");}},React$1.createElement(r$d,{className:t$k(k$1("clearIcon"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,J.length>0&&React$1.createElement(qe,{className:"absolute z-10 w-full",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},React$1.createElement(qt.Options,{className:t$k("divide-y overflow-y-auto outline-none rounded-tremor-default text-tremor-default max-h-[228px] left-0 border my-1","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")},J))))),M&&T?React$1.createElement("p",{className:t$k("errorMessage","text-sm text-rose-500 mt-1")},T):null)}));g$2.displayName="SearchSelect";
76854
76854
 
76855
76855
  const c$8=s$p("SearchSelectItem"),n$9=React$1.forwardRef(((a,n)=>{const{value:m,icon:s,className:i,children:l}=a,d=__rest$2(a,["value","icon","className","children"]),u=s;return React$1.createElement(qt.Option,Object.assign({className:t$k(c$8("root"),"flex justify-start items-center cursor-default text-tremor-default p-2.5","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",i),ref:n,key:m,value:m},d),u&&React$1.createElement(u,{className:t$k(c$8("icon"),"flex-none h-5 w-5 mr-3","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}),React$1.createElement("span",{className:"whitespace-nowrap truncate"},null!=l?l:m))}));n$9.displayName="SearchSelectItem";
76856
76856
 
76857
76857
  const u$2=s$p("Switch"),b=React$1.forwardRef(((d,b)=>{const{checked:g,defaultChecked:f=!1,onChange:p,color:h,name:k,error:w,errorMessage:x,disabled:C,required:j,tooltip:E,id:N}=d,v=__rest$2(d,["checked","defaultChecked","onChange","color","name","error","errorMessage","disabled","required","tooltip","id"]),y=(e=>({bgColor:e?$$2(e,r$r.background).bgColor:"bg-tremor-brand dark:bg-dark-tremor-brand",ringColor:e?$$2(e,r$r.ring).ringColor:"ring-tremor-brand-muted dark:ring-dark-tremor-brand-muted"}))(h),[S,M]=o$9(f,g),[q,R]=React$1.useState(!1),{tooltipProps:T,getReferenceProps:O}=f$c(300);return React$1.createElement("div",{className:"flex flex-row items-center justify-start"},React$1.createElement(d$h,Object.assign({text:E},T)),React$1.createElement("div",Object.assign({ref:c$i([b,T.refs.setReference]),className:t$k(u$2("root"),"flex flex-row relative h-5")},v,O),React$1.createElement("input",{type:"checkbox",className:t$k(u$2("input"),"absolute w-5 h-5 cursor-pointer left-0 top-0 opacity-0"),name:k,required:j,checked:S,onChange:e=>{e.preventDefault();}}),React$1.createElement(we,{checked:S,onChange:e=>{M(e),null==p||p(e);},disabled:C,className:t$k(u$2("switch"),"w-10 h-5 group relative inline-flex shrink-0 cursor-pointer items-center justify-center rounded-tremor-full","focus:outline-none",C?"cursor-not-allowed":""),onFocus:()=>R(!0),onBlur:()=>R(!1),id:N},React$1.createElement("span",{className:t$k(u$2("sr-only"),"sr-only")},"Switch ",S?"on":"off"),React$1.createElement("span",{"aria-hidden":"true",className:t$k(u$2("background"),S?y.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$1.createElement("span",{"aria-hidden":"true",className:t$k(u$2("round"),S?t$k(y.bgColor,"translate-x-5 border-tremor-background dark:border-dark-tremor-background"):"translate-x-0 bg-tremor-border dark:bg-dark-tremor-border border-tremor-background dark:border-dark-tremor-background","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",q?t$k("ring-2",y.ringColor):"")}))),w&&x?React$1.createElement("p",{className:t$k(u$2("errorMessage"),"text-sm text-red-500 mt-1 ")},x):null)}));b.displayName="Switch";
76858
76858
 
76859
- const i$9=s$p("TabList"),m$g=React$1.createContext("line"),n$8={line:t$k("flex border-b space-x-4","border-tremor-border","dark:border-dark-tremor-border"),solid:t$k("inline-flex p-0.5 rounded-tremor-default space-x-1.5","bg-tremor-background-subtle","dark:bg-dark-tremor-background-subtle")},c$7=React$1.forwardRef(((t,l)=>{const{color:c,variant:d="line",children:b,className:f}=t,p=__rest$2(t,["color","variant","children","className"]);return React$1.createElement($e$1.List,Object.assign({ref:l,className:t$k(i$9("root"),"justify-start overflow-x-clip",n$8[d],f)},p),React$1.createElement(m$g.Provider,{value:d},React$1.createElement(o$7.Provider,{value:c},b)))}));c$7.displayName="TabList";
76859
+ const i$9=s$p("TabList"),m$g=React$1.createContext("line"),n$8={line:t$k("flex border-b space-x-4","border-tremor-border","dark:border-dark-tremor-border"),solid:t$k("inline-flex p-0.5 rounded-tremor-default space-x-1.5","bg-tremor-background-subtle","dark:bg-dark-tremor-background-subtle")},c$7=React$1.forwardRef(((t,l)=>{const{color:c,variant:d="line",children:b,className:f}=t,p=__rest$2(t,["color","variant","children","className"]);return React$1.createElement($e.List,Object.assign({ref:l,className:t$k(i$9("root"),"justify-start overflow-x-clip",n$8[d],f)},p),React$1.createElement(m$g.Provider,{value:d},React$1.createElement(o$7.Provider,{value:c},b)))}));c$7.displayName="TabList";
76860
76860
 
76861
- const c$6=s$p("Tab");function l$b(e,r){switch(e){case"line":return t$k("ui-selected:border-b-2 hover:border-b-2 border-transparent transition duration-100 -mb-px px-2 py-2","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?$$2(r,r$r.border).selectBorderColor:"ui-selected:border-tremor-brand dark:ui-selected:border-dark-tremor-brand");case"solid":return t$k("border-transparent border rounded-tremor-small px-2.5 py-1","ui-selected:border-tremor-border ui-selected:bg-tremor-background ui-selected:shadow-tremor-input hover:text-tremor-content-emphasis ui-selected:text-tremor-brand","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:ui-selected:text-dark-tremor-brand",r?$$2(r,r$r.text).selectTextColor:"text-tremor-content dark:text-dark-tremor-content")}}const u$1=React$1.forwardRef(((n,u)=>{const{icon:b,className:x,children:p}=n,k=__rest$2(n,["icon","className","children"]),h=React$1.useContext(m$g),f=React$1.useContext(o$7),j=b;return React$1.createElement($e$1,Object.assign({ref:u,className:t$k(c$6("root"),"flex whitespace-nowrap truncate max-w-xs outline-none focus:ring-0 text-tremor-default transition duration-100",f?$$2(f,r$r.text).selectTextColor:"solid"===h?"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",l$b(h,f),x)},k),j?React$1.createElement(j,{className:t$k(c$6("icon"),"flex-none h-5 w-5",p?"mr-2":"")}):null,p?React$1.createElement("span",null,p):null)}));u$1.displayName="Tab";
76861
+ const c$6=s$p("Tab");function l$b(e,r){switch(e){case"line":return t$k("ui-selected:border-b-2 hover:border-b-2 border-transparent transition duration-100 -mb-px px-2 py-2","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?$$2(r,r$r.border).selectBorderColor:"ui-selected:border-tremor-brand dark:ui-selected:border-dark-tremor-brand");case"solid":return t$k("border-transparent border rounded-tremor-small px-2.5 py-1","ui-selected:border-tremor-border ui-selected:bg-tremor-background ui-selected:shadow-tremor-input hover:text-tremor-content-emphasis ui-selected:text-tremor-brand","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:ui-selected:text-dark-tremor-brand",r?$$2(r,r$r.text).selectTextColor:"text-tremor-content dark:text-dark-tremor-content")}}const u$1=React$1.forwardRef(((n,u)=>{const{icon:b,className:x,children:p}=n,k=__rest$2(n,["icon","className","children"]),h=React$1.useContext(m$g),f=React$1.useContext(o$7),j=b;return React$1.createElement($e,Object.assign({ref:u,className:t$k(c$6("root"),"flex whitespace-nowrap truncate max-w-xs outline-none focus:ring-0 text-tremor-default transition duration-100",f?$$2(f,r$r.text).selectTextColor:"solid"===h?"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",l$b(h,f),x)},k),j?React$1.createElement(j,{className:t$k(c$6("icon"),"flex-none h-5 w-5",p?"mr-2":"")}):null,p?React$1.createElement("span",null,p):null)}));u$1.displayName="Tab";
76862
76862
 
76863
- const n$7=s$p("TabGroup"),s$a=React$1.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$1.createElement($e$1.Group,Object.assign({as:"div",ref:s,defaultIndex:d,selectedIndex:l,onChange:i,className:t$k(n$7("root"),"w-full",f)},c),m)}));s$a.displayName="TabGroup";
76863
+ const n$7=s$p("TabGroup"),s$a=React$1.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$1.createElement($e.Group,Object.assign({as:"div",ref:s,defaultIndex:d,selectedIndex:l,onChange:i,className:t$k(n$7("root"),"w-full",f)},c),m)}));s$a.displayName="TabGroup";
76864
76864
 
76865
76865
  const m$f=s$p("TabPanel"),i$8=React$1.forwardRef(((s,i)=>{const{children:n,className:c}=s,d=__rest$2(s,["children","className"]),{selectedValue:f}=React$1.useContext(a$9),p=f===React$1.useContext(o$6);return React$1.createElement("div",Object.assign({ref:i,className:t$k(m$f("root"),"w-full mt-2",p?"":"hidden",c),"aria-selected":p?"true":"false"},d),n)}));i$8.displayName="TabPanel";
76866
76866
 
76867
- const m$e=s$p("TabPanels"),n$6=React$1.forwardRef(((a,n)=>{const{children:i,className:c}=a,d=__rest$2(a,["children","className"]);return React$1.createElement($e$1.Panels,Object.assign({as:"div",ref:n,className:t$k(m$e("root"),"w-full",c)},d),(({selectedIndex:e})=>React$1.createElement(a$9.Provider,{value:{selectedValue:e}},React$1.Children.map(i,((e,t)=>React$1.createElement(o$6.Provider,{value:t},e))))))}));n$6.displayName="TabPanels";
76867
+ const m$e=s$p("TabPanels"),n$6=React$1.forwardRef(((a,n)=>{const{children:i,className:c}=a,d=__rest$2(a,["children","className"]);return React$1.createElement($e.Panels,Object.assign({as:"div",ref:n,className:t$k(m$e("root"),"w-full",c)},d),(({selectedIndex:e})=>React$1.createElement(a$9.Provider,{value:{selectedValue:e}},React$1.Children.map(i,((e,t)=>React$1.createElement(o$6.Provider,{value:t},e))))))}));n$6.displayName="TabPanels";
76868
76868
 
76869
76869
  const m$d=s$p("Textarea"),u=React$1.forwardRef(((d,u)=>{const{value:c,defaultValue:i="",placeholder:f="Type...",error:p=!1,errorMessage:b,disabled:g=!1,className:h,onChange:x,onValueChange:k}=d,j=__rest$2(d,["value","defaultValue","placeholder","error","errorMessage","disabled","className","onChange","onValueChange"]),[v,w]=o$9(i,c),C=React$1.useRef(null),N=a$a(v);return React$1.createElement(React$1.Fragment,null,React$1.createElement("textarea",Object.assign({ref:c$i([C,u]),value:v,placeholder:f,disabled:g,className:t$k(m$d("Textarea"),"w-full flex items-center outline-none rounded-tremor-default px-3 py-2 text-tremor-default focus:ring-2 transition duration-100 border","shadow-tremor-input focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:shadow-dark-tremor-input focus:dark:border-dark-tremor-brand-subtle focus:dark:ring-dark-tremor-brand-muted",d$4(N,g,p),g?"placeholder:text-tremor-content-subtle dark:placeholder:text-dark-tremor-content-subtle":"placeholder:text-tremor-content dark:placeholder:text-dark-tremor-content",h),"data-testid":"text-area",onChange:e=>{null==x||x(e),w(e.target.value),null==k||k(e.target.value);}},j)),p&&b?React$1.createElement("p",{className:t$k(m$d("errorMessage"),"text-sm text-red-500 mt-1")},b):null)}));u.displayName="Textarea";
76870
76870
 
@@ -76890,9 +76890,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
76890
76890
 
76891
76891
  const a$8=s$p("Grid"),l$6=(m,e)=>m&&Object.keys(e).includes(String(m))?e[m]:"",c$3=React$1.forwardRef(((s,c)=>{const{numItems:d=1,numItemsSm:u,numItemsMd:f,numItemsLg:I,children:p,className:g}=s,b=__rest$2(s,["numItems","numItemsSm","numItemsMd","numItemsLg","children","className"]),j=l$6(d,s$7),N=l$6(u,l$7),y=l$6(f,o$3),M=l$6(I,c$4),S=t$k(j,N,y,M);return React$1.createElement("div",Object.assign({ref:c,className:t$k(a$8("root"),"grid",S,g)},b),p)}));c$3.displayName="Grid";
76892
76892
 
76893
- const o$2=s$p("dialog"),l$5=React$1.forwardRef(((s,l)=>{const{children:m,className:n}=s,c=__rest$2(s,["children","className"]);return React$1.createElement(qe$1,{as:React$1.Fragment,appear:!0,show:s.open},React$1.createElement(_t,Object.assign({as:"div",ref:l},c,{className:t$k(o$2("root"),"relative z-50",n)}),React$1.createElement(qe$1.Child,{as:React$1.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},React$1.createElement("div",{className:t$k("fixed inset-0 bg-slate-950/30 dark:bg-slate-950/50 transition-opacity")})),React$1.createElement("div",{className:"fixed inset-0 overflow-y-auto w-screen"},React$1.createElement("div",{className:"flex min-h-full items-center justify-center p-4"},m))))}));l$5.displayName="Dialog";
76893
+ const o$2=s$p("dialog"),l$5=React$1.forwardRef(((s,l)=>{const{children:m,className:n}=s,c=__rest$2(s,["children","className"]);return React$1.createElement(qe,{as:React$1.Fragment,appear:!0,show:s.open},React$1.createElement(_t,Object.assign({as:"div",ref:l},c,{className:t$k(o$2("root"),"relative z-50",n)}),React$1.createElement(qe.Child,{as:React$1.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},React$1.createElement("div",{className:t$k("fixed inset-0 bg-slate-950/30 dark:bg-slate-950/50 transition-opacity")})),React$1.createElement("div",{className:"fixed inset-0 overflow-y-auto w-screen"},React$1.createElement("div",{className:"flex min-h-full items-center justify-center p-4"},m))))}));l$5.displayName="Dialog";
76894
76894
 
76895
- const s$5=s$p("dialog"),i$4=React$1.forwardRef(((n,i)=>{var m;const{children:c,className:d}=n,p=__rest$2(n,["children","className"]),f=null!==(m=React$1.useContext(t$1))&&void 0!==m?m:t$k("rounded-tremor-default p-6");return React$1.createElement(qe$1.Child,{as:React$1.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},React$1.createElement(_t.Panel,Object.assign({ref:i,className:t$k(s$5("panel"),"w-full max-w-lg overflow-hidden text-left ring-1 shadow-tremor transition-all transform","bg-tremor-background text-tremor-content ring-tremor-ring","dark:bg-dark-tremor-background dark:text-dark-tremor-content dark:ring-dark-tremor-ring",f,d)},p),c))}));i$4.displayName="DialogPanel";
76895
+ const s$5=s$p("dialog"),i$4=React$1.forwardRef(((n,i)=>{var m;const{children:c,className:d}=n,p=__rest$2(n,["children","className"]),f=null!==(m=React$1.useContext(t$1))&&void 0!==m?m:t$k("rounded-tremor-default p-6");return React$1.createElement(qe.Child,{as:React$1.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},React$1.createElement(_t.Panel,Object.assign({ref:i,className:t$k(s$5("panel"),"w-full max-w-lg overflow-hidden text-left ring-1 shadow-tremor transition-all transform","bg-tremor-background text-tremor-content ring-tremor-ring","dark:bg-dark-tremor-background dark:text-dark-tremor-content dark:ring-dark-tremor-ring",f,d)},p),c))}));i$4.displayName="DialogPanel";
76896
76896
 
76897
76897
  const i$3=s$p("List"),a$7=React$1.forwardRef(((t,a)=>{const{children:m,className:s}=t,d=__rest$2(t,["children","className"]);return React$1.createElement("ul",Object.assign({ref:a,className:t$k(i$3("root"),"w-full divide-y","divide-tremor-border text-tremor-content","dark:divide-dark-tremor-border dark:text-dark-tremor-content",s)},d),m)}));a$7.displayName="List";
76898
76898
 
@@ -76948,7 +76948,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
76948
76948
 
76949
76949
  const m$1=s$p("Tracker"),n=React$1.forwardRef(((a,n)=>{const{color:p,tooltip:f}=a,d=__rest$2(a,["color","tooltip"]),{tooltipProps:u,getReferenceProps:b}=f$c();return React$1.createElement("div",Object.assign({ref:c$i([n,u.refs.setReference]),className:t$k(m$1("trackingBlock"),"w-full h-full rounded-[1px] first:rounded-l-[4px] last:rounded-r-[4px]",$$2(null!=p?p:"gray",r$r.background).bgColor)},d,b),React$1.createElement(d$h,Object.assign({text:f},u)))}));n.displayName="TrackerBlock";const p=React$1.forwardRef(((r,o)=>{const{data:l=[],className:a}=r,c=__rest$2(r,["data","className"]);return React$1.createElement("div",Object.assign({ref:o,className:t$k(m$1("root"),"h-10 flex items-center space-x-0.5",a)},c),l.map(((e,r)=>{var t;return React$1.createElement(n,{key:null!==(t=e.key)&&void 0!==t?t:r,color:e.color,tooltip:e.tooltip})})))}));p.displayName="Tracker";
76950
76950
 
76951
- function r(...e){return twMerge(clsx$1(e))}var fc="https://api.percyx.com/v1/auth/jwt/generate",gc="https://api.percyx.com/v1/auth/jwt/refresh",Xn=async({clientKey:e})=>{try{return e?await(await fetch(fc,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientKey:e})})).json():void 0}catch(t){console.error("Error requesting token:",t);return}},es=async e=>{try{return await(await fetch(gc,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:e})})).json()}catch(t){return console.error("Error refreshing token:",t),null}},D=(e,t)=>e?.config?e.config.find(o=>o.name===t):{};var Ro=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"}}),F=React__namespace.forwardRef(({className:e,variant:t,size:o,asChild:a=!1,...i},n)=>React__namespace.createElement(a?$5e63c961fc1ce211$export$8c6ed5c666ac1360$1:"button",{className:r(Ro({variant:t,size:o,className:e})),ref:n,...i}));F.displayName="Button";var No=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("div",{ref:o,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...t}));No.displayName="Card";var To=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("div",{ref:o,className:r("flex flex-col space-y-1.5 p-6",e),...t}));To.displayName="CardHeader";var zi=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("h3",{ref:o,className:r("font-semibold leading-none tracking-tight",e),...t}));zi.displayName="CardTitle";var hc=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("p",{ref:o,className:r("text-sm text-muted-foreground",e),...t}));hc.displayName="CardDescription";var Lo=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("div",{ref:o,className:r("p-6 pt-0",e),...t}));Lo.displayName="CardContent";var Ao=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("div",{ref:o,className:r("flex items-center p-6 pt-0",e),...t}));Ao.displayName="CardFooter";var Ea=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($cddcb0b647441e34$export$be92b6f5f03c0fe9,{ref:o,className:r("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ea.displayName=$cddcb0b647441e34$export$be92b6f5f03c0fe9.displayName;var Wi=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($cddcb0b647441e34$export$3e431a229df88919,{ref:o,className:r("aspect-square h-full w-full",e),...t}));Wi.displayName=$cddcb0b647441e34$export$3e431a229df88919.displayName;var ha=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($cddcb0b647441e34$export$fb8d7f40caaeea67,{ref:o,className:r("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ha.displayName=$cddcb0b647441e34$export$fb8d7f40caaeea67.displayName;var vc=cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Te({className:e,variant:t,...o}){return React__namespace.createElement("div",{className:r(vc({variant:t}),e),...o})}var ji=React__namespace.forwardRef(({className:e,value:t,...o},a)=>React__namespace.createElement($67824d98245208a0$export$be92b6f5f03c0fe9,{ref:a,className:r("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...o},React__namespace.createElement($67824d98245208a0$export$adb584737d712b70,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})));ji.displayName=$67824d98245208a0$export$be92b6f5f03c0fe9.displayName;var Wo=$a093c7e1ec25a057$export$2881499e37b75b9a,Qr=$a093c7e1ec25a057$export$be92b6f5f03c0fe9,Zr=$a093c7e1ec25a057$export$41fb9f06171c75f4,Dr=React__namespace.forwardRef(({className:e,sideOffset:t=4,...o},a)=>React__namespace.createElement($a093c7e1ec25a057$export$7c6e2c02157bb7d2,{ref:a,sideOffset:t,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",e),...o}));Dr.displayName=$a093c7e1ec25a057$export$7c6e2c02157bb7d2.displayName;var rs=({className:e,...t})=>React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{className:r(e),...t});rs.displayName=$5d3850c4d0b4e6c7$export$602eac185826482c$1.displayName;var os=React__namespace.forwardRef(({className:e,...t},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",e),...t,ref:o}));os.displayName=$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1.displayName;var Nc=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"}}),Tc=React__namespace.forwardRef(({side:e="right",className:t,children:o,...a},i)=>React__namespace.createElement(rs,null,React__namespace.createElement(os,null),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1,{ref:i,className:r(Nc({side:e}),t),...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")))));Tc.displayName=$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1.displayName;var _c=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$f99233281efd08a0,{ref:o,className:r("text-lg font-semibold text-foreground",e),...t}));_c.displayName=$5d3850c4d0b4e6c7$export$f99233281efd08a0.displayName;var Pc=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",e),...t}));Pc.displayName=$5d3850c4d0b4e6c7$export$393edc798c47379d.displayName;var ba=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("div",{className:"w-full overflow-auto"},React__namespace.createElement("table",{ref:o,className:r("w-full caption-bottom text-sm",e),...t})));ba.displayName="Table";var Ra=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("thead",{ref:o,className:r("[&_tr]:border-b",e),...t}));Ra.displayName="TableHeader";var Na=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("tbody",{ref:o,className:r("[&_tr:last-child]:border-0",e),...t}));Na.displayName="TableBody";var $i=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("tfoot",{ref:o,className:r("bg-primary font-medium text-primary-foreground",e),...t}));$i.displayName="TableFooter";var Mr=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("tr",{ref:o,className:r("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Mr.displayName="TableRow";var ur=React__namespace.forwardRef(({className:e,...t},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]",e),...t}));ur.displayName="TableHead";var Qt=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("td",{ref:o,className:r("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));Qt.displayName="TableCell";var Ki=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("caption",{ref:o,className:r("mt-4 text-sm text-muted-foreground",e),...t}));Ki.displayName="TableCaption";var Sc=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($1bf158f521e1b1b4$export$6d08773d2e66f8f2,{ref:o,className:r("border-b",e),...t}));Sc.displayName="AccordionItem";var Cc=React__namespace.forwardRef(({className:e,children:t,...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",e),...o},t,React__namespace.createElement(ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"}))));Cc.displayName=$1bf158f521e1b1b4$export$41fb9f06171c75f4.displayName;var wc=React__namespace.forwardRef(({className:e,children:t,...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",e),...o},React__namespace.createElement("div",{className:"pb-4 pt-0"},t)));wc.displayName=$1bf158f521e1b1b4$export$7c6e2c02157bb7d2.displayName;var Mc=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"}}),Or=React__namespace.forwardRef(({className:e,variant:t,...o},a)=>React__namespace.createElement("div",{ref:a,role:"alert",className:r(Mc({variant:t}),e),...o}));Or.displayName="Alert";var kr=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("h5",{ref:o,className:r("mb-1 font-medium leading-none tracking-tight",e),...t}));kr.displayName="AlertTitle";var fr=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("div",{ref:o,className:r("text-sm [&_p]:leading-relaxed",e),...t}));fr.displayName="AlertDescription";var as=$905f4ae918aab1aa$export$be92b6f5f03c0fe9,is=$905f4ae918aab1aa$export$41fb9f06171c75f4,ns=({className:e,...t})=>React__namespace.createElement($905f4ae918aab1aa$export$602eac185826482c,{className:r(e),...t});ns.displayName=$905f4ae918aab1aa$export$602eac185826482c.displayName;var ss=React__namespace.forwardRef(({className:e,...t},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",e),...t,ref:o}));ss.displayName=$905f4ae918aab1aa$export$c6fdb837b070b4ff.displayName;var Qi=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement(ns,null,React__namespace.createElement(ss,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",e),...t})));Qi.displayName=$905f4ae918aab1aa$export$7c6e2c02157bb7d2.displayName;var Zi=({className:e,...t})=>React__namespace.createElement("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Zi.displayName="AlertDialogFooter";var Ji=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($905f4ae918aab1aa$export$f99233281efd08a0,{ref:o,className:r("text-lg font-semibold",e),...t}));Ji.displayName=$905f4ae918aab1aa$export$f99233281efd08a0.displayName;var kc=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($905f4ae918aab1aa$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",e),...t}));kc.displayName=$905f4ae918aab1aa$export$393edc798c47379d.displayName;var Xi=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($905f4ae918aab1aa$export$e19cd5f9376f8cee,{ref:o,className:r(Ro(),e),...t}));Xi.displayName=$905f4ae918aab1aa$export$e19cd5f9376f8cee.displayName;var Bc=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($905f4ae918aab1aa$export$848c9b7ead0df967,{ref:o,className:r(Ro({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Bc.displayName=$905f4ae918aab1aa$export$848c9b7ead0df967.displayName;function jo({className:e,classNames:t,showOutsideDays:o=!0,...a}){return React__namespace.createElement(DayPicker$1,{showOutsideDays:o,className:r("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:r(Ro({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:r("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent",a.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:r(Ro({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"text-muted-foreground opacity-50",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...i})=>React__namespace.createElement(ChevronLeftIcon,{className:"h-4 w-4"}),IconRight:({...i})=>React__namespace.createElement(ChevronRightIcon,{className:"h-4 w-4"})},...a})}jo.displayName="Calendar";var en=React__namespace.forwardRef(({className:e,...t},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",e),...t},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"}))));en.displayName=$e698a72e93240346$export$be92b6f5f03c0fe9.displayName;var Qo=$5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9$1,Xa=$5d3850c4d0b4e6c7$export$41fb9f06171c75f4,ls=({className:e,...t})=>React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{className:r(e),...t});ls.displayName=$5d3850c4d0b4e6c7$export$602eac185826482c$1.displayName;var ms=React__namespace.forwardRef(({className:e,...t},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",e),...t}));ms.displayName=$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1.displayName;var _o=React__namespace.forwardRef(({className:e,children:t,hideClose:o=!1,...a},i)=>React__namespace.createElement(ls,null,React__namespace.createElement(ms,null),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1,{ref:i,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",e),...a},t,!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-accent data-[state=open]:text-muted-foreground"},React__namespace.createElement(Cross2Icon,{className:"h-4 w-4"}),React__namespace.createElement("span",{className:"sr-only"},"Close")))));_o.displayName=$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1.displayName;var tn=({className:e,...t})=>React__namespace.createElement("div",{className:r("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});tn.displayName="DialogHeader";var rn=({className:e,...t})=>React__namespace.createElement("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});rn.displayName="DialogFooter";var on=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$f99233281efd08a0,{ref:o,className:r("text-lg font-semibold leading-none tracking-tight",e),...t}));on.displayName=$5d3850c4d0b4e6c7$export$f99233281efd08a0.displayName;var an=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",e),...t}));an.displayName=$5d3850c4d0b4e6c7$export$393edc798c47379d.displayName;var Zo=React__namespace.forwardRef(({className:e,...t},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",e),...t}));Zo.displayName=Le$2.displayName;var nn=React__namespace.forwardRef(({className:e,...t},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",e),...t})));nn.displayName=Le$2.Input.displayName;var La=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement(Le$2.List,{ref:o,className:r("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));La.displayName=Le$2.List.displayName;var sn=React__namespace.forwardRef((e,t)=>React__namespace.createElement(Le$2.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));sn.displayName=Le$2.Empty.displayName;var Aa=React__namespace.forwardRef(({className:e,...t},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",e),...t}));Aa.displayName=Le$2.Group.displayName;var qc=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement(Le$2.Separator,{ref:o,className:r("-mx-1 h-px bg-border",e),...t}));qc.displayName=Le$2.Separator.displayName;var Jt=React__namespace.forwardRef(({className:e,...t},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",e),...t}));Jt.displayName=Le$2.Item.displayName;var Kc=React__namespace.forwardRef(({className:e,inset:t,children:o,...a},i)=>React__namespace.createElement($1b0217ee4a91d156$export$2ea8a7a591ac5eac,{ref:i,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",t&&"pl-8",e),...a},o,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));Kc.displayName=$1b0217ee4a91d156$export$2ea8a7a591ac5eac.displayName;var Qc=React__namespace.forwardRef(({className:e,...t},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",e),...t}));Qc.displayName=$1b0217ee4a91d156$export$6d4de93b380beddf.displayName;var Zc=React__namespace.forwardRef(({className:e,...t},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",e),...t})));Zc.displayName=$1b0217ee4a91d156$export$7c6e2c02157bb7d2.displayName;var Jc=React__namespace.forwardRef(({className:e,inset:t,...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",t&&"pl-8",e),...o}));Jc.displayName=$1b0217ee4a91d156$export$6d08773d2e66f8f2.displayName;var Xc=React__namespace.forwardRef(({className:e,children:t,checked:o,...a},i)=>React__namespace.createElement($1b0217ee4a91d156$export$16ce288f89fa631c,{ref:i,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",e),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"}))),t));Xc.displayName=$1b0217ee4a91d156$export$16ce288f89fa631c.displayName;var ed=React__namespace.forwardRef(({className:e,children:t,...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",e),...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"}))),t));ed.displayName=$1b0217ee4a91d156$export$371ab307eab489c0.displayName;var td=React__namespace.forwardRef(({className:e,inset:t,...o},a)=>React__namespace.createElement($1b0217ee4a91d156$export$b04be29aa201d4f5,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...o}));td.displayName=$1b0217ee4a91d156$export$b04be29aa201d4f5.displayName;var rd=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($1b0217ee4a91d156$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-border",e),...t}));rd.displayName=$1b0217ee4a91d156$export$1ff3c3f08ae963c0.displayName;var sd=React__namespace.forwardRef(({className:e,inset:t,children:o,...a},i)=>React__namespace.createElement($d08ef79370b62062$export$2ea8a7a591ac5eac,{ref:i,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",t&&"pl-8",e),...a},o,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));sd.displayName=$d08ef79370b62062$export$2ea8a7a591ac5eac.displayName;var ld=React__namespace.forwardRef(({className:e,...t},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",e),...t}));ld.displayName=$d08ef79370b62062$export$6d4de93b380beddf.displayName;var Po=React__namespace.forwardRef(({className:e,sideOffset:t=4,...o},a)=>React__namespace.createElement($d08ef79370b62062$export$602eac185826482c,null,React__namespace.createElement($d08ef79370b62062$export$7c6e2c02157bb7d2,{ref:a,sideOffset:t,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",e),...o})));Po.displayName=$d08ef79370b62062$export$7c6e2c02157bb7d2.displayName;var _a=React__namespace.forwardRef(({className:e,inset:t,...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",t&&"pl-8",e),...o}));_a.displayName=$d08ef79370b62062$export$6d08773d2e66f8f2.displayName;var ln=React__namespace.forwardRef(({className:e,children:t,checked:o,...a},i)=>React__namespace.createElement($d08ef79370b62062$export$16ce288f89fa631c,{ref:i,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",e),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"}))),t));ln.displayName=$d08ef79370b62062$export$16ce288f89fa631c.displayName;var md=React__namespace.forwardRef(({className:e,children:t,...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",e),...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"}))),t));md.displayName=$d08ef79370b62062$export$371ab307eab489c0.displayName;var cd=React__namespace.forwardRef(({className:e,inset:t,...o},a)=>React__namespace.createElement($d08ef79370b62062$export$b04be29aa201d4f5,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));cd.displayName=$d08ef79370b62062$export$b04be29aa201d4f5.displayName;var mn=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($d08ef79370b62062$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));mn.displayName=$d08ef79370b62062$export$1ff3c3f08ae963c0.displayName;var ud=cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),dn=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($b73a6c6685e72184$export$be92b6f5f03c0fe9,{ref:o,className:r(ud(),e),...t}));dn.displayName=$b73a6c6685e72184$export$be92b6f5f03c0fe9.displayName;var ti=FormProvider,cs=React__namespace.createContext({}),lt=({...e})=>React__namespace.createElement(cs.Provider,{value:{name:e.name}},React__namespace.createElement(Controller,{...e})),ri=()=>{let e=React__namespace.useContext(cs),t=React__namespace.useContext(ds),{getFieldState:o,formState:a}=useFormContext(),i=o(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=t;return {id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...i}},ds=React__namespace.createContext({}),rt=React__namespace.forwardRef(({className:e,...t},o)=>{let a=React__namespace.useId();return React__namespace.createElement(ds.Provider,{value:{id:a}},React__namespace.createElement("div",{ref:o,className:r("space-y-2",e),...t}))});rt.displayName="FormItem";var mt=React__namespace.forwardRef(({className:e,...t},o)=>{let{error:a,formItemId:i}=ri();return React__namespace.createElement(dn,{ref:o,className:r(a&&"text-destructive",e),htmlFor:i,...t})});mt.displayName="FormLabel";var Ze=React__namespace.forwardRef(({...e},t)=>{let{error:o,formItemId:a,formDescriptionId:i,formMessageId:n}=ri();return React__namespace.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1,{ref:t,id:a,"aria-describedby":o?`${i} ${n}`:`${i}`,"aria-invalid":!!o,...e})});Ze.displayName="FormControl";var hd=React__namespace.forwardRef(({className:e,...t},o)=>{let{formDescriptionId:a}=ri();return React__namespace.createElement("p",{ref:o,id:a,className:r("text-[0.8rem] text-muted-foreground",e),...t})});hd.displayName="FormDescription";var Rt=React__namespace.forwardRef(({className:e,children:t,...o},a)=>{let{error:i,formMessageId:n}=ri(),s=i?String(i?.message):t;return s?React__namespace.createElement("p",{ref:a,id:n,className:r("text-[0.8rem] font-medium text-destructive",e),...o},s):null});Rt.displayName="FormMessage";var Je=React__namespace.forwardRef(({className:e,type:t,...o},a)=>React__namespace.createElement("input",{type:t,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",e),ref:a,...o}));Je.displayName="Input";var Rd=React__namespace.forwardRef(({className:e,...t},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",e),...t}));Rd.displayName=$0520064cdfc1bd2d$export$be92b6f5f03c0fe9.displayName;var Nd=React__namespace.forwardRef(({className:e,...t},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",e),...t}));Nd.displayName=$0520064cdfc1bd2d$export$41fb9f06171c75f4.displayName;var Td=React__namespace.forwardRef(({className:e,inset:t,children:o,...a},i)=>React__namespace.createElement($0520064cdfc1bd2d$export$2ea8a7a591ac5eac,{ref:i,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",t&&"pl-8",e),...a},o,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));Td.displayName=$0520064cdfc1bd2d$export$2ea8a7a591ac5eac.displayName;var Ld=React__namespace.forwardRef(({className:e,...t},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",e),...t}));Ld.displayName=$0520064cdfc1bd2d$export$6d4de93b380beddf.displayName;var Ad=React__namespace.forwardRef(({className:e,align:t="start",alignOffset:o=-4,sideOffset:a=8,...i},n)=>React__namespace.createElement($0520064cdfc1bd2d$export$602eac185826482c,null,React__namespace.createElement($0520064cdfc1bd2d$export$7c6e2c02157bb7d2,{ref:n,align:t,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",e),...i})));Ad.displayName=$0520064cdfc1bd2d$export$7c6e2c02157bb7d2.displayName;var _d=React__namespace.forwardRef(({className:e,inset:t,...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",t&&"pl-8",e),...o}));_d.displayName=$0520064cdfc1bd2d$export$6d08773d2e66f8f2.displayName;var Pd=React__namespace.forwardRef(({className:e,children:t,checked:o,...a},i)=>React__namespace.createElement($0520064cdfc1bd2d$export$16ce288f89fa631c,{ref:i,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",e),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"}))),t));Pd.displayName=$0520064cdfc1bd2d$export$16ce288f89fa631c.displayName;var Id=React__namespace.forwardRef(({className:e,children:t,...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",e),...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"}))),t));Id.displayName=$0520064cdfc1bd2d$export$371ab307eab489c0.displayName;var Sd=React__namespace.forwardRef(({className:e,inset:t,...o},a)=>React__namespace.createElement($0520064cdfc1bd2d$export$b04be29aa201d4f5,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Sd.displayName=$0520064cdfc1bd2d$export$b04be29aa201d4f5.displayName;var Cd=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($0520064cdfc1bd2d$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));Cd.displayName=$0520064cdfc1bd2d$export$1ff3c3f08ae963c0.displayName;var Od=React__namespace.forwardRef(({className:e,children:t,...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",e),...o},t,React__namespace.createElement(ps,null)));Od.displayName=$322c88a641701f3b$export$be92b6f5f03c0fe9.displayName;var kd=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($322c88a641701f3b$export$54c2e3dc7acea9f5,{ref:o,className:r("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));kd.displayName=$322c88a641701f3b$export$54c2e3dc7acea9f5.displayName;var Bd=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"),Ud=React__namespace.forwardRef(({className:e,children:t,...o},a)=>React__namespace.createElement($322c88a641701f3b$export$41fb9f06171c75f4,{ref:a,className:r(Bd(),"group",e),...o},t," ",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"})));Ud.displayName=$322c88a641701f3b$export$41fb9f06171c75f4.displayName;var Vd=React__namespace.forwardRef(({className:e,...t},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 ",e),...t}));Vd.displayName=$322c88a641701f3b$export$7c6e2c02157bb7d2.displayName;var ps=React__namespace.forwardRef(({className:e,...t},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)]",e),ref:o,...t})));ps.displayName=$322c88a641701f3b$export$d5c6c08dc2d3ca7.displayName;var Hd=React__namespace.forwardRef(({className:e,...t},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",e),...t},React__namespace.createElement("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})));Hd.displayName=$322c88a641701f3b$export$adb584737d712b70.displayName;var Xr=$cb5cc270b50c6fcd$export$be92b6f5f03c0fe9,eo=$cb5cc270b50c6fcd$export$41fb9f06171c75f4,Ur=React__namespace.forwardRef(({className:e,align:t="center",sideOffset:o=4,...a},i)=>React__namespace.createElement($cb5cc270b50c6fcd$export$602eac185826482c,null,React__namespace.createElement($cb5cc270b50c6fcd$export$7c6e2c02157bb7d2,{ref:i,align:t,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",e),...a})));Ur.displayName=$cb5cc270b50c6fcd$export$7c6e2c02157bb7d2.displayName;var Gd=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($f99a8c78507165f7$export$be92b6f5f03c0fe9,{className:r("grid gap-2",e),...t,ref:o}));Gd.displayName=$f99a8c78507165f7$export$be92b6f5f03c0fe9.displayName;var Yd=React__namespace.forwardRef(({className:e,children:t,...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",e),...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"}))));Yd.displayName=$f99a8c78507165f7$export$6d08773d2e66f8f2.displayName;var qd=React__namespace.forwardRef(({className:e,children:t,...o},a)=>React__namespace.createElement($57acba87d6e25586$export$be92b6f5f03c0fe9,{ref:a,className:r("relative overflow-hidden",e),...o},React__namespace.createElement($57acba87d6e25586$export$d5c6c08dc2d3ca7,{className:"h-full w-full rounded-[inherit]"},t),React__namespace.createElement(us,null),React__namespace.createElement($57acba87d6e25586$export$ac61190d9fc311a9,null)));qd.displayName=$57acba87d6e25586$export$be92b6f5f03c0fe9.displayName;var us=React__namespace.forwardRef(({className:e,orientation:t="vertical",...o},a)=>React__namespace.createElement($57acba87d6e25586$export$2fabd85d0eba3c57,{ref:a,orientation:t,className:r("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o},React__namespace.createElement($57acba87d6e25586$export$9fba1154677d7cd2,{className:"relative flex-1 rounded-full bg-border"})));us.displayName=$57acba87d6e25586$export$2fabd85d0eba3c57.displayName;var ea=$cc7e05a45900e73f$export$be92b6f5f03c0fe9,ta=$cc7e05a45900e73f$export$4c8d1a57a761ef94,Io=React__namespace.forwardRef(({className:e,children:t,...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",e),...o},t,React__namespace.createElement($cc7e05a45900e73f$export$f04a61298a47a40f,{asChild:!0},React__namespace.createElement(CaretSortIcon,{className:"h-4 w-4 opacity-50"}))));Io.displayName=$cc7e05a45900e73f$export$41fb9f06171c75f4.displayName;var So=React__namespace.forwardRef(({className:e,children:t,position:o="popper",...a},i)=>React__namespace.createElement($cc7e05a45900e73f$export$602eac185826482c,null,React__namespace.createElement($cc7e05a45900e73f$export$7c6e2c02157bb7d2,{ref:i,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",e),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)]")},t))));So.displayName=$cc7e05a45900e73f$export$7c6e2c02157bb7d2.displayName;var jd=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($cc7e05a45900e73f$export$b04be29aa201d4f5,{ref:o,className:r("px-2 py-1.5 text-sm font-semibold",e),...t}));jd.displayName=$cc7e05a45900e73f$export$b04be29aa201d4f5.displayName;var Nt=React__namespace.forwardRef(({className:e,children:t,...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",e),...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,t)));Nt.displayName=$cc7e05a45900e73f$export$6d08773d2e66f8f2.displayName;var $d=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($cc7e05a45900e73f$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));$d.displayName=$cc7e05a45900e73f$export$1ff3c3f08ae963c0.displayName;var un=React__namespace.forwardRef(({className:e,orientation:t="horizontal",decorative:o=!0,...a},i)=>React__namespace.createElement($89eedd556c436f6a$export$be92b6f5f03c0fe9,{ref:i,decorative:o,orientation:t,className:r("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...a}));un.displayName=$89eedd556c436f6a$export$be92b6f5f03c0fe9.displayName;function S({className:e,...t}){return React__namespace.createElement("div",{className:r("animate-pulse rounded-md bg-primary/10",e),...t})}var fn=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($faa2e61a3361514f$export$be92b6f5f03c0fe9,{ref:o,className:r("relative flex w-full touch-none select-none items-center",e),...t},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"})));fn.displayName=$faa2e61a3361514f$export$be92b6f5f03c0fe9.displayName;var Kd=React__namespace.forwardRef(({className:e,...t},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",e),...t,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")})));Kd.displayName=$6be4966fd9bbc698$export$be92b6f5f03c0fe9.displayName;var gn=React__namespace.forwardRef(({className:e,...t},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",e),...t}));gn.displayName=$69cb30bb0017df05$export$54c2e3dc7acea9f5.displayName;var xn=React__namespace.forwardRef(({className:e,...t},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",e),...t}));xn.displayName=$69cb30bb0017df05$export$41fb9f06171c75f4.displayName;var Qd=React__namespace.forwardRef(({className:e,...t},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",e),...t}));Qd.displayName=$69cb30bb0017df05$export$7c6e2c02157bb7d2.displayName;var En=React__namespace.forwardRef(({className:e,...t},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",e),ref:o,...t}));En.displayName="Textarea";var Ca=React__namespace.forwardRef(({className:e,...t},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]",e),...t}));Ca.displayName=$054eb8030ebde76e$export$d5c6c08dc2d3ca7.displayName;var Xd=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"}}),wa=React__namespace.forwardRef(({className:e,variant:t,...o},a)=>React__namespace.createElement($054eb8030ebde76e$export$be92b6f5f03c0fe9,{ref:a,className:r(Xd({variant:t}),e),...o}));wa.displayName=$054eb8030ebde76e$export$be92b6f5f03c0fe9.displayName;var ep=React__namespace.forwardRef(({className:e,...t},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",e),...t}));ep.displayName=$054eb8030ebde76e$export$e19cd5f9376f8cee.displayName;var Da=React__namespace.forwardRef(({className:e,...t},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",e),"toast-close":"",...t},React__namespace.createElement(Cross2Icon,{className:"h-4 w-4"})));Da.displayName=$054eb8030ebde76e$export$f39c2d165cd861fe.displayName;var Ma=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($054eb8030ebde76e$export$f99233281efd08a0,{ref:o,className:r("text-sm font-semibold [&+div]:text-xs",e),...t}));Ma.displayName=$054eb8030ebde76e$export$f99233281efd08a0.displayName;var Oa=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($054eb8030ebde76e$export$393edc798c47379d,{ref:o,className:r("text-sm opacity-90",e),...t}));Oa.displayName=$054eb8030ebde76e$export$393edc798c47379d.displayName;var sp=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"}}),lp=React__namespace.forwardRef(({className:e,variant:t,size:o,...a},i)=>React__namespace.createElement($b3bbe2732c13b576$export$be92b6f5f03c0fe9,{ref:i,className:r(sp({variant:t,size:o,className:e})),...a}));lp.displayName=$b3bbe2732c13b576$export$be92b6f5f03c0fe9.displayName;function Ht({className:e}){return React__namespace.createElement("svg",{className:r("-ml-1 mr-3 h-5 w-5 animate-spin text-white",e),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},React__namespace.createElement("circle",{className:r("stroke-brand-400 opacity-25"),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),React__namespace.createElement("path",{className:r("fill-brand-500 dark:fill-brand-900 opacity-75"),fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}))}Ht.displayName="Spinner";var Rn=(i=>(i.buyer="buyer",i.seller="seller",i.buyerSeller="buyer-seller",i.broker="broker",i))(Rn||{});var M=class M{};M.ESTIMATES_ENDPOINT_URL="https://api.liberty.percyai.io/property/v1/estimates",M.ESTIMATED_VALUES_HEADER_TITLE="Estimated Values",M.ESTIMATED_VALUES_DIALOG_TITLE="How estimated values work",M.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.",M.ESTIMATED_VALUES_BUTTON_DESCRIPTION="Contact Mortgage Consultant",M.FORM_TITLE="Learn more about my options",M.FORM_DESCRIPTION="Get more insights on how your property valuation",M.FORM_FIRST_NAME_LABEL="First Name *",M.FORM_FIRST_NAME_PLACEHOLDER="Enter First Name",M.FORM_EMAIL_ADDRESS_LABEL="Email Address *",M.FORM_EMAIL_ADDRESS_PLACEHOLDER="Enter Email Adress",M.FORM_LAST_NAME_LABEL="Last Name *",M.FORM_LAST_NAME_PLACEHOLDER="Enter Last Name",M.FORM_PHONE_NUMBER_LABEL="Phone Number *",M.FORM_PHONE_NUMBER_PLACEHOLDER="Enter Phone Number",M.FORM_USER_TYPE_LABEL="I am: *",M.FORM_USER_TYPE_PLACEHOLDER="Please tell us who you are.",M.FORM_AGENT_CHECK_BOX_DESCRIPTION="Are you currently working with a",M.FORM_AGENT_CHECK_BOX_AGENT_TYPE="Agent",M.FORM_AGENT_CHECK_BOX_BROKERAGE_NAME="Percy Realty",M.FORM_AGENT_NAME_PLACEHOLDER="Enter Agent's Name",M.FORM_ACTION_BUTTOM="Submit",M.FIRST_NAME_REQUIRED_VALIDATION_MESSAGE="First Name is required.",M.EMAIL_ADDRESS_REQUIRED_VALIDATION_MESSAGE="Email address is required.",M.EMAIL_ADDRESS_FORMAT_VALIDATION_MESSAGE="Email address format is wrong.",M.LAST_NAME_REQUIRED_VALIDATION_MESSAGE="Last Name is required.",M.PHONE_NUMBER_REQUIRED_VALIDATION_MESSAGE="Phone Number is required.",M.PHONE_NUMBER_FORMAT_VALIDATION_MESSAGE="Phone Number format is wrong.",M.IAM_REQUIRED_VALIDATION_MESSAGE="Please select an option.",M.HOME_ADDRESS_REQUIRED_VALIDATION_MESSAGE="Home Address is required.",M.ON_ERROR_OCCURRED="An error occurred while submitting the form. Please try again.",M.BUYER="A Buyer",M.SELLER="A Seller",M.BUYER_SELLER="A Buyer and Seller",M.BROKER="A Broker/Agent",M.PERIOD_1="Immediately",M.PERIOD_2="1 to 3 Months",M.PERIOD_3="3 to 6 Months",M.PERIOD_4="6 to 12 Months",M.PERIOD_5="12+ Months",M.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL="Message",M.DYNAMIC_VALUES_BUYER_MESSAGE_PLACEHOLDER="Hello, I am interested in learning more about this property.",M.DYNAMIC_VALUES_BROKER_MESSAGE_PLACEHOLDER="Hello, I am interested in learning more about this buyer.",M.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_LABEL="Home Address *",M.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_PLACEHOLDER="Enter Home Address",M.DYNAMIC_VALUES_SELLER_APROXIMATE_VALUE_LABEL="Property's Approximate Value",M.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_LABEL="Time Frame for Selling",M.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_PLACEHOLDER="Please select a time frame",M.sellerBuyerSharedContent=[{label:M.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_LABEL,type:"text",placeholder:M.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_PLACEHOLDER},{label:M.DYNAMIC_VALUES_SELLER_APROXIMATE_VALUE_LABEL,type:"number",placeholder:""},{label:M.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_LABEL,type:"select",placeholder:M.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_PLACEHOLDER}],M.DYNAMIC_VALUES={buyer:[{label:M.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL,type:"textarea",placeholder:M.DYNAMIC_VALUES_BUYER_MESSAGE_PLACEHOLDER}],seller:M.sellerBuyerSharedContent,"buyer-seller":M.sellerBuyerSharedContent,broker:[{label:M.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL,type:"textarea",placeholder:M.DYNAMIC_VALUES_BROKER_MESSAGE_PLACEHOLDER}]};var G=M;function Is({inputType:e,field:t,placeholder:o=""}){switch(e){case"textarea":return React.createElement(En,{placeholder:o,...t});case"select":return React.createElement(ea,{onValueChange:t.onChange,defaultValue:t.value},React.createElement(Io,{className:r("shadow-none px-3 py-2 whitespace-nowrap text-sm")},React.createElement(ta,{placeholder:o})),React.createElement(So,null,React.createElement(Nt,{value:"15"},G.PERIOD_1),React.createElement(Nt,{value:"90"},G.PERIOD_2),React.createElement(Nt,{value:"180"},G.PERIOD_3),React.createElement(Nt,{value:"365"},G.PERIOD_4),React.createElement(Nt,{value:"730"},G.PERIOD_5)));case"number":return React.createElement("div",{className:r("flex flex-row w-full items-center")},React.createElement(DollarSign,{className:"h-4"}),React.createElement(Je,{placeholder:o,className:r("shadow-none py-2 px-3 text-sm"),type:"number",...t}));default:return React.createElement(Je,{placeholder:o,className:r("shadow-none py-2 px-3 text-sm"),...t})}}var Tp=nativeEnumType(Rn,{required_error:G.IAM_REQUIRED_VALIDATION_MESSAGE}),Lp=objectType({firstName:stringType().min(2,{message:G.FIRST_NAME_REQUIRED_VALIDATION_MESSAGE}),emailAdress:stringType({required_error:G.EMAIL_ADDRESS_REQUIRED_VALIDATION_MESSAGE}).email({message:G.EMAIL_ADDRESS_FORMAT_VALIDATION_MESSAGE}),lastName:stringType().min(2,{message:G.LAST_NAME_REQUIRED_VALIDATION_MESSAGE}),phoneNumber:stringType().min(2,{message:G.PHONE_NUMBER_REQUIRED_VALIDATION_MESSAGE}),iam:Tp,agent:booleanType().optional(),agentName:stringType().optional(),dynamicValues:arrayType(objectType({homeAddress:stringType().min(2,{message:G.HOME_ADDRESS_REQUIRED_VALIDATION_MESSAGE}).optional(),value:stringType().optional()})).optional()});function io({onSubmitForm:e,isLoading:t,error:o,showCheckbox:a=!1,brokerageName:i=G.FORM_AGENT_CHECK_BOX_BROKERAGE_NAME,agentType:n=G.FORM_AGENT_CHECK_BOX_AGENT_TYPE}){let[s,l]=React__namespace.useState("indeterminate"),c=useForm({resolver:t$p(Lp),mode:"onChange",defaultValues:{firstName:"",lastName:"",emailAdress:"",phoneNumber:"",agent:!1,agentName:"",dynamicValues:[]}}),{fields:d,append:p,remove:u}=useFieldArray({name:"dynamicValues",control:c.control}),f=c.watch("iam"),v=G.DYNAMIC_VALUES[f];function N(x){e(x);}function E(x){switch(u(),c.clearErrors("iam"),c.setValue("iam",x),x){case"buyer":p({value:G.DYNAMIC_VALUES_BUYER_MESSAGE_PLACEHOLDER});break;case"seller":p([{homeAddress:""},{value:""},{value:""}]);break;case"buyer-seller":p([{homeAddress:""},{value:""},{value:""}]);break;case"broker":p({value:G.DYNAMIC_VALUES_BROKER_MESSAGE_PLACEHOLDER});break}}function b(x,h){let _=x.target.value.replace(/[^0-9]/g,"");if(_)if(_.length<=10)x.target.value=_.replace(/^(\d{0,3})(\d{0,3})(\d{0,4})/,"($1) $2-$3");else {let T=_.slice(0,10).replace(/^(\d{0,3})(\d{0,3})(\d{0,4})/,"($1) $2-$3");x.target.value=T;}else x.target.value="";h(x);}function g(x,h){x.target.value=x.target.value.replace(/[^a-zA-Z\s]/g,""),h(x);}return React__namespace.createElement(ti,{...c},React__namespace.createElement("form",{onSubmit:c.handleSubmit(N),className:r("flex flex-col items-start gap-8 w-auto md:w-[700px] lg:w-[786px]")},React__namespace.createElement("div",{className:r("flex flex-col items-start gap-2")},React__namespace.createElement("h2",{className:r("text-lg font-semibold leading-7 text-slate-900")},G.FORM_TITLE),React__namespace.createElement("p",{className:r("text-sm font-normal leading-5 text-[#64748B]")},G.FORM_DESCRIPTION)),React__namespace.createElement("div",{className:r("flex flex-col gap-4 w-full")},React__namespace.createElement("div",{className:r("flex flex-col md:flex-row lg:flex-row gap-4 md:gap-8 lg:gap-8")},React__namespace.createElement(lt,{control:c.control,name:"firstName",render:({field:x})=>React__namespace.createElement(rt,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(mt,{className:r("text-sm font-medium leading-[14px]")},G.FORM_FIRST_NAME_LABEL),React__namespace.createElement(Ze,null,React__namespace.createElement(Je,{type:"text",className:r("shadow-none py-2 px-3 text-sm"),placeholder:G.FORM_FIRST_NAME_PLACEHOLDER,onChange:h=>g(h,x.onChange)})),React__namespace.createElement(Rt,null))}),React__namespace.createElement(lt,{control:c.control,name:"lastName",render:({field:x})=>React__namespace.createElement(rt,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(mt,{className:r("text-sm font-medium leading-[14px]")},G.FORM_LAST_NAME_LABEL),React__namespace.createElement(Ze,null,React__namespace.createElement(Je,{className:r("shadow-none py-2 px-3 text-sm"),placeholder:G.FORM_LAST_NAME_PLACEHOLDER,onChange:h=>g(h,x.onChange)})),React__namespace.createElement(Rt,null))})),React__namespace.createElement("div",{className:r("flex flex-col md:flex-row lg:flex-row gap-4 md:gap-8 lg:gap-8")},React__namespace.createElement(lt,{control:c.control,name:"emailAdress",render:({field:x})=>React__namespace.createElement(rt,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(mt,{className:r("text-sm font-medium leading-[14px]")},G.FORM_EMAIL_ADDRESS_LABEL),React__namespace.createElement(Ze,null,React__namespace.createElement(Je,{className:r("shadow-none py-2 px-3 text-sm"),placeholder:G.FORM_EMAIL_ADDRESS_PLACEHOLDER,type:"email",...x})),React__namespace.createElement(Rt,null))}),React__namespace.createElement(lt,{control:c.control,name:"phoneNumber",render:({field:x})=>React__namespace.createElement(rt,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(mt,{className:"text-sm font-medium leading-[14px]"},G.FORM_PHONE_NUMBER_LABEL),React__namespace.createElement(Ze,null,React__namespace.createElement(Je,{className:r("shadow-none py-2 px-3 text-sm"),placeholder:G.FORM_PHONE_NUMBER_PLACEHOLDER,onChange:h=>b(h,x.onChange)})),React__namespace.createElement(Rt,null))})),React__namespace.createElement("div",{className:r("flex flex-col items-end lg:items-center md:flex-row lg:flex-row gap-4 md:gap-8 lg:gap-8")},a&&React__namespace.createElement("div",{className:"flex flex-col gap-4 flex-1"},React__namespace.createElement(lt,{control:c.control,name:"agent",render:({field:x})=>React__namespace.createElement(rt,null,React__namespace.createElement(Ze,null,React__namespace.createElement("div",{className:"flex items-center space-x-2"},React__namespace.createElement(en,{checked:x.value,onCheckedChange:h=>{x.onChange(h),l(h);}}),React__namespace.createElement(mt,{className:r("text-sm font-normal leading-5")},`${G.FORM_AGENT_CHECK_BOX_DESCRIPTION} ${i} ${n}`))))}),s&&s!=="indeterminate"&&React__namespace.createElement(lt,{control:c.control,name:"agentName",render:({field:x})=>React__namespace.createElement(rt,null,React__namespace.createElement(Ze,null,React__namespace.createElement(Je,{className:r("shadow-none py-2 px-3 text-sm"),placeholder:G.FORM_AGENT_NAME_PLACEHOLDER,onChange:h=>g(h,x.onChange)})))})),React__namespace.createElement("div",{className:" w-full lg:w-[48%] md:w-[48%]"},React__namespace.createElement(lt,{control:c.control,name:"iam",render:({field:x})=>React__namespace.createElement(rt,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(mt,{className:r("text-sm font-medium leading-[14px]")},G.FORM_USER_TYPE_LABEL),React__namespace.createElement(Ze,null,React__namespace.createElement(ea,{onValueChange:E},React__namespace.createElement(Io,{className:r("shadow-none px-3 py-2 text-sm")},React__namespace.createElement(ta,{placeholder:G.FORM_USER_TYPE_PLACEHOLDER})),React__namespace.createElement(So,null,React__namespace.createElement(Nt,{value:"buyer"},G.BUYER),React__namespace.createElement(Nt,{value:"seller"},G.SELLER),React__namespace.createElement(Nt,{value:"buyer-seller"},G.BUYER_SELLER),React__namespace.createElement(Nt,{value:"broker"},G.BROKER)))),React__namespace.createElement(Rt,null))}))),v&&React__namespace.createElement("div",{className:r("flex flex-col items-start gap-4 w-full")},d.map((x,h)=>React__namespace.createElement(lt,{control:c.control,key:x.id,name:h===0&&(f==="seller"||f==="buyer-seller")?`dynamicValues.${h}.homeAddress`:`dynamicValues.${h}.value`,shouldUnregister:!0,render:({field:_})=>React__namespace.createElement(rt,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(mt,{className:r("text-sm font-medium leading-[14px]")},v[h]?.label),React__namespace.createElement(Ze,null,React__namespace.createElement(Is,{inputType:v[h].type,field:_,placeholder:v[h].placeholder})),React__namespace.createElement(Rt,null))})))),React__namespace.createElement("div",{className:r("flex flex-row justify-end w-full")},React__namespace.createElement(F,{disabled:t,type:"submit"},t&&React__namespace.createElement(Ht,null),G.FORM_ACTION_BUTTOM)),o&&React__namespace.createElement(Or,{variant:"destructive"},React__namespace.createElement(AlertCircle,{className:"h-4 w-4"}),React__namespace.createElement(kr,null,"Error"),React__namespace.createElement(fr,null,G.ON_ERROR_OCCURRED))))}var m=class{static EQUITY_MORTGAGE_DETAILS_BANNER_DESCRIPTION(t,o,a,i,n){return `Public records show a ${t} year loan at ${o} for ${a} from ${i}, giving you an estimated loan balance of ${n}. 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(t,o,a,i){return `These numbers are all based on your ${a} year loan at ${t} for ${o} from ${i}.`}static PAY_LITTLE_EXTRA_DESCRIPTION(t,o,a,i){return `Based on your ${t} year loan at ${o} for ${a} from ${i}`}static PAY_LITTLE_EXTRA_EARLIER_MESSAGE(t){return `You would also be done with the loan and no longer making payments ${t} earlier!`}static REFINANCE_OPTIONS_LONG_TERM_MESSAGE(t){return `Long term ${t}`}static REFINANCE_OPTIONS_PAYMENT_PER_MONTH_DESCRIPTION(t,o){return `Payment may go ${t} by ${o}/mo`}static USING_YOUR_EQUITY_SUBTITLE(t){return `With your ${t} in equity, you could afford to`}static USING_EQUITY_BUY_NEW_HOME_DIALOG_HEADLINE(t,o){return `Using ${t} of your estimated equity, you could make a 20% down payment on a new house worth around ${o}.`}static USING_EQUITY_MONTHLY_PRINCIPAL_INTEREST(t,o){return `Your new monthly principal and interest payment on a 30-year mortgage at ${t} APR is estimated at ${o}/mo`}static USING_EQUITY_REMINDER(t,o){return `Reminder: You'll pay ${t}-${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(t){return `Are you ready to cash in on your equity? You could sell your home and pocket around ${t}.`}static USING_EQUITY_INVESMENT_PROPERTY_HEADLINE(t,o){return `You could use around ${t} of your equity as a 30% down payment on an investment home worth ${o}.`}static USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_1(t,o){return `With your ${t} 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.)`}};m.ACTION_OK_BUTTON_LABEL="OK",m.DESCRIPTION_YEARS_LABEL="Years",m.YEAR=" year",m.PLURAL="s ",m.AND=" and ",m.MONTH=" month",m.RATE=" rate",m.HOME_GUIDE_URL="https://homeguide.com/costs/home-addition-cost",m.HOME_GUIDE="homeguide.com 2020",m.EL_ISSA="El Issa, 2019",m.EL_ISSA_URL="https://www.nerdwallet.com/blog/average-credit-card-debt-household/",m.TICAS="TICAS, Student Debt and the Class of 2018",m.TICAS_URL="https://ticas.org/wp-content/uploads/2019/09/classof2018.pdf",m.NO_DATA_AVAILABLE_LABEL="No Data Available",m.ACTION_BUTTON_BEST_OPTION_LABEL="Which option is best for me?",m.LEARN_MORE_LABEL="Learn more about this",m.EDIT_DETAILS_LABEL="Edit Details",m.WHY_PAY_MORE_LABEL="Why Pay More?",m.EARLY_LOAN_LABEL="Early Loan Payoff Information",m.ASK_AGENT_LABEL="Ask an Agent",m.CONFIGURATION_ERROR_LABEL="Configuration Error",m.CONFIGURATION_ERROR_KEY_EXPIRED_LABEL="Key is expired",m.EQUITY_MORTGAGE_DETAILS_HEADER_TITLE="Equity In Your Home",m.EQUITY_MORTGAGE_DETAILS_DESCRIPTION="Equity is your home's worth to you!",m.EQUITY_MORTGAGE_DETAILS_ALL_GOOD_BUTTON="All Good",m.EQUITY_MORTGAGE_DETAILS_BANNER_TITLE="Verify Your Mortgage Details",m.EQUITY_MORTGAGE_DETAILS_TITLE="Estimated Equity Today",m.EQUITY_MORTGAGE_DETAILS_HOW_CALCULATED="How is this calculated?",m.EQUITY_MORTGAGE_DETAILS_DISCLAIMER="Disclaimer",m.EDIT_MORTGAGE_DETAILS_FORM_TITLE="Edit Mortgage Info",m.EDIT_MORTGAGE_DETAILS_LOAN_START_DATE_LABEL="Loan Start Date",m.EDIT_MORTGAGE_DETAILS_LOAN_TERM_LABEL="Loan Term",m.EDIT_MORTGAGE_DETAILS_INTEREST_RATE_LABEL="Interest Rate",m.EDIT_MORTGAGE_DETAILS_ORIGINAL_LOAN_AMOUNT_LABEL="Original Loan Amount",m.EDIT_MORTGAGE_DETAILS_BALANCE_LABEL="Estimated Mortgage Balance",m.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.",m.HOW_CALCULATE_TITLE="How Is My Net Worth Calculated?",m.HOW_CALCULATE_DESCRIPTION='Your net worth ("equity") is made up of two things.',m.HOW_CALCULATE_HOME_VALUE_LABEL="Home Value",m.HOW_CALCULATE_LOAN_BALANCE_LABEL="Loan Balance",m.HOW_CALCULATE_YOUR_NET_WORTH_LABEL="Your Net Worth",m.HOW_CALCULATE_INFORMATION_SUBTITLE="Where does this information come from?",m.HOW_CALCULATE_NOTE_DESCRIPTION="Note: Only the first lien mortgage and resale are used to calculate the balance of your loan.",m.PAY_LITTLE_EXTRA_HEADER_TITLE="Pay A Little Extra",m.PAY_LITTLE_EXTRA_SUBTITLE="How much more can you pay per month?",m.PAY_LITTLE_EXTRA_CALCULATION_IF_YOU_PAY="If you pay just ",m.PAY_LITTLE_EXTRA_CALCULATION_MORE=" more each month, you could save",m.PAY_LITTLE_EXTRA_CALCULATION_DESCRIPTION="in interest over the rest of your loan",m.PAY_LITTLE_EXTRA_INFO_DESCRIPTION="You would also be done with the loan and no longer making payments 10 years and 2 months earlier!",m.PAY_LITTLE_EXTRA_PAYING_EXTRA="Paying extra can be an easy way to save.",m.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.",m.PAY_LITTLE_EXTRA_PAYING_EXTRA_BEST_PART="The best part is that there's no paperwork, fees or headaches.",m.PAY_LITTLE_EXTRA_PAYING_EXTRA_IMPORTANT_TIP="*Important Tip* ",m.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).",m.PAY_LITTLE_EXTRA_LENGTH_LOAN_REMAIN_MESSAGE="The length of your loan would remain unchanged with this extra payment.",m.CONTACT_AGENT_TITLE="We Might Have The Perferct Buyer For Your Home",m.CONTACT_AGENT_DESCRIPTION="Click the button and we'll look though our buyer database for you.",m.REFINANCE_OPTIONS_HEADER_TITLE="Refinance Options",m.REFINANCE_OPTIONS_HEADER_SUBTITLE="With a refinance of your loan, you could save",m.REFINANCE_OPTIONS_LEARN_MORE_DESCRIPTION=`
76951
+ function r(...e){return twMerge(clsx$1(e))}var uc="https://api.percyx.com/v1/auth/jwt/generate",gc="https://api.percyx.com/v1/auth/jwt/refresh",ts=async({clientKey:e})=>{try{return e?await(await fetch(uc,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientKey:e})})).json():void 0}catch(t){console.error("Error requesting token:",t);return}},rs=async e=>{try{return await(await fetch(gc,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:e})})).json()}catch(t){return console.error("Error refreshing token:",t),null}},D=(e,t)=>e?.config?e.config.find(o=>o.name===t):{};var Ro=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"}}),F=React__namespace.forwardRef(({className:e,variant:t,size:o,asChild:a=!1,...i},n)=>React__namespace.createElement(a?$5e63c961fc1ce211$export$8c6ed5c666ac1360$1:"button",{className:r(Ro({variant:t,size:o,className:e})),ref:n,...i}));F.displayName="Button";var No=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("div",{ref:o,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...t}));No.displayName="Card";var To=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("div",{ref:o,className:r("flex flex-col space-y-1.5 p-6",e),...t}));To.displayName="CardHeader";var $i=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("h3",{ref:o,className:r("font-semibold leading-none tracking-tight",e),...t}));$i.displayName="CardTitle";var hc=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("p",{ref:o,className:r("text-sm text-muted-foreground",e),...t}));hc.displayName="CardDescription";var Lo=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("div",{ref:o,className:r("p-6 pt-0",e),...t}));Lo.displayName="CardContent";var Ao=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("div",{ref:o,className:r("flex items-center p-6 pt-0",e),...t}));Ao.displayName="CardFooter";var ya=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($cddcb0b647441e34$export$be92b6f5f03c0fe9,{ref:o,className:r("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));ya.displayName=$cddcb0b647441e34$export$be92b6f5f03c0fe9.displayName;var Ki=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($cddcb0b647441e34$export$3e431a229df88919,{ref:o,className:r("aspect-square h-full w-full",e),...t}));Ki.displayName=$cddcb0b647441e34$export$3e431a229df88919.displayName;var va=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($cddcb0b647441e34$export$fb8d7f40caaeea67,{ref:o,className:r("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));va.displayName=$cddcb0b647441e34$export$fb8d7f40caaeea67.displayName;var vc=cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Te({className:e,variant:t,...o}){return React__namespace.createElement("div",{className:r(vc({variant:t}),e),...o})}var Qi=React__namespace.forwardRef(({className:e,value:t,...o},a)=>React__namespace.createElement($67824d98245208a0$export$be92b6f5f03c0fe9,{ref:a,className:r("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...o},React__namespace.createElement($67824d98245208a0$export$adb584737d712b70,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})));Qi.displayName=$67824d98245208a0$export$be92b6f5f03c0fe9.displayName;var jo=$a093c7e1ec25a057$export$2881499e37b75b9a,Qr=$a093c7e1ec25a057$export$be92b6f5f03c0fe9,Zr=$a093c7e1ec25a057$export$41fb9f06171c75f4,Dr=React__namespace.forwardRef(({className:e,sideOffset:t=4,...o},a)=>React__namespace.createElement($a093c7e1ec25a057$export$7c6e2c02157bb7d2,{ref:a,sideOffset:t,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",e),...o}));Dr.displayName=$a093c7e1ec25a057$export$7c6e2c02157bb7d2.displayName;var as=({className:e,...t})=>React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{className:r(e),...t});as.displayName=$5d3850c4d0b4e6c7$export$602eac185826482c$1.displayName;var is=React__namespace.forwardRef(({className:e,...t},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",e),...t,ref:o}));is.displayName=$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1.displayName;var Nc=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"}}),Tc=React__namespace.forwardRef(({side:e="right",className:t,children:o,...a},i)=>React__namespace.createElement(as,null,React__namespace.createElement(is,null),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1,{ref:i,className:r(Nc({side:e}),t),...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")))));Tc.displayName=$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1.displayName;var _c=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$f99233281efd08a0,{ref:o,className:r("text-lg font-semibold text-foreground",e),...t}));_c.displayName=$5d3850c4d0b4e6c7$export$f99233281efd08a0.displayName;var Pc=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",e),...t}));Pc.displayName=$5d3850c4d0b4e6c7$export$393edc798c47379d.displayName;var Na=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("div",{className:"w-full overflow-auto"},React__namespace.createElement("table",{ref:o,className:r("w-full caption-bottom text-sm",e),...t})));Na.displayName="Table";var Ta=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("thead",{ref:o,className:r("[&_tr]:border-b",e),...t}));Ta.displayName="TableHeader";var La=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("tbody",{ref:o,className:r("[&_tr:last-child]:border-0",e),...t}));La.displayName="TableBody";var Zi=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("tfoot",{ref:o,className:r("bg-primary font-medium text-primary-foreground",e),...t}));Zi.displayName="TableFooter";var Mr=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("tr",{ref:o,className:r("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Mr.displayName="TableRow";var fr=React__namespace.forwardRef(({className:e,...t},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]",e),...t}));fr.displayName="TableHead";var Qt=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("td",{ref:o,className:r("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));Qt.displayName="TableCell";var Ji=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("caption",{ref:o,className:r("mt-4 text-sm text-muted-foreground",e),...t}));Ji.displayName="TableCaption";var Sc=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($1bf158f521e1b1b4$export$6d08773d2e66f8f2,{ref:o,className:r("border-b",e),...t}));Sc.displayName="AccordionItem";var Cc=React__namespace.forwardRef(({className:e,children:t,...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",e),...o},t,React__namespace.createElement(ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"}))));Cc.displayName=$1bf158f521e1b1b4$export$41fb9f06171c75f4.displayName;var wc=React__namespace.forwardRef(({className:e,children:t,...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",e),...o},React__namespace.createElement("div",{className:"pb-4 pt-0"},t)));wc.displayName=$1bf158f521e1b1b4$export$7c6e2c02157bb7d2.displayName;var Mc=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"}}),Or=React__namespace.forwardRef(({className:e,variant:t,...o},a)=>React__namespace.createElement("div",{ref:a,role:"alert",className:r(Mc({variant:t}),e),...o}));Or.displayName="Alert";var kr=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("h5",{ref:o,className:r("mb-1 font-medium leading-none tracking-tight",e),...t}));kr.displayName="AlertTitle";var ur=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement("div",{ref:o,className:r("text-sm [&_p]:leading-relaxed",e),...t}));ur.displayName="AlertDescription";var ns=$905f4ae918aab1aa$export$be92b6f5f03c0fe9,ss=$905f4ae918aab1aa$export$41fb9f06171c75f4,ls=({className:e,...t})=>React__namespace.createElement($905f4ae918aab1aa$export$602eac185826482c,{className:r(e),...t});ls.displayName=$905f4ae918aab1aa$export$602eac185826482c.displayName;var ms=React__namespace.forwardRef(({className:e,...t},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",e),...t,ref:o}));ms.displayName=$905f4ae918aab1aa$export$c6fdb837b070b4ff.displayName;var Xi=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement(ls,null,React__namespace.createElement(ms,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",e),...t})));Xi.displayName=$905f4ae918aab1aa$export$7c6e2c02157bb7d2.displayName;var en=({className:e,...t})=>React__namespace.createElement("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});en.displayName="AlertDialogFooter";var tn=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($905f4ae918aab1aa$export$f99233281efd08a0,{ref:o,className:r("text-lg font-semibold",e),...t}));tn.displayName=$905f4ae918aab1aa$export$f99233281efd08a0.displayName;var kc=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($905f4ae918aab1aa$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",e),...t}));kc.displayName=$905f4ae918aab1aa$export$393edc798c47379d.displayName;var rn=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($905f4ae918aab1aa$export$e19cd5f9376f8cee,{ref:o,className:r(Ro(),e),...t}));rn.displayName=$905f4ae918aab1aa$export$e19cd5f9376f8cee.displayName;var Bc=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($905f4ae918aab1aa$export$848c9b7ead0df967,{ref:o,className:r(Ro({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Bc.displayName=$905f4ae918aab1aa$export$848c9b7ead0df967.displayName;function $o({className:e,classNames:t,showOutsideDays:o=!0,...a}){return React__namespace.createElement(DayPicker$1,{showOutsideDays:o,className:r("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:r(Ro({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:r("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent",a.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:r(Ro({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"text-muted-foreground opacity-50",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...i})=>React__namespace.createElement(ChevronLeftIcon,{className:"h-4 w-4"}),IconRight:({...i})=>React__namespace.createElement(ChevronRightIcon,{className:"h-4 w-4"})},...a})}$o.displayName="Calendar";var on=React__namespace.forwardRef(({className:e,...t},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",e),...t},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"}))));on.displayName=$e698a72e93240346$export$be92b6f5f03c0fe9.displayName;var Zo=$5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9$1,ti=$5d3850c4d0b4e6c7$export$41fb9f06171c75f4,cs=({className:e,...t})=>React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{className:r(e),...t});cs.displayName=$5d3850c4d0b4e6c7$export$602eac185826482c$1.displayName;var ds=React__namespace.forwardRef(({className:e,...t},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",e),...t}));ds.displayName=$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1.displayName;var _o=React__namespace.forwardRef(({className:e,children:t,hideClose:o=!1,...a},i)=>React__namespace.createElement(cs,null,React__namespace.createElement(ds,null),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1,{ref:i,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",e),...a},t,!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-accent data-[state=open]:text-muted-foreground"},React__namespace.createElement(Cross2Icon,{className:"h-4 w-4"}),React__namespace.createElement("span",{className:"sr-only"},"Close")))));_o.displayName=$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1.displayName;var an=({className:e,...t})=>React__namespace.createElement("div",{className:r("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});an.displayName="DialogHeader";var nn=({className:e,...t})=>React__namespace.createElement("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});nn.displayName="DialogFooter";var sn=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$f99233281efd08a0,{ref:o,className:r("text-lg font-semibold leading-none tracking-tight",e),...t}));sn.displayName=$5d3850c4d0b4e6c7$export$f99233281efd08a0.displayName;var ln=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d,{ref:o,className:r("text-sm text-muted-foreground",e),...t}));ln.displayName=$5d3850c4d0b4e6c7$export$393edc798c47379d.displayName;var Jo=React__namespace.forwardRef(({className:e,...t},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",e),...t}));Jo.displayName=Le$2.displayName;var mn=React__namespace.forwardRef(({className:e,...t},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",e),...t})));mn.displayName=Le$2.Input.displayName;var _a=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement(Le$2.List,{ref:o,className:r("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));_a.displayName=Le$2.List.displayName;var cn=React__namespace.forwardRef((e,t)=>React__namespace.createElement(Le$2.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));cn.displayName=Le$2.Empty.displayName;var Pa=React__namespace.forwardRef(({className:e,...t},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",e),...t}));Pa.displayName=Le$2.Group.displayName;var qc=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement(Le$2.Separator,{ref:o,className:r("-mx-1 h-px bg-border",e),...t}));qc.displayName=Le$2.Separator.displayName;var Jt=React__namespace.forwardRef(({className:e,...t},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",e),...t}));Jt.displayName=Le$2.Item.displayName;var Kc=React__namespace.forwardRef(({className:e,inset:t,children:o,...a},i)=>React__namespace.createElement($1b0217ee4a91d156$export$2ea8a7a591ac5eac,{ref:i,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",t&&"pl-8",e),...a},o,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));Kc.displayName=$1b0217ee4a91d156$export$2ea8a7a591ac5eac.displayName;var Qc=React__namespace.forwardRef(({className:e,...t},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",e),...t}));Qc.displayName=$1b0217ee4a91d156$export$6d4de93b380beddf.displayName;var Zc=React__namespace.forwardRef(({className:e,...t},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",e),...t})));Zc.displayName=$1b0217ee4a91d156$export$7c6e2c02157bb7d2.displayName;var Jc=React__namespace.forwardRef(({className:e,inset:t,...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",t&&"pl-8",e),...o}));Jc.displayName=$1b0217ee4a91d156$export$6d08773d2e66f8f2.displayName;var Xc=React__namespace.forwardRef(({className:e,children:t,checked:o,...a},i)=>React__namespace.createElement($1b0217ee4a91d156$export$16ce288f89fa631c,{ref:i,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",e),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"}))),t));Xc.displayName=$1b0217ee4a91d156$export$16ce288f89fa631c.displayName;var ed=React__namespace.forwardRef(({className:e,children:t,...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",e),...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"}))),t));ed.displayName=$1b0217ee4a91d156$export$371ab307eab489c0.displayName;var td=React__namespace.forwardRef(({className:e,inset:t,...o},a)=>React__namespace.createElement($1b0217ee4a91d156$export$b04be29aa201d4f5,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...o}));td.displayName=$1b0217ee4a91d156$export$b04be29aa201d4f5.displayName;var rd=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($1b0217ee4a91d156$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-border",e),...t}));rd.displayName=$1b0217ee4a91d156$export$1ff3c3f08ae963c0.displayName;var sd=React__namespace.forwardRef(({className:e,inset:t,children:o,...a},i)=>React__namespace.createElement($d08ef79370b62062$export$2ea8a7a591ac5eac,{ref:i,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",t&&"pl-8",e),...a},o,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));sd.displayName=$d08ef79370b62062$export$2ea8a7a591ac5eac.displayName;var ld=React__namespace.forwardRef(({className:e,...t},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",e),...t}));ld.displayName=$d08ef79370b62062$export$6d4de93b380beddf.displayName;var Po=React__namespace.forwardRef(({className:e,sideOffset:t=4,...o},a)=>React__namespace.createElement($d08ef79370b62062$export$602eac185826482c,null,React__namespace.createElement($d08ef79370b62062$export$7c6e2c02157bb7d2,{ref:a,sideOffset:t,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",e),...o})));Po.displayName=$d08ef79370b62062$export$7c6e2c02157bb7d2.displayName;var Ia=React__namespace.forwardRef(({className:e,inset:t,...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",t&&"pl-8",e),...o}));Ia.displayName=$d08ef79370b62062$export$6d08773d2e66f8f2.displayName;var dn=React__namespace.forwardRef(({className:e,children:t,checked:o,...a},i)=>React__namespace.createElement($d08ef79370b62062$export$16ce288f89fa631c,{ref:i,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",e),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"}))),t));dn.displayName=$d08ef79370b62062$export$16ce288f89fa631c.displayName;var md=React__namespace.forwardRef(({className:e,children:t,...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",e),...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"}))),t));md.displayName=$d08ef79370b62062$export$371ab307eab489c0.displayName;var cd=React__namespace.forwardRef(({className:e,inset:t,...o},a)=>React__namespace.createElement($d08ef79370b62062$export$b04be29aa201d4f5,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));cd.displayName=$d08ef79370b62062$export$b04be29aa201d4f5.displayName;var pn=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($d08ef79370b62062$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));pn.displayName=$d08ef79370b62062$export$1ff3c3f08ae963c0.displayName;var fd=cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),un=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($b73a6c6685e72184$export$be92b6f5f03c0fe9,{ref:o,className:r(fd(),e),...t}));un.displayName=$b73a6c6685e72184$export$be92b6f5f03c0fe9.displayName;var oi=FormProvider,ps=React__namespace.createContext({}),mt=({...e})=>React__namespace.createElement(ps.Provider,{value:{name:e.name}},React__namespace.createElement(Controller,{...e})),ai=()=>{let e=React__namespace.useContext(ps),t=React__namespace.useContext(fs),{getFieldState:o,formState:a}=useFormContext(),i=o(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=t;return {id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...i}},fs=React__namespace.createContext({}),ot=React__namespace.forwardRef(({className:e,...t},o)=>{let a=React__namespace.useId();return React__namespace.createElement(fs.Provider,{value:{id:a}},React__namespace.createElement("div",{ref:o,className:r("space-y-2",e),...t}))});ot.displayName="FormItem";var ct=React__namespace.forwardRef(({className:e,...t},o)=>{let{error:a,formItemId:i}=ai();return React__namespace.createElement(un,{ref:o,className:r(a&&"text-destructive",e),htmlFor:i,...t})});ct.displayName="FormLabel";var Je=React__namespace.forwardRef(({...e},t)=>{let{error:o,formItemId:a,formDescriptionId:i,formMessageId:n}=ai();return React__namespace.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1,{ref:t,id:a,"aria-describedby":o?`${i} ${n}`:`${i}`,"aria-invalid":!!o,...e})});Je.displayName="FormControl";var hd=React__namespace.forwardRef(({className:e,...t},o)=>{let{formDescriptionId:a}=ai();return React__namespace.createElement("p",{ref:o,id:a,className:r("text-[0.8rem] text-muted-foreground",e),...t})});hd.displayName="FormDescription";var Rt=React__namespace.forwardRef(({className:e,children:t,...o},a)=>{let{error:i,formMessageId:n}=ai(),s=i?String(i?.message):t;return s?React__namespace.createElement("p",{ref:a,id:n,className:r("text-[0.8rem] font-medium text-destructive",e),...o},s):null});Rt.displayName="FormMessage";var Xe=React__namespace.forwardRef(({className:e,type:t,...o},a)=>React__namespace.createElement("input",{type:t,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",e),ref:a,...o}));Xe.displayName="Input";var Rd=React__namespace.forwardRef(({className:e,...t},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",e),...t}));Rd.displayName=$0520064cdfc1bd2d$export$be92b6f5f03c0fe9.displayName;var Nd=React__namespace.forwardRef(({className:e,...t},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",e),...t}));Nd.displayName=$0520064cdfc1bd2d$export$41fb9f06171c75f4.displayName;var Td=React__namespace.forwardRef(({className:e,inset:t,children:o,...a},i)=>React__namespace.createElement($0520064cdfc1bd2d$export$2ea8a7a591ac5eac,{ref:i,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",t&&"pl-8",e),...a},o,React__namespace.createElement(ChevronRightIcon,{className:"ml-auto h-4 w-4"})));Td.displayName=$0520064cdfc1bd2d$export$2ea8a7a591ac5eac.displayName;var Ld=React__namespace.forwardRef(({className:e,...t},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",e),...t}));Ld.displayName=$0520064cdfc1bd2d$export$6d4de93b380beddf.displayName;var Ad=React__namespace.forwardRef(({className:e,align:t="start",alignOffset:o=-4,sideOffset:a=8,...i},n)=>React__namespace.createElement($0520064cdfc1bd2d$export$602eac185826482c,null,React__namespace.createElement($0520064cdfc1bd2d$export$7c6e2c02157bb7d2,{ref:n,align:t,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",e),...i})));Ad.displayName=$0520064cdfc1bd2d$export$7c6e2c02157bb7d2.displayName;var _d=React__namespace.forwardRef(({className:e,inset:t,...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",t&&"pl-8",e),...o}));_d.displayName=$0520064cdfc1bd2d$export$6d08773d2e66f8f2.displayName;var Pd=React__namespace.forwardRef(({className:e,children:t,checked:o,...a},i)=>React__namespace.createElement($0520064cdfc1bd2d$export$16ce288f89fa631c,{ref:i,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",e),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"}))),t));Pd.displayName=$0520064cdfc1bd2d$export$16ce288f89fa631c.displayName;var Id=React__namespace.forwardRef(({className:e,children:t,...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",e),...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"}))),t));Id.displayName=$0520064cdfc1bd2d$export$371ab307eab489c0.displayName;var Sd=React__namespace.forwardRef(({className:e,inset:t,...o},a)=>React__namespace.createElement($0520064cdfc1bd2d$export$b04be29aa201d4f5,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Sd.displayName=$0520064cdfc1bd2d$export$b04be29aa201d4f5.displayName;var Cd=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($0520064cdfc1bd2d$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));Cd.displayName=$0520064cdfc1bd2d$export$1ff3c3f08ae963c0.displayName;var Od=React__namespace.forwardRef(({className:e,children:t,...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",e),...o},t,React__namespace.createElement(us,null)));Od.displayName=$322c88a641701f3b$export$be92b6f5f03c0fe9.displayName;var kd=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($322c88a641701f3b$export$54c2e3dc7acea9f5,{ref:o,className:r("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));kd.displayName=$322c88a641701f3b$export$54c2e3dc7acea9f5.displayName;var Bd=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"),Ud=React__namespace.forwardRef(({className:e,children:t,...o},a)=>React__namespace.createElement($322c88a641701f3b$export$41fb9f06171c75f4,{ref:a,className:r(Bd(),"group",e),...o},t," ",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"})));Ud.displayName=$322c88a641701f3b$export$41fb9f06171c75f4.displayName;var Vd=React__namespace.forwardRef(({className:e,...t},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 ",e),...t}));Vd.displayName=$322c88a641701f3b$export$7c6e2c02157bb7d2.displayName;var us=React__namespace.forwardRef(({className:e,...t},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)]",e),ref:o,...t})));us.displayName=$322c88a641701f3b$export$d5c6c08dc2d3ca7.displayName;var Hd=React__namespace.forwardRef(({className:e,...t},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",e),...t},React__namespace.createElement("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})));Hd.displayName=$322c88a641701f3b$export$adb584737d712b70.displayName;var Xr=$cb5cc270b50c6fcd$export$be92b6f5f03c0fe9,eo=$cb5cc270b50c6fcd$export$41fb9f06171c75f4,Ur=React__namespace.forwardRef(({className:e,align:t="center",sideOffset:o=4,...a},i)=>React__namespace.createElement($cb5cc270b50c6fcd$export$602eac185826482c,null,React__namespace.createElement($cb5cc270b50c6fcd$export$7c6e2c02157bb7d2,{ref:i,align:t,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",e),...a})));Ur.displayName=$cb5cc270b50c6fcd$export$7c6e2c02157bb7d2.displayName;var Gd=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($f99a8c78507165f7$export$be92b6f5f03c0fe9,{className:r("grid gap-2",e),...t,ref:o}));Gd.displayName=$f99a8c78507165f7$export$be92b6f5f03c0fe9.displayName;var Yd=React__namespace.forwardRef(({className:e,children:t,...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",e),...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"}))));Yd.displayName=$f99a8c78507165f7$export$6d08773d2e66f8f2.displayName;var qd=React__namespace.forwardRef(({className:e,children:t,...o},a)=>React__namespace.createElement($57acba87d6e25586$export$be92b6f5f03c0fe9,{ref:a,className:r("relative overflow-hidden",e),...o},React__namespace.createElement($57acba87d6e25586$export$d5c6c08dc2d3ca7,{className:"h-full w-full rounded-[inherit]"},t),React__namespace.createElement(gs,null),React__namespace.createElement($57acba87d6e25586$export$ac61190d9fc311a9,null)));qd.displayName=$57acba87d6e25586$export$be92b6f5f03c0fe9.displayName;var gs=React__namespace.forwardRef(({className:e,orientation:t="vertical",...o},a)=>React__namespace.createElement($57acba87d6e25586$export$2fabd85d0eba3c57,{ref:a,orientation:t,className:r("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o},React__namespace.createElement($57acba87d6e25586$export$9fba1154677d7cd2,{className:"relative flex-1 rounded-full bg-border"})));gs.displayName=$57acba87d6e25586$export$2fabd85d0eba3c57.displayName;var ta=$cc7e05a45900e73f$export$be92b6f5f03c0fe9,ra=$cc7e05a45900e73f$export$4c8d1a57a761ef94,Io=React__namespace.forwardRef(({className:e,children:t,...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",e),...o},t,React__namespace.createElement($cc7e05a45900e73f$export$f04a61298a47a40f,{asChild:!0},React__namespace.createElement(CaretSortIcon,{className:"h-4 w-4 opacity-50"}))));Io.displayName=$cc7e05a45900e73f$export$41fb9f06171c75f4.displayName;var So=React__namespace.forwardRef(({className:e,children:t,position:o="popper",...a},i)=>React__namespace.createElement($cc7e05a45900e73f$export$602eac185826482c,null,React__namespace.createElement($cc7e05a45900e73f$export$7c6e2c02157bb7d2,{ref:i,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",e),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)]")},t))));So.displayName=$cc7e05a45900e73f$export$7c6e2c02157bb7d2.displayName;var jd=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($cc7e05a45900e73f$export$b04be29aa201d4f5,{ref:o,className:r("px-2 py-1.5 text-sm font-semibold",e),...t}));jd.displayName=$cc7e05a45900e73f$export$b04be29aa201d4f5.displayName;var Nt=React__namespace.forwardRef(({className:e,children:t,...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",e),...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,t)));Nt.displayName=$cc7e05a45900e73f$export$6d08773d2e66f8f2.displayName;var $d=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($cc7e05a45900e73f$export$1ff3c3f08ae963c0,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));$d.displayName=$cc7e05a45900e73f$export$1ff3c3f08ae963c0.displayName;var xn=React__namespace.forwardRef(({className:e,orientation:t="horizontal",decorative:o=!0,...a},i)=>React__namespace.createElement($89eedd556c436f6a$export$be92b6f5f03c0fe9,{ref:i,decorative:o,orientation:t,className:r("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...a}));xn.displayName=$89eedd556c436f6a$export$be92b6f5f03c0fe9.displayName;function S({className:e,...t}){return React__namespace.createElement("div",{className:r("animate-pulse rounded-md bg-primary/10",e),...t})}var En=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($faa2e61a3361514f$export$be92b6f5f03c0fe9,{ref:o,className:r("relative flex w-full touch-none select-none items-center",e),...t},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"})));En.displayName=$faa2e61a3361514f$export$be92b6f5f03c0fe9.displayName;var Kd=React__namespace.forwardRef(({className:e,...t},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",e),...t,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")})));Kd.displayName=$6be4966fd9bbc698$export$be92b6f5f03c0fe9.displayName;var hn=React__namespace.forwardRef(({className:e,...t},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",e),...t}));hn.displayName=$69cb30bb0017df05$export$54c2e3dc7acea9f5.displayName;var yn=React__namespace.forwardRef(({className:e,...t},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",e),...t}));yn.displayName=$69cb30bb0017df05$export$41fb9f06171c75f4.displayName;var Qd=React__namespace.forwardRef(({className:e,...t},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",e),...t}));Qd.displayName=$69cb30bb0017df05$export$7c6e2c02157bb7d2.displayName;var vn=React__namespace.forwardRef(({className:e,...t},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",e),ref:o,...t}));vn.displayName="Textarea";var Da=React__namespace.forwardRef(({className:e,...t},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]",e),...t}));Da.displayName=$054eb8030ebde76e$export$d5c6c08dc2d3ca7.displayName;var Xd=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"}}),Ma=React__namespace.forwardRef(({className:e,variant:t,...o},a)=>React__namespace.createElement($054eb8030ebde76e$export$be92b6f5f03c0fe9,{ref:a,className:r(Xd({variant:t}),e),...o}));Ma.displayName=$054eb8030ebde76e$export$be92b6f5f03c0fe9.displayName;var ep=React__namespace.forwardRef(({className:e,...t},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",e),...t}));ep.displayName=$054eb8030ebde76e$export$e19cd5f9376f8cee.displayName;var Oa=React__namespace.forwardRef(({className:e,...t},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",e),"toast-close":"",...t},React__namespace.createElement(Cross2Icon,{className:"h-4 w-4"})));Oa.displayName=$054eb8030ebde76e$export$f39c2d165cd861fe.displayName;var ka=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($054eb8030ebde76e$export$f99233281efd08a0,{ref:o,className:r("text-sm font-semibold [&+div]:text-xs",e),...t}));ka.displayName=$054eb8030ebde76e$export$f99233281efd08a0.displayName;var Ba=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement($054eb8030ebde76e$export$393edc798c47379d,{ref:o,className:r("text-sm opacity-90",e),...t}));Ba.displayName=$054eb8030ebde76e$export$393edc798c47379d.displayName;var sp=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"}}),lp=React__namespace.forwardRef(({className:e,variant:t,size:o,...a},i)=>React__namespace.createElement($b3bbe2732c13b576$export$be92b6f5f03c0fe9,{ref:i,className:r(sp({variant:t,size:o,className:e})),...a}));lp.displayName=$b3bbe2732c13b576$export$be92b6f5f03c0fe9.displayName;function Ht({className:e}){return React__namespace.createElement("svg",{className:r("-ml-1 mr-3 h-5 w-5 animate-spin text-white",e),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},React__namespace.createElement("circle",{className:r("stroke-brand-400 opacity-25"),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),React__namespace.createElement("path",{className:r("fill-brand-500 dark:fill-brand-900 opacity-75"),fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}))}Ht.displayName="Spinner";var Ln=(i=>(i.buyer="buyer",i.seller="seller",i.buyerSeller="buyer-seller",i.broker="broker",i))(Ln||{});var M=class M{};M.ESTIMATES_ENDPOINT_URL="https://api.liberty.percyai.io/property/v1/estimates",M.ESTIMATED_VALUES_HEADER_TITLE="Estimated Values",M.ESTIMATED_VALUES_DIALOG_TITLE="How estimated values work",M.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.",M.ESTIMATED_VALUES_BUTTON_DESCRIPTION="Contact Mortgage Consultant",M.FORM_TITLE="Learn more about my options",M.FORM_DESCRIPTION="Get more insights on how your property valuation",M.FORM_FIRST_NAME_LABEL="First Name *",M.FORM_FIRST_NAME_PLACEHOLDER="Enter First Name",M.FORM_EMAIL_ADDRESS_LABEL="Email Address *",M.FORM_EMAIL_ADDRESS_PLACEHOLDER="Enter Email Adress",M.FORM_LAST_NAME_LABEL="Last Name *",M.FORM_LAST_NAME_PLACEHOLDER="Enter Last Name",M.FORM_PHONE_NUMBER_LABEL="Phone Number *",M.FORM_PHONE_NUMBER_PLACEHOLDER="Enter Phone Number",M.FORM_USER_TYPE_LABEL="I am: *",M.FORM_USER_TYPE_PLACEHOLDER="Please tell us who you are.",M.FORM_AGENT_CHECK_BOX_DESCRIPTION="Are you currently working with a",M.FORM_AGENT_CHECK_BOX_AGENT_TYPE="Agent",M.FORM_AGENT_CHECK_BOX_BROKERAGE_NAME="Percy Realty",M.FORM_AGENT_NAME_PLACEHOLDER="Enter Agent's Name",M.FORM_ACTION_BUTTOM="Submit",M.FIRST_NAME_REQUIRED_VALIDATION_MESSAGE="First Name is required.",M.EMAIL_ADDRESS_REQUIRED_VALIDATION_MESSAGE="Email address is required.",M.EMAIL_ADDRESS_FORMAT_VALIDATION_MESSAGE="Email address format is wrong.",M.LAST_NAME_REQUIRED_VALIDATION_MESSAGE="Last Name is required.",M.PHONE_NUMBER_REQUIRED_VALIDATION_MESSAGE="Phone Number is required.",M.PHONE_NUMBER_FORMAT_VALIDATION_MESSAGE="Phone Number format is wrong.",M.IAM_REQUIRED_VALIDATION_MESSAGE="Please select an option.",M.HOME_ADDRESS_REQUIRED_VALIDATION_MESSAGE="Home Address is required.",M.ON_ERROR_OCCURRED="An error occurred while submitting the form. Please try again.",M.BUYER="A Buyer",M.SELLER="A Seller",M.BUYER_SELLER="A Buyer and Seller",M.BROKER="A Broker/Agent",M.PERIOD_1="Immediately",M.PERIOD_2="1 to 3 Months",M.PERIOD_3="3 to 6 Months",M.PERIOD_4="6 to 12 Months",M.PERIOD_5="12+ Months",M.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL="Message",M.DYNAMIC_VALUES_BUYER_MESSAGE_PLACEHOLDER="Hello, I am interested in learning more about this property.",M.DYNAMIC_VALUES_BROKER_MESSAGE_PLACEHOLDER="Hello, I am interested in learning more about this buyer.",M.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_LABEL="Home Address *",M.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_PLACEHOLDER="Enter Home Address",M.DYNAMIC_VALUES_SELLER_APROXIMATE_VALUE_LABEL="Property's Approximate Value",M.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_LABEL="Time Frame for Selling",M.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_PLACEHOLDER="Please select a time frame",M.sellerBuyerSharedContent=[{label:M.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_LABEL,type:"text",placeholder:M.DYNAMIC_VALUES_SELLER_HOME_ADDRESS_PLACEHOLDER},{label:M.DYNAMIC_VALUES_SELLER_APROXIMATE_VALUE_LABEL,type:"number",placeholder:""},{label:M.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_LABEL,type:"select",placeholder:M.DYNAMIC_VALUES_SELLER_TIME_FOR_SELLING_PLACEHOLDER}],M.DYNAMIC_VALUES={buyer:[{label:M.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL,type:"textarea",placeholder:M.DYNAMIC_VALUES_BUYER_MESSAGE_PLACEHOLDER}],seller:M.sellerBuyerSharedContent,"buyer-seller":M.sellerBuyerSharedContent,broker:[{label:M.DYNAMIC_VALUES_BUYER_MESSAGE_LABEL,type:"textarea",placeholder:M.DYNAMIC_VALUES_BROKER_MESSAGE_PLACEHOLDER}]};var G=M;function Cs({inputType:e,field:t,placeholder:o=""}){switch(e){case"textarea":return React.createElement(vn,{placeholder:o,...t});case"select":return React.createElement(ta,{onValueChange:t.onChange,defaultValue:t.value},React.createElement(Io,{className:r("shadow-none px-3 py-2 whitespace-nowrap text-sm")},React.createElement(ra,{placeholder:o})),React.createElement(So,null,React.createElement(Nt,{value:"15"},G.PERIOD_1),React.createElement(Nt,{value:"90"},G.PERIOD_2),React.createElement(Nt,{value:"180"},G.PERIOD_3),React.createElement(Nt,{value:"365"},G.PERIOD_4),React.createElement(Nt,{value:"730"},G.PERIOD_5)));case"number":return React.createElement("div",{className:r("flex flex-row w-full items-center")},React.createElement(DollarSign,{className:"h-4"}),React.createElement(Xe,{placeholder:o,className:r("shadow-none py-2 px-3 text-sm"),type:"number",...t}));default:return React.createElement(Xe,{placeholder:o,className:r("shadow-none py-2 px-3 text-sm"),...t})}}var Tp=nativeEnumType(Ln,{required_error:G.IAM_REQUIRED_VALIDATION_MESSAGE}),Lp=objectType({firstName:stringType().min(2,{message:G.FIRST_NAME_REQUIRED_VALIDATION_MESSAGE}),emailAdress:stringType({required_error:G.EMAIL_ADDRESS_REQUIRED_VALIDATION_MESSAGE}).email({message:G.EMAIL_ADDRESS_FORMAT_VALIDATION_MESSAGE}),lastName:stringType().min(2,{message:G.LAST_NAME_REQUIRED_VALIDATION_MESSAGE}),phoneNumber:stringType().min(2,{message:G.PHONE_NUMBER_REQUIRED_VALIDATION_MESSAGE}),iam:Tp,agent:booleanType().optional(),agentName:stringType().optional(),dynamicValues:arrayType(objectType({homeAddress:stringType().min(2,{message:G.HOME_ADDRESS_REQUIRED_VALIDATION_MESSAGE}).optional(),value:stringType().optional()})).optional()});function io({onSubmitForm:e,isLoading:t,error:o,showCheckbox:a=!1,brokerageName:i=G.FORM_AGENT_CHECK_BOX_BROKERAGE_NAME,agentType:n=G.FORM_AGENT_CHECK_BOX_AGENT_TYPE}){let[s,l]=React__namespace.useState("indeterminate"),c=useForm({resolver:t$p(Lp),mode:"onChange",defaultValues:{firstName:"",lastName:"",emailAdress:"",phoneNumber:"",agent:!1,agentName:"",dynamicValues:[]}}),{fields:d,append:p,remove:f}=useFieldArray({name:"dynamicValues",control:c.control}),u=c.watch("iam"),y=G.DYNAMIC_VALUES[u];function b(E){e(E);}function x(E){switch(f(),c.clearErrors("iam"),c.setValue("iam",E),E){case"buyer":p({value:G.DYNAMIC_VALUES_BUYER_MESSAGE_PLACEHOLDER});break;case"seller":p([{homeAddress:""},{value:""},{value:""}]);break;case"buyer-seller":p([{homeAddress:""},{value:""},{value:""}]);break;case"broker":p({value:G.DYNAMIC_VALUES_BROKER_MESSAGE_PLACEHOLDER});break}}function N(E,v){let _=E.target.value.replace(/[^0-9]/g,"");if(_)if(_.length<=10)E.target.value=_.replace(/^(\d{0,3})(\d{0,3})(\d{0,4})/,"($1) $2-$3");else {let T=_.slice(0,10).replace(/^(\d{0,3})(\d{0,3})(\d{0,4})/,"($1) $2-$3");E.target.value=T;}else E.target.value="";v(E);}function g(E,v){E.target.value=E.target.value.replace(/[^a-zA-Z\s]/g,""),v(E);}return React__namespace.createElement(oi,{...c},React__namespace.createElement("form",{onSubmit:c.handleSubmit(b),className:r("flex flex-col items-start gap-8 w-auto md:w-[700px] lg:w-[786px]")},React__namespace.createElement("div",{className:r("flex flex-col items-start gap-2")},React__namespace.createElement("h2",{className:r("text-lg font-semibold leading-7 text-slate-900")},G.FORM_TITLE),React__namespace.createElement("p",{className:r("text-sm font-normal leading-5 text-[#64748B]")},G.FORM_DESCRIPTION)),React__namespace.createElement("div",{className:r("flex flex-col gap-4 w-full")},React__namespace.createElement("div",{className:r("flex flex-col md:flex-row lg:flex-row gap-4 md:gap-8 lg:gap-8")},React__namespace.createElement(mt,{control:c.control,name:"firstName",render:({field:E})=>React__namespace.createElement(ot,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(ct,{className:r("text-sm font-medium leading-[14px]")},G.FORM_FIRST_NAME_LABEL),React__namespace.createElement(Je,null,React__namespace.createElement(Xe,{type:"text",className:r("shadow-none py-2 px-3 text-sm"),placeholder:G.FORM_FIRST_NAME_PLACEHOLDER,onChange:v=>g(v,E.onChange)})),React__namespace.createElement(Rt,null))}),React__namespace.createElement(mt,{control:c.control,name:"lastName",render:({field:E})=>React__namespace.createElement(ot,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(ct,{className:r("text-sm font-medium leading-[14px]")},G.FORM_LAST_NAME_LABEL),React__namespace.createElement(Je,null,React__namespace.createElement(Xe,{className:r("shadow-none py-2 px-3 text-sm"),placeholder:G.FORM_LAST_NAME_PLACEHOLDER,onChange:v=>g(v,E.onChange)})),React__namespace.createElement(Rt,null))})),React__namespace.createElement("div",{className:r("flex flex-col md:flex-row lg:flex-row gap-4 md:gap-8 lg:gap-8")},React__namespace.createElement(mt,{control:c.control,name:"emailAdress",render:({field:E})=>React__namespace.createElement(ot,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(ct,{className:r("text-sm font-medium leading-[14px]")},G.FORM_EMAIL_ADDRESS_LABEL),React__namespace.createElement(Je,null,React__namespace.createElement(Xe,{className:r("shadow-none py-2 px-3 text-sm"),placeholder:G.FORM_EMAIL_ADDRESS_PLACEHOLDER,type:"email",...E})),React__namespace.createElement(Rt,null))}),React__namespace.createElement(mt,{control:c.control,name:"phoneNumber",render:({field:E})=>React__namespace.createElement(ot,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(ct,{className:"text-sm font-medium leading-[14px]"},G.FORM_PHONE_NUMBER_LABEL),React__namespace.createElement(Je,null,React__namespace.createElement(Xe,{className:r("shadow-none py-2 px-3 text-sm"),placeholder:G.FORM_PHONE_NUMBER_PLACEHOLDER,onChange:v=>N(v,E.onChange)})),React__namespace.createElement(Rt,null))})),React__namespace.createElement("div",{className:r("flex flex-col items-end lg:items-center md:flex-row lg:flex-row gap-4 md:gap-8 lg:gap-8")},a&&React__namespace.createElement("div",{className:"flex flex-col gap-4 flex-1"},React__namespace.createElement(mt,{control:c.control,name:"agent",render:({field:E})=>React__namespace.createElement(ot,null,React__namespace.createElement(Je,null,React__namespace.createElement("div",{className:"flex items-center space-x-2"},React__namespace.createElement(on,{checked:E.value,onCheckedChange:v=>{E.onChange(v),l(v);}}),React__namespace.createElement(ct,{className:r("text-sm font-normal leading-5")},`${G.FORM_AGENT_CHECK_BOX_DESCRIPTION} ${i} ${n}`))))}),s&&s!=="indeterminate"&&React__namespace.createElement(mt,{control:c.control,name:"agentName",render:({field:E})=>React__namespace.createElement(ot,null,React__namespace.createElement(Je,null,React__namespace.createElement(Xe,{className:r("shadow-none py-2 px-3 text-sm"),placeholder:G.FORM_AGENT_NAME_PLACEHOLDER,onChange:v=>g(v,E.onChange)})))})),React__namespace.createElement("div",{className:" w-full lg:w-[48%] md:w-[48%]"},React__namespace.createElement(mt,{control:c.control,name:"iam",render:({field:E})=>React__namespace.createElement(ot,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(ct,{className:r("text-sm font-medium leading-[14px]")},G.FORM_USER_TYPE_LABEL),React__namespace.createElement(Je,null,React__namespace.createElement(ta,{onValueChange:x},React__namespace.createElement(Io,{className:r("shadow-none px-3 py-2 text-sm")},React__namespace.createElement(ra,{placeholder:G.FORM_USER_TYPE_PLACEHOLDER})),React__namespace.createElement(So,null,React__namespace.createElement(Nt,{value:"buyer"},G.BUYER),React__namespace.createElement(Nt,{value:"seller"},G.SELLER),React__namespace.createElement(Nt,{value:"buyer-seller"},G.BUYER_SELLER),React__namespace.createElement(Nt,{value:"broker"},G.BROKER)))),React__namespace.createElement(Rt,null))}))),y&&React__namespace.createElement("div",{className:r("flex flex-col items-start gap-4 w-full")},d.map((E,v)=>React__namespace.createElement(mt,{control:c.control,key:E.id,name:v===0&&(u==="seller"||u==="buyer-seller")?`dynamicValues.${v}.homeAddress`:`dynamicValues.${v}.value`,shouldUnregister:!0,render:({field:_})=>React__namespace.createElement(ot,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(ct,{className:r("text-sm font-medium leading-[14px]")},y[v]?.label),React__namespace.createElement(Je,null,React__namespace.createElement(Cs,{inputType:y[v].type,field:_,placeholder:y[v].placeholder})),React__namespace.createElement(Rt,null))})))),React__namespace.createElement("div",{className:r("flex flex-row justify-end w-full")},React__namespace.createElement(F,{disabled:t,type:"submit"},t&&React__namespace.createElement(Ht,null),G.FORM_ACTION_BUTTOM)),o&&React__namespace.createElement(Or,{variant:"destructive"},React__namespace.createElement(AlertCircle,{className:"h-4 w-4"}),React__namespace.createElement(kr,null,"Error"),React__namespace.createElement(ur,null,G.ON_ERROR_OCCURRED))))}var m=class{static EQUITY_MORTGAGE_DETAILS_BANNER_DESCRIPTION(t,o,a,i,n){return `Public records show a ${t} year loan at ${o} for ${a} from ${i}, giving you an estimated loan balance of ${n}. 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(t,o,a,i){return `These numbers are all based on your ${a} year loan at ${t} for ${o} from ${i}.`}static PAY_LITTLE_EXTRA_DESCRIPTION(t,o,a,i){return `Based on your ${t} year loan at ${o} for ${a} from ${i}`}static PAY_LITTLE_EXTRA_EARLIER_MESSAGE(t){return `You would also be done with the loan and no longer making payments ${t} earlier!`}static REFINANCE_OPTIONS_LONG_TERM_MESSAGE(t){return `Long term ${t}`}static REFINANCE_OPTIONS_PAYMENT_PER_MONTH_DESCRIPTION(t,o){return `Payment may go ${t} by ${o}/mo`}static USING_YOUR_EQUITY_SUBTITLE(t){return `With your ${t} in equity, you could afford to`}static USING_EQUITY_BUY_NEW_HOME_DIALOG_HEADLINE(t,o){return `Using ${t} of your estimated equity, you could make a 20% down payment on a new house worth around ${o}.`}static USING_EQUITY_MONTHLY_PRINCIPAL_INTEREST(t,o){return `Your new monthly principal and interest payment on a 30-year mortgage at ${t} APR is estimated at ${o}/mo`}static USING_EQUITY_REMINDER(t,o){return `Reminder: You'll pay ${t}-${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(t){return `Are you ready to cash in on your equity? You could sell your home and pocket around ${t}.`}static USING_EQUITY_INVESMENT_PROPERTY_HEADLINE(t,o){return `You could use around ${t} of your equity as a 30% down payment on an investment home worth ${o}.`}static USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_1(t,o){return `With your ${t} 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.)`}};m.ACTION_OK_BUTTON_LABEL="OK",m.DESCRIPTION_YEARS_LABEL="Years",m.YEAR=" year",m.PLURAL="s ",m.AND=" and ",m.MONTH=" month",m.RATE=" rate",m.HOME_GUIDE_URL="https://homeguide.com/costs/home-addition-cost",m.HOME_GUIDE="homeguide.com 2020",m.EL_ISSA="El Issa, 2019",m.EL_ISSA_URL="https://www.nerdwallet.com/blog/average-credit-card-debt-household/",m.TICAS="TICAS, Student Debt and the Class of 2018",m.TICAS_URL="https://ticas.org/wp-content/uploads/2019/09/classof2018.pdf",m.NO_DATA_AVAILABLE_LABEL="No Data Available",m.ACTION_BUTTON_BEST_OPTION_LABEL="Which option is best for me?",m.LEARN_MORE_LABEL="Learn more about this",m.EDIT_DETAILS_LABEL="Edit Details",m.WHY_PAY_MORE_LABEL="Why Pay More?",m.EARLY_LOAN_LABEL="Early Loan Payoff Information",m.ASK_AGENT_LABEL="Ask an Agent",m.CONFIGURATION_ERROR_LABEL="Configuration Error",m.CONFIGURATION_ERROR_KEY_EXPIRED_LABEL="Key is expired",m.EQUITY_MORTGAGE_DETAILS_HEADER_TITLE="Equity In Your Home",m.EQUITY_MORTGAGE_DETAILS_DESCRIPTION="Equity is your home's worth to you!",m.EQUITY_MORTGAGE_DETAILS_ALL_GOOD_BUTTON="All Good",m.EQUITY_MORTGAGE_DETAILS_BANNER_TITLE="Verify Your Mortgage Details",m.EQUITY_MORTGAGE_DETAILS_TITLE="Estimated Equity Today",m.EQUITY_MORTGAGE_DETAILS_HOW_CALCULATED="How is this calculated?",m.EQUITY_MORTGAGE_DETAILS_DISCLAIMER="Disclaimer",m.EDIT_MORTGAGE_DETAILS_FORM_TITLE="Edit Mortgage Info",m.EDIT_MORTGAGE_DETAILS_LOAN_START_DATE_LABEL="Loan Start Date",m.EDIT_MORTGAGE_DETAILS_LOAN_TERM_LABEL="Loan Term",m.EDIT_MORTGAGE_DETAILS_INTEREST_RATE_LABEL="Interest Rate",m.EDIT_MORTGAGE_DETAILS_ORIGINAL_LOAN_AMOUNT_LABEL="Original Loan Amount",m.EDIT_MORTGAGE_DETAILS_BALANCE_LABEL="Estimated Mortgage Balance",m.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.",m.HOW_CALCULATE_TITLE="How Is My Net Worth Calculated?",m.HOW_CALCULATE_DESCRIPTION='Your net worth ("equity") is made up of two things.',m.HOW_CALCULATE_HOME_VALUE_LABEL="Home Value",m.HOW_CALCULATE_LOAN_BALANCE_LABEL="Loan Balance",m.HOW_CALCULATE_YOUR_NET_WORTH_LABEL="Your Net Worth",m.HOW_CALCULATE_INFORMATION_SUBTITLE="Where does this information come from?",m.HOW_CALCULATE_NOTE_DESCRIPTION="Note: Only the first lien mortgage and resale are used to calculate the balance of your loan.",m.PAY_LITTLE_EXTRA_HEADER_TITLE="Pay A Little Extra",m.PAY_LITTLE_EXTRA_SUBTITLE="How much more can you pay per month?",m.PAY_LITTLE_EXTRA_CALCULATION_IF_YOU_PAY="If you pay just ",m.PAY_LITTLE_EXTRA_CALCULATION_MORE=" more each month, you could save",m.PAY_LITTLE_EXTRA_CALCULATION_DESCRIPTION="in interest over the rest of your loan",m.PAY_LITTLE_EXTRA_INFO_DESCRIPTION="You would also be done with the loan and no longer making payments 10 years and 2 months earlier!",m.PAY_LITTLE_EXTRA_PAYING_EXTRA="Paying extra can be an easy way to save.",m.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.",m.PAY_LITTLE_EXTRA_PAYING_EXTRA_BEST_PART="The best part is that there's no paperwork, fees or headaches.",m.PAY_LITTLE_EXTRA_PAYING_EXTRA_IMPORTANT_TIP="*Important Tip* ",m.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).",m.PAY_LITTLE_EXTRA_LENGTH_LOAN_REMAIN_MESSAGE="The length of your loan would remain unchanged with this extra payment.",m.CONTACT_AGENT_TITLE="We Might Have The Perferct Buyer For Your Home",m.CONTACT_AGENT_DESCRIPTION="Click the button and we'll look though our buyer database for you.",m.REFINANCE_OPTIONS_HEADER_TITLE="Refinance Options",m.REFINANCE_OPTIONS_HEADER_SUBTITLE="With a refinance of your loan, you could save",m.REFINANCE_OPTIONS_LEARN_MORE_DESCRIPTION=`
76952
76952
  All loans are subject to credit approval. Interest rates are subject to
76953
76953
  change daily and without notice. Current interest rates shown are
76954
76954
  indicative of market conditions and individual qualifications and will
@@ -76960,33 +76960,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
76960
76960
  nightly with the previous day's locks. Contact a loan officer for the
76961
76961
  most up-to-date rates with specific loan quote details, and check
76962
76962
  current market.
76963
- `,m.REFINANCE_OPTIONS_FIFTEEN_YEAR_FIXED_LABEL="15 Year Fixed",m.REFINANCE_OPTIONS_THIRTY_YEAR_FIXED_LABEL="30 Year Fixed",m.REFINANCE_OPTIONS_NO_SAVINGS_MESSAGE="No net loss or savings",m.REFINANCE_OPTIONS_LOSS_LABEL="loss",m.REFINANCE_OPTIONS_SAVINGS_LABEL="savings",m.REFINANCE_OPTIONS_PAYMENTS_NOCHANGE_MESSAGE="Payment will not change",m.REFINANCE_OPTIONS_NO_CHANGE_LABEL="No Change",m.REFINANCE_OPTIONS_GO_UP_LABEL="Go Up",m.REFINANCE_OPTIONS_GO_DOWN_LABEL="Go Down",m.REFINANCE_OPTIONS_UP_LABEL="up",m.REFINANCE_OPTIONS_DOWN_LABEL="down",m.USING_YOUR_EQUITY_HEADER_TITLE="Using Your Equity",m.USING_EQUITY_BUY_NEW_HOME="Buy a new home",m.USING_EQUITY_GET_MORE_SQUARE_FOOTAGE="Get more square footage, a larger yard, or switch neighborhoods - you have options!",m.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.",m.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.",m.USING_EQUITY_SELL_CASH_DESCRIPTION_3="You could also downsize into a cheaper home using a portion of your equity and save the rest.",m.USING_EQUITY_CONSULT_TAX_ADVISOR="Always consult a professional tax advisor to understand implications for your specific situation.",m.USING_EQUITY_RENTAL_INCOME="Possibly use rental income to cover some or all of your new mortgage payment.",m.USING_EQUITY_EXPENSES_DEDUCTED="Consult your professional tax advisor to see if expenses related to this property can be deducted.",m.USING_EQUITY_LANDLORD="Consider if you have time to be a landlord (or if you should hire a property manager).",m.USING_EQUITY_CONSULT_A_LOAN_OFFICER="Consult a loan officer",m.USING_EQUITY_BUY_INVESMENT_PROPERTY="Buy an investment property",m.USING_EQUITY_INVESMENT_PROPERTY="Investment Property",m.USING_EQUITY_SELL_CASH="Sell & pocket cash",m.USING_EQUITY_HOME_IMPROVEMENTS="Make home improvements",m.USING_EQUITY_LIVABLE_SPACE="Add more livable space",m.USING_EQUITY_EMERGENCY_FUND="Create emergency fund",m.USING_EQUITY_CREDIT_CARD_DEBT="Eliminate credit card debt",m.USING_EQUITY_VACATION="Splurge on a dream vacation",m.USING_EQUITY_STUDENT_LOANS="Pay down student loans",m.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.",m.USING_EQUITY_HOME_INPROVEMENTS_TAX_DEDUCTIBLE="Equity used for home improvements is still tax-deductible in many cases. (Always consult a professional tax advisor)",m.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.",m.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_SUNROOM="The lowest value improvements are sunroom, swimming pools, and bathroom additions.",m.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_SOURCE="Source: HGTV.",m.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. ",m.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.",m.USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_3="Make sure to stay disciplined and only use the money for true emergencies.",m.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.",m.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_1='"The majority of additions add value and offer a 50% return on investment." ',m.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_2="If local ordinances allow it could be used as a rental.",m.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_3="Qualifies as a home improvement so equity interest is tax-deductible.",m.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. ",m.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_1="Home equity rates are often (but not always) less than student loans.",m.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_2="Paying off student loans is a great way to establish credit history.",m.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.",m.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]. ",m.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_1="Home equity rates are often substantially lower than those on credit cards",m.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.",m.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.",m.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:",m.LOAN_AMOUNT_CANNOT_EXCEED="The remaining loan amount cannot exceed the initial loan principal.",m.VALUE_GREATER_THAN_ZERO="The value must be greater than 0.",m.EXCELENT_INVESTMENT="Excellent Investment",m.MODERATE_INVESTMENT="Moderate Investment",m.POOR_INVESTMENT="Poor Investment",m.EXCELENT_INVESTMENT_DESCRIPTION="High potential, recommended for consideration.",m.MODERATE_INVESTMENT_DESCRIPTION="Average potential, consider with caution.",m.POOR_INVESTMENT_DESCRIPTION="Low potential, strongly advised to avoid.";function Gt({message:e=m.NO_DATA_AVAILABLE_LABEL}){let t="text-gray-400";return React__namespace.createElement("div",{className:r("flex flex-col bg-gray-100 rounded-lg items-center justify-center gap-3 h-72 m-3 lg:m-8 md:m-8")},React__namespace.createElement(XOctagon,{strokeWidth:.4,className:r("h-24 w-24",t)}),React__namespace.createElement("p",{className:r(t)},e))}function $e({children:e}){return React__namespace.createElement("div",{className:r("flex justify-center w-full")},e)}function Er({children:e}){return React__namespace.createElement("div",{className:r("flex flex-auto justify-center w-full")},e)}function hr({trigger:e,content:t,title:o,asChild:a=!1,actionButtomLabel:i=m.ACTION_OK_BUTTON_LABEL}){return React__namespace.createElement(as,null,React__namespace.createElement(is,{asChild:a},e),React__namespace.createElement(Qi,{className:r("flex flex-col gap-2 p-6","h-screen lg:h-auto md:h-auto overflow-y-auto")},o&&React__namespace.createElement(Ji,null,o),t,React__namespace.createElement(Zi,null,React__namespace.createElement(Xi,null,i))))}function Ds({title:e,infoTitle:t,icon:o,infoDescription:a,titleDescription:i,showInfo:n=!0,showIconBackground:s=!0,inlineDescription:l=!1}){let c=React__namespace.cloneElement(o,{className:"w-6 h-6"});return React__namespace.createElement("div",{className:r("flex flex-col items-start ",{"w-full flex-col md:flex-row md:justify-between md:mr-10 md:items-center":l})},React__namespace.createElement("div",{className:r("flex flex-row items-center gap-1")},React__namespace.createElement("div",{className:r("flex flex-col items-center rounded-[100px] p-2",s?"bg-slate-50":"")},c),React__namespace.createElement("h3",{className:r("font-semibold leading-8 text-xl md:text-2xl lg:text-2xl text-gray-700")},e),n&&React__namespace.createElement(hr,{asChild:!0,title:t,trigger:React__namespace.createElement(Info,{className:r("w-5 h-5 text-gray-400")}),content:a})),i&&React__namespace.createElement("p",{className:r("text-gray-400 ml-[50px] text-xs md:text-sm lg:text-sm",{"text-right md:w-60":l})},i))}function Ke({icon:e,infoDescription:t,title:o,titleDescription:a,infoTitle:i,actions:n,showInfo:s=!0,showActions:l=!1,showIconBackground:c=!0,inlineDescription:d=!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(Ds,{title:o,titleDescription:a,infoTitle:i,icon:e,infoDescription:t,showInfo:s,showIconBackground:c,inlineDescription:d}),l&&n&&n)}function Yt({open:e,onOpenChange:t,trigger:o,content:a,footer:i,title:n,description:s,className:l,triggerAsChild:c=!0}){return React__namespace.createElement(Qo,{open:e,onOpenChange:t},React__namespace.createElement(Xa,{asChild:c},o),React__namespace.createElement(_o,{className:r("flex flex-col max-w-full md:w-auto lg:w-auto","h-screen lg:h-auto md:h-auto overflow-y-auto",l)},React__namespace.createElement(tn,null,n&&React__namespace.createElement(on,null,n),s&&React__namespace.createElement(an,null,s)),a,React__namespace.createElement(rn,null,i)))}function pt(e){try{return typeof e=="string"&&(e=parseFloat(e)),e.toLocaleString("en-US")}catch(t){return console.error("Error formatting the number:",t),""}}function k(e){try{return typeof e>"u"||e===null?"":`$${pt(e)}`}catch(t){return console.error("Error adding the dollar sign:",t),""}}function aa(e){try{let t=e.replace(/[$,]/g,""),o=parseFloat(t);if(isNaN(o))throw new Error("Invalid numeric value");return o}catch(t){throw console.error("Error parsing currency:",t),t}}function qe(e){try{return `${e}%`}catch(t){return console.error("Error adding the percentage sign:",t),""}}function Tn(e){try{return new Date(e)}catch(t){throw console.error("Error parsing the date:",t),t}}function ia(e){try{let t=Tn(e),a=["January","February","March","April","May","June","July","August","September","October","November","December"][t.getMonth()],i=t.getFullYear();return `${a} ${i}`}catch(t){return console.error("Error formatting the date:",t),""}}var wp=async(e,t)=>{if(!e)return;let o=await fetch(e,t);if(!o.ok)throw new Error("An error occurred while fetching the data.");return o.json()},Dp=async e=>Xn({clientKey:e});function ne({clientKey:e,apiKey:t}){let o=!!e,{data:a,error:i,mutate:n}=useSWR(e?["token",e]:null,()=>Dp(e),{revalidateOnFocus:!1,shouldRetryOnError:!1,keepPreviousData:!0}),s=React$1.useCallback(async()=>{if(a?.refreshToken){let c=await es(a.refreshToken);c&&n(c);}},[a,n]),l=React$1.useCallback(async c=>Mp(c,{tokens:a,apiKey:t,isExternal:o}),[a,t,o]);return {isExternal:o,tokens:a,isLoading:o&&!a&&!i,isError:i,refreshToken:s,request:l}}var Qe=(e,{tokens:t,apiKey:o,isExternal:a,onSuccess:i})=>{let{url:n,requestInit:s}=e,{headers:l,...c}=s??{},d={"Content-Type":"application/json",...t?.token&&{Authorization:`Bearer ${t.token}`},...o&&{"x-api-key":o},...l},{data:p,error:u,isValidating:f,mutate:v}=useSWR(t||!a?[n,JSON.stringify(d)]:null,()=>wp(n,{headers:d,...c}),{revalidateOnFocus:!1,shouldRetryOnError:!1,onSuccess:N=>{i?.(N);}});return {data:p,isLoading:!u&&!p||f,isError:u,mutate:v}};async function Mp(e,t={}){let{url:o,requestInit:a}=e,{tokens:i,apiKey:n,isExternal:s}=t,{headers:l,...c}=a??{};if(!o)throw new Error("Request URL is null or undefined");let d={"Content-Type":"application/json",...i?.token&&{Authorization:`Bearer ${i.token}`},...n&&{"x-api-key":n},...l};try{let p=await fetch(o,{headers:d,...c});if(!p.ok)throw new Error(`HTTP error! status: ${p.status}`);return await p.json()}catch(p){throw console.error("Request failed:",p),p}}function zs(e){return Op.parseLocation(e)}function kp(e,t){let o=e.toLowerCase(),a=t.filter(s=>s!==void 0);return o.split(" ").filter(s=>!a.includes(s)).join(" ")}function lo(e){if(!e)return;let t=zs(e),a=e.split(",")[0];return {streetAddress:kp(a,[t?.sec_unit_num,t?.sec_unit_type]),address:a,city:t?.city??"",state:t?.state??"",zipcode:t?.zip??""}}function er({address:e,clientKey:t,apiKey:o}){let[a,i]=React$1.useState(),{isExternal:n,tokens:s}=ne({clientKey:t,apiKey:o}),l=useReadLocalStorage("selectedAddress"),d=lo(e??l),p=React$1.useMemo(()=>d?`${n?"https://api.liberty.percyai.io/property/v1/details":"https://api.liberty.percyai.io/property/v-internal/details"}?address=${encodeURIComponent(d.address)}&city=${encodeURIComponent(d.city)}&state=${encodeURIComponent(d.state)}&zipcode=${encodeURIComponent(d.zipcode)}`:null,[d,n]),{data:u,isError:f,isLoading:v}=Qe({url:a??p},{tokens:s,apiKey:o,isExternal:n}),N=React$1.useCallback(({address:b,streetAddress:g})=>{let x=new URL(n?"https://api.liberty.percyai.io/property/v1/details":"https://api.liberty.percyai.io/property/v-internal/details");g?x.searchParams.set("address",b?.streetAddress??""):x.searchParams.set("address",b?.address??""),x.searchParams.set("city",b?.city??""),x.searchParams.set("state",b?.state??""),x.searchParams.set("zipcode",b?.zipcode??""),n||x.searchParams.set("sources","attom,zillow,quantarium,corelogic,rpr,homejunction,rpr,collateral,collateral_analytics"),i(x.toString());},[n]),E=u?.data?.coordinates?{lat:parseFloat(u.data.coordinates.latitude),lng:parseFloat(u.data.coordinates.longitude)}:void 0;return {address:d,location:E,loadingCoordinates:v,isError:f,fetchLocation:N}}var sa="AIzaSyASLd0x2iEVZpo9r0NBC8beqN_YRFRm_dM";var Ks=({url:e,address:t,internalZipcode:o,clientKey:a,apiKey:i,loadingInitialState:n})=>{let{address:s}=er({address:t,clientKey:a,apiKey:i}),{tokens:l,isExternal:c}=ne({clientKey:a,apiKey:i,loadingInitialState:n}),d=D(l?.meta,"color"),p=o||s?.zipcode,u=React__namespace.useMemo(()=>{if(!e||!p)return null;let b=new URL(e);return b.searchParams.set("zipcode",p),d?.value&&b.searchParams.set("colors",d?.value),b.toString()},[e,p]),{data:f,isLoading:v,isError:N,mutate:E}=Qe({url:u},{tokens:l,apiKey:i,isExternal:c});return {data:f?.data,isLoading:v,isError:N,isExternal:c,tokens:l,mutate:E,address:s}};function Fp(e){let t=.2;return e>=15&&(t=.1),e>=45&&(t=.05),e>=135&&(t=.025),e*t}function Qs(e){let t={min:7,max:12},o=Fp(e),a=t.min+o,i=Math.max(Math.min(a,t.max),t.min);return Math.round(i)}function Js(e,t){React__namespace.useEffect(e,t.map(qp));}function qp(e){let t=React__namespace.useRef();return zp(e,t.current)||(t.current=e),t.current}var Zs=e=>e!=null&&typeof e=="object"&&Number.isFinite(e.lat)&&Number.isFinite(e.lng),zp=fastEqualsExports.createCustomEqual(e=>({areObjectsEqual(t,o){return Zs(t)||t instanceof google.maps.LatLng||Zs(o)||o instanceof google.maps.LatLng?new google.maps.LatLng(t).equals(new google.maps.LatLng(o)):fastEqualsExports.deepEqual(t,o)}}));var mo=[{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 Ha({className:e,onClick:t,onIdle:o,children:a,centerOnMarker:i,geoJson:n,center:s,...l}){let c=React__namespace.useRef(null),[d,p]=React__namespace.useState(),[u,f]=React__namespace.useState(!1),[v,N]=React__namespace.useState(null),[E,b]=React__namespace.useState(null);return React__namespace.useEffect(()=>{if(c.current&&d===void 0){let g=new window.google.maps.Map(c.current,{styles:mo});p(g);}},[c,d]),Js(()=>{d&&(d.setOptions(l),f(!0));},[d,l]),React__namespace.useEffect(()=>{d&&(["click","idle"].forEach(g=>google.maps.event.clearListeners(d,g)),t&&d.addListener("click",t),o&&d.addListener("idle",()=>o(d)));},[d,t,o]),React__namespace.useEffect(()=>{if(d&&n){if(v&&E&&(v.setMap(null),E.setMap(null)),s){d.setCenter(s);let _=new google.maps.Marker({position:s,map:d});b(_);}let g=new google.maps.Data;g.addGeoJson(n),g.setStyle(_=>({fillColor:_.getProperty("color")??"#FFFFCC",strokeWeight:1,fillOpacity:.5,strokeColor:"white"})),g.setMap(d),N(g);let x=n?.features.length,h=Qs(x);d.setZoom(h);}},[d,n]),React__namespace.useEffect(()=>{if(u&&i&&d&&React__namespace.Children.count(a)>0){let g=new google.maps.LatLngBounds;React__namespace.Children.map(a,h=>{if(React__namespace.isValidElement(h)){let _=h.props.activity.lat,T=h.props.activity.lng;return {lat:parseFloat(_),lng:parseFloat(T)}}})?.forEach(h=>{g.extend(h);}),g.extend({lat:g.getNorthEast().lat()+.005,lng:g.getNorthEast().lng()}),d.fitBounds(g);}},[d,i,a,u]),React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("div",{ref:c,className:e}),React__namespace.Children.map(a,g=>{if(React__namespace.isValidElement(g))return React__namespace.cloneElement(g,{map:d})}))}function la({message:e=m.NO_DATA_AVAILABLE_LABEL,mapHeight:t="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:t,height:t,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)},e))}var Xs=["#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],el="https://api.liberty.percyai.io/location/v1/heatmap";function tl(){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")},Xs.map((e,t)=>React__namespace.createElement("div",{key:t,className:r("w-4 h-4"),style:{backgroundColor:e}})))))}function Ub({address:e,zipcode:t,url:o=el,zoomLevel:a=10,zoomControl:i=!0,googleApiKey:n,clientKey:s,apiKey:l,height:c="420px"}){let{isLoading:d,data:p}=Ks({url:o,address:e,clientKey:s,apiKey:l,internalZipcode:t}),u=f=>f===index_umdExports.Status.FAILURE?React__namespace.createElement("p",null,"failed"):React__namespace.createElement("p",null,"loading...");return React__namespace.createElement("div",{className:r("flex flex-col bg-white w-full")},React__namespace.createElement(Ke,{title:"Heat Map",infoDescription:"The best way to visualize the distribution of data in a geographical area.",infoTitle:"Heat Map",icon:React__namespace.createElement(MapPin,null)}),React__namespace.createElement($e,null,React__namespace.createElement("div",{className:r("w-full justify-center m-3 lg:m-8 md:m-8")},React__namespace.createElement("div",{className:r("relative rounded-lg overflow-hidden w-full",{"animate-pulse rounded-lg bg-primary/10":d}),style:{maxHeight:c,height:c}},React__namespace.createElement("div",{className:"flex h-full"},React__namespace.createElement(index_umdExports.Wrapper,{apiKey:n??sa,render:u},React__namespace.createElement(Ha,{className:"grow h-full",zoom:a,minZoom:2,maxZoom:18,geoJson:p?.geoJson,center:p?.center,zoomControl:i,zoomControlOptions:{position:3},centerOnMarker:!1,fullscreenControl:!1,streetViewControl:!1,mapTypeControl:!1,clickableIcons:!1}))),React__namespace.createElement(tl,null),!p&&!d&&React__namespace.createElement(la,null)))))}function pe(e,t,o){switch(e){case 18:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??16,height:o??16,viewBox:"0 0 16 16",fill:"none"},React__namespace.createElement("path",{d:"M4.6665 4.66669H11.3332V11.3334",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M4.6665 11.3334L11.3332 4.66669",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}));case 17:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??20,height:o??20,viewBox:"0 0 20 20",fill:"none"},React__namespace.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 7C11.4477 7 11 6.55228 11 6C11 5.44772 11.4477 5 12 5H17C17.5523 5 18 5.44772 18 6V11C18 11.5523 17.5523 12 17 12C16.4477 12 16 11.5523 16 11V8.41421L11.7071 12.7071C11.3166 13.0976 10.6834 13.0976 10.2929 12.7071L8 10.4142L3.70711 14.7071C3.31658 15.0976 2.68342 15.0976 2.29289 14.7071C1.90237 14.3166 1.90237 13.6834 2.29289 13.2929L7.29289 8.29289C7.68342 7.90237 8.31658 7.90237 8.70711 8.29289L11 10.5858L14.5858 7H12Z",fill:"#3B81F5"}));case 16:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??12,height:o??12,viewBox:"0 0 12 12",fill:"none"},React__namespace.createElement("path",{d:"M0 2.625C0 2.32663 0.118526 2.04048 0.329505 1.8295C0.540483 1.61853 0.826631 1.5 1.125 1.5H10.875C11.1734 1.5 11.4595 1.61853 11.6705 1.8295C11.8815 2.04048 12 2.32663 12 2.625V9.375C12 9.67337 11.8815 9.95952 11.6705 10.1705C11.4595 10.3815 11.1734 10.5 10.875 10.5H1.125C0.826631 10.5 0.540483 10.3815 0.329505 10.1705C0.118526 9.95952 0 9.67337 0 9.375L0 2.625ZM1.125 2.25C1.02554 2.25 0.930161 2.28951 0.859835 2.35984C0.789509 2.43016 0.75 2.52554 0.75 2.625V9.375C0.75 9.47446 0.789509 9.56984 0.859835 9.64017C0.930161 9.71049 1.02554 9.75 1.125 9.75H10.875C10.9745 9.75 11.0698 9.71049 11.1402 9.64017C11.2105 9.56984 11.25 9.47446 11.25 9.375V2.625C11.25 2.52554 11.2105 2.43016 11.1402 2.35984C11.0698 2.28951 10.9745 2.25 10.875 2.25H1.125Z",fill:"#374151"}),React__namespace.createElement("path",{d:"M1.5 3.375C1.5 3.27554 1.53951 3.18016 1.60984 3.10984C1.68016 3.03951 1.77554 3 1.875 3H4.125C4.22446 3 4.31984 3.03951 4.39016 3.10984C4.46049 3.18016 4.5 3.27554 4.5 3.375C4.5 3.47446 4.46049 3.56984 4.39016 3.64016C4.31984 3.71049 4.22446 3.75 4.125 3.75H2.25V5.625C2.25 5.72446 2.21049 5.81984 2.14016 5.89016C2.06984 5.96049 1.97446 6 1.875 6C1.77554 6 1.68016 5.96049 1.60984 5.89016C1.53951 5.81984 1.5 5.72446 1.5 5.625V3.375ZM10.5 8.625C10.5 8.72446 10.4605 8.81984 10.3902 8.89017C10.3198 8.96049 10.2245 9 10.125 9H7.875C7.77554 9 7.68016 8.96049 7.60983 8.89017C7.53951 8.81984 7.5 8.72446 7.5 8.625C7.5 8.52554 7.53951 8.43016 7.60983 8.35983C7.68016 8.28951 7.77554 8.25 7.875 8.25H9.75V6.375C9.75 6.27554 9.78951 6.18016 9.85983 6.10983C9.93016 6.03951 10.0255 6 10.125 6C10.2245 6 10.3198 6.03951 10.3902 6.10983C10.4605 6.18016 10.5 6.27554 10.5 6.375V8.625Z",fill:"#374151"}));case 15:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??13,height:o??12,viewBox:"0 0 13 12",fill:"none"},React__namespace.createElement("g",{clipPath:"url(#clip0_254_1638)"},React__namespace.createElement("path",{d:"M11.375 4.5H10.25C10.25 4.40054 10.2105 4.30516 10.1402 4.23484C10.0698 4.16451 9.97446 4.125 9.875 4.125H6.875C6.77554 4.125 6.68016 4.16451 6.60983 4.23484C6.53951 4.30516 6.5 4.40054 6.5 4.5H3.5V2.4375C3.5 2.28832 3.55926 2.14524 3.66475 2.03975C3.77024 1.93426 3.91332 1.875 4.0625 1.875C4.21168 1.875 4.35476 1.93426 4.46025 2.03975C4.56574 2.14524 4.625 2.28832 4.625 2.4375C4.625 2.53696 4.66451 2.63234 4.73484 2.70266C4.80516 2.77299 4.90054 2.8125 5 2.8125C5.09946 2.8125 5.19484 2.77299 5.26516 2.70266C5.33549 2.63234 5.375 2.53696 5.375 2.4375C5.375 2.0894 5.23672 1.75556 4.99058 1.50942C4.74444 1.26328 4.4106 1.125 4.0625 1.125C3.7144 1.125 3.38056 1.26328 3.13442 1.50942C2.88828 1.75556 2.75 2.0894 2.75 2.4375V4.5H1.625C1.42609 4.5 1.23532 4.57902 1.09467 4.71967C0.954018 4.86032 0.875 5.05109 0.875 5.25V6.75C0.875 7.44619 1.15156 8.11387 1.64384 8.60616C2.13613 9.09844 2.80381 9.375 3.5 9.375V10.125C3.5 10.2245 3.53951 10.3198 3.60984 10.3902C3.68016 10.4605 3.77554 10.5 3.875 10.5C3.97446 10.5 4.06984 10.4605 4.14016 10.3902C4.21049 10.3198 4.25 10.2245 4.25 10.125V9.375H8.75V10.125C8.75 10.2245 8.78951 10.3198 8.85983 10.3902C8.93016 10.4605 9.02554 10.5 9.125 10.5C9.22446 10.5 9.31984 10.4605 9.39017 10.3902C9.46049 10.3198 9.5 10.2245 9.5 10.125V9.375C10.1962 9.375 10.8639 9.09844 11.3562 8.60616C11.8484 8.11387 12.125 7.44619 12.125 6.75V5.25C12.125 5.05109 12.046 4.86032 11.9053 4.71967C11.7647 4.57902 11.5739 4.5 11.375 4.5ZM9.5 4.875V6.375H7.25V4.875H9.5ZM11.375 6.75C11.375 6.99623 11.3265 7.24005 11.2323 7.46753C11.138 7.69502 10.9999 7.90172 10.8258 8.07583C10.6517 8.24994 10.445 8.38805 10.2175 8.48227C9.99005 8.5765 9.74623 8.625 9.5 8.625H3.5C3.00272 8.625 2.52581 8.42746 2.17417 8.07583C1.82254 7.72419 1.625 7.24728 1.625 6.75V5.25H6.5V6.75C6.5 6.84946 6.53951 6.94484 6.60983 7.01517C6.68016 7.08549 6.77554 7.125 6.875 7.125H9.875C9.97446 7.125 10.0698 7.08549 10.1402 7.01517C10.2105 6.94484 10.25 6.84946 10.25 6.75V5.25H11.375V6.75Z",fill:"#374151"})),React__namespace.createElement("defs",null,React__namespace.createElement("clipPath",{id:"clip0_254_1638"},React__namespace.createElement("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.5)"}))));case 14:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??12,height:o??12,viewBox:"0 0 12 12",fill:"none"},React__namespace.createElement("path",{d:"M3.375 2H8.625C8.97514 1.99998 9.3121 2.13355 9.56715 2.37345C9.82219 2.61335 9.97611 2.94151 9.9975 3.291L10 3.375V5.052C10.2725 5.12937 10.5146 5.28898 10.693 5.50903C10.8714 5.72908 10.9776 5.99885 10.997 6.2815L11 6.375V10.125C11 10.22 10.9639 10.3115 10.899 10.3809C10.8341 10.4503 10.7454 10.4925 10.6506 10.499C10.5558 10.5055 10.4621 10.4757 10.3884 10.4158C10.3146 10.3558 10.2665 10.2701 10.2535 10.176L10.25 10.125V9H1.75V10.125C1.75 10.2156 1.71718 10.3032 1.65762 10.3715C1.59805 10.4398 1.51578 10.4842 1.426 10.4965L1.375 10.5C1.28438 10.5 1.19683 10.4672 1.12853 10.4076C1.06024 10.3481 1.01582 10.2658 1.0035 10.176L1 10.125V6.375C1 5.7455 1.423 5.215 2 5.0515V3.375C1.99998 3.02486 2.13355 2.6879 2.37345 2.43285C2.61335 2.17781 2.94151 2.02389 3.291 2.0025L3.375 2ZM9.625 5.75H2.375C2.22027 5.74993 2.07102 5.80726 1.95612 5.91089C1.84122 6.01452 1.76884 6.15708 1.753 6.311L1.75 6.375V8.25H10.25V6.375C10.2499 6.22036 10.1926 6.07122 10.0889 5.95643C9.98533 5.84164 9.84283 5.76934 9.689 5.7535L9.625 5.75ZM8.625 2.75H3.375C3.22027 2.74993 3.07102 2.80726 2.95612 2.91089C2.84122 3.01452 2.76884 3.15708 2.753 3.311L2.75 3.375V5H3.5C3.5 4.86739 3.55268 4.74021 3.64645 4.64645C3.74021 4.55268 3.86739 4.5 4 4.5H5C5.12247 4.50002 5.24067 4.54498 5.33219 4.62636C5.4237 4.70774 5.48217 4.81987 5.4965 4.9415L5.5 5H6.5C6.5 4.86739 6.55268 4.74021 6.64645 4.64645C6.74021 4.55268 6.86739 4.5 7 4.5H8C8.12247 4.50002 8.24067 4.54498 8.33219 4.62636C8.4237 4.70774 8.48217 4.81987 8.4965 4.9415L8.5 5H9.25V3.375C9.25007 3.22027 9.19274 3.07102 9.08911 2.95612C8.98548 2.84122 8.84292 2.76884 8.689 2.753L8.625 2.75Z",fill:"#374151"}));case 1:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??24,height:o??24,viewBox:"0 0 24 24",fill:"none"},React__namespace.createElement("path",{d:"M12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M16 8V13C16 13.7957 16.3161 14.5587 16.8787 15.1213C17.4413 15.6839 18.2044 16 19 16C19.7957 16 20.5587 15.6839 21.1213 15.1213C21.6839 14.5587 22 13.7957 22 13V12C22 9.74731 21.2394 7.5606 19.8414 5.79417C18.4434 4.02774 16.49 2.78507 14.2975 2.26751C12.1051 1.74995 9.80215 1.98781 7.76178 2.94255C5.72141 3.8973 4.06318 5.51299 3.05574 7.52786C2.0483 9.54274 1.75069 11.8387 2.21111 14.0439C2.67154 16.249 3.86303 18.2341 5.59254 19.6775C7.32205 21.1209 9.48825 21.9381 11.7402 21.9966C13.9921 22.0552 16.1979 21.3516 18 20",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}));case 0:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??24,height:o??24,viewBox:"0 0 24 24",fill:"none"},React__namespace.createElement("path",{d:"M21.9999 16.92V19.92C22.0011 20.1985 21.944 20.4742 21.8324 20.7293C21.7209 20.9845 21.5572 21.2136 21.352 21.4019C21.1468 21.5901 20.9045 21.7335 20.6407 21.8227C20.3769 21.9119 20.0973 21.9451 19.8199 21.92C16.7428 21.5856 13.7869 20.5341 11.1899 18.85C8.77376 17.3147 6.72527 15.2662 5.18993 12.85C3.49991 10.2412 2.44818 7.27099 2.11993 4.18C2.09494 3.90346 2.12781 3.62476 2.21643 3.36162C2.30506 3.09849 2.4475 2.85669 2.6347 2.65162C2.82189 2.44655 3.04974 2.28271 3.30372 2.17052C3.55771 2.05833 3.83227 2.00026 4.10993 2H7.10993C7.59524 1.99522 8.06572 2.16708 8.43369 2.48353C8.80166 2.79998 9.04201 3.23944 9.10993 3.72C9.23656 4.68006 9.47138 5.62272 9.80993 6.53C9.94448 6.88792 9.9736 7.27691 9.89384 7.65088C9.81408 8.02484 9.6288 8.36811 9.35993 8.64L8.08993 9.91C9.51349 12.4135 11.5864 14.4864 14.0899 15.91L15.3599 14.64C15.6318 14.3711 15.9751 14.1858 16.3491 14.1061C16.723 14.0263 17.112 14.0555 17.4699 14.19C18.3772 14.5285 19.3199 14.7634 20.2799 14.89C20.7657 14.9585 21.2093 15.2032 21.5265 15.5775C21.8436 15.9518 22.0121 16.4296 21.9999 16.92Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}));case 6:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??24,height:o??24,viewBox:"0 0 24 24",fill:"none"},React__namespace.createElement("path",{d:"M9 18L15 12L9 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}));case 7:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??24,height:o??24,viewBox:"0 0 24 24",fill:"none",transform:"scale(-1)"},React__namespace.createElement("path",{d:"M9 18L15 12L9 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}));case 2:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??24,height:o??24,viewBox:"0 0 24 24",fill:"none"},React__namespace.createElement("path",{d:"M3 12C3 13.78 3.52784 15.5201 4.51677 17.0001C5.50571 18.4802 6.91131 19.6337 8.55585 20.3149C10.2004 20.9961 12.01 21.1743 13.7558 20.8271C15.5016 20.4798 17.1053 19.6226 18.364 18.364C19.6226 17.1053 20.4798 15.5016 20.8271 13.7558C21.1743 12.01 20.9961 10.2004 20.3149 8.55585C19.6337 6.91131 18.4802 5.50571 17.0001 4.51677C15.5201 3.52784 13.78 3 12 3C9.48395 3.00947 7.06897 3.99122 5.26 5.74L3 8",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M3 3V8H8",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M12 7V12L16 14",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}));case 3:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??24,height:o??24,viewBox:"0 0 24 24",fill:"none"},React__namespace.createElement("path",{d:"M19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M9 8H16",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M8 12H14",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M11 16H16",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}));case 4:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??24,height:o??24,viewBox:"0 0 24 24",fill:"none"},React__namespace.createElement("path",{d:"M3 9L12 2L21 9V20C21 20.5304 20.7893 21.0391 20.4142 21.4142C20.0391 21.7893 19.5304 22 19 22H5C4.46957 22 3.96086 21.7893 3.58579 21.4142C3.21071 21.0391 3 20.5304 3 20V9Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M9 22V12H15V22",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}));default:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??24,height:o??24,viewBox:"0 0 24 24",fill:"none"},React__namespace.createElement("path",{d:"M3 22H21",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M6 18V11",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M10 18V11",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M14 18V11",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M18 18V11",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M12 2L20 7H4L12 2Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))}}function ol(e=22,t="black",o="white",a=.3){let i=`<svg
76964
- xmlns="http://www.w3.org/2000/svg"
76965
- width="${e}"
76966
- height="${e}"
76967
- viewBox="0 0 ${e} ${e}">
76968
- <circle
76969
- cx="${e/2}"
76970
- cy="${e/2}"
76971
- r="${e/2-a}"
76972
- fill="${t}"
76973
- stroke="${o}"
76974
- stroke-width="${a}"/>
76975
- </svg>`;return `data:image/svg+xml;charset=UTF-8;base64,${btoa(i)}`}function al(e="steelblue",t="white",o=.3){let a=`<svg
76976
- xmlns="http://www.w3.org/2000/svg"
76977
- width="26"
76978
- height="26"
76979
- viewBox="0 0 26 26"
76980
- fill="${e}"
76981
- stroke="${t}"
76982
- stroke-width="${o}"
76983
- stroke-line-cap="round"
76984
- stroke-line-join="round"
76985
- >
76986
- <path d="M12 2c-4.418 0-8 3.582-8 8 0 5.385 7.535 13.307 7.846 13.69a.75.75 0 0 0 1.308 0c.311-.383 7.846-8.305 7.846-13.69 0-4.418-3.582-8-8-8zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6z" />
76987
- </svg>`;return `data:image/svg+xml;charset=UTF-8;base64,${btoa(a)}`}function Jp({apiKey:e,mapOptions:t,geoJsonLayerInput:o,markers:a,markersIcon:i,markerEvents:n}){let s=React__namespace.useRef(null),[l,c]=React__namespace.useState(null),[d,p]=React__namespace.useState(null),[u,f]=React__namespace.useState(null),[v,N]=React__namespace.useState(!1);React__namespace.useEffect(()=>(s.current&&new Loader({apiKey:e??sa}).importLibrary("maps").then(()=>{t.center||(t.center={lat:39.8283,lng:-98.5795}),s.current&&b(s.current,t);}),()=>{d&&clearInterval(d);}),[]);let E=()=>{let y=.7,O=70,j=l?.getStreetView();if(!j)return;let J=setInterval(()=>{let Ee=j.getPov();j.setPov({heading:Ee.heading+y,pitch:Ee.pitch});},O);p(J);},b=(y,O)=>{c(new google.maps.Map(y,{zoomControlOptions:{position:23},...O})),o&&z(o),x(a),N(!0);},g=(y,O)=>{l&&(l.setCenter(y),l.setZoom(O));},x=(y,O,j)=>{if(!l||!y)return;let J=new google.maps.LatLngBounds;y.forEach((C,Pe)=>{if(C.lat&&C.lng){J.extend(new google.maps.LatLng(C.lat,C.lng));let ve=new google.maps.Marker({position:{lat:C.lat,lng:C.lng},map:l,icon:C.icon??i,label:C.label});n&&n(Pe,ve);}}),l.setCenter(J.getCenter()),l.setZoom(O??3),j&&new google.maps.Marker({position:J.getCenter(),map:l,icon:j});},h=React__namespace.useCallback(async({coordinates:y})=>{if(!l||!y)return !1;let O=new google.maps.StreetViewService;return new Promise(j=>{O.getPanorama({location:y},(J,Ee)=>{j(Ee===google.maps.StreetViewStatus.OK);});})},[l]),_=(y,O)=>new google.maps.StreetViewPanorama(s.current,{position:y,disableDefaultUI:!0,pov:{heading:O?.heading??34,pitch:O?.pitch??10}}),T=y=>{l&&(l.setStreetView(y),E(),f(y));},Y=y=>{l&&(l.setStreetView(null),l.setMapTypeId(google.maps.MapTypeId.SATELLITE),l.setCenter(y),l.setZoom(18),f(null));},V=async(y,O)=>{if(!l)return;if(await h({coordinates:y})){if(u){u.setPosition(y);return}let J=_(y,O);T(J);}else Y(y);},z=({center:y,geoJson:O})=>{if(!l||!O)return;y&&(l.setCenter(y),new google.maps.Marker({position:y,map:l}));let j=new google.maps.Data;j.addGeoJson(O),j.setStyle(J=>({fillColor:J.getProperty("color")??"#FFFFCC",strokeWeight:1,fillOpacity:.5,strokeColor:"white"})),j.setMap(l);};return {mapRef:s,setGeojson:z,setMarkers:x,setPanorama:V,zoomHandler:g,isMapReady:v}}var po=Jp;var ue=class{};ue.ENDPOINT_URL="https://api.liberty.percyai.io/property/v1/nearby_sales",ue.DEFAULT_RADIUS="5000",ue.DEFAULT_FROM=format$1(subYears(new Date,1),"yyyy-MM-dd"),ue.DEFAULT_ZOOM_LEVEL=14,ue.DEFAULT_MAP_HEIGHT="420px",ue.DEFAULT_LIMIT="10",ue.HEADER_TITLE="Recent Nearby Sales",ue.DIALOG_TITLE="How recent nearby sales work",ue.DIALOG_DESCRIPTION="These are relevant houses near your property that have sold in the last 18 months and within a 1.5mi radius. The sales can be used as a factor in determining the value of your property in current market conditions.",ue.BEDS_LABEL="Beds",ue.BATHS_LABEL="Baths",ue.SQFT_LABEL="Sqft";function nl({address:e,soldPrice:t,soldDate:o,bedrooms:a,bathrooms:i,sqft:n,index:s}){let l=o&&isValid$1(new Date(o))?format$1(new Date(o),"MM/dd/yyyy"):"",c=d=>React__namespace.createElement("div",{className:"flex flex-row items-center justify-center"},pe(d.type,d.width,d.height),React__namespace.createElement("p",{className:r("ml-1 text-sm text-primary/90")},d.description));return React__namespace.createElement("li",{key:s,className:r("flex flex-row items-start w-80")},React__namespace.createElement("div",{className:r("w-5 h-5 rounded-full bg-primary text-primary-foreground items-center justify-center flex flex-shrink-0 mouse-pointer")},React__namespace.createElement("span",{className:r("text-xs font-bold")},s+1)),React__namespace.createElement("div",{className:r("flex flex-col ml-2")},!!e&&React__namespace.createElement("h2",{className:r("text-sm text-primary/90 line-clamp-2")},e.toUpperCase()),React__namespace.createElement("div",{className:r("flex flex-row items-end justify-between w-64")},!!a&&React__namespace.createElement(c,{width:16,height:16,type:14,description:`${a} ${ue.BEDS_LABEL}`}),!!i&&React__namespace.createElement(c,{width:18,height:18,type:15,description:`${i} ${ue.BATHS_LABEL}`}),!!n&&React__namespace.createElement(c,{width:16,height:16,type:16,description:`${pt(n)} ${ue.SQFT_LABEL}`})),!!t&&!!o&&React__namespace.createElement("p",{className:r("text-xs font-normal text-primary/70 truncate")},`Sold for ${k(t)} on ${l}`)))}function In({className:e}){let t=`flex flex-row items-start h-20 w-80 ${e}`;return React__namespace.createElement("ul",{className:r("flex flex-wrap justify-center mt-10 gap-y-10 gap-x-20")},React__namespace.createElement(S,{className:r(t)}),React__namespace.createElement(S,{className:r(t)}),React__namespace.createElement(S,{className:r(t)}),React__namespace.createElement(S,{className:r(t)}),React__namespace.createElement(S,{className:r(t)}),React__namespace.createElement(S,{className:r(t)}),React__namespace.createElement(S,{className:r(t)}),React__namespace.createElement(S,{className:r(t)}))}function sl({nearbySales:e,isLoading:t,noDataAvailable:o}){return t?React__namespace.createElement(In,null):o?React__namespace.createElement(In,{className:"animate-none"}):React__namespace.createElement("ul",{className:r("flex flex-wrap justify-center mt-10 gap-y-10 gap-x-20")},e?.map((a,i)=>React__namespace.createElement(nl,{key:i,address:a.address,soldPrice:a.details.lastSoldPrice,soldDate:a.details.lastSoldDate,bedrooms:a.details.beds,bathrooms:a.details.baths,sqft:a.details.livingArea,index:i})))}React__namespace.memo(({headerTitle:e=ue.HEADER_TITLE,infoTitle:t=ue.DIALOG_TITLE,infoDescription:o=ue.DIALOG_DESCRIPTION,icon:a=React__namespace.createElement(MapPin,null),mapHeight:i=ue.DEFAULT_MAP_HEIGHT,zoomLevel:n=ue.DEFAULT_ZOOM_LEVEL,zoomControl:s=!0,isLoading:l=!1,nearbySales:c,googleApiKey:d})=>{let p=React__namespace.useMemo(()=>({zoom:n,draggable:!1,scrollwheel:!1,fullscreenControl:!1,disableDefaultUI:!0,gestureHandling:"none",zoomControl:s,styles:mo,zoomControlOptions:{position:3}}),[n,s]),{mapRef:u,setMarkers:f,isMapReady:v}=po({apiKey:d,mapOptions:p,markersIcon:ol()}),N=React__namespace.useMemo(()=>{let E=c?.map((x,h)=>({lat:x.coordinates.latitude,lng:x.coordinates.longitude,label:{text:(h+1).toString(),fontSize:"12",color:"white"}})),b={url:al("black"),scaledSize:{width:35,height:35}};f(E,n,b);let g=!l&&Array.isArray(c)&&c.length<=0;return React__namespace.createElement($e,null,React__namespace.createElement("div",{className:r("w-full justify-center m-3 lg:m-8 md:m-8")},React__namespace.createElement("div",{className:r("relative rounded-lg overflow-hidden w-full",{"animate-pulse rounded-lg bg-primary/10":l}),style:{maxHeight:i,height:i}},React__namespace.createElement("div",{ref:u,className:r("min-h-full w-full")}),g&&React__namespace.createElement(la,null)),React__namespace.createElement(sl,{nearbySales:c,isLoading:l,noDataAvailable:g})))},[c,l,v]);return React__namespace.createElement("div",{className:r("flex flex-col w-full bg-white")},React__namespace.createElement(Ke,{title:e,infoDescription:o,infoTitle:t,icon:a}),N)});format$1(subYears(new Date,1),"yyyy-MM-dd");React__namespace.memo(({isLoading:e=!0})=>e?React__namespace.createElement("div",null,"Loading..."):null);function At(e){let t=Math.floor(e);return parseInt(t.toString(),10)}function Tl({additionalPayment:e,rate:t,originalBalance:o,term:a,loanBalance:i,editedLoanBalance:n,startDate:s}){let l=Math.floor(hu(e,t,o,a,i,n,s));return Number.isNaN(l)?0:l}function Fr(e,t,o){let a=e/12/100;return t*a/(1-Math.pow(1+a,-o))}function Mn(e,t,o){let a=t/12/100,i=e,n=a,l=Math.log(i/(i-n*o))/Math.log(1+n);return Math.max(l,0)}function hu(e,t,o,a,i,n,s){let l=Math.floor(a)*12,c=Fr(t,o,l)+e,d=Mn(c,t,n),p=c*d;return Ll(t,o,a,i,n,s)-p}function Ll(e,t,o,a,i,n){let s=o*12;return Fr(e,t,s)*Al(i,a,e,o,n,t)}function Al(e,t,o,a,i,n){let s=Math.floor(a)*12;return Math.abs(e-t)>=.9?Mn(Fr(o,n,s),o,e):Math.max(s-yu(i),0)}function yu(e){let t=new Date(e),a=Math.abs(new Date().getTime()-t.getTime()),i=Math.floor(a/(1e3*3600*24*30.44));return Math.max(0,i)}function _l({additionalPayment:e,rate:t,term:o,originalBalance:a,editedLoanBalance:i,loanBalance:n,startDate:s}){let l=vu(e,t,o,a,i,n,s);l=Number.isNaN(l)?0:l;let c=l|0,d=Math.ceil(l%1*12);if(d==12&&(c++,d=0),c||d){let p="";return c&&(p+=c+m.YEAR),c>1&&(p+=m.PLURAL),c&&d&&(p+=m.AND),d&&(p+=d+m.MONTH),d>1&&(p+=m.PLURAL),m.PAY_LITTLE_EXTRA_EARLIER_MESSAGE(p)}else return m.PAY_LITTLE_EXTRA_LENGTH_LOAN_REMAIN_MESSAGE}function vu(e,t,o,a,i,n,s){let l=Math.floor(o)*12,c=Fr(t,a,l)+e,d=Mn(c,t,i);return Math.max((Al(i,n,t,o,s,a)-Math.ceil(d))/12,0)}function Rl({originalBalance:e,term:t,loanBalance:o,startDate:a,editedLoanBalance:i,refinanceNumYears:n,rate:s,currentRate:l}){let c=s/100,d=n*12,p=c/12,f=bu(i,d,p)*d;return Ll(l,e,t,o,i,a)-f}function bu(e,t,o){return e*o*Math.pow(1+o,t)/(Math.pow(1+o,t)-1)}function On(e,t){return e-t}function Pl({originalBalance:e,term:t,loanBalance:o,startDate:a,editedLoanBalance:i,refinanceFifteenYearRate:n,refinanceThirtyYearRate:s,currentRate:l,firstYearFixed:c,secondYearFixed:d}){let p=Rl({originalBalance:e,term:t,loanBalance:o,startDate:a,editedLoanBalance:i,refinanceNumYears:c,currentRate:l,rate:n}),u=Rl({originalBalance:e,term:t,loanBalance:o,startDate:a,editedLoanBalance:i,refinanceNumYears:d,currentRate:l,rate:s});return {fifteenYearFixedTotalSavings:p,thirtyYearFixedTotalSavings:u}}function Il(e,t,o){let a=o/12;return e*a*Math.pow(1+a,t)/(Math.pow(1+a,t)-1)}function Sl(e,t){let o=e*.35,a=o*10/3,i=Il(o*7/3,30*12,t/100);return {thirtyFivePercentNetworth:o,invesmentPropertyValue:a,invesmentMonthlyPayment:i}}function Cl(e){return e*.06}function wl(e){return e*.1}function Dl(e){return e*.13}function Ml(e){let t=e*.05,o=e*.1;return {feesFirstValue:t,feesSecondValue:o}}function Ol(e,t){let o=e*5/2,a=.5*e,i=Il(2*e,30*12,t/100);return {newHomeValue:o,downPayment:a,monthlyPayment:i}}function kl(e,t){return Math.max(0,Math.floor(Math.floor(e)*.92-Math.floor(t)))}function da({onSubmitForm:e,closeDialog:t,originalBalance:o,rate:a,loanBalance:i,loanTerm:n,startDate:s}){let l=objectType({startDate:dateType().optional(),loanAmount:stringType().refine(u=>aa(u)>0,{message:m.VALUE_GREATER_THAN_ZERO}),originalBalance:stringType().refine(u=>aa(u)>0,{message:m.VALUE_GREATER_THAN_ZERO}),loanTerm:stringType().refine(u=>parseFloat(u)>0,{message:m.VALUE_GREATER_THAN_ZERO}),rate:stringType().refine(u=>parseFloat(u)>0,{message:m.VALUE_GREATER_THAN_ZERO})}),c=useForm({resolver:t$p(l),defaultValues:{startDate:Tn(s),loanAmount:k(i),rate:`${a}`,originalBalance:k(o),loanTerm:`${n}`}});function d(u){e&&e(u),t&&t(!1);}function p(u,f){let v=u.target.value.replace(/[^0-9]/g,""),N=parseFloat(v),E=isNaN(N)?0:N,g=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}).format(E);u.target.value=g,f({...u,target:{...u.target,value:g}});}return React__namespace.createElement(ti,{...c},React__namespace.createElement("form",{onSubmit:c.handleSubmit(d),className:r("flex flex-col items-start w-full gap-8 md:w-[450px] lg:w-[450px]")},React__namespace.createElement("div",{className:r("flex flex-col items-start gap-8 ")},React__namespace.createElement("h2",{className:r("text-lg font-semibold leading-7 text-slate-900")},m.EDIT_MORTGAGE_DETAILS_FORM_TITLE)),React__namespace.createElement("div",{className:r("flex flex-col md:flex-row lg:flex-row gap-4 w-full")},React__namespace.createElement("div",{className:r("flex flex-col flex-1 gap-4")},React__namespace.createElement(lt,{control:c.control,name:"startDate",render:({field:u})=>React__namespace.createElement(rt,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(mt,{htmlFor:"startDate",className:r("text-sm font-medium leading-[14px]")},m.EDIT_MORTGAGE_DETAILS_LOAN_START_DATE_LABEL),React__namespace.createElement(Ze,null,React__namespace.createElement(Xr,null,React__namespace.createElement(eo,{asChild:!0},React__namespace.createElement(Ze,null,React__namespace.createElement(F,{variant:"outline",className:r("w-[240px] pl-3 text-left font-normal",!u.value&&"text-muted-foreground")},u.value?format$1(u.value,"PPP"):React__namespace.createElement("span",null,"Pick a date"),React__namespace.createElement(Calendar,{className:"ml-auto h-4 w-4 opacity-50"})))),React__namespace.createElement(Ur,{className:"w-auto p-0",align:"start"},React__namespace.createElement(jo,{mode:"single",onSelect:u.onChange,initialFocus:!0})))),React__namespace.createElement(Rt,null))}),React__namespace.createElement(lt,{control:c.control,name:"originalBalance",render:({field:u})=>React__namespace.createElement(rt,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(mt,{htmlFor:"originalBalance",className:r("text-sm font-medium leading-[14px]")},m.EDIT_MORTGAGE_DETAILS_ORIGINAL_LOAN_AMOUNT_LABEL),React__namespace.createElement(Ze,null,React__namespace.createElement(Je,{id:"originalBalance",className:r("shadow-none py-2 px-3 text-sm"),...u,onChange:f=>p(f,u.onChange)})),React__namespace.createElement(Rt,null))}),React__namespace.createElement(lt,{control:c.control,name:"loanAmount",render:({field:u})=>React__namespace.createElement(rt,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(mt,{htmlFor:"loanAmount",className:r("text-sm font-medium leading-[14px]")},m.EDIT_MORTGAGE_DETAILS_BALANCE_LABEL),React__namespace.createElement(Ze,null,React__namespace.createElement(Je,{id:"loanAmount",className:r("shadow-none py-2 px-3 text-sm"),...u,onChange:f=>p(f,u.onChange)})),React__namespace.createElement(Rt,null))})),React__namespace.createElement("div",{className:r("flex flex-col gap-4 flex-1")},React__namespace.createElement(lt,{control:c.control,name:"loanTerm",render:({field:u})=>React__namespace.createElement(rt,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(mt,{htmlFor:"loanTerm",className:r("text-sm font-medium leading-[14px]")},m.EDIT_MORTGAGE_DETAILS_LOAN_TERM_LABEL),React__namespace.createElement(Ze,null,React__namespace.createElement("div",{className:r("flex flex-row w-full items-center gap-1")},React__namespace.createElement(Je,{id:"loanTerm",type:"number",className:r("shadow-none py-2 px-3 text-sm"),...u}),React__namespace.createElement(Te,{className:r("py-2 bg-slate-200"),variant:"outline"},m.DESCRIPTION_YEARS_LABEL))),React__namespace.createElement(Rt,null))}),React__namespace.createElement(lt,{control:c.control,name:"rate",render:({field:u})=>React__namespace.createElement(rt,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(mt,{htmlFor:"rate",className:"text-sm font-medium leading-[14px]"},m.EDIT_MORTGAGE_DETAILS_INTEREST_RATE_LABEL),React__namespace.createElement(Ze,null,React__namespace.createElement("div",{className:r("flex flex-row w-full items-center")},React__namespace.createElement(Je,{id:"rate",type:"number",className:r("shadow-none py-2 px-3 text-sm"),...u}),React__namespace.createElement(Percent,{className:"h-4"}))),React__namespace.createElement(Rt,null))})),React__namespace.createElement("div",{className:r("flex flex-col items-end lg:items-center md:flex-row lg:flex-row gap-4 md:gap-8 lg:gap-8")})),React__namespace.createElement("div",{className:r("flex flex-row justify-end w-full")},React__namespace.createElement(F,{type:"submit"},m.ACTION_OK_BUTTON_LABEL))))}function Vl(e){let t={};for(let[a,i]of e.entries())t[a]=i;let o=Number(t.property_approximate_value);return isNaN(o)||(t.property_approximate_value=o),t}var Ni=({clientKey:e,apiKey:t,loadingState:o="idle"})=>{let{request:a,isLoading:i}=ne({clientKey:e,apiKey:t,loadingInitialState:o});return {submitFormHandler:s=>{let l=new FormData;l.append("first_name",s.firstname),l.append("last_name",s.lastname),l.append("email",s.email),l.append("phone_number",s.tel),l.append("iam",s.interest),s.message&&l.append("message",s.message),s.approximateValue&&l.append("property_approximate_value",s.approximateValue),s.timeFrame&&l.append("time_frame_for_selling",s.timeFrame),l.append("client_key",s.client_key),s.address&&l.append("home_address",s.address);let c=Vl(l);a({url:s.endpointURL,requestInit:{body:JSON.stringify(c),method:"POST"}});},isLoading:i}};var ar=React__namespace.forwardRef(({linkTextColor:e="text-gray-500",icon:t,text:o},a)=>React__namespace.createElement("div",{ref:a,className:r("flex flex-row items-center gap-2")},t&&React__namespace.cloneElement(t,{className:r("h-4 w-4",e,t.props.className)}),React__namespace.createElement("p",{className:r("text-sm hover:cursor-pointer",e)},o)));function go({buttonDescription:e,endpointUrl:t,clientKey:o,apiKey:a}){let[i,n]=React__namespace.useState(!1),[s,l]=React__namespace.useState(!1),{submitFormHandler:c,isLoading:d}=Ni({clientKey:o,apiKey:a}),p="text-gray-500",u=async f=>{l(!1);let v={endpointURL:t,firstname:f.firstName,lastname:f.lastName,tel:f.phoneNumber,email:f.emailAdress,interest:f.iam,address:f.dynamicValues?.at(0)?.homeAddress,approximateValue:f.dynamicValues?.at(1)?.value,timeFrame:f.dynamicValues?.at(2)?.value,message:f.dynamicValues?.at(0)?.value,client_key:o};c(v),n(!1);};return React__namespace.createElement("div",{className:"flex flex-col items-center gap-2"},React__namespace.createElement(Yt,{triggerAsChild:!0,open:i,onOpenChange:()=>{n(!i),l(!1);},trigger:React__namespace.createElement(F,{className:r("text-[14px] font-normal my-5 px-4 py-2")},e),content:React__namespace.createElement(io,{onSubmitForm:u,showCheckbox:!1,isLoading:d,error:s})}),React__namespace.createElement(hr,{title:m.EQUITY_MORTGAGE_DETAILS_DISCLAIMER,trigger:React__namespace.createElement(ar,{text:m.EQUITY_MORTGAGE_DETAILS_DISCLAIMER,linkTextColor:p,icon:React__namespace.createElement(BadgeInfo,null)}),content:React__namespace.createElement("p",{className:r("text-justify mb-8")},m.EDIT_MORTGAGE_DETAILS_DISCLAIMER_TEXT)}))}function Ti({title:e,description:t,editDetailsAction:o,closeBannerAction:a,originalBalance:i,rate:n,loanBalance:s,loanTerm:l,startDate:c,showActions:d=!0}){let[p,u]=React$1.useState(!1),f="text-gray-700";return React$1.createElement(Or,{className:r("flex flex-col gap-3 bg-gray-50")},React$1.createElement(Info,{className:r("h-5 w-5",f)}),React$1.createElement("div",{className:r("flex flex-col flex-1 items-start gap-2")},React$1.createElement(kr,{className:r("text-lg font-bold leading-6",f)},e),React$1.createElement(fr,{className:r("text-base",f)},t)),d&&i&&n&&s&&l&&c&&React$1.createElement("div",{className:r("flex flex-row flex-1 gap-3 justify-center md:justify-end lg:justify-end")},React$1.createElement(Yt,{open:p,onOpenChange:v=>{u(v);},trigger:React$1.createElement(F,{variant:"outline",className:r("w-[110px] text-sm font-normal")},m.EDIT_DETAILS_LABEL),content:React$1.createElement(da,{closeDialog:u,onSubmitForm:o,originalBalance:i,rate:n,loanBalance:s,loanTerm:l,startDate:c})}),React$1.createElement(F,{className:r("w-[110px] text-sm font-normal"),onClick:a},m.EQUITY_MORTGAGE_DETAILS_ALL_GOOD_BUTTON)))}function xo({children:e}){return React__namespace.createElement("div",{className:r("shadow-sm py-3 md:py-7 lg:py-7")},e)}function Eo(e){return React__namespace.createElement("div",{className:r("flex items-center w-full my-10 px-3 md:px-10 lg:px-10")},React__namespace.createElement("div",{className:r("flex flex-col gap-2 items-center w-full")},React__namespace.createElement("div",{className:r("flex flex-row gap-2 w-full")},React__namespace.createElement(S,{className:r("h-20 w-full")}),React__namespace.createElement(S,{className:r("h-20 w-full")})),React__namespace.createElement(S,{className:r("flex flex-col items-center justify-center h-48 w-full")})))}function Li({value:e,textColor:t="text-gray-700"}){return React__namespace.createElement("p",{className:r("text-3xl md:text-6xl lg:text-6xl font-bold",t)},k(e))}function Nr({text:e,textColor:t="text-gray-700",className:o}){return React__namespace.createElement("h1",{className:r("text-lg md:text-2xl text-center lg:text-2xl font-medium",t,o)},e)}function Tr({errorCode:e}){let t="text-gray-600";return React__namespace.createElement("div",{className:r("flex items-center w-full my-10 px-3 md:px-10 lg:px-10")},React__namespace.createElement("div",{className:r("flex flex-col gap-2 items-center w-full")},React__namespace.createElement("div",{className:r("flex flex-row gap-2 w-full")},React__namespace.createElement(S,{className:r("h-20 w-full")}),React__namespace.createElement(S,{className:r("h-20 w-full")})),React__namespace.createElement(S,{className:r("flex flex-col items-center justify-center h-48 w-full")},React__namespace.createElement(Or,{className:r("bg-gray-200 m-3 lg:m-0 md:m-0 w-auto md:w-[40%] lg:w-[30%] border-gray-600")},React__namespace.createElement(AlertTriangle,{className:r("h-5 w-5")}),React__namespace.createElement(kr,{className:r(t)},m.CONFIGURATION_ERROR_LABEL),React__namespace.createElement(fr,{className:r(t)},`${m.CONFIGURATION_ERROR_LABEL}: ${m.CONFIGURATION_ERROR_KEY_EXPIRED_LABEL}`)))))}function _i({title:e,value:t}){return React__namespace.createElement("div",{className:r("flex flex-col items-center gap-2")},React__namespace.createElement("p",{className:r("text-center text-sm font-semibold leading-5")},e),React__namespace.createElement("p",{className:r("text-sm font-normal")},k(t)))}function Yl({homeValue:e,originalBalance:t,rate:o,loanBalance:a,loanTerm:i,startDate:n,netWorth:s}){return React__namespace.createElement("div",{className:r("flex flex-col gap-10 lg:gap-14 md:gap-14 w-auto")},React__namespace.createElement("h2",{className:r("text-lg font-semibold leading-7 text-slate-900")},m.HOW_CALCULATE_TITLE),React__namespace.createElement("div",{className:r("flex flex-col items-center gap-5")},React__namespace.createElement("p",{className:r("text-sm font-normal leading-5")},m.HOW_CALCULATE_DESCRIPTION),React__namespace.createElement("div",{className:r("flex flex-row gap-2 lg:gap-6 md:gap-6")},React__namespace.createElement(_i,{title:m.HOW_CALCULATE_HOME_VALUE_LABEL,value:e}),React__namespace.createElement("p",{className:"self-center text-xs lg:text-sm md:text-sm"},"-"),React__namespace.createElement(_i,{title:m.HOW_CALCULATE_LOAN_BALANCE_LABEL,value:a}),React__namespace.createElement("p",{className:"self-center text-xs lg:text-sm md:text-sm"},"="),React__namespace.createElement(_i,{title:m.HOW_CALCULATE_YOUR_NET_WORTH_LABEL,value:s}))),React__namespace.createElement("div",{className:r("flex flex-col items-center gap-5 mb-14")},React__namespace.createElement("p",{className:r("text-sm font-medium leading-5")},m.HOW_CALCULATE_INFORMATION_SUBTITLE),React__namespace.createElement("p",{className:r("text-sm font-normal leading-5 text-[#64748B]")},m.HOW_CALCULATE_INFORMATION_DESCRIPTION(qe(o),k(t),i,ia(n))),React__namespace.createElement("p",{className:r("text-sm font-normal leading-5 text-[#64748B]")},m.HOW_CALCULATE_NOTE_DESCRIPTION)))}function Pi({contactEndpointUrl:e,editDetailsAction:t,homeValue:o,originalBalance:a,rate:i,loanBalance:n,loanTerm:s,startDate:l,netWorth:c,clientKey:d,apiKey:p,headerTitle:u=m.EQUITY_MORTGAGE_DETAILS_HEADER_TITLE,buttonDescription:f=m.ACTION_BUTTON_BEST_OPTION_LABEL,icon:v=React__namespace.createElement(DollarSign,null),errorCode:N=!1,isLoading:E=!1}){let b=!a&&!i&&!n&&!s&&!l&&!E,[g,x]=React__namespace.useState(!0),[h,_]=React__namespace.useState(!1),T=React__namespace.useRef(null),Y=React__namespace.useRef(null),V=React__namespace.useMemo(()=>React__namespace.createElement(Yl,{homeValue:o,originalBalance:a,rate:i,loanBalance:n,loanTerm:s,startDate:l,netWorth:c}),[o,a,i,n,s,l,c]);return React__namespace.createElement("div",{className:r("flex flex-col bg-white")},React__namespace.createElement(Ke,{title:u,titleDescription:m.EQUITY_MORTGAGE_DETAILS_DESCRIPTION,infoDescription:V,icon:v}),E?React__namespace.createElement(Eo,null):N?React__namespace.createElement(Tr,null):b?React__namespace.createElement(Gt,null):React__namespace.createElement(xo,null,React__namespace.createElement($e,null,React__namespace.createElement("div",{className:r("flex flex-col items-center gap-10")},g&&React__namespace.createElement(Ti,{title:m.EQUITY_MORTGAGE_DETAILS_BANNER_TITLE,description:m.EQUITY_MORTGAGE_DETAILS_BANNER_DESCRIPTION(s,qe(i),k(a),ia(l),k(n)),closeBannerAction:()=>x(!1),editDetailsAction:t,originalBalance:a,rate:i,loanBalance:n,loanTerm:s,startDate:l}),React__namespace.createElement("div",{className:r("inline-flex flex-col items-center gap-3")},React__namespace.createElement(Nr,{text:m.EQUITY_MORTGAGE_DETAILS_TITLE}),React__namespace.createElement(Li,{value:c}),React__namespace.createElement("div",{className:r("flex flex-col md:flex-row lg:flex-row gap-3 items-center justify-around w-full")},React__namespace.createElement(Yt,{open:h,onOpenChange:z=>{_(z);},triggerAsChild:!1,trigger:React__namespace.createElement(ar,{ref:T,text:m.EDIT_DETAILS_LABEL,icon:React__namespace.createElement(Edit,null)}),content:React__namespace.createElement(da,{closeDialog:_,onSubmitForm:t,originalBalance:a,rate:i,loanBalance:n,loanTerm:s,startDate:l})}),React__namespace.createElement(hr,{trigger:React__namespace.createElement(ar,{ref:Y,text:m.EQUITY_MORTGAGE_DETAILS_HOW_CALCULATED,icon:React__namespace.createElement(Calculator,null)}),content:V}))))),React__namespace.createElement(Er,null,React__namespace.createElement(go,{endpointUrl:e,buttonDescription:f,clientKey:d,apiKey:p}))))}function pa({editDetailsAction:e,originalBalance:t,rate:o,loanBalance:a,loanTerm:i,startDate:n}){let[s,l]=React__namespace.useState(!1);return React__namespace.createElement("div",{className:r("flex flex-col pl-4 items-start md:items-end lg:items-end gap-2")},React__namespace.createElement("p",{className:r("text-[15px] text-gray-500")},m.PAY_LITTLE_EXTRA_DESCRIPTION(i,qe(o),k(t),ia(n))),React__namespace.createElement(Yt,{open:s,onOpenChange:c=>{l(c);},triggerAsChild:!1,trigger:React__namespace.createElement(ar,{text:m.EDIT_DETAILS_LABEL,icon:React__namespace.createElement(Edit,null)}),content:React__namespace.createElement(da,{closeDialog:l,onSubmitForm:e,originalBalance:t,rate:o,loanBalance:a,loanTerm:i,startDate:n})}))}function Ya({text:e,children:t,moreText:o,textColor:a="text-gray-700"}){return React__namespace.createElement("p",{className:r("text-base md:text-lg lg:text-lg text-center",a)},e,t,o)}function zl(e){return React__namespace.createElement("div",{className:r("flex flex-col gap-10 lg:gap-14 md:gap-14 w-auto pb-5")},React__namespace.createElement("h2",{className:r("text-lg font-semibold leading-7 text-slate-900")},m.WHY_PAY_MORE_LABEL),React__namespace.createElement("div",{className:r("flex flex-col items-center gap-5")},React__namespace.createElement("p",{className:r("text-sm text-center font-medium leading-5")},m.PAY_LITTLE_EXTRA_PAYING_EXTRA),React__namespace.createElement("p",{className:r("text-sm text-center font-normal leading-5")},m.PAY_LITTLE_EXTRA_PAYING_EXTRA_DESCRIPTION),React__namespace.createElement("p",{className:r("text-sm font-normal leading-5")},m.PAY_LITTLE_EXTRA_PAYING_EXTRA_BEST_PART),React__namespace.createElement("p",{className:r("text-sm text-center font-normal leading-5 text-[#64748B]")},React__namespace.createElement("span",{className:"text-black font-bold"},m.PAY_LITTLE_EXTRA_PAYING_EXTRA_IMPORTANT_TIP),m.PAY_LITTLE_EXTRA_PAYING_EXTRA_IMPORTANT_TIP_DESCRIPTION)))}function Wl({rate:e,originalBalance:t,term:o,loanBalance:a,editedLoanBalance:i,startDate:n,minValue:s=100,maxValue:l=2e3}){let[d,p]=React__namespace.useState(s),u=Tl({additionalPayment:d,rate:e,originalBalance:t,term:o,loanBalance:a,editedLoanBalance:i,startDate:n});return React__namespace.createElement("div",{className:r("flex flex-col items-center gap-3 ")},React__namespace.createElement("div",{className:r("flex flex-col items-center w-full md:w-[550px] lg:w-[550px] gap-4 md:gap-7 lg:gap-7")},React__namespace.createElement(Nr,{text:m.PAY_LITTLE_EXTRA_SUBTITLE}),React__namespace.createElement(fn,{onValueChange:f=>{p(f[0]);},defaultValue:[s],min:s,max:l,step:100}),React__namespace.createElement("div",{className:"flex flex-row w-full justify-between"},React__namespace.createElement(Ya,{text:k(s)}),React__namespace.createElement(Ya,{text:k(l)})),React__namespace.createElement("div",{className:r("flex flex-col items-center gap-4")},React__namespace.createElement(Ya,{text:m.PAY_LITTLE_EXTRA_CALCULATION_IF_YOU_PAY,children:React__namespace.createElement("span",{className:r("font-extrabold text-base md:text-lg lg:text-lg text-center text-gray-700")},k(d)),moreText:m.PAY_LITTLE_EXTRA_CALCULATION_MORE}),React__namespace.createElement(Li,{value:u}),React__namespace.createElement(Ya,{text:m.PAY_LITTLE_EXTRA_CALCULATION_DESCRIPTION}),React__namespace.createElement("div",{className:r("flex flex-col items-center gap-4")},React__namespace.createElement(Ti,{showActions:!1,title:m.EARLY_LOAN_LABEL,description:_l({additionalPayment:d,rate:e,term:o,originalBalance:t,editedLoanBalance:i,loanBalance:a,startDate:n})}),React__namespace.createElement(hr,{trigger:React__namespace.createElement(ar,{text:m.LEARN_MORE_LABEL,icon:React__namespace.createElement(BookOpen,null)}),content:React__namespace.createElement(zl,null)})))))}function Ii({errorCode:e,contactEndpointUrl:t,editDetailsAction:o,originalBalance:a,rate:i,loanBalance:n,editedLoanBalance:s,loanTerm:l,startDate:c,headerTitle:d=m.PAY_LITTLE_EXTRA_HEADER_TITLE,buttonDescription:p=m.ACTION_BUTTON_BEST_OPTION_LABEL,icon:u=React__namespace.createElement(DollarSign,null),minValue:f,maxValue:v,isLoading:N,clientKey:E,apiKey:b}){let g=!a&&!i&&!n&&!l&&!c&&!N;return React__namespace.createElement("div",{className:r("flex flex-col bg-white")},React__namespace.createElement(Ke,{title:d,icon:u,showInfo:!1,actions:React__namespace.createElement(pa,{editDetailsAction:o,originalBalance:a,rate:i,loanBalance:s,loanTerm:l,startDate:c}),showActions:!N&&!g}),N?React__namespace.createElement(Eo,null):e?React__namespace.createElement(Tr,null):g?React__namespace.createElement(Gt,null):React__namespace.createElement(xo,null,React__namespace.createElement($e,null,React__namespace.createElement(Wl,{rate:i,originalBalance:a,term:l,loanBalance:n,editedLoanBalance:s,startDate:c,minValue:f,maxValue:v})),React__namespace.createElement(Er,null,React__namespace.createElement(go,{endpointUrl:t,buttonDescription:p,clientKey:E,apiKey:b}))))}function jl({rate:e,totalSavings:t,monthlySavings:o}){let a=t===0,i=t>0,n=o===0,s=o>0,l=k(Math.abs(o));return React__namespace.createElement("div",{className:r("flex flex-col items-center gap-3 w-full")},React__namespace.createElement("p",null,qe(e)," ",m.RATE," "),a?React__namespace.createElement("div",{className:r("flex flex-row items-center gap-1")},React__namespace.createElement(ArrowRight,{strokeWidth:4,className:r("text-blue-700 h-5")}),React__namespace.createElement("p",null,m.REFINANCE_OPTIONS_NO_SAVINGS_MESSAGE)):i?React__namespace.createElement("div",{className:r("flex flex-row items-center gap-1")},React__namespace.createElement(Check,{strokeWidth:4,className:r("text-green-700 h-5")}),React__namespace.createElement("p",null,m.REFINANCE_OPTIONS_LONG_TERM_MESSAGE(m.REFINANCE_OPTIONS_SAVINGS_LABEL))):React__namespace.createElement("div",{className:r("flex flex-row items-center gap-1")},React__namespace.createElement(X$2,{strokeWidth:4,className:r("text-red-700 h-5")}),React__namespace.createElement("p",null,m.REFINANCE_OPTIONS_LONG_TERM_MESSAGE(m.REFINANCE_OPTIONS_LOSS_LABEL))),n?React__namespace.createElement(d$2,{className:r("w-full h-24"),title:m.REFINANCE_OPTIONS_NO_CHANGE_LABEL,icon:AlertTriangle,color:"blue"},m.REFINANCE_OPTIONS_PAYMENTS_NOCHANGE_MESSAGE):s?React__namespace.createElement(d$2,{className:r("w-full h-24"),title:m.REFINANCE_OPTIONS_GO_DOWN_LABEL,icon:TrendingDown,color:"emerald"},m.REFINANCE_OPTIONS_PAYMENT_PER_MONTH_DESCRIPTION(m.REFINANCE_OPTIONS_DOWN_LABEL,l)):React__namespace.createElement(d$2,{className:r("w-full h-24"),title:m.REFINANCE_OPTIONS_GO_UP_LABEL,icon:TrendingUp,color:"red"},m.REFINANCE_OPTIONS_PAYMENT_PER_MONTH_DESCRIPTION(m.REFINANCE_OPTIONS_UP_LABEL,l)))}function Ot({title:e,value:t,rate:o,totalSavings:a,monthlySavings:i,learnMoreContent:n,learnMoreTitle:s,className:l,borderColor:c,textColor:d="text-gray-700"}){return React__namespace.createElement(No,{className:r("flex flex-col items-center w-72 px-0 shadow-lg bg-gray-50 ",d,l,c?`border border-l-4 ${c==="green"?"border-l-green-700":c==="yellow"?"border-l-yellow-500":"border-l-red-800"}`:"")},React__namespace.createElement(To,null,React__namespace.createElement(Nr,{text:e,className:"font-normal"})),React__namespace.createElement(Lo,{className:r("flex flex-col items-center gap-3 w-full")},React__namespace.createElement("p",{className:r(" text-3xl font-semibold",d)},k(At(t))),o&&a&&i&&React__namespace.createElement(jl,{totalSavings:a,monthlySavings:At(i),rate:o})),React__namespace.createElement(Ao,null,React__namespace.createElement(hr,{title:s,trigger:React__namespace.createElement(ar,{text:m.LEARN_MORE_LABEL,icon:React__namespace.createElement(BookOpen,null)}),content:n})))}function Si({errorCode:e,contactEndpointUrl:t,editDetailsAction:o,refinanceFifteenYearRate:a,refinanceThirtyYearRate:i,originalBalance:n,rate:s,loanBalance:l,editedLoanBalance:c,loanTerm:d,startDate:p,clientKey:u,apiKey:f,headerTitle:v=m.REFINANCE_OPTIONS_HEADER_TITLE,buttonDescription:N=m.ACTION_BUTTON_BEST_OPTION_LABEL,icon:E=React__namespace.createElement(DollarSign,null),firstYearFixed:b=15,secondYearFixed:g=30,isLoading:x=!1}){let h=!n&&!s&&!l&&!d&&!p&&!x,{fifteenYearFixedTotalSavings:_,thirtyYearFixedTotalSavings:T}=Pl({originalBalance:n,term:d,loanBalance:l,startDate:p,editedLoanBalance:c,refinanceFifteenYearRate:a,refinanceThirtyYearRate:i,currentRate:s,firstYearFixed:b,secondYearFixed:g}),Y=React__namespace.useMemo(()=>React__namespace.createElement("div",{className:r("text-justify"),dangerouslySetInnerHTML:{__html:m.REFINANCE_OPTIONS_LEARN_MORE_DESCRIPTION}}),[]),V=React__namespace.useMemo(()=>x?React__namespace.createElement(Eo,null):e?React__namespace.createElement(Tr,null):h?React__namespace.createElement(Gt,null):React__namespace.createElement(xo,null,React__namespace.createElement($e,null,React__namespace.createElement("div",{className:r("flex flex-col items-center gap-10 pb-4")},React__namespace.createElement(Nr,{text:m.REFINANCE_OPTIONS_HEADER_SUBTITLE}),React__namespace.createElement("div",{className:r("flex flex-wrap items-center justify-center gap-3")},React__namespace.createElement(Ot,{title:m.REFINANCE_OPTIONS_FIFTEEN_YEAR_FIXED_LABEL,totalSavings:_,monthlySavings:On(Fr(s,n,Math.floor(d)*12),Fr(a,c,b*12)),value:_,rate:a,learnMoreContent:Y}),React__namespace.createElement(Ot,{title:m.REFINANCE_OPTIONS_THIRTY_YEAR_FIXED_LABEL,totalSavings:T,monthlySavings:On(Fr(s,n,Math.floor(d)*12),Fr(i,c,g*12)),value:T,rate:i,learnMoreContent:Y})))),React__namespace.createElement(Er,null,React__namespace.createElement(go,{endpointUrl:t,buttonDescription:N,clientKey:u,apiKey:f}))),[_,T,a,i,b,g]);return React__namespace.createElement("div",{className:r("flex flex-col bg-white")},React__namespace.createElement(Ke,{title:v,icon:E,showInfo:!1,actions:React__namespace.createElement(pa,{editDetailsAction:o,originalBalance:n,rate:s,loanBalance:c,loanTerm:d,startDate:p}),showActions:!x&&!h}),V)}function Bn({slides:e,className:t}){let[o,a]=React__namespace.useState(0),i=e.length>1&&o>0,n=e.length>1&&o<e.length-1,s=()=>{a(p=>(p+1)%e.length);},l=()=>{a(p=>(p-1+e.length)%e.length);},c=React__namespace.useMemo(()=>React__namespace.createElement(F,{disabled:!i,className:r("rounded-full py-1 px-1 md:py-6 lg:py-6 md:px-3 lg:px-3 shadow-none border-black border-2 disabled:blur-3xl"),variant:"outline",onClick:l},pe(7)),[i]),d=React__namespace.useMemo(()=>React__namespace.createElement(F,{disabled:!n,className:r("rounded-full py-1 px-1 md:py-6 lg:py-6 md:px-3 lg:px-3 shadow-none border-black border-2 disabled:blur-3xl "),variant:"outline",onClick:s},pe(6)),[n]);return React__namespace.createElement("div",{className:r("flex flex-col lg:flex-row md:flex-row justify-center items-center gap-8 w-full",t)},React__namespace.createElement("div",{className:r("hidden md:block lg:block")},c),React__namespace.createElement("div",{className:" w-full lg:w-[600px] lg:h-[460px] md:w-[600px] md:h-[460px]"},e[o]),React__namespace.createElement("div",{className:r("hidden md:block lg:block")},d),React__namespace.createElement("div",{className:r("flex flex-row w-full justify-between lg:hidden md:hidden")},c,d))}function Lr({headline:e,details:t}){return React__namespace.createElement("div",{className:r("flex flex-col gap-6 pb-5")},React__namespace.createElement("p",null,e),React__namespace.createElement("ul",{className:"flex flex-col gap-2 pl-6 list-disc"},t&&t.map((o,a)=>React__namespace.createElement("li",{className:r("text-gray-600"),key:a},o))))}function Ci({text:e,color:t,tootipText:o}){return React__namespace.createElement("div",{className:r("flex flex-row justify-center items-center gap-2")},React__namespace.createElement("span",{className:r("h-3 w-3 rounded-sm flex-shrink-0",t==="green"?"bg-green-700":t==="yellow"?"bg-yellow-500":"bg-red-800")}),React__namespace.createElement("p",null,e),React__namespace.createElement(Wo,null,React__namespace.createElement(Qr,null,React__namespace.createElement(Zr,{asChild:!0},React__namespace.createElement(Info,{stroke:"gray",className:r("h-4 w-4 hover:cursor-pointer")})),React__namespace.createElement(Dr,null,React__namespace.createElement("p",null,o)))))}function wi({text:e,link:t,linkText:o}){return React__namespace.createElement("p",null,e,"(",React__namespace.createElement("a",{className:r("text-blue-500"),target:"_blank",href:t},o),")")}function Di({errorCode:e,contactEndpointUrl:t,editDetailsAction:o,originalBalance:a,homeValue:i,rate:n,refinanceThirtyYearRate:s,editedLoanBalance:l,loanTerm:c,startDate:d,networth:p,clientKey:u,apiKey:f,headerTitle:v=m.USING_YOUR_EQUITY_HEADER_TITLE,buttonDescription:N=m.ACTION_BUTTON_BEST_OPTION_LABEL,icon:E=React__namespace.createElement(DollarSign,null),isLoading:b=!1}){let g=!a&&!n&&!l&&!c&&!d&&!b,{newHomeValue:x,downPayment:h,monthlyPayment:_}=Ol(p,s),{feesFirstValue:T,feesSecondValue:Y}=Ml(i),V=kl(i,l),z=Dl(p),{thirtyFivePercentNetworth:y,invesmentPropertyValue:O,invesmentMonthlyPayment:j}=Sl(p,s),J=[React__namespace.createElement(Ot,{key:0,value:x,title:m.USING_EQUITY_BUY_NEW_HOME,borderColor:"green",learnMoreTitle:m.USING_EQUITY_BUY_NEW_HOME,learnMoreContent:React__namespace.createElement(Lr,{headline:m.USING_EQUITY_BUY_NEW_HOME_DIALOG_HEADLINE(k(At(h)),k(At(x))),details:[m.USING_EQUITY_MONTHLY_PRINCIPAL_INTEREST(qe(s),k(At(_))),m.USING_EQUITY_GET_MORE_SQUARE_FOOTAGE,m.USING_EQUITY_REMINDER(k(T),k(Y))]})}),React__namespace.createElement(Ot,{key:1,value:V,title:m.USING_EQUITY_SELL_CASH,borderColor:"green",learnMoreTitle:m.USING_EQUITY_SELL_CASH,learnMoreContent:React__namespace.createElement(Lr,{headline:m.USING_EQUITY_SELL_CASH_HEADLINE(k(At(V))),details:[m.USING_EQUITY_SELL_CASH_DESCRIPTION_1,m.USING_EQUITY_SELL_CASH_DESCRIPTION_2,m.USING_EQUITY_SELL_CASH_DESCRIPTION_3,m.USING_EQUITY_REMINDER(k(T),k(Y)),m.USING_EQUITY_CONSULT_TAX_ADVISOR]})}),React__namespace.createElement(Ot,{key:2,value:O,title:m.USING_EQUITY_BUY_INVESMENT_PROPERTY,borderColor:"green",learnMoreTitle:m.USING_EQUITY_INVESMENT_PROPERTY,learnMoreContent:React__namespace.createElement(Lr,{headline:m.USING_EQUITY_INVESMENT_PROPERTY_HEADLINE(k(At(y)),k(At(O))),details:[m.USING_EQUITY_MONTHLY_PRINCIPAL_INTEREST(qe(s),k(At(j))),m.USING_EQUITY_RENTAL_INCOME,m.USING_EQUITY_EXPENSES_DEDUCTED,m.USING_EQUITY_LANDLORD,m.USING_EQUITY_CONSULT_A_LOAN_OFFICER]})}),React__namespace.createElement(Ot,{key:3,value:wl(p),title:m.USING_EQUITY_HOME_IMPROVEMENTS,borderColor:"yellow",learnMoreTitle:m.USING_EQUITY_HOME_IMPROVEMENTS,learnMoreContent:React__namespace.createElement(Lr,{headline:m.USING_EQUITY_HOME_INPROVEMENTS_HEADLINE,details:[m.USING_EQUITY_HOME_INPROVEMENTS_TAX_DEDUCTIBLE,m.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_DOOR,m.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_SUNROOM,m.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_SOURCE]})}),React__namespace.createElement(Ot,{key:4,value:48e3,title:m.USING_EQUITY_LIVABLE_SPACE,borderColor:"green",learnMoreTitle:m.USING_EQUITY_LIVABLE_SPACE,learnMoreContent:React__namespace.createElement(Lr,{headline:m.USING_EQUITY_LIVABLE_SPACE_HEADLINE,details:[React__namespace.createElement(wi,{text:m.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_1,linkText:m.HOME_GUIDE,link:m.HOME_GUIDE_URL}),m.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_2,m.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_3,m.USING_EQUITY_CONSULT_TAX_ADVISOR]})}),React__namespace.createElement(Ot,{key:5,value:z,title:m.USING_EQUITY_EMERGENCY_FUND,borderColor:"green",learnMoreTitle:m.USING_EQUITY_EMERGENCY_FUND,learnMoreContent:React__namespace.createElement(Lr,{headline:m.USING_EQUITY_EMERGENCY_FUND_HEADLINE,details:[m.USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_1(k(p),k(z)),m.USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_2,m.USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_3]})}),React__namespace.createElement(Ot,{key:6,value:7e3,title:m.USING_EQUITY_CREDIT_CARD_DEBT,borderColor:"green",learnMoreTitle:m.USING_EQUITY_CREDIT_CARD_DEBT,learnMoreContent:React__namespace.createElement(Lr,{headline:React__namespace.createElement(wi,{text:m.USING_EQUITY_CREDIT_DEBT_HEADLINE,linkText:m.EL_ISSA,link:m.EL_ISSA_URL}),details:[m.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_1,m.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_2,m.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_3]})}),React__namespace.createElement(Ot,{key:7,value:Cl(p),title:m.USING_EQUITY_VACATION,borderColor:"red",learnMoreTitle:m.USING_EQUITY_VACATION,learnMoreContent:React__namespace.createElement(Lr,{headline:m.USING_EQUITY_VACATION_HEADLINE,details:[m.USING_EQUITY_LIVABLE_SPACE,m.USING_EQUITY_CREDIT_CARD_DEBT,m.USING_EQUITY_BUY_INVESMENT_PROPERTY]})}),React__namespace.createElement(Ot,{key:8,value:3e4,title:m.USING_EQUITY_STUDENT_LOANS,borderColor:"yellow",learnMoreTitle:m.USING_EQUITY_STUDENT_LOANS,learnMoreContent:React__namespace.createElement(Lr,{headline:React__namespace.createElement(wi,{text:m.USING_EQUITY_STUDENT_LOANS_HEADLINE,linkText:m.TICAS,link:m.TICAS_URL}),details:[m.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_1,m.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_2,m.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_3]})})];return React__namespace.createElement("div",{className:r("flex flex-col bg-white")},React__namespace.createElement(Ke,{title:v,icon:E,showInfo:!1,actions:React__namespace.createElement(pa,{editDetailsAction:o,originalBalance:a,rate:n,loanBalance:l,loanTerm:c,startDate:d}),showActions:!b&&!g}),b?React__namespace.createElement(Eo,null):e?React__namespace.createElement(Tr,null):g?React__namespace.createElement(Gt,null):React__namespace.createElement(xo,null,React__namespace.createElement($e,null,React__namespace.createElement("div",{className:r("flex flex-col items-center gap-10 pb-4")},React__namespace.createElement(Nr,{text:m.USING_YOUR_EQUITY_SUBTITLE(k(p))}),React__namespace.createElement("div",{className:r("flex flex-col lg:flex-row md:flex-row gap-3 lg:gap-9 md:gap-9")},React__namespace.createElement(Ci,{text:m.EXCELENT_INVESTMENT,color:"green",tootipText:m.EXCELENT_INVESTMENT_DESCRIPTION}),React__namespace.createElement(Ci,{text:m.MODERATE_INVESTMENT,color:"yellow",tootipText:m.MODERATE_INVESTMENT_DESCRIPTION}),React__namespace.createElement(Ci,{text:m.POOR_INVESTMENT,color:"red",tootipText:m.POOR_INVESTMENT_DESCRIPTION})),React__namespace.createElement("div",{className:r("block md:hidden lg:hidden")},React__namespace.createElement(Bn,{slides:J})),React__namespace.createElement("div",{className:r("hidden md:block lg:block")},React__namespace.createElement(Bn,{slides:[React__namespace.createElement("div",{className:"grid grid-cols-2 grid-rows-2 gap-8"},J.slice(0,4)),React__namespace.createElement("div",{className:"grid grid-cols-2 grid-rows-2 gap-8"},J.slice(4,8)),React__namespace.createElement("div",{className:"flex flex-col items-center"},J[8])]})))),React__namespace.createElement(Er,null,React__namespace.createElement(go,{endpointUrl:t,buttonDescription:N,clientKey:u,apiKey:f}))))}React__namespace.memo(Pi);React__namespace.memo(Ii);React__namespace.memo(Si);React__namespace.memo(Di);var lr=(i=>(i[i.listingOpportunities=0]="listingOpportunities",i[i.listingWins=1]="listingWins",i[i.listingClosed=2]="listingClosed",i[i.lostOpportunities=3]="lostOpportunities",i))(lr||{});function Df(e,t){let[o,a]=React__namespace.useState(e);return React__namespace.useEffect(()=>{let i=setTimeout(()=>a(e),t||100);return ()=>{clearTimeout(i);}},[e,t]),o}function $a(e,t){if(e.length===0)return {};if(!t)return {"":e};let o={};return e.forEach(a=>{let i=a[t]||"";o[i]||(o[i]=[]),o[i].push(a);}),o}function Mf(e,t){let o=JSON.parse(JSON.stringify(e));for(let[a,i]of Object.entries(o))o[a]=i.filter(n=>!t.find(s=>s.value===n.value));return o}var Tm=React__namespace.forwardRef(({className:e,...t},o)=>T$5(i=>i.filtered.count===0)?React__namespace.createElement("div",{ref:o,className:r("py-6 text-center text-sm",e),"cmdk-empty":"",role:"presentation",...t}):null);Tm.displayName="CommandEmpty";var Lm=React__namespace.forwardRef(({value:e,onChange:t,placeholder:o,defaultOptions:a=[],options:i,delay:n,onSearch:s,loadingIndicator:l,emptyIndicator:c,maxSelected:d=Number.MAX_SAFE_INTEGER,onMaxSelected:p,hidePlaceholderWhenSelected:u,disabled:f,groupBy:v,className:N,selectFirstItem:E=!0,creatable:b=!1,triggerSearchOnFocus:g=!1,alwaysSelected:x=!1,isLoading:h=!1,commandProps:_,inputProps:T},Y)=>{let V=React__namespace.useRef(null),[z,y]=React__namespace.useState(!1),[O,j]=React__namespace.useState(!1),[J,Ee]=React__namespace.useState(!0),[C,Pe]=React__namespace.useState(e||[]),[ve,De]=React__namespace.useState($a(a,v)),[nt,st]=React__namespace.useState(""),It=Df(nt,n||100);React__namespace.useImperativeHandle(Y,()=>({selectedValue:[...C],input:V.current}),[C]);let Kt=React__namespace.useCallback(re=>{let tt=C.filter(oe=>oe.value!==re.value);Pe(tt),t?.(tt);},[C]);React__namespace.useEffect(()=>{e&&Pe(e);},[e]),React__namespace.useEffect(()=>{if(!i||s)return;let re=$a(i||[],v);JSON.stringify(re)!==JSON.stringify(ve)&&De(re);},[a,i,v,s,ve]),React__namespace.useEffect(()=>{V.current?.focus();let re=async()=>{j(!0);let oe=await s?.(It);De($a(oe||[],v)),j(!1);};(async()=>{!s||!z||(g&&await re(),It?(await re(),Ee(!1)):Ee(!0));})();},[It,z]);let Ir=()=>{if(!b)return;let re=React__namespace.createElement(Jt,{value:nt,className:"cursor-pointer",onMouseDown:tt=>{tt.preventDefault(),tt.stopPropagation();},onSelect:tt=>{if(C.length>=d){p?.(C.length);return}st("");let oe=[...C,{value:tt,label:tt}];Pe(oe),t?.(oe);}},`Create "${nt}"`);if(!s&&nt.length>0||s&&It.length>0&&!O)return re},yt=React__namespace.useCallback(()=>{if(c)return s&&!b&&Object.keys(ve).length===0?React__namespace.createElement(Jt,{value:"-",disabled:!0},c):React__namespace.createElement(Tm,null,c)},[b,c,s,ve]),dr=React__namespace.useMemo(()=>Mf(ve,C),[ve,C]),pr=React__namespace.useCallback(()=>{if(_?.filter)return _.filter;if(b)return (re,tt)=>re.toLowerCase().includes(tt.toLowerCase())?1:-1},[b,_?.filter]);return React__namespace.createElement(Zo,{..._,onKeyDown:re=>{_?.onKeyDown?.(re);},className:r("overflow-visible bg-transparent",_?.className),shouldFilter:_?.shouldFilter!==void 0?_.shouldFilter:!s,filter:pr()},React__namespace.createElement(Wo,null,React__namespace.createElement(Qr,null,React__namespace.createElement(Zr,{asChild:!0},React__namespace.createElement("button",{onClick:()=>{!f&&!h&&y(!0);}},React__namespace.createElement("div",{className:r("group rounded-md border border-input h-10 bg-white text-sm py-3 px-2 shadow-md",N)},React__namespace.createElement("div",{className:"flex flex-row overflow-hidden gap-1 items-center justify-start "},h&&React__namespace.createElement(Ht,{className:"h-3 text-gray-800 p-0 m-0"}),u&&C.length!==0?"":React__namespace.createElement("p",{className:"text-xs text-gray-500 "},o),C.length>0&&React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("div",{className:"w-28"},React__namespace.createElement("p",{className:"text-xs text-ellipsis overflow-hidden whitespace-nowrap self-center"},C[0].label!==""?C[0].label:C[0].value)),C.length>1&&React__namespace.createElement("p",{className:"text-xs text-ellipsis overflow-hidden whitespace-nowrap self-center"},`+ ${C.length-1}`)))))),C.length>0&&!z&&React__namespace.createElement(Dr,{className:"bg-gray-50 text-gray-700"},React__namespace.createElement("p",{className:"whitespace-normal w-40"},C.map(re=>re.label!==""?re.label:re.value).join(", "))))),React__namespace.createElement("div",{className:"relative mt-2"},z&&React__namespace.createElement(La,{className:"absolute top-0 z-10 w-full rounded-md border bg-popover text-popover-foreground shadow-md outline-none animate-in "},React__namespace.createElement("div",{className:"bg-gray-100 flex flex-row w-full mb-2 items-center justify-center static "},React__namespace.createElement(Search,{className:"h-4 ml-1 text-gray-500"}),React__namespace.createElement(Le$2.Input,{...T,ref:V,value:nt,disabled:f,onValueChange:re=>{st(re),T?.onValueChange?.(re);},onBlur:re=>{O||(st(""),y(!1),T?.onBlur?.(re),Ee(!0));},onFocus:re=>{De($a(a,v)),g&&s?.(It),T?.onFocus?.(re),re.preventDefault(),re.stopPropagation();},placeholder:"Search...",className:r(" bg-gray-100 ml-1 w-full py-4 text-xs outline-none placeholder:text-muted-foreground",T?.className)})),O?React__namespace.createElement(React__namespace.Fragment,null,l):React__namespace.createElement(React__namespace.Fragment,null,yt(),Ir(),!E&&React__namespace.createElement(Jt,{value:"-",className:"hidden"}),Object.entries(dr).map(([re,tt])=>React__namespace.createElement(Aa,{key:re,heading:re,className:"h-full overflow-auto gap-2"},React__namespace.createElement(React__namespace.Fragment,null,J&&C.map(oe=>React__namespace.createElement(Jt,{key:oe.value,value:oe.value,disabled:oe.disable,onMouseDown:Sr=>{Sr.preventDefault(),Sr.stopPropagation();},onSelect:()=>{x&&C.length===1||Kt(oe);},className:r("h-full w-full ")},React__namespace.createElement("div",{className:"bg-blue-100 h-full rounded-md w-full p-2"},oe.label!==""?oe.label:oe.value))),tt.map(oe=>React__namespace.createElement(Jt,{key:oe.value,value:oe.value,disabled:oe.disable,onMouseDown:Sr=>{Sr.preventDefault(),Sr.stopPropagation();},onSelect:()=>{if(C.length>=d){if(d===1){st(""),Pe([]);let Jn=[oe];Pe(Jn),t?.(Jn);}p?.(C.length);return}st("");let Sr=[...C,oe];Pe(Sr),t?.(Sr),Ee(!0),De($a(a,v));},className:r("cursor-pointer",oe.disable&&"cursor-default text-muted-foreground")},oe.label!==""?oe.label:oe.value)))))))))});Lm.displayName="MultipleSelector";var $n=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement(u$c,{ref:o,className:r("",e),...t}));$n.displayName=u$c.displayName;var Kn=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement(i,{ref:o,className:r("",e),...t}));Kn.displayName=i.displayName;var Zn=(y=>(y[y.garage_permit=0]="garage_permit",y[y.deck_permit=1]="deck_permit",y[y.addon_permit=2]="addon_permit",y[y.investor_2_4=3]="investor_2_4",y[y.homeowner_heloc=4]="homeowner_heloc",y[y.homeowner_mortgage_arm=5]="homeowner_mortgage_arm",y[y.homeowner_refinance=6]="homeowner_refinance",y[y.homeowner_cash_out_refinance=7]="homeowner_cash_out_refinance",y[y.homeowner_paid_off_mortgage=8]="homeowner_paid_off_mortgage",y[y.home_equity_loan=9]="home_equity_loan",y[y.mortgage_refinance=10]="mortgage_refinance",y[y.home_seller=11]="home_seller",y[y.solar_energy_permit=12]="solar_energy_permit",y[y.new_construction_permit=13]="new_construction_permit",y[y.pool_permit=14]="pool_permit",y[y.roof_permit=15]="roof_permit",y[y.remodel_permit=16]="remodel_permit",y[y.homebuyer=17]="homebuyer",y[y.homebuyer_cash=18]="homebuyer_cash",y[y.renter=19]="renter",y[y.professional=20]="professional",y[y.investor=21]="investor",y[y.investor_5_9=22]="investor_5_9",y[y.investor_10=23]="investor_10",y[y.homeowner=24]="homeowner",y))(Zn||{});
76988
-
76989
- var t=p$e(Ub,{props:{zipcode:"string",url:"string",zoomLevel:"number",zoomControl:"boolean",googleApiKey:"string",clientKey:"string",apiKey:"string"}});customElements&&customElements.define("heat-map",t);
76963
+ `,m.REFINANCE_OPTIONS_FIFTEEN_YEAR_FIXED_LABEL="15 Year Fixed",m.REFINANCE_OPTIONS_THIRTY_YEAR_FIXED_LABEL="30 Year Fixed",m.REFINANCE_OPTIONS_NO_SAVINGS_MESSAGE="No net loss or savings",m.REFINANCE_OPTIONS_LOSS_LABEL="loss",m.REFINANCE_OPTIONS_SAVINGS_LABEL="savings",m.REFINANCE_OPTIONS_PAYMENTS_NOCHANGE_MESSAGE="Payment will not change",m.REFINANCE_OPTIONS_NO_CHANGE_LABEL="No Change",m.REFINANCE_OPTIONS_GO_UP_LABEL="Go Up",m.REFINANCE_OPTIONS_GO_DOWN_LABEL="Go Down",m.REFINANCE_OPTIONS_UP_LABEL="up",m.REFINANCE_OPTIONS_DOWN_LABEL="down",m.USING_YOUR_EQUITY_HEADER_TITLE="Using Your Equity",m.USING_EQUITY_BUY_NEW_HOME="Buy a new home",m.USING_EQUITY_GET_MORE_SQUARE_FOOTAGE="Get more square footage, a larger yard, or switch neighborhoods - you have options!",m.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.",m.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.",m.USING_EQUITY_SELL_CASH_DESCRIPTION_3="You could also downsize into a cheaper home using a portion of your equity and save the rest.",m.USING_EQUITY_CONSULT_TAX_ADVISOR="Always consult a professional tax advisor to understand implications for your specific situation.",m.USING_EQUITY_RENTAL_INCOME="Possibly use rental income to cover some or all of your new mortgage payment.",m.USING_EQUITY_EXPENSES_DEDUCTED="Consult your professional tax advisor to see if expenses related to this property can be deducted.",m.USING_EQUITY_LANDLORD="Consider if you have time to be a landlord (or if you should hire a property manager).",m.USING_EQUITY_CONSULT_A_LOAN_OFFICER="Consult a loan officer",m.USING_EQUITY_BUY_INVESMENT_PROPERTY="Buy an investment property",m.USING_EQUITY_INVESMENT_PROPERTY="Investment Property",m.USING_EQUITY_SELL_CASH="Sell & pocket cash",m.USING_EQUITY_HOME_IMPROVEMENTS="Make home improvements",m.USING_EQUITY_LIVABLE_SPACE="Add more livable space",m.USING_EQUITY_EMERGENCY_FUND="Create emergency fund",m.USING_EQUITY_CREDIT_CARD_DEBT="Eliminate credit card debt",m.USING_EQUITY_VACATION="Splurge on a dream vacation",m.USING_EQUITY_STUDENT_LOANS="Pay down student loans",m.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.",m.USING_EQUITY_HOME_INPROVEMENTS_TAX_DEDUCTIBLE="Equity used for home improvements is still tax-deductible in many cases. (Always consult a professional tax advisor)",m.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.",m.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_SUNROOM="The lowest value improvements are sunroom, swimming pools, and bathroom additions.",m.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_SOURCE="Source: HGTV.",m.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. ",m.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.",m.USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_3="Make sure to stay disciplined and only use the money for true emergencies.",m.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.",m.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_1='"The majority of additions add value and offer a 50% return on investment." ',m.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_2="If local ordinances allow it could be used as a rental.",m.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_3="Qualifies as a home improvement so equity interest is tax-deductible.",m.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. ",m.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_1="Home equity rates are often (but not always) less than student loans.",m.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_2="Paying off student loans is a great way to establish credit history.",m.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.",m.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]. ",m.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_1="Home equity rates are often substantially lower than those on credit cards",m.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.",m.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.",m.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:",m.LOAN_AMOUNT_CANNOT_EXCEED="The remaining loan amount cannot exceed the initial loan principal.",m.VALUE_GREATER_THAN_ZERO="The value must be greater than 0.",m.EXCELENT_INVESTMENT="Excellent Investment",m.MODERATE_INVESTMENT="Moderate Investment",m.POOR_INVESTMENT="Poor Investment",m.EXCELENT_INVESTMENT_DESCRIPTION="High potential, recommended for consideration.",m.MODERATE_INVESTMENT_DESCRIPTION="Average potential, consider with caution.",m.POOR_INVESTMENT_DESCRIPTION="Low potential, strongly advised to avoid.";function Gt({message:e=m.NO_DATA_AVAILABLE_LABEL}){let t="text-gray-400";return React__namespace.createElement("div",{className:r("flex flex-col bg-gray-100 rounded-lg items-center justify-center gap-3 h-72 m-3 lg:m-8 md:m-8")},React__namespace.createElement(XOctagon,{strokeWidth:.4,className:r("h-24 w-24",t)}),React__namespace.createElement("p",{className:r(t)},e))}function Ke({children:e}){return React__namespace.createElement("div",{className:r("flex justify-center w-full")},e)}function Er({children:e}){return React__namespace.createElement("div",{className:r("flex flex-auto justify-center w-full")},e)}function hr({trigger:e,content:t,title:o,asChild:a=!1,actionButtomLabel:i=m.ACTION_OK_BUTTON_LABEL}){return React__namespace.createElement(ns,null,React__namespace.createElement(ss,{asChild:a},e),React__namespace.createElement(Xi,{className:r("flex flex-col gap-2 p-6","h-screen lg:h-auto md:h-auto overflow-y-auto")},o&&React__namespace.createElement(tn,null,o),t,React__namespace.createElement(en,null,React__namespace.createElement(rn,null,i))))}function Os({title:e,infoTitle:t,icon:o,infoDescription:a,titleDescription:i,showInfo:n=!0,showIconBackground:s=!0,inlineDescription:l=!1}){let c=React__namespace.cloneElement(o,{className:"w-6 h-6"});return React__namespace.createElement("div",{className:r("flex flex-col items-start ",{"w-full flex-col md:flex-row md:justify-between md:mr-10 md:items-center":l})},React__namespace.createElement("div",{className:r("flex flex-row items-center gap-1")},React__namespace.createElement("div",{className:r("flex flex-col items-center rounded-[100px] p-2",s?"bg-slate-50":"")},c),React__namespace.createElement("h3",{className:r("font-semibold leading-8 text-xl md:text-2xl lg:text-2xl text-gray-700")},e),n&&React__namespace.createElement(hr,{asChild:!0,title:t,trigger:React__namespace.createElement(Info,{className:r("w-5 h-5 text-gray-400")}),content:a})),i&&React__namespace.createElement("p",{className:r("text-gray-400 ml-[50px] text-xs md:text-sm lg:text-sm",{"text-right md:w-60":l})},i))}function Qe({icon:e,infoDescription:t,title:o,titleDescription:a,infoTitle:i,actions:n,showInfo:s=!0,showActions:l=!1,showIconBackground:c=!0,inlineDescription:d=!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(Os,{title:o,titleDescription:a,infoTitle:i,icon:e,infoDescription:t,showInfo:s,showIconBackground:c,inlineDescription:d}),l&&n&&n)}function Yt({open:e,onOpenChange:t,trigger:o,content:a,footer:i,title:n,description:s,className:l,triggerAsChild:c=!0}){return React__namespace.createElement(Zo,{open:e,onOpenChange:t},React__namespace.createElement(ti,{asChild:c},o),React__namespace.createElement(_o,{className:r("flex flex-col max-w-full md:w-auto lg:w-auto","h-screen lg:h-auto md:h-auto overflow-y-auto",l)},React__namespace.createElement(an,null,n&&React__namespace.createElement(sn,null,n),s&&React__namespace.createElement(ln,null,s)),a,React__namespace.createElement(nn,null,i)))}function ft(e){try{return typeof e=="string"&&(e=parseFloat(e)),e.toLocaleString("en-US")}catch(t){return console.error("Error formatting the number:",t),""}}function k(e){try{return typeof e>"u"||e===null?"":`$${ft(e)}`}catch(t){return console.error("Error adding the dollar sign:",t),""}}function ia(e){try{let t=e.replace(/[$,]/g,""),o=parseFloat(t);if(isNaN(o))throw new Error("Invalid numeric value");return o}catch(t){throw console.error("Error parsing currency:",t),t}}function ze(e){try{return `${e}%`}catch(t){return console.error("Error adding the percentage sign:",t),""}}function _n(e){try{return new Date(e)}catch(t){throw console.error("Error parsing the date:",t),t}}function na(e){try{let t=_n(e),a=["January","February","March","April","May","June","July","August","September","October","November","December"][t.getMonth()],i=t.getFullYear();return `${a} ${i}`}catch(t){return console.error("Error formatting the date:",t),""}}var wp=async(e,t)=>{if(!e)return;let o=await fetch(e,t);if(!o.ok)throw new Error("An error occurred while fetching the data.");return o.json()},Dp=async e=>ts({clientKey:e});function ne({clientKey:e,apiKey:t}){let o=!!e,{data:a,error:i,mutate:n}=useSWR(e?["token",e]:null,()=>Dp(e),{revalidateOnFocus:!1,shouldRetryOnError:!1,keepPreviousData:!0}),s=React$1.useCallback(async()=>{if(a?.refreshToken){let c=await rs(a.refreshToken);c&&n(c);}},[a,n]),l=React$1.useCallback(async c=>Mp(c,{tokens:a,apiKey:t,isExternal:o}),[a,t,o]);return {isExternal:o,tokens:a,isLoading:o&&!a&&!i,isError:i,refreshToken:s,request:l}}var Ze=(e,{tokens:t,apiKey:o,isExternal:a,onSuccess:i})=>{let{url:n,requestInit:s}=e,{headers:l,...c}=s??{},d={"Content-Type":"application/json",...t?.token&&{Authorization:`Bearer ${t.token}`},...o&&{"x-api-key":o},...l},{data:p,error:f,isValidating:u,mutate:y}=useSWR(t||!a?[n,JSON.stringify(d)]:null,()=>wp(n,{headers:d,...c}),{revalidateOnFocus:!1,shouldRetryOnError:!1,onSuccess:b=>{i?.(b);}});return {data:p,isLoading:!f&&!p||u,isError:f,mutate:y}};async function Mp(e,t={}){let{url:o,requestInit:a}=e,{tokens:i,apiKey:n,isExternal:s}=t,{headers:l,...c}=a??{};if(!o)throw new Error("Request URL is null or undefined");let d={"Content-Type":"application/json",...i?.token&&{Authorization:`Bearer ${i.token}`},...n&&{"x-api-key":n},...l};try{let p=await fetch(o,{headers:d,...c});if(!p.ok)throw new Error(`HTTP error! status: ${p.status}`);return await p.json()}catch(p){throw console.error("Request failed:",p),p}}function js(e){return Op.parseLocation(e)}function kp(e,t){let o=e.toLowerCase(),a=t.filter(s=>s!==void 0);return o.split(" ").filter(s=>!a.includes(s)).join(" ")}function lo(e){if(!e)return;let t=js(e),a=e.split(",")[0];return {streetAddress:kp(a,[t?.sec_unit_num,t?.sec_unit_type]),address:a,city:t?.city??"",state:t?.state??"",zipcode:t?.zip??""}}function er({address:e,clientKey:t,apiKey:o}){let[a,i]=React$1.useState(),{isExternal:n,tokens:s}=ne({clientKey:t,apiKey:o}),l=useReadLocalStorage("selectedAddress"),d=lo(e??l),p=React$1.useMemo(()=>d?`${n?"https://api.liberty.percyai.io/property/v1/details":"https://api.liberty.percyai.io/property/v-internal/details"}?address=${encodeURIComponent(d.address)}&city=${encodeURIComponent(d.city)}&state=${encodeURIComponent(d.state)}&zipcode=${encodeURIComponent(d.zipcode)}`:null,[d,n]),{data:f,isError:u,isLoading:y}=Ze({url:a??p},{tokens:s,apiKey:o,isExternal:n}),b=React$1.useCallback(({address:N,streetAddress:g})=>{let E=new URL(n?"https://api.liberty.percyai.io/property/v1/details":"https://api.liberty.percyai.io/property/v-internal/details");g?E.searchParams.set("address",N?.streetAddress??""):E.searchParams.set("address",N?.address??""),E.searchParams.set("city",N?.city??""),E.searchParams.set("state",N?.state??""),E.searchParams.set("zipcode",N?.zipcode??""),n||E.searchParams.set("sources","attom,zillow,quantarium,corelogic,rpr,homejunction,rpr,collateral,collateral_analytics"),i(E.toString());},[n]),x=f?.data?.coordinates?{lat:parseFloat(f.data.coordinates.latitude),lng:parseFloat(f.data.coordinates.longitude)}:void 0;return {address:d,location:x,loadingCoordinates:y,isError:u,fetchLocation:b}}var mo="AIzaSyASLd0x2iEVZpo9r0NBC8beqN_YRFRm_dM";var Zs=({url:e,address:t,internalZipcode:o,clientKey:a,apiKey:i,loadingInitialState:n})=>{let{address:s}=er({address:t,clientKey:a,apiKey:i}),{tokens:l,isExternal:c}=ne({clientKey:a,apiKey:i,loadingInitialState:n}),d=D(l?.meta,"color"),p=o||s?.zipcode,f=React__namespace.useMemo(()=>{if(!e||!p)return null;let N=new URL(e);return N.searchParams.set("zipcode",p),d?.value&&N.searchParams.set("colors",d?.value),N.toString()},[e,p]),{data:u,isLoading:y,isError:b,mutate:x}=Ze({url:f},{tokens:l,apiKey:i,isExternal:c});return {data:u?.data,isLoading:y,isError:b,isExternal:c,tokens:l,mutate:x,address:s}};function Fp(e){let t=.2;return e>=15&&(t=.1),e>=45&&(t=.05),e>=135&&(t=.025),e*t}function Js(e){let t={min:7,max:12},o=Fp(e),a=t.min+o,i=Math.max(Math.min(a,t.max),t.min);return Math.round(i)}function el(e,t){React__namespace.useEffect(e,t.map(qp));}function qp(e){let t=React__namespace.useRef();return zp(e,t.current)||(t.current=e),t.current}var Xs=e=>e!=null&&typeof e=="object"&&Number.isFinite(e.lat)&&Number.isFinite(e.lng),zp=fastEqualsExports.createCustomEqual(e=>({areObjectsEqual(t,o){return Xs(t)||t instanceof google.maps.LatLng||Xs(o)||o instanceof google.maps.LatLng?new google.maps.LatLng(t).equals(new google.maps.LatLng(o)):fastEqualsExports.deepEqual(t,o)}}));var co=[{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 Mo({className:e,onClick:t,onIdle:o,children:a,centerOnMarker:i,geoJson:n,center:s,...l}){let c=React__namespace.useRef(null),[d,p]=React__namespace.useState(),[f,u]=React__namespace.useState(!1),[y,b]=React__namespace.useState(null),[x,N]=React__namespace.useState(null);return React__namespace.useEffect(()=>{if(c.current&&d===void 0){let g=new window.google.maps.Map(c.current,{styles:co});p(g);}},[c,d]),el(()=>{d&&(d.setOptions(l),u(!0));},[d,l]),React__namespace.useEffect(()=>{d&&(["click","idle"].forEach(g=>google.maps.event.clearListeners(d,g)),t&&d.addListener("click",t),o&&d.addListener("idle",()=>o(d)));},[d,t,o]),React__namespace.useEffect(()=>{if(d&&n){if(y&&x&&(y.setMap(null),x.setMap(null)),s){d.setCenter(s);let _=new google.maps.Marker({position:s,map:d});N(_);}let g=new google.maps.Data;g.addGeoJson(n),g.setStyle(_=>({fillColor:_.getProperty("color")??"#FFFFCC",strokeWeight:1,fillOpacity:.5,strokeColor:"white"})),g.setMap(d),b(g);let E=n?.features.length,v=Js(E);d.setZoom(v);}},[d,n]),React__namespace.useEffect(()=>{if(f&&i&&d&&React__namespace.Children.count(a)>0){let g=new google.maps.LatLngBounds;React__namespace.Children.map(a,v=>{if(React__namespace.isValidElement(v)){let _=v.props.activity.lat,T=v.props.activity.lng;return {lat:parseFloat(_),lng:parseFloat(T)}}})?.forEach(v=>{g.extend(v);}),g.extend({lat:g.getNorthEast().lat()+.005,lng:g.getNorthEast().lng()}),d.fitBounds(g);}},[d,i,a,f]),React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("div",{ref:c,className:e}),React__namespace.Children.map(a,g=>{if(React__namespace.isValidElement(g))return React__namespace.cloneElement(g,{map:d})}))}function la({message:e=m.NO_DATA_AVAILABLE_LABEL,mapHeight:t="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:t,height:t,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)},e))}var tl=["#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],rl="https://api.liberty.percyai.io/location/v1/heatmap";function ol(){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")},tl.map((e,t)=>React__namespace.createElement("div",{key:t,className:r("w-4 h-4"),style:{backgroundColor:e}})))))}function Fb({address:e,zipcode:t,url:o=rl,zoomLevel:a=10,zoomControl:i=!0,googleApiKey:n,clientKey:s,apiKey:l,height:c="420px"}){let{isLoading:d,data:p}=Zs({url:o,address:e,clientKey:s,apiKey:l,internalZipcode:t}),f=u=>u===index_umdExports.Status.FAILURE?React__namespace.createElement("p",null,"failed"):React__namespace.createElement("p",null,"loading...");return React__namespace.createElement("div",{className:r("flex flex-col bg-white w-full")},React__namespace.createElement(Qe,{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(Ke,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":d}),style:{maxHeight:c,height:c}},React__namespace.createElement("div",{className:"flex h-full"},React__namespace.createElement(index_umdExports.Wrapper,{apiKey:n??mo,render:f},React__namespace.createElement(Mo,{className:"grow h-full",zoom:a,minZoom:2,maxZoom:18,geoJson:p?.geoJson,center:p?.center,zoomControl:i,zoomControlOptions:{position:3},centerOnMarker:!1,fullscreenControl:!1,streetViewControl:!1,mapTypeControl:!1,clickableIcons:!1}))),React__namespace.createElement(ol,null),!p&&!d&&React__namespace.createElement(la,null)))))}var pe=class{};pe.ENDPOINT_URL="https://api.liberty.percyai.io/property/v1/nearby_sales",pe.DEFAULT_RADIUS="5000",pe.DEFAULT_FROM=format$1(subYears(new Date,1),"yyyy-MM-dd"),pe.DEFAULT_ZOOM_LEVEL=14,pe.DEFAULT_MAP_HEIGHT="420px",pe.DEFAULT_LIMIT="10",pe.HEADER_TITLE="Recent Nearby Sales",pe.DIALOG_TITLE="How recent nearby sales work",pe.DIALOG_DESCRIPTION="These are relevant houses near your property that have sold in the last 18 months and within a 1.5mi radius. The sales can be used as a factor in determining the value of your property in current market conditions.",pe.BEDS_LABEL="Beds",pe.BATHS_LABEL="Baths",pe.SQFT_LABEL="Sqft";function fe(e,t,o){switch(e){case 18:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??16,height:o??16,viewBox:"0 0 16 16",fill:"none"},React__namespace.createElement("path",{d:"M4.6665 4.66669H11.3332V11.3334",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M4.6665 11.3334L11.3332 4.66669",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}));case 17:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??20,height:o??20,viewBox:"0 0 20 20",fill:"none"},React__namespace.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 7C11.4477 7 11 6.55228 11 6C11 5.44772 11.4477 5 12 5H17C17.5523 5 18 5.44772 18 6V11C18 11.5523 17.5523 12 17 12C16.4477 12 16 11.5523 16 11V8.41421L11.7071 12.7071C11.3166 13.0976 10.6834 13.0976 10.2929 12.7071L8 10.4142L3.70711 14.7071C3.31658 15.0976 2.68342 15.0976 2.29289 14.7071C1.90237 14.3166 1.90237 13.6834 2.29289 13.2929L7.29289 8.29289C7.68342 7.90237 8.31658 7.90237 8.70711 8.29289L11 10.5858L14.5858 7H12Z",fill:"#3B81F5"}));case 16:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??12,height:o??12,viewBox:"0 0 12 12",fill:"none"},React__namespace.createElement("path",{d:"M0 2.625C0 2.32663 0.118526 2.04048 0.329505 1.8295C0.540483 1.61853 0.826631 1.5 1.125 1.5H10.875C11.1734 1.5 11.4595 1.61853 11.6705 1.8295C11.8815 2.04048 12 2.32663 12 2.625V9.375C12 9.67337 11.8815 9.95952 11.6705 10.1705C11.4595 10.3815 11.1734 10.5 10.875 10.5H1.125C0.826631 10.5 0.540483 10.3815 0.329505 10.1705C0.118526 9.95952 0 9.67337 0 9.375L0 2.625ZM1.125 2.25C1.02554 2.25 0.930161 2.28951 0.859835 2.35984C0.789509 2.43016 0.75 2.52554 0.75 2.625V9.375C0.75 9.47446 0.789509 9.56984 0.859835 9.64017C0.930161 9.71049 1.02554 9.75 1.125 9.75H10.875C10.9745 9.75 11.0698 9.71049 11.1402 9.64017C11.2105 9.56984 11.25 9.47446 11.25 9.375V2.625C11.25 2.52554 11.2105 2.43016 11.1402 2.35984C11.0698 2.28951 10.9745 2.25 10.875 2.25H1.125Z",fill:"#374151"}),React__namespace.createElement("path",{d:"M1.5 3.375C1.5 3.27554 1.53951 3.18016 1.60984 3.10984C1.68016 3.03951 1.77554 3 1.875 3H4.125C4.22446 3 4.31984 3.03951 4.39016 3.10984C4.46049 3.18016 4.5 3.27554 4.5 3.375C4.5 3.47446 4.46049 3.56984 4.39016 3.64016C4.31984 3.71049 4.22446 3.75 4.125 3.75H2.25V5.625C2.25 5.72446 2.21049 5.81984 2.14016 5.89016C2.06984 5.96049 1.97446 6 1.875 6C1.77554 6 1.68016 5.96049 1.60984 5.89016C1.53951 5.81984 1.5 5.72446 1.5 5.625V3.375ZM10.5 8.625C10.5 8.72446 10.4605 8.81984 10.3902 8.89017C10.3198 8.96049 10.2245 9 10.125 9H7.875C7.77554 9 7.68016 8.96049 7.60983 8.89017C7.53951 8.81984 7.5 8.72446 7.5 8.625C7.5 8.52554 7.53951 8.43016 7.60983 8.35983C7.68016 8.28951 7.77554 8.25 7.875 8.25H9.75V6.375C9.75 6.27554 9.78951 6.18016 9.85983 6.10983C9.93016 6.03951 10.0255 6 10.125 6C10.2245 6 10.3198 6.03951 10.3902 6.10983C10.4605 6.18016 10.5 6.27554 10.5 6.375V8.625Z",fill:"#374151"}));case 15:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??13,height:o??12,viewBox:"0 0 13 12",fill:"none"},React__namespace.createElement("g",{clipPath:"url(#clip0_254_1638)"},React__namespace.createElement("path",{d:"M11.375 4.5H10.25C10.25 4.40054 10.2105 4.30516 10.1402 4.23484C10.0698 4.16451 9.97446 4.125 9.875 4.125H6.875C6.77554 4.125 6.68016 4.16451 6.60983 4.23484C6.53951 4.30516 6.5 4.40054 6.5 4.5H3.5V2.4375C3.5 2.28832 3.55926 2.14524 3.66475 2.03975C3.77024 1.93426 3.91332 1.875 4.0625 1.875C4.21168 1.875 4.35476 1.93426 4.46025 2.03975C4.56574 2.14524 4.625 2.28832 4.625 2.4375C4.625 2.53696 4.66451 2.63234 4.73484 2.70266C4.80516 2.77299 4.90054 2.8125 5 2.8125C5.09946 2.8125 5.19484 2.77299 5.26516 2.70266C5.33549 2.63234 5.375 2.53696 5.375 2.4375C5.375 2.0894 5.23672 1.75556 4.99058 1.50942C4.74444 1.26328 4.4106 1.125 4.0625 1.125C3.7144 1.125 3.38056 1.26328 3.13442 1.50942C2.88828 1.75556 2.75 2.0894 2.75 2.4375V4.5H1.625C1.42609 4.5 1.23532 4.57902 1.09467 4.71967C0.954018 4.86032 0.875 5.05109 0.875 5.25V6.75C0.875 7.44619 1.15156 8.11387 1.64384 8.60616C2.13613 9.09844 2.80381 9.375 3.5 9.375V10.125C3.5 10.2245 3.53951 10.3198 3.60984 10.3902C3.68016 10.4605 3.77554 10.5 3.875 10.5C3.97446 10.5 4.06984 10.4605 4.14016 10.3902C4.21049 10.3198 4.25 10.2245 4.25 10.125V9.375H8.75V10.125C8.75 10.2245 8.78951 10.3198 8.85983 10.3902C8.93016 10.4605 9.02554 10.5 9.125 10.5C9.22446 10.5 9.31984 10.4605 9.39017 10.3902C9.46049 10.3198 9.5 10.2245 9.5 10.125V9.375C10.1962 9.375 10.8639 9.09844 11.3562 8.60616C11.8484 8.11387 12.125 7.44619 12.125 6.75V5.25C12.125 5.05109 12.046 4.86032 11.9053 4.71967C11.7647 4.57902 11.5739 4.5 11.375 4.5ZM9.5 4.875V6.375H7.25V4.875H9.5ZM11.375 6.75C11.375 6.99623 11.3265 7.24005 11.2323 7.46753C11.138 7.69502 10.9999 7.90172 10.8258 8.07583C10.6517 8.24994 10.445 8.38805 10.2175 8.48227C9.99005 8.5765 9.74623 8.625 9.5 8.625H3.5C3.00272 8.625 2.52581 8.42746 2.17417 8.07583C1.82254 7.72419 1.625 7.24728 1.625 6.75V5.25H6.5V6.75C6.5 6.84946 6.53951 6.94484 6.60983 7.01517C6.68016 7.08549 6.77554 7.125 6.875 7.125H9.875C9.97446 7.125 10.0698 7.08549 10.1402 7.01517C10.2105 6.94484 10.25 6.84946 10.25 6.75V5.25H11.375V6.75Z",fill:"#374151"})),React__namespace.createElement("defs",null,React__namespace.createElement("clipPath",{id:"clip0_254_1638"},React__namespace.createElement("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.5)"}))));case 14:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??12,height:o??12,viewBox:"0 0 12 12",fill:"none"},React__namespace.createElement("path",{d:"M3.375 2H8.625C8.97514 1.99998 9.3121 2.13355 9.56715 2.37345C9.82219 2.61335 9.97611 2.94151 9.9975 3.291L10 3.375V5.052C10.2725 5.12937 10.5146 5.28898 10.693 5.50903C10.8714 5.72908 10.9776 5.99885 10.997 6.2815L11 6.375V10.125C11 10.22 10.9639 10.3115 10.899 10.3809C10.8341 10.4503 10.7454 10.4925 10.6506 10.499C10.5558 10.5055 10.4621 10.4757 10.3884 10.4158C10.3146 10.3558 10.2665 10.2701 10.2535 10.176L10.25 10.125V9H1.75V10.125C1.75 10.2156 1.71718 10.3032 1.65762 10.3715C1.59805 10.4398 1.51578 10.4842 1.426 10.4965L1.375 10.5C1.28438 10.5 1.19683 10.4672 1.12853 10.4076C1.06024 10.3481 1.01582 10.2658 1.0035 10.176L1 10.125V6.375C1 5.7455 1.423 5.215 2 5.0515V3.375C1.99998 3.02486 2.13355 2.6879 2.37345 2.43285C2.61335 2.17781 2.94151 2.02389 3.291 2.0025L3.375 2ZM9.625 5.75H2.375C2.22027 5.74993 2.07102 5.80726 1.95612 5.91089C1.84122 6.01452 1.76884 6.15708 1.753 6.311L1.75 6.375V8.25H10.25V6.375C10.2499 6.22036 10.1926 6.07122 10.0889 5.95643C9.98533 5.84164 9.84283 5.76934 9.689 5.7535L9.625 5.75ZM8.625 2.75H3.375C3.22027 2.74993 3.07102 2.80726 2.95612 2.91089C2.84122 3.01452 2.76884 3.15708 2.753 3.311L2.75 3.375V5H3.5C3.5 4.86739 3.55268 4.74021 3.64645 4.64645C3.74021 4.55268 3.86739 4.5 4 4.5H5C5.12247 4.50002 5.24067 4.54498 5.33219 4.62636C5.4237 4.70774 5.48217 4.81987 5.4965 4.9415L5.5 5H6.5C6.5 4.86739 6.55268 4.74021 6.64645 4.64645C6.74021 4.55268 6.86739 4.5 7 4.5H8C8.12247 4.50002 8.24067 4.54498 8.33219 4.62636C8.4237 4.70774 8.48217 4.81987 8.4965 4.9415L8.5 5H9.25V3.375C9.25007 3.22027 9.19274 3.07102 9.08911 2.95612C8.98548 2.84122 8.84292 2.76884 8.689 2.753L8.625 2.75Z",fill:"#374151"}));case 1:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??24,height:o??24,viewBox:"0 0 24 24",fill:"none"},React__namespace.createElement("path",{d:"M12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M16 8V13C16 13.7957 16.3161 14.5587 16.8787 15.1213C17.4413 15.6839 18.2044 16 19 16C19.7957 16 20.5587 15.6839 21.1213 15.1213C21.6839 14.5587 22 13.7957 22 13V12C22 9.74731 21.2394 7.5606 19.8414 5.79417C18.4434 4.02774 16.49 2.78507 14.2975 2.26751C12.1051 1.74995 9.80215 1.98781 7.76178 2.94255C5.72141 3.8973 4.06318 5.51299 3.05574 7.52786C2.0483 9.54274 1.75069 11.8387 2.21111 14.0439C2.67154 16.249 3.86303 18.2341 5.59254 19.6775C7.32205 21.1209 9.48825 21.9381 11.7402 21.9966C13.9921 22.0552 16.1979 21.3516 18 20",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}));case 0:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??24,height:o??24,viewBox:"0 0 24 24",fill:"none"},React__namespace.createElement("path",{d:"M21.9999 16.92V19.92C22.0011 20.1985 21.944 20.4742 21.8324 20.7293C21.7209 20.9845 21.5572 21.2136 21.352 21.4019C21.1468 21.5901 20.9045 21.7335 20.6407 21.8227C20.3769 21.9119 20.0973 21.9451 19.8199 21.92C16.7428 21.5856 13.7869 20.5341 11.1899 18.85C8.77376 17.3147 6.72527 15.2662 5.18993 12.85C3.49991 10.2412 2.44818 7.27099 2.11993 4.18C2.09494 3.90346 2.12781 3.62476 2.21643 3.36162C2.30506 3.09849 2.4475 2.85669 2.6347 2.65162C2.82189 2.44655 3.04974 2.28271 3.30372 2.17052C3.55771 2.05833 3.83227 2.00026 4.10993 2H7.10993C7.59524 1.99522 8.06572 2.16708 8.43369 2.48353C8.80166 2.79998 9.04201 3.23944 9.10993 3.72C9.23656 4.68006 9.47138 5.62272 9.80993 6.53C9.94448 6.88792 9.9736 7.27691 9.89384 7.65088C9.81408 8.02484 9.6288 8.36811 9.35993 8.64L8.08993 9.91C9.51349 12.4135 11.5864 14.4864 14.0899 15.91L15.3599 14.64C15.6318 14.3711 15.9751 14.1858 16.3491 14.1061C16.723 14.0263 17.112 14.0555 17.4699 14.19C18.3772 14.5285 19.3199 14.7634 20.2799 14.89C20.7657 14.9585 21.2093 15.2032 21.5265 15.5775C21.8436 15.9518 22.0121 16.4296 21.9999 16.92Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}));case 6:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??24,height:o??24,viewBox:"0 0 24 24",fill:"none"},React__namespace.createElement("path",{d:"M9 18L15 12L9 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}));case 7:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??24,height:o??24,viewBox:"0 0 24 24",fill:"none",transform:"scale(-1)"},React__namespace.createElement("path",{d:"M9 18L15 12L9 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}));case 2:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??24,height:o??24,viewBox:"0 0 24 24",fill:"none"},React__namespace.createElement("path",{d:"M3 12C3 13.78 3.52784 15.5201 4.51677 17.0001C5.50571 18.4802 6.91131 19.6337 8.55585 20.3149C10.2004 20.9961 12.01 21.1743 13.7558 20.8271C15.5016 20.4798 17.1053 19.6226 18.364 18.364C19.6226 17.1053 20.4798 15.5016 20.8271 13.7558C21.1743 12.01 20.9961 10.2004 20.3149 8.55585C19.6337 6.91131 18.4802 5.50571 17.0001 4.51677C15.5201 3.52784 13.78 3 12 3C9.48395 3.00947 7.06897 3.99122 5.26 5.74L3 8",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M3 3V8H8",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M12 7V12L16 14",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}));case 3:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??24,height:o??24,viewBox:"0 0 24 24",fill:"none"},React__namespace.createElement("path",{d:"M19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M9 8H16",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M8 12H14",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M11 16H16",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}));case 4:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??24,height:o??24,viewBox:"0 0 24 24",fill:"none"},React__namespace.createElement("path",{d:"M3 9L12 2L21 9V20C21 20.5304 20.7893 21.0391 20.4142 21.4142C20.0391 21.7893 19.5304 22 19 22H5C4.46957 22 3.96086 21.7893 3.58579 21.4142C3.21071 21.0391 3 20.5304 3 20V9Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M9 22V12H15V22",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}));default:return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??24,height:o??24,viewBox:"0 0 24 24",fill:"none"},React__namespace.createElement("path",{d:"M3 22H21",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M6 18V11",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M10 18V11",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M14 18V11",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M18 18V11",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M12 2L20 7H4L12 2Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))}}function nl({address:e,soldPrice:t,soldDate:o,bedrooms:a,bathrooms:i,sqft:n,index:s}){let l=o&&isValid$1(new Date(o))?format$1(new Date(o),"MM/dd/yyyy"):"",c=d=>React__namespace.createElement("div",{className:"flex flex-row items-center justify-center"},fe(d.type,d.width,d.height),React__namespace.createElement("p",{className:r("ml-1 text-sm text-primary/90")},d.description));return React__namespace.createElement("li",{key:s,className:r("flex flex-row items-start w-80")},React__namespace.createElement("div",{className:r("w-5 h-5 rounded-full bg-primary text-primary-foreground items-center justify-center flex flex-shrink-0 mouse-pointer")},React__namespace.createElement("span",{className:r("text-xs font-bold")},s+1)),React__namespace.createElement("div",{className:r("flex flex-col ml-2")},!!e&&React__namespace.createElement("h2",{className:r("text-sm text-primary/90 line-clamp-2")},e.toUpperCase()),React__namespace.createElement("div",{className:r("flex flex-row items-end justify-between w-64")},!!a&&React__namespace.createElement(c,{width:16,height:16,type:14,description:`${a} ${pe.BEDS_LABEL}`}),!!i&&React__namespace.createElement(c,{width:18,height:18,type:15,description:`${i} ${pe.BATHS_LABEL}`}),!!n&&React__namespace.createElement(c,{width:16,height:16,type:16,description:`${ft(n)} ${pe.SQFT_LABEL}`})),!!t&&!!o&&React__namespace.createElement("p",{className:r("text-xs font-normal text-primary/70 truncate")},`Sold for ${k(t)} on ${l}`)))}function Sn({className:e}){let t=`flex flex-row items-start h-20 w-80 ${e}`;return React__namespace.createElement("ul",{className:r("flex flex-wrap justify-center mt-10 gap-y-10 gap-x-20")},React__namespace.createElement(S,{className:r(t)}),React__namespace.createElement(S,{className:r(t)}),React__namespace.createElement(S,{className:r(t)}),React__namespace.createElement(S,{className:r(t)}),React__namespace.createElement(S,{className:r(t)}),React__namespace.createElement(S,{className:r(t)}),React__namespace.createElement(S,{className:r(t)}),React__namespace.createElement(S,{className:r(t)}))}function sl({nearbySales:e,isLoading:t,noDataAvailable:o}){return t?React__namespace.createElement(Sn,null):o?React__namespace.createElement(Sn,{className:"animate-none"}):React__namespace.createElement("ul",{className:r("flex flex-wrap justify-center mt-10 gap-y-10 gap-x-20")},e?.map((a,i)=>React__namespace.createElement(nl,{key:i,address:a.address,soldPrice:a.details.lastSoldPrice,soldDate:a.details.lastSoldDate,bedrooms:a.details.beds,bathrooms:a.details.baths,sqft:a.details.livingArea,index:i})))}function ll(e,t,o){class a extends google.maps.OverlayView{constructor(s,l,c){super();this.container=s,this.pane=l,this.position=c;}onAdd(){this.getPanes()?.[this.pane]?.appendChild(this.container);}draw(){let l=this.getProjection().fromLatLngToDivPixel(this.position);l!==null&&(this.container.style.transform=`translate(${l.x}px, ${l.y}px)`);}onRemove(){this.container.parentNode!==null&&this.container.parentNode.removeChild(this.container);}}return new a(e,t,o)}function Ya({position:e,pane:t="floatPane",map:o,zIndex:a,children:i}){let n=React__namespace.useMemo(()=>{let l=document.createElement("div");return l.style.position="absolute",l},[]),s=React__namespace.useMemo(()=>ll(n,t,e),[n,t,e]);return React__namespace.useEffect(()=>(s?.setMap(o),()=>s?.setMap(null)),[o,s]),React__namespace.useEffect(()=>{n.style.zIndex=`${a}`;},[a,n]),ReactDOM.createPortal(i,n)}function vi({size:e=24,fill:t,stroke:o,strokeWidth:a=2}){return React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:`0 0 ${e} ${e}`},React__namespace.createElement("circle",{cx:e/2,cy:e/2,r:e/2-a,fill:t,stroke:o,strokeWidth:a}))}function ml({activity:e,map:t,highlight:o}){let a=e.lat&&typeof e.lat=="string"?parseFloat(e.lat):e.lat,i=e.lng&&typeof e.lng=="string"?parseFloat(e.lng):e.lng;return React__namespace.createElement("div",null,t&&e?.lat&&React__namespace.createElement(Ya,{position:{lat:a,lng:i},map:t,zIndex:o?99:0},React__namespace.createElement("div",{className:"relative"},React__namespace.createElement(vi,{fill:"black",size:36,stroke:"white",strokeWidth:6}),React__namespace.createElement("div",{className:"absolute inset-0 flex items-center justify-center text-white text-xs"},e.label.text))))}var nf=e=>e===index_umdExports.Status.FAILURE?React__namespace.createElement("p",null,"failed"):React__namespace.createElement("p",null,"loading...");React__namespace.memo(({headerTitle:e=pe.HEADER_TITLE,infoTitle:t=pe.DIALOG_TITLE,infoDescription:o=pe.DIALOG_DESCRIPTION,icon:a=React__namespace.createElement(MapPin,null),mapHeight:i=pe.DEFAULT_MAP_HEIGHT,zoomLevel:n=pe.DEFAULT_ZOOM_LEVEL,zoomControl:s=!0,isLoading:l=!1,nearbySales:c,googleApiKey:d=mo})=>{let p=React__namespace.useMemo(()=>({zoom:n,draggable:!1,scrollwheel:!1,fullscreenControl:!1,disableDefaultUI:!0,gestureHandling:"none",zoomControl:s,styles:co,zoomControlOptions:{position:3}}),[n,s]),f=React__namespace.useMemo(()=>{let u=c?.map((b,x)=>({lat:b.coordinates.latitude,lng:b.coordinates.longitude,label:{text:(x+1).toString(),fontSize:"12",color:"white"}})),y=!l&&Array.isArray(c)&&c.length<=0;return React__namespace.createElement(Ke,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":l}),style:{maxHeight:i,height:i}},React__namespace.createElement("div",{className:r("min-h-full h-full w-full")},d&&React__namespace.createElement(index_umdExports.Wrapper,{apiKey:d,render:nf},React__namespace.createElement(Mo,{className:"grow h-full",minZoom:2,maxZoom:18,streetViewControl:!1,mapTypeControl:!1,clickableIcons:!1,centerOnMarker:!0,...p},u?.map(b=>React__namespace.createElement(ml,{key:b.lat,activity:b}))))),y&&React__namespace.createElement(la,null)),React__namespace.createElement(sl,{nearbySales:c,isLoading:l,noDataAvailable:y})))},[c,l,d]);return React__namespace.createElement("div",{className:r("flex flex-col w-full bg-white")},React__namespace.createElement(Qe,{title:e,infoDescription:o,infoTitle:t,icon:a}),f)});format$1(subYears(new Date,1),"yyyy-MM-dd");React__namespace.memo(({isLoading:e=!0})=>e?React__namespace.createElement("div",null,"Loading..."):null);function At(e){let t=Math.floor(e);return parseInt(t.toString(),10)}function Tl({additionalPayment:e,rate:t,originalBalance:o,term:a,loanBalance:i,editedLoanBalance:n,startDate:s}){let l=Math.floor(vf(e,t,o,a,i,n,s));return Number.isNaN(l)?0:l}function Fr(e,t,o){let a=e/12/100;return t*a/(1-Math.pow(1+a,-o))}function kn(e,t,o){let a=t/12/100,i=e,n=a,l=Math.log(i/(i-n*o))/Math.log(1+n);return Math.max(l,0)}function vf(e,t,o,a,i,n,s){let l=Math.floor(a)*12,c=Fr(t,o,l)+e,d=kn(c,t,n),p=c*d;return Ll(t,o,a,i,n,s)-p}function Ll(e,t,o,a,i,n){let s=o*12;return Fr(e,t,s)*Al(i,a,e,o,n,t)}function Al(e,t,o,a,i,n){let s=Math.floor(a)*12;return Math.abs(e-t)>=.9?kn(Fr(o,n,s),o,e):Math.max(s-bf(i),0)}function bf(e){let t=new Date(e),a=Math.abs(new Date().getTime()-t.getTime()),i=Math.floor(a/(1e3*3600*24*30.44));return Math.max(0,i)}function _l({additionalPayment:e,rate:t,term:o,originalBalance:a,editedLoanBalance:i,loanBalance:n,startDate:s}){let l=Rf(e,t,o,a,i,n,s);l=Number.isNaN(l)?0:l;let c=l|0,d=Math.ceil(l%1*12);if(d==12&&(c++,d=0),c||d){let p="";return c&&(p+=c+m.YEAR),c>1&&(p+=m.PLURAL),c&&d&&(p+=m.AND),d&&(p+=d+m.MONTH),d>1&&(p+=m.PLURAL),m.PAY_LITTLE_EXTRA_EARLIER_MESSAGE(p)}else return m.PAY_LITTLE_EXTRA_LENGTH_LOAN_REMAIN_MESSAGE}function Rf(e,t,o,a,i,n,s){let l=Math.floor(o)*12,c=Fr(t,a,l)+e,d=kn(c,t,i);return Math.max((Al(i,n,t,o,s,a)-Math.ceil(d))/12,0)}function Rl({originalBalance:e,term:t,loanBalance:o,startDate:a,editedLoanBalance:i,refinanceNumYears:n,rate:s,currentRate:l}){let c=s/100,d=n*12,p=c/12,u=Nf(i,d,p)*d;return Ll(l,e,t,o,i,a)-u}function Nf(e,t,o){return e*o*Math.pow(1+o,t)/(Math.pow(1+o,t)-1)}function Bn(e,t){return e-t}function Pl({originalBalance:e,term:t,loanBalance:o,startDate:a,editedLoanBalance:i,refinanceFifteenYearRate:n,refinanceThirtyYearRate:s,currentRate:l,firstYearFixed:c,secondYearFixed:d}){let p=Rl({originalBalance:e,term:t,loanBalance:o,startDate:a,editedLoanBalance:i,refinanceNumYears:c,currentRate:l,rate:n}),f=Rl({originalBalance:e,term:t,loanBalance:o,startDate:a,editedLoanBalance:i,refinanceNumYears:d,currentRate:l,rate:s});return {fifteenYearFixedTotalSavings:p,thirtyYearFixedTotalSavings:f}}function Il(e,t,o){let a=o/12;return e*a*Math.pow(1+a,t)/(Math.pow(1+a,t)-1)}function Sl(e,t){let o=e*.35,a=o*10/3,i=Il(o*7/3,30*12,t/100);return {thirtyFivePercentNetworth:o,invesmentPropertyValue:a,invesmentMonthlyPayment:i}}function Cl(e){return e*.06}function wl(e){return e*.1}function Dl(e){return e*.13}function Ml(e){let t=e*.05,o=e*.1;return {feesFirstValue:t,feesSecondValue:o}}function Ol(e,t){let o=e*5/2,a=.5*e,i=Il(2*e,30*12,t/100);return {newHomeValue:o,downPayment:a,monthlyPayment:i}}function kl(e,t){return Math.max(0,Math.floor(Math.floor(e)*.92-Math.floor(t)))}function pa({onSubmitForm:e,closeDialog:t,originalBalance:o,rate:a,loanBalance:i,loanTerm:n,startDate:s}){let l=objectType({startDate:dateType().optional(),loanAmount:stringType().refine(f=>ia(f)>0,{message:m.VALUE_GREATER_THAN_ZERO}),originalBalance:stringType().refine(f=>ia(f)>0,{message:m.VALUE_GREATER_THAN_ZERO}),loanTerm:stringType().refine(f=>parseFloat(f)>0,{message:m.VALUE_GREATER_THAN_ZERO}),rate:stringType().refine(f=>parseFloat(f)>0,{message:m.VALUE_GREATER_THAN_ZERO})}),c=useForm({resolver:t$p(l),defaultValues:{startDate:_n(s),loanAmount:k(i),rate:`${a}`,originalBalance:k(o),loanTerm:`${n}`}});function d(f){e&&e(f),t&&t(!1);}function p(f,u){let y=f.target.value.replace(/[^0-9]/g,""),b=parseFloat(y),x=isNaN(b)?0:b,g=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}).format(x);f.target.value=g,u({...f,target:{...f.target,value:g}});}return React__namespace.createElement(oi,{...c},React__namespace.createElement("form",{onSubmit:c.handleSubmit(d),className:r("flex flex-col items-start w-full gap-8 md:w-[450px] lg:w-[450px]")},React__namespace.createElement("div",{className:r("flex flex-col items-start gap-8 ")},React__namespace.createElement("h2",{className:r("text-lg font-semibold leading-7 text-slate-900")},m.EDIT_MORTGAGE_DETAILS_FORM_TITLE)),React__namespace.createElement("div",{className:r("flex flex-col md:flex-row lg:flex-row gap-4 w-full")},React__namespace.createElement("div",{className:r("flex flex-col flex-1 gap-4")},React__namespace.createElement(mt,{control:c.control,name:"startDate",render:({field:f})=>React__namespace.createElement(ot,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(ct,{htmlFor:"startDate",className:r("text-sm font-medium leading-[14px]")},m.EDIT_MORTGAGE_DETAILS_LOAN_START_DATE_LABEL),React__namespace.createElement(Je,null,React__namespace.createElement(Xr,null,React__namespace.createElement(eo,{asChild:!0},React__namespace.createElement(Je,null,React__namespace.createElement(F,{variant:"outline",className:r("w-[240px] pl-3 text-left font-normal",!f.value&&"text-muted-foreground")},f.value?format$1(f.value,"PPP"):React__namespace.createElement("span",null,"Pick a date"),React__namespace.createElement(Calendar,{className:"ml-auto h-4 w-4 opacity-50"})))),React__namespace.createElement(Ur,{className:"w-auto p-0",align:"start"},React__namespace.createElement($o,{mode:"single",onSelect:f.onChange,initialFocus:!0})))),React__namespace.createElement(Rt,null))}),React__namespace.createElement(mt,{control:c.control,name:"originalBalance",render:({field:f})=>React__namespace.createElement(ot,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(ct,{htmlFor:"originalBalance",className:r("text-sm font-medium leading-[14px]")},m.EDIT_MORTGAGE_DETAILS_ORIGINAL_LOAN_AMOUNT_LABEL),React__namespace.createElement(Je,null,React__namespace.createElement(Xe,{id:"originalBalance",className:r("shadow-none py-2 px-3 text-sm"),...f,onChange:u=>p(u,f.onChange)})),React__namespace.createElement(Rt,null))}),React__namespace.createElement(mt,{control:c.control,name:"loanAmount",render:({field:f})=>React__namespace.createElement(ot,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(ct,{htmlFor:"loanAmount",className:r("text-sm font-medium leading-[14px]")},m.EDIT_MORTGAGE_DETAILS_BALANCE_LABEL),React__namespace.createElement(Je,null,React__namespace.createElement(Xe,{id:"loanAmount",className:r("shadow-none py-2 px-3 text-sm"),...f,onChange:u=>p(u,f.onChange)})),React__namespace.createElement(Rt,null))})),React__namespace.createElement("div",{className:r("flex flex-col gap-4 flex-1")},React__namespace.createElement(mt,{control:c.control,name:"loanTerm",render:({field:f})=>React__namespace.createElement(ot,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(ct,{htmlFor:"loanTerm",className:r("text-sm font-medium leading-[14px]")},m.EDIT_MORTGAGE_DETAILS_LOAN_TERM_LABEL),React__namespace.createElement(Je,null,React__namespace.createElement("div",{className:r("flex flex-row w-full items-center gap-1")},React__namespace.createElement(Xe,{id:"loanTerm",type:"number",className:r("shadow-none py-2 px-3 text-sm"),...f}),React__namespace.createElement(Te,{className:r("py-2 bg-slate-200"),variant:"outline"},m.DESCRIPTION_YEARS_LABEL))),React__namespace.createElement(Rt,null))}),React__namespace.createElement(mt,{control:c.control,name:"rate",render:({field:f})=>React__namespace.createElement(ot,{className:r("flex flex-col items-start gap-2 w-full")},React__namespace.createElement(ct,{htmlFor:"rate",className:"text-sm font-medium leading-[14px]"},m.EDIT_MORTGAGE_DETAILS_INTEREST_RATE_LABEL),React__namespace.createElement(Je,null,React__namespace.createElement("div",{className:r("flex flex-row w-full items-center")},React__namespace.createElement(Xe,{id:"rate",type:"number",className:r("shadow-none py-2 px-3 text-sm"),...f}),React__namespace.createElement(Percent,{className:"h-4"}))),React__namespace.createElement(Rt,null))})),React__namespace.createElement("div",{className:r("flex flex-col items-end lg:items-center md:flex-row lg:flex-row gap-4 md:gap-8 lg:gap-8")})),React__namespace.createElement("div",{className:r("flex flex-row justify-end w-full")},React__namespace.createElement(F,{type:"submit"},m.ACTION_OK_BUTTON_LABEL))))}function Vl(e){let t={};for(let[a,i]of e.entries())t[a]=i;let o=Number(t.property_approximate_value);return isNaN(o)||(t.property_approximate_value=o),t}var Ai=({clientKey:e,apiKey:t,loadingState:o="idle"})=>{let{request:a,isLoading:i}=ne({clientKey:e,apiKey:t,loadingInitialState:o});return {submitFormHandler:s=>{let l=new FormData;l.append("first_name",s.firstname),l.append("last_name",s.lastname),l.append("email",s.email),l.append("phone_number",s.tel),l.append("iam",s.interest),s.message&&l.append("message",s.message),s.approximateValue&&l.append("property_approximate_value",s.approximateValue),s.timeFrame&&l.append("time_frame_for_selling",s.timeFrame),l.append("client_key",s.client_key),s.address&&l.append("home_address",s.address);let c=Vl(l);a({url:s.endpointURL,requestInit:{body:JSON.stringify(c),method:"POST"}});},isLoading:i}};var or=React__namespace.forwardRef(({linkTextColor:e="text-gray-500",icon:t,text:o},a)=>React__namespace.createElement("div",{ref:a,className:r("flex flex-row items-center gap-2")},t&&React__namespace.cloneElement(t,{className:r("h-4 w-4",e,t.props.className)}),React__namespace.createElement("p",{className:r("text-sm hover:cursor-pointer",e)},o)));function go({buttonDescription:e,endpointUrl:t,clientKey:o,apiKey:a}){let[i,n]=React__namespace.useState(!1),[s,l]=React__namespace.useState(!1),{submitFormHandler:c,isLoading:d}=Ai({clientKey:o,apiKey:a}),p="text-gray-500",f=async u=>{l(!1);let y={endpointURL:t,firstname:u.firstName,lastname:u.lastName,tel:u.phoneNumber,email:u.emailAdress,interest:u.iam,address:u.dynamicValues?.at(0)?.homeAddress,approximateValue:u.dynamicValues?.at(1)?.value,timeFrame:u.dynamicValues?.at(2)?.value,message:u.dynamicValues?.at(0)?.value,client_key:o};c(y),n(!1);};return React__namespace.createElement("div",{className:"flex flex-col items-center gap-2"},React__namespace.createElement(Yt,{triggerAsChild:!0,open:i,onOpenChange:()=>{n(!i),l(!1);},trigger:React__namespace.createElement(F,{className:r("text-[14px] font-normal my-5 px-4 py-2")},e),content:React__namespace.createElement(io,{onSubmitForm:f,showCheckbox:!1,isLoading:d,error:s})}),React__namespace.createElement(hr,{title:m.EQUITY_MORTGAGE_DETAILS_DISCLAIMER,trigger:React__namespace.createElement(or,{text:m.EQUITY_MORTGAGE_DETAILS_DISCLAIMER,linkTextColor:p,icon:React__namespace.createElement(BadgeInfo,null)}),content:React__namespace.createElement("p",{className:r("text-justify mb-8")},m.EDIT_MORTGAGE_DETAILS_DISCLAIMER_TEXT)}))}function _i({title:e,description:t,editDetailsAction:o,closeBannerAction:a,originalBalance:i,rate:n,loanBalance:s,loanTerm:l,startDate:c,showActions:d=!0}){let[p,f]=React$1.useState(!1),u="text-gray-700";return React$1.createElement(Or,{className:r("flex flex-col gap-3 bg-gray-50")},React$1.createElement(Info,{className:r("h-5 w-5",u)}),React$1.createElement("div",{className:r("flex flex-col flex-1 items-start gap-2")},React$1.createElement(kr,{className:r("text-lg font-bold leading-6",u)},e),React$1.createElement(ur,{className:r("text-base",u)},t)),d&&i&&n&&s&&l&&c&&React$1.createElement("div",{className:r("flex flex-row flex-1 gap-3 justify-center md:justify-end lg:justify-end")},React$1.createElement(Yt,{open:p,onOpenChange:y=>{f(y);},trigger:React$1.createElement(F,{variant:"outline",className:r("w-[110px] text-sm font-normal")},m.EDIT_DETAILS_LABEL),content:React$1.createElement(pa,{closeDialog:f,onSubmitForm:o,originalBalance:i,rate:n,loanBalance:s,loanTerm:l,startDate:c})}),React$1.createElement(F,{className:r("w-[110px] text-sm font-normal"),onClick:a},m.EQUITY_MORTGAGE_DETAILS_ALL_GOOD_BUTTON)))}function xo({children:e}){return React__namespace.createElement("div",{className:r("shadow-sm py-3 md:py-7 lg:py-7")},e)}function Eo(e){return React__namespace.createElement("div",{className:r("flex items-center w-full my-10 px-3 md:px-10 lg:px-10")},React__namespace.createElement("div",{className:r("flex flex-col gap-2 items-center w-full")},React__namespace.createElement("div",{className:r("flex flex-row gap-2 w-full")},React__namespace.createElement(S,{className:r("h-20 w-full")}),React__namespace.createElement(S,{className:r("h-20 w-full")})),React__namespace.createElement(S,{className:r("flex flex-col items-center justify-center h-48 w-full")})))}function Pi({value:e,textColor:t="text-gray-700"}){return React__namespace.createElement("p",{className:r("text-3xl md:text-6xl lg:text-6xl font-bold",t)},k(e))}function Nr({text:e,textColor:t="text-gray-700",className:o}){return React__namespace.createElement("h1",{className:r("text-lg md:text-2xl text-center lg:text-2xl font-medium",t,o)},e)}function Tr({errorCode:e}){let t="text-gray-600";return React__namespace.createElement("div",{className:r("flex items-center w-full my-10 px-3 md:px-10 lg:px-10")},React__namespace.createElement("div",{className:r("flex flex-col gap-2 items-center w-full")},React__namespace.createElement("div",{className:r("flex flex-row gap-2 w-full")},React__namespace.createElement(S,{className:r("h-20 w-full")}),React__namespace.createElement(S,{className:r("h-20 w-full")})),React__namespace.createElement(S,{className:r("flex flex-col items-center justify-center h-48 w-full")},React__namespace.createElement(Or,{className:r("bg-gray-200 m-3 lg:m-0 md:m-0 w-auto md:w-[40%] lg:w-[30%] border-gray-600")},React__namespace.createElement(AlertTriangle,{className:r("h-5 w-5")}),React__namespace.createElement(kr,{className:r(t)},m.CONFIGURATION_ERROR_LABEL),React__namespace.createElement(ur,{className:r(t)},`${m.CONFIGURATION_ERROR_LABEL}: ${m.CONFIGURATION_ERROR_KEY_EXPIRED_LABEL}`)))))}function Si({title:e,value:t}){return React__namespace.createElement("div",{className:r("flex flex-col items-center gap-2")},React__namespace.createElement("p",{className:r("text-center text-sm font-semibold leading-5")},e),React__namespace.createElement("p",{className:r("text-sm font-normal")},k(t)))}function Yl({homeValue:e,originalBalance:t,rate:o,loanBalance:a,loanTerm:i,startDate:n,netWorth:s}){return React__namespace.createElement("div",{className:r("flex flex-col gap-10 lg:gap-14 md:gap-14 w-auto")},React__namespace.createElement("h2",{className:r("text-lg font-semibold leading-7 text-slate-900")},m.HOW_CALCULATE_TITLE),React__namespace.createElement("div",{className:r("flex flex-col items-center gap-5")},React__namespace.createElement("p",{className:r("text-sm font-normal leading-5")},m.HOW_CALCULATE_DESCRIPTION),React__namespace.createElement("div",{className:r("flex flex-row gap-2 lg:gap-6 md:gap-6")},React__namespace.createElement(Si,{title:m.HOW_CALCULATE_HOME_VALUE_LABEL,value:e}),React__namespace.createElement("p",{className:"self-center text-xs lg:text-sm md:text-sm"},"-"),React__namespace.createElement(Si,{title:m.HOW_CALCULATE_LOAN_BALANCE_LABEL,value:a}),React__namespace.createElement("p",{className:"self-center text-xs lg:text-sm md:text-sm"},"="),React__namespace.createElement(Si,{title:m.HOW_CALCULATE_YOUR_NET_WORTH_LABEL,value:s}))),React__namespace.createElement("div",{className:r("flex flex-col items-center gap-5 mb-14")},React__namespace.createElement("p",{className:r("text-sm font-medium leading-5")},m.HOW_CALCULATE_INFORMATION_SUBTITLE),React__namespace.createElement("p",{className:r("text-sm font-normal leading-5 text-[#64748B]")},m.HOW_CALCULATE_INFORMATION_DESCRIPTION(ze(o),k(t),i,na(n))),React__namespace.createElement("p",{className:r("text-sm font-normal leading-5 text-[#64748B]")},m.HOW_CALCULATE_NOTE_DESCRIPTION)))}function Ci({contactEndpointUrl:e,editDetailsAction:t,homeValue:o,originalBalance:a,rate:i,loanBalance:n,loanTerm:s,startDate:l,netWorth:c,clientKey:d,apiKey:p,headerTitle:f=m.EQUITY_MORTGAGE_DETAILS_HEADER_TITLE,buttonDescription:u=m.ACTION_BUTTON_BEST_OPTION_LABEL,icon:y=React__namespace.createElement(DollarSign,null),errorCode:b=!1,isLoading:x=!1}){let N=!a&&!i&&!n&&!s&&!l&&!x,[g,E]=React__namespace.useState(!0),[v,_]=React__namespace.useState(!1),T=React__namespace.useRef(null),Y=React__namespace.useRef(null),V=React__namespace.useMemo(()=>React__namespace.createElement(Yl,{homeValue:o,originalBalance:a,rate:i,loanBalance:n,loanTerm:s,startDate:l,netWorth:c}),[o,a,i,n,s,l,c]);return React__namespace.createElement("div",{className:r("flex flex-col bg-white")},React__namespace.createElement(Qe,{title:f,titleDescription:m.EQUITY_MORTGAGE_DETAILS_DESCRIPTION,infoDescription:V,icon:y}),x?React__namespace.createElement(Eo,null):b?React__namespace.createElement(Tr,null):N?React__namespace.createElement(Gt,null):React__namespace.createElement(xo,null,React__namespace.createElement(Ke,null,React__namespace.createElement("div",{className:r("flex flex-col items-center gap-10")},g&&React__namespace.createElement(_i,{title:m.EQUITY_MORTGAGE_DETAILS_BANNER_TITLE,description:m.EQUITY_MORTGAGE_DETAILS_BANNER_DESCRIPTION(s,ze(i),k(a),na(l),k(n)),closeBannerAction:()=>E(!1),editDetailsAction:t,originalBalance:a,rate:i,loanBalance:n,loanTerm:s,startDate:l}),React__namespace.createElement("div",{className:r("inline-flex flex-col items-center gap-3")},React__namespace.createElement(Nr,{text:m.EQUITY_MORTGAGE_DETAILS_TITLE}),React__namespace.createElement(Pi,{value:c}),React__namespace.createElement("div",{className:r("flex flex-col md:flex-row lg:flex-row gap-3 items-center justify-around w-full")},React__namespace.createElement(Yt,{open:v,onOpenChange:z=>{_(z);},triggerAsChild:!1,trigger:React__namespace.createElement(or,{ref:T,text:m.EDIT_DETAILS_LABEL,icon:React__namespace.createElement(Edit,null)}),content:React__namespace.createElement(pa,{closeDialog:_,onSubmitForm:t,originalBalance:a,rate:i,loanBalance:n,loanTerm:s,startDate:l})}),React__namespace.createElement(hr,{trigger:React__namespace.createElement(or,{ref:Y,text:m.EQUITY_MORTGAGE_DETAILS_HOW_CALCULATED,icon:React__namespace.createElement(Calculator,null)}),content:V}))))),React__namespace.createElement(Er,null,React__namespace.createElement(go,{endpointUrl:e,buttonDescription:u,clientKey:d,apiKey:p}))))}function fa({editDetailsAction:e,originalBalance:t,rate:o,loanBalance:a,loanTerm:i,startDate:n}){let[s,l]=React__namespace.useState(!1);return React__namespace.createElement("div",{className:r("flex flex-col pl-4 items-start md:items-end lg:items-end gap-2")},React__namespace.createElement("p",{className:r("text-[15px] text-gray-500")},m.PAY_LITTLE_EXTRA_DESCRIPTION(i,ze(o),k(t),na(n))),React__namespace.createElement(Yt,{open:s,onOpenChange:c=>{l(c);},triggerAsChild:!1,trigger:React__namespace.createElement(or,{text:m.EDIT_DETAILS_LABEL,icon:React__namespace.createElement(Edit,null)}),content:React__namespace.createElement(pa,{closeDialog:l,onSubmitForm:e,originalBalance:t,rate:o,loanBalance:a,loanTerm:i,startDate:n})}))}function za({text:e,children:t,moreText:o,textColor:a="text-gray-700"}){return React__namespace.createElement("p",{className:r("text-base md:text-lg lg:text-lg text-center",a)},e,t,o)}function zl(e){return React__namespace.createElement("div",{className:r("flex flex-col gap-10 lg:gap-14 md:gap-14 w-auto pb-5")},React__namespace.createElement("h2",{className:r("text-lg font-semibold leading-7 text-slate-900")},m.WHY_PAY_MORE_LABEL),React__namespace.createElement("div",{className:r("flex flex-col items-center gap-5")},React__namespace.createElement("p",{className:r("text-sm text-center font-medium leading-5")},m.PAY_LITTLE_EXTRA_PAYING_EXTRA),React__namespace.createElement("p",{className:r("text-sm text-center font-normal leading-5")},m.PAY_LITTLE_EXTRA_PAYING_EXTRA_DESCRIPTION),React__namespace.createElement("p",{className:r("text-sm font-normal leading-5")},m.PAY_LITTLE_EXTRA_PAYING_EXTRA_BEST_PART),React__namespace.createElement("p",{className:r("text-sm text-center font-normal leading-5 text-[#64748B]")},React__namespace.createElement("span",{className:"text-black font-bold"},m.PAY_LITTLE_EXTRA_PAYING_EXTRA_IMPORTANT_TIP),m.PAY_LITTLE_EXTRA_PAYING_EXTRA_IMPORTANT_TIP_DESCRIPTION)))}function Wl({rate:e,originalBalance:t,term:o,loanBalance:a,editedLoanBalance:i,startDate:n,minValue:s=100,maxValue:l=2e3}){let[d,p]=React__namespace.useState(s),f=Tl({additionalPayment:d,rate:e,originalBalance:t,term:o,loanBalance:a,editedLoanBalance:i,startDate:n});return React__namespace.createElement("div",{className:r("flex flex-col items-center gap-3 ")},React__namespace.createElement("div",{className:r("flex flex-col items-center w-full md:w-[550px] lg:w-[550px] gap-4 md:gap-7 lg:gap-7")},React__namespace.createElement(Nr,{text:m.PAY_LITTLE_EXTRA_SUBTITLE}),React__namespace.createElement(En,{onValueChange:u=>{p(u[0]);},defaultValue:[s],min:s,max:l,step:100}),React__namespace.createElement("div",{className:"flex flex-row w-full justify-between"},React__namespace.createElement(za,{text:k(s)}),React__namespace.createElement(za,{text:k(l)})),React__namespace.createElement("div",{className:r("flex flex-col items-center gap-4")},React__namespace.createElement(za,{text:m.PAY_LITTLE_EXTRA_CALCULATION_IF_YOU_PAY,children:React__namespace.createElement("span",{className:r("font-extrabold text-base md:text-lg lg:text-lg text-center text-gray-700")},k(d)),moreText:m.PAY_LITTLE_EXTRA_CALCULATION_MORE}),React__namespace.createElement(Pi,{value:f}),React__namespace.createElement(za,{text:m.PAY_LITTLE_EXTRA_CALCULATION_DESCRIPTION}),React__namespace.createElement("div",{className:r("flex flex-col items-center gap-4")},React__namespace.createElement(_i,{showActions:!1,title:m.EARLY_LOAN_LABEL,description:_l({additionalPayment:d,rate:e,term:o,originalBalance:t,editedLoanBalance:i,loanBalance:a,startDate:n})}),React__namespace.createElement(hr,{trigger:React__namespace.createElement(or,{text:m.LEARN_MORE_LABEL,icon:React__namespace.createElement(BookOpen,null)}),content:React__namespace.createElement(zl,null)})))))}function wi({errorCode:e,contactEndpointUrl:t,editDetailsAction:o,originalBalance:a,rate:i,loanBalance:n,editedLoanBalance:s,loanTerm:l,startDate:c,headerTitle:d=m.PAY_LITTLE_EXTRA_HEADER_TITLE,buttonDescription:p=m.ACTION_BUTTON_BEST_OPTION_LABEL,icon:f=React__namespace.createElement(DollarSign,null),minValue:u,maxValue:y,isLoading:b,clientKey:x,apiKey:N}){let g=!a&&!i&&!n&&!l&&!c&&!b;return React__namespace.createElement("div",{className:r("flex flex-col bg-white")},React__namespace.createElement(Qe,{title:d,icon:f,showInfo:!1,actions:React__namespace.createElement(fa,{editDetailsAction:o,originalBalance:a,rate:i,loanBalance:s,loanTerm:l,startDate:c}),showActions:!b&&!g}),b?React__namespace.createElement(Eo,null):e?React__namespace.createElement(Tr,null):g?React__namespace.createElement(Gt,null):React__namespace.createElement(xo,null,React__namespace.createElement(Ke,null,React__namespace.createElement(Wl,{rate:i,originalBalance:a,term:l,loanBalance:n,editedLoanBalance:s,startDate:c,minValue:u,maxValue:y})),React__namespace.createElement(Er,null,React__namespace.createElement(go,{endpointUrl:t,buttonDescription:p,clientKey:x,apiKey:N}))))}function jl({rate:e,totalSavings:t,monthlySavings:o}){let a=t===0,i=t>0,n=o===0,s=o>0,l=k(Math.abs(o));return React__namespace.createElement("div",{className:r("flex flex-col items-center gap-3 w-full")},React__namespace.createElement("p",null,ze(e)," ",m.RATE," "),a?React__namespace.createElement("div",{className:r("flex flex-row items-center gap-1")},React__namespace.createElement(ArrowRight,{strokeWidth:4,className:r("text-blue-700 h-5")}),React__namespace.createElement("p",null,m.REFINANCE_OPTIONS_NO_SAVINGS_MESSAGE)):i?React__namespace.createElement("div",{className:r("flex flex-row items-center gap-1")},React__namespace.createElement(Check,{strokeWidth:4,className:r("text-green-700 h-5")}),React__namespace.createElement("p",null,m.REFINANCE_OPTIONS_LONG_TERM_MESSAGE(m.REFINANCE_OPTIONS_SAVINGS_LABEL))):React__namespace.createElement("div",{className:r("flex flex-row items-center gap-1")},React__namespace.createElement(X$2,{strokeWidth:4,className:r("text-red-700 h-5")}),React__namespace.createElement("p",null,m.REFINANCE_OPTIONS_LONG_TERM_MESSAGE(m.REFINANCE_OPTIONS_LOSS_LABEL))),n?React__namespace.createElement(d$2,{className:r("w-full h-24"),title:m.REFINANCE_OPTIONS_NO_CHANGE_LABEL,icon:AlertTriangle,color:"blue"},m.REFINANCE_OPTIONS_PAYMENTS_NOCHANGE_MESSAGE):s?React__namespace.createElement(d$2,{className:r("w-full h-24"),title:m.REFINANCE_OPTIONS_GO_DOWN_LABEL,icon:TrendingDown,color:"emerald"},m.REFINANCE_OPTIONS_PAYMENT_PER_MONTH_DESCRIPTION(m.REFINANCE_OPTIONS_DOWN_LABEL,l)):React__namespace.createElement(d$2,{className:r("w-full h-24"),title:m.REFINANCE_OPTIONS_GO_UP_LABEL,icon:TrendingUp,color:"red"},m.REFINANCE_OPTIONS_PAYMENT_PER_MONTH_DESCRIPTION(m.REFINANCE_OPTIONS_UP_LABEL,l)))}function Ot({title:e,value:t,rate:o,totalSavings:a,monthlySavings:i,learnMoreContent:n,learnMoreTitle:s,className:l,borderColor:c,textColor:d="text-gray-700"}){return React__namespace.createElement(No,{className:r("flex flex-col items-center w-72 px-0 shadow-lg bg-gray-50 ",d,l,c?`border border-l-4 ${c==="green"?"border-l-green-700":c==="yellow"?"border-l-yellow-500":"border-l-red-800"}`:"")},React__namespace.createElement(To,null,React__namespace.createElement(Nr,{text:e,className:"font-normal"})),React__namespace.createElement(Lo,{className:r("flex flex-col items-center gap-3 w-full")},React__namespace.createElement("p",{className:r(" text-3xl font-semibold",d)},k(At(t))),o&&a&&i&&React__namespace.createElement(jl,{totalSavings:a,monthlySavings:At(i),rate:o})),React__namespace.createElement(Ao,null,React__namespace.createElement(hr,{title:s,trigger:React__namespace.createElement(or,{text:m.LEARN_MORE_LABEL,icon:React__namespace.createElement(BookOpen,null)}),content:n})))}function Di({errorCode:e,contactEndpointUrl:t,editDetailsAction:o,refinanceFifteenYearRate:a,refinanceThirtyYearRate:i,originalBalance:n,rate:s,loanBalance:l,editedLoanBalance:c,loanTerm:d,startDate:p,clientKey:f,apiKey:u,headerTitle:y=m.REFINANCE_OPTIONS_HEADER_TITLE,buttonDescription:b=m.ACTION_BUTTON_BEST_OPTION_LABEL,icon:x=React__namespace.createElement(DollarSign,null),firstYearFixed:N=15,secondYearFixed:g=30,isLoading:E=!1}){let v=!n&&!s&&!l&&!d&&!p&&!E,{fifteenYearFixedTotalSavings:_,thirtyYearFixedTotalSavings:T}=Pl({originalBalance:n,term:d,loanBalance:l,startDate:p,editedLoanBalance:c,refinanceFifteenYearRate:a,refinanceThirtyYearRate:i,currentRate:s,firstYearFixed:N,secondYearFixed:g}),Y=React__namespace.useMemo(()=>React__namespace.createElement("div",{className:r("text-justify"),dangerouslySetInnerHTML:{__html:m.REFINANCE_OPTIONS_LEARN_MORE_DESCRIPTION}}),[]),V=React__namespace.useMemo(()=>E?React__namespace.createElement(Eo,null):e?React__namespace.createElement(Tr,null):v?React__namespace.createElement(Gt,null):React__namespace.createElement(xo,null,React__namespace.createElement(Ke,null,React__namespace.createElement("div",{className:r("flex flex-col items-center gap-10 pb-4")},React__namespace.createElement(Nr,{text:m.REFINANCE_OPTIONS_HEADER_SUBTITLE}),React__namespace.createElement("div",{className:r("flex flex-wrap items-center justify-center gap-3")},React__namespace.createElement(Ot,{title:m.REFINANCE_OPTIONS_FIFTEEN_YEAR_FIXED_LABEL,totalSavings:_,monthlySavings:Bn(Fr(s,n,Math.floor(d)*12),Fr(a,c,N*12)),value:_,rate:a,learnMoreContent:Y}),React__namespace.createElement(Ot,{title:m.REFINANCE_OPTIONS_THIRTY_YEAR_FIXED_LABEL,totalSavings:T,monthlySavings:Bn(Fr(s,n,Math.floor(d)*12),Fr(i,c,g*12)),value:T,rate:i,learnMoreContent:Y})))),React__namespace.createElement(Er,null,React__namespace.createElement(go,{endpointUrl:t,buttonDescription:b,clientKey:f,apiKey:u}))),[_,T,a,i,N,g]);return React__namespace.createElement("div",{className:r("flex flex-col bg-white")},React__namespace.createElement(Qe,{title:y,icon:x,showInfo:!1,actions:React__namespace.createElement(fa,{editDetailsAction:o,originalBalance:n,rate:s,loanBalance:c,loanTerm:d,startDate:p}),showActions:!E&&!v}),V)}function Vn({slides:e,className:t}){let[o,a]=React__namespace.useState(0),i=e.length>1&&o>0,n=e.length>1&&o<e.length-1,s=()=>{a(p=>(p+1)%e.length);},l=()=>{a(p=>(p-1+e.length)%e.length);},c=React__namespace.useMemo(()=>React__namespace.createElement(F,{disabled:!i,className:r("rounded-full py-1 px-1 md:py-6 lg:py-6 md:px-3 lg:px-3 shadow-none border-black border-2 disabled:blur-3xl"),variant:"outline",onClick:l},fe(7)),[i]),d=React__namespace.useMemo(()=>React__namespace.createElement(F,{disabled:!n,className:r("rounded-full py-1 px-1 md:py-6 lg:py-6 md:px-3 lg:px-3 shadow-none border-black border-2 disabled:blur-3xl "),variant:"outline",onClick:s},fe(6)),[n]);return React__namespace.createElement("div",{className:r("flex flex-col lg:flex-row md:flex-row justify-center items-center gap-8 w-full",t)},React__namespace.createElement("div",{className:r("hidden md:block lg:block")},c),React__namespace.createElement("div",{className:" w-full lg:w-[600px] lg:h-[460px] md:w-[600px] md:h-[460px]"},e[o]),React__namespace.createElement("div",{className:r("hidden md:block lg:block")},d),React__namespace.createElement("div",{className:r("flex flex-row w-full justify-between lg:hidden md:hidden")},c,d))}function Lr({headline:e,details:t}){return React__namespace.createElement("div",{className:r("flex flex-col gap-6 pb-5")},React__namespace.createElement("p",null,e),React__namespace.createElement("ul",{className:"flex flex-col gap-2 pl-6 list-disc"},t&&t.map((o,a)=>React__namespace.createElement("li",{className:r("text-gray-600"),key:a},o))))}function Mi({text:e,color:t,tootipText:o}){return React__namespace.createElement("div",{className:r("flex flex-row justify-center items-center gap-2")},React__namespace.createElement("span",{className:r("h-3 w-3 rounded-sm flex-shrink-0",t==="green"?"bg-green-700":t==="yellow"?"bg-yellow-500":"bg-red-800")}),React__namespace.createElement("p",null,e),React__namespace.createElement(jo,null,React__namespace.createElement(Qr,null,React__namespace.createElement(Zr,{asChild:!0},React__namespace.createElement(Info,{stroke:"gray",className:r("h-4 w-4 hover:cursor-pointer")})),React__namespace.createElement(Dr,null,React__namespace.createElement("p",null,o)))))}function Oi({text:e,link:t,linkText:o}){return React__namespace.createElement("p",null,e,"(",React__namespace.createElement("a",{className:r("text-blue-500"),target:"_blank",href:t},o),")")}function ki({errorCode:e,contactEndpointUrl:t,editDetailsAction:o,originalBalance:a,homeValue:i,rate:n,refinanceThirtyYearRate:s,editedLoanBalance:l,loanTerm:c,startDate:d,networth:p,clientKey:f,apiKey:u,headerTitle:y=m.USING_YOUR_EQUITY_HEADER_TITLE,buttonDescription:b=m.ACTION_BUTTON_BEST_OPTION_LABEL,icon:x=React__namespace.createElement(DollarSign,null),isLoading:N=!1}){let g=!a&&!n&&!l&&!c&&!d&&!N,{newHomeValue:E,downPayment:v,monthlyPayment:_}=Ol(p,s),{feesFirstValue:T,feesSecondValue:Y}=Ml(i),V=kl(i,l),z=Dl(p),{thirtyFivePercentNetworth:h,invesmentPropertyValue:O,invesmentMonthlyPayment:j}=Sl(p,s),J=[React__namespace.createElement(Ot,{key:0,value:E,title:m.USING_EQUITY_BUY_NEW_HOME,borderColor:"green",learnMoreTitle:m.USING_EQUITY_BUY_NEW_HOME,learnMoreContent:React__namespace.createElement(Lr,{headline:m.USING_EQUITY_BUY_NEW_HOME_DIALOG_HEADLINE(k(At(v)),k(At(E))),details:[m.USING_EQUITY_MONTHLY_PRINCIPAL_INTEREST(ze(s),k(At(_))),m.USING_EQUITY_GET_MORE_SQUARE_FOOTAGE,m.USING_EQUITY_REMINDER(k(T),k(Y))]})}),React__namespace.createElement(Ot,{key:1,value:V,title:m.USING_EQUITY_SELL_CASH,borderColor:"green",learnMoreTitle:m.USING_EQUITY_SELL_CASH,learnMoreContent:React__namespace.createElement(Lr,{headline:m.USING_EQUITY_SELL_CASH_HEADLINE(k(At(V))),details:[m.USING_EQUITY_SELL_CASH_DESCRIPTION_1,m.USING_EQUITY_SELL_CASH_DESCRIPTION_2,m.USING_EQUITY_SELL_CASH_DESCRIPTION_3,m.USING_EQUITY_REMINDER(k(T),k(Y)),m.USING_EQUITY_CONSULT_TAX_ADVISOR]})}),React__namespace.createElement(Ot,{key:2,value:O,title:m.USING_EQUITY_BUY_INVESMENT_PROPERTY,borderColor:"green",learnMoreTitle:m.USING_EQUITY_INVESMENT_PROPERTY,learnMoreContent:React__namespace.createElement(Lr,{headline:m.USING_EQUITY_INVESMENT_PROPERTY_HEADLINE(k(At(h)),k(At(O))),details:[m.USING_EQUITY_MONTHLY_PRINCIPAL_INTEREST(ze(s),k(At(j))),m.USING_EQUITY_RENTAL_INCOME,m.USING_EQUITY_EXPENSES_DEDUCTED,m.USING_EQUITY_LANDLORD,m.USING_EQUITY_CONSULT_A_LOAN_OFFICER]})}),React__namespace.createElement(Ot,{key:3,value:wl(p),title:m.USING_EQUITY_HOME_IMPROVEMENTS,borderColor:"yellow",learnMoreTitle:m.USING_EQUITY_HOME_IMPROVEMENTS,learnMoreContent:React__namespace.createElement(Lr,{headline:m.USING_EQUITY_HOME_INPROVEMENTS_HEADLINE,details:[m.USING_EQUITY_HOME_INPROVEMENTS_TAX_DEDUCTIBLE,m.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_DOOR,m.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_SUNROOM,m.USING_EQUITY_HOME_INPROVEMENTS_GARAGE_SOURCE]})}),React__namespace.createElement(Ot,{key:4,value:48e3,title:m.USING_EQUITY_LIVABLE_SPACE,borderColor:"green",learnMoreTitle:m.USING_EQUITY_LIVABLE_SPACE,learnMoreContent:React__namespace.createElement(Lr,{headline:m.USING_EQUITY_LIVABLE_SPACE_HEADLINE,details:[React__namespace.createElement(Oi,{text:m.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_1,linkText:m.HOME_GUIDE,link:m.HOME_GUIDE_URL}),m.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_2,m.USING_EQUITY_LIVABLE_SPACE_DESCRIPTION_3,m.USING_EQUITY_CONSULT_TAX_ADVISOR]})}),React__namespace.createElement(Ot,{key:5,value:z,title:m.USING_EQUITY_EMERGENCY_FUND,borderColor:"green",learnMoreTitle:m.USING_EQUITY_EMERGENCY_FUND,learnMoreContent:React__namespace.createElement(Lr,{headline:m.USING_EQUITY_EMERGENCY_FUND_HEADLINE,details:[m.USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_1(k(p),k(z)),m.USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_2,m.USING_EQUITY_EMERGENCY_FUND_DESCRIPTION_3]})}),React__namespace.createElement(Ot,{key:6,value:7e3,title:m.USING_EQUITY_CREDIT_CARD_DEBT,borderColor:"green",learnMoreTitle:m.USING_EQUITY_CREDIT_CARD_DEBT,learnMoreContent:React__namespace.createElement(Lr,{headline:React__namespace.createElement(Oi,{text:m.USING_EQUITY_CREDIT_DEBT_HEADLINE,linkText:m.EL_ISSA,link:m.EL_ISSA_URL}),details:[m.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_1,m.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_2,m.USING_EQUITY_CREDIT_DEBT_DESCRIPTION_3]})}),React__namespace.createElement(Ot,{key:7,value:Cl(p),title:m.USING_EQUITY_VACATION,borderColor:"red",learnMoreTitle:m.USING_EQUITY_VACATION,learnMoreContent:React__namespace.createElement(Lr,{headline:m.USING_EQUITY_VACATION_HEADLINE,details:[m.USING_EQUITY_LIVABLE_SPACE,m.USING_EQUITY_CREDIT_CARD_DEBT,m.USING_EQUITY_BUY_INVESMENT_PROPERTY]})}),React__namespace.createElement(Ot,{key:8,value:3e4,title:m.USING_EQUITY_STUDENT_LOANS,borderColor:"yellow",learnMoreTitle:m.USING_EQUITY_STUDENT_LOANS,learnMoreContent:React__namespace.createElement(Lr,{headline:React__namespace.createElement(Oi,{text:m.USING_EQUITY_STUDENT_LOANS_HEADLINE,linkText:m.TICAS,link:m.TICAS_URL}),details:[m.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_1,m.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_2,m.USING_EQUITY_STUDENT_LOANS_DESCRIPTION_3]})})];return React__namespace.createElement("div",{className:r("flex flex-col bg-white")},React__namespace.createElement(Qe,{title:y,icon:x,showInfo:!1,actions:React__namespace.createElement(fa,{editDetailsAction:o,originalBalance:a,rate:n,loanBalance:l,loanTerm:c,startDate:d}),showActions:!N&&!g}),N?React__namespace.createElement(Eo,null):e?React__namespace.createElement(Tr,null):g?React__namespace.createElement(Gt,null):React__namespace.createElement(xo,null,React__namespace.createElement(Ke,null,React__namespace.createElement("div",{className:r("flex flex-col items-center gap-10 pb-4")},React__namespace.createElement(Nr,{text:m.USING_YOUR_EQUITY_SUBTITLE(k(p))}),React__namespace.createElement("div",{className:r("flex flex-col lg:flex-row md:flex-row gap-3 lg:gap-9 md:gap-9")},React__namespace.createElement(Mi,{text:m.EXCELENT_INVESTMENT,color:"green",tootipText:m.EXCELENT_INVESTMENT_DESCRIPTION}),React__namespace.createElement(Mi,{text:m.MODERATE_INVESTMENT,color:"yellow",tootipText:m.MODERATE_INVESTMENT_DESCRIPTION}),React__namespace.createElement(Mi,{text:m.POOR_INVESTMENT,color:"red",tootipText:m.POOR_INVESTMENT_DESCRIPTION})),React__namespace.createElement("div",{className:r("block md:hidden lg:hidden")},React__namespace.createElement(Vn,{slides:J})),React__namespace.createElement("div",{className:r("hidden md:block lg:block")},React__namespace.createElement(Vn,{slides:[React__namespace.createElement("div",{className:"grid grid-cols-2 grid-rows-2 gap-8"},J.slice(0,4)),React__namespace.createElement("div",{className:"grid grid-cols-2 grid-rows-2 gap-8"},J.slice(4,8)),React__namespace.createElement("div",{className:"flex flex-col items-center"},J[8])]})))),React__namespace.createElement(Er,null,React__namespace.createElement(go,{endpointUrl:t,buttonDescription:b,clientKey:f,apiKey:u}))))}React__namespace.memo(Ci);React__namespace.memo(wi);React__namespace.memo(Di);React__namespace.memo(ki);var lr=(i=>(i[i.listingOpportunities=0]="listingOpportunities",i[i.listingWins=1]="listingWins",i[i.listingClosed=2]="listingClosed",i[i.lostOpportunities=3]="lostOpportunities",i))(lr||{});function ku(e,t){let[o,a]=React__namespace.useState(e);return React__namespace.useEffect(()=>{let i=setTimeout(()=>a(e),t||100);return ()=>{clearTimeout(i);}},[e,t]),o}function Qa(e,t){if(e.length===0)return {};if(!t)return {"":e};let o={};return e.forEach(a=>{let i=a[t]||"";o[i]||(o[i]=[]),o[i].push(a);}),o}function Bu(e,t){let o=JSON.parse(JSON.stringify(e));for(let[a,i]of Object.entries(o))o[a]=i.filter(n=>!t.find(s=>s.value===n.value));return o}var Tm=React__namespace.forwardRef(({className:e,...t},o)=>T$5(i=>i.filtered.count===0)?React__namespace.createElement("div",{ref:o,className:r("py-6 text-center text-sm",e),"cmdk-empty":"",role:"presentation",...t}):null);Tm.displayName="CommandEmpty";var Lm=React__namespace.forwardRef(({value:e,onChange:t,placeholder:o,defaultOptions:a=[],options:i,delay:n,onSearch:s,loadingIndicator:l,emptyIndicator:c,maxSelected:d=Number.MAX_SAFE_INTEGER,onMaxSelected:p,hidePlaceholderWhenSelected:f,disabled:u,groupBy:y,className:b,selectFirstItem:x=!0,creatable:N=!1,triggerSearchOnFocus:g=!1,alwaysSelected:E=!1,isLoading:v=!1,commandProps:_,inputProps:T},Y)=>{let V=React__namespace.useRef(null),[z,h]=React__namespace.useState(!1),[O,j]=React__namespace.useState(!1),[J,Ee]=React__namespace.useState(!0),[C,Pe]=React__namespace.useState(e||[]),[ve,De]=React__namespace.useState(Qa(a,y)),[st,lt]=React__namespace.useState(""),It=ku(st,n||100);React__namespace.useImperativeHandle(Y,()=>({selectedValue:[...C],input:V.current}),[C]);let Kt=React__namespace.useCallback(re=>{let rt=C.filter(oe=>oe.value!==re.value);Pe(rt),t?.(rt);},[C]);React__namespace.useEffect(()=>{e&&Pe(e);},[e]),React__namespace.useEffect(()=>{if(!i||s)return;let re=Qa(i||[],y);JSON.stringify(re)!==JSON.stringify(ve)&&De(re);},[a,i,y,s,ve]),React__namespace.useEffect(()=>{V.current?.focus();let re=async()=>{j(!0);let oe=await s?.(It);De(Qa(oe||[],y)),j(!1);};(async()=>{!s||!z||(g&&await re(),It?(await re(),Ee(!1)):Ee(!0));})();},[It,z]);let Ir=()=>{if(!N)return;let re=React__namespace.createElement(Jt,{value:st,className:"cursor-pointer",onMouseDown:rt=>{rt.preventDefault(),rt.stopPropagation();},onSelect:rt=>{if(C.length>=d){p?.(C.length);return}lt("");let oe=[...C,{value:rt,label:rt}];Pe(oe),t?.(oe);}},`Create "${st}"`);if(!s&&st.length>0||s&&It.length>0&&!O)return re},yt=React__namespace.useCallback(()=>{if(c)return s&&!N&&Object.keys(ve).length===0?React__namespace.createElement(Jt,{value:"-",disabled:!0},c):React__namespace.createElement(Tm,null,c)},[N,c,s,ve]),dr=React__namespace.useMemo(()=>Bu(ve,C),[ve,C]),pr=React__namespace.useCallback(()=>{if(_?.filter)return _.filter;if(N)return (re,rt)=>re.toLowerCase().includes(rt.toLowerCase())?1:-1},[N,_?.filter]);return React__namespace.createElement(Jo,{..._,onKeyDown:re=>{_?.onKeyDown?.(re);},className:r("overflow-visible bg-transparent",_?.className),shouldFilter:_?.shouldFilter!==void 0?_.shouldFilter:!s,filter:pr()},React__namespace.createElement(jo,null,React__namespace.createElement(Qr,null,React__namespace.createElement(Zr,{asChild:!0},React__namespace.createElement("button",{onClick:()=>{!u&&!v&&h(!0);}},React__namespace.createElement("div",{className:r("group rounded-md border border-input h-10 bg-white text-sm py-3 px-2 shadow-md",b)},React__namespace.createElement("div",{className:"flex flex-row overflow-hidden gap-1 items-center justify-start "},v&&React__namespace.createElement(Ht,{className:"h-3 text-gray-800 p-0 m-0"}),f&&C.length!==0?"":React__namespace.createElement("p",{className:"text-xs text-gray-500 "},o),C.length>0&&React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("div",{className:"w-28"},React__namespace.createElement("p",{className:"text-xs text-ellipsis overflow-hidden whitespace-nowrap self-center"},C[0].label!==""?C[0].label:C[0].value)),C.length>1&&React__namespace.createElement("p",{className:"text-xs text-ellipsis overflow-hidden whitespace-nowrap self-center"},`+ ${C.length-1}`)))))),C.length>0&&!z&&React__namespace.createElement(Dr,{className:"bg-gray-50 text-gray-700"},React__namespace.createElement("p",{className:"whitespace-normal w-40"},C.map(re=>re.label!==""?re.label:re.value).join(", "))))),React__namespace.createElement("div",{className:"relative mt-2"},z&&React__namespace.createElement(_a,{className:"absolute top-0 z-10 w-full rounded-md border bg-popover text-popover-foreground shadow-md outline-none animate-in "},React__namespace.createElement("div",{className:"bg-gray-100 flex flex-row w-full mb-2 items-center justify-center static "},React__namespace.createElement(Search,{className:"h-4 ml-1 text-gray-500"}),React__namespace.createElement(Le$2.Input,{...T,ref:V,value:st,disabled:u,onValueChange:re=>{lt(re),T?.onValueChange?.(re);},onBlur:re=>{O||(lt(""),h(!1),T?.onBlur?.(re),Ee(!0));},onFocus:re=>{De(Qa(a,y)),g&&s?.(It),T?.onFocus?.(re),re.preventDefault(),re.stopPropagation();},placeholder:"Search...",className:r(" bg-gray-100 ml-1 w-full py-4 text-xs outline-none placeholder:text-muted-foreground",T?.className)})),O?React__namespace.createElement(React__namespace.Fragment,null,l):React__namespace.createElement(React__namespace.Fragment,null,yt(),Ir(),!x&&React__namespace.createElement(Jt,{value:"-",className:"hidden"}),Object.entries(dr).map(([re,rt])=>React__namespace.createElement(Pa,{key:re,heading:re,className:"h-full overflow-auto gap-2"},React__namespace.createElement(React__namespace.Fragment,null,J&&C.map(oe=>React__namespace.createElement(Jt,{key:oe.value,value:oe.value,disabled:oe.disable,onMouseDown:Sr=>{Sr.preventDefault(),Sr.stopPropagation();},onSelect:()=>{E&&C.length===1||Kt(oe);},className:r("h-full w-full ")},React__namespace.createElement("div",{className:"bg-blue-100 h-full rounded-md w-full p-2"},oe.label!==""?oe.label:oe.value))),rt.map(oe=>React__namespace.createElement(Jt,{key:oe.value,value:oe.value,disabled:oe.disable,onMouseDown:Sr=>{Sr.preventDefault(),Sr.stopPropagation();},onSelect:()=>{if(C.length>=d){if(d===1){lt(""),Pe([]);let es=[oe];Pe(es),t?.(es);}p?.(C.length);return}lt("");let Sr=[...C,oe];Pe(Sr),t?.(Sr),Ee(!0),De(Qa(a,y));},className:r("cursor-pointer",oe.disable&&"cursor-default text-muted-foreground")},oe.label!==""?oe.label:oe.value)))))))))});Lm.displayName="MultipleSelector";var Qn=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement(u$c,{ref:o,className:r("",e),...t}));Qn.displayName=u$c.displayName;var Zn=React__namespace.forwardRef(({className:e,...t},o)=>React__namespace.createElement(i,{ref:o,className:r("",e),...t}));Zn.displayName=i.displayName;var Xn=(h=>(h[h.garage_permit=0]="garage_permit",h[h.deck_permit=1]="deck_permit",h[h.addon_permit=2]="addon_permit",h[h.investor_2_4=3]="investor_2_4",h[h.homeowner_heloc=4]="homeowner_heloc",h[h.homeowner_mortgage_arm=5]="homeowner_mortgage_arm",h[h.homeowner_refinance=6]="homeowner_refinance",h[h.homeowner_cash_out_refinance=7]="homeowner_cash_out_refinance",h[h.homeowner_paid_off_mortgage=8]="homeowner_paid_off_mortgage",h[h.home_equity_loan=9]="home_equity_loan",h[h.mortgage_refinance=10]="mortgage_refinance",h[h.home_seller=11]="home_seller",h[h.solar_energy_permit=12]="solar_energy_permit",h[h.new_construction_permit=13]="new_construction_permit",h[h.pool_permit=14]="pool_permit",h[h.roof_permit=15]="roof_permit",h[h.remodel_permit=16]="remodel_permit",h[h.homebuyer=17]="homebuyer",h[h.homebuyer_cash=18]="homebuyer_cash",h[h.renter=19]="renter",h[h.professional=20]="professional",h[h.investor=21]="investor",h[h.investor_5_9=22]="investor_5_9",h[h.investor_10=23]="investor_10",h[h.homeowner=24]="homeowner",h))(Xn||{});
76964
+
76965
+ var t=p$e(Fb,{props:{zipcode:"string",url:"string",zoomLevel:"number",zoomControl:"boolean",googleApiKey:"string",clientKey:"string",apiKey:"string"}});customElements&&customElements.define("heat-map",t);
76990
76966
 
76991
76967
  }));
76992
76968
  //# sourceMappingURL=heatmap.js.map