@cling-se/widget 0.14.4 → 0.14.6
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/AddClientCallout-C7abPZ87.js +46 -0
- package/dist/AnswerModal-CsA2pl2P.js +3874 -0
- package/dist/AttachmentItem-Da1-7xwf.js +78 -0
- package/dist/BaseDatePicker-k9zlSi5J.js +3183 -0
- package/dist/BaseUpload-BUrXX3fT.js +1977 -0
- package/dist/BlockMedia-CYI07qAn.js +76 -0
- package/dist/CCallout-Qwae66vo.js +59 -0
- package/dist/CCurrencyDropdown-Y_u0hgBx.js +246 -0
- package/dist/CDropdownItem-CXJ4xD8W.js +538 -0
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +1 -0
- package/dist/CFormField--m3PvQuT.js +241 -0
- package/dist/CPhoneFormat-Qg6MkDVP.js +62 -0
- package/dist/CPriceInput-Dlx44UrR.js +112 -0
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_b7262014_lang-l0sNRNKZ.js +1 -0
- package/dist/ClientAutocomplete-BKKc_br6.js +78 -0
- package/dist/ClientModal-CVZFb1Br.js +625 -0
- package/dist/ColorPicker-Bo3s3Esp.js +2879 -0
- package/dist/CompanyModal-DadjAioS.js +141 -0
- package/dist/ContentWrapper-BC3ZBQW9.js +183 -0
- package/dist/CoverBlockSettings-B484eE4g.js +275 -0
- package/dist/DocAnswer-CcYryOWI.js +36 -0
- package/dist/DocDetails-BigsoEWL.js +246 -0
- package/dist/DocForm-DlN0eNWt.js +7273 -0
- package/dist/DocFormSend-TqKo210I.js +143 -0
- package/dist/DocLinks-DSo54vDn.js +38 -0
- package/dist/DocModalBase-XlM1SThW.js +28 -0
- package/dist/DocPrint-tD0Vd9Sw.js +240 -0
- package/dist/DocReceipt-CDHPrhXM.js +210 -0
- package/dist/DocSendReminder-C62RhltH.js +137 -0
- package/dist/DocTextEditor-VjhV9IRp.js +17181 -0
- package/dist/DocTimeline-LcW4z3nC.js +481 -0
- package/dist/DocumentClient-CqbTRdpB.js +136 -0
- package/dist/DocumentLayout-Dbf8_01r.js +4909 -0
- package/dist/DocumentLogotype-DXYnBedV.js +87 -0
- package/dist/DocumentVoided-vH1Ti5lZ.js +25 -0
- package/dist/EmbedInput-D9qP8OnY.js +113 -0
- package/dist/EmbedSettings-DISuNqJT.js +72 -0
- package/dist/ErrorCallout-CCtCVwSh.js +28 -0
- package/dist/FilePreviewModal-BjhNyb6L.js +81 -0
- package/dist/Flag-Dhukv9_J.js +114 -0
- package/dist/HeaderSettings-CK4SkB1x.js +392 -0
- package/dist/ImageSelectModal-DnvPZzXx.js +84 -0
- package/dist/ImageUploadWrapper-B7cNMu5a.js +1604 -0
- package/dist/Index-B3HoK_cZ.js +84 -0
- package/dist/Index-B3aucNji.js +25 -0
- package/dist/Index-B9H5MMHb.js +62 -0
- package/dist/Index-BAYdvT-t.js +754 -0
- package/dist/Index-BLeQprjq.js +46 -0
- package/dist/Index-BOyvQlng.js +154 -0
- package/dist/Index-BVsw2tak.js +70 -0
- package/dist/Index-BY1UKGEO.js +98 -0
- package/dist/Index-Bh0kMSsA.js +107 -0
- package/dist/Index-BlQSM7tC.js +144 -0
- package/dist/Index-BpcJBGGd.js +642 -0
- package/dist/Index-Bs8wprXw.js +58 -0
- package/dist/Index-BvZZAvFd.js +21 -0
- package/dist/Index-CFo-3Y5Q.js +26 -0
- package/dist/Index-CNvp5K3L.js +559 -0
- package/dist/Index-CPJVx14x.js +171 -0
- package/dist/Index-CQ325eVT.js +140 -0
- package/dist/Index-CWrDtcfT.js +49 -0
- package/dist/Index-CyJnSvDR.js +223 -0
- package/dist/Index-D6bc7lg4.js +52 -0
- package/dist/Index-DCR8ev4U.js +33 -0
- package/dist/Index-DGQSB9cH.js +24 -0
- package/dist/Index-DXAvlq74.js +292 -0
- package/dist/Index-D_rfst8y.js +45 -0
- package/dist/Index-Dm8xMFGg.js +61 -0
- package/dist/Index-DtSSgtxB.js +55 -0
- package/dist/Index-DuTw9vhb.js +77 -0
- package/dist/Index-Dw26jtGV.js +31 -0
- package/dist/Index-OxN73_fO.js +32 -0
- package/dist/Index-S-FHG7_k.js +2402 -0
- package/dist/Index-ZFkitzfq.js +69 -0
- package/dist/Index-dyWK9jgr.js +25 -0
- package/dist/Index-gb11ngPS.js +57 -0
- package/dist/Index-lKk_XKJ3.js +150 -0
- package/dist/InputToggleRow-DSSvhPKA.js +57 -0
- package/dist/ManualPopover-lpJYSkw5.js +58 -0
- package/dist/MediaWrapper-BQ22FA2B.js +23 -0
- package/dist/NotBindingText-JxwzZLPP.js +32 -0
- package/dist/PackageGroup-BLSMSUDz.js +699 -0
- package/dist/PdfTerms-DtutjM5Y.js +36 -0
- package/dist/PdfViewer-BsxcZI_x.js +374 -0
- package/dist/PlainHtml-BMPZs2fT.js +20 -0
- package/dist/PriceHeader-BRYY01H2.js +339 -0
- package/dist/SearchApi-6001iFxU.js +161 -0
- package/dist/Setup-cw6jMI9M.js +50 -0
- package/dist/SmartList-q6H-uLbm.js +83 -0
- package/dist/TermsSettings-DWvaPneu.js +102 -0
- package/dist/ThemeColorRow-BXWnvfz-.js +67 -0
- package/dist/ToggleBinding-DydtwpNG.js +38 -0
- package/dist/UploadModal-D_EDKHGD.js +95 -0
- package/dist/VideoPlayerInput-B9yzUeBW.js +93 -0
- package/dist/VideoPlayerSettings-Bvp9l0yj.js +61 -0
- package/dist/VideoSelectModal-DY3N4JiS.js +100 -0
- package/dist/anime.es-BrPTThYb.js +858 -0
- package/dist/answerDocumentMixin-BYZPU_R-.js +51 -0
- package/dist/color-TdtKxwVa.js +19 -0
- package/dist/debounce-BPnlzNwd.js +84 -0
- package/dist/dom-CJxkno7i.js +91 -0
- package/dist/favicon.ico +0 -0
- package/dist/focusDrawerMixin-DC9Oa1i7.js +22 -0
- package/dist/formComponentsInstall-CEW6TK6z.js +2499 -0
- package/dist/formDrawerState-CAzvSMiQ.js +20 -0
- package/dist/formValidationMixin-D7zXxCpC.js +49 -0
- package/dist/i18nMessages-Chz_lxGG.js +17 -0
- package/dist/index-B9WDC3Xe.js +166 -0
- package/dist/index-BCMaUC5r.js +3916 -0
- package/dist/index-BDMI4NVY.js +492 -0
- package/dist/index-BbscgdRg.js +81 -0
- package/dist/index-CLUljEDI.js +347 -0
- package/dist/index-SxyZvewN.js +102 -0
- package/dist/index.es.js +35 -0
- package/dist/index.umd.js +3148 -0
- package/dist/main-CQBEuZk9.js +56739 -0
- package/dist/mapFormMixin-DlFcgwhm.js +72 -0
- package/dist/omit-BWy0Zhd3.js +31 -0
- package/dist/publicSenderState-CvOcFv2U.js +21 -0
- package/dist/splitpanes-BHUVsCZF.js +382 -0
- package/dist/style.css +4 -0
- package/dist/throttle-BrC8eGjQ.js +18 -0
- package/dist/tinycolor-PhFP695w.js +633 -0
- package/dist/tippy.esm-7dmKOUvu.js +1799 -0
- package/dist/utils-NBLgNGHR.js +108 -0
- package/dist/vuedraggable.umd-ByfH7ZxC.js +3161 -0
- package/dist/vuex.esm-DKGl8mcw.js +467 -0
- package/package.json +1 -1
- package/vite.config.ts +0 -1
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* vuex v3.6.2
|
|
3
|
+
* (c) 2021 Evan You
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
function L(e) {
|
|
7
|
+
var t = Number(e.version.split(".")[0]);
|
|
8
|
+
if (t >= 2)
|
|
9
|
+
e.mixin({ beforeCreate: i });
|
|
10
|
+
else {
|
|
11
|
+
var r = e.prototype._init;
|
|
12
|
+
e.prototype._init = function(n) {
|
|
13
|
+
n === void 0 && (n = {}), n.init = n.init ? [i].concat(n.init) : i, r.call(this, n);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function i() {
|
|
17
|
+
var n = this.$options;
|
|
18
|
+
n.store ? this.$store = typeof n.store == "function" ? n.store() : n.store : n.parent && n.parent.$store && (this.$store = n.parent.$store);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
var P = typeof window < "u" ? window : typeof global < "u" ? global : {}, _ = P.__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
22
|
+
function H(e) {
|
|
23
|
+
_ && (e._devtoolHook = _, _.emit("vuex:init", e), _.on("vuex:travel-to-state", function(t) {
|
|
24
|
+
e.replaceState(t);
|
|
25
|
+
}), e.subscribe(function(t, r) {
|
|
26
|
+
_.emit("vuex:mutation", t, r);
|
|
27
|
+
}, { prepend: !0 }), e.subscribeAction(function(t, r) {
|
|
28
|
+
_.emit("vuex:action", t, r);
|
|
29
|
+
}, { prepend: !0 }));
|
|
30
|
+
}
|
|
31
|
+
function y(e, t) {
|
|
32
|
+
Object.keys(e).forEach(function(r) {
|
|
33
|
+
return t(e[r], r);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function G(e) {
|
|
37
|
+
return e !== null && typeof e == "object";
|
|
38
|
+
}
|
|
39
|
+
function V(e) {
|
|
40
|
+
return e && typeof e.then == "function";
|
|
41
|
+
}
|
|
42
|
+
function T(e, t) {
|
|
43
|
+
return function() {
|
|
44
|
+
return e(t);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
var m = function(t, r) {
|
|
48
|
+
this.runtime = r, this._children = /* @__PURE__ */ Object.create(null), this._rawModule = t;
|
|
49
|
+
var i = t.state;
|
|
50
|
+
this.state = (typeof i == "function" ? i() : i) || {};
|
|
51
|
+
}, j = { namespaced: { configurable: !0 } };
|
|
52
|
+
j.namespaced.get = function() {
|
|
53
|
+
return !!this._rawModule.namespaced;
|
|
54
|
+
};
|
|
55
|
+
m.prototype.addChild = function(t, r) {
|
|
56
|
+
this._children[t] = r;
|
|
57
|
+
};
|
|
58
|
+
m.prototype.removeChild = function(t) {
|
|
59
|
+
delete this._children[t];
|
|
60
|
+
};
|
|
61
|
+
m.prototype.getChild = function(t) {
|
|
62
|
+
return this._children[t];
|
|
63
|
+
};
|
|
64
|
+
m.prototype.hasChild = function(t) {
|
|
65
|
+
return t in this._children;
|
|
66
|
+
};
|
|
67
|
+
m.prototype.update = function(t) {
|
|
68
|
+
this._rawModule.namespaced = t.namespaced, t.actions && (this._rawModule.actions = t.actions), t.mutations && (this._rawModule.mutations = t.mutations), t.getters && (this._rawModule.getters = t.getters);
|
|
69
|
+
};
|
|
70
|
+
m.prototype.forEachChild = function(t) {
|
|
71
|
+
y(this._children, t);
|
|
72
|
+
};
|
|
73
|
+
m.prototype.forEachGetter = function(t) {
|
|
74
|
+
this._rawModule.getters && y(this._rawModule.getters, t);
|
|
75
|
+
};
|
|
76
|
+
m.prototype.forEachAction = function(t) {
|
|
77
|
+
this._rawModule.actions && y(this._rawModule.actions, t);
|
|
78
|
+
};
|
|
79
|
+
m.prototype.forEachMutation = function(t) {
|
|
80
|
+
this._rawModule.mutations && y(this._rawModule.mutations, t);
|
|
81
|
+
};
|
|
82
|
+
Object.defineProperties(m.prototype, j);
|
|
83
|
+
var g = function(t) {
|
|
84
|
+
this.register([], t, !1);
|
|
85
|
+
};
|
|
86
|
+
g.prototype.get = function(t) {
|
|
87
|
+
return t.reduce(function(r, i) {
|
|
88
|
+
return r.getChild(i);
|
|
89
|
+
}, this.root);
|
|
90
|
+
};
|
|
91
|
+
g.prototype.getNamespace = function(t) {
|
|
92
|
+
var r = this.root;
|
|
93
|
+
return t.reduce(function(i, n) {
|
|
94
|
+
return r = r.getChild(n), i + (r.namespaced ? n + "/" : "");
|
|
95
|
+
}, "");
|
|
96
|
+
};
|
|
97
|
+
g.prototype.update = function(t) {
|
|
98
|
+
x([], this.root, t);
|
|
99
|
+
};
|
|
100
|
+
g.prototype.register = function(t, r, i) {
|
|
101
|
+
var n = this;
|
|
102
|
+
i === void 0 && (i = !0);
|
|
103
|
+
var o = new m(r, i);
|
|
104
|
+
if (t.length === 0)
|
|
105
|
+
this.root = o;
|
|
106
|
+
else {
|
|
107
|
+
var u = this.get(t.slice(0, -1));
|
|
108
|
+
u.addChild(t[t.length - 1], o);
|
|
109
|
+
}
|
|
110
|
+
r.modules && y(r.modules, function(s, a) {
|
|
111
|
+
n.register(t.concat(a), s, i);
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
g.prototype.unregister = function(t) {
|
|
115
|
+
var r = this.get(t.slice(0, -1)), i = t[t.length - 1], n = r.getChild(i);
|
|
116
|
+
n && n.runtime && r.removeChild(i);
|
|
117
|
+
};
|
|
118
|
+
g.prototype.isRegistered = function(t) {
|
|
119
|
+
var r = this.get(t.slice(0, -1)), i = t[t.length - 1];
|
|
120
|
+
return r ? r.hasChild(i) : !1;
|
|
121
|
+
};
|
|
122
|
+
function x(e, t, r) {
|
|
123
|
+
if (t.update(r), r.modules)
|
|
124
|
+
for (var i in r.modules) {
|
|
125
|
+
if (!t.getChild(i))
|
|
126
|
+
return;
|
|
127
|
+
x(
|
|
128
|
+
e.concat(i),
|
|
129
|
+
t.getChild(i),
|
|
130
|
+
r.modules[i]
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
var p, v = function(t) {
|
|
135
|
+
var r = this;
|
|
136
|
+
t === void 0 && (t = {}), !p && typeof window < "u" && window.Vue && K(window.Vue);
|
|
137
|
+
var i = t.plugins;
|
|
138
|
+
i === void 0 && (i = []);
|
|
139
|
+
var n = t.strict;
|
|
140
|
+
n === void 0 && (n = !1), this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new g(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._watcherVM = new p(), this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
|
|
141
|
+
var o = this, u = this, s = u.dispatch, a = u.commit;
|
|
142
|
+
this.dispatch = function(d, h) {
|
|
143
|
+
return s.call(o, d, h);
|
|
144
|
+
}, this.commit = function(d, h, N) {
|
|
145
|
+
return a.call(o, d, h, N);
|
|
146
|
+
}, this.strict = n;
|
|
147
|
+
var l = this._modules.root.state;
|
|
148
|
+
$(this, l, [], this._modules.root), C(this, l), i.forEach(function(f) {
|
|
149
|
+
return f(r);
|
|
150
|
+
});
|
|
151
|
+
var c = t.devtools !== void 0 ? t.devtools : p.config.devtools;
|
|
152
|
+
c && H(this);
|
|
153
|
+
}, w = { state: { configurable: !0 } };
|
|
154
|
+
w.state.get = function() {
|
|
155
|
+
return this._vm._data.$$state;
|
|
156
|
+
};
|
|
157
|
+
w.state.set = function(e) {
|
|
158
|
+
};
|
|
159
|
+
v.prototype.commit = function(t, r, i) {
|
|
160
|
+
var n = this, o = b(t, r, i), u = o.type, s = o.payload, a = { type: u, payload: s }, l = this._mutations[u];
|
|
161
|
+
l && (this._withCommit(function() {
|
|
162
|
+
l.forEach(function(f) {
|
|
163
|
+
f(s);
|
|
164
|
+
});
|
|
165
|
+
}), this._subscribers.slice().forEach(function(c) {
|
|
166
|
+
return c(a, n.state);
|
|
167
|
+
}));
|
|
168
|
+
};
|
|
169
|
+
v.prototype.dispatch = function(t, r) {
|
|
170
|
+
var i = this, n = b(t, r), o = n.type, u = n.payload, s = { type: o, payload: u }, a = this._actions[o];
|
|
171
|
+
if (a) {
|
|
172
|
+
try {
|
|
173
|
+
this._actionSubscribers.slice().filter(function(c) {
|
|
174
|
+
return c.before;
|
|
175
|
+
}).forEach(function(c) {
|
|
176
|
+
return c.before(s, i.state);
|
|
177
|
+
});
|
|
178
|
+
} catch {
|
|
179
|
+
}
|
|
180
|
+
var l = a.length > 1 ? Promise.all(a.map(function(c) {
|
|
181
|
+
return c(u);
|
|
182
|
+
})) : a[0](u);
|
|
183
|
+
return new Promise(function(c, f) {
|
|
184
|
+
l.then(function(d) {
|
|
185
|
+
try {
|
|
186
|
+
i._actionSubscribers.filter(function(h) {
|
|
187
|
+
return h.after;
|
|
188
|
+
}).forEach(function(h) {
|
|
189
|
+
return h.after(s, i.state);
|
|
190
|
+
});
|
|
191
|
+
} catch {
|
|
192
|
+
}
|
|
193
|
+
c(d);
|
|
194
|
+
}, function(d) {
|
|
195
|
+
try {
|
|
196
|
+
i._actionSubscribers.filter(function(h) {
|
|
197
|
+
return h.error;
|
|
198
|
+
}).forEach(function(h) {
|
|
199
|
+
return h.error(s, i.state, d);
|
|
200
|
+
});
|
|
201
|
+
} catch {
|
|
202
|
+
}
|
|
203
|
+
f(d);
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
v.prototype.subscribe = function(t, r) {
|
|
209
|
+
return A(t, this._subscribers, r);
|
|
210
|
+
};
|
|
211
|
+
v.prototype.subscribeAction = function(t, r) {
|
|
212
|
+
var i = typeof t == "function" ? { before: t } : t;
|
|
213
|
+
return A(i, this._actionSubscribers, r);
|
|
214
|
+
};
|
|
215
|
+
v.prototype.watch = function(t, r, i) {
|
|
216
|
+
var n = this;
|
|
217
|
+
return this._watcherVM.$watch(function() {
|
|
218
|
+
return t(n.state, n.getters);
|
|
219
|
+
}, r, i);
|
|
220
|
+
};
|
|
221
|
+
v.prototype.replaceState = function(t) {
|
|
222
|
+
var r = this;
|
|
223
|
+
this._withCommit(function() {
|
|
224
|
+
r._vm._data.$$state = t;
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
v.prototype.registerModule = function(t, r, i) {
|
|
228
|
+
i === void 0 && (i = {}), typeof t == "string" && (t = [t]), this._modules.register(t, r), $(this, this.state, t, this._modules.get(t), i.preserveState), C(this, this.state);
|
|
229
|
+
};
|
|
230
|
+
v.prototype.unregisterModule = function(t) {
|
|
231
|
+
var r = this;
|
|
232
|
+
typeof t == "string" && (t = [t]), this._modules.unregister(t), this._withCommit(function() {
|
|
233
|
+
var i = M(r.state, t.slice(0, -1));
|
|
234
|
+
p.delete(i, t[t.length - 1]);
|
|
235
|
+
}), k(this);
|
|
236
|
+
};
|
|
237
|
+
v.prototype.hasModule = function(t) {
|
|
238
|
+
return typeof t == "string" && (t = [t]), this._modules.isRegistered(t);
|
|
239
|
+
};
|
|
240
|
+
v.prototype.hotUpdate = function(t) {
|
|
241
|
+
this._modules.update(t), k(this, !0);
|
|
242
|
+
};
|
|
243
|
+
v.prototype._withCommit = function(t) {
|
|
244
|
+
var r = this._committing;
|
|
245
|
+
this._committing = !0, t(), this._committing = r;
|
|
246
|
+
};
|
|
247
|
+
Object.defineProperties(v.prototype, w);
|
|
248
|
+
function A(e, t, r) {
|
|
249
|
+
return t.indexOf(e) < 0 && (r && r.prepend ? t.unshift(e) : t.push(e)), function() {
|
|
250
|
+
var i = t.indexOf(e);
|
|
251
|
+
i > -1 && t.splice(i, 1);
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
function k(e, t) {
|
|
255
|
+
e._actions = /* @__PURE__ */ Object.create(null), e._mutations = /* @__PURE__ */ Object.create(null), e._wrappedGetters = /* @__PURE__ */ Object.create(null), e._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
|
|
256
|
+
var r = e.state;
|
|
257
|
+
$(e, r, [], e._modules.root, !0), C(e, r, t);
|
|
258
|
+
}
|
|
259
|
+
function C(e, t, r) {
|
|
260
|
+
var i = e._vm;
|
|
261
|
+
e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
|
|
262
|
+
var n = e._wrappedGetters, o = {};
|
|
263
|
+
y(n, function(s, a) {
|
|
264
|
+
o[a] = T(s, e), Object.defineProperty(e.getters, a, {
|
|
265
|
+
get: function() {
|
|
266
|
+
return e._vm[a];
|
|
267
|
+
},
|
|
268
|
+
enumerable: !0
|
|
269
|
+
// for local getters
|
|
270
|
+
});
|
|
271
|
+
});
|
|
272
|
+
var u = p.config.silent;
|
|
273
|
+
p.config.silent = !0, e._vm = new p({
|
|
274
|
+
data: {
|
|
275
|
+
$$state: t
|
|
276
|
+
},
|
|
277
|
+
computed: o
|
|
278
|
+
}), p.config.silent = u, e.strict && I(e), i && (r && e._withCommit(function() {
|
|
279
|
+
i._data.$$state = null;
|
|
280
|
+
}), p.nextTick(function() {
|
|
281
|
+
return i.$destroy();
|
|
282
|
+
}));
|
|
283
|
+
}
|
|
284
|
+
function $(e, t, r, i, n) {
|
|
285
|
+
var o = !r.length, u = e._modules.getNamespace(r);
|
|
286
|
+
if (i.namespaced && (e._modulesNamespaceMap[u], e._modulesNamespaceMap[u] = i), !o && !n) {
|
|
287
|
+
var s = M(t, r.slice(0, -1)), a = r[r.length - 1];
|
|
288
|
+
e._withCommit(function() {
|
|
289
|
+
p.set(s, a, i.state);
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
var l = i.context = R(e, u, r);
|
|
293
|
+
i.forEachMutation(function(c, f) {
|
|
294
|
+
var d = u + f;
|
|
295
|
+
U(e, d, c, l);
|
|
296
|
+
}), i.forEachAction(function(c, f) {
|
|
297
|
+
var d = c.root ? f : u + f, h = c.handler || c;
|
|
298
|
+
z(e, d, h, l);
|
|
299
|
+
}), i.forEachGetter(function(c, f) {
|
|
300
|
+
var d = u + f;
|
|
301
|
+
B(e, d, c, l);
|
|
302
|
+
}), i.forEachChild(function(c, f) {
|
|
303
|
+
$(e, t, r.concat(f), c, n);
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
function R(e, t, r) {
|
|
307
|
+
var i = t === "", n = {
|
|
308
|
+
dispatch: i ? e.dispatch : function(o, u, s) {
|
|
309
|
+
var a = b(o, u, s), l = a.payload, c = a.options, f = a.type;
|
|
310
|
+
return (!c || !c.root) && (f = t + f), e.dispatch(f, l);
|
|
311
|
+
},
|
|
312
|
+
commit: i ? e.commit : function(o, u, s) {
|
|
313
|
+
var a = b(o, u, s), l = a.payload, c = a.options, f = a.type;
|
|
314
|
+
(!c || !c.root) && (f = t + f), e.commit(f, l, c);
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
return Object.defineProperties(n, {
|
|
318
|
+
getters: {
|
|
319
|
+
get: i ? function() {
|
|
320
|
+
return e.getters;
|
|
321
|
+
} : function() {
|
|
322
|
+
return D(e, t);
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
state: {
|
|
326
|
+
get: function() {
|
|
327
|
+
return M(e.state, r);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}), n;
|
|
331
|
+
}
|
|
332
|
+
function D(e, t) {
|
|
333
|
+
if (!e._makeLocalGettersCache[t]) {
|
|
334
|
+
var r = {}, i = t.length;
|
|
335
|
+
Object.keys(e.getters).forEach(function(n) {
|
|
336
|
+
if (n.slice(0, i) === t) {
|
|
337
|
+
var o = n.slice(i);
|
|
338
|
+
Object.defineProperty(r, o, {
|
|
339
|
+
get: function() {
|
|
340
|
+
return e.getters[n];
|
|
341
|
+
},
|
|
342
|
+
enumerable: !0
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
}), e._makeLocalGettersCache[t] = r;
|
|
346
|
+
}
|
|
347
|
+
return e._makeLocalGettersCache[t];
|
|
348
|
+
}
|
|
349
|
+
function U(e, t, r, i) {
|
|
350
|
+
var n = e._mutations[t] || (e._mutations[t] = []);
|
|
351
|
+
n.push(function(u) {
|
|
352
|
+
r.call(e, i.state, u);
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
function z(e, t, r, i) {
|
|
356
|
+
var n = e._actions[t] || (e._actions[t] = []);
|
|
357
|
+
n.push(function(u) {
|
|
358
|
+
var s = r.call(e, {
|
|
359
|
+
dispatch: i.dispatch,
|
|
360
|
+
commit: i.commit,
|
|
361
|
+
getters: i.getters,
|
|
362
|
+
state: i.state,
|
|
363
|
+
rootGetters: e.getters,
|
|
364
|
+
rootState: e.state
|
|
365
|
+
}, u);
|
|
366
|
+
return V(s) || (s = Promise.resolve(s)), e._devtoolHook ? s.catch(function(a) {
|
|
367
|
+
throw e._devtoolHook.emit("vuex:error", a), a;
|
|
368
|
+
}) : s;
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
function B(e, t, r, i) {
|
|
372
|
+
e._wrappedGetters[t] || (e._wrappedGetters[t] = function(o) {
|
|
373
|
+
return r(
|
|
374
|
+
i.state,
|
|
375
|
+
// local state
|
|
376
|
+
i.getters,
|
|
377
|
+
// local getters
|
|
378
|
+
o.state,
|
|
379
|
+
// root state
|
|
380
|
+
o.getters
|
|
381
|
+
// root getters
|
|
382
|
+
);
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
function I(e) {
|
|
386
|
+
e._vm.$watch(function() {
|
|
387
|
+
return this._data.$$state;
|
|
388
|
+
}, function() {
|
|
389
|
+
}, { deep: !0, sync: !0 });
|
|
390
|
+
}
|
|
391
|
+
function M(e, t) {
|
|
392
|
+
return t.reduce(function(r, i) {
|
|
393
|
+
return r[i];
|
|
394
|
+
}, e);
|
|
395
|
+
}
|
|
396
|
+
function b(e, t, r) {
|
|
397
|
+
return G(e) && e.type && (r = t, t = e, e = e.type), { type: e, payload: t, options: r };
|
|
398
|
+
}
|
|
399
|
+
function K(e) {
|
|
400
|
+
p && e === p || (p = e, L(p));
|
|
401
|
+
}
|
|
402
|
+
var F = E(function(e, t) {
|
|
403
|
+
var r = {};
|
|
404
|
+
return O(t).forEach(function(i) {
|
|
405
|
+
var n = i.key, o = i.val;
|
|
406
|
+
r[n] = function() {
|
|
407
|
+
var s = this.$store.state, a = this.$store.getters;
|
|
408
|
+
if (e) {
|
|
409
|
+
var l = S(this.$store, "mapState", e);
|
|
410
|
+
if (!l)
|
|
411
|
+
return;
|
|
412
|
+
s = l.context.state, a = l.context.getters;
|
|
413
|
+
}
|
|
414
|
+
return typeof o == "function" ? o.call(this, s, a) : s[o];
|
|
415
|
+
}, r[n].vuex = !0;
|
|
416
|
+
}), r;
|
|
417
|
+
}), J = E(function(e, t) {
|
|
418
|
+
var r = {};
|
|
419
|
+
return O(t).forEach(function(i) {
|
|
420
|
+
var n = i.key, o = i.val;
|
|
421
|
+
o = e + o, r[n] = function() {
|
|
422
|
+
if (!(e && !S(this.$store, "mapGetters", e)))
|
|
423
|
+
return this.$store.getters[o];
|
|
424
|
+
}, r[n].vuex = !0;
|
|
425
|
+
}), r;
|
|
426
|
+
}), Q = E(function(e, t) {
|
|
427
|
+
var r = {};
|
|
428
|
+
return O(t).forEach(function(i) {
|
|
429
|
+
var n = i.key, o = i.val;
|
|
430
|
+
r[n] = function() {
|
|
431
|
+
for (var s = [], a = arguments.length; a--; )
|
|
432
|
+
s[a] = arguments[a];
|
|
433
|
+
var l = this.$store.dispatch;
|
|
434
|
+
if (e) {
|
|
435
|
+
var c = S(this.$store, "mapActions", e);
|
|
436
|
+
if (!c)
|
|
437
|
+
return;
|
|
438
|
+
l = c.context.dispatch;
|
|
439
|
+
}
|
|
440
|
+
return typeof o == "function" ? o.apply(this, [l].concat(s)) : l.apply(this.$store, [o].concat(s));
|
|
441
|
+
};
|
|
442
|
+
}), r;
|
|
443
|
+
});
|
|
444
|
+
function O(e) {
|
|
445
|
+
return q(e) ? Array.isArray(e) ? e.map(function(t) {
|
|
446
|
+
return { key: t, val: t };
|
|
447
|
+
}) : Object.keys(e).map(function(t) {
|
|
448
|
+
return { key: t, val: e[t] };
|
|
449
|
+
}) : [];
|
|
450
|
+
}
|
|
451
|
+
function q(e) {
|
|
452
|
+
return Array.isArray(e) || G(e);
|
|
453
|
+
}
|
|
454
|
+
function E(e) {
|
|
455
|
+
return function(t, r) {
|
|
456
|
+
return typeof t != "string" ? (r = t, t = "") : t.charAt(t.length - 1) !== "/" && (t += "/"), e(t, r);
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
function S(e, t, r) {
|
|
460
|
+
var i = e._modulesNamespaceMap[r];
|
|
461
|
+
return i;
|
|
462
|
+
}
|
|
463
|
+
export {
|
|
464
|
+
Q as a,
|
|
465
|
+
F as b,
|
|
466
|
+
J as m
|
|
467
|
+
};
|
package/package.json
CHANGED