@zonos/elements 1.1.2 → 1.2.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 (777) hide show
  1. package/dist/cjs/{cart-a969ee0b.js → cart-ac9a3c40.js} +8 -6
  2. package/dist/cjs/classes-b7918f56.js +0 -2
  3. package/dist/cjs/{getBorderRadius-ae52cae1.js → getBorderRadius-1f9c0fa3.js} +1 -3
  4. package/dist/cjs/getHasMoreSpaceOnRight-2855491b.js +0 -2
  5. package/dist/cjs/index-9542d2e7.js +0 -2
  6. package/dist/cjs/index.cjs.js +20 -1
  7. package/dist/cjs/isColorVariable-c1ed7303.js +0 -2
  8. package/dist/cjs/{isDarkColor-e1a7bf45.js → isDarkColor-0651a165.js} +1 -3
  9. package/dist/cjs/loader.cjs.js +1 -3
  10. package/dist/cjs/{localization-d510574c.js → localization-3a4b4a43.js} +11 -7
  11. package/dist/cjs/{submitGtag-4de4430f.js → submitGtag-9e873a0a.js} +2 -4
  12. package/dist/cjs/zonos-address_2.cjs.entry.js +5 -7
  13. package/dist/cjs/zonos-badge.cjs.entry.js +0 -2
  14. package/dist/cjs/zonos-banner.cjs.entry.js +0 -2
  15. package/dist/cjs/zonos-button_2.cjs.entry.js +3 -5
  16. package/dist/cjs/zonos-card_2.cjs.entry.js +0 -2
  17. package/dist/cjs/zonos-cart-items_10.cjs.entry.js +14 -9
  18. package/dist/cjs/zonos-checkout.cjs.entry.js +87 -47
  19. package/dist/cjs/zonos-component.cjs.entry.js +0 -2
  20. package/dist/cjs/zonos-controller.cjs.entry.js +7 -11
  21. package/dist/cjs/zonos-country-flag_4.cjs.entry.js +3 -5
  22. package/dist/cjs/zonos-elements.cjs.js +1 -3
  23. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +12 -5
  24. package/dist/cjs/zonos-hello.cjs.entry.js +10 -8
  25. package/dist/cjs/zonos-icon.cjs.entry.js +0 -2
  26. package/dist/cjs/zonos-notification.cjs.entry.js +0 -2
  27. package/dist/cjs/zonos-payment.cjs.entry.js +5 -7
  28. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -4
  29. package/dist/cjs/zonos-text.cjs.entry.js +0 -2
  30. package/dist/cjs/{zonosStore-d9cdaec6.js → zonosStore-270f79cc.js} +1 -2
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +0 -1
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +0 -1
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +7 -1
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +0 -1
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +85 -61
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -1
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +0 -1
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +0 -1
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +0 -1
  40. package/dist/collection/components/common/countries.js +0 -1
  41. package/dist/collection/components/common/zonos-badge/zonos-badge.js +0 -1
  42. package/dist/collection/components/common/zonos-banner/zonos-banner.js +0 -1
  43. package/dist/collection/components/common/zonos-button/zonos-button.js +0 -1
  44. package/dist/collection/components/common/zonos-card/zonos-card.js +0 -1
  45. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +0 -1
  46. package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +0 -1
  47. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +0 -1
  48. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +0 -1
  49. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +0 -1
  50. package/dist/collection/components/common/zonos-icon/zonos-icon.js +0 -1
  51. package/dist/collection/components/common/zonos-logo/zonos-logo.js +0 -1
  52. package/dist/collection/components/common/zonos-notification/zonos-notification.js +0 -1
  53. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +0 -1
  54. package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +0 -1
  55. package/dist/collection/components/common/zonos-text/zonos-text.js +0 -1
  56. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +0 -1
  57. package/dist/collection/components/component-template/zonos-component/zonos-component.js +0 -1
  58. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +8 -5
  59. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +0 -1
  60. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +8 -0
  61. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -1
  62. package/dist/collection/components/main/zonos-controller.js +0 -1
  63. package/dist/collection/components/store/checkout/cart.js +0 -1
  64. package/dist/collection/components/store/checkout/stripe.js +0 -1
  65. package/dist/collection/components/store/hello/localization.js +4 -1
  66. package/dist/collection/components/store/translationStore/strings.arabic.js +0 -1
  67. package/dist/collection/components/store/translationStore/strings.base.js +0 -1
  68. package/dist/collection/components/store/translationStore/strings.chinese.js +0 -1
  69. package/dist/collection/components/store/translationStore/strings.danish.js +0 -1
  70. package/dist/collection/components/store/translationStore/strings.dutch.js +0 -1
  71. package/dist/collection/components/store/translationStore/strings.french.js +0 -1
  72. package/dist/collection/components/store/translationStore/strings.german.js +0 -1
  73. package/dist/collection/components/store/translationStore/strings.hebrew.js +0 -1
  74. package/dist/collection/components/store/translationStore/strings.indonesian.js +0 -1
  75. package/dist/collection/components/store/translationStore/strings.italian.js +0 -1
  76. package/dist/collection/components/store/translationStore/strings.japanese.js +0 -1
  77. package/dist/collection/components/store/translationStore/strings.korean.js +0 -1
  78. package/dist/collection/components/store/translationStore/strings.norwegian.js +0 -1
  79. package/dist/collection/components/store/translationStore/strings.polish.js +0 -1
  80. package/dist/collection/components/store/translationStore/strings.portuguese.js +0 -1
  81. package/dist/collection/components/store/translationStore/strings.russian.js +0 -1
  82. package/dist/collection/components/store/translationStore/strings.spanish.js +0 -1
  83. package/dist/collection/components/store/translationStore/strings.swedish.js +0 -1
  84. package/dist/collection/components/store/translationStore/strings.turkish.js +0 -1
  85. package/dist/collection/components/store/translationStore/strings.vietnamese.js +0 -1
  86. package/dist/collection/components/store/translationStore.js +0 -1
  87. package/dist/collection/components/store/zonosStore.js +1 -1
  88. package/dist/collection/components/stripe/zonos-address/zonos-address.js +0 -1
  89. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +0 -1
  90. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +0 -1
  91. package/dist/collection/components/utils/addDays.js +0 -1
  92. package/dist/collection/components/utils/api/calculateLandedCost.js +0 -1
  93. package/dist/collection/components/utils/api/checkItemRestrictions.js +0 -1
  94. package/dist/collection/components/utils/api/getCountries.js +0 -1
  95. package/dist/collection/components/utils/api/getCountryLandedCost.js +0 -1
  96. package/dist/collection/components/utils/api/getExchangeRate.js +2 -3
  97. package/dist/collection/components/utils/api/getLocaleMessages.js +0 -1
  98. package/dist/collection/components/utils/api/getLocalization.js +3 -2
  99. package/dist/collection/components/utils/api/getShippingZones.js +0 -1
  100. package/dist/collection/components/utils/api/getZonosSetting.js +0 -1
  101. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +2 -1
  102. package/dist/collection/components/utils/changeDeepProperty.js +0 -1
  103. package/dist/collection/components/utils/changeDeepPropertyAtIndex.js +0 -1
  104. package/dist/collection/components/utils/checkout/initCheckout.js +2 -5
  105. package/dist/collection/components/utils/checkout/isCheckoutMobile.js +0 -1
  106. package/dist/collection/components/utils/classes.js +0 -1
  107. package/dist/collection/components/utils/darkenColor.js +0 -1
  108. package/dist/collection/components/utils/formatCurrency.js +0 -1
  109. package/dist/collection/components/utils/formatDate.js +0 -1
  110. package/dist/collection/components/utils/getBorderRadius.js +0 -1
  111. package/dist/collection/components/utils/getButtonTheme.js +0 -1
  112. package/dist/collection/components/utils/getDaysDifference.js +0 -1
  113. package/dist/collection/components/utils/handleFetch.js +1 -2
  114. package/dist/collection/components/utils/hello/currencyConversion/currencyConvert.js +0 -1
  115. package/dist/collection/components/utils/hello/currencyConversion/currencyConvertAndFormat.js +0 -1
  116. package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +0 -1
  117. package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +0 -1
  118. package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +0 -1
  119. package/dist/collection/components/utils/hello/currencyConversion/getCurrencyCode.js +0 -1
  120. package/dist/collection/components/utils/hello/currencyConversion/getCurrencyElements.js +0 -1
  121. package/dist/collection/components/utils/hello/currencyConversion/getInitialElementAmount.js +0 -1
  122. package/dist/collection/components/utils/hello/currencyConversion/getLanguageCode.js +0 -1
  123. package/dist/collection/components/utils/hello/detectItemRestrictions.js +0 -1
  124. package/dist/collection/components/utils/hello/getCurrentHelloLocalePage.js +0 -1
  125. package/dist/collection/components/utils/hello/getHasMoreSpaceAbove.js +9 -0
  126. package/dist/collection/components/utils/hello/getHasMoreSpaceOnRight.js +0 -1
  127. package/dist/collection/components/utils/hello/getProductsOnPage.js +0 -1
  128. package/dist/collection/components/utils/hello/initHello.js +0 -1
  129. package/dist/collection/components/utils/hello/setZonosCountryUrlParam.js +0 -1
  130. package/dist/collection/components/utils/isColorVariable.js +0 -1
  131. package/dist/collection/components/utils/isDarkColor.js +0 -1
  132. package/dist/collection/components/utils/isValidSelector.js +0 -1
  133. package/dist/collection/components/utils/jsonParse.js +0 -1
  134. package/dist/collection/components/utils/lightenColor.js +0 -1
  135. package/dist/collection/components/utils/logging/log.js +0 -1
  136. package/dist/collection/components/utils/logging/logError.js +0 -1
  137. package/dist/collection/components/utils/mergeConfig.js +0 -1
  138. package/dist/collection/components/utils/submitGtag.js +0 -1
  139. package/dist/collection/environment.js +60 -13
  140. package/dist/collection/index.js +0 -1
  141. package/dist/collection/scripts/loadStripe.js +0 -1
  142. package/dist/collection/scripts/stripe.js +0 -1
  143. package/dist/collection/scripts/zonos.js +4 -2
  144. package/dist/collection/styles/stripe/addressRuleStyle.js +0 -1
  145. package/dist/collection/styles/stripe/defaultVariable.js +0 -1
  146. package/dist/collection/types/ICountryJson.js +0 -1
  147. package/dist/collection/types/JsonError.js +0 -1
  148. package/dist/collection/types/NoInfer.js +0 -1
  149. package/dist/collection/types/Translation.js +0 -1
  150. package/dist/collection/types/checkout/CheckoutConfig.js +0 -1
  151. package/dist/collection/types/checkout/api/CalculateLandedCostRequest.js +0 -1
  152. package/dist/collection/types/generated/graphql.customer.types.js +58 -1
  153. package/dist/collection/types/generated/graphql.frontend.types.js +0 -1
  154. package/dist/collection/types/hello/HelloConfig.js +0 -1
  155. package/dist/collection/types/hello/Product.js +0 -1
  156. package/dist/collection/types/hello/RestrictedItem.js +0 -1
  157. package/dist/collection/types/index.js +1 -1
  158. package/dist/collection/types/online-store/OnlineStoreConfig.js +0 -1
  159. package/dist/collection/types/stripe/Apperance.js +0 -1
  160. package/dist/collection/types/styles/Color.js +0 -1
  161. package/dist/collection/types/styles/GridSpacing.js +0 -1
  162. package/dist/collection/types/styles/Text.js +0 -1
  163. package/dist/collection/types/utils/deep/IDeepKeyof.js +0 -1
  164. package/dist/collection/types/utils/deep/IDeepKeyofAtIndex.js +0 -1
  165. package/dist/collection/utils/format.js +0 -1
  166. package/dist/collection/utils/generateVercelDeployUrl.js +0 -1
  167. package/dist/{esm/cart-d00e1acb.js → components/cart.js} +7 -7
  168. package/dist/components/classes.js +0 -2
  169. package/dist/components/formatCurrency.js +0 -2
  170. package/dist/components/getBorderRadius.js +0 -2
  171. package/dist/components/index.js +1 -2
  172. package/dist/components/isColorVariable.js +0 -2
  173. package/dist/components/isDarkColor.js +0 -2
  174. package/dist/components/localization.js +11 -7
  175. package/dist/components/submitGtag.js +1 -3
  176. package/dist/components/zonos-address.js +0 -2
  177. package/dist/components/zonos-address2.js +2 -4
  178. package/dist/components/zonos-badge.js +0 -2
  179. package/dist/components/zonos-badge2.js +0 -2
  180. package/dist/components/zonos-banner.js +0 -2
  181. package/dist/components/zonos-banner2.js +0 -2
  182. package/dist/components/zonos-button.js +0 -2
  183. package/dist/components/zonos-button2.js +0 -2
  184. package/dist/components/zonos-card.js +0 -2
  185. package/dist/components/zonos-card2.js +0 -2
  186. package/dist/components/zonos-cart-items.js +0 -2
  187. package/dist/components/zonos-cart-items2.js +1 -3
  188. package/dist/components/zonos-cart-subtotal.js +0 -2
  189. package/dist/components/zonos-cart-subtotal2.js +1 -3
  190. package/dist/components/zonos-checkout-finish.js +0 -2
  191. package/dist/components/zonos-checkout-finish2.js +8 -3
  192. package/dist/components/zonos-checkout-payment.js +0 -2
  193. package/dist/components/zonos-checkout-payment2.js +1 -3
  194. package/dist/components/zonos-checkout.js +83 -44
  195. package/dist/components/zonos-collapse.js +0 -2
  196. package/dist/components/zonos-collapse2.js +0 -2
  197. package/dist/components/zonos-component.js +0 -2
  198. package/dist/components/zonos-controller.js +4 -8
  199. package/dist/components/zonos-country-flag.js +0 -2
  200. package/dist/components/zonos-country-flag2.js +1 -3
  201. package/dist/components/zonos-country-select.js +0 -2
  202. package/dist/components/zonos-country-select2.js +1 -3
  203. package/dist/components/zonos-custom-message.js +0 -2
  204. package/dist/components/zonos-custom-message2.js +0 -2
  205. package/dist/components/zonos-customer-info.js +0 -2
  206. package/dist/components/zonos-customer-info2.js +2 -4
  207. package/dist/components/zonos-dialog.js +0 -2
  208. package/dist/components/zonos-dialog2.js +0 -2
  209. package/dist/components/zonos-hello-dialog-footer.js +0 -2
  210. package/dist/components/zonos-hello-dialog-footer2.js +1 -3
  211. package/dist/components/zonos-hello-dialog.js +0 -2
  212. package/dist/components/zonos-hello-dialog2.js +11 -4
  213. package/dist/components/zonos-hello.js +9 -7
  214. package/dist/components/zonos-icon.js +0 -2
  215. package/dist/components/zonos-icon2.js +0 -2
  216. package/dist/components/zonos-link-authentication.js +0 -2
  217. package/dist/components/zonos-link-authentication2.js +1 -3
  218. package/dist/components/zonos-logo.js +0 -2
  219. package/dist/components/zonos-logo2.js +0 -2
  220. package/dist/components/zonos-notification.js +0 -2
  221. package/dist/components/zonos-notification2.js +0 -2
  222. package/dist/components/zonos-payment.js +0 -2
  223. package/dist/components/zonos-payment2.js +1 -3
  224. package/dist/components/zonos-review.js +0 -2
  225. package/dist/components/zonos-review2.js +1 -3
  226. package/dist/components/zonos-shipping-rich-radio.js +0 -2
  227. package/dist/components/zonos-shipping-rich-radio2.js +0 -2
  228. package/dist/components/zonos-shipping.js +0 -2
  229. package/dist/components/zonos-shipping2.js +1 -3
  230. package/dist/components/zonos-spinner.js +0 -2
  231. package/dist/components/zonos-spinner2.js +0 -2
  232. package/dist/components/zonos-text.js +0 -2
  233. package/dist/components/zonos-text2.js +0 -2
  234. package/dist/components/zonos-v-stack.js +0 -2
  235. package/dist/components/zonos-v-stack2.js +0 -2
  236. package/dist/components/zonosStore.js +1 -2
  237. package/dist/{zonos-elements/cart-d00e1acb.js → esm/cart-cf46a264.js} +7 -7
  238. package/dist/esm/classes-0d95c529.js +0 -2
  239. package/dist/esm/{getBorderRadius-e8ad5967.js → getBorderRadius-278281bf.js} +1 -3
  240. package/dist/esm/getHasMoreSpaceOnRight-feba1ae2.js +0 -2
  241. package/dist/esm/index-d1aa9293.js +0 -2
  242. package/dist/esm/index.js +6 -3
  243. package/dist/esm/isColorVariable-4cda28c9.js +0 -2
  244. package/dist/{zonos-elements/isDarkColor-3bb345f4.js → esm/isDarkColor-8fd3a24e.js} +1 -3
  245. package/dist/esm/loader.js +1 -3
  246. package/dist/{zonos-elements/localization-1d92a557.js → esm/localization-add1d9e9.js} +11 -7
  247. package/dist/{zonos-elements/submitGtag-85914088.js → esm/submitGtag-aa5fe441.js} +2 -4
  248. package/dist/esm/zonos-address_2.entry.js +5 -7
  249. package/dist/esm/zonos-badge.entry.js +0 -2
  250. package/dist/esm/zonos-banner.entry.js +0 -2
  251. package/dist/esm/zonos-button_2.entry.js +3 -5
  252. package/dist/esm/zonos-card_2.entry.js +0 -2
  253. package/dist/esm/zonos-cart-items_10.entry.js +14 -9
  254. package/dist/esm/zonos-checkout.entry.js +87 -47
  255. package/dist/esm/zonos-component.entry.js +0 -2
  256. package/dist/esm/zonos-controller.entry.js +7 -11
  257. package/dist/esm/zonos-country-flag_4.entry.js +3 -5
  258. package/dist/esm/zonos-elements.js +1 -3
  259. package/dist/esm/zonos-hello-dialog.entry.js +12 -5
  260. package/dist/esm/zonos-hello.entry.js +10 -8
  261. package/dist/esm/zonos-icon.entry.js +0 -2
  262. package/dist/esm/zonos-notification.entry.js +0 -2
  263. package/dist/esm/zonos-payment.entry.js +5 -7
  264. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -4
  265. package/dist/esm/zonos-text.entry.js +0 -2
  266. package/dist/{zonos-elements/zonosStore-1c9c7d76.js → esm/zonosStore-e5291656.js} +1 -2
  267. package/dist/esm-es5/cart-cf46a264.js +1 -0
  268. package/dist/esm-es5/classes-0d95c529.js +1 -2
  269. package/dist/esm-es5/getBorderRadius-278281bf.js +1 -0
  270. package/dist/esm-es5/getHasMoreSpaceOnRight-feba1ae2.js +1 -2
  271. package/dist/esm-es5/index-d1aa9293.js +1 -2
  272. package/dist/esm-es5/index.js +1 -2
  273. package/dist/esm-es5/isColorVariable-4cda28c9.js +1 -2
  274. package/dist/esm-es5/{isDarkColor-3bb345f4.js → isDarkColor-8fd3a24e.js} +1 -2
  275. package/dist/esm-es5/loader.js +1 -2
  276. package/dist/esm-es5/{localization-1d92a557.js → localization-add1d9e9.js} +1 -2
  277. package/dist/esm-es5/{submitGtag-85914088.js → submitGtag-aa5fe441.js} +1 -2
  278. package/dist/esm-es5/zonos-address_2.entry.js +1 -2
  279. package/dist/esm-es5/zonos-badge.entry.js +1 -2
  280. package/dist/esm-es5/zonos-banner.entry.js +1 -2
  281. package/dist/esm-es5/zonos-button_2.entry.js +1 -2
  282. package/dist/esm-es5/zonos-card_2.entry.js +1 -2
  283. package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -2
  284. package/dist/esm-es5/zonos-checkout.entry.js +1 -2
  285. package/dist/esm-es5/zonos-component.entry.js +1 -2
  286. package/dist/esm-es5/zonos-controller.entry.js +1 -2
  287. package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -2
  288. package/dist/esm-es5/zonos-elements.js +1 -2
  289. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -2
  290. package/dist/esm-es5/zonos-hello.entry.js +1 -2
  291. package/dist/esm-es5/zonos-icon.entry.js +1 -2
  292. package/dist/esm-es5/zonos-notification.entry.js +1 -2
  293. package/dist/esm-es5/zonos-payment.entry.js +1 -2
  294. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -2
  295. package/dist/esm-es5/zonos-text.entry.js +1 -2
  296. package/dist/esm-es5/{zonosStore-1c9c7d76.js → zonosStore-e5291656.js} +1 -2
  297. package/dist/scripts/loadZonos.js +6 -3
  298. package/dist/scripts/zonos.js +6 -3
  299. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -4
  300. package/dist/types/components/store/checkout/cart.d.ts +13 -1
  301. package/dist/types/components/utils/api/getExchangeRate.d.ts +2 -1
  302. package/dist/types/components/utils/hello/getHasMoreSpaceAbove.d.ts +1 -0
  303. package/dist/types/components.d.ts +0 -8
  304. package/dist/types/environment.d.ts +8 -0
  305. package/dist/types/scripts/zonos.d.ts +6 -0
  306. package/dist/types/types/checkout/CheckoutConfig.d.ts +2 -1
  307. package/dist/types/types/generated/graphql.customer.types.d.ts +69 -0
  308. package/dist/types/types/generated/graphql.customer.types.ts +91 -0
  309. package/dist/types/types/generated/graphql.frontend.types.d.ts +0 -4
  310. package/dist/types/types/generated/graphql.frontend.types.ts +0 -1
  311. package/dist/types/types/index.d.ts +1 -0
  312. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  313. package/dist/zonos-elements/index.esm.js +1 -3
  314. package/dist/zonos-elements/p-0190f7c4.entry.js +1 -0
  315. package/dist/zonos-elements/p-01990dcd.js +1 -0
  316. package/dist/zonos-elements/p-0636859b.js +1 -0
  317. package/dist/zonos-elements/p-083b951d.system.entry.js +1 -0
  318. package/dist/zonos-elements/p-0a33b542.system.js +1 -0
  319. package/dist/zonos-elements/p-0cd4b073.system.js +1 -0
  320. package/dist/zonos-elements/p-0f64d234.entry.js +1 -0
  321. package/dist/zonos-elements/p-1293796f.js +1 -0
  322. package/dist/zonos-elements/p-15b71f0b.system.entry.js +1 -0
  323. package/dist/zonos-elements/p-1781245e.system.js +1 -0
  324. package/dist/zonos-elements/p-1835470b.system.entry.js +1 -0
  325. package/dist/zonos-elements/p-18d37ad9.system.js +1 -0
  326. package/dist/zonos-elements/p-1b6d064d.system.js +1 -0
  327. package/dist/zonos-elements/p-23204b78.system.entry.js +1 -0
  328. package/dist/zonos-elements/{classes-ce25a814.system.js → p-23e7c655.system.js} +1 -2
  329. package/dist/zonos-elements/p-2b6325ab.entry.js +1 -0
  330. package/dist/zonos-elements/p-36425562.system.entry.js +1 -0
  331. package/dist/zonos-elements/p-43a25dab.entry.js +1 -0
  332. package/dist/zonos-elements/p-466bae3a.entry.js +1 -0
  333. package/dist/zonos-elements/{getHasMoreSpaceOnRight-5a9efd60.system.js → p-4a5096d2.system.js} +1 -2
  334. package/dist/zonos-elements/{isColorVariable-be454101.system.js → p-64fdb7b6.system.js} +1 -2
  335. package/dist/zonos-elements/{index-87193773.system.js → p-68d06767.system.js} +1 -2
  336. package/dist/zonos-elements/p-6bb67f2e.system.entry.js +1 -0
  337. package/dist/zonos-elements/p-6cd7a90e.system.js +1 -0
  338. package/dist/zonos-elements/p-6d82986c.system.entry.js +1 -0
  339. package/dist/zonos-elements/p-7bacecf7.entry.js +1 -0
  340. package/dist/zonos-elements/p-824395fd.system.entry.js +1 -0
  341. package/dist/zonos-elements/p-82ab16e2.js +1 -0
  342. package/dist/zonos-elements/p-847a1b9a.system.entry.js +1 -0
  343. package/dist/zonos-elements/p-86825d4a.js +1 -0
  344. package/dist/zonos-elements/p-8fa1244b.entry.js +1 -0
  345. package/dist/zonos-elements/p-9688bb12.entry.js +1 -0
  346. package/dist/zonos-elements/p-96fbce98.system.entry.js +1 -0
  347. package/dist/zonos-elements/p-98a6e093.system.entry.js +1 -0
  348. package/dist/zonos-elements/p-9d06e3a3.system.js +1 -0
  349. package/dist/zonos-elements/p-a014d540.entry.js +1 -0
  350. package/dist/zonos-elements/p-a3f394b7.system.entry.js +1 -0
  351. package/dist/zonos-elements/p-aed841bf.entry.js +1 -0
  352. package/dist/zonos-elements/p-b0a39955.js +1 -0
  353. package/dist/zonos-elements/p-b4b7f705.js +1 -0
  354. package/dist/zonos-elements/p-b618cf03.entry.js +1 -0
  355. package/dist/zonos-elements/p-b6c499d4.js +1 -0
  356. package/dist/zonos-elements/p-b75ffe64.system.entry.js +1 -0
  357. package/dist/zonos-elements/p-bb35713f.entry.js +1 -0
  358. package/dist/zonos-elements/p-c4eb37b5.entry.js +1 -0
  359. package/dist/zonos-elements/p-d0ecfe92.system.entry.js +1 -0
  360. package/dist/zonos-elements/p-dc8d7000.js +2 -0
  361. package/dist/zonos-elements/p-ddc11127.system.entry.js +1 -0
  362. package/dist/zonos-elements/p-de86c2e4.system.entry.js +1 -0
  363. package/dist/zonos-elements/p-e80aae7d.entry.js +1 -0
  364. package/dist/zonos-elements/p-eb6cc449.system.entry.js +1 -0
  365. package/dist/zonos-elements/p-ebb4de4e.entry.js +1 -0
  366. package/dist/zonos-elements/p-ee671d13.js +1 -0
  367. package/dist/zonos-elements/p-f5392f7e.entry.js +1 -0
  368. package/dist/zonos-elements/p-f8491335.system.js +1 -0
  369. package/dist/zonos-elements/p-f868ed42.entry.js +1 -0
  370. package/dist/zonos-elements/zonos-elements.esm.js +1 -20
  371. package/dist/zonos-elements/zonos-elements.js +1 -1
  372. package/package.json +1 -1
  373. package/dist/cjs/cart-a969ee0b.js.map +0 -1
  374. package/dist/cjs/classes-b7918f56.js.map +0 -1
  375. package/dist/cjs/getBorderRadius-ae52cae1.js.map +0 -1
  376. package/dist/cjs/getHasMoreSpaceOnRight-2855491b.js.map +0 -1
  377. package/dist/cjs/index-9542d2e7.js.map +0 -1
  378. package/dist/cjs/index.cjs.js.map +0 -1
  379. package/dist/cjs/isColorVariable-c1ed7303.js.map +0 -1
  380. package/dist/cjs/isDarkColor-e1a7bf45.js.map +0 -1
  381. package/dist/cjs/loader.cjs.js.map +0 -1
  382. package/dist/cjs/localization-d510574c.js.map +0 -1
  383. package/dist/cjs/submitGtag-4de4430f.js.map +0 -1
  384. package/dist/cjs/zonos-address_2.cjs.entry.js.map +0 -1
  385. package/dist/cjs/zonos-badge.cjs.entry.js.map +0 -1
  386. package/dist/cjs/zonos-banner.cjs.entry.js.map +0 -1
  387. package/dist/cjs/zonos-button_2.cjs.entry.js.map +0 -1
  388. package/dist/cjs/zonos-card_2.cjs.entry.js.map +0 -1
  389. package/dist/cjs/zonos-cart-items_10.cjs.entry.js.map +0 -1
  390. package/dist/cjs/zonos-checkout.cjs.entry.js.map +0 -1
  391. package/dist/cjs/zonos-component.cjs.entry.js.map +0 -1
  392. package/dist/cjs/zonos-controller.cjs.entry.js.map +0 -1
  393. package/dist/cjs/zonos-country-flag_4.cjs.entry.js.map +0 -1
  394. package/dist/cjs/zonos-elements.cjs.js.map +0 -1
  395. package/dist/cjs/zonos-hello-dialog.cjs.entry.js.map +0 -1
  396. package/dist/cjs/zonos-hello.cjs.entry.js.map +0 -1
  397. package/dist/cjs/zonos-icon.cjs.entry.js.map +0 -1
  398. package/dist/cjs/zonos-notification.cjs.entry.js.map +0 -1
  399. package/dist/cjs/zonos-payment.cjs.entry.js.map +0 -1
  400. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js.map +0 -1
  401. package/dist/cjs/zonos-text.cjs.entry.js.map +0 -1
  402. package/dist/cjs/zonosStore-d9cdaec6.js.map +0 -1
  403. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js.map +0 -1
  404. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js.map +0 -1
  405. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js.map +0 -1
  406. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js.map +0 -1
  407. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js.map +0 -1
  408. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js.map +0 -1
  409. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js.map +0 -1
  410. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js.map +0 -1
  411. package/dist/collection/components/common/countries.js.map +0 -1
  412. package/dist/collection/components/common/zonos-badge/zonos-badge.js.map +0 -1
  413. package/dist/collection/components/common/zonos-banner/zonos-banner.js.map +0 -1
  414. package/dist/collection/components/common/zonos-button/zonos-button.js.map +0 -1
  415. package/dist/collection/components/common/zonos-card/zonos-card.js.map +0 -1
  416. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js.map +0 -1
  417. package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js.map +0 -1
  418. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js.map +0 -1
  419. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js.map +0 -1
  420. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js.map +0 -1
  421. package/dist/collection/components/common/zonos-icon/zonos-icon.js.map +0 -1
  422. package/dist/collection/components/common/zonos-logo/zonos-logo.js.map +0 -1
  423. package/dist/collection/components/common/zonos-notification/zonos-notification.js.map +0 -1
  424. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js.map +0 -1
  425. package/dist/collection/components/common/zonos-spinner/zonos-spinner.js.map +0 -1
  426. package/dist/collection/components/common/zonos-text/zonos-text.js.map +0 -1
  427. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js.map +0 -1
  428. package/dist/collection/components/component-template/zonos-component/zonos-component.js.map +0 -1
  429. package/dist/collection/components/hello/zonos-hello/zonos-hello.js.map +0 -1
  430. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js.map +0 -1
  431. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js.map +0 -1
  432. package/dist/collection/components/main/zonos-controller.js.map +0 -1
  433. package/dist/collection/components/store/checkout/cart.js.map +0 -1
  434. package/dist/collection/components/store/checkout/stripe.js.map +0 -1
  435. package/dist/collection/components/store/hello/localization.js.map +0 -1
  436. package/dist/collection/components/store/translationStore/strings.arabic.js.map +0 -1
  437. package/dist/collection/components/store/translationStore/strings.base.js.map +0 -1
  438. package/dist/collection/components/store/translationStore/strings.chinese.js.map +0 -1
  439. package/dist/collection/components/store/translationStore/strings.danish.js.map +0 -1
  440. package/dist/collection/components/store/translationStore/strings.dutch.js.map +0 -1
  441. package/dist/collection/components/store/translationStore/strings.french.js.map +0 -1
  442. package/dist/collection/components/store/translationStore/strings.german.js.map +0 -1
  443. package/dist/collection/components/store/translationStore/strings.hebrew.js.map +0 -1
  444. package/dist/collection/components/store/translationStore/strings.indonesian.js.map +0 -1
  445. package/dist/collection/components/store/translationStore/strings.italian.js.map +0 -1
  446. package/dist/collection/components/store/translationStore/strings.japanese.js.map +0 -1
  447. package/dist/collection/components/store/translationStore/strings.korean.js.map +0 -1
  448. package/dist/collection/components/store/translationStore/strings.norwegian.js.map +0 -1
  449. package/dist/collection/components/store/translationStore/strings.polish.js.map +0 -1
  450. package/dist/collection/components/store/translationStore/strings.portuguese.js.map +0 -1
  451. package/dist/collection/components/store/translationStore/strings.russian.js.map +0 -1
  452. package/dist/collection/components/store/translationStore/strings.spanish.js.map +0 -1
  453. package/dist/collection/components/store/translationStore/strings.swedish.js.map +0 -1
  454. package/dist/collection/components/store/translationStore/strings.turkish.js.map +0 -1
  455. package/dist/collection/components/store/translationStore/strings.vietnamese.js.map +0 -1
  456. package/dist/collection/components/store/translationStore.js.map +0 -1
  457. package/dist/collection/components/store/zonosStore.js.map +0 -1
  458. package/dist/collection/components/stripe/zonos-address/zonos-address.js.map +0 -1
  459. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js.map +0 -1
  460. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js.map +0 -1
  461. package/dist/collection/components/utils/addDays.js.map +0 -1
  462. package/dist/collection/components/utils/api/calculateLandedCost.js.map +0 -1
  463. package/dist/collection/components/utils/api/checkItemRestrictions.js.map +0 -1
  464. package/dist/collection/components/utils/api/getCountries.js.map +0 -1
  465. package/dist/collection/components/utils/api/getCountryLandedCost.js.map +0 -1
  466. package/dist/collection/components/utils/api/getExchangeRate.js.map +0 -1
  467. package/dist/collection/components/utils/api/getLocaleMessages.js.map +0 -1
  468. package/dist/collection/components/utils/api/getLocalization.js.map +0 -1
  469. package/dist/collection/components/utils/api/getShippingZones.js.map +0 -1
  470. package/dist/collection/components/utils/api/getZonosSetting.js.map +0 -1
  471. package/dist/collection/components/utils/api/prepCalculateLandedCost.js.map +0 -1
  472. package/dist/collection/components/utils/changeDeepProperty.js.map +0 -1
  473. package/dist/collection/components/utils/changeDeepPropertyAtIndex.js.map +0 -1
  474. package/dist/collection/components/utils/checkout/initCheckout.js.map +0 -1
  475. package/dist/collection/components/utils/checkout/isCheckoutMobile.js.map +0 -1
  476. package/dist/collection/components/utils/classes.js.map +0 -1
  477. package/dist/collection/components/utils/darkenColor.js.map +0 -1
  478. package/dist/collection/components/utils/formatCurrency.js.map +0 -1
  479. package/dist/collection/components/utils/formatDate.js.map +0 -1
  480. package/dist/collection/components/utils/getBorderRadius.js.map +0 -1
  481. package/dist/collection/components/utils/getButtonTheme.js.map +0 -1
  482. package/dist/collection/components/utils/getDaysDifference.js.map +0 -1
  483. package/dist/collection/components/utils/handleFetch.js.map +0 -1
  484. package/dist/collection/components/utils/hello/currencyConversion/currencyConvert.js.map +0 -1
  485. package/dist/collection/components/utils/hello/currencyConversion/currencyConvertAndFormat.js.map +0 -1
  486. package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js.map +0 -1
  487. package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js.map +0 -1
  488. package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js.map +0 -1
  489. package/dist/collection/components/utils/hello/currencyConversion/getCurrencyCode.js.map +0 -1
  490. package/dist/collection/components/utils/hello/currencyConversion/getCurrencyElements.js.map +0 -1
  491. package/dist/collection/components/utils/hello/currencyConversion/getInitialElementAmount.js.map +0 -1
  492. package/dist/collection/components/utils/hello/currencyConversion/getLanguageCode.js.map +0 -1
  493. package/dist/collection/components/utils/hello/detectItemRestrictions.js.map +0 -1
  494. package/dist/collection/components/utils/hello/getCurrentHelloLocalePage.js.map +0 -1
  495. package/dist/collection/components/utils/hello/getHasMoreSpaceOnRight.js.map +0 -1
  496. package/dist/collection/components/utils/hello/getProductsOnPage.js.map +0 -1
  497. package/dist/collection/components/utils/hello/initHello.js.map +0 -1
  498. package/dist/collection/components/utils/hello/setZonosCountryUrlParam.js.map +0 -1
  499. package/dist/collection/components/utils/isColorVariable.js.map +0 -1
  500. package/dist/collection/components/utils/isDarkColor.js.map +0 -1
  501. package/dist/collection/components/utils/isValidSelector.js.map +0 -1
  502. package/dist/collection/components/utils/jsonParse.js.map +0 -1
  503. package/dist/collection/components/utils/lightenColor.js.map +0 -1
  504. package/dist/collection/components/utils/logging/log.js.map +0 -1
  505. package/dist/collection/components/utils/logging/logError.js.map +0 -1
  506. package/dist/collection/components/utils/mergeConfig.js.map +0 -1
  507. package/dist/collection/components/utils/submitGtag.js.map +0 -1
  508. package/dist/collection/environment.js.map +0 -1
  509. package/dist/collection/index.js.map +0 -1
  510. package/dist/collection/scripts/loadStripe.js.map +0 -1
  511. package/dist/collection/scripts/stripe.js.map +0 -1
  512. package/dist/collection/scripts/zonos.js.map +0 -1
  513. package/dist/collection/styles/stripe/addressRuleStyle.js.map +0 -1
  514. package/dist/collection/styles/stripe/defaultVariable.js.map +0 -1
  515. package/dist/collection/types/ICountryJson.js.map +0 -1
  516. package/dist/collection/types/JsonError.js.map +0 -1
  517. package/dist/collection/types/NoInfer.js.map +0 -1
  518. package/dist/collection/types/Translation.js.map +0 -1
  519. package/dist/collection/types/checkout/CheckoutConfig.js.map +0 -1
  520. package/dist/collection/types/checkout/api/CalculateLandedCostRequest.js.map +0 -1
  521. package/dist/collection/types/generated/graphql.customer.types.js.map +0 -1
  522. package/dist/collection/types/generated/graphql.frontend.types.js.map +0 -1
  523. package/dist/collection/types/hello/HelloConfig.js.map +0 -1
  524. package/dist/collection/types/hello/Product.js.map +0 -1
  525. package/dist/collection/types/hello/RestrictedItem.js.map +0 -1
  526. package/dist/collection/types/index.js.map +0 -1
  527. package/dist/collection/types/online-store/OnlineStoreConfig.js.map +0 -1
  528. package/dist/collection/types/stripe/Apperance.js.map +0 -1
  529. package/dist/collection/types/styles/Color.js.map +0 -1
  530. package/dist/collection/types/styles/GridSpacing.js.map +0 -1
  531. package/dist/collection/types/styles/Text.js.map +0 -1
  532. package/dist/collection/types/utils/deep/IDeepKeyof.js.map +0 -1
  533. package/dist/collection/types/utils/deep/IDeepKeyofAtIndex.js.map +0 -1
  534. package/dist/collection/utils/format.js.map +0 -1
  535. package/dist/collection/utils/generateVercelDeployUrl.js.map +0 -1
  536. package/dist/components/classes.js.map +0 -1
  537. package/dist/components/formatCurrency.js.map +0 -1
  538. package/dist/components/getBorderRadius.js.map +0 -1
  539. package/dist/components/index.js.map +0 -1
  540. package/dist/components/isColorVariable.js.map +0 -1
  541. package/dist/components/isDarkColor.js.map +0 -1
  542. package/dist/components/localization.js.map +0 -1
  543. package/dist/components/stripe.js +0 -598
  544. package/dist/components/stripe.js.map +0 -1
  545. package/dist/components/submitGtag.js.map +0 -1
  546. package/dist/components/zonos-address.js.map +0 -1
  547. package/dist/components/zonos-address2.js.map +0 -1
  548. package/dist/components/zonos-badge.js.map +0 -1
  549. package/dist/components/zonos-badge2.js.map +0 -1
  550. package/dist/components/zonos-banner.js.map +0 -1
  551. package/dist/components/zonos-banner2.js.map +0 -1
  552. package/dist/components/zonos-button.js.map +0 -1
  553. package/dist/components/zonos-button2.js.map +0 -1
  554. package/dist/components/zonos-card.js.map +0 -1
  555. package/dist/components/zonos-card2.js.map +0 -1
  556. package/dist/components/zonos-cart-items.js.map +0 -1
  557. package/dist/components/zonos-cart-items2.js.map +0 -1
  558. package/dist/components/zonos-cart-subtotal.js.map +0 -1
  559. package/dist/components/zonos-cart-subtotal2.js.map +0 -1
  560. package/dist/components/zonos-checkout-finish.js.map +0 -1
  561. package/dist/components/zonos-checkout-finish2.js.map +0 -1
  562. package/dist/components/zonos-checkout-payment.js.map +0 -1
  563. package/dist/components/zonos-checkout-payment2.js.map +0 -1
  564. package/dist/components/zonos-checkout.js.map +0 -1
  565. package/dist/components/zonos-collapse.js.map +0 -1
  566. package/dist/components/zonos-collapse2.js.map +0 -1
  567. package/dist/components/zonos-component.js.map +0 -1
  568. package/dist/components/zonos-controller.js.map +0 -1
  569. package/dist/components/zonos-country-flag.js.map +0 -1
  570. package/dist/components/zonos-country-flag2.js.map +0 -1
  571. package/dist/components/zonos-country-select.js.map +0 -1
  572. package/dist/components/zonos-country-select2.js.map +0 -1
  573. package/dist/components/zonos-custom-message.js.map +0 -1
  574. package/dist/components/zonos-custom-message2.js.map +0 -1
  575. package/dist/components/zonos-customer-info.js.map +0 -1
  576. package/dist/components/zonos-customer-info2.js.map +0 -1
  577. package/dist/components/zonos-dialog.js.map +0 -1
  578. package/dist/components/zonos-dialog2.js.map +0 -1
  579. package/dist/components/zonos-hello-dialog-footer.js.map +0 -1
  580. package/dist/components/zonos-hello-dialog-footer2.js.map +0 -1
  581. package/dist/components/zonos-hello-dialog.js.map +0 -1
  582. package/dist/components/zonos-hello-dialog2.js.map +0 -1
  583. package/dist/components/zonos-hello.js.map +0 -1
  584. package/dist/components/zonos-icon.js.map +0 -1
  585. package/dist/components/zonos-icon2.js.map +0 -1
  586. package/dist/components/zonos-link-authentication.js.map +0 -1
  587. package/dist/components/zonos-link-authentication2.js.map +0 -1
  588. package/dist/components/zonos-logo.js.map +0 -1
  589. package/dist/components/zonos-logo2.js.map +0 -1
  590. package/dist/components/zonos-notification.js.map +0 -1
  591. package/dist/components/zonos-notification2.js.map +0 -1
  592. package/dist/components/zonos-payment.js.map +0 -1
  593. package/dist/components/zonos-payment2.js.map +0 -1
  594. package/dist/components/zonos-review.js.map +0 -1
  595. package/dist/components/zonos-review2.js.map +0 -1
  596. package/dist/components/zonos-shipping-rich-radio.js.map +0 -1
  597. package/dist/components/zonos-shipping-rich-radio2.js.map +0 -1
  598. package/dist/components/zonos-shipping.js.map +0 -1
  599. package/dist/components/zonos-shipping2.js.map +0 -1
  600. package/dist/components/zonos-spinner.js.map +0 -1
  601. package/dist/components/zonos-spinner2.js.map +0 -1
  602. package/dist/components/zonos-text.js.map +0 -1
  603. package/dist/components/zonos-text2.js.map +0 -1
  604. package/dist/components/zonos-v-stack.js.map +0 -1
  605. package/dist/components/zonos-v-stack2.js.map +0 -1
  606. package/dist/components/zonosStore.js.map +0 -1
  607. package/dist/esm/cart-d00e1acb.js.map +0 -1
  608. package/dist/esm/classes-0d95c529.js.map +0 -1
  609. package/dist/esm/getBorderRadius-e8ad5967.js.map +0 -1
  610. package/dist/esm/getHasMoreSpaceOnRight-feba1ae2.js.map +0 -1
  611. package/dist/esm/index-d1aa9293.js.map +0 -1
  612. package/dist/esm/index.js.map +0 -1
  613. package/dist/esm/isColorVariable-4cda28c9.js.map +0 -1
  614. package/dist/esm/isDarkColor-3bb345f4.js +0 -1197
  615. package/dist/esm/isDarkColor-3bb345f4.js.map +0 -1
  616. package/dist/esm/loader.js.map +0 -1
  617. package/dist/esm/localization-1d92a557.js +0 -3561
  618. package/dist/esm/localization-1d92a557.js.map +0 -1
  619. package/dist/esm/submitGtag-85914088.js +0 -26
  620. package/dist/esm/submitGtag-85914088.js.map +0 -1
  621. package/dist/esm/zonos-address_2.entry.js.map +0 -1
  622. package/dist/esm/zonos-badge.entry.js.map +0 -1
  623. package/dist/esm/zonos-banner.entry.js.map +0 -1
  624. package/dist/esm/zonos-button_2.entry.js.map +0 -1
  625. package/dist/esm/zonos-card_2.entry.js.map +0 -1
  626. package/dist/esm/zonos-cart-items_10.entry.js.map +0 -1
  627. package/dist/esm/zonos-checkout.entry.js.map +0 -1
  628. package/dist/esm/zonos-component.entry.js.map +0 -1
  629. package/dist/esm/zonos-controller.entry.js.map +0 -1
  630. package/dist/esm/zonos-country-flag_4.entry.js.map +0 -1
  631. package/dist/esm/zonos-elements.js.map +0 -1
  632. package/dist/esm/zonos-hello-dialog.entry.js.map +0 -1
  633. package/dist/esm/zonos-hello.entry.js.map +0 -1
  634. package/dist/esm/zonos-icon.entry.js.map +0 -1
  635. package/dist/esm/zonos-notification.entry.js.map +0 -1
  636. package/dist/esm/zonos-payment.entry.js.map +0 -1
  637. package/dist/esm/zonos-shipping-rich-radio.entry.js.map +0 -1
  638. package/dist/esm/zonos-text.entry.js.map +0 -1
  639. package/dist/esm/zonosStore-1c9c7d76.js +0 -2623
  640. package/dist/esm/zonosStore-1c9c7d76.js.map +0 -1
  641. package/dist/esm-es5/cart-d00e1acb.js +0 -2
  642. package/dist/esm-es5/cart-d00e1acb.js.map +0 -1
  643. package/dist/esm-es5/classes-0d95c529.js.map +0 -1
  644. package/dist/esm-es5/getBorderRadius-e8ad5967.js +0 -2
  645. package/dist/esm-es5/getBorderRadius-e8ad5967.js.map +0 -1
  646. package/dist/esm-es5/getHasMoreSpaceOnRight-feba1ae2.js.map +0 -1
  647. package/dist/esm-es5/index-d1aa9293.js.map +0 -1
  648. package/dist/esm-es5/index.js.map +0 -1
  649. package/dist/esm-es5/isColorVariable-4cda28c9.js.map +0 -1
  650. package/dist/esm-es5/isDarkColor-3bb345f4.js.map +0 -1
  651. package/dist/esm-es5/loader.js.map +0 -1
  652. package/dist/esm-es5/localization-1d92a557.js.map +0 -1
  653. package/dist/esm-es5/submitGtag-85914088.js.map +0 -1
  654. package/dist/esm-es5/zonos-address_2.entry.js.map +0 -1
  655. package/dist/esm-es5/zonos-badge.entry.js.map +0 -1
  656. package/dist/esm-es5/zonos-banner.entry.js.map +0 -1
  657. package/dist/esm-es5/zonos-button_2.entry.js.map +0 -1
  658. package/dist/esm-es5/zonos-card_2.entry.js.map +0 -1
  659. package/dist/esm-es5/zonos-cart-items_10.entry.js.map +0 -1
  660. package/dist/esm-es5/zonos-checkout.entry.js.map +0 -1
  661. package/dist/esm-es5/zonos-component.entry.js.map +0 -1
  662. package/dist/esm-es5/zonos-controller.entry.js.map +0 -1
  663. package/dist/esm-es5/zonos-country-flag_4.entry.js.map +0 -1
  664. package/dist/esm-es5/zonos-elements.js.map +0 -1
  665. package/dist/esm-es5/zonos-hello-dialog.entry.js.map +0 -1
  666. package/dist/esm-es5/zonos-hello.entry.js.map +0 -1
  667. package/dist/esm-es5/zonos-icon.entry.js.map +0 -1
  668. package/dist/esm-es5/zonos-notification.entry.js.map +0 -1
  669. package/dist/esm-es5/zonos-payment.entry.js.map +0 -1
  670. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js.map +0 -1
  671. package/dist/esm-es5/zonos-text.entry.js.map +0 -1
  672. package/dist/esm-es5/zonosStore-1c9c7d76.js.map +0 -1
  673. package/dist/zonos-elements/cart-c641ddaf.system.js +0 -2
  674. package/dist/zonos-elements/cart-c641ddaf.system.js.map +0 -1
  675. package/dist/zonos-elements/cart-d00e1acb.js.map +0 -1
  676. package/dist/zonos-elements/classes-0d95c529.js +0 -14
  677. package/dist/zonos-elements/classes-0d95c529.js.map +0 -1
  678. package/dist/zonos-elements/classes-ce25a814.system.js.map +0 -1
  679. package/dist/zonos-elements/getBorderRadius-b59c3ada.system.js +0 -2
  680. package/dist/zonos-elements/getBorderRadius-b59c3ada.system.js.map +0 -1
  681. package/dist/zonos-elements/getBorderRadius-e8ad5967.js +0 -18
  682. package/dist/zonos-elements/getBorderRadius-e8ad5967.js.map +0 -1
  683. package/dist/zonos-elements/getHasMoreSpaceOnRight-5a9efd60.system.js.map +0 -1
  684. package/dist/zonos-elements/getHasMoreSpaceOnRight-feba1ae2.js +0 -10
  685. package/dist/zonos-elements/getHasMoreSpaceOnRight-feba1ae2.js.map +0 -1
  686. package/dist/zonos-elements/index-87193773.system.js.map +0 -1
  687. package/dist/zonos-elements/index-d1aa9293.js +0 -1884
  688. package/dist/zonos-elements/index-d1aa9293.js.map +0 -1
  689. package/dist/zonos-elements/index.esm.js.map +0 -1
  690. package/dist/zonos-elements/index.system.js +0 -2
  691. package/dist/zonos-elements/index.system.js.map +0 -1
  692. package/dist/zonos-elements/isColorVariable-4cda28c9.js +0 -16
  693. package/dist/zonos-elements/isColorVariable-4cda28c9.js.map +0 -1
  694. package/dist/zonos-elements/isColorVariable-be454101.system.js.map +0 -1
  695. package/dist/zonos-elements/isDarkColor-231502d4.system.js +0 -2
  696. package/dist/zonos-elements/isDarkColor-231502d4.system.js.map +0 -1
  697. package/dist/zonos-elements/isDarkColor-3bb345f4.js.map +0 -1
  698. package/dist/zonos-elements/localization-1d92a557.js.map +0 -1
  699. package/dist/zonos-elements/localization-a6b6a5a5.system.js +0 -2
  700. package/dist/zonos-elements/localization-a6b6a5a5.system.js.map +0 -1
  701. package/dist/zonos-elements/submitGtag-764af8c4.system.js +0 -2
  702. package/dist/zonos-elements/submitGtag-764af8c4.system.js.map +0 -1
  703. package/dist/zonos-elements/submitGtag-85914088.js.map +0 -1
  704. package/dist/zonos-elements/zonos-address_2.entry.js +0 -121
  705. package/dist/zonos-elements/zonos-address_2.entry.js.map +0 -1
  706. package/dist/zonos-elements/zonos-address_2.system.entry.js +0 -2
  707. package/dist/zonos-elements/zonos-address_2.system.entry.js.map +0 -1
  708. package/dist/zonos-elements/zonos-badge.entry.js +0 -32
  709. package/dist/zonos-elements/zonos-badge.entry.js.map +0 -1
  710. package/dist/zonos-elements/zonos-badge.system.entry.js +0 -2
  711. package/dist/zonos-elements/zonos-badge.system.entry.js.map +0 -1
  712. package/dist/zonos-elements/zonos-banner.entry.js +0 -64
  713. package/dist/zonos-elements/zonos-banner.entry.js.map +0 -1
  714. package/dist/zonos-elements/zonos-banner.system.entry.js +0 -2
  715. package/dist/zonos-elements/zonos-banner.system.entry.js.map +0 -1
  716. package/dist/zonos-elements/zonos-button_2.entry.js +0 -124
  717. package/dist/zonos-elements/zonos-button_2.entry.js.map +0 -1
  718. package/dist/zonos-elements/zonos-button_2.system.entry.js +0 -2
  719. package/dist/zonos-elements/zonos-button_2.system.entry.js.map +0 -1
  720. package/dist/zonos-elements/zonos-card_2.entry.js +0 -42
  721. package/dist/zonos-elements/zonos-card_2.entry.js.map +0 -1
  722. package/dist/zonos-elements/zonos-card_2.system.entry.js +0 -2
  723. package/dist/zonos-elements/zonos-card_2.system.entry.js.map +0 -1
  724. package/dist/zonos-elements/zonos-cart-items_10.entry.js +0 -494
  725. package/dist/zonos-elements/zonos-cart-items_10.entry.js.map +0 -1
  726. package/dist/zonos-elements/zonos-cart-items_10.system.entry.js +0 -2
  727. package/dist/zonos-elements/zonos-cart-items_10.system.entry.js.map +0 -1
  728. package/dist/zonos-elements/zonos-checkout.entry.js +0 -337
  729. package/dist/zonos-elements/zonos-checkout.entry.js.map +0 -1
  730. package/dist/zonos-elements/zonos-checkout.system.entry.js +0 -2
  731. package/dist/zonos-elements/zonos-checkout.system.entry.js.map +0 -1
  732. package/dist/zonos-elements/zonos-component.entry.js +0 -27
  733. package/dist/zonos-elements/zonos-component.entry.js.map +0 -1
  734. package/dist/zonos-elements/zonos-component.system.entry.js +0 -2
  735. package/dist/zonos-elements/zonos-component.system.entry.js.map +0 -1
  736. package/dist/zonos-elements/zonos-controller.entry.js +0 -165
  737. package/dist/zonos-elements/zonos-controller.entry.js.map +0 -1
  738. package/dist/zonos-elements/zonos-controller.system.entry.js +0 -2
  739. package/dist/zonos-elements/zonos-controller.system.entry.js.map +0 -1
  740. package/dist/zonos-elements/zonos-country-flag_4.entry.js +0 -1895
  741. package/dist/zonos-elements/zonos-country-flag_4.entry.js.map +0 -1
  742. package/dist/zonos-elements/zonos-country-flag_4.system.entry.js +0 -2
  743. package/dist/zonos-elements/zonos-country-flag_4.system.entry.js.map +0 -1
  744. package/dist/zonos-elements/zonos-elements.esm.js.map +0 -1
  745. package/dist/zonos-elements/zonos-elements.system.js +0 -2
  746. package/dist/zonos-elements/zonos-elements.system.js.map +0 -1
  747. package/dist/zonos-elements/zonos-hello-dialog.entry.js +0 -115
  748. package/dist/zonos-elements/zonos-hello-dialog.entry.js.map +0 -1
  749. package/dist/zonos-elements/zonos-hello-dialog.system.entry.js +0 -2
  750. package/dist/zonos-elements/zonos-hello-dialog.system.entry.js.map +0 -1
  751. package/dist/zonos-elements/zonos-hello.entry.js +0 -696
  752. package/dist/zonos-elements/zonos-hello.entry.js.map +0 -1
  753. package/dist/zonos-elements/zonos-hello.system.entry.js +0 -2
  754. package/dist/zonos-elements/zonos-hello.system.entry.js.map +0 -1
  755. package/dist/zonos-elements/zonos-icon.entry.js +0 -30
  756. package/dist/zonos-elements/zonos-icon.entry.js.map +0 -1
  757. package/dist/zonos-elements/zonos-icon.system.entry.js +0 -2
  758. package/dist/zonos-elements/zonos-icon.system.entry.js.map +0 -1
  759. package/dist/zonos-elements/zonos-notification.entry.js +0 -67
  760. package/dist/zonos-elements/zonos-notification.entry.js.map +0 -1
  761. package/dist/zonos-elements/zonos-notification.system.entry.js +0 -2
  762. package/dist/zonos-elements/zonos-notification.system.entry.js.map +0 -1
  763. package/dist/zonos-elements/zonos-payment.entry.js +0 -56
  764. package/dist/zonos-elements/zonos-payment.entry.js.map +0 -1
  765. package/dist/zonos-elements/zonos-payment.system.entry.js +0 -2
  766. package/dist/zonos-elements/zonos-payment.system.entry.js.map +0 -1
  767. package/dist/zonos-elements/zonos-shipping-rich-radio.entry.js +0 -50
  768. package/dist/zonos-elements/zonos-shipping-rich-radio.entry.js.map +0 -1
  769. package/dist/zonos-elements/zonos-shipping-rich-radio.system.entry.js +0 -2
  770. package/dist/zonos-elements/zonos-shipping-rich-radio.system.entry.js.map +0 -1
  771. package/dist/zonos-elements/zonos-text.entry.js +0 -156
  772. package/dist/zonos-elements/zonos-text.entry.js.map +0 -1
  773. package/dist/zonos-elements/zonos-text.system.entry.js +0 -2
  774. package/dist/zonos-elements/zonos-text.system.entry.js.map +0 -1
  775. package/dist/zonos-elements/zonosStore-1c9c7d76.js.map +0 -1
  776. package/dist/zonos-elements/zonosStore-e5c545ea.system.js +0 -2
  777. package/dist/zonos-elements/zonosStore-e5c545ea.system.js.map +0 -1
