1import{_ as E}from"./B0nf1Aa9.js";import{_ as D,m as P,x as $,y as i,r as n,z,c as d,e as o,f as t,i as a,s as l,A,k as p,l as L,F as h,j as c,v as M,B as F,C as O}from"./Y3AuEYQt.js";import{u as U}from"./Nl9IlELB.js";import x from"./Cuf-TOC1.js";import j from"./CXstJB08.js";import R from"./Bz7aGT7l.js";import"./CS-LnUpm.js";import{c as G}from"./DgFFk14E.js";import"./UG-9-gIU.js";import"./1KFQ3PoM.js";import"./Deyvj3K9.js";import"./B8NT-Fi5.js";import"./ZhWAdK_X.js";import"./D3h2JUc2.js";import"./B8f07x1a.js";import"./UkG0EeS5.js";import"./BUiZ60l_.js";import"./BUq7_h54.js";import"./fZPAjxgH.js";import"./CyL1uips.js";(globalThis.__TEAMSO_I18N__=globalThis.__TEAMSO_I18N__||[]).push("@18e6f2c686");const H={class:"legal-consent-page"},J={class:"legal-consent-banner"},K={class:"legal-consent-container"},Q={class:"legal-consent-info-box"},W={class:"legal-consent-section-title"},X={class:"legal-consent-items"},Y={class:"legal-consent-item-header"},Z={class:"legal-consent-item-title-wrapper"},ee=["for"],te={class:"legal-consent-item-description"},le={class:"legal-consent-footer"},se={__name:"legalConsent",setup(ae){const{t:e,tm:ne}=P(),m=$(),{showSuccess:T,showError:q}=U(),g=i(()=>m.query.candidateId);i(()=>m.query.companyId);const _=n(!1),v=n(!1),f=n(!1),C=n(!1),r=n(!1),k=n(!1),u=i(()=>_.value&&v.value&&f.value),I=i(()=>u.value);n(!1),n("");const S=i(()=>[{id:"kvkk",model:_,title:e("laterAdded.ats.legalConsent.kvkkTitle"),description:e("laterAdded.ats.legalConsent.kvkkDescription"),required:!0,link:"/information-text"},{id:"explicitConsent",model:v,title:e("laterAdded.ats.legalConsent.explicitConsentTitle"),description:e("laterAdded.ats.legalConsent.explicitConsentDescription"),required:!0,link:"/user-agreement"},{id:"privacyPolicy",model:f,title:e("laterAdded.ats.legalConsent.privacyPolicyTitle"),description:e("laterAdded.ats.legalConsent.privacyPolicyDescription"),required:!0,link:"/privacy-policy"},{id:"aiConsent",model:C,title:e("laterAdded.ats.legalConsent.aiConsentTitle"),description:e("laterAdded.ats.legalConsent.aiConsentDescription"),required:!1,link:null}]),V=async()=>{if(!(!g.value||!u.value)){r.value=!0;try{await G.updateLegalConsent({candidateId:g.value,legalTexts:I.value,aiConsent:C.value}),T(e("laterAdded.ats.legalConsent.submitSuccess")),k.value=!0}catch(b){console.error("Error updating legal consent:",b),q(e("laterAdded.ats.legalConsent.submitError"))}finally{r.value=!1}}};return(b,y)=>{const w=E,N=z("i18n-t");return o(),d("div",H,[t("div",J,[t("h1",null,a(l(e)("laterAdded.ats.legalConsent.pageTitle")),1),t("p",null,a(l(e)("laterAdded.ats.legalConsent.pageSubtitle")),1)]),t("div",K,[k.value?(o(),A(l(R),{key:0,severity:"success",closable:!1},{default:p(()=>[L(a(l(e)("laterAdded.ats.legalConsent.submitSuccess")),1)]),_:1})):(o(),d(h,{key:1},[t("div",Q,[t("p",null,a(l(e)("laterAdded.ats.legalConsent.infoText")),1)]),t("div",W,[t("h3",null,a(l(e)("laterAdded.ats.legalConsent.requiredTextsTitle")),1)]),t("div",X,[(o(!0),d(h,null,M(S.value,s=>(o(),d("div",{key:s.id,class:"legal-consent-item"},[t("div",Y,[c(l(j),{modelValue:s.model.value,"onUpdate:modelValue":B=>s.model.value=B,inputId:`consent-${s.id}`,binary:!0},null,8,["modelValue","onUpdate:modelValue","inputId"]),t("div",Z,[t("label",{for:`consent-${s.id}`,class:"legal-consent-item-title"},a(s.title),9,ee),t("span",{class:O(["legal-consent-badge",s.required?"legal-consent-badge-required":"legal-consent-badge-optional"])},a(s.required?l(e)("laterAdded.ats.legalConsent.required"):l(e)("laterAdded.ats.legalConsent.optional")),3)])]),t("p",te,a(s.description),1),s.link?(o(),A(w,{key:0,to:s.link,target:"_blank",rel:"noopener noreferrer",class:"legal-consent-view-btn-link"},{default:p(()=>[c(l(x),{label:l(e)("laterAdded.ats.legalConsent.viewText"),icon:"pi pi-file",severity:"primary",outlined:"",size:"small"},null,8,["label"])]),_:2},1032,["to"])):F("",!0)]))),128))]),c(l(x),{label:l(e)("laterAdded.ats.legalConsent.submitButton"),icon:"pi pi-check-circle",class:"legal-consent-submit-btn",loading:r.value,disabled:!u.value||r.value,onClick:V},null,8,["label","loading","disabled"])],64)),t("div",le,[t("p",null,a(l(e)("laterAdded.ats.legalConsent.footerText")),1),t("p",null,[c(N,{keypath:"laterAdded.ats.legalConsent.footerContact",tag:"span"},{email:p(()=>y[0]||(y[0]=[t("a",{href:"mailto:[email protected]",class:"legal-consent-footer-link"},"[email protected]",-1)])),_:1})])])])])}}},qe=D(se,[["__scopeId","data-v-1c246187"]]);export{qe 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.