halo-pc 1.0.13 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-DASEvkfO.js +194 -0
- package/dist/{ArticleFooter-BbDi3-MM.js → ArticleFooter-BSesl8iy.js} +17 -24
- package/dist/{Autocomplete-KcemMig-.js → Autocomplete-ClAQY5V5.js} +1 -1
- package/dist/Autocomplete-CzfOoMve.js +48 -0
- package/dist/Autocomplete-DToic2Cg.js +49 -0
- package/dist/{CSharp-Re2Hef51.js → CSharp-23QccebX.js} +1 -1
- package/dist/{Calender-BdLz8uVu.js → Calender-DZkQaIeV.js} +3 -3
- package/dist/Callback-CWBDUe_C.js +20 -0
- package/dist/Cascader-BDfFyqiv.js +41 -0
- package/dist/Cascader-CpD_hbhQ.js +81 -0
- package/dist/Checkbox--gCBkIuI.js +70 -0
- package/dist/{Checkbox-C4vv9clz.js → Checkbox-SLi7MK1r.js} +1 -1
- package/dist/Code-BVTjF5rW.js +54 -0
- package/dist/{Code-oAwc2PqM.js → Code-C4hdU4t4.js} +1 -1
- package/dist/Code-CO4WPAe_.js +4 -0
- package/dist/Code-nrn4wOhB.js +36 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-BgAnkZ3j.js +59 -0
- package/dist/Column-DcMAu4JL.js +68 -0
- package/dist/Comment-CPxVIapg.js +98 -0
- package/dist/Compare-C2oFy0EZ.js +56 -0
- package/dist/Compare-P9zOBC1v.js +26 -0
- package/dist/Copy-B5vrho98.js +43 -0
- package/dist/Custom-BETJLilj.js +51 -0
- package/dist/{DataExport-Bfcwgxhl.js → DataExport-YTc4EX6l.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DxEJA5Ee.js → DataExport.vue_vue_type_script_setup_true_lang-amvVzv4A.js} +34 -40
- package/dist/{DataImport-BPx3VvYv.js → DataImport-ByV8MQkV.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-5gkTElFL.js → DataImport.vue_vue_type_script_setup_true_lang-CYwCKg5Z.js} +61 -66
- package/dist/{Date-FuMiaUxd.js → Date-DbTzQla9.js} +1 -1
- package/dist/Date-DpiWNuFs.js +37 -0
- package/dist/DateRange-Su0Q2cwY.js +57 -0
- package/dist/{DateTime-CyCcFf_l.js → DateTime-C3NrioJi.js} +1 -1
- package/dist/DateTime-QyKfqaVG.js +38 -0
- package/dist/{DateTimeRange-Db9BDn2x.js → DateTimeRange-lytkhCjC.js} +11 -18
- package/dist/Daterange-D7ZHkOmo.js +57 -0
- package/dist/{Decimal-F1-H75HK.js → Decimal-CTTT98BQ.js} +1 -1
- package/dist/Delete-MfXy7gUi.js +56 -0
- package/dist/{Detail-AhGw1lSI.js → Detail-CUiSzyT7.js} +16 -23
- package/dist/Dictionary-Dd_IU-Hn.js +55 -0
- package/dist/Email-BzN4JpJv.js +48 -0
- package/dist/{File-1ATMHoXy.js → File-Ckh37Ne2.js} +42 -49
- package/dist/Image-Dkd69DoD.js +9 -0
- package/dist/Index-CGJLRExG.js +4 -0
- package/dist/Index-CLzHDG05.js +4 -0
- package/dist/{Index-BlsoOd-w.js → Index-DJJcNPgN.js} +61 -67
- package/dist/{Index-Bk0v21aV.js → Index-DlrpDUD3.js} +1 -1
- package/dist/Index-DxvVjg9S.js +70 -0
- package/dist/{Index-CXbpni6W.js → Index-G36KYPCK.js} +1 -1
- package/dist/Index-dTIwhIau.js +4 -0
- package/dist/{Index-CY3JroZR.js → Index-x4c71OJZ.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DqLF_iyM.js → Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.js} +16 -23
- package/dist/{Index.vue_vue_type_script_setup_true_lang-C5HbpsSj.js → Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js} +16 -23
- package/dist/{Index.vue_vue_type_style_index_0_lang-fOkzw7J1.js → Index.vue_vue_type_style_index_0_lang-DVYceMeD.js} +30 -36
- package/dist/{Install-DWNrbMRl.js → Install-BW_ulT9I.js} +21 -28
- package/dist/Int-BRqYiJo7.js +41 -0
- package/dist/{Int-E-wewJ2r.js → Int-BYSjwPG_.js} +9 -16
- package/dist/List-DAFqVlam.js +73 -0
- package/dist/Maintaince-B8mM4PEp.js +14 -0
- package/dist/{Markdown-DBvQ_Q4I.js → Markdown-BXKlgSON.js} +1 -1
- package/dist/Month-BHvq72xE.js +37 -0
- package/dist/Month-BiW1DL44.js +38 -0
- package/dist/{Month-BMgXtQVp.js → Month-DKeTzNrD.js} +1 -1
- package/dist/{Normal-TE2XNiGu.js → Normal-CgSREifM.js} +48 -54
- package/dist/Paging-D02YApLL.js +94 -0
- package/dist/{PagingHeader-DHI1x6n2.js → PagingHeader-DJ7MmfGl.js} +37 -44
- package/dist/{PagingRow-CdXpvFNC.js → PagingRow-BM1GMtrr.js} +21 -28
- package/dist/QueryApi-ChpV_S8J.js +13 -0
- package/dist/{Racebar-CZVxC7hF.js → Racebar-CZlaC5Gm.js} +43 -49
- package/dist/{Radio-BdXipXA2.js → Radio-BPq3WJa4.js} +1 -1
- package/dist/{Register-t3oEydyQ.js → Register-ByxrZyWq.js} +71 -77
- package/dist/RichText-BtQDAhn9.js +41 -0
- package/dist/{SearchFooter-BpJrsqZV.js → SearchFooter-B61gsy3w.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-XXawph5O.js → SearchFooter.vue_vue_type_style_index_0_lang-CZv7EteY.js} +1 -1
- package/dist/{SearchForm-CwRcTMlw.js → SearchForm-CLvZoPGQ.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DU69JJ1z.js → SearchForm.vue_vue_type_style_index_0_lang-DnjtHyTb.js} +34 -40
- package/dist/Select-C_afSAvf.js +111 -0
- package/dist/{Select-DGGUWJY4.js → Select-DGXJMnE9.js} +19 -26
- package/dist/{Select-UUymDTLU.js → Select-Nb9K2FMY.js} +1 -1
- package/dist/{Single-C7v2P3LF.js → Single-C-2qA2MU.js} +111 -117
- package/dist/{Statistic-C6J7v2xF.js → Statistic-B1K-qIZb.js} +43 -51
- package/dist/{Stock-Ct-HKlln.js → Stock-C560McFR.js} +1 -1
- package/dist/{Stock-DSnE1Bzv.js → Stock-_rnn0B8I.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-DtH6bO8x.js → Stock.vue_vue_type_style_index_0_lang-BEwvRtU6.js} +31 -39
- package/dist/{Switch-Bi8hhG_X.js → Switch-BadvkLSw.js} +1 -1
- package/dist/{Table-SSfqvIzl.js → Table-B46N43V3.js} +67 -72
- package/dist/{Table-D0P60c_b.js → Table-Dk48tQ1r.js} +63 -70
- package/dist/Text-CNF204mx.js +53 -0
- package/dist/Text-DblKaz4m.js +52 -0
- package/dist/Text-y-q7UXlg.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-DtnGWes5.js +53 -0
- package/dist/TextLink-B4Q0zX1K.js +59 -0
- package/dist/{Textarea-CzUa7wZ2.js → Textarea-D1BOQFgK.js} +1 -1
- package/dist/Time-DZQxglEi.js +37 -0
- package/dist/Timeline-8QaD9H_I.js +53 -0
- package/dist/Tree-BUcyK0i_.js +117 -0
- package/dist/{Tree-6sdSDjF7.js → Tree-DVeTdmmL.js} +64 -70
- package/dist/TreeNode-BScAFHPZ.js +37 -0
- package/dist/{Update-Bgn_-Tk7.js → Update-BbU5H_Qf.js} +14 -21
- package/dist/{UpdateChild-BOHAM_TM.js → UpdateChild-BbXuXfOR.js} +19 -26
- package/dist/Upload-C1obfZui.js +146 -0
- package/dist/Upload-CmtHETKR.js +67 -0
- package/dist/UploadApi-2sfpKCMa.js +13 -0
- package/dist/Year-CRd3PkNx.js +41 -0
- package/dist/{Year-BbZI6olW.js → Year-CTo-9KjE.js} +1 -1
- package/dist/main-65efBfek.js +19835 -0
- package/dist/main.js +47 -49
- package/dist/style.css +1 -1
- package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
- package/esm/coms/partials/PagingRow.vue.d.ts +1 -1
- package/esm/vite.config.d.ts +6 -0
- package/package.json +2 -2
- package/dist/Article-X51Oz1hI.js +0 -198
- package/dist/Autocomplete-Ci1CXGQE.js +0 -55
- package/dist/Autocomplete-Co_6LMOR.js +0 -54
- package/dist/Callback-DwiifiR-.js +0 -27
- package/dist/Cascader-BrjhyzSI.js +0 -88
- package/dist/Cascader-DuG1TFF-.js +0 -48
- package/dist/Checkbox-DAsy2Gtb.js +0 -77
- package/dist/Code-CNioVNv0.js +0 -4
- package/dist/Code-CQQJJ5Jx.js +0 -61
- package/dist/Code-DAMTIprA.js +0 -43
- package/dist/Code.vue_vue_type_style_index_0_lang-G1i4uKJp.js +0 -66
- package/dist/Column-DMN_0BnR.js +0 -75
- package/dist/Comment-D4gvdlOG.js +0 -105
- package/dist/Compare-B9ms7AkH.js +0 -63
- package/dist/Compare-OHWeHehJ.js +0 -33
- package/dist/Copy-B6pQ--3T.js +0 -50
- package/dist/Custom-Dt_-KfRY.js +0 -58
- package/dist/Date-DAud0Tf9.js +0 -44
- package/dist/DateRange-ClHpJNRt.js +0 -64
- package/dist/DateTime-BO1c3xG2.js +0 -45
- package/dist/Daterange-BlMa4jnq.js +0 -64
- package/dist/Delete-BVH0G9h3.js +0 -63
- package/dist/Dictionary-DwcOV9xl.js +0 -60
- package/dist/Email-BljE8jDr.js +0 -55
- package/dist/Image-Bv2Ducoj.js +0 -9
- package/dist/Index-BFuHqDAs.js +0 -4
- package/dist/Index-D-TyDnGW.js +0 -4
- package/dist/Index-D2H5yTHn.js +0 -4
- package/dist/Index-YG1SBeIv.js +0 -76
- package/dist/Int-g8pM8ZyY.js +0 -47
- package/dist/List-ow09enu_.js +0 -80
- package/dist/Maintaince-Ctz2-ztL.js +0 -21
- package/dist/Month-CPMc1YrA.js +0 -45
- package/dist/Month-bDRWnCLy.js +0 -44
- package/dist/Paging-668tf97P.js +0 -100
- package/dist/QueryApi-UJNYVuJd.js +0 -21
- package/dist/RichText-BDRC1veI.js +0 -48
- package/dist/Select-RlOWoUwz.js +0 -118
- package/dist/Text-McD2Rcic.js +0 -59
- package/dist/Text-Stj6-whX.js +0 -4
- package/dist/Text-V0WQUxoe.js +0 -60
- package/dist/Text.vue_vue_type_style_index_0_lang-BuHdoSkB.js +0 -60
- package/dist/TextLink-DmRFUHgF.js +0 -66
- package/dist/Time-CgOW3aic.js +0 -44
- package/dist/Timeline-BV-wfL2F.js +0 -60
- package/dist/Tree-r6FMB9WN.js +0 -123
- package/dist/TreeNode-Y4ktCxAQ.js +0 -43
- package/dist/Upload-BGYLdPIM.js +0 -151
- package/dist/Upload-Df16iaP1.js +0 -73
- package/dist/UploadApi-CnAUAXVp.js +0 -21
- package/dist/Year-OqMhzqjx.js +0 -48
- package/dist/assets/@intlify-BISCQg1h.js +0 -2189
- package/dist/assets/@monaco-editor-BCDRi0Ti.js +0 -258
- package/dist/assets/@vue-aVYGocXp.js +0 -93
- package/dist/assets/clone-BZn0cTAu.js +0 -134
- package/dist/assets/file-saver-CwlpTZSc.js +0 -74
- package/dist/assets/liquidjs-C-LVcoaY.js +0 -2893
- package/dist/assets/moment-h96o7c8I.js +0 -2578
- package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
- package/dist/assets/state-local-CEworIRt.js +0 -131
- package/dist/assets/underscore-B0BCaBxV.js +0 -1070
- package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
- package/dist/assets/util-deprecate-Dzun97re.js +0 -28
- package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
- package/dist/main-RpQODrQa.js +0 -8936
@@ -1,148 +0,0 @@
|
|
1
|
-
var y = {}, x;
|
2
|
-
function S() {
|
3
|
-
return x || (x = 1, function(k) {
|
4
|
-
(function() {
|
5
|
-
var i = {
|
6
|
-
not_string: /[^s]/,
|
7
|
-
not_bool: /[^t]/,
|
8
|
-
not_type: /[^T]/,
|
9
|
-
not_primitive: /[^v]/,
|
10
|
-
number: /[diefg]/,
|
11
|
-
numeric_arg: /[bcdiefguxX]/,
|
12
|
-
json: /[j]/,
|
13
|
-
not_json: /[^j]/,
|
14
|
-
text: /^[^\x25]+/,
|
15
|
-
modulo: /^\x25{2}/,
|
16
|
-
placeholder: /^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,
|
17
|
-
key: /^([a-z_][a-z_\d]*)/i,
|
18
|
-
key_access: /^\.([a-z_][a-z_\d]*)/i,
|
19
|
-
index_access: /^\[(\d+)\]/,
|
20
|
-
sign: /^[+-]/
|
21
|
-
};
|
22
|
-
function f(t) {
|
23
|
-
return _(v(t), arguments);
|
24
|
-
}
|
25
|
-
function w(t, o) {
|
26
|
-
return f.apply(null, [t].concat(o || []));
|
27
|
-
}
|
28
|
-
function _(t, o) {
|
29
|
-
var n = 1, c = t.length, e, p = "", a, s, r, l, d, h, b, u;
|
30
|
-
for (a = 0; a < c; a++)
|
31
|
-
if (typeof t[a] == "string")
|
32
|
-
p += t[a];
|
33
|
-
else if (typeof t[a] == "object") {
|
34
|
-
if (r = t[a], r.keys)
|
35
|
-
for (e = o[n], s = 0; s < r.keys.length; s++) {
|
36
|
-
if (e == null)
|
37
|
-
throw new Error(f('[sprintf] Cannot access property "%s" of undefined value "%s"', r.keys[s], r.keys[s - 1]));
|
38
|
-
e = e[r.keys[s]];
|
39
|
-
}
|
40
|
-
else r.param_no ? e = o[r.param_no] : e = o[n++];
|
41
|
-
if (i.not_type.test(r.type) && i.not_primitive.test(r.type) && e instanceof Function && (e = e()), i.numeric_arg.test(r.type) && typeof e != "number" && isNaN(e))
|
42
|
-
throw new TypeError(f("[sprintf] expecting number but found %T", e));
|
43
|
-
switch (i.number.test(r.type) && (b = e >= 0), r.type) {
|
44
|
-
case "b":
|
45
|
-
e = parseInt(e, 10).toString(2);
|
46
|
-
break;
|
47
|
-
case "c":
|
48
|
-
e = String.fromCharCode(parseInt(e, 10));
|
49
|
-
break;
|
50
|
-
case "d":
|
51
|
-
case "i":
|
52
|
-
e = parseInt(e, 10);
|
53
|
-
break;
|
54
|
-
case "j":
|
55
|
-
e = JSON.stringify(e, null, r.width ? parseInt(r.width) : 0);
|
56
|
-
break;
|
57
|
-
case "e":
|
58
|
-
e = r.precision ? parseFloat(e).toExponential(r.precision) : parseFloat(e).toExponential();
|
59
|
-
break;
|
60
|
-
case "f":
|
61
|
-
e = r.precision ? parseFloat(e).toFixed(r.precision) : parseFloat(e);
|
62
|
-
break;
|
63
|
-
case "g":
|
64
|
-
e = r.precision ? String(Number(e.toPrecision(r.precision))) : parseFloat(e);
|
65
|
-
break;
|
66
|
-
case "o":
|
67
|
-
e = (parseInt(e, 10) >>> 0).toString(8);
|
68
|
-
break;
|
69
|
-
case "s":
|
70
|
-
e = String(e), e = r.precision ? e.substring(0, r.precision) : e;
|
71
|
-
break;
|
72
|
-
case "t":
|
73
|
-
e = String(!!e), e = r.precision ? e.substring(0, r.precision) : e;
|
74
|
-
break;
|
75
|
-
case "T":
|
76
|
-
e = Object.prototype.toString.call(e).slice(8, -1).toLowerCase(), e = r.precision ? e.substring(0, r.precision) : e;
|
77
|
-
break;
|
78
|
-
case "u":
|
79
|
-
e = parseInt(e, 10) >>> 0;
|
80
|
-
break;
|
81
|
-
case "v":
|
82
|
-
e = e.valueOf(), e = r.precision ? e.substring(0, r.precision) : e;
|
83
|
-
break;
|
84
|
-
case "x":
|
85
|
-
e = (parseInt(e, 10) >>> 0).toString(16);
|
86
|
-
break;
|
87
|
-
case "X":
|
88
|
-
e = (parseInt(e, 10) >>> 0).toString(16).toUpperCase();
|
89
|
-
break;
|
90
|
-
}
|
91
|
-
i.json.test(r.type) ? p += e : (i.number.test(r.type) && (!b || r.sign) ? (u = b ? "+" : "-", e = e.toString().replace(i.sign, "")) : u = "", d = r.pad_char ? r.pad_char === "0" ? "0" : r.pad_char.charAt(1) : " ", h = r.width - (u + e).length, l = r.width && h > 0 ? d.repeat(h) : "", p += r.align ? u + e + l : d === "0" ? u + l + e : l + u + e);
|
92
|
-
}
|
93
|
-
return p;
|
94
|
-
}
|
95
|
-
var g = /* @__PURE__ */ Object.create(null);
|
96
|
-
function v(t) {
|
97
|
-
if (g[t])
|
98
|
-
return g[t];
|
99
|
-
for (var o = t, n, c = [], e = 0; o; ) {
|
100
|
-
if ((n = i.text.exec(o)) !== null)
|
101
|
-
c.push(n[0]);
|
102
|
-
else if ((n = i.modulo.exec(o)) !== null)
|
103
|
-
c.push("%");
|
104
|
-
else if ((n = i.placeholder.exec(o)) !== null) {
|
105
|
-
if (n[2]) {
|
106
|
-
e |= 1;
|
107
|
-
var p = [], a = n[2], s = [];
|
108
|
-
if ((s = i.key.exec(a)) !== null)
|
109
|
-
for (p.push(s[1]); (a = a.substring(s[0].length)) !== ""; )
|
110
|
-
if ((s = i.key_access.exec(a)) !== null)
|
111
|
-
p.push(s[1]);
|
112
|
-
else if ((s = i.index_access.exec(a)) !== null)
|
113
|
-
p.push(s[1]);
|
114
|
-
else
|
115
|
-
throw new SyntaxError("[sprintf] failed to parse named argument key");
|
116
|
-
else
|
117
|
-
throw new SyntaxError("[sprintf] failed to parse named argument key");
|
118
|
-
n[2] = p;
|
119
|
-
} else
|
120
|
-
e |= 2;
|
121
|
-
if (e === 3)
|
122
|
-
throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");
|
123
|
-
c.push(
|
124
|
-
{
|
125
|
-
placeholder: n[0],
|
126
|
-
param_no: n[1],
|
127
|
-
keys: n[2],
|
128
|
-
sign: n[3],
|
129
|
-
pad_char: n[4],
|
130
|
-
align: n[5],
|
131
|
-
width: n[6],
|
132
|
-
precision: n[7],
|
133
|
-
type: n[8]
|
134
|
-
}
|
135
|
-
);
|
136
|
-
} else
|
137
|
-
throw new SyntaxError("[sprintf] unexpected placeholder");
|
138
|
-
o = o.substring(n[0].length);
|
139
|
-
}
|
140
|
-
return g[t] = c;
|
141
|
-
}
|
142
|
-
k.sprintf = f, k.vsprintf = w, typeof window < "u" && (window.sprintf = f, window.vsprintf = w);
|
143
|
-
})();
|
144
|
-
}(y)), y;
|
145
|
-
}
|
146
|
-
export {
|
147
|
-
S as r
|
148
|
-
};
|
@@ -1,131 +0,0 @@
|
|
1
|
-
function O(e, t, n) {
|
2
|
-
return t in e ? Object.defineProperty(e, t, {
|
3
|
-
value: n,
|
4
|
-
enumerable: !0,
|
5
|
-
configurable: !0,
|
6
|
-
writable: !0
|
7
|
-
}) : e[t] = n, e;
|
8
|
-
}
|
9
|
-
function g(e, t) {
|
10
|
-
var n = Object.keys(e);
|
11
|
-
if (Object.getOwnPropertySymbols) {
|
12
|
-
var r = Object.getOwnPropertySymbols(e);
|
13
|
-
t && (r = r.filter(function(i) {
|
14
|
-
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
15
|
-
})), n.push.apply(n, r);
|
16
|
-
}
|
17
|
-
return n;
|
18
|
-
}
|
19
|
-
function v(e) {
|
20
|
-
for (var t = 1; t < arguments.length; t++) {
|
21
|
-
var n = arguments[t] != null ? arguments[t] : {};
|
22
|
-
t % 2 ? g(Object(n), !0).forEach(function(r) {
|
23
|
-
O(e, r, n[r]);
|
24
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g(Object(n)).forEach(function(r) {
|
25
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
26
|
-
});
|
27
|
-
}
|
28
|
-
return e;
|
29
|
-
}
|
30
|
-
function y() {
|
31
|
-
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
32
|
-
t[n] = arguments[n];
|
33
|
-
return function(r) {
|
34
|
-
return t.reduceRight(function(i, a) {
|
35
|
-
return a(i);
|
36
|
-
}, r);
|
37
|
-
};
|
38
|
-
}
|
39
|
-
function c(e) {
|
40
|
-
return function t() {
|
41
|
-
for (var n = this, r = arguments.length, i = new Array(r), a = 0; a < r; a++)
|
42
|
-
i[a] = arguments[a];
|
43
|
-
return i.length >= e.length ? e.apply(this, i) : function() {
|
44
|
-
for (var f = arguments.length, s = new Array(f), o = 0; o < f; o++)
|
45
|
-
s[o] = arguments[o];
|
46
|
-
return t.apply(n, [].concat(i, s));
|
47
|
-
};
|
48
|
-
};
|
49
|
-
}
|
50
|
-
function h(e) {
|
51
|
-
return {}.toString.call(e).includes("Object");
|
52
|
-
}
|
53
|
-
function m(e) {
|
54
|
-
return !Object.keys(e).length;
|
55
|
-
}
|
56
|
-
function l(e) {
|
57
|
-
return typeof e == "function";
|
58
|
-
}
|
59
|
-
function j(e, t) {
|
60
|
-
return Object.prototype.hasOwnProperty.call(e, t);
|
61
|
-
}
|
62
|
-
function w(e, t) {
|
63
|
-
return h(t) || u("changeType"), Object.keys(t).some(function(n) {
|
64
|
-
return !j(e, n);
|
65
|
-
}) && u("changeField"), t;
|
66
|
-
}
|
67
|
-
function P(e) {
|
68
|
-
l(e) || u("selectorType");
|
69
|
-
}
|
70
|
-
function T(e) {
|
71
|
-
l(e) || h(e) || u("handlerType"), h(e) && Object.values(e).some(function(t) {
|
72
|
-
return !l(t);
|
73
|
-
}) && u("handlersType");
|
74
|
-
}
|
75
|
-
function S(e) {
|
76
|
-
e || u("initialIsRequired"), h(e) || u("initialType"), m(e) && u("initialContent");
|
77
|
-
}
|
78
|
-
function E(e, t) {
|
79
|
-
throw new Error(e[t] || e.default);
|
80
|
-
}
|
81
|
-
var D = {
|
82
|
-
initialIsRequired: "initial state is required",
|
83
|
-
initialType: "initial state should be an object",
|
84
|
-
initialContent: "initial state shouldn't be an empty object",
|
85
|
-
handlerType: "handler should be an object or a function",
|
86
|
-
handlersType: "all handlers should be a functions",
|
87
|
-
selectorType: "selector should be a function",
|
88
|
-
changeType: "provided value of changes should be an object",
|
89
|
-
changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
|
90
|
-
default: "an unknown error accured in `state-local` package"
|
91
|
-
}, u = c(E)(D), p = {
|
92
|
-
changes: w,
|
93
|
-
selector: P,
|
94
|
-
handler: T,
|
95
|
-
initial: S
|
96
|
-
};
|
97
|
-
function q(e) {
|
98
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
99
|
-
p.initial(e), p.handler(t);
|
100
|
-
var n = {
|
101
|
-
current: e
|
102
|
-
}, r = c(I)(n, t), i = c(F)(n), a = c(p.changes)(e), f = c(C)(n);
|
103
|
-
function s() {
|
104
|
-
var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(b) {
|
105
|
-
return b;
|
106
|
-
};
|
107
|
-
return p.selector(d), d(n.current);
|
108
|
-
}
|
109
|
-
function o(d) {
|
110
|
-
y(r, i, a, f)(d);
|
111
|
-
}
|
112
|
-
return [s, o];
|
113
|
-
}
|
114
|
-
function C(e, t) {
|
115
|
-
return l(t) ? t(e.current) : t;
|
116
|
-
}
|
117
|
-
function F(e, t) {
|
118
|
-
return e.current = v(v({}, e.current), t), t;
|
119
|
-
}
|
120
|
-
function I(e, t, n) {
|
121
|
-
return l(t) ? t(e.current) : Object.keys(n).forEach(function(r) {
|
122
|
-
var i;
|
123
|
-
return (i = t[r]) === null || i === void 0 ? void 0 : i.call(t, e.current[r]);
|
124
|
-
}), n;
|
125
|
-
}
|
126
|
-
var R = {
|
127
|
-
create: q
|
128
|
-
};
|
129
|
-
export {
|
130
|
-
R as i
|
131
|
-
};
|