PageSourceSearch

https://tradervoice.ai/assets/index-CGT8MYp2.js

js tradervoice.ai collected 2026-10-05 14:39:25 UTC 5,761 bytes, 1 lines download raw bytes

1import{r as s,j as p}from"./client-DKyGNQMe.js";function A(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function M(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function P(...e){return t=>e.forEach(r=>M(r,t))}function B(...e){return s.useCallback(P(...e),e)}function T(e,t=[]){let r=[];function o(c,i){const u=s.createContext(i),a=r.length;r=[...r,i];const l=f=>{var m;const{scope:d,children:v,...S}=f,h=((m=d==null?void 0:d[e])==null?void 0:m[a])||u,C=s.useMemo(()=>S,Object.values(S));return p.jsx(h.Provider,{value:C,children:v})};l.displayName=c+"Provider";function b(f,d){var h;const v=((h=d==null?void 0:d[e])==null?void 0:h[a])||u,S=s.useContext(v);if(S)return S;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${c}\``)}return[l,b]}const n=()=>{const c=r.map(i=>s.createContext(i));return function(u){const a=(u==null?void 0:u[e])||c;return s.useMemo(()=>({[`__scope${e}`]:{...u,[e]:a}}),[u,a])}};return n.scopeName=e,[o,W(n,...t)]}function W(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(c){const i=o.reduce((u,{useScope:a,scopeName:l})=>{const f=a(c)[`__scope${l}`];return{...u,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function g(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[])}function $({prop:e,defaultProp:t,onChange:r=()=>{}}){const[o,n]=V({defaultProp:t,onChange:r}),c=e!==void 0,i=c?e:o,u=g(r),a=s.useCallback(l=>{if(c){const f=typeof l=="function"?l(e):l;f!==e&&u(f)}else n(l)},[c,e,n,u]);return[i,a]}function V({defaultProp:e,onChange:t}){const r=s.useState(e),[o]=r,n=s.useRef(o),c=g(t);return s.useEffect(()=>{n.current!==o&&(c(o),n.current=o)},[o,n,c]),r}function D(e){const t=s.useRef({value:e,previous:e});return s.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var I=globalThis!=null&&globalThis.document?s.useLayoutEffect:()=>{};function L(e){const[t,r]=s.useState(void 0);return I(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const c=n[0];let i,u;if("borderBoxSize"in c){const a=c.borderBoxSize,l=Array.isArray(a)?a[0]:a;i=l.inlineSize,u=l.blockSize}else i=e.offsetWidth,u=e.offsetHeight;r({width:i,height:u})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else r(void 0)},[e]),t}var R=s.forwardRef((e,t)=>{const{children:r,...o}=e,n=s.Children.toArray(r),c=n.find(q);if(c){const i=c.props.children,u=n.map(a=>a===c?s.Children.count(i)>1?s.Children.only(null):s.isValidElement(i)?i.props.children:null:a);return p.jsx(y,{...o,ref:t,children:s.isValidElement(i)?s.cloneElement(i,void 0,u):null})}return p.jsx(y,{...o,ref:t,children:r})});R.displayName="Slot";var y=s.forwardRef((e,t)=>{const{children:r,...o}=e;if(s.isValidElement(r)){const n=H(r);return s.cloneElement(r,{...F(o,r.props),ref:t?P(t,n):n})}return s.Children.count(r)>1?s.Children.only(null):null});y.displayName="SlotClone";var U=({children:e})=>p.jsx(p.Fragment,{children:e});function q(e){return s.isValidElement(e)&&e.type===U}function F(e,t){const r={...t};for(const o in t){const n=e[o],c=t[o];/^on[A-Z]/.test(o)?n&&c?r[o]=(...u)=>{c(...u),n(...u)}:n&&(r[o]=n):o==="style"?r[o]={...n,...c}:o==="className"&&(r[o]=[n,c].filter(Boolean).join(" "))}return{...e,...r}}function H(e){var o,n;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var X=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],k=X.reduce((e,t)=>{const r=s.forwardRef((o,n)=>{const{asChild:c,...i}=o,u=c?R:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(u,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),w="Switch",[Z,Y]=T(w),[G,J]=Z(w),E=s.forwardRef((e,t)=>
1{const{__scopeSwitch:r,name:o,checked:n,defaultChecked:c,required:i,disabled:u,value:a="on",onCheckedChange:l,form:b,...f}=e,[d,v]=s.useState(null),S=B(t,x=>v(x)),h=s.useRef(!1),C=d?b||!!d.closest("form"):!0,[m=!1,_]=$({prop:n,defaultProp:c,onChange:l});return p.jsxs(G,{scope:r,checked:m,disabled:u,children:[p.jsx(k.button,{type:"button",role:"switch","aria-checked":m,"aria-required":i,"data-state":N(m),"data-disabled":u?"":void 0,disabled:u,value:a,...f,ref:S,onClick:A(e.onClick,x=>{_(O=>!O),C&&(h.current=x.isPropagationStopped(),h.current||x.stopPropagation())})}),C&&p.jsx(K,{control:d,bubbles:!h.current,name:o,value:a,checked:m,required:i,disabled:u,form:b,style:{transform:"translateX(-100%)"}})]})});E.displayName=w;var j="SwitchThumb",z=s.forwardRef((e,t)=>{const{__scopeSwitch:r,...o}=e,n=J(j,r);return p.jsx(k.span,{"data-state":N(n.checked),"data-disabled":n.disabled?"":void 0,...o,ref:t})});z.displayName=j;var K=e=>{const{control:t,checked:r,bubbles:o=!0,...n}=e,c=s.useRef(null),i=D(r),u=L(t);return s.useEffect(()=>{const a=c.current,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"checked").set;if(i!==r&&f){const d=new Event("click",{bubbles:o});f.call(a,r),a.dispatchEvent(d)}},[i,r,o]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...n,tabIndex:-1,ref:c,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function N(e){return e?"checked":"unchecked"}var ee=E,te=z;export{ee as R,te as T};

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.