PageSourceSearch

https://halcyon-placement-app.vercel.app/static/js/1262.35855657.chunk.js

js halcyon-placement-app.vercel.app collected 2026-10-03 07:03:56 UTC 26,206 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkhalcyon_placement_app=globalThis.webpackChunkhalcyon_placement_app||[]).push([[1262],{1021(e,t,i){i.d(t,{m3:()=>r});var a=i(65043),n=i(70579);function r(e){if(null==e)return"";if("string"===typeof e)return e;if("number"===typeof e||"boolean"===typeof e)return String(e);if("object"===typeof e&&!Array.isArray(e)&&e.target&&"object"===typeof e.target){const t=e.target.value;return null==t||"object"===typeof t?"":String(t)}return""}const l=(0,a.memo)(function(e){var t;let{label:i,options:r,value:l,onChange:s,width:o=160,placeholder:d,searchable:c=!1,disabled:p=!1,className:u="",buttonStyle:m}=e;const[g,x]=(0,a.useState)(!1),[y,h]=(0,a.useState)(""),f=(0,a.useRef)(null);(0,a.useEffect)(()=>{const e=e=>{f.current&&!f.current.contains(e.target)&&(x(!1),h(""))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);const b=(0,a.useMemo)(()=>r.map(e=>"string"===typeof e?{value:e,label:e}:e),[r]),v=(null===(t=b.find(e=>String(e.value)===String(l)))||void 0===t?void 0:t.label)||d||i||"Select...",j=""!==l&&void 0!==l&&null!==l,k=c&&y.trim()?b.filter(e=>String(e.label).toLowerCase().includes(y.trim().toLowerCase())):b,w=(0,a.useRef)(null),[S,_]=(0,a.useState)({top:0,left:0,width:0,maxH:300,openUp:!1});return(0,n.jsxs)("div",{ref:f,style:{position:"relative",minWidth:o},children:[(0,n.jsxs)("button",{ref:w,onClick:()=>{if(!p){if(!g&&w.current){const e=w.current.getBoundingClientRect(),t=300,i=window.innerHeight-e.bottom-8,a=e.top-8;if(i<Math.min(t,200)&&a>i){const i=Math.max(120,Math.min(t,a));_({top:e.top-4-i,left:e.left,width:e.width,maxH:i,openUp:!0})}else{const a=Math.max(120,Math.min(t,i));_({top:e.bottom+4,left:e.left,width:e.width,maxH:a,openUp:!1})}}g&&h(""),x(!g)}},disabled:p,className:u,style:{width:"100%",padding:"8px 12px",fontSize:13,textAlign:"left",cursor:p?"not-allowed":"pointer",background:"var(--surface)",border:"1px solid var(--border)",borderRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",color:j?"var(--text)":"var(--text-muted)",fontWeight:j?500:400,opacity:p?.6:1,...m||{}},children:[(0,n.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:v}),(0,n.jsx)("span",{style:{fontSize:10,color:"var(--text-faint)",transform:g?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s"},children:"\u25bc"})]}
1),g&&(0,n.jsxs)("div",{style:{position:"fixed",top:S.top,left:S.left,width:S.width,zIndex:9999,background:"var(--surface)",border:"1px solid var(--border)",borderRadius:8,boxShadow:"var(--shadow-dropdown)",maxHeight:S.maxH||300,overflow:"auto"},children:[c&&(0,n.jsx)("div",{style:{position:"sticky",top:0,padding:6,background:"var(--surface)",borderBottom:"1px solid var(--border-light, #e5e7eb)"},children:(0,n.jsx)("input",{autoFocus:!0,"aria-label":"Search options",value:y,onChange:e=>h(e.target.value),onClick:e=>e.stopPropagation(),placeholder:"Search\u2026",style:{width:"100%",padding:"6px 8px",fontSize:13,border:"1px solid var(--border)",borderRadius:6,boxSizing:"border-box",background:"var(--bg)",color:"var(--text)"}})}),d&&!y.trim()&&(0,n.jsx)("div",{onClick:()=>{s({target:{value:""}}),x(!1),h("")},style:{padding:"8px 12px",fontSize:13,cursor:"pointer",background:j?"transparent":"var(--bg-selected)",color:"var(--text-faint)",fontStyle:"italic"},onMouseEnter:e=>e.currentTarget.style.background="var(--bg-hover)",onMouseLeave:e=>e.currentTarget.style.background=j?"transparent":"var(--bg-selected)",children:d}),0===k.length&&(0,n.jsx)("div",{style:{padding:"8px 12px",fontSize:12,color:"var(--text-faint)",fontStyle:"italic"},children:"No matches"}),k.map(e=>{const t=String(e.value)===String(l);return(0,n.jsxs)("div",{onClick:()=>{s({target:{value:e.value}}),x(!1),h("")},style:{padding:"8px 12px",fontSize:13,cursor:"pointer",background:t?"var(--bg-selected)":"transparent",color:"var(--text-dark)",display:"flex",alignItems:"center",gap:8,fontWeight:t?600:400},onMouseEnter:e=>e.currentTarget.style.background="var(--bg-hover)",onMouseLeave:e=>e.currentTarget.style.background=t?"var(--bg-selected)":"transparent",children:[(0,n.jsx)("span",{style:{width:16,height:16,borderRadius:8,border:"1.5px solid var(--border)",display:"flex",alignItems:"center",justifyContent:"center",background:t?"var(--navy)":"var(--surface)"},children:t&&(0,n.jsx)("span",{style:{width:6,height:6,borderRadius:3,background:"#fff"}})}),e.label]},e.value)})]})]})}),s=(0,a.memo)(function(e){let{label:t="",options:i,selected:r,onChange:l,width:s=200}=e;const[o,d]=(0,a.useState)(!1),[c,p]=(0,a.useState)(""),u=(0,a.useRef)(null);(0,a.useEffect)(()=>{const e=e=>{u.current&&!u.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);const m=(0,a.useMemo)(()=>(Array.isArray(i)?i:[]).filter(e=>null!=e).map(e=>String(e)),[i]),g=(0,a.useMemo)(()=>r instanceof Set?r:Array.isArray(r)?new Set(r):new Set,[r]),x=(0,a.useMemo)(()=>c?m.filter(e=>e.toLowerCase().includes(c.toLowerCase())):m,[m,c]),y=0===g.size||g.size===m.length,h=y?t?`All ${t}`:"All":1===g.size?[...g][0]:t?`${g.size} ${t}`:`${g.size} selected`,f=(0,a.useRef)(null),[b,v]=(0,a.useState)({top:0,left:0,width:0,maxH:300,openUp:!1}),j=(0,a.useCallback)(e=>l(Array.from(e)),[l]),k=(0,a.useCallback)(()=>j(y?new Set:new Set(m)),[y,j,m]),w=(0,a.useCallback)(e=>{const t=new Set(g);t.has(e)?t.delete(e):t.add(e),j(t)},[g,j]);return(0,n.jsxs)("div",{ref:u,style:{position:"relative",minWidth:s},children:[(0,n.jsxs)("button",{ref:f,onClick:()=>{if(!o&&f.current){const e=f.current.getBoundingClientRect(),t=300,i=window.innerHeight-e.bottom-8,a=e.top-8;if(i<Math.min(t,200)&&a>i){const i=Math.max(140,Math.min(t,a));v({top:e.top-4-i,left:e.left,width:e.width,maxH:i,openUp:!0})}else{const a=Math.max(140,Math.min(t,i));v({top:e.bottom+4,left:e.left,width:e.width,maxH:a,openUp:!1})}}d(!o),p("")},style:{width:"100%",padding:"8px 12px",fontSize:13,textAlign:"left",cursor:"pointer",background:"var(--surface)",border:"1px solid var(--border)",borderRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",color:y?"var(--text-muted)":"var(--text)",fontWeight:y?400:500},children:[(0,n.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h}),(0,n.jsx)("span",{style:{fontSize:10,color:"var(--text-faint)",transform:o?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s"},children:"\u25bc"})]}
1),o&&(0,n.jsxs)("div",{style:{position:"fixed",top:b.top,left:b.left,width:b.width,zIndex:9999,background:"var(--surface)",border:"1px solid var(--border)",borderRadius:8,boxShadow:"var(--shadow-dropdown)",maxHeight:300,display:"flex",flexDirection:"column"},children:[m.length>6&&(0,n.jsx)("div",{style:{padding:"8px 8px 4px"},children:(0,n.jsx)("input",{placeholder:t?`Search ${t.toLowerCase()}...`:"Search...",value:c,onChange:e=>p(e.target.value),autoFocus:!0,style:{width:"100%",padding:"6px 10px",fontSize:12,border:"1px solid var(--border-light)",borderRadius:4,boxSizing:"border-box"}})}),(0,n.jsx)("div",{style:{padding:"4px 8px",borderBottom:"1px solid var(--border-lighter)",display:"flex",gap:8},children:(0,n.jsx)("button",{onClick:k,style:{fontSize:11,color:"var(--blue)",background:"none",border:"none",cursor:"pointer",padding:0},children:y?"Clear All":"Select All"})}),(0,n.jsxs)("div",{style:{overflowY:"auto",maxHeight:220},children:[x.map(e=>{const t=g.has(e)||0===g.size;return(0,n.jsxs)("div",{onClick:()=>w(e),style:{padding:"6px 12px",fontSize:12,cursor:"pointer",background:t&&g.size>0?"var(--bg-selected)":"transparent",color:"var(--text-dark)",display:"flex",alignItems:"center",gap:8},onMouseEnter:e=>e.currentTarget.style.background="var(--bg-hover)",onMouseLeave:e=>e.currentTarget.style.background=t&&g.size>0?"var(--bg-selected)":"transparent",children:[(0,n.jsx)("span",{style:{width:16,height:16,borderRadius:3,border:"1.5px solid var(--border)",display:"flex",alignItems:"center",justifyContent:"center",background:t&&g.size>0?"var(--navy)":"var(--surface)",color:"#fff",fontSize:11,fontWeight:700},children:t&&g.size>0?"\u2713":""}),e]},e)}),0===x.length&&(0,n.jsx)("div",{style:{padding:12,color:"var(--text-faint)",fontSize:12,textAlign:"center"},children:"No matches"})]})]})]})});i.d(t,["KF",0,s,"Z",0,l])},51262(e,t,i){i.r(t),i.d(t,{default:()=>x});var a=i(65043),n=i(63362),r=i(85843),l=i(93548),s=i(1021),o=i(65250),d=i(58720
1),c=i(13829),p=i(54887),u=i(89054),m=i(70579);const g="The credentialer portal is unmounted, so portal access cannot be granted or changed from here.";function x(){const{id:e}=(0,n.g)(),t=(0,n.Zp)(),{isAdmin:i,teamMember:x}=(0,l.It)();(0,u.rN)("Credentialer Account");const[_,C]=(0,a.useState)(!0),[z,O]=(0,a.useState)(null),[A,M]=(0,a.useState)(null),[R,N]=(0,a.useState)([]),[B,T]=(0,a.useState)([]),[F,L]=(0,a.useState)(""),[W,I]=(0,a.useState)(""),[E,D]=(0,a.useState)(!1),{flags:$}=(0,d.E_)(),H=!(0,d.x3)($),P=(0,a.useCallback)(async()=>{const[t,i,a]=await Promise.all([r.supabase.from("credentialer_users").select("id, email, contact_id, is_active, last_login_at, last_login_ip, created_at").eq("id",e).maybeSingle(),r.supabase.from("credentialer_facility_assignments").select("id, facility_id, granted_at, revoked_at, granted_by, revoked_by").eq("credentialer_id",e).order("granted_at",{ascending:!1}),r.supabase.from("facilities").select("id, facility_name, hospital_state").order("facility_name")]);if(!t.error&&t.data){if(O(t.data),N(i.data||[]),T(a.data||[]),t.data.contact_id){const{data:e}=await r.supabase.from("facility_contacts").select("first_name, last_name, title, phone, email").eq("id",t.data.contact_id).maybeSingle();M(e)}C(!1)}else C(!1)},[e]);(0,a.useEffect)(()=>{P()},[P]);const U=(0,a.useMemo)(()=>{const e={};return B.forEach(t=>{e[t.id]=t}),e},[B]),G=R.filter(e=>!e.revoked_at),q=R.filter(e=>e.revoked_at),K=new Set(G.map(e=>e.facility_id)),Y=B.filter(e=>!K.has(e.id));if(!i)return(0,m.jsx)("div",{style:h,children:(0,m.jsxs)("div",{style:{textAlign:"center",padding:"80px 0"},children:[(0,m.jsx)("h2",{className:"admin-panel-title",children:"Access Denied"}),(0,m.jsx)("p",{className:"admin-panel-desc",children:"This page is restricted to administrators."})]})});if(_)return(0,m.jsx)("div",{style:h,children:(0,m.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:80},children:(0,m.jsx)("span",{className:"spinner",style:{width:24,height:24}})})});if(!z)return(0,m.jsx)("div",{style:h,children:(0,m.jsxs)("div",{style:{padding:"24px 32px"},children:[(0,m.jsx)("button",{onClick:()=>t(-1),className:"btn-primary",style:{fontSize:13,padding:"8px 18px",marginBottom:24},children:"\u2190 Back"}),(0,m.jsxs)("div",{style:{textAlign:"center",padding:"60px 0"},children:[(0,m.jsx)("h2",{className:"admin-panel-title",children:"Not Found"}),(0,m.jsx)("p",{className:"admin-panel-desc",children:"Credentialer not found."})]})]})});const V=A?`${A.first_name||""} ${A.last_name||""}`.trim():null;return(0,m.jsx)("div",{style:h,children:(0,m.jsxs)("div",{style:{padding:"24px 32px",width:"100%",maxWidth:1920,margin:"0 auto"},children:[(0,m.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:24,flexWrap:"wrap",gap:12},children:[(0,m.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:16},children:[(0,m.jsx)("button",{onClick:()=>t(-1),className:"btn-primary",style:{fontSize:13,padding:"8px 18px"},children:"\u2190 Back"}),(0,m.jsxs)("div",{children:[(0,m.jsx)("h1",{className:"admin-panel-title",style:{margin:0},children:V||z.email}),(0,m.jsx)("p",{className:"admin-panel-desc",style:{margin:0},children:"Credentialer Portal Account"})]})]}),(0,m.jsx)("span",{style:(0,o.vR)(z.is_active?"var(--success)":"var(--error)",z.is_active?"var(--bg-success-subtle, #ecfdf5)":"var(--bg-error-subtle, #fef2f2)"),children:z.is_active?"Active":"Inactive"})]}),(0,m.jsx)(o.Wu,{message:F}),H&&(0,m.jsxs)("div",{style:{...o.mw,background:"var(--bg-warn-subtle)",borderColor:"var(--warning)"},children:[(0,m.jsxs)("div",{className:"tw-text-sm",style:{color:"var(--text)"},children:[(0,m.jsx)("strong",{style:{color:"var(--warning)"},children:"Read-only \u2014 the credentialer portal is unmounted."})," ","This account and its history stay visible, but access cannot be granted, revoked or re-activated from here. Granting a facility to an active account is what makes the portal start serving placements and candidate documents to an external user, so the controls are held shut while the portal has no front door."]}),(0,m.jsxs)("div",{className:"tw-text-sm tw-mt-2",style:{color:"var(--text-muted)"},children:["To re-open them, an administrator turns on ",(0,m.jsx)("strong",{children:"Credentialer Portal \u2014 Mounted"})," in Settings \u2192 Feature Flags. That switch has no admin bypass \u2014 while it is off it is off for everyone, administrators included."]})]}),(0,m.jsxs)("div",{style:o.mw,children:[(0,m.jsx)("h3",{style:f,children:"Profile"}),(0,m.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",gap:20},children:[(0,m.jsx)(y,{label:"Email",value:z.email}),(0,m.jsx)(y,{label:"Contact Name",value:V||"\u2014"}),(null===A||void 0===A?void 0:A.title)&&(0,m.jsx)(y,{label:"Title",value:A.title}),(null===A||void 0===A?void 0:A.phone)&&(0,m.jsx)(y,{label:"Phone",value:A.phone}),(0,m.jsx)(y,{label:"Last Login",value:z.last_login_at?(0,c.r6)(z.last_login_at):"Never"}),(0,m.jsx)(y,{label:"Account Created",value:(0,c.r6)(z.created_at)}),(0,m.jsx)(y,{label:"Status",value:(0,m.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,m.jsx)("span",{style:(0,o.vR)(z.is_active?"var(--success)":"var(--error)",z.is_active?"var(--bg-success-subtle, #ecfdf5)":"var(--bg-error-subtle, #fef2f2)"),children:z.is_active?"Active":"Inactive"}),(0,m.jsx)("button",{onClick:async()=>
1{if(!z||E)return;if(H)return void L(`Cannot change the account status. ${g}`);D(!0),L("");const{error:e}=await r.supabase.from("credentialer_users").update({is_active:!z.is_active}).eq("id",z.id);e?((0,p.N7)({tag:"CredentialerAdmin",message:"toggle credentialer active failed",error:e}),L("Failed to update status.")):(L(`Credentialer ${z.is_active?"deactivated":"activated"}.`),await P()),D(!1),setTimeout(()=>L(""),4e3)},disabled:E||H,title:H?g:void 0,"aria-disabled":H||void 0,style:H?w(S):S,children:z.is_active?"Deactivate":"Activate"})]})})]})]}),(0,m.jsxs)("div",{style:o.mw,children:[(0,m.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:16,flexWrap:"wrap",gap:12},children:(0,m.jsxs)("h3",{style:{...f,margin:0},children:["Facility Assignments",(0,m.jsx)("span",{style:{background:"var(--bg)",fontSize:12,fontWeight:700,padding:"2px 10px",borderRadius:10,marginLeft:8,color:"var(--text-muted)"},children:G.length})]})}),0===G.length?(0,m.jsx)("p",{style:{color:"var(--text-muted)",fontSize:14},children:"No active facility assignments."}):(0,m.jsx)("div",{style:{overflowX:"auto"},children:(0,m.jsxs)("table",{style:b,children:[(0,m.jsx)("thead",{children:(0,m.jsxs)("tr",{style:{borderBottom:"1px solid var(--border)"},children:[(0,m.jsx)("th",{style:v,children:"Facility"}),(0,m.jsx)("th",{style:v,children:"State"}),(0,m.jsx)("th",{style:v,children:"Granted"}),(0,m.jsx)("th",{style:{...v,textAlign:"right"},children:"Actions"})]})}),(0,m.jsx)("tbody",{children:G.map(e=>{const t=U[e.facility_id];return(0,m.jsxs)("tr",{style:{borderBottom:"1px solid var(--border)"},children:[(0,m.jsx)("td",{style:j,children:(null===t||void 0===t?void 0:t.facility_name)||`Facility #${e.facility_id}`}),(0,m.jsx)("td",{style:j,children:(null===t||void 0===t?void 0:t.hospital_state)||"\u2014"}),(0,m.jsx)("td",{style:j,children:(0,c.Yq)(e.granted_at)}),(0,m.jsx)("td",{style:{...j,textAlign:"right"},children:(0,m.jsx)("button",{onClick:()=>(async e=>{if(E)return;if(H)return void L(`Cannot revoke facility access. ${g}`);D(!0),L("");const{error:t}=await r.supabase.from("credentialer_facility_assignments").update({revoked_at:(new Date).toISOString(),revoked_by:(null===x||void 0===x?void 0:x.id)||null}).eq("id",e);t?((0,p.N7)({tag:"CredentialerAdmin",message:"revoke facility assignment failed",error:t}),L("Failed to revoke assignment.")):(L("Facility assignment revoked."),await P()),D(!1),setTimeout(()=>L(""),4e3)})(e.id),disabled:E||H,title:H?g:void 0,"aria-disabled":H||void 0,style:H?w(k):k,children:"Revoke"})})]},e.id)})})]})}),(0,m.jsxs)("div",{style:{marginTop:20,display:"flex",alignItems:"flex-end",gap:12,flexWrap:"wrap"},children:[(0,m.jsx)("div",{style:{minWidth:260},children:(0,m.jsx)(s.Z,{label:"Add facility",options:Y.map(e=>({value:String(e.id),label:`${e.facility_name}${e.hospital_state?` (${e.hospital_state})`:""}`})),value:W,onChange:e=>I(e.target.value),placeholder:H?"Unavailable \u2014 portal unmounted":"Select a facility\u2026",disabled:H,width:320})}),(0,m.jsx)("button",{onClick:async()=>{if(!W||E)return;if(H)return void L(`Cannot grant facility access. ${g}`);D(!0),L("");const{error:t}=await r.supabase.from("credentialer_facility_assignments").insert({credentialer_id:e,facility_id:Number(W),granted_by:(null===x||void 0===x?void 0:x.id)||null});t?((0,p.N7)({tag:"CredentialerAdmin",message:"grant facility assignment failed",error:t}),L("Failed to add facility assignment.")):(L("Facility assignment granted."),I(""),await P()),D(!1),setTimeout(()=>L(""),4e3)},disabled:!W||E||H,title:H?g:void 0,"aria-disabled":H||void 0,className:"btn-primary",style:H?w({fontSize:13,padding:"8px 18px",height:36}):{fontSize:13,padding:"8px 18px",height:36},children:E?"\u2026":"Grant Access"})]}),H&&(0,m.jsx)("p",{className:"tw-text-xs tw-mt-2",style:{color:"var(--text-muted)"},children:g})]}),q.length>0&&(0,m.jsxs)("div",{style:o.mw,children:[(0,m.jsxs)("h3",{style:f,children:["Revoked Assignments",(0,m.jsx)("span",{style:{background:"var(--bg)",fontSize:12,fontWeight:700,padding:"2px 10px",borderRadius:10,marginLeft:8,color:"var(--text-muted)"},children:q.length})]}),(0,m.jsx)("div",{style:{overflowX:"auto"},children:(0,m.jsxs)("table",{style:b,children:[(0,m.jsx)("thead",{children:(0,m.jsxs)("tr",{style:{borderBottom:"1px solid var(--border)"},children:[(0,m.jsx)("th",{style:v,children:"Facility"}),(0,m.jsx)("th",{style:v,children:"Granted"}),(0,m.jsx)("th",{style:v,children:"Revoked"})]})}),(0,m.jsx)("tbody",{children:q.map(e=>{const t=U[e.facility_id];return(0,m.jsxs)("tr",{style:{borderBottom:"1px solid var(--border)",opacity:.6},children:[(0,m.jsx)("td",{style:j,children:(null===t||void 0===t?void 0:t.facility_name)||`Facility #${e.facility_id}`}),(0,m.jsx)("td",{style:j,children:(0,c.Yq)(e.granted_at)}),(0,m.jsx)("td",{style:j,children:(0,c.Yq)(e.revoked_at)})]},e.id)})})]})})]})]})})}function y(e){let{label:t,value:i}=e;return(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{style:{fontSize:11,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.04em",color:"var(--text-muted)",marginBottom:4},children:t}),(0,m.jsx)("div",{style:{fontSize:14,color:"var(--text)"},children:i})]})}const h={minHeight:"100vh",background:"var(--bg)",fontFamily:"'DM Sans', sans-serif"},f={fontSize:15,fontWeight:700,color:"var(--text)",margin:"0 0 16px",display:"flex",alignItems:"center"},b={width:"100%",borderCollapse:"collapse",fontSize:14},v={padding:"8px 12px",textAlign:"left",fontSize:11,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.04em",color:"var(--text-muted)"},j={padding:"10px 12px"},k={padding:"5px 14px",fontSize:12,fontWeight:600,fontFamily:"'DM Sans', sans-serif",background:"transparent",color:"var(--error)",border:"1px solid var(--error)",borderRadius:6,cursor:"pointer"},w=e=>({...e,opacity:.5,cursor:"not-allowed"}),S={background:"none",border:"none",padding:0,fontSize:13,color:"var(--blue)",cursor:"pointer",textDecoration:"underline",fontFamily:"'DM Sans', sans-serif"}},65250(e,t,i){i.d(t,{CA:()=>l,LO:()=>
1o,Mv:()=>c,Wu:()=>s});var a=i(70579);const n={background:"var(--surface)",border:"1px solid var(--hairline, var(--border))",borderRadius:12,padding:20,marginBottom:16,boxShadow:"var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05))"},r={fontSize:13,fontWeight:600,color:"var(--text)",marginBottom:6,display:"block"};function l(e){let{title:t="Test mode is ON",children:i}=e;return(0,a.jsx)("div",{style:{...n,background:"var(--bg-warn-subtle)",borderColor:"var(--warning)",marginBottom:20},children:(0,a.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:12},children:[(0,a.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{color:"var(--warning)",flexShrink:0,marginTop:1},children:[(0,a.jsx)("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),(0,a.jsx)("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),(0,a.jsx)("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{style:{fontWeight:700,color:"var(--warning)",marginBottom:4},children:t}),(0,a.jsx)("div",{style:{fontSize:13,color:"var(--text)"},children:i})]})]})})}function s(e){let{message:t}=e;if(!t)return null;const i=t.includes("Failed")||t.includes("Error")||t.includes("failed");return(0,a.jsx)("div",{style:{padding:"10px 16px",borderRadius:8,fontSize:13,marginBottom:16,background:i?"var(--bg-error-subtle)":"var(--bg-success-subtle)",border:"1px solid "+(i?"var(--error)":"var(--success)"),color:i?"var(--error)":"var(--success)"},children:t})}function o(e){let{label:t,children:i,hint:l,sticky:s=!1,style:o}=e;const d=(0,a.jsxs)("div",{style:{...n,display:"flex",alignItems:"center",gap:12,minHeight:48,boxSizing:"border-box",padding:"8px 14px",marginBottom:s?0:16,...o},children:[null!=t&&(0,a.jsx)("label",{style:{...r,marginBottom:0,whiteSpace:"nowrap"},children:t}),(0,a.jsx)("div",{style:{flex:1,maxWidth:480},children:i}),null!=l&&""!==l&&(0,a.jsx)("span",{style:{fontSize:11,color:"var(--text-faint)",fontFamily:"ui-monospace, Menlo, Consolas, monospace"},children:l})]});return s?(0,a.jsx)("div",{style:{position:"sticky",top:-28,zIndex:100,background:"var(--surface)",margin:"-28px -28px 16px",padding:"28px 28px 12px",borderBottom:"1px solid var(--border)",boxShadow:"0 6px 14px -10px rgba(0,0,0,0.3)",boxSizing:"border-box"},children:d}):d}const d={hr:"HR"};function c(e){if(!e)return"";const t=e.toLowerCase().trim();return d[t]?d[t]:e.replace(/\b\w/g,e=>e.toUpperCase())}const p=[{group:"general",label:"General",items:[{key:"general",label:"General",icon:"settings",adminOnly:!0},{key:"notification-policy",label:"Notification Policy",icon:"bell",adminOnly:!0}]},{group:"system",label:"System",items:[{key:"integrations",label:"Integrations",icon:"link",adminOnly:!1},{key:"vms",label:"VMS Syncs",icon:"refresh",adminOnly:!1},{key:"bullhorn",label:"Bullhorn Sync",icon:"megaphone",adminOnly:!0,platformAdminOnly:!0},{key:"email-recipes",label:"Email Recipes",icon:"mail",adminOnly:!0}]},{group:"communication",label:"Communication",items:[{key:"phone",label:"Phone & Texting",icon:"phone",adminOnly:!1},{key:"forms",label:"Email Manager",icon:"mail",adminOnly:!1},{key:"notifications",label:"My Notifications",icon:"bell",adminOnly:!1},{key:"email-center",label:"Email Center",icon:"inbox",adminOnly:!0}]},{group:"recruitment",label:"Recruitment",items:[{key:"recruiting-mgmt",label:"Recruiting Management",icon:"sliders",adminOnly:!1},{key:"credentialing",label:"Credentialing Settings",icon:"shield-check",adminOnly:!1},{key:"performance",label:"Performance & Bonuses",icon:"target",adminOnly:!0},{key:"field-defaults",label:"Default Field Values",icon:"edit",adminOnly:!1},{key:"job-board",label:"Job Board",icon:"briefcase",adminOnly:!0}]},{group:"dashboards",label:"Dashboards",items:[{key:"exec-dashboard",label:"Executive Dashboard",icon:"trending-up",adminOnly:!0,permKey:"dashboard/executive"}]},{group:"users",label:"Users",adminOnly:!0,permKey:"settings",items:[{key:"users",label:"Users & Permissions",icon:"users",adminOnly:!0,platformAdminOnly:!0},{key:"viewtest",label:"View as User",icon:"eye",adminOnly:!0,platformAdminOnly:!0},{key:"session-policy",label:"Session Policy",icon:"clock",adminOnly:!0,permKe
1y:"settings"}]},{group:"data",label:"Data",items:[{key:"dropdowns",label:"Dropdown Lists",icon:"list-check",adminOnly:!0,permKey:"settings/dropdowns"},{key:"needs-mapping",label:"Aliases",icon:"columns",adminOnly:!0,permKey:"settings/aliases"},{key:"placement-linker",label:"Placement Linker",icon:"link",adminOnly:!0},{key:"dedup-cleanup",label:"Duplicate Cleanup",icon:"filter",adminOnly:!0,platformAdminOnly:!0},{key:"document-center",label:"Document Center",icon:"clipboard-check",adminOnly:!1},{key:"portal",label:"Candidate Portal",icon:"user",adminOnly:!1},{key:"expiry",label:"Placement Expiry",icon:"clock",adminOnly:!1}]},{group:"security",label:"Security",adminOnly:!0,items:[{key:"credentialer-portal",label:"Credentialer Portal",icon:"lock",adminOnly:!0,unmounted:!0}]},{group:"automations",label:"Automations",adminOnly:!0,automationGated:!0,items:[{key:"automation-rules",label:"Automation Rules",icon:"zap",adminOnly:!0,automationGated:!0},{key:"automation-logs",label:"Automation Logs",icon:"list-check",adminOnly:!0,automationGated:!0}]},{group:"diagnostics",label:"Diagnostics",adminOnly:!0,permKey:"settings",items:[{key:"app-errors",label:"Application Errors",icon:"alert-triangle",adminOnly:!0,platformAdminOnly:!0},{key:"security-alerts",label:"Security Alerts",icon:"alert-triangle",adminOnly:!0,permKey:"settings"},{key:"file-security",label:"File Security",icon:"shield",adminOnly:!0,platformAdminOnly:!0}]},{group:"devtools",label:"Dev Tools",adminOnly:!0,items:[{key:"testing",label:"Test Data Generator",icon:"grid-dots",adminOnly:!0,platformAdminOnly:!0}]}];p.flatMap(e=>e.items);i.d(t,["C8",0,{width:"100%",padding:"8px 12px",border:"1px solid var(--border)",borderRadius:6,fontSize:13,boxSizing:"border-box",background:"var(--bg)",color:"var(--text)"},"XF",0,p,"c8",0,r,"mw",0,n,"vR",0,(e,t)=>({padding:"3px 10px",borderRadius:12,fontSize:11,fontWeight:600,color:e,background:t})])}}]);
2//# sourceMappingURL=1262.35855657.chunk.js.map

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.