@homlista-devs/ui 1.0.1 → 1.1.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,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),C=require("react"),Nr=require("effector-react"),ce=require("effector");function Sr(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const k=Sr(C);function ze(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function zr(...e){return r=>{let t=!1;const s=e.map(n=>{const a=ze(n,r);return!t&&typeof a=="function"&&(t=!0),a});if(t)return()=>{for(let n=0;n<s.length;n++){const a=s[n];typeof a=="function"?a():ze(e[n],null)}}}}function Er(e){const r=Rr(e),t=k.forwardRef((s,n)=>{const{children:a,...i}=s,c=k.Children.toArray(a),l=c.find(Ar);if(l){const d=l.props.children,g=c.map(m=>m===l?k.Children.count(d)>1?k.Children.only(null):k.isValidElement(d)?d.props.children:null:m);return o.jsx(r,{...i,ref:n,children:k.isValidElement(d)?k.cloneElement(d,void 0,g):null})}return o.jsx(r,{...i,ref:n,children:a})});return t.displayName=`${e}.Slot`,t}var Mr=Er("Slot");function Rr(e){const r=k.forwardRef((t,s)=>{const{children:n,...a}=t;if(k.isValidElement(n)){const i=Ir(n),c=Lr(a,n.props);return n.type!==k.Fragment&&(c.ref=s?zr(s,i):i),k.cloneElement(n,c)}return k.Children.count(n)>1?k.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Pr=Symbol("radix.slottable");function Ar(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Pr}function Lr(e,r){const t={...r};for(const s in r){const n=e[s],a=r[s];/^on[A-Z]/.test(s)?n&&a?t[s]=(...c)=>{const l=a(...c);return n(...c),l}:n&&(t[s]=n):s==="style"?t[s]={...n,...a}:s==="className"&&(t[s]=[n,a].filter(Boolean).join(" "))}return{...e,...t}}function Ir(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function Ve(e){var r,t,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(t=Ve(e[r]))&&(s&&(s+=" "),s+=t)}else for(t in e)e[t]&&(s&&(s+=" "),s+=t);return s}function De(){for(var e,r,t=0,s="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=Ve(e))&&(s&&(s+=" "),s+=r);return s}const ve="-",Tr=e=>{const r=Dr(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{const c=i.split(ve);return c[0]===""&&c.length!==1&&c.shift(),Fe(c,r)||Vr(i)},getConflictingClassGroupIds:(i,c)=>{const l=t[i]||[];return c&&s[i]?[...l,...s[i]]:l}}},Fe=(e,r)=>{if(e.length===0)return r.classGroupId;const t=e[0],s=r.nextPart.get(t),n=s?Fe(e.slice(1),s):void 0;if(n)return n;if(r.validators.length===0)return;const a=e.join(ve);return r.validators.find(({validator:i})=>i(a))?.classGroupId},Ee=/^\[(.+)\]$/,Vr=e=>{if(Ee.test(e)){const r=Ee.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},Dr=e=>{const{theme:r,classGroups:t}=e,s={nextPart:new Map,validators:[]};for(const n in t)xe(t[n],s,n,r);return s},xe=(e,r,t,s)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?r:Me(r,n);a.classGroupId=t;return}if(typeof n=="function"){if(Fr(n)){xe(n(s),r,t,s);return}r.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(([a,i])=>{xe(i,Me(r,a),t,s)})})},Me=(e,r)=>{let t=e;return r.split(ve).forEach(s=>{t.nextPart.has(s)||t.nextPart.set(s,{nextPart:new Map,validators:[]}),t=t.nextPart.get(s)}),t},Fr=e=>e.isThemeGetter,_r=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,s=new Map;const n=(a,i)=>{t.set(a,i),r++,r>e&&(r=0,s=t,t=new Map)};return{get(a){let i=t.get(a);if(i!==void 0)return i;if((i=s.get(a))!==void 0)return n(a,i),i},set(a,i){t.has(a)?t.set(a,i):n(a,i)}}},be="!",ye=":",$r=ye.length,Gr=e=>{const{prefix:r,experimentalParseClassName:t}=e;let s=n=>{const a=[];let i=0,c=0,l=0,d;for(let w=0;w<n.length;w++){let S=n[w];if(i===0&&c===0){if(S===ye){a.push(n.slice(l,w)),l=w+$r;continue}if(S==="/"){d=w;continue}}S==="["?i++:S==="]"?i--:S==="("?c++:S===")"&&c--}const g=a.length===0?n:n.substring(l),m=Br(g),b=m!==g,N=d&&d>l?d-l:void 0;return{modifiers:a,hasImportantModifier:b,baseClassName:m,maybePostfixModifierPosition:N}};if(r){const n=r+ye,a=s;s=i=>i.startsWith(n)?a(i.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(t){const n=s;s=a=>t({className:a,parseClassName:n})}return s},Br=e=>e.endsWith(be)?e.substring(0,e.length-1):e.startsWith(be)?e.substring(1):e,Wr=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const n=[];let a=[];return s.forEach(i=>{i[0]==="["||r[i]?(n.push(...a.sort(),i),a=[]):a.push(i)}),n.push(...a.sort()),n}},Ur=e=>({cache:_r(e.cacheSize),parseClassName:Gr(e),sortModifiers:Wr(e),...Tr(e)}),Or=/\s+/,Hr=(e,r)=>{const{parseClassName:t,getClassGroupId:s,getConflictingClassGroupIds:n,sortModifiers:a}=r,i=[],c=e.trim().split(Or);let l="";for(let d=c.length-1;d>=0;d-=1){const g=c[d],{isExternal:m,modifiers:b,hasImportantModifier:N,baseClassName:w,maybePostfixModifierPosition:S}=t(g);if(m){l=g+(l.length>0?" "+l:l);continue}let M=!!S,R=s(M?w.substring(0,S):w);if(!R){if(!M){l=g+(l.length>0?" "+l:l);continue}if(R=s(w),!R){l=g+(l.length>0?" "+l:l);continue}M=!1}const D=a(b).join(":"),$=N?D+be:D,L=$+R;if(i.includes(L))continue;i.push(L);const I=n(R,M);for(let F=0;F<I.length;++F){const G=I[F];i.push($+G)}l=g+(l.length>0?" "+l:l)}return l};function qr(){let e=0,r,t,s="";for(;e<arguments.length;)(r=arguments[e++])&&(t=_e(r))&&(s&&(s+=" "),s+=t);return s}const _e=e=>{if(typeof e=="string")return e;let r,t="";for(let s=0;s<e.length;s++)e[s]&&(r=_e(e[s]))&&(t&&(t+=" "),t+=r);return t};function Zr(e,...r){let t,s,n,a=i;function i(l){const d=r.reduce((g,m)=>m(g),e());return t=Ur(d),s=t.cache.get,n=t.cache.set,a=c,c(l)}function c(l){const d=s(l);if(d)return d;const g=Hr(l,t);return n(l,g),g}return function(){return a(qr.apply(null,arguments))}}const z=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},$e=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ge=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Kr=/^\d+\/\d+$/,Qr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jr=/\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$/,Xr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Yr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,et=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y=e=>Kr.test(e),y=e=>!!e&&!Number.isNaN(Number(e)),O=e=>!!e&&Number.isInteger(Number(e)),ge=e=>e.endsWith("%")&&y(e.slice(0,-1)),W=e=>Qr.test(e),rt=()=>!0,tt=e=>Jr.test(e)&&!Xr.test(e),Be=()=>!1,ot=e=>Yr.test(e),st=e=>et.test(e),nt=e=>!u(e)&&!f(e),at=e=>ee(e,Oe,Be),u=e=>$e.test(e),Q=e=>ee(e,He,tt),pe=e=>ee(e,mt,y),Re=e=>ee(e,We,Be),it=e=>ee(e,Ue,st),ie=e=>ee(e,qe,ot),f=e=>Ge.test(e),te=e=>re(e,He),lt=e=>re(e,ut),Pe=e=>re(e,We),ct=e=>re(e,Oe),dt=e=>re(e,Ue),le=e=>re(e,qe,!0),ee=(e,r,t)=>{const s=$e.exec(e);return s?s[1]?r(s[1]):t(s[2]):!1},re=(e,r,t=!1)=>{const s=Ge.exec(e);return s?s[1]?r(s[1]):t:!1},We=e=>e==="position"||e==="percentage",Ue=e=>e==="image"||e==="url",Oe=e=>e==="length"||e==="size"||e==="bg-size",He=e=>e==="length",mt=e=>e==="number",ut=e=>e==="family-name",qe=e=>e==="shadow",ft=()=>{const e=z("color"),r=z("font"),t=z("text"),s=z("font-weight"),n=z("tracking"),a=z("leading"),i=z("breakpoint"),c=z("container"),l=z("spacing"),d=z("radius"),g=z("shadow"),m=z("inset-shadow"),b=z("text-shadow"),N=z("drop-shadow"),w=z("blur"),S=z("perspective"),M=z("aspect"),R=z("ease"),D=z("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...L(),f,u],F=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],x=()=>[f,u,l],T=()=>[Y,"full","auto",...x()],J=()=>[O,"none","subgrid",f,u],X=()=>["auto",{span:["full",O,f,u]},O,f,u],U=()=>[O,"auto",f,u],B=()=>["auto","min","max","fr",f,u],K=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],v=()=>["auto",...x()],j=()=>[Y,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],h=()=>[e,f,u],ke=()=>[...L(),Pe,Re,{position:[f,u]}],je=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ce=()=>["auto","cover","contain",ct,at,{size:[f,u]}],ue=()=>[ge,te,Q],A=()=>["","none","full",d,f,u],V=()=>["",y,te,Q],oe=()=>["solid","dashed","dotted","double"],Ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>[y,ge,Pe,Re],Se=()=>["","none",w,f,u],se=()=>["none",y,f,u],ne=()=>["none",y,f,u],fe=()=>[y,f,u],ae=()=>[Y,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[W],breakpoint:[W],color:[rt],container:[W],"drop-shadow":[W],ease:["in","out","in-out"],font:[nt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[W],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[W],shadow:[W],spacing:["px",y],text:[W],"text-shadow":[W],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Y,u,f,M]}],container:["container"],columns:[{columns:[y,u,f,c]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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:I()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[O,"auto",f,u]}],basis:[{basis:[Y,"full","auto",c,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[y,Y,"auto","initial","none",u]}],grow:[{grow:["",y,f,u]}],shrink:[{shrink:["",y,f,u]}],order:[{order:[O,"first","last","none",f,u]}],"grid-cols":[{"grid-cols":J()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":J()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:v()}],mx:[{mx:v()}],my:[{my:v()}],ms:[{ms:v()}],me:[{me:v()}],mt:[{mt:v()}],mr:[{mr:v()}],mb:[{mb:v()}],ml:[{ml:v()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[c,"screen",...j()]}],"min-w":[{"min-w":[c,"screen","none",...j()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",t,te,Q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,f,pe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ge,u]}],"font-family":[{font:[lt,u,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:[n,f,u]}],"line-clamp":[{"line-clamp":[y,"none",f,pe]}],leading:[{leading:[a,...x()]}],"list-image":[{"list-image":["none",f,u]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",f,u]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:h()}],"text-color":[{text:h()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[y,"from-font","auto",f,Q]}],"text-decoration-color":[{decoration:h()}],"underline-offset":[{"underline-offset":[y,"auto",f,u]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f,u]}],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",f,u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ke()}],"bg-repeat":[{bg:je()}],"bg-size":[{bg:Ce()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},O,f,u],radial:["",f,u],conic:[O,f,u]},dt,it]}],"bg-color":[{bg:h()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:h()}],"gradient-via":[{via:h()}],"gradient-to":[{to:h()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:h()}],"border-color-x":[{"border-x":h()}],"border-color-y":[{"border-y":h()}],"border-color-s":[{"border-s":h()}],"border-color-e":[{"border-e":h()}],"border-color-t":[{"border-t":h()}],"border-color-r":[{"border-r":h()}],"border-color-b":[{"border-b":h()}],"border-color-l":[{"border-l":h()}],"divide-color":[{divide:h()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[y,f,u]}],"outline-w":[{outline:["",y,te,Q]}],"outline-color":[{outline:h()}],shadow:[{shadow:["","none",g,le,ie]}],"shadow-color":[{shadow:h()}],"inset-shadow":[{"inset-shadow":["none",m,le,ie]}],"inset-shadow-color":[{"inset-shadow":h()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:h()}],"ring-offset-w":[{"ring-offset":[y,Q]}],"ring-offset-color":[{"ring-offset":h()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":h()}],"text-shadow":[{"text-shadow":["none",b,le,ie]}],"text-shadow-color":[{"text-shadow":h()}],opacity:[{opacity:[y,f,u]}],"mix-blend":[{"mix-blend":[...Ne(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ne()}],"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":[y]}],"mask-image-linear-from-pos":[{"mask-linear-from":E()}],"mask-image-linear-to-pos":[{"mask-linear-to":E()}],"mask-image-linear-from-color":[{"mask-linear-from":h()}],"mask-image-linear-to-color":[{"mask-linear-to":h()}],"mask-image-t-from-pos":[{"mask-t-from":E()}],"mask-image-t-to-pos":[{"mask-t-to":E()}],"mask-image-t-from-color":[{"mask-t-from":h()}],"mask-image-t-to-color":[{"mask-t-to":h()}],"mask-image-r-from-pos":[{"mask-r-from":E()}],"mask-image-r-to-pos":[{"mask-r-to":E()}],"mask-image-r-from-color":[{"mask-r-from":h()}],"mask-image-r-to-color":[{"mask-r-to":h()}],"mask-image-b-from-pos":[{"mask-b-from":E()}],"mask-image-b-to-pos":[{"mask-b-to":E()}],"mask-image-b-from-color":[{"mask-b-from":h()}],"mask-image-b-to-color":[{"mask-b-to":h()}],"mask-image-l-from-pos":[{"mask-l-from":E()}],"mask-image-l-to-pos":[{"mask-l-to":E()}],"mask-image-l-from-color":[{"mask-l-from":h()}],"mask-image-l-to-color":[{"mask-l-to":h()}],"mask-image-x-from-pos":[{"mask-x-from":E()}],"mask-image-x-to-pos":[{"mask-x-to":E()}],"mask-image-x-from-color":[{"mask-x-from":h()}],"mask-image-x-to-color":[{"mask-x-to":h()}],"mask-image-y-from-pos":[{"mask-y-from":E()}],"mask-image-y-to-pos":[{"mask-y-to":E()}],"mask-image-y-from-color":[{"mask-y-from":h()}],"mask-image-y-to-color":[{"mask-y-to":h()}],"mask-image-radial":[{"mask-radial":[f,u]}],"mask-image-radial-from-pos":[{"mask-radial-from":E()}],"mask-image-radial-to-pos":[{"mask-radial-to":E()}],"mask-image-radial-from-color":[{"mask-radial-from":h()}],"mask-image-radial-to-color":[{"mask-radial-to":h()}],"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":L()}],"mask-image-conic-pos":[{"mask-conic":[y]}],"mask-image-conic-from-pos":[{"mask-conic-from":E()}],"mask-image-conic-to-pos":[{"mask-conic-to":E()}],"mask-image-conic-from-color":[{"mask-conic-from":h()}],"mask-image-conic-to-color":[{"mask-conic-to":h()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ke()}],"mask-repeat":[{mask:je()}],"mask-size":[{mask:Ce()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",f,u]}],filter:[{filter:["","none",f,u]}],blur:[{blur:Se()}],brightness:[{brightness:[y,f,u]}],contrast:[{contrast:[y,f,u]}],"drop-shadow":[{"drop-shadow":["","none",N,le,ie]}],"drop-shadow-color":[{"drop-shadow":h()}],grayscale:[{grayscale:["",y,f,u]}],"hue-rotate":[{"hue-rotate":[y,f,u]}],invert:[{invert:["",y,f,u]}],saturate:[{saturate:[y,f,u]}],sepia:[{sepia:["",y,f,u]}],"backdrop-filter":[{"backdrop-filter":["","none",f,u]}],"backdrop-blur":[{"backdrop-blur":Se()}],"backdrop-brightness":[{"backdrop-brightness":[y,f,u]}],"backdrop-contrast":[{"backdrop-contrast":[y,f,u]}],"backdrop-grayscale":[{"backdrop-grayscale":["",y,f,u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y,f,u]}],"backdrop-invert":[{"backdrop-invert":["",y,f,u]}],"backdrop-opacity":[{"backdrop-opacity":[y,f,u]}],"backdrop-saturate":[{"backdrop-saturate":[y,f,u]}],"backdrop-sepia":[{"backdrop-sepia":["",y,f,u]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",f,u]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[y,"initial",f,u]}],ease:[{ease:["linear","initial",R,f,u]}],delay:[{delay:[y,f,u]}],animate:[{animate:["none",D,f,u]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,f,u]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[f,u,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:h()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:h()}],"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",f,u]}],"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":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",f,u]}],fill:[{fill:["none",...h()]}],"stroke-w":[{stroke:[y,te,Q,pe]}],stroke:[{stroke:["none",...h()]}],"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"]}},gt=Zr(ft);function p(...e){return gt(De(e))}const Ae=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Le=De,Ze=(e,r)=>t=>{var s;if(r?.variants==null)return Le(e,t?.class,t?.className);const{variants:n,defaultVariants:a}=r,i=Object.keys(n).map(d=>{const g=t?.[d],m=a?.[d];if(g===null)return null;const b=Ae(g)||Ae(m);return n[d][b]}),c=t&&Object.entries(t).reduce((d,g)=>{let[m,b]=g;return b===void 0||(d[m]=b),d},{}),l=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((d,g)=>{let{class:m,className:b,...N}=g;return Object.entries(N).every(w=>{let[S,M]=w;return Array.isArray(M)?M.includes({...a,...c}[S]):{...a,...c}[S]===M})?[...d,m,b]:d},[]);return Le(e,i,l,t?.class,t?.className)},pt=Ze("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=k.forwardRef(({className:e,variant:r,size:t,asChild:s=!1,disabled:n,...a},i)=>{const c=s?Mr:"button";return o.jsx(c,{className:p(pt({variant:r,size:t,className:e})),ref:i,type:a.type||"button",disabled:n,"aria-disabled":n?"true":void 0,...a})});H.displayName="Button";const ht=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"}},xt=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"}},bt=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""}},yt=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"}},P=({variant:e="body",color:r="primary",weight:t,align:s="left",truncate:n=!1,children:a,className:i,as:c,...l})=>{const d=c||vt(e),g=p("m-0",ht(e),xt(r),bt(t),yt(s),n&&"truncate",i);return o.jsx(d,{className:g,...l,children:a})};function vt(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 wt=e=>{switch(e){case"sm":return"p-4";case"md":return"p-6";case"lg":return"p-8";default:return"p-0"}},kt=e=>{switch(e){case"sm":return"shadow-sm";case"md":return"shadow-md";case"lg":return"shadow-lg";default:return"shadow-none"}},jt=e=>{switch(e){case"sm":return"rounded-sm";case"md":return"rounded-md";case"lg":return"rounded-lg";default:return"rounded-none"}},Ke=({children:e,title:r,subtitle:t,className:s,padding:n="md",shadow:a="md",borderRadius:i="md",onClick:c})=>{const l=!!c,d=p("bg-card",wt(n),kt(a),jt(i),"transition-all duration-200 ease-in-out",l&&"cursor-pointer hover:-translate-y-0.5 hover:shadow-lg active:translate-y-0",s);return o.jsxs("div",{className:d,onClick:c,children:[(r||t)&&o.jsxs("div",{className:"mb-4",children:[r&&o.jsx("div",{className:"mb-2",children:o.jsx(P,{variant:"h3",children:r})}),t&&o.jsx("div",{className:"text-muted-foreground",children:o.jsx(P,{variant:"body-sm",color:"muted",children:t})})]}),o.jsx("div",{className:"flex-1",children:e})]})},Ct=({children:e})=>o.jsx("div",{className:"mt-4 pt-4 border-t border-border",children:e}),Nt=Object.assign(Ke,{Footer:Ct}),St=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"}},Qe=({isOpen:e,onClose:r,title:t,children:s,size:n="md",showCloseButton:a=!0,closeOnOverlayClick:i=!0,closeOnEscape:c=!0})=>{const l=C.useRef(null);if(C.useEffect(()=>{if(!e||!c)return;const w=S=>{S.key==="Escape"&&r()};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[e,c,r]),C.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),C.useEffect(()=>{e&&l.current&&l.current.focus()},[e]),!e)return null;const d=p("fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4"),g=p("bg-card rounded-lg shadow-xl w-full max-h-[90vh] overflow-hidden flex flex-col",St(n)),m=p("p-6 border-b border-border flex items-center justify-between"),b=p("p-6 overflow-y-auto flex-1"),N=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 o.jsx("div",{className:d,onClick:i?r:void 0,children:o.jsxs("div",{ref:l,className:g,onClick:w=>w.stopPropagation(),tabIndex:-1,role:"dialog","aria-modal":"true","aria-labelledby":t?"modal-title":void 0,children:[(t||a)&&o.jsxs("div",{className:m,children:[t&&o.jsx(P,{variant:"h3",className:"text-foreground",children:t}),a&&o.jsx("button",{onClick:r,"aria-label":"Close modal",className:N,children:"×"})]}),o.jsx("div",{className:b,children:s})]})})},Je=({children:e,actions:r,...t})=>o.jsxs(Qe,{...t,children:[o.jsx("div",{className:"p-6 overflow-y-auto flex-1",children:e}),r&&o.jsx("div",{className:"p-6 border-t border-border flex justify-end gap-3",children:r})]}),zt=({isOpen:e,onClose:r,onConfirm:t,title:s,message:n,confirmText:a="Confirm",cancelText:i="Cancel"})=>o.jsx(Je,{isOpen:e,onClose:r,title:s,actions:o.jsxs(o.Fragment,{children:[o.jsx(H,{variant:"secondary",onClick:r,children:i}),o.jsx(H,{variant:"default",onClick:t,children:a})]}),children:o.jsx(P,{children:n})});function Xe(e,r){return!r||r==="all"?e:e.filter(t=>t.categoryId===r)}function Ye(e,r){const t=[...e];return t.sort((s,n)=>{let a="",i="";return r.column==="title"?(a=s.title.toLowerCase(),i=n.title.toLowerCase()):r.column==="metric"&&(a=Ie(s.metricValue),i=Ie(n.metricValue)),a<i?r.direction==="asc"?-1:1:a>i?r.direction==="asc"?1:-1:0}),t}function Ie(e){if(!e)return 0;const r=e.match(/[\d.]+/);return r?parseFloat(r[0]):0}function er(e,r){return r==="all"?e.length:e.filter(t=>t.categoryId===r).length}function Et(e,r,t={}){const{initialCategory:s=null,initialSort:n=null,enableSearch:a=!1}=t,[i,c]=C.useState(s),[l,d]=C.useState(n),[g,m]=C.useState(""),b=C.useMemo(()=>Xe(e,i),[e,i]),N=C.useMemo(()=>{if(!a||!g.trim())return b;const R=g.toLowerCase();return b.filter(D=>D.title.toLowerCase().includes(R)||D.subtitle?.toLowerCase().includes(R))},[b,g,a]),w=C.useMemo(()=>l?Ye(N,l):N,[N,l]),S=C.useCallback(R=>er(e,R),[e]),M=C.useCallback(()=>{c(s),d(n),m("")},[s,n]);return{activeCategory:i,setActiveCategory:c,sort:l,setSort:d,searchQuery:g,setSearchQuery:m,filteredEntities:w,getCategoryCount:S,resetFilters:M}}const Mt=Ze("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"}}),de=k.forwardRef(({className:e,variant:r,size:t,icon:s,selected:n,dismissible:a,onDismiss:i,children:c,disabled:l,...d},g)=>{const m=n?"selected":r;return o.jsxs("button",{type:"button",className:p(Mt({variant:m,size:t,className:e})),ref:g,disabled:l,"aria-disabled":l?"true":void 0,"aria-pressed":n?"true":"false",...d,children:[s&&o.jsx("span",{className:"mr-1.5 inline-flex items-center","aria-hidden":"true",children:s}),o.jsx("span",{children:c}),a&&i&&o.jsx("button",{type:"button",className:"ml-1.5 inline-flex items-center hover:opacity-70",onClick:b=>{b.stopPropagation(),i()},"aria-label":"Remove",children:"×"})]})});de.displayName="Chip";const we=k.forwardRef(({categories:e,activeCategory:r,onCategoryChange:t,showCount:s,getCategoryCount:n,className:a},i)=>o.jsx("div",{ref:i,role:"tablist","aria-label":"Filter by category",className:p("flex flex-wrap gap-2 overflow-x-auto pb-2",a),children:e.map(c=>{const l=r===c.id,d=s&&n?n(c.id):void 0;return o.jsxs(de,{role:"tab","aria-selected":l,"aria-controls":`entities-panel-${c.id}`,selected:l,variant:l?"selected":"outline",icon:c.icon,onClick:()=>t(l?null:c.id),children:[c.label,d!==void 0&&o.jsxs("span",{className:"ml-1.5 opacity-70",children:["(",d,")"]})]},c.id)})}));we.displayName="CategoryChips";/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),C=require("react"),Nr=require("effector-react"),ce=require("effector");function Sr(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const k=Sr(C);function ze(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function zr(...e){return r=>{let t=!1;const s=e.map(n=>{const a=ze(n,r);return!t&&typeof a=="function"&&(t=!0),a});if(t)return()=>{for(let n=0;n<s.length;n++){const a=s[n];typeof a=="function"?a():ze(e[n],null)}}}}function Er(e){const r=Rr(e),t=k.forwardRef((s,n)=>{const{children:a,...i}=s,l=k.Children.toArray(a),c=l.find(Ar);if(c){const d=c.props.children,g=l.map(m=>m===c?k.Children.count(d)>1?k.Children.only(null):k.isValidElement(d)?d.props.children:null:m);return o.jsx(r,{...i,ref:n,children:k.isValidElement(d)?k.cloneElement(d,void 0,g):null})}return o.jsx(r,{...i,ref:n,children:a})});return t.displayName=`${e}.Slot`,t}var Mr=Er("Slot");function Rr(e){const r=k.forwardRef((t,s)=>{const{children:n,...a}=t;if(k.isValidElement(n)){const i=Ir(n),l=Lr(a,n.props);return n.type!==k.Fragment&&(l.ref=s?zr(s,i):i),k.cloneElement(n,l)}return k.Children.count(n)>1?k.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Pr=Symbol("radix.slottable");function Ar(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Pr}function Lr(e,r){const t={...r};for(const s in r){const n=e[s],a=r[s];/^on[A-Z]/.test(s)?n&&a?t[s]=(...l)=>{const c=a(...l);return n(...l),c}:n&&(t[s]=n):s==="style"?t[s]={...n,...a}:s==="className"&&(t[s]=[n,a].filter(Boolean).join(" "))}return{...e,...t}}function Ir(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function Ve(e){var r,t,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(t=Ve(e[r]))&&(s&&(s+=" "),s+=t)}else for(t in e)e[t]&&(s&&(s+=" "),s+=t);return s}function De(){for(var e,r,t=0,s="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=Ve(e))&&(s&&(s+=" "),s+=r);return s}const ve="-",Tr=e=>{const r=Dr(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{const l=i.split(ve);return l[0]===""&&l.length!==1&&l.shift(),Fe(l,r)||Vr(i)},getConflictingClassGroupIds:(i,l)=>{const c=t[i]||[];return l&&s[i]?[...c,...s[i]]:c}}},Fe=(e,r)=>{if(e.length===0)return r.classGroupId;const t=e[0],s=r.nextPart.get(t),n=s?Fe(e.slice(1),s):void 0;if(n)return n;if(r.validators.length===0)return;const a=e.join(ve);return r.validators.find(({validator:i})=>i(a))?.classGroupId},Ee=/^\[(.+)\]$/,Vr=e=>{if(Ee.test(e)){const r=Ee.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},Dr=e=>{const{theme:r,classGroups:t}=e,s={nextPart:new Map,validators:[]};for(const n in t)xe(t[n],s,n,r);return s},xe=(e,r,t,s)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?r:Me(r,n);a.classGroupId=t;return}if(typeof n=="function"){if(Fr(n)){xe(n(s),r,t,s);return}r.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(([a,i])=>{xe(i,Me(r,a),t,s)})})},Me=(e,r)=>{let t=e;return r.split(ve).forEach(s=>{t.nextPart.has(s)||t.nextPart.set(s,{nextPart:new Map,validators:[]}),t=t.nextPart.get(s)}),t},Fr=e=>e.isThemeGetter,_r=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,s=new Map;const n=(a,i)=>{t.set(a,i),r++,r>e&&(r=0,s=t,t=new Map)};return{get(a){let i=t.get(a);if(i!==void 0)return i;if((i=s.get(a))!==void 0)return n(a,i),i},set(a,i){t.has(a)?t.set(a,i):n(a,i)}}},be="!",ye=":",$r=ye.length,Gr=e=>{const{prefix:r,experimentalParseClassName:t}=e;let s=n=>{const a=[];let i=0,l=0,c=0,d;for(let w=0;w<n.length;w++){let S=n[w];if(i===0&&l===0){if(S===ye){a.push(n.slice(c,w)),c=w+$r;continue}if(S==="/"){d=w;continue}}S==="["?i++:S==="]"?i--:S==="("?l++:S===")"&&l--}const g=a.length===0?n:n.substring(c),m=Br(g),b=m!==g,N=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:b,baseClassName:m,maybePostfixModifierPosition:N}};if(r){const n=r+ye,a=s;s=i=>i.startsWith(n)?a(i.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(t){const n=s;s=a=>t({className:a,parseClassName:n})}return s},Br=e=>e.endsWith(be)?e.substring(0,e.length-1):e.startsWith(be)?e.substring(1):e,Wr=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const n=[];let a=[];return s.forEach(i=>{i[0]==="["||r[i]?(n.push(...a.sort(),i),a=[]):a.push(i)}),n.push(...a.sort()),n}},Ur=e=>({cache:_r(e.cacheSize),parseClassName:Gr(e),sortModifiers:Wr(e),...Tr(e)}),Or=/\s+/,Hr=(e,r)=>{const{parseClassName:t,getClassGroupId:s,getConflictingClassGroupIds:n,sortModifiers:a}=r,i=[],l=e.trim().split(Or);let c="";for(let d=l.length-1;d>=0;d-=1){const g=l[d],{isExternal:m,modifiers:b,hasImportantModifier:N,baseClassName:w,maybePostfixModifierPosition:S}=t(g);if(m){c=g+(c.length>0?" "+c:c);continue}let M=!!S,R=s(M?w.substring(0,S):w);if(!R){if(!M){c=g+(c.length>0?" "+c:c);continue}if(R=s(w),!R){c=g+(c.length>0?" "+c:c);continue}M=!1}const D=a(b).join(":"),$=N?D+be:D,L=$+R;if(i.includes(L))continue;i.push(L);const I=n(R,M);for(let F=0;F<I.length;++F){const G=I[F];i.push($+G)}c=g+(c.length>0?" "+c:c)}return c};function qr(){let e=0,r,t,s="";for(;e<arguments.length;)(r=arguments[e++])&&(t=_e(r))&&(s&&(s+=" "),s+=t);return s}const _e=e=>{if(typeof e=="string")return e;let r,t="";for(let s=0;s<e.length;s++)e[s]&&(r=_e(e[s]))&&(t&&(t+=" "),t+=r);return t};function Zr(e,...r){let t,s,n,a=i;function i(c){const d=r.reduce((g,m)=>m(g),e());return t=Ur(d),s=t.cache.get,n=t.cache.set,a=l,l(c)}function l(c){const d=s(c);if(d)return d;const g=Hr(c,t);return n(c,g),g}return function(){return a(qr.apply(null,arguments))}}const z=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},$e=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ge=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Kr=/^\d+\/\d+$/,Qr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jr=/\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$/,Xr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Yr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,et=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y=e=>Kr.test(e),y=e=>!!e&&!Number.isNaN(Number(e)),O=e=>!!e&&Number.isInteger(Number(e)),ge=e=>e.endsWith("%")&&y(e.slice(0,-1)),W=e=>Qr.test(e),rt=()=>!0,tt=e=>Jr.test(e)&&!Xr.test(e),Be=()=>!1,ot=e=>Yr.test(e),st=e=>et.test(e),nt=e=>!u(e)&&!f(e),at=e=>ee(e,Oe,Be),u=e=>$e.test(e),Q=e=>ee(e,He,tt),pe=e=>ee(e,mt,y),Re=e=>ee(e,We,Be),it=e=>ee(e,Ue,st),ie=e=>ee(e,qe,ot),f=e=>Ge.test(e),te=e=>re(e,He),lt=e=>re(e,ut),Pe=e=>re(e,We),ct=e=>re(e,Oe),dt=e=>re(e,Ue),le=e=>re(e,qe,!0),ee=(e,r,t)=>{const s=$e.exec(e);return s?s[1]?r(s[1]):t(s[2]):!1},re=(e,r,t=!1)=>{const s=Ge.exec(e);return s?s[1]?r(s[1]):t:!1},We=e=>e==="position"||e==="percentage",Ue=e=>e==="image"||e==="url",Oe=e=>e==="length"||e==="size"||e==="bg-size",He=e=>e==="length",mt=e=>e==="number",ut=e=>e==="family-name",qe=e=>e==="shadow",ft=()=>{const e=z("color"),r=z("font"),t=z("text"),s=z("font-weight"),n=z("tracking"),a=z("leading"),i=z("breakpoint"),l=z("container"),c=z("spacing"),d=z("radius"),g=z("shadow"),m=z("inset-shadow"),b=z("text-shadow"),N=z("drop-shadow"),w=z("blur"),S=z("perspective"),M=z("aspect"),R=z("ease"),D=z("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...L(),f,u],F=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],x=()=>[f,u,c],T=()=>[Y,"full","auto",...x()],J=()=>[O,"none","subgrid",f,u],X=()=>["auto",{span:["full",O,f,u]},O,f,u],U=()=>[O,"auto",f,u],B=()=>["auto","min","max","fr",f,u],K=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],v=()=>["auto",...x()],j=()=>[Y,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],h=()=>[e,f,u],ke=()=>[...L(),Pe,Re,{position:[f,u]}],je=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ce=()=>["auto","cover","contain",ct,at,{size:[f,u]}],ue=()=>[ge,te,Q],A=()=>["","none","full",d,f,u],V=()=>["",y,te,Q],oe=()=>["solid","dashed","dotted","double"],Ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>[y,ge,Pe,Re],Se=()=>["","none",w,f,u],se=()=>["none",y,f,u],ne=()=>["none",y,f,u],fe=()=>[y,f,u],ae=()=>[Y,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[W],breakpoint:[W],color:[rt],container:[W],"drop-shadow":[W],ease:["in","out","in-out"],font:[nt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[W],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[W],shadow:[W],spacing:["px",y],text:[W],"text-shadow":[W],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Y,u,f,M]}],container:["container"],columns:[{columns:[y,u,f,l]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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:I()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[O,"auto",f,u]}],basis:[{basis:[Y,"full","auto",l,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[y,Y,"auto","initial","none",u]}],grow:[{grow:["",y,f,u]}],shrink:[{shrink:["",y,f,u]}],order:[{order:[O,"first","last","none",f,u]}],"grid-cols":[{"grid-cols":J()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":J()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:v()}],mx:[{mx:v()}],my:[{my:v()}],ms:[{ms:v()}],me:[{me:v()}],mt:[{mt:v()}],mr:[{mr:v()}],mb:[{mb:v()}],ml:[{ml:v()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[l,"screen",...j()]}],"min-w":[{"min-w":[l,"screen","none",...j()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",t,te,Q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,f,pe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ge,u]}],"font-family":[{font:[lt,u,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:[n,f,u]}],"line-clamp":[{"line-clamp":[y,"none",f,pe]}],leading:[{leading:[a,...x()]}],"list-image":[{"list-image":["none",f,u]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",f,u]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:h()}],"text-color":[{text:h()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[y,"from-font","auto",f,Q]}],"text-decoration-color":[{decoration:h()}],"underline-offset":[{"underline-offset":[y,"auto",f,u]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f,u]}],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",f,u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ke()}],"bg-repeat":[{bg:je()}],"bg-size":[{bg:Ce()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},O,f,u],radial:["",f,u],conic:[O,f,u]},dt,it]}],"bg-color":[{bg:h()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:h()}],"gradient-via":[{via:h()}],"gradient-to":[{to:h()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:h()}],"border-color-x":[{"border-x":h()}],"border-color-y":[{"border-y":h()}],"border-color-s":[{"border-s":h()}],"border-color-e":[{"border-e":h()}],"border-color-t":[{"border-t":h()}],"border-color-r":[{"border-r":h()}],"border-color-b":[{"border-b":h()}],"border-color-l":[{"border-l":h()}],"divide-color":[{divide:h()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[y,f,u]}],"outline-w":[{outline:["",y,te,Q]}],"outline-color":[{outline:h()}],shadow:[{shadow:["","none",g,le,ie]}],"shadow-color":[{shadow:h()}],"inset-shadow":[{"inset-shadow":["none",m,le,ie]}],"inset-shadow-color":[{"inset-shadow":h()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:h()}],"ring-offset-w":[{"ring-offset":[y,Q]}],"ring-offset-color":[{"ring-offset":h()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":h()}],"text-shadow":[{"text-shadow":["none",b,le,ie]}],"text-shadow-color":[{"text-shadow":h()}],opacity:[{opacity:[y,f,u]}],"mix-blend":[{"mix-blend":[...Ne(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ne()}],"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":[y]}],"mask-image-linear-from-pos":[{"mask-linear-from":E()}],"mask-image-linear-to-pos":[{"mask-linear-to":E()}],"mask-image-linear-from-color":[{"mask-linear-from":h()}],"mask-image-linear-to-color":[{"mask-linear-to":h()}],"mask-image-t-from-pos":[{"mask-t-from":E()}],"mask-image-t-to-pos":[{"mask-t-to":E()}],"mask-image-t-from-color":[{"mask-t-from":h()}],"mask-image-t-to-color":[{"mask-t-to":h()}],"mask-image-r-from-pos":[{"mask-r-from":E()}],"mask-image-r-to-pos":[{"mask-r-to":E()}],"mask-image-r-from-color":[{"mask-r-from":h()}],"mask-image-r-to-color":[{"mask-r-to":h()}],"mask-image-b-from-pos":[{"mask-b-from":E()}],"mask-image-b-to-pos":[{"mask-b-to":E()}],"mask-image-b-from-color":[{"mask-b-from":h()}],"mask-image-b-to-color":[{"mask-b-to":h()}],"mask-image-l-from-pos":[{"mask-l-from":E()}],"mask-image-l-to-pos":[{"mask-l-to":E()}],"mask-image-l-from-color":[{"mask-l-from":h()}],"mask-image-l-to-color":[{"mask-l-to":h()}],"mask-image-x-from-pos":[{"mask-x-from":E()}],"mask-image-x-to-pos":[{"mask-x-to":E()}],"mask-image-x-from-color":[{"mask-x-from":h()}],"mask-image-x-to-color":[{"mask-x-to":h()}],"mask-image-y-from-pos":[{"mask-y-from":E()}],"mask-image-y-to-pos":[{"mask-y-to":E()}],"mask-image-y-from-color":[{"mask-y-from":h()}],"mask-image-y-to-color":[{"mask-y-to":h()}],"mask-image-radial":[{"mask-radial":[f,u]}],"mask-image-radial-from-pos":[{"mask-radial-from":E()}],"mask-image-radial-to-pos":[{"mask-radial-to":E()}],"mask-image-radial-from-color":[{"mask-radial-from":h()}],"mask-image-radial-to-color":[{"mask-radial-to":h()}],"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":L()}],"mask-image-conic-pos":[{"mask-conic":[y]}],"mask-image-conic-from-pos":[{"mask-conic-from":E()}],"mask-image-conic-to-pos":[{"mask-conic-to":E()}],"mask-image-conic-from-color":[{"mask-conic-from":h()}],"mask-image-conic-to-color":[{"mask-conic-to":h()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ke()}],"mask-repeat":[{mask:je()}],"mask-size":[{mask:Ce()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",f,u]}],filter:[{filter:["","none",f,u]}],blur:[{blur:Se()}],brightness:[{brightness:[y,f,u]}],contrast:[{contrast:[y,f,u]}],"drop-shadow":[{"drop-shadow":["","none",N,le,ie]}],"drop-shadow-color":[{"drop-shadow":h()}],grayscale:[{grayscale:["",y,f,u]}],"hue-rotate":[{"hue-rotate":[y,f,u]}],invert:[{invert:["",y,f,u]}],saturate:[{saturate:[y,f,u]}],sepia:[{sepia:["",y,f,u]}],"backdrop-filter":[{"backdrop-filter":["","none",f,u]}],"backdrop-blur":[{"backdrop-blur":Se()}],"backdrop-brightness":[{"backdrop-brightness":[y,f,u]}],"backdrop-contrast":[{"backdrop-contrast":[y,f,u]}],"backdrop-grayscale":[{"backdrop-grayscale":["",y,f,u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y,f,u]}],"backdrop-invert":[{"backdrop-invert":["",y,f,u]}],"backdrop-opacity":[{"backdrop-opacity":[y,f,u]}],"backdrop-saturate":[{"backdrop-saturate":[y,f,u]}],"backdrop-sepia":[{"backdrop-sepia":["",y,f,u]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",f,u]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[y,"initial",f,u]}],ease:[{ease:["linear","initial",R,f,u]}],delay:[{delay:[y,f,u]}],animate:[{animate:["none",D,f,u]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,f,u]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[f,u,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:h()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:h()}],"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",f,u]}],"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":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",f,u]}],fill:[{fill:["none",...h()]}],"stroke-w":[{stroke:[y,te,Q,pe]}],stroke:[{stroke:["none",...h()]}],"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"]}},gt=Zr(ft);function p(...e){return gt(De(e))}const Ae=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Le=De,Ze=(e,r)=>t=>{var s;if(r?.variants==null)return Le(e,t?.class,t?.className);const{variants:n,defaultVariants:a}=r,i=Object.keys(n).map(d=>{const g=t?.[d],m=a?.[d];if(g===null)return null;const b=Ae(g)||Ae(m);return n[d][b]}),l=t&&Object.entries(t).reduce((d,g)=>{let[m,b]=g;return b===void 0||(d[m]=b),d},{}),c=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((d,g)=>{let{class:m,className:b,...N}=g;return Object.entries(N).every(w=>{let[S,M]=w;return Array.isArray(M)?M.includes({...a,...l}[S]):{...a,...l}[S]===M})?[...d,m,b]:d},[]);return Le(e,i,c,t?.class,t?.className)},pt=Ze("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=k.forwardRef(({className:e,variant:r,size:t,asChild:s=!1,disabled:n,...a},i)=>{const l=s?Mr:"button";return o.jsx(l,{className:p(pt({variant:r,size:t,className:e})),ref:i,type:a.type||"button",disabled:n,"aria-disabled":n?"true":void 0,...a})});H.displayName="Button";const ht=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"}},xt=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"}},bt=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""}},yt=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"}},P=({variant:e="body",color:r="primary",weight:t,align:s="left",truncate:n=!1,children:a,className:i,as:l,...c})=>{const d=l||vt(e),g=p("m-0",ht(e),xt(r),bt(t),yt(s),n&&"truncate",i);return o.jsx(d,{className:g,...c,children:a})};function vt(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 wt=e=>{switch(e){case"sm":return"p-4";case"md":return"p-6";case"lg":return"p-8";default:return"p-0"}},kt=e=>{switch(e){case"sm":return"shadow-sm";case"md":return"shadow-md";case"lg":return"shadow-lg";default:return"shadow-none"}},jt=e=>{switch(e){case"sm":return"rounded-sm";case"md":return"rounded-md";case"lg":return"rounded-lg";default:return"rounded-none"}},Ke=({children:e,title:r,subtitle:t,className:s,padding:n="md",shadow:a="md",borderRadius:i="md",onClick:l})=>{const c=!!l,d=p("bg-card",wt(n),kt(a),jt(i),"transition-all duration-200 ease-in-out",c&&"cursor-pointer hover:-translate-y-0.5 hover:shadow-lg active:translate-y-0",s);return o.jsxs("div",{className:d,onClick:l,children:[(r||t)&&o.jsxs("div",{className:"mb-4",children:[r&&o.jsx("div",{className:"mb-2",children:o.jsx(P,{variant:"h3",children:r})}),t&&o.jsx("div",{className:"text-muted-foreground",children:o.jsx(P,{variant:"body-sm",color:"muted",children:t})})]}),o.jsx("div",{className:"flex-1",children:e})]})},Ct=({children:e})=>o.jsx("div",{className:"mt-4 pt-4 border-t border-border",children:e}),Nt=Object.assign(Ke,{Footer:Ct}),St=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"}},Qe=({isOpen:e,onClose:r,title:t,children:s,size:n="md",showCloseButton:a=!0,closeOnOverlayClick:i=!0,closeOnEscape:l=!0})=>{const c=C.useRef(null);if(C.useEffect(()=>{if(!e||!l)return;const w=S=>{S.key==="Escape"&&r()};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[e,l,r]),C.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),C.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"),g=p("bg-card rounded-lg shadow-xl w-full max-h-[90vh] overflow-hidden flex flex-col",St(n)),m=p("p-6 border-b border-border flex items-center justify-between"),b=p("p-6 overflow-y-auto flex-1"),N=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 o.jsx("div",{className:d,onClick:i?r:void 0,children:o.jsxs("div",{ref:c,className:g,onClick:w=>w.stopPropagation(),tabIndex:-1,role:"dialog","aria-modal":"true","aria-labelledby":t?"modal-title":void 0,children:[(t||a)&&o.jsxs("div",{className:m,children:[t&&o.jsx(P,{variant:"h3",className:"text-foreground",children:t}),a&&o.jsx("button",{onClick:r,"aria-label":"Close modal",className:N,children:"×"})]}),o.jsx("div",{className:b,children:s})]})})},Je=({children:e,actions:r,...t})=>o.jsxs(Qe,{...t,children:[o.jsx("div",{className:"p-6 overflow-y-auto flex-1",children:e}),r&&o.jsx("div",{className:"p-6 border-t border-border flex justify-end gap-3",children:r})]}),zt=({isOpen:e,onClose:r,onConfirm:t,title:s,message:n,confirmText:a="Confirm",cancelText:i="Cancel"})=>o.jsx(Je,{isOpen:e,onClose:r,title:s,actions:o.jsxs(o.Fragment,{children:[o.jsx(H,{variant:"secondary",onClick:r,children:i}),o.jsx(H,{variant:"default",onClick:t,children:a})]}),children:o.jsx(P,{children:n})});function Xe(e,r){return!r||r==="all"?e:e.filter(t=>t.categoryId===r)}function Ye(e,r){const t=[...e];return t.sort((s,n)=>{let a="",i="";return r.column==="title"?(a=s.title.toLowerCase(),i=n.title.toLowerCase()):r.column==="metric"&&(a=Ie(s.metricValue),i=Ie(n.metricValue)),a<i?r.direction==="asc"?-1:1:a>i?r.direction==="asc"?1:-1:0}),t}function Ie(e){if(!e)return 0;const r=e.match(/[\d.]+/);return r?parseFloat(r[0]):0}function er(e,r){return r==="all"?e.length:e.filter(t=>t.categoryId===r).length}function Et(e,r,t={}){const{initialCategory:s=null,initialSort:n=null,enableSearch:a=!1}=t,[i,l]=C.useState(s),[c,d]=C.useState(n),[g,m]=C.useState(""),b=C.useMemo(()=>Xe(e,i),[e,i]),N=C.useMemo(()=>{if(!a||!g.trim())return b;const R=g.toLowerCase();return b.filter(D=>D.title.toLowerCase().includes(R)||D.subtitle?.toLowerCase().includes(R))},[b,g,a]),w=C.useMemo(()=>c?Ye(N,c):N,[N,c]),S=C.useCallback(R=>er(e,R),[e]),M=C.useCallback(()=>{l(s),d(n),m("")},[s,n]);return{activeCategory:i,setActiveCategory:l,sort:c,setSort:d,searchQuery:g,setSearchQuery:m,filteredEntities:w,getCategoryCount:S,resetFilters:M}}const Mt=Ze("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"}}),de=k.forwardRef(({className:e,variant:r,size:t,icon:s,selected:n,dismissible:a,onDismiss:i,children:l,disabled:c,...d},g)=>{const m=n?"selected":r;return o.jsxs("button",{type:"button",className:p(Mt({variant:m,size:t,className:e})),ref:g,disabled:c,"aria-disabled":c?"true":void 0,"aria-pressed":n?"true":"false",...d,children:[s&&o.jsx("span",{className:"mr-1.5 inline-flex items-center","aria-hidden":"true",children:s}),o.jsx("span",{children:l}),a&&i&&o.jsx("button",{type:"button",className:"ml-1.5 inline-flex items-center hover:opacity-70",onClick:b=>{b.stopPropagation(),i()},"aria-label":"Remove",children:"×"})]})});de.displayName="Chip";const we=k.forwardRef(({categories:e,activeCategory:r,onCategoryChange:t,showCount:s,getCategoryCount:n,className:a},i)=>o.jsx("div",{ref:i,role:"tablist","aria-label":"Filter by category",className:p("flex flex-wrap gap-2 overflow-x-auto pb-2",a),children:e.map(l=>{const c=r===l.id,d=s&&n?n(l.id):void 0;return o.jsxs(de,{role:"tab","aria-selected":c,"aria-controls":`entities-panel-${l.id}`,selected:c,variant:c?"selected":"outline",icon:typeof l.icon=="string"?l.icon:l.icon?k.createElement(l.icon):void 0,onClick:()=>t(c?null:l.id),children:[l.label,d!==void 0&&o.jsxs("span",{className:"ml-1.5 opacity-70",children:["(",d,")"]})]},l.id)})}));we.displayName="CategoryChips";/**
2
2
  * @license lucide-react v0.547.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -13,7 +13,7 @@
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 It=C.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:s,className:n="",children:a,iconNode:i,...c},l)=>C.createElement("svg",{ref:l,...Lt,width:r,height:r,stroke:e,strokeWidth:s?Number(t)*24/Number(r):t,className:rr("lucide",n),...!a&&!At(c)&&{"aria-hidden":"true"},...c},[...i.map(([d,g])=>C.createElement(d,g)),...Array.isArray(a)?a:[a]]));/**
16
+ */const It=C.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:s,className:n="",children:a,iconNode:i,...l},c)=>C.createElement("svg",{ref:c,...Lt,width:r,height:r,stroke:e,strokeWidth:s?Number(t)*24/Number(r):t,className:rr("lucide",n),...!a&&!At(l)&&{"aria-hidden":"true"},...l},[...i.map(([d,g])=>C.createElement(d,g)),...Array.isArray(a)?a:[a]]));/**
17
17
  * @license lucide-react v0.547.0 - ISC
18
18
  *
19
19
  * This source code is licensed under the ISC license.
@@ -58,5 +58,5 @@
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 Kt=[["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"}]],Qt=q("maximize",Kt),Jt=e=>{switch(e.variant||Xt(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"}},Xt=e=>{switch(e){case"Venta":return"primary";case"Desarrollo":return"success";case"Renta":return"info";case"Remate":return"warning";default:return"secondary"}},Yt=({property:e,className:r,onLike:t,onImageClick:s,showLikeButton:n=!0,showNavigation:a=!0})=>{const[i,c]=C.useState(0),[l,d]=C.useState(!1),g=()=>{c(v=>v===e.images.length-1?0:v+1)},m=()=>{c(v=>v===0?e.images.length-1:v-1)},b=v=>{v.preventDefault(),v.stopPropagation();const j=!l;d(j),t?.(e.id,j)},N=v=>{v.preventDefault(),v.stopPropagation(),s?.(i,e.id)},w=(v,j)=>!v||!j?"Price not available":`$${v.toLocaleString()} ${j}`,S=p("relative overflow-hidden bg-card rounded-2xl shadow-md transition-all duration-300 ease-out cursor-pointer hover:-translate-y-1 hover:shadow-xl",r),M=p("relative overflow-hidden"),R=p("w-full h-full object-cover transition-transform duration-300 hover:scale-105"),D=p("absolute top-4 left-4 flex flex-wrap gap-1 z-10"),$=p("px-2 py-1 rounded-lg text-xs font-medium uppercase tracking-wide"),L=p("absolute top-4 right-4 z-10 bg-background/90 backdrop-blur-sm border border-border/20 text-foreground rounded-full w-10 h-10 flex items-center justify-center cursor-pointer transition-all duration-200 hover:bg-background hover:scale-105"),I=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"),F=p("absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-1 z-10"),G=p("w-2 h-2 rounded-full border-none cursor-pointer transition-all duration-200 hover:scale-120"),x=p("p-6"),T=p("text-lg font-bold text-foreground mb-2 line-clamp-2 leading-tight"),J=p("text-xl font-bold text-primary mb-2"),X=p("text-base text-muted-foreground mb-4"),U=p("flex items-center gap-4 mb-4"),B=p("flex items-center gap-1 text-sm text-muted-foreground"),K=p("text-sm text-muted-foreground line-clamp-2"),_=o.jsxs("div",{className:S,children:[o.jsxs("div",{className:p(M,"aspect-[4/3] bg-red-500"),children:[o.jsx("img",{src:e.images[i],alt:e.title,className:R,onClick:s?N:void 0}),o.jsx("div",{className:D,children:e.transactionTypes.map((v,j)=>o.jsx("span",{className:p($,Jt(v)),children:v.type},j))}),n&&o.jsx("button",{onClick:b,className:L,"aria-label":l?"Unlike property":"Like property",children:o.jsx(Zt,{size:20,fill:l?"currentColor":"none",className:l?"text-destructive":""})}),a&&e.images.length>1&&o.jsxs(o.Fragment,{children:[o.jsx(H,{onClick:v=>{v.preventDefault(),v.stopPropagation(),m()},className:p(I,"left-4"),"aria-label":"Previous image",children:o.jsx(Bt,{size:20})}),o.jsx(H,{onClick:v=>{v.preventDefault(),v.stopPropagation(),g()},className:p(I,"right-4"),"aria-label":"Next image",children:o.jsx(Ut,{size:20})}),o.jsx("div",{className:F,children:e.images.map((v,j)=>o.jsx("button",{className:p(G,j===i?"bg-background":"bg-background/50"),onClick:h=>{h.preventDefault(),h.stopPropagation(),c(j)},"aria-label":`Go to image ${j+1}`,"aria-current":j===i},j))})]})]}),o.jsxs("div",{className:x,children:[o.jsx("h3",{className:T,children:e.title}),o.jsx("p",{className:J,children:w(e.price?.amount,e.price?.currency)}),o.jsxs("p",{className:X,children:[e.location.city,", ",e.location.state]}),o.jsxs("div",{className:U,children:[o.jsxs("div",{className:B,children:[o.jsx(Ft,{size:16}),o.jsx("span",{children:e.features.bedrooms})]}),o.jsxs("div",{className:B,children:[o.jsx(Vt,{size:16}),o.jsx("span",{children:e.features.bathrooms})]}),o.jsxs("div",{className:B,children:[o.jsx($t,{size:16}),o.jsx("span",{children:e.features.parking})]}),o.jsxs("div",{className:B,children:[o.jsx(Qt,{size:16}),o.jsxs("span",{children:[e.features.area," m²"]})]})]}),e.amenities.length>0&&o.jsx("p",{className:K,children:e.amenities.join(", ")})]})]});return e.href?o.jsx("a",{href:e.href,className:"no-underline text-inherit",children:_}):_},tr=C.forwardRef(({images:e,transactionType:r,totalPhotos:t,onViewAllClick:s,onImageClick:n,className:a},i)=>{const c=e.slice(0,5),l=d=>{n?.(d)};return o.jsxs("div",{ref:i,className:p("w-full h-full grid grid-cols-2 gap-2",a),children:[o.jsx("div",{className:"relative col-span-1 row-span-2 rounded-2xl overflow-hidden group cursor-pointer",children:c[0]?o.jsxs(o.Fragment,{children:[o.jsx("img",{src:c[0],alt:"Property main view",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>l(0)}),r&&o.jsx("div",{className:"absolute top-4 left-4 bg-white rounded-full px-4 py-2 shadow-md",children:o.jsx("span",{className:"text-sm font-medium text-foreground",children:r})})]}):o.jsx("div",{className:"w-full h-full bg-muted flex items-center justify-center",children:o.jsx("span",{className:"text-muted-foreground",children:"No image"})})}),o.jsx("div",{className:"relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer",children:c[1]?o.jsx("img",{src:c[1],alt:"Property view 2",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>l(1)}):o.jsx("div",{className:"w-full h-full bg-muted"})}),o.jsx("div",{className:"relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer",children:c[2]?o.jsx("img",{src:c[2],alt:"Property view 3",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>l(2)}):o.jsx("div",{className:"w-full h-full bg-muted"})}),o.jsx("div",{className:"relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer",children:c[3]?o.jsx("img",{src:c[3],alt:"Property view 4",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>l(3)}):o.jsx("div",{className:"w-full h-full bg-muted"})}),o.jsx("div",{className:"relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer",children:c[4]?o.jsxs(o.Fragment,{children:[o.jsx("img",{src:c[4],alt:"Property view 5",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>l(4)}),t&&t>5&&o.jsx("div",{className:"absolute bottom-4 right-4",children:o.jsxs("button",{onClick:d=>{d.stopPropagation(),s?.()},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:[o.jsx(Ht,{className:"w-4 h-4 text-foreground"}),o.jsxs("span",{className:"text-sm font-medium text-foreground",children:["Ver las ",t," fotos"]})]})})]}):o.jsx("div",{className:"w-full h-full bg-muted"})})]})});tr.displayName="PropertyGallery";const or=k.forwardRef(({title:e,description:r,className:t},s)=>o.jsxs("div",{ref:s,className:p("space-y-1.5",t),children:[o.jsx(P,{variant:"heading",size:"2xl",className:"font-bold",children:e}),r&&o.jsx(P,{variant:"body",size:"base",className:"text-muted-foreground",children:r})]}));or.displayName="EntityDirectoryHeader";const sr=k.forwardRef(({entity:e,categories:r,showIcon:t=!0,showCategoryBadge:s=!0,showMetric:n=!0,compact:a=!1,className:i},c)=>{const l=r?.find(b=>b.id===e.categoryId),d=!!e.onClick,g=()=>{e.onClick&&!e.disabled&&e.onClick()},m=b=>{d&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),g())};return o.jsxs("div",{ref:c,role:d?"button":"listitem",tabIndex:d&&!e.disabled?0:void 0,onClick:g,onKeyDown:m,"aria-disabled":e.disabled,className:p("flex items-center gap-4 border-b border-border transition-colors",a?"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",i),children:[t&&o.jsx("div",{className:p("flex-shrink-0 flex items-center justify-center bg-muted rounded-full",a?"w-8 h-8 text-lg":"w-10 h-10 text-xl"),"aria-hidden":"true",children:typeof e.icon=="string"?o.jsx("span",{children:e.icon}):e.icon?e.icon:o.jsx("span",{className:"text-muted-foreground",children:"•"})}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsx(P,{variant:"body",size:a?"sm":"base",className:"font-semibold truncate",children:e.title}),e.subtitle&&o.jsx(P,{variant:"body",size:a?"xs":"sm",className:"text-muted-foreground truncate",children:e.subtitle})]}),s&&l&&o.jsx(de,{variant:"secondary",size:a?"sm":"default",className:"flex-shrink-0 bg-foreground text-background hover:bg-foreground/90","aria-label":`Category: ${l.label}`,children:l.label}),n&&e.metricValue&&o.jsxs("div",{className:"flex-shrink-0 text-right min-w-[4rem]",children:[o.jsx(P,{variant:"body",size:a?"sm":"base",className:"font-medium",children:e.metricValue}),e.metricLabel&&o.jsx(P,{variant:"body",size:"xs",className:"text-muted-foreground",children:e.metricLabel})]})]})});sr.displayName="EntityDirectoryListItem";const nr=k.forwardRef(({columns:e,showIcon:r,sort:t,onSortChange:s,compact:n,className:a},i)=>{const c=m=>{if(!s)return;const b=t?.column===m&&t?.direction==="asc"?"desc":"asc";s({column:m,direction:b})},l=m=>{c(m)},d=(m,b)=>{(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),c(b))},g=m=>m!=="title"&&m!=="metric"?null:!t||t.column!==m?o.jsx("span",{className:"ml-1 text-muted-foreground opacity-50","aria-hidden":"true",children:"⇅"}):o.jsx("span",{className:"ml-1","aria-hidden":"true",children:t.direction==="asc"?"↑":"↓"});return o.jsxs("div",{ref:i,role:"row",className:p("flex items-center gap-4 bg-background border-b border-border font-medium text-sm text-muted-foreground",n?"px-3 py-2":"px-4 py-3",a),children:[r&&o.jsx("div",{className:n?"w-8":"w-10"}),e.map(m=>{const b=m.sortable&&(m.key==="title"||m.key==="metric"),N=t?.column===m.key;return o.jsxs("div",{role:"columnheader","aria-sort":N?t?.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",b&&"cursor-pointer hover:text-foreground transition-colors select-none",N&&"text-foreground"),style:m.width?{width:m.width}:void 0,onClick:b&&(m.key==="title"||m.key==="metric")?()=>l(m.key):void 0,tabIndex:b?0:void 0,onKeyDown:b&&(m.key==="title"||m.key==="metric")?w=>d(w,m.key):void 0,children:[m.label,b&&g(m.key)]},m.key)})]})});nr.displayName="EntityDirectoryTableHeader";const ar=k.forwardRef(({entities:e,categories:r,showIcons:t=!0,showCategoryBadges:s=!0,showMetric:n=!0,metricLabel:a,sortable:i=!1,sort:c,onSortChange:l,compact:d=!1,renderItem:g,className:m},b)=>{const N=[{key:"title",label:a?"Nombre":"Name",sortable:i},...s?[{key:"category",label:"Categoría",sortable:!1}]:[],...n&&a?[{key:"metric",label:a,sortable:i,align:"right"}]:[]];return o.jsxs("div",{ref:b,role:"table","aria-label":"Entity directory",className:p("border border-border rounded-lg overflow-hidden",m),children:[o.jsx(nr,{columns:N,showIcon:t,sort:c,onSortChange:l,compact:d}),o.jsx("div",{role:"rowgroup",children:e.map(w=>g?o.jsx(k.Fragment,{children:g(w)},w.id):o.jsx(sr,{entity:w,categories:r,showIcon:t,showCategoryBadge:s,showMetric:n,compact:d},w.id))})]})});ar.displayName="EntityDirectoryList";const ir=k.forwardRef(({message:e="No entities found",icon:r,action:t,className:s},n)=>o.jsxs("div",{ref:n,role:"status","aria-live":"polite",className:p("flex flex-col items-center justify-center py-12 px-4 text-center",s),children:[r&&o.jsx("div",{className:"mb-4 text-4xl opacity-50","aria-hidden":"true",children:r}),o.jsx(P,{variant:"body",size:"lg",className:"text-muted-foreground mb-4",children:e}),t&&o.jsx(H,{variant:"outline",onClick:t.onClick,children:t.label})]}));ir.displayName="EntityDirectoryEmptyState";const lr=k.forwardRef(({error:e,onRetry:r,className:t},s)=>{const n=typeof e=="string"?e:e.message;return o.jsxs("div",{ref:s,role:"alert","aria-live":"assertive",className:p("flex flex-col items-center justify-center py-12 px-4 text-center",t),children:[o.jsx("div",{className:"mb-4 text-4xl","aria-hidden":"true",children:"⚠️"}),o.jsx(P,{variant:"body",size:"lg",className:"text-destructive mb-2 font-semibold",children:"Error"}),o.jsx(P,{variant:"body",size:"base",className:"text-muted-foreground mb-4",children:n}),r&&o.jsx(H,{variant:"outline",onClick:r,children:"Try Again"})]})});lr.displayName="EntityDirectoryErrorState";const cr=k.forwardRef(({rows:e=5,className:r},t)=>o.jsxs("div",{ref:t,role:"status","aria-live":"polite","aria-label":"Loading entities",className:p("space-y-3",r),children:[Array.from({length:e}).map((s,n)=>o.jsxs("div",{className:"flex items-center gap-4 p-4 border border-border rounded-lg animate-pulse",children:[o.jsx("div",{className:"w-10 h-10 bg-muted rounded-full flex-shrink-0"}),o.jsxs("div",{className:"flex-1 space-y-2",children:[o.jsx("div",{className:"h-4 bg-muted rounded w-1/3"}),o.jsx("div",{className:"h-3 bg-muted rounded w-1/2"})]}),o.jsx("div",{className:"h-6 bg-muted rounded-full w-24 flex-shrink-0"}),o.jsx("div",{className:"h-4 bg-muted rounded w-16 flex-shrink-0"})]},n)),o.jsx("span",{className:"sr-only",children:"Loading..."})]}));cr.displayName="EntityDirectoryLoadingState";const dr=k.forwardRef(({value:e,onChange:r,placeholder:t="Search entities...",className:s},n)=>o.jsxs("div",{className:p("relative",s),children:[o.jsx("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none",children:o.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:o.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"})})}),o.jsx("input",{ref:n,type:"search",value:e,onChange:a=>r(a.target.value),placeholder:t,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&&o.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:o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}));dr.displayName="EntityDirectorySearchFilter";const mr=k.forwardRef(({entities:e,categories:r,title:t,description:s,activeCategory:n,onCategoryChange:a,showCategoryCount:i,getCategoryCount:c,enableSearch:l=!1,searchQuery:d="",onSearchChange:g,searchPlaceholder:m,sortable:b=!1,sort:N,onSortChange:w,showIcons:S=!0,showCategoryBadges:M=!0,showMetric:R=!0,metricLabel:D,compact:$=!1,loading:L=!1,error:I,emptyMessage:F,onRetry:G,emptyState:x,errorState:T,loadingState:J,renderItem:X,className:U,style:B},K)=>{const _=r&&r.length>0,v=!L&&!I&&e.length===0,j=!L&&!!I;return o.jsxs("div",{ref:K,className:p("space-y-6",U),style:B,children:[o.jsx(or,{title:t,description:s}),_&&a&&o.jsx(we,{categories:r,activeCategory:n,onCategoryChange:a,showCount:i,getCategoryCount:c}),l&&g&&o.jsx(dr,{value:d,onChange:g,placeholder:m}),L&&(J||o.jsx(cr,{})),j&&(T||o.jsx(lr,{error:I,onRetry:G})),v&&(x||o.jsx(ir,{message:F})),!L&&!j&&!v&&o.jsx(ar,{entities:e,categories:r,showIcons:S,showCategoryBadges:M,showMetric:R,metricLabel:D,sortable:b,sort:N,onSortChange:w,compact:$,renderItem:X})]})});mr.displayName="EntityDirectory";const eo=e=>{switch(e){case"sm":return"p-4";case"md":return"p-6";case"lg":return"p-8";default:return"p-0"}},me=({children:e,header:r,sidebar:t,footer:s,padding:n="md"})=>{const a=p("min-h-screen flex flex-col"),i=p("bg-card border-b border-border z-10"),c=p("flex flex-1"),l=p("w-70 bg-card border-r border-border p-6"),d=p("flex-1 flex flex-col"),g=p("flex-1 mx-auto w-full max-w-7xl",eo(n));return o.jsxs("div",{className:a,children:[r&&o.jsx("header",{className:i,children:r}),o.jsxs("div",{className:c,children:[t&&o.jsx("aside",{className:l,children:t}),o.jsx("div",{className:d,children:o.jsx("main",{className:g,children:e})})]}),s&&o.jsx("footer",{className:"bg-card border-t border-border mt-auto",children:s})]})},ro=({children:e,header:r,sidebar:t})=>o.jsx(me,{header:r,sidebar:t,padding:"lg",children:o.jsx("div",{className:"max-w-screen-2xl",children:e})}),to=({children:e,title:r,subtitle:t})=>o.jsx(me,{padding:"lg",children:o.jsxs("div",{className:"max-w-md mx-auto",children:[o.jsxs("div",{className:"text-center mb-8",children:[r&&o.jsx(P,{variant:"h2",className:"mb-2",children:r}),t&&o.jsx(P,{variant:"body",color:"muted",children:t})]}),e]})}),oo=({children:e,header:r,footer:t})=>o.jsx(me,{header:r,footer:t,padding:"none",children:e}),so={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)"}},no={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)"}},ao={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)"}},io={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"}},he={light:so,dark:no,corporate:ao,minimal:io},ur=ce.createEvent(),fr=ce.createEvent(),gr=ce.createEvent(),Z=ce.createStore(he.light).on(ur,(e,r)=>he[r]||e).on(fr,(e,r)=>r).on(gr,()=>he.light),lo=Z.map(e=>e.name),co=Z.map(e=>e.colors);Z.map(e=>e.shapes);Z.map(e=>e.typography);Z.map(e=>e.spacing);Z.map(e=>e.shadows);const pr=C.createContext(null),mo=()=>{const e=C.useContext(pr);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e},uo=({children:e})=>{const t={theme:Nr.useUnit(Z)};return o.jsx(pr.Provider,{value:t,children:e})},fo={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"}},hr={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"}}},xr={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},br={withOpacity:(e,r)=>r!==void 0?`hsl(var(${e}) / ${r})`:`hsl(var(${e}))`,get:e=>`hsl(var(--${e}))`},yr={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"}},vr={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"}},wr={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"}},kr={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"}},jr={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")}},Cr={debounce:(e,r)=>{let t;return(...s)=>{clearTimeout(t),t=setTimeout(()=>e(...s),r)}},throttle:(e,r)=>{let t;return(...s)=>{t||(e(...s),t=!0,setTimeout(()=>t=!1,r))}}},go=({href:e,children:r})=>o.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=Z;exports.$themeColors=co;exports.$themeName=lo;exports.AuthLayout=to;exports.Button=H;exports.Card=Ke;exports.CategoryChips=we;exports.Chip=de;exports.CompoundCard=Nt;exports.ConfirmModal=zt;exports.DashboardLayout=ro;exports.EntityDirectory=mr;exports.MarketingLayout=oo;exports.Modal=Qe;exports.ModalWithActions=Je;exports.PageLayout=me;exports.PropertyCard=Yt;exports.PropertyGallery=tr;exports.SkipLink=go;exports.Text=P;exports.ThemeProvider=uo;exports.a11y=yr;exports.accessibilityUtils=yr;exports.animationUtils=wr;exports.animations=wr;exports.breakpoints=xr;exports.cn=p;exports.colorUtils=br;exports.colors=br;exports.componentSizes=vr;exports.componentVariants=hr;exports.countEntitiesByCategory=er;exports.designSystem=fo;exports.filterEntitiesByCategory=Xe;exports.layout=kr;exports.layoutUtils=kr;exports.performance=Cr;exports.performanceUtils=Cr;exports.resetTheme=gr;exports.responsiveBreakpoints=xr;exports.setCustomTheme=fr;exports.setTheme=ur;exports.sizes=vr;exports.sortEntities=Ye;exports.theme=jr;exports.themeUtils=jr;exports.useEntityFilter=Et;exports.useTheme=mo;exports.variants=hr;
61
+ */const Kt=[["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"}]],Qt=q("maximize",Kt),Jt=e=>{switch(e.variant||Xt(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"}},Xt=e=>{switch(e){case"Venta":return"primary";case"Desarrollo":return"success";case"Renta":return"info";case"Remate":return"warning";default:return"secondary"}},Yt=({property:e,className:r,onLike:t,onImageClick:s,showLikeButton:n=!0,showNavigation:a=!0})=>{const[i,l]=C.useState(0),[c,d]=C.useState(!1),g=()=>{l(v=>v===e.images.length-1?0:v+1)},m=()=>{l(v=>v===0?e.images.length-1:v-1)},b=v=>{v.preventDefault(),v.stopPropagation();const j=!c;d(j),t?.(e.id,j)},N=v=>{v.preventDefault(),v.stopPropagation(),s?.(i,e.id)},w=(v,j)=>!v||!j?"Price not available":`$${v.toLocaleString()} ${j}`,S=p("relative overflow-hidden bg-card rounded-2xl shadow-md transition-all duration-300 ease-out cursor-pointer hover:-translate-y-1 hover:shadow-xl",r),M=p("relative overflow-hidden"),R=p("w-full h-full object-cover transition-transform duration-300 hover:scale-105"),D=p("absolute top-4 left-4 flex flex-wrap gap-1 z-10"),$=p("px-2 py-1 rounded-lg text-xs font-medium uppercase tracking-wide"),L=p("absolute top-4 right-4 z-10 bg-background/90 backdrop-blur-sm border border-border/20 text-foreground rounded-full w-10 h-10 flex items-center justify-center cursor-pointer transition-all duration-200 hover:bg-background hover:scale-105"),I=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"),F=p("absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-1 z-10"),G=p("w-2 h-2 rounded-full border-none cursor-pointer transition-all duration-200 hover:scale-120"),x=p("p-6"),T=p("text-lg font-bold text-foreground mb-2 line-clamp-2 leading-tight"),J=p("text-xl font-bold text-primary mb-2"),X=p("text-base text-muted-foreground mb-4"),U=p("flex items-center gap-4 mb-4"),B=p("flex items-center gap-1 text-sm text-muted-foreground"),K=p("text-sm text-muted-foreground line-clamp-2"),_=o.jsxs("div",{className:S,children:[o.jsxs("div",{className:p(M,"aspect-[4/3] bg-red-500"),children:[o.jsx("img",{src:e.images[i],alt:e.title,className:R,onClick:s?N:void 0}),o.jsx("div",{className:D,children:e.transactionTypes.map((v,j)=>o.jsx("span",{className:p($,Jt(v)),children:v.type},j))}),n&&o.jsx("button",{onClick:b,className:L,"aria-label":c?"Unlike property":"Like property",children:o.jsx(Zt,{size:20,fill:c?"currentColor":"none",className:c?"text-destructive":""})}),a&&e.images.length>1&&o.jsxs(o.Fragment,{children:[o.jsx(H,{onClick:v=>{v.preventDefault(),v.stopPropagation(),m()},className:p(I,"left-4"),"aria-label":"Previous image",children:o.jsx(Bt,{size:20})}),o.jsx(H,{onClick:v=>{v.preventDefault(),v.stopPropagation(),g()},className:p(I,"right-4"),"aria-label":"Next image",children:o.jsx(Ut,{size:20})}),o.jsx("div",{className:F,children:e.images.map((v,j)=>o.jsx("button",{className:p(G,j===i?"bg-background":"bg-background/50"),onClick:h=>{h.preventDefault(),h.stopPropagation(),l(j)},"aria-label":`Go to image ${j+1}`,"aria-current":j===i},j))})]})]}),o.jsxs("div",{className:x,children:[o.jsx("h3",{className:T,children:e.title}),o.jsx("p",{className:J,children:w(e.price?.amount,e.price?.currency)}),o.jsxs("p",{className:X,children:[e.location.city,", ",e.location.state]}),o.jsxs("div",{className:U,children:[o.jsxs("div",{className:B,children:[o.jsx(Ft,{size:16}),o.jsx("span",{children:e.features.bedrooms})]}),o.jsxs("div",{className:B,children:[o.jsx(Vt,{size:16}),o.jsx("span",{children:e.features.bathrooms})]}),o.jsxs("div",{className:B,children:[o.jsx($t,{size:16}),o.jsx("span",{children:e.features.parking})]}),o.jsxs("div",{className:B,children:[o.jsx(Qt,{size:16}),o.jsxs("span",{children:[e.features.area," m²"]})]})]}),e.amenities.length>0&&o.jsx("p",{className:K,children:e.amenities.join(", ")})]})]});return e.href?o.jsx("a",{href:e.href,className:"no-underline text-inherit",children:_}):_},tr=C.forwardRef(({images:e,transactionType:r,totalPhotos:t,onViewAllClick:s,onImageClick:n,className:a},i)=>{const l=e.slice(0,5),c=d=>{n?.(d)};return o.jsxs("div",{ref:i,className:p("w-full h-full grid grid-cols-2 gap-2",a),children:[o.jsx("div",{className:"relative col-span-1 row-span-2 rounded-2xl overflow-hidden group cursor-pointer",children:l[0]?o.jsxs(o.Fragment,{children:[o.jsx("img",{src:l[0],alt:"Property main view",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>c(0)}),r&&o.jsx("div",{className:"absolute top-4 left-4 bg-white rounded-full px-4 py-2 shadow-md",children:o.jsx("span",{className:"text-sm font-medium text-foreground",children:r})})]}):o.jsx("div",{className:"w-full h-full bg-muted flex items-center justify-center",children:o.jsx("span",{className:"text-muted-foreground",children:"No image"})})}),o.jsx("div",{className:"relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer",children:l[1]?o.jsx("img",{src:l[1],alt:"Property view 2",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>c(1)}):o.jsx("div",{className:"w-full h-full bg-muted"})}),o.jsx("div",{className:"relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer",children:l[2]?o.jsx("img",{src:l[2],alt:"Property view 3",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>c(2)}):o.jsx("div",{className:"w-full h-full bg-muted"})}),o.jsx("div",{className:"relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer",children:l[3]?o.jsx("img",{src:l[3],alt:"Property view 4",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>c(3)}):o.jsx("div",{className:"w-full h-full bg-muted"})}),o.jsx("div",{className:"relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer",children:l[4]?o.jsxs(o.Fragment,{children:[o.jsx("img",{src:l[4],alt:"Property view 5",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",onClick:()=>c(4)}),t&&t>5&&o.jsx("div",{className:"absolute bottom-4 right-4",children:o.jsxs("button",{onClick:d=>{d.stopPropagation(),s?.()},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:[o.jsx(Ht,{className:"w-4 h-4 text-foreground"}),o.jsxs("span",{className:"text-sm font-medium text-foreground",children:["Ver las ",t," fotos"]})]})})]}):o.jsx("div",{className:"w-full h-full bg-muted"})})]})});tr.displayName="PropertyGallery";const or=k.forwardRef(({title:e,description:r,className:t},s)=>o.jsxs("div",{ref:s,className:p("space-y-1.5",t),children:[o.jsx(P,{variant:"h2",className:"font-bold",children:e}),r&&o.jsx(P,{variant:"body",className:"text-muted-foreground",children:r})]}));or.displayName="EntityDirectoryHeader";const sr=k.forwardRef(({entity:e,categories:r,showIcon:t=!0,showCategoryBadge:s=!0,showMetric:n=!0,compact:a=!1,className:i},l)=>{const c=r?.find(b=>b.id===e.categoryId),d=!!e.onClick,g=()=>{e.onClick&&!e.disabled&&e.onClick()},m=b=>{d&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),g())};return o.jsxs("div",{ref:l,role:d?"button":"listitem",tabIndex:d&&!e.disabled?0:void 0,onClick:g,onKeyDown:m,"aria-disabled":e.disabled,className:p("flex items-center gap-4 border-b border-border transition-colors",a?"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",i),children:[t&&o.jsx("div",{className:p("flex-shrink-0 flex items-center justify-center bg-muted rounded-full",a?"w-8 h-8 text-lg":"w-10 h-10 text-xl"),"aria-hidden":"true",children:typeof e.icon=="string"?o.jsx("span",{children:e.icon}):e.icon?k.createElement(e.icon):o.jsx("span",{className:"text-muted-foreground",children:"•"})}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsx(P,{variant:a?"body-sm":"body",className:"font-semibold truncate",children:e.title}),e.subtitle&&o.jsx(P,{variant:a?"caption":"body-sm",className:"text-muted-foreground truncate",children:e.subtitle})]}),s&&c&&o.jsx(de,{variant:"secondary",size:a?"sm":"default",className:"flex-shrink-0 bg-foreground text-background hover:bg-foreground/90","aria-label":`Category: ${c.label}`,children:c.label}),n&&e.metricValue&&o.jsxs("div",{className:"flex-shrink-0 text-right min-w-[4rem]",children:[o.jsx(P,{variant:a?"body-sm":"body",className:"font-medium",children:e.metricValue}),e.metricLabel&&o.jsx(P,{variant:"caption",className:"text-muted-foreground",children:e.metricLabel})]})]})});sr.displayName="EntityDirectoryListItem";const nr=k.forwardRef(({columns:e,showIcon:r,sort:t,onSortChange:s,compact:n,className:a},i)=>{const l=m=>{if(!s)return;const b=t?.column===m&&t?.direction==="asc"?"desc":"asc";s({column:m,direction:b})},c=m=>{l(m)},d=(m,b)=>{(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),l(b))},g=m=>m!=="title"&&m!=="metric"?null:!t||t.column!==m?o.jsx("span",{className:"ml-1 text-muted-foreground opacity-50","aria-hidden":"true",children:"⇅"}):o.jsx("span",{className:"ml-1","aria-hidden":"true",children:t.direction==="asc"?"↑":"↓"});return o.jsxs("div",{ref:i,role:"row",className:p("flex items-center gap-4 bg-background border-b border-border font-medium text-sm text-muted-foreground",n?"px-3 py-2":"px-4 py-3",a),children:[r&&o.jsx("div",{className:n?"w-8":"w-10"}),e.map(m=>{const b=m.sortable&&(m.key==="title"||m.key==="metric"),N=t?.column===m.key;return o.jsxs("div",{role:"columnheader","aria-sort":N?t?.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",b&&"cursor-pointer hover:text-foreground transition-colors select-none",N&&"text-foreground"),style:m.width?{width:m.width}:void 0,onClick:b&&(m.key==="title"||m.key==="metric")?()=>c(m.key):void 0,tabIndex:b?0:void 0,onKeyDown:b&&(m.key==="title"||m.key==="metric")?w=>d(w,m.key):void 0,children:[m.label,b&&g(m.key)]},m.key)})]})});nr.displayName="EntityDirectoryTableHeader";const ar=k.forwardRef(({entities:e,categories:r,showIcons:t=!0,showCategoryBadges:s=!0,showMetric:n=!0,metricLabel:a,sortable:i=!1,sort:l,onSortChange:c,compact:d=!1,renderItem:g,className:m},b)=>{const N=[{key:"title",label:a?"Nombre":"Name",sortable:i},...s?[{key:"category",label:"Categoría",sortable:!1}]:[],...n&&a?[{key:"metric",label:a,sortable:i,align:"right"}]:[]];return o.jsxs("div",{ref:b,role:"table","aria-label":"Entity directory",className:p("border border-border rounded-lg overflow-hidden",m),children:[o.jsx(nr,{columns:N,showIcon:t,sort:l,onSortChange:c,compact:d}),o.jsx("div",{role:"rowgroup",children:e.map(w=>g?o.jsx(k.Fragment,{children:g(w)},w.id):o.jsx(sr,{entity:w,categories:r,showIcon:t,showCategoryBadge:s,showMetric:n,compact:d},w.id))})]})});ar.displayName="EntityDirectoryList";const ir=k.forwardRef(({message:e="No entities found",icon:r,action:t,className:s},n)=>o.jsxs("div",{ref:n,role:"status","aria-live":"polite",className:p("flex flex-col items-center justify-center py-12 px-4 text-center",s),children:[r&&o.jsx("div",{className:"mb-4 text-4xl opacity-50","aria-hidden":"true",children:r}),o.jsx(P,{variant:"body-lg",className:"text-muted-foreground mb-4",children:e}),t&&o.jsx(H,{variant:"outline",onClick:t.onClick,children:t.label})]}));ir.displayName="EntityDirectoryEmptyState";const lr=k.forwardRef(({error:e,onRetry:r,className:t},s)=>{const n=typeof e=="string"?e:e.message;return o.jsxs("div",{ref:s,role:"alert","aria-live":"assertive",className:p("flex flex-col items-center justify-center py-12 px-4 text-center",t),children:[o.jsx("div",{className:"mb-4 text-4xl","aria-hidden":"true",children:"⚠️"}),o.jsx(P,{variant:"body-lg",className:"text-destructive mb-2 font-semibold",children:"Error"}),o.jsx(P,{variant:"body",className:"text-muted-foreground mb-4",children:n}),r&&o.jsx(H,{variant:"outline",onClick:r,children:"Try Again"})]})});lr.displayName="EntityDirectoryErrorState";const cr=k.forwardRef(({rows:e=5,className:r},t)=>o.jsxs("div",{ref:t,role:"status","aria-live":"polite","aria-label":"Loading entities",className:p("space-y-3",r),children:[Array.from({length:e}).map((s,n)=>o.jsxs("div",{className:"flex items-center gap-4 p-4 border border-border rounded-lg animate-pulse",children:[o.jsx("div",{className:"w-10 h-10 bg-muted rounded-full flex-shrink-0"}),o.jsxs("div",{className:"flex-1 space-y-2",children:[o.jsx("div",{className:"h-4 bg-muted rounded w-1/3"}),o.jsx("div",{className:"h-3 bg-muted rounded w-1/2"})]}),o.jsx("div",{className:"h-6 bg-muted rounded-full w-24 flex-shrink-0"}),o.jsx("div",{className:"h-4 bg-muted rounded w-16 flex-shrink-0"})]},n)),o.jsx("span",{className:"sr-only",children:"Loading..."})]}));cr.displayName="EntityDirectoryLoadingState";const dr=k.forwardRef(({value:e,onChange:r,placeholder:t="Search entities...",className:s},n)=>o.jsxs("div",{className:p("relative",s),children:[o.jsx("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none",children:o.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:o.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"})})}),o.jsx("input",{ref:n,type:"search",value:e,onChange:a=>r(a.target.value),placeholder:t,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&&o.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:o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}));dr.displayName="EntityDirectorySearchFilter";const mr=k.forwardRef(({entities:e,categories:r,title:t,description:s,activeCategory:n,onCategoryChange:a,showCategoryCount:i,getCategoryCount:l,enableSearch:c=!1,searchQuery:d="",onSearchChange:g,searchPlaceholder:m,sortable:b=!1,sort:N,onSortChange:w,showIcons:S=!0,showCategoryBadges:M=!0,showMetric:R=!0,metricLabel:D,compact:$=!1,loading:L=!1,error:I,emptyMessage:F,onRetry:G,emptyState:x,errorState:T,loadingState:J,renderItem:X,className:U,style:B},K)=>{const _=r&&r.length>0,v=!L&&!I&&e.length===0,j=!L&&!!I;return o.jsxs("div",{ref:K,className:p("space-y-6",U),style:B,children:[o.jsx(or,{title:t,description:s}),_&&a&&o.jsx(we,{categories:r,activeCategory:n,onCategoryChange:a,showCount:i,getCategoryCount:l}),c&&g&&o.jsx(dr,{value:d,onChange:g,placeholder:m}),L&&(J||o.jsx(cr,{})),j&&(T||o.jsx(lr,{error:I,onRetry:G})),v&&(x||o.jsx(ir,{message:F})),!L&&!j&&!v&&o.jsx(ar,{entities:e,categories:r,showIcons:S,showCategoryBadges:M,showMetric:R,metricLabel:D,sortable:b,sort:N,onSortChange:w,compact:$,renderItem:X})]})});mr.displayName="EntityDirectory";const eo=e=>{switch(e){case"sm":return"p-4";case"md":return"p-6";case"lg":return"p-8";default:return"p-0"}},me=({children:e,header:r,sidebar:t,footer:s,padding:n="md"})=>{const a=p("min-h-screen flex flex-col"),i=p("bg-card border-b border-border z-10"),l=p("flex flex-1"),c=p("w-70 bg-card border-r border-border p-6"),d=p("flex-1 flex flex-col"),g=p("flex-1 mx-auto w-full max-w-7xl",eo(n));return o.jsxs("div",{className:a,children:[r&&o.jsx("header",{className:i,children:r}),o.jsxs("div",{className:l,children:[t&&o.jsx("aside",{className:c,children:t}),o.jsx("div",{className:d,children:o.jsx("main",{className:g,children:e})})]}),s&&o.jsx("footer",{className:"bg-card border-t border-border mt-auto",children:s})]})},ro=({children:e,header:r,sidebar:t})=>o.jsx(me,{header:r,sidebar:t,padding:"lg",children:o.jsx("div",{className:"max-w-screen-2xl",children:e})}),to=({children:e,title:r,subtitle:t})=>o.jsx(me,{padding:"lg",children:o.jsxs("div",{className:"max-w-md mx-auto",children:[o.jsxs("div",{className:"text-center mb-8",children:[r&&o.jsx(P,{variant:"h2",className:"mb-2",children:r}),t&&o.jsx(P,{variant:"body",color:"muted",children:t})]}),e]})}),oo=({children:e,header:r,footer:t})=>o.jsx(me,{header:r,footer:t,padding:"none",children:e}),so={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)"}},no={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)"}},ao={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)"}},io={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"}},he={light:so,dark:no,corporate:ao,minimal:io},ur=ce.createEvent(),fr=ce.createEvent(),gr=ce.createEvent(),Z=ce.createStore(he.light).on(ur,(e,r)=>he[r]||e).on(fr,(e,r)=>r).on(gr,()=>he.light),lo=Z.map(e=>e.name),co=Z.map(e=>e.colors);Z.map(e=>e.shapes);Z.map(e=>e.typography);Z.map(e=>e.spacing);Z.map(e=>e.shadows);const pr=C.createContext(null),mo=()=>{const e=C.useContext(pr);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e},uo=({children:e})=>{const t={theme:Nr.useUnit(Z)};return o.jsx(pr.Provider,{value:t,children:e})},fo={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"}},hr={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"}}},xr={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},br={withOpacity:(e,r)=>r!==void 0?`hsl(var(${e}) / ${r})`:`hsl(var(${e}))`,get:e=>`hsl(var(--${e}))`},yr={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"}},vr={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"}},wr={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"}},kr={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"}},jr={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")}},Cr={debounce:(e,r)=>{let t;return(...s)=>{clearTimeout(t),t=setTimeout(()=>e(...s),r)}},throttle:(e,r)=>{let t;return(...s)=>{t||(e(...s),t=!0,setTimeout(()=>t=!1,r))}}},go=({href:e,children:r})=>o.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=Z;exports.$themeColors=co;exports.$themeName=lo;exports.AuthLayout=to;exports.Button=H;exports.Card=Ke;exports.CategoryChips=we;exports.Chip=de;exports.CompoundCard=Nt;exports.ConfirmModal=zt;exports.DashboardLayout=ro;exports.EntityDirectory=mr;exports.MarketingLayout=oo;exports.Modal=Qe;exports.ModalWithActions=Je;exports.PageLayout=me;exports.PropertyCard=Yt;exports.PropertyGallery=tr;exports.SkipLink=go;exports.Text=P;exports.ThemeProvider=uo;exports.a11y=yr;exports.accessibilityUtils=yr;exports.animationUtils=wr;exports.animations=wr;exports.breakpoints=xr;exports.cn=p;exports.colorUtils=br;exports.colors=br;exports.componentSizes=vr;exports.componentVariants=hr;exports.countEntitiesByCategory=er;exports.designSystem=fo;exports.filterEntitiesByCategory=Xe;exports.layout=kr;exports.layoutUtils=kr;exports.performance=Cr;exports.performanceUtils=Cr;exports.resetTheme=gr;exports.responsiveBreakpoints=xr;exports.setCustomTheme=fr;exports.setTheme=ur;exports.sizes=vr;exports.sortEntities=Ye;exports.theme=jr;exports.themeUtils=jr;exports.useEntityFilter=Et;exports.useTheme=mo;exports.variants=hr;
62
62
  //# sourceMappingURL=design-system.cjs.js.map