@cling-se/widget 0.17.2 → 0.18.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.
Files changed (232) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/AddClientCallout-Bod9Eqx4.js +101 -0
  3. package/dist/AnswerModal-a2cyKFbt.js +3371 -0
  4. package/dist/AttachmentItem-DBUqckCS.js +171 -0
  5. package/dist/BaseUpload-DrWzuvbS.js +6503 -0
  6. package/dist/BlockMedia-DuE_K9hR.js +103 -0
  7. package/dist/CCallout-CM1VsH30.js +104 -0
  8. package/dist/{CCurrencyDropdown-CKRgncWy.js → CCurrencyDropdown-C_lAaq4P.js} +91 -53
  9. package/dist/CDropdownItem-DMUAJ90n.js +749 -0
  10. package/dist/CFormField.vue_vue_type_script_setup_true_lang-BqAyWe3T.js +292 -0
  11. package/dist/{CPhoneFormat-Bd-HZuYo.js → CPhoneFormat-Dnn_cKk7.js} +13 -21
  12. package/dist/CPhoneInput-DuGkDiv-.js +207 -0
  13. package/dist/CPriceInput-B7DYzKcF.js +142 -0
  14. package/dist/CSelect-BZZDr27O.js +98 -0
  15. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-D2jDhnYI.js +51 -0
  16. package/dist/ClientAutocomplete-DuaJ5zDf.js +532 -0
  17. package/dist/ClientModal-CaMSjLkD.js +1188 -0
  18. package/dist/ColorPicker-BISZPQ6j.js +1408 -0
  19. package/dist/CompanyModal-ClTcmU4Y.js +250 -0
  20. package/dist/ContentWrapper-Bj7jbWU0.js +265 -0
  21. package/dist/CoverBlockSettings-AXyiLxrF.js +861 -0
  22. package/dist/DocAnswer-Bu09V33D.js +33 -0
  23. package/dist/DocDetails-B6-2LKsO.js +452 -0
  24. package/dist/DocForm-CFN8LWSd.js +6772 -0
  25. package/dist/DocFormSend-D1CUhy4n.js +171 -0
  26. package/dist/DocLinks-CuliFqtN.js +36 -0
  27. package/dist/DocModalBase-BxKsnwN-.js +29 -0
  28. package/dist/DocPrint-B_HJ_RET.js +399 -0
  29. package/dist/DocReceipt-D-A1TaTI.js +341 -0
  30. package/dist/DocSendReminder-BKTJonzh.js +181 -0
  31. package/dist/{DocTextEditor-DFid7uKr.js → DocTextEditor-CEPcJT2o.js} +7907 -5579
  32. package/dist/DocTimeline-CF9S4YDZ.js +537 -0
  33. package/dist/DocumentClient-7mbq2QA4.js +90 -0
  34. package/dist/DocumentLayout-DkFlHgW6.js +1434 -0
  35. package/dist/DocumentLogotype-BTYMdpNi.js +162 -0
  36. package/dist/DocumentVoided-CWr5WMUv.js +33 -0
  37. package/dist/EmbedInput-SevVEpwc.js +156 -0
  38. package/dist/EmbedSettings-YMbUmp1O.js +103 -0
  39. package/dist/ErrorCallout-CQo2iF9c.js +34 -0
  40. package/dist/FilePreviewModal-C0xBeoAz.js +202 -0
  41. package/dist/Flag-BObij6SN.js +41 -0
  42. package/dist/HeaderSettings-C77pR78n.js +720 -0
  43. package/dist/ImageSelectModal-DKdU-0uq.js +119 -0
  44. package/dist/ImageUploadWrapper-BGkS5Cll.js +1585 -0
  45. package/dist/Index-B3y-jq9s.js +1098 -0
  46. package/dist/Index-B41pUREi.js +47 -0
  47. package/dist/Index-BEyeS1OG.js +52 -0
  48. package/dist/Index-BG5j8ZFP.js +93 -0
  49. package/dist/Index-BOT65yQR.js +68 -0
  50. package/dist/Index-BQNl-cXP.js +28 -0
  51. package/dist/Index-BY6xsS7C.js +38 -0
  52. package/dist/Index-Bh0Xv5ry.js +163 -0
  53. package/dist/Index-Bn4FSQcx.js +228 -0
  54. package/dist/Index-BrRIAede.js +87 -0
  55. package/dist/Index-C-6um0kX.js +76 -0
  56. package/dist/{Index-EO0rsTmx.js → Index-C-gHa5xk.js} +319 -214
  57. package/dist/Index-C0wcjKCH.js +629 -0
  58. package/dist/Index-C6BbUFYw.js +160 -0
  59. package/dist/Index-C8xwJ0m1.js +200 -0
  60. package/dist/Index-CKgFEJF4.js +140 -0
  61. package/dist/{Index-CbYLDVU5.js → Index-CQwmu4f1.js} +47 -60
  62. package/dist/Index-CXchTpBa.js +74 -0
  63. package/dist/{Index-BzcZCdHj.js → Index-CYoRt8PA.js} +9 -17
  64. package/dist/Index-CZZNQ4q5.js +39 -0
  65. package/dist/Index-CkaAs5ms.js +136 -0
  66. package/dist/Index-CtpXaBz8.js +363 -0
  67. package/dist/Index-CxDsSGtZ.js +126 -0
  68. package/dist/Index-DFkTBm02.js +102 -0
  69. package/dist/Index-DP3ll8F-.js +70 -0
  70. package/dist/{Index-BdJbs8bM.js → Index-DPDzMKQa.js} +10 -18
  71. package/dist/Index-DvxSig3z.js +25 -0
  72. package/dist/Index-Dzrn3Y6p.js +16 -0
  73. package/dist/{Index-BWnh94_i.js → Index-LQb0omFE.js} +10 -18
  74. package/dist/Index-Mt4mSaNT.js +4 -0
  75. package/dist/Index-_xN_cczo.js +3477 -0
  76. package/dist/Index-gAz45qgR.js +21 -0
  77. package/dist/Index-xXLFalgR.js +49 -0
  78. package/dist/Index-zyZRPz3H.js +28 -0
  79. package/dist/Index.vue_vue_type_script_lang-Ddo1wo-D.js +671 -0
  80. package/dist/InputToggleRow-CokEYwm2.js +99 -0
  81. package/dist/ManualPopover-Dukly7GP.js +65 -0
  82. package/dist/MediaWrapper-B8msCrQm.js +18 -0
  83. package/dist/{NotBindingText-D8Blua5a.js → NotBindingText-DcQd8Eej.js} +13 -17
  84. package/dist/PackageGroup-clUIUoik.js +1060 -0
  85. package/dist/PdfTerms-DpzMVRfN.js +34 -0
  86. package/dist/PdfViewer-CSf4Rtbj.js +392 -0
  87. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6KSjjMA.js +17 -0
  88. package/dist/PriceHeader-Dyweu8aH.js +488 -0
  89. package/dist/{SearchApi-Bg9FwkW0.js → SearchApi-Y1fDQn0u.js} +37 -49
  90. package/dist/SendForm-B9l24WwR.js +6689 -0
  91. package/dist/Setup-DyzbPFM4.js +47 -0
  92. package/dist/{SmartList-DofjZjfy.js → SmartList-CWGKoAJh.js} +16 -24
  93. package/dist/Sortable.vue_vue_type_script_setup_true_lang-C2Gwp6Q-.js +1349 -0
  94. package/dist/{TermsSettings-B4glHd0I.js → TermsSettings-BeQH307A.js} +169 -56
  95. package/dist/ThemeColorRow-DFIsPy55.js +105 -0
  96. package/dist/ToggleBinding-DlH4y1IM.js +44 -0
  97. package/dist/UploadModal-BZ0mPBBB.js +134 -0
  98. package/dist/VideoPlayerInput-DBxcTUb7.js +134 -0
  99. package/dist/VideoPlayerSettings-Dg1OxjOa.js +78 -0
  100. package/dist/VideoSelectModal-BhbanMix.js +217 -0
  101. package/dist/{anime.es-BrPTThYb.js → anime.es-4wvNItHq.js} +205 -201
  102. package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
  103. package/dist/{dom-Ds4ypDrd.js → dom-CkTGWrfu.js} +3 -6
  104. package/dist/{focusDrawerMixin-DVCJIsb_.js → focusDrawerMixin-BVbTYOGr.js} +1 -1
  105. package/dist/{formDrawerState-BYsq1pB0.js → formDrawerState-CogZ-GVm.js} +2 -2
  106. package/dist/helpers-B4GUxtdD.js +46 -0
  107. package/dist/index-BZDey7B-.js +268 -0
  108. package/dist/index-Bd8_ZHHq.js +188 -0
  109. package/dist/index-BvyoYp1e.js +508 -0
  110. package/dist/index-CJZoubA3.js +3525 -0
  111. package/dist/index-D7yQWP4d.js +125 -0
  112. package/dist/index-D8hGHka6.js +513 -0
  113. package/dist/index-Dxy4tf7x.js +149 -0
  114. package/dist/index.es.js +2 -5
  115. package/dist/index.umd.js +303 -1486
  116. package/dist/main-Bn5XkQPb.js +57570 -0
  117. package/dist/mapFormMixin-C7FJLnbO.js +1528 -0
  118. package/dist/omit-DrWpFvRJ.js +56 -0
  119. package/dist/{publicSenderState-C4cIGu3m.js → publicSenderState-tdtCFPMx.js} +4 -4
  120. package/dist/splitpanes-BApidgjj.js +342 -0
  121. package/dist/template-CHdf2K2I.js +1572 -0
  122. package/dist/tippy.esm-Co6FYzEM.js +1994 -0
  123. package/dist/useTermsModal-VDnO1Lro.js +87 -0
  124. package/dist/{utils-CMs9ODO8.js → utils-DZkn0Q9c.js} +8 -11
  125. package/dist/validation-CqBkar3f.js +40 -0
  126. package/dist/widget.css +1 -0
  127. package/package.json +20 -25
  128. package/dist/AddClientCallout-TF4dWJwb.js +0 -48
  129. package/dist/AnswerModal-CLHDa2TD.js +0 -3879
  130. package/dist/AttachmentItem-ICP5nbhT.js +0 -85
  131. package/dist/BaseDatePicker-wwmiz_b5.js +0 -3187
  132. package/dist/BaseUpload-CDZOjohX.js +0 -1977
  133. package/dist/BlockMedia-D1JAYF9F.js +0 -76
  134. package/dist/CCallout-dAjcZXrm.js +0 -58
  135. package/dist/CDropdownItem-CkSNbSdj.js +0 -640
  136. package/dist/CFormField-Dw6UM1u6.js +0 -240
  137. package/dist/CPhoneInput-Dd6cJ4jg.js +0 -138
  138. package/dist/CPriceInput-CjV95s8E.js +0 -116
  139. package/dist/CSelect-izVnsQME.js +0 -91
  140. package/dist/CSkeleton-C0TjtLtY.js +0 -55
  141. package/dist/ClientAutocomplete-Cfu3abEx.js +0 -438
  142. package/dist/ClientModal-DjSoPQ9x.js +0 -666
  143. package/dist/ColorPicker-DZP6FIdn.js +0 -2879
  144. package/dist/CompanyModal-BYQWdbhG.js +0 -147
  145. package/dist/ContentWrapper-Bci9pSEp.js +0 -190
  146. package/dist/CoverBlockSettings-wD55bj3k.js +0 -659
  147. package/dist/DocAnswer-B5q-ntKP.js +0 -36
  148. package/dist/DocDetails-BQuaNZ4b.js +0 -263
  149. package/dist/DocForm-QzZ5wqsS.js +0 -5017
  150. package/dist/DocFormSend-CORtQPhb.js +0 -146
  151. package/dist/DocLinks-DZPzODUe.js +0 -38
  152. package/dist/DocModalBase-TTALjv6K.js +0 -28
  153. package/dist/DocPrint-BB-KT9ut.js +0 -240
  154. package/dist/DocReceipt-CGks1GLS.js +0 -217
  155. package/dist/DocSendReminder-BBQXJbsV.js +0 -140
  156. package/dist/DocTimeline-4jnYDmBI.js +0 -485
  157. package/dist/DocumentClient-BAAX7Dxk.js +0 -136
  158. package/dist/DocumentLayout-C4edCFmr.js +0 -4880
  159. package/dist/DocumentLogotype-i7YSQKcH.js +0 -92
  160. package/dist/DocumentVoided-BvZoMFB_.js +0 -25
  161. package/dist/EmbedInput-Bij7ER30.js +0 -117
  162. package/dist/EmbedSettings-D0oyq4-9.js +0 -74
  163. package/dist/ErrorCallout-CsW3WTZp.js +0 -27
  164. package/dist/FilePreviewModal-Doaawg0l.js +0 -81
  165. package/dist/Flag-C4Mf2xUU.js +0 -46
  166. package/dist/HeaderSettings-DwZ54IsK.js +0 -440
  167. package/dist/ImageSelectModal-ClFJ5uXM.js +0 -86
  168. package/dist/ImageUploadWrapper-DtEp_Pg3.js +0 -1604
  169. package/dist/Index-2MwnGZ_4.js +0 -25
  170. package/dist/Index-3CwdeytO.js +0 -107
  171. package/dist/Index-B-bSVOoh.js +0 -73
  172. package/dist/Index-BDyMp1ib.js +0 -643
  173. package/dist/Index-BMgtwHVA.js +0 -24
  174. package/dist/Index-BTD3hWbY.js +0 -54
  175. package/dist/Index-BUbd06rz.js +0 -144
  176. package/dist/Index-Bv2XrpgK.js +0 -25
  177. package/dist/Index-C00Ay-7P.js +0 -62
  178. package/dist/Index-CHL_6WQH.js +0 -66
  179. package/dist/Index-CLyNrkJA.js +0 -28
  180. package/dist/Index-CV57PvUE.js +0 -26
  181. package/dist/Index-Crj4apcP.js +0 -146
  182. package/dist/Index-CryBgLTa.js +0 -294
  183. package/dist/Index-Cv33nreP.js +0 -33
  184. package/dist/Index-D0ErQJ2M.js +0 -2445
  185. package/dist/Index-D8ZnVbsP.js +0 -32
  186. package/dist/Index-DPNIJewY.js +0 -56
  187. package/dist/Index-DVXhB0Ja.js +0 -58
  188. package/dist/Index-DWhQwxeB.js +0 -94
  189. package/dist/Index-DX7tomhl.js +0 -230
  190. package/dist/Index-D_AdmLWe.js +0 -41
  191. package/dist/Index-DgTQzlfK.js +0 -754
  192. package/dist/Index-DhapmO-4.js +0 -55
  193. package/dist/Index-DjC8joRt.js +0 -150
  194. package/dist/Index-Dv4l4LKF.js +0 -154
  195. package/dist/Index-TTFKPIIC.js +0 -84
  196. package/dist/Index-cT8oYfLR.js +0 -41
  197. package/dist/Index-igPwrQMu.js +0 -77
  198. package/dist/InputToggleRow-BgOubdXs.js +0 -57
  199. package/dist/ManualPopover-8suun-i9.js +0 -60
  200. package/dist/MediaWrapper-BadblLbS.js +0 -23
  201. package/dist/PackageGroup-BxmqH6qI.js +0 -704
  202. package/dist/PdfTerms-C6MRk0Ix.js +0 -31
  203. package/dist/PdfViewer-DUoiQx_1.js +0 -383
  204. package/dist/PlainHtml-DZ9V0Yuf.js +0 -27
  205. package/dist/PriceHeader-C3_CoKrL.js +0 -338
  206. package/dist/SendForm-D-OvqCee.js +0 -1023
  207. package/dist/Setup-CwK4er2y.js +0 -50
  208. package/dist/ThemeColorRow-BplIaxA2.js +0 -69
  209. package/dist/ToggleBinding-6ntt38Ye.js +0 -42
  210. package/dist/UploadModal-B6jQzsYA.js +0 -95
  211. package/dist/VideoPlayerInput-ryP77WC0.js +0 -97
  212. package/dist/VideoPlayerSettings-DJh0JNRI.js +0 -61
  213. package/dist/VideoSelectModal-8udQ394X.js +0 -104
  214. package/dist/answerDocumentMixin-CF4J_vsp.js +0 -51
  215. package/dist/debounce-CgyZi04Q.js +0 -84
  216. package/dist/formValidationMixin-Dq7aZhBk.js +0 -49
  217. package/dist/index-2Q8Ejpof.js +0 -167
  218. package/dist/index-B5-izJkt.js +0 -102
  219. package/dist/index-BQb6k0M8.js +0 -351
  220. package/dist/index-CR-KQfRE.js +0 -81
  221. package/dist/index-CogHiXWx.js +0 -2700
  222. package/dist/index-lZ1sSNWc.js +0 -492
  223. package/dist/main-BpqUyMpC.js +0 -57349
  224. package/dist/mapFormMixin-rxtAFyFK.js +0 -3028
  225. package/dist/omit-C7FeydiO.js +0 -31
  226. package/dist/simplebar.min-Dm388s-3.js +0 -71
  227. package/dist/splitpanes-BHUVsCZF.js +0 -382
  228. package/dist/style.css +0 -4
  229. package/dist/throttle-CfcsX8nA.js +0 -18
  230. package/dist/tippy.esm-C9mV-Rzr.js +0 -1805
  231. package/dist/vuedraggable.umd-CChGnToh.js +0 -3161
  232. package/dist/vuex.esm-DKGl8mcw.js +0 -467
@@ -1,467 +0,0 @@
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
- };