@solvimon/solvimon-web 0.1.0-alpha.7 → 0.1.0-alpha.8

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 (202) hide show
  1. package/dist/ApiStatus-CyNDp_op.mjs +9 -0
  2. package/dist/ApiStatus-oqvUEWJx.js +1 -0
  3. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C-C0i6i6.js +1 -0
  4. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CupcH8TZ.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CT0Tjsnw.mjs} +2 -4
  5. package/dist/{ContentWithAsideLayout-Ct24RV-2.mjs → ContentWithAsideLayout-BTdixy3L.mjs} +2 -11
  6. package/dist/ContentWithAsideLayout-oAYVrLvL.js +1 -0
  7. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZJ0xukI.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CK73bYUe.mjs} +2 -5
  8. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CLU7Yiyx.js +1 -0
  9. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B_WLgBur.js +1 -0
  10. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DsrBsrtk.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dt_Vb7Wz.mjs} +1 -2
  11. package/dist/PaymentHistoryBlock-DHM-3fh-.js +1 -0
  12. package/dist/PaymentHistoryBlock-YzJ6bxKr.mjs +4 -0
  13. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BnKwmJ2s.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D6Cr2Uga.mjs} +1 -5
  14. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DFw8lrDv.js +1 -0
  15. package/dist/PaymentIntegrationForm-Cl5ua8v8.js +1 -0
  16. package/dist/PaymentIntegrationForm-ID4QnvA3.mjs +4 -0
  17. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BE1lWOk9.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CVWPT3Ni.mjs} +32 -189
  18. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DifRn1ok.js +1 -0
  19. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CKNMt-JH.js +1 -0
  20. package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-BbvDXvIS.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-CzS32ZUt.mjs} +5 -31
  21. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DVhJy0t8.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BIxGqr9U.mjs} +4 -7
  22. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CpEqDnO3.js +1 -0
  23. package/dist/adyenLoader-CEH4A2b2.js +1 -0
  24. package/dist/adyenLoader-gsbzSjYV.mjs +177 -0
  25. package/dist/component-C2Gc-wsE.js +1 -0
  26. package/dist/component-CM9g6tbD.mjs +804 -0
  27. package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
  28. package/dist/components/BillingInformation/BillingInformation.es.js +3 -7
  29. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
  30. package/dist/components/BillingInformationForm/BillingInformationForm.es.js +9 -17
  31. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
  32. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +3 -7
  33. package/dist/components/Invoice/Invoice.cjs.js +1 -1
  34. package/dist/components/Invoice/Invoice.es.js +42 -2659
  35. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
  36. package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -7
  37. package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
  38. package/dist/components/InvoicesList/InvoicesList.es.js +2 -6
  39. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
  40. package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -7
  41. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
  42. package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +7 -33
  43. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
  44. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +8 -4824
  45. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
  46. package/dist/components/SubscriptionsList/SubscriptionsList.es.js +4 -8
  47. package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
  48. package/dist/components/WalletBalances/WalletBalances.es.js +3 -7
  49. package/dist/core/index.cjs.js +1 -1
  50. package/dist/core/index.es.js +1 -1
  51. package/dist/core/types.d.ts +2 -0
  52. package/dist/{customer-CcQR-JIm.js → customer-C_Hz_npf.js} +1 -1
  53. package/dist/{customer-CJrpbGX4.mjs → customer-TIi7iZFw.mjs} +1 -1
  54. package/dist/en-US-CBoPxQwX.mjs +199 -0
  55. package/dist/en-US-DJq-9dD8.js +1 -0
  56. package/dist/index-CzL1ZcGi.mjs +85 -0
  57. package/dist/index-DRdBmZ2-.js +1 -0
  58. package/dist/index.cjs.js +1 -1
  59. package/dist/index.d.ts +1 -0
  60. package/dist/index.es.js +4 -1
  61. package/dist/{invoices-CNK1Ushv.mjs → invoices-BuVOuTOm.mjs} +2 -15
  62. package/dist/invoices-DbvwXAsm.js +1 -0
  63. package/dist/nl-NL-BB7KbK-h.mjs +181 -0
  64. package/dist/nl-NL-CtU1Lg2F.js +1 -0
  65. package/dist/paymentMethods-B4AYGf0K.js +1 -0
  66. package/dist/{paymentMethods-C-ApE-G4.mjs → paymentMethods-Di32oJ39.mjs} +2 -2
  67. package/dist/{payments-CE9U7aKK.mjs → payments-C5fD1PXB.mjs} +1 -1
  68. package/dist/{payments-CLt0SExf.js → payments-DeutKq9x.js} +1 -1
  69. package/dist/{registry-B99ZnfEn.mjs → registry-BLwMl1bK.mjs} +6 -4
  70. package/dist/registry-CMSmkLcy.js +1 -0
  71. package/dist/screens/Checkout/Checkout.cjs.js +1 -1
  72. package/dist/screens/Checkout/Checkout.es.js +420 -2388
  73. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
  74. package/dist/screens/CustomerOverview/CustomerOverview.es.js +13 -14
  75. package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +3 -0
  76. package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -0
  77. package/dist/screens/PayInvoice/PayInvoice.es.js +456 -0
  78. package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
  79. package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +79 -61
  80. package/dist/solvimon-web.css +1 -1
  81. package/dist/source-DKDKBlUm.mjs +179 -0
  82. package/dist/source-dkMNFWDc.js +1 -0
  83. package/dist/{subscriptions-CoeCrY1I.mjs → subscriptions-mOgjjzUi.mjs} +2 -2
  84. package/dist/subscriptions-wdMADcQZ.js +1 -0
  85. package/dist/{useActionDispatchProvider-eO2qFPGv.mjs → useActionDispatchProvider-B4gszz0Q.mjs} +1 -1
  86. package/dist/{useActionDispatchProvider-CWVV_xsi.js → useActionDispatchProvider-DfS2P0bd.js} +1 -1
  87. package/dist/{useCustomer-PthyTFLl.js → useCustomer-DanZzn-l.js} +1 -1
  88. package/dist/{useCustomer--jycAz--.mjs → useCustomer-cbhDyWJL.mjs} +2 -2
  89. package/dist/useIncrementalLoading-DFe5Yh8M.js +1 -0
  90. package/dist/{useIncrementalLoading-CcnL3flF.mjs → useIncrementalLoading-RRicokf1.mjs} +3 -8
  91. package/dist/useInvoiceData-CxxHa5R2.js +1 -0
  92. package/dist/{useInvoiceData-BiMMoVoW.mjs → useInvoiceData-fS6G_244.mjs} +6 -12
  93. package/dist/{useInvoicesList-DFhF_gp7.mjs → useInvoicesList-BQQxcPdz.mjs} +23 -260
  94. package/dist/useInvoicesList-CtJqmblZ.js +1 -0
  95. package/dist/usePaymentMethodOptions-2MloZ9bY.mjs +26 -0
  96. package/dist/usePaymentMethodOptions-D01YWW3G.js +1 -0
  97. package/dist/{usePaymentMethods-BRQ7-dUr.js → usePaymentMethods-Cm9WdSW0.js} +1 -1
  98. package/dist/{usePaymentMethods-BX2RnHZN.mjs → usePaymentMethods-DZvfWSlx.mjs} +2 -2
  99. package/dist/usePayments-B13S_yai.js +1 -0
  100. package/dist/usePayments-D4uGKBsV.mjs +36 -0
  101. package/dist/usePortal-DJDJNLbo.mjs +12 -0
  102. package/dist/usePortal-DWJEVkTj.js +1 -0
  103. package/dist/useService-9fCKPTmu.js +1 -0
  104. package/dist/useService-BuWWE5ND.mjs +68 -0
  105. package/dist/useViewport-Bu0cyeSi.mjs +38 -0
  106. package/dist/useViewport-CKRY1CKR.js +1 -0
  107. package/dist/useWalletBalanceItems-B53Gkjro.mjs +106 -0
  108. package/dist/useWalletBalanceItems-BMaVT4TW.js +1 -0
  109. package/dist/useWatchDebounced-2ZLnfgvG.js +1 -0
  110. package/dist/useWatchDebounced-D1xuIX6_.mjs +12 -0
  111. package/dist/vendor-ui-BwxuPDg8.mjs +28598 -0
  112. package/dist/vendor-ui-Ce_Yp7xA.js +1 -0
  113. package/package.json +17 -10
  114. package/dist/Alert.vue.es-DMPvSykx.js +0 -1
  115. package/dist/Alert.vue.es-DsJ1ckRU.mjs +0 -172
  116. package/dist/Amount.vue.es-C6JE5rL8.mjs +0 -23
  117. package/dist/Amount.vue.es-h8wulbBG.js +0 -1
  118. package/dist/Avatar.vue.es-Ba8ZGfm4.mjs +0 -93
  119. package/dist/Avatar.vue.es-BbyE0AjW.js +0 -1
  120. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C4Ndo83E.js +0 -1
  121. package/dist/Button.vue.es-6sBk5tBL.mjs +0 -408
  122. package/dist/Button.vue.es-BC4_TItq.js +0 -1
  123. package/dist/CardContent.vue.es-ChEMrFCc.mjs +0 -115
  124. package/dist/CardContent.vue.es-i9ivuGKG.js +0 -1
  125. package/dist/Chip.vue.es-D0fkSe8a.js +0 -1
  126. package/dist/Chip.vue.es-DcW2CjUA.mjs +0 -1576
  127. package/dist/Comparators.vue.es-BdxDqU8o.js +0 -1
  128. package/dist/Comparators.vue.es-DdTKGB80.mjs +0 -406
  129. package/dist/ContentWithAsideLayout-UHovpjZu.js +0 -1
  130. package/dist/CustomerBillingInformation.vue.es-9rP7-RzN.js +0 -1
  131. package/dist/CustomerBillingInformation.vue.es-DBMl01Es.mjs +0 -175
  132. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CYTCcMgP.js +0 -1
  133. package/dist/Divider.vue.es-ClFG8QtG.js +0 -1
  134. package/dist/Divider.vue.es-wKkIVBgb.mjs +0 -24
  135. package/dist/DividerText.vue.es-B7oa5Xpn.mjs +0 -72
  136. package/dist/DividerText.vue.es-yiFdPQvo.js +0 -1
  137. package/dist/ErrorNotification.vue.es-Bgw0MIl8.mjs +0 -30
  138. package/dist/ErrorNotification.vue.es-FpRyg0De.js +0 -1
  139. package/dist/FormMessage.vue.es-DFQXxiSC.mjs +0 -46
  140. package/dist/FormMessage.vue.es-LeWoj774.js +0 -1
  141. package/dist/IconButton.vue.es-DNCwwH_j.mjs +0 -825
  142. package/dist/IconButton.vue.es-DiSiGPWO.js +0 -1
  143. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BDitcx8B.js +0 -1
  144. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-6yi47YWd.js +0 -1
  145. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CC3hm3nx.js +0 -1
  146. package/dist/PaymentMethod.vue.es-DYlnmZh7.js +0 -1
  147. package/dist/PaymentMethod.vue.es-nXZoQjG3.mjs +0 -1255
  148. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CmQILA3q.js +0 -1
  149. package/dist/Section.vue.es-3-H1pUTB.mjs +0 -79
  150. package/dist/Section.vue.es-BuzTXRLP.js +0 -1
  151. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Pq3d7DTb.js +0 -1
  152. package/dist/TooltipParagraph.vue.es-DVJLF9Kv.mjs +0 -136
  153. package/dist/TooltipParagraph.vue.es-kTbRGoPF.js +0 -1
  154. package/dist/TrialChip.vue.es-BHYbW8b6.mjs +0 -759
  155. package/dist/TrialChip.vue.es-C6Xg_5rR.js +0 -1
  156. package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
  157. package/dist/_Uint8Array-DxISR7XF.js +0 -1
  158. package/dist/_flatRest.es-BHFPCqZh.mjs +0 -642
  159. package/dist/_flatRest.es-dFffnTpX.js +0 -1
  160. package/dist/api.es-B4qAAJKr.js +0 -1
  161. package/dist/api.es-UkfpLiLL.mjs +0 -83
  162. package/dist/cloneDeep-Hs8Pp07F.js +0 -1
  163. package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
  164. package/dist/cn.es-C7xoIs3C.js +0 -1
  165. package/dist/cn.es-tfxVlz02.mjs +0 -3191
  166. package/dist/component-ZRZIt3ZW.js +0 -1
  167. package/dist/component-dpA83LIN.mjs +0 -6569
  168. package/dist/countryData.es--zJAd6LA.mjs +0 -252
  169. package/dist/countryData.es-D3MFzU92.js +0 -1
  170. package/dist/customer.es-D42Md24r.js +0 -1
  171. package/dist/customer.es-LIW2YmLL.mjs +0 -30
  172. package/dist/formatting.es-9hM8aHSg.js +0 -1
  173. package/dist/formatting.es-D5H_ySFv.mjs +0 -68
  174. package/dist/getCountryNameByCode.es-fP52nO_7.js +0 -1
  175. package/dist/getCountryNameByCode.es-ymC9R46j.mjs +0 -8
  176. package/dist/index-2jo9BSPM.js +0 -1
  177. package/dist/index-BFZ0dPh9.mjs +0 -179
  178. package/dist/index-CI71bVGE.mjs +0 -2521
  179. package/dist/index-CWSXne1Q.js +0 -1
  180. package/dist/index-D3v7hAtc.mjs +0 -253
  181. package/dist/index-WLSPwi90.js +0 -1
  182. package/dist/index.es-BBJF2O2l.js +0 -1
  183. package/dist/index.es-LCAKs4tH.mjs +0 -438
  184. package/dist/invoices-3kVHsAXr.js +0 -1
  185. package/dist/isEmpty.es-Bp1SbWFu.mjs +0 -131
  186. package/dist/isEmpty.es-Dycf-CD_.js +0 -1
  187. package/dist/paymentMethods-DZRf0WRl.js +0 -1
  188. package/dist/pick.es-BgDAfhAl.js +0 -1
  189. package/dist/pick.es-DdVOyp0Q.mjs +0 -45
  190. package/dist/registry-ClZ43bQn.js +0 -1
  191. package/dist/sprite.svg.es-CCc3Mz1x.js +0 -1
  192. package/dist/sprite.svg.es-DZD704h3.mjs +0 -4
  193. package/dist/subscriptions-CS8HTxzC.js +0 -1
  194. package/dist/typeGuards.es-C4nR5FkL.js +0 -1
  195. package/dist/typeGuards.es-fwUoeMCe.mjs +0 -12
  196. package/dist/useIncrementalLoading-CAdNW-Bf.js +0 -1
  197. package/dist/useInvoiceData-DvQO_nKz.js +0 -1
  198. package/dist/useInvoicesList-CHkwSNO9.js +0 -1
  199. package/dist/useService-B67YWAcN.js +0 -1
  200. package/dist/useService-DG_zedHV.mjs +0 -282
  201. package/dist/useWalletBalanceItems-B5FMmoU2.mjs +0 -308
  202. package/dist/useWalletBalanceItems-BY3gq0fc.js +0 -1
