1import{d as n,j as e}from"./index-CL5CXY0i.js";import{r as w}from"./react-CryvJVFI.js";import{u as A}from"./useExperienceManagement-lBCp-AyS.js";import{Q as U}from"./react-toastify.esm-BcQ5eTVB.js";import"./index-DNaSW-Dx.js";import{F as B}from"./index-C3vpPgak.js";import{S as M}from"./index-BsncVKLf.js";import"./index-C09Y5_TV.js";import"./index-DyUk60wA.js";import"./react-content-loader.es-9HMRlSLY.js";import"./useFetchPacList-CGKTKoEm.js";import"./useVideoThumbnailsManagement-CtslanMO.js";import"./index-BijeTAIV.js";import"./react-paginate-RUzgbzG0.js";import"./index-Cnqjmcqm.js";import"./index-DBTgMqXe.js";import"./index-BvdDu3lj.js";import"./MagnifyingGlassIcon-CSsbjLNy.js";import"./index-hOClxwWK.js";import"./index-DngTBLDh.js";import"./lodashUtils-EZhUIFFV.js";import"./useAnnualReportHook-hS8Y5hfP.js";import"./useNewsAnnouncement-DQ3p5OSZ.js";import"./useMeetinghook-CmPAFIya.js";import"./useJobDetailsManagement-C_9AYzBf.js";import"./index-CJ5qLs-6.js";import"./useAnnualReportHook-DLspTqsz.js";import"./index-B2cqaVCK.js";const J=n.div` 2 width: 100%; 3 max-width: 100%; 4 background-color: #fff; 5 border-radius: 8px; 6`,P=n.form` 7 display: flex; 8 flex-direction: column; 9`,d=n.div` 10 margin-bottom: 20px; 11 width: 100%; 12`,c=n.label` 13 margin-bottom: 8px; 14 font-weight: bold; 15 display: block; 16 font-family: Plus Jakarta Sans; 17 font-size: 14px; 18 font-weight: 500; 19 line-height: 20px; 20 text-align: left; 21 color: #344054; 22`,l=n.input` 23 width: 100%; 24 padding: 10px; 25 font-size: 16px; 26 border: 1px solid #ccc; 27 border-radius: 4px; 28 box-sizing: border-box; 29 color: #ffffff; 30 padding: 8px 12px 8px 12px; 31 gap: 8px; 32 border-radius: 8px; 33 border: 1px; 34 border: 1px solid #d0d5dd; 35 box-shadow: 0px 1px 2px 0px #1018280d; 36 font-family: Plus Jakarta Sans; 37 font-size: 14px; 38 font-weight: 400; 39 line-height: 24px; 40 text-align: left; 41 color: #808ca5; 42`;n.select` 43 width: 100%; 44 padding: 10px; 45 font-size: 16px; 46 border: 1px solid #ccc; 47 border-radius: 4px; 48 box-sizing: border-box; 49`;n.option``;const C=n.button` 50 background-color: #f8961e; 51 color: white; 52 padding: 10px 20px; 53 border: none; 54 border-radius: 5px; 55 cursor: pointer; 56 font-size: 16px; 57 text-align: center; 58 width: 100%; 59 &:hover { 60 background-color: #e07a5f; 61 } 62`,R=n.button` 63 background: #ffffff; 64 color: #374151; 65 padding: 12px 16px; 66 border-radius: 8px; 67 cursor: pointer; 68 font-size: 16px; 69 text-align: center; 70 border: 1px dotted #aab0be; 71 box-shadow: 4px #e5e7eb80; 72 margin-top: 10px; 73 width: 100%; 74 &:hover { 75 } 76`,q=n.button` 77 padding: 10px 20px; 78 border-radius: 8px; 79 border: 1px solid #ff0000; 80 box-shadow: 1px 2px #1018280d; 81 font-family: Plus Jakarta Sans; 82 font-size: 16px; 83 font-weight: 600; 84 text-align: center; 85 color: #ff0000; 86 width: 100%; 87 cursor: pointer; 88 background: #ffffff; 89`,L=n.div` 90 display: flex; 91 justify-content: space-between; 92 align-items: center; 93 gap: 20px; 94 flex-direction: row; 95`,S=n.div` 96 display: flex; 97 justify-content: space-between; 98 align-items: center; 99 gap: 20px; 100 width: 100%; 101`,O=({experience:o,onChange:p,onUpdate:i,onDelete:a,hasChanges:x})=>{const s=h=>{const{name:u,value:g}=h.target;p(u,g)};return e.jsxs("div",{children:[e.jsxs(d,{children:[e.jsx(c,{children:"University"}),e.jsx(l,{type:"text",name:"university",value:o.university,onChange:s,required:!0})]}),e.jsxs(d,{children:[e.jsx(c,{children:"Dates of Attendance"}),e.jsx(l,{type:"text",name:"dates_of_attendance",value:o.dates_of_attendance,onChange:s})]}),e.jsxs(S,{children:[e.jsxs(d,{children:[e.jsx(c,{children:"Major Subject/Field"}),e.jsx(l,{type:"text",name:"field",placeholder:"Major Subject/Field",value:o.field,onChange:s})]}),e.jsxs(d,{children:[e.jsx(c,{children:"Degree/Certificate"}),e.jsx(l,{type:"text",name:"degree",placeholder:"Degree/Certificate",value:o.degree,onChange:s})]})]}),e.jsxs(L,{children:[e.jsx(C,{type:"button",onClick:i,disabled:!x,children:"Update"}),e.jsx(q,{type:"button",onClick:a,children:"Delete"})]})]})},Q=({newExperience:o,onChange:p,onAdd:i})=>{const a=x=>{const{name:s,value:h}=x.target;p(s,h)};return e.jsxs("form",{onSubmit:i,children:[e.jsxs(d,{children:[e.jsxs(c,{children:["University ",e.jsx("span",{style:{color:"red"},children:"*"})]}),e.jsx(l,{type:"text",name:"university",placeholder:"University",value:o.university,onChange:a,required:!0})]}),e.jsxs(d,{children:[e.jsx(c,{children:"Dates of Attendance"}),e.jsx(l,{type:"text",name:"dates_of_attendance",placeholder:"Dates of Attendance",value:o.dates_of_attendance,onChange:a})]}),e.jsxs(S,{children:[e.jsxs(d,{children:[e.jsx(c,{children:"Major Subject/Field"}),e.jsx(l,{type:"text",name:"field",placeholder:"Major Subject/Field",value:o.field,onChange:a})]}),e.jsxs(d,{children:[e.jsx(c,{children:"Degree/Certificate"}),e.jsx(l,{type:"text",name:"degree",placeholder:"Degree/Certificate",value:o.degree,onChange:a})]})]}),e.jsx(C,{type:"submit",children:"Save This Experience"})]})},be=({onNext:o,onDiscard:p})=>{const{experiences:i,updateExperience:a,addExperience:x,deleteExperience:s,hasChanges:h,setExperiences:u,loading:g}=A(),[m,j]=w.useState({university:"",dates_of_attendance:"",field:"",degree:""}),[E,y]=w.useState(!1),D=(r,t,b)=>{const f=[...i];f[r][t]=b,u(f)},I=(r,t)=>{j({...m,[r]:t})},k=async r=>{const t=i[r];a(t)},_=async r=>{const t=i[r];s(t)},F=async()=>{x(m),j({university:"",dates_of_attendance:"",field:"",degree:""}),y(!1)};if(g)return e.jsx(B,{});const v=parseInt(localStorage.getItem("loggedRoleId"),10),z=Number(localStorage.getItem("loggedInId")),N=JSON.parse(localStorage.getItem("userDetails"));return e.jsxs(J,{children:[e.jsxs(P,{children:[i.map((r,t)=>e.jsx(O,{experience:r,onChange:(b,f)=>D(t,b,f),onUpdate:()=>k(t),onDelete:()=>_(t),hasChanges:h(t)}
101,r.id)),E?e.jsx(Q,{newExperience:m,onChange:I,onAdd:F}):v===1||v===2||z===N.id?e.jsx(R,{type:"button",onClick:()=>y(!0),children:"Add New Experience"}):"No Item"]}),e.jsx(U,{}),e.jsx(M,{onNext:o,onDiscard:p})]})};export{be as default};
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.