@paydock/client-sdk 1.106.1 → 1.107.0-beta

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 (490) hide show
  1. package/README.md +194 -162
  2. package/bundles/index.cjs +10483 -0
  3. package/bundles/index.cjs.d.ts +3206 -0
  4. package/bundles/index.cjs.map +1 -0
  5. package/bundles/index.mjs +10451 -0
  6. package/bundles/index.mjs.d.ts +3206 -0
  7. package/bundles/index.mjs.map +1 -0
  8. package/{lib → bundles/types}/api/api-base.d.ts +2 -1
  9. package/bundles/types/api/api-base.d.ts.map +1 -0
  10. package/{lib → bundles/types}/api/api-charge-internal.d.ts +1 -0
  11. package/bundles/types/api/api-charge-internal.d.ts.map +1 -0
  12. package/{lib → bundles/types}/api/api-charge.d.ts +1 -0
  13. package/bundles/types/api/api-charge.d.ts.map +1 -0
  14. package/{lib → bundles/types}/api/api-internal.d.ts +1 -0
  15. package/bundles/types/api/api-internal.d.ts.map +1 -0
  16. package/{lib → bundles/types}/api/api-service-internal.d.ts +2 -1
  17. package/bundles/types/api/api-service-internal.d.ts.map +1 -0
  18. package/{lib → bundles/types}/api/api.d.ts +1 -0
  19. package/bundles/types/api/api.d.ts.map +1 -0
  20. package/bundles/types/api/index.d.ts +2 -0
  21. package/bundles/types/api/index.d.ts.map +1 -0
  22. package/{lib → bundles/types}/canvas-3ds/canvas-3ds.d.ts +1 -0
  23. package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -0
  24. package/{lib → bundles/types}/canvas-3ds/index.d.ts +1 -0
  25. package/bundles/types/canvas-3ds/index.d.ts.map +1 -0
  26. package/{lib → bundles/types}/canvas-3ds/services/gpayments-service.d.ts +1 -0
  27. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -0
  28. package/{lib → bundles/types}/canvas-3ds/services/index.d.ts +1 -0
  29. package/bundles/types/canvas-3ds/services/index.d.ts.map +1 -0
  30. package/{lib → bundles/types}/canvas-3ds/services/standalone3ds-service.d.ts +1 -0
  31. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -0
  32. package/{lib → bundles/types}/checkout-button/afterpay/afterpay-checkout-button.d.ts +1 -0
  33. package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -0
  34. package/{lib → bundles/types}/checkout-button/afterpay/afterpay.runner.d.ts +1 -0
  35. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -0
  36. package/{lib → bundles/types}/checkout-button/checkout-button.d.ts +1 -0
  37. package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -0
  38. package/{lib → bundles/types}/checkout-button/checkout-button.interface.d.ts +1 -0
  39. package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +1 -0
  40. package/{lib → bundles/types}/checkout-button/checkout-contextual-handler.d.ts +1 -0
  41. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -0
  42. package/{lib → bundles/types}/checkout-button/index.d.ts +2 -1
  43. package/bundles/types/checkout-button/index.d.ts.map +1 -0
  44. package/{lib → bundles/types}/checkout-button/paypal/paypal-checkout-button.d.ts +1 -0
  45. package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -0
  46. package/{lib → bundles/types}/checkout-button/paypal/paypal.runner.d.ts +1 -0
  47. package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +1 -0
  48. package/{lib → bundles/types}/checkout-button/runner/base.runner.d.ts +4 -3
  49. package/bundles/types/checkout-button/runner/base.runner.d.ts.map +1 -0
  50. package/{lib → bundles/types}/checkout-button/runner/contextual.runner.d.ts +2 -1
  51. package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -0
  52. package/{lib → bundles/types}/checkout-button/runner/index.d.ts +1 -0
  53. package/bundles/types/checkout-button/runner/index.d.ts.map +1 -0
  54. package/{lib → bundles/types}/checkout-button/runner/popup.runner.d.ts +2 -1
  55. package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -0
  56. package/{lib → bundles/types}/checkout-button/runner/redirect.runner.d.ts +2 -1
  57. package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +1 -0
  58. package/bundles/types/checkout-button/zipmoney/index.d.ts +4 -0
  59. package/bundles/types/checkout-button/zipmoney/index.d.ts.map +1 -0
  60. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +1 -0
  61. package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -0
  62. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +2 -1
  63. package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -0
  64. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +2 -1
  65. package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +1 -0
  66. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.config.d.ts +1 -0
  67. package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +1 -0
  68. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.runner.d.ts +2 -1
  69. package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +1 -0
  70. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.types.d.ts +1 -0
  71. package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +1 -0
  72. package/{lib → bundles/types}/components/ability-guard.d.ts +1 -0
  73. package/bundles/types/components/ability-guard.d.ts.map +1 -0
  74. package/{lib → bundles/types}/components/background.d.ts +1 -0
  75. package/bundles/types/components/background.d.ts.map +1 -0
  76. package/{lib → bundles/types}/components/container.d.ts +1 -0
  77. package/bundles/types/components/container.d.ts.map +1 -0
  78. package/{lib → bundles/types}/components/dispatcher.d.ts +2 -1
  79. package/bundles/types/components/dispatcher.d.ts.map +1 -0
  80. package/{lib → bundles/types}/components/element-style.d.ts +2 -1
  81. package/bundles/types/components/element-style.d.ts.map +1 -0
  82. package/{lib → bundles/types}/components/flypay-iframe-event.d.ts +1 -0
  83. package/bundles/types/components/flypay-iframe-event.d.ts.map +1 -0
  84. package/{lib/components/form-Interceptor.d.ts → bundles/types/components/form-interceptor.d.ts} +1 -0
  85. package/bundles/types/components/form-interceptor.d.ts.map +1 -0
  86. package/{lib → bundles/types}/components/http-core.d.ts +1 -0
  87. package/bundles/types/components/http-core.d.ts.map +1 -0
  88. package/{lib → bundles/types}/components/iframe-event.d.ts +2 -0
  89. package/bundles/types/components/iframe-event.d.ts.map +1 -0
  90. package/{lib → bundles/types}/components/iframe.d.ts +1 -0
  91. package/bundles/types/components/iframe.d.ts.map +1 -0
  92. package/{lib → bundles/types}/components/link.d.ts +2 -1
  93. package/bundles/types/components/link.d.ts.map +1 -0
  94. package/{lib → bundles/types}/components/loader.d.ts +1 -0
  95. package/bundles/types/components/loader.d.ts.map +1 -0
  96. package/{lib → bundles/types}/components/param.d.ts +8 -7
  97. package/bundles/types/components/param.d.ts.map +1 -0
  98. package/{lib → bundles/types}/components/popup.d.ts +1 -0
  99. package/bundles/types/components/popup.d.ts.map +1 -0
  100. package/{lib → bundles/types}/components/storage-dispatcher.d.ts +1 -0
  101. package/bundles/types/components/storage-dispatcher.d.ts.map +1 -0
  102. package/{lib → bundles/types}/components/trigger.d.ts +1 -0
  103. package/bundles/types/components/trigger.d.ts.map +1 -0
  104. package/{lib → bundles/types}/components/vault-display-iframe-event.d.ts +1 -0
  105. package/bundles/types/components/vault-display-iframe-event.d.ts.map +1 -0
  106. package/{lib → bundles/types}/components/wallet-background.d.ts +3 -1
  107. package/bundles/types/components/wallet-background.d.ts.map +1 -0
  108. package/{lib → bundles/types}/components/wallet-trigger.d.ts +1 -0
  109. package/bundles/types/components/wallet-trigger.d.ts.map +1 -0
  110. package/bundles/types/configs/env/environment.cba.d.ts +29 -0
  111. package/bundles/types/configs/env/environment.cba.d.ts.map +1 -0
  112. package/bundles/types/configs/env/environment.interface.d.ts +12 -0
  113. package/bundles/types/configs/env/environment.interface.d.ts.map +1 -0
  114. package/{lib/configs/env/env.d.ts → bundles/types/configs/env/environment.paydock.d.ts} +5 -8
  115. package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -0
  116. package/bundles/types/configs/env/index.d.ts +3 -0
  117. package/bundles/types/configs/env/index.d.ts.map +1 -0
  118. package/{lib → bundles/types}/configs/sdk.d.ts +3 -2
  119. package/bundles/types/configs/sdk.d.ts.map +1 -0
  120. package/{lib → bundles/types}/constants/validators.d.ts +3 -2
  121. package/bundles/types/constants/validators.d.ts.map +1 -0
  122. package/{lib → bundles/types}/external-checkout/builder.d.ts +1 -0
  123. package/bundles/types/external-checkout/builder.d.ts.map +1 -0
  124. package/{lib → bundles/types}/external-checkout/checker.d.ts +1 -0
  125. package/bundles/types/external-checkout/checker.d.ts.map +1 -0
  126. package/bundles/types/external-checkout/index.d.ts +3 -0
  127. package/bundles/types/external-checkout/index.d.ts.map +1 -0
  128. package/{lib → bundles/types}/helper/access-token.d.ts +1 -0
  129. package/bundles/types/helper/access-token.d.ts.map +1 -0
  130. package/{lib → bundles/types}/helper/browser.d.ts +1 -0
  131. package/bundles/types/helper/browser.d.ts.map +1 -0
  132. package/bundles/types/helper/element-id.d.ts +5 -0
  133. package/bundles/types/helper/element-id.d.ts.map +1 -0
  134. package/{lib → bundles/types}/helper/event-emitter.d.ts +1 -0
  135. package/bundles/types/helper/event-emitter.d.ts.map +1 -0
  136. package/{lib → bundles/types}/helper/event.d.ts +1 -0
  137. package/bundles/types/helper/event.d.ts.map +1 -0
  138. package/{lib → bundles/types}/helper/ms.d.ts +1 -0
  139. package/bundles/types/helper/ms.d.ts.map +1 -0
  140. package/{lib → bundles/types}/helper/object.d.ts +1 -0
  141. package/bundles/types/helper/object.d.ts.map +1 -0
  142. package/{lib → bundles/types}/helper/url.d.ts +1 -0
  143. package/bundles/types/helper/url.d.ts.map +1 -0
  144. package/{lib → bundles/types}/helper/uuid.d.ts +1 -0
  145. package/bundles/types/helper/uuid.d.ts.map +1 -0
  146. package/bundles/types/index-cba.d.ts +13 -0
  147. package/bundles/types/index-cba.d.ts.map +1 -0
  148. package/bundles/types/index.d.ts +14 -0
  149. package/bundles/types/index.d.ts.map +1 -0
  150. package/{lib → bundles/types}/payment-source/builder.d.ts +1 -0
  151. package/bundles/types/payment-source/builder.d.ts.map +1 -0
  152. package/{lib → bundles/types}/payment-source/index.d.ts +1 -0
  153. package/bundles/types/payment-source/index.d.ts.map +1 -0
  154. package/{lib → bundles/types}/payment-source-widget/html-payment-source-widget.d.ts +1 -0
  155. package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -0
  156. package/{lib → bundles/types}/payment-source-widget/index.d.ts +1 -0
  157. package/bundles/types/payment-source-widget/index.d.ts.map +1 -0
  158. package/{lib → bundles/types}/payment-source-widget/interfaces.d.ts +1 -0
  159. package/bundles/types/payment-source-widget/interfaces.d.ts.map +1 -0
  160. package/{lib → bundles/types}/payment-source-widget/payment-source-widget.d.ts +1 -0
  161. package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +1 -0
  162. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts +31 -0
  163. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts.map +1 -0
  164. package/{lib → bundles/types}/secure-remote-commerce/index.d.ts +5 -4
  165. package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
  166. package/{lib → bundles/types}/secure-remote-commerce/interfaces.d.ts +10 -9
  167. package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -0
  168. package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts +2 -0
  169. package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts.map +1 -0
  170. package/{lib → bundles/types}/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts +5 -4
  171. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -0
  172. package/{lib → bundles/types}/secure-remote-commerce/providers/src-provider.d.ts +1 -0
  173. package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -0
  174. package/{lib → bundles/types}/secure-remote-commerce/secure-remote-commerce.d.ts +4 -3
  175. package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -0
  176. package/{lib → bundles/types}/vault-display-widget/index.d.ts +1 -0
  177. package/bundles/types/vault-display-widget/index.d.ts.map +1 -0
  178. package/{lib → bundles/types}/vault-display-widget/vault-display-widget.d.ts +1 -0
  179. package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -0
  180. package/{lib → bundles/types}/wallet-buttons/afterpay.wallet-service.d.ts +1 -0
  181. package/bundles/types/wallet-buttons/afterpay.wallet-service.d.ts.map +1 -0
  182. package/{lib → bundles/types}/wallet-buttons/apple.wallet-service.d.ts +1 -0
  183. package/bundles/types/wallet-buttons/apple.wallet-service.d.ts.map +1 -0
  184. package/{lib → bundles/types}/wallet-buttons/flypay-v2.wallet-service.d.ts +2 -1
  185. package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +1 -0
  186. package/{lib → bundles/types}/wallet-buttons/flypay.wallet-service.d.ts +1 -0
  187. package/bundles/types/wallet-buttons/flypay.wallet-service.d.ts.map +1 -0
  188. package/{lib → bundles/types}/wallet-buttons/google.wallet-service.d.ts +1 -0
  189. package/bundles/types/wallet-buttons/google.wallet-service.d.ts.map +1 -0
  190. package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts +6 -0
  191. package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts.map +1 -0
  192. package/bundles/types/wallet-buttons/index-cba.d.ts +2 -0
  193. package/bundles/types/wallet-buttons/index-cba.d.ts.map +1 -0
  194. package/{lib → bundles/types}/wallet-buttons/index.d.ts +1 -0
  195. package/bundles/types/wallet-buttons/index.d.ts.map +1 -0
  196. package/{lib → bundles/types}/wallet-buttons/interfaces.d.ts +1 -0
  197. package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -0
  198. package/{lib → bundles/types}/wallet-buttons/mastercard.wallet-service.d.ts +1 -0
  199. package/bundles/types/wallet-buttons/mastercard.wallet-service.d.ts.map +1 -0
  200. package/{lib → bundles/types}/wallet-buttons/paypal.wallet-service.d.ts +1 -0
  201. package/bundles/types/wallet-buttons/paypal.wallet-service.d.ts.map +1 -0
  202. package/{lib → bundles/types}/wallet-buttons/stripe.wallet-service.d.ts +1 -0
  203. package/bundles/types/wallet-buttons/stripe.wallet-service.d.ts.map +1 -0
  204. package/{lib → bundles/types}/wallet-buttons/wallet-buttons.d.ts +1 -0
  205. package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -0
  206. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +330 -0
  207. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -0
  208. package/{lib → bundles/types}/wallet-buttons/wallet-service.d.ts +1 -0
  209. package/bundles/types/wallet-buttons/wallet-service.d.ts.map +1 -0
  210. package/{lib → bundles/types}/widget/configuration.d.ts +2 -1
  211. package/bundles/types/widget/configuration.d.ts.map +1 -0
  212. package/{lib → bundles/types}/widget/html-multi-widget.d.ts +4 -3
  213. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -0
  214. package/{lib → bundles/types}/widget/html-widget.d.ts +1 -0
  215. package/bundles/types/widget/html-widget.d.ts.map +1 -0
  216. package/{lib → bundles/types}/widget/index.d.ts +2 -1
  217. package/bundles/types/widget/index.d.ts.map +1 -0
  218. package/{lib → bundles/types}/widget/meta.d.ts +1 -0
  219. package/bundles/types/widget/meta.d.ts.map +1 -0
  220. package/{lib → bundles/types}/widget/multi-widget.d.ts +2 -1
  221. package/bundles/types/widget/multi-widget.d.ts.map +1 -0
  222. package/{lib → bundles/types}/widget/style.d.ts +1 -0
  223. package/bundles/types/widget/style.d.ts.map +1 -0
  224. package/bundles/widget.umd.js +6755 -6894
  225. package/bundles/widget.umd.js.d.ts +3206 -0
  226. package/bundles/widget.umd.js.map +1 -0
  227. package/bundles/widget.umd.js.min.d.ts +3206 -0
  228. package/bundles/widget.umd.min.js +2 -1
  229. package/bundles/widget.umd.min.js.map +1 -0
  230. package/docs/api-canvas3ds.md +158 -0
  231. package/docs/api-checkout-button.md +912 -0
  232. package/docs/api-examples.md +65 -0
  233. package/docs/api-ps-widget.md +585 -0
  234. package/docs/api-vault-display.md +94 -0
  235. package/docs/api-widget.md +2499 -0
  236. package/docs/api-wrapper.md +78 -0
  237. package/docs/canvas3ds-examples.md +242 -0
  238. package/docs/cba-header.md +13 -0
  239. package/docs/cba-license.md +2 -0
  240. package/docs/checkout-examples.md +248 -0
  241. package/docs/click-to-pay-examples.md +231 -0
  242. package/docs/click-to-pay.md +336 -0
  243. package/docs/header.md +15 -0
  244. package/docs/html/layout.html +78 -0
  245. package/docs/html/marked.js +23 -0
  246. package/docs/html/style.css +365 -0
  247. package/docs/install/npm.content.md +16 -0
  248. package/docs/install/npm.example.md +24 -0
  249. package/docs/install/umd.content.md +20 -0
  250. package/docs/install/umd.example.md +6 -0
  251. package/docs/install.md +43 -0
  252. package/docs/install.readme.t.md +17 -0
  253. package/docs/install.slate.t.md +17 -0
  254. package/docs/license.md +2 -0
  255. package/docs/partials/header.hbs +3 -0
  256. package/docs/ps-examples.md +129 -0
  257. package/docs/vault-display-example.md +132 -0
  258. package/docs/wallet-buttons-examples.md +609 -0
  259. package/docs/wallet-buttons.md +619 -0
  260. package/docs/wallet-cba-buttons-examples.md +388 -0
  261. package/docs/widget-examples.md +134 -0
  262. package/package.json +164 -42
  263. package/slate.md +141 -106
  264. package/.nvmrc +0 -1
  265. package/api.d.ts +0 -1
  266. package/api.js +0 -1
  267. package/canvas3ds.d.ts +0 -1
  268. package/canvas3ds.js +0 -1
  269. package/checkout-button.d.ts +0 -1
  270. package/checkout-button.js +0 -1
  271. package/inicialization-guide.md +0 -7
  272. package/lib/api/api-base.js +0 -101
  273. package/lib/api/api-base.js.map +0 -1
  274. package/lib/api/api-charge-internal.js +0 -30
  275. package/lib/api/api-charge-internal.js.map +0 -1
  276. package/lib/api/api-charge.js +0 -49
  277. package/lib/api/api-charge.js.map +0 -1
  278. package/lib/api/api-internal.js +0 -13
  279. package/lib/api/api-internal.js.map +0 -1
  280. package/lib/api/api-service-internal.js +0 -19
  281. package/lib/api/api-service-internal.js.map +0 -1
  282. package/lib/api/api.js +0 -62
  283. package/lib/api/api.js.map +0 -1
  284. package/lib/api/index.d.ts +0 -1
  285. package/lib/api/index.js +0 -2
  286. package/lib/api/index.js.map +0 -1
  287. package/lib/canvas-3ds/canvas-3ds.js +0 -157
  288. package/lib/canvas-3ds/canvas-3ds.js.map +0 -1
  289. package/lib/canvas-3ds/index.js +0 -2
  290. package/lib/canvas-3ds/index.js.map +0 -1
  291. package/lib/canvas-3ds/services/gpayments-service.js +0 -181
  292. package/lib/canvas-3ds/services/gpayments-service.js.map +0 -1
  293. package/lib/canvas-3ds/services/index.js +0 -2
  294. package/lib/canvas-3ds/services/index.js.map +0 -1
  295. package/lib/canvas-3ds/services/standalone3ds-service.js +0 -32
  296. package/lib/canvas-3ds/services/standalone3ds-service.js.map +0 -1
  297. package/lib/checkout-button/afterpay/afterpay-checkout-button.js +0 -50
  298. package/lib/checkout-button/afterpay/afterpay-checkout-button.js.map +0 -1
  299. package/lib/checkout-button/afterpay/afterpay.runner.js +0 -41
  300. package/lib/checkout-button/afterpay/afterpay.runner.js.map +0 -1
  301. package/lib/checkout-button/checkout-button.interface.js +0 -45
  302. package/lib/checkout-button/checkout-button.interface.js.map +0 -1
  303. package/lib/checkout-button/checkout-button.js +0 -266
  304. package/lib/checkout-button/checkout-button.js.map +0 -1
  305. package/lib/checkout-button/checkout-contextual-handler.js +0 -75
  306. package/lib/checkout-button/checkout-contextual-handler.js.map +0 -1
  307. package/lib/checkout-button/index.js +0 -85
  308. package/lib/checkout-button/index.js.map +0 -1
  309. package/lib/checkout-button/paypal/paypal-checkout-button.js +0 -25
  310. package/lib/checkout-button/paypal/paypal-checkout-button.js.map +0 -1
  311. package/lib/checkout-button/paypal/paypal.runner.js +0 -14
  312. package/lib/checkout-button/paypal/paypal.runner.js.map +0 -1
  313. package/lib/checkout-button/runner/base.runner.js +0 -13
  314. package/lib/checkout-button/runner/base.runner.js.map +0 -1
  315. package/lib/checkout-button/runner/contextual.runner.js +0 -40
  316. package/lib/checkout-button/runner/contextual.runner.js.map +0 -1
  317. package/lib/checkout-button/runner/index.js +0 -11
  318. package/lib/checkout-button/runner/index.js.map +0 -1
  319. package/lib/checkout-button/runner/popup.runner.js +0 -68
  320. package/lib/checkout-button/runner/popup.runner.js.map +0 -1
  321. package/lib/checkout-button/runner/redirect.runner.js +0 -15
  322. package/lib/checkout-button/runner/redirect.runner.js.map +0 -1
  323. package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js +0 -64
  324. package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js.map +0 -1
  325. package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js +0 -78
  326. package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js.map +0 -1
  327. package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js +0 -49
  328. package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js.map +0 -1
  329. package/lib/checkout-button/zipmoney/zipmoney.config.js +0 -4
  330. package/lib/checkout-button/zipmoney/zipmoney.config.js.map +0 -1
  331. package/lib/checkout-button/zipmoney/zipmoney.runner.js +0 -23
  332. package/lib/checkout-button/zipmoney/zipmoney.runner.js.map +0 -1
  333. package/lib/checkout-button/zipmoney/zipmoney.types.js +0 -1
  334. package/lib/checkout-button/zipmoney/zipmoney.types.js.map +0 -1
  335. package/lib/components/ability-guard.js +0 -44
  336. package/lib/components/ability-guard.js.map +0 -1
  337. package/lib/components/background.js +0 -193
  338. package/lib/components/background.js.map +0 -1
  339. package/lib/components/container.js +0 -63
  340. package/lib/components/container.js.map +0 -1
  341. package/lib/components/dispatcher.js +0 -39
  342. package/lib/components/dispatcher.js.map +0 -1
  343. package/lib/components/element-style.js +0 -52
  344. package/lib/components/element-style.js.map +0 -1
  345. package/lib/components/flypay-iframe-event.js +0 -28
  346. package/lib/components/flypay-iframe-event.js.map +0 -1
  347. package/lib/components/form-Interceptor.js +0 -38
  348. package/lib/components/form-Interceptor.js.map +0 -1
  349. package/lib/components/http-core.js +0 -57
  350. package/lib/components/http-core.js.map +0 -1
  351. package/lib/components/iframe-event.js +0 -77
  352. package/lib/components/iframe-event.js.map +0 -1
  353. package/lib/components/iframe.js +0 -62
  354. package/lib/components/iframe.js.map +0 -1
  355. package/lib/components/link.js +0 -60
  356. package/lib/components/link.js.map +0 -1
  357. package/lib/components/loader.js +0 -234
  358. package/lib/components/loader.js.map +0 -1
  359. package/lib/components/param.js +0 -147
  360. package/lib/components/param.js.map +0 -1
  361. package/lib/components/popup.js +0 -104
  362. package/lib/components/popup.js.map +0 -1
  363. package/lib/components/storage-dispatcher.js +0 -75
  364. package/lib/components/storage-dispatcher.js.map +0 -1
  365. package/lib/components/trigger.js +0 -49
  366. package/lib/components/trigger.js.map +0 -1
  367. package/lib/components/vault-display-iframe-event.js +0 -27
  368. package/lib/components/vault-display-iframe-event.js.map +0 -1
  369. package/lib/components/wallet-background.js +0 -75
  370. package/lib/components/wallet-background.js.map +0 -1
  371. package/lib/components/wallet-trigger.js +0 -27
  372. package/lib/components/wallet-trigger.js.map +0 -1
  373. package/lib/configs/env/env.js +0 -117
  374. package/lib/configs/env/env.js.map +0 -1
  375. package/lib/configs/sdk.js +0 -16
  376. package/lib/configs/sdk.js.map +0 -1
  377. package/lib/constants/validators.js +0 -42
  378. package/lib/constants/validators.js.map +0 -1
  379. package/lib/external-checkout/builder.js +0 -45
  380. package/lib/external-checkout/builder.js.map +0 -1
  381. package/lib/external-checkout/checker.js +0 -22
  382. package/lib/external-checkout/checker.js.map +0 -1
  383. package/lib/external-checkout/index.d.ts +0 -2
  384. package/lib/external-checkout/index.js +0 -3
  385. package/lib/external-checkout/index.js.map +0 -1
  386. package/lib/helper/access-token.js +0 -44
  387. package/lib/helper/access-token.js.map +0 -1
  388. package/lib/helper/browser.js +0 -79
  389. package/lib/helper/browser.js.map +0 -1
  390. package/lib/helper/event-emitter.js +0 -23
  391. package/lib/helper/event-emitter.js.map +0 -1
  392. package/lib/helper/event.js +0 -23
  393. package/lib/helper/event.js.map +0 -1
  394. package/lib/helper/ms.js +0 -32
  395. package/lib/helper/ms.js.map +0 -1
  396. package/lib/helper/object.js +0 -6
  397. package/lib/helper/object.js.map +0 -1
  398. package/lib/helper/url.js +0 -11
  399. package/lib/helper/url.js.map +0 -1
  400. package/lib/helper/uuid.js +0 -26
  401. package/lib/helper/uuid.js.map +0 -1
  402. package/lib/index.d.ts +0 -15
  403. package/lib/index.js +0 -15
  404. package/lib/index.js.map +0 -1
  405. package/lib/payment-source/builder.js +0 -49
  406. package/lib/payment-source/builder.js.map +0 -1
  407. package/lib/payment-source/index.js +0 -2
  408. package/lib/payment-source/index.js.map +0 -1
  409. package/lib/payment-source-widget/html-payment-source-widget.js +0 -172
  410. package/lib/payment-source-widget/html-payment-source-widget.js.map +0 -1
  411. package/lib/payment-source-widget/index.js +0 -35
  412. package/lib/payment-source-widget/index.js.map +0 -1
  413. package/lib/payment-source-widget/interfaces.js +0 -2
  414. package/lib/payment-source-widget/interfaces.js.map +0 -1
  415. package/lib/payment-source-widget/payment-source-widget.js +0 -142
  416. package/lib/payment-source-widget/payment-source-widget.js.map +0 -1
  417. package/lib/secure-remote-commerce/index.js +0 -103
  418. package/lib/secure-remote-commerce/index.js.map +0 -1
  419. package/lib/secure-remote-commerce/interfaces.js +0 -48
  420. package/lib/secure-remote-commerce/interfaces.js.map +0 -1
  421. package/lib/secure-remote-commerce/mastercard-secure-remote-commerce.d.ts +0 -30
  422. package/lib/secure-remote-commerce/mastercard-secure-remote-commerce.js +0 -40
  423. package/lib/secure-remote-commerce/mastercard-secure-remote-commerce.js.map +0 -1
  424. package/lib/secure-remote-commerce/providers/mastercard-src/index.d.ts +0 -1
  425. package/lib/secure-remote-commerce/providers/mastercard-src/index.js +0 -2
  426. package/lib/secure-remote-commerce/providers/mastercard-src/index.js.map +0 -1
  427. package/lib/secure-remote-commerce/providers/mastercard-src/mastercard-src.js +0 -89
  428. package/lib/secure-remote-commerce/providers/mastercard-src/mastercard-src.js.map +0 -1
  429. package/lib/secure-remote-commerce/providers/src-provider.js +0 -1
  430. package/lib/secure-remote-commerce/providers/src-provider.js.map +0 -1
  431. package/lib/secure-remote-commerce/secure-remote-commerce.js +0 -155
  432. package/lib/secure-remote-commerce/secure-remote-commerce.js.map +0 -1
  433. package/lib/vault-display-widget/index.js +0 -14
  434. package/lib/vault-display-widget/index.js.map +0 -1
  435. package/lib/vault-display-widget/vault-display-widget.js +0 -99
  436. package/lib/vault-display-widget/vault-display-widget.js.map +0 -1
  437. package/lib/wallet-buttons/afterpay.wallet-service.js +0 -152
  438. package/lib/wallet-buttons/afterpay.wallet-service.js.map +0 -1
  439. package/lib/wallet-buttons/apple.wallet-service.js +0 -324
  440. package/lib/wallet-buttons/apple.wallet-service.js.map +0 -1
  441. package/lib/wallet-buttons/flypay-v2.wallet-service.js +0 -163
  442. package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +0 -1
  443. package/lib/wallet-buttons/flypay.wallet-service.js +0 -117
  444. package/lib/wallet-buttons/flypay.wallet-service.js.map +0 -1
  445. package/lib/wallet-buttons/google.wallet-service.js +0 -301
  446. package/lib/wallet-buttons/google.wallet-service.js.map +0 -1
  447. package/lib/wallet-buttons/helpers/flypay-v2.helper.d.ts +0 -3
  448. package/lib/wallet-buttons/helpers/flypay-v2.helper.js +0 -151
  449. package/lib/wallet-buttons/helpers/flypay-v2.helper.js.map +0 -1
  450. package/lib/wallet-buttons/index.js +0 -128
  451. package/lib/wallet-buttons/index.js.map +0 -1
  452. package/lib/wallet-buttons/interfaces.js +0 -1
  453. package/lib/wallet-buttons/interfaces.js.map +0 -1
  454. package/lib/wallet-buttons/mastercard.wallet-service.js +0 -27
  455. package/lib/wallet-buttons/mastercard.wallet-service.js.map +0 -1
  456. package/lib/wallet-buttons/paypal.wallet-service.js +0 -144
  457. package/lib/wallet-buttons/paypal.wallet-service.js.map +0 -1
  458. package/lib/wallet-buttons/stripe.wallet-service.js +0 -100
  459. package/lib/wallet-buttons/stripe.wallet-service.js.map +0 -1
  460. package/lib/wallet-buttons/wallet-buttons.js +0 -479
  461. package/lib/wallet-buttons/wallet-buttons.js.map +0 -1
  462. package/lib/wallet-buttons/wallet-service.js +0 -60
  463. package/lib/wallet-buttons/wallet-service.js.map +0 -1
  464. package/lib/widget/configuration.js +0 -260
  465. package/lib/widget/configuration.js.map +0 -1
  466. package/lib/widget/html-multi-widget.js +0 -422
  467. package/lib/widget/html-multi-widget.js.map +0 -1
  468. package/lib/widget/html-widget.js +0 -127
  469. package/lib/widget/html-widget.js.map +0 -1
  470. package/lib/widget/index.js +0 -132
  471. package/lib/widget/index.js.map +0 -1
  472. package/lib/widget/meta.js +0 -8
  473. package/lib/widget/meta.js.map +0 -1
  474. package/lib/widget/multi-widget.js +0 -437
  475. package/lib/widget/multi-widget.js.map +0 -1
  476. package/lib/widget/style.js +0 -204
  477. package/lib/widget/style.js.map +0 -1
  478. package/payment-source-widget.d.ts +0 -1
  479. package/payment-source-widget.js +0 -1
  480. package/tslint.json +0 -129
  481. package/typings/globals/jasmine/index.d.ts +0 -576
  482. package/typings/globals/jasmine-ajax/index.d.ts +0 -83
  483. package/typings/globals/jquery/index.d.ts +0 -3759
  484. package/typings/index.d.ts +0 -3
  485. package/vault-display-widget.d.ts +0 -1
  486. package/vault-display-widget.js +0 -1
  487. package/vendors/zipmoney.d.ts +0 -18
  488. package/vendors/zipmoney.js +0 -1
  489. package/widget.d.ts +0 -1
  490. package/widget.js +0 -1
