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AU9M,MAAMsQ,SAAQhC,IAAUA,EAAKpB,QAAS,CAAK,IACrDJ,EAAU9M,MAAM,GAAGkN,QAAS,EAChC,GAAK,CAAE+E,WAAW,IAClBnF,EAAU9M,MAAMsQ,SAAQhC,IAAU,MAAM0Y,EAAY1Y,EAAKnK,KAAK0B,QAAQ,IAAK,IAAWohB,EAAUxO,SAAS2N,cAAcY,GAAgBC,GACnIT,EAAsBU,QAAQD,EAClC,GACJ,KAEJ,MAAME,GAAa,SAAI,IACvB,QAAQ,WAAYA,IACpB,QAAQ,cAAc,KAAQA,EAAWnnB,OAASmnB,EAAWnnB,KAAK,IAClE,MAAMonB,GAAyB,SAAI,IACnC,QAAQ,0BAA0B,KAAQA,EAAuBpnB,OAASonB,EAAuBpnB,KAAK,IAGtG,OADA,QAAQ,oBADoB,GAErB,CAAEonB,yBAAwBD,aACrC,IAuBJ,OAtBA5B,EAAI8B,IAAIjC,GACRG,EAAI8B,IAAI,KACR9B,EAAItS,UAAU,SAAU,MACxBsS,EAAItS,UAAU,QAAS,MACvBsS,EAAItS,UAAU,gBAAiB,MAC/BsS,EAAItS,UAAU,YAAa,KAC3BsS,EAAItS,UAAU,YAAa,MAC3BsS,EAAItS,UAAU,cAAe,MAC7BsS,EAAItS,UAAU,YAAa,MAC3BsS,EAAItS,UAAU,YAAa,MAC3BsS,EAAItS,UAAU,aAAc,MAC5BsS,EAAItS,UAAU,kBAAmB,IACjCsS,EAAItS,UAAU,aAAc,MAC5BsS,EAAItS,UAAU,gBAAiB,MAC/BsS,EAAItS,UAAU,YAAa,MAC3BsS,EAAItS,UAAU,eAAgB,MAC9BsS,EAAItS,UAAU,UAAW,IACzBsS,EAAItS,UAAU,YAAa,IAC3BsS,EAAItS,UAAU,kBAAmB,IACjCsS,EAAItS,UAAU,WAAY,IAC1BsS,EAAItS,UAAU,cAAe,IAC7BsS,EAAI+B,MAAM,YACH/B,CAAG,G","sources":["webpack://app/./app/javascript/api/individual-application.ts","webpack://app/./app/javascript/api/communes.ts","webpack://app/./app/javascript/components/individual-application-form-step-personal-details.vue?e8b4","webpack://app/./app/javascript/components/individual-application-form-step-personal-details.vue","webpack://app/./app/javascript/components/individual-application-form-step-project-details.vue?dba1","webpack://app/./app/javascript/components/individual-application-form-step-project-details.vue","webpack://app/./app/javascript/components/individual-application-form-step-bank-details.vue?2b53","webpack://app/./app/javascript/components/individual-application-form-step-bank-details.vue","webpack://app/./app/javascript/components/form-stepper.vue?b3c1","webpack://app/./app/javascript/components/form-stepper.vue","webpack://app/./app/javascript/composables/useSiteVariables.ts","webpack://app/./app/javascript/components/individual-application-form.vue?43b4","webpack://app/./app/javascript/components/individual-application-form.vue","webpack://app/./app/javascript/api/application-state.ts","webpack://app/./app/javascript/components/individual-application-tracker-edit-form.vue?1687","webpack://app/./app/javascript/components/individual-application-tracker-edit-form.vue","webpack://app/./app/javascript/components/individual-application-tracker.vue?6d77","webpack://app/./app/javascript/components/individual-application-tracker.vue","webpack://app/./app/javascript/components/individual-application-tracker-finder.vue?bca0","webpack://app/./app/javascript/components/individual-application-tracker-finder.vue","webpack://app/./app/javascript/api/users.ts","webpack://app/./app/javascript/components/header-user-links.vue?5007","webpack://app/./app/javascript/components/header-user-links.vue","webpack://app/./app/javascript/api/settings.ts","webpack://app/./app/javascript/components/language-dropdown.vue?5bfb","webpack://app/./app/javascript/components/language-dropdown.vue","webpack://app/./app/javascript/components/the-nav-bar.vue?0c90","webpack://app/./app/javascript/components/the-nav-bar.vue","webpack://app/./app/javascript/components/the-nav-sidebar.vue?db10","webpack://app/./app/javascript/components/the-nav-sidebar.vue","webpack://app/./app/javascript/api/contact-form-message.ts","webpack://app/./app/javascript/components/the-contact-form-modal.vue?6696","webpack://app/./app/javascript/components/the-contact-form-modal.vue","webpack://app/./app/javascript/components/base-multiselect.vue?d200","webpack://app/./app/javascript/components/base-multiselect.vue?cf00","webpack://app/./app/javascript/components/base-tag.vue","webpack://app/./app/javascript/components/base-tag.vue?73a2","webpack://app/./app/javascript/components/base-table.vue?f0aa","webpack://app/./app/javascript/components/base-table.vue","webpack://app/./app/javascript/components/base-table-button.vue","webpack://app/./app/javascript/components/base-table-button.vue?fcd2","webpack://app/./app/javascript/components/base-form.vue?e50c","webpack://app/./app/javascript/components/base-form.vue","webpack://app/./app/javascript/components/event-item.vue?b4ce","webpack://app/./app/javascript/components/event-item.vue","webpack://app/./app/javascript/api/feedback.ts","webpack://app/./app/javascript/components/feedback-banner-modal.vue?5d88","webpack://app/./app/javascript/components/feedback-banner-modal.vue","webpack://app/./app/javascript/components/feedback-banner.vue?e2f0","webpack://app/./app/javascript/components/feedback-banner.vue","webpack://app/./app/javascript/components/course-item.vue?5309","webpack://app/./app/javascript/components/course-item.vue","webpack://app/./app/javascript/components/course-list.vue?5f50","webpack://app/./app/javascript/components/course-list.vue","webpack://app/./app/javascript/components/feedback-item.vue?dcd2","webpack://app/./app/javascript/components/feedback-item.vue","webpack://app/./app/javascript/components/feedback-list.vue?e1e9","webpack://app/./app/javascript/components/feedback-list.vue?d175","webpack://app/./app/javascript/api/course-application.ts","webpack://app/./app/javascript/components/course-application-form.vue?462e","webpack://app/./app/javascript/components/course-application-form.vue","webpack://app/./app/javascript/components/application-expenses-report-table.vue?db7a","webpack://app/./app/javascript/components/application-expenses-report-table.vue","webpack://app/./app/javascript/api/application-expenses-report.ts","webpack://app/./app/javascript/components/application-expenses-report-modal.vue?4fd3","webpack://app/./app/javascript/components/application-expenses-report-modal.vue","webpack://app/./app/javascript/components/post-submit-modal.vue?7a90","webpack://app/./app/javascript/components/post-submit-modal.vue","webpack://app/./app/javascript/api/application-expenses-report-status.ts","webpack://app/./app/javascript/components/document-viewer-modal.vue?9308","webpack://app/./app/javascript/components/document-viewer-modal.vue","webpack://app/./app/javascript/components/application-expenses-report-form.vue?e471","webpack://app/./app/javascript/components/application-expenses-report-form.vue","webpack://app/./app/javascript/components/user-session-registration-form.vue?9e19","webpack://app/./app/javascript/components/user-session-registration-form.vue","webpack://app/./app/javascript/components/user-session-login-form.vue?f97c","webpack://app/./app/javascript/components/user-session-login-form.vue","webpack://app/./app/javascript/components/user-session-forgot-password-form.vue?ccb4","webpack://app/./app/javascript/components/user-session-forgot-password-form.vue","webpack://app/./app/javascript/components/user-session-change-password-form.vue?b5d4","webpack://app/./app/javascript/components/user-session-change-password-form.vue","webpack://app/./app/javascript/components/user-session.vue?bfc9","webpack://app/./app/javascript/components/user-session.vue","webpack://app/./app/javascript/components/user-profile-form.vue?f2d3","webpack://app/./app/javascript/components/user-profile-form.vue","webpack://app/./app/javascript/components/user-profile-applications.vue?5c87","webpack://app/./app/javascript/components/user-profile-applications.vue","webpack://app/./app/javascript/components/user-migration-modal.vue?2c44","webpack://app/./app/javascript/components/user-migration-modal.vue","webpack://app/./app/javascript/components/user-profile.vue?47e0","webpack://app/./app/javascript/components/user-profile.vue","webpack://app/./app/javascript/api/medical-process-doctor-hour.ts","webpack://app/./app/javascript/api/medical-process-slot.ts","webpack://app/./app/javascript/components/medical-hours-modal.vue?367b","webpack://app/./app/javascript/components/medical-hours-modal.vue","webpack://app/./app/javascript/components/medical-hours-slots.vue?2cf6","webpack://app/./app/javascript/components/medical-hours-slots.vue","webpack://app/./app/javascript/components/medical-hours-confirmation.vue?9dbd","webpack://app/./app/javascript/components/medical-hours-confirmation.vue","webpack://app/./app/javascript/components/medical-hours-form.vue?81c1","webpack://app/./app/javascript/components/medical-hours-form.vue","webpack://app/./app/javascript/components/user-residency-validation-form.vue?158d","webpack://app/./app/javascript/components/user-residency-validation-form.vue","webpack://app/./app/javascript/components/hero-slider.vue?b015","webpack://app/./app/javascript/components/hero-slider.vue?33cc","webpack://app/./app/javascript/application.ts"],"sourcesContent":["import { serialize } from 'object-to-formdata';\nimport decamelizeKeys from '../utils/decamelize-for-files';\nimport api from './index';\nexport default { create(data) { const path = '/api/internal/individual_applications'; return api({ headers: { 'Content-Type': 'multipart/form-data' }, method: 'post', url: path, data: serialize(decamelizeKeys({ individualApplication: data })) }).then(res => res?.individualApplication); }, show(id, rut) { const path = `/api/internal/individual_applications/${id}?rut=${rut}`; return api({ method: 'get', url: path }).then(res => res?.individualApplication); }, update(id, rut, data) { const path = `/api/internal/individual_applications/${id}?rut=${rut}`; return api({ headers: { 'Content-Type': 'multipart/form-data' }, method: 'patch', url: path, data: serialize(decamelizeKeys({ individualApplication: data })) }).then(res => res?.individualApplication); } };\n","import api from './index';\nexport default { get(regionId) { const path = `/api/internal/communes?q[region_id_eq=${regionId}]`; return api({ method: 'get', url: path }).then(res => res?.communes); } };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock, normalizeClass as _normalizeClass, Fragment as _Fragment } from \"vue\";\nconst _hoisted_1 = { class: \"text-3xl font-semibold text-slate-700 md:col-span-2\" };\nconst _hoisted_2 = { key: 0, class: \"md:col-span-2\" };\nconst _hoisted_3 = [\"innerHTML\"];\nconst _hoisted_4 = [\"innerHTML\"];\nconst _hoisted_5 = /*#__PURE__*/ _createElementVNode(\"hr\", { class: \"border md:col-span-2\" }, null, -1);\nconst _hoisted_6 = { class: \"md:col-span-2\" };\nconst _hoisted_7 = { class: \"mb-2 text-base font-semibold text-slate-700\" };\nconst _hoisted_8 = { class: \"flex flex-col md:col-span-2\" };\nimport { rutFormat } from 'rut-helpers';\nimport { onMounted, ref, watch } from 'vue';\nimport communesApi from '../api/communes';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'individual-application-form-step-personal-details', props: { step: null, regions: null, localities: null, isLicanantay: { type: Boolean }, indigenousCertificate: null, firstName: null, lastName: null, rut: null, phoneNumber: null, email: null, regionId: null, communeId: null, localityId: null, localityOther: null, address: null, defaultCommune: null, defaultRegion: null, identityCardFront: null, identityCardBack: null, certificateOfResidency: null, socialHomeRegistryCertificateOfResidencySelected: { type: Boolean }, socialHomeRegistryCertificateOfResidency: null, communityCertificateOfResidencySelected: { type: Boolean }, communityCertificateOfResidency: null, certificateOfResidencyServiceBillSelected: { type: Boolean }, certificateOfResidencyServiceBill: null, certificateOfResidencyEmploymentContractSelected: { type: Boolean }, certificateOfResidencyEmploymentContract: null, certificateOfResidencyDrivingLicenseSelected: { type: Boolean }, certificateOfResidencyDrivingLicense: null, certificateOfResidencyOtherSelected: { type: Boolean }, certificateOfResidencyOther: null, certificateOfResidencyOtherFile: null, disabled: { type: Boolean }, intro: null }, emits: [\"update:is-licanantay\", \"update:indigenous-certificate\", \"update:first-name\", \"update:last-name\", \"update:rut\", \"update:phone-number\", \"update:email\", \"update:region-id\", \"update:commune-id\", \"update:locality-id\", \"update:locality-other\", \"update:address\", \"update:identity-card-front\", \"update:identity-card-back\", \"update:certificate-of-residency\", \"update:community-certificate-of-residency\", \"update:social-home-registry-certificate-of-residency\", \"update:community-certificate-of-residency-selected\", \"update:social-home-registry-certificate-of-residency-selected\", \"update:certificate-of-residency-service-bill-selected\", \"update:certificate-of-residency-service-bill\", \"update:certificate-of-residency-employment-contract-selected\", \"update:certificate-of-residency-employment-contract\", \"update:certificate-of-residency-driving-license-selected\", \"update:certificate-of-residency-driving-license\", \"update:certificate-of-residency-other-selected\", \"update:certificate-of-residency-other\", \"update:certificate-of-residency-other-file\"], setup(__props, { emit }) { const props = __props; watch(() => props.rut, (newValue, oldValue) => { if (newValue && newValue !== oldValue) {\n emit('update:rut', rutFormat(newValue));\n } }); const communes = ref([]); async function updateCommunes() { if (!props.regionId)\n return; communes.value = await communesApi.get(props.regionId); } onMounted(() => { updateCommunes(); }); watch(() => props.regionId, (newRegion, oldRegion) => { if (newRegion !== oldRegion) {\n emit('update:commune-id');\n updateCommunes();\n } }); watch(() => props.localityId, (newLocality, oldLocality) => { if (newLocality !== oldLocality) {\n emit('update:locality-other');\n } }); return (_ctx, _cache) => { const _component_base_input = _resolveComponent(\"base-input\"); const _component_base_select = _resolveComponent(\"base-select\"); const _component_base_file_input = _resolveComponent(\"base-file-input\"); const _component_v_field = _resolveComponent(\"v-field\"); const _component_v_error_message = _resolveComponent(\"v-error-message\"); const _component_base_label = _resolveComponent(\"base-label\"); const _component_base_checkbox = _resolveComponent(\"base-checkbox\"); return _openBlock(), _createElementBlock(_Fragment, null, [_createElementVNode(\"h2\", _hoisted_1, _toDisplayString(__props.step) + \". \" + _toDisplayString(_ctx.$t('individualApplicationForm.step.1')), 1), __props.intro ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [_createElementVNode(\"p\", { class: \"font-semibold\", innerHTML: __props.intro.title }, null, 8, _hoisted_3), _createElementVNode(\"div\", { innerHTML: __props.intro.body }, null, 8, _hoisted_4)])) : _createCommentVNode(\"\", true), _createVNode(_component_base_input, { required: !props.disabled, \"model-value\": __props.firstName, disabled: \"\", type: \"text\", name: \"firstName\", label: \"Nombres\", \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => _ctx.$emit('update:first-name', $event)) }, null, 8, [\"required\", \"model-value\"]), _createVNode(_component_base_input, { required: !props.disabled, \"model-value\": __props.lastName, disabled: \"\", type: \"text\", name: \"lastName\", label: \"Apellidos\", \"onUpdate:modelValue\": _cache[1] || (_cache[1] = $event => _ctx.$emit('update:last-name', $event)) }, null, 8, [\"required\", \"model-value\"]), _createVNode(_component_base_input, { required: !props.disabled, \"model-value\": __props.rut, disabled: \"\", name: \"rut\", label: \"RUT\", placeholder: \"12345678-9\", \"onUpdate:modelValue\": _cache[2] || (_cache[2] = $event => _ctx.$emit('update:rut', $event)) }, null, 8, [\"required\", \"model-value\"]), _createVNode(_component_base_input, { required: !props.disabled, \"model-value\": __props.phoneNumber, disabled: \"\", name: \"phoneNumber\", label: \"Teléfono\", placeholder: \"99999999\", \"onUpdate:modelValue\": _cache[3] || (_cache[3] = $event => _ctx.$emit('update:phone-number', $event)) }, { prefix: _withCtx(() => [_createTextVNode(\" +56 9 \")]), _: 1 }, 8, [\"required\", \"model-value\"]), _createVNode(_component_base_input, { required: !props.disabled, \"model-value\": __props.email, disabled: \"\", name: \"email\", label: \"Correo Electrónico\", placeholder: \"email@dominio.com\", \"onUpdate:modelValue\": _cache[4] || (_cache[4] = $event => _ctx.$emit('update:email', $event)) }, null, 8, [\"required\", \"model-value\"]), _createVNode(_component_base_select, { required: !props.disabled, \"model-value\": __props.regionId, disabled: props.disabled, name: \"regionId\", label: \"Región\", options: props.regions, \"onUpdate:modelValue\": _cache[5] || (_cache[5] = $event => _ctx.$emit('update:region-id', Number($event))) }, null, 8, [\"required\", \"model-value\", \"disabled\", \"options\"]), _createVNode(_component_base_select, { required: !props.disabled, \"model-value\": __props.communeId, disabled: props.disabled, name: \"communeId\", label: \"Comuna\", options: communes.value, \"onUpdate:modelValue\": _cache[6] || (_cache[6] = $event => _ctx.$emit('update:commune-id', Number($event))) }, null, 8, [\"required\", \"model-value\", \"disabled\", \"options\"]), _createVNode(_component_base_select, { required: !props.disabled, \"model-value\": __props.localityId, disabled: props.disabled, name: \"localityId\", label: \"Localidad\", options: [...props.localities, { id: 'other', name: 'Otro' }], \"onUpdate:modelValue\": _cache[7] || (_cache[7] = $event => _ctx.$emit('update:locality-id', $event)) }, null, 8, [\"required\", \"model-value\", \"disabled\", \"options\"]), __props.localityId === 'other' ? (_openBlock(), _createBlock(_component_base_input, { key: 1, required: !props.disabled, \"model-value\": __props.localityOther, disabled: props.disabled, name: \"localityOther\", label: \"Localidad (otro)\", placeholder: \"Escriba el nombre de su localidad\", \"onUpdate:modelValue\": _cache[8] || (_cache[8] = $event => _ctx.$emit('update:locality-other', $event)) }, null, 8, [\"required\", \"model-value\", \"disabled\"])) : _createCommentVNode(\"\", true), _createVNode(_component_base_input, { required: !props.disabled, \"model-value\": __props.address, disabled: props.disabled, name: \"address\", label: \"Dirección\", \"onUpdate:modelValue\": _cache[9] || (_cache[9] = $event => _ctx.$emit('update:address', $event)) }, null, 8, [\"required\", \"model-value\", \"disabled\"]), _createVNode(_component_base_file_input, { label: \"Copia de la Cédula de Identidad (Frente)\", name: \"identityCardFront\", required: !props.disabled, \"model-value\": __props.identityCardFront, disabled: props.disabled, \"onUpdate:modelValue\": _cache[10] || (_cache[10] = $event => _ctx.$emit('update:identity-card-front', $event)) }, null, 8, [\"required\", \"model-value\", \"disabled\"]), _createVNode(_component_base_file_input, { label: \"Copia de la Cédula de Identidad (Revés)\", name: \"identityCardBack\", required: !props.disabled, \"model-value\": __props.identityCardBack, disabled: props.disabled, \"onUpdate:modelValue\": _cache[11] || (_cache[11] = $event => _ctx.$emit('update:identity-card-back', $event)) }, null, 8, [\"required\", \"model-value\", \"disabled\"]), _hoisted_5, _createElementVNode(\"fieldset\", _hoisted_6, [_createElementVNode(\"p\", _hoisted_7, _toDisplayString(_ctx.$t('individualApplicationForm.messages.isLicantay')), 1), _createElementVNode(\"label\", { class: _normalizeClass([\"mr-4\", { 'opacity-75': props.disabled }]) }, [_createVNode(_component_v_field, { class: \"text-ama-yellow-300\", type: \"radio\", value: true, name: \"isLicanantay\", \"model-value\": __props.isLicanantay, disabled: props.disabled, \"onUpdate:modelValue\": _cache[12] || (_cache[12] = $event => _ctx.$emit('update:is-licanantay', $event)) }, null, 8, [\"model-value\", \"disabled\"]), _createTextVNode(\" Si \")], 2), _createElementVNode(\"label\", { class: _normalizeClass({ 'opacity-75': props.disabled }) }, [_createVNode(_component_v_field, { class: \"text-ama-yellow-300\", type: \"radio\", value: false, name: \"isLicanantay\", \"model-value\": __props.isLicanantay, disabled: props.disabled, \"onUpdate:modelValue\": _cache[13] || (_cache[13] = $event => _ctx.$emit('update:is-licanantay', $event)) }, null, 8, [\"model-value\", \"disabled\"]), _createTextVNode(\" No \")], 2), _createVNode(_component_v_error_message, { class: \"block text-xs text-red-600\", name: \"isLicanantay\" })]), _createVNode(_component_base_file_input, { label: \"Certificado de la calidad indígena\", name: \"indigenousCertificate\", required: !props.disabled, \"model-value\": __props.indigenousCertificate, disabled: props.disabled, \"onUpdate:modelValue\": _cache[14] || (_cache[14] = $event => emit('update:indigenous-certificate', $event)) }, null, 8, [\"required\", \"model-value\", \"disabled\"]), _createVNode(_component_base_file_input, { required: !props.disabled, label: \"Certificado de Residencia\", name: \"certificateOfResidency\", \"model-value\": __props.certificateOfResidency, \"onUpdate:modelValue\": _cache[15] || (_cache[15] = $event => _ctx.$emit('update:certificate-of-residency', $event)) }, null, 8, [\"required\", \"model-value\"]), _createElementVNode(\"div\", _hoisted_8, [_createVNode(_component_base_label, { label: \"Segundo Verificador de Domicilio\", required: !props.disabled, name: \"areAllCertificatesOfResidencyValid\", class: \"mb-2\" }, null, 8, [\"required\"]), _createVNode(_component_base_checkbox, { required: !props.disabled, label: \"Ficha de registro social de hogares\", disabled: props.disabled, name: \"socialHomeRegistryCertificateOfResidencySelected\", class: \"mb-5 text-slate-600\", \"model-value\": __props.socialHomeRegistryCertificateOfResidencySelected, value: true, \"onUpdate:modelValue\": _cache[16] || (_cache[16] = $event => _ctx.$emit('update:social-home-registry-certificate-of-residency-selected', $event)) }, null, 8, [\"required\", \"disabled\", \"model-value\"]), __props.socialHomeRegistryCertificateOfResidencySelected ? (_openBlock(), _createBlock(_component_base_file_input, { key: 0, required: !props.disabled, label: \"Ficha de registro social de hogares\", name: \"socialHomeRegistryCertificateOfResidency\", \"model-value\": __props.socialHomeRegistryCertificateOfResidency, \"onUpdate:modelValue\": _cache[17] || (_cache[17] = $event => _ctx.$emit('update:social-home-registry-certificate-of-residency', $event)) }, null, 8, [\"required\", \"model-value\"])) : _createCommentVNode(\"\", true), _createVNode(_component_base_checkbox, { required: !props.disabled, label: \"Cuenta de servicios básicos\", disabled: props.disabled, name: \"certificateOfResidencyServiceBillSelected\", class: \"mb-5 text-slate-600\", \"model-value\": __props.certificateOfResidencyServiceBillSelected, value: true, \"onUpdate:modelValue\": _cache[18] || (_cache[18] = $event => _ctx.$emit('update:certificate-of-residency-service-bill-selected', $event)) }, null, 8, [\"required\", \"disabled\", \"model-value\"]), __props.certificateOfResidencyServiceBillSelected ? (_openBlock(), _createBlock(_component_base_file_input, { key: 1, required: !props.disabled, label: \"Cuenta de servicios básicos\", name: \"certificateOfResidencyServiceBill\", \"model-value\": __props.certificateOfResidencyServiceBill, \"onUpdate:modelValue\": _cache[19] || (_cache[19] = $event => _ctx.$emit('update:certificate-of-residency-service-bill', $event)) }, null, 8, [\"required\", \"model-value\"])) : _createCommentVNode(\"\", true), _createVNode(_component_base_checkbox, { required: !props.disabled, label: \"Copia de contrato de trabajo con domicilio en la Comuna de San Pedro de Atacama\", disabled: props.disabled, name: \"certificateOfResidencyEmploymentContractSelected\", class: \"mb-5 text-slate-600\", \"model-value\": __props.certificateOfResidencyEmploymentContractSelected, value: true, \"onUpdate:modelValue\": _cache[20] || (_cache[20] = $event => _ctx.$emit('update:certificate-of-residency-employment-contract-selected', $event)) }, null, 8, [\"required\", \"disabled\", \"model-value\"]), __props.certificateOfResidencyEmploymentContractSelected ? (_openBlock(), _createBlock(_component_base_file_input, { key: 2, required: !props.disabled, label: \"Adjuntar\", name: \"certificateOfResidencyEmploymentContract\", \"model-value\": __props.certificateOfResidencyEmploymentContract, \"onUpdate:modelValue\": _cache[21] || (_cache[21] = $event => _ctx.$emit('update:certificate-of-residency-employment-contract', $event)) }, null, 8, [\"required\", \"model-value\"])) : _createCommentVNode(\"\", true), _createVNode(_component_base_checkbox, { required: !props.disabled, label: \"Licencia de Conducir\", disabled: props.disabled, name: \"certificateOfResidencyDrivingLicenseSelected\", class: \"mb-5 text-slate-600\", \"model-value\": __props.certificateOfResidencyDrivingLicenseSelected, value: true, \"onUpdate:modelValue\": _cache[22] || (_cache[22] = $event => _ctx.$emit('update:certificate-of-residency-driving-license-selected', $event)) }, null, 8, [\"required\", \"disabled\", \"model-value\"]), __props.certificateOfResidencyDrivingLicenseSelected ? (_openBlock(), _createBlock(_component_base_file_input, { key: 3, required: !props.disabled, label: \"Adjuntar\", name: \"certificateOfResidencyDrivingLicense\", \"model-value\": __props.certificateOfResidencyDrivingLicense, \"onUpdate:modelValue\": _cache[23] || (_cache[23] = $event => _ctx.$emit('update:certificate-of-residency-driving-license', $event)) }, null, 8, [\"required\", \"model-value\"])) : _createCommentVNode(\"\", true), _createVNode(_component_base_checkbox, { required: !props.disabled, label: \"Certificado de Residencia permanente emitido por la comunidad indígena\", disabled: props.disabled, name: \"communityCertificateOfResidencySelected\", class: \"mb-5 text-slate-600\", \"model-value\": __props.communityCertificateOfResidencySelected, value: true, \"onUpdate:modelValue\": _cache[24] || (_cache[24] = $event => _ctx.$emit('update:community-certificate-of-residency-selected', $event)) }, null, 8, [\"required\", \"disabled\", \"model-value\"]), __props.communityCertificateOfResidencySelected ? (_openBlock(), _createBlock(_component_base_file_input, { key: 4, required: !props.disabled, label: \"Adjuntar\", name: \"communityCertificateOfResidency\", \"model-value\": __props.communityCertificateOfResidency, \"onUpdate:modelValue\": _cache[25] || (_cache[25] = $event => _ctx.$emit('update:community-certificate-of-residency', $event)) }, null, 8, [\"required\", \"model-value\"])) : _createCommentVNode(\"\", true), _createVNode(_component_base_checkbox, { required: !props.disabled, label: \"Otro\", disabled: props.disabled, name: \"certificateOfResidencyOtherSelected\", class: \"mb-5 text-slate-600\", \"model-value\": __props.certificateOfResidencyOtherSelected, value: true, \"onUpdate:modelValue\": _cache[26] || (_cache[26] = $event => _ctx.$emit('update:certificate-of-residency-other-selected', $event)) }, null, 8, [\"required\", \"disabled\", \"model-value\"]), __props.certificateOfResidencyOtherSelected ? (_openBlock(), _createBlock(_component_base_file_input, { key: 5, required: !props.disabled, label: \"Adjuntar\", name: \"certificateOfResidencyOtherFile\", \"model-value\": __props.certificateOfResidencyOtherFile, \"onUpdate:modelValue\": _cache[27] || (_cache[27] = $event => _ctx.$emit('update:certificate-of-residency-other-file', $event)) }, null, 8, [\"required\", \"model-value\"])) : _createCommentVNode(\"\", true), __props.certificateOfResidencyOtherSelected ? (_openBlock(), _createBlock(_component_base_input, { key: 6, is: \"textarea\", \"model-value\": __props.certificateOfResidencyOther, required: !props.disabled, disabled: props.disabled, name: \"certificateOfResidencyOther\", class: \"mb-4\", label: \"Comentarios\", \"onUpdate:modelValue\": _cache[28] || (_cache[28] = $event => _ctx.$emit('update:certificate-of-residency-other', $event)) }, null, 8, [\"model-value\", \"required\", \"disabled\"])) : _createCommentVNode(\"\", true), _createVNode(_component_base_input, { name: \"areAllCertificatesOfResidencyValid\", type: \"hidden\" })])], 64); }; } });\n","import script from \"./individual-application-form-step-personal-details.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./individual-application-form-step-personal-details.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, createBlock as _createBlock, unref as _unref, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, toDisplayString as _toDisplayString, vShow as _vShow, withDirectives as _withDirectives } from \"vue\";\nconst _hoisted_1 = { key: 0, class: \"md:col-span-2\" };\nconst _hoisted_2 = [\"innerHTML\"];\nconst _hoisted_3 = [\"innerHTML\"];\nconst _hoisted_4 = { class: \"md:col-span-2\" };\nconst _hoisted_5 = [\"model-value\", \"checked\", \"disabled\"];\nimport { useField } from 'vee-validate';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'individual-application-form-step-project-details', props: { step: null, purposeIds: null, usage: null, initiativeName: null, purposeOther: null, defaultPurposes: null, useDisclaimer: { type: Boolean }, disabled: { type: Boolean }, intro: null }, emits: [\"update:usage\", \"update:purpose-ids\", \"update:purpose-other\", \"update:use-disclaimer\", \"update:initiative-name\"], setup(__props) {\n const props = __props;\n const { errorMessage, handleChange, handleBlur } = useField('useDisclaimer', undefined, { initialValue: props.useDisclaimer, checkedValue: true, uncheckedValue: false, type: 'checkbox' });\n return (_ctx, _cache) => {\n const _component_base_input = _resolveComponent(\"base-input\");\n const _component_BaseLabel = _resolveComponent(\"BaseLabel\");\n const _component_VErrorMessage = _resolveComponent(\"VErrorMessage\");\n const _component_base_checkbox = _resolveComponent(\"base-checkbox\");\n return _openBlock(), _createElementBlock(_Fragment, null, [__props.intro ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"p\", { class: \"font-semibold\", innerHTML: __props.intro.title }, null, 8, _hoisted_2), _createElementVNode(\"div\", { innerHTML: __props.intro.body }, null, 8, _hoisted_3)])) : _createCommentVNode(\"\", true), _createVNode(_component_base_input, { required: !props.disabled, \"model-value\": __props.initiativeName, disabled: props.disabled, class: \"md:col-span-2\", name: \"initiativeName\", label: _ctx.$t('individualApplicationForm.messages.initiativeName'), \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => _ctx.$emit('update:initiative-name', $event)) }, null, 8, [\"required\", \"model-value\", \"disabled\", \"label\"]), _createVNode(_component_base_input, { is: \"textarea\", required: !props.disabled, \"model-value\": __props.usage, class: \"md:col-span-2\", name: \"usage\", label: _ctx.$t('individualApplicationForm.messages.usage'), placeholder: _ctx.$t('individualApplicationForm.messages.usagePlaceholder'), disabled: props.disabled, \"onUpdate:modelValue\": _cache[1] || (_cache[1] = $event => _ctx.$emit('update:usage', $event)) }, null, 8, [\"required\", \"model-value\", \"label\", \"placeholder\", \"disabled\"]), _createElementVNode(\"div\", _hoisted_4, [_createVNode(_component_BaseLabel, { label: _ctx.$t('individualApplicationForm.messages.purposes'), name: \"purposeIds\", required: !props.disabled }, null, 8, [\"label\", \"required\"]), _createVNode(_component_VErrorMessage, { class: \"w-full text-left text-xs text-red-600\", name: \"purposeIds\", as: \"div\" })]), (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.defaultPurposes, p => { return _openBlock(), _createBlock(_component_base_checkbox, { key: p.id, \"model-value\": __props.purposeIds, name: \"purposeIds\", value: p.id, label: p.name, disabled: props.disabled, \"onUpdate:modelValue\": _cache[2] || (_cache[2] = $event => _ctx.$emit('update:purpose-ids', $event)) }, null, 8, [\"model-value\", \"value\", \"label\", \"disabled\"]); }), 128)), _createVNode(_component_base_checkbox, { \"model-value\": __props.purposeIds, name: \"purposeIds\", value: 0, label: \"Otra\", disabled: props.disabled, \"onUpdate:modelValue\": _cache[3] || (_cache[3] = $event => _ctx.$emit('update:purpose-ids', $event)) }, null, 8, [\"model-value\", \"disabled\"]), __props.purposeIds?.includes(0) || props.purposeOther ? (_openBlock(), _createBlock(_component_base_input, { key: 1, required: !props.disabled, \"model-value\": __props.purposeOther, class: \"md:col-span-2\", name: \"purposeOther\", label: \"Destino Recursos (otro)\", disabled: props.disabled, \"onUpdate:modelValue\": _cache[4] || (_cache[4] = $event => _ctx.$emit('update:purpose-other', $event)) }, null, 8, [\"required\", \"model-value\", \"disabled\"])) : _createCommentVNode(\"\", true), _createElementVNode(\"label\", { class: _normalizeClass([\"flex items-start gap-4 rounded-lg border p-10 font-semibold leading-loose shadow-sqm md:col-span-2\", { 'opacity-75': props.disabled }]) }, [_createElementVNode(\"input\", { type: \"checkbox\", class: \"mt-2 text-ama-yellow-300\", name: \"useDisclaimer\", value: true, \"model-value\": __props.useDisclaimer, checked: __props.useDisclaimer, disabled: props.disabled, onBlur: _cache[5] || (_cache[5] = //@ts-ignore\n (...args) => _unref(handleBlur) && _unref(handleBlur)(...args)), onChange: _cache[6] || (_cache[6] = $event => { _unref(handleChange)($event); _ctx.$emit('update:use-disclaimer', $event.target.checked); }) }, null, 40, _hoisted_5), _createTextVNode(\" Declaro que los presentes aportes, recibidos de parte de SQM en el contexto del Programa Alianza Mujer Atacameña tienen por objeto promover de forma universal el desarrollo y emprendimiento de las mujeres de etnia atacameña-lickanantay residentes en la comuna de San Pedro de Atacama, y que utilizaré los mismos con estricta observancia de los lineamientos y objetivos de dicho Programa, los que me fueron explicados a cabalidad. De forma alguna no utilizaré dichos montos para hacer pagos, ofrecimientos o incentivos a un Funcionario Público, ni para otros fines o actividades ilícitas que infrinjan la Normativa Aplicable que rige a SQM, incluyendo la ley 20.393 chilena sobre Responsabilidad Penal de la Persona Jurídica y sus modificaciones. \")], 2), _withDirectives(_createElementVNode(\"p\", { class: \"text-right text-xs text-red-600 md:col-span-2\" }, _toDisplayString(_unref(errorMessage)), 513), [[_vShow, _unref(errorMessage)]])], 64);\n };\n } });\n","import script from \"./individual-application-form-step-project-details.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./individual-application-form-step-project-details.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, Fragment as _Fragment, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { class: \"text-3xl font-semibold text-slate-700 md:col-span-2\" };\nconst _hoisted_2 = { key: 0, class: \"md:col-span-2\" };\nconst _hoisted_3 = [\"innerHTML\"];\nconst _hoisted_4 = [\"innerHTML\"];\nexport default /*#__PURE__*/ _defineComponent({ __name: 'individual-application-form-step-bank-details', props: { step: null, banks: null, bankAccountTypes: null, rut: null, bank: null, bankAccountType: null, bankAccountNumber: null, bankCertificate: null, cashierCheckText: null, isRutAccount: { type: Boolean }, disabled: { type: Boolean }, intro: null }, emits: [\"update:bank\", \"update:bank-account-type\", \"update:bank-account-number\", \"update:bank-certificate\", \"update:cashier-check-text\"], setup(__props) { const props = __props; return (_ctx, _cache) => { const _component_base_select = _resolveComponent(\"base-select\"); const _component_base_input = _resolveComponent(\"base-input\"); const _component_base_file_input = _resolveComponent(\"base-file-input\"); return _openBlock(), _createElementBlock(_Fragment, null, [_createElementVNode(\"h2\", _hoisted_1, _toDisplayString(__props.step) + \". Datos bancarios \", 1), __props.intro ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [_createElementVNode(\"p\", { class: \"font-semibold\", innerHTML: __props.intro.title }, null, 8, _hoisted_3), _createElementVNode(\"div\", { innerHTML: __props.intro.body }, null, 8, _hoisted_4)])) : _createCommentVNode(\"\", true), _createVNode(_component_base_select, { required: !props.disabled, \"model-value\": __props.bank, name: \"bank\", label: \"Banco\", options: props.banks, disabled: props.disabled, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => _ctx.$emit('update:bank', $event)) }, null, 8, [\"required\", \"model-value\", \"options\", \"disabled\"]), __props.bank !== 'VALE VISTA' ? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [_createVNode(_component_base_select, { required: !props.disabled, \"model-value\": __props.bankAccountType, name: \"bankAccountType\", label: \"Tipo de Cuenta Bancaria\", options: props.bankAccountTypes, disabled: props.disabled, \"onUpdate:modelValue\": _cache[1] || (_cache[1] = $event => _ctx.$emit('update:bank-account-type', $event)) }, null, 8, [\"required\", \"model-value\", \"options\", \"disabled\"]), _createVNode(_component_base_input, { required: !props.disabled, \"model-value\": __props.rut, name: \"rut\", label: \"Rut Cuenta Bancaria\", disabled: true, \"label-hint\": props.disabled ? '* Este campo no se puede modificar' : '' }, null, 8, [\"required\", \"model-value\", \"label-hint\"]), _createVNode(_component_base_input, { disabled: props.isRutAccount || props.disabled, required: !props.disabled, \"model-value\": __props.bankAccountNumber, name: \"bankAccountNumber\", label: \"Número Cuenta Bancaria\", \"onUpdate:modelValue\": _cache[2] || (_cache[2] = $event => _ctx.$emit('update:bank-account-number', $event)) }, null, 8, [\"disabled\", \"required\", \"model-value\"])], 64)) : _createCommentVNode(\"\", true), !__props.isRutAccount && __props.bank !== 'VALE VISTA' ? (_openBlock(), _createBlock(_component_base_file_input, { key: 2, label: \"Certificado de titularidad de la cuenta\", name: \"bankCertificate\", \"model-value\": __props.bankCertificate, disabled: props.disabled, \"onUpdate:modelValue\": _cache[3] || (_cache[3] = $event => _ctx.$emit('update:bank-certificate', $event)) }, null, 8, [\"model-value\", \"disabled\"])) : _createCommentVNode(\"\", true), __props.bank === 'VALE VISTA' ? (_openBlock(), _createBlock(_component_base_input, { key: 3, is: \"textarea\", \"model-value\": __props.cashierCheckText, disabled: props.disabled, name: \"cashierCheckText\", class: \"col-span-2 mb-4\", label: \"Comentarios Adicionales\", \"onUpdate:modelValue\": _cache[4] || (_cache[4] = $event => _ctx.$emit('update:cashier-check-text', $event)) }, null, 8, [\"model-value\", \"disabled\"])) : _createCommentVNode(\"\", true)], 64); }; } });\n","import script from \"./individual-application-form-step-bank-details.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./individual-application-form-step-bank-details.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass } from \"vue\";\nconst _hoisted_1 = { class: \"rounded-xl border border-slate-200 py-8 pr-8 pl-4 shadow-sqm\" };\nconst _hoisted_2 = [\"onClick\"];\nconst _hoisted_3 = [\"src\"];\nimport { computed } from 'vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'form-stepper', props: { currentStep: null, steps: null }, emits: [\"update:currentStep\"], setup(__props) { const props = __props; const currentFormStep = computed(() => props.currentStep + 1); return (_ctx, _cache) => { return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.steps, step => { return _openBlock(), _createElementBlock(\"p\", { key: step, class: _normalizeClass([\"mb-10 flex last:mb-0\", [step === _unref(currentFormStep) ? 'text-slate-700' : 'text-slate-400']]) }, [_createElementVNode(\"button\", { type: \"button\", class: \"grid grid-cols-2 items-center justify-evenly px-2 text-left hover:font-bold\", onClick: () => _ctx.$emit('update:currentStep', step - 1) }, [_createTextVNode(_toDisplayString(_ctx.$t(`individualApplicationForm.step.${step}`)) + \" \", 1), _createElementVNode(\"img\", { src: step === _unref(currentFormStep) ? require('images/radio_selected.svg') : require('images/radio.svg'), class: \"ml-10\" }, null, 8, _hoisted_3)], 8, _hoisted_2)], 2); }), 128))]); }; } });\n","import script from \"./form-stepper.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./form-stepper.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","export default function useSiteVariables() { return window.siteVariables; }\n","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock, normalizeClass as _normalizeClass } from \"vue\";\nconst _hoisted_1 = { class: \"flex flex-col items-center justify-center\" };\nconst _hoisted_2 = /*#__PURE__*/ _createElementVNode(\"p\", null, \"Estamos guardando su postulación...\", -1);\nconst _hoisted_3 = { class: \"mb-6 text-center text-lg font-semibold text-ama-purple-900\" };\nconst _hoisted_4 = { class: \"mb-6 text-center text-lg text-ama-purple-900\" };\nconst _hoisted_5 = [\"href\"];\nconst _hoisted_6 = /*#__PURE__*/ _createElementVNode(\"a\", { href: \"/\", class: \"block w-full rounded bg-ama-yellow-300 p-4 text-center font-semibold text-white hover:bg-amber-600\" }, \" Cerrar \", -1);\nconst _hoisted_7 = /*#__PURE__*/ _createElementVNode(\"hr\", { class: \"md:col-span-2\" }, null, -1);\nconst _hoisted_8 = { key: 4, class: \"flex items-start gap-4 rounded-lg border p-10 font-semibold leading-loose shadow-sqm md:col-span-2\" };\nconst _hoisted_9 = { key: 5, class: \"flex flex-col gap-4 md:col-span-2 md:flex-row\" };\nconst _hoisted_10 = { class: \"flex w-full flex-col gap-4 text-left text-sm text-red-600 md:col-span-2\" };\nconst _hoisted_11 = { key: 0 };\nimport { computed, inject, reactive, ref, watch } from 'vue';\nimport { object, string, number, mixed, setLocale, boolean, bool, array } from 'yup';\nimport { rutValidate } from 'rut-helpers';\nimport es from 'yup-es';\nimport individualApplicationApi from '../api/individual-application';\nimport IndividualApplicationFormStepPersonalDetails from './individual-application-form-step-personal-details.vue';\nimport IndividualApplicationFormStepProjectDetails from './individual-application-form-step-project-details.vue';\nimport IndividualApplicationFormStepBankDetails from './individual-application-form-step-bank-details.vue';\nimport FormStepper from './form-stepper.vue';\nimport useSiteVariables from '../composables/useSiteVariables';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'individual-application-form', props: { user: null, regions: null, localities: null, banks: null, bankAccountTypes: null, defaultCommune: null, defaultRegion: null, defaultPurposes: null, individualApplication: { default: undefined }, mode: { default: 'new' }, introPersonalDetails: null, introProjectDetails: null, introBankDetails: null }, setup(__props) {\n const props = __props;\n const { email } = useSiteVariables();\n const form = reactive({ firstName: props.user.firstName, lastName: props.user.lastName, isLicanantay: undefined, rut: props.user.rut, phoneNumber: props.user.phoneNumber, email: props.user.email, address: undefined, localityId: undefined, localityOther: undefined, regionId: props.defaultRegion, communeId: props.defaultCommune, identityCardBack: undefined, identityCardFront: undefined, indigenousCertificate: undefined, purposeIds: [], usage: undefined, initiativeName: undefined, purposeOther: undefined, bank: undefined, bankAccountType: undefined, bankAccountNumber: undefined, bankCertificate: undefined, certificateOfResidency: undefined, cashierCheckText: undefined, communityCertificateOfResidency: undefined, socialHomeRegistryCertificateOfResidency: undefined, certificateOfResidencyServiceBill: undefined, certificateOfResidencyEmploymentContract: undefined, certificateOfResidencyDrivingLicense: undefined, certificateOfResidencyOther: undefined, certificateOfResidencyOtherFile: undefined, ...props.individualApplication });\n const useDisclaimer = ref(props.mode === 'show');\n const disclaimer = ref(props.mode === 'show');\n const allDisclaimersAccepted = computed(() => disclaimer.value && useDisclaimer.value);\n const certificatesSelected = reactive({ certificateOfResidency: false, communityCertificateOfResidency: false, socialHomeRegistryCertificateOfResidency: false, certificateOfResidencyServiceBill: false, certificateOfResidencyEmploymentContract: false, certificateOfResidencyDrivingLicense: false, certificateOfResidencyOther: false });\n const atLeastOneCertificateSelected = computed(() => Object.values(certificatesSelected).some(certificate => certificate)); // eslint-disable-next-line complexity\n const areAllCertificatesOfResidencyValid = computed(() => { const certificateNames = ['certificateOfResidency', 'communityCertificateOfResidency', 'socialHomeRegistryCertificateOfResidency', 'certificateOfResidencyServiceBill', 'certificateOfResidencyEmploymentContract', 'certificateOfResidencyDrivingLicense', 'certificateOfResidencyOther']; const selectedCertificateValidity = certificateNames.every(certificateName => { if (certificatesSelected[certificateName]) {\n const formCertificate = form[certificateName];\n if (certificateName === 'certificateOfResidencyOther') {\n return !!form.certificateOfResidencyOtherFile && !!formCertificate;\n }\n return !!formCertificate;\n } return true; }); return atLeastOneCertificateSelected.value && selectedCertificateValidity; });\n setLocale(es);\n function isRutAccount(bank, bankAccountType) { return bank === 'BANCO ESTADO' && bankAccountType === 'sight'; }\n const isRutAccountComputed = computed(() => isRutAccount(form.bank, form.bankAccountType));\n watch(isRutAccountComputed, rutAccount => { if (rutAccount) {\n form.bankAccountNumber = form.rut?.replace(/\\./g, '').replace('-', '').slice(0, -1);\n }\n else {\n form.bankAccountNumber = undefined;\n } });\n const PHONE_NUMBER_LENGTH = inject('phoneNumberLength');\n const computedBankAccountTypes = computed(() => props.bankAccountTypes.map(bankAccountType => { if (bankAccountType.id === 'sight' && form.bank === 'BANCO ESTADO') {\n return { id: 'sight', name: 'Vista/Cuenta Rut' };\n } return bankAccountType; }));\n const formRules = [object({ isLicanantay: boolean().required().isTrue('Ser Atacameña Lickanantay es un requisito para poder postular').label('Este'), indigenousCertificate: mixed().required().label('Certificado'), firstName: string().required().label('Nombres'), lastName: string().required().label('Apellidos'), rut: string().required().test(value => { if (value) {\n return rutValidate(value);\n } return false; }).label('Rut'), phoneNumber: string().matches(/^[0-9]+$/, 'El campo Teléfono no es válido').min(PHONE_NUMBER_LENGTH).max(PHONE_NUMBER_LENGTH).required().label('Teléfono'), email: string().required().email().label('Correo Electrónico'), address: string().required().label('Dirección'), localityId: mixed().test(value => { if (!form.localityOther)\n return !!value; return true; }).label('Localidad'), localityOther: string().test(value => { if (!form.localityId || form.localityId === 'other')\n return !!value; return true; }).label('Localidad'), regionId: number().required().oneOf([props.defaultRegion], 'Debe residir en la Región de Antofagasta').label('Región'), communeId: number().required().oneOf([props.defaultCommune], 'Debe residir en la Comuna de San Pedro de Atacama').label('Comuna'), identityCardFront: mixed().required().label('Cédula de Identidad'), identityCardBack: mixed().required().label('Cédula de Identidad'), certificateOfResidency: mixed().required().label('Certificado de Residencia'), areAllCertificatesOfResidencyValid: mixed().test(() => areAllCertificatesOfResidencyValid.value).label('Segundo Verificador de Domicilio') }), object({ purposeIds: array().min(1, 'Debe seleccionar por lo menos un item.').required().label('Destino de los recursos'), purposeOther: string().test(value => { if (form.purposeIds?.includes(0))\n return !!value; return true; }).label('Destino Recursos (otro)'), usage: string().required().label('Uso de Recursos'), initiativeName: string().required().label('Nombre de la iniciativa'), useDisclaimer: bool().required().isTrue('Leer y aceptar la información sobre el uso de montos es obligatorio') }), object({ bank: string().required().label('Banco'), bankAccountType: string().test(value => !!value || form.bank === 'VALE VISTA').label('Tipo de Cuenta'), bankAccountNumber: string().matches(/^[\\d-]+$/, 'Solo se permiten números y guiones').test(value => !!value || form.bank === 'VALE VISTA').label('Cuenta'), disclaimer: bool().required('Leer y aceptar la información sobre el uso de datos es obligatorio.'), bankCertificate: mixed().test('bankCertificate', 'Debe adjuntar el certificado de titularidad de cuenta', () => isRutAccountComputed.value || form.bank === 'VALE VISTA' || !!form.bankCertificate).label('Certificado de titularidad de Cuenta'), allDisclaimersAccepted: bool().test('disclaimers', 'Debe aceptar todos los términos y condiciones', () => { if (allDisclaimersAccepted.value)\n return true; return false; }).label('Términos y Condiciones') })];\n const formStep = ref(0);\n const isLastStep = computed(() => formStep.value === formRules.length - 1);\n const currentRules = computed(() => { if (isLastStep.value) {\n return formRules.reduce((acc, rules) => ({ ...acc, ...rules.fields }), {});\n } return formRules[formStep.value]; });\n const loading = ref(false);\n const error = ref(false);\n const errorMessage = ref('');\n const postSubmitModal = ref(false);\n function prevStep() { if (formStep.value > 0) {\n formStep.value--;\n } }\n const savedApplication = ref(undefined); // eslint-disable-next-line max-statements\n async function submit() { if (!isLastStep.value) {\n formStep.value++;\n return;\n } const ONE_SECOND = 1000; const BAD_REQUEST_STATUS = 400; const CONTACT_MESSAGE = ` Para obtener más información, escríbanos a ${email}`; const localityId = form.localityId === 'other' ? undefined : form.localityId; const purposeIds = form.purposeIds?.filter(p => p !== 0); const fullName = `${form.firstName} ${form.lastName}`; const cashierCheck = form.bank === 'VALE VISTA'; loading.value = true; postSubmitModal.value = true; try {\n savedApplication.value = await individualApplicationApi.create({ ...form, localityId, purposeIds, fullName, cashierCheck });\n }\n catch (e) {\n if (e.response?.status === BAD_REQUEST_STATUS) {\n if (e.response?.data.errors.rut) {\n errorMessage.value = e.response?.data.errors.rut[0] + CONTACT_MESSAGE;\n }\n else {\n errorMessage.value = 'Debe completar todo el formulario antes de enviarlo.';\n }\n }\n else {\n errorMessage.value = 'Ha ocurrido un error al enviar la solicitud. Intente nuevamente.';\n }\n error.value = true;\n } setTimeout(() => { loading.value = false; }, ONE_SECOND); }\n function closeAndResetModal() { postSubmitModal.value = false; error.value = false; loading.value = false; }\n return (_ctx, _cache) => { const _component_base_loading = _resolveComponent(\"base-loading\"); const _component_base_modal = _resolveComponent(\"base-modal\"); const _component_v_field = _resolveComponent(\"v-field\"); const _component_VErrorMessage = _resolveComponent(\"VErrorMessage\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_v_form = _resolveComponent(\"v-form\"); return _openBlock(), _createBlock(_component_v_form, { \"validation-schema\": _unref(currentRules), \"keep-values\": \"\", onSubmit: submit }, { default: _withCtx(({ errors }) => [_createVNode(_component_base_modal, { open: postSubmitModal.value }, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_1, [loading.value ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [_createVNode(_component_base_loading, { class: \"mx-auto block\" }), _hoisted_2], 64)) : error.value ? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [_createElementVNode(\"p\", _hoisted_3, _toDisplayString(errorMessage.value), 1), _createElementVNode(\"button\", { class: \"block w-full rounded bg-ama-yellow-300 p-4 text-center font-semibold text-white hover:bg-amber-600\", onClick: closeAndResetModal }, \" Cerrar \")], 64)) : (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [_createElementVNode(\"p\", _hoisted_4, [_createTextVNode(\" Gracias por postular al Fondo de Apoyo Individual, tu postulación con el código \"), _createElementVNode(\"strong\", null, _toDisplayString(savedApplication.value?.hashid), 1), _createTextVNode(\" ha sido ingresada exitosamente, nos pondremos en contacto contigo para informar el estado de tu postulación, también puedes escribirnos a \"), _createElementVNode(\"a\", { href: `mailto:${_unref(email)}` }, _toDisplayString(_unref(email)), 9, _hoisted_5)]), _hoisted_6], 64))])]), _: 1 }, 8, [\"open\"]), _createElementVNode(\"div\", { class: _normalizeClass([\"relative grid grid-cols-1 items-start gap-6 p-4 md:grid-cols-2\", { 'lg:pl-52': props.mode !== 'show' }]) }, [props.mode === 'new' ? (_openBlock(), _createBlock(FormStepper, { key: 0, \"current-step\": formStep.value, \"onUpdate:currentStep\": _cache[0] || (_cache[0] = $event => formStep.value = $event), class: \"absolute top-4 left-0 hidden w-40 lg:block\", steps: formRules.length }, null, 8, [\"current-step\", \"steps\"])) : _createCommentVNode(\"\", true), formStep.value === 0 || props.mode === 'show' ? (_openBlock(), _createBlock(IndividualApplicationFormStepPersonalDetails, { key: 1, \"is-licanantay\": form.isLicanantay, \"onUpdate:isLicanantay\": _cache[1] || (_cache[1] = $event => form.isLicanantay = $event), \"indigenous-certificate\": form.indigenousCertificate, \"onUpdate:indigenousCertificate\": _cache[2] || (_cache[2] = $event => form.indigenousCertificate = $event), \"first-name\": form.firstName, \"onUpdate:firstName\": _cache[3] || (_cache[3] = $event => form.firstName = $event), \"last-name\": form.lastName, \"onUpdate:lastName\": _cache[4] || (_cache[4] = $event => form.lastName = $event), rut: form.rut, \"onUpdate:rut\": _cache[5] || (_cache[5] = $event => form.rut = $event), \"phone-number\": form.phoneNumber, \"onUpdate:phoneNumber\": _cache[6] || (_cache[6] = $event => form.phoneNumber = $event), email: form.email, \"onUpdate:email\": _cache[7] || (_cache[7] = $event => form.email = $event), \"region-id\": form.regionId, \"onUpdate:regionId\": _cache[8] || (_cache[8] = $event => form.regionId = $event), \"commune-id\": form.communeId, \"onUpdate:communeId\": _cache[9] || (_cache[9] = $event => form.communeId = $event), \"locality-id\": form.localityId, \"onUpdate:localityId\": _cache[10] || (_cache[10] = $event => form.localityId = $event), \"locality-other\": form.localityOther, \"onUpdate:localityOther\": _cache[11] || (_cache[11] = $event => form.localityOther = $event), address: form.address, \"onUpdate:address\": _cache[12] || (_cache[12] = $event => form.address = $event), \"identity-card-front\": form.identityCardFront, \"onUpdate:identityCardFront\": _cache[13] || (_cache[13] = $event => form.identityCardFront = $event), \"identity-card-back\": form.identityCardBack, \"onUpdate:identityCardBack\": _cache[14] || (_cache[14] = $event => form.identityCardBack = $event), \"certificate-of-residency\": form.certificateOfResidency, \"onUpdate:certificateOfResidency\": _cache[15] || (_cache[15] = $event => form.certificateOfResidency = $event), \"social-home-registry-certificate-of-residency-selected\": certificatesSelected.socialHomeRegistryCertificateOfResidency, \"onUpdate:socialHomeRegistryCertificateOfResidencySelected\": _cache[16] || (_cache[16] = $event => certificatesSelected.socialHomeRegistryCertificateOfResidency = $event), \"social-home-registry-certificate-of-residency\": form.socialHomeRegistryCertificateOfResidency, \"onUpdate:socialHomeRegistryCertificateOfResidency\": _cache[17] || (_cache[17] = $event => form.socialHomeRegistryCertificateOfResidency = $event), \"community-certificate-of-residency-selected\": certificatesSelected.communityCertificateOfResidency, \"onUpdate:communityCertificateOfResidencySelected\": _cache[18] || (_cache[18] = $event => certificatesSelected.communityCertificateOfResidency = $event), \"community-certificate-of-residency\": form.communityCertificateOfResidency, \"onUpdate:communityCertificateOfResidency\": _cache[19] || (_cache[19] = $event => form.communityCertificateOfResidency = $event), \"certificate-of-residency-service-bill-selected\": certificatesSelected.certificateOfResidencyServiceBill, \"onUpdate:certificateOfResidencyServiceBillSelected\": _cache[20] || (_cache[20] = $event => certificatesSelected.certificateOfResidencyServiceBill = $event), \"certificate-of-residency-service-bill\": form.certificateOfResidencyServiceBill, \"onUpdate:certificateOfResidencyServiceBill\": _cache[21] || (_cache[21] = $event => form.certificateOfResidencyServiceBill = $event), \"certificate-of-residency-employment-contract-selected\": certificatesSelected.certificateOfResidencyEmploymentContract, \"onUpdate:certificateOfResidencyEmploymentContractSelected\": _cache[22] || (_cache[22] = $event => certificatesSelected.certificateOfResidencyEmploymentContract = $event), \"certificate-of-residency-employment-contract\": form.certificateOfResidencyEmploymentContract, \"onUpdate:certificateOfResidencyEmploymentContract\": _cache[23] || (_cache[23] = $event => form.certificateOfResidencyEmploymentContract = $event), \"certificate-of-residency-driving-license-selected\": certificatesSelected.certificateOfResidencyDrivingLicense, \"onUpdate:certificateOfResidencyDrivingLicenseSelected\": _cache[24] || (_cache[24] = $event => certificatesSelected.certificateOfResidencyDrivingLicense = $event), \"certificate-of-residency-driving-license\": form.certificateOfResidencyDrivingLicense, \"onUpdate:certificateOfResidencyDrivingLicense\": _cache[25] || (_cache[25] = $event => form.certificateOfResidencyDrivingLicense = $event), \"certificate-of-residency-other-selected\": certificatesSelected.certificateOfResidencyOther, \"onUpdate:certificateOfResidencyOtherSelected\": _cache[26] || (_cache[26] = $event => certificatesSelected.certificateOfResidencyOther = $event), \"certificate-of-residency-other\": form.certificateOfResidencyOther, \"onUpdate:certificateOfResidencyOther\": _cache[27] || (_cache[27] = $event => form.certificateOfResidencyOther = $event), \"certificate-of-residency-other-file\": form.certificateOfResidencyOtherFile, \"onUpdate:certificateOfResidencyOtherFile\": _cache[28] || (_cache[28] = $event => form.certificateOfResidencyOtherFile = $event), disabled: props.mode === 'show', step: 1, regions: __props.regions, localities: __props.localities, \"default-region\": __props.defaultRegion, \"default-commune\": __props.defaultCommune, intro: props.introPersonalDetails }, null, 8, [\"is-licanantay\", \"indigenous-certificate\", \"first-name\", \"last-name\", \"rut\", \"phone-number\", \"email\", \"region-id\", \"commune-id\", \"locality-id\", \"locality-other\", \"address\", \"identity-card-front\", \"identity-card-back\", \"certificate-of-residency\", \"social-home-registry-certificate-of-residency-selected\", \"social-home-registry-certificate-of-residency\", \"community-certificate-of-residency-selected\", \"community-certificate-of-residency\", \"certificate-of-residency-service-bill-selected\", \"certificate-of-residency-service-bill\", \"certificate-of-residency-employment-contract-selected\", \"certificate-of-residency-employment-contract\", \"certificate-of-residency-driving-license-selected\", \"certificate-of-residency-driving-license\", \"certificate-of-residency-other-selected\", \"certificate-of-residency-other\", \"certificate-of-residency-other-file\", \"disabled\", \"regions\", \"localities\", \"default-region\", \"default-commune\", \"intro\"])) : _createCommentVNode(\"\", true), formStep.value === 1 || props.mode === 'show' ? (_openBlock(), _createBlock(IndividualApplicationFormStepProjectDetails, { key: 2, \"use-disclaimer\": useDisclaimer.value, \"onUpdate:useDisclaimer\": _cache[29] || (_cache[29] = $event => useDisclaimer.value = $event), \"purpose-ids\": form.purposeIds, \"onUpdate:purposeIds\": _cache[30] || (_cache[30] = $event => form.purposeIds = $event), \"purpose-other\": form.purposeOther, \"onUpdate:purposeOther\": _cache[31] || (_cache[31] = $event => form.purposeOther = $event), usage: form.usage, \"onUpdate:usage\": _cache[32] || (_cache[32] = $event => form.usage = $event), \"initiative-name\": form.initiativeName, \"onUpdate:initiativeName\": _cache[33] || (_cache[33] = $event => form.initiativeName = $event), disabled: props.mode === 'show', \"default-purposes\": __props.defaultPurposes, step: 2, intro: props.introProjectDetails }, null, 8, [\"use-disclaimer\", \"purpose-ids\", \"purpose-other\", \"usage\", \"initiative-name\", \"disabled\", \"default-purposes\", \"intro\"])) : _createCommentVNode(\"\", true), formStep.value === 2 || props.mode === 'show' ? (_openBlock(), _createBlock(IndividualApplicationFormStepBankDetails, { key: 3, bank: form.bank, \"onUpdate:bank\": _cache[34] || (_cache[34] = $event => form.bank = $event), \"bank-account-type\": form.bankAccountType, \"onUpdate:bankAccountType\": _cache[35] || (_cache[35] = $event => form.bankAccountType = $event), \"bank-account-number\": form.bankAccountNumber, \"onUpdate:bankAccountNumber\": _cache[36] || (_cache[36] = $event => form.bankAccountNumber = $event), \"bank-certificate\": form.bankCertificate, \"onUpdate:bankCertificate\": _cache[37] || (_cache[37] = $event => form.bankCertificate = $event), \"cashier-check-text\": form.cashierCheckText, \"onUpdate:cashierCheckText\": _cache[38] || (_cache[38] = $event => form.cashierCheckText = $event), disabled: props.mode === 'show', step: 3, \"is-rut-account\": isRutAccount(form.bank, form.bankAccountType), banks: __props.banks, \"bank-account-types\": _unref(computedBankAccountTypes), rut: form.rut, intro: props.introBankDetails }, null, 8, [\"bank\", \"bank-account-type\", \"bank-account-number\", \"bank-certificate\", \"cashier-check-text\", \"disabled\", \"is-rut-account\", \"banks\", \"bank-account-types\", \"rut\", \"intro\"])) : _createCommentVNode(\"\", true), _hoisted_7, _unref(isLastStep) ? (_openBlock(), _createElementBlock(\"label\", _hoisted_8, [_createVNode(_component_v_field, { modelValue: disclaimer.value, \"onUpdate:modelValue\": _cache[39] || (_cache[39] = $event => disclaimer.value = $event), type: \"checkbox\", class: \"mt-2 text-ama-yellow-300\", name: \"disclaimer\", value: true }, null, 8, [\"modelValue\"]), _createTextVNode(\" Los datos personales de los usuarios son de carácter confidencial y serán utilizados únicamente para el cumplimiento de los fines del proceso de postulación y siempre dentro de las competencias y atribuciones de SQM. Si en algún caso llegara a requerirse un tratamiento distinto de lo indicado se solicitará previamente el consentimiento del titular. \")])) : _createCommentVNode(\"\", true), _createVNode(_component_VErrorMessage, { name: \"disclaimer\", as: \"div\", class: \"w-full text-left text-sm text-red-600 md:col-span-2\" }), props.mode === 'new' ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, [_createElementVNode(\"div\", _hoisted_10, [_createVNode(_component_VErrorMessage, { name: \"allDisclaimersAccepted\", as: \"div\" }), Object.keys(errors).length > 0 && _unref(isLastStep) ? (_openBlock(), _createElementBlock(\"p\", _hoisted_11, \" Existen campos invalidos, por favor revisa los pasos anteriores. \")) : _createCommentVNode(\"\", true)]), formStep.value > 0 ? (_openBlock(), _createBlock(_component_base_button, { key: 0, class: \"order-2 block md:order-1\", variant: \"text\", type: \"button\", onClick: prevStep }, { default: _withCtx(() => [_createTextVNode(\" Volver al paso anterior \")]), _: 1 })) : _createCommentVNode(\"\", true), _createVNode(_component_base_button, { class: \"block md:order-2 md:ml-auto\", type: \"submit\" }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(_unref(isLastStep) ? 'Enviar postulación' : 'Ir al siguiente paso'), 1)]), _: 1 })])) : _createCommentVNode(\"\", true)], 2)]), _: 1 }, 8, [\"validation-schema\"]); };\n } });\n","import script from \"./individual-application-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./individual-application-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import api from './index';\nexport default { get(applicationHashid) { const path = `/api/internal/application_states/${applicationHashid}`; return api({ method: 'get', url: path }).then(res => res?.trackingState); } };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, createTextVNode as _createTextVNode, withCtx as _withCtx } from \"vue\";\nconst _hoisted_1 = [\"onSubmit\"];\nconst _hoisted_2 = /*#__PURE__*/ _createElementVNode(\"h2\", { class: \"mb-2 text-xl font-semibold text-slate-800\" }, \" Le falta información a su postulación, ingrese su rut para continuar: \", -1);\nconst _hoisted_3 = { key: 2, class: \"text-right text-xs text-red-600\" };\nconst _hoisted_4 = { class: \"mt-6 flex justify-center\" };\nimport { computed, ref, watch } from 'vue';\nimport { object, string, setLocale, mixed } from 'yup';\nimport es from 'yup-es';\nimport { rutValidate, rutFormat } from 'rut-helpers';\nimport IndividualApplicationApi from 'api/individual-application';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'individual-application-tracker-edit-form', props: { trackingHashid: null }, emits: [\"update:applicationState\"], setup(__props, { emit }) { const props = __props; setLocale(es); const individualApplication = ref(); const currentStep = ref(0); const editFormloading = ref(false); const editFormError = ref(false); const formSteps = [{ rules: object({ rut: string().required().test(value => { if (value) {\n return rutValidate(value);\n } return false; }).label('Rut') }), async onSubmit(values, actions) { try {\n editFormloading.value = true;\n individualApplication.value = await IndividualApplicationApi.show(props.trackingHashid, values.rut);\n currentStep.value = 1;\n }\n catch (error) {\n actions.setErrors({ rut: 'Rut ingresado no corresponde a postulacion.' });\n }\n finally {\n editFormloading.value = false;\n } } }, { rules: object({ certificateOfResidency: mixed().required().label('Certificado de Residencia') }), async onSubmit(values) { try {\n editFormloading.value = true;\n await IndividualApplicationApi.update(props.trackingHashid, individualApplication.value.rut, values);\n emit('update:applicationState');\n }\n catch (error) {\n editFormError.value = true;\n }\n finally {\n editFormloading.value = false;\n } } }]; const currentRules = computed(() => formSteps[currentStep.value]?.rules); const rut = ref(); const certificateOfResidency = ref(); watch(() => rut.value, (newValue, oldValue) => { if (newValue && newValue !== oldValue) {\n rut.value = rutFormat(newValue);\n } }); async function onFormSubmit(values, actions) { formSteps[currentStep.value].onSubmit(values, actions); } return (_ctx, _cache) => { const _component_base_input = _resolveComponent(\"base-input\"); const _component_base_file_input = _resolveComponent(\"base-file-input\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_base_loading = _resolveComponent(\"base-loading\"); const _component_v_form = _resolveComponent(\"v-form\"); return _openBlock(), _createBlock(_component_v_form, { \"validation-schema\": _unref(currentRules), as: \"div\" }, { default: _withCtx(({ handleSubmit, errors }) => [_createElementVNode(\"form\", { onSubmit: $event => handleSubmit($event, onFormSubmit) }, [currentStep.value === 0 ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [_hoisted_2, _createVNode(_component_base_input, { modelValue: rut.value, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => rut.value = $event), required: \"\", name: \"rut\", label: \"RUT\", placeholder: \"12345678-9\" }, null, 8, [\"modelValue\"])], 64)) : _createCommentVNode(\"\", true), currentStep.value === 1 ? (_openBlock(), _createBlock(_component_base_file_input, { key: 1, modelValue: certificateOfResidency.value, \"onUpdate:modelValue\": _cache[1] || (_cache[1] = $event => certificateOfResidency.value = $event), required: \"\", name: \"certificateOfResidency\", label: \"Certificado de Residencia\" }, null, 8, [\"modelValue\"])) : _createCommentVNode(\"\", true), editFormError.value ? (_openBlock(), _createElementBlock(\"p\", _hoisted_3, \" Error al guardar, por favor inténtelo de nuevo. \")) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_4, [!editFormloading.value ? (_openBlock(), _createBlock(_component_base_button, { key: 0, disabled: Object.keys(errors).length > 0, type: \"submit\", class: \"w-full md:w-auto\" }, { default: _withCtx(() => [_createTextVNode(\" Continuar \")]), _: 2 }, 1032, [\"disabled\"])) : (_openBlock(), _createBlock(_component_base_loading, { key: 1 }))])], 40, _hoisted_1)]), _: 1 }, 8, [\"validation-schema\"]); }; } });\n","import script from \"./individual-application-tracker-edit-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./individual-application-tracker-edit-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { key: 0 };\nconst _hoisted_2 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-center text-gray-600\" }, \" Cargando... \", -1);\nconst _hoisted_3 = [_hoisted_2];\nconst _hoisted_4 = { key: 1 };\nconst _hoisted_5 = { key: 0, class: \"flex flex-col items-center\" };\nconst _hoisted_6 = { href: \"/seguimiento\", class: \"mb-8 flex justify-center self-start rounded-lg bg-slate-100 p-2\" };\nconst _hoisted_7 = [\"src\"];\nconst _hoisted_8 = /*#__PURE__*/ _createElementVNode(\"p\", null, \" Volver atrás \", -1);\nconst _hoisted_9 = { key: 0, class: \"rounded-2xl border-2 border-solid border-slate-200 bg-white py-6 px-8 md:w-3/5\" };\nconst _hoisted_10 = { class: \"mb-4 flex flex-col justify-between md:flex-row\" };\nconst _hoisted_11 = { class: \"mb-2 text-xl font-semibold text-slate-800\" };\nconst _hoisted_12 = { class: \"text-slate-600\" };\nconst _hoisted_13 = { class: \"rounded-md bg-ama-blue-50 py-0.5 px-2 text-ama-blue-800\" };\nconst _hoisted_14 = /*#__PURE__*/ _createElementVNode(\"h3\", { class: \"mb-1 text-base text-slate-800\" }, \" Detalle \", -1);\nconst _hoisted_15 = { class: \"text-lg text-slate-600\" };\nconst _hoisted_16 = /*#__PURE__*/ _createElementVNode(\"hr\", { class: \"my-8\" }, null, -1);\nconst _hoisted_17 = { key: 1, class: \"flex flex-col justify-between md:flex-row\" };\nconst _hoisted_18 = { class: \"mb-8 text-justify md:mb-4\" };\nconst _hoisted_19 = /*#__PURE__*/ _createElementVNode(\"h3\", { class: \"mb-1 text-lg font-semibold\" }, \" Estado de rendición de gastos \", -1);\nconst _hoisted_20 = { class: \"text-lg text-slate-600\" };\nconst _hoisted_21 = [\"href\"];\nimport { ref, computed } from 'vue';\nimport { setLocale } from 'yup';\nimport es from 'yup-es';\nimport ApplicationStatesApi from 'api/application-state';\nimport IndividualApplicationTrackerEditForm from './individual-application-tracker-edit-form.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'individual-application-tracker', props: { trackingState: null, applicationExpensesReportStatus: { default: undefined }, missingInfoStateId: { default: undefined }, expensesReportAvailable: { type: Boolean, default: false } }, setup(__props) { const props = __props; setLocale(es); const urlParams = new URLSearchParams(window.location.search); const functionalTrackingState = ref(props.trackingState); const trackingHashid = ref(urlParams.get('applicationId')); const loading = ref(false); const isTrackingStateDefined = computed(() => Object.keys(functionalTrackingState.value).length > 0); const isExpensesReportStatusDefined = computed(() => props.applicationExpensesReportStatus && Object.keys(props.applicationExpensesReportStatus).length > 0); async function submit() { loading.value = true; const response = await ApplicationStatesApi.get(trackingHashid.value); if (response) {\n window.history.pushState(null, '', `?applicationId=${trackingHashid.value}`);\n functionalTrackingState.value = response;\n }\n else {\n functionalTrackingState.value = { id: 0, name: '', description: '', order: 0 };\n } loading.value = false; } const computedApplicationExpensesReportMessagePath = computed(() => { if (!isExpensesReportStatusDefined.value) {\n return '';\n } if (props.expensesReportAvailable) {\n return 'individualApplicationTracker.applicationExpensesReportStatuses.available';\n } return 'individualApplicationTracker.applicationExpensesReportStatuses.unavailable'; }); return (_ctx, _cache) => { return loading.value ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, _hoisted_3)) : (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [_unref(isTrackingStateDefined) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [_createElementVNode(\"a\", _hoisted_6, [_createElementVNode(\"img\", { src: require('images/left-arrow.svg') }, null, 8, _hoisted_7), _hoisted_8]), functionalTrackingState.value.id ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, [_createElementVNode(\"div\", _hoisted_10, [_createElementVNode(\"h2\", _hoisted_11, \" N° de postulación #\" + _toDisplayString(trackingHashid.value), 1), _createElementVNode(\"p\", _hoisted_12, [_createTextVNode(\" Estado de postulación: \"), _createElementVNode(\"span\", _hoisted_13, _toDisplayString(functionalTrackingState.value.name), 1)])]), _hoisted_14, _createElementVNode(\"p\", _hoisted_15, _toDisplayString(functionalTrackingState.value.description), 1), _hoisted_16, __props.missingInfoStateId == functionalTrackingState.value.id && trackingHashid.value ? (_openBlock(), _createBlock(IndividualApplicationTrackerEditForm, { key: 0, \"tracking-hashid\": trackingHashid.value, \"onUpdate:applicationState\": submit }, null, 8, [\"tracking-hashid\"])) : _createCommentVNode(\"\", true), _unref(isExpensesReportStatusDefined) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_17, [_createElementVNode(\"div\", _hoisted_18, [_hoisted_19, _createElementVNode(\"p\", _hoisted_20, _toDisplayString(_ctx.$t(`${_unref(computedApplicationExpensesReportMessagePath)}.` + `${props.applicationExpensesReportStatus?.status}`)), 1)])])) : _createCommentVNode(\"\", true), __props.expensesReportAvailable ? (_openBlock(), _createElementBlock(\"a\", { key: 2, href: `/programas/rendicion?applicationId=${trackingHashid.value}`, class: \"flex justify-center rounded-lg bg-ama-blue-600 py-2 px-4 text-white hover:bg-ama-blue-800\" }, \" Ir a la rendición de gastos \", 8, _hoisted_21)) : _createCommentVNode(\"\", true)])) : _createCommentVNode(\"\", true)])) : _createCommentVNode(\"\", true)])); }; } });\n","import script from \"./individual-application-tracker.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./individual-application-tracker.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createElementVNode as _createElementVNode, unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\";\nconst _hoisted_1 = /*#__PURE__*/ _createElementVNode(\"h2\", { class: \"mb-6 font-title text-2xl font-bold text-slate-800 md:text-4xl\" }, \" Revisar estado de postulación \", -1);\nconst _hoisted_2 = { class: \"mt-6 flex justify-center\" };\nimport { ref } from 'vue';\nimport { object, string, setLocale } from 'yup';\nimport es from 'yup-es';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'individual-application-tracker-finder', setup(__props) { setLocale(es); const trackingHashid = ref(''); const HASHID_LENGTH = 8; const currentRules = object({ trackingHashid: string().nullable().required().matches(/^[0-9a-zA-Z]+$/, 'Formato de código de seguimiento inválido').min(HASHID_LENGTH).max(HASHID_LENGTH).label('Código de seguimiento') }); function submit() { window.location.href = `/seguimiento?applicationId=${trackingHashid.value}`; } return (_ctx, _cache) => { const _component_base_input = _resolveComponent(\"base-input\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_v_form = _resolveComponent(\"v-form\"); return _openBlock(), _createElementBlock(\"div\", null, [_hoisted_1, _createVNode(_component_v_form, { \"validation-schema\": _unref(currentRules), onSubmit: submit }, { default: _withCtx(({ errors }) => [_createVNode(_component_base_input, { modelValue: trackingHashid.value, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => trackingHashid.value = $event), required: \"\", label: \"Por favor, ingresa el código de seguimiento\", type: \"text\", name: \"trackingHashid\", placeholder: \"Ejemplo: 12345678\", autofocus: true }, null, 8, [\"modelValue\"]), _createElementVNode(\"div\", _hoisted_2, [_createVNode(_component_base_button, { type: \"submit\", class: \"w-full md:w-auto\", disabled: Object.keys(errors).length > 0 }, { default: _withCtx(() => [_createTextVNode(\" Consultar postulación \")]), _: 2 }, 1032, [\"disabled\"])])]), _: 1 }, 8, [\"validation-schema\"])]); }; } });\n","import script from \"./individual-application-tracker-finder.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./individual-application-tracker-finder.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { serialize } from 'object-to-formdata';\nimport api from './index';\nimport decamelizeKeys from '../utils/decamelize-for-files';\nexport const MIN_PASSWORD_LENGTH = 8;\nexport default { login(rut, password, remember) { const path = '/usuarios/sign_in'; return api({ method: 'post', url: path, data: decamelizeKeys({ user: { rut, password, rememberMe: remember } }) }); }, register(user) { const path = '/usuarios'; return api({ method: 'post', url: path, data: decamelizeKeys({ user }) }); }, forgotPassword(rut) { const path = '/usuarios/password'; return api({ method: 'post', url: path, data: decamelizeKeys({ user: { rut } }) }); }, changePassword(user) { const path = '/usuarios/password'; return api({ method: 'put', url: path, data: decamelizeKeys({ user }) }); }, update(data) { const path = '/api/internal/users/me'; let requestData = {}; if (data.applicationId) {\n requestData = { applicationId: data.applicationId };\n }\n else {\n requestData = { user: data };\n } return api({ method: 'put', headers: { 'Content-Type': 'multipart/form-data' }, url: path, data: serialize(decamelizeKeys({ ...requestData })) }); }, sendApplicationIdEmail() { const path = '/api/internal/users/me/send_application_id_email'; return api({ method: 'post', url: path }); }, logout() { const path = '/usuarios/sign_out'; return api({ method: 'delete', url: path }); } };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, createElementVNode as _createElementVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass } from \"vue\";\nconst _hoisted_1 = /*#__PURE__*/ _createElementVNode(\"a\", { href: \"/usuarios/perfil\", class: \"inline-flex w-full items-center justify-center\" }, \" Perfil \", -1);\nconst _hoisted_2 = { key: 1, href: \"/usuarios/sign_in\", class: \"inline-flex items-center justify-center gap-2 self-center rounded bg-yellow-600 px-6 py-2 text-white\" };\nimport useSiteVariables from '../composables/useSiteVariables';\nimport usersApi from '../api/users';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'header-user-links', props: { vertical: { type: Boolean } }, setup(__props) { const props = __props; const { loggedIn } = useSiteVariables(); async function logout() { await usersApi.logout(); window.location.reload(); } return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); return _openBlock(), _createElementBlock(\"div\", { class: _normalizeClass([\"flex h-20 gap-4 pb-1 text-stone-600\", props.vertical ? 'flex-col' : 'flex-row']) }, [_unref(loggedIn) ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [_hoisted_1, _createElementVNode(\"button\", { class: \"inline-flex shrink-0 items-center justify-center gap-2 self-center rounded bg-yellow-600 px-6 py-2 text-white\", onClick: logout }, \" Cerrar sesión \")], 64)) : (_openBlock(), _createElementBlock(\"a\", _hoisted_2, [_createVNode(_component_inline_svg, { src: require('../../assets/images/user.svg') }, null, 8, [\"src\"]), _createTextVNode(\" Ingresar \")]))], 2); }; } });\n","import script from \"./header-user-links.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./header-user-links.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { serialize } from 'object-to-formdata';\nimport api from './index';\nexport default { setLocale(locale) { const path = '/set_locale'; return api({ method: 'post', url: path, headers: { 'Accept': 'text/html', 'Content-Type': 'multipart/form-data' }, data: serialize({ locale }) }); }, hideFeedbackBanner() { const path = '/api/internal/settings/hide_feedback_banner'; return api({ method: 'post', url: path }); } };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from \"vue\";\nconst _hoisted_1 = { key: 0, class: \"border-black\" };\nimport { Menu, MenuButton, MenuItem, MenuItems } from '@headlessui/vue';\nimport useSiteVariables from '../composables/useSiteVariables';\nimport settingsApi from '../api/settings';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'language-dropdown', setup(__props) { const { availableLocales, locale } = useSiteVariables(); async function setLocale(newLocale) { await settingsApi.setLocale(newLocale); window.location.reload(); } return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); return _openBlock(), _createBlock(_unref(Menu), { as: \"div\", class: \"relative text-stone-600\" }, { default: _withCtx(() => [_createVNode(_unref(MenuButton), { class: \"inline-flex shrink-0 grow-0 items-center justify-center gap-1\" }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.$t(`locales.${_unref(locale)}`)) + \" \", 1), _createVNode(_component_inline_svg, { src: require('../../assets/images/triangle-down.svg'), class: \"inline-block h-2 fill-current\" }, null, 8, [\"src\"])]), _: 1 }), _createVNode(_unref(MenuItems), { ref: \"form\", class: \"absolute right-0 z-10 flex flex-col bg-white shadow-md\", as: \"form\", action: \"/set_locale\", method: \"post\" }, { default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(availableLocales), (availableLocale, idx) => { return _openBlock(), _createElementBlock(_Fragment, { key: availableLocale }, [_createVNode(_unref(MenuItem), { as: \"button\", class: \"flex items-center justify-center gap-1 p-1\", name: \"locale\", value: _unref(locale), onClick: $event => setLocale(availableLocale) }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.$t(`locales.${availableLocale}`)) + \" \", 1), availableLocale === _unref(locale) ? (_openBlock(), _createBlock(_component_inline_svg, { key: 0, src: require('../../assets/images/check.svg'), class: \"inline-block h-4 w-4\" }, null, 8, [\"src\"])) : _createCommentVNode(\"\", true)]), _: 2 }, 1032, [\"value\", \"onClick\"]), idx !== _unref(availableLocales).length - 1 ? (_openBlock(), _createElementBlock(\"hr\", _hoisted_1)) : _createCommentVNode(\"\", true)], 64); }), 128))]), _: 1 }, 512)]), _: 1 }); }; } });\n","import script from \"./language-dropdown.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./language-dropdown.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createCommentVNode as _createCommentVNode, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { class: \"container mx-auto flex items-center justify-between bg-white px-5 xl:px-20\" };\nconst _hoisted_2 = { href: \"/\" };\nconst _hoisted_3 = { class: \"hidden lg:block\" };\nconst _hoisted_4 = { class: \"flex items-center justify-center gap-6 text-stone-600\" };\nconst _hoisted_5 = [\"href\"];\nconst _hoisted_6 = { class: \"flex flex-row items-center justify-center gap-4\" };\nconst _hoisted_7 = /*#__PURE__*/ _createElementVNode(\"svg\", { viewBox: \"0 0 24 24\" }, [/*#__PURE__*/ _createElementVNode(\"path\", { fill: \"currentColor\", d: \"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z\" })], -1);\nconst _hoisted_8 = [_hoisted_7];\nimport { inject } from 'vue';\nimport useSiteVariables from '../composables/useSiteVariables';\nimport HeaderUserLinks from './header-user-links.vue';\nimport LanguageDropdown from './language-dropdown.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'the-nav-bar', setup(__props) {\n const { usersEnabled, loggedIn } = useSiteVariables();\n const menuItems = inject('menuItems');\n const toggleMenu = inject('toggleMenu');\n return (_ctx, _cache) => {\n const _component_inline_svg = _resolveComponent(\"inline-svg\");\n return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"a\", _hoisted_2, [_createVNode(_component_inline_svg, { src: require('../../assets/images/ama_logo_color.svg'), class: \"w-24\" }, null, 8, [\"src\"])]), _createElementVNode(\"nav\", _hoisted_3, [_createElementVNode(\"ul\", _hoisted_4, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(menuItems), menuItem => { return _openBlock(), _createElementBlock(_Fragment, { key: menuItem.href }, [menuItem.requireLogin && _unref(loggedIn) || !menuItem.requireLogin ? (_openBlock(), _createElementBlock(\"li\", { key: 0, class: _normalizeClass([\"flex h-20 items-center justify-center border-b-4\", [menuItem.active ? 'border-ama-yellow-300 font-bold' : 'border-transparent']]) }, [_createElementVNode(\"a\", { href: menuItem.href }, _toDisplayString(menuItem.label), 9, _hoisted_5)], 2)) : _createCommentVNode(\"\", true)], 64); }), 128))])]), _createElementVNode(\"div\", _hoisted_6, [_unref(usersEnabled) ? (_openBlock(), _createBlock(HeaderUserLinks, { key: 0, class: \"hidden lg:flex\" })) : _createCommentVNode(\"\", true), _createVNode(LanguageDropdown), _createElementVNode(\"button\", { class: \"h-8 w-8 lg:hidden\", onClick: _cache[0] || (_cache[0] = //@ts-ignore\n (...args) => _unref(toggleMenu) && _unref(toggleMenu)(...args)) }, _hoisted_8)])]);\n };\n } });\n","import script from \"./the-nav-bar.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./the-nav-bar.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createElementVNode as _createElementVNode, Teleport as _Teleport, openBlock as _openBlock, createBlock as _createBlock, resolveComponent as _resolveComponent, createVNode as _createVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createCommentVNode as _createCommentVNode } from \"vue\";\nconst _hoisted_1 = { key: 0, class: \"fixed inset-y-0 right-0 z-30 flex w-72 flex-col bg-ama-brown-50 text-ama-brown-800\" };\nconst _hoisted_2 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"fixed inset-0 z-10 bg-black opacity-20\" }, null, -1);\nconst _hoisted_3 = { class: \"mb-12 flex h-20 items-center py-4 px-6\" };\nconst _hoisted_4 = /*#__PURE__*/ _createElementVNode(\"h3\", { class: \"text-lg\" }, \" Menu \", -1);\nconst _hoisted_5 = [\"href\"];\nconst _hoisted_6 = { key: 0, class: \"py-3 px-5\" };\nimport { inject } from 'vue';\nimport useSiteVariables from '../composables/useSiteVariables';\nimport HeaderUserLinks from './header-user-links.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'the-nav-sidebar', props: { open: { type: Boolean } }, emits: ['close'], setup(__props) { const menuItems = inject('menuItems'); const { usersEnabled, loggedIn } = useSiteVariables(); return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); return __props.open ? (_openBlock(), _createElementBlock(\"nav\", _hoisted_1, [(_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [_hoisted_2])), _createElementVNode(\"div\", _hoisted_3, [_hoisted_4, _createElementVNode(\"button\", { class: \"ml-auto\", title: \"Close\", onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('close')) }, [_createVNode(_component_inline_svg, { src: require('../../assets/images/close.svg'), class: \"fill-ama-brown-800\" }, null, 8, [\"src\"])])]), _createElementVNode(\"ul\", null, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(menuItems), menuItem => { return _openBlock(), _createElementBlock(_Fragment, { key: menuItem.href }, [menuItem.requireLogin && _unref(loggedIn) || !menuItem.requireLogin ? (_openBlock(), _createElementBlock(\"li\", { key: 0, class: _normalizeClass([\"mb-5 border-l-8 py-3 px-5 text-lg\", [menuItem.active ? 'border-ama-yellow-300 font-bold' : 'border-white']]) }, [_createElementVNode(\"a\", { href: menuItem.href }, _toDisplayString(menuItem.label), 9, _hoisted_5)], 2)) : _createCommentVNode(\"\", true)], 64); }), 128))]), _unref(usersEnabled) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [_createVNode(HeaderUserLinks, { vertical: true })])) : _createCommentVNode(\"\", true)])) : _createCommentVNode(\"\", true); }; } });\n","import script from \"./the-nav-sidebar.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./the-nav-sidebar.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import decamelizeKeys from '../utils/decamelize-for-files';\nimport api from './index';\nexport default { create(data) { const path = '/api/internal/contact_form_messages'; return api({ method: 'post', url: path, data: decamelizeKeys({ contactFormMessage: data }) }); } };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx, unref as _unref, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { key: 0, class: \"flex flex-col items-center justify-center\" };\nconst _hoisted_2 = /*#__PURE__*/ _createElementVNode(\"p\", null, \"Estamos enviando su mensaje...\", -1);\nconst _hoisted_3 = { key: 1, class: \"flex flex-col items-center justify-center\" };\nconst _hoisted_4 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mb-6 text-center text-lg text-ama-purple-900\" }, \" Tu mensaje ha sido enviado, pronto nos comunicaremos contigo al correo o número telefónico indicado en el formulario. Muchas gracias por tu interés en el Programa AMA. \", -1);\nconst _hoisted_5 = { key: 0, class: \"mt-4 text-center text-lg font-semibold text-ama-purple-900\" };\nimport { reactive, ref } from 'vue';\nimport { object, string, setLocale } from 'yup';\nimport es from 'yup-es';\nimport ContactFormMessageApi from 'api/contact-form-message';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'the-contact-form-modal', props: { isOpen: { type: Boolean } }, emits: [\"close\"], setup(__props) { setLocale(es); const PHONE_NUMBER_LENGTH = 8; const formRules = object({ fullName: string().required().label('Nombre'), email: string().required().email().label('Correo Electrónico'), phoneNumber: string().matches(/^[0-9]+$/, 'El campo Teléfono no es válido').min(PHONE_NUMBER_LENGTH).max(PHONE_NUMBER_LENGTH).required().label('Teléfono'), message: string().required().label('Mensaje') }); const form = reactive({ fullName: '', email: '', phoneNumber: '', message: '' }); const loading = ref(false); const error = ref(false); const success = ref(false); async function submit() { const ONE_SECOND = 1000; loading.value = true; error.value = false; try {\n await ContactFormMessageApi.create(form);\n success.value = true;\n }\n catch (e) {\n error.value = true;\n } setTimeout(() => { loading.value = false; }, ONE_SECOND); } return (_ctx, _cache) => { const _component_base_loading = _resolveComponent(\"base-loading\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_base_input = _resolveComponent(\"base-input\"); const _component_v_form = _resolveComponent(\"v-form\"); const _component_base_modal = _resolveComponent(\"base-modal\"); return _openBlock(), _createBlock(_component_base_modal, { open: __props.isOpen, onClose: _cache[5] || (_cache[5] = $event => _ctx.$emit('close')) }, { title: _withCtx(() => [_createTextVNode(\" Contáctanos \")]), default: _withCtx(() => [loading.value ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createVNode(_component_base_loading, { class: \"mx-auto block\" }), _hoisted_2])) : !error.value && success.value ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [_hoisted_4, _createVNode(_component_base_button, { type: \"button\", onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('close')) }, { default: _withCtx(() => [_createTextVNode(\" Cerrar \")]), _: 1 })])) : !success.value ? (_openBlock(), _createBlock(_component_v_form, { key: 2, \"validation-schema\": _unref(formRules), class: \"flex flex-col\", onSubmit: submit }, { default: _withCtx(() => [_createVNode(_component_base_input, { modelValue: form.fullName, \"onUpdate:modelValue\": _cache[1] || (_cache[1] = $event => form.fullName = $event), class: \"mb-4\", required: \"\", name: \"fullName\", label: \"Nombre\" }, null, 8, [\"modelValue\"]), _createVNode(_component_base_input, { modelValue: form.email, \"onUpdate:modelValue\": _cache[2] || (_cache[2] = $event => form.email = $event), class: \"mb-4\", required: \"\", name: \"email\", label: \"Correo Electrónico\", placeholder: \"email@dominio.com\", type: \"email\" }, null, 8, [\"modelValue\"]), _createVNode(_component_base_input, { modelValue: form.phoneNumber, \"onUpdate:modelValue\": _cache[3] || (_cache[3] = $event => form.phoneNumber = $event), class: \"mb-4\", required: \"\", name: \"phoneNumber\", label: \"Teléfono\", placeholder: \"99999999\" }, { prefix: _withCtx(() => [_createTextVNode(\" +56 9 \")]), _: 1 }, 8, [\"modelValue\"]), _createVNode(_component_base_input, { is: \"textarea\", modelValue: form.message, \"onUpdate:modelValue\": _cache[4] || (_cache[4] = $event => form.message = $event), class: \"mb-4\", required: \"\", name: \"message\", label: \"Mensaje\" }, null, 8, [\"modelValue\"]), _createVNode(_component_base_button, { class: \"md:ml-auto\", type: \"submit\" }, { default: _withCtx(() => [_createTextVNode(\" Enviar \")]), _: 1 }), error.value ? (_openBlock(), _createElementBlock(\"p\", _hoisted_5, \" Hubo un problema al guardar su postulación, por favor inténtelo nuevamente \")) : _createCommentVNode(\"\", true)]), _: 1 }, 8, [\"validation-schema\"])) : _createCommentVNode(\"\", true)]), _: 1 }, 8, [\"open\"]); }; } });\n","import script from \"./the-contact-form-modal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./the-contact-form-modal.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { resolveComponent as _resolveComponent, createVNode as _createVNode, unref as _unref, isRef as _isRef, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, vShow as _vShow, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\";\nconst _hoisted_1 = { class: \"flex\" };\nimport { useField } from 'vee-validate';\nimport Multiselect from 'vue-multiselect';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-multiselect', props: { modelValue: { default: undefined }, options: null, label: null, name: null, placeholder: { default: undefined }, required: { type: Boolean }, labelHint: { default: undefined }, searchable: { type: Boolean, default: false } }, setup(__props) { const props = __props; const { value: inputValue, errorMessage, handleBlur } = useField(props.name, undefined, { initialValue: props.modelValue, valueProp: props.modelValue }); return (_ctx, _cache) => { const _component_BaseLabel = _resolveComponent(\"BaseLabel\"); return _openBlock(), _createElementBlock(\"div\", null, [_createVNode(_component_BaseLabel, { label: __props.label, name: __props.name, required: __props.required, \"label-hint\": __props.labelHint }, null, 8, [\"label\", \"name\", \"required\", \"label-hint\"]), _createElementVNode(\"div\", _hoisted_1, [_createVNode(_unref(Multiselect), { modelValue: _unref(inputValue), \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => _isRef(inputValue) ? inputValue.value = $event : null), multiple: \"\", options: __props.options, searchable: __props.searchable, placeholder: __props.placeholder, label: \"name\", \"track-by\": \"id\", class: _normalizeClass([{ 'border-red-600 text-red-600': !!_unref(errorMessage) }]), onBlur: _unref(handleBlur) }, null, 8, [\"modelValue\", \"options\", \"searchable\", \"placeholder\", \"class\", \"onBlur\"])]), _withDirectives(_createElementVNode(\"p\", { class: \"text-right text-xs text-red-600 md:col-span-2\" }, _toDisplayString(_unref(errorMessage)), 513), [[_vShow, _unref(errorMessage)]])]); }; } });\n","import script from \"./base-multiselect.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-multiselect.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"vue-multiselect/dist/vue-multiselect.css?vue&type=style&index=0&lang=css\"\nimport \"./base-multiselect.vue?vue&type=style&index=1&id=5e0b5de9&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import script from \"./base-tag.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-tag.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\";\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-tag', props: { color: { default: 'yellow' } }, setup(__props) { const props = __props; const colorClasses = { yellow: 'bg-ama-yellow-50 text-ama-brown-700', peach: 'bg-ama-peach text-ama-brown-700', blue: 'bg-ama-blue-50 text-ama-blue-800' }; return (_ctx, _cache) => { return _openBlock(), _createElementBlock(\"span\", { class: _normalizeClass([\"inline-flex rounded py-1 px-2 text-center\", colorClasses[props.color]]) }, [_renderSlot(_ctx.$slots, \"default\")], 2); }; } });\n","import { defineComponent as _defineComponent } from 'vue';\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveDynamicComponent as _resolveDynamicComponent, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from \"vue\";\nconst _hoisted_1 = { class: \"rounded-lg border border-ama-brown-700 p-3 pt-2 text-ama-brown-900\" };\nconst _hoisted_2 = { class: \"h-fit w-full border-spacing-0\" };\nconst _hoisted_3 = { class: \"border-b border-ama-brown-900\" };\nconst _hoisted_4 = { class: \"flex h-full items-center justify-center py-2 text-center group-hover:bg-ama-brown-100\" };\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-table', props: { headers: null, items: null }, setup(__props) { const props = __props; return (_ctx, _cache) => { return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"table\", _hoisted_2, [_createElementVNode(\"thead\", null, [_createElementVNode(\"tr\", _hoisted_3, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(props.headers, header => { return _openBlock(), _createElementBlock(\"th\", { key: header, class: \"py-2 text-center font-normal\" }, _toDisplayString(header), 1); }), 128))])]), _createElementVNode(\"tbody\", null, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(props.items, (item, index) => { return _openBlock(), _createElementBlock(\"tr\", { key: index, class: \"group h-full border-b text-ama-brown-700 last:border-b-0\" }, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(item, (detail, key) => { return _openBlock(), _createElementBlock(\"td\", { key: key, class: \"px-0 py-2\" }, [_createElementVNode(\"div\", _hoisted_4, [detail ? (_openBlock(), _createBlock(_resolveDynamicComponent({ template: detail, functional: true }), { key: 0 })) : _createCommentVNode(\"\", true)])]); }), 128))]); }), 128))])])]); }; } });\n","import script from \"./base-table.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-table.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n\n","import { render } from \"./base-table-button.vue?vue&type=template&id=03942ace\"\nconst script = {}\n\nimport exportComponent from \"/tmp/build_f95d8692/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, createElementVNode as _createElementVNode, withCtx as _withCtx, createVNode as _createVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, resolveDynamicComponent as _resolveDynamicComponent, createBlock as _createBlock, mergeProps as _mergeProps, createSlots as _createSlots, normalizeClass as _normalizeClass, createTextVNode as _createTextVNode, withModifiers as _withModifiers } from \"vue\";\nconst _hoisted_1 = { class: \"flex flex-col items-center justify-center\" };\nconst _hoisted_2 = [\"innerHTML\"];\nconst _hoisted_3 = /*#__PURE__*/ _createElementVNode(\"a\", { href: \"/\", class: \"block w-full rounded bg-ama-yellow-300 p-4 text-center font-semibold text-white hover:bg-amber-600\" }, \" Cerrar \", -1);\nconst _hoisted_4 = { key: 0, class: \"relative grid grid-cols-1 items-start gap-6 md:grid-cols-2\" };\nconst _hoisted_5 = { class: \"md:col-span-2\" };\nconst _hoisted_6 = { key: 0, class: \"text-3xl font-semibold text-slate-700\" };\nconst _hoisted_7 = { key: 1, class: \"font-semibold\" };\nconst _hoisted_8 = { class: \"col-span-1 flex flex-col gap-4 md:col-span-2 md:flex-row\" };\nconst _hoisted_9 = { key: 1, class: \"col-span-2 text-sm text-red-600 md:col-span-2\" };\nconst _hoisted_10 = [\"href\"];\nimport { setLocale, object } from 'yup';\nimport { useForm } from 'vee-validate';\nimport isEmpty from 'lodash/isEmpty';\nimport { reactive, watch, ref, computed } from 'vue';\nimport es from 'yup-es';\nimport formApi from 'api/form';\nimport BaseModal from './base-modal.vue';\nimport BaseButton from './base-button.vue';\nimport useSiteVariables from '../composables/useSiteVariables';\nimport useFormBuilder from '../composables/useFormBuilder';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-form', props: { form: null }, setup(__props) {\n const props = __props;\n setLocale(es);\n const { email } = useSiteVariables();\n const { inputTypes, validations, parseConditions, getSelectedRemoteOptionText } = useFormBuilder(); // eslint-disable-next-line max-statements, complexity\n function transformValue(input) { const finalValue = { value: input.value || input.parsedDefaultValue, formResponseFieldSelectedOptionsAttributes: undefined, file: undefined, dateValue: undefined }; if (input.valueType === 'file') {\n finalValue.file = input.value;\n finalValue.value = undefined;\n } if (input.valueType === 'multiple' || input.inputType === 'radio') {\n const values = Array.isArray(input.value) ? input.value : [input.value];\n finalValue.formResponseFieldSelectedOptionsAttributes = values.map(v => { if (input.formFieldOptions.find(option => option.id === v)) {\n return { formFieldOptionId: v };\n } return { customValue: getSelectedRemoteOptionText(input.name, v) }; });\n finalValue.value = undefined;\n } if (input.valueType === 'date') {\n finalValue.dateValue = input.value;\n finalValue.value = undefined;\n } return finalValue; }\n const parsedFields = reactive(props.form.formSteps.reduce((fields, step) => { step.formFields.forEach(field => { fields[field.name] = { ...inputTypes[field.inputType], ...field, value: field.parsedDefaultValue || undefined, attrs: { ...inputTypes[field.inputType].attrs, options: field.formFieldOptions.map(value => ({ id: value.id, name: value.value })) } }; }); return fields; }, {}));\n const initialValues = computed(() => Object.entries(parsedFields).reduce((acc, [key, value]) => { acc[key] = value.parsedDefaultValue ? value.parsedDefaultValue : undefined; return acc; }, {}));\n const parsedFieldsWithConditions = computed(() => Object.entries(parsedFields).filter(([, field]) => { if (field.conditions && !isEmpty(field.conditions)) {\n return parseConditions(field.conditions, parsedFields);\n } return true; }).reduce((acc, [key, value]) => { acc[key] = value; return acc; }, {}));\n const validationSchema = computed(() => props.form.formSteps.map(step => object(step.formFields.filter(field => !!parsedFieldsWithConditions.value[field.name]).reduce((fields, field) => {\n const parsedField = parsedFieldsWithConditions.value[field.name];\n let parsedFieldValidation = Object.entries(parsedField.validations || {}).reduce(// eslint-disable-next-line complexity, max-statements\n (acc, [key, value]) => { if (key === 'required') {\n const requiredConditions = parsedField.validations?.requiredConditions;\n if (value && requiredConditions) {\n return validations[key].schema(requiredConditions, acc, parsedFields);\n }\n return validations[key].schema(value, acc, parsedFields);\n } if (key === '==' || key === '!=') {\n return validations[key].schema(value, acc, parsedField);\n } return acc; }, // eslint-disable-next-line @typescript-eslint/no-explicit-any\n parsedField.validation);\n if ((parsedField.validations || {}).required) {\n parsedFieldValidation = parsedFieldValidation.transform(value => { if (Array.isArray(value)) {\n return value.length > 0 ? value : undefined;\n } return value; });\n }\n else {\n parsedFieldValidation = parsedFieldValidation.optional().transform((value, input) => input ? value : undefined);\n }\n parsedFieldValidation = parsedFieldValidation.label(field.label);\n fields[field.name] = parsedFieldValidation;\n return fields;\n }, {}))));\n function parseStringWithFormFieldValue(value) { if (!value)\n return value; const matches = value.match(/{([^}]+)}/g); if (!matches)\n return value; const fieldName = matches[0].replace(/{|}/g, ''); return value.replace(matches[0], parsedFieldsWithConditions.value[fieldName].value); }\n const requiredFields = computed(() => validationSchema.value.map(steps => { const fields = Object.entries(steps.describe().fields).filter(([, field]) => field.tests.some(test => test.name === 'required')).map(([key]) => key); return fields; }).flat());\n const currentStepIdx = ref(0);\n const currentStep = computed(() => props.form.formSteps[currentStepIdx.value]);\n const currentStepFields = computed(() => { const fields = currentStep.value.formFields.filter(field => !!parsedFieldsWithConditions.value[field.name]).map(field => parsedFieldsWithConditions.value[field.name]); return fields; });\n const isLastStep = computed(() => currentStepIdx.value === props.form.formSteps.length - 1);\n const currentValidationSchema = computed(() => validationSchema.value[currentStepIdx.value]);\n const fieldWatchers = {};\n watch(() => parsedFieldsWithConditions.value, newValue => { Object.values(newValue).forEach(field => { if (field.watch) {\n if (fieldWatchers[field.name]) {\n fieldWatchers[field.name]();\n }\n fieldWatchers[field.name] = watch(() => field.value, field.watch(field), { immediate: true });\n } }); }, { immediate: true });\n const individualApplicationId = ref();\n const successMessage = computed(() => {\n const message = props.form.successMessage || `\n El formulario ha sido enviado exitosamente. Si corresponde, nos pondremos en contacto contigo.\n Para cualquier duda, puedes escribirnos a %AMA_EMAIL%.`;\n const codes = { '%AMA_EMAIL%': `${email}`, '%CODIGO_POSTULACION_FAI%': `${individualApplicationId.value}` };\n return message.replaceAll(/%\\w+%/g, match => codes[match] || '');\n });\n const { handleSubmit } = useForm({ validationSchema: currentValidationSchema, keepValuesOnUnmount: true, initialValues });\n const loading = ref(false);\n const error = ref(false);\n const postSubmitModal = ref(false); // eslint-disable-next-line max-statements\n const onSubmit = handleSubmit(async (values) => {\n if (!isLastStep.value) {\n currentStepIdx.value += 1;\n return;\n }\n const formResponseFieldsAttributes = Object.entries(values || {}).map(([key]) => ({ formFieldId: parsedFields[key].id, ...transformValue(parsedFields[key]) }));\n error.value = false;\n loading.value = true;\n try {\n const formResponse = await formApi.createFormResponse({ formId: props.form.slug, formResponseFieldsAttributes });\n if (props.form.applicationProcessId) {\n formApi.showFormResponse(formResponse.id).then(response => { individualApplicationId.value = response.individualApplicationId; }).catch(err => {\n console.error(err);\n });\n }\n postSubmitModal.value = true;\n }\n catch (err) {\n error.value = true;\n }\n finally {\n loading.value = false;\n }\n });\n return (_ctx, _cache) => {\n return _openBlock(), _createElementBlock(\"div\", null, [_createVNode(BaseModal, { open: postSubmitModal.value }, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_1, [_createElementVNode(\"p\", { class: \"mb-6 text-center text-lg text-ama-purple-900\", innerHTML: _unref(successMessage) }, null, 8, _hoisted_2), _hoisted_3])]), _: 1 }, 8, [\"open\"]), _createElementVNode(\"form\", { onSubmit: _cache[1] || (_cache[1] = _withModifiers(//@ts-ignore\n (...args) => _unref(onSubmit) && _unref(onSubmit)(...args), [\"prevent\"])) }, [_unref(currentStep) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [_createElementVNode(\"div\", _hoisted_5, [_unref(currentStep).title ? (_openBlock(), _createElementBlock(\"h3\", _hoisted_6, _toDisplayString(_unref(currentStep).title), 1)) : _createCommentVNode(\"\", true), _unref(currentStep).description ? (_openBlock(), _createElementBlock(\"p\", _hoisted_7, _toDisplayString(_unref(currentStep).description), 1)) : _createCommentVNode(\"\", true)]), (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(currentStepFields), field => { return _openBlock(), _createElementBlock(\"div\", { key: field.id, class: _normalizeClass([\"mb-4\", { 'md:col-span-2': field.fullWidth }]) }, [(_openBlock(), _createBlock(_resolveDynamicComponent(field.component), _mergeProps(field.attrs, { modelValue: field.value, \"onUpdate:modelValue\": $event => field.value = $event, name: field.name, label: field.label, \"data-url\": parseStringWithFormFieldValue(field.dataUrl), \"data-key\": field.dataKey, disabled: loading.value || field.disabled, required: _unref(requiredFields).includes(field.name) }), _createSlots({ _: 2 }, [_renderList(parsedFields[field.name].slots, slot => { return { name: slot.name, fn: _withCtx(() => [(_openBlock(), _createBlock(_resolveDynamicComponent({ 'template': slot.content })))]) }; })]), 1040, [\"modelValue\", \"onUpdate:modelValue\", \"name\", \"label\", \"data-url\", \"data-key\", \"disabled\", \"required\"]))], 2); }), 128)), _createElementVNode(\"div\", _hoisted_8, [currentStepIdx.value > 0 ? (_openBlock(), _createBlock(BaseButton, { key: 0, class: \"order-2 block md:order-1\", type: \"button\", variant: \"text\", disabled: loading.value, onClick: _cache[0] || (_cache[0] = $event => currentStepIdx.value--) }, { default: _withCtx(() => [_createTextVNode(\" Anterior \")]), _: 1 }, 8, [\"disabled\"])) : _createCommentVNode(\"\", true), _createVNode(BaseButton, { class: \"block md:order-2 md:ml-auto\", type: \"submit\", loading: loading.value, disabled: loading.value }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(_unref(isLastStep) ? 'Enviar' : 'Siguiente'), 1)]), _: 1 }, 8, [\"loading\", \"disabled\"])])])) : _createCommentVNode(\"\", true), error.value ? (_openBlock(), _createElementBlock(\"p\", _hoisted_9, [_createTextVNode(\" Ha ocurrido un error al guardar su información. Por favor revise los datos ingresados e intente nuevamente. Si el error persiste, por favor contáctenos a \"), _createElementVNode(\"a\", { href: `mailto:${_unref(email)}` }, _toDisplayString(_unref(email)), 9, _hoisted_10)])) : _createCommentVNode(\"\", true)], 32)]);\n };\n } });\n","import script from \"./base-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, Fragment as _Fragment } from \"vue\";\nconst _hoisted_1 = { class: \"flex flex-col gap-10 overflow-hidden rounded-lg bg-ama-blue-50 p-10 md:flex-row\" };\nconst _hoisted_2 = { class: \"mx-auto aspect-square max-h-[302px] max-w-[302px] shrink-0 md:mx-0\" };\nconst _hoisted_3 = [\"srcset\"];\nconst _hoisted_4 = [\"srcset\"];\nconst _hoisted_5 = [\"src\", \"alt\"];\nconst _hoisted_6 = { class: \"mb-2 font-title text-2xl font-bold text-ama-blue-600 lg:text-4xl\" };\nconst _hoisted_7 = [\"innerHTML\"];\nconst _hoisted_8 = /*#__PURE__*/ _createElementVNode(\"hr\", { class: \"mb-2.5\" }, null, -1);\nconst _hoisted_9 = { class: \"grid gap-2.5\" };\nconst _hoisted_10 = { key: 0, class: \"flex gap-2 font-bold\" };\nconst _hoisted_11 = { class: \"text-base md:text-xl\" };\nconst _hoisted_12 = { class: \"text-base md:text-xl\" };\nconst _hoisted_13 = { class: \"font-bold\" };\nconst _hoisted_14 = { class: \"text-base md:text-xl\" };\nconst _hoisted_15 = { key: 1 };\nconst _hoisted_16 = { class: \"mb-2 text-base font-bold md:text-xl\" };\nconst _hoisted_17 = { class: \"text-base md:text-xl\" };\nimport { parse, format } from 'date-fns';\nimport { es } from 'date-fns/locale';\nimport { ref } from 'vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'event-item', props: { event: null }, setup(__props) { function formatDate(date) { return format(parse(date, 'y-M-d', new Date()), 'dd/MM/yyyy', { locale: es }); } const isDefaultImage = ref(false); function useDefaultImage(event) { if (isDefaultImage.value)\n return; isDefaultImage.value = true; event.target.src = require('images/default-event.jpg'); } return (_ctx, _cache) => { return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"div\", _hoisted_2, [_createElementVNode(\"picture\", null, [_createElementVNode(\"source\", { srcset: __props.event.image.squareThumbWebp?.url, type: \"image/webp\" }, null, 8, _hoisted_3), _createElementVNode(\"source\", { srcset: __props.event.image.squareThumb?.url, type: \"image/jpeg\" }, null, 8, _hoisted_4), _createElementVNode(\"img\", { src: __props.event.image.squareThumb?.url, alt: __props.event.name, class: _normalizeClass([{ 'brightness-90 contrast-75': isDefaultImage.value }, \"relative z-10 h-full w-full rounded bg-white object-cover\"]), onError: useDefaultImage }, null, 42, _hoisted_5)])]), _createElementVNode(\"div\", null, [_createElementVNode(\"h3\", _hoisted_6, _toDisplayString(__props.event.name), 1), _createElementVNode(\"div\", { class: \"prose mb-2.5 text-base md:text-xl\", innerHTML: __props.event.parsedDescription }, null, 8, _hoisted_7), _hoisted_8, _createElementVNode(\"dl\", _hoisted_9, [__props.event.location ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [_createElementVNode(\"dt\", _hoisted_11, _toDisplayString(_ctx.$t('event.location')) + \": \", 1), _createElementVNode(\"dd\", _hoisted_12, _toDisplayString(__props.event.location), 1)])) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_13, [_createElementVNode(\"p\", _hoisted_14, [__props.event.startDate && __props.event.endDate && __props.event.startDate !== __props.event.endDate ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [_createTextVNode(_toDisplayString(_ctx.$t('event.starts')) + \": \" + _toDisplayString(formatDate(__props.event.startDate)) + \" | \" + _toDisplayString(_ctx.$t('event.ends')) + \": \" + _toDisplayString(formatDate(__props.event.endDate)), 1)], 64)) : __props.event.startDate ? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [_createTextVNode(_toDisplayString(_ctx.$t('event.starts')) + \": \" + _toDisplayString(formatDate(__props.event.startDate)), 1)], 64)) : (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [_createTextVNode(_toDisplayString(_ctx.$t('event.noDate')), 1)], 64)), __props.event.schedule ? (_openBlock(), _createElementBlock(_Fragment, { key: 3 }, [_createTextVNode(_toDisplayString(_ctx.$t('event.schedule')) + \": \" + _toDisplayString(__props.event.schedule), 1)], 64)) : _createCommentVNode(\"\", true)])]), __props.event.participants ? (_openBlock(), _createElementBlock(\"div\", _hoisted_15, [_createElementVNode(\"dt\", _hoisted_16, _toDisplayString(_ctx.$t('event.whoCanParticipate')), 1), _createElementVNode(\"dd\", _hoisted_17, _toDisplayString(__props.event.participants), 1)])) : _createCommentVNode(\"\", true)])])]); }; } });\n","import script from \"./event-item.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./event-item.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { serialize } from 'object-to-formdata';\nimport decamelizeKeys from '../utils/decamelize-for-files';\nimport api from './index';\nexport default { create(data) { const path = '/api/internal/feedback'; return api({ method: 'post', url: path, headers: { 'Content-Type': 'multipart/form-data' }, data: serialize(decamelizeKeys({ Feedback: data })) }).then(res => res?.feedback); } };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, unref as _unref, normalizeClass as _normalizeClass, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { key: 0, class: \"flex flex-col items-center justify-center\" };\nconst _hoisted_2 = { class: \"flex flex-col items-center\" };\nconst _hoisted_3 = { class: \"mb-2 text-center text-xl font-semibold\" };\nconst _hoisted_4 = { class: \"mb-6 text-center\" };\nconst _hoisted_5 = { key: 1, class: \"flex flex-col gap-6 pt-2\" };\nconst _hoisted_6 = { class: \"text-center text-3xl font-bold\" };\nconst _hoisted_7 = { class: \"flex flex-col gap-6 text-ama-brown-600\" };\nconst _hoisted_8 = { class: \"flex flex-col gap-3\" };\nconst _hoisted_9 = { class: \"flex flex-row gap-2 md:gap-6\" };\nimport { reactive, ref } from 'vue';\nimport { boolean, object, string } from 'yup';\nimport { useI18n } from 'vue-i18n';\nimport feedbackApi from '../api/feedback';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'feedback-banner-modal', props: { isOpen: { type: Boolean } }, emits: [\"close-modal\", \"success\"], setup(__props, { emit }) { const form = reactive({ description: '', image: undefined }); const { t } = useI18n(); const MAX_DESCRIPTION_LENGTH = 200; const formRules = object({ description: string().max(MAX_DESCRIPTION_LENGTH, t('feedbackModal.maxDescriptionLength', { length: MAX_DESCRIPTION_LENGTH.toString() })).required().label(t('feedbackModal.descriptionLabel')), terms: boolean().required().isTrue().label(t('feedbackModal.termsLabel')) }); const loading = ref(false); const error = ref(false); const postSubmit = ref(false); async function submit() { loading.value = true; try {\n await feedbackApi.create({ ...form });\n postSubmit.value = true;\n emit('success');\n }\n catch (e) {\n error.value = true;\n }\n finally {\n loading.value = false;\n } } return (_ctx, _cache) => { const _component_base_button = _resolveComponent(\"base-button\"); const _component_base_input = _resolveComponent(\"base-input\"); const _component_base_file_input = _resolveComponent(\"base-file-input\"); const _component_base_checkbox = _resolveComponent(\"base-checkbox\"); const _component_v_form = _resolveComponent(\"v-form\"); const _component_base_modal = _resolveComponent(\"base-modal\"); return _openBlock(), _createBlock(_component_base_modal, { class: \"overflow-hidden\", open: __props.isOpen, onClose: _cache[3] || (_cache[3] = $event => emit('close-modal')) }, { default: _withCtx(() => [postSubmit.value ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"div\", _hoisted_2, [_createElementVNode(\"h3\", _hoisted_3, _toDisplayString(_ctx.$t('feedbackModal.successTitle')), 1), _createElementVNode(\"p\", _hoisted_4, _toDisplayString(_ctx.$t('feedbackModal.success')), 1), _createVNode(_component_base_button, { href: \"/\" }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.$t('feedbackModal.close')), 1)]), _: 1 })])])) : (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [_createElementVNode(\"p\", _hoisted_6, _toDisplayString(_ctx.$t('feedbackModal.title')), 1), _createVNode(_component_v_form, { \"validation-schema\": _unref(formRules), onSubmit: submit }, { default: _withCtx(({ meta }) => [_createElementVNode(\"div\", _hoisted_7, [_createElementVNode(\"div\", _hoisted_8, [_createVNode(_component_base_input, { is: \"textarea\", modelValue: form.description, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => form.description = $event), required: \"\", name: \"description\", placeholder: _ctx.$t('feedbackModal.placeholder') }, null, 8, [\"modelValue\", \"placeholder\"]), _createElementVNode(\"span\", { class: _normalizeClass({ 'text-red-500': (form.description?.length || 0) > MAX_DESCRIPTION_LENGTH }) }, _toDisplayString(form.description?.length || 0) + \" / \" + _toDisplayString(MAX_DESCRIPTION_LENGTH), 3)]), _createVNode(_component_base_file_input, { modelValue: form.image, \"onUpdate:modelValue\": _cache[1] || (_cache[1] = $event => form.image = $event), name: \"image\", label: _ctx.$t('feedbackModal.attachImage') }, null, 8, [\"modelValue\", \"label\"]), _createVNode(_component_base_checkbox, { label: _ctx.$t('feedbackModal.terms'), name: \"terms\", required: \"\" }, null, 8, [\"label\"]), _createElementVNode(\"div\", _hoisted_9, [_createVNode(_component_base_button, { type: \"button\", class: \"block\", variant: \"secondary\", size: \"sm\", onClick: _cache[2] || (_cache[2] = $event => emit('close-modal')) }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.$t('feedbackModal.cancel')), 1)]), _: 1 }), _createVNode(_component_base_button, { class: \"block\", size: \"sm\", type: \"submit\", disabled: !meta.valid || loading.value }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.$t('feedbackModal.button')), 1)]), _: 2 }, 1032, [\"disabled\"])])])]), _: 1 }, 8, [\"validation-schema\"])]))]), _: 1 }, 8, [\"open\"]); }; } });\n","import script from \"./feedback-banner-modal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./feedback-banner-modal.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createVNode as _createVNode, resolveComponent as _resolveComponent, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock, Fragment as _Fragment } from \"vue\";\nconst _hoisted_1 = { key: 0, class: \"fixed left-1/2 bottom-10 z-10 flex max-w-3xl -translate-x-1/2 flex-col justify-center rounded-2xl bg-ama-blue-800 p-4 text-white ring-4 ring-ama-blue-50/60 md:flex-row-reverse md:gap-4\" };\nconst _hoisted_2 = [\"title\"];\nconst _hoisted_3 = { class: \"flex w-full flex-col items-center gap-4 md:flex-row\" };\nconst _hoisted_4 = [\"title\"];\nimport { ref } from 'vue';\nimport FeedbackBannerModal from './feedback-banner-modal.vue';\nimport settingsApi from '../api/settings';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'feedback-banner', props: { isOpen: { type: Boolean, default: true } }, emits: [\"close-modal\"], setup(__props) { const props = __props; const isOpenFeedbackBannerModal = ref(false); const isOpenBanner = ref(props.isOpen); function handleFeedbackBannerModal() { isOpenFeedbackBannerModal.value = !isOpenFeedbackBannerModal.value; } function toggleBanner() { isOpenBanner.value = !isOpenBanner.value; if (!isOpenBanner.value) {\n settingsApi.hideFeedbackBanner();\n } } return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_base_button = _resolveComponent(\"base-button\"); return _openBlock(), _createElementBlock(_Fragment, null, [_createVNode(FeedbackBannerModal, { \"is-open\": isOpenFeedbackBannerModal.value, onCloseModal: handleFeedbackBannerModal, onSuccess: toggleBanner }, null, 8, [\"is-open\"]), isOpenBanner.value ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"button\", { class: \"flex cursor-pointer justify-end\", type: \"button\", title: _ctx.$t('feedbackModal.bannerClose'), onClick: toggleBanner }, [_createVNode(_component_inline_svg, { src: require('../../assets/images/x-mark.svg') }, null, 8, [\"src\"])], 8, _hoisted_2), _createElementVNode(\"div\", _hoisted_3, [_createVNode(_component_inline_svg, { class: \"h-12 w-12 shrink-0\", src: require('../../assets/images/chat-bubble-left-right.svg') }, null, 8, [\"src\"]), _createElementVNode(\"p\", null, _toDisplayString(_ctx.$t('feedbackModal.bannerText')), 1), _createVNode(_component_base_button, { class: \"ml-auto w-full bg-ama-blue-900 md:w-72 md:text-base\", variant: \"text\", type: \"button\", size: \"sm\", onClick: handleFeedbackBannerModal }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.$t('feedbackModal.bannerButton')), 1)]), _: 1 })])])) : (_openBlock(), _createElementBlock(\"button\", { key: 1, title: _ctx.$t('feedbackModal.bannerButton'), class: \"fixed bottom-10 right-10 flex h-16 w-16 items-center justify-center rounded-full bg-ama-blue-800 p-4 ring-4 ring-ama-blue-50/60\", onClick: toggleBanner }, [_createVNode(_component_inline_svg, { src: require('../../assets/images/chat-bubble-left-right.svg') }, null, 8, [\"src\"])], 8, _hoisted_4))], 64); }; } });\n","import script from \"./feedback-banner.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./feedback-banner.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\";\nconst _hoisted_1 = { class: \"grid grid-cols-3 gap-4 overflow-hidden rounded-lg border border-slate-200 shadow-sqm md:grid-cols-7\" };\nconst _hoisted_2 = { class: \"relative col-span-1 col-start-3 row-start-1 mt-1 mr-1 aspect-square md:col-start-1 md:mr-0 md:ml-1\" };\nconst _hoisted_3 = [\"srcset\"];\nconst _hoisted_4 = [\"srcset\"];\nconst _hoisted_5 = [\"src\", \"alt\"];\nconst _hoisted_6 = { class: \"col-span-2 col-start-1 row-start-1 p-4 pr-0 md:col-span-6 md:row-start-auto md:mr-4\" };\nconst _hoisted_7 = { class: \"text-lg text-ama-blue-600\" };\nconst _hoisted_8 = { class: \"mb-2.5 font-title text-xl font-bold\" };\nconst _hoisted_9 = /*#__PURE__*/ _createElementVNode(\"hr\", { class: \"mb-2.5\" }, null, -1);\nconst _hoisted_10 = [\"innerHTML\"];\nconst _hoisted_11 = /*#__PURE__*/ _createElementVNode(\"hr\", { class: \"mb-2.5\" }, null, -1);\nconst _hoisted_12 = { class: \"text-lg font-bold\" };\nconst _hoisted_13 = { class: \"mb-4 text-slate-600\" };\nconst _hoisted_14 = { class: \"grid grid-cols-2 gap-4 md:grid-cols-3\" };\nconst _hoisted_15 = { class: \"col-span-1\" };\nconst _hoisted_16 = { class: \"text-lg font-bold\" };\nconst _hoisted_17 = { class: \"text-slate-600\" };\nconst _hoisted_18 = { class: \"col-span-1\" };\nconst _hoisted_19 = { class: \"text-lg font-bold\" };\nconst _hoisted_20 = { class: \"text-slate-600\" };\nimport { parse, format } from 'date-fns';\nimport { es, enUS } from 'date-fns/locale';\nimport { ref } from 'vue';\nimport { useI18n } from 'vue-i18n';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'course-item', props: { course: null }, setup(__props) { const isDefaultImage = ref(false); function useDefaultImage(course) { if (isDefaultImage.value)\n return; isDefaultImage.value = true; course.target.src = require('images/default-event.jpg'); } const { locale } = useI18n({}); const dateLocale = locale.value.includes('es') ? es : enUS; function formatDate(date) { return format(parse(date, 'y-M-d', new Date()), 'PPP', { locale: dateLocale }); } return (_ctx, _cache) => { const _component_base_button = _resolveComponent(\"base-button\"); return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"picture\", _hoisted_2, [_createElementVNode(\"source\", { srcset: __props.course.image.squareThumbWebp?.url, type: \"image/webp\" }, null, 8, _hoisted_3), _createElementVNode(\"source\", { srcset: __props.course.image.squareThumb?.url, type: \"image/jpeg\" }, null, 8, _hoisted_4), _createElementVNode(\"img\", { src: __props.course.image.squareThumb?.url, alt: __props.course.name, class: _normalizeClass([{ 'brightness-90 contrast-75': isDefaultImage.value }, \"relative z-10 aspect-square scale-90 rounded-lg bg-white object-cover\"]), onError: useDefaultImage }, null, 42, _hoisted_5)]), _createElementVNode(\"div\", _hoisted_6, [_createElementVNode(\"p\", _hoisted_7, _toDisplayString(_ctx.$t('course.category')), 1), _createElementVNode(\"h3\", _hoisted_8, _toDisplayString(__props.course.name), 1), _hoisted_9, _createElementVNode(\"div\", { class: \"prose mb-2.5 max-w-none prose-headings:text-2xl prose-headings:text-ama-purple-800 prose-p:leading-normal prose-li:leading-tight\", innerHTML: __props.course.parsedDescription }, null, 8, _hoisted_10), _hoisted_11, _createElementVNode(\"h4\", _hoisted_12, _toDisplayString(_ctx.$t('course.applicationPeriod')), 1), _createElementVNode(\"p\", _hoisted_13, _toDisplayString(_ctx.$t('course.applyUntil')) + \" \" + _toDisplayString(formatDate(__props.course.applicationDeadline)), 1), _createElementVNode(\"div\", _hoisted_14, [_createElementVNode(\"div\", _hoisted_15, [_createElementVNode(\"p\", _hoisted_16, _toDisplayString(_ctx.$t('course.duration')), 1), _createElementVNode(\"p\", _hoisted_17, _toDisplayString(__props.course.weeksDuration), 1)]), _createElementVNode(\"div\", _hoisted_18, [_createElementVNode(\"p\", _hoisted_19, _toDisplayString(_ctx.$t('course.modality')), 1), _createElementVNode(\"p\", _hoisted_20, _toDisplayString(__props.course.modality), 1)]), _createVNode(_component_base_button, { class: \"col-span-2 w-full md:col-span-1 md:w-4/5\", href: __props.course.formUrl }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.$t('course.apply')), 1)]), _: 1 }, 8, [\"href\"])])])]); }; } });\n","import script from \"./course-item.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./course-item.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { class: \"mb-6 font-title text-2xl font-bold text-slate-800 md:text-3xl\" };\nconst _hoisted_2 = { key: 0, class: \"grid gap-10\" };\nconst _hoisted_3 = { key: 1, class: \"text-center\" };\nimport CourseItem from './course-item.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'course-list', props: { courses: null }, setup(__props) { return (_ctx, _cache) => { return _openBlock(), _createElementBlock(_Fragment, null, [_createElementVNode(\"h2\", _hoisted_1, _toDisplayString(_ctx.$t('course.title')), 1), __props.courses.length > 0 ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.courses, course => { return _openBlock(), _createBlock(CourseItem, { key: course.id, course: course }, null, 8, [\"course\"]); }), 128))])) : (_openBlock(), _createElementBlock(\"p\", _hoisted_3, _toDisplayString(_ctx.$t('course.noCourses')), 1))], 64); }; } });\n","import script from \"./course-list.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./course-list.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, createTextVNode as _createTextVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from \"vue\";\nconst _hoisted_1 = { class: \"mt-auto mb-6 flex shrink-0 gap-3 lg:mb-0 lg:items-center lg:justify-center\" };\nconst _hoisted_2 = [\"src\"];\nconst _hoisted_3 = { class: \"flex min-w-0 flex-row text-2xl font-bold lg:w-64\" };\nconst _hoisted_4 = { class: \"truncate\" };\nconst _hoisted_5 = { class: \"lg:mt-auto\" };\nconst _hoisted_6 = [\"innerHTML\"];\nimport { ref } from 'vue';\nimport { useResizeObserver } from '@vueuse/core';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'feedback-item', props: { feedback: null }, setup(__props) { const props = __props; const imageUrl = props.feedback.image || require('images/default-profile-picture.svg'); const open = ref(false); const descriptionElement = ref(); const isOverflowing = ref(false); useResizeObserver(descriptionElement, () => { if (!descriptionElement.value)\n return; isOverflowing.value = descriptionElement.value.scrollHeight > descriptionElement.value.offsetHeight + 10; }); return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); return _openBlock(), _createElementBlock(\"div\", { class: _normalizeClass([\"mb-2 flex flex-col gap-6 rounded-xl border border-ama-yellow-100 px-3 py-16 text-zinc-800 lg:h-auto lg:flex-row lg:px-28 lg:py-16\", { 'h-[470px]': !open.value }]) }, [_createElementVNode(\"div\", _hoisted_1, [_createElementVNode(\"img\", { class: \"h-14 w-14 rounded-full\", src: _unref(imageUrl) }, null, 8, _hoisted_2), _createElementVNode(\"div\", _hoisted_3, [_createElementVNode(\"span\", _hoisted_4, _toDisplayString(__props.feedback.user), 1)])]), _createElementVNode(\"div\", _hoisted_5, [_createVNode(_component_inline_svg, { class: \"mb-12 h-7\", src: require('../../assets/images/icon-quotes.svg') }, null, 8, [\"src\"]), _createElementVNode(\"div\", { ref_key: \"descriptionElement\", ref: descriptionElement, class: _normalizeClass([\"mb-2 text-2xl text-stone-600\", { 'max-h-40 overflow-hidden': !open.value }]), innerHTML: __props.feedback.parsedDescription }, null, 10, _hoisted_6), isOverflowing.value || open.value ? (_openBlock(), _createElementBlock(\"button\", { key: 0, class: \"font-bold\", onClick: _cache[0] || (_cache[0] = $event => open.value = !open.value) }, [!open.value ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [_createTextVNode(\" ... \" + _toDisplayString(_ctx.$t('feedback.readMore')), 1)], 64)) : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [_createTextVNode(_toDisplayString(_ctx.$t('feedback.readLess')), 1)], 64))])) : _createCommentVNode(\"\", true)])], 2); }; } });\n","import script from \"./feedback-item.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./feedback-item.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, unref as _unref, withCtx as _withCtx, createVNode as _createVNode, resolveComponent as _resolveComponent, createElementVNode as _createElementVNode } from \"vue\";\nconst _hoisted_1 = { id: \"feedback-list\", class: \"relative mb-16 grid lg:mb-0 lg:px-16\" };\nimport 'swiper/css';\nimport 'swiper/css/navigation';\nimport { ref } from 'vue';\nimport { Swiper, SwiperSlide } from 'swiper/vue';\nimport { Virtual } from 'swiper/modules';\nimport FeedbackItem from './feedback-item.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'feedback-list', props: { feedback: null }, setup(__props) { const modules = [Virtual]; const swiperRef = ref(); function next() { swiperRef.value?.slideNext(); } function prev() { swiperRef.value?.slidePrev(); } return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createVNode(_unref(Swiper), { class: \"w-full max-w-full\", \"slides-per-view\": 1, modules: modules, virtual: true, loop: true, onSwiper: _cache[0] || (_cache[0] = $event => swiperRef.value = $event) }, { default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.feedback, feedbackItem => { return _openBlock(), _createBlock(_unref(SwiperSlide), { key: feedbackItem.id, class: \"px-8\", \"virtual-index\": feedbackItem.id }, { default: _withCtx(() => [(_openBlock(), _createBlock(FeedbackItem, { key: feedbackItem.id, feedback: feedbackItem }, null, 8, [\"feedback\"]))]), _: 2 }, 1032, [\"virtual-index\"]); }), 128))]), _: 1 }), _createElementVNode(\"button\", { class: \"absolute left-1/2 -bottom-12 z-10 -ml-10 -translate-x-1/2 lg:bottom-auto lg:top-1/2 lg:left-0 lg:ml-0\", onClick: prev }, [_createVNode(_component_inline_svg, { class: \"h-6 w-6\", src: require('../../assets/images/back-arrow.svg') }, null, 8, [\"src\"])]), _createElementVNode(\"button\", { class: \"absolute right-1/2 -bottom-12 z-10 -mr-10 -translate-x-1/2 lg:bottom-auto lg:top-1/2 lg:right-0 lg:mr-0\", onClick: next }, [_createVNode(_component_inline_svg, { class: \"h-6 w-6 rotate-180\", src: require('../../assets/images/back-arrow.svg') }, null, 8, [\"src\"])])]); }; } });\n","import script from \"./feedback-list.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./feedback-list.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./feedback-list.vue?vue&type=style&index=0&id=659f2d80&lang=css\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { serialize } from 'object-to-formdata';\nimport decamelizeKeys from '../utils/decamelize-for-files';\nimport api from './index';\nexport default { create(data, courseId) { const path = `/api/internal/courses/${courseId}/course_application`; return api({ method: 'post', url: path, data: serialize(decamelizeKeys({ CourseApplication: data })) }).then(res => res?.courseApplication); } };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { class: \"flex flex-col items-center justify-center\" };\nconst _hoisted_2 = /*#__PURE__*/ _createElementVNode(\"p\", null, \"Estamos guardando su formulario...\", -1);\nconst _hoisted_3 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mb-6 text-center text-lg font-semibold text-ama-purple-900\" }, \" Hubo un problema al guardar el formulario, por favor inténtelo nuevamente. \", -1);\nconst _hoisted_4 = { key: 2, class: \"flex flex-col items-center\" };\nconst _hoisted_5 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mb-2 text-center text-xl font-semibold\" }, \" Tu postulación ha sido enviada exitosamente. \", -1);\nconst _hoisted_6 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mb-6 text-center\" }, \" Revisaremos la información y te contactaremos. Muchas gracias por participar. \", -1);\nconst _hoisted_7 = { class: \"relative grid grid-cols-1 gap-x-6 gap-y-10 py-4 md:grid-cols-2\" };\nconst _hoisted_8 = { key: 1, class: \"mb-8 flex flex-col items-start md:col-span-2\" };\nconst _hoisted_9 = { class: \"flex items-start gap-4 py-2 pr-10 font-semibold leading-loose\" };\nconst _hoisted_10 = { key: 2, class: \"col-span-1 flex flex-col gap-4 md:col-span-2 md:flex-row\" };\nimport { computed, reactive, onMounted, ref } from 'vue';\nimport { object, string, mixed, setLocale, bool } from 'yup';\nimport { rutValidate } from 'rut-helpers';\nimport es from 'yup-es';\nimport courseApplicationApi from '../api/course-application';\nimport communesApi from '../api/communes';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'course-application-form', props: { regions: null, localities: null, defaultCommune: null, defaultRegion: null, courseId: null, courseApplication: { default: () => ({}) }, mode: { default: 'new' } }, setup(__props) { const props = __props; const communes = ref([]); const availableModalities = [{ id: 'in_person', name: 'Presencial' }, { id: 'online', name: 'Online' }]; const form = reactive({ fullName: undefined, rut: undefined, phoneNumber: undefined, email: undefined, birthdate: undefined, motivation: undefined, localityId: undefined, localityOther: undefined, regionId: props.defaultRegion, communeId: props.defaultCommune, preferredModality: availableModalities[0].id, ...props.courseApplication }); setLocale(es); const PHONE_NUMBER_LENGTH = 8; const formRules = object({ fullName: string().required().label('Nombre Completo'), rut: string().required().test(value => { if (value) {\n return rutValidate(value);\n } return false; }).label('Rut'), phoneNumber: string().matches(/^[0-9]+$/, 'El campo Teléfono no es válido').min(PHONE_NUMBER_LENGTH).max(PHONE_NUMBER_LENGTH).required().label('Teléfono'), email: string().required().email().label('Correo Electrónico'), localityId: mixed().test(value => { if (!form.localityOther)\n return !!value; return true; }).label('Localidad'), localityOther: string().test(value => { if (!form.localityId || form.localityId === 'other')\n return !!value; return true; }).label('Localidad'), birthdate: string().required().label('Fecha de Nacimiento').matches(/^\\d{2}-\\d{2}-\\d{4}$/, 'El campo Fecha de Nacimiento no es válido'), disclaimer: bool().required('Aceptar el compromiso de finalización de curso es obligatorio'), preferredModality: string().label('Modalidad preferida') }); const currentRules = computed(() => formRules); const loading = ref(false); const error = ref(false); const postSubmitModal = ref(false); async function submit() { const ONE_SECOND = 1000; const localityId = form.localityId === 'other' ? undefined : form.localityId; loading.value = true; postSubmitModal.value = true; try {\n await courseApplicationApi.create({ ...form, localityId }, props.courseId);\n }\n catch (e) {\n error.value = true;\n } setTimeout(() => { loading.value = false; }, ONE_SECOND); } function closeAndResetModal() { postSubmitModal.value = false; error.value = false; loading.value = false; } async function updateCommunes() { if (form.regionId) {\n communes.value = await communesApi.get(form.regionId);\n } } onMounted(() => { updateCommunes(); }); return (_ctx, _cache) => { const _component_base_loading = _resolveComponent(\"base-loading\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_base_modal = _resolveComponent(\"base-modal\"); const _component_base_input = _resolveComponent(\"base-input\"); const _component_base_select = _resolveComponent(\"base-select\"); const _component_v_field = _resolveComponent(\"v-field\"); const _component_VErrorMessage = _resolveComponent(\"VErrorMessage\"); const _component_v_form = _resolveComponent(\"v-form\"); return _openBlock(), _createBlock(_component_v_form, { \"validation-schema\": _unref(currentRules), onSubmit: submit }, { default: _withCtx(() => [_createVNode(_component_base_modal, { open: postSubmitModal.value }, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_1, [loading.value ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [_createVNode(_component_base_loading, { class: \"mx-auto block\" }), _hoisted_2], 64)) : error.value ? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [_hoisted_3, _createVNode(_component_base_button, { class: \"md:ml-auto\", onClick: closeAndResetModal }, { default: _withCtx(() => [_createTextVNode(\" Cerrar \")]), _: 1 })], 64)) : (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [_hoisted_5, _hoisted_6, _createVNode(_component_base_button, { href: \"/\" }, { default: _withCtx(() => [_createTextVNode(\" Cerrar \")]), _: 1 })]))])]), _: 1 }, 8, [\"open\"]), _createElementVNode(\"div\", _hoisted_7, [_createVNode(_component_base_input, { modelValue: form.fullName, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => form.fullName = $event), disabled: props.mode === 'show', required: props.mode === 'new', name: \"fullName\", label: \"Nombre Completo\" }, null, 8, [\"modelValue\", \"disabled\", \"required\"]), _createVNode(_component_base_input, { modelValue: form.rut, \"onUpdate:modelValue\": _cache[1] || (_cache[1] = $event => form.rut = $event), disabled: props.mode === 'show', required: props.mode === 'new', name: \"rut\", label: \"Rut\", placeholder: \"Formato: 12345678-9\" }, null, 8, [\"modelValue\", \"disabled\", \"required\"]), _createVNode(_component_base_input, { modelValue: form.phoneNumber, \"onUpdate:modelValue\": _cache[2] || (_cache[2] = $event => form.phoneNumber = $event), disabled: props.mode === 'show', required: props.mode === 'new', name: \"phoneNumber\", label: \"Teléfono\", placeholder: \"12345678\" }, { prefix: _withCtx(() => [_createTextVNode(\" +56 9 \")]), _: 1 }, 8, [\"modelValue\", \"disabled\", \"required\"]), _createVNode(_component_base_input, { modelValue: form.email, \"onUpdate:modelValue\": _cache[3] || (_cache[3] = $event => form.email = $event), disabled: props.mode === 'show', required: props.mode === 'new', name: \"email\", label: \"Correo Electrónico\" }, null, 8, [\"modelValue\", \"disabled\", \"required\"]), _createVNode(_component_base_input, { modelValue: form.birthdate, \"onUpdate:modelValue\": _cache[4] || (_cache[4] = $event => form.birthdate = $event), disabled: props.mode === 'show', required: props.mode === 'new', name: \"birthdate\", label: \"Fecha de Nacimiento\", \"label-hint\": props.mode === 'new' ? 'Formato: dd-mm-yyyy' : '' }, null, 8, [\"modelValue\", \"disabled\", \"required\", \"label-hint\"]), _createVNode(_component_base_select, { modelValue: form.regionId, \"onUpdate:modelValue\": _cache[5] || (_cache[5] = $event => form.regionId = $event), disabled: props.mode === 'show', required: props.mode === 'new', name: \"regionId\", label: \"Región\", options: props.regions, onChange: updateCommunes }, null, 8, [\"modelValue\", \"disabled\", \"required\", \"options\"]), _createVNode(_component_base_select, { modelValue: form.communeId, \"onUpdate:modelValue\": _cache[6] || (_cache[6] = $event => form.communeId = $event), disabled: props.mode === 'show', required: props.mode === 'new', name: \"communeId\", label: \"Comuna\", options: communes.value }, null, 8, [\"modelValue\", \"disabled\", \"required\", \"options\"]), _createVNode(_component_base_select, { modelValue: form.localityId, \"onUpdate:modelValue\": _cache[7] || (_cache[7] = $event => form.localityId = $event), disabled: props.mode === 'show', required: props.mode === 'new', name: \"localityId\", label: \"Localidad\", options: [...props.localities, { id: 'other', name: 'Otro' }] }, null, 8, [\"modelValue\", \"disabled\", \"required\", \"options\"]), form.localityId === 'other' ? (_openBlock(), _createBlock(_component_base_input, { key: 0, modelValue: form.localityOther, \"onUpdate:modelValue\": _cache[8] || (_cache[8] = $event => form.localityOther = $event), disabled: props.mode === 'show', required: props.mode === 'new', name: \"localityOther\", label: \"Localidad (otro)\", placeholder: \"Escriba el nombre de su localidad\" }, null, 8, [\"modelValue\", \"disabled\", \"required\"])) : _createCommentVNode(\"\", true), _createVNode(_component_base_input, { is: \"textarea\", modelValue: form.motivation, \"onUpdate:modelValue\": _cache[9] || (_cache[9] = $event => form.motivation = $event), disabled: props.mode === 'show', class: \"md:col-span-2\", name: \"motivation\", label: \"¿Por qué te interesa el curso?\" }, null, 8, [\"modelValue\", \"disabled\"]), _createVNode(_component_base_select, { modelValue: form.preferredModality, \"onUpdate:modelValue\": _cache[10] || (_cache[10] = $event => form.preferredModality = $event), disabled: props.mode === 'show', class: \"md:col-span-2\", name: \"preferredModality\", label: \"Modalidad preferida\", options: availableModalities }, null, 8, [\"modelValue\", \"disabled\"]), __props.mode === 'new' ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [_createElementVNode(\"label\", _hoisted_9, [_createVNode(_component_v_field, { type: \"checkbox\", class: \"mt-2 text-ama-blue-500\", name: \"disclaimer\", value: true }), _createTextVNode(\" \\\"Declaro cumplir con los requisitos que me fueron mencionados o presentados antes de postular. Declaro también, que cuento con la disponibilidad horaria para asistir o conectarme a clases, según corresponda. Entiendo que en caso de no finalizar el curso, sin razón justificada, no podré ser beneficiaria de futuras capacitaciones dentro del Programa AMA.\\\" \")]), _createVNode(_component_VErrorMessage, { name: \"disclaimer\", as: \"div\", class: \"w-full text-left text-sm text-red-600\" })])) : _createCommentVNode(\"\", true), __props.mode === 'new' ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [_createVNode(_component_base_button, { class: \"block md:order-2 md:ml-auto\", type: \"submit\" }, { default: _withCtx(() => [_createTextVNode(\" Postular \")]), _: 1 })])) : _createCommentVNode(\"\", true)])]), _: 1 }, 8, [\"validation-schema\"]); }; } });\n","import script from \"./course-application-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./course-application-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, withModifiers as _withModifiers, normalizeClass as _normalizeClass, unref as _unref, createStaticVNode as _createStaticVNode } from \"vue\";\nconst _hoisted_1 = { class: \"rounded-lg border border-slate-300 p-4\" };\nconst _hoisted_2 = /*#__PURE__*/ _createStaticVNode(\"

