PageSourceSearch

https://lecollectif-tv.lovable.app/assets/client.dashboard-B8ZP1xfr.js

js lecollectif-tv.lovable.app collected 2026-10-03 03:35:41 UTC 80,798 bytes, 2 lines download raw bytes

vendor: 10,827 bytes, line 1
1import{r as l,j as i,R as ae,i as ir,c as te,L as Rt,e as ar}from"./index-r9cUOzRa.js";import{A as cr,P as lr,S as Ae}from"./AppShell-DvW6AB7o.js";import{B as Gt}from"./BriefCard-2HXcdjbF.js";import{c as Xe,a as ge,u as K,P as V,b as pt,d as qe,e as He,f as E,g as At,h as ve,i as an,j as ur,k as dr,l as fr,R as pr,F as mr,D as cn}from"./Combination-BqCkdEW2.js";import{C as hr}from"./chevron-right-CjDw_mAA.js";import{C as ln}from"./check-BbU_BBHd.js";import{C as xr}from"./circle-QrLdGUhr.js";import{C as gr}from"./chevron-down-C5hlrNDr.js";import{g as vr,X as un,Y as dn,B as mt,f as br,R as wr,C as yr,T as Cr,a as Vt}from"./generateCategoricalChart-Bn32m5Kk.js";import{D as fn}from"./download-B3I43hau.js";import{I as pn}from"./info-Dnyrblcc.js";import{u as Rr,a as ze}from"./demo-store-ZrvIcuC2.js";import{i as Ar}from"./shot-images-CcbTMOFr.js";import{P as mn}from"./plus-DAFVlMlf.js";import{S as Sr}from"./shield-alert-ClIPRcLQ.js";import{C as Mr}from"./clock-DNXqn-wH.js";import"./Footer-CByVw6dE.js";import"./logo-lc.svg.asset-CBSHmlfa.js";import"./users-CeYsQWva.js";import"./map-pin-BUZTJy6U.js";import"./calendar-xNq9XYWT.js";import"./hoian-lanterns.jpg.asset-Bg-hik4t.js";function Wt(e){const t=Nr(e),n=l.forwardRef((o,r)=>{const{children:s,...a}=o,c=l.Children.toArray(s),u=c.find(jr);if(u){const p=u.props.children,d=c.map(f=>f===u?l.Children.count(p)>1?l.Children.only(null):l.isValidElement(p)?p.props.children:null:f);return i.jsx(t,{...a,ref:r,children:l.isValidElement(p)?l.cloneElement(p,void 0,d):null})}return i.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function Nr(e){const t=l.forwardRef((n,o)=>{const{children:r,...s}=n;if(l.isValidElement(r)){const a=Tr(r),c=Pr(s,r.props);return r.type!==l.Fragment&&(c.ref=o?Xe(o,a):a),l.cloneElement(r,c)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Er=Symbol("radix.slottable");function jr(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Er}function Pr(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...c)=>{const u=s(...c);return r(...c),u}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Tr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function hn(e){const t=e+"CollectionProvider",[n,o]=ge(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:g,children:b}=v,C=ae.useRef(null),y=ae.useRef(new Map).current;return i.jsx(r,{scope:g,itemMap:y,collectionRef:C,children:b})};a.displayName=t;const c=e+"CollectionSlot",u=Wt(c),p=ae.forwardRef((v,g)=>{const{scope:b,children:C}=v,y=s(c,b),w=K(g,y.collectionRef);return i.jsx(u,{ref:w,children:C})});p.displayName=c;const d=e+"CollectionItemSlot",f="data-radix-collection-item",x=Wt(d),m=ae.forwardRef((v,g)=>{const{scope:b,children:C,...y}=v,w=ae.useRef(null),A=K(g,w),S=s(d,b);return ae.useEffect(()=>(S.itemMap.set(w,{ref:w,...y}),()=>{S.itemMap.delete(w)})),i.jsx(x,{[f]:"",ref:A,children:C})});m.displayName=d;function h(v){const g=s(e+"CollectionConsumer",v);return ae.useCallback(()=>{const C=g.collectionRef.current;if(!C)return[];const y=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((S,N)=>y.indexOf(S.ref.current)-y.indexOf(N.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:a,Slot:p,ItemSlot:m},h,o]}var _r=l.createContext(void 0);function xn(e){const t=l.useContext(_r);return e||t||"ltr"}const Dr=["top","right","bottom","left"],oe=Math.min,z=Math.max,Ge=Math.round,Fe=Math.floor,Z=e=>({x:e,y:e}),Or={left:"right",right:"left",bottom:"top",top:"bottom"};function ht(e,t,n){return z(e,oe(t,n))}function Q(e,t){return typeof e=="function"?e(t):e}function ee(e){return e.split("-")[0]}function be(e){return e.split("-")[1]}function St(e){return e==="x"?"y":"x"}function Mt(e){return e==="y"?"height":"width"}function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Nt(e){return St(q(e))}function kr(e,t,n){n===void 0&&(n=!1);const o=be(e),r=Nt(e),s=Mt(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Ve(a)),[a,Ve(a)]}function Ir(e){const t=Ve(e);return[xt(e),t,xt(t)]}function xt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Kt=["left","right"],Ut=["right","left"],Lr=["top","bottom"],Fr=["bottom","top"];function $r(e,t,n){switch(e){case"top":case"bottom":return n?t?Ut:Kt:t?Kt:Ut;case"left":case"right":return t?Lr:Fr;default:return[]}}function Br(e,t,n,o){const r=be(e);let s=$r(ee(e),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),t&&(s=s.concat(s.map(xt)))),s}function Ve(e){const t=ee(e);return Or[t]+e.slice(t.length)}function Hr(e){return{top:0,right:0,bottom:0,left:0,...e}}function gn(e){return typeof e!="number"?Hr(e):{top:e,right:e,bottom:e,left:e}}function We(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Yt(e,t,n){let{reference:o,floating:r}=e;const s=q(t),a=Nt(t),c=Mt(a),u=ee(t),p=s==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,x=o[c]/2-r[c]/2;let m;switch(u){case"top":m={x:d,y:o.y-r.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-r.width,y:f};break;default:m={x:o.x,y:o.y}}switch(be(t)){case"start":m[a]-=x*(n&&p?-1:1);break;case"end":m[a]+=x*(n&&p?-1:1);break}return m}async function zr(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:a,elements:c,strategy:u}=e,{boundary:p="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:x=!1,padding:m=0}=Q(t,e),h=gn(m),g=c[x?f==="floating"?"reference":"floating":f],b=We(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:p,rootBoundary:d,strategy:u})),C=f==="floating"?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),w=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},A=We(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:y,strategy:u}):C);return{top:(b.top-A.top+h.top)/w.y,bottom:(A.bottom-b.bottom+h.bottom)/w.y,left:(b.left-A.left+h.left)/w.x,right:(A.right-b.right+h.right)/w.x}}const Gr=50,Vr=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=n,c=a.detectOverflow?a:{...a,detectOverflow:zr},u=await(a.isRTL==null?void 0:a.isRTL(t));let p=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=Yt(p,o,u),x=o,m=0;const h={};for(let v=0;v<s.length;v++){const g=s[v];if(!g)continue;const{name:b,fn:C}=g,{x:y,y:w,data:A,reset:S}=await C({x:d,y:f,initialPlacement:o,placement:x,strategy:r,middlewareData:h,rects:p,platform:c,elements:{reference:e,floating:t}});d=y??d,f=w??f,h[b]={...h[b],...A},S&&m<Gr&&(m++,typeof S=="object"&&(S.placement&&(x=S.placement),S.rects&&(p=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:d,y:f}=Yt(p,x,u)),v=-1)}return{x:d,y:f,placement:x,strategy:r,middlewareData:h}},Wr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:a,elements:c,middlewareData:u}=t,{element:p,padding:d=0}=Q(e,t)||{};if(p==null)return{};const f=gn(d),x={x:n,y:o},m=Nt(r),h=Mt(m),v=await a.getDimensions(p),g=m==="y",b=g?"top":"left",C=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=s.reference[h]+s.reference[m]-x[m]-s.floating[h],A=x[m]-s.reference[m],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(p));let N=S?S[y]:0;(!N||!await(a.isElement==null?void 0:a.isElement(S)))&&(N=c.floating[y]||s.floating[h]);const j=w/2-A/2,O=N/2-v[h]/2-1,T=oe(f[b],O),k=oe(f[C],O),I=T,D=N-v[h]-k,_=N/2-v[h]/2+j,$=ht(I,_,D),P=!u.arrow&&be(r)!=null&&_!==$&&s.reference[h]/2-(_<I?T:k)-v[h]/2<0,L=P?_<I?_-I:_-D:0;return{[m]:x[m]+L,data:{[m]:$,centerOffset:_-$-L,...P&&{alignmentOffset:L}},reset:P}}}),Kr=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:c,platform:u,elements:p}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:x,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...g}=Q(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=ee(r),C=q(c),y=ee(c)===c,w=await(u.isRTL==null?void 0:u.isRTL(p.floating)),A=x||(y||!v?[Ve(c)]:Ir(c)),S=h!=="none";!x&&S&&A.push(...Br(c,v,h,w));const N=[c,...A],j=await u.detectOverflow(t,g),O=[];let T=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&O.push(j[b]),f){const _=kr(r,a,w);O.push(j[_[0]],j[_[1]])}if(T=[...T,{placement:r,overflows:O}],!O.every(_=>_<=0)){var k,I;const _=(((k=s.flip)==null?void 0:k.index)||0)+1,$=N[_];if($&&(!(f==="alignment"?C!==q($):!1)||T.every(M=>q(M.placement)===C?M.overflows[0]>0:!0)))return{data:{index:_,overflows:T},reset:{placement:$}};let P=(I=T.filter(L=>L.overflows[0]<=0).sort((L,M)=>L.overflows[1]-M.overflows[1])[0])==null?void 0:I.placement;if(!P)switch(m){case"bestFit":{var D;const L=(D=T.filter(M=>{if(S){const R=q(M.placement);return R===C||R==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(R=>R>0).reduce((R,B)=>R+B,0)]).sort((M,R)=>M[1]-R[1])[0])==null?void 0:D[0];L&&(P=L);break}case"initialPlacement":P=c;break}if(r!==P)return{reset:{placement:P}}}return{}}}};function Xt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qt(e){return Dr.some(t=>e[t]>=0)}const Ur=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...s}=Q(e,t);switch(r){case"referenceHidden":{const a=await o.detectOverflow(t,{...s,elementContext:"reference"}),c=Xt(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:qt(c)}}}case"escaped":{const a=await o.detectOverflow(t,{...s,altBoundary:!0}),c=Xt(a,n.floating);return{data:{escapedOffsets:c,escaped:qt(c)}}}default:return{}}}}},vn=new Set(["left","top"]);async function Yr(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=ee(n),c=be(n),u=q(n)==="y",p=vn.has(a)?-1:1,d=s&&u?-1:1,f=Q(t,e);let{mainAxis:x,crossAxis:m,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}
1:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof h=="number"&&(m=c==="end"?h*-1:h),u?{x:m*d,y:x*p}:{x:x*p,y:m*d}}const Xr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:a,middlewareData:c}=t,u=await Yr(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+u.x,y:s+u.y,data:{...u,placement:a}}}}},qr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:u={fn:b=>{let{x:C,y}=b;return{x:C,y}}},...p}=Q(e,t),d={x:n,y:o},f=await s.detectOverflow(t,p),x=q(ee(r)),m=St(x);let h=d[m],v=d[x];if(a){const b=m==="y"?"top":"left",C=m==="y"?"bottom":"right",y=h+f[b],w=h-f[C];h=ht(y,h,w)}if(c){const b=x==="y"?"top":"left",C=x==="y"?"bottom":"right",y=v+f[b],w=v-f[C];v=ht(y,v,w)}const g=u.fn({...t,[m]:h,[x]:v});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[m]:a,[x]:c}}}}}},Zr=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:u=!0,crossAxis:p=!0}=Q(e,t),d={x:n,y:o},f=q(r),x=St(f);let m=d[x],h=d[f];const v=Q(c,t),g=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const y=x==="y"?"height":"width",w=s.reference[x]-s.floating[y]+g.mainAxis,A=s.reference[x]+s.reference[y]-g.mainAxis;m<w?m=w:m>A&&(m=A)}if(p){var b,C;const y=x==="y"?"width":"height",w=vn.has(ee(r)),A=s.reference[f]-s.floating[y]+(w&&((b=a.offset)==null?void 0:b[f])||0)+(w?0:g.crossAxis),S=s.reference[f]+s.reference[y]+(w?0:((C=a.offset)==null?void 0:C[f])||0)-(w?g.crossAxis:0);h<A?h=A:h>S&&(h=S)}return{[x]:m,[f]:h}}}},Jr=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:a,elements:c}=t,{apply:u=()=>{},...p}=Q(e,t),d=await a.detectOverflow(t,p),f=ee(r),x=be(r),m=q(r)==="y",{width:h,height:v}=s.floating;let g,b;f==="top"||f==="bottom"?(g=f,b=x===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(b=f,g=x==="end"?"top":"bottom");const C=v-d.top-d.bottom,y=h-d.left-d.right,w=oe(v-d[g],C),A=oe(h-d[b],y),S=!t.middlewareData.shift;let N=w,j=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=y),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(N=C),S&&!x){const T=z(d.left,0),k=z(d.right,0),I=z(d.top,0),D=z(d.bottom,0);m?j=h-2*(T!==0||k!==0?T+k:z(d.left,d.right)):N=v-2*(I!==0||D!==0?I+D:z(d.top,d.bottom))}await u({...t,availableWidth:j,availableHeight:N});const O=await a.getDimensions(c.floating);return h!==O.width||v!==O.height?{reset:{rects:!0}}:{}}}};function Ze(){return typeof window<"u"}function we(e){return bn(e)?(e.nodeName||"").toLowerCase():"#document"}function G(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function J(e){var t;return(t=(bn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bn(e){return Ze()?e instanceof Node||e instanceof G(e).Node:!1}function U(e){return Ze()?e instanceof Element||e instanceof G(e).Element:!1}function ne(e){return Ze()?e instanceof HTMLElement||e instanceof G(e).HTMLElement:!1}function Zt(e){return!Ze()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof G(e).ShadowRoot}function Te(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Qr(e){return/^(table|td|th)$/.test(we(e))}function Je(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const es=/transform|translate|scale|rotate|perspective|filter/,ts=/paint|layout|strict|content/,ce=e=>!!e&&e!=="none";let at;function Et(e){const t=U(e)?Y(e):e;return ce(t.transform)||ce(t.translate)||ce(t.scale)||ce(t.rotate)||ce(t.perspective)||!jt()&&(ce(t.backdropFilter)||ce(t.filter))||es.test(t.willChange||"")||ts.test(t.contain||"")}function ns(e){let t=re(e);for(;ne(t)&&!he(t);){if(Et(t))return t;if(Je(t))return null;t=re(t)}return null}function jt(){return at==null&&(at=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),at}function he(e){return/^(html|body|#document)$/.test(we(e))}function Y(e){return G(e).getComputedStyle(e)}function Qe(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function re(e){if(we(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Zt(e)&&e.host||J(e);return Zt(t)?t.host:t}function wn(e){const t=re(e);return he(t)?e.ownerDocument?e.ownerDocument.body:e.body:ne(t)&&Te(t)?t:wn(t)}function Ne(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=wn(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),a=G(r);if(s){const c=gt(a);
vendor: 7,527 bytes, line 1
1return t.concat(a,a.visualViewport||[],Te(r)?r:[],c&&n?Ne(c):[])}else return t.concat(r,Ne(r,[],n))}function gt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yn(e){const t=Y(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ne(e),s=r?e.offsetWidth:n,a=r?e.offsetHeight:o,c=Ge(n)!==s||Ge(o)!==a;return c&&(n=s,o=a),{width:n,height:o,$:c}}function Pt(e){return U(e)?e:e.contextElement}function me(e){const t=Pt(e);if(!ne(t))return Z(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=yn(t);let a=(s?Ge(n.width):n.width)/o,c=(s?Ge(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const os=Z(0);function Cn(e){const t=G(e);return!jt()||!t.visualViewport?os:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rs(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==G(e)?!1:t}function de(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Pt(e);let a=Z(1);t&&(o?U(o)&&(a=me(o)):a=me(e));const c=rs(s,n,o)?Cn(s):Z(0);let u=(r.left+c.x)/a.x,p=(r.top+c.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(s){const x=G(s),m=o&&U(o)?G(o):o;let h=x,v=gt(h);for(;v&&o&&m!==h;){const g=me(v),b=v.getBoundingClientRect(),C=Y(v),y=b.left+(v.clientLeft+parseFloat(C.paddingLeft))*g.x,w=b.top+(v.clientTop+parseFloat(C.paddingTop))*g.y;u*=g.x,p*=g.y,d*=g.x,f*=g.y,u+=y,p+=w,h=G(v),v=gt(h)}}return We({width:d,height:f,x:u,y:p})}function et(e,t){const n=Qe(e).scrollLeft;return t?t.left+n:de(J(e)).left+n}function Rn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-et(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function ss(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",a=J(o),c=t?Je(t.floating):!1;if(o===a||c&&s)return n;let u={scrollLeft:0,scrollTop:0},p=Z(1);const d=Z(0),f=ne(o);if((f||!f&&!s)&&((we(o)!=="body"||Te(a))&&(u=Qe(o)),f)){const m=de(o);p=me(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}const x=a&&!f&&!s?Rn(a,u):Z(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-u.scrollLeft*p.x+d.x+x.x,y:n.y*p.y-u.scrollTop*p.y+d.y+x.y}}function is(e){return Array.from(e.getClientRects())}function as(e){const t=J(e),n=Qe(e),o=e.ownerDocument.body,r=z(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=z(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+et(e);const c=-n.scrollTop;return Y(o).direction==="rtl"&&(a+=z(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:c}}const Jt=25;function cs(e,t){const n=G(e),o=J(e),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,c=0,u=0;if(r){s=r.width,a=r.height;const d=jt();(!d||d&&t==="fixed")&&(c=r.offsetLeft,u=r.offsetTop)}const p=et(o);if(p<=0){const d=o.ownerDocument,f=d.body,x=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,h=Math.abs(o.clientWidth-f.clientWidth-m);h<=Jt&&(s-=h)}else p<=Jt&&(s+=p);return{width:s,height:a,x:c,y:u}}function ls(e,t){const n=de(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=ne(e)?me(e):Z(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,u=r*s.x,p=o*s.y;return{width:a,height:c,x:u,y:p}}function Qt(e,t,n){let o;if(t==="viewport")o=cs(e,n);else if(t==="document")o=as(J(e));else if(U(t))o=ls(t,n);else{const r=Cn(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return We(o)}function An(e,t){const n=re(e);return n===t||!U(n)||he(n)?!1:Y(n).position==="fixed"||An(n,t)}function us(e,t){const n=t.get(e);if(n)return n;let o=Ne(e,[],!1).filter(c=>U(c)&&we(c)!=="body"),r=null;const s=Y(e).position==="fixed";let a=s?re(e):e;for(;U(a)&&!he(a);){const c=Y(a),u=Et(a);!u&&c.position==="fixed"&&(r=null),(s?!u&&!r:!u&&c.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Te(a)&&!u&&An(e,a))?o=o.filter(d=>d!==a):r=c,a=re(a)}return t.set(e,o),o}function ds(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[...n==="clippingAncestors"?Je(t)?[]:us(t,this._c):[].concat(n),o],c=Qt(t,a[0],r);let u=c.top,p=c.right,d=c.bottom,f=c.left;for(let x=1;x<a.length;x++){const m=Qt(t,a[x],r);u=z(m.top,u),p=oe(m.right,p),d=oe(m.bottom,d),f=z(m.left,f)}return{width:p-f,height:d-u,x:f,y:u}}function fs(e){const{width:t,height:n}=yn(e);return{width:t,height:n}}function ps(e,t,n){const o=ne(t),r=J(t),s=n==="fixed",a=de(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const u=Z(0);function p(){u.x=et(r)}if(o||!o&&!s)if((we(t)!=="body"||Te(r))&&(c=Qe(t)),o){const m=de(t,!0,s,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else r&&p();s&&!o&&r&&p();const d=r&&!o&&!s?Rn(r,c):Z(0),f=a.left+c.scrollLeft-u.x-d.x,x=a.top+c.scrollTop-u.y-d.y;return{x:f,y:x,width:a.width,height:a.height}}function ct(e){return Y(e).position==="static"}function en(e,t){if(!ne(e)||Y(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return J(e)===n&&(n=n.ownerDocument.body),n}function Sn(e,t){const n=G(e);if(Je(e))return n;if(!ne(e)){let r=re(e);for(;r&&!he(r);){if(U(r)&&!ct(r))return r;r=re(r)}return n}let o=en(e,t);for(;o&&Qr(o)&&ct(o);)o=en(o,t);return o&&he(o)&&ct(o)&&!Et(o)?n:o||ns(e)||n}const ms=async function(e){const t=this.getOffsetParent||Sn,n=this.getDimensions,o=await n(e.floating);return{reference:ps(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function hs(e){return Y(e).direction==="rtl"}const xs={convertOffsetParentRelativeRectToViewportRelativeRect:ss,getDocumentElement:J,getClippingRect:ds,getOffsetParent:Sn,getElementRects:ms,getClientRects:is,getDimensions:fs,getScale:me,isElement:U,isRTL:hs};function Mn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gs(e,t){let n=null,o;const r=J(e);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),s();const p=e.getBoundingClientRect(),{left:d,top:f,width:x,height:m}=p;if(c||t(),!x||!m)return;const h=Fe(f),v=Fe(r.clientWidth-(d+x)),g=Fe(r.clientHeight-(f+m)),b=Fe(d),y={rootMargin:-h+"px "+-v+"px "+-g+"px "+-b+"px",threshold:z(0,oe(1,u))||1};let w=!0;function A(S){const N=S[0].intersectionRatio;if(N!==u){if(!w)return a();N?a(!1,N):o=setTimeout(()=>{a(!1,1e-7)},1e3)}N===1&&!Mn(p,e.getBoundingClientRect())&&a(),w=!1}try{n=new IntersectionObserver(A,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(A,y)}n.observe(e)}return a(!0),s}function vs(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,p=Pt(e),d=r||s?[...p?Ne(p):[],...t?Ne(t):[]]:[];d.forEach(b=>{r&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const f=p&&c?gs(p,n):null;let x=-1,m=null;a&&(m=new ResizeObserver(b=>{let[C]=b;C&&C.target===p&&m&&t&&(m.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),n()}),p&&!u&&m.observe(p),t&&m.observe(t));let h,v=u?de(e):null;u&&g();function g(){const b=de(e);v&&!Mn(v,b)&&n(),v=b,h=requestAnimationFrame(g)}return n(),()=>{var b;d.forEach(C=>{r&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),f?.(),(b=m)==null||b.disconnect(),m=null,u&&cancelAnimationFrame(h)}}const bs=Xr,ws=qr,ys=Kr,Cs=Jr,Rs=Ur,tn=Wr,As=Zr,Ss=(e,t,n)=>{const o=new Map,r={platform:xs,...n},s={...r.platform,_c:o};return Vr(e,t,{...r,platform:s})};var Ms=typeof document<"u",Ns=function(){},Be=Ms?l.useLayoutEffect:Ns;function Ke(e,t){if(e===t)return!0;
vendor: 27,056 bytes, line 1
1if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Ke(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!Ke(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Nn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nn(e,t){const n=Nn(e);return Math.round(t*n)/n}function lt(e){const t=l.useRef(e);return Be(()=>{t.current=e}),t}function Es(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:u,open:p}=e,[d,f]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,m]=l.useState(o);Ke(x,o)||m(o);const[h,v]=l.useState(null),[g,b]=l.useState(null),C=l.useCallback(M=>{M!==S.current&&(S.current=M,v(M))},[]),y=l.useCallback(M=>{M!==N.current&&(N.current=M,b(M))},[]),w=s||h,A=a||g,S=l.useRef(null),N=l.useRef(null),j=l.useRef(d),O=u!=null,T=lt(u),k=lt(r),I=lt(p),D=l.useCallback(()=>{if(!S.current||!N.current)return;const M={placement:t,strategy:n,middleware:x};k.current&&(M.platform=k.current),Ss(S.current,N.current,M).then(R=>{const B={...R,isPositioned:I.current!==!1};_.current&&!Ke(j.current,B)&&(j.current=B,ir.flushSync(()=>{f(B)}))})},[x,t,n,k,I]);Be(()=>{p===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[p]);const _=l.useRef(!1);Be(()=>(_.current=!0,()=>{_.current=!1}),[]),Be(()=>{if(w&&(S.current=w),A&&(N.current=A),w&&A){if(T.current)return T.current(w,A,D);D()}},[w,A,D,T,O]);const $=l.useMemo(()=>({reference:S,floating:N,setReference:C,setFloating:y}),[C,y]),P=l.useMemo(()=>({reference:w,floating:A}),[w,A]),L=l.useMemo(()=>{const M={position:n,left:0,top:0};if(!P.floating)return M;const R=nn(P.floating,d.x),B=nn(P.floating,d.y);return c?{...M,transform:"translate("+R+"px, "+B+"px)",...Nn(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:B}},[n,c,P.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:D,refs:$,elements:P,floatingStyles:L}),[d,D,$,P,L])}const js=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?tn({element:o.current,padding:r}).fn(n):{}:o?tn({element:o,padding:r}).fn(n):{}}}},Ps=(e,t)=>{const n=bs(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ts=(e,t)=>{const n=ws(e);return{name:n.name,fn:n.fn,options:[e,t]}},_s=(e,t)=>({fn:As(e).fn,options:[e,t]}),Ds=(e,t)=>{const n=ys(e);return{name:n.name,fn:n.fn,options:[e,t]}},Os=(e,t)=>{const n=Cs(e);return{name:n.name,fn:n.fn,options:[e,t]}},ks=(e,t)=>{const n=Rs(e);return{name:n.name,fn:n.fn,options:[e,t]}},Is=(e,t)=>{const n=js(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Ls="Arrow",En=l.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return i.jsx(V.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});En.displayName=Ls;var Fs=En;function $s(e){const[t,n]=l.useState(void 0);return pt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let a,c;if("borderBoxSize"in s){const u=s.borderBoxSize,p=Array.isArray(u)?u[0]:u;a=p.inlineSize,c=p.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Tt="Popper",[jn,tt]=ge(Tt),[Bs,Pn]=jn(Tt),Tn=e=>{const{__scopePopper:t,children:n}=e,[o,r]=l.useState(null);return i.jsx(Bs,{scope:t,anchor:o,onAnchorChange:r,children:n})};Tn.displayName=Tt;var _n="PopperAnchor",Dn=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=Pn(_n,n),a=l.useRef(null),c=K(t,a),u=l.useRef(null);return l.useEffect(()=>{const p=u.current;u.current=o?.current||a.current,p!==u.current&&s.onAnchorChange(u.current)}),o?null:i.jsx(V.div,{...r,ref:c})});Dn.displayName=_n;var _t="PopperContent",[Hs,zs]=jn(_t),On=l.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:p=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:x=!1,updatePositionStrategy:m="optimized",onPlaced:h,...v}=e,g=Pn(_t,n),[b,C]=l.useState(null),y=K(t,F=>C(F)),[w,A]=l.useState(null),S=$s(w),N=S?.width??0,j=S?.height??0,O=o+(s!=="center"?"-"+s:""),T=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},k=Array.isArray(p)?p:[p],I=k.length>0,D={padding:T,boundary:k.filter(Vs),altBoundary:I},{refs:_,floatingStyles:$,placement:P,isPositioned:L,middlewareData:M}=Es({strategy:"fixed",placement:O,whileElementsMounted:(...F)=>vs(...F,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[Ps({mainAxis:r+j,alignmentAxis:a}),u&&Ts({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?_s():void 0,...D}),u&&Ds({...D}),Os({...D,apply:({elements:F,rects:Re,availableWidth:nr,availableHeight:or})=>{const{width:rr,height:sr}=Re.reference,Le=F.floating.style;Le.setProperty("--radix-popper-available-width",`${nr}px`),Le.setProperty("--radix-popper-available-height",`${or}px`),Le.setProperty("--radix-popper-anchor-width",`${rr}px`),Le.setProperty("--radix-popper-anchor-height",`${sr}px`)}}),w&&Is({element:w,padding:c}),Ws({arrowWidth:N,arrowHeight:j}),x&&ks({strategy:"referenceHidden",...D})]}),[R,B]=Ln(P),X=qe(h);pt(()=>{L&&X?.()},[L,X]);const se=M.arrow?.x,ye=M.arrow?.y,Ce=M.arrow?.centerOffset!==0,[Ie,ie]=l.useState();return pt(()=>{b&&ie(window.getComputedStyle(b).zIndex)},[b]),i.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:L?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ie,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i.jsx(Hs,{scope:n,placedSide:R,onArrowChange:A,arrowX:se,arrowY:ye,shouldHideArrow:Ce,children:i.jsx(V.div,{"data-side":R,"data-align":B,...v,ref:y,style:{...v.style,animation:L?void 0:"none"}})})})});On.displayName=_t;var kn="PopperArrow",Gs={top:"bottom",right:"left",bottom:"top",left:"right"},In=l.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=zs(kn,o),a=Gs[s.placedSide];return i.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:i.jsx(Fs,{...r,ref:n,style:{...r.style,display:"block"}})})});In.displayName=kn;function Vs(e){return e!==null}var Ws=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,a=r.arrow?.centerOffset!==0,c=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[p,d]=Ln(n),f={start:"0%",center:"50%",end:"100%"}[d],x=(r.arrow?.x??0)+c/2,m=(r.arrow?.y??0)+u/2;let h="",v="";return p==="bottom"?(h=a?f:`${x}px`,v=`${-u}px`):p==="top"?(h=a?f:`${x}px`,v=`${o.floating.height+u}px`):p==="right"?(h=`${-u}px`,v=a?f:`${m}px`):p==="left"&&(h=`${o.floating.width+u}px`,v=a?f:`${m}px`),{data:{x:h,y:v}}}});function Ln(e){const[t,n="center"]=e.split("-");return[t,n]}var Fn=Tn,$n=Dn,Bn=On,Hn=In,ut="rovingFocusGroup.onEntryFocus",Ks={bubbles:!1,cancelable:!0},_e="RovingFocusGroup",[vt,zn,Us]=hn(_e),[Ys,Gn]=ge(_e,[Us]),[Xs,qs]=Ys(_e),Vn=l.forwardRef((e,t)=>i.jsx(vt.Provider,{scope:e.__scopeRovingFocusGroup,children:i.jsx(vt.Slot,{scope:e.__scopeRovingFocusGroup,children:i.jsx(Zs,{...e,ref:t})})}));Vn.displayName=_e;var Zs=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:p,preventScrollOnEntryFocus:d=!1,...f}=e,x=l.useRef(null),m=K(t,x),h=xn(s),[v,g]=At({prop:a,defaultProp:c??null,onChange:u,caller:_e}),[b,C]=l.useState(!1),y=qe(p),w=zn(n),A=l.useRef(!1),[S,N]=l.useState(0);return l.useEffect(()=>{const j=x.current;if(j)return j.addEventListener(ut,y),()=>j.removeEventListener(ut,y)},[y]),i.jsx(Xs,{scope:n,orientation:o,dir:h,loop:r,currentTabStopId:v,onItemFocus:l.useCallback(j=>g(j),[g]),onItemShiftTab:l.useCallback(()=>C(!0),[]),onFocusableItemAdd:l.useCallback(()=>N(j=>j+1),[]),onFocusableItemRemove:l.useCallback(()=>N(j=>j-1),[]),children:i.jsx(V.div,{tabIndex:b||S===0?-1:0,"data-orientation":o,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:E(e.onMouseDown,()=>{A.current=!0}),onFocus:E(e.onFocus,j=>{const O=!A.current;if(j.target===j.currentTarget&&O&&!b){const T=new CustomEvent(ut,Ks);if(j.currentTarget.dispatchEvent(T),!T.defaultPrevented){const k=w().filter(P=>P.focusable),I=k.find(P=>P.active),D=k.find(P=>P.id===v),$=[I,D,...k].filter(Boolean).map(P=>P.ref.current);Un($,d)}}A.current=!1}),onBlur:E(e.onBlur,()=>C(!1))})})}),Wn="RovingFocusGroupItem",Kn=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,children:a,...c}=e,u=He(),p=s||u,d=qs(Wn,n),f=d.currentTabStopId===p,x=zn(n),{onFocusableItemAdd:m,onFocusableItemRemove:h,currentTabStopId:v}=d;return l.useEffect(()=>{if(o)return m(),()=>h()},[o,m,h]),i.jsx(vt.ItemSlot,{scope:n,id:p,focusable:o,active:r,children:i.jsx(V.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...c,ref:t,onMouseDown:E(e.onMouseDown,g=>{o?d.onItemFocus(p):g.preventDefault()}),onFocus:E(e.onFocus,()=>d.onItemFocus(p)),onKeyDown:E(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=ei(g,d.orientation,d.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=x().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=d.loop?ti(y,w+1):y.slice(w+1)}setTimeout(()=>Un(y))}}),children:typeof a=="function"?a({isCurrentTabStop:f,hasTabStop:v!=null}):a})})});Kn.displayName=Wn;var Js={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Qs(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ei(e,t,n){const o=Qs(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Js[o]}function Un(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function ti(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var ni=Vn,oi=Kn;function ri(e){const t=si(e),n=l.forwardRef((o,r)=>{const{children:s,...a}=o,c=l.Children.toArray(s),u=c.find(ai);if(u){const p=u.props.children,d=c.map(f=>f===u?l.Children.count(p)>1?l.Children.only(null):l.isValidElement(p)?p.props.children:null:f);return i.jsx(t,{...a,ref:r,children:l.isValidElement(p)?l.cloneElement(p,void 0,d):null})}return i.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function si(e){const t=l.forwardRef((n,o)=>{const{children:r,...s}=n;if(l.isValidElement(r)){const a=li(r),c=ci(s,r.props);return r.type!==l.Fragment&&(c.ref=o?Xe(o,a):a),l.cloneElement(r,c)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ii=Symbol("radix.slottable");function ai(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ii}function ci(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...c)=>{const u=s(...c);return r(...c),u}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function li(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bt=["Enter"," "],ui=["ArrowDown","PageUp","Home"],Yn=["ArrowUp","PageDown","End"],di=[...ui,...Yn],fi={ltr:[...bt,"ArrowRight"],rtl:[...bt,"ArrowLeft"]},pi={ltr:["ArrowLeft"],rtl:["ArrowRight"]},De="Menu",[Ee,mi,hi]=hn(De),[fe,Xn]=ge(De,[hi,tt,Gn]),nt=tt(),qn=Gn(),[xi,pe]=fe(De),[gi,Oe]=fe(De),Zn=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:a=!0}=e,c=nt(t),[u,p]=l.useState(null),d=l.useRef(!1),f=qe(s),x=xn(r);return l.useEffect(()=>{const m=()=>{d.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>d.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),i.jsx(Fn,{...c,children:i.jsx(xi,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:p,children:i.jsx(gi,{scope:t,onClose:l.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:x,modal:a,children:o})})})};Zn.displayName=De;var vi="MenuAnchor",Dt=l.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=nt(n);return i.jsx($n,{...r,...o,ref:t})});Dt.displayName=vi;var Ot="MenuPortal",[bi,Jn]=fe(Ot,{forceMount:void 0}),Qn=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=pe(Ot,t);return i.jsx(bi,{scope:t,forceMount:n,children:i.jsx(ve,{present:n||s.open,children:i.jsx(an,{asChild:!0,container:r,children:o})})})};Qn.displayName=Ot;var W="MenuContent",[wi,kt]=fe(W),eo=l.forwardRef((e,t)=>{const n=Jn(W,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=pe(W,e.__scopeMenu),a=Oe(W,e.__scopeMenu);return i.jsx(Ee.Provider,{scope:e.__scopeMenu,children:i.jsx(ve,{present:o||s.open,children:i.jsx(Ee.Slot,{scope:e.__scopeMenu,children:a.modal?i.jsx(yi,{...r,ref:t}):i.jsx(Ci,{...r,ref:t})})})})}),yi=l.forwardRef((e,t)=>{const n=pe(W,e.__scopeMenu),o=l.useRef(null),r=K(t,o);return l.useEffect(()=>{const s=o.current;if(s)return ur(s)},[]),i.jsx(It,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:E(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Ci=l.forwardRef((e,t)=>{const n=pe(W,e.__scopeMenu);return i.jsx(It,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Ri=ri("MenuContent.ScrollLock"),It=l.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:x,onDismiss:m,disableOutsideScroll:h,...v}=e,g=pe(W,n),b=Oe(W,n),C=nt(n),y=qn(n),w=mi(n),[A,S]=l.useState(null),N=l.useRef(null),j=K(t,N,g.onContentChange),O=l.useRef(0),T=l.useRef(""),k=l.useRef(0),I=l.useRef(null),D=l.useRef("right"),_=l.useRef(0),$=h?pr:l.Fragment,P=h?{as:Ri,allowPinchZoom:!0}:void 0,L=R=>{const B=T.current+R,X=w().filter(F=>!F.disabled),se=document.activeElement,ye=X.find(F=>F.ref.current===se)?.textValue,Ce=X.map(F=>F.textValue),Ie=ki(Ce,B,ye),ie=X.find(F=>F.textValue===Ie)?.ref.current;(function F(Re){T.current=Re,window.clearTimeout(O.current),Re!==""&&(O.current=window.setTimeout(()=>F(""),1e3))})(B),ie&&setTimeout(()=>ie.focus())};l.useEffect(()=>()=>window.clearTimeout(O.current),[]),fr();const M=l.useCallback(R=>D.current===I.current?.side&&Li(R,I.current?.area),[]);return i.jsx(wi,{scope:n,searchRef:T,onItemEnter:l.useCallback(R=>{M(R)&&R.preventDefault()},[M]),onItemLeave:l.useCallback(R=>{M(R)||(N.current?.focus(),S(null))},[M]),onTriggerLeave:l.useCallback(R=>{M(R)&&R.preventDefault()},[M]),pointerGraceTimerRef:k,onPointerGraceIntentChange:l.useCallback(R=>{I.current=R},[]),children:i.jsx($,{...P,children:i.jsx(mr,{asChild:!0,trapped:r,onMountAutoFocus:E(s,R=>{R.preventDefault(),N.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:i.jsx(cn,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:x,onDismiss:m,children:i.jsx(ni,{asChild:!0,...y,dir:b.dir,orientation:"vertical",loop:o,currentTabStopId:A,onCurrentTabStopIdChange:S,onEntryFocus:E(u,R=>{b.isUsingKeyboardRef.current||R.preventDefault()}),preventScrollOnEntryFocus:!0,children:i.jsx(Bn,{role:"menu","aria-orientation":"vertical","data-state":go(g.open),"data-radix-menu-content":"",dir:b.dir,...C,...v,ref:j,style:{outline:"none",...v.style},onKeyDown:E(v.onKeyDown,R=>{const X=R.target.closest("[data-radix-menu-content]")===R.currentTarget,se=R.ctrlKey||R.altKey||R.metaKey,ye=R.key.length===1;X&&(R.key==="Tab"&&R.preventDefault(),!se&&ye&&L(R.key));const Ce=N.current;if(R.target!==Ce||!di.includes(R.key))return;R.preventDefault();const ie=w().filter(F=>!F.disabled).map(F=>F.ref.current);Yn.includes(R.key)&&ie.reverse(),Di(ie)}),onBlur:E(e.onBlur,R=>{R.currentTarget.contains(R.target)||(window.clearTimeout(O.current),T.current="")}),onPointerMove:E(e.onPointerMove,je(R=>{const B=R.target,X=_.current!==R.clientX;if(R.currentTarget.contains(B)&&X){const se=R.clientX>_.current?"right":"left";D.current=se,_.current=R.clientX}}))})})})})})})});eo.displayName=W;var Ai="MenuGroup",Lt=l.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return i.jsx(V.div,{role:"group",...o,ref:t})});Lt.displayName=Ai;var Si="MenuLabel",to=l.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return i.jsx(V.div,{...o,ref:t})});to.displayName=Si;var Ue="MenuItem",on="menu.itemSelect",ot=l.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=l.useRef(null),a=Oe(Ue,e.__scopeMenu),c=kt(Ue,e.__scopeMenu),u=K(t,s),p=l.useRef(!1),d=()=>{const f=s.current;if(!n&&f){const x=new CustomEvent(on,{bubbles:!0,cancelable:!0});f.addEventListener(on,m=>o?.(m),{once:!0}),dr(f,x),x.defaultPrevented?p.current=!1:a.onClose()}};return i.jsx(no,{...r,ref:u,disabled:n,onClick:E(e.onClick,d),onPointerDown:f=>{e.onPointerDown?.(f),p.current=!0},onPointerUp:E(e.onPointerUp,f=>{p.current||f.currentTarget?.click()}),onKeyDown:E(e.onKeyDown,f=>{const x=c.searchRef.current!=="";n||x&&f.key===" "||bt.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});ot.displayName=Ue;var no=l.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,a=kt(Ue,n),c=qn(n),u=l.useRef(null),p=K(t,u),[d,f]=l.useState(!1),[x,m]=l.useState("");return l.useEffect(()=>{const h=u.current;h&&m((h.textContent??"").trim())},[s.children]),i.jsx(Ee.ItemSlot,{scope:n,disabled:o,textValue:r??x,children:i.jsx(oi,{asChild:!0,...c,focusable:!o,children:i.jsx(V.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:p,onPointerMove:E(e.onPointerMove,je(h=>{o?a.onItemLeave(h):(a.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:E(e.onPointerLeave,je(h=>a.onItemLeave(h))),onFocus:E(e.onFocus,()=>f(!0)),onBlur:E(e.onBlur,()=>f(!1))})})})}),Mi="MenuCheckboxItem",oo=l.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return i.jsx(co,{scope:e.__scopeMenu,checked:n,children:i.jsx(ot,{role:"menuitemcheckbox","aria-checked":Ye(n)?"mixed":n,...r,ref:t,"data-state":$t(n),onSelect:E(r.onSelect,()=>o?.(Ye(n)?!0:!n),{checkForDefaultPrevented:!1})})})});oo.displayName=Mi;var ro="MenuRadioGroup",[Ni,Ei]=fe(ro,{value:void 0,onValueChange:()=>{}}),so=l.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=qe(o);return i.jsx(Ni,{scope:e.__scopeMenu,value:n,onValueChange:s,children:i.jsx(Lt,{...r,ref:t})})});so.displayName=ro;var io="MenuRadioItem",ao=l.forwardRef((e,t)=>{const{value:n,...o}=e,r=Ei(io,e.__scopeMenu),s=n===r.value;return i.jsx(co,{scope:e.__scopeMenu,checked:s,children:i.jsx(ot,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":$t(s),onSelect:E(o.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});ao.displayName=io;var Ft="MenuItemIndicator",[co,ji]=fe(Ft,{checked:!1}),lo=l.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=ji(Ft,n);return i.jsx(ve,{present:o||Ye(s.checked)||s.checked===!0,children:i.jsx(V.span,{...r,ref:t,"data-state":$t(s.checked)})})});lo.displayName=Ft;var Pi="MenuSeparator",uo=l.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return i.jsx(V.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});uo.displayName=Pi;var Ti="MenuArrow",fo=l.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=nt(n);return i.jsx(Hn,{...r,...o,ref:t})});fo.displayName=Ti;var _i="MenuSub",[Ec,po]=fe(_i),Me="MenuSubTrigger",mo=l.forwardRef((e,t)=>{const n=pe(Me,e.__scopeMenu),o=Oe(Me,e.__scopeMenu),r=po(Me,e.__scopeMenu),s=kt(Me,e.__scopeMenu),a=l.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=s,p={__scopeMenu:e.__scopeMenu},d=l.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return l.useEffect(()=>d,[d]),l.useEffect(()=>{const f=c.current;return()=>{window.clearTimeout(f),u(null)}},[c,u]),i.jsx(Dt,{asChild:!0,...p,children:i.jsx(no,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":go(n.open),...e,ref:Xe(t,r.onTriggerChange),onClick:f=>{e.onClick?.(f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:E(e.onPointerMove,je(f=>{s.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:E(e.onPointerLeave,je(f=>{d();const x=n.content?.getBoundingClientRect();if(x){const m=n.content?.dataset.side,h=m==="right",v=h?-5:5,g=x[h?"left":"right"],b=x[h?"right":"left"];s.onPointerGraceIntentChange({area:[{x:f.clientX+v,y:f.clientY},{x:g,y:x.top},{x:b,y:x.top},{x:b,y:x.bottom},{x:g,y:x.bottom}],side:m}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(f),f.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:E(e.onKeyDown,f=>{const x=s.searchRef.current!=="";e.disabled||x&&f.key===" "||fi[o.dir].includes(f.key)&&(n.onOpenChange(!0),n.content?.focus(),f.preventDefault())})})})});mo.displayName=Me;var ho="MenuSubContent",xo=l.forwardRef((e,t)=>{const n=Jn(W,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=pe(W,e.__scopeMenu),a=Oe(W,e.__scopeMenu),c=po(ho,e.__scopeMenu),u=l.useRef(null),p=K(t,u);return i.jsx(Ee.Provider,{scope:e.__scopeMenu,children:i.jsx(ve,{present:o||s.open,children:i.jsx(Ee.Slot,{scope:e.__scopeMenu,children:i.jsx(It,{id:c.contentId,"aria-labelledby":c.triggerId,...r,ref:p,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{a.isUsingKeyboardRef.current&&u.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:E(e.onFocusOutside,d=>{d.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:E(e.onEscapeKeyDown,d=>{a.onClose(),d.preventDefault()}),onKeyDown:E(e.onKeyDown,d=>{const f=d.currentTarget.contains(d.target),x=pi[a.dir].includes(d.key);f&&x&&(s.onOpenChange(!1),c.trigger?.focus(),d.preventDefault())})})})})})});xo.displayName=ho;function go(e){return e?"open":"closed"}function Ye(e){return e==="indeterminate"}function $t(e){return Ye(e)?"indeterminate":e?"checked":"unchecked"}function Di(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Oi(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function ki(e,t,n){const r=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Oi(e,Math.max(s,0));r.length===1&&(a=a.filter(p=>p!==n));const u=a.find(p=>p.toLowerCase().startsWith(r.toLowerCase()));return u!==n?u:void 0}function Ii(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],u=t[a],p=c.x,d=c.y,f=u.x,x=u.y;d>o!=x>o&&n<(f-p)*(o-d)/(x-d)+p&&(r=!r)}return r}function Li(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Ii(n,t)}function je(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Fi=Zn,$i=Dt,Bi=Qn,Hi=eo,zi=Lt,Gi=to,Vi=ot,Wi=oo,Ki=so,Ui=ao,Yi=lo,Xi=uo,qi=fo,Zi=mo,Ji=xo,rt="DropdownMenu",[Qi]=ge(rt,[Xn]),H=Xn(),[ea,vo]=Qi(rt),bo=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:a,modal:c=!0}=e,u=H(t),p=l.useRef(null),[d,f]=At({prop:r,defaultProp:s??!1,onChange:a,caller:rt});return i.jsx(ea,{scope:t,triggerId:He(),triggerRef:p,contentId:He(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(x=>!x),[f]),modal:c,children:i.jsx(Fi,{...u,open:d,onOpenChange:f,dir:o,modal:c,children:n})})};bo.displayName=rt;var wo="DropdownMenuTrigger",yo=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=vo(wo,n),a=H(n);return i.jsx($i,{asChild:!0,...a,children:i.jsx(V.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:Xe(t,s.triggerRef),onPointerDown:E(e.onPointerDown,c=>{!o&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:E(e.onKeyDown,c=>{o||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});yo.displayName=wo;var ta="DropdownMenuPortal",Co=e=>{const{__scopeDropdownMenu:t,...n}=e,o=H(t);return i.jsx(Bi,{...o,...n})};Co.displayName=ta;var Ro="DropdownMenuContent",Ao=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=vo(Ro,n),s=H(n),a=l.useRef(!1);return i.jsx(Hi,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...o,ref:t,onCloseAutoFocus:E(e.onCloseAutoFocus,c=>{a.current||r.triggerRef.current?.focus(),a.current=!1,c.preventDefault()}),onInteractOutside:E(e.onInteractOutside,c=>{const u=c.detail.originalEvent,p=u.button===0&&u.ctrlKey===!0,d=u.button===2||p;(!r.modal||d)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ao.displayName=Ro;var na="DropdownMenuGroup",oa=l.forwardRef((e,t)=>
1{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return i.jsx(zi,{...r,...o,ref:t})});oa.displayName=na;var ra="DropdownMenuLabel",So=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return i.jsx(Gi,{...r,...o,ref:t})});So.displayName=ra;var sa="DropdownMenuItem",Mo=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return i.jsx(Vi,{...r,...o,ref:t})});Mo.displayName=sa;var ia="DropdownMenuCheckboxItem",No=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return i.jsx(Wi,{...r,...o,ref:t})});No.displayName=ia;var aa="DropdownMenuRadioGroup",ca=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return i.jsx(Ki,{...r,...o,ref:t})});ca.displayName=aa;var la="DropdownMenuRadioItem",Eo=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return i.jsx(Ui,{...r,...o,ref:t})});Eo.displayName=la;var ua="DropdownMenuItemIndicator",jo=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return i.jsx(Yi,{...r,...o,ref:t})});jo.displayName=ua;var da="DropdownMenuSeparator",Po=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return i.jsx(Xi,{...r,...o,ref:t})});Po.displayName=da;var fa="DropdownMenuArrow",pa=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return i.jsx(qi,{...r,...o,ref:t})});pa.displayName=fa;var ma="DropdownMenuSubTrigger",To=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return i.jsx(Zi,{...r,...o,ref:t})});To.displayName=ma;var ha="DropdownMenuSubContent",_o=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=H(n);return i.jsx(Ji,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});_o.displayName=ha;var xa=bo,ga=yo,va=Co,Do=Ao,Oo=So,ko=Mo,Io=No,Lo=Eo,Fo=jo,$o=Po,Bo=To,Ho=_o;const ba=xa,wa=ga,ya=l.forwardRef(({className:e,inset:t,children:n,...o},r)=>i.jsxs(Bo,{ref:r,className:te("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[n,i.jsx(hr,{className:"ml-auto"})]}));ya.displayName=Bo.displayName;const Ca=l.forwardRef(({className:e,...t},n)=>i.jsx(Ho,{ref:n,className:te("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-dropdown-menu-content-transform-origin)",e),...t}));Ca.displayName=Ho.displayName;const zo=l.forwardRef(({className:e,sideOffset:t=4,...n},o)=>i.jsx(va,{children:i.jsx(Do,{ref:o,sideOffset:t,className:te("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-dropdown-menu-content-transform-origin)",e),...n})}));zo.displayName=Do.displayName;const wt=l.forwardRef(({className:e,inset:t,...n},o)=>i.jsx(ko,{ref:o,className:te("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));wt.displayName=ko.displayName;const Ra=l.forwardRef(({className:e,children:t,checked:n,...o},r)=>i.jsxs(Io,{ref:r,className:te("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...o,children:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(Fo,{children:i.jsx(ln,{className:"h-4 w-4"})})}),t]}));Ra.displayName=Io.displayName;const Aa=l.forwardRef(({className:e,children:t,...n},o)=>i.jsxs(Lo,{ref:o,className:te("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(Fo,{children:i.jsx(xr,{className:"h-2 w-2 fill-current"})})}),t]}));Aa.displayName=Lo.displayName;const Sa=l.forwardRef(({className:e,inset:t,...n},o)=>i.jsx(Oo,{ref:o,className:te("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Sa.displayName=Oo.displayName;const Ma=l.forwardRef(({className:e,...t},n)=>i.jsx($o,{ref:n,className:te("-mx-1 my-1 h-px bg-muted",e),...t}));Ma.displayName=$o.displayName;var Na=Symbol("radix.slottable");function Ea(e){const t=({children:n})=>i.jsx(i.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Na,t}var ja=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Pa="VisuallyHidden",Go=l.forwardRef((e,t)=>
vendor: 4,604 bytes, line 1
1i.jsx(V.span,{...e,ref:t,style:{...ja,...e.style}}));Go.displayName=Pa;var Ta=Go,[st]=ge("Tooltip",[tt]),it=tt(),Vo="TooltipProvider",_a=700,yt="tooltip.open",[Da,Bt]=st(Vo),Wo=e=>{const{__scopeTooltip:t,delayDuration:n=_a,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:s}=e,a=l.useRef(!0),c=l.useRef(!1),u=l.useRef(0);return l.useEffect(()=>{const p=u.current;return()=>window.clearTimeout(p)},[]),i.jsx(Da,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(u.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(p=>{c.current=p},[]),disableHoverableContent:r,children:s})};Wo.displayName=Vo;var Pe="Tooltip",[Oa,ke]=st(Pe),Ko=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,u=Bt(Pe,e.__scopeTooltip),p=it(t),[d,f]=l.useState(null),x=He(),m=l.useRef(0),h=a??u.disableHoverableContent,v=c??u.delayDuration,g=l.useRef(!1),[b,C]=At({prop:o,defaultProp:r??!1,onChange:N=>{N?(u.onOpen(),document.dispatchEvent(new CustomEvent(yt))):u.onClose(),s?.(N)},caller:Pe}),y=l.useMemo(()=>b?g.current?"delayed-open":"instant-open":"closed",[b]),w=l.useCallback(()=>{window.clearTimeout(m.current),m.current=0,g.current=!1,C(!0)},[C]),A=l.useCallback(()=>{window.clearTimeout(m.current),m.current=0,C(!1)},[C]),S=l.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{g.current=!0,C(!0),m.current=0},v)},[v,C]);return l.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),i.jsx(Fn,{...p,children:i.jsx(Oa,{scope:t,contentId:x,open:b,stateAttribute:y,trigger:d,onTriggerChange:f,onTriggerEnter:l.useCallback(()=>{u.isOpenDelayedRef.current?S():w()},[u.isOpenDelayedRef,S,w]),onTriggerLeave:l.useCallback(()=>{h?A():(window.clearTimeout(m.current),m.current=0)},[A,h]),onOpen:w,onClose:A,disableHoverableContent:h,children:n})})};Ko.displayName=Pe;var Ct="TooltipTrigger",Uo=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=ke(Ct,n),s=Bt(Ct,n),a=it(n),c=l.useRef(null),u=K(t,c,r.onTriggerChange),p=l.useRef(!1),d=l.useRef(!1),f=l.useCallback(()=>p.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),i.jsx($n,{asChild:!0,...a,children:i.jsx(V.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:u,onPointerMove:E(e.onPointerMove,x=>{x.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(r.onTriggerEnter(),d.current=!0)}),onPointerLeave:E(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:E(e.onPointerDown,()=>{r.open&&r.onClose(),p.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:E(e.onFocus,()=>{p.current||r.onOpen()}),onBlur:E(e.onBlur,r.onClose),onClick:E(e.onClick,r.onClose)})})});Uo.displayName=Ct;var Ht="TooltipPortal",[ka,Ia]=st(Ht,{forceMount:void 0}),Yo=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,s=ke(Ht,t);return i.jsx(ka,{scope:t,forceMount:n,children:i.jsx(ve,{present:n||s.open,children:i.jsx(an,{asChild:!0,container:r,children:o})})})};Yo.displayName=Ht;var xe="TooltipContent",Xo=l.forwardRef((e,t)=>{const n=Ia(xe,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...s}=e,a=ke(xe,e.__scopeTooltip);return i.jsx(ve,{present:o||a.open,children:a.disableHoverableContent?i.jsx(qo,{side:r,...s,ref:t}):i.jsx(La,{side:r,...s,ref:t})})}),La=l.forwardRef((e,t)=>{const n=ke(xe,e.__scopeTooltip),o=Bt(xe,e.__scopeTooltip),r=l.useRef(null),s=K(t,r),[a,c]=l.useState(null),{trigger:u,onClose:p}=n,d=r.current,{onPointerInTransitChange:f}=o,x=l.useCallback(()=>{c(null),f(!1)},[f]),m=l.useCallback((h,v)=>{const g=h.currentTarget,b={x:h.clientX,y:h.clientY},C=za(b,g.getBoundingClientRect()),y=Ga(b,C),w=Va(v.getBoundingClientRect()),A=Ka([...y,...w]);c(A),f(!0)},[f]);return l.useEffect(()=>()=>x(),[x]),l.useEffect(()=>{if(u&&d){const h=g=>m(g,d),v=g=>m(g,u);return u.addEventListener("pointerleave",h),d.addEventListener("pointerleave",v),()=>{u.removeEventListener("pointerleave",h),d.removeEventListener("pointerleave",v)}}},[u,d,m,x]),l.useEffect(()=>{if(a){const h=v=>{const g=v.target,b={x:v.clientX,y:v.clientY},C=u?.contains(g)||d?.contains(g),y=!Wa(b,a);C?x():y&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[u,d,a,p,x]),i.jsx(qo,{...e,ref:s})}),[Fa,$a]=st(Pe,{isInside:!1}),Ba=Ea("TooltipContent"),qo=l.forwardRef((e,t)=>
1{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,u=ke(xe,n),p=it(n),{onClose:d}=u;return l.useEffect(()=>(document.addEventListener(yt,d),()=>document.removeEventListener(yt,d)),[d]),l.useEffect(()=>{if(u.trigger){const f=x=>{x.target?.contains(u.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[u.trigger,d]),i.jsx(cn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:i.jsxs(Bn,{"data-state":u.stateAttribute,...p,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[i.jsx(Ba,{children:o}),i.jsx(Fa,{scope:n,isInside:!0,children:i.jsx(Ta,{id:u.contentId,role:"tooltip",children:r||o})})]})})});Xo.displayName=xe;var Zo="TooltipArrow",Ha=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=it(n);return $a(Zo,n).isInside?null:i.jsx(Hn,{...r,...o,ref:t})});Ha.displayName=Zo;function za(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,o,r,s)){case s:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Ga(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Va(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function Wa(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],u=t[a],p=c.x,d=c.y,f=u.x,x=u.y;d>o!=x>o&&n<(f-p)*(o-d)/(x-d)+p&&(r=!r)}return r}function Ka(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),Ua(t)}function Ua(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(r.y-a.y)>=(s.y-a.y)*(r.x-a.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(r.y-a.y)>=(s.y-a.y)*(r.x-a.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Ya=Wo,Xa=Ko,qa=Uo,Za=Yo,Jo=Xo;const Qo=Ya,er=Xa,tr=qa,zt=l.forwardRef(({className:e,sideOffset:t=4,...n},o)=>i.jsx(Za,{children:i.jsx(Jo,{ref:o,sideOffset:t,className:te("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-tooltip-content-transform-origin)",e),...n})}));zt.displayName=Jo.displayName;var Ja=vr({chartName:"BarChart",GraphicalChild:mt,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:un},{axisType:"yAxis",AxisComp:dn}],formatAxisMap:br});const Qa={2026:{1:{month:"Jan",revenue:72e3,bookings:68,lcActive:!1,lcFee:0,baseline:72e3},2:{month:"Feb",revenue:78e3,bookings:74,lcActive:!1,lcFee:0,baseline:78e3},3:{month:"Mar",revenue:84e3,bookings:80,lcActive:!1,lcFee:0,baseline:84e3},4:{month:"Apr",revenue:88e3,bookings:84,lcActive:!1,lcFee:0,baseline:88e3},5:{month:"May",revenue:98e3,bookings:98,lcActive:!0,lcFee:0,baseline:78e3},6:{month:"Jun",revenue:139200,bookings:143,lcActive:!0,lcFee:0,baseline:82e3},7:{month:"Jul",revenue:155e3,bookings:162,lcActive:!0,lcFee:0,baseline:88e3},8:{month:"Aug",revenue:162e3,bookings:170,lcActive:!0,lcFee:0,baseline:91e3}
1,9:{month:"Sep",revenue:118e3,bookings:124,lcActive:!0,lcFee:0,baseline:85e3},10:{month:"Oct",revenue:98e3,bookings:101,lcActive:!0,lcFee:0,baseline:78e3},11:{month:"Nov",revenue:88e3,bookings:90,lcActive:!0,lcFee:0,baseline:72e3},12:{month:"Dec",revenue:148e3,bookings:155,lcActive:!0,lcFee:0,baseline:95e3}}},dt=.23,le=2026,rn=6,$e="—";function ec({propertyName:e}){const[t,n]=l.useState({kind:"ytd"}),o=Qa[le],r=l.useMemo(()=>{if(t.kind==="month"){const b=o[t.month],C=b.revenue,y=b.bookings,w=Math.round(C*dt),A=b.lcFee,S=w-A;return{label:`${b.month} ${le}`,directRevenue:C,directBookings:y,lcActive:b.lcActive,otaCommissionSaved:w,lcPackageFee:A,netSaving:S}}const m=223200,h=186,v=24e3,g=51300;return{label:`Year to date · ${le}`,directRevenue:m,directBookings:h,lcActive:!0,otaCommissionSaved:g,lcPackageFee:v,netSaving:g-v}},[t,o]),s=r.lcActive,a=s?`$${r.otaCommissionSaved.toLocaleString()}`:$e;s&&`${r.lcPackageFee.toLocaleString()}`;const c=s?`$${r.netSaving.toLocaleString()}`:$e;s&&r.directRevenue>0&&`${Math.round(r.netSaving/r.directRevenue*100)}`;const u=t.kind==="ytd"?"Content-attributed revenue":"Direct revenue",p=t.kind==="ytd"?"Content-attributed bookings":"Direct bookings",d=i.jsx(Qo,{children:i.jsxs(er,{children:[i.jsx(tr,{asChild:!0,children:i.jsxs("span",{className:"inline-flex items-center gap-1 cursor-help",children:["Le Collectif fee (Active subscription)",i.jsx(pn,{className:"size-3 text-ink-soft"})]})}),i.jsx(zt,{children:i.jsx("p",{children:"Annual Active plan fee — no commission on bookings."})})]})}),f=()=>{const m=[["Statement",`${e} — ${r.label}`],[],["Metric","Value"],[u,r.directRevenue],[p,r.directBookings],[`OTA commission saved (${Math.round(dt*100)}%)`,s?r.otaCommissionSaved:"—"],["LC package fee",s?r.lcPackageFee:"—"],["Net saving",s?r.netSaving:"—"]].map(b=>b.join(",")).join(`
2`),h=new Blob([m],{type:"text/csv"}),v=URL.createObjectURL(h),g=document.createElement("a");g.href=v,g.download=`lecollectif-statement-${t.kind==="ytd"?"ytd-2026":o[t.month].month.toLowerCase()+"-2026"}.csv`,g.click(),URL.revokeObjectURL(v)},x=l.useMemo(()=>Object.values(o).map((m,h)=>{const v=h+1;return{...m,monthNum:v,sinceLC:m.lcActive?m.revenue:null,isFuture:v>rn}}),[o]);return i.jsxs("section",{className:"mt-8 space-y-5",children:[i.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[i.jsx("h2",{className:"font-display text-xl font-bold tracking-tight",children:"Revenue recovered from OTAs"}),i.jsxs(ba,{children:[i.jsxs(wa,{className:"inline-flex items-center gap-2 rounded-full border border-border bg-card px-3 py-1.5 text-sm font-semibold text-ink shadow-sm focus:outline-none focus:ring-2 focus:ring-brand",children:[t.kind==="ytd"?`${le} · YTD`:`${o[t.month].month} ${le}`,i.jsx(gr,{className:"size-4"})]}),i.jsxs(zo,{align:"end",children:[Object.entries(o).filter(([m])=>Number(m)<=rn).map(([m,h])=>i.jsxs(wt,{onSelect:()=>n({kind:"month",month:Number(m)}
2),children:[h.month," ",le]},m)),i.jsxs(wt,{onSelect:()=>n({kind:"ytd"}),children:[le," · YTD ",t.kind==="ytd"?"(selected)":""]})]})]})]}),i.jsxs("div",{className:"rounded-2xl bg-brand-soft p-6 shadow-card space-y-6",children:[i.jsxs("div",{className:"space-y-4",children:[i.jsx("h3",{className:"text-xs font-semibold uppercase tracking-wide text-ink-soft",children:"Your total direct revenue"}),i.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[i.jsx(ue,{label:"Direct Revenue YTD",value:"$559,200",tooltip:"Total value of bookings made directly with your property"}),i.jsx(ue,{label:"Direct Bookings",value:"547",tooltip:"Number of reservations that bypassed OTAs entirely"})]}),i.jsx("p",{className:"text-xs text-ink-soft",children:"All bookings made directly with your property, not via OTA"})]}),i.jsx("div",{className:"h-px bg-border"}),i.jsxs("div",{className:"rounded-xl bg-amber-50 p-5 space-y-4",children:[i.jsx("h3",{className:"text-xs font-semibold uppercase tracking-wide text-ink-soft",children:"Revenue attributed to Le Collectif content"}),i.jsxs("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:[i.jsx(ue,{label:"Content-Attributed Bookings",value:"186"}),i.jsx(ue,{label:"Content-Attributed Revenue",value:"$223,200"}),i.jsx(ue,{label:"OTA Commission Saved on Content (23%)",value:"$51,300",tooltip:"23% of content-attributed revenue you kept instead of paying to Booking.com",sublabel:"23% you kept by not paying Booking.com on these bookings"}),i.jsx(ue,{label:"Le Collectif Fee",value:"$24,000/year",tooltip:"Your annual Active subscription cost",sublabel:"Your annual Active plan investment"}),i.jsx(ue,{label:"Net Return from Content",value:"$27,300",tooltip:"Margin earned after Active fee, from content alone",sublabel:"2.1× return on your Active subscription",accent:!0})]}),i.jsx("div",{className:"rounded-lg border-l-4 border-amber-300 bg-amber-100/50 p-3 text-xs italic text-ink-soft",children:"UTM tracking captures direct link clicks only. Research shows content-influenced bookings are typically 3–5× higher than tracked conversions — this figure represents your minimum return."}),i.jsxs(Rt,{to:"/client/content-performance",className:"inline-flex items-center gap-1 rounded-full bg-ink px-3 py-1.5 text-[11px] font-semibold text-paper",children:["View top performing content ",i.jsx(ar,{className:"size-3"})]})]})]}),i.jsxs("div",{className:"rounded-2xl border border-border bg-card p-5 shadow-card",children:[i.jsxs("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-2",children:[i.jsx("div",{className:"font-semibold text-ink",children:"Direct revenue by month"}),i.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-xs text-ink-soft",children:[i.jsx(sn,{color:"color-mix(in oklab, var(--muted-foreground) 45%, transparent)",label:"Before Le Collectif"}),i.jsx(sn,{color:"var(--brand-violet)",label:"Since Le Collectif"})]})]}),i.jsx("div",{className:"h-72 w-full",children:i.jsx(wr,{width:"100%",height:"100%",debounce:0,children:i.jsxs(Ja,{data:x,margin:{top:16,right:16,left:0,bottom:0},children:[i.jsx(yr,{strokeDasharray:"3 3",stroke:"var(--border)",vertical:!1}),i.jsx(un,{dataKey:"month",tick:{fontSize:12},stroke:"var(--muted-foreground)"}),i.jsx(dn,{tick:{fontSize:12},stroke:"var(--muted-foreground)",tickFormatter:m=>`$${(m/1e3).toFixed(0)}k`}),i.jsx(Cr,{cursor:{fill:"var(--muted)"},contentStyle:{borderRadius:12,border:"1px solid var(--border)",fontSize:12},formatter:(m,h)=>m==null?["—",h]:[`$${Number(m).toLocaleString()}`,h]}),i.jsx(mt,{dataKey:"baseline",name:"Before Le Collectif",radius:[6,6,0,0],isAnimationActive:!1,children:x.map(m=>{const h="color-mix(in oklab, var(--muted-foreground) 45%, transparent)",v="color-mix(in oklab, var(--muted-foreground) 20%, transparent)",g=t.kind==="month"?t.month:null,b=g!=null&&m.monthNum!==g;return i.jsx(Vt,{fill:b?v:h,fillOpacity:m.isFuture?.6:1,stroke:m.isFuture?"var(--muted-foreground)":void 0,strokeDasharray:m.isFuture?"4 3":void 0},`b-${m.month}`)})}),i.jsx(mt,{dataKey:"sinceLC",name:"Since Le Collectif",radius:[6,6,0,0],isA
2nimationActive:!1,children:x.map(m=>{const h="var(--brand-violet)",v="color-mix(in oklab, var(--brand-violet) 30%, transparent)",g=t.kind==="month"?t.month:null,b=g!=null&&m.monthNum!==g;return i.jsx(Vt,{fill:b?v:h,fillOpacity:m.isFuture?.6:1,stroke:m.isFuture?"var(--brand-violet)":void 0,strokeDasharray:m.isFuture?"4 3":void 0},`s-${m.month}`)})})]})})}),i.jsx("p",{className:"mt-3 text-xs text-ink-soft",children:"Le Collectif partnership started in May — purple bars show direct revenue since launch. Dashed bars from Jul onward are projected."})]}),i.jsxs("div",{className:"rounded-2xl bg-brand-soft p-6 shadow-card",children:[i.jsx("div",{className:"text-xs font-semibold uppercase tracking-wide text-ink-soft",children:t.kind==="ytd"?"Year-to-date statement":"This period's statement"}),i.jsxs("dl",{className:"mt-4 divide-y divide-border/60",children:[i.jsx(Se,{label:u,value:`$${r.directRevenue.toLocaleString()}`,bold:!0}),i.jsx(Se,{label:p,value:`${r.directBookings}`}),i.jsx(Se,{label:`OTA commission saved (${Math.round(dt*100)}%)`,value:a}),i.jsx(Se,{label:d,value:s?`–$${r.lcPackageFee.toLocaleString()}`:$e}),i.jsx(Se,{label:"Net saving",value:c,accent:s,bold:!0})]}),i.jsxs("button",{onClick:f,className:"mt-5 inline-flex w-full items-center justify-center gap-2 rounded-full bg-card px-5 py-3 text-sm font-semibold text-ink shadow-pop hover:bg-card/80",children:[i.jsx(fn,{className:"size-4"})," Download statement"]})]}),i.jsxs("div",{className:"rounded-2xl border border-dashed border-border bg-transparent p-4 text-xs text-ink-soft",children:[i.jsx("div",{className:"mb-2 font-semibold",children:"⏱ Attribution dashboard — launching soon for Always-On clients"}),i.jsxs("div",{className:"flex flex-wrap gap-2",children:[i.jsx(ft,{children:"Content → booking funnel"}),i.jsx(ft,{children:"Tracked-link attribution split"}),i.jsx(ft,{children:"Top-performing content"})]})]})]})}function ue({label:e,value:t,tooltip:n,sublabel:o,accent:r}){const s=n?i.jsx(Qo,{children:i.jsxs(er,{children:[i.jsx(tr,{asChild:!0,children:i.jsxs("span",{className:"inline-flex items-center gap-1 cursor-help",children:[e,i.jsx(pn,{className:"size-3 text-ink-soft"})]})}),i.jsx(zt,{children:i.jsx("p",{children:n})})]})}):e;return i.jsxs("div",{className:"rounded-xl bg-card p-3 shadow-sm",children:[i.jsx("div",{className:"text-[11px] font-medium uppercase tracking-wide text-ink-soft",children:s}),i.jsx("div",{className:`mt-1 font-display text-2xl font-bold ${r?"text-success":"text-ink"}`,children:t}),o&&i.jsx("div",{className:"mt-0.5 text-[11px] font-medium text-ink-soft",children:o})]})}function Se({label:e,value:t,bold:n,accent:o}){return i.jsxs("div",{className:"flex items-center justify-between py-2.5 text-sm",children:[i.jsx("dt",{className:n?"font-semibold text-ink":"text-ink-soft",children:e}),i.jsx("dd",{className:`${n?"font-bold":""} ${o?"text-success":"text-ink"}`,children:t})]})}function sn({color:e,label:t}){return i.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[i.jsx("span",{className:"inline-block size-3 rounded-sm",style:{background:e}}),t]})}function ft({children:e}){return i.jsx("span",{className:"rounded-full border border-border bg-card px-3 py-1 text-xs text-ink-soft",children:e})}const tc="Hyatt Regency, Nha Trang, Vietnam";function jc(){Rr();const e=ze(s=>s.briefs),t=ze(s=>s.submissions);e.filter(s=>s.status==="draft");const n=e.filter(s=>s.status==="live"),o=e.filter(s=>s.status==="closed");return t.flatMap(s=>s.clips).filter(s=>s.status==="ready"||s.status==="approved").length,i.jsxs(cr,{children:[i.jsx(lr,{eyebrow:"YOUR DASHBOARD",title:"Welcome Back!",description:"Briefs you've published, submissions in review, and assets ready to download.",actions:i.jsxs(Rt,{to:"/client/briefs/new",className:"inline-flex items-center gap-2 rounded-full bg-ink px-5 py-2.5 text-sm font-semibold text-paper shadow-pop",children:[i.jsx(mn,{className:"size-4"})," Create a brief"]})}),i.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-5",children:[i.jsx(Ae,{label:"Draft briefs",value:1,hint:"Not yet published"}),i.jsx(Ae,{label:"Active briefs",value:3,hint:"Open to creators"}),i.jsx(Ae,{label:"Closed briefs",value:6,hint:"Wrapped this quarter"}),i.jsx(Ae,{label:"CLIPS READY FOR REVIEW",value:10,hint:"Auto-subclipped and tagged",tone:"brand"}),i.jsx(Ae,{label:"Assets in library",value:48,hint:"Approved and ready to use"})]}),i.jsx(ec,{propertyName:tc}),i.jsxs("section",{className:"mt-8",children:[i.jsx("h2",{className:"mb-4 font-display text-xl font-bold tracking-tight",children:"Recent uploads"}),i.jsx(nc,{})]}),i.jsxs("section",{className:"mt-10",children:[i.jsx("h2",{className:"mb-4 font-display text-xl font-bold tracking-tight",children:"Active briefs"}),n.length===0?i.jsx(sc,{}):i.jsx("div",{className:"grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.map(s=>{const a=t.filter(c=>c.briefId===s.id).length;return i.jsx(Gt,{brief:s,href:`/client/briefs/${s.id}`,submissionsCount:a,badge:a>0?"Submissions in":void 0},s.id)})})]}),o.length>0?i.jsxs("section",{className:"mt-12",children:[i.jsx("h2",{className:"mb-4 font-display text-xl font-bold tracking-tight",children:"Closed briefs"}),i.jsx("div",{className:"grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3",children:o.map(s=>{const a=t.filter(c=>c.briefId===s.id).length;return i.jsx(Gt,{brief:s,href:`/client/briefs/${s.id}`,submissionsCount:a},s.id)})})]}):null]})}function nc(){const e=ze(r=>r.briefs),n=ze(r=>r.submissions).flatMap(r=>r.clips.map(s=>({...s,creatorName:r.creatorName,uploadedAt:r.uploadedAt,brief:e.find(a=>a.id===r.briefId)}))).sort((r,s)=>+new Date(s.uploadedAt)-+new Date(r.uploadedAt)).slice(0,6);if(n.length===0)return i.jsx("div",{className:"rounded-2xl border border-dashed border-border bg-card p-8 text-center text-sm text-ink-soft",children:"No uploads yet."});const o=[];return i.jsx("div",{className:"flex gap-4 overflow-x-auto pb-2",children:n.map(r=>
2{const s=Ar({title:r.title,description:r.description,tags:r.tags,excludeUrls:[...o]});return o.push(s.url),i.jsx(oc,{clip:r,image:s},r.id)})})}function oc({clip:e,image:t}){return i.jsxs("div",{className:"w-64 shrink-0 overflow-hidden rounded-xl border border-border bg-card shadow-card",children:[i.jsxs("div",{className:"relative aspect-video overflow-hidden",children:[i.jsx("img",{src:t.url,alt:t.alt,className:"size-full object-cover",loading:"lazy"}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-transparent to-transparent"}),i.jsxs("span",{className:"absolute bottom-2 right-2 rounded bg-black/60 px-1.5 py-0.5 font-display text-xs font-bold text-white",children:[e.duration,"s"]}),i.jsx(rc,{status:e.status})]}),i.jsxs("div",{className:"space-y-1.5 p-3",children:[i.jsx("div",{className:"font-semibold leading-tight text-ink text-sm line-clamp-2",children:e.title}),e.brief?i.jsxs("div",{className:"text-xs text-ink-soft",children:[e.brief.brand," · ",e.brief.title]}):null,i.jsxs("div",{className:"flex items-center justify-between pt-1",children:[i.jsx("span",{className:"text-[11px] text-muted-foreground",children:e.creatorName}),i.jsxs("button",{className:"inline-flex items-center gap-1 rounded-full bg-ink px-2.5 py-1 text-[11px] font-semibold text-paper",children:[i.jsx(fn,{className:"size-3"})," Download"]})]})]})]})}function rc({status:e}){return e==="needs_release"?i.jsxs("span",{className:"absolute left-2 top-2 inline-flex items-center gap-1 rounded-full bg-warning/90 px-2 py-0.5 text-[10px] font-semibold text-warning-foreground backdrop-blur",children:[i.jsx(Sr,{className:"size-3"})," Release"]}):e==="processing"?i.jsxs("span",{className:"absolute left-2 top-2 inline-flex items-center gap-1 rounded-full bg-black/50 px-2 py-0.5 text-[10px] font-semibold text-white backdrop-blur",children:[i.jsx(Mr,{className:"size-3"})," Processing"]}):i.jsxs("span",{className:"absolute left-2 top-2 inline-flex items-center gap-1 rounded-full bg-success/90 px-2 py-0.5 text-[10px] font-semibold text-white backdrop-blur",children:[i.jsx(ln,{className:"size-3"})," Published"]})}function sc(){return i.jsxs("div",{className:"rounded-2xl border border-dashed border-border bg-card p-10 text-center",children:[i.jsx("p",{className:"text-sm text-ink-soft",children:"No active briefs yet."}),i.jsxs(Rt,{to:"/client/briefs/new",className:"mt-3 inline-flex items-center gap-2 rounded-full bg-ink px-4 py-2 text-sm font-semibold text-paper",children:[i.jsx(mn,{className:"size-4"})," Create your first brief"]})]})}export{jc as component};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.