@@ -1,2623 +0,0 @@
1
- import { g as getRenderingRef, f as forceUpdate } from './index-d1aa9293.js';
2
-
3
- const appendToMap = (map, propName, value) => {
4
- const items = map.get(propName);
5
- if (!items) {
6
- map.set(propName, [value]);
7
- }
8
- else if (!items.includes(value)) {
9
- items.push(value);
10
- }
11
- };
12
- const debounce = (fn, ms) => {
13
- let timeoutId;
14
- return (...args) => {
15
- if (timeoutId) {
16
- clearTimeout(timeoutId);
17
- }
18
- timeoutId = setTimeout(() => {
19
- timeoutId = 0;
20
- fn(...args);
21
- }, ms);
22
- };
23
- };
24
-
25
- /**
26
- * Check if a possible element isConnected.
27
- * The property might not be there, so we check for it.
28
- *
29
- * We want it to return true if isConnected is not a property,
30
- * otherwise we would remove these elements and would not update.
31
- *
32
- * Better leak in Edge than to be useless.
33
- */
34
- const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
35
- const cleanupElements = debounce((map) => {
36
- for (let key of map.keys()) {
37
- map.set(key, map.get(key).filter(isConnected));
38
- }
39
- }, 2000);
40
- const stencilSubscription = () => {
41
- if (typeof getRenderingRef !== 'function') {
42
- // If we are not in a stencil project, we do nothing.
43
- // This function is not really exported by @stencil/core.
44
- return {};
45
- }
46
- const elmsToUpdate = new Map();
47
- return {
48
- dispose: () => elmsToUpdate.clear(),
49
- get: (propName) => {
50
- const elm = getRenderingRef();
51
- if (elm) {
52
- appendToMap(elmsToUpdate, propName, elm);
53
- }
54
- },
55
- set: (propName) => {
56
- const elements = elmsToUpdate.get(propName);
57
- if (elements) {
58
- elmsToUpdate.set(propName, elements.filter(forceUpdate));
59
- }
60
- cleanupElements(elmsToUpdate);
61
- },
62
- reset: () => {
63
- elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
64
- cleanupElements(elmsToUpdate);
65
- },
66
- };
67
- };
68
-
69
- const unwrap = (val) => (typeof val === 'function' ? val() : val);
70
- const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
71
- const unwrappedState = unwrap(defaultState);
72
- let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));
73
- const handlers = {
74
- dispose: [],
75
- get: [],
76
- set: [],
77
- reset: [],
78
- };
79
- const reset = () => {
80
- var _a;
81
- // When resetting the state, the default state may be a function - unwrap it to invoke it.
82
- // otherwise, the state won't be properly reset
83
- states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));
84
- handlers.reset.forEach((cb) => cb());
85
- };
86
- const dispose = () => {
87
- // Call first dispose as resetting the state would
88
- // cause less updates ;)
89
- handlers.dispose.forEach((cb) => cb());
90
- reset();
91
- };
92
- const get = (propName) => {
93
- handlers.get.forEach((cb) => cb(propName));
94
- return states.get(propName);
95
- };
96
- const set = (propName, value) => {
97
- const oldValue = states.get(propName);
98
- if (shouldUpdate(value, oldValue, propName)) {
99
- states.set(propName, value);
100
- handlers.set.forEach((cb) => cb(propName, value, oldValue));
101
- }
102
- };
103
- const state = (typeof Proxy === 'undefined'
104
- ? {}
105
- : new Proxy(unwrappedState, {
106
- get(_, propName) {
107
- return get(propName);
108
- },
109
- ownKeys(_) {
110
- return Array.from(states.keys());
111
- },
112
- getOwnPropertyDescriptor() {
113
- return {
114
- enumerable: true,
115
- configurable: true,
116
- };
117
- },
118
- has(_, propName) {
119
- return states.has(propName);
120
- },
121
- set(_, propName, value) {
122
- set(propName, value);
123
- return true;
124
- },
125
- }));
126
- const on = (eventName, callback) => {
127
- handlers[eventName].push(callback);
128
- return () => {
129
- removeFromArray(handlers[eventName], callback);
130
- };
131
- };
132
- const onChange = (propName, cb) => {
133
- const unSet = on('set', (key, newValue) => {
134
- if (key === propName) {
135
- cb(newValue);
136
- }
137
- });
138
- // We need to unwrap the defaultState because it might be a function.
139
- // Otherwise we might not be sending the right reset value.
140
- const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));
141
- return () => {
142
- unSet();
143
- unReset();
144
- };
145
- };
146
- const use = (...subscriptions) => {
147
- const unsubs = subscriptions.reduce((unsubs, subscription) => {
148
- if (subscription.set) {
149
- unsubs.push(on('set', subscription.set));
150
- }
151
- if (subscription.get) {
152
- unsubs.push(on('get', subscription.get));
153
- }
154
- if (subscription.reset) {
155
- unsubs.push(on('reset', subscription.reset));
156
- }
157
- if (subscription.dispose) {
158
- unsubs.push(on('dispose', subscription.dispose));
159
- }
160
- return unsubs;
161
- }, []);
162
- return () => unsubs.forEach((unsub) => unsub());
163
- };
164
- const forceUpdate = (key) => {
165
- const oldValue = states.get(key);
166
- handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
167
- };
168
- return {
169
- state,
170
- get,
171
- set,
172
- on,
173
- onChange,
174
- use,
175
- dispose,
176
- reset,
177
- forceUpdate,
178
- };
179
- };
180
- const removeFromArray = (array, item) => {
181
- const index = array.indexOf(item);
182
- if (index >= 0) {
183
- array[index] = array[array.length - 1];
184
- array.length--;
185
- }
186
- };
187
-
188
- const createStore = (defaultState, shouldUpdate) => {
189
- const map = createObservableMap(defaultState, shouldUpdate);
190
- map.use(stencilSubscription());
191
- return map;
192
- };
193
-
194
- /**
195
- * Removes all key-value entries from the list cache.
196
- *
197
- * @private
198
- * @name clear
199
- * @memberOf ListCache
200
- */
201
- function listCacheClear() {
202
- this.__data__ = [];
203
- this.size = 0;
204
- }
205
-
206
- var _listCacheClear = listCacheClear;
207
-
208
- /**
209
- * Performs a
210
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
211
- * comparison between two values to determine if they are equivalent.
212
- *
213
- * @static
214
- * @memberOf _
215
- * @since 4.0.0
216
- * @category Lang
217
- * @param {*} value The value to compare.
218
- * @param {*} other The other value to compare.
219
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
220
- * @example
221
- *
222
- * var object = { 'a': 1 };
223
- * var other = { 'a': 1 };
224
- *
225
- * _.eq(object, object);
226
- * // => true
227
- *
228
- * _.eq(object, other);
229
- * // => false
230
- *
231
- * _.eq('a', 'a');
232
- * // => true
233
- *
234
- * _.eq('a', Object('a'));
235
- * // => false
236
- *
237
- * _.eq(NaN, NaN);
238
- * // => true
239
- */
240
- function eq(value, other) {
241
- return value === other || (value !== value && other !== other);
242
- }
243
-
244
- var eq_1 = eq;
245
-
246
- /**
247
- * Gets the index at which the `key` is found in `array` of key-value pairs.
248
- *
249
- * @private
250
- * @param {Array} array The array to inspect.
251
- * @param {*} key The key to search for.
252
- * @returns {number} Returns the index of the matched value, else `-1`.
253
- */
254
- function assocIndexOf(array, key) {
255
- var length = array.length;
256
- while (length--) {
257
- if (eq_1(array[length][0], key)) {
258
- return length;
259
- }
260
- }
261
- return -1;
262
- }
263
-
264
- var _assocIndexOf = assocIndexOf;
265
-
266
- /** Used for built-in method references. */
267
- var arrayProto = Array.prototype;
268
-
269
- /** Built-in value references. */
270
- var splice = arrayProto.splice;
271
-
272
- /**
273
- * Removes `key` and its value from the list cache.
274
- *
275
- * @private
276
- * @name delete
277
- * @memberOf ListCache
278
- * @param {string} key The key of the value to remove.
279
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
280
- */
281
- function listCacheDelete(key) {
282
- var data = this.__data__,
283
- index = _assocIndexOf(data, key);
284
-
285
- if (index < 0) {
286
- return false;
287
- }
288
- var lastIndex = data.length - 1;
289
- if (index == lastIndex) {
290
- data.pop();
291
- } else {
292
- splice.call(data, index, 1);
293
- }
294
- --this.size;
295
- return true;
296
- }
297
-
298
- var _listCacheDelete = listCacheDelete;
299
-
300
- /**
301
- * Gets the list cache value for `key`.
302
- *
303
- * @private
304
- * @name get
305
- * @memberOf ListCache
306
- * @param {string} key The key of the value to get.
307
- * @returns {*} Returns the entry value.
308
- */
309
- function listCacheGet(key) {
310
- var data = this.__data__,
311
- index = _assocIndexOf(data, key);
312
-
313
- return index < 0 ? undefined : data[index][1];
314
- }
315
-
316
- var _listCacheGet = listCacheGet;
317
-
318
- /**
319
- * Checks if a list cache value for `key` exists.
320
- *
321
- * @private
322
- * @name has
323
- * @memberOf ListCache
324
- * @param {string} key The key of the entry to check.
325
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
326
- */
327
- function listCacheHas(key) {
328
- return _assocIndexOf(this.__data__, key) > -1;
329
- }
330
-
331
- var _listCacheHas = listCacheHas;
332
-
333
- /**
334
- * Sets the list cache `key` to `value`.
335
- *
336
- * @private
337
- * @name set
338
- * @memberOf ListCache
339
- * @param {string} key The key of the value to set.
340
- * @param {*} value The value to set.
341
- * @returns {Object} Returns the list cache instance.
342
- */
343
- function listCacheSet(key, value) {
344
- var data = this.__data__,
345
- index = _assocIndexOf(data, key);
346
-
347
- if (index < 0) {
348
- ++this.size;
349
- data.push([key, value]);
350
- } else {
351
- data[index][1] = value;
352
- }
353
- return this;
354
- }
355
-
356
- var _listCacheSet = listCacheSet;
357
-
358
- /**
359
- * Creates an list cache object.
360
- *
361
- * @private
362
- * @constructor
363
- * @param {Array} [entries] The key-value pairs to cache.
364
- */
365
- function ListCache(entries) {
366
- var index = -1,
367
- length = entries == null ? 0 : entries.length;
368
-
369
- this.clear();
370
- while (++index < length) {
371
- var entry = entries[index];
372
- this.set(entry[0], entry[1]);
373
- }
374
- }
375
-
376
- // Add methods to `ListCache`.
377
- ListCache.prototype.clear = _listCacheClear;
378
- ListCache.prototype['delete'] = _listCacheDelete;
379
- ListCache.prototype.get = _listCacheGet;
380
- ListCache.prototype.has = _listCacheHas;
381
- ListCache.prototype.set = _listCacheSet;
382
-
383
- var _ListCache = ListCache;
384
-
385
- /**
386
- * Removes all key-value entries from the stack.
387
- *
388
- * @private
389
- * @name clear
390
- * @memberOf Stack
391
- */
392
- function stackClear() {
393
- this.__data__ = new _ListCache;
394
- this.size = 0;
395
- }
396
-
397
- var _stackClear = stackClear;
398
-
399
- /**
400
- * Removes `key` and its value from the stack.
401
- *
402
- * @private
403
- * @name delete
404
- * @memberOf Stack
405
- * @param {string} key The key of the value to remove.
406
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
407
- */
408
- function stackDelete(key) {
409
- var data = this.__data__,
410
- result = data['delete'](key);
411
-
412
- this.size = data.size;
413
- return result;
414
- }
415
-
416
- var _stackDelete = stackDelete;
417
-
418
- /**
419
- * Gets the stack value for `key`.
420
- *
421
- * @private
422
- * @name get
423
- * @memberOf Stack
424
- * @param {string} key The key of the value to get.
425
- * @returns {*} Returns the entry value.
426
- */
427
- function stackGet(key) {
428
- return this.__data__.get(key);
429
- }
430
-
431
- var _stackGet = stackGet;
432
-
433
- /**
434
- * Checks if a stack value for `key` exists.
435
- *
436
- * @private
437
- * @name has
438
- * @memberOf Stack
439
- * @param {string} key The key of the entry to check.
440
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
441
- */
442
- function stackHas(key) {
443
- return this.__data__.has(key);
444
- }
445
-
446
- var _stackHas = stackHas;
447
-
448
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
449
-
450
- function createCommonjsModule(fn, basedir, module) {
451
- return module = {
452
- path: basedir,
453
- exports: {},
454
- require: function (path, base) {
455
- return commonjsRequire();
456
- }
457
- }, fn(module, module.exports), module.exports;
458
- }
459
-
460
- function commonjsRequire () {
461
- throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
462
- }
463
-
464
- /** Detect free variable `global` from Node.js. */
465
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
466
-
467
- var _freeGlobal = freeGlobal;
468
-
469
- /** Detect free variable `self`. */
470
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
471
-
472
- /** Used as a reference to the global object. */
473
- var root = _freeGlobal || freeSelf || Function('return this')();
474
-
475
- var _root = root;
476
-
477
- /** Built-in value references. */
478
- var Symbol = _root.Symbol;
479
-
480
- var _Symbol = Symbol;
481
-
482
- /** Used for built-in method references. */
483
- var objectProto$a = Object.prototype;
484
-
485
- /** Used to check objects for own properties. */
486
- var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
487
-
488
- /**
489
- * Used to resolve the
490
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
491
- * of values.
492
- */
493
- var nativeObjectToString$1 = objectProto$a.toString;
494
-
495
- /** Built-in value references. */
496
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
497
-
498
- /**
499
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
500
- *
501
- * @private
502
- * @param {*} value The value to query.
503
- * @returns {string} Returns the raw `toStringTag`.
504
- */
505
- function getRawTag(value) {
506
- var isOwn = hasOwnProperty$8.call(value, symToStringTag$1),
507
- tag = value[symToStringTag$1];
508
-
509
- try {
510
- value[symToStringTag$1] = undefined;
511
- var unmasked = true;
512
- } catch (e) {}
513
-
514
- var result = nativeObjectToString$1.call(value);
515
- if (unmasked) {
516
- if (isOwn) {
517
- value[symToStringTag$1] = tag;
518
- } else {
519
- delete value[symToStringTag$1];
520
- }
521
- }
522
- return result;
523
- }
524
-
525
- var _getRawTag = getRawTag;
526
-
527
- /** Used for built-in method references. */
528
- var objectProto$9 = Object.prototype;
529
-
530
- /**
531
- * Used to resolve the
532
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
533
- * of values.
534
- */
535
- var nativeObjectToString = objectProto$9.toString;
536
-
537
- /**
538
- * Converts `value` to a string using `Object.prototype.toString`.
539
- *
540
- * @private
541
- * @param {*} value The value to convert.
542
- * @returns {string} Returns the converted string.
543
- */
544
- function objectToString(value) {
545
- return nativeObjectToString.call(value);
546
- }
547
-
548
- var _objectToString = objectToString;
549
-
550
- /** `Object#toString` result references. */
551
- var nullTag = '[object Null]',
552
- undefinedTag = '[object Undefined]';
553
-
554
- /** Built-in value references. */
555
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
556
-
557
- /**
558
- * The base implementation of `getTag` without fallbacks for buggy environments.
559
- *
560
- * @private
561
- * @param {*} value The value to query.
562
- * @returns {string} Returns the `toStringTag`.
563
- */
564
- function baseGetTag(value) {
565
- if (value == null) {
566
- return value === undefined ? undefinedTag : nullTag;
567
- }
568
- return (symToStringTag && symToStringTag in Object(value))
569
- ? _getRawTag(value)
570
- : _objectToString(value);
571
- }
572
-
573
- var _baseGetTag = baseGetTag;
574
-
575
- /**
576
- * Checks if `value` is the
577
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
578
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
579
- *
580
- * @static
581
- * @memberOf _
582
- * @since 0.1.0
583
- * @category Lang
584
- * @param {*} value The value to check.
585
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
586
- * @example
587
- *
588
- * _.isObject({});
589
- * // => true
590
- *
591
- * _.isObject([1, 2, 3]);
592
- * // => true
593
- *
594
- * _.isObject(_.noop);
595
- * // => true
596
- *
597
- * _.isObject(null);
598
- * // => false
599
- */
600
- function isObject(value) {
601
- var type = typeof value;
602
- return value != null && (type == 'object' || type == 'function');
603
- }
604
-
605
- var isObject_1 = isObject;
606
-
607
- /** `Object#toString` result references. */
608
- var asyncTag = '[object AsyncFunction]',
609
- funcTag$1 = '[object Function]',
610
- genTag = '[object GeneratorFunction]',
611
- proxyTag = '[object Proxy]';
612
-
613
- /**
614
- * Checks if `value` is classified as a `Function` object.
615
- *
616
- * @static
617
- * @memberOf _
618
- * @since 0.1.0
619
- * @category Lang
620
- * @param {*} value The value to check.
621
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
622
- * @example
623
- *
624
- * _.isFunction(_);
625
- * // => true
626
- *
627
- * _.isFunction(/abc/);
628
- * // => false
629
- */
630
- function isFunction(value) {
631
- if (!isObject_1(value)) {
632
- return false;
633
- }
634
- // The use of `Object#toString` avoids issues with the `typeof` operator
635
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
636
- var tag = _baseGetTag(value);
637
- return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
638
- }
639
-
640
- var isFunction_1 = isFunction;
641
-
642
- /** Used to detect overreaching core-js shims. */
643
- var coreJsData = _root['__core-js_shared__'];
644
-
645
- var _coreJsData = coreJsData;
646
-
647
- /** Used to detect methods masquerading as native. */
648
- var maskSrcKey = (function() {
649
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
650
- return uid ? ('Symbol(src)_1.' + uid) : '';
651
- }());
652
-
653
- /**
654
- * Checks if `func` has its source masked.
655
- *
656
- * @private
657
- * @param {Function} func The function to check.
658
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
659
- */
660
- function isMasked(func) {
661
- return !!maskSrcKey && (maskSrcKey in func);
662
- }
663
-
664
- var _isMasked = isMasked;
665
-
666
- /** Used for built-in method references. */
667
- var funcProto$2 = Function.prototype;
668
-
669
- /** Used to resolve the decompiled source of functions. */
670
- var funcToString$2 = funcProto$2.toString;
671
-
672
- /**
673
- * Converts `func` to its source code.
674
- *
675
- * @private
676
- * @param {Function} func The function to convert.
677
- * @returns {string} Returns the source code.
678
- */
679
- function toSource(func) {
680
- if (func != null) {
681
- try {
682
- return funcToString$2.call(func);
683
- } catch (e) {}
684
- try {
685
- return (func + '');
686
- } catch (e) {}
687
- }
688
- return '';
689
- }
690
-
691
- var _toSource = toSource;
692
-
693
- /**
694
- * Used to match `RegExp`
695
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
696
- */
697
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
698
-
699
- /** Used to detect host constructors (Safari). */
700
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
701
-
702
- /** Used for built-in method references. */
703
- var funcProto$1 = Function.prototype,
704
- objectProto$8 = Object.prototype;
705
-
706
- /** Used to resolve the decompiled source of functions. */
707
- var funcToString$1 = funcProto$1.toString;
708
-
709
- /** Used to check objects for own properties. */
710
- var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
711
-
712
- /** Used to detect if a method is native. */
713
- var reIsNative = RegExp('^' +
714
- funcToString$1.call(hasOwnProperty$7).replace(reRegExpChar, '\\$&')
715
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
716
- );
717
-
718
- /**
719
- * The base implementation of `_.isNative` without bad shim checks.
720
- *
721
- * @private
722
- * @param {*} value The value to check.
723
- * @returns {boolean} Returns `true` if `value` is a native function,
724
- * else `false`.
725
- */
726
- function baseIsNative(value) {
727
- if (!isObject_1(value) || _isMasked(value)) {
728
- return false;
729
- }
730
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
731
- return pattern.test(_toSource(value));
732
- }
733
-
734
- var _baseIsNative = baseIsNative;
735
-
736
- /**
737
- * Gets the value at `key` of `object`.
738
- *
739
- * @private
740
- * @param {Object} [object] The object to query.
741
- * @param {string} key The key of the property to get.
742
- * @returns {*} Returns the property value.
743
- */
744
- function getValue(object, key) {
745
- return object == null ? undefined : object[key];
746
- }
747
-
748
- var _getValue = getValue;
749
-
750
- /**
751
- * Gets the native function at `key` of `object`.
752
- *
753
- * @private
754
- * @param {Object} object The object to query.
755
- * @param {string} key The key of the method to get.
756
- * @returns {*} Returns the function if it's native, else `undefined`.
757
- */
758
- function getNative(object, key) {
759
- var value = _getValue(object, key);
760
- return _baseIsNative(value) ? value : undefined;
761
- }
762
-
763
- var _getNative = getNative;
764
-
765
- /* Built-in method references that are verified to be native. */
766
- var Map$1 = _getNative(_root, 'Map');
767
-
768
- var _Map = Map$1;
769
-
770
- /* Built-in method references that are verified to be native. */
771
- var nativeCreate = _getNative(Object, 'create');
772
-
773
- var _nativeCreate = nativeCreate;
774
-
775
- /**
776
- * Removes all key-value entries from the hash.
777
- *
778
- * @private
779
- * @name clear
780
- * @memberOf Hash
781
- */
782
- function hashClear() {
783
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
784
- this.size = 0;
785
- }
786
-
787
- var _hashClear = hashClear;
788
-
789
- /**
790
- * Removes `key` and its value from the hash.
791
- *
792
- * @private
793
- * @name delete
794
- * @memberOf Hash
795
- * @param {Object} hash The hash to modify.
796
- * @param {string} key The key of the value to remove.
797
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
798
- */
799
- function hashDelete(key) {
800
- var result = this.has(key) && delete this.__data__[key];
801
- this.size -= result ? 1 : 0;
802
- return result;
803
- }
804
-
805
- var _hashDelete = hashDelete;
806
-
807
- /** Used to stand-in for `undefined` hash values. */
808
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
809
-
810
- /** Used for built-in method references. */
811
- var objectProto$7 = Object.prototype;
812
-
813
- /** Used to check objects for own properties. */
814
- var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
815
-
816
- /**
817
- * Gets the hash value for `key`.
818
- *
819
- * @private
820
- * @name get
821
- * @memberOf Hash
822
- * @param {string} key The key of the value to get.
823
- * @returns {*} Returns the entry value.
824
- */
825
- function hashGet(key) {
826
- var data = this.__data__;
827
- if (_nativeCreate) {
828
- var result = data[key];
829
- return result === HASH_UNDEFINED$1 ? undefined : result;
830
- }
831
- return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
832
- }
833
-
834
- var _hashGet = hashGet;
835
-
836
- /** Used for built-in method references. */
837
- var objectProto$6 = Object.prototype;
838
-
839
- /** Used to check objects for own properties. */
840
- var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
841
-
842
- /**
843
- * Checks if a hash value for `key` exists.
844
- *
845
- * @private
846
- * @name has
847
- * @memberOf Hash
848
- * @param {string} key The key of the entry to check.
849
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
850
- */
851
- function hashHas(key) {
852
- var data = this.__data__;
853
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
854
- }
855
-
856
- var _hashHas = hashHas;
857
-
858
- /** Used to stand-in for `undefined` hash values. */
859
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
860
-
861
- /**
862
- * Sets the hash `key` to `value`.
863
- *
864
- * @private
865
- * @name set
866
- * @memberOf Hash
867
- * @param {string} key The key of the value to set.
868
- * @param {*} value The value to set.
869
- * @returns {Object} Returns the hash instance.
870
- */
871
- function hashSet(key, value) {
872
- var data = this.__data__;
873
- this.size += this.has(key) ? 0 : 1;
874
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
875
- return this;
876
- }
877
-
878
- var _hashSet = hashSet;
879
-
880
- /**
881
- * Creates a hash object.
882
- *
883
- * @private
884
- * @constructor
885
- * @param {Array} [entries] The key-value pairs to cache.
886
- */
887
- function Hash(entries) {
888
- var index = -1,
889
- length = entries == null ? 0 : entries.length;
890
-
891
- this.clear();
892
- while (++index < length) {
893
- var entry = entries[index];
894
- this.set(entry[0], entry[1]);
895
- }
896
- }
897
-
898
- // Add methods to `Hash`.
899
- Hash.prototype.clear = _hashClear;
900
- Hash.prototype['delete'] = _hashDelete;
901
- Hash.prototype.get = _hashGet;
902
- Hash.prototype.has = _hashHas;
903
- Hash.prototype.set = _hashSet;
904
-
905
- var _Hash = Hash;
906
-
907
- /**
908
- * Removes all key-value entries from the map.
909
- *
910
- * @private
911
- * @name clear
912
- * @memberOf MapCache
913
- */
914
- function mapCacheClear() {
915
- this.size = 0;
916
- this.__data__ = {
917
- 'hash': new _Hash,
918
- 'map': new (_Map || _ListCache),
919
- 'string': new _Hash
920
- };
921
- }
922
-
923
- var _mapCacheClear = mapCacheClear;
924
-
925
- /**
926
- * Checks if `value` is suitable for use as unique object key.
927
- *
928
- * @private
929
- * @param {*} value The value to check.
930
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
931
- */
932
- function isKeyable(value) {
933
- var type = typeof value;
934
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
935
- ? (value !== '__proto__')
936
- : (value === null);
937
- }
938
-
939
- var _isKeyable = isKeyable;
940
-
941
- /**
942
- * Gets the data for `map`.
943
- *
944
- * @private
945
- * @param {Object} map The map to query.
946
- * @param {string} key The reference key.
947
- * @returns {*} Returns the map data.
948
- */
949
- function getMapData(map, key) {
950
- var data = map.__data__;
951
- return _isKeyable(key)
952
- ? data[typeof key == 'string' ? 'string' : 'hash']
953
- : data.map;
954
- }
955
-
956
- var _getMapData = getMapData;
957
-
958
- /**
959
- * Removes `key` and its value from the map.
960
- *
961
- * @private
962
- * @name delete
963
- * @memberOf MapCache
964
- * @param {string} key The key of the value to remove.
965
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
966
- */
967
- function mapCacheDelete(key) {
968
- var result = _getMapData(this, key)['delete'](key);
969
- this.size -= result ? 1 : 0;
970
- return result;
971
- }
972
-
973
- var _mapCacheDelete = mapCacheDelete;
974
-
975
- /**
976
- * Gets the map value for `key`.
977
- *
978
- * @private
979
- * @name get
980
- * @memberOf MapCache
981
- * @param {string} key The key of the value to get.
982
- * @returns {*} Returns the entry value.
983
- */
984
- function mapCacheGet(key) {
985
- return _getMapData(this, key).get(key);
986
- }
987
-
988
- var _mapCacheGet = mapCacheGet;
989
-
990
- /**
991
- * Checks if a map value for `key` exists.
992
- *
993
- * @private
994
- * @name has
995
- * @memberOf MapCache
996
- * @param {string} key The key of the entry to check.
997
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
998
- */
999
- function mapCacheHas(key) {
1000
- return _getMapData(this, key).has(key);
1001
- }
1002
-
1003
- var _mapCacheHas = mapCacheHas;
1004
-
1005
- /**
1006
- * Sets the map `key` to `value`.
1007
- *
1008
- * @private
1009
- * @name set
1010
- * @memberOf MapCache
1011
- * @param {string} key The key of the value to set.
1012
- * @param {*} value The value to set.
1013
- * @returns {Object} Returns the map cache instance.
1014
- */
1015
- function mapCacheSet(key, value) {
1016
- var data = _getMapData(this, key),
1017
- size = data.size;
1018
-
1019
- data.set(key, value);
1020
- this.size += data.size == size ? 0 : 1;
1021
- return this;
1022
- }
1023
-
1024
- var _mapCacheSet = mapCacheSet;
1025
-
1026
- /**
1027
- * Creates a map cache object to store key-value pairs.
1028
- *
1029
- * @private
1030
- * @constructor
1031
- * @param {Array} [entries] The key-value pairs to cache.
1032
- */
1033
- function MapCache(entries) {
1034
- var index = -1,
1035
- length = entries == null ? 0 : entries.length;
1036
-
1037
- this.clear();
1038
- while (++index < length) {
1039
- var entry = entries[index];
1040
- this.set(entry[0], entry[1]);
1041
- }
1042
- }
1043
-
1044
- // Add methods to `MapCache`.
1045
- MapCache.prototype.clear = _mapCacheClear;
1046
- MapCache.prototype['delete'] = _mapCacheDelete;
1047
- MapCache.prototype.get = _mapCacheGet;
1048
- MapCache.prototype.has = _mapCacheHas;
1049
- MapCache.prototype.set = _mapCacheSet;
1050
-
1051
- var _MapCache = MapCache;
1052
-
1053
- /** Used as the size to enable large array optimizations. */
1054
- var LARGE_ARRAY_SIZE = 200;
1055
-
1056
- /**
1057
- * Sets the stack `key` to `value`.
1058
- *
1059
- * @private
1060
- * @name set
1061
- * @memberOf Stack
1062
- * @param {string} key The key of the value to set.
1063
- * @param {*} value The value to set.
1064
- * @returns {Object} Returns the stack cache instance.
1065
- */
1066
- function stackSet(key, value) {
1067
- var data = this.__data__;
1068
- if (data instanceof _ListCache) {
1069
- var pairs = data.__data__;
1070
- if (!_Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
1071
- pairs.push([key, value]);
1072
- this.size = ++data.size;
1073
- return this;
1074
- }
1075
- data = this.__data__ = new _MapCache(pairs);
1076
- }
1077
- data.set(key, value);
1078
- this.size = data.size;
1079
- return this;
1080
- }
1081
-
1082
- var _stackSet = stackSet;
1083
-
1084
- /**
1085
- * Creates a stack cache object to store key-value pairs.
1086
- *
1087
- * @private
1088
- * @constructor
1089
- * @param {Array} [entries] The key-value pairs to cache.
1090
- */
1091
- function Stack(entries) {
1092
- var data = this.__data__ = new _ListCache(entries);
1093
- this.size = data.size;
1094
- }
1095
-
1096
- // Add methods to `Stack`.
1097
- Stack.prototype.clear = _stackClear;
1098
- Stack.prototype['delete'] = _stackDelete;
1099
- Stack.prototype.get = _stackGet;
1100
- Stack.prototype.has = _stackHas;
1101
- Stack.prototype.set = _stackSet;
1102
-
1103
- var _Stack = Stack;
1104
-
1105
- var defineProperty = (function() {
1106
- try {
1107
- var func = _getNative(Object, 'defineProperty');
1108
- func({}, '', {});
1109
- return func;
1110
- } catch (e) {}
1111
- }());
1112
-
1113
- var _defineProperty = defineProperty;
1114
-
1115
- /**
1116
- * The base implementation of `assignValue` and `assignMergeValue` without
1117
- * value checks.
1118
- *
1119
- * @private
1120
- * @param {Object} object The object to modify.
1121
- * @param {string} key The key of the property to assign.
1122
- * @param {*} value The value to assign.
1123
- */
1124
- function baseAssignValue(object, key, value) {
1125
- if (key == '__proto__' && _defineProperty) {
1126
- _defineProperty(object, key, {
1127
- 'configurable': true,
1128
- 'enumerable': true,
1129
- 'value': value,
1130
- 'writable': true
1131
- });
1132
- } else {
1133
- object[key] = value;
1134
- }
1135
- }
1136
-
1137
- var _baseAssignValue = baseAssignValue;
1138
-
1139
- /**
1140
- * This function is like `assignValue` except that it doesn't assign
1141
- * `undefined` values.
1142
- *
1143
- * @private
1144
- * @param {Object} object The object to modify.
1145
- * @param {string} key The key of the property to assign.
1146
- * @param {*} value The value to assign.
1147
- */
1148
- function assignMergeValue(object, key, value) {
1149
- if ((value !== undefined && !eq_1(object[key], value)) ||
1150
- (value === undefined && !(key in object))) {
1151
- _baseAssignValue(object, key, value);
1152
- }
1153
- }
1154
-
1155
- var _assignMergeValue = assignMergeValue;
1156
-
1157
- /**
1158
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
1159
- *
1160
- * @private
1161
- * @param {boolean} [fromRight] Specify iterating from right to left.
1162
- * @returns {Function} Returns the new base function.
1163
- */
1164
- function createBaseFor(fromRight) {
1165
- return function(object, iteratee, keysFunc) {
1166
- var index = -1,
1167
- iterable = Object(object),
1168
- props = keysFunc(object),
1169
- length = props.length;
1170
-
1171
- while (length--) {
1172
- var key = props[fromRight ? length : ++index];
1173
- if (iteratee(iterable[key], key, iterable) === false) {
1174
- break;
1175
- }
1176
- }
1177
- return object;
1178
- };
1179
- }
1180
-
1181
- var _createBaseFor = createBaseFor;
1182
-
1183
- /**
1184
- * The base implementation of `baseForOwn` which iterates over `object`
1185
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
1186
- * Iteratee functions may exit iteration early by explicitly returning `false`.
1187
- *
1188
- * @private
1189
- * @param {Object} object The object to iterate over.
1190
- * @param {Function} iteratee The function invoked per iteration.
1191
- * @param {Function} keysFunc The function to get the keys of `object`.
1192
- * @returns {Object} Returns `object`.
1193
- */
1194
- var baseFor = _createBaseFor();
1195
-
1196
- var _baseFor = baseFor;
1197
-
1198
- var _cloneBuffer = createCommonjsModule(function (module, exports) {
1199
- /** Detect free variable `exports`. */
1200
- var freeExports = exports && !exports.nodeType && exports;
1201
-
1202
- /** Detect free variable `module`. */
1203
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
1204
-
1205
- /** Detect the popular CommonJS extension `module.exports`. */
1206
- var moduleExports = freeModule && freeModule.exports === freeExports;
1207
-
1208
- /** Built-in value references. */
1209
- var Buffer = moduleExports ? _root.Buffer : undefined,
1210
- allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
1211
-
1212
- /**
1213
- * Creates a clone of `buffer`.
1214
- *
1215
- * @private
1216
- * @param {Buffer} buffer The buffer to clone.
1217
- * @param {boolean} [isDeep] Specify a deep clone.
1218
- * @returns {Buffer} Returns the cloned buffer.
1219
- */
1220
- function cloneBuffer(buffer, isDeep) {
1221
- if (isDeep) {
1222
- return buffer.slice();
1223
- }
1224
- var length = buffer.length,
1225
- result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
1226
-
1227
- buffer.copy(result);
1228
- return result;
1229
- }
1230
-
1231
- module.exports = cloneBuffer;
1232
- });
1233
-
1234
- /** Built-in value references. */
1235
- var Uint8Array = _root.Uint8Array;
1236
-
1237
- var _Uint8Array = Uint8Array;
1238
-
1239
- /**
1240
- * Creates a clone of `arrayBuffer`.
1241
- *
1242
- * @private
1243
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
1244
- * @returns {ArrayBuffer} Returns the cloned array buffer.
1245
- */
1246
- function cloneArrayBuffer(arrayBuffer) {
1247
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
1248
- new _Uint8Array(result).set(new _Uint8Array(arrayBuffer));
1249
- return result;
1250
- }
1251
-
1252
- var _cloneArrayBuffer = cloneArrayBuffer;
1253
-
1254
- /**
1255
- * Creates a clone of `typedArray`.
1256
- *
1257
- * @private
1258
- * @param {Object} typedArray The typed array to clone.
1259
- * @param {boolean} [isDeep] Specify a deep clone.
1260
- * @returns {Object} Returns the cloned typed array.
1261
- */
1262
- function cloneTypedArray(typedArray, isDeep) {
1263
- var buffer = isDeep ? _cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
1264
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
1265
- }
1266
-
1267
- var _cloneTypedArray = cloneTypedArray;
1268
-
1269
- /**
1270
- * Copies the values of `source` to `array`.
1271
- *
1272
- * @private
1273
- * @param {Array} source The array to copy values from.
1274
- * @param {Array} [array=[]] The array to copy values to.
1275
- * @returns {Array} Returns `array`.
1276
- */
1277
- function copyArray(source, array) {
1278
- var index = -1,
1279
- length = source.length;
1280
-
1281
- array || (array = Array(length));
1282
- while (++index < length) {
1283
- array[index] = source[index];
1284
- }
1285
- return array;
1286
- }
1287
-
1288
- var _copyArray = copyArray;
1289
-
1290
- /** Built-in value references. */
1291
- var objectCreate = Object.create;
1292
-
1293
- /**
1294
- * The base implementation of `_.create` without support for assigning
1295
- * properties to the created object.
1296
- *
1297
- * @private
1298
- * @param {Object} proto The object to inherit from.
1299
- * @returns {Object} Returns the new object.
1300
- */
1301
- var baseCreate = (function() {
1302
- function object() {}
1303
- return function(proto) {
1304
- if (!isObject_1(proto)) {
1305
- return {};
1306
- }
1307
- if (objectCreate) {
1308
- return objectCreate(proto);
1309
- }
1310
- object.prototype = proto;
1311
- var result = new object;
1312
- object.prototype = undefined;
1313
- return result;
1314
- };
1315
- }());
1316
-
1317
- var _baseCreate = baseCreate;
1318
-
1319
- /**
1320
- * Creates a unary function that invokes `func` with its argument transformed.
1321
- *
1322
- * @private
1323
- * @param {Function} func The function to wrap.
1324
- * @param {Function} transform The argument transform.
1325
- * @returns {Function} Returns the new function.
1326
- */
1327
- function overArg(func, transform) {
1328
- return function(arg) {
1329
- return func(transform(arg));
1330
- };
1331
- }
1332
-
1333
- var _overArg = overArg;
1334
-
1335
- /** Built-in value references. */
1336
- var getPrototype = _overArg(Object.getPrototypeOf, Object);
1337
-
1338
- var _getPrototype = getPrototype;
1339
-
1340
- /** Used for built-in method references. */
1341
- var objectProto$5 = Object.prototype;
1342
-
1343
- /**
1344
- * Checks if `value` is likely a prototype object.
1345
- *
1346
- * @private
1347
- * @param {*} value The value to check.
1348
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
1349
- */
1350
- function isPrototype(value) {
1351
- var Ctor = value && value.constructor,
1352
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$5;
1353
-
1354
- return value === proto;
1355
- }
1356
-
1357
- var _isPrototype = isPrototype;
1358
-
1359
- /**
1360
- * Initializes an object clone.
1361
- *
1362
- * @private
1363
- * @param {Object} object The object to clone.
1364
- * @returns {Object} Returns the initialized clone.
1365
- */
1366
- function initCloneObject(object) {
1367
- return (typeof object.constructor == 'function' && !_isPrototype(object))
1368
- ? _baseCreate(_getPrototype(object))
1369
- : {};
1370
- }
1371
-
1372
- var _initCloneObject = initCloneObject;
1373
-
1374
- /**
1375
- * Checks if `value` is object-like. A value is object-like if it's not `null`
1376
- * and has a `typeof` result of "object".
1377
- *
1378
- * @static
1379
- * @memberOf _
1380
- * @since 4.0.0
1381
- * @category Lang
1382
- * @param {*} value The value to check.
1383
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1384
- * @example
1385
- *
1386
- * _.isObjectLike({});
1387
- * // => true
1388
- *
1389
- * _.isObjectLike([1, 2, 3]);
1390
- * // => true
1391
- *
1392
- * _.isObjectLike(_.noop);
1393
- * // => false
1394
- *
1395
- * _.isObjectLike(null);
1396
- * // => false
1397
- */
1398
- function isObjectLike(value) {
1399
- return value != null && typeof value == 'object';
1400
- }
1401
-
1402
- var isObjectLike_1 = isObjectLike;
1403
-
1404
- /** `Object#toString` result references. */
1405
- var argsTag$1 = '[object Arguments]';
1406
-
1407
- /**
1408
- * The base implementation of `_.isArguments`.
1409
- *
1410
- * @private
1411
- * @param {*} value The value to check.
1412
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1413
- */
1414
- function baseIsArguments(value) {
1415
- return isObjectLike_1(value) && _baseGetTag(value) == argsTag$1;
1416
- }
1417
-
1418
- var _baseIsArguments = baseIsArguments;
1419
-
1420
- /** Used for built-in method references. */
1421
- var objectProto$4 = Object.prototype;
1422
-
1423
- /** Used to check objects for own properties. */
1424
- var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
1425
-
1426
- /** Built-in value references. */
1427
- var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
1428
-
1429
- /**
1430
- * Checks if `value` is likely an `arguments` object.
1431
- *
1432
- * @static
1433
- * @memberOf _
1434
- * @since 0.1.0
1435
- * @category Lang
1436
- * @param {*} value The value to check.
1437
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1438
- * else `false`.
1439
- * @example
1440
- *
1441
- * _.isArguments(function() { return arguments; }());
1442
- * // => true
1443
- *
1444
- * _.isArguments([1, 2, 3]);
1445
- * // => false
1446
- */
1447
- var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
1448
- return isObjectLike_1(value) && hasOwnProperty$4.call(value, 'callee') &&
1449
- !propertyIsEnumerable.call(value, 'callee');
1450
- };
1451
-
1452
- var isArguments_1 = isArguments;
1453
-
1454
- /**
1455
- * Checks if `value` is classified as an `Array` object.
1456
- *
1457
- * @static
1458
- * @memberOf _
1459
- * @since 0.1.0
1460
- * @category Lang
1461
- * @param {*} value The value to check.
1462
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1463
- * @example
1464
- *
1465
- * _.isArray([1, 2, 3]);
1466
- * // => true
1467
- *
1468
- * _.isArray(document.body.children);
1469
- * // => false
1470
- *
1471
- * _.isArray('abc');
1472
- * // => false
1473
- *
1474
- * _.isArray(_.noop);
1475
- * // => false
1476
- */
1477
- var isArray = Array.isArray;
1478
-
1479
- var isArray_1 = isArray;
1480
-
1481
- /** Used as references for various `Number` constants. */
1482
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
1483
-
1484
- /**
1485
- * Checks if `value` is a valid array-like length.
1486
- *
1487
- * **Note:** This method is loosely based on
1488
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
1489
- *
1490
- * @static
1491
- * @memberOf _
1492
- * @since 4.0.0
1493
- * @category Lang
1494
- * @param {*} value The value to check.
1495
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
1496
- * @example
1497
- *
1498
- * _.isLength(3);
1499
- * // => true
1500
- *
1501
- * _.isLength(Number.MIN_VALUE);
1502
- * // => false
1503
- *
1504
- * _.isLength(Infinity);
1505
- * // => false
1506
- *
1507
- * _.isLength('3');
1508
- * // => false
1509
- */
1510
- function isLength(value) {
1511
- return typeof value == 'number' &&
1512
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
1513
- }
1514
-
1515
- var isLength_1 = isLength;
1516
-
1517
- /**
1518
- * Checks if `value` is array-like. A value is considered array-like if it's
1519
- * not a function and has a `value.length` that's an integer greater than or
1520
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
1521
- *
1522
- * @static
1523
- * @memberOf _
1524
- * @since 4.0.0
1525
- * @category Lang
1526
- * @param {*} value The value to check.
1527
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
1528
- * @example
1529
- *
1530
- * _.isArrayLike([1, 2, 3]);
1531
- * // => true
1532
- *
1533
- * _.isArrayLike(document.body.children);
1534
- * // => true
1535
- *
1536
- * _.isArrayLike('abc');
1537
- * // => true
1538
- *
1539
- * _.isArrayLike(_.noop);
1540
- * // => false
1541
- */
1542
- function isArrayLike(value) {
1543
- return value != null && isLength_1(value.length) && !isFunction_1(value);
1544
- }
1545
-
1546
- var isArrayLike_1 = isArrayLike;
1547
-
1548
- /**
1549
- * This method is like `_.isArrayLike` except that it also checks if `value`
1550
- * is an object.
1551
- *
1552
- * @static
1553
- * @memberOf _
1554
- * @since 4.0.0
1555
- * @category Lang
1556
- * @param {*} value The value to check.
1557
- * @returns {boolean} Returns `true` if `value` is an array-like object,
1558
- * else `false`.
1559
- * @example
1560
- *
1561
- * _.isArrayLikeObject([1, 2, 3]);
1562
- * // => true
1563
- *
1564
- * _.isArrayLikeObject(document.body.children);
1565
- * // => true
1566
- *
1567
- * _.isArrayLikeObject('abc');
1568
- * // => false
1569
- *
1570
- * _.isArrayLikeObject(_.noop);
1571
- * // => false
1572
- */
1573
- function isArrayLikeObject(value) {
1574
- return isObjectLike_1(value) && isArrayLike_1(value);
1575
- }
1576
-
1577
- var isArrayLikeObject_1 = isArrayLikeObject;
1578
-
1579
- /**
1580
- * This method returns `false`.
1581
- *
1582
- * @static
1583
- * @memberOf _
1584
- * @since 4.13.0
1585
- * @category Util
1586
- * @returns {boolean} Returns `false`.
1587
- * @example
1588
- *
1589
- * _.times(2, _.stubFalse);
1590
- * // => [false, false]
1591
- */
1592
- function stubFalse() {
1593
- return false;
1594
- }
1595
-
1596
- var stubFalse_1 = stubFalse;
1597
-
1598
- var isBuffer_1 = createCommonjsModule(function (module, exports) {
1599
- /** Detect free variable `exports`. */
1600
- var freeExports = exports && !exports.nodeType && exports;
1601
-
1602
- /** Detect free variable `module`. */
1603
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
1604
-
1605
- /** Detect the popular CommonJS extension `module.exports`. */
1606
- var moduleExports = freeModule && freeModule.exports === freeExports;
1607
-
1608
- /** Built-in value references. */
1609
- var Buffer = moduleExports ? _root.Buffer : undefined;
1610
-
1611
- /* Built-in method references for those with the same name as other `lodash` methods. */
1612
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
1613
-
1614
- /**
1615
- * Checks if `value` is a buffer.
1616
- *
1617
- * @static
1618
- * @memberOf _
1619
- * @since 4.3.0
1620
- * @category Lang
1621
- * @param {*} value The value to check.
1622
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
1623
- * @example
1624
- *
1625
- * _.isBuffer(new Buffer(2));
1626
- * // => true
1627
- *
1628
- * _.isBuffer(new Uint8Array(2));
1629
- * // => false
1630
- */
1631
- var isBuffer = nativeIsBuffer || stubFalse_1;
1632
-
1633
- module.exports = isBuffer;
1634
- });
1635
-
1636
- /** `Object#toString` result references. */
1637
- var objectTag$1 = '[object Object]';
1638
-
1639
- /** Used for built-in method references. */
1640
- var funcProto = Function.prototype,
1641
- objectProto$3 = Object.prototype;
1642
-
1643
- /** Used to resolve the decompiled source of functions. */
1644
- var funcToString = funcProto.toString;
1645
-
1646
- /** Used to check objects for own properties. */
1647
- var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
1648
-
1649
- /** Used to infer the `Object` constructor. */
1650
- var objectCtorString = funcToString.call(Object);
1651
-
1652
- /**
1653
- * Checks if `value` is a plain object, that is, an object created by the
1654
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
1655
- *
1656
- * @static
1657
- * @memberOf _
1658
- * @since 0.8.0
1659
- * @category Lang
1660
- * @param {*} value The value to check.
1661
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
1662
- * @example
1663
- *
1664
- * function Foo() {
1665
- * this.a = 1;
1666
- * }
1667
- *
1668
- * _.isPlainObject(new Foo);
1669
- * // => false
1670
- *
1671
- * _.isPlainObject([1, 2, 3]);
1672
- * // => false
1673
- *
1674
- * _.isPlainObject({ 'x': 0, 'y': 0 });
1675
- * // => true
1676
- *
1677
- * _.isPlainObject(Object.create(null));
1678
- * // => true
1679
- */
1680
- function isPlainObject(value) {
1681
- if (!isObjectLike_1(value) || _baseGetTag(value) != objectTag$1) {
1682
- return false;
1683
- }
1684
- var proto = _getPrototype(value);
1685
- if (proto === null) {
1686
- return true;
1687
- }
1688
- var Ctor = hasOwnProperty$3.call(proto, 'constructor') && proto.constructor;
1689
- return typeof Ctor == 'function' && Ctor instanceof Ctor &&
1690
- funcToString.call(Ctor) == objectCtorString;
1691
- }
1692
-
1693
- var isPlainObject_1 = isPlainObject;
1694
-
1695
- /** `Object#toString` result references. */
1696
- var argsTag = '[object Arguments]',
1697
- arrayTag = '[object Array]',
1698
- boolTag = '[object Boolean]',
1699
- dateTag = '[object Date]',
1700
- errorTag = '[object Error]',
1701
- funcTag = '[object Function]',
1702
- mapTag = '[object Map]',
1703
- numberTag = '[object Number]',
1704
- objectTag = '[object Object]',
1705
- regexpTag = '[object RegExp]',
1706
- setTag = '[object Set]',
1707
- stringTag = '[object String]',
1708
- weakMapTag = '[object WeakMap]';
1709
-
1710
- var arrayBufferTag = '[object ArrayBuffer]',
1711
- dataViewTag = '[object DataView]',
1712
- float32Tag = '[object Float32Array]',
1713
- float64Tag = '[object Float64Array]',
1714
- int8Tag = '[object Int8Array]',
1715
- int16Tag = '[object Int16Array]',
1716
- int32Tag = '[object Int32Array]',
1717
- uint8Tag = '[object Uint8Array]',
1718
- uint8ClampedTag = '[object Uint8ClampedArray]',
1719
- uint16Tag = '[object Uint16Array]',
1720
- uint32Tag = '[object Uint32Array]';
1721
-
1722
- /** Used to identify `toStringTag` values of typed arrays. */
1723
- var typedArrayTags = {};
1724
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
1725
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
1726
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
1727
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
1728
- typedArrayTags[uint32Tag] = true;
1729
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
1730
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
1731
- typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
1732
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
1733
- typedArrayTags[mapTag] = typedArrayTags[numberTag] =
1734
- typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
1735
- typedArrayTags[setTag] = typedArrayTags[stringTag] =
1736
- typedArrayTags[weakMapTag] = false;
1737
-
1738
- /**
1739
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
1740
- *
1741
- * @private
1742
- * @param {*} value The value to check.
1743
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1744
- */
1745
- function baseIsTypedArray(value) {
1746
- return isObjectLike_1(value) &&
1747
- isLength_1(value.length) && !!typedArrayTags[_baseGetTag(value)];
1748
- }
1749
-
1750
- var _baseIsTypedArray = baseIsTypedArray;
1751
-
1752
- /**
1753
- * The base implementation of `_.unary` without support for storing metadata.
1754
- *
1755
- * @private
1756
- * @param {Function} func The function to cap arguments for.
1757
- * @returns {Function} Returns the new capped function.
1758
- */
1759
- function baseUnary(func) {
1760
- return function(value) {
1761
- return func(value);
1762
- };
1763
- }
1764
-
1765
- var _baseUnary = baseUnary;
1766
-
1767
- var _nodeUtil = createCommonjsModule(function (module, exports) {
1768
- /** Detect free variable `exports`. */
1769
- var freeExports = exports && !exports.nodeType && exports;
1770
-
1771
- /** Detect free variable `module`. */
1772
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
1773
-
1774
- /** Detect the popular CommonJS extension `module.exports`. */
1775
- var moduleExports = freeModule && freeModule.exports === freeExports;
1776
-
1777
- /** Detect free variable `process` from Node.js. */
1778
- var freeProcess = moduleExports && _freeGlobal.process;
1779
-
1780
- /** Used to access faster Node.js helpers. */
1781
- var nodeUtil = (function() {
1782
- try {
1783
- // Use `util.types` for Node.js 10+.
1784
- var types = freeModule && freeModule.require && freeModule.require('util').types;
1785
-
1786
- if (types) {
1787
- return types;
1788
- }
1789
-
1790
- // Legacy `process.binding('util')` for Node.js < 10.
1791
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
1792
- } catch (e) {}
1793
- }());
1794
-
1795
- module.exports = nodeUtil;
1796
- });
1797
-
1798
- /* Node.js helper references. */
1799
- var nodeIsTypedArray = _nodeUtil && _nodeUtil.isTypedArray;
1800
-
1801
- /**
1802
- * Checks if `value` is classified as a typed array.
1803
- *
1804
- * @static
1805
- * @memberOf _
1806
- * @since 3.0.0
1807
- * @category Lang
1808
- * @param {*} value The value to check.
1809
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1810
- * @example
1811
- *
1812
- * _.isTypedArray(new Uint8Array);
1813
- * // => true
1814
- *
1815
- * _.isTypedArray([]);
1816
- * // => false
1817
- */
1818
- var isTypedArray = nodeIsTypedArray ? _baseUnary(nodeIsTypedArray) : _baseIsTypedArray;
1819
-
1820
- var isTypedArray_1 = isTypedArray;
1821
-
1822
- /**
1823
- * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
1824
- *
1825
- * @private
1826
- * @param {Object} object The object to query.
1827
- * @param {string} key The key of the property to get.
1828
- * @returns {*} Returns the property value.
1829
- */
1830
- function safeGet(object, key) {
1831
- if (key === 'constructor' && typeof object[key] === 'function') {
1832
- return;
1833
- }
1834
-
1835
- if (key == '__proto__') {
1836
- return;
1837
- }
1838
-
1839
- return object[key];
1840
- }
1841
-
1842
- var _safeGet = safeGet;
1843
-
1844
- /** Used for built-in method references. */
1845
- var objectProto$2 = Object.prototype;
1846
-
1847
- /** Used to check objects for own properties. */
1848
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
1849
-
1850
- /**
1851
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
1852
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1853
- * for equality comparisons.
1854
- *
1855
- * @private
1856
- * @param {Object} object The object to modify.
1857
- * @param {string} key The key of the property to assign.
1858
- * @param {*} value The value to assign.
1859
- */
1860
- function assignValue(object, key, value) {
1861
- var objValue = object[key];
1862
- if (!(hasOwnProperty$2.call(object, key) && eq_1(objValue, value)) ||
1863
- (value === undefined && !(key in object))) {
1864
- _baseAssignValue(object, key, value);
1865
- }
1866
- }
1867
-
1868
- var _assignValue = assignValue;
1869
-
1870
- /**
1871
- * Copies properties of `source` to `object`.
1872
- *
1873
- * @private
1874
- * @param {Object} source The object to copy properties from.
1875
- * @param {Array} props The property identifiers to copy.
1876
- * @param {Object} [object={}] The object to copy properties to.
1877
- * @param {Function} [customizer] The function to customize copied values.
1878
- * @returns {Object} Returns `object`.
1879
- */
1880
- function copyObject(source, props, object, customizer) {
1881
- var isNew = !object;
1882
- object || (object = {});
1883
-
1884
- var index = -1,
1885
- length = props.length;
1886
-
1887
- while (++index < length) {
1888
- var key = props[index];
1889
-
1890
- var newValue = customizer
1891
- ? customizer(object[key], source[key], key, object, source)
1892
- : undefined;
1893
-
1894
- if (newValue === undefined) {
1895
- newValue = source[key];
1896
- }
1897
- if (isNew) {
1898
- _baseAssignValue(object, key, newValue);
1899
- } else {
1900
- _assignValue(object, key, newValue);
1901
- }
1902
- }
1903
- return object;
1904
- }
1905
-
1906
- var _copyObject = copyObject;
1907
-
1908
- /**
1909
- * The base implementation of `_.times` without support for iteratee shorthands
1910
- * or max array length checks.
1911
- *
1912
- * @private
1913
- * @param {number} n The number of times to invoke `iteratee`.
1914
- * @param {Function} iteratee The function invoked per iteration.
1915
- * @returns {Array} Returns the array of results.
1916
- */
1917
- function baseTimes(n, iteratee) {
1918
- var index = -1,
1919
- result = Array(n);
1920
-
1921
- while (++index < n) {
1922
- result[index] = iteratee(index);
1923
- }
1924
- return result;
1925
- }
1926
-
1927
- var _baseTimes = baseTimes;
1928
-
1929
- /** Used as references for various `Number` constants. */
1930
- var MAX_SAFE_INTEGER = 9007199254740991;
1931
-
1932
- /** Used to detect unsigned integer values. */
1933
- var reIsUint = /^(?:0|[1-9]\d*)$/;
1934
-
1935
- /**
1936
- * Checks if `value` is a valid array-like index.
1937
- *
1938
- * @private
1939
- * @param {*} value The value to check.
1940
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
1941
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
1942
- */
1943
- function isIndex(value, length) {
1944
- var type = typeof value;
1945
- length = length == null ? MAX_SAFE_INTEGER : length;
1946
-
1947
- return !!length &&
1948
- (type == 'number' ||
1949
- (type != 'symbol' && reIsUint.test(value))) &&
1950
- (value > -1 && value % 1 == 0 && value < length);
1951
- }
1952
-
1953
- var _isIndex = isIndex;
1954
-
1955
- /** Used for built-in method references. */
1956
- var objectProto$1 = Object.prototype;
1957
-
1958
- /** Used to check objects for own properties. */
1959
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1960
-
1961
- /**
1962
- * Creates an array of the enumerable property names of the array-like `value`.
1963
- *
1964
- * @private
1965
- * @param {*} value The value to query.
1966
- * @param {boolean} inherited Specify returning inherited property names.
1967
- * @returns {Array} Returns the array of property names.
1968
- */
1969
- function arrayLikeKeys(value, inherited) {
1970
- var isArr = isArray_1(value),
1971
- isArg = !isArr && isArguments_1(value),
1972
- isBuff = !isArr && !isArg && isBuffer_1(value),
1973
- isType = !isArr && !isArg && !isBuff && isTypedArray_1(value),
1974
- skipIndexes = isArr || isArg || isBuff || isType,
1975
- result = skipIndexes ? _baseTimes(value.length, String) : [],
1976
- length = result.length;
1977
-
1978
- for (var key in value) {
1979
- if ((inherited || hasOwnProperty$1.call(value, key)) &&
1980
- !(skipIndexes && (
1981
- // Safari 9 has enumerable `arguments.length` in strict mode.
1982
- key == 'length' ||
1983
- // Node.js 0.10 has enumerable non-index properties on buffers.
1984
- (isBuff && (key == 'offset' || key == 'parent')) ||
1985
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
1986
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
1987
- // Skip index properties.
1988
- _isIndex(key, length)
1989
- ))) {
1990
- result.push(key);
1991
- }
1992
- }
1993
- return result;
1994
- }
1995
-
1996
- var _arrayLikeKeys = arrayLikeKeys;
1997
-
1998
- /**
1999
- * This function is like
2000
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
2001
- * except that it includes inherited enumerable properties.
2002
- *
2003
- * @private
2004
- * @param {Object} object The object to query.
2005
- * @returns {Array} Returns the array of property names.
2006
- */
2007
- function nativeKeysIn(object) {
2008
- var result = [];
2009
- if (object != null) {
2010
- for (var key in Object(object)) {
2011
- result.push(key);
2012
- }
2013
- }
2014
- return result;
2015
- }
2016
-
2017
- var _nativeKeysIn = nativeKeysIn;
2018
-
2019
- /** Used for built-in method references. */
2020
- var objectProto = Object.prototype;
2021
-
2022
- /** Used to check objects for own properties. */
2023
- var hasOwnProperty = objectProto.hasOwnProperty;
2024
-
2025
- /**
2026
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
2027
- *
2028
- * @private
2029
- * @param {Object} object The object to query.
2030
- * @returns {Array} Returns the array of property names.
2031
- */
2032
- function baseKeysIn(object) {
2033
- if (!isObject_1(object)) {
2034
- return _nativeKeysIn(object);
2035
- }
2036
- var isProto = _isPrototype(object),
2037
- result = [];
2038
-
2039
- for (var key in object) {
2040
- if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
2041
- result.push(key);
2042
- }
2043
- }
2044
- return result;
2045
- }
2046
-
2047
- var _baseKeysIn = baseKeysIn;
2048
-
2049
- /**
2050
- * Creates an array of the own and inherited enumerable property names of `object`.
2051
- *
2052
- * **Note:** Non-object values are coerced to objects.
2053
- *
2054
- * @static
2055
- * @memberOf _
2056
- * @since 3.0.0
2057
- * @category Object
2058
- * @param {Object} object The object to query.
2059
- * @returns {Array} Returns the array of property names.
2060
- * @example
2061
- *
2062
- * function Foo() {
2063
- * this.a = 1;
2064
- * this.b = 2;
2065
- * }
2066
- *
2067
- * Foo.prototype.c = 3;
2068
- *
2069
- * _.keysIn(new Foo);
2070
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
2071
- */
2072
- function keysIn(object) {
2073
- return isArrayLike_1(object) ? _arrayLikeKeys(object, true) : _baseKeysIn(object);
2074
- }
2075
-
2076
- var keysIn_1 = keysIn;
2077
-
2078
- /**
2079
- * Converts `value` to a plain object flattening inherited enumerable string
2080
- * keyed properties of `value` to own properties of the plain object.
2081
- *
2082
- * @static
2083
- * @memberOf _
2084
- * @since 3.0.0
2085
- * @category Lang
2086
- * @param {*} value The value to convert.
2087
- * @returns {Object} Returns the converted plain object.
2088
- * @example
2089
- *
2090
- * function Foo() {
2091
- * this.b = 2;
2092
- * }
2093
- *
2094
- * Foo.prototype.c = 3;
2095
- *
2096
- * _.assign({ 'a': 1 }, new Foo);
2097
- * // => { 'a': 1, 'b': 2 }
2098
- *
2099
- * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
2100
- * // => { 'a': 1, 'b': 2, 'c': 3 }
2101
- */
2102
- function toPlainObject(value) {
2103
- return _copyObject(value, keysIn_1(value));
2104
- }
2105
-
2106
- var toPlainObject_1 = toPlainObject;
2107
-
2108
- /**
2109
- * A specialized version of `baseMerge` for arrays and objects which performs
2110
- * deep merges and tracks traversed objects enabling objects with circular
2111
- * references to be merged.
2112
- *
2113
- * @private
2114
- * @param {Object} object The destination object.
2115
- * @param {Object} source The source object.
2116
- * @param {string} key The key of the value to merge.
2117
- * @param {number} srcIndex The index of `source`.
2118
- * @param {Function} mergeFunc The function to merge values.
2119
- * @param {Function} [customizer] The function to customize assigned values.
2120
- * @param {Object} [stack] Tracks traversed source values and their merged
2121
- * counterparts.
2122
- */
2123
- function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
2124
- var objValue = _safeGet(object, key),
2125
- srcValue = _safeGet(source, key),
2126
- stacked = stack.get(srcValue);
2127
-
2128
- if (stacked) {
2129
- _assignMergeValue(object, key, stacked);
2130
- return;
2131
- }
2132
- var newValue = customizer
2133
- ? customizer(objValue, srcValue, (key + ''), object, source, stack)
2134
- : undefined;
2135
-
2136
- var isCommon = newValue === undefined;
2137
-
2138
- if (isCommon) {
2139
- var isArr = isArray_1(srcValue),
2140
- isBuff = !isArr && isBuffer_1(srcValue),
2141
- isTyped = !isArr && !isBuff && isTypedArray_1(srcValue);
2142
-
2143
- newValue = srcValue;
2144
- if (isArr || isBuff || isTyped) {
2145
- if (isArray_1(objValue)) {
2146
- newValue = objValue;
2147
- }
2148
- else if (isArrayLikeObject_1(objValue)) {
2149
- newValue = _copyArray(objValue);
2150
- }
2151
- else if (isBuff) {
2152
- isCommon = false;
2153
- newValue = _cloneBuffer(srcValue, true);
2154
- }
2155
- else if (isTyped) {
2156
- isCommon = false;
2157
- newValue = _cloneTypedArray(srcValue, true);
2158
- }
2159
- else {
2160
- newValue = [];
2161
- }
2162
- }
2163
- else if (isPlainObject_1(srcValue) || isArguments_1(srcValue)) {
2164
- newValue = objValue;
2165
- if (isArguments_1(objValue)) {
2166
- newValue = toPlainObject_1(objValue);
2167
- }
2168
- else if (!isObject_1(objValue) || isFunction_1(objValue)) {
2169
- newValue = _initCloneObject(srcValue);
2170
- }
2171
- }
2172
- else {
2173
- isCommon = false;
2174
- }
2175
- }
2176
- if (isCommon) {
2177
- // Recursively merge objects and arrays (susceptible to call stack limits).
2178
- stack.set(srcValue, newValue);
2179
- mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
2180
- stack['delete'](srcValue);
2181
- }
2182
- _assignMergeValue(object, key, newValue);
2183
- }
2184
-
2185
- var _baseMergeDeep = baseMergeDeep;
2186
-
2187
- /**
2188
- * The base implementation of `_.merge` without support for multiple sources.
2189
- *
2190
- * @private
2191
- * @param {Object} object The destination object.
2192
- * @param {Object} source The source object.
2193
- * @param {number} srcIndex The index of `source`.
2194
- * @param {Function} [customizer] The function to customize merged values.
2195
- * @param {Object} [stack] Tracks traversed source values and their merged
2196
- * counterparts.
2197
- */
2198
- function baseMerge(object, source, srcIndex, customizer, stack) {
2199
- if (object === source) {
2200
- return;
2201
- }
2202
- _baseFor(source, function(srcValue, key) {
2203
- stack || (stack = new _Stack);
2204
- if (isObject_1(srcValue)) {
2205
- _baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
2206
- }
2207
- else {
2208
- var newValue = customizer
2209
- ? customizer(_safeGet(object, key), srcValue, (key + ''), object, source, stack)
2210
- : undefined;
2211
-
2212
- if (newValue === undefined) {
2213
- newValue = srcValue;
2214
- }
2215
- _assignMergeValue(object, key, newValue);
2216
- }
2217
- }, keysIn_1);
2218
- }
2219
-
2220
- var _baseMerge = baseMerge;
2221
-
2222
- /**
2223
- * This method returns the first argument it receives.
2224
- *
2225
- * @static
2226
- * @since 0.1.0
2227
- * @memberOf _
2228
- * @category Util
2229
- * @param {*} value Any value.
2230
- * @returns {*} Returns `value`.
2231
- * @example
2232
- *
2233
- * var object = { 'a': 1 };
2234
- *
2235
- * console.log(_.identity(object) === object);
2236
- * // => true
2237
- */
2238
- function identity(value) {
2239
- return value;
2240
- }
2241
-
2242
- var identity_1 = identity;
2243
-
2244
- /**
2245
- * A faster alternative to `Function#apply`, this function invokes `func`
2246
- * with the `this` binding of `thisArg` and the arguments of `args`.
2247
- *
2248
- * @private
2249
- * @param {Function} func The function to invoke.
2250
- * @param {*} thisArg The `this` binding of `func`.
2251
- * @param {Array} args The arguments to invoke `func` with.
2252
- * @returns {*} Returns the result of `func`.
2253
- */
2254
- function apply(func, thisArg, args) {
2255
- switch (args.length) {
2256
- case 0: return func.call(thisArg);
2257
- case 1: return func.call(thisArg, args[0]);
2258
- case 2: return func.call(thisArg, args[0], args[1]);
2259
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
2260
- }
2261
- return func.apply(thisArg, args);
2262
- }
2263
-
2264
- var _apply = apply;
2265
-
2266
- /* Built-in method references for those with the same name as other `lodash` methods. */
2267
- var nativeMax = Math.max;
2268
-
2269
- /**
2270
- * A specialized version of `baseRest` which transforms the rest array.
2271
- *
2272
- * @private
2273
- * @param {Function} func The function to apply a rest parameter to.
2274
- * @param {number} [start=func.length-1] The start position of the rest parameter.
2275
- * @param {Function} transform The rest array transform.
2276
- * @returns {Function} Returns the new function.
2277
- */
2278
- function overRest(func, start, transform) {
2279
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
2280
- return function() {
2281
- var args = arguments,
2282
- index = -1,
2283
- length = nativeMax(args.length - start, 0),
2284
- array = Array(length);
2285
-
2286
- while (++index < length) {
2287
- array[index] = args[start + index];
2288
- }
2289
- index = -1;
2290
- var otherArgs = Array(start + 1);
2291
- while (++index < start) {
2292
- otherArgs[index] = args[index];
2293
- }
2294
- otherArgs[start] = transform(array);
2295
- return _apply(func, this, otherArgs);
2296
- };
2297
- }
2298
-
2299
- var _overRest = overRest;
2300
-
2301
- /**
2302
- * Creates a function that returns `value`.
2303
- *
2304
- * @static
2305
- * @memberOf _
2306
- * @since 2.4.0
2307
- * @category Util
2308
- * @param {*} value The value to return from the new function.
2309
- * @returns {Function} Returns the new constant function.
2310
- * @example
2311
- *
2312
- * var objects = _.times(2, _.constant({ 'a': 1 }));
2313
- *
2314
- * console.log(objects);
2315
- * // => [{ 'a': 1 }, { 'a': 1 }]
2316
- *
2317
- * console.log(objects[0] === objects[1]);
2318
- * // => true
2319
- */
2320
- function constant(value) {
2321
- return function() {
2322
- return value;
2323
- };
2324
- }
2325
-
2326
- var constant_1 = constant;
2327
-
2328
- /**
2329
- * The base implementation of `setToString` without support for hot loop shorting.
2330
- *
2331
- * @private
2332
- * @param {Function} func The function to modify.
2333
- * @param {Function} string The `toString` result.
2334
- * @returns {Function} Returns `func`.
2335
- */
2336
- var baseSetToString = !_defineProperty ? identity_1 : function(func, string) {
2337
- return _defineProperty(func, 'toString', {
2338
- 'configurable': true,
2339
- 'enumerable': false,
2340
- 'value': constant_1(string),
2341
- 'writable': true
2342
- });
2343
- };
2344
-
2345
- var _baseSetToString = baseSetToString;
2346
-
2347
- /** Used to detect hot functions by number of calls within a span of milliseconds. */
2348
- var HOT_COUNT = 800,
2349
- HOT_SPAN = 16;
2350
-
2351
- /* Built-in method references for those with the same name as other `lodash` methods. */
2352
- var nativeNow = Date.now;
2353
-
2354
- /**
2355
- * Creates a function that'll short out and invoke `identity` instead
2356
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
2357
- * milliseconds.
2358
- *
2359
- * @private
2360
- * @param {Function} func The function to restrict.
2361
- * @returns {Function} Returns the new shortable function.
2362
- */
2363
- function shortOut(func) {
2364
- var count = 0,
2365
- lastCalled = 0;
2366
-
2367
- return function() {
2368
- var stamp = nativeNow(),
2369
- remaining = HOT_SPAN - (stamp - lastCalled);
2370
-
2371
- lastCalled = stamp;
2372
- if (remaining > 0) {
2373
- if (++count >= HOT_COUNT) {
2374
- return arguments[0];
2375
- }
2376
- } else {
2377
- count = 0;
2378
- }
2379
- return func.apply(undefined, arguments);
2380
- };
2381
- }
2382
-
2383
- var _shortOut = shortOut;
2384
-
2385
- /**
2386
- * Sets the `toString` method of `func` to return `string`.
2387
- *
2388
- * @private
2389
- * @param {Function} func The function to modify.
2390
- * @param {Function} string The `toString` result.
2391
- * @returns {Function} Returns `func`.
2392
- */
2393
- var setToString = _shortOut(_baseSetToString);
2394
-
2395
- var _setToString = setToString;
2396
-
2397
- /**
2398
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
2399
- *
2400
- * @private
2401
- * @param {Function} func The function to apply a rest parameter to.
2402
- * @param {number} [start=func.length-1] The start position of the rest parameter.
2403
- * @returns {Function} Returns the new function.
2404
- */
2405
- function baseRest(func, start) {
2406
- return _setToString(_overRest(func, start, identity_1), func + '');
2407
- }
2408
-
2409
- var _baseRest = baseRest;
2410
-
2411
- /**
2412
- * Checks if the given arguments are from an iteratee call.
2413
- *
2414
- * @private
2415
- * @param {*} value The potential iteratee value argument.
2416
- * @param {*} index The potential iteratee index or key argument.
2417
- * @param {*} object The potential iteratee object argument.
2418
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
2419
- * else `false`.
2420
- */
2421
- function isIterateeCall(value, index, object) {
2422
- if (!isObject_1(object)) {
2423
- return false;
2424
- }
2425
- var type = typeof index;
2426
- if (type == 'number'
2427
- ? (isArrayLike_1(object) && _isIndex(index, object.length))
2428
- : (type == 'string' && index in object)
2429
- ) {
2430
- return eq_1(object[index], value);
2431
- }
2432
- return false;
2433
- }
2434
-
2435
- var _isIterateeCall = isIterateeCall;
2436
-
2437
- /**
2438
- * Creates a function like `_.assign`.
2439
- *
2440
- * @private
2441
- * @param {Function} assigner The function to assign values.
2442
- * @returns {Function} Returns the new assigner function.
2443
- */
2444
- function createAssigner(assigner) {
2445
- return _baseRest(function(object, sources) {
2446
- var index = -1,
2447
- length = sources.length,
2448
- customizer = length > 1 ? sources[length - 1] : undefined,
2449
- guard = length > 2 ? sources[2] : undefined;
2450
-
2451
- customizer = (assigner.length > 3 && typeof customizer == 'function')
2452
- ? (length--, customizer)
2453
- : undefined;
2454
-
2455
- if (guard && _isIterateeCall(sources[0], sources[1], guard)) {
2456
- customizer = length < 3 ? undefined : customizer;
2457
- length = 1;
2458
- }
2459
- object = Object(object);
2460
- while (++index < length) {
2461
- var source = sources[index];
2462
- if (source) {
2463
- assigner(object, source, index, customizer);
2464
- }
2465
- }
2466
- return object;
2467
- });
2468
- }
2469
-
2470
- var _createAssigner = createAssigner;
2471
-
2472
- /**
2473
- * This method is like `_.assign` except that it recursively merges own and
2474
- * inherited enumerable string keyed properties of source objects into the
2475
- * destination object. Source properties that resolve to `undefined` are
2476
- * skipped if a destination value exists. Array and plain object properties
2477
- * are merged recursively. Other objects and value types are overridden by
2478
- * assignment. Source objects are applied from left to right. Subsequent
2479
- * sources overwrite property assignments of previous sources.
2480
- *
2481
- * **Note:** This method mutates `object`.
2482
- *
2483
- * @static
2484
- * @memberOf _
2485
- * @since 0.5.0
2486
- * @category Object
2487
- * @param {Object} object The destination object.
2488
- * @param {...Object} [sources] The source objects.
2489
- * @returns {Object} Returns `object`.
2490
- * @example
2491
- *
2492
- * var object = {
2493
- * 'a': [{ 'b': 2 }, { 'd': 4 }]
2494
- * };
2495
- *
2496
- * var other = {
2497
- * 'a': [{ 'c': 3 }, { 'e': 5 }]
2498
- * };
2499
- *
2500
- * _.merge(object, other);
2501
- * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
2502
- */
2503
- var merge = _createAssigner(function(object, source, srcIndex) {
2504
- _baseMerge(object, source, srcIndex);
2505
- });
2506
-
2507
- var merge_1 = merge;
2508
-
2509
- /**
2510
- * Merge objects deeply with strongly typed for each argument
2511
- * @param value1 Merge object
2512
- * @param value2[] List of objects to merge (need to have the same shape as value1)
2513
- */
2514
- const mergeConfig = (defaultObj, fetchedObj, ...overrideObj) => {
2515
- // filter out null and undefined values
2516
- const overrideArgs = [defaultObj, fetchedObj, ...overrideObj].filter(Boolean);
2517
- return merge_1.apply(null, overrideArgs);
2518
- };
2519
-
2520
- const { reset, state: zonosStore } = createStore(() => ({
2521
- appearance: {
2522
- colorPrimary: 'purple',
2523
- fontFamily: 'Inter',
2524
- logoUrl: '',
2525
- style: 'ROUNDED',
2526
- theme: 'LIGHT',
2527
- zonosAttribution: 'DISABLED',
2528
- },
2529
- checkoutSettings: {
2530
- allowedDomains: [],
2531
- analyticsProviders: [],
2532
- orderNotifications: {
2533
- abandonedCart: {
2534
- delay: 0,
2535
- discountPercent: 0,
2536
- status: {
2537
- active: 'DISABLED',
2538
- sendCopiesTo: [],
2539
- },
2540
- },
2541
- orderCancelled: {
2542
- active: 'DISABLED',
2543
- sendCopiesTo: [],
2544
- },
2545
- orderConfirmation: {
2546
- active: 'DISABLED',
2547
- sendCopiesTo: [],
2548
- },
2549
- orderShipped: {
2550
- active: 'DISABLED',
2551
- sendCopiesTo: [],
2552
- },
2553
- },
2554
- organization: '',
2555
- placeOrderButtonSelector: null,
2556
- successBehavior: 'REDIRECT_TO_SUCCESS_PAGE',
2557
- successRedirectUrl: '',
2558
- },
2559
- currentHelloPage: '',
2560
- helloSettings: {
2561
- allowedDomains: [],
2562
- anchorElementSelector: '',
2563
- cartUrlPattern: '',
2564
- currencyBehavior: 'ENABLED',
2565
- currencyElementSelector: '.money',
2566
- dutyTaxEstimationBehavior: 'ENABLED',
2567
- excludedUrlPatterns: [],
2568
- homepageUrlPattern: '',
2569
- mobileLocation: 'BOTTOM_RIGHT',
2570
- mode: 'LIVE',
2571
- organization: '',
2572
- peekMessageBehavior: 'ENABLED',
2573
- peekMessageDelay: 0,
2574
- productAddToCartElementSelector: '',
2575
- productDescriptionElementSelector: '',
2576
- productDetailUrlPattern: '',
2577
- productListUrlPattern: '',
2578
- productPriceElementSelector: '',
2579
- productTitleElementSelector: '',
2580
- restrictionBehavior: 'DISABLED',
2581
- },
2582
- loadedConfig: false,
2583
- onlineStoreSettings: {
2584
- allowedDomains: [],
2585
- },
2586
- organizationName: '',
2587
- sourceCurrency: 'USD',
2588
- storeId: null,
2589
- // toggle to know if the config has been loaded with graphql
2590
- stripeApiKey: '',
2591
- zonosApiKey: '',
2592
- }));
2593
- let savedZonosSettings = null;
2594
- /**
2595
- * Init setting from zonos setting
2596
- */
2597
- const zonosStoreInitSetting = ({ overrideSettings, zonosSettings, }) => {
2598
- var _a, _b, _c;
2599
- reset();
2600
- if (zonosSettings) {
2601
- // save zonos settings to be used later
2602
- savedZonosSettings = zonosSettings;
2603
- }
2604
- zonosStore.appearance = mergeConfig(zonosStore.appearance, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.appearanceSettings) ||
2605
- (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.appearanceSettings) ||
2606
- null, overrideSettings.appearance);
2607
- zonosStore.checkoutSettings = mergeConfig(zonosStore.checkoutSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.checkoutSettings) ||
2608
- (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.checkoutSettings) ||
2609
- null, overrideSettings.checkoutSettings);
2610
- zonosStore.helloSettings = mergeConfig(zonosStore.helloSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.helloSettings) || (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.helloSettings) || null, overrideSettings.helloSettings);
2611
- zonosStore.onlineStoreSettings = mergeConfig(zonosStore.onlineStoreSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.onlineStoreSettings) ||
2612
- (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.onlineStoreSettings) ||
2613
- null, overrideSettings.onlineStoreSettings);
2614
- // set flag to true to indicate that config is ready
2615
- zonosStore.loadedConfig = true;
2616
- zonosStore.organizationName = ((_a = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _a === void 0 ? void 0 : _a.name) || '';
2617
- zonosStore.storeId = ((_c = (_b = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _b === void 0 ? void 0 : _b.references) === null || _c === void 0 ? void 0 : _c.storeId) || null;
2618
- zonosStore.currencyConverter = overrideSettings.currencyConverter;
2619
- };
2620
-
2621
- export { _root as _, createCommonjsModule as a, commonjsGlobal as b, createStore as c, zonosStoreInitSetting as d, _baseGetTag as e, isObject_1 as f, isObjectLike_1 as i, mergeConfig as m, zonosStore as z };
2622
-
2623
- //# sourceMappingURL=zonosStore-1c9c7d76.js.map