@solvimon/solvimon-web 0.1.0-alpha.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/README.md +80 -0
- package/dist/BillingInformation.entry.ce-1xVdsWlL.mjs +99 -0
- package/dist/BillingInformation.entry.ce-DkrfEvK_.js +1 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-B42EzZ97.mjs +56 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-VMlVPI4O.js +1 -0
- package/dist/BillingInformationForm.entry.ce-MPMirEsk.js +1 -0
- package/dist/BillingInformationForm.entry.ce-xfT0Jqps.mjs +579 -0
- package/dist/Checkout.entry.ce-Bif6vR1K.mjs +5185 -0
- package/dist/Checkout.entry.ce-CkQnLAn4.js +1 -0
- package/dist/ContentWithAsideLayout-BC-C5Gjt.mjs +42 -0
- package/dist/ContentWithAsideLayout-CIVSoqFr.js +1 -0
- package/dist/CustomerOverview.entry.ce-C__omsVl.js +1 -0
- package/dist/CustomerOverview.entry.ce-Ce_Yk8-i.mjs +231 -0
- package/dist/CustomerPaymentMethods.entry.ce-CZwy8Aqq.mjs +135 -0
- package/dist/CustomerPaymentMethods.entry.ce-DnjlRHPA.js +1 -0
- package/dist/Invoice.entry.ce-CdJ9TPZe.mjs +583 -0
- package/dist/Invoice.entry.ce-Cgr43ome.js +1 -0
- package/dist/InvoiceDetails.entry.ce-Cnpz8CLJ.mjs +130 -0
- package/dist/InvoiceDetails.entry.ce-jHDyWra2.js +1 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-5yBnSRap.mjs +85 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-t6E9_dWJ.js +1 -0
- package/dist/InvoicesList.entry.ce-38iOW5qh.js +1 -0
- package/dist/InvoicesList.entry.ce-BBaHEtAD.mjs +105 -0
- package/dist/PaymentHistory.entry.ce-DDeHMhK_.js +1 -0
- package/dist/PaymentHistory.entry.ce-Dw2NiP4l.mjs +134 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-8UxAr2hU.js +1 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CknZKCmY.mjs +90 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BCdv5DbH.mjs +6568 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-xJ8kJbRo.js +1 -0
- package/dist/PaymentMethodForm.entry.ce-f4cFExKc.mjs +238 -0
- package/dist/PaymentMethodForm.entry.ce-zxeBXZW6.js +1 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-BFFJw-5h.mjs +62 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CQqTurIt.js +1 -0
- package/dist/SubscriptionSchedules.entry.ce-B4T_yQC1.js +1 -0
- package/dist/SubscriptionSchedules.entry.ce-B4vQ7QLk.mjs +153 -0
- package/dist/SubscriptionsList.entry.ce-B5SJCQW0.js +1 -0
- package/dist/SubscriptionsList.entry.ce-cNYuQZZj.mjs +135 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DfB5BqiH.mjs +373 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DqZLFDCv.js +1 -0
- package/dist/_Uint8Array-DHE03FZr.mjs +507 -0
- package/dist/_Uint8Array-DxISR7XF.js +1 -0
- package/dist/auto-B_36W1Fc.js +6 -0
- package/dist/auto-BfMZdgp-.mjs +14207 -0
- package/dist/cloneDeep-Hs8Pp07F.js +1 -0
- package/dist/cloneDeep-sm9cY-u2.mjs +212 -0
- package/dist/component-BkmcE85U.mjs +58654 -0
- package/dist/component-Df5eNqYX.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.ce.d.ts +3 -0
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.es.js +7 -0
- package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +3 -0
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -0
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +7 -0
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +3 -0
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -0
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +7 -0
- package/dist/components/Invoice/Invoice.ce.d.ts +3 -0
- package/dist/components/Invoice/Invoice.cjs.js +1 -0
- package/dist/components/Invoice/Invoice.es.js +7 -0
- package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +3 -0
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -0
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +7 -0
- package/dist/components/InvoicesList/InvoicesList.ce.d.ts +3 -0
- package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -0
- package/dist/components/InvoicesList/InvoicesList.es.js +7 -0
- package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +3 -0
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -0
- package/dist/components/PaymentHistory/PaymentHistory.es.js +7 -0
- package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +3 -0
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -0
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +7 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +3 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +7 -0
- package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +3 -0
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -0
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +7 -0
- package/dist/core/action-request.types.d.ts +58 -0
- package/dist/core/configuration.d.ts +2 -0
- package/dist/core/index.cjs.js +1 -0
- package/dist/core/index.d.ts +10 -0
- package/dist/core/index.es.js +6 -0
- package/dist/core/registry.ce.d.ts +2 -0
- package/dist/core/registry.d.ts +6 -0
- package/dist/core/types.d.ts +107 -0
- package/dist/index-2jo9BSPM.js +1 -0
- package/dist/index-BFZ0dPh9.mjs +179 -0
- package/dist/index-CWSXne1Q.js +1 -0
- package/dist/index-CzL1ZcGi.mjs +85 -0
- package/dist/index-D3v7hAtc.mjs +253 -0
- package/dist/index-DRdBmZ2-.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.es.js +39 -0
- package/dist/invoices-8M_3ur_U.js +1 -0
- package/dist/invoices-C31Wz1Bu.mjs +84 -0
- package/dist/paymentMethods-CrU4G_2Y.mjs +65 -0
- package/dist/paymentMethods-CzUqDlvc.js +1 -0
- package/dist/payments-C3LPk9k9.js +1 -0
- package/dist/payments-NtWI8KlU.mjs +47 -0
- package/dist/registry-By94DXE2.js +1 -0
- package/dist/registry-shRKDl3K.mjs +127 -0
- package/dist/screens/Checkout/Checkout.ce.d.ts +3 -0
- package/dist/screens/Checkout/Checkout.cjs.js +1 -0
- package/dist/screens/Checkout/Checkout.es.js +7 -0
- package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +3 -0
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -0
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +7 -0
- package/dist/solvimon-web.css +1 -0
- package/dist/sprite-i5T7eZnk-C55G-dBo.js +1 -0
- package/dist/sprite-i5T7eZnk-i5T7eZnk.mjs +4 -0
- package/dist/subscriptions-3R7aMoky.mjs +74 -0
- package/dist/subscriptions-CqK7t-fF.js +1 -0
- package/dist/useActionDispatchProvider-CBo_Hwu5.mjs +12 -0
- package/dist/useActionDispatchProvider-DsIljrhi.js +1 -0
- package/dist/useCustomer-BRY0tuBH.mjs +45 -0
- package/dist/useCustomer-Dp8sGHI0.js +1 -0
- package/dist/useCustomerPaymentMethodOptions-DYpMDnJR.js +1 -0
- package/dist/useCustomerPaymentMethodOptions-Fe_dLxfv.mjs +168 -0
- package/dist/useIncrementalLoading-D8oKNxX7.js +1 -0
- package/dist/useIncrementalLoading-fHCizCSo.mjs +69 -0
- package/dist/useInvoiceData-DImEH1ca.js +1 -0
- package/dist/useInvoiceData-dyvoDwFF.mjs +51 -0
- package/dist/useInvoicesList-BZQ9Y0qN.js +1 -0
- package/dist/useInvoicesList-rDvRzMqe.mjs +294 -0
- package/dist/useLoadInitialData-BRg7IWqW.js +1 -0
- package/dist/useLoadInitialData-Dm48tlSO.mjs +13 -0
- package/dist/usePaymentMethods-Bq5fWl1Q.mjs +16 -0
- package/dist/usePaymentMethods-Dbimodf0.js +1 -0
- package/dist/useService-Dz13Nxbi.mjs +272 -0
- package/dist/useService-bNNi4GB8.js +1 -0
- package/package.json +174 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./_Uint8Array-DxISR7XF.js");var t=Object.create,r=function(){function r(){}return function(o){if(!e.isObject(o))return{};if(t)return t(o);r.prototype=o;var n=new r;return r.prototype=void 0,n}}(),o=function(){try{var t=e.getNative(Object,"defineProperty");return t({},"",{}),t}catch(r){}}();var n=Object.prototype.hasOwnProperty;function c(t,r,c){var a=t[r];n.call(t,r)&&e.eq(a,c)&&(void 0!==c||r in t)||function(e,t,r){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}(t,r,c)}var a=e.overArg(Object.getPrototypeOf,Object),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,b=i&&"object"==typeof module&&module&&!module.nodeType&&module,u=b&&b.exports===i?e.root.Buffer:void 0;u&&u.allocUnsafe;var s=Object.prototype.hasOwnProperty;function j(t){var r=new t.constructor(t.byteLength);return new e.Uint8Array(r).set(new e.Uint8Array(t)),r}var f=/\w*$/;var y=e.Symbol?e.Symbol.prototype:void 0,l=y?y.valueOf:void 0;function p(e,t,r){var o,n,c,a,i,b=e.constructor;switch(t){case"[object ArrayBuffer]":return j(e);case"[object Boolean]":case"[object Date]":return new b(+e);case"[object DataView]":return i=j((a=e).buffer),new a.constructor(i,a.byteOffset,a.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e){var t=j(e.buffer);return new e.constructor(t,e.byteOffset,e.length)}(e);case"[object Map]":case"[object Set]":return new b;case"[object Number]":case"[object String]":return new b(e);case"[object RegExp]":return(c=new(n=e).constructor(n.source,f.exec(n))).lastIndex=n.lastIndex,c;case"[object Symbol]":return o=e,l?Object(l.call(o)):{}}}var v=e.nodeUtil&&e.nodeUtil.isMap,A=v?e.baseUnary(v):function(t){return e.isObjectLike(t)&&"[object Map]"==e.getTag(t)};var d=e.nodeUtil&&e.nodeUtil.isSet,g=d?e.baseUnary(d):function(t){return e.isObjectLike(t)&&"[object Set]"==e.getTag(t)},w="[object Arguments]",O="[object Function]",U="[object Object]",m={};function x(t,o,n,i,b,u){var j;if(void 0!==j)return j;if(!e.isObject(t))return t;var f=e.isArray(t);if(f)j=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&s.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(t);else{var y=e.getTag(t),l=y==O||"[object GeneratorFunction]"==y;if(e.isBuffer(t))return t.slice();if(y==U||y==w||l&&!b)j=l?{}:function(t){return"function"!=typeof t.constructor||e.isPrototype(t)?{}:r(a(t))}(t);else{if(!m[y])return b?t:{};j=p(t,y)}}u||(u=new e.Stack);var v=u.get(t);if(v)return v;u.set(t,j),g(t)?t.forEach(function(e){j.add(x(e,o,n,e,t,u))}):A(t)&&t.forEach(function(e,r){j.set(r,x(e,o,n,r,t,u))});var d=e.getAllKeys,h=f?void 0:d(t);return function(e,t){for(var r=-1,o=null==e?0:e.length;++r<o&&!1!==t(e[r],r,e););}(h||t,function(e,r){h&&(e=t[r=e]),c(j,r,x(e,o,n,r,t,u))}),j}m[w]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object DataView]"]=m["[object Boolean]"]=m["[object Date]"]=m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Map]"]=m["[object Number]"]=m[U]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object Symbol]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m["[object Error]"]=m[O]=m["[object WeakMap]"]=!1;exports.cloneDeep=function(e){return x(e,5)};
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { h as isObject, j as getNative, e as eq, o as overArg, r as root, U as Uint8Array, S as Symbol$1, k as isPrototype, f as isObjectLike, a as getTag, l as baseUnary, n as nodeUtil, i as isBuffer, b as Stack, d as isArray, g as getAllKeys } from "./_Uint8Array-DHE03FZr.mjs";
|
|
2
|
+
var objectCreate = Object.create;
|
|
3
|
+
var baseCreate = /* @__PURE__ */ (function() {
|
|
4
|
+
function object() {
|
|
5
|
+
}
|
|
6
|
+
return function(proto) {
|
|
7
|
+
if (!isObject(proto)) {
|
|
8
|
+
return {};
|
|
9
|
+
}
|
|
10
|
+
if (objectCreate) {
|
|
11
|
+
return objectCreate(proto);
|
|
12
|
+
}
|
|
13
|
+
object.prototype = proto;
|
|
14
|
+
var result = new object();
|
|
15
|
+
object.prototype = void 0;
|
|
16
|
+
return result;
|
|
17
|
+
};
|
|
18
|
+
})();
|
|
19
|
+
var defineProperty = (function() {
|
|
20
|
+
try {
|
|
21
|
+
var func = getNative(Object, "defineProperty");
|
|
22
|
+
func({}, "", {});
|
|
23
|
+
return func;
|
|
24
|
+
} catch (e) {
|
|
25
|
+
}
|
|
26
|
+
})();
|
|
27
|
+
function arrayEach(array, iteratee) {
|
|
28
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
29
|
+
while (++index < length) {
|
|
30
|
+
if (iteratee(array[index], index, array) === false) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return array;
|
|
35
|
+
}
|
|
36
|
+
function baseAssignValue(object, key, value) {
|
|
37
|
+
if (key == "__proto__" && defineProperty) {
|
|
38
|
+
defineProperty(object, key, {
|
|
39
|
+
"configurable": true,
|
|
40
|
+
"enumerable": true,
|
|
41
|
+
"value": value,
|
|
42
|
+
"writable": true
|
|
43
|
+
});
|
|
44
|
+
} else {
|
|
45
|
+
object[key] = value;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
var objectProto$1 = Object.prototype;
|
|
49
|
+
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
50
|
+
function assignValue(object, key, value) {
|
|
51
|
+
var objValue = object[key];
|
|
52
|
+
if (!(hasOwnProperty$1.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
53
|
+
baseAssignValue(object, key, value);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
57
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
58
|
+
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
59
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
60
|
+
var Buffer = moduleExports ? root.Buffer : void 0;
|
|
61
|
+
Buffer ? Buffer.allocUnsafe : void 0;
|
|
62
|
+
function cloneBuffer(buffer, isDeep) {
|
|
63
|
+
{
|
|
64
|
+
return buffer.slice();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
var objectProto = Object.prototype;
|
|
68
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
69
|
+
function initCloneArray(array) {
|
|
70
|
+
var length = array.length, result = new array.constructor(length);
|
|
71
|
+
if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
|
|
72
|
+
result.index = array.index;
|
|
73
|
+
result.input = array.input;
|
|
74
|
+
}
|
|
75
|
+
return result;
|
|
76
|
+
}
|
|
77
|
+
function cloneArrayBuffer(arrayBuffer) {
|
|
78
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
79
|
+
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
80
|
+
return result;
|
|
81
|
+
}
|
|
82
|
+
function cloneDataView(dataView, isDeep) {
|
|
83
|
+
var buffer = cloneArrayBuffer(dataView.buffer);
|
|
84
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
85
|
+
}
|
|
86
|
+
var reFlags = /\w*$/;
|
|
87
|
+
function cloneRegExp(regexp) {
|
|
88
|
+
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
89
|
+
result.lastIndex = regexp.lastIndex;
|
|
90
|
+
return result;
|
|
91
|
+
}
|
|
92
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
93
|
+
function cloneSymbol(symbol) {
|
|
94
|
+
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
95
|
+
}
|
|
96
|
+
function cloneTypedArray(typedArray, isDeep) {
|
|
97
|
+
var buffer = cloneArrayBuffer(typedArray.buffer);
|
|
98
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
99
|
+
}
|
|
100
|
+
var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$1 = "[object Symbol]";
|
|
101
|
+
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
|
|
102
|
+
function initCloneByTag(object, tag, isDeep) {
|
|
103
|
+
var Ctor = object.constructor;
|
|
104
|
+
switch (tag) {
|
|
105
|
+
case arrayBufferTag$1:
|
|
106
|
+
return cloneArrayBuffer(object);
|
|
107
|
+
case boolTag$1:
|
|
108
|
+
case dateTag$1:
|
|
109
|
+
return new Ctor(+object);
|
|
110
|
+
case dataViewTag$1:
|
|
111
|
+
return cloneDataView(object);
|
|
112
|
+
case float32Tag$1:
|
|
113
|
+
case float64Tag$1:
|
|
114
|
+
case int8Tag$1:
|
|
115
|
+
case int16Tag$1:
|
|
116
|
+
case int32Tag$1:
|
|
117
|
+
case uint8Tag$1:
|
|
118
|
+
case uint8ClampedTag$1:
|
|
119
|
+
case uint16Tag$1:
|
|
120
|
+
case uint32Tag$1:
|
|
121
|
+
return cloneTypedArray(object);
|
|
122
|
+
case mapTag$2:
|
|
123
|
+
return new Ctor();
|
|
124
|
+
case numberTag$1:
|
|
125
|
+
case stringTag$1:
|
|
126
|
+
return new Ctor(object);
|
|
127
|
+
case regexpTag$1:
|
|
128
|
+
return cloneRegExp(object);
|
|
129
|
+
case setTag$2:
|
|
130
|
+
return new Ctor();
|
|
131
|
+
case symbolTag$1:
|
|
132
|
+
return cloneSymbol(object);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
function initCloneObject(object) {
|
|
136
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
137
|
+
}
|
|
138
|
+
var mapTag$1 = "[object Map]";
|
|
139
|
+
function baseIsMap(value) {
|
|
140
|
+
return isObjectLike(value) && getTag(value) == mapTag$1;
|
|
141
|
+
}
|
|
142
|
+
var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
143
|
+
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
144
|
+
var setTag$1 = "[object Set]";
|
|
145
|
+
function baseIsSet(value) {
|
|
146
|
+
return isObjectLike(value) && getTag(value) == setTag$1;
|
|
147
|
+
}
|
|
148
|
+
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
149
|
+
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
150
|
+
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
151
|
+
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
152
|
+
var cloneableTags = {};
|
|
153
|
+
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
154
|
+
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
155
|
+
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
156
|
+
var result;
|
|
157
|
+
if (result !== void 0) {
|
|
158
|
+
return result;
|
|
159
|
+
}
|
|
160
|
+
if (!isObject(value)) {
|
|
161
|
+
return value;
|
|
162
|
+
}
|
|
163
|
+
var isArr = isArray(value);
|
|
164
|
+
if (isArr) {
|
|
165
|
+
result = initCloneArray(value);
|
|
166
|
+
} else {
|
|
167
|
+
var tag = getTag(value), isFunc = tag == funcTag || tag == genTag;
|
|
168
|
+
if (isBuffer(value)) {
|
|
169
|
+
return cloneBuffer(value);
|
|
170
|
+
}
|
|
171
|
+
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
172
|
+
result = isFunc ? {} : initCloneObject(value);
|
|
173
|
+
} else {
|
|
174
|
+
if (!cloneableTags[tag]) {
|
|
175
|
+
return object ? value : {};
|
|
176
|
+
}
|
|
177
|
+
result = initCloneByTag(value, tag);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
stack || (stack = new Stack());
|
|
181
|
+
var stacked = stack.get(value);
|
|
182
|
+
if (stacked) {
|
|
183
|
+
return stacked;
|
|
184
|
+
}
|
|
185
|
+
stack.set(value, result);
|
|
186
|
+
if (isSet(value)) {
|
|
187
|
+
value.forEach(function(subValue) {
|
|
188
|
+
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
|
189
|
+
});
|
|
190
|
+
} else if (isMap(value)) {
|
|
191
|
+
value.forEach(function(subValue, key2) {
|
|
192
|
+
result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
var keysFunc = getAllKeys;
|
|
196
|
+
var props = isArr ? void 0 : keysFunc(value);
|
|
197
|
+
arrayEach(props || value, function(subValue, key2) {
|
|
198
|
+
if (props) {
|
|
199
|
+
key2 = subValue;
|
|
200
|
+
subValue = value[key2];
|
|
201
|
+
}
|
|
202
|
+
assignValue(result, key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
|
|
203
|
+
});
|
|
204
|
+
return result;
|
|
205
|
+
}
|
|
206
|
+
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
207
|
+
function cloneDeep(value) {
|
|
208
|
+
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
209
|
+
}
|
|
210
|
+
export {
|
|
211
|
+
cloneDeep as c
|
|
212
|
+
};
|