1"use strict";(globalThis.webpackChunkjobportal||=[]).push([[2724],{52724(e,n,i){i.r(n);var t=i(9950),o=i(53011),s=i(82053),a=i(18391),l=i(40743),r=i(18732),d=i(59720),c=i(82291),p=i(74229),x=i(97512),u=i(41869),f=i(171),g=i(41370),m=i(77155),v=i(46720),h=i(25588),A=i(28429),j=i(44414);const w=()=>{const e=(0,a.wA)(),n=(0,v.ug)(),i=(0,A.Zp)(),w=(0,a.d4)(e=>e.interview.exploreInterviewData),b=(0,a.d4)(e=>e.interview.interviewCreateSuccess),C=(0,m.A)({from:"practice"}),{selectedTab:D,setSelectedTab:P,counts:S,items:I,onStart:M,onDelete:O,canShowDelete:W,isManualInterview:k,confirmDeleteOpen:y,onConfirmDelete:E,onCancelDelete:N,outOfKeysProps:T,manualBooking:_}=C;(0,t.useEffect)(()=>{if(D!==l.W.UPCOMING)return;const i={filter_list:[{field_name:"campaign_category",value:["mock"]},...null!==n&&void 0!==n&&n.segment?[{field_name:"segment",value:[null===n||void 0===n?void 0:n.segment]}]:[]],user_id:n.id,role_id:"1",paginationModel:{pageSize:100,skip:0}};e((0,h.Q7)(i))},[D]),(0,t.useEffect)(()=>{b&&(e((0,h.FN)()),i("/app/interviewvalidation",{state:{candidateData:b}}))},[b,i]);const z=(0,t.useMemo)(()=>Array.isArray(w)?w:[],[w]),U={...S,[l.W.UPCOMING]:z.length},G=U[l.W.UPCOMING]+U[l.W.COMPLETED]+U[l.W.INCOMPLETE],L=D===l.W.UPCOMING?z:I;return(0,j.jsxs)(o.A,{sx:{background:"#fff",border:"1px solid #e8eaed",borderRadius:"12px",marginBottom:"28px",overflow:"hidden"},children:[(0,j.jsxs)(o.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"18px 24px 0"},children:[(0,j.jsxs)(o.A,{sx:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,j.jsx)(o.A,{component:"span",sx:{fontSize:17},children:"\ud83d\udcdd"}),(0,j.jsx)(s.A,{sx:{fontSize:15,fontWeight:700,color:"#1a1a2e"},children:"Practise Interviews"}),(0,j.jsx)(s.A,{component:"span",sx:{fontSize:12,color:"#9ca3af",marginLeft:"4px"},children:"\u2014 Practise interviews only"})]}),(0,j.jsxs)(o.A,{sx:{fontSize:11,fontWeight:700,padding:"2px 9px",borderRadius:"20px",background:"#eef4fd",color:"#1a6fe8",border:"1px solid #c5d9f8"},children:[G," total"]})]}),(0,j.jsx)(r.A,{selectedTab:D,onChange:P,counts:U}),(0,j.jsx)(o.A,{sx:{padding:"0 24px 24px"},children:0===L.length?(0,j.jsx)(d.A,{message:`No ${D} interviews`,hint:D===l.W.INCOMPLETE?"You have no incomplete interviews here. Start a new one from the Upcoming tab.":void 0}):L.map((e,n)=>{var i,t;return(0,j.jsx)(c.A,{item:e,selectedTab:D,onStart:M,onDelete:O,canShowDelete:W},null!==(i=null!==(t=null===e||void 0===e?void 0:e.interview_id)&&void 0!==t?t:null===e||void 0===e?void 0:e.campaign_id)&&void 0!==i?i:n)})}),(0,j.jsx)(p.A,{open:y,count:1,onConfirm:E,onCancel:N}),T?(0,j.jsx)(x.A,{...T}):null,_?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(u.A,{..._.bookingDialogProps}),(0,j.jsx)(f.A,{..._.attendDialogProps}),(0,j.jsx)(g.A,{..._.slotDetailsDialogProps})]}):null]})};i.d(n,["default",0,w])}}]);
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.