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