@zonos/elements 1.0.16

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