Descripción de la Rendición

Fecha de Documento

Medio Verificador

Nº de Documento

Monto

Propósitos

Archivos adjuntos

Acciones

\", 2);\nconst _hoisted_4 = { class: \"col-span-full px-4 text-sm font-semibold md:col-span-1 md:py-2 md:text-center\" };\nconst _hoisted_5 = { class: \"col-span-3 px-4 text-sm md:col-span-1 md:py-2 md:text-center\" };\nconst _hoisted_6 = { class: \"pl-4 text-sm md:px-4 md:py-2 md:text-center\" };\nconst _hoisted_7 = { class: \"text-left text-sm md:col-span-1 md:py-2 md:px-4 md:text-center\" };\nconst _hoisted_8 = { class: \"rounded-md bg-yellow-50 px-0.5 py-1 text-center text-sm md:py-2\" };\nconst _hoisted_9 = { class: \"hidden text-sm md:block md:py-0.5 md:text-center\" };\nconst _hoisted_10 = { class: \"col-span-full my-2 mx-1 grid grid-cols-2 gap-x-1 gap-y-0.5 text-center text-xs md:col-span-1 md:m-1\" };\nconst _hoisted_11 = [\"onClick\"];\nconst _hoisted_12 = { class: \"col-span-full my-2 mx-1 grid grid-cols-2 gap-x-1 gap-y-0.5 text-center text-xs md:col-span-1 md:m-1\" };\nconst _hoisted_13 = [\"disabled\", \"onClick\"];\nconst _hoisted_14 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"col-span-full mb-4 grow border-t border-slate-600\" }, null, -1);\nconst _hoisted_15 = { class: \"grid w-full grid-cols-3 justify-center text-center md:grid-cols-8 md:gap-4\" };\nconst _hoisted_16 = /*#__PURE__*/ _createElementVNode(\"p\", null, \" Total \", -1);\nconst _hoisted_17 = { class: \"col-start-6\" };\nimport { parse, format } from 'date-fns';\nimport { computed } from 'vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'application-expenses-report-table', props: { applicationExpensesReports: { default: undefined }, documentTypes: { default: undefined }, disabled: { type: Boolean } }, emits: [\"update:show-document\", \"update:remove-expenses-report\"], setup(__props) { const props = __props; function formatDate(date) { return format(parse(date, 'y-m-d', new Date()), 'dd/mm/yyyy'); } function formatAmount(amount) { return new Intl.NumberFormat('es-CL', { style: 'currency', currency: 'CLP' }).format(amount); } const totalAmount = computed(() => { if (!props.applicationExpensesReports) {\n return 0;\n } return props.applicationExpensesReports.reduce((total, report) => total + (report.amount || 0), 0); }); return (_ctx, _cache) => { return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_hoisted_2, (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(props.applicationExpensesReports, report => { return _openBlock(), _createElementBlock(\"div\", { key: report.id, class: \"grid w-full grid-cols-3 items-center justify-center md:grid-cols-8 md:gap-4\" }, [_createElementVNode(\"p\", _hoisted_4, _toDisplayString(report.description), 1), _createElementVNode(\"p\", _hoisted_5, _toDisplayString(report.startDate ? formatDate(report.startDate) : 'dd/mm/yy'), 1), _createElementVNode(\"p\", _hoisted_6, _toDisplayString(__props.documentTypes?.find(type => type.id === report.documentType)?.name), 1), _createElementVNode(\"p\", _hoisted_7, _toDisplayString(report.documentNumber), 1), _createElementVNode(\"p\", _hoisted_8, _toDisplayString(formatAmount(report.amount || 0)), 1), _createElementVNode(\"div\", _hoisted_9, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(report.purposes, purpose => { return _openBlock(), _createElementBlock(\"p\", { key: purpose.id, class: \"mt-0.5 h-full rounded-md bg-slate-100 p-1 text-xs\" }, _toDisplayString(purpose.name), 1); }), 128))]), _createElementVNode(\"div\", _hoisted_10, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(report.documents, document => { return _openBlock(), _createElementBlock(\"button\", { key: document.id, class: \"rounded-md bg-black p-1 text-white md:col-span-full md:h-full\", onClick: () => _ctx.$emit('update:show-document', document) }, _toDisplayString(document.filename.length > 13 ? document.filename.slice(0, 13) + '...' : document.filename), 9, _hoisted_11); }), 128))]), _createElementVNode(\"div\", _hoisted_12, [_createElementVNode(\"button\", { disabled: props.disabled, class: _normalizeClass([\"col-span-full rounded-md bg-red-400 p-1 text-white hover:bg-red-500 md:h-full\", { 'opacity-50 bg-slate-700 hover:bg-slate-700 cursor-not-allowed': props.disabled }]), onClick: _withModifiers(() => _ctx.$emit('update:remove-expenses-report', report), [\"prevent\"]) }, \" Eliminar \", 10, _hoisted_13)]), _hoisted_14]); }), 128)), _createElementVNode(\"div\", _hoisted_15, [_hoisted_16, _createElementVNode(\"p\", _hoisted_17, _toDisplayString(formatAmount(_unref(totalAmount))), 1)])]); }; } });\n","import script from \"./application-expenses-report-table.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./application-expenses-report-table.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { serialize } from 'object-to-formdata';\nimport decamelizeKeys from '../utils/decamelize-for-files';\nimport api from './index';\nexport default { create(applicationHashid, data) { const path = `/api/internal/individual_applications/${applicationHashid}/application_expenses_reports`; return api({ method: 'post', url: path, headers: { 'Content-Type': 'multipart/form-data' }, data: serialize(decamelizeKeys({ applicationExpensesReport: data })) }).then(res => res?.applicationExpensesReport); }, delete(applicationHashid, id) { const path = `/api/internal/individual_applications/${applicationHashid}/application_expenses_reports/${id}`; return api({ method: 'delete', url: path }); } };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, createBlock as _createBlock, withModifiers as _withModifiers, normalizeClass as _normalizeClass } from \"vue\";\nconst _hoisted_1 = { class: \"flex flex-col\" };\nconst _hoisted_2 = { key: 0, class: \"text-right text-xs text-red-600\" };\nconst _hoisted_3 = [\"src\"];\nconst _hoisted_4 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-base\" }, \" Cancelar \", -1);\nconst _hoisted_5 = /*#__PURE__*/ _createElementVNode(\"h2\", { class: \"mb-1 font-title text-xl font-bold text-slate-800 md:mb-4\" }, \" Agregar Rendición \", -1);\nconst _hoisted_6 = { class: \"grid grid-cols-1 justify-center gap-y-8 md:grid-cols-2 md:gap-x-11\" };\nconst _hoisted_7 = { key: 0, class: \"text-xs text-red-600\" };\nconst _hoisted_8 = { class: \"mt-0 grid grid-cols-1 md:grid-cols-2 md:gap-x-8\" };\nconst _hoisted_9 = /*#__PURE__*/ _createElementVNode(\"span\", { class: \"text-base\" }, \"Agregar otro archivo\", -1);\nconst _hoisted_10 = { class: \"flex justify-end\" };\nconst _hoisted_11 = /*#__PURE__*/ _createElementVNode(\"span\", { class: \"text-base\" }, \"Agregar rendición\", -1);\nimport { computed, reactive, ref } from 'vue';\nimport { object, string, number, array } from 'yup';\nimport applicationExpensesReportApi from 'api/application-expenses-report';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'application-expenses-report-modal', props: { showExpensesReportModal: { type: Boolean }, individualApplicationHashid: null, documentTypes: null, defaultPurposes: null }, emits: [\"update:close-modal\", \"update:expenses-report\"], setup(__props, { emit: emits }) { const props = __props; const applicationExpensesReport = reactive({ description: undefined, startDate: undefined, documentType: undefined, documentTypeOther: undefined, documentNumber: undefined, amount: 0, purposeIds: [], documents: [] }); const formRules = object({ description: string().required('La descripción es requerida').label('Descripción'), startDate: string().required('La fecha de documento es requerida').label('Fecha de Documento'), documentType: string().required('El tipo de documento es requerido').label('Medio Verificador'), selectedPurposes: array().min(1, 'Debe seleccionar al menos un propósito').label('Propósitos'), amount: number().typeError('').when('documentType', { is: documentType => documentType === undefined || ['bill', 'invoice'].includes(documentType), then: number().min(1, 'El campo debe ser distinto de 0').typeError('El campo Monto debe ser un número').required('El campo Monto es requerido').nullable().label('Monto') }), documentNumber: string().when('documentType', { is: documentType => documentType === undefined || ['bill', 'invoice'].includes(documentType), then: string().required('Número de documento es requerido').label('Nº de Documento') }) }); const documents = ref([{ file: undefined, id: '0' }]); const documentValidationError = ref(false); const selectedPurposes = ref([]); const isLoading = ref(false); const hasError = ref(false); const documentCount = computed(() => documents.value.filter(document => document.file !== undefined).length); function addDocumentField() { documents.value.push({ id: documents.value.length.toString(), file: undefined }); } function clearFields() { Object.keys(applicationExpensesReport).forEach(key => { applicationExpensesReport[key] = undefined; }); applicationExpensesReport.amount = 0; applicationExpensesReport.documents = []; applicationExpensesReport.purposeIds = []; documents.value = [{ file: undefined, id: '0' }]; selectedPurposes.value = []; } function closeExpensesReportModal() { clearFields(); emits('update:close-modal', false); } async function submit() { if (documentCount.value < 1) {\n documentValidationError.value = true;\n return;\n } applicationExpensesReport.documents = documents.value.map(document => document.file); applicationExpensesReport.purposeIds = selectedPurposes.value.map(purpose => purpose.id); try {\n isLoading.value = true;\n documentValidationError.value = false;\n applicationExpensesReportApi.create(props.individualApplicationHashid, applicationExpensesReport).then(data => { hasError.value = false; isLoading.value = false; emits('update:close-modal', false); emits('update:expenses-report', data); clearFields(); });\n }\n catch (error) {\n hasError.value = true;\n } } return (_ctx, _cache) => { const _component_base_button = _resolveComponent(\"base-button\"); const _component_base_input = _resolveComponent(\"base-input\"); const _component_base_select = _resolveComponent(\"base-select\"); const _component_base_multiselect = _resolveComponent(\"base-multiselect\"); const _component_BaseLabel = _resolveComponent(\"BaseLabel\"); const _component_base_file_input = _resolveComponent(\"base-file-input\"); const _component_v_form = _resolveComponent(\"v-form\"); const _component_base_modal = _resolveComponent(\"base-modal\"); return _openBlock(), _createBlock(_component_base_modal, { open: __props.showExpensesReportModal, class: \"rounded-lg\" }, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_1, [hasError.value ? (_openBlock(), _createElementBlock(\"p\", _hoisted_2, \" Algo salio mal, por favor intente nuevamente. \")) : _createCommentVNode(\"\", true), _createVNode(_component_base_button, { class: \"mb-1 self-start rounded-lg bg-slate-100 py-1 pr-2 pl-1 md:mb-3\", type: \"button\", variant: \"text\", onClick: closeExpensesReportModal }, { default: _withCtx(() => [_createElementVNode(\"img\", { src: require('images/left-arrow.svg') }, null, 8, _hoisted_3), _hoisted_4]), _: 1 }), _hoisted_5, _createVNode(_component_v_form, { class: _normalizeClass([\"text-sm font-normal md:text-base md:font-semibold\", { 'opacity-50 disabled': isLoading.value }]), \"validation-schema\": _unref(formRules), onSubmit: submit }, { default: _withCtx(() => [_createVNode(_component_base_input, { modelValue: applicationExpensesReport.description, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => applicationExpensesReport.description = $event), name: \"description\", class: \"mb-4\", label: \"Descripción de la rendición\" }, null, 8, [\"modelValue\"]), _createElementVNode(\"div\", _hoisted_6, [_createVNode(_component_base_input, { modelValue: applicationExpensesReport.startDate, \"onUpdate:modelValue\": _cache[1] || (_cache[1] = $event => applicationExpensesReport.startDate = $event), name: \"startDate\", required: \"\", type: \"date\", label: \"Fecha de documento\", class: \"md:col-span-2\" }, null, 8, [\"modelValue\"]), _createVNode(_component_base_select, { modelValue: applicationExpensesReport.documentType, \"onUpdate:modelValue\": _cache[2] || (_cache[2] = $event => applicationExpensesReport.documentType = $event), options: __props.documentTypes, name: \"documentType\", required: \"\", label: \"Medio verificador\" }, null, 8, [\"modelValue\", \"options\"]), _createVNode(_component_base_input, { modelValue: applicationExpensesReport.documentNumber, \"onUpdate:modelValue\": _cache[3] || (_cache[3] = $event => applicationExpensesReport.documentNumber = $event), name: \"documentNumber\", label: \"N° de documento\" }, null, 8, [\"modelValue\"]), _createVNode(_component_base_input, { modelValue: applicationExpensesReport.amount, \"onUpdate:modelValue\": _cache[4] || (_cache[4] = $event => applicationExpensesReport.amount = $event), min: \"0\", name: \"amount\", type: \"number\", label: \"Monto\" }, null, 8, [\"modelValue\"]), _createVNode(_component_base_multiselect, { modelValue: selectedPurposes.value, \"onUpdate:modelValue\": _cache[5] || (_cache[5] = $event => selectedPurposes.value = $event), options: __props.defaultPurposes, \"label-hint\": \"Selecciona los propósitos\", required: \"\", name: \"selectedPurposes\", label: \"Linea de trabajo\" }, null, 8, [\"modelValue\", \"options\"])]), _createVNode(_component_BaseLabel, { class: \"mt-4 mb-0 font-semibold\", label: \"Archivos\", name: _unref(documentCount), required: \"\" }, { default: _withCtx(() => [documentValidationError.value ? (_openBlock(), _createElementBlock(\"p\", _hoisted_7, \" Debe adjuntar al menos un documento \")) : _createCommentVNode(\"\", true)]), _: 1 }, 8, [\"name\"]), _createElementVNode(\"div\", _hoisted_8, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(documents.value, document => { return _openBlock(), _createBlock(_component_base_file_input, { key: document.id, modelValue: document.file, \"onUpdate:modelValue\": [$event => document.file = $event, $event => document.file = $event], name: `document-${document.id}` }, null, 8, [\"modelValue\", \"onUpdate:modelValue\", \"name\"]); }), 128))]), _createVNode(_component_base_button, { class: \"my-1 rounded-lg bg-slate-100 p-2 text-base md:mb-2\", variant: \"text\", type: \"button\", onClick: _withModifiers(addDocumentField, [\"prevent\"]) }, { default: _withCtx(() => [_hoisted_9]), _: 1 }, 8, [\"onClick\"]), _createElementVNode(\"div\", _hoisted_10, [_createVNode(_component_base_button, { class: \"mt-4 w-full py-2 text-base md:w-auto\", type: \"submit\" }, { default: _withCtx(() => [_hoisted_11]), _: 1 })])]), _: 1 }, 8, [\"class\", \"validation-schema\"])])]), _: 1 }, 8, [\"open\"]); }; } });\n","import script from \"./application-expenses-report-modal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./application-expenses-report-modal.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { class: \"flex flex-col items-center justify-center\" };\nconst _hoisted_2 = /*#__PURE__*/ _createElementVNode(\"p\", null, \"Estamos guardando la información...\", -1);\nconst _hoisted_3 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mb-6 text-center text-lg font-semibold text-ama-purple-900\" }, \" Hubo un problema al guardar la información, por favor inténtelo nuevamente. \", -1);\nconst _hoisted_4 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mb-6 text-center text-lg text-ama-purple-900\" }, \" La información fue guardada correctamente. \", -1);\nconst _hoisted_5 = /*#__PURE__*/ _createElementVNode(\"a\", { class: \"block w-full rounded bg-ama-blue-500 p-2 text-center font-semibold text-white hover:bg-ama-blue-600\", href: \"/\" }, \" Cerrar \", -1);\nexport default /*#__PURE__*/ _defineComponent({ __name: 'post-submit-modal', props: { isOpen: { type: Boolean }, isLoading: { type: Boolean }, hasError: { type: Boolean } }, emits: [\"update:close-modal\"], setup(__props, { emit: emits }) { return (_ctx, _cache) => { const _component_base_loading = _resolveComponent(\"base-loading\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_base_modal = _resolveComponent(\"base-modal\"); return _openBlock(), _createBlock(_component_base_modal, { open: __props.isOpen }, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_1, [__props.isLoading ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [_createVNode(_component_base_loading, { class: \"mx-auto block\" }), _hoisted_2], 64)) : __props.hasError ? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [_hoisted_3, _createVNode(_component_base_button, { onClick: _cache[0] || (_cache[0] = $event => emits('update:close-modal')) }, { default: _withCtx(() => [_createTextVNode(\" Cerrar \")]), _: 1 })], 64)) : (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [_hoisted_4, _hoisted_5], 64))])]), _: 1 }, 8, [\"open\"]); }; } });\n","import script from \"./post-submit-modal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./post-submit-modal.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { serialize } from 'object-to-formdata';\nimport decamelizeKeys from '../utils/decamelize-for-files';\nimport api from './index';\nexport default { update(applicationHashid, data) { const path = `/api/internal/individual_applications/${applicationHashid}/application_expenses_report_status`; return api({ method: 'put', url: path, headers: { 'Content-Type': 'multipart/form-data' }, data: serialize(decamelizeKeys({ applicationExpensesReportStatus: data })) }).then(res => res?.applicationExpensesReportStatus); } };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { class: \"min-h-screen\" };\nconst _hoisted_2 = [\"data\"];\nexport default /*#__PURE__*/ _defineComponent({ __name: 'document-viewer-modal', props: { isOpen: { type: Boolean }, document: null }, emits: [\"update:close-modal\"], setup(__props) { return (_ctx, _cache) => { const _component_base_modal = _resolveComponent(\"base-modal\"); return _openBlock(), _createBlock(_component_base_modal, { class: \"overflow-hidden\", open: __props.isOpen, onClose: _cache[0] || (_cache[0] = $event => _ctx.$emit('update:close-modal')) }, { title: _withCtx(() => [_createTextVNode(\" Archivo \")]), default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_1, [_createElementVNode(\"object\", { class: \"absolute inset-y-10 inset-x-0 h-full w-full\", data: __props.document.url, width: \"100%\", height: \"100%\" }, null, 8, _hoisted_2)])]), _: 1 }, 8, [\"open\"]); }; } });\n","import script from \"./document-viewer-modal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./document-viewer-modal.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, unref as _unref, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, Fragment as _Fragment } from \"vue\";\nconst _hoisted_1 = { class: \"flex flex-col items-center justify-center\" };\nconst _hoisted_2 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-center\" }, \" ¿Está seguro que desea eliminar la rendición de gastos? \", -1);\nconst _hoisted_3 = { class: \"mt-4 flex justify-center\" };\nconst _hoisted_4 = { class: \"mb-6 flex flex-col\" };\nconst _hoisted_5 = { key: 0, class: \"mb-8 flex flex-row self-start rounded-lg bg-slate-100 py-1 pr-3 pl-1\", href: \"/seguimiento\" };\nconst _hoisted_6 = [\"src\"];\nconst _hoisted_7 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-base\" }, \" Volver atrás \", -1);\nconst _hoisted_8 = /*#__PURE__*/ _createElementVNode(\"h3\", { class: \"font-title text-xl font-bold text-slate-800\" }, \" Formulario de rendición de gastos FAI \", -1);\nconst _hoisted_9 = { class: \"text-slate-600\" };\nconst _hoisted_10 = { class: \"mb-16 flex flex-col\" };\nconst _hoisted_11 = /*#__PURE__*/ _createElementVNode(\"h3\", { class: \"font-title text-xl font-bold text-slate-800\" }, \" Rendición \", -1);\nconst _hoisted_12 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-slate-800\" }, \" Agregue los gastos de la iniciativa \", -1);\nconst _hoisted_13 = { class: \"mt-4 flex justify-end\" };\nconst _hoisted_14 = { key: 0, class: \"flex flex-col\" };\nconst _hoisted_15 = /*#__PURE__*/ _createElementVNode(\"span\", { class: \"text-base\" }, \" Agregar nueva rendición \", -1);\nconst _hoisted_16 = /*#__PURE__*/ _createElementVNode(\"li\", null, \" Que, cumplo con cada uno de los requisitos para ser beneficiaria del FAI, soy mujer atacameña, mayor de 18 años y resido de manera permanente en la comuna de San Pedro de Atacama. \", -1);\nconst _hoisted_17 = /*#__PURE__*/ _createElementVNode(\"li\", null, \" Acepto que si no ejecuto mi proyecto o no cumplo con los requisitos y recibo el Fondo de Apoyo Individual no podré ser beneficiaria de futuros beneficios del Programa AMA y SQM. \", -1);\nconst _hoisted_18 = /*#__PURE__*/ _createElementVNode(\"li\", null, \" Que, me comprometo a entregar los respaldos de cada gasto realizado con el FAI, asimismo entrego mi consentimiento para que se puedan realizar visitas de seguimiento de mi iniciativa en caso de que sea necesario. \", -1);\nconst _hoisted_19 = [_hoisted_16, _hoisted_17, _hoisted_18];\nconst _hoisted_20 = { key: 0, class: \"col-span-2 flex flex-col gap-4 md:col-span-1 md:flex-row md:justify-end\" };\nimport { ref, reactive, computed } from 'vue';\nimport { object, string, bool, array } from 'yup';\nimport ApplicationExpensesReportTable from './application-expenses-report-table.vue';\nimport ApplicationExpensesReportModal from './application-expenses-report-modal.vue';\nimport PostSubmitModal from './post-submit-modal.vue';\nimport expensesReportStatusApi from '../api/application-expenses-report-status';\nimport expensesReportApi from '../api/application-expenses-report';\nimport DocumentViewerModal from './document-viewer-modal.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'application-expenses-report-form', props: { individualApplication: { default: undefined }, applicationExpensesReports: null, applicationExpensesReportStatus: { default: undefined }, defaultPurposes: null, documentTypes: null, mode: { default: 'new' } }, setup(__props) { const props = __props; const expensesReportStatus = reactive({ id: undefined, description: props.applicationExpensesReportStatus?.description || undefined, reviewComment: undefined, status: 'in_review' }); const disabled = computed(() => props.mode === 'show'); const expensesReport = ref(props.applicationExpensesReports || []); const showExpensesReportModal = ref(false); const isLoading = ref(false); const hasError = ref(false); const postSubmitModal = ref(false); const showDocumentViewerModal = ref(false); const viewerDocument = ref(undefined); const showConfirmDestroyModal = ref(false); const destroyReport = ref(); function toggleExpensesReportModal() { showExpensesReportModal.value = !showExpensesReportModal.value; } function toggleDocumentViewerModal() { showDocumentViewerModal.value = !showDocumentViewerModal.value; } function addExpensesReport(report) { expensesReport.value.push(report); } function removeExpensesReport(report) { destroyReport.value = report; showConfirmDestroyModal.value = true; } function destroyExpensesReport() { if (!destroyReport.value) {\n return;\n } const destroyedReportId = destroyReport.value.id; expensesReportApi.delete(props.individualApplication.hashid, destroyReport.value?.id).then(() => { expensesReport.value = expensesReport.value.filter(report => report.id !== destroyedReportId); }); showConfirmDestroyModal.value = false; destroyReport.value = undefined; } function submit() { const HALF_SECOND = 500; postSubmitModal.value = true; isLoading.value = true; expensesReportStatusApi.update(props.individualApplication.hashid, expensesReportStatus).then(() => { hasError.value = false; }).catch(() => { hasError.value = true; }); setTimeout(() => { isLoading.value = false; }, HALF_SECOND); } function saveReport() { expensesReportStatus.status = 'pending'; submit(); } function closeAndResetModal() { postSubmitModal.value = false; hasError.value = false; isLoading.value = false; } const formRules = object({ description: string().required('Los comentarios son obligatorios').label('Comentarios'), disclaimer: bool().required('Aceptar el compromiso es obligatorio'), expensesReport: array().min(1, 'Debe agregar al menos una rendición de gastos').label('Rendición de gastos') }); const fullName = computed(() => { const { firstName, lastName } = props.individualApplication; return `${firstName} ${lastName}`; }); function showDocument(document) { const MOBILE_WIDTH = 768; if (window.innerWidth < MOBILE_WIDTH) {\n window.open(document.url, '_blank');\n }\n else {\n viewerDocument.value = document;\n toggleDocumentViewerModal();\n } } return (_ctx, _cache) => { const _component_base_button = _resolveComponent(\"base-button\"); const _component_base_modal = _resolveComponent(\"base-modal\"); const _component_base_input = _resolveComponent(\"base-input\"); const _component_v_field = _resolveComponent(\"v-field\"); const _component_VErrorMessage = _resolveComponent(\"VErrorMessage\"); const _component_v_form = _resolveComponent(\"v-form\"); return _openBlock(), _createElementBlock(_Fragment, null, [_createVNode(_component_base_modal, { open: showConfirmDestroyModal.value, title: \"Eliminar rendición de gastos\", onClose: _cache[1] || (_cache[1] = $event => showConfirmDestroyModal.value = false) }, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_1, [_hoisted_2, _createElementVNode(\"div\", _hoisted_3, [_createVNode(_component_base_button, { class: \"mr-2\", onClick: _cache[0] || (_cache[0] = $event => showConfirmDestroyModal.value = false) }, { default: _withCtx(() => [_createTextVNode(\" Cancelar \")]), _: 1 }), _createVNode(_component_base_button, { class: \"border-0 bg-red-500 hover:bg-red-600\", onClick: destroyExpensesReport }, { default: _withCtx(() => [_createTextVNode(\" Eliminar \")]), _: 1 })])])]), _: 1 }, 8, [\"open\"]), _createVNode(PostSubmitModal, { \"is-open\": postSubmitModal.value, \"is-loading\": isLoading.value, \"has-error\": hasError.value, \"onUpdate:closeModal\": closeAndResetModal }, null, 8, [\"is-open\", \"is-loading\", \"has-error\"]), _createVNode(ApplicationExpensesReportModal, { \"show-expenses-report-modal\": showExpensesReportModal.value, \"document-types\": __props.documentTypes, \"default-purposes\": __props.defaultPurposes, \"individual-application-hashid\": __props.individualApplication?.hashid, \"onUpdate:closeModal\": toggleExpensesReportModal, \"onUpdate:expensesReport\": addExpensesReport }, null, 8, [\"show-expenses-report-modal\", \"document-types\", \"default-purposes\", \"individual-application-hashid\"]), viewerDocument.value ? (_openBlock(), _createBlock(DocumentViewerModal, { key: 0, \"is-open\": showDocumentViewerModal.value, document: viewerDocument.value, \"onUpdate:closeModal\": toggleDocumentViewerModal }, null, 8, [\"is-open\", \"document\"])) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_4, [!_unref(disabled) ? (_openBlock(), _createElementBlock(\"a\", _hoisted_5, [_createElementVNode(\"img\", { src: require('images/left-arrow.svg') }, null, 8, _hoisted_6), _hoisted_7])) : _createCommentVNode(\"\", true), _hoisted_8, _createElementVNode(\"p\", _hoisted_9, \" Descripción de la iniciativa: \" + _toDisplayString(__props.individualApplication?.usage), 1)]), _createVNode(_component_v_form, { \"validation-schema\": _unref(formRules), onSubmit: submit }, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_10, [_createVNode(_component_base_input, { is: \"textarea\", modelValue: expensesReportStatus.description, \"onUpdate:modelValue\": _cache[2] || (_cache[2] = $event => expensesReportStatus.description = $event), required: !_unref(disabled), disabled: _unref(disabled), name: \"description\", class: \"mb-4\", label: \"Comentarios\" }, null, 8, [\"modelValue\", \"required\", \"disabled\"]), _hoisted_11, _hoisted_12, _createVNode(ApplicationExpensesReportTable, { class: _normalizeClass({ 'opacity-80': _unref(disabled) }), \"application-expenses-reports\": expensesReport.value, \"document-types\": props.documentTypes, disabled: _unref(disabled), \"onUpdate:showDocument\": showDocument, \"onUpdate:removeExpensesReport\": removeExpensesReport }, null, 8, [\"class\", \"application-expenses-reports\", \"document-types\", \"disabled\"]), _createElementVNode(\"div\", _hoisted_13, [!_unref(disabled) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [_createVNode(_component_base_button, { class: \"self-start rounded-lg bg-slate-100 py-3 px-4 hover:bg-slate-200\", variant: \"text\", type: \"button\", onClick: toggleExpensesReportModal }, { default: _withCtx(() => [_hoisted_15]), _: 1 }), _createVNode(_component_base_input, { modelValue: expensesReport.value, \"onUpdate:modelValue\": _cache[3] || (_cache[3] = $event => expensesReport.value = $event), hidden: \"\", name: \"expensesReport\" }, null, 8, [\"modelValue\"])])) : _createCommentVNode(\"\", true)]), _createElementVNode(\"label\", { class: _normalizeClass([\"flex flex-row items-start gap-4 py-2 pr-10 font-semibold leading-loose\", { 'opacity-80': _unref(disabled) }]) }, [!_unref(disabled) ? (_openBlock(), _createBlock(_component_v_field, { key: 0, type: \"checkbox\", required: !_unref(disabled), disabled: _unref(disabled), class: \"mt-2 text-ama-blue-500\", name: \"disclaimer\", value: true }, null, 8, [\"required\", \"disabled\"])) : _createCommentVNode(\"\", true), _createElementVNode(\"p\", null, \" Yo, \" + _toDisplayString(_unref(fullName)) + \", cédula nacional de identidad \" + _toDisplayString(__props.individualApplication?.rut) + \", bajo juramento, declaro lo siguiente: \", 1)], 2), _createElementVNode(\"ol\", { type: \"1\", class: _normalizeClass([\"list-inside list-decimal space-y-1 text-slate-600\", { 'opacity-80': _unref(disabled) }]) }, _hoisted_19, 2), !_unref(disabled) ? (_openBlock(), _createBlock(_component_VErrorMessage, { key: 0, name: \"disclaimer\", as: \"div\", class: \"w-full text-left text-sm text-red-600\" })) : _createCommentVNode(\"\", true)]), !_unref(disabled) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_20, [_createVNode(_component_base_button, { class: \"block\", onClick: saveReport }, { default: _withCtx(() => [_createTextVNode(\" Guardar \")]), _: 1 }), _createVNode(_component_base_button, { class: \"block\", type: \"submit\" }, { default: _withCtx(() => [_createTextVNode(\" Guardar y enviar \")]), _: 1 })])) : _createCommentVNode(\"\", true)]), _: 1 }, 8, [\"validation-schema\"])], 64); }; } });\n","import script from \"./application-expenses-report-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./application-expenses-report-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = /*#__PURE__*/ _createElementVNode(\"h2\", { class: \"mb-9 text-3xl font-medium\" }, \" Registrarse \", -1);\nconst _hoisted_2 = { class: \"text-center text-xl\" };\nimport { rutFormat, rutValidate } from 'rut-helpers';\nimport { inject, ref, watch } from 'vue';\nimport { object, string, date, ref as yupRef } from 'yup';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'user-session-registration-form', emits: [\"toggle-mode\", \"submit\"], setup(__props, { emit }) { const rut = ref(''); watch(() => rut.value, (newValue, oldValue) => { if (newValue && newValue !== oldValue) {\n rut.value = rutFormat(newValue);\n } }); const MIN_PASSWORD_LENGTH = 8; const PHONE_NUMBER_LENGTH = inject('phoneNumberLength'); const registerFormSchema = object().shape({ rut: string().required('Rut es requerido').test('rut', 'Rut inválido', value => { if (value) {\n return rutValidate(value);\n } return false; }), firstName: string().required('Nombre es requerido'), lastName: string().required('Apellido es requerido'), email: string().required('Email es requerido').email('Email inválido'), password: string().required('Contraseña es requerida').min(MIN_PASSWORD_LENGTH, 'Contraseña debe tener al menos 8 caracteres').matches(/^(?=.*[A-z])(?=.*\\d).+$/, 'Contraseña debe tener al menos una letra y un número'), passwordConfirmation: string().required('Confirmación de contraseña es requerida').oneOf([yupRef('password')], 'Contraseñas no coinciden'), phoneNumber: string().matches(/^[0-9]+$/, 'El teléfono no es válido').min(PHONE_NUMBER_LENGTH).max(PHONE_NUMBER_LENGTH).required('Debe ingresar un teléfono'), birthdate: date().required('Fecha de nacimiento es requerida') }); return (_ctx, _cache) => { const _component_base_input = _resolveComponent(\"base-input\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_v_form = _resolveComponent(\"v-form\"); return _openBlock(), _createBlock(_component_v_form, { \"validation-schema\": _unref(registerFormSchema), onSubmit: _cache[2] || (_cache[2] = $event => emit('submit', $event)) }, { default: _withCtx(() => [_hoisted_1, _createVNode(_component_base_input, { label: \"Nombres\", name: \"firstName\", class: \"mb-5\" }), _createVNode(_component_base_input, { label: \"Apellidos\", name: \"lastName\", class: \"mb-5\" }), _createVNode(_component_base_input, { modelValue: rut.value, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => rut.value = $event), label: \"RUT\", name: \"rut\", class: \"mb-5\" }, null, 8, [\"modelValue\"]), _createVNode(_component_base_input, { label: \"Teléfono\", name: \"phoneNumber\", class: \"mb-5\" }, { prefix: _withCtx(() => [_createTextVNode(\" +56 9 \")]), _: 1 }), _createVNode(_component_base_input, { label: \"Fecha de nacimiento\", type: \"date\", name: \"birthdate\", class: \"mb-5\" }), _createVNode(_component_base_input, { label: \"Contraseña\", type: \"password\", name: \"password\", class: \"mb-5\" }), _createVNode(_component_base_input, { label: \"Confirmación Contraseña\", type: \"password\", name: \"passwordConfirmation\", class: \"mb-5\" }), _createVNode(_component_base_input, { label: \"Correo electrónico\", name: \"email\", class: \"mb-5\" }), _createVNode(_component_base_button, { class: \"mb-5 self-center\" }, { default: _withCtx(() => [_createTextVNode(\" Registrarse \")]), _: 1 }), _createElementVNode(\"p\", _hoisted_2, [_createTextVNode(\" ¿Ya tienes una cuenta? \"), _createElementVNode(\"button\", { type: \"button\", class: \"text-cyan-500 underline\", onClick: _cache[1] || (_cache[1] = $event => emit('toggle-mode')) }, \" Inicia sesión aquí \")])]), _: 1 }, 8, [\"validation-schema\"]); }; } });\n","import script from \"./user-session-registration-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./user-session-registration-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = /*#__PURE__*/ _createElementVNode(\"h2\", { class: \"mb-9 text-3xl font-medium\" }, \" Iniciar Sesión \", -1);\nconst _hoisted_2 = { class: \"mb-5 text-center text-xl\" };\nconst _hoisted_3 = { class: \"text-center text-sm\" };\nimport { rutFormat, rutValidate } from 'rut-helpers';\nimport { ref, watch } from 'vue';\nimport { object, string } from 'yup';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'user-session-login-form', emits: [\"toggle-mode\", \"submit\"], setup(__props, { emit }) { const rut = ref(''); watch(() => rut.value, (newValue, oldValue) => { if (newValue && newValue !== oldValue) {\n rut.value = rutFormat(newValue);\n } }); const loginFormSchema = object().shape({ rut: string().required('RUT es requerido').test('rut', 'Rut inválido', value => { if (value) {\n return rutValidate(value);\n } return false; }), password: string().required('Contraseña es requerida') }); return (_ctx, _cache) => { const _component_base_input = _resolveComponent(\"base-input\"); const _component_base_checkbox = _resolveComponent(\"base-checkbox\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_v_form = _resolveComponent(\"v-form\"); return _openBlock(), _createBlock(_component_v_form, { \"validation-schema\": _unref(loginFormSchema), onSubmit: _cache[3] || (_cache[3] = $event => emit('submit', $event)) }, { default: _withCtx(() => [_hoisted_1, _createVNode(_component_base_input, { modelValue: rut.value, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => rut.value = $event), label: \"RUT\", name: \"rut\", class: \"mb-5\" }, null, 8, [\"modelValue\"]), _createVNode(_component_base_input, { label: \"Contraseña\", type: \"password\", name: \"password\", class: \"mb-5\" }), _createVNode(_component_base_checkbox, { name: \"remember\", label: \"Mantenerse conectado\", class: \"mb-5\", value: 1 }), _createVNode(_component_base_button, { class: \"mb-5 self-center\" }, { default: _withCtx(() => [_createTextVNode(\" Iniciar sesión \")]), _: 1 }), _createElementVNode(\"p\", _hoisted_2, [_createTextVNode(\" ¿No tienes una cuenta? \"), _createElementVNode(\"button\", { type: \"button\", class: \"text-cyan-500 underline\", onClick: _cache[1] || (_cache[1] = $event => emit('toggle-mode')) }, \" Registrate aquí \")]), _createElementVNode(\"p\", _hoisted_3, [_createElementVNode(\"button\", { type: \"button\", class: \"text-cyan-500 underline\", onClick: _cache[2] || (_cache[2] = $event => emit('toggle-mode', 'forgot-password')) }, \" ¿Olvidaste tu contraseña? \")])]), _: 1 }, 8, [\"validation-schema\"]); }; } });\n","import script from \"./user-session-login-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./user-session-login-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, Fragment as _Fragment, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { key: 0, class: \"text-center\" };\nconst _hoisted_2 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mb-4\" }, \" Te hemos enviado un correo con las instrucciones para recuperar tu contraseña. \", -1);\nconst _hoisted_3 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mb-4\" }, \" Si no lo encuentras, revisa tu bandeja de spam. \", -1);\nconst _hoisted_4 = /*#__PURE__*/ _createElementVNode(\"h2\", { class: \"mb-9 text-3xl font-medium\" }, \" Olvidé mi contraseña \", -1);\nconst _hoisted_5 = { class: \"text-center text-xl\" };\nconst _hoisted_6 = { class: \"text-center text-xl\" };\nimport { rutFormat } from 'rut-helpers';\nimport { ref, watch } from 'vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'user-session-forgot-password-form', props: { success: { type: Boolean } }, emits: [\"toggle-mode\", \"submit\"], setup(__props, { emit }) { const props = __props; const rut = ref(''); watch(() => rut.value, (newValue, oldValue) => { if (newValue && newValue !== oldValue) {\n rut.value = rutFormat(newValue);\n } }); return (_ctx, _cache) => { const _component_base_button = _resolveComponent(\"base-button\"); const _component_base_input = _resolveComponent(\"base-input\"); const _component_v_form = _resolveComponent(\"v-form\"); return _openBlock(), _createBlock(_component_v_form, { onSubmit: _cache[3] || (_cache[3] = $event => emit('submit', $event)) }, { default: _withCtx(() => [props.success ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [_hoisted_2, _hoisted_3, _createVNode(_component_base_button, { href: \"/\" }, { default: _withCtx(() => [_createTextVNode(\" Volver al inicio \")]), _: 1 })])) : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [_hoisted_4, _createVNode(_component_base_input, { modelValue: rut.value, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => rut.value = $event), label: \"RUT\", name: \"rut\", class: \"mb-5\" }, null, 8, [\"modelValue\"]), _createVNode(_component_base_button, { class: \"mb-5 self-center\" }, { default: _withCtx(() => [_createTextVNode(\" Recuperar contraseña \")]), _: 1 }), _createElementVNode(\"p\", _hoisted_5, [_createTextVNode(\" ¿No tienes una cuenta? \"), _createElementVNode(\"button\", { type: \"button\", class: \"text-cyan-500 underline\", onClick: _cache[1] || (_cache[1] = $event => emit('toggle-mode', 'register')) }, \" Registrate aquí \")]), _createElementVNode(\"p\", _hoisted_6, [_createTextVNode(\" Si ya tienes contraseña, puedes \"), _createElementVNode(\"button\", { type: \"button\", class: \"text-cyan-500 underline\", onClick: _cache[2] || (_cache[2] = $event => emit('toggle-mode', 'login')) }, \" ingresar aquí \")])], 64))]), _: 1 }); }; } });\n","import script from \"./user-session-forgot-password-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./user-session-forgot-password-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = /*#__PURE__*/ _createElementVNode(\"h2\", { class: \"mb-9 text-3xl font-medium\" }, \" Cambiar mi contraseña \", -1);\nconst _hoisted_2 = { class: \"text-center text-xl\" };\nconst _hoisted_3 = { class: \"text-center text-xl\" };\nimport { ref } from 'vue';\nimport { object, string, ref as yupRef } from 'yup';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'user-session-change-password-form', emits: [\"toggle-mode\", \"submit\"], setup(__props, { emit }) { const urlParams = new URLSearchParams(window.location.search); const resetPasswordToken = ref(urlParams.get('reset_password_token') || ''); const MIN_PASSWORD_LENGTH = 8; const changePasswordFormSchema = object().shape({ password: string().required('Contraseña es requerida').min(MIN_PASSWORD_LENGTH, 'Contraseña debe tener al menos 8 caracteres').matches(/^(?=.*[A-z])(?=.*\\d).+$/, 'Contraseña debe tener al menos una letra y un número'), passwordConfirmation: string().required('Confirmación de contraseña es requerida').oneOf([yupRef('password'), null], 'Las contraseñas no coinciden') }); return (_ctx, _cache) => { const _component_base_input = _resolveComponent(\"base-input\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_v_form = _resolveComponent(\"v-form\"); return _openBlock(), _createBlock(_component_v_form, { \"validation-schema\": _unref(changePasswordFormSchema), onSubmit: _cache[3] || (_cache[3] = $event => emit('submit', $event)) }, { default: _withCtx(() => [_hoisted_1, _createVNode(_component_base_input, { label: \"Contraseña\", name: \"password\", class: \"mb-5\", type: \"password\" }), _createVNode(_component_base_input, { label: \"Confirme la nueva contraseña\", name: \"passwordConfirmation\", class: \"mb-5\", type: \"password\" }), _createVNode(_component_base_input, { modelValue: resetPasswordToken.value, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => resetPasswordToken.value = $event), type: \"hidden\", name: \"resetPasswordToken\" }, null, 8, [\"modelValue\"]), _createVNode(_component_base_button, { class: \"mb-5 self-center\" }, { default: _withCtx(() => [_createTextVNode(\" Cambiar contraseña \")]), _: 1 }), _createElementVNode(\"p\", _hoisted_2, [_createTextVNode(\" ¿No tienes una cuenta? \"), _createElementVNode(\"button\", { type: \"button\", class: \"text-cyan-500 underline\", onClick: _cache[1] || (_cache[1] = $event => emit('toggle-mode', 'register')) }, \" Registrate aquí \")]), _createElementVNode(\"p\", _hoisted_3, [_createTextVNode(\" Si no necesitas cambiar tu contraseña, puedes \"), _createElementVNode(\"button\", { type: \"button\", class: \"text-cyan-500 underline\", onClick: _cache[2] || (_cache[2] = $event => emit('toggle-mode', 'login')) }, \" ingresar aquí \")])]), _: 1 }, 8, [\"validation-schema\"]); }; } });\n","import script from \"./user-session-change-password-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./user-session-change-password-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, unref as _unref, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle } from \"vue\";\nconst _hoisted_1 = [\"src\"];\nconst _hoisted_2 = { class: \"flex w-full flex-col justify-center text-left text-ama-brown-900\" };\nconst _hoisted_3 = { key: 4, class: \"mt-4 text-center text-red-500\" };\nconst _hoisted_4 = { key: 5, class: \"mt-4 text-center first-letter:capitalize\" };\nconst _hoisted_5 = { key: 0 };\nconst _hoisted_6 = /*#__PURE__*/ _createElementVNode(\"span\", null, \"si necesita asistencia, \", -1);\nimport users from 'api/users';\nimport { inject, ref, watch } from 'vue';\nimport UserSessionRegistrationForm from './user-session-registration-form.vue';\nimport UserSessionLoginForm from './user-session-login-form.vue';\nimport UserSessionForgotPasswordForm from './user-session-forgot-password-form.vue';\nimport UserSessionChangePasswordForm from './user-session-change-password-form.vue';\nimport useSiteVariables from '../composables/useSiteVariables';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'user-session', props: { mode: { default: 'login' }, referer: null }, setup(__props) {\n const props = __props;\n const { email } = useSiteVariables();\n const formError = ref('');\n const formSuccess = ref(false);\n const formLoading = ref(false);\n const internalMode = ref(props.mode);\n watch(() => internalMode.value, () => { formError.value = ''; });\n const toggleContactFormModal = inject('toggleContactFormModal');\n function toggleMode(mode = undefined) { if (mode) {\n internalMode.value = mode;\n }\n else {\n internalMode.value = internalMode.value === 'login' ? 'register' : 'login';\n } }\n function submitLogin(values) { return users.login(values.rut, values.password, values.remember); }\n function submitRegister(values) { return users.register(values); }\n function submitForgotPassword(values) { return users.forgotPassword(values.rut); }\n function submitChangePassword(values) { return users.changePassword(values); }\n async function submitForm(values) { formLoading.value = true; const submit = { login: submitLogin, register: submitRegister, 'forgot-password': submitForgotPassword, 'change-password': submitChangePassword }[internalMode.value]; try {\n await submit(values);\n formError.value = '';\n formSuccess.value = true;\n }\n catch (error) {\n const modeWord = { login: 'iniciar sesión', register: 'registrarse', 'forgot-password': 'recuperar contraseña', 'change-password': 'cambiar contraseña' }[internalMode.value];\n formError.value = `Error al ${modeWord}, por favor revise su información e intente nuevamente.`;\n }\n finally {\n formLoading.value = false;\n } }\n watch(formSuccess, newValue => { if (!newValue)\n return; if (internalMode.value !== 'forgot-password') {\n window.location.href = props.referer || '/';\n } });\n return (_ctx, _cache) => {\n const _component_base_loading = _resolveComponent(\"base-loading\");\n return _openBlock(), _createElementBlock(\"div\", { class: \"relative mx-auto w-full max-w-xl border-ama-brown-200 bg-ama-brown-50 bg-right bg-no-repeat px-14 pb-14 pt-9 text-center md:rounded-3xl md:border\", style: _normalizeStyle(`background-image: url(${require('images/bg-user-session.png')})`) }, [_createElementVNode(\"div\", { class: _normalizeClass([\"absolute top-0 left-0 h-full w-full items-center justify-center bg-white opacity-75\", [formLoading.value ? 'flex' : 'hidden']]) }, [_createVNode(_component_base_loading)], 2), _createElementVNode(\"img\", { src: require('images/ama_logo_color.svg'), alt: \"AMA\", class: \"mx-auto mb-9 w-20\" }, null, 8, _hoisted_1), _createElementVNode(\"div\", _hoisted_2, [internalMode.value === 'login' ? (_openBlock(), _createBlock(UserSessionLoginForm, { key: 0, onToggleMode: toggleMode, onSubmit: submitForm })) : internalMode.value === 'register' ? (_openBlock(), _createBlock(UserSessionRegistrationForm, { key: 1, onToggleMode: toggleMode, onSubmit: submitForm })) : internalMode.value === 'forgot-password' ? (_openBlock(), _createBlock(UserSessionForgotPasswordForm, { key: 2, success: formSuccess.value, onToggleMode: toggleMode, onSubmit: submitForm }, null, 8, [\"success\"])) : internalMode.value === 'change-password' ? (_openBlock(), _createBlock(UserSessionChangePasswordForm, { key: 3, onToggleMode: toggleMode, onSubmit: submitForm })) : _createCommentVNode(\"\", true), formError.value ? (_openBlock(), _createElementBlock(\"p\", _hoisted_3, _toDisplayString(formError.value), 1)) : _createCommentVNode(\"\", true), formError.value ? (_openBlock(), _createElementBlock(\"p\", _hoisted_4, [internalMode.value === 'login' ? (_openBlock(), _createElementBlock(\"span\", _hoisted_5, \"Si no recuerda su contraseña, o \")) : _createCommentVNode(\"\", true), _hoisted_6, _createTextVNode(\" puede solicitar ayuda mediante este \"), _createElementVNode(\"button\", { class: \"underline\", onClick: _cache[0] || (_cache[0] = //@ts-ignore\n (...args) => _unref(toggleContactFormModal) && _unref(toggleContactFormModal)(...args)) }, \" formulario \"), _createTextVNode(\" o enviando un correo a \" + _toDisplayString(_unref(email)), 1)])) : _createCommentVNode(\"\", true)])], 4);\n };\n } });\n","import script from \"./user-session.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./user-session.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment, createElementBlock as _createElementBlock, createTextVNode as _createTextVNode } from \"vue\";\nconst _hoisted_1 = { class: \"mb-12 flex items-center md:col-span-2\" };\nconst _hoisted_2 = /*#__PURE__*/ _createElementVNode(\"h2\", { class: \"font-title text-2xl font-bold text-ama-brown-900 md:text-4xl\" }, \" Información de Perfil \", -1);\nconst _hoisted_3 = { class: \"block md:hidden\" };\nconst _hoisted_4 = /*#__PURE__*/ _createElementVNode(\"span\", { class: \"hidden md:block\" }, \" Editar información \", -1);\nconst _hoisted_5 = /*#__PURE__*/ _createElementVNode(\"span\", { class: \"hidden md:block\" }, \" Guardando... \", -1);\nconst _hoisted_6 = { class: \"block md:hidden\" };\nconst _hoisted_7 = /*#__PURE__*/ _createElementVNode(\"span\", { class: \"hidden md:block\" }, \" Guardar cambios \", -1);\nconst _hoisted_8 = /*#__PURE__*/ _createElementVNode(\"hr\", { class: \"md:col-span-2\" }, null, -1);\nconst _hoisted_9 = { key: 0, class: \"text-left text-sm text-red-600 md:col-span-2\" };\nimport { computed, inject, ref } from 'vue';\nimport users, { MIN_PASSWORD_LENGTH } from 'api/users';\nimport { object, string, date } from 'yup';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'user-profile-form', props: { user: null }, setup(__props) { const props = __props; const PHONE_NUMBER_LENGTH = inject('phoneNumberLength'); const mode = ref('view'); const formSchema = object({ firstName: string().required('Debe ingresar un nombre'), lastName: string().required('Debe ingresar un apellido'), email: string().email('Debe ingresar un email válido').required('Debe ingresar un email'), phoneNumber: string().matches(/^[0-9]+$/, 'El campo Teléfono no es válido').min(PHONE_NUMBER_LENGTH).max(PHONE_NUMBER_LENGTH).required('Debe ingresar un teléfono'), birthdate: date().required('Debe ingresar una fecha de nacimiento'), password: string().test('password', `La contraseña debe tener al menos ${MIN_PASSWORD_LENGTH} caracteres`, value => !value || value.length >= MIN_PASSWORD_LENGTH).matches(/^(?=.*[A-z])(?=.*\\d).+$/, 'La contraseña debe tener al menos una letra y un número'), passwordConfirmation: string().test('passwords-match', 'Las contraseñas no coinciden', function (value) { return !this.parent.password || this.parent.password === value; }) }); const formLoading = ref(false); const formError = ref(false); const formIsDisabled = computed(() => mode.value !== 'edit' || formLoading.value); async function handleSubmit(values) { try {\n formLoading.value = true;\n await users.update(values);\n mode.value = 'view';\n formError.value = false;\n }\n catch (e) {\n formError.value = true;\n }\n finally {\n formLoading.value = false;\n } } return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_base_loading = _resolveComponent(\"base-loading\"); const _component_base_input = _resolveComponent(\"base-input\"); const _component_v_form = _resolveComponent(\"v-form\"); return _openBlock(), _createBlock(_component_v_form, { class: \"grid grid-cols-1 gap-4 md:grid-cols-2 md:gap-8\", \"validation-schema\": _unref(formSchema), onSubmit: handleSubmit }, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_1, [_hoisted_2, mode.value === 'view' ? (_openBlock(), _createBlock(_component_base_button, { key: 0, class: \"ml-auto\", size: \"sm\", type: \"button\", onClick: _cache[0] || (_cache[0] = $event => mode.value = 'edit') }, { default: _withCtx(() => [_createElementVNode(\"span\", _hoisted_3, [_createVNode(_component_inline_svg, { src: require('images/icon-pencil.svg'), class: \"fill-current text-white\" }, null, 8, [\"src\"])]), _hoisted_4]), _: 1 })) : _createCommentVNode(\"\", true), mode.value === 'edit' ? (_openBlock(), _createBlock(_component_base_button, { key: 1, class: \"ml-auto\", size: \"sm\", type: \"submit\", variant: \"secondary\", disabled: _unref(formIsDisabled) }, { default: _withCtx(() => [formLoading.value ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [_createVNode(_component_base_loading, { size: \"sm\", variant: \"secondary\", class: \"md:mr-2\" }), _hoisted_5], 64)) : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [_createElementVNode(\"span\", _hoisted_6, [_createVNode(_component_inline_svg, { src: require('images/icon-save.svg'), class: \"fill-current text-ama-blue-900\" }, null, 8, [\"src\"])]), _hoisted_7], 64))]), _: 1 }, 8, [\"disabled\"])) : _createCommentVNode(\"\", true)]), _createVNode(_component_base_input, { label: \"Nombres\", name: \"firstName\", disabled: _unref(formIsDisabled), \"model-value\": props.user.firstName, class: \"col-span-1\" }, null, 8, [\"disabled\", \"model-value\"]), _createVNode(_component_base_input, { label: \"Apellidos\", name: \"lastName\", disabled: _unref(formIsDisabled), \"model-value\": props.user.lastName }, null, 8, [\"disabled\", \"model-value\"]), _createVNode(_component_base_input, { \"model-value\": props.user.rut, label: \"RUT\", name: \"rut\", disabled: \"\" }, null, 8, [\"model-value\"]), _createVNode(_component_base_input, { label: \"Correo electrónico\", name: \"email\", disabled: _unref(formIsDisabled), \"model-value\": props.user.email }, null, 8, [\"disabled\", \"model-value\"]), _createVNode(_component_base_input, { label: \"Teléfono\", name: \"phoneNumber\", disabled: _unref(formIsDisabled), \"model-value\": props.user.phoneNumber }, { prefix: _withCtx(() => [_createTextVNode(\" +56 9 \")]), _: 1 }, 8, [\"disabled\", \"model-value\"]), _createVNode(_component_base_input, { label: \"Fecha de nacimiento\", name: \"birthdate\", type: \"date\", disabled: _unref(formIsDisabled), \"model-value\": props.user.birthdate }, null, 8, [\"disabled\", \"model-value\"]), _hoisted_8, _createVNode(_component_base_input, { type: \"password\", label: \"Nueva Contraseña\", name: \"password\", disabled: _unref(formIsDisabled) }, null, 8, [\"disabled\"]), _createVNode(_component_base_input, { type: \"password\", label: \"Confirmar contraseña\", name: \"passwordConfirmation\", disabled: _unref(formIsDisabled) }, null, 8, [\"disabled\"]), formError.value ? (_openBlock(), _createElementBlock(\"p\", _hoisted_9, \" Error al guardar los cambios, por favor intente nuevamente. \")) : _createCommentVNode(\"\", true)]), _: 1 }, 8, [\"validation-schema\"]); }; } });\n","import script from \"./user-profile-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./user-profile-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createElementBlock as _createElementBlock } from \"vue\";\nconst _hoisted_1 = { key: 1, class: \"text-center\" };\nimport { computed } from 'vue';\nimport { parseISO, format } from 'date-fns';\nimport { es } from 'date-fns/locale';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'user-profile-applications', props: { individualApplications: null, courseApplications: null }, setup(__props) {\n const props = __props;\n function isCourseApplication(application) { return application.birthdate !== undefined; }\n function formatDate(date) { return format(parseISO(date), 'dd-MM-y', { locale: es }); }\n function parseApplication(application) {\n return [`${application.hashid}`, formatDate(application.createdAt), application.rut, application.email, isCourseApplication(application) ? 'Capacitación' : 'FAI', `${isCourseApplication(application) ? 'Ingresada' : application.currentState?.name || 'Sin Estado'}`, `Ver`];\n }\n const headers = ['ID', 'Fecha de creación', 'RUT', 'Email', 'Tipo de solicitud', 'Estado', ''];\n const tableItems = computed(() => [...props.individualApplications, ...props.courseApplications].map(parseApplication));\n return (_ctx, _cache) => { const _component_base_table = _resolveComponent(\"base-table\"); return _unref(tableItems).length > 0 ? (_openBlock(), _createBlock(_component_base_table, { key: 0, items: _unref(tableItems), headers: headers }, null, 8, [\"items\"])) : (_openBlock(), _createElementBlock(\"p\", _hoisted_1, \" No hay postulaciones \")); };\n } });\n","import script from \"./user-profile-applications.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./user-profile-applications.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, withCtx as _withCtx, Fragment as _Fragment, unref as _unref, toDisplayString as _toDisplayString, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { key: 0, class: \"absolute top-0 left-0 flex h-full w-full items-center justify-center bg-white opacity-75\" };\nconst _hoisted_2 = { class: \"mb-2 flex w-full flex-col items-center text-3xl font-bold\" };\nconst _hoisted_3 = { class: \"text-center\" };\nconst _hoisted_4 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-lg\" }, \" Hemos detectado información sobre postulaciones pasadas asociadas a tu RUT, si deseas ver la información indícanos el ID de alguna de las postulaciones previas para validar tu identidad. \", -1);\nconst _hoisted_5 = [\"src\"];\nconst _hoisted_6 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mb-4 text-xs font-semibold\" }, \" El ID lo puedes encontrar en el \\\"Asunto\\\" del correo. \", -1);\nconst _hoisted_7 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mb-4 text-lg\" }, \" Si no lo deseas hacer ahora, puedes hacerlo más tarde en tu perfil. \", -1);\nconst _hoisted_8 = { class: \"mx-auto flex max-w-xs flex-col gap-2\" };\nconst _hoisted_9 = { class: \"mb-2 flex w-full flex-col items-center text-3xl font-bold\" };\nconst _hoisted_10 = { class: \"mb-4 text-center text-lg\" };\nconst _hoisted_11 = { class: \"mx-auto flex max-w-xs flex-col gap-2\" };\nconst _hoisted_12 = { class: \"mb-2 flex w-full flex-col items-center text-3xl font-bold\" };\nconst _hoisted_13 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mb-4 text-center text-lg\" }, \" Copia y pega el código de alguna de tus postulaciones. \", -1);\nconst _hoisted_14 = { key: 4, class: \"pt-4 text-center text-red-600\" };\nimport { inject, ref, onMounted, watch } from 'vue';\nimport usersApi from 'api/users';\nimport useSiteVariables from '../composables/useSiteVariables';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'user-migration-modal', props: { open: { type: Boolean } }, emits: [\"update:open\"], setup(__props, { emit }) { const props = __props; const internalOpen = ref(props.open); const step = ref(1); const toggleContactFormModal = inject('toggleContactFormModal'); const { censoredApplicationEmail } = useSiteVariables(); function toggleModals() { internalOpen.value = false; if (toggleContactFormModal) {\n toggleContactFormModal();\n } } watch(() => props.open, newVal => { internalOpen.value = newVal; }); watch(() => internalOpen.value, newVal => { if (!newVal) {\n step.value = 1;\n emit('update:open', false);\n } }); function deleteMigrationCookie() { document.cookie = 'show_migration_modal=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;'; } onMounted(() => { deleteMigrationCookie(); }); const loading = ref(false); const error = ref(false); async function sendApplicationIdEmail() { try {\n error.value = false;\n loading.value = true;\n await usersApi.sendApplicationIdEmail();\n step.value = 3;\n }\n catch (e) {\n error.value = true;\n }\n finally {\n loading.value = false;\n } } async function submit({ applicationId }) { try {\n error.value = false;\n loading.value = true;\n await usersApi.update({ applicationId });\n window.location.pathname = '/usuarios/perfil';\n }\n catch (e) {\n error.value = true;\n }\n finally {\n loading.value = false;\n } } return (_ctx, _cache) => { const _component_base_loading = _resolveComponent(\"base-loading\"); const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_base_input = _resolveComponent(\"base-input\"); const _component_v_form = _resolveComponent(\"v-form\"); const _component_base_modal = _resolveComponent(\"base-modal\"); return _openBlock(), _createBlock(_component_base_modal, { open: internalOpen.value }, { default: _withCtx(() => [loading.value ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createVNode(_component_base_loading)])) : _createCommentVNode(\"\", true), step.value === 1 ? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [_createElementVNode(\"h2\", _hoisted_2, [_createVNode(_component_inline_svg, { src: require('images/information-circle.svg'), class: \"mb-5 h-16 w-16\" }, null, 8, [\"src\"]), _createTextVNode(\" Queremos informarte \")]), _createElementVNode(\"div\", _hoisted_3, [_hoisted_4, _createElementVNode(\"img\", { src: require('images/user-migration-mail.png'), class: \"mx-auto mb-5\" }, null, 8, _hoisted_5), _hoisted_6, _hoisted_7, _createElementVNode(\"div\", _hoisted_8, [_createVNode(_component_base_button, { class: \"w-full\", onClick: _cache[0] || (_cache[0] = $event => step.value = 3) }, { default: _withCtx(() => [_createTextVNode(\" Ingresar código \")]), _: 1 }), _createVNode(_component_base_button, { variant: \"secondary\", class: \"w-full\", onClick: _cache[1] || (_cache[1] = $event => internalOpen.value = false) }, { default: _withCtx(() => [_createTextVNode(\" Realizarlo más tarde \")]), _: 1 }), _createVNode(_component_base_button, { size: \"sm\", variant: \"text\", class: \"text-ama-blue-600 underline\", onClick: _cache[2] || (_cache[2] = $event => step.value = 2) }, { default: _withCtx(() => [_createTextVNode(\" No encuentro el código \")]), _: 1 }), _createVNode(_component_base_button, { size: \"sm\", class: \"text-ama-blue-600 underline\", variant: \"text\", onClick: toggleModals }, { default: _withCtx(() => [_createTextVNode(\" Contáctanos \")]), _: 1 })])])], 64)) : step.value === 2 ? (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [_createElementVNode(\"h2\", _hoisted_9, [_createVNode(_component_inline_svg, { src: require('images/icon-envelope.svg'), class: \"mb-5 h-16 w-16\" }, null, 8, [\"src\"]), _createTextVNode(\" Reenviar código de postulación \")]), _createElementVNode(\"p\", _hoisted_10, [_createTextVNode(\" Si no encuentras el código de postulación, puedes solicitar que te lo reenviemos. El correo será enviado a la dirección de correo asociada a la postulación: \"), _createElementVNode(\"strong\", null, _toDisplayString(_unref(censoredApplicationEmail)), 1), _createTextVNode(\". Si no recibes el correo, no dudes en contactarnos. \")]), _createElementVNode(\"div\", _hoisted_11, [_createVNode(_component_base_button, { class: \"w-full\", onClick: sendApplicationIdEmail }, { default: _withCtx(() => [_createTextVNode(\" Reenviar Código \")]), _: 1 }), _createVNode(_component_base_button, { onClick: _cache[3] || (_cache[3] = $event => step.value = 3) }, { default: _withCtx(() => [_createTextVNode(\" Ingresar código \")]), _: 1 }), _createVNode(_component_base_button, { variant: \"secondary\", class: \"w-full\", onClick: _cache[4] || (_cache[4] = $event => internalOpen.value = false) }, { default: _withCtx(() => [_createTextVNode(\" Realizarlo más tarde \")]), _: 1 })])], 64)) : (_openBlock(), _createElementBlock(_Fragment, { key: 3 }, [_createElementVNode(\"h2\", _hoisted_12, [_createVNode(_component_inline_svg, { src: require('images/key.svg'), class: \"mb-5 h-16 w-16\" }, null, 8, [\"src\"]), _createTextVNode(\" Ingresa el código \")]), _hoisted_13, _createVNode(_component_v_form, { class: \"mx-auto flex max-w-xs flex-col gap-2\", onSubmit: submit }, { default: _withCtx(() => [_createVNode(_component_base_input, { name: \"applicationId\", label: \"Ingresa el código\", class: \"mx-auto mb-4 w-full\" }), _createVNode(_component_base_button, { type: \"submit\", class: \"w-full\" }, { default: _withCtx(() => [_createTextVNode(\" Aceptar \")]), _: 1 }), _createVNode(_component_base_button, { type: \"button\", variant: \"secondary\", class: \"w-full\", onClick: _cache[5] || (_cache[5] = $event => internalOpen.value = false) }, { default: _withCtx(() => [_createTextVNode(\" Realizarlo más tarde \")]), _: 1 })]), _: 1 })], 64)), error.value ? (_openBlock(), _createElementBlock(\"p\", _hoisted_14, \" Ha ocurrido un error, por favor revisa la información ingresada si corresponde e intenta nuevamente. \")) : _createCommentVNode(\"\", true)]), _: 1 }, 8, [\"open\"]); }; } });\n","import script from \"./user-migration-modal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./user-migration-modal.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createVNode as _createVNode, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from \"vue\";\nconst _hoisted_1 = /*#__PURE__*/ _createElementVNode(\"h2\", { class: \"mb-10 text-2xl font-bold text-ama-brown-900\" }, \" Postulaciones \", -1);\nconst _hoisted_2 = { key: 0, class: \"mb-4 border border-dashed border-ama-red-900 bg-ama-yellow-50 p-4\" };\nconst _hoisted_3 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mb-4\" }, \" Hemos detectado información sobre postulaciones pasadas asociadas a tu RUT. Para poder ver la información de tus postulaciones anteriores, haz click en el siguiente botón: \", -1);\nimport { ref } from 'vue';\nimport UserProfileForm from './user-profile-form.vue';\nimport UserProfileApplications from './user-profile-applications.vue';\nimport UserMigrationModal from './user-migration-modal.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'user-profile', props: { user: null, showMigrationButton: { type: Boolean }, individualApplications: null, courseApplications: null }, setup(__props) { const props = __props; const showMigrationModal = ref(false); return (_ctx, _cache) => { const _component_base_button = _resolveComponent(\"base-button\"); return _openBlock(), _createElementBlock(\"div\", null, [_createVNode(UserProfileForm, { user: props.user, class: \"mb-20\" }, null, 8, [\"user\"]), _hoisted_1, __props.showMigrationButton ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [_hoisted_3, _createVNode(_component_base_button, { onClick: _cache[0] || (_cache[0] = $event => showMigrationModal.value = true) }, { default: _withCtx(() => [_createTextVNode(\" Validar postulaciones pasadas \")]), _: 1 })])) : _createCommentVNode(\"\", true), _createVNode(UserProfileApplications, { \"individual-applications\": props.individualApplications, \"course-applications\": props.courseApplications }, null, 8, [\"individual-applications\", \"course-applications\"]), _createVNode(UserMigrationModal, { open: showMigrationModal.value, \"onUpdate:open\": _cache[1] || (_cache[1] = $event => showMigrationModal.value = $event) }, null, 8, [\"open\"])]); }; } });\n","import script from \"./user-profile.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./user-profile.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import api from './index';\nexport default { create(medicalProcessSlotId, medicalSpecialtyId) { const path = '/api/internal/medical_process/medical_process_slots/' + `${medicalProcessSlotId}/medical_process_doctor_hours`; return api({ method: 'post', url: path, params: { 'medical_specialty_id': medicalSpecialtyId } }).then(res => res?.medicalProcessDoctorHour); } };\n","import api from './index';\nexport default { index(medicalSpecialtyId, medicalProcessId) { const path = '/api/internal/medical_process/medical_process_slots'; return api({ method: 'get', url: path, params: { 'medical_specialty_id': medicalSpecialtyId, 'medical_process_id': medicalProcessId } }).then(res => res?.medicalProcessSlots); } };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass, withCtx as _withCtx, createBlock as _createBlock, createTextVNode as _createTextVNode } from \"vue\";\nconst _hoisted_1 = { class: \"flex flex-col items-center justify-center\" };\nconst _hoisted_2 = { class: \"mb-4 text-center text-xl font-bold\" };\nconst _hoisted_3 = { class: \"flex flex-row items-center justify-center gap-4\" };\nconst _hoisted_4 = { class: \"text-lg font-semibold\" };\nconst _hoisted_5 = { class: \"mt-4 text-center\" };\nimport { parseISO, format } from 'date-fns';\nimport { ref, computed } from 'vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'medical-hours-modal', props: { medicalProcessSlots: { default: () => [] }, isOpen: { type: Boolean, default: false } }, emits: [\"update:medical-process-slot\", \"update:close-modal\"], setup(__props, { emit: emits }) { const props = __props; const selectedMedicalProcessSlot = ref(); const sortedMedicalProcessSlots = computed(() => [...props.medicalProcessSlots].sort((a, b) => { const aDate = parseISO(a.startDate); const bDate = parseISO(b.startDate); return aDate.getTime() - bDate.getTime(); })); function isSelected(slot) { return selectedMedicalProcessSlot.value?.id === slot.id; } function selectSlot(slot) { selectedMedicalProcessSlot.value = slot; } function submitSelection() { if (!selectedMedicalProcessSlot.value) {\n return;\n } emits('update:medical-process-slot', selectedMedicalProcessSlot.value); emits('update:close-modal'); } return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_base_modal = _resolveComponent(\"base-modal\"); return _openBlock(), _createBlock(_component_base_modal, { open: __props.isOpen, onClose: _cache[0] || (_cache[0] = $event => emits('update:close-modal')) }, { title: _withCtx(() => []), default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_1, [_createVNode(_component_inline_svg, { src: require('images/calendar.svg'), class: \"mx-auto h-16 w-16\" }, null, 8, [\"src\"]), _createElementVNode(\"h2\", _hoisted_2, _toDisplayString(_ctx.$t('medicalProcessSlots.modal.title')), 1), _createElementVNode(\"div\", _hoisted_3, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(sortedMedicalProcessSlots), slot => { return _openBlock(), _createBlock(_component_base_button, { key: slot.id, variant: \"text\", size: \"xs\", class: _normalizeClass([\"mb-2 rounded-md border border-ama-brown-200 py-2 px-6 hover:bg-ama-blue-500 hover:text-white\", { 'bg-ama-blue-800 text-white': isSelected(slot) }]), onClick: $event => selectSlot(slot) }, { default: _withCtx(() => [_createElementVNode(\"p\", _hoisted_4, _toDisplayString(_unref(format)(_unref(parseISO)(slot.startDate), 'HH:mm')), 1)]), _: 2 }, 1032, [\"class\", \"onClick\"]); }), 128))]), _createElementVNode(\"p\", _hoisted_5, _toDisplayString(_ctx.$t('medicalProcessSlots.modal.helpLabel')), 1), _createVNode(_component_base_button, { class: \"mt-4\", onClick: submitSelection }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.$t('medicalProcessSlots.modal.button')), 1)]), _: 1 })])]), _: 1 }, 8, [\"open\"]); }; } });\n","import script from \"./medical-hours-modal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./medical-hours-modal.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createVNode as _createVNode, resolveComponent as _resolveComponent, unref as _unref, createTextVNode as _createTextVNode, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from \"vue\";\nconst _hoisted_1 = [\"disabled\"];\nconst _hoisted_2 = { class: \"grid grid-cols-5 items-start justify-center gap-2 md:gap-4\" };\nconst _hoisted_3 = { class: \"mb-4 flex flex-col items-center justify-center\" };\nconst _hoisted_4 = { class: \"text-xs md:text-sm\" };\nconst _hoisted_5 = { class: \"text-xs\" };\nimport { parseISO, format, differenceInCalendarWeeks } from 'date-fns';\nimport { es } from 'date-fns/locale';\nimport { computed, ref } from 'vue';\nimport MedicalHoursModal from './medical-hours-modal.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'medical-hours-slots', props: { medicalProcessSlots: { default: undefined }, medicalProcess: null, workableWeekDays: { default: () => ['monday', 'tuesday', 'wednesday', 'thursday', 'friday'] }, minHour: { default: 9 }, maxHour: { default: 16 } }, emits: [\"update:medical-process-slot\"], setup(__props, { emit: emits }) { const props = __props; const computedStartDate = computed(() => { const startDate = parseISO(props.medicalProcess.startDate); const currentDate = new Date(); return startDate < currentDate ? currentDate.toISOString() : startDate.toISOString(); }); const currentWeek = ref(0); const selectedHourAndDaySlots = ref([]); const medicalProcessNumberOfWeeks = computed(() => { const startDate = parseISO(computedStartDate.value); const endDate = parseISO(props.medicalProcess.endDate); return differenceInCalendarWeeks(endDate, startDate); }); const currentWeekSlots = computed(() => props.medicalProcessSlots?.filter(slot => { const slotDate = parseISO(slot.startDate); const startDate = parseISO(computedStartDate.value); return differenceInCalendarWeeks(slotDate, startDate) === currentWeek.value; })); const workableDayHours = computed(() => { const minLimitHour = 9; const maxLimitHour = 16; const hours = []; const minHour = props.minHour > minLimitHour ? minLimitHour : props.minHour; const maxHour = props.maxHour < maxLimitHour ? maxLimitHour : props.maxHour; for (let i = minHour; i <= maxHour; i++) {\n hours.push(i.toString());\n } return hours; }); const availableHours = computed(() => { const MedicalHoursHash = {}; currentWeekSlots.value?.reduce((acc, slot) => { const day = format(parseISO(slot.startDate), 'EEEE').toLowerCase(); const hour = format(parseISO(slot.startDate), 'H'); if (acc[day] === undefined) {\n acc[day] = {};\n } if (acc[day][hour] === undefined) {\n acc[day][hour] = [];\n } acc[day][hour].push(slot); return acc; }, MedicalHoursHash); return MedicalHoursHash; }); function dateForDayAndWeek(day, week) { const DAYS_IN_WEEK = 7; const startDate = parseISO(computedStartDate.value); const mondayOfTheWeek = startDate.getDate() - startDate.getDay() + 1; const date = new Date(startDate); date.setDate(mondayOfTheWeek + week * DAYS_IN_WEEK + props.workableWeekDays.indexOf(day)); return date; } function formatDateForDayAndWeek(day, week) { const date = dateForDayAndWeek(day, week); return format(date, 'dd MMM', { locale: es }); } function dayWithinRange(day, week) { const date = dateForDayAndWeek(day, week); const startDate = parseISO(computedStartDate.value); const endDate = parseISO(props.medicalProcess.endDate); return date >= startDate && date <= endDate && currentWeekSlots.value?.length > 0; } function hourAvailable(day, hour) { return availableHours.value[day] && availableHours.value[day][hour]; } function selectAvailableHour(day, hour) { selectedHourAndDaySlots.value = availableHours.value[day][hour]; } return (_ctx, _cache) => { const _component_base_label = _resolveComponent(\"base-label\"); const _component_base_button = _resolveComponent(\"base-button\"); return _openBlock(), _createElementBlock(_Fragment, null, [_createVNode(MedicalHoursModal, { \"medical-process-slots\": selectedHourAndDaySlots.value, \"is-open\": selectedHourAndDaySlots.value.length > 0, \"onUpdate:closeModal\": _cache[0] || (_cache[0] = $event => selectedHourAndDaySlots.value = []), \"onUpdate:medicalProcessSlot\": _cache[1] || (_cache[1] = $event => emits('update:medical-process-slot', $event)) }, null, 8, [\"medical-process-slots\", \"is-open\"]), _createVNode(_component_base_label, { label: _ctx.$t('medicalProcessSlots.medicalProcessSlotLabel'), name: \"medical-process-slots\", class: \"w-full\" }, null, 8, [\"label\"]), _createElementVNode(\"div\", { class: \"mx-auto flex flex-row items-start justify-center rounded-md border border-ama-brown-200 bg-white px-2 py-4 md:px-4\", disabled: !_unref(currentWeekSlots) }, [_createVNode(_component_base_button, { variant: \"text\", size: \"xs\", disabled: currentWeek.value < 1, onClick: _cache[2] || (_cache[2] = $event => currentWeek.value -= 1) }, { default: _withCtx(() => [_createTextVNode(\" ◀ \")]), _: 1 }, 8, [\"disabled\"]), _createElementVNode(\"div\", _hoisted_2, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.workableWeekDays, day => { return _openBlock(), _createElementBlock(\"div\", { key: day, class: _normalizeClass({ 'text-slate-500': !dayWithinRange(day, currentWeek.value) }) }, [_createElementVNode(\"div\", _hoisted_3, [_createElementVNode(\"span\", _hoisted_4, _toDisplayString(_ctx.$t(`medicalProcessSlots.days.${day}`)), 1), _createElementVNode(\"span\", _hoisted_5, _toDisplayString(formatDateForDayAndWeek(day, currentWeek.value)), 1)]), (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(workableDayHours), hour => { return _openBlock(), _createElementBlock(\"div\", { key: hour, class: \"flex flex-row items-center justify-center\" }, [_createVNode(_component_base_button, { variant: \"text\", size: \"xs\", class: _normalizeClass([\"mb-2 w-full rounded-md border border-ama-brown-200 hover:bg-ama-brown-200 hover:text-white\", { 'bg-ama-brown-200 line-through hover:text-slate-500': !hourAvailable(day, hour) }]), disabled: !hourAvailable(day, hour), onClick: $event => selectAvailableHour(day, hour) }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(hour.padStart(2, '0')) + \":00 \", 1)]), _: 2 }, 1032, [\"disabled\", \"class\", \"onClick\"])]); }), 128))], 2); }), 128))]), _createVNode(_component_base_button, { variant: \"text\", size: \"xs\", disabled: currentWeek.value >= _unref(medicalProcessNumberOfWeeks), onClick: _cache[3] || (_cache[3] = $event => currentWeek.value += 1) }, { default: _withCtx(() => [_createTextVNode(\" ▶ \")]), _: 1 }, 8, [\"disabled\"])], 8, _hoisted_1)], 64); }; } });\n","import script from \"./medical-hours-slots.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./medical-hours-slots.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\";\nconst _hoisted_1 = { class: \"flex flex-col items-center justify-center border-ama-brown-200 bg-medical-hours bg-right-top bg-no-repeat p-4 md:my-8 md:mx-auto md:w-1/3 md:rounded-lg md:border md:px-16 md:py-8\" };\nconst _hoisted_2 = { class: \"mb-4 text-2xl font-bold text-ama-brown-800\" };\nconst _hoisted_3 = { class: \"mb-4 text-lg\" };\nconst _hoisted_4 = { class: \"flex flex-col items-start justify-start gap-y-4 rounded-md bg-ama-brown-100 p-8\" };\nconst _hoisted_5 = { class: \"mb-4 rounded-md bg-ama-blue-500 py-2 px-1 text-xs text-white\" };\nconst _hoisted_6 = { class: \"flex flex-row gap-2 text-slate-700\" };\nconst _hoisted_7 = { class: \"flex flex-row gap-2 text-slate-700\" };\nconst _hoisted_8 = { class: \"flex flex-row gap-2 text-slate-700\" };\nconst _hoisted_9 = { class: \"flex flex-row gap-2 text-slate-700\" };\nconst _hoisted_10 = { class: \"mt-4 text-center text-xs\" };\nconst _hoisted_11 = { href: \"/\", class: \"mt-4 text-xl text-ama-blue-500 underline hover:text-ama-blue-800\" };\nimport { parseISO, format } from 'date-fns';\nimport { es } from 'date-fns/locale';\nimport useSiteVariables from 'composables/useSiteVariables';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'medical-hours-confirmation', props: { medicalProcessDoctorHour: { default: undefined }, isNewReservation: { type: Boolean, default: true } }, setup(__props) { const props = __props; const { email } = useSiteVariables(); const startDate = parseISO(props.medicalProcessDoctorHour.medicalProcessSlot.startDate); return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"h1\", _hoisted_2, _toDisplayString(__props.isNewReservation ? _ctx.$t('medicalProcessDoctorHours.title') : _ctx.$t('medicalProcessDoctorHours.oldReservationTitle')), 1), _createElementVNode(\"h3\", _hoisted_3, _toDisplayString(__props.isNewReservation ? _ctx.$t('medicalProcessDoctorHours.subtitle') : _ctx.$t('medicalProcessDoctorHours.oldReservationSubtitle')), 1), _createElementVNode(\"div\", _hoisted_4, [_createElementVNode(\"p\", _hoisted_5, _toDisplayString(_ctx.$t('medicalProcessDoctorHours.title')), 1), _createElementVNode(\"div\", _hoisted_6, [_createVNode(_component_inline_svg, { src: require('images/document.svg'), class: \"h-6 w-6\" }, null, 8, [\"src\"]), _createTextVNode(\" \" + _toDisplayString(_ctx.$t('medicalProcessDoctorHours.specialty')) + \": \" + _toDisplayString(__props.medicalProcessDoctorHour?.doctor.medicalSpecialtyName), 1)]), _createElementVNode(\"div\", _hoisted_7, [_createVNode(_component_inline_svg, { src: require('images/calendar.svg'), class: \"h-6 w-6\" }, null, 8, [\"src\"]), _createTextVNode(\" \" + _toDisplayString(_ctx.$t('medicalProcessDoctorHours.day')) + \": \" + _toDisplayString(_unref(format)(_unref(startDate), 'EEEE d, MMMM', { locale: _unref(es) })), 1)]), _createElementVNode(\"div\", _hoisted_8, [_createVNode(_component_inline_svg, { src: require('images/clock.svg'), class: \"h-6 w-6\" }, null, 8, [\"src\"]), _createTextVNode(\" \" + _toDisplayString(_ctx.$t('medicalProcessDoctorHours.hour')) + \": \" + _toDisplayString(_unref(format)(_unref(startDate), 'HH:mm', { locale: _unref(es) })), 1)]), _createElementVNode(\"div\", _hoisted_9, [_createVNode(_component_inline_svg, { src: require('images/person.svg'), class: \"h-6 w-6\" }, null, 8, [\"src\"]), _createTextVNode(\" \" + _toDisplayString(_ctx.$t('medicalProcessDoctorHours.doctor')) + \": \" + _toDisplayString(__props.medicalProcessDoctorHour?.doctor.name), 1)]), _createElementVNode(\"p\", _hoisted_10, _toDisplayString(__props.isNewReservation ? _ctx.$t('medicalProcessDoctorHours.message') : _ctx.$t('medicalProcessDoctorHours.oldReservationMessage') + _unref(email)), 1)]), _createElementVNode(\"a\", _hoisted_11, _toDisplayString(_ctx.$t('medicalProcessDoctorHours.button')), 1)]); }; } });\n","import script from \"./medical-hours-confirmation.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./medical-hours-confirmation.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, createElementBlock as _createElementBlock } from \"vue\";\nconst _hoisted_1 = { key: 1, class: \"flex flex-col items-center border-ama-brown-200 bg-medical-hours bg-right-top bg-no-repeat p-4 md:my-8 md:mx-auto md:rounded-lg md:border md:p-8\" };\nconst _hoisted_2 = { class: \"mb-4 text-2xl\" };\nconst _hoisted_3 = { class: \"relative\" };\nconst _hoisted_4 = { key: 0, class: \"absolute inset-0 z-50 flex items-center justify-center bg-white/60\" };\nconst _hoisted_5 = { key: 0, class: \"text-center text-sm\" };\nconst _hoisted_6 = { key: 1, class: \"py-2 text-center text-sm text-red-600\" };\nimport { parseISO, format } from 'date-fns';\nimport { computed, reactive, ref } from 'vue';\nimport { useQuery } from '@tanstack/vue-query';\nimport medicalProcessDoctorHourApi from 'api/medical-process-doctor-hour';\nimport medicalProcessSlotApi from 'api/medical-process-slot';\nimport MedicalHoursSlots from 'components/medical-hours-slots.vue';\nimport MedicalHoursConfirmation from 'components/medical-hours-confirmation.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'medical-hours-form', props: { medicalProcess: null, medicalSpecialties: null, user: null, hoursForUserInMedicalProcess: null }, setup(__props) { const props = __props; function formatDate(date) { return format(parseISO(date), 'dd-MM-y HH:mm'); } const isSubmitting = ref(false); const hasError = ref(false); const form = reactive({ medicalProcessSlot: undefined, medicalSpecialtyId: undefined }); const userHasAlreadyReserved = computed(() => props.hoursForUserInMedicalProcess.length > 0); const medicalProcessDoctorHour = ref(props.hoursForUserInMedicalProcess[0]); const { data: medicalProcessSlots, refetch, isFetching } = useQuery(['medicalProcessSlots', form.medicalSpecialtyId], () => medicalProcessSlotApi.index(form.medicalSpecialtyId, props.medicalProcess.id), { refetchOnWindowFocus: true, enabled: false }); const processedMedicalProcessSlots = computed(() => { if (medicalProcessSlots) {\n return medicalProcessSlots.value?.map(slot => ({ ...slot, name: formatDate(slot.startDate) }));\n } return []; }); const limitHours = computed(() => { const hours = processedMedicalProcessSlots.value?.map(slot => parseInt(format(parseISO(slot.startDate), 'H'), 10)) ?? [0]; return { min: Math.min(...hours), max: Math.max(...hours) }; }); async function submitSelectedSlot(slot) { if (!form.medicalSpecialtyId || !slot) {\n return;\n } hasError.value = false; isSubmitting.value = true; try {\n medicalProcessDoctorHour.value = await medicalProcessDoctorHourApi.create(slot.id, form.medicalSpecialtyId);\n }\n catch (e) {\n hasError.value = true;\n } isSubmitting.value = false; } return (_ctx, _cache) => { const _component_base_select = _resolveComponent(\"base-select\"); const _component_base_loading = _resolveComponent(\"base-loading\"); return medicalProcessDoctorHour.value || _unref(userHasAlreadyReserved) ? (_openBlock(), _createBlock(MedicalHoursConfirmation, { key: 0, \"medical-process-doctor-hour\": medicalProcessDoctorHour.value, \"is-new-reservation\": !_unref(userHasAlreadyReserved), user: props.user }, null, 8, [\"medical-process-doctor-hour\", \"is-new-reservation\", \"user\"])) : (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"h1\", _hoisted_2, _toDisplayString(_ctx.$t('medicalProcessSlots.title')), 1), _createVNode(_component_base_select, { modelValue: form.medicalSpecialtyId, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => form.medicalSpecialtyId = $event), options: props.medicalSpecialties, name: \"medicalSpecialty\", label: _ctx.$t('medicalProcessSlots.medicalSpecialtyLabel'), class: \"mb-4 w-full\", disabled: isSubmitting.value, onChange: _unref(refetch) }, null, 8, [\"modelValue\", \"options\", \"label\", \"disabled\", \"onChange\"]), _createElementVNode(\"div\", _hoisted_3, [_unref(isFetching) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [_createVNode(_component_base_loading)])) : _createCommentVNode(\"\", true), _createVNode(MedicalHoursSlots, { \"medical-process-slots\": _unref(processedMedicalProcessSlots), \"medical-process\": props.medicalProcess, \"min-hour\": _unref(limitHours).min || 9, \"max-hour\": _unref(limitHours).max, \"onUpdate:medicalProcessSlot\": _cache[1] || (_cache[1] = $event => submitSelectedSlot($event)) }, null, 8, [\"medical-process-slots\", \"medical-process\", \"min-hour\", \"max-hour\"])]), isSubmitting.value ? (_openBlock(), _createElementBlock(\"p\", _hoisted_5, _toDisplayString(_ctx.$t('medicalProcessSlots.loading')), 1)) : _createCommentVNode(\"\", true), hasError.value ? (_openBlock(), _createElementBlock(\"p\", _hoisted_6, _toDisplayString(_ctx.$t('medicalProcessSlots.error')), 1)) : _createCommentVNode(\"\", true)])); }; } });\n","import script from \"./medical-hours-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./medical-hours-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment } from \"vue\";\nconst _hoisted_1 = { key: 0, class: \"text-center text-xl\" };\nconst _hoisted_2 = { class: \"mb-4\" };\nconst _hoisted_3 = { key: 1, class: \"text-center text-xl\" };\nconst _hoisted_4 = { class: \"mb-4\" };\nconst _hoisted_5 = { key: 2 };\nconst _hoisted_6 = { class: \"text-center text-xl\" };\nconst _hoisted_7 = { key: 0, class: \"mb-5 rounded bg-ama-brown-100 p-2 text-center text-xl font-semibold\" };\nconst _hoisted_8 = { class: \"mb-4 text-3xl font-bold\" };\nconst _hoisted_9 = { class: \"mb-8 text-xl\" };\nimport { computed, reactive } from 'vue';\nimport { useMutation } from '@tanstack/vue-query';\nimport usersApi from '../api/users';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'user-residency-validation-form', props: { user: null }, setup(__props) { const props = __props; const isCertificateOfResidencyAlreadyUploaded = computed(() => props.user.residencyValidationStatus !== 'pending'); const form = reactive({ certificateOfResidency: undefined }); const { isLoading, isError, isSuccess, mutate } = useMutation({ mutationFn: () => usersApi.update(form) }); return (_ctx, _cache) => { const _component_base_button = _resolveComponent(\"base-button\"); const _component_base_modal = _resolveComponent(\"base-modal\"); const _component_base_file_input = _resolveComponent(\"base-file-input\"); const _component_v_form = _resolveComponent(\"v-form\"); return _openBlock(), _createElementBlock(_Fragment, null, [_createVNode(_component_base_modal, { open: _unref(isLoading) || _unref(isError) || _unref(isSuccess) }, { default: _withCtx(() => [_unref(isSuccess) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"p\", _hoisted_2, _toDisplayString(_ctx.$t('user.certificateOfResidency.success')), 1), _createVNode(_component_base_button, { href: \"/\" }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.$t('user.certificateOfResidency.successButton')), 1)]), _: 1 })])) : _unref(isError) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [_createElementVNode(\"p\", _hoisted_4, _toDisplayString(_ctx.$t('user.certificateOfResidency.error')), 1), _createVNode(_component_base_button, { href: \"/\" }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.$t('user.certificateOfResidency.errorButton')), 1)]), _: 1 })])) : (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [_createElementVNode(\"p\", _hoisted_6, _toDisplayString(_ctx.$t('user.certificateOfResidency.uploading')), 1)]))]), _: 1 }, 8, [\"open\"]), _createVNode(_component_v_form, { disabled: \"isUploading\", class: \"flex flex-col\", onSubmit: _unref(mutate) }, { default: _withCtx(() => [_unref(isCertificateOfResidencyAlreadyUploaded) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, _toDisplayString(_ctx.$t(`user.certificateOfResidency.alreadyUploaded.${props.user.residencyValidationStatus}`)), 1)) : _createCommentVNode(\"\", true), _createElementVNode(\"h1\", _hoisted_8, _toDisplayString(_ctx.$t('user.certificateOfResidency.title')), 1), _createElementVNode(\"h2\", _hoisted_9, _toDisplayString(_ctx.$t('user.certificateOfResidency.subtitle')), 1), _createVNode(_component_base_file_input, { modelValue: form.certificateOfResidency, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => form.certificateOfResidency = $event), required: \"\", name: \"form.certificateOfResidency\", label: _ctx.$t('user.certificateOfResidency.label'), class: \"mb-8\" }, null, 8, [\"modelValue\", \"label\"]), _createVNode(_component_base_button, { class: \"mb-5 w-full self-center\" }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.$t('user.certificateOfResidency.button')), 1)]), _: 1 })]), _: 1 }, 8, [\"onSubmit\"])], 64); }; } });\n","import script from \"./user-residency-validation-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./user-residency-validation-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, unref as _unref, withCtx as _withCtx, createVNode as _createVNode, resolveComponent as _resolveComponent, toDisplayString as _toDisplayString, createCommentVNode as _createCommentVNode, mergeProps as _mergeProps, createBlock as _createBlock } from \"vue\";\nimport _imports_0 from '../../assets/images/hero_banner_1.png';\nimport _imports_1 from '../../assets/images/hero_banner_5.png';\nimport _imports_2 from '../../assets/images/hero_banner_2.png';\nimport _imports_3 from '../../assets/images/hero_banner_3.png';\nimport _imports_4 from '../../assets/images/hero_banner_4.png';\nconst _hoisted_1 = { id: \"hero-slider\" };\nconst _hoisted_2 = { class: \"relative text-white\" };\nconst _hoisted_3 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"absolute inset-y-0 left-0 z-10 w-20 bg-gradient-to-r from-white to-transparent\" }, null, -1);\nconst _hoisted_4 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"absolute inset-y-0 right-0 z-10 w-20 bg-gradient-to-l from-white to-transparent\" }, null, -1);\nconst _hoisted_5 = { class: \"grid\" };\nconst _hoisted_6 = /*#__PURE__*/ _createElementVNode(\"img\", { src: _imports_0, class: \"h-32 w-32 max-w-fit md:h-48 md:w-48\" }, null, -1);\nconst _hoisted_7 = /*#__PURE__*/ _createElementVNode(\"img\", { src: _imports_1, class: \"h-32 w-32 max-w-fit md:h-48 md:w-48\" }, null, -1);\nconst _hoisted_8 = /*#__PURE__*/ _createElementVNode(\"img\", { src: _imports_2, class: \"h-32 w-32 max-w-fit md:h-48 md:w-48\" }, null, -1);\nconst _hoisted_9 = { class: \"flex h-32 w-32 flex-col items-center justify-center rounded-bl-[64px] rounded-tr-[64px] bg-ama-blue-600 p-4 md:h-48 md:w-48 md:rounded-bl-[80px] md:rounded-tr-[80px]\" };\nconst _hoisted_10 = { class: \"text-3xl font-bold md:text-5xl\" };\nconst _hoisted_11 = { class: \"text-center\" };\nconst _hoisted_12 = /*#__PURE__*/ _createElementVNode(\"img\", { src: _imports_3, class: \"h-32 w-32 max-w-fit md:h-48 md:w-48\" }, null, -1);\nconst _hoisted_13 = /*#__PURE__*/ _createElementVNode(\"img\", { src: _imports_4, class: \"h-32 w-32 max-w-fit md:h-48 md:w-48\" }, null, -1);\nconst _hoisted_14 = { class: \"flex h-32 w-32 flex-col items-center justify-center rounded-bl-[64px] rounded-tr-[64px] bg-ama-blue-600 p-4 md:h-48 md:w-48 md:rounded-bl-[80px] md:rounded-tr-[80px]\" };\nconst _hoisted_15 = { class: \"text-3xl font-bold md:text-5xl\" };\nconst _hoisted_16 = { class: \"text-center\" };\nconst _hoisted_17 = /*#__PURE__*/ _createElementVNode(\"img\", { src: _imports_3, class: \"h-32 w-32 max-w-fit md:h-48 md:w-48\" }, null, -1);\nconst _hoisted_18 = /*#__PURE__*/ _createElementVNode(\"img\", { src: _imports_1, class: \"h-32 w-32 max-w-fit md:h-48 md:w-48\" }, null, -1);\nconst _hoisted_19 = { class: \"flex h-32 w-32 flex-col items-center justify-center rounded-bl-[64px] rounded-tr-[64px] bg-ama-blue-600 p-4 md:h-48 md:w-48 md:rounded-bl-[80px] md:rounded-tr-[80px]\" };\nconst _hoisted_20 = { class: \"text-3xl font-bold md:text-5xl\" };\nconst _hoisted_21 = { class: \"text-center\" };\nconst _hoisted_22 = /*#__PURE__*/ _createElementVNode(\"img\", { src: _imports_4, class: \"h-32 w-32 max-w-fit md:h-48 md:w-48\" }, null, -1);\nconst _hoisted_23 = { class: \"flex h-32 w-32 flex-col items-center justify-center rounded-bl-[64px] rounded-tr-[64px] bg-ama-blue-600 p-4 md:h-48 md:w-48 md:rounded-bl-[80px] md:rounded-tr-[80px]\" };\nconst _hoisted_24 = { class: \"text-3xl font-bold md:text-5xl\" };\nconst _hoisted_25 = { class: \"text-center\" };\nconst _hoisted_26 = /*#__PURE__*/ _createElementVNode(\"img\", { src: _imports_3, class: \"h-32 w-32 max-w-fit md:h-48 md:w-48\" }, null, -1);\nconst _hoisted_27 = /*#__PURE__*/ _createElementVNode(\"img\", { src: _imports_1, class: \"h-32 w-32 max-w-fit md:h-48 md:w-48\" }, null, -1);\nconst _hoisted_28 = { class: \"flex h-32 w-32 flex-col items-center justify-center rounded-bl-[64px] rounded-tr-[64px] bg-ama-blue-600 p-4 md:h-48 md:w-48 md:rounded-bl-[80px] md:rounded-tr-[80px]\" };\nconst _hoisted_29 = { class: \"text-3xl font-bold md:text-5xl\" };\nconst _hoisted_30 = { class: \"text-center\" };\nconst _hoisted_31 = /*#__PURE__*/ _createElementVNode(\"img\", { src: _imports_4, class: \"h-32 w-32 max-w-fit md:h-48 md:w-48\" }, null, -1);\nconst _hoisted_32 = { class: \"flex h-32 w-32 flex-col items-center justify-center rounded-bl-[64px] rounded-tr-[64px] bg-ama-blue-600 p-4 md:h-48 md:w-48 md:rounded-bl-[80px] md:rounded-tr-[80px]\" };\nconst _hoisted_33 = { class: \"text-3xl font-bold md:text-5xl\" };\nconst _hoisted_34 = { class: \"text-center\" };\nconst _hoisted_35 = { class: \"relative text-white\" };\nconst _hoisted_36 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"absolute inset-y-0 left-0 z-10 w-20 bg-gradient-to-r from-white to-transparent\" }, null, -1);\nconst _hoisted_37 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"absolute inset-y-0 right-0 z-10 w-20 bg-gradient-to-l from-white to-transparent\" }, null, -1);\nconst _hoisted_38 = /*#__PURE__*/ _createElementVNode(\"img\", { src: _imports_4, class: \"h-32 w-32 max-w-fit md:h-48 md:w-48\" }, null, -1);\nconst _hoisted_39 = { class: \"flex h-32 w-32 flex-col items-center justify-center rounded-bl-[64px] rounded-tr-[64px] bg-ama-blue-600 p-4 md:h-48 md:w-48 md:rounded-bl-[80px] md:rounded-tr-[80px]\" };\nconst _hoisted_40 = { class: \"text-3xl font-bold md:text-5xl\" };\nconst _hoisted_41 = { class: \"text-center\" };\nconst _hoisted_42 = /*#__PURE__*/ _createElementVNode(\"img\", { src: _imports_3, class: \"h-32 w-32 max-w-fit md:h-48 md:w-48\" }, null, -1);\nconst _hoisted_43 = /*#__PURE__*/ _createElementVNode(\"img\", { src: _imports_1, class: \"h-32 w-32 max-w-fit md:h-48 md:w-48\" }, null, -1);\nconst _hoisted_44 = { class: \"flex h-32 w-32 flex-col items-center justify-center rounded-bl-[64px] rounded-tr-[64px] bg-ama-blue-600 p-4 md:h-48 md:w-48 md:rounded-bl-[80px] md:rounded-tr-[80px]\" };\nconst _hoisted_45 = { class: \"text-3xl font-bold md:text-5xl\" };\nconst _hoisted_46 = { class: \"text-center\" };\nconst _hoisted_47 = /*#__PURE__*/ _createElementVNode(\"img\", { src: _imports_4, class: \"h-32 w-32 max-w-fit md:h-48 md:w-48\" }, null, -1);\nconst _hoisted_48 = { class: \"flex h-32 w-32 flex-col items-center justify-center rounded-bl-[64px] rounded-tr-[64px] bg-ama-blue-600 p-4 md:h-48 md:w-48 md:rounded-bl-[80px] md:rounded-tr-[80px]\" };\nconst _hoisted_49 = { class: \"text-3xl font-bold md:text-5xl\" };\nconst _hoisted_50 = { class: \"text-center\" };\nimport 'swiper/css';\nimport 'swiper/css/autoplay';\nimport { Swiper, SwiperSlide } from 'swiper/vue';\nimport { Autoplay } from 'swiper/modules';\nimport { useBreakpoints, breakpointsTailwind } from '@vueuse/core';\nimport { useI18n } from 'vue-i18n';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'hero-slider', setup(__props) { const breakpoints = useBreakpoints(breakpointsTailwind); const mdAndLarger = breakpoints.greaterOrEqual('md'); const swiperParameters = { modules: [Autoplay], slidesPerView: 2.5, loop: true, delay: 200, spaceBetween: 10, speed: 6000, allowTouchMove: false, autoplay: { enabled: true, delay: 0, disableOnInteraction: false, pauseOnMouseEnter: false }, breakpoints: { '420': { slidesPerView: 3, spaceBetween: 16 }, '768': { slidesPerView: 4, spaceBetween: 24 }, '1024': { slidesPerView: 5, spaceBetween: 24 }, '1280': { slidesPerView: 6, spaceBetween: 24 }, '1536': { slidesPerView: 7, spaceBetween: 24 } } }; const secondSwiperParameters = { ...swiperParameters, autoplay: { ...swiperParameters.autoplay, reverseDirection: true } }; const { t } = useI18n(); const heroStats = [{ icon: require('../../assets/images/icon-heart.svg'), number: '+ 1740', description: t('heroSlider.approvedApplications') }, { icon: require('../../assets/images/icon-users.svg'), number: '+ 1960', description: t('heroSlider.receivedApplications') }, { icon: require('../../assets/images/icon-users.svg'), number: '195', description: t('heroSlider.rejectedApplications') }, { icon: require('../../assets/images/icon-hospital-box-outline.svg'), number: '+ 1700', description: t('heroSlider.healthCare') }, { icon: require('../../assets/images/icon-account-plus.svg'), number: '+ 1720', description: t('heroSlider.complementaryCare') }, { icon: require('../../assets/images/icon-magnify.svg'), number: '+ 1150', description: t('heroSlider.medicalExams') }]; return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"div\", _hoisted_2, [_hoisted_3, _hoisted_4, _createElementVNode(\"div\", _hoisted_5, [_createVNode(_unref(Swiper), _mergeProps({ class: \"mb-11 w-full max-w-full\" }, swiperParameters), { default: _withCtx(() => [(_openBlock(), _createElementBlock(_Fragment, null, _renderList([1, 2], slide => { return _openBlock(), _createElementBlock(_Fragment, { key: slide }, [_createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_hoisted_6]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_hoisted_7]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_hoisted_8]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_9, [_createVNode(_component_inline_svg, { src: heroStats[0].icon, class: \"mb-2 h-3 w-3 shrink-0 fill-white md:h-6 md:w-6\" }, null, 8, [\"src\"]), _createElementVNode(\"span\", _hoisted_10, _toDisplayString(heroStats[0].number), 1), _createElementVNode(\"span\", _hoisted_11, _toDisplayString(heroStats[0].description), 1)])]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_hoisted_12]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_hoisted_13]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_14, [_createVNode(_component_inline_svg, { src: heroStats[1].icon, class: \"mb-2 h-3 w-3 shrink-0 fill-white md:h-6 md:w-6\" }, null, 8, [\"src\"]), _createElementVNode(\"span\", _hoisted_15, _toDisplayString(heroStats[1].number), 1), _createElementVNode(\"span\", _hoisted_16, _toDisplayString(heroStats[1].description), 1)])]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_hoisted_17]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_hoisted_18]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_19, [_createVNode(_component_inline_svg, { src: heroStats[2].icon, class: \"mb-2 h-3 w-3 shrink-0 fill-white md:h-6 md:w-6\" }, null, 8, [\"src\"]), _createElementVNode(\"span\", _hoisted_20, _toDisplayString(heroStats[2].number), 1), _createElementVNode(\"span\", _hoisted_21, _toDisplayString(heroStats[2].description), 1)])]), _: 1 }), !_unref(mdAndLarger) ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [_createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_hoisted_22]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_23, [_createVNode(_component_inline_svg, { src: heroStats[3].icon, class: \"mb-2 h-3 w-3 shrink-0 fill-white md:h-6 md:w-6\" }, null, 8, [\"src\"]), _createElementVNode(\"span\", _hoisted_24, _toDisplayString(heroStats[3].number), 1), _createElementVNode(\"span\", _hoisted_25, _toDisplayString(heroStats[3].description), 1)])]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_hoisted_26]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_hoisted_27]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_28, [_createVNode(_component_inline_svg, { src: heroStats[4].icon, class: \"mb-2 h-3 w-3 shrink-0 fill-white md:h-6 md:w-6\" }, null, 8, [\"src\"]), _createElementVNode(\"span\", _hoisted_29, _toDisplayString(heroStats[4].number), 1), _createElementVNode(\"span\", _hoisted_30, _toDisplayString(heroStats[4].description), 1)])]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_hoisted_31]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_32, [_createVNode(_component_inline_svg, { src: heroStats[5].icon, class: \"mb-2 h-3 w-3 shrink-0 fill-white md:h-6 md:w-6\" }, null, 8, [\"src\"]), _createElementVNode(\"span\", _hoisted_33, _toDisplayString(heroStats[5].number), 1), _createElementVNode(\"span\", _hoisted_34, _toDisplayString(heroStats[5].description), 1)])]), _: 1 })], 64)) : _createCommentVNode(\"\", true)], 64); }), 64))]), _: 1 }, 16)])]), _createElementVNode(\"div\", _hoisted_35, [_hoisted_36, _hoisted_37, _unref(mdAndLarger) ? (_openBlock(), _createBlock(_unref(Swiper), _mergeProps({ key: 0, class: \"mb-11\" }, secondSwiperParameters), { default: _withCtx(() => [(_openBlock(), _createElementBlock(_Fragment, null, _renderList([1, 2], slide => { return _openBlock(), _createElementBlock(_Fragment, { key: slide }, [_createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_hoisted_38]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_39, [_createVNode(_component_inline_svg, { src: heroStats[3].icon, class: \"mb-2 h-3 w-3 shrink-0 fill-white md:h-6 md:w-6\" }, null, 8, [\"src\"]), _createElementVNode(\"span\", _hoisted_40, _toDisplayString(heroStats[3].number), 1), _createElementVNode(\"span\", _hoisted_41, _toDisplayString(heroStats[3].description), 1)])]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_hoisted_42]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_hoisted_43]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_44, [_createVNode(_component_inline_svg, { src: heroStats[4].icon, class: \"mb-2 h-3 w-3 shrink-0 fill-white md:h-6 md:w-6\" }, null, 8, [\"src\"]), _createElementVNode(\"span\", _hoisted_45, _toDisplayString(heroStats[4].number), 1), _createElementVNode(\"span\", _hoisted_46, _toDisplayString(heroStats[4].description), 1)])]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_hoisted_47]), _: 1 }), _createVNode(_unref(SwiperSlide), null, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_48, [_createVNode(_component_inline_svg, { src: heroStats[5].icon, class: \"mb-2 h-3 w-3 shrink-0 fill-white md:h-6 md:w-6\" }, null, 8, [\"src\"]), _createElementVNode(\"span\", _hoisted_49, _toDisplayString(heroStats[5].number), 1), _createElementVNode(\"span\", _hoisted_50, _toDisplayString(heroStats[5].description), 1)])]), _: 1 })], 64); }), 64))]), _: 1 }, 16)) : _createCommentVNode(\"\", true)])]); }; } });\n","import script from \"./hero-slider.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./hero-slider.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./hero-slider.vue?vue&type=style&index=0&id=158c4be4&lang=css\"\n\nconst __exports__ = script;\n\nexport default __exports__","/* eslint-disable max-statements */ import { createApp, provide, readonly, ref, onMounted, watch } from 'vue';\nimport { Field, Form, ErrorMessage } from 'vee-validate';\nimport { createI18n } from 'vue-i18n';\nimport { VueQueryPlugin } from '@tanstack/vue-query';\nimport Rails from '@rails/ujs';\nimport InlineSvg from 'vue-inline-svg';\nimport './css/application.css';\nimport IndividualApplicationForm from './components/individual-application-form.vue';\nimport IndividualApplicationTracker from './components/individual-application-tracker.vue';\nimport IndividualApplicationTrackerFinder from './components/individual-application-tracker-finder.vue';\nimport TheNavBar from './components/the-nav-bar.vue';\nimport TheNavSidebar from './components/the-nav-sidebar.vue';\nimport TheContactFormModal from './components/the-contact-form-modal.vue';\nimport BaseModal from './components/base-modal.vue';\nimport BaseLoading from './components/base-loading.vue';\nimport BaseLabel from './components/base-label.vue';\nimport BaseInput from './components/base-input.vue';\nimport BaseSelect from './components/base-select.vue';\nimport BaseMultiselect from './components/base-multiselect.vue';\nimport BaseButton from './components/base-button.vue';\nimport BaseFileInput from './components/base-file-input.vue';\nimport BaseRadio from './components/base-radio.vue';\nimport BaseCheckbox from './components/base-checkbox.vue';\nimport BaseTag from './components/base-tag.vue';\nimport BaseTable from './components/base-table.vue';\nimport BaseTableButton from './components/base-table-button.vue';\nimport BaseForm from './components/base-form.vue';\nimport EventItem from './components/event-item.vue';\nimport FeedbackBanner from './components/feedback-banner.vue';\nimport CourseList from './components/course-list.vue';\nimport FeedbackList from './components/feedback-list.vue';\nimport CourseApplicationForm from './components/course-application-form.vue';\nimport ApplicationExpensesReportForm from './components/application-expenses-report-form.vue';\nimport UserSession from './components/user-session.vue';\nimport UserProfile from './components/user-profile.vue';\nimport UserMigrationModal from './components/user-migration-modal.vue';\nimport MedicalHoursForm from './components/medical-hours-form.vue';\nimport UserResidencyValidationForm from './components/user-residency-validation-form.vue';\nimport LanguageDropdown from './components/language-dropdown.vue';\nimport HeroSlider from './components/hero-slider.vue';\nimport esCL from './locales/es-CL.json';\nimport en from './locales/en.json';\nimport { useWindowScroll } from '@vueuse/core'; // eslint-disable-next-line max-statements\ndocument.addEventListener('DOMContentLoaded', () => {\n Rails.start();\n const i18n = createI18n({ legacy: false, locale: window.siteVariables.locale, messages: { 'es-CL': esCL, 'en': en } });\n const app = createApp({ components: { TheNavBar, TheNavSidebar, IndividualApplicationForm, IndividualApplicationTracker, IndividualApplicationTrackerFinder, EventItem, FeedbackBanner, CourseList, FeedbackList, TheContactFormModal, CourseApplicationForm, ApplicationExpensesReportForm, UserProfile, UserMigrationModal, MedicalHoursForm, UserResidencyValidationForm, LanguageDropdown, HeroSlider }, setup() {\n function menuItemIsActive(hrefs) { const matches = hrefs.filter(href => window.location.pathname.startsWith(href) || window.location.hash.startsWith(href)); return matches.length > 0; }\n const t = i18n.global.t;\n const menuItems = ref([{ label: t('navigation.menu.alliance'), href: '/#alianza', active: menuItemIsActive(['alianza']) }, { label: t('navigation.menu.programs'), href: '/#programas', active: menuItemIsActive(['programas']) }, { label: t('navigation.menu.fai'), href: '/programas/fai', active: menuItemIsActive(['/programas/fai']) }, { label: t('navigation.menu.experiences'), href: '/#experiencias', active: menuItemIsActive(['experiencias']) }, { label: t('navigation.menu.events'), href: '/eventos', active: menuItemIsActive(['/eventos']) }, { label: t('navigation.menu.links'), href: '/enlaces', active: menuItemIsActive(['enlaces']) }]);\n provide('menuItems', readonly(menuItems));\n const isRoot = ref(window.location.pathname === '/');\n onMounted(() => {\n const { y } = useWindowScroll();\n const previousScroll = ref(y.value);\n const scrollDirection = ref('down');\n const headerHeight = document.querySelector('#header')?.clientHeight ?? 0;\n document.querySelector('#vue-app').style.marginTop = `${headerHeight}px`;\n if (isRoot.value) {\n const activeSectionEntry = ref();\n const activeSectionObserver = new IntersectionObserver(entries => { scrollDirection.value = y.value > previousScroll.value ? 'down' : 'up'; previousScroll.value = y.value; const oldMenuItemIndex = menuItems.value.findIndex(item => item.href === `/#${activeSectionEntry.value?.target.id}`); const menuItemIndex = menuItems.value.findIndex(item => item.href === `/#${entries[0].target.id}`); if (scrollDirection.value === 'down') {\n if (menuItemIndex > oldMenuItemIndex) {\n activeSectionEntry.value = entries[0];\n }\n }\n else {\n if (menuItemIndex < oldMenuItemIndex) {\n activeSectionEntry.value = entries[0];\n }\n } }, {\n threshold: [...Array(10).keys()].map(x => x / 10)\n });\n watch(activeSectionEntry, entry => { if (entry) {\n menuItems.value.forEach(item => { item.active = item.href === `/#${entry.target.id}`; });\n }\n else {\n menuItems.value.forEach(item => { item.active = false; });\n menuItems.value[0].active = true;\n } }, { immediate: true });\n menuItems.value.forEach(item => { const sectionId = item.href.replace('/', ''); const section = document.querySelector(sectionId); if (section) {\n activeSectionObserver.observe(section);\n } });\n }\n });\n const isMenuOpen = ref(false);\n provide('menuOpen', isMenuOpen);\n provide('toggleMenu', () => { isMenuOpen.value = !isMenuOpen.value; });\n const isContactFormModalOpen = ref(false);\n provide('toggleContactFormModal', () => { isContactFormModalOpen.value = !isContactFormModalOpen.value; });\n const PHONE_NUMBER_LENGTH = 8;\n provide('phoneNumberLength', PHONE_NUMBER_LENGTH);\n return { isContactFormModalOpen, isMenuOpen };\n } });\n app.use(i18n);\n app.use(VueQueryPlugin);\n app.component('VField', Field);\n app.component('VForm', Form);\n app.component('VErrorMessage', ErrorMessage);\n app.component('InlineSvg', InlineSvg);\n app.component('BaseModal', BaseModal);\n app.component('BaseLoading', BaseLoading);\n app.component('BaseLabel', BaseLabel);\n app.component('BaseInput', BaseInput);\n app.component('BaseSelect', BaseSelect);\n app.component('BaseMultiselect', BaseMultiselect);\n app.component('BaseButton', BaseButton);\n app.component('BaseFileInput', BaseFileInput);\n app.component('BaseRadio', BaseRadio);\n app.component('BaseCheckbox', BaseCheckbox);\n app.component('BaseTag', BaseTag);\n app.component('BaseTable', BaseTable);\n app.component('BaseTableButton', BaseTableButton);\n app.component('BaseForm', BaseForm);\n app.component('UserSession', UserSession);\n app.mount('#vue-app');\n return app;\n});\n"],"names":["create","data","api","headers","method","url","serialize","individualApplication","then","res","show","id","rut","path","update","get","regionId","communes","_hoisted_1","class","_hoisted_2","key","_hoisted_3","_hoisted_4","_hoisted_5","_","_hoisted_6","_hoisted_7","_hoisted_8","__name","props","step","regions","localities","isLicanantay","type","Boolean","indigenousCertificate","firstName","lastName","phoneNumber","email","communeId","localityId","localityOther","address","defaultCommune","defaultRegion","identityCardFront","identityCardBack","certificateOfResidency","socialHomeRegistryCertificateOfResidencySelected","socialHomeRegistryCertificateOfResidency","communityCertificateOfResidencySelected","communityCertificateOfResidency","certificateOfResidencyServiceBillSelected","certificateOfResidencyServiceBill","certificateOfResidencyEmploymentContractSelected","certificateOfResidencyEmploymentContract","certificateOfResidencyDrivingLicenseSelected","certificateOfResidencyDrivingLicense","certificateOfResidencyOtherSelected","certificateOfResidencyOther","certificateOfResidencyOtherFile","disabled","intro","emits","setup","__props","emit","newValue","oldValue","async","updateCommunes","value","newRegion","oldRegion","newLocality","oldLocality","_ctx","_cache","_component_base_input","_component_base_select","_component_base_file_input","_component_v_field","_component_v_error_message","_component_base_label","_component_base_checkbox","$t","innerHTML","title","body","required","name","label","$event","$emit","placeholder","prefix","options","Number","is","purposeIds","usage","initiativeName","purposeOther","defaultPurposes","useDisclaimer","errorMessage","handleChange","handleBlur","undefined","initialValue","checkedValue","uncheckedValue","_component_BaseLabel","_component_VErrorMessage","as","p","includes","checked","onBlur","args","onChange","target","banks","bankAccountTypes","bank","bankAccountType","bankAccountNumber","bankCertificate","cashierCheckText","isRutAccount","currentStep","steps","currentFormStep","onClick","src","useSiteVariables","window","siteVariables","href","_hoisted_9","_hoisted_10","_hoisted_11","user","default","mode","introPersonalDetails","introProjectDetails","introBankDetails","form","disclaimer","allDisclaimersAccepted","certificatesSelected","atLeastOneCertificateSelected","Object","values","some","certificate","areAllCertificatesOfResidencyValid","selectedCertificateValidity","every","certificateName","formCertificate","isRutAccountComputed","rutAccount","replace","slice","PHONE_NUMBER_LENGTH","computedBankAccountTypes","map","formRules","isTrue","test","matches","min","max","oneOf","formStep","isLastStep","length","currentRules","reduce","acc","rules","fields","loading","error","postSubmitModal","prevStep","savedApplication","submit","CONTACT_MESSAGE","filter","fullName","cashierCheck","e","response","status","errors","setTimeout","closeAndResetModal","_component_base_loading","_component_base_modal","_component_base_button","_component_v_form","onSubmit","open","hashid","modelValue","keys","variant","applicationHashid","trackingState","trackingHashid","editFormloading","editFormError","formSteps","actions","setErrors","onFormSubmit","handleSubmit","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","applicationExpensesReportStatus","missingInfoStateId","expensesReportAvailable","urlParams","URLSearchParams","location","search","functionalTrackingState","isTrackingStateDefined","isExpensesReportStatusDefined","history","pushState","description","order","computedApplicationExpensesReportMessagePath","nullable","autofocus","login","password","remember","rememberMe","register","forgotPassword","changePassword","requestData","applicationId","sendApplicationIdEmail","logout","vertical","loggedIn","users","reload","_component_inline_svg","setLocale","locale","hideFeedbackBanner","availableLocales","ref","action","availableLocale","idx","newLocale","settings","viewBox","fill","d","usersEnabled","menuItems","toggleMenu","menuItem","requireLogin","active","to","contactFormMessage","isOpen","message","success","onClose","labelHint","searchable","inputValue","valueProp","multiple","color","colorClasses","yellow","peach","blue","$slots","items","header","item","index","detail","template","functional","script","_createElementBlock","_renderSlot","inputTypes","validations","parseConditions","getSelectedRemoteOptionText","useFormBuilder","transformValue","input","finalValue","parsedDefaultValue","formResponseFieldSelectedOptionsAttributes","file","dateValue","valueType","inputType","Array","isArray","v","formFieldOptions","find","option","formFieldOptionId","customValue","parsedFields","formFields","forEach","field","attrs","initialValues","entries","parsedFieldsWithConditions","conditions","validationSchema","parsedField","parsedFieldValidation","requiredConditions","schema","validation","transform","optional","parseStringWithFormFieldValue","match","fieldName","requiredFields","describe","tests","flat","currentStepIdx","currentStepFields","currentValidationSchema","fieldWatchers","watch","immediate","individualApplicationId","successMessage","codes","replaceAll","keepValuesOnUnmount","formResponseFieldsAttributes","formFieldId","formResponse","formId","slug","applicationProcessId","catch","err","console","fullWidth","component","dataUrl","dataKey","slots","slot","fn","content","event","formatDate","date","format","parse","Date","isDefaultImage","useDefaultImage","srcset","image","squareThumbWebp","squareThumb","alt","onError","parsedDescription","startDate","endDate","schedule","participants","Feedback","feedback","t","MAX_DESCRIPTION_LENGTH","toString","terms","postSubmit","meta","size","valid","isOpenFeedbackBannerModal","isOpenBanner","handleFeedbackBannerModal","toggleBanner","onCloseModal","onSuccess","course","dateLocale","applicationDeadline","weeksDuration","modality","formUrl","courses","imageUrl","descriptionElement","isOverflowing","scrollHeight","offsetHeight","ref_key","modules","swiperRef","next","slideNext","prev","slidePrev","virtual","loop","onSwiper","feedbackItem","courseId","CourseApplication","courseApplication","availableModalities","birthdate","motivation","preferredModality","applicationExpensesReports","documentTypes","formatAmount","amount","Intl","NumberFormat","style","currency","totalAmount","total","report","documentType","documentNumber","purposes","purpose","documents","document","filename","applicationExpensesReport","delete","showExpensesReportModal","individualApplicationHashid","documentTypeOther","selectedPurposes","typeError","when","documentValidationError","isLoading","hasError","documentCount","addDocumentField","push","clearFields","closeExpensesReportModal","_component_base_multiselect","width","height","expensesReportStatus","reviewComment","expensesReport","showDocumentViewerModal","viewerDocument","showConfirmDestroyModal","destroyReport","toggleExpensesReportModal","toggleDocumentViewerModal","addExpensesReport","removeExpensesReport","destroyExpensesReport","destroyedReportId","saveReport","showDocument","innerWidth","hidden","registerFormSchema","shape","passwordConfirmation","loginFormSchema","resetPasswordToken","changePasswordFormSchema","referer","formError","formSuccess","formLoading","internalMode","toggleContactFormModal","toggleMode","submitLogin","submitRegister","submitForgotPassword","submitChangePassword","submitForm","modeWord","onToggleMode","formSchema","this","parent","formIsDisabled","individualApplications","courseApplications","isCourseApplication","application","parseApplication","createdAt","parseISO","currentState","tableItems","_component_base_table","internalOpen","censoredApplicationEmail","toggleModals","newVal","cookie","pathname","showMigrationButton","showMigrationModal","medicalProcessSlotId","medicalSpecialtyId","params","medicalProcessDoctorHour","medicalProcessId","medicalProcessSlots","selectedMedicalProcessSlot","sortedMedicalProcessSlots","sort","a","b","aDate","bDate","getTime","isSelected","submitSelection","selectSlot","medicalProcess","workableWeekDays","minHour","maxHour","computedStartDate","currentDate","toISOString","currentWeek","selectedHourAndDaySlots","medicalProcessNumberOfWeeks","differenceInCalendarWeeks","currentWeekSlots","slotDate","workableDayHours","hours","i","availableHours","MedicalHoursHash","day","toLowerCase","hour","dateForDayAndWeek","week","mondayOfTheWeek","getDate","getDay","setDate","indexOf","formatDateForDayAndWeek","dayWithinRange","hourAvailable","selectAvailableHour","padStart","isNewReservation","medicalProcessSlot","doctor","medicalSpecialtyName","medicalSpecialties","hoursForUserInMedicalProcess","isSubmitting","userHasAlreadyReserved","refetch","isFetching","useQuery","refetchOnWindowFocus","enabled","processedMedicalProcessSlots","limitHours","parseInt","Math","submitSelectedSlot","isCertificateOfResidencyAlreadyUploaded","residencyValidationStatus","isError","isSuccess","mutate","useMutation","mutationFn","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_40","_hoisted_41","_hoisted_42","_hoisted_43","_hoisted_44","_hoisted_45","_hoisted_46","_hoisted_47","_hoisted_48","_hoisted_49","_hoisted_50","mdAndLarger","greaterOrEqual","swiperParameters","slidesPerView","delay","spaceBetween","speed","allowTouchMove","autoplay","disableOnInteraction","pauseOnMouseEnter","breakpoints","secondSwiperParameters","reverseDirection","heroStats","icon","number","slide","addEventListener","i18n","legacy","messages","app","components","TheNavBar","menuItemIsActive","hrefs","startsWith","hash","global","isRoot","y","previousScroll","scrollDirection","headerHeight","querySelector","clientHeight","marginTop","activeSectionEntry","activeSectionObserver","IntersectionObserver","oldMenuItemIndex","findIndex","menuItemIndex","threshold","x","entry","sectionId","section","observe","isMenuOpen","isContactFormModalOpen","use","mount"],"sourceRoot":""}