@@ -1,3 +0,0 @@
1
- /// <reference path="globals/jasmine-ajax/index.d.ts" />
2
- /// <reference path="globals/jasmine/index.d.ts" />
3
- /// <reference path="globals/jquery/index.d.ts" />
@@ -1 +0,0 @@
1
- export * from './lib/vault-display-widget';
@@ -1 +0,0 @@
1
- export * from './lib/vault-display-widget';
@@ -1,18 +0,0 @@
1
- declare module Zip {
2
- export const enum ZIPMONEY_STATE {
3
- APPROVED = 'approved',
4
- DECLINED = 'declined',
5
- CANCELLED = 'cancelled',
6
- REFERRED = 'referred',
7
- }
8
-
9
- export const Checkout: {
10
- init(t: {
11
- checkoutUri: string,
12
- redirectUri?: string,
13
- onComplete?: (args: { state: ZIPMONEY_STATE, checkoutId: string }) => void,
14
- onError?: (args: { state: ZIPMONEY_STATE }) => void,
15
- redirect?: boolean;
16
- }): void
17
- }
18
- }
@@ -1 +0,0 @@
1
- !function t(e,n,r){function o(u,a){if(!n[u]){if(!e[u]){var c="function"==typeof require&&require;if(!a&&c)return c(u,!0);if(i)return i(u,!0);var s=Error("Cannot find module '"+u+"'");throw s.code="MODULE_NOT_FOUND",s}var f=n[u]={exports:{}};e[u][0].call(f.exports,function(t){return o(e[u][1][t]||t)},f,f.exports,t,e,n,r)}return n[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(t,e,n){function r(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function i(t){if(f===setTimeout)return setTimeout(t,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(n){return f.call(this,t,0)}}}function u(){v&&d&&(v=!1,d.length?h=d.concat(h):y=-1,h.length&&a())}function a(){if(!v){var t=i(u);v=!0;for(var e=h.length;e;){for(d=h,h=[];++y<e;)d&&d[y].run();y=-1,e=h.length}d=null,v=!1,function t(e){if(l===clearTimeout)return clearTimeout(e);if((l===o||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(e);try{return l(e)}catch(n){try{return l.call(null,e)}catch(r){return l.call(this,e)}}}(t)}}function c(t,e){this.fun=t,this.array=e}function s(){}var f,l,p=e.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(t){f=r}try{l="function"==typeof clearTimeout?clearTimeout:o}catch(e){l=o}}();var d,h=[],v=!1,y=-1;p.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new c(t,e)),1!==h.length||v||i(a)},c.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=s,p.addListener=s,p.once=s,p.off=s,p.removeListener=s,p.removeAllListeners=s,p.emit=s,p.prependListener=s,p.prependOnceListener=s,p.listeners=function(t){return[]},p.binding=function(t){throw Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw Error("process.chdir is not supported")},p.umask=function(){return 0}},{},],2:[function(t,e,n){(function(t){!function(t){"use strict";if("function"==typeof bootstrap)bootstrap("promise",t);else if("object"==typeof n&&"object"==typeof e)e.exports=t();else if("function"==typeof define&&define.amd)define(t);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeQ=t}else{if("undefined"==typeof window&&"undefined"==typeof self)throw Error("This environment was not anticipated by Q. Please file a bug.");var r="undefined"!=typeof window?window:self,o=r.Q;r.Q=t(),r.Q.noConflict=function(){return r.Q=o,this}}}(function(){"use strict";function e(t){return function(){return M.apply(t,arguments)}}function n(t,e){if(x&&e.stack&&"object"==typeof t&&null!==t&&t.stack){for(var n=[],o=e;o;o=o.source)o.stack&&(!t.__minimumStackCounter__||t.__minimumStackCounter__>o.stackCounter)&&(U(t,"__minimumStackCounter__",{value:o.stackCounter,configurable:!0}),n.unshift(o.stack));n.unshift(t.stack),U(t,"stack",{value:function t(e){for(var n=e.split("\n"),o=[],u=0;u<n.length;++u){var a=n[u];i(a)||r(a)||!a||o.push(a)}return o.join("\n")}(n.join("\n"+I+"\n")),configurable:!0})}}function r(t){return -1!==t.indexOf("(module.js:")||-1!==t.indexOf("(node.js:")}function o(t){var e=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(t);if(e)return[e[1],Number(e[2])];var n=/at ([^ ]+):(\d+):(?:\d+)$/.exec(t);if(n)return[n[1],Number(n[2])];var r=/.*@(.+):(\d+)$/.exec(t);return r?[r[1],Number(r[2])]:void 0}function i(t){var e=o(t);if(!e)return!1;var n=e[0],r=e[1];return n===j&&r>=C&&r<=Z}function u(){if(x)try{throw Error()}catch(t){var e=t.stack.split("\n"),n=o(e[0].indexOf("@")>0?e[1]:e[2]);if(!n)return;return j=n[0],n[1]}}function a(t){var e,n;return t instanceof l?t:v(t)?(e=t,n=c(),a.nextTick(function(){try{e.then(n.resolve,n.reject,n.notify)}catch(t){n.reject(t)}}),n.promise):$(t)}function c(){function t(t){e=t,a.longStackSupport&&x&&(i.source=t),L(n,function(e,n){a.nextTick(function(){t.promiseDispatch.apply(t,n)})},void 0),n=void 0,r=void 0}var e,n=[],r=[],o=H(c.prototype),i=H(l.prototype);if(i.promiseDispatch=function(t,o,i){var u=P(arguments);n?(n.push(u),"when"===o&&i[1]&&r.push(i[1])):a.nextTick(function(){e.promiseDispatch.apply(e,u)})},i.valueOf=function(){if(n)return i;var t=d(e);return h(t)&&(e=t),t},i.inspect=function(){return e?e.inspect():{state:"pending"}},a.longStackSupport&&x)try{throw Error()}catch(u){i.stack=u.stack.substring(u.stack.indexOf("\n")+1),i.stackCounter=N++}return o.promise=i,o.resolve=function(n){e||t(a(n))},o.fulfill=function(n){e||t($(n))},o.reject=function(n){e||t(m(n))},o.notify=function(t){e||L(r,function(e,n){a.nextTick(function(){n(t)})},void 0)},o}function s(t){if("function"!=typeof t)throw TypeError("resolver must be a function.");var e=c();try{t(e.resolve,e.reject,e.notify)}catch(n){e.reject(n)}return e.promise}function f(t){return s(function(e,n){for(var r=0,o=t.length;r<o;r++)a(t[r]).then(e,n)})}function l(t,e,n){void 0===e&&(e=function(t){return m(Error("Promise does not support operation: "+t))}),void 0===n&&(n=function(){return{state:"unknown"}});var r=H(l.prototype);if(r.promiseDispatch=function(n,o,i){var u;try{u=t[o]?t[o].apply(r,i):e.call(r,o,i)}catch(a){u=m(a)}n&&n(u)},r.inspect=n,n){var o=n();"rejected"===o.state&&(r.exception=o.reason),r.valueOf=function(){var t=n();return"pending"===t.state||"rejected"===t.state?r:t.value}}return r}function p(t,e,n,r){return a(t).then(e,n,r)}function d(t){if(h(t)){var e=t.inspect();if("fulfilled"===e.state)return e.value}return t}function h(t){return t instanceof l}function v(t){var e;return(e=t)===Object(e)&&"function"==typeof t.then}function y(){Q.length=0,F.length=0,G||(G=!0)}function m(e){var n,r,o=l({when:function(n){return n&&function e(n){if(G){var r=z(F,n);-1!==r&&("object"==typeof t&&"function"==typeof t.emit&&a.nextTick.runAfter(function(){var e=z(B,n);-1!==e&&(t.emit("rejectionHandled",Q[r],n),B.splice(e,1))}),F.splice(r,1),Q.splice(r,1))}}(this),n?n(e):this}},function(){return this},function(){return{state:"rejected",reason:e}});return n=o,r=e,G&&("object"==typeof t&&"function"==typeof t.emit&&a.nextTick.runAfter(function(){-1!==z(F,n)&&(t.emit("unhandledRejection",r,n),B.push(n))}),F.push(n),r&&void 0!==r.stack?Q.push(r.stack):Q.push("(no stack) "+r)),o}function $(t){return l({when:function(){return t},get:function(e){return t[e]},set:function(e,n){t[e]=n},delete:function(e){delete t[e]},post:function(e,n){return null==e?t.apply(void 0,n):t[e].apply(t,n)},apply:function(e,n){return t.apply(e,n)},keys:function(){return q(t)}},void 0,function(){return{state:"fulfilled",value:t}})}function g(t,e,n){return a(t).spread(e,n)}function b(t,e,n){return a(t).dispatch(e,n)}function k(t){return p(t,function(t){var e=0,n=c();return L(t,function(r,o,i){var u;h(o)&&"fulfilled"===(u=o.inspect()).state?t[i]=u.value:(++e,p(o,function(r){t[i]=r,0==--e&&n.resolve(t)},n.reject,function(t){n.notify({index:i,value:t})}))},void 0),0===e&&n.resolve(t),n.promise})}function _(t){if(0===t.length)return a.resolve();var e=a.defer(),n=0;return L(t,function(r,o,i){var u=t[i];n++,p(u,function t(n){e.resolve(n)},function t(r){0==--n&&(r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,e.reject(r))},function t(n){e.notify({index:i,value:n})})},void 0),e.promise}function w(t){return p(t,function(t){return t=S(t,a),p(k(S(t,function(t){return p(t,R,R)})),function(){return t})})}var x=!1;try{throw Error()}catch(E){x=!!E.stack}var j,T,C=u(),R=function(){},O=function(){function e(){for(var t,e;r.next;)t=(r=r.next).task,r.task=void 0,(e=r.domain)&&(r.domain=void 0,e.enter()),n(t,e);for(;c.length;)n(t=c.pop());i=!1}function n(t,n){try{t()}catch(r){if(a)throw n&&n.exit(),setTimeout(e,0),n&&n.enter(),r;setTimeout(function(){throw r},0)}n&&n.exit()}var r={task:void 0,next:null},o=r,i=!1,u=void 0,a=!1,c=[];if(O=function(e){o=o.next={task:e,domain:a&&t.domain,next:null},i||(i=!0,u())},"object"==typeof t&&"[object process]"===t.toString()&&t.nextTick)a=!0,u=function(){t.nextTick(e)};else if("function"==typeof setImmediate)u="undefined"!=typeof window?setImmediate.bind(window,e):function(){setImmediate(e)};else if("undefined"!=typeof MessageChannel){var s=new MessageChannel;s.port1.onmessage=function(){u=f,s.port1.onmessage=e,e()};var f=function(){s.port2.postMessage(0)};u=function(){setTimeout(e,0),f()}}else u=function(){setTimeout(e,0)};return O.runAfter=function(t){c.push(t),i||(i=!0,u())},O}(),M=Function.call,P=e(Array.prototype.slice),L=e(Array.prototype.reduce||function(t,e){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){e=this[n++];break}if(++n>=r)throw TypeError()}for(;n<r;n++)n in this&&(e=t(e,this[n],n));return e}),z=e(Array.prototype.indexOf||function(t){for(var e=0;e<this.length;e++)if(this[e]===t)return e;return -1}),S=e(Array.prototype.map||function(t,e){var n=this,r=[];return L(n,function(o,i,u){r.push(t.call(e,i,u,n))},void 0),r}),H=Object.create||function(t){function e(){}return e.prototype=t,new e},U=Object.defineProperty||function(t,e,n){return t[e]=n.value,t},A=e(Object.prototype.hasOwnProperty),q=Object.keys||function(t){var e=[];for(var n in t)A(t,n)&&e.push(n);return e},D=e(Object.prototype.toString);T="undefined"!=typeof ReturnValue?ReturnValue:function(t){this.value=t};var I="From previous event:";a.resolve=a,a.nextTick=O,a.longStackSupport=!1;var N=1;"object"==typeof t&&t&&t.env&&t.env.Q_DEBUG&&(a.longStackSupport=!0),a.defer=c,c.prototype.makeNodeResolver=function(){var t=this;return function(e,n){e?t.reject(e):arguments.length>2?t.resolve(P(arguments,1)):t.resolve(n)}},a.Promise=s,a.promise=s,s.race=f,s.all=k,s.reject=m,s.resolve=a,a.passByCopy=function(t){return t},l.prototype.passByCopy=function(){return this},a.join=function(t,e){return a(t).join(e)},l.prototype.join=function(t){return a([this,t]).spread(function(t,e){if(t===e)return t;throw Error("Q can't join: not the same: "+t+" "+e)})},a.race=f,l.prototype.race=function(){return this.then(a.race)},a.makePromise=l,l.prototype.toString=function(){return"[object Promise]"},l.prototype.then=function(t,e,r){var o=this,i=c(),u=!1;return a.nextTick(function(){o.promiseDispatch(function(e){u||(u=!0,i.resolve(function e(n){try{return"function"==typeof t?t(n):n}catch(r){return m(r)}}(e)))},"when",[function(t){u||(u=!0,i.resolve(function t(r){if("function"==typeof e){n(r,o);try{return e(r)}catch(i){return m(i)}}return m(r)}(t)))},])}),o.promiseDispatch(void 0,"when",[void 0,function(t){var e,n,o=!1;try{n=(e=t,"function"==typeof r?r(e):e)}catch(u){if(o=!0,!a.onerror)throw u;a.onerror(u)}o||i.notify(n)},]),i.promise},a.tap=function(t,e){return a(t).tap(e)},l.prototype.tap=function(t){return t=a(t),this.then(function(e){return t.fcall(e).thenResolve(e)})},a.when=p,l.prototype.thenResolve=function(t){return this.then(function(){return t})},a.thenResolve=function(t,e){return a(t).thenResolve(e)},l.prototype.thenReject=function(t){return this.then(function(){throw t})},a.thenReject=function(t,e){return a(t).thenReject(e)},a.nearer=d,a.isPromise=h,a.isPromiseAlike=v,a.isPending=function t(e){return h(e)&&"pending"===e.inspect().state},l.prototype.isPending=function(){return"pending"===this.inspect().state},a.isFulfilled=function t(e){return!h(e)||"fulfilled"===e.inspect().state},l.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},a.isRejected=function t(e){return h(e)&&"rejected"===e.inspect().state},l.prototype.isRejected=function(){return"rejected"===this.inspect().state};var W,Q=[],F=[],B=[],G=!0;a.resetUnhandledRejections=y,a.getUnhandledReasons=function(){return Q.slice()},a.stopUnhandledRejectionTracking=function(){y(),G=!1},y(),a.reject=m,a.fulfill=$,a.master=function t(e){return l({isDef:function(){}},function(t,n){return b(e,t,n)},function(){return a(e).inspect()})},a.spread=g,l.prototype.spread=function(t,e){return this.all().then(function(e){return t.apply(void 0,e)},e)},a.async=function t(e){return function(){function t(t,e){var i,u;if("undefined"==typeof StopIteration){try{i=n[t](e)}catch(c){return m(c)}return i.done?a(i.value):p(i.value,r,o)}try{i=n[t](e)}catch(s){return"[object StopIteration]"===D(u=s)||u instanceof T?a(s.value):m(s)}return p(i,r,o)}var n=e.apply(this,arguments),r=t.bind(t,"next"),o=t.bind(t,"throw");return r()}},a.spawn=function t(e){a.done(a.async(e)())},a.return=function t(e){throw new T(e)},a.promised=function t(e){return function(){return g([this,k(arguments)],function(t,n){return e.apply(t,n)})}},a.dispatch=b,l.prototype.dispatch=function(t,e){var n=this,r=c();return a.nextTick(function(){n.promiseDispatch(r.resolve,t,e)}),r.promise},a.get=function(t,e){return a(t).dispatch("get",[e])},l.prototype.get=function(t){return this.dispatch("get",[t])},a.set=function(t,e,n){return a(t).dispatch("set",[e,n])},l.prototype.set=function(t,e){return this.dispatch("set",[t,e])},a.del=a.delete=function(t,e){return a(t).dispatch("delete",[e])},l.prototype.del=l.prototype.delete=function(t){return this.dispatch("delete",[t])},a.mapply=a.post=function(t,e,n){return a(t).dispatch("post",[e,n])},l.prototype.mapply=l.prototype.post=function(t,e){return this.dispatch("post",[t,e])},a.send=a.mcall=a.invoke=function(t,e){return a(t).dispatch("post",[e,P(arguments,2)])},l.prototype.send=l.prototype.mcall=l.prototype.invoke=function(t){return this.dispatch("post",[t,P(arguments,1)])},a.fapply=function(t,e){return a(t).dispatch("apply",[void 0,e])},l.prototype.fapply=function(t){return this.dispatch("apply",[void 0,t])},a.try=a.fcall=function(t){return a(t).dispatch("apply",[void 0,P(arguments,1)])},l.prototype.fcall=function(){return this.dispatch("apply",[void 0,P(arguments)])},a.fbind=function(t){var e=a(t),n=P(arguments,1);return function(){return e.dispatch("apply",[this,n.concat(P(arguments))])}},l.prototype.fbind=function(){var t=this,e=P(arguments);return function(){return t.dispatch("apply",[this,e.concat(P(arguments))])}},a.keys=function(t){return a(t).dispatch("keys",[])},l.prototype.keys=function(){return this.dispatch("keys",[])},a.all=k,l.prototype.all=function(){return k(this)},a.any=_,l.prototype.any=function(){return _(this)},a.allResolved=(W=w,function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn("allResolved is deprecated, use allSettled instead.",Error("").stack),W.apply(W,arguments)}),l.prototype.allResolved=function(){return w(this)},a.allSettled=function t(e){return a(e).allSettled()},l.prototype.allSettled=function(){return this.then(function(t){return k(S(t,function(t){function e(){return t.inspect()}return(t=a(t)).then(e,e)}))})},a.fail=a.catch=function(t,e){return a(t).then(void 0,e)},l.prototype.fail=l.prototype.catch=function(t){return this.then(void 0,t)},a.progress=function t(e,n){return a(e).then(void 0,void 0,n)},l.prototype.progress=function(t){return this.then(void 0,void 0,t)},a.fin=a.finally=function(t,e){return a(t).finally(e)},l.prototype.fin=l.prototype.finally=function(t){if(!t||"function"!=typeof t.apply)throw Error("Q can't apply finally callback");return t=a(t),this.then(function(e){return t.fcall().then(function(){return e})},function(e){return t.fcall().then(function(){throw e})})},a.done=function(t,e,n,r){return a(t).done(e,n,r)},l.prototype.done=function(e,r,o){var i=function(t){a.nextTick(function(){if(n(t,u),!a.onerror)throw t;a.onerror(t)})},u=e||r||o?this.then(e,r,o):this;"object"==typeof t&&t&&t.domain&&(i=t.domain.bind(i)),u.then(void 0,i)},a.timeout=function(t,e,n){return a(t).timeout(e,n)},l.prototype.timeout=function(t,e){var n=c(),r=setTimeout(function(){e&&"string"!=typeof e||((e=Error(e||"Timed out after "+t+" ms")).code="ETIMEDOUT"),n.reject(e)},t);return this.then(function(t){clearTimeout(r),n.resolve(t)},function(t){clearTimeout(r),n.reject(t)},n.notify),n.promise},a.delay=function(t,e){return void 0===e&&(e=t,t=void 0),a(t).delay(e)},l.prototype.delay=function(t){return this.then(function(e){var n=c();return setTimeout(function(){n.resolve(e)},t),n.promise})},a.nfapply=function(t,e){return a(t).nfapply(e)},l.prototype.nfapply=function(t){var e=c(),n=P(t);return n.push(e.makeNodeResolver()),this.fapply(n).fail(e.reject),e.promise},a.nfcall=function(t){var e=P(arguments,1);return a(t).nfapply(e)},l.prototype.nfcall=function(){var t=P(arguments),e=c();return t.push(e.makeNodeResolver()),this.fapply(t).fail(e.reject),e.promise},a.nfbind=a.denodeify=function(t){if(void 0===t)throw Error("Q can't wrap an undefined function");var e=P(arguments,1);return function(){var n=e.concat(P(arguments)),r=c();return n.push(r.makeNodeResolver()),a(t).fapply(n).fail(r.reject),r.promise}},l.prototype.nfbind=l.prototype.denodeify=function(){var t=P(arguments);return t.unshift(this),a.denodeify.apply(void 0,t)},a.nbind=function(t,e){var n=P(arguments,2);return function(){var r=n.concat(P(arguments)),o=c();return r.push(o.makeNodeResolver()),a(function n(){return t.apply(e,arguments)}).fapply(r).fail(o.reject),o.promise}},l.prototype.nbind=function(){var t=P(arguments,0);return t.unshift(this),a.nbind.apply(void 0,t)},a.nmapply=a.npost=function(t,e,n){return a(t).npost(e,n)},l.prototype.nmapply=l.prototype.npost=function(t,e){var n=P(e||[]),r=c();return n.push(r.makeNodeResolver()),this.dispatch("post",[t,n]).fail(r.reject),r.promise},a.nsend=a.nmcall=a.ninvoke=function(t,e){var n=P(arguments,2),r=c();return n.push(r.makeNodeResolver()),a(t).dispatch("post",[e,n]).fail(r.reject),r.promise},l.prototype.nsend=l.prototype.nmcall=l.prototype.ninvoke=function(t){var e=P(arguments,1),n=c();return e.push(n.makeNodeResolver()),this.dispatch("post",[t,e]).fail(n.reject),n.promise},a.nodeify=function t(e,n){return a(e).nodeify(n)},l.prototype.nodeify=function(t){if(!t)return this;this.then(function(e){a.nextTick(function(){t(null,e)})},function(e){a.nextTick(function(){t(e)})})},a.noConflict=function(){throw Error("Q.noConflict only works when Q is used as a global")};var Z=u();return a})}).call(this,t("_process"))},{_process:1},],3:[function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};e.exports=function(t,e,n,o){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(o){var i=encodeURIComponent(r(o))+n;return Array.isArray(t[o])?t[o].map(function(t){return i+encodeURIComponent(r(t))}).join(e):i+encodeURIComponent(r(t[o]))}).join(e):o?encodeURIComponent(r(o))+n+encodeURIComponent(r(t)):""}},{},],4:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return d.default.information("zip:checkout:init"),v.default.Promise(function(e,n){return t.onCheckout(e,n,{})}).then(function(r){var o=r.redirect_uri||r.redirectUri||r.data&&(r.data.redirect_uri||r.data.redirectUri);if(!o)return d.default.debug("zip:checkout:error","Response does not contain redirectUri property"),n(r),void t.onError({code:"checkout_error",message:"The response does not contain the redirectUri property",detail:r});d.default.debug("zip:checkout:success",r),e({redirectUri:o})}).catch(function(e){d.default.debug("zip:checkout:error",e),n(e),t.onError({code:"checkout_error",message:"Checkout response error",detail:e})})}Object.defineProperty(n,"__esModule",{value:!0}),n.Checkout=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=t("./modal"),a=r(u),c=t("./options"),s=r(c),f=t("./utility"),l=r(f),p=t("./console"),d=r(p),h=(t("./events"),t("q")),v=r(h),y=function(){function t(){!function t(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,t)}return i(t,null,[{key:"init",value:function(t){if("function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw TypeError("Cannot convert undefined or null to object");t=Object(t);for(var e=1;e<arguments.length;e++){var n=arguments[e];if(null!=n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}),t=Object.assign({},s.default,t),!this._validate(t)){var e,n;return d.default.setLevel(t.logLevel),t.redirect?o(t,function(e){return t.redirectFn(e.redirectUri)}):(e=t,void((n=new a.default).onClose=e.onComplete.bind(e),n.build(),o(e,function(t){return n.setUri(t.redirectUri)},function(t){return n.close(!1)})))}}},{key:"attachButton",value:function(t,e){var n=document.querySelectorAll(t);if(!n.length)return config.onError({code:"attach_error",message:"Cannot find button to attach zipMoney checkout"});for(var r=0;r<n.length;r++)l.default.addEventHandler(n[r],"click",function(){return Zip.Checkout.init(e)})}},{key:"_validate",value:function(t){return 0>["error","information","debug"].indexOf(t.logLevel.toLowerCase())&&(t.logLevel="error"),0>["standard","express"].indexOf(t.request.toLowerCase())&&(t.request="standard"),t.onComplete=t.onComplete||function(){},t.onError=t.onError||function(){},t.checkoutUri||t.onCheckout!==s.default.onCheckout?"express"===t.request?t.onError({code:"not_implemented",message:"This feature is not yet implemented"}):t.redirect?void 0:t.onComplete!==s.default.onComplete||t.redirectUri?void 0:t.onError({code:"validation",message:"if onComplete function is not specified then redirectUri must be specified"}):t.onError({code:"validation",message:"if onCheckout function is not specified then checkoutUri must be specified"})}},]),t}();n.Checkout=y},{"./console":5,"./events":6,"./modal":8,"./options":9,"./utility":10,q:2},],5:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r="error";n.default={error:function(){var t;(t=window.console).log.apply(t,arguments)},information:function(){if("error"!==r){var t;(t=window.console).log.apply(t,arguments)}},debug:function(){if("debug"===r){var t;(t=window.console).log.apply(t,arguments)}},setLevel:function(t){r=t}}},{},],6:[function(t,e,n){(function(e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.EventListener=void 0;var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();if(((r=t("./utility"))&&r.__esModule?r:{default:r}).default.isIe){var i=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n};i.prototype=e.Event.prototype,e.CustomEvent=i}var u={},a=n.EventListener=function(){function t(){!function t(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,t)}return o(t,null,[{key:"constructor",value:function(){u={}}},{key:"on",value:function(t,e){u[t]=e}},{key:"off",value:function(t){u[t]=null}},]),t}();a.Event=function(t,e){this.eventType=t,this.data=e||{}},a.Event.eventTypes={resize:"resize",transition:"transition",close:"close",complete:"complete",clear:"clear"};var c=window.addEventListener?"addEventListener":"attachEvent",s=window[c];s("attachEvent"==c?"onmessage":"message",function(t){var n,r;t.data.zipmoney&&(n=t.data.msg,r=new e.CustomEvent("zipmoney",{detail:n}),e.dispatchEvent(r))},!1),s("zipmoney",function(t){var e,n=u[t.detail.eventType];n?n(t.detail.data||{}):(e=t,console.log("Unexpected Event",e))},!1)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./utility":10},],7:[function(t,e,n){(function(e){"use strict";var n=t("./checkout"),r=t("./events");e.Zip=e.Zip||{},e.Zip.Checkout=n.Checkout,e.zipMoneyEvent=r.EventListener.ZipEvent}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./checkout":4,"./events":6},],8:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(){return Math.max(document.documentElement.clientHeight,window.innerHeight||0)}function i(){var t=document.body,e=document.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight)}function u(t){for(var e=document.querySelectorAll("html, body"),n=0;n<e.length;n++)e[n].style.overflowY=t}function a(t){var e=document.body.currentStyle||window.getComputedStyle(document.body),n=document.body.offsetHeight,r=parseInt(e.marginTop,10)+parseInt(e.marginBottom,10),o=n+r-parseInt(e.height,10);document.body.style.height=t-o+"px"}Object.defineProperty(n,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=t("./utility"),f=r(s),l=t("./events"),p=t("./console"),d=(r(p),{iframeWidth:400,iframeMinWidth:320,iframeInitialHeight:704,iframeMinHeight:600,verticalMargin:35}),h=["resize","transition","close","complete","clear"],v="https://d3k1w8lx8mqizo.cloudfront.net/zm/",y=function(){function t(){var e=this;(function t(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")})(this,t),this._events=[],this._isMobile=f.default.isMobileDevice(),h.forEach(function(t){return l.EventListener.on(l.EventListener.Event.eventTypes[t],e[t].bind(e))})}return c(t,[{key:"build",value:function(){this._initialHtmlHeight=i(),window.scrollTo(0,0);var t=this._frame=(e=this._frameUri,n=this._isMobile,(r=document.createElement("iframe")).id="zipmoney-iframe",r.frameborder=0,Object.assign(r.style,{padding:"0",border:"none",zIndex:"999999",backgroundColor:"#FFF",backgroundImage:"url("+v+"spinner.gif)",backgroundRepeat:"no-repeat",backgroundPosition:"50% 50%"}),n?Object.assign(r.style,{overflow:"scroll",width:"100%",height:"100%",position:"absolute",top:"0",bottom:"0",left:"0",right:"0",margin:"0"}):Object.assign(r.style,{width:d.iframeWidth+"px",minWidth:d.iframeMinWidth+"px",height:d.iframeInitialHeight+"px",margin:d.verticalMargin+"px auto 0 auto",display:"table-row",backgroundSize:"25%",textAlign:"center",boxShadow:"0px 0px 70px 0px rgb(0, 0, 0)"}),r.src=e||"",r);if(!this._isMobile){var e,n,r,o,c,s=((o=document.createElement("img")).src=v+"icon-close.png",Object.assign(o.style,{width:"50px",height:"50px",position:"absolute",top:"20px",right:"20px",cursor:"pointer"}),o);s.onclick=this.close.bind(this),this._overlay=((c=document.createElement("div")).className="zipmoney-overlay",Object.assign(c.style,{position:"absolute",left:"0",top:"0",display:"table-cell",textAlign:"center",verticalAlign:"middle",background:"rgba(0, 0, 0, 0.75)",zIndex:"10000",height:"100%",width:"100%"}),c),this._overlay.appendChild(s),this._overlay.appendChild(this._frame),t=this._overlay}document.body.appendChild(t),this._isMobile&&a(this._frame.offsetHeight),u("auto"),this._startMonitoringWindowResize()}},{key:"setUri",value:function(t){this._frameUri=t,this._frame&&(this._frame.src=t)}},{key:"resize",value:function(t){var e=this._isMobile?16:0,t=t>=d.iframeMinHeight?t:d.iframeMinHeight,n=(t+=e)+2*d.verticalMargin,r=o();this._frame.style.height=t+"px",this._overlay&&(this._overlay.style.height=Math.max(r,this._initialHtmlHeight,n)+"px"),this._isMobile&&a(t)}},{key:"transition",value:function(){window.scroll(0,0)}},{key:"close",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e={state:"cancelled"};this._events.length&&(e=this._events.pop()),this._destroy(),this.onClose&&t&&this.onClose(e)}},{key:"complete",value:function(t){this._events.push(t)}},{key:"clear",value:function(t){this._events=[]}},{key:"_startMonitoringWindowResize",value:function(){var t=this;this._resizeHandler=f.default.debounce(function(){var e,n,r,u;return e=t,n=o(),r=i(),u=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,void(e._overlay&&(e._overlay.style.height=Math.max(n,r)+"px"),e._isMobile||u<d.iframeWidth?e._frame.style.width="100%":e._frame.style.width=d.iframeWidth+"px")},250),f.default.addEventHandler(window,"resize",this._resizeHandler)}},{key:"_stopMonitoringWindowResize",value:function(){f.default.removeEventHandler(window,"resize",this._resizeHandler)}},{key:"_destroy",value:function(){this._stopMonitoringWindowResize(),this._overlay?document.body.removeChild(this._overlay):document.body.removeChild(this._frame),this._isMobile&&(document.body.style.height="initial"),u("initial"),this._overlay=this._frame=null,h.forEach(function(t){return l.EventListener.off(l.EventListener.Event.eventTypes[t])})}},]),t}();n.default=y},{"./console":5,"./events":6,"./utility":10},],9:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var o=t("./xr"),i=r(o),u=t("./console"),a=r(u);i.default.configure({headers:{"X-Requested-With":"XMLHttpRequest"}}),n.default={request:"standard",redirect:!1,logLevel:"Error",onCheckout:function(t,e,n){i.default.post(this.checkoutUri).then(function(e){return t(e.data)}).catch(e)},onShippingAddressChanged:function(t,e,n){i.default.post(this.shippingUri).then(t).catch(e)},onComplete:function(t){if(a.default.information("zip:completed",t),"cancelled"!==t.state){var e=t.checkoutId?"&checkoutId="+t.checkoutId:"";this.redirectFn(this.redirectUri+"?result="+t.state+e)}},onError:function(t){a.default.error(t)},redirectFn:function(t){window.location.href=t}}},{"./console":5,"./xr":11},],10:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(){!function t(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"isIe",value:function(){var t=-1,e=window.navigator.userAgent,n=e.indexOf("MSIE "),r=e.indexOf("Trident/");if(n>0)t=parseInt(e.substring(n+5,e.indexOf(".",n)),10);else if(r>0){var o=e.indexOf("rv:");t=parseInt(e.substring(o+3,e.indexOf(".",o)),10)}return t>-1?t:void 0}},{key:"isMobileDevice",value:function(){var t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4))}},{key:"debounce",value:function(t,e){var n;return function(){var r=this,o=arguments,i=function(){n=null,t.apply(r,o)},u=!n;clearTimeout(n),n=setTimeout(i,e),u&&t.apply(r,o)}}},{key:"addEventHandler",value:function(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent("on"+e,n)}},{key:"removeEventHandler",value:function(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent&&t.detachEvent("on"+e,n)}},]),t}();n.default=o},{},],11:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){return{status:t.status,response:t.response,data:e,xhr:t}}function i(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(var o in n)if(({}).hasOwnProperty.call(n,o)){var i=n[o];if("object"===(void 0===i?"undefined":a(i)))for(var u in i)({}).hasOwnProperty.call(i,u)&&(t[u]=i[u])}return t}function u(t){var e,n;return e=t,n=function(e,n){var r=i({},h,v,t),u=r.xmlHttpRequest();for(var c in r.abort&&t.abort(function(){n(o(u)),u.abort()}),u.open(r.method,r.params?r.url.split("?")[0]+"?"+(0,s.default)(r.params):r.url,!0),u.withCredentials=r.withCredentials,u.addEventListener(d.LOAD,function(){if(u.status>=200&&u.status<300){var t=null;u.responseText&&(t=!0===r.raw?u.responseText:r.load(u.responseText)),e(o(u,t))}else n(o(u))}),u.addEventListener(d.ABORT,function(){return n(o(u))}),u.addEventListener(d.ERROR,function(){return n(o(u))}),u.addEventListener(d.TIMEOUT,function(){return n(o(u))}),r.headers)({}).hasOwnProperty.call(r.headers,c)&&u.setRequestHeader(c,r.headers[c]);for(var f in r.events)({}).hasOwnProperty.call(r.events,f)&&u.addEventListener(f,r.events[f].bind(null,u),!1);var l="object"!==a(r.data)||r.raw?r.data:r.dump(r.data);void 0!==l?u.send(l):u.send()},(e&&e.promise?e.promise:v.promise||h.promise)(n)}Object.defineProperty(n,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c=t("querystring/encode"),s=r(c),f=t("q"),l=r(f),p={GET:"GET",POST:"POST",PUT:"PUT",DELETE:"DELETE",PATCH:"PATCH",OPTIONS:"OPTIONS"},d={READY_STATE_CHANGE:"readystatechange",LOAD_START:"loadstart",PROGRESS:"progress",ABORT:"abort",ERROR:"error",LOAD:"load",TIMEOUT:"timeout",LOAD_END:"loadend"},h={method:p.GET,data:void 0,headers:{Accept:"application/json","Content-Type":"application/json"},dump:JSON.stringify,load:JSON.parse,xmlHttpRequest:function(){return new XMLHttpRequest},promise:function(t){return l.default.Promise(t)},withCredentials:!1},v={};u.assign=i,u.encode=s.default,u.configure=function t(e){v=i({},v,e)},u.Methods=p,u.Events=d,u.defaults=h,u.get=function(t,e,n){return u(i({url:t,method:p.GET,params:e},n))},u.put=function(t,e,n){return u(i({url:t,method:p.PUT,data:e},n))},u.post=function(t,e,n){return u(i({url:t,method:p.POST,data:e},n))},u.patch=function(t,e,n){return u(i({url:t,method:p.PATCH,data:e},n))},u.del=function(t,e){return u(i({url:t,method:p.DELETE},e))},u.options=function(t,e){return u(i({url:t,method:p.OPTIONS},e))},n.default=u},{q:2,"querystring/encode":3},]},{},[7]);
package/widget.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './lib/widget';
package/widget.js DELETED
@@ -1 +0,0 @@
1
- export * from './lib/widget';