@cling-se/widget 0.17.3 → 0.18.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.
Files changed (232) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/AddClientCallout-CCt78VvH.js +101 -0
  3. package/dist/AnswerModal-B4LwVv2N.js +3371 -0
  4. package/dist/AttachmentItem-DnvYffKP.js +171 -0
  5. package/dist/BaseUpload-DFoV0ZLe.js +6503 -0
  6. package/dist/BlockMedia-Amo_kdHo.js +103 -0
  7. package/dist/CCallout-Gd06ds6O.js +104 -0
  8. package/dist/{CCurrencyDropdown-CXXQu8th.js → CCurrencyDropdown-B4GNmOGA.js} +91 -53
  9. package/dist/CDropdownItem-BUNVCpSR.js +749 -0
  10. package/dist/CFormField.vue_vue_type_script_setup_true_lang-Bo2J0c4G.js +292 -0
  11. package/dist/{CPhoneFormat-BtBGl8b4.js → CPhoneFormat-DmN5r9Ci.js} +13 -21
  12. package/dist/CPhoneInput-B6iyhsOG.js +207 -0
  13. package/dist/CPriceInput-BLQaNu1d.js +142 -0
  14. package/dist/CSelect-BVO9iO9L.js +98 -0
  15. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-C9loRtrk.js +51 -0
  16. package/dist/ClientAutocomplete-C__yUaxD.js +532 -0
  17. package/dist/ClientModal-B9cbuEiC.js +1188 -0
  18. package/dist/ColorPicker-G2kkxL7_.js +1408 -0
  19. package/dist/CompanyModal-por9AG4P.js +250 -0
  20. package/dist/ContentWrapper-CQtaGA2u.js +265 -0
  21. package/dist/CoverBlockSettings-BCBDouyl.js +861 -0
  22. package/dist/DocAnswer-BrKctwrY.js +33 -0
  23. package/dist/DocDetails-B_LWVHGt.js +452 -0
  24. package/dist/DocForm-D6T7NmfO.js +6772 -0
  25. package/dist/DocFormSend-COYPrhl7.js +171 -0
  26. package/dist/DocLinks-B0LjxXIk.js +36 -0
  27. package/dist/DocModalBase-DObZHuYr.js +29 -0
  28. package/dist/DocPrint-CkDq78fB.js +399 -0
  29. package/dist/DocReceipt-CYBPyePC.js +341 -0
  30. package/dist/DocSendReminder-Dau6s43e.js +181 -0
  31. package/dist/{DocTextEditor-yD9Dt_um.js → DocTextEditor-CVn6gE1i.js} +7907 -5579
  32. package/dist/DocTimeline-ChBDPOfd.js +537 -0
  33. package/dist/DocumentClient-MLXzzXLb.js +90 -0
  34. package/dist/DocumentLayout-BMHOt380.js +1434 -0
  35. package/dist/DocumentLogotype-Clj3fopX.js +162 -0
  36. package/dist/DocumentVoided-B5_MSBbC.js +33 -0
  37. package/dist/EmbedInput-CzkOa02p.js +156 -0
  38. package/dist/EmbedSettings-Cf_F3KrM.js +103 -0
  39. package/dist/ErrorCallout-CJn6NCse.js +34 -0
  40. package/dist/FilePreviewModal-Di1VnPNY.js +202 -0
  41. package/dist/Flag-C4_G5IY1.js +41 -0
  42. package/dist/HeaderSettings-DWN0TjVD.js +720 -0
  43. package/dist/ImageSelectModal-DmAJ9PrN.js +119 -0
  44. package/dist/ImageUploadWrapper-QLEhA_dI.js +1585 -0
  45. package/dist/Index-B06eCuBA.js +76 -0
  46. package/dist/Index-B8Zj0-MX.js +87 -0
  47. package/dist/{Index-C_aIQ908.js → Index-BBBXL4zh.js} +319 -214
  48. package/dist/Index-BCHLxp7B.js +21 -0
  49. package/dist/Index-BDAp1CwZ.js +363 -0
  50. package/dist/Index-BFbcjFo4.js +16 -0
  51. package/dist/{Index-CRiATiQn.js → Index-BODJXJNp.js} +10 -18
  52. package/dist/Index-BOx_9tTM.js +136 -0
  53. package/dist/Index-BgZNiD7A.js +47 -0
  54. package/dist/Index-Bt97lEsI.js +228 -0
  55. package/dist/Index-C9aBeBBk.js +70 -0
  56. package/dist/Index-CE3pWPzp.js +49 -0
  57. package/dist/Index-CMdPSsp4.js +38 -0
  58. package/dist/Index-CNhBDG2e.js +126 -0
  59. package/dist/Index-CdsOdgG2.js +28 -0
  60. package/dist/{Index-Ch9r5yhG.js → Index-CmxFh3dW.js} +9 -17
  61. package/dist/Index-CpxzwwQS.js +52 -0
  62. package/dist/Index-CxTwWRD9.js +93 -0
  63. package/dist/Index-D9WFWlE6.js +140 -0
  64. package/dist/Index-D9bulLeI.js +39 -0
  65. package/dist/{Index-RWMPRDAE.js → Index-DL_9LzoR.js} +10 -18
  66. package/dist/Index-DR-sGE3Y.js +25 -0
  67. package/dist/Index-DRoOW5Pn.js +163 -0
  68. package/dist/Index-DTn47-hP.js +74 -0
  69. package/dist/Index-DeGDlj0B.js +68 -0
  70. package/dist/Index-DhYYK4bK.js +28 -0
  71. package/dist/Index-Dssdb-0Z.js +629 -0
  72. package/dist/Index-OcBnU480.js +200 -0
  73. package/dist/Index-Qh_8JqAv.js +3477 -0
  74. package/dist/Index-W10PQb8i.js +102 -0
  75. package/dist/Index-lbWFEELM.js +4 -0
  76. package/dist/Index-qFAg7VVU.js +1098 -0
  77. package/dist/Index-rDndJKo1.js +160 -0
  78. package/dist/{Index-Dfq7egc1.js → Index-s-6Qh_NE.js} +47 -60
  79. package/dist/Index.vue_vue_type_script_lang-CriDqp1F.js +671 -0
  80. package/dist/InputToggleRow-DJarYsVL.js +99 -0
  81. package/dist/ManualPopover-BMrkEHtV.js +65 -0
  82. package/dist/MediaWrapper-BYdVpmov.js +18 -0
  83. package/dist/{NotBindingText-CC7TxUqg.js → NotBindingText-DGjJoN8-.js} +13 -17
  84. package/dist/PackageGroup-q7_oBOqw.js +1060 -0
  85. package/dist/PdfTerms-DBEClYQ5.js +34 -0
  86. package/dist/PdfViewer-C_y5sqXB.js +392 -0
  87. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D5ZLw34T.js +17 -0
  88. package/dist/PriceHeader-BSwv3mzc.js +488 -0
  89. package/dist/{SearchApi-G2Hvp0Dd.js → SearchApi-BM6TTqxW.js} +37 -49
  90. package/dist/SendForm-DfmBbhp9.js +6689 -0
  91. package/dist/Setup-BC1feKr_.js +47 -0
  92. package/dist/{SmartList-BynTuXtB.js → SmartList-B3pgsg4S.js} +16 -24
  93. package/dist/Sortable.vue_vue_type_script_setup_true_lang-YOP-Y07m.js +1349 -0
  94. package/dist/{TermsSettings-cA5YAO77.js → TermsSettings-DEkACrRU.js} +169 -56
  95. package/dist/ThemeColorRow-qG8Dkkyj.js +105 -0
  96. package/dist/ToggleBinding-Cdtl_-1s.js +44 -0
  97. package/dist/UploadModal-1OWPRxA5.js +134 -0
  98. package/dist/VideoPlayerInput-DgFNjiKK.js +134 -0
  99. package/dist/VideoPlayerSettings-CFuA-7RC.js +78 -0
  100. package/dist/VideoSelectModal-CSv67eA8.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-CximZA1J.js → focusDrawerMixin-r-OZchfV.js} +1 -1
  105. package/dist/{formDrawerState-CkNGdxn5.js → formDrawerState-COVczNhJ.js} +2 -2
  106. package/dist/helpers-ChwW54Ex.js +46 -0
  107. package/dist/index-BMZle8Ew.js +513 -0
  108. package/dist/index-Bf-fiKJf.js +268 -0
  109. package/dist/index-Bg4JRi5S.js +125 -0
  110. package/dist/index-C7chK2UD.js +3525 -0
  111. package/dist/index-CR52qIBO.js +149 -0
  112. package/dist/index-D1x9O_nJ.js +188 -0
  113. package/dist/index-YFcPqc9m.js +508 -0
  114. package/dist/index.es.js +2 -5
  115. package/dist/index.umd.js +303 -1486
  116. package/dist/main-DI0diChK.js +57570 -0
  117. package/dist/mapFormMixin-Cgvwie9a.js +1528 -0
  118. package/dist/omit-DpjD7Dj9.js +56 -0
  119. package/dist/{publicSenderState-CGEm9EYe.js → publicSenderState-BcjNldje.js} +4 -4
  120. package/dist/splitpanes-BypKTSRL.js +342 -0
  121. package/dist/template-Dzexob5I.js +1572 -0
  122. package/dist/tippy.esm-0UMN6kWf.js +1994 -0
  123. package/dist/useTermsModal-DzH_PDFP.js +87 -0
  124. package/dist/{utils-Dr4AcaE9.js → utils--kBYCNZD.js} +8 -11
  125. package/dist/validation-B-omH73u.js +40 -0
  126. package/dist/widget.css +1 -0
  127. package/package.json +20 -25
  128. package/dist/AddClientCallout-Br6IhwGH.js +0 -48
  129. package/dist/AnswerModal-CsWltR6j.js +0 -3879
  130. package/dist/AttachmentItem-BG7FuSCD.js +0 -85
  131. package/dist/BaseDatePicker-PSNBtUIh.js +0 -3187
  132. package/dist/BaseUpload-BfEurAAV.js +0 -1977
  133. package/dist/BlockMedia-Bo3OfNSU.js +0 -76
  134. package/dist/CCallout-CAjM8-1X.js +0 -58
  135. package/dist/CDropdownItem-CN7gSfgY.js +0 -640
  136. package/dist/CFormField-Clvcf2Jh.js +0 -240
  137. package/dist/CPhoneInput-CEHXh5jM.js +0 -138
  138. package/dist/CPriceInput-D2c07SXp.js +0 -116
  139. package/dist/CSelect-Cz2IPzxS.js +0 -91
  140. package/dist/CSkeleton-AsnvnD-m.js +0 -55
  141. package/dist/ClientAutocomplete-CZ55-DKe.js +0 -438
  142. package/dist/ClientModal-CgUhWZ5L.js +0 -666
  143. package/dist/ColorPicker-IFGHqH-u.js +0 -2879
  144. package/dist/CompanyModal-TLSBFo3U.js +0 -147
  145. package/dist/ContentWrapper-HClxKPuT.js +0 -190
  146. package/dist/CoverBlockSettings-D99hAa6e.js +0 -659
  147. package/dist/DocAnswer-CTV_Bpt7.js +0 -36
  148. package/dist/DocDetails-CQe5htXj.js +0 -263
  149. package/dist/DocForm-6Efv5_oz.js +0 -5017
  150. package/dist/DocFormSend-DbXcklxU.js +0 -146
  151. package/dist/DocLinks-BO545zbL.js +0 -38
  152. package/dist/DocModalBase-DXHNJ-6i.js +0 -28
  153. package/dist/DocPrint-Bf2U4FQN.js +0 -240
  154. package/dist/DocReceipt-CWXvC7bY.js +0 -217
  155. package/dist/DocSendReminder-CRzBM2NJ.js +0 -140
  156. package/dist/DocTimeline-DGVOk8-2.js +0 -485
  157. package/dist/DocumentClient-Das9BaJ7.js +0 -136
  158. package/dist/DocumentLayout-4q8rmTVT.js +0 -4880
  159. package/dist/DocumentLogotype-DLncJJAB.js +0 -92
  160. package/dist/DocumentVoided-CcI9lX27.js +0 -25
  161. package/dist/EmbedInput-BPdy0lGS.js +0 -117
  162. package/dist/EmbedSettings-L2iwYLQK.js +0 -74
  163. package/dist/ErrorCallout-Ds_tBT02.js +0 -27
  164. package/dist/FilePreviewModal-hxUu330p.js +0 -81
  165. package/dist/Flag-1-HcT5Dz.js +0 -46
  166. package/dist/HeaderSettings-C27fMugK.js +0 -440
  167. package/dist/ImageSelectModal-BKDIyxF4.js +0 -86
  168. package/dist/ImageUploadWrapper-BiYzUQur.js +0 -1604
  169. package/dist/Index-5BOWxcPG.js +0 -26
  170. package/dist/Index-B1Odktov.js +0 -754
  171. package/dist/Index-B3d5BjEn.js +0 -25
  172. package/dist/Index-B3sSU_4X.js +0 -54
  173. package/dist/Index-B5Dqsh3K.js +0 -150
  174. package/dist/Index-B6aO1c_w.js +0 -62
  175. package/dist/Index-BGfICxJQ.js +0 -643
  176. package/dist/Index-BHopC0hv.js +0 -24
  177. package/dist/Index-BJXcSmp_.js +0 -55
  178. package/dist/Index-BQe6QjQZ.js +0 -25
  179. package/dist/Index-BmXx_x6t.js +0 -77
  180. package/dist/Index-C692qMTG.js +0 -294
  181. package/dist/Index-CEvbw-3i.js +0 -41
  182. package/dist/Index-CYSULnpn.js +0 -32
  183. package/dist/Index-CdtYzwAM.js +0 -107
  184. package/dist/Index-CetF2FW0.js +0 -230
  185. package/dist/Index-Cv6XLM20.js +0 -73
  186. package/dist/Index-Cwy8ff76.js +0 -154
  187. package/dist/Index-D34z4UEY.js +0 -84
  188. package/dist/Index-DNCei-lp.js +0 -56
  189. package/dist/Index-DUbxgIYB.js +0 -2445
  190. package/dist/Index-DVwn_LLf.js +0 -28
  191. package/dist/Index-Dla-mesV.js +0 -146
  192. package/dist/Index-KtUkOPI2.js +0 -58
  193. package/dist/Index-LjnOTVJk.js +0 -66
  194. package/dist/Index-ky1SRtfY.js +0 -94
  195. package/dist/Index-mceZW2NX.js +0 -41
  196. package/dist/Index-tD3hZjh8.js +0 -144
  197. package/dist/Index-vM5kDtC2.js +0 -33
  198. package/dist/InputToggleRow-BmDuSbE2.js +0 -57
  199. package/dist/ManualPopover-CQfjPvFe.js +0 -60
  200. package/dist/MediaWrapper-DDzcjR6V.js +0 -23
  201. package/dist/PackageGroup-mAGXfZDv.js +0 -704
  202. package/dist/PdfTerms-BH_Nwf2h.js +0 -31
  203. package/dist/PdfViewer-mBLxI8bA.js +0 -383
  204. package/dist/PlainHtml-B7gUNNZd.js +0 -27
  205. package/dist/PriceHeader-DClYMPcq.js +0 -338
  206. package/dist/SendForm-Cxv_m8Rq.js +0 -1023
  207. package/dist/Setup-B90VDZTG.js +0 -50
  208. package/dist/ThemeColorRow-D-Z7w4Wk.js +0 -69
  209. package/dist/ToggleBinding-DOeTcWzi.js +0 -42
  210. package/dist/UploadModal-DOPLVEpV.js +0 -95
  211. package/dist/VideoPlayerInput-1zG06elO.js +0 -97
  212. package/dist/VideoPlayerSettings-O-4rAYYh.js +0 -61
  213. package/dist/VideoSelectModal-DzqFrqCg.js +0 -104
  214. package/dist/answerDocumentMixin-HBiNWYCH.js +0 -51
  215. package/dist/debounce-Ch1d3526.js +0 -84
  216. package/dist/formValidationMixin-D_MzsHsR.js +0 -49
  217. package/dist/index-BNdbPq4J.js +0 -492
  218. package/dist/index-BXzugeJ6.js +0 -81
  219. package/dist/index-C5wcxrC6.js +0 -167
  220. package/dist/index-CgDOs7t4.js +0 -2700
  221. package/dist/index-Cj-_2coz.js +0 -351
  222. package/dist/index-DpqV5y0K.js +0 -102
  223. package/dist/main-BL_yzf2r.js +0 -57357
  224. package/dist/mapFormMixin-Cu_vkTP-.js +0 -3028
  225. package/dist/omit-Dfe_H1Ft.js +0 -31
  226. package/dist/simplebar.min-CRlLD1Oz.js +0 -71
  227. package/dist/splitpanes-BHUVsCZF.js +0 -382
  228. package/dist/style.css +0 -4
  229. package/dist/throttle-BX_w77tW.js +0 -18
  230. package/dist/tippy.esm-n4arfVzA.js +0 -1805
  231. package/dist/vuedraggable.umd-DW4PJoZ3.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
- };