@amwaljs/checkout-button 0.3.0 → 0.3.2

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 (2327) hide show
  1. package/README.md +1 -1
  2. package/dist/checkout/checkout.esm.js +1 -1
  3. package/dist/checkout/p-00045a8c.entry.js +1 -0
  4. package/dist/checkout/p-01bbe74f.entry.js +1 -0
  5. package/dist/checkout/p-051412fa.entry.js +1 -0
  6. package/dist/checkout/p-09cbe586.entry.js +4 -0
  7. package/dist/checkout/p-0a85a01f.entry.js +7 -0
  8. package/dist/checkout/p-0bbfeb3c.entry.js +1 -0
  9. package/dist/checkout/{p-a09d1040.entry.js → p-0d96b482.entry.js} +1 -1
  10. package/dist/checkout/p-0f03cd28.js +4 -0
  11. package/dist/checkout/p-104d7733.entry.js +1 -0
  12. package/dist/checkout/p-10ad151a.entry.js +14 -0
  13. package/dist/checkout/p-112455b1.js +1 -0
  14. package/dist/checkout/p-11beffea.entry.js +1 -0
  15. package/dist/checkout/p-13245fd4.js +1 -0
  16. package/dist/checkout/p-13741a94.entry.js +1 -0
  17. package/dist/checkout/p-14ea2c82.entry.js +1 -0
  18. package/dist/checkout/p-167dc7a7.entry.js +4 -0
  19. package/dist/checkout/p-1a749b59.entry.js +1 -0
  20. package/dist/checkout/p-1c718939.entry.js +1 -0
  21. package/dist/checkout/p-1cbb13f2.entry.js +1 -0
  22. package/dist/checkout/p-20df5234.entry.js +1 -0
  23. package/dist/checkout/p-24068b1c.entry.js +1 -0
  24. package/dist/checkout/p-28ccecc7.entry.js +4 -0
  25. package/dist/checkout/p-361649c3.js +4 -0
  26. package/dist/checkout/p-39ad94cf.js +4 -0
  27. package/dist/checkout/p-3b75b22a.js +5 -0
  28. package/dist/checkout/p-3b80783d.js +8 -0
  29. package/dist/checkout/p-3d3eefc3.js +4 -0
  30. package/dist/checkout/p-3e1e3453.js +4 -0
  31. package/dist/checkout/p-3e681e57.js +4 -0
  32. package/dist/checkout/p-3e8da476.entry.js +4 -0
  33. package/dist/checkout/p-4028c0d2.entry.js +1 -0
  34. package/dist/checkout/p-44c91c42.entry.js +1 -0
  35. package/dist/checkout/p-464f5a60.entry.js +1 -0
  36. package/dist/checkout/p-46b7ee7f.entry.js +1 -0
  37. package/dist/checkout/p-48784250.entry.js +1 -0
  38. package/dist/checkout/p-4be20bf2.js +7 -0
  39. package/dist/checkout/p-4f78d3a0.js +4 -0
  40. package/dist/checkout/p-529bce3f.entry.js +1 -0
  41. package/dist/{components/p-pUVFzc0m.js → checkout/p-536a0294.js} +2 -2
  42. package/dist/checkout/p-5eecd5ef.entry.js +1 -0
  43. package/dist/checkout/p-64257c8d.entry.js +1 -0
  44. package/dist/checkout/p-64bd1dd3.entry.js +1 -0
  45. package/dist/checkout/p-68a4caba.entry.js +1 -0
  46. package/dist/checkout/p-69242ed6.entry.js +1 -0
  47. package/dist/checkout/p-6d886d7e.entry.js +1 -0
  48. package/dist/checkout/p-6fa979e3.js +4 -0
  49. package/dist/checkout/p-6fb474f3.entry.js +1 -0
  50. package/dist/checkout/p-77104220.js +7 -0
  51. package/dist/checkout/p-79ec3e4b.entry.js +1 -0
  52. package/dist/checkout/p-7b51bf67.entry.js +7 -0
  53. package/dist/checkout/p-7f0004c9.js +4 -0
  54. package/dist/checkout/p-7fe50ab4.entry.js +1 -0
  55. package/dist/checkout/p-880b451c.entry.js +4 -0
  56. package/dist/checkout/p-886dad62.entry.js +1 -0
  57. package/dist/checkout/p-886e8746.entry.js +1 -0
  58. package/dist/checkout/p-88abdf59.js +4 -0
  59. package/dist/checkout/p-8a97a411.entry.js +1 -0
  60. package/dist/checkout/p-8af3c6cc.entry.js +1 -0
  61. package/dist/checkout/{p-4de3b067.entry.js → p-8c022f5d.entry.js} +1 -1
  62. package/dist/checkout/p-91855eae.entry.js +1 -0
  63. package/dist/checkout/{p-733767d9.entry.js → p-9185e55b.entry.js} +1 -1
  64. package/dist/checkout/p-926eda98.entry.js +1 -0
  65. package/dist/checkout/p-93e5b313.entry.js +4 -0
  66. package/dist/checkout/p-97024acb.entry.js +1 -0
  67. package/dist/checkout/p-99e447f9.js +1 -0
  68. package/dist/{components/p-BgOwfqIY.js → checkout/p-9b519de5.js} +2 -2
  69. package/dist/checkout/p-9b65a6e5.entry.js +1 -0
  70. package/dist/checkout/p-9cc1fdfb.entry.js +1 -0
  71. package/dist/checkout/{p-0363331c.entry.js → p-9f26fb71.entry.js} +1 -1
  72. package/dist/checkout/p-9f41a631.entry.js +1 -0
  73. package/dist/checkout/p-a2ce8858.entry.js +1 -0
  74. package/dist/checkout/p-a3fca65c.entry.js +1 -0
  75. package/dist/checkout/p-a6056eb1.entry.js +4 -0
  76. package/dist/checkout/p-a7b2cbb9.entry.js +1 -0
  77. package/dist/checkout/p-ab16e6ce.js +5 -0
  78. package/dist/checkout/{p-68738638.entry.js → p-ab9a18c4.entry.js} +1 -1
  79. package/dist/checkout/p-b038db20.js +4 -0
  80. package/dist/checkout/p-b2289937.js +7 -0
  81. package/dist/checkout/p-b4ad8642.entry.js +1 -0
  82. package/dist/checkout/p-b4cf78ad.entry.js +1 -0
  83. package/dist/checkout/p-b7be2ec0.js +4 -0
  84. package/dist/checkout/p-b84d9e44.js +4 -0
  85. package/dist/checkout/p-b8fdd517.js +1 -0
  86. package/dist/checkout/{p-418e3312.entry.js → p-b9d8ab12.entry.js} +1 -1
  87. package/dist/checkout/p-bb1f698e.js +4 -0
  88. package/dist/{components/p-BYPhePqa.js → checkout/p-bd17be25.js} +2 -2
  89. package/dist/checkout/p-bd4df0bc.entry.js +1 -0
  90. package/dist/checkout/p-c152bdea.js +4 -0
  91. package/dist/checkout/{p-DQmRrrcF.js → p-c30e2b28.js} +2 -2
  92. package/dist/checkout/p-c61a3d5d.entry.js +1 -0
  93. package/dist/checkout/p-c6ee4bb6.entry.js +1 -0
  94. package/dist/checkout/p-c771a565.entry.js +1 -0
  95. package/dist/checkout/p-c82b2823.entry.js +1 -0
  96. package/dist/checkout/p-c8f7d1b5.entry.js +1 -0
  97. package/dist/checkout/p-ceef30cd.entry.js +1 -0
  98. package/dist/checkout/p-d5733333.entry.js +1 -0
  99. package/dist/checkout/p-d5bba69c.entry.js +1 -0
  100. package/dist/checkout/p-d60b2328.js +4 -0
  101. package/dist/checkout/p-d60e05e2.entry.js +1 -0
  102. package/dist/checkout/p-d6b04157.entry.js +1 -0
  103. package/dist/checkout/p-d7a430bf.js +2 -0
  104. package/dist/checkout/{p-B3WORC1a.js → p-d839c693.js} +1 -1
  105. package/dist/checkout/p-d9dfb3ae.entry.js +7 -0
  106. package/dist/checkout/p-dc51d318.js +5 -0
  107. package/dist/checkout/p-ddbe30b8.entry.js +1 -0
  108. package/dist/checkout/p-de418dd1.entry.js +1 -0
  109. package/dist/checkout/p-defa5f72.entry.js +4 -0
  110. package/dist/checkout/p-df0fa5e1.entry.js +7 -0
  111. package/dist/checkout/p-e0f073f1.entry.js +7 -0
  112. package/dist/checkout/p-e187a77c.js +4 -0
  113. package/dist/checkout/p-e237d611.entry.js +1 -0
  114. package/dist/checkout/p-ea71fb8d.entry.js +1 -0
  115. package/dist/checkout/p-eda93a0b.entry.js +1 -0
  116. package/dist/checkout/p-eee05053.entry.js +1 -0
  117. package/dist/checkout/{p-BTEOs1at.js → p-f728a68f.js} +1 -1
  118. package/dist/checkout/p-f8460dc4.entry.js +1 -0
  119. package/dist/checkout/p-f875507d.entry.js +1 -0
  120. package/dist/checkout/p-faf06441.js +4 -0
  121. package/dist/checkout/p-fb147065.entry.js +1 -0
  122. package/dist/checkout/p-fb45cdd1.entry.js +1 -0
  123. package/dist/checkout/svg/accessibility-outline.svg +1 -1
  124. package/dist/checkout/svg/accessibility-sharp.svg +1 -1
  125. package/dist/checkout/svg/accessibility.svg +1 -1
  126. package/dist/checkout/svg/add-circle-outline.svg +1 -1
  127. package/dist/checkout/svg/add-circle-sharp.svg +1 -1
  128. package/dist/checkout/svg/add-circle.svg +1 -1
  129. package/dist/checkout/svg/add-outline.svg +1 -1
  130. package/dist/checkout/svg/add-sharp.svg +1 -1
  131. package/dist/checkout/svg/add.svg +1 -1
  132. package/dist/checkout/svg/airplane-outline.svg +1 -1
  133. package/dist/checkout/svg/airplane-sharp.svg +1 -1
  134. package/dist/checkout/svg/airplane.svg +1 -1
  135. package/dist/checkout/svg/alarm-outline.svg +1 -1
  136. package/dist/checkout/svg/alarm-sharp.svg +1 -1
  137. package/dist/checkout/svg/alarm.svg +1 -1
  138. package/dist/checkout/svg/albums-outline.svg +1 -1
  139. package/dist/checkout/svg/albums-sharp.svg +1 -1
  140. package/dist/checkout/svg/albums.svg +1 -1
  141. package/dist/checkout/svg/alert-circle-outline.svg +1 -1
  142. package/dist/checkout/svg/alert-circle-sharp.svg +1 -1
  143. package/dist/checkout/svg/alert-circle.svg +1 -1
  144. package/dist/checkout/svg/alert-outline.svg +1 -1
  145. package/dist/checkout/svg/alert-sharp.svg +1 -1
  146. package/dist/checkout/svg/alert.svg +1 -1
  147. package/dist/checkout/svg/american-football-outline.svg +1 -1
  148. package/dist/checkout/svg/american-football-sharp.svg +1 -1
  149. package/dist/checkout/svg/american-football.svg +1 -1
  150. package/dist/checkout/svg/analytics-outline.svg +1 -1
  151. package/dist/checkout/svg/analytics-sharp.svg +1 -1
  152. package/dist/checkout/svg/analytics.svg +1 -1
  153. package/dist/checkout/svg/aperture-outline.svg +1 -1
  154. package/dist/checkout/svg/aperture-sharp.svg +1 -1
  155. package/dist/checkout/svg/aperture.svg +1 -1
  156. package/dist/checkout/svg/apps-outline.svg +1 -1
  157. package/dist/checkout/svg/apps-sharp.svg +1 -1
  158. package/dist/checkout/svg/apps.svg +1 -1
  159. package/dist/checkout/svg/archive-outline.svg +1 -1
  160. package/dist/checkout/svg/archive-sharp.svg +1 -1
  161. package/dist/checkout/svg/archive.svg +1 -1
  162. package/dist/checkout/svg/arrow-back-circle-outline.svg +1 -1
  163. package/dist/checkout/svg/arrow-back-circle-sharp.svg +1 -1
  164. package/dist/checkout/svg/arrow-back-circle.svg +1 -1
  165. package/dist/checkout/svg/arrow-back-outline.svg +1 -1
  166. package/dist/checkout/svg/arrow-back-sharp.svg +1 -1
  167. package/dist/checkout/svg/arrow-back.svg +1 -1
  168. package/dist/checkout/svg/arrow-down-circle-outline.svg +1 -1
  169. package/dist/checkout/svg/arrow-down-circle-sharp.svg +1 -1
  170. package/dist/checkout/svg/arrow-down-circle.svg +1 -1
  171. package/dist/checkout/svg/arrow-down-left-box-outline.svg +1 -1
  172. package/dist/checkout/svg/arrow-down-left-box-sharp.svg +1 -1
  173. package/dist/checkout/svg/arrow-down-left-box.svg +1 -1
  174. package/dist/checkout/svg/arrow-down-outline.svg +1 -1
  175. package/dist/checkout/svg/arrow-down-right-box-outline.svg +1 -1
  176. package/dist/checkout/svg/arrow-down-right-box-sharp.svg +1 -1
  177. package/dist/checkout/svg/arrow-down-right-box.svg +1 -1
  178. package/dist/checkout/svg/arrow-down-sharp.svg +1 -1
  179. package/dist/checkout/svg/arrow-down.svg +1 -1
  180. package/dist/checkout/svg/arrow-forward-circle-outline.svg +1 -1
  181. package/dist/checkout/svg/arrow-forward-circle-sharp.svg +1 -1
  182. package/dist/checkout/svg/arrow-forward-circle.svg +1 -1
  183. package/dist/checkout/svg/arrow-forward-outline.svg +1 -1
  184. package/dist/checkout/svg/arrow-forward-sharp.svg +1 -1
  185. package/dist/checkout/svg/arrow-forward.svg +1 -1
  186. package/dist/checkout/svg/arrow-redo-circle-outline.svg +1 -1
  187. package/dist/checkout/svg/arrow-redo-circle-sharp.svg +1 -1
  188. package/dist/checkout/svg/arrow-redo-circle.svg +1 -1
  189. package/dist/checkout/svg/arrow-redo-outline.svg +1 -1
  190. package/dist/checkout/svg/arrow-redo-sharp.svg +1 -1
  191. package/dist/checkout/svg/arrow-redo.svg +1 -1
  192. package/dist/checkout/svg/arrow-undo-circle-outline.svg +1 -1
  193. package/dist/checkout/svg/arrow-undo-circle-sharp.svg +1 -1
  194. package/dist/checkout/svg/arrow-undo-circle.svg +1 -1
  195. package/dist/checkout/svg/arrow-undo-outline.svg +1 -1
  196. package/dist/checkout/svg/arrow-undo-sharp.svg +1 -1
  197. package/dist/checkout/svg/arrow-undo.svg +1 -1
  198. package/dist/checkout/svg/arrow-up-circle-outline.svg +1 -1
  199. package/dist/checkout/svg/arrow-up-circle-sharp.svg +1 -1
  200. package/dist/checkout/svg/arrow-up-circle.svg +1 -1
  201. package/dist/checkout/svg/arrow-up-left-box-outline.svg +1 -1
  202. package/dist/checkout/svg/arrow-up-left-box-sharp.svg +1 -1
  203. package/dist/checkout/svg/arrow-up-left-box.svg +1 -1
  204. package/dist/checkout/svg/arrow-up-outline.svg +1 -1
  205. package/dist/checkout/svg/arrow-up-right-box-outline.svg +1 -1
  206. package/dist/checkout/svg/arrow-up-right-box-sharp.svg +1 -1
  207. package/dist/checkout/svg/arrow-up-right-box.svg +1 -1
  208. package/dist/checkout/svg/arrow-up-sharp.svg +1 -1
  209. package/dist/checkout/svg/arrow-up.svg +1 -1
  210. package/dist/checkout/svg/at-circle-outline.svg +1 -1
  211. package/dist/checkout/svg/at-circle-sharp.svg +1 -1
  212. package/dist/checkout/svg/at-circle.svg +1 -1
  213. package/dist/checkout/svg/at-outline.svg +1 -1
  214. package/dist/checkout/svg/at-sharp.svg +1 -1
  215. package/dist/checkout/svg/at.svg +1 -1
  216. package/dist/checkout/svg/attach-outline.svg +1 -1
  217. package/dist/checkout/svg/attach-sharp.svg +1 -1
  218. package/dist/checkout/svg/attach.svg +1 -1
  219. package/dist/checkout/svg/backspace-outline.svg +1 -1
  220. package/dist/checkout/svg/backspace-sharp.svg +1 -1
  221. package/dist/checkout/svg/backspace.svg +1 -1
  222. package/dist/checkout/svg/bag-add-outline.svg +1 -1
  223. package/dist/checkout/svg/bag-add-sharp.svg +1 -1
  224. package/dist/checkout/svg/bag-add.svg +1 -1
  225. package/dist/checkout/svg/bag-check-outline.svg +1 -1
  226. package/dist/checkout/svg/bag-check-sharp.svg +1 -1
  227. package/dist/checkout/svg/bag-check.svg +1 -1
  228. package/dist/checkout/svg/bag-handle-outline.svg +1 -1
  229. package/dist/checkout/svg/bag-handle-sharp.svg +1 -1
  230. package/dist/checkout/svg/bag-handle.svg +1 -1
  231. package/dist/checkout/svg/bag-outline.svg +1 -1
  232. package/dist/checkout/svg/bag-remove-outline.svg +1 -1
  233. package/dist/checkout/svg/bag-remove-sharp.svg +1 -1
  234. package/dist/checkout/svg/bag-remove.svg +1 -1
  235. package/dist/checkout/svg/bag-sharp.svg +1 -1
  236. package/dist/checkout/svg/bag.svg +1 -1
  237. package/dist/checkout/svg/balloon-outline.svg +1 -1
  238. package/dist/checkout/svg/balloon-sharp.svg +1 -1
  239. package/dist/checkout/svg/balloon.svg +1 -1
  240. package/dist/checkout/svg/ban-outline.svg +1 -1
  241. package/dist/checkout/svg/ban-sharp.svg +1 -1
  242. package/dist/checkout/svg/ban.svg +1 -1
  243. package/dist/checkout/svg/bandage-outline.svg +1 -1
  244. package/dist/checkout/svg/bandage-sharp.svg +1 -1
  245. package/dist/checkout/svg/bandage.svg +1 -1
  246. package/dist/checkout/svg/bar-chart-outline.svg +1 -1
  247. package/dist/checkout/svg/bar-chart-sharp.svg +1 -1
  248. package/dist/checkout/svg/bar-chart.svg +1 -1
  249. package/dist/checkout/svg/barbell-outline.svg +1 -1
  250. package/dist/checkout/svg/barbell-sharp.svg +1 -1
  251. package/dist/checkout/svg/barbell.svg +1 -1
  252. package/dist/checkout/svg/barcode-outline.svg +1 -1
  253. package/dist/checkout/svg/barcode-sharp.svg +1 -1
  254. package/dist/checkout/svg/barcode.svg +1 -1
  255. package/dist/checkout/svg/baseball-outline.svg +1 -1
  256. package/dist/checkout/svg/baseball-sharp.svg +1 -1
  257. package/dist/checkout/svg/baseball.svg +1 -1
  258. package/dist/checkout/svg/basket-outline.svg +1 -1
  259. package/dist/checkout/svg/basket-sharp.svg +1 -1
  260. package/dist/checkout/svg/basket.svg +1 -1
  261. package/dist/checkout/svg/basketball-outline.svg +1 -1
  262. package/dist/checkout/svg/basketball-sharp.svg +1 -1
  263. package/dist/checkout/svg/basketball.svg +1 -1
  264. package/dist/checkout/svg/battery-charging-outline.svg +1 -1
  265. package/dist/checkout/svg/battery-charging-sharp.svg +1 -1
  266. package/dist/checkout/svg/battery-charging.svg +1 -1
  267. package/dist/checkout/svg/battery-dead-outline.svg +1 -1
  268. package/dist/checkout/svg/battery-dead-sharp.svg +1 -1
  269. package/dist/checkout/svg/battery-dead.svg +1 -1
  270. package/dist/checkout/svg/battery-full-outline.svg +1 -1
  271. package/dist/checkout/svg/battery-full-sharp.svg +1 -1
  272. package/dist/checkout/svg/battery-full.svg +1 -1
  273. package/dist/checkout/svg/battery-half-outline.svg +1 -1
  274. package/dist/checkout/svg/battery-half-sharp.svg +1 -1
  275. package/dist/checkout/svg/battery-half.svg +1 -1
  276. package/dist/checkout/svg/beaker-outline.svg +1 -1
  277. package/dist/checkout/svg/beaker-sharp.svg +1 -1
  278. package/dist/checkout/svg/beaker.svg +1 -1
  279. package/dist/checkout/svg/bed-outline.svg +1 -1
  280. package/dist/checkout/svg/bed-sharp.svg +1 -1
  281. package/dist/checkout/svg/bed.svg +1 -1
  282. package/dist/checkout/svg/beer-outline.svg +1 -1
  283. package/dist/checkout/svg/beer-sharp.svg +1 -1
  284. package/dist/checkout/svg/beer.svg +1 -1
  285. package/dist/checkout/svg/bicycle-outline.svg +1 -1
  286. package/dist/checkout/svg/bicycle-sharp.svg +1 -1
  287. package/dist/checkout/svg/bicycle.svg +1 -1
  288. package/dist/checkout/svg/binoculars-outline.svg +1 -1
  289. package/dist/checkout/svg/binoculars-sharp.svg +1 -1
  290. package/dist/checkout/svg/binoculars.svg +1 -1
  291. package/dist/checkout/svg/bluetooth-outline.svg +1 -1
  292. package/dist/checkout/svg/bluetooth-sharp.svg +1 -1
  293. package/dist/checkout/svg/bluetooth.svg +1 -1
  294. package/dist/checkout/svg/boat-outline.svg +1 -1
  295. package/dist/checkout/svg/boat-sharp.svg +1 -1
  296. package/dist/checkout/svg/boat.svg +1 -1
  297. package/dist/checkout/svg/body-outline.svg +1 -1
  298. package/dist/checkout/svg/body-sharp.svg +1 -1
  299. package/dist/checkout/svg/body.svg +1 -1
  300. package/dist/checkout/svg/bonfire-outline.svg +1 -1
  301. package/dist/checkout/svg/bonfire-sharp.svg +1 -1
  302. package/dist/checkout/svg/bonfire.svg +1 -1
  303. package/dist/checkout/svg/book-outline.svg +1 -1
  304. package/dist/checkout/svg/book-sharp.svg +1 -1
  305. package/dist/checkout/svg/book.svg +1 -1
  306. package/dist/checkout/svg/bookmark-outline.svg +1 -1
  307. package/dist/checkout/svg/bookmark-sharp.svg +1 -1
  308. package/dist/checkout/svg/bookmark.svg +1 -1
  309. package/dist/checkout/svg/bookmarks-outline.svg +1 -1
  310. package/dist/checkout/svg/bookmarks-sharp.svg +1 -1
  311. package/dist/checkout/svg/bookmarks.svg +1 -1
  312. package/dist/checkout/svg/bowling-ball-sharp.svg +1 -1
  313. package/dist/checkout/svg/bowling-ball.svg +1 -1
  314. package/dist/checkout/svg/briefcase-outline.svg +1 -1
  315. package/dist/checkout/svg/briefcase-sharp.svg +1 -1
  316. package/dist/checkout/svg/briefcase.svg +1 -1
  317. package/dist/checkout/svg/browsers-outline.svg +1 -1
  318. package/dist/checkout/svg/browsers-sharp.svg +1 -1
  319. package/dist/checkout/svg/browsers.svg +1 -1
  320. package/dist/checkout/svg/brush-outline.svg +1 -1
  321. package/dist/checkout/svg/brush-sharp.svg +1 -1
  322. package/dist/checkout/svg/brush.svg +1 -1
  323. package/dist/checkout/svg/bug-outline.svg +1 -1
  324. package/dist/checkout/svg/bug-sharp.svg +1 -1
  325. package/dist/checkout/svg/bug.svg +1 -1
  326. package/dist/checkout/svg/build-outline.svg +1 -1
  327. package/dist/checkout/svg/build-sharp.svg +1 -1
  328. package/dist/checkout/svg/build.svg +1 -1
  329. package/dist/checkout/svg/bulb-outline.svg +1 -1
  330. package/dist/checkout/svg/bulb-sharp.svg +1 -1
  331. package/dist/checkout/svg/bulb.svg +1 -1
  332. package/dist/checkout/svg/bus-outline.svg +1 -1
  333. package/dist/checkout/svg/bus-sharp.svg +1 -1
  334. package/dist/checkout/svg/bus.svg +1 -1
  335. package/dist/checkout/svg/business-outline.svg +1 -1
  336. package/dist/checkout/svg/business-sharp.svg +1 -1
  337. package/dist/checkout/svg/business.svg +1 -1
  338. package/dist/checkout/svg/cafe-outline.svg +1 -1
  339. package/dist/checkout/svg/cafe-sharp.svg +1 -1
  340. package/dist/checkout/svg/cafe.svg +1 -1
  341. package/dist/checkout/svg/calculator-outline.svg +1 -1
  342. package/dist/checkout/svg/calculator-sharp.svg +1 -1
  343. package/dist/checkout/svg/calculator.svg +1 -1
  344. package/dist/checkout/svg/calendar-clear-outline.svg +1 -1
  345. package/dist/checkout/svg/calendar-clear-sharp.svg +1 -1
  346. package/dist/checkout/svg/calendar-clear.svg +1 -1
  347. package/dist/checkout/svg/calendar-number-outline.svg +1 -1
  348. package/dist/checkout/svg/calendar-number-sharp.svg +1 -1
  349. package/dist/checkout/svg/calendar-number.svg +1 -1
  350. package/dist/checkout/svg/calendar-outline.svg +1 -1
  351. package/dist/checkout/svg/calendar-sharp.svg +1 -1
  352. package/dist/checkout/svg/calendar.svg +1 -1
  353. package/dist/checkout/svg/call-outline.svg +1 -1
  354. package/dist/checkout/svg/call-sharp.svg +1 -1
  355. package/dist/checkout/svg/call.svg +1 -1
  356. package/dist/checkout/svg/camera-outline.svg +1 -1
  357. package/dist/checkout/svg/camera-reverse-outline.svg +1 -1
  358. package/dist/checkout/svg/camera-reverse-sharp.svg +1 -1
  359. package/dist/checkout/svg/camera-reverse.svg +1 -1
  360. package/dist/checkout/svg/camera-sharp.svg +1 -1
  361. package/dist/checkout/svg/camera.svg +1 -1
  362. package/dist/checkout/svg/car-outline.svg +1 -1
  363. package/dist/checkout/svg/car-sharp.svg +1 -1
  364. package/dist/checkout/svg/car-sport-outline.svg +1 -1
  365. package/dist/checkout/svg/car-sport-sharp.svg +1 -1
  366. package/dist/checkout/svg/car-sport.svg +1 -1
  367. package/dist/checkout/svg/car.svg +1 -1
  368. package/dist/checkout/svg/card-outline.svg +1 -1
  369. package/dist/checkout/svg/card-sharp.svg +1 -1
  370. package/dist/checkout/svg/card.svg +1 -1
  371. package/dist/checkout/svg/caret-back-circle-outline.svg +1 -1
  372. package/dist/checkout/svg/caret-back-circle-sharp.svg +1 -1
  373. package/dist/checkout/svg/caret-back-circle.svg +1 -1
  374. package/dist/checkout/svg/caret-back-outline.svg +1 -1
  375. package/dist/checkout/svg/caret-back-sharp.svg +1 -1
  376. package/dist/checkout/svg/caret-back.svg +1 -1
  377. package/dist/checkout/svg/caret-down-circle-outline.svg +1 -1
  378. package/dist/checkout/svg/caret-down-circle-sharp.svg +1 -1
  379. package/dist/checkout/svg/caret-down-circle.svg +1 -1
  380. package/dist/checkout/svg/caret-down-outline.svg +1 -1
  381. package/dist/checkout/svg/caret-down-sharp.svg +1 -1
  382. package/dist/checkout/svg/caret-down.svg +1 -1
  383. package/dist/checkout/svg/caret-forward-circle-outline.svg +1 -1
  384. package/dist/checkout/svg/caret-forward-circle-sharp.svg +1 -1
  385. package/dist/checkout/svg/caret-forward-circle.svg +1 -1
  386. package/dist/checkout/svg/caret-forward-outline.svg +1 -1
  387. package/dist/checkout/svg/caret-forward-sharp.svg +1 -1
  388. package/dist/checkout/svg/caret-forward.svg +1 -1
  389. package/dist/checkout/svg/caret-up-circle-outline.svg +1 -1
  390. package/dist/checkout/svg/caret-up-circle-sharp.svg +1 -1
  391. package/dist/checkout/svg/caret-up-circle.svg +1 -1
  392. package/dist/checkout/svg/caret-up-outline.svg +1 -1
  393. package/dist/checkout/svg/caret-up-sharp.svg +1 -1
  394. package/dist/checkout/svg/caret-up.svg +1 -1
  395. package/dist/checkout/svg/cart-outline.svg +1 -1
  396. package/dist/checkout/svg/cart-sharp.svg +1 -1
  397. package/dist/checkout/svg/cart.svg +1 -1
  398. package/dist/checkout/svg/cash-outline.svg +1 -1
  399. package/dist/checkout/svg/cash-sharp.svg +1 -1
  400. package/dist/checkout/svg/cash.svg +1 -1
  401. package/dist/checkout/svg/cellular-outline.svg +1 -1
  402. package/dist/checkout/svg/cellular-sharp.svg +1 -1
  403. package/dist/checkout/svg/cellular.svg +1 -1
  404. package/dist/checkout/svg/chatbox-ellipses-outline.svg +1 -1
  405. package/dist/checkout/svg/chatbox-ellipses-sharp.svg +1 -1
  406. package/dist/checkout/svg/chatbox-ellipses.svg +1 -1
  407. package/dist/checkout/svg/chatbox-outline.svg +1 -1
  408. package/dist/checkout/svg/chatbox-sharp.svg +1 -1
  409. package/dist/checkout/svg/chatbox.svg +1 -1
  410. package/dist/checkout/svg/chatbubble-ellipses-outline.svg +1 -1
  411. package/dist/checkout/svg/chatbubble-ellipses-sharp.svg +1 -1
  412. package/dist/checkout/svg/chatbubble-ellipses.svg +1 -1
  413. package/dist/checkout/svg/chatbubble-outline.svg +1 -1
  414. package/dist/checkout/svg/chatbubble-sharp.svg +1 -1
  415. package/dist/checkout/svg/chatbubble.svg +1 -1
  416. package/dist/checkout/svg/chatbubbles-outline.svg +1 -1
  417. package/dist/checkout/svg/chatbubbles-sharp.svg +1 -1
  418. package/dist/checkout/svg/chatbubbles.svg +1 -1
  419. package/dist/checkout/svg/checkbox-outline.svg +1 -1
  420. package/dist/checkout/svg/checkbox-sharp.svg +1 -1
  421. package/dist/checkout/svg/checkbox.svg +1 -1
  422. package/dist/checkout/svg/checkmark-circle-outline.svg +1 -1
  423. package/dist/checkout/svg/checkmark-circle-sharp.svg +1 -1
  424. package/dist/checkout/svg/checkmark-circle.svg +1 -1
  425. package/dist/checkout/svg/checkmark-done-circle-outline.svg +1 -1
  426. package/dist/checkout/svg/checkmark-done-circle-sharp.svg +1 -1
  427. package/dist/checkout/svg/checkmark-done-circle.svg +1 -1
  428. package/dist/checkout/svg/checkmark-done-outline.svg +1 -1
  429. package/dist/checkout/svg/checkmark-done-sharp.svg +1 -1
  430. package/dist/checkout/svg/checkmark-done.svg +1 -1
  431. package/dist/checkout/svg/checkmark-outline.svg +1 -1
  432. package/dist/checkout/svg/checkmark-sharp.svg +1 -1
  433. package/dist/checkout/svg/checkmark.svg +1 -1
  434. package/dist/checkout/svg/chevron-back-circle-outline.svg +1 -1
  435. package/dist/checkout/svg/chevron-back-circle-sharp.svg +1 -1
  436. package/dist/checkout/svg/chevron-back-circle.svg +1 -1
  437. package/dist/checkout/svg/chevron-back-outline.svg +1 -1
  438. package/dist/checkout/svg/chevron-back-sharp.svg +1 -1
  439. package/dist/checkout/svg/chevron-back.svg +1 -1
  440. package/dist/checkout/svg/chevron-collapse-outline.svg +1 -1
  441. package/dist/checkout/svg/chevron-collapse-sharp.svg +1 -1
  442. package/dist/checkout/svg/chevron-collapse.svg +1 -1
  443. package/dist/checkout/svg/chevron-down-circle-outline.svg +1 -1
  444. package/dist/checkout/svg/chevron-down-circle-sharp.svg +1 -1
  445. package/dist/checkout/svg/chevron-down-circle.svg +1 -1
  446. package/dist/checkout/svg/chevron-down-outline.svg +1 -1
  447. package/dist/checkout/svg/chevron-down-sharp.svg +1 -1
  448. package/dist/checkout/svg/chevron-down.svg +1 -1
  449. package/dist/checkout/svg/chevron-expand-outline.svg +1 -1
  450. package/dist/checkout/svg/chevron-expand-sharp.svg +1 -1
  451. package/dist/checkout/svg/chevron-expand.svg +1 -1
  452. package/dist/checkout/svg/chevron-forward-circle-outline.svg +1 -1
  453. package/dist/checkout/svg/chevron-forward-circle-sharp.svg +1 -1
  454. package/dist/checkout/svg/chevron-forward-circle.svg +1 -1
  455. package/dist/checkout/svg/chevron-forward-outline.svg +1 -1
  456. package/dist/checkout/svg/chevron-forward-sharp.svg +1 -1
  457. package/dist/checkout/svg/chevron-forward.svg +1 -1
  458. package/dist/checkout/svg/chevron-up-circle-outline.svg +1 -1
  459. package/dist/checkout/svg/chevron-up-circle-sharp.svg +1 -1
  460. package/dist/checkout/svg/chevron-up-circle.svg +1 -1
  461. package/dist/checkout/svg/chevron-up-outline.svg +1 -1
  462. package/dist/checkout/svg/chevron-up-sharp.svg +1 -1
  463. package/dist/checkout/svg/chevron-up.svg +1 -1
  464. package/dist/checkout/svg/clipboard-outline.svg +1 -1
  465. package/dist/checkout/svg/clipboard-sharp.svg +1 -1
  466. package/dist/checkout/svg/clipboard.svg +1 -1
  467. package/dist/checkout/svg/close-circle-outline.svg +1 -1
  468. package/dist/checkout/svg/close-circle-sharp.svg +1 -1
  469. package/dist/checkout/svg/close-circle.svg +1 -1
  470. package/dist/checkout/svg/close-outline.svg +1 -1
  471. package/dist/checkout/svg/close-sharp.svg +1 -1
  472. package/dist/checkout/svg/close.svg +1 -1
  473. package/dist/checkout/svg/cloud-circle-outline.svg +1 -1
  474. package/dist/checkout/svg/cloud-circle-sharp.svg +1 -1
  475. package/dist/checkout/svg/cloud-circle.svg +1 -1
  476. package/dist/checkout/svg/cloud-done-outline.svg +1 -1
  477. package/dist/checkout/svg/cloud-done-sharp.svg +1 -1
  478. package/dist/checkout/svg/cloud-done.svg +1 -1
  479. package/dist/checkout/svg/cloud-download-outline.svg +1 -1
  480. package/dist/checkout/svg/cloud-download-sharp.svg +1 -1
  481. package/dist/checkout/svg/cloud-download.svg +1 -1
  482. package/dist/checkout/svg/cloud-offline-outline.svg +1 -1
  483. package/dist/checkout/svg/cloud-offline-sharp.svg +1 -1
  484. package/dist/checkout/svg/cloud-offline.svg +1 -1
  485. package/dist/checkout/svg/cloud-outline.svg +1 -1
  486. package/dist/checkout/svg/cloud-sharp.svg +1 -1
  487. package/dist/checkout/svg/cloud-upload-outline.svg +1 -1
  488. package/dist/checkout/svg/cloud-upload-sharp.svg +1 -1
  489. package/dist/checkout/svg/cloud-upload.svg +1 -1
  490. package/dist/checkout/svg/cloud.svg +1 -1
  491. package/dist/checkout/svg/cloudy-night-outline.svg +1 -1
  492. package/dist/checkout/svg/cloudy-night-sharp.svg +1 -1
  493. package/dist/checkout/svg/cloudy-night.svg +1 -1
  494. package/dist/checkout/svg/cloudy-outline.svg +1 -1
  495. package/dist/checkout/svg/cloudy-sharp.svg +1 -1
  496. package/dist/checkout/svg/cloudy.svg +1 -1
  497. package/dist/checkout/svg/code-download-outline.svg +1 -1
  498. package/dist/checkout/svg/code-download-sharp.svg +1 -1
  499. package/dist/checkout/svg/code-download.svg +1 -1
  500. package/dist/checkout/svg/code-outline.svg +1 -1
  501. package/dist/checkout/svg/code-sharp.svg +1 -1
  502. package/dist/checkout/svg/code-slash-outline.svg +1 -1
  503. package/dist/checkout/svg/code-slash-sharp.svg +1 -1
  504. package/dist/checkout/svg/code-slash.svg +1 -1
  505. package/dist/checkout/svg/code-working-outline.svg +1 -1
  506. package/dist/checkout/svg/code-working-sharp.svg +1 -1
  507. package/dist/checkout/svg/code-working.svg +1 -1
  508. package/dist/checkout/svg/code.svg +1 -1
  509. package/dist/checkout/svg/cog-outline.svg +1 -1
  510. package/dist/checkout/svg/cog-sharp.svg +1 -1
  511. package/dist/checkout/svg/cog.svg +1 -1
  512. package/dist/checkout/svg/color-fill-outline.svg +1 -1
  513. package/dist/checkout/svg/color-fill-sharp.svg +1 -1
  514. package/dist/checkout/svg/color-fill.svg +1 -1
  515. package/dist/checkout/svg/color-filter-outline.svg +1 -1
  516. package/dist/checkout/svg/color-filter-sharp.svg +1 -1
  517. package/dist/checkout/svg/color-filter.svg +1 -1
  518. package/dist/checkout/svg/color-palette-outline.svg +1 -1
  519. package/dist/checkout/svg/color-palette-sharp.svg +1 -1
  520. package/dist/checkout/svg/color-palette.svg +1 -1
  521. package/dist/checkout/svg/color-wand-outline.svg +1 -1
  522. package/dist/checkout/svg/color-wand-sharp.svg +1 -1
  523. package/dist/checkout/svg/color-wand.svg +1 -1
  524. package/dist/checkout/svg/compass-outline.svg +1 -1
  525. package/dist/checkout/svg/compass-sharp.svg +1 -1
  526. package/dist/checkout/svg/compass.svg +1 -1
  527. package/dist/checkout/svg/construct-outline.svg +1 -1
  528. package/dist/checkout/svg/construct-sharp.svg +1 -1
  529. package/dist/checkout/svg/construct.svg +1 -1
  530. package/dist/checkout/svg/contract-outline.svg +1 -1
  531. package/dist/checkout/svg/contract-sharp.svg +1 -1
  532. package/dist/checkout/svg/contract.svg +1 -1
  533. package/dist/checkout/svg/contrast-outline.svg +1 -1
  534. package/dist/checkout/svg/contrast-sharp.svg +1 -1
  535. package/dist/checkout/svg/contrast.svg +1 -1
  536. package/dist/checkout/svg/copy-outline.svg +1 -1
  537. package/dist/checkout/svg/copy-sharp.svg +1 -1
  538. package/dist/checkout/svg/copy.svg +1 -1
  539. package/dist/checkout/svg/create-outline.svg +1 -1
  540. package/dist/checkout/svg/create-sharp.svg +1 -1
  541. package/dist/checkout/svg/create.svg +1 -1
  542. package/dist/checkout/svg/crop-outline.svg +1 -1
  543. package/dist/checkout/svg/crop-sharp.svg +1 -1
  544. package/dist/checkout/svg/crop.svg +1 -1
  545. package/dist/checkout/svg/cube-outline.svg +1 -1
  546. package/dist/checkout/svg/cube-sharp.svg +1 -1
  547. package/dist/checkout/svg/cube.svg +1 -1
  548. package/dist/checkout/svg/cut-outline.svg +1 -1
  549. package/dist/checkout/svg/cut-sharp.svg +1 -1
  550. package/dist/checkout/svg/cut.svg +1 -1
  551. package/dist/checkout/svg/desktop-outline.svg +1 -1
  552. package/dist/checkout/svg/desktop-sharp.svg +1 -1
  553. package/dist/checkout/svg/desktop.svg +1 -1
  554. package/dist/checkout/svg/diamond-outline.svg +1 -1
  555. package/dist/checkout/svg/diamond-sharp.svg +1 -1
  556. package/dist/checkout/svg/diamond.svg +1 -1
  557. package/dist/checkout/svg/dice-outline.svg +1 -1
  558. package/dist/checkout/svg/dice-sharp.svg +1 -1
  559. package/dist/checkout/svg/dice.svg +1 -1
  560. package/dist/checkout/svg/disc-outline.svg +1 -1
  561. package/dist/checkout/svg/disc-sharp.svg +1 -1
  562. package/dist/checkout/svg/disc.svg +1 -1
  563. package/dist/checkout/svg/document-attach-outline.svg +1 -1
  564. package/dist/checkout/svg/document-attach-sharp.svg +1 -1
  565. package/dist/checkout/svg/document-attach.svg +1 -1
  566. package/dist/checkout/svg/document-lock-outline.svg +1 -1
  567. package/dist/checkout/svg/document-lock-sharp.svg +1 -1
  568. package/dist/checkout/svg/document-lock.svg +1 -1
  569. package/dist/checkout/svg/document-outline.svg +1 -1
  570. package/dist/checkout/svg/document-sharp.svg +1 -1
  571. package/dist/checkout/svg/document-text-outline.svg +1 -1
  572. package/dist/checkout/svg/document-text-sharp.svg +1 -1
  573. package/dist/checkout/svg/document-text.svg +1 -1
  574. package/dist/checkout/svg/document.svg +1 -1
  575. package/dist/checkout/svg/documents-outline.svg +1 -1
  576. package/dist/checkout/svg/documents-sharp.svg +1 -1
  577. package/dist/checkout/svg/documents.svg +1 -1
  578. package/dist/checkout/svg/download-outline.svg +1 -1
  579. package/dist/checkout/svg/download-sharp.svg +1 -1
  580. package/dist/checkout/svg/download.svg +1 -1
  581. package/dist/checkout/svg/duplicate-outline.svg +1 -1
  582. package/dist/checkout/svg/duplicate-sharp.svg +1 -1
  583. package/dist/checkout/svg/duplicate.svg +1 -1
  584. package/dist/checkout/svg/ear-outline.svg +1 -1
  585. package/dist/checkout/svg/ear-sharp.svg +1 -1
  586. package/dist/checkout/svg/ear.svg +1 -1
  587. package/dist/checkout/svg/earth-outline.svg +1 -1
  588. package/dist/checkout/svg/earth-sharp.svg +1 -1
  589. package/dist/checkout/svg/earth.svg +1 -1
  590. package/dist/checkout/svg/easel-outline.svg +1 -1
  591. package/dist/checkout/svg/easel-sharp.svg +1 -1
  592. package/dist/checkout/svg/easel.svg +1 -1
  593. package/dist/checkout/svg/egg-outline.svg +1 -1
  594. package/dist/checkout/svg/egg-sharp.svg +1 -1
  595. package/dist/checkout/svg/egg.svg +1 -1
  596. package/dist/checkout/svg/ellipse-outline.svg +1 -1
  597. package/dist/checkout/svg/ellipse-sharp.svg +1 -1
  598. package/dist/checkout/svg/ellipse.svg +1 -1
  599. package/dist/checkout/svg/ellipsis-horizontal-circle-outline.svg +1 -1
  600. package/dist/checkout/svg/ellipsis-horizontal-circle-sharp.svg +1 -1
  601. package/dist/checkout/svg/ellipsis-horizontal-circle.svg +1 -1
  602. package/dist/checkout/svg/ellipsis-horizontal-outline.svg +1 -1
  603. package/dist/checkout/svg/ellipsis-horizontal-sharp.svg +1 -1
  604. package/dist/checkout/svg/ellipsis-horizontal.svg +1 -1
  605. package/dist/checkout/svg/ellipsis-vertical-circle-outline.svg +1 -1
  606. package/dist/checkout/svg/ellipsis-vertical-circle-sharp.svg +1 -1
  607. package/dist/checkout/svg/ellipsis-vertical-circle.svg +1 -1
  608. package/dist/checkout/svg/ellipsis-vertical-outline.svg +1 -1
  609. package/dist/checkout/svg/ellipsis-vertical-sharp.svg +1 -1
  610. package/dist/checkout/svg/ellipsis-vertical.svg +1 -1
  611. package/dist/checkout/svg/enter-outline.svg +1 -1
  612. package/dist/checkout/svg/enter-sharp.svg +1 -1
  613. package/dist/checkout/svg/enter.svg +1 -1
  614. package/dist/checkout/svg/exit-outline.svg +1 -1
  615. package/dist/checkout/svg/exit-sharp.svg +1 -1
  616. package/dist/checkout/svg/exit.svg +1 -1
  617. package/dist/checkout/svg/expand-outline.svg +1 -1
  618. package/dist/checkout/svg/expand-sharp.svg +1 -1
  619. package/dist/checkout/svg/expand.svg +1 -1
  620. package/dist/checkout/svg/extension-puzzle-outline.svg +1 -1
  621. package/dist/checkout/svg/extension-puzzle-sharp.svg +1 -1
  622. package/dist/checkout/svg/extension-puzzle.svg +1 -1
  623. package/dist/checkout/svg/eye-off-outline.svg +1 -1
  624. package/dist/checkout/svg/eye-off-sharp.svg +1 -1
  625. package/dist/checkout/svg/eye-off.svg +1 -1
  626. package/dist/checkout/svg/eye-outline.svg +1 -1
  627. package/dist/checkout/svg/eye-sharp.svg +1 -1
  628. package/dist/checkout/svg/eye.svg +1 -1
  629. package/dist/checkout/svg/eyedrop-outline.svg +1 -1
  630. package/dist/checkout/svg/eyedrop-sharp.svg +1 -1
  631. package/dist/checkout/svg/eyedrop.svg +1 -1
  632. package/dist/checkout/svg/fast-food-outline.svg +1 -1
  633. package/dist/checkout/svg/fast-food-sharp.svg +1 -1
  634. package/dist/checkout/svg/fast-food.svg +1 -1
  635. package/dist/checkout/svg/female-outline.svg +1 -1
  636. package/dist/checkout/svg/female-sharp.svg +1 -1
  637. package/dist/checkout/svg/female.svg +1 -1
  638. package/dist/checkout/svg/file-tray-full-outline.svg +1 -1
  639. package/dist/checkout/svg/file-tray-full-sharp.svg +1 -1
  640. package/dist/checkout/svg/file-tray-full.svg +1 -1
  641. package/dist/checkout/svg/file-tray-outline.svg +1 -1
  642. package/dist/checkout/svg/file-tray-sharp.svg +1 -1
  643. package/dist/checkout/svg/file-tray-stacked-outline.svg +1 -1
  644. package/dist/checkout/svg/file-tray-stacked-sharp.svg +1 -1
  645. package/dist/checkout/svg/file-tray-stacked.svg +1 -1
  646. package/dist/checkout/svg/file-tray.svg +1 -1
  647. package/dist/checkout/svg/film-outline.svg +1 -1
  648. package/dist/checkout/svg/film-sharp.svg +1 -1
  649. package/dist/checkout/svg/film.svg +1 -1
  650. package/dist/checkout/svg/filter-circle-outline.svg +1 -1
  651. package/dist/checkout/svg/filter-circle-sharp.svg +1 -1
  652. package/dist/checkout/svg/filter-circle.svg +1 -1
  653. package/dist/checkout/svg/filter-outline.svg +1 -1
  654. package/dist/checkout/svg/filter-sharp.svg +1 -1
  655. package/dist/checkout/svg/filter.svg +1 -1
  656. package/dist/checkout/svg/finger-print-outline.svg +1 -1
  657. package/dist/checkout/svg/finger-print-sharp.svg +1 -1
  658. package/dist/checkout/svg/finger-print.svg +1 -1
  659. package/dist/checkout/svg/fish-outline.svg +1 -1
  660. package/dist/checkout/svg/fish-sharp.svg +1 -1
  661. package/dist/checkout/svg/fish.svg +1 -1
  662. package/dist/checkout/svg/fitness-outline.svg +1 -1
  663. package/dist/checkout/svg/fitness-sharp.svg +1 -1
  664. package/dist/checkout/svg/fitness.svg +1 -1
  665. package/dist/checkout/svg/flag-outline.svg +1 -1
  666. package/dist/checkout/svg/flag-sharp.svg +1 -1
  667. package/dist/checkout/svg/flag.svg +1 -1
  668. package/dist/checkout/svg/flame-outline.svg +1 -1
  669. package/dist/checkout/svg/flame-sharp.svg +1 -1
  670. package/dist/checkout/svg/flame.svg +1 -1
  671. package/dist/checkout/svg/flash-off-outline.svg +1 -1
  672. package/dist/checkout/svg/flash-off-sharp.svg +1 -1
  673. package/dist/checkout/svg/flash-off.svg +1 -1
  674. package/dist/checkout/svg/flash-outline.svg +1 -1
  675. package/dist/checkout/svg/flash-sharp.svg +1 -1
  676. package/dist/checkout/svg/flash.svg +1 -1
  677. package/dist/checkout/svg/flashlight-outline.svg +1 -1
  678. package/dist/checkout/svg/flashlight-sharp.svg +1 -1
  679. package/dist/checkout/svg/flashlight.svg +1 -1
  680. package/dist/checkout/svg/flask-outline.svg +1 -1
  681. package/dist/checkout/svg/flask-sharp.svg +1 -1
  682. package/dist/checkout/svg/flask.svg +1 -1
  683. package/dist/checkout/svg/flower-outline.svg +1 -1
  684. package/dist/checkout/svg/flower-sharp.svg +1 -1
  685. package/dist/checkout/svg/flower.svg +1 -1
  686. package/dist/checkout/svg/folder-open-outline.svg +1 -1
  687. package/dist/checkout/svg/folder-open-sharp.svg +1 -1
  688. package/dist/checkout/svg/folder-open.svg +1 -1
  689. package/dist/checkout/svg/folder-outline.svg +1 -1
  690. package/dist/checkout/svg/folder-sharp.svg +1 -1
  691. package/dist/checkout/svg/folder.svg +1 -1
  692. package/dist/checkout/svg/football-outline.svg +1 -1
  693. package/dist/checkout/svg/football-sharp.svg +1 -1
  694. package/dist/checkout/svg/football.svg +1 -1
  695. package/dist/checkout/svg/footsteps-outline.svg +1 -1
  696. package/dist/checkout/svg/footsteps-sharp.svg +1 -1
  697. package/dist/checkout/svg/footsteps.svg +1 -1
  698. package/dist/checkout/svg/funnel-outline.svg +1 -1
  699. package/dist/checkout/svg/funnel-sharp.svg +1 -1
  700. package/dist/checkout/svg/funnel.svg +1 -1
  701. package/dist/checkout/svg/game-controller-outline.svg +1 -1
  702. package/dist/checkout/svg/game-controller-sharp.svg +1 -1
  703. package/dist/checkout/svg/game-controller.svg +1 -1
  704. package/dist/checkout/svg/gift-outline.svg +1 -1
  705. package/dist/checkout/svg/gift-sharp.svg +1 -1
  706. package/dist/checkout/svg/gift.svg +1 -1
  707. package/dist/checkout/svg/git-branch-outline.svg +1 -1
  708. package/dist/checkout/svg/git-branch-sharp.svg +1 -1
  709. package/dist/checkout/svg/git-branch.svg +1 -1
  710. package/dist/checkout/svg/git-commit-outline.svg +1 -1
  711. package/dist/checkout/svg/git-commit-sharp.svg +1 -1
  712. package/dist/checkout/svg/git-commit.svg +1 -1
  713. package/dist/checkout/svg/git-compare-outline.svg +1 -1
  714. package/dist/checkout/svg/git-compare-sharp.svg +1 -1
  715. package/dist/checkout/svg/git-compare.svg +1 -1
  716. package/dist/checkout/svg/git-merge-outline.svg +1 -1
  717. package/dist/checkout/svg/git-merge-sharp.svg +1 -1
  718. package/dist/checkout/svg/git-merge.svg +1 -1
  719. package/dist/checkout/svg/git-network-outline.svg +1 -1
  720. package/dist/checkout/svg/git-network-sharp.svg +1 -1
  721. package/dist/checkout/svg/git-network.svg +1 -1
  722. package/dist/checkout/svg/git-pull-request-outline.svg +1 -1
  723. package/dist/checkout/svg/git-pull-request-sharp.svg +1 -1
  724. package/dist/checkout/svg/git-pull-request.svg +1 -1
  725. package/dist/checkout/svg/glasses-outline.svg +1 -1
  726. package/dist/checkout/svg/glasses-sharp.svg +1 -1
  727. package/dist/checkout/svg/glasses.svg +1 -1
  728. package/dist/checkout/svg/globe-outline.svg +1 -1
  729. package/dist/checkout/svg/globe-sharp.svg +1 -1
  730. package/dist/checkout/svg/globe.svg +1 -1
  731. package/dist/checkout/svg/golf-outline.svg +1 -1
  732. package/dist/checkout/svg/golf-sharp.svg +1 -1
  733. package/dist/checkout/svg/golf.svg +1 -1
  734. package/dist/checkout/svg/grid-outline.svg +1 -1
  735. package/dist/checkout/svg/grid-sharp.svg +1 -1
  736. package/dist/checkout/svg/grid.svg +1 -1
  737. package/dist/checkout/svg/hammer-outline.svg +1 -1
  738. package/dist/checkout/svg/hammer-sharp.svg +1 -1
  739. package/dist/checkout/svg/hammer.svg +1 -1
  740. package/dist/checkout/svg/hand-left-outline.svg +1 -1
  741. package/dist/checkout/svg/hand-left-sharp.svg +1 -1
  742. package/dist/checkout/svg/hand-left.svg +1 -1
  743. package/dist/checkout/svg/hand-right-outline.svg +1 -1
  744. package/dist/checkout/svg/hand-right-sharp.svg +1 -1
  745. package/dist/checkout/svg/hand-right.svg +1 -1
  746. package/dist/checkout/svg/happy-outline.svg +1 -1
  747. package/dist/checkout/svg/happy-sharp.svg +1 -1
  748. package/dist/checkout/svg/happy.svg +1 -1
  749. package/dist/checkout/svg/hardware-chip-outline.svg +1 -1
  750. package/dist/checkout/svg/hardware-chip-sharp.svg +1 -1
  751. package/dist/checkout/svg/hardware-chip.svg +1 -1
  752. package/dist/checkout/svg/headset-outline.svg +1 -1
  753. package/dist/checkout/svg/headset-sharp.svg +1 -1
  754. package/dist/checkout/svg/headset.svg +1 -1
  755. package/dist/checkout/svg/heart-circle-outline.svg +1 -1
  756. package/dist/checkout/svg/heart-circle-sharp.svg +1 -1
  757. package/dist/checkout/svg/heart-circle.svg +1 -1
  758. package/dist/checkout/svg/heart-dislike-circle-outline.svg +1 -1
  759. package/dist/checkout/svg/heart-dislike-circle-sharp.svg +1 -1
  760. package/dist/checkout/svg/heart-dislike-circle.svg +1 -1
  761. package/dist/checkout/svg/heart-dislike-outline.svg +1 -1
  762. package/dist/checkout/svg/heart-dislike-sharp.svg +1 -1
  763. package/dist/checkout/svg/heart-dislike.svg +1 -1
  764. package/dist/checkout/svg/heart-half-outline.svg +1 -1
  765. package/dist/checkout/svg/heart-half-sharp.svg +1 -1
  766. package/dist/checkout/svg/heart-half.svg +1 -1
  767. package/dist/checkout/svg/heart-outline.svg +1 -1
  768. package/dist/checkout/svg/heart-sharp.svg +1 -1
  769. package/dist/checkout/svg/heart.svg +1 -1
  770. package/dist/checkout/svg/help-buoy-outline.svg +1 -1
  771. package/dist/checkout/svg/help-buoy-sharp.svg +1 -1
  772. package/dist/checkout/svg/help-buoy.svg +1 -1
  773. package/dist/checkout/svg/help-circle-outline.svg +1 -1
  774. package/dist/checkout/svg/help-circle-sharp.svg +1 -1
  775. package/dist/checkout/svg/help-circle.svg +1 -1
  776. package/dist/checkout/svg/help-outline.svg +1 -1
  777. package/dist/checkout/svg/help-sharp.svg +1 -1
  778. package/dist/checkout/svg/help.svg +1 -1
  779. package/dist/checkout/svg/home-outline.svg +1 -1
  780. package/dist/checkout/svg/home-sharp.svg +1 -1
  781. package/dist/checkout/svg/home.svg +1 -1
  782. package/dist/checkout/svg/hourglass-outline.svg +1 -1
  783. package/dist/checkout/svg/hourglass-sharp.svg +1 -1
  784. package/dist/checkout/svg/hourglass.svg +1 -1
  785. package/dist/checkout/svg/ice-cream-outline.svg +1 -1
  786. package/dist/checkout/svg/ice-cream-sharp.svg +1 -1
  787. package/dist/checkout/svg/ice-cream.svg +1 -1
  788. package/dist/checkout/svg/id-card-outline.svg +1 -1
  789. package/dist/checkout/svg/id-card-sharp.svg +1 -1
  790. package/dist/checkout/svg/id-card.svg +1 -1
  791. package/dist/checkout/svg/image-outline.svg +1 -1
  792. package/dist/checkout/svg/image-sharp.svg +1 -1
  793. package/dist/checkout/svg/image.svg +1 -1
  794. package/dist/checkout/svg/images-outline.svg +1 -1
  795. package/dist/checkout/svg/images-sharp.svg +1 -1
  796. package/dist/checkout/svg/images.svg +1 -1
  797. package/dist/checkout/svg/infinite-outline.svg +1 -1
  798. package/dist/checkout/svg/infinite-sharp.svg +1 -1
  799. package/dist/checkout/svg/infinite.svg +1 -1
  800. package/dist/checkout/svg/information-circle-outline.svg +1 -1
  801. package/dist/checkout/svg/information-circle-sharp.svg +1 -1
  802. package/dist/checkout/svg/information-circle.svg +1 -1
  803. package/dist/checkout/svg/information-outline.svg +1 -1
  804. package/dist/checkout/svg/information-sharp.svg +1 -1
  805. package/dist/checkout/svg/information.svg +1 -1
  806. package/dist/checkout/svg/invert-mode-outline.svg +1 -1
  807. package/dist/checkout/svg/invert-mode-sharp.svg +1 -1
  808. package/dist/checkout/svg/invert-mode.svg +1 -1
  809. package/dist/checkout/svg/journal-outline.svg +1 -1
  810. package/dist/checkout/svg/journal-sharp.svg +1 -1
  811. package/dist/checkout/svg/journal.svg +1 -1
  812. package/dist/checkout/svg/key-outline.svg +1 -1
  813. package/dist/checkout/svg/key-sharp.svg +1 -1
  814. package/dist/checkout/svg/key.svg +1 -1
  815. package/dist/checkout/svg/keypad-outline.svg +1 -1
  816. package/dist/checkout/svg/keypad-sharp.svg +1 -1
  817. package/dist/checkout/svg/keypad.svg +1 -1
  818. package/dist/checkout/svg/language-outline.svg +1 -1
  819. package/dist/checkout/svg/language-sharp.svg +1 -1
  820. package/dist/checkout/svg/language.svg +1 -1
  821. package/dist/checkout/svg/laptop-outline.svg +1 -1
  822. package/dist/checkout/svg/laptop-sharp.svg +1 -1
  823. package/dist/checkout/svg/laptop.svg +1 -1
  824. package/dist/checkout/svg/layers-outline.svg +1 -1
  825. package/dist/checkout/svg/layers-sharp.svg +1 -1
  826. package/dist/checkout/svg/layers.svg +1 -1
  827. package/dist/checkout/svg/leaf-outline.svg +1 -1
  828. package/dist/checkout/svg/leaf-sharp.svg +1 -1
  829. package/dist/checkout/svg/leaf.svg +1 -1
  830. package/dist/checkout/svg/library-outline.svg +1 -1
  831. package/dist/checkout/svg/library-sharp.svg +1 -1
  832. package/dist/checkout/svg/library.svg +1 -1
  833. package/dist/checkout/svg/link-outline.svg +1 -1
  834. package/dist/checkout/svg/link-sharp.svg +1 -1
  835. package/dist/checkout/svg/link.svg +1 -1
  836. package/dist/checkout/svg/list-circle-outline.svg +1 -1
  837. package/dist/checkout/svg/list-circle-sharp.svg +1 -1
  838. package/dist/checkout/svg/list-circle.svg +1 -1
  839. package/dist/checkout/svg/list-outline.svg +1 -1
  840. package/dist/checkout/svg/list-sharp.svg +1 -1
  841. package/dist/checkout/svg/list.svg +1 -1
  842. package/dist/checkout/svg/locate-outline.svg +1 -1
  843. package/dist/checkout/svg/locate-sharp.svg +1 -1
  844. package/dist/checkout/svg/locate.svg +1 -1
  845. package/dist/checkout/svg/location-outline.svg +1 -1
  846. package/dist/checkout/svg/location-sharp.svg +1 -1
  847. package/dist/checkout/svg/location.svg +1 -1
  848. package/dist/checkout/svg/lock-closed-outline.svg +1 -1
  849. package/dist/checkout/svg/lock-closed-sharp.svg +1 -1
  850. package/dist/checkout/svg/lock-closed.svg +1 -1
  851. package/dist/checkout/svg/lock-open-outline.svg +1 -1
  852. package/dist/checkout/svg/lock-open-sharp.svg +1 -1
  853. package/dist/checkout/svg/lock-open.svg +1 -1
  854. package/dist/checkout/svg/log-in-outline.svg +1 -1
  855. package/dist/checkout/svg/log-in-sharp.svg +1 -1
  856. package/dist/checkout/svg/log-in.svg +1 -1
  857. package/dist/checkout/svg/log-out-outline.svg +1 -1
  858. package/dist/checkout/svg/log-out-sharp.svg +1 -1
  859. package/dist/checkout/svg/log-out.svg +1 -1
  860. package/dist/checkout/svg/logo-alipay.svg +1 -1
  861. package/dist/checkout/svg/logo-amazon.svg +1 -1
  862. package/dist/checkout/svg/logo-amplify.svg +1 -1
  863. package/dist/checkout/svg/logo-android.svg +1 -1
  864. package/dist/checkout/svg/logo-angular.svg +1 -1
  865. package/dist/checkout/svg/logo-appflow.svg +1 -1
  866. package/dist/checkout/svg/logo-apple-appstore.svg +1 -1
  867. package/dist/checkout/svg/logo-apple-ar.svg +1 -1
  868. package/dist/checkout/svg/logo-apple.svg +1 -1
  869. package/dist/checkout/svg/logo-behance.svg +1 -1
  870. package/dist/checkout/svg/logo-bitbucket.svg +1 -1
  871. package/dist/checkout/svg/logo-bitcoin.svg +1 -1
  872. package/dist/checkout/svg/logo-buffer.svg +1 -1
  873. package/dist/checkout/svg/logo-capacitor.svg +1 -1
  874. package/dist/checkout/svg/logo-chrome.svg +1 -1
  875. package/dist/checkout/svg/logo-closed-captioning.svg +1 -1
  876. package/dist/checkout/svg/logo-codepen.svg +1 -1
  877. package/dist/checkout/svg/logo-css3.svg +1 -1
  878. package/dist/checkout/svg/logo-designernews.svg +1 -1
  879. package/dist/checkout/svg/logo-deviantart.svg +1 -1
  880. package/dist/checkout/svg/logo-discord.svg +1 -1
  881. package/dist/checkout/svg/logo-docker.svg +1 -1
  882. package/dist/checkout/svg/logo-dribbble.svg +1 -1
  883. package/dist/checkout/svg/logo-dropbox.svg +1 -1
  884. package/dist/checkout/svg/logo-edge.svg +1 -1
  885. package/dist/checkout/svg/logo-electron.svg +1 -1
  886. package/dist/checkout/svg/logo-euro.svg +1 -1
  887. package/dist/checkout/svg/logo-facebook.svg +1 -1
  888. package/dist/checkout/svg/logo-figma.svg +1 -1
  889. package/dist/checkout/svg/logo-firebase.svg +1 -1
  890. package/dist/checkout/svg/logo-firefox.svg +1 -1
  891. package/dist/checkout/svg/logo-flickr.svg +1 -1
  892. package/dist/checkout/svg/logo-foursquare.svg +1 -1
  893. package/dist/checkout/svg/logo-github.svg +1 -1
  894. package/dist/checkout/svg/logo-gitlab.svg +1 -1
  895. package/dist/checkout/svg/logo-google-playstore.svg +1 -1
  896. package/dist/checkout/svg/logo-google.svg +1 -1
  897. package/dist/checkout/svg/logo-hackernews.svg +1 -1
  898. package/dist/checkout/svg/logo-html5.svg +1 -1
  899. package/dist/checkout/svg/logo-instagram.svg +1 -1
  900. package/dist/checkout/svg/logo-ionic.svg +1 -1
  901. package/dist/checkout/svg/logo-ionitron.svg +1 -1
  902. package/dist/checkout/svg/logo-javascript.svg +1 -1
  903. package/dist/checkout/svg/logo-laravel.svg +1 -1
  904. package/dist/checkout/svg/logo-linkedin.svg +1 -1
  905. package/dist/checkout/svg/logo-markdown.svg +1 -1
  906. package/dist/checkout/svg/logo-mastodon.svg +1 -1
  907. package/dist/checkout/svg/logo-medium.svg +1 -1
  908. package/dist/checkout/svg/logo-microsoft.svg +1 -1
  909. package/dist/checkout/svg/logo-no-smoking.svg +1 -1
  910. package/dist/checkout/svg/logo-nodejs.svg +1 -1
  911. package/dist/checkout/svg/logo-npm.svg +1 -1
  912. package/dist/checkout/svg/logo-octocat.svg +1 -1
  913. package/dist/checkout/svg/logo-paypal.svg +1 -1
  914. package/dist/checkout/svg/logo-pinterest.svg +1 -1
  915. package/dist/checkout/svg/logo-playstation.svg +1 -1
  916. package/dist/checkout/svg/logo-pwa.svg +1 -1
  917. package/dist/checkout/svg/logo-python.svg +1 -1
  918. package/dist/checkout/svg/logo-react.svg +1 -1
  919. package/dist/checkout/svg/logo-reddit.svg +1 -1
  920. package/dist/checkout/svg/logo-rss.svg +1 -1
  921. package/dist/checkout/svg/logo-sass.svg +1 -1
  922. package/dist/checkout/svg/logo-skype.svg +1 -1
  923. package/dist/checkout/svg/logo-slack.svg +1 -1
  924. package/dist/checkout/svg/logo-snapchat.svg +1 -1
  925. package/dist/checkout/svg/logo-soundcloud.svg +1 -1
  926. package/dist/checkout/svg/logo-stackoverflow.svg +1 -1
  927. package/dist/checkout/svg/logo-steam.svg +1 -1
  928. package/dist/checkout/svg/logo-stencil.svg +1 -1
  929. package/dist/checkout/svg/logo-tableau.svg +1 -1
  930. package/dist/checkout/svg/logo-tiktok.svg +1 -1
  931. package/dist/checkout/svg/logo-trapeze.svg +1 -1
  932. package/dist/checkout/svg/logo-tumblr.svg +1 -1
  933. package/dist/checkout/svg/logo-tux.svg +1 -1
  934. package/dist/checkout/svg/logo-twitch.svg +1 -1
  935. package/dist/checkout/svg/logo-twitter.svg +1 -1
  936. package/dist/checkout/svg/logo-usd.svg +1 -1
  937. package/dist/checkout/svg/logo-venmo.svg +1 -1
  938. package/dist/checkout/svg/logo-vercel.svg +1 -1
  939. package/dist/checkout/svg/logo-vimeo.svg +1 -1
  940. package/dist/checkout/svg/logo-vk.svg +1 -1
  941. package/dist/checkout/svg/logo-vue.svg +1 -1
  942. package/dist/checkout/svg/logo-web-component.svg +1 -1
  943. package/dist/checkout/svg/logo-wechat.svg +1 -1
  944. package/dist/checkout/svg/logo-whatsapp.svg +1 -1
  945. package/dist/checkout/svg/logo-windows.svg +1 -1
  946. package/dist/checkout/svg/logo-wordpress.svg +1 -1
  947. package/dist/checkout/svg/logo-x.svg +1 -1
  948. package/dist/checkout/svg/logo-xbox.svg +1 -1
  949. package/dist/checkout/svg/logo-xing.svg +1 -1
  950. package/dist/checkout/svg/logo-yahoo.svg +1 -1
  951. package/dist/checkout/svg/logo-yen.svg +1 -1
  952. package/dist/checkout/svg/logo-youtube.svg +1 -1
  953. package/dist/checkout/svg/magnet-outline.svg +1 -1
  954. package/dist/checkout/svg/magnet-sharp.svg +1 -1
  955. package/dist/checkout/svg/magnet.svg +1 -1
  956. package/dist/checkout/svg/mail-open-outline.svg +1 -1
  957. package/dist/checkout/svg/mail-open-sharp.svg +1 -1
  958. package/dist/checkout/svg/mail-open.svg +1 -1
  959. package/dist/checkout/svg/mail-outline.svg +1 -1
  960. package/dist/checkout/svg/mail-sharp.svg +1 -1
  961. package/dist/checkout/svg/mail-unread-outline.svg +1 -1
  962. package/dist/checkout/svg/mail-unread-sharp.svg +1 -1
  963. package/dist/checkout/svg/mail-unread.svg +1 -1
  964. package/dist/checkout/svg/mail.svg +1 -1
  965. package/dist/checkout/svg/male-female-outline.svg +1 -1
  966. package/dist/checkout/svg/male-female-sharp.svg +1 -1
  967. package/dist/checkout/svg/male-female.svg +1 -1
  968. package/dist/checkout/svg/male-outline.svg +1 -1
  969. package/dist/checkout/svg/male-sharp.svg +1 -1
  970. package/dist/checkout/svg/male.svg +1 -1
  971. package/dist/checkout/svg/man-outline.svg +1 -1
  972. package/dist/checkout/svg/man-sharp.svg +1 -1
  973. package/dist/checkout/svg/man.svg +1 -1
  974. package/dist/checkout/svg/map-outline.svg +1 -1
  975. package/dist/checkout/svg/map-sharp.svg +1 -1
  976. package/dist/checkout/svg/map.svg +1 -1
  977. package/dist/checkout/svg/medal-outline.svg +1 -1
  978. package/dist/checkout/svg/medal-sharp.svg +1 -1
  979. package/dist/checkout/svg/medal.svg +1 -1
  980. package/dist/checkout/svg/medical-outline.svg +1 -1
  981. package/dist/checkout/svg/medical-sharp.svg +1 -1
  982. package/dist/checkout/svg/medical.svg +1 -1
  983. package/dist/checkout/svg/medkit-outline.svg +1 -1
  984. package/dist/checkout/svg/medkit-sharp.svg +1 -1
  985. package/dist/checkout/svg/medkit.svg +1 -1
  986. package/dist/checkout/svg/megaphone-outline.svg +1 -1
  987. package/dist/checkout/svg/megaphone-sharp.svg +1 -1
  988. package/dist/checkout/svg/megaphone.svg +1 -1
  989. package/dist/checkout/svg/menu-outline.svg +1 -1
  990. package/dist/checkout/svg/menu-sharp.svg +1 -1
  991. package/dist/checkout/svg/menu.svg +1 -1
  992. package/dist/checkout/svg/mic-circle-outline.svg +1 -1
  993. package/dist/checkout/svg/mic-circle-sharp.svg +1 -1
  994. package/dist/checkout/svg/mic-circle.svg +1 -1
  995. package/dist/checkout/svg/mic-off-circle-outline.svg +1 -1
  996. package/dist/checkout/svg/mic-off-circle-sharp.svg +1 -1
  997. package/dist/checkout/svg/mic-off-circle.svg +1 -1
  998. package/dist/checkout/svg/mic-off-outline.svg +1 -1
  999. package/dist/checkout/svg/mic-off-sharp.svg +1 -1
  1000. package/dist/checkout/svg/mic-off.svg +1 -1
  1001. package/dist/checkout/svg/mic-outline.svg +1 -1
  1002. package/dist/checkout/svg/mic-sharp.svg +1 -1
  1003. package/dist/checkout/svg/mic.svg +1 -1
  1004. package/dist/checkout/svg/moon-outline.svg +1 -1
  1005. package/dist/checkout/svg/moon-sharp.svg +1 -1
  1006. package/dist/checkout/svg/moon.svg +1 -1
  1007. package/dist/checkout/svg/move-outline.svg +1 -1
  1008. package/dist/checkout/svg/move-sharp.svg +1 -1
  1009. package/dist/checkout/svg/move.svg +1 -1
  1010. package/dist/checkout/svg/musical-note-outline.svg +1 -1
  1011. package/dist/checkout/svg/musical-note-sharp.svg +1 -1
  1012. package/dist/checkout/svg/musical-note.svg +1 -1
  1013. package/dist/checkout/svg/musical-notes-outline.svg +1 -1
  1014. package/dist/checkout/svg/musical-notes-sharp.svg +1 -1
  1015. package/dist/checkout/svg/musical-notes.svg +1 -1
  1016. package/dist/checkout/svg/navigate-circle-outline.svg +1 -1
  1017. package/dist/checkout/svg/navigate-circle-sharp.svg +1 -1
  1018. package/dist/checkout/svg/navigate-circle.svg +1 -1
  1019. package/dist/checkout/svg/navigate-outline.svg +1 -1
  1020. package/dist/checkout/svg/navigate-sharp.svg +1 -1
  1021. package/dist/checkout/svg/navigate.svg +1 -1
  1022. package/dist/checkout/svg/newspaper-outline.svg +1 -1
  1023. package/dist/checkout/svg/newspaper-sharp.svg +1 -1
  1024. package/dist/checkout/svg/newspaper.svg +1 -1
  1025. package/dist/checkout/svg/notifications-circle-outline.svg +1 -1
  1026. package/dist/checkout/svg/notifications-circle-sharp.svg +1 -1
  1027. package/dist/checkout/svg/notifications-circle.svg +1 -1
  1028. package/dist/checkout/svg/notifications-off-circle-outline.svg +1 -1
  1029. package/dist/checkout/svg/notifications-off-circle-sharp.svg +1 -1
  1030. package/dist/checkout/svg/notifications-off-circle.svg +1 -1
  1031. package/dist/checkout/svg/notifications-off-outline.svg +1 -1
  1032. package/dist/checkout/svg/notifications-off-sharp.svg +1 -1
  1033. package/dist/checkout/svg/notifications-off.svg +1 -1
  1034. package/dist/checkout/svg/notifications-outline.svg +1 -1
  1035. package/dist/checkout/svg/notifications-sharp.svg +1 -1
  1036. package/dist/checkout/svg/notifications.svg +1 -1
  1037. package/dist/checkout/svg/nuclear-outline.svg +1 -1
  1038. package/dist/checkout/svg/nuclear-sharp.svg +1 -1
  1039. package/dist/checkout/svg/nuclear.svg +1 -1
  1040. package/dist/checkout/svg/nutrition-outline.svg +1 -1
  1041. package/dist/checkout/svg/nutrition-sharp.svg +1 -1
  1042. package/dist/checkout/svg/nutrition.svg +1 -1
  1043. package/dist/checkout/svg/open-outline.svg +1 -1
  1044. package/dist/checkout/svg/open-sharp.svg +1 -1
  1045. package/dist/checkout/svg/open.svg +1 -1
  1046. package/dist/checkout/svg/options-outline.svg +1 -1
  1047. package/dist/checkout/svg/options-sharp.svg +1 -1
  1048. package/dist/checkout/svg/options.svg +1 -1
  1049. package/dist/checkout/svg/paper-plane-outline.svg +1 -1
  1050. package/dist/checkout/svg/paper-plane-sharp.svg +1 -1
  1051. package/dist/checkout/svg/paper-plane.svg +1 -1
  1052. package/dist/checkout/svg/partly-sunny-outline.svg +1 -1
  1053. package/dist/checkout/svg/partly-sunny-sharp.svg +1 -1
  1054. package/dist/checkout/svg/partly-sunny.svg +1 -1
  1055. package/dist/checkout/svg/pause-circle-outline.svg +1 -1
  1056. package/dist/checkout/svg/pause-circle-sharp.svg +1 -1
  1057. package/dist/checkout/svg/pause-circle.svg +1 -1
  1058. package/dist/checkout/svg/pause-outline.svg +1 -1
  1059. package/dist/checkout/svg/pause-sharp.svg +1 -1
  1060. package/dist/checkout/svg/pause.svg +1 -1
  1061. package/dist/checkout/svg/paw-outline.svg +1 -1
  1062. package/dist/checkout/svg/paw-sharp.svg +1 -1
  1063. package/dist/checkout/svg/paw.svg +1 -1
  1064. package/dist/checkout/svg/pencil-outline.svg +1 -1
  1065. package/dist/checkout/svg/pencil-sharp.svg +1 -1
  1066. package/dist/checkout/svg/pencil.svg +1 -1
  1067. package/dist/checkout/svg/people-circle-outline.svg +1 -1
  1068. package/dist/checkout/svg/people-circle-sharp.svg +1 -1
  1069. package/dist/checkout/svg/people-circle.svg +1 -1
  1070. package/dist/checkout/svg/people-outline.svg +1 -1
  1071. package/dist/checkout/svg/people-sharp.svg +1 -1
  1072. package/dist/checkout/svg/people.svg +1 -1
  1073. package/dist/checkout/svg/person-add-outline.svg +1 -1
  1074. package/dist/checkout/svg/person-add-sharp.svg +1 -1
  1075. package/dist/checkout/svg/person-add.svg +1 -1
  1076. package/dist/checkout/svg/person-circle-outline.svg +1 -1
  1077. package/dist/checkout/svg/person-circle-sharp.svg +1 -1
  1078. package/dist/checkout/svg/person-circle.svg +1 -1
  1079. package/dist/checkout/svg/person-outline.svg +1 -1
  1080. package/dist/checkout/svg/person-remove-outline.svg +1 -1
  1081. package/dist/checkout/svg/person-remove-sharp.svg +1 -1
  1082. package/dist/checkout/svg/person-remove.svg +1 -1
  1083. package/dist/checkout/svg/person-sharp.svg +1 -1
  1084. package/dist/checkout/svg/person.svg +1 -1
  1085. package/dist/checkout/svg/phone-landscape-outline.svg +1 -1
  1086. package/dist/checkout/svg/phone-landscape-sharp.svg +1 -1
  1087. package/dist/checkout/svg/phone-landscape.svg +1 -1
  1088. package/dist/checkout/svg/phone-portrait-outline.svg +1 -1
  1089. package/dist/checkout/svg/phone-portrait-sharp.svg +1 -1
  1090. package/dist/checkout/svg/phone-portrait.svg +1 -1
  1091. package/dist/checkout/svg/pie-chart-outline.svg +1 -1
  1092. package/dist/checkout/svg/pie-chart-sharp.svg +1 -1
  1093. package/dist/checkout/svg/pie-chart.svg +1 -1
  1094. package/dist/checkout/svg/pin-outline.svg +1 -1
  1095. package/dist/checkout/svg/pin-sharp.svg +1 -1
  1096. package/dist/checkout/svg/pin.svg +1 -1
  1097. package/dist/checkout/svg/pint-outline.svg +1 -1
  1098. package/dist/checkout/svg/pint-sharp.svg +1 -1
  1099. package/dist/checkout/svg/pint.svg +1 -1
  1100. package/dist/checkout/svg/pizza-outline.svg +1 -1
  1101. package/dist/checkout/svg/pizza-sharp.svg +1 -1
  1102. package/dist/checkout/svg/pizza.svg +1 -1
  1103. package/dist/checkout/svg/planet-outline.svg +1 -1
  1104. package/dist/checkout/svg/planet-sharp.svg +1 -1
  1105. package/dist/checkout/svg/planet.svg +1 -1
  1106. package/dist/checkout/svg/play-back-circle-outline.svg +1 -1
  1107. package/dist/checkout/svg/play-back-circle-sharp.svg +1 -1
  1108. package/dist/checkout/svg/play-back-circle.svg +1 -1
  1109. package/dist/checkout/svg/play-back-outline.svg +1 -1
  1110. package/dist/checkout/svg/play-back-sharp.svg +1 -1
  1111. package/dist/checkout/svg/play-back.svg +1 -1
  1112. package/dist/checkout/svg/play-circle-outline.svg +1 -1
  1113. package/dist/checkout/svg/play-circle-sharp.svg +1 -1
  1114. package/dist/checkout/svg/play-circle.svg +1 -1
  1115. package/dist/checkout/svg/play-forward-circle-outline.svg +1 -1
  1116. package/dist/checkout/svg/play-forward-circle-sharp.svg +1 -1
  1117. package/dist/checkout/svg/play-forward-circle.svg +1 -1
  1118. package/dist/checkout/svg/play-forward-outline.svg +1 -1
  1119. package/dist/checkout/svg/play-forward-sharp.svg +1 -1
  1120. package/dist/checkout/svg/play-forward.svg +1 -1
  1121. package/dist/checkout/svg/play-outline.svg +1 -1
  1122. package/dist/checkout/svg/play-sharp.svg +1 -1
  1123. package/dist/checkout/svg/play-skip-back-circle-outline.svg +1 -1
  1124. package/dist/checkout/svg/play-skip-back-circle-sharp.svg +1 -1
  1125. package/dist/checkout/svg/play-skip-back-circle.svg +1 -1
  1126. package/dist/checkout/svg/play-skip-back-outline.svg +1 -1
  1127. package/dist/checkout/svg/play-skip-back-sharp.svg +1 -1
  1128. package/dist/checkout/svg/play-skip-back.svg +1 -1
  1129. package/dist/checkout/svg/play-skip-forward-circle-outline.svg +1 -1
  1130. package/dist/checkout/svg/play-skip-forward-circle-sharp.svg +1 -1
  1131. package/dist/checkout/svg/play-skip-forward-circle.svg +1 -1
  1132. package/dist/checkout/svg/play-skip-forward-outline.svg +1 -1
  1133. package/dist/checkout/svg/play-skip-forward-sharp.svg +1 -1
  1134. package/dist/checkout/svg/play-skip-forward.svg +1 -1
  1135. package/dist/checkout/svg/play.svg +1 -1
  1136. package/dist/checkout/svg/podium-outline.svg +1 -1
  1137. package/dist/checkout/svg/podium-sharp.svg +1 -1
  1138. package/dist/checkout/svg/podium.svg +1 -1
  1139. package/dist/checkout/svg/power-outline.svg +1 -1
  1140. package/dist/checkout/svg/power-sharp.svg +1 -1
  1141. package/dist/checkout/svg/power.svg +1 -1
  1142. package/dist/checkout/svg/pricetag-outline.svg +1 -1
  1143. package/dist/checkout/svg/pricetag-sharp.svg +1 -1
  1144. package/dist/checkout/svg/pricetag.svg +1 -1
  1145. package/dist/checkout/svg/pricetags-outline.svg +1 -1
  1146. package/dist/checkout/svg/pricetags-sharp.svg +1 -1
  1147. package/dist/checkout/svg/pricetags.svg +1 -1
  1148. package/dist/checkout/svg/print-outline.svg +1 -1
  1149. package/dist/checkout/svg/print-sharp.svg +1 -1
  1150. package/dist/checkout/svg/print.svg +1 -1
  1151. package/dist/checkout/svg/prism-outline.svg +1 -1
  1152. package/dist/checkout/svg/prism-sharp.svg +1 -1
  1153. package/dist/checkout/svg/prism.svg +1 -1
  1154. package/dist/checkout/svg/pulse-outline.svg +1 -1
  1155. package/dist/checkout/svg/pulse-sharp.svg +1 -1
  1156. package/dist/checkout/svg/pulse.svg +1 -1
  1157. package/dist/checkout/svg/push-outline.svg +1 -1
  1158. package/dist/checkout/svg/push-sharp.svg +1 -1
  1159. package/dist/checkout/svg/push.svg +1 -1
  1160. package/dist/checkout/svg/qr-code-outline.svg +1 -1
  1161. package/dist/checkout/svg/qr-code-sharp.svg +1 -1
  1162. package/dist/checkout/svg/qr-code.svg +1 -1
  1163. package/dist/checkout/svg/radio-button-off-outline.svg +1 -1
  1164. package/dist/checkout/svg/radio-button-off-sharp.svg +1 -1
  1165. package/dist/checkout/svg/radio-button-off.svg +1 -1
  1166. package/dist/checkout/svg/radio-button-on-outline.svg +1 -1
  1167. package/dist/checkout/svg/radio-button-on-sharp.svg +1 -1
  1168. package/dist/checkout/svg/radio-button-on.svg +1 -1
  1169. package/dist/checkout/svg/radio-outline.svg +1 -1
  1170. package/dist/checkout/svg/radio-sharp.svg +1 -1
  1171. package/dist/checkout/svg/radio.svg +1 -1
  1172. package/dist/checkout/svg/rainy-outline.svg +1 -1
  1173. package/dist/checkout/svg/rainy-sharp.svg +1 -1
  1174. package/dist/checkout/svg/rainy.svg +1 -1
  1175. package/dist/checkout/svg/reader-outline.svg +1 -1
  1176. package/dist/checkout/svg/reader-sharp.svg +1 -1
  1177. package/dist/checkout/svg/reader.svg +1 -1
  1178. package/dist/checkout/svg/receipt-outline.svg +1 -1
  1179. package/dist/checkout/svg/receipt-sharp.svg +1 -1
  1180. package/dist/checkout/svg/receipt.svg +1 -1
  1181. package/dist/checkout/svg/recording-outline.svg +1 -1
  1182. package/dist/checkout/svg/recording-sharp.svg +1 -1
  1183. package/dist/checkout/svg/recording.svg +1 -1
  1184. package/dist/checkout/svg/refresh-circle-outline.svg +1 -1
  1185. package/dist/checkout/svg/refresh-circle-sharp.svg +1 -1
  1186. package/dist/checkout/svg/refresh-circle.svg +1 -1
  1187. package/dist/checkout/svg/refresh-outline.svg +1 -1
  1188. package/dist/checkout/svg/refresh-sharp.svg +1 -1
  1189. package/dist/checkout/svg/refresh.svg +1 -1
  1190. package/dist/checkout/svg/reload-circle-outline.svg +1 -1
  1191. package/dist/checkout/svg/reload-circle-sharp.svg +1 -1
  1192. package/dist/checkout/svg/reload-circle.svg +1 -1
  1193. package/dist/checkout/svg/reload-outline.svg +1 -1
  1194. package/dist/checkout/svg/reload-sharp.svg +1 -1
  1195. package/dist/checkout/svg/reload.svg +1 -1
  1196. package/dist/checkout/svg/remove-circle-outline.svg +1 -1
  1197. package/dist/checkout/svg/remove-circle-sharp.svg +1 -1
  1198. package/dist/checkout/svg/remove-circle.svg +1 -1
  1199. package/dist/checkout/svg/remove-outline.svg +1 -1
  1200. package/dist/checkout/svg/remove-sharp.svg +1 -1
  1201. package/dist/checkout/svg/remove.svg +1 -1
  1202. package/dist/checkout/svg/reorder-four-outline.svg +1 -1
  1203. package/dist/checkout/svg/reorder-four-sharp.svg +1 -1
  1204. package/dist/checkout/svg/reorder-four.svg +1 -1
  1205. package/dist/checkout/svg/reorder-three-outline.svg +1 -1
  1206. package/dist/checkout/svg/reorder-three-sharp.svg +1 -1
  1207. package/dist/checkout/svg/reorder-three.svg +1 -1
  1208. package/dist/checkout/svg/reorder-two-outline.svg +1 -1
  1209. package/dist/checkout/svg/reorder-two-sharp.svg +1 -1
  1210. package/dist/checkout/svg/reorder-two.svg +1 -1
  1211. package/dist/checkout/svg/repeat-outline.svg +1 -1
  1212. package/dist/checkout/svg/repeat-sharp.svg +1 -1
  1213. package/dist/checkout/svg/repeat.svg +1 -1
  1214. package/dist/checkout/svg/resize-outline.svg +1 -1
  1215. package/dist/checkout/svg/resize-sharp.svg +1 -1
  1216. package/dist/checkout/svg/resize.svg +1 -1
  1217. package/dist/checkout/svg/restaurant-outline.svg +1 -1
  1218. package/dist/checkout/svg/restaurant-sharp.svg +1 -1
  1219. package/dist/checkout/svg/restaurant.svg +1 -1
  1220. package/dist/checkout/svg/return-down-back-outline.svg +1 -1
  1221. package/dist/checkout/svg/return-down-back-sharp.svg +1 -1
  1222. package/dist/checkout/svg/return-down-back.svg +1 -1
  1223. package/dist/checkout/svg/return-down-forward-outline.svg +1 -1
  1224. package/dist/checkout/svg/return-down-forward-sharp.svg +1 -1
  1225. package/dist/checkout/svg/return-down-forward.svg +1 -1
  1226. package/dist/checkout/svg/return-up-back-outline.svg +1 -1
  1227. package/dist/checkout/svg/return-up-back-sharp.svg +1 -1
  1228. package/dist/checkout/svg/return-up-back.svg +1 -1
  1229. package/dist/checkout/svg/return-up-forward-outline.svg +1 -1
  1230. package/dist/checkout/svg/return-up-forward-sharp.svg +1 -1
  1231. package/dist/checkout/svg/return-up-forward.svg +1 -1
  1232. package/dist/checkout/svg/ribbon-outline.svg +1 -1
  1233. package/dist/checkout/svg/ribbon-sharp.svg +1 -1
  1234. package/dist/checkout/svg/ribbon.svg +1 -1
  1235. package/dist/checkout/svg/rocket-outline.svg +1 -1
  1236. package/dist/checkout/svg/rocket-sharp.svg +1 -1
  1237. package/dist/checkout/svg/rocket.svg +1 -1
  1238. package/dist/checkout/svg/rose-outline.svg +1 -1
  1239. package/dist/checkout/svg/rose-sharp.svg +1 -1
  1240. package/dist/checkout/svg/rose.svg +1 -1
  1241. package/dist/checkout/svg/sad-outline.svg +1 -1
  1242. package/dist/checkout/svg/sad-sharp.svg +1 -1
  1243. package/dist/checkout/svg/sad.svg +1 -1
  1244. package/dist/checkout/svg/save-outline.svg +1 -1
  1245. package/dist/checkout/svg/save-sharp.svg +1 -1
  1246. package/dist/checkout/svg/save.svg +1 -1
  1247. package/dist/checkout/svg/scale-outline.svg +1 -1
  1248. package/dist/checkout/svg/scale-sharp.svg +1 -1
  1249. package/dist/checkout/svg/scale.svg +1 -1
  1250. package/dist/checkout/svg/scan-circle-outline.svg +1 -1
  1251. package/dist/checkout/svg/scan-circle-sharp.svg +1 -1
  1252. package/dist/checkout/svg/scan-circle.svg +1 -1
  1253. package/dist/checkout/svg/scan-outline.svg +1 -1
  1254. package/dist/checkout/svg/scan-sharp.svg +1 -1
  1255. package/dist/checkout/svg/scan.svg +1 -1
  1256. package/dist/checkout/svg/school-outline.svg +1 -1
  1257. package/dist/checkout/svg/school-sharp.svg +1 -1
  1258. package/dist/checkout/svg/school.svg +1 -1
  1259. package/dist/checkout/svg/search-circle-outline.svg +1 -1
  1260. package/dist/checkout/svg/search-circle-sharp.svg +1 -1
  1261. package/dist/checkout/svg/search-circle.svg +1 -1
  1262. package/dist/checkout/svg/search-outline.svg +1 -1
  1263. package/dist/checkout/svg/search-sharp.svg +1 -1
  1264. package/dist/checkout/svg/search.svg +1 -1
  1265. package/dist/checkout/svg/send-outline.svg +1 -1
  1266. package/dist/checkout/svg/send-sharp.svg +1 -1
  1267. package/dist/checkout/svg/send.svg +1 -1
  1268. package/dist/checkout/svg/server-outline.svg +1 -1
  1269. package/dist/checkout/svg/server-sharp.svg +1 -1
  1270. package/dist/checkout/svg/server.svg +1 -1
  1271. package/dist/checkout/svg/settings-outline.svg +1 -1
  1272. package/dist/checkout/svg/settings-sharp.svg +1 -1
  1273. package/dist/checkout/svg/settings.svg +1 -1
  1274. package/dist/checkout/svg/shapes-outline.svg +1 -1
  1275. package/dist/checkout/svg/shapes-sharp.svg +1 -1
  1276. package/dist/checkout/svg/shapes.svg +1 -1
  1277. package/dist/checkout/svg/share-outline.svg +1 -1
  1278. package/dist/checkout/svg/share-sharp.svg +1 -1
  1279. package/dist/checkout/svg/share-social-outline.svg +1 -1
  1280. package/dist/checkout/svg/share-social-sharp.svg +1 -1
  1281. package/dist/checkout/svg/share-social.svg +1 -1
  1282. package/dist/checkout/svg/share.svg +1 -1
  1283. package/dist/checkout/svg/shield-checkmark-outline.svg +1 -1
  1284. package/dist/checkout/svg/shield-checkmark-sharp.svg +1 -1
  1285. package/dist/checkout/svg/shield-checkmark.svg +1 -1
  1286. package/dist/checkout/svg/shield-half-outline.svg +1 -1
  1287. package/dist/checkout/svg/shield-half-sharp.svg +1 -1
  1288. package/dist/checkout/svg/shield-half.svg +1 -1
  1289. package/dist/checkout/svg/shield-outline.svg +1 -1
  1290. package/dist/checkout/svg/shield-sharp.svg +1 -1
  1291. package/dist/checkout/svg/shield.svg +1 -1
  1292. package/dist/checkout/svg/shirt-outline.svg +1 -1
  1293. package/dist/checkout/svg/shirt-sharp.svg +1 -1
  1294. package/dist/checkout/svg/shirt.svg +1 -1
  1295. package/dist/checkout/svg/shuffle-outline.svg +1 -1
  1296. package/dist/checkout/svg/shuffle-sharp.svg +1 -1
  1297. package/dist/checkout/svg/shuffle.svg +1 -1
  1298. package/dist/checkout/svg/skull-outline.svg +1 -1
  1299. package/dist/checkout/svg/skull-sharp.svg +1 -1
  1300. package/dist/checkout/svg/skull.svg +1 -1
  1301. package/dist/checkout/svg/snow-outline.svg +1 -1
  1302. package/dist/checkout/svg/snow-sharp.svg +1 -1
  1303. package/dist/checkout/svg/snow.svg +1 -1
  1304. package/dist/checkout/svg/sparkles-outline.svg +1 -1
  1305. package/dist/checkout/svg/sparkles-sharp.svg +1 -1
  1306. package/dist/checkout/svg/sparkles.svg +1 -1
  1307. package/dist/checkout/svg/speedometer-outline.svg +1 -1
  1308. package/dist/checkout/svg/speedometer-sharp.svg +1 -1
  1309. package/dist/checkout/svg/speedometer.svg +1 -1
  1310. package/dist/checkout/svg/square-outline.svg +1 -1
  1311. package/dist/checkout/svg/square-sharp.svg +1 -1
  1312. package/dist/checkout/svg/square.svg +1 -1
  1313. package/dist/checkout/svg/star-half-outline.svg +1 -1
  1314. package/dist/checkout/svg/star-half-sharp.svg +1 -1
  1315. package/dist/checkout/svg/star-half.svg +1 -1
  1316. package/dist/checkout/svg/star-outline.svg +1 -1
  1317. package/dist/checkout/svg/star-sharp.svg +1 -1
  1318. package/dist/checkout/svg/star.svg +1 -1
  1319. package/dist/checkout/svg/stats-chart-outline.svg +1 -1
  1320. package/dist/checkout/svg/stats-chart-sharp.svg +1 -1
  1321. package/dist/checkout/svg/stats-chart.svg +1 -1
  1322. package/dist/checkout/svg/stop-circle-outline.svg +1 -1
  1323. package/dist/checkout/svg/stop-circle-sharp.svg +1 -1
  1324. package/dist/checkout/svg/stop-circle.svg +1 -1
  1325. package/dist/checkout/svg/stop-outline.svg +1 -1
  1326. package/dist/checkout/svg/stop-sharp.svg +1 -1
  1327. package/dist/checkout/svg/stop.svg +1 -1
  1328. package/dist/checkout/svg/stopwatch-outline.svg +1 -1
  1329. package/dist/checkout/svg/stopwatch-sharp.svg +1 -1
  1330. package/dist/checkout/svg/stopwatch.svg +1 -1
  1331. package/dist/checkout/svg/storefront-outline.svg +1 -1
  1332. package/dist/checkout/svg/storefront-sharp.svg +1 -1
  1333. package/dist/checkout/svg/storefront.svg +1 -1
  1334. package/dist/checkout/svg/subway-outline.svg +1 -1
  1335. package/dist/checkout/svg/subway-sharp.svg +1 -1
  1336. package/dist/checkout/svg/subway.svg +1 -1
  1337. package/dist/checkout/svg/sunny-outline.svg +1 -1
  1338. package/dist/checkout/svg/sunny-sharp.svg +1 -1
  1339. package/dist/checkout/svg/sunny.svg +1 -1
  1340. package/dist/checkout/svg/swap-horizontal-outline.svg +1 -1
  1341. package/dist/checkout/svg/swap-horizontal-sharp.svg +1 -1
  1342. package/dist/checkout/svg/swap-horizontal.svg +1 -1
  1343. package/dist/checkout/svg/swap-vertical-outline.svg +1 -1
  1344. package/dist/checkout/svg/swap-vertical-sharp.svg +1 -1
  1345. package/dist/checkout/svg/swap-vertical.svg +1 -1
  1346. package/dist/checkout/svg/sync-circle-outline.svg +1 -1
  1347. package/dist/checkout/svg/sync-circle-sharp.svg +1 -1
  1348. package/dist/checkout/svg/sync-circle.svg +1 -1
  1349. package/dist/checkout/svg/sync-outline.svg +1 -1
  1350. package/dist/checkout/svg/sync-sharp.svg +1 -1
  1351. package/dist/checkout/svg/sync.svg +1 -1
  1352. package/dist/checkout/svg/tablet-landscape-outline.svg +1 -1
  1353. package/dist/checkout/svg/tablet-landscape-sharp.svg +1 -1
  1354. package/dist/checkout/svg/tablet-landscape.svg +1 -1
  1355. package/dist/checkout/svg/tablet-portrait-outline.svg +1 -1
  1356. package/dist/checkout/svg/tablet-portrait-sharp.svg +1 -1
  1357. package/dist/checkout/svg/tablet-portrait.svg +1 -1
  1358. package/dist/checkout/svg/telescope-outline.svg +1 -1
  1359. package/dist/checkout/svg/telescope-sharp.svg +1 -1
  1360. package/dist/checkout/svg/telescope.svg +1 -1
  1361. package/dist/checkout/svg/tennisball-outline.svg +1 -1
  1362. package/dist/checkout/svg/tennisball-sharp.svg +1 -1
  1363. package/dist/checkout/svg/tennisball.svg +1 -1
  1364. package/dist/checkout/svg/terminal-outline.svg +1 -1
  1365. package/dist/checkout/svg/terminal-sharp.svg +1 -1
  1366. package/dist/checkout/svg/terminal.svg +1 -1
  1367. package/dist/checkout/svg/text-outline.svg +1 -1
  1368. package/dist/checkout/svg/text-sharp.svg +1 -1
  1369. package/dist/checkout/svg/text.svg +1 -1
  1370. package/dist/checkout/svg/thermometer-outline.svg +1 -1
  1371. package/dist/checkout/svg/thermometer-sharp.svg +1 -1
  1372. package/dist/checkout/svg/thermometer.svg +1 -1
  1373. package/dist/checkout/svg/thumbs-down-outline.svg +1 -1
  1374. package/dist/checkout/svg/thumbs-down-sharp.svg +1 -1
  1375. package/dist/checkout/svg/thumbs-down.svg +1 -1
  1376. package/dist/checkout/svg/thumbs-up-outline.svg +1 -1
  1377. package/dist/checkout/svg/thumbs-up-sharp.svg +1 -1
  1378. package/dist/checkout/svg/thumbs-up.svg +1 -1
  1379. package/dist/checkout/svg/thunderstorm-outline.svg +1 -1
  1380. package/dist/checkout/svg/thunderstorm-sharp.svg +1 -1
  1381. package/dist/checkout/svg/thunderstorm.svg +1 -1
  1382. package/dist/checkout/svg/ticket-outline.svg +1 -1
  1383. package/dist/checkout/svg/ticket-sharp.svg +1 -1
  1384. package/dist/checkout/svg/ticket.svg +1 -1
  1385. package/dist/checkout/svg/time-outline.svg +1 -1
  1386. package/dist/checkout/svg/time-sharp.svg +1 -1
  1387. package/dist/checkout/svg/time.svg +1 -1
  1388. package/dist/checkout/svg/timer-outline.svg +1 -1
  1389. package/dist/checkout/svg/timer-sharp.svg +1 -1
  1390. package/dist/checkout/svg/timer.svg +1 -1
  1391. package/dist/checkout/svg/today-outline.svg +1 -1
  1392. package/dist/checkout/svg/today-sharp.svg +1 -1
  1393. package/dist/checkout/svg/today.svg +1 -1
  1394. package/dist/checkout/svg/toggle-outline.svg +1 -1
  1395. package/dist/checkout/svg/toggle-sharp.svg +1 -1
  1396. package/dist/checkout/svg/toggle.svg +1 -1
  1397. package/dist/checkout/svg/trail-sign-outline.svg +1 -1
  1398. package/dist/checkout/svg/trail-sign-sharp.svg +1 -1
  1399. package/dist/checkout/svg/trail-sign.svg +1 -1
  1400. package/dist/checkout/svg/train-outline.svg +1 -1
  1401. package/dist/checkout/svg/train-sharp.svg +1 -1
  1402. package/dist/checkout/svg/train.svg +1 -1
  1403. package/dist/checkout/svg/transgender-outline.svg +1 -1
  1404. package/dist/checkout/svg/transgender-sharp.svg +1 -1
  1405. package/dist/checkout/svg/transgender.svg +1 -1
  1406. package/dist/checkout/svg/trash-bin-outline.svg +1 -1
  1407. package/dist/checkout/svg/trash-bin-sharp.svg +1 -1
  1408. package/dist/checkout/svg/trash-bin.svg +1 -1
  1409. package/dist/checkout/svg/trash-outline.svg +1 -1
  1410. package/dist/checkout/svg/trash-sharp.svg +1 -1
  1411. package/dist/checkout/svg/trash.svg +1 -1
  1412. package/dist/checkout/svg/trending-down-outline.svg +1 -1
  1413. package/dist/checkout/svg/trending-down-sharp.svg +1 -1
  1414. package/dist/checkout/svg/trending-down.svg +1 -1
  1415. package/dist/checkout/svg/trending-up-outline.svg +1 -1
  1416. package/dist/checkout/svg/trending-up-sharp.svg +1 -1
  1417. package/dist/checkout/svg/trending-up.svg +1 -1
  1418. package/dist/checkout/svg/triangle-outline.svg +1 -1
  1419. package/dist/checkout/svg/triangle-sharp.svg +1 -1
  1420. package/dist/checkout/svg/triangle.svg +1 -1
  1421. package/dist/checkout/svg/trophy-outline.svg +1 -1
  1422. package/dist/checkout/svg/trophy-sharp.svg +1 -1
  1423. package/dist/checkout/svg/trophy.svg +1 -1
  1424. package/dist/checkout/svg/tv-outline.svg +1 -1
  1425. package/dist/checkout/svg/tv-sharp.svg +1 -1
  1426. package/dist/checkout/svg/tv.svg +1 -1
  1427. package/dist/checkout/svg/umbrella-outline.svg +1 -1
  1428. package/dist/checkout/svg/umbrella-sharp.svg +1 -1
  1429. package/dist/checkout/svg/umbrella.svg +1 -1
  1430. package/dist/checkout/svg/unlink-outline.svg +1 -1
  1431. package/dist/checkout/svg/unlink-sharp.svg +1 -1
  1432. package/dist/checkout/svg/unlink.svg +1 -1
  1433. package/dist/checkout/svg/videocam-off-outline.svg +1 -1
  1434. package/dist/checkout/svg/videocam-off-sharp.svg +1 -1
  1435. package/dist/checkout/svg/videocam-off.svg +1 -1
  1436. package/dist/checkout/svg/videocam-outline.svg +1 -1
  1437. package/dist/checkout/svg/videocam-sharp.svg +1 -1
  1438. package/dist/checkout/svg/videocam.svg +1 -1
  1439. package/dist/checkout/svg/volume-high-outline.svg +1 -1
  1440. package/dist/checkout/svg/volume-high-sharp.svg +1 -1
  1441. package/dist/checkout/svg/volume-high.svg +1 -1
  1442. package/dist/checkout/svg/volume-low-outline.svg +1 -1
  1443. package/dist/checkout/svg/volume-low-sharp.svg +1 -1
  1444. package/dist/checkout/svg/volume-low.svg +1 -1
  1445. package/dist/checkout/svg/volume-medium-outline.svg +1 -1
  1446. package/dist/checkout/svg/volume-medium-sharp.svg +1 -1
  1447. package/dist/checkout/svg/volume-medium.svg +1 -1
  1448. package/dist/checkout/svg/volume-mute-outline.svg +1 -1
  1449. package/dist/checkout/svg/volume-mute-sharp.svg +1 -1
  1450. package/dist/checkout/svg/volume-mute.svg +1 -1
  1451. package/dist/checkout/svg/volume-off-outline.svg +1 -1
  1452. package/dist/checkout/svg/volume-off-sharp.svg +1 -1
  1453. package/dist/checkout/svg/volume-off.svg +1 -1
  1454. package/dist/checkout/svg/walk-outline.svg +1 -1
  1455. package/dist/checkout/svg/walk-sharp.svg +1 -1
  1456. package/dist/checkout/svg/walk.svg +1 -1
  1457. package/dist/checkout/svg/wallet-outline.svg +1 -1
  1458. package/dist/checkout/svg/wallet-sharp.svg +1 -1
  1459. package/dist/checkout/svg/wallet.svg +1 -1
  1460. package/dist/checkout/svg/warning-outline.svg +1 -1
  1461. package/dist/checkout/svg/warning-sharp.svg +1 -1
  1462. package/dist/checkout/svg/warning.svg +1 -1
  1463. package/dist/checkout/svg/watch-outline.svg +1 -1
  1464. package/dist/checkout/svg/watch-sharp.svg +1 -1
  1465. package/dist/checkout/svg/watch.svg +1 -1
  1466. package/dist/checkout/svg/water-outline.svg +1 -1
  1467. package/dist/checkout/svg/water-sharp.svg +1 -1
  1468. package/dist/checkout/svg/water.svg +1 -1
  1469. package/dist/checkout/svg/wifi-outline.svg +1 -1
  1470. package/dist/checkout/svg/wifi-sharp.svg +1 -1
  1471. package/dist/checkout/svg/wifi.svg +1 -1
  1472. package/dist/checkout/svg/wine-outline.svg +1 -1
  1473. package/dist/checkout/svg/wine-sharp.svg +1 -1
  1474. package/dist/checkout/svg/wine.svg +1 -1
  1475. package/dist/checkout/svg/woman-outline.svg +1 -1
  1476. package/dist/checkout/svg/woman-sharp.svg +1 -1
  1477. package/dist/checkout/svg/woman.svg +1 -1
  1478. package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
  1479. package/dist/cjs/amwal-checkout-button_5.cjs.entry.js +1294 -2924
  1480. package/dist/cjs/amwal-installments-guide.cjs.entry.js +42 -43
  1481. package/dist/cjs/amwal-pos.cjs.entry.js +3180 -3452
  1482. package/dist/cjs/amwal-widget-modal.cjs.entry.js +162 -175
  1483. package/dist/cjs/amwal-widget.cjs.entry.js +314 -343
  1484. package/dist/cjs/animation-26241cb2.js +1065 -0
  1485. package/dist/cjs/{app-globals-B6FjPa2t.js → app-globals-42a13029.js} +1 -1
  1486. package/dist/cjs/{ar-CbT6TM-Q.js → ar-3a6829a4.js} +10 -4
  1487. package/dist/cjs/{capacitor-CqhugS19.js → capacitor-a9365f60.js} +1 -1
  1488. package/dist/cjs/checkout.cjs.js +19 -16
  1489. package/dist/cjs/{config-DMigaw94.js → config-e2a8c0c7.js} +1 -3
  1490. package/dist/cjs/{data-C9NB5QNL.js → data-19081291.js} +8 -33
  1491. package/dist/cjs/form-controller-3ffb27b1.js +66 -0
  1492. package/dist/cjs/{framework-delegate-BFev42vk.js → framework-delegate-ab2cc190.js} +1 -1
  1493. package/dist/cjs/{gesture-controller-CiprlUhH.js → gesture-controller-b1c0efac.js} +1 -2
  1494. package/dist/cjs/{haptic-DCn793nz.js → haptic-80174512.js} +55 -7
  1495. package/dist/cjs/{hardware-back-button-CMceVPAk.js → hardware-back-button-ddfefd22.js} +8 -7
  1496. package/dist/cjs/{helpers-VdS_U_Su.js → helpers-72ba682d.js} +92 -11
  1497. package/dist/cjs/i18n-18ad02d5.js +13 -0
  1498. package/dist/cjs/index-071786b4.js +38 -0
  1499. package/dist/cjs/{index-Calgykmz.js → index-0d0b84fb.js} +4 -3
  1500. package/dist/cjs/index-2602a653.js +50 -0
  1501. package/dist/cjs/index-2cd1a895.js +244 -0
  1502. package/dist/cjs/index-7522b3a9.js +2256 -0
  1503. package/dist/cjs/{index-DaUK-X4l.js → index-9b7d2c31.js} +11 -11
  1504. package/dist/cjs/{index-BQ9HVZwH.js → index-ce06e6a3.js} +3 -3
  1505. package/dist/cjs/{index-D1TvI2Ig.js → index-da554121.js} +35 -7
  1506. package/dist/cjs/{input-shims-CJrPMP1S.js → input-shims-1a8ed779.js} +7 -37
  1507. package/dist/cjs/{input.utils-D9hnMuNq.js → input.utils-67143876.js} +4 -16
  1508. package/dist/cjs/ion-accordion-group.cjs.entry.js +199 -217
  1509. package/dist/cjs/ion-accordion.cjs.entry.js +304 -402
  1510. package/dist/cjs/ion-action-sheet_3.cjs.entry.js +1006 -0
  1511. package/dist/cjs/ion-app.cjs.entry.js +95 -93
  1512. package/dist/cjs/ion-avatar.cjs.entry.js +14 -12
  1513. package/dist/cjs/ion-back-button.cjs.entry.js +78 -77
  1514. package/dist/cjs/ion-backdrop.cjs.entry.js +44 -39
  1515. package/dist/cjs/ion-badge.cjs.entry.js +19 -16
  1516. package/dist/cjs/ion-breadcrumb.cjs.entry.js +86 -88
  1517. package/dist/cjs/ion-breadcrumbs.cjs.entry.js +120 -130
  1518. package/dist/cjs/ion-buttons_3.cjs.entry.js +886 -0
  1519. package/dist/cjs/ion-card-content.cjs.entry.js +19 -17
  1520. package/dist/cjs/ion-card-header.cjs.entry.js +22 -24
  1521. package/dist/cjs/ion-card-subtitle.cjs.entry.js +20 -17
  1522. package/dist/cjs/ion-card-title.cjs.entry.js +20 -17
  1523. package/dist/cjs/ion-card.cjs.entry.js +55 -60
  1524. package/dist/cjs/ion-checkbox_7.cjs.entry.js +945 -0
  1525. package/dist/cjs/ion-chip.cjs.entry.js +24 -27
  1526. package/dist/cjs/ion-col.cjs.entry.js +110 -84
  1527. package/dist/cjs/ion-content.cjs.entry.js +413 -0
  1528. package/dist/cjs/ion-datetime-button.cjs.entry.js +330 -331
  1529. package/dist/cjs/ion-datetime.cjs.entry.js +1548 -1656
  1530. package/dist/cjs/ion-fab-button.cjs.entry.js +78 -95
  1531. package/dist/cjs/ion-fab-list.cjs.entry.js +31 -37
  1532. package/dist/cjs/ion-fab.cjs.entry.js +58 -65
  1533. package/dist/cjs/ion-footer.cjs.entry.js +94 -98
  1534. package/dist/cjs/ion-grid.cjs.entry.js +17 -18
  1535. package/dist/cjs/ion-header.cjs.entry.js +342 -0
  1536. package/dist/cjs/ion-icon.cjs.entry.js +273 -350
  1537. package/dist/cjs/ion-img.cjs.entry.js +83 -79
  1538. package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +34 -30
  1539. package/dist/cjs/ion-infinite-scroll.cjs.entry.js +174 -197
  1540. package/dist/cjs/ion-input.cjs.entry.js +457 -510
  1541. package/dist/cjs/ion-item-divider.cjs.entry.js +23 -27
  1542. package/dist/cjs/ion-item-group.cjs.entry.js +20 -18
  1543. package/dist/cjs/ion-item-option.cjs.entry.js +45 -47
  1544. package/dist/cjs/ion-item-options.cjs.entry.js +38 -40
  1545. package/dist/cjs/ion-item-sliding.cjs.entry.js +391 -394
  1546. package/dist/cjs/ion-loading.cjs.entry.js +162 -185
  1547. package/dist/cjs/ion-menu-button.cjs.entry.js +60 -64
  1548. package/dist/cjs/ion-menu-toggle.cjs.entry.js +36 -38
  1549. package/dist/cjs/ion-menu.cjs.entry.js +606 -666
  1550. package/dist/cjs/ion-modal.cjs.entry.js +1731 -0
  1551. package/dist/cjs/ion-nav-link.cjs.entry.js +17 -15
  1552. package/dist/cjs/ion-nav.cjs.entry.js +823 -826
  1553. package/dist/cjs/ion-note.cjs.entry.js +19 -16
  1554. package/dist/cjs/ion-picker-column.cjs.entry.js +364 -0
  1555. package/dist/cjs/ion-picker.cjs.entry.js +277 -0
  1556. package/dist/cjs/ion-popover.cjs.entry.js +325 -460
  1557. package/dist/cjs/ion-progress-bar.cjs.entry.js +44 -61
  1558. package/dist/cjs/ion-range.cjs.entry.js +656 -726
  1559. package/dist/cjs/ion-refresher-content.cjs.entry.js +53 -47
  1560. package/dist/cjs/ion-refresher.cjs.entry.js +586 -679
  1561. package/dist/cjs/ion-reorder-group.cjs.entry.js +252 -269
  1562. package/dist/cjs/ion-reorder.cjs.entry.js +26 -24
  1563. package/dist/cjs/ion-route-redirect.cjs.entry.js +19 -19
  1564. package/dist/cjs/ion-route.cjs.entry.js +37 -43
  1565. package/dist/cjs/ion-router-link.cjs.entry.js +31 -28
  1566. package/dist/cjs/ion-router-outlet.cjs.entry.js +177 -180
  1567. package/dist/cjs/ion-router.cjs.entry.js +271 -288
  1568. package/dist/cjs/ion-row.cjs.entry.js +12 -10
  1569. package/dist/cjs/ion-searchbar.cjs.entry.js +388 -445
  1570. package/dist/cjs/ion-segment-button.cjs.entry.js +96 -125
  1571. package/dist/cjs/ion-segment.cjs.entry.js +411 -540
  1572. package/dist/cjs/ion-select-option.cjs.entry.js +16 -16
  1573. package/dist/cjs/ion-select.cjs.entry.js +694 -818
  1574. package/dist/cjs/ion-skeleton-text.cjs.entry.js +35 -36
  1575. package/dist/cjs/ion-spinner.cjs.entry.js +50 -48
  1576. package/dist/cjs/ion-split-pane.cjs.entry.js +120 -141
  1577. package/dist/cjs/ion-tab-bar.cjs.entry.js +66 -82
  1578. package/dist/cjs/ion-tab-button.cjs.entry.js +82 -80
  1579. package/dist/cjs/ion-tab.cjs.entry.js +50 -48
  1580. package/dist/cjs/ion-tabs.cjs.entry.js +143 -167
  1581. package/dist/cjs/ion-textarea.cjs.entry.js +404 -460
  1582. package/dist/cjs/ion-thumbnail.cjs.entry.js +12 -10
  1583. package/dist/cjs/ion-title.cjs.entry.js +54 -0
  1584. package/dist/cjs/ion-toast.cjs.entry.js +372 -408
  1585. package/dist/cjs/ion-toggle.cjs.entry.js +235 -305
  1586. package/dist/cjs/ion-toolbar.cjs.entry.js +75 -0
  1587. package/dist/cjs/ionic-global-3915f1f1.js +232 -0
  1588. package/dist/cjs/{ios.transition-EMvH3Tod.js → ios.transition-b9c0b967.js} +72 -99
  1589. package/dist/cjs/{keyboard-iyHR2ZF4.js → keyboard-5d4b83b3.js} +3 -3
  1590. package/dist/cjs/{keyboard-DuKzsHsS.js → keyboard-bc8ebbf7.js} +1 -1
  1591. package/dist/cjs/{keyboard-controller-rH21qC_2.js → keyboard-controller-c6633754.js} +2 -2
  1592. package/dist/cjs/loader.cjs.js +19 -8
  1593. package/dist/cjs/{md.transition-CwoQ7h7X.js → md.transition-830acbb7.js} +5 -5
  1594. package/dist/cjs/{menu-toggle-util-By6-554q.js → menu-toggle-util-315c26b3.js} +1 -1
  1595. package/dist/cjs/{notch-controller-DWw_ctSD.js → notch-controller-dcf09601.js} +2 -2
  1596. package/dist/cjs/{overlays-sgG7yBK9.js → overlays-08819e3f.js} +124 -187
  1597. package/dist/cjs/{refresher.utils-CMKixJwj.js → refresher.utils-e41509f7.js} +3 -3
  1598. package/dist/cjs/{status-tap-CdatiX6b.js → status-tap-ec021cb4.js} +4 -3
  1599. package/dist/cjs/{swipe-back-D3MYxlFO.js → swipe-back-3d3a5129.js} +4 -5
  1600. package/dist/collection/collection-manifest.json +10 -16
  1601. package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.css +1 -1
  1602. package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.js +1714 -1888
  1603. package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.stories.js +84 -84
  1604. package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.js +75 -80
  1605. package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.stories.js +25 -25
  1606. package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.js +506 -569
  1607. package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.stories.js +80 -80
  1608. package/dist/collection/components/amwal-pos/amwal-pos.js +1022 -1094
  1609. package/dist/collection/components/amwal-pos/amwal-pos.stories.js +209 -209
  1610. package/dist/collection/components/amwal-widget/amwal-widget-modal.js +326 -350
  1611. package/dist/collection/components/amwal-widget/amwal-widget.js +673 -736
  1612. package/dist/collection/components/amwal-widget/amwal-widget.stories.js +184 -184
  1613. package/dist/collection/lang/i18n.js +7 -7
  1614. package/dist/components/amwal-checkout-button.d.ts +2 -2
  1615. package/dist/components/amwal-checkout-button.js +3811 -1
  1616. package/dist/components/amwal-installments-guide.d.ts +2 -2
  1617. package/dist/components/amwal-installments-guide.js +75 -1
  1618. package/dist/components/amwal-installments-timeline.d.ts +2 -2
  1619. package/dist/components/amwal-installments-timeline.js +6 -1
  1620. package/dist/components/amwal-pos.d.ts +2 -2
  1621. package/dist/components/amwal-pos.js +3391 -1
  1622. package/dist/components/amwal-widget-modal.d.ts +2 -2
  1623. package/dist/components/amwal-widget-modal.js +6 -1
  1624. package/dist/components/amwal-widget.d.ts +2 -2
  1625. package/dist/components/amwal-widget.js +389 -1
  1626. package/dist/components/index.d.ts +0 -6
  1627. package/dist/components/index.js +6 -1
  1628. package/dist/components/ion-accordion-group.js +248 -1
  1629. package/dist/components/ion-accordion.js +353 -1
  1630. package/dist/components/ion-action-sheet.js +6 -1
  1631. package/dist/components/ion-alert.js +6 -1
  1632. package/dist/components/ion-app.js +125 -1
  1633. package/dist/components/ion-avatar.js +39 -1
  1634. package/dist/components/ion-back-button.js +127 -1
  1635. package/dist/components/ion-backdrop.js +6 -1
  1636. package/dist/components/ion-badge.js +46 -1
  1637. package/dist/components/ion-breadcrumb.js +131 -1
  1638. package/dist/components/ion-breadcrumbs.js +152 -1
  1639. package/dist/components/ion-button.js +6 -1
  1640. package/dist/components/ion-buttons.js +6 -1
  1641. package/dist/components/ion-card-content.js +43 -1
  1642. package/dist/components/ion-card-header.js +50 -1
  1643. package/dist/components/ion-card-subtitle.js +47 -1
  1644. package/dist/components/ion-card-title.js +47 -1
  1645. package/dist/components/ion-card.js +98 -1
  1646. package/dist/components/ion-checkbox.js +6 -1
  1647. package/dist/components/ion-chip.js +59 -1
  1648. package/dist/components/ion-col.js +186 -2
  1649. package/dist/components/ion-content.js +440 -1
  1650. package/dist/components/ion-datetime-button.js +378 -1
  1651. package/dist/components/ion-datetime.js +1961 -2
  1652. package/dist/components/ion-fab-button.js +130 -1
  1653. package/dist/components/ion-fab-list.js +56 -1
  1654. package/dist/components/ion-fab.js +90 -1
  1655. package/dist/components/ion-footer.js +152 -2
  1656. package/dist/components/ion-grid.js +41 -1
  1657. package/dist/components/ion-header.js +358 -1
  1658. package/dist/components/ion-icon.js +6 -1
  1659. package/dist/components/ion-img.js +124 -1
  1660. package/dist/components/ion-infinite-scroll-content.js +69 -1
  1661. package/dist/components/ion-infinite-scroll.js +209 -1
  1662. package/dist/components/ion-input.js +564 -1
  1663. package/dist/components/ion-item-divider.js +51 -1
  1664. package/dist/components/ion-item-group.js +44 -1
  1665. package/dist/components/ion-item-option.js +85 -1
  1666. package/dist/components/ion-item-options.js +67 -1
  1667. package/dist/components/ion-item-sliding.js +449 -1
  1668. package/dist/components/ion-item.js +6 -1
  1669. package/dist/components/ion-label.js +6 -1
  1670. package/dist/components/ion-list-header.js +6 -1
  1671. package/dist/components/ion-list.js +6 -1
  1672. package/dist/components/ion-loading.js +325 -3
  1673. package/dist/components/ion-menu-button.js +100 -1
  1674. package/dist/components/ion-menu-toggle.js +57 -1
  1675. package/dist/components/ion-menu.js +679 -1
  1676. package/dist/components/ion-modal.js +1779 -1
  1677. package/dist/components/ion-nav-link.js +63 -2
  1678. package/dist/components/ion-nav.js +945 -2
  1679. package/dist/components/ion-note.js +6 -1
  1680. package/dist/components/ion-picker-column-internal.js +6 -0
  1681. package/dist/components/ion-picker-column.js +6 -1
  1682. package/dist/components/ion-picker-internal.js +6 -0
  1683. package/dist/components/ion-picker.js +321 -1
  1684. package/dist/components/ion-popover.js +6 -1
  1685. package/dist/components/ion-progress-bar.js +79 -1
  1686. package/dist/components/ion-radio-group.js +6 -1
  1687. package/dist/components/ion-radio.js +6 -1
  1688. package/dist/components/ion-range.js +778 -2
  1689. package/dist/components/ion-refresher-content.js +90 -1
  1690. package/dist/components/ion-refresher.js +652 -1
  1691. package/dist/components/ion-reorder-group.js +300 -1
  1692. package/dist/components/ion-reorder.js +58 -1
  1693. package/dist/components/ion-ripple-effect.js +6 -1
  1694. package/dist/components/ion-route-redirect.js +42 -1
  1695. package/dist/components/ion-route.js +66 -1
  1696. package/dist/components/ion-router-link.js +60 -1
  1697. package/dist/components/ion-router-outlet.js +219 -1
  1698. package/dist/components/ion-router.js +833 -3
  1699. package/dist/components/ion-row.js +34 -1
  1700. package/dist/components/ion-searchbar.js +472 -1
  1701. package/dist/components/ion-segment-button.js +139 -1
  1702. package/dist/components/ion-segment.js +472 -1
  1703. package/dist/components/ion-select-option.js +42 -1
  1704. package/dist/components/ion-select-popover.js +6 -1
  1705. package/dist/components/ion-select.js +864 -1
  1706. package/dist/components/ion-skeleton-text.js +59 -1
  1707. package/dist/components/ion-spinner.js +6 -1
  1708. package/dist/components/ion-split-pane.js +166 -1
  1709. package/dist/components/ion-tab-bar.js +95 -1
  1710. package/dist/components/ion-tab-button.js +125 -1
  1711. package/dist/components/ion-tab.js +80 -1
  1712. package/dist/components/ion-tabs.js +176 -1
  1713. package/dist/components/ion-text.js +6 -1
  1714. package/dist/components/ion-textarea.js +496 -1
  1715. package/dist/components/ion-thumbnail.js +34 -1
  1716. package/dist/components/ion-title.js +71 -1
  1717. package/dist/components/ion-toast.js +914 -3
  1718. package/dist/components/ion-toggle.js +282 -1
  1719. package/dist/components/ion-toolbar.js +91 -1
  1720. package/dist/components/p-01b49f83.js +269 -0
  1721. package/dist/{esm/ios.transition-BBpXvlVl.js → components/p-02b77441.js} +69 -99
  1722. package/dist/components/p-02bc6b21.js +203 -0
  1723. package/dist/components/p-031ed92d.js +389 -0
  1724. package/dist/components/p-03803c7d.js +369 -0
  1725. package/dist/components/p-089e034e.js +234 -0
  1726. package/dist/components/p-0dc7a5ff.js +512 -0
  1727. package/dist/components/p-110f8490.js +566 -0
  1728. package/dist/components/p-112455b1.js +17 -0
  1729. package/dist/{esm/index-Ul_idjjE.js → components/p-1596e301.js} +4 -4
  1730. package/dist/components/p-1785e30a.js +318 -0
  1731. package/dist/{esm/helpers-BuFc0hrS.js → components/p-2bb89b46.js} +90 -11
  1732. package/dist/components/p-2d7d745d.js +224 -0
  1733. package/dist/components/p-2fc99fef.js +262 -0
  1734. package/dist/{esm/input-shims-D1Cdl4JQ.js → components/p-3296ebd9.js} +5 -37
  1735. package/dist/{esm/data-u308JruM.js → components/p-39ad94cf.js} +9 -34
  1736. package/dist/{esm/capacitor-CG3xQUND.js → components/p-3d3eefc3.js} +1 -1
  1737. package/dist/components/p-3e1d2896.js +64 -0
  1738. package/dist/{esm/keyboard-controller-CqGCg8tB.js → components/p-3e1e3453.js} +2 -2
  1739. package/dist/{esm/md.transition-uHL_rMwC.js → components/p-503328f2.js} +2 -5
  1740. package/dist/components/p-51c44f42.js +98 -0
  1741. package/dist/components/p-5280b372.js +42 -0
  1742. package/dist/{esm/index-J3a2mue2.js → components/p-53e2dbe4.js} +35 -7
  1743. package/dist/components/p-5441c730.js +851 -0
  1744. package/dist/{esm/refresher.utils-BwmoeJ1w.js → components/p-74e68924.js} +4 -4
  1745. package/dist/{esm/framework-delegate-29_VtSmv.js → components/p-76525f0f.js} +1 -1
  1746. package/dist/{esm/index-CF4QYFB3.js → components/p-77104220.js} +6 -4
  1747. package/dist/components/p-77ccb793.js +185 -0
  1748. package/dist/components/p-83e529db.js +380 -0
  1749. package/dist/{esm/animation-Cdsew5KM.js → components/p-89c4c5cb.js} +252 -12
  1750. package/dist/components/p-8b3d1e06.js +67 -0
  1751. package/dist/{esm/ionic-global-BbOE2Sur.js → components/p-901c16c5.js} +112 -51
  1752. package/dist/components/p-93e2a608.js +374 -0
  1753. package/dist/components/p-95c79593.js +43 -0
  1754. package/dist/components/p-96073863.js +82 -0
  1755. package/dist/components/p-99e447f9.js +13 -0
  1756. package/dist/{esm/keyboard-DgiyREKb.js → components/p-9b519de5.js} +1 -1
  1757. package/dist/{esm/input.utils-CEeVIfb9.js → components/p-9d350d61.js} +4 -16
  1758. package/dist/{esm/notch-controller-CCHQ50bA.js → components/p-9df67c24.js} +2 -2
  1759. package/dist/{esm/status-tap-CMJKMvwt.js → components/p-a0e691dd.js} +3 -3
  1760. package/dist/components/p-ab10d1ae.js +47 -0
  1761. package/dist/components/p-abc01c5d.js +194 -0
  1762. package/dist/components/p-abd248d1.js +196 -0
  1763. package/dist/{esm/haptic-C3ucbArX.js → components/p-af073aaf.js} +56 -8
  1764. package/dist/{esm/config-CnpuADYS.js → components/p-b2289937.js} +1 -3
  1765. package/dist/{esm/swipe-back-BXQCI3bV.js → components/p-b32529b9.js} +3 -5
  1766. package/dist/components/p-b8fdd517.js +26 -0
  1767. package/dist/components/p-cebc113f.js +38 -0
  1768. package/dist/components/p-d25fd077.js +331 -0
  1769. package/dist/{esm/menu-toggle-util-LSIuEJ8L.js → components/p-d3596f64.js} +1 -1
  1770. package/dist/{esm/keyboard-DcbqYXj5.js → components/p-d60b2328.js} +1 -3
  1771. package/dist/components/p-d69dc32f.js +97 -0
  1772. package/dist/{esm/hardware-back-button-DRef5MPc.js → components/p-d72e8d7b.js} +3 -3
  1773. package/dist/{esm/ar-B3WORC1a.js → components/p-d839c693.js} +12 -5
  1774. package/dist/components/p-e187a77c.js +34 -0
  1775. package/dist/components/p-e65ea9fb.js +1379 -0
  1776. package/dist/components/p-ec0e3f3f.js +2040 -0
  1777. package/dist/components/p-ecb4db1c.js +64 -0
  1778. package/dist/{esm/gesture-controller-BTEOs1at.js → components/p-f728a68f.js} +2 -2
  1779. package/dist/components/p-f7e3c502.js +73 -0
  1780. package/dist/components/p-fe463a42.js +272 -0
  1781. package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
  1782. package/dist/esm/amwal-checkout-button_5.entry.js +1292 -2924
  1783. package/dist/esm/amwal-installments-guide.entry.js +40 -43
  1784. package/dist/esm/amwal-pos.entry.js +3178 -3452
  1785. package/dist/esm/amwal-widget-modal.entry.js +160 -175
  1786. package/dist/esm/amwal-widget.entry.js +312 -343
  1787. package/dist/{cjs/animation-DmZTzC07.js → esm/animation-a6d5c3b1.js} +254 -16
  1788. package/dist/esm/{app-globals-qL1LLHNB.js → app-globals-c817b28b.js} +1 -1
  1789. package/dist/esm/ar-7d2629bf.js +51 -0
  1790. package/dist/esm/capacitor-ba4337da.js +13 -0
  1791. package/dist/esm/checkout.js +18 -16
  1792. package/dist/esm/config-8e06237c.js +171 -0
  1793. package/dist/esm/cubic-bezier-874f336d.js +90 -0
  1794. package/dist/esm/data-8916315d.js +1628 -0
  1795. package/dist/esm/dir-1d4aa386.js +18 -0
  1796. package/dist/esm/focus-visible-32968d3d.js +75 -0
  1797. package/dist/esm/form-controller-b1aa7393.js +64 -0
  1798. package/dist/esm/framework-delegate-de1aa369.js +140 -0
  1799. package/dist/esm/gesture-controller-58ffa500.js +195 -0
  1800. package/dist/esm/haptic-4d4d8eb1.js +206 -0
  1801. package/dist/esm/hardware-back-button-f93acff0.js +116 -0
  1802. package/dist/esm/helpers-f0dcbd72.js +418 -0
  1803. package/dist/esm/i18n-53f85411.js +13 -0
  1804. package/dist/esm/index-0b560278.js +234 -0
  1805. package/dist/esm/index-5894dd63.js +196 -0
  1806. package/dist/esm/{index-Dph-Z83P.js → index-5a126e54.js} +8 -8
  1807. package/dist/esm/index-5e663431.js +128 -0
  1808. package/dist/esm/index-8cc94b11.js +2219 -0
  1809. package/dist/esm/index-afdf867c.js +26 -0
  1810. package/dist/esm/index-d9b41a43.js +34 -0
  1811. package/dist/esm/index-f6dce931.js +466 -0
  1812. package/dist/esm/index-fb97e55c.js +7 -0
  1813. package/dist/esm/input-shims-75d4750d.js +617 -0
  1814. package/dist/esm/input.utils-79bde07f.js +138 -0
  1815. package/dist/esm/ion-accordion-group.entry.js +197 -217
  1816. package/dist/esm/ion-accordion.entry.js +302 -402
  1817. package/dist/esm/ion-action-sheet_3.entry.js +1000 -0
  1818. package/dist/esm/ion-app.entry.js +93 -93
  1819. package/dist/esm/ion-avatar.entry.js +12 -12
  1820. package/dist/esm/ion-back-button.entry.js +76 -77
  1821. package/dist/esm/ion-backdrop.entry.js +42 -39
  1822. package/dist/esm/ion-badge.entry.js +17 -16
  1823. package/dist/esm/ion-breadcrumb.entry.js +84 -88
  1824. package/dist/esm/ion-breadcrumbs.entry.js +118 -130
  1825. package/dist/esm/ion-buttons_3.entry.js +880 -0
  1826. package/dist/esm/ion-card-content.entry.js +17 -17
  1827. package/dist/esm/ion-card-header.entry.js +20 -24
  1828. package/dist/esm/ion-card-subtitle.entry.js +18 -17
  1829. package/dist/esm/ion-card-title.entry.js +18 -17
  1830. package/dist/esm/ion-card.entry.js +53 -60
  1831. package/dist/esm/ion-checkbox_7.entry.js +935 -0
  1832. package/dist/esm/ion-chip.entry.js +22 -27
  1833. package/dist/esm/ion-col.entry.js +108 -84
  1834. package/dist/esm/ion-content.entry.js +409 -0
  1835. package/dist/esm/ion-datetime-button.entry.js +328 -331
  1836. package/dist/esm/ion-datetime.entry.js +1546 -1656
  1837. package/dist/esm/ion-fab-button.entry.js +76 -95
  1838. package/dist/esm/ion-fab-list.entry.js +29 -37
  1839. package/dist/esm/ion-fab.entry.js +56 -65
  1840. package/dist/esm/ion-footer.entry.js +92 -98
  1841. package/dist/esm/ion-grid.entry.js +15 -18
  1842. package/dist/esm/ion-header.entry.js +338 -0
  1843. package/dist/esm/ion-icon.entry.js +271 -350
  1844. package/dist/esm/ion-img.entry.js +81 -79
  1845. package/dist/esm/ion-infinite-scroll-content.entry.js +32 -30
  1846. package/dist/esm/ion-infinite-scroll.entry.js +172 -197
  1847. package/dist/esm/ion-input.entry.js +455 -510
  1848. package/dist/esm/ion-item-divider.entry.js +21 -27
  1849. package/dist/esm/ion-item-group.entry.js +18 -18
  1850. package/dist/esm/ion-item-option.entry.js +43 -47
  1851. package/dist/esm/ion-item-options.entry.js +36 -40
  1852. package/dist/esm/ion-item-sliding.entry.js +389 -394
  1853. package/dist/esm/ion-loading.entry.js +160 -185
  1854. package/dist/esm/ion-menu-button.entry.js +58 -64
  1855. package/dist/esm/ion-menu-toggle.entry.js +34 -38
  1856. package/dist/esm/ion-menu.entry.js +604 -666
  1857. package/dist/esm/ion-modal.entry.js +1727 -0
  1858. package/dist/esm/ion-nav-link.entry.js +15 -15
  1859. package/dist/esm/ion-nav.entry.js +821 -826
  1860. package/dist/esm/ion-note.entry.js +17 -16
  1861. package/dist/esm/ion-picker-column.entry.js +360 -0
  1862. package/dist/esm/ion-picker.entry.js +273 -0
  1863. package/dist/esm/ion-popover.entry.js +323 -460
  1864. package/dist/esm/ion-progress-bar.entry.js +42 -61
  1865. package/dist/esm/ion-range.entry.js +654 -726
  1866. package/dist/esm/ion-refresher-content.entry.js +51 -47
  1867. package/dist/esm/ion-refresher.entry.js +584 -679
  1868. package/dist/esm/ion-reorder-group.entry.js +250 -269
  1869. package/dist/esm/ion-reorder.entry.js +24 -24
  1870. package/dist/esm/ion-route-redirect.entry.js +17 -19
  1871. package/dist/esm/ion-route.entry.js +35 -43
  1872. package/dist/esm/ion-router-link.entry.js +29 -28
  1873. package/dist/esm/ion-router-outlet.entry.js +175 -180
  1874. package/dist/esm/ion-router.entry.js +265 -284
  1875. package/dist/esm/ion-row.entry.js +10 -10
  1876. package/dist/esm/ion-searchbar.entry.js +386 -445
  1877. package/dist/esm/ion-segment-button.entry.js +94 -125
  1878. package/dist/esm/ion-segment.entry.js +409 -540
  1879. package/dist/esm/ion-select-option.entry.js +14 -16
  1880. package/dist/esm/ion-select.entry.js +692 -818
  1881. package/dist/esm/ion-skeleton-text.entry.js +33 -36
  1882. package/dist/esm/ion-spinner.entry.js +48 -48
  1883. package/dist/esm/ion-split-pane.entry.js +118 -141
  1884. package/dist/esm/ion-tab-bar.entry.js +64 -82
  1885. package/dist/esm/ion-tab-button.entry.js +80 -80
  1886. package/dist/esm/ion-tab.entry.js +48 -48
  1887. package/dist/esm/ion-tabs.entry.js +141 -167
  1888. package/dist/esm/ion-textarea.entry.js +402 -460
  1889. package/dist/esm/ion-thumbnail.entry.js +10 -10
  1890. package/dist/esm/ion-title.entry.js +50 -0
  1891. package/dist/esm/ion-toast.entry.js +370 -408
  1892. package/dist/esm/ion-toggle.entry.js +233 -305
  1893. package/dist/esm/ion-toolbar.entry.js +71 -0
  1894. package/dist/esm/ionic-global-0b7766cb.js +227 -0
  1895. package/dist/esm/ios.transition-22fb53bc.js +651 -0
  1896. package/dist/esm/keyboard-1f073554.js +82 -0
  1897. package/dist/esm/keyboard-96b6e80b.js +146 -0
  1898. package/dist/esm/keyboard-controller-5a2f625f.js +165 -0
  1899. package/dist/esm/loader.js +17 -8
  1900. package/dist/esm/lock-controller-632e3c10.js +38 -0
  1901. package/dist/esm/md.transition-f6ff9834.js +57 -0
  1902. package/dist/esm/menu-toggle-util-594849ff.js +12 -0
  1903. package/dist/esm/notch-controller-d511b3b3.js +153 -0
  1904. package/dist/esm/{overlays-CWok3_we.js → overlays-642a91df.js} +121 -182
  1905. package/dist/esm/polyfills/core-js.js +11 -0
  1906. package/dist/esm/polyfills/css-shim.js +1 -0
  1907. package/dist/esm/polyfills/dom.js +79 -0
  1908. package/dist/esm/polyfills/es5-html-element.js +1 -0
  1909. package/dist/esm/polyfills/index.js +34 -0
  1910. package/dist/esm/polyfills/system.js +6 -0
  1911. package/dist/esm/refresher.utils-19137568.js +196 -0
  1912. package/dist/esm/status-tap-bb6959a8.js +40 -0
  1913. package/dist/esm/swipe-back-6cec4c33.js +79 -0
  1914. package/dist/esm/theme-35c700b7.js +43 -0
  1915. package/dist/esm/watch-options-7bf43687.js +47 -0
  1916. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.ios.css +193 -0
  1917. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.md.css +135 -0
  1918. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.ios.css +127 -0
  1919. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.md.css +229 -0
  1920. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +456 -0
  1921. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +384 -0
  1922. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.ios.css +755 -0
  1923. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +770 -0
  1924. package/dist/node_modules/@ionic/core/dist/collection/components/app/app.css +17 -0
  1925. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.ios.css +132 -0
  1926. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.md.css +132 -0
  1927. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +372 -0
  1928. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +385 -0
  1929. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.ios.css +136 -0
  1930. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.md.css +136 -0
  1931. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.ios.css +168 -0
  1932. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.md.css +164 -0
  1933. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.ios.css +326 -0
  1934. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.md.css +310 -0
  1935. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +81 -0
  1936. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.md.css +80 -0
  1937. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +596 -0
  1938. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +517 -0
  1939. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.ios.css +279 -0
  1940. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.md.css +299 -0
  1941. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.ios.css +203 -0
  1942. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.md.css +198 -0
  1943. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.ios.css +163 -0
  1944. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.md.css +165 -0
  1945. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.ios.css +141 -0
  1946. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.md.css +138 -0
  1947. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.ios.css +138 -0
  1948. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.md.css +136 -0
  1949. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.ios.css +137 -0
  1950. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.md.css +137 -0
  1951. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.ios.css +536 -0
  1952. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.md.css +552 -0
  1953. package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.ios.css +212 -0
  1954. package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.md.css +207 -0
  1955. package/dist/node_modules/@ionic/core/dist/collection/components/col/col.css +200 -0
  1956. package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +282 -0
  1957. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +850 -0
  1958. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +706 -0
  1959. package/dist/node_modules/@ionic/core/dist/collection/components/datetime-button/datetime-button.css +100 -0
  1960. package/dist/node_modules/@ionic/core/dist/collection/components/fab/fab.css +366 -0
  1961. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.ios.css +422 -0
  1962. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.md.css +393 -0
  1963. package/dist/node_modules/@ionic/core/dist/collection/components/fab-list/fab-list.css +240 -0
  1964. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +146 -0
  1965. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.md.css +129 -0
  1966. package/dist/node_modules/@ionic/core/dist/collection/components/grid/grid.css +235 -0
  1967. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +250 -0
  1968. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.md.css +133 -0
  1969. package/dist/node_modules/@ionic/core/dist/collection/components/img/img.css +12 -0
  1970. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll/infinite-scroll.css +8 -0
  1971. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +156 -0
  1972. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +156 -0
  1973. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +833 -0
  1974. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +1446 -0
  1975. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +815 -0
  1976. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +1187 -0
  1977. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.ios.css +351 -0
  1978. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.md.css +417 -0
  1979. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.ios.css +114 -0
  1980. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.md.css +114 -0
  1981. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.ios.css +242 -0
  1982. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.md.css +236 -0
  1983. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +287 -0
  1984. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +284 -0
  1985. package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +121 -0
  1986. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +334 -0
  1987. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +421 -0
  1988. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +242 -0
  1989. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.md.css +287 -0
  1990. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.ios.css +285 -0
  1991. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.md.css +266 -0
  1992. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.ios.css +205 -0
  1993. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.md.css +196 -0
  1994. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +378 -0
  1995. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +374 -0
  1996. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.ios.css +279 -0
  1997. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.md.css +282 -0
  1998. package/dist/node_modules/@ionic/core/dist/collection/components/menu-toggle/menu-toggle.css +3 -0
  1999. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +357 -0
  2000. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +272 -0
  2001. package/dist/node_modules/@ionic/core/dist/collection/components/nav/nav.css +64 -0
  2002. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.ios.css +127 -0
  2003. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.md.css +127 -0
  2004. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.ios.css +367 -0
  2005. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.md.css +354 -0
  2006. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.ios.css +255 -0
  2007. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.md.css +246 -0
  2008. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +138 -0
  2009. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +196 -0
  2010. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +262 -0
  2011. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +258 -0
  2012. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +366 -0
  2013. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +266 -0
  2014. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +261 -0
  2015. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +261 -0
  2016. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.ios.css +557 -0
  2017. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.md.css +580 -0
  2018. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +660 -0
  2019. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +819 -0
  2020. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +321 -0
  2021. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +316 -0
  2022. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.ios.css +77 -0
  2023. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.md.css +77 -0
  2024. package/dist/node_modules/@ionic/core/dist/collection/components/reorder-group/reorder-group.css +89 -0
  2025. package/dist/node_modules/@ionic/core/dist/collection/components/ripple-effect/ripple-effect.css +113 -0
  2026. package/dist/node_modules/@ionic/core/dist/collection/components/router-link/router-link.css +84 -0
  2027. package/dist/node_modules/@ionic/core/dist/collection/components/router-outlet/router-outlet.css +64 -0
  2028. package/dist/node_modules/@ionic/core/dist/collection/components/row/row.css +136 -0
  2029. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +477 -0
  2030. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +456 -0
  2031. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.ios.css +224 -0
  2032. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.md.css +214 -0
  2033. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +520 -0
  2034. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +506 -0
  2035. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +787 -0
  2036. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +1374 -0
  2037. package/dist/node_modules/@ionic/core/dist/collection/components/select-option/select-option.css +3 -0
  2038. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.ios.css +190 -0
  2039. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.md.css +212 -0
  2040. package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +108 -0
  2041. package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +232 -0
  2042. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.ios.css +265 -0
  2043. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.md.css +265 -0
  2044. package/dist/node_modules/@ionic/core/dist/collection/components/tab/tab.css +4 -0
  2045. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +252 -0
  2046. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +239 -0
  2047. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.ios.css +477 -0
  2048. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.md.css +501 -0
  2049. package/dist/node_modules/@ionic/core/dist/collection/components/tabs/tabs.css +74 -0
  2050. package/dist/node_modules/@ionic/core/dist/collection/components/text/text.css +58 -0
  2051. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +987 -0
  2052. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +1553 -0
  2053. package/dist/node_modules/@ionic/core/dist/collection/components/thumbnail/thumbnail.css +76 -0
  2054. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +183 -0
  2055. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.md.css +102 -0
  2056. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +399 -0
  2057. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +429 -0
  2058. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +680 -0
  2059. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +625 -0
  2060. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +265 -0
  2061. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +244 -0
  2062. package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +144 -0
  2063. package/dist/types/components/amwal-checkout-button/amwal-checkout-button.d.ts +327 -327
  2064. package/dist/types/components/amwal-checkout-button/amwal-checkout-button.stories.d.ts +34 -34
  2065. package/dist/types/components/amwal-installments-guide/amwal-installments-guide.d.ts +14 -14
  2066. package/dist/types/components/amwal-installments-guide/amwal-installments-guide.stories.d.ts +17 -17
  2067. package/dist/types/components/amwal-installments-timeline/amwal-installments-timeline.d.ts +106 -106
  2068. package/dist/types/components/amwal-installments-timeline/amwal-installments-timeline.stories.d.ts +67 -67
  2069. package/dist/types/components/amwal-pos/amwal-pos.d.ts +228 -228
  2070. package/dist/types/components/amwal-pos/amwal-pos.stories.d.ts +185 -185
  2071. package/dist/types/components/amwal-widget/amwal-widget-modal.d.ts +56 -56
  2072. package/dist/types/components/amwal-widget/amwal-widget.d.ts +165 -165
  2073. package/dist/types/components/amwal-widget/amwal-widget.stories.d.ts +101 -101
  2074. package/dist/types/components.d.ts +0 -206
  2075. package/dist/types/lang/i18n.d.ts +1 -1
  2076. package/dist/types/stencil-public-runtime.d.ts +21 -191
  2077. package/loader/cdn.js +3 -1
  2078. package/loader/index.cjs.js +3 -1
  2079. package/loader/index.d.ts +1 -4
  2080. package/loader/index.es2017.js +3 -1
  2081. package/loader/index.js +3 -1
  2082. package/loader/package.json +11 -0
  2083. package/package.json +29 -35
  2084. package/dist/checkout/p--tz3q7oD.js +0 -4
  2085. package/dist/checkout/p-00e120c2.entry.js +0 -1
  2086. package/dist/checkout/p-0f731364.entry.js +0 -4
  2087. package/dist/checkout/p-147541e8.entry.js +0 -1
  2088. package/dist/checkout/p-16f51173.entry.js +0 -1
  2089. package/dist/checkout/p-178c0495.entry.js +0 -1
  2090. package/dist/checkout/p-1c08169f.entry.js +0 -1
  2091. package/dist/checkout/p-1c6da25b.entry.js +0 -1
  2092. package/dist/checkout/p-1dc3efa2.entry.js +0 -1
  2093. package/dist/checkout/p-2383ebd8.entry.js +0 -1
  2094. package/dist/checkout/p-25306802.entry.js +0 -1
  2095. package/dist/checkout/p-26af1ebe.entry.js +0 -1
  2096. package/dist/checkout/p-2768f09a.entry.js +0 -1
  2097. package/dist/checkout/p-27fb8b9e.entry.js +0 -1
  2098. package/dist/checkout/p-2c421f28.entry.js +0 -1
  2099. package/dist/checkout/p-2dd918ca.entry.js +0 -1
  2100. package/dist/checkout/p-2e366473.entry.js +0 -1
  2101. package/dist/checkout/p-38f520fb.entry.js +0 -1
  2102. package/dist/checkout/p-3a262c01.entry.js +0 -1
  2103. package/dist/checkout/p-3c416dcd.entry.js +0 -1
  2104. package/dist/checkout/p-43c67eeb.entry.js +0 -1
  2105. package/dist/checkout/p-44f2b201.entry.js +0 -4
  2106. package/dist/checkout/p-470783cb.entry.js +0 -1
  2107. package/dist/checkout/p-48c40063.entry.js +0 -1
  2108. package/dist/checkout/p-490c7f14.entry.js +0 -1
  2109. package/dist/checkout/p-493952b7.entry.js +0 -1
  2110. package/dist/checkout/p-519c1a94.entry.js +0 -1
  2111. package/dist/checkout/p-523f80de.entry.js +0 -1
  2112. package/dist/checkout/p-5274360d.entry.js +0 -1
  2113. package/dist/checkout/p-550a7fdf.entry.js +0 -1
  2114. package/dist/checkout/p-5IcNt7MW.js +0 -8
  2115. package/dist/checkout/p-5a2c8845.entry.js +0 -7
  2116. package/dist/checkout/p-5d2b220e.entry.js +0 -1
  2117. package/dist/checkout/p-60bbcf96.entry.js +0 -1
  2118. package/dist/checkout/p-69233a7c.entry.js +0 -1
  2119. package/dist/checkout/p-6a6a2461.entry.js +0 -1
  2120. package/dist/checkout/p-6d4c0370.entry.js +0 -1
  2121. package/dist/checkout/p-6f4a82d2.entry.js +0 -1
  2122. package/dist/checkout/p-77ebd92f.entry.js +0 -1
  2123. package/dist/checkout/p-7YtNmL9y.js +0 -4
  2124. package/dist/checkout/p-7a153eab.entry.js +0 -4
  2125. package/dist/checkout/p-7c7e86fe.entry.js +0 -1
  2126. package/dist/checkout/p-7d9ee602.entry.js +0 -1
  2127. package/dist/checkout/p-7e3bc3c4.entry.js +0 -1
  2128. package/dist/checkout/p-8427a296.entry.js +0 -1
  2129. package/dist/checkout/p-870ec42b.entry.js +0 -4
  2130. package/dist/checkout/p-890e9953.entry.js +0 -1
  2131. package/dist/checkout/p-931d2424.entry.js +0 -4
  2132. package/dist/checkout/p-93eb6dad.entry.js +0 -1
  2133. package/dist/checkout/p-B7f9Wkif.js +0 -1
  2134. package/dist/checkout/p-BJe8ISja.js +0 -4
  2135. package/dist/checkout/p-BKaQyStq.js +0 -5
  2136. package/dist/checkout/p-BR7SJd-v.js +0 -4
  2137. package/dist/checkout/p-BY0jsxmW.js +0 -4
  2138. package/dist/checkout/p-B_Z54mfe.js +0 -5
  2139. package/dist/checkout/p-Ba57PFgY.js +0 -7
  2140. package/dist/checkout/p-BgOwfqIY.js +0 -4
  2141. package/dist/checkout/p-BmlsNFZH.js +0 -1
  2142. package/dist/checkout/p-C03M5ZSM.js +0 -1
  2143. package/dist/checkout/p-CAD1l928.js +0 -8
  2144. package/dist/checkout/p-CFLSScFJ.js +0 -4
  2145. package/dist/checkout/p-CH3Eg9_f.js +0 -7
  2146. package/dist/checkout/p-CPoSEOHb.js +0 -4
  2147. package/dist/checkout/p-CkCrVZwR.js +0 -4
  2148. package/dist/checkout/p-D0wwuiQC.js +0 -4
  2149. package/dist/checkout/p-D2NxOvQ8.js +0 -4
  2150. package/dist/checkout/p-DFxgipTc.js +0 -4
  2151. package/dist/checkout/p-DJztqcrH.js +0 -4
  2152. package/dist/checkout/p-DKg_dYcq.js +0 -4
  2153. package/dist/checkout/p-DSLRCWTg.js +0 -4
  2154. package/dist/checkout/p-DdmvYtPY.js +0 -7
  2155. package/dist/checkout/p-Drg5BcI0.js +0 -4
  2156. package/dist/checkout/p-LsffVXQ5.js +0 -4
  2157. package/dist/checkout/p-__1_zp1x.js +0 -4
  2158. package/dist/checkout/p-a5f75741.entry.js +0 -1
  2159. package/dist/checkout/p-ae30349d.entry.js +0 -1
  2160. package/dist/checkout/p-afbe752e.entry.js +0 -1
  2161. package/dist/checkout/p-b2e14651.entry.js +0 -1
  2162. package/dist/checkout/p-b36fcda4.entry.js +0 -1
  2163. package/dist/checkout/p-b67b736b.entry.js +0 -1
  2164. package/dist/checkout/p-b7bf5abe.entry.js +0 -1
  2165. package/dist/checkout/p-bb513178.entry.js +0 -1
  2166. package/dist/checkout/p-bd4e1c37.entry.js +0 -1
  2167. package/dist/checkout/p-beb2c33c.entry.js +0 -1
  2168. package/dist/checkout/p-becc350d.entry.js +0 -4
  2169. package/dist/checkout/p-c19dc56b.entry.js +0 -1
  2170. package/dist/checkout/p-c1cbd33c.entry.js +0 -1
  2171. package/dist/checkout/p-c34382ea.entry.js +0 -1
  2172. package/dist/checkout/p-c4c9e530.entry.js +0 -1
  2173. package/dist/checkout/p-c534dea9.entry.js +0 -7
  2174. package/dist/checkout/p-c7978eb8.entry.js +0 -4
  2175. package/dist/checkout/p-c8f6670e.entry.js +0 -7
  2176. package/dist/checkout/p-cb1a44cc.entry.js +0 -5
  2177. package/dist/checkout/p-cda0fb4e.entry.js +0 -1
  2178. package/dist/checkout/p-cecfb55a.entry.js +0 -1
  2179. package/dist/checkout/p-d819f4e4.entry.js +0 -1
  2180. package/dist/checkout/p-dd2fe837.entry.js +0 -1
  2181. package/dist/checkout/p-dfcadc7e.entry.js +0 -7
  2182. package/dist/checkout/p-e37ae6e2.entry.js +0 -1
  2183. package/dist/checkout/p-e8173bed.entry.js +0 -21
  2184. package/dist/checkout/p-ead19b10.entry.js +0 -1
  2185. package/dist/checkout/p-eae34719.entry.js +0 -1
  2186. package/dist/checkout/p-eff08443.entry.js +0 -1
  2187. package/dist/checkout/p-f0535bc6.entry.js +0 -1
  2188. package/dist/checkout/p-fd971fbb.entry.js +0 -1
  2189. package/dist/checkout/p-ff3211f5.entry.js +0 -1
  2190. package/dist/checkout/p-ktzqax7n.js +0 -4
  2191. package/dist/checkout/p-vDXqvDVZ.js +0 -8
  2192. package/dist/checkout/p-xxOnfNPU.js +0 -9
  2193. package/dist/checkout/svg/logo-threads.svg +0 -1
  2194. package/dist/cjs/i18n-uGNv9SLK.js +0 -13
  2195. package/dist/cjs/index-DseJYF57.js +0 -55
  2196. package/dist/cjs/index-NREvOo92.js +0 -434
  2197. package/dist/cjs/index-q1-id3dG.js +0 -3868
  2198. package/dist/cjs/ion-action-sheet_5.cjs.entry.js +0 -3821
  2199. package/dist/cjs/ion-buttons_10.cjs.entry.js +0 -1921
  2200. package/dist/cjs/ion-input-otp.cjs.entry.js +0 -649
  2201. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +0 -87
  2202. package/dist/cjs/ion-label_2.cjs.entry.js +0 -106
  2203. package/dist/cjs/ion-picker-legacy-column.cjs.entry.js +0 -363
  2204. package/dist/cjs/ion-picker-legacy.cjs.entry.js +0 -301
  2205. package/dist/cjs/ion-picker_3.cjs.entry.js +0 -1157
  2206. package/dist/cjs/ion-segment-content.cjs.entry.js +0 -17
  2207. package/dist/cjs/ion-segment-view.cjs.entry.js +0 -120
  2208. package/dist/cjs/ionic-global-tfENS075.js +0 -153
  2209. package/dist/cjs/validity-ClNawnRU.js +0 -19
  2210. package/dist/components/ion-input-otp.js +0 -1
  2211. package/dist/components/ion-input-password-toggle.js +0 -1
  2212. package/dist/components/ion-picker-column-option.js +0 -1
  2213. package/dist/components/ion-picker-legacy-column.js +0 -1
  2214. package/dist/components/ion-picker-legacy.js +0 -7
  2215. package/dist/components/ion-segment-content.js +0 -1
  2216. package/dist/components/ion-segment-view.js +0 -1
  2217. package/dist/components/ion-select-modal.js +0 -1
  2218. package/dist/components/p-1a8GRr4X.js +0 -8
  2219. package/dist/components/p-84v5d37k.js +0 -5
  2220. package/dist/components/p-8qbKOEwg.js +0 -7
  2221. package/dist/components/p-B-hirT0v.js +0 -4
  2222. package/dist/components/p-B2pBbmZL.js +0 -1
  2223. package/dist/components/p-B3WORC1a.js +0 -1
  2224. package/dist/components/p-B6K4Vevt.js +0 -1
  2225. package/dist/components/p-B8CJYukv.js +0 -4
  2226. package/dist/components/p-B8rkbvHJ.js +0 -4
  2227. package/dist/components/p-BB452BOr.js +0 -1
  2228. package/dist/components/p-BGU8Nymd.js +0 -1
  2229. package/dist/components/p-BHQVufb8.js +0 -4
  2230. package/dist/components/p-BNXO_6OD.js +0 -1
  2231. package/dist/components/p-BTEOs1at.js +0 -4
  2232. package/dist/components/p-BU2g75_N.js +0 -1
  2233. package/dist/components/p-Bam2tSRs.js +0 -1
  2234. package/dist/components/p-BgdIJBVf.js +0 -4
  2235. package/dist/components/p-BgihAYme.js +0 -7
  2236. package/dist/components/p-BmVRXR1y.js +0 -4
  2237. package/dist/components/p-BxP8TDfL.js +0 -4
  2238. package/dist/components/p-ByfqFtWT.js +0 -1
  2239. package/dist/components/p-Bz350JGF.js +0 -7
  2240. package/dist/components/p-C-A_jB82.js +0 -4
  2241. package/dist/components/p-C03M5ZSM.js +0 -1
  2242. package/dist/components/p-C53feagD.js +0 -4
  2243. package/dist/components/p-CECOogQN.js +0 -4
  2244. package/dist/components/p-CH3Eg9_f.js +0 -7
  2245. package/dist/components/p-CQOdiSAf.js +0 -1
  2246. package/dist/components/p-CUAFXzfF.js +0 -1
  2247. package/dist/components/p-C_xZxwXS.js +0 -1
  2248. package/dist/components/p-CaFnxdQd.js +0 -1
  2249. package/dist/components/p-CoO47q0D.js +0 -7
  2250. package/dist/components/p-D2NxOvQ8.js +0 -4
  2251. package/dist/components/p-DDc_C9oA.js +0 -7
  2252. package/dist/components/p-DIdQsHkC.js +0 -4
  2253. package/dist/components/p-DJDxJDy6.js +0 -1
  2254. package/dist/components/p-DJztqcrH.js +0 -4
  2255. package/dist/components/p-DK1OQn93.js +0 -1
  2256. package/dist/components/p-DKg_dYcq.js +0 -4
  2257. package/dist/components/p-DMTBSB3x.js +0 -1
  2258. package/dist/components/p-DQAmWfm1.js +0 -8
  2259. package/dist/components/p-DR2jvB6s.js +0 -4
  2260. package/dist/components/p-DRov8Rcu.js +0 -4
  2261. package/dist/components/p-DVAa5Ick.js +0 -1
  2262. package/dist/components/p-DXFVmcjn.js +0 -1
  2263. package/dist/components/p-DYhpoJMW.js +0 -4
  2264. package/dist/components/p-Db1yB4_h.js +0 -4
  2265. package/dist/components/p-DcJzInl-.js +0 -4
  2266. package/dist/components/p-DexEOBMU.js +0 -8
  2267. package/dist/components/p-DiVJyqlX.js +0 -4
  2268. package/dist/components/p-DjZwclUS.js +0 -5
  2269. package/dist/components/p-DokQbOf0.js +0 -7
  2270. package/dist/components/p-Dtdm8lKC.js +0 -4
  2271. package/dist/components/p-DuZ7hY1a.js +0 -4
  2272. package/dist/components/p-Dzmy2KMF.js +0 -8
  2273. package/dist/components/p-GqmIVAr9.js +0 -1
  2274. package/dist/components/p-RvBk4hGw.js +0 -1
  2275. package/dist/components/p-RxmIKEEQ.js +0 -1
  2276. package/dist/components/p-ZjP4CjeZ.js +0 -4
  2277. package/dist/components/p-hHmYLOfE.js +0 -4
  2278. package/dist/components/p-jWFeuAB5.js +0 -1
  2279. package/dist/components/p-kYICRcU6.js +0 -1
  2280. package/dist/components/p-lwDXTYn3.js +0 -4
  2281. package/dist/components/p-oMX-ZLwD.js +0 -4
  2282. package/dist/components/p-oThWliBi.js +0 -4
  2283. package/dist/components/p-uBkJJD7w.js +0 -1
  2284. package/dist/components/p-wRbQpgeV.js +0 -1
  2285. package/dist/components/p-zVHkqcTn.js +0 -4
  2286. package/dist/esm/i18n-C_AfxZ5D.js +0 -13
  2287. package/dist/esm/index-BmlsNFZH.js +0 -29
  2288. package/dist/esm/index-DoRYA1qF.js +0 -424
  2289. package/dist/esm/index-xxOnfNPU.js +0 -3844
  2290. package/dist/esm/ion-action-sheet_5.entry.js +0 -3815
  2291. package/dist/esm/ion-buttons_10.entry.js +0 -1910
  2292. package/dist/esm/ion-input-otp.entry.js +0 -647
  2293. package/dist/esm/ion-input-password-toggle.entry.js +0 -85
  2294. package/dist/esm/ion-label_2.entry.js +0 -103
  2295. package/dist/esm/ion-picker-legacy-column.entry.js +0 -361
  2296. package/dist/esm/ion-picker-legacy.entry.js +0 -299
  2297. package/dist/esm/ion-picker_3.entry.js +0 -1153
  2298. package/dist/esm/ion-segment-content.entry.js +0 -15
  2299. package/dist/esm/ion-segment-view.entry.js +0 -118
  2300. package/dist/esm/validity-DJztqcrH.js +0 -17
  2301. /package/dist/checkout/{p-B-hirT0v.js → p-01ad898f.js} +0 -0
  2302. /package/dist/checkout/{p-DiVJyqlX.js → p-350e7423.js} +0 -0
  2303. /package/dist/checkout/{p-sObYyvOy.js → p-52b4c112.js} +0 -0
  2304. /package/dist/checkout/{p-BmVRXR1y.js → p-620fa0ec.js} +0 -0
  2305. /package/dist/checkout/{p-hHmYLOfE.js → p-94286cc3.js} +0 -0
  2306. /package/dist/checkout/{p-D4RIp70E.js → p-9efbca93.js} +0 -0
  2307. /package/dist/checkout/{p-Dtdm8lKC.js → p-9f4ac833.js} +0 -0
  2308. /package/dist/checkout/{p-C53feagD.js → p-d5862637.js} +0 -0
  2309. /package/dist/checkout/{p-ZjP4CjeZ.js → p-d7fe59ee.js} +0 -0
  2310. /package/dist/cjs/{compare-with-utils-JlLIkecm.js → compare-with-utils-adbe64a6.js} +0 -0
  2311. /package/dist/cjs/{cubic-bezier-Bv3PvaRI.js → cubic-bezier-5ff9b04e.js} +0 -0
  2312. /package/dist/cjs/{dir-Br-7_bel.js → dir-374f13f2.js} +0 -0
  2313. /package/dist/cjs/{focus-visible-Da2o6bTP.js → focus-visible-b7381162.js} +0 -0
  2314. /package/dist/cjs/{index-D3mJ1Cix.js → index-a281cac3.js} +0 -0
  2315. /package/dist/cjs/{lock-controller-58TZFRHC.js → lock-controller-e2dfece6.js} +0 -0
  2316. /package/dist/cjs/{spinner-configs-BN41iw42.js → spinner-configs-036ebfd8.js} +0 -0
  2317. /package/dist/cjs/{theme-DbHdw1Nx.js → theme-12dec869.js} +0 -0
  2318. /package/dist/cjs/{watch-options-DOFUPyuf.js → watch-options-1cccbe6a.js} +0 -0
  2319. /package/dist/{esm/lock-controller-B-hirT0v.js → components/p-01ad898f.js} +0 -0
  2320. /package/dist/{esm/theme-DiVJyqlX.js → components/p-350e7423.js} +0 -0
  2321. /package/dist/{esm/focus-visible-BmVRXR1y.js → components/p-620fa0ec.js} +0 -0
  2322. /package/dist/{esm/cubic-bezier-hHmYLOfE.js → components/p-94286cc3.js} +0 -0
  2323. /package/dist/{esm/watch-options-Dtdm8lKC.js → components/p-9f4ac833.js} +0 -0
  2324. /package/dist/{esm/dir-C53feagD.js → components/p-d5862637.js} +0 -0
  2325. /package/dist/{esm/index-ZjP4CjeZ.js → components/p-d7fe59ee.js} +0 -0
  2326. /package/dist/esm/{compare-with-utils-sObYyvOy.js → compare-with-utils-d58be312.js} +0 -0
  2327. /package/dist/esm/{spinner-configs-D4RIp70E.js → spinner-configs-c9fb0813.js} +0 -0
@@ -1 +1,3391 @@
1
- import{p as t,H as n,h as e,t as r}from"./p-DQAmWfm1.js";import{T as o}from"./p-C03M5ZSM.js";var i,s,a={};function c(){return s?i:(s=1,i=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var l,u={},h={};function f(){if(l)return h;let t;l=1;const n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return h.getSymbolSize=function(t){if(!t)throw Error('"version" cannot be null or undefined');if(t<1||t>40)throw Error('"version" should be in range from 1 to 40');return 4*t+17},h.getSymbolTotalCodewords=function(t){return n[t]},h.getBCHDigit=function(t){let n=0;for(;0!==t;)n++,t>>>=1;return n},h.setToSJISFunction=function(n){if("function"!=typeof n)throw Error('"toSJISFunc" is not a valid function.');t=n},h.isKanjiModeEnabled=function(){return void 0!==t},h.toSJIS=function(n){return t(n)},h}var d,p,m,g,x,y={};function w(){return d||(d=1,function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},t.from=function(n,e){if(t.isValid(n))return n;try{return function(n){if("string"!=typeof n)throw Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw Error("Unknown EC Level: "+n)}}(n)}catch(t){return e}}}(y)),y}var v,C,b,k,E={},A={},P={},F={};function M(){if(k)return F;k=1;const t=w(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],e=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return F.getBlocksCount=function(e,r){switch(r){case t.L:return n[4*(e-1)+0];case t.M:return n[4*(e-1)+1];case t.Q:return n[4*(e-1)+2];case t.H:return n[4*(e-1)+3];default:return}},F.getTotalCodewordsCount=function(n,r){switch(r){case t.L:return e[4*(n-1)+0];case t.M:return e[4*(n-1)+1];case t.Q:return e[4*(n-1)+2];case t.H:return e[4*(n-1)+3];default:return}},F}var _,I,T,R,N={},B={};var S,q={},z={},U={};function j(){return S||(S=1,U.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),U}var L,D,$,O={};function Q(){if(L)return O;L=1;const t="[0-9]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const e="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+";O.KANJI=RegExp(n,"g"),O.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),O.BYTE=RegExp(e,"g"),O.NUMERIC=RegExp(t,"g"),O.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");const r=RegExp("^"+n+"$"),o=RegExp("^"+t+"$"),i=RegExp("^[A-Z0-9 $%*+\\-./:]+$");return O.testKanji=function(t){return r.test(t)},O.testNumeric=function(t){return o.test(t)},O.testAlphanumeric=function(t){return i.test(t)},O}function Z(){return D||(D=1,function(t){const n=j(),e=Q();t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(t,e){if(!t.ccBits)throw Error("Invalid mode: "+t);if(!n.isValid(e))throw Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(n){return e.testNumeric(n)?t.NUMERIC:e.testAlphanumeric(n)?t.ALPHANUMERIC:e.testKanji(n)?t.KANJI:t.BYTE},t.toString=function(t){if(t&&t.id)return t.id;throw Error("Invalid mode")},t.isValid=function(t){return t&&t.bit&&t.ccBits},t.from=function(n,e){if(t.isValid(n))return n;try{return function(n){if("string"!=typeof n)throw Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw Error("Unknown mode: "+n)}}(n)}catch(t){return e}}}(z)),z}var Y,J,H,K,W,G,V,X,tt,nt,et,rt,ot={},it={},st={exports:{}};function at(){return nt||(nt=1,function(t){var n={single_source_shortest_paths:function(t,e,r){var o={},i={};i[e]=0;var s,a,c,l,u,h,f=n.PriorityQueue.make();for(f.push(e,0);!f.empty();)for(c in l=(s=f.pop()).cost,u=t[a=s.value]||{})u.hasOwnProperty(c)&&(h=l+u[c],(void 0===i[c]||i[c]>h)&&(i[c]=h,f.push(c,h),o[c]=a));if(void 0!==r&&void 0===i[r])throw Error("Could not find a path from "+e+" to "+r+".");return o},extract_shortest_path_from_predecessor_list:function(t,n){for(var e=[],r=n;r;)e.push(r),r=t[r];return e.reverse(),e},find_path:function(t,e,r){var o=n.single_source_shortest_paths(t,e,r);return n.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(t){var e,r=n.PriorityQueue,o={};for(e in t=t||{},r)r.hasOwnProperty(e)&&(o[e]=r[e]);return o.queue=[],o.sorter=t.sorter||r.default_sorter,o},default_sorter:function(t,n){return t.cost-n.cost},push:function(t,n){this.queue.push({value:t,cost:n}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=n}(st)),st.exports}function ct(){if(rt)return u;rt=1;const t=f(),n=w(),e=function(){if(m)return p;function t(){this.buffer=[],this.length=0}return m=1,t.prototype={get:function(t){return 1==(this.buffer[Math.floor(t/8)]>>>7-t%8&1)},put:function(t,n){for(let e=0;e<n;e++)this.putBit(1==(t>>>n-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},p=t}(),r=function(){if(x)return g;function t(t){if(!t||t<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return x=1,t.prototype.set=function(t,n,e,r){const o=t*this.size+n;this.data[o]=e,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(t,n){return this.data[t*this.size+n]},t.prototype.xor=function(t,n,e){this.data[t*this.size+n]^=e},t.prototype.isReserved=function(t,n){return this.reservedBit[t*this.size+n]},g=t}(),o=(v||(v=1,function(t){const n=f().getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,r=n(t),o=145===r?26:2*Math.ceil((r-13)/(2*e-2)),i=[r-7];for(let t=1;t<e-1;t++)i[t]=i[t-1]-o;return i.push(6),i.reverse()},t.getPositions=function(n){const e=[],r=t.getRowColCoords(n),o=r.length;for(let t=0;t<o;t++)for(let n=0;n<o;n++)0===t&&0===n||0===t&&n===o-1||t===o-1&&0===n||e.push([r[t],r[n]]);return e}}(E)),E),i=function(){if(C)return A;C=1;const t=f().getSymbolSize;return A.getPositions=function(n){const e=t(n);return[[0,0],[e-7,0],[0,e-7]]},A}(),s=(b||(b=1,function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function n(n,e,r){switch(n){case t.Patterns.PATTERN000:return(e+r)%2==0;case t.Patterns.PATTERN001:return e%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(e+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return e*r%2+e*r%3==0;case t.Patterns.PATTERN110:return(e*r%2+e*r%3)%2==0;case t.Patterns.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw Error("bad maskPattern:"+n)}}t.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},t.from=function(n){return t.isValid(n)?parseInt(n,10):void 0},t.getPenaltyN1=function(t){const n=t.size;let e=0,r=0,o=0,i=null,s=null;for(let a=0;a<n;a++){r=o=0,i=s=null;for(let c=0;c<n;c++){let n=t.get(a,c);n===i?r++:(r>=5&&(e+=r-5+3),i=n,r=1),n=t.get(c,a),n===s?o++:(o>=5&&(e+=o-5+3),s=n,o=1)}r>=5&&(e+=r-5+3),o>=5&&(e+=o-5+3)}return e},t.getPenaltyN2=function(t){const n=t.size;let e=0;for(let r=0;r<n-1;r++)for(let o=0;o<n-1;o++){const n=t.get(r,o)+t.get(r,o+1)+t.get(r+1,o)+t.get(r+1,o+1);4!==n&&0!==n||e++}return 3*e},t.getPenaltyN3=function(t){const n=t.size;let e=0,r=0,o=0;for(let i=0;i<n;i++){r=o=0;for(let s=0;s<n;s++)r=r<<1&2047|t.get(i,s),s>=10&&(1488===r||93===r)&&e++,o=o<<1&2047|t.get(s,i),s>=10&&(1488===o||93===o)&&e++}return 40*e},t.getPenaltyN4=function(t){let n=0;const e=t.data.length;for(let r=0;r<e;r++)n+=t.data[r];return 10*Math.abs(Math.ceil(100*n/e/5)-10)},t.applyMask=function(t,e){const r=e.size;for(let o=0;o<r;o++)for(let i=0;i<r;i++)e.isReserved(i,o)||e.xor(i,o,n(t,i,o))},t.getBestMask=function(n,e){const r=Object.keys(t.Patterns).length;let o=0,i=1/0;for(let s=0;s<r;s++){e(s),t.applyMask(s,n);const r=t.getPenaltyN1(n)+t.getPenaltyN2(n)+t.getPenaltyN3(n)+t.getPenaltyN4(n);t.applyMask(s,n),r<i&&(i=r,o=s)}return o}}(P)),P),a=M(),c=function(){if(R)return T;R=1;const t=(I||(I=1,function(t){const n=function(){if(_)return B;_=1;const t=new Uint8Array(512),n=new Uint8Array(256);return function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,256&e&&(e^=285);for(let n=255;n<512;n++)t[n]=t[n-255]}(),B.log=function(t){if(t<1)throw Error("log("+t+")");return n[t]},B.exp=function(n){return t[n]},B.mul=function(e,r){return 0===e||0===r?0:t[n[e]+n[r]]},B}();t.mul=function(t,e){const r=new Uint8Array(t.length+e.length-1);for(let o=0;o<t.length;o++)for(let i=0;i<e.length;i++)r[o+i]^=n.mul(t[o],e[i]);return r},t.mod=function(t,e){let r=new Uint8Array(t);for(;r.length-e.length>=0;){const t=r[0];for(let o=0;o<e.length;o++)r[o]^=n.mul(e[o],t);let o=0;for(;o<r.length&&0===r[o];)o++;r=r.slice(o)}return r},t.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let o=0;o<e;o++)r=t.mul(r,new Uint8Array([1,n.exp(o)]));return r}}(N)),N);function n(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}return n.prototype.initialize=function(n){this.degree=n,this.genPoly=t.generateECPolynomial(this.degree)},n.prototype.encode=function(n){if(!this.genPoly)throw Error("Encoder not initialized");const e=new Uint8Array(n.length+this.degree);e.set(n);const r=t.mod(e,this.genPoly),o=this.degree-r.length;if(o>0){const t=new Uint8Array(this.degree);return t.set(r,o),t}return r},T=n}(),l=($||($=1,function(t){const n=f(),e=M(),r=w(),o=Z(),i=j(),s=n.getBCHDigit(7973);function a(t,n){return o.getCharCountIndicator(t,n)+4}function c(t,n){let e=0;return t.forEach((function(t){const r=a(t.mode,n);e+=r+t.getBitsLength()})),e}t.from=function(t,n){return i.isValid(t)?parseInt(t,10):n},t.getCapacity=function(t,r,s){if(!i.isValid(t))throw Error("Invalid QR Code version");void 0===s&&(s=o.BYTE);const c=8*(n.getSymbolTotalCodewords(t)-e.getTotalCodewordsCount(t,r));if(s===o.MIXED)return c;const l=c-a(s,t);switch(s){case o.NUMERIC:return Math.floor(l/10*3);case o.ALPHANUMERIC:return Math.floor(l/11*2);case o.KANJI:return Math.floor(l/13);default:return Math.floor(l/8)}},t.getBestVersionForData=function(n,e){let i;const s=r.from(e,r.M);if(Array.isArray(n)){if(n.length>1)return function(n,e){for(let r=1;r<=40;r++)if(c(n,r)<=t.getCapacity(r,e,o.MIXED))return r}(n,s);if(0===n.length)return 1;i=n[0]}else i=n;return function(n,e,r){for(let o=1;o<=40;o++)if(e<=t.getCapacity(o,r,n))return o}(i.mode,i.getLength(),s)},t.getEncodedBits=function(t){if(!i.isValid(t)||t<7)throw Error("Invalid QR Code version");let e=t<<12;for(;n.getBCHDigit(e)-s>=0;)e^=7973<<n.getBCHDigit(e)-s;return t<<12|e}}(q)),q),h=function(){if(Y)return ot;Y=1;const t=f(),n=t.getBCHDigit(1335);return ot.getEncodedBits=function(e,r){const o=e.bit<<3|r;let i=o<<10;for(;t.getBCHDigit(i)-n>=0;)i^=1335<<t.getBCHDigit(i)-n;return 21522^(o<<10|i)},ot}(),d=Z(),y=(et||(et=1,function(t){const n=Z(),e=function(){if(H)return J;H=1;const t=Z();function n(n){this.mode=t.NUMERIC,this.data=""+n}return n.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let n,e,r;for(n=0;n+3<=this.data.length;n+=3)e=this.data.substr(n,3),r=parseInt(e,10),t.put(r,10);const o=this.data.length-n;o>0&&(e=this.data.substr(n),r=parseInt(e,10),t.put(r,3*o+1))},J=n}(),r=function(){if(W)return K;W=1;const t=Z(),n=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function e(n){this.mode=t.ALPHANUMERIC,this.data=n}return e.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let r=45*n.indexOf(this.data[e]);r+=n.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(n.indexOf(this.data[e]),6)},K=e}(),o=function(){if(V)return G;V=1;const t=Z();function n(n){this.mode=t.BYTE,this.data="string"==typeof n?(new TextEncoder).encode(n):new Uint8Array(n)}return n.getBitsLength=function(t){return 8*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){for(let n=0,e=this.data.length;n<e;n++)t.put(this.data[n],8)},G=n}(),i=function(){if(tt)return X;tt=1;const t=Z(),n=f();function e(n){this.mode=t.KANJI,this.data=n}return e.getBitsLength=function(t){return 13*t},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let r=n.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},X=e}(),s=Q(),a=f(),c=at();function l(t){return unescape(encodeURIComponent(t)).length}function u(t,n,e){const r=[];let o;for(;null!==(o=t.exec(e));)r.push({data:o[0],index:o.index,mode:n,length:o[0].length});return r}function h(t){const e=u(s.NUMERIC,n.NUMERIC,t),r=u(s.ALPHANUMERIC,n.ALPHANUMERIC,t);let o,i;return a.isKanjiModeEnabled()?(o=u(s.BYTE,n.BYTE,t),i=u(s.KANJI,n.KANJI,t)):(o=u(s.BYTE_KANJI,n.BYTE,t),i=[]),e.concat(r,o,i).sort((function(t,n){return t.index-n.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function d(t,s){switch(s){case n.NUMERIC:return e.getBitsLength(t);case n.ALPHANUMERIC:return r.getBitsLength(t);case n.KANJI:return i.getBitsLength(t);case n.BYTE:return o.getBitsLength(t)}}function p(t,s){let c;const l=n.getBestModeForData(t);if(c=n.from(s,l),c!==n.BYTE&&c.bit<l.bit)throw Error('"'+t+'" cannot be encoded with mode '+n.toString(c)+".\n Suggested mode is: "+n.toString(l));switch(c!==n.KANJI||a.isKanjiModeEnabled()||(c=n.BYTE),c){case n.NUMERIC:return new e(t);case n.ALPHANUMERIC:return new r(t);case n.KANJI:return new i(t);case n.BYTE:return new o(t)}}t.fromArray=function(t){return t.reduce((function(t,n){return"string"==typeof n?t.push(p(n,null)):n.data&&t.push(p(n.data,n.mode)),t}),[])},t.fromString=function(e,r){const o=function(t,e){const r={},o={start:{}};let i=["start"];for(let s=0;s<t.length;s++){const a=t[s],c=[];for(let t=0;t<a.length;t++){const l=a[t],u=""+s+t;c.push(u),r[u]={node:l,lastCount:0},o[u]={};for(let t=0;t<i.length;t++){const s=i[t];r[s]&&r[s].node.mode===l.mode?(o[s][u]=d(r[s].lastCount+l.length,l.mode)-d(r[s].lastCount,l.mode),r[s].lastCount+=l.length):(r[s]&&(r[s].lastCount=l.length),o[s][u]=d(l.length,l.mode)+4+n.getCharCountIndicator(l.mode,e))}}i=c}for(let t=0;t<i.length;t++)o[i[t]].end=0;return{map:o,table:r}}(function(t){const e=[];for(let r=0;r<t.length;r++){const o=t[r];switch(o.mode){case n.NUMERIC:e.push([o,{data:o.data,mode:n.ALPHANUMERIC,length:o.length},{data:o.data,mode:n.BYTE,length:o.length}]);break;case n.ALPHANUMERIC:e.push([o,{data:o.data,mode:n.BYTE,length:o.length}]);break;case n.KANJI:e.push([o,{data:o.data,mode:n.BYTE,length:l(o.data)}]);break;case n.BYTE:e.push([{data:o.data,mode:n.BYTE,length:l(o.data)}])}}return e}(h(e,a.isKanjiModeEnabled())),r),i=c.find_path(o.map,"start","end"),s=[];for(let t=1;t<i.length-1;t++)s.push(o.table[i[t]].node);return t.fromArray(function(t){return t.reduce((function(t,n){const e=t.length-1>=0?t[t.length-1]:null;return e&&e.mode===n.mode?(t[t.length-1].data+=n.data,t):(t.push(n),t)}),[])}(s))},t.rawSplit=function(n){return t.fromArray(h(n,a.isKanjiModeEnabled()))}}(it)),it);function k(t,n,e){const r=t.size,o=h.getEncodedBits(n,e);let i,s;for(i=0;i<15;i++)s=1==(o>>i&1),t.set(i<6?i:i<8?i+1:r-15+i,8,s,!0),t.set(8,i<8?r-i-1:i<9?15-i-1+1:15-i-1,s,!0);t.set(r-8,8,1,!0)}function F(n,u,h,f){let p;if(Array.isArray(n))p=y.fromArray(n);else{if("string"!=typeof n)throw Error("Invalid data");{let t=u;if(!t){const e=y.rawSplit(n);t=l.getBestVersionForData(e,h)}p=y.fromString(n,t||40)}}const m=l.getBestVersionForData(p,h);if(!m)throw Error("The amount of data is too big to be stored in a QR Code");if(u){if(u<m)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+m+".\n")}else u=m;const g=function(n,r,o){const i=new e;o.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),d.getCharCountIndicator(t.mode,n)),t.write(i)}));const s=8*(t.getSymbolTotalCodewords(n)-a.getTotalCodewordsCount(n,r));for(i.getLengthInBits()+4<=s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const l=(s-i.getLengthInBits())/8;for(let t=0;t<l;t++)i.put(t%2?17:236,8);return function(n,e,r){const o=t.getSymbolTotalCodewords(e),i=o-a.getTotalCodewordsCount(e,r),s=a.getBlocksCount(e,r),l=s-o%s,u=Math.floor(o/s),h=Math.floor(i/s),f=h+1,d=u-h,p=new c(d);let m=0;const g=Array(s),x=Array(s);let y=0;const w=new Uint8Array(n.buffer);for(let t=0;t<s;t++){const n=t<l?h:f;g[t]=w.slice(m,m+n),x[t]=p.encode(g[t]),m+=n,y=Math.max(y,n)}const v=new Uint8Array(o);let C,b,k=0;for(C=0;C<y;C++)for(b=0;b<s;b++)C<g[b].length&&(v[k++]=g[b][C]);for(C=0;C<d;C++)for(b=0;b<s;b++)v[k++]=x[b][C];return v}(i,n,r)}(u,h,p),x=t.getSymbolSize(u),w=new r(x);return function(t,n){const e=t.size,r=i.getPositions(n);for(let n=0;n<r.length;n++){const o=r[n][0],i=r[n][1];for(let n=-1;n<=7;n++)if(!(o+n<=-1||e<=o+n))for(let r=-1;r<=7;r++)i+r<=-1||e<=i+r||t.set(o+n,i+r,n>=0&&n<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===n||6===n)||n>=2&&n<=4&&r>=2&&r<=4,!0)}}(w,u),function(t){const n=t.size;for(let e=8;e<n-8;e++){const n=e%2==0;t.set(e,6,n,!0),t.set(6,e,n,!0)}}(w),function(t,n){const e=o.getPositions(n);for(let n=0;n<e.length;n++){const r=e[n][0],o=e[n][1];for(let n=-2;n<=2;n++)for(let e=-2;e<=2;e++)t.set(r+n,o+e,-2===n||2===n||-2===e||2===e||0===n&&0===e,!0)}}(w,u),k(w,h,0),u>=7&&function(t,n){const e=t.size,r=l.getEncodedBits(n);let o,i,s;for(let n=0;n<18;n++)o=Math.floor(n/3),i=n%3+e-8-3,s=1==(r>>n&1),t.set(o,i,s,!0),t.set(i,o,s,!0)}(w,u),function(t,n){const e=t.size;let r=-1,o=e-1,i=7,s=0;for(let a=e-1;a>0;a-=2)for(6===a&&a--;;){for(let e=0;e<2;e++)if(!t.isReserved(o,a-e)){let r=!1;s<n.length&&(r=1==(n[s]>>>i&1)),t.set(o,a-e,r),i--,-1===i&&(s++,i=7)}if(o+=r,o<0||e<=o){o-=r,r=-r;break}}}(w,g),isNaN(f)&&(f=s.getBestMask(w,k.bind(null,w,h))),s.applyMask(f,w),k(w,h,f),{modules:w,version:u,errorCorrectionLevel:h,maskPattern:f,segments:p}}return u.create=function(e,r){if(void 0===e||""===e)throw Error("No input text");let o,i,a=n.M;return void 0!==r&&(a=n.from(r.errorCorrectionLevel,n.M),o=l.from(r.version),i=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),F(e,o,a,i)},u}var lt,ut,ht={},ft={};function dt(){return lt||(lt=1,function(t){function n(t){if("number"==typeof t&&(t=""+t),"string"!=typeof t)throw Error("Color should be defined as hex string");let n=t.slice().replace("#","").split("");if(n.length<3||5===n.length||n.length>8)throw Error("Invalid hex color: "+t);3!==n.length&&4!==n.length||(n=Array.prototype.concat.apply([],n.map((function(t){return[t,t]})))),6===n.length&&n.push("F","F");const e=parseInt(n.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:255&e,hex:"#"+n.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const e=t.width&&t.width>=21?t.width:void 0;return{width:e,scale:e?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},t.getScale=function(t,n){return n.width&&n.width>=t+2*n.margin?n.width/(t+2*n.margin):n.scale},t.getImageWidth=function(n,e){const r=t.getScale(n,e);return Math.floor((n+2*e.margin)*r)},t.qrToImageData=function(n,e,r){const o=e.modules.size,i=e.modules.data,s=t.getScale(o,r),a=Math.floor((o+2*r.margin)*s),c=r.margin*s,l=[r.color.light,r.color.dark];for(let t=0;t<a;t++)for(let e=0;e<a;e++){let u=4*(t*a+e),h=r.color.light;t>=c&&e>=c&&t<a-c&&e<a-c&&(h=l[i[Math.floor((t-c)/s)*o+Math.floor((e-c)/s)]?1:0]),n[u++]=h.r,n[u++]=h.g,n[u++]=h.b,n[u]=h.a}}}(ft)),ft}var pt,mt,gt={};var xt=function(){if(mt)return a;mt=1;const t=c(),n=ct(),e=(ut||(ut=1,function(t){const n=dt();t.render=function(t,e,r){let o=r,i=e;void 0!==o||e&&e.getContext||(o=e,e=void 0),e||(i=function(){try{return document.createElement("canvas")}catch(t){throw Error("You need to specify a canvas element")}}()),o=n.getOptions(o);const s=n.getImageWidth(t.modules.size,o),a=i.getContext("2d"),c=a.createImageData(s,s);return n.qrToImageData(c.data,t,o),function(t,n,e){t.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=e,n.width=e,n.style.height=e+"px",n.style.width=e+"px"}(a,i,s),a.putImageData(c,0,0),i},t.renderToDataURL=function(n,e,r){let o=r;return void 0!==o||e&&e.getContext||(o=e,e=void 0),o||(o={}),t.render(n,e,o).toDataURL(o.type||"image/png",(o.rendererOpts||{}).quality)}}(ht)),ht),r=function(){if(pt)return gt;pt=1;const t=dt();function n(t,n){const e=t.a/255,r=n+'="'+t.hex+'"';return e<1?r+" "+n+'-opacity="'+e.toFixed(2).slice(1)+'"':r}function e(t,n,e){let r=t+n;return void 0!==e&&(r+=" "+e),r}return gt.render=function(r,o,i){const s=t.getOptions(o),a=r.modules.size,c=r.modules.data,l=a+2*s.margin,u=s.color.light.a?"<path "+n(s.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",h="<path "+n(s.color.dark,"stroke")+' d="'+function(t,n,r){let o="",i=0,s=!1,a=0;for(let c=0;c<t.length;c++){const l=Math.floor(c%n);l||s||(s=!0),t[c]?(a++,c>0&&l>0&&t[c-1]||(o+=s?e("M",l+r,.5+Math.floor(c/n)+r):e("m",i,0),i=0,s=!1),l+1<n&&t[c+1]||(o+=e("h",a),a=0)):i++}return o}(c,a,s.margin)+'"/>',f='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+'viewBox="0 0 '+l+" "+l+'" shape-rendering="crispEdges">'+u+h+"</svg>\n";return"function"==typeof i&&i(null,f),f},gt}();function o(e,r,o,i,s){const a=[].slice.call(arguments,1),c=a.length,l="function"==typeof a[c-1];if(!l&&!t())throw Error("Callback required as last argument");if(!l){if(c<1)throw Error("Too few arguments provided");return 1===c?(o=r,r=i=void 0):2!==c||r.getContext||(i=o,o=r,r=void 0),new Promise((function(t,s){try{const s=n.create(o,i);t(e(s,r,i))}catch(t){s(t)}}))}if(c<2)throw Error("Too few arguments provided");2===c?(s=o,o=r,r=i=void 0):3===c&&(r.getContext&&void 0===s?(s=i,i=void 0):(s=i,i=o,o=r,r=void 0));try{const t=n.create(o,i);s(null,e(t,r,i))}catch(t){s(t)}}return a.create=n.create,a.toCanvas=o.bind(null,e.render),a.toDataURL=o.bind(null,e.renderToDataURL),a.toString=o.bind(null,(function(t,n,e){return r.render(t,e)})),a}();const yt=t(class extends n{constructor(t){super(),!1!==t&&this.__registerHost(),this.amount="",this.locale="en",this.debug=!1,this.minAmount=1,this.maxAmount=999999,this.authToken="",this.storeId="",this.apiBaseUrl="https://backend.sa.amwal.tech",this.addressRequired=!1,this.sendSms=!1,this.passkeyEnabled=!1,this.onlyShowBankInstallments=!1,this.onlyShowPayInFull=!1,this.currentScreen="amount-entry",this.qrCodeData="",this.qrCodeDataURL="",this.transactionId="",this.errorMessage="",this.paymentUrl="",this.isChecking=!1,this.checkAttempts=0,this.t=t=>t,this.handleNumberInput=t=>{"."===t&&this.amount.includes(".")||this.amount.includes(".")&&this.amount.split(".")[1].length>=2||(this.amount=this.amount+t)},this.handleBackspace=()=>{this.amount=this.amount.slice(0,-1)},this.handleContinue=async()=>{const t=parseFloat(this.amount);t>=this.minAmount&&t<=this.maxAmount&&(this.currentScreen="processing",await this.createTransaction())},this.createTransaction=async()=>{const t=await this.createPaymentLink();t&&(console.log(t),this.transactionId=t.payment_link_id||t.id,this.paymentUrl="https://pay.sa.amwal.tech/payment-link/"+(t.payment_link_id||t.id),this.qrCodeData=t.qr_code||this.paymentUrl,await this.generateQRCode(this.qrCodeData),this.currentScreen="qr-code")},this.generateQRCode=async t=>{try{const n=await xt.toDataURL(t,{width:200,margin:2,color:{dark:"#000000",light:"#FFFFFF"},errorCorrectionLevel:"M"});this.qrCodeDataURL=n,this.debug&&console.log("[AmwalPos] QR code generated for:",t)}catch(t){console.error("[AmwalPos] Error generating QR code:",t),this.handleError("Failed to generate QR code")}},this.handleCancel=()=>{this.currentScreen="amount-entry",this.qrCodeData="",this.transactionId=""},this.handleCheckStatus=async()=>{if(!this.transactionId)return this.isChecking=!0,this.checkAttempts=0,this.currentScreen="processing",void this.startPaymentMonitoring();this.isChecking=!0,this.checkAttempts=0,this.currentScreen="processing",await this.performStatusCheck()},this.startPaymentMonitoring=async()=>{const t=async()=>{var n,e,r;if(this.isChecking){if(this.checkAttempts++,this.debug&&console.log(`[AmwalPos] Payment check attempt ${this.checkAttempts}/5`),this.transactionId){const t=await this.checkPaymentStatus(this.transactionId);if(t){const o=null===(n=t.payment_link)||void 0===n?void 0:n.status,i=null===(r=null===(e=t.transactions)||void 0===e?void 0:e[0])||void 0===r?void 0:r.status;if(this.debug&&(console.log("[AmwalPos] Payment link status:",o),console.log("[AmwalPos] Transaction status:",i)),"Paid"===o||"success"===i)return this.isChecking=!1,void(this.currentScreen="success");if("Failed"===o||"Cancelled"===o||"failed"===i||"error"===i)return this.isChecking=!1,void this.handleError("Payment failed")}}this.checkAttempts<5?setTimeout((()=>{this.isChecking&&t()}),1e4):(this.isChecking=!1,this.currentScreen="qr-code")}};setTimeout(t,2e3)},this.performStatusCheck=async()=>{var t,n,e;const r=await this.checkPaymentStatus(this.transactionId);if(r){const o=null===(t=r.payment_link)||void 0===t?void 0:t.status,i=null===(e=null===(n=r.transactions)||void 0===n?void 0:n[0])||void 0===e?void 0:e.status;this.debug&&(console.log("[AmwalPos] Payment link status:",o),console.log("[AmwalPos] Transaction status:",i)),"Paid"===o||"success"===i?(this.isChecking=!1,this.currentScreen="success"):"Failed"===o||"Cancelled"===o||"failed"===i||"error"===i?(this.isChecking=!1,this.handleError("Payment failed")):this.startPaymentMonitoring()}else this.startPaymentMonitoring()},this.createPaymentLink=async()=>{if(!this.authToken||!this.storeId)return this.handleError("Missing API configuration"),null;const t=parseFloat(this.amount);if(isNaN(t))return this.handleError("Invalid amount"),null;const n={amount:t,title:this.paymentTitle||"POS Payment - "+this.formatAmountDisplay(),singleUse:!0,description:this.paymentDescription||"Payment for "+this.formatAmountDisplay(),selectedDate:new Date(Date.now()+864e5).toISOString(),client_first_name:this.customerFirstName,client_last_name:this.customerLastName,client_email:this.customerEmail,client_phone_number:this.customerPhone,client_street1:this.customerStreet1,client_street2:this.customerStreet2,client_city:this.customerCity,client_state:this.customerState,client_country:this.customerCountry,client_postcode:this.customerPostcode,address_required:this.addressRequired||!1,language:this.locale||"en",sms_language:this.smsLanguage||("ar"===this.locale?"ar":"en"),send_sms:this.sendSms||!!this.customerPhone,passkey_enabled:this.passkeyEnabled||!1,only_show_bank_installments:this.onlyShowBankInstallments||!1,only_show_pay_in_full:this.onlyShowPayInFull||!1,callback_url:this.callbackUrl,metadata:this.metadata?JSON.parse(this.metadata):{pos_transaction:!0,timestamp:(new Date).toISOString(),amount:t,currency:this.currency}};try{this.debug&&console.log("[AmwalPos] Creating payment link with payload:",n);const t=await fetch(`${this.apiBaseUrl}/payment_links/${this.storeId}/create`,{method:"POST",headers:{Authorization:this.authToken,Accept:"application/json","Content-Type":"application/json",Origin:window.location.origin},body:JSON.stringify(n)});if(!t.ok){const n=await t.text();throw Error(`API Error: ${t.status} - ${n}`)}const e=await t.json();return this.debug&&console.log("[AmwalPos] Payment link created:",e),e}catch(t){return console.error("[AmwalPos] Error creating payment link:",t),this.handleError(t.message||"Failed to create payment link"),null}},this.checkPaymentStatus=async t=>{if(!this.authToken)return this.handleError("Missing API configuration"),null;try{this.debug&&console.log("[AmwalPos] Checking payment status for:",t);const n=await fetch(`${this.apiBaseUrl}/payment_links/${t}/details`,{method:"POST",headers:{Authorization:this.authToken,Accept:"application/json","Content-Type":"application/json",Origin:window.location.origin},body:JSON.stringify({})});if(!n.ok)throw Error("Status check failed: "+n.status);const e=await n.json();return this.debug&&console.log("[AmwalPos] Payment status response:",e),e}catch(t){return console.error("[AmwalPos] Error checking payment status:",t),null}},this.handleError=t=>{this.errorMessage=t,this.currentScreen="error",this.debug&&console.error("[AmwalPos] Error:",t)},this.isAmountValid=()=>{const t=parseFloat(this.amount);return!isNaN(t)&&t>=this.minAmount&&t<=this.maxAmount},this.formatAmountDisplay=()=>{if(!this.amount)return"";const t=parseFloat(this.amount);return isNaN(t)?"":`${this.currency} ${t.toFixed(2)}`},this.getOrderIdFromMetadata=()=>{if(!this.metadata)return null;try{return JSON.parse(this.metadata).order_id||null}catch(t){return this.debug&&console.warn("[AmwalPos] Failed to parse metadata for order_id:",t),null}}}async componentWillLoad(){try{this.t=await o.useTranslation(this.locale)}catch(t){console.error("Failed to initialize translation:",t)}}async updateLocale(t){this.locale=t;try{this.t=await o.useTranslation(this.locale)}catch(t){console.error("Failed to update translation:",t),this.t=t=>t}}renderLogo(){return e("div",{class:"pos-logo "+("ar"===this.locale?"rtl":"ltr")},e("svg",{class:"amwal-logo",width:"72",height:"29",viewBox:"0 0 72 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("rect",{width:"72",height:"28.946",rx:"6",fill:"black"}),e("path",{d:"M24.1912 11.6545C25.5297 10.5672 27.8358 10.9347 28.8503 12.3232C28.8972 12.3845 28.9818 12.3896 29.0287 12.3334C29.0804 12.2722 29.1274 12.2109 29.179 12.1547C29.7191 11.5626 30.3861 11.241 31.1328 11.0981C31.9219 10.9449 32.7015 10.9909 33.453 11.3125C34.3641 11.7004 34.9794 12.4253 35.3598 13.3901C35.6369 14.0843 35.7684 14.8194 35.7731 15.5698C35.7825 17.1216 35.7778 18.6785 35.7872 20.2303C35.7872 20.3579 35.7543 20.3783 35.6463 20.3783C34.9512 20.3732 34.2561 20.3732 33.5657 20.3783C33.453 20.3783 33.4201 20.3528 33.4201 20.2252C33.4248 18.7551 33.4248 17.2849 33.4248 15.8148C33.4248 15.386 33.359 14.9725 33.1712 14.5897C32.5747 13.3748 31.0859 13.2522 30.3109 14.36C30.015 14.7836 29.8741 15.2686 29.8741 15.7944C29.8741 17.2747 29.8741 18.7551 29.8788 20.2354C29.8788 20.3528 29.8506 20.3783 29.7473 20.3783C29.0381 20.3732 28.3242 20.3732 27.615 20.3783C27.5211 20.3783 27.4976 20.3528 27.4976 20.2507C27.5023 18.7704 27.4976 17.29 27.5023 15.8097C27.5023 15.534 27.4788 15.2584 27.4178 14.9878C27.244 14.263 26.6804 13.7168 25.9994 13.6147C24.9521 13.4564 24.3227 14.314 24.1161 15.0644C24.0409 15.3298 24.0127 15.6004 24.0127 15.8811C24.0127 17.29 24.0127 18.704 24.0174 20.1129C24.0174 20.2609 23.9094 20.3783 23.7732 20.3783C23.1016 20.3732 22.43 20.3732 21.7536 20.3783C21.655 20.3783 21.6362 20.3477 21.6362 20.2507C21.6409 17.2798 21.6409 14.314 21.6362 11.3431C21.6362 11.2512 21.6503 11.2206 21.7443 11.2206C22.4675 11.2257 23.1908 11.2257 23.9141 11.2206C23.9892 11.2206 24.0174 11.2359 24.0127 11.3227C24.008 11.4044 24.008 11.4809 24.008 11.5626C24.008 11.6596 24.1161 11.7157 24.1912 11.6545Z",fill:"white"}),e("path",{d:"M43.8655 20.384C43.8233 20.4759 43.7012 20.4759 43.6589 20.384C43.3724 19.7357 43.0906 19.0976 42.8088 18.4595C42.527 17.8215 42.2452 17.1885 41.9634 16.5402C41.9211 16.4432 41.799 16.4432 41.7568 16.5402C41.1885 17.8266 40.6249 19.0976 40.0566 20.3942C40.0143 20.4861 39.8969 20.4912 39.8499 20.3993C38.3564 17.3314 36.8723 14.2839 35.374 11.216C35.4304 11.216 35.468 11.216 35.5055 11.216C36.2993 11.216 37.0977 11.216 37.8914 11.2109C37.9807 11.2109 38.0229 11.2467 38.0605 11.3283C38.6899 12.7117 39.3239 14.09 39.9579 15.4733C39.9767 15.509 39.9908 15.5448 40.019 15.606C40.1364 15.3406 40.2444 15.0905 40.3478 14.8454C40.4793 14.5494 40.6061 14.2482 40.7376 13.9521C40.7705 13.8807 40.7705 13.8245 40.7376 13.7479C40.39 12.9516 40.0425 12.1502 39.6996 11.3488C39.6855 11.313 39.6668 11.2773 39.6527 11.2365C39.6761 11.2007 39.709 11.216 39.7372 11.216C40.4323 11.216 41.1274 11.216 41.8225 11.2109C41.9024 11.2109 41.9399 11.2416 41.9728 11.3181C42.5881 12.7219 43.208 14.1257 43.828 15.5295C43.8327 15.5397 43.8421 15.5499 43.8609 15.5754C43.9595 15.3304 44.0581 15.1007 44.152 14.8659C44.6264 13.6867 45.1055 12.5075 45.5751 11.3283C45.6127 11.2365 45.655 11.2109 45.7442 11.2109C46.4393 11.216 47.1344 11.2109 47.8295 11.2109C46.5896 14.2788 45.2323 17.3212 43.8655 20.384Z",fill:"white"}),e("path",{d:"M59.6416 13.6148C59.6416 15.8149 59.6416 18.015 59.6463 20.2151C59.6463 20.3376 59.6275 20.3733 59.5054 20.3733C58.7962 20.3682 58.0824 20.3682 57.3732 20.3733C57.2839 20.3733 57.2651 20.3478 57.2651 20.2508C57.2698 15.8302 57.2698 11.4096 57.2651 6.99405C57.2651 6.88175 57.298 6.86133 57.3919 6.86133C58.0964 6.86643 58.8056 6.86643 59.5101 6.86133C59.6228 6.86133 59.6463 6.89196 59.6463 7.01447C59.6369 9.21457 59.6416 11.4147 59.6416 13.6148Z",fill:"white"}),e("path",{d:"M56.11 11.3788C56.11 11.3584 56.1053 11.3329 56.11 11.3125C56.1194 11.241 56.0959 11.2206 56.0255 11.2206C55.3304 11.2206 54.6306 11.2206 53.9355 11.2206C53.8228 11.2206 53.7335 11.3176 53.7335 11.4401C53.7335 11.486 53.7335 11.532 53.7335 11.5779C53.7335 11.68 53.6255 11.7362 53.5504 11.68C53.0478 11.2818 52.4842 11.0725 51.8737 11.0368C50.6244 10.9602 49.5676 11.4707 48.7316 12.4661C47.689 13.7117 47.3414 15.1869 47.6326 16.8306C47.9755 18.7397 49.3938 20.3579 51.2866 20.5621C51.9911 20.6387 52.6674 20.5161 53.292 20.1333C53.3813 20.0771 53.4611 20.0159 53.541 19.9444C53.6161 19.8781 53.7288 19.9342 53.7288 20.0414C53.7288 20.118 53.7288 20.1894 53.7241 20.266C53.7194 20.363 53.7429 20.3885 53.8322 20.3885C54.4991 20.3834 55.166 20.3834 55.8376 20.3885C55.9832 20.3885 56.1053 20.2609 56.1053 20.1027C56.1053 17.1828 56.11 14.2783 56.11 11.3788ZM53.6678 16.7438C53.3719 17.535 52.705 18.0149 51.9112 18.0098C50.6572 17.9893 49.8259 16.8663 49.9621 15.5544C50.0608 14.5743 50.6103 13.8903 51.4228 13.6606C52.5688 13.339 53.6772 14.166 53.8087 15.4472C53.8556 15.8964 53.8228 16.3303 53.6678 16.7438Z",fill:"white"}),e("path",{d:"M20.528 11.3792C20.528 11.3537 20.5233 11.3333 20.528 11.3129C20.5374 11.2414 20.5139 11.2206 20.4435 11.2206C19.7014 11.221 18.964 11.2261 18.222 11.221C18.1468 11.221 18.1421 11.2567 18.1421 11.318C18.1421 11.4048 18.1421 11.4864 18.1421 11.5783C18.1421 11.6804 18.0388 11.7366 17.959 11.6804C17.4564 11.2874 16.8928 11.0781 16.2823 11.0423C15.0846 10.9658 14.0561 11.4303 13.2388 12.3644C12.013 13.7478 11.6655 15.4221 12.1539 17.2649C12.6799 19.2506 14.3285 20.634 16.1883 20.5676C16.8365 20.5421 17.4376 20.3787 17.9543 19.9346C18.0294 19.8683 18.1421 19.9244 18.1421 20.0316C18.1421 20.1031 18.1421 20.1745 18.1374 20.246C18.1327 20.3481 18.1562 20.3885 18.2549 20.3885C18.964 20.3834 19.6685 20.3834 20.3777 20.3885C20.4951 20.3885 20.5327 20.3481 20.5327 20.2154C20.5233 17.27 20.528 14.3246 20.528 11.3792ZM18.0529 16.8208C17.7147 17.6069 17.123 17.9898 16.3809 18.0153C15.3148 18.0153 14.4834 17.1985 14.3801 16.0959C14.2862 15.1158 14.6619 14.2736 15.404 13.8499C16.5171 13.2067 17.9871 13.7988 18.222 15.4068C18.2877 15.8917 18.2455 16.3716 18.0529 16.8208Z",fill:"white"})))}renderKeypad(){return e("div",{class:"pos-keypad"},[["1","2","3"],["4","5","6"],["7","8","9"],["backspace","0","done"]].map((t=>e("div",{class:"pos-keypad-row"},t.map((t=>e("button",{class:"pos-key "+t,onClick:()=>{"backspace"===t?this.handleBackspace():"done"===t?this.handleContinue():this.handleNumberInput(t)}},"backspace"===t?e("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none"},e("path",{d:"M19 2L13 8L19 14M13 8L1 8",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})):"done"===t?this.t("DONE"):t)))))))}renderAmountEntry(){return e("div",{class:"pos-screen"},this.renderLogo(),e("div",{class:"pos-content"},e("h1",{class:"pos-title"},this.t("Enter order amount")),e("div",{class:"pos-amount-container"},e("div",{class:"pos-amount-input"},this.amount?e("span",{class:"amount-text"},this.formatAmountDisplay()):e("span",{class:"amount-placeholder"},this.currency," ",e("span",{class:"cursor"},"|")))),e("button",{class:"pos-continue "+(this.isAmountValid()?"active":""),onClick:this.handleContinue,disabled:!this.isAmountValid()},this.t("Continue")),this.renderKeypad()))}renderQRCode(){return e("div",{class:"pos-screen qr-screen"},this.renderLogo(),e("div",{class:"pos-content"},e("h1",{class:"pos-title"},this.t("Ask customer to scan QR code")),e("div",{class:"qr-container"},e("div",{class:"qr-code"},this.qrCodeDataURL?e("img",{src:this.qrCodeDataURL,alt:"Payment QR Code",width:"200",height:"200",style:{border:"1px solid #eee",borderRadius:"8px"}}):e("div",{class:"qr-loading",style:{width:"200px",height:"200px",border:"1px solid #eee",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",background:"#f9f9f9"}},e("span",null,this.t("Generating QR Code..."))))),e("div",{class:"qr-actions"},e("button",{class:"pos-button cancel",onClick:this.handleCancel},this.t("Cancel")),e("button",{class:"pos-button check-status",onClick:this.handleCheckStatus},this.t("Check status")))))}renderProcessing(){return e("div",{class:"pos-screen"},this.renderLogo(),e("div",{class:"pos-content"},e("h1",{class:"pos-title"},this.t("Processing payment...")),e("div",{class:"processing-container"},e("div",{class:"processing-spinner"},e("div",{class:"spinner"})),e("div",{class:"processing-info"},e("div",{class:"processing-amount"},this.formatAmountDisplay()),e("div",{class:"processing-message"},this.t("Please wait while we process your payment"))))))}renderSuccess(){return e("div",{class:"pos-screen"},this.renderLogo(),e("div",{class:"pos-content"},e("h1",{class:"pos-title"},this.t("Payment successful!")),e("div",{class:"success-container"},e("div",{class:"success-icon"},e("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none"},e("circle",{cx:"40",cy:"40",r:"40",fill:"#3FD28B"}),e("path",{d:"M25 40L35 50L55 30",stroke:"white","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"}))),e("div",{class:"success-info"},e("div",{class:"success-amount"},this.formatAmountDisplay()),e("div",{class:"success-message"},this.t("Payment completed successfully")),this.transactionId&&e("div",{class:"transaction-id"},this.t("Transaction ID"),": ",this.transactionId),this.getOrderIdFromMetadata()&&e("div",{class:"order-id"},this.t("Order ID"),": ",this.getOrderIdFromMetadata()))),e("button",{class:"pos-continue active",onClick:()=>{this.currentScreen="amount-entry",this.amount="",this.qrCodeData="",this.transactionId=""}},this.t("New Transaction"))))}renderError(){return e("div",{class:"pos-screen"},this.renderLogo(),e("div",{class:"pos-content"},e("h1",{class:"pos-title"},this.t("Payment Error")),e("div",{class:"error-container"},e("div",{class:"error-icon"},e("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none"},e("circle",{cx:"40",cy:"40",r:"40",fill:"#FF4444"}),e("path",{d:"M30 30L50 50M50 30L30 50",stroke:"white","stroke-width":"4","stroke-linecap":"round"}))),e("div",{class:"error-info"},e("div",{class:"error-message"},this.errorMessage||this.t("Something went wrong")))),e("button",{class:"pos-continue active",onClick:()=>{this.currentScreen="amount-entry",this.errorMessage="",this.amount="",this.qrCodeData="",this.transactionId="",this.paymentUrl=""}},this.t("Try Again"))))}render(){return this.debug&&(console.log("[AmwalPos] Debug Mode Enabled"),console.log("[AmwalPos] Current Screen:",this.currentScreen),console.log("[AmwalPos] Amount:",this.amount),console.log("[AmwalPos] Currency:",this.currency),console.log("[AmwalPos] Locale:",this.locale),console.log("[AmwalPos] Transaction ID:",this.transactionId)),e("div",{key:"10f59205d919483081c9563ce6544441a5ab1e2d",class:"amwal-pos",dir:"ar"===this.locale?"rtl":"ltr"},"amount-entry"===this.currentScreen&&this.renderAmountEntry(),"qr-code"===this.currentScreen&&this.renderQRCode(),"processing"===this.currentScreen&&this.renderProcessing(),"success"===this.currentScreen&&this.renderSuccess(),"error"===this.currentScreen&&this.renderError())}static get watchers(){return{locale:[{updateLocale:0}]}}static get style(){return':root{--tabby-green:#3FD28B;--text-primary:#000000;--text-secondary:#8E8E93;--text-disabled:#999999;--bg-primary:#FFFFFF;--bg-secondary:#F2F2F7;--bg-disabled:#E5E5EA;--bg-notes:#FFF4E6;--text-notes:#8B6914;--button-active:#2C2C2C;--border-color:#E5E5EA}.amwal-pos{font-family:-apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, Helvetica, Arial, sans-serif;background-color:var(--bg-primary);width:100%;max-width:375px;min-height:46vh;margin:0 auto;display:flex;flex-direction:column;position:relative}.pos-screen{flex:1;display:flex;flex-direction:column;padding:0}.pos-screen.qr-screen{padding:20px 20px 20px 20px}.pos-logo{padding:20px 20px 20px 20px;display:flex;justify-content:flex-start}.pos-logo.rtl{justify-content:flex-end}.pos-logo.ltr{justify-content:flex-start}.pos-content{flex:1;display:flex;flex-direction:column;padding:0 20px}.pos-title{font-size:18px;font-weight:600;color:var(--text-primary);text-align:left;margin:0 0 20px 0;line-height:1.2}.pos-amount-container{margin-bottom:20px}.pos-amount-input{background-color:var(--bg-primary);border:1px solid var(--border-color);border-radius:8px;padding:16px 16px;min-height:20px;display:flex;align-items:center;font-size:16px;font-weight:400;color:var(--text-primary)}.amount-text{width:100%}.amount-placeholder{width:100%;color:var(--text-secondary)}.cursor{color:var(--text-primary);animation:blink 1s infinite}@keyframes blink{0%,50%{opacity:1}51%,100%{opacity:0}}.pos-continue{width:100%;height:48px;border:none;border-radius:24px;font-size:16px;font-weight:600;margin-bottom:20px;cursor:pointer;transition:all 0.2s ease;background-color:var(--bg-disabled);color:var(--text-disabled)}.pos-continue.active{background-color:var(--button-active);color:white}.pos-continue:disabled{cursor:not-allowed}.pos-keypad{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}.pos-keypad-row{display:flex;gap:12px}.pos-key{flex:1;height:50px;border:none;border-radius:8px;background-color:var(--bg-secondary);color:var(--text-primary);font-size:18px;font-weight:400;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center}.pos-key:active{background-color:var(--bg-disabled);transform:scale(0.95)}.pos-key.done{font-size:12px;font-weight:600;letter-spacing:1px}.pos-key.backspace svg{stroke:var(--text-primary);width:18px;height:14px}.pos-notes{background-color:var(--bg-notes);padding:16px 20px 20px 20px;margin-top:auto}.notes-content{text-align:center;font-size:12px;color:var(--text-notes);line-height:1.4}.qr-container{flex:1;display:flex;align-items:center;justify-content:center;margin:20px 0}.qr-code{background-color:white;padding:16px;border-radius:12px;box-shadow:0 2px 8px rgba(0, 0, 0, 0.1)}.qr-pattern{display:block}.qr-actions{display:flex;gap:12px;margin-top:auto;padding-bottom:20px}.pos-button{flex:1;height:48px;border:none;border-radius:24px;font-size:16px;font-weight:600;cursor:pointer;transition:all 0.2s ease}.pos-button.cancel{background-color:white;color:var(--text-primary);border:1px solid var(--border-color)}.pos-button.cancel:active{background-color:var(--bg-secondary)}.pos-button.check-status{background-color:var(--button-active);color:white}.pos-button.check-status:active{background-color:#1a1a1a}.processing-container{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;padding:40px 0}.processing-spinner{display:flex;align-items:center;justify-content:center;position:relative}.processing-spinner::before{content:\'\';position:absolute;width:72px;height:72px;border:2px solid var(--tabby-green);border-radius:50%;opacity:0.3;animation:pulse 2s infinite}@keyframes pulse{0%{transform:scale(0.8);opacity:0.3}50%{transform:scale(1.2);opacity:0.1}100%{transform:scale(0.8);opacity:0.3}}.spinner{width:48px;height:48px;border:4px solid var(--bg-disabled);border-top:4px solid var(--tabby-green);border-radius:50%;animation:spin 1s linear infinite;z-index:1;position:relative}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.processing-info{text-align:center;display:flex;flex-direction:column;gap:8px}.processing-amount{font-size:24px;font-weight:600;color:var(--text-primary)}.processing-message{font-size:14px;color:var(--text-secondary);max-width:280px;line-height:1.4;animation:fadeInUp 0.5s ease-out 0.3s both}@keyframes fadeInUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.success-container{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;padding:40px 0}.success-icon{display:flex;align-items:center;justify-content:center;animation:successBounce 0.6s ease-out}@keyframes successBounce{0%{transform:scale(0.3);opacity:0}50%{transform:scale(1.05)}70%{transform:scale(0.9)}100%{transform:scale(1);opacity:1}}.success-info{text-align:center;display:flex;flex-direction:column;gap:8px}.success-amount{font-size:24px;font-weight:600;color:var(--text-primary)}.success-message{font-size:16px;color:var(--text-secondary);margin-bottom:8px}.error-container{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;padding:40px 0}.error-icon{display:flex;align-items:center;justify-content:center;animation:errorBounce 0.6s ease-out}@keyframes errorBounce{0%{transform:scale(0.3);opacity:0}50%{transform:scale(1.05)}70%{transform:scale(0.9)}100%{transform:scale(1);opacity:1}}.error-info{text-align:center;display:flex;flex-direction:column;gap:8px}.error-amount{font-size:24px;font-weight:600;color:var(--text-primary)}.error-message{font-size:16px;color:var(--text-secondary);margin-bottom:8px;max-width:280px;line-height:1.4;animation:fadeInUp 0.5s ease-out 0.3s both}.transaction-id{font-size:12px;color:var(--text-secondary);background-color:var(--bg-secondary);padding:8px 12px;border-radius:6px;font-family:\'SF Mono\', Monaco, \'Cascadia Code\', \'Roboto Mono\', Consolas, \'Courier New\', monospace;border:1px solid var(--border-color);animation:slideIn 0.4s ease-out 0.2s both}@keyframes slideIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.success-container+.pos-continue{margin-top:0;transform:translateY(0);animation:slideInButton 0.5s ease-out 0.4s both}@keyframes slideInButton{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}[dir="rtl"] .amwal-pos{direction:rtl}[dir="rtl"] .pos-amount-input{text-align:right}[dir="rtl"] .notes-content{text-align:center}.amwal-pos[dir="rtl"] .pos-logo{justify-content:start}.amwal-pos[dir="rtl"] .pos-title{text-align:right}.amwal-pos[dir="rtl"] .amount-text{text-align:right}.amwal-pos[dir="rtl"] .amount-placeholder{text-align:right;direction:rtl}.amwal-pos[dir="rtl"] .processing-info{text-align:center}.amwal-pos[dir="rtl"] .success-info{text-align:center}.amwal-pos[dir="rtl"] .error-info{text-align:center}.amwal-pos[dir="rtl"] .transaction-id{text-align:center;direction:rtl}.amwal-pos[dir="rtl"] .processing-message{text-align:center}.amwal-pos[dir="rtl"] .success-message{text-align:center}.amwal-pos[dir="rtl"] .error-message{text-align:center}.amwal-pos[dir="rtl"] .notes-content{text-align:center;direction:rtl}.amwal-pos[dir="rtl"] .qr-actions{flex-direction:row-reverse}.amwal-pos[dir="rtl"] .pos-key{font-family:\'SF Pro Display\', -apple-system, BlinkMacSystemFont, sans-serif}@media (max-width: 375px){.pos-logo{padding:16px 16px 16px 16px}.pos-content{padding:0 16px}.pos-notes{padding:12px 16px 16px 16px}.pos-screen.qr-screen{padding:16px 16px 16px 16px}.qr-actions{padding-bottom:16px}.processing-container{padding:20px 0;gap:24px}.processing-amount,.success-amount{font-size:20px}.success-container{padding:20px 0;gap:24px}.success-icon svg{width:64px;height:64px}}@media (max-width: 320px){.pos-key{height:46px;font-size:16px}.pos-keypad{gap:10px}.pos-keypad-row{gap:10px}.qr-code{padding:12px}.qr-pattern{width:160px;height:160px}.processing-container{padding:16px 0;gap:20px}.success-container{padding:16px 0;gap:20px}.spinner{width:40px;height:40px;border-width:3px}.success-icon svg{width:56px;height:56px}.processing-amount,.success-amount{font-size:18px}.processing-message{font-size:13px}.success-message{font-size:14px}}@media (min-width: 768px){.amwal-pos{border-radius:16px;box-shadow:0 8px 32px rgba(0, 0, 0, 0.12);margin:20px auto;max-height:85vh;min-height:530px}.processing-container{gap:40px}.success-container{gap:40px}.success-icon svg{width:96px;height:96px}.processing-amount,.success-amount{font-size:28px}}'}},[0,"amwal-pos",{amount:[1025],currency:[1],locale:[1],debug:[4],minAmount:[2,"min-amount"],maxAmount:[2,"max-amount"],authToken:[1,"auth-token"],storeId:[1,"store-id"],apiBaseUrl:[1,"api-base-url"],paymentTitle:[1,"payment-title"],paymentDescription:[1,"payment-description"],customerFirstName:[1,"customer-first-name"],customerLastName:[1,"customer-last-name"],customerEmail:[1,"customer-email"],customerPhone:[1,"customer-phone"],customerStreet1:[1,"customer-street-1"],customerStreet2:[1,"customer-street-2"],customerCity:[1,"customer-city"],customerState:[1,"customer-state"],customerCountry:[1,"customer-country"],customerPostcode:[1,"customer-postcode"],addressRequired:[4,"address-required"],smsLanguage:[1,"sms-language"],sendSms:[4,"send-sms"],passkeyEnabled:[4,"passkey-enabled"],onlyShowBankInstallments:[4,"only-show-bank-installments"],onlyShowPayInFull:[4,"only-show-pay-in-full"],callbackUrl:[1,"callback-url"],metadata:[1],currentScreen:[32],qrCodeData:[32],qrCodeDataURL:[32],transactionId:[32],errorMessage:[32],paymentUrl:[32],isChecking:[32],checkAttempts:[32]},void 0,{locale:[{updateLocale:0}]}]),wt=yt,vt=function(){"undefined"!=typeof customElements&&["amwal-pos"].forEach((t=>{"amwal-pos"===t&&(customElements.get(r(t))||customElements.define(r(t),yt))}))};export{wt as AmwalPos,vt as defineCustomElement}
1
+ import { p as proxyCustomElement, H, h } from './p-ec0e3f3f.js';
2
+ import { T as TranslationUtils } from './p-99e447f9.js';
3
+ import { c as createCommonjsModule } from './p-112455b1.js';
4
+
5
+ // can-promise has a crash in some versions of react native that dont have
6
+ // standard global objects
7
+ // https://github.com/soldair/node-qrcode/issues/157
8
+
9
+ var canPromise = function () {
10
+ return typeof Promise === 'function' && Promise.prototype && Promise.prototype.then
11
+ };
12
+
13
+ let toSJISFunction;
14
+ const CODEWORDS_COUNT = [
15
+ 0, // Not used
16
+ 26, 44, 70, 100, 134, 172, 196, 242, 292, 346,
17
+ 404, 466, 532, 581, 655, 733, 815, 901, 991, 1085,
18
+ 1156, 1258, 1364, 1474, 1588, 1706, 1828, 1921, 2051, 2185,
19
+ 2323, 2465, 2611, 2761, 2876, 3034, 3196, 3362, 3532, 3706
20
+ ];
21
+
22
+ /**
23
+ * Returns the QR Code size for the specified version
24
+ *
25
+ * @param {Number} version QR Code version
26
+ * @return {Number} size of QR code
27
+ */
28
+ var getSymbolSize$1 = function getSymbolSize (version) {
29
+ if (!version) throw new Error('"version" cannot be null or undefined')
30
+ if (version < 1 || version > 40) throw new Error('"version" should be in range from 1 to 40')
31
+ return version * 4 + 17
32
+ };
33
+
34
+ /**
35
+ * Returns the total number of codewords used to store data and EC information.
36
+ *
37
+ * @param {Number} version QR Code version
38
+ * @return {Number} Data length in bits
39
+ */
40
+ var getSymbolTotalCodewords = function getSymbolTotalCodewords (version) {
41
+ return CODEWORDS_COUNT[version]
42
+ };
43
+
44
+ /**
45
+ * Encode data with Bose-Chaudhuri-Hocquenghem
46
+ *
47
+ * @param {Number} data Value to encode
48
+ * @return {Number} Encoded value
49
+ */
50
+ var getBCHDigit = function (data) {
51
+ let digit = 0;
52
+
53
+ while (data !== 0) {
54
+ digit++;
55
+ data >>>= 1;
56
+ }
57
+
58
+ return digit
59
+ };
60
+
61
+ var setToSJISFunction = function setToSJISFunction (f) {
62
+ if (typeof f !== 'function') {
63
+ throw new Error('"toSJISFunc" is not a valid function.')
64
+ }
65
+
66
+ toSJISFunction = f;
67
+ };
68
+
69
+ var isKanjiModeEnabled = function () {
70
+ return typeof toSJISFunction !== 'undefined'
71
+ };
72
+
73
+ var toSJIS = function toSJIS (kanji) {
74
+ return toSJISFunction(kanji)
75
+ };
76
+
77
+ var utils$1 = {
78
+ getSymbolSize: getSymbolSize$1,
79
+ getSymbolTotalCodewords: getSymbolTotalCodewords,
80
+ getBCHDigit: getBCHDigit,
81
+ setToSJISFunction: setToSJISFunction,
82
+ isKanjiModeEnabled: isKanjiModeEnabled,
83
+ toSJIS: toSJIS
84
+ };
85
+
86
+ var errorCorrectionLevel = createCommonjsModule(function (module, exports) {
87
+ exports.L = { bit: 1 };
88
+ exports.M = { bit: 0 };
89
+ exports.Q = { bit: 3 };
90
+ exports.H = { bit: 2 };
91
+
92
+ function fromString (string) {
93
+ if (typeof string !== 'string') {
94
+ throw new Error('Param is not a string')
95
+ }
96
+
97
+ const lcStr = string.toLowerCase();
98
+
99
+ switch (lcStr) {
100
+ case 'l':
101
+ case 'low':
102
+ return exports.L
103
+
104
+ case 'm':
105
+ case 'medium':
106
+ return exports.M
107
+
108
+ case 'q':
109
+ case 'quartile':
110
+ return exports.Q
111
+
112
+ case 'h':
113
+ case 'high':
114
+ return exports.H
115
+
116
+ default:
117
+ throw new Error('Unknown EC Level: ' + string)
118
+ }
119
+ }
120
+
121
+ exports.isValid = function isValid (level) {
122
+ return level && typeof level.bit !== 'undefined' &&
123
+ level.bit >= 0 && level.bit < 4
124
+ };
125
+
126
+ exports.from = function from (value, defaultValue) {
127
+ if (exports.isValid(value)) {
128
+ return value
129
+ }
130
+
131
+ try {
132
+ return fromString(value)
133
+ } catch (e) {
134
+ return defaultValue
135
+ }
136
+ };
137
+ });
138
+
139
+ function BitBuffer () {
140
+ this.buffer = [];
141
+ this.length = 0;
142
+ }
143
+
144
+ BitBuffer.prototype = {
145
+
146
+ get: function (index) {
147
+ const bufIndex = Math.floor(index / 8);
148
+ return ((this.buffer[bufIndex] >>> (7 - index % 8)) & 1) === 1
149
+ },
150
+
151
+ put: function (num, length) {
152
+ for (let i = 0; i < length; i++) {
153
+ this.putBit(((num >>> (length - i - 1)) & 1) === 1);
154
+ }
155
+ },
156
+
157
+ getLengthInBits: function () {
158
+ return this.length
159
+ },
160
+
161
+ putBit: function (bit) {
162
+ const bufIndex = Math.floor(this.length / 8);
163
+ if (this.buffer.length <= bufIndex) {
164
+ this.buffer.push(0);
165
+ }
166
+
167
+ if (bit) {
168
+ this.buffer[bufIndex] |= (0x80 >>> (this.length % 8));
169
+ }
170
+
171
+ this.length++;
172
+ }
173
+ };
174
+
175
+ var bitBuffer = BitBuffer;
176
+
177
+ /**
178
+ * Helper class to handle QR Code symbol modules
179
+ *
180
+ * @param {Number} size Symbol size
181
+ */
182
+ function BitMatrix (size) {
183
+ if (!size || size < 1) {
184
+ throw new Error('BitMatrix size must be defined and greater than 0')
185
+ }
186
+
187
+ this.size = size;
188
+ this.data = new Uint8Array(size * size);
189
+ this.reservedBit = new Uint8Array(size * size);
190
+ }
191
+
192
+ /**
193
+ * Set bit value at specified location
194
+ * If reserved flag is set, this bit will be ignored during masking process
195
+ *
196
+ * @param {Number} row
197
+ * @param {Number} col
198
+ * @param {Boolean} value
199
+ * @param {Boolean} reserved
200
+ */
201
+ BitMatrix.prototype.set = function (row, col, value, reserved) {
202
+ const index = row * this.size + col;
203
+ this.data[index] = value;
204
+ if (reserved) this.reservedBit[index] = true;
205
+ };
206
+
207
+ /**
208
+ * Returns bit value at specified location
209
+ *
210
+ * @param {Number} row
211
+ * @param {Number} col
212
+ * @return {Boolean}
213
+ */
214
+ BitMatrix.prototype.get = function (row, col) {
215
+ return this.data[row * this.size + col]
216
+ };
217
+
218
+ /**
219
+ * Applies xor operator at specified location
220
+ * (used during masking process)
221
+ *
222
+ * @param {Number} row
223
+ * @param {Number} col
224
+ * @param {Boolean} value
225
+ */
226
+ BitMatrix.prototype.xor = function (row, col, value) {
227
+ this.data[row * this.size + col] ^= value;
228
+ };
229
+
230
+ /**
231
+ * Check if bit at specified location is reserved
232
+ *
233
+ * @param {Number} row
234
+ * @param {Number} col
235
+ * @return {Boolean}
236
+ */
237
+ BitMatrix.prototype.isReserved = function (row, col) {
238
+ return this.reservedBit[row * this.size + col]
239
+ };
240
+
241
+ var bitMatrix = BitMatrix;
242
+
243
+ var alignmentPattern = createCommonjsModule(function (module, exports) {
244
+ /**
245
+ * Alignment pattern are fixed reference pattern in defined positions
246
+ * in a matrix symbology, which enables the decode software to re-synchronise
247
+ * the coordinate mapping of the image modules in the event of moderate amounts
248
+ * of distortion of the image.
249
+ *
250
+ * Alignment patterns are present only in QR Code symbols of version 2 or larger
251
+ * and their number depends on the symbol version.
252
+ */
253
+
254
+ const getSymbolSize = utils$1.getSymbolSize;
255
+
256
+ /**
257
+ * Calculate the row/column coordinates of the center module of each alignment pattern
258
+ * for the specified QR Code version.
259
+ *
260
+ * The alignment patterns are positioned symmetrically on either side of the diagonal
261
+ * running from the top left corner of the symbol to the bottom right corner.
262
+ *
263
+ * Since positions are simmetrical only half of the coordinates are returned.
264
+ * Each item of the array will represent in turn the x and y coordinate.
265
+ * @see {@link getPositions}
266
+ *
267
+ * @param {Number} version QR Code version
268
+ * @return {Array} Array of coordinate
269
+ */
270
+ exports.getRowColCoords = function getRowColCoords (version) {
271
+ if (version === 1) return []
272
+
273
+ const posCount = Math.floor(version / 7) + 2;
274
+ const size = getSymbolSize(version);
275
+ const intervals = size === 145 ? 26 : Math.ceil((size - 13) / (2 * posCount - 2)) * 2;
276
+ const positions = [size - 7]; // Last coord is always (size - 7)
277
+
278
+ for (let i = 1; i < posCount - 1; i++) {
279
+ positions[i] = positions[i - 1] - intervals;
280
+ }
281
+
282
+ positions.push(6); // First coord is always 6
283
+
284
+ return positions.reverse()
285
+ };
286
+
287
+ /**
288
+ * Returns an array containing the positions of each alignment pattern.
289
+ * Each array's element represent the center point of the pattern as (x, y) coordinates
290
+ *
291
+ * Coordinates are calculated expanding the row/column coordinates returned by {@link getRowColCoords}
292
+ * and filtering out the items that overlaps with finder pattern
293
+ *
294
+ * @example
295
+ * For a Version 7 symbol {@link getRowColCoords} returns values 6, 22 and 38.
296
+ * The alignment patterns, therefore, are to be centered on (row, column)
297
+ * positions (6,22), (22,6), (22,22), (22,38), (38,22), (38,38).
298
+ * Note that the coordinates (6,6), (6,38), (38,6) are occupied by finder patterns
299
+ * and are not therefore used for alignment patterns.
300
+ *
301
+ * let pos = getPositions(7)
302
+ * // [[6,22], [22,6], [22,22], [22,38], [38,22], [38,38]]
303
+ *
304
+ * @param {Number} version QR Code version
305
+ * @return {Array} Array of coordinates
306
+ */
307
+ exports.getPositions = function getPositions (version) {
308
+ const coords = [];
309
+ const pos = exports.getRowColCoords(version);
310
+ const posLength = pos.length;
311
+
312
+ for (let i = 0; i < posLength; i++) {
313
+ for (let j = 0; j < posLength; j++) {
314
+ // Skip if position is occupied by finder patterns
315
+ if ((i === 0 && j === 0) || // top-left
316
+ (i === 0 && j === posLength - 1) || // bottom-left
317
+ (i === posLength - 1 && j === 0)) { // top-right
318
+ continue
319
+ }
320
+
321
+ coords.push([pos[i], pos[j]]);
322
+ }
323
+ }
324
+
325
+ return coords
326
+ };
327
+ });
328
+
329
+ const getSymbolSize = utils$1.getSymbolSize;
330
+ const FINDER_PATTERN_SIZE = 7;
331
+
332
+ /**
333
+ * Returns an array containing the positions of each finder pattern.
334
+ * Each array's element represent the top-left point of the pattern as (x, y) coordinates
335
+ *
336
+ * @param {Number} version QR Code version
337
+ * @return {Array} Array of coordinates
338
+ */
339
+ var getPositions = function getPositions (version) {
340
+ const size = getSymbolSize(version);
341
+
342
+ return [
343
+ // top-left
344
+ [0, 0],
345
+ // top-right
346
+ [size - FINDER_PATTERN_SIZE, 0],
347
+ // bottom-left
348
+ [0, size - FINDER_PATTERN_SIZE]
349
+ ]
350
+ };
351
+
352
+ var finderPattern = {
353
+ getPositions: getPositions
354
+ };
355
+
356
+ var maskPattern = createCommonjsModule(function (module, exports) {
357
+ /**
358
+ * Data mask pattern reference
359
+ * @type {Object}
360
+ */
361
+ exports.Patterns = {
362
+ PATTERN000: 0,
363
+ PATTERN001: 1,
364
+ PATTERN010: 2,
365
+ PATTERN011: 3,
366
+ PATTERN100: 4,
367
+ PATTERN101: 5,
368
+ PATTERN110: 6,
369
+ PATTERN111: 7
370
+ };
371
+
372
+ /**
373
+ * Weighted penalty scores for the undesirable features
374
+ * @type {Object}
375
+ */
376
+ const PenaltyScores = {
377
+ N1: 3,
378
+ N2: 3,
379
+ N3: 40,
380
+ N4: 10
381
+ };
382
+
383
+ /**
384
+ * Check if mask pattern value is valid
385
+ *
386
+ * @param {Number} mask Mask pattern
387
+ * @return {Boolean} true if valid, false otherwise
388
+ */
389
+ exports.isValid = function isValid (mask) {
390
+ return mask != null && mask !== '' && !isNaN(mask) && mask >= 0 && mask <= 7
391
+ };
392
+
393
+ /**
394
+ * Returns mask pattern from a value.
395
+ * If value is not valid, returns undefined
396
+ *
397
+ * @param {Number|String} value Mask pattern value
398
+ * @return {Number} Valid mask pattern or undefined
399
+ */
400
+ exports.from = function from (value) {
401
+ return exports.isValid(value) ? parseInt(value, 10) : undefined
402
+ };
403
+
404
+ /**
405
+ * Find adjacent modules in row/column with the same color
406
+ * and assign a penalty value.
407
+ *
408
+ * Points: N1 + i
409
+ * i is the amount by which the number of adjacent modules of the same color exceeds 5
410
+ */
411
+ exports.getPenaltyN1 = function getPenaltyN1 (data) {
412
+ const size = data.size;
413
+ let points = 0;
414
+ let sameCountCol = 0;
415
+ let sameCountRow = 0;
416
+ let lastCol = null;
417
+ let lastRow = null;
418
+
419
+ for (let row = 0; row < size; row++) {
420
+ sameCountCol = sameCountRow = 0;
421
+ lastCol = lastRow = null;
422
+
423
+ for (let col = 0; col < size; col++) {
424
+ let module = data.get(row, col);
425
+ if (module === lastCol) {
426
+ sameCountCol++;
427
+ } else {
428
+ if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5);
429
+ lastCol = module;
430
+ sameCountCol = 1;
431
+ }
432
+
433
+ module = data.get(col, row);
434
+ if (module === lastRow) {
435
+ sameCountRow++;
436
+ } else {
437
+ if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5);
438
+ lastRow = module;
439
+ sameCountRow = 1;
440
+ }
441
+ }
442
+
443
+ if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5);
444
+ if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5);
445
+ }
446
+
447
+ return points
448
+ };
449
+
450
+ /**
451
+ * Find 2x2 blocks with the same color and assign a penalty value
452
+ *
453
+ * Points: N2 * (m - 1) * (n - 1)
454
+ */
455
+ exports.getPenaltyN2 = function getPenaltyN2 (data) {
456
+ const size = data.size;
457
+ let points = 0;
458
+
459
+ for (let row = 0; row < size - 1; row++) {
460
+ for (let col = 0; col < size - 1; col++) {
461
+ const last = data.get(row, col) +
462
+ data.get(row, col + 1) +
463
+ data.get(row + 1, col) +
464
+ data.get(row + 1, col + 1);
465
+
466
+ if (last === 4 || last === 0) points++;
467
+ }
468
+ }
469
+
470
+ return points * PenaltyScores.N2
471
+ };
472
+
473
+ /**
474
+ * Find 1:1:3:1:1 ratio (dark:light:dark:light:dark) pattern in row/column,
475
+ * preceded or followed by light area 4 modules wide
476
+ *
477
+ * Points: N3 * number of pattern found
478
+ */
479
+ exports.getPenaltyN3 = function getPenaltyN3 (data) {
480
+ const size = data.size;
481
+ let points = 0;
482
+ let bitsCol = 0;
483
+ let bitsRow = 0;
484
+
485
+ for (let row = 0; row < size; row++) {
486
+ bitsCol = bitsRow = 0;
487
+ for (let col = 0; col < size; col++) {
488
+ bitsCol = ((bitsCol << 1) & 0x7FF) | data.get(row, col);
489
+ if (col >= 10 && (bitsCol === 0x5D0 || bitsCol === 0x05D)) points++;
490
+
491
+ bitsRow = ((bitsRow << 1) & 0x7FF) | data.get(col, row);
492
+ if (col >= 10 && (bitsRow === 0x5D0 || bitsRow === 0x05D)) points++;
493
+ }
494
+ }
495
+
496
+ return points * PenaltyScores.N3
497
+ };
498
+
499
+ /**
500
+ * Calculate proportion of dark modules in entire symbol
501
+ *
502
+ * Points: N4 * k
503
+ *
504
+ * k is the rating of the deviation of the proportion of dark modules
505
+ * in the symbol from 50% in steps of 5%
506
+ */
507
+ exports.getPenaltyN4 = function getPenaltyN4 (data) {
508
+ let darkCount = 0;
509
+ const modulesCount = data.data.length;
510
+
511
+ for (let i = 0; i < modulesCount; i++) darkCount += data.data[i];
512
+
513
+ const k = Math.abs(Math.ceil((darkCount * 100 / modulesCount) / 5) - 10);
514
+
515
+ return k * PenaltyScores.N4
516
+ };
517
+
518
+ /**
519
+ * Return mask value at given position
520
+ *
521
+ * @param {Number} maskPattern Pattern reference value
522
+ * @param {Number} i Row
523
+ * @param {Number} j Column
524
+ * @return {Boolean} Mask value
525
+ */
526
+ function getMaskAt (maskPattern, i, j) {
527
+ switch (maskPattern) {
528
+ case exports.Patterns.PATTERN000: return (i + j) % 2 === 0
529
+ case exports.Patterns.PATTERN001: return i % 2 === 0
530
+ case exports.Patterns.PATTERN010: return j % 3 === 0
531
+ case exports.Patterns.PATTERN011: return (i + j) % 3 === 0
532
+ case exports.Patterns.PATTERN100: return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 === 0
533
+ case exports.Patterns.PATTERN101: return (i * j) % 2 + (i * j) % 3 === 0
534
+ case exports.Patterns.PATTERN110: return ((i * j) % 2 + (i * j) % 3) % 2 === 0
535
+ case exports.Patterns.PATTERN111: return ((i * j) % 3 + (i + j) % 2) % 2 === 0
536
+
537
+ default: throw new Error('bad maskPattern:' + maskPattern)
538
+ }
539
+ }
540
+
541
+ /**
542
+ * Apply a mask pattern to a BitMatrix
543
+ *
544
+ * @param {Number} pattern Pattern reference number
545
+ * @param {BitMatrix} data BitMatrix data
546
+ */
547
+ exports.applyMask = function applyMask (pattern, data) {
548
+ const size = data.size;
549
+
550
+ for (let col = 0; col < size; col++) {
551
+ for (let row = 0; row < size; row++) {
552
+ if (data.isReserved(row, col)) continue
553
+ data.xor(row, col, getMaskAt(pattern, row, col));
554
+ }
555
+ }
556
+ };
557
+
558
+ /**
559
+ * Returns the best mask pattern for data
560
+ *
561
+ * @param {BitMatrix} data
562
+ * @return {Number} Mask pattern reference number
563
+ */
564
+ exports.getBestMask = function getBestMask (data, setupFormatFunc) {
565
+ const numPatterns = Object.keys(exports.Patterns).length;
566
+ let bestPattern = 0;
567
+ let lowerPenalty = Infinity;
568
+
569
+ for (let p = 0; p < numPatterns; p++) {
570
+ setupFormatFunc(p);
571
+ exports.applyMask(p, data);
572
+
573
+ // Calculate penalty
574
+ const penalty =
575
+ exports.getPenaltyN1(data) +
576
+ exports.getPenaltyN2(data) +
577
+ exports.getPenaltyN3(data) +
578
+ exports.getPenaltyN4(data);
579
+
580
+ // Undo previously applied mask
581
+ exports.applyMask(p, data);
582
+
583
+ if (penalty < lowerPenalty) {
584
+ lowerPenalty = penalty;
585
+ bestPattern = p;
586
+ }
587
+ }
588
+
589
+ return bestPattern
590
+ };
591
+ });
592
+
593
+ const EC_BLOCKS_TABLE = [
594
+ // L M Q H
595
+ 1, 1, 1, 1,
596
+ 1, 1, 1, 1,
597
+ 1, 1, 2, 2,
598
+ 1, 2, 2, 4,
599
+ 1, 2, 4, 4,
600
+ 2, 4, 4, 4,
601
+ 2, 4, 6, 5,
602
+ 2, 4, 6, 6,
603
+ 2, 5, 8, 8,
604
+ 4, 5, 8, 8,
605
+ 4, 5, 8, 11,
606
+ 4, 8, 10, 11,
607
+ 4, 9, 12, 16,
608
+ 4, 9, 16, 16,
609
+ 6, 10, 12, 18,
610
+ 6, 10, 17, 16,
611
+ 6, 11, 16, 19,
612
+ 6, 13, 18, 21,
613
+ 7, 14, 21, 25,
614
+ 8, 16, 20, 25,
615
+ 8, 17, 23, 25,
616
+ 9, 17, 23, 34,
617
+ 9, 18, 25, 30,
618
+ 10, 20, 27, 32,
619
+ 12, 21, 29, 35,
620
+ 12, 23, 34, 37,
621
+ 12, 25, 34, 40,
622
+ 13, 26, 35, 42,
623
+ 14, 28, 38, 45,
624
+ 15, 29, 40, 48,
625
+ 16, 31, 43, 51,
626
+ 17, 33, 45, 54,
627
+ 18, 35, 48, 57,
628
+ 19, 37, 51, 60,
629
+ 19, 38, 53, 63,
630
+ 20, 40, 56, 66,
631
+ 21, 43, 59, 70,
632
+ 22, 45, 62, 74,
633
+ 24, 47, 65, 77,
634
+ 25, 49, 68, 81
635
+ ];
636
+
637
+ const EC_CODEWORDS_TABLE = [
638
+ // L M Q H
639
+ 7, 10, 13, 17,
640
+ 10, 16, 22, 28,
641
+ 15, 26, 36, 44,
642
+ 20, 36, 52, 64,
643
+ 26, 48, 72, 88,
644
+ 36, 64, 96, 112,
645
+ 40, 72, 108, 130,
646
+ 48, 88, 132, 156,
647
+ 60, 110, 160, 192,
648
+ 72, 130, 192, 224,
649
+ 80, 150, 224, 264,
650
+ 96, 176, 260, 308,
651
+ 104, 198, 288, 352,
652
+ 120, 216, 320, 384,
653
+ 132, 240, 360, 432,
654
+ 144, 280, 408, 480,
655
+ 168, 308, 448, 532,
656
+ 180, 338, 504, 588,
657
+ 196, 364, 546, 650,
658
+ 224, 416, 600, 700,
659
+ 224, 442, 644, 750,
660
+ 252, 476, 690, 816,
661
+ 270, 504, 750, 900,
662
+ 300, 560, 810, 960,
663
+ 312, 588, 870, 1050,
664
+ 336, 644, 952, 1110,
665
+ 360, 700, 1020, 1200,
666
+ 390, 728, 1050, 1260,
667
+ 420, 784, 1140, 1350,
668
+ 450, 812, 1200, 1440,
669
+ 480, 868, 1290, 1530,
670
+ 510, 924, 1350, 1620,
671
+ 540, 980, 1440, 1710,
672
+ 570, 1036, 1530, 1800,
673
+ 570, 1064, 1590, 1890,
674
+ 600, 1120, 1680, 1980,
675
+ 630, 1204, 1770, 2100,
676
+ 660, 1260, 1860, 2220,
677
+ 720, 1316, 1950, 2310,
678
+ 750, 1372, 2040, 2430
679
+ ];
680
+
681
+ /**
682
+ * Returns the number of error correction block that the QR Code should contain
683
+ * for the specified version and error correction level.
684
+ *
685
+ * @param {Number} version QR Code version
686
+ * @param {Number} errorCorrectionLevel Error correction level
687
+ * @return {Number} Number of error correction blocks
688
+ */
689
+ var getBlocksCount = function getBlocksCount (version, errorCorrectionLevel$1) {
690
+ switch (errorCorrectionLevel$1) {
691
+ case errorCorrectionLevel.L:
692
+ return EC_BLOCKS_TABLE[(version - 1) * 4 + 0]
693
+ case errorCorrectionLevel.M:
694
+ return EC_BLOCKS_TABLE[(version - 1) * 4 + 1]
695
+ case errorCorrectionLevel.Q:
696
+ return EC_BLOCKS_TABLE[(version - 1) * 4 + 2]
697
+ case errorCorrectionLevel.H:
698
+ return EC_BLOCKS_TABLE[(version - 1) * 4 + 3]
699
+ default:
700
+ return undefined
701
+ }
702
+ };
703
+
704
+ /**
705
+ * Returns the number of error correction codewords to use for the specified
706
+ * version and error correction level.
707
+ *
708
+ * @param {Number} version QR Code version
709
+ * @param {Number} errorCorrectionLevel Error correction level
710
+ * @return {Number} Number of error correction codewords
711
+ */
712
+ var getTotalCodewordsCount = function getTotalCodewordsCount (version, errorCorrectionLevel$1) {
713
+ switch (errorCorrectionLevel$1) {
714
+ case errorCorrectionLevel.L:
715
+ return EC_CODEWORDS_TABLE[(version - 1) * 4 + 0]
716
+ case errorCorrectionLevel.M:
717
+ return EC_CODEWORDS_TABLE[(version - 1) * 4 + 1]
718
+ case errorCorrectionLevel.Q:
719
+ return EC_CODEWORDS_TABLE[(version - 1) * 4 + 2]
720
+ case errorCorrectionLevel.H:
721
+ return EC_CODEWORDS_TABLE[(version - 1) * 4 + 3]
722
+ default:
723
+ return undefined
724
+ }
725
+ };
726
+
727
+ var errorCorrectionCode = {
728
+ getBlocksCount: getBlocksCount,
729
+ getTotalCodewordsCount: getTotalCodewordsCount
730
+ };
731
+
732
+ const EXP_TABLE = new Uint8Array(512);
733
+ const LOG_TABLE = new Uint8Array(256)
734
+ /**
735
+ * Precompute the log and anti-log tables for faster computation later
736
+ *
737
+ * For each possible value in the galois field 2^8, we will pre-compute
738
+ * the logarithm and anti-logarithm (exponential) of this value
739
+ *
740
+ * ref {@link https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Introduction_to_mathematical_fields}
741
+ */
742
+ ;(function initTables () {
743
+ let x = 1;
744
+ for (let i = 0; i < 255; i++) {
745
+ EXP_TABLE[i] = x;
746
+ LOG_TABLE[x] = i;
747
+
748
+ x <<= 1; // multiply by 2
749
+
750
+ // The QR code specification says to use byte-wise modulo 100011101 arithmetic.
751
+ // This means that when a number is 256 or larger, it should be XORed with 0x11D.
752
+ if (x & 0x100) { // similar to x >= 256, but a lot faster (because 0x100 == 256)
753
+ x ^= 0x11D;
754
+ }
755
+ }
756
+
757
+ // Optimization: double the size of the anti-log table so that we don't need to mod 255 to
758
+ // stay inside the bounds (because we will mainly use this table for the multiplication of
759
+ // two GF numbers, no more).
760
+ // @see {@link mul}
761
+ for (let i = 255; i < 512; i++) {
762
+ EXP_TABLE[i] = EXP_TABLE[i - 255];
763
+ }
764
+ }());
765
+
766
+ /**
767
+ * Returns log value of n inside Galois Field
768
+ *
769
+ * @param {Number} n
770
+ * @return {Number}
771
+ */
772
+ var log = function log (n) {
773
+ if (n < 1) throw new Error('log(' + n + ')')
774
+ return LOG_TABLE[n]
775
+ };
776
+
777
+ /**
778
+ * Returns anti-log value of n inside Galois Field
779
+ *
780
+ * @param {Number} n
781
+ * @return {Number}
782
+ */
783
+ var exp = function exp (n) {
784
+ return EXP_TABLE[n]
785
+ };
786
+
787
+ /**
788
+ * Multiplies two number inside Galois Field
789
+ *
790
+ * @param {Number} x
791
+ * @param {Number} y
792
+ * @return {Number}
793
+ */
794
+ var mul = function mul (x, y) {
795
+ if (x === 0 || y === 0) return 0
796
+
797
+ // should be EXP_TABLE[(LOG_TABLE[x] + LOG_TABLE[y]) % 255] if EXP_TABLE wasn't oversized
798
+ // @see {@link initTables}
799
+ return EXP_TABLE[LOG_TABLE[x] + LOG_TABLE[y]]
800
+ };
801
+
802
+ var galoisField = {
803
+ log: log,
804
+ exp: exp,
805
+ mul: mul
806
+ };
807
+
808
+ var polynomial = createCommonjsModule(function (module, exports) {
809
+ /**
810
+ * Multiplies two polynomials inside Galois Field
811
+ *
812
+ * @param {Uint8Array} p1 Polynomial
813
+ * @param {Uint8Array} p2 Polynomial
814
+ * @return {Uint8Array} Product of p1 and p2
815
+ */
816
+ exports.mul = function mul (p1, p2) {
817
+ const coeff = new Uint8Array(p1.length + p2.length - 1);
818
+
819
+ for (let i = 0; i < p1.length; i++) {
820
+ for (let j = 0; j < p2.length; j++) {
821
+ coeff[i + j] ^= galoisField.mul(p1[i], p2[j]);
822
+ }
823
+ }
824
+
825
+ return coeff
826
+ };
827
+
828
+ /**
829
+ * Calculate the remainder of polynomials division
830
+ *
831
+ * @param {Uint8Array} divident Polynomial
832
+ * @param {Uint8Array} divisor Polynomial
833
+ * @return {Uint8Array} Remainder
834
+ */
835
+ exports.mod = function mod (divident, divisor) {
836
+ let result = new Uint8Array(divident);
837
+
838
+ while ((result.length - divisor.length) >= 0) {
839
+ const coeff = result[0];
840
+
841
+ for (let i = 0; i < divisor.length; i++) {
842
+ result[i] ^= galoisField.mul(divisor[i], coeff);
843
+ }
844
+
845
+ // remove all zeros from buffer head
846
+ let offset = 0;
847
+ while (offset < result.length && result[offset] === 0) offset++;
848
+ result = result.slice(offset);
849
+ }
850
+
851
+ return result
852
+ };
853
+
854
+ /**
855
+ * Generate an irreducible generator polynomial of specified degree
856
+ * (used by Reed-Solomon encoder)
857
+ *
858
+ * @param {Number} degree Degree of the generator polynomial
859
+ * @return {Uint8Array} Buffer containing polynomial coefficients
860
+ */
861
+ exports.generateECPolynomial = function generateECPolynomial (degree) {
862
+ let poly = new Uint8Array([1]);
863
+ for (let i = 0; i < degree; i++) {
864
+ poly = exports.mul(poly, new Uint8Array([1, galoisField.exp(i)]));
865
+ }
866
+
867
+ return poly
868
+ };
869
+ });
870
+
871
+ function ReedSolomonEncoder (degree) {
872
+ this.genPoly = undefined;
873
+ this.degree = degree;
874
+
875
+ if (this.degree) this.initialize(this.degree);
876
+ }
877
+
878
+ /**
879
+ * Initialize the encoder.
880
+ * The input param should correspond to the number of error correction codewords.
881
+ *
882
+ * @param {Number} degree
883
+ */
884
+ ReedSolomonEncoder.prototype.initialize = function initialize (degree) {
885
+ // create an irreducible generator polynomial
886
+ this.degree = degree;
887
+ this.genPoly = polynomial.generateECPolynomial(this.degree);
888
+ };
889
+
890
+ /**
891
+ * Encodes a chunk of data
892
+ *
893
+ * @param {Uint8Array} data Buffer containing input data
894
+ * @return {Uint8Array} Buffer containing encoded data
895
+ */
896
+ ReedSolomonEncoder.prototype.encode = function encode (data) {
897
+ if (!this.genPoly) {
898
+ throw new Error('Encoder not initialized')
899
+ }
900
+
901
+ // Calculate EC for this data block
902
+ // extends data size to data+genPoly size
903
+ const paddedData = new Uint8Array(data.length + this.degree);
904
+ paddedData.set(data);
905
+
906
+ // The error correction codewords are the remainder after dividing the data codewords
907
+ // by a generator polynomial
908
+ const remainder = polynomial.mod(paddedData, this.genPoly);
909
+
910
+ // return EC data blocks (last n byte, where n is the degree of genPoly)
911
+ // If coefficients number in remainder are less than genPoly degree,
912
+ // pad with 0s to the left to reach the needed number of coefficients
913
+ const start = this.degree - remainder.length;
914
+ if (start > 0) {
915
+ const buff = new Uint8Array(this.degree);
916
+ buff.set(remainder, start);
917
+
918
+ return buff
919
+ }
920
+
921
+ return remainder
922
+ };
923
+
924
+ var reedSolomonEncoder = ReedSolomonEncoder;
925
+
926
+ /**
927
+ * Check if QR Code version is valid
928
+ *
929
+ * @param {Number} version QR Code version
930
+ * @return {Boolean} true if valid version, false otherwise
931
+ */
932
+ var isValid = function isValid (version) {
933
+ return !isNaN(version) && version >= 1 && version <= 40
934
+ };
935
+
936
+ var versionCheck = {
937
+ isValid: isValid
938
+ };
939
+
940
+ const numeric = '[0-9]+';
941
+ const alphanumeric = '[A-Z $%*+\\-./:]+';
942
+ let kanji = '(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|' +
943
+ '[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|' +
944
+ '[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|' +
945
+ '[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+';
946
+ kanji = kanji.replace(/u/g, '\\u');
947
+
948
+ const byte = '(?:(?![A-Z0-9 $%*+\\-./:]|' + kanji + ')(?:.|[\r\n]))+';
949
+
950
+ var KANJI = new RegExp(kanji, 'g');
951
+ var BYTE_KANJI = new RegExp('[^A-Z0-9 $%*+\\-./:]+', 'g');
952
+ var BYTE = new RegExp(byte, 'g');
953
+ var NUMERIC = new RegExp(numeric, 'g');
954
+ var ALPHANUMERIC = new RegExp(alphanumeric, 'g');
955
+
956
+ const TEST_KANJI = new RegExp('^' + kanji + '$');
957
+ const TEST_NUMERIC = new RegExp('^' + numeric + '$');
958
+ const TEST_ALPHANUMERIC = new RegExp('^[A-Z0-9 $%*+\\-./:]+$');
959
+
960
+ var testKanji = function testKanji (str) {
961
+ return TEST_KANJI.test(str)
962
+ };
963
+
964
+ var testNumeric = function testNumeric (str) {
965
+ return TEST_NUMERIC.test(str)
966
+ };
967
+
968
+ var testAlphanumeric = function testAlphanumeric (str) {
969
+ return TEST_ALPHANUMERIC.test(str)
970
+ };
971
+
972
+ var regex = {
973
+ KANJI: KANJI,
974
+ BYTE_KANJI: BYTE_KANJI,
975
+ BYTE: BYTE,
976
+ NUMERIC: NUMERIC,
977
+ ALPHANUMERIC: ALPHANUMERIC,
978
+ testKanji: testKanji,
979
+ testNumeric: testNumeric,
980
+ testAlphanumeric: testAlphanumeric
981
+ };
982
+
983
+ var mode = createCommonjsModule(function (module, exports) {
984
+ /**
985
+ * Numeric mode encodes data from the decimal digit set (0 - 9)
986
+ * (byte values 30HEX to 39HEX).
987
+ * Normally, 3 data characters are represented by 10 bits.
988
+ *
989
+ * @type {Object}
990
+ */
991
+ exports.NUMERIC = {
992
+ id: 'Numeric',
993
+ bit: 1 << 0,
994
+ ccBits: [10, 12, 14]
995
+ };
996
+
997
+ /**
998
+ * Alphanumeric mode encodes data from a set of 45 characters,
999
+ * i.e. 10 numeric digits (0 - 9),
1000
+ * 26 alphabetic characters (A - Z),
1001
+ * and 9 symbols (SP, $, %, *, +, -, ., /, :).
1002
+ * Normally, two input characters are represented by 11 bits.
1003
+ *
1004
+ * @type {Object}
1005
+ */
1006
+ exports.ALPHANUMERIC = {
1007
+ id: 'Alphanumeric',
1008
+ bit: 1 << 1,
1009
+ ccBits: [9, 11, 13]
1010
+ };
1011
+
1012
+ /**
1013
+ * In byte mode, data is encoded at 8 bits per character.
1014
+ *
1015
+ * @type {Object}
1016
+ */
1017
+ exports.BYTE = {
1018
+ id: 'Byte',
1019
+ bit: 1 << 2,
1020
+ ccBits: [8, 16, 16]
1021
+ };
1022
+
1023
+ /**
1024
+ * The Kanji mode efficiently encodes Kanji characters in accordance with
1025
+ * the Shift JIS system based on JIS X 0208.
1026
+ * The Shift JIS values are shifted from the JIS X 0208 values.
1027
+ * JIS X 0208 gives details of the shift coded representation.
1028
+ * Each two-byte character value is compacted to a 13-bit binary codeword.
1029
+ *
1030
+ * @type {Object}
1031
+ */
1032
+ exports.KANJI = {
1033
+ id: 'Kanji',
1034
+ bit: 1 << 3,
1035
+ ccBits: [8, 10, 12]
1036
+ };
1037
+
1038
+ /**
1039
+ * Mixed mode will contain a sequences of data in a combination of any of
1040
+ * the modes described above
1041
+ *
1042
+ * @type {Object}
1043
+ */
1044
+ exports.MIXED = {
1045
+ bit: -1
1046
+ };
1047
+
1048
+ /**
1049
+ * Returns the number of bits needed to store the data length
1050
+ * according to QR Code specifications.
1051
+ *
1052
+ * @param {Mode} mode Data mode
1053
+ * @param {Number} version QR Code version
1054
+ * @return {Number} Number of bits
1055
+ */
1056
+ exports.getCharCountIndicator = function getCharCountIndicator (mode, version) {
1057
+ if (!mode.ccBits) throw new Error('Invalid mode: ' + mode)
1058
+
1059
+ if (!versionCheck.isValid(version)) {
1060
+ throw new Error('Invalid version: ' + version)
1061
+ }
1062
+
1063
+ if (version >= 1 && version < 10) return mode.ccBits[0]
1064
+ else if (version < 27) return mode.ccBits[1]
1065
+ return mode.ccBits[2]
1066
+ };
1067
+
1068
+ /**
1069
+ * Returns the most efficient mode to store the specified data
1070
+ *
1071
+ * @param {String} dataStr Input data string
1072
+ * @return {Mode} Best mode
1073
+ */
1074
+ exports.getBestModeForData = function getBestModeForData (dataStr) {
1075
+ if (regex.testNumeric(dataStr)) return exports.NUMERIC
1076
+ else if (regex.testAlphanumeric(dataStr)) return exports.ALPHANUMERIC
1077
+ else if (regex.testKanji(dataStr)) return exports.KANJI
1078
+ else return exports.BYTE
1079
+ };
1080
+
1081
+ /**
1082
+ * Return mode name as string
1083
+ *
1084
+ * @param {Mode} mode Mode object
1085
+ * @returns {String} Mode name
1086
+ */
1087
+ exports.toString = function toString (mode) {
1088
+ if (mode && mode.id) return mode.id
1089
+ throw new Error('Invalid mode')
1090
+ };
1091
+
1092
+ /**
1093
+ * Check if input param is a valid mode object
1094
+ *
1095
+ * @param {Mode} mode Mode object
1096
+ * @returns {Boolean} True if valid mode, false otherwise
1097
+ */
1098
+ exports.isValid = function isValid (mode) {
1099
+ return mode && mode.bit && mode.ccBits
1100
+ };
1101
+
1102
+ /**
1103
+ * Get mode object from its name
1104
+ *
1105
+ * @param {String} string Mode name
1106
+ * @returns {Mode} Mode object
1107
+ */
1108
+ function fromString (string) {
1109
+ if (typeof string !== 'string') {
1110
+ throw new Error('Param is not a string')
1111
+ }
1112
+
1113
+ const lcStr = string.toLowerCase();
1114
+
1115
+ switch (lcStr) {
1116
+ case 'numeric':
1117
+ return exports.NUMERIC
1118
+ case 'alphanumeric':
1119
+ return exports.ALPHANUMERIC
1120
+ case 'kanji':
1121
+ return exports.KANJI
1122
+ case 'byte':
1123
+ return exports.BYTE
1124
+ default:
1125
+ throw new Error('Unknown mode: ' + string)
1126
+ }
1127
+ }
1128
+
1129
+ /**
1130
+ * Returns mode from a value.
1131
+ * If value is not a valid mode, returns defaultValue
1132
+ *
1133
+ * @param {Mode|String} value Encoding mode
1134
+ * @param {Mode} defaultValue Fallback value
1135
+ * @return {Mode} Encoding mode
1136
+ */
1137
+ exports.from = function from (value, defaultValue) {
1138
+ if (exports.isValid(value)) {
1139
+ return value
1140
+ }
1141
+
1142
+ try {
1143
+ return fromString(value)
1144
+ } catch (e) {
1145
+ return defaultValue
1146
+ }
1147
+ };
1148
+ });
1149
+
1150
+ var version = createCommonjsModule(function (module, exports) {
1151
+ // Generator polynomial used to encode version information
1152
+ const G18 = (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0);
1153
+ const G18_BCH = utils$1.getBCHDigit(G18);
1154
+
1155
+ function getBestVersionForDataLength (mode, length, errorCorrectionLevel) {
1156
+ for (let currentVersion = 1; currentVersion <= 40; currentVersion++) {
1157
+ if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, mode)) {
1158
+ return currentVersion
1159
+ }
1160
+ }
1161
+
1162
+ return undefined
1163
+ }
1164
+
1165
+ function getReservedBitsCount (mode$1, version) {
1166
+ // Character count indicator + mode indicator bits
1167
+ return mode.getCharCountIndicator(mode$1, version) + 4
1168
+ }
1169
+
1170
+ function getTotalBitsFromDataArray (segments, version) {
1171
+ let totalBits = 0;
1172
+
1173
+ segments.forEach(function (data) {
1174
+ const reservedBits = getReservedBitsCount(data.mode, version);
1175
+ totalBits += reservedBits + data.getBitsLength();
1176
+ });
1177
+
1178
+ return totalBits
1179
+ }
1180
+
1181
+ function getBestVersionForMixedData (segments, errorCorrectionLevel) {
1182
+ for (let currentVersion = 1; currentVersion <= 40; currentVersion++) {
1183
+ const length = getTotalBitsFromDataArray(segments, currentVersion);
1184
+ if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, mode.MIXED)) {
1185
+ return currentVersion
1186
+ }
1187
+ }
1188
+
1189
+ return undefined
1190
+ }
1191
+
1192
+ /**
1193
+ * Returns version number from a value.
1194
+ * If value is not a valid version, returns defaultValue
1195
+ *
1196
+ * @param {Number|String} value QR Code version
1197
+ * @param {Number} defaultValue Fallback value
1198
+ * @return {Number} QR Code version number
1199
+ */
1200
+ exports.from = function from (value, defaultValue) {
1201
+ if (versionCheck.isValid(value)) {
1202
+ return parseInt(value, 10)
1203
+ }
1204
+
1205
+ return defaultValue
1206
+ };
1207
+
1208
+ /**
1209
+ * Returns how much data can be stored with the specified QR code version
1210
+ * and error correction level
1211
+ *
1212
+ * @param {Number} version QR Code version (1-40)
1213
+ * @param {Number} errorCorrectionLevel Error correction level
1214
+ * @param {Mode} mode Data mode
1215
+ * @return {Number} Quantity of storable data
1216
+ */
1217
+ exports.getCapacity = function getCapacity (version, errorCorrectionLevel, mode$1) {
1218
+ if (!versionCheck.isValid(version)) {
1219
+ throw new Error('Invalid QR Code version')
1220
+ }
1221
+
1222
+ // Use Byte mode as default
1223
+ if (typeof mode$1 === 'undefined') mode$1 = mode.BYTE;
1224
+
1225
+ // Total codewords for this QR code version (Data + Error correction)
1226
+ const totalCodewords = utils$1.getSymbolTotalCodewords(version);
1227
+
1228
+ // Total number of error correction codewords
1229
+ const ecTotalCodewords = errorCorrectionCode.getTotalCodewordsCount(version, errorCorrectionLevel);
1230
+
1231
+ // Total number of data codewords
1232
+ const dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8;
1233
+
1234
+ if (mode$1 === mode.MIXED) return dataTotalCodewordsBits
1235
+
1236
+ const usableBits = dataTotalCodewordsBits - getReservedBitsCount(mode$1, version);
1237
+
1238
+ // Return max number of storable codewords
1239
+ switch (mode$1) {
1240
+ case mode.NUMERIC:
1241
+ return Math.floor((usableBits / 10) * 3)
1242
+
1243
+ case mode.ALPHANUMERIC:
1244
+ return Math.floor((usableBits / 11) * 2)
1245
+
1246
+ case mode.KANJI:
1247
+ return Math.floor(usableBits / 13)
1248
+
1249
+ case mode.BYTE:
1250
+ default:
1251
+ return Math.floor(usableBits / 8)
1252
+ }
1253
+ };
1254
+
1255
+ /**
1256
+ * Returns the minimum version needed to contain the amount of data
1257
+ *
1258
+ * @param {Segment} data Segment of data
1259
+ * @param {Number} [errorCorrectionLevel=H] Error correction level
1260
+ * @param {Mode} mode Data mode
1261
+ * @return {Number} QR Code version
1262
+ */
1263
+ exports.getBestVersionForData = function getBestVersionForData (data, errorCorrectionLevel$1) {
1264
+ let seg;
1265
+
1266
+ const ecl = errorCorrectionLevel.from(errorCorrectionLevel$1, errorCorrectionLevel.M);
1267
+
1268
+ if (Array.isArray(data)) {
1269
+ if (data.length > 1) {
1270
+ return getBestVersionForMixedData(data, ecl)
1271
+ }
1272
+
1273
+ if (data.length === 0) {
1274
+ return 1
1275
+ }
1276
+
1277
+ seg = data[0];
1278
+ } else {
1279
+ seg = data;
1280
+ }
1281
+
1282
+ return getBestVersionForDataLength(seg.mode, seg.getLength(), ecl)
1283
+ };
1284
+
1285
+ /**
1286
+ * Returns version information with relative error correction bits
1287
+ *
1288
+ * The version information is included in QR Code symbols of version 7 or larger.
1289
+ * It consists of an 18-bit sequence containing 6 data bits,
1290
+ * with 12 error correction bits calculated using the (18, 6) Golay code.
1291
+ *
1292
+ * @param {Number} version QR Code version
1293
+ * @return {Number} Encoded version info bits
1294
+ */
1295
+ exports.getEncodedBits = function getEncodedBits (version) {
1296
+ if (!versionCheck.isValid(version) || version < 7) {
1297
+ throw new Error('Invalid QR Code version')
1298
+ }
1299
+
1300
+ let d = version << 12;
1301
+
1302
+ while (utils$1.getBCHDigit(d) - G18_BCH >= 0) {
1303
+ d ^= (G18 << (utils$1.getBCHDigit(d) - G18_BCH));
1304
+ }
1305
+
1306
+ return (version << 12) | d
1307
+ };
1308
+ });
1309
+
1310
+ const G15 = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0);
1311
+ const G15_MASK = (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1);
1312
+ const G15_BCH = utils$1.getBCHDigit(G15);
1313
+
1314
+ /**
1315
+ * Returns format information with relative error correction bits
1316
+ *
1317
+ * The format information is a 15-bit sequence containing 5 data bits,
1318
+ * with 10 error correction bits calculated using the (15, 5) BCH code.
1319
+ *
1320
+ * @param {Number} errorCorrectionLevel Error correction level
1321
+ * @param {Number} mask Mask pattern
1322
+ * @return {Number} Encoded format information bits
1323
+ */
1324
+ var getEncodedBits = function getEncodedBits (errorCorrectionLevel, mask) {
1325
+ const data = ((errorCorrectionLevel.bit << 3) | mask);
1326
+ let d = data << 10;
1327
+
1328
+ while (utils$1.getBCHDigit(d) - G15_BCH >= 0) {
1329
+ d ^= (G15 << (utils$1.getBCHDigit(d) - G15_BCH));
1330
+ }
1331
+
1332
+ // xor final data with mask pattern in order to ensure that
1333
+ // no combination of Error Correction Level and data mask pattern
1334
+ // will result in an all-zero data string
1335
+ return ((data << 10) | d) ^ G15_MASK
1336
+ };
1337
+
1338
+ var formatInfo = {
1339
+ getEncodedBits: getEncodedBits
1340
+ };
1341
+
1342
+ function NumericData (data) {
1343
+ this.mode = mode.NUMERIC;
1344
+ this.data = data.toString();
1345
+ }
1346
+
1347
+ NumericData.getBitsLength = function getBitsLength (length) {
1348
+ return 10 * Math.floor(length / 3) + ((length % 3) ? ((length % 3) * 3 + 1) : 0)
1349
+ };
1350
+
1351
+ NumericData.prototype.getLength = function getLength () {
1352
+ return this.data.length
1353
+ };
1354
+
1355
+ NumericData.prototype.getBitsLength = function getBitsLength () {
1356
+ return NumericData.getBitsLength(this.data.length)
1357
+ };
1358
+
1359
+ NumericData.prototype.write = function write (bitBuffer) {
1360
+ let i, group, value;
1361
+
1362
+ // The input data string is divided into groups of three digits,
1363
+ // and each group is converted to its 10-bit binary equivalent.
1364
+ for (i = 0; i + 3 <= this.data.length; i += 3) {
1365
+ group = this.data.substr(i, 3);
1366
+ value = parseInt(group, 10);
1367
+
1368
+ bitBuffer.put(value, 10);
1369
+ }
1370
+
1371
+ // If the number of input digits is not an exact multiple of three,
1372
+ // the final one or two digits are converted to 4 or 7 bits respectively.
1373
+ const remainingNum = this.data.length - i;
1374
+ if (remainingNum > 0) {
1375
+ group = this.data.substr(i);
1376
+ value = parseInt(group, 10);
1377
+
1378
+ bitBuffer.put(value, remainingNum * 3 + 1);
1379
+ }
1380
+ };
1381
+
1382
+ var numericData = NumericData;
1383
+
1384
+ /**
1385
+ * Array of characters available in alphanumeric mode
1386
+ *
1387
+ * As per QR Code specification, to each character
1388
+ * is assigned a value from 0 to 44 which in this case coincides
1389
+ * with the array index
1390
+ *
1391
+ * @type {Array}
1392
+ */
1393
+ const ALPHA_NUM_CHARS = [
1394
+ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
1395
+ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
1396
+ 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
1397
+ ' ', '$', '%', '*', '+', '-', '.', '/', ':'
1398
+ ];
1399
+
1400
+ function AlphanumericData (data) {
1401
+ this.mode = mode.ALPHANUMERIC;
1402
+ this.data = data;
1403
+ }
1404
+
1405
+ AlphanumericData.getBitsLength = function getBitsLength (length) {
1406
+ return 11 * Math.floor(length / 2) + 6 * (length % 2)
1407
+ };
1408
+
1409
+ AlphanumericData.prototype.getLength = function getLength () {
1410
+ return this.data.length
1411
+ };
1412
+
1413
+ AlphanumericData.prototype.getBitsLength = function getBitsLength () {
1414
+ return AlphanumericData.getBitsLength(this.data.length)
1415
+ };
1416
+
1417
+ AlphanumericData.prototype.write = function write (bitBuffer) {
1418
+ let i;
1419
+
1420
+ // Input data characters are divided into groups of two characters
1421
+ // and encoded as 11-bit binary codes.
1422
+ for (i = 0; i + 2 <= this.data.length; i += 2) {
1423
+ // The character value of the first character is multiplied by 45
1424
+ let value = ALPHA_NUM_CHARS.indexOf(this.data[i]) * 45;
1425
+
1426
+ // The character value of the second digit is added to the product
1427
+ value += ALPHA_NUM_CHARS.indexOf(this.data[i + 1]);
1428
+
1429
+ // The sum is then stored as 11-bit binary number
1430
+ bitBuffer.put(value, 11);
1431
+ }
1432
+
1433
+ // If the number of input data characters is not a multiple of two,
1434
+ // the character value of the final character is encoded as a 6-bit binary number.
1435
+ if (this.data.length % 2) {
1436
+ bitBuffer.put(ALPHA_NUM_CHARS.indexOf(this.data[i]), 6);
1437
+ }
1438
+ };
1439
+
1440
+ var alphanumericData = AlphanumericData;
1441
+
1442
+ function ByteData (data) {
1443
+ this.mode = mode.BYTE;
1444
+ if (typeof (data) === 'string') {
1445
+ this.data = new TextEncoder().encode(data);
1446
+ } else {
1447
+ this.data = new Uint8Array(data);
1448
+ }
1449
+ }
1450
+
1451
+ ByteData.getBitsLength = function getBitsLength (length) {
1452
+ return length * 8
1453
+ };
1454
+
1455
+ ByteData.prototype.getLength = function getLength () {
1456
+ return this.data.length
1457
+ };
1458
+
1459
+ ByteData.prototype.getBitsLength = function getBitsLength () {
1460
+ return ByteData.getBitsLength(this.data.length)
1461
+ };
1462
+
1463
+ ByteData.prototype.write = function (bitBuffer) {
1464
+ for (let i = 0, l = this.data.length; i < l; i++) {
1465
+ bitBuffer.put(this.data[i], 8);
1466
+ }
1467
+ };
1468
+
1469
+ var byteData = ByteData;
1470
+
1471
+ function KanjiData (data) {
1472
+ this.mode = mode.KANJI;
1473
+ this.data = data;
1474
+ }
1475
+
1476
+ KanjiData.getBitsLength = function getBitsLength (length) {
1477
+ return length * 13
1478
+ };
1479
+
1480
+ KanjiData.prototype.getLength = function getLength () {
1481
+ return this.data.length
1482
+ };
1483
+
1484
+ KanjiData.prototype.getBitsLength = function getBitsLength () {
1485
+ return KanjiData.getBitsLength(this.data.length)
1486
+ };
1487
+
1488
+ KanjiData.prototype.write = function (bitBuffer) {
1489
+ let i;
1490
+
1491
+ // In the Shift JIS system, Kanji characters are represented by a two byte combination.
1492
+ // These byte values are shifted from the JIS X 0208 values.
1493
+ // JIS X 0208 gives details of the shift coded representation.
1494
+ for (i = 0; i < this.data.length; i++) {
1495
+ let value = utils$1.toSJIS(this.data[i]);
1496
+
1497
+ // For characters with Shift JIS values from 0x8140 to 0x9FFC:
1498
+ if (value >= 0x8140 && value <= 0x9FFC) {
1499
+ // Subtract 0x8140 from Shift JIS value
1500
+ value -= 0x8140;
1501
+
1502
+ // For characters with Shift JIS values from 0xE040 to 0xEBBF
1503
+ } else if (value >= 0xE040 && value <= 0xEBBF) {
1504
+ // Subtract 0xC140 from Shift JIS value
1505
+ value -= 0xC140;
1506
+ } else {
1507
+ throw new Error(
1508
+ 'Invalid SJIS character: ' + this.data[i] + '\n' +
1509
+ 'Make sure your charset is UTF-8')
1510
+ }
1511
+
1512
+ // Multiply most significant byte of result by 0xC0
1513
+ // and add least significant byte to product
1514
+ value = (((value >>> 8) & 0xff) * 0xC0) + (value & 0xff);
1515
+
1516
+ // Convert result to a 13-bit binary string
1517
+ bitBuffer.put(value, 13);
1518
+ }
1519
+ };
1520
+
1521
+ var kanjiData = KanjiData;
1522
+
1523
+ var dijkstra_1 = createCommonjsModule(function (module) {
1524
+
1525
+ /******************************************************************************
1526
+ * Created 2008-08-19.
1527
+ *
1528
+ * Dijkstra path-finding functions. Adapted from the Dijkstar Python project.
1529
+ *
1530
+ * Copyright (C) 2008
1531
+ * Wyatt Baldwin <self@wyattbaldwin.com>
1532
+ * All rights reserved
1533
+ *
1534
+ * Licensed under the MIT license.
1535
+ *
1536
+ * http://www.opensource.org/licenses/mit-license.php
1537
+ *
1538
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1539
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1540
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1541
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1542
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1543
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1544
+ * THE SOFTWARE.
1545
+ *****************************************************************************/
1546
+ var dijkstra = {
1547
+ single_source_shortest_paths: function(graph, s, d) {
1548
+ // Predecessor map for each node that has been encountered.
1549
+ // node ID => predecessor node ID
1550
+ var predecessors = {};
1551
+
1552
+ // Costs of shortest paths from s to all nodes encountered.
1553
+ // node ID => cost
1554
+ var costs = {};
1555
+ costs[s] = 0;
1556
+
1557
+ // Costs of shortest paths from s to all nodes encountered; differs from
1558
+ // `costs` in that it provides easy access to the node that currently has
1559
+ // the known shortest path from s.
1560
+ // XXX: Do we actually need both `costs` and `open`?
1561
+ var open = dijkstra.PriorityQueue.make();
1562
+ open.push(s, 0);
1563
+
1564
+ var closest,
1565
+ u, v,
1566
+ cost_of_s_to_u,
1567
+ adjacent_nodes,
1568
+ cost_of_e,
1569
+ cost_of_s_to_u_plus_cost_of_e,
1570
+ cost_of_s_to_v,
1571
+ first_visit;
1572
+ while (!open.empty()) {
1573
+ // In the nodes remaining in graph that have a known cost from s,
1574
+ // find the node, u, that currently has the shortest path from s.
1575
+ closest = open.pop();
1576
+ u = closest.value;
1577
+ cost_of_s_to_u = closest.cost;
1578
+
1579
+ // Get nodes adjacent to u...
1580
+ adjacent_nodes = graph[u] || {};
1581
+
1582
+ // ...and explore the edges that connect u to those nodes, updating
1583
+ // the cost of the shortest paths to any or all of those nodes as
1584
+ // necessary. v is the node across the current edge from u.
1585
+ for (v in adjacent_nodes) {
1586
+ if (adjacent_nodes.hasOwnProperty(v)) {
1587
+ // Get the cost of the edge running from u to v.
1588
+ cost_of_e = adjacent_nodes[v];
1589
+
1590
+ // Cost of s to u plus the cost of u to v across e--this is *a*
1591
+ // cost from s to v that may or may not be less than the current
1592
+ // known cost to v.
1593
+ cost_of_s_to_u_plus_cost_of_e = cost_of_s_to_u + cost_of_e;
1594
+
1595
+ // If we haven't visited v yet OR if the current known cost from s to
1596
+ // v is greater than the new cost we just found (cost of s to u plus
1597
+ // cost of u to v across e), update v's cost in the cost list and
1598
+ // update v's predecessor in the predecessor list (it's now u).
1599
+ cost_of_s_to_v = costs[v];
1600
+ first_visit = (typeof costs[v] === 'undefined');
1601
+ if (first_visit || cost_of_s_to_v > cost_of_s_to_u_plus_cost_of_e) {
1602
+ costs[v] = cost_of_s_to_u_plus_cost_of_e;
1603
+ open.push(v, cost_of_s_to_u_plus_cost_of_e);
1604
+ predecessors[v] = u;
1605
+ }
1606
+ }
1607
+ }
1608
+ }
1609
+
1610
+ if (typeof d !== 'undefined' && typeof costs[d] === 'undefined') {
1611
+ var msg = ['Could not find a path from ', s, ' to ', d, '.'].join('');
1612
+ throw new Error(msg);
1613
+ }
1614
+
1615
+ return predecessors;
1616
+ },
1617
+
1618
+ extract_shortest_path_from_predecessor_list: function(predecessors, d) {
1619
+ var nodes = [];
1620
+ var u = d;
1621
+ while (u) {
1622
+ nodes.push(u);
1623
+ u = predecessors[u];
1624
+ }
1625
+ nodes.reverse();
1626
+ return nodes;
1627
+ },
1628
+
1629
+ find_path: function(graph, s, d) {
1630
+ var predecessors = dijkstra.single_source_shortest_paths(graph, s, d);
1631
+ return dijkstra.extract_shortest_path_from_predecessor_list(
1632
+ predecessors, d);
1633
+ },
1634
+
1635
+ /**
1636
+ * A very naive priority queue implementation.
1637
+ */
1638
+ PriorityQueue: {
1639
+ make: function (opts) {
1640
+ var T = dijkstra.PriorityQueue,
1641
+ t = {},
1642
+ key;
1643
+ opts = opts || {};
1644
+ for (key in T) {
1645
+ if (T.hasOwnProperty(key)) {
1646
+ t[key] = T[key];
1647
+ }
1648
+ }
1649
+ t.queue = [];
1650
+ t.sorter = opts.sorter || T.default_sorter;
1651
+ return t;
1652
+ },
1653
+
1654
+ default_sorter: function (a, b) {
1655
+ return a.cost - b.cost;
1656
+ },
1657
+
1658
+ /**
1659
+ * Add a new item to the queue and ensure the highest priority element
1660
+ * is at the front of the queue.
1661
+ */
1662
+ push: function (value, cost) {
1663
+ var item = {value: value, cost: cost};
1664
+ this.queue.push(item);
1665
+ this.queue.sort(this.sorter);
1666
+ },
1667
+
1668
+ /**
1669
+ * Return the highest priority element in the queue.
1670
+ */
1671
+ pop: function () {
1672
+ return this.queue.shift();
1673
+ },
1674
+
1675
+ empty: function () {
1676
+ return this.queue.length === 0;
1677
+ }
1678
+ }
1679
+ };
1680
+
1681
+
1682
+ // node.js module exports
1683
+ {
1684
+ module.exports = dijkstra;
1685
+ }
1686
+ });
1687
+
1688
+ var segments = createCommonjsModule(function (module, exports) {
1689
+ /**
1690
+ * Returns UTF8 byte length
1691
+ *
1692
+ * @param {String} str Input string
1693
+ * @return {Number} Number of byte
1694
+ */
1695
+ function getStringByteLength (str) {
1696
+ return unescape(encodeURIComponent(str)).length
1697
+ }
1698
+
1699
+ /**
1700
+ * Get a list of segments of the specified mode
1701
+ * from a string
1702
+ *
1703
+ * @param {Mode} mode Segment mode
1704
+ * @param {String} str String to process
1705
+ * @return {Array} Array of object with segments data
1706
+ */
1707
+ function getSegments (regex, mode, str) {
1708
+ const segments = [];
1709
+ let result;
1710
+
1711
+ while ((result = regex.exec(str)) !== null) {
1712
+ segments.push({
1713
+ data: result[0],
1714
+ index: result.index,
1715
+ mode: mode,
1716
+ length: result[0].length
1717
+ });
1718
+ }
1719
+
1720
+ return segments
1721
+ }
1722
+
1723
+ /**
1724
+ * Extracts a series of segments with the appropriate
1725
+ * modes from a string
1726
+ *
1727
+ * @param {String} dataStr Input string
1728
+ * @return {Array} Array of object with segments data
1729
+ */
1730
+ function getSegmentsFromString (dataStr) {
1731
+ const numSegs = getSegments(regex.NUMERIC, mode.NUMERIC, dataStr);
1732
+ const alphaNumSegs = getSegments(regex.ALPHANUMERIC, mode.ALPHANUMERIC, dataStr);
1733
+ let byteSegs;
1734
+ let kanjiSegs;
1735
+
1736
+ if (utils$1.isKanjiModeEnabled()) {
1737
+ byteSegs = getSegments(regex.BYTE, mode.BYTE, dataStr);
1738
+ kanjiSegs = getSegments(regex.KANJI, mode.KANJI, dataStr);
1739
+ } else {
1740
+ byteSegs = getSegments(regex.BYTE_KANJI, mode.BYTE, dataStr);
1741
+ kanjiSegs = [];
1742
+ }
1743
+
1744
+ const segs = numSegs.concat(alphaNumSegs, byteSegs, kanjiSegs);
1745
+
1746
+ return segs
1747
+ .sort(function (s1, s2) {
1748
+ return s1.index - s2.index
1749
+ })
1750
+ .map(function (obj) {
1751
+ return {
1752
+ data: obj.data,
1753
+ mode: obj.mode,
1754
+ length: obj.length
1755
+ }
1756
+ })
1757
+ }
1758
+
1759
+ /**
1760
+ * Returns how many bits are needed to encode a string of
1761
+ * specified length with the specified mode
1762
+ *
1763
+ * @param {Number} length String length
1764
+ * @param {Mode} mode Segment mode
1765
+ * @return {Number} Bit length
1766
+ */
1767
+ function getSegmentBitsLength (length, mode$1) {
1768
+ switch (mode$1) {
1769
+ case mode.NUMERIC:
1770
+ return numericData.getBitsLength(length)
1771
+ case mode.ALPHANUMERIC:
1772
+ return alphanumericData.getBitsLength(length)
1773
+ case mode.KANJI:
1774
+ return kanjiData.getBitsLength(length)
1775
+ case mode.BYTE:
1776
+ return byteData.getBitsLength(length)
1777
+ }
1778
+ }
1779
+
1780
+ /**
1781
+ * Merges adjacent segments which have the same mode
1782
+ *
1783
+ * @param {Array} segs Array of object with segments data
1784
+ * @return {Array} Array of object with segments data
1785
+ */
1786
+ function mergeSegments (segs) {
1787
+ return segs.reduce(function (acc, curr) {
1788
+ const prevSeg = acc.length - 1 >= 0 ? acc[acc.length - 1] : null;
1789
+ if (prevSeg && prevSeg.mode === curr.mode) {
1790
+ acc[acc.length - 1].data += curr.data;
1791
+ return acc
1792
+ }
1793
+
1794
+ acc.push(curr);
1795
+ return acc
1796
+ }, [])
1797
+ }
1798
+
1799
+ /**
1800
+ * Generates a list of all possible nodes combination which
1801
+ * will be used to build a segments graph.
1802
+ *
1803
+ * Nodes are divided by groups. Each group will contain a list of all the modes
1804
+ * in which is possible to encode the given text.
1805
+ *
1806
+ * For example the text '12345' can be encoded as Numeric, Alphanumeric or Byte.
1807
+ * The group for '12345' will contain then 3 objects, one for each
1808
+ * possible encoding mode.
1809
+ *
1810
+ * Each node represents a possible segment.
1811
+ *
1812
+ * @param {Array} segs Array of object with segments data
1813
+ * @return {Array} Array of object with segments data
1814
+ */
1815
+ function buildNodes (segs) {
1816
+ const nodes = [];
1817
+ for (let i = 0; i < segs.length; i++) {
1818
+ const seg = segs[i];
1819
+
1820
+ switch (seg.mode) {
1821
+ case mode.NUMERIC:
1822
+ nodes.push([seg,
1823
+ { data: seg.data, mode: mode.ALPHANUMERIC, length: seg.length },
1824
+ { data: seg.data, mode: mode.BYTE, length: seg.length }
1825
+ ]);
1826
+ break
1827
+ case mode.ALPHANUMERIC:
1828
+ nodes.push([seg,
1829
+ { data: seg.data, mode: mode.BYTE, length: seg.length }
1830
+ ]);
1831
+ break
1832
+ case mode.KANJI:
1833
+ nodes.push([seg,
1834
+ { data: seg.data, mode: mode.BYTE, length: getStringByteLength(seg.data) }
1835
+ ]);
1836
+ break
1837
+ case mode.BYTE:
1838
+ nodes.push([
1839
+ { data: seg.data, mode: mode.BYTE, length: getStringByteLength(seg.data) }
1840
+ ]);
1841
+ }
1842
+ }
1843
+
1844
+ return nodes
1845
+ }
1846
+
1847
+ /**
1848
+ * Builds a graph from a list of nodes.
1849
+ * All segments in each node group will be connected with all the segments of
1850
+ * the next group and so on.
1851
+ *
1852
+ * At each connection will be assigned a weight depending on the
1853
+ * segment's byte length.
1854
+ *
1855
+ * @param {Array} nodes Array of object with segments data
1856
+ * @param {Number} version QR Code version
1857
+ * @return {Object} Graph of all possible segments
1858
+ */
1859
+ function buildGraph (nodes, version) {
1860
+ const table = {};
1861
+ const graph = { start: {} };
1862
+ let prevNodeIds = ['start'];
1863
+
1864
+ for (let i = 0; i < nodes.length; i++) {
1865
+ const nodeGroup = nodes[i];
1866
+ const currentNodeIds = [];
1867
+
1868
+ for (let j = 0; j < nodeGroup.length; j++) {
1869
+ const node = nodeGroup[j];
1870
+ const key = '' + i + j;
1871
+
1872
+ currentNodeIds.push(key);
1873
+ table[key] = { node: node, lastCount: 0 };
1874
+ graph[key] = {};
1875
+
1876
+ for (let n = 0; n < prevNodeIds.length; n++) {
1877
+ const prevNodeId = prevNodeIds[n];
1878
+
1879
+ if (table[prevNodeId] && table[prevNodeId].node.mode === node.mode) {
1880
+ graph[prevNodeId][key] =
1881
+ getSegmentBitsLength(table[prevNodeId].lastCount + node.length, node.mode) -
1882
+ getSegmentBitsLength(table[prevNodeId].lastCount, node.mode);
1883
+
1884
+ table[prevNodeId].lastCount += node.length;
1885
+ } else {
1886
+ if (table[prevNodeId]) table[prevNodeId].lastCount = node.length;
1887
+
1888
+ graph[prevNodeId][key] = getSegmentBitsLength(node.length, node.mode) +
1889
+ 4 + mode.getCharCountIndicator(node.mode, version); // switch cost
1890
+ }
1891
+ }
1892
+ }
1893
+
1894
+ prevNodeIds = currentNodeIds;
1895
+ }
1896
+
1897
+ for (let n = 0; n < prevNodeIds.length; n++) {
1898
+ graph[prevNodeIds[n]].end = 0;
1899
+ }
1900
+
1901
+ return { map: graph, table: table }
1902
+ }
1903
+
1904
+ /**
1905
+ * Builds a segment from a specified data and mode.
1906
+ * If a mode is not specified, the more suitable will be used.
1907
+ *
1908
+ * @param {String} data Input data
1909
+ * @param {Mode | String} modesHint Data mode
1910
+ * @return {Segment} Segment
1911
+ */
1912
+ function buildSingleSegment (data, modesHint) {
1913
+ let mode$1;
1914
+ const bestMode = mode.getBestModeForData(data);
1915
+
1916
+ mode$1 = mode.from(modesHint, bestMode);
1917
+
1918
+ // Make sure data can be encoded
1919
+ if (mode$1 !== mode.BYTE && mode$1.bit < bestMode.bit) {
1920
+ throw new Error('"' + data + '"' +
1921
+ ' cannot be encoded with mode ' + mode.toString(mode$1) +
1922
+ '.\n Suggested mode is: ' + mode.toString(bestMode))
1923
+ }
1924
+
1925
+ // Use Mode.BYTE if Kanji support is disabled
1926
+ if (mode$1 === mode.KANJI && !utils$1.isKanjiModeEnabled()) {
1927
+ mode$1 = mode.BYTE;
1928
+ }
1929
+
1930
+ switch (mode$1) {
1931
+ case mode.NUMERIC:
1932
+ return new numericData(data)
1933
+
1934
+ case mode.ALPHANUMERIC:
1935
+ return new alphanumericData(data)
1936
+
1937
+ case mode.KANJI:
1938
+ return new kanjiData(data)
1939
+
1940
+ case mode.BYTE:
1941
+ return new byteData(data)
1942
+ }
1943
+ }
1944
+
1945
+ /**
1946
+ * Builds a list of segments from an array.
1947
+ * Array can contain Strings or Objects with segment's info.
1948
+ *
1949
+ * For each item which is a string, will be generated a segment with the given
1950
+ * string and the more appropriate encoding mode.
1951
+ *
1952
+ * For each item which is an object, will be generated a segment with the given
1953
+ * data and mode.
1954
+ * Objects must contain at least the property "data".
1955
+ * If property "mode" is not present, the more suitable mode will be used.
1956
+ *
1957
+ * @param {Array} array Array of objects with segments data
1958
+ * @return {Array} Array of Segments
1959
+ */
1960
+ exports.fromArray = function fromArray (array) {
1961
+ return array.reduce(function (acc, seg) {
1962
+ if (typeof seg === 'string') {
1963
+ acc.push(buildSingleSegment(seg, null));
1964
+ } else if (seg.data) {
1965
+ acc.push(buildSingleSegment(seg.data, seg.mode));
1966
+ }
1967
+
1968
+ return acc
1969
+ }, [])
1970
+ };
1971
+
1972
+ /**
1973
+ * Builds an optimized sequence of segments from a string,
1974
+ * which will produce the shortest possible bitstream.
1975
+ *
1976
+ * @param {String} data Input string
1977
+ * @param {Number} version QR Code version
1978
+ * @return {Array} Array of segments
1979
+ */
1980
+ exports.fromString = function fromString (data, version) {
1981
+ const segs = getSegmentsFromString(data, utils$1.isKanjiModeEnabled());
1982
+
1983
+ const nodes = buildNodes(segs);
1984
+ const graph = buildGraph(nodes, version);
1985
+ const path = dijkstra_1.find_path(graph.map, 'start', 'end');
1986
+
1987
+ const optimizedSegs = [];
1988
+ for (let i = 1; i < path.length - 1; i++) {
1989
+ optimizedSegs.push(graph.table[path[i]].node);
1990
+ }
1991
+
1992
+ return exports.fromArray(mergeSegments(optimizedSegs))
1993
+ };
1994
+
1995
+ /**
1996
+ * Splits a string in various segments with the modes which
1997
+ * best represent their content.
1998
+ * The produced segments are far from being optimized.
1999
+ * The output of this function is only used to estimate a QR Code version
2000
+ * which may contain the data.
2001
+ *
2002
+ * @param {string} data Input string
2003
+ * @return {Array} Array of segments
2004
+ */
2005
+ exports.rawSplit = function rawSplit (data) {
2006
+ return exports.fromArray(
2007
+ getSegmentsFromString(data, utils$1.isKanjiModeEnabled())
2008
+ )
2009
+ };
2010
+ });
2011
+
2012
+ /**
2013
+ * QRCode for JavaScript
2014
+ *
2015
+ * modified by Ryan Day for nodejs support
2016
+ * Copyright (c) 2011 Ryan Day
2017
+ *
2018
+ * Licensed under the MIT license:
2019
+ * http://www.opensource.org/licenses/mit-license.php
2020
+ *
2021
+ //---------------------------------------------------------------------
2022
+ // QRCode for JavaScript
2023
+ //
2024
+ // Copyright (c) 2009 Kazuhiko Arase
2025
+ //
2026
+ // URL: http://www.d-project.com/
2027
+ //
2028
+ // Licensed under the MIT license:
2029
+ // http://www.opensource.org/licenses/mit-license.php
2030
+ //
2031
+ // The word "QR Code" is registered trademark of
2032
+ // DENSO WAVE INCORPORATED
2033
+ // http://www.denso-wave.com/qrcode/faqpatent-e.html
2034
+ //
2035
+ //---------------------------------------------------------------------
2036
+ */
2037
+
2038
+ /**
2039
+ * Add finder patterns bits to matrix
2040
+ *
2041
+ * @param {BitMatrix} matrix Modules matrix
2042
+ * @param {Number} version QR Code version
2043
+ */
2044
+ function setupFinderPattern (matrix, version) {
2045
+ const size = matrix.size;
2046
+ const pos = finderPattern.getPositions(version);
2047
+
2048
+ for (let i = 0; i < pos.length; i++) {
2049
+ const row = pos[i][0];
2050
+ const col = pos[i][1];
2051
+
2052
+ for (let r = -1; r <= 7; r++) {
2053
+ if (row + r <= -1 || size <= row + r) continue
2054
+
2055
+ for (let c = -1; c <= 7; c++) {
2056
+ if (col + c <= -1 || size <= col + c) continue
2057
+
2058
+ if ((r >= 0 && r <= 6 && (c === 0 || c === 6)) ||
2059
+ (c >= 0 && c <= 6 && (r === 0 || r === 6)) ||
2060
+ (r >= 2 && r <= 4 && c >= 2 && c <= 4)) {
2061
+ matrix.set(row + r, col + c, true, true);
2062
+ } else {
2063
+ matrix.set(row + r, col + c, false, true);
2064
+ }
2065
+ }
2066
+ }
2067
+ }
2068
+ }
2069
+
2070
+ /**
2071
+ * Add timing pattern bits to matrix
2072
+ *
2073
+ * Note: this function must be called before {@link setupAlignmentPattern}
2074
+ *
2075
+ * @param {BitMatrix} matrix Modules matrix
2076
+ */
2077
+ function setupTimingPattern (matrix) {
2078
+ const size = matrix.size;
2079
+
2080
+ for (let r = 8; r < size - 8; r++) {
2081
+ const value = r % 2 === 0;
2082
+ matrix.set(r, 6, value, true);
2083
+ matrix.set(6, r, value, true);
2084
+ }
2085
+ }
2086
+
2087
+ /**
2088
+ * Add alignment patterns bits to matrix
2089
+ *
2090
+ * Note: this function must be called after {@link setupTimingPattern}
2091
+ *
2092
+ * @param {BitMatrix} matrix Modules matrix
2093
+ * @param {Number} version QR Code version
2094
+ */
2095
+ function setupAlignmentPattern (matrix, version) {
2096
+ const pos = alignmentPattern.getPositions(version);
2097
+
2098
+ for (let i = 0; i < pos.length; i++) {
2099
+ const row = pos[i][0];
2100
+ const col = pos[i][1];
2101
+
2102
+ for (let r = -2; r <= 2; r++) {
2103
+ for (let c = -2; c <= 2; c++) {
2104
+ if (r === -2 || r === 2 || c === -2 || c === 2 ||
2105
+ (r === 0 && c === 0)) {
2106
+ matrix.set(row + r, col + c, true, true);
2107
+ } else {
2108
+ matrix.set(row + r, col + c, false, true);
2109
+ }
2110
+ }
2111
+ }
2112
+ }
2113
+ }
2114
+
2115
+ /**
2116
+ * Add version info bits to matrix
2117
+ *
2118
+ * @param {BitMatrix} matrix Modules matrix
2119
+ * @param {Number} version QR Code version
2120
+ */
2121
+ function setupVersionInfo (matrix, version$1) {
2122
+ const size = matrix.size;
2123
+ const bits = version.getEncodedBits(version$1);
2124
+ let row, col, mod;
2125
+
2126
+ for (let i = 0; i < 18; i++) {
2127
+ row = Math.floor(i / 3);
2128
+ col = i % 3 + size - 8 - 3;
2129
+ mod = ((bits >> i) & 1) === 1;
2130
+
2131
+ matrix.set(row, col, mod, true);
2132
+ matrix.set(col, row, mod, true);
2133
+ }
2134
+ }
2135
+
2136
+ /**
2137
+ * Add format info bits to matrix
2138
+ *
2139
+ * @param {BitMatrix} matrix Modules matrix
2140
+ * @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level
2141
+ * @param {Number} maskPattern Mask pattern reference value
2142
+ */
2143
+ function setupFormatInfo (matrix, errorCorrectionLevel, maskPattern) {
2144
+ const size = matrix.size;
2145
+ const bits = formatInfo.getEncodedBits(errorCorrectionLevel, maskPattern);
2146
+ let i, mod;
2147
+
2148
+ for (i = 0; i < 15; i++) {
2149
+ mod = ((bits >> i) & 1) === 1;
2150
+
2151
+ // vertical
2152
+ if (i < 6) {
2153
+ matrix.set(i, 8, mod, true);
2154
+ } else if (i < 8) {
2155
+ matrix.set(i + 1, 8, mod, true);
2156
+ } else {
2157
+ matrix.set(size - 15 + i, 8, mod, true);
2158
+ }
2159
+
2160
+ // horizontal
2161
+ if (i < 8) {
2162
+ matrix.set(8, size - i - 1, mod, true);
2163
+ } else if (i < 9) {
2164
+ matrix.set(8, 15 - i - 1 + 1, mod, true);
2165
+ } else {
2166
+ matrix.set(8, 15 - i - 1, mod, true);
2167
+ }
2168
+ }
2169
+
2170
+ // fixed module
2171
+ matrix.set(size - 8, 8, 1, true);
2172
+ }
2173
+
2174
+ /**
2175
+ * Add encoded data bits to matrix
2176
+ *
2177
+ * @param {BitMatrix} matrix Modules matrix
2178
+ * @param {Uint8Array} data Data codewords
2179
+ */
2180
+ function setupData (matrix, data) {
2181
+ const size = matrix.size;
2182
+ let inc = -1;
2183
+ let row = size - 1;
2184
+ let bitIndex = 7;
2185
+ let byteIndex = 0;
2186
+
2187
+ for (let col = size - 1; col > 0; col -= 2) {
2188
+ if (col === 6) col--;
2189
+
2190
+ while (true) {
2191
+ for (let c = 0; c < 2; c++) {
2192
+ if (!matrix.isReserved(row, col - c)) {
2193
+ let dark = false;
2194
+
2195
+ if (byteIndex < data.length) {
2196
+ dark = (((data[byteIndex] >>> bitIndex) & 1) === 1);
2197
+ }
2198
+
2199
+ matrix.set(row, col - c, dark);
2200
+ bitIndex--;
2201
+
2202
+ if (bitIndex === -1) {
2203
+ byteIndex++;
2204
+ bitIndex = 7;
2205
+ }
2206
+ }
2207
+ }
2208
+
2209
+ row += inc;
2210
+
2211
+ if (row < 0 || size <= row) {
2212
+ row -= inc;
2213
+ inc = -inc;
2214
+ break
2215
+ }
2216
+ }
2217
+ }
2218
+ }
2219
+
2220
+ /**
2221
+ * Create encoded codewords from data input
2222
+ *
2223
+ * @param {Number} version QR Code version
2224
+ * @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level
2225
+ * @param {ByteData} data Data input
2226
+ * @return {Uint8Array} Buffer containing encoded codewords
2227
+ */
2228
+ function createData (version, errorCorrectionLevel, segments) {
2229
+ // Prepare data buffer
2230
+ const buffer = new bitBuffer();
2231
+
2232
+ segments.forEach(function (data) {
2233
+ // prefix data with mode indicator (4 bits)
2234
+ buffer.put(data.mode.bit, 4);
2235
+
2236
+ // Prefix data with character count indicator.
2237
+ // The character count indicator is a string of bits that represents the
2238
+ // number of characters that are being encoded.
2239
+ // The character count indicator must be placed after the mode indicator
2240
+ // and must be a certain number of bits long, depending on the QR version
2241
+ // and data mode
2242
+ // @see {@link Mode.getCharCountIndicator}.
2243
+ buffer.put(data.getLength(), mode.getCharCountIndicator(data.mode, version));
2244
+
2245
+ // add binary data sequence to buffer
2246
+ data.write(buffer);
2247
+ });
2248
+
2249
+ // Calculate required number of bits
2250
+ const totalCodewords = utils$1.getSymbolTotalCodewords(version);
2251
+ const ecTotalCodewords = errorCorrectionCode.getTotalCodewordsCount(version, errorCorrectionLevel);
2252
+ const dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8;
2253
+
2254
+ // Add a terminator.
2255
+ // If the bit string is shorter than the total number of required bits,
2256
+ // a terminator of up to four 0s must be added to the right side of the string.
2257
+ // If the bit string is more than four bits shorter than the required number of bits,
2258
+ // add four 0s to the end.
2259
+ if (buffer.getLengthInBits() + 4 <= dataTotalCodewordsBits) {
2260
+ buffer.put(0, 4);
2261
+ }
2262
+
2263
+ // If the bit string is fewer than four bits shorter, add only the number of 0s that
2264
+ // are needed to reach the required number of bits.
2265
+
2266
+ // After adding the terminator, if the number of bits in the string is not a multiple of 8,
2267
+ // pad the string on the right with 0s to make the string's length a multiple of 8.
2268
+ while (buffer.getLengthInBits() % 8 !== 0) {
2269
+ buffer.putBit(0);
2270
+ }
2271
+
2272
+ // Add pad bytes if the string is still shorter than the total number of required bits.
2273
+ // Extend the buffer to fill the data capacity of the symbol corresponding to
2274
+ // the Version and Error Correction Level by adding the Pad Codewords 11101100 (0xEC)
2275
+ // and 00010001 (0x11) alternately.
2276
+ const remainingByte = (dataTotalCodewordsBits - buffer.getLengthInBits()) / 8;
2277
+ for (let i = 0; i < remainingByte; i++) {
2278
+ buffer.put(i % 2 ? 0x11 : 0xEC, 8);
2279
+ }
2280
+
2281
+ return createCodewords(buffer, version, errorCorrectionLevel)
2282
+ }
2283
+
2284
+ /**
2285
+ * Encode input data with Reed-Solomon and return codewords with
2286
+ * relative error correction bits
2287
+ *
2288
+ * @param {BitBuffer} bitBuffer Data to encode
2289
+ * @param {Number} version QR Code version
2290
+ * @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level
2291
+ * @return {Uint8Array} Buffer containing encoded codewords
2292
+ */
2293
+ function createCodewords (bitBuffer, version, errorCorrectionLevel) {
2294
+ // Total codewords for this QR code version (Data + Error correction)
2295
+ const totalCodewords = utils$1.getSymbolTotalCodewords(version);
2296
+
2297
+ // Total number of error correction codewords
2298
+ const ecTotalCodewords = errorCorrectionCode.getTotalCodewordsCount(version, errorCorrectionLevel);
2299
+
2300
+ // Total number of data codewords
2301
+ const dataTotalCodewords = totalCodewords - ecTotalCodewords;
2302
+
2303
+ // Total number of blocks
2304
+ const ecTotalBlocks = errorCorrectionCode.getBlocksCount(version, errorCorrectionLevel);
2305
+
2306
+ // Calculate how many blocks each group should contain
2307
+ const blocksInGroup2 = totalCodewords % ecTotalBlocks;
2308
+ const blocksInGroup1 = ecTotalBlocks - blocksInGroup2;
2309
+
2310
+ const totalCodewordsInGroup1 = Math.floor(totalCodewords / ecTotalBlocks);
2311
+
2312
+ const dataCodewordsInGroup1 = Math.floor(dataTotalCodewords / ecTotalBlocks);
2313
+ const dataCodewordsInGroup2 = dataCodewordsInGroup1 + 1;
2314
+
2315
+ // Number of EC codewords is the same for both groups
2316
+ const ecCount = totalCodewordsInGroup1 - dataCodewordsInGroup1;
2317
+
2318
+ // Initialize a Reed-Solomon encoder with a generator polynomial of degree ecCount
2319
+ const rs = new reedSolomonEncoder(ecCount);
2320
+
2321
+ let offset = 0;
2322
+ const dcData = new Array(ecTotalBlocks);
2323
+ const ecData = new Array(ecTotalBlocks);
2324
+ let maxDataSize = 0;
2325
+ const buffer = new Uint8Array(bitBuffer.buffer);
2326
+
2327
+ // Divide the buffer into the required number of blocks
2328
+ for (let b = 0; b < ecTotalBlocks; b++) {
2329
+ const dataSize = b < blocksInGroup1 ? dataCodewordsInGroup1 : dataCodewordsInGroup2;
2330
+
2331
+ // extract a block of data from buffer
2332
+ dcData[b] = buffer.slice(offset, offset + dataSize);
2333
+
2334
+ // Calculate EC codewords for this data block
2335
+ ecData[b] = rs.encode(dcData[b]);
2336
+
2337
+ offset += dataSize;
2338
+ maxDataSize = Math.max(maxDataSize, dataSize);
2339
+ }
2340
+
2341
+ // Create final data
2342
+ // Interleave the data and error correction codewords from each block
2343
+ const data = new Uint8Array(totalCodewords);
2344
+ let index = 0;
2345
+ let i, r;
2346
+
2347
+ // Add data codewords
2348
+ for (i = 0; i < maxDataSize; i++) {
2349
+ for (r = 0; r < ecTotalBlocks; r++) {
2350
+ if (i < dcData[r].length) {
2351
+ data[index++] = dcData[r][i];
2352
+ }
2353
+ }
2354
+ }
2355
+
2356
+ // Apped EC codewords
2357
+ for (i = 0; i < ecCount; i++) {
2358
+ for (r = 0; r < ecTotalBlocks; r++) {
2359
+ data[index++] = ecData[r][i];
2360
+ }
2361
+ }
2362
+
2363
+ return data
2364
+ }
2365
+
2366
+ /**
2367
+ * Build QR Code symbol
2368
+ *
2369
+ * @param {String} data Input string
2370
+ * @param {Number} version QR Code version
2371
+ * @param {ErrorCorretionLevel} errorCorrectionLevel Error level
2372
+ * @param {MaskPattern} maskPattern Mask pattern
2373
+ * @return {Object} Object containing symbol data
2374
+ */
2375
+ function createSymbol (data, version$1, errorCorrectionLevel, maskPattern$1) {
2376
+ let segments$1;
2377
+
2378
+ if (Array.isArray(data)) {
2379
+ segments$1 = segments.fromArray(data);
2380
+ } else if (typeof data === 'string') {
2381
+ let estimatedVersion = version$1;
2382
+
2383
+ if (!estimatedVersion) {
2384
+ const rawSegments = segments.rawSplit(data);
2385
+
2386
+ // Estimate best version that can contain raw splitted segments
2387
+ estimatedVersion = version.getBestVersionForData(rawSegments, errorCorrectionLevel);
2388
+ }
2389
+
2390
+ // Build optimized segments
2391
+ // If estimated version is undefined, try with the highest version
2392
+ segments$1 = segments.fromString(data, estimatedVersion || 40);
2393
+ } else {
2394
+ throw new Error('Invalid data')
2395
+ }
2396
+
2397
+ // Get the min version that can contain data
2398
+ const bestVersion = version.getBestVersionForData(segments$1, errorCorrectionLevel);
2399
+
2400
+ // If no version is found, data cannot be stored
2401
+ if (!bestVersion) {
2402
+ throw new Error('The amount of data is too big to be stored in a QR Code')
2403
+ }
2404
+
2405
+ // If not specified, use min version as default
2406
+ if (!version$1) {
2407
+ version$1 = bestVersion;
2408
+
2409
+ // Check if the specified version can contain the data
2410
+ } else if (version$1 < bestVersion) {
2411
+ throw new Error('\n' +
2412
+ 'The chosen QR Code version cannot contain this amount of data.\n' +
2413
+ 'Minimum version required to store current data is: ' + bestVersion + '.\n'
2414
+ )
2415
+ }
2416
+
2417
+ const dataBits = createData(version$1, errorCorrectionLevel, segments$1);
2418
+
2419
+ // Allocate matrix buffer
2420
+ const moduleCount = utils$1.getSymbolSize(version$1);
2421
+ const modules = new bitMatrix(moduleCount);
2422
+
2423
+ // Add function modules
2424
+ setupFinderPattern(modules, version$1);
2425
+ setupTimingPattern(modules);
2426
+ setupAlignmentPattern(modules, version$1);
2427
+
2428
+ // Add temporary dummy bits for format info just to set them as reserved.
2429
+ // This is needed to prevent these bits from being masked by {@link MaskPattern.applyMask}
2430
+ // since the masking operation must be performed only on the encoding region.
2431
+ // These blocks will be replaced with correct values later in code.
2432
+ setupFormatInfo(modules, errorCorrectionLevel, 0);
2433
+
2434
+ if (version$1 >= 7) {
2435
+ setupVersionInfo(modules, version$1);
2436
+ }
2437
+
2438
+ // Add data codewords
2439
+ setupData(modules, dataBits);
2440
+
2441
+ if (isNaN(maskPattern$1)) {
2442
+ // Find best mask pattern
2443
+ maskPattern$1 = maskPattern.getBestMask(modules,
2444
+ setupFormatInfo.bind(null, modules, errorCorrectionLevel));
2445
+ }
2446
+
2447
+ // Apply mask pattern
2448
+ maskPattern.applyMask(maskPattern$1, modules);
2449
+
2450
+ // Replace format info bits with correct values
2451
+ setupFormatInfo(modules, errorCorrectionLevel, maskPattern$1);
2452
+
2453
+ return {
2454
+ modules: modules,
2455
+ version: version$1,
2456
+ errorCorrectionLevel: errorCorrectionLevel,
2457
+ maskPattern: maskPattern$1,
2458
+ segments: segments$1
2459
+ }
2460
+ }
2461
+
2462
+ /**
2463
+ * QR Code
2464
+ *
2465
+ * @param {String | Array} data Input data
2466
+ * @param {Object} options Optional configurations
2467
+ * @param {Number} options.version QR Code version
2468
+ * @param {String} options.errorCorrectionLevel Error correction level
2469
+ * @param {Function} options.toSJISFunc Helper func to convert utf8 to sjis
2470
+ */
2471
+ var create = function create (data, options) {
2472
+ if (typeof data === 'undefined' || data === '') {
2473
+ throw new Error('No input text')
2474
+ }
2475
+
2476
+ let errorCorrectionLevel$1 = errorCorrectionLevel.M;
2477
+ let version$1;
2478
+ let mask;
2479
+
2480
+ if (typeof options !== 'undefined') {
2481
+ // Use higher error correction level as default
2482
+ errorCorrectionLevel$1 = errorCorrectionLevel.from(options.errorCorrectionLevel, errorCorrectionLevel.M);
2483
+ version$1 = version.from(options.version);
2484
+ mask = maskPattern.from(options.maskPattern);
2485
+
2486
+ if (options.toSJISFunc) {
2487
+ utils$1.setToSJISFunction(options.toSJISFunc);
2488
+ }
2489
+ }
2490
+
2491
+ return createSymbol(data, version$1, errorCorrectionLevel$1, mask)
2492
+ };
2493
+
2494
+ var qrcode = {
2495
+ create: create
2496
+ };
2497
+
2498
+ var utils = createCommonjsModule(function (module, exports) {
2499
+ function hex2rgba (hex) {
2500
+ if (typeof hex === 'number') {
2501
+ hex = hex.toString();
2502
+ }
2503
+
2504
+ if (typeof hex !== 'string') {
2505
+ throw new Error('Color should be defined as hex string')
2506
+ }
2507
+
2508
+ let hexCode = hex.slice().replace('#', '').split('');
2509
+ if (hexCode.length < 3 || hexCode.length === 5 || hexCode.length > 8) {
2510
+ throw new Error('Invalid hex color: ' + hex)
2511
+ }
2512
+
2513
+ // Convert from short to long form (fff -> ffffff)
2514
+ if (hexCode.length === 3 || hexCode.length === 4) {
2515
+ hexCode = Array.prototype.concat.apply([], hexCode.map(function (c) {
2516
+ return [c, c]
2517
+ }));
2518
+ }
2519
+
2520
+ // Add default alpha value
2521
+ if (hexCode.length === 6) hexCode.push('F', 'F');
2522
+
2523
+ const hexValue = parseInt(hexCode.join(''), 16);
2524
+
2525
+ return {
2526
+ r: (hexValue >> 24) & 255,
2527
+ g: (hexValue >> 16) & 255,
2528
+ b: (hexValue >> 8) & 255,
2529
+ a: hexValue & 255,
2530
+ hex: '#' + hexCode.slice(0, 6).join('')
2531
+ }
2532
+ }
2533
+
2534
+ exports.getOptions = function getOptions (options) {
2535
+ if (!options) options = {};
2536
+ if (!options.color) options.color = {};
2537
+
2538
+ const margin = typeof options.margin === 'undefined' ||
2539
+ options.margin === null ||
2540
+ options.margin < 0
2541
+ ? 4
2542
+ : options.margin;
2543
+
2544
+ const width = options.width && options.width >= 21 ? options.width : undefined;
2545
+ const scale = options.scale || 4;
2546
+
2547
+ return {
2548
+ width: width,
2549
+ scale: width ? 4 : scale,
2550
+ margin: margin,
2551
+ color: {
2552
+ dark: hex2rgba(options.color.dark || '#000000ff'),
2553
+ light: hex2rgba(options.color.light || '#ffffffff')
2554
+ },
2555
+ type: options.type,
2556
+ rendererOpts: options.rendererOpts || {}
2557
+ }
2558
+ };
2559
+
2560
+ exports.getScale = function getScale (qrSize, opts) {
2561
+ return opts.width && opts.width >= qrSize + opts.margin * 2
2562
+ ? opts.width / (qrSize + opts.margin * 2)
2563
+ : opts.scale
2564
+ };
2565
+
2566
+ exports.getImageWidth = function getImageWidth (qrSize, opts) {
2567
+ const scale = exports.getScale(qrSize, opts);
2568
+ return Math.floor((qrSize + opts.margin * 2) * scale)
2569
+ };
2570
+
2571
+ exports.qrToImageData = function qrToImageData (imgData, qr, opts) {
2572
+ const size = qr.modules.size;
2573
+ const data = qr.modules.data;
2574
+ const scale = exports.getScale(size, opts);
2575
+ const symbolSize = Math.floor((size + opts.margin * 2) * scale);
2576
+ const scaledMargin = opts.margin * scale;
2577
+ const palette = [opts.color.light, opts.color.dark];
2578
+
2579
+ for (let i = 0; i < symbolSize; i++) {
2580
+ for (let j = 0; j < symbolSize; j++) {
2581
+ let posDst = (i * symbolSize + j) * 4;
2582
+ let pxColor = opts.color.light;
2583
+
2584
+ if (i >= scaledMargin && j >= scaledMargin &&
2585
+ i < symbolSize - scaledMargin && j < symbolSize - scaledMargin) {
2586
+ const iSrc = Math.floor((i - scaledMargin) / scale);
2587
+ const jSrc = Math.floor((j - scaledMargin) / scale);
2588
+ pxColor = palette[data[iSrc * size + jSrc] ? 1 : 0];
2589
+ }
2590
+
2591
+ imgData[posDst++] = pxColor.r;
2592
+ imgData[posDst++] = pxColor.g;
2593
+ imgData[posDst++] = pxColor.b;
2594
+ imgData[posDst] = pxColor.a;
2595
+ }
2596
+ }
2597
+ };
2598
+ });
2599
+
2600
+ var canvas = createCommonjsModule(function (module, exports) {
2601
+ function clearCanvas (ctx, canvas, size) {
2602
+ ctx.clearRect(0, 0, canvas.width, canvas.height);
2603
+
2604
+ if (!canvas.style) canvas.style = {};
2605
+ canvas.height = size;
2606
+ canvas.width = size;
2607
+ canvas.style.height = size + 'px';
2608
+ canvas.style.width = size + 'px';
2609
+ }
2610
+
2611
+ function getCanvasElement () {
2612
+ try {
2613
+ return document.createElement('canvas')
2614
+ } catch (e) {
2615
+ throw new Error('You need to specify a canvas element')
2616
+ }
2617
+ }
2618
+
2619
+ exports.render = function render (qrData, canvas, options) {
2620
+ let opts = options;
2621
+ let canvasEl = canvas;
2622
+
2623
+ if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) {
2624
+ opts = canvas;
2625
+ canvas = undefined;
2626
+ }
2627
+
2628
+ if (!canvas) {
2629
+ canvasEl = getCanvasElement();
2630
+ }
2631
+
2632
+ opts = utils.getOptions(opts);
2633
+ const size = utils.getImageWidth(qrData.modules.size, opts);
2634
+
2635
+ const ctx = canvasEl.getContext('2d');
2636
+ const image = ctx.createImageData(size, size);
2637
+ utils.qrToImageData(image.data, qrData, opts);
2638
+
2639
+ clearCanvas(ctx, canvasEl, size);
2640
+ ctx.putImageData(image, 0, 0);
2641
+
2642
+ return canvasEl
2643
+ };
2644
+
2645
+ exports.renderToDataURL = function renderToDataURL (qrData, canvas, options) {
2646
+ let opts = options;
2647
+
2648
+ if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) {
2649
+ opts = canvas;
2650
+ canvas = undefined;
2651
+ }
2652
+
2653
+ if (!opts) opts = {};
2654
+
2655
+ const canvasEl = exports.render(qrData, canvas, opts);
2656
+
2657
+ const type = opts.type || 'image/png';
2658
+ const rendererOpts = opts.rendererOpts || {};
2659
+
2660
+ return canvasEl.toDataURL(type, rendererOpts.quality)
2661
+ };
2662
+ });
2663
+
2664
+ function getColorAttrib (color, attrib) {
2665
+ const alpha = color.a / 255;
2666
+ const str = attrib + '="' + color.hex + '"';
2667
+
2668
+ return alpha < 1
2669
+ ? str + ' ' + attrib + '-opacity="' + alpha.toFixed(2).slice(1) + '"'
2670
+ : str
2671
+ }
2672
+
2673
+ function svgCmd (cmd, x, y) {
2674
+ let str = cmd + x;
2675
+ if (typeof y !== 'undefined') str += ' ' + y;
2676
+
2677
+ return str
2678
+ }
2679
+
2680
+ function qrToPath (data, size, margin) {
2681
+ let path = '';
2682
+ let moveBy = 0;
2683
+ let newRow = false;
2684
+ let lineLength = 0;
2685
+
2686
+ for (let i = 0; i < data.length; i++) {
2687
+ const col = Math.floor(i % size);
2688
+ const row = Math.floor(i / size);
2689
+
2690
+ if (!col && !newRow) newRow = true;
2691
+
2692
+ if (data[i]) {
2693
+ lineLength++;
2694
+
2695
+ if (!(i > 0 && col > 0 && data[i - 1])) {
2696
+ path += newRow
2697
+ ? svgCmd('M', col + margin, 0.5 + row + margin)
2698
+ : svgCmd('m', moveBy, 0);
2699
+
2700
+ moveBy = 0;
2701
+ newRow = false;
2702
+ }
2703
+
2704
+ if (!(col + 1 < size && data[i + 1])) {
2705
+ path += svgCmd('h', lineLength);
2706
+ lineLength = 0;
2707
+ }
2708
+ } else {
2709
+ moveBy++;
2710
+ }
2711
+ }
2712
+
2713
+ return path
2714
+ }
2715
+
2716
+ var render = function render (qrData, options, cb) {
2717
+ const opts = utils.getOptions(options);
2718
+ const size = qrData.modules.size;
2719
+ const data = qrData.modules.data;
2720
+ const qrcodesize = size + opts.margin * 2;
2721
+
2722
+ const bg = !opts.color.light.a
2723
+ ? ''
2724
+ : '<path ' + getColorAttrib(opts.color.light, 'fill') +
2725
+ ' d="M0 0h' + qrcodesize + 'v' + qrcodesize + 'H0z"/>';
2726
+
2727
+ const path =
2728
+ '<path ' + getColorAttrib(opts.color.dark, 'stroke') +
2729
+ ' d="' + qrToPath(data, size, opts.margin) + '"/>';
2730
+
2731
+ const viewBox = 'viewBox="' + '0 0 ' + qrcodesize + ' ' + qrcodesize + '"';
2732
+
2733
+ const width = !opts.width ? '' : 'width="' + opts.width + '" height="' + opts.width + '" ';
2734
+
2735
+ const svgTag = '<svg xmlns="http://www.w3.org/2000/svg" ' + width + viewBox + ' shape-rendering="crispEdges">' + bg + path + '</svg>\n';
2736
+
2737
+ if (typeof cb === 'function') {
2738
+ cb(null, svgTag);
2739
+ }
2740
+
2741
+ return svgTag
2742
+ };
2743
+
2744
+ var svgTag = {
2745
+ render: render
2746
+ };
2747
+
2748
+ function renderCanvas (renderFunc, canvas, text, opts, cb) {
2749
+ const args = [].slice.call(arguments, 1);
2750
+ const argsNum = args.length;
2751
+ const isLastArgCb = typeof args[argsNum - 1] === 'function';
2752
+
2753
+ if (!isLastArgCb && !canPromise()) {
2754
+ throw new Error('Callback required as last argument')
2755
+ }
2756
+
2757
+ if (isLastArgCb) {
2758
+ if (argsNum < 2) {
2759
+ throw new Error('Too few arguments provided')
2760
+ }
2761
+
2762
+ if (argsNum === 2) {
2763
+ cb = text;
2764
+ text = canvas;
2765
+ canvas = opts = undefined;
2766
+ } else if (argsNum === 3) {
2767
+ if (canvas.getContext && typeof cb === 'undefined') {
2768
+ cb = opts;
2769
+ opts = undefined;
2770
+ } else {
2771
+ cb = opts;
2772
+ opts = text;
2773
+ text = canvas;
2774
+ canvas = undefined;
2775
+ }
2776
+ }
2777
+ } else {
2778
+ if (argsNum < 1) {
2779
+ throw new Error('Too few arguments provided')
2780
+ }
2781
+
2782
+ if (argsNum === 1) {
2783
+ text = canvas;
2784
+ canvas = opts = undefined;
2785
+ } else if (argsNum === 2 && !canvas.getContext) {
2786
+ opts = text;
2787
+ text = canvas;
2788
+ canvas = undefined;
2789
+ }
2790
+
2791
+ return new Promise(function (resolve, reject) {
2792
+ try {
2793
+ const data = qrcode.create(text, opts);
2794
+ resolve(renderFunc(data, canvas, opts));
2795
+ } catch (e) {
2796
+ reject(e);
2797
+ }
2798
+ })
2799
+ }
2800
+
2801
+ try {
2802
+ const data = qrcode.create(text, opts);
2803
+ cb(null, renderFunc(data, canvas, opts));
2804
+ } catch (e) {
2805
+ cb(e);
2806
+ }
2807
+ }
2808
+ renderCanvas.bind(null, canvas.render);
2809
+ var toDataURL = renderCanvas.bind(null, canvas.renderToDataURL);
2810
+
2811
+ // only svg for now.
2812
+ renderCanvas.bind(null, function (data, _, opts) {
2813
+ return svgTag.render(data, opts)
2814
+ });
2815
+
2816
+ const amwalPosCss = ":root{--tabby-green:#3FD28B;--text-primary:#000000;--text-secondary:#8E8E93;--text-disabled:#999999;--bg-primary:#FFFFFF;--bg-secondary:#F2F2F7;--bg-disabled:#E5E5EA;--bg-notes:#FFF4E6;--text-notes:#8B6914;--button-active:#2C2C2C;--border-color:#E5E5EA}.amwal-pos{font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background-color:var(--bg-primary);width:100%;max-width:375px;min-height:46vh;margin:0 auto;display:flex;flex-direction:column;position:relative}.pos-screen{flex:1;display:flex;flex-direction:column;padding:0}.pos-screen.qr-screen{padding:20px 20px 20px 20px}.pos-logo{padding:20px 20px 20px 20px;display:flex;justify-content:flex-start}.pos-logo.rtl{justify-content:flex-end}.pos-logo.ltr{justify-content:flex-start}.pos-content{flex:1;display:flex;flex-direction:column;padding:0 20px}.pos-title{font-size:18px;font-weight:600;color:var(--text-primary);text-align:left;margin:0 0 20px 0;line-height:1.2}.pos-amount-container{margin-bottom:20px}.pos-amount-input{background-color:var(--bg-primary);border:1px solid var(--border-color);border-radius:8px;padding:16px 16px;min-height:20px;display:flex;align-items:center;font-size:16px;font-weight:400;color:var(--text-primary)}.amount-text{width:100%}.amount-placeholder{width:100%;color:var(--text-secondary)}.cursor{color:var(--text-primary);animation:blink 1s infinite}@keyframes blink{0%,50%{opacity:1}51%,100%{opacity:0}}.pos-continue{width:100%;height:48px;border:none;border-radius:24px;font-size:16px;font-weight:600;margin-bottom:20px;cursor:pointer;transition:all 0.2s ease;background-color:var(--bg-disabled);color:var(--text-disabled)}.pos-continue.active{background-color:var(--button-active);color:white}.pos-continue:disabled{cursor:not-allowed}.pos-keypad{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}.pos-keypad-row{display:flex;gap:12px}.pos-key{flex:1;height:50px;border:none;border-radius:8px;background-color:var(--bg-secondary);color:var(--text-primary);font-size:18px;font-weight:400;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center}.pos-key:active{background-color:var(--bg-disabled);transform:scale(0.95)}.pos-key.done{font-size:12px;font-weight:600;letter-spacing:1px}.pos-key.backspace svg{stroke:var(--text-primary);width:18px;height:14px}.pos-notes{background-color:var(--bg-notes);padding:16px 20px 20px 20px;margin-top:auto}.notes-content{text-align:center;font-size:12px;color:var(--text-notes);line-height:1.4}.qr-container{flex:1;display:flex;align-items:center;justify-content:center;margin:20px 0}.qr-code{background-color:white;padding:16px;border-radius:12px;box-shadow:0 2px 8px rgba(0, 0, 0, 0.1)}.qr-pattern{display:block}.qr-actions{display:flex;gap:12px;margin-top:auto;padding-bottom:20px}.pos-button{flex:1;height:48px;border:none;border-radius:24px;font-size:16px;font-weight:600;cursor:pointer;transition:all 0.2s ease}.pos-button.cancel{background-color:white;color:var(--text-primary);border:1px solid var(--border-color)}.pos-button.cancel:active{background-color:var(--bg-secondary)}.pos-button.check-status{background-color:var(--button-active);color:white}.pos-button.check-status:active{background-color:#1a1a1a}.processing-container{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;padding:40px 0}.processing-spinner{display:flex;align-items:center;justify-content:center;position:relative}.processing-spinner::before{content:'';position:absolute;width:72px;height:72px;border:2px solid var(--tabby-green);border-radius:50%;opacity:0.3;animation:pulse 2s infinite}@keyframes pulse{0%{transform:scale(0.8);opacity:0.3}50%{transform:scale(1.2);opacity:0.1}100%{transform:scale(0.8);opacity:0.3}}.spinner{width:48px;height:48px;border:4px solid var(--bg-disabled);border-top:4px solid var(--tabby-green);border-radius:50%;animation:spin 1s linear infinite;z-index:1;position:relative}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.processing-info{text-align:center;display:flex;flex-direction:column;gap:8px}.processing-amount{font-size:24px;font-weight:600;color:var(--text-primary)}.processing-message{font-size:14px;color:var(--text-secondary);max-width:280px;line-height:1.4;animation:fadeInUp 0.5s ease-out 0.3s both}@keyframes fadeInUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.success-container{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;padding:40px 0}.success-icon{display:flex;align-items:center;justify-content:center;animation:successBounce 0.6s ease-out}@keyframes successBounce{0%{transform:scale(0.3);opacity:0}50%{transform:scale(1.05)}70%{transform:scale(0.9)}100%{transform:scale(1);opacity:1}}.success-info{text-align:center;display:flex;flex-direction:column;gap:8px}.success-amount{font-size:24px;font-weight:600;color:var(--text-primary)}.success-message{font-size:16px;color:var(--text-secondary);margin-bottom:8px}.error-container{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;padding:40px 0}.error-icon{display:flex;align-items:center;justify-content:center;animation:errorBounce 0.6s ease-out}@keyframes errorBounce{0%{transform:scale(0.3);opacity:0}50%{transform:scale(1.05)}70%{transform:scale(0.9)}100%{transform:scale(1);opacity:1}}.error-info{text-align:center;display:flex;flex-direction:column;gap:8px}.error-amount{font-size:24px;font-weight:600;color:var(--text-primary)}.error-message{font-size:16px;color:var(--text-secondary);margin-bottom:8px;max-width:280px;line-height:1.4;animation:fadeInUp 0.5s ease-out 0.3s both}.transaction-id{font-size:12px;color:var(--text-secondary);background-color:var(--bg-secondary);padding:8px 12px;border-radius:6px;font-family:'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;border:1px solid var(--border-color);animation:slideIn 0.4s ease-out 0.2s both}@keyframes slideIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.success-container+.pos-continue{margin-top:0;transform:translateY(0);animation:slideInButton 0.5s ease-out 0.4s both}@keyframes slideInButton{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}[dir=\"rtl\"] .amwal-pos{direction:rtl}[dir=\"rtl\"] .pos-amount-input{text-align:right}[dir=\"rtl\"] .notes-content{text-align:center}.amwal-pos[dir=\"rtl\"] .pos-logo{justify-content:start}.amwal-pos[dir=\"rtl\"] .pos-title{text-align:right}.amwal-pos[dir=\"rtl\"] .amount-text{text-align:right}.amwal-pos[dir=\"rtl\"] .amount-placeholder{text-align:right;direction:rtl}.amwal-pos[dir=\"rtl\"] .processing-info{text-align:center}.amwal-pos[dir=\"rtl\"] .success-info{text-align:center}.amwal-pos[dir=\"rtl\"] .error-info{text-align:center}.amwal-pos[dir=\"rtl\"] .transaction-id{text-align:center;direction:rtl}.amwal-pos[dir=\"rtl\"] .processing-message{text-align:center}.amwal-pos[dir=\"rtl\"] .success-message{text-align:center}.amwal-pos[dir=\"rtl\"] .error-message{text-align:center}.amwal-pos[dir=\"rtl\"] .notes-content{text-align:center;direction:rtl}.amwal-pos[dir=\"rtl\"] .qr-actions{flex-direction:row-reverse}.amwal-pos[dir=\"rtl\"] .pos-key{font-family:'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif}@media (max-width: 375px){.pos-logo{padding:16px 16px 16px 16px}.pos-content{padding:0 16px}.pos-notes{padding:12px 16px 16px 16px}.pos-screen.qr-screen{padding:16px 16px 16px 16px}.qr-actions{padding-bottom:16px}.processing-container{padding:20px 0;gap:24px}.processing-amount,.success-amount{font-size:20px}.success-container{padding:20px 0;gap:24px}.success-icon svg{width:64px;height:64px}}@media (max-width: 320px){.pos-key{height:46px;font-size:16px}.pos-keypad{gap:10px}.pos-keypad-row{gap:10px}.qr-code{padding:12px}.qr-pattern{width:160px;height:160px}.processing-container{padding:16px 0;gap:20px}.success-container{padding:16px 0;gap:20px}.spinner{width:40px;height:40px;border-width:3px}.success-icon svg{width:56px;height:56px}.processing-amount,.success-amount{font-size:18px}.processing-message{font-size:13px}.success-message{font-size:14px}}@media (min-width: 768px){.amwal-pos{border-radius:16px;box-shadow:0 8px 32px rgba(0, 0, 0, 0.12);margin:20px auto;max-height:85vh;min-height:530px}.processing-container{gap:40px}.success-container{gap:40px}.success-icon svg{width:96px;height:96px}.processing-amount,.success-amount{font-size:28px}}";
2817
+
2818
+ const AmwalPos$1 = /*@__PURE__*/ proxyCustomElement(class AmwalPos extends H {
2819
+ constructor() {
2820
+ super();
2821
+ this.__registerHost();
2822
+ /**
2823
+ * Translation function to handle localization
2824
+ * @private
2825
+ */
2826
+ this.t = (val) => val; // Initialize with fallback
2827
+ /**
2828
+ * Handle number input
2829
+ */
2830
+ this.handleNumberInput = (digit) => {
2831
+ if (digit === '.' && this.amount.includes('.'))
2832
+ return;
2833
+ if (this.amount.includes('.') && this.amount.split('.')[1].length >= 2)
2834
+ return;
2835
+ this.amount = this.amount + digit;
2836
+ };
2837
+ /**
2838
+ * Handle backspace
2839
+ */
2840
+ this.handleBackspace = () => {
2841
+ this.amount = this.amount.slice(0, -1);
2842
+ };
2843
+ /**
2844
+ * Handle continue to QR code screen
2845
+ */
2846
+ this.handleContinue = async () => {
2847
+ const numAmount = parseFloat(this.amount);
2848
+ if (numAmount >= this.minAmount && numAmount <= this.maxAmount) {
2849
+ this.currentScreen = 'processing';
2850
+ await this.createTransaction();
2851
+ }
2852
+ };
2853
+ /**
2854
+ * Create transaction and generate QR code
2855
+ */
2856
+ this.createTransaction = async () => {
2857
+ const paymentLink = await this.createPaymentLink();
2858
+ if (paymentLink) {
2859
+ console.log(paymentLink);
2860
+ this.transactionId = paymentLink.payment_link_id || paymentLink.id;
2861
+ // Generate payment URL from payment_link_id
2862
+ const paymentLinkId = paymentLink.payment_link_id || paymentLink.id;
2863
+ this.paymentUrl = `https://pay.sa.amwal.tech/payment-link/${paymentLinkId}`;
2864
+ this.qrCodeData = paymentLink.qr_code || this.paymentUrl;
2865
+ // Generate QR code as data URL
2866
+ await this.generateQRCode(this.qrCodeData);
2867
+ this.currentScreen = 'qr-code';
2868
+ }
2869
+ // Error handling is done in createPaymentLink method
2870
+ };
2871
+ /**
2872
+ * Generate QR code using the qrcode library
2873
+ */
2874
+ this.generateQRCode = async (data) => {
2875
+ try {
2876
+ const qrDataURL = await toDataURL(data, {
2877
+ width: 200,
2878
+ margin: 2,
2879
+ color: {
2880
+ dark: '#000000',
2881
+ light: '#FFFFFF'
2882
+ },
2883
+ errorCorrectionLevel: 'M'
2884
+ });
2885
+ this.qrCodeDataURL = qrDataURL;
2886
+ if (this.debug) {
2887
+ console.log('[AmwalPos] QR code generated for:', data);
2888
+ }
2889
+ }
2890
+ catch (error) {
2891
+ console.error('[AmwalPos] Error generating QR code:', error);
2892
+ this.handleError('Failed to generate QR code');
2893
+ }
2894
+ };
2895
+ /**
2896
+ * Handle cancel action
2897
+ */
2898
+ this.handleCancel = () => {
2899
+ this.currentScreen = 'amount-entry';
2900
+ this.qrCodeData = '';
2901
+ this.transactionId = '';
2902
+ };
2903
+ /**
2904
+ * Handle check status with automatic retries
2905
+ */
2906
+ this.handleCheckStatus = async () => {
2907
+ if (!this.transactionId) {
2908
+ // No transaction ID - start monitoring process
2909
+ this.isChecking = true;
2910
+ this.checkAttempts = 0;
2911
+ this.currentScreen = 'processing';
2912
+ this.startPaymentMonitoring();
2913
+ return;
2914
+ }
2915
+ // Start checking process
2916
+ this.isChecking = true;
2917
+ this.checkAttempts = 0;
2918
+ this.currentScreen = 'processing';
2919
+ await this.performStatusCheck();
2920
+ };
2921
+ /**
2922
+ * Start payment monitoring with automatic retries
2923
+ */
2924
+ this.startPaymentMonitoring = async () => {
2925
+ const maxAttempts = 5; // Maximum number of attempts to check payment status
2926
+ const checkInterval = 10000; // Check every 10 seconds
2927
+ const checkLoop = async () => {
2928
+ var _a, _b, _c;
2929
+ if (!this.isChecking)
2930
+ return; // Stop if the user cancelled
2931
+ this.checkAttempts++;
2932
+ if (this.debug) {
2933
+ console.log(`[AmwalPos] Payment check attempt ${this.checkAttempts}/${maxAttempts}`);
2934
+ }
2935
+ if (this.transactionId) {
2936
+ const statusResponse = await this.checkPaymentStatus(this.transactionId);
2937
+ if (statusResponse) {
2938
+ // Check payment link status first
2939
+ const paymentLinkStatus = (_a = statusResponse.payment_link) === null || _a === void 0 ? void 0 : _a.status;
2940
+ // Check transaction status if available
2941
+ const transactionStatus = (_c = (_b = statusResponse.transactions) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.status;
2942
+ if (this.debug) {
2943
+ console.log('[AmwalPos] Payment link status:', paymentLinkStatus);
2944
+ console.log('[AmwalPos] Transaction status:', transactionStatus);
2945
+ }
2946
+ // Payment is successful if either payment link is "Paid" or transaction is "success"
2947
+ if (paymentLinkStatus === 'Paid' || transactionStatus === 'success') {
2948
+ this.isChecking = false;
2949
+ this.currentScreen = 'success';
2950
+ return;
2951
+ }
2952
+ // Payment failed
2953
+ else if (paymentLinkStatus === 'Failed' || paymentLinkStatus === 'Cancelled' ||
2954
+ transactionStatus === 'failed' || transactionStatus === 'error') {
2955
+ this.isChecking = false;
2956
+ this.handleError('Payment failed');
2957
+ return;
2958
+ }
2959
+ // For any other status like "Pending", "Processing", etc., continue checking
2960
+ }
2961
+ }
2962
+ // Continue checking if not successful and haven't reached max attempts
2963
+ if (this.checkAttempts < maxAttempts) {
2964
+ setTimeout(() => {
2965
+ if (this.isChecking) {
2966
+ checkLoop();
2967
+ }
2968
+ }, checkInterval);
2969
+ }
2970
+ else {
2971
+ // Max attempts reached, return to QR screen
2972
+ this.isChecking = false;
2973
+ this.currentScreen = 'qr-code';
2974
+ }
2975
+ };
2976
+ // Start the first check after a short delay
2977
+ setTimeout(checkLoop, 2000);
2978
+ };
2979
+ /**
2980
+ * Perform a single status check
2981
+ */
2982
+ this.performStatusCheck = async () => {
2983
+ var _a, _b, _c;
2984
+ const statusResponse = await this.checkPaymentStatus(this.transactionId);
2985
+ if (statusResponse) {
2986
+ // Check payment link status first
2987
+ const paymentLinkStatus = (_a = statusResponse.payment_link) === null || _a === void 0 ? void 0 : _a.status;
2988
+ // Check transaction status if available
2989
+ const transactionStatus = (_c = (_b = statusResponse.transactions) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.status;
2990
+ if (this.debug) {
2991
+ console.log('[AmwalPos] Payment link status:', paymentLinkStatus);
2992
+ console.log('[AmwalPos] Transaction status:', transactionStatus);
2993
+ }
2994
+ // Payment is successful if either payment link is "Paid" or transaction is "success"
2995
+ if (paymentLinkStatus === 'Paid' || transactionStatus === 'success') {
2996
+ this.isChecking = false;
2997
+ this.currentScreen = 'success';
2998
+ }
2999
+ // Payment failed
3000
+ else if (paymentLinkStatus === 'Failed' || paymentLinkStatus === 'Cancelled' ||
3001
+ transactionStatus === 'failed' || transactionStatus === 'error') {
3002
+ this.isChecking = false;
3003
+ this.handleError('Payment failed');
3004
+ }
3005
+ else {
3006
+ // Still unpaid/pending, start monitoring
3007
+ this.startPaymentMonitoring();
3008
+ }
3009
+ }
3010
+ else {
3011
+ // API call failed, start monitoring anyway
3012
+ this.startPaymentMonitoring();
3013
+ }
3014
+ };
3015
+ /**
3016
+ * Create payment link using Amwal API
3017
+ */
3018
+ this.createPaymentLink = async () => {
3019
+ if (!this.authToken || !this.storeId) {
3020
+ this.handleError('Missing API configuration');
3021
+ return null;
3022
+ }
3023
+ const amount = parseFloat(this.amount);
3024
+ if (isNaN(amount)) {
3025
+ this.handleError('Invalid amount');
3026
+ return null;
3027
+ }
3028
+ const payload = {
3029
+ amount: amount,
3030
+ title: this.paymentTitle || `POS Payment - ${this.formatAmountDisplay()}`,
3031
+ singleUse: true,
3032
+ description: this.paymentDescription || `Payment for ${this.formatAmountDisplay()}`,
3033
+ selectedDate: new Date(Date.now() + 24 * 60 * 60 * 1000).toISOString(),
3034
+ client_first_name: this.customerFirstName,
3035
+ client_last_name: this.customerLastName,
3036
+ client_email: this.customerEmail,
3037
+ client_phone_number: this.customerPhone,
3038
+ client_street1: this.customerStreet1,
3039
+ client_street2: this.customerStreet2,
3040
+ client_city: this.customerCity,
3041
+ client_state: this.customerState,
3042
+ client_country: this.customerCountry,
3043
+ client_postcode: this.customerPostcode,
3044
+ address_required: this.addressRequired || false,
3045
+ language: this.locale || 'en',
3046
+ sms_language: this.smsLanguage || (this.locale === 'ar' ? 'ar' : 'en'),
3047
+ send_sms: this.sendSms || !!this.customerPhone,
3048
+ passkey_enabled: this.passkeyEnabled || false,
3049
+ only_show_bank_installments: this.onlyShowBankInstallments || false,
3050
+ only_show_pay_in_full: this.onlyShowPayInFull || false,
3051
+ callback_url: this.callbackUrl,
3052
+ metadata: this.metadata ? JSON.parse(this.metadata) : {
3053
+ pos_transaction: true,
3054
+ timestamp: new Date().toISOString(),
3055
+ amount: amount,
3056
+ currency: this.currency
3057
+ }
3058
+ };
3059
+ try {
3060
+ if (this.debug) {
3061
+ console.log('[AmwalPos] Creating payment link with payload:', payload);
3062
+ }
3063
+ const response = await fetch(`${this.apiBaseUrl}/payment_links/${this.storeId}/create`, {
3064
+ method: 'POST',
3065
+ headers: {
3066
+ 'Authorization': this.authToken,
3067
+ 'Accept': 'application/json',
3068
+ 'Content-Type': 'application/json',
3069
+ 'Origin': window.location.origin
3070
+ },
3071
+ body: JSON.stringify(payload)
3072
+ });
3073
+ if (!response.ok) {
3074
+ const errorText = await response.text();
3075
+ throw new Error(`API Error: ${response.status} - ${errorText}`);
3076
+ }
3077
+ const data = await response.json();
3078
+ if (this.debug) {
3079
+ console.log('[AmwalPos] Payment link created:', data);
3080
+ }
3081
+ return data;
3082
+ }
3083
+ catch (error) {
3084
+ console.error('[AmwalPos] Error creating payment link:', error);
3085
+ this.handleError(error.message || 'Failed to create payment link');
3086
+ return null;
3087
+ }
3088
+ };
3089
+ /**
3090
+ * Check payment status
3091
+ */
3092
+ this.checkPaymentStatus = async (paymentId) => {
3093
+ if (!this.authToken) {
3094
+ this.handleError('Missing API configuration');
3095
+ return null;
3096
+ }
3097
+ try {
3098
+ if (this.debug) {
3099
+ console.log('[AmwalPos] Checking payment status for:', paymentId);
3100
+ }
3101
+ const response = await fetch(`${this.apiBaseUrl}/payment_links/${paymentId}/details`, {
3102
+ method: 'POST',
3103
+ headers: {
3104
+ 'Authorization': this.authToken,
3105
+ 'Accept': 'application/json',
3106
+ 'Content-Type': 'application/json',
3107
+ 'Origin': window.location.origin
3108
+ },
3109
+ body: JSON.stringify({})
3110
+ });
3111
+ if (!response.ok) {
3112
+ throw new Error(`Status check failed: ${response.status}`);
3113
+ }
3114
+ const data = await response.json();
3115
+ if (this.debug) {
3116
+ console.log('[AmwalPos] Payment status response:', data);
3117
+ }
3118
+ return data;
3119
+ }
3120
+ catch (error) {
3121
+ console.error('[AmwalPos] Error checking payment status:', error);
3122
+ return null;
3123
+ }
3124
+ };
3125
+ /**
3126
+ * Handle error state
3127
+ */
3128
+ this.handleError = (message) => {
3129
+ this.errorMessage = message;
3130
+ this.currentScreen = 'error';
3131
+ if (this.debug) {
3132
+ console.error('[AmwalPos] Error:', message);
3133
+ }
3134
+ };
3135
+ /**
3136
+ * Check if amount is valid
3137
+ */
3138
+ this.isAmountValid = () => {
3139
+ const num = parseFloat(this.amount);
3140
+ return !isNaN(num) && num >= this.minAmount && num <= this.maxAmount;
3141
+ };
3142
+ /**
3143
+ * Format amount display
3144
+ */
3145
+ this.formatAmountDisplay = () => {
3146
+ if (!this.amount)
3147
+ return '';
3148
+ const num = parseFloat(this.amount);
3149
+ if (isNaN(num))
3150
+ return '';
3151
+ return `${this.currency} ${num.toFixed(2)}`;
3152
+ };
3153
+ /**
3154
+ * Get order ID from metadata
3155
+ */
3156
+ this.getOrderIdFromMetadata = () => {
3157
+ if (!this.metadata)
3158
+ return null;
3159
+ try {
3160
+ const parsedMetadata = JSON.parse(this.metadata);
3161
+ return parsedMetadata.order_id || null;
3162
+ }
3163
+ catch (error) {
3164
+ if (this.debug) {
3165
+ console.warn('[AmwalPos] Failed to parse metadata for order_id:', error);
3166
+ }
3167
+ return null;
3168
+ }
3169
+ };
3170
+ this.amount = '';
3171
+ this.currency = undefined;
3172
+ this.locale = 'en';
3173
+ this.debug = false;
3174
+ this.minAmount = 1;
3175
+ this.maxAmount = 999999;
3176
+ this.authToken = '';
3177
+ this.storeId = '';
3178
+ this.apiBaseUrl = 'https://backend.sa.amwal.tech';
3179
+ this.paymentTitle = undefined;
3180
+ this.paymentDescription = undefined;
3181
+ this.customerFirstName = undefined;
3182
+ this.customerLastName = undefined;
3183
+ this.customerEmail = undefined;
3184
+ this.customerPhone = undefined;
3185
+ this.customerStreet1 = undefined;
3186
+ this.customerStreet2 = undefined;
3187
+ this.customerCity = undefined;
3188
+ this.customerState = undefined;
3189
+ this.customerCountry = undefined;
3190
+ this.customerPostcode = undefined;
3191
+ this.addressRequired = false;
3192
+ this.smsLanguage = undefined;
3193
+ this.sendSms = false;
3194
+ this.passkeyEnabled = false;
3195
+ this.onlyShowBankInstallments = false;
3196
+ this.onlyShowPayInFull = false;
3197
+ this.callbackUrl = undefined;
3198
+ this.metadata = undefined;
3199
+ this.currentScreen = 'amount-entry';
3200
+ this.qrCodeData = '';
3201
+ this.qrCodeDataURL = '';
3202
+ this.transactionId = '';
3203
+ this.errorMessage = '';
3204
+ this.paymentUrl = '';
3205
+ this.isChecking = false;
3206
+ this.checkAttempts = 0;
3207
+ }
3208
+ /**
3209
+ * Lifecycle method that is called once when the component is first created
3210
+ */
3211
+ async componentWillLoad() {
3212
+ // Initialize the translation function when component loads
3213
+ try {
3214
+ this.t = await TranslationUtils.useTranslation(this.locale);
3215
+ }
3216
+ catch (e) {
3217
+ console.error('Failed to initialize translation:', e);
3218
+ // Keep the fallback function defined above
3219
+ }
3220
+ }
3221
+ /**
3222
+ * Lifecycle method to update translations when locale changes
3223
+ * @param newValue
3224
+ */
3225
+ async updateLocale(newValue) {
3226
+ this.locale = newValue;
3227
+ try {
3228
+ this.t = await TranslationUtils.useTranslation(this.locale);
3229
+ }
3230
+ catch (e) {
3231
+ console.error('Failed to update translation:', e);
3232
+ // Fallback to using the input string as-is
3233
+ this.t = (val) => val;
3234
+ }
3235
+ }
3236
+ /**
3237
+ * Render the tabby logo
3238
+ */
3239
+ renderLogo() {
3240
+ return (h("div", { class: `pos-logo ${this.locale === 'ar' ? 'rtl' : 'ltr'}` }, h("svg", { class: "amwal-logo", width: "72", height: "29", viewBox: "0 0 72 29", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("rect", { width: "72", height: "28.946", rx: "6", fill: "black" }), h("path", { d: "M24.1912 11.6545C25.5297 10.5672 27.8358 10.9347 28.8503 12.3232C28.8972 12.3845 28.9818 12.3896 29.0287 12.3334C29.0804 12.2722 29.1274 12.2109 29.179 12.1547C29.7191 11.5626 30.3861 11.241 31.1328 11.0981C31.9219 10.9449 32.7015 10.9909 33.453 11.3125C34.3641 11.7004 34.9794 12.4253 35.3598 13.3901C35.6369 14.0843 35.7684 14.8194 35.7731 15.5698C35.7825 17.1216 35.7778 18.6785 35.7872 20.2303C35.7872 20.3579 35.7543 20.3783 35.6463 20.3783C34.9512 20.3732 34.2561 20.3732 33.5657 20.3783C33.453 20.3783 33.4201 20.3528 33.4201 20.2252C33.4248 18.7551 33.4248 17.2849 33.4248 15.8148C33.4248 15.386 33.359 14.9725 33.1712 14.5897C32.5747 13.3748 31.0859 13.2522 30.3109 14.36C30.015 14.7836 29.8741 15.2686 29.8741 15.7944C29.8741 17.2747 29.8741 18.7551 29.8788 20.2354C29.8788 20.3528 29.8506 20.3783 29.7473 20.3783C29.0381 20.3732 28.3242 20.3732 27.615 20.3783C27.5211 20.3783 27.4976 20.3528 27.4976 20.2507C27.5023 18.7704 27.4976 17.29 27.5023 15.8097C27.5023 15.534 27.4788 15.2584 27.4178 14.9878C27.244 14.263 26.6804 13.7168 25.9994 13.6147C24.9521 13.4564 24.3227 14.314 24.1161 15.0644C24.0409 15.3298 24.0127 15.6004 24.0127 15.8811C24.0127 17.29 24.0127 18.704 24.0174 20.1129C24.0174 20.2609 23.9094 20.3783 23.7732 20.3783C23.1016 20.3732 22.43 20.3732 21.7536 20.3783C21.655 20.3783 21.6362 20.3477 21.6362 20.2507C21.6409 17.2798 21.6409 14.314 21.6362 11.3431C21.6362 11.2512 21.6503 11.2206 21.7443 11.2206C22.4675 11.2257 23.1908 11.2257 23.9141 11.2206C23.9892 11.2206 24.0174 11.2359 24.0127 11.3227C24.008 11.4044 24.008 11.4809 24.008 11.5626C24.008 11.6596 24.1161 11.7157 24.1912 11.6545Z", fill: "white" }), h("path", { d: "M43.8655 20.384C43.8233 20.4759 43.7012 20.4759 43.6589 20.384C43.3724 19.7357 43.0906 19.0976 42.8088 18.4595C42.527 17.8215 42.2452 17.1885 41.9634 16.5402C41.9211 16.4432 41.799 16.4432 41.7568 16.5402C41.1885 17.8266 40.6249 19.0976 40.0566 20.3942C40.0143 20.4861 39.8969 20.4912 39.8499 20.3993C38.3564 17.3314 36.8723 14.2839 35.374 11.216C35.4304 11.216 35.468 11.216 35.5055 11.216C36.2993 11.216 37.0977 11.216 37.8914 11.2109C37.9807 11.2109 38.0229 11.2467 38.0605 11.3283C38.6899 12.7117 39.3239 14.09 39.9579 15.4733C39.9767 15.509 39.9908 15.5448 40.019 15.606C40.1364 15.3406 40.2444 15.0905 40.3478 14.8454C40.4793 14.5494 40.6061 14.2482 40.7376 13.9521C40.7705 13.8807 40.7705 13.8245 40.7376 13.7479C40.39 12.9516 40.0425 12.1502 39.6996 11.3488C39.6855 11.313 39.6668 11.2773 39.6527 11.2365C39.6761 11.2007 39.709 11.216 39.7372 11.216C40.4323 11.216 41.1274 11.216 41.8225 11.2109C41.9024 11.2109 41.9399 11.2416 41.9728 11.3181C42.5881 12.7219 43.208 14.1257 43.828 15.5295C43.8327 15.5397 43.8421 15.5499 43.8609 15.5754C43.9595 15.3304 44.0581 15.1007 44.152 14.8659C44.6264 13.6867 45.1055 12.5075 45.5751 11.3283C45.6127 11.2365 45.655 11.2109 45.7442 11.2109C46.4393 11.216 47.1344 11.2109 47.8295 11.2109C46.5896 14.2788 45.2323 17.3212 43.8655 20.384Z", fill: "white" }), h("path", { d: "M59.6416 13.6148C59.6416 15.8149 59.6416 18.015 59.6463 20.2151C59.6463 20.3376 59.6275 20.3733 59.5054 20.3733C58.7962 20.3682 58.0824 20.3682 57.3732 20.3733C57.2839 20.3733 57.2651 20.3478 57.2651 20.2508C57.2698 15.8302 57.2698 11.4096 57.2651 6.99405C57.2651 6.88175 57.298 6.86133 57.3919 6.86133C58.0964 6.86643 58.8056 6.86643 59.5101 6.86133C59.6228 6.86133 59.6463 6.89196 59.6463 7.01447C59.6369 9.21457 59.6416 11.4147 59.6416 13.6148Z", fill: "white" }), h("path", { d: "M56.11 11.3788C56.11 11.3584 56.1053 11.3329 56.11 11.3125C56.1194 11.241 56.0959 11.2206 56.0255 11.2206C55.3304 11.2206 54.6306 11.2206 53.9355 11.2206C53.8228 11.2206 53.7335 11.3176 53.7335 11.4401C53.7335 11.486 53.7335 11.532 53.7335 11.5779C53.7335 11.68 53.6255 11.7362 53.5504 11.68C53.0478 11.2818 52.4842 11.0725 51.8737 11.0368C50.6244 10.9602 49.5676 11.4707 48.7316 12.4661C47.689 13.7117 47.3414 15.1869 47.6326 16.8306C47.9755 18.7397 49.3938 20.3579 51.2866 20.5621C51.9911 20.6387 52.6674 20.5161 53.292 20.1333C53.3813 20.0771 53.4611 20.0159 53.541 19.9444C53.6161 19.8781 53.7288 19.9342 53.7288 20.0414C53.7288 20.118 53.7288 20.1894 53.7241 20.266C53.7194 20.363 53.7429 20.3885 53.8322 20.3885C54.4991 20.3834 55.166 20.3834 55.8376 20.3885C55.9832 20.3885 56.1053 20.2609 56.1053 20.1027C56.1053 17.1828 56.11 14.2783 56.11 11.3788ZM53.6678 16.7438C53.3719 17.535 52.705 18.0149 51.9112 18.0098C50.6572 17.9893 49.8259 16.8663 49.9621 15.5544C50.0608 14.5743 50.6103 13.8903 51.4228 13.6606C52.5688 13.339 53.6772 14.166 53.8087 15.4472C53.8556 15.8964 53.8228 16.3303 53.6678 16.7438Z", fill: "white" }), h("path", { d: "M20.528 11.3792C20.528 11.3537 20.5233 11.3333 20.528 11.3129C20.5374 11.2414 20.5139 11.2206 20.4435 11.2206C19.7014 11.221 18.964 11.2261 18.222 11.221C18.1468 11.221 18.1421 11.2567 18.1421 11.318C18.1421 11.4048 18.1421 11.4864 18.1421 11.5783C18.1421 11.6804 18.0388 11.7366 17.959 11.6804C17.4564 11.2874 16.8928 11.0781 16.2823 11.0423C15.0846 10.9658 14.0561 11.4303 13.2388 12.3644C12.013 13.7478 11.6655 15.4221 12.1539 17.2649C12.6799 19.2506 14.3285 20.634 16.1883 20.5676C16.8365 20.5421 17.4376 20.3787 17.9543 19.9346C18.0294 19.8683 18.1421 19.9244 18.1421 20.0316C18.1421 20.1031 18.1421 20.1745 18.1374 20.246C18.1327 20.3481 18.1562 20.3885 18.2549 20.3885C18.964 20.3834 19.6685 20.3834 20.3777 20.3885C20.4951 20.3885 20.5327 20.3481 20.5327 20.2154C20.5233 17.27 20.528 14.3246 20.528 11.3792ZM18.0529 16.8208C17.7147 17.6069 17.123 17.9898 16.3809 18.0153C15.3148 18.0153 14.4834 17.1985 14.3801 16.0959C14.2862 15.1158 14.6619 14.2736 15.404 13.8499C16.5171 13.2067 17.9871 13.7988 18.222 15.4068C18.2877 15.8917 18.2455 16.3716 18.0529 16.8208Z", fill: "white" }))));
3241
+ }
3242
+ /**
3243
+ * Render keypad
3244
+ */
3245
+ renderKeypad() {
3246
+ const keys = [
3247
+ ['1', '2', '3'],
3248
+ ['4', '5', '6'],
3249
+ ['7', '8', '9'],
3250
+ ['backspace', '0', 'done']
3251
+ ];
3252
+ return (h("div", { class: "pos-keypad" }, keys.map(row => (h("div", { class: "pos-keypad-row" }, row.map(key => (h("button", { class: `pos-key ${key}`, onClick: () => {
3253
+ if (key === 'backspace') {
3254
+ this.handleBackspace();
3255
+ }
3256
+ else if (key === 'done') {
3257
+ this.handleContinue();
3258
+ }
3259
+ else {
3260
+ this.handleNumberInput(key);
3261
+ }
3262
+ } }, key === 'backspace' ? (h("svg", { width: "20", height: "16", viewBox: "0 0 20 16", fill: "none" }, h("path", { d: "M19 2L13 8L19 14M13 8L1 8", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))) : key === 'done' ? (this.t('DONE')) : key))))))));
3263
+ }
3264
+ /**
3265
+ * Render amount entry screen
3266
+ */
3267
+ renderAmountEntry() {
3268
+ return (h("div", { class: "pos-screen" }, this.renderLogo(), h("div", { class: "pos-content" }, h("h1", { class: "pos-title" }, this.t('Enter order amount')), h("div", { class: "pos-amount-container" }, h("div", { class: "pos-amount-input" }, this.amount ? (h("span", { class: "amount-text" }, this.formatAmountDisplay())) : (h("span", { class: "amount-placeholder" }, this.currency, " ", h("span", { class: "cursor" }, "|"))))), h("button", { class: `pos-continue ${this.isAmountValid() ? 'active' : ''}`, onClick: this.handleContinue, disabled: !this.isAmountValid() }, this.t('Continue')), this.renderKeypad())));
3269
+ }
3270
+ /**
3271
+ * Render QR code screen
3272
+ */
3273
+ renderQRCode() {
3274
+ return (h("div", { class: "pos-screen qr-screen" }, this.renderLogo(), h("div", { class: "pos-content" }, h("h1", { class: "pos-title" }, this.t('Ask customer to scan QR code')), h("div", { class: "qr-container" }, h("div", { class: "qr-code" }, this.qrCodeDataURL ? (h("img", { src: this.qrCodeDataURL, alt: "Payment QR Code", width: "200", height: "200", style: { border: '1px solid #eee', borderRadius: '8px' } })) : (
3275
+ // Fallback loading state
3276
+ h("div", { class: "qr-loading", style: {
3277
+ width: '200px',
3278
+ height: '200px',
3279
+ border: '1px solid #eee',
3280
+ borderRadius: '8px',
3281
+ display: 'flex',
3282
+ alignItems: 'center',
3283
+ justifyContent: 'center',
3284
+ background: '#f9f9f9'
3285
+ } }, h("span", null, this.t('Generating QR Code...')))))), h("div", { class: "qr-actions" }, h("button", { class: "pos-button cancel", onClick: this.handleCancel }, this.t('Cancel')), h("button", { class: "pos-button check-status", onClick: this.handleCheckStatus }, this.t('Check status'))))));
3286
+ }
3287
+ /**
3288
+ * Render processing screen
3289
+ */
3290
+ renderProcessing() {
3291
+ return (h("div", { class: "pos-screen" }, this.renderLogo(), h("div", { class: "pos-content" }, h("h1", { class: "pos-title" }, this.t('Processing payment...')), h("div", { class: "processing-container" }, h("div", { class: "processing-spinner" }, h("div", { class: "spinner" })), h("div", { class: "processing-info" }, h("div", { class: "processing-amount" }, this.formatAmountDisplay()), h("div", { class: "processing-message" }, this.t('Please wait while we process your payment')))))));
3292
+ }
3293
+ /**
3294
+ * Render success screen
3295
+ */
3296
+ renderSuccess() {
3297
+ return (h("div", { class: "pos-screen" }, this.renderLogo(), h("div", { class: "pos-content" }, h("h1", { class: "pos-title" }, this.t('Payment successful!')), h("div", { class: "success-container" }, h("div", { class: "success-icon" }, h("svg", { width: "80", height: "80", viewBox: "0 0 80 80", fill: "none" }, h("circle", { cx: "40", cy: "40", r: "40", fill: "#3FD28B" }), h("path", { d: "M25 40L35 50L55 30", stroke: "white", "stroke-width": "4", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("div", { class: "success-info" }, h("div", { class: "success-amount" }, this.formatAmountDisplay()), h("div", { class: "success-message" }, this.t('Payment completed successfully')), this.transactionId && (h("div", { class: "transaction-id" }, this.t('Transaction ID'), ": ", this.transactionId)), this.getOrderIdFromMetadata() && (h("div", { class: "order-id" }, this.t('Order ID'), ": ", this.getOrderIdFromMetadata())))), h("button", { class: "pos-continue active", onClick: () => {
3298
+ this.currentScreen = 'amount-entry';
3299
+ this.amount = '';
3300
+ this.qrCodeData = '';
3301
+ this.transactionId = '';
3302
+ } }, this.t('New Transaction')))));
3303
+ }
3304
+ /**
3305
+ * Render error screen
3306
+ */
3307
+ renderError() {
3308
+ return (h("div", { class: "pos-screen" }, this.renderLogo(), h("div", { class: "pos-content" }, h("h1", { class: "pos-title" }, this.t('Payment Error')), h("div", { class: "error-container" }, h("div", { class: "error-icon" }, h("svg", { width: "80", height: "80", viewBox: "0 0 80 80", fill: "none" }, h("circle", { cx: "40", cy: "40", r: "40", fill: "#FF4444" }), h("path", { d: "M30 30L50 50M50 30L30 50", stroke: "white", "stroke-width": "4", "stroke-linecap": "round" }))), h("div", { class: "error-info" }, h("div", { class: "error-message" }, this.errorMessage || this.t('Something went wrong')))), h("button", { class: "pos-continue active", onClick: () => {
3309
+ this.currentScreen = 'amount-entry';
3310
+ this.errorMessage = '';
3311
+ this.amount = '';
3312
+ this.qrCodeData = '';
3313
+ this.transactionId = '';
3314
+ this.paymentUrl = '';
3315
+ } }, this.t('Try Again')))));
3316
+ }
3317
+ /**
3318
+ * Render component
3319
+ */
3320
+ render() {
3321
+ if (this.debug) {
3322
+ console.log('[AmwalPos] Debug Mode Enabled');
3323
+ console.log('[AmwalPos] Current Screen:', this.currentScreen);
3324
+ console.log('[AmwalPos] Amount:', this.amount);
3325
+ console.log('[AmwalPos] Currency:', this.currency);
3326
+ console.log('[AmwalPos] Locale:', this.locale);
3327
+ console.log('[AmwalPos] Transaction ID:', this.transactionId);
3328
+ }
3329
+ return (h("div", { class: "amwal-pos", dir: this.locale === 'ar' ? 'rtl' : 'ltr' }, this.currentScreen === 'amount-entry' && this.renderAmountEntry(), this.currentScreen === 'qr-code' && this.renderQRCode(), this.currentScreen === 'processing' && this.renderProcessing(), this.currentScreen === 'success' && this.renderSuccess(), this.currentScreen === 'error' && this.renderError()));
3330
+ }
3331
+ static get watchers() { return {
3332
+ "locale": ["updateLocale"]
3333
+ }; }
3334
+ static get style() { return amwalPosCss; }
3335
+ }, [0, "amwal-pos", {
3336
+ "amount": [1025],
3337
+ "currency": [1],
3338
+ "locale": [1],
3339
+ "debug": [4],
3340
+ "minAmount": [2, "min-amount"],
3341
+ "maxAmount": [2, "max-amount"],
3342
+ "authToken": [1, "auth-token"],
3343
+ "storeId": [1, "store-id"],
3344
+ "apiBaseUrl": [1, "api-base-url"],
3345
+ "paymentTitle": [1, "payment-title"],
3346
+ "paymentDescription": [1, "payment-description"],
3347
+ "customerFirstName": [1, "customer-first-name"],
3348
+ "customerLastName": [1, "customer-last-name"],
3349
+ "customerEmail": [1, "customer-email"],
3350
+ "customerPhone": [1, "customer-phone"],
3351
+ "customerStreet1": [1, "customer-street-1"],
3352
+ "customerStreet2": [1, "customer-street-2"],
3353
+ "customerCity": [1, "customer-city"],
3354
+ "customerState": [1, "customer-state"],
3355
+ "customerCountry": [1, "customer-country"],
3356
+ "customerPostcode": [1, "customer-postcode"],
3357
+ "addressRequired": [4, "address-required"],
3358
+ "smsLanguage": [1, "sms-language"],
3359
+ "sendSms": [4, "send-sms"],
3360
+ "passkeyEnabled": [4, "passkey-enabled"],
3361
+ "onlyShowBankInstallments": [4, "only-show-bank-installments"],
3362
+ "onlyShowPayInFull": [4, "only-show-pay-in-full"],
3363
+ "callbackUrl": [1, "callback-url"],
3364
+ "metadata": [1],
3365
+ "currentScreen": [32],
3366
+ "qrCodeData": [32],
3367
+ "qrCodeDataURL": [32],
3368
+ "transactionId": [32],
3369
+ "errorMessage": [32],
3370
+ "paymentUrl": [32],
3371
+ "isChecking": [32],
3372
+ "checkAttempts": [32]
3373
+ }]);
3374
+ function defineCustomElement$1() {
3375
+ if (typeof customElements === "undefined") {
3376
+ return;
3377
+ }
3378
+ const components = ["amwal-pos"];
3379
+ components.forEach(tagName => { switch (tagName) {
3380
+ case "amwal-pos":
3381
+ if (!customElements.get(tagName)) {
3382
+ customElements.define(tagName, AmwalPos$1);
3383
+ }
3384
+ break;
3385
+ } });
3386
+ }
3387
+
3388
+ const AmwalPos = AmwalPos$1;
3389
+ const defineCustomElement = defineCustomElement$1;
3390
+
3391
+ export { AmwalPos, defineCustomElement };