PageSourceSearch

https://careerplatform.io/assets/dialog-DwvLQ4w4.js

js careerplatform.io collected 2026-10-02 01:57:26 UTC 6,167 bytes, 1 lines download raw bytes

1import{c as P,r as n,j as t,X as U,P as u}from"./index-P6gp-aZt.js";import{R as V,P as W,C as _,a as Z,T as I,D as T,O,b as Q}from"./index-CIfkDh8u.js";const K=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],tt=P("maximize-2",K);const et=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],at=P("minimize-2",et),ft=V,pt=Q,st=W,H=n.forwardRef(({className:e,...a},s)=>t.jsx(O,{ref:s,className:u("fixed inset-0 z-50 bg-slate-900/40 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...a}));H.displayName=O.displayName;const L="dlg-size:";function ot(e){if(!e||typeof window>"u")return null;try{const a=window.localStorage.getItem(L+e);if(!a)return null;const s=JSON.parse(a);if(typeof s?.w=="number"&&typeof s?.h=="number")return s}catch{}return null}function i({dir:e,onStart:a}){const s="absolute z-10 touch-none",m={n:"top-0 left-2 right-2 h-1.5 -translate-y-1/2 cursor-ns-resize",s:"bottom-0 left-2 right-2 h-1.5 translate-y-1/2 cursor-ns-resize",e:"top-2 bottom-2 right-0 w-1.5 translate-x-1/2 cursor-ew-resize",w:"top-2 bottom-2 left-0 w-1.5 -translate-x-1/2 cursor-ew-resize",ne:"top-0 right-0 h-3 w-3 translate-x-1/3 -translate-y-1/3 cursor-nesw-resize",nw:"top-0 left-0 h-3 w-3 -translate-x-1/3 -translate-y-1/3 cursor-nwse-resize",se:"bottom-0 right-0 h-3 w-3 translate-x-1/3 translate-y-1/3 cursor-nwse-resize",sw:"bottom-0 left-0 h-3 w-3 -translate-x-1/3 translate-y-1/3 cursor-nesw-resize"};return t.jsx("div",{role:"separator","aria-orientation":e==="n"||e==="s"?"horizontal":"vertical","aria-label":`Resize ${e}`,onPointerDown:l=>a(e,l),className:u(s,m[e])})}const nt=n.forwardRef(({className:e,children:a,resizable:s=!0,resizeKey:m,minWidth:l=320,minHeight:p=200,style:v,...X},F)=>{const[c,h]=n.useState(()=>ot(m)),d=n.useRef(c),N=n.useRef(null),[f,S]=n.useState(!1);n.useEffect(()=>{d.current=c},[c]);const Y=n.useCallback(()=>{if(!(typeof window>"u"))if(f){const o=N.current;h(o),d.current=o,S(!1)}else{N.current=d.current;const o={w:Math.max(l,Math.floor(window.innerWidth*.98)),h:Math.max(p,Math.floor(window.innerHeight*.98))};h(o),d.current=o,S(!0)}},[f,l,p]),r=n.useCallback((o,x)=>{if(!s)return;x.preventDefault(),x.stopPropagation();const M=x.currentTarget.parentElement;if(!M)return;const R=M.getBoundingClientRect(),$=x.clientX,q=x.clientY,y=R.width,j=R.height,A=Math.max(l,window.innerWidth-16),B=Math.max(p,window.innerHeight-16),G=(g,w)=>({w:Math.min(A,Math.max(l,g)),h:Math.min(B,Math.max(p,w))}),D=g=>{const w=g.clientX-$,C=g.clientY-q;let z=y,b=j;o.includes("e")&&(z=y+w*2),o.includes("w")&&(z=y-w*2),o.includes("s")&&(b=j+C*2),o.includes("n")&&(b=j-C*2);const E=G(z,b);d.current=E,h(E)},k=()=>{if(window.removeEventListener("pointermove",D),window.removeEventListener("pointerup",k),document.body.style.userSelect="",m&&d.current)try{window.localStorage.setItem(L+m,JSON.stringify(d.current))}catch{}};document.body.style.userSelect="none",window.addEventListener("pointermove",D),window.addEventListener("pointerup",k)},[s,m,l,p]),J=c?{...v,width:c.w,height:c.h,maxWidth:"98vw",maxHeight:"98vh"}:v;return t.jsxs(st,{children:[t.jsx(H,{}),t.jsxs(_,{ref:F,style:J,className:u("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-slate-200 bg-white text-slate-900 p-6 shadow-lg duration-200 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 sm:rounded-lg",c&&"grid-rows-[auto_1fr_auto] overflow-hidden",e),...X,children:[a,s&&t.jsxs("button",{type:"button",onClick:Y,"aria-label":f?"Restore dialog size":"Maximize dialog",title:f?"Restore size":"Maximize",className:"absolute right-11 top-4 z-20 rounded-sm p-0.5 opacity-70 ring-offset-background cursor-pointer transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",children:[f?t.jsx(at,{className:"h-4 w-4"}):t.jsx(tt,{className:"h-4 w-4"}),t.jsx("span",{className:"sr-only",children:f?"Restore":"Maximize"})]}),t.jsxs(Z,{className:"absolute right-4 top-4 z-20 rounded-sm opacity-70 ring-offset-background cursor-pointer transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[t.jsx(U,{className:"h-4 w-4"}),t.jsx("span",{className:"sr-only",children:"Close"})]}),s&&t.jsxs(t.Fragment,{children:[t.jsx(i,{dir:"n",onStart:r}),t.jsx(i,{dir:"s",onStart:r}),t.jsx(i,{dir:"e",onStart:r}),t.jsx(i,{dir:"w",onStart:r}),t.jsx(i,{dir:"ne",onStart:r}),t.jsx(i,{dir:"nw",onStart:r}),t.jsx(i,{dir:"se",onStart:r}),t.jsx(i,{dir:"sw",onStart:r}),t.jsx("div",{"aria-hidden":"true",onPointerDown:o=>r("se",o),title:"Drag to resize",className:"absolute bottom-0 right-0 z-10 flex h-4 w-4 cursor-nwse-resize items-end justify-end touch-none text-slate-400 hover:text-slate-600",style:{backgroundImage:"linear-gradient(135deg, transparent 0 55%, currentColor 55% 60%, transparent 60% 70%, currentColor 70% 75%, transparent 75% 85%, currentColor 85% 90%, transparent 90% 100%)"}})]})]})]})});nt.displayName=_.displayName;const rt=({className:e,...a})=>t.jsx("div",{className:u("flex flex-col space-y-1.5 text-center sm:text-left",e),...a});rt.displayName="DialogHeader";const it=({className:e,...a})=>t.jsx("div",{className:u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...a});it.displayName="DialogFooter";const lt=n.forwardRef(({className:e,...a},s)=>t.jsx(I,{ref:s,className:u("text-lg font-semibold leading-none tracking-tight",e),...a}));lt.displayName=I.displayName;const ct=n.forwardRef(({className:e,...a},s)=>t.jsx(T,{ref:s,className:u("text-sm text-muted-foreground",e),...a}));
1ct.displayName=T.displayName;export{ft as D,nt as a,rt as b,lt as c,ct as d,it as e,pt as f};

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.