PageSourceSearch

https://tallo.com/talent/assets/index-CkdR9Gu8.js

js tallo.com collected 2026-09-24 09:55:36 UTC 7,539 bytes, 1 lines download raw bytes

1import{a as o,e as z,t as $}from"./react-router-BaecbKjl.js";import{u as D,P as L,d as K}from"./index-QzbjxM1T.js";import{j as w}from"./jsx-runtime-BXHdZtXm.js";function R(t,e,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}var P=globalThis!=null&&globalThis.document?o.useLayoutEffect:()=>{},V=z[" useInsertionEffect ".trim().toString()]||P;function de({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[s,i,d]=X({defaultProp:e,onChange:n}),c=t!==void 0,m=c?t:s;{const u=o.useRef(t!==void 0);o.useEffect(()=>{const v=u.current;v!==c&&console.warn(`${r} is changing from ${v?"controlled":"uncontrolled"} to ${c?"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.`),u.current=c},[c,r])}const a=o.useCallback(u=>{var v;if(c){const f=Y(u)?u(t):u;f!==t&&((v=d.current)==null||v.call(d,f))}else i(u)},[c,t,i,d]);return[m,a]}function X({defaultProp:t,onChange:e}){const[n,r]=o.useState(t),s=o.useRef(n),i=o.useRef(e);return V(()=>{i.current=e},[e]),o.useEffect(()=>{var d;s.current!==n&&((d=i.current)==null||d.call(i,n),s.current=n)},[n,s]),[n,r,i]}function Y(t){return typeof t=="function"}function q(t,e){return o.useReducer((n,r)=>e[n][r]??n,t)}var G=t=>{const{present:e,children:n}=t,r=J(e),s=typeof n=="function"?n({present:r.isPresent}):o.Children.only(n),i=D(r.ref,Q(s));return typeof n=="function"||r.isPresent?o.cloneElement(s,{ref:i}):null};G.displayName="Presence";function J(t){const[e,n]=o.useState(),r=o.useRef(null),s=o.useRef(t),i=o.useRef("none"),d=t?"mounted":"unmounted",[c,m]=q(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect(()=>{const a=y(r.current);i.current=c==="mounted"?a:"none"},[c]),P(()=>{const a=r.current,u=s.current;if(u!==t){const f=i.current,E=y(a);t?m("MOUNT"):E==="none"||(a==null?void 0:a.display)==="none"?m("UNMOUNT"):m(u&&f!==E?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,m]),P(()=>{if(e){let a;const u=e.ownerDocument.defaultView??window,v=E=>{const p=y(r.current).includes(CSS.escape(E.animationName));if(E.target===e&&p&&(m("ANIMATION_END"),!s.current)){const N=e.style.animationFillMode;e.style.animationFillMode="forwards",a=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=N)})}},f=E=>{E.target===e&&(i.current=y(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",v),e.addEventListener("animationend",v),()=>{u.clearTimeout(a),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",v),e.removeEventListener("animationend",v)}}else m("ANIMATION_END")},[e,m]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:o.useCallback(a=>{r.current=a?getComputedStyle(a):null,n(a)},[])}}function y(t){return(t==null?void 0:t.animationName)||"none"}function Q(t){var r,s;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function C(t){const e=o.useRef(t);return o.useEffect(()=>{e.current=t}),o.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function Z(t,e=globalThis==null?void 0:globalThis.document){const n=C(t);o.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var H="DismissableLayer",g="dismissableLayer.update",ee="dismissableLayer.pointerDownOutside",te="dismissableLayer.focusOutside",I,x=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),F=o.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:d,onDismiss:c,...m}=t,a=o.useContext(x),[u,v]=o.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=o.useState({}),b=D(e,l=>v(l)),p=Array.from(a.layers),[N]=[...a.layersWithOutsidePointerEventsDisabled].slice(-1),_=p.indexOf(N),A=u?p.indexOf(u):-1,k=a.layersWithOutsidePointerEventsDisabled.size>0,T=A>=_,j=re(l=>{const h=l.target,M=[...a.branches].some(O=>O.contains(h));!T||M||(s==null||s(l),d==null||d(l),l.defaultPrevented||c==null||c())},f),S=se(l=>{const h=l.target;[...a.branches].some(O=>O.contains(h))||(i==null||i(l),d==null||d(l),l.defaultPrevented||c==null||c())},f);return Z(l=>{A===a.layers.size-1&&(r==null||r(l),!l.defaultPrevented&&c&&(l.preventDefault(),c()))},f),o.useEffect(()=>{if(u)return n&&(a.layersWithOutsidePointerEventsDisabled.size===0&&(I=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),a.layersWithOutsidePointerEventsDisabled.add(u)),a.layers.add(u),U(),()=>{n&&a.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=I)}},[u,f,n,a]),o.useEffect(()=>()=>{u&&(a.layers.delete(u),a.layersWithOutsidePointerEventsDisabled.delete(u),U())},[u,a]),o.useEffect(()=>{const l=()=>E({});return document.addEventListener(g,l),()=>document.removeEventListener(g,l)},[]),w.jsx(L.div,{...m,ref:b,style:{pointerEvents:k?T?"auto":"none":void 0,...t.style},onFocusCapture:R(t.onFocusCapture,S.onFocusCapture),onBlurCapture:R(t.onBlurCapture,S.onBlurCapture),onPointerDownCapture:R(t.onPointerDownCapture,j.onPointerDownCapture)})});F.displayName=H;var ne="DismissableLayerBranch",W=o.forwardRef((t,e)=>{const n=o.useContext(x),r=o.useRef(null),s=D(e,r);return o.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(L.div,{...t,ref:s})});W.displayName=ne;function re(t,e=globalThis==null?void 0:globalThis.document){const n=C(t),r=o.useRef(!1),s=o.useRef(()=>{});return o.useEffect(()=>{const i=c=>{if(c.target&&!r.current){let m=function(){B(ee,n,a,{discrete:!0})};const a={originalEvent:c};
1c.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=m,e.addEventListener("click",s.current,{once:!0})):m()}else e.removeEventListener("click",s.current);r.current=!1},d=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(d),e.removeEventListener("pointerdown",i),e.removeEventListener("click",s.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function se(t,e=globalThis==null?void 0:globalThis.document){const n=C(t),r=o.useRef(!1);return o.useEffect(()=>{const s=i=>{i.target&&!r.current&&B(te,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function U(){const t=new CustomEvent(g);document.dispatchEvent(t)}function B(t,e,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?K(s,i):s.dispatchEvent(i)}var le=F,fe=W,oe="Portal",ie=o.forwardRef((t,e)=>{var c;const{container:n,...r}=t,[s,i]=o.useState(!1);P(()=>i(!0),[]);const d=n||s&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return d?$.createPortal(w.jsx(L.div,{...r,ref:e}),d):null});ie.displayName=oe;export{fe as B,F as D,G as P,le as R,ie as a,C as b,R as c,P as d,W as e,de as u};

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.