1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,355856,e=>{"use strict";var a=e.i(348841),t=e.i(286315),r=e.i(70489),o=e.i(479349),l=e.i(91942),s=e.i(473332),i=e.i(408573),n=e.i(535600),m=e.i(714035),d=e.i(330951),c=e.i(13744),u=e.i(759822),p=e.i(380553),x=e.i(544686),b=e.i(1540),h=e.i(972145),g=e.i(185715),y=e.i(443736),f=e.i(723099),v=e.i(661292),j=e.i(615060);e.s(["CandidateForm",0,({title:e,perex:F,jobFairsEvents:C,employmentTypeField:S,kickresume:T=!0,onClose:k,textDesign:w="primary"})=>{let N,I,{control:L,...A}=(0,d.useForm)(),[D,J]=(0,n.useState)(!1),{t:P}=(0,o.useI18n)("Jobs"),{webSystemId:q,href:_}=(0,l.useLocation)(),{locale:E,isEnglish:R,isCzWeb:B}=(0,j.useCurrentWeb)(),M=R&&!B,{executeRecaptcha:O}=(0,m.useGoogleReCaptcha)(),[V,$]=(0,n.useTransition)(),[z,K]=(0,n.useState)(void 0),U=(0,t.useLinkStage)(`${q}_THANK_YOU`,E),W=(0,i.useRouter)(),[Y,G]=(0,n.useState)(!1),H=(0,n.useCallback)(async()=>O?await O("submit"):void console.log("Execute recaptcha not yet available"),[O]),Q=async e=>{let a=await H();if(a){let t=[];e.salary&&t.push({note:`Požadovan\xe1 mzda: ${e.salary} KÄ / mÄs\xedc`}),e.team&&t.push({note:`Preferovan\xfd obor: ${e.team}`}),e.startDate&&t.push({note:`Datum n\xe1stupu: ${e.startDate}`}),e.coverletter&&t.push({note:`Průvodn\xed dopis: ${e.coverletter}`}),e.employmentType&&t.push({note:`Preferovan\xfd typ \xfavazku: ${e.employmentType}`}),t.push({tag:"tag.hot"}),C&&t.push({tag:"Job fairs - EVENTY"}),e.extra=t,e?.attachments?.forEach(e=>{delete e.type});let r={formData:e,recaptchaToken:a};$(()=>{(async()=>{try{let a=await (0,y.postDataAction)(r);a?.status===200&&((0,g.default)("form_submission",{job_title:"Candidate form",job_team:e?.team}),W.push(U?.url||"/formular-odeslan")),K(a?.code)}catch(e){console.error("Candidate form submit failed",e),K("SUBMIT_FAILED")}})()})}else console.log("Failed to execute recaptcha")},X=(0,a.jsxs)("div",{className:"flex gap-x-4 items-center",children:[(0,a.jsx)(p.Button,{label:P("createCv"),size:"small",design:"secondary",className:"whitespace-nowrap",onClick:()=>{(0,g.default)("fgWebAnalytics",{fgVarCat:"Pop-up open",fgVarAct:"Lead form",fgVarLbl:_}),G(!0)}}),(0,a.jsx)("p",{className:"textt-xs",children:P("candidateNoCv")})]});return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:(0,c.twMerge)("secondary"===w&&"lg:max-w-[79rem] mx-auto"),children:[e&&(0,a.jsx)("h2",{className:(0,c.twMerge)("textd-sm mb-7 text-primary",F&&"mb-4"),children:(0,s.processNbsp)(e)}),F&&(0,a.jsx)("p",{className:"textt-lg mb-7",children:F}),(0,a.jsx)("div",{className:(0,c.twMerge)("primary"===w&&"md:columns-2 gap-x-7"),children:(0,a.jsx)(x.CollapsibleText,{shortText:P(M?"candidateFormTopTextShortSk":"candidateFormTopTextShort"),longText:P(M?"candidateFormTopTextLongSk":"candidateFormTopTextLong")})})]}),(0,a.jsx)("div",{className:"mt-10 lg:mt-26 w-full lg:max-w-[79rem] mx-auto",children:(0,a.jsx)(d.FormProvider,{control:L,...A,children:(0,a.jsxs)("form",{onSubmit:A.handleSubmit(Q),noValidate:!0,children:[(0,a.jsx)(v.JobFormInput,{type:"text",name:"name",label:P("nameAndSurn
1ame"),required:!0}),(0,a.jsx)(v.JobFormInput,{type:"text",name:"phone",label:P("phone"),required:!0}),(0,a.jsx)(v.JobFormInput,{type:"text",name:"email",label:P("email"),required:!0}),(0,a.jsx)(v.JobFormInput,{type:"select",name:"team",label:P("preferredField"),required:!0,options:[{label:P("administration"),value:"administrativa"},{label:P("finance"),value:"finance"},{label:P("hr"),value:"hr"},{label:P("itTechnology"),value:"it-a-technology"},{label:P("marketingTrade"),value:"marketing-a-obchod"},{label:P("other"),value:"ostatni"},{label:P("salesAndCustomerCare"),value:"prodej-a-zakaznicky-servis"}],placeholder:P("selectField")}),(0,a.jsx)(v.JobFormInput,{type:"select",name:"startDate",label:P("possibleStartDate"),required:!0,placeholder:P("selectPossibleStartDate"),options:(N=[P("january"),P("february"),P("march"),P("april"),P("may"),P("june"),P("july"),P("august"),P("september"),P("october"),P("november"),P("december")],I=[{label:P("immediately"),value:"okamzite"}],[void 0,void 0,void 0].forEach((e,a)=>{var t;let r,o,l,s=(t=a+1,o=(r=new Date).getMonth()+t,l=r.getFullYear(),o>11&&(o-=12,l+=1),`${N[o]} ${l}`);I.push({label:s,value:s.normalize("NFKD").replace(/[^\w\s.-_\/]/g,"").replace(" ","-").toLowerCase()})}),I)}),S&&(0,a.jsx)(v.JobFormInput,{type:"text",name:"employmentType",label:P("preferredEmploymentType"),placeholder:P("preferredEmploymentTypePlaceholder"),required:!0}),(0,a.jsx)(v.JobFormInput,{type:"file",name:"attachments",label:P("cv"),required:!0,fileInputChildren:T?X:void 0}),(0,a.jsx)(v.JobFormInput,{type:"textarea",name:"coverletter",label:P("moreInformationAboutMe"),required:!0}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"w-full lg:max-w-[58.4rem] mr-0 ml-auto",children:(0,a.jsxs)("button",{className:"relative inline-block pl-7 textt-sm font-[655] text-primary pt-[0.3rem] hover:underline",type:"button",onClick:()=>J(!D),children:[(0,a.jsx)(r.SvgSpriteIcon,{icon:"arrowDownCircle",className:(0,c.twMerge)("absolute w-[2.2rem] h-[2.2rem] left-0 top-1/2 -translate-y-1/2 fill-primary transition-transform duration-200",D&&"rotate-180")}),P(D?"hideOptionalFields":"showOptionalFields")]})}),D&&(0,a.jsxs)("div",{className:"pt-6",children:[(0,a.jsx)(v.JobFormInput,{type:"text",name:"salary",label:P("requiredSalary")}),(0,a.jsx)(v.JobFormInput,{type:"text",name:"linkedin",label:"LinkedIn"})]})]}),(0,a.jsxs)("div",{className:"w-full lg:max-w-[58.4rem] mr-0 ml-auto mt-10",children:[(0,a.jsx)("p",{className:"textt-xs mb-5",children:P(M?"candidateFormBottomTextSk":"candidateFormBottomText")}),(0,a.jsx)(h.FormGroup,{name:"gdpr_agreement",children:(0,a.jsx)(b.RHFCheckbox,{label:P(M?"candidateFormCheckboxShortSk":"candidateFormCheckboxShort"),longLabel:P(M?"candidateFormCheckboxLongSk":"candidateFormCheckboxLong"),id:"gdprAgreementCandidate",name:"gdpr_agreement",inputParams:{required:P("agreementRequired")}})})]}),(0,a.jsxs)("div",{className:"flex flex-wrap justify-center gap-2 mt-8",children:[k&&(0,a.jsx)(p.Button,{type:"button",label:P("close"),design:"secondary",onClick:k}),(0,a.jsx)(p.Button,{type:"submit",label:P("submit"),loading:V})]}),z&&"SUCCESS"!==z&&(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)(u.Alert,{type:"error",message:P("LOW_RISK_SCORE"===z?"formRecaptchaLowRiskScore":"formCouldNotBeSubmitted")})})]})})}),T&&(0,a.jsx)(f.LeadFormInModal,{isOpen:Y,onClose:()=>{(0,g.default)("fgWebAnalytics",{fgVarCat:"Pop-up close",fgVarAct:"Lead form",fgVarLbl:_}),G(!1)}})]})}],355856)},354754,function(e){e.n(e.i(355856))}]);
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.