1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8770],{78770:(e,a,s)=>{s.r(a),s.d(a,{default:()=>i});var r=s(95155);s(12115);var l=s(97003),t=s(50618),n=s(25016),d=s(1410);function i(e){let{data:a}=e,{formData:s,isFormSubmitting:i,isFormValid:o,handleFormChange:m,handleFormBlur:c,getFormFieldError:x,handleFormSubmit:u,resetForm:f,rstTemplateOptions:h,rstLoading:p,loadRstTemplates:N,searchRstTemplates:b,hasMore:g,totalItems:j,loadMoreTemplates:y,setRstTemplateId:k}=(0,d.Q)();return(0,r.jsx)("div",{className:"space-y-6",children:(0,r.jsxs)("form",{onSubmit:u,className:"space-y-4 mt-8",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{htmlFor:"firstName",className:"block text-sm font-medium text-gray-700 mb-1",children:["First Name ",(0,r.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,r.jsx)("input",{type:"text",id:"firstName",name:"firstName",value:s.firstName,onChange:m,onBlur:()=>c("firstName"),className:(0,n.cn)("w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:border-transparent",x("firstName")&&"border-red-500 focus:ring-red-500"),placeholder:"Enter first name"}),x("firstName")&&(0,r.jsx)("p",{className:"text-red-500 text-xs mt-1",children:x("firstName")})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"middleName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Middle Name"}),(0,r.jsx)("input",{type:"text",id:"middleName",name:"middleName",value:s.middleName,onChange:m,onBlur:()=>c("middleName"),className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:border-transparent",placeholder:"Enter middle name here"})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{htmlFor:"lastName",className:"block text-sm font-medium text-gray-700 mb-1",children:["Last Name ",(0,r.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,r.jsx)("input",{type:"text",id:"lastName",name:"lastName",value:s.lastName,onChange:m,onBlur:()=>c("lastName"),className:(0,n.cn)("w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:border-transparent",x("lastName")&&"border-red-500 focus:ring-red-500"),placeholder:"Enter last name"}),x("lastName")&&(0,r.jsx)("p",{className:"text-red-500 text-xs mt-1",children:x("lastName")})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:["Competency Matrix Template ",(0,r.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,r.jsx)(t.Combobox,{className:"border border-gray-300 bg-text-bg shadow-none",options:h,value:s.rst_ids&&s.rst_ids[0]||"",onValueChange:e=>k(e),placeholder:"Select Competency Matrix...",searchPlaceholder:"Search Competency Matrix...",emptyText:"No template found.",allowCustomValues:!1,isLoading:p,onSearchChange:b,hasMore:g||!1,totalCount:j||0,...y?{onLoadMore:y}:{},onOpenChange:e=>{e&&N()}}),x("rst_ids")&&(0,r.jsx)("p",{className:"text-red-500 text-xs mt-1",children:x("rst_ids")})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{htmlFor:"linkedinProfile",className:"block text-sm font-medium text-gray-700 mb-1",children:["Add Linkedin Profile ",(0,r.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,r.jsx)("input",{type:"text",id:"linkedinProfile",name:"linkedinProfile",value:s.linkedinProfile,onChange:m,onBlur:()=>c("linkedinProfile"),className:(0,n.cn)("w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:border-transparent",x("linkedinProfile")&&"border-red-500 focus:ring-red-500"),placeholder:"linkedin.com/username"}),x("linkedinProfile")&&(0,r.jsx)("p",{className:"text-red-500 text-xs mt-1",children:x("linkedinProfile")})]}),(0,r.jsxs)("div",{className:"flex gap-3 pt-4 justify-end items-end mt-8 w-[40%]",children:[(0,r.jsx)(l.Button,{type:"submit",size:"sm",disabled:i||!o,className:"flex-1 h-[40px] text-sm rounded-md font-medium",children:i?"Adding...":"Add"}),(0,r.jsx)(l.Button,{type:"button",onClick:()=>{var e;(null==a?void 0:a.onCancel)&&"function"==typeof a.onCancel&&a.onCancel(),f(),null==a||null==(e=a.closeModal)||e.call(a)},disabled:i,variant:"outline",className:"flex-1 text-sm h-[40px] hover:bg-white *:hover:text-brand-primary rounded-md font-medium",children:"Cancel"})]})]})})}}}]);
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.