PageSourceSearch

https://www.skillihire.com/assets/index-DBJC-V3p.js

js skillihire.com collected 2026-09-24 14:53:08 UTC 5,227 bytes, 5 lines download raw bytes

1import{aa as B,r as i,ab as R,j as s,ac as D,ad as p,ae as h,bg as H,bf as V,bh as q,bi as K,bj as U,by as Y,ah as Z,bp as C,bm as z,bn as J}from"./index-C6--jTPa.js";var x="Dialog",[y,ce]=B(x),[Q,u]=y(x),N=e=>{const{__scopeDialog:o,children:r,open:a,defaultOpen:n,onOpenChange:t,modal:c=!0}=e,l=i.useRef(null),d=i.useRef(null),[f,m]=Z({prop:a,defaultProp:n??!1,onChange:t,caller:x});return s.jsx(Q,{scope:o,triggerRef:l,contentRef:d,contentId:C(),titleId:C(),descriptionId:C(),open:f,onOpenChange:m,onOpenToggle:i.useCallback(()=>m($=>!$),[m]),modal:c,children:r})};N.displayName=x;var O="DialogTrigger",P=i.forwardRef((e,o)=>{const{__scopeDialog:r,...a}=e,n=u(O,r),t=R(o,n.triggerRef);return s.jsx(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":b(n.open),...a,ref:t,onClick:p(e.onClick,n.onOpenToggle)})});P.displayName=O;var _="DialogPortal",[X,I]=y(_,{forceMount:void 0}),j=e=>{const{__scopeDialog:o,forceMount:r,children:a,container:n}=e,t=u(_,o);return s.jsx(X,{scope:o,forceMount:r,children:i.Children.map(a,c=>s.jsx(h,{present:r||t.open,children:s.jsx(z,{asChild:!0,container:n,children:c})}))})};j.displayName=_;var v="DialogOverlay",A=i.forwardRef((e,o)=>{const r=I(v,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,t=u(v,e.__scopeDialog);return t.modal?s.jsx(h,{present:a||t.open,children:s.jsx(te,{...n,ref:o})}):null});A.displayName=v;var ee=J("DialogOverlay.RemoveScroll"),te=i.forwardRef((e,o)=>{const{__scopeDialog:r,...a}=e,n=u(v,r);return s.jsx(H,{as:ee,allowPinchZoom:!0,shards:[n.contentRef],children:s.jsx(D.div,{"data-state":b(n.open),...a,ref:o,style:{pointerEvents:"auto",...a.style}})})}),g="DialogContent",T=i.forwardRef((e,o)=>{const r=I(g,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,t=u(g,e.__scopeDialog);return s.jsx(h,{present:a||t.open,children:t.modal?s.jsx(oe,{...n,ref:o}):s.jsx(ne,{...n,ref:o})})});T.displayName=g;var oe=i.forwardRef((e,o)=>{const r=u(g,e.__scopeDialog),a=i.useRef(null),n=R(o,r.contentRef,a);return i.useEffect(()=>{const t=a.current;if(t)return V(t)},[]),s.jsx(M,{...e,ref:n,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p(e.onCloseAutoFocus,t=>{var c;t.preventDefault(),(c=r.triggerRef.current)==null||c.focus()}),onPointerDownOutside:p(e.onPointerDownOutside,t=>{const c=t.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&t.preventDefault()}),onFocusOutside:p(e.onFocusOutside,t=>t.preventDefault())})}),ne=i.forwardRef((e,o)=>{const r=u(g,e.__scopeDialog),a=i.useRef(!1),n=i.useRef(!1);return s.jsx(M,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var c,l;(c=e.onCloseAutoFocus)==null||c.call(e,t),t.defaultPrevented||(a.current||(l=r.triggerRef.current)==null||l.focus(),t.preventDefault()),a.current=!1,n.current=!1},onInteractOutside:t=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,t),t.defaultPrevented||(a.current=!0,t.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const c=t.target;((f=r.triggerRef.current)==null?void 0:f.contains(c))&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&n.current&&t.preventDefault()}})}),M=i.forwardRef((e,o)=>{const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:n,onCloseAutoFocus:t,...c}=e,l=u(g,r),d=i.useRef(null),f=R(o,d);return q(),s.jsxs(s.Fragment,{children:[s.jsx(K,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:n,onUnmountAutoFocus:t,children:s.jsx(U,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":b(l.open),...c,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(re,{titleId:l.titleId}),s.jsx(se,{contentRef:d,descriptionId:l.descriptionId})]})]})}),E="DialogTitle",w=i.forwardRef((e,o)=>{const{__scopeDialog:r,...a}=e,n=u(E,r);return s.jsx(D.h2,{id:n.titleId,...a,ref:o})});w.displayName=E;var F="DialogDescription",S=i.forwardRef((e,o)=>{const{__scopeDialog:r,...a}=e,n=u(F,r);return s.jsx(D.p,{id:n.descriptionId,...a,ref:o})});S.displayName=F;var W="DialogClose",k=i.forwardRef((e,o)=>{const{__scopeDialog:r,...a}=e,n=u(W,r);return s.jsx(D.button,{type:"button",...a,ref:o,onClick:p(e.onClick,()=>n.onOpenChange(!1))})});k.displayName=W;function b(e){return e?"open":"closed"}
1var G="DialogTitleWarning",[le,L]=Y(G,{contentName:g,titleName:E,docsSlug:"dialog"}),re=({titleId:e})=>{const o=L(G),r=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
2
3If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
4
5For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},ae="DialogDescriptionWarning",se=({contentRef:e,descriptionId:o})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${L(ae).contentName}}.`;return i.useEffect(()=>{var t;const n=(t=e.current)==null?void 0:t.getAttribute("aria-describedby");o&&n&&(document.getElementById(o)||console.warn(a))},[a,e,o]),null},ue=N,de=P,ge=j,fe=A,pe=T,De=w,ve=S,xe=k;export{pe as C,ve as D,fe as O,ge as P,ue as R,De as T,le as W,xe as a,de as b,ce as c};

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.