@homlista-devs/ui 1.3.1 → 1.4.0

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.
@@ -1,82 +1,87 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),A=require("react"),Lt=require("effector-react"),xe=require("effector");function Tt(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,o.get?o:{enumerable:!0,get:()=>e[s]})}}return r.default=e,Object.freeze(r)}const v=Tt(A);function Te(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function $t(...e){return r=>{let s=!1;const o=e.map(a=>{const n=Te(a,r);return!s&&typeof n=="function"&&(s=!0),n});if(s)return()=>{for(let a=0;a<o.length;a++){const n=o[a];typeof n=="function"?n():Te(e[a],null)}}}}function Vt(e){const r=_t(e),s=v.forwardRef((o,a)=>{const{children:n,...l}=o,i=v.Children.toArray(n),c=i.find(Gt);if(c){const d=c.props.children,m=i.map(u=>u===c?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:u);return t.jsx(r,{...l,ref:a,children:v.isValidElement(d)?v.cloneElement(d,void 0,m):null})}return t.jsx(r,{...l,ref:a,children:n})});return s.displayName=`${e}.Slot`,s}var Ft=Vt("Slot");function _t(e){const r=v.forwardRef((s,o)=>{const{children:a,...n}=s;if(v.isValidElement(a)){const l=Ot(a),i=Bt(n,a.props);return a.type!==v.Fragment&&(i.ref=o?$t(o,l):l),v.cloneElement(a,i)}return v.Children.count(a)>1?v.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Dt=Symbol("radix.slottable");function Gt(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Dt}function Bt(e,r){const s={...r};for(const o in r){const a=e[o],n=r[o];/^on[A-Z]/.test(o)?a&&n?s[o]=(...i)=>{const c=n(...i);return a(...i),c}:a&&(s[o]=a):o==="style"?s[o]={...a,...n}:o==="className"&&(s[o]=[a,n].filter(Boolean).join(" "))}return{...e,...s}}function Ot(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function We(e){var r,s,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(s=We(e[r]))&&(o&&(o+=" "),o+=s)}else for(s in e)e[s]&&(o&&(o+=" "),o+=s);return o}function He(){for(var e,r,s=0,o="",a=arguments.length;s<a;s++)(e=arguments[s])&&(r=We(e))&&(o&&(o+=" "),o+=r);return o}const Ee="-",Wt=e=>{const r=Ut(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{const i=l.split(Ee);return i[0]===""&&i.length!==1&&i.shift(),Ue(i,r)||Ht(l)},getConflictingClassGroupIds:(l,i)=>{const c=s[l]||[];return i&&o[l]?[...c,...o[l]]:c}}},Ue=(e,r)=>{if(e.length===0)return r.classGroupId;const s=e[0],o=r.nextPart.get(s),a=o?Ue(e.slice(1),o):void 0;if(a)return a;if(r.validators.length===0)return;const n=e.join(Ee);return r.validators.find(({validator:l})=>l(n))?.classGroupId},$e=/^\[(.+)\]$/,Ht=e=>{if($e.test(e)){const r=$e.exec(e)[1],s=r?.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},Ut=e=>{const{theme:r,classGroups:s}=e,o={nextPart:new Map,validators:[]};for(const a in s)Me(s[a],o,a,r);return o},Me=(e,r,s,o)=>{e.forEach(a=>{if(typeof a=="string"){const n=a===""?r:Ve(r,a);n.classGroupId=s;return}if(typeof a=="function"){if(qt(a)){Me(a(o),r,s,o);return}r.validators.push({validator:a,classGroupId:s});return}Object.entries(a).forEach(([n,l])=>{Me(l,Ve(r,n),s,o)})})},Ve=(e,r)=>{let s=e;return r.split(Ee).forEach(o=>{s.nextPart.has(o)||s.nextPart.set(o,{nextPart:new Map,validators:[]}),s=s.nextPart.get(o)}),s},qt=e=>e.isThemeGetter,Xt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,o=new Map;const a=(n,l)=>{s.set(n,l),r++,r>e&&(r=0,o=s,s=new Map)};return{get(n){let l=s.get(n);if(l!==void 0)return l;if((l=o.get(n))!==void 0)return a(n,l),l},set(n,l){s.has(n)?s.set(n,l):a(n,l)}}},Se="!",Pe=":",Zt=Pe.length,Kt=e=>{const{prefix:r,experimentalParseClassName:s}=e;let o=a=>{const n=[];let l=0,i=0,c=0,d;for(let y=0;y<a.length;y++){let k=a[y];if(l===0&&i===0){if(k===Pe){n.push(a.slice(c,y)),c=y+Zt;continue}if(k==="/"){d=y;continue}}k==="["?l++:k==="]"?l--:k==="("?i++:k===")"&&i--}const m=n.length===0?a:a.substring(c),u=Qt(m),h=u!==m,C=d&&d>c?d-c:void 0;return{modifiers:n,hasImportantModifier:h,baseClassName:u,maybePostfixModifierPosition:C}};if(r){const a=r+Pe,n=o;o=l=>l.startsWith(a)?n(l.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(s){const a=o;o=n=>s({className:n,parseClassName:a})}return o},Qt=e=>e.endsWith(Se)?e.substring(0,e.length-1):e.startsWith(Se)?e.substring(1):e,Jt=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const a=[];let n=[];return o.forEach(l=>{l[0]==="["||r[l]?(a.push(...n.sort(),l),n=[]):n.push(l)}),a.push(...n.sort()),a}},Yt=e=>({cache:Xt(e.cacheSize),parseClassName:Kt(e),sortModifiers:Jt(e),...Wt(e)}),er=/\s+/,tr=(e,r)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:a,sortModifiers:n}=r,l=[],i=e.trim().split(er);let c="";for(let d=i.length-1;d>=0;d-=1){const m=i[d],{isExternal:u,modifiers:h,hasImportantModifier:C,baseClassName:y,maybePostfixModifierPosition:k}=s(m);if(u){c=m+(c.length>0?" "+c:c);continue}let P=!!k,E=o(P?y.substring(0,k):y);if(!E){if(!P){c=m+(c.length>0?" "+c:c);continue}if(E=o(y),!E){c=m+(c.length>0?" "+c:c);continue}P=!1}const z=n(h).join(":"),w=C?z+Se:z,S=w+E;if(l.includes(S))continue;l.push(S);const M=a(E,P);for(let F=0;F<M.length;++F){const R=M[F];l.push(w+R)}c=m+(c.length>0?" "+c:c)}return c};function rr(){let e=0,r,s,o="";for(;e<arguments.length;)(r=arguments[e++])&&(s=qe(r))&&(o&&(o+=" "),o+=s);return o}const qe=e=>{if(typeof e=="string")return e;let r,s="";for(let o=0;o<e.length;o++)e[o]&&(r=qe(e[o]))&&(s&&(s+=" "),s+=r);return s};function sr(e,...r){let s,o,a,n=l;function l(c){const d=r.reduce((m,u)=>u(m),e());return s=Yt(d),o=s.cache.get,a=s.cache.set,n=i,i(c)}function i(c){const d=o(c);if(d)return d;const m=tr(c,s);return a(c,m),m}return function(){return n(rr.apply(null,arguments))}}const L=e=>{const r=s=>s[e]||[];return r.isThemeGetter=!0,r},Xe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ze=/^\((?:(\w[\w-]*):)?(.+)\)$/i,or=/^\d+\/\d+$/,ar=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ir=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,se=e=>or.test(e),N=e=>!!e&&!Number.isNaN(Number(e)),X=e=>!!e&&Number.isInteger(Number(e)),ke=e=>e.endsWith("%")&&N(e.slice(0,-1)),U=e=>ar.test(e),dr=()=>!0,ur=e=>nr.test(e)&&!ir.test(e),Ke=()=>!1,mr=e=>lr.test(e),fr=e=>cr.test(e),pr=e=>!f(e)&&!p(e),gr=e=>ae(e,Ye,Ke),f=e=>Xe.test(e),Y=e=>ae(e,et,ur),je=e=>ae(e,vr,N),Fe=e=>ae(e,Qe,Ke),hr=e=>ae(e,Je,fr),pe=e=>ae(e,tt,mr),p=e=>Ze.test(e),ce=e=>ne(e,et),xr=e=>ne(e,wr),_e=e=>ne(e,Qe),br=e=>ne(e,Ye),yr=e=>ne(e,Je),ge=e=>ne(e,tt,!0),ae=(e,r,s)=>{const o=Xe.exec(e);return o?o[1]?r(o[1]):s(o[2]):!1},ne=(e,r,s=!1)=>{const o=Ze.exec(e);return o?o[1]?r(o[1]):s:!1},Qe=e=>e==="position"||e==="percentage",Je=e=>e==="image"||e==="url",Ye=e=>e==="length"||e==="size"||e==="bg-size",et=e=>e==="length",vr=e=>e==="number",wr=e=>e==="family-name",tt=e=>e==="shadow",kr=()=>{const e=L("color"),r=L("font"),s=L("text"),o=L("font-weight"),a=L("tracking"),n=L("leading"),l=L("breakpoint"),i=L("container"),c=L("spacing"),d=L("radius"),m=L("shadow"),u=L("inset-shadow"),h=L("text-shadow"),C=L("drop-shadow"),y=L("blur"),k=L("perspective"),P=L("aspect"),E=L("ease"),z=L("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...S(),p,f],F=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],b=()=>[p,f,c],_=()=>[se,"full","auto",...b()],W=()=>[X,"none","subgrid",p,f],te=()=>["auto",{span:["full",X,p,f]},X,p,f],q=()=>[X,"auto",p,f],re=()=>["auto","min","max","fr",p,f],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...b()],G=()=>[se,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],x=()=>[e,p,f],de=()=>[...S(),_e,Fe,{position:[p,f]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ie=()=>["auto","cover","contain",br,gr,{size:[p,f]}],le=()=>[ke,ce,Y],T=()=>["","none","full",d,p,f],j=()=>["",N,ce,Y],$=()=>["solid","dashed","dotted","double"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>[N,ke,_e,Fe],Le=()=>["","none",y,p,f],ue=()=>["none",N,p,f],me=()=>["none",N,p,f],we=()=>[N,p,f],fe=()=>[se,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[U],breakpoint:[U],color:[dr],container:[U],"drop-shadow":[U],ease:["in","out","in-out"],font:[pr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[U],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[U],shadow:[U],spacing:["px",N],text:[U],"text-shadow":[U],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",se,f,p,P]}],container:["container"],columns:[{columns:[N,f,p,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:M()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[X,"auto",p,f]}],basis:[{basis:[se,"full","auto",i,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[N,se,"auto","initial","none",f]}],grow:[{grow:["",N,p,f]}],shrink:[{shrink:["",N,p,f]}],order:[{order:[X,"first","last","none",p,f]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[i,"screen",...G()]}],"min-w":[{"min-w":[i,"screen","none",...G()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[l]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",s,ce,Y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,p,je]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ke,f]}],"font-family":[{font:[xr,f,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,p,f]}],"line-clamp":[{"line-clamp":[N,"none",p,je]}],leading:[{leading:[n,...b()]}],"list-image":[{"list-image":["none",p,f]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",p,f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:[N,"from-font","auto",p,Y]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[N,"auto",p,f]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p,f]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",p,f]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:ie()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},X,p,f],radial:["",p,f],conic:[X,p,f]},yr,hr]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":j()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$(),"hidden","none"]}],"divide-style":[{divide:[...$(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...$(),"none","hidden"]}],"outline-offset":[{"outline-offset":[N,p,f]}],"outline-w":[{outline:["",N,ce,Y]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",m,ge,pe]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",u,ge,pe]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[N,Y]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",h,ge,pe]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[N,p,f]}],"mix-blend":[{"mix-blend":[...H(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":H()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[N]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[p,f]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[N]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:ie()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",p,f]}],filter:[{filter:["","none",p,f]}],blur:[{blur:Le()}],brightness:[{brightness:[N,p,f]}],contrast:[{contrast:[N,p,f]}],"drop-shadow":[{"drop-shadow":["","none",C,ge,pe]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",N,p,f]}],"hue-rotate":[{"hue-rotate":[N,p,f]}],invert:[{invert:["",N,p,f]}],saturate:[{saturate:[N,p,f]}],sepia:[{sepia:["",N,p,f]}],"backdrop-filter":[{"backdrop-filter":["","none",p,f]}],"backdrop-blur":[{"backdrop-blur":Le()}],"backdrop-brightness":[{"backdrop-brightness":[N,p,f]}],"backdrop-contrast":[{"backdrop-contrast":[N,p,f]}],"backdrop-grayscale":[{"backdrop-grayscale":["",N,p,f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N,p,f]}],"backdrop-invert":[{"backdrop-invert":["",N,p,f]}],"backdrop-opacity":[{"backdrop-opacity":[N,p,f]}],"backdrop-saturate":[{"backdrop-saturate":[N,p,f]}],"backdrop-sepia":[{"backdrop-sepia":["",N,p,f]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",p,f]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[N,"initial",p,f]}],ease:[{ease:["linear","initial",E,p,f]}],delay:[{delay:[N,p,f]}],animate:[{animate:["none",z,p,f]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,p,f]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":["scale-3d"],skew:[{skew:we()}],"skew-x":[{"skew-x":we()}],"skew-y":[{"skew-y":we()}],transform:[{transform:[p,f,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":["translate-none"],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",p,f]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",p,f]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[N,ce,Y,je]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},jr=sr(kr);function g(...e){return jr(He(e))}const De=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ge=He,K=(e,r)=>s=>{var o;if(r?.variants==null)return Ge(e,s?.class,s?.className);const{variants:a,defaultVariants:n}=r,l=Object.keys(a).map(d=>{const m=s?.[d],u=n?.[d];if(m===null)return null;const h=De(m)||De(u);return a[d][h]}),i=s&&Object.entries(s).reduce((d,m)=>{let[u,h]=m;return h===void 0||(d[u]=h),d},{}),c=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((d,m)=>{let{class:u,className:h,...C}=m;return Object.entries(C).every(y=>{let[k,P]=y;return Array.isArray(P)?P.includes({...n,...i}[k]):{...n,...i}[k]===P})?[...d,u,h]:d},[]);return Ge(e,l,c,s?.class,s?.className)},Nr=K("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Z=v.forwardRef(({className:e,variant:r,size:s,asChild:o=!1,disabled:a,...n},l)=>{const i=o?Ft:"button";return t.jsx(i,{className:g(Nr({variant:r,size:s,className:e})),ref:l,type:n.type||"button",disabled:a,"aria-disabled":a?"true":void 0,...n})});Z.displayName="Button";const Cr=e=>{switch(e){case"h1":return"text-4xl font-bold leading-tight tracking-tight";case"h2":return"text-3xl font-bold leading-tight tracking-tight";case"h3":return"text-2xl font-semibold leading-tight tracking-normal";case"h4":return"text-xl font-semibold leading-snug tracking-normal";case"h5":return"text-lg font-medium leading-snug tracking-normal";case"h6":return"text-base font-medium leading-normal tracking-normal";case"body":return"text-base font-normal leading-normal";case"body-sm":return"text-sm font-normal leading-normal";case"body-lg":return"text-lg font-normal leading-relaxed";case"caption":return"text-xs font-normal leading-normal tracking-wide";case"label":return"text-sm font-medium leading-normal tracking-wide";default:return"text-base font-normal leading-normal"}},Mr=e=>{switch(e){case"primary":return"text-foreground";case"secondary":return"text-muted-foreground";case"muted":return"text-muted-foreground";case"error":return"text-destructive";case"success":return"text-success";case"warning":return"text-warning";default:return"text-foreground"}},Sr=e=>{switch(e){case"light":return"font-light";case"normal":return"font-normal";case"medium":return"font-medium";case"semibold":return"font-semibold";case"bold":return"font-bold";default:return""}},Pr=e=>{switch(e){case"left":return"text-left";case"center":return"text-center";case"right":return"text-right";case"justify":return"text-justify";default:return"text-left"}},I=({variant:e="body",color:r="primary",weight:s,align:o="left",truncate:a=!1,children:n,className:l,as:i,...c})=>{const d=i||Er(e),m=g("m-0",Cr(e),Mr(r),Sr(s),Pr(o),a&&"truncate",l);return t.jsx(d,{className:m,...c,children:n})};function Er(e){switch(e){case"h1":return"h1";case"h2":return"h2";case"h3":return"h3";case"h4":return"h4";case"h5":return"h5";case"h6":return"h6";default:return"p"}}const Ir=e=>{switch(e){case"sm":return"p-4";case"md":return"p-6";case"lg":return"p-8";default:return"p-0"}},zr=e=>{switch(e){case"sm":return"shadow-sm";case"md":return"shadow-md";case"lg":return"shadow-lg";default:return"shadow-none"}},Rr=e=>{switch(e){case"sm":return"rounded-sm";case"md":return"rounded-md";case"lg":return"rounded-lg";default:return"rounded-none"}},Ie=({children:e,title:r,subtitle:s,className:o,padding:a="md",shadow:n="md",borderRadius:l="md",onClick:i})=>{const c=!!i,d=g("bg-card",Ir(a),zr(n),Rr(l),"transition-all duration-200 ease-in-out",c&&"cursor-pointer hover:-translate-y-0.5 hover:shadow-lg active:translate-y-0",o);return t.jsxs("div",{className:d,onClick:i,children:[(r||s)&&t.jsxs("div",{className:"mb-4",children:[r&&t.jsx("div",{className:"mb-2",children:t.jsx(I,{variant:"h3",children:r})}),s&&t.jsx("div",{className:"text-muted-foreground",children:t.jsx(I,{variant:"body-sm",color:"muted",children:s})})]}),t.jsx("div",{className:"flex-1",children:e})]})},Ar=({children:e})=>t.jsx("div",{className:"mt-4 pt-4 border-t border-border",children:e}),Lr=Object.assign(Ie,{Footer:Ar}),Tr=e=>{switch(e){case"sm":return"max-w-md";case"md":return"max-w-2xl";case"lg":return"max-w-4xl";case"xl":return"max-w-6xl";default:return"max-w-2xl"}},rt=({isOpen:e,onClose:r,title:s,children:o,size:a="md",showCloseButton:n=!0,closeOnOverlayClick:l=!0,closeOnEscape:i=!0})=>{const c=A.useRef(null);if(A.useEffect(()=>{if(!e||!i)return;const y=k=>{k.key==="Escape"&&r()};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[e,i,r]),A.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),A.useEffect(()=>{e&&c.current&&c.current.focus()},[e]),!e)return null;const d=g("fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4"),m=g("bg-card rounded-lg shadow-xl w-full max-h-[90vh] overflow-hidden flex flex-col",Tr(a)),u=g("p-6 border-b border-border flex items-center justify-between"),h=g("p-6 overflow-y-auto flex-1"),C=g("bg-none border-none text-xl cursor-pointer text-muted-foreground p-1 rounded-sm flex items-center justify-center hover:bg-accent hover:text-accent-foreground focus:outline-2 focus:outline-primary focus:outline-offset-2");return t.jsx("div",{className:d,onClick:l?r:void 0,children:t.jsxs("div",{ref:c,className:m,onClick:y=>y.stopPropagation(),tabIndex:-1,role:"dialog","aria-modal":"true","aria-labelledby":s?"modal-title":void 0,children:[(s||n)&&t.jsxs("div",{className:u,children:[s&&t.jsx(I,{variant:"h3",className:"text-foreground",children:s}),n&&t.jsx("button",{onClick:r,"aria-label":"Close modal",className:C,children:"×"})]}),t.jsx("div",{className:h,children:o})]})})},st=({children:e,actions:r,...s})=>t.jsxs(rt,{...s,children:[t.jsx("div",{className:"p-6 overflow-y-auto flex-1",children:e}),r&&t.jsx("div",{className:"p-6 border-t border-border flex justify-end gap-3",children:r})]}),$r=({isOpen:e,onClose:r,onConfirm:s,title:o,message:a,confirmText:n="Confirm",cancelText:l="Cancel"})=>t.jsx(st,{isOpen:e,onClose:r,title:o,actions:t.jsxs(t.Fragment,{children:[t.jsx(Z,{variant:"secondary",onClick:r,children:l}),t.jsx(Z,{variant:"default",onClick:s,children:n})]}),children:t.jsx(I,{children:a})}),Vr=K(["flex w-full rounded-md border bg-background px-3 py-2","text-base 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-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{variant:{default:["border-input","focus-visible:ring-primary"],error:["border-destructive","focus-visible:ring-destructive"],success:["border-success","focus-visible:ring-success"]},inputSize:{sm:"h-8 text-sm",default:"h-10",lg:"h-12 text-lg"}},defaultVariants:{variant:"default",inputSize:"default"}}),Fr=K(["block text-sm font-medium mb-1.5","transition-colors"],{variants:{variant:{default:"text-foreground",error:"text-destructive",success:"text-success"},required:{true:"after:content-['*'] after:ml-0.5 after:text-destructive",false:""}},defaultVariants:{variant:"default",required:!1}}),_r=K("mt-1.5 text-sm",{variants:{variant:{default:"text-muted-foreground",error:"text-destructive",success:"text-success"}},defaultVariants:{variant:"default"}}),ee=v.forwardRef(({className:e,containerClassName:r,labelClassName:s,variant:o,inputSize:a,label:n,helperText:l,error:i,required:c,prefix:d,suffix:m,id:u,...h},C)=>{const y=v.useId(),k=u||y,P=`${k}-helper`,E=`${k}-error`,z=i?"error":o,w=i||l;return t.jsxs("div",{className:g("w-full",r),children:[n&&t.jsx("label",{htmlFor:k,className:g(Fr({variant:z,required:c}),s),children:n}),t.jsxs("div",{className:"relative",children:[d&&t.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:d}),t.jsx("input",{id:k,ref:C,className:g(Vr({variant:z,inputSize:a}),d&&"pl-10",m&&"pr-10",e),"aria-invalid":i?"true":"false","aria-describedby":w?i?E:P:void 0,...h}),m&&t.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:m})]}),w&&t.jsx("p",{id:i?E:P,className:_r({variant:z}),role:i?"alert":void 0,children:w})]})});ee.displayName="Input";/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),R=require("react"),_t=require("effector-react"),ve=require("effector");function Dt(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,o.get?o:{enumerable:!0,get:()=>e[s]})}}return r.default=e,Object.freeze(r)}const x=Dt(R);function Ve(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function Gt(...e){return r=>{let s=!1;const o=e.map(a=>{const n=Ve(a,r);return!s&&typeof n=="function"&&(s=!0),n});if(s)return()=>{for(let a=0;a<o.length;a++){const n=o[a];typeof n=="function"?n():Ve(e[a],null)}}}}function Bt(e){const r=Wt(e),s=x.forwardRef((o,a)=>{const{children:n,...l}=o,i=x.Children.toArray(n),c=i.find(qt);if(c){const d=c.props.children,u=i.map(m=>m===c?x.Children.count(d)>1?x.Children.only(null):x.isValidElement(d)?d.props.children:null:m);return t.jsx(r,{...l,ref:a,children:x.isValidElement(d)?x.cloneElement(d,void 0,u):null})}return t.jsx(r,{...l,ref:a,children:n})});return s.displayName=`${e}.Slot`,s}var Ht=Bt("Slot");function Wt(e){const r=x.forwardRef((s,o)=>{const{children:a,...n}=s;if(x.isValidElement(a)){const l=Zt(a),i=Xt(n,a.props);return a.type!==x.Fragment&&(i.ref=o?Gt(o,l):l),x.cloneElement(a,i)}return x.Children.count(a)>1?x.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Ut=Symbol("radix.slottable");function qt(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ut}function Xt(e,r){const s={...r};for(const o in r){const a=e[o],n=r[o];/^on[A-Z]/.test(o)?a&&n?s[o]=(...i)=>{const c=n(...i);return a(...i),c}:a&&(s[o]=a):o==="style"?s[o]={...a,...n}:o==="className"&&(s[o]=[a,n].filter(Boolean).join(" "))}return{...e,...s}}function Zt(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function Ze(e){var r,s,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(s=Ze(e[r]))&&(o&&(o+=" "),o+=s)}else for(s in e)e[s]&&(o&&(o+=" "),o+=s);return o}function Je(){for(var e,r,s=0,o="",a=arguments.length;s<a;s++)(e=arguments[s])&&(r=Ze(e))&&(o&&(o+=" "),o+=r);return o}const Re="-",Jt=e=>{const r=Qt(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{const i=l.split(Re);return i[0]===""&&i.length!==1&&i.shift(),Ke(i,r)||Kt(l)},getConflictingClassGroupIds:(l,i)=>{const c=s[l]||[];return i&&o[l]?[...c,...o[l]]:c}}},Ke=(e,r)=>{if(e.length===0)return r.classGroupId;const s=e[0],o=r.nextPart.get(s),a=o?Ke(e.slice(1),o):void 0;if(a)return a;if(r.validators.length===0)return;const n=e.join(Re);return r.validators.find(({validator:l})=>l(n))?.classGroupId},_e=/^\[(.+)\]$/,Kt=e=>{if(_e.test(e)){const r=_e.exec(e)[1],s=r?.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},Qt=e=>{const{theme:r,classGroups:s}=e,o={nextPart:new Map,validators:[]};for(const a in s)Ee(s[a],o,a,r);return o},Ee=(e,r,s,o)=>{e.forEach(a=>{if(typeof a=="string"){const n=a===""?r:De(r,a);n.classGroupId=s;return}if(typeof a=="function"){if(Yt(a)){Ee(a(o),r,s,o);return}r.validators.push({validator:a,classGroupId:s});return}Object.entries(a).forEach(([n,l])=>{Ee(l,De(r,n),s,o)})})},De=(e,r)=>{let s=e;return r.split(Re).forEach(o=>{s.nextPart.has(o)||s.nextPart.set(o,{nextPart:new Map,validators:[]}),s=s.nextPart.get(o)}),s},Yt=e=>e.isThemeGetter,er=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,o=new Map;const a=(n,l)=>{s.set(n,l),r++,r>e&&(r=0,o=s,s=new Map)};return{get(n){let l=s.get(n);if(l!==void 0)return l;if((l=o.get(n))!==void 0)return a(n,l),l},set(n,l){s.has(n)?s.set(n,l):a(n,l)}}},ze="!",Ie=":",tr=Ie.length,rr=e=>{const{prefix:r,experimentalParseClassName:s}=e;let o=a=>{const n=[];let l=0,i=0,c=0,d;for(let v=0;v<a.length;v++){let k=a[v];if(l===0&&i===0){if(k===Ie){n.push(a.slice(c,v)),c=v+tr;continue}if(k==="/"){d=v;continue}}k==="["?l++:k==="]"?l--:k==="("?i++:k===")"&&i--}const u=n.length===0?a:a.substring(c),m=sr(u),g=m!==u,j=d&&d>c?d-c:void 0;return{modifiers:n,hasImportantModifier:g,baseClassName:m,maybePostfixModifierPosition:j}};if(r){const a=r+Ie,n=o;o=l=>l.startsWith(a)?n(l.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(s){const a=o;o=n=>s({className:n,parseClassName:a})}return o},sr=e=>e.endsWith(ze)?e.substring(0,e.length-1):e.startsWith(ze)?e.substring(1):e,or=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const a=[];let n=[];return o.forEach(l=>{l[0]==="["||r[l]?(a.push(...n.sort(),l),n=[]):n.push(l)}),a.push(...n.sort()),a}},ar=e=>({cache:er(e.cacheSize),parseClassName:rr(e),sortModifiers:or(e),...Jt(e)}),nr=/\s+/,ir=(e,r)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:a,sortModifiers:n}=r,l=[],i=e.trim().split(nr);let c="";for(let d=i.length-1;d>=0;d-=1){const u=i[d],{isExternal:m,modifiers:g,hasImportantModifier:j,baseClassName:v,maybePostfixModifierPosition:k}=s(u);if(m){c=u+(c.length>0?" "+c:c);continue}let P=!!k,T=o(P?v.substring(0,k):v);if(!T){if(!P){c=u+(c.length>0?" "+c:c);continue}if(T=o(v),!T){c=u+(c.length>0?" "+c:c);continue}P=!1}const z=n(g).join(":"),w=j?z+ze:z,M=w+T;if(l.includes(M))continue;l.push(M);const S=a(T,P);for(let A=0;A<S.length;++A){const E=S[A];l.push(w+E)}c=u+(c.length>0?" "+c:c)}return c};function lr(){let e=0,r,s,o="";for(;e<arguments.length;)(r=arguments[e++])&&(s=Qe(r))&&(o&&(o+=" "),o+=s);return o}const Qe=e=>{if(typeof e=="string")return e;let r,s="";for(let o=0;o<e.length;o++)e[o]&&(r=Qe(e[o]))&&(s&&(s+=" "),s+=r);return s};function cr(e,...r){let s,o,a,n=l;function l(c){const d=r.reduce((u,m)=>m(u),e());return s=ar(d),o=s.cache.get,a=s.cache.set,n=i,i(c)}function i(c){const d=o(c);if(d)return d;const u=ir(c,s);return a(c,u),u}return function(){return n(lr.apply(null,arguments))}}const L=e=>{const r=s=>s[e]||[];return r.isThemeGetter=!0,r},Ye=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,et=/^\((?:(\w[\w-]*):)?(.+)\)$/i,dr=/^\d+\/\d+$/,ur=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oe=e=>dr.test(e),C=e=>!!e&&!Number.isNaN(Number(e)),J=e=>!!e&&Number.isInteger(Number(e)),Se=e=>e.endsWith("%")&&C(e.slice(0,-1)),X=e=>ur.test(e),gr=()=>!0,xr=e=>mr.test(e)&&!pr.test(e),tt=()=>!1,br=e=>fr.test(e),yr=e=>hr.test(e),vr=e=>!f(e)&&!h(e),wr=e=>ne(e,ot,tt),f=e=>Ye.test(e),ee=e=>ne(e,at,xr),Me=e=>ne(e,Sr,C),Ge=e=>ne(e,rt,tt),kr=e=>ne(e,st,yr),he=e=>ne(e,nt,br),h=e=>et.test(e),de=e=>ie(e,at),jr=e=>ie(e,Mr),Be=e=>ie(e,rt),Nr=e=>ie(e,ot),Cr=e=>ie(e,st),ge=e=>ie(e,nt,!0),ne=(e,r,s)=>{const o=Ye.exec(e);return o?o[1]?r(o[1]):s(o[2]):!1},ie=(e,r,s=!1)=>{const o=et.exec(e);return o?o[1]?r(o[1]):s:!1},rt=e=>e==="position"||e==="percentage",st=e=>e==="image"||e==="url",ot=e=>e==="length"||e==="size"||e==="bg-size",at=e=>e==="length",Sr=e=>e==="number",Mr=e=>e==="family-name",nt=e=>e==="shadow",Pr=()=>{const e=L("color"),r=L("font"),s=L("text"),o=L("font-weight"),a=L("tracking"),n=L("leading"),l=L("breakpoint"),i=L("container"),c=L("spacing"),d=L("radius"),u=L("shadow"),m=L("inset-shadow"),g=L("text-shadow"),j=L("drop-shadow"),v=L("blur"),k=L("perspective"),P=L("aspect"),T=L("ease"),z=L("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...M(),h,f],A=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],b=()=>[h,f,c],_=()=>[oe,"full","auto",...b()],U=()=>[J,"none","subgrid",h,f],re=()=>["auto",{span:["full",J,h,f]},J,h,f],Z=()=>[J,"auto",h,f],se=()=>["auto","min","max","fr",h,f],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...b()],B=()=>[oe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],y=()=>[e,h,f],ue=()=>[...M(),Be,Ge,{position:[h,f]}],Ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],le=()=>["auto","cover","contain",Nr,wr,{size:[h,f]}],ce=()=>[Se,de,ee],$=()=>["","none","full",d,h,f],N=()=>["",C,de,ee],F=()=>["solid","dashed","dotted","double"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>[C,Se,Be,Ge],Oe=()=>["","none",v,h,f],me=()=>["none",C,h,f],pe=()=>["none",C,h,f],Ce=()=>[C,h,f],fe=()=>[oe,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[X],breakpoint:[X],color:[gr],container:[X],"drop-shadow":[X],ease:["in","out","in-out"],font:[vr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[X],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[X],shadow:[X],spacing:["px",C],text:[X],"text-shadow":[X],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",oe,f,h,P]}],container:["container"],columns:[{columns:[C,f,h,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[J,"auto",h,f]}],basis:[{basis:[oe,"full","auto",i,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[C,oe,"auto","initial","none",f]}],grow:[{grow:["",C,h,f]}],shrink:[{shrink:["",C,h,f]}],order:[{order:[J,"first","last","none",h,f]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[i,"screen",...B()]}],"min-w":[{"min-w":[i,"screen","none",...B()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[l]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",s,de,ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,h,Me]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Se,f]}],"font-family":[{font:[jr,f,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,h,f]}],"line-clamp":[{"line-clamp":[C,"none",h,Me]}],leading:[{leading:[n,...b()]}],"list-image":[{"list-image":["none",h,f]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",h,f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:[C,"from-font","auto",h,ee]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[C,"auto",h,f]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h,f]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",h,f]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ue()}],"bg-repeat":[{bg:Ne()}],"bg-size":[{bg:le()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},J,h,f],radial:["",h,f],conic:[J,h,f]},Cr,kr]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":N()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...F(),"hidden","none"]}],"divide-style":[{divide:[...F(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...F(),"none","hidden"]}],"outline-offset":[{"outline-offset":[C,h,f]}],"outline-w":[{outline:["",C,de,ee]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",u,ge,he]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",m,ge,he]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[C,ee]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",g,ge,he]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[C,h,f]}],"mix-blend":[{"mix-blend":[...q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[C]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[h,f]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[C]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ue()}],"mask-repeat":[{mask:Ne()}],"mask-size":[{mask:le()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",h,f]}],filter:[{filter:["","none",h,f]}],blur:[{blur:Oe()}],brightness:[{brightness:[C,h,f]}],contrast:[{contrast:[C,h,f]}],"drop-shadow":[{"drop-shadow":["","none",j,ge,he]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",C,h,f]}],"hue-rotate":[{"hue-rotate":[C,h,f]}],invert:[{invert:["",C,h,f]}],saturate:[{saturate:[C,h,f]}],sepia:[{sepia:["",C,h,f]}],"backdrop-filter":[{"backdrop-filter":["","none",h,f]}],"backdrop-blur":[{"backdrop-blur":Oe()}],"backdrop-brightness":[{"backdrop-brightness":[C,h,f]}],"backdrop-contrast":[{"backdrop-contrast":[C,h,f]}],"backdrop-grayscale":[{"backdrop-grayscale":["",C,h,f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C,h,f]}],"backdrop-invert":[{"backdrop-invert":["",C,h,f]}],"backdrop-opacity":[{"backdrop-opacity":[C,h,f]}],"backdrop-saturate":[{"backdrop-saturate":[C,h,f]}],"backdrop-sepia":[{"backdrop-sepia":["",C,h,f]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",h,f]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[C,"initial",h,f]}],ease:[{ease:["linear","initial",T,h,f]}],delay:[{delay:[C,h,f]}],animate:[{animate:["none",z,h,f]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,h,f]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":["scale-3d"],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[h,f,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":["translate-none"],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h,f]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",h,f]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[C,de,ee,Me]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Tr=cr(Pr);function p(...e){return Tr(Je(e))}const He=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,We=Je,K=(e,r)=>s=>{var o;if(r?.variants==null)return We(e,s?.class,s?.className);const{variants:a,defaultVariants:n}=r,l=Object.keys(a).map(d=>{const u=s?.[d],m=n?.[d];if(u===null)return null;const g=He(u)||He(m);return a[d][g]}),i=s&&Object.entries(s).reduce((d,u)=>{let[m,g]=u;return g===void 0||(d[m]=g),d},{}),c=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((d,u)=>{let{class:m,className:g,...j}=u;return Object.entries(j).every(v=>{let[k,P]=v;return Array.isArray(P)?P.includes({...n,...i}[k]):{...n,...i}[k]===P})?[...d,m,g]:d},[]);return We(e,l,c,s?.class,s?.className)},Er=K("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),H=x.forwardRef(({className:e,variant:r,size:s,asChild:o=!1,disabled:a,...n},l)=>{const i=o?Ht:"button";return t.jsx(i,{className:p(Er({variant:r,size:s,className:e})),ref:l,type:n.type||"button",disabled:a,"aria-disabled":a?"true":void 0,...n})});H.displayName="Button";const zr=e=>{switch(e){case"h1":return"text-4xl font-bold leading-tight tracking-tight";case"h2":return"text-3xl font-bold leading-tight tracking-tight";case"h3":return"text-2xl font-semibold leading-tight tracking-normal";case"h4":return"text-xl font-semibold leading-snug tracking-normal";case"h5":return"text-lg font-medium leading-snug tracking-normal";case"h6":return"text-base font-medium leading-normal tracking-normal";case"body":return"text-base font-normal leading-normal";case"body-sm":return"text-sm font-normal leading-normal";case"body-lg":return"text-lg font-normal leading-relaxed";case"caption":return"text-xs font-normal leading-normal tracking-wide";case"label":return"text-sm font-medium leading-normal tracking-wide";default:return"text-base font-normal leading-normal"}},Ir=e=>{switch(e){case"primary":return"text-foreground";case"secondary":return"text-muted-foreground";case"muted":return"text-muted-foreground";case"error":return"text-destructive";case"success":return"text-success";case"warning":return"text-warning";default:return"text-foreground"}},Rr=e=>{switch(e){case"light":return"font-light";case"normal":return"font-normal";case"medium":return"font-medium";case"semibold":return"font-semibold";case"bold":return"font-bold";default:return""}},Ar=e=>{switch(e){case"left":return"text-left";case"center":return"text-center";case"right":return"text-right";case"justify":return"text-justify";default:return"text-left"}},I=({variant:e="body",color:r="primary",weight:s,align:o="left",truncate:a=!1,children:n,className:l,as:i,...c})=>{const d=i||Lr(e),u=p("m-0",zr(e),Ir(r),Rr(s),Ar(o),a&&"truncate",l);return t.jsx(d,{className:u,...c,children:n})};function Lr(e){switch(e){case"h1":return"h1";case"h2":return"h2";case"h3":return"h3";case"h4":return"h4";case"h5":return"h5";case"h6":return"h6";default:return"p"}}const $r=e=>{switch(e){case"sm":return"p-4";case"md":return"p-6";case"lg":return"p-8";default:return"p-0"}},Fr=e=>{switch(e){case"sm":return"shadow-sm";case"md":return"shadow-md";case"lg":return"shadow-lg";default:return"shadow-none"}},Or=e=>{switch(e){case"sm":return"rounded-sm";case"md":return"rounded-md";case"lg":return"rounded-lg";default:return"rounded-none"}},Ae=({children:e,title:r,subtitle:s,className:o,padding:a="md",shadow:n="md",borderRadius:l="md",onClick:i})=>{const c=!!i,d=p("bg-card",$r(a),Fr(n),Or(l),"transition-all duration-200 ease-in-out",c&&"cursor-pointer hover:-translate-y-0.5 hover:shadow-lg active:translate-y-0",o);return t.jsxs("div",{className:d,onClick:i,children:[(r||s)&&t.jsxs("div",{className:"mb-4",children:[r&&t.jsx("div",{className:"mb-2",children:t.jsx(I,{variant:"h3",children:r})}),s&&t.jsx("div",{className:"text-muted-foreground",children:t.jsx(I,{variant:"body-sm",color:"muted",children:s})})]}),t.jsx("div",{className:"flex-1",children:e})]})},Vr=({children:e})=>t.jsx("div",{className:"mt-4 pt-4 border-t border-border",children:e}),_r=Object.assign(Ae,{Footer:Vr}),Dr=e=>{switch(e){case"sm":return"max-w-md";case"md":return"max-w-2xl";case"lg":return"max-w-4xl";case"xl":return"max-w-6xl";default:return"max-w-2xl"}},it=({isOpen:e,onClose:r,title:s,children:o,size:a="md",showCloseButton:n=!0,closeOnOverlayClick:l=!0,closeOnEscape:i=!0})=>{const c=R.useRef(null);if(R.useEffect(()=>{if(!e||!i)return;const v=k=>{k.key==="Escape"&&r()};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[e,i,r]),R.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),R.useEffect(()=>{e&&c.current&&c.current.focus()},[e]),!e)return null;const d=p("fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4"),u=p("bg-card rounded-lg shadow-xl w-full max-h-[90vh] overflow-hidden flex flex-col",Dr(a)),m=p("p-6 border-b border-border flex items-center justify-between"),g=p("p-6 overflow-y-auto flex-1"),j=p("bg-none border-none text-xl cursor-pointer text-muted-foreground p-1 rounded-sm flex items-center justify-center hover:bg-accent hover:text-accent-foreground focus:outline-2 focus:outline-primary focus:outline-offset-2");return t.jsx("div",{className:d,onClick:l?r:void 0,children:t.jsxs("div",{ref:c,className:u,onClick:v=>v.stopPropagation(),tabIndex:-1,role:"dialog","aria-modal":"true","aria-labelledby":s?"modal-title":void 0,children:[(s||n)&&t.jsxs("div",{className:m,children:[s&&t.jsx(I,{variant:"h3",className:"text-foreground",children:s}),n&&t.jsx("button",{onClick:r,"aria-label":"Close modal",className:j,children:"×"})]}),t.jsx("div",{className:g,children:o})]})})},lt=({children:e,actions:r,...s})=>t.jsxs(it,{...s,children:[t.jsx("div",{className:"p-6 overflow-y-auto flex-1",children:e}),r&&t.jsx("div",{className:"p-6 border-t border-border flex justify-end gap-3",children:r})]}),Gr=({isOpen:e,onClose:r,onConfirm:s,title:o,message:a,confirmText:n="Confirm",cancelText:l="Cancel"})=>t.jsx(lt,{isOpen:e,onClose:r,title:o,actions:t.jsxs(t.Fragment,{children:[t.jsx(H,{variant:"secondary",onClick:r,children:l}),t.jsx(H,{variant:"default",onClick:s,children:n})]}),children:t.jsx(I,{children:a})}),Br=K(["flex w-full rounded-md border bg-background px-3 py-2","text-base 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-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{variant:{default:["border-input","focus-visible:ring-primary"],error:["border-destructive","focus-visible:ring-destructive"],success:["border-success","focus-visible:ring-success"]},inputSize:{sm:"h-8 text-sm",default:"h-10",lg:"h-12 text-lg"}},defaultVariants:{variant:"default",inputSize:"default"}}),Hr=K(["block text-sm font-medium mb-1.5","transition-colors"],{variants:{variant:{default:"text-foreground",error:"text-destructive",success:"text-success"},required:{true:"after:content-['*'] after:ml-0.5 after:text-destructive",false:""}},defaultVariants:{variant:"default",required:!1}}),Wr=K("mt-1.5 text-sm",{variants:{variant:{default:"text-muted-foreground",error:"text-destructive",success:"text-success"}},defaultVariants:{variant:"default"}}),te=x.forwardRef(({className:e,containerClassName:r,labelClassName:s,variant:o,inputSize:a,label:n,helperText:l,error:i,required:c,prefix:d,suffix:u,id:m,...g},j)=>{const v=x.useId(),k=m||v,P=`${k}-helper`,T=`${k}-error`,z=i?"error":o,w=i||l;return t.jsxs("div",{className:p("w-full",r),children:[n&&t.jsx("label",{htmlFor:k,className:p(Hr({variant:z,required:c}),s),children:n}),t.jsxs("div",{className:"relative",children:[d&&t.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:d}),t.jsx("input",{id:k,ref:j,className:p(Br({variant:z,inputSize:a}),d&&"pl-10",u&&"pr-10",e),"aria-invalid":i?"true":"false","aria-describedby":w?i?T:P:void 0,...g}),u&&t.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:u})]}),w&&t.jsx("p",{id:i?T:P,className:Wr({variant:z}),role:i?"alert":void 0,children:w})]})});te.displayName="Input";/**
2
2
  * @license lucide-react v0.547.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const Dr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Gr=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,s,o)=>o?o.toUpperCase():s.toLowerCase()),Be=e=>{const r=Gr(e);return r.charAt(0).toUpperCase()+r.slice(1)},ot=(...e)=>e.filter((r,s,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===s).join(" ").trim(),Br=e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
6
+ */const Ur=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qr=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,s,o)=>o?o.toUpperCase():s.toLowerCase()),Ue=e=>{const r=qr(e);return r.charAt(0).toUpperCase()+r.slice(1)},ct=(...e)=>e.filter((r,s,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===s).join(" ").trim(),Xr=e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
7
7
  * @license lucide-react v0.547.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */var Or={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
11
+ */var Zr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12
12
  * @license lucide-react v0.547.0 - ISC
13
13
  *
14
14
  * This source code is licensed under the ISC license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
- */const Wr=A.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:a="",children:n,iconNode:l,...i},c)=>A.createElement("svg",{ref:c,...Or,width:r,height:r,stroke:e,strokeWidth:o?Number(s)*24/Number(r):s,className:ot("lucide",a),...!n&&!Br(i)&&{"aria-hidden":"true"},...i},[...l.map(([d,m])=>A.createElement(d,m)),...Array.isArray(n)?n:[n]]));/**
16
+ */const Jr=R.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:a="",children:n,iconNode:l,...i},c)=>R.createElement("svg",{ref:c,...Zr,width:r,height:r,stroke:e,strokeWidth:o?Number(s)*24/Number(r):s,className:ct("lucide",a),...!n&&!Xr(i)&&{"aria-hidden":"true"},...i},[...l.map(([d,u])=>R.createElement(d,u)),...Array.isArray(n)?n:[n]]));/**
17
17
  * @license lucide-react v0.547.0 - ISC
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const B=(e,r)=>{const s=A.forwardRef(({className:o,...a},n)=>A.createElement(Wr,{ref:n,iconNode:r,className:ot(`lucide-${Dr(Be(e))}`,`lucide-${e}`,o),...a}));return s.displayName=Be(e),s};/**
21
+ */const G=(e,r)=>{const s=R.forwardRef(({className:o,...a},n)=>R.createElement(Jr,{ref:n,iconNode:r,className:ct(`lucide-${Ur(Ue(e))}`,`lucide-${e}`,o),...a}));return s.displayName=Ue(e),s};/**
22
22
  * @license lucide-react v0.547.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
25
25
  * See the LICENSE file in the root directory of this source tree.
26
- */const Hr=[["path",{d:"M10 4 8 6",key:"1rru8s"}],["path",{d:"M17 19v2",key:"ts1sot"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M7 19v2",key:"12npes"}],["path",{d:"M9 5 7.621 3.621A2.121 2.121 0 0 0 4 5v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5",key:"14ym8i"}]],Ur=B("bath",Hr);/**
26
+ */const Kr=[["path",{d:"M10 4 8 6",key:"1rru8s"}],["path",{d:"M17 19v2",key:"ts1sot"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M7 19v2",key:"12npes"}],["path",{d:"M9 5 7.621 3.621A2.121 2.121 0 0 0 4 5v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5",key:"14ym8i"}]],Qr=G("bath",Kr);/**
27
27
  * @license lucide-react v0.547.0 - ISC
28
28
  *
29
29
  * This source code is licensed under the ISC license.
30
30
  * See the LICENSE file in the root directory of this source tree.
31
- */const qr=[["path",{d:"M2 4v16",key:"vw9hq8"}],["path",{d:"M2 8h18a2 2 0 0 1 2 2v10",key:"1dgv2r"}],["path",{d:"M2 17h20",key:"18nfp3"}],["path",{d:"M6 8v9",key:"1yriud"}]],Xr=B("bed",qr);/**
31
+ */const Yr=[["path",{d:"M2 4v16",key:"vw9hq8"}],["path",{d:"M2 8h18a2 2 0 0 1 2 2v10",key:"1dgv2r"}],["path",{d:"M2 17h20",key:"18nfp3"}],["path",{d:"M6 8v9",key:"1yriud"}]],es=G("bed",Yr);/**
32
32
  * @license lucide-react v0.547.0 - ISC
33
33
  *
34
34
  * This source code is licensed under the ISC license.
35
35
  * See the LICENSE file in the root directory of this source tree.
36
- */const Zr=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Kr=B("car",Zr);/**
36
+ */const ts=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],rs=G("car",ts);/**
37
37
  * @license lucide-react v0.547.0 - ISC
38
38
  *
39
39
  * This source code is licensed under the ISC license.
40
40
  * See the LICENSE file in the root directory of this source tree.
41
- */const Qr=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Jr=B("chevron-down",Qr);/**
41
+ */const ss=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],os=G("chevron-down",ss);/**
42
42
  * @license lucide-react v0.547.0 - ISC
43
43
  *
44
44
  * This source code is licensed under the ISC license.
45
45
  * See the LICENSE file in the root directory of this source tree.
46
- */const Yr=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],es=B("chevron-left",Yr);/**
46
+ */const as=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ns=G("chevron-left",as);/**
47
47
  * @license lucide-react v0.547.0 - ISC
48
48
  *
49
49
  * This source code is licensed under the ISC license.
50
50
  * See the LICENSE file in the root directory of this source tree.
51
- */const ts=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],rs=B("chevron-right",ts);/**
51
+ */const is=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ls=G("chevron-right",is);/**
52
52
  * @license lucide-react v0.547.0 - ISC
53
53
  *
54
54
  * This source code is licensed under the ISC license.
55
55
  * See the LICENSE file in the root directory of this source tree.
56
- */const ss=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],os=B("grid-3x3",ss);/**
56
+ */const cs=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],ds=G("grid-3x3",cs);/**
57
57
  * @license lucide-react v0.547.0 - ISC
58
58
  *
59
59
  * This source code is licensed under the ISC license.
60
60
  * See the LICENSE file in the root directory of this source tree.
61
- */const as=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],ns=B("heart",as);/**
61
+ */const us=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],ms=G("heart",us);/**
62
62
  * @license lucide-react v0.547.0 - ISC
63
63
  *
64
64
  * This source code is licensed under the ISC license.
65
65
  * See the LICENSE file in the root directory of this source tree.
66
- */const is=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],ls=B("house",is);/**
66
+ */const ps=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],fs=G("house",ps);/**
67
67
  * @license lucide-react v0.547.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
70
70
  * See the LICENSE file in the root directory of this source tree.
71
- */const cs=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],ds=B("map-pin",cs);/**
71
+ */const hs=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],gs=G("map-pin",hs);/**
72
72
  * @license lucide-react v0.547.0 - ISC
73
73
  *
74
74
  * This source code is licensed under the ISC license.
75
75
  * See the LICENSE file in the root directory of this source tree.
76
- */const us=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],ms=B("maximize",us);/**
76
+ */const xs=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],bs=G("maximize",xs);/**
77
77
  * @license lucide-react v0.547.0 - ISC
78
78
  *
79
79
  * This source code is licensed under the ISC license.
80
80
  * See the LICENSE file in the root directory of this source tree.
81
- */const fs=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],ps=B("trending-up",fs),gs=K(["flex w-full rounded-md border bg-background px-3 py-2","text-base transition-colors","appearance-none cursor-pointer","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{variant:{default:["border-input","focus-visible:ring-primary"],error:["border-destructive","focus-visible:ring-destructive"],success:["border-success","focus-visible:ring-success"]},selectSize:{sm:"h-8 text-sm",default:"h-10",lg:"h-12 text-lg"}},defaultVariants:{variant:"default",selectSize:"default"}}),hs=K(["block text-sm font-medium mb-1.5","transition-colors"],{variants:{variant:{default:"text-foreground",error:"text-destructive",success:"text-success"},required:{true:"after:content-['*'] after:ml-0.5 after:text-destructive",false:""}},defaultVariants:{variant:"default",required:!1}}),xs=K("mt-1.5 text-sm",{variants:{variant:{default:"text-muted-foreground",error:"text-destructive",success:"text-success"}},defaultVariants:{variant:"default"}}),ze=v.forwardRef(({className:e,containerClassName:r,labelClassName:s,variant:o,selectSize:a,label:n,helperText:l,error:i,required:c,options:d,placeholder:m,id:u,...h},C)=>{const y=v.useId(),k=u||y,P=`${k}-helper`,E=`${k}-error`,z=i?"error":o,w=i||l;return t.jsxs("div",{className:g("w-full",r),children:[n&&t.jsx("label",{htmlFor:k,className:g(hs({variant:z,required:c}),s),children:n}),t.jsxs("div",{className:"relative",children:[t.jsxs("select",{id:k,ref:C,className:g(gs({variant:z,selectSize:a}),"pr-10",e),"aria-invalid":i?"true":"false","aria-describedby":w?i?E:P:void 0,...h,children:[m&&t.jsx("option",{value:"",disabled:!0,children:m}),d.map(S=>t.jsx("option",{value:S.value,disabled:S.disabled,children:S.label},S.value))]}),t.jsx("div",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:t.jsx(Jr,{className:"h-4 w-4"})})]}),w&&t.jsx("p",{id:i?E:P,className:xs({variant:z}),role:i?"alert":void 0,children:w})]})});ze.displayName="Select";function bs(e,r,s,o,a,n){const l=(e-90)*Math.PI/180,i=(r-90)*Math.PI/180,c=a+s*Math.cos(l),d=n+s*Math.sin(l),m=a+s*Math.cos(i),u=n+s*Math.sin(i),h=a+o*Math.cos(i),C=n+o*Math.sin(i),y=a+o*Math.cos(l),k=n+o*Math.sin(l),P=r-e>180?1:0;return[`M ${c} ${d}`,`A ${s} ${s} 0 ${P} 1 ${m} ${u}`,`L ${h} ${C}`,`A ${o} ${o} 0 ${P} 0 ${y} ${k}`,"Z"].join(" ")}function ys(e,r,s,o,a){const n=e.reduce((c,d)=>c+d.value,0);if(n===0)return[];let l=0;const i=[];return e.forEach(c=>{const d=c.value/n*360,m=l,u=l+d,h=bs(m,u,r,s,o,a);i.push({path:h,segment:c}),l=u}),i}const Re=v.forwardRef(({segments:e,size:r=300,innerRadiusRatio:s=.6,centerContent:o,showLegend:a=!1,legendPosition:n="bottom",className:l,onSegmentClick:i,onSegmentHover:c},d)=>{const[m,u]=v.useState(null),h=r/2,C=r/2,y=2,k=r/2-y,P=k*s,E=ys(e,k,P,h,C),z=S=>{u(S),c?.(S)},w=n==="left"||n==="right";return t.jsxs("div",{ref:d,className:g("flex gap-4",w?"flex-row items-center":"flex-col items-center",n==="right"&&"flex-row-reverse",n==="top"&&"flex-col-reverse",l),children:[t.jsxs("div",{className:"relative inline-block",style:{width:r,height:r},children:[t.jsx("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,children:E.map(({path:S,segment:M},F)=>t.jsx("path",{d:S,fill:M.color,stroke:"white",strokeWidth:y,className:g("transition-opacity duration-200",m&&m!==M&&"opacity-50",i&&"cursor-pointer"),onMouseEnter:()=>z(M),onMouseLeave:()=>z(null),onClick:()=>i?.(M)},`${M.label}-${F}`))}),o&&t.jsx("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-center",style:{maxWidth:P*1.8},children:o})]}),a&&t.jsx("div",{className:g("flex gap-2",w?"flex-col":"flex-row flex-wrap justify-center"),children:e.map((S,M)=>t.jsxs("div",{className:g("flex items-center gap-2 text-sm transition-opacity duration-200",m&&m!==S&&"opacity-50",i&&"cursor-pointer"),onMouseEnter:()=>z(S),onMouseLeave:()=>z(null),onClick:()=>i?.(S),children:[t.jsx("div",{className:"h-3 w-3 rounded-sm flex-shrink-0",style:{backgroundColor:S.color}}),t.jsx("span",{className:"text-muted-foreground",children:S.label})]},`${S.label}-${M}`))})]})});Re.displayName="DonutChart";function at(e,r){return!r||r==="all"?e:e.filter(s=>s.categoryId===r)}function nt(e,r){const s=[...e];return s.sort((o,a)=>{let n="",l="";return r.column==="title"?(n=o.title.toLowerCase(),l=a.title.toLowerCase()):r.column==="metric"&&(n=Oe(o.metricValue),l=Oe(a.metricValue)),n<l?r.direction==="asc"?-1:1:n>l?r.direction==="asc"?1:-1:0}),s}function Oe(e){if(!e)return 0;const r=e.match(/[\d.]+/);return r?parseFloat(r[0]):0}function it(e,r){return r==="all"?e.length:e.filter(s=>s.categoryId===r).length}function vs(e,r,s={}){const{initialCategory:o=null,initialSort:a=null,enableSearch:n=!1}=s,[l,i]=A.useState(o),[c,d]=A.useState(a),[m,u]=A.useState(""),h=A.useMemo(()=>at(e,l),[e,l]),C=A.useMemo(()=>{if(!n||!m.trim())return h;const E=m.toLowerCase();return h.filter(z=>z.title.toLowerCase().includes(E)||z.subtitle?.toLowerCase().includes(E))},[h,m,n]),y=A.useMemo(()=>c?nt(C,c):C,[C,c]),k=A.useCallback(E=>it(e,E),[e]),P=A.useCallback(()=>{i(o),d(a),u("")},[o,a]);return{activeCategory:l,setActiveCategory:i,sort:c,setSort:d,searchQuery:m,setSearchQuery:u,filteredEntities:y,getCategoryCount:k,resetFilters:P}}const ws=K("inline-flex items-center justify-center whitespace-nowrap rounded-full text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",selected:"bg-primary text-primary-foreground hover:bg-primary/90 ring-2 ring-primary ring-offset-2"},size:{default:"h-8 px-4 py-1.5",sm:"h-7 px-3 py-1 text-xs",lg:"h-9 px-5 py-2"}},defaultVariants:{variant:"default",size:"default"}}),be=v.forwardRef(({className:e,variant:r,size:s,icon:o,selected:a,dismissible:n,onDismiss:l,children:i,disabled:c,...d},m)=>{const u=a?"selected":r;return t.jsxs("button",{type:"button",className:g(ws({variant:u,size:s,className:e})),ref:m,disabled:c,"aria-disabled":c?"true":void 0,"aria-pressed":a?"true":"false",...d,children:[o&&t.jsx("span",{className:"mr-1.5 inline-flex items-center","aria-hidden":"true",children:o}),t.jsx("span",{children:i}),n&&l&&t.jsx("button",{type:"button",className:"ml-1.5 inline-flex items-center hover:opacity-70",onClick:h=>{h.stopPropagation(),l()},"aria-label":"Remove",children:"×"})]})});be.displayName="Chip";const Ae=v.forwardRef(({categories:e,activeCategory:r,onCategoryChange:s,showCount:o,getCategoryCount:a,className:n},l)=>t.jsx("div",{ref:l,role:"tablist","aria-label":"Filter by category",className:g("flex flex-wrap gap-2 overflow-x-auto pb-2",n),children:e.map(i=>{const c=r===i.id,d=o&&a?a(i.id):void 0;return t.jsxs(be,{role:"tab","aria-selected":c,"aria-controls":`entities-panel-${i.id}`,selected:c,variant:c?"selected":"outline",icon:typeof i.icon=="string"?i.icon:i.icon?v.createElement(i.icon):void 0,onClick:()=>s(c?null:i.id),children:[i.label,d!==void 0&&t.jsxs("span",{className:"ml-1.5 opacity-70",children:["(",d,")"]})]},i.id)})}));Ae.displayName="CategoryChips";const ks=(e,r)=>{if(r)return"text-accent";switch(e.variant||js(e.type)){case"primary":return"bg-primary text-primary-foreground";case"secondary":return"bg-secondary text-secondary-foreground";case"success":return"bg-success text-success-foreground";case"warning":return"bg-warning text-warning-foreground";case"error":return"bg-error text-error-foreground";case"info":return"bg-info text-info-foreground";default:return"bg-secondary text-secondary-foreground"}},js=e=>{switch(e){case"Venta":return"primary";case"Desarrollo":return"success";case"Renta":return"info";case"Remate":return"warning";default:return"secondary"}},Ns=({property:e,className:r,onLike:s,onImageClick:o,showLikeButton:a=!0,showNavigation:n=!0,variant:l="default",badgeColors:i})=>{const[c,d]=A.useState(0),[m,u]=A.useState(!1),[h,C]=A.useState(!1),y=()=>{d(j=>j===e.images.length-1?0:j+1),C(!1)},k=()=>{d(j=>j===0?e.images.length-1:j-1),C(!1)},P=j=>{j.preventDefault(),j.stopPropagation();const $=!m;u($),s?.(e.id,$)},E=j=>{j.preventDefault(),j.stopPropagation(),o?.(c,e.id)},z=(j,$)=>!j||!$?"Price not available":`$${j.toLocaleString()} ${$}`,w=l==="compact",S=g("relative overflow-hidden bg-card shadow-md transition-all duration-300 ease-out cursor-pointer",w?"rounded-xl hover:shadow-lg":"rounded-2xl hover:-translate-y-1 hover:shadow-xl",w&&"border px-4",r),M=g("relative overflow-hidden",w&&"rounded-xl px-4 shadow-md"),F=g("w-full h-full object-cover",!w&&"transition-transform duration-300 hover:scale-105"),R=g("absolute z-10 flex flex-wrap gap-2",w?"top-3 left-3":"top-4 left-4"),b=g("text-xs font-semibold",w?"rounded-full px-3 py-1":"px-2 py-1 rounded-lg font-medium uppercase tracking-wide"),_=g("absolute z-10 rounded-full cursor-pointer transition-all duration-200",w?"top-3 right-3 p-1 shadow-md":"top-4 right-4 bg-background/90 backdrop-blur-sm border border-border/20 text-foreground w-10 h-10 flex items-center justify-center hover:bg-background hover:scale-105"),W=g("absolute top-1/2 -translate-y-1/2 z-10 bg-background/90 backdrop-blur-sm border border-border/20 text-foreground w-10 h-10 rounded-full p-0 flex items-center justify-center cursor-pointer transition-all duration-200 hover:bg-background hover:scale-105"),te=g("absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-1 z-10"),q=g("w-2 h-2 rounded-full border-none cursor-pointer transition-all duration-200 hover:scale-120"),re=g(w?"p-2":"p-6"),J=g("font-semibold text-foreground mb-2 line-clamp-2 leading-tight",w?"text-base":"text-lg font-bold"),O=g("font-bold text-primary mb-2",w?"text-lg":"text-xl"),D=g("text-muted-foreground mb-4",w?"text-sm flex items-center gap-1":"text-base"),G=g("flex items-center mb-4",w?"justify-between mt-3":"gap-4"),x=g("flex items-center gap-1 text-muted-foreground","text-sm"),de=g("text-sm text-muted-foreground line-clamp-2",w&&"mt-2"),ie=!(e.images&&e.images.length>0)||h,le=()=>t.jsxs("div",{className:"w-full h-full bg-gradient-to-br from-primary/10 via-primary/5 to-secondary/10 flex flex-col items-center justify-center gap-3",children:[t.jsx("div",{className:"rounded-full bg-primary/10 p-6",children:t.jsx(ls,{size:w?32:48,className:"text-primary/40"})}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"No image available"})]}),T=t.jsxs("div",{className:S,children:[t.jsxs("div",{className:g(M,w?"h-52":"aspect-[4/3]"),children:[ie?t.jsx(le,{}):t.jsx("img",{src:e.images[c],alt:e.title,className:F,onClick:o?E:void 0,onError:()=>C(!0)}),t.jsx("div",{className:R,children:e.transactionTypes.map((j,$)=>{const H=i?.[j.type];return t.jsx("span",{className:g(b,ks(j,H)),style:H?{backgroundColor:H}:void 0,children:j.type},$)})}),a&&t.jsx("button",{onClick:P,className:_,"aria-label":m?"Unlike property":"Like property",children:w?t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:m?"red":"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:m?"red":"currentColor",className:"h-5 w-5",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733C11.285 4.876 9.623 3.75 7.688 3.75 5.099 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"})}):t.jsx(ns,{size:20,fill:m?"currentColor":"none",className:m?"text-destructive":""})}),!w&&n&&!ie&&e.images.length>1&&t.jsxs(t.Fragment,{children:[t.jsx(Z,{onClick:j=>{j.preventDefault(),j.stopPropagation(),k()},className:g(W,"left-4"),"aria-label":"Previous image",children:t.jsx(es,{size:20})}),t.jsx(Z,{onClick:j=>{j.preventDefault(),j.stopPropagation(),y()},className:g(W,"right-4"),"aria-label":"Next image",children:t.jsx(rs,{size:20})}),t.jsx("div",{className:te,children:e.images.map((j,$)=>t.jsx("button",{className:g(q,$===c?"bg-background":"bg-background/50"),onClick:H=>{H.preventDefault(),H.stopPropagation(),d($)},"aria-label":`Go to image ${$+1}`,"aria-current":$===c},$))})]})]}),t.jsxs("div",{className:re,children:[t.jsx("h3",{className:J,children:e.title}),t.jsx("p",{className:O,children:z(e.price?.amount,e.price?.currency)}),t.jsxs("p",{className:D,children:[w&&t.jsx(ds,{size:14}),e.location.city,", ",e.location.state]}),t.jsxs("div",{className:G,children:[t.jsxs("div",{className:x,children:[t.jsx(Xr,{size:16}),t.jsx("span",{children:e.features.bedrooms})]}),t.jsxs("div",{className:x,children:[t.jsx(Ur,{size:16}),t.jsx("span",{children:e.features.bathrooms})]}),t.jsxs("div",{className:x,children:[t.jsx(Kr,{size:16}),t.jsx("span",{children:e.features.parking})]}),t.jsxs("div",{className:x,children:[t.jsx(ms,{size:16}),t.jsxs("span",{children:[e.features.area," m²"]})]})]}),e.amenities.length>0&&t.jsx("p",{className:de,children:e.amenities.join(", ")})]})]});return e.href?t.jsx("a",{href:e.href,className:"no-underline text-inherit",children:T}):T},lt=A.forwardRef(({images:e,transactionType:r,totalPhotos:s,onViewAllClick:o,onImageClick:a,className:n},l)=>{const i=e.slice(0,5),c=d=>{a?.(d)};return t.jsxs("div",{ref:l,className:g("w-full h-full grid grid-cols-2 gap-2",n),children:[t.jsx("div",{className:"relative col-span-1 row-span-2 rounded-2xl overflow-hidden group cursor-pointer",children:i[0]?t.jsxs(t.Fragment,{children:[t.jsx("img",{src:i[0],alt:"Property main view",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>c(0)}),r&&t.jsx("div",{className:"absolute top-4 left-4 bg-white rounded-full px-4 py-2 shadow-md",children:t.jsx("span",{className:"text-sm font-medium text-foreground",children:r})})]}):t.jsx("div",{className:"w-full h-full bg-muted flex items-center justify-center",children:t.jsx("span",{className:"text-muted-foreground",children:"No image"})})}),t.jsx("div",{className:"relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer",children:i[1]?t.jsx("img",{src:i[1],alt:"Property view 2",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>c(1)}):t.jsx("div",{className:"w-full h-full bg-muted"})}),t.jsx("div",{className:"relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer",children:i[2]?t.jsx("img",{src:i[2],alt:"Property view 3",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>c(2)}):t.jsx("div",{className:"w-full h-full bg-muted"})}),t.jsx("div",{className:"relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer",children:i[3]?t.jsx("img",{src:i[3],alt:"Property view 4",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>c(3)}):t.jsx("div",{className:"w-full h-full bg-muted"})}),t.jsx("div",{className:"relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer",children:i[4]?t.jsxs(t.Fragment,{children:[t.jsx("img",{src:i[4],alt:"Property view 5",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>c(4)}),s&&s>5&&t.jsx("div",{className:"absolute bottom-4 right-4",children:t.jsxs("button",{onClick:d=>{d.stopPropagation(),o?.()},className:"flex items-center gap-2 bg-white rounded-full px-4 py-2 shadow-md hover:shadow-lg transition-all duration-200 hover:scale-105",children:[t.jsx(os,{className:"w-4 h-4 text-foreground"}),t.jsxs("span",{className:"text-sm font-medium text-foreground",children:["Ver las ",s," fotos"]})]})})]}):t.jsx("div",{className:"w-full h-full bg-muted"})})]})});lt.displayName="PropertyGallery";const ct=v.forwardRef(({title:e,description:r,className:s},o)=>t.jsxs("div",{ref:o,className:g("space-y-1.5",s),children:[t.jsx(I,{variant:"h2",className:"font-bold",children:e}),r&&t.jsx(I,{variant:"body",className:"text-muted-foreground",children:r})]}));ct.displayName="EntityDirectoryHeader";const dt=v.forwardRef(({entity:e,categories:r,showIcon:s=!0,showCategoryBadge:o=!0,showMetric:a=!0,compact:n=!1,className:l},i)=>{const c=r?.find(h=>h.id===e.categoryId),d=!!e.onClick,m=()=>{e.onClick&&!e.disabled&&e.onClick()},u=h=>{d&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),m())};return t.jsxs("div",{ref:i,role:d?"button":"listitem",tabIndex:d&&!e.disabled?0:void 0,onClick:m,onKeyDown:u,"aria-disabled":e.disabled,className:g("flex items-center gap-4 border-b border-border transition-colors",n?"p-3":"p-4",d&&!e.disabled&&"cursor-pointer hover:bg-accent/50 focus-visible:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",e.disabled&&"opacity-50 cursor-not-allowed",l),children:[s&&t.jsx("div",{className:g("flex-shrink-0 flex items-center justify-center bg-muted rounded-full",n?"w-8 h-8 text-lg":"w-10 h-10 text-xl"),"aria-hidden":"true",children:typeof e.icon=="string"?t.jsx("span",{children:e.icon}):e.icon?v.createElement(e.icon):t.jsx("span",{className:"text-muted-foreground",children:"•"})}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx(I,{variant:n?"body-sm":"body",className:"font-semibold truncate",children:e.title}),e.subtitle&&t.jsx(I,{variant:n?"caption":"body-sm",className:"text-muted-foreground truncate",children:e.subtitle})]}),o&&c&&t.jsx(be,{variant:"secondary",size:n?"sm":"default",className:"flex-shrink-0 bg-foreground text-background hover:bg-foreground/90","aria-label":`Category: ${c.label}`,children:c.label}),a&&e.metricValue&&t.jsxs("div",{className:"flex-shrink-0 text-right min-w-[4rem]",children:[t.jsx(I,{variant:n?"body-sm":"body",className:"font-medium",children:e.metricValue}),e.metricLabel&&t.jsx(I,{variant:"caption",className:"text-muted-foreground",children:e.metricLabel})]})]})});dt.displayName="EntityDirectoryListItem";const ut=v.forwardRef(({columns:e,showIcon:r,sort:s,onSortChange:o,compact:a,className:n},l)=>{const i=u=>{if(!o)return;const h=s?.column===u&&s?.direction==="asc"?"desc":"asc";o({column:u,direction:h})},c=u=>{i(u)},d=(u,h)=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),i(h))},m=u=>u!=="title"&&u!=="metric"?null:!s||s.column!==u?t.jsx("span",{className:"ml-1 text-muted-foreground opacity-50","aria-hidden":"true",children:"⇅"}):t.jsx("span",{className:"ml-1","aria-hidden":"true",children:s.direction==="asc"?"↑":"↓"});return t.jsxs("div",{ref:l,role:"row",className:g("flex items-center gap-4 bg-background border-b border-border font-medium text-sm text-muted-foreground",a?"px-3 py-2":"px-4 py-3",n),children:[r&&t.jsx("div",{className:a?"w-8":"w-10"}),e.map(u=>{const h=u.sortable&&(u.key==="title"||u.key==="metric"),C=s?.column===u.key;return t.jsxs("div",{role:"columnheader","aria-sort":C?s?.direction==="asc"?"ascending":"descending":void 0,className:g(u.key==="title"&&"flex-1",u.key==="category"&&"w-40",u.key==="metric"&&"w-24 text-right",u.align==="center"&&"text-center",u.align==="right"&&"text-right",h&&"cursor-pointer hover:text-foreground transition-colors select-none",C&&"text-foreground"),style:u.width?{width:u.width}:void 0,onClick:h&&(u.key==="title"||u.key==="metric")?()=>c(u.key):void 0,tabIndex:h?0:void 0,onKeyDown:h&&(u.key==="title"||u.key==="metric")?y=>d(y,u.key):void 0,children:[u.label,h&&m(u.key)]},u.key)})]})});ut.displayName="EntityDirectoryTableHeader";const mt=v.forwardRef(({entities:e,categories:r,showIcons:s=!0,showCategoryBadges:o=!0,showMetric:a=!0,metricLabel:n,sortable:l=!1,sort:i,onSortChange:c,compact:d=!1,renderItem:m,className:u},h)=>{const C=[{key:"title",label:n?"Nombre":"Name",sortable:l},...o?[{key:"category",label:"Categoría",sortable:!1}]:[],...a&&n?[{key:"metric",label:n,sortable:l,align:"right"}]:[]];return t.jsxs("div",{ref:h,role:"table","aria-label":"Entity directory",className:g("border border-border rounded-lg overflow-hidden",u),children:[t.jsx(ut,{columns:C,showIcon:s,sort:i,onSortChange:c,compact:d}),t.jsx("div",{role:"rowgroup",children:e.map(y=>m?t.jsx(v.Fragment,{children:m(y)},y.id):t.jsx(dt,{entity:y,categories:r,showIcon:s,showCategoryBadge:o,showMetric:a,compact:d},y.id))})]})});mt.displayName="EntityDirectoryList";const ft=v.forwardRef(({message:e="No entities found",icon:r,action:s,className:o},a)=>t.jsxs("div",{ref:a,role:"status","aria-live":"polite",className:g("flex flex-col items-center justify-center py-12 px-4 text-center",o),children:[r&&t.jsx("div",{className:"mb-4 text-4xl opacity-50","aria-hidden":"true",children:r}),t.jsx(I,{variant:"body-lg",className:"text-muted-foreground mb-4",children:e}),s&&t.jsx(Z,{variant:"outline",onClick:s.onClick,children:s.label})]}));ft.displayName="EntityDirectoryEmptyState";const pt=v.forwardRef(({error:e,onRetry:r,className:s},o)=>{const a=typeof e=="string"?e:e.message;return t.jsxs("div",{ref:o,role:"alert","aria-live":"assertive",className:g("flex flex-col items-center justify-center py-12 px-4 text-center",s),children:[t.jsx("div",{className:"mb-4 text-4xl","aria-hidden":"true",children:"⚠️"}),t.jsx(I,{variant:"body-lg",className:"text-destructive mb-2 font-semibold",children:"Error"}),t.jsx(I,{variant:"body",className:"text-muted-foreground mb-4",children:a}),r&&t.jsx(Z,{variant:"outline",onClick:r,children:"Try Again"})]})});pt.displayName="EntityDirectoryErrorState";const gt=v.forwardRef(({rows:e=5,className:r},s)=>t.jsxs("div",{ref:s,role:"status","aria-live":"polite","aria-label":"Loading entities",className:g("space-y-3",r),children:[Array.from({length:e}).map((o,a)=>t.jsxs("div",{className:"flex items-center gap-4 p-4 border border-border rounded-lg animate-pulse",children:[t.jsx("div",{className:"w-10 h-10 bg-muted rounded-full flex-shrink-0"}),t.jsxs("div",{className:"flex-1 space-y-2",children:[t.jsx("div",{className:"h-4 bg-muted rounded w-1/3"}),t.jsx("div",{className:"h-3 bg-muted rounded w-1/2"})]}),t.jsx("div",{className:"h-6 bg-muted rounded-full w-24 flex-shrink-0"}),t.jsx("div",{className:"h-4 bg-muted rounded w-16 flex-shrink-0"})]},a)),t.jsx("span",{className:"sr-only",children:"Loading..."})]}));gt.displayName="EntityDirectoryLoadingState";const ht=v.forwardRef(({value:e,onChange:r,placeholder:s="Search entities...",className:o},a)=>t.jsxs("div",{className:g("relative",o),children:[t.jsx("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none",children:t.jsx("svg",{className:"w-4 h-4 text-muted-foreground","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",children:t.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"})})}),t.jsx("input",{ref:a,type:"search",value:e,onChange:n=>r(n.target.value),placeholder:s,className:g("block w-full pl-10 pr-3 py-2 border border-input rounded-md","bg-background text-foreground placeholder:text-muted-foreground","focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent","transition-colors"),"aria-label":"Search entities"}),e&&t.jsx("button",{type:"button",onClick:()=>r(""),className:"absolute inset-y-0 right-0 flex items-center pr-3 text-muted-foreground hover:text-foreground","aria-label":"Clear search",children:t.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}));ht.displayName="EntityDirectorySearchFilter";const xt=v.forwardRef(({entities:e,categories:r,title:s,description:o,activeCategory:a,onCategoryChange:n,showCategoryCount:l,getCategoryCount:i,enableSearch:c=!1,searchQuery:d="",onSearchChange:m,searchPlaceholder:u,sortable:h=!1,sort:C,onSortChange:y,showIcons:k=!0,showCategoryBadges:P=!0,showMetric:E=!0,metricLabel:z,compact:w=!1,loading:S=!1,error:M,emptyMessage:F,onRetry:R,emptyState:b,errorState:_,loadingState:W,renderItem:te,className:q,style:re},J)=>{const O=r&&r.length>0,D=!S&&!M&&e.length===0,G=!S&&!!M;return t.jsxs("div",{ref:J,className:g("space-y-6",q),style:re,children:[t.jsx(ct,{title:s,description:o}),O&&n&&t.jsx(Ae,{categories:r,activeCategory:a,onCategoryChange:n,showCount:l,getCategoryCount:i}),c&&m&&t.jsx(ht,{value:d,onChange:m,placeholder:u}),S&&(W||t.jsx(gt,{})),G&&(_||t.jsx(pt,{error:M,onRetry:R})),D&&(b||t.jsx(ft,{message:F})),!S&&!G&&!D&&t.jsx(mt,{entities:e,categories:r,showIcons:k,showCategoryBadges:P,showMetric:E,metricLabel:z,sortable:h,sort:C,onSortChange:y,compact:w,renderItem:te})]})});xt.displayName="EntityDirectory";function bt(e){const{propertyPrice:r,downPayment:s,loanTerm:o,interestRate:a,propertyTax:n=0,hoaFees:l=0}=e,i=r-s,c=a/100/12,d=o*12;let m;if(c===0)m=i/d;else{const y=Math.pow(1+c,d);m=i*(c*y)/(y-1)}const u=m*d,h=u-i,C=m+n+l;return{monthlyPayment:Math.round(m*100)/100,totalMonthlyPayment:Math.round(C*100)/100,totalAmount:Math.round(u*100)/100,totalInterest:Math.round(h*100)/100,loanPrincipal:Math.round(i*100)/100,breakdown:{principalAndInterest:Math.round(m*100)/100,propertyTax:Math.round(n*100)/100,hoaFees:Math.round(l*100)/100}}}function oe(e,r="MXN"){return new Intl.NumberFormat("es-MX",{style:"currency",currency:r,minimumFractionDigits:0,maximumFractionDigits:0}).format(e)}function Cs(e,r=3){return`${e.toFixed(r)} %`}function Ms(e){const r={};return(!e.propertyPrice||e.propertyPrice<=0)&&(r.propertyPrice="El precio de la propiedad debe ser mayor a 0"),(!e.downPayment||e.downPayment<0)&&(r.downPayment="El enganche debe ser mayor o igual a 0"),e.propertyPrice&&e.downPayment&&e.downPayment>=e.propertyPrice&&(r.downPayment="El enganche debe ser menor al precio de la propiedad"),(!e.loanTerm||e.loanTerm<=0)&&(r.loanTerm="El plazo del préstamo debe ser mayor a 0"),(e.interestRate===void 0||e.interestRate<0)&&(r.interestRate="La tasa de interés debe ser mayor o igual a 0"),{isValid:Object.keys(r).length===0,errors:r}}const yt=[{value:"15-years",label:"15 años fijos",years:15},{value:"20-years",label:"20 años fijos",years:20},{value:"30-years",label:"30 años fijos",years:30},{value:"40-years",label:"40 años fijos",years:40}],Ss=yt.map(e=>({value:e.value,label:e.label})),he={propertyPrice:2e7,downPayment:2e5,loanProgram:"30-years",interestRate:6.5},Ne={principalAndInterest:"#0a2540",propertyTax:"#4da6c7",hoaFees:"#7fc9e3"},vt=v.forwardRef(({initialPropertyPrice:e=he.propertyPrice,initialDownPayment:r=he.downPayment,initialLoanProgram:s=he.loanProgram,initialInterestRate:o=he.interestRate,showPropertyTax:a=!1,showHoaFees:n=!1,className:l,onCalculationChange:i},c)=>{const[d,m]=v.useState(e),[u,h]=v.useState(r),[C,y]=v.useState(s),[k,P]=v.useState(o),[E,z]=v.useState(0),[w,S]=v.useState(0),M=v.useMemo(()=>{const b=yt.find(W=>W.value===C)?.years||30;return bt({propertyPrice:d,downPayment:u,loanTerm:b,interestRate:k,propertyTax:a?E:void 0,hoaFees:n?w:void 0})},[d,u,C,k,E,w,a,n]);v.useEffect(()=>{i?.(M)},[M,i]);const F=v.useMemo(()=>{const R=[{label:"Principal e Intereses",value:M.breakdown.principalAndInterest,color:Ne.principalAndInterest}];return a&&M.breakdown.propertyTax>0&&R.push({label:"Impuesto Predial",value:M.breakdown.propertyTax,color:Ne.propertyTax}),n&&M.breakdown.hoaFees>0&&R.push({label:"Cuota HOA",value:M.breakdown.hoaFees,color:Ne.hoaFees}),R},[M,a,n]);return t.jsx("div",{ref:c,className:g("w-full",l),children:t.jsx(Ie,{padding:"lg",className:"w-full",children:t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx(I,{variant:"h2",className:"mb-2",children:"Calculadora de Hipotecas"}),t.jsx(I,{variant:"body",color:"secondary",className:"max-w-2xl",children:"Calcule el pago mensual de su hipoteca, incluyendo capital e intereses, impuestos prediales y cuota de la asociación de propietarios. Ajuste los valores para obtener una tasa más precisa."})]}),t.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[t.jsxs("div",{className:"space-y-4",children:[t.jsx(ee,{label:"Precio de la propiedad",type:"number",value:d,onChange:R=>m(Number(R.target.value)),suffix:"MXN",min:0,step:1e4}),t.jsx(ee,{label:"Enganche",type:"number",value:u,onChange:R=>h(Number(R.target.value)),suffix:"MXN",min:0,step:1e4}),t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(ze,{label:"Programa de préstamos",value:C,onChange:R=>y(R.target.value),options:Ss}),t.jsx(ee,{label:"Tasa de interés",type:"number",value:k,onChange:R=>P(Number(R.target.value)),suffix:"%",min:0,max:100,step:.1})]}),a&&t.jsx(ee,{label:"Impuesto predial mensual",type:"number",value:E,onChange:R=>z(Number(R.target.value)),suffix:"MXN",min:0,step:100}),n&&t.jsx(ee,{label:"Cuota HOA mensual",type:"number",value:w,onChange:R=>S(Number(R.target.value)),suffix:"MXN",min:0,step:100})]}),t.jsxs("div",{className:"flex flex-col items-center justify-center",children:[t.jsx(Re,{segments:F,size:320,innerRadiusRatio:.65,centerContent:t.jsxs("div",{className:"text-center",children:[t.jsx(I,{variant:"h1",className:"font-bold mb-1",children:oe(M.totalMonthlyPayment)}),t.jsx(I,{variant:"body-sm",color:"secondary",children:"Tu Pago"})]}),showLegend:!0,legendPosition:"bottom"}),t.jsxs("div",{className:"mt-6 text-center space-y-1",children:[t.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-success",children:[t.jsx(ps,{className:"h-4 w-4"}),t.jsx("span",{className:"font-medium",children:"Trending up by 5.2% this month"})]}),t.jsx(I,{variant:"caption",color:"secondary",children:"Showing total visitors for the last 6 months"})]})]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 pt-4 border-t",children:[t.jsxs("div",{children:[t.jsx(I,{variant:"caption",color:"secondary",className:"mb-1",children:"Monto del préstamo"}),t.jsx(I,{variant:"body",weight:"semibold",children:oe(M.loanPrincipal)})]}),t.jsxs("div",{children:[t.jsx(I,{variant:"caption",color:"secondary",className:"mb-1",children:"Pago mensual"}),t.jsx(I,{variant:"body",weight:"semibold",children:oe(M.monthlyPayment)})]}),t.jsxs("div",{children:[t.jsx(I,{variant:"caption",color:"secondary",className:"mb-1",children:"Interés total"}),t.jsx(I,{variant:"body",weight:"semibold",children:oe(M.totalInterest)})]}),t.jsxs("div",{children:[t.jsx(I,{variant:"caption",color:"secondary",className:"mb-1",children:"Total a pagar"}),t.jsx(I,{variant:"body",weight:"semibold",children:oe(M.totalAmount)})]})]})]})})})});vt.displayName="MortgageCalculator";const Ps=e=>{switch(e){case"sm":return"p-4";case"md":return"p-6";case"lg":return"p-8";default:return"p-0"}},ye=({children:e,header:r,sidebar:s,footer:o,padding:a="md"})=>{const n=g("min-h-screen flex flex-col"),l=g("bg-card border-b border-border z-10"),i=g("flex flex-1"),c=g("w-70 bg-card border-r border-border p-6"),d=g("flex-1 flex flex-col"),m=g("flex-1 mx-auto w-full max-w-7xl",Ps(a));return t.jsxs("div",{className:n,children:[r&&t.jsx("header",{className:l,children:r}),t.jsxs("div",{className:i,children:[s&&t.jsx("aside",{className:c,children:s}),t.jsx("div",{className:d,children:t.jsx("main",{className:m,children:e})})]}),o&&t.jsx("footer",{className:"bg-card border-t border-border mt-auto",children:o})]})},Es=({children:e,header:r,sidebar:s})=>t.jsx(ye,{header:r,sidebar:s,padding:"lg",children:t.jsx("div",{className:"max-w-screen-2xl",children:e})}),Is=({children:e,title:r,subtitle:s})=>t.jsx(ye,{padding:"lg",children:t.jsxs("div",{className:"max-w-md mx-auto",children:[t.jsxs("div",{className:"text-center mb-8",children:[r&&t.jsx(I,{variant:"h2",className:"mb-2",children:r}),s&&t.jsx(I,{variant:"body",color:"muted",children:s})]}),e]})}),zs=({children:e,header:r,footer:s})=>t.jsx(ye,{header:r,footer:s,padding:"none",children:e}),Rs={name:"light",colors:{primary:"#007bff",secondary:"#6c757d",success:"#28a745",warning:"#ffc107",error:"#dc3545",info:"#17a2b8",background:"#ffffff",surface:"#f8f9fa",text:"#212529",textSecondary:"#6c757d",border:"#dee2e6",borderLight:"#e9ecef"},shapes:{borderRadius:{small:"4px",medium:"8px",large:"12px",round:"50%"},borderWidth:{thin:"1px",medium:"2px",thick:"3px"}},typography:{fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xxl:"1.5rem"},fontWeight:{light:300,regular:400,medium:500,bold:700},lineHeight:{tight:1.25,normal:1.5,relaxed:1.75}},spacing:{xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem",xxl:"3rem"},shadows:{none:"none",small:"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)",medium:"0 3px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12)",large:"0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.10)",xl:"0 15px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.05)"}},As={name:"dark",colors:{primary:"#0d6efd",secondary:"#6c757d",success:"#198754",warning:"#fd7e14",error:"#dc3545",info:"#0dcaf0",background:"#121212",surface:"#1e1e1e",text:"#ffffff",textSecondary:"#adb5bd",border:"#495057",borderLight:"#343a40"},shapes:{borderRadius:{small:"4px",medium:"8px",large:"12px",round:"50%"},borderWidth:{thin:"1px",medium:"2px",thick:"3px"}},typography:{fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xxl:"1.5rem"},fontWeight:{light:300,regular:400,medium:500,bold:700},lineHeight:{tight:1.25,normal:1.5,relaxed:1.75}},spacing:{xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem",xxl:"3rem"},shadows:{none:"none",small:"0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4)",medium:"0 3px 6px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3)",large:"0 10px 20px rgba(0, 0, 0, 0.4), 0 3px 6px rgba(0, 0, 0, 0.3)",xl:"0 15px 25px rgba(0, 0, 0, 0.4), 0 5px 10px rgba(0, 0, 0, 0.3)"}},Ls={name:"corporate",colors:{primary:"#1a365d",secondary:"#2d3748",success:"#38a169",warning:"#d69e2e",error:"#e53e3e",info:"#3182ce",background:"#f7fafc",surface:"#ffffff",text:"#1a202c",textSecondary:"#4a5568",border:"#e2e8f0",borderLight:"#edf2f7"},shapes:{borderRadius:{small:"2px",medium:"4px",large:"6px",round:"50%"},borderWidth:{thin:"1px",medium:"2px",thick:"3px"}},typography:{fontFamily:'Georgia, "Times New Roman", serif',fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xxl:"1.5rem"},fontWeight:{light:300,regular:400,medium:500,bold:700},lineHeight:{tight:1.25,normal:1.5,relaxed:1.75}},spacing:{xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem",xxl:"3rem"},shadows:{none:"none",small:"0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06)",medium:"0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06)",large:"0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04)"}},Ts={name:"minimal",colors:{primary:"#000000",secondary:"#666666",success:"#00aa00",warning:"#ffaa00",error:"#aa0000",info:"#00aaaa",background:"#ffffff",surface:"#fafafa",text:"#000000",textSecondary:"#666666",border:"#cccccc",borderLight:"#e0e0e0"},shapes:{borderRadius:{small:"0px",medium:"0px",large:"0px",round:"50%"},borderWidth:{thin:"1px",medium:"2px",thick:"3px"}},typography:{fontFamily:"Helvetica, Arial, sans-serif",fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xxl:"1.5rem"},fontWeight:{light:300,regular:400,medium:500,bold:700},lineHeight:{tight:1.25,normal:1.5,relaxed:1.75}},spacing:{xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem",xxl:"3rem"},shadows:{none:"none",small:"none",medium:"none",large:"none",xl:"none"}},Ce={light:Rs,dark:As,corporate:Ls,minimal:Ts},wt=xe.createEvent(),kt=xe.createEvent(),jt=xe.createEvent(),Q=xe.createStore(Ce.light).on(wt,(e,r)=>Ce[r]||e).on(kt,(e,r)=>r).on(jt,()=>Ce.light),$s=Q.map(e=>e.name),Vs=Q.map(e=>e.colors);Q.map(e=>e.shapes);Q.map(e=>e.typography);Q.map(e=>e.spacing);Q.map(e=>e.shadows);const Nt=A.createContext(null),Fs=()=>{const e=A.useContext(Nt);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e},_s=({children:e})=>{const s={theme:Lt.useUnit(Q)};return t.jsx(Nt.Provider,{value:s,children:e})},Ds={spacing:{xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem","3xl":"4rem"},radius:{none:"0",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},typography:{fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}]},fontWeight:{thin:"100",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"}},shadows:{none:"none",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",DEFAULT:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",md:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",lg:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",xl:"0 25px 50px -12px rgb(0 0 0 / 0.25)"},zIndex:{dropdown:1e3,sticky:1020,fixed:1030,modalBackdrop:1040,modal:1050,popover:1060,tooltip:1070,toast:1080},duration:{instant:"0ms",fast:"150ms",normal:"300ms",slow:"500ms"},easing:{linear:"linear",in:"ease-in",out:"ease-out",inOut:"ease-in-out"}},Ct={button:{size:{sm:"h-9 px-3 text-sm",md:"h-10 px-4 py-2",lg:"h-11 px-8",icon:"h-10 w-10"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"}},input:{size:{sm:"h-9 px-3 text-sm",md:"h-10 px-3 py-2",lg:"h-11 px-3 py-2"}},card:{variant:{default:"bg-card text-card-foreground",elevated:"bg-card text-card-foreground shadow-lg",outlined:"bg-card text-card-foreground border-2"}}},Mt={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},St={withOpacity:(e,r)=>r!==void 0?`hsl(var(${e}) / ${r})`:`hsl(var(${e}))`,get:e=>`hsl(var(--${e}))`},Pt={generateId:(e="ds")=>`${e}-${Math.random().toString(36).substr(2,9)}`,focus:{visible:"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",within:"focus-within:outline-none focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2"},sr:{only:"absolute w-px h-px p-0 -m-px overflow-hidden whitespace-nowrap border-0",not:"not-sr-only"}},Et={icon:{xs:"w-3 h-3",sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6",xl:"w-8 h-8"},avatar:{xs:"w-6 h-6",sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12",xl:"w-16 h-16"}},It={fade:{in:"animate-in fade-in duration-200",out:"animate-out fade-out duration-200"},slide:{inFromLeft:"animate-in slide-in-from-left duration-200",inFromRight:"animate-in slide-in-from-right duration-200",inFromTop:"animate-in slide-in-from-top duration-200",inFromBottom:"animate-in slide-in-from-bottom duration-200"},scale:{in:"animate-in scale-in duration-200",out:"animate-out scale-out duration-200"}},zt={container:{responsive:"container mx-auto px-4 sm:px-6 lg:px-8",fluid:"w-full max-w-none",centered:"container mx-auto px-4 flex items-center justify-center min-h-screen"},grid:{responsive:"grid gap-4 sm:gap-6 lg:gap-8",cols:{1:"grid-cols-1",2:"grid-cols-1 sm:grid-cols-2",3:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",5:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5",6:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6"}},flex:{center:"flex items-center justify-center",between:"flex items-center justify-between",start:"flex items-center justify-start",end:"flex items-center justify-end",col:"flex flex-col",colCenter:"flex flex-col items-center justify-center"}},Rt={isDark:()=>typeof window>"u"?!1:document.documentElement.classList.contains("dark"),toggle:()=>{typeof window>"u"||document.documentElement.classList.toggle("dark")},set:e=>{typeof window>"u"||document.documentElement.classList.toggle("dark",e==="dark")}},At={debounce:(e,r)=>{let s;return(...o)=>{clearTimeout(s),s=setTimeout(()=>e(...o),r)}},throttle:(e,r)=>{let s;return(...o)=>{s||(e(...o),s=!0,setTimeout(()=>s=!1,r))}}},Gs=({href:e,children:r})=>t.jsx("a",{href:e,className:"sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4 focus:z-50 focus:px-4 focus:py-2 focus:bg-primary focus:text-white focus:rounded",children:r});exports.$theme=Q;exports.$themeColors=Vs;exports.$themeName=$s;exports.AuthLayout=Is;exports.Button=Z;exports.Card=Ie;exports.CategoryChips=Ae;exports.Chip=be;exports.CompoundCard=Lr;exports.ConfirmModal=$r;exports.DashboardLayout=Es;exports.DonutChart=Re;exports.EntityDirectory=xt;exports.Input=ee;exports.MarketingLayout=zs;exports.Modal=rt;exports.ModalWithActions=st;exports.MortgageCalculator=vt;exports.PageLayout=ye;exports.PropertyCard=Ns;exports.PropertyGallery=lt;exports.Select=ze;exports.SkipLink=Gs;exports.Text=I;exports.ThemeProvider=_s;exports.a11y=Pt;exports.accessibilityUtils=Pt;exports.animationUtils=It;exports.animations=It;exports.breakpoints=Mt;exports.calculateMortgage=bt;exports.cn=g;exports.colorUtils=St;exports.colors=St;exports.componentSizes=Et;exports.componentVariants=Ct;exports.countEntitiesByCategory=it;exports.designSystem=Ds;exports.filterEntitiesByCategory=at;exports.formatCurrency=oe;exports.formatPercentage=Cs;exports.layout=zt;exports.layoutUtils=zt;exports.performance=At;exports.performanceUtils=At;exports.resetTheme=jt;exports.responsiveBreakpoints=Mt;exports.setCustomTheme=kt;exports.setTheme=wt;exports.sizes=Et;exports.sortEntities=nt;exports.theme=Rt;exports.themeUtils=Rt;exports.useEntityFilter=vs;exports.useTheme=Fs;exports.validateMortgageInput=Ms;exports.variants=Ct;
81
+ */const ys=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],be=G("search",ys);/**
82
+ * @license lucide-react v0.547.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */const vs=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],ws=G("trending-up",vs),ks=K(["flex w-full rounded-md border bg-background px-3 py-2","text-base transition-colors","appearance-none cursor-pointer","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{variant:{default:["border-input","focus-visible:ring-primary"],error:["border-destructive","focus-visible:ring-destructive"],success:["border-success","focus-visible:ring-success"]},selectSize:{sm:"h-8 text-sm",default:"h-10",lg:"h-12 text-lg"}},defaultVariants:{variant:"default",selectSize:"default"}}),js=K(["block text-sm font-medium mb-1.5","transition-colors"],{variants:{variant:{default:"text-foreground",error:"text-destructive",success:"text-success"},required:{true:"after:content-['*'] after:ml-0.5 after:text-destructive",false:""}},defaultVariants:{variant:"default",required:!1}}),Ns=K("mt-1.5 text-sm",{variants:{variant:{default:"text-muted-foreground",error:"text-destructive",success:"text-success"}},defaultVariants:{variant:"default"}}),we=x.forwardRef(({className:e,containerClassName:r,labelClassName:s,variant:o,selectSize:a,label:n,helperText:l,error:i,required:c,options:d,placeholder:u,id:m,...g},j)=>{const v=x.useId(),k=m||v,P=`${k}-helper`,T=`${k}-error`,z=i?"error":o,w=i||l;return t.jsxs("div",{className:p("w-full",r),children:[n&&t.jsx("label",{htmlFor:k,className:p(js({variant:z,required:c}),s),children:n}),t.jsxs("div",{className:"relative",children:[t.jsxs("select",{id:k,ref:j,className:p(ks({variant:z,selectSize:a}),"pr-10",e),"aria-invalid":i?"true":"false","aria-describedby":w?i?T:P:void 0,...g,children:[u&&t.jsx("option",{value:"",disabled:!0,children:u}),d.map(M=>t.jsx("option",{value:M.value,disabled:M.disabled,children:M.label},M.value))]}),t.jsx("div",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:t.jsx(os,{className:"h-4 w-4"})})]}),w&&t.jsx("p",{id:i?T:P,className:Ns({variant:z}),role:i?"alert":void 0,children:w})]})});we.displayName="Select";function Cs(e,r,s,o,a,n){const l=(e-90)*Math.PI/180,i=(r-90)*Math.PI/180,c=a+s*Math.cos(l),d=n+s*Math.sin(l),u=a+s*Math.cos(i),m=n+s*Math.sin(i),g=a+o*Math.cos(i),j=n+o*Math.sin(i),v=a+o*Math.cos(l),k=n+o*Math.sin(l),P=r-e>180?1:0;return[`M ${c} ${d}`,`A ${s} ${s} 0 ${P} 1 ${u} ${m}`,`L ${g} ${j}`,`A ${o} ${o} 0 ${P} 0 ${v} ${k}`,"Z"].join(" ")}function Ss(e,r,s,o,a){const n=e.reduce((c,d)=>c+d.value,0);if(n===0)return[];let l=0;const i=[];return e.forEach(c=>{const d=c.value/n*360,u=l,m=l+d,g=Cs(u,m,r,s,o,a);i.push({path:g,segment:c}),l=m}),i}const Le=x.forwardRef(({segments:e,size:r=300,innerRadiusRatio:s=.6,centerContent:o,showLegend:a=!1,legendPosition:n="bottom",className:l,onSegmentClick:i,onSegmentHover:c},d)=>{const[u,m]=x.useState(null),g=r/2,j=r/2,v=2,k=r/2-v,P=k*s,T=Ss(e,k,P,g,j),z=M=>{m(M),c?.(M)},w=n==="left"||n==="right";return t.jsxs("div",{ref:d,className:p("flex gap-4",w?"flex-row items-center":"flex-col items-center",n==="right"&&"flex-row-reverse",n==="top"&&"flex-col-reverse",l),children:[t.jsxs("div",{className:"relative inline-block",style:{width:r,height:r},children:[t.jsx("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,children:T.map(({path:M,segment:S},A)=>t.jsx("path",{d:M,fill:S.color,stroke:"white",strokeWidth:v,className:p("transition-opacity duration-200",u&&u!==S&&"opacity-50",i&&"cursor-pointer"),onMouseEnter:()=>z(S),onMouseLeave:()=>z(null),onClick:()=>i?.(S)},`${S.label}-${A}`))}),o&&t.jsx("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-center",style:{maxWidth:P*1.8},children:o})]}),a&&t.jsx("div",{className:p("flex gap-2",w?"flex-col":"flex-row flex-wrap justify-center"),children:e.map((M,S)=>t.jsxs("div",{className:p("flex items-center gap-2 text-sm transition-opacity duration-200",u&&u!==M&&"opacity-50",i&&"cursor-pointer"),onMouseEnter:()=>z(M),onMouseLeave:()=>z(null),onClick:()=>i?.(M),children:[t.jsx("div",{className:"h-3 w-3 rounded-sm flex-shrink-0",style:{backgroundColor:M.color}}),t.jsx("span",{className:"text-muted-foreground",children:M.label})]},`${M.label}-${S}`))})]})});Le.displayName="DonutChart";function dt(e,r){return!r||r==="all"?e:e.filter(s=>s.categoryId===r)}function ut(e,r){const s=[...e];return s.sort((o,a)=>{let n="",l="";return r.column==="title"?(n=o.title.toLowerCase(),l=a.title.toLowerCase()):r.column==="metric"&&(n=qe(o.metricValue),l=qe(a.metricValue)),n<l?r.direction==="asc"?-1:1:n>l?r.direction==="asc"?1:-1:0}),s}function qe(e){if(!e)return 0;const r=e.match(/[\d.]+/);return r?parseFloat(r[0]):0}function mt(e,r){return r==="all"?e.length:e.filter(s=>s.categoryId===r).length}function Ms(e,r,s={}){const{initialCategory:o=null,initialSort:a=null,enableSearch:n=!1}=s,[l,i]=R.useState(o),[c,d]=R.useState(a),[u,m]=R.useState(""),g=R.useMemo(()=>dt(e,l),[e,l]),j=R.useMemo(()=>{if(!n||!u.trim())return g;const T=u.toLowerCase();return g.filter(z=>z.title.toLowerCase().includes(T)||z.subtitle?.toLowerCase().includes(T))},[g,u,n]),v=R.useMemo(()=>c?ut(j,c):j,[j,c]),k=R.useCallback(T=>mt(e,T),[e]),P=R.useCallback(()=>{i(o),d(a),m("")},[o,a]);return{activeCategory:l,setActiveCategory:i,sort:c,setSort:d,searchQuery:u,setSearchQuery:m,filteredEntities:v,getCategoryCount:k,resetFilters:P}}const Ps=K("inline-flex items-center justify-center whitespace-nowrap rounded-full text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",selected:"bg-primary text-primary-foreground hover:bg-primary/90 ring-2 ring-primary ring-offset-2"},size:{default:"h-8 px-4 py-1.5",sm:"h-7 px-3 py-1 text-xs",lg:"h-9 px-5 py-2"}},defaultVariants:{variant:"default",size:"default"}}),ke=x.forwardRef(({className:e,variant:r,size:s,icon:o,selected:a,dismissible:n,onDismiss:l,children:i,disabled:c,...d},u)=>{const m=a?"selected":r;return t.jsxs("button",{type:"button",className:p(Ps({variant:m,size:s,className:e})),ref:u,disabled:c,"aria-disabled":c?"true":void 0,"aria-pressed":a?"true":"false",...d,children:[o&&t.jsx("span",{className:"mr-1.5 inline-flex items-center","aria-hidden":"true",children:o}),t.jsx("span",{children:i}),n&&l&&t.jsx("button",{type:"button",className:"ml-1.5 inline-flex items-center hover:opacity-70",onClick:g=>{g.stopPropagation(),l()},"aria-label":"Remove",children:"×"})]})});ke.displayName="Chip";const $e=x.forwardRef(({categories:e,activeCategory:r,onCategoryChange:s,showCount:o,getCategoryCount:a,className:n},l)=>t.jsx("div",{ref:l,role:"tablist","aria-label":"Filter by category",className:p("flex flex-wrap gap-2 overflow-x-auto pb-2",n),children:e.map(i=>{const c=r===i.id,d=o&&a?a(i.id):void 0;return t.jsxs(ke,{role:"tab","aria-selected":c,"aria-controls":`entities-panel-${i.id}`,selected:c,variant:c?"selected":"outline",icon:typeof i.icon=="string"?i.icon:i.icon?x.createElement(i.icon):void 0,onClick:()=>s(c?null:i.id),children:[i.label,d!==void 0&&t.jsxs("span",{className:"ml-1.5 opacity-70",children:["(",d,")"]})]},i.id)})}));$e.displayName="CategoryChips";const Ts=(e,r)=>{if(r)return"text-accent";switch(e.variant||Es(e.type)){case"primary":return"bg-primary text-primary-foreground";case"secondary":return"bg-secondary text-secondary-foreground";case"success":return"bg-success text-success-foreground";case"warning":return"bg-warning text-warning-foreground";case"error":return"bg-error text-error-foreground";case"info":return"bg-info text-info-foreground";default:return"bg-secondary text-secondary-foreground"}},Es=e=>{switch(e){case"Venta":return"primary";case"Desarrollo":return"success";case"Renta":return"info";case"Remate":return"warning";default:return"secondary"}},zs=({property:e,className:r,onLike:s,onImageClick:o,showLikeButton:a=!0,showNavigation:n=!0,variant:l="default",badgeColors:i})=>{const[c,d]=R.useState(0),[u,m]=R.useState(!1),[g,j]=R.useState(!1),v=()=>{d(N=>N===e.images.length-1?0:N+1),j(!1)},k=()=>{d(N=>N===0?e.images.length-1:N-1),j(!1)},P=N=>{N.preventDefault(),N.stopPropagation();const F=!u;m(F),s?.(e.id,F)},T=N=>{N.preventDefault(),N.stopPropagation(),o?.(c,e.id)},z=(N,F)=>!N||!F?"Price not available":`$${N.toLocaleString()} ${F}`,w=l==="compact",M=p("relative overflow-hidden bg-card shadow-md transition-all duration-300 ease-out cursor-pointer",w?"rounded-xl hover:shadow-lg":"rounded-2xl hover:-translate-y-1 hover:shadow-xl",w&&"border px-4",r),S=p("relative overflow-hidden",w&&"rounded-xl px-4 shadow-md"),A=p("w-full h-full object-cover",!w&&"transition-transform duration-300 hover:scale-105"),E=p("absolute z-10 flex flex-wrap gap-2",w?"top-3 left-3":"top-4 left-4"),b=p("text-xs font-semibold",w?"rounded-full px-3 py-1":"px-2 py-1 rounded-lg font-medium uppercase tracking-wide"),_=p("absolute z-10 rounded-full cursor-pointer transition-all duration-200",w?"top-3 right-3 p-1 shadow-md":"top-4 right-4 bg-background/90 backdrop-blur-sm border border-border/20 text-foreground w-10 h-10 flex items-center justify-center hover:bg-background hover:scale-105"),U=p("absolute top-1/2 -translate-y-1/2 z-10 bg-background/90 backdrop-blur-sm border border-border/20 text-foreground w-10 h-10 rounded-full p-0 flex items-center justify-center cursor-pointer transition-all duration-200 hover:bg-background hover:scale-105"),re=p("absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-1 z-10"),Z=p("w-2 h-2 rounded-full border-none cursor-pointer transition-all duration-200 hover:scale-120"),se=p(w?"p-2":"p-6"),Y=p("font-semibold text-foreground mb-2 line-clamp-2 leading-tight",w?"text-base":"text-lg font-bold"),W=p("font-bold text-primary mb-2",w?"text-lg":"text-xl"),D=p("text-muted-foreground mb-4",w?"text-sm flex items-center gap-1":"text-base"),B=p("flex items-center mb-4",w?"justify-between mt-3":"gap-4"),y=p("flex items-center gap-1 text-muted-foreground","text-sm"),ue=p("text-sm text-muted-foreground line-clamp-2",w&&"mt-2"),le=!(e.images&&e.images.length>0)||g,ce=()=>t.jsxs("div",{className:"w-full h-full bg-gradient-to-br from-primary/10 via-primary/5 to-secondary/10 flex flex-col items-center justify-center gap-3",children:[t.jsx("div",{className:"rounded-full bg-primary/10 p-6",children:t.jsx(fs,{size:w?32:48,className:"text-primary/40"})}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"No image available"})]}),$=t.jsxs("div",{className:M,children:[t.jsxs("div",{className:p(S,w?"h-52":"aspect-[4/3]"),children:[le?t.jsx(ce,{}):t.jsx("img",{src:e.images[c],alt:e.title,className:A,onClick:o?T:void 0,onError:()=>j(!0)}),t.jsx("div",{className:E,children:e.transactionTypes.map((N,F)=>{const q=i?.[N.type];return t.jsx("span",{className:p(b,Ts(N,q)),style:q?{backgroundColor:q}:void 0,children:N.type},F)})}),a&&t.jsx("button",{onClick:P,className:_,"aria-label":u?"Unlike property":"Like property",children:w?t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:u?"red":"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:u?"red":"currentColor",className:"h-5 w-5",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733C11.285 4.876 9.623 3.75 7.688 3.75 5.099 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"})}):t.jsx(ms,{size:20,fill:u?"currentColor":"none",className:u?"text-destructive":""})}),!w&&n&&!le&&e.images.length>1&&t.jsxs(t.Fragment,{children:[t.jsx(H,{onClick:N=>{N.preventDefault(),N.stopPropagation(),k()},className:p(U,"left-4"),"aria-label":"Previous image",children:t.jsx(ns,{size:20})}),t.jsx(H,{onClick:N=>{N.preventDefault(),N.stopPropagation(),v()},className:p(U,"right-4"),"aria-label":"Next image",children:t.jsx(ls,{size:20})}),t.jsx("div",{className:re,children:e.images.map((N,F)=>t.jsx("button",{className:p(Z,F===c?"bg-background":"bg-background/50"),onClick:q=>{q.preventDefault(),q.stopPropagation(),d(F)},"aria-label":`Go to image ${F+1}`,"aria-current":F===c},F))})]})]}),t.jsxs("div",{className:se,children:[t.jsx("h3",{className:Y,children:e.title}),t.jsx("p",{className:W,children:z(e.price?.amount,e.price?.currency)}),t.jsxs("p",{className:D,children:[w&&t.jsx(gs,{size:14}),e.location.city,", ",e.location.state]}),t.jsxs("div",{className:B,children:[t.jsxs("div",{className:y,children:[t.jsx(es,{size:16}),t.jsx("span",{children:e.features.bedrooms})]}),t.jsxs("div",{className:y,children:[t.jsx(Qr,{size:16}),t.jsx("span",{children:e.features.bathrooms})]}),t.jsxs("div",{className:y,children:[t.jsx(rs,{size:16}),t.jsx("span",{children:e.features.parking})]}),t.jsxs("div",{className:y,children:[t.jsx(bs,{size:16}),t.jsxs("span",{children:[e.features.area," m²"]})]})]}),e.amenities.length>0&&t.jsx("p",{className:ue,children:e.amenities.join(", ")})]})]});return e.href?t.jsx("a",{href:e.href,className:"no-underline text-inherit",children:$}):$},pt=R.forwardRef(({images:e,transactionType:r,totalPhotos:s,onViewAllClick:o,onImageClick:a,className:n},l)=>{const i=e.slice(0,5),c=d=>{a?.(d)};return t.jsxs("div",{ref:l,className:p("w-full h-full grid grid-cols-2 gap-2",n),children:[t.jsx("div",{className:"relative col-span-1 row-span-2 rounded-2xl overflow-hidden group cursor-pointer",children:i[0]?t.jsxs(t.Fragment,{children:[t.jsx("img",{src:i[0],alt:"Property main view",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>c(0)}),r&&t.jsx("div",{className:"absolute top-4 left-4 bg-white rounded-full px-4 py-2 shadow-md",children:t.jsx("span",{className:"text-sm font-medium text-foreground",children:r})})]}):t.jsx("div",{className:"w-full h-full bg-muted flex items-center justify-center",children:t.jsx("span",{className:"text-muted-foreground",children:"No image"})})}),t.jsx("div",{className:"relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer",children:i[1]?t.jsx("img",{src:i[1],alt:"Property view 2",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>c(1)}):t.jsx("div",{className:"w-full h-full bg-muted"})}),t.jsx("div",{className:"relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer",children:i[2]?t.jsx("img",{src:i[2],alt:"Property view 3",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>c(2)}):t.jsx("div",{className:"w-full h-full bg-muted"})}),t.jsx("div",{className:"relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer",children:i[3]?t.jsx("img",{src:i[3],alt:"Property view 4",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>c(3)}):t.jsx("div",{className:"w-full h-full bg-muted"})}),t.jsx("div",{className:"relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer",children:i[4]?t.jsxs(t.Fragment,{children:[t.jsx("img",{src:i[4],alt:"Property view 5",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>c(4)}),s&&s>5&&t.jsx("div",{className:"absolute bottom-4 right-4",children:t.jsxs("button",{onClick:d=>{d.stopPropagation(),o?.()},className:"flex items-center gap-2 bg-white rounded-full px-4 py-2 shadow-md hover:shadow-lg transition-all duration-200 hover:scale-105",children:[t.jsx(ds,{className:"w-4 h-4 text-foreground"}),t.jsxs("span",{className:"text-sm font-medium text-foreground",children:["Ver las ",s," fotos"]})]})})]}):t.jsx("div",{className:"w-full h-full bg-muted"})})]})});pt.displayName="PropertyGallery";const ft=x.forwardRef(({title:e,description:r,className:s},o)=>t.jsxs("div",{ref:o,className:p("space-y-1.5",s),children:[t.jsx(I,{variant:"h2",className:"font-bold",children:e}),r&&t.jsx(I,{variant:"body",className:"text-muted-foreground",children:r})]}));ft.displayName="EntityDirectoryHeader";const ht=x.forwardRef(({entity:e,categories:r,showIcon:s=!0,showCategoryBadge:o=!0,showMetric:a=!0,compact:n=!1,className:l},i)=>{const c=r?.find(g=>g.id===e.categoryId),d=!!e.onClick,u=()=>{e.onClick&&!e.disabled&&e.onClick()},m=g=>{d&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),u())};return t.jsxs("div",{ref:i,role:d?"button":"listitem",tabIndex:d&&!e.disabled?0:void 0,onClick:u,onKeyDown:m,"aria-disabled":e.disabled,className:p("flex items-center gap-4 border-b border-border transition-colors",n?"p-3":"p-4",d&&!e.disabled&&"cursor-pointer hover:bg-accent/50 focus-visible:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",e.disabled&&"opacity-50 cursor-not-allowed",l),children:[s&&t.jsx("div",{className:p("flex-shrink-0 flex items-center justify-center bg-muted rounded-full",n?"w-8 h-8 text-lg":"w-10 h-10 text-xl"),"aria-hidden":"true",children:typeof e.icon=="string"?t.jsx("span",{children:e.icon}):e.icon?x.createElement(e.icon):t.jsx("span",{className:"text-muted-foreground",children:"•"})}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx(I,{variant:n?"body-sm":"body",className:"font-semibold truncate",children:e.title}),e.subtitle&&t.jsx(I,{variant:n?"caption":"body-sm",className:"text-muted-foreground truncate",children:e.subtitle})]}),o&&c&&t.jsx(ke,{variant:"secondary",size:n?"sm":"default",className:"flex-shrink-0 bg-foreground text-background hover:bg-foreground/90","aria-label":`Category: ${c.label}`,children:c.label}),a&&e.metricValue&&t.jsxs("div",{className:"flex-shrink-0 text-right min-w-[4rem]",children:[t.jsx(I,{variant:n?"body-sm":"body",className:"font-medium",children:e.metricValue}),e.metricLabel&&t.jsx(I,{variant:"caption",className:"text-muted-foreground",children:e.metricLabel})]})]})});ht.displayName="EntityDirectoryListItem";const gt=x.forwardRef(({columns:e,showIcon:r,sort:s,onSortChange:o,compact:a,className:n},l)=>{const i=m=>{if(!o)return;const g=s?.column===m&&s?.direction==="asc"?"desc":"asc";o({column:m,direction:g})},c=m=>{i(m)},d=(m,g)=>{(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),i(g))},u=m=>m!=="title"&&m!=="metric"?null:!s||s.column!==m?t.jsx("span",{className:"ml-1 text-muted-foreground opacity-50","aria-hidden":"true",children:"⇅"}):t.jsx("span",{className:"ml-1","aria-hidden":"true",children:s.direction==="asc"?"↑":"↓"});return t.jsxs("div",{ref:l,role:"row",className:p("flex items-center gap-4 bg-background border-b border-border font-medium text-sm text-muted-foreground",a?"px-3 py-2":"px-4 py-3",n),children:[r&&t.jsx("div",{className:a?"w-8":"w-10"}),e.map(m=>{const g=m.sortable&&(m.key==="title"||m.key==="metric"),j=s?.column===m.key;return t.jsxs("div",{role:"columnheader","aria-sort":j?s?.direction==="asc"?"ascending":"descending":void 0,className:p(m.key==="title"&&"flex-1",m.key==="category"&&"w-40",m.key==="metric"&&"w-24 text-right",m.align==="center"&&"text-center",m.align==="right"&&"text-right",g&&"cursor-pointer hover:text-foreground transition-colors select-none",j&&"text-foreground"),style:m.width?{width:m.width}:void 0,onClick:g&&(m.key==="title"||m.key==="metric")?()=>c(m.key):void 0,tabIndex:g?0:void 0,onKeyDown:g&&(m.key==="title"||m.key==="metric")?v=>d(v,m.key):void 0,children:[m.label,g&&u(m.key)]},m.key)})]})});gt.displayName="EntityDirectoryTableHeader";const xt=x.forwardRef(({entities:e,categories:r,showIcons:s=!0,showCategoryBadges:o=!0,showMetric:a=!0,metricLabel:n,sortable:l=!1,sort:i,onSortChange:c,compact:d=!1,renderItem:u,className:m},g)=>{const j=[{key:"title",label:n?"Nombre":"Name",sortable:l},...o?[{key:"category",label:"Categoría",sortable:!1}]:[],...a&&n?[{key:"metric",label:n,sortable:l,align:"right"}]:[]];return t.jsxs("div",{ref:g,role:"table","aria-label":"Entity directory",className:p("border border-border rounded-lg overflow-hidden",m),children:[t.jsx(gt,{columns:j,showIcon:s,sort:i,onSortChange:c,compact:d}),t.jsx("div",{role:"rowgroup",children:e.map(v=>u?t.jsx(x.Fragment,{children:u(v)},v.id):t.jsx(ht,{entity:v,categories:r,showIcon:s,showCategoryBadge:o,showMetric:a,compact:d},v.id))})]})});xt.displayName="EntityDirectoryList";const bt=x.forwardRef(({message:e="No entities found",icon:r,action:s,className:o},a)=>t.jsxs("div",{ref:a,role:"status","aria-live":"polite",className:p("flex flex-col items-center justify-center py-12 px-4 text-center",o),children:[r&&t.jsx("div",{className:"mb-4 text-4xl opacity-50","aria-hidden":"true",children:r}),t.jsx(I,{variant:"body-lg",className:"text-muted-foreground mb-4",children:e}),s&&t.jsx(H,{variant:"outline",onClick:s.onClick,children:s.label})]}));bt.displayName="EntityDirectoryEmptyState";const yt=x.forwardRef(({error:e,onRetry:r,className:s},o)=>{const a=typeof e=="string"?e:e.message;return t.jsxs("div",{ref:o,role:"alert","aria-live":"assertive",className:p("flex flex-col items-center justify-center py-12 px-4 text-center",s),children:[t.jsx("div",{className:"mb-4 text-4xl","aria-hidden":"true",children:"⚠️"}),t.jsx(I,{variant:"body-lg",className:"text-destructive mb-2 font-semibold",children:"Error"}),t.jsx(I,{variant:"body",className:"text-muted-foreground mb-4",children:a}),r&&t.jsx(H,{variant:"outline",onClick:r,children:"Try Again"})]})});yt.displayName="EntityDirectoryErrorState";const vt=x.forwardRef(({rows:e=5,className:r},s)=>t.jsxs("div",{ref:s,role:"status","aria-live":"polite","aria-label":"Loading entities",className:p("space-y-3",r),children:[Array.from({length:e}).map((o,a)=>t.jsxs("div",{className:"flex items-center gap-4 p-4 border border-border rounded-lg animate-pulse",children:[t.jsx("div",{className:"w-10 h-10 bg-muted rounded-full flex-shrink-0"}),t.jsxs("div",{className:"flex-1 space-y-2",children:[t.jsx("div",{className:"h-4 bg-muted rounded w-1/3"}),t.jsx("div",{className:"h-3 bg-muted rounded w-1/2"})]}),t.jsx("div",{className:"h-6 bg-muted rounded-full w-24 flex-shrink-0"}),t.jsx("div",{className:"h-4 bg-muted rounded w-16 flex-shrink-0"})]},a)),t.jsx("span",{className:"sr-only",children:"Loading..."})]}));vt.displayName="EntityDirectoryLoadingState";const wt=x.forwardRef(({value:e,onChange:r,placeholder:s="Search entities...",className:o},a)=>t.jsxs("div",{className:p("relative",o),children:[t.jsx("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none",children:t.jsx("svg",{className:"w-4 h-4 text-muted-foreground","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",children:t.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"})})}),t.jsx("input",{ref:a,type:"search",value:e,onChange:n=>r(n.target.value),placeholder:s,className:p("block w-full pl-10 pr-3 py-2 border border-input rounded-md","bg-background text-foreground placeholder:text-muted-foreground","focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent","transition-colors"),"aria-label":"Search entities"}),e&&t.jsx("button",{type:"button",onClick:()=>r(""),className:"absolute inset-y-0 right-0 flex items-center pr-3 text-muted-foreground hover:text-foreground","aria-label":"Clear search",children:t.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}));wt.displayName="EntityDirectorySearchFilter";const kt=x.forwardRef(({entities:e,categories:r,title:s,description:o,activeCategory:a,onCategoryChange:n,showCategoryCount:l,getCategoryCount:i,enableSearch:c=!1,searchQuery:d="",onSearchChange:u,searchPlaceholder:m,sortable:g=!1,sort:j,onSortChange:v,showIcons:k=!0,showCategoryBadges:P=!0,showMetric:T=!0,metricLabel:z,compact:w=!1,loading:M=!1,error:S,emptyMessage:A,onRetry:E,emptyState:b,errorState:_,loadingState:U,renderItem:re,className:Z,style:se},Y)=>{const W=r&&r.length>0,D=!M&&!S&&e.length===0,B=!M&&!!S;return t.jsxs("div",{ref:Y,className:p("space-y-6",Z),style:se,children:[t.jsx(ft,{title:s,description:o}),W&&n&&t.jsx($e,{categories:r,activeCategory:a,onCategoryChange:n,showCount:l,getCategoryCount:i}),c&&u&&t.jsx(wt,{value:d,onChange:u,placeholder:m}),M&&(U||t.jsx(vt,{})),B&&(_||t.jsx(yt,{error:S,onRetry:E})),D&&(b||t.jsx(bt,{message:A})),!M&&!B&&!D&&t.jsx(xt,{entities:e,categories:r,showIcons:k,showCategoryBadges:P,showMetric:T,metricLabel:z,sortable:g,sort:j,onSortChange:v,compact:w,renderItem:re})]})});kt.displayName="EntityDirectory";function jt(e){const{propertyPrice:r,downPayment:s,loanTerm:o,interestRate:a,propertyTax:n=0,hoaFees:l=0}=e,i=r-s,c=a/100/12,d=o*12;let u;if(c===0)u=i/d;else{const v=Math.pow(1+c,d);u=i*(c*v)/(v-1)}const m=u*d,g=m-i,j=u+n+l;return{monthlyPayment:Math.round(u*100)/100,totalMonthlyPayment:Math.round(j*100)/100,totalAmount:Math.round(m*100)/100,totalInterest:Math.round(g*100)/100,loanPrincipal:Math.round(i*100)/100,breakdown:{principalAndInterest:Math.round(u*100)/100,propertyTax:Math.round(n*100)/100,hoaFees:Math.round(l*100)/100}}}function ae(e,r="MXN"){return new Intl.NumberFormat("es-MX",{style:"currency",currency:r,minimumFractionDigits:0,maximumFractionDigits:0}).format(e)}function Is(e,r=3){return`${e.toFixed(r)} %`}function Rs(e){const r={};return(!e.propertyPrice||e.propertyPrice<=0)&&(r.propertyPrice="El precio de la propiedad debe ser mayor a 0"),(!e.downPayment||e.downPayment<0)&&(r.downPayment="El enganche debe ser mayor o igual a 0"),e.propertyPrice&&e.downPayment&&e.downPayment>=e.propertyPrice&&(r.downPayment="El enganche debe ser menor al precio de la propiedad"),(!e.loanTerm||e.loanTerm<=0)&&(r.loanTerm="El plazo del préstamo debe ser mayor a 0"),(e.interestRate===void 0||e.interestRate<0)&&(r.interestRate="La tasa de interés debe ser mayor o igual a 0"),{isValid:Object.keys(r).length===0,errors:r}}const Nt=[{value:"15-years",label:"15 años fijos",years:15},{value:"20-years",label:"20 años fijos",years:20},{value:"30-years",label:"30 años fijos",years:30},{value:"40-years",label:"40 años fijos",years:40}],As=Nt.map(e=>({value:e.value,label:e.label})),xe={propertyPrice:2e7,downPayment:2e5,loanProgram:"30-years",interestRate:6.5},Pe={principalAndInterest:"#0a2540",propertyTax:"#4da6c7",hoaFees:"#7fc9e3"},Ct=x.forwardRef(({initialPropertyPrice:e=xe.propertyPrice,initialDownPayment:r=xe.downPayment,initialLoanProgram:s=xe.loanProgram,initialInterestRate:o=xe.interestRate,showPropertyTax:a=!1,showHoaFees:n=!1,className:l,onCalculationChange:i},c)=>{const[d,u]=x.useState(e),[m,g]=x.useState(r),[j,v]=x.useState(s),[k,P]=x.useState(o),[T,z]=x.useState(0),[w,M]=x.useState(0),S=x.useMemo(()=>{const b=Nt.find(U=>U.value===j)?.years||30;return jt({propertyPrice:d,downPayment:m,loanTerm:b,interestRate:k,propertyTax:a?T:void 0,hoaFees:n?w:void 0})},[d,m,j,k,T,w,a,n]);x.useEffect(()=>{i?.(S)},[S,i]);const A=x.useMemo(()=>{const E=[{label:"Principal e Intereses",value:S.breakdown.principalAndInterest,color:Pe.principalAndInterest}];return a&&S.breakdown.propertyTax>0&&E.push({label:"Impuesto Predial",value:S.breakdown.propertyTax,color:Pe.propertyTax}),n&&S.breakdown.hoaFees>0&&E.push({label:"Cuota HOA",value:S.breakdown.hoaFees,color:Pe.hoaFees}),E},[S,a,n]);return t.jsx("div",{ref:c,className:p("w-full",l),children:t.jsx(Ae,{padding:"lg",className:"w-full",children:t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx(I,{variant:"h2",className:"mb-2",children:"Calculadora de Hipotecas"}),t.jsx(I,{variant:"body",color:"secondary",className:"max-w-2xl",children:"Calcule el pago mensual de su hipoteca, incluyendo capital e intereses, impuestos prediales y cuota de la asociación de propietarios. Ajuste los valores para obtener una tasa más precisa."})]}),t.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[t.jsxs("div",{className:"space-y-4",children:[t.jsx(te,{label:"Precio de la propiedad",type:"number",value:d,onChange:E=>u(Number(E.target.value)),suffix:"MXN",min:0,step:1e4}),t.jsx(te,{label:"Enganche",type:"number",value:m,onChange:E=>g(Number(E.target.value)),suffix:"MXN",min:0,step:1e4}),t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(we,{label:"Programa de préstamos",value:j,onChange:E=>v(E.target.value),options:As}),t.jsx(te,{label:"Tasa de interés",type:"number",value:k,onChange:E=>P(Number(E.target.value)),suffix:"%",min:0,max:100,step:.1})]}),a&&t.jsx(te,{label:"Impuesto predial mensual",type:"number",value:T,onChange:E=>z(Number(E.target.value)),suffix:"MXN",min:0,step:100}),n&&t.jsx(te,{label:"Cuota HOA mensual",type:"number",value:w,onChange:E=>M(Number(E.target.value)),suffix:"MXN",min:0,step:100})]}),t.jsxs("div",{className:"flex flex-col items-center justify-center",children:[t.jsx(Le,{segments:A,size:320,innerRadiusRatio:.65,centerContent:t.jsxs("div",{className:"text-center",children:[t.jsx(I,{variant:"h1",className:"font-bold mb-1",children:ae(S.totalMonthlyPayment)}),t.jsx(I,{variant:"body-sm",color:"secondary",children:"Tu Pago"})]}),showLegend:!0,legendPosition:"bottom"}),t.jsxs("div",{className:"mt-6 text-center space-y-1",children:[t.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-success",children:[t.jsx(ws,{className:"h-4 w-4"}),t.jsx("span",{className:"font-medium",children:"Trending up by 5.2% this month"})]}),t.jsx(I,{variant:"caption",color:"secondary",children:"Showing total visitors for the last 6 months"})]})]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 pt-4 border-t",children:[t.jsxs("div",{children:[t.jsx(I,{variant:"caption",color:"secondary",className:"mb-1",children:"Monto del préstamo"}),t.jsx(I,{variant:"body",weight:"semibold",children:ae(S.loanPrincipal)})]}),t.jsxs("div",{children:[t.jsx(I,{variant:"caption",color:"secondary",className:"mb-1",children:"Pago mensual"}),t.jsx(I,{variant:"body",weight:"semibold",children:ae(S.monthlyPayment)})]}),t.jsxs("div",{children:[t.jsx(I,{variant:"caption",color:"secondary",className:"mb-1",children:"Interés total"}),t.jsx(I,{variant:"body",weight:"semibold",children:ae(S.totalInterest)})]}),t.jsxs("div",{children:[t.jsx(I,{variant:"caption",color:"secondary",className:"mb-1",children:"Total a pagar"}),t.jsx(I,{variant:"body",weight:"semibold",children:ae(S.totalAmount)})]})]})]})})})});Ct.displayName="MortgageCalculator";function Ls({onSubmit:e,defaultValues:r,propertyTypeOptions:s,transactionTypeOptions:o,locationOptions:a}){const n=x.useMemo(()=>({propertyType:r?.propertyType||s[0]?.value||"",transactionType:r?.transactionType||o[0]?.value||"",location:r?.location||a[0]?.value||""}),[r,s,o,a]),[l,i]=x.useState(n),c=x.useCallback(u=>{i(m=>{const g=typeof u=="function"?u(m):u;return JSON.stringify(m)===JSON.stringify(g)?m:g})},[]),d=x.useCallback(u=>{u.preventDefault(),e?.({propertyType:l.propertyType,transactionType:l.transactionType,location:l.location})},[l,e]);return{formData:l,setFormData:c,handleSubmit:d,propertyTypeOptions:s,transactionTypeOptions:o,locationOptions:a}}const Fe=({variant:e="pill",isSubmitting:r,className:s})=>{const o="relative size-12 rounded-full bg-black text-white transition-all duration-200 hover:bg-black/90 hover:shadow-md flex items-center justify-center",a="w-full";return e==="mobile"?t.jsxs(H,{type:"submit",className:p(a,s),children:[t.jsx(be,{className:"h-4 w-4"}),r?"Searching...":"Search"]}):t.jsx(H,{type:"submit",size:"icon",variant:"ghost","aria-label":r?"Searching...":"Search properties",className:p(o,s),disabled:r,children:t.jsx(be,{className:"h-6 w-6"})})},ye=({className:e})=>t.jsx("div",{className:p("w-px self-stretch bg-gray-300 mx-6",e)}),V=({label:e,options:r,value:s,onChange:o,className:a,containerClassName:n})=>{const l=x.useMemo(()=>r.map(c=>({value:c.value,label:c.label})),[r]),i=x.useCallback(c=>{o(c.target.value)},[o]);return t.jsx("div",{className:p("flex min-w-0 flex-1 items-center",n),children:t.jsx("div",{className:"flex-1 px-6 py-3.5",children:t.jsx(we,{label:e,options:l,value:s,className:p("w-full border-none bg-transparent focus:outline-none focus:ring-0 text-base text-muted-foreground h-auto p-0",a),labelClassName:"text-sm font-semibold text-foreground mb-1",onChange:i})})})},$s=({formData:e,options:r,onFieldChange:s,isSubmitting:o,onSubmit:a,className:n})=>t.jsx("form",{className:p("relative mx-auto w-full max-w-5xl",n),onSubmit:a,"aria-label":"Property search form",children:t.jsxs("div",{className:"flex items-stretch rounded-full bg-white border border-gray-300 shadow-xl relative z-10 p-1.5",children:[t.jsx(V,{label:"Property Type",options:r.propertyTypeOptions,value:e.propertyType,onChange:s("propertyType")}),t.jsx(ye,{}),t.jsx(V,{label:"Transaction",options:r.transactionTypeOptions,value:e.transactionType,onChange:s("transactionType")}),t.jsx(ye,{}),t.jsx(V,{label:"Location",options:r.locationOptions,value:e.location,containerClassName:"flex min-w-0 flex-[1.2] items-center",onChange:s("location")}),t.jsx("div",{className:"flex items-center",children:t.jsx(Fe,{variant:"pill",isSubmitting:o,className:"bg-black"})})]})}),Fs=({formData:e,options:r,onFieldChange:s,isSubmitting:o,onSubmit:a,error:n,className:l})=>t.jsx("div",{className:p("rounded-xl bg-white shadow-lg p-6",l),children:t.jsxs("form",{className:"space-y-6",onSubmit:a,children:[t.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:[t.jsx(V,{label:"Property Type",options:r.propertyTypeOptions,value:e.propertyType,containerClassName:"flex items-center",className:"placeholder:text-muted-foreground",onChange:s("propertyType")}),t.jsx(V,{label:"Transaction",options:r.transactionTypeOptions,value:e.transactionType,containerClassName:"flex items-center",className:"placeholder:text-muted-foreground",onChange:s("transactionType")}),t.jsx(V,{label:"Location",options:r.locationOptions,value:e.location,containerClassName:"flex items-center",className:"placeholder:text-muted-foreground",onChange:s("location")})]}),t.jsxs(H,{type:"submit",className:"w-full",size:"lg",disabled:o,children:[t.jsx(be,{className:"h-4 w-4 mr-2"}),o?"Searching...":"Search Properties"]}),n&&t.jsx("div",{className:"bg-destructive/10 text-destructive mt-3 rounded-lg p-3 text-center text-sm",role:"alert",children:n})]})}),Os=({formData:e,options:r,onFieldChange:s,isSubmitting:o,onSubmit:a,className:n})=>t.jsx("form",{className:p("w-full max-w-md",n),onSubmit:a,"aria-label":"Property search form",children:t.jsxs("div",{className:"flex flex-col gap-3 rounded-2xl bg-white p-4 shadow-lg",children:[t.jsx(V,{label:"Property Type",options:r.propertyTypeOptions,value:e.propertyType,containerClassName:"flex items-center",onChange:s("propertyType")}),t.jsx(V,{label:"Transaction",options:r.transactionTypeOptions,value:e.transactionType,containerClassName:"flex items-center",onChange:s("transactionType")}),t.jsx(V,{label:"Location",options:r.locationOptions,value:e.location,containerClassName:"flex items-center",onChange:s("location")}),t.jsx(Fe,{variant:"mobile",isSubmitting:o})]})}),Vs=({formData:e,options:r,onFieldChange:s,onSubmit:o,isSubmitting:a,className:n})=>t.jsxs("form",{className:p("flex items-stretch gap-0 rounded-full bg-white shadow-lg overflow-hidden",n),onSubmit:o,"aria-label":"Property search form",children:[t.jsx(V,{label:"Property Type",options:r.propertyTypeOptions,value:e.propertyType,containerClassName:"min-w-[140px] flex-1",className:"placeholder:text-muted-foreground",onChange:s("propertyType")}),t.jsx(ye,{}),t.jsx(V,{label:"Transaction",options:r.transactionTypeOptions,value:e.transactionType,containerClassName:"min-w-[120px] flex-1",className:"placeholder:text-muted-foreground",onChange:s("transactionType")}),t.jsx(ye,{}),t.jsx(V,{label:"Location",options:r.locationOptions,value:e.location,containerClassName:"min-w-[160px] flex-1",className:"placeholder:text-muted-foreground",onChange:s("location")}),t.jsx("div",{className:"flex items-center pr-2",children:t.jsx("button",{type:"submit",disabled:a,className:"shrink-0 rounded-full bg-black p-3 hover:bg-black/90 transition-colors disabled:opacity-50","aria-label":a?"Searching...":"Search properties",children:t.jsx(be,{className:"h-5 w-5 text-white"})})})]}),_s=({formData:e,options:r,onFieldChange:s,isSubmitting:o,onSubmit:a})=>t.jsx("form",{className:"mt-4 block md:hidden",onSubmit:a,"aria-label":"Property search form",children:t.jsxs("div",{className:"grid grid-cols-1 gap-3 rounded-2xl bg-white p-4 shadow-lg",children:[t.jsx(V,{label:"Property Type",options:r.propertyTypeOptions,value:e.propertyType,containerClassName:"flex items-center",onChange:s("propertyType")}),t.jsx(V,{label:"Transaction",options:r.transactionTypeOptions,value:e.transactionType,containerClassName:"flex items-center",onChange:s("transactionType")}),t.jsx(V,{label:"Location",options:r.locationOptions,value:e.location,containerClassName:"flex items-center",onChange:s("location")}),t.jsx(Fe,{variant:"mobile",isSubmitting:o})]})}),Xe={pill:$s,compact:Os,card:Fs,inline:Vs},St=({onSubmit:e,defaultValues:r,className:s,variant:o="pill",propertyTypeOptions:a,transactionTypeOptions:n,locationOptions:l})=>{const[i,c]=x.useState(!1),[d,u]=x.useState(null),m=Ls({onSubmit:e,defaultValues:r,propertyTypeOptions:a,transactionTypeOptions:n,locationOptions:l}),{formData:g,setFormData:j,handleSubmit:v,propertyTypeOptions:k,transactionTypeOptions:P,locationOptions:T}=m,z=x.useCallback(async A=>{A.preventDefault(),u(null),c(!0);try{await v(A)}catch(E){const b=E instanceof Error?E.message:"Search failed. Please try again.";u(b),console.error("Search error:",E)}finally{c(!1)}},[v]),w=x.useCallback(A=>E=>{u(null),j(b=>({...b,[A]:E}))},[j]),M=x.useMemo(()=>({propertyTypeOptions:k,transactionTypeOptions:P,locationOptions:T}),[k,P,T]),S=Xe[o]||Xe.pill;return t.jsxs(t.Fragment,{children:[t.jsx(S,{formData:g,options:M,isSubmitting:i,error:d,className:s,onFieldChange:w,onSubmit:z}),o==="pill"&&t.jsx(_s,{formData:g,options:M,isSubmitting:i,onFieldChange:w,onSubmit:z})]})};St.displayName="SearchFeature";const Ds=e=>{switch(e){case"sm":return"p-4";case"md":return"p-6";case"lg":return"p-8";default:return"p-0"}},je=({children:e,header:r,sidebar:s,footer:o,padding:a="md"})=>{const n=p("min-h-screen flex flex-col"),l=p("bg-card border-b border-border z-10"),i=p("flex flex-1"),c=p("w-70 bg-card border-r border-border p-6"),d=p("flex-1 flex flex-col"),u=p("flex-1 mx-auto w-full max-w-7xl",Ds(a));return t.jsxs("div",{className:n,children:[r&&t.jsx("header",{className:l,children:r}),t.jsxs("div",{className:i,children:[s&&t.jsx("aside",{className:c,children:s}),t.jsx("div",{className:d,children:t.jsx("main",{className:u,children:e})})]}),o&&t.jsx("footer",{className:"bg-card border-t border-border mt-auto",children:o})]})},Gs=({children:e,header:r,sidebar:s})=>t.jsx(je,{header:r,sidebar:s,padding:"lg",children:t.jsx("div",{className:"max-w-screen-2xl",children:e})}),Bs=({children:e,title:r,subtitle:s})=>t.jsx(je,{padding:"lg",children:t.jsxs("div",{className:"max-w-md mx-auto",children:[t.jsxs("div",{className:"text-center mb-8",children:[r&&t.jsx(I,{variant:"h2",className:"mb-2",children:r}),s&&t.jsx(I,{variant:"body",color:"muted",children:s})]}),e]})}),Hs=({children:e,header:r,footer:s})=>t.jsx(je,{header:r,footer:s,padding:"none",children:e}),Ws={name:"light",colors:{primary:"#007bff",secondary:"#6c757d",success:"#28a745",warning:"#ffc107",error:"#dc3545",info:"#17a2b8",background:"#ffffff",surface:"#f8f9fa",text:"#212529",textSecondary:"#6c757d",border:"#dee2e6",borderLight:"#e9ecef"},shapes:{borderRadius:{small:"4px",medium:"8px",large:"12px",round:"50%"},borderWidth:{thin:"1px",medium:"2px",thick:"3px"}},typography:{fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xxl:"1.5rem"},fontWeight:{light:300,regular:400,medium:500,bold:700},lineHeight:{tight:1.25,normal:1.5,relaxed:1.75}},spacing:{xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem",xxl:"3rem"},shadows:{none:"none",small:"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)",medium:"0 3px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12)",large:"0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.10)",xl:"0 15px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.05)"}},Us={name:"dark",colors:{primary:"#0d6efd",secondary:"#6c757d",success:"#198754",warning:"#fd7e14",error:"#dc3545",info:"#0dcaf0",background:"#121212",surface:"#1e1e1e",text:"#ffffff",textSecondary:"#adb5bd",border:"#495057",borderLight:"#343a40"},shapes:{borderRadius:{small:"4px",medium:"8px",large:"12px",round:"50%"},borderWidth:{thin:"1px",medium:"2px",thick:"3px"}},typography:{fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xxl:"1.5rem"},fontWeight:{light:300,regular:400,medium:500,bold:700},lineHeight:{tight:1.25,normal:1.5,relaxed:1.75}},spacing:{xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem",xxl:"3rem"},shadows:{none:"none",small:"0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4)",medium:"0 3px 6px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3)",large:"0 10px 20px rgba(0, 0, 0, 0.4), 0 3px 6px rgba(0, 0, 0, 0.3)",xl:"0 15px 25px rgba(0, 0, 0, 0.4), 0 5px 10px rgba(0, 0, 0, 0.3)"}},qs={name:"corporate",colors:{primary:"#1a365d",secondary:"#2d3748",success:"#38a169",warning:"#d69e2e",error:"#e53e3e",info:"#3182ce",background:"#f7fafc",surface:"#ffffff",text:"#1a202c",textSecondary:"#4a5568",border:"#e2e8f0",borderLight:"#edf2f7"},shapes:{borderRadius:{small:"2px",medium:"4px",large:"6px",round:"50%"},borderWidth:{thin:"1px",medium:"2px",thick:"3px"}},typography:{fontFamily:'Georgia, "Times New Roman", serif',fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xxl:"1.5rem"},fontWeight:{light:300,regular:400,medium:500,bold:700},lineHeight:{tight:1.25,normal:1.5,relaxed:1.75}},spacing:{xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem",xxl:"3rem"},shadows:{none:"none",small:"0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06)",medium:"0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06)",large:"0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04)"}},Xs={name:"minimal",colors:{primary:"#000000",secondary:"#666666",success:"#00aa00",warning:"#ffaa00",error:"#aa0000",info:"#00aaaa",background:"#ffffff",surface:"#fafafa",text:"#000000",textSecondary:"#666666",border:"#cccccc",borderLight:"#e0e0e0"},shapes:{borderRadius:{small:"0px",medium:"0px",large:"0px",round:"50%"},borderWidth:{thin:"1px",medium:"2px",thick:"3px"}},typography:{fontFamily:"Helvetica, Arial, sans-serif",fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xxl:"1.5rem"},fontWeight:{light:300,regular:400,medium:500,bold:700},lineHeight:{tight:1.25,normal:1.5,relaxed:1.75}},spacing:{xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem",xxl:"3rem"},shadows:{none:"none",small:"none",medium:"none",large:"none",xl:"none"}},Te={light:Ws,dark:Us,corporate:qs,minimal:Xs},Mt=ve.createEvent(),Pt=ve.createEvent(),Tt=ve.createEvent(),Q=ve.createStore(Te.light).on(Mt,(e,r)=>Te[r]||e).on(Pt,(e,r)=>r).on(Tt,()=>Te.light),Zs=Q.map(e=>e.name),Js=Q.map(e=>e.colors);Q.map(e=>e.shapes);Q.map(e=>e.typography);Q.map(e=>e.spacing);Q.map(e=>e.shadows);const Et=R.createContext(null),Ks=()=>{const e=R.useContext(Et);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e},Qs=({children:e})=>{const s={theme:_t.useUnit(Q)};return t.jsx(Et.Provider,{value:s,children:e})},Ys={spacing:{xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem","3xl":"4rem"},radius:{none:"0",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},typography:{fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}]},fontWeight:{thin:"100",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"}},shadows:{none:"none",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",DEFAULT:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",md:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",lg:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",xl:"0 25px 50px -12px rgb(0 0 0 / 0.25)"},zIndex:{dropdown:1e3,sticky:1020,fixed:1030,modalBackdrop:1040,modal:1050,popover:1060,tooltip:1070,toast:1080},duration:{instant:"0ms",fast:"150ms",normal:"300ms",slow:"500ms"},easing:{linear:"linear",in:"ease-in",out:"ease-out",inOut:"ease-in-out"}},zt={button:{size:{sm:"h-9 px-3 text-sm",md:"h-10 px-4 py-2",lg:"h-11 px-8",icon:"h-10 w-10"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"}},input:{size:{sm:"h-9 px-3 text-sm",md:"h-10 px-3 py-2",lg:"h-11 px-3 py-2"}},card:{variant:{default:"bg-card text-card-foreground",elevated:"bg-card text-card-foreground shadow-lg",outlined:"bg-card text-card-foreground border-2"}}},It={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Rt={withOpacity:(e,r)=>r!==void 0?`hsl(var(${e}) / ${r})`:`hsl(var(${e}))`,get:e=>`hsl(var(--${e}))`},At={generateId:(e="ds")=>`${e}-${Math.random().toString(36).substr(2,9)}`,focus:{visible:"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",within:"focus-within:outline-none focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2"},sr:{only:"absolute w-px h-px p-0 -m-px overflow-hidden whitespace-nowrap border-0",not:"not-sr-only"}},Lt={icon:{xs:"w-3 h-3",sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6",xl:"w-8 h-8"},avatar:{xs:"w-6 h-6",sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12",xl:"w-16 h-16"}},$t={fade:{in:"animate-in fade-in duration-200",out:"animate-out fade-out duration-200"},slide:{inFromLeft:"animate-in slide-in-from-left duration-200",inFromRight:"animate-in slide-in-from-right duration-200",inFromTop:"animate-in slide-in-from-top duration-200",inFromBottom:"animate-in slide-in-from-bottom duration-200"},scale:{in:"animate-in scale-in duration-200",out:"animate-out scale-out duration-200"}},Ft={container:{responsive:"container mx-auto px-4 sm:px-6 lg:px-8",fluid:"w-full max-w-none",centered:"container mx-auto px-4 flex items-center justify-center min-h-screen"},grid:{responsive:"grid gap-4 sm:gap-6 lg:gap-8",cols:{1:"grid-cols-1",2:"grid-cols-1 sm:grid-cols-2",3:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",5:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5",6:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6"}},flex:{center:"flex items-center justify-center",between:"flex items-center justify-between",start:"flex items-center justify-start",end:"flex items-center justify-end",col:"flex flex-col",colCenter:"flex flex-col items-center justify-center"}},Ot={isDark:()=>typeof window>"u"?!1:document.documentElement.classList.contains("dark"),toggle:()=>{typeof window>"u"||document.documentElement.classList.toggle("dark")},set:e=>{typeof window>"u"||document.documentElement.classList.toggle("dark",e==="dark")}},Vt={debounce:(e,r)=>{let s;return(...o)=>{clearTimeout(s),s=setTimeout(()=>e(...o),r)}},throttle:(e,r)=>{let s;return(...o)=>{s||(e(...o),s=!0,setTimeout(()=>s=!1,r))}}},eo=({href:e,children:r})=>t.jsx("a",{href:e,className:"sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4 focus:z-50 focus:px-4 focus:py-2 focus:bg-primary focus:text-white focus:rounded",children:r});exports.$theme=Q;exports.$themeColors=Js;exports.$themeName=Zs;exports.AuthLayout=Bs;exports.Button=H;exports.Card=Ae;exports.CategoryChips=$e;exports.Chip=ke;exports.CompoundCard=_r;exports.ConfirmModal=Gr;exports.DashboardLayout=Gs;exports.DonutChart=Le;exports.EntityDirectory=kt;exports.Input=te;exports.MarketingLayout=Hs;exports.Modal=it;exports.ModalWithActions=lt;exports.MortgageCalculator=Ct;exports.PageLayout=je;exports.PropertyCard=zs;exports.PropertyGallery=pt;exports.SearchFeature=St;exports.Select=we;exports.SkipLink=eo;exports.Text=I;exports.ThemeProvider=Qs;exports.a11y=At;exports.accessibilityUtils=At;exports.animationUtils=$t;exports.animations=$t;exports.breakpoints=It;exports.calculateMortgage=jt;exports.cn=p;exports.colorUtils=Rt;exports.colors=Rt;exports.componentSizes=Lt;exports.componentVariants=zt;exports.countEntitiesByCategory=mt;exports.designSystem=Ys;exports.filterEntitiesByCategory=dt;exports.formatCurrency=ae;exports.formatPercentage=Is;exports.layout=Ft;exports.layoutUtils=Ft;exports.performance=Vt;exports.performanceUtils=Vt;exports.resetTheme=Tt;exports.responsiveBreakpoints=It;exports.setCustomTheme=Pt;exports.setTheme=Mt;exports.sizes=Lt;exports.sortEntities=ut;exports.theme=Ot;exports.themeUtils=Ot;exports.useEntityFilter=Ms;exports.useTheme=Ks;exports.validateMortgageInput=Rs;exports.variants=zt;
82
87
  //# sourceMappingURL=design-system.cjs.js.map