PageSourceSearch

https://cdn.businessdraft.com/build/assets/CandidateInterviewIndex-CtVd5uqk.js

js businessdraft.com collected 2026-09-24 13:19:31 UTC 4,770 bytes, 2 lines download raw bytes

1import{_ as E}from"./BaseCard-Cb5443uK.js";import{_ as D}from"./BaseCalendar-D6n1AZYp.js";import{a as l,M as N,a0 as S,N as $,l as F,o as f,e as k,w as B,J as u,O as P,d,u as I,ba as T,c as _,$ as j,F as R,K as C,c4 as V,L as q,Z as A,av as L,g as O}from"./SetupSentry-DE6y2Ajh.js";import{_ as U}from"./InterviewSummary-B5nqM7C8.js";import{C as b}from"./CandidateInterviewScheduleApi-COUuX5jt.js";import{r as z}from"./ExclamationTriangleIcon-BRiqwEXJ.js";import"./XMarkIcon-Dpv1f6WB.js";import"./_commonjsHelpers-DKZAErUA.js";import"./_sentry-release-injection-file-DmW9TZFH.js";import"./preload-helper-nkV39p5t.js";import"./GoogleAnalytics-kF7mJAxL.js";import"./FormButton-CCi9BtWO.js";import"./ModalConfirm-DkIzzs9R.js";import"./FormTextarea-f__CbCXH.js";import"./FormLabel-DamWP-by.js";import"./InputFormatter-CdXY6dpf.js";import"./formatters-Dp2ha40b.js";import"./BaseModal-Dl3aiElI.js";import"./BaseModalButtons-Bb8UAMFC.js";import"./ShieldExclamationIcon-BH-r3vlV.js";import"./InformationCircleIcon-D1u-glt0.js";import"./InterviewLocationLabels-BRdVDifC.js";import"./Cronofy-C3nevXJ9.js";import"./VideoCameraIcon-DLTkiBI9.js";import"./MapPinIcon-DAEGf5Qz.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="560c34eb-3812-4ad1-bcf9-04d898ef8c22",o._sentryDebugIdIdentifier="sentry-dbid-560c34eb-3812-4ad1-bcf9-04d898ef8c22")}catch{}})();{var v=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};v._sentryModuleMetadata=v._sentryModuleMetadata||{},v._sentryModuleMetadata[new v.Error().stack]=Object.assign({},v._sentryModuleMetadata[new v.Error().stack],{"_sentryBundlerPluginAppKey:business-draft-crm":!0})}const K={class:"fixed inset-0 z-[100]"},M={key:0,class:"flex h-full w-full items-center justify-center"},J={key:1,class:"flex h-full w-full flex-col items-center justify-center gap-2 p-4 text-center"},Q={class:"text-lg font-bold"},Z={class:"flex items-center gap-2"},H={__name:"CandidateInterviewModal",props:{interviewId:Number},emits:["close","interview-cancelled"],setup(o,{emit:r}){const i=r,c=o,s=l(null),p=l(!0),w=l(!1),y=l(!1),h=N(),g=async()=>{p.value=!0,w.value=!1,await h.push({query:{interview:c.interviewId}}),new b().showById(c.interviewId).then(n=>s.value=L(n.data)).catch(()=>w.value=!0).finally(()=>p.value=!1)},e=()=>{y.value=!0,h.push({path:`/schedule-interview/${s.value.uuid}`,query:{reschedule:!0}})},t=async n=>{const a=s.value.uuid,x=s.value.id;new b().destroy(a,{cancel_reason:n}).then(()=>{i("interview-cancelled",x),toast.success("Interview cancelled successfully"),i("close")})},m=l(!1);return S(()=>g()),$(()=>setTimeout(()=>m.value=!0,50)),F(()=>{m.value=!1,y.value||h.push({query:{interview:null}})}),(n,a)=>(f(),k(A,null,{default:B(()=>[u("div",K,[u("div",{class:"fixed inset-0 bg-black/75",onClick:a[0]||(a[0]=x=>n.$emit("close")),"aria-hidden":"true"}),u("div",{class:P(["fixed top-0 right-0 bottom-0 w-full max-w-2xl rounded-l-md bg-white p-6 transition-all",!m.value&&"translate-x-36"])},[d(I(T),{class:"fixed top-7 right-6 h-6 w-6 cursor-pointer text-slate-400 transition-all hover:text-slate-600",onClick:a[1]||(a[1]=x=>n.$emit("close"))}),p.value?(f(),_("div",M,[d(j,{color:"#fff"})])):w.value?(f(),_("div",J,[d(I(z),{class:"h-6 w-6 text-red-500"}),a[2]||(a[2]=u("p",null,"This interview was not found, or you do not have permission to view it.",-1))])):(f(),_(R,{key:2},[u("p",Q,C(s.value.title),1),u("div",Z,[d(I(V),{class:"h-4 w-4 text-gray-500"}),q(" "+C(s.value.company.name),1)]),a[3]||(a[3]=u("hr",{class:"mt-6 bg-slate-100"},null,-1)),d(U,{onReschedule:e,onCancel:t,interview:s.value,"show-team-members":""},null,8,["interview"])],64))],2)])]),_:1}))}},W={class:"px-4 md:px-6 lg:px-8 py-6"},Ie={__name:"CandidateInterviewIndex",setup(o){const r=l([]),i=l(),c=l(null),s=l(null);function p(e,t){e===c.value&&t===s.value||e>=c.value&&t<=s.value||(c.value=e,s.value=t,new b().index({start:e,end:t}).then(m=>{r.value=m.data.map(n=>({id:n.id,title:n.company_name,start:n.start_time,duration:n.duration,url:`/company-interviews/${n.uuid}`}))}))}const w=e=>r.value=r.value.filter(t=>t.id!==e),y=()=>{const t=new URLSearchParams(window.location.search).get("interview");t&&/^\d+$/.test(t)&&(i.value=parseInt(t))}
1,h=e=>i.value=e,g=e=>p(e.start,e.end);return $(()=>y()),(e,t)=>(f(),_("div",W,[d(E,{class:"mx-auto mt-6 max-w-screen-2xl"},{default:B(()=>[d(D,{events:r.value,onChangeDate:g,onClickEvent:h},null,8,["events"])]),_:1}),i.value?(f(),k(H,{key:0,"interview-id":i.value,onClose:t[0]||(t[0]=m=>i.value=null),onInterviewCancelled:w},null,8,["interview-id"])):O("",!0)]))}};export{Ie as default};
2//# sourceMappingURL=CandidateInterviewIndex-CtVd5uqk.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.