@@ -1,825 +0,0 @@
1
- import { Q as ListCache, M as Map, R as MapCache, v as root, S as Symbol$1, O as eq, C as isArray, T as arrayPush, D as isArguments, m as isIndex, A as isObjectLike, E as toString, j as isObject, o as assignValue, p as baseGet, k as castPath, l as toKey, F as baseAssignValue, w as baseGetTag, s as flatRest, K as arrayMap } from "./_flatRest.es-BHFPCqZh.mjs";
2
- import { c as isBuffer, d as isTypedArray, a as isArrayLike, e as baseKeys, g as getTag, o as overArg, f as isPrototype, b as baseUnary, n as nodeUtil } from "./isEmpty.es-Bp1SbWFu.mjs";
3
- import { defineComponent, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, renderSlot, createElementBlock, toDisplayString, createCommentVNode, createElementVNode, createVNode, normalizeProps, useAttrs, computed, unref, createTextVNode } from "vue";
4
- import { a as _sfc_main$4, _ as _sfc_main$5 } from "./Button.vue.es-6sBk5tBL.mjs";
5
- import { _ as _sfc_main$3, T as TooltipContent, a as _sfc_main$6 } from "./TooltipParagraph.vue.es-DVJLF9Kv.mjs";
6
- function stackClear() {
7
- this.__data__ = new ListCache();
8
- this.size = 0;
9
- }
10
- function stackDelete(key) {
11
- var data = this.__data__, result = data["delete"](key);
12
- this.size = data.size;
13
- return result;
14
- }
15
- function stackGet(key) {
16
- return this.__data__.get(key);
17
- }
18
- function stackHas(key) {
19
- return this.__data__.has(key);
20
- }
21
- var LARGE_ARRAY_SIZE = 200;
22
- function stackSet(key, value) {
23
- var data = this.__data__;
24
- if (data instanceof ListCache) {
25
- var pairs = data.__data__;
26
- if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
27
- pairs.push([key, value]);
28
- this.size = ++data.size;
29
- return this;
30
- }
31
- data = this.__data__ = new MapCache(pairs);
32
- }
33
- data.set(key, value);
34
- this.size = data.size;
35
- return this;
36
- }
37
- function Stack(entries) {
38
- var data = this.__data__ = new ListCache(entries);
39
- this.size = data.size;
40
- }
41
- Stack.prototype.clear = stackClear;
42
- Stack.prototype["delete"] = stackDelete;
43
- Stack.prototype.get = stackGet;
44
- Stack.prototype.has = stackHas;
45
- Stack.prototype.set = stackSet;
46
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
47
- function setCacheAdd(value) {
48
- this.__data__.set(value, HASH_UNDEFINED);
49
- return this;
50
- }
51
- function setCacheHas(value) {
52
- return this.__data__.has(value);
53
- }
54
- function SetCache(values) {
55
- var index = -1, length = values == null ? 0 : values.length;
56
- this.__data__ = new MapCache();
57
- while (++index < length) {
58
- this.add(values[index]);
59
- }
60
- }
61
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
62
- SetCache.prototype.has = setCacheHas;
63
- function arraySome(array, predicate) {
64
- var index = -1, length = array == null ? 0 : array.length;
65
- while (++index < length) {
66
- if (predicate(array[index], index, array)) {
67
- return true;
68
- }
69
- }
70
- return false;
71
- }
72
- function cacheHas(cache, key) {
73
- return cache.has(key);
74
- }
75
- var COMPARE_PARTIAL_FLAG$3 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
76
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
77
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, arrLength = array.length, othLength = other.length;
78
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
79
- return false;
80
- }
81
- var arrStacked = stack.get(array);
82
- var othStacked = stack.get(other);
83
- if (arrStacked && othStacked) {
84
- return arrStacked == other && othStacked == array;
85
- }
86
- var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$1 ? new SetCache() : void 0;
87
- stack.set(array, other);
88
- stack.set(other, array);
89
- while (++index < arrLength) {
90
- var arrValue = array[index], othValue = other[index];
91
- if (customizer) {
92
- var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
93
- }
94
- if (compared !== void 0) {
95
- if (compared) {
96
- continue;
97
- }
98
- result = false;
99
- break;
100
- }
101
- if (seen) {
102
- if (!arraySome(other, function(othValue2, othIndex) {
103
- if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
104
- return seen.push(othIndex);
105
- }
106
- })) {
107
- result = false;
108
- break;
109
- }
110
- } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
111
- result = false;
112
- break;
113
- }
114
- }
115
- stack["delete"](array);
116
- stack["delete"](other);
117
- return result;
118
- }
119
- var Uint8Array = root.Uint8Array;
120
- function mapToArray(map) {
121
- var index = -1, result = Array(map.size);
122
- map.forEach(function(value, key) {
123
- result[++index] = [key, value];
124
- });
125
- return result;
126
- }
127
- function setToArray(set) {
128
- var index = -1, result = Array(set.size);
129
- set.forEach(function(value) {
130
- result[++index] = value;
131
- });
132
- return result;
133
- }
134
- var COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2;
135
- var boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", mapTag$3 = "[object Map]", numberTag$2 = "[object Number]", regexpTag$2 = "[object RegExp]", setTag$3 = "[object Set]", stringTag$2 = "[object String]", symbolTag$2 = "[object Symbol]";
136
- var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]";
137
- var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf$1 = symbolProto$1 ? symbolProto$1.valueOf : void 0;
138
- function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
139
- switch (tag) {
140
- case dataViewTag$2:
141
- if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
142
- return false;
143
- }
144
- object = object.buffer;
145
- other = other.buffer;
146
- case arrayBufferTag$2:
147
- if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
148
- return false;
149
- }
150
- return true;
151
- case boolTag$2:
152
- case dateTag$2:
153
- case numberTag$2:
154
- return eq(+object, +other);
155
- case errorTag$1:
156
- return object.name == other.name && object.message == other.message;
157
- case regexpTag$2:
158
- case stringTag$2:
159
- return object == other + "";
160
- case mapTag$3:
161
- var convert = mapToArray;
162
- case setTag$3:
163
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
164
- convert || (convert = setToArray);
165
- if (object.size != other.size && !isPartial) {
166
- return false;
167
- }
168
- var stacked = stack.get(object);
169
- if (stacked) {
170
- return stacked == other;
171
- }
172
- bitmask |= COMPARE_UNORDERED_FLAG;
173
- stack.set(object, other);
174
- var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
175
- stack["delete"](object);
176
- return result;
177
- case symbolTag$2:
178
- if (symbolValueOf$1) {
179
- return symbolValueOf$1.call(object) == symbolValueOf$1.call(other);
180
- }
181
- }
182
- return false;
183
- }
184
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
185
- var result = keysFunc(object);
186
- return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
187
- }
188
- function arrayFilter(array, predicate) {
189
- var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
190
- while (++index < length) {
191
- var value = array[index];
192
- if (predicate(value, index, array)) {
193
- result[resIndex++] = value;
194
- }
195
- }
196
- return result;
197
- }
198
- function stubArray() {
199
- return [];
200
- }
201
- var objectProto$7 = Object.prototype;
202
- var propertyIsEnumerable = objectProto$7.propertyIsEnumerable;
203
- var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
204
- var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object) {
205
- if (object == null) {
206
- return [];
207
- }
208
- object = Object(object);
209
- return arrayFilter(nativeGetSymbols$1(object), function(symbol) {
210
- return propertyIsEnumerable.call(object, symbol);
211
- });
212
- };
213
- function baseTimes(n, iteratee) {
214
- var index = -1, result = Array(n);
215
- while (++index < n) {
216
- result[index] = iteratee(index);
217
- }
218
- return result;
219
- }
220
- var objectProto$6 = Object.prototype;
221
- var hasOwnProperty$6 = objectProto$6.hasOwnProperty;
222
- function arrayLikeKeys(value, inherited) {
223
- var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
224
- for (var key in value) {
225
- if ((inherited || hasOwnProperty$6.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
226
- (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
227
- isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
228
- isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
229
- isIndex(key, length)))) {
230
- result.push(key);
231
- }
232
- }
233
- return result;
234
- }
235
- function keys(object) {
236
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
237
- }
238
- function getAllKeys(object) {
239
- return baseGetAllKeys(object, keys, getSymbols);
240
- }
241
- var COMPARE_PARTIAL_FLAG$1 = 1;
242
- var objectProto$5 = Object.prototype;
243
- var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
244
- function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
245
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
246
- if (objLength != othLength && !isPartial) {
247
- return false;
248
- }
249
- var index = objLength;
250
- while (index--) {
251
- var key = objProps[index];
252
- if (!(isPartial ? key in other : hasOwnProperty$5.call(other, key))) {
253
- return false;
254
- }
255
- }
256
- var objStacked = stack.get(object);
257
- var othStacked = stack.get(other);
258
- if (objStacked && othStacked) {
259
- return objStacked == other && othStacked == object;
260
- }
261
- var result = true;
262
- stack.set(object, other);
263
- stack.set(other, object);
264
- var skipCtor = isPartial;
265
- while (++index < objLength) {
266
- key = objProps[index];
267
- var objValue = object[key], othValue = other[key];
268
- if (customizer) {
269
- var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
270
- }
271
- if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
272
- result = false;
273
- break;
274
- }
275
- skipCtor || (skipCtor = key == "constructor");
276
- }
277
- if (result && !skipCtor) {
278
- var objCtor = object.constructor, othCtor = other.constructor;
279
- if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
280
- result = false;
281
- }
282
- }
283
- stack["delete"](object);
284
- stack["delete"](other);
285
- return result;
286
- }
287
- var COMPARE_PARTIAL_FLAG = 1;
288
- var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", objectTag$2 = "[object Object]";
289
- var objectProto$4 = Object.prototype;
290
- var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
291
- function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
292
- var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag$1 : getTag(object), othTag = othIsArr ? arrayTag$1 : getTag(other);
293
- objTag = objTag == argsTag$1 ? objectTag$2 : objTag;
294
- othTag = othTag == argsTag$1 ? objectTag$2 : othTag;
295
- var objIsObj = objTag == objectTag$2, othIsObj = othTag == objectTag$2, isSameTag = objTag == othTag;
296
- if (isSameTag && isBuffer(object)) {
297
- if (!isBuffer(other)) {
298
- return false;
299
- }
300
- objIsArr = true;
301
- objIsObj = false;
302
- }
303
- if (isSameTag && !objIsObj) {
304
- stack || (stack = new Stack());
305
- return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
306
- }
307
- if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
308
- var objIsWrapped = objIsObj && hasOwnProperty$4.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$4.call(other, "__wrapped__");
309
- if (objIsWrapped || othIsWrapped) {
310
- var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
311
- stack || (stack = new Stack());
312
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
313
- }
314
- }
315
- if (!isSameTag) {
316
- return false;
317
- }
318
- stack || (stack = new Stack());
319
- return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
320
- }
321
- function baseIsEqual(value, other, bitmask, customizer, stack) {
322
- if (value === other) {
323
- return true;
324
- }
325
- if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
326
- return value !== value && other !== other;
327
- }
328
- return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
329
- }
330
- function isEqual(value, other) {
331
- return baseIsEqual(value, other);
332
- }
333
- function last(array) {
334
- var length = array == null ? 0 : array.length;
335
- return length ? array[length - 1] : void 0;
336
- }
337
- var idCounter = 0;
338
- function uniqueId(prefix) {
339
- var id = ++idCounter;
340
- return toString(prefix) + id;
341
- }
342
- const _hoisted_1$1 = {
343
- key: 0,
344
- class: "text-gray-500 font-normal text-xs"
345
- };
346
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
347
- __name: "LabelContent",
348
- props: {
349
- tag: { default: "label" },
350
- required: { type: Boolean },
351
- name: {},
352
- screenReaderOnly: { type: Boolean },
353
- i18n: {},
354
- optionalLabel: {}
355
- },
356
- setup(__props) {
357
- return (_ctx, _cache) => {
358
- return openBlock(), createBlock(resolveDynamicComponent(__props.tag), mergeProps(_ctx.$attrs, {
359
- class: ["block text-sm font-medium text-gray-900", { "sr-only": __props.screenReaderOnly }]
360
- }), {
361
- default: withCtx(() => {
362
- var _a;
363
- return [
364
- renderSlot(_ctx.$slots, "default"),
365
- !__props.required ? (openBlock(), createElementBlock("span", _hoisted_1$1, " (" + toDisplayString(((_a = __props.i18n) == null ? void 0 : _a.optionalLabel) ?? "optional") + ") ", 1)) : createCommentVNode("", true)
366
- ];
367
- }),
368
- _: 3
369
- }, 16, ["class"]);
370
- };
371
- }
372
- });
373
- const _hoisted_1 = { class: "flex items-center justify-between mb-1" };
374
- const _hoisted_2 = { class: "flex items-center gap-1" };
375
- const _hoisted_3 = {
376
- key: 0,
377
- class: "leading-none"
378
- };
379
- const __default__$1 = {
380
- inheritAttrs: false
381
- };
382
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
383
- ...__default__$1,
384
- __name: "Label",
385
- props: {
386
- tag: { default: "label" },
387
- required: { type: Boolean },
388
- name: {},
389
- screenReaderOnly: { type: Boolean },
390
- i18n: {}
391
- },
392
- setup(__props) {
393
- return (_ctx, _cache) => {
394
- return openBlock(), createElementBlock("div", _hoisted_1, [
395
- createElementVNode("div", _hoisted_2, [
396
- !!_ctx.$slots.tooltip ? (openBlock(), createBlock(_sfc_main$3, {
397
- key: 0,
398
- variant: "outline",
399
- class: "flex"
400
- }, {
401
- default: withCtx(() => {
402
- var _a;
403
- return [
404
- createVNode(_sfc_main$2, mergeProps({ ..._ctx.$props, ..._ctx.$attrs }, {
405
- i18n: { optionalLabel: (_a = __props.i18n) == null ? void 0 : _a.optionalLabel }
406
- }), {
407
- default: withCtx(() => [
408
- renderSlot(_ctx.$slots, "default")
409
- ]),
410
- _: 3
411
- }, 16, ["i18n"]),
412
- createVNode(_sfc_main$4, {
413
- icon: "help",
414
- size: "2xs",
415
- class: "rounded drop-shadow-sm hover:bg-gray-50 hover:cursor-default"
416
- })
417
- ];
418
- }),
419
- tooltip: withCtx(() => [
420
- renderSlot(_ctx.$slots, "tooltip")
421
- ]),
422
- _: 3
423
- })) : (openBlock(), createBlock(_sfc_main$2, normalizeProps(mergeProps({ key: 1 }, { ..._ctx.$props, ..._ctx.$attrs })), {
424
- default: withCtx(() => [
425
- renderSlot(_ctx.$slots, "default")
426
- ]),
427
- _: 3
428
- }, 16))
429
- ]),
430
- _ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_3, [
431
- renderSlot(_ctx.$slots, "suffix")
432
- ])) : createCommentVNode("", true)
433
- ]);
434
- };
435
- }
436
- });
437
- const getRootTestId = (name) => {
438
- return `input-${name}`;
439
- };
440
- const getIconSize = (size) => {
441
- switch (size) {
442
- case "sm":
443
- return "xs";
444
- case "md":
445
- default:
446
- return "sm";
447
- case "lg":
448
- return "md";
449
- }
450
- };
451
- function arrayEach(array, iteratee) {
452
- var index = -1, length = array == null ? 0 : array.length;
453
- while (++index < length) {
454
- if (iteratee(array[index], index, array) === false) {
455
- break;
456
- }
457
- }
458
- return array;
459
- }
460
- var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
461
- var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
462
- var moduleExports = freeModule && freeModule.exports === freeExports;
463
- var Buffer = moduleExports ? root.Buffer : void 0;
464
- Buffer ? Buffer.allocUnsafe : void 0;
465
- function cloneBuffer(buffer, isDeep) {
466
- {
467
- return buffer.slice();
468
- }
469
- }
470
- var getPrototype = overArg(Object.getPrototypeOf, Object);
471
- var nativeGetSymbols = Object.getOwnPropertySymbols;
472
- var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
473
- var result = [];
474
- while (object) {
475
- arrayPush(result, getSymbols(object));
476
- object = getPrototype(object);
477
- }
478
- return result;
479
- };
480
- function nativeKeysIn(object) {
481
- var result = [];
482
- if (object != null) {
483
- for (var key in Object(object)) {
484
- result.push(key);
485
- }
486
- }
487
- return result;
488
- }
489
- var objectProto$3 = Object.prototype;
490
- var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
491
- function baseKeysIn(object) {
492
- if (!isObject(object)) {
493
- return nativeKeysIn(object);
494
- }
495
- var isProto = isPrototype(object), result = [];
496
- for (var key in object) {
497
- if (!(key == "constructor" && (isProto || !hasOwnProperty$3.call(object, key)))) {
498
- result.push(key);
499
- }
500
- }
501
- return result;
502
- }
503
- function keysIn(object) {
504
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
505
- }
506
- function getAllKeysIn(object) {
507
- return baseGetAllKeys(object, keysIn, getSymbolsIn);
508
- }
509
- var objectProto$2 = Object.prototype;
510
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
511
- function initCloneArray(array) {
512
- var length = array.length, result = new array.constructor(length);
513
- if (length && typeof array[0] == "string" && hasOwnProperty$2.call(array, "index")) {
514
- result.index = array.index;
515
- result.input = array.input;
516
- }
517
- return result;
518
- }
519
- function cloneArrayBuffer(arrayBuffer) {
520
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
521
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
522
- return result;
523
- }
524
- function cloneDataView(dataView, isDeep) {
525
- var buffer = cloneArrayBuffer(dataView.buffer);
526
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
527
- }
528
- var reFlags = /\w*$/;
529
- function cloneRegExp(regexp) {
530
- var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
531
- result.lastIndex = regexp.lastIndex;
532
- return result;
533
- }
534
- var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
535
- function cloneSymbol(symbol) {
536
- return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
537
- }
538
- function cloneTypedArray(typedArray, isDeep) {
539
- var buffer = cloneArrayBuffer(typedArray.buffer);
540
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
541
- }
542
- var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$1 = "[object Symbol]";
543
- var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
544
- function initCloneByTag(object, tag, isDeep) {
545
- var Ctor = object.constructor;
546
- switch (tag) {
547
- case arrayBufferTag$1:
548
- return cloneArrayBuffer(object);
549
- case boolTag$1:
550
- case dateTag$1:
551
- return new Ctor(+object);
552
- case dataViewTag$1:
553
- return cloneDataView(object);
554
- case float32Tag$1:
555
- case float64Tag$1:
556
- case int8Tag$1:
557
- case int16Tag$1:
558
- case int32Tag$1:
559
- case uint8Tag$1:
560
- case uint8ClampedTag$1:
561
- case uint16Tag$1:
562
- case uint32Tag$1:
563
- return cloneTypedArray(object);
564
- case mapTag$2:
565
- return new Ctor();
566
- case numberTag$1:
567
- case stringTag$1:
568
- return new Ctor(object);
569
- case regexpTag$1:
570
- return cloneRegExp(object);
571
- case setTag$2:
572
- return new Ctor();
573
- case symbolTag$1:
574
- return cloneSymbol(object);
575
- }
576
- }
577
- var mapTag$1 = "[object Map]";
578
- function baseIsMap(value) {
579
- return isObjectLike(value) && getTag(value) == mapTag$1;
580
- }
581
- var nodeIsMap = nodeUtil && nodeUtil.isMap;
582
- var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
583
- var setTag$1 = "[object Set]";
584
- function baseIsSet(value) {
585
- return isObjectLike(value) && getTag(value) == setTag$1;
586
- }
587
- var nodeIsSet = nodeUtil && nodeUtil.isSet;
588
- var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
589
- var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag$1 = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
590
- var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
591
- var cloneableTags = {};
592
- cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag$1] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
593
- cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
594
- function baseClone(value, bitmask, customizer, key, object, stack) {
595
- var result;
596
- if (customizer) {
597
- result = object ? customizer(value, key, object, stack) : customizer(value);
598
- }
599
- if (result !== void 0) {
600
- return result;
601
- }
602
- if (!isObject(value)) {
603
- return value;
604
- }
605
- var isArr = isArray(value);
606
- if (isArr) {
607
- result = initCloneArray(value);
608
- } else {
609
- var tag = getTag(value), isFunc = tag == funcTag || tag == genTag;
610
- if (isBuffer(value)) {
611
- return cloneBuffer(value);
612
- }
613
- if (tag == objectTag$1 || tag == argsTag || isFunc && !object) {
614
- result = {};
615
- } else {
616
- if (!cloneableTags[tag]) {
617
- return object ? value : {};
618
- }
619
- result = initCloneByTag(value, tag);
620
- }
621
- }
622
- stack || (stack = new Stack());
623
- var stacked = stack.get(value);
624
- if (stacked) {
625
- return stacked;
626
- }
627
- stack.set(value, result);
628
- if (isSet(value)) {
629
- value.forEach(function(subValue) {
630
- result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
631
- });
632
- } else if (isMap(value)) {
633
- value.forEach(function(subValue, key2) {
634
- result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
635
- });
636
- }
637
- var keysFunc = getAllKeysIn;
638
- var props = isArr ? void 0 : keysFunc(value);
639
- arrayEach(props || value, function(subValue, key2) {
640
- if (props) {
641
- key2 = subValue;
642
- subValue = value[key2];
643
- }
644
- assignValue(result, key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
645
- });
646
- return result;
647
- }
648
- function baseSlice(array, start, end) {
649
- var index = -1, length = array.length;
650
- if (start < 0) {
651
- start = -start > length ? 0 : length + start;
652
- }
653
- end = end > length ? length : end;
654
- if (end < 0) {
655
- end += length;
656
- }
657
- length = start > end ? 0 : end - start >>> 0;
658
- start >>>= 0;
659
- var result = Array(length);
660
- while (++index < length) {
661
- result[index] = array[index + start];
662
- }
663
- return result;
664
- }
665
- function parent(object, path) {
666
- return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
667
- }
668
- var objectProto$1 = Object.prototype;
669
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
670
- function baseUnset(object, path) {
671
- path = castPath(path, object);
672
- var index = -1, length = path.length;
673
- if (!length) {
674
- return true;
675
- }
676
- while (++index < length) {
677
- var key = toKey(path[index]);
678
- if (key === "__proto__" && !hasOwnProperty$1.call(object, "__proto__")) {
679
- return false;
680
- }
681
- if ((key === "constructor" || key === "prototype") && index < length - 1) {
682
- return false;
683
- }
684
- }
685
- var obj = parent(object, path);
686
- return obj == null || delete obj[toKey(last(path))];
687
- }
688
- function copyObject(source, props, object, customizer) {
689
- var isNew = !object;
690
- object || (object = {});
691
- var index = -1, length = props.length;
692
- while (++index < length) {
693
- var key = props[index];
694
- var newValue = void 0;
695
- if (newValue === void 0) {
696
- newValue = source[key];
697
- }
698
- if (isNew) {
699
- baseAssignValue(object, key, newValue);
700
- } else {
701
- assignValue(object, key, newValue);
702
- }
703
- }
704
- return object;
705
- }
706
- var objectTag = "[object Object]";
707
- var funcProto = Function.prototype, objectProto = Object.prototype;
708
- var funcToString = funcProto.toString;
709
- var hasOwnProperty = objectProto.hasOwnProperty;
710
- var objectCtorString = funcToString.call(Object);
711
- function isPlainObject(value) {
712
- if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
713
- return false;
714
- }
715
- var proto = getPrototype(value);
716
- if (proto === null) {
717
- return true;
718
- }
719
- var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
720
- return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
721
- }
722
- function customOmitClone(value) {
723
- return isPlainObject(value) ? void 0 : value;
724
- }
725
- var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4;
726
- var omit = flatRest(function(object, paths) {
727
- var result = {};
728
- if (object == null) {
729
- return result;
730
- }
731
- var isDeep = false;
732
- paths = arrayMap(paths, function(path) {
733
- path = castPath(path, object);
734
- isDeep || (isDeep = path.length > 1);
735
- return path;
736
- });
737
- copyObject(object, getAllKeysIn(object), result);
738
- if (isDeep) {
739
- result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
740
- }
741
- var length = paths.length;
742
- while (length--) {
743
- baseUnset(result, paths[length]);
744
- }
745
- return result;
746
- });
747
- const __default__ = {
748
- inheritAttrs: false
749
- };
750
- const _sfc_main = /* @__PURE__ */ defineComponent({
751
- ...__default__,
752
- __name: "IconButton",
753
- props: {
754
- tooltip: {},
755
- icon: {},
756
- type: {},
757
- variant: {},
758
- color: {},
759
- size: {},
760
- pill: { type: Boolean },
761
- square: { type: Boolean },
762
- loading: { type: Boolean },
763
- disabled: { type: Boolean },
764
- iconPrefix: {},
765
- iconSuffix: {},
766
- tag: {}
767
- },
768
- setup(__props) {
769
- const props = __props;
770
- const attrs = useAttrs();
771
- const size = getIconSize(props.size);
772
- const buttonProps = computed(() => omit({ ...props, ...attrs }, "icon", "tooltip"));
773
- return (_ctx, _cache) => {
774
- return __props.tooltip ? (openBlock(), createBlock(_sfc_main$3, { key: 0 }, {
775
- tooltip: withCtx(() => [
776
- createVNode(TooltipContent, null, {
777
- default: withCtx(() => [
778
- createVNode(_sfc_main$6, null, {
779
- default: withCtx(() => [
780
- createTextVNode(toDisplayString(__props.tooltip), 1)
781
- ]),
782
- _: 1
783
- })
784
- ]),
785
- _: 1
786
- })
787
- ]),
788
- default: withCtx(() => [
789
- createVNode(_sfc_main$5, mergeProps(buttonProps.value, { square: "" }), {
790
- default: withCtx(() => [
791
- createVNode(_sfc_main$4, {
792
- icon: __props.icon,
793
- size: unref(size)
794
- }, null, 8, ["icon", "size"])
795
- ]),
796
- _: 1
797
- }, 16)
798
- ]),
799
- _: 1
800
- })) : (openBlock(), createBlock(_sfc_main$5, mergeProps({ key: 1 }, buttonProps.value, { square: "" }), {
801
- default: withCtx(() => [
802
- createVNode(_sfc_main$4, {
803
- icon: __props.icon,
804
- size: unref(size)
805
- }, null, 8, ["icon", "size"])
806
- ]),
807
- _: 1
808
- }, 16));
809
- };
810
- }
811
- });
812
- export {
813
- SetCache as S,
814
- _sfc_main$1 as _,
815
- _sfc_main as a,
816
- Stack as b,
817
- cacheHas as c,
818
- baseIsEqual as d,
819
- getRootTestId as g,
820
- isEqual as i,
821
- keys as k,
822
- last as l,
823
- mapToArray as m,
824
- uniqueId as u
825
- };