@win2win/shared-ui 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DynamicForm/DynamicForm.vue.d.ts.map +1 -1
- package/dist/components/DynamicForm/SelectControl.vue.d.ts.map +1 -1
- package/dist/components/DynamicForm/helpers.d.ts.map +1 -1
- package/dist/components/DynamicForm/useFormGroups.d.ts.map +1 -1
- package/dist/components/Inputs/WinSelect.vue.d.ts +5 -5
- package/dist/{components/DynamicForm → stores}/useFormStore.d.ts +1 -1
- package/dist/stores/useFormStore.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/dist/w2w-shared-ui.js +721 -722
- package/dist/w2w-shared-ui.umd.cjs +1 -1
- package/package.json +1 -1
- package/dist/components/DynamicForm/useFormStore.d.ts.map +0 -1
- package/dist/stores/counter.d.ts +0 -14
- package/dist/stores/counter.d.ts.map +0 -1
package/dist/w2w-shared-ui.js
CHANGED
|
@@ -3982,8 +3982,245 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3982
3982
|
tr ? ((tr.exports = qr)._ = qr, _o._ = qr) : st._ = qr;
|
|
3983
3983
|
}).call(dt);
|
|
3984
3984
|
})(Nl, Nl.exports);
|
|
3985
|
-
var Ke = Nl.exports;
|
|
3986
|
-
|
|
3985
|
+
var Ke = Nl.exports, Tn = {}, qf = {}, Lf = {}, Yl = {};
|
|
3986
|
+
Object.defineProperty(Yl, "__esModule", { value: !0 });
|
|
3987
|
+
Yl.OPERATORS = void 0;
|
|
3988
|
+
Yl.OPERATORS = ["==", "!=", ">", "<", ">=", "<=", "contains", "not_contains", "in", "not_in"];
|
|
3989
|
+
var Yr = {};
|
|
3990
|
+
Object.defineProperty(Yr, "__esModule", { value: !0 });
|
|
3991
|
+
Yr.ControlType = Yr.GAMA_PROP_CONTROL_TYPES = void 0;
|
|
3992
|
+
Yr.GAMA_PROP_CONTROL_TYPES = [
|
|
3993
|
+
{ code: "input_text", icon: "title", label: "Texto" },
|
|
3994
|
+
{ code: "input_number", icon: "o_looks_one", label: "Número" },
|
|
3995
|
+
{ code: "datetime", icon: "event", label: "Fecha y hora" },
|
|
3996
|
+
{ code: "date", icon: "calendar_today", label: "Fecha" },
|
|
3997
|
+
{ code: "time", icon: "schedule", label: "Hora" },
|
|
3998
|
+
{ code: "switch", icon: "toggle_on", label: "Switch" },
|
|
3999
|
+
{ code: "checkbox", icon: "o_check_box", label: "Checkbox" },
|
|
4000
|
+
{ code: "select", icon: "list", label: "Selector simple" },
|
|
4001
|
+
{ code: "cards_select", icon: "grid_view", label: "Selector de tarjetas" },
|
|
4002
|
+
{ code: "location", icon: "location_on", label: "Ubicación" },
|
|
4003
|
+
{ code: "dynamic_array", icon: "data_array", label: "Colección dinámica" },
|
|
4004
|
+
{ code: "object", icon: "data_object", label: "Objeto" }
|
|
4005
|
+
];
|
|
4006
|
+
var Rc;
|
|
4007
|
+
(function(t) {
|
|
4008
|
+
t.TEXT = "input_text", t.NUMBER = "input_number", t.DATETIME = "datetime", t.DATE = "date", t.TIME = "time", t.SWITCH = "switch", t.CHECKBOX = "checkbox", t.SELECT = "select", t.CARDS_SELECT = "cards_select", t.LOCATION = "location", t.DYNAMIC_ARRAY = "dynamic_array", t.OBJECT = "object";
|
|
4009
|
+
})(Rc || (Yr.ControlType = Rc = {}));
|
|
4010
|
+
var Mf = {};
|
|
4011
|
+
Object.defineProperty(Mf, "__esModule", { value: !0 });
|
|
4012
|
+
var If = {};
|
|
4013
|
+
Object.defineProperty(If, "__esModule", { value: !0 });
|
|
4014
|
+
var Bf = {};
|
|
4015
|
+
(function(t) {
|
|
4016
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), t.VALIDATORS = t.PropValidatorKeys = t.GamaPropValidatorsMap = void 0, t.GamaPropValidatorsMap = {
|
|
4017
|
+
required: {
|
|
4018
|
+
fn: () => (i) => i.value !== null && i.value !== void 0 && i.value !== "",
|
|
4019
|
+
message: "Este campo es requerido",
|
|
4020
|
+
label: "Requerido"
|
|
4021
|
+
},
|
|
4022
|
+
min: {
|
|
4023
|
+
fn: (i) => (u) => {
|
|
4024
|
+
if (typeof u.value == "number")
|
|
4025
|
+
return (u.value || 0) >= i;
|
|
4026
|
+
if (typeof u.value == "string") {
|
|
4027
|
+
const a = u.value || "";
|
|
4028
|
+
return u.multiple ? a.split(",").length >= i : a.length >= i;
|
|
4029
|
+
}
|
|
4030
|
+
return !1;
|
|
4031
|
+
},
|
|
4032
|
+
message: "El valor es menor al mínimo permitido",
|
|
4033
|
+
label: "Mínimo"
|
|
4034
|
+
},
|
|
4035
|
+
max: {
|
|
4036
|
+
fn: (i) => (u) => {
|
|
4037
|
+
if (typeof u.value == "number")
|
|
4038
|
+
return (u.value || 0) <= i;
|
|
4039
|
+
if (typeof u.value == "string") {
|
|
4040
|
+
const a = u.value || "";
|
|
4041
|
+
return u.multiple ? a.split(",").length <= i : (a || "").length <= i;
|
|
4042
|
+
}
|
|
4043
|
+
return !1;
|
|
4044
|
+
},
|
|
4045
|
+
message: "El valor es mayor al máximo permitido",
|
|
4046
|
+
label: "Máximo"
|
|
4047
|
+
},
|
|
4048
|
+
onlyNumbers: {
|
|
4049
|
+
fn: () => (i) => /^[0-9]*$/.test(String(i.value) || ""),
|
|
4050
|
+
message: "Este campo solo acepta números",
|
|
4051
|
+
label: "Solo números"
|
|
4052
|
+
},
|
|
4053
|
+
email: {
|
|
4054
|
+
fn: () => (i) => i.value ? /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(i.value) || "") : !0,
|
|
4055
|
+
message: "El correo electrónico no es válido",
|
|
4056
|
+
label: "Correo electrónico"
|
|
4057
|
+
},
|
|
4058
|
+
url: {
|
|
4059
|
+
fn: () => (i) => i.value ? /^(ftp|http|https):\/\/[^ "]+$/.test(String(i.value) || "") || /^www\.[^ "]+$/.test(String(i.value) || "") : !0,
|
|
4060
|
+
message: "La URL no es válida",
|
|
4061
|
+
label: "URL"
|
|
4062
|
+
}
|
|
4063
|
+
// minLength: (length: number) => (control: FormControlModel) => {},
|
|
4064
|
+
// maxLength: (length: number) => (control: FormControlModel) => {},
|
|
4065
|
+
};
|
|
4066
|
+
var l;
|
|
4067
|
+
(function(i) {
|
|
4068
|
+
i.REQUERIDO = "required", i.MINIMO = "min", i.MAXIMO = "max", i.SOLO_NUMEROS = "onlyNumbers", i.EMAIL = "email", i.URL = "url";
|
|
4069
|
+
})(l || (t.PropValidatorKeys = l = {})), t.VALIDATORS = Object.entries(t.GamaPropValidatorsMap).map(([i, u]) => ({ value: i, ...u }));
|
|
4070
|
+
})(Bf);
|
|
4071
|
+
var Pf = {};
|
|
4072
|
+
Object.defineProperty(Pf, "__esModule", { value: !0 });
|
|
4073
|
+
(function(t) {
|
|
4074
|
+
var l = dt && dt.__createBinding || (Object.create ? function(u, a, c, v) {
|
|
4075
|
+
v === void 0 && (v = c);
|
|
4076
|
+
var h = Object.getOwnPropertyDescriptor(a, c);
|
|
4077
|
+
(!h || ("get" in h ? !a.__esModule : h.writable || h.configurable)) && (h = { enumerable: !0, get: function() {
|
|
4078
|
+
return a[c];
|
|
4079
|
+
} }), Object.defineProperty(u, v, h);
|
|
4080
|
+
} : function(u, a, c, v) {
|
|
4081
|
+
v === void 0 && (v = c), u[v] = a[c];
|
|
4082
|
+
}), i = dt && dt.__exportStar || function(u, a) {
|
|
4083
|
+
for (var c in u) c !== "default" && !Object.prototype.hasOwnProperty.call(a, c) && l(a, u, c);
|
|
4084
|
+
};
|
|
4085
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), i(Yl, t), i(Yr, t), i(Mf, t), i(If, t), i(Bf, t), i(Pf, t);
|
|
4086
|
+
})(Lf);
|
|
4087
|
+
(function(t) {
|
|
4088
|
+
var l = dt && dt.__createBinding || (Object.create ? function(u, a, c, v) {
|
|
4089
|
+
v === void 0 && (v = c);
|
|
4090
|
+
var h = Object.getOwnPropertyDescriptor(a, c);
|
|
4091
|
+
(!h || ("get" in h ? !a.__esModule : h.writable || h.configurable)) && (h = { enumerable: !0, get: function() {
|
|
4092
|
+
return a[c];
|
|
4093
|
+
} }), Object.defineProperty(u, v, h);
|
|
4094
|
+
} : function(u, a, c, v) {
|
|
4095
|
+
v === void 0 && (v = c), u[v] = a[c];
|
|
4096
|
+
}), i = dt && dt.__exportStar || function(u, a) {
|
|
4097
|
+
for (var c in u) c !== "default" && !Object.prototype.hasOwnProperty.call(a, c) && l(a, u, c);
|
|
4098
|
+
};
|
|
4099
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), i(Lf, t);
|
|
4100
|
+
})(qf);
|
|
4101
|
+
(function(t) {
|
|
4102
|
+
var l = dt && dt.__createBinding || (Object.create ? function(u, a, c, v) {
|
|
4103
|
+
v === void 0 && (v = c);
|
|
4104
|
+
var h = Object.getOwnPropertyDescriptor(a, c);
|
|
4105
|
+
(!h || ("get" in h ? !a.__esModule : h.writable || h.configurable)) && (h = { enumerable: !0, get: function() {
|
|
4106
|
+
return a[c];
|
|
4107
|
+
} }), Object.defineProperty(u, v, h);
|
|
4108
|
+
} : function(u, a, c, v) {
|
|
4109
|
+
v === void 0 && (v = c), u[v] = a[c];
|
|
4110
|
+
}), i = dt && dt.__exportStar || function(u, a) {
|
|
4111
|
+
for (var c in u) c !== "default" && !Object.prototype.hasOwnProperty.call(a, c) && l(a, u, c);
|
|
4112
|
+
};
|
|
4113
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), i(qf, t);
|
|
4114
|
+
})(Tn);
|
|
4115
|
+
const Zr = H_("form", {
|
|
4116
|
+
state: () => ({
|
|
4117
|
+
formSteps: [],
|
|
4118
|
+
currentStep: 1,
|
|
4119
|
+
onLastSubstep: !1,
|
|
4120
|
+
collections: {}
|
|
4121
|
+
}),
|
|
4122
|
+
actions: {
|
|
4123
|
+
setFormSteps(t) {
|
|
4124
|
+
this.formSteps = U_(t);
|
|
4125
|
+
},
|
|
4126
|
+
nextStep() {
|
|
4127
|
+
this.currentStep !== this.formSteps.length && this.currentStep++;
|
|
4128
|
+
},
|
|
4129
|
+
previousStep() {
|
|
4130
|
+
this.currentStep !== 1 && this.currentStep--;
|
|
4131
|
+
},
|
|
4132
|
+
setControlValue(t, l) {
|
|
4133
|
+
const { id: i, value: u, code: a } = l, c = this.formSteps[t].controls.find(
|
|
4134
|
+
(v) => v.id === i
|
|
4135
|
+
);
|
|
4136
|
+
c && (Nu.includes(c.controlType) ? Ke.set(c.value, a, u) : c.value = u);
|
|
4137
|
+
},
|
|
4138
|
+
setControlVisibility(t, l, i) {
|
|
4139
|
+
const u = this.formSteps[t].controls.find(
|
|
4140
|
+
(a) => a.id === l
|
|
4141
|
+
);
|
|
4142
|
+
u && (u.visible = i);
|
|
4143
|
+
},
|
|
4144
|
+
setControlItemsLength(t, l, i) {
|
|
4145
|
+
const u = this.formSteps[t].controls.find(
|
|
4146
|
+
(a) => a.id === l
|
|
4147
|
+
);
|
|
4148
|
+
!u || u.controlType !== "dynamic_array" || (u.itemsLength.value = i);
|
|
4149
|
+
},
|
|
4150
|
+
setOnLastSubstep(t) {
|
|
4151
|
+
this.onLastSubstep = t;
|
|
4152
|
+
},
|
|
4153
|
+
resetSteps() {
|
|
4154
|
+
this.currentStep = 1;
|
|
4155
|
+
},
|
|
4156
|
+
setCollection(t, l) {
|
|
4157
|
+
this.collections[t] = l;
|
|
4158
|
+
}
|
|
4159
|
+
},
|
|
4160
|
+
getters: {
|
|
4161
|
+
currentFormStep(t) {
|
|
4162
|
+
return t.formSteps[t.currentStep - 1] || null;
|
|
4163
|
+
},
|
|
4164
|
+
stepsCount(t) {
|
|
4165
|
+
return t.formSteps.length;
|
|
4166
|
+
},
|
|
4167
|
+
nextDisabled() {
|
|
4168
|
+
return this.currentFormStep.controls.filter((t) => t.visible).some((t) => !t.valid);
|
|
4169
|
+
},
|
|
4170
|
+
getCollection(t) {
|
|
4171
|
+
return (l) => t.collections[l] || null;
|
|
4172
|
+
}
|
|
4173
|
+
}
|
|
4174
|
+
});
|
|
4175
|
+
function U_(t) {
|
|
4176
|
+
return t.map((l) => ({
|
|
4177
|
+
...l,
|
|
4178
|
+
valid: !1,
|
|
4179
|
+
controls: Vf(l.controls)
|
|
4180
|
+
}));
|
|
4181
|
+
}
|
|
4182
|
+
function Vf(t) {
|
|
4183
|
+
return t.map((l) => {
|
|
4184
|
+
var i, u, a;
|
|
4185
|
+
return {
|
|
4186
|
+
...l,
|
|
4187
|
+
valid: !((i = l.validators) != null && i.length),
|
|
4188
|
+
visible: !((u = l.conditions) != null && u.length),
|
|
4189
|
+
value: K_(l),
|
|
4190
|
+
itemsLength: l.controlType === "dynamic_array" ? {
|
|
4191
|
+
...l.itemsLength,
|
|
4192
|
+
value: ((a = l.itemsLength) == null ? void 0 : a.default) || 1
|
|
4193
|
+
} : null
|
|
4194
|
+
};
|
|
4195
|
+
});
|
|
4196
|
+
}
|
|
4197
|
+
function K_(t) {
|
|
4198
|
+
if (!Ke.isNil(t.defaultValue)) return t.defaultValue;
|
|
4199
|
+
switch (t.controlType) {
|
|
4200
|
+
case "input_text":
|
|
4201
|
+
return "";
|
|
4202
|
+
case "input_number":
|
|
4203
|
+
return null;
|
|
4204
|
+
case "select":
|
|
4205
|
+
return t.multiple ? [] : "";
|
|
4206
|
+
case "cards_select":
|
|
4207
|
+
return t.multiple ? [] : "";
|
|
4208
|
+
case "checkbox":
|
|
4209
|
+
return null;
|
|
4210
|
+
case "switch":
|
|
4211
|
+
return null;
|
|
4212
|
+
case "location":
|
|
4213
|
+
return {};
|
|
4214
|
+
case "dynamic_array":
|
|
4215
|
+
return [];
|
|
4216
|
+
case "object":
|
|
4217
|
+
return {};
|
|
4218
|
+
default:
|
|
4219
|
+
return "";
|
|
4220
|
+
}
|
|
4221
|
+
}
|
|
4222
|
+
const Nu = [Tn.ControlType.DYNAMIC_ARRAY, Tn.ControlType.OBJECT];
|
|
4223
|
+
class qc {
|
|
3987
4224
|
toRaw(l) {
|
|
3988
4225
|
return l.flatMap((a) => a.controls).filter((a) => a.visible).map((a) => ({
|
|
3989
4226
|
ID_CUESTIONARIO_PREGUNTA: a.id,
|
|
@@ -4027,7 +4264,7 @@ class Rc {
|
|
|
4027
4264
|
}), u);
|
|
4028
4265
|
}
|
|
4029
4266
|
}
|
|
4030
|
-
function
|
|
4267
|
+
function jl(t, l, i, u) {
|
|
4031
4268
|
return Object.defineProperty(t, l, {
|
|
4032
4269
|
get: i,
|
|
4033
4270
|
set: u,
|
|
@@ -4037,8 +4274,8 @@ function Yl(t, l, i, u) {
|
|
|
4037
4274
|
const Kn = re(
|
|
4038
4275
|
!1
|
|
4039
4276
|
);
|
|
4040
|
-
let
|
|
4041
|
-
function
|
|
4277
|
+
let Du;
|
|
4278
|
+
function G_(t, l) {
|
|
4042
4279
|
const i = /(edg|edge|edga|edgios)\/([\w.]+)/.exec(t) || /(opr)[\/]([\w.]+)/.exec(t) || /(vivaldi)[\/]([\w.]+)/.exec(t) || /(chrome|crios)[\/]([\w.]+)/.exec(t) || /(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t) || /(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t) || /(firefox|fxios)[\/]([\w.]+)/.exec(t) || /(webkit)[\/]([\w.]+)/.exec(t) || /(opera)(?:.*version|)[\/]([\w.]+)/.exec(t) || [];
|
|
4043
4280
|
return {
|
|
4044
4281
|
browser: i[5] || i[3] || i[1] || "",
|
|
@@ -4046,12 +4283,12 @@ function U_(t, l) {
|
|
|
4046
4283
|
platform: l[0] || ""
|
|
4047
4284
|
};
|
|
4048
4285
|
}
|
|
4049
|
-
function
|
|
4286
|
+
function Q_(t) {
|
|
4050
4287
|
return /(ipad)/.exec(t) || /(ipod)/.exec(t) || /(windows phone)/.exec(t) || /(iphone)/.exec(t) || /(kindle)/.exec(t) || /(silk)/.exec(t) || /(android)/.exec(t) || /(win)/.exec(t) || /(mac)/.exec(t) || /(linux)/.exec(t) || /(cros)/.exec(t) || /(playbook)/.exec(t) || /(bb)/.exec(t) || /(blackberry)/.exec(t) || [];
|
|
4051
4288
|
}
|
|
4052
|
-
const
|
|
4053
|
-
function
|
|
4054
|
-
const l = t.toLowerCase(), i =
|
|
4289
|
+
const $f = "ontouchstart" in window || window.navigator.maxTouchPoints > 0;
|
|
4290
|
+
function Y_(t) {
|
|
4291
|
+
const l = t.toLowerCase(), i = Q_(l), u = G_(l, i), a = {};
|
|
4055
4292
|
u.browser && (a[u.browser] = !0, a.version = u.version, a.versionNumber = parseInt(u.version, 10)), u.platform && (a[u.platform] = !0);
|
|
4056
4293
|
const c = a.android || a.ios || a.bb || a.blackberry || a.ipad || a.iphone || a.ipod || a.kindle || a.playbook || a.silk || a["windows phone"];
|
|
4057
4294
|
if (c === !0 || l.indexOf("mobile") !== -1 ? a.mobile = !0 : a.desktop = !0, a["windows phone"] && (a.winphone = !0, delete a["windows phone"]), a.edga || a.edgios || a.edg ? (a.edge = !0, u.browser = "edge") : a.crios ? (a.chrome = !0, u.browser = "chrome") : a.fxios && (a.firefox = !0, u.browser = "firefox"), (a.ipod || a.ipad || a.iphone) && (a.ios = !0), a.vivaldi && (u.browser = "vivaldi", a.vivaldi = !0), // Chrome, Opera 15+, Vivaldi and Safari are webkit based browsers
|
|
@@ -4060,7 +4297,7 @@ function G_(t) {
|
|
|
4060
4297
|
else if (document.location.href.indexOf("-extension://") !== -1)
|
|
4061
4298
|
a.bex = !0;
|
|
4062
4299
|
else {
|
|
4063
|
-
if (window.Capacitor !== void 0 ? (a.capacitor = !0, a.nativeMobile = !0, a.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (a.cordova = !0, a.nativeMobile = !0, a.nativeMobileWrapper = "cordova"), Kn.value === !0 && (
|
|
4300
|
+
if (window.Capacitor !== void 0 ? (a.capacitor = !0, a.nativeMobile = !0, a.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (a.cordova = !0, a.nativeMobile = !0, a.nativeMobileWrapper = "cordova"), Kn.value === !0 && (Du = { is: { ...a } }), $f === !0 && a.mac === !0 && (a.desktop === !0 && a.safari === !0 || a.nativeMobile === !0 && a.android !== !0 && a.ios !== !0 && a.ipad !== !0)) {
|
|
4064
4301
|
delete a.mac, delete a.desktop;
|
|
4065
4302
|
const v = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
|
|
4066
4303
|
Object.assign(a, {
|
|
@@ -4074,22 +4311,22 @@ function G_(t) {
|
|
|
4074
4311
|
}
|
|
4075
4312
|
return a;
|
|
4076
4313
|
}
|
|
4077
|
-
const
|
|
4314
|
+
const Lc = navigator.userAgent || navigator.vendor || window.opera, j_ = {
|
|
4078
4315
|
has: {
|
|
4079
4316
|
touch: !1,
|
|
4080
4317
|
webStorage: !1
|
|
4081
4318
|
},
|
|
4082
4319
|
within: { iframe: !1 }
|
|
4083
4320
|
}, Nt = {
|
|
4084
|
-
userAgent:
|
|
4085
|
-
is:
|
|
4321
|
+
userAgent: Lc,
|
|
4322
|
+
is: Y_(Lc),
|
|
4086
4323
|
has: {
|
|
4087
|
-
touch:
|
|
4324
|
+
touch: $f
|
|
4088
4325
|
},
|
|
4089
4326
|
within: {
|
|
4090
4327
|
iframe: window.self !== window.top
|
|
4091
4328
|
}
|
|
4092
|
-
},
|
|
4329
|
+
}, zu = {
|
|
4093
4330
|
install(t) {
|
|
4094
4331
|
const { $q: l } = t;
|
|
4095
4332
|
Kn.value === !0 ? (t.onSSRHydrated.push(() => {
|
|
@@ -4099,7 +4336,7 @@ const qc = navigator.userAgent || navigator.vendor || window.opera, Q_ = {
|
|
|
4099
4336
|
};
|
|
4100
4337
|
{
|
|
4101
4338
|
let t;
|
|
4102
|
-
|
|
4339
|
+
jl(Nt.has, "webStorage", () => {
|
|
4103
4340
|
if (t !== void 0)
|
|
4104
4341
|
return t;
|
|
4105
4342
|
try {
|
|
@@ -4108,12 +4345,12 @@ const qc = navigator.userAgent || navigator.vendor || window.opera, Q_ = {
|
|
|
4108
4345
|
} catch {
|
|
4109
4346
|
}
|
|
4110
4347
|
return t = !1, !1;
|
|
4111
|
-
}), Object.assign(
|
|
4348
|
+
}), Object.assign(zu, Nt), Kn.value === !0 && (Object.assign(zu, Du, j_), Du = null);
|
|
4112
4349
|
}
|
|
4113
4350
|
function at(t) {
|
|
4114
4351
|
return dr(vt(t));
|
|
4115
4352
|
}
|
|
4116
|
-
function
|
|
4353
|
+
function Ff(t) {
|
|
4117
4354
|
return dr(t);
|
|
4118
4355
|
}
|
|
4119
4356
|
function On(t, l) {
|
|
@@ -4184,47 +4421,47 @@ function On(t, l) {
|
|
|
4184
4421
|
}
|
|
4185
4422
|
return t !== t && l !== l;
|
|
4186
4423
|
}
|
|
4187
|
-
const
|
|
4424
|
+
const Mc = {
|
|
4188
4425
|
threshold: 0,
|
|
4189
4426
|
root: null,
|
|
4190
4427
|
rootMargin: "0px"
|
|
4191
4428
|
};
|
|
4192
|
-
function
|
|
4429
|
+
function Ic(t, l, i) {
|
|
4193
4430
|
let u, a, c;
|
|
4194
|
-
typeof i == "function" ? (u = i, a =
|
|
4431
|
+
typeof i == "function" ? (u = i, a = Mc, c = l.cfg === void 0) : (u = i.handler, a = Object.assign({}, Mc, i.cfg), c = l.cfg === void 0 || On(l.cfg, a) === !1), l.handler !== u && (l.handler = u), c === !0 && (l.cfg = a, l.observer !== void 0 && l.observer.unobserve(t), l.observer = new IntersectionObserver(([v]) => {
|
|
4195
4432
|
if (typeof l.handler == "function") {
|
|
4196
4433
|
if (v.rootBounds === null && document.body.contains(t) === !0) {
|
|
4197
4434
|
l.observer.unobserve(t), l.observer.observe(t);
|
|
4198
4435
|
return;
|
|
4199
4436
|
}
|
|
4200
|
-
(l.handler(v, l.observer) === !1 || l.once === !0 && v.isIntersecting === !0) &&
|
|
4437
|
+
(l.handler(v, l.observer) === !1 || l.once === !0 && v.isIntersecting === !0) && Nf(t);
|
|
4201
4438
|
}
|
|
4202
4439
|
}, a), l.observer.observe(t));
|
|
4203
4440
|
}
|
|
4204
|
-
function
|
|
4441
|
+
function Nf(t) {
|
|
4205
4442
|
const l = t.__qvisible;
|
|
4206
4443
|
l !== void 0 && (l.observer !== void 0 && l.observer.unobserve(t), delete t.__qvisible);
|
|
4207
4444
|
}
|
|
4208
|
-
const
|
|
4445
|
+
const Z_ = Ff(
|
|
4209
4446
|
{
|
|
4210
4447
|
name: "intersection",
|
|
4211
4448
|
mounted(t, { modifiers: l, value: i }) {
|
|
4212
4449
|
const u = {
|
|
4213
4450
|
once: l.once === !0
|
|
4214
4451
|
};
|
|
4215
|
-
|
|
4452
|
+
Ic(t, u, i), t.__qvisible = u;
|
|
4216
4453
|
},
|
|
4217
4454
|
updated(t, l) {
|
|
4218
4455
|
const i = t.__qvisible;
|
|
4219
|
-
i !== void 0 &&
|
|
4456
|
+
i !== void 0 && Ic(t, i, l.value);
|
|
4220
4457
|
},
|
|
4221
|
-
beforeUnmount:
|
|
4458
|
+
beforeUnmount: Nf
|
|
4222
4459
|
}
|
|
4223
4460
|
);
|
|
4224
4461
|
function Dt(t, l) {
|
|
4225
4462
|
return t !== void 0 && t() || l;
|
|
4226
4463
|
}
|
|
4227
|
-
function
|
|
4464
|
+
function X_(t, l) {
|
|
4228
4465
|
if (t !== void 0) {
|
|
4229
4466
|
const i = t();
|
|
4230
4467
|
if (i != null)
|
|
@@ -4235,15 +4472,15 @@ function j_(t, l) {
|
|
|
4235
4472
|
function vr(t, l) {
|
|
4236
4473
|
return t !== void 0 ? l.concat(t()) : l;
|
|
4237
4474
|
}
|
|
4238
|
-
function
|
|
4475
|
+
function J_(t, l) {
|
|
4239
4476
|
return t === void 0 ? l : l !== void 0 ? l.concat(t()) : t();
|
|
4240
4477
|
}
|
|
4241
|
-
function
|
|
4478
|
+
function Df(t, l, i, u, a, c) {
|
|
4242
4479
|
l.key = u + a;
|
|
4243
4480
|
const v = P(t, l, i);
|
|
4244
4481
|
return a === !0 ? $l(v, c()) : v;
|
|
4245
4482
|
}
|
|
4246
|
-
const
|
|
4483
|
+
const eb = at({
|
|
4247
4484
|
name: "QIntersection",
|
|
4248
4485
|
props: {
|
|
4249
4486
|
tag: {
|
|
@@ -4276,7 +4513,7 @@ const X_ = at({
|
|
|
4276
4513
|
} : x), c = A(
|
|
4277
4514
|
() => t.disable !== !0 && (Kn.value !== !0 || t.once !== !0 || t.ssrPrerender !== !0)
|
|
4278
4515
|
), v = A(() => [[
|
|
4279
|
-
|
|
4516
|
+
Z_,
|
|
4280
4517
|
a.value,
|
|
4281
4518
|
void 0,
|
|
4282
4519
|
{ once: t.once }
|
|
@@ -4298,7 +4535,7 @@ const X_ = at({
|
|
|
4298
4535
|
name: "q-transition--" + t.transition
|
|
4299
4536
|
}, k)
|
|
4300
4537
|
] : k();
|
|
4301
|
-
return
|
|
4538
|
+
return Df(
|
|
4302
4539
|
t.tag,
|
|
4303
4540
|
{ class: "q-intersection" },
|
|
4304
4541
|
m,
|
|
@@ -4308,28 +4545,28 @@ const X_ = at({
|
|
|
4308
4545
|
);
|
|
4309
4546
|
};
|
|
4310
4547
|
}
|
|
4311
|
-
}),
|
|
4548
|
+
}), Wu = {
|
|
4312
4549
|
xs: 18,
|
|
4313
4550
|
sm: 24,
|
|
4314
4551
|
md: 32,
|
|
4315
4552
|
lg: 38,
|
|
4316
4553
|
xl: 46
|
|
4317
|
-
},
|
|
4554
|
+
}, Zl = {
|
|
4318
4555
|
size: String
|
|
4319
4556
|
};
|
|
4320
|
-
function
|
|
4557
|
+
function Xl(t, l = Wu) {
|
|
4321
4558
|
return A(() => t.size !== void 0 ? { fontSize: t.size in l ? `${l[t.size]}px` : t.size } : null);
|
|
4322
4559
|
}
|
|
4323
|
-
const
|
|
4560
|
+
const tb = {
|
|
4324
4561
|
size: {
|
|
4325
4562
|
type: [String, Number],
|
|
4326
4563
|
default: "1em"
|
|
4327
4564
|
},
|
|
4328
4565
|
color: String
|
|
4329
4566
|
};
|
|
4330
|
-
function
|
|
4567
|
+
function nb(t) {
|
|
4331
4568
|
return {
|
|
4332
|
-
cSize: A(() => t.size in
|
|
4569
|
+
cSize: A(() => t.size in Wu ? `${Wu[t.size]}px` : t.size),
|
|
4333
4570
|
classes: A(
|
|
4334
4571
|
() => "q-spinner" + (t.color ? ` text-${t.color}` : "")
|
|
4335
4572
|
)
|
|
@@ -4338,14 +4575,14 @@ function eb(t) {
|
|
|
4338
4575
|
const ju = at({
|
|
4339
4576
|
name: "QSpinner",
|
|
4340
4577
|
props: {
|
|
4341
|
-
...
|
|
4578
|
+
...tb,
|
|
4342
4579
|
thickness: {
|
|
4343
4580
|
type: Number,
|
|
4344
4581
|
default: 5
|
|
4345
4582
|
}
|
|
4346
4583
|
},
|
|
4347
4584
|
setup(t) {
|
|
4348
|
-
const { cSize: l, classes: i } =
|
|
4585
|
+
const { cSize: l, classes: i } = nb(t);
|
|
4349
4586
|
return () => P("svg", {
|
|
4350
4587
|
class: i.value + " q-spinner-mat",
|
|
4351
4588
|
width: l.value,
|
|
@@ -4364,10 +4601,10 @@ const ju = at({
|
|
|
4364
4601
|
})
|
|
4365
4602
|
]);
|
|
4366
4603
|
}
|
|
4367
|
-
}),
|
|
4604
|
+
}), rb = {
|
|
4368
4605
|
ratio: [String, Number]
|
|
4369
4606
|
};
|
|
4370
|
-
function
|
|
4607
|
+
function ib(t, l) {
|
|
4371
4608
|
return A(() => {
|
|
4372
4609
|
const i = Number(
|
|
4373
4610
|
t.ratio || (l !== void 0 ? l.value : void 0)
|
|
@@ -4385,7 +4622,7 @@ function Au(t) {
|
|
|
4385
4622
|
l = l.parent;
|
|
4386
4623
|
}
|
|
4387
4624
|
}
|
|
4388
|
-
function
|
|
4625
|
+
function zf(t) {
|
|
4389
4626
|
return t.appContext.config.globalProperties.$router !== void 0;
|
|
4390
4627
|
}
|
|
4391
4628
|
function ki(t) {
|
|
@@ -4406,10 +4643,10 @@ function Dl() {
|
|
|
4406
4643
|
}
|
|
4407
4644
|
};
|
|
4408
4645
|
}
|
|
4409
|
-
const
|
|
4646
|
+
const lb = 1.7778, ob = at({
|
|
4410
4647
|
name: "QImg",
|
|
4411
4648
|
props: {
|
|
4412
|
-
...
|
|
4649
|
+
...rb,
|
|
4413
4650
|
src: String,
|
|
4414
4651
|
srcset: String,
|
|
4415
4652
|
sizes: String,
|
|
@@ -4434,7 +4671,7 @@ const rb = 1.7778, ib = at({
|
|
|
4434
4671
|
height: String,
|
|
4435
4672
|
initialRatio: {
|
|
4436
4673
|
type: [Number, String],
|
|
4437
|
-
default:
|
|
4674
|
+
default: lb
|
|
4438
4675
|
},
|
|
4439
4676
|
placeholderSrc: String,
|
|
4440
4677
|
errorSrc: String,
|
|
@@ -4456,7 +4693,7 @@ const rb = 1.7778, ib = at({
|
|
|
4456
4693
|
},
|
|
4457
4694
|
emits: ["load", "error"],
|
|
4458
4695
|
setup(t, { slots: l, emit: i }) {
|
|
4459
|
-
const u = re(t.initialRatio), a =
|
|
4696
|
+
const u = re(t.initialRatio), a = ib(t, u), c = Ge(), { registerTimeout: v, removeTimeout: h } = Dl(), { registerTimeout: x, removeTimeout: k } = Dl(), m = A(() => t.placeholderSrc !== void 0 ? { src: t.placeholderSrc } : null), C = A(() => t.errorSrc !== void 0 ? { src: t.errorSrc, __qerror: !0 } : null), b = [
|
|
4460
4697
|
re(null),
|
|
4461
4698
|
re(m.value)
|
|
4462
4699
|
], y = re(0), R = re(!1), U = re(!1), q = A(
|
|
@@ -4573,30 +4810,30 @@ const rb = 1.7778, ib = at({
|
|
|
4573
4810
|
}, w);
|
|
4574
4811
|
};
|
|
4575
4812
|
}
|
|
4576
|
-
}),
|
|
4813
|
+
}), Bc = "0 0 24 24", Pc = (t) => t, Ou = (t) => `ionicons ${t}`, Wf = {
|
|
4577
4814
|
"mdi-": (t) => `mdi ${t}`,
|
|
4578
|
-
"icon-":
|
|
4815
|
+
"icon-": Pc,
|
|
4579
4816
|
// fontawesome equiv
|
|
4580
4817
|
"bt-": (t) => `bt ${t}`,
|
|
4581
4818
|
"eva-": (t) => `eva ${t}`,
|
|
4582
4819
|
"ion-md": Ou,
|
|
4583
4820
|
"ion-ios": Ou,
|
|
4584
4821
|
"ion-logo": Ou,
|
|
4585
|
-
"iconfont ":
|
|
4822
|
+
"iconfont ": Pc,
|
|
4586
4823
|
"ti-": (t) => `themify-icon ${t}`,
|
|
4587
4824
|
"bi-": (t) => `bootstrap-icons ${t}`
|
|
4588
|
-
},
|
|
4825
|
+
}, Hf = {
|
|
4589
4826
|
o_: "-outlined",
|
|
4590
4827
|
r_: "-round",
|
|
4591
4828
|
s_: "-sharp"
|
|
4592
|
-
},
|
|
4829
|
+
}, Uf = {
|
|
4593
4830
|
sym_o_: "-outlined",
|
|
4594
4831
|
sym_r_: "-rounded",
|
|
4595
4832
|
sym_s_: "-sharp"
|
|
4596
|
-
},
|
|
4833
|
+
}, ub = new RegExp("^(" + Object.keys(Wf).join("|") + ")"), ab = new RegExp("^(" + Object.keys(Hf).join("|") + ")"), Vc = new RegExp("^(" + Object.keys(Uf).join("|") + ")"), sb = /^[Mm]\s?[-+]?\.?\d/, cb = /^img:/, fb = /^svguse:/, db = /^ion-/, vb = /^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, zt = at({
|
|
4597
4834
|
name: "QIcon",
|
|
4598
4835
|
props: {
|
|
4599
|
-
...
|
|
4836
|
+
...Zl,
|
|
4600
4837
|
tag: {
|
|
4601
4838
|
type: String,
|
|
4602
4839
|
default: "i"
|
|
@@ -4607,7 +4844,7 @@ const rb = 1.7778, ib = at({
|
|
|
4607
4844
|
right: Boolean
|
|
4608
4845
|
},
|
|
4609
4846
|
setup(t, { slots: l }) {
|
|
4610
|
-
const { proxy: { $q: i } } = Ge(), u =
|
|
4847
|
+
const { proxy: { $q: i } } = Ge(), u = Xl(t), a = A(
|
|
4611
4848
|
() => "q-icon" + (t.left === !0 ? " on-left" : "") + (t.right === !0 ? " on-right" : "") + (t.color !== void 0 ? ` text-${t.color}` : "")
|
|
4612
4849
|
), c = A(() => {
|
|
4613
4850
|
let v, h = t.name;
|
|
@@ -4625,8 +4862,8 @@ const rb = 1.7778, ib = at({
|
|
|
4625
4862
|
content: m.content !== void 0 ? m.content : " "
|
|
4626
4863
|
};
|
|
4627
4864
|
}
|
|
4628
|
-
if (
|
|
4629
|
-
const [m, C =
|
|
4865
|
+
if (sb.test(h) === !0) {
|
|
4866
|
+
const [m, C = Bc] = h.split("|");
|
|
4630
4867
|
return {
|
|
4631
4868
|
svg: !0,
|
|
4632
4869
|
viewBox: C,
|
|
@@ -4636,13 +4873,13 @@ const rb = 1.7778, ib = at({
|
|
|
4636
4873
|
})
|
|
4637
4874
|
};
|
|
4638
4875
|
}
|
|
4639
|
-
if (
|
|
4876
|
+
if (cb.test(h) === !0)
|
|
4640
4877
|
return {
|
|
4641
4878
|
img: !0,
|
|
4642
4879
|
src: h.substring(4)
|
|
4643
4880
|
};
|
|
4644
|
-
if (
|
|
4645
|
-
const [m, C =
|
|
4881
|
+
if (fb.test(h) === !0) {
|
|
4882
|
+
const [m, C = Bc] = h.split("|");
|
|
4646
4883
|
return {
|
|
4647
4884
|
svguse: !0,
|
|
4648
4885
|
src: m.substring(7),
|
|
@@ -4650,21 +4887,21 @@ const rb = 1.7778, ib = at({
|
|
|
4650
4887
|
};
|
|
4651
4888
|
}
|
|
4652
4889
|
let x = " ";
|
|
4653
|
-
const k = h.match(
|
|
4890
|
+
const k = h.match(ub);
|
|
4654
4891
|
if (k !== null)
|
|
4655
|
-
v =
|
|
4656
|
-
else if (
|
|
4892
|
+
v = Wf[k[1]](h);
|
|
4893
|
+
else if (vb.test(h) === !0)
|
|
4657
4894
|
v = h;
|
|
4658
|
-
else if (
|
|
4895
|
+
else if (db.test(h) === !0)
|
|
4659
4896
|
v = `ionicons ion-${i.platform.is.ios === !0 ? "ios" : "md"}${h.substring(3)}`;
|
|
4660
|
-
else if (
|
|
4897
|
+
else if (Vc.test(h) === !0) {
|
|
4661
4898
|
v = "notranslate material-symbols";
|
|
4662
|
-
const m = h.match(
|
|
4663
|
-
m !== null && (h = h.substring(6), v +=
|
|
4899
|
+
const m = h.match(Vc);
|
|
4900
|
+
m !== null && (h = h.substring(6), v += Uf[m[1]]), x = h;
|
|
4664
4901
|
} else {
|
|
4665
4902
|
v = "notranslate material-icons";
|
|
4666
|
-
const m = h.match(
|
|
4667
|
-
m !== null && (h = h.substring(2), v +=
|
|
4903
|
+
const m = h.match(ab);
|
|
4904
|
+
m !== null && (h = h.substring(2), v += Hf[m[1]]), x = h;
|
|
4668
4905
|
}
|
|
4669
4906
|
return {
|
|
4670
4907
|
cls: v,
|
|
@@ -4695,10 +4932,10 @@ const rb = 1.7778, ib = at({
|
|
|
4695
4932
|
])));
|
|
4696
4933
|
};
|
|
4697
4934
|
}
|
|
4698
|
-
}),
|
|
4935
|
+
}), hb = { class: "card-select-container" }, gb = ["onClick"], mb = { class: "check" }, pb = {
|
|
4699
4936
|
class: "row justify-center items-center",
|
|
4700
4937
|
style: { height: "100%" }
|
|
4701
|
-
},
|
|
4938
|
+
}, _b = ["onClick"], bb = /* @__PURE__ */ vt({
|
|
4702
4939
|
__name: "CardsSelectControl",
|
|
4703
4940
|
props: /* @__PURE__ */ Gn({
|
|
4704
4941
|
control: {}
|
|
@@ -4737,22 +4974,22 @@ const rb = 1.7778, ib = at({
|
|
|
4737
4974
|
key: 0,
|
|
4738
4975
|
label: Ne(u).label
|
|
4739
4976
|
}, null, 8, ["label"])) : Ot("", !0),
|
|
4740
|
-
Oe("div",
|
|
4977
|
+
Oe("div", hb, [
|
|
4741
4978
|
(de(!0), qe(pt, null, gr(Ne(u).options, (m, C) => (de(), qe(pt, { key: C }, [
|
|
4742
4979
|
m.image ? (de(), qe("div", {
|
|
4743
4980
|
key: 0,
|
|
4744
4981
|
class: Qr(`image-card ${c(m)}`),
|
|
4745
4982
|
onClick: () => a(m)
|
|
4746
4983
|
}, [
|
|
4747
|
-
Rt(
|
|
4984
|
+
Rt(ob, {
|
|
4748
4985
|
src: m.image,
|
|
4749
4986
|
height: "200px",
|
|
4750
4987
|
width: "200px",
|
|
4751
4988
|
fit: "fill",
|
|
4752
4989
|
class: "image"
|
|
4753
4990
|
}, null, 8, ["src"]),
|
|
4754
|
-
Oe("div",
|
|
4755
|
-
Oe("div",
|
|
4991
|
+
Oe("div", mb, [
|
|
4992
|
+
Oe("div", pb, [
|
|
4756
4993
|
v(m) ? (de(), lt(zt, {
|
|
4757
4994
|
key: 0,
|
|
4758
4995
|
name: "check",
|
|
@@ -4760,13 +4997,13 @@ const rb = 1.7778, ib = at({
|
|
|
4760
4997
|
})) : Ot("", !0)
|
|
4761
4998
|
])
|
|
4762
4999
|
])
|
|
4763
|
-
], 10,
|
|
5000
|
+
], 10, gb)) : (de(), qe("div", {
|
|
4764
5001
|
key: 1,
|
|
4765
5002
|
class: Qr(`card-option ${c(m)}`),
|
|
4766
5003
|
onClick: () => a(m)
|
|
4767
5004
|
}, [
|
|
4768
5005
|
Oe("span", null, Tt(m.label), 1)
|
|
4769
|
-
], 10,
|
|
5006
|
+
], 10, _b))
|
|
4770
5007
|
], 64))), 128))
|
|
4771
5008
|
])
|
|
4772
5009
|
], 64);
|
|
@@ -4777,16 +5014,16 @@ const rb = 1.7778, ib = at({
|
|
|
4777
5014
|
for (const [u, a] of l)
|
|
4778
5015
|
i[u] = a;
|
|
4779
5016
|
return i;
|
|
4780
|
-
},
|
|
5017
|
+
}, yb = /* @__PURE__ */ Yn(bb, [["__scopeId", "data-v-148468d6"]]), Xr = {
|
|
4781
5018
|
dark: {
|
|
4782
5019
|
type: Boolean,
|
|
4783
5020
|
default: null
|
|
4784
5021
|
}
|
|
4785
5022
|
};
|
|
4786
|
-
function
|
|
5023
|
+
function Jr(t, l) {
|
|
4787
5024
|
return A(() => t.dark === null ? l.dark.isActive : t.dark);
|
|
4788
5025
|
}
|
|
4789
|
-
function
|
|
5026
|
+
function wb(t, l) {
|
|
4790
5027
|
const i = re(null), u = A(() => t.disable === !0 ? null : P("span", {
|
|
4791
5028
|
ref: i,
|
|
4792
5029
|
class: "no-outline",
|
|
@@ -4804,7 +5041,7 @@ function bb(t, l) {
|
|
|
4804
5041
|
const Zu = {
|
|
4805
5042
|
name: String
|
|
4806
5043
|
};
|
|
4807
|
-
function
|
|
5044
|
+
function Sb(t = {}) {
|
|
4808
5045
|
return (l, i, u) => {
|
|
4809
5046
|
l[i](
|
|
4810
5047
|
P("input", {
|
|
@@ -4814,10 +5051,10 @@ function yb(t = {}) {
|
|
|
4814
5051
|
);
|
|
4815
5052
|
};
|
|
4816
5053
|
}
|
|
4817
|
-
function
|
|
5054
|
+
function Kf(t) {
|
|
4818
5055
|
return A(() => t.name || t.for);
|
|
4819
5056
|
}
|
|
4820
|
-
const
|
|
5057
|
+
const xb = {
|
|
4821
5058
|
xs: 30,
|
|
4822
5059
|
sm: 35,
|
|
4823
5060
|
md: 40,
|
|
@@ -4843,15 +5080,15 @@ try {
|
|
|
4843
5080
|
window.addEventListener("qtest", null, t), window.removeEventListener("qtest", null, t);
|
|
4844
5081
|
} catch {
|
|
4845
5082
|
}
|
|
4846
|
-
function
|
|
5083
|
+
function Cb() {
|
|
4847
5084
|
}
|
|
4848
|
-
function
|
|
5085
|
+
function Gf(t) {
|
|
4849
5086
|
return t.touches && t.touches[0] ? t = t.touches[0] : t.changedTouches && t.changedTouches[0] ? t = t.changedTouches[0] : t.targetTouches && t.targetTouches[0] && (t = t.targetTouches[0]), {
|
|
4850
5087
|
top: t.clientY,
|
|
4851
5088
|
left: t.clientX
|
|
4852
5089
|
};
|
|
4853
5090
|
}
|
|
4854
|
-
function
|
|
5091
|
+
function Eb(t) {
|
|
4855
5092
|
if (t.path)
|
|
4856
5093
|
return t.path;
|
|
4857
5094
|
if (t.composedPath)
|
|
@@ -4873,21 +5110,21 @@ function sn(t) {
|
|
|
4873
5110
|
function it(t) {
|
|
4874
5111
|
t.cancelable !== !1 && t.preventDefault(), t.stopPropagation();
|
|
4875
5112
|
}
|
|
4876
|
-
function
|
|
5113
|
+
function Hu(t, l, i) {
|
|
4877
5114
|
const u = `__q_${l}_evt`;
|
|
4878
5115
|
t[u] = t[u] !== void 0 ? t[u].concat(i) : i, i.forEach((a) => {
|
|
4879
5116
|
a[0].addEventListener(a[1], t[a[2]], At[a[3]]);
|
|
4880
5117
|
});
|
|
4881
5118
|
}
|
|
4882
|
-
function
|
|
5119
|
+
function Qf(t, l) {
|
|
4883
5120
|
const i = `__q_${l}_evt`;
|
|
4884
5121
|
t[i] !== void 0 && (t[i].forEach((u) => {
|
|
4885
5122
|
u[0].removeEventListener(u[1], t[u[2]], At[u[3]]);
|
|
4886
5123
|
}), t[i] = void 0);
|
|
4887
5124
|
}
|
|
4888
|
-
const
|
|
4889
|
-
...
|
|
4890
|
-
...
|
|
5125
|
+
const Yf = {
|
|
5126
|
+
...Xr,
|
|
5127
|
+
...Zl,
|
|
4891
5128
|
...Zu,
|
|
4892
5129
|
modelValue: {
|
|
4893
5130
|
required: !0,
|
|
@@ -4912,9 +5149,9 @@ const zf = {
|
|
|
4912
5149
|
dense: Boolean,
|
|
4913
5150
|
disable: Boolean,
|
|
4914
5151
|
tabindex: [String, Number]
|
|
4915
|
-
},
|
|
4916
|
-
function
|
|
4917
|
-
const { props: i, slots: u, emit: a, proxy: c } = Ge(), { $q: v } = c, h =
|
|
5152
|
+
}, jf = ["update:modelValue"];
|
|
5153
|
+
function Zf(t, l) {
|
|
5154
|
+
const { props: i, slots: u, emit: a, proxy: c } = Ge(), { $q: v } = c, h = Jr(i, v), x = re(null), { refocusTargetEl: k, refocusTarget: m } = wb(i, x), C = Xl(i, xb), b = A(
|
|
4918
5155
|
() => i.val !== void 0 && Array.isArray(i.modelValue)
|
|
4919
5156
|
), y = A(() => {
|
|
4920
5157
|
const w = fr(i.val);
|
|
@@ -4935,7 +5172,7 @@ function Hf(t, l) {
|
|
|
4935
5172
|
name: i.name,
|
|
4936
5173
|
value: b.value === !0 ? i.val : i.trueValue
|
|
4937
5174
|
}), w;
|
|
4938
|
-
}), Y =
|
|
5175
|
+
}), Y = Sb(j), Z = A(() => {
|
|
4939
5176
|
const w = {
|
|
4940
5177
|
tabindex: Q.value,
|
|
4941
5178
|
role: t === "toggle" ? "switch" : "checkbox",
|
|
@@ -5002,7 +5239,7 @@ function Hf(t, l) {
|
|
|
5002
5239
|
}, X);
|
|
5003
5240
|
};
|
|
5004
5241
|
}
|
|
5005
|
-
const
|
|
5242
|
+
const kb = P("div", {
|
|
5006
5243
|
key: "svg",
|
|
5007
5244
|
class: "q-checkbox__bg absolute"
|
|
5008
5245
|
}, [
|
|
@@ -5020,10 +5257,10 @@ const Cb = P("div", {
|
|
|
5020
5257
|
d: "M4,14H20V10H4"
|
|
5021
5258
|
})
|
|
5022
5259
|
])
|
|
5023
|
-
]),
|
|
5260
|
+
]), Xf = at({
|
|
5024
5261
|
name: "QCheckbox",
|
|
5025
|
-
props:
|
|
5026
|
-
emits:
|
|
5262
|
+
props: Yf,
|
|
5263
|
+
emits: jf,
|
|
5027
5264
|
setup(t) {
|
|
5028
5265
|
function l(i, u) {
|
|
5029
5266
|
const a = A(
|
|
@@ -5039,11 +5276,11 @@ const Cb = P("div", {
|
|
|
5039
5276
|
name: a.value
|
|
5040
5277
|
})
|
|
5041
5278
|
])
|
|
5042
|
-
] : [
|
|
5279
|
+
] : [kb];
|
|
5043
5280
|
}
|
|
5044
|
-
return
|
|
5281
|
+
return Zf("checkbox", l);
|
|
5045
5282
|
}
|
|
5046
|
-
}),
|
|
5283
|
+
}), Jf = /* @__PURE__ */ vt({
|
|
5047
5284
|
__name: "SimpleCheckbox",
|
|
5048
5285
|
props: /* @__PURE__ */ Gn({
|
|
5049
5286
|
control: {}
|
|
@@ -5054,7 +5291,7 @@ const Cb = P("div", {
|
|
|
5054
5291
|
emits: ["update:modelValue"],
|
|
5055
5292
|
setup(t) {
|
|
5056
5293
|
const l = Qn(t, "modelValue");
|
|
5057
|
-
return (i, u) => (de(), lt(
|
|
5294
|
+
return (i, u) => (de(), lt(Xf, {
|
|
5058
5295
|
outlined: "",
|
|
5059
5296
|
label: i.control.label,
|
|
5060
5297
|
color: "green-10",
|
|
@@ -5063,14 +5300,14 @@ const Cb = P("div", {
|
|
|
5063
5300
|
style: { height: "66.2px" }
|
|
5064
5301
|
}, null, 8, ["label", "model-value"]));
|
|
5065
5302
|
}
|
|
5066
|
-
}),
|
|
5303
|
+
}), Ab = at({
|
|
5067
5304
|
name: "QToggle",
|
|
5068
5305
|
props: {
|
|
5069
|
-
...
|
|
5306
|
+
...Yf,
|
|
5070
5307
|
icon: String,
|
|
5071
5308
|
iconColor: String
|
|
5072
5309
|
},
|
|
5073
|
-
emits:
|
|
5310
|
+
emits: jf,
|
|
5074
5311
|
setup(t) {
|
|
5075
5312
|
function l(i, u) {
|
|
5076
5313
|
const a = A(
|
|
@@ -5092,9 +5329,9 @@ const Cb = P("div", {
|
|
|
5092
5329
|
)
|
|
5093
5330
|
];
|
|
5094
5331
|
}
|
|
5095
|
-
return
|
|
5332
|
+
return Zf("toggle", l);
|
|
5096
5333
|
}
|
|
5097
|
-
}),
|
|
5334
|
+
}), Ob = /* @__PURE__ */ vt({
|
|
5098
5335
|
__name: "SimpleSwitch",
|
|
5099
5336
|
props: /* @__PURE__ */ Gn({
|
|
5100
5337
|
control: {}
|
|
@@ -5105,7 +5342,7 @@ const Cb = P("div", {
|
|
|
5105
5342
|
emits: ["update:modelValue"],
|
|
5106
5343
|
setup(t) {
|
|
5107
5344
|
const l = Qn(t, "modelValue");
|
|
5108
|
-
return (i, u) => (de(), lt(
|
|
5345
|
+
return (i, u) => (de(), lt(Ab, {
|
|
5109
5346
|
falseValue: 0,
|
|
5110
5347
|
trueValue: 1,
|
|
5111
5348
|
outlined: "",
|
|
@@ -5122,7 +5359,7 @@ let Tu, Rl = 0;
|
|
|
5122
5359
|
const ft = new Array(256);
|
|
5123
5360
|
for (let t = 0; t < 256; t++)
|
|
5124
5361
|
ft[t] = (t + 256).toString(16).substring(1);
|
|
5125
|
-
const
|
|
5362
|
+
const Tb = (() => {
|
|
5126
5363
|
const t = typeof crypto < "u" ? crypto : typeof window < "u" ? window.crypto || window.msCrypto : void 0;
|
|
5127
5364
|
if (t !== void 0) {
|
|
5128
5365
|
if (t.randomBytes !== void 0)
|
|
@@ -5139,31 +5376,31 @@ const Ab = (() => {
|
|
|
5139
5376
|
i.push(Math.floor(Math.random() * 256));
|
|
5140
5377
|
return i;
|
|
5141
5378
|
};
|
|
5142
|
-
})(),
|
|
5143
|
-
function
|
|
5144
|
-
(Tu === void 0 || Rl + 16 >
|
|
5379
|
+
})(), $c = 4096;
|
|
5380
|
+
function Uu() {
|
|
5381
|
+
(Tu === void 0 || Rl + 16 > $c) && (Rl = 0, Tu = Tb($c));
|
|
5145
5382
|
const t = Array.prototype.slice.call(Tu, Rl, Rl += 16);
|
|
5146
5383
|
return t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, ft[t[0]] + ft[t[1]] + ft[t[2]] + ft[t[3]] + "-" + ft[t[4]] + ft[t[5]] + "-" + ft[t[6]] + ft[t[7]] + "-" + ft[t[8]] + ft[t[9]] + "-" + ft[t[10]] + ft[t[11]] + ft[t[12]] + ft[t[13]] + ft[t[14]] + ft[t[15]];
|
|
5147
5384
|
}
|
|
5148
|
-
function
|
|
5385
|
+
function Rb(t) {
|
|
5149
5386
|
return t ?? null;
|
|
5150
5387
|
}
|
|
5151
|
-
function
|
|
5152
|
-
return t ?? (l === !0 ? `f_${
|
|
5388
|
+
function Fc(t, l) {
|
|
5389
|
+
return t ?? (l === !0 ? `f_${Uu()}` : null);
|
|
5153
5390
|
}
|
|
5154
|
-
function
|
|
5391
|
+
function qb({ getValue: t, required: l = !0 } = {}) {
|
|
5155
5392
|
if (Kn.value === !0) {
|
|
5156
|
-
const i = t !== void 0 ? re(
|
|
5393
|
+
const i = t !== void 0 ? re(Rb(t())) : re(null);
|
|
5157
5394
|
return l === !0 && i.value === null && Rn(() => {
|
|
5158
|
-
i.value = `f_${
|
|
5395
|
+
i.value = `f_${Uu()}`;
|
|
5159
5396
|
}), t !== void 0 && ke(t, (u) => {
|
|
5160
|
-
i.value =
|
|
5397
|
+
i.value = Fc(u, l);
|
|
5161
5398
|
}), i;
|
|
5162
5399
|
}
|
|
5163
|
-
return t !== void 0 ? A(() =>
|
|
5400
|
+
return t !== void 0 ? A(() => Fc(t(), l)) : re(`f_${Uu()}`);
|
|
5164
5401
|
}
|
|
5165
|
-
const
|
|
5166
|
-
function
|
|
5402
|
+
const Nc = /^on[A-Z]/;
|
|
5403
|
+
function Lb() {
|
|
5167
5404
|
const { attrs: t, vnode: l } = Ge(), i = {
|
|
5168
5405
|
listeners: re({}),
|
|
5169
5406
|
attributes: re({})
|
|
@@ -5171,16 +5408,16 @@ function Rb() {
|
|
|
5171
5408
|
function u() {
|
|
5172
5409
|
const a = {}, c = {};
|
|
5173
5410
|
for (const v in t)
|
|
5174
|
-
v !== "class" && v !== "style" &&
|
|
5411
|
+
v !== "class" && v !== "style" && Nc.test(v) === !1 && (a[v] = t[v]);
|
|
5175
5412
|
for (const v in l.props)
|
|
5176
|
-
|
|
5413
|
+
Nc.test(v) === !0 && (c[v] = l.props[v]);
|
|
5177
5414
|
i.attributes.value = a, i.listeners.value = c;
|
|
5178
5415
|
}
|
|
5179
5416
|
return Sf(u), u(), i;
|
|
5180
5417
|
}
|
|
5181
|
-
const
|
|
5182
|
-
function
|
|
5183
|
-
const u = Gl(
|
|
5418
|
+
const Mb = "_q_", Ib = "_q_fo_";
|
|
5419
|
+
function Bb({ validate: t, resetValidation: l, requiresQForm: i }) {
|
|
5420
|
+
const u = Gl(Ib, !1);
|
|
5184
5421
|
if (u !== !1) {
|
|
5185
5422
|
const { props: a, proxy: c } = Ge();
|
|
5186
5423
|
Object.assign(c, { validate: t, resetValidation: l }), ke(() => a.disable, (v) => {
|
|
@@ -5192,7 +5429,7 @@ function Mb({ validate: t, resetValidation: l, requiresQForm: i }) {
|
|
|
5192
5429
|
});
|
|
5193
5430
|
} else i === !0 && console.error("Parent QForm not found on useFormChild()!");
|
|
5194
5431
|
}
|
|
5195
|
-
const
|
|
5432
|
+
const Dc = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, zc = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, Wc = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, ql = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, Ll = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/, Ru = {
|
|
5196
5433
|
date: (t) => /^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(t),
|
|
5197
5434
|
time: (t) => /^([0-1]?\d|2[0-3]):[0-5]\d$/.test(t),
|
|
5198
5435
|
fulltime: (t) => /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(t),
|
|
@@ -5204,17 +5441,17 @@ const Nc = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, Dc = /^#[0-9a-fA-F]{4}([0-9a-fA
|
|
|
5204
5441
|
// We won't be accepting PRs to enhance the one below because of the reason above.
|
|
5205
5442
|
// eslint-disable-next-line
|
|
5206
5443
|
email: (t) => /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t),
|
|
5207
|
-
hexColor: (t) =>
|
|
5208
|
-
hexaColor: (t) =>
|
|
5209
|
-
hexOrHexaColor: (t) =>
|
|
5444
|
+
hexColor: (t) => Dc.test(t),
|
|
5445
|
+
hexaColor: (t) => zc.test(t),
|
|
5446
|
+
hexOrHexaColor: (t) => Wc.test(t),
|
|
5210
5447
|
rgbColor: (t) => ql.test(t),
|
|
5211
5448
|
rgbaColor: (t) => Ll.test(t),
|
|
5212
5449
|
rgbOrRgbaColor: (t) => ql.test(t) || Ll.test(t),
|
|
5213
|
-
hexOrRgbColor: (t) =>
|
|
5214
|
-
hexaOrRgbaColor: (t) =>
|
|
5215
|
-
anyColor: (t) =>
|
|
5450
|
+
hexOrRgbColor: (t) => Dc.test(t) || ql.test(t),
|
|
5451
|
+
hexaOrRgbaColor: (t) => zc.test(t) || Ll.test(t),
|
|
5452
|
+
anyColor: (t) => Wc.test(t) || ql.test(t) || Ll.test(t)
|
|
5216
5453
|
};
|
|
5217
|
-
function
|
|
5454
|
+
function ed(t, l = 250, i) {
|
|
5218
5455
|
let u = null;
|
|
5219
5456
|
function a() {
|
|
5220
5457
|
const c = arguments, v = () => {
|
|
@@ -5226,7 +5463,7 @@ function Gf(t, l = 250, i) {
|
|
|
5226
5463
|
u !== null && clearTimeout(u);
|
|
5227
5464
|
}, a;
|
|
5228
5465
|
}
|
|
5229
|
-
const
|
|
5466
|
+
const Pb = [!0, !1, "ondemand"], Vb = {
|
|
5230
5467
|
modelValue: {},
|
|
5231
5468
|
error: {
|
|
5232
5469
|
type: Boolean,
|
|
@@ -5240,12 +5477,12 @@ const Ib = [!0, !1, "ondemand"], Bb = {
|
|
|
5240
5477
|
type: [Boolean, String],
|
|
5241
5478
|
default: !1,
|
|
5242
5479
|
// statement unneeded but avoids future vue implementation changes
|
|
5243
|
-
validator: (t) =>
|
|
5480
|
+
validator: (t) => Pb.includes(t)
|
|
5244
5481
|
}
|
|
5245
5482
|
};
|
|
5246
|
-
function
|
|
5483
|
+
function $b(t, l) {
|
|
5247
5484
|
const { props: i, proxy: u } = Ge(), a = re(!1), c = re(null), v = re(!1);
|
|
5248
|
-
|
|
5485
|
+
Bb({ validate: U, resetValidation: R });
|
|
5249
5486
|
let h = 0, x;
|
|
5250
5487
|
const k = A(
|
|
5251
5488
|
() => i.rules !== void 0 && i.rules !== null && i.rules.length !== 0
|
|
@@ -5292,10 +5529,10 @@ function Pb(t, l) {
|
|
|
5292
5529
|
(Z) => (H === h && (console.error(Z), j(!0)), !1)
|
|
5293
5530
|
));
|
|
5294
5531
|
}
|
|
5295
|
-
const q =
|
|
5532
|
+
const q = ed(U, 0);
|
|
5296
5533
|
return qt(() => {
|
|
5297
5534
|
x !== void 0 && x(), q.cancel();
|
|
5298
|
-
}), Object.assign(u, { resetValidation: R, validate: U }),
|
|
5535
|
+
}), Object.assign(u, { resetValidation: R, validate: U }), jl(u, "hasError", () => C.value), {
|
|
5299
5536
|
isDirtyModel: v,
|
|
5300
5537
|
hasRules: k,
|
|
5301
5538
|
hasError: C,
|
|
@@ -5305,27 +5542,27 @@ function Pb(t, l) {
|
|
|
5305
5542
|
};
|
|
5306
5543
|
}
|
|
5307
5544
|
let hr = [], Ti = [];
|
|
5308
|
-
function
|
|
5545
|
+
function td(t) {
|
|
5309
5546
|
Ti = Ti.filter((l) => l !== t);
|
|
5310
5547
|
}
|
|
5311
|
-
function
|
|
5312
|
-
|
|
5548
|
+
function Fb(t) {
|
|
5549
|
+
td(t), Ti.push(t);
|
|
5313
5550
|
}
|
|
5314
|
-
function
|
|
5315
|
-
|
|
5551
|
+
function Hc(t) {
|
|
5552
|
+
td(t), Ti.length === 0 && hr.length !== 0 && (hr[hr.length - 1](), hr = []);
|
|
5316
5553
|
}
|
|
5317
|
-
function
|
|
5554
|
+
function Jl(t) {
|
|
5318
5555
|
Ti.length === 0 ? t() : hr.push(t);
|
|
5319
5556
|
}
|
|
5320
|
-
function
|
|
5557
|
+
function Nb(t) {
|
|
5321
5558
|
hr = hr.filter((l) => l !== t);
|
|
5322
5559
|
}
|
|
5323
5560
|
function Ri(t) {
|
|
5324
5561
|
return t != null && ("" + t).length !== 0;
|
|
5325
5562
|
}
|
|
5326
|
-
const
|
|
5327
|
-
...
|
|
5328
|
-
...
|
|
5563
|
+
const Db = {
|
|
5564
|
+
...Xr,
|
|
5565
|
+
...Vb,
|
|
5329
5566
|
label: String,
|
|
5330
5567
|
stackLabel: Boolean,
|
|
5331
5568
|
hint: String,
|
|
@@ -5354,12 +5591,12 @@ const Fb = {
|
|
|
5354
5591
|
readonly: Boolean,
|
|
5355
5592
|
autofocus: Boolean,
|
|
5356
5593
|
for: String
|
|
5357
|
-
},
|
|
5358
|
-
...
|
|
5594
|
+
}, eo = {
|
|
5595
|
+
...Db,
|
|
5359
5596
|
maxlength: [Number, String]
|
|
5360
5597
|
}, Xu = ["update:modelValue", "clear", "focus", "blur"];
|
|
5361
5598
|
function Ju({ requiredForAttr: t = !0, tagProp: l, changeEvent: i = !1 } = {}) {
|
|
5362
|
-
const { props: u, proxy: a } = Ge(), c =
|
|
5599
|
+
const { props: u, proxy: a } = Ge(), c = Jr(u, a.$q), v = qb({
|
|
5363
5600
|
required: t,
|
|
5364
5601
|
getValue: () => u.for
|
|
5365
5602
|
});
|
|
@@ -5374,7 +5611,7 @@ function Ju({ requiredForAttr: t = !0, tagProp: l, changeEvent: i = !1 } = {}) {
|
|
|
5374
5611
|
innerLoading: re(!1),
|
|
5375
5612
|
focused: re(!1),
|
|
5376
5613
|
hasPopupOpen: !1,
|
|
5377
|
-
splitAttrs:
|
|
5614
|
+
splitAttrs: Lb(),
|
|
5378
5615
|
targetUid: v,
|
|
5379
5616
|
rootRef: re(null),
|
|
5380
5617
|
targetRef: re(null),
|
|
@@ -5424,7 +5661,7 @@ function ea(t) {
|
|
|
5424
5661
|
hasError: m,
|
|
5425
5662
|
errorMessage: C,
|
|
5426
5663
|
resetValidation: b
|
|
5427
|
-
} =
|
|
5664
|
+
} = $b(t.focused, t.innerLoading), y = t.floatingLabel !== void 0 ? A(() => l.stackLabel === !0 || t.focused.value === !0 || t.floatingLabel.value === !0) : A(() => l.stackLabel === !0 || t.focused.value === !0 || t.hasValue.value === !0), R = A(
|
|
5428
5665
|
() => l.bottomSlots === !0 || l.hint !== void 0 || k.value === !0 || l.counter === !0 || l.error !== null
|
|
5429
5666
|
), U = A(() => l.filled === !0 ? "filled" : l.outlined === !0 ? "outlined" : l.borderless === !0 ? "borderless" : l.standout ? "standout" : "standard"), q = A(
|
|
5430
5667
|
() => `q-field row no-wrap items-start q-field--${U.value}` + (t.fieldClass !== void 0 ? ` ${t.fieldClass.value}` : "") + (l.rounded === !0 ? " q-field--rounded" : "") + (l.square === !0 ? " q-field--square" : "") + (y.value === !0 ? " q-field--float" : "") + (H.value === !0 ? " q-field--labeled" : "") + (l.dense === !0 ? " q-field--dense" : "") + (l.itemAligned === !0 ? " q-field--item-aligned q-item-type" : "") + (t.isDark.value === !0 ? " q-field--dark" : "") + (t.getControl === void 0 ? " q-field--auto-height" : "") + (t.focused.value === !0 ? " q-field--focused" : "") + (m.value === !0 ? " q-field--error" : "") + (m.value === !0 || t.focused.value === !0 ? " q-field--highlighted" : "") + (l.hideBottomSpace !== !0 && R.value === !0 ? " q-field--with-bottom" : "") + (l.disable === !0 ? " q-field--disabled" : l.readonly === !0 ? " q-field--readonly" : "")
|
|
@@ -5451,10 +5688,10 @@ function ea(t) {
|
|
|
5451
5688
|
oe && (K === null || K.id !== t.targetUid.value) && (oe.hasAttribute("tabindex") === !0 || (oe = oe.querySelector("[tabindex]")), oe && oe !== K && oe.focus({ preventScroll: !0 }));
|
|
5452
5689
|
}
|
|
5453
5690
|
function V() {
|
|
5454
|
-
|
|
5691
|
+
Jl(Z);
|
|
5455
5692
|
}
|
|
5456
5693
|
function ae() {
|
|
5457
|
-
|
|
5694
|
+
Nb(Z);
|
|
5458
5695
|
const K = document.activeElement;
|
|
5459
5696
|
K !== null && t.rootRef.value.contains(K) && K.blur();
|
|
5460
5697
|
}
|
|
@@ -5625,7 +5862,7 @@ function ta(t) {
|
|
|
5625
5862
|
function wr(t, l) {
|
|
5626
5863
|
return ta(t) === !0 ? !1 : [].concat(l).includes(t.keyCode);
|
|
5627
5864
|
}
|
|
5628
|
-
const
|
|
5865
|
+
const Uc = {
|
|
5629
5866
|
date: "####/##/##",
|
|
5630
5867
|
datetime: "####/##/## ##:##",
|
|
5631
5868
|
time: "##:##",
|
|
@@ -5640,17 +5877,17 @@ const Hc = {
|
|
|
5640
5877
|
a: { pattern: "[a-zA-Z]", negate: "[^a-zA-Z]", transform: (t) => t.toLocaleLowerCase() },
|
|
5641
5878
|
X: { pattern: "[0-9a-zA-Z]", negate: "[^0-9a-zA-Z]", transform: (t) => t.toLocaleUpperCase() },
|
|
5642
5879
|
x: { pattern: "[0-9a-zA-Z]", negate: "[^0-9a-zA-Z]", transform: (t) => t.toLocaleLowerCase() }
|
|
5643
|
-
},
|
|
5644
|
-
|
|
5880
|
+
}, nd = Object.keys(zl);
|
|
5881
|
+
nd.forEach((t) => {
|
|
5645
5882
|
zl[t].regex = new RegExp(zl[t].pattern);
|
|
5646
5883
|
});
|
|
5647
|
-
const
|
|
5884
|
+
const zb = new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|([" + nd.join("") + "])|(.)", "g"), Kc = /[.*+?^${}()|[\]\\]/g, et = "", Wb = {
|
|
5648
5885
|
mask: String,
|
|
5649
5886
|
reverseFillMask: Boolean,
|
|
5650
5887
|
fillMask: [Boolean, String],
|
|
5651
5888
|
unmaskedValue: Boolean
|
|
5652
5889
|
};
|
|
5653
|
-
function
|
|
5890
|
+
function Hb(t, l, i, u) {
|
|
5654
5891
|
let a, c, v, h, x, k;
|
|
5655
5892
|
const m = re(null), C = re(y());
|
|
5656
5893
|
function b() {
|
|
@@ -5692,9 +5929,9 @@ function zb(t, l, i, u) {
|
|
|
5692
5929
|
h = void 0, a = "", c = "";
|
|
5693
5930
|
return;
|
|
5694
5931
|
}
|
|
5695
|
-
const $ =
|
|
5932
|
+
const $ = Uc[t.mask] === void 0 ? t.mask : Uc[t.mask], O = typeof t.fillMask == "string" && t.fillMask.length !== 0 ? t.fillMask.slice(0, 1) : "_", I = O.replace(Kc, "\\$&"), w = [], X = [], D = [];
|
|
5696
5933
|
let se = t.reverseFillMask === !0, fe = "", ve = "";
|
|
5697
|
-
$.replace(
|
|
5934
|
+
$.replace(zb, (L, T, ue, ye, we) => {
|
|
5698
5935
|
if (ye !== void 0) {
|
|
5699
5936
|
const G = zl[ye];
|
|
5700
5937
|
D.push(G), ve = G.negate, se === !0 && (X.push("(?:" + ve + "+)?(" + G.pattern + "+)?(?:" + ve + "+)?(" + G.pattern + "+)?"), se = !1), X.push("(?:" + ve + "+)?(" + G.pattern + ")?");
|
|
@@ -5702,7 +5939,7 @@ function zb(t, l, i, u) {
|
|
|
5702
5939
|
fe = "\\" + (ue === "\\" ? "" : ue), D.push(ue), w.push("([^" + fe + "]+)?" + fe + "?");
|
|
5703
5940
|
else {
|
|
5704
5941
|
const G = T !== void 0 ? T : we;
|
|
5705
|
-
fe = G === "\\" ? "\\\\\\\\" : G.replace(
|
|
5942
|
+
fe = G === "\\" ? "\\\\\\\\" : G.replace(Kc, "\\\\$&"), D.push(G), w.push("([^" + fe + "]+)?" + fe + "?");
|
|
5706
5943
|
}
|
|
5707
5944
|
});
|
|
5708
5945
|
const K = new RegExp(
|
|
@@ -5886,7 +6123,7 @@ function zb(t, l, i, u) {
|
|
|
5886
6123
|
onMaskedClick: z
|
|
5887
6124
|
};
|
|
5888
6125
|
}
|
|
5889
|
-
function
|
|
6126
|
+
function Ub(t, l) {
|
|
5890
6127
|
function i() {
|
|
5891
6128
|
const u = t.modelValue;
|
|
5892
6129
|
try {
|
|
@@ -5907,21 +6144,21 @@ function Wb(t, l) {
|
|
|
5907
6144
|
return i();
|
|
5908
6145
|
});
|
|
5909
6146
|
}
|
|
5910
|
-
const
|
|
5911
|
-
function
|
|
6147
|
+
const Kb = /[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/, Gb = /[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u, Qb = /[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/, Yb = /[a-z0-9_ -]$/i;
|
|
6148
|
+
function rd(t) {
|
|
5912
6149
|
return function(i) {
|
|
5913
6150
|
if (i.type === "compositionend" || i.type === "change") {
|
|
5914
6151
|
if (i.target.qComposing !== !0) return;
|
|
5915
6152
|
i.target.qComposing = !1, t(i);
|
|
5916
|
-
} else i.type === "compositionupdate" && i.target.qComposing !== !0 && typeof i.data == "string" && (Nt.is.firefox === !0 ?
|
|
6153
|
+
} else i.type === "compositionupdate" && i.target.qComposing !== !0 && typeof i.data == "string" && (Nt.is.firefox === !0 ? Yb.test(i.data) === !1 : Kb.test(i.data) === !0 || Gb.test(i.data) === !0 || Qb.test(i.data) === !0) === !0 && (i.target.qComposing = !0);
|
|
5917
6154
|
};
|
|
5918
6155
|
}
|
|
5919
|
-
const
|
|
6156
|
+
const id = at({
|
|
5920
6157
|
name: "QInput",
|
|
5921
6158
|
inheritAttrs: !1,
|
|
5922
6159
|
props: {
|
|
5923
|
-
...
|
|
5924
|
-
...
|
|
6160
|
+
...eo,
|
|
6161
|
+
...Wb,
|
|
5925
6162
|
...Zu,
|
|
5926
6163
|
// override of useFieldProps > modelValue
|
|
5927
6164
|
modelValue: [String, Number, FileList],
|
|
@@ -5947,16 +6184,16 @@ const Zf = at({
|
|
|
5947
6184
|
setup(t, { emit: l, attrs: i }) {
|
|
5948
6185
|
const { proxy: u } = Ge(), { $q: a } = u, c = {};
|
|
5949
6186
|
let v = NaN, h, x, k = null, m;
|
|
5950
|
-
const C = re(null), b =
|
|
6187
|
+
const C = re(null), b = Kf(t), {
|
|
5951
6188
|
innerValue: y,
|
|
5952
6189
|
hasMask: R,
|
|
5953
6190
|
moveCursorForPaste: U,
|
|
5954
6191
|
updateMaskValue: q,
|
|
5955
6192
|
onMaskedKeydown: Q,
|
|
5956
6193
|
onMaskedClick: H
|
|
5957
|
-
} =
|
|
6194
|
+
} = Hb(t, l, fe, C), z = Ub(
|
|
5958
6195
|
t
|
|
5959
|
-
), j = A(() => Ri(y.value)), Y =
|
|
6196
|
+
), j = A(() => Ri(y.value)), Y = rd(D), Z = Ju({ changeEvent: !0 }), V = A(
|
|
5960
6197
|
() => t.type === "textarea" || t.autogrow === !0
|
|
5961
6198
|
), ae = A(
|
|
5962
6199
|
() => V.value === !0 || ["text", "search", "url", "tel", "password"].includes(t.type)
|
|
@@ -6004,7 +6241,7 @@ const Zf = at({
|
|
|
6004
6241
|
t.autogrow === !0 && Xe(ve);
|
|
6005
6242
|
});
|
|
6006
6243
|
function I() {
|
|
6007
|
-
|
|
6244
|
+
Jl(() => {
|
|
6008
6245
|
const T = document.activeElement;
|
|
6009
6246
|
C.value !== null && C.value !== T && (T === null || T.id !== Z.targetUid.value) && C.value.focus({ preventScroll: !0 });
|
|
6010
6247
|
});
|
|
@@ -6113,12 +6350,12 @@ const Zf = at({
|
|
|
6113
6350
|
select: w,
|
|
6114
6351
|
getNativeElement: () => C.value
|
|
6115
6352
|
// deprecated
|
|
6116
|
-
}),
|
|
6353
|
+
}), jl(u, "nativeEl", () => C.value), L;
|
|
6117
6354
|
}
|
|
6118
|
-
}),
|
|
6355
|
+
}), to = at({
|
|
6119
6356
|
name: "QCard",
|
|
6120
6357
|
props: {
|
|
6121
|
-
...
|
|
6358
|
+
...Xr,
|
|
6122
6359
|
tag: {
|
|
6123
6360
|
type: String,
|
|
6124
6361
|
default: "div"
|
|
@@ -6128,12 +6365,12 @@ const Zf = at({
|
|
|
6128
6365
|
bordered: Boolean
|
|
6129
6366
|
},
|
|
6130
6367
|
setup(t, { slots: l }) {
|
|
6131
|
-
const { proxy: { $q: i } } = Ge(), u =
|
|
6368
|
+
const { proxy: { $q: i } } = Ge(), u = Jr(t, i), a = A(
|
|
6132
6369
|
() => "q-card" + (u.value === !0 ? " q-card--dark q-dark" : "") + (t.bordered === !0 ? " q-card--bordered" : "") + (t.square === !0 ? " q-card--square no-border-radius" : "") + (t.flat === !0 ? " q-card--flat no-shadow" : "")
|
|
6133
6370
|
);
|
|
6134
6371
|
return () => P(t.tag, { class: a.value }, Dt(l.default));
|
|
6135
6372
|
}
|
|
6136
|
-
}),
|
|
6373
|
+
}), jb = /* @__PURE__ */ vt({
|
|
6137
6374
|
__name: "WinInput",
|
|
6138
6375
|
props: /* @__PURE__ */ Gn({
|
|
6139
6376
|
modelValue: {},
|
|
@@ -6179,7 +6416,7 @@ const Zf = at({
|
|
|
6179
6416
|
u.value = !1;
|
|
6180
6417
|
}
|
|
6181
6418
|
return (b, y) => (de(), qe(pt, null, [
|
|
6182
|
-
Rt(
|
|
6419
|
+
Rt(to, {
|
|
6183
6420
|
onClick: k,
|
|
6184
6421
|
class: Qr(`${a.value} row items-center ${l.value && b.label || u.value && b.label ? "q-pt-md" : ""} `),
|
|
6185
6422
|
style: Cu({
|
|
@@ -6192,7 +6429,7 @@ const Zf = at({
|
|
|
6192
6429
|
}, {
|
|
6193
6430
|
default: ut(() => [
|
|
6194
6431
|
Pl(b.$slots, "fixed-label", { class: "self-start" }),
|
|
6195
|
-
Rt(
|
|
6432
|
+
Rt(id, {
|
|
6196
6433
|
modelValue: l.value,
|
|
6197
6434
|
"onUpdate:modelValue": y[0] || (y[0] = (R) => l.value = R),
|
|
6198
6435
|
ref_key: "inputRef",
|
|
@@ -6241,21 +6478,21 @@ const Zf = at({
|
|
|
6241
6478
|
}, Tt(b.hint), 3)) : Ot("", !0)
|
|
6242
6479
|
], 64));
|
|
6243
6480
|
}
|
|
6244
|
-
}),
|
|
6481
|
+
}), Zb = {
|
|
6245
6482
|
class: "ww-subtitle text-center q-mb-md text-grey-9",
|
|
6246
6483
|
style: { "font-weight": "600" }
|
|
6247
|
-
},
|
|
6484
|
+
}, Xb = /* @__PURE__ */ vt({
|
|
6248
6485
|
__name: "ControlLabel",
|
|
6249
6486
|
props: {
|
|
6250
6487
|
label: {}
|
|
6251
6488
|
},
|
|
6252
6489
|
setup(t) {
|
|
6253
|
-
return (l, i) => (de(), qe("div",
|
|
6490
|
+
return (l, i) => (de(), qe("div", Zb, Tt(l.label), 1));
|
|
6254
6491
|
}
|
|
6255
|
-
}),
|
|
6492
|
+
}), Jb = {
|
|
6256
6493
|
style: { "max-width": "400px" },
|
|
6257
6494
|
class: "text-center"
|
|
6258
|
-
},
|
|
6495
|
+
}, ey = { style: { "font-size": "16px" } }, ty = { style: { "font-size": "16px" } }, ny = /* @__PURE__ */ vt({
|
|
6259
6496
|
__name: "InputControl",
|
|
6260
6497
|
props: /* @__PURE__ */ Gn({
|
|
6261
6498
|
control: {},
|
|
@@ -6273,12 +6510,12 @@ const Zf = at({
|
|
|
6273
6510
|
return Rn(() => {
|
|
6274
6511
|
var c;
|
|
6275
6512
|
(c = i.value) == null || c.focus();
|
|
6276
|
-
}), (c, v) => (de(), qe("div",
|
|
6277
|
-
!c.innerLabel && c.control.label ? (de(), lt(
|
|
6513
|
+
}), (c, v) => (de(), qe("div", Jb, [
|
|
6514
|
+
!c.innerLabel && c.control.label ? (de(), lt(Xb, {
|
|
6278
6515
|
key: 0,
|
|
6279
6516
|
label: c.control.label
|
|
6280
6517
|
}, null, 8, ["label"])) : Ot("", !0),
|
|
6281
|
-
Rt(
|
|
6518
|
+
Rt(jb, {
|
|
6282
6519
|
modelValue: a.value,
|
|
6283
6520
|
"onUpdate:modelValue": v[0] || (v[0] = (h) => a.value = h),
|
|
6284
6521
|
width: "250px",
|
|
@@ -6291,27 +6528,27 @@ const Zf = at({
|
|
|
6291
6528
|
c.control.prefix ? {
|
|
6292
6529
|
name: "prepend",
|
|
6293
6530
|
fn: ut(() => [
|
|
6294
|
-
Oe("span",
|
|
6531
|
+
Oe("span", ey, Tt(c.control.prefix), 1)
|
|
6295
6532
|
]),
|
|
6296
6533
|
key: "0"
|
|
6297
6534
|
} : void 0,
|
|
6298
6535
|
c.control.suffix ? {
|
|
6299
6536
|
name: "append",
|
|
6300
6537
|
fn: ut(() => [
|
|
6301
|
-
Oe("span",
|
|
6538
|
+
Oe("span", ty, Tt(c.control.suffix), 1)
|
|
6302
6539
|
]),
|
|
6303
6540
|
key: "1"
|
|
6304
6541
|
} : void 0
|
|
6305
6542
|
]), 1032, ["modelValue", "mask", "label", "inputStyle"])
|
|
6306
6543
|
]));
|
|
6307
6544
|
}
|
|
6308
|
-
}), qu = /* @__PURE__ */ Yn(
|
|
6309
|
-
function
|
|
6545
|
+
}), qu = /* @__PURE__ */ Yn(ny, [["__scopeId", "data-v-8f5284d3"]]);
|
|
6546
|
+
function Ku(t, l) {
|
|
6310
6547
|
const i = t.style;
|
|
6311
6548
|
for (const u in l)
|
|
6312
6549
|
i[u] = l[u];
|
|
6313
6550
|
}
|
|
6314
|
-
function
|
|
6551
|
+
function ry(t) {
|
|
6315
6552
|
if (t == null)
|
|
6316
6553
|
return;
|
|
6317
6554
|
if (typeof t == "string")
|
|
@@ -6324,7 +6561,7 @@ function ty(t) {
|
|
|
6324
6561
|
if (l)
|
|
6325
6562
|
return l.$el || l;
|
|
6326
6563
|
}
|
|
6327
|
-
function
|
|
6564
|
+
function ld(t, l) {
|
|
6328
6565
|
if (t == null || t.contains(l) === !0)
|
|
6329
6566
|
return !0;
|
|
6330
6567
|
for (let i = t.nextElementSibling; i !== null; i = i.nextElementSibling)
|
|
@@ -6332,7 +6569,7 @@ function Xf(t, l) {
|
|
|
6332
6569
|
return !0;
|
|
6333
6570
|
return !1;
|
|
6334
6571
|
}
|
|
6335
|
-
function
|
|
6572
|
+
function iy(t, l = 250) {
|
|
6336
6573
|
let i = !1, u;
|
|
6337
6574
|
return function() {
|
|
6338
6575
|
return i === !1 && (i = !0, setTimeout(() => {
|
|
@@ -6340,13 +6577,13 @@ function ny(t, l = 250) {
|
|
|
6340
6577
|
}, l), u = t.apply(this, arguments)), u;
|
|
6341
6578
|
};
|
|
6342
6579
|
}
|
|
6343
|
-
function
|
|
6580
|
+
function Gc(t, l, i, u) {
|
|
6344
6581
|
i.modifiers.stop === !0 && hn(t);
|
|
6345
6582
|
const a = i.modifiers.color;
|
|
6346
6583
|
let c = i.modifiers.center;
|
|
6347
6584
|
c = c === !0 || u === !0;
|
|
6348
|
-
const v = document.createElement("span"), h = document.createElement("span"), x =
|
|
6349
|
-
h.className = "q-ripple__inner",
|
|
6585
|
+
const v = document.createElement("span"), h = document.createElement("span"), x = Gf(t), { left: k, top: m, width: C, height: b } = l.getBoundingClientRect(), y = Math.sqrt(C * C + b * b), R = y / 2, U = `${(C - y) / 2}px`, q = c ? U : `${x.left - k - R}px`, Q = `${(b - y) / 2}px`, H = c ? Q : `${x.top - m - R}px`;
|
|
6586
|
+
h.className = "q-ripple__inner", Ku(h, {
|
|
6350
6587
|
height: `${y}px`,
|
|
6351
6588
|
width: `${y}px`,
|
|
6352
6589
|
transform: `translate3d(${q},${H},0) scale3d(.2,.2,1)`,
|
|
@@ -6364,7 +6601,7 @@ function Kc(t, l, i, u) {
|
|
|
6364
6601
|
}, 250);
|
|
6365
6602
|
}, 50);
|
|
6366
6603
|
}
|
|
6367
|
-
function
|
|
6604
|
+
function Qc(t, { modifiers: l, value: i, arg: u }) {
|
|
6368
6605
|
const a = Object.assign({}, t.cfg.ripple, l, i);
|
|
6369
6606
|
t.modifiers = {
|
|
6370
6607
|
early: a.early === !0,
|
|
@@ -6374,7 +6611,7 @@ function Gc(t, { modifiers: l, value: i, arg: u }) {
|
|
|
6374
6611
|
keyCodes: [].concat(a.keyCodes || 13)
|
|
6375
6612
|
};
|
|
6376
6613
|
}
|
|
6377
|
-
const
|
|
6614
|
+
const od = Ff(
|
|
6378
6615
|
{
|
|
6379
6616
|
name: "ripple",
|
|
6380
6617
|
beforeMount(t, l) {
|
|
@@ -6387,13 +6624,13 @@ const Jf = Lf(
|
|
|
6387
6624
|
modifiers: {},
|
|
6388
6625
|
abort: [],
|
|
6389
6626
|
start(a) {
|
|
6390
|
-
u.enabled === !0 && a.qSkipRipple !== !0 && a.type === (u.modifiers.early === !0 ? "pointerdown" : "click") &&
|
|
6627
|
+
u.enabled === !0 && a.qSkipRipple !== !0 && a.type === (u.modifiers.early === !0 ? "pointerdown" : "click") && Gc(a, t, u, a.qKeyEvent === !0);
|
|
6391
6628
|
},
|
|
6392
|
-
keystart:
|
|
6393
|
-
u.enabled === !0 && a.qSkipRipple !== !0 && wr(a, u.modifiers.keyCodes) === !0 && a.type === `key${u.modifiers.early === !0 ? "down" : "up"}` &&
|
|
6629
|
+
keystart: iy((a) => {
|
|
6630
|
+
u.enabled === !0 && a.qSkipRipple !== !0 && wr(a, u.modifiers.keyCodes) === !0 && a.type === `key${u.modifiers.early === !0 ? "down" : "up"}` && Gc(a, t, u, !0);
|
|
6394
6631
|
}, 300)
|
|
6395
6632
|
};
|
|
6396
|
-
|
|
6633
|
+
Qc(u, l), t.__qripple = u, Hu(u, "main", [
|
|
6397
6634
|
[t, "pointerdown", "start", "passive"],
|
|
6398
6635
|
[t, "click", "start", "passive"],
|
|
6399
6636
|
[t, "keydown", "keystart", "passive"],
|
|
@@ -6403,17 +6640,17 @@ const Jf = Lf(
|
|
|
6403
6640
|
updated(t, l) {
|
|
6404
6641
|
if (l.oldValue !== l.value) {
|
|
6405
6642
|
const i = t.__qripple;
|
|
6406
|
-
i !== void 0 && (i.enabled = l.value !== !1, i.enabled === !0 && Object(l.value) === l.value &&
|
|
6643
|
+
i !== void 0 && (i.enabled = l.value !== !1, i.enabled === !0 && Object(l.value) === l.value && Qc(i, l));
|
|
6407
6644
|
}
|
|
6408
6645
|
},
|
|
6409
6646
|
beforeUnmount(t) {
|
|
6410
6647
|
const l = t.__qripple;
|
|
6411
6648
|
l !== void 0 && (l.abort.forEach((i) => {
|
|
6412
6649
|
i();
|
|
6413
|
-
}),
|
|
6650
|
+
}), Qf(l, "main"), delete t._qripple);
|
|
6414
6651
|
}
|
|
6415
6652
|
}
|
|
6416
|
-
),
|
|
6653
|
+
), ud = {
|
|
6417
6654
|
left: "start",
|
|
6418
6655
|
center: "center",
|
|
6419
6656
|
right: "end",
|
|
@@ -6421,25 +6658,25 @@ const Jf = Lf(
|
|
|
6421
6658
|
around: "around",
|
|
6422
6659
|
evenly: "evenly",
|
|
6423
6660
|
stretch: "stretch"
|
|
6424
|
-
},
|
|
6661
|
+
}, ly = Object.keys(ud), oy = {
|
|
6425
6662
|
align: {
|
|
6426
6663
|
type: String,
|
|
6427
|
-
validator: (t) =>
|
|
6664
|
+
validator: (t) => ly.includes(t)
|
|
6428
6665
|
}
|
|
6429
6666
|
};
|
|
6430
|
-
function
|
|
6667
|
+
function uy(t) {
|
|
6431
6668
|
return A(() => {
|
|
6432
6669
|
const l = t.align === void 0 ? t.vertical === !0 ? "stretch" : "left" : t.align;
|
|
6433
|
-
return `${t.vertical === !0 ? "items" : "justify"}-${
|
|
6670
|
+
return `${t.vertical === !0 ? "items" : "justify"}-${ud[l]}`;
|
|
6434
6671
|
});
|
|
6435
6672
|
}
|
|
6436
|
-
function
|
|
6673
|
+
function Yc(t) {
|
|
6437
6674
|
return t ? t.aliasOf ? t.aliasOf.path : t.path : "";
|
|
6438
6675
|
}
|
|
6439
|
-
function
|
|
6676
|
+
function jc(t, l) {
|
|
6440
6677
|
return (t.aliasOf || t) === (l.aliasOf || l);
|
|
6441
6678
|
}
|
|
6442
|
-
function
|
|
6679
|
+
function ay(t, l) {
|
|
6443
6680
|
for (const i in l) {
|
|
6444
6681
|
const u = l[i], a = t[i];
|
|
6445
6682
|
if (typeof u == "string") {
|
|
@@ -6450,21 +6687,21 @@ function oy(t, l) {
|
|
|
6450
6687
|
}
|
|
6451
6688
|
return !0;
|
|
6452
6689
|
}
|
|
6453
|
-
function
|
|
6690
|
+
function Zc(t, l) {
|
|
6454
6691
|
return Array.isArray(l) === !0 ? t.length === l.length && t.every((i, u) => i === l[u]) : t.length === 1 && t[0] === l;
|
|
6455
6692
|
}
|
|
6456
|
-
function
|
|
6457
|
-
return Array.isArray(t) === !0 ?
|
|
6693
|
+
function sy(t, l) {
|
|
6694
|
+
return Array.isArray(t) === !0 ? Zc(t, l) : Array.isArray(l) === !0 ? Zc(l, t) : t === l;
|
|
6458
6695
|
}
|
|
6459
|
-
function
|
|
6696
|
+
function cy(t, l) {
|
|
6460
6697
|
if (Object.keys(t).length !== Object.keys(l).length)
|
|
6461
6698
|
return !1;
|
|
6462
6699
|
for (const i in t)
|
|
6463
|
-
if (
|
|
6700
|
+
if (sy(t[i], l[i]) === !1)
|
|
6464
6701
|
return !1;
|
|
6465
6702
|
return !0;
|
|
6466
6703
|
}
|
|
6467
|
-
const
|
|
6704
|
+
const ad = {
|
|
6468
6705
|
// router-link
|
|
6469
6706
|
to: [String, Object],
|
|
6470
6707
|
replace: Boolean,
|
|
@@ -6473,8 +6710,8 @@ const td = {
|
|
|
6473
6710
|
target: String,
|
|
6474
6711
|
// state
|
|
6475
6712
|
disable: Boolean
|
|
6476
|
-
},
|
|
6477
|
-
...
|
|
6713
|
+
}, fy = {
|
|
6714
|
+
...ad,
|
|
6478
6715
|
// router-link
|
|
6479
6716
|
exact: Boolean,
|
|
6480
6717
|
activeClass: {
|
|
@@ -6486,8 +6723,8 @@ const td = {
|
|
|
6486
6723
|
default: "q-router-link--exact-active"
|
|
6487
6724
|
}
|
|
6488
6725
|
};
|
|
6489
|
-
function
|
|
6490
|
-
const i = Ge(), { props: u, proxy: a, emit: c } = i, v =
|
|
6726
|
+
function sd({ fallbackTag: t, useDisableForRouterLinkProps: l = !0 } = {}) {
|
|
6727
|
+
const i = Ge(), { props: u, proxy: a, emit: c } = i, v = zf(i), h = A(() => u.disable !== !0 && u.href !== void 0), x = l === !0 ? A(
|
|
6491
6728
|
() => v === !0 && u.disable !== !0 && h.value !== !0 && u.to !== void 0 && u.to !== null && u.to !== ""
|
|
6492
6729
|
) : A(
|
|
6493
6730
|
() => v === !0 && h.value !== !0 && u.to !== void 0 && u.to !== null && u.to !== ""
|
|
@@ -6507,21 +6744,21 @@ function nd({ fallbackTag: t, useDisableForRouterLinkProps: l = !0 } = {}) {
|
|
|
6507
6744
|
if (ae.length === 0)
|
|
6508
6745
|
return -1;
|
|
6509
6746
|
const $ = ae.findIndex(
|
|
6510
|
-
|
|
6747
|
+
jc.bind(null, V)
|
|
6511
6748
|
);
|
|
6512
6749
|
if ($ !== -1)
|
|
6513
6750
|
return $;
|
|
6514
|
-
const O =
|
|
6751
|
+
const O = Yc(Y[Z - 2]);
|
|
6515
6752
|
return (
|
|
6516
6753
|
// we are dealing with nested routes
|
|
6517
|
-
Z > 1 &&
|
|
6518
|
-
|
|
6754
|
+
Z > 1 && Yc(V) === O && ae[ae.length - 1].path !== O ? ae.findIndex(
|
|
6755
|
+
jc.bind(null, Y[Z - 2])
|
|
6519
6756
|
) : $
|
|
6520
6757
|
);
|
|
6521
6758
|
}), U = A(
|
|
6522
|
-
() => m.value === !0 && R.value !== -1 &&
|
|
6759
|
+
() => m.value === !0 && R.value !== -1 && ay(a.$route.params, k.value.params)
|
|
6523
6760
|
), q = A(
|
|
6524
|
-
() => U.value === !0 && R.value === a.$route.matched.length - 1 &&
|
|
6761
|
+
() => U.value === !0 && R.value === a.$route.matched.length - 1 && cy(a.$route.params, k.value.params)
|
|
6525
6762
|
), Q = A(() => m.value === !0 ? q.value === !0 ? ` ${u.exactActiveClass} ${u.activeClass}` : u.exact === !0 ? "" : U.value === !0 ? ` ${u.activeClass}` : "" : "");
|
|
6526
6763
|
function H(Y) {
|
|
6527
6764
|
try {
|
|
@@ -6567,26 +6804,26 @@ function nd({ fallbackTag: t, useDisableForRouterLinkProps: l = !0 } = {}) {
|
|
|
6567
6804
|
navigateOnClick: j
|
|
6568
6805
|
};
|
|
6569
6806
|
}
|
|
6570
|
-
const
|
|
6807
|
+
const Xc = {
|
|
6571
6808
|
none: 0,
|
|
6572
6809
|
xs: 4,
|
|
6573
6810
|
sm: 8,
|
|
6574
6811
|
md: 16,
|
|
6575
6812
|
lg: 24,
|
|
6576
6813
|
xl: 32
|
|
6577
|
-
},
|
|
6814
|
+
}, dy = {
|
|
6578
6815
|
xs: 8,
|
|
6579
6816
|
sm: 10,
|
|
6580
6817
|
md: 14,
|
|
6581
6818
|
lg: 20,
|
|
6582
6819
|
xl: 24
|
|
6583
|
-
},
|
|
6584
|
-
function
|
|
6820
|
+
}, vy = ["button", "submit", "reset"], hy = /[^\s]\/[^\s]/, gy = ["flat", "outline", "push", "unelevated"];
|
|
6821
|
+
function my(t, l) {
|
|
6585
6822
|
return t.flat === !0 ? "flat" : t.outline === !0 ? "outline" : t.push === !0 ? "push" : t.unelevated === !0 ? "unelevated" : l;
|
|
6586
6823
|
}
|
|
6587
|
-
const
|
|
6588
|
-
...
|
|
6589
|
-
...
|
|
6824
|
+
const py = {
|
|
6825
|
+
...Zl,
|
|
6826
|
+
...ad,
|
|
6590
6827
|
type: {
|
|
6591
6828
|
type: String,
|
|
6592
6829
|
default: "button"
|
|
@@ -6594,7 +6831,7 @@ const gy = {
|
|
|
6594
6831
|
label: [Number, String],
|
|
6595
6832
|
icon: String,
|
|
6596
6833
|
iconRight: String,
|
|
6597
|
-
...
|
|
6834
|
+
...gy.reduce(
|
|
6598
6835
|
(t, l) => (t[l] = Boolean) && t,
|
|
6599
6836
|
{}
|
|
6600
6837
|
),
|
|
@@ -6616,7 +6853,7 @@ const gy = {
|
|
|
6616
6853
|
default: !0
|
|
6617
6854
|
},
|
|
6618
6855
|
align: {
|
|
6619
|
-
...
|
|
6856
|
+
...oy.align,
|
|
6620
6857
|
default: "center"
|
|
6621
6858
|
},
|
|
6622
6859
|
stack: Boolean,
|
|
@@ -6626,17 +6863,17 @@ const gy = {
|
|
|
6626
6863
|
default: null
|
|
6627
6864
|
},
|
|
6628
6865
|
disable: Boolean
|
|
6629
|
-
},
|
|
6630
|
-
...
|
|
6866
|
+
}, _y = {
|
|
6867
|
+
...py,
|
|
6631
6868
|
round: Boolean
|
|
6632
6869
|
};
|
|
6633
|
-
function
|
|
6634
|
-
const l =
|
|
6870
|
+
function by(t) {
|
|
6871
|
+
const l = Xl(t, dy), i = uy(t), { hasRouterLink: u, hasLink: a, linkTag: c, linkAttrs: v, navigateOnClick: h } = sd({
|
|
6635
6872
|
fallbackTag: "button"
|
|
6636
6873
|
}), x = A(() => {
|
|
6637
6874
|
const q = t.fab === !1 && t.fabMini === !1 ? l.value : {};
|
|
6638
6875
|
return t.padding !== void 0 ? Object.assign({}, q, {
|
|
6639
|
-
padding: t.padding.split(/\s+/).map((Q) => Q in
|
|
6876
|
+
padding: t.padding.split(/\s+/).map((Q) => Q in Xc ? Xc[Q] + "px" : Q).join(" "),
|
|
6640
6877
|
minWidth: "0",
|
|
6641
6878
|
minHeight: "0"
|
|
6642
6879
|
}) : q;
|
|
@@ -6644,9 +6881,9 @@ function py(t) {
|
|
|
6644
6881
|
() => t.rounded === !0 || t.fab === !0 || t.fabMini === !0
|
|
6645
6882
|
), m = A(
|
|
6646
6883
|
() => t.disable !== !0 && t.loading !== !0
|
|
6647
|
-
), C = A(() => m.value === !0 ? t.tabindex || 0 : -1), b = A(() =>
|
|
6884
|
+
), C = A(() => m.value === !0 ? t.tabindex || 0 : -1), b = A(() => my(t, "standard")), y = A(() => {
|
|
6648
6885
|
const q = { tabindex: C.value };
|
|
6649
|
-
return a.value === !0 ? Object.assign(q, v.value) :
|
|
6886
|
+
return a.value === !0 ? Object.assign(q, v.value) : vy.includes(t.type) === !0 && (q.type = t.type), c.value === "a" ? (t.disable === !0 ? q["aria-disabled"] = "true" : q.href === void 0 && (q.role = "button"), u.value !== !0 && hy.test(t.type) === !0 && (q.type = t.type)) : t.disable === !0 && (q.disabled = "", q["aria-disabled"] = "true"), t.loading === !0 && t.percentage !== void 0 && Object.assign(q, {
|
|
6650
6887
|
role: "progressbar",
|
|
6651
6888
|
"aria-valuemin": 0,
|
|
6652
6889
|
"aria-valuemax": 100,
|
|
@@ -6676,7 +6913,7 @@ let zr = null, Wr = null, Hr = null;
|
|
|
6676
6913
|
const Kr = at({
|
|
6677
6914
|
name: "QBtn",
|
|
6678
6915
|
props: {
|
|
6679
|
-
...
|
|
6916
|
+
..._y,
|
|
6680
6917
|
percentage: Number,
|
|
6681
6918
|
darkPercentage: Boolean,
|
|
6682
6919
|
onTouchstart: [Function, Array]
|
|
@@ -6692,7 +6929,7 @@ const Kr = at({
|
|
|
6692
6929
|
linkTag: k,
|
|
6693
6930
|
navigateOnClick: m,
|
|
6694
6931
|
isActionable: C
|
|
6695
|
-
} =
|
|
6932
|
+
} = by(t), b = re(null), y = re(null);
|
|
6696
6933
|
let R = null, U, q = null;
|
|
6697
6934
|
const Q = A(
|
|
6698
6935
|
() => t.label !== void 0 && t.label !== null && t.label !== ""
|
|
@@ -6839,7 +7076,7 @@ const Kr = at({
|
|
|
6839
7076
|
se
|
|
6840
7077
|
),
|
|
6841
7078
|
[[
|
|
6842
|
-
|
|
7079
|
+
od,
|
|
6843
7080
|
H.value,
|
|
6844
7081
|
void 0,
|
|
6845
7082
|
z.value
|
|
@@ -6847,7 +7084,7 @@ const Kr = at({
|
|
|
6847
7084
|
);
|
|
6848
7085
|
};
|
|
6849
7086
|
}
|
|
6850
|
-
}),
|
|
7087
|
+
}), cd = (t) => (Ef("data-v-3bcb795a"), t = t(), kf(), t), yy = { class: "buttons-container" }, wy = { class: "lt-md" }, Sy = { class: "row justify-between q-my-md q-px-md" }, xy = /* @__PURE__ */ cd(() => /* @__PURE__ */ Oe("span", { class: "text-black" }, "Atrás", -1)), Cy = { key: 1 }, Ey = /* @__PURE__ */ cd(() => /* @__PURE__ */ Oe("span", { class: "text-black" }, "Siguiente", -1)), ky = /* @__PURE__ */ vt({
|
|
6851
7088
|
__name: "NavigationButtons",
|
|
6852
7089
|
props: {
|
|
6853
7090
|
currentStep: {},
|
|
@@ -6858,7 +7095,7 @@ const Kr = at({
|
|
|
6858
7095
|
setup(t) {
|
|
6859
7096
|
const l = t, i = A(() => l.currentStep + 1);
|
|
6860
7097
|
return (u, a) => (de(), qe(pt, null, [
|
|
6861
|
-
Oe("div",
|
|
7098
|
+
Oe("div", yy, [
|
|
6862
7099
|
i.value > 1 ? (de(), lt(Kr, {
|
|
6863
7100
|
key: 0,
|
|
6864
7101
|
style: { position: "absolute", left: "25px", cursor: "pointer" },
|
|
@@ -6897,8 +7134,8 @@ const Kr = at({
|
|
|
6897
7134
|
_: 1
|
|
6898
7135
|
}, 8, ["disable"])) : Ot("", !0)
|
|
6899
7136
|
]),
|
|
6900
|
-
Oe("div",
|
|
6901
|
-
Oe("div",
|
|
7137
|
+
Oe("div", wy, [
|
|
7138
|
+
Oe("div", Sy, [
|
|
6902
7139
|
i.value > 1 && i.value < u.stepsCount ? (de(), lt(Kr, {
|
|
6903
7140
|
key: 0,
|
|
6904
7141
|
color: "info",
|
|
@@ -6908,10 +7145,10 @@ const Kr = at({
|
|
|
6908
7145
|
"no-caps": ""
|
|
6909
7146
|
}, {
|
|
6910
7147
|
default: ut(() => [
|
|
6911
|
-
|
|
7148
|
+
xy
|
|
6912
7149
|
]),
|
|
6913
7150
|
_: 1
|
|
6914
|
-
})) : (de(), qe("div",
|
|
7151
|
+
})) : (de(), qe("div", Cy)),
|
|
6915
7152
|
i.value < u.stepsCount ? (de(), lt(Kr, {
|
|
6916
7153
|
key: 2,
|
|
6917
7154
|
color: "info",
|
|
@@ -6922,7 +7159,7 @@ const Kr = at({
|
|
|
6922
7159
|
"no-caps": ""
|
|
6923
7160
|
}, {
|
|
6924
7161
|
default: ut(() => [
|
|
6925
|
-
|
|
7162
|
+
Ey
|
|
6926
7163
|
]),
|
|
6927
7164
|
_: 1
|
|
6928
7165
|
}, 8, ["disable"])) : Ot("", !0)
|
|
@@ -6930,11 +7167,11 @@ const Kr = at({
|
|
|
6930
7167
|
])
|
|
6931
7168
|
], 64));
|
|
6932
7169
|
}
|
|
6933
|
-
}),
|
|
7170
|
+
}), Ay = /* @__PURE__ */ Yn(ky, [["__scopeId", "data-v-3bcb795a"]]), Oy = at({
|
|
6934
7171
|
name: "QField",
|
|
6935
7172
|
inheritAttrs: !1,
|
|
6936
7173
|
props: {
|
|
6937
|
-
...
|
|
7174
|
+
...eo,
|
|
6938
7175
|
tag: {
|
|
6939
7176
|
type: String,
|
|
6940
7177
|
default: "label"
|
|
@@ -6946,17 +7183,17 @@ const Kr = at({
|
|
|
6946
7183
|
Ju({ tagProp: !0 })
|
|
6947
7184
|
);
|
|
6948
7185
|
}
|
|
6949
|
-
}),
|
|
7186
|
+
}), Ty = {
|
|
6950
7187
|
xs: 8,
|
|
6951
7188
|
sm: 10,
|
|
6952
7189
|
md: 14,
|
|
6953
7190
|
lg: 20,
|
|
6954
7191
|
xl: 24
|
|
6955
|
-
},
|
|
7192
|
+
}, Ry = at({
|
|
6956
7193
|
name: "QChip",
|
|
6957
7194
|
props: {
|
|
6958
|
-
...
|
|
6959
|
-
...
|
|
7195
|
+
...Xr,
|
|
7196
|
+
...Zl,
|
|
6960
7197
|
dense: Boolean,
|
|
6961
7198
|
icon: String,
|
|
6962
7199
|
iconRight: String,
|
|
@@ -6987,7 +7224,7 @@ const Kr = at({
|
|
|
6987
7224
|
},
|
|
6988
7225
|
emits: ["update:modelValue", "update:selected", "remove", "click"],
|
|
6989
7226
|
setup(t, { slots: l, emit: i }) {
|
|
6990
|
-
const { proxy: { $q: u } } = Ge(), a =
|
|
7227
|
+
const { proxy: { $q: u } } = Ge(), a = Jr(t, u), c = Xl(t, Ty), v = A(() => t.selected === !0 || t.icon !== void 0), h = A(() => t.selected === !0 ? t.iconSelected || u.iconSet.chip.selected : t.icon), x = A(() => t.iconRemove || u.iconSet.chip.remove), k = A(
|
|
6991
7228
|
() => t.disable === !1 && (t.clickable === !0 || t.selected !== null)
|
|
6992
7229
|
), m = A(() => {
|
|
6993
7230
|
const q = t.outline === !0 && t.color || t.textColor;
|
|
@@ -7024,7 +7261,7 @@ const Kr = at({
|
|
|
7024
7261
|
return q.push(
|
|
7025
7262
|
P("div", {
|
|
7026
7263
|
class: "q-chip__content col row no-wrap items-center q-anchor--skip"
|
|
7027
|
-
},
|
|
7264
|
+
}, J_(l.default, Q))
|
|
7028
7265
|
), t.iconRight && q.push(
|
|
7029
7266
|
P(zt, {
|
|
7030
7267
|
class: "q-chip__icon q-chip__icon--right",
|
|
@@ -7050,21 +7287,21 @@ const Kr = at({
|
|
|
7050
7287
|
q,
|
|
7051
7288
|
C.value.chip,
|
|
7052
7289
|
{ onClick: y, onKeyup: b }
|
|
7053
|
-
),
|
|
7290
|
+
), Df(
|
|
7054
7291
|
"div",
|
|
7055
7292
|
q,
|
|
7056
7293
|
U(),
|
|
7057
7294
|
"ripple",
|
|
7058
7295
|
t.ripple !== !1 && t.disable !== !0,
|
|
7059
|
-
() => [[
|
|
7296
|
+
() => [[od, t.ripple]]
|
|
7060
7297
|
);
|
|
7061
7298
|
};
|
|
7062
7299
|
}
|
|
7063
|
-
}),
|
|
7300
|
+
}), qy = at({
|
|
7064
7301
|
name: "QItem",
|
|
7065
7302
|
props: {
|
|
7066
|
-
...
|
|
7067
|
-
...
|
|
7303
|
+
...Xr,
|
|
7304
|
+
...fy,
|
|
7068
7305
|
tag: {
|
|
7069
7306
|
type: String,
|
|
7070
7307
|
default: "div"
|
|
@@ -7082,7 +7319,7 @@ const Kr = at({
|
|
|
7082
7319
|
},
|
|
7083
7320
|
emits: ["click", "keyup"],
|
|
7084
7321
|
setup(t, { slots: l, emit: i }) {
|
|
7085
|
-
const { proxy: { $q: u } } = Ge(), a =
|
|
7322
|
+
const { proxy: { $q: u } } = Ge(), a = Jr(t, u), { hasLink: c, linkAttrs: v, linkClass: h, linkTag: x, navigateOnClick: k } = sd(), m = re(null), C = re(null), b = A(
|
|
7086
7323
|
() => t.clickable === !0 || c.value === !0 || t.tag === "label"
|
|
7087
7324
|
), y = A(
|
|
7088
7325
|
() => t.disable !== !0 && b.value === !0
|
|
@@ -7103,7 +7340,7 @@ const Kr = at({
|
|
|
7103
7340
|
i("keyup", z);
|
|
7104
7341
|
}
|
|
7105
7342
|
function H() {
|
|
7106
|
-
const z =
|
|
7343
|
+
const z = X_(l.default, []);
|
|
7107
7344
|
return y.value === !0 && z.unshift(
|
|
7108
7345
|
P("div", { class: "q-focus-helper", tabindex: -1, ref: C })
|
|
7109
7346
|
), z;
|
|
@@ -7124,7 +7361,7 @@ const Kr = at({
|
|
|
7124
7361
|
);
|
|
7125
7362
|
};
|
|
7126
7363
|
}
|
|
7127
|
-
}),
|
|
7364
|
+
}), Ly = at({
|
|
7128
7365
|
name: "QItemSection",
|
|
7129
7366
|
props: {
|
|
7130
7367
|
avatar: Boolean,
|
|
@@ -7139,7 +7376,7 @@ const Kr = at({
|
|
|
7139
7376
|
);
|
|
7140
7377
|
return () => P("div", { class: i.value }, Dt(l.default));
|
|
7141
7378
|
}
|
|
7142
|
-
}),
|
|
7379
|
+
}), My = at({
|
|
7143
7380
|
name: "QItemLabel",
|
|
7144
7381
|
props: {
|
|
7145
7382
|
overline: Boolean,
|
|
@@ -7162,24 +7399,24 @@ const Kr = at({
|
|
|
7162
7399
|
}, Dt(l.default));
|
|
7163
7400
|
}
|
|
7164
7401
|
});
|
|
7165
|
-
function
|
|
7402
|
+
function Iy() {
|
|
7166
7403
|
if (window.getSelection !== void 0) {
|
|
7167
7404
|
const t = window.getSelection();
|
|
7168
|
-
t.empty !== void 0 ? t.empty() : t.removeAllRanges !== void 0 && (t.removeAllRanges(),
|
|
7405
|
+
t.empty !== void 0 ? t.empty() : t.removeAllRanges !== void 0 && (t.removeAllRanges(), zu.is.mobile !== !0 && t.addRange(document.createRange()));
|
|
7169
7406
|
} else document.selection !== void 0 && document.selection.empty();
|
|
7170
7407
|
}
|
|
7171
|
-
const
|
|
7408
|
+
const By = {
|
|
7172
7409
|
/* SSR does not know about Element */
|
|
7173
7410
|
target: {
|
|
7174
7411
|
type: [Boolean, String, Element],
|
|
7175
7412
|
default: !0
|
|
7176
7413
|
},
|
|
7177
7414
|
noParentEvent: Boolean
|
|
7178
|
-
},
|
|
7179
|
-
...
|
|
7415
|
+
}, Py = {
|
|
7416
|
+
...By,
|
|
7180
7417
|
contextMenu: Boolean
|
|
7181
7418
|
};
|
|
7182
|
-
function
|
|
7419
|
+
function Vy({
|
|
7183
7420
|
showing: t,
|
|
7184
7421
|
avoidEmit: l,
|
|
7185
7422
|
// required for QPopupProxy (true)
|
|
@@ -7213,7 +7450,7 @@ function By({
|
|
|
7213
7450
|
return;
|
|
7214
7451
|
a.hide(y), v.value.classList.add("non-selectable");
|
|
7215
7452
|
const R = y.target;
|
|
7216
|
-
|
|
7453
|
+
Hu(k, "anchor", [
|
|
7217
7454
|
[R, "touchmove", "mobileCleanup", "passive"],
|
|
7218
7455
|
[R, "touchend", "mobileCleanup", "passive"],
|
|
7219
7456
|
[R, "touchcancel", "mobileCleanup", "passive"],
|
|
@@ -7223,7 +7460,7 @@ function By({
|
|
|
7223
7460
|
}, 300);
|
|
7224
7461
|
},
|
|
7225
7462
|
mobileCleanup(y) {
|
|
7226
|
-
v.value.classList.remove("non-selectable"), h !== null && (clearTimeout(h), h = null), t.value === !0 && y !== void 0 &&
|
|
7463
|
+
v.value.classList.remove("non-selectable"), h !== null && (clearTimeout(h), h = null), t.value === !0 && y !== void 0 && Iy();
|
|
7227
7464
|
}
|
|
7228
7465
|
}), i = function(y = u.contextMenu) {
|
|
7229
7466
|
if (u.noParentEvent === !0 || v.value === null) return;
|
|
@@ -7236,10 +7473,10 @@ function By({
|
|
|
7236
7473
|
] : R = [
|
|
7237
7474
|
[v.value, "click", "toggle", "passive"],
|
|
7238
7475
|
[v.value, "keyup", "toggleKey", "passive"]
|
|
7239
|
-
],
|
|
7476
|
+
], Hu(k, "anchor", R);
|
|
7240
7477
|
});
|
|
7241
7478
|
function m() {
|
|
7242
|
-
|
|
7479
|
+
Qf(k, "anchor");
|
|
7243
7480
|
}
|
|
7244
7481
|
function C(y) {
|
|
7245
7482
|
for (v.value = y; v.value.classList.contains("q-anchor--skip"); )
|
|
@@ -7278,7 +7515,7 @@ function By({
|
|
|
7278
7515
|
anchorEvents: k
|
|
7279
7516
|
};
|
|
7280
7517
|
}
|
|
7281
|
-
function
|
|
7518
|
+
function $y(t, l) {
|
|
7282
7519
|
const i = re(null);
|
|
7283
7520
|
let u;
|
|
7284
7521
|
function a(h, x) {
|
|
@@ -7297,19 +7534,19 @@ function Py(t, l) {
|
|
|
7297
7534
|
changeScrollEvent: a
|
|
7298
7535
|
};
|
|
7299
7536
|
}
|
|
7300
|
-
const
|
|
7537
|
+
const fd = {
|
|
7301
7538
|
modelValue: {
|
|
7302
7539
|
type: Boolean,
|
|
7303
7540
|
default: null
|
|
7304
7541
|
},
|
|
7305
7542
|
"onUpdate:modelValue": [Function, Array]
|
|
7306
|
-
},
|
|
7543
|
+
}, dd = [
|
|
7307
7544
|
"beforeShow",
|
|
7308
7545
|
"show",
|
|
7309
7546
|
"beforeHide",
|
|
7310
7547
|
"hide"
|
|
7311
7548
|
];
|
|
7312
|
-
function
|
|
7549
|
+
function vd({
|
|
7313
7550
|
showing: t,
|
|
7314
7551
|
canShow: l,
|
|
7315
7552
|
// optional
|
|
@@ -7352,7 +7589,7 @@ function od({
|
|
|
7352
7589
|
function q(H) {
|
|
7353
7590
|
h.disable === !0 && H === !0 ? h["onUpdate:modelValue"] !== void 0 && x("update:modelValue", !1) : H === !0 !== t.value && (H === !0 ? y : U)(m);
|
|
7354
7591
|
}
|
|
7355
|
-
ke(() => h.modelValue, q), i !== void 0 &&
|
|
7592
|
+
ke(() => h.modelValue, q), i !== void 0 && zf(v) === !0 && ke(() => k.$route.fullPath, () => {
|
|
7356
7593
|
i.value === !0 && t.value === !0 && R();
|
|
7357
7594
|
}), c === !0 && Rn(() => {
|
|
7358
7595
|
q(h.modelValue);
|
|
@@ -7360,21 +7597,21 @@ function od({
|
|
|
7360
7597
|
const Q = { show: b, hide: R, toggle: C };
|
|
7361
7598
|
return Object.assign(k, Q), Q;
|
|
7362
7599
|
}
|
|
7363
|
-
const
|
|
7364
|
-
let
|
|
7365
|
-
function
|
|
7600
|
+
const Jc = {};
|
|
7601
|
+
let Fy = 1, Ny = document.body;
|
|
7602
|
+
function Dy(t, l) {
|
|
7366
7603
|
const i = document.createElement("div");
|
|
7367
|
-
if (i.id = l !== void 0 ? `q-portal--${l}--${
|
|
7368
|
-
const u =
|
|
7604
|
+
if (i.id = l !== void 0 ? `q-portal--${l}--${Fy++}` : t, Jc.globalNodes !== void 0) {
|
|
7605
|
+
const u = Jc.globalNodes.class;
|
|
7369
7606
|
u !== void 0 && (i.className = u);
|
|
7370
7607
|
}
|
|
7371
|
-
return
|
|
7608
|
+
return Ny.appendChild(i), i;
|
|
7372
7609
|
}
|
|
7373
|
-
function
|
|
7610
|
+
function zy(t) {
|
|
7374
7611
|
t.remove();
|
|
7375
7612
|
}
|
|
7376
7613
|
const Ai = [];
|
|
7377
|
-
function
|
|
7614
|
+
function Wy(t, l) {
|
|
7378
7615
|
do {
|
|
7379
7616
|
if (t.$options.name === "QMenu") {
|
|
7380
7617
|
if (t.hide(l), t.$props.separateClosePopup === !0)
|
|
@@ -7386,13 +7623,13 @@ function Dy(t, l) {
|
|
|
7386
7623
|
t = Au(t);
|
|
7387
7624
|
} while (t != null);
|
|
7388
7625
|
}
|
|
7389
|
-
const
|
|
7626
|
+
const Hy = at({
|
|
7390
7627
|
name: "QPortal",
|
|
7391
7628
|
setup(t, { slots: l }) {
|
|
7392
7629
|
return () => l.default();
|
|
7393
7630
|
}
|
|
7394
7631
|
});
|
|
7395
|
-
function
|
|
7632
|
+
function Uy(t) {
|
|
7396
7633
|
for (t = t.parent; t != null; ) {
|
|
7397
7634
|
if (t.type.name === "QGlobalDialog")
|
|
7398
7635
|
return !0;
|
|
@@ -7402,34 +7639,34 @@ function Wy(t) {
|
|
|
7402
7639
|
}
|
|
7403
7640
|
return !1;
|
|
7404
7641
|
}
|
|
7405
|
-
function
|
|
7642
|
+
function hd(t, l, i, u) {
|
|
7406
7643
|
const a = re(!1), c = re(!1);
|
|
7407
7644
|
let v = null;
|
|
7408
|
-
const h = {}, x = u === "dialog" &&
|
|
7645
|
+
const h = {}, x = u === "dialog" && Uy(t);
|
|
7409
7646
|
function k(C) {
|
|
7410
7647
|
if (C === !0) {
|
|
7411
|
-
|
|
7648
|
+
Hc(h), c.value = !0;
|
|
7412
7649
|
return;
|
|
7413
7650
|
}
|
|
7414
|
-
c.value = !1, a.value === !1 && (x === !1 && v === null && (v =
|
|
7651
|
+
c.value = !1, a.value === !1 && (x === !1 && v === null && (v = Dy(!1, u)), a.value = !0, Ai.push(t.proxy), Fb(h));
|
|
7415
7652
|
}
|
|
7416
7653
|
function m(C) {
|
|
7417
7654
|
if (c.value = !1, C !== !0) return;
|
|
7418
|
-
|
|
7655
|
+
Hc(h), a.value = !1;
|
|
7419
7656
|
const b = Ai.indexOf(t.proxy);
|
|
7420
|
-
b !== -1 && Ai.splice(b, 1), v !== null && (
|
|
7657
|
+
b !== -1 && Ai.splice(b, 1), v !== null && (zy(v), v = null);
|
|
7421
7658
|
}
|
|
7422
7659
|
return B_(() => {
|
|
7423
7660
|
m(!0);
|
|
7424
|
-
}), t.proxy.__qPortal = !0,
|
|
7661
|
+
}), t.proxy.__qPortal = !0, jl(t.proxy, "contentEl", () => l.value), {
|
|
7425
7662
|
showPortal: k,
|
|
7426
7663
|
hidePortal: m,
|
|
7427
7664
|
portalIsActive: a,
|
|
7428
7665
|
portalIsAccessible: c,
|
|
7429
|
-
renderPortal: () => x === !0 ? i() : a.value === !0 ? [P(P_, { to: v }, P(
|
|
7666
|
+
renderPortal: () => x === !0 ? i() : a.value === !0 ? [P(P_, { to: v }, P(Hy, i))] : void 0
|
|
7430
7667
|
};
|
|
7431
7668
|
}
|
|
7432
|
-
const
|
|
7669
|
+
const gd = {
|
|
7433
7670
|
transitionShow: {
|
|
7434
7671
|
type: String,
|
|
7435
7672
|
default: "fade"
|
|
@@ -7443,7 +7680,7 @@ const ad = {
|
|
|
7443
7680
|
default: 300
|
|
7444
7681
|
}
|
|
7445
7682
|
};
|
|
7446
|
-
function
|
|
7683
|
+
function md(t, l = () => {
|
|
7447
7684
|
}, i = () => {
|
|
7448
7685
|
}) {
|
|
7449
7686
|
return {
|
|
@@ -7462,7 +7699,7 @@ function sd(t, l = () => {
|
|
|
7462
7699
|
transitionStyle: A(() => `--q-transition-duration: ${t.transitionDuration}ms`)
|
|
7463
7700
|
};
|
|
7464
7701
|
}
|
|
7465
|
-
function
|
|
7702
|
+
function pd() {
|
|
7466
7703
|
let t;
|
|
7467
7704
|
const l = Ge();
|
|
7468
7705
|
function i() {
|
|
@@ -7477,31 +7714,31 @@ function cd() {
|
|
|
7477
7714
|
}
|
|
7478
7715
|
};
|
|
7479
7716
|
}
|
|
7480
|
-
const
|
|
7481
|
-
function
|
|
7482
|
-
let i =
|
|
7717
|
+
const Ky = [Element, String], Gy = [null, document, document.body, document.scrollingElement, document.documentElement];
|
|
7718
|
+
function Qy(t, l) {
|
|
7719
|
+
let i = ry(l);
|
|
7483
7720
|
if (i === void 0) {
|
|
7484
7721
|
if (t == null)
|
|
7485
7722
|
return window;
|
|
7486
7723
|
i = t.closest(".scroll,.scroll-y,.overflow-auto");
|
|
7487
7724
|
}
|
|
7488
|
-
return
|
|
7725
|
+
return Gy.includes(i) ? window : i;
|
|
7489
7726
|
}
|
|
7490
|
-
function
|
|
7727
|
+
function Yy(t) {
|
|
7491
7728
|
return t === window ? window.pageYOffset || window.scrollY || document.body.scrollTop || 0 : t.scrollTop;
|
|
7492
7729
|
}
|
|
7493
|
-
function
|
|
7730
|
+
function jy(t) {
|
|
7494
7731
|
return t === window ? window.pageXOffset || window.scrollX || document.body.scrollLeft || 0 : t.scrollLeft;
|
|
7495
7732
|
}
|
|
7496
7733
|
let Ml;
|
|
7497
|
-
function
|
|
7734
|
+
function Zy() {
|
|
7498
7735
|
if (Ml !== void 0)
|
|
7499
7736
|
return Ml;
|
|
7500
7737
|
const t = document.createElement("p"), l = document.createElement("div");
|
|
7501
|
-
|
|
7738
|
+
Ku(t, {
|
|
7502
7739
|
width: "100%",
|
|
7503
7740
|
height: "200px"
|
|
7504
|
-
}),
|
|
7741
|
+
}), Ku(l, {
|
|
7505
7742
|
position: "absolute",
|
|
7506
7743
|
top: "0px",
|
|
7507
7744
|
left: "0px",
|
|
@@ -7515,40 +7752,40 @@ function Yy() {
|
|
|
7515
7752
|
let u = t.offsetWidth;
|
|
7516
7753
|
return i === u && (u = l.clientWidth), l.remove(), Ml = i - u, Ml;
|
|
7517
7754
|
}
|
|
7518
|
-
function
|
|
7755
|
+
function Xy(t, l = !0) {
|
|
7519
7756
|
return !t || t.nodeType !== Node.ELEMENT_NODE ? !1 : l ? t.scrollHeight > t.clientHeight && (t.classList.contains("scroll") || t.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(t)["overflow-y"])) : t.scrollWidth > t.clientWidth && (t.classList.contains("scroll") || t.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(t)["overflow-x"]));
|
|
7520
7757
|
}
|
|
7521
7758
|
const mr = [];
|
|
7522
|
-
let
|
|
7523
|
-
function
|
|
7524
|
-
|
|
7759
|
+
let jr;
|
|
7760
|
+
function Jy(t) {
|
|
7761
|
+
jr = t.keyCode === 27;
|
|
7525
7762
|
}
|
|
7526
|
-
function
|
|
7527
|
-
|
|
7763
|
+
function ew() {
|
|
7764
|
+
jr === !0 && (jr = !1);
|
|
7528
7765
|
}
|
|
7529
|
-
function
|
|
7530
|
-
|
|
7766
|
+
function tw(t) {
|
|
7767
|
+
jr === !0 && (jr = !1, wr(t, 27) === !0 && mr[mr.length - 1](t));
|
|
7531
7768
|
}
|
|
7532
|
-
function
|
|
7533
|
-
window[t]("keydown",
|
|
7769
|
+
function _d(t) {
|
|
7770
|
+
window[t]("keydown", Jy), window[t]("blur", ew), window[t]("keyup", tw), jr = !1;
|
|
7534
7771
|
}
|
|
7535
|
-
function
|
|
7536
|
-
Nt.is.desktop === !0 && (mr.push(t), mr.length === 1 &&
|
|
7772
|
+
function bd(t) {
|
|
7773
|
+
Nt.is.desktop === !0 && (mr.push(t), mr.length === 1 && _d("addEventListener"));
|
|
7537
7774
|
}
|
|
7538
7775
|
function Wl(t) {
|
|
7539
7776
|
const l = mr.indexOf(t);
|
|
7540
|
-
l !== -1 && (mr.splice(l, 1), mr.length === 0 &&
|
|
7777
|
+
l !== -1 && (mr.splice(l, 1), mr.length === 0 && _d("removeEventListener"));
|
|
7541
7778
|
}
|
|
7542
7779
|
const pr = [];
|
|
7543
|
-
function
|
|
7780
|
+
function yd(t) {
|
|
7544
7781
|
pr[pr.length - 1](t);
|
|
7545
7782
|
}
|
|
7546
|
-
function
|
|
7547
|
-
Nt.is.desktop === !0 && (pr.push(t), pr.length === 1 && document.body.addEventListener("focusin",
|
|
7783
|
+
function wd(t) {
|
|
7784
|
+
Nt.is.desktop === !0 && (pr.push(t), pr.length === 1 && document.body.addEventListener("focusin", yd));
|
|
7548
7785
|
}
|
|
7549
|
-
function
|
|
7786
|
+
function Gu(t) {
|
|
7550
7787
|
const l = pr.indexOf(t);
|
|
7551
|
-
l !== -1 && (pr.splice(l, 1), pr.length === 0 && document.body.removeEventListener("focusin",
|
|
7788
|
+
l !== -1 && (pr.splice(l, 1), pr.length === 0 && document.body.removeEventListener("focusin", yd));
|
|
7552
7789
|
}
|
|
7553
7790
|
const { notPassiveCapture: Hl } = At, _r = [];
|
|
7554
7791
|
function Ul(t) {
|
|
@@ -7576,38 +7813,38 @@ function Ul(t) {
|
|
|
7576
7813
|
return;
|
|
7577
7814
|
}
|
|
7578
7815
|
}
|
|
7579
|
-
function
|
|
7816
|
+
function nw(t) {
|
|
7580
7817
|
_r.push(t), _r.length === 1 && (document.addEventListener("mousedown", Ul, Hl), document.addEventListener("touchstart", Ul, Hl));
|
|
7581
7818
|
}
|
|
7582
|
-
function
|
|
7819
|
+
function ef(t) {
|
|
7583
7820
|
const l = _r.findIndex((i) => i === t);
|
|
7584
7821
|
l !== -1 && (_r.splice(l, 1), _r.length === 0 && (document.removeEventListener("mousedown", Ul, Hl), document.removeEventListener("touchstart", Ul, Hl)));
|
|
7585
7822
|
}
|
|
7586
|
-
let
|
|
7587
|
-
function
|
|
7823
|
+
let tf, nf;
|
|
7824
|
+
function rf(t) {
|
|
7588
7825
|
const l = t.split(" ");
|
|
7589
7826
|
return l.length !== 2 ? !1 : ["top", "center", "bottom"].includes(l[0]) !== !0 ? (console.error("Anchor/Self position must start with one of top/center/bottom"), !1) : ["left", "middle", "right", "start", "end"].includes(l[1]) !== !0 ? (console.error("Anchor/Self position must end with one of left/middle/right/start/end"), !1) : !0;
|
|
7590
7827
|
}
|
|
7591
|
-
function
|
|
7828
|
+
function rw(t) {
|
|
7592
7829
|
return t ? !(t.length !== 2 || typeof t[0] != "number" || typeof t[1] != "number") : !0;
|
|
7593
7830
|
}
|
|
7594
|
-
const
|
|
7831
|
+
const Qu = {
|
|
7595
7832
|
"start#ltr": "left",
|
|
7596
7833
|
"start#rtl": "right",
|
|
7597
7834
|
"end#ltr": "right",
|
|
7598
7835
|
"end#rtl": "left"
|
|
7599
7836
|
};
|
|
7600
7837
|
["left", "middle", "right"].forEach((t) => {
|
|
7601
|
-
|
|
7838
|
+
Qu[`${t}#ltr`] = t, Qu[`${t}#rtl`] = t;
|
|
7602
7839
|
});
|
|
7603
|
-
function
|
|
7840
|
+
function lf(t, l) {
|
|
7604
7841
|
const i = t.split(" ");
|
|
7605
7842
|
return {
|
|
7606
7843
|
vertical: i[0],
|
|
7607
|
-
horizontal:
|
|
7844
|
+
horizontal: Qu[`${i[1]}#${l === !0 ? "rtl" : "ltr"}`]
|
|
7608
7845
|
};
|
|
7609
7846
|
}
|
|
7610
|
-
function
|
|
7847
|
+
function iw(t, l) {
|
|
7611
7848
|
let { top: i, left: u, right: a, bottom: c, width: v, height: h } = t.getBoundingClientRect();
|
|
7612
7849
|
return l !== void 0 && (i -= l[1], u -= l[0], c += l[1], a += l[0], v += l[0], h += l[1]), {
|
|
7613
7850
|
top: i,
|
|
@@ -7620,7 +7857,7 @@ function nw(t, l) {
|
|
|
7620
7857
|
center: i + (c - i) / 2
|
|
7621
7858
|
};
|
|
7622
7859
|
}
|
|
7623
|
-
function
|
|
7860
|
+
function lw(t, l, i) {
|
|
7624
7861
|
let { top: u, left: a } = t.getBoundingClientRect();
|
|
7625
7862
|
return u += l.top, a += l.left, i !== void 0 && (u += i[1], a += i[0]), {
|
|
7626
7863
|
top: u,
|
|
@@ -7633,7 +7870,7 @@ function rw(t, l, i) {
|
|
|
7633
7870
|
center: u
|
|
7634
7871
|
};
|
|
7635
7872
|
}
|
|
7636
|
-
function
|
|
7873
|
+
function ow(t, l) {
|
|
7637
7874
|
return {
|
|
7638
7875
|
top: 0,
|
|
7639
7876
|
center: l / 2,
|
|
@@ -7643,18 +7880,18 @@ function iw(t, l) {
|
|
|
7643
7880
|
right: t
|
|
7644
7881
|
};
|
|
7645
7882
|
}
|
|
7646
|
-
function
|
|
7883
|
+
function of(t, l, i, u) {
|
|
7647
7884
|
return {
|
|
7648
7885
|
top: t[i.vertical] - l[u.vertical],
|
|
7649
7886
|
left: t[i.horizontal] - l[u.horizontal]
|
|
7650
7887
|
};
|
|
7651
7888
|
}
|
|
7652
|
-
function
|
|
7889
|
+
function Sd(t, l = 0) {
|
|
7653
7890
|
if (t.targetEl === null || t.anchorEl === null || l > 5)
|
|
7654
7891
|
return;
|
|
7655
7892
|
if (t.targetEl.offsetHeight === 0 || t.targetEl.offsetWidth === 0) {
|
|
7656
7893
|
setTimeout(() => {
|
|
7657
|
-
|
|
7894
|
+
Sd(t, l + 1);
|
|
7658
7895
|
}, 10);
|
|
7659
7896
|
return;
|
|
7660
7897
|
}
|
|
@@ -7672,9 +7909,9 @@ function gd(t, l = 0) {
|
|
|
7672
7909
|
} = t;
|
|
7673
7910
|
if (Nt.is.ios === !0 && window.visualViewport !== void 0) {
|
|
7674
7911
|
const Z = document.body.style, { offsetLeft: V, offsetTop: ae } = window.visualViewport;
|
|
7675
|
-
V !==
|
|
7912
|
+
V !== tf && (Z.setProperty("--q-pe-left", V + "px"), tf = V), ae !== nf && (Z.setProperty("--q-pe-top", ae + "px"), nf = ae);
|
|
7676
7913
|
}
|
|
7677
|
-
const { scrollLeft: b, scrollTop: y } = i, R = h === void 0 ?
|
|
7914
|
+
const { scrollLeft: b, scrollTop: y } = i, R = h === void 0 ? iw(a, k === !0 ? [0, 0] : u) : lw(a, h, u);
|
|
7678
7915
|
Object.assign(i.style, {
|
|
7679
7916
|
top: 0,
|
|
7680
7917
|
left: 0,
|
|
@@ -7687,8 +7924,8 @@ function gd(t, l = 0) {
|
|
|
7687
7924
|
const { offsetWidth: U, offsetHeight: q } = i, { elWidth: Q, elHeight: H } = x === !0 || k === !0 ? { elWidth: Math.max(R.width, U), elHeight: k === !0 ? Math.max(R.height, q) : q } : { elWidth: U, elHeight: q };
|
|
7688
7925
|
let z = { maxWidth: C, maxHeight: m };
|
|
7689
7926
|
(x === !0 || k === !0) && (z.minWidth = R.width + "px", k === !0 && (z.minHeight = R.height + "px")), Object.assign(i.style, z);
|
|
7690
|
-
const j =
|
|
7691
|
-
let Y =
|
|
7927
|
+
const j = ow(Q, H);
|
|
7928
|
+
let Y = of(R, j, c, v);
|
|
7692
7929
|
if (h === void 0 || u === void 0)
|
|
7693
7930
|
Lu(Y, R, j, c, v);
|
|
7694
7931
|
else {
|
|
@@ -7705,7 +7942,7 @@ function gd(t, l = 0) {
|
|
|
7705
7942
|
const $ = 2 * u[0];
|
|
7706
7943
|
R.middle = R.left -= $, R.right -= $ + 2;
|
|
7707
7944
|
}
|
|
7708
|
-
ae === !0 && (Y =
|
|
7945
|
+
ae === !0 && (Y = of(R, j, c, v), Lu(Y, R, j, c, v));
|
|
7709
7946
|
}
|
|
7710
7947
|
z = {
|
|
7711
7948
|
top: Y.top + "px",
|
|
@@ -7713,7 +7950,7 @@ function gd(t, l = 0) {
|
|
|
7713
7950
|
}, Y.maxHeight !== void 0 && (z.maxHeight = Y.maxHeight + "px", R.height > Y.maxHeight && (z.minHeight = z.maxHeight)), Y.maxWidth !== void 0 && (z.maxWidth = Y.maxWidth + "px", R.width > Y.maxWidth && (z.minWidth = z.maxWidth)), Object.assign(i.style, z), i.scrollTop !== y && (i.scrollTop = y), i.scrollLeft !== b && (i.scrollLeft = b);
|
|
7714
7951
|
}
|
|
7715
7952
|
function Lu(t, l, i, u, a) {
|
|
7716
|
-
const c = i.bottom, v = i.right, h =
|
|
7953
|
+
const c = i.bottom, v = i.right, h = Zy(), x = window.innerHeight - h, k = document.body.clientWidth;
|
|
7717
7954
|
if (t.top < 0 || t.top + c > x)
|
|
7718
7955
|
if (a.vertical === "center")
|
|
7719
7956
|
t.top = l[u.vertical] > x / 2 ? Math.max(0, x - c) : 0, t.maxHeight = Math.min(c, x);
|
|
@@ -7743,14 +7980,14 @@ function Lu(t, l, i, u, a) {
|
|
|
7743
7980
|
u.horizontal === "middle" ? l.middle : u.horizontal === a.horizontal ? l.left : l.right
|
|
7744
7981
|
), t.maxWidth = Math.min(v, k - t.left);
|
|
7745
7982
|
}
|
|
7746
|
-
const
|
|
7983
|
+
const uw = at({
|
|
7747
7984
|
name: "QMenu",
|
|
7748
7985
|
inheritAttrs: !1,
|
|
7749
7986
|
props: {
|
|
7750
|
-
...
|
|
7751
|
-
...
|
|
7752
|
-
...
|
|
7753
|
-
...
|
|
7987
|
+
...Py,
|
|
7988
|
+
...fd,
|
|
7989
|
+
...Xr,
|
|
7990
|
+
...gd,
|
|
7754
7991
|
persistent: Boolean,
|
|
7755
7992
|
autoClose: Boolean,
|
|
7756
7993
|
separateClosePopup: Boolean,
|
|
@@ -7762,17 +7999,17 @@ const lw = at({
|
|
|
7762
7999
|
square: Boolean,
|
|
7763
8000
|
anchor: {
|
|
7764
8001
|
type: String,
|
|
7765
|
-
validator:
|
|
8002
|
+
validator: rf
|
|
7766
8003
|
},
|
|
7767
8004
|
self: {
|
|
7768
8005
|
type: String,
|
|
7769
|
-
validator:
|
|
8006
|
+
validator: rf
|
|
7770
8007
|
},
|
|
7771
8008
|
offset: {
|
|
7772
8009
|
type: Array,
|
|
7773
|
-
validator:
|
|
8010
|
+
validator: rw
|
|
7774
8011
|
},
|
|
7775
|
-
scrollTarget:
|
|
8012
|
+
scrollTarget: Ky,
|
|
7776
8013
|
touchPosition: Boolean,
|
|
7777
8014
|
maxHeight: {
|
|
7778
8015
|
type: String,
|
|
@@ -7784,7 +8021,7 @@ const lw = at({
|
|
|
7784
8021
|
}
|
|
7785
8022
|
},
|
|
7786
8023
|
emits: [
|
|
7787
|
-
...
|
|
8024
|
+
...dd,
|
|
7788
8025
|
"click",
|
|
7789
8026
|
"escapeKey"
|
|
7790
8027
|
],
|
|
@@ -7792,14 +8029,14 @@ const lw = at({
|
|
|
7792
8029
|
let a = null, c, v, h;
|
|
7793
8030
|
const x = Ge(), { proxy: k } = x, { $q: m } = k, C = re(null), b = re(!1), y = A(
|
|
7794
8031
|
() => t.persistent !== !0 && t.noRouteDismiss !== !0
|
|
7795
|
-
), R =
|
|
8032
|
+
), R = Jr(t, m), { registerTick: U, removeTick: q } = pd(), { registerTimeout: Q } = Dl(), { transitionProps: H, transitionStyle: z } = md(t), { localScrollTarget: j, changeScrollEvent: Y, unconfigureScrollTarget: Z } = $y(t, ue), { anchorEl: V, canShow: ae } = Vy({ showing: b }), { hide: $ } = vd({
|
|
7796
8033
|
showing: b,
|
|
7797
8034
|
canShow: ae,
|
|
7798
8035
|
handleShow: _e,
|
|
7799
8036
|
handleHide: L,
|
|
7800
8037
|
hideOnRouteChange: y,
|
|
7801
8038
|
processOnMount: !0
|
|
7802
|
-
}), { showPortal: O, hidePortal: I, renderPortal: w } =
|
|
8039
|
+
}), { showPortal: O, hidePortal: I, renderPortal: w } = hd(x, C, Le, "menu"), X = {
|
|
7803
8040
|
anchorEl: V,
|
|
7804
8041
|
innerRef: C,
|
|
7805
8042
|
onClickOutside(J) {
|
|
@@ -7808,27 +8045,27 @@ const lw = at({
|
|
|
7808
8045
|
(J.type === "touchstart" || J.target.classList.contains("q-dialog__backdrop")) && it(J), !0;
|
|
7809
8046
|
}
|
|
7810
8047
|
}, D = A(
|
|
7811
|
-
() =>
|
|
8048
|
+
() => lf(
|
|
7812
8049
|
t.anchor || (t.cover === !0 ? "center middle" : "bottom start"),
|
|
7813
8050
|
m.lang.rtl
|
|
7814
8051
|
)
|
|
7815
|
-
), se = A(() => t.cover === !0 ? D.value :
|
|
8052
|
+
), se = A(() => t.cover === !0 ? D.value : lf(t.self || "top start", m.lang.rtl)), fe = A(
|
|
7816
8053
|
() => (t.square === !0 ? " q-menu--square" : "") + (R.value === !0 ? " q-menu--dark q-dark" : "")
|
|
7817
8054
|
), ve = A(() => t.autoClose === !0 ? { onClick: ye } : {}), K = A(
|
|
7818
8055
|
() => b.value === !0 && t.persistent !== !0
|
|
7819
8056
|
);
|
|
7820
8057
|
ke(K, (J) => {
|
|
7821
|
-
J === !0 ? (
|
|
8058
|
+
J === !0 ? (bd(G), nw(X)) : (Wl(G), ef(X));
|
|
7822
8059
|
});
|
|
7823
8060
|
function oe() {
|
|
7824
|
-
|
|
8061
|
+
Jl(() => {
|
|
7825
8062
|
let J = C.value;
|
|
7826
8063
|
J && J.contains(document.activeElement) !== !0 && (J = J.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || J.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || J.querySelector("[autofocus], [data-autofocus]") || J, J.focus({ preventScroll: !0 }));
|
|
7827
8064
|
});
|
|
7828
8065
|
}
|
|
7829
8066
|
function _e(J) {
|
|
7830
|
-
if (a = t.noRefocus === !1 ? document.activeElement : null,
|
|
7831
|
-
const He =
|
|
8067
|
+
if (a = t.noRefocus === !1 ? document.activeElement : null, wd(we), O(), ue(), c = void 0, J !== void 0 && (t.touchPosition || t.contextMenu)) {
|
|
8068
|
+
const He = Gf(J);
|
|
7832
8069
|
if (He.left !== void 0) {
|
|
7833
8070
|
const { top: _t, left: Jt } = V.value.getBoundingClientRect();
|
|
7834
8071
|
c = { left: He.left - Jt, top: He.top - _t };
|
|
@@ -7850,22 +8087,22 @@ const lw = at({
|
|
|
7850
8087
|
}, t.transitionDuration);
|
|
7851
8088
|
}
|
|
7852
8089
|
function T(J) {
|
|
7853
|
-
c = void 0, v !== void 0 && (v(), v = void 0), (J === !0 || b.value === !0) && (
|
|
8090
|
+
c = void 0, v !== void 0 && (v(), v = void 0), (J === !0 || b.value === !0) && (Gu(we), Z(), ef(X), Wl(G)), J !== !0 && (a = null);
|
|
7854
8091
|
}
|
|
7855
8092
|
function ue() {
|
|
7856
|
-
(V.value !== null || t.scrollTarget !== void 0) && (j.value =
|
|
8093
|
+
(V.value !== null || t.scrollTarget !== void 0) && (j.value = Qy(V.value, t.scrollTarget), Y(j.value, ie));
|
|
7857
8094
|
}
|
|
7858
8095
|
function ye(J) {
|
|
7859
|
-
h !== !0 ? (
|
|
8096
|
+
h !== !0 ? (Wy(k, J), i("click", J)) : h = !1;
|
|
7860
8097
|
}
|
|
7861
8098
|
function we(J) {
|
|
7862
|
-
K.value === !0 && t.noFocus !== !0 &&
|
|
8099
|
+
K.value === !0 && t.noFocus !== !0 && ld(C.value, J.target) !== !0 && oe();
|
|
7863
8100
|
}
|
|
7864
8101
|
function G(J) {
|
|
7865
8102
|
i("escapeKey"), $(J);
|
|
7866
8103
|
}
|
|
7867
8104
|
function ie() {
|
|
7868
|
-
|
|
8105
|
+
Sd({
|
|
7869
8106
|
targetEl: C.value,
|
|
7870
8107
|
offset: t.offset,
|
|
7871
8108
|
anchorEl: V.value,
|
|
@@ -7902,7 +8139,7 @@ const lw = at({
|
|
|
7902
8139
|
return qt(T), Object.assign(k, { focus: oe, updatePosition: ie }), w;
|
|
7903
8140
|
}
|
|
7904
8141
|
});
|
|
7905
|
-
function
|
|
8142
|
+
function aw(t, l, i) {
|
|
7906
8143
|
function u() {
|
|
7907
8144
|
}
|
|
7908
8145
|
return qt(() => {
|
|
@@ -7913,22 +8150,22 @@ function ow(t, l, i) {
|
|
|
7913
8150
|
}
|
|
7914
8151
|
};
|
|
7915
8152
|
}
|
|
7916
|
-
let wi = 0, Mu, Iu, Ci, Bu = !1,
|
|
7917
|
-
function
|
|
7918
|
-
|
|
8153
|
+
let wi = 0, Mu, Iu, Ci, Bu = !1, uf, af, sf, cr = null;
|
|
8154
|
+
function sw(t) {
|
|
8155
|
+
cw(t) && it(t);
|
|
7919
8156
|
}
|
|
7920
|
-
function
|
|
8157
|
+
function cw(t) {
|
|
7921
8158
|
if (t.target === document.body || t.target.classList.contains("q-layout__backdrop"))
|
|
7922
8159
|
return !0;
|
|
7923
|
-
const l =
|
|
8160
|
+
const l = Eb(t), i = t.shiftKey && !t.deltaX, u = !i && Math.abs(t.deltaX) <= Math.abs(t.deltaY), a = i || u ? t.deltaY : t.deltaX;
|
|
7924
8161
|
for (let c = 0; c < l.length; c++) {
|
|
7925
8162
|
const v = l[c];
|
|
7926
|
-
if (
|
|
8163
|
+
if (Xy(v, u))
|
|
7927
8164
|
return u ? a < 0 && v.scrollTop === 0 ? !0 : a > 0 && v.scrollTop + v.clientHeight === v.scrollHeight : a < 0 && v.scrollLeft === 0 ? !0 : a > 0 && v.scrollLeft + v.clientWidth === v.scrollWidth;
|
|
7928
8165
|
}
|
|
7929
8166
|
return !0;
|
|
7930
8167
|
}
|
|
7931
|
-
function
|
|
8168
|
+
function cf(t) {
|
|
7932
8169
|
t.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
|
|
7933
8170
|
}
|
|
7934
8171
|
function Il(t) {
|
|
@@ -7938,15 +8175,15 @@ function Il(t) {
|
|
|
7938
8175
|
(Ci === void 0 || l !== window.innerHeight) && (Ci = i - l, document.scrollingElement.scrollTop = u), u > Ci && (document.scrollingElement.scrollTop -= Math.ceil((u - Ci) / 8));
|
|
7939
8176
|
}));
|
|
7940
8177
|
}
|
|
7941
|
-
function
|
|
8178
|
+
function ff(t) {
|
|
7942
8179
|
const l = document.body, i = window.visualViewport !== void 0;
|
|
7943
8180
|
if (t === "add") {
|
|
7944
8181
|
const { overflowY: u, overflowX: a } = window.getComputedStyle(l);
|
|
7945
|
-
Mu =
|
|
8182
|
+
Mu = jy(window), Iu = Yy(window), uf = l.style.left, af = l.style.top, sf = window.location.href, l.style.left = `-${Mu}px`, l.style.top = `-${Iu}px`, a !== "hidden" && (a === "scroll" || l.scrollWidth > window.innerWidth) && l.classList.add("q-body--force-scrollbar-x"), u !== "hidden" && (u === "scroll" || l.scrollHeight > window.innerHeight) && l.classList.add("q-body--force-scrollbar-y"), l.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, Nt.is.ios === !0 && (i === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", Il, At.passiveCapture), window.visualViewport.addEventListener("scroll", Il, At.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", cf, At.passiveCapture));
|
|
7946
8183
|
}
|
|
7947
|
-
Nt.is.desktop === !0 && Nt.is.mac === !0 && window[`${t}EventListener`]("wheel",
|
|
8184
|
+
Nt.is.desktop === !0 && Nt.is.mac === !0 && window[`${t}EventListener`]("wheel", sw, At.notPassive), t === "remove" && (Nt.is.ios === !0 && (i === !0 ? (window.visualViewport.removeEventListener("resize", Il, At.passiveCapture), window.visualViewport.removeEventListener("scroll", Il, At.passiveCapture)) : window.removeEventListener("scroll", cf, At.passiveCapture)), l.classList.remove("q-body--prevent-scroll"), l.classList.remove("q-body--force-scrollbar-x"), l.classList.remove("q-body--force-scrollbar-y"), document.qScrollPrevented = !1, l.style.left = uf, l.style.top = af, window.location.href === sf && window.scrollTo(Mu, Iu), Ci = void 0);
|
|
7948
8185
|
}
|
|
7949
|
-
function
|
|
8186
|
+
function fw(t) {
|
|
7950
8187
|
let l = "add";
|
|
7951
8188
|
if (t === !0) {
|
|
7952
8189
|
if (wi++, cr !== null) {
|
|
@@ -7960,40 +8197,40 @@ function sw(t) {
|
|
|
7960
8197
|
return;
|
|
7961
8198
|
if (l = "remove", Nt.is.ios === !0 && Nt.is.nativeMobile === !0) {
|
|
7962
8199
|
cr !== null && clearTimeout(cr), cr = setTimeout(() => {
|
|
7963
|
-
|
|
8200
|
+
ff(l), cr = null;
|
|
7964
8201
|
}, 100);
|
|
7965
8202
|
return;
|
|
7966
8203
|
}
|
|
7967
8204
|
}
|
|
7968
|
-
|
|
8205
|
+
ff(l);
|
|
7969
8206
|
}
|
|
7970
|
-
function
|
|
8207
|
+
function dw() {
|
|
7971
8208
|
let t;
|
|
7972
8209
|
return {
|
|
7973
8210
|
preventBodyScroll(l) {
|
|
7974
|
-
l !== t && (t !== void 0 || l === !0) && (t = l,
|
|
8211
|
+
l !== t && (t !== void 0 || l === !0) && (t = l, fw(l));
|
|
7975
8212
|
}
|
|
7976
8213
|
};
|
|
7977
8214
|
}
|
|
7978
8215
|
let Bl = 0;
|
|
7979
|
-
const
|
|
8216
|
+
const vw = {
|
|
7980
8217
|
standard: "fixed-full flex-center",
|
|
7981
8218
|
top: "fixed-top justify-center",
|
|
7982
8219
|
bottom: "fixed-bottom justify-center",
|
|
7983
8220
|
right: "fixed-right items-center",
|
|
7984
8221
|
left: "fixed-left items-center"
|
|
7985
|
-
},
|
|
8222
|
+
}, df = {
|
|
7986
8223
|
standard: ["scale", "scale"],
|
|
7987
8224
|
top: ["slide-down", "slide-up"],
|
|
7988
8225
|
bottom: ["slide-up", "slide-down"],
|
|
7989
8226
|
right: ["slide-left", "slide-right"],
|
|
7990
8227
|
left: ["slide-right", "slide-left"]
|
|
7991
|
-
},
|
|
8228
|
+
}, hw = at({
|
|
7992
8229
|
name: "QDialog",
|
|
7993
8230
|
inheritAttrs: !1,
|
|
7994
8231
|
props: {
|
|
7995
|
-
...
|
|
7996
|
-
...
|
|
8232
|
+
...fd,
|
|
8233
|
+
...gd,
|
|
7997
8234
|
transitionShow: String,
|
|
7998
8235
|
// override useTransitionProps
|
|
7999
8236
|
transitionHide: String,
|
|
@@ -8020,7 +8257,7 @@ const fw = {
|
|
|
8020
8257
|
}
|
|
8021
8258
|
},
|
|
8022
8259
|
emits: [
|
|
8023
|
-
...
|
|
8260
|
+
...dd,
|
|
8024
8261
|
"shake",
|
|
8025
8262
|
"click",
|
|
8026
8263
|
"escapeKey"
|
|
@@ -8030,23 +8267,23 @@ const fw = {
|
|
|
8030
8267
|
let x = null, k = null, m, C;
|
|
8031
8268
|
const b = A(
|
|
8032
8269
|
() => t.persistent !== !0 && t.noRouteDismiss !== !0 && t.seamless !== !0
|
|
8033
|
-
), { preventBodyScroll: y } =
|
|
8270
|
+
), { preventBodyScroll: y } = dw(), { registerTimeout: R } = Dl(), { registerTick: U, removeTick: q } = pd(), { transitionProps: Q, transitionStyle: H } = md(
|
|
8034
8271
|
t,
|
|
8035
|
-
() =>
|
|
8036
|
-
() =>
|
|
8037
|
-
), z = A(() => H.value + (t.backdropFilter !== void 0 ? `;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}` : "")), { showPortal: j, hidePortal: Y, portalIsAccessible: Z, renderPortal: V } =
|
|
8272
|
+
() => df[t.position][0],
|
|
8273
|
+
() => df[t.position][1]
|
|
8274
|
+
), z = A(() => H.value + (t.backdropFilter !== void 0 ? `;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}` : "")), { showPortal: j, hidePortal: Y, portalIsAccessible: Z, renderPortal: V } = hd(
|
|
8038
8275
|
a,
|
|
8039
8276
|
c,
|
|
8040
8277
|
we,
|
|
8041
8278
|
"dialog"
|
|
8042
|
-
), { hide: ae } =
|
|
8279
|
+
), { hide: ae } = vd({
|
|
8043
8280
|
showing: v,
|
|
8044
8281
|
hideOnRouteChange: b,
|
|
8045
8282
|
handleShow: se,
|
|
8046
8283
|
handleHide: fe,
|
|
8047
8284
|
processOnMount: !0
|
|
8048
|
-
}), { addToHistory: $, removeFromHistory: O } =
|
|
8049
|
-
() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${t.position} ${
|
|
8285
|
+
}), { addToHistory: $, removeFromHistory: O } = aw(v), I = A(
|
|
8286
|
+
() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${t.position} ${vw[t.position]}` + (h.value === !0 ? " q-dialog__inner--animating" : "") + (t.fullWidth === !0 ? " q-dialog__inner--fullwidth" : "") + (t.fullHeight === !0 ? " q-dialog__inner--fullheight" : "") + (t.square === !0 ? " q-dialog__inner--square" : "")
|
|
8050
8287
|
), w = A(() => v.value === !0 && t.seamless !== !0), X = A(() => t.autoClose === !0 ? { onClick: T } : {}), D = A(() => [
|
|
8051
8288
|
`q-dialog fullscreen no-pointer-events q-dialog--${w.value === !0 ? "modal" : "seamless"}`,
|
|
8052
8289
|
u.class
|
|
@@ -8054,7 +8291,7 @@ const fw = {
|
|
|
8054
8291
|
ke(() => t.maximized, (G) => {
|
|
8055
8292
|
v.value === !0 && L(G);
|
|
8056
8293
|
}), ke(w, (G) => {
|
|
8057
|
-
y(G), G === !0 ? (
|
|
8294
|
+
y(G), G === !0 ? (wd(ye), bd(oe)) : (Gu(ye), Wl(oe));
|
|
8058
8295
|
});
|
|
8059
8296
|
function se(G) {
|
|
8060
8297
|
$(), k = t.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, L(t.maximized), j(), h.value = !0, t.noFocus !== !0 ? (document.activeElement !== null && document.activeElement.blur(), U(ve)) : q(), R(() => {
|
|
@@ -8077,7 +8314,7 @@ const fw = {
|
|
|
8077
8314
|
}, t.transitionDuration);
|
|
8078
8315
|
}
|
|
8079
8316
|
function ve(G) {
|
|
8080
|
-
|
|
8317
|
+
Jl(() => {
|
|
8081
8318
|
let ie = c.value;
|
|
8082
8319
|
if (ie !== null) {
|
|
8083
8320
|
if (G !== void 0) {
|
|
@@ -8102,7 +8339,7 @@ const fw = {
|
|
|
8102
8339
|
t.seamless !== !0 && (t.persistent === !0 || t.noEscDismiss === !0 ? t.maximized !== !0 && t.noShake !== !0 && K() : (i("escapeKey"), ae()));
|
|
8103
8340
|
}
|
|
8104
8341
|
function _e(G) {
|
|
8105
|
-
x !== null && (clearTimeout(x), x = null), (G === !0 || v.value === !0) && (L(!1), t.seamless !== !0 && (y(!1),
|
|
8342
|
+
x !== null && (clearTimeout(x), x = null), (G === !0 || v.value === !0) && (L(!1), t.seamless !== !0 && (y(!1), Gu(ye), Wl(oe))), G !== !0 && (k = null);
|
|
8106
8343
|
}
|
|
8107
8344
|
function L(G) {
|
|
8108
8345
|
G === !0 ? m !== !0 && (Bl < 1 && document.body.classList.add("q-body--dialog"), Bl++, m = !0) : m === !0 && (Bl < 2 && document.body.classList.remove("q-body--dialog"), Bl--, m = !1);
|
|
@@ -8114,7 +8351,7 @@ const fw = {
|
|
|
8114
8351
|
t.persistent !== !0 && t.noBackdropDismiss !== !0 ? ae(G) : t.noShake !== !0 && K();
|
|
8115
8352
|
}
|
|
8116
8353
|
function ye(G) {
|
|
8117
|
-
t.allowFocusOutside !== !0 && Z.value === !0 &&
|
|
8354
|
+
t.allowFocusOutside !== !0 && Z.value === !0 && ld(c.value, G.target) !== !0 && ve('[tabindex]:not([tabindex="-1"])');
|
|
8118
8355
|
}
|
|
8119
8356
|
Object.assign(a.proxy, {
|
|
8120
8357
|
// expose public methods
|
|
@@ -8172,20 +8409,20 @@ let Kl = !1;
|
|
|
8172
8409
|
height: "1px"
|
|
8173
8410
|
}), document.body.appendChild(t), t.appendChild(l), t.scrollLeft = -1e3, Kl = t.scrollLeft >= 0, t.remove();
|
|
8174
8411
|
}
|
|
8175
|
-
const an = 1e3,
|
|
8412
|
+
const an = 1e3, gw = [
|
|
8176
8413
|
"start",
|
|
8177
8414
|
"center",
|
|
8178
8415
|
"end",
|
|
8179
8416
|
"start-force",
|
|
8180
8417
|
"center-force",
|
|
8181
8418
|
"end-force"
|
|
8182
|
-
],
|
|
8419
|
+
], xd = Array.prototype.filter, mw = window.getComputedStyle(document.body).overflowAnchor === void 0 ? Cb : function(t, l) {
|
|
8183
8420
|
t !== null && (t._qOverflowAnimationFrame !== void 0 && cancelAnimationFrame(t._qOverflowAnimationFrame), t._qOverflowAnimationFrame = requestAnimationFrame(() => {
|
|
8184
8421
|
if (t === null)
|
|
8185
8422
|
return;
|
|
8186
8423
|
t._qOverflowAnimationFrame = void 0;
|
|
8187
8424
|
const i = t.children || [];
|
|
8188
|
-
|
|
8425
|
+
xd.call(i, (a) => a.dataset && a.dataset.qVsAnchor !== void 0).forEach((a) => {
|
|
8189
8426
|
delete a.dataset.qVsAnchor;
|
|
8190
8427
|
});
|
|
8191
8428
|
const u = i[l];
|
|
@@ -8215,7 +8452,7 @@ function Pu(t, l, i, u, a, c, v, h) {
|
|
|
8215
8452
|
}
|
|
8216
8453
|
return m;
|
|
8217
8454
|
}
|
|
8218
|
-
function
|
|
8455
|
+
function vf(t, l, i, u) {
|
|
8219
8456
|
l === "end" && (l = (t === window ? document.body : t)[i === !0 ? "scrollWidth" : "scrollHeight"]), t === window ? i === !0 ? (u === !0 && (l = (Kl === !0 ? document.body.scrollWidth - document.documentElement.clientWidth : 0) - l), window.scrollTo(l, window.pageYOffset || window.scrollY || document.body.scrollTop || 0)) : window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, l) : i === !0 ? (u === !0 && (l = (Kl === !0 ? t.scrollWidth - t.offsetWidth : 0) - l), t.scrollLeft = l) : t.scrollTop = l;
|
|
8220
8457
|
}
|
|
8221
8458
|
function Si(t, l, i, u) {
|
|
@@ -8225,7 +8462,7 @@ function Si(t, l, i, u) {
|
|
|
8225
8462
|
let h = t.slice(c, v).reduce(Gr, 0);
|
|
8226
8463
|
return i % an !== 0 && (h -= l.slice(c * an, i).reduce(Gr, 0)), u % an !== 0 && u !== a && (h -= l.slice(u, v * an).reduce(Gr, 0)), h;
|
|
8227
8464
|
}
|
|
8228
|
-
const
|
|
8465
|
+
const pw = {
|
|
8229
8466
|
virtualScrollSliceSize: {
|
|
8230
8467
|
type: [Number, String],
|
|
8231
8468
|
default: 10
|
|
@@ -8251,12 +8488,12 @@ const gw = {
|
|
|
8251
8488
|
default: 0
|
|
8252
8489
|
},
|
|
8253
8490
|
tableColspan: [Number, String]
|
|
8254
|
-
},
|
|
8491
|
+
}, hf = {
|
|
8255
8492
|
virtualScrollHorizontal: Boolean,
|
|
8256
8493
|
onVirtualScroll: Function,
|
|
8257
|
-
...
|
|
8494
|
+
...pw
|
|
8258
8495
|
};
|
|
8259
|
-
function
|
|
8496
|
+
function _w({
|
|
8260
8497
|
virtualScrollLength: t,
|
|
8261
8498
|
getVirtualScrollTarget: l,
|
|
8262
8499
|
getVirtualScrollEl: i,
|
|
@@ -8298,7 +8535,7 @@ function mw({
|
|
|
8298
8535
|
ye,
|
|
8299
8536
|
Math.min(t.value - 1, Math.max(0, parseInt(L, 10) || 0)),
|
|
8300
8537
|
0,
|
|
8301
|
-
|
|
8538
|
+
gw.indexOf(T) !== -1 ? T : m !== -1 && L > m ? "end" : "start"
|
|
8302
8539
|
);
|
|
8303
8540
|
}
|
|
8304
8541
|
function I() {
|
|
@@ -8359,7 +8596,7 @@ function mw({
|
|
|
8359
8596
|
const { activeElement: Jt } = document, Lt = z.value;
|
|
8360
8597
|
_t === !0 && Lt !== null && Lt !== Jt && Lt.contains(Jt) === !0 && (Lt.addEventListener("focusout", D), setTimeout(() => {
|
|
8361
8598
|
Lt !== null && Lt.removeEventListener("focusout", D);
|
|
8362
|
-
})),
|
|
8599
|
+
})), mw(Lt, ue - J);
|
|
8363
8600
|
const ht = ie !== void 0 ? y.slice(J, ue).reduce(Gr, 0) : 0;
|
|
8364
8601
|
if (_t === !0) {
|
|
8365
8602
|
const Mt = He >= j.value.from && J <= j.value.to ? j.value.to : He;
|
|
@@ -8377,7 +8614,7 @@ function mw({
|
|
|
8377
8614
|
const ei = Mt - ht, en = T.scrollStart + ei;
|
|
8378
8615
|
qn = G !== !0 && en < gn && St < en + T.scrollViewSize ? en : ie === "end" ? St - T.scrollViewSize : gn - (ie === "start" ? 0 : Math.round((T.scrollViewSize - y[ue]) / 2));
|
|
8379
8616
|
}
|
|
8380
|
-
k = qn,
|
|
8617
|
+
k = qn, vf(
|
|
8381
8618
|
L,
|
|
8382
8619
|
qn,
|
|
8383
8620
|
c.virtualScrollHorizontal,
|
|
@@ -8388,7 +8625,7 @@ function mw({
|
|
|
8388
8625
|
function X(L) {
|
|
8389
8626
|
const T = z.value;
|
|
8390
8627
|
if (T) {
|
|
8391
|
-
const ue =
|
|
8628
|
+
const ue = xd.call(
|
|
8392
8629
|
T.children,
|
|
8393
8630
|
(J) => J.classList && J.classList.contains("q-virtual-scroll--skip") === !1
|
|
8394
8631
|
), ye = ue.length, we = c.virtualScrollHorizontal === !0 ? (J) => J.getBoundingClientRect().width : (J) => J.offsetHeight;
|
|
@@ -8508,7 +8745,7 @@ function mw({
|
|
|
8508
8745
|
}), m = L);
|
|
8509
8746
|
}
|
|
8510
8747
|
fe();
|
|
8511
|
-
const oe =
|
|
8748
|
+
const oe = ed(
|
|
8512
8749
|
I,
|
|
8513
8750
|
x.platform.is.ios === !0 ? 120 : 35
|
|
8514
8751
|
);
|
|
@@ -8521,7 +8758,7 @@ function mw({
|
|
|
8521
8758
|
}), xf(() => {
|
|
8522
8759
|
if (_e !== !0) return;
|
|
8523
8760
|
const L = l();
|
|
8524
|
-
k !== void 0 && L !== void 0 && L !== null && L.nodeType !== 8 ?
|
|
8761
|
+
k !== void 0 && L !== void 0 && L !== null && L.nodeType !== 8 ? vf(
|
|
8525
8762
|
L,
|
|
8526
8763
|
k,
|
|
8527
8764
|
c.virtualScrollHorizontal,
|
|
@@ -8541,20 +8778,20 @@ function mw({
|
|
|
8541
8778
|
refresh: $
|
|
8542
8779
|
};
|
|
8543
8780
|
}
|
|
8544
|
-
function
|
|
8781
|
+
function gf(t, l, i) {
|
|
8545
8782
|
if (i <= l)
|
|
8546
8783
|
return l;
|
|
8547
8784
|
const u = i - l + 1;
|
|
8548
8785
|
let a = l + (t - l) % u;
|
|
8549
8786
|
return a < l && (a = u + a), a === 0 ? 0 : a;
|
|
8550
8787
|
}
|
|
8551
|
-
const
|
|
8788
|
+
const mf = (t) => ["add", "add-unique", "toggle"].includes(t), bw = ".*+?^${}()|[]\\", yw = Object.keys(eo), Cd = at({
|
|
8552
8789
|
name: "QSelect",
|
|
8553
8790
|
inheritAttrs: !1,
|
|
8554
8791
|
props: {
|
|
8555
|
-
...
|
|
8792
|
+
...hf,
|
|
8556
8793
|
...Zu,
|
|
8557
|
-
...
|
|
8794
|
+
...eo,
|
|
8558
8795
|
// override of useFieldProps > modelValue
|
|
8559
8796
|
modelValue: {
|
|
8560
8797
|
required: !0
|
|
@@ -8593,7 +8830,7 @@ const gf = (t) => ["add", "add-unique", "toggle"].includes(t), pw = ".*+?^${}()|
|
|
|
8593
8830
|
useChips: Boolean,
|
|
8594
8831
|
newValueMode: {
|
|
8595
8832
|
type: String,
|
|
8596
|
-
validator:
|
|
8833
|
+
validator: mf
|
|
8597
8834
|
},
|
|
8598
8835
|
mapOptions: Boolean,
|
|
8599
8836
|
emitValue: Boolean,
|
|
@@ -8617,7 +8854,7 @@ const gf = (t) => ["add", "add-unique", "toggle"].includes(t), pw = ".*+?^${}()|
|
|
|
8617
8854
|
default: "default"
|
|
8618
8855
|
},
|
|
8619
8856
|
// override of useVirtualScrollProps > virtualScrollItemSize (no default)
|
|
8620
|
-
virtualScrollItemSize:
|
|
8857
|
+
virtualScrollItemSize: hf.virtualScrollItemSize.type,
|
|
8621
8858
|
onNewValue: Function,
|
|
8622
8859
|
onFilter: Function
|
|
8623
8860
|
},
|
|
@@ -8636,7 +8873,7 @@ const gf = (t) => ["add", "add-unique", "toggle"].includes(t), pw = ".*+?^${}()|
|
|
|
8636
8873
|
setup(t, { slots: l, emit: i }) {
|
|
8637
8874
|
const { proxy: u } = Ge(), { $q: a } = u, c = re(!1), v = re(!1), h = re(-1), x = re(""), k = re(!1), m = re(!1);
|
|
8638
8875
|
let C = null, b = null, y, R, U, q = null, Q, H, z, j;
|
|
8639
|
-
const Y = re(null), Z = re(null), V = re(null), ae = re(null), $ = re(null), O =
|
|
8876
|
+
const Y = re(null), Z = re(null), V = re(null), ae = re(null), $ = re(null), O = Kf(t), I = rd(Vi), w = A(() => Array.isArray(t.options) ? t.options.length : 0), X = A(() => t.virtualScrollItemSize === void 0 ? t.optionsDense === !0 ? 24 : 48 : t.virtualScrollItemSize), {
|
|
8640
8877
|
virtualScrollSliceRange: D,
|
|
8641
8878
|
virtualScrollSliceSizeComputed: se,
|
|
8642
8879
|
localResetVirtualScroll: fe,
|
|
@@ -8644,7 +8881,7 @@ const gf = (t) => ["add", "add-unique", "toggle"].includes(t), pw = ".*+?^${}()|
|
|
|
8644
8881
|
onVirtualScrollEvt: K,
|
|
8645
8882
|
scrollTo: oe,
|
|
8646
8883
|
setVirtualScrollSize: _e
|
|
8647
|
-
} =
|
|
8884
|
+
} = _w({
|
|
8648
8885
|
virtualScrollLength: w,
|
|
8649
8886
|
getVirtualScrollTarget: Bi,
|
|
8650
8887
|
getVirtualScrollEl: ni,
|
|
@@ -8658,7 +8895,7 @@ const gf = (t) => ["add", "add-unique", "toggle"].includes(t), pw = ".*+?^${}()|
|
|
|
8658
8895
|
return ne;
|
|
8659
8896
|
}), ue = A(() => {
|
|
8660
8897
|
const p = {};
|
|
8661
|
-
return
|
|
8898
|
+
return yw.forEach((ne) => {
|
|
8662
8899
|
const ee = t[ne];
|
|
8663
8900
|
ee !== void 0 && (p[ne] = ee);
|
|
8664
8901
|
}), p;
|
|
@@ -8821,7 +9058,7 @@ const gf = (t) => ["add", "add-unique", "toggle"].includes(t), pw = ".*+?^${}()|
|
|
|
8821
9058
|
if (c.value === !0) {
|
|
8822
9059
|
let ee = h.value;
|
|
8823
9060
|
do
|
|
8824
|
-
ee =
|
|
9061
|
+
ee = gf(
|
|
8825
9062
|
ee + p,
|
|
8826
9063
|
-1,
|
|
8827
9064
|
w.value - 1
|
|
@@ -8904,11 +9141,11 @@ const gf = (t) => ["add", "add-unique", "toggle"].includes(t), pw = ".*+?^${}()|
|
|
|
8904
9141
|
c.value !== !0 && Pn(p);
|
|
8905
9142
|
const Ve = p.key.toLocaleLowerCase(), Be = z.length === 1 && z[0] === Ve;
|
|
8906
9143
|
j = Date.now() + 1500, Be === !1 && (it(p), z += Ve);
|
|
8907
|
-
const Je = new RegExp("^" + z.split("").map((kr) =>
|
|
9144
|
+
const Je = new RegExp("^" + z.split("").map((kr) => bw.indexOf(kr) !== -1 ? "\\" + kr : kr).join(".*"), "i");
|
|
8908
9145
|
let ze = h.value;
|
|
8909
9146
|
if (Be === !0 || ze < 0 || Je.test(tt.value(t.options[ze])) !== !0)
|
|
8910
9147
|
do
|
|
8911
|
-
ze =
|
|
9148
|
+
ze = gf(ze + 1, -1, pe - 1);
|
|
8912
9149
|
while (ze !== h.value && (tn.value(t.options[ze]) === !0 || Je.test(tt.value(t.options[ze])) !== !0));
|
|
8913
9150
|
h.value !== ze && Xe(() => {
|
|
8914
9151
|
cn(ze), oe(ze), ze >= 0 && t.useInput === !0 && t.fillInput === !0 && Jn(tt.value(t.options[ze]), !0);
|
|
@@ -8923,7 +9160,7 @@ const gf = (t) => ["add", "add-unique", "toggle"].includes(t), pw = ".*+?^${}()|
|
|
|
8923
9160
|
if (ne === !0) {
|
|
8924
9161
|
const Ve = (Be, Je) => {
|
|
8925
9162
|
if (Je) {
|
|
8926
|
-
if (
|
|
9163
|
+
if (mf(Je) !== !0)
|
|
8927
9164
|
return;
|
|
8928
9165
|
} else
|
|
8929
9166
|
Je = t.newValueMode;
|
|
@@ -8944,7 +9181,7 @@ const gf = (t) => ["add", "add-unique", "toggle"].includes(t), pw = ".*+?^${}()|
|
|
|
8944
9181
|
return ni();
|
|
8945
9182
|
}
|
|
8946
9183
|
function no() {
|
|
8947
|
-
return t.hideSelected === !0 ? [] : l["selected-item"] !== void 0 ? gn.value.map((p) => l["selected-item"](p)).slice() : l.selected !== void 0 ? [].concat(l.selected()) : t.useChips === !0 ? gn.value.map((p, ne) => P(
|
|
9184
|
+
return t.hideSelected === !0 ? [] : l["selected-item"] !== void 0 ? gn.value.map((p) => l["selected-item"](p)).slice() : l.selected !== void 0 ? [].concat(l.selected()) : t.useChips === !0 ? gn.value.map((p, ne) => P(Ry, {
|
|
8948
9185
|
key: "option-" + ne,
|
|
8949
9186
|
removable: L.editable.value === !0 && tn.value(p.opt) !== !0,
|
|
8950
9187
|
dense: !0,
|
|
@@ -8965,13 +9202,13 @@ const gf = (t) => ["add", "add-unique", "toggle"].includes(t), pw = ".*+?^${}()|
|
|
|
8965
9202
|
function Pi() {
|
|
8966
9203
|
if (Le.value === !0)
|
|
8967
9204
|
return l["no-option"] !== void 0 ? l["no-option"]({ inputValue: x.value }) : void 0;
|
|
8968
|
-
const p = l.option !== void 0 ? l.option : (ee) => P(
|
|
9205
|
+
const p = l.option !== void 0 ? l.option : (ee) => P(qy, {
|
|
8969
9206
|
key: ee.index,
|
|
8970
9207
|
...ee.itemProps
|
|
8971
9208
|
}, () => P(
|
|
8972
|
-
|
|
9209
|
+
Ly,
|
|
8973
9210
|
() => P(
|
|
8974
|
-
|
|
9211
|
+
My,
|
|
8975
9212
|
() => P("span", {
|
|
8976
9213
|
[ee.html === !0 ? "innerHTML" : "textContent"]: ee.label
|
|
8977
9214
|
})
|
|
@@ -9038,7 +9275,7 @@ const gf = (t) => ["add", "add-unique", "toggle"].includes(t), pw = ".*+?^${}()|
|
|
|
9038
9275
|
);
|
|
9039
9276
|
}
|
|
9040
9277
|
function io() {
|
|
9041
|
-
return P(
|
|
9278
|
+
return P(uw, {
|
|
9042
9279
|
ref: V,
|
|
9043
9280
|
class: ie.value,
|
|
9044
9281
|
style: t.popupContentStyle,
|
|
@@ -9081,7 +9318,7 @@ const gf = (t) => ["add", "add-unique", "toggle"].includes(t), pw = ".*+?^${}()|
|
|
|
9081
9318
|
}
|
|
9082
9319
|
function uo() {
|
|
9083
9320
|
const p = [
|
|
9084
|
-
P(
|
|
9321
|
+
P(Oy, {
|
|
9085
9322
|
class: `col-auto ${L.fieldClass.value}`,
|
|
9086
9323
|
...ue.value,
|
|
9087
9324
|
for: L.targetUid.value,
|
|
@@ -9110,7 +9347,7 @@ const gf = (t) => ["add", "add-unique", "toggle"].includes(t), pw = ".*+?^${}()|
|
|
|
9110
9347
|
onClick: sn,
|
|
9111
9348
|
onScrollPassive: K
|
|
9112
9349
|
}, Pi())
|
|
9113
|
-
), P(
|
|
9350
|
+
), P(hw, {
|
|
9114
9351
|
ref: ae,
|
|
9115
9352
|
modelValue: v.value,
|
|
9116
9353
|
position: t.useInput === !0 ? "top" : void 0,
|
|
@@ -9291,245 +9528,7 @@ const gf = (t) => ["add", "add-unique", "toggle"].includes(t), pw = ".*+?^${}()|
|
|
|
9291
9528
|
] : null
|
|
9292
9529
|
}), ea(L);
|
|
9293
9530
|
}
|
|
9294
|
-
})
|
|
9295
|
-
var Tn = {}, _d = {}, bd = {}, to = {};
|
|
9296
|
-
Object.defineProperty(to, "__esModule", { value: !0 });
|
|
9297
|
-
to.OPERATORS = void 0;
|
|
9298
|
-
to.OPERATORS = ["==", "!=", ">", "<", ">=", "<=", "contains", "not_contains", "in", "not_in"];
|
|
9299
|
-
var jr = {};
|
|
9300
|
-
Object.defineProperty(jr, "__esModule", { value: !0 });
|
|
9301
|
-
jr.ControlType = jr.GAMA_PROP_CONTROL_TYPES = void 0;
|
|
9302
|
-
jr.GAMA_PROP_CONTROL_TYPES = [
|
|
9303
|
-
{ code: "input_text", icon: "title", label: "Texto" },
|
|
9304
|
-
{ code: "input_number", icon: "o_looks_one", label: "Número" },
|
|
9305
|
-
{ code: "datetime", icon: "event", label: "Fecha y hora" },
|
|
9306
|
-
{ code: "date", icon: "calendar_today", label: "Fecha" },
|
|
9307
|
-
{ code: "time", icon: "schedule", label: "Hora" },
|
|
9308
|
-
{ code: "switch", icon: "toggle_on", label: "Switch" },
|
|
9309
|
-
{ code: "checkbox", icon: "o_check_box", label: "Checkbox" },
|
|
9310
|
-
{ code: "select", icon: "list", label: "Selector simple" },
|
|
9311
|
-
{ code: "cards_select", icon: "grid_view", label: "Selector de tarjetas" },
|
|
9312
|
-
{ code: "location", icon: "location_on", label: "Ubicación" },
|
|
9313
|
-
{ code: "dynamic_array", icon: "data_array", label: "Colección dinámica" },
|
|
9314
|
-
{ code: "object", icon: "data_object", label: "Objeto" }
|
|
9315
|
-
];
|
|
9316
|
-
var mf;
|
|
9317
|
-
(function(t) {
|
|
9318
|
-
t.TEXT = "input_text", t.NUMBER = "input_number", t.DATETIME = "datetime", t.DATE = "date", t.TIME = "time", t.SWITCH = "switch", t.CHECKBOX = "checkbox", t.SELECT = "select", t.CARDS_SELECT = "cards_select", t.LOCATION = "location", t.DYNAMIC_ARRAY = "dynamic_array", t.OBJECT = "object";
|
|
9319
|
-
})(mf || (jr.ControlType = mf = {}));
|
|
9320
|
-
var yd = {};
|
|
9321
|
-
Object.defineProperty(yd, "__esModule", { value: !0 });
|
|
9322
|
-
var wd = {};
|
|
9323
|
-
Object.defineProperty(wd, "__esModule", { value: !0 });
|
|
9324
|
-
var Sd = {};
|
|
9325
|
-
(function(t) {
|
|
9326
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), t.VALIDATORS = t.PropValidatorKeys = t.GamaPropValidatorsMap = void 0, t.GamaPropValidatorsMap = {
|
|
9327
|
-
required: {
|
|
9328
|
-
fn: () => (i) => i.value !== null && i.value !== void 0 && i.value !== "",
|
|
9329
|
-
message: "Este campo es requerido",
|
|
9330
|
-
label: "Requerido"
|
|
9331
|
-
},
|
|
9332
|
-
min: {
|
|
9333
|
-
fn: (i) => (u) => {
|
|
9334
|
-
if (typeof u.value == "number")
|
|
9335
|
-
return (u.value || 0) >= i;
|
|
9336
|
-
if (typeof u.value == "string") {
|
|
9337
|
-
const a = u.value || "";
|
|
9338
|
-
return u.multiple ? a.split(",").length >= i : a.length >= i;
|
|
9339
|
-
}
|
|
9340
|
-
return !1;
|
|
9341
|
-
},
|
|
9342
|
-
message: "El valor es menor al mínimo permitido",
|
|
9343
|
-
label: "Mínimo"
|
|
9344
|
-
},
|
|
9345
|
-
max: {
|
|
9346
|
-
fn: (i) => (u) => {
|
|
9347
|
-
if (typeof u.value == "number")
|
|
9348
|
-
return (u.value || 0) <= i;
|
|
9349
|
-
if (typeof u.value == "string") {
|
|
9350
|
-
const a = u.value || "";
|
|
9351
|
-
return u.multiple ? a.split(",").length <= i : (a || "").length <= i;
|
|
9352
|
-
}
|
|
9353
|
-
return !1;
|
|
9354
|
-
},
|
|
9355
|
-
message: "El valor es mayor al máximo permitido",
|
|
9356
|
-
label: "Máximo"
|
|
9357
|
-
},
|
|
9358
|
-
onlyNumbers: {
|
|
9359
|
-
fn: () => (i) => /^[0-9]*$/.test(String(i.value) || ""),
|
|
9360
|
-
message: "Este campo solo acepta números",
|
|
9361
|
-
label: "Solo números"
|
|
9362
|
-
},
|
|
9363
|
-
email: {
|
|
9364
|
-
fn: () => (i) => i.value ? /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(i.value) || "") : !0,
|
|
9365
|
-
message: "El correo electrónico no es válido",
|
|
9366
|
-
label: "Correo electrónico"
|
|
9367
|
-
},
|
|
9368
|
-
url: {
|
|
9369
|
-
fn: () => (i) => i.value ? /^(ftp|http|https):\/\/[^ "]+$/.test(String(i.value) || "") || /^www\.[^ "]+$/.test(String(i.value) || "") : !0,
|
|
9370
|
-
message: "La URL no es válida",
|
|
9371
|
-
label: "URL"
|
|
9372
|
-
}
|
|
9373
|
-
// minLength: (length: number) => (control: FormControlModel) => {},
|
|
9374
|
-
// maxLength: (length: number) => (control: FormControlModel) => {},
|
|
9375
|
-
};
|
|
9376
|
-
var l;
|
|
9377
|
-
(function(i) {
|
|
9378
|
-
i.REQUERIDO = "required", i.MINIMO = "min", i.MAXIMO = "max", i.SOLO_NUMEROS = "onlyNumbers", i.EMAIL = "email", i.URL = "url";
|
|
9379
|
-
})(l || (t.PropValidatorKeys = l = {})), t.VALIDATORS = Object.entries(t.GamaPropValidatorsMap).map(([i, u]) => ({ value: i, ...u }));
|
|
9380
|
-
})(Sd);
|
|
9381
|
-
var xd = {};
|
|
9382
|
-
Object.defineProperty(xd, "__esModule", { value: !0 });
|
|
9383
|
-
(function(t) {
|
|
9384
|
-
var l = dt && dt.__createBinding || (Object.create ? function(u, a, c, v) {
|
|
9385
|
-
v === void 0 && (v = c);
|
|
9386
|
-
var h = Object.getOwnPropertyDescriptor(a, c);
|
|
9387
|
-
(!h || ("get" in h ? !a.__esModule : h.writable || h.configurable)) && (h = { enumerable: !0, get: function() {
|
|
9388
|
-
return a[c];
|
|
9389
|
-
} }), Object.defineProperty(u, v, h);
|
|
9390
|
-
} : function(u, a, c, v) {
|
|
9391
|
-
v === void 0 && (v = c), u[v] = a[c];
|
|
9392
|
-
}), i = dt && dt.__exportStar || function(u, a) {
|
|
9393
|
-
for (var c in u) c !== "default" && !Object.prototype.hasOwnProperty.call(a, c) && l(a, u, c);
|
|
9394
|
-
};
|
|
9395
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), i(to, t), i(jr, t), i(yd, t), i(wd, t), i(Sd, t), i(xd, t);
|
|
9396
|
-
})(bd);
|
|
9397
|
-
(function(t) {
|
|
9398
|
-
var l = dt && dt.__createBinding || (Object.create ? function(u, a, c, v) {
|
|
9399
|
-
v === void 0 && (v = c);
|
|
9400
|
-
var h = Object.getOwnPropertyDescriptor(a, c);
|
|
9401
|
-
(!h || ("get" in h ? !a.__esModule : h.writable || h.configurable)) && (h = { enumerable: !0, get: function() {
|
|
9402
|
-
return a[c];
|
|
9403
|
-
} }), Object.defineProperty(u, v, h);
|
|
9404
|
-
} : function(u, a, c, v) {
|
|
9405
|
-
v === void 0 && (v = c), u[v] = a[c];
|
|
9406
|
-
}), i = dt && dt.__exportStar || function(u, a) {
|
|
9407
|
-
for (var c in u) c !== "default" && !Object.prototype.hasOwnProperty.call(a, c) && l(a, u, c);
|
|
9408
|
-
};
|
|
9409
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), i(bd, t);
|
|
9410
|
-
})(_d);
|
|
9411
|
-
(function(t) {
|
|
9412
|
-
var l = dt && dt.__createBinding || (Object.create ? function(u, a, c, v) {
|
|
9413
|
-
v === void 0 && (v = c);
|
|
9414
|
-
var h = Object.getOwnPropertyDescriptor(a, c);
|
|
9415
|
-
(!h || ("get" in h ? !a.__esModule : h.writable || h.configurable)) && (h = { enumerable: !0, get: function() {
|
|
9416
|
-
return a[c];
|
|
9417
|
-
} }), Object.defineProperty(u, v, h);
|
|
9418
|
-
} : function(u, a, c, v) {
|
|
9419
|
-
v === void 0 && (v = c), u[v] = a[c];
|
|
9420
|
-
}), i = dt && dt.__exportStar || function(u, a) {
|
|
9421
|
-
for (var c in u) c !== "default" && !Object.prototype.hasOwnProperty.call(a, c) && l(a, u, c);
|
|
9422
|
-
};
|
|
9423
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), i(_d, t);
|
|
9424
|
-
})(Tn);
|
|
9425
|
-
const Jr = H_("form", {
|
|
9426
|
-
state: () => ({
|
|
9427
|
-
formSteps: [],
|
|
9428
|
-
currentStep: 1,
|
|
9429
|
-
onLastSubstep: !1,
|
|
9430
|
-
collections: {}
|
|
9431
|
-
}),
|
|
9432
|
-
actions: {
|
|
9433
|
-
setFormSteps(t) {
|
|
9434
|
-
this.formSteps = bw(t);
|
|
9435
|
-
},
|
|
9436
|
-
nextStep() {
|
|
9437
|
-
this.currentStep !== this.formSteps.length && this.currentStep++;
|
|
9438
|
-
},
|
|
9439
|
-
previousStep() {
|
|
9440
|
-
this.currentStep !== 1 && this.currentStep--;
|
|
9441
|
-
},
|
|
9442
|
-
setControlValue(t, l) {
|
|
9443
|
-
const { id: i, value: u, code: a } = l, c = this.formSteps[t].controls.find(
|
|
9444
|
-
(v) => v.id === i
|
|
9445
|
-
);
|
|
9446
|
-
c && (Qu.includes(c.controlType) ? Ke.set(c.value, a, u) : c.value = u);
|
|
9447
|
-
},
|
|
9448
|
-
setControlVisibility(t, l, i) {
|
|
9449
|
-
const u = this.formSteps[t].controls.find(
|
|
9450
|
-
(a) => a.id === l
|
|
9451
|
-
);
|
|
9452
|
-
u && (u.visible = i);
|
|
9453
|
-
},
|
|
9454
|
-
setControlItemsLength(t, l, i) {
|
|
9455
|
-
const u = this.formSteps[t].controls.find(
|
|
9456
|
-
(a) => a.id === l
|
|
9457
|
-
);
|
|
9458
|
-
!u || u.controlType !== "dynamic_array" || (u.itemsLength.value = i);
|
|
9459
|
-
},
|
|
9460
|
-
setOnLastSubstep(t) {
|
|
9461
|
-
this.onLastSubstep = t;
|
|
9462
|
-
},
|
|
9463
|
-
resetSteps() {
|
|
9464
|
-
this.currentStep = 1;
|
|
9465
|
-
},
|
|
9466
|
-
setCollection(t, l) {
|
|
9467
|
-
this.collections[t] = l;
|
|
9468
|
-
}
|
|
9469
|
-
},
|
|
9470
|
-
getters: {
|
|
9471
|
-
currentFormStep(t) {
|
|
9472
|
-
return t.formSteps[t.currentStep - 1] || null;
|
|
9473
|
-
},
|
|
9474
|
-
stepsCount(t) {
|
|
9475
|
-
return t.formSteps.length;
|
|
9476
|
-
},
|
|
9477
|
-
nextDisabled() {
|
|
9478
|
-
return this.currentFormStep.controls.filter((t) => t.visible).some((t) => !t.valid);
|
|
9479
|
-
},
|
|
9480
|
-
getCollection(t) {
|
|
9481
|
-
return (l) => t.collections[l] || null;
|
|
9482
|
-
}
|
|
9483
|
-
}
|
|
9484
|
-
});
|
|
9485
|
-
function bw(t) {
|
|
9486
|
-
return t.map((l) => ({
|
|
9487
|
-
...l,
|
|
9488
|
-
valid: !1,
|
|
9489
|
-
controls: Cd(l.controls)
|
|
9490
|
-
}));
|
|
9491
|
-
}
|
|
9492
|
-
function Cd(t) {
|
|
9493
|
-
return t.map((l) => {
|
|
9494
|
-
var i, u, a;
|
|
9495
|
-
return {
|
|
9496
|
-
...l,
|
|
9497
|
-
valid: !((i = l.validators) != null && i.length),
|
|
9498
|
-
visible: !((u = l.conditions) != null && u.length),
|
|
9499
|
-
value: yw(l),
|
|
9500
|
-
itemsLength: l.controlType === "dynamic_array" ? {
|
|
9501
|
-
...l.itemsLength,
|
|
9502
|
-
value: ((a = l.itemsLength) == null ? void 0 : a.default) || 1
|
|
9503
|
-
} : null
|
|
9504
|
-
};
|
|
9505
|
-
});
|
|
9506
|
-
}
|
|
9507
|
-
function yw(t) {
|
|
9508
|
-
if (!Ke.isNil(t.defaultValue)) return t.defaultValue;
|
|
9509
|
-
switch (t.controlType) {
|
|
9510
|
-
case "input_text":
|
|
9511
|
-
return "";
|
|
9512
|
-
case "input_number":
|
|
9513
|
-
return null;
|
|
9514
|
-
case "select":
|
|
9515
|
-
return t.multiple ? [] : "";
|
|
9516
|
-
case "cards_select":
|
|
9517
|
-
return t.multiple ? [] : "";
|
|
9518
|
-
case "checkbox":
|
|
9519
|
-
return null;
|
|
9520
|
-
case "switch":
|
|
9521
|
-
return null;
|
|
9522
|
-
case "location":
|
|
9523
|
-
return {};
|
|
9524
|
-
case "dynamic_array":
|
|
9525
|
-
return [];
|
|
9526
|
-
case "object":
|
|
9527
|
-
return {};
|
|
9528
|
-
default:
|
|
9529
|
-
return "";
|
|
9530
|
-
}
|
|
9531
|
-
}
|
|
9532
|
-
const Qu = [Tn.ControlType.DYNAMIC_ARRAY, Tn.ControlType.OBJECT], ww = /* @__PURE__ */ vt({
|
|
9531
|
+
}), ww = /* @__PURE__ */ vt({
|
|
9533
9532
|
__name: "SelectControl",
|
|
9534
9533
|
props: /* @__PURE__ */ Gn({
|
|
9535
9534
|
control: {}
|
|
@@ -9548,7 +9547,7 @@ const Qu = [Tn.ControlType.DYNAMIC_ARRAY, Tn.ControlType.OBJECT], ww = /* @__PUR
|
|
|
9548
9547
|
}
|
|
9549
9548
|
), x = A(
|
|
9550
9549
|
() => h.value ? v.value : u.control.options
|
|
9551
|
-
), k =
|
|
9550
|
+
), k = Zr();
|
|
9552
9551
|
ke(
|
|
9553
9552
|
h,
|
|
9554
9553
|
(C) => {
|
|
@@ -9583,9 +9582,9 @@ const Qu = [Tn.ControlType.DYNAMIC_ARRAY, Tn.ControlType.OBJECT], ww = /* @__PUR
|
|
|
9583
9582
|
key: 0,
|
|
9584
9583
|
label: C.control.label
|
|
9585
9584
|
}, null, 8, ["label"])) : Ot("", !0),
|
|
9586
|
-
Rt(
|
|
9585
|
+
Rt(to, { class: "q-card win-card row items-center q-px-md" }, {
|
|
9587
9586
|
default: ut(() => [
|
|
9588
|
-
Rt(
|
|
9587
|
+
Rt(Cd, {
|
|
9589
9588
|
borderless: "",
|
|
9590
9589
|
label: C.control.label,
|
|
9591
9590
|
modelValue: i.value,
|
|
@@ -9609,7 +9608,7 @@ const Qu = [Tn.ControlType.DYNAMIC_ARRAY, Tn.ControlType.OBJECT], ww = /* @__PUR
|
|
|
9609
9608
|
], 64);
|
|
9610
9609
|
};
|
|
9611
9610
|
}
|
|
9612
|
-
}), Sw = /* @__PURE__ */ Yn(ww, [["__scopeId", "data-v-
|
|
9611
|
+
}), Sw = /* @__PURE__ */ Yn(ww, [["__scopeId", "data-v-6268ce2c"]]), xw = {
|
|
9613
9612
|
class: "text-center",
|
|
9614
9613
|
style: { width: "100%" }
|
|
9615
9614
|
}, Cw = { class: "text-center text-weight-medium" }, Ew = { class: "question-title" }, kw = /* @__PURE__ */ vt({
|
|
@@ -9626,7 +9625,7 @@ const Qu = [Tn.ControlType.DYNAMIC_ARRAY, Tn.ControlType.OBJECT], ww = /* @__PUR
|
|
|
9626
9625
|
}
|
|
9627
9626
|
});
|
|
9628
9627
|
function Aw() {
|
|
9629
|
-
return Gl(
|
|
9628
|
+
return Gl(Mb);
|
|
9630
9629
|
}
|
|
9631
9630
|
const Ed = {
|
|
9632
9631
|
required: {
|
|
@@ -9732,7 +9731,7 @@ function kd(t, l, i) {
|
|
|
9732
9731
|
return Ke.chunk(u, i).map(
|
|
9733
9732
|
(c) => ({
|
|
9734
9733
|
...t,
|
|
9735
|
-
controls:
|
|
9734
|
+
controls: Vf(c).map((v) => {
|
|
9736
9735
|
var h;
|
|
9737
9736
|
return {
|
|
9738
9737
|
...v,
|
|
@@ -9768,7 +9767,7 @@ function Ad(t, l) {
|
|
|
9768
9767
|
const { maxControlsPerGroup: i, notifyValidations: u } = {
|
|
9769
9768
|
...Iw,
|
|
9770
9769
|
...l || {}
|
|
9771
|
-
}, a =
|
|
9770
|
+
}, a = Zr(), c = A(
|
|
9772
9771
|
() => a.formSteps[t]
|
|
9773
9772
|
), v = re([]), h = re([]), x = (y, R) => {
|
|
9774
9773
|
a.setControlValue(t, y);
|
|
@@ -9781,13 +9780,13 @@ function Ad(t, l) {
|
|
|
9781
9780
|
const y = c.value.controls, R = [];
|
|
9782
9781
|
Mw(y).forEach((q) => {
|
|
9783
9782
|
const Q = q.controls;
|
|
9784
|
-
if (Q.every((z) => !
|
|
9783
|
+
if (Q.every((z) => !Nu.includes(z.controlType))) {
|
|
9785
9784
|
R.push(q);
|
|
9786
9785
|
return;
|
|
9787
9786
|
}
|
|
9788
9787
|
let H = { ...q, controls: [] };
|
|
9789
9788
|
for (const z of Q)
|
|
9790
|
-
if (
|
|
9789
|
+
if (Nu.includes(z.controlType)) {
|
|
9791
9790
|
R.push(H), H = { ...H, controls: [] };
|
|
9792
9791
|
const j = qw(
|
|
9793
9792
|
q,
|
|
@@ -9883,7 +9882,7 @@ const Bw = {
|
|
|
9883
9882
|
index: {}
|
|
9884
9883
|
},
|
|
9885
9884
|
setup(t) {
|
|
9886
|
-
const l = t, i =
|
|
9885
|
+
const l = t, i = Zr(), { model: u, onControlValueUpdate: a } = Ad(l.index), c = A(() => u.value.length), v = re(0), h = A(
|
|
9887
9886
|
() => u.value[v.value]
|
|
9888
9887
|
), x = (m) => {
|
|
9889
9888
|
const C = Ke.toPairs(Ke.groupBy(m, "row"));
|
|
@@ -9907,10 +9906,10 @@ const Bw = {
|
|
|
9907
9906
|
return {
|
|
9908
9907
|
input_text: qu,
|
|
9909
9908
|
input_number: qu,
|
|
9910
|
-
checkbox:
|
|
9911
|
-
switch:
|
|
9909
|
+
checkbox: Jf,
|
|
9910
|
+
switch: Ob,
|
|
9912
9911
|
select: Sw,
|
|
9913
|
-
cards_select:
|
|
9912
|
+
cards_select: yb
|
|
9914
9913
|
// currency_select: SelectCurrencyControl,
|
|
9915
9914
|
// location: MapLocation,
|
|
9916
9915
|
// object: ObjectControl,
|
|
@@ -9930,7 +9929,7 @@ const Bw = {
|
|
|
9930
9929
|
(de(!0), qe(pt, null, gr(Ne(u), (b) => (de(), qe(pt, {
|
|
9931
9930
|
key: b.id
|
|
9932
9931
|
}, [
|
|
9933
|
-
v.value === b.order ? (de(), lt(
|
|
9932
|
+
v.value === b.order ? (de(), lt(eb, {
|
|
9934
9933
|
key: 0,
|
|
9935
9934
|
transition: "slide-left",
|
|
9936
9935
|
style: { height: "75%", width: "100vw" },
|
|
@@ -9955,7 +9954,7 @@ const Bw = {
|
|
|
9955
9954
|
_: 2
|
|
9956
9955
|
}, 1024)) : Ot("", !0)
|
|
9957
9956
|
], 64))), 128)),
|
|
9958
|
-
Rt(
|
|
9957
|
+
Rt(Ay, {
|
|
9959
9958
|
currentStep: v.value,
|
|
9960
9959
|
stepsCount: c.value,
|
|
9961
9960
|
nextDisabled: !h.value.valid,
|
|
@@ -9967,7 +9966,7 @@ const Bw = {
|
|
|
9967
9966
|
])
|
|
9968
9967
|
])) : Ot("", !0);
|
|
9969
9968
|
}
|
|
9970
|
-
}), zw = /* @__PURE__ */ Yn(Dw, [["__scopeId", "data-v-
|
|
9969
|
+
}), zw = /* @__PURE__ */ Yn(Dw, [["__scopeId", "data-v-2d9dca33"]]), Ww = { style: { "font-size": "16px", "padding-top": "1rem" } }, Hw = { style: { "font-size": "16px", "padding-top": "1rem" } }, Uw = /* @__PURE__ */ vt({
|
|
9971
9970
|
__name: "SimpleInput",
|
|
9972
9971
|
props: /* @__PURE__ */ Gn({
|
|
9973
9972
|
control: {},
|
|
@@ -9982,9 +9981,9 @@ const Bw = {
|
|
|
9982
9981
|
var a;
|
|
9983
9982
|
return (a = i.control.controlType) == null ? void 0 : a.split("_")[1];
|
|
9984
9983
|
});
|
|
9985
|
-
return (a, c) => (de(), lt(
|
|
9984
|
+
return (a, c) => (de(), lt(to, { class: "q-px-md win-card" }, {
|
|
9986
9985
|
default: ut(() => [
|
|
9987
|
-
Rt(
|
|
9986
|
+
Rt(id, {
|
|
9988
9987
|
borderless: "",
|
|
9989
9988
|
"reverse-fill-mask": "",
|
|
9990
9989
|
modelValue: l.value,
|
|
@@ -10025,9 +10024,9 @@ const Bw = {
|
|
|
10025
10024
|
emits: ["update:modelValue"],
|
|
10026
10025
|
setup(t) {
|
|
10027
10026
|
const l = Qn(t, "modelValue");
|
|
10028
|
-
return (i, u) => (de(), lt(
|
|
10027
|
+
return (i, u) => (de(), lt(to, { class: "q-px-md win-card" }, {
|
|
10029
10028
|
default: ut(() => [
|
|
10030
|
-
Rt(
|
|
10029
|
+
Rt(Cd, {
|
|
10031
10030
|
borderless: "",
|
|
10032
10031
|
label: i.control.label,
|
|
10033
10032
|
options: i.control.options,
|
|
@@ -10062,7 +10061,7 @@ const Bw = {
|
|
|
10062
10061
|
input_number: Vu,
|
|
10063
10062
|
select: _f,
|
|
10064
10063
|
cards_select: _f,
|
|
10065
|
-
checkbox:
|
|
10064
|
+
checkbox: Jf
|
|
10066
10065
|
// location: MapLocation
|
|
10067
10066
|
}[x] || Vu;
|
|
10068
10067
|
}
|
|
@@ -10081,7 +10080,7 @@ const Bw = {
|
|
|
10081
10080
|
}
|
|
10082
10081
|
];
|
|
10083
10082
|
}
|
|
10084
|
-
const h =
|
|
10083
|
+
const h = Zr();
|
|
10085
10084
|
return Rn(() => h.setOnLastSubstep(!0)), (x, k) => Ne(i) ? (de(), qe("div", Kw, [
|
|
10086
10085
|
Oe("div", Gw, Tt(Ne(i)[0].title), 1),
|
|
10087
10086
|
Oe("div", Qw, [
|
|
@@ -10112,7 +10111,7 @@ const Bw = {
|
|
|
10112
10111
|
])
|
|
10113
10112
|
])) : Ot("", !0);
|
|
10114
10113
|
}
|
|
10115
|
-
}), Jw = /* @__PURE__ */ Yn(Xw, [["__scopeId", "data-v-
|
|
10114
|
+
}), Jw = /* @__PURE__ */ Yn(Xw, [["__scopeId", "data-v-a8cd1002"]]), na = (t) => (Ef("data-v-88496229"), t = t(), kf(), t), e1 = { class: "buttons-container" }, t1 = { class: "max-container" }, n1 = {
|
|
10116
10115
|
key: 0,
|
|
10117
10116
|
class: "row checkbox justify-end q-my-sm"
|
|
10118
10117
|
}, r1 = { style: { "max-width": "650px" } }, i1 = /* @__PURE__ */ na(() => /* @__PURE__ */ Oe("br", { class: "gt-sm" }, null, -1)), l1 = { class: "row justify-between q-my-md q-px-md q-pb-xl" }, o1 = /* @__PURE__ */ na(() => /* @__PURE__ */ Oe("span", { class: "text-black" }, "Atrás", -1)), u1 = { key: 1 }, a1 = {
|
|
@@ -10132,7 +10131,7 @@ const Bw = {
|
|
|
10132
10131
|
stepsCount: c,
|
|
10133
10132
|
nextDisabled: v,
|
|
10134
10133
|
onLastSubstep: h
|
|
10135
|
-
} = Vl(
|
|
10134
|
+
} = Vl(Zr()), x = l, k = re(!1), m = (b) => {
|
|
10136
10135
|
}, C = () => {
|
|
10137
10136
|
a.value === c.value ? x("submit") : i.value();
|
|
10138
10137
|
};
|
|
@@ -10140,7 +10139,7 @@ const Bw = {
|
|
|
10140
10139
|
Oe("div", t1, [
|
|
10141
10140
|
Ne(a) === Ne(c) ? (de(), qe("div", n1, [
|
|
10142
10141
|
Oe("div", r1, [
|
|
10143
|
-
Rt(
|
|
10142
|
+
Rt(Xf, {
|
|
10144
10143
|
color: "info",
|
|
10145
10144
|
class: "checkbox",
|
|
10146
10145
|
modelValue: k.value,
|
|
@@ -10199,20 +10198,20 @@ const Bw = {
|
|
|
10199
10198
|
])
|
|
10200
10199
|
]));
|
|
10201
10200
|
}
|
|
10202
|
-
}), d1 = /* @__PURE__ */ Yn(f1, [["__scopeId", "data-v-
|
|
10201
|
+
}), d1 = /* @__PURE__ */ Yn(f1, [["__scopeId", "data-v-88496229"]]), v1 = /* @__PURE__ */ vt({
|
|
10203
10202
|
__name: "DynamicForm",
|
|
10204
10203
|
props: {
|
|
10205
10204
|
forms: {}
|
|
10206
10205
|
},
|
|
10207
10206
|
emits: ["onSubmit"],
|
|
10208
10207
|
setup(t, { emit: l }) {
|
|
10209
|
-
const i = t, u = l, a = re(!1), c =
|
|
10208
|
+
const i = t, u = l, a = re(!1), c = Zr(), v = (x) => Ke.keys(Ke.groupBy(x.controls, "group")).length === 1;
|
|
10210
10209
|
ke(() => i.forms, (x) => {
|
|
10211
|
-
const m = new
|
|
10210
|
+
const m = new qc().fromRaw(x);
|
|
10212
10211
|
c.setFormSteps(m);
|
|
10213
10212
|
}, { immediate: !0 });
|
|
10214
10213
|
function h() {
|
|
10215
|
-
const x = Ke.cloneDeep(c.formSteps), m = new
|
|
10214
|
+
const x = Ke.cloneDeep(c.formSteps), m = new qc().toRaw(x);
|
|
10216
10215
|
u("onSubmit", m);
|
|
10217
10216
|
}
|
|
10218
10217
|
return (x, k) => (de(), qe(pt, null, [
|
|
@@ -10250,7 +10249,7 @@ const Bw = {
|
|
|
10250
10249
|
}
|
|
10251
10250
|
}), p1 = {
|
|
10252
10251
|
install(t, l) {
|
|
10253
|
-
console.log({ pinia: l.pinia }),
|
|
10252
|
+
console.log({ pinia: l.pinia }), l != null && l.pinia ? (console.log("existe una instancia de pinia!"), t.use(l.pinia)) : console.error("Pinia instance is required to use this library."), N_() || console.error("No active Pinia instance. Make sure to use app.use(pinia) before accessing the store."), t.component("DynamicForm", v1), t.component("TestUi", g1);
|
|
10254
10253
|
}
|
|
10255
10254
|
};
|
|
10256
10255
|
export {
|