@refraction-ui/react 0.12.2 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{applicationinsights-web-62HUCH3W.js → applicationinsights-web-H7OBLIVJ.js} +199 -68
- package/dist/applicationinsights-web-H7OBLIVJ.js.map +1 -0
- package/dist/index.cjs +900 -83
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +692 -17
- package/dist/index.js.map +1 -1
- package/dist/internal/button/index.d.cts +12 -3
- package/dist/internal/button/index.d.ts +12 -3
- package/dist/internal/empty-state/index.d.cts +39 -0
- package/dist/internal/empty-state/index.d.ts +39 -0
- package/dist/internal/input/index.d.cts +19 -1
- package/dist/internal/input/index.d.ts +19 -1
- package/dist/internal/react-empty-state/index.d.cts +36 -0
- package/dist/internal/react-empty-state/index.d.ts +36 -0
- package/dist/internal/react-input/index.d.cts +16 -0
- package/dist/internal/react-input/index.d.ts +16 -0
- package/dist/internal/react-password-input/index.d.cts +26 -0
- package/dist/internal/react-password-input/index.d.ts +26 -0
- package/dist/internal/react-segmented-control/index.d.cts +38 -0
- package/dist/internal/react-segmented-control/index.d.ts +38 -0
- package/dist/internal/react-separator/index.d.cts +29 -0
- package/dist/internal/react-separator/index.d.ts +29 -0
- package/dist/internal/react-social-auth-button/index.d.cts +31 -0
- package/dist/internal/react-social-auth-button/index.d.ts +31 -0
- package/dist/internal/react-status-indicator/index.d.cts +5 -18
- package/dist/internal/react-status-indicator/index.d.ts +5 -18
- package/dist/internal/react-theme/index.d.cts +19 -1
- package/dist/internal/react-theme/index.d.ts +19 -1
- package/dist/internal/segmented-control/index.d.cts +56 -0
- package/dist/internal/segmented-control/index.d.ts +56 -0
- package/dist/internal/separator/index.d.cts +55 -0
- package/dist/internal/separator/index.d.ts +55 -0
- package/dist/internal/social-auth-button/index.d.cts +47 -0
- package/dist/internal/social-auth-button/index.d.ts +47 -0
- package/dist/internal/theme/index.d.cts +35 -1
- package/dist/internal/theme/index.d.ts +35 -1
- package/dist/theme.cjs +27 -4
- package/dist/theme.cjs.map +1 -1
- package/dist/theme.js +27 -4
- package/dist/theme.js.map +1 -1
- package/package.json +25 -20
- package/dist/applicationinsights-web-62HUCH3W.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/@nevware21+ts-utils@0.
|
|
1
|
+
// ../../node_modules/.pnpm/@nevware21+ts-utils@0.14.0/node_modules/@nevware21/ts-utils/dist/es5/mod/ts-utils.js
|
|
2
2
|
// @__NO_SIDE_EFFECTS__
|
|
3
3
|
function _pureAssign(func1, func2) {
|
|
4
4
|
return func1 || func2;
|
|
5
5
|
}
|
|
6
6
|
// @__NO_SIDE_EFFECTS__
|
|
7
7
|
function _pureRef(value, name) {
|
|
8
|
-
return value[name];
|
|
8
|
+
return value !== null && value !== void 0 ? value[name] : void 0;
|
|
9
9
|
}
|
|
10
10
|
var UNDEF_VALUE = void 0;
|
|
11
11
|
var NULL_VALUE = null;
|
|
@@ -31,6 +31,18 @@ var MathCls = /* @__PURE__ */ _pureAssign(Math);
|
|
|
31
31
|
var ArrCls = /* @__PURE__ */ _pureAssign(Array);
|
|
32
32
|
var ArrProto = /* @__PURE__ */ _pureRef(ArrCls, PROTOTYPE);
|
|
33
33
|
var ArrSlice = /* @__PURE__ */ _pureRef(ArrProto, "slice");
|
|
34
|
+
var NumberCls = /* @__PURE__ */ _pureAssign(Number);
|
|
35
|
+
var NumberProto = /* @__PURE__ */ _pureRef(NumberCls, PROTOTYPE);
|
|
36
|
+
var FuncCls = /* @__PURE__ */ _pureAssign(Function);
|
|
37
|
+
var FuncProto = /* @__PURE__ */ _pureRef(FuncCls, PROTOTYPE);
|
|
38
|
+
var DateCls = /* @__PURE__ */ _pureAssign(Date);
|
|
39
|
+
var DateProto = /* @__PURE__ */ _pureRef(DateCls, PROTOTYPE);
|
|
40
|
+
var RegExpCls = /* @__PURE__ */ _pureAssign(RegExp);
|
|
41
|
+
var RegExpProto = /* @__PURE__ */ _pureRef(RegExpCls, PROTOTYPE);
|
|
42
|
+
var BooleanCls = /* @__PURE__ */ _pureAssign(Boolean);
|
|
43
|
+
var BooleanProto = /* @__PURE__ */ _pureRef(BooleanCls, PROTOTYPE);
|
|
44
|
+
var ErrorCls = /* @__PURE__ */ _pureAssign(Error);
|
|
45
|
+
var ErrorProto = /* @__PURE__ */ _pureRef(ErrorCls, PROTOTYPE);
|
|
34
46
|
var POLYFILL_TAG = "_polyfill";
|
|
35
47
|
var POLYFILL_TYPE_NAME = "__nw21$polytype__";
|
|
36
48
|
function safe(func, argArray) {
|
|
@@ -167,11 +179,15 @@ function polyObjHasOwn(obj, prop) {
|
|
|
167
179
|
_throwIfNullOrUndefined(obj);
|
|
168
180
|
return /* @__PURE__ */ objHasOwnProperty(obj, prop) || !!_objGetOwnPropertyDescriptor$2(obj, prop);
|
|
169
181
|
}
|
|
182
|
+
// @__NO_SIDE_EFFECTS__
|
|
183
|
+
function isUnsafePropKey(key) {
|
|
184
|
+
return key === __PROTO__ || key === CONSTRUCTOR || key === PROTOTYPE;
|
|
185
|
+
}
|
|
170
186
|
function objForEachKey(theObject, callbackfn, thisArg) {
|
|
171
187
|
if (theObject && (/* @__PURE__ */ isObject(theObject) || isFunction(theObject))) {
|
|
172
188
|
for (var prop in theObject) {
|
|
173
189
|
if (objHasOwn(theObject, prop)) {
|
|
174
|
-
if (callbackfn[CALL](theObject, prop, theObject[prop]) === -1) {
|
|
190
|
+
if (callbackfn[CALL](/* @__PURE__ */ isStrictNullOrUndefined(thisArg) ? theObject : thisArg, prop, theObject[prop]) === -1) {
|
|
175
191
|
break;
|
|
176
192
|
}
|
|
177
193
|
}
|
|
@@ -183,7 +199,7 @@ function arrForEach(theArray, callbackfn, thisArg) {
|
|
|
183
199
|
var len = theArray[LENGTH] >>> 0;
|
|
184
200
|
for (var idx = 0; idx < len; idx++) {
|
|
185
201
|
if (idx in theArray) {
|
|
186
|
-
if (callbackfn[CALL](theArray, theArray[idx], idx, theArray) === -1) {
|
|
202
|
+
if (callbackfn[CALL](/* @__PURE__ */ isStrictNullOrUndefined(thisArg) ? theArray : thisArg, theArray[idx], idx, theArray) === -1) {
|
|
187
203
|
break;
|
|
188
204
|
}
|
|
189
205
|
}
|
|
@@ -204,6 +220,18 @@ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
|
|
|
204
220
|
};
|
|
205
221
|
}
|
|
206
222
|
// @__NO_SIDE_EFFECTS__
|
|
223
|
+
function _unwrapFunctionNoInstWithPoly(funcName, clsProto, polyFunc) {
|
|
224
|
+
var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
|
|
225
|
+
return function(thisArg) {
|
|
226
|
+
var theFunc = clsFn;
|
|
227
|
+
if (theFunc || polyFunc) {
|
|
228
|
+
var theArgs = arguments;
|
|
229
|
+
return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
|
|
230
|
+
}
|
|
231
|
+
throwTypeError('"' + asString(funcName) + '" not defined for ' + /* @__PURE__ */ dumpObj(thisArg));
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
// @__NO_SIDE_EFFECTS__
|
|
207
235
|
function _unwrapProp(propName) {
|
|
208
236
|
return function(thisArg) {
|
|
209
237
|
return thisArg[propName];
|
|
@@ -215,18 +243,18 @@ function _objPropertyIsEnum(obj, propKey) {
|
|
|
215
243
|
if (!/* @__PURE__ */ isStrictNullOrUndefined(obj) && fn) {
|
|
216
244
|
desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
|
|
217
245
|
}
|
|
218
|
-
if (!desc) {
|
|
246
|
+
if (!desc && !/* @__PURE__ */ isStrictNullOrUndefined(obj)) {
|
|
219
247
|
desc = safe(function() {
|
|
220
248
|
for (var key in obj) {
|
|
221
|
-
if (key
|
|
222
|
-
return { enumerable:
|
|
249
|
+
if (key == propKey) {
|
|
250
|
+
return { enumerable: /* @__PURE__ */ objHasOwnProperty(obj, key) };
|
|
223
251
|
}
|
|
224
252
|
}
|
|
225
253
|
}).v;
|
|
226
254
|
}
|
|
227
255
|
return desc && desc.enumerable || false;
|
|
228
256
|
}
|
|
229
|
-
var
|
|
257
|
+
var _objPropertyIsEnumerable = /* @__PURE__ */ _unwrapFunctionNoInstWithPoly("propertyIsEnumerable", ObjProto, _objPropertyIsEnum);
|
|
230
258
|
var _objGetOwnPropertyDescriptor$1 = /* @__PURE__ */ _pureAssign(/* @__PURE__ */ _pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR), _returnNothing);
|
|
231
259
|
var _objGetOwnPropertySymbols = /* @__PURE__ */ _pureAssign(/* @__PURE__ */ _pureRef(ObjClass, GET_OWN_PROPERTY_SYMBOLS), _returnEmptyArray);
|
|
232
260
|
var propMap = {
|
|
@@ -269,7 +297,7 @@ function objDefineProps(target, propDescMap) {
|
|
|
269
297
|
props[key] = /* @__PURE__ */ _createProp(value);
|
|
270
298
|
});
|
|
271
299
|
arrForEach(_objGetOwnPropertySymbols(propDescMap), function(sym) {
|
|
272
|
-
if (
|
|
300
|
+
if (_objPropertyIsEnumerable(propDescMap, sym)) {
|
|
273
301
|
props[sym] = /* @__PURE__ */ _createProp(propDescMap[sym]);
|
|
274
302
|
}
|
|
275
303
|
});
|
|
@@ -726,7 +754,7 @@ function iterForOf(iter, callbackfn, thisArg) {
|
|
|
726
754
|
try {
|
|
727
755
|
var count = 0;
|
|
728
756
|
while (!(iterResult = iter.next()).done) {
|
|
729
|
-
if (callbackfn[CALL](thisArg
|
|
757
|
+
if (callbackfn[CALL](/* @__PURE__ */ isStrictNullOrUndefined(thisArg) ? iter : thisArg, iterResult.value, count, iter) === -1) {
|
|
730
758
|
break;
|
|
731
759
|
}
|
|
732
760
|
count++;
|
|
@@ -775,6 +803,51 @@ function polyArrIncludes(theArray, searchElement, fromIndex) {
|
|
|
775
803
|
return arrIndexOf(theArray, searchElement, fromIndex) !== -1;
|
|
776
804
|
}
|
|
777
805
|
var arrIncludes = /* @__PURE__ */ _unwrapFunctionWithPoly("includes", ArrProto, polyArrIncludes);
|
|
806
|
+
var getLength = /* @__PURE__ */ _unwrapProp(LENGTH);
|
|
807
|
+
var mathFloor = /* @__PURE__ */ _pureRef(MathCls, "floor");
|
|
808
|
+
// @__NO_SIDE_EFFECTS__
|
|
809
|
+
function createIterator(ctx) {
|
|
810
|
+
var isDone = false;
|
|
811
|
+
function _value() {
|
|
812
|
+
return ctx.v;
|
|
813
|
+
}
|
|
814
|
+
function _next() {
|
|
815
|
+
if (!isDone) {
|
|
816
|
+
isDone = ctx.n ? ctx.n(arguments) : true;
|
|
817
|
+
}
|
|
818
|
+
var result = {
|
|
819
|
+
done: isDone
|
|
820
|
+
};
|
|
821
|
+
if (!isDone) {
|
|
822
|
+
objDefine(result, "value", { g: _value });
|
|
823
|
+
}
|
|
824
|
+
return result;
|
|
825
|
+
}
|
|
826
|
+
function _return(value) {
|
|
827
|
+
isDone = true;
|
|
828
|
+
return {
|
|
829
|
+
done: true,
|
|
830
|
+
value: ctx.r && ctx.r(value)
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
function _throw(e) {
|
|
834
|
+
isDone = true;
|
|
835
|
+
return {
|
|
836
|
+
done: true,
|
|
837
|
+
value: ctx.t && ctx.t(e)
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
var theIterator = {
|
|
841
|
+
next: _next
|
|
842
|
+
};
|
|
843
|
+
if (ctx.r) {
|
|
844
|
+
theIterator.return = _return;
|
|
845
|
+
}
|
|
846
|
+
if (ctx.t) {
|
|
847
|
+
theIterator.throw = _throw;
|
|
848
|
+
}
|
|
849
|
+
return theIterator;
|
|
850
|
+
}
|
|
778
851
|
var arrReduce = /* @__PURE__ */ _unwrapFunction("reduce", ArrProto);
|
|
779
852
|
var _isProtoArray;
|
|
780
853
|
var objSetPrototypeOf = /* @__PURE__ */ _pureAssign(/* @__PURE__ */ _pureRef(ObjClass, "setPrototypeOf"), _polyObjSetPrototypeOf);
|
|
@@ -832,12 +905,14 @@ function throwUnsupported(message) {
|
|
|
832
905
|
}
|
|
833
906
|
throw new _unsupportedError(message);
|
|
834
907
|
}
|
|
908
|
+
var strReplace = /* @__PURE__ */ _unwrapFunction("replace", StrProto);
|
|
835
909
|
// @__NO_SIDE_EFFECTS__
|
|
836
910
|
function _createTrimFn(exp) {
|
|
837
911
|
return function _doTrim(value) {
|
|
838
912
|
_throwIfNullOrUndefined(value);
|
|
839
|
-
|
|
840
|
-
|
|
913
|
+
value = asString(value);
|
|
914
|
+
if (value) {
|
|
915
|
+
value = strReplace(value, exp, EMPTY);
|
|
841
916
|
}
|
|
842
917
|
return value;
|
|
843
918
|
};
|
|
@@ -848,9 +923,8 @@ var strUpper = /* @__PURE__ */ _unwrapFunction("toUpperCase", StrProto);
|
|
|
848
923
|
var strLower = /* @__PURE__ */ _unwrapFunction("toLowerCase", StrProto);
|
|
849
924
|
// @__NO_SIDE_EFFECTS__
|
|
850
925
|
function strLetterCase(value) {
|
|
851
|
-
return asString(value)
|
|
926
|
+
return strReplace(asString(value), /(_|\b)\w/g, strUpper);
|
|
852
927
|
}
|
|
853
|
-
var mathFloor = /* @__PURE__ */ _pureRef(MathCls, "floor");
|
|
854
928
|
// @__NO_SIDE_EFFECTS__
|
|
855
929
|
function safeGetDeferred(cb, defValue, argArray) {
|
|
856
930
|
return /* @__PURE__ */ getDeferred(function() {
|
|
@@ -858,6 +932,33 @@ function safeGetDeferred(cb, defValue, argArray) {
|
|
|
858
932
|
return result.e ? defValue : result.v;
|
|
859
933
|
});
|
|
860
934
|
}
|
|
935
|
+
var objGetOwnPropertyDescriptor = /* @__PURE__ */ _pureAssign(/* @__PURE__ */ _pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR), _returnNothing);
|
|
936
|
+
var objGetOwnPropertySymbols = /* @__PURE__ */ _pureAssign(/* @__PURE__ */ _pureRef(ObjClass, GET_OWN_PROPERTY_SYMBOLS), _returnEmptyArray);
|
|
937
|
+
function forEachOwnKey(theObject, callbackfn, thisArg) {
|
|
938
|
+
if (theObject !== NULL_VALUE && theObject !== UNDEF_VALUE) {
|
|
939
|
+
for (var prop in theObject) {
|
|
940
|
+
if (objHasOwn(theObject, prop)) {
|
|
941
|
+
if (callbackfn[CALL](/* @__PURE__ */ isStrictNullOrUndefined(thisArg) ? theObject : thisArg, prop, theObject[prop]) === -1) {
|
|
942
|
+
return;
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
arrForEach(objGetOwnPropertySymbols(theObject), function(key) {
|
|
947
|
+
if (_objPropertyIsEnumerable(theObject, key)) {
|
|
948
|
+
if (callbackfn[CALL](/* @__PURE__ */ isStrictNullOrUndefined(thisArg) ? theObject : thisArg, key, theObject[key]) === -1) {
|
|
949
|
+
return -1;
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
function forEachOwnKeySafe(theObject, callbackfn, thisArg) {
|
|
956
|
+
forEachOwnKey(theObject, function(key, value) {
|
|
957
|
+
if (!/* @__PURE__ */ isUnsafePropKey(key)) {
|
|
958
|
+
return callbackfn[CALL](/* @__PURE__ */ isStrictNullOrUndefined(thisArg) ? theObject : thisArg, key, value);
|
|
959
|
+
}
|
|
960
|
+
}, thisArg);
|
|
961
|
+
}
|
|
861
962
|
var _fnToString;
|
|
862
963
|
var _objCtrFnString;
|
|
863
964
|
var _gblWindow;
|
|
@@ -889,6 +990,63 @@ function isPlainObject(value) {
|
|
|
889
990
|
}
|
|
890
991
|
return result;
|
|
891
992
|
}
|
|
993
|
+
var _unsafeTargets;
|
|
994
|
+
// @__NO_SIDE_EFFECTS__
|
|
995
|
+
function _addTarget(targets, target) {
|
|
996
|
+
if (target) {
|
|
997
|
+
targets.push(target);
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
// @__NO_SIDE_EFFECTS__
|
|
1001
|
+
function _addTargetProto(targets, ctor) {
|
|
1002
|
+
if (ctor) {
|
|
1003
|
+
/* @__PURE__ */ _addTarget(targets, ctor[PROTOTYPE]);
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
// @__NO_SIDE_EFFECTS__
|
|
1007
|
+
function _getUnsafeTargets() {
|
|
1008
|
+
var targets = [
|
|
1009
|
+
ObjProto,
|
|
1010
|
+
StrProto,
|
|
1011
|
+
ArrProto,
|
|
1012
|
+
NumberProto,
|
|
1013
|
+
FuncProto,
|
|
1014
|
+
DateProto,
|
|
1015
|
+
RegExpProto,
|
|
1016
|
+
BooleanProto,
|
|
1017
|
+
ErrorProto
|
|
1018
|
+
];
|
|
1019
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Map"]).v);
|
|
1020
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Set"]).v);
|
|
1021
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["WeakMap"]).v);
|
|
1022
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["WeakSet"]).v);
|
|
1023
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Promise"]).v);
|
|
1024
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Symbol"]).v);
|
|
1025
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["ArrayBuffer"]).v);
|
|
1026
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["SharedArrayBuffer"]).v);
|
|
1027
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["DataView"]).v);
|
|
1028
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Int8Array"]).v);
|
|
1029
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Uint8Array"]).v);
|
|
1030
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Uint8ClampedArray"]).v);
|
|
1031
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Int16Array"]).v);
|
|
1032
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Uint16Array"]).v);
|
|
1033
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Int32Array"]).v);
|
|
1034
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Uint32Array"]).v);
|
|
1035
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Float32Array"]).v);
|
|
1036
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Float64Array"]).v);
|
|
1037
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["BigInt64Array"]).v);
|
|
1038
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["BigUint64Array"]).v);
|
|
1039
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["WeakRef"]).v);
|
|
1040
|
+
/* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["FinalizationRegistry"]).v);
|
|
1041
|
+
return targets;
|
|
1042
|
+
}
|
|
1043
|
+
// @__NO_SIDE_EFFECTS__
|
|
1044
|
+
function isUnsafeTarget(target) {
|
|
1045
|
+
if (!_unsafeTargets) {
|
|
1046
|
+
_unsafeTargets = /* @__PURE__ */ createCachedValue(/* @__PURE__ */ _getUnsafeTargets());
|
|
1047
|
+
}
|
|
1048
|
+
return arrIndexOf(_unsafeTargets.v, target) >= 0;
|
|
1049
|
+
}
|
|
892
1050
|
// @__NO_SIDE_EFFECTS__
|
|
893
1051
|
function _defaultDeepCopyHandler(details) {
|
|
894
1052
|
details.value && plainObjDeepCopyHandler(details);
|
|
@@ -972,10 +1130,10 @@ function _deepCopy(visitMap, value, ctx, key) {
|
|
|
972
1130
|
return value;
|
|
973
1131
|
}
|
|
974
1132
|
function _copyProps(visitMap, target, source, ctx) {
|
|
975
|
-
if (!/* @__PURE__ */
|
|
976
|
-
|
|
977
|
-
target[key] = _deepCopy(visitMap,
|
|
978
|
-
}
|
|
1133
|
+
if (!/* @__PURE__ */ isUnsafeTarget(source)) {
|
|
1134
|
+
forEachOwnKeySafe(source, function(key, value) {
|
|
1135
|
+
target[key] = _deepCopy(visitMap, value, ctx, key);
|
|
1136
|
+
});
|
|
979
1137
|
}
|
|
980
1138
|
return target;
|
|
981
1139
|
}
|
|
@@ -1045,16 +1203,33 @@ function setValueByKey(target, path, value) {
|
|
|
1045
1203
|
if (target && path) {
|
|
1046
1204
|
var parts = strSplit(path, ".");
|
|
1047
1205
|
var lastKey = parts.pop();
|
|
1206
|
+
var isValidPath_1 = true;
|
|
1207
|
+
var addedTarget_1;
|
|
1208
|
+
var addedKey_1;
|
|
1048
1209
|
arrForEach(parts, function(key) {
|
|
1210
|
+
if (/* @__PURE__ */ isUnsafeTarget(target) || /* @__PURE__ */ isUnsafePropKey(key)) {
|
|
1211
|
+
isValidPath_1 = false;
|
|
1212
|
+
return -1;
|
|
1213
|
+
}
|
|
1049
1214
|
if (/* @__PURE__ */ isNullOrUndefined(target[key])) {
|
|
1050
1215
|
target[key] = {};
|
|
1216
|
+
if (!addedTarget_1) {
|
|
1217
|
+
addedTarget_1 = target;
|
|
1218
|
+
addedKey_1 = key;
|
|
1219
|
+
}
|
|
1051
1220
|
}
|
|
1052
1221
|
target = target[key];
|
|
1053
1222
|
});
|
|
1054
|
-
target
|
|
1223
|
+
if (isValidPath_1 && !/* @__PURE__ */ isStrictNullOrUndefined(lastKey) && !/* @__PURE__ */ isUnsafeTarget(target) && !/* @__PURE__ */ isUnsafePropKey(lastKey)) {
|
|
1224
|
+
target[lastKey] = value;
|
|
1225
|
+
} else if (addedTarget_1) {
|
|
1226
|
+
try {
|
|
1227
|
+
delete addedTarget_1[addedKey_1];
|
|
1228
|
+
} catch (e) {
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1055
1231
|
}
|
|
1056
1232
|
}
|
|
1057
|
-
var getLength = /* @__PURE__ */ _unwrapProp(LENGTH);
|
|
1058
1233
|
var _perf;
|
|
1059
1234
|
// @__NO_SIDE_EFFECTS__
|
|
1060
1235
|
function getPerformance() {
|
|
@@ -1072,52 +1247,9 @@ function perfNow() {
|
|
|
1072
1247
|
}
|
|
1073
1248
|
return /* @__PURE__ */ utcNow();
|
|
1074
1249
|
}
|
|
1075
|
-
// @__NO_SIDE_EFFECTS__
|
|
1076
|
-
function createIterator(ctx) {
|
|
1077
|
-
var isDone = false;
|
|
1078
|
-
function _value() {
|
|
1079
|
-
return ctx.v;
|
|
1080
|
-
}
|
|
1081
|
-
function _next() {
|
|
1082
|
-
if (!isDone) {
|
|
1083
|
-
isDone = ctx.n ? ctx.n(arguments) : true;
|
|
1084
|
-
}
|
|
1085
|
-
var result = {
|
|
1086
|
-
done: isDone
|
|
1087
|
-
};
|
|
1088
|
-
if (!isDone) {
|
|
1089
|
-
objDefine(result, "value", { g: _value });
|
|
1090
|
-
}
|
|
1091
|
-
return result;
|
|
1092
|
-
}
|
|
1093
|
-
function _return(value) {
|
|
1094
|
-
isDone = true;
|
|
1095
|
-
return {
|
|
1096
|
-
done: true,
|
|
1097
|
-
value: ctx.r && ctx.r(value)
|
|
1098
|
-
};
|
|
1099
|
-
}
|
|
1100
|
-
function _throw(e) {
|
|
1101
|
-
isDone = true;
|
|
1102
|
-
return {
|
|
1103
|
-
done: true,
|
|
1104
|
-
value: ctx.t && ctx.t(e)
|
|
1105
|
-
};
|
|
1106
|
-
}
|
|
1107
|
-
var theIterator = {
|
|
1108
|
-
next: _next
|
|
1109
|
-
};
|
|
1110
|
-
if (ctx.r) {
|
|
1111
|
-
theIterator.return = _return;
|
|
1112
|
-
}
|
|
1113
|
-
if (ctx.t) {
|
|
1114
|
-
theIterator.throw = _throw;
|
|
1115
|
-
}
|
|
1116
|
-
return theIterator;
|
|
1117
|
-
}
|
|
1118
1250
|
var mathAbs = /* @__PURE__ */ _pureRef(MathCls, "abs");
|
|
1119
1251
|
var mathRound = /* @__PURE__ */ _pureRef(MathCls, "round");
|
|
1120
|
-
var
|
|
1252
|
+
var strIndexOf = /* @__PURE__ */ _unwrapFunction("indexOf", StrProto);
|
|
1121
1253
|
var strEndsWith = /* @__PURE__ */ _unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith);
|
|
1122
1254
|
// @__NO_SIDE_EFFECTS__
|
|
1123
1255
|
function polyStrEndsWith(value, searchString, length) {
|
|
@@ -1126,7 +1258,6 @@ function polyStrEndsWith(value, searchString, length) {
|
|
|
1126
1258
|
var end = !/* @__PURE__ */ isUndefined(length) && length < value[LENGTH] ? length : value[LENGTH];
|
|
1127
1259
|
return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
|
|
1128
1260
|
}
|
|
1129
|
-
var strIndexOf = /* @__PURE__ */ _unwrapFunction("indexOf", StrProto);
|
|
1130
1261
|
var strStartsWith = /* @__PURE__ */ _unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith);
|
|
1131
1262
|
// @__NO_SIDE_EFFECTS__
|
|
1132
1263
|
function polyStrStartsWith(value, searchString, position) {
|
|
@@ -23246,7 +23377,7 @@ var ApplicationInsightsContainer = (
|
|
|
23246
23377
|
/*! Bundled license information:
|
|
23247
23378
|
|
|
23248
23379
|
@nevware21/ts-utils/dist/es5/mod/ts-utils.js:
|
|
23249
|
-
(*! https://github.com/nevware21/ts-utils v0.
|
|
23380
|
+
(*! https://github.com/nevware21/ts-utils v0.14.0 *)
|
|
23250
23381
|
|
|
23251
23382
|
@nevware21/ts-async/dist/es5/mod/ts-async.js:
|
|
23252
23383
|
(*!
|
|
@@ -23258,5 +23389,5 @@ var ApplicationInsightsContainer = (
|
|
|
23258
23389
|
*/
|
|
23259
23390
|
|
|
23260
23391
|
export { AppInsightsCore, AnalyticsPlugin as ApplicationAnalytics, AppInsightsSku as ApplicationInsights, ApplicationInsightsContainer, BaseTelemetryPlugin, CfgSyncPlugin, AjaxMonitor as DependenciesPlugin, DistributedTracingModes, Event2 as Event, EventPersistence, Exception, LoggingSeverity, Metric, NotificationManager, OTelSpanKind, PageView, PageViewPerformance, PerfEvent, PerfManager, PropertiesPlugin_default as PropertiesPlugin, Sender, SeverityLevel, Trace, doPerf };
|
|
23261
|
-
//# sourceMappingURL=applicationinsights-web-
|
|
23262
|
-
//# sourceMappingURL=applicationinsights-web-
|
|
23392
|
+
//# sourceMappingURL=applicationinsights-web-H7OBLIVJ.js.map
|
|
23393
|
+
//# sourceMappingURL=applicationinsights-web-H7OBLIVJ.js.map
|