@abgov/jsonforms-components 2.57.4 → 2.58.1
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/index.esm.js +1092 -919
- package/package.json +1 -1
- package/renderer-catalog.json +44 -3
- package/src/lib/Controls/ContactInfo/ContactInfoControlReview.d.ts +6 -0
- package/src/lib/Controls/ContactInfo/ContractInfoControl.d.ts +2 -0
- package/src/lib/Controls/ContactInfo/ContractInfoTester.d.ts +3 -0
- package/src/lib/Controls/ContactInfo/index.d.ts +3 -0
- package/src/lib/Controls/ContactInfo/style-component.d.ts +1 -0
- package/src/lib/Controls/index.d.ts +1 -0
- package/src/lib/util/registerOptions.d.ts +9 -0
- package/src/lib/util/stringUtils.d.ts +2 -0
package/index.esm.js
CHANGED
|
@@ -7,7 +7,7 @@ import styled from 'styled-components';
|
|
|
7
7
|
import axios from 'axios';
|
|
8
8
|
import get$1 from 'lodash/get';
|
|
9
9
|
import { isVisible, isEnabled, deriveLabelForUISchemaElement, rankWith, isStringControl, and, optionIs, isDateControl, isNumberControl, isIntegerControl, isDateTimeControl, isTimeControl, uiTypeIs, isControl as isControl$1, isEnumControl, isBooleanControl, createDefaultValue, Paths, Resolve, toDataPath, schemaTypeIs, formatIs, getAjv, schemaMatches, or, isObjectArrayControl, isPrimitiveArrayControl, composePaths, hasType, isCategorization, isLayout } from '@jsonforms/core';
|
|
10
|
-
import * as _$
|
|
10
|
+
import * as _$c from 'lodash';
|
|
11
11
|
import ___default, { isObject as isObject$i, isEmpty as isEmpty$1 } from 'lodash';
|
|
12
12
|
import { useJsonForms, withJsonFormsControlProps, withJsonFormsEnumProps, withTranslateProps, JsonFormsDispatch, withJsonFormsAllOfProps, withJsonFormsArrayLayoutProps, withJsonFormsLayoutProps, withJsonFormsCellProps } from '@jsonforms/react';
|
|
13
13
|
import dompurify from 'dompurify';
|
|
@@ -2636,6 +2636,63 @@ fixRegExpWellKnownSymbolLogic$2('replace', function (_, nativeReplace, maybeCall
|
|
|
2636
2636
|
];
|
|
2637
2637
|
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
2638
2638
|
|
|
2639
|
+
// a string of all valid unicode whitespaces
|
|
2640
|
+
var whitespaces$3 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
2641
|
+
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
2642
|
+
|
|
2643
|
+
var uncurryThis$m = functionUncurryThis;
|
|
2644
|
+
var requireObjectCoercible$6 = requireObjectCoercible$e;
|
|
2645
|
+
var toString$e = toString$m;
|
|
2646
|
+
var whitespaces$2 = whitespaces$3;
|
|
2647
|
+
|
|
2648
|
+
var replace$6 = uncurryThis$m(''.replace);
|
|
2649
|
+
var ltrim = RegExp('^[' + whitespaces$2 + ']+');
|
|
2650
|
+
var rtrim = RegExp('(^|[^' + whitespaces$2 + '])[' + whitespaces$2 + ']+$');
|
|
2651
|
+
|
|
2652
|
+
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
2653
|
+
var createMethod$2 = function (TYPE) {
|
|
2654
|
+
return function ($this) {
|
|
2655
|
+
var string = toString$e(requireObjectCoercible$6($this));
|
|
2656
|
+
if (TYPE & 1) string = replace$6(string, ltrim, '');
|
|
2657
|
+
if (TYPE & 2) string = replace$6(string, rtrim, '$1');
|
|
2658
|
+
return string;
|
|
2659
|
+
};
|
|
2660
|
+
};
|
|
2661
|
+
|
|
2662
|
+
var stringTrim = {
|
|
2663
|
+
// `String.prototype.trim` method
|
|
2664
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
2665
|
+
trim: createMethod$2(3)
|
|
2666
|
+
};
|
|
2667
|
+
|
|
2668
|
+
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
2669
|
+
var fails$d = fails$x;
|
|
2670
|
+
var whitespaces$1 = whitespaces$3;
|
|
2671
|
+
|
|
2672
|
+
var non = '\u200B\u0085\u180E';
|
|
2673
|
+
|
|
2674
|
+
// check that a method works with the correct list
|
|
2675
|
+
// of whitespaces and has a correct name
|
|
2676
|
+
var stringTrimForced = function (METHOD_NAME) {
|
|
2677
|
+
return fails$d(function () {
|
|
2678
|
+
return !!whitespaces$1[METHOD_NAME]()
|
|
2679
|
+
|| non[METHOD_NAME]() !== non
|
|
2680
|
+
|| (PROPER_FUNCTION_NAME && whitespaces$1[METHOD_NAME].name !== METHOD_NAME);
|
|
2681
|
+
});
|
|
2682
|
+
};
|
|
2683
|
+
|
|
2684
|
+
var $$C = _export;
|
|
2685
|
+
var $trim = stringTrim.trim;
|
|
2686
|
+
var forcedStringTrimMethod = stringTrimForced;
|
|
2687
|
+
|
|
2688
|
+
// `String.prototype.trim` method
|
|
2689
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
2690
|
+
$$C({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
|
2691
|
+
trim: function trim() {
|
|
2692
|
+
return $trim(this);
|
|
2693
|
+
}
|
|
2694
|
+
});
|
|
2695
|
+
|
|
2639
2696
|
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
2640
2697
|
|
|
2641
2698
|
var $TypeError$c = TypeError;
|
|
@@ -2663,7 +2720,7 @@ var createProperty$4 = function (object, key, value) {
|
|
|
2663
2720
|
else object[key] = value;
|
|
2664
2721
|
};
|
|
2665
2722
|
|
|
2666
|
-
var $$
|
|
2723
|
+
var $$B = _export;
|
|
2667
2724
|
var global$e = global$t;
|
|
2668
2725
|
var anInstance$3 = anInstance$4;
|
|
2669
2726
|
var anObject$j = anObject$t;
|
|
@@ -2671,7 +2728,7 @@ var isCallable$a = isCallable$t;
|
|
|
2671
2728
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
2672
2729
|
var defineBuiltInAccessor$6 = defineBuiltInAccessor$7;
|
|
2673
2730
|
var createProperty$3 = createProperty$4;
|
|
2674
|
-
var fails$
|
|
2731
|
+
var fails$c = fails$x;
|
|
2675
2732
|
var hasOwn$7 = hasOwnProperty_1;
|
|
2676
2733
|
var wellKnownSymbol$b = wellKnownSymbol$o;
|
|
2677
2734
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
@@ -2688,7 +2745,7 @@ var NativeIterator = global$e[ITERATOR$6];
|
|
|
2688
2745
|
var FORCED$3 = !isCallable$a(NativeIterator)
|
|
2689
2746
|
|| NativeIterator.prototype !== IteratorPrototype$1
|
|
2690
2747
|
// FF44- non-standard `Iterator` passes previous tests
|
|
2691
|
-
|| !fails$
|
|
2748
|
+
|| !fails$c(function () { NativeIterator({}); });
|
|
2692
2749
|
|
|
2693
2750
|
var IteratorConstructor = function Iterator() {
|
|
2694
2751
|
anInstance$3(this, IteratorPrototype$1);
|
|
@@ -2722,28 +2779,192 @@ IteratorConstructor.prototype = IteratorPrototype$1;
|
|
|
2722
2779
|
|
|
2723
2780
|
// `Iterator` constructor
|
|
2724
2781
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
2725
|
-
$$
|
|
2782
|
+
$$B({ global: true, constructor: true, forced: FORCED$3 }, {
|
|
2726
2783
|
Iterator: IteratorConstructor
|
|
2727
2784
|
});
|
|
2728
2785
|
|
|
2729
|
-
|
|
2786
|
+
// `GetIteratorDirect(obj)` abstract operation
|
|
2787
|
+
// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
|
|
2788
|
+
var getIteratorDirect$a = function (obj) {
|
|
2789
|
+
return {
|
|
2790
|
+
iterator: obj,
|
|
2791
|
+
next: obj.next,
|
|
2792
|
+
done: false
|
|
2793
|
+
};
|
|
2794
|
+
};
|
|
2795
|
+
|
|
2796
|
+
var defineBuiltIn$7 = defineBuiltIn$d;
|
|
2797
|
+
|
|
2798
|
+
var defineBuiltIns$2 = function (target, src, options) {
|
|
2799
|
+
for (var key in src) defineBuiltIn$7(target, key, src[key], options);
|
|
2800
|
+
return target;
|
|
2801
|
+
};
|
|
2802
|
+
|
|
2803
|
+
var call$j = functionCall;
|
|
2804
|
+
var anObject$i = anObject$t;
|
|
2805
|
+
var getMethod$4 = getMethod$7;
|
|
2806
|
+
|
|
2807
|
+
var iteratorClose$6 = function (iterator, kind, value) {
|
|
2808
|
+
var innerResult, innerError;
|
|
2809
|
+
anObject$i(iterator);
|
|
2810
|
+
try {
|
|
2811
|
+
innerResult = getMethod$4(iterator, 'return');
|
|
2812
|
+
if (!innerResult) {
|
|
2813
|
+
if (kind === 'throw') throw value;
|
|
2814
|
+
return value;
|
|
2815
|
+
}
|
|
2816
|
+
innerResult = call$j(innerResult, iterator);
|
|
2817
|
+
} catch (error) {
|
|
2818
|
+
innerError = true;
|
|
2819
|
+
innerResult = error;
|
|
2820
|
+
}
|
|
2821
|
+
if (kind === 'throw') throw value;
|
|
2822
|
+
if (innerError) throw innerResult;
|
|
2823
|
+
anObject$i(innerResult);
|
|
2824
|
+
return value;
|
|
2825
|
+
};
|
|
2826
|
+
|
|
2827
|
+
var call$i = functionCall;
|
|
2828
|
+
var create$2 = objectCreate;
|
|
2829
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$a;
|
|
2830
|
+
var defineBuiltIns$1 = defineBuiltIns$2;
|
|
2831
|
+
var wellKnownSymbol$a = wellKnownSymbol$o;
|
|
2832
|
+
var InternalStateModule$4 = internalState;
|
|
2833
|
+
var getMethod$3 = getMethod$7;
|
|
2834
|
+
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
2835
|
+
var createIterResultObject$2 = createIterResultObject$4;
|
|
2836
|
+
var iteratorClose$5 = iteratorClose$6;
|
|
2837
|
+
|
|
2838
|
+
var TO_STRING_TAG = wellKnownSymbol$a('toStringTag');
|
|
2839
|
+
var ITERATOR_HELPER = 'IteratorHelper';
|
|
2840
|
+
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
|
|
2841
|
+
var setInternalState$4 = InternalStateModule$4.set;
|
|
2842
|
+
|
|
2843
|
+
var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
2844
|
+
var getInternalState = InternalStateModule$4.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
|
|
2845
|
+
|
|
2846
|
+
return defineBuiltIns$1(create$2(IteratorPrototype), {
|
|
2847
|
+
next: function next() {
|
|
2848
|
+
var state = getInternalState(this);
|
|
2849
|
+
// for simplification:
|
|
2850
|
+
// for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`
|
|
2851
|
+
// for `%IteratorHelperPrototype%.next` - just a value
|
|
2852
|
+
if (IS_ITERATOR) return state.nextHandler();
|
|
2853
|
+
try {
|
|
2854
|
+
var result = state.done ? undefined : state.nextHandler();
|
|
2855
|
+
return createIterResultObject$2(result, state.done);
|
|
2856
|
+
} catch (error) {
|
|
2857
|
+
state.done = true;
|
|
2858
|
+
throw error;
|
|
2859
|
+
}
|
|
2860
|
+
},
|
|
2861
|
+
'return': function () {
|
|
2862
|
+
var state = getInternalState(this);
|
|
2863
|
+
var iterator = state.iterator;
|
|
2864
|
+
state.done = true;
|
|
2865
|
+
if (IS_ITERATOR) {
|
|
2866
|
+
var returnMethod = getMethod$3(iterator, 'return');
|
|
2867
|
+
return returnMethod ? call$i(returnMethod, iterator) : createIterResultObject$2(undefined, true);
|
|
2868
|
+
}
|
|
2869
|
+
if (state.inner) try {
|
|
2870
|
+
iteratorClose$5(state.inner.iterator, 'normal');
|
|
2871
|
+
} catch (error) {
|
|
2872
|
+
return iteratorClose$5(iterator, 'throw', error);
|
|
2873
|
+
}
|
|
2874
|
+
iteratorClose$5(iterator, 'normal');
|
|
2875
|
+
return createIterResultObject$2(undefined, true);
|
|
2876
|
+
}
|
|
2877
|
+
});
|
|
2878
|
+
};
|
|
2879
|
+
|
|
2880
|
+
var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
|
|
2881
|
+
var IteratorHelperPrototype = createIteratorProxyPrototype(false);
|
|
2882
|
+
|
|
2883
|
+
createNonEnumerableProperty$1(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
|
|
2884
|
+
|
|
2885
|
+
var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
|
|
2886
|
+
var IteratorProxy = function Iterator(record, state) {
|
|
2887
|
+
if (state) {
|
|
2888
|
+
state.iterator = record.iterator;
|
|
2889
|
+
state.next = record.next;
|
|
2890
|
+
} else state = record;
|
|
2891
|
+
state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
|
|
2892
|
+
state.nextHandler = nextHandler;
|
|
2893
|
+
state.counter = 0;
|
|
2894
|
+
state.done = false;
|
|
2895
|
+
setInternalState$4(this, state);
|
|
2896
|
+
};
|
|
2897
|
+
|
|
2898
|
+
IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
|
|
2899
|
+
|
|
2900
|
+
return IteratorProxy;
|
|
2901
|
+
};
|
|
2902
|
+
|
|
2903
|
+
var anObject$h = anObject$t;
|
|
2904
|
+
var iteratorClose$4 = iteratorClose$6;
|
|
2905
|
+
|
|
2906
|
+
// call something on iterator step with safe closing on error
|
|
2907
|
+
var callWithSafeIterationClosing$3 = function (iterator, fn, value, ENTRIES) {
|
|
2908
|
+
try {
|
|
2909
|
+
return ENTRIES ? fn(anObject$h(value)[0], value[1]) : fn(value);
|
|
2910
|
+
} catch (error) {
|
|
2911
|
+
iteratorClose$4(iterator, 'throw', error);
|
|
2912
|
+
}
|
|
2913
|
+
};
|
|
2914
|
+
|
|
2915
|
+
var $$A = _export;
|
|
2916
|
+
var call$h = functionCall;
|
|
2730
2917
|
var aCallable$g = aCallable$j;
|
|
2918
|
+
var anObject$g = anObject$t;
|
|
2919
|
+
var getIteratorDirect$9 = getIteratorDirect$a;
|
|
2920
|
+
var createIteratorProxy$2 = iteratorCreateProxy;
|
|
2921
|
+
var callWithSafeIterationClosing$2 = callWithSafeIterationClosing$3;
|
|
2922
|
+
var IS_PURE$3 = isPure;
|
|
2923
|
+
|
|
2924
|
+
var IteratorProxy$2 = createIteratorProxy$2(function () {
|
|
2925
|
+
var iterator = this.iterator;
|
|
2926
|
+
var predicate = this.predicate;
|
|
2927
|
+
var next = this.next;
|
|
2928
|
+
var result, done, value;
|
|
2929
|
+
while (true) {
|
|
2930
|
+
result = anObject$g(call$h(next, iterator));
|
|
2931
|
+
done = this.done = !!result.done;
|
|
2932
|
+
if (done) return;
|
|
2933
|
+
value = result.value;
|
|
2934
|
+
if (callWithSafeIterationClosing$2(iterator, predicate, [value, this.counter++], true)) return value;
|
|
2935
|
+
}
|
|
2936
|
+
});
|
|
2937
|
+
|
|
2938
|
+
// `Iterator.prototype.filter` method
|
|
2939
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
2940
|
+
$$A({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$3 }, {
|
|
2941
|
+
filter: function filter(predicate) {
|
|
2942
|
+
anObject$g(this);
|
|
2943
|
+
aCallable$g(predicate);
|
|
2944
|
+
return new IteratorProxy$2(getIteratorDirect$9(this), {
|
|
2945
|
+
predicate: predicate
|
|
2946
|
+
});
|
|
2947
|
+
}
|
|
2948
|
+
});
|
|
2949
|
+
|
|
2950
|
+
var uncurryThis$l = functionUncurryThisClause;
|
|
2951
|
+
var aCallable$f = aCallable$j;
|
|
2731
2952
|
var NATIVE_BIND = functionBindNative;
|
|
2732
2953
|
|
|
2733
|
-
var bind$8 = uncurryThis$
|
|
2954
|
+
var bind$8 = uncurryThis$l(uncurryThis$l.bind);
|
|
2734
2955
|
|
|
2735
2956
|
// optional / simple context binding
|
|
2736
2957
|
var functionBindContext = function (fn, that) {
|
|
2737
|
-
aCallable$
|
|
2958
|
+
aCallable$f(fn);
|
|
2738
2959
|
return that === undefined ? fn : NATIVE_BIND ? bind$8(fn, that) : function (/* ...args */) {
|
|
2739
2960
|
return fn.apply(that, arguments);
|
|
2740
2961
|
};
|
|
2741
2962
|
};
|
|
2742
2963
|
|
|
2743
|
-
var wellKnownSymbol$
|
|
2964
|
+
var wellKnownSymbol$9 = wellKnownSymbol$o;
|
|
2744
2965
|
var Iterators$1 = iterators;
|
|
2745
2966
|
|
|
2746
|
-
var ITERATOR$5 = wellKnownSymbol$
|
|
2967
|
+
var ITERATOR$5 = wellKnownSymbol$9('iterator');
|
|
2747
2968
|
var ArrayPrototype = Array.prototype;
|
|
2748
2969
|
|
|
2749
2970
|
// check on default Array iterator
|
|
@@ -2752,22 +2973,22 @@ var isArrayIteratorMethod$2 = function (it) {
|
|
|
2752
2973
|
};
|
|
2753
2974
|
|
|
2754
2975
|
var classof$6 = classof$a;
|
|
2755
|
-
var getMethod$
|
|
2976
|
+
var getMethod$2 = getMethod$7;
|
|
2756
2977
|
var isNullOrUndefined$3 = isNullOrUndefined$7;
|
|
2757
2978
|
var Iterators = iterators;
|
|
2758
|
-
var wellKnownSymbol$
|
|
2979
|
+
var wellKnownSymbol$8 = wellKnownSymbol$o;
|
|
2759
2980
|
|
|
2760
|
-
var ITERATOR$4 = wellKnownSymbol$
|
|
2981
|
+
var ITERATOR$4 = wellKnownSymbol$8('iterator');
|
|
2761
2982
|
|
|
2762
2983
|
var getIteratorMethod$5 = function (it) {
|
|
2763
|
-
if (!isNullOrUndefined$3(it)) return getMethod$
|
|
2764
|
-
|| getMethod$
|
|
2984
|
+
if (!isNullOrUndefined$3(it)) return getMethod$2(it, ITERATOR$4)
|
|
2985
|
+
|| getMethod$2(it, '@@iterator')
|
|
2765
2986
|
|| Iterators[classof$6(it)];
|
|
2766
2987
|
};
|
|
2767
2988
|
|
|
2768
|
-
var call$
|
|
2769
|
-
var aCallable$
|
|
2770
|
-
var anObject$
|
|
2989
|
+
var call$g = functionCall;
|
|
2990
|
+
var aCallable$e = aCallable$j;
|
|
2991
|
+
var anObject$f = anObject$t;
|
|
2771
2992
|
var tryToString$2 = tryToString$4;
|
|
2772
2993
|
var getIteratorMethod$4 = getIteratorMethod$5;
|
|
2773
2994
|
|
|
@@ -2775,44 +2996,20 @@ var $TypeError$a = TypeError;
|
|
|
2775
2996
|
|
|
2776
2997
|
var getIterator$3 = function (argument, usingIterator) {
|
|
2777
2998
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$4(argument) : usingIterator;
|
|
2778
|
-
if (aCallable$
|
|
2999
|
+
if (aCallable$e(iteratorMethod)) return anObject$f(call$g(iteratorMethod, argument));
|
|
2779
3000
|
throw new $TypeError$a(tryToString$2(argument) + ' is not iterable');
|
|
2780
3001
|
};
|
|
2781
3002
|
|
|
2782
|
-
var call$i = functionCall;
|
|
2783
|
-
var anObject$h = anObject$t;
|
|
2784
|
-
var getMethod$3 = getMethod$7;
|
|
2785
|
-
|
|
2786
|
-
var iteratorClose$6 = function (iterator, kind, value) {
|
|
2787
|
-
var innerResult, innerError;
|
|
2788
|
-
anObject$h(iterator);
|
|
2789
|
-
try {
|
|
2790
|
-
innerResult = getMethod$3(iterator, 'return');
|
|
2791
|
-
if (!innerResult) {
|
|
2792
|
-
if (kind === 'throw') throw value;
|
|
2793
|
-
return value;
|
|
2794
|
-
}
|
|
2795
|
-
innerResult = call$i(innerResult, iterator);
|
|
2796
|
-
} catch (error) {
|
|
2797
|
-
innerError = true;
|
|
2798
|
-
innerResult = error;
|
|
2799
|
-
}
|
|
2800
|
-
if (kind === 'throw') throw value;
|
|
2801
|
-
if (innerError) throw innerResult;
|
|
2802
|
-
anObject$h(innerResult);
|
|
2803
|
-
return value;
|
|
2804
|
-
};
|
|
2805
|
-
|
|
2806
3003
|
var bind$7 = functionBindContext;
|
|
2807
|
-
var call$
|
|
2808
|
-
var anObject$
|
|
3004
|
+
var call$f = functionCall;
|
|
3005
|
+
var anObject$e = anObject$t;
|
|
2809
3006
|
var tryToString$1 = tryToString$4;
|
|
2810
3007
|
var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
|
|
2811
3008
|
var lengthOfArrayLike$7 = lengthOfArrayLike$a;
|
|
2812
3009
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
2813
3010
|
var getIterator$2 = getIterator$3;
|
|
2814
3011
|
var getIteratorMethod$3 = getIteratorMethod$5;
|
|
2815
|
-
var iteratorClose$
|
|
3012
|
+
var iteratorClose$3 = iteratorClose$6;
|
|
2816
3013
|
|
|
2817
3014
|
var $TypeError$9 = TypeError;
|
|
2818
3015
|
|
|
@@ -2833,13 +3030,13 @@ var iterate$a = function (iterable, unboundFunction, options) {
|
|
|
2833
3030
|
var iterator, iterFn, index, length, result, next, step;
|
|
2834
3031
|
|
|
2835
3032
|
var stop = function (condition) {
|
|
2836
|
-
if (iterator) iteratorClose$
|
|
3033
|
+
if (iterator) iteratorClose$3(iterator, 'normal', condition);
|
|
2837
3034
|
return new Result(true, condition);
|
|
2838
3035
|
};
|
|
2839
3036
|
|
|
2840
3037
|
var callFn = function (value) {
|
|
2841
3038
|
if (AS_ENTRIES) {
|
|
2842
|
-
anObject$
|
|
3039
|
+
anObject$e(value);
|
|
2843
3040
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
2844
3041
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
2845
3042
|
};
|
|
@@ -2862,39 +3059,29 @@ var iterate$a = function (iterable, unboundFunction, options) {
|
|
|
2862
3059
|
}
|
|
2863
3060
|
|
|
2864
3061
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
2865
|
-
while (!(step = call$
|
|
3062
|
+
while (!(step = call$f(next, iterator)).done) {
|
|
2866
3063
|
try {
|
|
2867
3064
|
result = callFn(step.value);
|
|
2868
3065
|
} catch (error) {
|
|
2869
|
-
iteratorClose$
|
|
3066
|
+
iteratorClose$3(iterator, 'throw', error);
|
|
2870
3067
|
}
|
|
2871
3068
|
if (typeof result == 'object' && result && isPrototypeOf$2(ResultPrototype, result)) return result;
|
|
2872
3069
|
} return new Result(false);
|
|
2873
3070
|
};
|
|
2874
3071
|
|
|
2875
|
-
|
|
2876
|
-
// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
|
|
2877
|
-
var getIteratorDirect$a = function (obj) {
|
|
2878
|
-
return {
|
|
2879
|
-
iterator: obj,
|
|
2880
|
-
next: obj.next,
|
|
2881
|
-
done: false
|
|
2882
|
-
};
|
|
2883
|
-
};
|
|
2884
|
-
|
|
2885
|
-
var $$B = _export;
|
|
3072
|
+
var $$z = _export;
|
|
2886
3073
|
var iterate$9 = iterate$a;
|
|
2887
|
-
var aCallable$
|
|
2888
|
-
var anObject$
|
|
2889
|
-
var getIteratorDirect$
|
|
3074
|
+
var aCallable$d = aCallable$j;
|
|
3075
|
+
var anObject$d = anObject$t;
|
|
3076
|
+
var getIteratorDirect$8 = getIteratorDirect$a;
|
|
2890
3077
|
|
|
2891
3078
|
// `Iterator.prototype.find` method
|
|
2892
3079
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
2893
|
-
$$
|
|
3080
|
+
$$z({ target: 'Iterator', proto: true, real: true }, {
|
|
2894
3081
|
find: function find(predicate) {
|
|
2895
|
-
anObject$
|
|
2896
|
-
aCallable$
|
|
2897
|
-
var record = getIteratorDirect$
|
|
3082
|
+
anObject$d(this);
|
|
3083
|
+
aCallable$d(predicate);
|
|
3084
|
+
var record = getIteratorDirect$8(this);
|
|
2898
3085
|
var counter = 0;
|
|
2899
3086
|
return iterate$9(record, function (value, stop) {
|
|
2900
3087
|
if (predicate(value, counter++)) return stop(value);
|
|
@@ -2902,19 +3089,19 @@ $$B({ target: 'Iterator', proto: true, real: true }, {
|
|
|
2902
3089
|
}
|
|
2903
3090
|
});
|
|
2904
3091
|
|
|
2905
|
-
var $$
|
|
3092
|
+
var $$y = _export;
|
|
2906
3093
|
var iterate$8 = iterate$a;
|
|
2907
|
-
var aCallable$
|
|
2908
|
-
var anObject$
|
|
2909
|
-
var getIteratorDirect$
|
|
3094
|
+
var aCallable$c = aCallable$j;
|
|
3095
|
+
var anObject$c = anObject$t;
|
|
3096
|
+
var getIteratorDirect$7 = getIteratorDirect$a;
|
|
2910
3097
|
|
|
2911
3098
|
// `Iterator.prototype.forEach` method
|
|
2912
3099
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
2913
|
-
$$
|
|
3100
|
+
$$y({ target: 'Iterator', proto: true, real: true }, {
|
|
2914
3101
|
forEach: function forEach(fn) {
|
|
2915
|
-
anObject$
|
|
2916
|
-
aCallable$
|
|
2917
|
-
var record = getIteratorDirect$
|
|
3102
|
+
anObject$c(this);
|
|
3103
|
+
aCallable$c(fn);
|
|
3104
|
+
var record = getIteratorDirect$7(this);
|
|
2918
3105
|
var counter = 0;
|
|
2919
3106
|
iterate$8(record, function (value) {
|
|
2920
3107
|
fn(value, counter++);
|
|
@@ -2922,132 +3109,37 @@ $$A({ target: 'Iterator', proto: true, real: true }, {
|
|
|
2922
3109
|
}
|
|
2923
3110
|
});
|
|
2924
3111
|
|
|
2925
|
-
var
|
|
2926
|
-
|
|
2927
|
-
var
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
var call$g = functionCall;
|
|
2933
|
-
var create$2 = objectCreate;
|
|
2934
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$a;
|
|
2935
|
-
var defineBuiltIns$1 = defineBuiltIns$2;
|
|
2936
|
-
var wellKnownSymbol$8 = wellKnownSymbol$o;
|
|
2937
|
-
var InternalStateModule$4 = internalState;
|
|
2938
|
-
var getMethod$2 = getMethod$7;
|
|
2939
|
-
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
2940
|
-
var createIterResultObject$2 = createIterResultObject$4;
|
|
2941
|
-
var iteratorClose$4 = iteratorClose$6;
|
|
2942
|
-
|
|
2943
|
-
var TO_STRING_TAG = wellKnownSymbol$8('toStringTag');
|
|
2944
|
-
var ITERATOR_HELPER = 'IteratorHelper';
|
|
2945
|
-
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
|
|
2946
|
-
var setInternalState$4 = InternalStateModule$4.set;
|
|
2947
|
-
|
|
2948
|
-
var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
2949
|
-
var getInternalState = InternalStateModule$4.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
|
|
2950
|
-
|
|
2951
|
-
return defineBuiltIns$1(create$2(IteratorPrototype), {
|
|
2952
|
-
next: function next() {
|
|
2953
|
-
var state = getInternalState(this);
|
|
2954
|
-
// for simplification:
|
|
2955
|
-
// for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`
|
|
2956
|
-
// for `%IteratorHelperPrototype%.next` - just a value
|
|
2957
|
-
if (IS_ITERATOR) return state.nextHandler();
|
|
2958
|
-
try {
|
|
2959
|
-
var result = state.done ? undefined : state.nextHandler();
|
|
2960
|
-
return createIterResultObject$2(result, state.done);
|
|
2961
|
-
} catch (error) {
|
|
2962
|
-
state.done = true;
|
|
2963
|
-
throw error;
|
|
2964
|
-
}
|
|
2965
|
-
},
|
|
2966
|
-
'return': function () {
|
|
2967
|
-
var state = getInternalState(this);
|
|
2968
|
-
var iterator = state.iterator;
|
|
2969
|
-
state.done = true;
|
|
2970
|
-
if (IS_ITERATOR) {
|
|
2971
|
-
var returnMethod = getMethod$2(iterator, 'return');
|
|
2972
|
-
return returnMethod ? call$g(returnMethod, iterator) : createIterResultObject$2(undefined, true);
|
|
2973
|
-
}
|
|
2974
|
-
if (state.inner) try {
|
|
2975
|
-
iteratorClose$4(state.inner.iterator, 'normal');
|
|
2976
|
-
} catch (error) {
|
|
2977
|
-
return iteratorClose$4(iterator, 'throw', error);
|
|
2978
|
-
}
|
|
2979
|
-
iteratorClose$4(iterator, 'normal');
|
|
2980
|
-
return createIterResultObject$2(undefined, true);
|
|
2981
|
-
}
|
|
2982
|
-
});
|
|
2983
|
-
};
|
|
2984
|
-
|
|
2985
|
-
var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
|
|
2986
|
-
var IteratorHelperPrototype = createIteratorProxyPrototype(false);
|
|
2987
|
-
|
|
2988
|
-
createNonEnumerableProperty$1(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
|
|
2989
|
-
|
|
2990
|
-
var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
|
|
2991
|
-
var IteratorProxy = function Iterator(record, state) {
|
|
2992
|
-
if (state) {
|
|
2993
|
-
state.iterator = record.iterator;
|
|
2994
|
-
state.next = record.next;
|
|
2995
|
-
} else state = record;
|
|
2996
|
-
state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
|
|
2997
|
-
state.nextHandler = nextHandler;
|
|
2998
|
-
state.counter = 0;
|
|
2999
|
-
state.done = false;
|
|
3000
|
-
setInternalState$4(this, state);
|
|
3001
|
-
};
|
|
3002
|
-
|
|
3003
|
-
IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
|
|
3004
|
-
|
|
3005
|
-
return IteratorProxy;
|
|
3006
|
-
};
|
|
3007
|
-
|
|
3008
|
-
var anObject$d = anObject$t;
|
|
3009
|
-
var iteratorClose$3 = iteratorClose$6;
|
|
3010
|
-
|
|
3011
|
-
// call something on iterator step with safe closing on error
|
|
3012
|
-
var callWithSafeIterationClosing$3 = function (iterator, fn, value, ENTRIES) {
|
|
3013
|
-
try {
|
|
3014
|
-
return ENTRIES ? fn(anObject$d(value)[0], value[1]) : fn(value);
|
|
3015
|
-
} catch (error) {
|
|
3016
|
-
iteratorClose$3(iterator, 'throw', error);
|
|
3017
|
-
}
|
|
3018
|
-
};
|
|
3019
|
-
|
|
3020
|
-
var call$f = functionCall;
|
|
3021
|
-
var aCallable$c = aCallable$j;
|
|
3022
|
-
var anObject$c = anObject$t;
|
|
3023
|
-
var getIteratorDirect$7 = getIteratorDirect$a;
|
|
3024
|
-
var createIteratorProxy$2 = iteratorCreateProxy;
|
|
3025
|
-
var callWithSafeIterationClosing$2 = callWithSafeIterationClosing$3;
|
|
3112
|
+
var call$e = functionCall;
|
|
3113
|
+
var aCallable$b = aCallable$j;
|
|
3114
|
+
var anObject$b = anObject$t;
|
|
3115
|
+
var getIteratorDirect$6 = getIteratorDirect$a;
|
|
3116
|
+
var createIteratorProxy$1 = iteratorCreateProxy;
|
|
3117
|
+
var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$3;
|
|
3026
3118
|
|
|
3027
|
-
var IteratorProxy$
|
|
3119
|
+
var IteratorProxy$1 = createIteratorProxy$1(function () {
|
|
3028
3120
|
var iterator = this.iterator;
|
|
3029
|
-
var result = anObject$
|
|
3121
|
+
var result = anObject$b(call$e(this.next, iterator));
|
|
3030
3122
|
var done = this.done = !!result.done;
|
|
3031
|
-
if (!done) return callWithSafeIterationClosing$
|
|
3123
|
+
if (!done) return callWithSafeIterationClosing$1(iterator, this.mapper, [result.value, this.counter++], true);
|
|
3032
3124
|
});
|
|
3033
3125
|
|
|
3034
3126
|
// `Iterator.prototype.map` method
|
|
3035
3127
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
3036
3128
|
var iteratorMap = function map(mapper) {
|
|
3037
|
-
anObject$
|
|
3038
|
-
aCallable$
|
|
3039
|
-
return new IteratorProxy$
|
|
3129
|
+
anObject$b(this);
|
|
3130
|
+
aCallable$b(mapper);
|
|
3131
|
+
return new IteratorProxy$1(getIteratorDirect$6(this), {
|
|
3040
3132
|
mapper: mapper
|
|
3041
3133
|
});
|
|
3042
3134
|
};
|
|
3043
3135
|
|
|
3044
|
-
var $$
|
|
3136
|
+
var $$x = _export;
|
|
3045
3137
|
var map = iteratorMap;
|
|
3046
|
-
var IS_PURE$
|
|
3138
|
+
var IS_PURE$2 = isPure;
|
|
3047
3139
|
|
|
3048
3140
|
// `Iterator.prototype.map` method
|
|
3049
3141
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
3050
|
-
$$
|
|
3142
|
+
$$x({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$2 }, {
|
|
3051
3143
|
map: map
|
|
3052
3144
|
});
|
|
3053
3145
|
|
|
@@ -3067,19 +3159,19 @@ const getAddressLookupFieldLabel = fieldName => {
|
|
|
3067
3159
|
return ADDRESS_LOOKUP_LABELS[fieldName] || fieldName;
|
|
3068
3160
|
};
|
|
3069
3161
|
|
|
3070
|
-
var $$
|
|
3162
|
+
var $$w = _export;
|
|
3071
3163
|
var iterate$7 = iterate$a;
|
|
3072
|
-
var aCallable$
|
|
3073
|
-
var anObject$
|
|
3074
|
-
var getIteratorDirect$
|
|
3164
|
+
var aCallable$a = aCallable$j;
|
|
3165
|
+
var anObject$a = anObject$t;
|
|
3166
|
+
var getIteratorDirect$5 = getIteratorDirect$a;
|
|
3075
3167
|
|
|
3076
3168
|
// `Iterator.prototype.every` method
|
|
3077
3169
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
3078
|
-
$$
|
|
3170
|
+
$$w({ target: 'Iterator', proto: true, real: true }, {
|
|
3079
3171
|
every: function every(predicate) {
|
|
3080
|
-
anObject$
|
|
3081
|
-
aCallable$
|
|
3082
|
-
var record = getIteratorDirect$
|
|
3172
|
+
anObject$a(this);
|
|
3173
|
+
aCallable$a(predicate);
|
|
3174
|
+
var record = getIteratorDirect$5(this);
|
|
3083
3175
|
var counter = 0;
|
|
3084
3176
|
return !iterate$7(record, function (value, stop) {
|
|
3085
3177
|
if (!predicate(value, counter++)) return stop();
|
|
@@ -3087,42 +3179,7 @@ $$y({ target: 'Iterator', proto: true, real: true }, {
|
|
|
3087
3179
|
}
|
|
3088
3180
|
});
|
|
3089
3181
|
|
|
3090
|
-
var
|
|
3091
|
-
var call$e = functionCall;
|
|
3092
|
-
var aCallable$a = aCallable$j;
|
|
3093
|
-
var anObject$a = anObject$t;
|
|
3094
|
-
var getIteratorDirect$5 = getIteratorDirect$a;
|
|
3095
|
-
var createIteratorProxy$1 = iteratorCreateProxy;
|
|
3096
|
-
var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$3;
|
|
3097
|
-
var IS_PURE$2 = isPure;
|
|
3098
|
-
|
|
3099
|
-
var IteratorProxy$1 = createIteratorProxy$1(function () {
|
|
3100
|
-
var iterator = this.iterator;
|
|
3101
|
-
var predicate = this.predicate;
|
|
3102
|
-
var next = this.next;
|
|
3103
|
-
var result, done, value;
|
|
3104
|
-
while (true) {
|
|
3105
|
-
result = anObject$a(call$e(next, iterator));
|
|
3106
|
-
done = this.done = !!result.done;
|
|
3107
|
-
if (done) return;
|
|
3108
|
-
value = result.value;
|
|
3109
|
-
if (callWithSafeIterationClosing$1(iterator, predicate, [value, this.counter++], true)) return value;
|
|
3110
|
-
}
|
|
3111
|
-
});
|
|
3112
|
-
|
|
3113
|
-
// `Iterator.prototype.filter` method
|
|
3114
|
-
// https://github.com/tc39/proposal-iterator-helpers
|
|
3115
|
-
$$x({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$2 }, {
|
|
3116
|
-
filter: function filter(predicate) {
|
|
3117
|
-
anObject$a(this);
|
|
3118
|
-
aCallable$a(predicate);
|
|
3119
|
-
return new IteratorProxy$1(getIteratorDirect$5(this), {
|
|
3120
|
-
predicate: predicate
|
|
3121
|
-
});
|
|
3122
|
-
}
|
|
3123
|
-
});
|
|
3124
|
-
|
|
3125
|
-
var uncurryThis$l = functionUncurryThis;
|
|
3182
|
+
var uncurryThis$k = functionUncurryThis;
|
|
3126
3183
|
|
|
3127
3184
|
// eslint-disable-next-line es/no-set -- safe
|
|
3128
3185
|
var SetPrototype$1 = Set.prototype;
|
|
@@ -3130,9 +3187,9 @@ var SetPrototype$1 = Set.prototype;
|
|
|
3130
3187
|
var setHelpers = {
|
|
3131
3188
|
// eslint-disable-next-line es/no-set -- safe
|
|
3132
3189
|
Set: Set,
|
|
3133
|
-
add: uncurryThis$
|
|
3134
|
-
has: uncurryThis$
|
|
3135
|
-
remove: uncurryThis$
|
|
3190
|
+
add: uncurryThis$k(SetPrototype$1.add),
|
|
3191
|
+
has: uncurryThis$k(SetPrototype$1.has),
|
|
3192
|
+
remove: uncurryThis$k(SetPrototype$1['delete']),
|
|
3136
3193
|
proto: SetPrototype$1
|
|
3137
3194
|
};
|
|
3138
3195
|
|
|
@@ -3156,14 +3213,14 @@ var iterateSimple$7 = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
|
|
|
3156
3213
|
}
|
|
3157
3214
|
};
|
|
3158
3215
|
|
|
3159
|
-
var uncurryThis$
|
|
3216
|
+
var uncurryThis$j = functionUncurryThis;
|
|
3160
3217
|
var iterateSimple$6 = iterateSimple$7;
|
|
3161
3218
|
var SetHelpers$5 = setHelpers;
|
|
3162
3219
|
|
|
3163
3220
|
var Set$3 = SetHelpers$5.Set;
|
|
3164
3221
|
var SetPrototype = SetHelpers$5.proto;
|
|
3165
|
-
var forEach$2 = uncurryThis$
|
|
3166
|
-
var keys$1 = uncurryThis$
|
|
3222
|
+
var forEach$2 = uncurryThis$j(SetPrototype.forEach);
|
|
3223
|
+
var keys$1 = uncurryThis$j(SetPrototype.keys);
|
|
3167
3224
|
var next = keys$1(new Set$3()).next;
|
|
3168
3225
|
|
|
3169
3226
|
var setIterate = function (set, fn, interruptible) {
|
|
@@ -3292,13 +3349,13 @@ var setMethodAcceptSetLike$7 = function (name) {
|
|
|
3292
3349
|
}
|
|
3293
3350
|
};
|
|
3294
3351
|
|
|
3295
|
-
var $$
|
|
3352
|
+
var $$v = _export;
|
|
3296
3353
|
var difference = setDifference;
|
|
3297
3354
|
var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
|
|
3298
3355
|
|
|
3299
3356
|
// `Set.prototype.difference` method
|
|
3300
3357
|
// https://github.com/tc39/proposal-set-methods
|
|
3301
|
-
$$
|
|
3358
|
+
$$v({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
|
|
3302
3359
|
difference: difference
|
|
3303
3360
|
});
|
|
3304
3361
|
|
|
@@ -3333,19 +3390,19 @@ var setIntersection = function intersection(other) {
|
|
|
3333
3390
|
return result;
|
|
3334
3391
|
};
|
|
3335
3392
|
|
|
3336
|
-
var $$
|
|
3337
|
-
var fails$
|
|
3393
|
+
var $$u = _export;
|
|
3394
|
+
var fails$b = fails$x;
|
|
3338
3395
|
var intersection = setIntersection;
|
|
3339
3396
|
var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
|
|
3340
3397
|
|
|
3341
|
-
var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails$
|
|
3398
|
+
var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails$b(function () {
|
|
3342
3399
|
// eslint-disable-next-line es/no-array-from, es/no-set -- testing
|
|
3343
3400
|
return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
|
|
3344
3401
|
});
|
|
3345
3402
|
|
|
3346
3403
|
// `Set.prototype.intersection` method
|
|
3347
3404
|
// https://github.com/tc39/proposal-set-methods
|
|
3348
|
-
$$
|
|
3405
|
+
$$u({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
3349
3406
|
intersection: intersection
|
|
3350
3407
|
});
|
|
3351
3408
|
|
|
@@ -3371,13 +3428,13 @@ var setIsDisjointFrom = function isDisjointFrom(other) {
|
|
|
3371
3428
|
}) !== false;
|
|
3372
3429
|
};
|
|
3373
3430
|
|
|
3374
|
-
var $$
|
|
3431
|
+
var $$t = _export;
|
|
3375
3432
|
var isDisjointFrom = setIsDisjointFrom;
|
|
3376
3433
|
var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
|
|
3377
3434
|
|
|
3378
3435
|
// `Set.prototype.isDisjointFrom` method
|
|
3379
3436
|
// https://github.com/tc39/proposal-set-methods
|
|
3380
|
-
$$
|
|
3437
|
+
$$t({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$4('isDisjointFrom') }, {
|
|
3381
3438
|
isDisjointFrom: isDisjointFrom
|
|
3382
3439
|
});
|
|
3383
3440
|
|
|
@@ -3397,13 +3454,13 @@ var setIsSubsetOf = function isSubsetOf(other) {
|
|
|
3397
3454
|
}, true) !== false;
|
|
3398
3455
|
};
|
|
3399
3456
|
|
|
3400
|
-
var $$
|
|
3457
|
+
var $$s = _export;
|
|
3401
3458
|
var isSubsetOf = setIsSubsetOf;
|
|
3402
3459
|
var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
|
|
3403
3460
|
|
|
3404
3461
|
// `Set.prototype.isSubsetOf` method
|
|
3405
3462
|
// https://github.com/tc39/proposal-set-methods
|
|
3406
|
-
$$
|
|
3463
|
+
$$s({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$3('isSubsetOf') }, {
|
|
3407
3464
|
isSubsetOf: isSubsetOf
|
|
3408
3465
|
});
|
|
3409
3466
|
|
|
@@ -3426,13 +3483,13 @@ var setIsSupersetOf = function isSupersetOf(other) {
|
|
|
3426
3483
|
}) !== false;
|
|
3427
3484
|
};
|
|
3428
3485
|
|
|
3429
|
-
var $$
|
|
3486
|
+
var $$r = _export;
|
|
3430
3487
|
var isSupersetOf = setIsSupersetOf;
|
|
3431
3488
|
var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
|
|
3432
3489
|
|
|
3433
3490
|
// `Set.prototype.isSupersetOf` method
|
|
3434
3491
|
// https://github.com/tc39/proposal-set-methods
|
|
3435
|
-
$$
|
|
3492
|
+
$$r({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$2('isSupersetOf') }, {
|
|
3436
3493
|
isSupersetOf: isSupersetOf
|
|
3437
3494
|
});
|
|
3438
3495
|
|
|
@@ -3459,13 +3516,13 @@ var setSymmetricDifference = function symmetricDifference(other) {
|
|
|
3459
3516
|
return result;
|
|
3460
3517
|
};
|
|
3461
3518
|
|
|
3462
|
-
var $$
|
|
3519
|
+
var $$q = _export;
|
|
3463
3520
|
var symmetricDifference = setSymmetricDifference;
|
|
3464
3521
|
var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
|
|
3465
3522
|
|
|
3466
3523
|
// `Set.prototype.symmetricDifference` method
|
|
3467
3524
|
// https://github.com/tc39/proposal-set-methods
|
|
3468
|
-
$$
|
|
3525
|
+
$$q({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
|
|
3469
3526
|
symmetricDifference: symmetricDifference
|
|
3470
3527
|
});
|
|
3471
3528
|
|
|
@@ -3487,13 +3544,13 @@ var setUnion = function union(other) {
|
|
|
3487
3544
|
return result;
|
|
3488
3545
|
};
|
|
3489
3546
|
|
|
3490
|
-
var $$
|
|
3547
|
+
var $$p = _export;
|
|
3491
3548
|
var union = setUnion;
|
|
3492
3549
|
var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
|
|
3493
3550
|
|
|
3494
3551
|
// `Set.prototype.union` method
|
|
3495
3552
|
// https://github.com/tc39/proposal-set-methods
|
|
3496
|
-
$$
|
|
3553
|
+
$$p({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
|
|
3497
3554
|
union: union
|
|
3498
3555
|
});
|
|
3499
3556
|
|
|
@@ -3633,8 +3690,8 @@ const capitalizeFirstLetter = words => {
|
|
|
3633
3690
|
const controlScopeMatchesLabel = (scope, label) => {
|
|
3634
3691
|
var _scope$replace$split$, _scope$replace$split;
|
|
3635
3692
|
// Get the property name in the string from the scope
|
|
3636
|
-
const splitIdName = (_scope$replace$split$ = scope == null || (_scope$replace$split = scope.replace(
|
|
3637
|
-
const labelWithNoSpaces = label == null ? void 0 : label.replace(
|
|
3693
|
+
const splitIdName = (_scope$replace$split$ = scope == null || (_scope$replace$split = scope.replace(/\s+/g, '').split('/')) == null || (_scope$replace$split = _scope$replace$split.at(-1)) == null ? void 0 : _scope$replace$split.toLowerCase()) != null ? _scope$replace$split$ : '';
|
|
3694
|
+
const labelWithNoSpaces = label == null ? void 0 : label.replace(/\s+/g, '').toLowerCase();
|
|
3638
3695
|
return splitIdName === labelWithNoSpaces;
|
|
3639
3696
|
};
|
|
3640
3697
|
/**
|
|
@@ -3655,6 +3712,46 @@ const getLabelText = (scope, label) => {
|
|
|
3655
3712
|
const areAllUppercase = label => {
|
|
3656
3713
|
return /^[^a-z]*$/.test(label);
|
|
3657
3714
|
};
|
|
3715
|
+
const getExplicitControlLabel = props => {
|
|
3716
|
+
var _props$uischema, _props$schema, _props$uischema2;
|
|
3717
|
+
const optionText = (_props$uischema = props.uischema) == null || (_props$uischema = _props$uischema.options) == null ? void 0 : _props$uischema.text;
|
|
3718
|
+
if (typeof optionText === 'string' && optionText.trim()) {
|
|
3719
|
+
return optionText.trim();
|
|
3720
|
+
}
|
|
3721
|
+
if (typeof ((_props$schema = props.schema) == null ? void 0 : _props$schema.title) === 'string' && props.schema.title.trim()) {
|
|
3722
|
+
return props.schema.title.trim();
|
|
3723
|
+
}
|
|
3724
|
+
const uiLabel = (_props$uischema2 = props.uischema) == null ? void 0 : _props$uischema2.label;
|
|
3725
|
+
if (typeof uiLabel === 'string' && uiLabel.trim()) {
|
|
3726
|
+
return uiLabel.trim();
|
|
3727
|
+
}
|
|
3728
|
+
if (typeof uiLabel === 'object' && uiLabel !== null && 'text' in uiLabel) {
|
|
3729
|
+
const text = uiLabel.text;
|
|
3730
|
+
if (typeof text === 'string' && text.trim()) {
|
|
3731
|
+
return text.trim();
|
|
3732
|
+
}
|
|
3733
|
+
}
|
|
3734
|
+
return undefined;
|
|
3735
|
+
};
|
|
3736
|
+
const getGeneratedLabelFromScope = scope => {
|
|
3737
|
+
if (!(scope != null && scope.startsWith('#/'))) {
|
|
3738
|
+
return '';
|
|
3739
|
+
}
|
|
3740
|
+
const propertyName = getLastSegmentFromPointer(scope);
|
|
3741
|
+
const readableLabel = convertToReadableFormat(propertyName);
|
|
3742
|
+
return getLabelText(scope, readableLabel);
|
|
3743
|
+
};
|
|
3744
|
+
const getControlLabelText = props => {
|
|
3745
|
+
var _props$uischema3;
|
|
3746
|
+
const explicitLabel = getExplicitControlLabel(props);
|
|
3747
|
+
if (explicitLabel) {
|
|
3748
|
+
return explicitLabel;
|
|
3749
|
+
}
|
|
3750
|
+
if ((_props$uischema3 = props.uischema) != null && (_props$uischema3 = _props$uischema3.scope) != null && _props$uischema3.startsWith('#/')) {
|
|
3751
|
+
return getGeneratedLabelFromScope(props.uischema.scope);
|
|
3752
|
+
}
|
|
3753
|
+
return props.label || '';
|
|
3754
|
+
};
|
|
3658
3755
|
const isEmptyBoolean = (schema, data) => {
|
|
3659
3756
|
return schema.type !== undefined && schema.type === 'boolean' && (data === null || data === undefined);
|
|
3660
3757
|
};
|
|
@@ -3748,10 +3845,9 @@ const checkFieldValidity = (props, rootData) => {
|
|
|
3748
3845
|
data,
|
|
3749
3846
|
errors: ajvErrors,
|
|
3750
3847
|
required,
|
|
3751
|
-
label,
|
|
3752
3848
|
schema
|
|
3753
3849
|
} = props;
|
|
3754
|
-
const labelToUpdate =
|
|
3850
|
+
const labelToUpdate = getControlLabelText(props);
|
|
3755
3851
|
const extraSchema = schema;
|
|
3756
3852
|
if (extraSchema && data && (extraSchema == null ? void 0 : extraSchema.title) === sinTitle) {
|
|
3757
3853
|
if (data.length === 11 && !validateSinWithLuhn(data)) {
|
|
@@ -3813,7 +3909,7 @@ const convertToReadableFormat = input => {
|
|
|
3813
3909
|
if (!input) {
|
|
3814
3910
|
return input;
|
|
3815
3911
|
}
|
|
3816
|
-
return input.replace(/([a-z])([A-Z])/g, '$1 $2').split(' ').map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(' ');
|
|
3912
|
+
return input.replace(/([a-z])([A-Z])/g, '$1 $2').replace(/[_-]/g, ' ').split(' ').filter(Boolean).map(word => areAllUppercase(word) ? word : word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(' ');
|
|
3817
3913
|
};
|
|
3818
3914
|
|
|
3819
3915
|
const standardizeDate = date => {
|
|
@@ -4078,23 +4174,23 @@ const ensureGoaDatePointerCursor = host => {
|
|
|
4078
4174
|
sr.appendChild(style);
|
|
4079
4175
|
};
|
|
4080
4176
|
|
|
4081
|
-
let _$
|
|
4082
|
-
_t$
|
|
4177
|
+
let _$b = t => t,
|
|
4178
|
+
_t$c,
|
|
4083
4179
|
_t2$6;
|
|
4084
|
-
styled.div(_t$
|
|
4180
|
+
styled.div(_t$c || (_t$c = _$b`
|
|
4085
4181
|
height: 70vh;
|
|
4086
4182
|
overflow-y: auto;
|
|
4087
4183
|
padding-left: var(--goa-space-2xs);
|
|
4088
4184
|
padding-right: var(--goa-space-2xs);
|
|
4089
4185
|
`));
|
|
4090
|
-
const Visible = styled.div(_t2$6 || (_t2$6 = _$
|
|
4186
|
+
const Visible = styled.div(_t2$6 || (_t2$6 = _$b`
|
|
4091
4187
|
display: ${0};
|
|
4092
4188
|
width: 100%;
|
|
4093
4189
|
`), p => p.visible ? 'block' : 'none');
|
|
4094
4190
|
|
|
4095
|
-
var uncurryThis$
|
|
4191
|
+
var uncurryThis$i = functionUncurryThis;
|
|
4096
4192
|
|
|
4097
|
-
var arraySlice$4 = uncurryThis$
|
|
4193
|
+
var arraySlice$4 = uncurryThis$i([].slice);
|
|
4098
4194
|
|
|
4099
4195
|
var classof$5 = classofRaw$2;
|
|
4100
4196
|
|
|
@@ -4105,13 +4201,13 @@ var isArray$5 = Array.isArray || function isArray(argument) {
|
|
|
4105
4201
|
return classof$5(argument) === 'Array';
|
|
4106
4202
|
};
|
|
4107
4203
|
|
|
4108
|
-
var uncurryThis$
|
|
4204
|
+
var uncurryThis$h = functionUncurryThis;
|
|
4109
4205
|
var isArray$4 = isArray$5;
|
|
4110
4206
|
var isCallable$9 = isCallable$t;
|
|
4111
4207
|
var classof$4 = classofRaw$2;
|
|
4112
|
-
var toString$
|
|
4208
|
+
var toString$d = toString$m;
|
|
4113
4209
|
|
|
4114
|
-
var push$6 = uncurryThis$
|
|
4210
|
+
var push$6 = uncurryThis$h([].push);
|
|
4115
4211
|
|
|
4116
4212
|
var getJsonReplacerFunction = function (replacer) {
|
|
4117
4213
|
if (isCallable$9(replacer)) return replacer;
|
|
@@ -4121,7 +4217,7 @@ var getJsonReplacerFunction = function (replacer) {
|
|
|
4121
4217
|
for (var i = 0; i < rawLength; i++) {
|
|
4122
4218
|
var element = replacer[i];
|
|
4123
4219
|
if (typeof element == 'string') push$6(keys, element);
|
|
4124
|
-
else if (typeof element == 'number' || classof$4(element) === 'Number' || classof$4(element) === 'String') push$6(keys, toString$
|
|
4220
|
+
else if (typeof element == 'number' || classof$4(element) === 'Number' || classof$4(element) === 'String') push$6(keys, toString$d(element));
|
|
4125
4221
|
}
|
|
4126
4222
|
var keysLength = keys.length;
|
|
4127
4223
|
var root = true;
|
|
@@ -4135,12 +4231,12 @@ var getJsonReplacerFunction = function (replacer) {
|
|
|
4135
4231
|
};
|
|
4136
4232
|
};
|
|
4137
4233
|
|
|
4138
|
-
var $$
|
|
4234
|
+
var $$o = _export;
|
|
4139
4235
|
var getBuiltIn$5 = getBuiltIn$b;
|
|
4140
4236
|
var apply$1 = functionApply;
|
|
4141
4237
|
var call$b = functionCall;
|
|
4142
|
-
var uncurryThis$
|
|
4143
|
-
var fails$
|
|
4238
|
+
var uncurryThis$g = functionUncurryThis;
|
|
4239
|
+
var fails$a = fails$x;
|
|
4144
4240
|
var isCallable$8 = isCallable$t;
|
|
4145
4241
|
var isSymbol = isSymbol$3;
|
|
4146
4242
|
var arraySlice$3 = arraySlice$4;
|
|
@@ -4149,17 +4245,17 @@ var NATIVE_SYMBOL$2 = symbolConstructorDetection;
|
|
|
4149
4245
|
|
|
4150
4246
|
var $String = String;
|
|
4151
4247
|
var $stringify = getBuiltIn$5('JSON', 'stringify');
|
|
4152
|
-
var exec$7 = uncurryThis$
|
|
4153
|
-
var charAt$4 = uncurryThis$
|
|
4154
|
-
var charCodeAt$1 = uncurryThis$
|
|
4155
|
-
var replace$
|
|
4156
|
-
var numberToString$1 = uncurryThis$
|
|
4248
|
+
var exec$7 = uncurryThis$g(/./.exec);
|
|
4249
|
+
var charAt$4 = uncurryThis$g(''.charAt);
|
|
4250
|
+
var charCodeAt$1 = uncurryThis$g(''.charCodeAt);
|
|
4251
|
+
var replace$5 = uncurryThis$g(''.replace);
|
|
4252
|
+
var numberToString$1 = uncurryThis$g(1.0.toString);
|
|
4157
4253
|
|
|
4158
4254
|
var tester = /[\uD800-\uDFFF]/g;
|
|
4159
4255
|
var low = /^[\uD800-\uDBFF]$/;
|
|
4160
4256
|
var hi = /^[\uDC00-\uDFFF]$/;
|
|
4161
4257
|
|
|
4162
|
-
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$2 || fails$
|
|
4258
|
+
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$2 || fails$a(function () {
|
|
4163
4259
|
var symbol = getBuiltIn$5('Symbol')('stringify detection');
|
|
4164
4260
|
// MS Edge converts symbol values to JSON as {}
|
|
4165
4261
|
return $stringify([symbol]) !== '[null]'
|
|
@@ -4170,7 +4266,7 @@ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$2 || fails$b(function () {
|
|
|
4170
4266
|
});
|
|
4171
4267
|
|
|
4172
4268
|
// https://github.com/tc39/proposal-well-formed-stringify
|
|
4173
|
-
var ILL_FORMED_UNICODE = fails$
|
|
4269
|
+
var ILL_FORMED_UNICODE = fails$a(function () {
|
|
4174
4270
|
return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
|
|
4175
4271
|
|| $stringify('\uDEAD') !== '"\\udead"';
|
|
4176
4272
|
});
|
|
@@ -4198,12 +4294,12 @@ var fixIllFormed = function (match, offset, string) {
|
|
|
4198
4294
|
if ($stringify) {
|
|
4199
4295
|
// `JSON.stringify` method
|
|
4200
4296
|
// https://tc39.es/ecma262/#sec-json.stringify
|
|
4201
|
-
$$
|
|
4297
|
+
$$o({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
|
|
4202
4298
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
4203
4299
|
stringify: function stringify(it, replacer, space) {
|
|
4204
4300
|
var args = arraySlice$3(arguments);
|
|
4205
4301
|
var result = apply$1(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
|
|
4206
|
-
return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$
|
|
4302
|
+
return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$5(result, tester, fixIllFormed) : result;
|
|
4207
4303
|
}
|
|
4208
4304
|
});
|
|
4209
4305
|
}
|
|
@@ -4213,6 +4309,15 @@ const OPTION_DEFINITIONS = defineFields$1({
|
|
|
4213
4309
|
mainTitle: {
|
|
4214
4310
|
schema: 'Main form title'
|
|
4215
4311
|
},
|
|
4312
|
+
enableEmail: {
|
|
4313
|
+
schema: true
|
|
4314
|
+
},
|
|
4315
|
+
enablePhone: {
|
|
4316
|
+
schema: true
|
|
4317
|
+
},
|
|
4318
|
+
emailFirst: {
|
|
4319
|
+
schema: true
|
|
4320
|
+
},
|
|
4216
4321
|
noDataMessage: {
|
|
4217
4322
|
schema: 'no data'
|
|
4218
4323
|
},
|
|
@@ -4282,14 +4387,14 @@ var doesNotExceedSafeInteger$2 = function (it) {
|
|
|
4282
4387
|
return it;
|
|
4283
4388
|
};
|
|
4284
4389
|
|
|
4285
|
-
var $$
|
|
4390
|
+
var $$n = _export;
|
|
4286
4391
|
var toObject$4 = toObject$a;
|
|
4287
4392
|
var lengthOfArrayLike$6 = lengthOfArrayLike$a;
|
|
4288
4393
|
var setArrayLength = arraySetLength;
|
|
4289
4394
|
var doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$2;
|
|
4290
|
-
var fails$
|
|
4395
|
+
var fails$9 = fails$x;
|
|
4291
4396
|
|
|
4292
|
-
var INCORRECT_TO_LENGTH = fails$
|
|
4397
|
+
var INCORRECT_TO_LENGTH = fails$9(function () {
|
|
4293
4398
|
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
4294
4399
|
});
|
|
4295
4400
|
|
|
@@ -4308,7 +4413,7 @@ var FORCED$2 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
|
|
4308
4413
|
|
|
4309
4414
|
// `Array.prototype.push` method
|
|
4310
4415
|
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
4311
|
-
$$
|
|
4416
|
+
$$n({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
|
|
4312
4417
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
4313
4418
|
push: function push(item) {
|
|
4314
4419
|
var O = toObject$4(this);
|
|
@@ -4365,20 +4470,20 @@ function registerReducer(state, action) {
|
|
|
4365
4470
|
return state;
|
|
4366
4471
|
}
|
|
4367
4472
|
|
|
4368
|
-
var $$
|
|
4473
|
+
var $$m = _export;
|
|
4369
4474
|
var $includes = arrayIncludes.includes;
|
|
4370
|
-
var fails$
|
|
4475
|
+
var fails$8 = fails$x;
|
|
4371
4476
|
var addToUnscopables$2 = addToUnscopables$5;
|
|
4372
4477
|
|
|
4373
4478
|
// FF99+ bug
|
|
4374
|
-
var BROKEN_ON_SPARSE = fails$
|
|
4479
|
+
var BROKEN_ON_SPARSE = fails$8(function () {
|
|
4375
4480
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
4376
4481
|
return !Array(1).includes();
|
|
4377
4482
|
});
|
|
4378
4483
|
|
|
4379
4484
|
// `Array.prototype.includes` method
|
|
4380
4485
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
4381
|
-
$$
|
|
4486
|
+
$$m({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
4382
4487
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
4383
4488
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
4384
4489
|
}
|
|
@@ -4410,8 +4515,8 @@ var setSpecies$2 = function (CONSTRUCTOR_NAME) {
|
|
|
4410
4515
|
}
|
|
4411
4516
|
};
|
|
4412
4517
|
|
|
4413
|
-
var uncurryThis$
|
|
4414
|
-
var fails$
|
|
4518
|
+
var uncurryThis$f = functionUncurryThis;
|
|
4519
|
+
var fails$7 = fails$x;
|
|
4415
4520
|
var isCallable$7 = isCallable$t;
|
|
4416
4521
|
var classof$2 = classof$a;
|
|
4417
4522
|
var getBuiltIn$3 = getBuiltIn$b;
|
|
@@ -4420,7 +4525,7 @@ var inspectSource$1 = inspectSource$3;
|
|
|
4420
4525
|
var noop = function () { /* empty */ };
|
|
4421
4526
|
var construct = getBuiltIn$3('Reflect', 'construct');
|
|
4422
4527
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
4423
|
-
var exec$6 = uncurryThis$
|
|
4528
|
+
var exec$6 = uncurryThis$f(constructorRegExp.exec);
|
|
4424
4529
|
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
4425
4530
|
|
|
4426
4531
|
var isConstructorModern = function isConstructor(argument) {
|
|
@@ -4454,7 +4559,7 @@ isConstructorLegacy.sham = true;
|
|
|
4454
4559
|
|
|
4455
4560
|
// `IsConstructor` abstract operation
|
|
4456
4561
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
4457
|
-
var isConstructor$3 = !construct || fails$
|
|
4562
|
+
var isConstructor$3 = !construct || fails$7(function () {
|
|
4458
4563
|
var called;
|
|
4459
4564
|
return isConstructorModern(isConstructorModern.call)
|
|
4460
4565
|
|| !isConstructorModern(Object)
|
|
@@ -4505,7 +4610,7 @@ var apply = functionApply;
|
|
|
4505
4610
|
var bind$6 = functionBindContext;
|
|
4506
4611
|
var isCallable$6 = isCallable$t;
|
|
4507
4612
|
var hasOwn$6 = hasOwnProperty_1;
|
|
4508
|
-
var fails$
|
|
4613
|
+
var fails$6 = fails$x;
|
|
4509
4614
|
var html = html$2;
|
|
4510
4615
|
var arraySlice$2 = arraySlice$4;
|
|
4511
4616
|
var createElement = documentCreateElement$2;
|
|
@@ -4525,7 +4630,7 @@ var queue$2 = {};
|
|
|
4525
4630
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
4526
4631
|
var $location, defer, channel, port;
|
|
4527
4632
|
|
|
4528
|
-
fails$
|
|
4633
|
+
fails$6(function () {
|
|
4529
4634
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
4530
4635
|
$location = global$c.location;
|
|
4531
4636
|
});
|
|
@@ -4592,7 +4697,7 @@ if (!set || !clear) {
|
|
|
4592
4697
|
isCallable$6(global$c.postMessage) &&
|
|
4593
4698
|
!global$c.importScripts &&
|
|
4594
4699
|
$location && $location.protocol !== 'file:' &&
|
|
4595
|
-
!fails$
|
|
4700
|
+
!fails$6(globalPostMessageDefer)
|
|
4596
4701
|
) {
|
|
4597
4702
|
defer = globalPostMessageDefer;
|
|
4598
4703
|
global$c.addEventListener('message', eventListener, false);
|
|
@@ -4837,7 +4942,7 @@ newPromiseCapability$2.f = function (C) {
|
|
|
4837
4942
|
return new PromiseCapability(C);
|
|
4838
4943
|
};
|
|
4839
4944
|
|
|
4840
|
-
var $$
|
|
4945
|
+
var $$l = _export;
|
|
4841
4946
|
var IS_NODE$1 = engineIsNode;
|
|
4842
4947
|
var global$7 = global$t;
|
|
4843
4948
|
var call$a = functionCall;
|
|
@@ -5117,7 +5222,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
5117
5222
|
}
|
|
5118
5223
|
}
|
|
5119
5224
|
|
|
5120
|
-
$$
|
|
5225
|
+
$$l({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
5121
5226
|
Promise: PromiseConstructor
|
|
5122
5227
|
});
|
|
5123
5228
|
|
|
@@ -5173,7 +5278,7 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
5173
5278
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
5174
5279
|
});
|
|
5175
5280
|
|
|
5176
|
-
var $$
|
|
5281
|
+
var $$k = _export;
|
|
5177
5282
|
var call$9 = functionCall;
|
|
5178
5283
|
var aCallable$6 = aCallable$j;
|
|
5179
5284
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
@@ -5183,7 +5288,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
|
5183
5288
|
|
|
5184
5289
|
// `Promise.all` method
|
|
5185
5290
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
5186
|
-
$$
|
|
5291
|
+
$$k({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
5187
5292
|
all: function all(iterable) {
|
|
5188
5293
|
var C = this;
|
|
5189
5294
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
@@ -5212,7 +5317,7 @@ $$l({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
5212
5317
|
}
|
|
5213
5318
|
});
|
|
5214
5319
|
|
|
5215
|
-
var $$
|
|
5320
|
+
var $$j = _export;
|
|
5216
5321
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
5217
5322
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
5218
5323
|
var getBuiltIn$2 = getBuiltIn$b;
|
|
@@ -5223,7 +5328,7 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructo
|
|
|
5223
5328
|
|
|
5224
5329
|
// `Promise.prototype.catch` method
|
|
5225
5330
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
5226
|
-
$$
|
|
5331
|
+
$$j({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
5227
5332
|
'catch': function (onRejected) {
|
|
5228
5333
|
return this.then(undefined, onRejected);
|
|
5229
5334
|
}
|
|
@@ -5237,7 +5342,7 @@ if (isCallable$3(NativePromiseConstructor)) {
|
|
|
5237
5342
|
}
|
|
5238
5343
|
}
|
|
5239
5344
|
|
|
5240
|
-
var $$
|
|
5345
|
+
var $$i = _export;
|
|
5241
5346
|
var call$8 = functionCall;
|
|
5242
5347
|
var aCallable$5 = aCallable$j;
|
|
5243
5348
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
@@ -5247,7 +5352,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
|
5247
5352
|
|
|
5248
5353
|
// `Promise.race` method
|
|
5249
5354
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
5250
|
-
$$
|
|
5355
|
+
$$i({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
5251
5356
|
race: function race(iterable) {
|
|
5252
5357
|
var C = this;
|
|
5253
5358
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
@@ -5263,13 +5368,13 @@ $$j({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
5263
5368
|
}
|
|
5264
5369
|
});
|
|
5265
5370
|
|
|
5266
|
-
var $$
|
|
5371
|
+
var $$h = _export;
|
|
5267
5372
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
5268
5373
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
5269
5374
|
|
|
5270
5375
|
// `Promise.reject` method
|
|
5271
5376
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
5272
|
-
$$
|
|
5377
|
+
$$h({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
5273
5378
|
reject: function reject(r) {
|
|
5274
5379
|
var capability = newPromiseCapabilityModule.f(this);
|
|
5275
5380
|
var capabilityReject = capability.reject;
|
|
@@ -5291,7 +5396,7 @@ var promiseResolve$1 = function (C, x) {
|
|
|
5291
5396
|
return promiseCapability.promise;
|
|
5292
5397
|
};
|
|
5293
5398
|
|
|
5294
|
-
var $$
|
|
5399
|
+
var $$g = _export;
|
|
5295
5400
|
var getBuiltIn$1 = getBuiltIn$b;
|
|
5296
5401
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
5297
5402
|
var promiseResolve = promiseResolve$1;
|
|
@@ -5300,34 +5405,34 @@ getBuiltIn$1('Promise');
|
|
|
5300
5405
|
|
|
5301
5406
|
// `Promise.resolve` method
|
|
5302
5407
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
5303
|
-
$$
|
|
5408
|
+
$$g({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
5304
5409
|
resolve: function resolve(x) {
|
|
5305
5410
|
return promiseResolve(this, x);
|
|
5306
5411
|
}
|
|
5307
5412
|
});
|
|
5308
5413
|
|
|
5309
|
-
var $$
|
|
5310
|
-
var uncurryThis$
|
|
5414
|
+
var $$f = _export;
|
|
5415
|
+
var uncurryThis$e = functionUncurryThis;
|
|
5311
5416
|
var notARegExp$1 = notARegexp;
|
|
5312
|
-
var requireObjectCoercible$
|
|
5313
|
-
var toString$
|
|
5417
|
+
var requireObjectCoercible$5 = requireObjectCoercible$e;
|
|
5418
|
+
var toString$c = toString$m;
|
|
5314
5419
|
var correctIsRegExpLogic$1 = correctIsRegexpLogic;
|
|
5315
5420
|
|
|
5316
|
-
var stringIndexOf$1 = uncurryThis$
|
|
5421
|
+
var stringIndexOf$1 = uncurryThis$e(''.indexOf);
|
|
5317
5422
|
|
|
5318
5423
|
// `String.prototype.includes` method
|
|
5319
5424
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
5320
|
-
$$
|
|
5425
|
+
$$f({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
|
|
5321
5426
|
includes: function includes(searchString /* , position = 0 */) {
|
|
5322
5427
|
return !!~stringIndexOf$1(
|
|
5323
|
-
toString$
|
|
5324
|
-
toString$
|
|
5428
|
+
toString$c(requireObjectCoercible$5(this)),
|
|
5429
|
+
toString$c(notARegExp$1(searchString)),
|
|
5325
5430
|
arguments.length > 1 ? arguments[1] : undefined
|
|
5326
5431
|
);
|
|
5327
5432
|
}
|
|
5328
5433
|
});
|
|
5329
5434
|
|
|
5330
|
-
var $$
|
|
5435
|
+
var $$e = _export;
|
|
5331
5436
|
var iterate$2 = iterate$a;
|
|
5332
5437
|
var aCallable$4 = aCallable$j;
|
|
5333
5438
|
var anObject$6 = anObject$t;
|
|
@@ -5335,7 +5440,7 @@ var getIteratorDirect$3 = getIteratorDirect$a;
|
|
|
5335
5440
|
|
|
5336
5441
|
// `Iterator.prototype.some` method
|
|
5337
5442
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
5338
|
-
$$
|
|
5443
|
+
$$e({ target: 'Iterator', proto: true, real: true }, {
|
|
5339
5444
|
some: function some(predicate) {
|
|
5340
5445
|
anObject$6(this);
|
|
5341
5446
|
aCallable$4(predicate);
|
|
@@ -5349,7 +5454,7 @@ $$f({ target: 'Iterator', proto: true, real: true }, {
|
|
|
5349
5454
|
|
|
5350
5455
|
var DESCRIPTORS$7 = descriptors;
|
|
5351
5456
|
var global$6 = global$t;
|
|
5352
|
-
var uncurryThis$
|
|
5457
|
+
var uncurryThis$d = functionUncurryThis;
|
|
5353
5458
|
var isForced = isForced_1;
|
|
5354
5459
|
var inheritIfRequired = inheritIfRequired$2;
|
|
5355
5460
|
var createNonEnumerableProperty = createNonEnumerableProperty$a;
|
|
@@ -5357,12 +5462,12 @@ var create$1 = objectCreate;
|
|
|
5357
5462
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
5358
5463
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
5359
5464
|
var isRegExp = isRegexp;
|
|
5360
|
-
var toString$
|
|
5465
|
+
var toString$b = toString$m;
|
|
5361
5466
|
var getRegExpFlags = regexpGetFlags;
|
|
5362
5467
|
var stickyHelpers$1 = regexpStickyHelpers;
|
|
5363
5468
|
var proxyAccessor = proxyAccessor$2;
|
|
5364
5469
|
var defineBuiltIn$4 = defineBuiltIn$d;
|
|
5365
|
-
var fails$
|
|
5470
|
+
var fails$5 = fails$x;
|
|
5366
5471
|
var hasOwn$5 = hasOwnProperty_1;
|
|
5367
5472
|
var enforceInternalState = internalState.enforce;
|
|
5368
5473
|
var setSpecies = setSpecies$2;
|
|
@@ -5374,11 +5479,11 @@ var MATCH = wellKnownSymbol$3('match');
|
|
|
5374
5479
|
var NativeRegExp = global$6.RegExp;
|
|
5375
5480
|
var RegExpPrototype$1 = NativeRegExp.prototype;
|
|
5376
5481
|
var SyntaxError$2 = global$6.SyntaxError;
|
|
5377
|
-
var exec$5 = uncurryThis$
|
|
5378
|
-
var charAt$3 = uncurryThis$
|
|
5379
|
-
var replace$
|
|
5380
|
-
var stringIndexOf = uncurryThis$
|
|
5381
|
-
var stringSlice$5 = uncurryThis$
|
|
5482
|
+
var exec$5 = uncurryThis$d(RegExpPrototype$1.exec);
|
|
5483
|
+
var charAt$3 = uncurryThis$d(''.charAt);
|
|
5484
|
+
var replace$4 = uncurryThis$d(''.replace);
|
|
5485
|
+
var stringIndexOf = uncurryThis$d(''.indexOf);
|
|
5486
|
+
var stringSlice$5 = uncurryThis$d(''.slice);
|
|
5382
5487
|
// TODO: Use only proper RegExpIdentifierName
|
|
5383
5488
|
var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
|
|
5384
5489
|
var re1 = /a/g;
|
|
@@ -5391,7 +5496,7 @@ var MISSED_STICKY = stickyHelpers$1.MISSED_STICKY;
|
|
|
5391
5496
|
var UNSUPPORTED_Y$1 = stickyHelpers$1.UNSUPPORTED_Y;
|
|
5392
5497
|
|
|
5393
5498
|
var BASE_FORCED = DESCRIPTORS$7 &&
|
|
5394
|
-
(!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG || fails$
|
|
5499
|
+
(!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG || fails$5(function () {
|
|
5395
5500
|
re2[MATCH] = false;
|
|
5396
5501
|
// RegExp constructor can alter flags and IsRegExp works correct with @@match
|
|
5397
5502
|
return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i';
|
|
@@ -5485,20 +5590,20 @@ if (isForced('RegExp', BASE_FORCED)) {
|
|
|
5485
5590
|
if (flagsAreUndefined) flags = getRegExpFlags(rawPattern);
|
|
5486
5591
|
}
|
|
5487
5592
|
|
|
5488
|
-
pattern = pattern === undefined ? '' : toString$
|
|
5489
|
-
flags = flags === undefined ? '' : toString$
|
|
5593
|
+
pattern = pattern === undefined ? '' : toString$b(pattern);
|
|
5594
|
+
flags = flags === undefined ? '' : toString$b(flags);
|
|
5490
5595
|
rawPattern = pattern;
|
|
5491
5596
|
|
|
5492
5597
|
if (UNSUPPORTED_DOT_ALL$1 && 'dotAll' in re1) {
|
|
5493
5598
|
dotAll = !!flags && stringIndexOf(flags, 's') > -1;
|
|
5494
|
-
if (dotAll) flags = replace$
|
|
5599
|
+
if (dotAll) flags = replace$4(flags, /s/g, '');
|
|
5495
5600
|
}
|
|
5496
5601
|
|
|
5497
5602
|
rawFlags = flags;
|
|
5498
5603
|
|
|
5499
5604
|
if (MISSED_STICKY && 'sticky' in re1) {
|
|
5500
5605
|
sticky = !!flags && stringIndexOf(flags, 'y') > -1;
|
|
5501
|
-
if (sticky && UNSUPPORTED_Y$1) flags = replace$
|
|
5606
|
+
if (sticky && UNSUPPORTED_Y$1) flags = replace$4(flags, /y/g, '');
|
|
5502
5607
|
}
|
|
5503
5608
|
|
|
5504
5609
|
if (UNSUPPORTED_NCG) {
|
|
@@ -5767,8 +5872,8 @@ const useRegisterUser = () => {
|
|
|
5767
5872
|
return ctx.user;
|
|
5768
5873
|
};
|
|
5769
5874
|
|
|
5770
|
-
let _$
|
|
5771
|
-
_t$
|
|
5875
|
+
let _$a = t => t,
|
|
5876
|
+
_t$b,
|
|
5772
5877
|
_t2$5,
|
|
5773
5878
|
_t3$4,
|
|
5774
5879
|
_t4$4,
|
|
@@ -5780,10 +5885,10 @@ let _$9 = t => t,
|
|
|
5780
5885
|
_t0$2,
|
|
5781
5886
|
_t1$2,
|
|
5782
5887
|
_t10$2;
|
|
5783
|
-
const FormFieldWrapper = styled.div(_t$
|
|
5888
|
+
const FormFieldWrapper$1 = styled.div(_t$b || (_t$b = _$a`
|
|
5784
5889
|
margin-bottom: var(--goa-space-l);
|
|
5785
5890
|
`));
|
|
5786
|
-
const WarningIconDiv = styled.div(_t2$5 || (_t2$5 = _$
|
|
5891
|
+
const WarningIconDiv = styled.div(_t2$5 || (_t2$5 = _$a`
|
|
5787
5892
|
display: flex;
|
|
5788
5893
|
align-items: flex-start;
|
|
5789
5894
|
gap: var(--goa-space-2xs);
|
|
@@ -5791,58 +5896,58 @@ const WarningIconDiv = styled.div(_t2$5 || (_t2$5 = _$9`
|
|
|
5791
5896
|
color: var(--goa-form-item-error-message-color);
|
|
5792
5897
|
margin-top: var(--goa-form-item-message-margin-top);
|
|
5793
5898
|
`));
|
|
5794
|
-
const RequiredTextLabel = styled.label(_t3$4 || (_t3$4 = _$
|
|
5899
|
+
const RequiredTextLabel = styled.label(_t3$4 || (_t3$4 = _$a`
|
|
5795
5900
|
color: var(--goa-color-greyscale-700);
|
|
5796
5901
|
font-weight: var(--goa-font-weight-regular);
|
|
5797
5902
|
font-size: var(--goa-font-size-2);
|
|
5798
5903
|
line-height: var(--goa-line-height-1);
|
|
5799
5904
|
font-style: normal;
|
|
5800
5905
|
`));
|
|
5801
|
-
styled.td(_t4$4 || (_t4$4 = _$
|
|
5906
|
+
styled.td(_t4$4 || (_t4$4 = _$a`
|
|
5802
5907
|
width: 40%;
|
|
5803
5908
|
padding-top: var(--goa-space-s);
|
|
5804
5909
|
padding-bottom: var(--goa-space-s);
|
|
5805
5910
|
padding-right: var(--goa-space-m);
|
|
5806
5911
|
vertical-align: top;
|
|
5807
5912
|
`));
|
|
5808
|
-
styled.td(_t5$3 || (_t5$3 = _$
|
|
5913
|
+
styled.td(_t5$3 || (_t5$3 = _$a`
|
|
5809
5914
|
width: 40%;
|
|
5810
5915
|
text-align: left;
|
|
5811
5916
|
vertical-align: top;
|
|
5812
5917
|
`));
|
|
5813
|
-
const PageReviewContainer = styled.td(_t6$3 || (_t6$3 = _$
|
|
5918
|
+
const PageReviewContainer = styled.td(_t6$3 || (_t6$3 = _$a`
|
|
5814
5919
|
padding: 12px 0px;
|
|
5815
5920
|
border-bottom: 1px solid #ccc;
|
|
5816
5921
|
width: 100%;
|
|
5817
5922
|
vertical-align: top;
|
|
5818
5923
|
`));
|
|
5819
|
-
const ReviewHeader = styled.div(_t7$2 || (_t7$2 = _$
|
|
5924
|
+
const ReviewHeader = styled.div(_t7$2 || (_t7$2 = _$a`
|
|
5820
5925
|
display: flex;
|
|
5821
5926
|
justify-content: space-between;
|
|
5822
5927
|
align-items: center;
|
|
5823
5928
|
width: 100%;
|
|
5824
5929
|
`));
|
|
5825
|
-
const ReviewLabel = styled.div(_t8$2 || (_t8$2 = _$
|
|
5930
|
+
const ReviewLabel = styled.div(_t8$2 || (_t8$2 = _$a`
|
|
5826
5931
|
font-weight: var(--goa-font-weight-bold);
|
|
5827
5932
|
font-size: var(--goa-font-size-4);
|
|
5828
5933
|
line-height: var(--goa-line-height-3);
|
|
5829
5934
|
color: var(--goa-color-text-default);
|
|
5830
5935
|
`));
|
|
5831
|
-
const ReviewValue = styled.div(_t9$2 || (_t9$2 = _$
|
|
5936
|
+
const ReviewValue = styled.div(_t9$2 || (_t9$2 = _$a`
|
|
5832
5937
|
margin-top: var(--goa-space-m);
|
|
5833
5938
|
color: var(--goa-color-text-default);
|
|
5834
5939
|
font-size: var(--goa-font-size-4);
|
|
5835
5940
|
line-height: var(--goa-line-height-3);
|
|
5836
5941
|
`));
|
|
5837
5942
|
//Check and unchecked are different heights otherwise
|
|
5838
|
-
const CheckboxWrapper = styled.div(_t0$2 || (_t0$2 = _$
|
|
5943
|
+
const CheckboxWrapper = styled.div(_t0$2 || (_t0$2 = _$a`
|
|
5839
5944
|
min-height: 28px;
|
|
5840
5945
|
`));
|
|
5841
|
-
styled.h4(_t1$2 || (_t1$2 = _$
|
|
5946
|
+
styled.h4(_t1$2 || (_t1$2 = _$a`
|
|
5842
5947
|
margin: 0 0 0.25rem 0;
|
|
5843
5948
|
fontsize: larger;
|
|
5844
5949
|
`));
|
|
5845
|
-
styled.h4(_t10$2 || (_t10$2 = _$
|
|
5950
|
+
styled.h4(_t10$2 || (_t10$2 = _$a`
|
|
5846
5951
|
border-bottom: 1px solid #ddd;
|
|
5847
5952
|
`));
|
|
5848
5953
|
|
|
@@ -5856,7 +5961,7 @@ var $TypeError$1 = TypeError;
|
|
|
5856
5961
|
var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
|
|
5857
5962
|
|
|
5858
5963
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
5859
|
-
var createMethod$
|
|
5964
|
+
var createMethod$1 = function (IS_RIGHT) {
|
|
5860
5965
|
return function (that, callbackfn, argumentsLength, memo) {
|
|
5861
5966
|
var O = toObject$3(that);
|
|
5862
5967
|
var self = IndexedObject(O);
|
|
@@ -5886,19 +5991,19 @@ var createMethod$2 = function (IS_RIGHT) {
|
|
|
5886
5991
|
var arrayReduce = {
|
|
5887
5992
|
// `Array.prototype.reduce` method
|
|
5888
5993
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
5889
|
-
left: createMethod$
|
|
5994
|
+
left: createMethod$1(false)};
|
|
5890
5995
|
|
|
5891
|
-
var fails$
|
|
5996
|
+
var fails$4 = fails$x;
|
|
5892
5997
|
|
|
5893
5998
|
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
5894
5999
|
var method = [][METHOD_NAME];
|
|
5895
|
-
return !!method && fails$
|
|
6000
|
+
return !!method && fails$4(function () {
|
|
5896
6001
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
5897
6002
|
method.call(null, argument || function () { return 1; }, 1);
|
|
5898
6003
|
});
|
|
5899
6004
|
};
|
|
5900
6005
|
|
|
5901
|
-
var $$
|
|
6006
|
+
var $$d = _export;
|
|
5902
6007
|
var $reduce = arrayReduce.left;
|
|
5903
6008
|
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
5904
6009
|
var CHROME_VERSION = engineV8Version;
|
|
@@ -5911,14 +6016,14 @@ var FORCED$1 = CHROME_BUG || !arrayMethodIsStrict('reduce');
|
|
|
5911
6016
|
|
|
5912
6017
|
// `Array.prototype.reduce` method
|
|
5913
6018
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
5914
|
-
$$
|
|
6019
|
+
$$d({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
|
5915
6020
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
5916
6021
|
var length = arguments.length;
|
|
5917
6022
|
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
5918
6023
|
}
|
|
5919
6024
|
});
|
|
5920
6025
|
|
|
5921
|
-
var $$
|
|
6026
|
+
var $$c = _export;
|
|
5922
6027
|
var iterate$1 = iterate$a;
|
|
5923
6028
|
var aCallable$2 = aCallable$j;
|
|
5924
6029
|
var anObject$5 = anObject$t;
|
|
@@ -5928,7 +6033,7 @@ var $TypeError = TypeError;
|
|
|
5928
6033
|
|
|
5929
6034
|
// `Iterator.prototype.reduce` method
|
|
5930
6035
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
5931
|
-
$$
|
|
6036
|
+
$$c({ target: 'Iterator', proto: true, real: true }, {
|
|
5932
6037
|
reduce: function reduce(reducer /* , initialValue */) {
|
|
5933
6038
|
anObject$5(this);
|
|
5934
6039
|
aCallable$2(reducer);
|
|
@@ -5957,7 +6062,7 @@ const pickPropertyValues = (obj, property, endWithType) => {
|
|
|
5957
6062
|
Object.entries(obj).forEach(function ([key, value]) {
|
|
5958
6063
|
if (key === property) {
|
|
5959
6064
|
values.push(value);
|
|
5960
|
-
} else if (_$
|
|
6065
|
+
} else if (_$c.isObject(value)) {
|
|
5961
6066
|
// if the object type is equal to end type, we are not going to continue the recursive approach
|
|
5962
6067
|
if ((value == null ? void 0 : value.type) === endWithType) {
|
|
5963
6068
|
if (property in value) {
|
|
@@ -5966,7 +6071,7 @@ const pickPropertyValues = (obj, property, endWithType) => {
|
|
|
5966
6071
|
} else {
|
|
5967
6072
|
values = [...values, ...pickPropertyValues(value, property, endWithType)];
|
|
5968
6073
|
}
|
|
5969
|
-
} else if (_$
|
|
6074
|
+
} else if (_$c.isArray(value)) {
|
|
5970
6075
|
const nextValues = value.map(function (arrayObj) {
|
|
5971
6076
|
return pickPropertyValues(arrayObj, property, endWithType);
|
|
5972
6077
|
});
|
|
@@ -5976,63 +6081,6 @@ const pickPropertyValues = (obj, property, endWithType) => {
|
|
|
5976
6081
|
return values;
|
|
5977
6082
|
};
|
|
5978
6083
|
|
|
5979
|
-
// a string of all valid unicode whitespaces
|
|
5980
|
-
var whitespaces$3 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
5981
|
-
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
5982
|
-
|
|
5983
|
-
var uncurryThis$d = functionUncurryThis;
|
|
5984
|
-
var requireObjectCoercible$5 = requireObjectCoercible$e;
|
|
5985
|
-
var toString$b = toString$m;
|
|
5986
|
-
var whitespaces$2 = whitespaces$3;
|
|
5987
|
-
|
|
5988
|
-
var replace$4 = uncurryThis$d(''.replace);
|
|
5989
|
-
var ltrim = RegExp('^[' + whitespaces$2 + ']+');
|
|
5990
|
-
var rtrim = RegExp('(^|[^' + whitespaces$2 + '])[' + whitespaces$2 + ']+$');
|
|
5991
|
-
|
|
5992
|
-
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
5993
|
-
var createMethod$1 = function (TYPE) {
|
|
5994
|
-
return function ($this) {
|
|
5995
|
-
var string = toString$b(requireObjectCoercible$5($this));
|
|
5996
|
-
if (TYPE & 1) string = replace$4(string, ltrim, '');
|
|
5997
|
-
if (TYPE & 2) string = replace$4(string, rtrim, '$1');
|
|
5998
|
-
return string;
|
|
5999
|
-
};
|
|
6000
|
-
};
|
|
6001
|
-
|
|
6002
|
-
var stringTrim = {
|
|
6003
|
-
// `String.prototype.trim` method
|
|
6004
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
6005
|
-
trim: createMethod$1(3)
|
|
6006
|
-
};
|
|
6007
|
-
|
|
6008
|
-
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
6009
|
-
var fails$4 = fails$x;
|
|
6010
|
-
var whitespaces$1 = whitespaces$3;
|
|
6011
|
-
|
|
6012
|
-
var non = '\u200B\u0085\u180E';
|
|
6013
|
-
|
|
6014
|
-
// check that a method works with the correct list
|
|
6015
|
-
// of whitespaces and has a correct name
|
|
6016
|
-
var stringTrimForced = function (METHOD_NAME) {
|
|
6017
|
-
return fails$4(function () {
|
|
6018
|
-
return !!whitespaces$1[METHOD_NAME]()
|
|
6019
|
-
|| non[METHOD_NAME]() !== non
|
|
6020
|
-
|| (PROPER_FUNCTION_NAME && whitespaces$1[METHOD_NAME].name !== METHOD_NAME);
|
|
6021
|
-
});
|
|
6022
|
-
};
|
|
6023
|
-
|
|
6024
|
-
var $$c = _export;
|
|
6025
|
-
var $trim = stringTrim.trim;
|
|
6026
|
-
var forcedStringTrimMethod = stringTrimForced;
|
|
6027
|
-
|
|
6028
|
-
// `String.prototype.trim` method
|
|
6029
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
6030
|
-
$$c({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
|
6031
|
-
trim: function trim() {
|
|
6032
|
-
return $trim(this);
|
|
6033
|
-
}
|
|
6034
|
-
});
|
|
6035
|
-
|
|
6036
6084
|
var uncurryThis$c = functionUncurryThis;
|
|
6037
6085
|
var hasOwn$4 = hasOwnProperty_1;
|
|
6038
6086
|
|
|
@@ -6912,7 +6960,7 @@ const GoAInputBaseControl = props => {
|
|
|
6912
6960
|
skipInitialValidation
|
|
6913
6961
|
} = props;
|
|
6914
6962
|
const InnerComponent = input;
|
|
6915
|
-
const labelToUpdate =
|
|
6963
|
+
const labelToUpdate = getControlLabelText(props);
|
|
6916
6964
|
const controlRef = useRef(null);
|
|
6917
6965
|
const formStepperCtx = useContext(JsonFormsStepperContext);
|
|
6918
6966
|
const stepperState = formStepperCtx == null || formStepperCtx.selectStepperState == null ? void 0 : formStepperCtx.selectStepperState();
|
|
@@ -6969,7 +7017,7 @@ const GoAInputBaseControl = props => {
|
|
|
6969
7017
|
defaultRegisters: undefined,
|
|
6970
7018
|
children: jsx(Visible, {
|
|
6971
7019
|
visible: visible,
|
|
6972
|
-
children: jsx(FormFieldWrapper, {
|
|
7020
|
+
children: jsx(FormFieldWrapper$1, {
|
|
6973
7021
|
ref: controlRef,
|
|
6974
7022
|
className: "jsonforms-elements-wrapper",
|
|
6975
7023
|
id: isStepperReview === true ? `review-base-${path}-element-wrapper` : `${path}-element-wrapper`,
|
|
@@ -8270,8 +8318,8 @@ const BooleanRadioControl = props => jsx(GoAInputBaseControl, Object.assign({},
|
|
|
8270
8318
|
const GoABooleanRadioControlTester = rankWith(3, and(isBooleanControl, optionIs('radio', true)));
|
|
8271
8319
|
const GoABooleanRadioControl = withJsonFormsControlProps(BooleanRadioControl);
|
|
8272
8320
|
|
|
8273
|
-
let _$
|
|
8274
|
-
_t$
|
|
8321
|
+
let _$9 = t => t,
|
|
8322
|
+
_t$a;
|
|
8275
8323
|
const Checkboxes = ({
|
|
8276
8324
|
children,
|
|
8277
8325
|
orientation,
|
|
@@ -8283,7 +8331,7 @@ const Checkboxes = ({
|
|
|
8283
8331
|
children: children
|
|
8284
8332
|
});
|
|
8285
8333
|
};
|
|
8286
|
-
const CheckBoxGroupDiv = styled.div(_t$
|
|
8334
|
+
const CheckBoxGroupDiv = styled.div(_t$a || (_t$a = _$9`
|
|
8287
8335
|
.horizontal {
|
|
8288
8336
|
display: flex;
|
|
8289
8337
|
flex-direction: row;
|
|
@@ -8419,6 +8467,7 @@ const GoABaseInputReviewComponent = props => {
|
|
|
8419
8467
|
}) : null;
|
|
8420
8468
|
};
|
|
8421
8469
|
const requiredText = getRequiredLabelText();
|
|
8470
|
+
const getFallbackCheckboxLabel = () => getControlLabelText(props);
|
|
8422
8471
|
const renderWarningMessage = () => {
|
|
8423
8472
|
var _uischema$options4;
|
|
8424
8473
|
if ((_uischema$options4 = uischema.options) != null && _uischema$options4.radio) return null;
|
|
@@ -8428,15 +8477,9 @@ const GoABaseInputReviewComponent = props => {
|
|
|
8428
8477
|
return null;
|
|
8429
8478
|
};
|
|
8430
8479
|
if (isBoolean) {
|
|
8431
|
-
var _uischema$options5
|
|
8432
|
-
|
|
8433
|
-
if ((_uischema$options5 = uischema.options)
|
|
8434
|
-
checkboxLabel = uischema.options.text.trim();
|
|
8435
|
-
} else if (uischema.scope && uischema.scope.startsWith('#/')) {
|
|
8436
|
-
const fallbackLabel = getLastSegmentFromPointer(uischema.scope);
|
|
8437
|
-
checkboxLabel = fallbackLabel.charAt(0).toUpperCase() + fallbackLabel.slice(1);
|
|
8438
|
-
}
|
|
8439
|
-
if (((_uischema$options6 = uischema.options) == null ? void 0 : _uischema$options6.radio) === true) {
|
|
8480
|
+
var _uischema$options5;
|
|
8481
|
+
const checkboxLabel = getFallbackCheckboxLabel();
|
|
8482
|
+
if (((_uischema$options5 = uischema.options) == null ? void 0 : _uischema$options5.radio) === true) {
|
|
8440
8483
|
reviewText = data ? `Yes` : `No`;
|
|
8441
8484
|
} else {
|
|
8442
8485
|
reviewText = data ? `Yes (${checkboxLabel})` : `No (${checkboxLabel})`;
|
|
@@ -8451,16 +8494,7 @@ const GoABaseInputReviewComponent = props => {
|
|
|
8451
8494
|
if (Array.isArray(data) && data.length > 0) {
|
|
8452
8495
|
reviewText = jsx("ul", {
|
|
8453
8496
|
children: data.map((checkbox, index) => {
|
|
8454
|
-
|
|
8455
|
-
let checkboxLabel = '';
|
|
8456
|
-
// Use explicit text if provided, otherwise fall back to property name from scope
|
|
8457
|
-
if (uischema != null && (_uischema$options7 = uischema.options) != null && (_uischema$options7 = _uischema$options7.text) != null && _uischema$options7.trim()) {
|
|
8458
|
-
checkboxLabel = uischema.options.text.trim();
|
|
8459
|
-
} else if (uischema.scope && uischema.scope.startsWith('#/')) {
|
|
8460
|
-
const fallbackLabel = getLastSegmentFromPointer(uischema.scope);
|
|
8461
|
-
// Capitalize first letter only when falling back to property name from scope
|
|
8462
|
-
checkboxLabel = fallbackLabel.charAt(0).toUpperCase() + fallbackLabel.slice(1);
|
|
8463
|
-
}
|
|
8497
|
+
const checkboxLabel = getFallbackCheckboxLabel();
|
|
8464
8498
|
return jsx("li", {
|
|
8465
8499
|
children: checkbox.trim() || checkboxLabel
|
|
8466
8500
|
}, index);
|
|
@@ -8643,8 +8677,8 @@ $$7({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
|
|
|
8643
8677
|
}
|
|
8644
8678
|
});
|
|
8645
8679
|
|
|
8646
|
-
let _$
|
|
8647
|
-
_t$
|
|
8680
|
+
let _$8 = t => t,
|
|
8681
|
+
_t$9,
|
|
8648
8682
|
_t2$4,
|
|
8649
8683
|
_t3$3,
|
|
8650
8684
|
_t4$3,
|
|
@@ -8675,21 +8709,21 @@ let _$7 = t => t,
|
|
|
8675
8709
|
_t27$1,
|
|
8676
8710
|
_t28$1,
|
|
8677
8711
|
_t29;
|
|
8678
|
-
const DeleteDialogContent = styled.div(_t$
|
|
8712
|
+
const DeleteDialogContent = styled.div(_t$9 || (_t$9 = _$8`
|
|
8679
8713
|
margin-bottom: var(--goa-space-m);
|
|
8680
8714
|
`));
|
|
8681
|
-
const MarginTop = styled.div(_t2$4 || (_t2$4 = _$
|
|
8715
|
+
const MarginTop = styled.div(_t2$4 || (_t2$4 = _$8`
|
|
8682
8716
|
margin-top: var(--goa-space-l);
|
|
8683
8717
|
`));
|
|
8684
|
-
const NonEmptyCellStyle = styled.div(_t3$3 || (_t3$3 = _$
|
|
8718
|
+
const NonEmptyCellStyle = styled.div(_t3$3 || (_t3$3 = _$8`
|
|
8685
8719
|
goa-table thead th {
|
|
8686
8720
|
background-color: #000:
|
|
8687
8721
|
}
|
|
8688
8722
|
`));
|
|
8689
|
-
const ToolBarHeader = styled.div(_t4$3 || (_t4$3 = _$
|
|
8723
|
+
const ToolBarHeader = styled.div(_t4$3 || (_t4$3 = _$8`
|
|
8690
8724
|
margin-bottom: var(--goa-space-s);
|
|
8691
8725
|
`));
|
|
8692
|
-
const ObjectArrayTitle = styled.h3(_t5$2 || (_t5$2 = _$
|
|
8726
|
+
const ObjectArrayTitle = styled.h3(_t5$2 || (_t5$2 = _$8`
|
|
8693
8727
|
margin-bottom: var(--goa-space-s);
|
|
8694
8728
|
|
|
8695
8729
|
span {
|
|
@@ -8697,24 +8731,24 @@ const ObjectArrayTitle = styled.h3(_t5$2 || (_t5$2 = _$7`
|
|
|
8697
8731
|
font-size: var(--goa-font-size-2);
|
|
8698
8732
|
}
|
|
8699
8733
|
`));
|
|
8700
|
-
const RequiredSpan = styled.span(_t6$2 || (_t6$2 = _$
|
|
8734
|
+
const RequiredSpan = styled.span(_t6$2 || (_t6$2 = _$8`
|
|
8701
8735
|
color: #666666;
|
|
8702
8736
|
font-weight: var(--goa-font-weight-regular);
|
|
8703
8737
|
font-size: var(--goa-font-size-2);
|
|
8704
8738
|
`));
|
|
8705
|
-
const TextCenter = styled.div(_t7$1 || (_t7$1 = _$
|
|
8739
|
+
const TextCenter = styled.div(_t7$1 || (_t7$1 = _$8`
|
|
8706
8740
|
text-align: center;
|
|
8707
8741
|
`));
|
|
8708
|
-
const SideMenuItem = styled.div(_t8$1 || (_t8$1 = _$
|
|
8742
|
+
const SideMenuItem = styled.div(_t8$1 || (_t8$1 = _$8`
|
|
8709
8743
|
margin-top: 1rem;
|
|
8710
8744
|
`));
|
|
8711
|
-
const RowFlex = styled.div(_t9$1 || (_t9$1 = _$
|
|
8745
|
+
const RowFlex = styled.div(_t9$1 || (_t9$1 = _$8`
|
|
8712
8746
|
display: flex;
|
|
8713
8747
|
margin: 1.5rem 0 1.5rem 0;
|
|
8714
8748
|
|
|
8715
8749
|
align-items: flex-start;
|
|
8716
8750
|
`));
|
|
8717
|
-
const RowFlexMenuMain = styled.div(_t0$1 || (_t0$1 = _$
|
|
8751
|
+
const RowFlexMenuMain = styled.div(_t0$1 || (_t0$1 = _$8`
|
|
8718
8752
|
display: flex;
|
|
8719
8753
|
flex-direction: column;
|
|
8720
8754
|
align-items: stretch;
|
|
@@ -8731,7 +8765,7 @@ const RowFlexMenuMain = styled.div(_t0$1 || (_t0$1 = _$7`
|
|
|
8731
8765
|
border-color: var(--goa-color-greyscale-400);
|
|
8732
8766
|
}
|
|
8733
8767
|
`));
|
|
8734
|
-
const RowFlexMenuLeft = styled.div(_t1$1 || (_t1$1 = _$
|
|
8768
|
+
const RowFlexMenuLeft = styled.div(_t1$1 || (_t1$1 = _$8`
|
|
8735
8769
|
display: flex;
|
|
8736
8770
|
flex-direction: row;
|
|
8737
8771
|
align-items: stretch;
|
|
@@ -8747,12 +8781,12 @@ const RowFlexMenuLeft = styled.div(_t1$1 || (_t1$1 = _$7`
|
|
|
8747
8781
|
border-color: var(--goa-color-greyscale-400);
|
|
8748
8782
|
}
|
|
8749
8783
|
`));
|
|
8750
|
-
const FlexTabs = styled.div(_t10$1 || (_t10$1 = _$
|
|
8784
|
+
const FlexTabs = styled.div(_t10$1 || (_t10$1 = _$8`
|
|
8751
8785
|
flex-direction: column;
|
|
8752
8786
|
flex: 1;
|
|
8753
8787
|
overflow-y: auto !important;
|
|
8754
8788
|
`));
|
|
8755
|
-
const FlexTabsWithMargin = styled.div(_t11$1 || (_t11$1 = _$
|
|
8789
|
+
const FlexTabsWithMargin = styled.div(_t11$1 || (_t11$1 = _$8`
|
|
8756
8790
|
flex-direction: column;
|
|
8757
8791
|
flex: 1;
|
|
8758
8792
|
overflow-y: auto !important;
|
|
@@ -8761,64 +8795,64 @@ const FlexTabsWithMargin = styled.div(_t11$1 || (_t11$1 = _$7`
|
|
|
8761
8795
|
flex-shrink: 1;
|
|
8762
8796
|
// max-height: 500px;
|
|
8763
8797
|
`));
|
|
8764
|
-
const FlexForm = styled.div(_t12$1 || (_t12$1 = _$
|
|
8798
|
+
const FlexForm = styled.div(_t12$1 || (_t12$1 = _$8`
|
|
8765
8799
|
flex-direction: column;
|
|
8766
8800
|
flex: 3;
|
|
8767
8801
|
flex-shrink: 0;
|
|
8768
8802
|
overflow-y: visible;
|
|
8769
8803
|
`));
|
|
8770
|
-
const TabName = styled.div(_t13$1 || (_t13$1 = _$
|
|
8804
|
+
const TabName = styled.div(_t13$1 || (_t13$1 = _$8`
|
|
8771
8805
|
margin: 1rem 0 1rem 1rem;
|
|
8772
8806
|
font-weight: 400;
|
|
8773
8807
|
white-space: nowrap;
|
|
8774
8808
|
overflow: hidden;
|
|
8775
8809
|
text-overflow: ellipsis;
|
|
8776
8810
|
`));
|
|
8777
|
-
const Trash = styled.div(_t14$1 || (_t14$1 = _$
|
|
8811
|
+
const Trash = styled.div(_t14$1 || (_t14$1 = _$8`
|
|
8778
8812
|
margin: 0.9rem 0.4rem 0.6rem 0.75rem;
|
|
8779
8813
|
margin-left: auto;
|
|
8780
8814
|
`));
|
|
8781
|
-
const ListContainer = styled.div(_t15$1 || (_t15$1 = _$
|
|
8815
|
+
const ListContainer = styled.div(_t15$1 || (_t15$1 = _$8`
|
|
8782
8816
|
padding: 0 0 0 0;
|
|
8783
8817
|
`));
|
|
8784
|
-
styled.div(_t16$1 || (_t16$1 = _$
|
|
8818
|
+
styled.div(_t16$1 || (_t16$1 = _$8`
|
|
8785
8819
|
padding: 0 0 var(--goa-space-l) 0;
|
|
8786
8820
|
`));
|
|
8787
|
-
const UpdateListContainer = styled.div(_t17$1 || (_t17$1 = _$
|
|
8821
|
+
const UpdateListContainer = styled.div(_t17$1 || (_t17$1 = _$8`
|
|
8788
8822
|
width: 100%;
|
|
8789
8823
|
border: 1px solid #dcdcdc;
|
|
8790
8824
|
padding: var(--goa-space-xl);
|
|
8791
8825
|
`));
|
|
8792
|
-
styled.div(_t18$1 || (_t18$1 = _$
|
|
8826
|
+
styled.div(_t18$1 || (_t18$1 = _$8`
|
|
8793
8827
|
padding: 0 1.5rem 0 0;
|
|
8794
8828
|
border: 1px solid #dcdcdc;
|
|
8795
8829
|
`));
|
|
8796
|
-
const TableTHHeader = styled.th(_t19$1 || (_t19$1 = _$
|
|
8830
|
+
const TableTHHeader = styled.th(_t19$1 || (_t19$1 = _$8`
|
|
8797
8831
|
background-color: var(--goa-color-greyscale-100) !important;
|
|
8798
8832
|
vertical-align: top;
|
|
8799
8833
|
`));
|
|
8800
|
-
const ObjectArrayWarningIconDiv = styled.div(_t20$1 || (_t20$1 = _$
|
|
8834
|
+
const ObjectArrayWarningIconDiv = styled.div(_t20$1 || (_t20$1 = _$8`
|
|
8801
8835
|
display: inline-flex;
|
|
8802
8836
|
align-items: flex-start;
|
|
8803
8837
|
gap: 0.25rem;
|
|
8804
8838
|
font-size: var(--goa-font-size-2);
|
|
8805
8839
|
color: var(--goa-color-interactive-error);
|
|
8806
8840
|
`));
|
|
8807
|
-
const ListWithDetailWarningIconDiv = styled.div(_t21$1 || (_t21$1 = _$
|
|
8841
|
+
const ListWithDetailWarningIconDiv = styled.div(_t21$1 || (_t21$1 = _$8`
|
|
8808
8842
|
display: inline-flex;
|
|
8809
8843
|
align-items: flex-start;
|
|
8810
8844
|
gap: 0.25rem;
|
|
8811
8845
|
font-size: var(--goa-font-size-3);
|
|
8812
8846
|
color: var(--goa-color-interactive-error);
|
|
8813
8847
|
`));
|
|
8814
|
-
styled.label(_t22$1 || (_t22$1 = _$
|
|
8848
|
+
styled.label(_t22$1 || (_t22$1 = _$8`
|
|
8815
8849
|
color: var(--goa-color-interactive-error);
|
|
8816
8850
|
font-weight: var(--goa-font-weight-regular);
|
|
8817
8851
|
font-size: var(--goa-font-size-3);
|
|
8818
8852
|
line-height: var(--goa-line-height-1);
|
|
8819
8853
|
font-style: normal;
|
|
8820
8854
|
`));
|
|
8821
|
-
styled.div(_t23$1 || (_t23$1 = _$
|
|
8855
|
+
styled.div(_t23$1 || (_t23$1 = _$8`
|
|
8822
8856
|
margin-top: var(--goa-space-m);
|
|
8823
8857
|
color: var(--goa-color-interactive-error);
|
|
8824
8858
|
font-weight: var(--goa-font-weight-regular);
|
|
@@ -8826,10 +8860,10 @@ styled.div(_t23$1 || (_t23$1 = _$7`
|
|
|
8826
8860
|
line-height: var(--goa-line-height-1);
|
|
8827
8861
|
font-style: normal;
|
|
8828
8862
|
`));
|
|
8829
|
-
const HilightCellWarning = styled.div(_t24$1 || (_t24$1 = _$
|
|
8863
|
+
const HilightCellWarning = styled.div(_t24$1 || (_t24$1 = _$8`
|
|
8830
8864
|
background-color: transparent;
|
|
8831
8865
|
`));
|
|
8832
|
-
const FixTableHeaderAlignment = styled.div(_t25$1 || (_t25$1 = _$
|
|
8866
|
+
const FixTableHeaderAlignment = styled.div(_t25$1 || (_t25$1 = _$8`
|
|
8833
8867
|
table thead th:nth-child(3) {
|
|
8834
8868
|
text-align: center;
|
|
8835
8869
|
}
|
|
@@ -8838,22 +8872,22 @@ const FixTableHeaderAlignment = styled.div(_t25$1 || (_t25$1 = _$7`
|
|
|
8838
8872
|
text-align: center;
|
|
8839
8873
|
}
|
|
8840
8874
|
`));
|
|
8841
|
-
const ListWithDetailsReviewCellDiv = styled.div(_t26$1 || (_t26$1 = _$
|
|
8875
|
+
const ListWithDetailsReviewCellDiv = styled.div(_t26$1 || (_t26$1 = _$8`
|
|
8842
8876
|
display: 'flex';
|
|
8843
8877
|
flex-direction: 'column';
|
|
8844
8878
|
text-align: 'start';
|
|
8845
8879
|
`));
|
|
8846
|
-
const IconsContainer = styled.div(_t27$1 || (_t27$1 = _$
|
|
8880
|
+
const IconsContainer = styled.div(_t27$1 || (_t27$1 = _$8`
|
|
8847
8881
|
display: flex;
|
|
8848
8882
|
align-items: center;
|
|
8849
8883
|
justify-content: flex-end;
|
|
8850
8884
|
gap: var(--goa-space-xs);
|
|
8851
8885
|
padding-bottom: var(--goa-space-xs);
|
|
8852
8886
|
`));
|
|
8853
|
-
const TableContentContainer = styled.div(_t28$1 || (_t28$1 = _$
|
|
8887
|
+
const TableContentContainer = styled.div(_t28$1 || (_t28$1 = _$8`
|
|
8854
8888
|
padding: var(--goa-space-l);
|
|
8855
8889
|
`));
|
|
8856
|
-
const NoDataMessage = styled.div(_t29 || (_t29 = _$
|
|
8890
|
+
const NoDataMessage = styled.div(_t29 || (_t29 = _$8`
|
|
8857
8891
|
padding: var(--goa-space-xl) var(--goa-space-l);
|
|
8858
8892
|
color: var(--goa-color-greyscale-700);
|
|
8859
8893
|
font: var(--goa-typography-body-m);
|
|
@@ -9856,7 +9890,7 @@ class ListWithDetailControl extends React.Component {
|
|
|
9856
9890
|
}
|
|
9857
9891
|
|
|
9858
9892
|
const GoAInputBaseTableReview = props => {
|
|
9859
|
-
var _uischema$options, _uischema$
|
|
9893
|
+
var _uischema$options, _uischema$scope2, _jsonForms$core, _uischema$options4;
|
|
9860
9894
|
const {
|
|
9861
9895
|
data,
|
|
9862
9896
|
uischema,
|
|
@@ -9880,11 +9914,19 @@ const GoAInputBaseTableReview = props => {
|
|
|
9880
9914
|
let labelToUpdate = '';
|
|
9881
9915
|
if (reviewLabel.trim() !== '') {
|
|
9882
9916
|
labelToUpdate = reviewLabel;
|
|
9917
|
+
} else if (typeof (schema == null ? void 0 : schema.title) === 'string' && schema.title.trim()) {
|
|
9918
|
+
labelToUpdate = schema.title;
|
|
9883
9919
|
} else if (propLabel.trim() !== '') {
|
|
9920
|
+
var _uischema$scope;
|
|
9921
|
+
if ((_uischema$scope = uischema.scope) != null && _uischema$scope.startsWith('#/') && controlScopeMatchesLabel(uischema.scope, propLabel)) {
|
|
9922
|
+
labelToUpdate = getLabelText(uischema.scope, propLabel);
|
|
9923
|
+
} else {
|
|
9924
|
+
labelToUpdate = propLabel;
|
|
9925
|
+
}
|
|
9926
|
+
} else if ((_uischema$scope2 = uischema.scope) != null && _uischema$scope2.startsWith('#/')) {
|
|
9927
|
+
labelToUpdate = getGeneratedLabelFromScope(uischema.scope);
|
|
9928
|
+
} else {
|
|
9884
9929
|
labelToUpdate = propLabel;
|
|
9885
|
-
} else if ((_uischema$scope = uischema.scope) != null && _uischema$scope.startsWith('#/')) {
|
|
9886
|
-
const scopeName = uischema.scope ? getLastSegmentFromPointer(uischema.scope) : '';
|
|
9887
|
-
labelToUpdate = convertToReadableFormat(scopeName);
|
|
9888
9930
|
}
|
|
9889
9931
|
let reviewText = data;
|
|
9890
9932
|
const isBoolean = typeof data === 'boolean';
|
|
@@ -9912,8 +9954,7 @@ const GoAInputBaseTableReview = props => {
|
|
|
9912
9954
|
if ((_uischema$options2 = uischema.options) != null && (_uischema$options2 = _uischema$options2.text) != null && _uischema$options2.trim()) {
|
|
9913
9955
|
checkboxLabel = uischema.options.text.trim();
|
|
9914
9956
|
} else if (uischema.scope && uischema.scope.startsWith('#/')) {
|
|
9915
|
-
|
|
9916
|
-
checkboxLabel = convertToReadableFormat(fallbackLabel);
|
|
9957
|
+
checkboxLabel = getGeneratedLabelFromScope(uischema.scope);
|
|
9917
9958
|
}
|
|
9918
9959
|
if (((_uischema$options3 = uischema.options) == null ? void 0 : _uischema$options3.radio) === true) {
|
|
9919
9960
|
reviewText = data ? `Yes` : `No`;
|
|
@@ -10206,7 +10247,7 @@ const GoAEmailInput = props => {
|
|
|
10206
10247
|
visible: visible,
|
|
10207
10248
|
children: jsx(JsonFormRegisterProvider, {
|
|
10208
10249
|
defaultRegisters: undefined,
|
|
10209
|
-
children: jsx(FormFieldWrapper, {
|
|
10250
|
+
children: jsx(FormFieldWrapper$1, {
|
|
10210
10251
|
children: jsx(GoabFormItem, {
|
|
10211
10252
|
error: isVisited && finalErrors,
|
|
10212
10253
|
testId: "form-email-input-wrapper",
|
|
@@ -10251,8 +10292,8 @@ const GoAEmailControl = props => jsx(GoAEmailInput, Object.assign({}, props));
|
|
|
10251
10292
|
const GoAEmailControlTester = rankWith(4, and(isControl$1, schemaTypeIs('string'), formatIs('email')));
|
|
10252
10293
|
const GoAInputEmailControl = withJsonFormsControlProps(GoAEmailControl);
|
|
10253
10294
|
|
|
10254
|
-
let _$
|
|
10255
|
-
_t$
|
|
10295
|
+
let _$7 = t => t,
|
|
10296
|
+
_t$8;
|
|
10256
10297
|
const renderLayoutElements = (elements, schema, path, enabled, renderers, cells) => {
|
|
10257
10298
|
return elements.map((child, index) => jsx(JsonFormsDispatch, {
|
|
10258
10299
|
uischema: child,
|
|
@@ -10331,14 +10372,14 @@ const ReviewLayoutRenderer = ({
|
|
|
10331
10372
|
}
|
|
10332
10373
|
}
|
|
10333
10374
|
};
|
|
10334
|
-
const ReviewGrid = styled.div(_t$
|
|
10375
|
+
const ReviewGrid = styled.div(_t$8 || (_t$8 = _$7`
|
|
10335
10376
|
display: grid;
|
|
10336
10377
|
grid-template-columns: repeat(auto-fit, minmax(250px, calc(50% - 8px)));
|
|
10337
10378
|
gap: 16px;
|
|
10338
10379
|
`));
|
|
10339
10380
|
|
|
10340
|
-
let _$
|
|
10341
|
-
_t$
|
|
10381
|
+
let _$6 = t => t,
|
|
10382
|
+
_t$7,
|
|
10342
10383
|
_t2$3,
|
|
10343
10384
|
_t3$2,
|
|
10344
10385
|
_t4$2,
|
|
@@ -10368,11 +10409,11 @@ let _$5 = t => t,
|
|
|
10368
10409
|
_t26,
|
|
10369
10410
|
_t27,
|
|
10370
10411
|
_t28;
|
|
10371
|
-
const ReviewItem = styled.div(_t$
|
|
10412
|
+
const ReviewItem = styled.div(_t$7 || (_t$7 = _$6`
|
|
10372
10413
|
display: flex;
|
|
10373
10414
|
flex-direction: column;
|
|
10374
10415
|
`));
|
|
10375
|
-
const CompletionStatus = styled.div(_t2$3 || (_t2$3 = _$
|
|
10416
|
+
const CompletionStatus = styled.div(_t2$3 || (_t2$3 = _$6`
|
|
10376
10417
|
padding: 0;
|
|
10377
10418
|
margin: 0;
|
|
10378
10419
|
padding-top: var(--goa-space-xl);
|
|
@@ -10380,14 +10421,14 @@ const CompletionStatus = styled.div(_t2$3 || (_t2$3 = _$5`
|
|
|
10380
10421
|
display: flex;
|
|
10381
10422
|
flex-direction: column;
|
|
10382
10423
|
`));
|
|
10383
|
-
const BarTop = styled.div(_t3$2 || (_t3$2 = _$
|
|
10424
|
+
const BarTop = styled.div(_t3$2 || (_t3$2 = _$6`
|
|
10384
10425
|
display: flex;
|
|
10385
10426
|
|
|
10386
10427
|
.progress-text {
|
|
10387
10428
|
margin-left: auto;
|
|
10388
10429
|
}
|
|
10389
10430
|
`));
|
|
10390
|
-
const Bar = styled.div(_t4$2 || (_t4$2 = _$
|
|
10431
|
+
const Bar = styled.div(_t4$2 || (_t4$2 = _$6`
|
|
10391
10432
|
display: flex;
|
|
10392
10433
|
flex-direction: row;
|
|
10393
10434
|
|
|
@@ -10417,15 +10458,15 @@ const Bar = styled.div(_t4$2 || (_t4$2 = _$5`
|
|
|
10417
10458
|
box-sizing: border-box;
|
|
10418
10459
|
}
|
|
10419
10460
|
`));
|
|
10420
|
-
styled.div(_t5$1 || (_t5$1 = _$
|
|
10421
|
-
const BadgeWrapper = styled.div(_t6$1 || (_t6$1 = _$
|
|
10461
|
+
styled.div(_t5$1 || (_t5$1 = _$6``));
|
|
10462
|
+
const BadgeWrapper = styled.div(_t6$1 || (_t6$1 = _$6`
|
|
10422
10463
|
margin-left: 10px;
|
|
10423
10464
|
margin-top: 7px;
|
|
10424
10465
|
`));
|
|
10425
|
-
const CompletionTextHeader = styled.h3(_t7 || (_t7 = _$
|
|
10466
|
+
const CompletionTextHeader = styled.h3(_t7 || (_t7 = _$6`
|
|
10426
10467
|
display: flex;
|
|
10427
10468
|
`));
|
|
10428
|
-
const ReviewItemSection = styled.div(_t8 || (_t8 = _$
|
|
10469
|
+
const ReviewItemSection = styled.div(_t8 || (_t8 = _$6`
|
|
10429
10470
|
margin-bottom: var(--goa-space-m);
|
|
10430
10471
|
padding: var(--goa-space-xl) var(--goa-space-2xl);
|
|
10431
10472
|
border: 1px solid var(--goa-color-greyscale-300);
|
|
@@ -10435,18 +10476,18 @@ const ReviewItemSection = styled.div(_t8 || (_t8 = _$5`
|
|
|
10435
10476
|
max-width: 1600px;
|
|
10436
10477
|
}
|
|
10437
10478
|
`));
|
|
10438
|
-
const ReviewItemHeader = styled.div(_t9 || (_t9 = _$
|
|
10479
|
+
const ReviewItemHeader = styled.div(_t9 || (_t9 = _$6`
|
|
10439
10480
|
display: flex;
|
|
10440
10481
|
align-items: center;
|
|
10441
10482
|
justify-content: space-between;
|
|
10442
10483
|
margin-bottom: var(--goa-space-xl);
|
|
10443
10484
|
`));
|
|
10444
|
-
const ReviewItemTitle = styled.div(_t0 || (_t0 = _$
|
|
10485
|
+
const ReviewItemTitle = styled.div(_t0 || (_t0 = _$6`
|
|
10445
10486
|
font-size: var(--goa-space-l);
|
|
10446
10487
|
line-height: var(--goa-space-xl);
|
|
10447
10488
|
font-weight: 300;
|
|
10448
10489
|
`));
|
|
10449
|
-
styled.div(_t1 || (_t1 = _$
|
|
10490
|
+
styled.div(_t1 || (_t1 = _$6`
|
|
10450
10491
|
color: #0070c4;
|
|
10451
10492
|
text-decoration: underline;
|
|
10452
10493
|
outline: none;
|
|
@@ -10457,20 +10498,20 @@ styled.div(_t1 || (_t1 = _$5`
|
|
|
10457
10498
|
background-color: #e6f7ff;
|
|
10458
10499
|
}
|
|
10459
10500
|
`));
|
|
10460
|
-
styled.div(_t10 || (_t10 = _$
|
|
10501
|
+
styled.div(_t10 || (_t10 = _$6`
|
|
10461
10502
|
margin-left: var(--goa-space-m);
|
|
10462
10503
|
`));
|
|
10463
|
-
styled.div(_t11 || (_t11 = _$
|
|
10504
|
+
styled.div(_t11 || (_t11 = _$6`
|
|
10464
10505
|
margin-bottom: var(--goa-space-m);
|
|
10465
10506
|
`));
|
|
10466
|
-
styled.div(_t12 || (_t12 = _$
|
|
10507
|
+
styled.div(_t12 || (_t12 = _$6`
|
|
10467
10508
|
margin: var(--goa-space-s);
|
|
10468
10509
|
width: 100%;
|
|
10469
10510
|
`));
|
|
10470
|
-
styled.h3(_t13 || (_t13 = _$
|
|
10511
|
+
styled.h3(_t13 || (_t13 = _$6`
|
|
10471
10512
|
text-transform: capitalize;
|
|
10472
10513
|
`));
|
|
10473
|
-
const RightAlignmentDiv = styled.div(_t14 || (_t14 = _$
|
|
10514
|
+
const RightAlignmentDiv = styled.div(_t14 || (_t14 = _$6`
|
|
10474
10515
|
@media screen and (max-width: 767px) {
|
|
10475
10516
|
margin-bottom: var(--goa-space-l);
|
|
10476
10517
|
}
|
|
@@ -10480,50 +10521,50 @@ const RightAlignmentDiv = styled.div(_t14 || (_t14 = _$5`
|
|
|
10480
10521
|
margin-bottom: var(--goa-space-l);
|
|
10481
10522
|
}
|
|
10482
10523
|
`));
|
|
10483
|
-
const FormStepperSummaryH3 = styled.h3(_t15 || (_t15 = _$
|
|
10524
|
+
const FormStepperSummaryH3 = styled.h3(_t15 || (_t15 = _$6`
|
|
10484
10525
|
flex: 1;
|
|
10485
10526
|
margin-bottom: var(--goa-space-m);
|
|
10486
10527
|
font-size: var(--goa-font-size-7);
|
|
10487
10528
|
line-height: var(--goa-line-height-4);
|
|
10488
10529
|
font-weight: var(--goa-font-weight-regular);
|
|
10489
10530
|
`));
|
|
10490
|
-
const PageRenderPadding = styled.div(_t16 || (_t16 = _$
|
|
10531
|
+
const PageRenderPadding = styled.div(_t16 || (_t16 = _$6`
|
|
10491
10532
|
margin-top: var(--goa-space-2xl);
|
|
10492
10533
|
`));
|
|
10493
|
-
styled.div(_t17 || (_t17 = _$
|
|
10534
|
+
styled.div(_t17 || (_t17 = _$6`
|
|
10494
10535
|
margin-bottom: var(--goa-space-2xl);
|
|
10495
10536
|
`));
|
|
10496
|
-
const PageBorder = styled.div(_t18 || (_t18 = _$
|
|
10537
|
+
const PageBorder = styled.div(_t18 || (_t18 = _$6`
|
|
10497
10538
|
padding: var(--goa-space-m) var(--goa-space-3xl);
|
|
10498
10539
|
`));
|
|
10499
|
-
styled.div(_t19 || (_t19 = _$
|
|
10540
|
+
styled.div(_t19 || (_t19 = _$6`
|
|
10500
10541
|
.element-style {
|
|
10501
10542
|
max-width: 1600px;
|
|
10502
10543
|
}
|
|
10503
10544
|
`));
|
|
10504
|
-
styled.div(_t20 || (_t20 = _$
|
|
10545
|
+
styled.div(_t20 || (_t20 = _$6`
|
|
10505
10546
|
padding: var(--goa-space-xl) var(--goa-space-2xl);
|
|
10506
10547
|
border: 1px solid var(--goa-color-greyscale-300);
|
|
10507
10548
|
border-radius: var(--goa-border-radius-xl);
|
|
10508
10549
|
`));
|
|
10509
|
-
styled.div(_t21 || (_t21 = _$
|
|
10550
|
+
styled.div(_t21 || (_t21 = _$6`
|
|
10510
10551
|
margin-top: var(--goa-space-xl);
|
|
10511
10552
|
display: flex;
|
|
10512
10553
|
justify-content: space-between;
|
|
10513
10554
|
`));
|
|
10514
|
-
styled.h3(_t22 || (_t22 = _$
|
|
10555
|
+
styled.h3(_t22 || (_t22 = _$6`
|
|
10515
10556
|
color: var(--goa-color-text-secondary) !important;
|
|
10516
10557
|
margin-bottom: var(--goa-space-l);
|
|
10517
10558
|
`));
|
|
10518
|
-
const CategoryStatus = styled.td(_t23 || (_t23 = _$
|
|
10559
|
+
const CategoryStatus = styled.td(_t23 || (_t23 = _$6`
|
|
10519
10560
|
width: var(--goa-space-xl);
|
|
10520
10561
|
padding-right: var(--goa-space-xl);
|
|
10521
10562
|
align-content: center;
|
|
10522
10563
|
`));
|
|
10523
|
-
const Center = styled.div(_t24 || (_t24 = _$
|
|
10564
|
+
const Center = styled.div(_t24 || (_t24 = _$6`
|
|
10524
10565
|
padding-top: 5px;
|
|
10525
10566
|
`));
|
|
10526
|
-
const PageStepperRow = styled.tr(_t25 || (_t25 = _$
|
|
10567
|
+
const PageStepperRow = styled.tr(_t25 || (_t25 = _$6`
|
|
10527
10568
|
${0}
|
|
10528
10569
|
`), ({
|
|
10529
10570
|
disabled
|
|
@@ -10548,7 +10589,7 @@ const PageStepperRow = styled.tr(_t25 || (_t25 = _$5`
|
|
|
10548
10589
|
outline: 3px solid var(--goa-color-interactive-focus);
|
|
10549
10590
|
}
|
|
10550
10591
|
`);
|
|
10551
|
-
const SectionHeaderRowTr = styled.tr(_t26 || (_t26 = _$
|
|
10592
|
+
const SectionHeaderRowTr = styled.tr(_t26 || (_t26 = _$6`
|
|
10552
10593
|
& > td {
|
|
10553
10594
|
border: 0 !important;
|
|
10554
10595
|
padding-top: var(--goa-space-l);
|
|
@@ -10560,7 +10601,7 @@ const SectionHeaderRowTr = styled.tr(_t26 || (_t26 = _$5`
|
|
|
10560
10601
|
border-top: none !important;
|
|
10561
10602
|
}
|
|
10562
10603
|
`));
|
|
10563
|
-
const SummaryRowLink = styled.a(_t27 || (_t27 = _$
|
|
10604
|
+
const SummaryRowLink = styled.a(_t27 || (_t27 = _$6`
|
|
10564
10605
|
position: relative;
|
|
10565
10606
|
top: var(--goa-space-xs);
|
|
10566
10607
|
&:focus-visible {
|
|
@@ -10569,7 +10610,7 @@ const SummaryRowLink = styled.a(_t27 || (_t27 = _$5`
|
|
|
10569
10610
|
}
|
|
10570
10611
|
padding: 0 var(--goa-space-s) var(--goa-space-xs); var(--goa-space-s);
|
|
10571
10612
|
`));
|
|
10572
|
-
const SummaryTd = styled.td(_t28 || (_t28 = _$
|
|
10613
|
+
const SummaryTd = styled.td(_t28 || (_t28 = _$6`
|
|
10573
10614
|
border: 0 !important;
|
|
10574
10615
|
padding: 0 !important;
|
|
10575
10616
|
`));
|
|
@@ -10710,129 +10751,511 @@ const ContextProviderFactory = () => new ContextProviderClass().setup;
|
|
|
10710
10751
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10711
10752
|
const JsonFormContext = /*#__PURE__*/createContext(null);
|
|
10712
10753
|
|
|
10713
|
-
const RenderStepElements = props => {
|
|
10714
|
-
var _props$category;
|
|
10715
|
-
const memoizedSchema = useMemo(() => Object.assign({}, props.schema), [props.schema]);
|
|
10716
|
-
return jsx(Visible, {
|
|
10717
|
-
visible: props.visible,
|
|
10718
|
-
"data-testid": `${(props == null ? void 0 : props.path) || ((_props$category = props.category) == null ? void 0 : _props$category.label)}-categories-${props.categoryIndex}`,
|
|
10719
|
-
children: props.category.elements.map((uiSchema, index) => {
|
|
10720
|
-
var _props$category2;
|
|
10721
|
-
return jsx(JsonFormsDispatch, {
|
|
10722
|
-
schema: memoizedSchema,
|
|
10723
|
-
uischema: uiSchema,
|
|
10724
|
-
renderers: props.renderers,
|
|
10725
|
-
cells: props.cells,
|
|
10726
|
-
path: props.path,
|
|
10727
|
-
visible: props.visible,
|
|
10728
|
-
enabled: props.enabled
|
|
10729
|
-
}, `${(props == null ? void 0 : props.path) || ((_props$category2 = props.category) == null ? void 0 : _props$category2.label)}-category-page-${index}`);
|
|
10754
|
+
const RenderStepElements = props => {
|
|
10755
|
+
var _props$category;
|
|
10756
|
+
const memoizedSchema = useMemo(() => Object.assign({}, props.schema), [props.schema]);
|
|
10757
|
+
return jsx(Visible, {
|
|
10758
|
+
visible: props.visible,
|
|
10759
|
+
"data-testid": `${(props == null ? void 0 : props.path) || ((_props$category = props.category) == null ? void 0 : _props$category.label)}-categories-${props.categoryIndex}`,
|
|
10760
|
+
children: props.category.elements.map((uiSchema, index) => {
|
|
10761
|
+
var _props$category2;
|
|
10762
|
+
return jsx(JsonFormsDispatch, {
|
|
10763
|
+
schema: memoizedSchema,
|
|
10764
|
+
uischema: uiSchema,
|
|
10765
|
+
renderers: props.renderers,
|
|
10766
|
+
cells: props.cells,
|
|
10767
|
+
path: props.path,
|
|
10768
|
+
visible: props.visible,
|
|
10769
|
+
enabled: props.enabled
|
|
10770
|
+
}, `${(props == null ? void 0 : props.path) || ((_props$category2 = props.category) == null ? void 0 : _props$category2.label)}-category-page-${index}`);
|
|
10771
|
+
})
|
|
10772
|
+
});
|
|
10773
|
+
};
|
|
10774
|
+
|
|
10775
|
+
var $$6 = _export;
|
|
10776
|
+
var flattenIntoArray = flattenIntoArray_1;
|
|
10777
|
+
var toObject$1 = toObject$a;
|
|
10778
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$a;
|
|
10779
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$9;
|
|
10780
|
+
var arraySpeciesCreate = arraySpeciesCreate$2;
|
|
10781
|
+
|
|
10782
|
+
// `Array.prototype.flat` method
|
|
10783
|
+
// https://tc39.es/ecma262/#sec-array.prototype.flat
|
|
10784
|
+
$$6({ target: 'Array', proto: true }, {
|
|
10785
|
+
flat: function flat(/* depthArg = 1 */) {
|
|
10786
|
+
var depthArg = arguments.length ? arguments[0] : undefined;
|
|
10787
|
+
var O = toObject$1(this);
|
|
10788
|
+
var sourceLen = lengthOfArrayLike$1(O);
|
|
10789
|
+
var A = arraySpeciesCreate(O, 0);
|
|
10790
|
+
A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toIntegerOrInfinity(depthArg));
|
|
10791
|
+
return A;
|
|
10792
|
+
}
|
|
10793
|
+
});
|
|
10794
|
+
|
|
10795
|
+
// this method was added to unscopables after implementation
|
|
10796
|
+
// in popular engines, so it's moved to a separate module
|
|
10797
|
+
var addToUnscopables = addToUnscopables$5;
|
|
10798
|
+
|
|
10799
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
10800
|
+
addToUnscopables('flat');
|
|
10801
|
+
|
|
10802
|
+
const isPropertiesMatch = (obj, props, isExactMatch) => {
|
|
10803
|
+
if (isObject$i(obj)) {
|
|
10804
|
+
const keys = Object.keys(obj);
|
|
10805
|
+
if (isExactMatch) {
|
|
10806
|
+
return props.every(attr => keys.includes(attr)) && keys.length === props.length;
|
|
10807
|
+
} else {
|
|
10808
|
+
return props.every(attr => keys.includes(attr));
|
|
10809
|
+
}
|
|
10810
|
+
}
|
|
10811
|
+
return false;
|
|
10812
|
+
};
|
|
10813
|
+
const createSchemaMatchTester = (props, isExactMatch = false) => {
|
|
10814
|
+
return schemaMatches(schema => {
|
|
10815
|
+
return schema && isPropertiesMatch(schema.properties, props, isExactMatch);
|
|
10816
|
+
});
|
|
10817
|
+
};
|
|
10818
|
+
|
|
10819
|
+
const isFullName = createSchemaMatchTester(['firstName', 'middleName', 'lastName'], true);
|
|
10820
|
+
const FullNameTester = rankWith(4, isFullName);
|
|
10821
|
+
|
|
10822
|
+
const FullNameControlReview = props => {
|
|
10823
|
+
var _props$uischema, _props$schema$require, _props$schema;
|
|
10824
|
+
const context = useContext(JsonFormsStepperContext);
|
|
10825
|
+
const stepId = (_props$uischema = props.uischema) == null || (_props$uischema = _props$uischema.options) == null ? void 0 : _props$uischema.stepId;
|
|
10826
|
+
const {
|
|
10827
|
+
uischema,
|
|
10828
|
+
data,
|
|
10829
|
+
id
|
|
10830
|
+
} = props;
|
|
10831
|
+
const requiredFields = (_props$schema$require = (_props$schema = props.schema) == null ? void 0 : _props$schema.required) != null ? _props$schema$require : [];
|
|
10832
|
+
const isMissing = value => isNilOrEmptyString(value);
|
|
10833
|
+
const renderRow = (fieldLabel, value, fieldName, testId) => jsx("tr", {
|
|
10834
|
+
children: jsxs(PageReviewContainer, {
|
|
10835
|
+
colSpan: 3,
|
|
10836
|
+
children: [jsxs(ReviewHeader, {
|
|
10837
|
+
children: [jsx(ReviewLabel, {
|
|
10838
|
+
children: fieldLabel
|
|
10839
|
+
}), stepId !== undefined && jsx(GoabButton, {
|
|
10840
|
+
type: "tertiary",
|
|
10841
|
+
size: "compact",
|
|
10842
|
+
onClick: () => context == null ? void 0 : context.goToPage(stepId, uischema.scope),
|
|
10843
|
+
testId: `${fieldName}-change-btn`,
|
|
10844
|
+
children: "Change"
|
|
10845
|
+
})]
|
|
10846
|
+
}), jsxs(ReviewValue, {
|
|
10847
|
+
children: [jsx("div", {
|
|
10848
|
+
"data-testid": testId,
|
|
10849
|
+
children: value != null ? value : ''
|
|
10850
|
+
}), requiredFields.includes(fieldName) && isMissing(value) && jsx(GoabFormItem, {
|
|
10851
|
+
error: `${fieldLabel} is required`,
|
|
10852
|
+
label: ""
|
|
10853
|
+
})]
|
|
10854
|
+
})]
|
|
10855
|
+
})
|
|
10856
|
+
}, testId);
|
|
10857
|
+
return jsxs(Fragment, {
|
|
10858
|
+
children: [renderRow('First name', data == null ? void 0 : data.firstName, 'firstName', `firstName-control-${id}`), (data == null ? void 0 : data.middleName) && renderRow('Middle name', data == null ? void 0 : data.middleName, 'middleName', `middleName-control-${id}`), renderRow('Last name', data == null ? void 0 : data.lastName, 'lastName', `lastName-control-${id}`)]
|
|
10859
|
+
});
|
|
10860
|
+
};
|
|
10861
|
+
const GoAInputBaseFullNameControlReview = withJsonFormsAllOfProps(FullNameControlReview);
|
|
10862
|
+
|
|
10863
|
+
const isFullNameDoB = createSchemaMatchTester(['firstName', 'middleName', 'lastName', 'dateOfBirth'], true);
|
|
10864
|
+
const FullNameDobTester = rankWith(4, isFullNameDoB);
|
|
10865
|
+
|
|
10866
|
+
const FullNameDobReviewControl = props => {
|
|
10867
|
+
var _uischema$options, _props$schema$require, _props$schema;
|
|
10868
|
+
const {
|
|
10869
|
+
data,
|
|
10870
|
+
id,
|
|
10871
|
+
uischema
|
|
10872
|
+
} = props;
|
|
10873
|
+
const context = useContext(JsonFormsStepperContext);
|
|
10874
|
+
const stepId = uischema == null || (_uischema$options = uischema.options) == null ? void 0 : _uischema$options.stepId;
|
|
10875
|
+
const requiredFields = (_props$schema$require = (_props$schema = props.schema) == null ? void 0 : _props$schema.required) != null ? _props$schema$require : [];
|
|
10876
|
+
const isMissing = value => isNilOrEmptyString(value);
|
|
10877
|
+
const renderRow = (fieldLabel, value, fieldName, testId) => jsx("tr", {
|
|
10878
|
+
children: jsxs(PageReviewContainer, {
|
|
10879
|
+
colSpan: 3,
|
|
10880
|
+
children: [jsxs(ReviewHeader, {
|
|
10881
|
+
children: [jsx(ReviewLabel, {
|
|
10882
|
+
children: fieldLabel
|
|
10883
|
+
}), stepId !== undefined && jsx(GoabButton, {
|
|
10884
|
+
type: "tertiary",
|
|
10885
|
+
size: "compact",
|
|
10886
|
+
onClick: () => context == null ? void 0 : context.goToPage(stepId, uischema.scope),
|
|
10887
|
+
testId: `${fieldName}-change-btn`,
|
|
10888
|
+
children: "Change"
|
|
10889
|
+
})]
|
|
10890
|
+
}), jsxs(ReviewValue, {
|
|
10891
|
+
children: [jsx("div", {
|
|
10892
|
+
"data-testid": testId,
|
|
10893
|
+
children: value != null ? value : ''
|
|
10894
|
+
}), requiredFields.includes(fieldName) && isMissing(value) && jsx(GoabFormItem, {
|
|
10895
|
+
error: `${fieldLabel} is required`,
|
|
10896
|
+
label: ""
|
|
10897
|
+
})]
|
|
10898
|
+
})]
|
|
10899
|
+
})
|
|
10900
|
+
}, testId);
|
|
10901
|
+
return jsxs(Fragment, {
|
|
10902
|
+
children: [renderRow('First name', data == null ? void 0 : data.firstName, 'firstName', `firstName-control-${id}`), (data == null ? void 0 : data.middleName) && renderRow('Middle name', data == null ? void 0 : data.middleName, 'middleName', `middleName-control-${id}`), renderRow('Last name', data == null ? void 0 : data.lastName, 'lastName', `lastName-control-${id}`), renderRow('Date of birth', data == null ? void 0 : data.dateOfBirth, 'dateOfBirth', `dob-control-${id}`)]
|
|
10903
|
+
});
|
|
10904
|
+
};
|
|
10905
|
+
const GoAInputBaseFullNameDobControlReview = withJsonFormsAllOfProps(FullNameDobReviewControl);
|
|
10906
|
+
|
|
10907
|
+
let _$5 = t => t,
|
|
10908
|
+
_t$6;
|
|
10909
|
+
const PhoneGrid = styled.div(_t$6 || (_t$6 = _$5`
|
|
10910
|
+
display: grid;
|
|
10911
|
+
grid-template-columns: 1fr 2fr;
|
|
10912
|
+
gap: 0.2rem;
|
|
10913
|
+
align-items: start;
|
|
10914
|
+
margin-bottom: var(--goa-space-l) !important;
|
|
10915
|
+
|
|
10916
|
+
goa-form-item {
|
|
10917
|
+
margin-right: 0 !important;
|
|
10918
|
+
}
|
|
10919
|
+
`));
|
|
10920
|
+
const PHONE_REGEX = /^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$/;
|
|
10921
|
+
const normalizePhoneData = value => ({
|
|
10922
|
+
type: (value == null ? void 0 : value.type) || '',
|
|
10923
|
+
number: (value == null ? void 0 : value.number) || ''
|
|
10924
|
+
});
|
|
10925
|
+
const PhoneNumberWithTypeControl = props => {
|
|
10926
|
+
const {
|
|
10927
|
+
data,
|
|
10928
|
+
path,
|
|
10929
|
+
handleChange,
|
|
10930
|
+
enabled,
|
|
10931
|
+
visible,
|
|
10932
|
+
required
|
|
10933
|
+
} = props;
|
|
10934
|
+
const [formData, setFormData] = useState(normalizePhoneData(data));
|
|
10935
|
+
const [error, setError] = useState(undefined);
|
|
10936
|
+
useEffect(() => {
|
|
10937
|
+
const nextData = normalizePhoneData(data);
|
|
10938
|
+
setFormData(currentData => currentData.type === nextData.type && currentData.number === nextData.number ? currentData : nextData);
|
|
10939
|
+
}, [data]);
|
|
10940
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10941
|
+
const updateFormData = updated => {
|
|
10942
|
+
setFormData(updated);
|
|
10943
|
+
if (updated.number && !PHONE_REGEX.test(updated.number)) {
|
|
10944
|
+
setError('Enter a valid phone number (e.g., (780) 123-4567)');
|
|
10945
|
+
} else {
|
|
10946
|
+
setError(undefined);
|
|
10947
|
+
}
|
|
10948
|
+
handleChange(path, updated);
|
|
10949
|
+
};
|
|
10950
|
+
return jsx(Visible, {
|
|
10951
|
+
visible: visible,
|
|
10952
|
+
children: jsxs(PhoneGrid, {
|
|
10953
|
+
children: [jsx(GoabFormItem, {
|
|
10954
|
+
label: "Phone type",
|
|
10955
|
+
requirement: required ? 'required' : undefined,
|
|
10956
|
+
children: jsxs(GoabDropdown, {
|
|
10957
|
+
name: "type",
|
|
10958
|
+
value: formData.type || '',
|
|
10959
|
+
disabled: !enabled,
|
|
10960
|
+
onChange: detail => updateFormData(Object.assign({}, formData, {
|
|
10961
|
+
type: detail.value
|
|
10962
|
+
})),
|
|
10963
|
+
children: [jsx(GoabDropdownItem, {
|
|
10964
|
+
value: "Mobile"
|
|
10965
|
+
}), jsx(GoabDropdownItem, {
|
|
10966
|
+
value: "Landline"
|
|
10967
|
+
})]
|
|
10968
|
+
})
|
|
10969
|
+
}), jsx(GoabFormItem, {
|
|
10970
|
+
label: "Phone number",
|
|
10971
|
+
error: error,
|
|
10972
|
+
requirement: required ? 'required' : undefined,
|
|
10973
|
+
children: jsx(GoabInput, {
|
|
10974
|
+
type: "tel",
|
|
10975
|
+
name: "number",
|
|
10976
|
+
placeholder: "(000) 000-0000",
|
|
10977
|
+
value: formData.number || '',
|
|
10978
|
+
disabled: !enabled,
|
|
10979
|
+
onChange: detail => updateFormData(Object.assign({}, formData, {
|
|
10980
|
+
number: detail.value
|
|
10981
|
+
}))
|
|
10982
|
+
})
|
|
10983
|
+
})]
|
|
10984
|
+
})
|
|
10985
|
+
});
|
|
10986
|
+
};
|
|
10987
|
+
const GoAPhoneNumberWithTypeControl = withJsonFormsControlProps(PhoneNumberWithTypeControl);
|
|
10988
|
+
|
|
10989
|
+
const PhoneNumberControl = props => {
|
|
10990
|
+
const {
|
|
10991
|
+
data,
|
|
10992
|
+
path,
|
|
10993
|
+
schema,
|
|
10994
|
+
handleChange,
|
|
10995
|
+
enabled,
|
|
10996
|
+
visible,
|
|
10997
|
+
required
|
|
10998
|
+
} = props;
|
|
10999
|
+
const [error, setError] = useState('');
|
|
11000
|
+
const handleInputChange = (name, value) => {
|
|
11001
|
+
if (value && !PHONE_REGEX.test(value)) {
|
|
11002
|
+
setError('Must be a valid 10-digit phone number in format (000) 000-0000');
|
|
11003
|
+
} else {
|
|
11004
|
+
setError('');
|
|
11005
|
+
}
|
|
11006
|
+
handleChange(path, value);
|
|
11007
|
+
};
|
|
11008
|
+
return jsx(Visible, {
|
|
11009
|
+
visible: visible,
|
|
11010
|
+
children: jsx(GoabFormItem, {
|
|
11011
|
+
label: (schema == null ? void 0 : schema.title) || 'Phone number',
|
|
11012
|
+
requirement: required ? 'required' : undefined,
|
|
11013
|
+
error: error,
|
|
11014
|
+
testId: `form-item-${path}`,
|
|
11015
|
+
children: jsx(GoabInput, {
|
|
11016
|
+
type: "tel",
|
|
11017
|
+
name: path,
|
|
11018
|
+
disabled: !enabled,
|
|
11019
|
+
"aria-label": "phone number input",
|
|
11020
|
+
testId: `phone-input-${path}`,
|
|
11021
|
+
value: data || '',
|
|
11022
|
+
onChange: detail => handleInputChange(detail.name, detail.value),
|
|
11023
|
+
placeholder: "(000) 000-0000",
|
|
11024
|
+
width: "100%"
|
|
11025
|
+
})
|
|
11026
|
+
})
|
|
11027
|
+
});
|
|
11028
|
+
};
|
|
11029
|
+
const GoAPhoneNumberControl = withJsonFormsControlProps(PhoneNumberControl);
|
|
11030
|
+
|
|
11031
|
+
const PhoneNumberTester = rankWith(4, and(isControl$1, schemaTypeIs('string'), formatIs('phone')));
|
|
11032
|
+
|
|
11033
|
+
let _$4 = t => t,
|
|
11034
|
+
_t$5,
|
|
11035
|
+
_t2$2,
|
|
11036
|
+
_t3$1,
|
|
11037
|
+
_t4$1,
|
|
11038
|
+
_t5,
|
|
11039
|
+
_t6;
|
|
11040
|
+
const SearchBox = styled.div(_t$5 || (_t$5 = _$4`
|
|
11041
|
+
position: relative;
|
|
11042
|
+
|
|
11043
|
+
.suggestions {
|
|
11044
|
+
width: 100%;
|
|
11045
|
+
margin-top: 3px;
|
|
11046
|
+
border-top-width: 0;
|
|
11047
|
+
list-style: none;
|
|
11048
|
+
max-height: 15.5rem;
|
|
11049
|
+
width: 100%;
|
|
11050
|
+
position: absolute;
|
|
11051
|
+
|
|
11052
|
+
background: var(--goa-color-greyscale-white);
|
|
11053
|
+
box-shadow: 0 8px 8px rgb(0 0 0 / 20%), 0 4px 4px rgb(0 0 0 / 10%);
|
|
11054
|
+
z-index: 99;
|
|
11055
|
+
overflow: hidden auto;
|
|
11056
|
+
padding-left: 0;
|
|
11057
|
+
}
|
|
11058
|
+
.suggestions li {
|
|
11059
|
+
}
|
|
11060
|
+
.suggestion-active,
|
|
11061
|
+
.suggestions li:hover {
|
|
11062
|
+
background-color: var(--goa-color-interactive-default);
|
|
11063
|
+
color: var(--goa-color-greyscale-white);
|
|
11064
|
+
cursor: pointer;
|
|
11065
|
+
font-weight: 600;
|
|
11066
|
+
}
|
|
11067
|
+
.input-container {
|
|
11068
|
+
position: relative;
|
|
11069
|
+
display: inline-block;
|
|
11070
|
+
width: 100%; /* Ensures it spans the parent container */
|
|
11071
|
+
}
|
|
11072
|
+
|
|
11073
|
+
.input-container .input-spinner {
|
|
11074
|
+
position: absolute;
|
|
11075
|
+
top: 50%;
|
|
11076
|
+
right: 8px; /* Adjust based on padding or margin of the input field */
|
|
11077
|
+
transform: translateY(-50%);
|
|
11078
|
+
z-index: 1; /* Ensure it appears above the input */
|
|
11079
|
+
pointer-events: none; /* Prevent spinner from interfering with clicks */
|
|
11080
|
+
}
|
|
11081
|
+
`));
|
|
11082
|
+
const AddressIndent = styled.div(_t2$2 || (_t2$2 = _$4`
|
|
11083
|
+
margin: 0 0 var(--goa-space-m) 0;
|
|
11084
|
+
text-wrap: wrap;
|
|
11085
|
+
word-break: break-word;
|
|
11086
|
+
border: 1px solid var(--goa-color-greyscale-300);
|
|
11087
|
+
border-radius: var(--goa-border-radius-xl);
|
|
11088
|
+
padding: var(--goa-space-l);
|
|
11089
|
+
`));
|
|
11090
|
+
const TextWrap = styled.p(_t3$1 || (_t3$1 = _$4`
|
|
11091
|
+
text-wrap: auto;
|
|
11092
|
+
word-break: break-word;
|
|
11093
|
+
`));
|
|
11094
|
+
const TextWrapDiv = styled.div(_t4$1 || (_t4$1 = _$4`
|
|
11095
|
+
text-wrap: auto;
|
|
11096
|
+
word-break: break-word;
|
|
11097
|
+
`));
|
|
11098
|
+
const LabelDiv = styled.div(_t5 || (_t5 = _$4`
|
|
11099
|
+
font-size: var(--goa-font-size-2);
|
|
11100
|
+
padding-bottom: var(--goa-space-l);
|
|
11101
|
+
`));
|
|
11102
|
+
/* istanbul ignore next */
|
|
11103
|
+
const ListItem = styled.li(_t6 || (_t6 = _$4`
|
|
11104
|
+
background-color: ${0};
|
|
11105
|
+
color: ${0};
|
|
11106
|
+
font-weight: ${0};
|
|
11107
|
+
padding: var(--goa-space-xs) var(--goa-space-2xs) var(--goa-space-xs) var(--goa-space-xs);
|
|
11108
|
+
margin-left: 0.25rem;
|
|
11109
|
+
`), ({
|
|
11110
|
+
selected,
|
|
11111
|
+
index
|
|
11112
|
+
}) => selected === index ? 'var(--goa-color-interactive-default)' : '', ({
|
|
11113
|
+
selected,
|
|
11114
|
+
index
|
|
11115
|
+
}) => selected === index ? 'var(--goa-color-greyscale-white) !important' : '', ({
|
|
11116
|
+
selected,
|
|
11117
|
+
index
|
|
11118
|
+
}) => selected === index ? '600' : '');
|
|
11119
|
+
|
|
11120
|
+
const PhoneNumberReviewControl = props => {
|
|
11121
|
+
const {
|
|
11122
|
+
data,
|
|
11123
|
+
id,
|
|
11124
|
+
required
|
|
11125
|
+
} = props;
|
|
11126
|
+
return jsx(GoabFormItem, {
|
|
11127
|
+
label: "Phone number",
|
|
11128
|
+
error: required && !data ? 'Phone number is required' : '',
|
|
11129
|
+
requirement: required ? 'required' : undefined,
|
|
11130
|
+
children: jsx(TextWrapDiv, {
|
|
11131
|
+
children: jsx("div", {
|
|
11132
|
+
"data-testid": `phone-control-${id}`,
|
|
11133
|
+
children: data || ''
|
|
11134
|
+
})
|
|
10730
11135
|
})
|
|
10731
11136
|
});
|
|
10732
11137
|
};
|
|
11138
|
+
const GoabInputBasePhoneNumberReviewControl = withJsonFormsAllOfProps(PhoneNumberReviewControl);
|
|
10733
11139
|
|
|
10734
|
-
|
|
10735
|
-
|
|
10736
|
-
var toObject$1 = toObject$a;
|
|
10737
|
-
var lengthOfArrayLike$1 = lengthOfArrayLike$a;
|
|
10738
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$9;
|
|
10739
|
-
var arraySpeciesCreate = arraySpeciesCreate$2;
|
|
10740
|
-
|
|
10741
|
-
// `Array.prototype.flat` method
|
|
10742
|
-
// https://tc39.es/ecma262/#sec-array.prototype.flat
|
|
10743
|
-
$$6({ target: 'Array', proto: true }, {
|
|
10744
|
-
flat: function flat(/* depthArg = 1 */) {
|
|
10745
|
-
var depthArg = arguments.length ? arguments[0] : undefined;
|
|
10746
|
-
var O = toObject$1(this);
|
|
10747
|
-
var sourceLen = lengthOfArrayLike$1(O);
|
|
10748
|
-
var A = arraySpeciesCreate(O, 0);
|
|
10749
|
-
A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toIntegerOrInfinity(depthArg));
|
|
10750
|
-
return A;
|
|
10751
|
-
}
|
|
10752
|
-
});
|
|
10753
|
-
|
|
10754
|
-
// this method was added to unscopables after implementation
|
|
10755
|
-
// in popular engines, so it's moved to a separate module
|
|
10756
|
-
var addToUnscopables = addToUnscopables$5;
|
|
10757
|
-
|
|
10758
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
10759
|
-
addToUnscopables('flat');
|
|
11140
|
+
const isPhoneNumberWithType = createSchemaMatchTester(['number', 'type'], true);
|
|
11141
|
+
const PhoneNumberWithTypeTester = rankWith(4, isPhoneNumberWithType);
|
|
10760
11142
|
|
|
10761
|
-
const
|
|
10762
|
-
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10770
|
-
|
|
10771
|
-
|
|
10772
|
-
|
|
10773
|
-
|
|
10774
|
-
|
|
11143
|
+
const PhoneNumberWithTypeReviewControl = props => {
|
|
11144
|
+
const {
|
|
11145
|
+
data,
|
|
11146
|
+
id,
|
|
11147
|
+
required
|
|
11148
|
+
} = props;
|
|
11149
|
+
return jsxs(PhoneGrid, {
|
|
11150
|
+
children: [jsx(GoabFormItem, {
|
|
11151
|
+
label: "Phone number",
|
|
11152
|
+
error: required && !(data != null && data.number) ? 'Phone number is required' : '',
|
|
11153
|
+
requirement: required ? 'required' : undefined,
|
|
11154
|
+
children: jsx(TextWrapDiv, {
|
|
11155
|
+
children: jsx("div", {
|
|
11156
|
+
"data-testid": `phone-number-control-${id}`,
|
|
11157
|
+
children: (data == null ? void 0 : data.number) || ''
|
|
11158
|
+
})
|
|
11159
|
+
})
|
|
11160
|
+
}), jsx(GoabFormItem, {
|
|
11161
|
+
label: "Phone type",
|
|
11162
|
+
error: required && !(data != null && data.type) ? 'Phone type is required' : '',
|
|
11163
|
+
requirement: required ? 'required' : undefined,
|
|
11164
|
+
children: jsx(TextWrapDiv, {
|
|
11165
|
+
children: jsx("div", {
|
|
11166
|
+
"data-testid": `phone-type-control-${id}`,
|
|
11167
|
+
children: (data == null ? void 0 : data.type) || ''
|
|
11168
|
+
})
|
|
11169
|
+
})
|
|
11170
|
+
})]
|
|
10775
11171
|
});
|
|
10776
11172
|
};
|
|
11173
|
+
const GoabInputBasePhoneNumberWithTypeReviewControl = withJsonFormsAllOfProps(PhoneNumberWithTypeReviewControl);
|
|
10777
11174
|
|
|
10778
|
-
|
|
10779
|
-
|
|
11175
|
+
let _$3 = t => t,
|
|
11176
|
+
_t$4;
|
|
11177
|
+
const FormFieldWrapper = styled.div(_t$4 || (_t$4 = _$3`
|
|
11178
|
+
margin-bottom: var(--goa-space-l);
|
|
11179
|
+
`));
|
|
10780
11180
|
|
|
10781
|
-
const
|
|
10782
|
-
var
|
|
10783
|
-
const context = useContext(JsonFormsStepperContext);
|
|
10784
|
-
const stepId = (_props$uischema = props.uischema) == null || (_props$uischema = _props$uischema.options) == null ? void 0 : _props$uischema.stepId;
|
|
11181
|
+
const ContractInfoControl = props => {
|
|
11182
|
+
var _options$enableEmail, _options$enablePhone, _options$emailFirst;
|
|
10785
11183
|
const {
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
11184
|
+
data = {},
|
|
11185
|
+
path,
|
|
11186
|
+
handleChange,
|
|
11187
|
+
enabled,
|
|
11188
|
+
visible,
|
|
11189
|
+
required,
|
|
11190
|
+
uischema
|
|
10789
11191
|
} = props;
|
|
10790
|
-
const
|
|
10791
|
-
|
|
10792
|
-
|
|
10793
|
-
|
|
10794
|
-
|
|
10795
|
-
|
|
10796
|
-
|
|
10797
|
-
|
|
10798
|
-
|
|
10799
|
-
|
|
10800
|
-
|
|
10801
|
-
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
|
|
10807
|
-
|
|
10808
|
-
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
|
|
10813
|
-
|
|
10814
|
-
})
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
11192
|
+
const handleFieldChange = (field, value) => {
|
|
11193
|
+
handleChange(`${path}.${field}`, value);
|
|
11194
|
+
};
|
|
11195
|
+
const emailProps = Object.assign({}, props, {
|
|
11196
|
+
data: data == null ? void 0 : data.email,
|
|
11197
|
+
path: `${path}.email`
|
|
11198
|
+
});
|
|
11199
|
+
const phoneProps = Object.assign({}, props, {
|
|
11200
|
+
data: data == null ? void 0 : data.phone,
|
|
11201
|
+
path: `${path}.phone`
|
|
11202
|
+
});
|
|
11203
|
+
const {
|
|
11204
|
+
options
|
|
11205
|
+
} = uischema;
|
|
11206
|
+
const enableEmail = (_options$enableEmail = options == null ? void 0 : options.enableEmail) != null ? _options$enableEmail : true;
|
|
11207
|
+
const enablePhone = (_options$enablePhone = options == null ? void 0 : options.enablePhone) != null ? _options$enablePhone : true;
|
|
11208
|
+
const emailFirst = (_options$emailFirst = options == null ? void 0 : options.emailFirst) != null ? _options$emailFirst : false;
|
|
11209
|
+
if (!enableEmail && !enablePhone) {
|
|
11210
|
+
throw new Error('At least one contact method must be enabled');
|
|
11211
|
+
}
|
|
11212
|
+
return jsxs("div", {
|
|
11213
|
+
style: {
|
|
11214
|
+
display: visible ? 'block' : 'none'
|
|
11215
|
+
},
|
|
11216
|
+
children: [enableEmail && emailFirst && jsx(GoAEmailInput, Object.assign({}, emailProps)), enablePhone && jsx(FormFieldWrapper, {
|
|
11217
|
+
children: jsx(PhoneNumberControl, Object.assign({}, phoneProps))
|
|
11218
|
+
}), enableEmail && !emailFirst && jsx(GoAEmailInput, Object.assign({}, emailProps)), enableEmail && enablePhone && jsx(FormFieldWrapper, {
|
|
11219
|
+
children: jsx(GoabFormItem, {
|
|
11220
|
+
label: "Preferred Contact Method",
|
|
11221
|
+
requirement: required ? 'required' : undefined,
|
|
11222
|
+
children: jsxs(GoabDropdown, {
|
|
11223
|
+
testId: `preferred-contact-${path}`,
|
|
11224
|
+
disabled: !enabled,
|
|
11225
|
+
value: data.preferredContactMethod || '',
|
|
11226
|
+
onChange: detail => handleFieldChange('preferredContactMethod', detail.value || ''),
|
|
11227
|
+
width: "250px",
|
|
11228
|
+
children: [jsx(GoabDropdownItem, {
|
|
11229
|
+
value: "",
|
|
11230
|
+
label: "Select a Contact Method"
|
|
11231
|
+
}), emailFirst && jsx(GoabDropdownItem, {
|
|
11232
|
+
value: "Email",
|
|
11233
|
+
label: "Email"
|
|
11234
|
+
}), jsx(GoabDropdownItem, {
|
|
11235
|
+
value: "Phone",
|
|
11236
|
+
label: "Phone"
|
|
11237
|
+
}), !emailFirst && jsx(GoabDropdownItem, {
|
|
11238
|
+
value: "Email",
|
|
11239
|
+
label: "Email"
|
|
11240
|
+
})]
|
|
11241
|
+
})
|
|
11242
|
+
})
|
|
11243
|
+
})]
|
|
10818
11244
|
});
|
|
10819
11245
|
};
|
|
10820
|
-
const GoAInputBaseFullNameControlReview = withJsonFormsAllOfProps(FullNameControlReview);
|
|
10821
|
-
|
|
10822
|
-
const isFullNameDoB = createSchemaMatchTester(['firstName', 'middleName', 'lastName', 'dateOfBirth'], true);
|
|
10823
|
-
const FullNameDobTester = rankWith(4, isFullNameDoB);
|
|
10824
11246
|
|
|
10825
|
-
const
|
|
10826
|
-
var
|
|
11247
|
+
const ContractInfoControlReview = props => {
|
|
11248
|
+
var _props$uischema, _schema$required, _options$enableEmail, _options$enablePhone, _options$emailFirst;
|
|
11249
|
+
const context = useContext(JsonFormsStepperContext);
|
|
11250
|
+
const stepId = (_props$uischema = props.uischema) == null || (_props$uischema = _props$uischema.options) == null ? void 0 : _props$uischema.stepId;
|
|
10827
11251
|
const {
|
|
10828
|
-
|
|
11252
|
+
uischema,
|
|
11253
|
+
data = {},
|
|
10829
11254
|
id,
|
|
10830
|
-
|
|
11255
|
+
schema
|
|
10831
11256
|
} = props;
|
|
10832
|
-
const
|
|
10833
|
-
const
|
|
10834
|
-
const requiredFields = (_props$schema$require = (_props$schema = props.schema) == null ? void 0 : _props$schema.required) != null ? _props$schema$require : [];
|
|
10835
|
-
const isMissing = value => isNilOrEmptyString(value);
|
|
11257
|
+
const requiredFields = (_schema$required = schema == null ? void 0 : schema.required) != null ? _schema$required : [];
|
|
11258
|
+
const isMissing = value => value === undefined || value === null || value === '';
|
|
10836
11259
|
const renderRow = (fieldLabel, value, fieldName, testId) => jsx("tr", {
|
|
10837
11260
|
children: jsxs(PageReviewContainer, {
|
|
10838
11261
|
colSpan: 3,
|
|
@@ -10857,11 +11280,23 @@ const FullNameDobReviewControl = props => {
|
|
|
10857
11280
|
})]
|
|
10858
11281
|
})
|
|
10859
11282
|
}, testId);
|
|
11283
|
+
const {
|
|
11284
|
+
options
|
|
11285
|
+
} = uischema;
|
|
11286
|
+
const enableEmail = (_options$enableEmail = options == null ? void 0 : options.enableEmail) != null ? _options$enableEmail : true;
|
|
11287
|
+
const enablePhone = (_options$enablePhone = options == null ? void 0 : options.enablePhone) != null ? _options$enablePhone : true;
|
|
11288
|
+
const emailFirst = (_options$emailFirst = options == null ? void 0 : options.emailFirst) != null ? _options$emailFirst : false;
|
|
11289
|
+
if (!enableEmail && !enablePhone) {
|
|
11290
|
+
throw new Error('At least one contact method must be enabled');
|
|
11291
|
+
}
|
|
10860
11292
|
return jsxs(Fragment, {
|
|
10861
|
-
children: [renderRow('
|
|
11293
|
+
children: [enableEmail && emailFirst && renderRow('Email', data == null ? void 0 : data.email, 'email', `email-control-${id}`), enablePhone && renderRow('Phone number', data == null ? void 0 : data.phone, 'phone', `phone-control-${id}`), enableEmail && !emailFirst && renderRow('Email', data == null ? void 0 : data.email, 'email', `email-control-${id}`), enableEmail && enablePhone && renderRow('Preferred contact method', (data == null ? void 0 : data.preferredContactMethod) || 'Email', 'preferredContactMethod', `preferred-contact-${id}`)]
|
|
10862
11294
|
});
|
|
10863
11295
|
};
|
|
10864
|
-
const
|
|
11296
|
+
const GoAContractInfoControlReview = withJsonFormsAllOfProps(ContractInfoControlReview);
|
|
11297
|
+
|
|
11298
|
+
const isContactInformation = createSchemaMatchTester(['email', 'phone', 'preferredContactMethod']);
|
|
11299
|
+
const ContactInformationTester = rankWith(4, isContactInformation);
|
|
10865
11300
|
|
|
10866
11301
|
var $$5 = _export;
|
|
10867
11302
|
var iterate = iterate$a;
|
|
@@ -11960,115 +12395,28 @@ const ListWithDetailsControl = props => {
|
|
|
11960
12395
|
}
|
|
11961
12396
|
setOpen(false);
|
|
11962
12397
|
// eslint-disable-next-line
|
|
11963
|
-
}, [setOpen, path, rowData, rowData]);
|
|
11964
|
-
return jsxs(Visible, {
|
|
11965
|
-
visible: visible,
|
|
11966
|
-
children: [jsx(ListWithDetailControl, Object.assign({}, props, {
|
|
11967
|
-
openDeleteDialog: openDeleteDialog,
|
|
11968
|
-
enabled: props.enabled,
|
|
11969
|
-
currentTab: currentTab,
|
|
11970
|
-
setCurrentTab: setCurrentTab
|
|
11971
|
-
})), jsx(DeleteDialog, {
|
|
11972
|
-
open: open,
|
|
11973
|
-
onCancel: deleteCancel,
|
|
11974
|
-
onConfirm: deleteConfirm,
|
|
11975
|
-
title: 'Delete confirmation',
|
|
11976
|
-
message: `Are you sure you wish to delete ${name}`
|
|
11977
|
-
})]
|
|
11978
|
-
});
|
|
11979
|
-
};
|
|
11980
|
-
const GoAListWithDetailsControlRenderer = withJsonFormsArrayLayoutProps(ListWithDetailsControl);
|
|
11981
|
-
const GoAListWithDetailsTester = rankWith(3, and(uiTypeIs('ListWithDetail')));
|
|
11982
|
-
|
|
11983
|
-
const isAddressLookup = createSchemaMatchTester(['addressLine2', 'municipality', 'addressLine1', 'subdivisionCode', 'postalCode']);
|
|
11984
|
-
const AddressLookUpTester = rankWith(4, isAddressLookup);
|
|
11985
|
-
|
|
11986
|
-
let _$4 = t => t,
|
|
11987
|
-
_t$5,
|
|
11988
|
-
_t2$2,
|
|
11989
|
-
_t3$1,
|
|
11990
|
-
_t4$1,
|
|
11991
|
-
_t5,
|
|
11992
|
-
_t6;
|
|
11993
|
-
const SearchBox = styled.div(_t$5 || (_t$5 = _$4`
|
|
11994
|
-
position: relative;
|
|
11995
|
-
|
|
11996
|
-
.suggestions {
|
|
11997
|
-
width: 100%;
|
|
11998
|
-
margin-top: 3px;
|
|
11999
|
-
border-top-width: 0;
|
|
12000
|
-
list-style: none;
|
|
12001
|
-
max-height: 15.5rem;
|
|
12002
|
-
width: 100%;
|
|
12003
|
-
position: absolute;
|
|
12004
|
-
|
|
12005
|
-
background: var(--goa-color-greyscale-white);
|
|
12006
|
-
box-shadow: 0 8px 8px rgb(0 0 0 / 20%), 0 4px 4px rgb(0 0 0 / 10%);
|
|
12007
|
-
z-index: 99;
|
|
12008
|
-
overflow: hidden auto;
|
|
12009
|
-
padding-left: 0;
|
|
12010
|
-
}
|
|
12011
|
-
.suggestions li {
|
|
12012
|
-
}
|
|
12013
|
-
.suggestion-active,
|
|
12014
|
-
.suggestions li:hover {
|
|
12015
|
-
background-color: var(--goa-color-interactive-default);
|
|
12016
|
-
color: var(--goa-color-greyscale-white);
|
|
12017
|
-
cursor: pointer;
|
|
12018
|
-
font-weight: 600;
|
|
12019
|
-
}
|
|
12020
|
-
.input-container {
|
|
12021
|
-
position: relative;
|
|
12022
|
-
display: inline-block;
|
|
12023
|
-
width: 100%; /* Ensures it spans the parent container */
|
|
12024
|
-
}
|
|
12398
|
+
}, [setOpen, path, rowData, rowData]);
|
|
12399
|
+
return jsxs(Visible, {
|
|
12400
|
+
visible: visible,
|
|
12401
|
+
children: [jsx(ListWithDetailControl, Object.assign({}, props, {
|
|
12402
|
+
openDeleteDialog: openDeleteDialog,
|
|
12403
|
+
enabled: props.enabled,
|
|
12404
|
+
currentTab: currentTab,
|
|
12405
|
+
setCurrentTab: setCurrentTab
|
|
12406
|
+
})), jsx(DeleteDialog, {
|
|
12407
|
+
open: open,
|
|
12408
|
+
onCancel: deleteCancel,
|
|
12409
|
+
onConfirm: deleteConfirm,
|
|
12410
|
+
title: 'Delete confirmation',
|
|
12411
|
+
message: `Are you sure you wish to delete ${name}`
|
|
12412
|
+
})]
|
|
12413
|
+
});
|
|
12414
|
+
};
|
|
12415
|
+
const GoAListWithDetailsControlRenderer = withJsonFormsArrayLayoutProps(ListWithDetailsControl);
|
|
12416
|
+
const GoAListWithDetailsTester = rankWith(3, and(uiTypeIs('ListWithDetail')));
|
|
12025
12417
|
|
|
12026
|
-
|
|
12027
|
-
|
|
12028
|
-
top: 50%;
|
|
12029
|
-
right: 8px; /* Adjust based on padding or margin of the input field */
|
|
12030
|
-
transform: translateY(-50%);
|
|
12031
|
-
z-index: 1; /* Ensure it appears above the input */
|
|
12032
|
-
pointer-events: none; /* Prevent spinner from interfering with clicks */
|
|
12033
|
-
}
|
|
12034
|
-
`));
|
|
12035
|
-
const AddressIndent = styled.div(_t2$2 || (_t2$2 = _$4`
|
|
12036
|
-
margin: 0 0 var(--goa-space-m) 0;
|
|
12037
|
-
text-wrap: wrap;
|
|
12038
|
-
word-break: break-word;
|
|
12039
|
-
border: 1px solid var(--goa-color-greyscale-300);
|
|
12040
|
-
border-radius: var(--goa-border-radius-xl);
|
|
12041
|
-
padding: var(--goa-space-l);
|
|
12042
|
-
`));
|
|
12043
|
-
const TextWrap = styled.p(_t3$1 || (_t3$1 = _$4`
|
|
12044
|
-
text-wrap: auto;
|
|
12045
|
-
word-break: break-word;
|
|
12046
|
-
`));
|
|
12047
|
-
const TextWrapDiv = styled.div(_t4$1 || (_t4$1 = _$4`
|
|
12048
|
-
text-wrap: auto;
|
|
12049
|
-
word-break: break-word;
|
|
12050
|
-
`));
|
|
12051
|
-
const LabelDiv = styled.div(_t5 || (_t5 = _$4`
|
|
12052
|
-
font-size: var(--goa-font-size-2);
|
|
12053
|
-
padding-bottom: var(--goa-space-l);
|
|
12054
|
-
`));
|
|
12055
|
-
/* istanbul ignore next */
|
|
12056
|
-
const ListItem = styled.li(_t6 || (_t6 = _$4`
|
|
12057
|
-
background-color: ${0};
|
|
12058
|
-
color: ${0};
|
|
12059
|
-
font-weight: ${0};
|
|
12060
|
-
padding: var(--goa-space-xs) var(--goa-space-2xs) var(--goa-space-xs) var(--goa-space-xs);
|
|
12061
|
-
margin-left: 0.25rem;
|
|
12062
|
-
`), ({
|
|
12063
|
-
selected,
|
|
12064
|
-
index
|
|
12065
|
-
}) => selected === index ? 'var(--goa-color-interactive-default)' : '', ({
|
|
12066
|
-
selected,
|
|
12067
|
-
index
|
|
12068
|
-
}) => selected === index ? 'var(--goa-color-greyscale-white) !important' : '', ({
|
|
12069
|
-
selected,
|
|
12070
|
-
index
|
|
12071
|
-
}) => selected === index ? '600' : '');
|
|
12418
|
+
const isAddressLookup = createSchemaMatchTester(['addressLine2', 'municipality', 'addressLine1', 'subdivisionCode', 'postalCode']);
|
|
12419
|
+
const AddressLookUpTester = rankWith(4, isAddressLookup);
|
|
12072
12420
|
|
|
12073
12421
|
const AddressViews = ({
|
|
12074
12422
|
data,
|
|
@@ -12500,10 +12848,10 @@ const GoAGroupReviewControlComponent = props => {
|
|
|
12500
12848
|
const GoAGroupReviewLayoutTester = rankWith(1, uiTypeIs('Group'));
|
|
12501
12849
|
const GoAGroupReviewControl = withJsonFormsLayoutProps(GoAGroupReviewControlComponent, true);
|
|
12502
12850
|
|
|
12503
|
-
let _$
|
|
12504
|
-
_t$
|
|
12851
|
+
let _$2 = t => t,
|
|
12852
|
+
_t$3,
|
|
12505
12853
|
_t2$1;
|
|
12506
|
-
const HelpContentDiv = styled.div(_t$
|
|
12854
|
+
const HelpContentDiv = styled.div(_t$3 || (_t$3 = _$2`
|
|
12507
12855
|
.parent-label {
|
|
12508
12856
|
font-size: 24px;
|
|
12509
12857
|
margin-bottom: var(--goa-space-m);
|
|
@@ -12591,12 +12939,12 @@ const HelpContentDiv = styled.div(_t$4 || (_t$4 = _$3`
|
|
|
12591
12939
|
text-decoration: underline;
|
|
12592
12940
|
}
|
|
12593
12941
|
`));
|
|
12594
|
-
const InvalidMarkdown = styled.div(_t2$1 || (_t2$1 = _$
|
|
12942
|
+
const InvalidMarkdown = styled.div(_t2$1 || (_t2$1 = _$2`
|
|
12595
12943
|
color: var(--goa-color-interactive-error);
|
|
12596
12944
|
`));
|
|
12597
12945
|
|
|
12598
|
-
let _$
|
|
12599
|
-
_t$
|
|
12946
|
+
let _$1 = t => t,
|
|
12947
|
+
_t$2;
|
|
12600
12948
|
const GoAContextMenuIcon = props => {
|
|
12601
12949
|
return jsx(GoabIconButton, {
|
|
12602
12950
|
icon: props.type,
|
|
@@ -12607,7 +12955,7 @@ const GoAContextMenuIcon = props => {
|
|
|
12607
12955
|
disabled: props.disabled
|
|
12608
12956
|
});
|
|
12609
12957
|
};
|
|
12610
|
-
const GoAContextMenu = styled.div(_t$
|
|
12958
|
+
const GoAContextMenu = styled.div(_t$2 || (_t$2 = _$1`
|
|
12611
12959
|
display: flex;
|
|
12612
12960
|
align-items: center;
|
|
12613
12961
|
background-color: #fff;
|
|
@@ -12986,6 +13334,9 @@ const GoABaseTableReviewRenderers$1 = [
|
|
|
12986
13334
|
}, {
|
|
12987
13335
|
tester: GoACalloutControlTester,
|
|
12988
13336
|
renderer: CalloutReviewControl
|
|
13337
|
+
}, {
|
|
13338
|
+
tester: ContactInformationTester,
|
|
13339
|
+
renderer: withJsonFormsControlProps(ContractInfoControlReview)
|
|
12989
13340
|
}];
|
|
12990
13341
|
[
|
|
12991
13342
|
// controls
|
|
@@ -13644,9 +13995,9 @@ const FormStepperPageReviewer = props => {
|
|
|
13644
13995
|
};
|
|
13645
13996
|
withAjvProps(withTranslateProps(withJsonFormsLayoutProps(FormStepperPageReviewer)));
|
|
13646
13997
|
|
|
13647
|
-
let _
|
|
13648
|
-
_t$
|
|
13649
|
-
const BackButtonWrapper = styled.span(_t$
|
|
13998
|
+
let _ = t => t,
|
|
13999
|
+
_t$1;
|
|
14000
|
+
const BackButtonWrapper = styled.span(_t$1 || (_t$1 = _`
|
|
13650
14001
|
.back-link::before {
|
|
13651
14002
|
content: '';
|
|
13652
14003
|
display: inline-block;
|
|
@@ -14038,7 +14389,7 @@ const DeleteFileModal = ({
|
|
|
14038
14389
|
};
|
|
14039
14390
|
|
|
14040
14391
|
let _2 = t => t,
|
|
14041
|
-
_t
|
|
14392
|
+
_t,
|
|
14042
14393
|
_t2,
|
|
14043
14394
|
_t3,
|
|
14044
14395
|
_t4;
|
|
@@ -14239,7 +14590,7 @@ const FileUploader = _ref => {
|
|
|
14239
14590
|
})
|
|
14240
14591
|
});
|
|
14241
14592
|
};
|
|
14242
|
-
const HelpText = styled.div(_t
|
|
14593
|
+
const HelpText = styled.div(_t || (_t = _2`
|
|
14243
14594
|
margin-top: var(--goa-space-xs);
|
|
14244
14595
|
font-size: var(--goa-font-size-3);
|
|
14245
14596
|
color: var(--goa-color-text-secondary);
|
|
@@ -17248,187 +17599,6 @@ const FullNameDobControl = props => {
|
|
|
17248
17599
|
});
|
|
17249
17600
|
};
|
|
17250
17601
|
|
|
17251
|
-
let _ = t => t,
|
|
17252
|
-
_t;
|
|
17253
|
-
const PhoneGrid = styled.div(_t || (_t = _`
|
|
17254
|
-
display: grid;
|
|
17255
|
-
grid-template-columns: 1fr 2fr;
|
|
17256
|
-
gap: 0.2rem;
|
|
17257
|
-
align-items: start;
|
|
17258
|
-
margin-bottom: var(--goa-space-l) !important;
|
|
17259
|
-
|
|
17260
|
-
goa-form-item {
|
|
17261
|
-
margin-right: 0 !important;
|
|
17262
|
-
}
|
|
17263
|
-
`));
|
|
17264
|
-
const PHONE_REGEX = /^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$/;
|
|
17265
|
-
const normalizePhoneData = value => ({
|
|
17266
|
-
type: (value == null ? void 0 : value.type) || '',
|
|
17267
|
-
number: (value == null ? void 0 : value.number) || ''
|
|
17268
|
-
});
|
|
17269
|
-
const PhoneNumberWithTypeControl = props => {
|
|
17270
|
-
const {
|
|
17271
|
-
data,
|
|
17272
|
-
path,
|
|
17273
|
-
handleChange,
|
|
17274
|
-
enabled,
|
|
17275
|
-
visible,
|
|
17276
|
-
required
|
|
17277
|
-
} = props;
|
|
17278
|
-
const [formData, setFormData] = useState(normalizePhoneData(data));
|
|
17279
|
-
const [error, setError] = useState(undefined);
|
|
17280
|
-
useEffect(() => {
|
|
17281
|
-
const nextData = normalizePhoneData(data);
|
|
17282
|
-
setFormData(currentData => currentData.type === nextData.type && currentData.number === nextData.number ? currentData : nextData);
|
|
17283
|
-
}, [data]);
|
|
17284
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17285
|
-
const updateFormData = updated => {
|
|
17286
|
-
setFormData(updated);
|
|
17287
|
-
if (updated.number && !PHONE_REGEX.test(updated.number)) {
|
|
17288
|
-
setError('Enter a valid phone number (e.g., (780) 123-4567)');
|
|
17289
|
-
} else {
|
|
17290
|
-
setError(undefined);
|
|
17291
|
-
}
|
|
17292
|
-
handleChange(path, updated);
|
|
17293
|
-
};
|
|
17294
|
-
return jsx(Visible, {
|
|
17295
|
-
visible: visible,
|
|
17296
|
-
children: jsxs(PhoneGrid, {
|
|
17297
|
-
children: [jsx(GoabFormItem, {
|
|
17298
|
-
label: "Phone type",
|
|
17299
|
-
requirement: required ? 'required' : undefined,
|
|
17300
|
-
children: jsxs(GoabDropdown, {
|
|
17301
|
-
name: "type",
|
|
17302
|
-
value: formData.type || '',
|
|
17303
|
-
disabled: !enabled,
|
|
17304
|
-
onChange: detail => updateFormData(Object.assign({}, formData, {
|
|
17305
|
-
type: detail.value
|
|
17306
|
-
})),
|
|
17307
|
-
children: [jsx(GoabDropdownItem, {
|
|
17308
|
-
value: "Mobile"
|
|
17309
|
-
}), jsx(GoabDropdownItem, {
|
|
17310
|
-
value: "Landline"
|
|
17311
|
-
})]
|
|
17312
|
-
})
|
|
17313
|
-
}), jsx(GoabFormItem, {
|
|
17314
|
-
label: "Phone number",
|
|
17315
|
-
error: error,
|
|
17316
|
-
requirement: required ? 'required' : undefined,
|
|
17317
|
-
children: jsx(GoabInput, {
|
|
17318
|
-
type: "tel",
|
|
17319
|
-
name: "number",
|
|
17320
|
-
placeholder: "(000) 000-0000",
|
|
17321
|
-
value: formData.number || '',
|
|
17322
|
-
disabled: !enabled,
|
|
17323
|
-
onChange: detail => updateFormData(Object.assign({}, formData, {
|
|
17324
|
-
number: detail.value
|
|
17325
|
-
}))
|
|
17326
|
-
})
|
|
17327
|
-
})]
|
|
17328
|
-
})
|
|
17329
|
-
});
|
|
17330
|
-
};
|
|
17331
|
-
const GoAPhoneNumberWithTypeControl = withJsonFormsControlProps(PhoneNumberWithTypeControl);
|
|
17332
|
-
|
|
17333
|
-
const PhoneNumberControl = props => {
|
|
17334
|
-
const {
|
|
17335
|
-
data,
|
|
17336
|
-
path,
|
|
17337
|
-
schema,
|
|
17338
|
-
handleChange,
|
|
17339
|
-
enabled,
|
|
17340
|
-
visible,
|
|
17341
|
-
required
|
|
17342
|
-
} = props;
|
|
17343
|
-
const [error, setError] = useState('');
|
|
17344
|
-
const handleInputChange = (name, value) => {
|
|
17345
|
-
if (value && !PHONE_REGEX.test(value)) {
|
|
17346
|
-
setError('Must be a valid 10-digit phone number in format (000) 000-0000');
|
|
17347
|
-
} else {
|
|
17348
|
-
setError('');
|
|
17349
|
-
}
|
|
17350
|
-
handleChange(path, value);
|
|
17351
|
-
};
|
|
17352
|
-
return jsx(Visible, {
|
|
17353
|
-
visible: visible,
|
|
17354
|
-
children: jsx(GoabFormItem, {
|
|
17355
|
-
label: (schema == null ? void 0 : schema.title) || 'Phone number',
|
|
17356
|
-
requirement: required ? 'required' : undefined,
|
|
17357
|
-
error: error,
|
|
17358
|
-
testId: `form-item-${path}`,
|
|
17359
|
-
children: jsx(GoabInput, {
|
|
17360
|
-
type: "tel",
|
|
17361
|
-
name: path,
|
|
17362
|
-
disabled: !enabled,
|
|
17363
|
-
"aria-label": "phone number input",
|
|
17364
|
-
testId: `phone-input-${path}`,
|
|
17365
|
-
value: data || '',
|
|
17366
|
-
onChange: detail => handleInputChange(detail.name, detail.value),
|
|
17367
|
-
placeholder: "(000) 000-0000",
|
|
17368
|
-
width: "100%"
|
|
17369
|
-
})
|
|
17370
|
-
})
|
|
17371
|
-
});
|
|
17372
|
-
};
|
|
17373
|
-
const GoAPhoneNumberControl = withJsonFormsControlProps(PhoneNumberControl);
|
|
17374
|
-
|
|
17375
|
-
const PhoneNumberTester = rankWith(4, and(isControl$1, schemaTypeIs('string'), formatIs('phone')));
|
|
17376
|
-
|
|
17377
|
-
const PhoneNumberReviewControl = props => {
|
|
17378
|
-
const {
|
|
17379
|
-
data,
|
|
17380
|
-
id,
|
|
17381
|
-
required
|
|
17382
|
-
} = props;
|
|
17383
|
-
return jsx(GoabFormItem, {
|
|
17384
|
-
label: "Phone number",
|
|
17385
|
-
error: required && !data ? 'Phone number is required' : '',
|
|
17386
|
-
requirement: required ? 'required' : undefined,
|
|
17387
|
-
children: jsx(TextWrapDiv, {
|
|
17388
|
-
children: jsx("div", {
|
|
17389
|
-
"data-testid": `phone-control-${id}`,
|
|
17390
|
-
children: data || ''
|
|
17391
|
-
})
|
|
17392
|
-
})
|
|
17393
|
-
});
|
|
17394
|
-
};
|
|
17395
|
-
const GoabInputBasePhoneNumberReviewControl = withJsonFormsAllOfProps(PhoneNumberReviewControl);
|
|
17396
|
-
|
|
17397
|
-
const isPhoneNumberWithType = createSchemaMatchTester(['number', 'type'], true);
|
|
17398
|
-
const PhoneNumberWithTypeTester = rankWith(4, isPhoneNumberWithType);
|
|
17399
|
-
|
|
17400
|
-
const PhoneNumberWithTypeReviewControl = props => {
|
|
17401
|
-
const {
|
|
17402
|
-
data,
|
|
17403
|
-
id,
|
|
17404
|
-
required
|
|
17405
|
-
} = props;
|
|
17406
|
-
return jsxs(PhoneGrid, {
|
|
17407
|
-
children: [jsx(GoabFormItem, {
|
|
17408
|
-
label: "Phone number",
|
|
17409
|
-
error: required && !(data != null && data.number) ? 'Phone number is required' : '',
|
|
17410
|
-
requirement: required ? 'required' : undefined,
|
|
17411
|
-
children: jsx(TextWrapDiv, {
|
|
17412
|
-
children: jsx("div", {
|
|
17413
|
-
"data-testid": `phone-number-control-${id}`,
|
|
17414
|
-
children: (data == null ? void 0 : data.number) || ''
|
|
17415
|
-
})
|
|
17416
|
-
})
|
|
17417
|
-
}), jsx(GoabFormItem, {
|
|
17418
|
-
label: "Phone type",
|
|
17419
|
-
error: required && !(data != null && data.type) ? 'Phone type is required' : '',
|
|
17420
|
-
requirement: required ? 'required' : undefined,
|
|
17421
|
-
children: jsx(TextWrapDiv, {
|
|
17422
|
-
children: jsx("div", {
|
|
17423
|
-
"data-testid": `phone-type-control-${id}`,
|
|
17424
|
-
children: (data == null ? void 0 : data.type) || ''
|
|
17425
|
-
})
|
|
17426
|
-
})
|
|
17427
|
-
})]
|
|
17428
|
-
});
|
|
17429
|
-
};
|
|
17430
|
-
const GoabInputBasePhoneNumberWithTypeReviewControl = withJsonFormsAllOfProps(PhoneNumberWithTypeReviewControl);
|
|
17431
|
-
|
|
17432
17602
|
/**
|
|
17433
17603
|
* Escape for use in RegExp
|
|
17434
17604
|
*/
|
|
@@ -18223,7 +18393,10 @@ const GoARenderers = [...GoABaseRenderers, {
|
|
|
18223
18393
|
}, {
|
|
18224
18394
|
tester: GoACalculationControlTester,
|
|
18225
18395
|
renderer: GoACalculationControl
|
|
18396
|
+
}, {
|
|
18397
|
+
tester: ContactInformationTester,
|
|
18398
|
+
renderer: withJsonFormsControlProps(ContractInfoControl)
|
|
18226
18399
|
}];
|
|
18227
18400
|
const GoACells = [...InputCells];
|
|
18228
18401
|
|
|
18229
|
-
export { ADD_DATALIST_ACTION, ADD_NO_ANONYMOUS_ACTION, ADD_REGISTER_DATA_ACTION, ADD_REGISTER_DATA_ERROR, ADD_USER_ACTION, AddressLookUpControl, AddressLookUpControlReview, AddressLookUpTester, AddressLoopUpControlTableReview, ArrayControl, ArrayControlBase, ArrayControlReview, BooleanComponent, BooleanControl, BooleanRadioComponent, BooleanRadioControl, CategorizationPagesRendererTester, CategorizationStepperRendererTester, CheckboxGroup, ContextProviderC, ContextProviderClass, ContextProviderFactory, EnumCheckboxControl, EnumRadioControl, EnumSelect, FileUploader, FileUploaderReview, FileUploaderTester, FormPageStepper, FormPagesView, FormStepper, FormStepperControl, FormStepperPagesControl, FormStepperReviewControl, FormStepperReviewer, FormStepperView, FullNameControl, FullNameControlReview, FullNameDobControl, FullNameDobReviewControl, FullNameDobTester, FullNameReviewControl, FullNameTester, GoAArrayControlRenderer, GoAArrayControlReviewRenderer, GoAArrayControlTester, GoABaseInputReviewComponent, GoABaseRenderers, GoABaseReviewRenderers, GoABaseTableReviewRenderers, GoABooleanControl, GoABooleanControlTester, GoABooleanRadioControl, GoABooleanRadioControlTester, GoACalculationControl, GoACalculationControlTester, GoACells, GoACheckoutGroupControlTester, GoADateControl, GoADateControlTester, GoADateInput, GoADateTimeControl, GoADateTimeControlTester, GoADateTimeInput, GoAEmailControl, GoAEmailControlTester, GoAEmailInput, GoAEnumCheckboxGroupControl, GoAEnumControl, GoAEnumControlTester, GoAEnumRadioGroupControl, GoAInputBaseControl, GoAInputBaseFullNameControlReview, GoAInputBaseFullNameDobControlReview, GoAInputBaseReviewControl, GoAInputBaseTableReview, GoAInputBaseTableReviewControl, GoAInputDateControl, GoAInputDateTimeControl, GoAInputEmailControl, GoAInputIntegerControl, GoAInputNumberControl, GoAInputText, GoAInputTextControl, GoAInputTimeControl, GoAIntegerControl, GoAIntegerControlTester, GoAListWithDetailsControlRenderer, GoAListWithDetailsTester, GoANumberControl, GoANumberControlTester, GoANumberInput, GoAPhoneNumberControl, GoAPhoneNumberWithTypeControl, GoAPrimitiveArrayRenderer, GoAPrimitiveArrayTester, GoARadioGroupControlTester, GoARenderers, GoAReviewRenderers, GoATextControl, GoATextControlTester, GoATimeControl, GoATimeControlTester, GoATimeInput, GoInputBaseReview, GoabInputBasePhoneNumberReviewControl, GoabInputBasePhoneNumberWithTypeReviewControl, GoabInputInteger, InnerGoAInputText, JsonFormContext, JsonFormRegisterProvider, JsonFormsRegisterContext, ListWithDetailsControl, MultiLineText, MultiLineTextControl, MultiLineTextControlInput, MultiLineTextControlTester, OPTION_DEFINITIONS, PHONE_REGEX, PhoneGrid, PhoneNumberControl, PhoneNumberReviewControl, PhoneNumberTester, PhoneNumberWithTypeControl, PhoneNumberWithTypeReviewControl, PhoneNumberWithTypeTester, PrimitiveArrayControl, RadioGroup, USER_FIELD_DEFINITIONS, autoPopulatePropertiesMonaco, autoPopulateValue, categoriesAreValid, createDefaultAjv, enumControl, errMalformedDate, fetchRegisterConfigFromOptions$1 as fetchRegisterConfigFromOptions, formatSin, getByJsonPointer, getCategoryScopes, hasDataInScopes, hasDataValue, isAddressLookup, isFullName, isFullNameDoB, isPhoneNumberWithType, predictiveOptionsMonaco, registerReducer, resolveRefs, tryResolveRefs, useRegisterUser };
|
|
18402
|
+
export { ADD_DATALIST_ACTION, ADD_NO_ANONYMOUS_ACTION, ADD_REGISTER_DATA_ACTION, ADD_REGISTER_DATA_ERROR, ADD_USER_ACTION, AddressLookUpControl, AddressLookUpControlReview, AddressLookUpTester, AddressLoopUpControlTableReview, ArrayControl, ArrayControlBase, ArrayControlReview, BooleanComponent, BooleanControl, BooleanRadioComponent, BooleanRadioControl, CategorizationPagesRendererTester, CategorizationStepperRendererTester, CheckboxGroup, ContactInformationTester, ContextProviderC, ContextProviderClass, ContextProviderFactory, ContractInfoControl, ContractInfoControlReview, EnumCheckboxControl, EnumRadioControl, EnumSelect, FileUploader, FileUploaderReview, FileUploaderTester, FormPageStepper, FormPagesView, FormStepper, FormStepperControl, FormStepperPagesControl, FormStepperReviewControl, FormStepperReviewer, FormStepperView, FullNameControl, FullNameControlReview, FullNameDobControl, FullNameDobReviewControl, FullNameDobTester, FullNameReviewControl, FullNameTester, GoAArrayControlRenderer, GoAArrayControlReviewRenderer, GoAArrayControlTester, GoABaseInputReviewComponent, GoABaseRenderers, GoABaseReviewRenderers, GoABaseTableReviewRenderers, GoABooleanControl, GoABooleanControlTester, GoABooleanRadioControl, GoABooleanRadioControlTester, GoACalculationControl, GoACalculationControlTester, GoACells, GoACheckoutGroupControlTester, GoAContractInfoControlReview, GoADateControl, GoADateControlTester, GoADateInput, GoADateTimeControl, GoADateTimeControlTester, GoADateTimeInput, GoAEmailControl, GoAEmailControlTester, GoAEmailInput, GoAEnumCheckboxGroupControl, GoAEnumControl, GoAEnumControlTester, GoAEnumRadioGroupControl, GoAInputBaseControl, GoAInputBaseFullNameControlReview, GoAInputBaseFullNameDobControlReview, GoAInputBaseReviewControl, GoAInputBaseTableReview, GoAInputBaseTableReviewControl, GoAInputDateControl, GoAInputDateTimeControl, GoAInputEmailControl, GoAInputIntegerControl, GoAInputNumberControl, GoAInputText, GoAInputTextControl, GoAInputTimeControl, GoAIntegerControl, GoAIntegerControlTester, GoAListWithDetailsControlRenderer, GoAListWithDetailsTester, GoANumberControl, GoANumberControlTester, GoANumberInput, GoAPhoneNumberControl, GoAPhoneNumberWithTypeControl, GoAPrimitiveArrayRenderer, GoAPrimitiveArrayTester, GoARadioGroupControlTester, GoARenderers, GoAReviewRenderers, GoATextControl, GoATextControlTester, GoATimeControl, GoATimeControlTester, GoATimeInput, GoInputBaseReview, GoabInputBasePhoneNumberReviewControl, GoabInputBasePhoneNumberWithTypeReviewControl, GoabInputInteger, InnerGoAInputText, JsonFormContext, JsonFormRegisterProvider, JsonFormsRegisterContext, ListWithDetailsControl, MultiLineText, MultiLineTextControl, MultiLineTextControlInput, MultiLineTextControlTester, OPTION_DEFINITIONS, PHONE_REGEX, PhoneGrid, PhoneNumberControl, PhoneNumberReviewControl, PhoneNumberTester, PhoneNumberWithTypeControl, PhoneNumberWithTypeReviewControl, PhoneNumberWithTypeTester, PrimitiveArrayControl, RadioGroup, USER_FIELD_DEFINITIONS, autoPopulatePropertiesMonaco, autoPopulateValue, categoriesAreValid, createDefaultAjv, enumControl, errMalformedDate, fetchRegisterConfigFromOptions$1 as fetchRegisterConfigFromOptions, formatSin, getByJsonPointer, getCategoryScopes, hasDataInScopes, hasDataValue, isAddressLookup, isContactInformation, isFullName, isFullNameDoB, isPhoneNumberWithType, predictiveOptionsMonaco, registerReducer, resolveRefs, tryResolveRefs, useRegisterUser };
|