PageSourceSearch

https://golden-mortgage-nh4q5rh9mr.replit.app/assets/click-stats-DU2IjmZL.js

js golden-mortgage-nh4q5rh9mr.replit.app collected 2026-10-03 03:55:01 UTC 29,418 bytes, 11 lines download raw bytes

vendor: 6,049 bytes, lines 1-11
1import{c as De,r,j as e,m as It,d as jt,u as F,G as Be,H as Tt,e as Rt,g as D,P as _,V as Pt,I as Et,s as _t,J as Le,l as Mt,D as kt,K as At,M as Ot,a as G}from"./index-BOm9yBS-.js";import{u as Dt}from"./useQuery-Cff1LxtP.js";import{A as Bt,M as Me}from"./admin-layout-CbMwximA.js";import{C as ce,b as ie,c as de,a as ue}from"./card-BuVfLCv2.js";import{B as Lt}from"./button-okewZkMR.js";import{a as Vt,u as Ee,c as Ht,h as Ut,b as Ft,R as Wt,F as Kt,C as Ve}from"./index-C-ZKDtCp.js";import{u as $t}from"./index-DkFSen0B.js";import{C as zt}from"./chevron-up-BzITyTjJ.js";import{T as Gt,a as qt,b as ke,c as Ce,d as Yt,e as be}from"./table-B3eLAzL2.js";import{T as Zt}from"./trending-up-BlgIvDwT.js";import{C as Xt}from"./calendar-BfYdPxzv.js";import"./avatar-khs3rBUf.js";import"./star-BrI-K6yZ.js";/**
2 * @license lucide-react v0.545.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Jt=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Qt=De("chart-column",Jt);/**
7 * @license lucide-react v0.545.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const eo=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],to=De("check",eo);function Ae(o,[n,t]){return Math.min(t,Math.max(n,o))}function T(o,n,{checkForDefaultPrevented:t=!0}={}){return function(s){if(o?.(s),t===!1||!s.defaultPrevented)return n?.(s)}}function oo(o){const n=no(o),t=r.forwardRef((l,s)=>{const{children:d,...c}=l,a=r.Children.toArray(d),i=a.find(so);if(i){const p=i.props.children,h=a.map(v=>v===i?r.Children.count(p)>1?r.Children.only(null):r.isValidElement(p)?p.props.children:null:v);return e.jsx(n,{...c,ref:s,children:r.isValidElement(p)?r.cloneElement(p,void 0,h):null})}return e.jsx(n,{...c,ref:s,children:d})});return t.displayName=`${o}.Slot`,t}function no(o){const n=r.forwardRef((t,l)=>{const{children:s,...d}=t;if(r.isValidElement(s)){const c=ao(s),a=lo(d,s.props);return s.type!==r.Fragment&&(a.ref=l?It(l,c):c),r.cloneElement(s,a)}return r.Children.count(s)>1?r.Children.only(null):null});return n.displayName=`${o}.SlotClone`,n}var ro=Symbol("radix.slottable");function so(o){return r.isValidElement(o)&&typeof o.type=="function"&&"__radixId"in o.type&&o.type.__radixId===ro}function lo(o,n){const t={...n};for(const l in n){const s=o[l],d=n[l];/^on[A-Z]/.test(l)?s&&d?t[l]=(...a)=>{const i=d(...a);return s(...a),i}:s&&(t[l]=s):l==="style"?t[l]={...s,...d}:l==="className"&&(t[l]=[s,d].filter(Boolean).join(" "))}return{...o,...t}}function ao(o){let n=Object.getOwnPropertyDescriptor(o.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?o.ref:(n=Object.getOwnPropertyDescriptor(o,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?o.props.ref:o.props.ref||o.ref)}var co=jt[" useInsertionEffect ".trim().toString()]||F;function Oe({prop:o,defaultProp:n,onChange:t=()=>{},caller:l}){const[s,d,c]=io({defaultProp:n,onChange:t}),a=o!==void 0,i=a?o:s;{const h=r.useRef(o!==void 0);r.useEffect(()=>{const v=h.current;v!==a&&console.warn(`${l} is changing from ${v?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=a},[a,l])}const p=r.useCallback(h=>{if(a){const v=uo(h)?h(o):h;v!==o&&c.current?.(v)}else d(h)},[a,o,d,c]);return[i,p]}function io({defaultProp:o,onChange:n}){const[t,l]=r.useState(o),s=r.useRef(t),d=r.useRef(n);return co(()=>{d.current=n},[n]),r.useEffect(()=>{s.current!==t&&(d.current?.(t),s.current=t)},[t,s]),[t,l,d]}function uo(o){return typeof o=="function"}var po=[" ","Enter","ArrowUp","ArrowDown"],fo=[" ","Enter"],Q="Select",[fe,me,mo]=Ht(Q),[oe]=Rt(Q,[mo,Be]),he=Be(),[ho,q]=oe(Q),[xo,go]=oe(Q),He=o=>{const{__scopeSelect:n,children:t,open:l,defaultOpen:s,onOpenChange:d,value:c,defaultValue:a,onValueChange:i,dir:p,name:h,autoComplete:v,disabled:N,required:u,form:f}=o,m=he(n),[S,y]=r.useState(null),[g,w]=r.useState(null),[W,M]=r.useState(!1),ne=Vt(p),[R,A]=Oe({prop:l,defaultProp:s??!1,onChange:d,caller:Q}),[K,Z]=Oe({prop:c,defaultProp:a,onChange:i,caller:Q}),B=r.useRef(null),L=S?f||!!S.closest("form"):!0,[$,V]=r.useState(new Set),H=Array.from($).map(P=>P.props.value).join(";");return e.jsx(Tt,{...m,children:e.jsxs(ho,{required:u,scope:n,trigger:S,onTriggerChange:y,valueNode:g,onValueNodeChange:w,valueNodeHasChildren:W,onValueNodeHasChildrenChange:M,contentId:Ee(),value:K,onValueChange:Z,open:R,onOpenChange:A,dir:ne,triggerPointerDownPosRef:B,disabled:N,children:[e.jsx(fe.Provider,{scope:n,children:e.jsx(xo,{scope:o.__scopeSelect,onNativeOptionAdd:r.useCallback(P=>{V(O=>new Set(O).add(P))},[]),onNativeOptionRemove:r.useCallback(P=>{V(O=>{const U=new Set(O);return U.delete(P),U})},[]),children:t})}),L?e.jsxs(dt,{"aria-hidden":!0,required:u,tabIndex:-1,name:h,autoComplete:v,value:K,onChange:P=>Z(P.target.value),disabled:N,form:f,children:[K===void 0?e.jsx("option",{value:""}):null,Array.from($)]},H):null]})})};He.displayName=Q;var Ue="SelectTrigger",Fe=r.forwardRef((o,n)=>{const{__scopeSelect:t,disabled:l=!1,...s}=o,d=he(t),c=q(Ue,t),a=c.disabled||l,i=D(n,c.onTriggerChange),p=me(t),h=r.useRef("touch"),[v,N,u]=pt(m=>{const S=p().filter(w=>!w.disabled),y=S.find(w=>w.value===c.value),g=ft(S,m,y);g!==void 0&&c.onValueChange(g.value)}),f=m=>{a||(c.onOpenChange(!0),u()),m&&(c.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return e.jsx(Et,{asChild:!0,...d,children:e.jsx(_.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":ut(c.value)?"":void 0,...s,ref:i,onClick:T(s.onClick,m=>
vendor: 16,379 bytes, line 11
11{m.currentTarget.focus(),h.current!=="mouse"&&f(m)}),onPointerDown:T(s.onPointerDown,m=>{h.current=m.pointerType;const S=m.target;S.hasPointerCapture(m.pointerId)&&S.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(f(m),m.preventDefault())}),onKeyDown:T(s.onKeyDown,m=>{const S=v.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&N(m.key),!(S&&m.key===" ")&&po.includes(m.key)&&(f(),m.preventDefault())})})})});Fe.displayName=Ue;var We="SelectValue",Ke=r.forwardRef((o,n)=>{const{__scopeSelect:t,className:l,style:s,children:d,placeholder:c="",...a}=o,i=q(We,t),{onValueNodeHasChildrenChange:p}=i,h=d!==void 0,v=D(n,i.onValueNodeChange);return F(()=>{p(h)},[p,h]),e.jsx(_.span,{...a,ref:v,style:{pointerEvents:"none"},children:ut(i.value)?e.jsx(e.Fragment,{children:c}):d})});Ke.displayName=We;var vo="SelectIcon",$e=r.forwardRef((o,n)=>{const{__scopeSelect:t,children:l,...s}=o;return e.jsx(_.span,{"aria-hidden":!0,...s,ref:n,children:l||"▼"})});$e.displayName=vo;var So="SelectPortal",ze=o=>e.jsx(_t,{asChild:!0,...o});ze.displayName=So;var ee="SelectContent",Ge=r.forwardRef((o,n)=>{const t=q(ee,o.__scopeSelect),[l,s]=r.useState();if(F(()=>{s(new DocumentFragment)},[]),!t.open){const d=l;return d?Le.createPortal(e.jsx(qe,{scope:o.__scopeSelect,children:e.jsx(fe.Slot,{scope:o.__scopeSelect,children:e.jsx("div",{children:o.children})})}),d):null}return e.jsx(Ye,{...o,ref:n})});Ge.displayName=ee;var k=10,[qe,Y]=oe(ee),wo="SelectContentImpl",yo=oo("SelectContent.RemoveScroll"),Ye=r.forwardRef((o,n)=>{const{__scopeSelect:t,position:l="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:d,onPointerDownOutside:c,side:a,sideOffset:i,align:p,alignOffset:h,arrowPadding:v,collisionBoundary:N,collisionPadding:u,sticky:f,hideWhenDetached:m,avoidCollisions:S,...y}=o,g=q(ee,t),[w,W]=r.useState(null),[M,ne]=r.useState(null),R=D(n,x=>W(x)),[A,K]=r.useState(null),[Z,B]=r.useState(null),L=me(t),[$,V]=r.useState(!1),H=r.useRef(!1);r.useEffect(()=>{if(w)return Ut(w)},[w]),Ft();const P=r.useCallback(x=>{const[I,...E]=L().map(j=>j.ref.current),[C]=E.slice(-1),b=document.activeElement;for(const j of x)if(j===b||(j?.scrollIntoView({block:"nearest"}),j===I&&M&&(M.scrollTop=0),j===C&&M&&(M.scrollTop=M.scrollHeight),j?.focus(),document.activeElement!==b))return},[L,M]),O=r.useCallback(()=>P([A,w]),[P,A,w]);r.useEffect(()=>{$&&O()},[$,O]);const{onOpenChange:U,triggerPointerDownPosRef:z}=g;r.useEffect(()=>{if(w){let x={x:0,y:0};const I=C=>{x={x:Math.abs(Math.round(C.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(C.pageY)-(z.current?.y??0))}},E=C=>{x.x<=10&&x.y<=10?C.preventDefault():w.contains(C.target)||U(!1),document.removeEventListener("pointermove",I),z.current=null};return z.current!==null&&(document.addEventListener("pointermove",I),document.addEventListener("pointerup",E,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",I),document.removeEventListener("pointerup",E,{capture:!0})}}},[w,U,z]),r.useEffect(()=>{const x=()=>U(!1);return window.addEventListener("blur",x),window.addEventListener("resize",x),()=>{window.removeEventListener("blur",x),window.removeEventListener("resize",x)}},[U]);const[xe,le]=pt(x=>{const I=L().filter(b=>!b.disabled),E=I.find(b=>b.ref.current===document.activeElement),C=ft(I,x,E);C&&setTimeout(()=>C.ref.current.focus())}),ge=r.useCallback((x,I,E)=>{const C=!H.current&&!E;(g.value!==void 0&&g.value===I||C)&&(K(x),C&&(H.current=!0))},[g.value]),ve=r.useCallback(()=>w?.focus(),[w]),te=r.useCallback((x,I,E)=>{const C=!H.current&&!E;(g.value!==void 0&&g.value===I||C)&&B(x)},[g.value]),ae=l==="popper"?Ne:Ze,re=ae===Ne?{side:a,sideOffset:i,align:p,alignOffset:h,arrowPadding:v,collisionBoundary:N,collisionPadding:u,sticky:f,hideWhenDetached:m,avoidCollisions:S}:{};return e.jsx(qe,{scope:t,content:w,viewport:M,onViewportChange:ne,itemRefCallback:ge,selectedItem:A,onItemLeave:ve,itemTextRefCallback:te,focusSelectedItem:O,selectedItemText:Z,position:l,isPositioned:$,searchRef:xe,children:e.jsx(Wt,{as:yo,allowPinchZoom:!0,children:e.jsx(Kt,{asChild:!0,trapped:g.open,onMountAutoFocus:x=>{x.preventDefault()},onUnmountAutoFocus:T(s,x=>{g.trigger?.focus({preventScroll:!0}),x.preventDefault()}),children:e.jsx(kt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:c,onFocusOutside:x=>x.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:e.jsx(ae,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:x=>x.preventDefault(),...y,...re,onPlaced:()=>V(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:T(y.onKeyDown,x=>{const I=x.ctrlKey||x.altKey||x.metaKey;if(x.key==="Tab"&&x.preventDefault(),!I&&x.key.length===1&&le(x.key),["ArrowUp","ArrowDown","Home","End"].includes(x.key)){let C=L().filter(b=>!b.disabled).map(b=>b.ref.current);if(["ArrowUp","End"].includes(x.key)&&(C=C.slice().reverse()),["ArrowUp","ArrowDown"].includes(x.key)){const b=x.target,j=C.indexOf(b);C=C.slice(j+1)}setTimeout(()=>P(C)),x.preventDefault()}})})})})})})});Ye.displayName=wo;var Co="SelectItemAlignedPosition",Ze=r.forwardRef((o,n)=>{const{__scopeSelect:t,onPlaced:l,...s}=o,d=q(ee,t),c=Y(ee,t),[a,i]=r.useState(null),[p,h]=r.useState(null),v=D(n,R=>h(R)),N=me(t),u=r.useRef(!1),f=r.useRef(!0),{viewport:m,selectedItem:S,selectedItemText:y,focusSelectedItem:g}=c,w=r.useCallback(()=>{if(d.trigger&&d.valueNode&&a&&p&&m&&S&&y){const R=d.trigger.getBoundingClientRect(),A=p.getBoundingClientRect(),K=d.valueNode.getBoundingClientRect(),Z=y.getBoundingClientRect();if(d.dir!=="rtl"){const b=Z.left-A.left,j=K.left-b,X=R.left-j,J=R.width+X,Se=Math.max(J,A.width),we=window.innerWidth-k,ye=Ae(j,[k,Math.max(k,we-Se)]);a.style.minWidth=J+"px",a.style.left=ye+"px"}else{const b=A.right-Z.right,j=window.innerWidth-K.right-b,X=window.innerWidth-R.right-j,J=R.width+X,Se=Math.max(J,A.width),we=window.innerWidth-k,ye=Ae(j,[k,Math.max(k,we-Se)]);a.style.minWidth=J+"px",a.style.right=ye+"px"}const B=N(),L=window.innerHeight-k*2,$=m.scrollHeight,V=window.getComputedStyle(p),H=parseInt(V.borderTopWidth,10),P=parseInt(V.paddingTop,10),O=parseInt(V.borderBottomWidth,10),U=parseInt(V.paddingBottom,10),z=H+P+$+U+O,xe=Math.min(S.offsetHeight*5,z),le=window.getComputedStyle(m),ge=parseInt(le.paddingTop,10),ve=parseInt(le.paddingBottom,10),te=R.top+R.height/2-k,ae=L-te,re=S.offsetHeight/2,x=S.offsetTop+re,I=H+P+x,E=z-I;if(I<=te){const b=B.length>0&&S===B[B.length-1].ref.current;a.style.bottom="0px";const j=p.clientHeight-m.offsetTop-m.offsetHeight,X=Math.max(ae,re+(b?ve:0)+j+O),J=I+X;a.style.height=J+"px"}else{const b=B.length>0&&S===B[0].ref.current;a.style.top="0px";const X=Math.max(te,H+m.offsetTop+(b?ge:0)+re)+E;a.style.height=X+"px",m.scrollTop=I-te+m.offsetTop}a.style.margin=`${k}px 0`,a.style.minHeight=xe+"px",a.style.maxHeight=L+"px",l?.(),requestAnimationFrame(()=>u.current=!0)}},[N,d.trigger,d.valueNode,a,p,m,S,y,d.dir,l]);F(()=>w(),[w]);const[W,M]=r.useState();F(()=>{p&&M(window.getComputedStyle(p).zIndex)},[p]);const ne=r.useCallback(R=>{R&&f.current===!0&&(w(),g?.(),f.current=!1)},[w,g]);return e.jsx(No,{scope:t,contentWrapper:a,shouldExpandOnScrollRef:u,onScrollButtonChange:ne,children:e.jsx("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:W},children:e.jsx(_.div,{...s,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});Ze.displayName=Co;var bo="SelectPopperPosition",Ne=r.forwardRef((o,n)=>{const{__scopeSelect:t,align:l="start",collisionPadding:s=k,...d}=o,c=he(t);return e.jsx(At,{...c,...d,ref:n,align:l,collisionPadding:s,style:{boxSizing:"border-box",...d.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ne.displayName=bo;var[No,_e]=oe(ee,{}),Ie="SelectViewport",Xe=r.forwardRef((o,n)=>{const{__scopeSelect:t,nonce:l,...s}=o,d=Y(Ie,t),c=_e(Ie,t),a=D(n,d.onViewportChange),i=r.useRef(0);return e.jsxs(e.Fragment,{children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),e.jsx(fe.Slot,{scope:t,children:e.jsx(_.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:T(s.onScroll,p=>{const h=p.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:N}=c;if(N?.current&&v){const u=Math.abs(i.current-h.scrollTop);if(u>0){const f=window.innerHeight-k*2,m=parseFloat(v.style.minHeight),S=parseFloat(v.style.height),y=Math.max(m,S);if(y<f){const g=y+u,w=Math.min(f,g),W=g-w;v.style.height=w+"px",v.style.bottom==="0px"&&(h.scrollTop=W>0?W:0,v.style.justifyContent="flex-end")}}}i.current=h.scrollTop})})})]})});Xe.displayName=Ie;var Je="SelectGroup",[Io,jo]=oe(Je),To=r.forwardRef((o,n)=>{const{__scopeSelect:t,...l}=o,s=Ee();return e.jsx(Io,{scope:t,id:s,children:e.jsx(_.div,{role:"group","aria-labelledby":s,...l,ref:n})})});To.displayName=Je;var Qe="SelectLabel",et=r.forwardRef((o,n)=>{const{__scopeSelect:t,...l}=o,s=jo(Qe,t);return e.jsx(_.div,{id:s.id,...l,ref:n})});et.displayName=Qe;var pe="SelectItem",[Ro,tt]=oe(pe),ot=r.forwardRef((o,n)=>{const{__scopeSelect:t,value:l,disabled:s=!1,textValue:d,...c}=o,a=q(pe,t),i=Y(pe,t),p=a.value===l,[h,v]=r.useState(d??""),[N,u]=r.useState(!1),f=D(n,g=>i.itemRefCallback?.(g,l,s)),m=Ee(),S=r.useRef("touch"),y=()=>{s||(a.onValueChange(l),a.onOpenChange(!1))};if(l==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return e.jsx(Ro,{scope:t,value:l,disabled:s,textId:m,isSelected:p,onItemTextChange:r.useCallback(g=>{v(w=>w||(g?.textContent??"").trim())},[]),children:e.jsx(fe.ItemSlot,{scope:t,value:l,disabled:s,textValue:h,children:e.jsx(_.div,{role:"option","aria-labelledby":m,"data-highlighted":N?"":void 0,"aria-selected":p&&N,"data-state":p?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...c,ref:f,onFocus:T(c.onFocus,()=>u(!0)),onBlur:T(c.onBlur,()=>u(!1)),onClick:T(c.onClick,()=>{S.current!=="mouse"&&y()}),onPointerUp:T(c.onPointerUp,()=>{S.current==="mouse"&&y()}),onPointerDown:T(c.onPointerDown,g=>{S.current=g.pointerType}),onPointerMove:T(c.onPointerMove,g=>{S.current=g.pointerType,s?i.onItemLeave?.():S.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:T(c.onPointerLeave,g=>{g.currentTarget===document.activeElement&&i.onItemLeave?.()}),onKeyDown:T(c.onKeyDown,g=>{i.searchRef?.current!==""&&g.key===" "||(fo.includes(g.key)&&y(),g.key===" "&&g.preventDefault())})})})})});ot.displayName=pe;var se="SelectItemText",nt=r.forwardRef((o,n)=>{const{__scopeSelect:t,className:l,style:s,...d}=o,c=q(se,t),a=Y(se,t),i=tt(se,t),p=go(se,t),[h,v]=r.useState(null),N=D(n,y=>v(y),i.onItemTextChange,y=>a.itemTextRefCallback?.(y,i.value,i.disabled)),u=h?.textContent,f=r.useMemo(()=>e.jsx("option",{value:i.value,disabled:i.disabled,children:u},i.value),[i.disabled,i.value,u]),{onNativeOptionAdd:m,onNativeOptionRemove:S}=p;return F(()=>(m(f),()=>S(f)),[m,S,f]),e.jsxs(e.Fragment,{children:[e.jsx(_.span,{id:i.textId,...d,ref:N}),i.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Le.createPortal(d.children,c.valueNode):null]})});nt.displayName=se;var rt="SelectItemIndicator",st=r.forwardRef((o,n)=>{const{__scopeSelect:t,...l}=o;return tt(rt,t).isSelected?e.jsx(_.span,{"aria-hidden":!0,...l,ref:n}):null});st.displayName=rt;var je="SelectScrollUpButton",lt=r.forwardRef((o,n)=>{const t=Y(je,o.__scopeSelect),l=_e(je,o.__scopeSelect),[s,d]=r.useState(!1),c=D(n,l.onScrollButtonChange);return F(()=>{if(t.viewport&&t.isPositioned){let a=function(){const p=i.scrollTop>0;d(p)};const i=t.viewport;return a(),i.addEventListener("scroll",a),()=>i.removeEventListener("scroll",a)}},[t.viewport,t.isPositioned]),s?e.jsx(ct,{...o,ref:c,onAutoScroll:()=>{const{viewport:a,selectedItem:i}=t;a&&i&&(a.scrollTop=a.scrollTop-i.offsetHeight)}}):null});lt.displayName=je;var Te="SelectScrollDownButton",at=r.forwardRef((o,n)=>{const t=Y(Te,o.__scopeSelect),l=_e(Te,o.__scopeSelect),[s,d]=r.useState(!1),c=D(n,l.onScrollButtonChange);return F(()=>{if(t.viewport&&t.isPositioned){let a=function(){const p=i.scrollHeight-i.clientHeight,h=Math.ceil(i.scrollTop)<p;d(h)};const i=t.viewport;return a(),i.addEventListener("scroll",a),()=>i.removeEventListener("scroll",a)}},[t.viewport,t.isPositioned]),s?e.jsx(ct,{...o,ref:c,onAutoScroll:()=>{const{viewport:a,selectedItem:i}=t;a&&i&&(a.scrollTop=a.scrollTop+i.offsetHeight)}}):null});at.displayName=Te;var ct=r.forwardRef((o,n)=>{const{__scopeSelect:t,onAutoScroll:l,...s}=o,d=Y("SelectScrollButton",t),c=r.useRef(null),a=me(t),i=r.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return r.useEffect(()=>()=>i(),[i]),F(()=>{a().find(h=>h.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),e.jsx(_.div,{"aria-hidden":!0,...s,ref:n,style:{flexShrink:0,...s.style},onPointerDown:T(s.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(l,50))}),onPointerMove:T(s.onPointerMove,()=>{d.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(l,50))}),onPointerLeave:T(s.onPointerLeave,()=>{i()})})}),Po="SelectSeparator",it=r.forwardRef((o,n)=>{const{__scopeSelect:t,...l}=o;return e.jsx(_.div,{"aria-hidden":!0,...l,ref:n})});it.displayName=Po;var Re="SelectArrow",Eo=r.forwardRef((o,n)=>{const{__scopeSelect:t,...l}=o,s=he(t),d=q(Re,t),c=Y(Re,t);return d.open&&c.position==="popper"?e.jsx(Ot,{...s,...l,ref:n}):null});Eo.displayName=Re;var _o="SelectBubbleInput",dt=r.forwardRef(({__scopeSelect:o,value:n,...t},l)=>{const s=r.useRef(null),d=D(l,s),c=$t(n);return r.useEffect(()=>{const a=s.current;if(!a)return;const i=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(i,"value").set;if(c!==n&&h){const v=new Event("change",{bubbles:!0});h.call(a,n),a.dispatchEvent(v)}},[c,n]),e.jsx(_.select,{...t,style:{...Pt,...t.style},ref:d,defaultValue:n})});dt.displayName=_o;function ut(o){return o===""||o===void 0}function pt(o){const n=Mt(o),t=r.useRef(""),l=r.useRef(0),s=r.useCallback(c=>{const a=t.current+c;n(a),(function i(p){t.current=p,window.clearTimeout(l.current),p!==""&&(l.current=window.setTimeout(()=>i(""),1e3))})(a)},[n]),d=r.useCallback(()=>{t.current="",window.clearTimeout(l.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(l.current),[]),[t,s,d]}function ft(o,n,t){const s=n.length>1&&Array.from(n).every(p=>p===n[0])?n[0]:n,d=t?o.indexOf(t):-1;let c=Mo(o,Math.max(d,0));s.length===1&&(c=c.filter(p=>p!==t));const i=c.find(p=>p.textValue.toLowerCase().startsWith(s.toLowerCase()));return i!==t?i:void 0}function Mo(o,n){return o.map((t,l)=>o[(n+l)%o.length])}var ko=He,mt=Fe,Ao=Ke,Oo=$e,Do=ze,ht=Ge,Bo=Xe,xt=et,gt=ot,Lo=nt,Vo=st,vt=lt,St=at,wt=it;const Ho=ko,Uo=Ao,yt=r.forwardRef(({className:o,children:n,...t},l)=>e.jsxs(mt,{ref:l,className:G("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",o),...t,children:[n,e.jsx(Oo,{asChild:!0,children:e.jsx(Ve,{className:"h-4 w-4 opacity-50"})})]}));yt.displayName=mt.displayName;const Ct=r.forwardRef(({className:o,...n},t)=>e.jsx(vt,{ref:t,className:G("flex cursor-default items-center justify-center py-1",o),...n,children:e.jsx(zt,{className:"h-4 w-4"})}));Ct.displayName=vt.displayName;const bt=r.forwardRef(({className:o,...n},t)=>e.jsx(St,{ref:t,className:G("flex cursor-default items-center justify-center py-1",o),...n,children:e.jsx(Ve,{className:"h-4 w-4"})}));bt.displayName=St.displayName;const Nt=r.forwardRef(({className:o,children:n,position:t="popper",...l},s)=>
11e.jsx(Do,{children:e.jsxs(ht,{ref:s,className:G("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",o),position:t,...l,children:[e.jsx(Ct,{}),e.jsx(Bo,{className:G("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),e.jsx(bt,{})]})}));Nt.displayName=ht.displayName;const Fo=r.forwardRef(({className:o,...n},t)=>e.jsx(xt,{ref:t,className:G("px-2 py-1.5 text-sm font-semibold",o),...n}));Fo.displayName=xt.displayName;const Pe=r.forwardRef(({className:o,children:n,...t},l)=>e.jsxs(gt,{ref:l,className:G("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),...t,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Vo,{children:e.jsx(to,{className:"h-4 w-4"})})}),e.jsx(Lo,{children:n})]}));Pe.displayName=gt.displayName;const Wo=r.forwardRef(({className:o,...n},t)=>e.jsx(wt,{ref:t,className:G("-mx-1 my-1 h-px bg-muted",o),...n}));Wo.displayName=wt.displayName;function Ko(){const o=[],n=new Date;for(let t=0;t<12;t++){const l=new Date(n.getFullYear(),n.getMonth()-t,1),s=l.toISOString().slice(0,7),d=l.toLocaleDateString("en-GB",{month:"long",year:"numeric"});o.push({value:s,label:d})}return o}function rn(){const[o,n]=r.useState(""),t=Ko(),{data:l=[],isLoading:s,refetch:d}=Dt({queryKey:["/api/admin/click-stats",o],queryFn:async()=>{const u=o?`/api/admin/click-stats?month=${o}`:"/api/admin/click-stats",f=await fetch(u,{credentials:"include"});if(!f.ok)throw new Error("Failed to fetch stats");return f.json()}}),c=l.reduce((u,f)=>u+f.clickCount,0),a=new Set(l.map(u=>u.buttonId)).size,i=l.reduce((u,f)=>(u[f.buttonId]||(u[f.buttonId]={buttonId:f.buttonId,buttonText:f.buttonText,total:0}),u[f.buttonId].total+=f.clickCount,u),{}),p=Object.values(i).sort((u,f)=>f.total-u.total),h=p.length>0?p[0]:null,v=l.reduce((u,f)=>(u[f.buttonId]||(u[f.buttonId]={buttonId:f.buttonId,buttonText:f.buttonText,total:0,sources:[]}),u[f.buttonId].total+=f.clickCount,u[f.buttonId].sources.push({sourceUrl:f.sourceUrl,destUrl:f.destUrl,count:f.clickCount}),u),{}),N=Object.values(v).sort((u,f)=>f.total-u.total);return e.jsx(Bt,{title:"Click Analytics",children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-brand-navy",children:"Button Click Analytics"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Track which buttons your visitors are clicking"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs(Ho,{value:o||"all",onValueChange:u=>n(u==="all"?"":u),children:[e.jsx(yt,{className:"w-[200px]",children:e.jsx(Uo,{placeholder:"All time"})}),e.jsxs(Nt,{children:[e.jsx(Pe,{value:"all",children:"All time"}),t.map(u=>e.jsx(Pe,{value:u.value,children:u.label},u.value))]})]}),e.jsx(Lt,{variant:"outline",onClick:()=>d(),children:"Refresh"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[e.jsxs(ce,{children:[e.jsxs(ie,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(de,{className:"text-sm font-medium",children:"Total Clicks"}),e.jsx(Me,{className:"h-4 w-4 text-muted-foreground"})]}),e.jsxs(ue,{children:[e.jsx("div",{className:"text-2xl font-bold",children:c.toLocaleStr
11ing()}),e.jsx("p",{className:"text-xs text-muted-foreground",children:o?`In ${t.find(u=>u.value===o)?.label}`:"All recorded clicks"})]})]}),e.jsxs(ce,{children:[e.jsxs(ie,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(de,{className:"text-sm font-medium",children:"Tracked Buttons"}),e.jsx(Qt,{className:"h-4 w-4 text-muted-foreground"})]}),e.jsxs(ue,{children:[e.jsx("div",{className:"text-2xl font-bold",children:a}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Unique button identifiers"})]})]}),e.jsxs(ce,{children:[e.jsxs(ie,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(de,{className:"text-sm font-medium",children:"Top Button"}),e.jsx(Zt,{className:"h-4 w-4 text-muted-foreground"})]}),e.jsxs(ue,{children:[e.jsx("div",{className:"text-lg font-bold truncate",children:h?.buttonText||h?.buttonId||"N/A"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:h?`${h.total} clicks`:"No data yet"})]})]})]}),e.jsxs(ce,{children:[e.jsx(ie,{children:e.jsxs(de,{className:"flex items-center gap-2",children:[e.jsx(Xt,{className:"h-5 w-5"}),"Click Details by Button"]})}),e.jsx(ue,{children:s?e.jsx("div",{className:"flex justify-center py-8",children:e.jsx("div",{className:"animate-pulse text-muted-foreground",children:"Loading stats..."})}):N.length===0?e.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[e.jsx(Me,{className:"h-12 w-12 mx-auto mb-4 opacity-50"}),e.jsx("p",{children:"No click data recorded yet."}),e.jsx("p",{className:"text-sm mt-2",children:"Button clicks will appear here once visitors start interacting with your site."})]}):e.jsx("div",{className:"space-y-6",children:N.map(u=>e.jsxs("div",{className:"border rounded-lg p-4",children:[e.jsxs("div",{className:"flex justify-between items-center mb-3",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-brand-navy",children:u.buttonText||u.buttonId}),e.jsx("p",{className:"text-xs text-muted-foreground font-mono",children:u.buttonId})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("span",{className:"text-2xl font-bold text-brand-gold",children:u.total}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"total clicks"})]})]}),e.jsxs(Gt,{children:[e.jsx(qt,{children:e.jsxs(ke,{children:[e.jsx(Ce,{children:"Source Page"}),e.jsx(Ce,{children:"Destination"}),e.jsx(Ce,{className:"text-right",children:"Clicks"})]})}),e.jsx(Yt,{children:u.sources.map((f,m)=>e.jsxs(ke,{children:[e.jsx(be,{className:"font-mono text-sm",children:f.sourceUrl}),e.jsx(be,{className:"font-mono text-sm",children:f.destUrl||"-"}),e.jsx(be,{className:"text-right font-semibold",children:f.count})]},m))})]})]},u.buttonId))})})]})]})})}export{rn as default};

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.