PageSourceSearch

https://horizoncrm.ca/_assets/index-ChVhUks9.js

js horizoncrm.ca collected 2026-10-02 01:19:17 UTC 9,903 bytes, 1 lines download raw bytes

vendor: 6,032 bytes, line 1
1import{r as c,j as b,dQ as F}from"./vendor-QOkwwy6v.js";function _(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function M(...e){return t=>{let n=!1;const s=e.map(r=>{const o=_(r,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let r=0;r<s.length;r++){const o=s[r];typeof o=="function"?o():_(e[r],null)}}}}function P(...e){return c.useCallback(M(...e),e)}function H(e,t=[]){let n=[];function s(o,a){const i=c.createContext(a),u=n.length;n=[...n,a];const l=d=>{const{scope:p,children:m,...h}=d,y=p?.[e]?.[u]||i,x=c.useMemo(()=>h,Object.values(h));return b.jsx(y.Provider,{value:x,children:m})};l.displayName=o+"Provider";function f(d,p){const m=p?.[e]?.[u]||i,h=c.useContext(m);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${o}\``)}return[l,f]}const r=()=>{const o=n.map(a=>c.createContext(a));return function(i){const u=i?.[e]||o;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return r.scopeName=e,[s,V(r,...t)]}function V(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(o){const a=s.reduce((i,{useScope:u,scopeName:l})=>{const d=u(o)[`__scope${l}`];return{...i,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function O(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var E=globalThis?.document?c.useLayoutEffect:()=>{},q=F[" useInsertionEffect ".trim().toString()]||E;function G({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[r,o,a]=K({defaultProp:t,onChange:n}),i=e!==void 0,u=i?e:r;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const d=f.current;d!==i&&console.warn(`${s} is changing from ${d?"controlled":"uncontrolled"} to ${i?"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.`),f.current=i},[i,s])}const l=c.useCallback(f=>{if(i){const d=X(f)?f(e):f;d!==e&&a.current?.(d)}else o(f)},[i,e,o,a]);return[u,l]}function K({defaultProp:e,onChange:t}){const[n,s]=c.useState(e),r=c.useRef(n),o=c.useRef(t);return q(()=>{o.current=t},[t]),c.useEffect(()=>{r.current!==n&&(o.current?.(n),r.current=n)},[n,r]),[n,s,o]}function X(e){return typeof e=="function"}function Q(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Z(e){const[t,n]=c.useState(void 0);return E(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const o=r[0];let a,i;if("borderBoxSize"in o){const u=o.borderBoxSize,l=Array.isArray(u)?u[0]:u;a=l.inlineSize,i=l.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}function J(e,t){return c.useReducer((n,s)=>t[n][s]??n,e)}var T=e=>{const{present:t,children:n}=e,s=Y(t),r=typeof n=="function"?n({present:s.isPresent}):c.Children.only(n),o=P(s.ref,ee(r));return typeof n=="function"||s.isPresent?c.cloneElement(r,{ref:o}):null};T.displayName="Presence";function Y(e){const[t,n]=c.useState(),s=c.useRef(null),r=c.useRef(e),o=c.useRef("none"),a=e?"mounted":"unmounted",[i,u]=J(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const l=S(s.current);o.current=i==="mounted"?l:"none"},[i]),E(()=>{const l=s.current,f=r.current;if(f!==e){const p=o.current,m=S(l);e?u("MOUNT"):m==="none"||l?.display==="none"?u("UNMOUNT"):u(f&&p!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),E(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,d=m=>{const y=S(s.current).includes(CSS.escape(m.animationName));if(m.target===t&&y&&(u("ANIMATION_END"),!r.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},p=m=>{m.target===t&&(o.current=S(s.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:c.useCallback(l=>{s.current=l?getComputedStyle(l):null,n(l)},[])}}function S(e){return e?.animationName||"none"}function ee(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 te(e){const t=ne(e),n=c.forwardRef((s,r)=>{const{children:o,...a}=s,i=c.Children.toArray(o),u=i.find(oe);if(u){const l=u.props.children,f=i.map(d=>d===u?c.Children.count(l)>1?c.Children.only(null):c.isValidElement(l)?l.props.children:null:d);return b.jsx(t,{...a,ref:r,children:c.isValidElement(l)?c.cloneElement(l,void 0,f):null})}return b.jsx(t,{...a,ref:r,children:o})});return n.displayName=`${e}.Slot`,n}function ne(e){const t=c.forwardRef((n,s)=>{const{children:r,...o}=n;if(c.isValidElement(r)){const a=ce(r),i=se(o,r.props);return r.type!==c.Fragment&&(i.ref=s?M(s,a):a),c.cloneElement(r,i)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var re=Symbol("radix.slottable");function oe(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===re}function se(e,t){const n={...t};for(const s in t){const r=e[s],o=t[s];/^on[A-Z]/.test(s)?r&&o?n[s]=(...i)=>{const u=o(...i);return r(...i),u}:r&&(n[s]=r):s==="style"?n[s]={...r,...o}
vendor: 3,871 bytes, line 1
1:s==="className"&&(n[s]=[r,o].filter(Boolean).join(" "))}return{...e,...n}}function ce(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 ie=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],w=ie.reduce((e,t)=>{const n=te(`Primitive.${t}`),s=c.forwardRef((r,o)=>{const{asChild:a,...i}=r,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(u,{...i,ref:o})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),N="Checkbox",[ue]=H(N),[ae,A]=ue(N);function le(e){const{__scopeCheckbox:t,checked:n,children:s,defaultChecked:r,disabled:o,form:a,name:i,onCheckedChange:u,required:l,value:f="on",internal_do_not_use_render:d}=e,[p,m]=G({prop:n,defaultProp:r??!1,onChange:u,caller:N}),[h,y]=c.useState(null),[x,C]=c.useState(null),v=c.useRef(!1),R=h?!!a||!!h.closest("form"):!0,k={checked:p,disabled:o,setChecked:m,control:h,setControl:y,name:i,form:a,value:f,hasConsumerStoppedPropagationRef:v,required:l,defaultChecked:g(r)?!1:r,isFormControl:R,bubbleInput:x,setBubbleInput:C};return b.jsx(ae,{scope:t,...k,children:pe(d)?d(k):s})}var j="CheckboxTrigger",D=c.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...s},r)=>{const{control:o,value:a,disabled:i,checked:u,required:l,setControl:f,setChecked:d,hasConsumerStoppedPropagationRef:p,isFormControl:m,bubbleInput:h}=A(j,e),y=P(r,f),x=c.useRef(u);return c.useEffect(()=>{const C=o?.form;if(C){const v=()=>d(x.current);return C.addEventListener("reset",v),()=>C.removeEventListener("reset",v)}},[o,d]),b.jsx(w.button,{type:"button",role:"checkbox","aria-checked":g(u)?"mixed":u,"aria-required":l,"data-state":B(u),"data-disabled":i?"":void 0,disabled:i,value:a,...s,ref:y,onKeyDown:O(t,C=>{C.key==="Enter"&&C.preventDefault()}),onClick:O(n,C=>{d(v=>g(v)?!0:!v),h&&m&&(p.current=C.isPropagationStopped(),p.current||C.stopPropagation())})})});D.displayName=j;var de=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:s,checked:r,defaultChecked:o,required:a,disabled:i,value:u,onCheckedChange:l,form:f,...d}=e;return b.jsx(le,{__scopeCheckbox:n,checked:r,defaultChecked:o,disabled:i,required:a,onCheckedChange:l,name:s,form:f,value:u,internal_do_not_use_render:({isFormControl:p})=>b.jsxs(b.Fragment,{children:[b.jsx(D,{...d,ref:t,__scopeCheckbox:n}),p&&b.jsx($,{__scopeCheckbox:n})]})})});de.displayName=N;var U="CheckboxIndicator",fe=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:s,...r}=e,o=A(U,n);return b.jsx(T,{present:s||g(o.checked)||o.checked===!0,children:b.jsx(w.span,{"data-state":B(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});fe.displayName=U;var L="CheckboxBubbleInput",$=c.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:s,hasConsumerStoppedPropagationRef:r,checked:o,defaultChecked:a,required:i,disabled:u,name:l,value:f,form:d,bubbleInput:p,setBubbleInput:m}=A(L,e),h=P(n,m),y=Q(o),x=Z(s);c.useEffect(()=>{const v=p;if(!v)return;const R=window.HTMLInputElement.prototype,I=Object.getOwnPropertyDescriptor(R,"checked").set,W=!r.current;if(y!==o&&I){const z=new Event("click",{bubbles:W});v.indeterminate=g(o),I.call(v,g(o)?!1:o),v.dispatchEvent(z)}},[p,y,o,r]);const C=c.useRef(g(o)?!1:o);return b.jsx(w.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??C.current,required:i,disabled:u,name:l,value:f,form:d,...t,tabIndex:-1,ref:h,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});$.displayName=L;function pe(e){return typeof e=="function"}function g(e){return e==="indeterminate"}function B(e){return g(e)?"indeterminate":e?"checked":"unchecked"}export{de as C,fe as a};

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.