bhl-forms 0.3.2 → 0.3.4
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/bhl-forms.es.js +973 -337
- package/dist/bhl-forms.iife.js +7 -7
- package/dist/bhl-forms.modern.es.js +1373 -731
- package/dist/bhl-forms.modern.iife.js +9 -9
- package/dist/bhl-forms.modern.umd.js +9 -9
- package/dist/bhl-forms.umd.js +7 -7
- package/dist/forms/accidentsAndInjuries.es.js +7 -2
- package/dist/forms/accidentsAndInjuries.iife.js +1 -1
- package/dist/forms/accidentsAndInjuries.json +1 -1
- package/dist/forms/appraisals.es.js +7 -2
- package/dist/forms/appraisals.iife.js +1 -1
- package/dist/forms/appraisals.json +1 -1
- package/dist/forms/childAndFamily.es.js +7 -2
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/civilLawsuit.es.js +7 -2
- package/dist/forms/civilLawsuit.iife.js +1 -1
- package/dist/forms/civilLawsuit.json +1 -1
- package/dist/forms/coins.es.js +7 -2
- package/dist/forms/coins.iife.js +1 -1
- package/dist/forms/coins.json +1 -1
- package/dist/forms/contracts.es.js +7 -2
- package/dist/forms/contracts.iife.js +1 -1
- package/dist/forms/contracts.json +1 -1
- package/dist/forms/criminal.es.js +7 -2
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -1
- package/dist/forms/employmentAndWorkplace.es.js +7 -2
- package/dist/forms/employmentAndWorkplace.iife.js +1 -1
- package/dist/forms/employmentAndWorkplace.json +1 -1
- package/dist/forms/generalLegal.es.js +7 -2
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/generalLegalPopUnder.es.js +7 -2
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -1
- package/dist/forms/generalLegalPopUnderTF.es.js +7 -2
- package/dist/forms/generalLegalPopUnderTF.iife.js +1 -1
- package/dist/forms/generalLegalPopUnderTF.json +1 -1
- package/dist/forms/generalLegalThankYou.es.js +7 -2
- package/dist/forms/generalLegalThankYou.iife.js +1 -1
- package/dist/forms/generalLegalThankYou.json +1 -1
- package/dist/forms/harassmentAndDiscrimination.es.js +7 -2
- package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
- package/dist/forms/harassmentAndDiscrimination.json +1 -1
- package/dist/forms/malpractice.es.js +7 -2
- package/dist/forms/malpractice.iife.js +1 -1
- package/dist/forms/malpractice.json +1 -1
- package/dist/forms/mechanics.es.js +7 -2
- package/dist/forms/mechanics.iife.js +1 -1
- package/dist/forms/mechanics.json +1 -1
- package/dist/forms/realEstate.es.js +7 -2
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/realEstate.json +1 -1
- package/dist/forms/repossession.es.js +7 -2
- package/dist/forms/repossession.iife.js +1 -1
- package/dist/forms/repossession.json +1 -1
- package/dist/forms/ssdi.es.js +7 -2
- package/dist/forms/ssdi.iife.js +1 -1
- package/dist/forms/ssdi.json +1 -1
- package/dist/forms/testForm.es.js +7 -2
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testForm.json +1 -1
- package/dist/forms/testRedirects.es.js +7 -2
- package/dist/forms/testRedirects.iife.js +1 -1
- package/dist/forms/testRedirects.json +1 -1
- package/dist/forms/vets.es.js +8 -3
- package/dist/forms/vets.iife.js +1 -1
- package/dist/forms/vets.json +1 -1
- package/dist/forms/willsAndTrusts.es.js +7 -2
- package/dist/forms/willsAndTrusts.iife.js +1 -1
- package/dist/forms/willsAndTrusts.json +1 -1
- package/package.json +5 -4
package/dist/bhl-forms.es.js
CHANGED
|
@@ -18,16 +18,16 @@ var __spreadValues = (a3, b2) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a3, b2) => __defProps(a3, __getOwnPropDescs(b2));
|
|
20
20
|
var __objRest = (source, exclude) => {
|
|
21
|
-
var
|
|
21
|
+
var target2 = {};
|
|
22
22
|
for (var prop in source)
|
|
23
23
|
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
|
|
24
|
+
target2[prop] = source[prop];
|
|
25
25
|
if (source != null && __getOwnPropSymbols)
|
|
26
26
|
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
27
|
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
|
|
28
|
+
target2[prop] = source[prop];
|
|
29
29
|
}
|
|
30
|
-
return
|
|
30
|
+
return target2;
|
|
31
31
|
};
|
|
32
32
|
var __async = (__this, __arguments, generator) => {
|
|
33
33
|
return new Promise((resolve2, reject) => {
|
|
@@ -145,7 +145,7 @@ const onRE = /^on[^a-z]/;
|
|
|
145
145
|
const isOn = (key) => onRE.test(key);
|
|
146
146
|
const isModelListener = (key) => key.startsWith("onUpdate:");
|
|
147
147
|
const extend$3 = Object.assign;
|
|
148
|
-
const remove = (arr, el) => {
|
|
148
|
+
const remove$1 = (arr, el) => {
|
|
149
149
|
const i2 = arr.indexOf(el);
|
|
150
150
|
if (i2 > -1) {
|
|
151
151
|
arr.splice(i2, 1);
|
|
@@ -390,11 +390,11 @@ function resetTracking() {
|
|
|
390
390
|
const last = trackStack.pop();
|
|
391
391
|
shouldTrack = last === void 0 ? true : last;
|
|
392
392
|
}
|
|
393
|
-
function track(
|
|
393
|
+
function track(target2, type, key) {
|
|
394
394
|
if (shouldTrack && activeEffect) {
|
|
395
|
-
let depsMap = targetMap.get(
|
|
395
|
+
let depsMap = targetMap.get(target2);
|
|
396
396
|
if (!depsMap) {
|
|
397
|
-
targetMap.set(
|
|
397
|
+
targetMap.set(target2, depsMap = /* @__PURE__ */ new Map());
|
|
398
398
|
}
|
|
399
399
|
let dep = depsMap.get(key);
|
|
400
400
|
if (!dep) {
|
|
@@ -418,15 +418,15 @@ function trackEffects(dep, debuggerEventExtraInfo) {
|
|
|
418
418
|
activeEffect.deps.push(dep);
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
function trigger(
|
|
422
|
-
const depsMap = targetMap.get(
|
|
421
|
+
function trigger(target2, type, key, newValue, oldValue, oldTarget) {
|
|
422
|
+
const depsMap = targetMap.get(target2);
|
|
423
423
|
if (!depsMap) {
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
426
426
|
let deps = [];
|
|
427
427
|
if (type === "clear") {
|
|
428
428
|
deps = [...depsMap.values()];
|
|
429
|
-
} else if (key === "length" && isArray(
|
|
429
|
+
} else if (key === "length" && isArray(target2)) {
|
|
430
430
|
const newLength = Number(newValue);
|
|
431
431
|
depsMap.forEach((dep, key2) => {
|
|
432
432
|
if (key2 === "length" || key2 >= newLength) {
|
|
@@ -439,9 +439,9 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
439
439
|
}
|
|
440
440
|
switch (type) {
|
|
441
441
|
case "add":
|
|
442
|
-
if (!isArray(
|
|
442
|
+
if (!isArray(target2)) {
|
|
443
443
|
deps.push(depsMap.get(ITERATE_KEY));
|
|
444
|
-
if (isMap(
|
|
444
|
+
if (isMap(target2)) {
|
|
445
445
|
deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
|
|
446
446
|
}
|
|
447
447
|
} else if (isIntegerKey(key)) {
|
|
@@ -449,15 +449,15 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
449
449
|
}
|
|
450
450
|
break;
|
|
451
451
|
case "delete":
|
|
452
|
-
if (!isArray(
|
|
452
|
+
if (!isArray(target2)) {
|
|
453
453
|
deps.push(depsMap.get(ITERATE_KEY));
|
|
454
|
-
if (isMap(
|
|
454
|
+
if (isMap(target2)) {
|
|
455
455
|
deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
458
|
break;
|
|
459
459
|
case "set":
|
|
460
|
-
if (isMap(
|
|
460
|
+
if (isMap(target2)) {
|
|
461
461
|
deps.push(depsMap.get(ITERATE_KEY));
|
|
462
462
|
}
|
|
463
463
|
break;
|
|
@@ -547,17 +547,17 @@ function hasOwnProperty(key) {
|
|
|
547
547
|
return obj.hasOwnProperty(key);
|
|
548
548
|
}
|
|
549
549
|
function createGetter(isReadonly2 = false, shallow = false) {
|
|
550
|
-
return function get2(
|
|
550
|
+
return function get2(target2, key, receiver) {
|
|
551
551
|
if (key === "__v_isReactive") {
|
|
552
552
|
return !isReadonly2;
|
|
553
553
|
} else if (key === "__v_isReadonly") {
|
|
554
554
|
return isReadonly2;
|
|
555
555
|
} else if (key === "__v_isShallow") {
|
|
556
556
|
return shallow;
|
|
557
|
-
} else if (key === "__v_raw" && receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(
|
|
558
|
-
return
|
|
557
|
+
} else if (key === "__v_raw" && receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target2)) {
|
|
558
|
+
return target2;
|
|
559
559
|
}
|
|
560
|
-
const targetIsArray = isArray(
|
|
560
|
+
const targetIsArray = isArray(target2);
|
|
561
561
|
if (!isReadonly2) {
|
|
562
562
|
if (targetIsArray && hasOwn(arrayInstrumentations, key)) {
|
|
563
563
|
return Reflect.get(arrayInstrumentations, key, receiver);
|
|
@@ -566,12 +566,12 @@ function createGetter(isReadonly2 = false, shallow = false) {
|
|
|
566
566
|
return hasOwnProperty;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
const res = Reflect.get(
|
|
569
|
+
const res = Reflect.get(target2, key, receiver);
|
|
570
570
|
if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
|
|
571
571
|
return res;
|
|
572
572
|
}
|
|
573
573
|
if (!isReadonly2) {
|
|
574
|
-
track(
|
|
574
|
+
track(target2, "get", key);
|
|
575
575
|
}
|
|
576
576
|
if (shallow) {
|
|
577
577
|
return res;
|
|
@@ -588,8 +588,8 @@ function createGetter(isReadonly2 = false, shallow = false) {
|
|
|
588
588
|
const set$1 = /* @__PURE__ */ createSetter();
|
|
589
589
|
const shallowSet = /* @__PURE__ */ createSetter(true);
|
|
590
590
|
function createSetter(shallow = false) {
|
|
591
|
-
return function set2(
|
|
592
|
-
let oldValue =
|
|
591
|
+
return function set2(target2, key, value, receiver) {
|
|
592
|
+
let oldValue = target2[key];
|
|
593
593
|
if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
|
|
594
594
|
return false;
|
|
595
595
|
}
|
|
@@ -598,42 +598,42 @@ function createSetter(shallow = false) {
|
|
|
598
598
|
oldValue = toRaw(oldValue);
|
|
599
599
|
value = toRaw(value);
|
|
600
600
|
}
|
|
601
|
-
if (!isArray(
|
|
601
|
+
if (!isArray(target2) && isRef(oldValue) && !isRef(value)) {
|
|
602
602
|
oldValue.value = value;
|
|
603
603
|
return true;
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
|
-
const hadKey = isArray(
|
|
607
|
-
const result = Reflect.set(
|
|
608
|
-
if (
|
|
606
|
+
const hadKey = isArray(target2) && isIntegerKey(key) ? Number(key) < target2.length : hasOwn(target2, key);
|
|
607
|
+
const result = Reflect.set(target2, key, value, receiver);
|
|
608
|
+
if (target2 === toRaw(receiver)) {
|
|
609
609
|
if (!hadKey) {
|
|
610
|
-
trigger(
|
|
610
|
+
trigger(target2, "add", key, value);
|
|
611
611
|
} else if (hasChanged(value, oldValue)) {
|
|
612
|
-
trigger(
|
|
612
|
+
trigger(target2, "set", key, value);
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
return result;
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
|
-
function deleteProperty(
|
|
619
|
-
const hadKey = hasOwn(
|
|
620
|
-
|
|
621
|
-
const result = Reflect.deleteProperty(
|
|
618
|
+
function deleteProperty(target2, key) {
|
|
619
|
+
const hadKey = hasOwn(target2, key);
|
|
620
|
+
target2[key];
|
|
621
|
+
const result = Reflect.deleteProperty(target2, key);
|
|
622
622
|
if (result && hadKey) {
|
|
623
|
-
trigger(
|
|
623
|
+
trigger(target2, "delete", key, void 0);
|
|
624
624
|
}
|
|
625
625
|
return result;
|
|
626
626
|
}
|
|
627
|
-
function has$1(
|
|
628
|
-
const result = Reflect.has(
|
|
627
|
+
function has$1(target2, key) {
|
|
628
|
+
const result = Reflect.has(target2, key);
|
|
629
629
|
if (!isSymbol(key) || !builtInSymbols.has(key)) {
|
|
630
|
-
track(
|
|
630
|
+
track(target2, "has", key);
|
|
631
631
|
}
|
|
632
632
|
return result;
|
|
633
633
|
}
|
|
634
|
-
function ownKeys(
|
|
635
|
-
track(
|
|
636
|
-
return Reflect.ownKeys(
|
|
634
|
+
function ownKeys(target2) {
|
|
635
|
+
track(target2, "iterate", isArray(target2) ? "length" : ITERATE_KEY);
|
|
636
|
+
return Reflect.ownKeys(target2);
|
|
637
637
|
}
|
|
638
638
|
const mutableHandlers = {
|
|
639
639
|
get: get$1,
|
|
@@ -644,10 +644,10 @@ const mutableHandlers = {
|
|
|
644
644
|
};
|
|
645
645
|
const readonlyHandlers = {
|
|
646
646
|
get: readonlyGet,
|
|
647
|
-
set(
|
|
647
|
+
set(target2, key) {
|
|
648
648
|
return true;
|
|
649
649
|
},
|
|
650
|
-
deleteProperty(
|
|
650
|
+
deleteProperty(target2, key) {
|
|
651
651
|
return true;
|
|
652
652
|
}
|
|
653
653
|
};
|
|
@@ -657,9 +657,9 @@ const shallowReactiveHandlers = /* @__PURE__ */ extend$3({}, mutableHandlers, {
|
|
|
657
657
|
});
|
|
658
658
|
const toShallow = (value) => value;
|
|
659
659
|
const getProto = (v) => Reflect.getPrototypeOf(v);
|
|
660
|
-
function get$2(
|
|
661
|
-
|
|
662
|
-
const rawTarget = toRaw(
|
|
660
|
+
function get$2(target2, key, isReadonly2 = false, isShallow2 = false) {
|
|
661
|
+
target2 = target2["__v_raw"];
|
|
662
|
+
const rawTarget = toRaw(target2);
|
|
663
663
|
const rawKey = toRaw(key);
|
|
664
664
|
if (!isReadonly2) {
|
|
665
665
|
if (key !== rawKey) {
|
|
@@ -670,16 +670,16 @@ function get$2(target, key, isReadonly2 = false, isShallow2 = false) {
|
|
|
670
670
|
const { has: has2 } = getProto(rawTarget);
|
|
671
671
|
const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
|
|
672
672
|
if (has2.call(rawTarget, key)) {
|
|
673
|
-
return wrap(
|
|
673
|
+
return wrap(target2.get(key));
|
|
674
674
|
} else if (has2.call(rawTarget, rawKey)) {
|
|
675
|
-
return wrap(
|
|
676
|
-
} else if (
|
|
677
|
-
|
|
675
|
+
return wrap(target2.get(rawKey));
|
|
676
|
+
} else if (target2 !== rawTarget) {
|
|
677
|
+
target2.get(key);
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
680
|
function has$2(key, isReadonly2 = false) {
|
|
681
|
-
const
|
|
682
|
-
const rawTarget = toRaw(
|
|
681
|
+
const target2 = this["__v_raw"];
|
|
682
|
+
const rawTarget = toRaw(target2);
|
|
683
683
|
const rawKey = toRaw(key);
|
|
684
684
|
if (!isReadonly2) {
|
|
685
685
|
if (key !== rawKey) {
|
|
@@ -687,86 +687,86 @@ function has$2(key, isReadonly2 = false) {
|
|
|
687
687
|
}
|
|
688
688
|
track(rawTarget, "has", rawKey);
|
|
689
689
|
}
|
|
690
|
-
return key === rawKey ?
|
|
690
|
+
return key === rawKey ? target2.has(key) : target2.has(key) || target2.has(rawKey);
|
|
691
691
|
}
|
|
692
|
-
function size(
|
|
693
|
-
|
|
694
|
-
!isReadonly2 && track(toRaw(
|
|
695
|
-
return Reflect.get(
|
|
692
|
+
function size(target2, isReadonly2 = false) {
|
|
693
|
+
target2 = target2["__v_raw"];
|
|
694
|
+
!isReadonly2 && track(toRaw(target2), "iterate", ITERATE_KEY);
|
|
695
|
+
return Reflect.get(target2, "size", target2);
|
|
696
696
|
}
|
|
697
|
-
function add$
|
|
697
|
+
function add$2(value) {
|
|
698
698
|
value = toRaw(value);
|
|
699
|
-
const
|
|
700
|
-
const proto = getProto(
|
|
701
|
-
const hadKey = proto.has.call(
|
|
699
|
+
const target2 = toRaw(this);
|
|
700
|
+
const proto = getProto(target2);
|
|
701
|
+
const hadKey = proto.has.call(target2, value);
|
|
702
702
|
if (!hadKey) {
|
|
703
|
-
|
|
704
|
-
trigger(
|
|
703
|
+
target2.add(value);
|
|
704
|
+
trigger(target2, "add", value, value);
|
|
705
705
|
}
|
|
706
706
|
return this;
|
|
707
707
|
}
|
|
708
708
|
function set$2(key, value) {
|
|
709
709
|
value = toRaw(value);
|
|
710
|
-
const
|
|
711
|
-
const { has: has2, get: get2 } = getProto(
|
|
712
|
-
let hadKey = has2.call(
|
|
710
|
+
const target2 = toRaw(this);
|
|
711
|
+
const { has: has2, get: get2 } = getProto(target2);
|
|
712
|
+
let hadKey = has2.call(target2, key);
|
|
713
713
|
if (!hadKey) {
|
|
714
714
|
key = toRaw(key);
|
|
715
|
-
hadKey = has2.call(
|
|
715
|
+
hadKey = has2.call(target2, key);
|
|
716
716
|
}
|
|
717
|
-
const oldValue = get2.call(
|
|
718
|
-
|
|
717
|
+
const oldValue = get2.call(target2, key);
|
|
718
|
+
target2.set(key, value);
|
|
719
719
|
if (!hadKey) {
|
|
720
|
-
trigger(
|
|
720
|
+
trigger(target2, "add", key, value);
|
|
721
721
|
} else if (hasChanged(value, oldValue)) {
|
|
722
|
-
trigger(
|
|
722
|
+
trigger(target2, "set", key, value);
|
|
723
723
|
}
|
|
724
724
|
return this;
|
|
725
725
|
}
|
|
726
726
|
function deleteEntry(key) {
|
|
727
|
-
const
|
|
728
|
-
const { has: has2, get: get2 } = getProto(
|
|
729
|
-
let hadKey = has2.call(
|
|
727
|
+
const target2 = toRaw(this);
|
|
728
|
+
const { has: has2, get: get2 } = getProto(target2);
|
|
729
|
+
let hadKey = has2.call(target2, key);
|
|
730
730
|
if (!hadKey) {
|
|
731
731
|
key = toRaw(key);
|
|
732
|
-
hadKey = has2.call(
|
|
732
|
+
hadKey = has2.call(target2, key);
|
|
733
733
|
}
|
|
734
|
-
get2 ? get2.call(
|
|
735
|
-
const result =
|
|
734
|
+
get2 ? get2.call(target2, key) : void 0;
|
|
735
|
+
const result = target2.delete(key);
|
|
736
736
|
if (hadKey) {
|
|
737
|
-
trigger(
|
|
737
|
+
trigger(target2, "delete", key, void 0);
|
|
738
738
|
}
|
|
739
739
|
return result;
|
|
740
740
|
}
|
|
741
741
|
function clear() {
|
|
742
|
-
const
|
|
743
|
-
const hadItems =
|
|
744
|
-
const result =
|
|
742
|
+
const target2 = toRaw(this);
|
|
743
|
+
const hadItems = target2.size !== 0;
|
|
744
|
+
const result = target2.clear();
|
|
745
745
|
if (hadItems) {
|
|
746
|
-
trigger(
|
|
746
|
+
trigger(target2, "clear", void 0, void 0);
|
|
747
747
|
}
|
|
748
748
|
return result;
|
|
749
749
|
}
|
|
750
750
|
function createForEach(isReadonly2, isShallow2) {
|
|
751
|
-
return function
|
|
751
|
+
return function forEach2(callback, thisArg) {
|
|
752
752
|
const observed = this;
|
|
753
|
-
const
|
|
754
|
-
const rawTarget = toRaw(
|
|
753
|
+
const target2 = observed["__v_raw"];
|
|
754
|
+
const rawTarget = toRaw(target2);
|
|
755
755
|
const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
|
|
756
756
|
!isReadonly2 && track(rawTarget, "iterate", ITERATE_KEY);
|
|
757
|
-
return
|
|
757
|
+
return target2.forEach((value, key) => {
|
|
758
758
|
return callback.call(thisArg, wrap(value), wrap(key), observed);
|
|
759
759
|
});
|
|
760
760
|
};
|
|
761
761
|
}
|
|
762
762
|
function createIterableMethod(method, isReadonly2, isShallow2) {
|
|
763
763
|
return function(...args) {
|
|
764
|
-
const
|
|
765
|
-
const rawTarget = toRaw(
|
|
764
|
+
const target2 = this["__v_raw"];
|
|
765
|
+
const rawTarget = toRaw(target2);
|
|
766
766
|
const targetIsMap = isMap(rawTarget);
|
|
767
767
|
const isPair = method === "entries" || method === Symbol.iterator && targetIsMap;
|
|
768
768
|
const isKeyOnly = method === "keys" && targetIsMap;
|
|
769
|
-
const innerIterator =
|
|
769
|
+
const innerIterator = target2[method](...args);
|
|
770
770
|
const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
|
|
771
771
|
!isReadonly2 && track(rawTarget, "iterate", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);
|
|
772
772
|
return {
|
|
@@ -797,7 +797,7 @@ function createInstrumentations() {
|
|
|
797
797
|
return size(this);
|
|
798
798
|
},
|
|
799
799
|
has: has$2,
|
|
800
|
-
add: add$
|
|
800
|
+
add: add$2,
|
|
801
801
|
set: set$2,
|
|
802
802
|
delete: deleteEntry,
|
|
803
803
|
clear,
|
|
@@ -811,7 +811,7 @@ function createInstrumentations() {
|
|
|
811
811
|
return size(this);
|
|
812
812
|
},
|
|
813
813
|
has: has$2,
|
|
814
|
-
add: add$
|
|
814
|
+
add: add$2,
|
|
815
815
|
set: set$2,
|
|
816
816
|
delete: deleteEntry,
|
|
817
817
|
clear,
|
|
@@ -866,15 +866,15 @@ function createInstrumentations() {
|
|
|
866
866
|
const [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* @__PURE__ */ createInstrumentations();
|
|
867
867
|
function createInstrumentationGetter(isReadonly2, shallow) {
|
|
868
868
|
const instrumentations = shallow ? isReadonly2 ? shallowReadonlyInstrumentations : shallowInstrumentations : isReadonly2 ? readonlyInstrumentations : mutableInstrumentations;
|
|
869
|
-
return (
|
|
869
|
+
return (target2, key, receiver) => {
|
|
870
870
|
if (key === "__v_isReactive") {
|
|
871
871
|
return !isReadonly2;
|
|
872
872
|
} else if (key === "__v_isReadonly") {
|
|
873
873
|
return isReadonly2;
|
|
874
874
|
} else if (key === "__v_raw") {
|
|
875
|
-
return
|
|
875
|
+
return target2;
|
|
876
876
|
}
|
|
877
|
-
return Reflect.get(hasOwn(instrumentations, key) && key in
|
|
877
|
+
return Reflect.get(hasOwn(instrumentations, key) && key in target2 ? instrumentations : target2, key, receiver);
|
|
878
878
|
};
|
|
879
879
|
}
|
|
880
880
|
const mutableCollectionHandlers = {
|
|
@@ -907,35 +907,35 @@ function targetTypeMap(rawType) {
|
|
|
907
907
|
function getTargetType(value) {
|
|
908
908
|
return value["__v_skip"] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value));
|
|
909
909
|
}
|
|
910
|
-
function reactive(
|
|
911
|
-
if (isReadonly(
|
|
912
|
-
return
|
|
910
|
+
function reactive(target2) {
|
|
911
|
+
if (isReadonly(target2)) {
|
|
912
|
+
return target2;
|
|
913
913
|
}
|
|
914
|
-
return createReactiveObject(
|
|
914
|
+
return createReactiveObject(target2, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);
|
|
915
915
|
}
|
|
916
|
-
function shallowReactive(
|
|
917
|
-
return createReactiveObject(
|
|
916
|
+
function shallowReactive(target2) {
|
|
917
|
+
return createReactiveObject(target2, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);
|
|
918
918
|
}
|
|
919
|
-
function readonly(
|
|
920
|
-
return createReactiveObject(
|
|
919
|
+
function readonly(target2) {
|
|
920
|
+
return createReactiveObject(target2, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
|
|
921
921
|
}
|
|
922
|
-
function createReactiveObject(
|
|
923
|
-
if (!isObject$2(
|
|
924
|
-
return
|
|
922
|
+
function createReactiveObject(target2, isReadonly2, baseHandlers, collectionHandlers, proxyMap) {
|
|
923
|
+
if (!isObject$2(target2)) {
|
|
924
|
+
return target2;
|
|
925
925
|
}
|
|
926
|
-
if (
|
|
927
|
-
return
|
|
926
|
+
if (target2["__v_raw"] && !(isReadonly2 && target2["__v_isReactive"])) {
|
|
927
|
+
return target2;
|
|
928
928
|
}
|
|
929
|
-
const existingProxy = proxyMap.get(
|
|
929
|
+
const existingProxy = proxyMap.get(target2);
|
|
930
930
|
if (existingProxy) {
|
|
931
931
|
return existingProxy;
|
|
932
932
|
}
|
|
933
|
-
const targetType = getTargetType(
|
|
933
|
+
const targetType = getTargetType(target2);
|
|
934
934
|
if (targetType === 0) {
|
|
935
|
-
return
|
|
935
|
+
return target2;
|
|
936
936
|
}
|
|
937
|
-
const proxy = new Proxy(
|
|
938
|
-
proxyMap.set(
|
|
937
|
+
const proxy = new Proxy(target2, targetType === 2 ? collectionHandlers : baseHandlers);
|
|
938
|
+
proxyMap.set(target2, proxy);
|
|
939
939
|
return proxy;
|
|
940
940
|
}
|
|
941
941
|
function isReactive(value) {
|
|
@@ -1021,14 +1021,14 @@ function unref(ref2) {
|
|
|
1021
1021
|
return isRef(ref2) ? ref2.value : ref2;
|
|
1022
1022
|
}
|
|
1023
1023
|
const shallowUnwrapHandlers = {
|
|
1024
|
-
get: (
|
|
1025
|
-
set: (
|
|
1026
|
-
const oldValue =
|
|
1024
|
+
get: (target2, key, receiver) => unref(Reflect.get(target2, key, receiver)),
|
|
1025
|
+
set: (target2, key, value, receiver) => {
|
|
1026
|
+
const oldValue = target2[key];
|
|
1027
1027
|
if (isRef(oldValue) && !isRef(value)) {
|
|
1028
1028
|
oldValue.value = value;
|
|
1029
1029
|
return true;
|
|
1030
1030
|
} else {
|
|
1031
|
-
return Reflect.set(
|
|
1031
|
+
return Reflect.set(target2, key, value, receiver);
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
};
|
|
@@ -1438,28 +1438,28 @@ function renderComponentRoot(instance) {
|
|
|
1438
1438
|
handleError(err, instance, 1);
|
|
1439
1439
|
result = createVNode(Comment);
|
|
1440
1440
|
}
|
|
1441
|
-
let
|
|
1441
|
+
let root2 = result;
|
|
1442
1442
|
if (fallthroughAttrs && inheritAttrs !== false) {
|
|
1443
1443
|
const keys = Object.keys(fallthroughAttrs);
|
|
1444
|
-
const { shapeFlag } =
|
|
1444
|
+
const { shapeFlag } = root2;
|
|
1445
1445
|
if (keys.length) {
|
|
1446
1446
|
if (shapeFlag & (1 | 6)) {
|
|
1447
1447
|
if (propsOptions && keys.some(isModelListener)) {
|
|
1448
1448
|
fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOptions);
|
|
1449
1449
|
}
|
|
1450
|
-
|
|
1450
|
+
root2 = cloneVNode(root2, fallthroughAttrs);
|
|
1451
1451
|
}
|
|
1452
1452
|
}
|
|
1453
1453
|
}
|
|
1454
1454
|
if (vnode.dirs) {
|
|
1455
|
-
|
|
1456
|
-
|
|
1455
|
+
root2 = cloneVNode(root2);
|
|
1456
|
+
root2.dirs = root2.dirs ? root2.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
1457
1457
|
}
|
|
1458
1458
|
if (vnode.transition) {
|
|
1459
|
-
|
|
1459
|
+
root2.transition = vnode.transition;
|
|
1460
1460
|
}
|
|
1461
1461
|
{
|
|
1462
|
-
result =
|
|
1462
|
+
result = root2;
|
|
1463
1463
|
}
|
|
1464
1464
|
setCurrentRenderingInstance(prev);
|
|
1465
1465
|
return result;
|
|
@@ -1707,7 +1707,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
1707
1707
|
const unwatch = () => {
|
|
1708
1708
|
effect.stop();
|
|
1709
1709
|
if (instance && instance.scope) {
|
|
1710
|
-
remove(instance.scope.effects, effect);
|
|
1710
|
+
remove$1(instance.scope.effects, effect);
|
|
1711
1711
|
}
|
|
1712
1712
|
};
|
|
1713
1713
|
if (ssrCleanup)
|
|
@@ -1775,15 +1775,15 @@ function defineComponent(options2) {
|
|
|
1775
1775
|
}
|
|
1776
1776
|
const isAsyncWrapper = (i2) => !!i2.type.__asyncLoader;
|
|
1777
1777
|
const isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
|
|
1778
|
-
function onActivated(hook,
|
|
1779
|
-
registerKeepAliveHook(hook, "a",
|
|
1778
|
+
function onActivated(hook, target2) {
|
|
1779
|
+
registerKeepAliveHook(hook, "a", target2);
|
|
1780
1780
|
}
|
|
1781
|
-
function onDeactivated(hook,
|
|
1782
|
-
registerKeepAliveHook(hook, "da",
|
|
1781
|
+
function onDeactivated(hook, target2) {
|
|
1782
|
+
registerKeepAliveHook(hook, "da", target2);
|
|
1783
1783
|
}
|
|
1784
|
-
function registerKeepAliveHook(hook, type,
|
|
1784
|
+
function registerKeepAliveHook(hook, type, target2 = currentInstance) {
|
|
1785
1785
|
const wrappedHook = hook.__wdc || (hook.__wdc = () => {
|
|
1786
|
-
let current =
|
|
1786
|
+
let current = target2;
|
|
1787
1787
|
while (current) {
|
|
1788
1788
|
if (current.isDeactivated) {
|
|
1789
1789
|
return;
|
|
@@ -1792,33 +1792,33 @@ function registerKeepAliveHook(hook, type, target = currentInstance) {
|
|
|
1792
1792
|
}
|
|
1793
1793
|
return hook();
|
|
1794
1794
|
});
|
|
1795
|
-
injectHook(type, wrappedHook,
|
|
1796
|
-
if (
|
|
1797
|
-
let current =
|
|
1795
|
+
injectHook(type, wrappedHook, target2);
|
|
1796
|
+
if (target2) {
|
|
1797
|
+
let current = target2.parent;
|
|
1798
1798
|
while (current && current.parent) {
|
|
1799
1799
|
if (isKeepAlive(current.parent.vnode)) {
|
|
1800
|
-
injectToKeepAliveRoot(wrappedHook, type,
|
|
1800
|
+
injectToKeepAliveRoot(wrappedHook, type, target2, current);
|
|
1801
1801
|
}
|
|
1802
1802
|
current = current.parent;
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
|
-
function injectToKeepAliveRoot(hook, type,
|
|
1806
|
+
function injectToKeepAliveRoot(hook, type, target2, keepAliveRoot) {
|
|
1807
1807
|
const injected = injectHook(type, hook, keepAliveRoot, true);
|
|
1808
1808
|
onUnmounted(() => {
|
|
1809
|
-
remove(keepAliveRoot[type], injected);
|
|
1810
|
-
},
|
|
1809
|
+
remove$1(keepAliveRoot[type], injected);
|
|
1810
|
+
}, target2);
|
|
1811
1811
|
}
|
|
1812
|
-
function injectHook(type, hook,
|
|
1813
|
-
if (
|
|
1814
|
-
const hooks =
|
|
1812
|
+
function injectHook(type, hook, target2 = currentInstance, prepend = false) {
|
|
1813
|
+
if (target2) {
|
|
1814
|
+
const hooks = target2[type] || (target2[type] = []);
|
|
1815
1815
|
const wrappedHook = hook.__weh || (hook.__weh = (...args) => {
|
|
1816
|
-
if (
|
|
1816
|
+
if (target2.isUnmounted) {
|
|
1817
1817
|
return;
|
|
1818
1818
|
}
|
|
1819
1819
|
pauseTracking();
|
|
1820
|
-
setCurrentInstance(
|
|
1821
|
-
const res = callWithAsyncErrorHandling(hook,
|
|
1820
|
+
setCurrentInstance(target2);
|
|
1821
|
+
const res = callWithAsyncErrorHandling(hook, target2, type, args);
|
|
1822
1822
|
unsetCurrentInstance();
|
|
1823
1823
|
resetTracking();
|
|
1824
1824
|
return res;
|
|
@@ -1831,7 +1831,7 @@ function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
|
1831
1831
|
return wrappedHook;
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
|
-
const createHook = (lifecycle) => (hook,
|
|
1834
|
+
const createHook = (lifecycle) => (hook, target2 = currentInstance) => (!isInSSRComponentSetup || lifecycle === "sp") && injectHook(lifecycle, (...args) => hook(...args), target2);
|
|
1835
1835
|
const onBeforeMount = createHook("bm");
|
|
1836
1836
|
const onMounted = createHook("m");
|
|
1837
1837
|
const onBeforeUpdate = createHook("bu");
|
|
@@ -1841,8 +1841,8 @@ const onUnmounted = createHook("um");
|
|
|
1841
1841
|
const onServerPrefetch = createHook("sp");
|
|
1842
1842
|
const onRenderTriggered = createHook("rtg");
|
|
1843
1843
|
const onRenderTracked = createHook("rtc");
|
|
1844
|
-
function onErrorCaptured(hook,
|
|
1845
|
-
injectHook("ec", hook,
|
|
1844
|
+
function onErrorCaptured(hook, target2 = currentInstance) {
|
|
1845
|
+
injectHook("ec", hook, target2);
|
|
1846
1846
|
}
|
|
1847
1847
|
function withDirectives(vnode, directives) {
|
|
1848
1848
|
const internalInstance = currentRenderingInstance;
|
|
@@ -2094,13 +2094,13 @@ const PublicInstanceProxyHandlers = {
|
|
|
2094
2094
|
let normalizedProps;
|
|
2095
2095
|
return !!accessCache[key] || data !== EMPTY_OBJ && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key);
|
|
2096
2096
|
},
|
|
2097
|
-
defineProperty(
|
|
2097
|
+
defineProperty(target2, key, descriptor) {
|
|
2098
2098
|
if (descriptor.get != null) {
|
|
2099
|
-
|
|
2099
|
+
target2._.accessCache[key] = 0;
|
|
2100
2100
|
} else if (hasOwn(descriptor, "value")) {
|
|
2101
|
-
this.set(
|
|
2101
|
+
this.set(target2, key, descriptor.value, null);
|
|
2102
2102
|
}
|
|
2103
|
-
return Reflect.defineProperty(
|
|
2103
|
+
return Reflect.defineProperty(target2, key, descriptor);
|
|
2104
2104
|
}
|
|
2105
2105
|
};
|
|
2106
2106
|
let shouldCacheAccess = true;
|
|
@@ -2861,7 +2861,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
2861
2861
|
if (rawRef.f) {
|
|
2862
2862
|
const existing = _isString ? hasOwn(setupState, ref2) ? setupState[ref2] : refs[ref2] : ref2.value;
|
|
2863
2863
|
if (isUnmount) {
|
|
2864
|
-
isArray(existing) && remove(existing, refValue);
|
|
2864
|
+
isArray(existing) && remove$1(existing, refValue);
|
|
2865
2865
|
} else {
|
|
2866
2866
|
if (!isArray(existing)) {
|
|
2867
2867
|
if (_isString) {
|
|
@@ -2904,8 +2904,8 @@ function createRenderer(options2) {
|
|
|
2904
2904
|
return baseCreateRenderer(options2);
|
|
2905
2905
|
}
|
|
2906
2906
|
function baseCreateRenderer(options2, createHydrationFns) {
|
|
2907
|
-
const
|
|
2908
|
-
|
|
2907
|
+
const target2 = getGlobalThis();
|
|
2908
|
+
target2.__VUE__ = true;
|
|
2909
2909
|
const { insert: hostInsert, remove: hostRemove, patchProp: hostPatchProp, createElement: hostCreateElement, createText: hostCreateText, createComment: hostCreateComment, setText: hostSetText, setElementText: hostSetElementText, parentNode: hostParentNode, nextSibling: hostNextSibling, setScopeId: hostSetScopeId = NOOP, insertStaticContent: hostInsertStaticContent } = options2;
|
|
2910
2910
|
const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, isSVG = false, slotScopeIds = null, optimized = !!n2.dynamicChildren) => {
|
|
2911
2911
|
if (n1 === n2) {
|
|
@@ -4187,9 +4187,9 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
4187
4187
|
}
|
|
4188
4188
|
function createAttrsProxy(instance) {
|
|
4189
4189
|
return new Proxy(instance.attrs, {
|
|
4190
|
-
get(
|
|
4190
|
+
get(target2, key) {
|
|
4191
4191
|
track(instance, "get", "$attrs");
|
|
4192
|
-
return
|
|
4192
|
+
return target2[key];
|
|
4193
4193
|
}
|
|
4194
4194
|
});
|
|
4195
4195
|
}
|
|
@@ -4212,15 +4212,15 @@ function createSetupContext(instance) {
|
|
|
4212
4212
|
function getExposeProxy(instance) {
|
|
4213
4213
|
if (instance.exposed) {
|
|
4214
4214
|
return instance.exposeProxy || (instance.exposeProxy = new Proxy(proxyRefs(markRaw(instance.exposed)), {
|
|
4215
|
-
get(
|
|
4216
|
-
if (key in
|
|
4217
|
-
return
|
|
4215
|
+
get(target2, key) {
|
|
4216
|
+
if (key in target2) {
|
|
4217
|
+
return target2[key];
|
|
4218
4218
|
} else if (key in publicPropertiesMap) {
|
|
4219
4219
|
return publicPropertiesMap[key](instance);
|
|
4220
4220
|
}
|
|
4221
4221
|
},
|
|
4222
|
-
has(
|
|
4223
|
-
return key in
|
|
4222
|
+
has(target2, key) {
|
|
4223
|
+
return key in target2 || key in publicPropertiesMap;
|
|
4224
4224
|
}
|
|
4225
4225
|
}));
|
|
4226
4226
|
}
|
|
@@ -4577,10 +4577,10 @@ function onCompositionStart(e2) {
|
|
|
4577
4577
|
e2.target.composing = true;
|
|
4578
4578
|
}
|
|
4579
4579
|
function onCompositionEnd(e2) {
|
|
4580
|
-
const
|
|
4581
|
-
if (
|
|
4582
|
-
|
|
4583
|
-
|
|
4580
|
+
const target2 = e2.target;
|
|
4581
|
+
if (target2.composing) {
|
|
4582
|
+
target2.composing = false;
|
|
4583
|
+
target2.dispatchEvent(new Event("input"));
|
|
4584
4584
|
}
|
|
4585
4585
|
}
|
|
4586
4586
|
const vModelText = {
|
|
@@ -4739,7 +4739,7 @@ function dbg$1() {
|
|
|
4739
4739
|
const sleep = (time) => __async(void 0, null, function* () {
|
|
4740
4740
|
return new Promise((resolve2) => setTimeout(resolve2, time));
|
|
4741
4741
|
});
|
|
4742
|
-
const getCoords$
|
|
4742
|
+
const getCoords$2 = (elem) => {
|
|
4743
4743
|
let box2 = elem.getBoundingClientRect();
|
|
4744
4744
|
return {
|
|
4745
4745
|
top: box2.top + window.pageYOffset,
|
|
@@ -5417,31 +5417,38 @@ function syncListNodes$1(node, context) {
|
|
|
5417
5417
|
unused.delete(context.children[i2]);
|
|
5418
5418
|
} else {
|
|
5419
5419
|
newChildren.push(null);
|
|
5420
|
-
placeholderValues.
|
|
5420
|
+
const indexes = placeholderValues.get(value) || [];
|
|
5421
|
+
indexes.push(i2);
|
|
5422
|
+
placeholderValues.set(value, indexes);
|
|
5421
5423
|
}
|
|
5422
5424
|
});
|
|
5423
5425
|
if (unused.size && placeholderValues.size) {
|
|
5424
5426
|
unused.forEach((child) => {
|
|
5425
5427
|
if (placeholderValues.has(child._value)) {
|
|
5426
|
-
|
|
5428
|
+
const indexes = placeholderValues.get(child._value);
|
|
5429
|
+
const index2 = indexes.shift();
|
|
5430
|
+
newChildren[index2] = child;
|
|
5427
5431
|
unused.delete(child);
|
|
5428
|
-
|
|
5432
|
+
if (!indexes.length)
|
|
5433
|
+
placeholderValues.delete(child._value);
|
|
5429
5434
|
}
|
|
5430
5435
|
});
|
|
5431
5436
|
}
|
|
5432
|
-
|
|
5437
|
+
const emptyIndexes = [];
|
|
5438
|
+
placeholderValues.forEach((indexes) => {
|
|
5439
|
+
emptyIndexes.push(...indexes);
|
|
5440
|
+
});
|
|
5441
|
+
while (unused.size && emptyIndexes.length) {
|
|
5433
5442
|
const child = unused.values().next().value;
|
|
5434
|
-
const
|
|
5435
|
-
|
|
5443
|
+
const index2 = emptyIndexes.shift();
|
|
5444
|
+
if (index2 === void 0)
|
|
5445
|
+
break;
|
|
5436
5446
|
newChildren[index2] = child;
|
|
5437
5447
|
unused.delete(child);
|
|
5438
|
-
placeholderValues.delete(value);
|
|
5439
|
-
}
|
|
5440
|
-
if (placeholderValues.size) {
|
|
5441
|
-
placeholderValues.forEach((index2, value) => {
|
|
5442
|
-
newChildren[index2] = createPlaceholder$1({ value });
|
|
5443
|
-
});
|
|
5444
5448
|
}
|
|
5449
|
+
emptyIndexes.forEach((index2, value) => {
|
|
5450
|
+
newChildren[index2] = createPlaceholder$1({ value });
|
|
5451
|
+
});
|
|
5445
5452
|
if (unused.size) {
|
|
5446
5453
|
unused.forEach((child) => {
|
|
5447
5454
|
if (!("__FKP" in child)) {
|
|
@@ -5776,13 +5783,13 @@ function getRoot$1(n) {
|
|
|
5776
5783
|
}
|
|
5777
5784
|
return node;
|
|
5778
5785
|
}
|
|
5779
|
-
function createConfig$2(
|
|
5786
|
+
function createConfig$2(target2 = {}, parent) {
|
|
5780
5787
|
let node = void 0;
|
|
5781
|
-
return new Proxy(
|
|
5788
|
+
return new Proxy(target2, {
|
|
5782
5789
|
get(...args) {
|
|
5783
5790
|
const prop = args[1];
|
|
5784
5791
|
if (prop === "_t")
|
|
5785
|
-
return
|
|
5792
|
+
return target2;
|
|
5786
5793
|
const localValue = Reflect.get(...args);
|
|
5787
5794
|
if (localValue !== void 0)
|
|
5788
5795
|
return localValue;
|
|
@@ -5791,8 +5798,8 @@ function createConfig$2(target = {}, parent) {
|
|
|
5791
5798
|
if (parentVal !== void 0)
|
|
5792
5799
|
return parentVal;
|
|
5793
5800
|
}
|
|
5794
|
-
if (
|
|
5795
|
-
const rootValue =
|
|
5801
|
+
if (target2.rootConfig && typeof prop === "string") {
|
|
5802
|
+
const rootValue = target2.rootConfig[prop];
|
|
5796
5803
|
if (rootValue !== void 0)
|
|
5797
5804
|
return rootValue;
|
|
5798
5805
|
}
|
|
@@ -5805,17 +5812,17 @@ function createConfig$2(target = {}, parent) {
|
|
|
5805
5812
|
const value = args[2];
|
|
5806
5813
|
if (prop === "_n") {
|
|
5807
5814
|
node = value;
|
|
5808
|
-
if (
|
|
5809
|
-
|
|
5815
|
+
if (target2.rootConfig)
|
|
5816
|
+
target2.rootConfig._add(node);
|
|
5810
5817
|
return true;
|
|
5811
5818
|
}
|
|
5812
5819
|
if (prop === "_rmn") {
|
|
5813
|
-
if (
|
|
5814
|
-
|
|
5820
|
+
if (target2.rootConfig)
|
|
5821
|
+
target2.rootConfig._rm(node);
|
|
5815
5822
|
node = void 0;
|
|
5816
5823
|
return true;
|
|
5817
5824
|
}
|
|
5818
|
-
if (!eq$1(
|
|
5825
|
+
if (!eq$1(target2[prop], value, false)) {
|
|
5819
5826
|
const didSet = Reflect.set(...args);
|
|
5820
5827
|
if (node) {
|
|
5821
5828
|
node.emit(`config:${prop}`, value, false);
|
|
@@ -5934,10 +5941,10 @@ function useSteps() {
|
|
|
5934
5941
|
}
|
|
5935
5942
|
if (el) {
|
|
5936
5943
|
var __tempEl__ = document.createElement("input");
|
|
5937
|
-
var
|
|
5944
|
+
var coords2 = getCoords$2(el);
|
|
5938
5945
|
__tempEl__.style.position = "absolute";
|
|
5939
|
-
__tempEl__.style.top =
|
|
5940
|
-
__tempEl__.style.left =
|
|
5946
|
+
__tempEl__.style.top = coords2.top + 7 + "px";
|
|
5947
|
+
__tempEl__.style.left = coords2.left + "px";
|
|
5941
5948
|
__tempEl__.style.height = 0;
|
|
5942
5949
|
__tempEl__.style.opacity = 0;
|
|
5943
5950
|
document.body.appendChild(__tempEl__);
|
|
@@ -6090,10 +6097,10 @@ function useSteps() {
|
|
|
6090
6097
|
return { stepPlugin: stepPlugin2, steps: steps2, stepHistory: stepHistory2, stepQueue: stepQueue2, enabledSteps: enabledSteps2, defaultOrder: defaultOrder2, activeStep: activeStep2, firstStep: firstStep2, lastStep: lastStep2, setStep: setStep2, setStepQueue, setNextStep: setNextStep2, setPreviousStep: setPreviousStep2 };
|
|
6091
6098
|
}
|
|
6092
6099
|
let { prepopPlugin } = usePrepop();
|
|
6093
|
-
let { stepPlugin, steps, stepHistory, stepQueue, enabledSteps, defaultOrder, activeStep, firstStep, lastStep, setStep, setNextStep, setPreviousStep } = useSteps();
|
|
6100
|
+
let { stepPlugin, steps: steps$1, stepHistory, stepQueue, enabledSteps, defaultOrder, activeStep, firstStep, lastStep, setStep, setNextStep, setPreviousStep } = useSteps();
|
|
6094
6101
|
const urlParams$2 = new URLSearchParams(window.location.search);
|
|
6095
6102
|
const dataDefaults = {
|
|
6096
|
-
steps,
|
|
6103
|
+
steps: steps$1,
|
|
6097
6104
|
activeStep,
|
|
6098
6105
|
stepHistory,
|
|
6099
6106
|
stepQueue,
|
|
@@ -6120,7 +6127,7 @@ const dataDefaults = {
|
|
|
6120
6127
|
return setStep({ nextStep, validate: validate2, autoFocus, preStep });
|
|
6121
6128
|
},
|
|
6122
6129
|
stepIsValid: (stepName) => {
|
|
6123
|
-
return steps[stepName].valid && steps[stepName].errorCount === 0;
|
|
6130
|
+
return steps$1[stepName].valid && steps$1[stepName].errorCount === 0;
|
|
6124
6131
|
},
|
|
6125
6132
|
stepIsEnabled: (stepName) => {
|
|
6126
6133
|
if (!enabledSteps().length) {
|
|
@@ -6884,8 +6891,8 @@ function createLedger() {
|
|
|
6884
6891
|
count: (...args) => createCounter(n, ledger, ...args),
|
|
6885
6892
|
init(node) {
|
|
6886
6893
|
n = node;
|
|
6887
|
-
node.on("message-added.deep", add(ledger, 1));
|
|
6888
|
-
node.on("message-removed.deep", add(ledger, -1));
|
|
6894
|
+
node.on("message-added.deep", add$1(ledger, 1));
|
|
6895
|
+
node.on("message-removed.deep", add$1(ledger, -1));
|
|
6889
6896
|
},
|
|
6890
6897
|
merge: (child) => merge(n, ledger, child),
|
|
6891
6898
|
settled(counterName) {
|
|
@@ -6938,7 +6945,7 @@ function count(counter, increment) {
|
|
|
6938
6945
|
counter.node.emit(`count:${counter.name}`, counter.count, false);
|
|
6939
6946
|
return counter;
|
|
6940
6947
|
}
|
|
6941
|
-
function add(ledger, delta) {
|
|
6948
|
+
function add$1(ledger, delta) {
|
|
6942
6949
|
return (e2) => {
|
|
6943
6950
|
for (const name in ledger) {
|
|
6944
6951
|
const counter = ledger[name];
|
|
@@ -7008,11 +7015,11 @@ function configChange(node, prop, value) {
|
|
|
7008
7015
|
}
|
|
7009
7016
|
function createConfig$1(options2 = {}) {
|
|
7010
7017
|
const nodes = /* @__PURE__ */ new Set();
|
|
7011
|
-
const
|
|
7018
|
+
const target2 = __spreadValues(__spreadValues({}, options2), {
|
|
7012
7019
|
_add: (node) => nodes.add(node),
|
|
7013
7020
|
_rm: (node) => nodes.delete(node)
|
|
7014
7021
|
});
|
|
7015
|
-
const rootConfig = new Proxy(
|
|
7022
|
+
const rootConfig = new Proxy(target2, {
|
|
7016
7023
|
set(t2, prop, value, r) {
|
|
7017
7024
|
if (typeof prop === "string") {
|
|
7018
7025
|
nodes.forEach((node) => configChange(node, prop, value));
|
|
@@ -7252,31 +7259,38 @@ function syncListNodes(node, context) {
|
|
|
7252
7259
|
unused.delete(context.children[i2]);
|
|
7253
7260
|
} else {
|
|
7254
7261
|
newChildren.push(null);
|
|
7255
|
-
placeholderValues.
|
|
7262
|
+
const indexes = placeholderValues.get(value) || [];
|
|
7263
|
+
indexes.push(i2);
|
|
7264
|
+
placeholderValues.set(value, indexes);
|
|
7256
7265
|
}
|
|
7257
7266
|
});
|
|
7258
7267
|
if (unused.size && placeholderValues.size) {
|
|
7259
7268
|
unused.forEach((child) => {
|
|
7260
7269
|
if (placeholderValues.has(child._value)) {
|
|
7261
|
-
|
|
7270
|
+
const indexes = placeholderValues.get(child._value);
|
|
7271
|
+
const index2 = indexes.shift();
|
|
7272
|
+
newChildren[index2] = child;
|
|
7262
7273
|
unused.delete(child);
|
|
7263
|
-
|
|
7274
|
+
if (!indexes.length)
|
|
7275
|
+
placeholderValues.delete(child._value);
|
|
7264
7276
|
}
|
|
7265
7277
|
});
|
|
7266
7278
|
}
|
|
7267
|
-
|
|
7279
|
+
const emptyIndexes = [];
|
|
7280
|
+
placeholderValues.forEach((indexes) => {
|
|
7281
|
+
emptyIndexes.push(...indexes);
|
|
7282
|
+
});
|
|
7283
|
+
while (unused.size && emptyIndexes.length) {
|
|
7268
7284
|
const child = unused.values().next().value;
|
|
7269
|
-
const
|
|
7270
|
-
|
|
7285
|
+
const index2 = emptyIndexes.shift();
|
|
7286
|
+
if (index2 === void 0)
|
|
7287
|
+
break;
|
|
7271
7288
|
newChildren[index2] = child;
|
|
7272
7289
|
unused.delete(child);
|
|
7273
|
-
placeholderValues.delete(value);
|
|
7274
|
-
}
|
|
7275
|
-
if (placeholderValues.size) {
|
|
7276
|
-
placeholderValues.forEach((index2, value) => {
|
|
7277
|
-
newChildren[index2] = createPlaceholder({ value });
|
|
7278
|
-
});
|
|
7279
7290
|
}
|
|
7291
|
+
emptyIndexes.forEach((index2, value) => {
|
|
7292
|
+
newChildren[index2] = createPlaceholder({ value });
|
|
7293
|
+
});
|
|
7280
7294
|
if (unused.size) {
|
|
7281
7295
|
unused.forEach((child) => {
|
|
7282
7296
|
if (!("__FKP" in child)) {
|
|
@@ -7611,13 +7625,13 @@ function getRoot(n) {
|
|
|
7611
7625
|
}
|
|
7612
7626
|
return node;
|
|
7613
7627
|
}
|
|
7614
|
-
function createConfig(
|
|
7628
|
+
function createConfig(target2 = {}, parent) {
|
|
7615
7629
|
let node = void 0;
|
|
7616
|
-
return new Proxy(
|
|
7630
|
+
return new Proxy(target2, {
|
|
7617
7631
|
get(...args) {
|
|
7618
7632
|
const prop = args[1];
|
|
7619
7633
|
if (prop === "_t")
|
|
7620
|
-
return
|
|
7634
|
+
return target2;
|
|
7621
7635
|
const localValue = Reflect.get(...args);
|
|
7622
7636
|
if (localValue !== void 0)
|
|
7623
7637
|
return localValue;
|
|
@@ -7626,8 +7640,8 @@ function createConfig(target = {}, parent) {
|
|
|
7626
7640
|
if (parentVal !== void 0)
|
|
7627
7641
|
return parentVal;
|
|
7628
7642
|
}
|
|
7629
|
-
if (
|
|
7630
|
-
const rootValue =
|
|
7643
|
+
if (target2.rootConfig && typeof prop === "string") {
|
|
7644
|
+
const rootValue = target2.rootConfig[prop];
|
|
7631
7645
|
if (rootValue !== void 0)
|
|
7632
7646
|
return rootValue;
|
|
7633
7647
|
}
|
|
@@ -7640,17 +7654,17 @@ function createConfig(target = {}, parent) {
|
|
|
7640
7654
|
const value = args[2];
|
|
7641
7655
|
if (prop === "_n") {
|
|
7642
7656
|
node = value;
|
|
7643
|
-
if (
|
|
7644
|
-
|
|
7657
|
+
if (target2.rootConfig)
|
|
7658
|
+
target2.rootConfig._add(node);
|
|
7645
7659
|
return true;
|
|
7646
7660
|
}
|
|
7647
7661
|
if (prop === "_rmn") {
|
|
7648
|
-
if (
|
|
7649
|
-
|
|
7662
|
+
if (target2.rootConfig)
|
|
7663
|
+
target2.rootConfig._rm(node);
|
|
7650
7664
|
node = void 0;
|
|
7651
7665
|
return true;
|
|
7652
7666
|
}
|
|
7653
|
-
if (!eq(
|
|
7667
|
+
if (!eq(target2[prop], value, false)) {
|
|
7654
7668
|
const didSet = Reflect.set(...args);
|
|
7655
7669
|
if (node) {
|
|
7656
7670
|
node.emit(`config:${prop}`, value, false);
|
|
@@ -7725,7 +7739,7 @@ function createProps(initial) {
|
|
|
7725
7739
|
return node.config[prop];
|
|
7726
7740
|
return void 0;
|
|
7727
7741
|
},
|
|
7728
|
-
set(
|
|
7742
|
+
set(target2, property, originalValue, receiver) {
|
|
7729
7743
|
if (property === "_n") {
|
|
7730
7744
|
node = originalValue;
|
|
7731
7745
|
return true;
|
|
@@ -7739,7 +7753,7 @@ function createProps(initial) {
|
|
|
7739
7753
|
value: originalValue
|
|
7740
7754
|
});
|
|
7741
7755
|
if (!eq(props2[prop], value, false) || typeof value === "object") {
|
|
7742
|
-
const didSet = Reflect.set(
|
|
7756
|
+
const didSet = Reflect.set(target2, prop, value, receiver);
|
|
7743
7757
|
if (isEmitting) {
|
|
7744
7758
|
node.emit("prop", { prop, value });
|
|
7745
7759
|
if (typeof prop === "string")
|
|
@@ -8228,7 +8242,7 @@ function clearErrors(id, clearChildren = true) {
|
|
|
8228
8242
|
warn(652, id);
|
|
8229
8243
|
}
|
|
8230
8244
|
}
|
|
8231
|
-
const FORMKIT_VERSION = "0.17.
|
|
8245
|
+
const FORMKIT_VERSION = "0.17.2";
|
|
8232
8246
|
function createLibraryPlugin(...libraries) {
|
|
8233
8247
|
const library = libraries.reduce((merged, lib) => extend$1(merged, lib), {});
|
|
8234
8248
|
const plugin2 = () => {
|
|
@@ -8288,7 +8302,7 @@ function shouldSelect(valueA, valueB) {
|
|
|
8288
8302
|
return eq(valueA, valueB);
|
|
8289
8303
|
return false;
|
|
8290
8304
|
}
|
|
8291
|
-
function options(node) {
|
|
8305
|
+
function options$1(node) {
|
|
8292
8306
|
node.hook.prop((prop, next) => {
|
|
8293
8307
|
if (prop.prop === "options") {
|
|
8294
8308
|
if (typeof prop.value === "function") {
|
|
@@ -8923,8 +8937,8 @@ function deferChange(node, e2) {
|
|
|
8923
8937
|
});
|
|
8924
8938
|
}
|
|
8925
8939
|
function selectInput(node, e2) {
|
|
8926
|
-
const
|
|
8927
|
-
const value =
|
|
8940
|
+
const target2 = e2.target;
|
|
8941
|
+
const value = target2.hasAttribute("multiple") ? Array.from(target2.selectedOptions).map((o) => optionValue(node.props.options, o.value)) : optionValue(node.props.options, target2.value);
|
|
8928
8942
|
node.input(value);
|
|
8929
8943
|
}
|
|
8930
8944
|
function applyPlaceholder(options2, placeholder) {
|
|
@@ -9083,7 +9097,7 @@ const checkbox = {
|
|
|
9083
9097
|
family: "box",
|
|
9084
9098
|
props: ["options", "onValue", "offValue", "optionsLoader"],
|
|
9085
9099
|
features: [
|
|
9086
|
-
options,
|
|
9100
|
+
options$1,
|
|
9087
9101
|
checkboxes,
|
|
9088
9102
|
defaultIcon("decorator", "checkboxDecorator")
|
|
9089
9103
|
],
|
|
@@ -9158,7 +9172,7 @@ const radio = {
|
|
|
9158
9172
|
props: ["options", "onValue", "offValue", "optionsLoader"],
|
|
9159
9173
|
features: [
|
|
9160
9174
|
disables,
|
|
9161
|
-
options,
|
|
9175
|
+
options$1,
|
|
9162
9176
|
radios,
|
|
9163
9177
|
defaultIcon("decorator", "radioDecorator")
|
|
9164
9178
|
],
|
|
@@ -9168,7 +9182,7 @@ const select = {
|
|
|
9168
9182
|
schema: outer(wrapper(label("$label"), inner(icon("prefix"), prefix(), selectInput$1($if("$slots.default", () => "$slots.default", $if("$slots.option", optionSlot, option("$option.label")))), $if("$attrs.multiple !== undefined", () => "", icon("select")), suffix(), icon("suffix"))), help("$help"), messages$1(message$1("$message.value"))),
|
|
9169
9183
|
type: "input",
|
|
9170
9184
|
props: ["options", "placeholder", "optionsLoader"],
|
|
9171
|
-
features: [options, select$1, defaultIcon("select", "select")],
|
|
9185
|
+
features: [options$1, select$1, defaultIcon("select", "select")],
|
|
9172
9186
|
schemaMemoKey: "cb119h43krg"
|
|
9173
9187
|
};
|
|
9174
9188
|
const textarea = {
|
|
@@ -10459,7 +10473,7 @@ const memo = {};
|
|
|
10459
10473
|
const memoKeys = {};
|
|
10460
10474
|
let instanceKey;
|
|
10461
10475
|
const instanceScopes = /* @__PURE__ */ new WeakMap();
|
|
10462
|
-
const raw = "__raw__";
|
|
10476
|
+
const raw$1 = "__raw__";
|
|
10463
10477
|
const isClassProp = /[a-zA-Z0-9\-][cC]lass$/;
|
|
10464
10478
|
function getRef(token2, data) {
|
|
10465
10479
|
const value = ref(null);
|
|
@@ -10507,9 +10521,9 @@ function get(nodeRefs, id) {
|
|
|
10507
10521
|
nodeRefs[id] = ref(void 0);
|
|
10508
10522
|
if (nodeRefs[id].value === void 0) {
|
|
10509
10523
|
nodeRefs[id].value = null;
|
|
10510
|
-
const
|
|
10511
|
-
if (
|
|
10512
|
-
nodeRefs[id].value =
|
|
10524
|
+
const root2 = getNode$1(id);
|
|
10525
|
+
if (root2)
|
|
10526
|
+
nodeRefs[id].value = root2.context;
|
|
10513
10527
|
watchRegistry(id, ({ payload: node }) => {
|
|
10514
10528
|
nodeRefs[id].value = isNode(node) ? node.context : node;
|
|
10515
10529
|
});
|
|
@@ -10568,7 +10582,7 @@ function parseSchema(library, schema, memoKey) {
|
|
|
10568
10582
|
const value = unparsedAttrs[attr];
|
|
10569
10583
|
let getValue2;
|
|
10570
10584
|
const isStr = typeof value === "string";
|
|
10571
|
-
if (attr.startsWith(raw)) {
|
|
10585
|
+
if (attr.startsWith(raw$1)) {
|
|
10572
10586
|
attr = attr.substring(7);
|
|
10573
10587
|
getValue2 = () => value;
|
|
10574
10588
|
} else if (isStr && value.startsWith("$") && value.length > 1 && !(value.startsWith("$reset") && isClassProp.test(attr))) {
|
|
@@ -11229,7 +11243,7 @@ function useInput(props2, context, options2 = {}) {
|
|
|
11229
11243
|
}
|
|
11230
11244
|
if (isVModeled && node.context) {
|
|
11231
11245
|
clonedValueBeforeVmodel = cloneAny(node.value);
|
|
11232
|
-
context.emit("update:modelValue", node.value);
|
|
11246
|
+
context.emit("update:modelValue", shallowClone(node.value));
|
|
11233
11247
|
}
|
|
11234
11248
|
});
|
|
11235
11249
|
if (isVModeled) {
|
|
@@ -11269,6 +11283,9 @@ function createInput(schemaOrComponent, definitionOptions = {}) {
|
|
|
11269
11283
|
schema = createSection("input", () => cloneAny(schemaOrComponent));
|
|
11270
11284
|
}
|
|
11271
11285
|
definition2.schema = useSchema(schema || "Schema undefined");
|
|
11286
|
+
if (!definition2.schemaMemoKey) {
|
|
11287
|
+
definition2.schemaMemoKey = `${Math.random()}`;
|
|
11288
|
+
}
|
|
11272
11289
|
return definition2;
|
|
11273
11290
|
}
|
|
11274
11291
|
const messages = createSection("messages", () => ({
|
|
@@ -11388,10 +11405,10 @@ const vueBindings = function vueBindings2(node) {
|
|
|
11388
11405
|
const cachedClasses = reactive({});
|
|
11389
11406
|
const classes = new Proxy(cachedClasses, {
|
|
11390
11407
|
get(...args) {
|
|
11391
|
-
const [
|
|
11408
|
+
const [target2, property] = args;
|
|
11392
11409
|
let className = Reflect.get(...args);
|
|
11393
11410
|
if (!className && typeof property === "string") {
|
|
11394
|
-
if (!has(
|
|
11411
|
+
if (!has(target2, property) && !property.startsWith("__v")) {
|
|
11395
11412
|
const observedNode = createObserver(node);
|
|
11396
11413
|
observedNode.watch((node2) => {
|
|
11397
11414
|
const rootClasses = typeof node2.config.rootClasses === "function" ? node2.config.rootClasses(property, node2) : {};
|
|
@@ -11399,7 +11416,7 @@ const vueBindings = function vueBindings2(node) {
|
|
|
11399
11416
|
const classesPropClasses = createClasses(property, node2, node2.props[`_${property}Class`]);
|
|
11400
11417
|
const sectionPropClasses = createClasses(property, node2, node2.props[`${property}Class`]);
|
|
11401
11418
|
className = generateClassList(node2, property, rootClasses, globalConfigClasses, classesPropClasses, sectionPropClasses);
|
|
11402
|
-
|
|
11419
|
+
target2[property] = className !== null && className !== void 0 ? className : "";
|
|
11403
11420
|
});
|
|
11404
11421
|
}
|
|
11405
11422
|
}
|
|
@@ -11539,8 +11556,12 @@ const vueBindings = function vueBindings2(node) {
|
|
|
11539
11556
|
}
|
|
11540
11557
|
});
|
|
11541
11558
|
node.on("commitRaw", ({ payload }) => {
|
|
11542
|
-
|
|
11543
|
-
|
|
11559
|
+
if (node.type !== "input" && !isRef(payload) && !isReactive(payload)) {
|
|
11560
|
+
value.value = _value.value = shallowClone(payload);
|
|
11561
|
+
} else {
|
|
11562
|
+
value.value = _value.value = payload;
|
|
11563
|
+
triggerRef(value);
|
|
11564
|
+
}
|
|
11544
11565
|
node.emit("modelUpdated");
|
|
11545
11566
|
});
|
|
11546
11567
|
node.on("commit", () => {
|
|
@@ -11669,6 +11690,623 @@ defineComponent({
|
|
|
11669
11690
|
};
|
|
11670
11691
|
}
|
|
11671
11692
|
});
|
|
11693
|
+
const parents = /* @__PURE__ */ new Set();
|
|
11694
|
+
const coords = /* @__PURE__ */ new WeakMap();
|
|
11695
|
+
const siblings = /* @__PURE__ */ new WeakMap();
|
|
11696
|
+
const animations = /* @__PURE__ */ new WeakMap();
|
|
11697
|
+
const intersections = /* @__PURE__ */ new WeakMap();
|
|
11698
|
+
const options = /* @__PURE__ */ new WeakMap();
|
|
11699
|
+
const debounces = /* @__PURE__ */ new WeakMap();
|
|
11700
|
+
const enabled = /* @__PURE__ */ new WeakSet();
|
|
11701
|
+
let root;
|
|
11702
|
+
const TGT = "__aa_tgt";
|
|
11703
|
+
const DEL = "__aa_del";
|
|
11704
|
+
const handleMutations = (mutations) => {
|
|
11705
|
+
const elements = getElements(mutations);
|
|
11706
|
+
if (elements) {
|
|
11707
|
+
elements.forEach((el) => animate(el));
|
|
11708
|
+
}
|
|
11709
|
+
};
|
|
11710
|
+
const handleResizes = (entries) => {
|
|
11711
|
+
entries.forEach((entry) => {
|
|
11712
|
+
if (entry.target === root)
|
|
11713
|
+
updateAllPos();
|
|
11714
|
+
if (coords.has(entry.target))
|
|
11715
|
+
updatePos(entry.target);
|
|
11716
|
+
});
|
|
11717
|
+
};
|
|
11718
|
+
function observePosition(el) {
|
|
11719
|
+
const oldObserver = intersections.get(el);
|
|
11720
|
+
oldObserver === null || oldObserver === void 0 ? void 0 : oldObserver.disconnect();
|
|
11721
|
+
let rect = coords.get(el);
|
|
11722
|
+
let invocations = 0;
|
|
11723
|
+
const buffer = 5;
|
|
11724
|
+
if (!rect) {
|
|
11725
|
+
rect = getCoords$1(el);
|
|
11726
|
+
coords.set(el, rect);
|
|
11727
|
+
}
|
|
11728
|
+
const { offsetWidth, offsetHeight } = root;
|
|
11729
|
+
const rootMargins = [
|
|
11730
|
+
rect.top - buffer,
|
|
11731
|
+
offsetWidth - (rect.left + buffer + rect.width),
|
|
11732
|
+
offsetHeight - (rect.top + buffer + rect.height),
|
|
11733
|
+
rect.left - buffer
|
|
11734
|
+
];
|
|
11735
|
+
const rootMargin = rootMargins.map((px) => `${-1 * Math.floor(px)}px`).join(" ");
|
|
11736
|
+
const observer = new IntersectionObserver(() => {
|
|
11737
|
+
++invocations > 1 && updatePos(el);
|
|
11738
|
+
}, {
|
|
11739
|
+
root,
|
|
11740
|
+
threshold: 1,
|
|
11741
|
+
rootMargin
|
|
11742
|
+
});
|
|
11743
|
+
observer.observe(el);
|
|
11744
|
+
intersections.set(el, observer);
|
|
11745
|
+
}
|
|
11746
|
+
function updatePos(el) {
|
|
11747
|
+
clearTimeout(debounces.get(el));
|
|
11748
|
+
const optionsOrPlugin = getOptions(el);
|
|
11749
|
+
const delay = typeof optionsOrPlugin === "function" ? 500 : optionsOrPlugin.duration;
|
|
11750
|
+
debounces.set(el, setTimeout(() => __async(this, null, function* () {
|
|
11751
|
+
const currentAnimation = animations.get(el);
|
|
11752
|
+
try {
|
|
11753
|
+
yield currentAnimation === null || currentAnimation === void 0 ? void 0 : currentAnimation.finished;
|
|
11754
|
+
coords.set(el, getCoords$1(el));
|
|
11755
|
+
observePosition(el);
|
|
11756
|
+
} catch (e2) {
|
|
11757
|
+
}
|
|
11758
|
+
}), delay));
|
|
11759
|
+
}
|
|
11760
|
+
function updateAllPos() {
|
|
11761
|
+
clearTimeout(debounces.get(root));
|
|
11762
|
+
debounces.set(root, setTimeout(() => {
|
|
11763
|
+
parents.forEach((parent) => forEach(parent, (el) => lowPriority(() => updatePos(el))));
|
|
11764
|
+
}, 100));
|
|
11765
|
+
}
|
|
11766
|
+
function lowPriority(callback) {
|
|
11767
|
+
if (typeof requestIdleCallback === "function") {
|
|
11768
|
+
requestIdleCallback(() => callback());
|
|
11769
|
+
} else {
|
|
11770
|
+
requestAnimationFrame(() => callback());
|
|
11771
|
+
}
|
|
11772
|
+
}
|
|
11773
|
+
let resize;
|
|
11774
|
+
if (typeof window !== "undefined") {
|
|
11775
|
+
root = document.documentElement;
|
|
11776
|
+
new MutationObserver(handleMutations);
|
|
11777
|
+
resize = new ResizeObserver(handleResizes);
|
|
11778
|
+
resize.observe(root);
|
|
11779
|
+
}
|
|
11780
|
+
function getElements(mutations) {
|
|
11781
|
+
const observedNodes = mutations.reduce((nodes, mutation) => {
|
|
11782
|
+
return [
|
|
11783
|
+
...nodes,
|
|
11784
|
+
...Array.from(mutation.addedNodes),
|
|
11785
|
+
...Array.from(mutation.removedNodes)
|
|
11786
|
+
];
|
|
11787
|
+
}, []);
|
|
11788
|
+
const onlyCommentNodesObserved = observedNodes.every((node) => node.nodeName === "#comment");
|
|
11789
|
+
if (onlyCommentNodesObserved)
|
|
11790
|
+
return false;
|
|
11791
|
+
return mutations.reduce((elements, mutation) => {
|
|
11792
|
+
if (elements === false)
|
|
11793
|
+
return false;
|
|
11794
|
+
if (mutation.target instanceof Element) {
|
|
11795
|
+
target(mutation.target);
|
|
11796
|
+
if (!elements.has(mutation.target)) {
|
|
11797
|
+
elements.add(mutation.target);
|
|
11798
|
+
for (let i2 = 0; i2 < mutation.target.children.length; i2++) {
|
|
11799
|
+
const child = mutation.target.children.item(i2);
|
|
11800
|
+
if (!child)
|
|
11801
|
+
continue;
|
|
11802
|
+
if (DEL in child)
|
|
11803
|
+
return false;
|
|
11804
|
+
target(mutation.target, child);
|
|
11805
|
+
elements.add(child);
|
|
11806
|
+
}
|
|
11807
|
+
}
|
|
11808
|
+
if (mutation.removedNodes.length) {
|
|
11809
|
+
for (let i2 = 0; i2 < mutation.removedNodes.length; i2++) {
|
|
11810
|
+
const child = mutation.removedNodes[i2];
|
|
11811
|
+
if (DEL in child)
|
|
11812
|
+
return false;
|
|
11813
|
+
if (child instanceof Element) {
|
|
11814
|
+
elements.add(child);
|
|
11815
|
+
target(mutation.target, child);
|
|
11816
|
+
siblings.set(child, [
|
|
11817
|
+
mutation.previousSibling,
|
|
11818
|
+
mutation.nextSibling
|
|
11819
|
+
]);
|
|
11820
|
+
}
|
|
11821
|
+
}
|
|
11822
|
+
}
|
|
11823
|
+
}
|
|
11824
|
+
return elements;
|
|
11825
|
+
}, /* @__PURE__ */ new Set());
|
|
11826
|
+
}
|
|
11827
|
+
function target(el, child) {
|
|
11828
|
+
if (!child && !(TGT in el))
|
|
11829
|
+
Object.defineProperty(el, TGT, { value: el });
|
|
11830
|
+
else if (child && !(TGT in child))
|
|
11831
|
+
Object.defineProperty(child, TGT, { value: el });
|
|
11832
|
+
}
|
|
11833
|
+
function animate(el) {
|
|
11834
|
+
var _a;
|
|
11835
|
+
const isMounted = el.isConnected;
|
|
11836
|
+
const preExisting = coords.has(el);
|
|
11837
|
+
if (isMounted && siblings.has(el))
|
|
11838
|
+
siblings.delete(el);
|
|
11839
|
+
if (animations.has(el)) {
|
|
11840
|
+
(_a = animations.get(el)) === null || _a === void 0 ? void 0 : _a.cancel();
|
|
11841
|
+
}
|
|
11842
|
+
if (preExisting && isMounted) {
|
|
11843
|
+
remain(el);
|
|
11844
|
+
} else if (preExisting && !isMounted) {
|
|
11845
|
+
remove(el);
|
|
11846
|
+
} else {
|
|
11847
|
+
add(el);
|
|
11848
|
+
}
|
|
11849
|
+
}
|
|
11850
|
+
function raw(str) {
|
|
11851
|
+
return Number(str.replace(/[^0-9.\-]/g, ""));
|
|
11852
|
+
}
|
|
11853
|
+
function getCoords$1(el) {
|
|
11854
|
+
const rect = el.getBoundingClientRect();
|
|
11855
|
+
return {
|
|
11856
|
+
top: rect.top + window.scrollY,
|
|
11857
|
+
left: rect.left + window.scrollX,
|
|
11858
|
+
width: rect.width,
|
|
11859
|
+
height: rect.height
|
|
11860
|
+
};
|
|
11861
|
+
}
|
|
11862
|
+
function getTransitionSizes(el, oldCoords, newCoords) {
|
|
11863
|
+
let widthFrom = oldCoords.width;
|
|
11864
|
+
let heightFrom = oldCoords.height;
|
|
11865
|
+
let widthTo = newCoords.width;
|
|
11866
|
+
let heightTo = newCoords.height;
|
|
11867
|
+
const styles = getComputedStyle(el);
|
|
11868
|
+
const sizing = styles.getPropertyValue("box-sizing");
|
|
11869
|
+
if (sizing === "content-box") {
|
|
11870
|
+
const paddingY = raw(styles.paddingTop) + raw(styles.paddingBottom) + raw(styles.borderTopWidth) + raw(styles.borderBottomWidth);
|
|
11871
|
+
const paddingX = raw(styles.paddingLeft) + raw(styles.paddingRight) + raw(styles.borderRightWidth) + raw(styles.borderLeftWidth);
|
|
11872
|
+
widthFrom -= paddingX;
|
|
11873
|
+
widthTo -= paddingX;
|
|
11874
|
+
heightFrom -= paddingY;
|
|
11875
|
+
heightTo -= paddingY;
|
|
11876
|
+
}
|
|
11877
|
+
return [widthFrom, widthTo, heightFrom, heightTo].map(Math.round);
|
|
11878
|
+
}
|
|
11879
|
+
function getOptions(el) {
|
|
11880
|
+
return TGT in el && options.has(el[TGT]) ? options.get(el[TGT]) : { duration: 250, easing: "ease-in-out" };
|
|
11881
|
+
}
|
|
11882
|
+
function getTarget(el) {
|
|
11883
|
+
if (TGT in el)
|
|
11884
|
+
return el[TGT];
|
|
11885
|
+
return void 0;
|
|
11886
|
+
}
|
|
11887
|
+
function isEnabled(el) {
|
|
11888
|
+
const target2 = getTarget(el);
|
|
11889
|
+
return target2 ? enabled.has(target2) : false;
|
|
11890
|
+
}
|
|
11891
|
+
function forEach(parent, ...callbacks) {
|
|
11892
|
+
callbacks.forEach((callback) => callback(parent, options.has(parent)));
|
|
11893
|
+
for (let i2 = 0; i2 < parent.children.length; i2++) {
|
|
11894
|
+
const child = parent.children.item(i2);
|
|
11895
|
+
if (child) {
|
|
11896
|
+
callbacks.forEach((callback) => callback(child, options.has(child)));
|
|
11897
|
+
}
|
|
11898
|
+
}
|
|
11899
|
+
}
|
|
11900
|
+
function remain(el) {
|
|
11901
|
+
const oldCoords = coords.get(el);
|
|
11902
|
+
const newCoords = getCoords$1(el);
|
|
11903
|
+
if (!isEnabled(el))
|
|
11904
|
+
return coords.set(el, newCoords);
|
|
11905
|
+
let animation;
|
|
11906
|
+
if (!oldCoords)
|
|
11907
|
+
return;
|
|
11908
|
+
const pluginOrOptions = getOptions(el);
|
|
11909
|
+
if (typeof pluginOrOptions !== "function") {
|
|
11910
|
+
const deltaX = oldCoords.left - newCoords.left;
|
|
11911
|
+
const deltaY = oldCoords.top - newCoords.top;
|
|
11912
|
+
const [widthFrom, widthTo, heightFrom, heightTo] = getTransitionSizes(el, oldCoords, newCoords);
|
|
11913
|
+
const start = {
|
|
11914
|
+
transform: `translate(${deltaX}px, ${deltaY}px)`
|
|
11915
|
+
};
|
|
11916
|
+
const end = {
|
|
11917
|
+
transform: `translate(0, 0)`
|
|
11918
|
+
};
|
|
11919
|
+
if (widthFrom !== widthTo) {
|
|
11920
|
+
start.width = `${widthFrom}px`;
|
|
11921
|
+
end.width = `${widthTo}px`;
|
|
11922
|
+
}
|
|
11923
|
+
if (heightFrom !== heightTo) {
|
|
11924
|
+
start.height = `${heightFrom}px`;
|
|
11925
|
+
end.height = `${heightTo}px`;
|
|
11926
|
+
}
|
|
11927
|
+
animation = el.animate([start, end], {
|
|
11928
|
+
duration: pluginOrOptions.duration,
|
|
11929
|
+
easing: pluginOrOptions.easing
|
|
11930
|
+
});
|
|
11931
|
+
} else {
|
|
11932
|
+
animation = new Animation(pluginOrOptions(el, "remain", oldCoords, newCoords));
|
|
11933
|
+
animation.play();
|
|
11934
|
+
}
|
|
11935
|
+
animations.set(el, animation);
|
|
11936
|
+
coords.set(el, newCoords);
|
|
11937
|
+
animation.addEventListener("finish", updatePos.bind(null, el));
|
|
11938
|
+
}
|
|
11939
|
+
function add(el) {
|
|
11940
|
+
const newCoords = getCoords$1(el);
|
|
11941
|
+
coords.set(el, newCoords);
|
|
11942
|
+
const pluginOrOptions = getOptions(el);
|
|
11943
|
+
if (!isEnabled(el))
|
|
11944
|
+
return;
|
|
11945
|
+
let animation;
|
|
11946
|
+
if (typeof pluginOrOptions !== "function") {
|
|
11947
|
+
animation = el.animate([
|
|
11948
|
+
{ transform: "scale(.98)", opacity: 0 },
|
|
11949
|
+
{ transform: "scale(0.98)", opacity: 0, offset: 0.5 },
|
|
11950
|
+
{ transform: "scale(1)", opacity: 1 }
|
|
11951
|
+
], {
|
|
11952
|
+
duration: pluginOrOptions.duration * 1.5,
|
|
11953
|
+
easing: "ease-in"
|
|
11954
|
+
});
|
|
11955
|
+
} else {
|
|
11956
|
+
animation = new Animation(pluginOrOptions(el, "add", newCoords));
|
|
11957
|
+
animation.play();
|
|
11958
|
+
}
|
|
11959
|
+
animations.set(el, animation);
|
|
11960
|
+
animation.addEventListener("finish", updatePos.bind(null, el));
|
|
11961
|
+
}
|
|
11962
|
+
function remove(el) {
|
|
11963
|
+
var _a;
|
|
11964
|
+
if (!siblings.has(el) || !coords.has(el))
|
|
11965
|
+
return;
|
|
11966
|
+
const [prev, next] = siblings.get(el);
|
|
11967
|
+
Object.defineProperty(el, DEL, { value: true });
|
|
11968
|
+
if (next && next.parentNode && next.parentNode instanceof Element) {
|
|
11969
|
+
next.parentNode.insertBefore(el, next);
|
|
11970
|
+
} else if (prev && prev.parentNode) {
|
|
11971
|
+
prev.parentNode.appendChild(el);
|
|
11972
|
+
} else {
|
|
11973
|
+
(_a = getTarget(el)) === null || _a === void 0 ? void 0 : _a.appendChild(el);
|
|
11974
|
+
}
|
|
11975
|
+
function cleanUp() {
|
|
11976
|
+
var _a2;
|
|
11977
|
+
el.remove();
|
|
11978
|
+
coords.delete(el);
|
|
11979
|
+
siblings.delete(el);
|
|
11980
|
+
animations.delete(el);
|
|
11981
|
+
(_a2 = intersections.get(el)) === null || _a2 === void 0 ? void 0 : _a2.disconnect();
|
|
11982
|
+
}
|
|
11983
|
+
if (!isEnabled(el))
|
|
11984
|
+
return cleanUp();
|
|
11985
|
+
const [top, left, width, height] = deletePosition(el);
|
|
11986
|
+
const optionsOrPlugin = getOptions(el);
|
|
11987
|
+
const oldCoords = coords.get(el);
|
|
11988
|
+
let animation;
|
|
11989
|
+
Object.assign(el.style, {
|
|
11990
|
+
position: "absolute",
|
|
11991
|
+
top: `${top}px`,
|
|
11992
|
+
left: `${left}px`,
|
|
11993
|
+
width: `${width}px`,
|
|
11994
|
+
height: `${height}px`,
|
|
11995
|
+
margin: 0,
|
|
11996
|
+
pointerEvents: "none",
|
|
11997
|
+
transformOrigin: "center",
|
|
11998
|
+
zIndex: 100
|
|
11999
|
+
});
|
|
12000
|
+
if (typeof optionsOrPlugin !== "function") {
|
|
12001
|
+
animation = el.animate([
|
|
12002
|
+
{
|
|
12003
|
+
transform: "scale(1)",
|
|
12004
|
+
opacity: 1
|
|
12005
|
+
},
|
|
12006
|
+
{
|
|
12007
|
+
transform: "scale(.98)",
|
|
12008
|
+
opacity: 0
|
|
12009
|
+
}
|
|
12010
|
+
], { duration: optionsOrPlugin.duration, easing: "ease-out" });
|
|
12011
|
+
} else {
|
|
12012
|
+
animation = new Animation(optionsOrPlugin(el, "remove", oldCoords));
|
|
12013
|
+
animation.play();
|
|
12014
|
+
}
|
|
12015
|
+
animations.set(el, animation);
|
|
12016
|
+
animation.addEventListener("finish", cleanUp);
|
|
12017
|
+
}
|
|
12018
|
+
function deletePosition(el) {
|
|
12019
|
+
const oldCoords = coords.get(el);
|
|
12020
|
+
const [width, , height] = getTransitionSizes(el, oldCoords, getCoords$1(el));
|
|
12021
|
+
let offsetParent = el.parentElement;
|
|
12022
|
+
while (offsetParent && (getComputedStyle(offsetParent).position === "static" || offsetParent instanceof HTMLBodyElement)) {
|
|
12023
|
+
offsetParent = offsetParent.parentElement;
|
|
12024
|
+
}
|
|
12025
|
+
if (!offsetParent)
|
|
12026
|
+
offsetParent = document.body;
|
|
12027
|
+
const parentStyles = getComputedStyle(offsetParent);
|
|
12028
|
+
const parentCoords = coords.get(offsetParent) || getCoords$1(offsetParent);
|
|
12029
|
+
const top = Math.round(oldCoords.top - parentCoords.top) - raw(parentStyles.borderTopWidth);
|
|
12030
|
+
const left = Math.round(oldCoords.left - parentCoords.left) - raw(parentStyles.borderLeftWidth);
|
|
12031
|
+
return [top, left, width, height];
|
|
12032
|
+
}
|
|
12033
|
+
const badge = createSection("badge", () => ({
|
|
12034
|
+
$el: "span",
|
|
12035
|
+
attrs: {
|
|
12036
|
+
role: "presentation"
|
|
12037
|
+
}
|
|
12038
|
+
}));
|
|
12039
|
+
const stepActions = createSection("stepActions", () => ({
|
|
12040
|
+
$el: "div"
|
|
12041
|
+
}));
|
|
12042
|
+
const stepInner = createSection("stepInner", "div");
|
|
12043
|
+
const stepNext = createSection("stepNext", () => ({
|
|
12044
|
+
$el: "div",
|
|
12045
|
+
if: "$isLastStep === false",
|
|
12046
|
+
children: [
|
|
12047
|
+
{
|
|
12048
|
+
$cmp: "FormKit",
|
|
12049
|
+
bind: "$nextAttrs",
|
|
12050
|
+
props: {
|
|
12051
|
+
type: "button",
|
|
12052
|
+
label: {
|
|
12053
|
+
if: "$nextLabel",
|
|
12054
|
+
then: "$nextLabel",
|
|
12055
|
+
else: "$ui.next.value"
|
|
12056
|
+
},
|
|
12057
|
+
"data-next": "$isLastStep === false",
|
|
12058
|
+
onClick: "$handlers.next"
|
|
12059
|
+
}
|
|
12060
|
+
}
|
|
12061
|
+
]
|
|
12062
|
+
}));
|
|
12063
|
+
const stepOuter = createSection("stepOuter", () => ({
|
|
12064
|
+
$el: "div",
|
|
12065
|
+
attrs: {
|
|
12066
|
+
key: "$id",
|
|
12067
|
+
"data-type": "step",
|
|
12068
|
+
"data-disabled": "$disabled || undefined",
|
|
12069
|
+
"data-complete": "$state.complete || undefined",
|
|
12070
|
+
"data-invalid": "$state.valid === false && $state.validationVisible || undefined",
|
|
12071
|
+
"data-errors": "$state.errors || undefined",
|
|
12072
|
+
"data-submitted": "$state.submitted || undefined",
|
|
12073
|
+
id: "$id",
|
|
12074
|
+
role: "tabpanel",
|
|
12075
|
+
"aria-labelledby": '$node.parent.props.id + "_tab_" + $stepIndex',
|
|
12076
|
+
class: "$classes.step",
|
|
12077
|
+
hidden: "$isActiveStep === false || undefined"
|
|
12078
|
+
}
|
|
12079
|
+
}));
|
|
12080
|
+
const stepPrevious = createSection("stepPrevious", () => ({
|
|
12081
|
+
$el: "div",
|
|
12082
|
+
if: "$isFirstStep === false",
|
|
12083
|
+
children: [
|
|
12084
|
+
{
|
|
12085
|
+
$cmp: "FormKit",
|
|
12086
|
+
bind: "$previousAttrs",
|
|
12087
|
+
props: {
|
|
12088
|
+
type: "button",
|
|
12089
|
+
label: {
|
|
12090
|
+
if: "$previousLabel",
|
|
12091
|
+
then: "$previousLabel",
|
|
12092
|
+
else: "$ui.prev.value"
|
|
12093
|
+
},
|
|
12094
|
+
"data-prev": "$isFirstStep === false",
|
|
12095
|
+
onClick: "$handlers.previous"
|
|
12096
|
+
}
|
|
12097
|
+
}
|
|
12098
|
+
]
|
|
12099
|
+
}));
|
|
12100
|
+
const steps = createSection("steps", () => ({
|
|
12101
|
+
$el: "div"
|
|
12102
|
+
}));
|
|
12103
|
+
const stepIcon = (sectionKey, el) => {
|
|
12104
|
+
return createSection(`${sectionKey}Icon`, () => {
|
|
12105
|
+
const rawIconProp = `_raw${sectionKey.charAt(0).toUpperCase()}${sectionKey.slice(1)}Icon`;
|
|
12106
|
+
return {
|
|
12107
|
+
if: `$step.${sectionKey}Icon && $step.${rawIconProp}`,
|
|
12108
|
+
then: {
|
|
12109
|
+
$el: `${el ? el : "span"}`,
|
|
12110
|
+
attrs: {
|
|
12111
|
+
class: `$classes.${sectionKey}Icon + " formkit-icon"`,
|
|
12112
|
+
innerHTML: `$step.${rawIconProp}`,
|
|
12113
|
+
role: "presentation",
|
|
12114
|
+
onClick: `$handlers.iconClick(${sectionKey})`
|
|
12115
|
+
}
|
|
12116
|
+
},
|
|
12117
|
+
else: {
|
|
12118
|
+
if: `$${sectionKey}Icon && $${rawIconProp}`,
|
|
12119
|
+
then: {
|
|
12120
|
+
$el: `${el ? el : "span"}`,
|
|
12121
|
+
attrs: {
|
|
12122
|
+
class: `$classes.${sectionKey}Icon + " formkit-icon"`,
|
|
12123
|
+
innerHTML: `$${rawIconProp}`,
|
|
12124
|
+
role: "presentation",
|
|
12125
|
+
onClick: `$handlers.iconClick(${sectionKey})`
|
|
12126
|
+
}
|
|
12127
|
+
}
|
|
12128
|
+
}
|
|
12129
|
+
};
|
|
12130
|
+
})();
|
|
12131
|
+
};
|
|
12132
|
+
const tab = createSection("tab", () => ({
|
|
12133
|
+
$el: "button",
|
|
12134
|
+
for: ["step", "index", "$steps"],
|
|
12135
|
+
attrs: {
|
|
12136
|
+
type: "button",
|
|
12137
|
+
onClick: "$step.makeActive",
|
|
12138
|
+
"data-active": "$step.isActiveStep",
|
|
12139
|
+
"data-valid": "$step.isValid",
|
|
12140
|
+
"data-visited": "$step.hasBeenVisited",
|
|
12141
|
+
role: "tab",
|
|
12142
|
+
id: '$id + "_tab_" + $index',
|
|
12143
|
+
"aria-selected": "$step.isActiveStep || false",
|
|
12144
|
+
"aria-controls": "$step.id",
|
|
12145
|
+
tabindex: {
|
|
12146
|
+
if: "$step.isActiveStep",
|
|
12147
|
+
then: "0",
|
|
12148
|
+
else: "-1"
|
|
12149
|
+
},
|
|
12150
|
+
style: {
|
|
12151
|
+
if: "$step.ordered",
|
|
12152
|
+
then: "",
|
|
12153
|
+
else: "display: none"
|
|
12154
|
+
}
|
|
12155
|
+
}
|
|
12156
|
+
}));
|
|
12157
|
+
const tabLabel = createSection("tabLabel", () => ({
|
|
12158
|
+
$el: "span"
|
|
12159
|
+
}));
|
|
12160
|
+
const tabs = createSection("tabs", () => ({
|
|
12161
|
+
$el: "div",
|
|
12162
|
+
attrs: {
|
|
12163
|
+
role: "tablist"
|
|
12164
|
+
}
|
|
12165
|
+
}));
|
|
12166
|
+
const multiStepOuter = createSection("multiStepOuter", () => ({
|
|
12167
|
+
$el: "div",
|
|
12168
|
+
attrs: {
|
|
12169
|
+
key: "$id",
|
|
12170
|
+
id: "$id",
|
|
12171
|
+
class: "$classes.outer",
|
|
12172
|
+
"data-family": "$family || undefined",
|
|
12173
|
+
"data-type": "$type",
|
|
12174
|
+
"data-multiple": '$attrs.multiple || ($type != "select" && $options != undefined) || undefined',
|
|
12175
|
+
"data-disabled": "$disabled || undefined",
|
|
12176
|
+
"data-complete": "$state.complete || undefined",
|
|
12177
|
+
"data-invalid": "$state.valid === false && $state.validationVisible || undefined",
|
|
12178
|
+
"data-errors": "$state.errors || undefined",
|
|
12179
|
+
"data-submitted": "$state.submitted || undefined"
|
|
12180
|
+
}
|
|
12181
|
+
}));
|
|
12182
|
+
({
|
|
12183
|
+
schema: multiStepOuter($extend(wrapper(tabs(tab($if('$tabStyle === "tab" || ($tabStyle === "progress" && $hideProgressLabels === false)', tabLabel("$step.stepName")), $if("($step.totalErrorCount > 0) && $step.showStepErrors", badge("$step.totalErrorCount")), $if("$step.isValid && $step.hasBeenVisited", badge(stepIcon("validStep"))))), steps("$slots.default")), {
|
|
12184
|
+
attrs: {
|
|
12185
|
+
"data-tab-style": "$tabStyle",
|
|
12186
|
+
"data-hide-labels": "$hideProgressLabels"
|
|
12187
|
+
}
|
|
12188
|
+
})),
|
|
12189
|
+
type: "group",
|
|
12190
|
+
family: "multi-step",
|
|
12191
|
+
props: [
|
|
12192
|
+
"allowIncomplete",
|
|
12193
|
+
"hideProgressLabels",
|
|
12194
|
+
"tabStyle",
|
|
12195
|
+
"beforeStepChange",
|
|
12196
|
+
"validStepIcon"
|
|
12197
|
+
],
|
|
12198
|
+
features: [defaultIcon("validStep", "check")]
|
|
12199
|
+
});
|
|
12200
|
+
({
|
|
12201
|
+
schema: stepOuter(stepInner("$slots.default"), stepActions(stepPrevious(), stepNext())),
|
|
12202
|
+
type: "group",
|
|
12203
|
+
family: "",
|
|
12204
|
+
props: [
|
|
12205
|
+
"previousLabel",
|
|
12206
|
+
"nextLabel",
|
|
12207
|
+
"beforeStepChange",
|
|
12208
|
+
"previousAttrs",
|
|
12209
|
+
"nextAttrs",
|
|
12210
|
+
"validStepIcon"
|
|
12211
|
+
],
|
|
12212
|
+
features: [localize$2("next"), localize$2("prev")]
|
|
12213
|
+
});
|
|
12214
|
+
function createLocalStoragePlugin(localStorageOptions) {
|
|
12215
|
+
const localStoragePlugin = (node) => {
|
|
12216
|
+
if (node.type !== "group")
|
|
12217
|
+
return;
|
|
12218
|
+
const shouldUseLocalStorage = (controlNode) => {
|
|
12219
|
+
let controlFieldValue = true;
|
|
12220
|
+
if (controlNode) {
|
|
12221
|
+
controlFieldValue = controlNode.value === true;
|
|
12222
|
+
}
|
|
12223
|
+
return undefine(node.props.useLocalStorage) && controlFieldValue;
|
|
12224
|
+
};
|
|
12225
|
+
node.on("created", () => __async(this, null, function* () {
|
|
12226
|
+
var _a, _b, _c;
|
|
12227
|
+
node.addProps(["useLocalStorage"]);
|
|
12228
|
+
yield node.settled;
|
|
12229
|
+
const controlField = (_a = localStorageOptions === null || localStorageOptions === void 0 ? void 0 : localStorageOptions.control) !== null && _a !== void 0 ? _a : void 0;
|
|
12230
|
+
let controlNode;
|
|
12231
|
+
if (typeof controlField === "string") {
|
|
12232
|
+
const controlNode2 = node.at(controlField);
|
|
12233
|
+
if (controlNode2) {
|
|
12234
|
+
controlNode2.on("commit", () => {
|
|
12235
|
+
useLocalStorage = shouldUseLocalStorage(controlNode2);
|
|
12236
|
+
if (!useLocalStorage) {
|
|
12237
|
+
localStorage.removeItem(storageKey);
|
|
12238
|
+
}
|
|
12239
|
+
});
|
|
12240
|
+
}
|
|
12241
|
+
}
|
|
12242
|
+
let useLocalStorage = shouldUseLocalStorage(controlNode);
|
|
12243
|
+
let saveTimeout = 0;
|
|
12244
|
+
const debounce = typeof (localStorageOptions === null || localStorageOptions === void 0 ? void 0 : localStorageOptions.debounce) === "number" ? localStorageOptions.debounce : 200;
|
|
12245
|
+
const prefix2 = (_b = localStorageOptions === null || localStorageOptions === void 0 ? void 0 : localStorageOptions.prefix) !== null && _b !== void 0 ? _b : "formkit";
|
|
12246
|
+
const maxAge = (_c = localStorageOptions === null || localStorageOptions === void 0 ? void 0 : localStorageOptions.maxAge) !== null && _c !== void 0 ? _c : 36e5;
|
|
12247
|
+
const key = (localStorageOptions === null || localStorageOptions === void 0 ? void 0 : localStorageOptions.key) ? `-${localStorageOptions.key}` : "";
|
|
12248
|
+
const storageKey = `${prefix2}${key}-${node.name}`;
|
|
12249
|
+
const loadValue = () => __async(this, null, function* () {
|
|
12250
|
+
const value = localStorage.getItem(storageKey);
|
|
12251
|
+
if (!value)
|
|
12252
|
+
return;
|
|
12253
|
+
const loadValue2 = JSON.parse(value);
|
|
12254
|
+
if (typeof (localStorageOptions === null || localStorageOptions === void 0 ? void 0 : localStorageOptions.beforeLoad) === "function") {
|
|
12255
|
+
node.props.disabled = true;
|
|
12256
|
+
try {
|
|
12257
|
+
loadValue2.data = yield localStorageOptions.beforeLoad(loadValue2.data);
|
|
12258
|
+
} catch (error2) {
|
|
12259
|
+
console.error(error2);
|
|
12260
|
+
}
|
|
12261
|
+
node.props.disabled = false;
|
|
12262
|
+
}
|
|
12263
|
+
if (!loadValue2 || typeof loadValue2.data !== "object")
|
|
12264
|
+
return;
|
|
12265
|
+
if (loadValue2.maxAge > Date.now()) {
|
|
12266
|
+
node.input(loadValue2.data, false);
|
|
12267
|
+
} else {
|
|
12268
|
+
localStorage.removeItem(storageKey);
|
|
12269
|
+
}
|
|
12270
|
+
});
|
|
12271
|
+
const saveValue = (payload) => __async(this, null, function* () {
|
|
12272
|
+
let savePayload = payload;
|
|
12273
|
+
if (typeof (localStorageOptions === null || localStorageOptions === void 0 ? void 0 : localStorageOptions.beforeSave) === "function") {
|
|
12274
|
+
try {
|
|
12275
|
+
savePayload = yield localStorageOptions.beforeSave(payload);
|
|
12276
|
+
} catch (error2) {
|
|
12277
|
+
console.error(error2);
|
|
12278
|
+
}
|
|
12279
|
+
}
|
|
12280
|
+
if (!savePayload)
|
|
12281
|
+
return;
|
|
12282
|
+
localStorage.setItem(storageKey, JSON.stringify({
|
|
12283
|
+
maxAge: Date.now() + maxAge,
|
|
12284
|
+
data: savePayload
|
|
12285
|
+
}));
|
|
12286
|
+
});
|
|
12287
|
+
node.on("commit", ({ payload }) => {
|
|
12288
|
+
if (!useLocalStorage)
|
|
12289
|
+
return;
|
|
12290
|
+
clearTimeout(saveTimeout);
|
|
12291
|
+
saveTimeout = setTimeout(() => __async(this, null, function* () {
|
|
12292
|
+
saveValue(payload);
|
|
12293
|
+
}), debounce);
|
|
12294
|
+
});
|
|
12295
|
+
node.on("prop:useLocalStorage", () => {
|
|
12296
|
+
useLocalStorage = shouldUseLocalStorage(controlNode);
|
|
12297
|
+
if (!useLocalStorage) {
|
|
12298
|
+
localStorage.removeItem(storageKey);
|
|
12299
|
+
}
|
|
12300
|
+
});
|
|
12301
|
+
node.hook.submit((payload, next) => {
|
|
12302
|
+
localStorage.removeItem(storageKey);
|
|
12303
|
+
return next(payload);
|
|
12304
|
+
});
|
|
12305
|
+
yield loadValue();
|
|
12306
|
+
}));
|
|
12307
|
+
};
|
|
12308
|
+
return localStoragePlugin;
|
|
12309
|
+
}
|
|
11672
12310
|
var createPlugin$2 = {};
|
|
11673
12311
|
var createPlugin$1 = {};
|
|
11674
12312
|
(function(exports) {
|
|
@@ -13911,16 +14549,16 @@ function cleanEscapedString$1(input2) {
|
|
|
13911
14549
|
}
|
|
13912
14550
|
return matched[1].replace(doubleQuoteRegExp$1, "'");
|
|
13913
14551
|
}
|
|
13914
|
-
function assign(
|
|
13915
|
-
if (
|
|
14552
|
+
function assign(target2, object) {
|
|
14553
|
+
if (target2 == null) {
|
|
13916
14554
|
throw new TypeError("assign requires that input parameter not be null or undefined");
|
|
13917
14555
|
}
|
|
13918
14556
|
for (var property in object) {
|
|
13919
14557
|
if (Object.prototype.hasOwnProperty.call(object, property)) {
|
|
13920
|
-
|
|
14558
|
+
target2[property] = object[property];
|
|
13921
14559
|
}
|
|
13922
14560
|
}
|
|
13923
|
-
return
|
|
14561
|
+
return target2;
|
|
13924
14562
|
}
|
|
13925
14563
|
function getDaysInMonth(dirtyDate) {
|
|
13926
14564
|
requiredArgs(1, arguments);
|
|
@@ -14034,14 +14672,14 @@ function _classCallCheck$w(instance, Constructor) {
|
|
|
14034
14672
|
throw new TypeError("Cannot call a class as a function");
|
|
14035
14673
|
}
|
|
14036
14674
|
}
|
|
14037
|
-
function _defineProperties$w(
|
|
14675
|
+
function _defineProperties$w(target2, props2) {
|
|
14038
14676
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
14039
14677
|
var descriptor = props2[i2];
|
|
14040
14678
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
14041
14679
|
descriptor.configurable = true;
|
|
14042
14680
|
if ("value" in descriptor)
|
|
14043
14681
|
descriptor.writable = true;
|
|
14044
|
-
Object.defineProperty(
|
|
14682
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
14045
14683
|
}
|
|
14046
14684
|
}
|
|
14047
14685
|
function _createClass$w(Constructor, protoProps, staticProps) {
|
|
@@ -14135,14 +14773,14 @@ function _classCallCheck$v(instance, Constructor) {
|
|
|
14135
14773
|
throw new TypeError("Cannot call a class as a function");
|
|
14136
14774
|
}
|
|
14137
14775
|
}
|
|
14138
|
-
function _defineProperties$v(
|
|
14776
|
+
function _defineProperties$v(target2, props2) {
|
|
14139
14777
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
14140
14778
|
var descriptor = props2[i2];
|
|
14141
14779
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
14142
14780
|
descriptor.configurable = true;
|
|
14143
14781
|
if ("value" in descriptor)
|
|
14144
14782
|
descriptor.writable = true;
|
|
14145
|
-
Object.defineProperty(
|
|
14783
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
14146
14784
|
}
|
|
14147
14785
|
}
|
|
14148
14786
|
function _createClass$v(Constructor, protoProps, staticProps) {
|
|
@@ -14194,14 +14832,14 @@ function _classCallCheck$u(instance, Constructor) {
|
|
|
14194
14832
|
throw new TypeError("Cannot call a class as a function");
|
|
14195
14833
|
}
|
|
14196
14834
|
}
|
|
14197
|
-
function _defineProperties$u(
|
|
14835
|
+
function _defineProperties$u(target2, props2) {
|
|
14198
14836
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
14199
14837
|
var descriptor = props2[i2];
|
|
14200
14838
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
14201
14839
|
descriptor.configurable = true;
|
|
14202
14840
|
if ("value" in descriptor)
|
|
14203
14841
|
descriptor.writable = true;
|
|
14204
|
-
Object.defineProperty(
|
|
14842
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
14205
14843
|
}
|
|
14206
14844
|
}
|
|
14207
14845
|
function _createClass$u(Constructor, protoProps, staticProps) {
|
|
@@ -14482,14 +15120,14 @@ function _classCallCheck$t(instance, Constructor) {
|
|
|
14482
15120
|
throw new TypeError("Cannot call a class as a function");
|
|
14483
15121
|
}
|
|
14484
15122
|
}
|
|
14485
|
-
function _defineProperties$t(
|
|
15123
|
+
function _defineProperties$t(target2, props2) {
|
|
14486
15124
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
14487
15125
|
var descriptor = props2[i2];
|
|
14488
15126
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
14489
15127
|
descriptor.configurable = true;
|
|
14490
15128
|
if ("value" in descriptor)
|
|
14491
15129
|
descriptor.writable = true;
|
|
14492
|
-
Object.defineProperty(
|
|
15130
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
14493
15131
|
}
|
|
14494
15132
|
}
|
|
14495
15133
|
function _createClass$t(Constructor, protoProps, staticProps) {
|
|
@@ -14643,14 +15281,14 @@ function _classCallCheck$s(instance, Constructor) {
|
|
|
14643
15281
|
throw new TypeError("Cannot call a class as a function");
|
|
14644
15282
|
}
|
|
14645
15283
|
}
|
|
14646
|
-
function _defineProperties$s(
|
|
15284
|
+
function _defineProperties$s(target2, props2) {
|
|
14647
15285
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
14648
15286
|
var descriptor = props2[i2];
|
|
14649
15287
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
14650
15288
|
descriptor.configurable = true;
|
|
14651
15289
|
if ("value" in descriptor)
|
|
14652
15290
|
descriptor.writable = true;
|
|
14653
|
-
Object.defineProperty(
|
|
15291
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
14654
15292
|
}
|
|
14655
15293
|
}
|
|
14656
15294
|
function _createClass$s(Constructor, protoProps, staticProps) {
|
|
@@ -14804,14 +15442,14 @@ function _classCallCheck$r(instance, Constructor) {
|
|
|
14804
15442
|
throw new TypeError("Cannot call a class as a function");
|
|
14805
15443
|
}
|
|
14806
15444
|
}
|
|
14807
|
-
function _defineProperties$r(
|
|
15445
|
+
function _defineProperties$r(target2, props2) {
|
|
14808
15446
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
14809
15447
|
var descriptor = props2[i2];
|
|
14810
15448
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
14811
15449
|
descriptor.configurable = true;
|
|
14812
15450
|
if ("value" in descriptor)
|
|
14813
15451
|
descriptor.writable = true;
|
|
14814
|
-
Object.defineProperty(
|
|
15452
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
14815
15453
|
}
|
|
14816
15454
|
}
|
|
14817
15455
|
function _createClass$r(Constructor, protoProps, staticProps) {
|
|
@@ -14941,14 +15579,14 @@ function _classCallCheck$q(instance, Constructor) {
|
|
|
14941
15579
|
throw new TypeError("Cannot call a class as a function");
|
|
14942
15580
|
}
|
|
14943
15581
|
}
|
|
14944
|
-
function _defineProperties$q(
|
|
15582
|
+
function _defineProperties$q(target2, props2) {
|
|
14945
15583
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
14946
15584
|
var descriptor = props2[i2];
|
|
14947
15585
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
14948
15586
|
descriptor.configurable = true;
|
|
14949
15587
|
if ("value" in descriptor)
|
|
14950
15588
|
descriptor.writable = true;
|
|
14951
|
-
Object.defineProperty(
|
|
15589
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
14952
15590
|
}
|
|
14953
15591
|
}
|
|
14954
15592
|
function _createClass$q(Constructor, protoProps, staticProps) {
|
|
@@ -15077,14 +15715,14 @@ function _classCallCheck$p(instance, Constructor) {
|
|
|
15077
15715
|
throw new TypeError("Cannot call a class as a function");
|
|
15078
15716
|
}
|
|
15079
15717
|
}
|
|
15080
|
-
function _defineProperties$p(
|
|
15718
|
+
function _defineProperties$p(target2, props2) {
|
|
15081
15719
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
15082
15720
|
var descriptor = props2[i2];
|
|
15083
15721
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
15084
15722
|
descriptor.configurable = true;
|
|
15085
15723
|
if ("value" in descriptor)
|
|
15086
15724
|
descriptor.writable = true;
|
|
15087
|
-
Object.defineProperty(
|
|
15725
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
15088
15726
|
}
|
|
15089
15727
|
}
|
|
15090
15728
|
function _createClass$p(Constructor, protoProps, staticProps) {
|
|
@@ -15248,14 +15886,14 @@ function _classCallCheck$o(instance, Constructor) {
|
|
|
15248
15886
|
throw new TypeError("Cannot call a class as a function");
|
|
15249
15887
|
}
|
|
15250
15888
|
}
|
|
15251
|
-
function _defineProperties$o(
|
|
15889
|
+
function _defineProperties$o(target2, props2) {
|
|
15252
15890
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
15253
15891
|
var descriptor = props2[i2];
|
|
15254
15892
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
15255
15893
|
descriptor.configurable = true;
|
|
15256
15894
|
if ("value" in descriptor)
|
|
15257
15895
|
descriptor.writable = true;
|
|
15258
|
-
Object.defineProperty(
|
|
15896
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
15259
15897
|
}
|
|
15260
15898
|
}
|
|
15261
15899
|
function _createClass$o(Constructor, protoProps, staticProps) {
|
|
@@ -15419,14 +16057,14 @@ function _classCallCheck$n(instance, Constructor) {
|
|
|
15419
16057
|
throw new TypeError("Cannot call a class as a function");
|
|
15420
16058
|
}
|
|
15421
16059
|
}
|
|
15422
|
-
function _defineProperties$n(
|
|
16060
|
+
function _defineProperties$n(target2, props2) {
|
|
15423
16061
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
15424
16062
|
var descriptor = props2[i2];
|
|
15425
16063
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
15426
16064
|
descriptor.configurable = true;
|
|
15427
16065
|
if ("value" in descriptor)
|
|
15428
16066
|
descriptor.writable = true;
|
|
15429
|
-
Object.defineProperty(
|
|
16067
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
15430
16068
|
}
|
|
15431
16069
|
}
|
|
15432
16070
|
function _createClass$n(Constructor, protoProps, staticProps) {
|
|
@@ -15594,14 +16232,14 @@ function _classCallCheck$m(instance, Constructor) {
|
|
|
15594
16232
|
throw new TypeError("Cannot call a class as a function");
|
|
15595
16233
|
}
|
|
15596
16234
|
}
|
|
15597
|
-
function _defineProperties$m(
|
|
16235
|
+
function _defineProperties$m(target2, props2) {
|
|
15598
16236
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
15599
16237
|
var descriptor = props2[i2];
|
|
15600
16238
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
15601
16239
|
descriptor.configurable = true;
|
|
15602
16240
|
if ("value" in descriptor)
|
|
15603
16241
|
descriptor.writable = true;
|
|
15604
|
-
Object.defineProperty(
|
|
16242
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
15605
16243
|
}
|
|
15606
16244
|
}
|
|
15607
16245
|
function _createClass$m(Constructor, protoProps, staticProps) {
|
|
@@ -15777,14 +16415,14 @@ function _classCallCheck$l(instance, Constructor) {
|
|
|
15777
16415
|
throw new TypeError("Cannot call a class as a function");
|
|
15778
16416
|
}
|
|
15779
16417
|
}
|
|
15780
|
-
function _defineProperties$l(
|
|
16418
|
+
function _defineProperties$l(target2, props2) {
|
|
15781
16419
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
15782
16420
|
var descriptor = props2[i2];
|
|
15783
16421
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
15784
16422
|
descriptor.configurable = true;
|
|
15785
16423
|
if ("value" in descriptor)
|
|
15786
16424
|
descriptor.writable = true;
|
|
15787
|
-
Object.defineProperty(
|
|
16425
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
15788
16426
|
}
|
|
15789
16427
|
}
|
|
15790
16428
|
function _createClass$l(Constructor, protoProps, staticProps) {
|
|
@@ -15930,14 +16568,14 @@ function _classCallCheck$k(instance, Constructor) {
|
|
|
15930
16568
|
throw new TypeError("Cannot call a class as a function");
|
|
15931
16569
|
}
|
|
15932
16570
|
}
|
|
15933
|
-
function _defineProperties$k(
|
|
16571
|
+
function _defineProperties$k(target2, props2) {
|
|
15934
16572
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
15935
16573
|
var descriptor = props2[i2];
|
|
15936
16574
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
15937
16575
|
descriptor.configurable = true;
|
|
15938
16576
|
if ("value" in descriptor)
|
|
15939
16577
|
descriptor.writable = true;
|
|
15940
|
-
Object.defineProperty(
|
|
16578
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
15941
16579
|
}
|
|
15942
16580
|
}
|
|
15943
16581
|
function _createClass$k(Constructor, protoProps, staticProps) {
|
|
@@ -16075,14 +16713,14 @@ function _classCallCheck$j(instance, Constructor) {
|
|
|
16075
16713
|
throw new TypeError("Cannot call a class as a function");
|
|
16076
16714
|
}
|
|
16077
16715
|
}
|
|
16078
|
-
function _defineProperties$j(
|
|
16716
|
+
function _defineProperties$j(target2, props2) {
|
|
16079
16717
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
16080
16718
|
var descriptor = props2[i2];
|
|
16081
16719
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
16082
16720
|
descriptor.configurable = true;
|
|
16083
16721
|
if ("value" in descriptor)
|
|
16084
16722
|
descriptor.writable = true;
|
|
16085
|
-
Object.defineProperty(
|
|
16723
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
16086
16724
|
}
|
|
16087
16725
|
}
|
|
16088
16726
|
function _createClass$j(Constructor, protoProps, staticProps) {
|
|
@@ -16232,14 +16870,14 @@ function _classCallCheck$i(instance, Constructor) {
|
|
|
16232
16870
|
throw new TypeError("Cannot call a class as a function");
|
|
16233
16871
|
}
|
|
16234
16872
|
}
|
|
16235
|
-
function _defineProperties$i(
|
|
16873
|
+
function _defineProperties$i(target2, props2) {
|
|
16236
16874
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
16237
16875
|
var descriptor = props2[i2];
|
|
16238
16876
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
16239
16877
|
descriptor.configurable = true;
|
|
16240
16878
|
if ("value" in descriptor)
|
|
16241
16879
|
descriptor.writable = true;
|
|
16242
|
-
Object.defineProperty(
|
|
16880
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
16243
16881
|
}
|
|
16244
16882
|
}
|
|
16245
16883
|
function _createClass$i(Constructor, protoProps, staticProps) {
|
|
@@ -16404,14 +17042,14 @@ function _classCallCheck$h(instance, Constructor) {
|
|
|
16404
17042
|
throw new TypeError("Cannot call a class as a function");
|
|
16405
17043
|
}
|
|
16406
17044
|
}
|
|
16407
|
-
function _defineProperties$h(
|
|
17045
|
+
function _defineProperties$h(target2, props2) {
|
|
16408
17046
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
16409
17047
|
var descriptor = props2[i2];
|
|
16410
17048
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
16411
17049
|
descriptor.configurable = true;
|
|
16412
17050
|
if ("value" in descriptor)
|
|
16413
17051
|
descriptor.writable = true;
|
|
16414
|
-
Object.defineProperty(
|
|
17052
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
16415
17053
|
}
|
|
16416
17054
|
}
|
|
16417
17055
|
function _createClass$h(Constructor, protoProps, staticProps) {
|
|
@@ -16584,14 +17222,14 @@ function _classCallCheck$g(instance, Constructor) {
|
|
|
16584
17222
|
throw new TypeError("Cannot call a class as a function");
|
|
16585
17223
|
}
|
|
16586
17224
|
}
|
|
16587
|
-
function _defineProperties$g(
|
|
17225
|
+
function _defineProperties$g(target2, props2) {
|
|
16588
17226
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
16589
17227
|
var descriptor = props2[i2];
|
|
16590
17228
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
16591
17229
|
descriptor.configurable = true;
|
|
16592
17230
|
if ("value" in descriptor)
|
|
16593
17231
|
descriptor.writable = true;
|
|
16594
|
-
Object.defineProperty(
|
|
17232
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
16595
17233
|
}
|
|
16596
17234
|
}
|
|
16597
17235
|
function _createClass$g(Constructor, protoProps, staticProps) {
|
|
@@ -16773,14 +17411,14 @@ function _classCallCheck$f(instance, Constructor) {
|
|
|
16773
17411
|
throw new TypeError("Cannot call a class as a function");
|
|
16774
17412
|
}
|
|
16775
17413
|
}
|
|
16776
|
-
function _defineProperties$f(
|
|
17414
|
+
function _defineProperties$f(target2, props2) {
|
|
16777
17415
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
16778
17416
|
var descriptor = props2[i2];
|
|
16779
17417
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
16780
17418
|
descriptor.configurable = true;
|
|
16781
17419
|
if ("value" in descriptor)
|
|
16782
17420
|
descriptor.writable = true;
|
|
16783
|
-
Object.defineProperty(
|
|
17421
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
16784
17422
|
}
|
|
16785
17423
|
}
|
|
16786
17424
|
function _createClass$f(Constructor, protoProps, staticProps) {
|
|
@@ -16977,14 +17615,14 @@ function _classCallCheck$e(instance, Constructor) {
|
|
|
16977
17615
|
throw new TypeError("Cannot call a class as a function");
|
|
16978
17616
|
}
|
|
16979
17617
|
}
|
|
16980
|
-
function _defineProperties$e(
|
|
17618
|
+
function _defineProperties$e(target2, props2) {
|
|
16981
17619
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
16982
17620
|
var descriptor = props2[i2];
|
|
16983
17621
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
16984
17622
|
descriptor.configurable = true;
|
|
16985
17623
|
if ("value" in descriptor)
|
|
16986
17624
|
descriptor.writable = true;
|
|
16987
|
-
Object.defineProperty(
|
|
17625
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
16988
17626
|
}
|
|
16989
17627
|
}
|
|
16990
17628
|
function _createClass$e(Constructor, protoProps, staticProps) {
|
|
@@ -17168,14 +17806,14 @@ function _classCallCheck$d(instance, Constructor) {
|
|
|
17168
17806
|
throw new TypeError("Cannot call a class as a function");
|
|
17169
17807
|
}
|
|
17170
17808
|
}
|
|
17171
|
-
function _defineProperties$d(
|
|
17809
|
+
function _defineProperties$d(target2, props2) {
|
|
17172
17810
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
17173
17811
|
var descriptor = props2[i2];
|
|
17174
17812
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
17175
17813
|
descriptor.configurable = true;
|
|
17176
17814
|
if ("value" in descriptor)
|
|
17177
17815
|
descriptor.writable = true;
|
|
17178
|
-
Object.defineProperty(
|
|
17816
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
17179
17817
|
}
|
|
17180
17818
|
}
|
|
17181
17819
|
function _createClass$d(Constructor, protoProps, staticProps) {
|
|
@@ -17328,14 +17966,14 @@ function _classCallCheck$c(instance, Constructor) {
|
|
|
17328
17966
|
throw new TypeError("Cannot call a class as a function");
|
|
17329
17967
|
}
|
|
17330
17968
|
}
|
|
17331
|
-
function _defineProperties$c(
|
|
17969
|
+
function _defineProperties$c(target2, props2) {
|
|
17332
17970
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
17333
17971
|
var descriptor = props2[i2];
|
|
17334
17972
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
17335
17973
|
descriptor.configurable = true;
|
|
17336
17974
|
if ("value" in descriptor)
|
|
17337
17975
|
descriptor.writable = true;
|
|
17338
|
-
Object.defineProperty(
|
|
17976
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
17339
17977
|
}
|
|
17340
17978
|
}
|
|
17341
17979
|
function _createClass$c(Constructor, protoProps, staticProps) {
|
|
@@ -17488,14 +18126,14 @@ function _classCallCheck$b(instance, Constructor) {
|
|
|
17488
18126
|
throw new TypeError("Cannot call a class as a function");
|
|
17489
18127
|
}
|
|
17490
18128
|
}
|
|
17491
|
-
function _defineProperties$b(
|
|
18129
|
+
function _defineProperties$b(target2, props2) {
|
|
17492
18130
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
17493
18131
|
var descriptor = props2[i2];
|
|
17494
18132
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
17495
18133
|
descriptor.configurable = true;
|
|
17496
18134
|
if ("value" in descriptor)
|
|
17497
18135
|
descriptor.writable = true;
|
|
17498
|
-
Object.defineProperty(
|
|
18136
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
17499
18137
|
}
|
|
17500
18138
|
}
|
|
17501
18139
|
function _createClass$b(Constructor, protoProps, staticProps) {
|
|
@@ -17648,14 +18286,14 @@ function _classCallCheck$a(instance, Constructor) {
|
|
|
17648
18286
|
throw new TypeError("Cannot call a class as a function");
|
|
17649
18287
|
}
|
|
17650
18288
|
}
|
|
17651
|
-
function _defineProperties$a(
|
|
18289
|
+
function _defineProperties$a(target2, props2) {
|
|
17652
18290
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
17653
18291
|
var descriptor = props2[i2];
|
|
17654
18292
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
17655
18293
|
descriptor.configurable = true;
|
|
17656
18294
|
if ("value" in descriptor)
|
|
17657
18295
|
descriptor.writable = true;
|
|
17658
|
-
Object.defineProperty(
|
|
18296
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
17659
18297
|
}
|
|
17660
18298
|
}
|
|
17661
18299
|
function _createClass$a(Constructor, protoProps, staticProps) {
|
|
@@ -17801,14 +18439,14 @@ function _classCallCheck$9(instance, Constructor) {
|
|
|
17801
18439
|
throw new TypeError("Cannot call a class as a function");
|
|
17802
18440
|
}
|
|
17803
18441
|
}
|
|
17804
|
-
function _defineProperties$9(
|
|
18442
|
+
function _defineProperties$9(target2, props2) {
|
|
17805
18443
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
17806
18444
|
var descriptor = props2[i2];
|
|
17807
18445
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
17808
18446
|
descriptor.configurable = true;
|
|
17809
18447
|
if ("value" in descriptor)
|
|
17810
18448
|
descriptor.writable = true;
|
|
17811
|
-
Object.defineProperty(
|
|
18449
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
17812
18450
|
}
|
|
17813
18451
|
}
|
|
17814
18452
|
function _createClass$9(Constructor, protoProps, staticProps) {
|
|
@@ -17947,14 +18585,14 @@ function _classCallCheck$8(instance, Constructor) {
|
|
|
17947
18585
|
throw new TypeError("Cannot call a class as a function");
|
|
17948
18586
|
}
|
|
17949
18587
|
}
|
|
17950
|
-
function _defineProperties$8(
|
|
18588
|
+
function _defineProperties$8(target2, props2) {
|
|
17951
18589
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
17952
18590
|
var descriptor = props2[i2];
|
|
17953
18591
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
17954
18592
|
descriptor.configurable = true;
|
|
17955
18593
|
if ("value" in descriptor)
|
|
17956
18594
|
descriptor.writable = true;
|
|
17957
|
-
Object.defineProperty(
|
|
18595
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
17958
18596
|
}
|
|
17959
18597
|
}
|
|
17960
18598
|
function _createClass$8(Constructor, protoProps, staticProps) {
|
|
@@ -18098,14 +18736,14 @@ function _classCallCheck$7(instance, Constructor) {
|
|
|
18098
18736
|
throw new TypeError("Cannot call a class as a function");
|
|
18099
18737
|
}
|
|
18100
18738
|
}
|
|
18101
|
-
function _defineProperties$7(
|
|
18739
|
+
function _defineProperties$7(target2, props2) {
|
|
18102
18740
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
18103
18741
|
var descriptor = props2[i2];
|
|
18104
18742
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
18105
18743
|
descriptor.configurable = true;
|
|
18106
18744
|
if ("value" in descriptor)
|
|
18107
18745
|
descriptor.writable = true;
|
|
18108
|
-
Object.defineProperty(
|
|
18746
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
18109
18747
|
}
|
|
18110
18748
|
}
|
|
18111
18749
|
function _createClass$7(Constructor, protoProps, staticProps) {
|
|
@@ -18245,14 +18883,14 @@ function _classCallCheck$6(instance, Constructor) {
|
|
|
18245
18883
|
throw new TypeError("Cannot call a class as a function");
|
|
18246
18884
|
}
|
|
18247
18885
|
}
|
|
18248
|
-
function _defineProperties$6(
|
|
18886
|
+
function _defineProperties$6(target2, props2) {
|
|
18249
18887
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
18250
18888
|
var descriptor = props2[i2];
|
|
18251
18889
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
18252
18890
|
descriptor.configurable = true;
|
|
18253
18891
|
if ("value" in descriptor)
|
|
18254
18892
|
descriptor.writable = true;
|
|
18255
|
-
Object.defineProperty(
|
|
18893
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
18256
18894
|
}
|
|
18257
18895
|
}
|
|
18258
18896
|
function _createClass$6(Constructor, protoProps, staticProps) {
|
|
@@ -18391,14 +19029,14 @@ function _classCallCheck$5(instance, Constructor) {
|
|
|
18391
19029
|
throw new TypeError("Cannot call a class as a function");
|
|
18392
19030
|
}
|
|
18393
19031
|
}
|
|
18394
|
-
function _defineProperties$5(
|
|
19032
|
+
function _defineProperties$5(target2, props2) {
|
|
18395
19033
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
18396
19034
|
var descriptor = props2[i2];
|
|
18397
19035
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
18398
19036
|
descriptor.configurable = true;
|
|
18399
19037
|
if ("value" in descriptor)
|
|
18400
19038
|
descriptor.writable = true;
|
|
18401
|
-
Object.defineProperty(
|
|
19039
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
18402
19040
|
}
|
|
18403
19041
|
}
|
|
18404
19042
|
function _createClass$5(Constructor, protoProps, staticProps) {
|
|
@@ -18537,14 +19175,14 @@ function _classCallCheck$4(instance, Constructor) {
|
|
|
18537
19175
|
throw new TypeError("Cannot call a class as a function");
|
|
18538
19176
|
}
|
|
18539
19177
|
}
|
|
18540
|
-
function _defineProperties$4(
|
|
19178
|
+
function _defineProperties$4(target2, props2) {
|
|
18541
19179
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
18542
19180
|
var descriptor = props2[i2];
|
|
18543
19181
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
18544
19182
|
descriptor.configurable = true;
|
|
18545
19183
|
if ("value" in descriptor)
|
|
18546
19184
|
descriptor.writable = true;
|
|
18547
|
-
Object.defineProperty(
|
|
19185
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
18548
19186
|
}
|
|
18549
19187
|
}
|
|
18550
19188
|
function _createClass$4(Constructor, protoProps, staticProps) {
|
|
@@ -18672,14 +19310,14 @@ function _classCallCheck$3(instance, Constructor) {
|
|
|
18672
19310
|
throw new TypeError("Cannot call a class as a function");
|
|
18673
19311
|
}
|
|
18674
19312
|
}
|
|
18675
|
-
function _defineProperties$3(
|
|
19313
|
+
function _defineProperties$3(target2, props2) {
|
|
18676
19314
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
18677
19315
|
var descriptor = props2[i2];
|
|
18678
19316
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
18679
19317
|
descriptor.configurable = true;
|
|
18680
19318
|
if ("value" in descriptor)
|
|
18681
19319
|
descriptor.writable = true;
|
|
18682
|
-
Object.defineProperty(
|
|
19320
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
18683
19321
|
}
|
|
18684
19322
|
}
|
|
18685
19323
|
function _createClass$3(Constructor, protoProps, staticProps) {
|
|
@@ -18818,14 +19456,14 @@ function _classCallCheck$2(instance, Constructor) {
|
|
|
18818
19456
|
throw new TypeError("Cannot call a class as a function");
|
|
18819
19457
|
}
|
|
18820
19458
|
}
|
|
18821
|
-
function _defineProperties$2(
|
|
19459
|
+
function _defineProperties$2(target2, props2) {
|
|
18822
19460
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
18823
19461
|
var descriptor = props2[i2];
|
|
18824
19462
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
18825
19463
|
descriptor.configurable = true;
|
|
18826
19464
|
if ("value" in descriptor)
|
|
18827
19465
|
descriptor.writable = true;
|
|
18828
|
-
Object.defineProperty(
|
|
19466
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
18829
19467
|
}
|
|
18830
19468
|
}
|
|
18831
19469
|
function _createClass$2(Constructor, protoProps, staticProps) {
|
|
@@ -18964,14 +19602,14 @@ function _classCallCheck$1(instance, Constructor) {
|
|
|
18964
19602
|
throw new TypeError("Cannot call a class as a function");
|
|
18965
19603
|
}
|
|
18966
19604
|
}
|
|
18967
|
-
function _defineProperties$1(
|
|
19605
|
+
function _defineProperties$1(target2, props2) {
|
|
18968
19606
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
18969
19607
|
var descriptor = props2[i2];
|
|
18970
19608
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
18971
19609
|
descriptor.configurable = true;
|
|
18972
19610
|
if ("value" in descriptor)
|
|
18973
19611
|
descriptor.writable = true;
|
|
18974
|
-
Object.defineProperty(
|
|
19612
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
18975
19613
|
}
|
|
18976
19614
|
}
|
|
18977
19615
|
function _createClass$1(Constructor, protoProps, staticProps) {
|
|
@@ -19097,14 +19735,14 @@ function _classCallCheck(instance, Constructor) {
|
|
|
19097
19735
|
throw new TypeError("Cannot call a class as a function");
|
|
19098
19736
|
}
|
|
19099
19737
|
}
|
|
19100
|
-
function _defineProperties(
|
|
19738
|
+
function _defineProperties(target2, props2) {
|
|
19101
19739
|
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
19102
19740
|
var descriptor = props2[i2];
|
|
19103
19741
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
19104
19742
|
descriptor.configurable = true;
|
|
19105
19743
|
if ("value" in descriptor)
|
|
19106
19744
|
descriptor.writable = true;
|
|
19107
|
-
Object.defineProperty(
|
|
19745
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
19108
19746
|
}
|
|
19109
19747
|
}
|
|
19110
19748
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -19821,12 +20459,12 @@ var script$4 = defineComponent({
|
|
|
19821
20459
|
setup(props2, { emit: emit2 }) {
|
|
19822
20460
|
const from = computed(() => startOfDecade(props2.pageDate));
|
|
19823
20461
|
const to = computed(() => endOfDecade(props2.pageDate));
|
|
19824
|
-
const
|
|
20462
|
+
const isEnabled2 = (target2, lower, upper) => {
|
|
19825
20463
|
if (!lower && !upper)
|
|
19826
20464
|
return true;
|
|
19827
|
-
if (lower && getYear(
|
|
20465
|
+
if (lower && getYear(target2) < getYear(lower))
|
|
19828
20466
|
return false;
|
|
19829
|
-
if (upper && getYear(
|
|
20467
|
+
if (upper && getYear(target2) > getYear(upper))
|
|
19830
20468
|
return false;
|
|
19831
20469
|
return true;
|
|
19832
20470
|
};
|
|
@@ -19838,7 +20476,7 @@ var script$4 = defineComponent({
|
|
|
19838
20476
|
key: String(getYear(value)),
|
|
19839
20477
|
display: getYear(value),
|
|
19840
20478
|
selected: props2.selected && getYear(value) === getYear(props2.selected),
|
|
19841
|
-
disabled: !
|
|
20479
|
+
disabled: !isEnabled2(value, props2.lowerLimit, props2.upperLimit)
|
|
19842
20480
|
})));
|
|
19843
20481
|
const heading = computed(() => {
|
|
19844
20482
|
const start = getYear(from.value);
|
|
@@ -19920,12 +20558,12 @@ var script$3 = defineComponent({
|
|
|
19920
20558
|
const format2 = computed(() => formatWithOptions({
|
|
19921
20559
|
locale: props2.locale
|
|
19922
20560
|
})(props2.format));
|
|
19923
|
-
const
|
|
20561
|
+
const isEnabled2 = (target2, lower, upper) => {
|
|
19924
20562
|
if (!lower && !upper)
|
|
19925
20563
|
return true;
|
|
19926
|
-
if (lower && isBefore(
|
|
20564
|
+
if (lower && isBefore(target2, startOfMonth(lower)))
|
|
19927
20565
|
return false;
|
|
19928
|
-
if (upper && isAfter(
|
|
20566
|
+
if (upper && isAfter(target2, endOfMonth(upper)))
|
|
19929
20567
|
return false;
|
|
19930
20568
|
return true;
|
|
19931
20569
|
};
|
|
@@ -19937,7 +20575,7 @@ var script$3 = defineComponent({
|
|
|
19937
20575
|
display: format2.value(value),
|
|
19938
20576
|
key: format2.value(value),
|
|
19939
20577
|
selected: props2.selected && isSameMonth(props2.selected, value),
|
|
19940
|
-
disabled: !
|
|
20578
|
+
disabled: !isEnabled2(value, props2.lowerLimit, props2.upperLimit)
|
|
19941
20579
|
})));
|
|
19942
20580
|
const heading = computed(() => getYear(from.value));
|
|
19943
20581
|
const leftDisabled = computed(() => props2.lowerLimit && (isSameYear(props2.lowerLimit, props2.pageDate) || isBefore(props2.pageDate, props2.lowerLimit)));
|
|
@@ -20057,17 +20695,17 @@ var script$2 = defineComponent({
|
|
|
20057
20695
|
weekStartsOn: props2.weekStartsOn
|
|
20058
20696
|
})).map(dayFormat);
|
|
20059
20697
|
});
|
|
20060
|
-
const
|
|
20698
|
+
const isEnabled2 = (target2, lower, upper, disabledDates) => {
|
|
20061
20699
|
var _a, _b;
|
|
20062
|
-
if ((_a = disabledDates === null || disabledDates === void 0 ? void 0 : disabledDates.dates) === null || _a === void 0 ? void 0 : _a.some((date3) => isSameDay(
|
|
20700
|
+
if ((_a = disabledDates === null || disabledDates === void 0 ? void 0 : disabledDates.dates) === null || _a === void 0 ? void 0 : _a.some((date3) => isSameDay(target2, date3)))
|
|
20063
20701
|
return false;
|
|
20064
|
-
if ((_b = disabledDates === null || disabledDates === void 0 ? void 0 : disabledDates.predicate) === null || _b === void 0 ? void 0 : _b.call(disabledDates,
|
|
20702
|
+
if ((_b = disabledDates === null || disabledDates === void 0 ? void 0 : disabledDates.predicate) === null || _b === void 0 ? void 0 : _b.call(disabledDates, target2))
|
|
20065
20703
|
return false;
|
|
20066
20704
|
if (!lower && !upper)
|
|
20067
20705
|
return true;
|
|
20068
|
-
if (lower && isBefore(
|
|
20706
|
+
if (lower && isBefore(target2, startOfDay(lower)))
|
|
20069
20707
|
return false;
|
|
20070
|
-
if (upper && isAfter(
|
|
20708
|
+
if (upper && isAfter(target2, endOfDay(upper)))
|
|
20071
20709
|
return false;
|
|
20072
20710
|
return true;
|
|
20073
20711
|
};
|
|
@@ -20077,7 +20715,7 @@ var script$2 = defineComponent({
|
|
|
20077
20715
|
value,
|
|
20078
20716
|
display: dayFormat(value),
|
|
20079
20717
|
selected: props2.selected && isSameDay(props2.selected, value),
|
|
20080
|
-
disabled: !isWithinInterval(value, currentMonth.value) || !
|
|
20718
|
+
disabled: !isWithinInterval(value, currentMonth.value) || !isEnabled2(value, props2.lowerLimit, props2.upperLimit, props2.disabledDates),
|
|
20081
20719
|
key: format2.value("yyyy-MM-dd", value)
|
|
20082
20720
|
}));
|
|
20083
20721
|
});
|
|
@@ -20220,12 +20858,12 @@ var script$1 = defineComponent({
|
|
|
20220
20858
|
nextTick(scroll);
|
|
20221
20859
|
}
|
|
20222
20860
|
});
|
|
20223
|
-
const
|
|
20861
|
+
const isEnabled2 = (target2) => {
|
|
20224
20862
|
var _a, _b, _c, _d;
|
|
20225
|
-
if ((_b = (_a = props2.disabledTime) === null || _a === void 0 ? void 0 : _a.dates) === null || _b === void 0 ? void 0 : _b.some((date3) => isSameHour(
|
|
20863
|
+
if ((_b = (_a = props2.disabledTime) === null || _a === void 0 ? void 0 : _a.dates) === null || _b === void 0 ? void 0 : _b.some((date3) => isSameHour(target2, date3) && isSameMinute(target2, date3))) {
|
|
20226
20864
|
return false;
|
|
20227
20865
|
}
|
|
20228
|
-
if ((_d = (_c = props2.disabledTime) === null || _c === void 0 ? void 0 : _c.predicate) === null || _d === void 0 ? void 0 : _d.call(_c,
|
|
20866
|
+
if ((_d = (_c = props2.disabledTime) === null || _c === void 0 ? void 0 : _c.predicate) === null || _d === void 0 ? void 0 : _d.call(_c, target2))
|
|
20229
20867
|
return false;
|
|
20230
20868
|
return true;
|
|
20231
20869
|
};
|
|
@@ -20239,7 +20877,7 @@ var script$1 = defineComponent({
|
|
|
20239
20877
|
minutesList,
|
|
20240
20878
|
padStartZero,
|
|
20241
20879
|
selectMinutes,
|
|
20242
|
-
isEnabled,
|
|
20880
|
+
isEnabled: isEnabled2,
|
|
20243
20881
|
scroll
|
|
20244
20882
|
};
|
|
20245
20883
|
}
|
|
@@ -20666,14 +21304,6 @@ const init = () => {
|
|
|
20666
21304
|
data.fireStepEvent = data.fireStepEvent || fireStepEvent;
|
|
20667
21305
|
data.handleRedirect = data.handleRedirect || handleRedirect;
|
|
20668
21306
|
data.scrollAnchor = data.scrollAnchor || scrollAnchor;
|
|
20669
|
-
data.inList = (list2, item) => {
|
|
20670
|
-
if (!list2 || !item) {
|
|
20671
|
-
console.log("inList blank", list2, item);
|
|
20672
|
-
return false;
|
|
20673
|
-
}
|
|
20674
|
-
console.log("inList", list2, item, list2.includes(item));
|
|
20675
|
-
return list2.includes(item);
|
|
20676
|
-
};
|
|
20677
21307
|
data.getVal = (formNode, key) => {
|
|
20678
21308
|
if (!formNode || !key) {
|
|
20679
21309
|
return;
|
|
@@ -20718,7 +21348,13 @@ const init = () => {
|
|
|
20718
21348
|
},
|
|
20719
21349
|
config: {
|
|
20720
21350
|
classes
|
|
20721
|
-
}
|
|
21351
|
+
},
|
|
21352
|
+
plugins: [
|
|
21353
|
+
createLocalStoragePlugin({
|
|
21354
|
+
prefix: "formkit",
|
|
21355
|
+
maxAge: 24 * 36e5
|
|
21356
|
+
})
|
|
21357
|
+
]
|
|
20722
21358
|
})
|
|
20723
21359
|
);
|
|
20724
21360
|
app.mount("#" + form2.target);
|