@amwaljs/checkout-button 0.3.0 → 0.3.1

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 (2039) hide show
  1. package/dist/checkout/checkout.esm.js +1 -1
  2. package/dist/checkout/p-0161d109.entry.js +1 -0
  3. package/dist/checkout/p-0a8ef1ec.entry.js +1 -0
  4. package/dist/checkout/p-10a72fbe.entry.js +1 -0
  5. package/dist/checkout/p-11205aeb.entry.js +1 -0
  6. package/dist/checkout/p-12ed4081.entry.js +1 -0
  7. package/dist/checkout/p-13c36adc.entry.js +1 -0
  8. package/dist/checkout/p-141f2eab.entry.js +7 -0
  9. package/dist/checkout/p-194b17d8.entry.js +1 -0
  10. package/dist/checkout/p-1dc08181.entry.js +1 -0
  11. package/dist/checkout/{p-69233a7c.entry.js → p-272a1ffd.entry.js} +1 -1
  12. package/dist/checkout/p-307af48b.entry.js +1 -0
  13. package/dist/checkout/p-3207674d.entry.js +1 -0
  14. package/dist/checkout/p-3208e56f.entry.js +1 -0
  15. package/dist/checkout/p-3c9a8bee.entry.js +1 -0
  16. package/dist/checkout/p-439ad699.entry.js +7 -0
  17. package/dist/checkout/p-4426eb3b.entry.js +1 -0
  18. package/dist/checkout/p-458da59f.entry.js +1 -0
  19. package/dist/checkout/p-46e69508.entry.js +1 -0
  20. package/dist/checkout/p-46ff73b3.entry.js +1 -0
  21. package/dist/checkout/p-49046c16.entry.js +4 -0
  22. package/dist/checkout/p-4a86b731.entry.js +1 -0
  23. package/dist/checkout/{p-a09d1040.entry.js → p-4ae1a390.entry.js} +1 -1
  24. package/dist/checkout/p-4b34896c.entry.js +1 -0
  25. package/dist/checkout/p-4da4ecc4.entry.js +1 -0
  26. package/dist/checkout/p-53ae9dd0.entry.js +1 -0
  27. package/dist/checkout/p-53dc0e86.entry.js +1 -0
  28. package/dist/checkout/p-56e307eb.entry.js +1 -0
  29. package/dist/checkout/p-5903b3af.entry.js +1 -0
  30. package/dist/checkout/p-5a6fc9fd.entry.js +1 -0
  31. package/dist/checkout/{p-1dc3efa2.entry.js → p-5e65653a.entry.js} +1 -1
  32. package/dist/checkout/p-5f005b5e.entry.js +1 -0
  33. package/dist/checkout/p-5f124c24.entry.js +1 -0
  34. package/dist/checkout/p-62b7c8b0.entry.js +1 -0
  35. package/dist/checkout/{p-68738638.entry.js → p-63db3363.entry.js} +1 -1
  36. package/dist/checkout/p-6a8ad104.entry.js +1 -0
  37. package/dist/checkout/p-7006753a.entry.js +4 -0
  38. package/dist/checkout/p-76fb4325.entry.js +1 -0
  39. package/dist/checkout/p-78db60fb.entry.js +1 -0
  40. package/dist/checkout/p-8036cf49.entry.js +14 -0
  41. package/dist/checkout/{p-4de3b067.entry.js → p-8b015c21.entry.js} +1 -1
  42. package/dist/checkout/p-8e34a1bb.entry.js +1 -0
  43. package/dist/checkout/{p-0363331c.entry.js → p-8fc1287a.entry.js} +1 -1
  44. package/dist/checkout/p-91474b10.entry.js +1 -0
  45. package/dist/checkout/p-93OyAGoo.js +2 -0
  46. package/dist/checkout/p-94a57258.entry.js +1 -0
  47. package/dist/checkout/p-95431a73.entry.js +1 -0
  48. package/dist/checkout/p-95563c4c.entry.js +1 -0
  49. package/dist/checkout/p-978b3762.entry.js +1 -0
  50. package/dist/checkout/p-9b7d7231.entry.js +1 -0
  51. package/dist/checkout/p-BEVStXwd.js +7 -0
  52. package/dist/checkout/{p-CkCrVZwR.js → p-BQu7QPd5.js} +2 -2
  53. package/dist/checkout/p-BcFRJSFv.js +4 -0
  54. package/dist/checkout/p-BcUxrseY.js +1 -0
  55. package/dist/checkout/p-BdG893XR.js +4 -0
  56. package/dist/checkout/p-Bm9bMvCb.js +4 -0
  57. package/dist/checkout/p-C6kqtbmV.js +4 -0
  58. package/dist/checkout/p-C75BfBAE.js +1 -0
  59. package/dist/checkout/p-CVrvo9Qz.js +4 -0
  60. package/dist/checkout/p-ChixdDt6.js +4 -0
  61. package/dist/checkout/p-Cjnmql4G.js +8 -0
  62. package/dist/{components/p-BTEOs1at.js → checkout/p-CukVBo5-.js} +1 -1
  63. package/dist/checkout/p-D0I0TqZU.js +4 -0
  64. package/dist/checkout/p-D8d_89Nl.js +4 -0
  65. package/dist/checkout/p-DAhcxcAh.js +4 -0
  66. package/dist/checkout/p-DDtPO7yO.js +4 -0
  67. package/dist/checkout/p-DMAPbDyG.js +4 -0
  68. package/dist/checkout/p-DUa_5Mmb.js +4 -0
  69. package/dist/checkout/p-DihS-5gH.js +4 -0
  70. package/dist/checkout/p-DkrNcwKK.js +5 -0
  71. package/dist/checkout/p-Dzj_jqIY.js +4 -0
  72. package/dist/checkout/p-E8AXUhZ3.js +7 -0
  73. package/dist/checkout/p-Ufaww5Lq.js +4 -0
  74. package/dist/checkout/p-a90efa79.entry.js +1 -0
  75. package/dist/checkout/p-aba43d04.entry.js +1 -0
  76. package/dist/checkout/p-abd12b84.entry.js +1 -0
  77. package/dist/checkout/p-abe1becc.entry.js +1 -0
  78. package/dist/checkout/p-af32124b.entry.js +1 -0
  79. package/dist/checkout/p-b2f66c60.entry.js +4 -0
  80. package/dist/checkout/p-b4000357.entry.js +4 -0
  81. package/dist/checkout/p-b45f5952.entry.js +1 -0
  82. package/dist/checkout/p-b8245f6a.entry.js +1 -0
  83. package/dist/checkout/p-b90c064e.entry.js +7 -0
  84. package/dist/checkout/p-bf933eb6.entry.js +4 -0
  85. package/dist/checkout/p-c03b6161.entry.js +1 -0
  86. package/dist/checkout/p-c2240d19.entry.js +1 -0
  87. package/dist/checkout/p-c2296aa1.entry.js +1 -0
  88. package/dist/checkout/p-c28b4374.entry.js +1 -0
  89. package/dist/checkout/p-c8740acc.entry.js +7 -0
  90. package/dist/checkout/p-c929d6ea.entry.js +1 -0
  91. package/dist/checkout/{p-733767d9.entry.js → p-ca257d45.entry.js} +1 -1
  92. package/dist/checkout/{p-890e9953.entry.js → p-cb2db223.entry.js} +1 -1
  93. package/dist/checkout/p-cb3967fc.entry.js +1 -0
  94. package/dist/checkout/p-cd2c344b.entry.js +7 -0
  95. package/dist/checkout/p-cef16f11.entry.js +1 -0
  96. package/dist/checkout/p-d370e756.entry.js +4 -0
  97. package/dist/checkout/p-d5652cd4.entry.js +1 -0
  98. package/dist/checkout/{p-418e3312.entry.js → p-d799009b.entry.js} +1 -1
  99. package/dist/checkout/p-df1b4347.entry.js +4 -0
  100. package/dist/checkout/p-e4bc42fb.entry.js +1 -0
  101. package/dist/checkout/p-e4d0702d.entry.js +1 -0
  102. package/dist/checkout/p-e785fb8a.entry.js +1 -0
  103. package/dist/checkout/p-e8bd206a.entry.js +1 -0
  104. package/dist/checkout/p-eae2d3f2.entry.js +1 -0
  105. package/dist/checkout/p-ef749875.entry.js +1 -0
  106. package/dist/checkout/p-f157b6b2.entry.js +4 -0
  107. package/dist/checkout/{p-DQmRrrcF.js → p-f22v7XAM.js} +2 -2
  108. package/dist/checkout/p-f351a19a.entry.js +1 -0
  109. package/dist/checkout/p-f845e91b.entry.js +1 -0
  110. package/dist/checkout/p-ff2e59e3.entry.js +1 -0
  111. package/dist/checkout/p-hAETByzF.js +5 -0
  112. package/dist/checkout/p-ofaUly0p.js +4 -0
  113. package/dist/checkout/p-vn1iXXUO.js +9 -0
  114. package/dist/checkout/p-yu3xCFhr.js +7 -0
  115. package/dist/checkout/svg/accessibility-outline.svg +1 -1
  116. package/dist/checkout/svg/accessibility-sharp.svg +1 -1
  117. package/dist/checkout/svg/accessibility.svg +1 -1
  118. package/dist/checkout/svg/add-circle-outline.svg +1 -1
  119. package/dist/checkout/svg/add-circle-sharp.svg +1 -1
  120. package/dist/checkout/svg/add-circle.svg +1 -1
  121. package/dist/checkout/svg/add-outline.svg +1 -1
  122. package/dist/checkout/svg/add-sharp.svg +1 -1
  123. package/dist/checkout/svg/add.svg +1 -1
  124. package/dist/checkout/svg/airplane-outline.svg +1 -1
  125. package/dist/checkout/svg/airplane-sharp.svg +1 -1
  126. package/dist/checkout/svg/airplane.svg +1 -1
  127. package/dist/checkout/svg/alarm-outline.svg +1 -1
  128. package/dist/checkout/svg/alarm-sharp.svg +1 -1
  129. package/dist/checkout/svg/alarm.svg +1 -1
  130. package/dist/checkout/svg/albums-outline.svg +1 -1
  131. package/dist/checkout/svg/albums-sharp.svg +1 -1
  132. package/dist/checkout/svg/albums.svg +1 -1
  133. package/dist/checkout/svg/alert-circle-outline.svg +1 -1
  134. package/dist/checkout/svg/alert-circle-sharp.svg +1 -1
  135. package/dist/checkout/svg/alert-circle.svg +1 -1
  136. package/dist/checkout/svg/alert-outline.svg +1 -1
  137. package/dist/checkout/svg/alert-sharp.svg +1 -1
  138. package/dist/checkout/svg/alert.svg +1 -1
  139. package/dist/checkout/svg/american-football-outline.svg +1 -1
  140. package/dist/checkout/svg/american-football-sharp.svg +1 -1
  141. package/dist/checkout/svg/american-football.svg +1 -1
  142. package/dist/checkout/svg/analytics-outline.svg +1 -1
  143. package/dist/checkout/svg/analytics-sharp.svg +1 -1
  144. package/dist/checkout/svg/analytics.svg +1 -1
  145. package/dist/checkout/svg/aperture-outline.svg +1 -1
  146. package/dist/checkout/svg/aperture-sharp.svg +1 -1
  147. package/dist/checkout/svg/aperture.svg +1 -1
  148. package/dist/checkout/svg/apps-outline.svg +1 -1
  149. package/dist/checkout/svg/apps-sharp.svg +1 -1
  150. package/dist/checkout/svg/apps.svg +1 -1
  151. package/dist/checkout/svg/archive-outline.svg +1 -1
  152. package/dist/checkout/svg/archive-sharp.svg +1 -1
  153. package/dist/checkout/svg/archive.svg +1 -1
  154. package/dist/checkout/svg/arrow-back-circle-outline.svg +1 -1
  155. package/dist/checkout/svg/arrow-back-circle-sharp.svg +1 -1
  156. package/dist/checkout/svg/arrow-back-circle.svg +1 -1
  157. package/dist/checkout/svg/arrow-back-outline.svg +1 -1
  158. package/dist/checkout/svg/arrow-back-sharp.svg +1 -1
  159. package/dist/checkout/svg/arrow-back.svg +1 -1
  160. package/dist/checkout/svg/arrow-down-circle-outline.svg +1 -1
  161. package/dist/checkout/svg/arrow-down-circle-sharp.svg +1 -1
  162. package/dist/checkout/svg/arrow-down-circle.svg +1 -1
  163. package/dist/checkout/svg/arrow-down-left-box-outline.svg +1 -1
  164. package/dist/checkout/svg/arrow-down-left-box-sharp.svg +1 -1
  165. package/dist/checkout/svg/arrow-down-left-box.svg +1 -1
  166. package/dist/checkout/svg/arrow-down-outline.svg +1 -1
  167. package/dist/checkout/svg/arrow-down-right-box-outline.svg +1 -1
  168. package/dist/checkout/svg/arrow-down-right-box-sharp.svg +1 -1
  169. package/dist/checkout/svg/arrow-down-right-box.svg +1 -1
  170. package/dist/checkout/svg/arrow-down-sharp.svg +1 -1
  171. package/dist/checkout/svg/arrow-down.svg +1 -1
  172. package/dist/checkout/svg/arrow-forward-circle-outline.svg +1 -1
  173. package/dist/checkout/svg/arrow-forward-circle-sharp.svg +1 -1
  174. package/dist/checkout/svg/arrow-forward-circle.svg +1 -1
  175. package/dist/checkout/svg/arrow-forward-outline.svg +1 -1
  176. package/dist/checkout/svg/arrow-forward-sharp.svg +1 -1
  177. package/dist/checkout/svg/arrow-forward.svg +1 -1
  178. package/dist/checkout/svg/arrow-redo-circle-outline.svg +1 -1
  179. package/dist/checkout/svg/arrow-redo-circle-sharp.svg +1 -1
  180. package/dist/checkout/svg/arrow-redo-circle.svg +1 -1
  181. package/dist/checkout/svg/arrow-redo-outline.svg +1 -1
  182. package/dist/checkout/svg/arrow-redo-sharp.svg +1 -1
  183. package/dist/checkout/svg/arrow-redo.svg +1 -1
  184. package/dist/checkout/svg/arrow-undo-circle-outline.svg +1 -1
  185. package/dist/checkout/svg/arrow-undo-circle-sharp.svg +1 -1
  186. package/dist/checkout/svg/arrow-undo-circle.svg +1 -1
  187. package/dist/checkout/svg/arrow-undo-outline.svg +1 -1
  188. package/dist/checkout/svg/arrow-undo-sharp.svg +1 -1
  189. package/dist/checkout/svg/arrow-undo.svg +1 -1
  190. package/dist/checkout/svg/arrow-up-circle-outline.svg +1 -1
  191. package/dist/checkout/svg/arrow-up-circle-sharp.svg +1 -1
  192. package/dist/checkout/svg/arrow-up-circle.svg +1 -1
  193. package/dist/checkout/svg/arrow-up-left-box-outline.svg +1 -1
  194. package/dist/checkout/svg/arrow-up-left-box-sharp.svg +1 -1
  195. package/dist/checkout/svg/arrow-up-left-box.svg +1 -1
  196. package/dist/checkout/svg/arrow-up-outline.svg +1 -1
  197. package/dist/checkout/svg/arrow-up-right-box-outline.svg +1 -1
  198. package/dist/checkout/svg/arrow-up-right-box-sharp.svg +1 -1
  199. package/dist/checkout/svg/arrow-up-right-box.svg +1 -1
  200. package/dist/checkout/svg/arrow-up-sharp.svg +1 -1
  201. package/dist/checkout/svg/arrow-up.svg +1 -1
  202. package/dist/checkout/svg/at-circle-outline.svg +1 -1
  203. package/dist/checkout/svg/at-circle-sharp.svg +1 -1
  204. package/dist/checkout/svg/at-circle.svg +1 -1
  205. package/dist/checkout/svg/at-outline.svg +1 -1
  206. package/dist/checkout/svg/at-sharp.svg +1 -1
  207. package/dist/checkout/svg/at.svg +1 -1
  208. package/dist/checkout/svg/attach-outline.svg +1 -1
  209. package/dist/checkout/svg/attach-sharp.svg +1 -1
  210. package/dist/checkout/svg/attach.svg +1 -1
  211. package/dist/checkout/svg/backspace-outline.svg +1 -1
  212. package/dist/checkout/svg/backspace-sharp.svg +1 -1
  213. package/dist/checkout/svg/backspace.svg +1 -1
  214. package/dist/checkout/svg/bag-add-outline.svg +1 -1
  215. package/dist/checkout/svg/bag-add-sharp.svg +1 -1
  216. package/dist/checkout/svg/bag-add.svg +1 -1
  217. package/dist/checkout/svg/bag-check-outline.svg +1 -1
  218. package/dist/checkout/svg/bag-check-sharp.svg +1 -1
  219. package/dist/checkout/svg/bag-check.svg +1 -1
  220. package/dist/checkout/svg/bag-handle-outline.svg +1 -1
  221. package/dist/checkout/svg/bag-handle-sharp.svg +1 -1
  222. package/dist/checkout/svg/bag-handle.svg +1 -1
  223. package/dist/checkout/svg/bag-outline.svg +1 -1
  224. package/dist/checkout/svg/bag-remove-outline.svg +1 -1
  225. package/dist/checkout/svg/bag-remove-sharp.svg +1 -1
  226. package/dist/checkout/svg/bag-remove.svg +1 -1
  227. package/dist/checkout/svg/bag-sharp.svg +1 -1
  228. package/dist/checkout/svg/bag.svg +1 -1
  229. package/dist/checkout/svg/balloon-outline.svg +1 -1
  230. package/dist/checkout/svg/balloon-sharp.svg +1 -1
  231. package/dist/checkout/svg/balloon.svg +1 -1
  232. package/dist/checkout/svg/ban-outline.svg +1 -1
  233. package/dist/checkout/svg/ban-sharp.svg +1 -1
  234. package/dist/checkout/svg/ban.svg +1 -1
  235. package/dist/checkout/svg/bandage-outline.svg +1 -1
  236. package/dist/checkout/svg/bandage-sharp.svg +1 -1
  237. package/dist/checkout/svg/bandage.svg +1 -1
  238. package/dist/checkout/svg/bar-chart-outline.svg +1 -1
  239. package/dist/checkout/svg/bar-chart-sharp.svg +1 -1
  240. package/dist/checkout/svg/bar-chart.svg +1 -1
  241. package/dist/checkout/svg/barbell-outline.svg +1 -1
  242. package/dist/checkout/svg/barbell-sharp.svg +1 -1
  243. package/dist/checkout/svg/barbell.svg +1 -1
  244. package/dist/checkout/svg/barcode-outline.svg +1 -1
  245. package/dist/checkout/svg/barcode-sharp.svg +1 -1
  246. package/dist/checkout/svg/barcode.svg +1 -1
  247. package/dist/checkout/svg/baseball-outline.svg +1 -1
  248. package/dist/checkout/svg/baseball-sharp.svg +1 -1
  249. package/dist/checkout/svg/baseball.svg +1 -1
  250. package/dist/checkout/svg/basket-outline.svg +1 -1
  251. package/dist/checkout/svg/basket-sharp.svg +1 -1
  252. package/dist/checkout/svg/basket.svg +1 -1
  253. package/dist/checkout/svg/basketball-outline.svg +1 -1
  254. package/dist/checkout/svg/basketball-sharp.svg +1 -1
  255. package/dist/checkout/svg/basketball.svg +1 -1
  256. package/dist/checkout/svg/battery-charging-outline.svg +1 -1
  257. package/dist/checkout/svg/battery-charging-sharp.svg +1 -1
  258. package/dist/checkout/svg/battery-charging.svg +1 -1
  259. package/dist/checkout/svg/battery-dead-outline.svg +1 -1
  260. package/dist/checkout/svg/battery-dead-sharp.svg +1 -1
  261. package/dist/checkout/svg/battery-dead.svg +1 -1
  262. package/dist/checkout/svg/battery-full-outline.svg +1 -1
  263. package/dist/checkout/svg/battery-full-sharp.svg +1 -1
  264. package/dist/checkout/svg/battery-full.svg +1 -1
  265. package/dist/checkout/svg/battery-half-outline.svg +1 -1
  266. package/dist/checkout/svg/battery-half-sharp.svg +1 -1
  267. package/dist/checkout/svg/battery-half.svg +1 -1
  268. package/dist/checkout/svg/beaker-outline.svg +1 -1
  269. package/dist/checkout/svg/beaker-sharp.svg +1 -1
  270. package/dist/checkout/svg/beaker.svg +1 -1
  271. package/dist/checkout/svg/bed-outline.svg +1 -1
  272. package/dist/checkout/svg/bed-sharp.svg +1 -1
  273. package/dist/checkout/svg/bed.svg +1 -1
  274. package/dist/checkout/svg/beer-outline.svg +1 -1
  275. package/dist/checkout/svg/beer-sharp.svg +1 -1
  276. package/dist/checkout/svg/beer.svg +1 -1
  277. package/dist/checkout/svg/bicycle-outline.svg +1 -1
  278. package/dist/checkout/svg/bicycle-sharp.svg +1 -1
  279. package/dist/checkout/svg/bicycle.svg +1 -1
  280. package/dist/checkout/svg/binoculars-outline.svg +1 -1
  281. package/dist/checkout/svg/binoculars-sharp.svg +1 -1
  282. package/dist/checkout/svg/binoculars.svg +1 -1
  283. package/dist/checkout/svg/bluetooth-outline.svg +1 -1
  284. package/dist/checkout/svg/bluetooth-sharp.svg +1 -1
  285. package/dist/checkout/svg/bluetooth.svg +1 -1
  286. package/dist/checkout/svg/boat-outline.svg +1 -1
  287. package/dist/checkout/svg/boat-sharp.svg +1 -1
  288. package/dist/checkout/svg/boat.svg +1 -1
  289. package/dist/checkout/svg/body-outline.svg +1 -1
  290. package/dist/checkout/svg/body-sharp.svg +1 -1
  291. package/dist/checkout/svg/body.svg +1 -1
  292. package/dist/checkout/svg/bonfire-outline.svg +1 -1
  293. package/dist/checkout/svg/bonfire-sharp.svg +1 -1
  294. package/dist/checkout/svg/bonfire.svg +1 -1
  295. package/dist/checkout/svg/book-outline.svg +1 -1
  296. package/dist/checkout/svg/book-sharp.svg +1 -1
  297. package/dist/checkout/svg/book.svg +1 -1
  298. package/dist/checkout/svg/bookmark-outline.svg +1 -1
  299. package/dist/checkout/svg/bookmark-sharp.svg +1 -1
  300. package/dist/checkout/svg/bookmark.svg +1 -1
  301. package/dist/checkout/svg/bookmarks-outline.svg +1 -1
  302. package/dist/checkout/svg/bookmarks-sharp.svg +1 -1
  303. package/dist/checkout/svg/bookmarks.svg +1 -1
  304. package/dist/checkout/svg/bowling-ball-sharp.svg +1 -1
  305. package/dist/checkout/svg/bowling-ball.svg +1 -1
  306. package/dist/checkout/svg/briefcase-outline.svg +1 -1
  307. package/dist/checkout/svg/briefcase-sharp.svg +1 -1
  308. package/dist/checkout/svg/briefcase.svg +1 -1
  309. package/dist/checkout/svg/browsers-outline.svg +1 -1
  310. package/dist/checkout/svg/browsers-sharp.svg +1 -1
  311. package/dist/checkout/svg/browsers.svg +1 -1
  312. package/dist/checkout/svg/brush-outline.svg +1 -1
  313. package/dist/checkout/svg/brush-sharp.svg +1 -1
  314. package/dist/checkout/svg/brush.svg +1 -1
  315. package/dist/checkout/svg/bug-outline.svg +1 -1
  316. package/dist/checkout/svg/bug-sharp.svg +1 -1
  317. package/dist/checkout/svg/bug.svg +1 -1
  318. package/dist/checkout/svg/build-outline.svg +1 -1
  319. package/dist/checkout/svg/build-sharp.svg +1 -1
  320. package/dist/checkout/svg/build.svg +1 -1
  321. package/dist/checkout/svg/bulb-outline.svg +1 -1
  322. package/dist/checkout/svg/bulb-sharp.svg +1 -1
  323. package/dist/checkout/svg/bulb.svg +1 -1
  324. package/dist/checkout/svg/bus-outline.svg +1 -1
  325. package/dist/checkout/svg/bus-sharp.svg +1 -1
  326. package/dist/checkout/svg/bus.svg +1 -1
  327. package/dist/checkout/svg/business-outline.svg +1 -1
  328. package/dist/checkout/svg/business-sharp.svg +1 -1
  329. package/dist/checkout/svg/business.svg +1 -1
  330. package/dist/checkout/svg/cafe-outline.svg +1 -1
  331. package/dist/checkout/svg/cafe-sharp.svg +1 -1
  332. package/dist/checkout/svg/cafe.svg +1 -1
  333. package/dist/checkout/svg/calculator-outline.svg +1 -1
  334. package/dist/checkout/svg/calculator-sharp.svg +1 -1
  335. package/dist/checkout/svg/calculator.svg +1 -1
  336. package/dist/checkout/svg/calendar-clear-outline.svg +1 -1
  337. package/dist/checkout/svg/calendar-clear-sharp.svg +1 -1
  338. package/dist/checkout/svg/calendar-clear.svg +1 -1
  339. package/dist/checkout/svg/calendar-number-outline.svg +1 -1
  340. package/dist/checkout/svg/calendar-number-sharp.svg +1 -1
  341. package/dist/checkout/svg/calendar-number.svg +1 -1
  342. package/dist/checkout/svg/calendar-outline.svg +1 -1
  343. package/dist/checkout/svg/calendar-sharp.svg +1 -1
  344. package/dist/checkout/svg/calendar.svg +1 -1
  345. package/dist/checkout/svg/call-outline.svg +1 -1
  346. package/dist/checkout/svg/call-sharp.svg +1 -1
  347. package/dist/checkout/svg/call.svg +1 -1
  348. package/dist/checkout/svg/camera-outline.svg +1 -1
  349. package/dist/checkout/svg/camera-reverse-outline.svg +1 -1
  350. package/dist/checkout/svg/camera-reverse-sharp.svg +1 -1
  351. package/dist/checkout/svg/camera-reverse.svg +1 -1
  352. package/dist/checkout/svg/camera-sharp.svg +1 -1
  353. package/dist/checkout/svg/camera.svg +1 -1
  354. package/dist/checkout/svg/car-outline.svg +1 -1
  355. package/dist/checkout/svg/car-sharp.svg +1 -1
  356. package/dist/checkout/svg/car-sport-outline.svg +1 -1
  357. package/dist/checkout/svg/car-sport-sharp.svg +1 -1
  358. package/dist/checkout/svg/car-sport.svg +1 -1
  359. package/dist/checkout/svg/car.svg +1 -1
  360. package/dist/checkout/svg/card-outline.svg +1 -1
  361. package/dist/checkout/svg/card-sharp.svg +1 -1
  362. package/dist/checkout/svg/card.svg +1 -1
  363. package/dist/checkout/svg/caret-back-circle-outline.svg +1 -1
  364. package/dist/checkout/svg/caret-back-circle-sharp.svg +1 -1
  365. package/dist/checkout/svg/caret-back-circle.svg +1 -1
  366. package/dist/checkout/svg/caret-back-outline.svg +1 -1
  367. package/dist/checkout/svg/caret-back-sharp.svg +1 -1
  368. package/dist/checkout/svg/caret-back.svg +1 -1
  369. package/dist/checkout/svg/caret-down-circle-outline.svg +1 -1
  370. package/dist/checkout/svg/caret-down-circle-sharp.svg +1 -1
  371. package/dist/checkout/svg/caret-down-circle.svg +1 -1
  372. package/dist/checkout/svg/caret-down-outline.svg +1 -1
  373. package/dist/checkout/svg/caret-down-sharp.svg +1 -1
  374. package/dist/checkout/svg/caret-down.svg +1 -1
  375. package/dist/checkout/svg/caret-forward-circle-outline.svg +1 -1
  376. package/dist/checkout/svg/caret-forward-circle-sharp.svg +1 -1
  377. package/dist/checkout/svg/caret-forward-circle.svg +1 -1
  378. package/dist/checkout/svg/caret-forward-outline.svg +1 -1
  379. package/dist/checkout/svg/caret-forward-sharp.svg +1 -1
  380. package/dist/checkout/svg/caret-forward.svg +1 -1
  381. package/dist/checkout/svg/caret-up-circle-outline.svg +1 -1
  382. package/dist/checkout/svg/caret-up-circle-sharp.svg +1 -1
  383. package/dist/checkout/svg/caret-up-circle.svg +1 -1
  384. package/dist/checkout/svg/caret-up-outline.svg +1 -1
  385. package/dist/checkout/svg/caret-up-sharp.svg +1 -1
  386. package/dist/checkout/svg/caret-up.svg +1 -1
  387. package/dist/checkout/svg/cart-outline.svg +1 -1
  388. package/dist/checkout/svg/cart-sharp.svg +1 -1
  389. package/dist/checkout/svg/cart.svg +1 -1
  390. package/dist/checkout/svg/cash-outline.svg +1 -1
  391. package/dist/checkout/svg/cash-sharp.svg +1 -1
  392. package/dist/checkout/svg/cash.svg +1 -1
  393. package/dist/checkout/svg/cellular-outline.svg +1 -1
  394. package/dist/checkout/svg/cellular-sharp.svg +1 -1
  395. package/dist/checkout/svg/cellular.svg +1 -1
  396. package/dist/checkout/svg/chatbox-ellipses-outline.svg +1 -1
  397. package/dist/checkout/svg/chatbox-ellipses-sharp.svg +1 -1
  398. package/dist/checkout/svg/chatbox-ellipses.svg +1 -1
  399. package/dist/checkout/svg/chatbox-outline.svg +1 -1
  400. package/dist/checkout/svg/chatbox-sharp.svg +1 -1
  401. package/dist/checkout/svg/chatbox.svg +1 -1
  402. package/dist/checkout/svg/chatbubble-ellipses-outline.svg +1 -1
  403. package/dist/checkout/svg/chatbubble-ellipses-sharp.svg +1 -1
  404. package/dist/checkout/svg/chatbubble-ellipses.svg +1 -1
  405. package/dist/checkout/svg/chatbubble-outline.svg +1 -1
  406. package/dist/checkout/svg/chatbubble-sharp.svg +1 -1
  407. package/dist/checkout/svg/chatbubble.svg +1 -1
  408. package/dist/checkout/svg/chatbubbles-outline.svg +1 -1
  409. package/dist/checkout/svg/chatbubbles-sharp.svg +1 -1
  410. package/dist/checkout/svg/chatbubbles.svg +1 -1
  411. package/dist/checkout/svg/checkbox-outline.svg +1 -1
  412. package/dist/checkout/svg/checkbox-sharp.svg +1 -1
  413. package/dist/checkout/svg/checkbox.svg +1 -1
  414. package/dist/checkout/svg/checkmark-circle-outline.svg +1 -1
  415. package/dist/checkout/svg/checkmark-circle-sharp.svg +1 -1
  416. package/dist/checkout/svg/checkmark-circle.svg +1 -1
  417. package/dist/checkout/svg/checkmark-done-circle-outline.svg +1 -1
  418. package/dist/checkout/svg/checkmark-done-circle-sharp.svg +1 -1
  419. package/dist/checkout/svg/checkmark-done-circle.svg +1 -1
  420. package/dist/checkout/svg/checkmark-done-outline.svg +1 -1
  421. package/dist/checkout/svg/checkmark-done-sharp.svg +1 -1
  422. package/dist/checkout/svg/checkmark-done.svg +1 -1
  423. package/dist/checkout/svg/checkmark-outline.svg +1 -1
  424. package/dist/checkout/svg/checkmark-sharp.svg +1 -1
  425. package/dist/checkout/svg/checkmark.svg +1 -1
  426. package/dist/checkout/svg/chevron-back-circle-outline.svg +1 -1
  427. package/dist/checkout/svg/chevron-back-circle-sharp.svg +1 -1
  428. package/dist/checkout/svg/chevron-back-circle.svg +1 -1
  429. package/dist/checkout/svg/chevron-back-outline.svg +1 -1
  430. package/dist/checkout/svg/chevron-back-sharp.svg +1 -1
  431. package/dist/checkout/svg/chevron-back.svg +1 -1
  432. package/dist/checkout/svg/chevron-collapse-outline.svg +1 -1
  433. package/dist/checkout/svg/chevron-collapse-sharp.svg +1 -1
  434. package/dist/checkout/svg/chevron-collapse.svg +1 -1
  435. package/dist/checkout/svg/chevron-down-circle-outline.svg +1 -1
  436. package/dist/checkout/svg/chevron-down-circle-sharp.svg +1 -1
  437. package/dist/checkout/svg/chevron-down-circle.svg +1 -1
  438. package/dist/checkout/svg/chevron-down-outline.svg +1 -1
  439. package/dist/checkout/svg/chevron-down-sharp.svg +1 -1
  440. package/dist/checkout/svg/chevron-down.svg +1 -1
  441. package/dist/checkout/svg/chevron-expand-outline.svg +1 -1
  442. package/dist/checkout/svg/chevron-expand-sharp.svg +1 -1
  443. package/dist/checkout/svg/chevron-expand.svg +1 -1
  444. package/dist/checkout/svg/chevron-forward-circle-outline.svg +1 -1
  445. package/dist/checkout/svg/chevron-forward-circle-sharp.svg +1 -1
  446. package/dist/checkout/svg/chevron-forward-circle.svg +1 -1
  447. package/dist/checkout/svg/chevron-forward-outline.svg +1 -1
  448. package/dist/checkout/svg/chevron-forward-sharp.svg +1 -1
  449. package/dist/checkout/svg/chevron-forward.svg +1 -1
  450. package/dist/checkout/svg/chevron-up-circle-outline.svg +1 -1
  451. package/dist/checkout/svg/chevron-up-circle-sharp.svg +1 -1
  452. package/dist/checkout/svg/chevron-up-circle.svg +1 -1
  453. package/dist/checkout/svg/chevron-up-outline.svg +1 -1
  454. package/dist/checkout/svg/chevron-up-sharp.svg +1 -1
  455. package/dist/checkout/svg/chevron-up.svg +1 -1
  456. package/dist/checkout/svg/clipboard-outline.svg +1 -1
  457. package/dist/checkout/svg/clipboard-sharp.svg +1 -1
  458. package/dist/checkout/svg/clipboard.svg +1 -1
  459. package/dist/checkout/svg/close-circle-outline.svg +1 -1
  460. package/dist/checkout/svg/close-circle-sharp.svg +1 -1
  461. package/dist/checkout/svg/close-circle.svg +1 -1
  462. package/dist/checkout/svg/close-outline.svg +1 -1
  463. package/dist/checkout/svg/close-sharp.svg +1 -1
  464. package/dist/checkout/svg/close.svg +1 -1
  465. package/dist/checkout/svg/cloud-circle-outline.svg +1 -1
  466. package/dist/checkout/svg/cloud-circle-sharp.svg +1 -1
  467. package/dist/checkout/svg/cloud-circle.svg +1 -1
  468. package/dist/checkout/svg/cloud-done-outline.svg +1 -1
  469. package/dist/checkout/svg/cloud-done-sharp.svg +1 -1
  470. package/dist/checkout/svg/cloud-done.svg +1 -1
  471. package/dist/checkout/svg/cloud-download-outline.svg +1 -1
  472. package/dist/checkout/svg/cloud-download-sharp.svg +1 -1
  473. package/dist/checkout/svg/cloud-download.svg +1 -1
  474. package/dist/checkout/svg/cloud-offline-outline.svg +1 -1
  475. package/dist/checkout/svg/cloud-offline-sharp.svg +1 -1
  476. package/dist/checkout/svg/cloud-offline.svg +1 -1
  477. package/dist/checkout/svg/cloud-outline.svg +1 -1
  478. package/dist/checkout/svg/cloud-sharp.svg +1 -1
  479. package/dist/checkout/svg/cloud-upload-outline.svg +1 -1
  480. package/dist/checkout/svg/cloud-upload-sharp.svg +1 -1
  481. package/dist/checkout/svg/cloud-upload.svg +1 -1
  482. package/dist/checkout/svg/cloud.svg +1 -1
  483. package/dist/checkout/svg/cloudy-night-outline.svg +1 -1
  484. package/dist/checkout/svg/cloudy-night-sharp.svg +1 -1
  485. package/dist/checkout/svg/cloudy-night.svg +1 -1
  486. package/dist/checkout/svg/cloudy-outline.svg +1 -1
  487. package/dist/checkout/svg/cloudy-sharp.svg +1 -1
  488. package/dist/checkout/svg/cloudy.svg +1 -1
  489. package/dist/checkout/svg/code-download-outline.svg +1 -1
  490. package/dist/checkout/svg/code-download-sharp.svg +1 -1
  491. package/dist/checkout/svg/code-download.svg +1 -1
  492. package/dist/checkout/svg/code-outline.svg +1 -1
  493. package/dist/checkout/svg/code-sharp.svg +1 -1
  494. package/dist/checkout/svg/code-slash-outline.svg +1 -1
  495. package/dist/checkout/svg/code-slash-sharp.svg +1 -1
  496. package/dist/checkout/svg/code-slash.svg +1 -1
  497. package/dist/checkout/svg/code-working-outline.svg +1 -1
  498. package/dist/checkout/svg/code-working-sharp.svg +1 -1
  499. package/dist/checkout/svg/code-working.svg +1 -1
  500. package/dist/checkout/svg/code.svg +1 -1
  501. package/dist/checkout/svg/cog-outline.svg +1 -1
  502. package/dist/checkout/svg/cog-sharp.svg +1 -1
  503. package/dist/checkout/svg/cog.svg +1 -1
  504. package/dist/checkout/svg/color-fill-outline.svg +1 -1
  505. package/dist/checkout/svg/color-fill-sharp.svg +1 -1
  506. package/dist/checkout/svg/color-fill.svg +1 -1
  507. package/dist/checkout/svg/color-filter-outline.svg +1 -1
  508. package/dist/checkout/svg/color-filter-sharp.svg +1 -1
  509. package/dist/checkout/svg/color-filter.svg +1 -1
  510. package/dist/checkout/svg/color-palette-outline.svg +1 -1
  511. package/dist/checkout/svg/color-palette-sharp.svg +1 -1
  512. package/dist/checkout/svg/color-palette.svg +1 -1
  513. package/dist/checkout/svg/color-wand-outline.svg +1 -1
  514. package/dist/checkout/svg/color-wand-sharp.svg +1 -1
  515. package/dist/checkout/svg/color-wand.svg +1 -1
  516. package/dist/checkout/svg/compass-outline.svg +1 -1
  517. package/dist/checkout/svg/compass-sharp.svg +1 -1
  518. package/dist/checkout/svg/compass.svg +1 -1
  519. package/dist/checkout/svg/construct-outline.svg +1 -1
  520. package/dist/checkout/svg/construct-sharp.svg +1 -1
  521. package/dist/checkout/svg/construct.svg +1 -1
  522. package/dist/checkout/svg/contract-outline.svg +1 -1
  523. package/dist/checkout/svg/contract-sharp.svg +1 -1
  524. package/dist/checkout/svg/contract.svg +1 -1
  525. package/dist/checkout/svg/contrast-outline.svg +1 -1
  526. package/dist/checkout/svg/contrast-sharp.svg +1 -1
  527. package/dist/checkout/svg/contrast.svg +1 -1
  528. package/dist/checkout/svg/copy-outline.svg +1 -1
  529. package/dist/checkout/svg/copy-sharp.svg +1 -1
  530. package/dist/checkout/svg/copy.svg +1 -1
  531. package/dist/checkout/svg/create-outline.svg +1 -1
  532. package/dist/checkout/svg/create-sharp.svg +1 -1
  533. package/dist/checkout/svg/create.svg +1 -1
  534. package/dist/checkout/svg/crop-outline.svg +1 -1
  535. package/dist/checkout/svg/crop-sharp.svg +1 -1
  536. package/dist/checkout/svg/crop.svg +1 -1
  537. package/dist/checkout/svg/cube-outline.svg +1 -1
  538. package/dist/checkout/svg/cube-sharp.svg +1 -1
  539. package/dist/checkout/svg/cube.svg +1 -1
  540. package/dist/checkout/svg/cut-outline.svg +1 -1
  541. package/dist/checkout/svg/cut-sharp.svg +1 -1
  542. package/dist/checkout/svg/cut.svg +1 -1
  543. package/dist/checkout/svg/desktop-outline.svg +1 -1
  544. package/dist/checkout/svg/desktop-sharp.svg +1 -1
  545. package/dist/checkout/svg/desktop.svg +1 -1
  546. package/dist/checkout/svg/diamond-outline.svg +1 -1
  547. package/dist/checkout/svg/diamond-sharp.svg +1 -1
  548. package/dist/checkout/svg/diamond.svg +1 -1
  549. package/dist/checkout/svg/dice-outline.svg +1 -1
  550. package/dist/checkout/svg/dice-sharp.svg +1 -1
  551. package/dist/checkout/svg/dice.svg +1 -1
  552. package/dist/checkout/svg/disc-outline.svg +1 -1
  553. package/dist/checkout/svg/disc-sharp.svg +1 -1
  554. package/dist/checkout/svg/disc.svg +1 -1
  555. package/dist/checkout/svg/document-attach-outline.svg +1 -1
  556. package/dist/checkout/svg/document-attach-sharp.svg +1 -1
  557. package/dist/checkout/svg/document-attach.svg +1 -1
  558. package/dist/checkout/svg/document-lock-outline.svg +1 -1
  559. package/dist/checkout/svg/document-lock-sharp.svg +1 -1
  560. package/dist/checkout/svg/document-lock.svg +1 -1
  561. package/dist/checkout/svg/document-outline.svg +1 -1
  562. package/dist/checkout/svg/document-sharp.svg +1 -1
  563. package/dist/checkout/svg/document-text-outline.svg +1 -1
  564. package/dist/checkout/svg/document-text-sharp.svg +1 -1
  565. package/dist/checkout/svg/document-text.svg +1 -1
  566. package/dist/checkout/svg/document.svg +1 -1
  567. package/dist/checkout/svg/documents-outline.svg +1 -1
  568. package/dist/checkout/svg/documents-sharp.svg +1 -1
  569. package/dist/checkout/svg/documents.svg +1 -1
  570. package/dist/checkout/svg/download-outline.svg +1 -1
  571. package/dist/checkout/svg/download-sharp.svg +1 -1
  572. package/dist/checkout/svg/download.svg +1 -1
  573. package/dist/checkout/svg/duplicate-outline.svg +1 -1
  574. package/dist/checkout/svg/duplicate-sharp.svg +1 -1
  575. package/dist/checkout/svg/duplicate.svg +1 -1
  576. package/dist/checkout/svg/ear-outline.svg +1 -1
  577. package/dist/checkout/svg/ear-sharp.svg +1 -1
  578. package/dist/checkout/svg/ear.svg +1 -1
  579. package/dist/checkout/svg/earth-outline.svg +1 -1
  580. package/dist/checkout/svg/earth-sharp.svg +1 -1
  581. package/dist/checkout/svg/earth.svg +1 -1
  582. package/dist/checkout/svg/easel-outline.svg +1 -1
  583. package/dist/checkout/svg/easel-sharp.svg +1 -1
  584. package/dist/checkout/svg/easel.svg +1 -1
  585. package/dist/checkout/svg/egg-outline.svg +1 -1
  586. package/dist/checkout/svg/egg-sharp.svg +1 -1
  587. package/dist/checkout/svg/egg.svg +1 -1
  588. package/dist/checkout/svg/ellipse-outline.svg +1 -1
  589. package/dist/checkout/svg/ellipse-sharp.svg +1 -1
  590. package/dist/checkout/svg/ellipse.svg +1 -1
  591. package/dist/checkout/svg/ellipsis-horizontal-circle-outline.svg +1 -1
  592. package/dist/checkout/svg/ellipsis-horizontal-circle-sharp.svg +1 -1
  593. package/dist/checkout/svg/ellipsis-horizontal-circle.svg +1 -1
  594. package/dist/checkout/svg/ellipsis-horizontal-outline.svg +1 -1
  595. package/dist/checkout/svg/ellipsis-horizontal-sharp.svg +1 -1
  596. package/dist/checkout/svg/ellipsis-horizontal.svg +1 -1
  597. package/dist/checkout/svg/ellipsis-vertical-circle-outline.svg +1 -1
  598. package/dist/checkout/svg/ellipsis-vertical-circle-sharp.svg +1 -1
  599. package/dist/checkout/svg/ellipsis-vertical-circle.svg +1 -1
  600. package/dist/checkout/svg/ellipsis-vertical-outline.svg +1 -1
  601. package/dist/checkout/svg/ellipsis-vertical-sharp.svg +1 -1
  602. package/dist/checkout/svg/ellipsis-vertical.svg +1 -1
  603. package/dist/checkout/svg/enter-outline.svg +1 -1
  604. package/dist/checkout/svg/enter-sharp.svg +1 -1
  605. package/dist/checkout/svg/enter.svg +1 -1
  606. package/dist/checkout/svg/exit-outline.svg +1 -1
  607. package/dist/checkout/svg/exit-sharp.svg +1 -1
  608. package/dist/checkout/svg/exit.svg +1 -1
  609. package/dist/checkout/svg/expand-outline.svg +1 -1
  610. package/dist/checkout/svg/expand-sharp.svg +1 -1
  611. package/dist/checkout/svg/expand.svg +1 -1
  612. package/dist/checkout/svg/extension-puzzle-outline.svg +1 -1
  613. package/dist/checkout/svg/extension-puzzle-sharp.svg +1 -1
  614. package/dist/checkout/svg/extension-puzzle.svg +1 -1
  615. package/dist/checkout/svg/eye-off-outline.svg +1 -1
  616. package/dist/checkout/svg/eye-off-sharp.svg +1 -1
  617. package/dist/checkout/svg/eye-off.svg +1 -1
  618. package/dist/checkout/svg/eye-outline.svg +1 -1
  619. package/dist/checkout/svg/eye-sharp.svg +1 -1
  620. package/dist/checkout/svg/eye.svg +1 -1
  621. package/dist/checkout/svg/eyedrop-outline.svg +1 -1
  622. package/dist/checkout/svg/eyedrop-sharp.svg +1 -1
  623. package/dist/checkout/svg/eyedrop.svg +1 -1
  624. package/dist/checkout/svg/fast-food-outline.svg +1 -1
  625. package/dist/checkout/svg/fast-food-sharp.svg +1 -1
  626. package/dist/checkout/svg/fast-food.svg +1 -1
  627. package/dist/checkout/svg/female-outline.svg +1 -1
  628. package/dist/checkout/svg/female-sharp.svg +1 -1
  629. package/dist/checkout/svg/female.svg +1 -1
  630. package/dist/checkout/svg/file-tray-full-outline.svg +1 -1
  631. package/dist/checkout/svg/file-tray-full-sharp.svg +1 -1
  632. package/dist/checkout/svg/file-tray-full.svg +1 -1
  633. package/dist/checkout/svg/file-tray-outline.svg +1 -1
  634. package/dist/checkout/svg/file-tray-sharp.svg +1 -1
  635. package/dist/checkout/svg/file-tray-stacked-outline.svg +1 -1
  636. package/dist/checkout/svg/file-tray-stacked-sharp.svg +1 -1
  637. package/dist/checkout/svg/file-tray-stacked.svg +1 -1
  638. package/dist/checkout/svg/file-tray.svg +1 -1
  639. package/dist/checkout/svg/film-outline.svg +1 -1
  640. package/dist/checkout/svg/film-sharp.svg +1 -1
  641. package/dist/checkout/svg/film.svg +1 -1
  642. package/dist/checkout/svg/filter-circle-outline.svg +1 -1
  643. package/dist/checkout/svg/filter-circle-sharp.svg +1 -1
  644. package/dist/checkout/svg/filter-circle.svg +1 -1
  645. package/dist/checkout/svg/filter-outline.svg +1 -1
  646. package/dist/checkout/svg/filter-sharp.svg +1 -1
  647. package/dist/checkout/svg/filter.svg +1 -1
  648. package/dist/checkout/svg/finger-print-outline.svg +1 -1
  649. package/dist/checkout/svg/finger-print-sharp.svg +1 -1
  650. package/dist/checkout/svg/finger-print.svg +1 -1
  651. package/dist/checkout/svg/fish-outline.svg +1 -1
  652. package/dist/checkout/svg/fish-sharp.svg +1 -1
  653. package/dist/checkout/svg/fish.svg +1 -1
  654. package/dist/checkout/svg/fitness-outline.svg +1 -1
  655. package/dist/checkout/svg/fitness-sharp.svg +1 -1
  656. package/dist/checkout/svg/fitness.svg +1 -1
  657. package/dist/checkout/svg/flag-outline.svg +1 -1
  658. package/dist/checkout/svg/flag-sharp.svg +1 -1
  659. package/dist/checkout/svg/flag.svg +1 -1
  660. package/dist/checkout/svg/flame-outline.svg +1 -1
  661. package/dist/checkout/svg/flame-sharp.svg +1 -1
  662. package/dist/checkout/svg/flame.svg +1 -1
  663. package/dist/checkout/svg/flash-off-outline.svg +1 -1
  664. package/dist/checkout/svg/flash-off-sharp.svg +1 -1
  665. package/dist/checkout/svg/flash-off.svg +1 -1
  666. package/dist/checkout/svg/flash-outline.svg +1 -1
  667. package/dist/checkout/svg/flash-sharp.svg +1 -1
  668. package/dist/checkout/svg/flash.svg +1 -1
  669. package/dist/checkout/svg/flashlight-outline.svg +1 -1
  670. package/dist/checkout/svg/flashlight-sharp.svg +1 -1
  671. package/dist/checkout/svg/flashlight.svg +1 -1
  672. package/dist/checkout/svg/flask-outline.svg +1 -1
  673. package/dist/checkout/svg/flask-sharp.svg +1 -1
  674. package/dist/checkout/svg/flask.svg +1 -1
  675. package/dist/checkout/svg/flower-outline.svg +1 -1
  676. package/dist/checkout/svg/flower-sharp.svg +1 -1
  677. package/dist/checkout/svg/flower.svg +1 -1
  678. package/dist/checkout/svg/folder-open-outline.svg +1 -1
  679. package/dist/checkout/svg/folder-open-sharp.svg +1 -1
  680. package/dist/checkout/svg/folder-open.svg +1 -1
  681. package/dist/checkout/svg/folder-outline.svg +1 -1
  682. package/dist/checkout/svg/folder-sharp.svg +1 -1
  683. package/dist/checkout/svg/folder.svg +1 -1
  684. package/dist/checkout/svg/football-outline.svg +1 -1
  685. package/dist/checkout/svg/football-sharp.svg +1 -1
  686. package/dist/checkout/svg/football.svg +1 -1
  687. package/dist/checkout/svg/footsteps-outline.svg +1 -1
  688. package/dist/checkout/svg/footsteps-sharp.svg +1 -1
  689. package/dist/checkout/svg/footsteps.svg +1 -1
  690. package/dist/checkout/svg/funnel-outline.svg +1 -1
  691. package/dist/checkout/svg/funnel-sharp.svg +1 -1
  692. package/dist/checkout/svg/funnel.svg +1 -1
  693. package/dist/checkout/svg/game-controller-outline.svg +1 -1
  694. package/dist/checkout/svg/game-controller-sharp.svg +1 -1
  695. package/dist/checkout/svg/game-controller.svg +1 -1
  696. package/dist/checkout/svg/gift-outline.svg +1 -1
  697. package/dist/checkout/svg/gift-sharp.svg +1 -1
  698. package/dist/checkout/svg/gift.svg +1 -1
  699. package/dist/checkout/svg/git-branch-outline.svg +1 -1
  700. package/dist/checkout/svg/git-branch-sharp.svg +1 -1
  701. package/dist/checkout/svg/git-branch.svg +1 -1
  702. package/dist/checkout/svg/git-commit-outline.svg +1 -1
  703. package/dist/checkout/svg/git-commit-sharp.svg +1 -1
  704. package/dist/checkout/svg/git-commit.svg +1 -1
  705. package/dist/checkout/svg/git-compare-outline.svg +1 -1
  706. package/dist/checkout/svg/git-compare-sharp.svg +1 -1
  707. package/dist/checkout/svg/git-compare.svg +1 -1
  708. package/dist/checkout/svg/git-merge-outline.svg +1 -1
  709. package/dist/checkout/svg/git-merge-sharp.svg +1 -1
  710. package/dist/checkout/svg/git-merge.svg +1 -1
  711. package/dist/checkout/svg/git-network-outline.svg +1 -1
  712. package/dist/checkout/svg/git-network-sharp.svg +1 -1
  713. package/dist/checkout/svg/git-network.svg +1 -1
  714. package/dist/checkout/svg/git-pull-request-outline.svg +1 -1
  715. package/dist/checkout/svg/git-pull-request-sharp.svg +1 -1
  716. package/dist/checkout/svg/git-pull-request.svg +1 -1
  717. package/dist/checkout/svg/glasses-outline.svg +1 -1
  718. package/dist/checkout/svg/glasses-sharp.svg +1 -1
  719. package/dist/checkout/svg/glasses.svg +1 -1
  720. package/dist/checkout/svg/globe-outline.svg +1 -1
  721. package/dist/checkout/svg/globe-sharp.svg +1 -1
  722. package/dist/checkout/svg/globe.svg +1 -1
  723. package/dist/checkout/svg/golf-outline.svg +1 -1
  724. package/dist/checkout/svg/golf-sharp.svg +1 -1
  725. package/dist/checkout/svg/golf.svg +1 -1
  726. package/dist/checkout/svg/grid-outline.svg +1 -1
  727. package/dist/checkout/svg/grid-sharp.svg +1 -1
  728. package/dist/checkout/svg/grid.svg +1 -1
  729. package/dist/checkout/svg/hammer-outline.svg +1 -1
  730. package/dist/checkout/svg/hammer-sharp.svg +1 -1
  731. package/dist/checkout/svg/hammer.svg +1 -1
  732. package/dist/checkout/svg/hand-left-outline.svg +1 -1
  733. package/dist/checkout/svg/hand-left-sharp.svg +1 -1
  734. package/dist/checkout/svg/hand-left.svg +1 -1
  735. package/dist/checkout/svg/hand-right-outline.svg +1 -1
  736. package/dist/checkout/svg/hand-right-sharp.svg +1 -1
  737. package/dist/checkout/svg/hand-right.svg +1 -1
  738. package/dist/checkout/svg/happy-outline.svg +1 -1
  739. package/dist/checkout/svg/happy-sharp.svg +1 -1
  740. package/dist/checkout/svg/happy.svg +1 -1
  741. package/dist/checkout/svg/hardware-chip-outline.svg +1 -1
  742. package/dist/checkout/svg/hardware-chip-sharp.svg +1 -1
  743. package/dist/checkout/svg/hardware-chip.svg +1 -1
  744. package/dist/checkout/svg/headset-outline.svg +1 -1
  745. package/dist/checkout/svg/headset-sharp.svg +1 -1
  746. package/dist/checkout/svg/headset.svg +1 -1
  747. package/dist/checkout/svg/heart-circle-outline.svg +1 -1
  748. package/dist/checkout/svg/heart-circle-sharp.svg +1 -1
  749. package/dist/checkout/svg/heart-circle.svg +1 -1
  750. package/dist/checkout/svg/heart-dislike-circle-outline.svg +1 -1
  751. package/dist/checkout/svg/heart-dislike-circle-sharp.svg +1 -1
  752. package/dist/checkout/svg/heart-dislike-circle.svg +1 -1
  753. package/dist/checkout/svg/heart-dislike-outline.svg +1 -1
  754. package/dist/checkout/svg/heart-dislike-sharp.svg +1 -1
  755. package/dist/checkout/svg/heart-dislike.svg +1 -1
  756. package/dist/checkout/svg/heart-half-outline.svg +1 -1
  757. package/dist/checkout/svg/heart-half-sharp.svg +1 -1
  758. package/dist/checkout/svg/heart-half.svg +1 -1
  759. package/dist/checkout/svg/heart-outline.svg +1 -1
  760. package/dist/checkout/svg/heart-sharp.svg +1 -1
  761. package/dist/checkout/svg/heart.svg +1 -1
  762. package/dist/checkout/svg/help-buoy-outline.svg +1 -1
  763. package/dist/checkout/svg/help-buoy-sharp.svg +1 -1
  764. package/dist/checkout/svg/help-buoy.svg +1 -1
  765. package/dist/checkout/svg/help-circle-outline.svg +1 -1
  766. package/dist/checkout/svg/help-circle-sharp.svg +1 -1
  767. package/dist/checkout/svg/help-circle.svg +1 -1
  768. package/dist/checkout/svg/help-outline.svg +1 -1
  769. package/dist/checkout/svg/help-sharp.svg +1 -1
  770. package/dist/checkout/svg/help.svg +1 -1
  771. package/dist/checkout/svg/home-outline.svg +1 -1
  772. package/dist/checkout/svg/home-sharp.svg +1 -1
  773. package/dist/checkout/svg/home.svg +1 -1
  774. package/dist/checkout/svg/hourglass-outline.svg +1 -1
  775. package/dist/checkout/svg/hourglass-sharp.svg +1 -1
  776. package/dist/checkout/svg/hourglass.svg +1 -1
  777. package/dist/checkout/svg/ice-cream-outline.svg +1 -1
  778. package/dist/checkout/svg/ice-cream-sharp.svg +1 -1
  779. package/dist/checkout/svg/ice-cream.svg +1 -1
  780. package/dist/checkout/svg/id-card-outline.svg +1 -1
  781. package/dist/checkout/svg/id-card-sharp.svg +1 -1
  782. package/dist/checkout/svg/id-card.svg +1 -1
  783. package/dist/checkout/svg/image-outline.svg +1 -1
  784. package/dist/checkout/svg/image-sharp.svg +1 -1
  785. package/dist/checkout/svg/image.svg +1 -1
  786. package/dist/checkout/svg/images-outline.svg +1 -1
  787. package/dist/checkout/svg/images-sharp.svg +1 -1
  788. package/dist/checkout/svg/images.svg +1 -1
  789. package/dist/checkout/svg/infinite-outline.svg +1 -1
  790. package/dist/checkout/svg/infinite-sharp.svg +1 -1
  791. package/dist/checkout/svg/infinite.svg +1 -1
  792. package/dist/checkout/svg/information-circle-outline.svg +1 -1
  793. package/dist/checkout/svg/information-circle-sharp.svg +1 -1
  794. package/dist/checkout/svg/information-circle.svg +1 -1
  795. package/dist/checkout/svg/information-outline.svg +1 -1
  796. package/dist/checkout/svg/information-sharp.svg +1 -1
  797. package/dist/checkout/svg/information.svg +1 -1
  798. package/dist/checkout/svg/invert-mode-outline.svg +1 -1
  799. package/dist/checkout/svg/invert-mode-sharp.svg +1 -1
  800. package/dist/checkout/svg/invert-mode.svg +1 -1
  801. package/dist/checkout/svg/journal-outline.svg +1 -1
  802. package/dist/checkout/svg/journal-sharp.svg +1 -1
  803. package/dist/checkout/svg/journal.svg +1 -1
  804. package/dist/checkout/svg/key-outline.svg +1 -1
  805. package/dist/checkout/svg/key-sharp.svg +1 -1
  806. package/dist/checkout/svg/key.svg +1 -1
  807. package/dist/checkout/svg/keypad-outline.svg +1 -1
  808. package/dist/checkout/svg/keypad-sharp.svg +1 -1
  809. package/dist/checkout/svg/keypad.svg +1 -1
  810. package/dist/checkout/svg/language-outline.svg +1 -1
  811. package/dist/checkout/svg/language-sharp.svg +1 -1
  812. package/dist/checkout/svg/language.svg +1 -1
  813. package/dist/checkout/svg/laptop-outline.svg +1 -1
  814. package/dist/checkout/svg/laptop-sharp.svg +1 -1
  815. package/dist/checkout/svg/laptop.svg +1 -1
  816. package/dist/checkout/svg/layers-outline.svg +1 -1
  817. package/dist/checkout/svg/layers-sharp.svg +1 -1
  818. package/dist/checkout/svg/layers.svg +1 -1
  819. package/dist/checkout/svg/leaf-outline.svg +1 -1
  820. package/dist/checkout/svg/leaf-sharp.svg +1 -1
  821. package/dist/checkout/svg/leaf.svg +1 -1
  822. package/dist/checkout/svg/library-outline.svg +1 -1
  823. package/dist/checkout/svg/library-sharp.svg +1 -1
  824. package/dist/checkout/svg/library.svg +1 -1
  825. package/dist/checkout/svg/link-outline.svg +1 -1
  826. package/dist/checkout/svg/link-sharp.svg +1 -1
  827. package/dist/checkout/svg/link.svg +1 -1
  828. package/dist/checkout/svg/list-circle-outline.svg +1 -1
  829. package/dist/checkout/svg/list-circle-sharp.svg +1 -1
  830. package/dist/checkout/svg/list-circle.svg +1 -1
  831. package/dist/checkout/svg/list-outline.svg +1 -1
  832. package/dist/checkout/svg/list-sharp.svg +1 -1
  833. package/dist/checkout/svg/list.svg +1 -1
  834. package/dist/checkout/svg/locate-outline.svg +1 -1
  835. package/dist/checkout/svg/locate-sharp.svg +1 -1
  836. package/dist/checkout/svg/locate.svg +1 -1
  837. package/dist/checkout/svg/location-outline.svg +1 -1
  838. package/dist/checkout/svg/location-sharp.svg +1 -1
  839. package/dist/checkout/svg/location.svg +1 -1
  840. package/dist/checkout/svg/lock-closed-outline.svg +1 -1
  841. package/dist/checkout/svg/lock-closed-sharp.svg +1 -1
  842. package/dist/checkout/svg/lock-closed.svg +1 -1
  843. package/dist/checkout/svg/lock-open-outline.svg +1 -1
  844. package/dist/checkout/svg/lock-open-sharp.svg +1 -1
  845. package/dist/checkout/svg/lock-open.svg +1 -1
  846. package/dist/checkout/svg/log-in-outline.svg +1 -1
  847. package/dist/checkout/svg/log-in-sharp.svg +1 -1
  848. package/dist/checkout/svg/log-in.svg +1 -1
  849. package/dist/checkout/svg/log-out-outline.svg +1 -1
  850. package/dist/checkout/svg/log-out-sharp.svg +1 -1
  851. package/dist/checkout/svg/log-out.svg +1 -1
  852. package/dist/checkout/svg/logo-alipay.svg +1 -1
  853. package/dist/checkout/svg/logo-amazon.svg +1 -1
  854. package/dist/checkout/svg/logo-amplify.svg +1 -1
  855. package/dist/checkout/svg/logo-android.svg +1 -1
  856. package/dist/checkout/svg/logo-angular.svg +1 -1
  857. package/dist/checkout/svg/logo-appflow.svg +1 -1
  858. package/dist/checkout/svg/logo-apple-appstore.svg +1 -1
  859. package/dist/checkout/svg/logo-apple-ar.svg +1 -1
  860. package/dist/checkout/svg/logo-apple.svg +1 -1
  861. package/dist/checkout/svg/logo-behance.svg +1 -1
  862. package/dist/checkout/svg/logo-bitbucket.svg +1 -1
  863. package/dist/checkout/svg/logo-bitcoin.svg +1 -1
  864. package/dist/checkout/svg/logo-buffer.svg +1 -1
  865. package/dist/checkout/svg/logo-capacitor.svg +1 -1
  866. package/dist/checkout/svg/logo-chrome.svg +1 -1
  867. package/dist/checkout/svg/logo-closed-captioning.svg +1 -1
  868. package/dist/checkout/svg/logo-codepen.svg +1 -1
  869. package/dist/checkout/svg/logo-css3.svg +1 -1
  870. package/dist/checkout/svg/logo-designernews.svg +1 -1
  871. package/dist/checkout/svg/logo-deviantart.svg +1 -1
  872. package/dist/checkout/svg/logo-discord.svg +1 -1
  873. package/dist/checkout/svg/logo-docker.svg +1 -1
  874. package/dist/checkout/svg/logo-dribbble.svg +1 -1
  875. package/dist/checkout/svg/logo-dropbox.svg +1 -1
  876. package/dist/checkout/svg/logo-edge.svg +1 -1
  877. package/dist/checkout/svg/logo-electron.svg +1 -1
  878. package/dist/checkout/svg/logo-euro.svg +1 -1
  879. package/dist/checkout/svg/logo-facebook.svg +1 -1
  880. package/dist/checkout/svg/logo-figma.svg +1 -1
  881. package/dist/checkout/svg/logo-firebase.svg +1 -1
  882. package/dist/checkout/svg/logo-firefox.svg +1 -1
  883. package/dist/checkout/svg/logo-flickr.svg +1 -1
  884. package/dist/checkout/svg/logo-foursquare.svg +1 -1
  885. package/dist/checkout/svg/logo-github.svg +1 -1
  886. package/dist/checkout/svg/logo-gitlab.svg +1 -1
  887. package/dist/checkout/svg/logo-google-playstore.svg +1 -1
  888. package/dist/checkout/svg/logo-google.svg +1 -1
  889. package/dist/checkout/svg/logo-hackernews.svg +1 -1
  890. package/dist/checkout/svg/logo-html5.svg +1 -1
  891. package/dist/checkout/svg/logo-instagram.svg +1 -1
  892. package/dist/checkout/svg/logo-ionic.svg +1 -1
  893. package/dist/checkout/svg/logo-ionitron.svg +1 -1
  894. package/dist/checkout/svg/logo-javascript.svg +1 -1
  895. package/dist/checkout/svg/logo-laravel.svg +1 -1
  896. package/dist/checkout/svg/logo-linkedin.svg +1 -1
  897. package/dist/checkout/svg/logo-markdown.svg +1 -1
  898. package/dist/checkout/svg/logo-mastodon.svg +1 -1
  899. package/dist/checkout/svg/logo-medium.svg +1 -1
  900. package/dist/checkout/svg/logo-microsoft.svg +1 -1
  901. package/dist/checkout/svg/logo-no-smoking.svg +1 -1
  902. package/dist/checkout/svg/logo-nodejs.svg +1 -1
  903. package/dist/checkout/svg/logo-npm.svg +1 -1
  904. package/dist/checkout/svg/logo-octocat.svg +1 -1
  905. package/dist/checkout/svg/logo-paypal.svg +1 -1
  906. package/dist/checkout/svg/logo-pinterest.svg +1 -1
  907. package/dist/checkout/svg/logo-playstation.svg +1 -1
  908. package/dist/checkout/svg/logo-pwa.svg +1 -1
  909. package/dist/checkout/svg/logo-python.svg +1 -1
  910. package/dist/checkout/svg/logo-react.svg +1 -1
  911. package/dist/checkout/svg/logo-reddit.svg +1 -1
  912. package/dist/checkout/svg/logo-rss.svg +1 -1
  913. package/dist/checkout/svg/logo-sass.svg +1 -1
  914. package/dist/checkout/svg/logo-skype.svg +1 -1
  915. package/dist/checkout/svg/logo-slack.svg +1 -1
  916. package/dist/checkout/svg/logo-snapchat.svg +1 -1
  917. package/dist/checkout/svg/logo-soundcloud.svg +1 -1
  918. package/dist/checkout/svg/logo-stackoverflow.svg +1 -1
  919. package/dist/checkout/svg/logo-steam.svg +1 -1
  920. package/dist/checkout/svg/logo-stencil.svg +1 -1
  921. package/dist/checkout/svg/logo-tableau.svg +1 -1
  922. package/dist/checkout/svg/logo-tiktok.svg +1 -1
  923. package/dist/checkout/svg/logo-trapeze.svg +1 -1
  924. package/dist/checkout/svg/logo-tumblr.svg +1 -1
  925. package/dist/checkout/svg/logo-tux.svg +1 -1
  926. package/dist/checkout/svg/logo-twitch.svg +1 -1
  927. package/dist/checkout/svg/logo-twitter.svg +1 -1
  928. package/dist/checkout/svg/logo-usd.svg +1 -1
  929. package/dist/checkout/svg/logo-venmo.svg +1 -1
  930. package/dist/checkout/svg/logo-vercel.svg +1 -1
  931. package/dist/checkout/svg/logo-vimeo.svg +1 -1
  932. package/dist/checkout/svg/logo-vk.svg +1 -1
  933. package/dist/checkout/svg/logo-vue.svg +1 -1
  934. package/dist/checkout/svg/logo-web-component.svg +1 -1
  935. package/dist/checkout/svg/logo-wechat.svg +1 -1
  936. package/dist/checkout/svg/logo-whatsapp.svg +1 -1
  937. package/dist/checkout/svg/logo-windows.svg +1 -1
  938. package/dist/checkout/svg/logo-wordpress.svg +1 -1
  939. package/dist/checkout/svg/logo-x.svg +1 -1
  940. package/dist/checkout/svg/logo-xbox.svg +1 -1
  941. package/dist/checkout/svg/logo-xing.svg +1 -1
  942. package/dist/checkout/svg/logo-yahoo.svg +1 -1
  943. package/dist/checkout/svg/logo-yen.svg +1 -1
  944. package/dist/checkout/svg/logo-youtube.svg +1 -1
  945. package/dist/checkout/svg/magnet-outline.svg +1 -1
  946. package/dist/checkout/svg/magnet-sharp.svg +1 -1
  947. package/dist/checkout/svg/magnet.svg +1 -1
  948. package/dist/checkout/svg/mail-open-outline.svg +1 -1
  949. package/dist/checkout/svg/mail-open-sharp.svg +1 -1
  950. package/dist/checkout/svg/mail-open.svg +1 -1
  951. package/dist/checkout/svg/mail-outline.svg +1 -1
  952. package/dist/checkout/svg/mail-sharp.svg +1 -1
  953. package/dist/checkout/svg/mail-unread-outline.svg +1 -1
  954. package/dist/checkout/svg/mail-unread-sharp.svg +1 -1
  955. package/dist/checkout/svg/mail-unread.svg +1 -1
  956. package/dist/checkout/svg/mail.svg +1 -1
  957. package/dist/checkout/svg/male-female-outline.svg +1 -1
  958. package/dist/checkout/svg/male-female-sharp.svg +1 -1
  959. package/dist/checkout/svg/male-female.svg +1 -1
  960. package/dist/checkout/svg/male-outline.svg +1 -1
  961. package/dist/checkout/svg/male-sharp.svg +1 -1
  962. package/dist/checkout/svg/male.svg +1 -1
  963. package/dist/checkout/svg/man-outline.svg +1 -1
  964. package/dist/checkout/svg/man-sharp.svg +1 -1
  965. package/dist/checkout/svg/man.svg +1 -1
  966. package/dist/checkout/svg/map-outline.svg +1 -1
  967. package/dist/checkout/svg/map-sharp.svg +1 -1
  968. package/dist/checkout/svg/map.svg +1 -1
  969. package/dist/checkout/svg/medal-outline.svg +1 -1
  970. package/dist/checkout/svg/medal-sharp.svg +1 -1
  971. package/dist/checkout/svg/medal.svg +1 -1
  972. package/dist/checkout/svg/medical-outline.svg +1 -1
  973. package/dist/checkout/svg/medical-sharp.svg +1 -1
  974. package/dist/checkout/svg/medical.svg +1 -1
  975. package/dist/checkout/svg/medkit-outline.svg +1 -1
  976. package/dist/checkout/svg/medkit-sharp.svg +1 -1
  977. package/dist/checkout/svg/medkit.svg +1 -1
  978. package/dist/checkout/svg/megaphone-outline.svg +1 -1
  979. package/dist/checkout/svg/megaphone-sharp.svg +1 -1
  980. package/dist/checkout/svg/megaphone.svg +1 -1
  981. package/dist/checkout/svg/menu-outline.svg +1 -1
  982. package/dist/checkout/svg/menu-sharp.svg +1 -1
  983. package/dist/checkout/svg/menu.svg +1 -1
  984. package/dist/checkout/svg/mic-circle-outline.svg +1 -1
  985. package/dist/checkout/svg/mic-circle-sharp.svg +1 -1
  986. package/dist/checkout/svg/mic-circle.svg +1 -1
  987. package/dist/checkout/svg/mic-off-circle-outline.svg +1 -1
  988. package/dist/checkout/svg/mic-off-circle-sharp.svg +1 -1
  989. package/dist/checkout/svg/mic-off-circle.svg +1 -1
  990. package/dist/checkout/svg/mic-off-outline.svg +1 -1
  991. package/dist/checkout/svg/mic-off-sharp.svg +1 -1
  992. package/dist/checkout/svg/mic-off.svg +1 -1
  993. package/dist/checkout/svg/mic-outline.svg +1 -1
  994. package/dist/checkout/svg/mic-sharp.svg +1 -1
  995. package/dist/checkout/svg/mic.svg +1 -1
  996. package/dist/checkout/svg/moon-outline.svg +1 -1
  997. package/dist/checkout/svg/moon-sharp.svg +1 -1
  998. package/dist/checkout/svg/moon.svg +1 -1
  999. package/dist/checkout/svg/move-outline.svg +1 -1
  1000. package/dist/checkout/svg/move-sharp.svg +1 -1
  1001. package/dist/checkout/svg/move.svg +1 -1
  1002. package/dist/checkout/svg/musical-note-outline.svg +1 -1
  1003. package/dist/checkout/svg/musical-note-sharp.svg +1 -1
  1004. package/dist/checkout/svg/musical-note.svg +1 -1
  1005. package/dist/checkout/svg/musical-notes-outline.svg +1 -1
  1006. package/dist/checkout/svg/musical-notes-sharp.svg +1 -1
  1007. package/dist/checkout/svg/musical-notes.svg +1 -1
  1008. package/dist/checkout/svg/navigate-circle-outline.svg +1 -1
  1009. package/dist/checkout/svg/navigate-circle-sharp.svg +1 -1
  1010. package/dist/checkout/svg/navigate-circle.svg +1 -1
  1011. package/dist/checkout/svg/navigate-outline.svg +1 -1
  1012. package/dist/checkout/svg/navigate-sharp.svg +1 -1
  1013. package/dist/checkout/svg/navigate.svg +1 -1
  1014. package/dist/checkout/svg/newspaper-outline.svg +1 -1
  1015. package/dist/checkout/svg/newspaper-sharp.svg +1 -1
  1016. package/dist/checkout/svg/newspaper.svg +1 -1
  1017. package/dist/checkout/svg/notifications-circle-outline.svg +1 -1
  1018. package/dist/checkout/svg/notifications-circle-sharp.svg +1 -1
  1019. package/dist/checkout/svg/notifications-circle.svg +1 -1
  1020. package/dist/checkout/svg/notifications-off-circle-outline.svg +1 -1
  1021. package/dist/checkout/svg/notifications-off-circle-sharp.svg +1 -1
  1022. package/dist/checkout/svg/notifications-off-circle.svg +1 -1
  1023. package/dist/checkout/svg/notifications-off-outline.svg +1 -1
  1024. package/dist/checkout/svg/notifications-off-sharp.svg +1 -1
  1025. package/dist/checkout/svg/notifications-off.svg +1 -1
  1026. package/dist/checkout/svg/notifications-outline.svg +1 -1
  1027. package/dist/checkout/svg/notifications-sharp.svg +1 -1
  1028. package/dist/checkout/svg/notifications.svg +1 -1
  1029. package/dist/checkout/svg/nuclear-outline.svg +1 -1
  1030. package/dist/checkout/svg/nuclear-sharp.svg +1 -1
  1031. package/dist/checkout/svg/nuclear.svg +1 -1
  1032. package/dist/checkout/svg/nutrition-outline.svg +1 -1
  1033. package/dist/checkout/svg/nutrition-sharp.svg +1 -1
  1034. package/dist/checkout/svg/nutrition.svg +1 -1
  1035. package/dist/checkout/svg/open-outline.svg +1 -1
  1036. package/dist/checkout/svg/open-sharp.svg +1 -1
  1037. package/dist/checkout/svg/open.svg +1 -1
  1038. package/dist/checkout/svg/options-outline.svg +1 -1
  1039. package/dist/checkout/svg/options-sharp.svg +1 -1
  1040. package/dist/checkout/svg/options.svg +1 -1
  1041. package/dist/checkout/svg/paper-plane-outline.svg +1 -1
  1042. package/dist/checkout/svg/paper-plane-sharp.svg +1 -1
  1043. package/dist/checkout/svg/paper-plane.svg +1 -1
  1044. package/dist/checkout/svg/partly-sunny-outline.svg +1 -1
  1045. package/dist/checkout/svg/partly-sunny-sharp.svg +1 -1
  1046. package/dist/checkout/svg/partly-sunny.svg +1 -1
  1047. package/dist/checkout/svg/pause-circle-outline.svg +1 -1
  1048. package/dist/checkout/svg/pause-circle-sharp.svg +1 -1
  1049. package/dist/checkout/svg/pause-circle.svg +1 -1
  1050. package/dist/checkout/svg/pause-outline.svg +1 -1
  1051. package/dist/checkout/svg/pause-sharp.svg +1 -1
  1052. package/dist/checkout/svg/pause.svg +1 -1
  1053. package/dist/checkout/svg/paw-outline.svg +1 -1
  1054. package/dist/checkout/svg/paw-sharp.svg +1 -1
  1055. package/dist/checkout/svg/paw.svg +1 -1
  1056. package/dist/checkout/svg/pencil-outline.svg +1 -1
  1057. package/dist/checkout/svg/pencil-sharp.svg +1 -1
  1058. package/dist/checkout/svg/pencil.svg +1 -1
  1059. package/dist/checkout/svg/people-circle-outline.svg +1 -1
  1060. package/dist/checkout/svg/people-circle-sharp.svg +1 -1
  1061. package/dist/checkout/svg/people-circle.svg +1 -1
  1062. package/dist/checkout/svg/people-outline.svg +1 -1
  1063. package/dist/checkout/svg/people-sharp.svg +1 -1
  1064. package/dist/checkout/svg/people.svg +1 -1
  1065. package/dist/checkout/svg/person-add-outline.svg +1 -1
  1066. package/dist/checkout/svg/person-add-sharp.svg +1 -1
  1067. package/dist/checkout/svg/person-add.svg +1 -1
  1068. package/dist/checkout/svg/person-circle-outline.svg +1 -1
  1069. package/dist/checkout/svg/person-circle-sharp.svg +1 -1
  1070. package/dist/checkout/svg/person-circle.svg +1 -1
  1071. package/dist/checkout/svg/person-outline.svg +1 -1
  1072. package/dist/checkout/svg/person-remove-outline.svg +1 -1
  1073. package/dist/checkout/svg/person-remove-sharp.svg +1 -1
  1074. package/dist/checkout/svg/person-remove.svg +1 -1
  1075. package/dist/checkout/svg/person-sharp.svg +1 -1
  1076. package/dist/checkout/svg/person.svg +1 -1
  1077. package/dist/checkout/svg/phone-landscape-outline.svg +1 -1
  1078. package/dist/checkout/svg/phone-landscape-sharp.svg +1 -1
  1079. package/dist/checkout/svg/phone-landscape.svg +1 -1
  1080. package/dist/checkout/svg/phone-portrait-outline.svg +1 -1
  1081. package/dist/checkout/svg/phone-portrait-sharp.svg +1 -1
  1082. package/dist/checkout/svg/phone-portrait.svg +1 -1
  1083. package/dist/checkout/svg/pie-chart-outline.svg +1 -1
  1084. package/dist/checkout/svg/pie-chart-sharp.svg +1 -1
  1085. package/dist/checkout/svg/pie-chart.svg +1 -1
  1086. package/dist/checkout/svg/pin-outline.svg +1 -1
  1087. package/dist/checkout/svg/pin-sharp.svg +1 -1
  1088. package/dist/checkout/svg/pin.svg +1 -1
  1089. package/dist/checkout/svg/pint-outline.svg +1 -1
  1090. package/dist/checkout/svg/pint-sharp.svg +1 -1
  1091. package/dist/checkout/svg/pint.svg +1 -1
  1092. package/dist/checkout/svg/pizza-outline.svg +1 -1
  1093. package/dist/checkout/svg/pizza-sharp.svg +1 -1
  1094. package/dist/checkout/svg/pizza.svg +1 -1
  1095. package/dist/checkout/svg/planet-outline.svg +1 -1
  1096. package/dist/checkout/svg/planet-sharp.svg +1 -1
  1097. package/dist/checkout/svg/planet.svg +1 -1
  1098. package/dist/checkout/svg/play-back-circle-outline.svg +1 -1
  1099. package/dist/checkout/svg/play-back-circle-sharp.svg +1 -1
  1100. package/dist/checkout/svg/play-back-circle.svg +1 -1
  1101. package/dist/checkout/svg/play-back-outline.svg +1 -1
  1102. package/dist/checkout/svg/play-back-sharp.svg +1 -1
  1103. package/dist/checkout/svg/play-back.svg +1 -1
  1104. package/dist/checkout/svg/play-circle-outline.svg +1 -1
  1105. package/dist/checkout/svg/play-circle-sharp.svg +1 -1
  1106. package/dist/checkout/svg/play-circle.svg +1 -1
  1107. package/dist/checkout/svg/play-forward-circle-outline.svg +1 -1
  1108. package/dist/checkout/svg/play-forward-circle-sharp.svg +1 -1
  1109. package/dist/checkout/svg/play-forward-circle.svg +1 -1
  1110. package/dist/checkout/svg/play-forward-outline.svg +1 -1
  1111. package/dist/checkout/svg/play-forward-sharp.svg +1 -1
  1112. package/dist/checkout/svg/play-forward.svg +1 -1
  1113. package/dist/checkout/svg/play-outline.svg +1 -1
  1114. package/dist/checkout/svg/play-sharp.svg +1 -1
  1115. package/dist/checkout/svg/play-skip-back-circle-outline.svg +1 -1
  1116. package/dist/checkout/svg/play-skip-back-circle-sharp.svg +1 -1
  1117. package/dist/checkout/svg/play-skip-back-circle.svg +1 -1
  1118. package/dist/checkout/svg/play-skip-back-outline.svg +1 -1
  1119. package/dist/checkout/svg/play-skip-back-sharp.svg +1 -1
  1120. package/dist/checkout/svg/play-skip-back.svg +1 -1
  1121. package/dist/checkout/svg/play-skip-forward-circle-outline.svg +1 -1
  1122. package/dist/checkout/svg/play-skip-forward-circle-sharp.svg +1 -1
  1123. package/dist/checkout/svg/play-skip-forward-circle.svg +1 -1
  1124. package/dist/checkout/svg/play-skip-forward-outline.svg +1 -1
  1125. package/dist/checkout/svg/play-skip-forward-sharp.svg +1 -1
  1126. package/dist/checkout/svg/play-skip-forward.svg +1 -1
  1127. package/dist/checkout/svg/play.svg +1 -1
  1128. package/dist/checkout/svg/podium-outline.svg +1 -1
  1129. package/dist/checkout/svg/podium-sharp.svg +1 -1
  1130. package/dist/checkout/svg/podium.svg +1 -1
  1131. package/dist/checkout/svg/power-outline.svg +1 -1
  1132. package/dist/checkout/svg/power-sharp.svg +1 -1
  1133. package/dist/checkout/svg/power.svg +1 -1
  1134. package/dist/checkout/svg/pricetag-outline.svg +1 -1
  1135. package/dist/checkout/svg/pricetag-sharp.svg +1 -1
  1136. package/dist/checkout/svg/pricetag.svg +1 -1
  1137. package/dist/checkout/svg/pricetags-outline.svg +1 -1
  1138. package/dist/checkout/svg/pricetags-sharp.svg +1 -1
  1139. package/dist/checkout/svg/pricetags.svg +1 -1
  1140. package/dist/checkout/svg/print-outline.svg +1 -1
  1141. package/dist/checkout/svg/print-sharp.svg +1 -1
  1142. package/dist/checkout/svg/print.svg +1 -1
  1143. package/dist/checkout/svg/prism-outline.svg +1 -1
  1144. package/dist/checkout/svg/prism-sharp.svg +1 -1
  1145. package/dist/checkout/svg/prism.svg +1 -1
  1146. package/dist/checkout/svg/pulse-outline.svg +1 -1
  1147. package/dist/checkout/svg/pulse-sharp.svg +1 -1
  1148. package/dist/checkout/svg/pulse.svg +1 -1
  1149. package/dist/checkout/svg/push-outline.svg +1 -1
  1150. package/dist/checkout/svg/push-sharp.svg +1 -1
  1151. package/dist/checkout/svg/push.svg +1 -1
  1152. package/dist/checkout/svg/qr-code-outline.svg +1 -1
  1153. package/dist/checkout/svg/qr-code-sharp.svg +1 -1
  1154. package/dist/checkout/svg/qr-code.svg +1 -1
  1155. package/dist/checkout/svg/radio-button-off-outline.svg +1 -1
  1156. package/dist/checkout/svg/radio-button-off-sharp.svg +1 -1
  1157. package/dist/checkout/svg/radio-button-off.svg +1 -1
  1158. package/dist/checkout/svg/radio-button-on-outline.svg +1 -1
  1159. package/dist/checkout/svg/radio-button-on-sharp.svg +1 -1
  1160. package/dist/checkout/svg/radio-button-on.svg +1 -1
  1161. package/dist/checkout/svg/radio-outline.svg +1 -1
  1162. package/dist/checkout/svg/radio-sharp.svg +1 -1
  1163. package/dist/checkout/svg/radio.svg +1 -1
  1164. package/dist/checkout/svg/rainy-outline.svg +1 -1
  1165. package/dist/checkout/svg/rainy-sharp.svg +1 -1
  1166. package/dist/checkout/svg/rainy.svg +1 -1
  1167. package/dist/checkout/svg/reader-outline.svg +1 -1
  1168. package/dist/checkout/svg/reader-sharp.svg +1 -1
  1169. package/dist/checkout/svg/reader.svg +1 -1
  1170. package/dist/checkout/svg/receipt-outline.svg +1 -1
  1171. package/dist/checkout/svg/receipt-sharp.svg +1 -1
  1172. package/dist/checkout/svg/receipt.svg +1 -1
  1173. package/dist/checkout/svg/recording-outline.svg +1 -1
  1174. package/dist/checkout/svg/recording-sharp.svg +1 -1
  1175. package/dist/checkout/svg/recording.svg +1 -1
  1176. package/dist/checkout/svg/refresh-circle-outline.svg +1 -1
  1177. package/dist/checkout/svg/refresh-circle-sharp.svg +1 -1
  1178. package/dist/checkout/svg/refresh-circle.svg +1 -1
  1179. package/dist/checkout/svg/refresh-outline.svg +1 -1
  1180. package/dist/checkout/svg/refresh-sharp.svg +1 -1
  1181. package/dist/checkout/svg/refresh.svg +1 -1
  1182. package/dist/checkout/svg/reload-circle-outline.svg +1 -1
  1183. package/dist/checkout/svg/reload-circle-sharp.svg +1 -1
  1184. package/dist/checkout/svg/reload-circle.svg +1 -1
  1185. package/dist/checkout/svg/reload-outline.svg +1 -1
  1186. package/dist/checkout/svg/reload-sharp.svg +1 -1
  1187. package/dist/checkout/svg/reload.svg +1 -1
  1188. package/dist/checkout/svg/remove-circle-outline.svg +1 -1
  1189. package/dist/checkout/svg/remove-circle-sharp.svg +1 -1
  1190. package/dist/checkout/svg/remove-circle.svg +1 -1
  1191. package/dist/checkout/svg/remove-outline.svg +1 -1
  1192. package/dist/checkout/svg/remove-sharp.svg +1 -1
  1193. package/dist/checkout/svg/remove.svg +1 -1
  1194. package/dist/checkout/svg/reorder-four-outline.svg +1 -1
  1195. package/dist/checkout/svg/reorder-four-sharp.svg +1 -1
  1196. package/dist/checkout/svg/reorder-four.svg +1 -1
  1197. package/dist/checkout/svg/reorder-three-outline.svg +1 -1
  1198. package/dist/checkout/svg/reorder-three-sharp.svg +1 -1
  1199. package/dist/checkout/svg/reorder-three.svg +1 -1
  1200. package/dist/checkout/svg/reorder-two-outline.svg +1 -1
  1201. package/dist/checkout/svg/reorder-two-sharp.svg +1 -1
  1202. package/dist/checkout/svg/reorder-two.svg +1 -1
  1203. package/dist/checkout/svg/repeat-outline.svg +1 -1
  1204. package/dist/checkout/svg/repeat-sharp.svg +1 -1
  1205. package/dist/checkout/svg/repeat.svg +1 -1
  1206. package/dist/checkout/svg/resize-outline.svg +1 -1
  1207. package/dist/checkout/svg/resize-sharp.svg +1 -1
  1208. package/dist/checkout/svg/resize.svg +1 -1
  1209. package/dist/checkout/svg/restaurant-outline.svg +1 -1
  1210. package/dist/checkout/svg/restaurant-sharp.svg +1 -1
  1211. package/dist/checkout/svg/restaurant.svg +1 -1
  1212. package/dist/checkout/svg/return-down-back-outline.svg +1 -1
  1213. package/dist/checkout/svg/return-down-back-sharp.svg +1 -1
  1214. package/dist/checkout/svg/return-down-back.svg +1 -1
  1215. package/dist/checkout/svg/return-down-forward-outline.svg +1 -1
  1216. package/dist/checkout/svg/return-down-forward-sharp.svg +1 -1
  1217. package/dist/checkout/svg/return-down-forward.svg +1 -1
  1218. package/dist/checkout/svg/return-up-back-outline.svg +1 -1
  1219. package/dist/checkout/svg/return-up-back-sharp.svg +1 -1
  1220. package/dist/checkout/svg/return-up-back.svg +1 -1
  1221. package/dist/checkout/svg/return-up-forward-outline.svg +1 -1
  1222. package/dist/checkout/svg/return-up-forward-sharp.svg +1 -1
  1223. package/dist/checkout/svg/return-up-forward.svg +1 -1
  1224. package/dist/checkout/svg/ribbon-outline.svg +1 -1
  1225. package/dist/checkout/svg/ribbon-sharp.svg +1 -1
  1226. package/dist/checkout/svg/ribbon.svg +1 -1
  1227. package/dist/checkout/svg/rocket-outline.svg +1 -1
  1228. package/dist/checkout/svg/rocket-sharp.svg +1 -1
  1229. package/dist/checkout/svg/rocket.svg +1 -1
  1230. package/dist/checkout/svg/rose-outline.svg +1 -1
  1231. package/dist/checkout/svg/rose-sharp.svg +1 -1
  1232. package/dist/checkout/svg/rose.svg +1 -1
  1233. package/dist/checkout/svg/sad-outline.svg +1 -1
  1234. package/dist/checkout/svg/sad-sharp.svg +1 -1
  1235. package/dist/checkout/svg/sad.svg +1 -1
  1236. package/dist/checkout/svg/save-outline.svg +1 -1
  1237. package/dist/checkout/svg/save-sharp.svg +1 -1
  1238. package/dist/checkout/svg/save.svg +1 -1
  1239. package/dist/checkout/svg/scale-outline.svg +1 -1
  1240. package/dist/checkout/svg/scale-sharp.svg +1 -1
  1241. package/dist/checkout/svg/scale.svg +1 -1
  1242. package/dist/checkout/svg/scan-circle-outline.svg +1 -1
  1243. package/dist/checkout/svg/scan-circle-sharp.svg +1 -1
  1244. package/dist/checkout/svg/scan-circle.svg +1 -1
  1245. package/dist/checkout/svg/scan-outline.svg +1 -1
  1246. package/dist/checkout/svg/scan-sharp.svg +1 -1
  1247. package/dist/checkout/svg/scan.svg +1 -1
  1248. package/dist/checkout/svg/school-outline.svg +1 -1
  1249. package/dist/checkout/svg/school-sharp.svg +1 -1
  1250. package/dist/checkout/svg/school.svg +1 -1
  1251. package/dist/checkout/svg/search-circle-outline.svg +1 -1
  1252. package/dist/checkout/svg/search-circle-sharp.svg +1 -1
  1253. package/dist/checkout/svg/search-circle.svg +1 -1
  1254. package/dist/checkout/svg/search-outline.svg +1 -1
  1255. package/dist/checkout/svg/search-sharp.svg +1 -1
  1256. package/dist/checkout/svg/search.svg +1 -1
  1257. package/dist/checkout/svg/send-outline.svg +1 -1
  1258. package/dist/checkout/svg/send-sharp.svg +1 -1
  1259. package/dist/checkout/svg/send.svg +1 -1
  1260. package/dist/checkout/svg/server-outline.svg +1 -1
  1261. package/dist/checkout/svg/server-sharp.svg +1 -1
  1262. package/dist/checkout/svg/server.svg +1 -1
  1263. package/dist/checkout/svg/settings-outline.svg +1 -1
  1264. package/dist/checkout/svg/settings-sharp.svg +1 -1
  1265. package/dist/checkout/svg/settings.svg +1 -1
  1266. package/dist/checkout/svg/shapes-outline.svg +1 -1
  1267. package/dist/checkout/svg/shapes-sharp.svg +1 -1
  1268. package/dist/checkout/svg/shapes.svg +1 -1
  1269. package/dist/checkout/svg/share-outline.svg +1 -1
  1270. package/dist/checkout/svg/share-sharp.svg +1 -1
  1271. package/dist/checkout/svg/share-social-outline.svg +1 -1
  1272. package/dist/checkout/svg/share-social-sharp.svg +1 -1
  1273. package/dist/checkout/svg/share-social.svg +1 -1
  1274. package/dist/checkout/svg/share.svg +1 -1
  1275. package/dist/checkout/svg/shield-checkmark-outline.svg +1 -1
  1276. package/dist/checkout/svg/shield-checkmark-sharp.svg +1 -1
  1277. package/dist/checkout/svg/shield-checkmark.svg +1 -1
  1278. package/dist/checkout/svg/shield-half-outline.svg +1 -1
  1279. package/dist/checkout/svg/shield-half-sharp.svg +1 -1
  1280. package/dist/checkout/svg/shield-half.svg +1 -1
  1281. package/dist/checkout/svg/shield-outline.svg +1 -1
  1282. package/dist/checkout/svg/shield-sharp.svg +1 -1
  1283. package/dist/checkout/svg/shield.svg +1 -1
  1284. package/dist/checkout/svg/shirt-outline.svg +1 -1
  1285. package/dist/checkout/svg/shirt-sharp.svg +1 -1
  1286. package/dist/checkout/svg/shirt.svg +1 -1
  1287. package/dist/checkout/svg/shuffle-outline.svg +1 -1
  1288. package/dist/checkout/svg/shuffle-sharp.svg +1 -1
  1289. package/dist/checkout/svg/shuffle.svg +1 -1
  1290. package/dist/checkout/svg/skull-outline.svg +1 -1
  1291. package/dist/checkout/svg/skull-sharp.svg +1 -1
  1292. package/dist/checkout/svg/skull.svg +1 -1
  1293. package/dist/checkout/svg/snow-outline.svg +1 -1
  1294. package/dist/checkout/svg/snow-sharp.svg +1 -1
  1295. package/dist/checkout/svg/snow.svg +1 -1
  1296. package/dist/checkout/svg/sparkles-outline.svg +1 -1
  1297. package/dist/checkout/svg/sparkles-sharp.svg +1 -1
  1298. package/dist/checkout/svg/sparkles.svg +1 -1
  1299. package/dist/checkout/svg/speedometer-outline.svg +1 -1
  1300. package/dist/checkout/svg/speedometer-sharp.svg +1 -1
  1301. package/dist/checkout/svg/speedometer.svg +1 -1
  1302. package/dist/checkout/svg/square-outline.svg +1 -1
  1303. package/dist/checkout/svg/square-sharp.svg +1 -1
  1304. package/dist/checkout/svg/square.svg +1 -1
  1305. package/dist/checkout/svg/star-half-outline.svg +1 -1
  1306. package/dist/checkout/svg/star-half-sharp.svg +1 -1
  1307. package/dist/checkout/svg/star-half.svg +1 -1
  1308. package/dist/checkout/svg/star-outline.svg +1 -1
  1309. package/dist/checkout/svg/star-sharp.svg +1 -1
  1310. package/dist/checkout/svg/star.svg +1 -1
  1311. package/dist/checkout/svg/stats-chart-outline.svg +1 -1
  1312. package/dist/checkout/svg/stats-chart-sharp.svg +1 -1
  1313. package/dist/checkout/svg/stats-chart.svg +1 -1
  1314. package/dist/checkout/svg/stop-circle-outline.svg +1 -1
  1315. package/dist/checkout/svg/stop-circle-sharp.svg +1 -1
  1316. package/dist/checkout/svg/stop-circle.svg +1 -1
  1317. package/dist/checkout/svg/stop-outline.svg +1 -1
  1318. package/dist/checkout/svg/stop-sharp.svg +1 -1
  1319. package/dist/checkout/svg/stop.svg +1 -1
  1320. package/dist/checkout/svg/stopwatch-outline.svg +1 -1
  1321. package/dist/checkout/svg/stopwatch-sharp.svg +1 -1
  1322. package/dist/checkout/svg/stopwatch.svg +1 -1
  1323. package/dist/checkout/svg/storefront-outline.svg +1 -1
  1324. package/dist/checkout/svg/storefront-sharp.svg +1 -1
  1325. package/dist/checkout/svg/storefront.svg +1 -1
  1326. package/dist/checkout/svg/subway-outline.svg +1 -1
  1327. package/dist/checkout/svg/subway-sharp.svg +1 -1
  1328. package/dist/checkout/svg/subway.svg +1 -1
  1329. package/dist/checkout/svg/sunny-outline.svg +1 -1
  1330. package/dist/checkout/svg/sunny-sharp.svg +1 -1
  1331. package/dist/checkout/svg/sunny.svg +1 -1
  1332. package/dist/checkout/svg/swap-horizontal-outline.svg +1 -1
  1333. package/dist/checkout/svg/swap-horizontal-sharp.svg +1 -1
  1334. package/dist/checkout/svg/swap-horizontal.svg +1 -1
  1335. package/dist/checkout/svg/swap-vertical-outline.svg +1 -1
  1336. package/dist/checkout/svg/swap-vertical-sharp.svg +1 -1
  1337. package/dist/checkout/svg/swap-vertical.svg +1 -1
  1338. package/dist/checkout/svg/sync-circle-outline.svg +1 -1
  1339. package/dist/checkout/svg/sync-circle-sharp.svg +1 -1
  1340. package/dist/checkout/svg/sync-circle.svg +1 -1
  1341. package/dist/checkout/svg/sync-outline.svg +1 -1
  1342. package/dist/checkout/svg/sync-sharp.svg +1 -1
  1343. package/dist/checkout/svg/sync.svg +1 -1
  1344. package/dist/checkout/svg/tablet-landscape-outline.svg +1 -1
  1345. package/dist/checkout/svg/tablet-landscape-sharp.svg +1 -1
  1346. package/dist/checkout/svg/tablet-landscape.svg +1 -1
  1347. package/dist/checkout/svg/tablet-portrait-outline.svg +1 -1
  1348. package/dist/checkout/svg/tablet-portrait-sharp.svg +1 -1
  1349. package/dist/checkout/svg/tablet-portrait.svg +1 -1
  1350. package/dist/checkout/svg/telescope-outline.svg +1 -1
  1351. package/dist/checkout/svg/telescope-sharp.svg +1 -1
  1352. package/dist/checkout/svg/telescope.svg +1 -1
  1353. package/dist/checkout/svg/tennisball-outline.svg +1 -1
  1354. package/dist/checkout/svg/tennisball-sharp.svg +1 -1
  1355. package/dist/checkout/svg/tennisball.svg +1 -1
  1356. package/dist/checkout/svg/terminal-outline.svg +1 -1
  1357. package/dist/checkout/svg/terminal-sharp.svg +1 -1
  1358. package/dist/checkout/svg/terminal.svg +1 -1
  1359. package/dist/checkout/svg/text-outline.svg +1 -1
  1360. package/dist/checkout/svg/text-sharp.svg +1 -1
  1361. package/dist/checkout/svg/text.svg +1 -1
  1362. package/dist/checkout/svg/thermometer-outline.svg +1 -1
  1363. package/dist/checkout/svg/thermometer-sharp.svg +1 -1
  1364. package/dist/checkout/svg/thermometer.svg +1 -1
  1365. package/dist/checkout/svg/thumbs-down-outline.svg +1 -1
  1366. package/dist/checkout/svg/thumbs-down-sharp.svg +1 -1
  1367. package/dist/checkout/svg/thumbs-down.svg +1 -1
  1368. package/dist/checkout/svg/thumbs-up-outline.svg +1 -1
  1369. package/dist/checkout/svg/thumbs-up-sharp.svg +1 -1
  1370. package/dist/checkout/svg/thumbs-up.svg +1 -1
  1371. package/dist/checkout/svg/thunderstorm-outline.svg +1 -1
  1372. package/dist/checkout/svg/thunderstorm-sharp.svg +1 -1
  1373. package/dist/checkout/svg/thunderstorm.svg +1 -1
  1374. package/dist/checkout/svg/ticket-outline.svg +1 -1
  1375. package/dist/checkout/svg/ticket-sharp.svg +1 -1
  1376. package/dist/checkout/svg/ticket.svg +1 -1
  1377. package/dist/checkout/svg/time-outline.svg +1 -1
  1378. package/dist/checkout/svg/time-sharp.svg +1 -1
  1379. package/dist/checkout/svg/time.svg +1 -1
  1380. package/dist/checkout/svg/timer-outline.svg +1 -1
  1381. package/dist/checkout/svg/timer-sharp.svg +1 -1
  1382. package/dist/checkout/svg/timer.svg +1 -1
  1383. package/dist/checkout/svg/today-outline.svg +1 -1
  1384. package/dist/checkout/svg/today-sharp.svg +1 -1
  1385. package/dist/checkout/svg/today.svg +1 -1
  1386. package/dist/checkout/svg/toggle-outline.svg +1 -1
  1387. package/dist/checkout/svg/toggle-sharp.svg +1 -1
  1388. package/dist/checkout/svg/toggle.svg +1 -1
  1389. package/dist/checkout/svg/trail-sign-outline.svg +1 -1
  1390. package/dist/checkout/svg/trail-sign-sharp.svg +1 -1
  1391. package/dist/checkout/svg/trail-sign.svg +1 -1
  1392. package/dist/checkout/svg/train-outline.svg +1 -1
  1393. package/dist/checkout/svg/train-sharp.svg +1 -1
  1394. package/dist/checkout/svg/train.svg +1 -1
  1395. package/dist/checkout/svg/transgender-outline.svg +1 -1
  1396. package/dist/checkout/svg/transgender-sharp.svg +1 -1
  1397. package/dist/checkout/svg/transgender.svg +1 -1
  1398. package/dist/checkout/svg/trash-bin-outline.svg +1 -1
  1399. package/dist/checkout/svg/trash-bin-sharp.svg +1 -1
  1400. package/dist/checkout/svg/trash-bin.svg +1 -1
  1401. package/dist/checkout/svg/trash-outline.svg +1 -1
  1402. package/dist/checkout/svg/trash-sharp.svg +1 -1
  1403. package/dist/checkout/svg/trash.svg +1 -1
  1404. package/dist/checkout/svg/trending-down-outline.svg +1 -1
  1405. package/dist/checkout/svg/trending-down-sharp.svg +1 -1
  1406. package/dist/checkout/svg/trending-down.svg +1 -1
  1407. package/dist/checkout/svg/trending-up-outline.svg +1 -1
  1408. package/dist/checkout/svg/trending-up-sharp.svg +1 -1
  1409. package/dist/checkout/svg/trending-up.svg +1 -1
  1410. package/dist/checkout/svg/triangle-outline.svg +1 -1
  1411. package/dist/checkout/svg/triangle-sharp.svg +1 -1
  1412. package/dist/checkout/svg/triangle.svg +1 -1
  1413. package/dist/checkout/svg/trophy-outline.svg +1 -1
  1414. package/dist/checkout/svg/trophy-sharp.svg +1 -1
  1415. package/dist/checkout/svg/trophy.svg +1 -1
  1416. package/dist/checkout/svg/tv-outline.svg +1 -1
  1417. package/dist/checkout/svg/tv-sharp.svg +1 -1
  1418. package/dist/checkout/svg/tv.svg +1 -1
  1419. package/dist/checkout/svg/umbrella-outline.svg +1 -1
  1420. package/dist/checkout/svg/umbrella-sharp.svg +1 -1
  1421. package/dist/checkout/svg/umbrella.svg +1 -1
  1422. package/dist/checkout/svg/unlink-outline.svg +1 -1
  1423. package/dist/checkout/svg/unlink-sharp.svg +1 -1
  1424. package/dist/checkout/svg/unlink.svg +1 -1
  1425. package/dist/checkout/svg/videocam-off-outline.svg +1 -1
  1426. package/dist/checkout/svg/videocam-off-sharp.svg +1 -1
  1427. package/dist/checkout/svg/videocam-off.svg +1 -1
  1428. package/dist/checkout/svg/videocam-outline.svg +1 -1
  1429. package/dist/checkout/svg/videocam-sharp.svg +1 -1
  1430. package/dist/checkout/svg/videocam.svg +1 -1
  1431. package/dist/checkout/svg/volume-high-outline.svg +1 -1
  1432. package/dist/checkout/svg/volume-high-sharp.svg +1 -1
  1433. package/dist/checkout/svg/volume-high.svg +1 -1
  1434. package/dist/checkout/svg/volume-low-outline.svg +1 -1
  1435. package/dist/checkout/svg/volume-low-sharp.svg +1 -1
  1436. package/dist/checkout/svg/volume-low.svg +1 -1
  1437. package/dist/checkout/svg/volume-medium-outline.svg +1 -1
  1438. package/dist/checkout/svg/volume-medium-sharp.svg +1 -1
  1439. package/dist/checkout/svg/volume-medium.svg +1 -1
  1440. package/dist/checkout/svg/volume-mute-outline.svg +1 -1
  1441. package/dist/checkout/svg/volume-mute-sharp.svg +1 -1
  1442. package/dist/checkout/svg/volume-mute.svg +1 -1
  1443. package/dist/checkout/svg/volume-off-outline.svg +1 -1
  1444. package/dist/checkout/svg/volume-off-sharp.svg +1 -1
  1445. package/dist/checkout/svg/volume-off.svg +1 -1
  1446. package/dist/checkout/svg/walk-outline.svg +1 -1
  1447. package/dist/checkout/svg/walk-sharp.svg +1 -1
  1448. package/dist/checkout/svg/walk.svg +1 -1
  1449. package/dist/checkout/svg/wallet-outline.svg +1 -1
  1450. package/dist/checkout/svg/wallet-sharp.svg +1 -1
  1451. package/dist/checkout/svg/wallet.svg +1 -1
  1452. package/dist/checkout/svg/warning-outline.svg +1 -1
  1453. package/dist/checkout/svg/warning-sharp.svg +1 -1
  1454. package/dist/checkout/svg/warning.svg +1 -1
  1455. package/dist/checkout/svg/watch-outline.svg +1 -1
  1456. package/dist/checkout/svg/watch-sharp.svg +1 -1
  1457. package/dist/checkout/svg/watch.svg +1 -1
  1458. package/dist/checkout/svg/water-outline.svg +1 -1
  1459. package/dist/checkout/svg/water-sharp.svg +1 -1
  1460. package/dist/checkout/svg/water.svg +1 -1
  1461. package/dist/checkout/svg/wifi-outline.svg +1 -1
  1462. package/dist/checkout/svg/wifi-sharp.svg +1 -1
  1463. package/dist/checkout/svg/wifi.svg +1 -1
  1464. package/dist/checkout/svg/wine-outline.svg +1 -1
  1465. package/dist/checkout/svg/wine-sharp.svg +1 -1
  1466. package/dist/checkout/svg/wine.svg +1 -1
  1467. package/dist/checkout/svg/woman-outline.svg +1 -1
  1468. package/dist/checkout/svg/woman-sharp.svg +1 -1
  1469. package/dist/checkout/svg/woman.svg +1 -1
  1470. package/dist/cjs/amwal-checkout-button_5.cjs.entry.js +40 -87
  1471. package/dist/cjs/amwal-installments-guide.cjs.entry.js +1 -1
  1472. package/dist/cjs/amwal-pos.cjs.entry.js +1 -1
  1473. package/dist/cjs/amwal-widget-modal.cjs.entry.js +1 -1
  1474. package/dist/cjs/amwal-widget.cjs.entry.js +1 -1
  1475. package/dist/cjs/{animation-DmZTzC07.js → animation-BhN-MT4J.js} +253 -13
  1476. package/dist/cjs/{app-globals-B6FjPa2t.js → app-globals-NtXImkuk.js} +1 -1
  1477. package/dist/cjs/checkout.cjs.js +4 -4
  1478. package/dist/cjs/{config-DMigaw94.js → config-ptk2Lf4l.js} +1 -3
  1479. package/dist/cjs/{data-C9NB5QNL.js → data-UgkxeXMB.js} +8 -33
  1480. package/dist/cjs/form-controller-DRf0gBOg.js +66 -0
  1481. package/dist/cjs/{framework-delegate-BFev42vk.js → framework-delegate-D-6PUvOi.js} +1 -1
  1482. package/dist/cjs/{gesture-controller-CiprlUhH.js → gesture-controller-IMq9Cgi2.js} +0 -1
  1483. package/dist/cjs/{haptic-DCn793nz.js → haptic-CC9tl6g8.js} +54 -6
  1484. package/dist/cjs/{hardware-back-button-CMceVPAk.js → hardware-back-button-C2D2eOk8.js} +8 -7
  1485. package/dist/cjs/{helpers-VdS_U_Su.js → helpers-B4vhh9gt.js} +88 -10
  1486. package/dist/cjs/index-6eOg4xTk.js +51 -0
  1487. package/dist/cjs/index-CH3IFTaK.js +38 -0
  1488. package/dist/cjs/{index-Calgykmz.js → index-CKcQE8Zg.js} +1 -1
  1489. package/dist/cjs/index-DZA7ogU0.js +244 -0
  1490. package/dist/cjs/{index-q1-id3dG.js → index-DncWzXDA.js} +4 -134
  1491. package/dist/cjs/{index-D1TvI2Ig.js → index-XMjUjboS.js} +34 -6
  1492. package/dist/cjs/{index-DaUK-X4l.js → index-bc_r9XRf.js} +7 -7
  1493. package/dist/cjs/{index-BQ9HVZwH.js → index-q1ImtF5k.js} +2 -2
  1494. package/dist/cjs/{input-shims-CJrPMP1S.js → input-shims-CCRbO2DB.js} +4 -34
  1495. package/dist/cjs/{input.utils-D9hnMuNq.js → input.utils-CyVgmmWQ.js} +3 -15
  1496. package/dist/cjs/ion-accordion-group.cjs.entry.js +9 -23
  1497. package/dist/cjs/ion-accordion.cjs.entry.js +26 -124
  1498. package/dist/cjs/ion-action-sheet_3.cjs.entry.js +1016 -0
  1499. package/dist/cjs/ion-app.cjs.entry.js +16 -16
  1500. package/dist/cjs/ion-avatar.cjs.entry.js +3 -3
  1501. package/dist/cjs/ion-back-button.cjs.entry.js +18 -19
  1502. package/dist/cjs/ion-backdrop.cjs.entry.js +15 -12
  1503. package/dist/cjs/ion-badge.cjs.entry.js +7 -6
  1504. package/dist/cjs/ion-breadcrumb.cjs.entry.js +23 -27
  1505. package/dist/cjs/ion-breadcrumbs.cjs.entry.js +10 -16
  1506. package/dist/cjs/ion-buttons_3.cjs.entry.js +886 -0
  1507. package/dist/cjs/ion-card-content.cjs.entry.js +3 -3
  1508. package/dist/cjs/ion-card-header.cjs.entry.js +5 -9
  1509. package/dist/cjs/ion-card-subtitle.cjs.entry.js +7 -6
  1510. package/dist/cjs/ion-card-title.cjs.entry.js +6 -5
  1511. package/dist/cjs/ion-card.cjs.entry.js +12 -19
  1512. package/dist/cjs/ion-checkbox_7.cjs.entry.js +965 -0
  1513. package/dist/cjs/ion-chip.cjs.entry.js +5 -10
  1514. package/dist/cjs/ion-col.cjs.entry.js +28 -4
  1515. package/dist/cjs/ion-content.cjs.entry.js +411 -0
  1516. package/dist/cjs/ion-datetime-button.cjs.entry.js +23 -26
  1517. package/dist/cjs/ion-datetime.cjs.entry.js +254 -342
  1518. package/dist/cjs/ion-fab-button.cjs.entry.js +22 -41
  1519. package/dist/cjs/ion-fab-list.cjs.entry.js +5 -11
  1520. package/dist/cjs/ion-fab.cjs.entry.js +6 -13
  1521. package/dist/cjs/ion-footer.cjs.entry.js +10 -16
  1522. package/dist/cjs/ion-grid.cjs.entry.js +4 -7
  1523. package/dist/cjs/ion-header.cjs.entry.js +340 -0
  1524. package/dist/cjs/ion-icon.cjs.entry.js +199 -268
  1525. package/dist/cjs/ion-img.cjs.entry.js +8 -4
  1526. package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +11 -9
  1527. package/dist/cjs/ion-infinite-scroll.cjs.entry.js +10 -31
  1528. package/dist/cjs/ion-input.cjs.entry.js +140 -187
  1529. package/dist/cjs/ion-item-divider.cjs.entry.js +7 -13
  1530. package/dist/cjs/ion-item-group.cjs.entry.js +3 -3
  1531. package/dist/cjs/ion-item-option.cjs.entry.js +14 -18
  1532. package/dist/cjs/ion-item-options.cjs.entry.js +6 -10
  1533. package/dist/cjs/ion-item-sliding.cjs.entry.js +9 -12
  1534. package/dist/cjs/ion-loading.cjs.entry.js +34 -55
  1535. package/dist/cjs/ion-menu-button.cjs.entry.js +18 -24
  1536. package/dist/cjs/ion-menu-toggle.cjs.entry.js +13 -17
  1537. package/dist/cjs/ion-menu.cjs.entry.js +78 -132
  1538. package/dist/cjs/ion-modal.cjs.entry.js +1733 -0
  1539. package/dist/cjs/ion-nav-link.cjs.entry.js +6 -6
  1540. package/dist/cjs/ion-nav.cjs.entry.js +18 -19
  1541. package/dist/cjs/ion-note.cjs.entry.js +7 -6
  1542. package/dist/cjs/{ion-picker-legacy-column.cjs.entry.js → ion-picker-column.cjs.entry.js} +12 -11
  1543. package/dist/cjs/ion-picker.cjs.entry.js +279 -0
  1544. package/dist/cjs/ion-popover.cjs.entry.js +50 -181
  1545. package/dist/cjs/ion-progress-bar.cjs.entry.js +8 -27
  1546. package/dist/cjs/ion-range.cjs.entry.js +142 -202
  1547. package/dist/cjs/ion-refresher-content.cjs.entry.js +15 -11
  1548. package/dist/cjs/ion-refresher.cjs.entry.js +15 -108
  1549. package/dist/cjs/ion-reorder-group.cjs.entry.js +12 -29
  1550. package/dist/cjs/ion-reorder.cjs.entry.js +4 -4
  1551. package/dist/cjs/ion-route-redirect.cjs.entry.js +3 -1
  1552. package/dist/cjs/ion-route.cjs.entry.js +5 -7
  1553. package/dist/cjs/ion-router-link.cjs.entry.js +11 -10
  1554. package/dist/cjs/ion-router-outlet.cjs.entry.js +13 -16
  1555. package/dist/cjs/ion-router.cjs.entry.js +18 -37
  1556. package/dist/cjs/ion-row.cjs.entry.js +3 -3
  1557. package/dist/cjs/ion-searchbar.cjs.entry.js +38 -87
  1558. package/dist/cjs/ion-segment-button.cjs.entry.js +15 -44
  1559. package/dist/cjs/ion-segment.cjs.entry.js +36 -159
  1560. package/dist/cjs/ion-select-option.cjs.entry.js +4 -6
  1561. package/dist/cjs/ion-select.cjs.entry.js +216 -334
  1562. package/dist/cjs/ion-skeleton-text.cjs.entry.js +5 -8
  1563. package/dist/cjs/ion-spinner.cjs.entry.js +8 -8
  1564. package/dist/cjs/ion-split-pane.cjs.entry.js +21 -38
  1565. package/dist/cjs/ion-tab-bar.cjs.entry.js +13 -29
  1566. package/dist/cjs/ion-tab-button.cjs.entry.js +16 -16
  1567. package/dist/cjs/ion-tab.cjs.entry.js +9 -7
  1568. package/dist/cjs/ion-tabs.cjs.entry.js +10 -36
  1569. package/dist/cjs/ion-textarea.cjs.entry.js +106 -158
  1570. package/dist/cjs/ion-thumbnail.cjs.entry.js +3 -3
  1571. package/dist/cjs/ion-title.cjs.entry.js +54 -0
  1572. package/dist/cjs/ion-toast.cjs.entry.js +66 -98
  1573. package/dist/cjs/ion-toggle.cjs.entry.js +86 -156
  1574. package/dist/cjs/ion-toolbar.cjs.entry.js +73 -0
  1575. package/dist/cjs/{ionic-global-tfENS075.js → ionic-global-DRLi5Iq3.js} +96 -14
  1576. package/dist/cjs/{ios.transition-EMvH3Tod.js → ios.transition-D4vyO_a_.js} +71 -98
  1577. package/dist/cjs/loader.cjs.js +4 -4
  1578. package/dist/cjs/{md.transition-CwoQ7h7X.js → md.transition-Dkxy3kpE.js} +4 -4
  1579. package/dist/cjs/{menu-toggle-util-By6-554q.js → menu-toggle-util-CmPuayU0.js} +1 -1
  1580. package/dist/cjs/{notch-controller-DWw_ctSD.js → notch-controller-Dtpow1eD.js} +1 -1
  1581. package/dist/cjs/{overlays-sgG7yBK9.js → overlays-Bc8tk6t5.js} +124 -187
  1582. package/dist/cjs/{refresher.utils-CMKixJwj.js → refresher.utils-CPl6gciv.js} +3 -3
  1583. package/dist/cjs/{status-tap-CdatiX6b.js → status-tap-XtIhF72O.js} +4 -3
  1584. package/dist/cjs/{swipe-back-D3MYxlFO.js → swipe-back-C9j0kufI.js} +3 -4
  1585. package/dist/collection/collection-manifest.json +2 -8
  1586. package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.css +1 -1
  1587. package/dist/components/amwal-checkout-button.js +1 -1
  1588. package/dist/components/amwal-installments-guide.js +1 -1
  1589. package/dist/components/amwal-installments-timeline.js +1 -1
  1590. package/dist/components/amwal-pos.js +1 -1
  1591. package/dist/components/amwal-widget-modal.js +1 -1
  1592. package/dist/components/amwal-widget.js +1 -1
  1593. package/dist/components/index.js +1 -1
  1594. package/dist/components/ion-accordion-group.js +1 -1
  1595. package/dist/components/ion-accordion.js +1 -1
  1596. package/dist/components/ion-action-sheet.js +1 -1
  1597. package/dist/components/ion-alert.js +1 -1
  1598. package/dist/components/ion-app.js +1 -1
  1599. package/dist/components/ion-avatar.js +1 -1
  1600. package/dist/components/ion-back-button.js +1 -1
  1601. package/dist/components/ion-backdrop.js +1 -1
  1602. package/dist/components/ion-badge.js +1 -1
  1603. package/dist/components/ion-breadcrumb.js +1 -1
  1604. package/dist/components/ion-breadcrumbs.js +1 -1
  1605. package/dist/components/ion-button.js +1 -1
  1606. package/dist/components/ion-buttons.js +1 -1
  1607. package/dist/components/ion-card-content.js +1 -1
  1608. package/dist/components/ion-card-header.js +1 -1
  1609. package/dist/components/ion-card-subtitle.js +1 -1
  1610. package/dist/components/ion-card-title.js +1 -1
  1611. package/dist/components/ion-card.js +1 -1
  1612. package/dist/components/ion-checkbox.js +1 -1
  1613. package/dist/components/ion-chip.js +1 -1
  1614. package/dist/components/ion-col.js +2 -2
  1615. package/dist/components/ion-content.js +1 -1
  1616. package/dist/components/ion-datetime-button.js +1 -1
  1617. package/dist/components/ion-datetime.js +2 -2
  1618. package/dist/components/ion-fab-button.js +1 -1
  1619. package/dist/components/ion-fab-list.js +1 -1
  1620. package/dist/components/ion-fab.js +1 -1
  1621. package/dist/components/ion-footer.js +2 -2
  1622. package/dist/components/ion-grid.js +1 -1
  1623. package/dist/components/ion-header.js +4 -1
  1624. package/dist/components/ion-icon.js +1 -1
  1625. package/dist/components/ion-img.js +1 -1
  1626. package/dist/components/ion-infinite-scroll-content.js +1 -1
  1627. package/dist/components/ion-infinite-scroll.js +1 -1
  1628. package/dist/components/ion-input.js +1 -1
  1629. package/dist/components/ion-item-divider.js +1 -1
  1630. package/dist/components/ion-item-group.js +1 -1
  1631. package/dist/components/ion-item-option.js +1 -1
  1632. package/dist/components/ion-item-options.js +1 -1
  1633. package/dist/components/ion-item-sliding.js +1 -1
  1634. package/dist/components/ion-item.js +1 -1
  1635. package/dist/components/ion-label.js +1 -1
  1636. package/dist/components/ion-list-header.js +1 -1
  1637. package/dist/components/ion-list.js +1 -1
  1638. package/dist/components/ion-loading.js +3 -3
  1639. package/dist/components/ion-menu-button.js +1 -1
  1640. package/dist/components/ion-menu-toggle.js +1 -1
  1641. package/dist/components/ion-menu.js +1 -1
  1642. package/dist/components/ion-modal.js +7 -1
  1643. package/dist/components/ion-nav-link.js +2 -2
  1644. package/dist/components/ion-nav.js +2 -2
  1645. package/dist/components/ion-note.js +1 -1
  1646. package/dist/components/ion-picker-column-internal.js +1 -0
  1647. package/dist/components/ion-picker-column.js +1 -1
  1648. package/dist/components/ion-picker-internal.js +1 -0
  1649. package/dist/components/ion-picker.js +7 -1
  1650. package/dist/components/ion-popover.js +1 -1
  1651. package/dist/components/ion-progress-bar.js +1 -1
  1652. package/dist/components/ion-radio-group.js +1 -1
  1653. package/dist/components/ion-radio.js +1 -1
  1654. package/dist/components/ion-range.js +2 -2
  1655. package/dist/components/ion-refresher-content.js +1 -1
  1656. package/dist/components/ion-refresher.js +1 -1
  1657. package/dist/components/ion-reorder-group.js +1 -1
  1658. package/dist/components/ion-reorder.js +1 -1
  1659. package/dist/components/ion-ripple-effect.js +1 -1
  1660. package/dist/components/ion-route-redirect.js +1 -1
  1661. package/dist/components/ion-route.js +1 -1
  1662. package/dist/components/ion-router-link.js +1 -1
  1663. package/dist/components/ion-router-outlet.js +1 -1
  1664. package/dist/components/ion-router.js +3 -3
  1665. package/dist/components/ion-row.js +1 -1
  1666. package/dist/components/ion-searchbar.js +1 -1
  1667. package/dist/components/ion-segment-button.js +1 -1
  1668. package/dist/components/ion-segment.js +1 -1
  1669. package/dist/components/ion-select-option.js +1 -1
  1670. package/dist/components/ion-select-popover.js +1 -1
  1671. package/dist/components/ion-select.js +1 -1
  1672. package/dist/components/ion-skeleton-text.js +1 -1
  1673. package/dist/components/ion-spinner.js +1 -1
  1674. package/dist/components/ion-split-pane.js +1 -1
  1675. package/dist/components/ion-tab-bar.js +1 -1
  1676. package/dist/components/ion-tab-button.js +1 -1
  1677. package/dist/components/ion-tab.js +1 -1
  1678. package/dist/components/ion-tabs.js +1 -1
  1679. package/dist/components/ion-text.js +1 -1
  1680. package/dist/components/ion-textarea.js +1 -1
  1681. package/dist/components/ion-thumbnail.js +1 -1
  1682. package/dist/components/ion-title.js +1 -1
  1683. package/dist/components/ion-toast.js +3 -3
  1684. package/dist/components/ion-toggle.js +1 -1
  1685. package/dist/components/ion-toolbar.js +1 -1
  1686. package/dist/components/p-55BwDerf.js +8 -0
  1687. package/dist/components/{p-DokQbOf0.js → p-B-M4K7iJ.js} +3 -3
  1688. package/dist/components/{p-CQOdiSAf.js → p-B5XH2zAk.js} +1 -1
  1689. package/dist/components/p-B5ZghgSh.js +4 -0
  1690. package/dist/components/p-BEVStXwd.js +7 -0
  1691. package/dist/components/p-BH0TCnxk.js +4 -0
  1692. package/dist/components/p-BIA8A9ZO.js +1 -0
  1693. package/dist/components/p-BOkYKP6F.js +1 -0
  1694. package/dist/components/p-BOm0KT2x.js +1 -0
  1695. package/dist/components/p-Bb_Zji0h.js +4 -0
  1696. package/dist/components/p-BnQDByf2.js +1 -0
  1697. package/dist/components/p-BoxjYI-Q.js +4 -0
  1698. package/dist/components/p-BriBxgcM.js +1 -0
  1699. package/dist/components/p-BwKjt_Dc.js +4 -0
  1700. package/dist/components/p-Bx78uXfc.js +5 -0
  1701. package/dist/components/{p-oMX-ZLwD.js → p-C-20JWsp.js} +2 -2
  1702. package/dist/components/p-CLrB3zV0.js +4 -0
  1703. package/dist/components/p-CN34uOrj.js +9 -0
  1704. package/dist/components/p-CQmcNwZM.js +4 -0
  1705. package/dist/components/p-CYPPT3AE.js +4 -0
  1706. package/dist/components/p-CYd0Smt1.js +1 -0
  1707. package/dist/components/p-CgPXSjzI.js +4 -0
  1708. package/dist/components/p-Cho32MPa.js +4 -0
  1709. package/dist/components/p-ClE6rMJs.js +4 -0
  1710. package/dist/components/p-Cm9b7fIl.js +1 -0
  1711. package/dist/{checkout/p-BTEOs1at.js → components/p-CukVBo5-.js} +1 -1
  1712. package/dist/components/p-CwRU9ccI.js +1 -0
  1713. package/dist/components/p-D4DqwBlW.js +4 -0
  1714. package/dist/components/p-D7YY0NXg.js +4 -0
  1715. package/dist/components/p-D8OVJo1v.js +7 -0
  1716. package/dist/components/{p-B2pBbmZL.js → p-DLVYPrYs.js} +1 -1
  1717. package/dist/components/p-DMmSL7_l.js +1 -0
  1718. package/dist/components/p-DOPF2QRF.js +1 -0
  1719. package/dist/components/p-DTgJTJD6.js +1 -0
  1720. package/dist/components/p-Dl_WhQZu.js +4 -0
  1721. package/dist/components/p-DoR35tr_.js +4 -0
  1722. package/dist/components/{p-Bam2tSRs.js → p-DrS88eFz.js} +1 -1
  1723. package/dist/components/p-Dwo-QLgs.js +5 -0
  1724. package/dist/components/p-Dx-C8Ob_.js +7 -0
  1725. package/dist/components/p-DxEgz9x_.js +1 -0
  1726. package/dist/components/p-DxSo4SXG.js +1 -0
  1727. package/dist/components/p-HSPzo8it.js +1 -0
  1728. package/dist/components/p-OrwCUtWu.js +4 -0
  1729. package/dist/components/p-UgkI2Wa4.js +1 -0
  1730. package/dist/components/p-VeNdmYSo.js +1 -0
  1731. package/dist/components/p-YbpebnFS.js +4 -0
  1732. package/dist/components/p-_VuKPdkD.js +4 -0
  1733. package/dist/components/p-aWL6BxTN.js +4 -0
  1734. package/dist/components/p-qoI-S7yk.js +4 -0
  1735. package/dist/components/p-uXV7tzS3.js +1 -0
  1736. package/dist/components/p-wiOwkFtc.js +7 -0
  1737. package/dist/components/p-yu3xCFhr.js +7 -0
  1738. package/dist/components/p-zp5f483d.js +1 -0
  1739. package/dist/esm/amwal-checkout-button_5.entry.js +40 -87
  1740. package/dist/esm/amwal-installments-guide.entry.js +1 -1
  1741. package/dist/esm/amwal-pos.entry.js +1 -1
  1742. package/dist/esm/amwal-widget-modal.entry.js +1 -1
  1743. package/dist/esm/amwal-widget.entry.js +1 -1
  1744. package/dist/esm/{animation-Cdsew5KM.js → animation-DRf3dwMu.js} +251 -11
  1745. package/dist/esm/{app-globals-qL1LLHNB.js → app-globals-BHnkZZiH.js} +1 -1
  1746. package/dist/esm/checkout.js +5 -5
  1747. package/dist/esm/{config-CnpuADYS.js → config-yu3xCFhr.js} +1 -3
  1748. package/dist/esm/{data-u308JruM.js → data-Cl-_yBA0.js} +8 -33
  1749. package/dist/esm/form-controller-xetTxjL6.js +64 -0
  1750. package/dist/esm/{framework-delegate-29_VtSmv.js → framework-delegate-D_uGiYYw.js} +1 -1
  1751. package/dist/esm/{gesture-controller-BTEOs1at.js → gesture-controller-CukVBo5-.js} +1 -1
  1752. package/dist/esm/{haptic-C3ucbArX.js → haptic-D5jGzBs8.js} +54 -6
  1753. package/dist/esm/{hardware-back-button-DRef5MPc.js → hardware-back-button-CzxcJiYO.js} +3 -2
  1754. package/dist/esm/{helpers-BuFc0hrS.js → helpers-C6kqtbmV.js} +86 -10
  1755. package/dist/esm/{index-xxOnfNPU.js → index-93OyAGoo.js} +4 -127
  1756. package/dist/esm/{index-Ul_idjjE.js → index-BMJhFU53.js} +2 -2
  1757. package/dist/esm/index-C75BfBAE.js +27 -0
  1758. package/dist/esm/index-CNcx43L8.js +234 -0
  1759. package/dist/esm/{index-CF4QYFB3.js → index-CcopIPA0.js} +1 -1
  1760. package/dist/esm/index-D8d_89Nl.js +34 -0
  1761. package/dist/esm/{index-Dph-Z83P.js → index-DUF6JAQL.js} +7 -7
  1762. package/dist/esm/{index-J3a2mue2.js → index-DuUXGZp2.js} +34 -6
  1763. package/dist/esm/{input-shims-D1Cdl4JQ.js → input-shims-DSFPFhb7.js} +4 -34
  1764. package/dist/esm/{input.utils-CEeVIfb9.js → input.utils-BuIvhxo3.js} +3 -15
  1765. package/dist/esm/ion-accordion-group.entry.js +9 -23
  1766. package/dist/esm/ion-accordion.entry.js +25 -123
  1767. package/dist/esm/ion-action-sheet_3.entry.js +1012 -0
  1768. package/dist/esm/ion-app.entry.js +11 -11
  1769. package/dist/esm/ion-avatar.entry.js +3 -3
  1770. package/dist/esm/ion-back-button.entry.js +14 -15
  1771. package/dist/esm/ion-backdrop.entry.js +15 -12
  1772. package/dist/esm/ion-badge.entry.js +7 -6
  1773. package/dist/esm/ion-breadcrumb.entry.js +23 -27
  1774. package/dist/esm/ion-breadcrumbs.entry.js +10 -16
  1775. package/dist/esm/ion-buttons_3.entry.js +882 -0
  1776. package/dist/esm/ion-card-content.entry.js +3 -3
  1777. package/dist/esm/ion-card-header.entry.js +5 -9
  1778. package/dist/esm/ion-card-subtitle.entry.js +7 -6
  1779. package/dist/esm/ion-card-title.entry.js +6 -5
  1780. package/dist/esm/ion-card.entry.js +12 -19
  1781. package/dist/esm/ion-checkbox_7.entry.js +957 -0
  1782. package/dist/esm/ion-chip.entry.js +5 -10
  1783. package/dist/esm/ion-col.entry.js +28 -4
  1784. package/dist/esm/ion-content.entry.js +409 -0
  1785. package/dist/esm/ion-datetime-button.entry.js +23 -26
  1786. package/dist/esm/ion-datetime.entry.js +224 -312
  1787. package/dist/esm/ion-fab-button.entry.js +22 -41
  1788. package/dist/esm/ion-fab-list.entry.js +5 -11
  1789. package/dist/esm/ion-fab.entry.js +6 -13
  1790. package/dist/esm/ion-footer.entry.js +10 -16
  1791. package/dist/esm/ion-grid.entry.js +4 -7
  1792. package/dist/esm/ion-header.entry.js +338 -0
  1793. package/dist/esm/ion-icon.entry.js +199 -268
  1794. package/dist/esm/ion-img.entry.js +8 -4
  1795. package/dist/esm/ion-infinite-scroll-content.entry.js +9 -7
  1796. package/dist/esm/ion-infinite-scroll.entry.js +10 -31
  1797. package/dist/esm/ion-input.entry.js +140 -187
  1798. package/dist/esm/ion-item-divider.entry.js +7 -13
  1799. package/dist/esm/ion-item-group.entry.js +3 -3
  1800. package/dist/esm/ion-item-option.entry.js +14 -18
  1801. package/dist/esm/ion-item-options.entry.js +6 -10
  1802. package/dist/esm/ion-item-sliding.entry.js +9 -12
  1803. package/dist/esm/ion-loading.entry.js +32 -53
  1804. package/dist/esm/ion-menu-button.entry.js +17 -23
  1805. package/dist/esm/ion-menu-toggle.entry.js +13 -17
  1806. package/dist/esm/ion-menu.entry.js +76 -130
  1807. package/dist/esm/ion-modal.entry.js +1731 -0
  1808. package/dist/esm/ion-nav-link.entry.js +6 -6
  1809. package/dist/esm/ion-nav.entry.js +15 -16
  1810. package/dist/esm/ion-note.entry.js +7 -6
  1811. package/dist/esm/{ion-picker-legacy-column.entry.js → ion-picker-column.entry.js} +12 -11
  1812. package/dist/esm/ion-picker.entry.js +277 -0
  1813. package/dist/esm/ion-popover.entry.js +48 -179
  1814. package/dist/esm/ion-progress-bar.entry.js +7 -26
  1815. package/dist/esm/ion-range.entry.js +141 -201
  1816. package/dist/esm/ion-refresher-content.entry.js +12 -8
  1817. package/dist/esm/ion-refresher.entry.js +15 -108
  1818. package/dist/esm/ion-reorder-group.entry.js +12 -29
  1819. package/dist/esm/ion-reorder.entry.js +4 -4
  1820. package/dist/esm/ion-route-redirect.entry.js +3 -1
  1821. package/dist/esm/ion-route.entry.js +5 -7
  1822. package/dist/esm/ion-router-link.entry.js +11 -10
  1823. package/dist/esm/ion-router-outlet.entry.js +11 -14
  1824. package/dist/esm/ion-router.entry.js +10 -29
  1825. package/dist/esm/ion-row.entry.js +3 -3
  1826. package/dist/esm/ion-searchbar.entry.js +37 -86
  1827. package/dist/esm/ion-segment-button.entry.js +15 -44
  1828. package/dist/esm/ion-segment.entry.js +36 -159
  1829. package/dist/esm/ion-select-option.entry.js +4 -6
  1830. package/dist/esm/ion-select.entry.js +215 -333
  1831. package/dist/esm/ion-skeleton-text.entry.js +4 -7
  1832. package/dist/esm/ion-spinner.entry.js +6 -6
  1833. package/dist/esm/ion-split-pane.entry.js +21 -38
  1834. package/dist/esm/ion-tab-bar.entry.js +13 -29
  1835. package/dist/esm/ion-tab-button.entry.js +15 -15
  1836. package/dist/esm/ion-tab.entry.js +9 -7
  1837. package/dist/esm/ion-tabs.entry.js +10 -36
  1838. package/dist/esm/ion-textarea.entry.js +107 -159
  1839. package/dist/esm/ion-thumbnail.entry.js +3 -3
  1840. package/dist/esm/ion-title.entry.js +52 -0
  1841. package/dist/esm/ion-toast.entry.js +51 -83
  1842. package/dist/esm/ion-toggle.entry.js +86 -156
  1843. package/dist/esm/ion-toolbar.entry.js +71 -0
  1844. package/dist/esm/{ionic-global-BbOE2Sur.js → ionic-global-DXXzPLPc.js} +86 -5
  1845. package/dist/esm/{ios.transition-BBpXvlVl.js → ios.transition-DMsViooj.js} +71 -98
  1846. package/dist/esm/loader.js +5 -5
  1847. package/dist/esm/{md.transition-uHL_rMwC.js → md.transition-BQT2r4ED.js} +4 -4
  1848. package/dist/esm/{menu-toggle-util-LSIuEJ8L.js → menu-toggle-util-wdO31cdC.js} +1 -1
  1849. package/dist/esm/{notch-controller-CCHQ50bA.js → notch-controller-CQeDnZLe.js} +1 -1
  1850. package/dist/esm/{overlays-CWok3_we.js → overlays-SBLrmFy6.js} +120 -181
  1851. package/dist/esm/{refresher.utils-BwmoeJ1w.js → refresher.utils-D4tPnZsM.js} +3 -3
  1852. package/dist/esm/{status-tap-CMJKMvwt.js → status-tap-CjxQA4Bj.js} +4 -3
  1853. package/dist/esm/{swipe-back-BXQCI3bV.js → swipe-back-DE05lWQD.js} +3 -4
  1854. package/package.json +2 -2
  1855. package/dist/checkout/p--tz3q7oD.js +0 -4
  1856. package/dist/checkout/p-00e120c2.entry.js +0 -1
  1857. package/dist/checkout/p-0f731364.entry.js +0 -4
  1858. package/dist/checkout/p-147541e8.entry.js +0 -1
  1859. package/dist/checkout/p-16f51173.entry.js +0 -1
  1860. package/dist/checkout/p-178c0495.entry.js +0 -1
  1861. package/dist/checkout/p-1c08169f.entry.js +0 -1
  1862. package/dist/checkout/p-1c6da25b.entry.js +0 -1
  1863. package/dist/checkout/p-2383ebd8.entry.js +0 -1
  1864. package/dist/checkout/p-25306802.entry.js +0 -1
  1865. package/dist/checkout/p-26af1ebe.entry.js +0 -1
  1866. package/dist/checkout/p-2768f09a.entry.js +0 -1
  1867. package/dist/checkout/p-27fb8b9e.entry.js +0 -1
  1868. package/dist/checkout/p-2c421f28.entry.js +0 -1
  1869. package/dist/checkout/p-2dd918ca.entry.js +0 -1
  1870. package/dist/checkout/p-2e366473.entry.js +0 -1
  1871. package/dist/checkout/p-38f520fb.entry.js +0 -1
  1872. package/dist/checkout/p-3a262c01.entry.js +0 -1
  1873. package/dist/checkout/p-3c416dcd.entry.js +0 -1
  1874. package/dist/checkout/p-43c67eeb.entry.js +0 -1
  1875. package/dist/checkout/p-44f2b201.entry.js +0 -4
  1876. package/dist/checkout/p-470783cb.entry.js +0 -1
  1877. package/dist/checkout/p-48c40063.entry.js +0 -1
  1878. package/dist/checkout/p-490c7f14.entry.js +0 -1
  1879. package/dist/checkout/p-493952b7.entry.js +0 -1
  1880. package/dist/checkout/p-519c1a94.entry.js +0 -1
  1881. package/dist/checkout/p-523f80de.entry.js +0 -1
  1882. package/dist/checkout/p-5274360d.entry.js +0 -1
  1883. package/dist/checkout/p-550a7fdf.entry.js +0 -1
  1884. package/dist/checkout/p-5IcNt7MW.js +0 -8
  1885. package/dist/checkout/p-5a2c8845.entry.js +0 -7
  1886. package/dist/checkout/p-5d2b220e.entry.js +0 -1
  1887. package/dist/checkout/p-60bbcf96.entry.js +0 -1
  1888. package/dist/checkout/p-6a6a2461.entry.js +0 -1
  1889. package/dist/checkout/p-6d4c0370.entry.js +0 -1
  1890. package/dist/checkout/p-6f4a82d2.entry.js +0 -1
  1891. package/dist/checkout/p-77ebd92f.entry.js +0 -1
  1892. package/dist/checkout/p-7YtNmL9y.js +0 -4
  1893. package/dist/checkout/p-7a153eab.entry.js +0 -4
  1894. package/dist/checkout/p-7c7e86fe.entry.js +0 -1
  1895. package/dist/checkout/p-7d9ee602.entry.js +0 -1
  1896. package/dist/checkout/p-7e3bc3c4.entry.js +0 -1
  1897. package/dist/checkout/p-8427a296.entry.js +0 -1
  1898. package/dist/checkout/p-870ec42b.entry.js +0 -4
  1899. package/dist/checkout/p-931d2424.entry.js +0 -4
  1900. package/dist/checkout/p-93eb6dad.entry.js +0 -1
  1901. package/dist/checkout/p-B7f9Wkif.js +0 -1
  1902. package/dist/checkout/p-BJe8ISja.js +0 -4
  1903. package/dist/checkout/p-BKaQyStq.js +0 -5
  1904. package/dist/checkout/p-BY0jsxmW.js +0 -4
  1905. package/dist/checkout/p-B_Z54mfe.js +0 -5
  1906. package/dist/checkout/p-Ba57PFgY.js +0 -7
  1907. package/dist/checkout/p-BmlsNFZH.js +0 -1
  1908. package/dist/checkout/p-CAD1l928.js +0 -8
  1909. package/dist/checkout/p-CFLSScFJ.js +0 -4
  1910. package/dist/checkout/p-CH3Eg9_f.js +0 -7
  1911. package/dist/checkout/p-CPoSEOHb.js +0 -4
  1912. package/dist/checkout/p-D0wwuiQC.js +0 -4
  1913. package/dist/checkout/p-DFxgipTc.js +0 -4
  1914. package/dist/checkout/p-DJztqcrH.js +0 -4
  1915. package/dist/checkout/p-DSLRCWTg.js +0 -4
  1916. package/dist/checkout/p-DdmvYtPY.js +0 -7
  1917. package/dist/checkout/p-Drg5BcI0.js +0 -4
  1918. package/dist/checkout/p-LsffVXQ5.js +0 -4
  1919. package/dist/checkout/p-__1_zp1x.js +0 -4
  1920. package/dist/checkout/p-a5f75741.entry.js +0 -1
  1921. package/dist/checkout/p-ae30349d.entry.js +0 -1
  1922. package/dist/checkout/p-afbe752e.entry.js +0 -1
  1923. package/dist/checkout/p-b2e14651.entry.js +0 -1
  1924. package/dist/checkout/p-b36fcda4.entry.js +0 -1
  1925. package/dist/checkout/p-b67b736b.entry.js +0 -1
  1926. package/dist/checkout/p-b7bf5abe.entry.js +0 -1
  1927. package/dist/checkout/p-bb513178.entry.js +0 -1
  1928. package/dist/checkout/p-bd4e1c37.entry.js +0 -1
  1929. package/dist/checkout/p-beb2c33c.entry.js +0 -1
  1930. package/dist/checkout/p-becc350d.entry.js +0 -4
  1931. package/dist/checkout/p-c19dc56b.entry.js +0 -1
  1932. package/dist/checkout/p-c1cbd33c.entry.js +0 -1
  1933. package/dist/checkout/p-c34382ea.entry.js +0 -1
  1934. package/dist/checkout/p-c4c9e530.entry.js +0 -1
  1935. package/dist/checkout/p-c534dea9.entry.js +0 -7
  1936. package/dist/checkout/p-c7978eb8.entry.js +0 -4
  1937. package/dist/checkout/p-c8f6670e.entry.js +0 -7
  1938. package/dist/checkout/p-cb1a44cc.entry.js +0 -5
  1939. package/dist/checkout/p-cda0fb4e.entry.js +0 -1
  1940. package/dist/checkout/p-cecfb55a.entry.js +0 -1
  1941. package/dist/checkout/p-d819f4e4.entry.js +0 -1
  1942. package/dist/checkout/p-dd2fe837.entry.js +0 -1
  1943. package/dist/checkout/p-dfcadc7e.entry.js +0 -7
  1944. package/dist/checkout/p-e37ae6e2.entry.js +0 -1
  1945. package/dist/checkout/p-e8173bed.entry.js +0 -21
  1946. package/dist/checkout/p-ead19b10.entry.js +0 -1
  1947. package/dist/checkout/p-eae34719.entry.js +0 -1
  1948. package/dist/checkout/p-eff08443.entry.js +0 -1
  1949. package/dist/checkout/p-f0535bc6.entry.js +0 -1
  1950. package/dist/checkout/p-fd971fbb.entry.js +0 -1
  1951. package/dist/checkout/p-ff3211f5.entry.js +0 -1
  1952. package/dist/checkout/p-ktzqax7n.js +0 -4
  1953. package/dist/checkout/p-vDXqvDVZ.js +0 -8
  1954. package/dist/checkout/p-xxOnfNPU.js +0 -9
  1955. package/dist/checkout/svg/logo-threads.svg +0 -1
  1956. package/dist/cjs/index-DseJYF57.js +0 -55
  1957. package/dist/cjs/index-NREvOo92.js +0 -434
  1958. package/dist/cjs/ion-action-sheet_5.cjs.entry.js +0 -3821
  1959. package/dist/cjs/ion-buttons_10.cjs.entry.js +0 -1921
  1960. package/dist/cjs/ion-input-otp.cjs.entry.js +0 -649
  1961. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +0 -87
  1962. package/dist/cjs/ion-label_2.cjs.entry.js +0 -106
  1963. package/dist/cjs/ion-picker-legacy.cjs.entry.js +0 -301
  1964. package/dist/cjs/ion-picker_3.cjs.entry.js +0 -1157
  1965. package/dist/cjs/ion-segment-content.cjs.entry.js +0 -17
  1966. package/dist/cjs/ion-segment-view.cjs.entry.js +0 -120
  1967. package/dist/cjs/validity-ClNawnRU.js +0 -19
  1968. package/dist/components/ion-input-otp.js +0 -1
  1969. package/dist/components/ion-input-password-toggle.js +0 -1
  1970. package/dist/components/ion-picker-column-option.js +0 -1
  1971. package/dist/components/ion-picker-legacy-column.js +0 -1
  1972. package/dist/components/ion-picker-legacy.js +0 -7
  1973. package/dist/components/ion-segment-content.js +0 -1
  1974. package/dist/components/ion-segment-view.js +0 -1
  1975. package/dist/components/ion-select-modal.js +0 -1
  1976. package/dist/components/p-1a8GRr4X.js +0 -8
  1977. package/dist/components/p-84v5d37k.js +0 -5
  1978. package/dist/components/p-8qbKOEwg.js +0 -7
  1979. package/dist/components/p-B6K4Vevt.js +0 -1
  1980. package/dist/components/p-B8CJYukv.js +0 -4
  1981. package/dist/components/p-B8rkbvHJ.js +0 -4
  1982. package/dist/components/p-BB452BOr.js +0 -1
  1983. package/dist/components/p-BGU8Nymd.js +0 -1
  1984. package/dist/components/p-BHQVufb8.js +0 -4
  1985. package/dist/components/p-BNXO_6OD.js +0 -1
  1986. package/dist/components/p-BU2g75_N.js +0 -1
  1987. package/dist/components/p-BYPhePqa.js +0 -4
  1988. package/dist/components/p-BgdIJBVf.js +0 -4
  1989. package/dist/components/p-BgihAYme.js +0 -7
  1990. package/dist/components/p-BxP8TDfL.js +0 -4
  1991. package/dist/components/p-ByfqFtWT.js +0 -1
  1992. package/dist/components/p-Bz350JGF.js +0 -7
  1993. package/dist/components/p-C-A_jB82.js +0 -4
  1994. package/dist/components/p-CECOogQN.js +0 -4
  1995. package/dist/components/p-CH3Eg9_f.js +0 -7
  1996. package/dist/components/p-CUAFXzfF.js +0 -1
  1997. package/dist/components/p-C_xZxwXS.js +0 -1
  1998. package/dist/components/p-CaFnxdQd.js +0 -1
  1999. package/dist/components/p-CoO47q0D.js +0 -7
  2000. package/dist/components/p-DDc_C9oA.js +0 -7
  2001. package/dist/components/p-DIdQsHkC.js +0 -4
  2002. package/dist/components/p-DJDxJDy6.js +0 -1
  2003. package/dist/components/p-DJztqcrH.js +0 -4
  2004. package/dist/components/p-DK1OQn93.js +0 -1
  2005. package/dist/components/p-DMTBSB3x.js +0 -1
  2006. package/dist/components/p-DQAmWfm1.js +0 -8
  2007. package/dist/components/p-DR2jvB6s.js +0 -4
  2008. package/dist/components/p-DRov8Rcu.js +0 -4
  2009. package/dist/components/p-DVAa5Ick.js +0 -1
  2010. package/dist/components/p-DXFVmcjn.js +0 -1
  2011. package/dist/components/p-DYhpoJMW.js +0 -4
  2012. package/dist/components/p-Db1yB4_h.js +0 -4
  2013. package/dist/components/p-DcJzInl-.js +0 -4
  2014. package/dist/components/p-DexEOBMU.js +0 -8
  2015. package/dist/components/p-DjZwclUS.js +0 -5
  2016. package/dist/components/p-Dzmy2KMF.js +0 -8
  2017. package/dist/components/p-GqmIVAr9.js +0 -1
  2018. package/dist/components/p-RvBk4hGw.js +0 -1
  2019. package/dist/components/p-RxmIKEEQ.js +0 -1
  2020. package/dist/components/p-jWFeuAB5.js +0 -1
  2021. package/dist/components/p-kYICRcU6.js +0 -1
  2022. package/dist/components/p-lwDXTYn3.js +0 -4
  2023. package/dist/components/p-oThWliBi.js +0 -4
  2024. package/dist/components/p-pUVFzc0m.js +0 -4
  2025. package/dist/components/p-uBkJJD7w.js +0 -1
  2026. package/dist/components/p-wRbQpgeV.js +0 -1
  2027. package/dist/components/p-zVHkqcTn.js +0 -4
  2028. package/dist/esm/index-BmlsNFZH.js +0 -29
  2029. package/dist/esm/index-DoRYA1qF.js +0 -424
  2030. package/dist/esm/ion-action-sheet_5.entry.js +0 -3815
  2031. package/dist/esm/ion-buttons_10.entry.js +0 -1910
  2032. package/dist/esm/ion-input-otp.entry.js +0 -647
  2033. package/dist/esm/ion-input-password-toggle.entry.js +0 -85
  2034. package/dist/esm/ion-label_2.entry.js +0 -103
  2035. package/dist/esm/ion-picker-legacy.entry.js +0 -299
  2036. package/dist/esm/ion-picker_3.entry.js +0 -1153
  2037. package/dist/esm/ion-segment-content.entry.js +0 -15
  2038. package/dist/esm/ion-segment-view.entry.js +0 -118
  2039. package/dist/esm/validity-DJztqcrH.js +0 -17
@@ -1,3815 +0,0 @@
1
- import { w as writeTask, r as registerInstance, d as createEvent, e as readTask, h, H as Host, g as getElement, c as config, i as printIonWarning, o as forceUpdate } from './index-xxOnfNPU.js';
2
- import { b as hapticSelectionEnd, a as hapticSelectionChanged, h as hapticSelectionStart } from './haptic-C3ucbArX.js';
3
- import { createGesture } from './index-CF4QYFB3.js';
4
- import { r as raf, a as clamp, g as getElementRoot, i as inheritAttributes, h as hasLazyBuild } from './helpers-BuFc0hrS.js';
5
- import { c as createLockController } from './lock-controller-B-hirT0v.js';
6
- import { d as createDelegateController, e as createTriggerController, B as BACKDROP, i as isCancel, j as present, k as dismiss, l as eventMethod, n as safeCall, h as prepareOverlay, s as setOverlayId, G as GESTURE, O as OVERLAY_GESTURE_PRIORITY, F as FOCUS_TRAP_DISABLE_CLASS } from './overlays-CWok3_we.js';
7
- import { g as getClassMap } from './theme-DiVJyqlX.js';
8
- import { g as getIonMode } from './ionic-global-BbOE2Sur.js';
9
- import { c as createAnimation } from './animation-Cdsew5KM.js';
10
- import { E as ENABLE_HTML_CONTENT_DEFAULT, s as sanitizeDOMString } from './config-CnpuADYS.js';
11
- import { f as findClosestIonContent, i as isIonContent, d as disableContentScrollY, r as resetContentScrollY, b as findIonContent, p as printIonContentErrorMsg } from './index-Ul_idjjE.js';
12
- import { C as CoreDelegate, a as attachComponent, d as detachComponent } from './framework-delegate-29_VtSmv.js';
13
- import { g as getCapacitor } from './capacitor-CG3xQUND.js';
14
- import { d as deepReady, w as waitForMount } from './index-DoRYA1qF.js';
15
- import { KEYBOARD_DID_OPEN } from './keyboard-DcbqYXj5.js';
16
- import { g as getTimeGivenProgression } from './cubic-bezier-hHmYLOfE.js';
17
- import { w as win } from './index-ZjP4CjeZ.js';
18
- import './gesture-controller-BTEOs1at.js';
19
- import './hardware-back-button-DRef5MPc.js';
20
- import './keyboard-DgiyREKb.js';
21
-
22
- /*!
23
- * (C) Ionic http://ionicframework.com - MIT License
24
- */
25
- const createButtonActiveGesture = (el, isButton) => {
26
- let currentTouchedButton;
27
- let initialTouchedButton;
28
- const activateButtonAtPoint = (x, y, hapticFeedbackFn) => {
29
- if (typeof document === 'undefined') {
30
- return;
31
- }
32
- const target = document.elementFromPoint(x, y);
33
- if (!target || !isButton(target) || target.disabled) {
34
- clearActiveButton();
35
- return;
36
- }
37
- if (target !== currentTouchedButton) {
38
- clearActiveButton();
39
- setActiveButton(target, hapticFeedbackFn);
40
- }
41
- };
42
- const setActiveButton = (button, hapticFeedbackFn) => {
43
- currentTouchedButton = button;
44
- if (!initialTouchedButton) {
45
- initialTouchedButton = currentTouchedButton;
46
- }
47
- const buttonToModify = currentTouchedButton;
48
- writeTask(() => buttonToModify.classList.add('ion-activated'));
49
- hapticFeedbackFn();
50
- };
51
- const clearActiveButton = (dispatchClick = false) => {
52
- if (!currentTouchedButton) {
53
- return;
54
- }
55
- const buttonToModify = currentTouchedButton;
56
- writeTask(() => buttonToModify.classList.remove('ion-activated'));
57
- /**
58
- * Clicking on one button, but releasing on another button
59
- * does not dispatch a click event in browsers, so we
60
- * need to do it manually here. Some browsers will
61
- * dispatch a click if clicking on one button, dragging over
62
- * another button, and releasing on the original button. In that
63
- * case, we need to make sure we do not cause a double click there.
64
- */
65
- if (dispatchClick && initialTouchedButton !== currentTouchedButton) {
66
- currentTouchedButton.click();
67
- }
68
- currentTouchedButton = undefined;
69
- };
70
- return createGesture({
71
- el,
72
- gestureName: 'buttonActiveDrag',
73
- threshold: 0,
74
- onStart: (ev) => activateButtonAtPoint(ev.currentX, ev.currentY, hapticSelectionStart),
75
- onMove: (ev) => activateButtonAtPoint(ev.currentX, ev.currentY, hapticSelectionChanged),
76
- onEnd: () => {
77
- clearActiveButton(true);
78
- hapticSelectionEnd();
79
- initialTouchedButton = undefined;
80
- },
81
- });
82
- };
83
-
84
- /*!
85
- * (C) Ionic http://ionicframework.com - MIT License
86
- */
87
- /**
88
- * iOS Action Sheet Enter Animation
89
- */
90
- const iosEnterAnimation$2 = (baseEl) => {
91
- const baseAnimation = createAnimation();
92
- const backdropAnimation = createAnimation();
93
- const wrapperAnimation = createAnimation();
94
- backdropAnimation
95
- .addElement(baseEl.querySelector('ion-backdrop'))
96
- .fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
97
- .beforeStyles({
98
- 'pointer-events': 'none',
99
- })
100
- .afterClearStyles(['pointer-events']);
101
- wrapperAnimation
102
- .addElement(baseEl.querySelector('.action-sheet-wrapper'))
103
- .fromTo('transform', 'translateY(100%)', 'translateY(0%)');
104
- return baseAnimation
105
- .addElement(baseEl)
106
- .easing('cubic-bezier(.36,.66,.04,1)')
107
- .duration(400)
108
- .addAnimation([backdropAnimation, wrapperAnimation]);
109
- };
110
-
111
- /*!
112
- * (C) Ionic http://ionicframework.com - MIT License
113
- */
114
- /**
115
- * iOS Action Sheet Leave Animation
116
- */
117
- const iosLeaveAnimation$2 = (baseEl) => {
118
- const baseAnimation = createAnimation();
119
- const backdropAnimation = createAnimation();
120
- const wrapperAnimation = createAnimation();
121
- backdropAnimation.addElement(baseEl.querySelector('ion-backdrop')).fromTo('opacity', 'var(--backdrop-opacity)', 0);
122
- wrapperAnimation
123
- .addElement(baseEl.querySelector('.action-sheet-wrapper'))
124
- .fromTo('transform', 'translateY(0%)', 'translateY(100%)');
125
- return baseAnimation
126
- .addElement(baseEl)
127
- .easing('cubic-bezier(.36,.66,.04,1)')
128
- .duration(450)
129
- .addAnimation([backdropAnimation, wrapperAnimation]);
130
- };
131
-
132
- /*!
133
- * (C) Ionic http://ionicframework.com - MIT License
134
- */
135
- /**
136
- * MD Action Sheet Enter Animation
137
- */
138
- const mdEnterAnimation$2 = (baseEl) => {
139
- const baseAnimation = createAnimation();
140
- const backdropAnimation = createAnimation();
141
- const wrapperAnimation = createAnimation();
142
- backdropAnimation
143
- .addElement(baseEl.querySelector('ion-backdrop'))
144
- .fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
145
- .beforeStyles({
146
- 'pointer-events': 'none',
147
- })
148
- .afterClearStyles(['pointer-events']);
149
- wrapperAnimation
150
- .addElement(baseEl.querySelector('.action-sheet-wrapper'))
151
- .fromTo('transform', 'translateY(100%)', 'translateY(0%)');
152
- return baseAnimation
153
- .addElement(baseEl)
154
- .easing('cubic-bezier(.36,.66,.04,1)')
155
- .duration(400)
156
- .addAnimation([backdropAnimation, wrapperAnimation]);
157
- };
158
-
159
- /*!
160
- * (C) Ionic http://ionicframework.com - MIT License
161
- */
162
- /**
163
- * MD Action Sheet Leave Animation
164
- */
165
- const mdLeaveAnimation$2 = (baseEl) => {
166
- const baseAnimation = createAnimation();
167
- const backdropAnimation = createAnimation();
168
- const wrapperAnimation = createAnimation();
169
- backdropAnimation.addElement(baseEl.querySelector('ion-backdrop')).fromTo('opacity', 'var(--backdrop-opacity)', 0);
170
- wrapperAnimation
171
- .addElement(baseEl.querySelector('.action-sheet-wrapper'))
172
- .fromTo('transform', 'translateY(0%)', 'translateY(100%)');
173
- return baseAnimation
174
- .addElement(baseEl)
175
- .easing('cubic-bezier(.36,.66,.04,1)')
176
- .duration(450)
177
- .addAnimation([backdropAnimation, wrapperAnimation]);
178
- };
179
-
180
- const actionSheetIosCss = () => `.sc-ion-action-sheet-ios-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);touch-action:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-ios-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-ios{left:0;right:0;bottom:0;transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-ios:disabled{color:var(--button-color-disabled);opacity:0.4}.action-sheet-button-inner.sc-ion-action-sheet-ios{display:flex;position:relative;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-ios{display:flex;flex-flow:column;justify-content:flex-end;height:100%;max-height:calc(100vh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)));max-height:calc(100dvh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)))}.action-sheet-group.sc-ion-action-sheet-ios{flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}@media (any-pointer: coarse){.action-sheet-group.sc-ion-action-sheet-ios::-webkit-scrollbar{display:none}}.action-sheet-group-cancel.sc-ion-action-sheet-ios{flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-ios::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-ios{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-ios:not(:disabled):hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-ios:not(:disabled):hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, var(--ion-background-color-step-100, #f9f9f9)));--backdrop-opacity:var(--ion-backdrop-opacity, 0.4);--button-background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent;--button-background-activated:var(--ion-text-color, #000);--button-background-activated-opacity:.08;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-background-selected:var(--ion-color-step-150, var(--ion-background-color-step-150, var(--ion-background-color, #fff)));--button-background-selected-opacity:1;--button-color:var(--ion-color-primary, #0054e9);--button-color-disabled:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));--color:var(--ion-color-step-400, var(--ion-text-color-step-600, #999999));text-align:center}.action-sheet-wrapper.sc-ion-action-sheet-ios{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:var(--ion-safe-area-top, 0);padding-bottom:var(--ion-safe-area-bottom, 0);box-sizing:content-box}.action-sheet-container.sc-ion-action-sheet-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0}.action-sheet-group.sc-ion-action-sheet-ios{border-radius:13px;margin-bottom:8px}.action-sheet-group.sc-ion-action-sheet-ios:first-child{margin-top:10px}.action-sheet-group.sc-ion-action-sheet-ios:last-child{margin-bottom:10px}@supports (backdrop-filter: blur(0)){.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-group.sc-ion-action-sheet-ios{background-color:transparent;backdrop-filter:saturate(280%) blur(20px)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-title.sc-ion-action-sheet-ios,.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.sc-ion-action-sheet-ios{background-color:transparent;background-image:linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%), linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4) 50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 50%);background-repeat:no-repeat;background-position:top, bottom;background-size:100% calc(100% - 1px), 100% 1px;backdrop-filter:saturate(120%)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.ion-activated.sc-ion-action-sheet-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.7);background-image:none}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-cancel.sc-ion-action-sheet-ios{background:var(--button-background-selected)}}.action-sheet-title.sc-ion-action-sheet-ios{background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent}.action-sheet-title.sc-ion-action-sheet-ios{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:14px;padding-bottom:13px;color:var(--color, var(--ion-color-step-400, var(--ion-text-color-step-600, #999999)));font-size:max(13px, 0.8125rem);font-weight:400;text-align:center}.action-sheet-title.action-sheet-has-sub-title.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-sub-title.sc-ion-action-sheet-ios{padding-left:0;padding-right:0;padding-top:6px;padding-bottom:0;font-size:max(13px, 0.8125rem);font-weight:400}.action-sheet-button.sc-ion-action-sheet-ios{-webkit-padding-start:14px;padding-inline-start:14px;-webkit-padding-end:14px;padding-inline-end:14px;padding-top:14px;padding-bottom:14px;min-height:56px;font-size:max(20px, 1.25rem);contain:content}.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:max(28px, 1.75rem);pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios:last-child{background-image:none}.action-sheet-selected.sc-ion-action-sheet-ios{font-weight:bold}.action-sheet-cancel.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-cancel.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-destructive.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-activated.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-focused.sc-ion-action-sheet-ios{color:var(--ion-color-danger, #c5000f)}@media (any-hover: hover){.action-sheet-destructive.sc-ion-action-sheet-ios:hover{color:var(--ion-color-danger, #c5000f)}}`;
181
-
182
- const actionSheetMdCss = () => `.sc-ion-action-sheet-md-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);touch-action:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-md-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-md{left:0;right:0;bottom:0;transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-md{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-md:disabled{color:var(--button-color-disabled);opacity:0.4}.action-sheet-button-inner.sc-ion-action-sheet-md{display:flex;position:relative;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-md{display:flex;flex-flow:column;justify-content:flex-end;height:100%;max-height:calc(100vh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)));max-height:calc(100dvh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)))}.action-sheet-group.sc-ion-action-sheet-md{flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}@media (any-pointer: coarse){.action-sheet-group.sc-ion-action-sheet-md::-webkit-scrollbar{display:none}}.action-sheet-group-cancel.sc-ion-action-sheet-md{flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-md::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-md{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-md::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-md:not(:disabled):hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-md:not(:disabled):hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);--button-background:transparent;--button-background-selected:currentColor;--button-background-selected-opacity:0;--button-background-activated:transparent;--button-background-activated-opacity:0;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));--button-color-disabled:var(--button-color);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}.action-sheet-wrapper.sc-ion-action-sheet-md{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:0}.action-sheet-title.sc-ion-action-sheet-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:20px;padding-bottom:17px;min-height:60px;color:var(--color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54));font-size:1rem;text-align:start}.action-sheet-sub-title.sc-ion-action-sheet-md{padding-left:0;padding-right:0;padding-top:16px;padding-bottom:0;font-size:0.875rem}.action-sheet-group.sc-ion-action-sheet-md:first-child{padding-top:0}.action-sheet-group.sc-ion-action-sheet-md:last-child{padding-bottom:var(--ion-safe-area-bottom)}.action-sheet-button.sc-ion-action-sheet-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:12px;position:relative;min-height:52px;font-size:1rem;text-align:start;contain:content;overflow:hidden}.action-sheet-icon.sc-ion-action-sheet-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:0;margin-bottom:0;color:var(--color);font-size:1.5rem}.action-sheet-button-inner.sc-ion-action-sheet-md{justify-content:flex-start}.action-sheet-selected.sc-ion-action-sheet-md{font-weight:bold}`;
183
-
184
- const ActionSheet = class {
185
- constructor(hostRef) {
186
- registerInstance(this, hostRef);
187
- this.didPresent = createEvent(this, "ionActionSheetDidPresent", 7);
188
- this.willPresent = createEvent(this, "ionActionSheetWillPresent", 7);
189
- this.willDismiss = createEvent(this, "ionActionSheetWillDismiss", 7);
190
- this.didDismiss = createEvent(this, "ionActionSheetDidDismiss", 7);
191
- this.didPresentShorthand = createEvent(this, "didPresent", 7);
192
- this.willPresentShorthand = createEvent(this, "willPresent", 7);
193
- this.willDismissShorthand = createEvent(this, "willDismiss", 7);
194
- this.didDismissShorthand = createEvent(this, "didDismiss", 7);
195
- this.delegateController = createDelegateController(this);
196
- this.lockController = createLockController();
197
- this.triggerController = createTriggerController();
198
- this.hasRadioButtons = false;
199
- this.presented = false;
200
- /** @internal */
201
- this.hasController = false;
202
- /**
203
- * If `true`, the keyboard will be automatically dismissed when the overlay is presented.
204
- */
205
- this.keyboardClose = true;
206
- /**
207
- * An array of buttons for the action sheet.
208
- */
209
- this.buttons = [];
210
- /**
211
- * If `true`, the action sheet will be dismissed when the backdrop is clicked.
212
- */
213
- this.backdropDismiss = true;
214
- /**
215
- * If `true`, the action sheet will be translucent.
216
- * Only applies when the mode is `"ios"` and the device supports
217
- * [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility).
218
- */
219
- this.translucent = false;
220
- /**
221
- * If `true`, the action sheet will animate.
222
- */
223
- this.animated = true;
224
- /**
225
- * If `true`, the action sheet will open. If `false`, the action sheet will close.
226
- * Use this if you need finer grained control over presentation, otherwise
227
- * just use the actionSheetController or the `trigger` property.
228
- * Note: `isOpen` will not automatically be set back to `false` when
229
- * the action sheet dismisses. You will need to do that in your code.
230
- */
231
- this.isOpen = false;
232
- this.onBackdropTap = () => {
233
- this.dismiss(undefined, BACKDROP);
234
- };
235
- this.dispatchCancelHandler = (ev) => {
236
- const role = ev.detail.role;
237
- if (isCancel(role)) {
238
- const cancelButton = this.getButtons().find((b) => b.role === 'cancel');
239
- this.callButtonHandler(cancelButton);
240
- }
241
- };
242
- }
243
- buttonsChanged() {
244
- const radioButtons = this.getRadioButtons();
245
- this.hasRadioButtons = radioButtons.length > 0;
246
- // Initialize activeRadioId when buttons change
247
- if (this.hasRadioButtons) {
248
- const checkedButton = radioButtons.find((b) => { var _a; return ((_a = b.htmlAttributes) === null || _a === void 0 ? void 0 : _a['aria-checked']) === 'true'; });
249
- if (checkedButton) {
250
- const allButtons = this.getButtons();
251
- const checkedIndex = allButtons.indexOf(checkedButton);
252
- this.activeRadioId = this.getButtonId(checkedButton, checkedIndex);
253
- }
254
- }
255
- }
256
- onIsOpenChange(newValue, oldValue) {
257
- if (newValue === true && oldValue === false) {
258
- this.present();
259
- }
260
- else if (newValue === false && oldValue === true) {
261
- this.dismiss();
262
- }
263
- }
264
- triggerChanged() {
265
- const { trigger, el, triggerController } = this;
266
- if (trigger) {
267
- triggerController.addClickListener(el, trigger);
268
- }
269
- }
270
- /**
271
- * Present the action sheet overlay after it has been created.
272
- */
273
- async present() {
274
- const unlock = await this.lockController.lock();
275
- await this.delegateController.attachViewToDom();
276
- await present(this, 'actionSheetEnter', iosEnterAnimation$2, mdEnterAnimation$2);
277
- unlock();
278
- }
279
- /**
280
- * Dismiss the action sheet overlay after it has been presented.
281
- * This is a no-op if the overlay has not been presented yet. If you want
282
- * to remove an overlay from the DOM that was never presented, use the
283
- * [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
284
- *
285
- * @param data Any data to emit in the dismiss events.
286
- * @param role The role of the element that is dismissing the action sheet.
287
- * This can be useful in a button handler for determining which button was
288
- * clicked to dismiss the action sheet. Some examples include:
289
- * `"cancel"`, `"destructive"`, `"selected"`, and `"backdrop"`.
290
- */
291
- async dismiss(data, role) {
292
- const unlock = await this.lockController.lock();
293
- const dismissed = await dismiss(this, data, role, 'actionSheetLeave', iosLeaveAnimation$2, mdLeaveAnimation$2);
294
- if (dismissed) {
295
- this.delegateController.removeViewFromDom();
296
- }
297
- unlock();
298
- return dismissed;
299
- }
300
- /**
301
- * Returns a promise that resolves when the action sheet did dismiss.
302
- */
303
- onDidDismiss() {
304
- return eventMethod(this.el, 'ionActionSheetDidDismiss');
305
- }
306
- /**
307
- * Returns a promise that resolves when the action sheet will dismiss.
308
- *
309
- */
310
- onWillDismiss() {
311
- return eventMethod(this.el, 'ionActionSheetWillDismiss');
312
- }
313
- async buttonClick(button) {
314
- const role = button.role;
315
- if (isCancel(role)) {
316
- return this.dismiss(button.data, role);
317
- }
318
- const shouldDismiss = await this.callButtonHandler(button);
319
- if (shouldDismiss) {
320
- return this.dismiss(button.data, button.role);
321
- }
322
- return Promise.resolve();
323
- }
324
- async callButtonHandler(button) {
325
- if (button) {
326
- // a handler has been provided, execute it
327
- // pass the handler the values from the inputs
328
- const rtn = await safeCall(button.handler);
329
- if (rtn === false) {
330
- // if the return value of the handler is false then do not dismiss
331
- return false;
332
- }
333
- }
334
- return true;
335
- }
336
- /**
337
- * Get all buttons regardless of role.
338
- */
339
- getButtons() {
340
- return this.buttons.map((b) => {
341
- return typeof b === 'string' ? { text: b } : b;
342
- });
343
- }
344
- /**
345
- * Get all radio buttons (buttons with role="radio").
346
- */
347
- getRadioButtons() {
348
- return this.getButtons().filter((b) => {
349
- var _a;
350
- const role = (_a = b.htmlAttributes) === null || _a === void 0 ? void 0 : _a.role;
351
- return role === 'radio' && !isCancel(role);
352
- });
353
- }
354
- /**
355
- * Handle radio button selection and update aria-checked state.
356
- *
357
- * @param button The radio button that was selected.
358
- */
359
- selectRadioButton(button) {
360
- const buttonId = this.getButtonId(button);
361
- // Set the active radio ID (this will trigger a re-render and update aria-checked)
362
- this.activeRadioId = buttonId;
363
- }
364
- /**
365
- * Get or generate an ID for a button.
366
- *
367
- * @param button The button for which to get the ID.
368
- * @param index Optional index of the button in the buttons array.
369
- * @returns The ID of the button.
370
- */
371
- getButtonId(button, index) {
372
- if (button.id) {
373
- return button.id;
374
- }
375
- const allButtons = this.getButtons();
376
- const buttonIndex = index !== undefined ? index : allButtons.indexOf(button);
377
- return `action-sheet-button-${this.overlayIndex}-${buttonIndex}`;
378
- }
379
- /**
380
- * When the action sheet has radio buttons, we want to follow the
381
- * keyboard navigation pattern for radio groups:
382
- * - Arrow Down/Right: Move to the next radio button (wrap to first if at end)
383
- * - Arrow Up/Left: Move to the previous radio button (wrap to last if at start)
384
- * - Space/Enter: Select the focused radio button and trigger its handler
385
- */
386
- onKeydown(ev) {
387
- // Only handle keyboard navigation if we have radio buttons
388
- if (!this.hasRadioButtons || !this.presented) {
389
- return;
390
- }
391
- const target = ev.target;
392
- // Ignore if the target element is not within the action sheet or not a radio button
393
- if (!this.el.contains(target) ||
394
- !target.classList.contains('action-sheet-button') ||
395
- target.getAttribute('role') !== 'radio') {
396
- return;
397
- }
398
- // Get all radio button elements and filter out disabled ones
399
- const radios = Array.from(this.el.querySelectorAll('.action-sheet-button[role="radio"]')).filter((el) => !el.disabled);
400
- const currentIndex = radios.findIndex((radio) => radio.id === target.id);
401
- if (currentIndex === -1) {
402
- return;
403
- }
404
- const allButtons = this.getButtons();
405
- const radioButtons = this.getRadioButtons();
406
- /**
407
- * Build a map of button element IDs to their ActionSheetButton
408
- * config objects.
409
- * This allows us to quickly look up which button config corresponds
410
- * to a DOM element when handling keyboard navigation
411
- * (e.g., whenuser presses Space/Enter or arrow keys).
412
- * The key is the ID that was set on the DOM element during render,
413
- * and the value is the ActionSheetButton config that contains the
414
- * handler and other properties.
415
- */
416
- const buttonIdMap = new Map();
417
- radioButtons.forEach((b) => {
418
- const allIndex = allButtons.indexOf(b);
419
- const buttonId = this.getButtonId(b, allIndex);
420
- buttonIdMap.set(buttonId, b);
421
- });
422
- let nextEl;
423
- if (['ArrowDown', 'ArrowRight'].includes(ev.key)) {
424
- ev.preventDefault();
425
- ev.stopPropagation();
426
- nextEl = currentIndex === radios.length - 1 ? radios[0] : radios[currentIndex + 1];
427
- }
428
- else if (['ArrowUp', 'ArrowLeft'].includes(ev.key)) {
429
- ev.preventDefault();
430
- ev.stopPropagation();
431
- nextEl = currentIndex === 0 ? radios[radios.length - 1] : radios[currentIndex - 1];
432
- }
433
- else if (ev.key === ' ' || ev.key === 'Enter') {
434
- ev.preventDefault();
435
- ev.stopPropagation();
436
- const button = buttonIdMap.get(target.id);
437
- if (button) {
438
- this.selectRadioButton(button);
439
- this.buttonClick(button);
440
- }
441
- return;
442
- }
443
- // Focus the next radio button
444
- if (nextEl) {
445
- const button = buttonIdMap.get(nextEl.id);
446
- if (button) {
447
- this.selectRadioButton(button);
448
- nextEl.focus();
449
- }
450
- }
451
- }
452
- connectedCallback() {
453
- prepareOverlay(this.el);
454
- this.triggerChanged();
455
- }
456
- disconnectedCallback() {
457
- if (this.gesture) {
458
- this.gesture.destroy();
459
- this.gesture = undefined;
460
- }
461
- this.triggerController.removeClickListener();
462
- }
463
- componentWillLoad() {
464
- var _a;
465
- if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {
466
- setOverlayId(this.el);
467
- }
468
- // Initialize activeRadioId for radio buttons
469
- this.buttonsChanged();
470
- }
471
- componentDidLoad() {
472
- /**
473
- * Only create gesture if:
474
- * 1. A gesture does not already exist
475
- * 2. App is running in iOS mode
476
- * 3. A wrapper ref exists
477
- * 4. A group ref exists
478
- */
479
- const { groupEl, wrapperEl } = this;
480
- if (!this.gesture && getIonMode(this) === 'ios' && wrapperEl && groupEl) {
481
- readTask(() => {
482
- const isScrollable = groupEl.scrollHeight > groupEl.clientHeight;
483
- if (!isScrollable) {
484
- this.gesture = createButtonActiveGesture(wrapperEl, (refEl) => refEl.classList.contains('action-sheet-button'));
485
- this.gesture.enable(true);
486
- }
487
- });
488
- }
489
- /**
490
- * If action sheet was rendered with isOpen="true"
491
- * then we should open action sheet immediately.
492
- */
493
- if (this.isOpen === true) {
494
- raf(() => this.present());
495
- }
496
- /**
497
- * When binding values in frameworks such as Angular
498
- * it is possible for the value to be set after the Web Component
499
- * initializes but before the value watcher is set up in Stencil.
500
- * As a result, the watcher callback may not be fired.
501
- * We work around this by manually calling the watcher
502
- * callback when the component has loaded and the watcher
503
- * is configured.
504
- */
505
- this.triggerChanged();
506
- }
507
- renderActionSheetButtons(filteredButtons) {
508
- const mode = getIonMode(this);
509
- const { activeRadioId } = this;
510
- return filteredButtons.map((b, index) => {
511
- var _a;
512
- const isRadio = ((_a = b.htmlAttributes) === null || _a === void 0 ? void 0 : _a.role) === 'radio';
513
- const buttonId = this.getButtonId(b, index);
514
- const radioButtons = this.getRadioButtons();
515
- const isActiveRadio = isRadio && buttonId === activeRadioId;
516
- const isFirstRadio = isRadio && b === radioButtons[0];
517
- // For radio buttons, set tabindex: 0 for the active one, -1 for others
518
- // For non-radio buttons, use default tabindex (undefined, which means 0)
519
- /**
520
- * For radio buttons, set tabindex based on activeRadioId
521
- * - If the button is the active radio, tabindex is 0
522
- * - If no radio is active, the first radio button should have tabindex 0
523
- * - All other radio buttons have tabindex -1
524
- * For non-radio buttons, use default tabindex (undefined, which means 0)
525
- */
526
- let tabIndex;
527
- if (isRadio) {
528
- // Focus on the active radio button
529
- if (isActiveRadio) {
530
- tabIndex = 0;
531
- }
532
- else if (!activeRadioId && isFirstRadio) {
533
- // No active radio, first radio gets focus
534
- tabIndex = 0;
535
- }
536
- else {
537
- // All other radios are not focusable
538
- tabIndex = -1;
539
- }
540
- }
541
- else {
542
- tabIndex = undefined;
543
- }
544
- // For radio buttons, set aria-checked based on activeRadioId
545
- // Otherwise, use the value from htmlAttributes if provided
546
- const htmlAttrs = Object.assign({}, b.htmlAttributes);
547
- if (isRadio) {
548
- htmlAttrs['aria-checked'] = isActiveRadio ? 'true' : 'false';
549
- }
550
- return (h("button", Object.assign({}, htmlAttrs, { role: isRadio ? 'radio' : undefined, type: "button", id: buttonId, class: Object.assign(Object.assign({}, buttonClass$1(b)), { 'action-sheet-selected': isActiveRadio }), onClick: () => {
551
- if (isRadio) {
552
- this.selectRadioButton(b);
553
- }
554
- this.buttonClick(b);
555
- }, disabled: b.disabled, tabIndex: tabIndex }), h("span", { class: "action-sheet-button-inner" }, b.icon && h("ion-icon", { icon: b.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" }), b.text), mode === 'md' && h("ion-ripple-effect", null)));
556
- });
557
- }
558
- render() {
559
- const { header, htmlAttributes, overlayIndex, hasRadioButtons } = this;
560
- const mode = getIonMode(this);
561
- const allButtons = this.getButtons();
562
- const cancelButton = allButtons.find((b) => b.role === 'cancel');
563
- const buttons = allButtons.filter((b) => b.role !== 'cancel');
564
- const headerID = `action-sheet-${overlayIndex}-header`;
565
- return (h(Host, Object.assign({ key: '173fcff5b1da7c33c267de4667591c946b8c8d03', role: "dialog", "aria-modal": "true", "aria-labelledby": header !== undefined ? headerID : null, tabindex: "-1" }, htmlAttributes, { style: {
566
- zIndex: `${20000 + this.overlayIndex}`,
567
- }, class: Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { key: '521ede659f747864f6c974e09016436eceb7158c', tappable: this.backdropDismiss }), h("div", { key: '7a7946fc434bc444f16a70638f5e948c69d33fcd', tabindex: "0", "aria-hidden": "true" }), h("div", { key: 'bcff39a580489dbafa255842e57aa8602c6d0f18', class: "action-sheet-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, h("div", { key: '84bba13ce14261f0f0daa3f9c77648c9e7f36e0e', class: "action-sheet-container" }, h("div", { key: 'd9c8ac404fd6719a7adf8cb36549f67616f9a0c4', class: "action-sheet-group", ref: (el) => (this.groupEl = el), role: hasRadioButtons ? 'radiogroup' : undefined }, header !== undefined && (h("div", { key: '180433a8ad03ef5c54728a1a8f34715b6921d658', id: headerID, class: {
568
- 'action-sheet-title': true,
569
- 'action-sheet-has-sub-title': this.subHeader !== undefined,
570
- } }, header, this.subHeader && h("div", { key: '7138e79e61b1a8f42bc5a9175c57fa2f15d7ec5a', class: "action-sheet-sub-title" }, this.subHeader))), this.renderActionSheetButtons(buttons)), cancelButton && (h("div", { key: 'b617c722f5b8028d73ed34b69310f312c65f34a7', class: "action-sheet-group action-sheet-group-cancel" }, h("button", Object.assign({ key: 'd0dd876fc48815df3710413c201c0b445a8e16c0' }, cancelButton.htmlAttributes, { type: "button", class: buttonClass$1(cancelButton), onClick: () => this.buttonClick(cancelButton) }), h("span", { key: 'e7b960157cc6fc5fe92a12090b2be55e8ae072e4', class: "action-sheet-button-inner" }, cancelButton.icon && (h("ion-icon", { key: '05498ffc60cab911dbff0ecbc6168dea59ada9a5', icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), mode === 'md' && h("ion-ripple-effect", { key: '3d401346cea301be4ca03671f7370f6f4b0b6bde' })))))), h("div", { key: '971f3c5fcc07f36c28eb469a47ec0290c692e139', tabindex: "0", "aria-hidden": "true" })));
571
- }
572
- get el() { return getElement(this); }
573
- static get watchers() { return {
574
- "buttons": [{
575
- "buttonsChanged": 0
576
- }],
577
- "isOpen": [{
578
- "onIsOpenChange": 0
579
- }],
580
- "trigger": [{
581
- "triggerChanged": 0
582
- }]
583
- }; }
584
- };
585
- const buttonClass$1 = (button) => {
586
- return Object.assign({ 'action-sheet-button': true, 'ion-activatable': !button.disabled, 'ion-focusable': !button.disabled, [`action-sheet-${button.role}`]: button.role !== undefined }, getClassMap(button.cssClass));
587
- };
588
- ActionSheet.style = {
589
- ios: actionSheetIosCss(),
590
- md: actionSheetMdCss()
591
- };
592
-
593
- /*!
594
- * (C) Ionic http://ionicframework.com - MIT License
595
- */
596
- /**
597
- * iOS Alert Enter Animation
598
- */
599
- const iosEnterAnimation$1 = (baseEl) => {
600
- const baseAnimation = createAnimation();
601
- const backdropAnimation = createAnimation();
602
- const wrapperAnimation = createAnimation();
603
- backdropAnimation
604
- .addElement(baseEl.querySelector('ion-backdrop'))
605
- .fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
606
- .beforeStyles({
607
- 'pointer-events': 'none',
608
- })
609
- .afterClearStyles(['pointer-events']);
610
- wrapperAnimation.addElement(baseEl.querySelector('.alert-wrapper')).keyframes([
611
- { offset: 0, opacity: '0.01', transform: 'scale(1.1)' },
612
- { offset: 1, opacity: '1', transform: 'scale(1)' },
613
- ]);
614
- return baseAnimation
615
- .addElement(baseEl)
616
- .easing('ease-in-out')
617
- .duration(200)
618
- .addAnimation([backdropAnimation, wrapperAnimation]);
619
- };
620
-
621
- /*!
622
- * (C) Ionic http://ionicframework.com - MIT License
623
- */
624
- /**
625
- * iOS Alert Leave Animation
626
- */
627
- const iosLeaveAnimation$1 = (baseEl) => {
628
- const baseAnimation = createAnimation();
629
- const backdropAnimation = createAnimation();
630
- const wrapperAnimation = createAnimation();
631
- backdropAnimation.addElement(baseEl.querySelector('ion-backdrop')).fromTo('opacity', 'var(--backdrop-opacity)', 0);
632
- wrapperAnimation.addElement(baseEl.querySelector('.alert-wrapper')).keyframes([
633
- { offset: 0, opacity: 0.99, transform: 'scale(1)' },
634
- { offset: 1, opacity: 0, transform: 'scale(0.9)' },
635
- ]);
636
- return baseAnimation
637
- .addElement(baseEl)
638
- .easing('ease-in-out')
639
- .duration(200)
640
- .addAnimation([backdropAnimation, wrapperAnimation]);
641
- };
642
-
643
- /*!
644
- * (C) Ionic http://ionicframework.com - MIT License
645
- */
646
- /**
647
- * Md Alert Enter Animation
648
- */
649
- const mdEnterAnimation$1 = (baseEl) => {
650
- const baseAnimation = createAnimation();
651
- const backdropAnimation = createAnimation();
652
- const wrapperAnimation = createAnimation();
653
- backdropAnimation
654
- .addElement(baseEl.querySelector('ion-backdrop'))
655
- .fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
656
- .beforeStyles({
657
- 'pointer-events': 'none',
658
- })
659
- .afterClearStyles(['pointer-events']);
660
- wrapperAnimation.addElement(baseEl.querySelector('.alert-wrapper')).keyframes([
661
- { offset: 0, opacity: '0.01', transform: 'scale(0.9)' },
662
- { offset: 1, opacity: '1', transform: 'scale(1)' },
663
- ]);
664
- return baseAnimation
665
- .addElement(baseEl)
666
- .easing('ease-in-out')
667
- .duration(150)
668
- .addAnimation([backdropAnimation, wrapperAnimation]);
669
- };
670
-
671
- /*!
672
- * (C) Ionic http://ionicframework.com - MIT License
673
- */
674
- /**
675
- * Md Alert Leave Animation
676
- */
677
- const mdLeaveAnimation$1 = (baseEl) => {
678
- const baseAnimation = createAnimation();
679
- const backdropAnimation = createAnimation();
680
- const wrapperAnimation = createAnimation();
681
- backdropAnimation.addElement(baseEl.querySelector('ion-backdrop')).fromTo('opacity', 'var(--backdrop-opacity)', 0);
682
- wrapperAnimation.addElement(baseEl.querySelector('.alert-wrapper')).fromTo('opacity', 0.99, 0);
683
- return baseAnimation
684
- .addElement(baseEl)
685
- .easing('ease-in-out')
686
- .duration(150)
687
- .addAnimation([backdropAnimation, wrapperAnimation]);
688
- };
689
-
690
- const alertIosCss = () => `.sc-ion-alert-ios-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:flex;position:absolute;align-items:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;touch-action:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-ios-h{display:none}.alert-top.sc-ion-alert-ios-h{padding-top:50px;align-items:flex-start}.alert-wrapper.sc-ion-alert-ios{display:flex;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-label.sc-ion-alert-ios,.alert-radio-label.sc-ion-alert-ios{overflow-wrap:anywhere}@media (any-pointer: coarse){.alert-checkbox-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-message.sc-ion-alert-ios::-webkit-scrollbar{display:none}}.alert-input.sc-ion-alert-ios{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;box-sizing:border-box}.alert-button-group.sc-ion-alert-ios{display:flex;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-ios{flex-direction:column;flex-wrap:nowrap}.alert-button.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:0.875rem;line-height:1.25rem;z-index:0}.alert-button.ion-focused.sc-ion-alert-ios,.alert-tappable.ion-focused.sc-ion-alert-ios{background:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}.alert-button-inner.sc-ion-alert-ios{display:flex;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;width:100%;height:100%;min-height:inherit}.alert-input-disabled.sc-ion-alert-ios,.alert-checkbox-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios,.alert-radio-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;appearance:none;contain:content}.alert-button.sc-ion-alert-ios,.alert-checkbox.sc-ion-alert-ios,.alert-input.sc-ion-alert-ios,.alert-radio.sc-ion-alert-ios{outline:none}.alert-radio-icon.sc-ion-alert-ios,.alert-checkbox-icon.sc-ion-alert-ios,.alert-checkbox-inner.sc-ion-alert-ios{box-sizing:border-box}textarea.alert-input.sc-ion-alert-ios{min-height:37px;resize:none}.sc-ion-alert-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, var(--ion-background-color-step-100, #f9f9f9)));--max-width:clamp(270px, 16.875rem, 324px);--backdrop-opacity:var(--ion-backdrop-opacity, 0.3);font-size:max(14px, 0.875rem)}.alert-wrapper.sc-ion-alert-ios{border-radius:13px;box-shadow:none;overflow:hidden}.alert-button.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{pointer-events:none}@supports (backdrop-filter: blur(0)){.alert-translucent.sc-ion-alert-ios-h .alert-wrapper.sc-ion-alert-ios{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);backdrop-filter:saturate(180%) blur(20px)}}.alert-head.sc-ion-alert-ios{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:7px;text-align:center}.alert-title.sc-ion-alert-ios{margin-top:8px;color:var(--ion-text-color, #000);font-size:max(17px, 1.0625rem);font-weight:600}.alert-sub-title.sc-ion-alert-ios{color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666));font-size:max(14px, 0.875rem)}.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:21px;color:var(--ion-text-color, #000);font-size:max(13px, 0.8125rem);text-align:center}.alert-message.sc-ion-alert-ios{max-height:240px}.alert-message.sc-ion-alert-ios:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:12px}.alert-input.sc-ion-alert-ios{border-radius:7px;margin-top:10px;-webkit-padding-start:7px;padding-inline-start:7px;-webkit-padding-end:7px;padding-inline-end:7px;padding-top:7px;padding-bottom:7px;border:0.55px solid var(--ion-color-step-250, var(--ion-background-color-step-250, #bfbfbf));background-color:var(--ion-background-color, #fff);appearance:none;font-size:1rem}.alert-input.sc-ion-alert-ios::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, var(--ion-text-color-step-600, #999999)));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-clear{display:none}.alert-input.sc-ion-alert-ios::-webkit-date-and-time-value{height:18px}.alert-radio-group.sc-ion-alert-ios,.alert-checkbox-group.sc-ion-alert-ios{overscroll-behavior:contain;max-height:240px;border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);overflow-y:auto;-webkit-overflow-scrolling:touch}.alert-tappable.sc-ion-alert-ios{min-height:44px}.alert-radio-label.sc-ion-alert-ios{-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px;padding-top:13px;padding-bottom:13px;flex:1;order:0;color:var(--ion-text-color, #000)}[aria-checked=true].sc-ion-alert-ios .alert-radio-label.sc-ion-alert-ios{color:var(--ion-color-primary, #0054e9)}.alert-radio-icon.sc-ion-alert-ios{position:relative;order:1;min-width:30px}[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{top:-7px;position:absolute;width:6px;height:12px;transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary, #0054e9)}[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{inset-inline-start:7px}.alert-checkbox-label.sc-ion-alert-ios{-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px;padding-top:13px;padding-bottom:13px;flex:1;color:var(--ion-text-color, #000)}.alert-checkbox-icon.sc-ion-alert-ios{border-radius:50%;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:6px;margin-inline-end:6px;margin-top:10px;margin-bottom:10px;position:relative;width:min(1.375rem, 55.836px);height:min(1.375rem, 55.836px);border-width:0.125rem;border-style:solid;border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))));background-color:var(--ion-item-background, var(--ion-background-color, #fff));contain:strict}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-icon.sc-ion-alert-ios{border-color:var(--ion-color-primary, #0054e9);background-color:var(--ion-color-primary, #0054e9)}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{top:calc(min(1.375rem, 55.836px) / 8);position:absolute;width:calc(min(1.375rem, 55.836px) / 6 + 1px);height:calc(min(1.375rem, 55.836px) * 0.5);transform:rotate(45deg);border-width:0.125rem;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-background-color, #fff)}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{inset-inline-start:calc(min(1.375rem, 55.836px) / 3)}.alert-button-group.sc-ion-alert-ios{-webkit-margin-end:-0.55px;margin-inline-end:-0.55px;flex-wrap:wrap}.alert-button-group-vertical.sc-ion-alert-ios .alert-button.sc-ion-alert-ios{border-right:none}[dir=rtl].sc-ion-alert-ios-h .alert-button-group-vertical.sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button-group-vertical.sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child{border-right:none}[dir=rtl].sc-ion-alert-ios .alert-button-group-vertical.sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child{border-right:none}@supports selector(:dir(rtl)){.alert-button-group-vertical.sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child:dir(rtl){border-right:none}}.alert-button.sc-ion-alert-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:0;flex:1 1 auto;min-width:50%;height:max(44px, 2.75rem);border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);background-color:transparent;color:var(--ion-color-primary, #0054e9);font-size:max(17px, 1.0625rem);overflow:hidden}[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child{border-right:0}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:first-child{border-right:0}@supports selector(:dir(rtl)){.alert-button.sc-ion-alert-ios:first-child:dir(rtl){border-right:0}}.alert-button.sc-ion-alert-ios:last-child{border-right:0;font-weight:bold}[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child{border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child{border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}@supports selector(:dir(rtl)){.alert-button.sc-ion-alert-ios:last-child:dir(rtl){border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}}.alert-button.ion-activated.sc-ion-alert-ios{background-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1)}.alert-button-role-destructive.sc-ion-alert-ios,.alert-button-role-destructive.ion-activated.sc-ion-alert-ios,.alert-button-role-destructive.ion-focused.sc-ion-alert-ios{color:var(--ion-color-danger, #c5000f)}`;
691
-
692
- const alertMdCss = () => `.sc-ion-alert-md-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:flex;position:absolute;align-items:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;touch-action:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-md-h{display:none}.alert-top.sc-ion-alert-md-h{padding-top:50px;align-items:flex-start}.alert-wrapper.sc-ion-alert-md{display:flex;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-label.sc-ion-alert-md,.alert-radio-label.sc-ion-alert-md{overflow-wrap:anywhere}@media (any-pointer: coarse){.alert-checkbox-group.sc-ion-alert-md::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-md::-webkit-scrollbar,.alert-message.sc-ion-alert-md::-webkit-scrollbar{display:none}}.alert-input.sc-ion-alert-md{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;box-sizing:border-box}.alert-button-group.sc-ion-alert-md{display:flex;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-md{flex-direction:column;flex-wrap:nowrap}.alert-button.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:0.875rem;line-height:1.25rem;z-index:0}.alert-button.ion-focused.sc-ion-alert-md,.alert-tappable.ion-focused.sc-ion-alert-md{background:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}.alert-button-inner.sc-ion-alert-md{display:flex;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;width:100%;height:100%;min-height:inherit}.alert-input-disabled.sc-ion-alert-md,.alert-checkbox-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md,.alert-radio-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;appearance:none;contain:content}.alert-button.sc-ion-alert-md,.alert-checkbox.sc-ion-alert-md,.alert-input.sc-ion-alert-md,.alert-radio.sc-ion-alert-md{outline:none}.alert-radio-icon.sc-ion-alert-md,.alert-checkbox-icon.sc-ion-alert-md,.alert-checkbox-inner.sc-ion-alert-md{box-sizing:border-box}textarea.alert-input.sc-ion-alert-md{min-height:37px;resize:none}.sc-ion-alert-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--max-width:280px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);font-size:0.875rem}.alert-wrapper.sc-ion-alert-md{border-radius:4px;box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12)}.alert-head.sc-ion-alert-md{-webkit-padding-start:23px;padding-inline-start:23px;-webkit-padding-end:23px;padding-inline-end:23px;padding-top:20px;padding-bottom:15px;text-align:start}.alert-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:1.25rem;font-weight:500}.alert-sub-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:1rem}.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{-webkit-padding-start:24px;padding-inline-start:24px;-webkit-padding-end:24px;padding-inline-end:24px;padding-top:20px;padding-bottom:20px;color:var(--ion-color-step-550, var(--ion-text-color-step-450, #737373))}.alert-message.sc-ion-alert-md{font-size:1rem}@media screen and (max-width: 767px){.alert-message.sc-ion-alert-md{max-height:266px}}.alert-message.sc-ion-alert-md:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-head.sc-ion-alert-md+.alert-message.sc-ion-alert-md{padding-top:0}.alert-input.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;border-bottom:1px solid var(--ion-color-step-150, var(--ion-background-color-step-150, #d9d9d9));color:var(--ion-text-color, #000)}.alert-input.sc-ion-alert-md::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, var(--ion-text-color-step-600, #999999)));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-clear{display:none}.alert-input.sc-ion-alert-md:focus{margin-bottom:4px;border-bottom:2px solid var(--ion-color-primary, #0054e9)}.alert-radio-group.sc-ion-alert-md,.alert-checkbox-group.sc-ion-alert-md{position:relative;border-top:1px solid var(--ion-color-step-150, var(--ion-background-color-step-150, #d9d9d9));border-bottom:1px solid var(--ion-color-step-150, var(--ion-background-color-step-150, #d9d9d9));overflow:auto}@media screen and (max-width: 767px){.alert-radio-group.sc-ion-alert-md,.alert-checkbox-group.sc-ion-alert-md{max-height:266px}}.alert-tappable.sc-ion-alert-md{position:relative;min-height:48px}.alert-radio-label.sc-ion-alert-md{-webkit-padding-start:52px;padding-inline-start:52px;-webkit-padding-end:26px;padding-inline-end:26px;padding-top:13px;padding-bottom:13px;flex:1;color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));font-size:1rem}.alert-radio-icon.sc-ion-alert-md{top:0;border-radius:50%;display:block;position:relative;width:20px;height:20px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, var(--ion-background-color-step-550, #737373))}.alert-radio-icon.sc-ion-alert-md{inset-inline-start:26px}.alert-radio-inner.sc-ion-alert-md{top:3px;border-radius:50%;position:absolute;width:10px;height:10px;transform:scale3d(0, 0, 0);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--ion-color-primary, #0054e9)}.alert-radio-inner.sc-ion-alert-md{inset-inline-start:3px}[aria-checked=true].sc-ion-alert-md .alert-radio-label.sc-ion-alert-md{color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626))}[aria-checked=true].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #0054e9)}[aria-checked=true].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md{transform:scale3d(1, 1, 1)}.alert-checkbox-label.sc-ion-alert-md{-webkit-padding-start:53px;padding-inline-start:53px;-webkit-padding-end:26px;padding-inline-end:26px;padding-top:13px;padding-bottom:13px;flex:1;width:calc(100% - 53px);color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));font-size:1rem}.alert-checkbox-icon.sc-ion-alert-md{top:0;border-radius:2px;position:relative;width:16px;height:16px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, var(--ion-background-color-step-550, #737373));contain:strict}.alert-checkbox-icon.sc-ion-alert-md{inset-inline-start:26px}[aria-checked=true].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #0054e9);background-color:var(--ion-color-primary, #0054e9)}[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{top:0;position:absolute;width:6px;height:10px;transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary-contrast, #fff)}[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{inset-inline-start:3px}.alert-button-group.sc-ion-alert-md{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;box-sizing:border-box;flex-wrap:wrap-reverse;justify-content:flex-end}.alert-button.sc-ion-alert-md{border-radius:2px;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:0;margin-bottom:0;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;color:var(--ion-color-primary, #0054e9);font-weight:500;text-align:end;text-transform:uppercase;overflow:hidden}.alert-button-inner.sc-ion-alert-md{justify-content:flex-end}@media screen and (min-width: 768px){.sc-ion-alert-md-h{--max-width:min(100vw - 96px, 560px);--max-height:min(100vh - 96px, 560px)}}`;
693
-
694
- const Alert = class {
695
- constructor(hostRef) {
696
- registerInstance(this, hostRef);
697
- this.didPresent = createEvent(this, "ionAlertDidPresent", 7);
698
- this.willPresent = createEvent(this, "ionAlertWillPresent", 7);
699
- this.willDismiss = createEvent(this, "ionAlertWillDismiss", 7);
700
- this.didDismiss = createEvent(this, "ionAlertDidDismiss", 7);
701
- this.didPresentShorthand = createEvent(this, "didPresent", 7);
702
- this.willPresentShorthand = createEvent(this, "willPresent", 7);
703
- this.willDismissShorthand = createEvent(this, "willDismiss", 7);
704
- this.didDismissShorthand = createEvent(this, "didDismiss", 7);
705
- this.delegateController = createDelegateController(this);
706
- this.lockController = createLockController();
707
- this.triggerController = createTriggerController();
708
- this.customHTMLEnabled = config.get('innerHTMLTemplatesEnabled', ENABLE_HTML_CONTENT_DEFAULT);
709
- this.processedInputs = [];
710
- this.processedButtons = [];
711
- this.presented = false;
712
- /** @internal */
713
- this.hasController = false;
714
- /**
715
- * If `true`, the keyboard will be automatically dismissed when the overlay is presented.
716
- */
717
- this.keyboardClose = true;
718
- /**
719
- * Array of buttons to be added to the alert.
720
- */
721
- this.buttons = [];
722
- /**
723
- * Array of input to show in the alert.
724
- */
725
- this.inputs = [];
726
- /**
727
- * If `true`, the alert will be dismissed when the backdrop is clicked.
728
- */
729
- this.backdropDismiss = true;
730
- /**
731
- * If `true`, the alert will be translucent.
732
- * Only applies when the mode is `"ios"` and the device supports
733
- * [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility).
734
- */
735
- this.translucent = false;
736
- /**
737
- * If `true`, the alert will animate.
738
- */
739
- this.animated = true;
740
- /**
741
- * If `true`, the alert will open. If `false`, the alert will close.
742
- * Use this if you need finer grained control over presentation, otherwise
743
- * just use the alertController or the `trigger` property.
744
- * Note: `isOpen` will not automatically be set back to `false` when
745
- * the alert dismisses. You will need to do that in your code.
746
- */
747
- this.isOpen = false;
748
- this.onBackdropTap = () => {
749
- this.dismiss(undefined, BACKDROP);
750
- };
751
- this.dispatchCancelHandler = (ev) => {
752
- const role = ev.detail.role;
753
- if (isCancel(role)) {
754
- const cancelButton = this.processedButtons.find((b) => b.role === 'cancel');
755
- this.callButtonHandler(cancelButton);
756
- }
757
- };
758
- }
759
- onIsOpenChange(newValue, oldValue) {
760
- if (newValue === true && oldValue === false) {
761
- this.present();
762
- }
763
- else if (newValue === false && oldValue === true) {
764
- this.dismiss();
765
- }
766
- }
767
- triggerChanged() {
768
- const { trigger, el, triggerController } = this;
769
- if (trigger) {
770
- triggerController.addClickListener(el, trigger);
771
- }
772
- }
773
- onKeydown(ev) {
774
- var _a;
775
- const inputTypes = new Set(this.processedInputs.map((i) => i.type));
776
- /**
777
- * Based on keyboard navigation requirements, the
778
- * checkbox should not respond to the enter keydown event.
779
- */
780
- if (inputTypes.has('checkbox') && ev.key === 'Enter') {
781
- ev.preventDefault();
782
- return;
783
- }
784
- /**
785
- * Ensure when alert container is being focused, and the user presses the tab + shift keys, the focus will be set to the last alert button.
786
- */
787
- if (ev.target.classList.contains('alert-wrapper')) {
788
- if (ev.key === 'Tab' && ev.shiftKey) {
789
- ev.preventDefault();
790
- const lastChildBtn = (_a = this.wrapperEl) === null || _a === void 0 ? void 0 : _a.querySelector('.alert-button:last-child');
791
- lastChildBtn.focus();
792
- return;
793
- }
794
- }
795
- // The only inputs we want to navigate between using arrow keys are the radios
796
- // ignore the keydown event if it is not on a radio button
797
- if (!inputTypes.has('radio') ||
798
- (ev.target && !this.el.contains(ev.target)) ||
799
- ev.target.classList.contains('alert-button')) {
800
- return;
801
- }
802
- // Get all radios inside of the radio group and then
803
- // filter out disabled radios since we need to skip those
804
- const query = this.el.querySelectorAll('.alert-radio');
805
- const radios = Array.from(query).filter((radio) => !radio.disabled);
806
- // The focused radio is the one that shares the same id as
807
- // the event target
808
- const index = radios.findIndex((radio) => radio.id === ev.target.id);
809
- // We need to know what the next radio element should
810
- // be in order to change the focus
811
- let nextEl;
812
- // If hitting arrow down or arrow right, move to the next radio
813
- // If we're on the last radio, move to the first radio
814
- if (['ArrowDown', 'ArrowRight'].includes(ev.key)) {
815
- nextEl = index === radios.length - 1 ? radios[0] : radios[index + 1];
816
- }
817
- // If hitting arrow up or arrow left, move to the previous radio
818
- // If we're on the first radio, move to the last radio
819
- if (['ArrowUp', 'ArrowLeft'].includes(ev.key)) {
820
- nextEl = index === 0 ? radios[radios.length - 1] : radios[index - 1];
821
- }
822
- if (nextEl && radios.includes(nextEl)) {
823
- const nextProcessed = this.processedInputs.find((input) => input.id === (nextEl === null || nextEl === void 0 ? void 0 : nextEl.id));
824
- if (nextProcessed) {
825
- this.rbClick(nextProcessed);
826
- nextEl.focus();
827
- }
828
- }
829
- }
830
- buttonsChanged() {
831
- const buttons = this.buttons;
832
- this.processedButtons = buttons.map((btn) => {
833
- return typeof btn === 'string' ? { text: btn, role: btn.toLowerCase() === 'cancel' ? 'cancel' : undefined } : btn;
834
- });
835
- }
836
- inputsChanged() {
837
- const inputs = this.inputs;
838
- // Get the first input that is not disabled and the checked one
839
- // If an enabled checked input exists, set it to be the focusable input
840
- // otherwise we default to focus the first input
841
- // This will only be used when the input is type radio
842
- const first = inputs.find((input) => !input.disabled);
843
- const checked = inputs.find((input) => input.checked && !input.disabled);
844
- const focusable = checked || first;
845
- // An alert can be created with several different inputs. Radios,
846
- // checkboxes and inputs are all accepted, but they cannot be mixed.
847
- const inputTypes = new Set(inputs.map((i) => i.type));
848
- if (inputTypes.has('checkbox') && inputTypes.has('radio')) {
849
- printIonWarning(`[ion-alert] - Alert cannot mix input types: ${Array.from(inputTypes.values()).join('/')}. Please see alert docs for more info.`);
850
- }
851
- this.inputType = inputTypes.values().next().value;
852
- this.processedInputs = inputs.map((i, index) => {
853
- var _a;
854
- return ({
855
- type: i.type || 'text',
856
- name: i.name || `${index}`,
857
- placeholder: i.placeholder || '',
858
- value: i.value,
859
- label: i.label,
860
- checked: !!i.checked,
861
- disabled: !!i.disabled,
862
- id: i.id || `alert-input-${this.overlayIndex}-${index}`,
863
- handler: i.handler,
864
- min: i.min,
865
- max: i.max,
866
- cssClass: (_a = i.cssClass) !== null && _a !== void 0 ? _a : '',
867
- attributes: i.attributes || {},
868
- tabindex: i.type === 'radio' && i !== focusable ? -1 : 0,
869
- });
870
- });
871
- }
872
- connectedCallback() {
873
- prepareOverlay(this.el);
874
- this.triggerChanged();
875
- }
876
- componentWillLoad() {
877
- var _a;
878
- if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {
879
- setOverlayId(this.el);
880
- }
881
- this.inputsChanged();
882
- this.buttonsChanged();
883
- }
884
- disconnectedCallback() {
885
- this.triggerController.removeClickListener();
886
- if (this.gesture) {
887
- this.gesture.destroy();
888
- this.gesture = undefined;
889
- }
890
- }
891
- componentDidLoad() {
892
- /**
893
- * Only create gesture if:
894
- * 1. A gesture does not already exist
895
- * 2. App is running in iOS mode
896
- * 3. A wrapper ref exists
897
- */
898
- if (!this.gesture && getIonMode(this) === 'ios' && this.wrapperEl) {
899
- this.gesture = createButtonActiveGesture(this.wrapperEl, (refEl) => refEl.classList.contains('alert-button'));
900
- this.gesture.enable(true);
901
- }
902
- /**
903
- * If alert was rendered with isOpen="true"
904
- * then we should open alert immediately.
905
- */
906
- if (this.isOpen === true) {
907
- raf(() => this.present());
908
- }
909
- /**
910
- * When binding values in frameworks such as Angular
911
- * it is possible for the value to be set after the Web Component
912
- * initializes but before the value watcher is set up in Stencil.
913
- * As a result, the watcher callback may not be fired.
914
- * We work around this by manually calling the watcher
915
- * callback when the component has loaded and the watcher
916
- * is configured.
917
- */
918
- this.triggerChanged();
919
- }
920
- /**
921
- * Present the alert overlay after it has been created.
922
- */
923
- async present() {
924
- const unlock = await this.lockController.lock();
925
- await this.delegateController.attachViewToDom();
926
- await present(this, 'alertEnter', iosEnterAnimation$1, mdEnterAnimation$1).then(() => {
927
- var _a, _b;
928
- /**
929
- * Check if alert has only one button and no inputs.
930
- * If so, then focus on the button. Otherwise, focus the alert wrapper.
931
- * This will map to the default native alert behavior.
932
- */
933
- if (this.buttons.length === 1 && this.inputs.length === 0) {
934
- const queryBtn = (_a = this.wrapperEl) === null || _a === void 0 ? void 0 : _a.querySelector('.alert-button');
935
- queryBtn.focus();
936
- }
937
- else {
938
- (_b = this.wrapperEl) === null || _b === void 0 ? void 0 : _b.focus();
939
- }
940
- });
941
- unlock();
942
- }
943
- /**
944
- * Dismiss the alert overlay after it has been presented.
945
- * This is a no-op if the overlay has not been presented yet. If you want
946
- * to remove an overlay from the DOM that was never presented, use the
947
- * [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
948
- *
949
- * @param data Any data to emit in the dismiss events.
950
- * @param role The role of the element that is dismissing the alert.
951
- * This can be useful in a button handler for determining which button was
952
- * clicked to dismiss the alert. Some examples include:
953
- * `"cancel"`, `"destructive"`, `"selected"`, and `"backdrop"`.
954
- */
955
- async dismiss(data, role) {
956
- const unlock = await this.lockController.lock();
957
- const dismissed = await dismiss(this, data, role, 'alertLeave', iosLeaveAnimation$1, mdLeaveAnimation$1);
958
- if (dismissed) {
959
- this.delegateController.removeViewFromDom();
960
- }
961
- unlock();
962
- return dismissed;
963
- }
964
- /**
965
- * Returns a promise that resolves when the alert did dismiss.
966
- */
967
- onDidDismiss() {
968
- return eventMethod(this.el, 'ionAlertDidDismiss');
969
- }
970
- /**
971
- * Returns a promise that resolves when the alert will dismiss.
972
- */
973
- onWillDismiss() {
974
- return eventMethod(this.el, 'ionAlertWillDismiss');
975
- }
976
- rbClick(selectedInput) {
977
- for (const input of this.processedInputs) {
978
- input.checked = input === selectedInput;
979
- input.tabindex = input === selectedInput ? 0 : -1;
980
- }
981
- this.activeId = selectedInput.id;
982
- safeCall(selectedInput.handler, selectedInput);
983
- forceUpdate(this);
984
- }
985
- cbClick(selectedInput) {
986
- selectedInput.checked = !selectedInput.checked;
987
- safeCall(selectedInput.handler, selectedInput);
988
- forceUpdate(this);
989
- }
990
- async buttonClick(button) {
991
- const role = button.role;
992
- const values = this.getValues();
993
- if (isCancel(role)) {
994
- return this.dismiss({ values }, role);
995
- }
996
- const returnData = await this.callButtonHandler(button, values);
997
- if (returnData !== false) {
998
- return this.dismiss(Object.assign({ values }, returnData), button.role);
999
- }
1000
- return false;
1001
- }
1002
- async callButtonHandler(button, data) {
1003
- if (button === null || button === void 0 ? void 0 : button.handler) {
1004
- // a handler has been provided, execute it
1005
- // pass the handler the values from the inputs
1006
- const returnData = await safeCall(button.handler, data);
1007
- if (returnData === false) {
1008
- // if the return value of the handler is false then do not dismiss
1009
- return false;
1010
- }
1011
- if (typeof returnData === 'object') {
1012
- return returnData;
1013
- }
1014
- }
1015
- return {};
1016
- }
1017
- getValues() {
1018
- if (this.processedInputs.length === 0) {
1019
- // this is an alert without any options/inputs at all
1020
- return undefined;
1021
- }
1022
- if (this.inputType === 'radio') {
1023
- // this is an alert with radio buttons (single value select)
1024
- // return the one value which is checked, otherwise undefined
1025
- const checkedInput = this.processedInputs.find((i) => !!i.checked);
1026
- return checkedInput ? checkedInput.value : undefined;
1027
- }
1028
- if (this.inputType === 'checkbox') {
1029
- // this is an alert with checkboxes (multiple value select)
1030
- // return an array of all the checked values
1031
- return this.processedInputs.filter((i) => i.checked).map((i) => i.value);
1032
- }
1033
- // this is an alert with text inputs
1034
- // return an object of all the values with the input name as the key
1035
- const values = {};
1036
- this.processedInputs.forEach((i) => {
1037
- values[i.name] = i.value || '';
1038
- });
1039
- return values;
1040
- }
1041
- renderAlertInputs() {
1042
- switch (this.inputType) {
1043
- case 'checkbox':
1044
- return this.renderCheckbox();
1045
- case 'radio':
1046
- return this.renderRadio();
1047
- default:
1048
- return this.renderInput();
1049
- }
1050
- }
1051
- renderCheckbox() {
1052
- const inputs = this.processedInputs;
1053
- const mode = getIonMode(this);
1054
- if (inputs.length === 0) {
1055
- return null;
1056
- }
1057
- return (h("div", { class: "alert-checkbox-group" }, inputs.map((i) => (h("button", { type: "button", onClick: () => this.cbClick(i), "aria-checked": `${i.checked}`, id: i.id, disabled: i.disabled, tabIndex: i.tabindex, role: "checkbox", class: Object.assign(Object.assign({}, getClassMap(i.cssClass)), { 'alert-tappable': true, 'alert-checkbox': true, 'alert-checkbox-button': true, 'ion-focusable': true, 'alert-checkbox-button-disabled': i.disabled || false }) }, h("div", { class: "alert-button-inner" }, h("div", { class: "alert-checkbox-icon" }, h("div", { class: "alert-checkbox-inner" })), h("div", { class: "alert-checkbox-label" }, i.label)), mode === 'md' && h("ion-ripple-effect", null))))));
1058
- }
1059
- renderRadio() {
1060
- const inputs = this.processedInputs;
1061
- if (inputs.length === 0) {
1062
- return null;
1063
- }
1064
- return (h("div", { class: "alert-radio-group", role: "radiogroup", "aria-activedescendant": this.activeId }, inputs.map((i) => (h("button", { type: "button", onClick: () => this.rbClick(i), "aria-checked": `${i.checked}`, disabled: i.disabled, id: i.id, tabIndex: i.tabindex, class: Object.assign(Object.assign({}, getClassMap(i.cssClass)), { 'alert-radio-button': true, 'alert-tappable': true, 'alert-radio': true, 'ion-focusable': true, 'alert-radio-button-disabled': i.disabled || false }), role: "radio" }, h("div", { class: "alert-button-inner" }, h("div", { class: "alert-radio-icon" }, h("div", { class: "alert-radio-inner" })), h("div", { class: "alert-radio-label" }, i.label)))))));
1065
- }
1066
- renderInput() {
1067
- const inputs = this.processedInputs;
1068
- if (inputs.length === 0) {
1069
- return null;
1070
- }
1071
- return (h("div", { class: "alert-input-group" }, inputs.map((i) => {
1072
- var _a, _b, _c, _d;
1073
- if (i.type === 'textarea') {
1074
- return (h("div", { class: "alert-input-wrapper" }, h("textarea", Object.assign({ placeholder: i.placeholder, value: i.value, id: i.id, tabIndex: i.tabindex }, i.attributes, { disabled: (_b = (_a = i.attributes) === null || _a === void 0 ? void 0 : _a.disabled) !== null && _b !== void 0 ? _b : i.disabled, class: inputClass(i), onInput: (e) => {
1075
- var _a;
1076
- i.value = e.target.value;
1077
- if ((_a = i.attributes) === null || _a === void 0 ? void 0 : _a.onInput) {
1078
- i.attributes.onInput(e);
1079
- }
1080
- } }))));
1081
- }
1082
- else {
1083
- return (h("div", { class: "alert-input-wrapper" }, h("input", Object.assign({ placeholder: i.placeholder, type: i.type, min: i.min, max: i.max, value: i.value, id: i.id, tabIndex: i.tabindex }, i.attributes, { disabled: (_d = (_c = i.attributes) === null || _c === void 0 ? void 0 : _c.disabled) !== null && _d !== void 0 ? _d : i.disabled, class: inputClass(i), onInput: (e) => {
1084
- var _a;
1085
- i.value = e.target.value;
1086
- if ((_a = i.attributes) === null || _a === void 0 ? void 0 : _a.onInput) {
1087
- i.attributes.onInput(e);
1088
- }
1089
- } }))));
1090
- }
1091
- })));
1092
- }
1093
- renderAlertButtons() {
1094
- const buttons = this.processedButtons;
1095
- const mode = getIonMode(this);
1096
- const alertButtonGroupClass = {
1097
- 'alert-button-group': true,
1098
- 'alert-button-group-vertical': buttons.length > 2,
1099
- };
1100
- return (h("div", { class: alertButtonGroupClass }, buttons.map((button) => (h("button", Object.assign({}, button.htmlAttributes, { type: "button", id: button.id, class: buttonClass(button), tabIndex: 0, onClick: () => this.buttonClick(button) }), h("span", { class: "alert-button-inner" }, button.text), mode === 'md' && h("ion-ripple-effect", null))))));
1101
- }
1102
- renderAlertMessage(msgId) {
1103
- const { customHTMLEnabled, message } = this;
1104
- if (customHTMLEnabled) {
1105
- return h("div", { id: msgId, class: "alert-message", innerHTML: sanitizeDOMString(message) });
1106
- }
1107
- return (h("div", { id: msgId, class: "alert-message" }, message));
1108
- }
1109
- render() {
1110
- const { overlayIndex, header, subHeader, message, htmlAttributes } = this;
1111
- const mode = getIonMode(this);
1112
- const hdrId = `alert-${overlayIndex}-hdr`;
1113
- const msgId = `alert-${overlayIndex}-msg`;
1114
- const subHdrId = `alert-${overlayIndex}-sub-hdr`;
1115
- const role = this.inputs.length > 0 || this.buttons.length > 0 ? 'alertdialog' : 'alert';
1116
- /**
1117
- * Use both the header and subHeader ids if they are defined.
1118
- * If only the header is defined, use the header id.
1119
- * If only the subHeader is defined, use the subHeader id.
1120
- * If neither are defined, do not set aria-labelledby.
1121
- */
1122
- const ariaLabelledBy = header && subHeader ? `${hdrId} ${subHdrId}` : header ? hdrId : subHeader ? subHdrId : null;
1123
- return (h(Host, { key: '6025440b9cd369d4fac89e7e4296c84a10a0b8e0', tabindex: "-1", style: {
1124
- zIndex: `${20000 + overlayIndex}`,
1125
- }, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'alert-translucent': this.translucent }), onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }, h("ion-backdrop", { key: '3cd5ca8b99cb95b11dd22ab41a820d841142896f', tappable: this.backdropDismiss }), h("div", { key: '4cc62ae6e21424057d22aeef1e8fc77011e77cd5', tabindex: "0", "aria-hidden": "true" }), h("div", Object.assign({ key: '364057a69f25aa88904df17bdcf7e5bf714e7830', class: "alert-wrapper ion-overlay-wrapper", role: role, "aria-modal": "true", "aria-labelledby": ariaLabelledBy, "aria-describedby": message !== undefined ? msgId : null, tabindex: "0", ref: (el) => (this.wrapperEl = el) }, htmlAttributes), h("div", { key: '78694e3c0db2d408df3899fb1a90859bcc8d14cc', class: "alert-head" }, header && (h("h2", { key: 'ec88ff3e4e1ea871b5975133fdcf4cac38b05e0f', id: hdrId, class: "alert-title" }, header)), subHeader && !header && (h("h2", { key: '9b09bc8bb68af255ef8b7d22587acc946148e544', id: subHdrId, class: "alert-sub-title" }, subHeader)), subHeader && header && (h("h3", { key: '99abe815f75d2df7f1b77c0df9f3436724fea76f', id: subHdrId, class: "alert-sub-title" }, subHeader))), this.renderAlertMessage(msgId), this.renderAlertInputs(), this.renderAlertButtons()), h("div", { key: 'a43d0c22c0e46b1ef911f92ffeb253d7911b85f7', tabindex: "0", "aria-hidden": "true" })));
1126
- }
1127
- get el() { return getElement(this); }
1128
- static get watchers() { return {
1129
- "isOpen": [{
1130
- "onIsOpenChange": 0
1131
- }],
1132
- "trigger": [{
1133
- "triggerChanged": 0
1134
- }],
1135
- "buttons": [{
1136
- "buttonsChanged": 0
1137
- }],
1138
- "inputs": [{
1139
- "inputsChanged": 0
1140
- }]
1141
- }; }
1142
- };
1143
- const inputClass = (input) => {
1144
- var _a, _b, _c;
1145
- return Object.assign(Object.assign({ 'alert-input': true, 'alert-input-disabled': ((_b = (_a = input.attributes) === null || _a === void 0 ? void 0 : _a.disabled) !== null && _b !== void 0 ? _b : input.disabled) || false }, getClassMap(input.cssClass)), getClassMap(input.attributes ? (_c = input.attributes.class) === null || _c === void 0 ? void 0 : _c.toString() : ''));
1146
- };
1147
- const buttonClass = (button) => {
1148
- return Object.assign({ 'alert-button': true, 'ion-focusable': true, 'ion-activatable': true, [`alert-button-role-${button.role}`]: button.role !== undefined }, getClassMap(button.cssClass));
1149
- };
1150
- Alert.style = {
1151
- ios: alertIosCss(),
1152
- md: alertMdCss()
1153
- };
1154
-
1155
- /*!
1156
- * (C) Ionic http://ionicframework.com - MIT License
1157
- */
1158
- var Style;
1159
- (function (Style) {
1160
- Style["Dark"] = "DARK";
1161
- Style["Light"] = "LIGHT";
1162
- Style["Default"] = "DEFAULT";
1163
- })(Style || (Style = {}));
1164
- const StatusBar = {
1165
- getEngine() {
1166
- const capacitor = getCapacitor();
1167
- if (capacitor === null || capacitor === void 0 ? void 0 : capacitor.isPluginAvailable('StatusBar')) {
1168
- return capacitor.Plugins.StatusBar;
1169
- }
1170
- return undefined;
1171
- },
1172
- setStyle(options) {
1173
- const engine = this.getEngine();
1174
- if (!engine) {
1175
- return;
1176
- }
1177
- engine.setStyle(options);
1178
- },
1179
- getStyle: async function () {
1180
- const engine = this.getEngine();
1181
- if (!engine) {
1182
- return Style.Default;
1183
- }
1184
- const { style } = await engine.getInfo();
1185
- return style;
1186
- },
1187
- };
1188
-
1189
- /*!
1190
- * (C) Ionic http://ionicframework.com - MIT License
1191
- */
1192
- /**
1193
- * Use y = mx + b to
1194
- * figure out the backdrop value
1195
- * at a particular x coordinate. This
1196
- * is useful when the backdrop does
1197
- * not begin to fade in until after
1198
- * the 0 breakpoint.
1199
- */
1200
- const getBackdropValueForSheet = (x, backdropBreakpoint) => {
1201
- /**
1202
- * We will use these points:
1203
- * (backdropBreakpoint, 0)
1204
- * (maxBreakpoint, 1)
1205
- * We know that at the beginning breakpoint,
1206
- * the backdrop will be hidden. We also
1207
- * know that at the maxBreakpoint, the backdrop
1208
- * must be fully visible. maxBreakpoint should
1209
- * always be 1 even if the maximum value
1210
- * of the breakpoints array is not 1 since
1211
- * the animation runs from a progress of 0
1212
- * to a progress of 1.
1213
- * m = (y2 - y1) / (x2 - x1)
1214
- *
1215
- * This is simplified from:
1216
- * m = (1 - 0) / (maxBreakpoint - backdropBreakpoint)
1217
- *
1218
- * If the backdropBreakpoint is 1, we return 0 as the
1219
- * backdrop is completely hidden.
1220
- *
1221
- */
1222
- if (backdropBreakpoint === 1) {
1223
- return 0;
1224
- }
1225
- const slope = 1 / (1 - backdropBreakpoint);
1226
- /**
1227
- * From here, compute b which is
1228
- * the backdrop opacity if the offset
1229
- * is 0. If the backdrop does not
1230
- * begin to fade in until after the
1231
- * 0 breakpoint, this b value will be
1232
- * negative. This is fine as we never pass
1233
- * b directly into the animation keyframes.
1234
- * b = y - mx
1235
- * Use a known point: (backdropBreakpoint, 0)
1236
- * This is simplified from:
1237
- * b = 0 - (backdropBreakpoint * slope)
1238
- */
1239
- const b = -(backdropBreakpoint * slope);
1240
- /**
1241
- * Finally, we can now determine the
1242
- * backdrop offset given an arbitrary
1243
- * gesture offset.
1244
- */
1245
- return x * slope + b;
1246
- };
1247
- /**
1248
- * The tablet/desktop card modal activates
1249
- * when the window width is >= 768.
1250
- * At that point, the presenting element
1251
- * is not transformed, so we do not need to
1252
- * adjust the status bar color.
1253
- *
1254
- */
1255
- const setCardStatusBarDark = () => {
1256
- if (!win || win.innerWidth >= 768) {
1257
- return;
1258
- }
1259
- StatusBar.setStyle({ style: Style.Dark });
1260
- };
1261
- const setCardStatusBarDefault = (defaultStyle = Style.Default) => {
1262
- if (!win || win.innerWidth >= 768) {
1263
- return;
1264
- }
1265
- StatusBar.setStyle({ style: defaultStyle });
1266
- };
1267
-
1268
- /*!
1269
- * (C) Ionic http://ionicframework.com - MIT License
1270
- */
1271
- const handleCanDismiss = async (el, animation) => {
1272
- /**
1273
- * If canDismiss is not a function
1274
- * then we can return early. If canDismiss is `true`,
1275
- * then canDismissBlocksGesture is `false` as canDismiss
1276
- * will never interrupt the gesture. As a result,
1277
- * this code block is never reached. If canDismiss is `false`,
1278
- * then we never dismiss.
1279
- */
1280
- if (typeof el.canDismiss !== 'function') {
1281
- return;
1282
- }
1283
- /**
1284
- * Run the canDismiss callback.
1285
- * If the function returns `true`,
1286
- * then we can proceed with dismiss.
1287
- */
1288
- const shouldDismiss = await el.canDismiss(undefined, GESTURE);
1289
- if (!shouldDismiss) {
1290
- return;
1291
- }
1292
- /**
1293
- * If canDismiss resolved after the snap
1294
- * back animation finished, we can
1295
- * dismiss immediately.
1296
- *
1297
- * If canDismiss resolved before the snap
1298
- * back animation finished, we need to
1299
- * wait until the snap back animation is
1300
- * done before dismissing.
1301
- */
1302
- if (animation.isRunning()) {
1303
- animation.onFinish(() => {
1304
- el.dismiss(undefined, 'handler');
1305
- }, { oneTimeCallback: true });
1306
- }
1307
- else {
1308
- el.dismiss(undefined, 'handler');
1309
- }
1310
- };
1311
- /**
1312
- * This function lets us simulate a realistic spring-like animation
1313
- * when swiping down on the modal.
1314
- * There are two forces that we need to use to compute the spring physics:
1315
- *
1316
- * 1. Stiffness, k: This is a measure of resistance applied a spring.
1317
- * 2. Dampening, c: This value has the effect of reducing or preventing oscillation.
1318
- *
1319
- * Using these two values, we can calculate the Spring Force and the Dampening Force
1320
- * to compute the total force applied to a spring.
1321
- *
1322
- * Spring Force: This force pulls a spring back into its equilibrium position.
1323
- * Hooke's Law tells us that that spring force (FS) = kX.
1324
- * k is the stiffness of a spring, and X is the displacement of the spring from its
1325
- * equilibrium position. In this case, it is the amount by which the free end
1326
- * of a spring was displaced (stretched/pushed) from its "relaxed" position.
1327
- *
1328
- * Dampening Force: This force slows down motion. Without it, a spring would oscillate forever.
1329
- * The dampening force, FD, can be found via this formula: FD = -cv
1330
- * where c the dampening value and v is velocity.
1331
- *
1332
- * Therefore, the resulting force that is exerted on the block is:
1333
- * F = FS + FD = -kX - cv
1334
- *
1335
- * Newton's 2nd Law tells us that F = ma:
1336
- * ma = -kX - cv.
1337
- *
1338
- * For Ionic's purposes, we can assume that m = 1:
1339
- * a = -kX - cv
1340
- *
1341
- * Imagine a block attached to the end of a spring. At equilibrium
1342
- * the block is at position x = 1.
1343
- * Pressing on the block moves it to position x = 0;
1344
- * So, to calculate the displacement, we need to take the
1345
- * current position and subtract the previous position from it.
1346
- * X = x - x0 = 0 - 1 = -1.
1347
- *
1348
- * For Ionic's purposes, we are only pushing on the spring modal
1349
- * so we have a max position of 1.
1350
- * As a result, we can expand displacement to this formula:
1351
- * X = x - 1
1352
- *
1353
- * a = -k(x - 1) - cv
1354
- *
1355
- * We can represent the motion of something as a function of time: f(t) = x.
1356
- * The derivative of position gives us the velocity: f'(t)
1357
- * The derivative of the velocity gives us the acceleration: f''(t)
1358
- *
1359
- * We can substitute the formula above with these values:
1360
- *
1361
- * f"(t) = -k * (f(t) - 1) - c * f'(t)
1362
- *
1363
- * This is called a differential equation.
1364
- *
1365
- * We know that at t = 0, we are at x = 0 because the modal does not move: f(0) = 0
1366
- * This means our velocity is also zero: f'(0) = 0.
1367
- *
1368
- * We can cheat a bit and plug the formula into Wolfram Alpha.
1369
- * However, we need to pick stiffness and dampening values:
1370
- * k = 0.57
1371
- * c = 15
1372
- *
1373
- * I picked these as they are fairly close to native iOS's spring effect
1374
- * with the modal.
1375
- *
1376
- * What we plug in is this: f(0) = 0; f'(0) = 0; f''(t) = -0.57(f(t) - 1) - 15f'(t)
1377
- *
1378
- * The result is a formula that lets us calculate the acceleration
1379
- * for a given time t.
1380
- * Note: This is the approximate form of the solution. Wolfram Alpha will
1381
- * give you a complex differential equation too.
1382
- */
1383
- const calculateSpringStep = (t) => {
1384
- return 0.00255275 * 2.71828 ** (-14.9619 * t) - 1.00255 * 2.71828 ** (-0.0380968 * t) + 1;
1385
- };
1386
-
1387
- /*!
1388
- * (C) Ionic http://ionicframework.com - MIT License
1389
- */
1390
- // Defaults for the card swipe animation
1391
- const SwipeToCloseDefaults = {
1392
- MIN_PRESENTING_SCALE: 0.915,
1393
- };
1394
- const createSwipeToCloseGesture = (el, animation, statusBarStyle, onDismiss) => {
1395
- /**
1396
- * The step value at which a card modal
1397
- * is eligible for dismissing via gesture.
1398
- */
1399
- const DISMISS_THRESHOLD = 0.5;
1400
- const height = el.offsetHeight;
1401
- let isOpen = false;
1402
- let canDismissBlocksGesture = false;
1403
- let contentEl = null;
1404
- let scrollEl = null;
1405
- const canDismissMaxStep = 0.2;
1406
- let initialScrollY = true;
1407
- let lastStep = 0;
1408
- const getScrollY = () => {
1409
- if (contentEl && isIonContent(contentEl)) {
1410
- return contentEl.scrollY;
1411
- /**
1412
- * Custom scroll containers are intended to be
1413
- * used with virtual scrolling, so we assume
1414
- * there is scrolling in this case.
1415
- */
1416
- }
1417
- else {
1418
- return true;
1419
- }
1420
- };
1421
- const canStart = (detail) => {
1422
- const target = detail.event.target;
1423
- if (target === null || !target.closest) {
1424
- return true;
1425
- }
1426
- /**
1427
- * If we are swiping on the content,
1428
- * swiping should only be possible if
1429
- * the content is scrolled all the way
1430
- * to the top so that we do not interfere
1431
- * with scrolling.
1432
- *
1433
- * We cannot assume that the `ion-content`
1434
- * target will remain consistent between
1435
- * swipes. For example, when using
1436
- * ion-nav within a card modal it is
1437
- * possible to swipe, push a view, and then
1438
- * swipe again. The target content will not
1439
- * be the same between swipes.
1440
- */
1441
- contentEl = findClosestIonContent(target);
1442
- if (contentEl) {
1443
- /**
1444
- * The card should never swipe to close
1445
- * on the content with a refresher.
1446
- * Note: We cannot solve this by making the
1447
- * swipeToClose gesture have a higher priority
1448
- * than the refresher gesture as the iOS native
1449
- * refresh gesture uses a scroll listener in
1450
- * addition to a gesture.
1451
- *
1452
- * Note: Do not use getScrollElement here
1453
- * because we need this to be a synchronous
1454
- * operation, and getScrollElement is
1455
- * asynchronous.
1456
- */
1457
- if (isIonContent(contentEl)) {
1458
- const root = getElementRoot(contentEl);
1459
- scrollEl = root.querySelector('.inner-scroll');
1460
- }
1461
- else {
1462
- scrollEl = contentEl;
1463
- }
1464
- const hasRefresherInContent = !!contentEl.querySelector('ion-refresher');
1465
- return !hasRefresherInContent && scrollEl.scrollTop === 0;
1466
- }
1467
- /**
1468
- * Card should be swipeable on all
1469
- * parts of the modal except for the footer.
1470
- */
1471
- const footer = target.closest('ion-footer');
1472
- if (footer === null) {
1473
- return true;
1474
- }
1475
- return false;
1476
- };
1477
- const onStart = (detail) => {
1478
- const { deltaY } = detail;
1479
- /**
1480
- * Get the initial scrollY value so
1481
- * that we can correctly reset the scrollY
1482
- * prop when the gesture ends.
1483
- */
1484
- initialScrollY = getScrollY();
1485
- /**
1486
- * If canDismiss is anything other than `true`
1487
- * then users should be able to swipe down
1488
- * until a threshold is hit. At that point,
1489
- * the card modal should not proceed any further.
1490
- * TODO (FW-937)
1491
- * Remove undefined check
1492
- */
1493
- canDismissBlocksGesture = el.canDismiss !== undefined && el.canDismiss !== true;
1494
- /**
1495
- * If we are pulling down, then
1496
- * it is possible we are pulling on the
1497
- * content. We do not want scrolling to
1498
- * happen at the same time as the gesture.
1499
- */
1500
- if (deltaY > 0 && contentEl) {
1501
- disableContentScrollY(contentEl);
1502
- }
1503
- animation.progressStart(true, isOpen ? 1 : 0);
1504
- };
1505
- const onMove = (detail) => {
1506
- const { deltaY } = detail;
1507
- /**
1508
- * If we are pulling down, then
1509
- * it is possible we are pulling on the
1510
- * content. We do not want scrolling to
1511
- * happen at the same time as the gesture.
1512
- */
1513
- if (deltaY > 0 && contentEl) {
1514
- disableContentScrollY(contentEl);
1515
- }
1516
- /**
1517
- * If we are swiping on the content
1518
- * then the swipe gesture should only
1519
- * happen if we are pulling down.
1520
- *
1521
- * However, if we pull up and
1522
- * then down such that the scroll position
1523
- * returns to 0, we should be able to swipe
1524
- * the card.
1525
- */
1526
- const step = detail.deltaY / height;
1527
- /**
1528
- * Check if user is swiping down and
1529
- * if we have a canDismiss value that
1530
- * should block the gesture from
1531
- * proceeding,
1532
- */
1533
- const isAttemptingDismissWithCanDismiss = step >= 0 && canDismissBlocksGesture;
1534
- /**
1535
- * If we are blocking the gesture from dismissing,
1536
- * set the max step value so that the sheet cannot be
1537
- * completely hidden.
1538
- */
1539
- const maxStep = isAttemptingDismissWithCanDismiss ? canDismissMaxStep : 0.9999;
1540
- /**
1541
- * If we are blocking the gesture from
1542
- * dismissing, calculate the spring modifier value
1543
- * this will be added to the starting breakpoint
1544
- * value to give the gesture a spring-like feeling.
1545
- * Note that the starting breakpoint is always 0,
1546
- * so we omit adding 0 to the result.
1547
- */
1548
- const processedStep = isAttemptingDismissWithCanDismiss ? calculateSpringStep(step / maxStep) : step;
1549
- const clampedStep = clamp(0.0001, processedStep, maxStep);
1550
- animation.progressStep(clampedStep);
1551
- /**
1552
- * When swiping down half way, the status bar style
1553
- * should be reset to its default value.
1554
- *
1555
- * We track lastStep so that we do not fire these
1556
- * functions on every onMove, only when the user has
1557
- * crossed a certain threshold.
1558
- */
1559
- if (clampedStep >= DISMISS_THRESHOLD && lastStep < DISMISS_THRESHOLD) {
1560
- setCardStatusBarDefault(statusBarStyle);
1561
- /**
1562
- * However, if we swipe back up, then the
1563
- * status bar style should be set to have light
1564
- * text on a dark background.
1565
- */
1566
- }
1567
- else if (clampedStep < DISMISS_THRESHOLD && lastStep >= DISMISS_THRESHOLD) {
1568
- setCardStatusBarDark();
1569
- }
1570
- lastStep = clampedStep;
1571
- };
1572
- const onEnd = (detail) => {
1573
- const velocity = detail.velocityY;
1574
- const step = detail.deltaY / height;
1575
- const isAttemptingDismissWithCanDismiss = step >= 0 && canDismissBlocksGesture;
1576
- const maxStep = isAttemptingDismissWithCanDismiss ? canDismissMaxStep : 0.9999;
1577
- const processedStep = isAttemptingDismissWithCanDismiss ? calculateSpringStep(step / maxStep) : step;
1578
- const clampedStep = clamp(0.0001, processedStep, maxStep);
1579
- const threshold = (detail.deltaY + velocity * 1000) / height;
1580
- /**
1581
- * If canDismiss blocks
1582
- * the swipe gesture, then the
1583
- * animation can never complete until
1584
- * canDismiss is checked.
1585
- */
1586
- const shouldComplete = !isAttemptingDismissWithCanDismiss && threshold >= DISMISS_THRESHOLD;
1587
- let newStepValue = shouldComplete ? -1e-3 : 0.001;
1588
- if (!shouldComplete) {
1589
- animation.easing('cubic-bezier(1, 0, 0.68, 0.28)');
1590
- newStepValue += getTimeGivenProgression([0, 0], [1, 0], [0.68, 0.28], [1, 1], clampedStep)[0];
1591
- }
1592
- else {
1593
- animation.easing('cubic-bezier(0.32, 0.72, 0, 1)');
1594
- newStepValue += getTimeGivenProgression([0, 0], [0.32, 0.72], [0, 1], [1, 1], clampedStep)[0];
1595
- }
1596
- const duration = shouldComplete
1597
- ? computeDuration(step * height, velocity)
1598
- : computeDuration((1 - clampedStep) * height, velocity);
1599
- isOpen = shouldComplete;
1600
- gesture.enable(false);
1601
- if (contentEl) {
1602
- resetContentScrollY(contentEl, initialScrollY);
1603
- }
1604
- animation
1605
- .onFinish(() => {
1606
- if (!shouldComplete) {
1607
- gesture.enable(true);
1608
- }
1609
- })
1610
- .progressEnd(shouldComplete ? 1 : 0, newStepValue, duration);
1611
- /**
1612
- * If the canDismiss value blocked the gesture
1613
- * from proceeding, then we should ignore whatever
1614
- * shouldComplete is. Whether or not the modal
1615
- * animation should complete is now determined by
1616
- * canDismiss.
1617
- *
1618
- * If the user swiped >25% of the way
1619
- * to the max step, then we should
1620
- * check canDismiss. 25% was chosen
1621
- * to avoid accidental swipes.
1622
- */
1623
- if (isAttemptingDismissWithCanDismiss && clampedStep > maxStep / 4) {
1624
- handleCanDismiss(el, animation);
1625
- }
1626
- else if (shouldComplete) {
1627
- onDismiss();
1628
- }
1629
- };
1630
- const gesture = createGesture({
1631
- el,
1632
- gestureName: 'modalSwipeToClose',
1633
- gesturePriority: OVERLAY_GESTURE_PRIORITY,
1634
- direction: 'y',
1635
- threshold: 10,
1636
- canStart,
1637
- onStart,
1638
- onMove,
1639
- onEnd,
1640
- });
1641
- return gesture;
1642
- };
1643
- const computeDuration = (remaining, velocity) => {
1644
- return clamp(400, remaining / Math.abs(velocity * 1.1), 500);
1645
- };
1646
-
1647
- /*!
1648
- * (C) Ionic http://ionicframework.com - MIT License
1649
- */
1650
- const createSheetEnterAnimation = (opts) => {
1651
- const { currentBreakpoint, backdropBreakpoint, expandToScroll } = opts;
1652
- /**
1653
- * If the backdropBreakpoint is undefined, then the backdrop
1654
- * should always fade in. If the backdropBreakpoint came before the
1655
- * current breakpoint, then the backdrop should be fading in.
1656
- */
1657
- const shouldShowBackdrop = backdropBreakpoint === undefined || backdropBreakpoint < currentBreakpoint;
1658
- const initialBackdrop = shouldShowBackdrop ? `calc(var(--backdrop-opacity) * ${currentBreakpoint})` : '0';
1659
- const backdropAnimation = createAnimation('backdropAnimation').fromTo('opacity', 0, initialBackdrop);
1660
- if (shouldShowBackdrop) {
1661
- backdropAnimation
1662
- .beforeStyles({
1663
- 'pointer-events': 'none',
1664
- })
1665
- .afterClearStyles(['pointer-events']);
1666
- }
1667
- const wrapperAnimation = createAnimation('wrapperAnimation').keyframes([
1668
- { offset: 0, opacity: 1, transform: 'translateY(100%)' },
1669
- { offset: 1, opacity: 1, transform: `translateY(${100 - currentBreakpoint * 100}%)` },
1670
- ]);
1671
- /**
1672
- * This allows the content to be scrollable at any breakpoint.
1673
- */
1674
- const contentAnimation = !expandToScroll
1675
- ? createAnimation('contentAnimation').keyframes([
1676
- { offset: 0, opacity: 1, maxHeight: `${(1 - currentBreakpoint) * 100}%` },
1677
- { offset: 1, opacity: 1, maxHeight: `${currentBreakpoint * 100}%` },
1678
- ])
1679
- : undefined;
1680
- return { wrapperAnimation, backdropAnimation, contentAnimation };
1681
- };
1682
- const createSheetLeaveAnimation = (opts) => {
1683
- const { currentBreakpoint, backdropBreakpoint } = opts;
1684
- /**
1685
- * Backdrop does not always fade in from 0 to 1 if backdropBreakpoint
1686
- * is defined, so we need to account for that offset by figuring out
1687
- * what the current backdrop value should be.
1688
- */
1689
- const backdropValue = `calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(currentBreakpoint, backdropBreakpoint)})`;
1690
- const defaultBackdrop = [
1691
- { offset: 0, opacity: backdropValue },
1692
- { offset: 1, opacity: 0 },
1693
- ];
1694
- const customBackdrop = [
1695
- { offset: 0, opacity: backdropValue },
1696
- { offset: backdropBreakpoint, opacity: 0 },
1697
- { offset: 1, opacity: 0 },
1698
- ];
1699
- const backdropAnimation = createAnimation('backdropAnimation').keyframes(backdropBreakpoint !== 0 ? customBackdrop : defaultBackdrop);
1700
- const wrapperAnimation = createAnimation('wrapperAnimation').keyframes([
1701
- { offset: 0, opacity: 1, transform: `translateY(${100 - currentBreakpoint * 100}%)` },
1702
- { offset: 1, opacity: 1, transform: `translateY(100%)` },
1703
- ]);
1704
- return { wrapperAnimation, backdropAnimation };
1705
- };
1706
-
1707
- /*!
1708
- * (C) Ionic http://ionicframework.com - MIT License
1709
- */
1710
- const createEnterAnimation$1 = () => {
1711
- const backdropAnimation = createAnimation()
1712
- .fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
1713
- .beforeStyles({
1714
- 'pointer-events': 'none',
1715
- })
1716
- .afterClearStyles(['pointer-events']);
1717
- const wrapperAnimation = createAnimation().fromTo('transform', 'translateY(100vh)', 'translateY(0vh)');
1718
- return { backdropAnimation, wrapperAnimation, contentAnimation: undefined };
1719
- };
1720
- /**
1721
- * iOS Modal Enter Animation for the Card presentation style
1722
- */
1723
- const iosEnterAnimation = (baseEl, opts) => {
1724
- const { presentingEl, currentBreakpoint, expandToScroll } = opts;
1725
- const root = getElementRoot(baseEl);
1726
- const { wrapperAnimation, backdropAnimation, contentAnimation } = currentBreakpoint !== undefined ? createSheetEnterAnimation(opts) : createEnterAnimation$1();
1727
- backdropAnimation.addElement(root.querySelector('ion-backdrop'));
1728
- wrapperAnimation.addElement(root.querySelectorAll('.modal-wrapper, .modal-shadow')).beforeStyles({ opacity: 1 });
1729
- // The content animation is only added if scrolling is enabled for
1730
- // all the breakpoints.
1731
- !expandToScroll && (contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.addElement(baseEl.querySelector('.ion-page')));
1732
- const baseAnimation = createAnimation('entering-base')
1733
- .addElement(baseEl)
1734
- .easing('cubic-bezier(0.32,0.72,0,1)')
1735
- .duration(500)
1736
- .addAnimation([wrapperAnimation]);
1737
- if (contentAnimation) {
1738
- baseAnimation.addAnimation(contentAnimation);
1739
- }
1740
- if (presentingEl) {
1741
- const isPortrait = window.innerWidth < 768;
1742
- const hasCardModal = presentingEl.tagName === 'ION-MODAL' && presentingEl.presentingElement !== undefined;
1743
- const presentingElRoot = getElementRoot(presentingEl);
1744
- const presentingAnimation = createAnimation().beforeStyles({
1745
- transform: 'translateY(0)',
1746
- 'transform-origin': 'top center',
1747
- overflow: 'hidden',
1748
- });
1749
- const bodyEl = document.body;
1750
- if (isPortrait) {
1751
- /**
1752
- * Fallback for browsers that does not support `max()` (ex: Firefox)
1753
- * No need to worry about statusbar padding since engines like Gecko
1754
- * are not used as the engine for standalone Cordova/Capacitor apps
1755
- */
1756
- const transformOffset = !CSS.supports('width', 'max(0px, 1px)') ? '30px' : 'max(30px, var(--ion-safe-area-top))';
1757
- const modalTransform = hasCardModal ? '-10px' : transformOffset;
1758
- const toPresentingScale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
1759
- const finalTransform = `translateY(${modalTransform}) scale(${toPresentingScale})`;
1760
- presentingAnimation
1761
- .afterStyles({
1762
- transform: finalTransform,
1763
- })
1764
- .beforeAddWrite(() => bodyEl.style.setProperty('background-color', 'black'))
1765
- .addElement(presentingEl)
1766
- .keyframes([
1767
- { offset: 0, filter: 'contrast(1)', transform: 'translateY(0px) scale(1)', borderRadius: '0px' },
1768
- { offset: 1, filter: 'contrast(0.85)', transform: finalTransform, borderRadius: '10px 10px 0 0' },
1769
- ]);
1770
- baseAnimation.addAnimation(presentingAnimation);
1771
- }
1772
- else {
1773
- baseAnimation.addAnimation(backdropAnimation);
1774
- if (!hasCardModal) {
1775
- wrapperAnimation.fromTo('opacity', '0', '1');
1776
- }
1777
- else {
1778
- const toPresentingScale = hasCardModal ? SwipeToCloseDefaults.MIN_PRESENTING_SCALE : 1;
1779
- const finalTransform = `translateY(-10px) scale(${toPresentingScale})`;
1780
- presentingAnimation
1781
- .afterStyles({
1782
- transform: finalTransform,
1783
- })
1784
- .addElement(presentingElRoot.querySelector('.modal-wrapper'))
1785
- .keyframes([
1786
- { offset: 0, filter: 'contrast(1)', transform: 'translateY(0) scale(1)' },
1787
- { offset: 1, filter: 'contrast(0.85)', transform: finalTransform },
1788
- ]);
1789
- const shadowAnimation = createAnimation()
1790
- .afterStyles({
1791
- transform: finalTransform,
1792
- })
1793
- .addElement(presentingElRoot.querySelector('.modal-shadow'))
1794
- .keyframes([
1795
- { offset: 0, opacity: '1', transform: 'translateY(0) scale(1)' },
1796
- { offset: 1, opacity: '0', transform: finalTransform },
1797
- ]);
1798
- baseAnimation.addAnimation([presentingAnimation, shadowAnimation]);
1799
- }
1800
- }
1801
- }
1802
- else {
1803
- baseAnimation.addAnimation(backdropAnimation);
1804
- }
1805
- return baseAnimation;
1806
- };
1807
-
1808
- /*!
1809
- * (C) Ionic http://ionicframework.com - MIT License
1810
- */
1811
- const createLeaveAnimation$1 = () => {
1812
- const backdropAnimation = createAnimation().fromTo('opacity', 'var(--backdrop-opacity)', 0);
1813
- const wrapperAnimation = createAnimation().fromTo('transform', 'translateY(0vh)', 'translateY(100vh)');
1814
- return { backdropAnimation, wrapperAnimation };
1815
- };
1816
- /**
1817
- * iOS Modal Leave Animation
1818
- */
1819
- const iosLeaveAnimation = (baseEl, opts, duration = 500) => {
1820
- const { presentingEl, currentBreakpoint } = opts;
1821
- const root = getElementRoot(baseEl);
1822
- const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetLeaveAnimation(opts) : createLeaveAnimation$1();
1823
- backdropAnimation.addElement(root.querySelector('ion-backdrop'));
1824
- wrapperAnimation.addElement(root.querySelectorAll('.modal-wrapper, .modal-shadow')).beforeStyles({ opacity: 1 });
1825
- const baseAnimation = createAnimation('leaving-base')
1826
- .addElement(baseEl)
1827
- .easing('cubic-bezier(0.32,0.72,0,1)')
1828
- .duration(duration)
1829
- .addAnimation(wrapperAnimation);
1830
- if (presentingEl) {
1831
- const isPortrait = window.innerWidth < 768;
1832
- const hasCardModal = presentingEl.tagName === 'ION-MODAL' && presentingEl.presentingElement !== undefined;
1833
- const presentingElRoot = getElementRoot(presentingEl);
1834
- const presentingAnimation = createAnimation()
1835
- .beforeClearStyles(['transform'])
1836
- .afterClearStyles(['transform'])
1837
- .onFinish((currentStep) => {
1838
- // only reset background color if this is the last card-style modal
1839
- if (currentStep !== 1) {
1840
- return;
1841
- }
1842
- presentingEl.style.setProperty('overflow', '');
1843
- const numModals = Array.from(bodyEl.querySelectorAll('ion-modal:not(.overlay-hidden)')).filter((m) => m.presentingElement !== undefined).length;
1844
- if (numModals <= 1) {
1845
- bodyEl.style.setProperty('background-color', '');
1846
- }
1847
- });
1848
- const bodyEl = document.body;
1849
- if (isPortrait) {
1850
- const transformOffset = !CSS.supports('width', 'max(0px, 1px)') ? '30px' : 'max(30px, var(--ion-safe-area-top))';
1851
- const modalTransform = hasCardModal ? '-10px' : transformOffset;
1852
- const toPresentingScale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
1853
- const finalTransform = `translateY(${modalTransform}) scale(${toPresentingScale})`;
1854
- presentingAnimation.addElement(presentingEl).keyframes([
1855
- { offset: 0, filter: 'contrast(0.85)', transform: finalTransform, borderRadius: '10px 10px 0 0' },
1856
- { offset: 1, filter: 'contrast(1)', transform: 'translateY(0px) scale(1)', borderRadius: '0px' },
1857
- ]);
1858
- baseAnimation.addAnimation(presentingAnimation);
1859
- }
1860
- else {
1861
- baseAnimation.addAnimation(backdropAnimation);
1862
- if (!hasCardModal) {
1863
- wrapperAnimation.fromTo('opacity', '1', '0');
1864
- }
1865
- else {
1866
- const toPresentingScale = hasCardModal ? SwipeToCloseDefaults.MIN_PRESENTING_SCALE : 1;
1867
- const finalTransform = `translateY(-10px) scale(${toPresentingScale})`;
1868
- presentingAnimation
1869
- .addElement(presentingElRoot.querySelector('.modal-wrapper'))
1870
- .afterStyles({
1871
- transform: 'translate3d(0, 0, 0)',
1872
- })
1873
- .keyframes([
1874
- { offset: 0, filter: 'contrast(0.85)', transform: finalTransform },
1875
- { offset: 1, filter: 'contrast(1)', transform: 'translateY(0) scale(1)' },
1876
- ]);
1877
- const shadowAnimation = createAnimation()
1878
- .addElement(presentingElRoot.querySelector('.modal-shadow'))
1879
- .afterStyles({
1880
- transform: 'translateY(0) scale(1)',
1881
- })
1882
- .keyframes([
1883
- { offset: 0, opacity: '0', transform: finalTransform },
1884
- { offset: 1, opacity: '1', transform: 'translateY(0) scale(1)' },
1885
- ]);
1886
- baseAnimation.addAnimation([presentingAnimation, shadowAnimation]);
1887
- }
1888
- }
1889
- }
1890
- else {
1891
- baseAnimation.addAnimation(backdropAnimation);
1892
- }
1893
- return baseAnimation;
1894
- };
1895
-
1896
- /*!
1897
- * (C) Ionic http://ionicframework.com - MIT License
1898
- */
1899
- /**
1900
- * Transition animation from portrait view to landscape view
1901
- * This handles the case where a card modal is open in portrait view
1902
- * and the user switches to landscape view
1903
- */
1904
- const portraitToLandscapeTransition = (baseEl, opts, duration = 300) => {
1905
- const { presentingEl } = opts;
1906
- if (!presentingEl) {
1907
- // No transition needed for non-card modals
1908
- return createAnimation('portrait-to-landscape-transition');
1909
- }
1910
- const presentingElIsCardModal = presentingEl.tagName === 'ION-MODAL' && presentingEl.presentingElement !== undefined;
1911
- const presentingElRoot = getElementRoot(presentingEl);
1912
- const bodyEl = document.body;
1913
- const baseAnimation = createAnimation('portrait-to-landscape-transition')
1914
- .addElement(baseEl)
1915
- .easing('cubic-bezier(0.32,0.72,0,1)')
1916
- .duration(duration);
1917
- const presentingAnimation = createAnimation().beforeStyles({
1918
- transform: 'translateY(0)',
1919
- 'transform-origin': 'top center',
1920
- overflow: 'hidden',
1921
- });
1922
- if (!presentingElIsCardModal) {
1923
- // The presenting element is not a card modal, so we do not
1924
- // need to care about layering and modal-specific styles.
1925
- const root = getElementRoot(baseEl);
1926
- const wrapperAnimation = createAnimation()
1927
- .addElement(root.querySelectorAll('.modal-wrapper, .modal-shadow'))
1928
- .fromTo('opacity', '1', '1'); // Keep wrapper visible in landscape
1929
- const backdropAnimation = createAnimation()
1930
- .addElement(root.querySelector('ion-backdrop'))
1931
- .fromTo('opacity', 'var(--backdrop-opacity)', 'var(--backdrop-opacity)'); // Keep backdrop visible
1932
- // Animate presentingEl from portrait state back to normal
1933
- const transformOffset = !CSS.supports('width', 'max(0px, 1px)') ? '30px' : 'max(30px, var(--ion-safe-area-top))';
1934
- const toPresentingScale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
1935
- const fromTransform = `translateY(${transformOffset}) scale(${toPresentingScale})`;
1936
- presentingAnimation
1937
- .addElement(presentingEl)
1938
- .afterStyles({
1939
- transform: 'translateY(0px) scale(1)',
1940
- 'border-radius': '0px',
1941
- })
1942
- .beforeAddWrite(() => bodyEl.style.setProperty('background-color', ''))
1943
- .fromTo('transform', fromTransform, 'translateY(0px) scale(1)')
1944
- .fromTo('filter', 'contrast(0.85)', 'contrast(1)')
1945
- .fromTo('border-radius', '10px 10px 0 0', '0px');
1946
- baseAnimation.addAnimation([presentingAnimation, wrapperAnimation, backdropAnimation]);
1947
- }
1948
- else {
1949
- // The presenting element is a card modal, so we do
1950
- // need to care about layering and modal-specific styles.
1951
- const toPresentingScale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
1952
- const fromTransform = `translateY(-10px) scale(${toPresentingScale})`;
1953
- const toTransform = `translateY(0px) scale(1)`;
1954
- presentingAnimation
1955
- .addElement(presentingEl)
1956
- .afterStyles({
1957
- transform: toTransform,
1958
- })
1959
- .fromTo('transform', fromTransform, toTransform)
1960
- .fromTo('filter', 'contrast(0.85)', 'contrast(1)');
1961
- const shadowAnimation = createAnimation()
1962
- .addElement(presentingElRoot.querySelector('.modal-shadow'))
1963
- .afterStyles({
1964
- transform: toTransform,
1965
- opacity: '0',
1966
- })
1967
- .fromTo('transform', fromTransform, toTransform);
1968
- baseAnimation.addAnimation([presentingAnimation, shadowAnimation]);
1969
- }
1970
- return baseAnimation;
1971
- };
1972
- /**
1973
- * Transition animation from landscape view to portrait view
1974
- * This handles the case where a card modal is open in landscape view
1975
- * and the user switches to portrait view
1976
- */
1977
- const landscapeToPortraitTransition = (baseEl, opts, duration = 300) => {
1978
- const { presentingEl } = opts;
1979
- if (!presentingEl) {
1980
- // No transition needed for non-card modals
1981
- return createAnimation('landscape-to-portrait-transition');
1982
- }
1983
- const presentingElIsCardModal = presentingEl.tagName === 'ION-MODAL' && presentingEl.presentingElement !== undefined;
1984
- const presentingElRoot = getElementRoot(presentingEl);
1985
- const bodyEl = document.body;
1986
- const baseAnimation = createAnimation('landscape-to-portrait-transition')
1987
- .addElement(baseEl)
1988
- .easing('cubic-bezier(0.32,0.72,0,1)')
1989
- .duration(duration);
1990
- const presentingAnimation = createAnimation().beforeStyles({
1991
- transform: 'translateY(0)',
1992
- 'transform-origin': 'top center',
1993
- overflow: 'hidden',
1994
- });
1995
- if (!presentingElIsCardModal) {
1996
- // The presenting element is not a card modal, so we do not
1997
- // need to care about layering and modal-specific styles.
1998
- const root = getElementRoot(baseEl);
1999
- const wrapperAnimation = createAnimation()
2000
- .addElement(root.querySelectorAll('.modal-wrapper, .modal-shadow'))
2001
- .fromTo('opacity', '1', '1'); // Keep wrapper visible
2002
- const backdropAnimation = createAnimation()
2003
- .addElement(root.querySelector('ion-backdrop'))
2004
- .fromTo('opacity', 'var(--backdrop-opacity)', 'var(--backdrop-opacity)'); // Keep backdrop visible
2005
- // Animate presentingEl from normal state to portrait state
2006
- const transformOffset = !CSS.supports('width', 'max(0px, 1px)') ? '30px' : 'max(30px, var(--ion-safe-area-top))';
2007
- const toPresentingScale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
2008
- const toTransform = `translateY(${transformOffset}) scale(${toPresentingScale})`;
2009
- presentingAnimation
2010
- .addElement(presentingEl)
2011
- .afterStyles({
2012
- transform: toTransform,
2013
- })
2014
- .beforeAddWrite(() => bodyEl.style.setProperty('background-color', 'black'))
2015
- .keyframes([
2016
- { offset: 0, transform: 'translateY(0px) scale(1)', filter: 'contrast(1)', borderRadius: '0px' },
2017
- { offset: 0.2, transform: 'translateY(0px) scale(1)', filter: 'contrast(1)', borderRadius: '10px 10px 0 0' },
2018
- { offset: 1, transform: toTransform, filter: 'contrast(0.85)', borderRadius: '10px 10px 0 0' },
2019
- ]);
2020
- baseAnimation.addAnimation([presentingAnimation, wrapperAnimation, backdropAnimation]);
2021
- }
2022
- else {
2023
- // The presenting element is also a card modal, so we need
2024
- // to handle layering and modal-specific styles.
2025
- const toPresentingScale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
2026
- const fromTransform = `translateY(-10px) scale(${toPresentingScale})`;
2027
- const toTransform = `translateY(0) scale(1)`;
2028
- presentingAnimation
2029
- .addElement(presentingEl)
2030
- .afterStyles({
2031
- transform: toTransform,
2032
- })
2033
- .fromTo('transform', fromTransform, toTransform);
2034
- const shadowAnimation = createAnimation()
2035
- .addElement(presentingElRoot.querySelector('.modal-shadow'))
2036
- .afterStyles({
2037
- transform: toTransform,
2038
- opacity: '0',
2039
- })
2040
- .fromTo('transform', fromTransform, toTransform);
2041
- baseAnimation.addAnimation([presentingAnimation, shadowAnimation]);
2042
- }
2043
- return baseAnimation;
2044
- };
2045
-
2046
- /*!
2047
- * (C) Ionic http://ionicframework.com - MIT License
2048
- */
2049
- const createEnterAnimation = () => {
2050
- const backdropAnimation = createAnimation()
2051
- .fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
2052
- .beforeStyles({
2053
- 'pointer-events': 'none',
2054
- })
2055
- .afterClearStyles(['pointer-events']);
2056
- const wrapperAnimation = createAnimation().keyframes([
2057
- { offset: 0, opacity: 0.01, transform: 'translateY(40px)' },
2058
- { offset: 1, opacity: 1, transform: `translateY(0px)` },
2059
- ]);
2060
- return { backdropAnimation, wrapperAnimation, contentAnimation: undefined };
2061
- };
2062
- /**
2063
- * Md Modal Enter Animation
2064
- */
2065
- const mdEnterAnimation = (baseEl, opts) => {
2066
- const { currentBreakpoint, expandToScroll } = opts;
2067
- const root = getElementRoot(baseEl);
2068
- const { wrapperAnimation, backdropAnimation, contentAnimation } = currentBreakpoint !== undefined ? createSheetEnterAnimation(opts) : createEnterAnimation();
2069
- backdropAnimation.addElement(root.querySelector('ion-backdrop'));
2070
- wrapperAnimation.addElement(root.querySelector('.modal-wrapper'));
2071
- // The content animation is only added if scrolling is enabled for
2072
- // all the breakpoints.
2073
- !expandToScroll && (contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.addElement(baseEl.querySelector('.ion-page')));
2074
- const baseAnimation = createAnimation()
2075
- .addElement(baseEl)
2076
- .easing('cubic-bezier(0.36,0.66,0.04,1)')
2077
- .duration(280)
2078
- .addAnimation([backdropAnimation, wrapperAnimation]);
2079
- if (contentAnimation) {
2080
- baseAnimation.addAnimation(contentAnimation);
2081
- }
2082
- return baseAnimation;
2083
- };
2084
-
2085
- /*!
2086
- * (C) Ionic http://ionicframework.com - MIT License
2087
- */
2088
- const createLeaveAnimation = () => {
2089
- const backdropAnimation = createAnimation().fromTo('opacity', 'var(--backdrop-opacity)', 0);
2090
- const wrapperAnimation = createAnimation().keyframes([
2091
- { offset: 0, opacity: 0.99, transform: `translateY(0px)` },
2092
- { offset: 1, opacity: 0, transform: 'translateY(40px)' },
2093
- ]);
2094
- return { backdropAnimation, wrapperAnimation };
2095
- };
2096
- /**
2097
- * Md Modal Leave Animation
2098
- */
2099
- const mdLeaveAnimation = (baseEl, opts) => {
2100
- const { currentBreakpoint } = opts;
2101
- const root = getElementRoot(baseEl);
2102
- const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetLeaveAnimation(opts) : createLeaveAnimation();
2103
- backdropAnimation.addElement(root.querySelector('ion-backdrop'));
2104
- wrapperAnimation.addElement(root.querySelector('.modal-wrapper'));
2105
- const baseAnimation = createAnimation()
2106
- .easing('cubic-bezier(0.47,0,0.745,0.715)')
2107
- .duration(200)
2108
- .addAnimation([backdropAnimation, wrapperAnimation]);
2109
- return baseAnimation;
2110
- };
2111
-
2112
- /*!
2113
- * (C) Ionic http://ionicframework.com - MIT License
2114
- */
2115
- const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, animation, breakpoints = [], expandToScroll, getCurrentBreakpoint, onDismiss, onBreakpointChange) => {
2116
- // Defaults for the sheet swipe animation
2117
- const defaultBackdrop = [
2118
- { offset: 0, opacity: 'var(--backdrop-opacity)' },
2119
- { offset: 1, opacity: 0.01 },
2120
- ];
2121
- const customBackdrop = [
2122
- { offset: 0, opacity: 'var(--backdrop-opacity)' },
2123
- { offset: 1 - backdropBreakpoint, opacity: 0 },
2124
- { offset: 1, opacity: 0 },
2125
- ];
2126
- const SheetDefaults = {
2127
- WRAPPER_KEYFRAMES: [
2128
- { offset: 0, transform: 'translateY(0%)' },
2129
- { offset: 1, transform: 'translateY(100%)' },
2130
- ],
2131
- BACKDROP_KEYFRAMES: backdropBreakpoint !== 0 ? customBackdrop : defaultBackdrop,
2132
- CONTENT_KEYFRAMES: [
2133
- { offset: 0, maxHeight: '100%' },
2134
- { offset: 1, maxHeight: '0%' },
2135
- ],
2136
- };
2137
- const contentEl = baseEl.querySelector('ion-content');
2138
- const height = wrapperEl.clientHeight;
2139
- let currentBreakpoint = initialBreakpoint;
2140
- let offset = 0;
2141
- let canDismissBlocksGesture = false;
2142
- let cachedScrollEl = null;
2143
- let cachedFooterEls = null;
2144
- let cachedFooterYPosition = null;
2145
- let currentFooterState = null;
2146
- const canDismissMaxStep = 0.95;
2147
- const maxBreakpoint = breakpoints[breakpoints.length - 1];
2148
- const minBreakpoint = breakpoints[0];
2149
- const wrapperAnimation = animation.childAnimations.find((ani) => ani.id === 'wrapperAnimation');
2150
- const backdropAnimation = animation.childAnimations.find((ani) => ani.id === 'backdropAnimation');
2151
- const contentAnimation = animation.childAnimations.find((ani) => ani.id === 'contentAnimation');
2152
- const enableBackdrop = () => {
2153
- // Respect explicit opt-out of focus trapping/backdrop interactions
2154
- // If focusTrap is false or showBackdrop is false, do not enable the backdrop or re-enable focus trap
2155
- const el = baseEl;
2156
- if (el.focusTrap === false || el.showBackdrop === false) {
2157
- return;
2158
- }
2159
- baseEl.style.setProperty('pointer-events', 'auto');
2160
- backdropEl.style.setProperty('pointer-events', 'auto');
2161
- /**
2162
- * When the backdrop is enabled, elements such
2163
- * as inputs should not be focusable outside
2164
- * the sheet.
2165
- */
2166
- baseEl.classList.remove(FOCUS_TRAP_DISABLE_CLASS);
2167
- };
2168
- const disableBackdrop = () => {
2169
- baseEl.style.setProperty('pointer-events', 'none');
2170
- backdropEl.style.setProperty('pointer-events', 'none');
2171
- /**
2172
- * When the backdrop is enabled, elements such
2173
- * as inputs should not be focusable outside
2174
- * the sheet.
2175
- * Adding this class disables focus trapping
2176
- * for the sheet temporarily.
2177
- */
2178
- baseEl.classList.add(FOCUS_TRAP_DISABLE_CLASS);
2179
- };
2180
- /**
2181
- * Toggles the footer to an absolute position while moving to prevent
2182
- * it from shaking while the sheet is being dragged.
2183
- * @param newPosition Whether the footer is in a moving or stationary position.
2184
- */
2185
- const swapFooterPosition = (newPosition) => {
2186
- if (!cachedFooterEls) {
2187
- cachedFooterEls = Array.from(baseEl.querySelectorAll('ion-footer'));
2188
- if (!cachedFooterEls.length) {
2189
- return;
2190
- }
2191
- }
2192
- const page = baseEl.querySelector('.ion-page');
2193
- currentFooterState = newPosition;
2194
- if (newPosition === 'stationary') {
2195
- cachedFooterEls.forEach((cachedFooterEl) => {
2196
- // Reset positioning styles to allow normal document flow
2197
- cachedFooterEl.classList.remove('modal-footer-moving');
2198
- cachedFooterEl.style.removeProperty('position');
2199
- cachedFooterEl.style.removeProperty('width');
2200
- cachedFooterEl.style.removeProperty('height');
2201
- cachedFooterEl.style.removeProperty('top');
2202
- cachedFooterEl.style.removeProperty('left');
2203
- page === null || page === void 0 ? void 0 : page.style.removeProperty('padding-bottom');
2204
- // Move to page
2205
- page === null || page === void 0 ? void 0 : page.appendChild(cachedFooterEl);
2206
- });
2207
- }
2208
- else {
2209
- let footerHeights = 0;
2210
- cachedFooterEls.forEach((cachedFooterEl, index) => {
2211
- // Get both the footer and document body positions
2212
- const cachedFooterElRect = cachedFooterEl.getBoundingClientRect();
2213
- const bodyRect = document.body.getBoundingClientRect();
2214
- // Calculate the total height of all footers
2215
- // so we can add padding to the page element
2216
- footerHeights += cachedFooterEl.clientHeight;
2217
- // Calculate absolute position relative to body
2218
- // We need to subtract the body's offsetTop to get true position within document.body
2219
- const absoluteTop = cachedFooterElRect.top - bodyRect.top;
2220
- const absoluteLeft = cachedFooterElRect.left - bodyRect.left;
2221
- // Capture the footer's current dimensions and store them in CSS variables for
2222
- // later use when applying absolute positioning.
2223
- cachedFooterEl.style.setProperty('--pinned-width', `${cachedFooterEl.clientWidth}px`);
2224
- cachedFooterEl.style.setProperty('--pinned-height', `${cachedFooterEl.clientHeight}px`);
2225
- cachedFooterEl.style.setProperty('--pinned-top', `${absoluteTop}px`);
2226
- cachedFooterEl.style.setProperty('--pinned-left', `${absoluteLeft}px`);
2227
- // Only cache the first footer's Y position
2228
- // This is used to determine if the sheet has been moved below the footer
2229
- // and needs to be swapped back to stationary so it collapses correctly.
2230
- if (index === 0) {
2231
- cachedFooterYPosition = absoluteTop;
2232
- // If there's a header, we need to combine the header height with the footer position
2233
- // because the header moves with the drag handle, so when it starts overlapping the footer,
2234
- // we need to account for that.
2235
- const header = baseEl.querySelector('ion-header');
2236
- if (header) {
2237
- cachedFooterYPosition -= header.clientHeight;
2238
- }
2239
- }
2240
- });
2241
- // Apply the pinning of styles after we've calculated everything
2242
- // so that we don't cause layouts to shift while calculating the footer positions.
2243
- // Otherwise, with multiple footers we'll end up capturing the wrong positions.
2244
- cachedFooterEls.forEach((cachedFooterEl) => {
2245
- // Add padding to the parent element to prevent content from being hidden
2246
- // when the footer is positioned absolutely. This has to be done before we
2247
- // make the footer absolutely positioned or we may accidentally cause the
2248
- // sheet to scroll.
2249
- page === null || page === void 0 ? void 0 : page.style.setProperty('padding-bottom', `${footerHeights}px`);
2250
- // Apply positioning styles to keep footer at bottom
2251
- cachedFooterEl.classList.add('modal-footer-moving');
2252
- // Apply our preserved styles to pin the footer
2253
- cachedFooterEl.style.setProperty('position', 'absolute');
2254
- cachedFooterEl.style.setProperty('width', 'var(--pinned-width)');
2255
- cachedFooterEl.style.setProperty('height', 'var(--pinned-height)');
2256
- cachedFooterEl.style.setProperty('top', 'var(--pinned-top)');
2257
- cachedFooterEl.style.setProperty('left', 'var(--pinned-left)');
2258
- // Move the element to the body when everything else is done
2259
- document.body.appendChild(cachedFooterEl);
2260
- });
2261
- }
2262
- };
2263
- /**
2264
- * After the entering animation completes,
2265
- * we need to set the animation to go from
2266
- * offset 0 to offset 1 so that users can
2267
- * swipe in any direction. We then set the
2268
- * animation offset to the current breakpoint
2269
- * so there is no flickering.
2270
- */
2271
- if (wrapperAnimation && backdropAnimation) {
2272
- wrapperAnimation.keyframes([...SheetDefaults.WRAPPER_KEYFRAMES]);
2273
- backdropAnimation.keyframes([...SheetDefaults.BACKDROP_KEYFRAMES]);
2274
- contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.keyframes([...SheetDefaults.CONTENT_KEYFRAMES]);
2275
- animation.progressStart(true, 1 - currentBreakpoint);
2276
- /**
2277
- * If backdrop is not enabled, then content
2278
- * behind modal should be clickable. To do this, we need
2279
- * to remove pointer-events from ion-modal as a whole.
2280
- * ion-backdrop and .modal-wrapper always have pointer-events: auto
2281
- * applied, so the modal content can still be interacted with.
2282
- */
2283
- const shouldEnableBackdrop = currentBreakpoint > backdropBreakpoint &&
2284
- baseEl.focusTrap !== false &&
2285
- baseEl.showBackdrop !== false;
2286
- if (shouldEnableBackdrop) {
2287
- enableBackdrop();
2288
- }
2289
- else {
2290
- disableBackdrop();
2291
- }
2292
- }
2293
- if (contentEl && currentBreakpoint !== maxBreakpoint && expandToScroll) {
2294
- contentEl.scrollY = false;
2295
- }
2296
- const canStart = (detail) => {
2297
- /**
2298
- * If we are swiping on the content, swiping should only be possible if the content
2299
- * is scrolled all the way to the top so that we do not interfere with scrolling.
2300
- *
2301
- * We cannot assume that the `ion-content` target will remain consistent between swipes.
2302
- * For example, when using ion-nav within a modal it is possible to swipe, push a view,
2303
- * and then swipe again. The target content will not be the same between swipes.
2304
- */
2305
- const contentEl = findClosestIonContent(detail.event.target);
2306
- currentBreakpoint = getCurrentBreakpoint();
2307
- /**
2308
- * If `expandToScroll` is disabled, we should not allow the swipe gesture
2309
- * to start if the content is not scrolled to the top.
2310
- */
2311
- if (!expandToScroll && contentEl) {
2312
- const scrollEl = isIonContent(contentEl) ? getElementRoot(contentEl).querySelector('.inner-scroll') : contentEl;
2313
- return scrollEl.scrollTop === 0;
2314
- }
2315
- if (currentBreakpoint === 1 && contentEl) {
2316
- /**
2317
- * The modal should never swipe to close on the content with a refresher.
2318
- * Note 1: We cannot solve this by making this gesture have a higher priority than
2319
- * the refresher gesture as the iOS native refresh gesture uses a scroll listener in
2320
- * addition to a gesture.
2321
- *
2322
- * Note 2: Do not use getScrollElement here because we need this to be a synchronous
2323
- * operation, and getScrollElement is asynchronous.
2324
- */
2325
- const scrollEl = isIonContent(contentEl) ? getElementRoot(contentEl).querySelector('.inner-scroll') : contentEl;
2326
- const hasRefresherInContent = !!contentEl.querySelector('ion-refresher');
2327
- return !hasRefresherInContent && scrollEl.scrollTop === 0;
2328
- }
2329
- return true;
2330
- };
2331
- const onStart = (detail) => {
2332
- /**
2333
- * If canDismiss is anything other than `true`
2334
- * then users should be able to swipe down
2335
- * until a threshold is hit. At that point,
2336
- * the card modal should not proceed any further.
2337
- *
2338
- * canDismiss is never fired via gesture if there is
2339
- * no 0 breakpoint. However, it can be fired if the user
2340
- * presses Esc or the hardware back button.
2341
- * TODO (FW-937)
2342
- * Remove undefined check
2343
- */
2344
- canDismissBlocksGesture = baseEl.canDismiss !== undefined && baseEl.canDismiss !== true && minBreakpoint === 0;
2345
- /**
2346
- * Cache the scroll element reference when the gesture starts,
2347
- * this allows us to avoid querying the DOM for the target in onMove,
2348
- * which would impact performance significantly.
2349
- */
2350
- if (!expandToScroll) {
2351
- const targetEl = findClosestIonContent(detail.event.target);
2352
- cachedScrollEl =
2353
- targetEl && isIonContent(targetEl) ? getElementRoot(targetEl).querySelector('.inner-scroll') : targetEl;
2354
- }
2355
- /**
2356
- * If expandToScroll is disabled, we need to swap
2357
- * the footer position to moving so that it doesn't shake
2358
- * while the sheet is being dragged.
2359
- */
2360
- if (!expandToScroll) {
2361
- swapFooterPosition('moving');
2362
- }
2363
- /**
2364
- * If we are pulling down, then it is possible we are pulling on the content.
2365
- * We do not want scrolling to happen at the same time as the gesture.
2366
- */
2367
- if (detail.deltaY > 0 && contentEl) {
2368
- contentEl.scrollY = false;
2369
- }
2370
- raf(() => {
2371
- /**
2372
- * Dismisses the open keyboard when the sheet drag gesture is started.
2373
- * Sets the focus onto the modal element.
2374
- */
2375
- baseEl.focus();
2376
- });
2377
- animation.progressStart(true, 1 - currentBreakpoint);
2378
- };
2379
- const onMove = (detail) => {
2380
- /**
2381
- * If `expandToScroll` is disabled, we need to see if we're currently below
2382
- * the footer element and the footer is in a stationary position. If so,
2383
- * we need to make the stationary the original position so that the footer
2384
- * collapses with the sheet.
2385
- */
2386
- if (!expandToScroll && cachedFooterYPosition !== null && currentFooterState !== null) {
2387
- // Check if we need to swap the footer position
2388
- if (detail.currentY >= cachedFooterYPosition && currentFooterState === 'moving') {
2389
- swapFooterPosition('stationary');
2390
- }
2391
- else if (detail.currentY < cachedFooterYPosition && currentFooterState === 'stationary') {
2392
- swapFooterPosition('moving');
2393
- }
2394
- }
2395
- /**
2396
- * If `expandToScroll` is disabled, and an upwards swipe gesture is done within
2397
- * the scrollable content, we should not allow the swipe gesture to continue.
2398
- */
2399
- if (!expandToScroll && detail.deltaY <= 0 && cachedScrollEl) {
2400
- return;
2401
- }
2402
- /**
2403
- * If we are pulling down, then it is possible we are pulling on the content.
2404
- * We do not want scrolling to happen at the same time as the gesture.
2405
- * This accounts for when the user scrolls down, scrolls all the way up, and then
2406
- * pulls down again such that the modal should start to move.
2407
- */
2408
- if (detail.deltaY > 0 && contentEl) {
2409
- contentEl.scrollY = false;
2410
- }
2411
- /**
2412
- * Given the change in gesture position on the Y axis,
2413
- * compute where the offset of the animation should be
2414
- * relative to where the user dragged.
2415
- */
2416
- const initialStep = 1 - currentBreakpoint;
2417
- const secondToLastBreakpoint = breakpoints.length > 1 ? 1 - breakpoints[1] : undefined;
2418
- const step = initialStep + detail.deltaY / height;
2419
- const isAttemptingDismissWithCanDismiss = secondToLastBreakpoint !== undefined && step >= secondToLastBreakpoint && canDismissBlocksGesture;
2420
- /**
2421
- * If we are blocking the gesture from dismissing,
2422
- * set the max step value so that the sheet cannot be
2423
- * completely hidden.
2424
- */
2425
- const maxStep = isAttemptingDismissWithCanDismiss ? canDismissMaxStep : 0.9999;
2426
- /**
2427
- * If we are blocking the gesture from
2428
- * dismissing, calculate the spring modifier value
2429
- * this will be added to the starting breakpoint
2430
- * value to give the gesture a spring-like feeling.
2431
- * Note that when isAttemptingDismissWithCanDismiss is true,
2432
- * the modifier is always added to the breakpoint that
2433
- * appears right after the 0 breakpoint.
2434
- *
2435
- * Note that this modifier is essentially the progression
2436
- * between secondToLastBreakpoint and maxStep which is
2437
- * why we subtract secondToLastBreakpoint. This lets us get
2438
- * the result as a value from 0 to 1.
2439
- */
2440
- const processedStep = isAttemptingDismissWithCanDismiss && secondToLastBreakpoint !== undefined
2441
- ? secondToLastBreakpoint +
2442
- calculateSpringStep((step - secondToLastBreakpoint) / (maxStep - secondToLastBreakpoint))
2443
- : step;
2444
- offset = clamp(0.0001, processedStep, maxStep);
2445
- animation.progressStep(offset);
2446
- };
2447
- const onEnd = (detail) => {
2448
- /**
2449
- * If expandToScroll is disabled, we should not allow the moveSheetToBreakpoint
2450
- * function to be called if the user is trying to swipe content upwards and the content
2451
- * is not scrolled to the top.
2452
- */
2453
- if (!expandToScroll && detail.deltaY <= 0 && cachedScrollEl && cachedScrollEl.scrollTop > 0) {
2454
- /**
2455
- * If expand to scroll is disabled, we need to make sure we swap the footer position
2456
- * back to stationary so that it will collapse correctly if the modal is dismissed without
2457
- * dragging (e.g. through a dismiss button).
2458
- * This can cause issues if the user has a modal with content that can be dragged, as we'll
2459
- * swap to moving on drag and if we don't swap back here then the footer will get stuck.
2460
- */
2461
- swapFooterPosition('stationary');
2462
- return;
2463
- }
2464
- /**
2465
- * When the gesture releases, we need to determine
2466
- * the closest breakpoint to snap to.
2467
- */
2468
- const velocity = detail.velocityY;
2469
- const threshold = (detail.deltaY + velocity * 350) / height;
2470
- const diff = currentBreakpoint - threshold;
2471
- const closest = breakpoints.reduce((a, b) => {
2472
- return Math.abs(b - diff) < Math.abs(a - diff) ? b : a;
2473
- });
2474
- moveSheetToBreakpoint({
2475
- breakpoint: closest,
2476
- breakpointOffset: offset,
2477
- canDismiss: canDismissBlocksGesture,
2478
- /**
2479
- * The swipe is user-driven, so we should
2480
- * always animate when the gesture ends.
2481
- */
2482
- animated: true,
2483
- });
2484
- };
2485
- const moveSheetToBreakpoint = (options) => {
2486
- const { breakpoint, canDismiss, breakpointOffset, animated } = options;
2487
- /**
2488
- * canDismiss should only prevent snapping
2489
- * when users are trying to dismiss. If canDismiss
2490
- * is present but the user is trying to swipe upwards,
2491
- * we should allow that to happen,
2492
- */
2493
- const shouldPreventDismiss = canDismiss && breakpoint === 0;
2494
- const snapToBreakpoint = shouldPreventDismiss ? currentBreakpoint : breakpoint;
2495
- const shouldRemainOpen = snapToBreakpoint !== 0;
2496
- currentBreakpoint = 0;
2497
- /**
2498
- * Update the animation so that it plays from
2499
- * the last offset to the closest snap point.
2500
- */
2501
- if (wrapperAnimation && backdropAnimation) {
2502
- wrapperAnimation.keyframes([
2503
- { offset: 0, transform: `translateY(${breakpointOffset * 100}%)` },
2504
- { offset: 1, transform: `translateY(${(1 - snapToBreakpoint) * 100}%)` },
2505
- ]);
2506
- backdropAnimation.keyframes([
2507
- {
2508
- offset: 0,
2509
- opacity: `calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(1 - breakpointOffset, backdropBreakpoint)})`,
2510
- },
2511
- {
2512
- offset: 1,
2513
- opacity: `calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(snapToBreakpoint, backdropBreakpoint)})`,
2514
- },
2515
- ]);
2516
- if (contentAnimation) {
2517
- /**
2518
- * The modal content should scroll at any breakpoint when expandToScroll
2519
- * is disabled. In order to do this, the content needs to be completely
2520
- * viewable so scrolling can access everything. Otherwise, the default
2521
- * behavior would show the content off the screen and only allow
2522
- * scrolling when the sheet is fully expanded.
2523
- */
2524
- contentAnimation.keyframes([
2525
- { offset: 0, maxHeight: `${(1 - breakpointOffset) * 100}%` },
2526
- { offset: 1, maxHeight: `${snapToBreakpoint * 100}%` },
2527
- ]);
2528
- }
2529
- animation.progressStep(0);
2530
- }
2531
- /**
2532
- * Gesture should remain disabled until the
2533
- * snapping animation completes.
2534
- */
2535
- gesture.enable(false);
2536
- if (shouldPreventDismiss) {
2537
- handleCanDismiss(baseEl, animation);
2538
- }
2539
- else if (!shouldRemainOpen) {
2540
- onDismiss();
2541
- }
2542
- /**
2543
- * Enables scrolling immediately if the sheet is about to fully expand
2544
- * or if it allows scrolling at any breakpoint. Without this, there would
2545
- * be a ~500ms delay while the modal animation completes, causing a
2546
- * noticeable lag. Native iOS allows scrolling as soon as the gesture is
2547
- * released, so we align with that behavior.
2548
- */
2549
- if (contentEl && (snapToBreakpoint === breakpoints[breakpoints.length - 1] || !expandToScroll)) {
2550
- contentEl.scrollY = true;
2551
- }
2552
- /**
2553
- * If expandToScroll is disabled and we're animating
2554
- * to close the sheet, we need to swap
2555
- * the footer position to stationary so that it
2556
- * will collapse correctly. We cannot just always swap
2557
- * here or it'll be jittery while animating movement.
2558
- */
2559
- if (!expandToScroll && snapToBreakpoint === 0) {
2560
- swapFooterPosition('stationary');
2561
- }
2562
- return new Promise((resolve) => {
2563
- animation
2564
- .onFinish(() => {
2565
- if (shouldRemainOpen) {
2566
- /**
2567
- * If expandToScroll is disabled, we need to swap
2568
- * the footer position to stationary so that it
2569
- * will act as it would by default.
2570
- */
2571
- if (!expandToScroll) {
2572
- swapFooterPosition('stationary');
2573
- }
2574
- /**
2575
- * Once the snapping animation completes,
2576
- * we need to reset the animation to go
2577
- * from 0 to 1 so users can swipe in any direction.
2578
- * We then set the animation offset to the current
2579
- * breakpoint so that it starts at the snapped position.
2580
- */
2581
- if (wrapperAnimation && backdropAnimation) {
2582
- raf(() => {
2583
- wrapperAnimation.keyframes([...SheetDefaults.WRAPPER_KEYFRAMES]);
2584
- backdropAnimation.keyframes([...SheetDefaults.BACKDROP_KEYFRAMES]);
2585
- contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.keyframes([...SheetDefaults.CONTENT_KEYFRAMES]);
2586
- animation.progressStart(true, 1 - snapToBreakpoint);
2587
- currentBreakpoint = snapToBreakpoint;
2588
- onBreakpointChange(currentBreakpoint);
2589
- /**
2590
- * Backdrop should become enabled
2591
- * after the backdropBreakpoint value
2592
- */
2593
- const shouldEnableBackdrop = currentBreakpoint > backdropBreakpoint &&
2594
- baseEl.focusTrap !== false &&
2595
- baseEl.showBackdrop !== false;
2596
- if (shouldEnableBackdrop) {
2597
- enableBackdrop();
2598
- }
2599
- else {
2600
- disableBackdrop();
2601
- }
2602
- gesture.enable(true);
2603
- resolve();
2604
- });
2605
- }
2606
- else {
2607
- gesture.enable(true);
2608
- resolve();
2609
- }
2610
- }
2611
- else {
2612
- resolve();
2613
- }
2614
- /**
2615
- * This must be a one time callback
2616
- * otherwise a new callback will
2617
- * be added every time onEnd runs.
2618
- */
2619
- }, { oneTimeCallback: true })
2620
- .progressEnd(1, 0, animated ? 500 : 0);
2621
- });
2622
- };
2623
- const gesture = createGesture({
2624
- el: wrapperEl,
2625
- gestureName: 'modalSheet',
2626
- gesturePriority: 40,
2627
- direction: 'y',
2628
- threshold: 10,
2629
- canStart,
2630
- onStart,
2631
- onMove,
2632
- onEnd,
2633
- });
2634
- return {
2635
- gesture,
2636
- moveSheetToBreakpoint,
2637
- };
2638
- };
2639
-
2640
- const modalIosCss = () => `:host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:flex;position:absolute;align-items:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{box-shadow:none}:host(.modal-card) .modal-shadow{box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}`;
2641
-
2642
- const modalMdCss = () => `:host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:flex;position:absolute;align-items:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{transform:translate3d(0, 40px, 0);opacity:0.01}`;
2643
-
2644
- const Modal = class {
2645
- constructor(hostRef) {
2646
- registerInstance(this, hostRef);
2647
- this.didPresent = createEvent(this, "ionModalDidPresent", 7);
2648
- this.willPresent = createEvent(this, "ionModalWillPresent", 7);
2649
- this.willDismiss = createEvent(this, "ionModalWillDismiss", 7);
2650
- this.didDismiss = createEvent(this, "ionModalDidDismiss", 7);
2651
- this.ionBreakpointDidChange = createEvent(this, "ionBreakpointDidChange", 7);
2652
- this.didPresentShorthand = createEvent(this, "didPresent", 7);
2653
- this.willPresentShorthand = createEvent(this, "willPresent", 7);
2654
- this.willDismissShorthand = createEvent(this, "willDismiss", 7);
2655
- this.didDismissShorthand = createEvent(this, "didDismiss", 7);
2656
- this.ionMount = createEvent(this, "ionMount", 7);
2657
- this.lockController = createLockController();
2658
- this.triggerController = createTriggerController();
2659
- this.coreDelegate = CoreDelegate();
2660
- this.isSheetModal = false;
2661
- this.inheritedAttributes = {};
2662
- this.inline = false;
2663
- // Whether or not modal is being dismissed via gesture
2664
- this.gestureAnimationDismissing = false;
2665
- this.presented = false;
2666
- /** @internal */
2667
- this.hasController = false;
2668
- /**
2669
- * If `true`, the keyboard will be automatically dismissed when the overlay is presented.
2670
- */
2671
- this.keyboardClose = true;
2672
- /**
2673
- * Controls whether scrolling or dragging within the sheet modal expands
2674
- * it to a larger breakpoint. This only takes effect when `breakpoints`
2675
- * and `initialBreakpoint` are set.
2676
- *
2677
- * If `true`, scrolling or dragging anywhere in the modal will first expand
2678
- * it to the next breakpoint. Once fully expanded, scrolling will affect the
2679
- * content.
2680
- * If `false`, scrolling will always affect the content. The modal will
2681
- * only expand when dragging the header or handle. The modal will close when
2682
- * dragging the header or handle. It can also be closed when dragging the
2683
- * content, but only if the content is scrolled to the top.
2684
- */
2685
- this.expandToScroll = true;
2686
- /**
2687
- * A decimal value between 0 and 1 that indicates the
2688
- * point after which the backdrop will begin to fade in
2689
- * when using a sheet modal. Prior to this point, the
2690
- * backdrop will be hidden and the content underneath
2691
- * the sheet can be interacted with. This value is exclusive
2692
- * meaning the backdrop will become active after the value
2693
- * specified.
2694
- */
2695
- this.backdropBreakpoint = 0;
2696
- /**
2697
- * The interaction behavior for the sheet modal when the handle is pressed.
2698
- *
2699
- * Defaults to `"none"`, which means the modal will not change size or position when the handle is pressed.
2700
- * Set to `"cycle"` to let the modal cycle between available breakpoints when pressed.
2701
- *
2702
- * Handle behavior is unavailable when the `handle` property is set to `false` or
2703
- * when the `breakpoints` property is not set (using a fullscreen or card modal).
2704
- */
2705
- this.handleBehavior = 'none';
2706
- /**
2707
- * If `true`, the modal will be dismissed when the backdrop is clicked.
2708
- */
2709
- this.backdropDismiss = true;
2710
- /**
2711
- * If `true`, a backdrop will be displayed behind the modal.
2712
- * This property controls whether or not the backdrop
2713
- * darkens the screen when the modal is presented.
2714
- * It does not control whether or not the backdrop
2715
- * is active or present in the DOM.
2716
- */
2717
- this.showBackdrop = true;
2718
- /**
2719
- * If `true`, the modal will animate.
2720
- */
2721
- this.animated = true;
2722
- /**
2723
- * If `true`, the modal will open. If `false`, the modal will close.
2724
- * Use this if you need finer grained control over presentation, otherwise
2725
- * just use the modalController or the `trigger` property.
2726
- * Note: `isOpen` will not automatically be set back to `false` when
2727
- * the modal dismisses. You will need to do that in your code.
2728
- */
2729
- this.isOpen = false;
2730
- /**
2731
- * If `true`, the component passed into `ion-modal` will
2732
- * automatically be mounted when the modal is created. The
2733
- * component will remain mounted even when the modal is dismissed.
2734
- * However, the component will be destroyed when the modal is
2735
- * destroyed. This property is not reactive and should only be
2736
- * used when initially creating a modal.
2737
- *
2738
- * Note: This feature only applies to inline modals in JavaScript
2739
- * frameworks such as Angular, React, and Vue.
2740
- */
2741
- this.keepContentsMounted = false;
2742
- /**
2743
- * If `true`, focus will not be allowed to move outside of this overlay.
2744
- * If `false`, focus will be allowed to move outside of the overlay.
2745
- *
2746
- * In most scenarios this property should remain set to `true`. Setting
2747
- * this property to `false` can cause severe accessibility issues as users
2748
- * relying on assistive technologies may be able to move focus into
2749
- * a confusing state. We recommend only setting this to `false` when
2750
- * absolutely necessary.
2751
- *
2752
- * Developers may want to consider disabling focus trapping if this
2753
- * overlay presents a non-Ionic overlay from a 3rd party library.
2754
- * Developers would disable focus trapping on the Ionic overlay
2755
- * when presenting the 3rd party overlay and then re-enable
2756
- * focus trapping when dismissing the 3rd party overlay and moving
2757
- * focus back to the Ionic overlay.
2758
- */
2759
- this.focusTrap = true;
2760
- /**
2761
- * Determines whether or not a modal can dismiss
2762
- * when calling the `dismiss` method.
2763
- *
2764
- * If the value is `true` or the value's function returns `true`, the modal will close when trying to dismiss.
2765
- * If the value is `false` or the value's function returns `false`, the modal will not close when trying to dismiss.
2766
- *
2767
- * See https://ionicframework.com/docs/troubleshooting/runtime#accessing-this
2768
- * if you need to access `this` from within the callback.
2769
- */
2770
- this.canDismiss = true;
2771
- this.onHandleClick = () => {
2772
- const { sheetTransition, handleBehavior } = this;
2773
- if (handleBehavior !== 'cycle' || sheetTransition !== undefined) {
2774
- /**
2775
- * The sheet modal should not advance to the next breakpoint
2776
- * if the handle behavior is not `cycle` or if the handle
2777
- * is clicked while the sheet is moving to a breakpoint.
2778
- */
2779
- return;
2780
- }
2781
- this.moveToNextBreakpoint();
2782
- };
2783
- this.onBackdropTap = () => {
2784
- const { sheetTransition } = this;
2785
- if (sheetTransition !== undefined) {
2786
- /**
2787
- * When the handle is double clicked at the largest breakpoint,
2788
- * it will start to move to the first breakpoint. While transitioning,
2789
- * the backdrop will often receive the second click. We prevent the
2790
- * backdrop from dismissing the modal while moving between breakpoints.
2791
- */
2792
- return;
2793
- }
2794
- this.dismiss(undefined, BACKDROP);
2795
- };
2796
- this.onLifecycle = (modalEvent) => {
2797
- const el = this.usersElement;
2798
- const name = LIFECYCLE_MAP[modalEvent.type];
2799
- if (el && name) {
2800
- const ev = new CustomEvent(name, {
2801
- bubbles: false,
2802
- cancelable: false,
2803
- detail: modalEvent.detail,
2804
- });
2805
- el.dispatchEvent(ev);
2806
- }
2807
- };
2808
- /**
2809
- * When the modal receives focus directly, pass focus to the handle
2810
- * if it exists and is focusable, otherwise let the focus trap handle it.
2811
- */
2812
- this.onModalFocus = (ev) => {
2813
- const { dragHandleEl, el } = this;
2814
- // Only handle focus if the modal itself was focused (not a child element)
2815
- if (ev.target === el && dragHandleEl && dragHandleEl.tabIndex !== -1) {
2816
- dragHandleEl.focus();
2817
- }
2818
- };
2819
- /**
2820
- * When the slot changes, we need to find all the modals in the slot
2821
- * and set the data-parent-ion-modal attribute on them so we can find them
2822
- * and dismiss them when we get dismissed.
2823
- * We need to do it this way because when a modal is opened, it's moved to
2824
- * the end of the body and is no longer an actual child of the modal.
2825
- */
2826
- this.onSlotChange = ({ target }) => {
2827
- const slot = target;
2828
- slot.assignedElements().forEach((el) => {
2829
- el.querySelectorAll('ion-modal').forEach((childModal) => {
2830
- // We don't need to write to the DOM if the modal is already tagged
2831
- // If this is a deeply nested modal, this effect should cascade so we don't
2832
- // need to worry about another modal claiming the same child.
2833
- if (childModal.getAttribute('data-parent-ion-modal') === null) {
2834
- childModal.setAttribute('data-parent-ion-modal', this.el.id);
2835
- }
2836
- });
2837
- });
2838
- };
2839
- }
2840
- onIsOpenChange(newValue, oldValue) {
2841
- if (newValue === true && oldValue === false) {
2842
- this.present();
2843
- }
2844
- else if (newValue === false && oldValue === true) {
2845
- this.dismiss();
2846
- }
2847
- }
2848
- triggerChanged() {
2849
- const { trigger, el, triggerController } = this;
2850
- if (trigger) {
2851
- triggerController.addClickListener(el, trigger);
2852
- }
2853
- }
2854
- onWindowResize() {
2855
- // Only handle resize for iOS card modals when no custom animations are provided
2856
- if (getIonMode(this) !== 'ios' || !this.presentingElement || this.enterAnimation || this.leaveAnimation) {
2857
- return;
2858
- }
2859
- clearTimeout(this.resizeTimeout);
2860
- this.resizeTimeout = setTimeout(() => {
2861
- this.handleViewTransition();
2862
- }, 50); // Debounce to avoid excessive calls during active resizing
2863
- }
2864
- breakpointsChanged(breakpoints) {
2865
- if (breakpoints !== undefined) {
2866
- this.sortedBreakpoints = breakpoints.sort((a, b) => a - b);
2867
- }
2868
- }
2869
- connectedCallback() {
2870
- const { el } = this;
2871
- prepareOverlay(el);
2872
- this.triggerChanged();
2873
- }
2874
- disconnectedCallback() {
2875
- this.triggerController.removeClickListener();
2876
- this.cleanupViewTransitionListener();
2877
- this.cleanupParentRemovalObserver();
2878
- }
2879
- componentWillLoad() {
2880
- var _a;
2881
- const { breakpoints, initialBreakpoint, el, htmlAttributes } = this;
2882
- const isSheetModal = (this.isSheetModal = breakpoints !== undefined && initialBreakpoint !== undefined);
2883
- const attributesToInherit = ['aria-label', 'role'];
2884
- this.inheritedAttributes = inheritAttributes(el, attributesToInherit);
2885
- // Cache original parent before modal gets moved to body during presentation
2886
- if (el.parentNode) {
2887
- this.cachedOriginalParent = el.parentNode;
2888
- }
2889
- /**
2890
- * When using a controller modal you can set attributes
2891
- * using the htmlAttributes property. Since the above attributes
2892
- * need to be inherited inside of the modal, we need to look
2893
- * and see if these attributes are being set via htmlAttributes.
2894
- *
2895
- * We could alternatively move this to componentDidLoad to simplify the work
2896
- * here, but we'd then need to make inheritedAttributes a State variable,
2897
- * thus causing another render to always happen after the first render.
2898
- */
2899
- if (htmlAttributes !== undefined) {
2900
- attributesToInherit.forEach((attribute) => {
2901
- const attributeValue = htmlAttributes[attribute];
2902
- if (attributeValue) {
2903
- /**
2904
- * If an attribute we need to inherit was
2905
- * set using htmlAttributes then add it to
2906
- * inheritedAttributes and remove it from htmlAttributes.
2907
- * This ensures the attribute is inherited and not
2908
- * set on the host.
2909
- *
2910
- * In this case, if an inherited attribute is set
2911
- * on the host element and using htmlAttributes then
2912
- * htmlAttributes wins, but that's not a pattern that we recommend.
2913
- * The only time you'd need htmlAttributes is when using modalController.
2914
- */
2915
- this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attribute]: htmlAttributes[attribute] });
2916
- delete htmlAttributes[attribute];
2917
- }
2918
- });
2919
- }
2920
- if (isSheetModal) {
2921
- this.currentBreakpoint = this.initialBreakpoint;
2922
- }
2923
- if (breakpoints !== undefined && initialBreakpoint !== undefined && !breakpoints.includes(initialBreakpoint)) {
2924
- printIonWarning('[ion-modal] - Your breakpoints array must include the initialBreakpoint value.');
2925
- }
2926
- if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {
2927
- setOverlayId(this.el);
2928
- }
2929
- }
2930
- componentDidLoad() {
2931
- /**
2932
- * If modal was rendered with isOpen="true"
2933
- * then we should open modal immediately.
2934
- */
2935
- if (this.isOpen === true) {
2936
- raf(() => this.present());
2937
- }
2938
- this.breakpointsChanged(this.breakpoints);
2939
- /**
2940
- * When binding values in frameworks such as Angular
2941
- * it is possible for the value to be set after the Web Component
2942
- * initializes but before the value watcher is set up in Stencil.
2943
- * As a result, the watcher callback may not be fired.
2944
- * We work around this by manually calling the watcher
2945
- * callback when the component has loaded and the watcher
2946
- * is configured.
2947
- */
2948
- this.triggerChanged();
2949
- }
2950
- /**
2951
- * Determines whether or not an overlay
2952
- * is being used inline or via a controller/JS
2953
- * and returns the correct delegate.
2954
- * By default, subsequent calls to getDelegate
2955
- * will use a cached version of the delegate.
2956
- * This is useful for calling dismiss after
2957
- * present so that the correct delegate is given.
2958
- */
2959
- getDelegate(force = false) {
2960
- if (this.workingDelegate && !force) {
2961
- return {
2962
- delegate: this.workingDelegate,
2963
- inline: this.inline,
2964
- };
2965
- }
2966
- /**
2967
- * If using overlay inline
2968
- * we potentially need to use the coreDelegate
2969
- * so that this works in vanilla JS apps.
2970
- * If a developer has presented this component
2971
- * via a controller, then we can assume
2972
- * the component is already in the
2973
- * correct place.
2974
- */
2975
- const parentEl = this.el.parentNode;
2976
- const inline = (this.inline = parentEl !== null && !this.hasController);
2977
- const delegate = (this.workingDelegate = inline ? this.delegate || this.coreDelegate : this.delegate);
2978
- return { inline, delegate };
2979
- }
2980
- /**
2981
- * Determines whether or not the
2982
- * modal is allowed to dismiss based
2983
- * on the state of the canDismiss prop.
2984
- */
2985
- async checkCanDismiss(data, role) {
2986
- const { canDismiss } = this;
2987
- if (typeof canDismiss === 'function') {
2988
- return canDismiss(data, role);
2989
- }
2990
- return canDismiss;
2991
- }
2992
- /**
2993
- * Present the modal overlay after it has been created.
2994
- */
2995
- async present() {
2996
- const unlock = await this.lockController.lock();
2997
- if (this.presented) {
2998
- unlock();
2999
- return;
3000
- }
3001
- const { presentingElement, el } = this;
3002
- /**
3003
- * If the modal is presented multiple times (inline modals), we
3004
- * need to reset the current breakpoint to the initial breakpoint.
3005
- */
3006
- this.currentBreakpoint = this.initialBreakpoint;
3007
- const { inline, delegate } = this.getDelegate(true);
3008
- /**
3009
- * Emit ionMount so JS Frameworks have an opportunity
3010
- * to add the child component to the DOM. The child
3011
- * component will be assigned to this.usersElement below.
3012
- */
3013
- this.ionMount.emit();
3014
- this.usersElement = await attachComponent(delegate, el, this.component, ['ion-page'], this.componentProps, inline);
3015
- /**
3016
- * When using the lazy loaded build of Stencil, we need to wait
3017
- * for every Stencil component instance to be ready before presenting
3018
- * otherwise there can be a flash of unstyled content. With the
3019
- * custom elements bundle we need to wait for the JS framework
3020
- * mount the inner contents of the overlay otherwise WebKit may
3021
- * get the transition incorrect.
3022
- */
3023
- if (hasLazyBuild(el)) {
3024
- await deepReady(this.usersElement);
3025
- /**
3026
- * If keepContentsMounted="true" then the
3027
- * JS Framework has already mounted the inner
3028
- * contents so there is no need to wait.
3029
- * Otherwise, we need to wait for the JS
3030
- * Framework to mount the inner contents
3031
- * of this component.
3032
- */
3033
- }
3034
- else if (!this.keepContentsMounted) {
3035
- await waitForMount();
3036
- }
3037
- writeTask(() => this.el.classList.add('show-modal'));
3038
- const hasCardModal = presentingElement !== undefined;
3039
- /**
3040
- * We need to change the status bar at the
3041
- * start of the animation so that it completes
3042
- * by the time the card animation is done.
3043
- */
3044
- if (hasCardModal && getIonMode(this) === 'ios') {
3045
- // Cache the original status bar color before the modal is presented
3046
- this.statusBarStyle = await StatusBar.getStyle();
3047
- setCardStatusBarDark();
3048
- }
3049
- await present(this, 'modalEnter', iosEnterAnimation, mdEnterAnimation, {
3050
- presentingEl: presentingElement,
3051
- currentBreakpoint: this.initialBreakpoint,
3052
- backdropBreakpoint: this.backdropBreakpoint,
3053
- expandToScroll: this.expandToScroll,
3054
- });
3055
- /* tslint:disable-next-line */
3056
- if (typeof window !== 'undefined') {
3057
- /**
3058
- * This needs to be setup before any
3059
- * non-transition async work so it can be dereferenced
3060
- * in the dismiss method. The dismiss method
3061
- * only waits for the entering transition
3062
- * to finish. It does not wait for all of the `present`
3063
- * method to resolve.
3064
- */
3065
- this.keyboardOpenCallback = () => {
3066
- if (this.gesture) {
3067
- /**
3068
- * When the native keyboard is opened and the webview
3069
- * is resized, the gesture implementation will become unresponsive
3070
- * and enter a free-scroll mode.
3071
- *
3072
- * When the keyboard is opened, we disable the gesture for
3073
- * a single frame and re-enable once the contents have repositioned
3074
- * from the keyboard placement.
3075
- */
3076
- this.gesture.enable(false);
3077
- raf(() => {
3078
- if (this.gesture) {
3079
- this.gesture.enable(true);
3080
- }
3081
- });
3082
- }
3083
- };
3084
- window.addEventListener(KEYBOARD_DID_OPEN, this.keyboardOpenCallback);
3085
- }
3086
- /**
3087
- * Recalculate isSheetModal because framework bindings (e.g., Angular)
3088
- * may not have been applied when componentWillLoad ran.
3089
- */
3090
- const isSheetModal = this.breakpoints !== undefined && this.initialBreakpoint !== undefined;
3091
- this.isSheetModal = isSheetModal;
3092
- if (isSheetModal) {
3093
- this.initSheetGesture();
3094
- }
3095
- else if (hasCardModal) {
3096
- this.initSwipeToClose();
3097
- }
3098
- // Initialize view transition listener for iOS card modals
3099
- this.initViewTransitionListener();
3100
- // Initialize parent removal observer
3101
- this.initParentRemovalObserver();
3102
- unlock();
3103
- }
3104
- initSwipeToClose() {
3105
- var _a;
3106
- if (getIonMode(this) !== 'ios') {
3107
- return;
3108
- }
3109
- const { el } = this;
3110
- // All of the elements needed for the swipe gesture
3111
- // should be in the DOM and referenced by now, except
3112
- // for the presenting el
3113
- const animationBuilder = this.leaveAnimation || config.get('modalLeave', iosLeaveAnimation);
3114
- const ani = (this.animation = animationBuilder(el, {
3115
- presentingEl: this.presentingElement,
3116
- expandToScroll: this.expandToScroll,
3117
- }));
3118
- const contentEl = findIonContent(el);
3119
- if (!contentEl) {
3120
- printIonContentErrorMsg(el);
3121
- return;
3122
- }
3123
- const statusBarStyle = (_a = this.statusBarStyle) !== null && _a !== void 0 ? _a : Style.Default;
3124
- this.gesture = createSwipeToCloseGesture(el, ani, statusBarStyle, () => {
3125
- /**
3126
- * While the gesture animation is finishing
3127
- * it is possible for a user to tap the backdrop.
3128
- * This would result in the dismiss animation
3129
- * being played again. Typically this is avoided
3130
- * by setting `presented = false` on the overlay
3131
- * component; however, we cannot do that here as
3132
- * that would prevent the element from being
3133
- * removed from the DOM.
3134
- */
3135
- this.gestureAnimationDismissing = true;
3136
- /**
3137
- * Reset the status bar style as the dismiss animation
3138
- * starts otherwise the status bar will be the wrong
3139
- * color for the duration of the dismiss animation.
3140
- * The dismiss method does this as well, but
3141
- * in this case it's only called once the animation
3142
- * has finished.
3143
- */
3144
- setCardStatusBarDefault(this.statusBarStyle);
3145
- this.animation.onFinish(async () => {
3146
- await this.dismiss(undefined, GESTURE);
3147
- this.gestureAnimationDismissing = false;
3148
- });
3149
- });
3150
- this.gesture.enable(true);
3151
- }
3152
- initSheetGesture() {
3153
- const { wrapperEl, initialBreakpoint, backdropBreakpoint } = this;
3154
- if (!wrapperEl || initialBreakpoint === undefined) {
3155
- return;
3156
- }
3157
- const animationBuilder = this.enterAnimation || config.get('modalEnter', iosEnterAnimation);
3158
- const ani = (this.animation = animationBuilder(this.el, {
3159
- presentingEl: this.presentingElement,
3160
- currentBreakpoint: initialBreakpoint,
3161
- backdropBreakpoint,
3162
- expandToScroll: this.expandToScroll,
3163
- }));
3164
- ani.progressStart(true, 1);
3165
- const { gesture, moveSheetToBreakpoint } = createSheetGesture(this.el, this.backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, ani, this.sortedBreakpoints, this.expandToScroll, () => { var _a; return (_a = this.currentBreakpoint) !== null && _a !== void 0 ? _a : 0; }, () => this.sheetOnDismiss(), (breakpoint) => {
3166
- if (this.currentBreakpoint !== breakpoint) {
3167
- this.currentBreakpoint = breakpoint;
3168
- this.ionBreakpointDidChange.emit({ breakpoint });
3169
- }
3170
- });
3171
- this.gesture = gesture;
3172
- this.moveSheetToBreakpoint = moveSheetToBreakpoint;
3173
- this.gesture.enable(true);
3174
- /**
3175
- * When backdrop interaction is allowed, nested router outlets from child routes
3176
- * may block pointer events to parent content. Apply passthrough styles only when
3177
- * the modal was the sole content of a child route page.
3178
- * See https://github.com/ionic-team/ionic-framework/issues/30700
3179
- */
3180
- const backdropNotBlocking = this.showBackdrop === false || this.focusTrap === false || backdropBreakpoint > 0;
3181
- if (backdropNotBlocking) {
3182
- this.setupChildRoutePassthrough();
3183
- }
3184
- }
3185
- /**
3186
- * For sheet modals that allow background interaction, sets up pointer-events
3187
- * passthrough on child route page wrappers and nested router outlets.
3188
- */
3189
- setupChildRoutePassthrough() {
3190
- var _a;
3191
- // Cache the page parent for cleanup
3192
- this.cachedPageParent = this.getOriginalPageParent();
3193
- const pageParent = this.cachedPageParent;
3194
- // Skip ion-app (controller modals) and pages with visible sibling content next to the modal
3195
- if (!pageParent || pageParent.tagName === 'ION-APP') {
3196
- return;
3197
- }
3198
- const hasVisibleContent = Array.from(pageParent.children).some((child) => {
3199
- var _a;
3200
- return child !== this.el &&
3201
- !(child instanceof HTMLElement && window.getComputedStyle(child).display === 'none') &&
3202
- child.tagName !== 'TEMPLATE' &&
3203
- child.tagName !== 'SLOT' &&
3204
- !(child.nodeType === Node.TEXT_NODE && !((_a = child.textContent) === null || _a === void 0 ? void 0 : _a.trim()));
3205
- });
3206
- if (hasVisibleContent) {
3207
- return;
3208
- }
3209
- // Child route case: page only contained the modal
3210
- pageParent.classList.add('ion-page-overlay-passthrough');
3211
- // Also make nested router outlets passthrough
3212
- const routerOutlet = pageParent.parentElement;
3213
- if ((routerOutlet === null || routerOutlet === void 0 ? void 0 : routerOutlet.tagName) === 'ION-ROUTER-OUTLET' && ((_a = routerOutlet.parentElement) === null || _a === void 0 ? void 0 : _a.tagName) !== 'ION-APP') {
3214
- routerOutlet.style.setProperty('pointer-events', 'none');
3215
- routerOutlet.setAttribute('data-overlay-passthrough', 'true');
3216
- }
3217
- }
3218
- /**
3219
- * Finds the ion-page ancestor of the modal's original parent location.
3220
- */
3221
- getOriginalPageParent() {
3222
- if (!this.cachedOriginalParent) {
3223
- return null;
3224
- }
3225
- let pageParent = this.cachedOriginalParent;
3226
- while (pageParent && !pageParent.classList.contains('ion-page')) {
3227
- pageParent = pageParent.parentElement;
3228
- }
3229
- return pageParent;
3230
- }
3231
- /**
3232
- * Removes passthrough styles added by setupChildRoutePassthrough.
3233
- */
3234
- cleanupChildRoutePassthrough() {
3235
- const pageParent = this.cachedPageParent;
3236
- if (!pageParent) {
3237
- return;
3238
- }
3239
- pageParent.classList.remove('ion-page-overlay-passthrough');
3240
- const routerOutlet = pageParent.parentElement;
3241
- if (routerOutlet === null || routerOutlet === void 0 ? void 0 : routerOutlet.hasAttribute('data-overlay-passthrough')) {
3242
- routerOutlet.style.removeProperty('pointer-events');
3243
- routerOutlet.removeAttribute('data-overlay-passthrough');
3244
- }
3245
- // Clear the cached reference
3246
- this.cachedPageParent = undefined;
3247
- }
3248
- sheetOnDismiss() {
3249
- /**
3250
- * While the gesture animation is finishing
3251
- * it is possible for a user to tap the backdrop.
3252
- * This would result in the dismiss animation
3253
- * being played again. Typically this is avoided
3254
- * by setting `presented = false` on the overlay
3255
- * component; however, we cannot do that here as
3256
- * that would prevent the element from being
3257
- * removed from the DOM.
3258
- */
3259
- this.gestureAnimationDismissing = true;
3260
- this.animation.onFinish(async () => {
3261
- this.currentBreakpoint = 0;
3262
- this.ionBreakpointDidChange.emit({ breakpoint: this.currentBreakpoint });
3263
- await this.dismiss(undefined, GESTURE);
3264
- this.gestureAnimationDismissing = false;
3265
- });
3266
- }
3267
- /**
3268
- * Dismiss the modal overlay after it has been presented.
3269
- * This is a no-op if the overlay has not been presented yet. If you want
3270
- * to remove an overlay from the DOM that was never presented, use the
3271
- * [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
3272
- *
3273
- * @param data Any data to emit in the dismiss events.
3274
- * @param role The role of the element that is dismissing the modal.
3275
- * For example, `cancel` or `backdrop`.
3276
- */
3277
- async dismiss(data, role) {
3278
- var _a;
3279
- if (this.gestureAnimationDismissing && role !== GESTURE) {
3280
- return false;
3281
- }
3282
- /**
3283
- * Because the canDismiss check below is async,
3284
- * we need to claim a lock before the check happens,
3285
- * in case the dismiss transition does run.
3286
- */
3287
- const unlock = await this.lockController.lock();
3288
- /**
3289
- * Dismiss all child modals. This is especially important in
3290
- * Angular and React because it's possible to lose control of a child
3291
- * modal when the parent modal is dismissed.
3292
- */
3293
- await this.dismissNestedModals();
3294
- /**
3295
- * If a canDismiss handler is responsible
3296
- * for calling the dismiss method, we should
3297
- * not run the canDismiss check again.
3298
- */
3299
- if (role !== 'handler' && !(await this.checkCanDismiss(data, role))) {
3300
- unlock();
3301
- return false;
3302
- }
3303
- const { presentingElement } = this;
3304
- /**
3305
- * We need to start the status bar change
3306
- * before the animation so that the change
3307
- * finishes when the dismiss animation does.
3308
- */
3309
- const hasCardModal = presentingElement !== undefined;
3310
- if (hasCardModal && getIonMode(this) === 'ios') {
3311
- setCardStatusBarDefault(this.statusBarStyle);
3312
- }
3313
- /* tslint:disable-next-line */
3314
- if (typeof window !== 'undefined' && this.keyboardOpenCallback) {
3315
- window.removeEventListener(KEYBOARD_DID_OPEN, this.keyboardOpenCallback);
3316
- this.keyboardOpenCallback = undefined;
3317
- }
3318
- const dismissed = await dismiss(this, data, role, 'modalLeave', iosLeaveAnimation, mdLeaveAnimation, {
3319
- presentingEl: presentingElement,
3320
- currentBreakpoint: (_a = this.currentBreakpoint) !== null && _a !== void 0 ? _a : this.initialBreakpoint,
3321
- backdropBreakpoint: this.backdropBreakpoint,
3322
- expandToScroll: this.expandToScroll,
3323
- });
3324
- if (dismissed) {
3325
- const { delegate } = this.getDelegate();
3326
- await detachComponent(delegate, this.usersElement);
3327
- writeTask(() => this.el.classList.remove('show-modal'));
3328
- if (this.animation) {
3329
- this.animation.destroy();
3330
- }
3331
- if (this.gesture) {
3332
- this.gesture.destroy();
3333
- }
3334
- this.cleanupViewTransitionListener();
3335
- this.cleanupParentRemovalObserver();
3336
- this.cleanupChildRoutePassthrough();
3337
- }
3338
- this.currentBreakpoint = undefined;
3339
- this.animation = undefined;
3340
- unlock();
3341
- return dismissed;
3342
- }
3343
- /**
3344
- * Returns a promise that resolves when the modal did dismiss.
3345
- */
3346
- onDidDismiss() {
3347
- return eventMethod(this.el, 'ionModalDidDismiss');
3348
- }
3349
- /**
3350
- * Returns a promise that resolves when the modal will dismiss.
3351
- */
3352
- onWillDismiss() {
3353
- return eventMethod(this.el, 'ionModalWillDismiss');
3354
- }
3355
- /**
3356
- * Move a sheet style modal to a specific breakpoint.
3357
- *
3358
- * @param breakpoint The breakpoint value to move the sheet modal to.
3359
- * Must be a value defined in your `breakpoints` array.
3360
- */
3361
- async setCurrentBreakpoint(breakpoint) {
3362
- if (!this.isSheetModal) {
3363
- printIonWarning('[ion-modal] - setCurrentBreakpoint is only supported on sheet modals.');
3364
- return;
3365
- }
3366
- if (!this.breakpoints.includes(breakpoint)) {
3367
- printIonWarning(`[ion-modal] - Attempted to set invalid breakpoint value ${breakpoint}. Please double check that the breakpoint value is part of your defined breakpoints.`);
3368
- return;
3369
- }
3370
- const { currentBreakpoint, moveSheetToBreakpoint, canDismiss, breakpoints, animated } = this;
3371
- if (currentBreakpoint === breakpoint) {
3372
- return;
3373
- }
3374
- if (moveSheetToBreakpoint) {
3375
- this.sheetTransition = moveSheetToBreakpoint({
3376
- breakpoint,
3377
- breakpointOffset: 1 - currentBreakpoint,
3378
- canDismiss: canDismiss !== undefined && canDismiss !== true && breakpoints[0] === 0,
3379
- animated,
3380
- });
3381
- await this.sheetTransition;
3382
- this.sheetTransition = undefined;
3383
- }
3384
- }
3385
- /**
3386
- * Returns the current breakpoint of a sheet style modal
3387
- */
3388
- async getCurrentBreakpoint() {
3389
- return this.currentBreakpoint;
3390
- }
3391
- async moveToNextBreakpoint() {
3392
- const { breakpoints, currentBreakpoint } = this;
3393
- if (!breakpoints || currentBreakpoint == null) {
3394
- /**
3395
- * If the modal does not have breakpoints and/or the current
3396
- * breakpoint is not set, we can't move to the next breakpoint.
3397
- */
3398
- return false;
3399
- }
3400
- const allowedBreakpoints = breakpoints.filter((b) => b !== 0);
3401
- const currentBreakpointIndex = allowedBreakpoints.indexOf(currentBreakpoint);
3402
- const nextBreakpointIndex = (currentBreakpointIndex + 1) % allowedBreakpoints.length;
3403
- const nextBreakpoint = allowedBreakpoints[nextBreakpointIndex];
3404
- /**
3405
- * Sets the current breakpoint to the next available breakpoint.
3406
- * If the current breakpoint is the last breakpoint, we set the current
3407
- * breakpoint to the first non-zero breakpoint to avoid dismissing the sheet.
3408
- */
3409
- await this.setCurrentBreakpoint(nextBreakpoint);
3410
- return true;
3411
- }
3412
- initViewTransitionListener() {
3413
- // Only enable for iOS card modals when no custom animations are provided
3414
- if (getIonMode(this) !== 'ios' || !this.presentingElement || this.enterAnimation || this.leaveAnimation) {
3415
- return;
3416
- }
3417
- // Set initial view state
3418
- this.currentViewIsPortrait = window.innerWidth < 768;
3419
- }
3420
- handleViewTransition() {
3421
- const isPortrait = window.innerWidth < 768;
3422
- // Only transition if view state actually changed
3423
- if (this.currentViewIsPortrait === isPortrait) {
3424
- return;
3425
- }
3426
- // Cancel any ongoing transition animation
3427
- if (this.viewTransitionAnimation) {
3428
- this.viewTransitionAnimation.destroy();
3429
- this.viewTransitionAnimation = undefined;
3430
- }
3431
- const { presentingElement } = this;
3432
- if (!presentingElement) {
3433
- return;
3434
- }
3435
- // Create transition animation
3436
- let transitionAnimation;
3437
- if (this.currentViewIsPortrait && !isPortrait) {
3438
- // Portrait to landscape transition
3439
- transitionAnimation = portraitToLandscapeTransition(this.el, {
3440
- presentingEl: presentingElement});
3441
- }
3442
- else {
3443
- // Landscape to portrait transition
3444
- transitionAnimation = landscapeToPortraitTransition(this.el, {
3445
- presentingEl: presentingElement});
3446
- }
3447
- // Update state and play animation
3448
- this.currentViewIsPortrait = isPortrait;
3449
- this.viewTransitionAnimation = transitionAnimation;
3450
- transitionAnimation.play().then(() => {
3451
- this.viewTransitionAnimation = undefined;
3452
- // After orientation transition, recreate the swipe-to-close gesture
3453
- // with updated animation that reflects the new presenting element state
3454
- this.reinitSwipeToClose();
3455
- });
3456
- }
3457
- cleanupViewTransitionListener() {
3458
- // Clear any pending resize timeout
3459
- if (this.resizeTimeout) {
3460
- clearTimeout(this.resizeTimeout);
3461
- this.resizeTimeout = undefined;
3462
- }
3463
- if (this.viewTransitionAnimation) {
3464
- this.viewTransitionAnimation.destroy();
3465
- this.viewTransitionAnimation = undefined;
3466
- }
3467
- }
3468
- reinitSwipeToClose() {
3469
- // Only reinitialize if we have a presenting element and are on iOS
3470
- if (getIonMode(this) !== 'ios' || !this.presentingElement) {
3471
- return;
3472
- }
3473
- // Clean up existing gesture and animation
3474
- if (this.gesture) {
3475
- this.gesture.destroy();
3476
- this.gesture = undefined;
3477
- }
3478
- if (this.animation) {
3479
- // Properly end the progress-based animation at initial state before destroying
3480
- // to avoid leaving modal in intermediate swipe position
3481
- this.animation.progressEnd(0, 0, 0);
3482
- this.animation.destroy();
3483
- this.animation = undefined;
3484
- }
3485
- // Force the modal back to the correct position or it could end up
3486
- // in a weird state after destroying the animation
3487
- raf(() => {
3488
- this.ensureCorrectModalPosition();
3489
- this.initSwipeToClose();
3490
- });
3491
- }
3492
- ensureCorrectModalPosition() {
3493
- const { el, presentingElement } = this;
3494
- const root = getElementRoot(el);
3495
- const wrapperEl = root.querySelector('.modal-wrapper');
3496
- if (wrapperEl) {
3497
- wrapperEl.style.transform = 'translateY(0vh)';
3498
- wrapperEl.style.opacity = '1';
3499
- }
3500
- if ((presentingElement === null || presentingElement === void 0 ? void 0 : presentingElement.tagName) === 'ION-MODAL') {
3501
- const isPortrait = window.innerWidth < 768;
3502
- if (isPortrait) {
3503
- const transformOffset = !CSS.supports('width', 'max(0px, 1px)')
3504
- ? '30px'
3505
- : 'max(30px, var(--ion-safe-area-top))';
3506
- const scale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
3507
- presentingElement.style.transform = `translateY(${transformOffset}) scale(${scale})`;
3508
- }
3509
- else {
3510
- presentingElement.style.transform = 'translateY(0px) scale(1)';
3511
- }
3512
- }
3513
- }
3514
- async dismissNestedModals() {
3515
- const nestedModals = document.querySelectorAll(`ion-modal[data-parent-ion-modal="${this.el.id}"]`);
3516
- nestedModals === null || nestedModals === void 0 ? void 0 : nestedModals.forEach(async (modal) => {
3517
- await modal.dismiss(undefined, 'parent-dismissed');
3518
- });
3519
- }
3520
- initParentRemovalObserver() {
3521
- if (typeof MutationObserver === 'undefined') {
3522
- return;
3523
- }
3524
- // Only observe if we have a cached parent and are in browser environment
3525
- if (typeof window === 'undefined' || !this.cachedOriginalParent) {
3526
- return;
3527
- }
3528
- // Don't observe document or fragment nodes as they can't be "removed"
3529
- if (this.cachedOriginalParent.nodeType === Node.DOCUMENT_NODE ||
3530
- this.cachedOriginalParent.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
3531
- return;
3532
- }
3533
- /**
3534
- * Don't observe for controller-based modals or when the parent is the
3535
- * app root (document.body or ion-app). These parents won't be removed,
3536
- * and observing document.body with subtree: true causes performance
3537
- * issues with frameworks like Angular during change detection.
3538
- */
3539
- if (this.hasController ||
3540
- this.cachedOriginalParent === document.body ||
3541
- this.cachedOriginalParent.tagName === 'ION-APP') {
3542
- return;
3543
- }
3544
- this.parentRemovalObserver = new MutationObserver((mutations) => {
3545
- mutations.forEach((mutation) => {
3546
- if (mutation.type === 'childList' && mutation.removedNodes.length > 0) {
3547
- // Check if our cached original parent was removed
3548
- const cachedParentWasRemoved = Array.from(mutation.removedNodes).some((node) => {
3549
- var _a, _b;
3550
- const isDirectMatch = node === this.cachedOriginalParent;
3551
- const isContainedMatch = this.cachedOriginalParent
3552
- ? (_b = (_a = node).contains) === null || _b === void 0 ? void 0 : _b.call(_a, this.cachedOriginalParent)
3553
- : false;
3554
- return isDirectMatch || isContainedMatch;
3555
- });
3556
- // Also check if parent is no longer connected to DOM
3557
- const cachedParentDisconnected = this.cachedOriginalParent && !this.cachedOriginalParent.isConnected;
3558
- if (cachedParentWasRemoved || cachedParentDisconnected) {
3559
- this.dismiss(undefined, 'parent-removed');
3560
- // Release the reference to the cached original parent
3561
- // so we don't have a memory leak
3562
- this.cachedOriginalParent = undefined;
3563
- }
3564
- }
3565
- });
3566
- });
3567
- // Observe document body with subtree to catch removals at any level
3568
- this.parentRemovalObserver.observe(document.body, {
3569
- childList: true,
3570
- subtree: true,
3571
- });
3572
- }
3573
- cleanupParentRemovalObserver() {
3574
- var _a;
3575
- (_a = this.parentRemovalObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
3576
- this.parentRemovalObserver = undefined;
3577
- }
3578
- render() {
3579
- const { handle, isSheetModal, presentingElement, htmlAttributes, handleBehavior, inheritedAttributes, focusTrap, expandToScroll, } = this;
3580
- const showHandle = handle !== false && isSheetModal;
3581
- const mode = getIonMode(this);
3582
- const isCardModal = presentingElement !== undefined && mode === 'ios';
3583
- const isHandleCycle = handleBehavior === 'cycle';
3584
- const isSheetModalWithHandle = isSheetModal && showHandle;
3585
- return (h(Host, Object.assign({ key: '9a75095a13de0cfc96f1fa69fd92777d25da8daa', "no-router": true,
3586
- // Allow the modal to be navigable when the handle is focusable
3587
- tabIndex: isHandleCycle && isSheetModalWithHandle ? 0 : -1 }, htmlAttributes, { style: {
3588
- zIndex: `${20000 + this.overlayIndex}`,
3589
- }, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, [`modal-no-expand-scroll`]: isSheetModal && !expandToScroll, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle, onFocus: this.onModalFocus }), h("ion-backdrop", { key: 'd02612d8063ef20f59f173ff47795f71cdaaf63e', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && h("div", { key: '708761b70a93e34c08faae079569f444c7416a4c', class: "modal-shadow" }), h("div", Object.assign({ key: 'a72226ff1a98229f9bfd9207b98fc57e02baa430',
3590
- /*
3591
- role and aria-modal must be used on the
3592
- same element. They must also be set inside the
3593
- shadow DOM otherwise ion-button will not be highlighted
3594
- when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
3595
- */
3596
- role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { key: '0547f32323882660221385d84d492929caa77c6b', class: "modal-handle",
3597
- // Prevents the handle from receiving keyboard focus when it does not cycle
3598
- tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle", ref: (el) => (this.dragHandleEl = el) })), h("slot", { key: 'fccbd64518b6fa22f9e874deb6b4ba55d8d89c3b', onSlotchange: this.onSlotChange }))));
3599
- }
3600
- get el() { return getElement(this); }
3601
- static get watchers() { return {
3602
- "isOpen": [{
3603
- "onIsOpenChange": 0
3604
- }],
3605
- "trigger": [{
3606
- "triggerChanged": 0
3607
- }]
3608
- }; }
3609
- };
3610
- const LIFECYCLE_MAP = {
3611
- ionModalDidPresent: 'ionViewDidEnter',
3612
- ionModalWillPresent: 'ionViewWillEnter',
3613
- ionModalWillDismiss: 'ionViewWillLeave',
3614
- ionModalDidDismiss: 'ionViewDidLeave',
3615
- };
3616
- Modal.style = {
3617
- ios: modalIosCss(),
3618
- md: modalMdCss()
3619
- };
3620
-
3621
- const ionicSelectModalMdCss = () => `.sc-ion-select-modal-ionic-h{height:100%}ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic::part(container),ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic [part~="container"]{display:none}ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic::part(label),ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic [part~="label"]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-item.sc-ion-select-modal-ionic{--inner-border-width:0}.item-radio-checked.sc-ion-select-modal-ionic{--background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08);--background-focused:var(--ion-color-primary, #0054e9);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #0054e9);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-modal-ionic{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #0054e9)}`;
3622
-
3623
- const selectModalIosCss = () => `.sc-ion-select-modal-ios-h{height:100%}ion-item.sc-ion-select-modal-ios{--inner-padding-end:0}ion-radio.sc-ion-select-modal-ios::after{bottom:0;position:absolute;width:calc(100% - 0.9375rem - 16px);border-width:0px 0px 0.55px 0px;border-style:solid;border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))));content:""}ion-radio.sc-ion-select-modal-ios::after{inset-inline-start:calc(0.9375rem + 16px)}`;
3624
-
3625
- const selectModalMdCss = () => `.sc-ion-select-modal-md-h{height:100%}ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md::part(container),ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md [part~="container"]{display:none}ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md::part(label),ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md [part~="label"]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-item.sc-ion-select-modal-md{--inner-border-width:0}.item-radio-checked.sc-ion-select-modal-md{--background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08);--background-focused:var(--ion-color-primary, #0054e9);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #0054e9);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-modal-md{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #0054e9)}`;
3626
-
3627
- const SelectModal = class {
3628
- constructor(hostRef) {
3629
- registerInstance(this, hostRef);
3630
- this.options = [];
3631
- }
3632
- closeModal() {
3633
- const modal = this.el.closest('ion-modal');
3634
- if (modal) {
3635
- modal.dismiss();
3636
- }
3637
- }
3638
- findOptionFromEvent(ev) {
3639
- const { options } = this;
3640
- return options.find((o) => o.value === ev.target.value);
3641
- }
3642
- getValues(ev) {
3643
- const { multiple, options } = this;
3644
- if (multiple) {
3645
- // this is a modal with checkboxes (multiple value select)
3646
- // return an array of all the checked values
3647
- return options.filter((o) => o.checked).map((o) => o.value);
3648
- }
3649
- // this is a modal with radio buttons (single value select)
3650
- // return the value that was clicked, otherwise undefined
3651
- const option = ev ? this.findOptionFromEvent(ev) : null;
3652
- return option ? option.value : undefined;
3653
- }
3654
- callOptionHandler(ev) {
3655
- const option = this.findOptionFromEvent(ev);
3656
- const values = this.getValues(ev);
3657
- if (option === null || option === void 0 ? void 0 : option.handler) {
3658
- safeCall(option.handler, values);
3659
- }
3660
- }
3661
- setChecked(ev) {
3662
- const { multiple } = this;
3663
- const option = this.findOptionFromEvent(ev);
3664
- // this is a modal with checkboxes (multiple value select)
3665
- // we need to set the checked value for this option
3666
- if (multiple && option) {
3667
- option.checked = ev.detail.checked;
3668
- }
3669
- }
3670
- renderRadioOptions() {
3671
- const checked = this.options.filter((o) => o.checked).map((o) => o.value)[0];
3672
- return (h("ion-radio-group", { value: checked, onIonChange: (ev) => this.callOptionHandler(ev) }, this.options.map((option) => (h("ion-item", { lines: "none", class: Object.assign({
3673
- // TODO FW-4784
3674
- 'item-radio-checked': option.value === checked
3675
- }, getClassMap(option.cssClass)) }, h("ion-radio", { value: option.value, disabled: option.disabled, justify: "start", labelPlacement: "end", onClick: () => this.closeModal(), onKeyUp: (ev) => {
3676
- if (ev.key === ' ') {
3677
- /**
3678
- * Selecting a radio option with keyboard navigation,
3679
- * either through the Enter or Space keys, should
3680
- * dismiss the modal.
3681
- */
3682
- this.closeModal();
3683
- }
3684
- } }, option.text))))));
3685
- }
3686
- renderCheckboxOptions() {
3687
- return this.options.map((option) => (h("ion-item", { class: Object.assign({
3688
- // TODO FW-4784
3689
- 'item-checkbox-checked': option.checked
3690
- }, getClassMap(option.cssClass)) }, h("ion-checkbox", { value: option.value, disabled: option.disabled, checked: option.checked, justify: "start", labelPlacement: "end", onIonChange: (ev) => {
3691
- this.setChecked(ev);
3692
- this.callOptionHandler(ev);
3693
- // TODO FW-4784
3694
- forceUpdate(this);
3695
- } }, option.text))));
3696
- }
3697
- render() {
3698
- return (h(Host, { key: 'b6c0dec240b2e41985b15fdf4e5a6d3a145c1567', class: getIonMode(this) }, h("ion-header", { key: 'cd177e85ee0f62a60a3a708342d6ab6eb19a44dc' }, h("ion-toolbar", { key: 'aee8222a5a4daa540ad202b2e4cac1ef93d9558c' }, this.header !== undefined && h("ion-title", { key: '5f8fecc764d97bf840d3d4cfddeeccd118ab4436' }, this.header), h("ion-buttons", { key: '919033950d7c2b0101f96a9c9698219de9f568ea', slot: "end" }, h("ion-button", { key: '34b571cab6dced4bde555a077a21e91800829931', onClick: () => this.closeModal() }, "Close")))), h("ion-content", { key: '3c9153d26ba7a5a03d3b20fcd628d0c3031661a7' }, h("ion-list", { key: 'e00b222c071bc97c82ad1bba4db95a8a5c43ed6d' }, this.multiple === true ? this.renderCheckboxOptions() : this.renderRadioOptions()))));
3699
- }
3700
- get el() { return getElement(this); }
3701
- };
3702
- SelectModal.style = {
3703
- ionic: ionicSelectModalMdCss(),
3704
- ios: selectModalIosCss(),
3705
- md: selectModalMdCss()
3706
- };
3707
-
3708
- const selectPopoverIosCss = () => `.sc-ion-select-popover-ios-h ion-list.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-ios,ion-label.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-select-popover-ios-h{overflow-y:auto}`;
3709
-
3710
- const selectPopoverMdCss = () => `.sc-ion-select-popover-md-h ion-list.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-md,ion-label.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-select-popover-md-h{overflow-y:auto}ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md::part(container),ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md [part~="container"]{display:none}ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md::part(label),ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md [part~="label"]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-item.sc-ion-select-popover-md{--inner-border-width:0}.item-radio-checked.sc-ion-select-popover-md{--background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08);--background-focused:var(--ion-color-primary, #0054e9);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #0054e9);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-popover-md{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #0054e9)}`;
3711
-
3712
- const SelectPopover = class {
3713
- constructor(hostRef) {
3714
- registerInstance(this, hostRef);
3715
- /**
3716
- * An array of options for the popover
3717
- */
3718
- this.options = [];
3719
- }
3720
- findOptionFromEvent(ev) {
3721
- const { options } = this;
3722
- return options.find((o) => o.value === ev.target.value);
3723
- }
3724
- /**
3725
- * When an option is selected we need to get the value(s)
3726
- * of the selected option(s) and return it in the option
3727
- * handler
3728
- */
3729
- callOptionHandler(ev) {
3730
- const option = this.findOptionFromEvent(ev);
3731
- const values = this.getValues(ev);
3732
- if (option === null || option === void 0 ? void 0 : option.handler) {
3733
- safeCall(option.handler, values);
3734
- }
3735
- }
3736
- /**
3737
- * Dismisses the host popover that the `ion-select-popover`
3738
- * is rendered within.
3739
- */
3740
- dismissParentPopover() {
3741
- const popover = this.el.closest('ion-popover');
3742
- if (popover) {
3743
- popover.dismiss();
3744
- }
3745
- }
3746
- setChecked(ev) {
3747
- const { multiple } = this;
3748
- const option = this.findOptionFromEvent(ev);
3749
- // this is a popover with checkboxes (multiple value select)
3750
- // we need to set the checked value for this option
3751
- if (multiple && option) {
3752
- option.checked = ev.detail.checked;
3753
- }
3754
- }
3755
- getValues(ev) {
3756
- const { multiple, options } = this;
3757
- if (multiple) {
3758
- // this is a popover with checkboxes (multiple value select)
3759
- // return an array of all the checked values
3760
- return options.filter((o) => o.checked).map((o) => o.value);
3761
- }
3762
- // this is a popover with radio buttons (single value select)
3763
- // return the value that was clicked, otherwise undefined
3764
- const option = this.findOptionFromEvent(ev);
3765
- return option ? option.value : undefined;
3766
- }
3767
- renderOptions(options) {
3768
- const { multiple } = this;
3769
- switch (multiple) {
3770
- case true:
3771
- return this.renderCheckboxOptions(options);
3772
- default:
3773
- return this.renderRadioOptions(options);
3774
- }
3775
- }
3776
- renderCheckboxOptions(options) {
3777
- return options.map((option) => (h("ion-item", { class: Object.assign({
3778
- // TODO FW-4784
3779
- 'item-checkbox-checked': option.checked
3780
- }, getClassMap(option.cssClass)) }, h("ion-checkbox", { value: option.value, disabled: option.disabled, checked: option.checked, justify: "start", labelPlacement: "end", onIonChange: (ev) => {
3781
- this.setChecked(ev);
3782
- this.callOptionHandler(ev);
3783
- // TODO FW-4784
3784
- forceUpdate(this);
3785
- } }, option.text))));
3786
- }
3787
- renderRadioOptions(options) {
3788
- const checked = options.filter((o) => o.checked).map((o) => o.value)[0];
3789
- return (h("ion-radio-group", { value: checked, onIonChange: (ev) => this.callOptionHandler(ev) }, options.map((option) => (h("ion-item", { class: Object.assign({
3790
- // TODO FW-4784
3791
- 'item-radio-checked': option.value === checked
3792
- }, getClassMap(option.cssClass)) }, h("ion-radio", { value: option.value, disabled: option.disabled, onClick: () => this.dismissParentPopover(), onKeyUp: (ev) => {
3793
- if (ev.key === ' ') {
3794
- /**
3795
- * Selecting a radio option with keyboard navigation,
3796
- * either through the Enter or Space keys, should
3797
- * dismiss the popover.
3798
- */
3799
- this.dismissParentPopover();
3800
- }
3801
- } }, option.text))))));
3802
- }
3803
- render() {
3804
- const { header, message, options, subHeader } = this;
3805
- const hasSubHeaderOrMessage = subHeader !== undefined || message !== undefined;
3806
- return (h(Host, { key: 'ab931b49b59283825bd2afa3f7f995b0e6e05bef', class: getIonMode(this) }, h("ion-list", { key: '3bd12b67832607596b912a73d5b3ae9b954b244d' }, header !== undefined && h("ion-list-header", { key: '97da930246edf7423a039c030d40e3ff7a5148a3' }, header), hasSubHeaderOrMessage && (h("ion-item", { key: 'c579df6ea8fac07bb0c59d34c69b149656863224' }, h("ion-label", { key: 'af699c5f465710ccb13b8cf8e7be66f0e8acfad1', class: "ion-text-wrap" }, subHeader !== undefined && h("h3", { key: 'df9a936d42064b134e843c7229f314a2a3ec7e80' }, subHeader), message !== undefined && h("p", { key: '9c3ddad378df00f106afa94e9928cf68c17124dd' }, message)))), this.renderOptions(options))));
3807
- }
3808
- get el() { return getElement(this); }
3809
- };
3810
- SelectPopover.style = {
3811
- ios: selectPopoverIosCss(),
3812
- md: selectPopoverMdCss()
3813
- };
3814
-
3815
- export { ActionSheet as ion_action_sheet, Alert as ion_alert, Modal as ion_modal, SelectModal as ion_select_modal, SelectPopover as ion_select_popover };