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AAAC,GAAoB,IAAK,CAAEvG,MAAO,kDAAmD,SAAiB,QAAO4I,IAAgB,KAAM,CAAC,CAAC,MAAQ,QAAOA,OAAkB,SAAgB,IAAArC,GAAoB,IAAKyE,EAAY,kFAA6E,KAAM,CAAC,CAAC,MAAQ,QAAOG,QAEn0B,G","sources":["webpack://app/./app/javascript/api/form.ts","webpack://app/./app/javascript/utils/csrf-token.ts","webpack://app/./app/javascript/api/index.ts","webpack://app/./app/javascript/composables/remoteOptions.ts","webpack://app/./app/javascript/components/base-radio-group.vue?e18f","webpack://app/./app/javascript/components/base-radio-group.vue","webpack://app/./app/javascript/components/base-checkbox-group.vue?4234","webpack://app/./app/javascript/components/base-checkbox-group.vue","webpack://app/./app/javascript/composables/useFormBuilder.ts","webpack://app/./app/javascript/utils/decamelize-for-files.ts","webpack://app/./app/javascript/components/base-button.vue?85aa","webpack://app/./app/javascript/components/base-button.vue","webpack://app/./app/javascript/components/base-checkbox.vue?b208","webpack://app/./app/javascript/components/base-checkbox.vue","webpack://app/./app/javascript/components/base-file-input.vue?8841","webpack://app/./app/javascript/components/base-file-input.vue","webpack://app/./app/javascript/components/base-input.vue?085d","webpack://app/./app/javascript/components/base-input.vue","webpack://app/./app/javascript/components/base-label.vue?984b","webpack://app/./app/javascript/components/base-label.vue","webpack://app/./app/javascript/components/base-loading.vue?346f","webpack://app/./app/javascript/components/base-loading.vue?625a","webpack://app/./app/javascript/components/base-modal.vue?aa6a","webpack://app/./app/javascript/components/base-modal.vue","webpack://app/./app/javascript/components/base-radio.vue?e4df","webpack://app/./app/javascript/components/base-radio.vue","webpack://app/./app/javascript/components/base-select.vue?4a50","webpack://app/./app/javascript/components/base-select.vue"],"sourcesContent":["import { serialize } from 'object-to-formdata';\nimport decamelizeKeys from '../utils/decamelize-for-files';\nimport api from './index';\nfunction formatForm(form) { return { ...form, formStepsAttributes: form.formSteps?.map(step => ({ ...step, formFieldsAttributes: step?.formFields?.map(field => ({ ...field, conditions: field?.conditions && typeof field?.conditions !== 'string' ? JSON.stringify(field?.conditions) : field?.conditions, validations: field?.validations && typeof field?.validations !== 'string' ? JSON.stringify(field?.validations) : field?.validations, formFieldOptionsAttributes: field?.formFieldOptions?.map(option => ({ ...option })) })) })) }; }\nexport default { create(form) { const path = '/admin/forms/'; return api({ method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, url: path, data: serialize(decamelizeKeys({ form: formatForm(form) }), { booleansAsIntegers: true, indices: true }) }).then(res => res?.form); }, edit(form) { const path = `/admin/forms/${form.id}`; return api({ method: 'put', headers: { 'Content-Type': 'multipart/form-data' }, url: path, data: serialize(decamelizeKeys({ form: formatForm(form) }), { booleansAsIntegers: true, indices: true }) }).then(res => res?.form); }, createFormResponse(formResponse) { const path = '/api/internal/form_responses'; return api({ method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, url: path, data: serialize(decamelizeKeys({ formResponse })) }).then(res => res?.formResponse); }, createAdminFormResponse(formResponse, adminFaiApplicationUserId) { const path = '/api/internal/form_responses/admin_create'; return api({ method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, url: path, data: serialize(decamelizeKeys({ formResponse, adminFaiApplicationUserId })) }).then(res => res?.formResponse); }, showFormResponse(id) { const path = `/api/internal/form_responses/${id}`; return api({ method: 'get', url: path }).then(res => res?.formResponse); } };\n","// From: https://github.com/rails/rails/blob/main/actionview/app/javascript/rails-ujs/utils/csrf.js\nexport default function csrfToken() { const meta = document.querySelector('meta[name=csrf-token]'); const token = meta && meta.getAttribute('content'); return token ?? false; }\n","import axios from 'axios';\nimport * as humps from 'humps';\nimport merge from 'lodash.merge';\nimport csrfToken from '../utils/csrf-token';\nfunction api(options) { const mergedOptions = merge({ headers: { 'Content-Type': 'application/json', Accept: 'application/json', 'X-CSRF-Token': csrfToken() } }, options); return axios(mergedOptions).then(response => { if (response.data) {\n return Object.assign(humps.camelizeKeys(response.data), { headers: response.headers });\n} return null; }); }\nexport default api;\n","import { reactive, ref } from 'vue';\nimport axios from 'axios';\nconst remoteOptions = reactive({});\nexport default function useRemoteOptions() { const loading = ref(false); const error = ref(false); async function getRemoteOptions(fieldName, dataUrl, dataKey) { try {\n loading.value = true;\n const { data } = await axios.get(dataUrl);\n remoteOptions[fieldName] = dataKey ? data[dataKey] : data;\n return remoteOptions[fieldName];\n}\ncatch (e) {\n error.value = true;\n return [];\n}\nfinally {\n loading.value = false;\n} } return { remoteOptions, getRemoteOptions, loading, error }; }\n","import { defineComponent as _defineComponent } from 'vue';\nimport { createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, unref as _unref } from \"vue\";\nconst _hoisted_1 = { key: 1, class: \"text-sm text-ama-purple-500\" };\nimport { ErrorMessage } from 'vee-validate';\nimport BaseRadio from './base-radio.vue';\nimport BaseLabel from './base-label.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-radio-group', props: { options: null, modelValue: null, name: null, label: null, required: { type: Boolean } }, emits: [\"update:modelValue\"], setup(__props, { emit }) { const props = __props; return (_ctx, _cache) => { return _openBlock(), _createElementBlock(\"fieldset\", null, [_createVNode(BaseLabel, { label: props.label, name: __props.name, required: props.required }, null, 8, [\"label\", \"name\", \"required\"]), props.options.length > 0 ? (_openBlock(true), _createElementBlock(_Fragment, { key: 0 }, _renderList(props.options, option => { return _openBlock(), _createBlock(BaseRadio, { key: option.id, name: props.name, label: option.name, \"model-value\": __props.modelValue, value: option.id, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => emit('update:modelValue', $event)) }, null, 8, [\"name\", \"label\", \"model-value\", \"value\"]); }), 128)) : (_openBlock(), _createElementBlock(\"p\", _hoisted_1, \" No hay opciones disponibles \")), _createVNode(_unref(ErrorMessage), { name: props.name, class: \"text-right text-xs text-red-600\", as: \"p\" }, null, 8, [\"name\"])]); }; } });\n","import script from \"./base-radio-group.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-radio-group.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, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, unref as _unref } from \"vue\";\nconst _hoisted_1 = { key: 1, class: \"text-sm text-ama-purple-500\" };\nimport { ErrorMessage } from 'vee-validate';\nimport BaseLabel from './base-label.vue';\nimport BaseCheckbox from './base-checkbox.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-checkbox-group', props: { options: null, modelValue: { type: [Array, Number, Boolean] }, name: null, label: null, required: { type: Boolean } }, emits: [\"update:modelValue\"], setup(__props, { emit }) { const props = __props; return (_ctx, _cache) => { return _openBlock(), _createElementBlock(\"fieldset\", null, [_createVNode(BaseLabel, { label: props.label, name: __props.name, required: props.required }, null, 8, [\"label\", \"name\", \"required\"]), props.options.length > 0 ? (_openBlock(true), _createElementBlock(_Fragment, { key: 0 }, _renderList(props.options, option => { return _openBlock(), _createBlock(BaseCheckbox, { key: option.id, name: props.name, label: option.name, \"model-value\": __props.modelValue, value: option.id, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => emit('update:modelValue', $event)) }, null, 8, [\"name\", \"label\", \"model-value\", \"value\"]); }), 128)) : (_openBlock(), _createElementBlock(\"p\", _hoisted_1, \" No hay opciones disponibles \")), _createVNode(_unref(ErrorMessage), { name: props.name, class: \"text-right text-xs text-red-600\", as: \"p\" }, null, 8, [\"name\"])]); }; } });\n","import script from \"./base-checkbox-group.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-checkbox-group.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { computed, markRaw } from 'vue';\nimport { string, mixed, date, setLocale, number } from 'yup';\nimport es from 'yup-es';\nimport { rutFormat, rutValidate } from 'rut-helpers';\nimport BaseInput from '../components/base-input.vue';\nimport BaseSelect from '../components/base-select.vue';\nimport BaseFileInput from '../components/base-file-input.vue';\nimport BaseRadioGroup from '../components/base-radio-group.vue';\nimport BaseCheckboxGroup from '../components/base-checkbox-group.vue';\nimport useRemoteOptions from './remoteOptions'; // eslint-disable-next-line no-magic-numbers\nconst PHONE_NUMBER_LENGTH = 8;\nsetLocale(es);\nconst inputTypes = { text: { id: 'text', name: 'Texto', valueType: 'single', component: markRaw(BaseInput), validation: string(), attrs: { type: 'text' }, encryptable: true }, email: { id: 'email', name: 'Correo electrónico', valueType: 'single', component: markRaw(BaseInput), validation: string().email(), attrs: { type: 'email' }, encryptable: true }, rut: { id: 'rut', name: 'RUT', valueType: 'single', component: markRaw(BaseInput), watch(field) { return (newValue, oldValue) => { if (newValue && newValue !== oldValue) {\n field.value = rutFormat(newValue);\n } }; }, validation: string().test(value => { if (value) {\n return rutValidate(value);\n } return false; }), attrs: { type: 'text' }, encryptable: true }, phone: { id: 'phone', name: 'Teléfono', valueType: 'single', component: markRaw(BaseInput), slots: [{ name: 'prefix', content: '+56 9' }], validation: string().matches(/^[0-9]+$/, 'El campo no es válido').min(PHONE_NUMBER_LENGTH).max(PHONE_NUMBER_LENGTH), attrs: { type: 'tel' }, encryptable: true }, dropdown: { id: 'dropdown', name: 'Dropdown / Select', valueType: 'multiple', component: markRaw(BaseSelect), validation: string() }, file: { id: 'file', name: 'Archivo', valueType: 'file', component: markRaw(BaseFileInput), validation: mixed() }, date: { id: 'date', name: 'Fecha', valueType: 'date', component: markRaw(BaseInput), validation: date(), attrs: { type: 'date' }, encryptable: true }, checkbox: { id: 'checkbox', name: 'Checkbox', valueType: 'multiple', component: markRaw(BaseCheckboxGroup), validation: mixed() }, radio: { id: 'radio', name: 'Radio', valueType: 'multiple', component: markRaw(BaseRadioGroup), validation: string() }, region: { id: 'region', baseId: 'dropdown', name: 'Región', valueType: 'multiple', component: markRaw(BaseSelect), validation: number(), defaultBuilderValues: { dataUrl: '/api/internal/regions', dataKey: 'regions' } }, commune: { id: 'commune', baseId: 'dropdown', name: 'Comuna', valueType: 'multiple', component: markRaw(BaseSelect), validation: number(), defaultBuilderValues: { dataUrl: '/api/internal/communes', dataKey: 'communes' } }, locality: { id: 'locality', baseId: 'dropdown', name: 'Localidad', valueType: 'multiple', component: markRaw(BaseSelect), validation: number(), defaultBuilderValues: { dataUrl: '/api/internal/localities', dataKey: 'localities' } },\n rut_account: { id: 'rut_account', name: 'Cuenta RUT', valueType: 'single', component: markRaw(BaseInput), watch(field) { return (newValue, oldValue) => { if (newValue && newValue !== oldValue) {\n if (rutValidate(newValue) && /\\D/.test(newValue)) {\n field.value = newValue.split('-')[0].replace(/\\D/g, '');\n }\n } }; }, validation: string(), attrs: { type: 'text' }, encryptable: true, defaultBuilderValues: { defaultValue: 'user_rut' } } };\nfunction getFormFields(formValues) { return computed(() => { const ffields = formValues.formSteps?.reduce((fields, step) => { fields.push(...step.formFields); return fields; }, []); return ffields; }); }\nconst conditionOperators = { '==': {\n evaluate: (a, b) => a == b, label: 'Es igual a', isComparison: true\n }, '!=': {\n evaluate: (a, b) => a != b, label: 'Es diferente a', isComparison: true\n }, '>': { evaluate: (a, b) => Number(a) > Number(b), label: 'Es mayor a', isComparison: true }, '<': { evaluate: (a, b) => Number(a) < Number(b), label: 'Es menor a', isComparison: true }, '>=': { evaluate: (a, b) => Number(a) >= Number(b), label: 'Es mayor o igual a', isComparison: true }, '<=': { evaluate: (a, b) => Number(a) <= Number(b), label: 'Es menor o igual a', isComparison: true }, 'empty': { evaluate: a => !a, label: 'Está vacío', isComparison: false }, 'not_empty': { evaluate: a => !!a, label: 'No está vacío', isComparison: false } };\nconst { remoteOptions } = useRemoteOptions();\nfunction getSelectedRemoteOptionText(fieldName, value) {\n return remoteOptions[fieldName]?.find(option => option.id == value)?.name;\n} // eslint-disable-next-line max-statements, complexity\nfunction parseCondition(condition, parsedFields) { const fieldToCompare = parsedFields[condition.field]; if (fieldToCompare) {\n let fieldToCompareValue = fieldToCompare.value;\n if (fieldToCompare.formFieldOptions && fieldToCompare.formFieldOptions.length > 0) {\n fieldToCompareValue = fieldToCompare.formFieldOptions /* eslint-disable eqeqeq */.find(option => { if (Array.isArray(fieldToCompare.value)) {\n return fieldToCompare.value.some(val => option.id == val) && option.value == condition.value;\n } return fieldToCompare.value === option.id && option.value == condition.value; })?.value; /* eslint-enable eqeqeq */\n }\n if (fieldToCompare.dataUrl) {\n fieldToCompareValue = getSelectedRemoteOptionText(fieldToCompare.name, fieldToCompareValue) || fieldToCompareValue;\n }\n return conditionOperators[condition.operator].evaluate(fieldToCompareValue, condition.value);\n} return true; }\nfunction parseConditions(conditions, fields) { const { and, or } = conditions || {}; if (and) {\n return and.every(condition => { if (condition && Object.keys(condition).includes('field')) {\n return parseCondition(condition, fields);\n } return parseConditions(condition, fields); });\n} if (or) {\n return or.some(condition => { if (condition && Object.keys(condition).includes('field')) {\n return parseCondition(condition, fields);\n } return parseConditions(condition, fields); });\n} return true; }\nconst validations = { required: { label: 'Requerido', schema: (val, yupSchema, parsedFields) => { const validate = typeof val === 'boolean' ? val : parseConditions(val, parsedFields); return validate ? yupSchema.transform((value, originalValue) => originalValue ? value : undefined).nullable().required() : yupSchema; } }, '==': { label: 'Debe ser igual a', schema: (ruleValue, yupSchema, parsedField) => yupSchema.test('custom-one-of', ({ label }) => `${label} debe ser igual a ${ruleValue}`, value => {\n const options = parsedField?.formFieldOptions;\n if (options && options.length > 0 && !parsedField?.dataUrl) { // eslint-disable-next-line eqeqeq\n return options.filter(option => option.value === ruleValue).some(option => option.id == value);\n }\n if (parsedField?.dataUrl) {\n return getSelectedRemoteOptionText(parsedField.name, value) === ruleValue;\n } // eslint-disable-next-line eqeqeq\n return value == ruleValue;\n }) }, '!=': { label: 'Debe ser diferente a', schema: (ruleValue, yupSchema, parsedField) => yupSchema.test('custom-not-one-of', ({ label }) => `${label} no debe ser igual a ${ruleValue}`, value => {\n const options = parsedField?.formFieldOptions;\n if (options && options.length > 0) { // eslint-disable-next-line eqeqeq\n return options.filter(option => option.value === ruleValue).every(option => option.id != value);\n }\n if (parsedField?.dataUrl) {\n return getSelectedRemoteOptionText(parsedField.name, value) !== ruleValue;\n } // eslint-disable-next-line eqeqeq\n return value != ruleValue;\n }) } };\nexport default function useFormBuilder() { return { inputTypes, getFormFields, conditionOperators, validations, parseConditions, getSelectedRemoteOptionText }; }\n","// From https://github.com/domchristie/humps/issues/51#issuecomment-425113505\n/* eslint-disable max-statements */ import { decamelize } from 'humps'; // eslint-disable-next-line complexity\nfunction decamelizeThatDontBreaksFile(object) { if (object && !(object instanceof File)) {\n if (object instanceof Array) {\n return object.map(item => decamelizeThatDontBreaksFile(item));\n }\n if (object instanceof FormData) {\n const formData = new FormData();\n for (const [key, value] of object.entries()) {\n formData.append(decamelize(key), value);\n }\n return formData;\n }\n if (typeof object === 'object') {\n return Object.keys(object).reduce((acc, next) => ({ ...acc, [decamelize(next)]: decamelizeThatDontBreaksFile(object[next]) }), {});\n }\n} return object; }\nexport default decamelizeThatDontBreaksFile;\n","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { key: 0 };\nconst _hoisted_2 = /*#__PURE__*/ _createElementVNode(\"svg\", { class: \"h-4 w-4 animate-spin\", xmlns: \"http://www.w3.org/2000/svg\", fill: \"none\", viewBox: \"0 0 24 24\" }, [/*#__PURE__*/ _createElementVNode(\"circle\", { class: \"opacity-25\", cx: \"12\", cy: \"12\", r: \"10\", stroke: \"currentColor\", \"stroke-width\": \"4\" }), /*#__PURE__*/ _createElementVNode(\"path\", { class: \"opacity-75\", fill: \"currentColor\", d: \"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135\\n 5.824 3 7.938l3-2.647z\" })], -1);\nconst _hoisted_3 = [_hoisted_2];\nimport { computed, useAttrs } from 'vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-button', props: { variant: { default: 'default' }, size: { default: 'md' }, loading: { type: Boolean } }, setup(__props) { const props = __props; const variants = { default: ['text-white', 'border border-solid', 'border-ama-blue-600', 'hover:bg-slate-800 hover:border-slate-800', 'text-center', 'bg-ama-blue-600', 'disabled:hover:bg-ama-blue-600 disabled:hover:border-slate-800', 'focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-ama-blue-600'], secondary: ['text-ama-blue-700', 'border-2 border-solid', 'border-ama-blue-700', 'hover:border-ama-blue-900 hover:text-ama-blue-900 hover:font-medium', 'text-center', 'bg-ama-blue-50', 'disabled:hover:bg-white disabled:hover:text-ama-blue-600', 'focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-ama-blue-600'], text: ['text-current'] }; const sizes = { xs: ['p-1', 'text-xs'], sm: ['px-2', 'py-2', 'text-base', 'md:px-6', 'md:py-3', 'md:text-2xl'], md: ['py-3', 'px-12', 'text-2xl'] }; const attrs = useAttrs(); const currentVariant = computed(() => variants[props.variant]); const currentTag = computed(() => attrs.href ? 'a' : 'button'); const currentSize = computed(() => sizes[props.size]); return (_ctx, _cache) => { return _openBlock(), _createBlock(_resolveDynamicComponent(_unref(currentTag)), { class: _normalizeClass([\"inline-flex items-center justify-center rounded-md font-medium disabled:opacity-75\", [_unref(currentVariant), _unref(currentSize)]]) }, { default: _withCtx(() => [props.loading ? (_openBlock(), _createElementBlock(\"span\", _hoisted_1, _hoisted_3)) : _renderSlot(_ctx.$slots, \"default\", { key: 1 })]), _: 3 }, 8, [\"class\"]); }; } });\n","import script from \"./base-button.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-button.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, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\";\nconst _hoisted_1 = [\"checked\", \"value\", \"name\", \"disabled\"];\nimport { useField } from 'vee-validate';\nimport { toRef } from 'vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-checkbox', props: { modelValue: { type: [Array, Boolean, Number, String], default: undefined }, value: { type: [Boolean, String, Number, Object], default: true }, name: null, label: null, disabled: { type: Boolean, default: false }, uncheckedValue: { type: [Boolean, String, Number], default: false } }, setup(__props) {\n const props = __props;\n const name = toRef(props, 'name');\n const { handleChange, checked, meta } = useField(name, undefined, { type: 'checkbox', checkedValue: props.value, initialValue: props.modelValue, uncheckedValue: props.uncheckedValue });\n return (_ctx, _cache) => {\n return _openBlock(), _createElementBlock(\"label\", { class: _normalizeClass([\"flex items-center gap-4\", { 'opacity-75': props.disabled, '!text-red-600': !_unref(meta).valid && _unref(meta).touched }]) }, [_createElementVNode(\"input\", { checked: _unref(checked), value: __props.value, type: \"checkbox\", name: _unref(name), class: \"text-ama-yellow-300\", disabled: props.disabled, onChange: _cache[0] || (_cache[0] = //@ts-ignore\n (...args) => _unref(handleChange) && _unref(handleChange)(...args)) }, null, 40, _hoisted_1), _createTextVNode(\" \" + _toDisplayString(__props.label), 1)], 2);\n };\n } });\n","import script from \"./base-checkbox.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-checkbox.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, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, withCtx as _withCtx, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives } from \"vue\";\nconst _hoisted_1 = [\"href\"];\nconst _hoisted_2 = [\"id\", \"name\", \"disabled\"];\nimport { useField } from 'vee-validate';\nimport { toRef } from 'vue';\nimport BaseLabel from './base-label.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-file-input', props: { modelValue: { default: undefined }, label: { default: '' }, name: null, required: { type: Boolean }, labelHint: { default: undefined }, disabled: { type: Boolean, default: false } }, setup(__props) {\n const props = __props;\n const name = toRef(props, 'name');\n const { value: inputValue, errorMessage, handleBlur, handleChange } = useField(name, undefined, { type: 'file', initialValue: props.modelValue });\n function setFile(e) { const fileInput = e.target; if (fileInput.files && fileInput.files[0]) {\n handleChange(fileInput.files[0]);\n } }\n function isFile(value) { return value instanceof File; }\n return (_ctx, _cache) => {\n return _openBlock(), _createElementBlock(\"div\", null, [_createVNode(BaseLabel, { label: __props.label, name: _unref(name), required: __props.required, \"label-hint\": __props.labelHint }, { default: _withCtx(() => [isFile(_unref(inputValue)) || !__props.modelValue ? (_openBlock(), _createElementBlock(\"div\", { key: 0, class: _normalizeClass([\"flex\", { 'rounded-lg border-ama-brown-300 bg-ama-brown-200 text-ama-brown-700': props.disabled }]) }, [_createElementVNode(\"div\", { class: _normalizeClass([\"form-input w-full truncate rounded-lg rounded-r-none border py-3 px-2 font-normal\", props.disabled ? 'border-ama-brown-300' : 'border-slate-200']) }, _toDisplayString(_unref(inputValue) ? _unref(inputValue).name : ' '), 3), _createElementVNode(\"span\", { class: _normalizeClass([\"inline-flex cursor-pointer select-none items-center justify-center rounded-r-lg px-4 text-sm font-medium\", props.disabled ? 'bg-ama-brown-300' : 'bg-ama-blue-800 text-white hover:bg-ama-purple-900']), type: \"button\" }, \" Adjuntar \", 2)], 2)) : (_openBlock(), _createElementBlock(\"a\", { key: 1, href: _unref(inputValue)?.url, target: \"_blank\", class: \"block font-normal text-ama-brown-700\" }, _toDisplayString(_unref(inputValue)?.filename), 9, _hoisted_1)), _createElementVNode(\"input\", { id: _unref(name), type: \"file\", name: _unref(name), class: _normalizeClass([\"hidden\", [{ 'border-red-600 text-red-600': !!_unref(errorMessage), 'rounded-l-none': _ctx.$slots.before }]]), disabled: props.disabled, onChange: setFile, onBlur: _cache[0] || (_cache[0] = //@ts-ignore\n (...args) => _unref(handleBlur) && _unref(handleBlur)(...args)) }, null, 42, _hoisted_2)]), _: 1 }, 8, [\"label\", \"name\", \"required\", \"label-hint\"]), _withDirectives(_createElementVNode(\"p\", { class: \"text-right text-xs text-red-600\" }, _toDisplayString(_unref(errorMessage)), 513), [[_vShow, _unref(errorMessage)]])]);\n };\n } });\n","import script from \"./base-file-input.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-file-input.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, renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementBlock as _createElementBlock, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, vShow as _vShow, withDirectives as _withDirectives } from \"vue\";\nconst _hoisted_1 = { class: \"flex\" };\nimport { useField } from 'vee-validate';\nimport { toRef, useAttrs } from 'vue';\nimport BaseLabel from './base-label.vue';\nconst __default__ = { inheritAttrs: false };\nexport default /*#__PURE__*/ _defineComponent({ ...__default__, __name: 'base-input', props: { type: { default: 'text' }, modelValue: { default: undefined }, label: { default: '' }, placeholder: { default: undefined }, name: null, is: { default: 'input' }, required: { type: Boolean }, labelHint: { default: undefined }, disabled: { type: Boolean, default: false } }, setup(__props) { const props = __props; const name = toRef(props, 'name'); const { value: inputValue, errorMessage, handleBlur, handleChange } = useField(name, undefined, { initialValue: props.modelValue }); const attrs = useAttrs(); const attrsWithoutClass = Object.fromEntries(Object.entries(attrs).filter(([key, _]) => key !== 'class')); return (_ctx, _cache) => { return _openBlock(), _createElementBlock(\"div\", { class: _normalizeClass(_ctx.$attrs.class) }, [__props.label ? (_openBlock(), _createBlock(BaseLabel, { key: 0, label: __props.label, name: _unref(name), required: props.required, \"label-hint\": __props.labelHint }, null, 8, [\"label\", \"name\", \"required\", \"label-hint\"])) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_1, [_ctx.$slots.prefix ? (_openBlock(), _createElementBlock(\"span\", { key: 0, class: _normalizeClass([\"flex items-center whitespace-nowrap rounded-l border border-r-0 p-2\", [props.disabled ? 'border-ama-brown-300 bg-ama-brown-200 text-ama-brown-700' : 'border-slate-200 bg-gray-100']]) }, [_renderSlot(_ctx.$slots, \"prefix\")], 2)) : _createCommentVNode(\"\", true), (_openBlock(), _createBlock(_resolveDynamicComponent(__props.is), _mergeProps(_unref(attrsWithoutClass), { id: _unref(name), value: _unref(inputValue), placeholder: __props.placeholder, name: _unref(name), type: __props.type, disabled: props.disabled, required: props.required, class: [\"w-full rounded-lg py-3 focus:border-slate-200 focus:outline-none focus:ring-2 focus:ring-ama-blue-600 focus:ring-offset-2\", [props.disabled ? 'border-ama-brown-300 bg-ama-brown-200 text-ama-brown-700 opacity-75' : 'border-slate-200', { '!border-red-600 !text-red-600': !!_unref(errorMessage), 'rounded-l-none': _ctx.$slots.prefix }]], onInput: _unref(handleChange), onBlur: _unref(handleBlur) }), null, 16, [\"id\", \"value\", \"placeholder\", \"name\", \"type\", \"disabled\", \"required\", \"class\", \"onInput\", \"onBlur\"]))]), _withDirectives(_createElementVNode(\"p\", { class: \"text-right text-xs text-red-600\" }, _toDisplayString(_unref(errorMessage)), 513), [[_vShow, _unref(errorMessage)]])], 2); }; } });\n","import script from \"./base-input.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-input.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, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { class: \"ml-2 text-sm text-slate-500\" };\nconst _hoisted_2 = /*#__PURE__*/ _createElementVNode(\"span\", { class: \"hidden lg:inline\" }, \"* Este campo es obligatorio\", -1);\nconst _hoisted_3 = /*#__PURE__*/ _createElementVNode(\"span\", { class: \"inline lg:hidden\" }, \"* Obligatorio\", -1);\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-label', props: { label: null, name: null, required: { type: Boolean }, labelHint: { default: undefined }, tag: { default: 'label' } }, setup(__props) { return (_ctx, _cache) => { return _openBlock(), _createBlock(_resolveDynamicComponent(__props.tag), { for: __props.name, class: \"mb-2 block font-semibold\" }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(__props.label) + \" \", 1), _createElementVNode(\"span\", _hoisted_1, [__props.required && !__props.labelHint ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [_hoisted_2, _hoisted_3], 64)) : _createCommentVNode(\"\", true), _createTextVNode(\" \" + _toDisplayString(__props.labelHint), 1)]), _renderSlot(_ctx.$slots, \"default\")]), _: 3 }, 8, [\"for\"]); }; } });\n","import script from \"./base-label.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-label.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, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode } from \"vue\";\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-loading', props: { size: { default: 'lg' }, variant: { default: 'primary' } }, setup(__props) { const props = __props; const sizes = { sm: ['w-6', 'h-6'], lg: ['w-16', 'h-16'] }; const variants = { primary: ['border-t-ama-yellow-300'], secondary: ['border-t-ama-blue-700'] }; return (_ctx, _cache) => { return _openBlock(), _createElementBlock(\"div\", { class: _normalizeClass([\"lds-ring\", sizes[props.size]]) }, [(_openBlock(), _createElementBlock(_Fragment, null, _renderList(4, n => { return _createElementVNode(\"div\", { key: n, class: _normalizeClass([[variants[props.variant], sizes[props.size]], \"border-8 border-transparent\"]) }, null, 2); }), 64))], 2); }; } });\n","import script from \"./base-loading.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-loading.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./base-loading.vue?vue&type=style&index=0&id=7c83e484&scoped=true&lang=css\"\n\nimport exportComponent from \"/tmp/build_f95d8692/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-7c83e484\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, createVNode as _createVNode, renderSlot as _renderSlot, withCtx as _withCtx, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { class: \"relative mx-auto flex max-h-screen w-full flex-col overflow-auto rounded-md bg-white md:max-w-screen-md\" };\nconst _hoisted_2 = { key: 0, class: \"relative flex items-start justify-center border-b py-2 px-6\" };\nconst _hoisted_3 = /*#__PURE__*/ _createElementVNode(\"svg\", { class: \"focus:outline-none\", width: \"24\", height: \"24\", viewBox: \"0 0 24 24\", xmlns: \"http://www.w3.org/2000/svg\" }, [/*#__PURE__*/ _createElementVNode(\"g\", { fill: \"none\", \"fill-rule\": \"evenodd\" }, [/*#__PURE__*/ _createElementVNode(\"path\", { d: \"M0 0h24v24H0z\" }), /*#__PURE__*/ _createElementVNode(\"path\", { d: \"M18.3 5.71a.996.996 0 00-1.41 0L12 10.59 7.11 5.7A.996.996 0 105.7 7.11L10.59 12 5.7 16.89a.996.996 0 101.41 1.41L12 13.41l4.89 4.89a.996.996 0 101.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z\", fill: \"currentColor\", \"fill-rule\": \"nonzero\" })])], -1);\nconst _hoisted_4 = [_hoisted_3];\nconst _hoisted_5 = { class: \"p-10\" };\nimport { Dialog, DialogOverlay, DialogTitle } from '@headlessui/vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-modal', props: { open: { type: Boolean, default: false } }, emits: [\"close\"], setup(__props) { return (_ctx, _cache) => { return _openBlock(), _createBlock(_unref(Dialog), { open: __props.open, class: \"fixed inset-0 z-50 flex items-center justify-center\", onClose: _cache[1] || (_cache[1] = $event => _ctx.$emit('close')) }, { default: _withCtx(() => [_createVNode(_unref(DialogOverlay), { class: \"fixed inset-0 bg-black opacity-60\" }), _createElementVNode(\"div\", _hoisted_1, [_ctx.$slots.title ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [_createVNode(_unref(DialogTitle), { class: \"m-0 text-lg font-semibold\" }, { default: _withCtx(() => [_renderSlot(_ctx.$slots, \"title\")]), _: 3 }), _createElementVNode(\"button\", { class: \"m-0 ml-auto cursor-pointer overflow-y-auto border-0 bg-transparent p-0 text-gray-500 hover:text-gray-800 focus:text-gray-800 focus:outline-none\", type: \"button\", onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('close')) }, _hoisted_4)])) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_5, [_renderSlot(_ctx.$slots, \"default\", { close: () => _ctx.$emit('close') })])])]), _: 3 }, 8, [\"open\"]); }; } });\n","import script from \"./base-modal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-modal.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, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\";\nconst _hoisted_1 = [\"checked\", \"value\", \"name\", \"disabled\"];\nimport { useField } from 'vee-validate';\nimport { toRef } from 'vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-radio', props: { modelValue: null, value: null, name: null, label: null, disabled: { type: Boolean } }, emits: [\"update:modelValue\"], setup(__props, { emit }) { const props = __props; const name = toRef(props, 'name'); const { handleChange, checked, meta, setTouched } = useField(props.name, undefined, { type: 'radio', checkedValue: props.value, initialValue: props.modelValue }); function onChange(e) { const input = e.target; setTouched(true); if (Array.isArray(props.modelValue)) {\n const newValue = [...props.modelValue];\n if (input.checked) {\n newValue.push(props.value);\n }\n else {\n newValue.splice(newValue.indexOf(props.value), 1);\n }\n emit('update:modelValue', newValue);\n }\n else {\n emit('update:modelValue', input.checked ? props.value : undefined);\n } handleChange(e); } return (_ctx, _cache) => { return _openBlock(), _createElementBlock(\"label\", { class: _normalizeClass([\"flex w-full flex-row text-center text-blue-800\", { 'opacity-75': props.disabled, '!text-red-600': !_unref(meta).valid && _unref(meta).touched }]) }, [_createElementVNode(\"input\", { checked: _unref(checked), value: __props.value, type: \"radio\", name: _unref(name), class: \"text-ama-yellow-300\", disabled: props.disabled, onChange: onChange }, null, 40, _hoisted_1), _createTextVNode(\" \" + _toDisplayString(__props.label), 1)], 2); }; } });\n","import script from \"./base-radio.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-radio.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, createVNode as _createVNode, createElementBlock as _createElementBlock, Transition as _Transition, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, vShow as _vShow, withDirectives as _withDirectives } from \"vue\";\nconst _hoisted_1 = { class: \"relative flex\" };\nconst _hoisted_2 = { key: 0, class: \"absolute right-2 top-1/2 -translate-y-1/2 leading-none transition-opacity duration-500\" };\nconst _hoisted_3 = [\"id\", \"name\", \"value\", \"disabled\"];\nconst _hoisted_4 = [\"value\"];\nconst _hoisted_5 = { key: 1, value: \"\" };\nconst _hoisted_6 = { class: \"text-right text-xs text-red-600 md:col-span-2\" };\nimport { useField } from 'vee-validate';\nimport { computed, ref, toRef, watch } from 'vue';\nimport BaseLoading from './base-loading.vue';\nimport BaseLabel from './base-label.vue';\nimport useRemoteOptions from '../composables/remoteOptions';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-select', props: { modelValue: { default: undefined }, options: { default: () => [] }, label: { default: undefined }, name: null, required: { type: Boolean }, labelHint: { default: undefined }, disabled: { type: Boolean, default: false }, dataUrl: { default: undefined }, dataKey: { default: undefined } }, setup(__props) {\n const props = __props;\n const name = toRef(props, 'name');\n const { value: inputValue, errorMessage, handleBlur, handleChange, resetField } = useField(name, undefined, { initialValue: props.modelValue, valueProp: props.modelValue });\n const { getRemoteOptions, error: remoteOptionsError, loading: remoteOptionsLoading } = useRemoteOptions();\n const remoteOptions = ref([]); // eslint-disable-next-line max-statements\n watch(() => props.dataUrl, async (dataUrl, oldDataUrl) => { if (dataUrl) {\n if (dataUrl !== oldDataUrl && oldDataUrl !== undefined) {\n resetField();\n }\n remoteOptions.value = await getRemoteOptions(name.value, dataUrl, props.dataKey);\n } }, { immediate: true });\n const animatingLoader = ref(false);\n const computedOptions = computed(() => props.dataUrl ? [...remoteOptions.value, ...props.options] : props.options);\n return (_ctx, _cache) => {\n return _openBlock(), _createElementBlock(\"div\", null, [__props.label ? (_openBlock(), _createBlock(BaseLabel, { key: 0, label: __props.label, name: _unref(name), required: __props.required, \"label-hint\": __props.labelHint }, null, 8, [\"label\", \"name\", \"required\", \"label-hint\"])) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_1, [_createVNode(_Transition, { \"leave-to-class\": \"opacity-0\", onBeforeEnter: _cache[0] || (_cache[0] = $event => animatingLoader.value = true), onAfterLeave: _cache[1] || (_cache[1] = $event => animatingLoader.value = false) }, { default: _withCtx(() => [_unref(remoteOptionsLoading) ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, [_createVNode(BaseLoading, { size: \"sm\" })])) : _createCommentVNode(\"\", true)]), _: 1 }), _createElementVNode(\"select\", { id: _unref(name), name: _unref(name), class: _normalizeClass([\"default-select w-full rounded-lg py-3 transition-opacity\", [props.disabled ? 'border-ama-brown-300 bg-ama-brown-200 text-ama-brown-700 opacity-75' : 'border-slate-200', { '!important !border-red-600 !text-red-600': !!_unref(errorMessage), 'opacity-50': animatingLoader.value }]]), value: _unref(inputValue), disabled: __props.disabled || animatingLoader.value, onChange: _cache[2] || (_cache[2] = //@ts-ignore\n (...args) => _unref(handleChange) && _unref(handleChange)(...args)), onBlur: _cache[3] || (_cache[3] = //@ts-ignore\n (...args) => _unref(handleBlur) && _unref(handleBlur)(...args)) }, [_unref(computedOptions).length > 0 ? (_openBlock(true), _createElementBlock(_Fragment, { key: 0 }, _renderList(_unref(computedOptions), option => { return _openBlock(), _createElementBlock(\"option\", { key: option.id, value: option.id }, _toDisplayString(option.name), 9, _hoisted_4); }), 128)) : (_openBlock(), _createElementBlock(\"option\", _hoisted_5, \" No hay opciones disponibles \"))], 42, _hoisted_3)]), _withDirectives(_createElementVNode(\"p\", { class: \"text-right text-xs text-red-600 md:col-span-2\" }, _toDisplayString(_unref(errorMessage)), 513), [[_vShow, _unref(errorMessage)]]), _withDirectives(_createElementVNode(\"p\", _hoisted_6, \" Hubo un error al obtener la información, por favor inténtelo nuevamente \", 512), [[_vShow, _unref(remoteOptionsError)]])]);\n };\n } });\n","import script from \"./base-select.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-select.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__"],"names":["formatForm","form","formStepsAttributes","formSteps","map","step","formFieldsAttributes","formFields","field","conditions","JSON","stringify","validations","formFieldOptionsAttributes","formFieldOptions","option","create","method","headers","url","data","serialize","booleansAsIntegers","indices","then","res","edit","path","id","createFormResponse","formResponse","createAdminFormResponse","adminFaiApplicationUserId","showFormResponse","csrfToken","meta","document","querySelector","getAttribute","options","mergedOptions","Accept","axios","response","Object","assign","humps","camelizeKeys","remoteOptions","useRemoteOptions","loading","error","getRemoteOptions","async","fieldName","dataUrl","dataKey","value","e","_hoisted_1","key","class","__name","props","modelValue","name","label","required","type","Boolean","emits","setup","__props","emit","_ctx","_cache","length","$event","as","Array","Number","inputTypes","text","valueType","component","validation","attrs","encryptable","email","rut","watch","newValue","oldValue","test","phone","slots","content","matches","min","max","dropdown","file","date","checkbox","radio","region","baseId","defaultBuilderValues","commune","locality","rut_account","split","replace","defaultValue","getFormFields","formValues","ffields","reduce","fields","push","conditionOperators","evaluate","a","b","isComparison","getSelectedRemoteOptionText","find","parseCondition","condition","parsedFields","fieldToCompare","fieldToCompareValue","isArray","some","val","operator","parseConditions","and","or","every","keys","includes","schema","yupSchema","transform","originalValue","undefined","nullable","ruleValue","parsedField","filter","useFormBuilder","decamelizeThatDontBreaksFile","object","File","item","FormData","formData","entries","append","decamelize","acc","next","_hoisted_3","_","xmlns","fill","viewBox","cx","cy","r","stroke","d","variant","default","size","variants","secondary","sizes","xs","sm","md","currentVariant","currentTag","href","currentSize","$slots","String","disabled","uncheckedValue","handleChange","checked","checkedValue","initialValue","valid","touched","onChange","args","_hoisted_2","labelHint","inputValue","errorMessage","handleBlur","setFile","fileInput","target","files","filename","before","onBlur","inheritAttrs","placeholder","is","attrsWithoutClass","fromEntries","$attrs","prefix","onInput","tag","for","lg","primary","n","_hoisted_4","width","height","_hoisted_5","open","onClose","$emit","title","onClick","close","setTouched","input","splice","indexOf","_hoisted_6","resetField","valueProp","remoteOptionsError","remoteOptionsLoading","oldDataUrl","immediate","animatingLoader","computedOptions","onBeforeEnter","onAfterLeave"],"sourceRoot":""}